diff --git a/.changeset/violet-jars-exercise.md b/.changeset/violet-jars-exercise.md new file mode 100644 index 0000000000..7d10762eed --- /dev/null +++ b/.changeset/violet-jars-exercise.md @@ -0,0 +1,11 @@ +--- +"graphile-build": patch +"graphile-build-pg": patch +"postgraphile": patch +"@dataplan/pg": patch +--- + +Start migrating away from `applyPlan`/`inputPlan`, when adding an argument to a +field you can now augment the field's plan resolver via +`context.addToPlanResolver` hook. Use this and other changes to move handling of +orderBy to runtime from plantime. diff --git a/grafast/dataplan-json/src/steps/jsonParse.ts b/grafast/dataplan-json/src/steps/jsonParse.ts index 24f59a0efe..5f9f08b8bb 100644 --- a/grafast/dataplan-json/src/steps/jsonParse.ts +++ b/grafast/dataplan-json/src/steps/jsonParse.ts @@ -5,7 +5,7 @@ import type { GrafastResultsList, PromiseOrDirect, } from "grafast"; -import { access, ExecutableStep, exportAs } from "grafast"; +import { access, exportAs, Step } from "grafast"; export type JSONValue = | string @@ -19,9 +19,7 @@ export type JSONValue = * This plan accepts as JSON string as its only input and will result in the * parsed JSON object (or array, boolean, string, etc). */ -export class JSONParseStep< - TJSON extends JSONValue, -> extends ExecutableStep { +export class JSONParseStep extends Step { static $$export = { moduleName: "@dataplan/json", exportName: "JSONParseStep", @@ -30,7 +28,7 @@ export class JSONParseStep< // promise. isSyncAndSafe = false; - constructor($stringPlan: ExecutableStep) { + constructor($stringPlan: Step) { super(); this.addDependency($stringPlan); } @@ -85,7 +83,7 @@ export class JSONParseStep< * parsed JSON object (or array, boolean, string, etc). */ export function jsonParse( - $string: ExecutableStep, + $string: Step, ): JSONParseStep { return new JSONParseStep($string); } diff --git a/grafast/dataplan-pg/__tests__/helpers.ts b/grafast/dataplan-pg/__tests__/helpers.ts index 164f76397f..e72ee3b9d9 100644 --- a/grafast/dataplan-pg/__tests__/helpers.ts +++ b/grafast/dataplan-pg/__tests__/helpers.ts @@ -49,8 +49,19 @@ import { * We go beyond what Jest snapshots allow; so we have to manage it ourselves. * If UPDATE_SNAPSHOTS is set then we'll write updated snapshots, otherwise * we'll do the default behaviour of comparing to existing snapshots. + * + * Set UPDATE_SNAPSHOTS=1 to update all snapshots. Alternatively, set it to a + * comma separated list of snapshot types to update. */ -export const UPDATE_SNAPSHOTS = process.env.UPDATE_SNAPSHOTS === "1"; +const { UPDATE_SNAPSHOTS } = process.env; +const updateSnapshotExtensions = UPDATE_SNAPSHOTS?.split(","); +function shouldUpdateSnapshot(filePath: string) { + // Never update snapshots in CI + if (process.env.CI) return false; + if (UPDATE_SNAPSHOTS === "1") return true; + if (!updateSnapshotExtensions) return false; + return updateSnapshotExtensions.some((e) => filePath.endsWith(e)); +} const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); @@ -391,7 +402,7 @@ async function snapshot(actual: string, filePath: string) { } catch (e) { /* noop */ } - if (expected == null || UPDATE_SNAPSHOTS) { + if (expected == null || shouldUpdateSnapshot(filePath)) { if (expected !== actual) { console.warn(`Updated snapshot in '${filePath}'`); await fsp.writeFile(filePath, actual); diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-default-description.deopt.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-default-description.deopt.mermaid index f482284b72..2a353ad786 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-default-description.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-default-description.deopt.mermaid @@ -21,31 +21,35 @@ graph TD Constant11{{"Constant[11∈0] ➊
ᐸ2ᐳ"}}:::plan Constant34{{"Constant[34∈0] ➊
ᐸ'My Relational Post'ᐳ"}}:::plan Constant35{{"Constant[35∈0] ➊
ᐸ'Such a great post.'ᐳ"}}:::plan - PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸrelational_posts(id,title,note)ᐳ"]]:::sideeffectplan + PgInsertSingle18[["PgInsertSingle[18∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object15 & PgClassExpression16 & Constant34 & Constant35 --> PgInsertSingle17 + Object15 & PgClassExpression16 & Constant34 & Constant35 --> PgInsertSingle18 PgInsertSingle12[["PgInsertSingle[12∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object15 & Constant10 & Constant11 --> PgInsertSingle12 - PgInsertSingle12 --> PgClassExpression16 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression21 - PgSelect23[["PgSelect[23∈2] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object15 & PgClassExpression22 --> PgSelect23 - PgInsertSingle17 --> PgClassExpression22 - First27{{"First[27∈2] ➊"}}:::plan - PgSelectRows28[["PgSelectRows[28∈2] ➊"]]:::plan + PgSelect25[["PgSelect[25∈1] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object15 & PgClassExpression24 --> PgSelect25 + Access17{{"Access[17∈1] ➊
ᐸ12.tᐳ"}}:::plan + Access17 --> PgClassExpression16 + PgInsertSingle12 --> Access17 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access23{{"Access[23∈1] ➊
ᐸ18.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgInsertSingle18 --> Access23 + Access23 --> PgClassExpression24 + First27{{"First[27∈1] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1] ➊"]]:::plan PgSelectRows28 --> First27 - PgSelect23 --> PgSelectRows28 - PgSelectSingle29{{"PgSelectSingle[29∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect25 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1] ➊
ᐸrelational_postsᐳ"}}:::plan First27 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression33 %% define steps @@ -54,16 +58,8 @@ graph TD Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant34,Constant35 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 34, 35

1: PgInsertSingle[12]
2: PgClassExpression[16]
3: PgInsertSingle[17]
4:
ᐳ: PgClassExpression[21]"):::bucket + Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 34, 8, 35

1: PgInsertSingle[12]
2: Access[17]
3: PgClassExpression[16]
4: PgInsertSingle[18]
5:
ᐳ: 23, 22, 24
6: PgSelect[25]
7: PgSelectRows[28]
ᐳ: 27, 29, 30, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle12,PgClassExpression16,PgInsertSingle17,PgClassExpression21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 15, 21

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[21]
1:
ᐳ: PgClassExpression[22]
2: PgSelect[23]
3: PgSelectRows[28]
ᐳ: First[27], PgSelectSingle[29]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 29

ROOT PgSelectSingle{2}ᐸrelational_postsᐳ[29]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket3 + class Bucket1,PgInsertSingle12,PgClassExpression16,Access17,PgInsertSingle18,PgClassExpression22,Access23,PgClassExpression24,PgSelect25,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-default-description.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-default-description.mermaid index f482284b72..2a353ad786 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-default-description.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-default-description.mermaid @@ -21,31 +21,35 @@ graph TD Constant11{{"Constant[11∈0] ➊
ᐸ2ᐳ"}}:::plan Constant34{{"Constant[34∈0] ➊
ᐸ'My Relational Post'ᐳ"}}:::plan Constant35{{"Constant[35∈0] ➊
ᐸ'Such a great post.'ᐳ"}}:::plan - PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸrelational_posts(id,title,note)ᐳ"]]:::sideeffectplan + PgInsertSingle18[["PgInsertSingle[18∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object15 & PgClassExpression16 & Constant34 & Constant35 --> PgInsertSingle17 + Object15 & PgClassExpression16 & Constant34 & Constant35 --> PgInsertSingle18 PgInsertSingle12[["PgInsertSingle[12∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object15 & Constant10 & Constant11 --> PgInsertSingle12 - PgInsertSingle12 --> PgClassExpression16 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression21 - PgSelect23[["PgSelect[23∈2] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object15 & PgClassExpression22 --> PgSelect23 - PgInsertSingle17 --> PgClassExpression22 - First27{{"First[27∈2] ➊"}}:::plan - PgSelectRows28[["PgSelectRows[28∈2] ➊"]]:::plan + PgSelect25[["PgSelect[25∈1] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object15 & PgClassExpression24 --> PgSelect25 + Access17{{"Access[17∈1] ➊
ᐸ12.tᐳ"}}:::plan + Access17 --> PgClassExpression16 + PgInsertSingle12 --> Access17 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access23{{"Access[23∈1] ➊
ᐸ18.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgInsertSingle18 --> Access23 + Access23 --> PgClassExpression24 + First27{{"First[27∈1] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1] ➊"]]:::plan PgSelectRows28 --> First27 - PgSelect23 --> PgSelectRows28 - PgSelectSingle29{{"PgSelectSingle[29∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect25 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1] ➊
ᐸrelational_postsᐳ"}}:::plan First27 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression33 %% define steps @@ -54,16 +58,8 @@ graph TD Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant34,Constant35 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 34, 35

1: PgInsertSingle[12]
2: PgClassExpression[16]
3: PgInsertSingle[17]
4:
ᐳ: PgClassExpression[21]"):::bucket + Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 34, 8, 35

1: PgInsertSingle[12]
2: Access[17]
3: PgClassExpression[16]
4: PgInsertSingle[18]
5:
ᐳ: 23, 22, 24
6: PgSelect[25]
7: PgSelectRows[28]
ᐳ: 27, 29, 30, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle12,PgClassExpression16,PgInsertSingle17,PgClassExpression21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 15, 21

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[21]
1:
ᐳ: PgClassExpression[22]
2: PgSelect[23]
3: PgSelectRows[28]
ᐳ: First[27], PgSelectSingle[29]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 29

ROOT PgSelectSingle{2}ᐸrelational_postsᐳ[29]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket3 + class Bucket1,PgInsertSingle12,PgClassExpression16,Access17,PgInsertSingle18,PgClassExpression22,Access23,PgClassExpression24,PgSelect25,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-no-query.deopt.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-no-query.deopt.mermaid index 2c577b1382..ee31e6da26 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-no-query.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-no-query.deopt.mermaid @@ -19,469 +19,499 @@ graph TD __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan Constant10{{"Constant[10∈0] ➊
ᐸ'POST'ᐳ"}}:::plan Constant11{{"Constant[11∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant292{{"Constant[292∈0] ➊
ᐸ'My Relational Post 1'ᐳ"}}:::plan - Constant293{{"Constant[293∈0] ➊
ᐸ'A post, innit? 1'ᐳ"}}:::plan - Constant294{{"Constant[294∈0] ➊
ᐸ'Such a great post. 1'ᐳ"}}:::plan - Constant295{{"Constant[295∈0] ➊
ᐸ'My Relational Post 2'ᐳ"}}:::plan - Constant296{{"Constant[296∈0] ➊
ᐸ'A post, innit? 2'ᐳ"}}:::plan - Constant297{{"Constant[297∈0] ➊
ᐸ'Such a great post. 2'ᐳ"}}:::plan - Constant298{{"Constant[298∈0] ➊
ᐸ1000000ᐳ"}}:::plan - Constant299{{"Constant[299∈0] ➊
ᐸ1000001ᐳ"}}:::plan - Constant300{{"Constant[300∈0] ➊
ᐸ1000002ᐳ"}}:::plan - Constant301{{"Constant[301∈0] ➊
ᐸ'My Relational Post 3'ᐳ"}}:::plan - Constant302{{"Constant[302∈0] ➊
ᐸ'A post, innit? 3'ᐳ"}}:::plan - Constant303{{"Constant[303∈0] ➊
ᐸ'Such a great post. 3'ᐳ"}}:::plan - PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Constant294{{"Constant[294∈0] ➊
ᐸ'My Relational Post 1'ᐳ"}}:::plan + Constant295{{"Constant[295∈0] ➊
ᐸ'A post, innit? 1'ᐳ"}}:::plan + Constant296{{"Constant[296∈0] ➊
ᐸ'Such a great post. 1'ᐳ"}}:::plan + Constant297{{"Constant[297∈0] ➊
ᐸ'My Relational Post 2'ᐳ"}}:::plan + Constant298{{"Constant[298∈0] ➊
ᐸ'A post, innit? 2'ᐳ"}}:::plan + Constant299{{"Constant[299∈0] ➊
ᐸ'Such a great post. 2'ᐳ"}}:::plan + Constant300{{"Constant[300∈0] ➊
ᐸ1000000ᐳ"}}:::plan + Constant301{{"Constant[301∈0] ➊
ᐸ1000001ᐳ"}}:::plan + Constant302{{"Constant[302∈0] ➊
ᐸ1000002ᐳ"}}:::plan + Constant303{{"Constant[303∈0] ➊
ᐸ'My Relational Post 3'ᐳ"}}:::plan + Constant304{{"Constant[304∈0] ➊
ᐸ'A post, innit? 3'ᐳ"}}:::plan + Constant305{{"Constant[305∈0] ➊
ᐸ'Such a great post. 3'ᐳ"}}:::plan + PgInsertSingle18[["PgInsertSingle[18∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object15 & PgClassExpression16 & Constant292 & Constant293 & Constant294 --> PgInsertSingle17 + Object15 & PgClassExpression16 & Constant294 & Constant295 & Constant296 --> PgInsertSingle18 PgInsertSingle12[["PgInsertSingle[12∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object15 & Constant10 & Constant11 --> PgInsertSingle12 - PgInsertSingle12 --> PgClassExpression16 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression21 - PgInsertSingle33[["PgInsertSingle[33∈3] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - Object31{{"Object[31∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object31 & PgClassExpression32 & Constant295 & Constant296 & Constant297 --> PgInsertSingle33 - PgInsertSingle28[["PgInsertSingle[28∈3] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan - Object31 & Constant10 & Constant11 --> PgInsertSingle28 - Access29{{"Access[29∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access30{{"Access[30∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access29 & Access30 --> Object31 - __Value2 --> Access29 - __Value2 --> Access30 - PgInsertSingle28 --> PgClassExpression32 - PgClassExpression37{{"PgClassExpression[37∈3] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle33 --> PgClassExpression37 - PgSelect39[["PgSelect[39∈4] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object31 & Constant298 --> PgSelect39 - PgPolymorphic47{{"PgPolymorphic[47∈4] ➊"}}:::plan - PgSelectSingle45{{"PgSelectSingle[45∈4] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression46{{"PgClassExpression[46∈4] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle45 & PgClassExpression46 --> PgPolymorphic47 - PgSelect80[["PgSelect[80∈4] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object31 & Constant299 --> PgSelect80 - PgPolymorphic86{{"PgPolymorphic[86∈4] ➊"}}:::plan - PgSelectSingle84{{"PgSelectSingle[84∈4] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression85{{"PgClassExpression[85∈4] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle84 & PgClassExpression85 --> PgPolymorphic86 - PgSelect119[["PgSelect[119∈4] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object31 & Constant300 --> PgSelect119 - PgPolymorphic125{{"PgPolymorphic[125∈4] ➊"}}:::plan - PgSelectSingle123{{"PgSelectSingle[123∈4] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression124{{"PgClassExpression[124∈4] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle123 & PgClassExpression124 --> PgPolymorphic125 - First43{{"First[43∈4] ➊"}}:::plan - PgSelectRows44[["PgSelectRows[44∈4] ➊"]]:::plan - PgSelectRows44 --> First43 - PgSelect39 --> PgSelectRows44 - First43 --> PgSelectSingle45 - PgSelectSingle45 --> PgClassExpression46 - PgClassExpression48{{"PgClassExpression[48∈4] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression48 - First82{{"First[82∈4] ➊"}}:::plan - PgSelectRows83[["PgSelectRows[83∈4] ➊"]]:::plan - PgSelectRows83 --> First82 - PgSelect80 --> PgSelectRows83 - First82 --> PgSelectSingle84 - PgSelectSingle84 --> PgClassExpression85 - PgClassExpression87{{"PgClassExpression[87∈4] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle84 --> PgClassExpression87 - First121{{"First[121∈4] ➊"}}:::plan - PgSelectRows122[["PgSelectRows[122∈4] ➊"]]:::plan - PgSelectRows122 --> First121 - PgSelect119 --> PgSelectRows122 - First121 --> PgSelectSingle123 - PgSelectSingle123 --> PgClassExpression124 - PgClassExpression126{{"PgClassExpression[126∈4] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle123 --> PgClassExpression126 - PgSelect49[["PgSelect[49∈6] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object31 & PgClassExpression48 --> PgSelect49 - PgSelect56[["PgSelect[56∈6] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object31 & PgClassExpression48 --> PgSelect56 - PgSelect64[["PgSelect[64∈6] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object31 & PgClassExpression48 --> PgSelect64 - PgSelect69[["PgSelect[69∈6] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object31 & PgClassExpression48 --> PgSelect69 - PgSelect74[["PgSelect[74∈6] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object31 & PgClassExpression48 --> PgSelect74 - First53{{"First[53∈6] ➊"}}:::plan - PgSelectRows54[["PgSelectRows[54∈6] ➊"]]:::plan - PgSelectRows54 --> First53 - PgSelect49 --> PgSelectRows54 - PgSelectSingle55{{"PgSelectSingle[55∈6] ➊
ᐸrelational_topicsᐳ"}}:::plan - First53 --> PgSelectSingle55 - First58{{"First[58∈6] ➊"}}:::plan - PgSelectRows59[["PgSelectRows[59∈6] ➊"]]:::plan - PgSelectRows59 --> First58 - PgSelect56 --> PgSelectRows59 - PgSelectSingle60{{"PgSelectSingle[60∈6] ➊
ᐸrelational_postsᐳ"}}:::plan - First58 --> PgSelectSingle60 - PgClassExpression61{{"PgClassExpression[61∈6] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle60 --> PgClassExpression61 - PgClassExpression62{{"PgClassExpression[62∈6] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle60 --> PgClassExpression62 - PgClassExpression63{{"PgClassExpression[63∈6] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle60 --> PgClassExpression63 - First66{{"First[66∈6] ➊"}}:::plan - PgSelectRows67[["PgSelectRows[67∈6] ➊"]]:::plan - PgSelectRows67 --> First66 - PgSelect64 --> PgSelectRows67 - PgSelectSingle68{{"PgSelectSingle[68∈6] ➊
ᐸrelational_dividersᐳ"}}:::plan - First66 --> PgSelectSingle68 - First71{{"First[71∈6] ➊"}}:::plan - PgSelectRows72[["PgSelectRows[72∈6] ➊"]]:::plan - PgSelectRows72 --> First71 - PgSelect69 --> PgSelectRows72 - PgSelectSingle73{{"PgSelectSingle[73∈6] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First71 --> PgSelectSingle73 - First76{{"First[76∈6] ➊"}}:::plan - PgSelectRows77[["PgSelectRows[77∈6] ➊"]]:::plan - PgSelectRows77 --> First76 - PgSelect74 --> PgSelectRows77 - PgSelectSingle78{{"PgSelectSingle[78∈6] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First76 --> PgSelectSingle78 - PgSelect88[["PgSelect[88∈7] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object31 & PgClassExpression87 --> PgSelect88 - PgSelect95[["PgSelect[95∈7] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object31 & PgClassExpression87 --> PgSelect95 - PgSelect103[["PgSelect[103∈7] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object31 & PgClassExpression87 --> PgSelect103 - PgSelect108[["PgSelect[108∈7] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object31 & PgClassExpression87 --> PgSelect108 - PgSelect113[["PgSelect[113∈7] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object31 & PgClassExpression87 --> PgSelect113 - First92{{"First[92∈7] ➊"}}:::plan - PgSelectRows93[["PgSelectRows[93∈7] ➊"]]:::plan - PgSelectRows93 --> First92 - PgSelect88 --> PgSelectRows93 - PgSelectSingle94{{"PgSelectSingle[94∈7] ➊
ᐸrelational_topicsᐳ"}}:::plan - First92 --> PgSelectSingle94 - First97{{"First[97∈7] ➊"}}:::plan - PgSelectRows98[["PgSelectRows[98∈7] ➊"]]:::plan - PgSelectRows98 --> First97 - PgSelect95 --> PgSelectRows98 - PgSelectSingle99{{"PgSelectSingle[99∈7] ➊
ᐸrelational_postsᐳ"}}:::plan - First97 --> PgSelectSingle99 - PgClassExpression100{{"PgClassExpression[100∈7] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle99 --> PgClassExpression100 - PgClassExpression101{{"PgClassExpression[101∈7] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle99 --> PgClassExpression101 - PgClassExpression102{{"PgClassExpression[102∈7] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle99 --> PgClassExpression102 - First105{{"First[105∈7] ➊"}}:::plan - PgSelectRows106[["PgSelectRows[106∈7] ➊"]]:::plan - PgSelectRows106 --> First105 - PgSelect103 --> PgSelectRows106 - PgSelectSingle107{{"PgSelectSingle[107∈7] ➊
ᐸrelational_dividersᐳ"}}:::plan - First105 --> PgSelectSingle107 - First110{{"First[110∈7] ➊"}}:::plan - PgSelectRows111[["PgSelectRows[111∈7] ➊"]]:::plan - PgSelectRows111 --> First110 - PgSelect108 --> PgSelectRows111 - PgSelectSingle112{{"PgSelectSingle[112∈7] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First110 --> PgSelectSingle112 - First115{{"First[115∈7] ➊"}}:::plan - PgSelectRows116[["PgSelectRows[116∈7] ➊"]]:::plan - PgSelectRows116 --> First115 - PgSelect113 --> PgSelectRows116 - PgSelectSingle117{{"PgSelectSingle[117∈7] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First115 --> PgSelectSingle117 - PgSelect127[["PgSelect[127∈8] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object31 & PgClassExpression126 --> PgSelect127 - PgSelect134[["PgSelect[134∈8] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object31 & PgClassExpression126 --> PgSelect134 - PgSelect142[["PgSelect[142∈8] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object31 & PgClassExpression126 --> PgSelect142 - PgSelect147[["PgSelect[147∈8] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object31 & PgClassExpression126 --> PgSelect147 - PgSelect152[["PgSelect[152∈8] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object31 & PgClassExpression126 --> PgSelect152 - First131{{"First[131∈8] ➊"}}:::plan - PgSelectRows132[["PgSelectRows[132∈8] ➊"]]:::plan - PgSelectRows132 --> First131 - PgSelect127 --> PgSelectRows132 - PgSelectSingle133{{"PgSelectSingle[133∈8] ➊
ᐸrelational_topicsᐳ"}}:::plan - First131 --> PgSelectSingle133 - First136{{"First[136∈8] ➊"}}:::plan - PgSelectRows137[["PgSelectRows[137∈8] ➊"]]:::plan - PgSelectRows137 --> First136 - PgSelect134 --> PgSelectRows137 - PgSelectSingle138{{"PgSelectSingle[138∈8] ➊
ᐸrelational_postsᐳ"}}:::plan - First136 --> PgSelectSingle138 - PgClassExpression139{{"PgClassExpression[139∈8] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle138 --> PgClassExpression139 - PgClassExpression140{{"PgClassExpression[140∈8] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle138 --> PgClassExpression140 - PgClassExpression141{{"PgClassExpression[141∈8] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle138 --> PgClassExpression141 - First144{{"First[144∈8] ➊"}}:::plan - PgSelectRows145[["PgSelectRows[145∈8] ➊"]]:::plan - PgSelectRows145 --> First144 - PgSelect142 --> PgSelectRows145 - PgSelectSingle146{{"PgSelectSingle[146∈8] ➊
ᐸrelational_dividersᐳ"}}:::plan - First144 --> PgSelectSingle146 - First149{{"First[149∈8] ➊"}}:::plan - PgSelectRows150[["PgSelectRows[150∈8] ➊"]]:::plan - PgSelectRows150 --> First149 - PgSelect147 --> PgSelectRows150 - PgSelectSingle151{{"PgSelectSingle[151∈8] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First149 --> PgSelectSingle151 - First154{{"First[154∈8] ➊"}}:::plan - PgSelectRows155[["PgSelectRows[155∈8] ➊"]]:::plan - PgSelectRows155 --> First154 - PgSelect152 --> PgSelectRows155 - PgSelectSingle156{{"PgSelectSingle[156∈8] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First154 --> PgSelectSingle156 - PgInsertSingle168[["PgInsertSingle[168∈9] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - Object166{{"Object[166∈9] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - PgClassExpression167{{"PgClassExpression[167∈9] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object166 & PgClassExpression167 & Constant301 & Constant302 & Constant303 --> PgInsertSingle168 - PgInsertSingle163[["PgInsertSingle[163∈9] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan - Object166 & Constant10 & Constant11 --> PgInsertSingle163 - Access164{{"Access[164∈9] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access165{{"Access[165∈9] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access164 & Access165 --> Object166 - __Value2 --> Access164 - __Value2 --> Access165 - PgInsertSingle163 --> PgClassExpression167 - PgClassExpression172{{"PgClassExpression[172∈9] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle168 --> PgClassExpression172 - PgSelect174[["PgSelect[174∈10] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object166 & Constant298 --> PgSelect174 - PgPolymorphic182{{"PgPolymorphic[182∈10] ➊"}}:::plan - PgSelectSingle180{{"PgSelectSingle[180∈10] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression181{{"PgClassExpression[181∈10] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle180 & PgClassExpression181 --> PgPolymorphic182 - PgSelect215[["PgSelect[215∈10] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object166 & Constant299 --> PgSelect215 - PgPolymorphic221{{"PgPolymorphic[221∈10] ➊"}}:::plan - PgSelectSingle219{{"PgSelectSingle[219∈10] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression220{{"PgClassExpression[220∈10] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle219 & PgClassExpression220 --> PgPolymorphic221 - PgSelect254[["PgSelect[254∈10] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object166 & Constant300 --> PgSelect254 - PgPolymorphic260{{"PgPolymorphic[260∈10] ➊"}}:::plan - PgSelectSingle258{{"PgSelectSingle[258∈10] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression259{{"PgClassExpression[259∈10] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle258 & PgClassExpression259 --> PgPolymorphic260 - First178{{"First[178∈10] ➊"}}:::plan - PgSelectRows179[["PgSelectRows[179∈10] ➊"]]:::plan - PgSelectRows179 --> First178 - PgSelect174 --> PgSelectRows179 - First178 --> PgSelectSingle180 - PgSelectSingle180 --> PgClassExpression181 - PgClassExpression183{{"PgClassExpression[183∈10] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle180 --> PgClassExpression183 - First217{{"First[217∈10] ➊"}}:::plan - PgSelectRows218[["PgSelectRows[218∈10] ➊"]]:::plan - PgSelectRows218 --> First217 - PgSelect215 --> PgSelectRows218 - First217 --> PgSelectSingle219 - PgSelectSingle219 --> PgClassExpression220 - PgClassExpression222{{"PgClassExpression[222∈10] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle219 --> PgClassExpression222 - First256{{"First[256∈10] ➊"}}:::plan - PgSelectRows257[["PgSelectRows[257∈10] ➊"]]:::plan - PgSelectRows257 --> First256 - PgSelect254 --> PgSelectRows257 - First256 --> PgSelectSingle258 - PgSelectSingle258 --> PgClassExpression259 - PgClassExpression261{{"PgClassExpression[261∈10] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle258 --> PgClassExpression261 - PgSelect184[["PgSelect[184∈12] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object166 & PgClassExpression183 --> PgSelect184 - PgSelect191[["PgSelect[191∈12] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object166 & PgClassExpression183 --> PgSelect191 - PgSelect199[["PgSelect[199∈12] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object166 & PgClassExpression183 --> PgSelect199 - PgSelect204[["PgSelect[204∈12] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object166 & PgClassExpression183 --> PgSelect204 - PgSelect209[["PgSelect[209∈12] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object166 & PgClassExpression183 --> PgSelect209 - First188{{"First[188∈12] ➊"}}:::plan - PgSelectRows189[["PgSelectRows[189∈12] ➊"]]:::plan - PgSelectRows189 --> First188 - PgSelect184 --> PgSelectRows189 - PgSelectSingle190{{"PgSelectSingle[190∈12] ➊
ᐸrelational_topicsᐳ"}}:::plan - First188 --> PgSelectSingle190 - First193{{"First[193∈12] ➊"}}:::plan - PgSelectRows194[["PgSelectRows[194∈12] ➊"]]:::plan - PgSelectRows194 --> First193 - PgSelect191 --> PgSelectRows194 - PgSelectSingle195{{"PgSelectSingle[195∈12] ➊
ᐸrelational_postsᐳ"}}:::plan - First193 --> PgSelectSingle195 - PgClassExpression196{{"PgClassExpression[196∈12] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle195 --> PgClassExpression196 - PgClassExpression197{{"PgClassExpression[197∈12] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle195 --> PgClassExpression197 - PgClassExpression198{{"PgClassExpression[198∈12] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle195 --> PgClassExpression198 - First201{{"First[201∈12] ➊"}}:::plan - PgSelectRows202[["PgSelectRows[202∈12] ➊"]]:::plan - PgSelectRows202 --> First201 - PgSelect199 --> PgSelectRows202 - PgSelectSingle203{{"PgSelectSingle[203∈12] ➊
ᐸrelational_dividersᐳ"}}:::plan - First201 --> PgSelectSingle203 - First206{{"First[206∈12] ➊"}}:::plan - PgSelectRows207[["PgSelectRows[207∈12] ➊"]]:::plan - PgSelectRows207 --> First206 - PgSelect204 --> PgSelectRows207 - PgSelectSingle208{{"PgSelectSingle[208∈12] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First206 --> PgSelectSingle208 - First211{{"First[211∈12] ➊"}}:::plan - PgSelectRows212[["PgSelectRows[212∈12] ➊"]]:::plan - PgSelectRows212 --> First211 - PgSelect209 --> PgSelectRows212 - PgSelectSingle213{{"PgSelectSingle[213∈12] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First211 --> PgSelectSingle213 - PgSelect223[["PgSelect[223∈13] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object166 & PgClassExpression222 --> PgSelect223 - PgSelect230[["PgSelect[230∈13] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object166 & PgClassExpression222 --> PgSelect230 - PgSelect238[["PgSelect[238∈13] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object166 & PgClassExpression222 --> PgSelect238 - PgSelect243[["PgSelect[243∈13] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object166 & PgClassExpression222 --> PgSelect243 - PgSelect248[["PgSelect[248∈13] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object166 & PgClassExpression222 --> PgSelect248 - First227{{"First[227∈13] ➊"}}:::plan - PgSelectRows228[["PgSelectRows[228∈13] ➊"]]:::plan - PgSelectRows228 --> First227 - PgSelect223 --> PgSelectRows228 - PgSelectSingle229{{"PgSelectSingle[229∈13] ➊
ᐸrelational_topicsᐳ"}}:::plan - First227 --> PgSelectSingle229 - First232{{"First[232∈13] ➊"}}:::plan - PgSelectRows233[["PgSelectRows[233∈13] ➊"]]:::plan - PgSelectRows233 --> First232 - PgSelect230 --> PgSelectRows233 - PgSelectSingle234{{"PgSelectSingle[234∈13] ➊
ᐸrelational_postsᐳ"}}:::plan - First232 --> PgSelectSingle234 - PgClassExpression235{{"PgClassExpression[235∈13] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle234 --> PgClassExpression235 - PgClassExpression236{{"PgClassExpression[236∈13] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle234 --> PgClassExpression236 - PgClassExpression237{{"PgClassExpression[237∈13] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle234 --> PgClassExpression237 - First240{{"First[240∈13] ➊"}}:::plan - PgSelectRows241[["PgSelectRows[241∈13] ➊"]]:::plan - PgSelectRows241 --> First240 - PgSelect238 --> PgSelectRows241 - PgSelectSingle242{{"PgSelectSingle[242∈13] ➊
ᐸrelational_dividersᐳ"}}:::plan - First240 --> PgSelectSingle242 - First245{{"First[245∈13] ➊"}}:::plan - PgSelectRows246[["PgSelectRows[246∈13] ➊"]]:::plan - PgSelectRows246 --> First245 - PgSelect243 --> PgSelectRows246 - PgSelectSingle247{{"PgSelectSingle[247∈13] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First245 --> PgSelectSingle247 - First250{{"First[250∈13] ➊"}}:::plan - PgSelectRows251[["PgSelectRows[251∈13] ➊"]]:::plan - PgSelectRows251 --> First250 - PgSelect248 --> PgSelectRows251 - PgSelectSingle252{{"PgSelectSingle[252∈13] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First250 --> PgSelectSingle252 - PgSelect262[["PgSelect[262∈14] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object166 & PgClassExpression261 --> PgSelect262 - PgSelect269[["PgSelect[269∈14] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object166 & PgClassExpression261 --> PgSelect269 - PgSelect277[["PgSelect[277∈14] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object166 & PgClassExpression261 --> PgSelect277 - PgSelect282[["PgSelect[282∈14] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object166 & PgClassExpression261 --> PgSelect282 - PgSelect287[["PgSelect[287∈14] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object166 & PgClassExpression261 --> PgSelect287 - First266{{"First[266∈14] ➊"}}:::plan - PgSelectRows267[["PgSelectRows[267∈14] ➊"]]:::plan - PgSelectRows267 --> First266 - PgSelect262 --> PgSelectRows267 - PgSelectSingle268{{"PgSelectSingle[268∈14] ➊
ᐸrelational_topicsᐳ"}}:::plan - First266 --> PgSelectSingle268 - First271{{"First[271∈14] ➊"}}:::plan - PgSelectRows272[["PgSelectRows[272∈14] ➊"]]:::plan - PgSelectRows272 --> First271 - PgSelect269 --> PgSelectRows272 - PgSelectSingle273{{"PgSelectSingle[273∈14] ➊
ᐸrelational_postsᐳ"}}:::plan - First271 --> PgSelectSingle273 - PgClassExpression274{{"PgClassExpression[274∈14] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression274 - PgClassExpression275{{"PgClassExpression[275∈14] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression275 - PgClassExpression276{{"PgClassExpression[276∈14] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression276 - First279{{"First[279∈14] ➊"}}:::plan - PgSelectRows280[["PgSelectRows[280∈14] ➊"]]:::plan - PgSelectRows280 --> First279 - PgSelect277 --> PgSelectRows280 - PgSelectSingle281{{"PgSelectSingle[281∈14] ➊
ᐸrelational_dividersᐳ"}}:::plan - First279 --> PgSelectSingle281 - First284{{"First[284∈14] ➊"}}:::plan - PgSelectRows285[["PgSelectRows[285∈14] ➊"]]:::plan - PgSelectRows285 --> First284 - PgSelect282 --> PgSelectRows285 - PgSelectSingle286{{"PgSelectSingle[286∈14] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First284 --> PgSelectSingle286 - First289{{"First[289∈14] ➊"}}:::plan - PgSelectRows290[["PgSelectRows[290∈14] ➊"]]:::plan - PgSelectRows290 --> First289 - PgSelect287 --> PgSelectRows290 - PgSelectSingle291{{"PgSelectSingle[291∈14] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First289 --> PgSelectSingle291 + Access17{{"Access[17∈1] ➊
ᐸ12.tᐳ"}}:::plan + Access17 --> PgClassExpression16 + PgInsertSingle12 --> Access17 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access23{{"Access[23∈1] ➊
ᐸ18.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgInsertSingle18 --> Access23 + PgInsertSingle36[["PgInsertSingle[36∈2] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Object33{{"Object[33∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object33 & PgClassExpression34 & Constant297 & Constant298 & Constant299 --> PgInsertSingle36 + PgInsertSingle30[["PgInsertSingle[30∈2] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + Object33 & Constant10 & Constant11 --> PgInsertSingle30 + Access31{{"Access[31∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access32{{"Access[32∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access31 & Access32 --> Object33 + PgSelect43[["PgSelect[43∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object33 & Constant300 --> PgSelect43 + PgPolymorphic49{{"PgPolymorphic[49∈2] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression48{{"PgClassExpression[48∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle47 & PgClassExpression48 --> PgPolymorphic49 + PgSelect82[["PgSelect[82∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object33 & Constant301 --> PgSelect82 + PgPolymorphic88{{"PgPolymorphic[88∈2] ➊"}}:::plan + PgSelectSingle86{{"PgSelectSingle[86∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression87{{"PgClassExpression[87∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle86 & PgClassExpression87 --> PgPolymorphic88 + PgSelect121[["PgSelect[121∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object33 & Constant302 --> PgSelect121 + PgPolymorphic127{{"PgPolymorphic[127∈2] ➊"}}:::plan + PgSelectSingle125{{"PgSelectSingle[125∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression126{{"PgClassExpression[126∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle125 & PgClassExpression126 --> PgPolymorphic127 + __Value2 --> Access31 + __Value2 --> Access32 + Access35{{"Access[35∈2] ➊
ᐸ30.tᐳ"}}:::plan + Access35 --> PgClassExpression34 + PgInsertSingle30 --> Access35 + PgClassExpression40{{"PgClassExpression[40∈2] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access41{{"Access[41∈2] ➊
ᐸ36.tᐳ"}}:::plan + Access41 --> PgClassExpression40 + PgInsertSingle36 --> Access41 + First45{{"First[45∈2] ➊"}}:::plan + PgSelectRows46[["PgSelectRows[46∈2] ➊"]]:::plan + PgSelectRows46 --> First45 + PgSelect43 --> PgSelectRows46 + First45 --> PgSelectSingle47 + PgSelectSingle47 --> PgClassExpression48 + First84{{"First[84∈2] ➊"}}:::plan + PgSelectRows85[["PgSelectRows[85∈2] ➊"]]:::plan + PgSelectRows85 --> First84 + PgSelect82 --> PgSelectRows85 + First84 --> PgSelectSingle86 + PgSelectSingle86 --> PgClassExpression87 + First123{{"First[123∈2] ➊"}}:::plan + PgSelectRows124[["PgSelectRows[124∈2] ➊"]]:::plan + PgSelectRows124 --> First123 + PgSelect121 --> PgSelectRows124 + First123 --> PgSelectSingle125 + PgSelectSingle125 --> PgClassExpression126 + PgSelect51[["PgSelect[51∈3] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression50{{"PgClassExpression[50∈3] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object33 & PgClassExpression50 --> PgSelect51 + PgSelect58[["PgSelect[58∈3] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object33 & PgClassExpression50 --> PgSelect58 + PgSelect66[["PgSelect[66∈3] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object33 & PgClassExpression50 --> PgSelect66 + PgSelect71[["PgSelect[71∈3] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object33 & PgClassExpression50 --> PgSelect71 + PgSelect76[["PgSelect[76∈3] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object33 & PgClassExpression50 --> PgSelect76 + PgSelectSingle47 --> PgClassExpression50 + First55{{"First[55∈3] ➊"}}:::plan + PgSelectRows56[["PgSelectRows[56∈3] ➊"]]:::plan + PgSelectRows56 --> First55 + PgSelect51 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈3] ➊
ᐸrelational_topicsᐳ"}}:::plan + First55 --> PgSelectSingle57 + First60{{"First[60∈3] ➊"}}:::plan + PgSelectRows61[["PgSelectRows[61∈3] ➊"]]:::plan + PgSelectRows61 --> First60 + PgSelect58 --> PgSelectRows61 + PgSelectSingle62{{"PgSelectSingle[62∈3] ➊
ᐸrelational_postsᐳ"}}:::plan + First60 --> PgSelectSingle62 + PgClassExpression63{{"PgClassExpression[63∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle62 --> PgClassExpression63 + PgClassExpression64{{"PgClassExpression[64∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle62 --> PgClassExpression64 + PgClassExpression65{{"PgClassExpression[65∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle62 --> PgClassExpression65 + First68{{"First[68∈3] ➊"}}:::plan + PgSelectRows69[["PgSelectRows[69∈3] ➊"]]:::plan + PgSelectRows69 --> First68 + PgSelect66 --> PgSelectRows69 + PgSelectSingle70{{"PgSelectSingle[70∈3] ➊
ᐸrelational_dividersᐳ"}}:::plan + First68 --> PgSelectSingle70 + First73{{"First[73∈3] ➊"}}:::plan + PgSelectRows74[["PgSelectRows[74∈3] ➊"]]:::plan + PgSelectRows74 --> First73 + PgSelect71 --> PgSelectRows74 + PgSelectSingle75{{"PgSelectSingle[75∈3] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First73 --> PgSelectSingle75 + First78{{"First[78∈3] ➊"}}:::plan + PgSelectRows79[["PgSelectRows[79∈3] ➊"]]:::plan + PgSelectRows79 --> First78 + PgSelect76 --> PgSelectRows79 + PgSelectSingle80{{"PgSelectSingle[80∈3] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First78 --> PgSelectSingle80 + PgSelect90[["PgSelect[90∈4] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression89{{"PgClassExpression[89∈4] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object33 & PgClassExpression89 --> PgSelect90 + PgSelect97[["PgSelect[97∈4] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object33 & PgClassExpression89 --> PgSelect97 + PgSelect105[["PgSelect[105∈4] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object33 & PgClassExpression89 --> PgSelect105 + PgSelect110[["PgSelect[110∈4] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object33 & PgClassExpression89 --> PgSelect110 + PgSelect115[["PgSelect[115∈4] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object33 & PgClassExpression89 --> PgSelect115 + PgSelectSingle86 --> PgClassExpression89 + First94{{"First[94∈4] ➊"}}:::plan + PgSelectRows95[["PgSelectRows[95∈4] ➊"]]:::plan + PgSelectRows95 --> First94 + PgSelect90 --> PgSelectRows95 + PgSelectSingle96{{"PgSelectSingle[96∈4] ➊
ᐸrelational_topicsᐳ"}}:::plan + First94 --> PgSelectSingle96 + First99{{"First[99∈4] ➊"}}:::plan + PgSelectRows100[["PgSelectRows[100∈4] ➊"]]:::plan + PgSelectRows100 --> First99 + PgSelect97 --> PgSelectRows100 + PgSelectSingle101{{"PgSelectSingle[101∈4] ➊
ᐸrelational_postsᐳ"}}:::plan + First99 --> PgSelectSingle101 + PgClassExpression102{{"PgClassExpression[102∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle101 --> PgClassExpression102 + PgClassExpression103{{"PgClassExpression[103∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle101 --> PgClassExpression103 + PgClassExpression104{{"PgClassExpression[104∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle101 --> PgClassExpression104 + First107{{"First[107∈4] ➊"}}:::plan + PgSelectRows108[["PgSelectRows[108∈4] ➊"]]:::plan + PgSelectRows108 --> First107 + PgSelect105 --> PgSelectRows108 + PgSelectSingle109{{"PgSelectSingle[109∈4] ➊
ᐸrelational_dividersᐳ"}}:::plan + First107 --> PgSelectSingle109 + First112{{"First[112∈4] ➊"}}:::plan + PgSelectRows113[["PgSelectRows[113∈4] ➊"]]:::plan + PgSelectRows113 --> First112 + PgSelect110 --> PgSelectRows113 + PgSelectSingle114{{"PgSelectSingle[114∈4] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First112 --> PgSelectSingle114 + First117{{"First[117∈4] ➊"}}:::plan + PgSelectRows118[["PgSelectRows[118∈4] ➊"]]:::plan + PgSelectRows118 --> First117 + PgSelect115 --> PgSelectRows118 + PgSelectSingle119{{"PgSelectSingle[119∈4] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First117 --> PgSelectSingle119 + PgSelect129[["PgSelect[129∈5] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression128{{"PgClassExpression[128∈5] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object33 & PgClassExpression128 --> PgSelect129 + PgSelect136[["PgSelect[136∈5] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object33 & PgClassExpression128 --> PgSelect136 + PgSelect144[["PgSelect[144∈5] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object33 & PgClassExpression128 --> PgSelect144 + PgSelect149[["PgSelect[149∈5] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object33 & PgClassExpression128 --> PgSelect149 + PgSelect154[["PgSelect[154∈5] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object33 & PgClassExpression128 --> PgSelect154 + PgSelectSingle125 --> PgClassExpression128 + First133{{"First[133∈5] ➊"}}:::plan + PgSelectRows134[["PgSelectRows[134∈5] ➊"]]:::plan + PgSelectRows134 --> First133 + PgSelect129 --> PgSelectRows134 + PgSelectSingle135{{"PgSelectSingle[135∈5] ➊
ᐸrelational_topicsᐳ"}}:::plan + First133 --> PgSelectSingle135 + First138{{"First[138∈5] ➊"}}:::plan + PgSelectRows139[["PgSelectRows[139∈5] ➊"]]:::plan + PgSelectRows139 --> First138 + PgSelect136 --> PgSelectRows139 + PgSelectSingle140{{"PgSelectSingle[140∈5] ➊
ᐸrelational_postsᐳ"}}:::plan + First138 --> PgSelectSingle140 + PgClassExpression141{{"PgClassExpression[141∈5] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle140 --> PgClassExpression141 + PgClassExpression142{{"PgClassExpression[142∈5] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle140 --> PgClassExpression142 + PgClassExpression143{{"PgClassExpression[143∈5] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle140 --> PgClassExpression143 + First146{{"First[146∈5] ➊"}}:::plan + PgSelectRows147[["PgSelectRows[147∈5] ➊"]]:::plan + PgSelectRows147 --> First146 + PgSelect144 --> PgSelectRows147 + PgSelectSingle148{{"PgSelectSingle[148∈5] ➊
ᐸrelational_dividersᐳ"}}:::plan + First146 --> PgSelectSingle148 + First151{{"First[151∈5] ➊"}}:::plan + PgSelectRows152[["PgSelectRows[152∈5] ➊"]]:::plan + PgSelectRows152 --> First151 + PgSelect149 --> PgSelectRows152 + PgSelectSingle153{{"PgSelectSingle[153∈5] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First151 --> PgSelectSingle153 + First156{{"First[156∈5] ➊"}}:::plan + PgSelectRows157[["PgSelectRows[157∈5] ➊"]]:::plan + PgSelectRows157 --> First156 + PgSelect154 --> PgSelectRows157 + PgSelectSingle158{{"PgSelectSingle[158∈5] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First156 --> PgSelectSingle158 + PgInsertSingle171[["PgInsertSingle[171∈6] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Object168{{"Object[168∈6] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgClassExpression169{{"PgClassExpression[169∈6] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object168 & PgClassExpression169 & Constant303 & Constant304 & Constant305 --> PgInsertSingle171 + PgInsertSingle165[["PgInsertSingle[165∈6] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + Object168 & Constant10 & Constant11 --> PgInsertSingle165 + Access166{{"Access[166∈6] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access167{{"Access[167∈6] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access166 & Access167 --> Object168 + PgSelect178[["PgSelect[178∈6] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object168 & Constant300 --> PgSelect178 + PgPolymorphic184{{"PgPolymorphic[184∈6] ➊"}}:::plan + PgSelectSingle182{{"PgSelectSingle[182∈6] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression183{{"PgClassExpression[183∈6] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle182 & PgClassExpression183 --> PgPolymorphic184 + PgSelect217[["PgSelect[217∈6] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object168 & Constant301 --> PgSelect217 + PgPolymorphic223{{"PgPolymorphic[223∈6] ➊"}}:::plan + PgSelectSingle221{{"PgSelectSingle[221∈6] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression222{{"PgClassExpression[222∈6] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle221 & PgClassExpression222 --> PgPolymorphic223 + PgSelect256[["PgSelect[256∈6] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object168 & Constant302 --> PgSelect256 + PgPolymorphic262{{"PgPolymorphic[262∈6] ➊"}}:::plan + PgSelectSingle260{{"PgSelectSingle[260∈6] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression261{{"PgClassExpression[261∈6] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle260 & PgClassExpression261 --> PgPolymorphic262 + __Value2 --> Access166 + __Value2 --> Access167 + Access170{{"Access[170∈6] ➊
ᐸ165.tᐳ"}}:::plan + Access170 --> PgClassExpression169 + PgInsertSingle165 --> Access170 + PgClassExpression175{{"PgClassExpression[175∈6] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access176{{"Access[176∈6] ➊
ᐸ171.tᐳ"}}:::plan + Access176 --> PgClassExpression175 + PgInsertSingle171 --> Access176 + First180{{"First[180∈6] ➊"}}:::plan + PgSelectRows181[["PgSelectRows[181∈6] ➊"]]:::plan + PgSelectRows181 --> First180 + PgSelect178 --> PgSelectRows181 + First180 --> PgSelectSingle182 + PgSelectSingle182 --> PgClassExpression183 + First219{{"First[219∈6] ➊"}}:::plan + PgSelectRows220[["PgSelectRows[220∈6] ➊"]]:::plan + PgSelectRows220 --> First219 + PgSelect217 --> PgSelectRows220 + First219 --> PgSelectSingle221 + PgSelectSingle221 --> PgClassExpression222 + First258{{"First[258∈6] ➊"}}:::plan + PgSelectRows259[["PgSelectRows[259∈6] ➊"]]:::plan + PgSelectRows259 --> First258 + PgSelect256 --> PgSelectRows259 + First258 --> PgSelectSingle260 + PgSelectSingle260 --> PgClassExpression261 + PgSelect186[["PgSelect[186∈7] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression185{{"PgClassExpression[185∈7] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object168 & PgClassExpression185 --> PgSelect186 + PgSelect193[["PgSelect[193∈7] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object168 & PgClassExpression185 --> PgSelect193 + PgSelect201[["PgSelect[201∈7] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object168 & PgClassExpression185 --> PgSelect201 + PgSelect206[["PgSelect[206∈7] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object168 & PgClassExpression185 --> PgSelect206 + PgSelect211[["PgSelect[211∈7] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object168 & PgClassExpression185 --> PgSelect211 + PgSelectSingle182 --> PgClassExpression185 + First190{{"First[190∈7] ➊"}}:::plan + PgSelectRows191[["PgSelectRows[191∈7] ➊"]]:::plan + PgSelectRows191 --> First190 + PgSelect186 --> PgSelectRows191 + PgSelectSingle192{{"PgSelectSingle[192∈7] ➊
ᐸrelational_topicsᐳ"}}:::plan + First190 --> PgSelectSingle192 + First195{{"First[195∈7] ➊"}}:::plan + PgSelectRows196[["PgSelectRows[196∈7] ➊"]]:::plan + PgSelectRows196 --> First195 + PgSelect193 --> PgSelectRows196 + PgSelectSingle197{{"PgSelectSingle[197∈7] ➊
ᐸrelational_postsᐳ"}}:::plan + First195 --> PgSelectSingle197 + PgClassExpression198{{"PgClassExpression[198∈7] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle197 --> PgClassExpression198 + PgClassExpression199{{"PgClassExpression[199∈7] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle197 --> PgClassExpression199 + PgClassExpression200{{"PgClassExpression[200∈7] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle197 --> PgClassExpression200 + First203{{"First[203∈7] ➊"}}:::plan + PgSelectRows204[["PgSelectRows[204∈7] ➊"]]:::plan + PgSelectRows204 --> First203 + PgSelect201 --> PgSelectRows204 + PgSelectSingle205{{"PgSelectSingle[205∈7] ➊
ᐸrelational_dividersᐳ"}}:::plan + First203 --> PgSelectSingle205 + First208{{"First[208∈7] ➊"}}:::plan + PgSelectRows209[["PgSelectRows[209∈7] ➊"]]:::plan + PgSelectRows209 --> First208 + PgSelect206 --> PgSelectRows209 + PgSelectSingle210{{"PgSelectSingle[210∈7] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First208 --> PgSelectSingle210 + First213{{"First[213∈7] ➊"}}:::plan + PgSelectRows214[["PgSelectRows[214∈7] ➊"]]:::plan + PgSelectRows214 --> First213 + PgSelect211 --> PgSelectRows214 + PgSelectSingle215{{"PgSelectSingle[215∈7] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First213 --> PgSelectSingle215 + PgSelect225[["PgSelect[225∈8] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression224{{"PgClassExpression[224∈8] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object168 & PgClassExpression224 --> PgSelect225 + PgSelect232[["PgSelect[232∈8] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object168 & PgClassExpression224 --> PgSelect232 + PgSelect240[["PgSelect[240∈8] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object168 & PgClassExpression224 --> PgSelect240 + PgSelect245[["PgSelect[245∈8] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object168 & PgClassExpression224 --> PgSelect245 + PgSelect250[["PgSelect[250∈8] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object168 & PgClassExpression224 --> PgSelect250 + PgSelectSingle221 --> PgClassExpression224 + First229{{"First[229∈8] ➊"}}:::plan + PgSelectRows230[["PgSelectRows[230∈8] ➊"]]:::plan + PgSelectRows230 --> First229 + PgSelect225 --> PgSelectRows230 + PgSelectSingle231{{"PgSelectSingle[231∈8] ➊
ᐸrelational_topicsᐳ"}}:::plan + First229 --> PgSelectSingle231 + First234{{"First[234∈8] ➊"}}:::plan + PgSelectRows235[["PgSelectRows[235∈8] ➊"]]:::plan + PgSelectRows235 --> First234 + PgSelect232 --> PgSelectRows235 + PgSelectSingle236{{"PgSelectSingle[236∈8] ➊
ᐸrelational_postsᐳ"}}:::plan + First234 --> PgSelectSingle236 + PgClassExpression237{{"PgClassExpression[237∈8] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle236 --> PgClassExpression237 + PgClassExpression238{{"PgClassExpression[238∈8] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle236 --> PgClassExpression238 + PgClassExpression239{{"PgClassExpression[239∈8] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle236 --> PgClassExpression239 + First242{{"First[242∈8] ➊"}}:::plan + PgSelectRows243[["PgSelectRows[243∈8] ➊"]]:::plan + PgSelectRows243 --> First242 + PgSelect240 --> PgSelectRows243 + PgSelectSingle244{{"PgSelectSingle[244∈8] ➊
ᐸrelational_dividersᐳ"}}:::plan + First242 --> PgSelectSingle244 + First247{{"First[247∈8] ➊"}}:::plan + PgSelectRows248[["PgSelectRows[248∈8] ➊"]]:::plan + PgSelectRows248 --> First247 + PgSelect245 --> PgSelectRows248 + PgSelectSingle249{{"PgSelectSingle[249∈8] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First247 --> PgSelectSingle249 + First252{{"First[252∈8] ➊"}}:::plan + PgSelectRows253[["PgSelectRows[253∈8] ➊"]]:::plan + PgSelectRows253 --> First252 + PgSelect250 --> PgSelectRows253 + PgSelectSingle254{{"PgSelectSingle[254∈8] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First252 --> PgSelectSingle254 + PgSelect264[["PgSelect[264∈9] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression263{{"PgClassExpression[263∈9] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object168 & PgClassExpression263 --> PgSelect264 + PgSelect271[["PgSelect[271∈9] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object168 & PgClassExpression263 --> PgSelect271 + PgSelect279[["PgSelect[279∈9] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object168 & PgClassExpression263 --> PgSelect279 + PgSelect284[["PgSelect[284∈9] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object168 & PgClassExpression263 --> PgSelect284 + PgSelect289[["PgSelect[289∈9] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object168 & PgClassExpression263 --> PgSelect289 + PgSelectSingle260 --> PgClassExpression263 + First268{{"First[268∈9] ➊"}}:::plan + PgSelectRows269[["PgSelectRows[269∈9] ➊"]]:::plan + PgSelectRows269 --> First268 + PgSelect264 --> PgSelectRows269 + PgSelectSingle270{{"PgSelectSingle[270∈9] ➊
ᐸrelational_topicsᐳ"}}:::plan + First268 --> PgSelectSingle270 + First273{{"First[273∈9] ➊"}}:::plan + PgSelectRows274[["PgSelectRows[274∈9] ➊"]]:::plan + PgSelectRows274 --> First273 + PgSelect271 --> PgSelectRows274 + PgSelectSingle275{{"PgSelectSingle[275∈9] ➊
ᐸrelational_postsᐳ"}}:::plan + First273 --> PgSelectSingle275 + PgClassExpression276{{"PgClassExpression[276∈9] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle275 --> PgClassExpression276 + PgClassExpression277{{"PgClassExpression[277∈9] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle275 --> PgClassExpression277 + PgClassExpression278{{"PgClassExpression[278∈9] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle275 --> PgClassExpression278 + First281{{"First[281∈9] ➊"}}:::plan + PgSelectRows282[["PgSelectRows[282∈9] ➊"]]:::plan + PgSelectRows282 --> First281 + PgSelect279 --> PgSelectRows282 + PgSelectSingle283{{"PgSelectSingle[283∈9] ➊
ᐸrelational_dividersᐳ"}}:::plan + First281 --> PgSelectSingle283 + First286{{"First[286∈9] ➊"}}:::plan + PgSelectRows287[["PgSelectRows[287∈9] ➊"]]:::plan + PgSelectRows287 --> First286 + PgSelect284 --> PgSelectRows287 + PgSelectSingle288{{"PgSelectSingle[288∈9] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First286 --> PgSelectSingle288 + First291{{"First[291∈9] ➊"}}:::plan + PgSelectRows292[["PgSelectRows[292∈9] ➊"]]:::plan + PgSelectRows292 --> First291 + PgSelect289 --> PgSelectRows292 + PgSelectSingle293{{"PgSelectSingle[293∈9] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First291 --> PgSelectSingle293 %% define steps + %% implicit side effects + PgInsertSingle36 -.-o PgSelect43 + PgInsertSingle36 -.-o PgPolymorphic49 + PgInsertSingle36 -.-o PgSelect82 + PgInsertSingle36 -.-o PgPolymorphic88 + PgInsertSingle36 -.-o PgSelect121 + PgInsertSingle36 -.-o PgPolymorphic127 + PgInsertSingle36 -.-o First45 + PgInsertSingle36 -.-o PgSelectRows46 + PgInsertSingle36 -.-o PgSelectSingle47 + PgInsertSingle36 -.-o PgClassExpression48 + PgInsertSingle36 -.-o First84 + PgInsertSingle36 -.-o PgSelectRows85 + PgInsertSingle36 -.-o PgSelectSingle86 + PgInsertSingle36 -.-o PgClassExpression87 + PgInsertSingle36 -.-o First123 + PgInsertSingle36 -.-o PgSelectRows124 + PgInsertSingle36 -.-o PgSelectSingle125 + PgInsertSingle36 -.-o PgClassExpression126 + PgInsertSingle171 -.-o PgSelect178 + PgInsertSingle171 -.-o PgPolymorphic184 + PgInsertSingle171 -.-o PgSelect217 + PgInsertSingle171 -.-o PgPolymorphic223 + PgInsertSingle171 -.-o PgSelect256 + PgInsertSingle171 -.-o PgPolymorphic262 + PgInsertSingle171 -.-o First180 + PgInsertSingle171 -.-o PgSelectRows181 + PgInsertSingle171 -.-o PgSelectSingle182 + PgInsertSingle171 -.-o PgClassExpression183 + PgInsertSingle171 -.-o First219 + PgInsertSingle171 -.-o PgSelectRows220 + PgInsertSingle171 -.-o PgSelectSingle221 + PgInsertSingle171 -.-o PgClassExpression222 + PgInsertSingle171 -.-o First258 + PgInsertSingle171 -.-o PgSelectRows259 + PgInsertSingle171 -.-o PgSelectSingle260 + PgInsertSingle171 -.-o PgClassExpression261 + subgraph "Buckets for mutations/basics/create-relational-post-no-query" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant292,Constant293,Constant294,Constant295,Constant296,Constant297,Constant298,Constant299,Constant300,Constant301,Constant302,Constant303 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 292, 293, 294

1: PgInsertSingle[12]
2: PgClassExpression[16]
3: PgInsertSingle[17]
4:
ᐳ: PgClassExpression[21]"):::bucket + class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant294,Constant295,Constant296,Constant297,Constant298,Constant299,Constant300,Constant301,Constant302,Constant303,Constant304,Constant305 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 294, 295, 296

1: PgInsertSingle[12]
2: Access[17]
3: PgClassExpression[16]
4: PgInsertSingle[18]
5:
ᐳ: Access[23], PgClassExpression[22]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle12,PgClassExpression16,PgInsertSingle17,PgClassExpression21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 21

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[21]"):::bucket + class Bucket1,PgInsertSingle12,PgClassExpression16,Access17,PgInsertSingle18,PgClassExpression22,Access23 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 10, 11, 2, 297, 298, 299, 300, 301, 302, 4

1: Access[31]
2: Access[32]
3: Object[33]
4: PgInsertSingle[30]
5: Access[35]
6: PgClassExpression[34]
7: PgInsertSingle[36]
8: 43, 82, 121
ᐳ: Access[41], PgClassExpression[40]
9: 46, 85, 124
ᐳ: 45, 47, 48, 49, 84, 86, 87, 88, 123, 125, 126, 127"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (mutationField)
Deps: 10, 11, 2, 295, 296, 297, 298, 299, 300, 4

1: Access[29]
2: Access[30]
3: Object[31]
4: PgInsertSingle[28]
5: PgClassExpression[32]
6: PgInsertSingle[33]
7:
ᐳ: PgClassExpression[37]"):::bucket + class Bucket2,PgInsertSingle30,Access31,Access32,Object33,PgClassExpression34,Access35,PgInsertSingle36,PgClassExpression40,Access41,PgSelect43,First45,PgSelectRows46,PgSelectSingle47,PgClassExpression48,PgPolymorphic49,PgSelect82,First84,PgSelectRows85,PgSelectSingle86,PgClassExpression87,PgPolymorphic88,PgSelect121,First123,PgSelectRows124,PgSelectSingle125,PgClassExpression126,PgPolymorphic127 bucket2 + Bucket3("Bucket 3 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 36
Deps: 47, 33, 49
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[50]
2: 51, 58, 66, 71, 76
3: 56, 61, 69, 74, 79
ᐳ: 55, 57, 60, 62, 63, 64, 65, 68, 70, 73, 75, 78, 80"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgInsertSingle28,Access29,Access30,Object31,PgClassExpression32,PgInsertSingle33,PgClassExpression37 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31, 298, 299, 300, 37, 4

ROOT PgClassExpression{3}ᐸ__relational_posts__ᐳ[37]
1: 39, 80, 119
2: 44, 83, 122
ᐳ: 43, 45, 46, 47, 48, 82, 84, 85, 86, 87, 121, 123, 124, 125, 126"):::bucket + class Bucket3,PgClassExpression50,PgSelect51,First55,PgSelectRows56,PgSelectSingle57,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgClassExpression63,PgClassExpression64,PgClassExpression65,PgSelect66,First68,PgSelectRows69,PgSelectSingle70,PgSelect71,First73,PgSelectRows74,PgSelectSingle75,PgSelect76,First78,PgSelectRows79,PgSelectSingle80 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 36
Deps: 86, 33, 88
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[89]
2: 90, 97, 105, 110, 115
3: 95, 100, 108, 113, 118
ᐳ: 94, 96, 99, 101, 102, 103, 104, 107, 109, 112, 114, 117, 119"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect39,First43,PgSelectRows44,PgSelectSingle45,PgClassExpression46,PgPolymorphic47,PgClassExpression48,PgSelect80,First82,PgSelectRows83,PgSelectSingle84,PgClassExpression85,PgPolymorphic86,PgClassExpression87,PgSelect119,First121,PgSelectRows122,PgSelectSingle123,PgClassExpression124,PgPolymorphic125,PgClassExpression126 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 4, 31, 48, 47, 87, 86, 126, 125

ROOT __ValueᐸrootValueᐳ[4]"):::bucket + class Bucket4,PgClassExpression89,PgSelect90,First94,PgSelectRows95,PgSelectSingle96,PgSelect97,First99,PgSelectRows100,PgSelectSingle101,PgClassExpression102,PgClassExpression103,PgClassExpression104,PgSelect105,First107,PgSelectRows108,PgSelectSingle109,PgSelect110,First112,PgSelectRows113,PgSelectSingle114,PgSelect115,First117,PgSelectRows118,PgSelectSingle119 bucket4 + Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 36
Deps: 125, 33, 127
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[128]
2: 129, 136, 144, 149, 154
3: 134, 139, 147, 152, 157
ᐳ: 133, 135, 138, 140, 141, 142, 143, 146, 148, 151, 153, 156, 158"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5 bucket5 - Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 31, 48, 47
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 49, 56, 64, 69, 74
2: 54, 59, 67, 72, 77
ᐳ: 53, 55, 58, 60, 61, 62, 63, 66, 68, 71, 73, 76, 78"):::bucket + class Bucket5,PgClassExpression128,PgSelect129,First133,PgSelectRows134,PgSelectSingle135,PgSelect136,First138,PgSelectRows139,PgSelectSingle140,PgClassExpression141,PgClassExpression142,PgClassExpression143,PgSelect144,First146,PgSelectRows147,PgSelectSingle148,PgSelect149,First151,PgSelectRows152,PgSelectSingle153,PgSelect154,First156,PgSelectRows157,PgSelectSingle158 bucket5 + Bucket6("Bucket 6 (mutationField)
Deps: 10, 11, 2, 303, 304, 305, 300, 301, 302, 4

1: Access[166]
2: Access[167]
3: Object[168]
4: PgInsertSingle[165]
5: Access[170]
6: PgClassExpression[169]
7: PgInsertSingle[171]
8: 178, 217, 256
ᐳ: Access[176], PgClassExpression[175]
9: 181, 220, 259
ᐳ: 180, 182, 183, 184, 219, 221, 222, 223, 258, 260, 261, 262"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect49,First53,PgSelectRows54,PgSelectSingle55,PgSelect56,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61,PgClassExpression62,PgClassExpression63,PgSelect64,First66,PgSelectRows67,PgSelectSingle68,PgSelect69,First71,PgSelectRows72,PgSelectSingle73,PgSelect74,First76,PgSelectRows77,PgSelectSingle78 bucket6 - Bucket7("Bucket 7 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 31, 87, 86
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 88, 95, 103, 108, 113
2: 93, 98, 106, 111, 116
ᐳ: 92, 94, 97, 99, 100, 101, 102, 105, 107, 110, 112, 115, 117"):::bucket + class Bucket6,PgInsertSingle165,Access166,Access167,Object168,PgClassExpression169,Access170,PgInsertSingle171,PgClassExpression175,Access176,PgSelect178,First180,PgSelectRows181,PgSelectSingle182,PgClassExpression183,PgPolymorphic184,PgSelect217,First219,PgSelectRows220,PgSelectSingle221,PgClassExpression222,PgPolymorphic223,PgSelect256,First258,PgSelectRows259,PgSelectSingle260,PgClassExpression261,PgPolymorphic262 bucket6 + Bucket7("Bucket 7 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 171
Deps: 182, 168, 184
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[185]
2: 186, 193, 201, 206, 211
3: 191, 196, 204, 209, 214
ᐳ: 190, 192, 195, 197, 198, 199, 200, 203, 205, 208, 210, 213, 215"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgSelect88,First92,PgSelectRows93,PgSelectSingle94,PgSelect95,First97,PgSelectRows98,PgSelectSingle99,PgClassExpression100,PgClassExpression101,PgClassExpression102,PgSelect103,First105,PgSelectRows106,PgSelectSingle107,PgSelect108,First110,PgSelectRows111,PgSelectSingle112,PgSelect113,First115,PgSelectRows116,PgSelectSingle117 bucket7 - Bucket8("Bucket 8 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 31, 126, 125
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 127, 134, 142, 147, 152
2: 132, 137, 145, 150, 155
ᐳ: 131, 133, 136, 138, 139, 140, 141, 144, 146, 149, 151, 154, 156"):::bucket + class Bucket7,PgClassExpression185,PgSelect186,First190,PgSelectRows191,PgSelectSingle192,PgSelect193,First195,PgSelectRows196,PgSelectSingle197,PgClassExpression198,PgClassExpression199,PgClassExpression200,PgSelect201,First203,PgSelectRows204,PgSelectSingle205,PgSelect206,First208,PgSelectRows209,PgSelectSingle210,PgSelect211,First213,PgSelectRows214,PgSelectSingle215 bucket7 + Bucket8("Bucket 8 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 171
Deps: 221, 168, 223
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[224]
2: 225, 232, 240, 245, 250
3: 230, 235, 243, 248, 253
ᐳ: 229, 231, 234, 236, 237, 238, 239, 242, 244, 247, 249, 252, 254"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,PgSelect127,First131,PgSelectRows132,PgSelectSingle133,PgSelect134,First136,PgSelectRows137,PgSelectSingle138,PgClassExpression139,PgClassExpression140,PgClassExpression141,PgSelect142,First144,PgSelectRows145,PgSelectSingle146,PgSelect147,First149,PgSelectRows150,PgSelectSingle151,PgSelect152,First154,PgSelectRows155,PgSelectSingle156 bucket8 - Bucket9("Bucket 9 (mutationField)
Deps: 10, 11, 2, 301, 302, 303, 298, 299, 300, 4

1: Access[164]
2: Access[165]
3: Object[166]
4: PgInsertSingle[163]
5: PgClassExpression[167]
6: PgInsertSingle[168]
7:
ᐳ: PgClassExpression[172]"):::bucket + class Bucket8,PgClassExpression224,PgSelect225,First229,PgSelectRows230,PgSelectSingle231,PgSelect232,First234,PgSelectRows235,PgSelectSingle236,PgClassExpression237,PgClassExpression238,PgClassExpression239,PgSelect240,First242,PgSelectRows243,PgSelectSingle244,PgSelect245,First247,PgSelectRows248,PgSelectSingle249,PgSelect250,First252,PgSelectRows253,PgSelectSingle254 bucket8 + Bucket9("Bucket 9 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 171
Deps: 260, 168, 262
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[263]
2: 264, 271, 279, 284, 289
3: 269, 274, 282, 287, 292
ᐳ: 268, 270, 273, 275, 276, 277, 278, 281, 283, 286, 288, 291, 293"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,PgInsertSingle163,Access164,Access165,Object166,PgClassExpression167,PgInsertSingle168,PgClassExpression172 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 166, 298, 299, 300, 172, 4

ROOT PgClassExpression{9}ᐸ__relational_posts__ᐳ[172]
1: 174, 215, 254
2: 179, 218, 257
ᐳ: 178, 180, 181, 182, 183, 217, 219, 220, 221, 222, 256, 258, 259, 260, 261"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgSelect174,First178,PgSelectRows179,PgSelectSingle180,PgClassExpression181,PgPolymorphic182,PgClassExpression183,PgSelect215,First217,PgSelectRows218,PgSelectSingle219,PgClassExpression220,PgPolymorphic221,PgClassExpression222,PgSelect254,First256,PgSelectRows257,PgSelectSingle258,PgClassExpression259,PgPolymorphic260,PgClassExpression261 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 4, 166, 183, 182, 222, 221, 261, 260

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11 bucket11 - Bucket12("Bucket 12 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 166, 183, 182
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 184, 191, 199, 204, 209
2: 189, 194, 202, 207, 212
ᐳ: 188, 190, 193, 195, 196, 197, 198, 201, 203, 206, 208, 211, 213"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgSelect184,First188,PgSelectRows189,PgSelectSingle190,PgSelect191,First193,PgSelectRows194,PgSelectSingle195,PgClassExpression196,PgClassExpression197,PgClassExpression198,PgSelect199,First201,PgSelectRows202,PgSelectSingle203,PgSelect204,First206,PgSelectRows207,PgSelectSingle208,PgSelect209,First211,PgSelectRows212,PgSelectSingle213 bucket12 - Bucket13("Bucket 13 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 166, 222, 221
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 223, 230, 238, 243, 248
2: 228, 233, 241, 246, 251
ᐳ: 227, 229, 232, 234, 235, 236, 237, 240, 242, 245, 247, 250, 252"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,PgSelect223,First227,PgSelectRows228,PgSelectSingle229,PgSelect230,First232,PgSelectRows233,PgSelectSingle234,PgClassExpression235,PgClassExpression236,PgClassExpression237,PgSelect238,First240,PgSelectRows241,PgSelectSingle242,PgSelect243,First245,PgSelectRows246,PgSelectSingle247,PgSelect248,First250,PgSelectRows251,PgSelectSingle252 bucket13 - Bucket14("Bucket 14 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 166, 261, 260
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 262, 269, 277, 282, 287
2: 267, 272, 280, 285, 290
ᐳ: 266, 268, 271, 273, 274, 275, 276, 279, 281, 284, 286, 289, 291"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,PgSelect262,First266,PgSelectRows267,PgSelectSingle268,PgSelect269,First271,PgSelectRows272,PgSelectSingle273,PgClassExpression274,PgClassExpression275,PgClassExpression276,PgSelect277,First279,PgSelectRows280,PgSelectSingle281,PgSelect282,First284,PgSelectRows285,PgSelectSingle286,PgSelect287,First289,PgSelectRows290,PgSelectSingle291 bucket14 - Bucket0 --> Bucket1 & Bucket3 & Bucket9 - Bucket1 --> Bucket2 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket7 & Bucket8 - Bucket9 --> Bucket10 - Bucket10 --> Bucket11 - Bucket11 --> Bucket12 & Bucket13 & Bucket14 + class Bucket9,PgClassExpression263,PgSelect264,First268,PgSelectRows269,PgSelectSingle270,PgSelect271,First273,PgSelectRows274,PgSelectSingle275,PgClassExpression276,PgClassExpression277,PgClassExpression278,PgSelect279,First281,PgSelectRows282,PgSelectSingle283,PgSelect284,First286,PgSelectRows287,PgSelectSingle288,PgSelect289,First291,PgSelectRows292,PgSelectSingle293 bucket9 + Bucket0 --> Bucket1 & Bucket2 & Bucket6 + Bucket2 --> Bucket3 & Bucket4 & Bucket5 + Bucket6 --> Bucket7 & Bucket8 & Bucket9 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-no-query.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-no-query.mermaid index 2c577b1382..ee31e6da26 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-no-query.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-no-query.mermaid @@ -19,469 +19,499 @@ graph TD __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan Constant10{{"Constant[10∈0] ➊
ᐸ'POST'ᐳ"}}:::plan Constant11{{"Constant[11∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant292{{"Constant[292∈0] ➊
ᐸ'My Relational Post 1'ᐳ"}}:::plan - Constant293{{"Constant[293∈0] ➊
ᐸ'A post, innit? 1'ᐳ"}}:::plan - Constant294{{"Constant[294∈0] ➊
ᐸ'Such a great post. 1'ᐳ"}}:::plan - Constant295{{"Constant[295∈0] ➊
ᐸ'My Relational Post 2'ᐳ"}}:::plan - Constant296{{"Constant[296∈0] ➊
ᐸ'A post, innit? 2'ᐳ"}}:::plan - Constant297{{"Constant[297∈0] ➊
ᐸ'Such a great post. 2'ᐳ"}}:::plan - Constant298{{"Constant[298∈0] ➊
ᐸ1000000ᐳ"}}:::plan - Constant299{{"Constant[299∈0] ➊
ᐸ1000001ᐳ"}}:::plan - Constant300{{"Constant[300∈0] ➊
ᐸ1000002ᐳ"}}:::plan - Constant301{{"Constant[301∈0] ➊
ᐸ'My Relational Post 3'ᐳ"}}:::plan - Constant302{{"Constant[302∈0] ➊
ᐸ'A post, innit? 3'ᐳ"}}:::plan - Constant303{{"Constant[303∈0] ➊
ᐸ'Such a great post. 3'ᐳ"}}:::plan - PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Constant294{{"Constant[294∈0] ➊
ᐸ'My Relational Post 1'ᐳ"}}:::plan + Constant295{{"Constant[295∈0] ➊
ᐸ'A post, innit? 1'ᐳ"}}:::plan + Constant296{{"Constant[296∈0] ➊
ᐸ'Such a great post. 1'ᐳ"}}:::plan + Constant297{{"Constant[297∈0] ➊
ᐸ'My Relational Post 2'ᐳ"}}:::plan + Constant298{{"Constant[298∈0] ➊
ᐸ'A post, innit? 2'ᐳ"}}:::plan + Constant299{{"Constant[299∈0] ➊
ᐸ'Such a great post. 2'ᐳ"}}:::plan + Constant300{{"Constant[300∈0] ➊
ᐸ1000000ᐳ"}}:::plan + Constant301{{"Constant[301∈0] ➊
ᐸ1000001ᐳ"}}:::plan + Constant302{{"Constant[302∈0] ➊
ᐸ1000002ᐳ"}}:::plan + Constant303{{"Constant[303∈0] ➊
ᐸ'My Relational Post 3'ᐳ"}}:::plan + Constant304{{"Constant[304∈0] ➊
ᐸ'A post, innit? 3'ᐳ"}}:::plan + Constant305{{"Constant[305∈0] ➊
ᐸ'Such a great post. 3'ᐳ"}}:::plan + PgInsertSingle18[["PgInsertSingle[18∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object15 & PgClassExpression16 & Constant292 & Constant293 & Constant294 --> PgInsertSingle17 + Object15 & PgClassExpression16 & Constant294 & Constant295 & Constant296 --> PgInsertSingle18 PgInsertSingle12[["PgInsertSingle[12∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object15 & Constant10 & Constant11 --> PgInsertSingle12 - PgInsertSingle12 --> PgClassExpression16 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression21 - PgInsertSingle33[["PgInsertSingle[33∈3] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - Object31{{"Object[31∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object31 & PgClassExpression32 & Constant295 & Constant296 & Constant297 --> PgInsertSingle33 - PgInsertSingle28[["PgInsertSingle[28∈3] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan - Object31 & Constant10 & Constant11 --> PgInsertSingle28 - Access29{{"Access[29∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access30{{"Access[30∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access29 & Access30 --> Object31 - __Value2 --> Access29 - __Value2 --> Access30 - PgInsertSingle28 --> PgClassExpression32 - PgClassExpression37{{"PgClassExpression[37∈3] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle33 --> PgClassExpression37 - PgSelect39[["PgSelect[39∈4] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object31 & Constant298 --> PgSelect39 - PgPolymorphic47{{"PgPolymorphic[47∈4] ➊"}}:::plan - PgSelectSingle45{{"PgSelectSingle[45∈4] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression46{{"PgClassExpression[46∈4] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle45 & PgClassExpression46 --> PgPolymorphic47 - PgSelect80[["PgSelect[80∈4] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object31 & Constant299 --> PgSelect80 - PgPolymorphic86{{"PgPolymorphic[86∈4] ➊"}}:::plan - PgSelectSingle84{{"PgSelectSingle[84∈4] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression85{{"PgClassExpression[85∈4] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle84 & PgClassExpression85 --> PgPolymorphic86 - PgSelect119[["PgSelect[119∈4] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object31 & Constant300 --> PgSelect119 - PgPolymorphic125{{"PgPolymorphic[125∈4] ➊"}}:::plan - PgSelectSingle123{{"PgSelectSingle[123∈4] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression124{{"PgClassExpression[124∈4] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle123 & PgClassExpression124 --> PgPolymorphic125 - First43{{"First[43∈4] ➊"}}:::plan - PgSelectRows44[["PgSelectRows[44∈4] ➊"]]:::plan - PgSelectRows44 --> First43 - PgSelect39 --> PgSelectRows44 - First43 --> PgSelectSingle45 - PgSelectSingle45 --> PgClassExpression46 - PgClassExpression48{{"PgClassExpression[48∈4] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression48 - First82{{"First[82∈4] ➊"}}:::plan - PgSelectRows83[["PgSelectRows[83∈4] ➊"]]:::plan - PgSelectRows83 --> First82 - PgSelect80 --> PgSelectRows83 - First82 --> PgSelectSingle84 - PgSelectSingle84 --> PgClassExpression85 - PgClassExpression87{{"PgClassExpression[87∈4] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle84 --> PgClassExpression87 - First121{{"First[121∈4] ➊"}}:::plan - PgSelectRows122[["PgSelectRows[122∈4] ➊"]]:::plan - PgSelectRows122 --> First121 - PgSelect119 --> PgSelectRows122 - First121 --> PgSelectSingle123 - PgSelectSingle123 --> PgClassExpression124 - PgClassExpression126{{"PgClassExpression[126∈4] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle123 --> PgClassExpression126 - PgSelect49[["PgSelect[49∈6] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object31 & PgClassExpression48 --> PgSelect49 - PgSelect56[["PgSelect[56∈6] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object31 & PgClassExpression48 --> PgSelect56 - PgSelect64[["PgSelect[64∈6] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object31 & PgClassExpression48 --> PgSelect64 - PgSelect69[["PgSelect[69∈6] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object31 & PgClassExpression48 --> PgSelect69 - PgSelect74[["PgSelect[74∈6] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object31 & PgClassExpression48 --> PgSelect74 - First53{{"First[53∈6] ➊"}}:::plan - PgSelectRows54[["PgSelectRows[54∈6] ➊"]]:::plan - PgSelectRows54 --> First53 - PgSelect49 --> PgSelectRows54 - PgSelectSingle55{{"PgSelectSingle[55∈6] ➊
ᐸrelational_topicsᐳ"}}:::plan - First53 --> PgSelectSingle55 - First58{{"First[58∈6] ➊"}}:::plan - PgSelectRows59[["PgSelectRows[59∈6] ➊"]]:::plan - PgSelectRows59 --> First58 - PgSelect56 --> PgSelectRows59 - PgSelectSingle60{{"PgSelectSingle[60∈6] ➊
ᐸrelational_postsᐳ"}}:::plan - First58 --> PgSelectSingle60 - PgClassExpression61{{"PgClassExpression[61∈6] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle60 --> PgClassExpression61 - PgClassExpression62{{"PgClassExpression[62∈6] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle60 --> PgClassExpression62 - PgClassExpression63{{"PgClassExpression[63∈6] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle60 --> PgClassExpression63 - First66{{"First[66∈6] ➊"}}:::plan - PgSelectRows67[["PgSelectRows[67∈6] ➊"]]:::plan - PgSelectRows67 --> First66 - PgSelect64 --> PgSelectRows67 - PgSelectSingle68{{"PgSelectSingle[68∈6] ➊
ᐸrelational_dividersᐳ"}}:::plan - First66 --> PgSelectSingle68 - First71{{"First[71∈6] ➊"}}:::plan - PgSelectRows72[["PgSelectRows[72∈6] ➊"]]:::plan - PgSelectRows72 --> First71 - PgSelect69 --> PgSelectRows72 - PgSelectSingle73{{"PgSelectSingle[73∈6] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First71 --> PgSelectSingle73 - First76{{"First[76∈6] ➊"}}:::plan - PgSelectRows77[["PgSelectRows[77∈6] ➊"]]:::plan - PgSelectRows77 --> First76 - PgSelect74 --> PgSelectRows77 - PgSelectSingle78{{"PgSelectSingle[78∈6] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First76 --> PgSelectSingle78 - PgSelect88[["PgSelect[88∈7] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object31 & PgClassExpression87 --> PgSelect88 - PgSelect95[["PgSelect[95∈7] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object31 & PgClassExpression87 --> PgSelect95 - PgSelect103[["PgSelect[103∈7] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object31 & PgClassExpression87 --> PgSelect103 - PgSelect108[["PgSelect[108∈7] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object31 & PgClassExpression87 --> PgSelect108 - PgSelect113[["PgSelect[113∈7] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object31 & PgClassExpression87 --> PgSelect113 - First92{{"First[92∈7] ➊"}}:::plan - PgSelectRows93[["PgSelectRows[93∈7] ➊"]]:::plan - PgSelectRows93 --> First92 - PgSelect88 --> PgSelectRows93 - PgSelectSingle94{{"PgSelectSingle[94∈7] ➊
ᐸrelational_topicsᐳ"}}:::plan - First92 --> PgSelectSingle94 - First97{{"First[97∈7] ➊"}}:::plan - PgSelectRows98[["PgSelectRows[98∈7] ➊"]]:::plan - PgSelectRows98 --> First97 - PgSelect95 --> PgSelectRows98 - PgSelectSingle99{{"PgSelectSingle[99∈7] ➊
ᐸrelational_postsᐳ"}}:::plan - First97 --> PgSelectSingle99 - PgClassExpression100{{"PgClassExpression[100∈7] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle99 --> PgClassExpression100 - PgClassExpression101{{"PgClassExpression[101∈7] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle99 --> PgClassExpression101 - PgClassExpression102{{"PgClassExpression[102∈7] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle99 --> PgClassExpression102 - First105{{"First[105∈7] ➊"}}:::plan - PgSelectRows106[["PgSelectRows[106∈7] ➊"]]:::plan - PgSelectRows106 --> First105 - PgSelect103 --> PgSelectRows106 - PgSelectSingle107{{"PgSelectSingle[107∈7] ➊
ᐸrelational_dividersᐳ"}}:::plan - First105 --> PgSelectSingle107 - First110{{"First[110∈7] ➊"}}:::plan - PgSelectRows111[["PgSelectRows[111∈7] ➊"]]:::plan - PgSelectRows111 --> First110 - PgSelect108 --> PgSelectRows111 - PgSelectSingle112{{"PgSelectSingle[112∈7] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First110 --> PgSelectSingle112 - First115{{"First[115∈7] ➊"}}:::plan - PgSelectRows116[["PgSelectRows[116∈7] ➊"]]:::plan - PgSelectRows116 --> First115 - PgSelect113 --> PgSelectRows116 - PgSelectSingle117{{"PgSelectSingle[117∈7] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First115 --> PgSelectSingle117 - PgSelect127[["PgSelect[127∈8] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object31 & PgClassExpression126 --> PgSelect127 - PgSelect134[["PgSelect[134∈8] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object31 & PgClassExpression126 --> PgSelect134 - PgSelect142[["PgSelect[142∈8] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object31 & PgClassExpression126 --> PgSelect142 - PgSelect147[["PgSelect[147∈8] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object31 & PgClassExpression126 --> PgSelect147 - PgSelect152[["PgSelect[152∈8] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object31 & PgClassExpression126 --> PgSelect152 - First131{{"First[131∈8] ➊"}}:::plan - PgSelectRows132[["PgSelectRows[132∈8] ➊"]]:::plan - PgSelectRows132 --> First131 - PgSelect127 --> PgSelectRows132 - PgSelectSingle133{{"PgSelectSingle[133∈8] ➊
ᐸrelational_topicsᐳ"}}:::plan - First131 --> PgSelectSingle133 - First136{{"First[136∈8] ➊"}}:::plan - PgSelectRows137[["PgSelectRows[137∈8] ➊"]]:::plan - PgSelectRows137 --> First136 - PgSelect134 --> PgSelectRows137 - PgSelectSingle138{{"PgSelectSingle[138∈8] ➊
ᐸrelational_postsᐳ"}}:::plan - First136 --> PgSelectSingle138 - PgClassExpression139{{"PgClassExpression[139∈8] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle138 --> PgClassExpression139 - PgClassExpression140{{"PgClassExpression[140∈8] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle138 --> PgClassExpression140 - PgClassExpression141{{"PgClassExpression[141∈8] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle138 --> PgClassExpression141 - First144{{"First[144∈8] ➊"}}:::plan - PgSelectRows145[["PgSelectRows[145∈8] ➊"]]:::plan - PgSelectRows145 --> First144 - PgSelect142 --> PgSelectRows145 - PgSelectSingle146{{"PgSelectSingle[146∈8] ➊
ᐸrelational_dividersᐳ"}}:::plan - First144 --> PgSelectSingle146 - First149{{"First[149∈8] ➊"}}:::plan - PgSelectRows150[["PgSelectRows[150∈8] ➊"]]:::plan - PgSelectRows150 --> First149 - PgSelect147 --> PgSelectRows150 - PgSelectSingle151{{"PgSelectSingle[151∈8] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First149 --> PgSelectSingle151 - First154{{"First[154∈8] ➊"}}:::plan - PgSelectRows155[["PgSelectRows[155∈8] ➊"]]:::plan - PgSelectRows155 --> First154 - PgSelect152 --> PgSelectRows155 - PgSelectSingle156{{"PgSelectSingle[156∈8] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First154 --> PgSelectSingle156 - PgInsertSingle168[["PgInsertSingle[168∈9] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - Object166{{"Object[166∈9] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - PgClassExpression167{{"PgClassExpression[167∈9] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object166 & PgClassExpression167 & Constant301 & Constant302 & Constant303 --> PgInsertSingle168 - PgInsertSingle163[["PgInsertSingle[163∈9] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan - Object166 & Constant10 & Constant11 --> PgInsertSingle163 - Access164{{"Access[164∈9] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access165{{"Access[165∈9] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access164 & Access165 --> Object166 - __Value2 --> Access164 - __Value2 --> Access165 - PgInsertSingle163 --> PgClassExpression167 - PgClassExpression172{{"PgClassExpression[172∈9] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle168 --> PgClassExpression172 - PgSelect174[["PgSelect[174∈10] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object166 & Constant298 --> PgSelect174 - PgPolymorphic182{{"PgPolymorphic[182∈10] ➊"}}:::plan - PgSelectSingle180{{"PgSelectSingle[180∈10] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression181{{"PgClassExpression[181∈10] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle180 & PgClassExpression181 --> PgPolymorphic182 - PgSelect215[["PgSelect[215∈10] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object166 & Constant299 --> PgSelect215 - PgPolymorphic221{{"PgPolymorphic[221∈10] ➊"}}:::plan - PgSelectSingle219{{"PgSelectSingle[219∈10] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression220{{"PgClassExpression[220∈10] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle219 & PgClassExpression220 --> PgPolymorphic221 - PgSelect254[["PgSelect[254∈10] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object166 & Constant300 --> PgSelect254 - PgPolymorphic260{{"PgPolymorphic[260∈10] ➊"}}:::plan - PgSelectSingle258{{"PgSelectSingle[258∈10] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression259{{"PgClassExpression[259∈10] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle258 & PgClassExpression259 --> PgPolymorphic260 - First178{{"First[178∈10] ➊"}}:::plan - PgSelectRows179[["PgSelectRows[179∈10] ➊"]]:::plan - PgSelectRows179 --> First178 - PgSelect174 --> PgSelectRows179 - First178 --> PgSelectSingle180 - PgSelectSingle180 --> PgClassExpression181 - PgClassExpression183{{"PgClassExpression[183∈10] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle180 --> PgClassExpression183 - First217{{"First[217∈10] ➊"}}:::plan - PgSelectRows218[["PgSelectRows[218∈10] ➊"]]:::plan - PgSelectRows218 --> First217 - PgSelect215 --> PgSelectRows218 - First217 --> PgSelectSingle219 - PgSelectSingle219 --> PgClassExpression220 - PgClassExpression222{{"PgClassExpression[222∈10] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle219 --> PgClassExpression222 - First256{{"First[256∈10] ➊"}}:::plan - PgSelectRows257[["PgSelectRows[257∈10] ➊"]]:::plan - PgSelectRows257 --> First256 - PgSelect254 --> PgSelectRows257 - First256 --> PgSelectSingle258 - PgSelectSingle258 --> PgClassExpression259 - PgClassExpression261{{"PgClassExpression[261∈10] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle258 --> PgClassExpression261 - PgSelect184[["PgSelect[184∈12] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object166 & PgClassExpression183 --> PgSelect184 - PgSelect191[["PgSelect[191∈12] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object166 & PgClassExpression183 --> PgSelect191 - PgSelect199[["PgSelect[199∈12] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object166 & PgClassExpression183 --> PgSelect199 - PgSelect204[["PgSelect[204∈12] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object166 & PgClassExpression183 --> PgSelect204 - PgSelect209[["PgSelect[209∈12] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object166 & PgClassExpression183 --> PgSelect209 - First188{{"First[188∈12] ➊"}}:::plan - PgSelectRows189[["PgSelectRows[189∈12] ➊"]]:::plan - PgSelectRows189 --> First188 - PgSelect184 --> PgSelectRows189 - PgSelectSingle190{{"PgSelectSingle[190∈12] ➊
ᐸrelational_topicsᐳ"}}:::plan - First188 --> PgSelectSingle190 - First193{{"First[193∈12] ➊"}}:::plan - PgSelectRows194[["PgSelectRows[194∈12] ➊"]]:::plan - PgSelectRows194 --> First193 - PgSelect191 --> PgSelectRows194 - PgSelectSingle195{{"PgSelectSingle[195∈12] ➊
ᐸrelational_postsᐳ"}}:::plan - First193 --> PgSelectSingle195 - PgClassExpression196{{"PgClassExpression[196∈12] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle195 --> PgClassExpression196 - PgClassExpression197{{"PgClassExpression[197∈12] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle195 --> PgClassExpression197 - PgClassExpression198{{"PgClassExpression[198∈12] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle195 --> PgClassExpression198 - First201{{"First[201∈12] ➊"}}:::plan - PgSelectRows202[["PgSelectRows[202∈12] ➊"]]:::plan - PgSelectRows202 --> First201 - PgSelect199 --> PgSelectRows202 - PgSelectSingle203{{"PgSelectSingle[203∈12] ➊
ᐸrelational_dividersᐳ"}}:::plan - First201 --> PgSelectSingle203 - First206{{"First[206∈12] ➊"}}:::plan - PgSelectRows207[["PgSelectRows[207∈12] ➊"]]:::plan - PgSelectRows207 --> First206 - PgSelect204 --> PgSelectRows207 - PgSelectSingle208{{"PgSelectSingle[208∈12] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First206 --> PgSelectSingle208 - First211{{"First[211∈12] ➊"}}:::plan - PgSelectRows212[["PgSelectRows[212∈12] ➊"]]:::plan - PgSelectRows212 --> First211 - PgSelect209 --> PgSelectRows212 - PgSelectSingle213{{"PgSelectSingle[213∈12] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First211 --> PgSelectSingle213 - PgSelect223[["PgSelect[223∈13] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object166 & PgClassExpression222 --> PgSelect223 - PgSelect230[["PgSelect[230∈13] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object166 & PgClassExpression222 --> PgSelect230 - PgSelect238[["PgSelect[238∈13] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object166 & PgClassExpression222 --> PgSelect238 - PgSelect243[["PgSelect[243∈13] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object166 & PgClassExpression222 --> PgSelect243 - PgSelect248[["PgSelect[248∈13] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object166 & PgClassExpression222 --> PgSelect248 - First227{{"First[227∈13] ➊"}}:::plan - PgSelectRows228[["PgSelectRows[228∈13] ➊"]]:::plan - PgSelectRows228 --> First227 - PgSelect223 --> PgSelectRows228 - PgSelectSingle229{{"PgSelectSingle[229∈13] ➊
ᐸrelational_topicsᐳ"}}:::plan - First227 --> PgSelectSingle229 - First232{{"First[232∈13] ➊"}}:::plan - PgSelectRows233[["PgSelectRows[233∈13] ➊"]]:::plan - PgSelectRows233 --> First232 - PgSelect230 --> PgSelectRows233 - PgSelectSingle234{{"PgSelectSingle[234∈13] ➊
ᐸrelational_postsᐳ"}}:::plan - First232 --> PgSelectSingle234 - PgClassExpression235{{"PgClassExpression[235∈13] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle234 --> PgClassExpression235 - PgClassExpression236{{"PgClassExpression[236∈13] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle234 --> PgClassExpression236 - PgClassExpression237{{"PgClassExpression[237∈13] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle234 --> PgClassExpression237 - First240{{"First[240∈13] ➊"}}:::plan - PgSelectRows241[["PgSelectRows[241∈13] ➊"]]:::plan - PgSelectRows241 --> First240 - PgSelect238 --> PgSelectRows241 - PgSelectSingle242{{"PgSelectSingle[242∈13] ➊
ᐸrelational_dividersᐳ"}}:::plan - First240 --> PgSelectSingle242 - First245{{"First[245∈13] ➊"}}:::plan - PgSelectRows246[["PgSelectRows[246∈13] ➊"]]:::plan - PgSelectRows246 --> First245 - PgSelect243 --> PgSelectRows246 - PgSelectSingle247{{"PgSelectSingle[247∈13] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First245 --> PgSelectSingle247 - First250{{"First[250∈13] ➊"}}:::plan - PgSelectRows251[["PgSelectRows[251∈13] ➊"]]:::plan - PgSelectRows251 --> First250 - PgSelect248 --> PgSelectRows251 - PgSelectSingle252{{"PgSelectSingle[252∈13] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First250 --> PgSelectSingle252 - PgSelect262[["PgSelect[262∈14] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object166 & PgClassExpression261 --> PgSelect262 - PgSelect269[["PgSelect[269∈14] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object166 & PgClassExpression261 --> PgSelect269 - PgSelect277[["PgSelect[277∈14] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object166 & PgClassExpression261 --> PgSelect277 - PgSelect282[["PgSelect[282∈14] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object166 & PgClassExpression261 --> PgSelect282 - PgSelect287[["PgSelect[287∈14] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object166 & PgClassExpression261 --> PgSelect287 - First266{{"First[266∈14] ➊"}}:::plan - PgSelectRows267[["PgSelectRows[267∈14] ➊"]]:::plan - PgSelectRows267 --> First266 - PgSelect262 --> PgSelectRows267 - PgSelectSingle268{{"PgSelectSingle[268∈14] ➊
ᐸrelational_topicsᐳ"}}:::plan - First266 --> PgSelectSingle268 - First271{{"First[271∈14] ➊"}}:::plan - PgSelectRows272[["PgSelectRows[272∈14] ➊"]]:::plan - PgSelectRows272 --> First271 - PgSelect269 --> PgSelectRows272 - PgSelectSingle273{{"PgSelectSingle[273∈14] ➊
ᐸrelational_postsᐳ"}}:::plan - First271 --> PgSelectSingle273 - PgClassExpression274{{"PgClassExpression[274∈14] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression274 - PgClassExpression275{{"PgClassExpression[275∈14] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression275 - PgClassExpression276{{"PgClassExpression[276∈14] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression276 - First279{{"First[279∈14] ➊"}}:::plan - PgSelectRows280[["PgSelectRows[280∈14] ➊"]]:::plan - PgSelectRows280 --> First279 - PgSelect277 --> PgSelectRows280 - PgSelectSingle281{{"PgSelectSingle[281∈14] ➊
ᐸrelational_dividersᐳ"}}:::plan - First279 --> PgSelectSingle281 - First284{{"First[284∈14] ➊"}}:::plan - PgSelectRows285[["PgSelectRows[285∈14] ➊"]]:::plan - PgSelectRows285 --> First284 - PgSelect282 --> PgSelectRows285 - PgSelectSingle286{{"PgSelectSingle[286∈14] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First284 --> PgSelectSingle286 - First289{{"First[289∈14] ➊"}}:::plan - PgSelectRows290[["PgSelectRows[290∈14] ➊"]]:::plan - PgSelectRows290 --> First289 - PgSelect287 --> PgSelectRows290 - PgSelectSingle291{{"PgSelectSingle[291∈14] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First289 --> PgSelectSingle291 + Access17{{"Access[17∈1] ➊
ᐸ12.tᐳ"}}:::plan + Access17 --> PgClassExpression16 + PgInsertSingle12 --> Access17 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access23{{"Access[23∈1] ➊
ᐸ18.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgInsertSingle18 --> Access23 + PgInsertSingle36[["PgInsertSingle[36∈2] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Object33{{"Object[33∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object33 & PgClassExpression34 & Constant297 & Constant298 & Constant299 --> PgInsertSingle36 + PgInsertSingle30[["PgInsertSingle[30∈2] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + Object33 & Constant10 & Constant11 --> PgInsertSingle30 + Access31{{"Access[31∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access32{{"Access[32∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access31 & Access32 --> Object33 + PgSelect43[["PgSelect[43∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object33 & Constant300 --> PgSelect43 + PgPolymorphic49{{"PgPolymorphic[49∈2] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression48{{"PgClassExpression[48∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle47 & PgClassExpression48 --> PgPolymorphic49 + PgSelect82[["PgSelect[82∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object33 & Constant301 --> PgSelect82 + PgPolymorphic88{{"PgPolymorphic[88∈2] ➊"}}:::plan + PgSelectSingle86{{"PgSelectSingle[86∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression87{{"PgClassExpression[87∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle86 & PgClassExpression87 --> PgPolymorphic88 + PgSelect121[["PgSelect[121∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object33 & Constant302 --> PgSelect121 + PgPolymorphic127{{"PgPolymorphic[127∈2] ➊"}}:::plan + PgSelectSingle125{{"PgSelectSingle[125∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression126{{"PgClassExpression[126∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle125 & PgClassExpression126 --> PgPolymorphic127 + __Value2 --> Access31 + __Value2 --> Access32 + Access35{{"Access[35∈2] ➊
ᐸ30.tᐳ"}}:::plan + Access35 --> PgClassExpression34 + PgInsertSingle30 --> Access35 + PgClassExpression40{{"PgClassExpression[40∈2] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access41{{"Access[41∈2] ➊
ᐸ36.tᐳ"}}:::plan + Access41 --> PgClassExpression40 + PgInsertSingle36 --> Access41 + First45{{"First[45∈2] ➊"}}:::plan + PgSelectRows46[["PgSelectRows[46∈2] ➊"]]:::plan + PgSelectRows46 --> First45 + PgSelect43 --> PgSelectRows46 + First45 --> PgSelectSingle47 + PgSelectSingle47 --> PgClassExpression48 + First84{{"First[84∈2] ➊"}}:::plan + PgSelectRows85[["PgSelectRows[85∈2] ➊"]]:::plan + PgSelectRows85 --> First84 + PgSelect82 --> PgSelectRows85 + First84 --> PgSelectSingle86 + PgSelectSingle86 --> PgClassExpression87 + First123{{"First[123∈2] ➊"}}:::plan + PgSelectRows124[["PgSelectRows[124∈2] ➊"]]:::plan + PgSelectRows124 --> First123 + PgSelect121 --> PgSelectRows124 + First123 --> PgSelectSingle125 + PgSelectSingle125 --> PgClassExpression126 + PgSelect51[["PgSelect[51∈3] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression50{{"PgClassExpression[50∈3] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object33 & PgClassExpression50 --> PgSelect51 + PgSelect58[["PgSelect[58∈3] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object33 & PgClassExpression50 --> PgSelect58 + PgSelect66[["PgSelect[66∈3] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object33 & PgClassExpression50 --> PgSelect66 + PgSelect71[["PgSelect[71∈3] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object33 & PgClassExpression50 --> PgSelect71 + PgSelect76[["PgSelect[76∈3] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object33 & PgClassExpression50 --> PgSelect76 + PgSelectSingle47 --> PgClassExpression50 + First55{{"First[55∈3] ➊"}}:::plan + PgSelectRows56[["PgSelectRows[56∈3] ➊"]]:::plan + PgSelectRows56 --> First55 + PgSelect51 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈3] ➊
ᐸrelational_topicsᐳ"}}:::plan + First55 --> PgSelectSingle57 + First60{{"First[60∈3] ➊"}}:::plan + PgSelectRows61[["PgSelectRows[61∈3] ➊"]]:::plan + PgSelectRows61 --> First60 + PgSelect58 --> PgSelectRows61 + PgSelectSingle62{{"PgSelectSingle[62∈3] ➊
ᐸrelational_postsᐳ"}}:::plan + First60 --> PgSelectSingle62 + PgClassExpression63{{"PgClassExpression[63∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle62 --> PgClassExpression63 + PgClassExpression64{{"PgClassExpression[64∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle62 --> PgClassExpression64 + PgClassExpression65{{"PgClassExpression[65∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle62 --> PgClassExpression65 + First68{{"First[68∈3] ➊"}}:::plan + PgSelectRows69[["PgSelectRows[69∈3] ➊"]]:::plan + PgSelectRows69 --> First68 + PgSelect66 --> PgSelectRows69 + PgSelectSingle70{{"PgSelectSingle[70∈3] ➊
ᐸrelational_dividersᐳ"}}:::plan + First68 --> PgSelectSingle70 + First73{{"First[73∈3] ➊"}}:::plan + PgSelectRows74[["PgSelectRows[74∈3] ➊"]]:::plan + PgSelectRows74 --> First73 + PgSelect71 --> PgSelectRows74 + PgSelectSingle75{{"PgSelectSingle[75∈3] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First73 --> PgSelectSingle75 + First78{{"First[78∈3] ➊"}}:::plan + PgSelectRows79[["PgSelectRows[79∈3] ➊"]]:::plan + PgSelectRows79 --> First78 + PgSelect76 --> PgSelectRows79 + PgSelectSingle80{{"PgSelectSingle[80∈3] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First78 --> PgSelectSingle80 + PgSelect90[["PgSelect[90∈4] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression89{{"PgClassExpression[89∈4] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object33 & PgClassExpression89 --> PgSelect90 + PgSelect97[["PgSelect[97∈4] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object33 & PgClassExpression89 --> PgSelect97 + PgSelect105[["PgSelect[105∈4] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object33 & PgClassExpression89 --> PgSelect105 + PgSelect110[["PgSelect[110∈4] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object33 & PgClassExpression89 --> PgSelect110 + PgSelect115[["PgSelect[115∈4] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object33 & PgClassExpression89 --> PgSelect115 + PgSelectSingle86 --> PgClassExpression89 + First94{{"First[94∈4] ➊"}}:::plan + PgSelectRows95[["PgSelectRows[95∈4] ➊"]]:::plan + PgSelectRows95 --> First94 + PgSelect90 --> PgSelectRows95 + PgSelectSingle96{{"PgSelectSingle[96∈4] ➊
ᐸrelational_topicsᐳ"}}:::plan + First94 --> PgSelectSingle96 + First99{{"First[99∈4] ➊"}}:::plan + PgSelectRows100[["PgSelectRows[100∈4] ➊"]]:::plan + PgSelectRows100 --> First99 + PgSelect97 --> PgSelectRows100 + PgSelectSingle101{{"PgSelectSingle[101∈4] ➊
ᐸrelational_postsᐳ"}}:::plan + First99 --> PgSelectSingle101 + PgClassExpression102{{"PgClassExpression[102∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle101 --> PgClassExpression102 + PgClassExpression103{{"PgClassExpression[103∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle101 --> PgClassExpression103 + PgClassExpression104{{"PgClassExpression[104∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle101 --> PgClassExpression104 + First107{{"First[107∈4] ➊"}}:::plan + PgSelectRows108[["PgSelectRows[108∈4] ➊"]]:::plan + PgSelectRows108 --> First107 + PgSelect105 --> PgSelectRows108 + PgSelectSingle109{{"PgSelectSingle[109∈4] ➊
ᐸrelational_dividersᐳ"}}:::plan + First107 --> PgSelectSingle109 + First112{{"First[112∈4] ➊"}}:::plan + PgSelectRows113[["PgSelectRows[113∈4] ➊"]]:::plan + PgSelectRows113 --> First112 + PgSelect110 --> PgSelectRows113 + PgSelectSingle114{{"PgSelectSingle[114∈4] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First112 --> PgSelectSingle114 + First117{{"First[117∈4] ➊"}}:::plan + PgSelectRows118[["PgSelectRows[118∈4] ➊"]]:::plan + PgSelectRows118 --> First117 + PgSelect115 --> PgSelectRows118 + PgSelectSingle119{{"PgSelectSingle[119∈4] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First117 --> PgSelectSingle119 + PgSelect129[["PgSelect[129∈5] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression128{{"PgClassExpression[128∈5] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object33 & PgClassExpression128 --> PgSelect129 + PgSelect136[["PgSelect[136∈5] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object33 & PgClassExpression128 --> PgSelect136 + PgSelect144[["PgSelect[144∈5] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object33 & PgClassExpression128 --> PgSelect144 + PgSelect149[["PgSelect[149∈5] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object33 & PgClassExpression128 --> PgSelect149 + PgSelect154[["PgSelect[154∈5] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object33 & PgClassExpression128 --> PgSelect154 + PgSelectSingle125 --> PgClassExpression128 + First133{{"First[133∈5] ➊"}}:::plan + PgSelectRows134[["PgSelectRows[134∈5] ➊"]]:::plan + PgSelectRows134 --> First133 + PgSelect129 --> PgSelectRows134 + PgSelectSingle135{{"PgSelectSingle[135∈5] ➊
ᐸrelational_topicsᐳ"}}:::plan + First133 --> PgSelectSingle135 + First138{{"First[138∈5] ➊"}}:::plan + PgSelectRows139[["PgSelectRows[139∈5] ➊"]]:::plan + PgSelectRows139 --> First138 + PgSelect136 --> PgSelectRows139 + PgSelectSingle140{{"PgSelectSingle[140∈5] ➊
ᐸrelational_postsᐳ"}}:::plan + First138 --> PgSelectSingle140 + PgClassExpression141{{"PgClassExpression[141∈5] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle140 --> PgClassExpression141 + PgClassExpression142{{"PgClassExpression[142∈5] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle140 --> PgClassExpression142 + PgClassExpression143{{"PgClassExpression[143∈5] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle140 --> PgClassExpression143 + First146{{"First[146∈5] ➊"}}:::plan + PgSelectRows147[["PgSelectRows[147∈5] ➊"]]:::plan + PgSelectRows147 --> First146 + PgSelect144 --> PgSelectRows147 + PgSelectSingle148{{"PgSelectSingle[148∈5] ➊
ᐸrelational_dividersᐳ"}}:::plan + First146 --> PgSelectSingle148 + First151{{"First[151∈5] ➊"}}:::plan + PgSelectRows152[["PgSelectRows[152∈5] ➊"]]:::plan + PgSelectRows152 --> First151 + PgSelect149 --> PgSelectRows152 + PgSelectSingle153{{"PgSelectSingle[153∈5] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First151 --> PgSelectSingle153 + First156{{"First[156∈5] ➊"}}:::plan + PgSelectRows157[["PgSelectRows[157∈5] ➊"]]:::plan + PgSelectRows157 --> First156 + PgSelect154 --> PgSelectRows157 + PgSelectSingle158{{"PgSelectSingle[158∈5] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First156 --> PgSelectSingle158 + PgInsertSingle171[["PgInsertSingle[171∈6] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Object168{{"Object[168∈6] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgClassExpression169{{"PgClassExpression[169∈6] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object168 & PgClassExpression169 & Constant303 & Constant304 & Constant305 --> PgInsertSingle171 + PgInsertSingle165[["PgInsertSingle[165∈6] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + Object168 & Constant10 & Constant11 --> PgInsertSingle165 + Access166{{"Access[166∈6] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access167{{"Access[167∈6] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access166 & Access167 --> Object168 + PgSelect178[["PgSelect[178∈6] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object168 & Constant300 --> PgSelect178 + PgPolymorphic184{{"PgPolymorphic[184∈6] ➊"}}:::plan + PgSelectSingle182{{"PgSelectSingle[182∈6] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression183{{"PgClassExpression[183∈6] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle182 & PgClassExpression183 --> PgPolymorphic184 + PgSelect217[["PgSelect[217∈6] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object168 & Constant301 --> PgSelect217 + PgPolymorphic223{{"PgPolymorphic[223∈6] ➊"}}:::plan + PgSelectSingle221{{"PgSelectSingle[221∈6] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression222{{"PgClassExpression[222∈6] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle221 & PgClassExpression222 --> PgPolymorphic223 + PgSelect256[["PgSelect[256∈6] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object168 & Constant302 --> PgSelect256 + PgPolymorphic262{{"PgPolymorphic[262∈6] ➊"}}:::plan + PgSelectSingle260{{"PgSelectSingle[260∈6] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression261{{"PgClassExpression[261∈6] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle260 & PgClassExpression261 --> PgPolymorphic262 + __Value2 --> Access166 + __Value2 --> Access167 + Access170{{"Access[170∈6] ➊
ᐸ165.tᐳ"}}:::plan + Access170 --> PgClassExpression169 + PgInsertSingle165 --> Access170 + PgClassExpression175{{"PgClassExpression[175∈6] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access176{{"Access[176∈6] ➊
ᐸ171.tᐳ"}}:::plan + Access176 --> PgClassExpression175 + PgInsertSingle171 --> Access176 + First180{{"First[180∈6] ➊"}}:::plan + PgSelectRows181[["PgSelectRows[181∈6] ➊"]]:::plan + PgSelectRows181 --> First180 + PgSelect178 --> PgSelectRows181 + First180 --> PgSelectSingle182 + PgSelectSingle182 --> PgClassExpression183 + First219{{"First[219∈6] ➊"}}:::plan + PgSelectRows220[["PgSelectRows[220∈6] ➊"]]:::plan + PgSelectRows220 --> First219 + PgSelect217 --> PgSelectRows220 + First219 --> PgSelectSingle221 + PgSelectSingle221 --> PgClassExpression222 + First258{{"First[258∈6] ➊"}}:::plan + PgSelectRows259[["PgSelectRows[259∈6] ➊"]]:::plan + PgSelectRows259 --> First258 + PgSelect256 --> PgSelectRows259 + First258 --> PgSelectSingle260 + PgSelectSingle260 --> PgClassExpression261 + PgSelect186[["PgSelect[186∈7] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression185{{"PgClassExpression[185∈7] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object168 & PgClassExpression185 --> PgSelect186 + PgSelect193[["PgSelect[193∈7] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object168 & PgClassExpression185 --> PgSelect193 + PgSelect201[["PgSelect[201∈7] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object168 & PgClassExpression185 --> PgSelect201 + PgSelect206[["PgSelect[206∈7] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object168 & PgClassExpression185 --> PgSelect206 + PgSelect211[["PgSelect[211∈7] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object168 & PgClassExpression185 --> PgSelect211 + PgSelectSingle182 --> PgClassExpression185 + First190{{"First[190∈7] ➊"}}:::plan + PgSelectRows191[["PgSelectRows[191∈7] ➊"]]:::plan + PgSelectRows191 --> First190 + PgSelect186 --> PgSelectRows191 + PgSelectSingle192{{"PgSelectSingle[192∈7] ➊
ᐸrelational_topicsᐳ"}}:::plan + First190 --> PgSelectSingle192 + First195{{"First[195∈7] ➊"}}:::plan + PgSelectRows196[["PgSelectRows[196∈7] ➊"]]:::plan + PgSelectRows196 --> First195 + PgSelect193 --> PgSelectRows196 + PgSelectSingle197{{"PgSelectSingle[197∈7] ➊
ᐸrelational_postsᐳ"}}:::plan + First195 --> PgSelectSingle197 + PgClassExpression198{{"PgClassExpression[198∈7] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle197 --> PgClassExpression198 + PgClassExpression199{{"PgClassExpression[199∈7] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle197 --> PgClassExpression199 + PgClassExpression200{{"PgClassExpression[200∈7] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle197 --> PgClassExpression200 + First203{{"First[203∈7] ➊"}}:::plan + PgSelectRows204[["PgSelectRows[204∈7] ➊"]]:::plan + PgSelectRows204 --> First203 + PgSelect201 --> PgSelectRows204 + PgSelectSingle205{{"PgSelectSingle[205∈7] ➊
ᐸrelational_dividersᐳ"}}:::plan + First203 --> PgSelectSingle205 + First208{{"First[208∈7] ➊"}}:::plan + PgSelectRows209[["PgSelectRows[209∈7] ➊"]]:::plan + PgSelectRows209 --> First208 + PgSelect206 --> PgSelectRows209 + PgSelectSingle210{{"PgSelectSingle[210∈7] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First208 --> PgSelectSingle210 + First213{{"First[213∈7] ➊"}}:::plan + PgSelectRows214[["PgSelectRows[214∈7] ➊"]]:::plan + PgSelectRows214 --> First213 + PgSelect211 --> PgSelectRows214 + PgSelectSingle215{{"PgSelectSingle[215∈7] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First213 --> PgSelectSingle215 + PgSelect225[["PgSelect[225∈8] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression224{{"PgClassExpression[224∈8] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object168 & PgClassExpression224 --> PgSelect225 + PgSelect232[["PgSelect[232∈8] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object168 & PgClassExpression224 --> PgSelect232 + PgSelect240[["PgSelect[240∈8] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object168 & PgClassExpression224 --> PgSelect240 + PgSelect245[["PgSelect[245∈8] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object168 & PgClassExpression224 --> PgSelect245 + PgSelect250[["PgSelect[250∈8] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object168 & PgClassExpression224 --> PgSelect250 + PgSelectSingle221 --> PgClassExpression224 + First229{{"First[229∈8] ➊"}}:::plan + PgSelectRows230[["PgSelectRows[230∈8] ➊"]]:::plan + PgSelectRows230 --> First229 + PgSelect225 --> PgSelectRows230 + PgSelectSingle231{{"PgSelectSingle[231∈8] ➊
ᐸrelational_topicsᐳ"}}:::plan + First229 --> PgSelectSingle231 + First234{{"First[234∈8] ➊"}}:::plan + PgSelectRows235[["PgSelectRows[235∈8] ➊"]]:::plan + PgSelectRows235 --> First234 + PgSelect232 --> PgSelectRows235 + PgSelectSingle236{{"PgSelectSingle[236∈8] ➊
ᐸrelational_postsᐳ"}}:::plan + First234 --> PgSelectSingle236 + PgClassExpression237{{"PgClassExpression[237∈8] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle236 --> PgClassExpression237 + PgClassExpression238{{"PgClassExpression[238∈8] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle236 --> PgClassExpression238 + PgClassExpression239{{"PgClassExpression[239∈8] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle236 --> PgClassExpression239 + First242{{"First[242∈8] ➊"}}:::plan + PgSelectRows243[["PgSelectRows[243∈8] ➊"]]:::plan + PgSelectRows243 --> First242 + PgSelect240 --> PgSelectRows243 + PgSelectSingle244{{"PgSelectSingle[244∈8] ➊
ᐸrelational_dividersᐳ"}}:::plan + First242 --> PgSelectSingle244 + First247{{"First[247∈8] ➊"}}:::plan + PgSelectRows248[["PgSelectRows[248∈8] ➊"]]:::plan + PgSelectRows248 --> First247 + PgSelect245 --> PgSelectRows248 + PgSelectSingle249{{"PgSelectSingle[249∈8] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First247 --> PgSelectSingle249 + First252{{"First[252∈8] ➊"}}:::plan + PgSelectRows253[["PgSelectRows[253∈8] ➊"]]:::plan + PgSelectRows253 --> First252 + PgSelect250 --> PgSelectRows253 + PgSelectSingle254{{"PgSelectSingle[254∈8] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First252 --> PgSelectSingle254 + PgSelect264[["PgSelect[264∈9] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression263{{"PgClassExpression[263∈9] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object168 & PgClassExpression263 --> PgSelect264 + PgSelect271[["PgSelect[271∈9] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object168 & PgClassExpression263 --> PgSelect271 + PgSelect279[["PgSelect[279∈9] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object168 & PgClassExpression263 --> PgSelect279 + PgSelect284[["PgSelect[284∈9] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object168 & PgClassExpression263 --> PgSelect284 + PgSelect289[["PgSelect[289∈9] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object168 & PgClassExpression263 --> PgSelect289 + PgSelectSingle260 --> PgClassExpression263 + First268{{"First[268∈9] ➊"}}:::plan + PgSelectRows269[["PgSelectRows[269∈9] ➊"]]:::plan + PgSelectRows269 --> First268 + PgSelect264 --> PgSelectRows269 + PgSelectSingle270{{"PgSelectSingle[270∈9] ➊
ᐸrelational_topicsᐳ"}}:::plan + First268 --> PgSelectSingle270 + First273{{"First[273∈9] ➊"}}:::plan + PgSelectRows274[["PgSelectRows[274∈9] ➊"]]:::plan + PgSelectRows274 --> First273 + PgSelect271 --> PgSelectRows274 + PgSelectSingle275{{"PgSelectSingle[275∈9] ➊
ᐸrelational_postsᐳ"}}:::plan + First273 --> PgSelectSingle275 + PgClassExpression276{{"PgClassExpression[276∈9] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle275 --> PgClassExpression276 + PgClassExpression277{{"PgClassExpression[277∈9] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle275 --> PgClassExpression277 + PgClassExpression278{{"PgClassExpression[278∈9] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle275 --> PgClassExpression278 + First281{{"First[281∈9] ➊"}}:::plan + PgSelectRows282[["PgSelectRows[282∈9] ➊"]]:::plan + PgSelectRows282 --> First281 + PgSelect279 --> PgSelectRows282 + PgSelectSingle283{{"PgSelectSingle[283∈9] ➊
ᐸrelational_dividersᐳ"}}:::plan + First281 --> PgSelectSingle283 + First286{{"First[286∈9] ➊"}}:::plan + PgSelectRows287[["PgSelectRows[287∈9] ➊"]]:::plan + PgSelectRows287 --> First286 + PgSelect284 --> PgSelectRows287 + PgSelectSingle288{{"PgSelectSingle[288∈9] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First286 --> PgSelectSingle288 + First291{{"First[291∈9] ➊"}}:::plan + PgSelectRows292[["PgSelectRows[292∈9] ➊"]]:::plan + PgSelectRows292 --> First291 + PgSelect289 --> PgSelectRows292 + PgSelectSingle293{{"PgSelectSingle[293∈9] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First291 --> PgSelectSingle293 %% define steps + %% implicit side effects + PgInsertSingle36 -.-o PgSelect43 + PgInsertSingle36 -.-o PgPolymorphic49 + PgInsertSingle36 -.-o PgSelect82 + PgInsertSingle36 -.-o PgPolymorphic88 + PgInsertSingle36 -.-o PgSelect121 + PgInsertSingle36 -.-o PgPolymorphic127 + PgInsertSingle36 -.-o First45 + PgInsertSingle36 -.-o PgSelectRows46 + PgInsertSingle36 -.-o PgSelectSingle47 + PgInsertSingle36 -.-o PgClassExpression48 + PgInsertSingle36 -.-o First84 + PgInsertSingle36 -.-o PgSelectRows85 + PgInsertSingle36 -.-o PgSelectSingle86 + PgInsertSingle36 -.-o PgClassExpression87 + PgInsertSingle36 -.-o First123 + PgInsertSingle36 -.-o PgSelectRows124 + PgInsertSingle36 -.-o PgSelectSingle125 + PgInsertSingle36 -.-o PgClassExpression126 + PgInsertSingle171 -.-o PgSelect178 + PgInsertSingle171 -.-o PgPolymorphic184 + PgInsertSingle171 -.-o PgSelect217 + PgInsertSingle171 -.-o PgPolymorphic223 + PgInsertSingle171 -.-o PgSelect256 + PgInsertSingle171 -.-o PgPolymorphic262 + PgInsertSingle171 -.-o First180 + PgInsertSingle171 -.-o PgSelectRows181 + PgInsertSingle171 -.-o PgSelectSingle182 + PgInsertSingle171 -.-o PgClassExpression183 + PgInsertSingle171 -.-o First219 + PgInsertSingle171 -.-o PgSelectRows220 + PgInsertSingle171 -.-o PgSelectSingle221 + PgInsertSingle171 -.-o PgClassExpression222 + PgInsertSingle171 -.-o First258 + PgInsertSingle171 -.-o PgSelectRows259 + PgInsertSingle171 -.-o PgSelectSingle260 + PgInsertSingle171 -.-o PgClassExpression261 + subgraph "Buckets for mutations/basics/create-relational-post-no-query" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant292,Constant293,Constant294,Constant295,Constant296,Constant297,Constant298,Constant299,Constant300,Constant301,Constant302,Constant303 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 292, 293, 294

1: PgInsertSingle[12]
2: PgClassExpression[16]
3: PgInsertSingle[17]
4:
ᐳ: PgClassExpression[21]"):::bucket + class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant294,Constant295,Constant296,Constant297,Constant298,Constant299,Constant300,Constant301,Constant302,Constant303,Constant304,Constant305 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 294, 295, 296

1: PgInsertSingle[12]
2: Access[17]
3: PgClassExpression[16]
4: PgInsertSingle[18]
5:
ᐳ: Access[23], PgClassExpression[22]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle12,PgClassExpression16,PgInsertSingle17,PgClassExpression21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 21

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[21]"):::bucket + class Bucket1,PgInsertSingle12,PgClassExpression16,Access17,PgInsertSingle18,PgClassExpression22,Access23 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 10, 11, 2, 297, 298, 299, 300, 301, 302, 4

1: Access[31]
2: Access[32]
3: Object[33]
4: PgInsertSingle[30]
5: Access[35]
6: PgClassExpression[34]
7: PgInsertSingle[36]
8: 43, 82, 121
ᐳ: Access[41], PgClassExpression[40]
9: 46, 85, 124
ᐳ: 45, 47, 48, 49, 84, 86, 87, 88, 123, 125, 126, 127"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (mutationField)
Deps: 10, 11, 2, 295, 296, 297, 298, 299, 300, 4

1: Access[29]
2: Access[30]
3: Object[31]
4: PgInsertSingle[28]
5: PgClassExpression[32]
6: PgInsertSingle[33]
7:
ᐳ: PgClassExpression[37]"):::bucket + class Bucket2,PgInsertSingle30,Access31,Access32,Object33,PgClassExpression34,Access35,PgInsertSingle36,PgClassExpression40,Access41,PgSelect43,First45,PgSelectRows46,PgSelectSingle47,PgClassExpression48,PgPolymorphic49,PgSelect82,First84,PgSelectRows85,PgSelectSingle86,PgClassExpression87,PgPolymorphic88,PgSelect121,First123,PgSelectRows124,PgSelectSingle125,PgClassExpression126,PgPolymorphic127 bucket2 + Bucket3("Bucket 3 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 36
Deps: 47, 33, 49
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[50]
2: 51, 58, 66, 71, 76
3: 56, 61, 69, 74, 79
ᐳ: 55, 57, 60, 62, 63, 64, 65, 68, 70, 73, 75, 78, 80"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgInsertSingle28,Access29,Access30,Object31,PgClassExpression32,PgInsertSingle33,PgClassExpression37 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31, 298, 299, 300, 37, 4

ROOT PgClassExpression{3}ᐸ__relational_posts__ᐳ[37]
1: 39, 80, 119
2: 44, 83, 122
ᐳ: 43, 45, 46, 47, 48, 82, 84, 85, 86, 87, 121, 123, 124, 125, 126"):::bucket + class Bucket3,PgClassExpression50,PgSelect51,First55,PgSelectRows56,PgSelectSingle57,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgClassExpression63,PgClassExpression64,PgClassExpression65,PgSelect66,First68,PgSelectRows69,PgSelectSingle70,PgSelect71,First73,PgSelectRows74,PgSelectSingle75,PgSelect76,First78,PgSelectRows79,PgSelectSingle80 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 36
Deps: 86, 33, 88
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[89]
2: 90, 97, 105, 110, 115
3: 95, 100, 108, 113, 118
ᐳ: 94, 96, 99, 101, 102, 103, 104, 107, 109, 112, 114, 117, 119"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect39,First43,PgSelectRows44,PgSelectSingle45,PgClassExpression46,PgPolymorphic47,PgClassExpression48,PgSelect80,First82,PgSelectRows83,PgSelectSingle84,PgClassExpression85,PgPolymorphic86,PgClassExpression87,PgSelect119,First121,PgSelectRows122,PgSelectSingle123,PgClassExpression124,PgPolymorphic125,PgClassExpression126 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 4, 31, 48, 47, 87, 86, 126, 125

ROOT __ValueᐸrootValueᐳ[4]"):::bucket + class Bucket4,PgClassExpression89,PgSelect90,First94,PgSelectRows95,PgSelectSingle96,PgSelect97,First99,PgSelectRows100,PgSelectSingle101,PgClassExpression102,PgClassExpression103,PgClassExpression104,PgSelect105,First107,PgSelectRows108,PgSelectSingle109,PgSelect110,First112,PgSelectRows113,PgSelectSingle114,PgSelect115,First117,PgSelectRows118,PgSelectSingle119 bucket4 + Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 36
Deps: 125, 33, 127
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[128]
2: 129, 136, 144, 149, 154
3: 134, 139, 147, 152, 157
ᐳ: 133, 135, 138, 140, 141, 142, 143, 146, 148, 151, 153, 156, 158"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5 bucket5 - Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 31, 48, 47
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 49, 56, 64, 69, 74
2: 54, 59, 67, 72, 77
ᐳ: 53, 55, 58, 60, 61, 62, 63, 66, 68, 71, 73, 76, 78"):::bucket + class Bucket5,PgClassExpression128,PgSelect129,First133,PgSelectRows134,PgSelectSingle135,PgSelect136,First138,PgSelectRows139,PgSelectSingle140,PgClassExpression141,PgClassExpression142,PgClassExpression143,PgSelect144,First146,PgSelectRows147,PgSelectSingle148,PgSelect149,First151,PgSelectRows152,PgSelectSingle153,PgSelect154,First156,PgSelectRows157,PgSelectSingle158 bucket5 + Bucket6("Bucket 6 (mutationField)
Deps: 10, 11, 2, 303, 304, 305, 300, 301, 302, 4

1: Access[166]
2: Access[167]
3: Object[168]
4: PgInsertSingle[165]
5: Access[170]
6: PgClassExpression[169]
7: PgInsertSingle[171]
8: 178, 217, 256
ᐳ: Access[176], PgClassExpression[175]
9: 181, 220, 259
ᐳ: 180, 182, 183, 184, 219, 221, 222, 223, 258, 260, 261, 262"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect49,First53,PgSelectRows54,PgSelectSingle55,PgSelect56,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61,PgClassExpression62,PgClassExpression63,PgSelect64,First66,PgSelectRows67,PgSelectSingle68,PgSelect69,First71,PgSelectRows72,PgSelectSingle73,PgSelect74,First76,PgSelectRows77,PgSelectSingle78 bucket6 - Bucket7("Bucket 7 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 31, 87, 86
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 88, 95, 103, 108, 113
2: 93, 98, 106, 111, 116
ᐳ: 92, 94, 97, 99, 100, 101, 102, 105, 107, 110, 112, 115, 117"):::bucket + class Bucket6,PgInsertSingle165,Access166,Access167,Object168,PgClassExpression169,Access170,PgInsertSingle171,PgClassExpression175,Access176,PgSelect178,First180,PgSelectRows181,PgSelectSingle182,PgClassExpression183,PgPolymorphic184,PgSelect217,First219,PgSelectRows220,PgSelectSingle221,PgClassExpression222,PgPolymorphic223,PgSelect256,First258,PgSelectRows259,PgSelectSingle260,PgClassExpression261,PgPolymorphic262 bucket6 + Bucket7("Bucket 7 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 171
Deps: 182, 168, 184
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[185]
2: 186, 193, 201, 206, 211
3: 191, 196, 204, 209, 214
ᐳ: 190, 192, 195, 197, 198, 199, 200, 203, 205, 208, 210, 213, 215"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgSelect88,First92,PgSelectRows93,PgSelectSingle94,PgSelect95,First97,PgSelectRows98,PgSelectSingle99,PgClassExpression100,PgClassExpression101,PgClassExpression102,PgSelect103,First105,PgSelectRows106,PgSelectSingle107,PgSelect108,First110,PgSelectRows111,PgSelectSingle112,PgSelect113,First115,PgSelectRows116,PgSelectSingle117 bucket7 - Bucket8("Bucket 8 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 31, 126, 125
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 127, 134, 142, 147, 152
2: 132, 137, 145, 150, 155
ᐳ: 131, 133, 136, 138, 139, 140, 141, 144, 146, 149, 151, 154, 156"):::bucket + class Bucket7,PgClassExpression185,PgSelect186,First190,PgSelectRows191,PgSelectSingle192,PgSelect193,First195,PgSelectRows196,PgSelectSingle197,PgClassExpression198,PgClassExpression199,PgClassExpression200,PgSelect201,First203,PgSelectRows204,PgSelectSingle205,PgSelect206,First208,PgSelectRows209,PgSelectSingle210,PgSelect211,First213,PgSelectRows214,PgSelectSingle215 bucket7 + Bucket8("Bucket 8 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 171
Deps: 221, 168, 223
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[224]
2: 225, 232, 240, 245, 250
3: 230, 235, 243, 248, 253
ᐳ: 229, 231, 234, 236, 237, 238, 239, 242, 244, 247, 249, 252, 254"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,PgSelect127,First131,PgSelectRows132,PgSelectSingle133,PgSelect134,First136,PgSelectRows137,PgSelectSingle138,PgClassExpression139,PgClassExpression140,PgClassExpression141,PgSelect142,First144,PgSelectRows145,PgSelectSingle146,PgSelect147,First149,PgSelectRows150,PgSelectSingle151,PgSelect152,First154,PgSelectRows155,PgSelectSingle156 bucket8 - Bucket9("Bucket 9 (mutationField)
Deps: 10, 11, 2, 301, 302, 303, 298, 299, 300, 4

1: Access[164]
2: Access[165]
3: Object[166]
4: PgInsertSingle[163]
5: PgClassExpression[167]
6: PgInsertSingle[168]
7:
ᐳ: PgClassExpression[172]"):::bucket + class Bucket8,PgClassExpression224,PgSelect225,First229,PgSelectRows230,PgSelectSingle231,PgSelect232,First234,PgSelectRows235,PgSelectSingle236,PgClassExpression237,PgClassExpression238,PgClassExpression239,PgSelect240,First242,PgSelectRows243,PgSelectSingle244,PgSelect245,First247,PgSelectRows248,PgSelectSingle249,PgSelect250,First252,PgSelectRows253,PgSelectSingle254 bucket8 + Bucket9("Bucket 9 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 171
Deps: 260, 168, 262
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[263]
2: 264, 271, 279, 284, 289
3: 269, 274, 282, 287, 292
ᐳ: 268, 270, 273, 275, 276, 277, 278, 281, 283, 286, 288, 291, 293"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,PgInsertSingle163,Access164,Access165,Object166,PgClassExpression167,PgInsertSingle168,PgClassExpression172 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 166, 298, 299, 300, 172, 4

ROOT PgClassExpression{9}ᐸ__relational_posts__ᐳ[172]
1: 174, 215, 254
2: 179, 218, 257
ᐳ: 178, 180, 181, 182, 183, 217, 219, 220, 221, 222, 256, 258, 259, 260, 261"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgSelect174,First178,PgSelectRows179,PgSelectSingle180,PgClassExpression181,PgPolymorphic182,PgClassExpression183,PgSelect215,First217,PgSelectRows218,PgSelectSingle219,PgClassExpression220,PgPolymorphic221,PgClassExpression222,PgSelect254,First256,PgSelectRows257,PgSelectSingle258,PgClassExpression259,PgPolymorphic260,PgClassExpression261 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 4, 166, 183, 182, 222, 221, 261, 260

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11 bucket11 - Bucket12("Bucket 12 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 166, 183, 182
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 184, 191, 199, 204, 209
2: 189, 194, 202, 207, 212
ᐳ: 188, 190, 193, 195, 196, 197, 198, 201, 203, 206, 208, 211, 213"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgSelect184,First188,PgSelectRows189,PgSelectSingle190,PgSelect191,First193,PgSelectRows194,PgSelectSingle195,PgClassExpression196,PgClassExpression197,PgClassExpression198,PgSelect199,First201,PgSelectRows202,PgSelectSingle203,PgSelect204,First206,PgSelectRows207,PgSelectSingle208,PgSelect209,First211,PgSelectRows212,PgSelectSingle213 bucket12 - Bucket13("Bucket 13 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 166, 222, 221
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 223, 230, 238, 243, 248
2: 228, 233, 241, 246, 251
ᐳ: 227, 229, 232, 234, 235, 236, 237, 240, 242, 245, 247, 250, 252"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,PgSelect223,First227,PgSelectRows228,PgSelectSingle229,PgSelect230,First232,PgSelectRows233,PgSelectSingle234,PgClassExpression235,PgClassExpression236,PgClassExpression237,PgSelect238,First240,PgSelectRows241,PgSelectSingle242,PgSelect243,First245,PgSelectRows246,PgSelectSingle247,PgSelect248,First250,PgSelectRows251,PgSelectSingle252 bucket13 - Bucket14("Bucket 14 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 166, 261, 260
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 262, 269, 277, 282, 287
2: 267, 272, 280, 285, 290
ᐳ: 266, 268, 271, 273, 274, 275, 276, 279, 281, 284, 286, 289, 291"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,PgSelect262,First266,PgSelectRows267,PgSelectSingle268,PgSelect269,First271,PgSelectRows272,PgSelectSingle273,PgClassExpression274,PgClassExpression275,PgClassExpression276,PgSelect277,First279,PgSelectRows280,PgSelectSingle281,PgSelect282,First284,PgSelectRows285,PgSelectSingle286,PgSelect287,First289,PgSelectRows290,PgSelectSingle291 bucket14 - Bucket0 --> Bucket1 & Bucket3 & Bucket9 - Bucket1 --> Bucket2 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket7 & Bucket8 - Bucket9 --> Bucket10 - Bucket10 --> Bucket11 - Bucket11 --> Bucket12 & Bucket13 & Bucket14 + class Bucket9,PgClassExpression263,PgSelect264,First268,PgSelectRows269,PgSelectSingle270,PgSelect271,First273,PgSelectRows274,PgSelectSingle275,PgClassExpression276,PgClassExpression277,PgClassExpression278,PgSelect279,First281,PgSelectRows282,PgSelectSingle283,PgSelect284,First286,PgSelectRows287,PgSelectSingle288,PgSelect289,First291,PgSelectRows292,PgSelectSingle293 bucket9 + Bucket0 --> Bucket1 & Bucket2 & Bucket6 + Bucket2 --> Bucket3 & Bucket4 & Bucket5 + Bucket6 --> Bucket7 & Bucket8 & Bucket9 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-null-description.deopt.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-null-description.deopt.mermaid index 30807d35fd..33efcde87b 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-null-description.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-null-description.deopt.mermaid @@ -17,36 +17,40 @@ graph TD __Value2 --> Access13 __Value2 --> Access14 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + Constant8{{"Constant[8∈0] ➊
ᐸnullᐳ"}}:::plan Constant10{{"Constant[10∈0] ➊
ᐸ'POST'ᐳ"}}:::plan Constant11{{"Constant[11∈0] ➊
ᐸ2ᐳ"}}:::plan Constant34{{"Constant[34∈0] ➊
ᐸ'My Relational Post'ᐳ"}}:::plan - Constant35{{"Constant[35∈0] ➊
ᐸnullᐳ"}}:::plan - Constant36{{"Constant[36∈0] ➊
ᐸ'Such a great post.'ᐳ"}}:::plan - PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Constant35{{"Constant[35∈0] ➊
ᐸ'Such a great post.'ᐳ"}}:::plan + PgInsertSingle18[["PgInsertSingle[18∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object15 & PgClassExpression16 & Constant34 & Constant35 & Constant36 --> PgInsertSingle17 + Object15 & PgClassExpression16 & Constant34 & Constant8 & Constant35 --> PgInsertSingle18 PgInsertSingle12[["PgInsertSingle[12∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object15 & Constant10 & Constant11 --> PgInsertSingle12 - PgInsertSingle12 --> PgClassExpression16 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression21 - PgSelect23[["PgSelect[23∈2] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object15 & PgClassExpression22 --> PgSelect23 - PgInsertSingle17 --> PgClassExpression22 - First27{{"First[27∈2] ➊"}}:::plan - PgSelectRows28[["PgSelectRows[28∈2] ➊"]]:::plan + PgSelect25[["PgSelect[25∈1] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object15 & PgClassExpression24 --> PgSelect25 + Access17{{"Access[17∈1] ➊
ᐸ12.tᐳ"}}:::plan + Access17 --> PgClassExpression16 + PgInsertSingle12 --> Access17 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access23{{"Access[23∈1] ➊
ᐸ18.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgInsertSingle18 --> Access23 + Access23 --> PgClassExpression24 + First27{{"First[27∈1] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1] ➊"]]:::plan PgSelectRows28 --> First27 - PgSelect23 --> PgSelectRows28 - PgSelectSingle29{{"PgSelectSingle[29∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect25 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1] ➊
ᐸrelational_postsᐳ"}}:::plan First27 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression33 %% define steps @@ -54,17 +58,9 @@ graph TD subgraph "Buckets for mutations/basics/create-relational-post-null-description" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant34,Constant35,Constant36 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 34, 35, 36

1: PgInsertSingle[12]
2: PgClassExpression[16]
3: PgInsertSingle[17]
4:
ᐳ: PgClassExpression[21]"):::bucket + class Bucket0,__Value2,__Value4,Constant8,Constant10,Constant11,Access13,Access14,Object15,Constant34,Constant35 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 34, 8, 35

1: PgInsertSingle[12]
2: Access[17]
3: PgClassExpression[16]
4: PgInsertSingle[18]
5:
ᐳ: 23, 22, 24
6: PgSelect[25]
7: PgSelectRows[28]
ᐳ: 27, 29, 30, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle12,PgClassExpression16,PgInsertSingle17,PgClassExpression21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 15, 21

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[21]
1:
ᐳ: PgClassExpression[22]
2: PgSelect[23]
3: PgSelectRows[28]
ᐳ: First[27], PgSelectSingle[29]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 29

ROOT PgSelectSingle{2}ᐸrelational_postsᐳ[29]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket3 + class Bucket1,PgInsertSingle12,PgClassExpression16,Access17,PgInsertSingle18,PgClassExpression22,Access23,PgClassExpression24,PgSelect25,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-null-description.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-null-description.mermaid index 30807d35fd..33efcde87b 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-null-description.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-null-description.mermaid @@ -17,36 +17,40 @@ graph TD __Value2 --> Access13 __Value2 --> Access14 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + Constant8{{"Constant[8∈0] ➊
ᐸnullᐳ"}}:::plan Constant10{{"Constant[10∈0] ➊
ᐸ'POST'ᐳ"}}:::plan Constant11{{"Constant[11∈0] ➊
ᐸ2ᐳ"}}:::plan Constant34{{"Constant[34∈0] ➊
ᐸ'My Relational Post'ᐳ"}}:::plan - Constant35{{"Constant[35∈0] ➊
ᐸnullᐳ"}}:::plan - Constant36{{"Constant[36∈0] ➊
ᐸ'Such a great post.'ᐳ"}}:::plan - PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Constant35{{"Constant[35∈0] ➊
ᐸ'Such a great post.'ᐳ"}}:::plan + PgInsertSingle18[["PgInsertSingle[18∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object15 & PgClassExpression16 & Constant34 & Constant35 & Constant36 --> PgInsertSingle17 + Object15 & PgClassExpression16 & Constant34 & Constant8 & Constant35 --> PgInsertSingle18 PgInsertSingle12[["PgInsertSingle[12∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object15 & Constant10 & Constant11 --> PgInsertSingle12 - PgInsertSingle12 --> PgClassExpression16 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression21 - PgSelect23[["PgSelect[23∈2] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object15 & PgClassExpression22 --> PgSelect23 - PgInsertSingle17 --> PgClassExpression22 - First27{{"First[27∈2] ➊"}}:::plan - PgSelectRows28[["PgSelectRows[28∈2] ➊"]]:::plan + PgSelect25[["PgSelect[25∈1] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object15 & PgClassExpression24 --> PgSelect25 + Access17{{"Access[17∈1] ➊
ᐸ12.tᐳ"}}:::plan + Access17 --> PgClassExpression16 + PgInsertSingle12 --> Access17 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access23{{"Access[23∈1] ➊
ᐸ18.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgInsertSingle18 --> Access23 + Access23 --> PgClassExpression24 + First27{{"First[27∈1] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1] ➊"]]:::plan PgSelectRows28 --> First27 - PgSelect23 --> PgSelectRows28 - PgSelectSingle29{{"PgSelectSingle[29∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect25 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1] ➊
ᐸrelational_postsᐳ"}}:::plan First27 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression33 %% define steps @@ -54,17 +58,9 @@ graph TD subgraph "Buckets for mutations/basics/create-relational-post-null-description" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant34,Constant35,Constant36 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 34, 35, 36

1: PgInsertSingle[12]
2: PgClassExpression[16]
3: PgInsertSingle[17]
4:
ᐳ: PgClassExpression[21]"):::bucket + class Bucket0,__Value2,__Value4,Constant8,Constant10,Constant11,Access13,Access14,Object15,Constant34,Constant35 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 34, 8, 35

1: PgInsertSingle[12]
2: Access[17]
3: PgClassExpression[16]
4: PgInsertSingle[18]
5:
ᐳ: 23, 22, 24
6: PgSelect[25]
7: PgSelectRows[28]
ᐳ: 27, 29, 30, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle12,PgClassExpression16,PgInsertSingle17,PgClassExpression21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 15, 21

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[21]
1:
ᐳ: PgClassExpression[22]
2: PgSelect[23]
3: PgSelectRows[28]
ᐳ: First[27], PgSelectSingle[29]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 29

ROOT PgSelectSingle{2}ᐸrelational_postsᐳ[29]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket3 + class Bucket1,PgInsertSingle12,PgClassExpression16,Access17,PgInsertSingle18,PgClassExpression22,Access23,PgClassExpression24,PgSelect25,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-x4.deopt.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-x4.deopt.mermaid index df0803937c..133d715714 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-x4.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-x4.deopt.mermaid @@ -31,127 +31,143 @@ graph TD Constant127{{"Constant[127∈0] ➊
ᐸ'My Relational Post 4'ᐳ"}}:::plan Constant128{{"Constant[128∈0] ➊
ᐸ'A post, innit? 4'ᐳ"}}:::plan Constant129{{"Constant[129∈0] ➊
ᐸ'Such a great post. 4'ᐳ"}}:::plan - PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + PgInsertSingle18[["PgInsertSingle[18∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object15 & PgClassExpression16 & Constant118 & Constant119 & Constant120 --> PgInsertSingle17 + Object15 & PgClassExpression16 & Constant118 & Constant119 & Constant120 --> PgInsertSingle18 PgInsertSingle12[["PgInsertSingle[12∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object15 & Constant10 & Constant11 --> PgInsertSingle12 - PgInsertSingle12 --> PgClassExpression16 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression21 - PgSelect23[["PgSelect[23∈2] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object15 & PgClassExpression22 --> PgSelect23 - PgInsertSingle17 --> PgClassExpression22 - First27{{"First[27∈2] ➊"}}:::plan - PgSelectRows28[["PgSelectRows[28∈2] ➊"]]:::plan + PgSelect25[["PgSelect[25∈1] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object15 & PgClassExpression24 --> PgSelect25 + Access17{{"Access[17∈1] ➊
ᐸ12.tᐳ"}}:::plan + Access17 --> PgClassExpression16 + PgInsertSingle12 --> Access17 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access23{{"Access[23∈1] ➊
ᐸ18.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgInsertSingle18 --> Access23 + Access23 --> PgClassExpression24 + First27{{"First[27∈1] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1] ➊"]]:::plan PgSelectRows28 --> First27 - PgSelect23 --> PgSelectRows28 - PgSelectSingle29{{"PgSelectSingle[29∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect25 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1] ➊
ᐸrelational_postsᐳ"}}:::plan First27 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression33 - PgInsertSingle45[["PgInsertSingle[45∈4] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - Object43{{"Object[43∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - PgClassExpression44{{"PgClassExpression[44∈4] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object43 & PgClassExpression44 & Constant121 & Constant122 & Constant123 --> PgInsertSingle45 - PgInsertSingle40[["PgInsertSingle[40∈4] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + PgInsertSingle46[["PgInsertSingle[46∈2] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Object43{{"Object[43∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgClassExpression44{{"PgClassExpression[44∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object43 & PgClassExpression44 & Constant121 & Constant122 & Constant123 --> PgInsertSingle46 + PgInsertSingle40[["PgInsertSingle[40∈2] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object43 & Constant10 & Constant11 --> PgInsertSingle40 - Access41{{"Access[41∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access42{{"Access[42∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access41{{"Access[41∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access42{{"Access[42∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access41 & Access42 --> Object43 + PgSelect53[["PgSelect[53∈2] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression52{{"PgClassExpression[52∈2] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object43 & PgClassExpression52 --> PgSelect53 __Value2 --> Access41 __Value2 --> Access42 - PgInsertSingle40 --> PgClassExpression44 - PgClassExpression49{{"PgClassExpression[49∈4] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle45 --> PgClassExpression49 - PgSelect51[["PgSelect[51∈5] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression50{{"PgClassExpression[50∈5] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object43 & PgClassExpression50 --> PgSelect51 - PgInsertSingle45 --> PgClassExpression50 - First55{{"First[55∈5] ➊"}}:::plan - PgSelectRows56[["PgSelectRows[56∈5] ➊"]]:::plan + Access45{{"Access[45∈2] ➊
ᐸ40.tᐳ"}}:::plan + Access45 --> PgClassExpression44 + PgInsertSingle40 --> Access45 + PgClassExpression50{{"PgClassExpression[50∈2] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access51{{"Access[51∈2] ➊
ᐸ46.tᐳ"}}:::plan + Access51 --> PgClassExpression50 + PgInsertSingle46 --> Access51 + Access51 --> PgClassExpression52 + First55{{"First[55∈2] ➊"}}:::plan + PgSelectRows56[["PgSelectRows[56∈2] ➊"]]:::plan PgSelectRows56 --> First55 - PgSelect51 --> PgSelectRows56 - PgSelectSingle57{{"PgSelectSingle[57∈5] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect53 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈2] ➊
ᐸrelational_postsᐳ"}}:::plan First55 --> PgSelectSingle57 - PgClassExpression58{{"PgClassExpression[58∈6] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + PgClassExpression58{{"PgClassExpression[58∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan PgSelectSingle57 --> PgClassExpression58 - PgClassExpression59{{"PgClassExpression[59∈6] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression59{{"PgClassExpression[59∈2] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle57 --> PgClassExpression59 - PgClassExpression60{{"PgClassExpression[60∈6] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈2] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle57 --> PgClassExpression60 - PgClassExpression61{{"PgClassExpression[61∈6] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈2] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle57 --> PgClassExpression61 - PgInsertSingle73[["PgInsertSingle[73∈7] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - Object71{{"Object[71∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - PgClassExpression72{{"PgClassExpression[72∈7] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object71 & PgClassExpression72 & Constant124 & Constant125 & Constant126 --> PgInsertSingle73 - PgInsertSingle68[["PgInsertSingle[68∈7] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + PgInsertSingle74[["PgInsertSingle[74∈3] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Object71{{"Object[71∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgClassExpression72{{"PgClassExpression[72∈3] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object71 & PgClassExpression72 & Constant124 & Constant125 & Constant126 --> PgInsertSingle74 + PgInsertSingle68[["PgInsertSingle[68∈3] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object71 & Constant10 & Constant11 --> PgInsertSingle68 - Access69{{"Access[69∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access70{{"Access[70∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access69{{"Access[69∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access70{{"Access[70∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access69 & Access70 --> Object71 + PgSelect81[["PgSelect[81∈3] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression80{{"PgClassExpression[80∈3] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object71 & PgClassExpression80 --> PgSelect81 __Value2 --> Access69 __Value2 --> Access70 - PgInsertSingle68 --> PgClassExpression72 - PgClassExpression77{{"PgClassExpression[77∈7] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle73 --> PgClassExpression77 - PgSelect79[["PgSelect[79∈8] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression78{{"PgClassExpression[78∈8] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object71 & PgClassExpression78 --> PgSelect79 - PgInsertSingle73 --> PgClassExpression78 - First83{{"First[83∈8] ➊"}}:::plan - PgSelectRows84[["PgSelectRows[84∈8] ➊"]]:::plan + Access73{{"Access[73∈3] ➊
ᐸ68.tᐳ"}}:::plan + Access73 --> PgClassExpression72 + PgInsertSingle68 --> Access73 + PgClassExpression78{{"PgClassExpression[78∈3] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access79{{"Access[79∈3] ➊
ᐸ74.tᐳ"}}:::plan + Access79 --> PgClassExpression78 + PgInsertSingle74 --> Access79 + Access79 --> PgClassExpression80 + First83{{"First[83∈3] ➊"}}:::plan + PgSelectRows84[["PgSelectRows[84∈3] ➊"]]:::plan PgSelectRows84 --> First83 - PgSelect79 --> PgSelectRows84 - PgSelectSingle85{{"PgSelectSingle[85∈8] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect81 --> PgSelectRows84 + PgSelectSingle85{{"PgSelectSingle[85∈3] ➊
ᐸrelational_postsᐳ"}}:::plan First83 --> PgSelectSingle85 - PgClassExpression86{{"PgClassExpression[86∈9] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + PgClassExpression86{{"PgClassExpression[86∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan PgSelectSingle85 --> PgClassExpression86 - PgClassExpression87{{"PgClassExpression[87∈9] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression87{{"PgClassExpression[87∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle85 --> PgClassExpression87 - PgClassExpression88{{"PgClassExpression[88∈9] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression88{{"PgClassExpression[88∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle85 --> PgClassExpression88 - PgClassExpression89{{"PgClassExpression[89∈9] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression89{{"PgClassExpression[89∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle85 --> PgClassExpression89 - PgInsertSingle101[["PgInsertSingle[101∈10] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - Object99{{"Object[99∈10] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - PgClassExpression100{{"PgClassExpression[100∈10] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object99 & PgClassExpression100 & Constant127 & Constant128 & Constant129 --> PgInsertSingle101 - PgInsertSingle96[["PgInsertSingle[96∈10] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + PgInsertSingle102[["PgInsertSingle[102∈4] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Object99{{"Object[99∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgClassExpression100{{"PgClassExpression[100∈4] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object99 & PgClassExpression100 & Constant127 & Constant128 & Constant129 --> PgInsertSingle102 + PgInsertSingle96[["PgInsertSingle[96∈4] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object99 & Constant10 & Constant11 --> PgInsertSingle96 - Access97{{"Access[97∈10] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access98{{"Access[98∈10] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access97{{"Access[97∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access98{{"Access[98∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access97 & Access98 --> Object99 + PgSelect109[["PgSelect[109∈4] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression108{{"PgClassExpression[108∈4] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object99 & PgClassExpression108 --> PgSelect109 __Value2 --> Access97 __Value2 --> Access98 - PgInsertSingle96 --> PgClassExpression100 - PgClassExpression105{{"PgClassExpression[105∈10] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle101 --> PgClassExpression105 - PgSelect107[["PgSelect[107∈11] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression106{{"PgClassExpression[106∈11] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object99 & PgClassExpression106 --> PgSelect107 - PgInsertSingle101 --> PgClassExpression106 - First111{{"First[111∈11] ➊"}}:::plan - PgSelectRows112[["PgSelectRows[112∈11] ➊"]]:::plan + Access101{{"Access[101∈4] ➊
ᐸ96.tᐳ"}}:::plan + Access101 --> PgClassExpression100 + PgInsertSingle96 --> Access101 + PgClassExpression106{{"PgClassExpression[106∈4] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access107{{"Access[107∈4] ➊
ᐸ102.tᐳ"}}:::plan + Access107 --> PgClassExpression106 + PgInsertSingle102 --> Access107 + Access107 --> PgClassExpression108 + First111{{"First[111∈4] ➊"}}:::plan + PgSelectRows112[["PgSelectRows[112∈4] ➊"]]:::plan PgSelectRows112 --> First111 - PgSelect107 --> PgSelectRows112 - PgSelectSingle113{{"PgSelectSingle[113∈11] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect109 --> PgSelectRows112 + PgSelectSingle113{{"PgSelectSingle[113∈4] ➊
ᐸrelational_postsᐳ"}}:::plan First111 --> PgSelectSingle113 - PgClassExpression114{{"PgClassExpression[114∈12] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + PgClassExpression114{{"PgClassExpression[114∈4] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan PgSelectSingle113 --> PgClassExpression114 - PgClassExpression115{{"PgClassExpression[115∈12] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression115{{"PgClassExpression[115∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle113 --> PgClassExpression115 - PgClassExpression116{{"PgClassExpression[116∈12] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression116{{"PgClassExpression[116∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle113 --> PgClassExpression116 - PgClassExpression117{{"PgClassExpression[117∈12] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression117{{"PgClassExpression[117∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle113 --> PgClassExpression117 %% define steps @@ -160,49 +176,17 @@ graph TD Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant118,Constant119,Constant120,Constant121,Constant122,Constant123,Constant124,Constant125,Constant126,Constant127,Constant128,Constant129 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 118, 119, 120

1: PgInsertSingle[12]
2: PgClassExpression[16]
3: PgInsertSingle[17]
4:
ᐳ: PgClassExpression[21]"):::bucket + Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 118, 119, 120

1: PgInsertSingle[12]
2: Access[17]
3: PgClassExpression[16]
4: PgInsertSingle[18]
5:
ᐳ: 23, 22, 24
6: PgSelect[25]
7: PgSelectRows[28]
ᐳ: 27, 29, 30, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle12,PgClassExpression16,PgInsertSingle17,PgClassExpression21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 15, 21

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[21]
1:
ᐳ: PgClassExpression[22]
2: PgSelect[23]
3: PgSelectRows[28]
ᐳ: First[27], PgSelectSingle[29]"):::bucket + class Bucket1,PgInsertSingle12,PgClassExpression16,Access17,PgInsertSingle18,PgClassExpression22,Access23,PgClassExpression24,PgSelect25,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 10, 11, 2, 121, 122, 123

1: Access[41]
2: Access[42]
3: Object[43]
4: PgInsertSingle[40]
5: Access[45]
6: PgClassExpression[44]
7: PgInsertSingle[46]
8:
ᐳ: 51, 50, 52
9: PgSelect[53]
10: PgSelectRows[56]
ᐳ: 55, 57, 58, 59, 60, 61"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 29

ROOT PgSelectSingle{2}ᐸrelational_postsᐳ[29]"):::bucket + class Bucket2,PgInsertSingle40,Access41,Access42,Object43,PgClassExpression44,Access45,PgInsertSingle46,PgClassExpression50,Access51,PgClassExpression52,PgSelect53,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,PgClassExpression59,PgClassExpression60,PgClassExpression61 bucket2 + Bucket3("Bucket 3 (mutationField)
Deps: 10, 11, 2, 124, 125, 126

1: Access[69]
2: Access[70]
3: Object[71]
4: PgInsertSingle[68]
5: Access[73]
6: PgClassExpression[72]
7: PgInsertSingle[74]
8:
ᐳ: 79, 78, 80
9: PgSelect[81]
10: PgSelectRows[84]
ᐳ: 83, 85, 86, 87, 88, 89"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket3 - Bucket4("Bucket 4 (mutationField)
Deps: 10, 11, 2, 121, 122, 123

1: Access[41]
2: Access[42]
3: Object[43]
4: PgInsertSingle[40]
5: PgClassExpression[44]
6: PgInsertSingle[45]
7:
ᐳ: PgClassExpression[49]"):::bucket + class Bucket3,PgInsertSingle68,Access69,Access70,Object71,PgClassExpression72,Access73,PgInsertSingle74,PgClassExpression78,Access79,PgClassExpression80,PgSelect81,First83,PgSelectRows84,PgSelectSingle85,PgClassExpression86,PgClassExpression87,PgClassExpression88,PgClassExpression89 bucket3 + Bucket4("Bucket 4 (mutationField)
Deps: 10, 11, 2, 127, 128, 129

1: Access[97]
2: Access[98]
3: Object[99]
4: PgInsertSingle[96]
5: Access[101]
6: PgClassExpression[100]
7: PgInsertSingle[102]
8:
ᐳ: 107, 106, 108
9: PgSelect[109]
10: PgSelectRows[112]
ᐳ: 111, 113, 114, 115, 116, 117"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgInsertSingle40,Access41,Access42,Object43,PgClassExpression44,PgInsertSingle45,PgClassExpression49 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 45, 43, 49

ROOT PgClassExpression{4}ᐸ__relational_posts__ᐳ[49]
1:
ᐳ: PgClassExpression[50]
2: PgSelect[51]
3: PgSelectRows[56]
ᐳ: First[55], PgSelectSingle[57]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression50,PgSelect51,First55,PgSelectRows56,PgSelectSingle57 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 57

ROOT PgSelectSingle{5}ᐸrelational_postsᐳ[57]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression58,PgClassExpression59,PgClassExpression60,PgClassExpression61 bucket6 - Bucket7("Bucket 7 (mutationField)
Deps: 10, 11, 2, 124, 125, 126

1: Access[69]
2: Access[70]
3: Object[71]
4: PgInsertSingle[68]
5: PgClassExpression[72]
6: PgInsertSingle[73]
7:
ᐳ: PgClassExpression[77]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgInsertSingle68,Access69,Access70,Object71,PgClassExpression72,PgInsertSingle73,PgClassExpression77 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 73, 71, 77

ROOT PgClassExpression{7}ᐸ__relational_posts__ᐳ[77]
1:
ᐳ: PgClassExpression[78]
2: PgSelect[79]
3: PgSelectRows[84]
ᐳ: First[83], PgSelectSingle[85]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression78,PgSelect79,First83,PgSelectRows84,PgSelectSingle85 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 85

ROOT PgSelectSingle{8}ᐸrelational_postsᐳ[85]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression86,PgClassExpression87,PgClassExpression88,PgClassExpression89 bucket9 - Bucket10("Bucket 10 (mutationField)
Deps: 10, 11, 2, 127, 128, 129

1: Access[97]
2: Access[98]
3: Object[99]
4: PgInsertSingle[96]
5: PgClassExpression[100]
6: PgInsertSingle[101]
7:
ᐳ: PgClassExpression[105]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgInsertSingle96,Access97,Access98,Object99,PgClassExpression100,PgInsertSingle101,PgClassExpression105 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 101, 99, 105

ROOT PgClassExpression{10}ᐸ__relational_posts__ᐳ[105]
1:
ᐳ: PgClassExpression[106]
2: PgSelect[107]
3: PgSelectRows[112]
ᐳ: First[111], PgSelectSingle[113]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression106,PgSelect107,First111,PgSelectRows112,PgSelectSingle113 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 113

ROOT PgSelectSingle{11}ᐸrelational_postsᐳ[113]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgClassExpression114,PgClassExpression115,PgClassExpression116,PgClassExpression117 bucket12 - Bucket0 --> Bucket1 & Bucket4 & Bucket7 & Bucket10 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 - Bucket10 --> Bucket11 - Bucket11 --> Bucket12 + class Bucket4,PgInsertSingle96,Access97,Access98,Object99,PgClassExpression100,Access101,PgInsertSingle102,PgClassExpression106,Access107,PgClassExpression108,PgSelect109,First111,PgSelectRows112,PgSelectSingle113,PgClassExpression114,PgClassExpression115,PgClassExpression116,PgClassExpression117 bucket4 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-x4.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-x4.mermaid index df0803937c..133d715714 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-x4.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post-x4.mermaid @@ -31,127 +31,143 @@ graph TD Constant127{{"Constant[127∈0] ➊
ᐸ'My Relational Post 4'ᐳ"}}:::plan Constant128{{"Constant[128∈0] ➊
ᐸ'A post, innit? 4'ᐳ"}}:::plan Constant129{{"Constant[129∈0] ➊
ᐸ'Such a great post. 4'ᐳ"}}:::plan - PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + PgInsertSingle18[["PgInsertSingle[18∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object15 & PgClassExpression16 & Constant118 & Constant119 & Constant120 --> PgInsertSingle17 + Object15 & PgClassExpression16 & Constant118 & Constant119 & Constant120 --> PgInsertSingle18 PgInsertSingle12[["PgInsertSingle[12∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object15 & Constant10 & Constant11 --> PgInsertSingle12 - PgInsertSingle12 --> PgClassExpression16 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression21 - PgSelect23[["PgSelect[23∈2] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object15 & PgClassExpression22 --> PgSelect23 - PgInsertSingle17 --> PgClassExpression22 - First27{{"First[27∈2] ➊"}}:::plan - PgSelectRows28[["PgSelectRows[28∈2] ➊"]]:::plan + PgSelect25[["PgSelect[25∈1] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object15 & PgClassExpression24 --> PgSelect25 + Access17{{"Access[17∈1] ➊
ᐸ12.tᐳ"}}:::plan + Access17 --> PgClassExpression16 + PgInsertSingle12 --> Access17 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access23{{"Access[23∈1] ➊
ᐸ18.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgInsertSingle18 --> Access23 + Access23 --> PgClassExpression24 + First27{{"First[27∈1] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1] ➊"]]:::plan PgSelectRows28 --> First27 - PgSelect23 --> PgSelectRows28 - PgSelectSingle29{{"PgSelectSingle[29∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect25 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1] ➊
ᐸrelational_postsᐳ"}}:::plan First27 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression33 - PgInsertSingle45[["PgInsertSingle[45∈4] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - Object43{{"Object[43∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - PgClassExpression44{{"PgClassExpression[44∈4] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object43 & PgClassExpression44 & Constant121 & Constant122 & Constant123 --> PgInsertSingle45 - PgInsertSingle40[["PgInsertSingle[40∈4] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + PgInsertSingle46[["PgInsertSingle[46∈2] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Object43{{"Object[43∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgClassExpression44{{"PgClassExpression[44∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object43 & PgClassExpression44 & Constant121 & Constant122 & Constant123 --> PgInsertSingle46 + PgInsertSingle40[["PgInsertSingle[40∈2] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object43 & Constant10 & Constant11 --> PgInsertSingle40 - Access41{{"Access[41∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access42{{"Access[42∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access41{{"Access[41∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access42{{"Access[42∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access41 & Access42 --> Object43 + PgSelect53[["PgSelect[53∈2] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression52{{"PgClassExpression[52∈2] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object43 & PgClassExpression52 --> PgSelect53 __Value2 --> Access41 __Value2 --> Access42 - PgInsertSingle40 --> PgClassExpression44 - PgClassExpression49{{"PgClassExpression[49∈4] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle45 --> PgClassExpression49 - PgSelect51[["PgSelect[51∈5] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression50{{"PgClassExpression[50∈5] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object43 & PgClassExpression50 --> PgSelect51 - PgInsertSingle45 --> PgClassExpression50 - First55{{"First[55∈5] ➊"}}:::plan - PgSelectRows56[["PgSelectRows[56∈5] ➊"]]:::plan + Access45{{"Access[45∈2] ➊
ᐸ40.tᐳ"}}:::plan + Access45 --> PgClassExpression44 + PgInsertSingle40 --> Access45 + PgClassExpression50{{"PgClassExpression[50∈2] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access51{{"Access[51∈2] ➊
ᐸ46.tᐳ"}}:::plan + Access51 --> PgClassExpression50 + PgInsertSingle46 --> Access51 + Access51 --> PgClassExpression52 + First55{{"First[55∈2] ➊"}}:::plan + PgSelectRows56[["PgSelectRows[56∈2] ➊"]]:::plan PgSelectRows56 --> First55 - PgSelect51 --> PgSelectRows56 - PgSelectSingle57{{"PgSelectSingle[57∈5] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect53 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈2] ➊
ᐸrelational_postsᐳ"}}:::plan First55 --> PgSelectSingle57 - PgClassExpression58{{"PgClassExpression[58∈6] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + PgClassExpression58{{"PgClassExpression[58∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan PgSelectSingle57 --> PgClassExpression58 - PgClassExpression59{{"PgClassExpression[59∈6] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression59{{"PgClassExpression[59∈2] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle57 --> PgClassExpression59 - PgClassExpression60{{"PgClassExpression[60∈6] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈2] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle57 --> PgClassExpression60 - PgClassExpression61{{"PgClassExpression[61∈6] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈2] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle57 --> PgClassExpression61 - PgInsertSingle73[["PgInsertSingle[73∈7] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - Object71{{"Object[71∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - PgClassExpression72{{"PgClassExpression[72∈7] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object71 & PgClassExpression72 & Constant124 & Constant125 & Constant126 --> PgInsertSingle73 - PgInsertSingle68[["PgInsertSingle[68∈7] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + PgInsertSingle74[["PgInsertSingle[74∈3] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Object71{{"Object[71∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgClassExpression72{{"PgClassExpression[72∈3] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object71 & PgClassExpression72 & Constant124 & Constant125 & Constant126 --> PgInsertSingle74 + PgInsertSingle68[["PgInsertSingle[68∈3] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object71 & Constant10 & Constant11 --> PgInsertSingle68 - Access69{{"Access[69∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access70{{"Access[70∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access69{{"Access[69∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access70{{"Access[70∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access69 & Access70 --> Object71 + PgSelect81[["PgSelect[81∈3] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression80{{"PgClassExpression[80∈3] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object71 & PgClassExpression80 --> PgSelect81 __Value2 --> Access69 __Value2 --> Access70 - PgInsertSingle68 --> PgClassExpression72 - PgClassExpression77{{"PgClassExpression[77∈7] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle73 --> PgClassExpression77 - PgSelect79[["PgSelect[79∈8] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression78{{"PgClassExpression[78∈8] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object71 & PgClassExpression78 --> PgSelect79 - PgInsertSingle73 --> PgClassExpression78 - First83{{"First[83∈8] ➊"}}:::plan - PgSelectRows84[["PgSelectRows[84∈8] ➊"]]:::plan + Access73{{"Access[73∈3] ➊
ᐸ68.tᐳ"}}:::plan + Access73 --> PgClassExpression72 + PgInsertSingle68 --> Access73 + PgClassExpression78{{"PgClassExpression[78∈3] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access79{{"Access[79∈3] ➊
ᐸ74.tᐳ"}}:::plan + Access79 --> PgClassExpression78 + PgInsertSingle74 --> Access79 + Access79 --> PgClassExpression80 + First83{{"First[83∈3] ➊"}}:::plan + PgSelectRows84[["PgSelectRows[84∈3] ➊"]]:::plan PgSelectRows84 --> First83 - PgSelect79 --> PgSelectRows84 - PgSelectSingle85{{"PgSelectSingle[85∈8] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect81 --> PgSelectRows84 + PgSelectSingle85{{"PgSelectSingle[85∈3] ➊
ᐸrelational_postsᐳ"}}:::plan First83 --> PgSelectSingle85 - PgClassExpression86{{"PgClassExpression[86∈9] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + PgClassExpression86{{"PgClassExpression[86∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan PgSelectSingle85 --> PgClassExpression86 - PgClassExpression87{{"PgClassExpression[87∈9] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression87{{"PgClassExpression[87∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle85 --> PgClassExpression87 - PgClassExpression88{{"PgClassExpression[88∈9] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression88{{"PgClassExpression[88∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle85 --> PgClassExpression88 - PgClassExpression89{{"PgClassExpression[89∈9] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression89{{"PgClassExpression[89∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle85 --> PgClassExpression89 - PgInsertSingle101[["PgInsertSingle[101∈10] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - Object99{{"Object[99∈10] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - PgClassExpression100{{"PgClassExpression[100∈10] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object99 & PgClassExpression100 & Constant127 & Constant128 & Constant129 --> PgInsertSingle101 - PgInsertSingle96[["PgInsertSingle[96∈10] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + PgInsertSingle102[["PgInsertSingle[102∈4] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Object99{{"Object[99∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgClassExpression100{{"PgClassExpression[100∈4] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object99 & PgClassExpression100 & Constant127 & Constant128 & Constant129 --> PgInsertSingle102 + PgInsertSingle96[["PgInsertSingle[96∈4] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object99 & Constant10 & Constant11 --> PgInsertSingle96 - Access97{{"Access[97∈10] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access98{{"Access[98∈10] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access97{{"Access[97∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access98{{"Access[98∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access97 & Access98 --> Object99 + PgSelect109[["PgSelect[109∈4] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression108{{"PgClassExpression[108∈4] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object99 & PgClassExpression108 --> PgSelect109 __Value2 --> Access97 __Value2 --> Access98 - PgInsertSingle96 --> PgClassExpression100 - PgClassExpression105{{"PgClassExpression[105∈10] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle101 --> PgClassExpression105 - PgSelect107[["PgSelect[107∈11] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression106{{"PgClassExpression[106∈11] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object99 & PgClassExpression106 --> PgSelect107 - PgInsertSingle101 --> PgClassExpression106 - First111{{"First[111∈11] ➊"}}:::plan - PgSelectRows112[["PgSelectRows[112∈11] ➊"]]:::plan + Access101{{"Access[101∈4] ➊
ᐸ96.tᐳ"}}:::plan + Access101 --> PgClassExpression100 + PgInsertSingle96 --> Access101 + PgClassExpression106{{"PgClassExpression[106∈4] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access107{{"Access[107∈4] ➊
ᐸ102.tᐳ"}}:::plan + Access107 --> PgClassExpression106 + PgInsertSingle102 --> Access107 + Access107 --> PgClassExpression108 + First111{{"First[111∈4] ➊"}}:::plan + PgSelectRows112[["PgSelectRows[112∈4] ➊"]]:::plan PgSelectRows112 --> First111 - PgSelect107 --> PgSelectRows112 - PgSelectSingle113{{"PgSelectSingle[113∈11] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect109 --> PgSelectRows112 + PgSelectSingle113{{"PgSelectSingle[113∈4] ➊
ᐸrelational_postsᐳ"}}:::plan First111 --> PgSelectSingle113 - PgClassExpression114{{"PgClassExpression[114∈12] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + PgClassExpression114{{"PgClassExpression[114∈4] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan PgSelectSingle113 --> PgClassExpression114 - PgClassExpression115{{"PgClassExpression[115∈12] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression115{{"PgClassExpression[115∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle113 --> PgClassExpression115 - PgClassExpression116{{"PgClassExpression[116∈12] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression116{{"PgClassExpression[116∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle113 --> PgClassExpression116 - PgClassExpression117{{"PgClassExpression[117∈12] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression117{{"PgClassExpression[117∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle113 --> PgClassExpression117 %% define steps @@ -160,49 +176,17 @@ graph TD Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant118,Constant119,Constant120,Constant121,Constant122,Constant123,Constant124,Constant125,Constant126,Constant127,Constant128,Constant129 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 118, 119, 120

1: PgInsertSingle[12]
2: PgClassExpression[16]
3: PgInsertSingle[17]
4:
ᐳ: PgClassExpression[21]"):::bucket + Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 118, 119, 120

1: PgInsertSingle[12]
2: Access[17]
3: PgClassExpression[16]
4: PgInsertSingle[18]
5:
ᐳ: 23, 22, 24
6: PgSelect[25]
7: PgSelectRows[28]
ᐳ: 27, 29, 30, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle12,PgClassExpression16,PgInsertSingle17,PgClassExpression21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 15, 21

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[21]
1:
ᐳ: PgClassExpression[22]
2: PgSelect[23]
3: PgSelectRows[28]
ᐳ: First[27], PgSelectSingle[29]"):::bucket + class Bucket1,PgInsertSingle12,PgClassExpression16,Access17,PgInsertSingle18,PgClassExpression22,Access23,PgClassExpression24,PgSelect25,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 10, 11, 2, 121, 122, 123

1: Access[41]
2: Access[42]
3: Object[43]
4: PgInsertSingle[40]
5: Access[45]
6: PgClassExpression[44]
7: PgInsertSingle[46]
8:
ᐳ: 51, 50, 52
9: PgSelect[53]
10: PgSelectRows[56]
ᐳ: 55, 57, 58, 59, 60, 61"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 29

ROOT PgSelectSingle{2}ᐸrelational_postsᐳ[29]"):::bucket + class Bucket2,PgInsertSingle40,Access41,Access42,Object43,PgClassExpression44,Access45,PgInsertSingle46,PgClassExpression50,Access51,PgClassExpression52,PgSelect53,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,PgClassExpression59,PgClassExpression60,PgClassExpression61 bucket2 + Bucket3("Bucket 3 (mutationField)
Deps: 10, 11, 2, 124, 125, 126

1: Access[69]
2: Access[70]
3: Object[71]
4: PgInsertSingle[68]
5: Access[73]
6: PgClassExpression[72]
7: PgInsertSingle[74]
8:
ᐳ: 79, 78, 80
9: PgSelect[81]
10: PgSelectRows[84]
ᐳ: 83, 85, 86, 87, 88, 89"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket3 - Bucket4("Bucket 4 (mutationField)
Deps: 10, 11, 2, 121, 122, 123

1: Access[41]
2: Access[42]
3: Object[43]
4: PgInsertSingle[40]
5: PgClassExpression[44]
6: PgInsertSingle[45]
7:
ᐳ: PgClassExpression[49]"):::bucket + class Bucket3,PgInsertSingle68,Access69,Access70,Object71,PgClassExpression72,Access73,PgInsertSingle74,PgClassExpression78,Access79,PgClassExpression80,PgSelect81,First83,PgSelectRows84,PgSelectSingle85,PgClassExpression86,PgClassExpression87,PgClassExpression88,PgClassExpression89 bucket3 + Bucket4("Bucket 4 (mutationField)
Deps: 10, 11, 2, 127, 128, 129

1: Access[97]
2: Access[98]
3: Object[99]
4: PgInsertSingle[96]
5: Access[101]
6: PgClassExpression[100]
7: PgInsertSingle[102]
8:
ᐳ: 107, 106, 108
9: PgSelect[109]
10: PgSelectRows[112]
ᐳ: 111, 113, 114, 115, 116, 117"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgInsertSingle40,Access41,Access42,Object43,PgClassExpression44,PgInsertSingle45,PgClassExpression49 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 45, 43, 49

ROOT PgClassExpression{4}ᐸ__relational_posts__ᐳ[49]
1:
ᐳ: PgClassExpression[50]
2: PgSelect[51]
3: PgSelectRows[56]
ᐳ: First[55], PgSelectSingle[57]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression50,PgSelect51,First55,PgSelectRows56,PgSelectSingle57 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 57

ROOT PgSelectSingle{5}ᐸrelational_postsᐳ[57]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression58,PgClassExpression59,PgClassExpression60,PgClassExpression61 bucket6 - Bucket7("Bucket 7 (mutationField)
Deps: 10, 11, 2, 124, 125, 126

1: Access[69]
2: Access[70]
3: Object[71]
4: PgInsertSingle[68]
5: PgClassExpression[72]
6: PgInsertSingle[73]
7:
ᐳ: PgClassExpression[77]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgInsertSingle68,Access69,Access70,Object71,PgClassExpression72,PgInsertSingle73,PgClassExpression77 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 73, 71, 77

ROOT PgClassExpression{7}ᐸ__relational_posts__ᐳ[77]
1:
ᐳ: PgClassExpression[78]
2: PgSelect[79]
3: PgSelectRows[84]
ᐳ: First[83], PgSelectSingle[85]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression78,PgSelect79,First83,PgSelectRows84,PgSelectSingle85 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 85

ROOT PgSelectSingle{8}ᐸrelational_postsᐳ[85]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression86,PgClassExpression87,PgClassExpression88,PgClassExpression89 bucket9 - Bucket10("Bucket 10 (mutationField)
Deps: 10, 11, 2, 127, 128, 129

1: Access[97]
2: Access[98]
3: Object[99]
4: PgInsertSingle[96]
5: PgClassExpression[100]
6: PgInsertSingle[101]
7:
ᐳ: PgClassExpression[105]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgInsertSingle96,Access97,Access98,Object99,PgClassExpression100,PgInsertSingle101,PgClassExpression105 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 101, 99, 105

ROOT PgClassExpression{10}ᐸ__relational_posts__ᐳ[105]
1:
ᐳ: PgClassExpression[106]
2: PgSelect[107]
3: PgSelectRows[112]
ᐳ: First[111], PgSelectSingle[113]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression106,PgSelect107,First111,PgSelectRows112,PgSelectSingle113 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 113

ROOT PgSelectSingle{11}ᐸrelational_postsᐳ[113]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgClassExpression114,PgClassExpression115,PgClassExpression116,PgClassExpression117 bucket12 - Bucket0 --> Bucket1 & Bucket4 & Bucket7 & Bucket10 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 - Bucket10 --> Bucket11 - Bucket11 --> Bucket12 + class Bucket4,PgInsertSingle96,Access97,Access98,Object99,PgClassExpression100,Access101,PgInsertSingle102,PgClassExpression106,Access107,PgClassExpression108,PgSelect109,First111,PgSelectRows112,PgSelectSingle113,PgClassExpression114,PgClassExpression115,PgClassExpression116,PgClassExpression117 bucket4 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post.deopt.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post.deopt.mermaid index 29d76f4f3d..87bef75b5a 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post.deopt.mermaid @@ -19,92 +19,86 @@ graph TD __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan Constant10{{"Constant[10∈0] ➊
ᐸ'POST'ᐳ"}}:::plan Constant11{{"Constant[11∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant62{{"Constant[62∈0] ➊
ᐸ'My Relational Post'ᐳ"}}:::plan - Constant63{{"Constant[63∈0] ➊
ᐸ'A post, innit?'ᐳ"}}:::plan - Constant64{{"Constant[64∈0] ➊
ᐸ'Such a great post.'ᐳ"}}:::plan - PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Constant61{{"Constant[61∈0] ➊
ᐸ'My Relational Post'ᐳ"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ'A post, innit?'ᐳ"}}:::plan + Constant63{{"Constant[63∈0] ➊
ᐸ'Such a great post.'ᐳ"}}:::plan + PgInsertSingle18[["PgInsertSingle[18∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object15 & PgClassExpression16 & Constant62 & Constant63 & Constant64 --> PgInsertSingle17 + Object15 & PgClassExpression16 & Constant61 & Constant62 & Constant63 --> PgInsertSingle18 PgInsertSingle12[["PgInsertSingle[12∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object15 & Constant10 & Constant11 --> PgInsertSingle12 - PgInsertSingle12 --> PgClassExpression16 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression21 - PgSelect23[["PgSelect[23∈2] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object15 & PgClassExpression22 --> PgSelect23 - PgInsertSingle17 --> PgClassExpression22 - First27{{"First[27∈2] ➊"}}:::plan - PgSelectRows28[["PgSelectRows[28∈2] ➊"]]:::plan + PgSelect25[["PgSelect[25∈1] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object15 & PgClassExpression24 --> PgSelect25 + PgSelect35[["PgSelect[35∈1] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression37{{"PgFromExpression[37∈1] ➊"}}:::plan + Object15 & PgFromExpression37 --> PgSelect35 + PgSelect42[["PgSelect[42∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object15 & PgClassExpression30 --> PgSelect42 + PgSelect54[["PgSelect[54∈1] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression53{{"PgClassExpression[53∈1] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object15 & PgClassExpression53 --> PgSelect54 + Access17{{"Access[17∈1] ➊
ᐸ12.tᐳ"}}:::plan + Access17 --> PgClassExpression16 + PgInsertSingle12 --> Access17 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access23{{"Access[23∈1] ➊
ᐸ18.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgInsertSingle18 --> Access23 + Access23 --> PgClassExpression24 + First27{{"First[27∈1] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1] ➊"]]:::plan PgSelectRows28 --> First27 - PgSelect23 --> PgSelectRows28 - PgSelectSingle29{{"PgSelectSingle[29∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect25 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1] ➊
ᐸrelational_postsᐳ"}}:::plan First27 --> PgSelectSingle29 - PgSelect35[["PgSelect[35∈3] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression34{{"PgClassExpression[34∈3] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object15 & PgClassExpression34 --> PgSelect35 - PgSelect43[["PgSelect[43∈3] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object15 & PgClassExpression30 --> PgSelect43 - PgSelect55[["PgSelect[55∈3] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression54{{"PgClassExpression[54∈3] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object15 & PgClassExpression54 --> PgSelect55 PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression34 - First39{{"First[39∈3] ➊"}}:::plan - PgSelectRows40[["PgSelectRows[40∈3] ➊"]]:::plan - PgSelectRows40 --> First39 - PgSelect35 --> PgSelectRows40 - PgSelectSingle41{{"PgSelectSingle[41∈3] ➊
ᐸtextᐳ"}}:::plan - First39 --> PgSelectSingle41 - PgClassExpression42{{"PgClassExpression[42∈3] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan - PgSelectSingle41 --> PgClassExpression42 - First45{{"First[45∈3] ➊"}}:::plan - PgSelectRows46[["PgSelectRows[46∈3] ➊"]]:::plan - PgSelectRows46 --> First45 - PgSelect43 --> PgSelectRows46 - PgSelectSingle47{{"PgSelectSingle[47∈3] ➊
ᐸrelational_itemsᐳ"}}:::plan - First45 --> PgSelectSingle47 - PgClassExpression48{{"PgClassExpression[48∈3] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression48 - PgSelectSingle47 --> PgClassExpression54 - First57{{"First[57∈3] ➊"}}:::plan - PgSelectRows58[["PgSelectRows[58∈3] ➊"]]:::plan - PgSelectRows58 --> First57 - PgSelect55 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈3] ➊
ᐸpeopleᐳ"}}:::plan - First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈4] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression60 - PgClassExpression61{{"PgClassExpression[61∈4] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression61 + PgClassExpression34 --> PgFromExpression37 + First38{{"First[38∈1] ➊"}}:::plan + PgSelectRows39[["PgSelectRows[39∈1] ➊"]]:::plan + PgSelectRows39 --> First38 + PgSelect35 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈1] ➊
ᐸtextᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈1] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + First44{{"First[44∈1] ➊"}}:::plan + PgSelectRows45[["PgSelectRows[45∈1] ➊"]]:::plan + PgSelectRows45 --> First44 + PgSelect42 --> PgSelectRows45 + PgSelectSingle46{{"PgSelectSingle[46∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + First44 --> PgSelectSingle46 + PgClassExpression47{{"PgClassExpression[47∈1] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression47 + PgSelectSingle46 --> PgClassExpression53 + First56{{"First[56∈1] ➊"}}:::plan + PgSelectRows57[["PgSelectRows[57∈1] ➊"]]:::plan + PgSelectRows57 --> First56 + PgSelect54 --> PgSelectRows57 + PgSelectSingle58{{"PgSelectSingle[58∈1] ➊
ᐸpeopleᐳ"}}:::plan + First56 --> PgSelectSingle58 + PgClassExpression59{{"PgClassExpression[59∈1] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression59 + PgClassExpression60{{"PgClassExpression[60∈1] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression60 %% define steps subgraph "Buckets for mutations/basics/create-relational-post" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant62,Constant63,Constant64 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 62, 63, 64

1: PgInsertSingle[12]
2: PgClassExpression[16]
3: PgInsertSingle[17]
4:
ᐳ: PgClassExpression[21]"):::bucket + class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant61,Constant62,Constant63 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 61, 62, 63

1: PgInsertSingle[12]
2: Access[17]
3: PgClassExpression[16]
4: PgInsertSingle[18]
5:
ᐳ: 23, 22, 24
6: PgSelect[25]
7: PgSelectRows[28]
ᐳ: 27, 29, 30, 31, 32, 33, 34, 37
8: PgSelect[35], PgSelect[42]
9: PgSelectRows[39], PgSelectRows[45]
ᐳ: 38, 40, 41, 44, 46, 47, 53
10: PgSelect[54]
11: PgSelectRows[57]
ᐳ: 56, 58, 59, 60"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle12,PgClassExpression16,PgInsertSingle17,PgClassExpression21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 15, 21

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[21]
1:
ᐳ: PgClassExpression[22]
2: PgSelect[23]
3: PgSelectRows[28]
ᐳ: First[27], PgSelectSingle[29]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 29, 15

ROOT PgSelectSingle{2}ᐸrelational_postsᐳ[29]
1:
ᐳ: 30, 31, 32, 33, 34
2: PgSelect[35], PgSelect[43]
3: PgSelectRows[40], PgSelectRows[46]
ᐳ: 39, 41, 42, 45, 47, 48, 54
4: PgSelect[55]
5: PgSelectRows[58]
ᐳ: First[57], PgSelectSingle[59]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgSelect35,First39,PgSelectRows40,PgSelectSingle41,PgClassExpression42,PgSelect43,First45,PgSelectRows46,PgSelectSingle47,PgClassExpression48,PgClassExpression54,PgSelect55,First57,PgSelectRows58,PgSelectSingle59 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 59

ROOT PgSelectSingle{3}ᐸpeopleᐳ[59]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression60,PgClassExpression61 bucket4 + class Bucket1,PgInsertSingle12,PgClassExpression16,Access17,PgInsertSingle18,PgClassExpression22,Access23,PgClassExpression24,PgSelect25,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgSelect35,PgFromExpression37,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgSelect42,First44,PgSelectRows45,PgSelectSingle46,PgClassExpression47,PgClassExpression53,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgClassExpression59,PgClassExpression60 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post.mermaid index 29d76f4f3d..87bef75b5a 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-relational-post.mermaid @@ -19,92 +19,86 @@ graph TD __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan Constant10{{"Constant[10∈0] ➊
ᐸ'POST'ᐳ"}}:::plan Constant11{{"Constant[11∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant62{{"Constant[62∈0] ➊
ᐸ'My Relational Post'ᐳ"}}:::plan - Constant63{{"Constant[63∈0] ➊
ᐸ'A post, innit?'ᐳ"}}:::plan - Constant64{{"Constant[64∈0] ➊
ᐸ'Such a great post.'ᐳ"}}:::plan - PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Constant61{{"Constant[61∈0] ➊
ᐸ'My Relational Post'ᐳ"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ'A post, innit?'ᐳ"}}:::plan + Constant63{{"Constant[63∈0] ➊
ᐸ'Such a great post.'ᐳ"}}:::plan + PgInsertSingle18[["PgInsertSingle[18∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object15 & PgClassExpression16 & Constant62 & Constant63 & Constant64 --> PgInsertSingle17 + Object15 & PgClassExpression16 & Constant61 & Constant62 & Constant63 --> PgInsertSingle18 PgInsertSingle12[["PgInsertSingle[12∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object15 & Constant10 & Constant11 --> PgInsertSingle12 - PgInsertSingle12 --> PgClassExpression16 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression21 - PgSelect23[["PgSelect[23∈2] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan - Object15 & PgClassExpression22 --> PgSelect23 - PgInsertSingle17 --> PgClassExpression22 - First27{{"First[27∈2] ➊"}}:::plan - PgSelectRows28[["PgSelectRows[28∈2] ➊"]]:::plan + PgSelect25[["PgSelect[25∈1] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ(__relatio...ts__).”id”ᐳ"}}:::plan + Object15 & PgClassExpression24 --> PgSelect25 + PgSelect35[["PgSelect[35∈1] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression37{{"PgFromExpression[37∈1] ➊"}}:::plan + Object15 & PgFromExpression37 --> PgSelect35 + PgSelect42[["PgSelect[42∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object15 & PgClassExpression30 --> PgSelect42 + PgSelect54[["PgSelect[54∈1] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression53{{"PgClassExpression[53∈1] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object15 & PgClassExpression53 --> PgSelect54 + Access17{{"Access[17∈1] ➊
ᐸ12.tᐳ"}}:::plan + Access17 --> PgClassExpression16 + PgInsertSingle12 --> Access17 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access23{{"Access[23∈1] ➊
ᐸ18.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgInsertSingle18 --> Access23 + Access23 --> PgClassExpression24 + First27{{"First[27∈1] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1] ➊"]]:::plan PgSelectRows28 --> First27 - PgSelect23 --> PgSelectRows28 - PgSelectSingle29{{"PgSelectSingle[29∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect25 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1] ➊
ᐸrelational_postsᐳ"}}:::plan First27 --> PgSelectSingle29 - PgSelect35[["PgSelect[35∈3] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression34{{"PgClassExpression[34∈3] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object15 & PgClassExpression34 --> PgSelect35 - PgSelect43[["PgSelect[43∈3] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object15 & PgClassExpression30 --> PgSelect43 - PgSelect55[["PgSelect[55∈3] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression54{{"PgClassExpression[54∈3] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object15 & PgClassExpression54 --> PgSelect55 PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression34 - First39{{"First[39∈3] ➊"}}:::plan - PgSelectRows40[["PgSelectRows[40∈3] ➊"]]:::plan - PgSelectRows40 --> First39 - PgSelect35 --> PgSelectRows40 - PgSelectSingle41{{"PgSelectSingle[41∈3] ➊
ᐸtextᐳ"}}:::plan - First39 --> PgSelectSingle41 - PgClassExpression42{{"PgClassExpression[42∈3] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan - PgSelectSingle41 --> PgClassExpression42 - First45{{"First[45∈3] ➊"}}:::plan - PgSelectRows46[["PgSelectRows[46∈3] ➊"]]:::plan - PgSelectRows46 --> First45 - PgSelect43 --> PgSelectRows46 - PgSelectSingle47{{"PgSelectSingle[47∈3] ➊
ᐸrelational_itemsᐳ"}}:::plan - First45 --> PgSelectSingle47 - PgClassExpression48{{"PgClassExpression[48∈3] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression48 - PgSelectSingle47 --> PgClassExpression54 - First57{{"First[57∈3] ➊"}}:::plan - PgSelectRows58[["PgSelectRows[58∈3] ➊"]]:::plan - PgSelectRows58 --> First57 - PgSelect55 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈3] ➊
ᐸpeopleᐳ"}}:::plan - First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈4] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression60 - PgClassExpression61{{"PgClassExpression[61∈4] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression61 + PgClassExpression34 --> PgFromExpression37 + First38{{"First[38∈1] ➊"}}:::plan + PgSelectRows39[["PgSelectRows[39∈1] ➊"]]:::plan + PgSelectRows39 --> First38 + PgSelect35 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈1] ➊
ᐸtextᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈1] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + First44{{"First[44∈1] ➊"}}:::plan + PgSelectRows45[["PgSelectRows[45∈1] ➊"]]:::plan + PgSelectRows45 --> First44 + PgSelect42 --> PgSelectRows45 + PgSelectSingle46{{"PgSelectSingle[46∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + First44 --> PgSelectSingle46 + PgClassExpression47{{"PgClassExpression[47∈1] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression47 + PgSelectSingle46 --> PgClassExpression53 + First56{{"First[56∈1] ➊"}}:::plan + PgSelectRows57[["PgSelectRows[57∈1] ➊"]]:::plan + PgSelectRows57 --> First56 + PgSelect54 --> PgSelectRows57 + PgSelectSingle58{{"PgSelectSingle[58∈1] ➊
ᐸpeopleᐳ"}}:::plan + First56 --> PgSelectSingle58 + PgClassExpression59{{"PgClassExpression[59∈1] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression59 + PgClassExpression60{{"PgClassExpression[60∈1] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression60 %% define steps subgraph "Buckets for mutations/basics/create-relational-post" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant62,Constant63,Constant64 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 62, 63, 64

1: PgInsertSingle[12]
2: PgClassExpression[16]
3: PgInsertSingle[17]
4:
ᐳ: PgClassExpression[21]"):::bucket + class Bucket0,__Value2,__Value4,Constant10,Constant11,Access13,Access14,Object15,Constant61,Constant62,Constant63 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 11, 61, 62, 63

1: PgInsertSingle[12]
2: Access[17]
3: PgClassExpression[16]
4: PgInsertSingle[18]
5:
ᐳ: 23, 22, 24
6: PgSelect[25]
7: PgSelectRows[28]
ᐳ: 27, 29, 30, 31, 32, 33, 34, 37
8: PgSelect[35], PgSelect[42]
9: PgSelectRows[39], PgSelectRows[45]
ᐳ: 38, 40, 41, 44, 46, 47, 53
10: PgSelect[54]
11: PgSelectRows[57]
ᐳ: 56, 58, 59, 60"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle12,PgClassExpression16,PgInsertSingle17,PgClassExpression21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 15, 21

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[21]
1:
ᐳ: PgClassExpression[22]
2: PgSelect[23]
3: PgSelectRows[28]
ᐳ: First[27], PgSelectSingle[29]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 29, 15

ROOT PgSelectSingle{2}ᐸrelational_postsᐳ[29]
1:
ᐳ: 30, 31, 32, 33, 34
2: PgSelect[35], PgSelect[43]
3: PgSelectRows[40], PgSelectRows[46]
ᐳ: 39, 41, 42, 45, 47, 48, 54
4: PgSelect[55]
5: PgSelectRows[58]
ᐳ: First[57], PgSelectSingle[59]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgSelect35,First39,PgSelectRows40,PgSelectSingle41,PgClassExpression42,PgSelect43,First45,PgSelectRows46,PgSelectSingle47,PgClassExpression48,PgClassExpression54,PgSelect55,First57,PgSelectRows58,PgSelectSingle59 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 59

ROOT PgSelectSingle{3}ᐸpeopleᐳ[59]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression60,PgClassExpression61 bucket4 + class Bucket1,PgInsertSingle12,PgClassExpression16,Access17,PgInsertSingle18,PgClassExpression22,Access23,PgClassExpression24,PgSelect25,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgSelect35,PgFromExpression37,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgSelect42,First44,PgSelectRows45,PgSelectSingle46,PgClassExpression47,PgClassExpression53,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgClassExpression59,PgClassExpression60 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts-computed.deopt.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts-computed.deopt.mermaid index 63cecb37a7..f8056f291e 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts-computed.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts-computed.deopt.mermaid @@ -13,242 +13,258 @@ graph TD Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 + PgFromExpression12{{"PgFromExpression[12∈0] ➊"}}:::plan + Constant6{{"Constant[6∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'Computed post ꖛ1'ᐳ"}}:::plan + Constant6 & Constant7 --> PgFromExpression12 + PgFromExpression19{{"PgFromExpression[19∈0] ➊"}}:::plan + Constant14{{"Constant[14∈0] ➊
ᐸ'Computed post ꖛ2'ᐳ"}}:::plan + Constant6 & Constant14 --> PgFromExpression19 + PgFromExpression26{{"PgFromExpression[26∈0] ➊"}}:::plan + Constant21{{"Constant[21∈0] ➊
ᐸ'Computed post ꖛ3'ᐳ"}}:::plan + Constant6 & Constant21 --> PgFromExpression26 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant7{{"Constant[7∈0] ➊
ᐸ'Computed post ꖛ1'ᐳ"}}:::plan - Constant13{{"Constant[13∈0] ➊
ᐸ'Computed post ꖛ2'ᐳ"}}:::plan - Constant19{{"Constant[19∈0] ➊
ᐸ'Computed post ꖛ3'ᐳ"}}:::plan - Constant147{{"Constant[147∈0] ➊
ᐸ1000000ᐳ"}}:::plan - Constant148{{"Constant[148∈0] ➊
ᐸ1000001ᐳ"}}:::plan - Constant149{{"Constant[149∈0] ➊
ᐸ1000002ᐳ"}}:::plan + Constant148{{"Constant[148∈0] ➊
ᐸ1000000ᐳ"}}:::plan + Constant149{{"Constant[149∈0] ➊
ᐸ1000001ᐳ"}}:::plan + Constant150{{"Constant[150∈0] ➊
ᐸ1000002ᐳ"}}:::plan PgSelect8[["PgSelect[8∈1] ➊
ᐸrelational_posts(mutation)ᐳ"]]:::sideeffectplan - Object11 & Constant6 & Constant7 --> PgSelect8 - PgSelect14[["PgSelect[14∈1] ➊
ᐸrelational_posts(mutation)ᐳ"]]:::sideeffectplan - Object11 & Constant6 & Constant13 --> PgSelect14 - PgSelect20[["PgSelect[20∈1] ➊
ᐸrelational_posts(mutation)ᐳ"]]:::sideeffectplan - Object11 & Constant6 & Constant19 --> PgSelect20 - First24{{"First[24∈1] ➊"}}:::plan - PgSelectRows25[["PgSelectRows[25∈1] ➊"]]:::plan - PgSelectRows25 --> First24 - PgSelect20 --> PgSelectRows25 - PgSelectSingle26{{"PgSelectSingle[26∈1] ➊
ᐸrelational_postsᐳ"}}:::plan - First24 --> PgSelectSingle26 - PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 - PgSelect29[["PgSelect[29∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object11 & Constant147 --> PgSelect29 - PgPolymorphic37{{"PgPolymorphic[37∈2] ➊"}}:::plan - PgSelectSingle35{{"PgSelectSingle[35∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression36{{"PgClassExpression[36∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle35 & PgClassExpression36 --> PgPolymorphic37 - PgSelect70[["PgSelect[70∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object11 & Constant148 --> PgSelect70 - PgPolymorphic76{{"PgPolymorphic[76∈2] ➊"}}:::plan - PgSelectSingle74{{"PgSelectSingle[74∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression75{{"PgClassExpression[75∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle74 & PgClassExpression75 --> PgPolymorphic76 - PgSelect109[["PgSelect[109∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object11 & Constant149 --> PgSelect109 - PgPolymorphic115{{"PgPolymorphic[115∈2] ➊"}}:::plan - PgSelectSingle113{{"PgSelectSingle[113∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression114{{"PgClassExpression[114∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle113 & PgClassExpression114 --> PgPolymorphic115 - First33{{"First[33∈2] ➊"}}:::plan - PgSelectRows34[["PgSelectRows[34∈2] ➊"]]:::plan - PgSelectRows34 --> First33 - PgSelect29 --> PgSelectRows34 - First33 --> PgSelectSingle35 - PgSelectSingle35 --> PgClassExpression36 - PgClassExpression38{{"PgClassExpression[38∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression38 - First72{{"First[72∈2] ➊"}}:::plan - PgSelectRows73[["PgSelectRows[73∈2] ➊"]]:::plan - PgSelectRows73 --> First72 - PgSelect70 --> PgSelectRows73 - First72 --> PgSelectSingle74 - PgSelectSingle74 --> PgClassExpression75 - PgClassExpression77{{"PgClassExpression[77∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle74 --> PgClassExpression77 - First111{{"First[111∈2] ➊"}}:::plan - PgSelectRows112[["PgSelectRows[112∈2] ➊"]]:::plan - PgSelectRows112 --> First111 - PgSelect109 --> PgSelectRows112 - First111 --> PgSelectSingle113 - PgSelectSingle113 --> PgClassExpression114 - PgClassExpression116{{"PgClassExpression[116∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle113 --> PgClassExpression116 - PgSelect39[["PgSelect[39∈4] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object11 & PgClassExpression38 --> PgSelect39 - PgSelect46[["PgSelect[46∈4] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object11 & PgClassExpression38 --> PgSelect46 - PgSelect54[["PgSelect[54∈4] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object11 & PgClassExpression38 --> PgSelect54 - PgSelect59[["PgSelect[59∈4] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object11 & PgClassExpression38 --> PgSelect59 - PgSelect64[["PgSelect[64∈4] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object11 & PgClassExpression38 --> PgSelect64 - First43{{"First[43∈4] ➊"}}:::plan - PgSelectRows44[["PgSelectRows[44∈4] ➊"]]:::plan - PgSelectRows44 --> First43 - PgSelect39 --> PgSelectRows44 - PgSelectSingle45{{"PgSelectSingle[45∈4] ➊
ᐸrelational_topicsᐳ"}}:::plan - First43 --> PgSelectSingle45 - First48{{"First[48∈4] ➊"}}:::plan - PgSelectRows49[["PgSelectRows[49∈4] ➊"]]:::plan - PgSelectRows49 --> First48 - PgSelect46 --> PgSelectRows49 - PgSelectSingle50{{"PgSelectSingle[50∈4] ➊
ᐸrelational_postsᐳ"}}:::plan - First48 --> PgSelectSingle50 - PgClassExpression51{{"PgClassExpression[51∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle50 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle50 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle50 --> PgClassExpression53 - First56{{"First[56∈4] ➊"}}:::plan - PgSelectRows57[["PgSelectRows[57∈4] ➊"]]:::plan - PgSelectRows57 --> First56 - PgSelect54 --> PgSelectRows57 - PgSelectSingle58{{"PgSelectSingle[58∈4] ➊
ᐸrelational_dividersᐳ"}}:::plan - First56 --> PgSelectSingle58 - First61{{"First[61∈4] ➊"}}:::plan - PgSelectRows62[["PgSelectRows[62∈4] ➊"]]:::plan - PgSelectRows62 --> First61 - PgSelect59 --> PgSelectRows62 - PgSelectSingle63{{"PgSelectSingle[63∈4] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First61 --> PgSelectSingle63 - First66{{"First[66∈4] ➊"}}:::plan - PgSelectRows67[["PgSelectRows[67∈4] ➊"]]:::plan - PgSelectRows67 --> First66 - PgSelect64 --> PgSelectRows67 - PgSelectSingle68{{"PgSelectSingle[68∈4] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First66 --> PgSelectSingle68 - PgSelect78[["PgSelect[78∈5] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object11 & PgClassExpression77 --> PgSelect78 - PgSelect85[["PgSelect[85∈5] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object11 & PgClassExpression77 --> PgSelect85 - PgSelect93[["PgSelect[93∈5] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object11 & PgClassExpression77 --> PgSelect93 - PgSelect98[["PgSelect[98∈5] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object11 & PgClassExpression77 --> PgSelect98 - PgSelect103[["PgSelect[103∈5] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object11 & PgClassExpression77 --> PgSelect103 - First82{{"First[82∈5] ➊"}}:::plan - PgSelectRows83[["PgSelectRows[83∈5] ➊"]]:::plan - PgSelectRows83 --> First82 - PgSelect78 --> PgSelectRows83 - PgSelectSingle84{{"PgSelectSingle[84∈5] ➊
ᐸrelational_topicsᐳ"}}:::plan - First82 --> PgSelectSingle84 - First87{{"First[87∈5] ➊"}}:::plan - PgSelectRows88[["PgSelectRows[88∈5] ➊"]]:::plan - PgSelectRows88 --> First87 - PgSelect85 --> PgSelectRows88 - PgSelectSingle89{{"PgSelectSingle[89∈5] ➊
ᐸrelational_postsᐳ"}}:::plan - First87 --> PgSelectSingle89 - PgClassExpression90{{"PgClassExpression[90∈5] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression90 - PgClassExpression91{{"PgClassExpression[91∈5] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression91 - PgClassExpression92{{"PgClassExpression[92∈5] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression92 - First95{{"First[95∈5] ➊"}}:::plan - PgSelectRows96[["PgSelectRows[96∈5] ➊"]]:::plan - PgSelectRows96 --> First95 - PgSelect93 --> PgSelectRows96 - PgSelectSingle97{{"PgSelectSingle[97∈5] ➊
ᐸrelational_dividersᐳ"}}:::plan - First95 --> PgSelectSingle97 - First100{{"First[100∈5] ➊"}}:::plan - PgSelectRows101[["PgSelectRows[101∈5] ➊"]]:::plan - PgSelectRows101 --> First100 - PgSelect98 --> PgSelectRows101 - PgSelectSingle102{{"PgSelectSingle[102∈5] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First100 --> PgSelectSingle102 - First105{{"First[105∈5] ➊"}}:::plan - PgSelectRows106[["PgSelectRows[106∈5] ➊"]]:::plan - PgSelectRows106 --> First105 - PgSelect103 --> PgSelectRows106 - PgSelectSingle107{{"PgSelectSingle[107∈5] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First105 --> PgSelectSingle107 - PgSelect117[["PgSelect[117∈6] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object11 & PgClassExpression116 --> PgSelect117 - PgSelect124[["PgSelect[124∈6] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object11 & PgClassExpression116 --> PgSelect124 - PgSelect132[["PgSelect[132∈6] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object11 & PgClassExpression116 --> PgSelect132 - PgSelect137[["PgSelect[137∈6] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object11 & PgClassExpression116 --> PgSelect137 - PgSelect142[["PgSelect[142∈6] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object11 & PgClassExpression116 --> PgSelect142 - First121{{"First[121∈6] ➊"}}:::plan - PgSelectRows122[["PgSelectRows[122∈6] ➊"]]:::plan - PgSelectRows122 --> First121 - PgSelect117 --> PgSelectRows122 - PgSelectSingle123{{"PgSelectSingle[123∈6] ➊
ᐸrelational_topicsᐳ"}}:::plan - First121 --> PgSelectSingle123 - First126{{"First[126∈6] ➊"}}:::plan - PgSelectRows127[["PgSelectRows[127∈6] ➊"]]:::plan - PgSelectRows127 --> First126 - PgSelect124 --> PgSelectRows127 - PgSelectSingle128{{"PgSelectSingle[128∈6] ➊
ᐸrelational_postsᐳ"}}:::plan - First126 --> PgSelectSingle128 - PgClassExpression129{{"PgClassExpression[129∈6] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle128 --> PgClassExpression129 - PgClassExpression130{{"PgClassExpression[130∈6] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle128 --> PgClassExpression130 - PgClassExpression131{{"PgClassExpression[131∈6] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle128 --> PgClassExpression131 - First134{{"First[134∈6] ➊"}}:::plan - PgSelectRows135[["PgSelectRows[135∈6] ➊"]]:::plan - PgSelectRows135 --> First134 - PgSelect132 --> PgSelectRows135 - PgSelectSingle136{{"PgSelectSingle[136∈6] ➊
ᐸrelational_dividersᐳ"}}:::plan - First134 --> PgSelectSingle136 - First139{{"First[139∈6] ➊"}}:::plan - PgSelectRows140[["PgSelectRows[140∈6] ➊"]]:::plan - PgSelectRows140 --> First139 - PgSelect137 --> PgSelectRows140 - PgSelectSingle141{{"PgSelectSingle[141∈6] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First139 --> PgSelectSingle141 - First144{{"First[144∈6] ➊"}}:::plan - PgSelectRows145[["PgSelectRows[145∈6] ➊"]]:::plan - PgSelectRows145 --> First144 - PgSelect142 --> PgSelectRows145 - PgSelectSingle146{{"PgSelectSingle[146∈6] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First144 --> PgSelectSingle146 + Object11 & PgFromExpression12 --> PgSelect8 + PgSelect15[["PgSelect[15∈1] ➊
ᐸrelational_posts(mutation)ᐳ"]]:::sideeffectplan + Object11 & PgFromExpression19 --> PgSelect15 + PgSelect22[["PgSelect[22∈1] ➊
ᐸrelational_posts(mutation)ᐳ"]]:::sideeffectplan + Object11 & PgFromExpression26 --> PgSelect22 + PgSelect32[["PgSelect[32∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object11 & Constant148 --> PgSelect32 + PgPolymorphic38{{"PgPolymorphic[38∈1] ➊"}}:::plan + PgSelectSingle36{{"PgSelectSingle[36∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle36 & PgClassExpression37 --> PgPolymorphic38 + PgSelect71[["PgSelect[71∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object11 & Constant149 --> PgSelect71 + PgPolymorphic77{{"PgPolymorphic[77∈1] ➊"}}:::plan + PgSelectSingle75{{"PgSelectSingle[75∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression76{{"PgClassExpression[76∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle75 & PgClassExpression76 --> PgPolymorphic77 + PgSelect110[["PgSelect[110∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object11 & Constant150 --> PgSelect110 + PgPolymorphic116{{"PgPolymorphic[116∈1] ➊"}}:::plan + PgSelectSingle114{{"PgSelectSingle[114∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression115{{"PgClassExpression[115∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle114 & PgClassExpression115 --> PgPolymorphic116 + First27{{"First[27∈1] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1] ➊"]]:::plan + PgSelectRows28 --> First27 + PgSelect22 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1] ➊
ᐸrelational_postsᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + First34{{"First[34∈1] ➊"}}:::plan + PgSelectRows35[["PgSelectRows[35∈1] ➊"]]:::plan + PgSelectRows35 --> First34 + PgSelect32 --> PgSelectRows35 + First34 --> PgSelectSingle36 + PgSelectSingle36 --> PgClassExpression37 + First73{{"First[73∈1] ➊"}}:::plan + PgSelectRows74[["PgSelectRows[74∈1] ➊"]]:::plan + PgSelectRows74 --> First73 + PgSelect71 --> PgSelectRows74 + First73 --> PgSelectSingle75 + PgSelectSingle75 --> PgClassExpression76 + First112{{"First[112∈1] ➊"}}:::plan + PgSelectRows113[["PgSelectRows[113∈1] ➊"]]:::plan + PgSelectRows113 --> First112 + PgSelect110 --> PgSelectRows113 + First112 --> PgSelectSingle114 + PgSelectSingle114 --> PgClassExpression115 + PgSelect40[["PgSelect[40∈2] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression39{{"PgClassExpression[39∈2] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object11 & PgClassExpression39 --> PgSelect40 + PgSelect47[["PgSelect[47∈2] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression39 --> PgSelect47 + PgSelect55[["PgSelect[55∈2] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression39 --> PgSelect55 + PgSelect60[["PgSelect[60∈2] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression39 --> PgSelect60 + PgSelect65[["PgSelect[65∈2] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression39 --> PgSelect65 + PgSelectSingle36 --> PgClassExpression39 + First44{{"First[44∈2] ➊"}}:::plan + PgSelectRows45[["PgSelectRows[45∈2] ➊"]]:::plan + PgSelectRows45 --> First44 + PgSelect40 --> PgSelectRows45 + PgSelectSingle46{{"PgSelectSingle[46∈2] ➊
ᐸrelational_topicsᐳ"}}:::plan + First44 --> PgSelectSingle46 + First49{{"First[49∈2] ➊"}}:::plan + PgSelectRows50[["PgSelectRows[50∈2] ➊"]]:::plan + PgSelectRows50 --> First49 + PgSelect47 --> PgSelectRows50 + PgSelectSingle51{{"PgSelectSingle[51∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + First49 --> PgSelectSingle51 + PgClassExpression52{{"PgClassExpression[52∈2] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression52 + PgClassExpression53{{"PgClassExpression[53∈2] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression53 + PgClassExpression54{{"PgClassExpression[54∈2] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression54 + First57{{"First[57∈2] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈2] ➊"]]:::plan + PgSelectRows58 --> First57 + PgSelect55 --> PgSelectRows58 + PgSelectSingle59{{"PgSelectSingle[59∈2] ➊
ᐸrelational_dividersᐳ"}}:::plan + First57 --> PgSelectSingle59 + First62{{"First[62∈2] ➊"}}:::plan + PgSelectRows63[["PgSelectRows[63∈2] ➊"]]:::plan + PgSelectRows63 --> First62 + PgSelect60 --> PgSelectRows63 + PgSelectSingle64{{"PgSelectSingle[64∈2] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First62 --> PgSelectSingle64 + First67{{"First[67∈2] ➊"}}:::plan + PgSelectRows68[["PgSelectRows[68∈2] ➊"]]:::plan + PgSelectRows68 --> First67 + PgSelect65 --> PgSelectRows68 + PgSelectSingle69{{"PgSelectSingle[69∈2] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First67 --> PgSelectSingle69 + PgSelect79[["PgSelect[79∈3] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression78{{"PgClassExpression[78∈3] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object11 & PgClassExpression78 --> PgSelect79 + PgSelect86[["PgSelect[86∈3] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression78 --> PgSelect86 + PgSelect94[["PgSelect[94∈3] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression78 --> PgSelect94 + PgSelect99[["PgSelect[99∈3] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression78 --> PgSelect99 + PgSelect104[["PgSelect[104∈3] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression78 --> PgSelect104 + PgSelectSingle75 --> PgClassExpression78 + First83{{"First[83∈3] ➊"}}:::plan + PgSelectRows84[["PgSelectRows[84∈3] ➊"]]:::plan + PgSelectRows84 --> First83 + PgSelect79 --> PgSelectRows84 + PgSelectSingle85{{"PgSelectSingle[85∈3] ➊
ᐸrelational_topicsᐳ"}}:::plan + First83 --> PgSelectSingle85 + First88{{"First[88∈3] ➊"}}:::plan + PgSelectRows89[["PgSelectRows[89∈3] ➊"]]:::plan + PgSelectRows89 --> First88 + PgSelect86 --> PgSelectRows89 + PgSelectSingle90{{"PgSelectSingle[90∈3] ➊
ᐸrelational_postsᐳ"}}:::plan + First88 --> PgSelectSingle90 + PgClassExpression91{{"PgClassExpression[91∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression91 + PgClassExpression92{{"PgClassExpression[92∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression92 + PgClassExpression93{{"PgClassExpression[93∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression93 + First96{{"First[96∈3] ➊"}}:::plan + PgSelectRows97[["PgSelectRows[97∈3] ➊"]]:::plan + PgSelectRows97 --> First96 + PgSelect94 --> PgSelectRows97 + PgSelectSingle98{{"PgSelectSingle[98∈3] ➊
ᐸrelational_dividersᐳ"}}:::plan + First96 --> PgSelectSingle98 + First101{{"First[101∈3] ➊"}}:::plan + PgSelectRows102[["PgSelectRows[102∈3] ➊"]]:::plan + PgSelectRows102 --> First101 + PgSelect99 --> PgSelectRows102 + PgSelectSingle103{{"PgSelectSingle[103∈3] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First101 --> PgSelectSingle103 + First106{{"First[106∈3] ➊"}}:::plan + PgSelectRows107[["PgSelectRows[107∈3] ➊"]]:::plan + PgSelectRows107 --> First106 + PgSelect104 --> PgSelectRows107 + PgSelectSingle108{{"PgSelectSingle[108∈3] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First106 --> PgSelectSingle108 + PgSelect118[["PgSelect[118∈4] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression117{{"PgClassExpression[117∈4] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object11 & PgClassExpression117 --> PgSelect118 + PgSelect125[["PgSelect[125∈4] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression117 --> PgSelect125 + PgSelect133[["PgSelect[133∈4] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression117 --> PgSelect133 + PgSelect138[["PgSelect[138∈4] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression117 --> PgSelect138 + PgSelect143[["PgSelect[143∈4] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression117 --> PgSelect143 + PgSelectSingle114 --> PgClassExpression117 + First122{{"First[122∈4] ➊"}}:::plan + PgSelectRows123[["PgSelectRows[123∈4] ➊"]]:::plan + PgSelectRows123 --> First122 + PgSelect118 --> PgSelectRows123 + PgSelectSingle124{{"PgSelectSingle[124∈4] ➊
ᐸrelational_topicsᐳ"}}:::plan + First122 --> PgSelectSingle124 + First127{{"First[127∈4] ➊"}}:::plan + PgSelectRows128[["PgSelectRows[128∈4] ➊"]]:::plan + PgSelectRows128 --> First127 + PgSelect125 --> PgSelectRows128 + PgSelectSingle129{{"PgSelectSingle[129∈4] ➊
ᐸrelational_postsᐳ"}}:::plan + First127 --> PgSelectSingle129 + PgClassExpression130{{"PgClassExpression[130∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle129 --> PgClassExpression130 + PgClassExpression131{{"PgClassExpression[131∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle129 --> PgClassExpression131 + PgClassExpression132{{"PgClassExpression[132∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle129 --> PgClassExpression132 + First135{{"First[135∈4] ➊"}}:::plan + PgSelectRows136[["PgSelectRows[136∈4] ➊"]]:::plan + PgSelectRows136 --> First135 + PgSelect133 --> PgSelectRows136 + PgSelectSingle137{{"PgSelectSingle[137∈4] ➊
ᐸrelational_dividersᐳ"}}:::plan + First135 --> PgSelectSingle137 + First140{{"First[140∈4] ➊"}}:::plan + PgSelectRows141[["PgSelectRows[141∈4] ➊"]]:::plan + PgSelectRows141 --> First140 + PgSelect138 --> PgSelectRows141 + PgSelectSingle142{{"PgSelectSingle[142∈4] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First140 --> PgSelectSingle142 + First145{{"First[145∈4] ➊"}}:::plan + PgSelectRows146[["PgSelectRows[146∈4] ➊"]]:::plan + PgSelectRows146 --> First145 + PgSelect143 --> PgSelectRows146 + PgSelectSingle147{{"PgSelectSingle[147∈4] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First145 --> PgSelectSingle147 %% define steps %% implicit side effects - PgSelect8 -.-o PgSelect14 - PgSelect14 -.-o PgSelect20 + PgSelect8 -.-o PgSelect15 + PgSelect15 -.-o PgSelect22 + PgSelect22 -.-o PgSelect32 + PgSelect22 -.-o PgPolymorphic38 + PgSelect22 -.-o PgSelect71 + PgSelect22 -.-o PgPolymorphic77 + PgSelect22 -.-o PgSelect110 + PgSelect22 -.-o PgPolymorphic116 + PgSelect22 -.-o First34 + PgSelect22 -.-o PgSelectRows35 + PgSelect22 -.-o PgSelectSingle36 + PgSelect22 -.-o PgClassExpression37 + PgSelect22 -.-o First73 + PgSelect22 -.-o PgSelectRows74 + PgSelect22 -.-o PgSelectSingle75 + PgSelect22 -.-o PgClassExpression76 + PgSelect22 -.-o First112 + PgSelect22 -.-o PgSelectRows113 + PgSelect22 -.-o PgSelectSingle114 + PgSelect22 -.-o PgClassExpression115 subgraph "Buckets for mutations/basics/create-three-relational-posts-computed" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Constant7,Access9,Access10,Object11,Constant13,Constant19,Constant147,Constant148,Constant149 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 11, 6, 7, 13, 19, 147, 148, 149, 4

1: PgSelect[8]
2: PgSelect[14]
3: PgSelect[20]
4: PgSelectRows[25]
ᐳ: 24, 26, 27"):::bucket + class Bucket0,__Value2,__Value4,Constant6,Constant7,Access9,Access10,Object11,PgFromExpression12,Constant14,PgFromExpression19,Constant21,PgFromExpression26,Constant148,Constant149,Constant150 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 11, 12, 19, 26, 148, 149, 150, 4

1: PgSelect[8]
2: PgSelect[15]
3: PgSelect[22]
4: 28, 32, 71, 110
ᐳ: 27, 29, 30
5: 35, 74, 113
ᐳ: 34, 36, 37, 38, 73, 75, 76, 77, 112, 114, 115, 116"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect8,PgSelect14,PgSelect20,First24,PgSelectRows25,PgSelectSingle26,PgClassExpression27 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 11, 147, 148, 149, 27, 4

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[27]
1: 29, 70, 109
2: 34, 73, 112
ᐳ: 33, 35, 36, 37, 38, 72, 74, 75, 76, 77, 111, 113, 114, 115, 116"):::bucket + class Bucket1,PgSelect8,PgSelect15,PgSelect22,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgSelect32,First34,PgSelectRows35,PgSelectSingle36,PgClassExpression37,PgPolymorphic38,PgSelect71,First73,PgSelectRows74,PgSelectSingle75,PgClassExpression76,PgPolymorphic77,PgSelect110,First112,PgSelectRows113,PgSelectSingle114,PgClassExpression115,PgPolymorphic116 bucket1 + Bucket2("Bucket 2 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 22
Deps: 36, 11, 38
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[39]
2: 40, 47, 55, 60, 65
3: 45, 50, 58, 63, 68
ᐳ: 44, 46, 49, 51, 52, 53, 54, 57, 59, 62, 64, 67, 69"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,PgPolymorphic37,PgClassExpression38,PgSelect70,First72,PgSelectRows73,PgSelectSingle74,PgClassExpression75,PgPolymorphic76,PgClassExpression77,PgSelect109,First111,PgSelectRows112,PgSelectSingle113,PgClassExpression114,PgPolymorphic115,PgClassExpression116 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 4, 11, 38, 37, 77, 76, 116, 115

ROOT __ValueᐸrootValueᐳ[4]"):::bucket + class Bucket2,PgClassExpression39,PgSelect40,First44,PgSelectRows45,PgSelectSingle46,PgSelect47,First49,PgSelectRows50,PgSelectSingle51,PgClassExpression52,PgClassExpression53,PgClassExpression54,PgSelect55,First57,PgSelectRows58,PgSelectSingle59,PgSelect60,First62,PgSelectRows63,PgSelectSingle64,PgSelect65,First67,PgSelectRows68,PgSelectSingle69 bucket2 + Bucket3("Bucket 3 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 22
Deps: 75, 11, 77
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[78]
2: 79, 86, 94, 99, 104
3: 84, 89, 97, 102, 107
ᐳ: 83, 85, 88, 90, 91, 92, 93, 96, 98, 101, 103, 106, 108"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 - Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 38, 37
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 39, 46, 54, 59, 64
2: 44, 49, 57, 62, 67
ᐳ: 43, 45, 48, 50, 51, 52, 53, 56, 58, 61, 63, 66, 68"):::bucket + class Bucket3,PgClassExpression78,PgSelect79,First83,PgSelectRows84,PgSelectSingle85,PgSelect86,First88,PgSelectRows89,PgSelectSingle90,PgClassExpression91,PgClassExpression92,PgClassExpression93,PgSelect94,First96,PgSelectRows97,PgSelectSingle98,PgSelect99,First101,PgSelectRows102,PgSelectSingle103,PgSelect104,First106,PgSelectRows107,PgSelectSingle108 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 22
Deps: 114, 11, 116
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[117]
2: 118, 125, 133, 138, 143
3: 123, 128, 136, 141, 146
ᐳ: 122, 124, 127, 129, 130, 131, 132, 135, 137, 140, 142, 145, 147"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect39,First43,PgSelectRows44,PgSelectSingle45,PgSelect46,First48,PgSelectRows49,PgSelectSingle50,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgSelect59,First61,PgSelectRows62,PgSelectSingle63,PgSelect64,First66,PgSelectRows67,PgSelectSingle68 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 77, 76
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 78, 85, 93, 98, 103
2: 83, 88, 96, 101, 106
ᐳ: 82, 84, 87, 89, 90, 91, 92, 95, 97, 100, 102, 105, 107"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect78,First82,PgSelectRows83,PgSelectSingle84,PgSelect85,First87,PgSelectRows88,PgSelectSingle89,PgClassExpression90,PgClassExpression91,PgClassExpression92,PgSelect93,First95,PgSelectRows96,PgSelectSingle97,PgSelect98,First100,PgSelectRows101,PgSelectSingle102,PgSelect103,First105,PgSelectRows106,PgSelectSingle107 bucket5 - Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 116, 115
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 117, 124, 132, 137, 142
2: 122, 127, 135, 140, 145
ᐳ: 121, 123, 126, 128, 129, 130, 131, 134, 136, 139, 141, 144, 146"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect117,First121,PgSelectRows122,PgSelectSingle123,PgSelect124,First126,PgSelectRows127,PgSelectSingle128,PgClassExpression129,PgClassExpression130,PgClassExpression131,PgSelect132,First134,PgSelectRows135,PgSelectSingle136,PgSelect137,First139,PgSelectRows140,PgSelectSingle141,PgSelect142,First144,PgSelectRows145,PgSelectSingle146 bucket6 + class Bucket4,PgClassExpression117,PgSelect118,First122,PgSelectRows123,PgSelectSingle124,PgSelect125,First127,PgSelectRows128,PgSelectSingle129,PgClassExpression130,PgClassExpression131,PgClassExpression132,PgSelect133,First135,PgSelectRows136,PgSelectSingle137,PgSelect138,First140,PgSelectRows141,PgSelectSingle142,PgSelect143,First145,PgSelectRows146,PgSelectSingle147 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 & Bucket6 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts-computed.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts-computed.mermaid index 63cecb37a7..f8056f291e 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts-computed.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts-computed.mermaid @@ -13,242 +13,258 @@ graph TD Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 + PgFromExpression12{{"PgFromExpression[12∈0] ➊"}}:::plan + Constant6{{"Constant[6∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'Computed post ꖛ1'ᐳ"}}:::plan + Constant6 & Constant7 --> PgFromExpression12 + PgFromExpression19{{"PgFromExpression[19∈0] ➊"}}:::plan + Constant14{{"Constant[14∈0] ➊
ᐸ'Computed post ꖛ2'ᐳ"}}:::plan + Constant6 & Constant14 --> PgFromExpression19 + PgFromExpression26{{"PgFromExpression[26∈0] ➊"}}:::plan + Constant21{{"Constant[21∈0] ➊
ᐸ'Computed post ꖛ3'ᐳ"}}:::plan + Constant6 & Constant21 --> PgFromExpression26 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant7{{"Constant[7∈0] ➊
ᐸ'Computed post ꖛ1'ᐳ"}}:::plan - Constant13{{"Constant[13∈0] ➊
ᐸ'Computed post ꖛ2'ᐳ"}}:::plan - Constant19{{"Constant[19∈0] ➊
ᐸ'Computed post ꖛ3'ᐳ"}}:::plan - Constant147{{"Constant[147∈0] ➊
ᐸ1000000ᐳ"}}:::plan - Constant148{{"Constant[148∈0] ➊
ᐸ1000001ᐳ"}}:::plan - Constant149{{"Constant[149∈0] ➊
ᐸ1000002ᐳ"}}:::plan + Constant148{{"Constant[148∈0] ➊
ᐸ1000000ᐳ"}}:::plan + Constant149{{"Constant[149∈0] ➊
ᐸ1000001ᐳ"}}:::plan + Constant150{{"Constant[150∈0] ➊
ᐸ1000002ᐳ"}}:::plan PgSelect8[["PgSelect[8∈1] ➊
ᐸrelational_posts(mutation)ᐳ"]]:::sideeffectplan - Object11 & Constant6 & Constant7 --> PgSelect8 - PgSelect14[["PgSelect[14∈1] ➊
ᐸrelational_posts(mutation)ᐳ"]]:::sideeffectplan - Object11 & Constant6 & Constant13 --> PgSelect14 - PgSelect20[["PgSelect[20∈1] ➊
ᐸrelational_posts(mutation)ᐳ"]]:::sideeffectplan - Object11 & Constant6 & Constant19 --> PgSelect20 - First24{{"First[24∈1] ➊"}}:::plan - PgSelectRows25[["PgSelectRows[25∈1] ➊"]]:::plan - PgSelectRows25 --> First24 - PgSelect20 --> PgSelectRows25 - PgSelectSingle26{{"PgSelectSingle[26∈1] ➊
ᐸrelational_postsᐳ"}}:::plan - First24 --> PgSelectSingle26 - PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 - PgSelect29[["PgSelect[29∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object11 & Constant147 --> PgSelect29 - PgPolymorphic37{{"PgPolymorphic[37∈2] ➊"}}:::plan - PgSelectSingle35{{"PgSelectSingle[35∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression36{{"PgClassExpression[36∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle35 & PgClassExpression36 --> PgPolymorphic37 - PgSelect70[["PgSelect[70∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object11 & Constant148 --> PgSelect70 - PgPolymorphic76{{"PgPolymorphic[76∈2] ➊"}}:::plan - PgSelectSingle74{{"PgSelectSingle[74∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression75{{"PgClassExpression[75∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle74 & PgClassExpression75 --> PgPolymorphic76 - PgSelect109[["PgSelect[109∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object11 & Constant149 --> PgSelect109 - PgPolymorphic115{{"PgPolymorphic[115∈2] ➊"}}:::plan - PgSelectSingle113{{"PgSelectSingle[113∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression114{{"PgClassExpression[114∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle113 & PgClassExpression114 --> PgPolymorphic115 - First33{{"First[33∈2] ➊"}}:::plan - PgSelectRows34[["PgSelectRows[34∈2] ➊"]]:::plan - PgSelectRows34 --> First33 - PgSelect29 --> PgSelectRows34 - First33 --> PgSelectSingle35 - PgSelectSingle35 --> PgClassExpression36 - PgClassExpression38{{"PgClassExpression[38∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression38 - First72{{"First[72∈2] ➊"}}:::plan - PgSelectRows73[["PgSelectRows[73∈2] ➊"]]:::plan - PgSelectRows73 --> First72 - PgSelect70 --> PgSelectRows73 - First72 --> PgSelectSingle74 - PgSelectSingle74 --> PgClassExpression75 - PgClassExpression77{{"PgClassExpression[77∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle74 --> PgClassExpression77 - First111{{"First[111∈2] ➊"}}:::plan - PgSelectRows112[["PgSelectRows[112∈2] ➊"]]:::plan - PgSelectRows112 --> First111 - PgSelect109 --> PgSelectRows112 - First111 --> PgSelectSingle113 - PgSelectSingle113 --> PgClassExpression114 - PgClassExpression116{{"PgClassExpression[116∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle113 --> PgClassExpression116 - PgSelect39[["PgSelect[39∈4] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object11 & PgClassExpression38 --> PgSelect39 - PgSelect46[["PgSelect[46∈4] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object11 & PgClassExpression38 --> PgSelect46 - PgSelect54[["PgSelect[54∈4] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object11 & PgClassExpression38 --> PgSelect54 - PgSelect59[["PgSelect[59∈4] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object11 & PgClassExpression38 --> PgSelect59 - PgSelect64[["PgSelect[64∈4] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object11 & PgClassExpression38 --> PgSelect64 - First43{{"First[43∈4] ➊"}}:::plan - PgSelectRows44[["PgSelectRows[44∈4] ➊"]]:::plan - PgSelectRows44 --> First43 - PgSelect39 --> PgSelectRows44 - PgSelectSingle45{{"PgSelectSingle[45∈4] ➊
ᐸrelational_topicsᐳ"}}:::plan - First43 --> PgSelectSingle45 - First48{{"First[48∈4] ➊"}}:::plan - PgSelectRows49[["PgSelectRows[49∈4] ➊"]]:::plan - PgSelectRows49 --> First48 - PgSelect46 --> PgSelectRows49 - PgSelectSingle50{{"PgSelectSingle[50∈4] ➊
ᐸrelational_postsᐳ"}}:::plan - First48 --> PgSelectSingle50 - PgClassExpression51{{"PgClassExpression[51∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle50 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle50 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle50 --> PgClassExpression53 - First56{{"First[56∈4] ➊"}}:::plan - PgSelectRows57[["PgSelectRows[57∈4] ➊"]]:::plan - PgSelectRows57 --> First56 - PgSelect54 --> PgSelectRows57 - PgSelectSingle58{{"PgSelectSingle[58∈4] ➊
ᐸrelational_dividersᐳ"}}:::plan - First56 --> PgSelectSingle58 - First61{{"First[61∈4] ➊"}}:::plan - PgSelectRows62[["PgSelectRows[62∈4] ➊"]]:::plan - PgSelectRows62 --> First61 - PgSelect59 --> PgSelectRows62 - PgSelectSingle63{{"PgSelectSingle[63∈4] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First61 --> PgSelectSingle63 - First66{{"First[66∈4] ➊"}}:::plan - PgSelectRows67[["PgSelectRows[67∈4] ➊"]]:::plan - PgSelectRows67 --> First66 - PgSelect64 --> PgSelectRows67 - PgSelectSingle68{{"PgSelectSingle[68∈4] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First66 --> PgSelectSingle68 - PgSelect78[["PgSelect[78∈5] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object11 & PgClassExpression77 --> PgSelect78 - PgSelect85[["PgSelect[85∈5] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object11 & PgClassExpression77 --> PgSelect85 - PgSelect93[["PgSelect[93∈5] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object11 & PgClassExpression77 --> PgSelect93 - PgSelect98[["PgSelect[98∈5] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object11 & PgClassExpression77 --> PgSelect98 - PgSelect103[["PgSelect[103∈5] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object11 & PgClassExpression77 --> PgSelect103 - First82{{"First[82∈5] ➊"}}:::plan - PgSelectRows83[["PgSelectRows[83∈5] ➊"]]:::plan - PgSelectRows83 --> First82 - PgSelect78 --> PgSelectRows83 - PgSelectSingle84{{"PgSelectSingle[84∈5] ➊
ᐸrelational_topicsᐳ"}}:::plan - First82 --> PgSelectSingle84 - First87{{"First[87∈5] ➊"}}:::plan - PgSelectRows88[["PgSelectRows[88∈5] ➊"]]:::plan - PgSelectRows88 --> First87 - PgSelect85 --> PgSelectRows88 - PgSelectSingle89{{"PgSelectSingle[89∈5] ➊
ᐸrelational_postsᐳ"}}:::plan - First87 --> PgSelectSingle89 - PgClassExpression90{{"PgClassExpression[90∈5] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression90 - PgClassExpression91{{"PgClassExpression[91∈5] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression91 - PgClassExpression92{{"PgClassExpression[92∈5] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression92 - First95{{"First[95∈5] ➊"}}:::plan - PgSelectRows96[["PgSelectRows[96∈5] ➊"]]:::plan - PgSelectRows96 --> First95 - PgSelect93 --> PgSelectRows96 - PgSelectSingle97{{"PgSelectSingle[97∈5] ➊
ᐸrelational_dividersᐳ"}}:::plan - First95 --> PgSelectSingle97 - First100{{"First[100∈5] ➊"}}:::plan - PgSelectRows101[["PgSelectRows[101∈5] ➊"]]:::plan - PgSelectRows101 --> First100 - PgSelect98 --> PgSelectRows101 - PgSelectSingle102{{"PgSelectSingle[102∈5] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First100 --> PgSelectSingle102 - First105{{"First[105∈5] ➊"}}:::plan - PgSelectRows106[["PgSelectRows[106∈5] ➊"]]:::plan - PgSelectRows106 --> First105 - PgSelect103 --> PgSelectRows106 - PgSelectSingle107{{"PgSelectSingle[107∈5] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First105 --> PgSelectSingle107 - PgSelect117[["PgSelect[117∈6] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object11 & PgClassExpression116 --> PgSelect117 - PgSelect124[["PgSelect[124∈6] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object11 & PgClassExpression116 --> PgSelect124 - PgSelect132[["PgSelect[132∈6] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object11 & PgClassExpression116 --> PgSelect132 - PgSelect137[["PgSelect[137∈6] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object11 & PgClassExpression116 --> PgSelect137 - PgSelect142[["PgSelect[142∈6] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object11 & PgClassExpression116 --> PgSelect142 - First121{{"First[121∈6] ➊"}}:::plan - PgSelectRows122[["PgSelectRows[122∈6] ➊"]]:::plan - PgSelectRows122 --> First121 - PgSelect117 --> PgSelectRows122 - PgSelectSingle123{{"PgSelectSingle[123∈6] ➊
ᐸrelational_topicsᐳ"}}:::plan - First121 --> PgSelectSingle123 - First126{{"First[126∈6] ➊"}}:::plan - PgSelectRows127[["PgSelectRows[127∈6] ➊"]]:::plan - PgSelectRows127 --> First126 - PgSelect124 --> PgSelectRows127 - PgSelectSingle128{{"PgSelectSingle[128∈6] ➊
ᐸrelational_postsᐳ"}}:::plan - First126 --> PgSelectSingle128 - PgClassExpression129{{"PgClassExpression[129∈6] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle128 --> PgClassExpression129 - PgClassExpression130{{"PgClassExpression[130∈6] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle128 --> PgClassExpression130 - PgClassExpression131{{"PgClassExpression[131∈6] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle128 --> PgClassExpression131 - First134{{"First[134∈6] ➊"}}:::plan - PgSelectRows135[["PgSelectRows[135∈6] ➊"]]:::plan - PgSelectRows135 --> First134 - PgSelect132 --> PgSelectRows135 - PgSelectSingle136{{"PgSelectSingle[136∈6] ➊
ᐸrelational_dividersᐳ"}}:::plan - First134 --> PgSelectSingle136 - First139{{"First[139∈6] ➊"}}:::plan - PgSelectRows140[["PgSelectRows[140∈6] ➊"]]:::plan - PgSelectRows140 --> First139 - PgSelect137 --> PgSelectRows140 - PgSelectSingle141{{"PgSelectSingle[141∈6] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First139 --> PgSelectSingle141 - First144{{"First[144∈6] ➊"}}:::plan - PgSelectRows145[["PgSelectRows[145∈6] ➊"]]:::plan - PgSelectRows145 --> First144 - PgSelect142 --> PgSelectRows145 - PgSelectSingle146{{"PgSelectSingle[146∈6] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First144 --> PgSelectSingle146 + Object11 & PgFromExpression12 --> PgSelect8 + PgSelect15[["PgSelect[15∈1] ➊
ᐸrelational_posts(mutation)ᐳ"]]:::sideeffectplan + Object11 & PgFromExpression19 --> PgSelect15 + PgSelect22[["PgSelect[22∈1] ➊
ᐸrelational_posts(mutation)ᐳ"]]:::sideeffectplan + Object11 & PgFromExpression26 --> PgSelect22 + PgSelect32[["PgSelect[32∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object11 & Constant148 --> PgSelect32 + PgPolymorphic38{{"PgPolymorphic[38∈1] ➊"}}:::plan + PgSelectSingle36{{"PgSelectSingle[36∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle36 & PgClassExpression37 --> PgPolymorphic38 + PgSelect71[["PgSelect[71∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object11 & Constant149 --> PgSelect71 + PgPolymorphic77{{"PgPolymorphic[77∈1] ➊"}}:::plan + PgSelectSingle75{{"PgSelectSingle[75∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression76{{"PgClassExpression[76∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle75 & PgClassExpression76 --> PgPolymorphic77 + PgSelect110[["PgSelect[110∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object11 & Constant150 --> PgSelect110 + PgPolymorphic116{{"PgPolymorphic[116∈1] ➊"}}:::plan + PgSelectSingle114{{"PgSelectSingle[114∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression115{{"PgClassExpression[115∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle114 & PgClassExpression115 --> PgPolymorphic116 + First27{{"First[27∈1] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1] ➊"]]:::plan + PgSelectRows28 --> First27 + PgSelect22 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1] ➊
ᐸrelational_postsᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + First34{{"First[34∈1] ➊"}}:::plan + PgSelectRows35[["PgSelectRows[35∈1] ➊"]]:::plan + PgSelectRows35 --> First34 + PgSelect32 --> PgSelectRows35 + First34 --> PgSelectSingle36 + PgSelectSingle36 --> PgClassExpression37 + First73{{"First[73∈1] ➊"}}:::plan + PgSelectRows74[["PgSelectRows[74∈1] ➊"]]:::plan + PgSelectRows74 --> First73 + PgSelect71 --> PgSelectRows74 + First73 --> PgSelectSingle75 + PgSelectSingle75 --> PgClassExpression76 + First112{{"First[112∈1] ➊"}}:::plan + PgSelectRows113[["PgSelectRows[113∈1] ➊"]]:::plan + PgSelectRows113 --> First112 + PgSelect110 --> PgSelectRows113 + First112 --> PgSelectSingle114 + PgSelectSingle114 --> PgClassExpression115 + PgSelect40[["PgSelect[40∈2] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression39{{"PgClassExpression[39∈2] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object11 & PgClassExpression39 --> PgSelect40 + PgSelect47[["PgSelect[47∈2] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression39 --> PgSelect47 + PgSelect55[["PgSelect[55∈2] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression39 --> PgSelect55 + PgSelect60[["PgSelect[60∈2] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression39 --> PgSelect60 + PgSelect65[["PgSelect[65∈2] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression39 --> PgSelect65 + PgSelectSingle36 --> PgClassExpression39 + First44{{"First[44∈2] ➊"}}:::plan + PgSelectRows45[["PgSelectRows[45∈2] ➊"]]:::plan + PgSelectRows45 --> First44 + PgSelect40 --> PgSelectRows45 + PgSelectSingle46{{"PgSelectSingle[46∈2] ➊
ᐸrelational_topicsᐳ"}}:::plan + First44 --> PgSelectSingle46 + First49{{"First[49∈2] ➊"}}:::plan + PgSelectRows50[["PgSelectRows[50∈2] ➊"]]:::plan + PgSelectRows50 --> First49 + PgSelect47 --> PgSelectRows50 + PgSelectSingle51{{"PgSelectSingle[51∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + First49 --> PgSelectSingle51 + PgClassExpression52{{"PgClassExpression[52∈2] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression52 + PgClassExpression53{{"PgClassExpression[53∈2] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression53 + PgClassExpression54{{"PgClassExpression[54∈2] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression54 + First57{{"First[57∈2] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈2] ➊"]]:::plan + PgSelectRows58 --> First57 + PgSelect55 --> PgSelectRows58 + PgSelectSingle59{{"PgSelectSingle[59∈2] ➊
ᐸrelational_dividersᐳ"}}:::plan + First57 --> PgSelectSingle59 + First62{{"First[62∈2] ➊"}}:::plan + PgSelectRows63[["PgSelectRows[63∈2] ➊"]]:::plan + PgSelectRows63 --> First62 + PgSelect60 --> PgSelectRows63 + PgSelectSingle64{{"PgSelectSingle[64∈2] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First62 --> PgSelectSingle64 + First67{{"First[67∈2] ➊"}}:::plan + PgSelectRows68[["PgSelectRows[68∈2] ➊"]]:::plan + PgSelectRows68 --> First67 + PgSelect65 --> PgSelectRows68 + PgSelectSingle69{{"PgSelectSingle[69∈2] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First67 --> PgSelectSingle69 + PgSelect79[["PgSelect[79∈3] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression78{{"PgClassExpression[78∈3] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object11 & PgClassExpression78 --> PgSelect79 + PgSelect86[["PgSelect[86∈3] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression78 --> PgSelect86 + PgSelect94[["PgSelect[94∈3] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression78 --> PgSelect94 + PgSelect99[["PgSelect[99∈3] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression78 --> PgSelect99 + PgSelect104[["PgSelect[104∈3] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression78 --> PgSelect104 + PgSelectSingle75 --> PgClassExpression78 + First83{{"First[83∈3] ➊"}}:::plan + PgSelectRows84[["PgSelectRows[84∈3] ➊"]]:::plan + PgSelectRows84 --> First83 + PgSelect79 --> PgSelectRows84 + PgSelectSingle85{{"PgSelectSingle[85∈3] ➊
ᐸrelational_topicsᐳ"}}:::plan + First83 --> PgSelectSingle85 + First88{{"First[88∈3] ➊"}}:::plan + PgSelectRows89[["PgSelectRows[89∈3] ➊"]]:::plan + PgSelectRows89 --> First88 + PgSelect86 --> PgSelectRows89 + PgSelectSingle90{{"PgSelectSingle[90∈3] ➊
ᐸrelational_postsᐳ"}}:::plan + First88 --> PgSelectSingle90 + PgClassExpression91{{"PgClassExpression[91∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression91 + PgClassExpression92{{"PgClassExpression[92∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression92 + PgClassExpression93{{"PgClassExpression[93∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression93 + First96{{"First[96∈3] ➊"}}:::plan + PgSelectRows97[["PgSelectRows[97∈3] ➊"]]:::plan + PgSelectRows97 --> First96 + PgSelect94 --> PgSelectRows97 + PgSelectSingle98{{"PgSelectSingle[98∈3] ➊
ᐸrelational_dividersᐳ"}}:::plan + First96 --> PgSelectSingle98 + First101{{"First[101∈3] ➊"}}:::plan + PgSelectRows102[["PgSelectRows[102∈3] ➊"]]:::plan + PgSelectRows102 --> First101 + PgSelect99 --> PgSelectRows102 + PgSelectSingle103{{"PgSelectSingle[103∈3] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First101 --> PgSelectSingle103 + First106{{"First[106∈3] ➊"}}:::plan + PgSelectRows107[["PgSelectRows[107∈3] ➊"]]:::plan + PgSelectRows107 --> First106 + PgSelect104 --> PgSelectRows107 + PgSelectSingle108{{"PgSelectSingle[108∈3] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First106 --> PgSelectSingle108 + PgSelect118[["PgSelect[118∈4] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression117{{"PgClassExpression[117∈4] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object11 & PgClassExpression117 --> PgSelect118 + PgSelect125[["PgSelect[125∈4] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression117 --> PgSelect125 + PgSelect133[["PgSelect[133∈4] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression117 --> PgSelect133 + PgSelect138[["PgSelect[138∈4] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression117 --> PgSelect138 + PgSelect143[["PgSelect[143∈4] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression117 --> PgSelect143 + PgSelectSingle114 --> PgClassExpression117 + First122{{"First[122∈4] ➊"}}:::plan + PgSelectRows123[["PgSelectRows[123∈4] ➊"]]:::plan + PgSelectRows123 --> First122 + PgSelect118 --> PgSelectRows123 + PgSelectSingle124{{"PgSelectSingle[124∈4] ➊
ᐸrelational_topicsᐳ"}}:::plan + First122 --> PgSelectSingle124 + First127{{"First[127∈4] ➊"}}:::plan + PgSelectRows128[["PgSelectRows[128∈4] ➊"]]:::plan + PgSelectRows128 --> First127 + PgSelect125 --> PgSelectRows128 + PgSelectSingle129{{"PgSelectSingle[129∈4] ➊
ᐸrelational_postsᐳ"}}:::plan + First127 --> PgSelectSingle129 + PgClassExpression130{{"PgClassExpression[130∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle129 --> PgClassExpression130 + PgClassExpression131{{"PgClassExpression[131∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle129 --> PgClassExpression131 + PgClassExpression132{{"PgClassExpression[132∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle129 --> PgClassExpression132 + First135{{"First[135∈4] ➊"}}:::plan + PgSelectRows136[["PgSelectRows[136∈4] ➊"]]:::plan + PgSelectRows136 --> First135 + PgSelect133 --> PgSelectRows136 + PgSelectSingle137{{"PgSelectSingle[137∈4] ➊
ᐸrelational_dividersᐳ"}}:::plan + First135 --> PgSelectSingle137 + First140{{"First[140∈4] ➊"}}:::plan + PgSelectRows141[["PgSelectRows[141∈4] ➊"]]:::plan + PgSelectRows141 --> First140 + PgSelect138 --> PgSelectRows141 + PgSelectSingle142{{"PgSelectSingle[142∈4] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First140 --> PgSelectSingle142 + First145{{"First[145∈4] ➊"}}:::plan + PgSelectRows146[["PgSelectRows[146∈4] ➊"]]:::plan + PgSelectRows146 --> First145 + PgSelect143 --> PgSelectRows146 + PgSelectSingle147{{"PgSelectSingle[147∈4] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First145 --> PgSelectSingle147 %% define steps %% implicit side effects - PgSelect8 -.-o PgSelect14 - PgSelect14 -.-o PgSelect20 + PgSelect8 -.-o PgSelect15 + PgSelect15 -.-o PgSelect22 + PgSelect22 -.-o PgSelect32 + PgSelect22 -.-o PgPolymorphic38 + PgSelect22 -.-o PgSelect71 + PgSelect22 -.-o PgPolymorphic77 + PgSelect22 -.-o PgSelect110 + PgSelect22 -.-o PgPolymorphic116 + PgSelect22 -.-o First34 + PgSelect22 -.-o PgSelectRows35 + PgSelect22 -.-o PgSelectSingle36 + PgSelect22 -.-o PgClassExpression37 + PgSelect22 -.-o First73 + PgSelect22 -.-o PgSelectRows74 + PgSelect22 -.-o PgSelectSingle75 + PgSelect22 -.-o PgClassExpression76 + PgSelect22 -.-o First112 + PgSelect22 -.-o PgSelectRows113 + PgSelect22 -.-o PgSelectSingle114 + PgSelect22 -.-o PgClassExpression115 subgraph "Buckets for mutations/basics/create-three-relational-posts-computed" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Constant7,Access9,Access10,Object11,Constant13,Constant19,Constant147,Constant148,Constant149 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 11, 6, 7, 13, 19, 147, 148, 149, 4

1: PgSelect[8]
2: PgSelect[14]
3: PgSelect[20]
4: PgSelectRows[25]
ᐳ: 24, 26, 27"):::bucket + class Bucket0,__Value2,__Value4,Constant6,Constant7,Access9,Access10,Object11,PgFromExpression12,Constant14,PgFromExpression19,Constant21,PgFromExpression26,Constant148,Constant149,Constant150 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 11, 12, 19, 26, 148, 149, 150, 4

1: PgSelect[8]
2: PgSelect[15]
3: PgSelect[22]
4: 28, 32, 71, 110
ᐳ: 27, 29, 30
5: 35, 74, 113
ᐳ: 34, 36, 37, 38, 73, 75, 76, 77, 112, 114, 115, 116"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect8,PgSelect14,PgSelect20,First24,PgSelectRows25,PgSelectSingle26,PgClassExpression27 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 11, 147, 148, 149, 27, 4

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[27]
1: 29, 70, 109
2: 34, 73, 112
ᐳ: 33, 35, 36, 37, 38, 72, 74, 75, 76, 77, 111, 113, 114, 115, 116"):::bucket + class Bucket1,PgSelect8,PgSelect15,PgSelect22,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgSelect32,First34,PgSelectRows35,PgSelectSingle36,PgClassExpression37,PgPolymorphic38,PgSelect71,First73,PgSelectRows74,PgSelectSingle75,PgClassExpression76,PgPolymorphic77,PgSelect110,First112,PgSelectRows113,PgSelectSingle114,PgClassExpression115,PgPolymorphic116 bucket1 + Bucket2("Bucket 2 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 22
Deps: 36, 11, 38
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[39]
2: 40, 47, 55, 60, 65
3: 45, 50, 58, 63, 68
ᐳ: 44, 46, 49, 51, 52, 53, 54, 57, 59, 62, 64, 67, 69"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,PgPolymorphic37,PgClassExpression38,PgSelect70,First72,PgSelectRows73,PgSelectSingle74,PgClassExpression75,PgPolymorphic76,PgClassExpression77,PgSelect109,First111,PgSelectRows112,PgSelectSingle113,PgClassExpression114,PgPolymorphic115,PgClassExpression116 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 4, 11, 38, 37, 77, 76, 116, 115

ROOT __ValueᐸrootValueᐳ[4]"):::bucket + class Bucket2,PgClassExpression39,PgSelect40,First44,PgSelectRows45,PgSelectSingle46,PgSelect47,First49,PgSelectRows50,PgSelectSingle51,PgClassExpression52,PgClassExpression53,PgClassExpression54,PgSelect55,First57,PgSelectRows58,PgSelectSingle59,PgSelect60,First62,PgSelectRows63,PgSelectSingle64,PgSelect65,First67,PgSelectRows68,PgSelectSingle69 bucket2 + Bucket3("Bucket 3 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 22
Deps: 75, 11, 77
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[78]
2: 79, 86, 94, 99, 104
3: 84, 89, 97, 102, 107
ᐳ: 83, 85, 88, 90, 91, 92, 93, 96, 98, 101, 103, 106, 108"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 - Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 38, 37
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 39, 46, 54, 59, 64
2: 44, 49, 57, 62, 67
ᐳ: 43, 45, 48, 50, 51, 52, 53, 56, 58, 61, 63, 66, 68"):::bucket + class Bucket3,PgClassExpression78,PgSelect79,First83,PgSelectRows84,PgSelectSingle85,PgSelect86,First88,PgSelectRows89,PgSelectSingle90,PgClassExpression91,PgClassExpression92,PgClassExpression93,PgSelect94,First96,PgSelectRows97,PgSelectSingle98,PgSelect99,First101,PgSelectRows102,PgSelectSingle103,PgSelect104,First106,PgSelectRows107,PgSelectSingle108 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 22
Deps: 114, 11, 116
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[117]
2: 118, 125, 133, 138, 143
3: 123, 128, 136, 141, 146
ᐳ: 122, 124, 127, 129, 130, 131, 132, 135, 137, 140, 142, 145, 147"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect39,First43,PgSelectRows44,PgSelectSingle45,PgSelect46,First48,PgSelectRows49,PgSelectSingle50,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgSelect59,First61,PgSelectRows62,PgSelectSingle63,PgSelect64,First66,PgSelectRows67,PgSelectSingle68 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 77, 76
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 78, 85, 93, 98, 103
2: 83, 88, 96, 101, 106
ᐳ: 82, 84, 87, 89, 90, 91, 92, 95, 97, 100, 102, 105, 107"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect78,First82,PgSelectRows83,PgSelectSingle84,PgSelect85,First87,PgSelectRows88,PgSelectSingle89,PgClassExpression90,PgClassExpression91,PgClassExpression92,PgSelect93,First95,PgSelectRows96,PgSelectSingle97,PgSelect98,First100,PgSelectRows101,PgSelectSingle102,PgSelect103,First105,PgSelectRows106,PgSelectSingle107 bucket5 - Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 116, 115
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 117, 124, 132, 137, 142
2: 122, 127, 135, 140, 145
ᐳ: 121, 123, 126, 128, 129, 130, 131, 134, 136, 139, 141, 144, 146"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect117,First121,PgSelectRows122,PgSelectSingle123,PgSelect124,First126,PgSelectRows127,PgSelectSingle128,PgClassExpression129,PgClassExpression130,PgClassExpression131,PgSelect132,First134,PgSelectRows135,PgSelectSingle136,PgSelect137,First139,PgSelectRows140,PgSelectSingle141,PgSelect142,First144,PgSelectRows145,PgSelectSingle146 bucket6 + class Bucket4,PgClassExpression117,PgSelect118,First122,PgSelectRows123,PgSelectSingle124,PgSelect125,First127,PgSelectRows128,PgSelectSingle129,PgClassExpression130,PgClassExpression131,PgClassExpression132,PgSelect133,First135,PgSelectRows136,PgSelectSingle137,PgSelect138,First140,PgSelectRows141,PgSelectSingle142,PgSelect143,First145,PgSelectRows146,PgSelectSingle147 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 & Bucket6 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts.deopt.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts.deopt.mermaid index 26f9b51561..4b1d9753e5 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts.deopt.mermaid @@ -19,247 +19,265 @@ graph TD __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan Constant6{{"Constant[6∈0] ➊
ᐸ'POST'ᐳ"}}:::plan Constant7{{"Constant[7∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant13{{"Constant[13∈0] ➊
ᐸ'Post ꖛ1'ᐳ"}}:::plan - Constant14{{"Constant[14∈0] ➊
ᐸ'Desc 1'ᐳ"}}:::plan - Constant15{{"Constant[15∈0] ➊
ᐸnullᐳ"}}:::plan - Constant27{{"Constant[27∈0] ➊
ᐸ'Post ꖛ2'ᐳ"}}:::plan - Constant28{{"Constant[28∈0] ➊
ᐸ'Desc 2'ᐳ"}}:::plan - Constant41{{"Constant[41∈0] ➊
ᐸ'Post ꖛ3'ᐳ"}}:::plan - Constant42{{"Constant[42∈0] ➊
ᐸ'Desc 3'ᐳ"}}:::plan - Constant168{{"Constant[168∈0] ➊
ᐸ1000000ᐳ"}}:::plan - Constant169{{"Constant[169∈0] ➊
ᐸ1000001ᐳ"}}:::plan - Constant170{{"Constant[170∈0] ➊
ᐸ1000002ᐳ"}}:::plan - PgInsertSingle16[["PgInsertSingle[16∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Constant14{{"Constant[14∈0] ➊
ᐸ'Post ꖛ1'ᐳ"}}:::plan + Constant15{{"Constant[15∈0] ➊
ᐸ'Desc 1'ᐳ"}}:::plan + Constant16{{"Constant[16∈0] ➊
ᐸnullᐳ"}}:::plan + Constant29{{"Constant[29∈0] ➊
ᐸ'Post ꖛ2'ᐳ"}}:::plan + Constant30{{"Constant[30∈0] ➊
ᐸ'Desc 2'ᐳ"}}:::plan + Constant44{{"Constant[44∈0] ➊
ᐸ'Post ꖛ3'ᐳ"}}:::plan + Constant45{{"Constant[45∈0] ➊
ᐸ'Desc 3'ᐳ"}}:::plan + Constant170{{"Constant[170∈0] ➊
ᐸ1000000ᐳ"}}:::plan + Constant171{{"Constant[171∈0] ➊
ᐸ1000001ᐳ"}}:::plan + Constant172{{"Constant[172∈0] ➊
ᐸ1000002ᐳ"}}:::plan + PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan PgClassExpression12{{"PgClassExpression[12∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression12 & Constant13 & Constant14 & Constant15 --> PgInsertSingle16 - PgInsertSingle30[["PgInsertSingle[30∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression26 & Constant27 & Constant28 & Constant15 --> PgInsertSingle30 - PgInsertSingle44[["PgInsertSingle[44∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - PgClassExpression40{{"PgClassExpression[40∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression40 & Constant41 & Constant42 & Constant15 --> PgInsertSingle44 + Object11 & PgClassExpression12 & Constant14 & Constant15 & Constant16 --> PgInsertSingle17 + PgInsertSingle32[["PgInsertSingle[32∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression27 & Constant29 & Constant30 & Constant16 --> PgInsertSingle32 + PgInsertSingle47[["PgInsertSingle[47∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + PgClassExpression42{{"PgClassExpression[42∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression42 & Constant44 & Constant45 & Constant16 --> PgInsertSingle47 PgInsertSingle8[["PgInsertSingle[8∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object11 & Constant6 & Constant7 --> PgInsertSingle8 - PgInsertSingle22[["PgInsertSingle[22∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan - Object11 & Constant6 & Constant7 --> PgInsertSingle22 - PgInsertSingle36[["PgInsertSingle[36∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan - Object11 & Constant6 & Constant7 --> PgInsertSingle36 - PgInsertSingle8 --> PgClassExpression12 - PgInsertSingle22 --> PgClassExpression26 - PgInsertSingle36 --> PgClassExpression40 - PgClassExpression48{{"PgClassExpression[48∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle44 --> PgClassExpression48 - PgSelect50[["PgSelect[50∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object11 & Constant168 --> PgSelect50 - PgPolymorphic58{{"PgPolymorphic[58∈2] ➊"}}:::plan - PgSelectSingle56{{"PgSelectSingle[56∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression57{{"PgClassExpression[57∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle56 & PgClassExpression57 --> PgPolymorphic58 - PgSelect91[["PgSelect[91∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object11 & Constant169 --> PgSelect91 - PgPolymorphic97{{"PgPolymorphic[97∈2] ➊"}}:::plan - PgSelectSingle95{{"PgSelectSingle[95∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression96{{"PgClassExpression[96∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle95 & PgClassExpression96 --> PgPolymorphic97 - PgSelect130[["PgSelect[130∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object11 & Constant170 --> PgSelect130 - PgPolymorphic136{{"PgPolymorphic[136∈2] ➊"}}:::plan - PgSelectSingle134{{"PgSelectSingle[134∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression135{{"PgClassExpression[135∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle134 & PgClassExpression135 --> PgPolymorphic136 - First54{{"First[54∈2] ➊"}}:::plan - PgSelectRows55[["PgSelectRows[55∈2] ➊"]]:::plan - PgSelectRows55 --> First54 - PgSelect50 --> PgSelectRows55 - First54 --> PgSelectSingle56 - PgSelectSingle56 --> PgClassExpression57 - PgClassExpression59{{"PgClassExpression[59∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle56 --> PgClassExpression59 - First93{{"First[93∈2] ➊"}}:::plan - PgSelectRows94[["PgSelectRows[94∈2] ➊"]]:::plan - PgSelectRows94 --> First93 - PgSelect91 --> PgSelectRows94 - First93 --> PgSelectSingle95 - PgSelectSingle95 --> PgClassExpression96 - PgClassExpression98{{"PgClassExpression[98∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle95 --> PgClassExpression98 - First132{{"First[132∈2] ➊"}}:::plan - PgSelectRows133[["PgSelectRows[133∈2] ➊"]]:::plan - PgSelectRows133 --> First132 - PgSelect130 --> PgSelectRows133 - First132 --> PgSelectSingle134 - PgSelectSingle134 --> PgClassExpression135 - PgClassExpression137{{"PgClassExpression[137∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle134 --> PgClassExpression137 - PgSelect60[["PgSelect[60∈4] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object11 & PgClassExpression59 --> PgSelect60 - PgSelect67[["PgSelect[67∈4] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object11 & PgClassExpression59 --> PgSelect67 - PgSelect75[["PgSelect[75∈4] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object11 & PgClassExpression59 --> PgSelect75 - PgSelect80[["PgSelect[80∈4] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object11 & PgClassExpression59 --> PgSelect80 - PgSelect85[["PgSelect[85∈4] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object11 & PgClassExpression59 --> PgSelect85 - First64{{"First[64∈4] ➊"}}:::plan - PgSelectRows65[["PgSelectRows[65∈4] ➊"]]:::plan - PgSelectRows65 --> First64 - PgSelect60 --> PgSelectRows65 - PgSelectSingle66{{"PgSelectSingle[66∈4] ➊
ᐸrelational_topicsᐳ"}}:::plan - First64 --> PgSelectSingle66 - First69{{"First[69∈4] ➊"}}:::plan - PgSelectRows70[["PgSelectRows[70∈4] ➊"]]:::plan - PgSelectRows70 --> First69 - PgSelect67 --> PgSelectRows70 - PgSelectSingle71{{"PgSelectSingle[71∈4] ➊
ᐸrelational_postsᐳ"}}:::plan - First69 --> PgSelectSingle71 - PgClassExpression72{{"PgClassExpression[72∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle71 --> PgClassExpression72 - PgClassExpression73{{"PgClassExpression[73∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle71 --> PgClassExpression73 - PgClassExpression74{{"PgClassExpression[74∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle71 --> PgClassExpression74 - First77{{"First[77∈4] ➊"}}:::plan - PgSelectRows78[["PgSelectRows[78∈4] ➊"]]:::plan - PgSelectRows78 --> First77 - PgSelect75 --> PgSelectRows78 - PgSelectSingle79{{"PgSelectSingle[79∈4] ➊
ᐸrelational_dividersᐳ"}}:::plan - First77 --> PgSelectSingle79 - First82{{"First[82∈4] ➊"}}:::plan - PgSelectRows83[["PgSelectRows[83∈4] ➊"]]:::plan - PgSelectRows83 --> First82 - PgSelect80 --> PgSelectRows83 - PgSelectSingle84{{"PgSelectSingle[84∈4] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First82 --> PgSelectSingle84 - First87{{"First[87∈4] ➊"}}:::plan - PgSelectRows88[["PgSelectRows[88∈4] ➊"]]:::plan - PgSelectRows88 --> First87 - PgSelect85 --> PgSelectRows88 - PgSelectSingle89{{"PgSelectSingle[89∈4] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First87 --> PgSelectSingle89 - PgSelect99[["PgSelect[99∈5] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object11 & PgClassExpression98 --> PgSelect99 - PgSelect106[["PgSelect[106∈5] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object11 & PgClassExpression98 --> PgSelect106 - PgSelect114[["PgSelect[114∈5] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object11 & PgClassExpression98 --> PgSelect114 - PgSelect119[["PgSelect[119∈5] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object11 & PgClassExpression98 --> PgSelect119 - PgSelect124[["PgSelect[124∈5] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object11 & PgClassExpression98 --> PgSelect124 - First103{{"First[103∈5] ➊"}}:::plan - PgSelectRows104[["PgSelectRows[104∈5] ➊"]]:::plan - PgSelectRows104 --> First103 - PgSelect99 --> PgSelectRows104 - PgSelectSingle105{{"PgSelectSingle[105∈5] ➊
ᐸrelational_topicsᐳ"}}:::plan - First103 --> PgSelectSingle105 - First108{{"First[108∈5] ➊"}}:::plan - PgSelectRows109[["PgSelectRows[109∈5] ➊"]]:::plan - PgSelectRows109 --> First108 - PgSelect106 --> PgSelectRows109 - PgSelectSingle110{{"PgSelectSingle[110∈5] ➊
ᐸrelational_postsᐳ"}}:::plan - First108 --> PgSelectSingle110 - PgClassExpression111{{"PgClassExpression[111∈5] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle110 --> PgClassExpression111 - PgClassExpression112{{"PgClassExpression[112∈5] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle110 --> PgClassExpression112 - PgClassExpression113{{"PgClassExpression[113∈5] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle110 --> PgClassExpression113 - First116{{"First[116∈5] ➊"}}:::plan - PgSelectRows117[["PgSelectRows[117∈5] ➊"]]:::plan - PgSelectRows117 --> First116 - PgSelect114 --> PgSelectRows117 - PgSelectSingle118{{"PgSelectSingle[118∈5] ➊
ᐸrelational_dividersᐳ"}}:::plan - First116 --> PgSelectSingle118 - First121{{"First[121∈5] ➊"}}:::plan - PgSelectRows122[["PgSelectRows[122∈5] ➊"]]:::plan - PgSelectRows122 --> First121 - PgSelect119 --> PgSelectRows122 - PgSelectSingle123{{"PgSelectSingle[123∈5] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First121 --> PgSelectSingle123 - First126{{"First[126∈5] ➊"}}:::plan - PgSelectRows127[["PgSelectRows[127∈5] ➊"]]:::plan - PgSelectRows127 --> First126 - PgSelect124 --> PgSelectRows127 - PgSelectSingle128{{"PgSelectSingle[128∈5] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First126 --> PgSelectSingle128 - PgSelect138[["PgSelect[138∈6] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object11 & PgClassExpression137 --> PgSelect138 - PgSelect145[["PgSelect[145∈6] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object11 & PgClassExpression137 --> PgSelect145 - PgSelect153[["PgSelect[153∈6] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object11 & PgClassExpression137 --> PgSelect153 - PgSelect158[["PgSelect[158∈6] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object11 & PgClassExpression137 --> PgSelect158 - PgSelect163[["PgSelect[163∈6] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object11 & PgClassExpression137 --> PgSelect163 - First142{{"First[142∈6] ➊"}}:::plan - PgSelectRows143[["PgSelectRows[143∈6] ➊"]]:::plan - PgSelectRows143 --> First142 - PgSelect138 --> PgSelectRows143 - PgSelectSingle144{{"PgSelectSingle[144∈6] ➊
ᐸrelational_topicsᐳ"}}:::plan - First142 --> PgSelectSingle144 - First147{{"First[147∈6] ➊"}}:::plan - PgSelectRows148[["PgSelectRows[148∈6] ➊"]]:::plan - PgSelectRows148 --> First147 - PgSelect145 --> PgSelectRows148 - PgSelectSingle149{{"PgSelectSingle[149∈6] ➊
ᐸrelational_postsᐳ"}}:::plan - First147 --> PgSelectSingle149 - PgClassExpression150{{"PgClassExpression[150∈6] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle149 --> PgClassExpression150 - PgClassExpression151{{"PgClassExpression[151∈6] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle149 --> PgClassExpression151 - PgClassExpression152{{"PgClassExpression[152∈6] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle149 --> PgClassExpression152 - First155{{"First[155∈6] ➊"}}:::plan - PgSelectRows156[["PgSelectRows[156∈6] ➊"]]:::plan - PgSelectRows156 --> First155 - PgSelect153 --> PgSelectRows156 - PgSelectSingle157{{"PgSelectSingle[157∈6] ➊
ᐸrelational_dividersᐳ"}}:::plan - First155 --> PgSelectSingle157 - First160{{"First[160∈6] ➊"}}:::plan - PgSelectRows161[["PgSelectRows[161∈6] ➊"]]:::plan - PgSelectRows161 --> First160 - PgSelect158 --> PgSelectRows161 - PgSelectSingle162{{"PgSelectSingle[162∈6] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First160 --> PgSelectSingle162 - First165{{"First[165∈6] ➊"}}:::plan - PgSelectRows166[["PgSelectRows[166∈6] ➊"]]:::plan - PgSelectRows166 --> First165 - PgSelect163 --> PgSelectRows166 - PgSelectSingle167{{"PgSelectSingle[167∈6] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First165 --> PgSelectSingle167 + PgInsertSingle23[["PgInsertSingle[23∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + Object11 & Constant6 & Constant7 --> PgInsertSingle23 + PgInsertSingle38[["PgInsertSingle[38∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + Object11 & Constant6 & Constant7 --> PgInsertSingle38 + PgSelect54[["PgSelect[54∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object11 & Constant170 --> PgSelect54 + PgPolymorphic60{{"PgPolymorphic[60∈1] ➊"}}:::plan + PgSelectSingle58{{"PgSelectSingle[58∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression59{{"PgClassExpression[59∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle58 & PgClassExpression59 --> PgPolymorphic60 + PgSelect93[["PgSelect[93∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object11 & Constant171 --> PgSelect93 + PgPolymorphic99{{"PgPolymorphic[99∈1] ➊"}}:::plan + PgSelectSingle97{{"PgSelectSingle[97∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression98{{"PgClassExpression[98∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle97 & PgClassExpression98 --> PgPolymorphic99 + PgSelect132[["PgSelect[132∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object11 & Constant172 --> PgSelect132 + PgPolymorphic138{{"PgPolymorphic[138∈1] ➊"}}:::plan + PgSelectSingle136{{"PgSelectSingle[136∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression137{{"PgClassExpression[137∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle136 & PgClassExpression137 --> PgPolymorphic138 + Access13{{"Access[13∈1] ➊
ᐸ8.tᐳ"}}:::plan + Access13 --> PgClassExpression12 + PgInsertSingle8 --> Access13 + Access28{{"Access[28∈1] ➊
ᐸ23.tᐳ"}}:::plan + Access28 --> PgClassExpression27 + PgInsertSingle23 --> Access28 + Access43{{"Access[43∈1] ➊
ᐸ38.tᐳ"}}:::plan + Access43 --> PgClassExpression42 + PgInsertSingle38 --> Access43 + PgClassExpression51{{"PgClassExpression[51∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access52{{"Access[52∈1] ➊
ᐸ47.tᐳ"}}:::plan + Access52 --> PgClassExpression51 + PgInsertSingle47 --> Access52 + First56{{"First[56∈1] ➊"}}:::plan + PgSelectRows57[["PgSelectRows[57∈1] ➊"]]:::plan + PgSelectRows57 --> First56 + PgSelect54 --> PgSelectRows57 + First56 --> PgSelectSingle58 + PgSelectSingle58 --> PgClassExpression59 + First95{{"First[95∈1] ➊"}}:::plan + PgSelectRows96[["PgSelectRows[96∈1] ➊"]]:::plan + PgSelectRows96 --> First95 + PgSelect93 --> PgSelectRows96 + First95 --> PgSelectSingle97 + PgSelectSingle97 --> PgClassExpression98 + First134{{"First[134∈1] ➊"}}:::plan + PgSelectRows135[["PgSelectRows[135∈1] ➊"]]:::plan + PgSelectRows135 --> First134 + PgSelect132 --> PgSelectRows135 + First134 --> PgSelectSingle136 + PgSelectSingle136 --> PgClassExpression137 + PgSelect62[["PgSelect[62∈2] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression61{{"PgClassExpression[61∈2] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object11 & PgClassExpression61 --> PgSelect62 + PgSelect69[["PgSelect[69∈2] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression61 --> PgSelect69 + PgSelect77[["PgSelect[77∈2] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression61 --> PgSelect77 + PgSelect82[["PgSelect[82∈2] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression61 --> PgSelect82 + PgSelect87[["PgSelect[87∈2] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression61 --> PgSelect87 + PgSelectSingle58 --> PgClassExpression61 + First66{{"First[66∈2] ➊"}}:::plan + PgSelectRows67[["PgSelectRows[67∈2] ➊"]]:::plan + PgSelectRows67 --> First66 + PgSelect62 --> PgSelectRows67 + PgSelectSingle68{{"PgSelectSingle[68∈2] ➊
ᐸrelational_topicsᐳ"}}:::plan + First66 --> PgSelectSingle68 + First71{{"First[71∈2] ➊"}}:::plan + PgSelectRows72[["PgSelectRows[72∈2] ➊"]]:::plan + PgSelectRows72 --> First71 + PgSelect69 --> PgSelectRows72 + PgSelectSingle73{{"PgSelectSingle[73∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + First71 --> PgSelectSingle73 + PgClassExpression74{{"PgClassExpression[74∈2] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle73 --> PgClassExpression74 + PgClassExpression75{{"PgClassExpression[75∈2] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle73 --> PgClassExpression75 + PgClassExpression76{{"PgClassExpression[76∈2] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle73 --> PgClassExpression76 + First79{{"First[79∈2] ➊"}}:::plan + PgSelectRows80[["PgSelectRows[80∈2] ➊"]]:::plan + PgSelectRows80 --> First79 + PgSelect77 --> PgSelectRows80 + PgSelectSingle81{{"PgSelectSingle[81∈2] ➊
ᐸrelational_dividersᐳ"}}:::plan + First79 --> PgSelectSingle81 + First84{{"First[84∈2] ➊"}}:::plan + PgSelectRows85[["PgSelectRows[85∈2] ➊"]]:::plan + PgSelectRows85 --> First84 + PgSelect82 --> PgSelectRows85 + PgSelectSingle86{{"PgSelectSingle[86∈2] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First84 --> PgSelectSingle86 + First89{{"First[89∈2] ➊"}}:::plan + PgSelectRows90[["PgSelectRows[90∈2] ➊"]]:::plan + PgSelectRows90 --> First89 + PgSelect87 --> PgSelectRows90 + PgSelectSingle91{{"PgSelectSingle[91∈2] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First89 --> PgSelectSingle91 + PgSelect101[["PgSelect[101∈3] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression100{{"PgClassExpression[100∈3] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object11 & PgClassExpression100 --> PgSelect101 + PgSelect108[["PgSelect[108∈3] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression100 --> PgSelect108 + PgSelect116[["PgSelect[116∈3] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression100 --> PgSelect116 + PgSelect121[["PgSelect[121∈3] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression100 --> PgSelect121 + PgSelect126[["PgSelect[126∈3] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression100 --> PgSelect126 + PgSelectSingle97 --> PgClassExpression100 + First105{{"First[105∈3] ➊"}}:::plan + PgSelectRows106[["PgSelectRows[106∈3] ➊"]]:::plan + PgSelectRows106 --> First105 + PgSelect101 --> PgSelectRows106 + PgSelectSingle107{{"PgSelectSingle[107∈3] ➊
ᐸrelational_topicsᐳ"}}:::plan + First105 --> PgSelectSingle107 + First110{{"First[110∈3] ➊"}}:::plan + PgSelectRows111[["PgSelectRows[111∈3] ➊"]]:::plan + PgSelectRows111 --> First110 + PgSelect108 --> PgSelectRows111 + PgSelectSingle112{{"PgSelectSingle[112∈3] ➊
ᐸrelational_postsᐳ"}}:::plan + First110 --> PgSelectSingle112 + PgClassExpression113{{"PgClassExpression[113∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression113 + PgClassExpression114{{"PgClassExpression[114∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression114 + PgClassExpression115{{"PgClassExpression[115∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression115 + First118{{"First[118∈3] ➊"}}:::plan + PgSelectRows119[["PgSelectRows[119∈3] ➊"]]:::plan + PgSelectRows119 --> First118 + PgSelect116 --> PgSelectRows119 + PgSelectSingle120{{"PgSelectSingle[120∈3] ➊
ᐸrelational_dividersᐳ"}}:::plan + First118 --> PgSelectSingle120 + First123{{"First[123∈3] ➊"}}:::plan + PgSelectRows124[["PgSelectRows[124∈3] ➊"]]:::plan + PgSelectRows124 --> First123 + PgSelect121 --> PgSelectRows124 + PgSelectSingle125{{"PgSelectSingle[125∈3] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First123 --> PgSelectSingle125 + First128{{"First[128∈3] ➊"}}:::plan + PgSelectRows129[["PgSelectRows[129∈3] ➊"]]:::plan + PgSelectRows129 --> First128 + PgSelect126 --> PgSelectRows129 + PgSelectSingle130{{"PgSelectSingle[130∈3] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First128 --> PgSelectSingle130 + PgSelect140[["PgSelect[140∈4] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression139{{"PgClassExpression[139∈4] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object11 & PgClassExpression139 --> PgSelect140 + PgSelect147[["PgSelect[147∈4] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression139 --> PgSelect147 + PgSelect155[["PgSelect[155∈4] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression139 --> PgSelect155 + PgSelect160[["PgSelect[160∈4] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression139 --> PgSelect160 + PgSelect165[["PgSelect[165∈4] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression139 --> PgSelect165 + PgSelectSingle136 --> PgClassExpression139 + First144{{"First[144∈4] ➊"}}:::plan + PgSelectRows145[["PgSelectRows[145∈4] ➊"]]:::plan + PgSelectRows145 --> First144 + PgSelect140 --> PgSelectRows145 + PgSelectSingle146{{"PgSelectSingle[146∈4] ➊
ᐸrelational_topicsᐳ"}}:::plan + First144 --> PgSelectSingle146 + First149{{"First[149∈4] ➊"}}:::plan + PgSelectRows150[["PgSelectRows[150∈4] ➊"]]:::plan + PgSelectRows150 --> First149 + PgSelect147 --> PgSelectRows150 + PgSelectSingle151{{"PgSelectSingle[151∈4] ➊
ᐸrelational_postsᐳ"}}:::plan + First149 --> PgSelectSingle151 + PgClassExpression152{{"PgClassExpression[152∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle151 --> PgClassExpression152 + PgClassExpression153{{"PgClassExpression[153∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle151 --> PgClassExpression153 + PgClassExpression154{{"PgClassExpression[154∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle151 --> PgClassExpression154 + First157{{"First[157∈4] ➊"}}:::plan + PgSelectRows158[["PgSelectRows[158∈4] ➊"]]:::plan + PgSelectRows158 --> First157 + PgSelect155 --> PgSelectRows158 + PgSelectSingle159{{"PgSelectSingle[159∈4] ➊
ᐸrelational_dividersᐳ"}}:::plan + First157 --> PgSelectSingle159 + First162{{"First[162∈4] ➊"}}:::plan + PgSelectRows163[["PgSelectRows[163∈4] ➊"]]:::plan + PgSelectRows163 --> First162 + PgSelect160 --> PgSelectRows163 + PgSelectSingle164{{"PgSelectSingle[164∈4] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First162 --> PgSelectSingle164 + First167{{"First[167∈4] ➊"}}:::plan + PgSelectRows168[["PgSelectRows[168∈4] ➊"]]:::plan + PgSelectRows168 --> First167 + PgSelect165 --> PgSelectRows168 + PgSelectSingle169{{"PgSelectSingle[169∈4] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First167 --> PgSelectSingle169 %% define steps %% implicit side effects - PgInsertSingle16 -.-o PgInsertSingle22 - PgInsertSingle30 -.-o PgInsertSingle36 + PgInsertSingle17 -.-o PgInsertSingle23 + PgInsertSingle32 -.-o PgInsertSingle38 + PgInsertSingle47 -.-o PgSelect54 + PgInsertSingle47 -.-o PgPolymorphic60 + PgInsertSingle47 -.-o PgSelect93 + PgInsertSingle47 -.-o PgPolymorphic99 + PgInsertSingle47 -.-o PgSelect132 + PgInsertSingle47 -.-o PgPolymorphic138 + PgInsertSingle47 -.-o First56 + PgInsertSingle47 -.-o PgSelectRows57 + PgInsertSingle47 -.-o PgSelectSingle58 + PgInsertSingle47 -.-o PgClassExpression59 + PgInsertSingle47 -.-o First95 + PgInsertSingle47 -.-o PgSelectRows96 + PgInsertSingle47 -.-o PgSelectSingle97 + PgInsertSingle47 -.-o PgClassExpression98 + PgInsertSingle47 -.-o First134 + PgInsertSingle47 -.-o PgSelectRows135 + PgInsertSingle47 -.-o PgSelectSingle136 + PgInsertSingle47 -.-o PgClassExpression137 subgraph "Buckets for mutations/basics/create-three-relational-posts" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Constant7,Access9,Access10,Object11,Constant13,Constant14,Constant15,Constant27,Constant28,Constant41,Constant42,Constant168,Constant169,Constant170 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 11, 6, 7, 13, 14, 15, 27, 28, 41, 42, 168, 169, 170, 4

1: PgInsertSingle[8]
2: PgClassExpression[12]
3: PgInsertSingle[16]
4: PgInsertSingle[22]
5: PgClassExpression[26]
6: PgInsertSingle[30]
7: PgInsertSingle[36]
8: PgClassExpression[40]
9: PgInsertSingle[44]
10:
ᐳ: PgClassExpression[48]"):::bucket + class Bucket0,__Value2,__Value4,Constant6,Constant7,Access9,Access10,Object11,Constant14,Constant15,Constant16,Constant29,Constant30,Constant44,Constant45,Constant170,Constant171,Constant172 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 11, 6, 7, 14, 15, 16, 29, 30, 44, 45, 170, 171, 172, 4

1: PgInsertSingle[8]
2: Access[13]
3: PgClassExpression[12]
4: PgInsertSingle[17]
5: PgInsertSingle[23]
6: Access[28]
7: PgClassExpression[27]
8: PgInsertSingle[32]
9: PgInsertSingle[38]
10: Access[43]
11: PgClassExpression[42]
12: PgInsertSingle[47]
13: 54, 93, 132
ᐳ: Access[52], PgClassExpression[51]
14: 57, 96, 135
ᐳ: 56, 58, 59, 60, 95, 97, 98, 99, 134, 136, 137, 138"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle8,PgClassExpression12,PgInsertSingle16,PgInsertSingle22,PgClassExpression26,PgInsertSingle30,PgInsertSingle36,PgClassExpression40,PgInsertSingle44,PgClassExpression48 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 11, 168, 169, 170, 48, 4

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[48]
1: 50, 91, 130
2: 55, 94, 133
ᐳ: 54, 56, 57, 58, 59, 93, 95, 96, 97, 98, 132, 134, 135, 136, 137"):::bucket + class Bucket1,PgInsertSingle8,PgClassExpression12,Access13,PgInsertSingle17,PgInsertSingle23,PgClassExpression27,Access28,PgInsertSingle32,PgInsertSingle38,PgClassExpression42,Access43,PgInsertSingle47,PgClassExpression51,Access52,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgClassExpression59,PgPolymorphic60,PgSelect93,First95,PgSelectRows96,PgSelectSingle97,PgClassExpression98,PgPolymorphic99,PgSelect132,First134,PgSelectRows135,PgSelectSingle136,PgClassExpression137,PgPolymorphic138 bucket1 + Bucket2("Bucket 2 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 47
Deps: 58, 11, 60
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[61]
2: 62, 69, 77, 82, 87
3: 67, 72, 80, 85, 90
ᐳ: 66, 68, 71, 73, 74, 75, 76, 79, 81, 84, 86, 89, 91"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgSelect50,First54,PgSelectRows55,PgSelectSingle56,PgClassExpression57,PgPolymorphic58,PgClassExpression59,PgSelect91,First93,PgSelectRows94,PgSelectSingle95,PgClassExpression96,PgPolymorphic97,PgClassExpression98,PgSelect130,First132,PgSelectRows133,PgSelectSingle134,PgClassExpression135,PgPolymorphic136,PgClassExpression137 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 4, 11, 59, 58, 98, 97, 137, 136

ROOT __ValueᐸrootValueᐳ[4]"):::bucket + class Bucket2,PgClassExpression61,PgSelect62,First66,PgSelectRows67,PgSelectSingle68,PgSelect69,First71,PgSelectRows72,PgSelectSingle73,PgClassExpression74,PgClassExpression75,PgClassExpression76,PgSelect77,First79,PgSelectRows80,PgSelectSingle81,PgSelect82,First84,PgSelectRows85,PgSelectSingle86,PgSelect87,First89,PgSelectRows90,PgSelectSingle91 bucket2 + Bucket3("Bucket 3 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 47
Deps: 97, 11, 99
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[100]
2: 101, 108, 116, 121, 126
3: 106, 111, 119, 124, 129
ᐳ: 105, 107, 110, 112, 113, 114, 115, 118, 120, 123, 125, 128, 130"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 - Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 59, 58
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 60, 67, 75, 80, 85
2: 65, 70, 78, 83, 88
ᐳ: 64, 66, 69, 71, 72, 73, 74, 77, 79, 82, 84, 87, 89"):::bucket + class Bucket3,PgClassExpression100,PgSelect101,First105,PgSelectRows106,PgSelectSingle107,PgSelect108,First110,PgSelectRows111,PgSelectSingle112,PgClassExpression113,PgClassExpression114,PgClassExpression115,PgSelect116,First118,PgSelectRows119,PgSelectSingle120,PgSelect121,First123,PgSelectRows124,PgSelectSingle125,PgSelect126,First128,PgSelectRows129,PgSelectSingle130 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 47
Deps: 136, 11, 138
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[139]
2: 140, 147, 155, 160, 165
3: 145, 150, 158, 163, 168
ᐳ: 144, 146, 149, 151, 152, 153, 154, 157, 159, 162, 164, 167, 169"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect60,First64,PgSelectRows65,PgSelectSingle66,PgSelect67,First69,PgSelectRows70,PgSelectSingle71,PgClassExpression72,PgClassExpression73,PgClassExpression74,PgSelect75,First77,PgSelectRows78,PgSelectSingle79,PgSelect80,First82,PgSelectRows83,PgSelectSingle84,PgSelect85,First87,PgSelectRows88,PgSelectSingle89 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 98, 97
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 99, 106, 114, 119, 124
2: 104, 109, 117, 122, 127
ᐳ: 103, 105, 108, 110, 111, 112, 113, 116, 118, 121, 123, 126, 128"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect99,First103,PgSelectRows104,PgSelectSingle105,PgSelect106,First108,PgSelectRows109,PgSelectSingle110,PgClassExpression111,PgClassExpression112,PgClassExpression113,PgSelect114,First116,PgSelectRows117,PgSelectSingle118,PgSelect119,First121,PgSelectRows122,PgSelectSingle123,PgSelect124,First126,PgSelectRows127,PgSelectSingle128 bucket5 - Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 137, 136
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 138, 145, 153, 158, 163
2: 143, 148, 156, 161, 166
ᐳ: 142, 144, 147, 149, 150, 151, 152, 155, 157, 160, 162, 165, 167"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect138,First142,PgSelectRows143,PgSelectSingle144,PgSelect145,First147,PgSelectRows148,PgSelectSingle149,PgClassExpression150,PgClassExpression151,PgClassExpression152,PgSelect153,First155,PgSelectRows156,PgSelectSingle157,PgSelect158,First160,PgSelectRows161,PgSelectSingle162,PgSelect163,First165,PgSelectRows166,PgSelectSingle167 bucket6 + class Bucket4,PgClassExpression139,PgSelect140,First144,PgSelectRows145,PgSelectSingle146,PgSelect147,First149,PgSelectRows150,PgSelectSingle151,PgClassExpression152,PgClassExpression153,PgClassExpression154,PgSelect155,First157,PgSelectRows158,PgSelectSingle159,PgSelect160,First162,PgSelectRows163,PgSelectSingle164,PgSelect165,First167,PgSelectRows168,PgSelectSingle169 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 & Bucket6 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts.mermaid index 26f9b51561..4b1d9753e5 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/create-three-relational-posts.mermaid @@ -19,247 +19,265 @@ graph TD __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan Constant6{{"Constant[6∈0] ➊
ᐸ'POST'ᐳ"}}:::plan Constant7{{"Constant[7∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant13{{"Constant[13∈0] ➊
ᐸ'Post ꖛ1'ᐳ"}}:::plan - Constant14{{"Constant[14∈0] ➊
ᐸ'Desc 1'ᐳ"}}:::plan - Constant15{{"Constant[15∈0] ➊
ᐸnullᐳ"}}:::plan - Constant27{{"Constant[27∈0] ➊
ᐸ'Post ꖛ2'ᐳ"}}:::plan - Constant28{{"Constant[28∈0] ➊
ᐸ'Desc 2'ᐳ"}}:::plan - Constant41{{"Constant[41∈0] ➊
ᐸ'Post ꖛ3'ᐳ"}}:::plan - Constant42{{"Constant[42∈0] ➊
ᐸ'Desc 3'ᐳ"}}:::plan - Constant168{{"Constant[168∈0] ➊
ᐸ1000000ᐳ"}}:::plan - Constant169{{"Constant[169∈0] ➊
ᐸ1000001ᐳ"}}:::plan - Constant170{{"Constant[170∈0] ➊
ᐸ1000002ᐳ"}}:::plan - PgInsertSingle16[["PgInsertSingle[16∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + Constant14{{"Constant[14∈0] ➊
ᐸ'Post ꖛ1'ᐳ"}}:::plan + Constant15{{"Constant[15∈0] ➊
ᐸ'Desc 1'ᐳ"}}:::plan + Constant16{{"Constant[16∈0] ➊
ᐸnullᐳ"}}:::plan + Constant29{{"Constant[29∈0] ➊
ᐸ'Post ꖛ2'ᐳ"}}:::plan + Constant30{{"Constant[30∈0] ➊
ᐸ'Desc 2'ᐳ"}}:::plan + Constant44{{"Constant[44∈0] ➊
ᐸ'Post ꖛ3'ᐳ"}}:::plan + Constant45{{"Constant[45∈0] ➊
ᐸ'Desc 3'ᐳ"}}:::plan + Constant170{{"Constant[170∈0] ➊
ᐸ1000000ᐳ"}}:::plan + Constant171{{"Constant[171∈0] ➊
ᐸ1000001ᐳ"}}:::plan + Constant172{{"Constant[172∈0] ➊
ᐸ1000002ᐳ"}}:::plan + PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan PgClassExpression12{{"PgClassExpression[12∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression12 & Constant13 & Constant14 & Constant15 --> PgInsertSingle16 - PgInsertSingle30[["PgInsertSingle[30∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression26 & Constant27 & Constant28 & Constant15 --> PgInsertSingle30 - PgInsertSingle44[["PgInsertSingle[44∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan - PgClassExpression40{{"PgClassExpression[40∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression40 & Constant41 & Constant42 & Constant15 --> PgInsertSingle44 + Object11 & PgClassExpression12 & Constant14 & Constant15 & Constant16 --> PgInsertSingle17 + PgInsertSingle32[["PgInsertSingle[32∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression27 & Constant29 & Constant30 & Constant16 --> PgInsertSingle32 + PgInsertSingle47[["PgInsertSingle[47∈1] ➊
ᐸrelational_posts(id,title,description,note)ᐳ"]]:::sideeffectplan + PgClassExpression42{{"PgClassExpression[42∈1] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression42 & Constant44 & Constant45 & Constant16 --> PgInsertSingle47 PgInsertSingle8[["PgInsertSingle[8∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan Object11 & Constant6 & Constant7 --> PgInsertSingle8 - PgInsertSingle22[["PgInsertSingle[22∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan - Object11 & Constant6 & Constant7 --> PgInsertSingle22 - PgInsertSingle36[["PgInsertSingle[36∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan - Object11 & Constant6 & Constant7 --> PgInsertSingle36 - PgInsertSingle8 --> PgClassExpression12 - PgInsertSingle22 --> PgClassExpression26 - PgInsertSingle36 --> PgClassExpression40 - PgClassExpression48{{"PgClassExpression[48∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - PgInsertSingle44 --> PgClassExpression48 - PgSelect50[["PgSelect[50∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object11 & Constant168 --> PgSelect50 - PgPolymorphic58{{"PgPolymorphic[58∈2] ➊"}}:::plan - PgSelectSingle56{{"PgSelectSingle[56∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression57{{"PgClassExpression[57∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle56 & PgClassExpression57 --> PgPolymorphic58 - PgSelect91[["PgSelect[91∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object11 & Constant169 --> PgSelect91 - PgPolymorphic97{{"PgPolymorphic[97∈2] ➊"}}:::plan - PgSelectSingle95{{"PgSelectSingle[95∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression96{{"PgClassExpression[96∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle95 & PgClassExpression96 --> PgPolymorphic97 - PgSelect130[["PgSelect[130∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object11 & Constant170 --> PgSelect130 - PgPolymorphic136{{"PgPolymorphic[136∈2] ➊"}}:::plan - PgSelectSingle134{{"PgSelectSingle[134∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression135{{"PgClassExpression[135∈2] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle134 & PgClassExpression135 --> PgPolymorphic136 - First54{{"First[54∈2] ➊"}}:::plan - PgSelectRows55[["PgSelectRows[55∈2] ➊"]]:::plan - PgSelectRows55 --> First54 - PgSelect50 --> PgSelectRows55 - First54 --> PgSelectSingle56 - PgSelectSingle56 --> PgClassExpression57 - PgClassExpression59{{"PgClassExpression[59∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle56 --> PgClassExpression59 - First93{{"First[93∈2] ➊"}}:::plan - PgSelectRows94[["PgSelectRows[94∈2] ➊"]]:::plan - PgSelectRows94 --> First93 - PgSelect91 --> PgSelectRows94 - First93 --> PgSelectSingle95 - PgSelectSingle95 --> PgClassExpression96 - PgClassExpression98{{"PgClassExpression[98∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle95 --> PgClassExpression98 - First132{{"First[132∈2] ➊"}}:::plan - PgSelectRows133[["PgSelectRows[133∈2] ➊"]]:::plan - PgSelectRows133 --> First132 - PgSelect130 --> PgSelectRows133 - First132 --> PgSelectSingle134 - PgSelectSingle134 --> PgClassExpression135 - PgClassExpression137{{"PgClassExpression[137∈2] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle134 --> PgClassExpression137 - PgSelect60[["PgSelect[60∈4] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object11 & PgClassExpression59 --> PgSelect60 - PgSelect67[["PgSelect[67∈4] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object11 & PgClassExpression59 --> PgSelect67 - PgSelect75[["PgSelect[75∈4] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object11 & PgClassExpression59 --> PgSelect75 - PgSelect80[["PgSelect[80∈4] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object11 & PgClassExpression59 --> PgSelect80 - PgSelect85[["PgSelect[85∈4] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object11 & PgClassExpression59 --> PgSelect85 - First64{{"First[64∈4] ➊"}}:::plan - PgSelectRows65[["PgSelectRows[65∈4] ➊"]]:::plan - PgSelectRows65 --> First64 - PgSelect60 --> PgSelectRows65 - PgSelectSingle66{{"PgSelectSingle[66∈4] ➊
ᐸrelational_topicsᐳ"}}:::plan - First64 --> PgSelectSingle66 - First69{{"First[69∈4] ➊"}}:::plan - PgSelectRows70[["PgSelectRows[70∈4] ➊"]]:::plan - PgSelectRows70 --> First69 - PgSelect67 --> PgSelectRows70 - PgSelectSingle71{{"PgSelectSingle[71∈4] ➊
ᐸrelational_postsᐳ"}}:::plan - First69 --> PgSelectSingle71 - PgClassExpression72{{"PgClassExpression[72∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle71 --> PgClassExpression72 - PgClassExpression73{{"PgClassExpression[73∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle71 --> PgClassExpression73 - PgClassExpression74{{"PgClassExpression[74∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle71 --> PgClassExpression74 - First77{{"First[77∈4] ➊"}}:::plan - PgSelectRows78[["PgSelectRows[78∈4] ➊"]]:::plan - PgSelectRows78 --> First77 - PgSelect75 --> PgSelectRows78 - PgSelectSingle79{{"PgSelectSingle[79∈4] ➊
ᐸrelational_dividersᐳ"}}:::plan - First77 --> PgSelectSingle79 - First82{{"First[82∈4] ➊"}}:::plan - PgSelectRows83[["PgSelectRows[83∈4] ➊"]]:::plan - PgSelectRows83 --> First82 - PgSelect80 --> PgSelectRows83 - PgSelectSingle84{{"PgSelectSingle[84∈4] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First82 --> PgSelectSingle84 - First87{{"First[87∈4] ➊"}}:::plan - PgSelectRows88[["PgSelectRows[88∈4] ➊"]]:::plan - PgSelectRows88 --> First87 - PgSelect85 --> PgSelectRows88 - PgSelectSingle89{{"PgSelectSingle[89∈4] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First87 --> PgSelectSingle89 - PgSelect99[["PgSelect[99∈5] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object11 & PgClassExpression98 --> PgSelect99 - PgSelect106[["PgSelect[106∈5] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object11 & PgClassExpression98 --> PgSelect106 - PgSelect114[["PgSelect[114∈5] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object11 & PgClassExpression98 --> PgSelect114 - PgSelect119[["PgSelect[119∈5] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object11 & PgClassExpression98 --> PgSelect119 - PgSelect124[["PgSelect[124∈5] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object11 & PgClassExpression98 --> PgSelect124 - First103{{"First[103∈5] ➊"}}:::plan - PgSelectRows104[["PgSelectRows[104∈5] ➊"]]:::plan - PgSelectRows104 --> First103 - PgSelect99 --> PgSelectRows104 - PgSelectSingle105{{"PgSelectSingle[105∈5] ➊
ᐸrelational_topicsᐳ"}}:::plan - First103 --> PgSelectSingle105 - First108{{"First[108∈5] ➊"}}:::plan - PgSelectRows109[["PgSelectRows[109∈5] ➊"]]:::plan - PgSelectRows109 --> First108 - PgSelect106 --> PgSelectRows109 - PgSelectSingle110{{"PgSelectSingle[110∈5] ➊
ᐸrelational_postsᐳ"}}:::plan - First108 --> PgSelectSingle110 - PgClassExpression111{{"PgClassExpression[111∈5] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle110 --> PgClassExpression111 - PgClassExpression112{{"PgClassExpression[112∈5] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle110 --> PgClassExpression112 - PgClassExpression113{{"PgClassExpression[113∈5] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle110 --> PgClassExpression113 - First116{{"First[116∈5] ➊"}}:::plan - PgSelectRows117[["PgSelectRows[117∈5] ➊"]]:::plan - PgSelectRows117 --> First116 - PgSelect114 --> PgSelectRows117 - PgSelectSingle118{{"PgSelectSingle[118∈5] ➊
ᐸrelational_dividersᐳ"}}:::plan - First116 --> PgSelectSingle118 - First121{{"First[121∈5] ➊"}}:::plan - PgSelectRows122[["PgSelectRows[122∈5] ➊"]]:::plan - PgSelectRows122 --> First121 - PgSelect119 --> PgSelectRows122 - PgSelectSingle123{{"PgSelectSingle[123∈5] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First121 --> PgSelectSingle123 - First126{{"First[126∈5] ➊"}}:::plan - PgSelectRows127[["PgSelectRows[127∈5] ➊"]]:::plan - PgSelectRows127 --> First126 - PgSelect124 --> PgSelectRows127 - PgSelectSingle128{{"PgSelectSingle[128∈5] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First126 --> PgSelectSingle128 - PgSelect138[["PgSelect[138∈6] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object11 & PgClassExpression137 --> PgSelect138 - PgSelect145[["PgSelect[145∈6] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object11 & PgClassExpression137 --> PgSelect145 - PgSelect153[["PgSelect[153∈6] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object11 & PgClassExpression137 --> PgSelect153 - PgSelect158[["PgSelect[158∈6] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object11 & PgClassExpression137 --> PgSelect158 - PgSelect163[["PgSelect[163∈6] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object11 & PgClassExpression137 --> PgSelect163 - First142{{"First[142∈6] ➊"}}:::plan - PgSelectRows143[["PgSelectRows[143∈6] ➊"]]:::plan - PgSelectRows143 --> First142 - PgSelect138 --> PgSelectRows143 - PgSelectSingle144{{"PgSelectSingle[144∈6] ➊
ᐸrelational_topicsᐳ"}}:::plan - First142 --> PgSelectSingle144 - First147{{"First[147∈6] ➊"}}:::plan - PgSelectRows148[["PgSelectRows[148∈6] ➊"]]:::plan - PgSelectRows148 --> First147 - PgSelect145 --> PgSelectRows148 - PgSelectSingle149{{"PgSelectSingle[149∈6] ➊
ᐸrelational_postsᐳ"}}:::plan - First147 --> PgSelectSingle149 - PgClassExpression150{{"PgClassExpression[150∈6] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle149 --> PgClassExpression150 - PgClassExpression151{{"PgClassExpression[151∈6] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle149 --> PgClassExpression151 - PgClassExpression152{{"PgClassExpression[152∈6] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle149 --> PgClassExpression152 - First155{{"First[155∈6] ➊"}}:::plan - PgSelectRows156[["PgSelectRows[156∈6] ➊"]]:::plan - PgSelectRows156 --> First155 - PgSelect153 --> PgSelectRows156 - PgSelectSingle157{{"PgSelectSingle[157∈6] ➊
ᐸrelational_dividersᐳ"}}:::plan - First155 --> PgSelectSingle157 - First160{{"First[160∈6] ➊"}}:::plan - PgSelectRows161[["PgSelectRows[161∈6] ➊"]]:::plan - PgSelectRows161 --> First160 - PgSelect158 --> PgSelectRows161 - PgSelectSingle162{{"PgSelectSingle[162∈6] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First160 --> PgSelectSingle162 - First165{{"First[165∈6] ➊"}}:::plan - PgSelectRows166[["PgSelectRows[166∈6] ➊"]]:::plan - PgSelectRows166 --> First165 - PgSelect163 --> PgSelectRows166 - PgSelectSingle167{{"PgSelectSingle[167∈6] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First165 --> PgSelectSingle167 + PgInsertSingle23[["PgInsertSingle[23∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + Object11 & Constant6 & Constant7 --> PgInsertSingle23 + PgInsertSingle38[["PgInsertSingle[38∈1] ➊
ᐸrelational_items(type,author_id)ᐳ"]]:::sideeffectplan + Object11 & Constant6 & Constant7 --> PgInsertSingle38 + PgSelect54[["PgSelect[54∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object11 & Constant170 --> PgSelect54 + PgPolymorphic60{{"PgPolymorphic[60∈1] ➊"}}:::plan + PgSelectSingle58{{"PgSelectSingle[58∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression59{{"PgClassExpression[59∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle58 & PgClassExpression59 --> PgPolymorphic60 + PgSelect93[["PgSelect[93∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object11 & Constant171 --> PgSelect93 + PgPolymorphic99{{"PgPolymorphic[99∈1] ➊"}}:::plan + PgSelectSingle97{{"PgSelectSingle[97∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression98{{"PgClassExpression[98∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle97 & PgClassExpression98 --> PgPolymorphic99 + PgSelect132[["PgSelect[132∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object11 & Constant172 --> PgSelect132 + PgPolymorphic138{{"PgPolymorphic[138∈1] ➊"}}:::plan + PgSelectSingle136{{"PgSelectSingle[136∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression137{{"PgClassExpression[137∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle136 & PgClassExpression137 --> PgPolymorphic138 + Access13{{"Access[13∈1] ➊
ᐸ8.tᐳ"}}:::plan + Access13 --> PgClassExpression12 + PgInsertSingle8 --> Access13 + Access28{{"Access[28∈1] ➊
ᐸ23.tᐳ"}}:::plan + Access28 --> PgClassExpression27 + PgInsertSingle23 --> Access28 + Access43{{"Access[43∈1] ➊
ᐸ38.tᐳ"}}:::plan + Access43 --> PgClassExpression42 + PgInsertSingle38 --> Access43 + PgClassExpression51{{"PgClassExpression[51∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access52{{"Access[52∈1] ➊
ᐸ47.tᐳ"}}:::plan + Access52 --> PgClassExpression51 + PgInsertSingle47 --> Access52 + First56{{"First[56∈1] ➊"}}:::plan + PgSelectRows57[["PgSelectRows[57∈1] ➊"]]:::plan + PgSelectRows57 --> First56 + PgSelect54 --> PgSelectRows57 + First56 --> PgSelectSingle58 + PgSelectSingle58 --> PgClassExpression59 + First95{{"First[95∈1] ➊"}}:::plan + PgSelectRows96[["PgSelectRows[96∈1] ➊"]]:::plan + PgSelectRows96 --> First95 + PgSelect93 --> PgSelectRows96 + First95 --> PgSelectSingle97 + PgSelectSingle97 --> PgClassExpression98 + First134{{"First[134∈1] ➊"}}:::plan + PgSelectRows135[["PgSelectRows[135∈1] ➊"]]:::plan + PgSelectRows135 --> First134 + PgSelect132 --> PgSelectRows135 + First134 --> PgSelectSingle136 + PgSelectSingle136 --> PgClassExpression137 + PgSelect62[["PgSelect[62∈2] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression61{{"PgClassExpression[61∈2] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object11 & PgClassExpression61 --> PgSelect62 + PgSelect69[["PgSelect[69∈2] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression61 --> PgSelect69 + PgSelect77[["PgSelect[77∈2] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression61 --> PgSelect77 + PgSelect82[["PgSelect[82∈2] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression61 --> PgSelect82 + PgSelect87[["PgSelect[87∈2] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression61 --> PgSelect87 + PgSelectSingle58 --> PgClassExpression61 + First66{{"First[66∈2] ➊"}}:::plan + PgSelectRows67[["PgSelectRows[67∈2] ➊"]]:::plan + PgSelectRows67 --> First66 + PgSelect62 --> PgSelectRows67 + PgSelectSingle68{{"PgSelectSingle[68∈2] ➊
ᐸrelational_topicsᐳ"}}:::plan + First66 --> PgSelectSingle68 + First71{{"First[71∈2] ➊"}}:::plan + PgSelectRows72[["PgSelectRows[72∈2] ➊"]]:::plan + PgSelectRows72 --> First71 + PgSelect69 --> PgSelectRows72 + PgSelectSingle73{{"PgSelectSingle[73∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + First71 --> PgSelectSingle73 + PgClassExpression74{{"PgClassExpression[74∈2] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle73 --> PgClassExpression74 + PgClassExpression75{{"PgClassExpression[75∈2] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle73 --> PgClassExpression75 + PgClassExpression76{{"PgClassExpression[76∈2] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle73 --> PgClassExpression76 + First79{{"First[79∈2] ➊"}}:::plan + PgSelectRows80[["PgSelectRows[80∈2] ➊"]]:::plan + PgSelectRows80 --> First79 + PgSelect77 --> PgSelectRows80 + PgSelectSingle81{{"PgSelectSingle[81∈2] ➊
ᐸrelational_dividersᐳ"}}:::plan + First79 --> PgSelectSingle81 + First84{{"First[84∈2] ➊"}}:::plan + PgSelectRows85[["PgSelectRows[85∈2] ➊"]]:::plan + PgSelectRows85 --> First84 + PgSelect82 --> PgSelectRows85 + PgSelectSingle86{{"PgSelectSingle[86∈2] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First84 --> PgSelectSingle86 + First89{{"First[89∈2] ➊"}}:::plan + PgSelectRows90[["PgSelectRows[90∈2] ➊"]]:::plan + PgSelectRows90 --> First89 + PgSelect87 --> PgSelectRows90 + PgSelectSingle91{{"PgSelectSingle[91∈2] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First89 --> PgSelectSingle91 + PgSelect101[["PgSelect[101∈3] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression100{{"PgClassExpression[100∈3] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object11 & PgClassExpression100 --> PgSelect101 + PgSelect108[["PgSelect[108∈3] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression100 --> PgSelect108 + PgSelect116[["PgSelect[116∈3] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression100 --> PgSelect116 + PgSelect121[["PgSelect[121∈3] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression100 --> PgSelect121 + PgSelect126[["PgSelect[126∈3] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression100 --> PgSelect126 + PgSelectSingle97 --> PgClassExpression100 + First105{{"First[105∈3] ➊"}}:::plan + PgSelectRows106[["PgSelectRows[106∈3] ➊"]]:::plan + PgSelectRows106 --> First105 + PgSelect101 --> PgSelectRows106 + PgSelectSingle107{{"PgSelectSingle[107∈3] ➊
ᐸrelational_topicsᐳ"}}:::plan + First105 --> PgSelectSingle107 + First110{{"First[110∈3] ➊"}}:::plan + PgSelectRows111[["PgSelectRows[111∈3] ➊"]]:::plan + PgSelectRows111 --> First110 + PgSelect108 --> PgSelectRows111 + PgSelectSingle112{{"PgSelectSingle[112∈3] ➊
ᐸrelational_postsᐳ"}}:::plan + First110 --> PgSelectSingle112 + PgClassExpression113{{"PgClassExpression[113∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression113 + PgClassExpression114{{"PgClassExpression[114∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression114 + PgClassExpression115{{"PgClassExpression[115∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression115 + First118{{"First[118∈3] ➊"}}:::plan + PgSelectRows119[["PgSelectRows[119∈3] ➊"]]:::plan + PgSelectRows119 --> First118 + PgSelect116 --> PgSelectRows119 + PgSelectSingle120{{"PgSelectSingle[120∈3] ➊
ᐸrelational_dividersᐳ"}}:::plan + First118 --> PgSelectSingle120 + First123{{"First[123∈3] ➊"}}:::plan + PgSelectRows124[["PgSelectRows[124∈3] ➊"]]:::plan + PgSelectRows124 --> First123 + PgSelect121 --> PgSelectRows124 + PgSelectSingle125{{"PgSelectSingle[125∈3] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First123 --> PgSelectSingle125 + First128{{"First[128∈3] ➊"}}:::plan + PgSelectRows129[["PgSelectRows[129∈3] ➊"]]:::plan + PgSelectRows129 --> First128 + PgSelect126 --> PgSelectRows129 + PgSelectSingle130{{"PgSelectSingle[130∈3] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First128 --> PgSelectSingle130 + PgSelect140[["PgSelect[140∈4] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression139{{"PgClassExpression[139∈4] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object11 & PgClassExpression139 --> PgSelect140 + PgSelect147[["PgSelect[147∈4] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression139 --> PgSelect147 + PgSelect155[["PgSelect[155∈4] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression139 --> PgSelect155 + PgSelect160[["PgSelect[160∈4] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression139 --> PgSelect160 + PgSelect165[["PgSelect[165∈4] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression139 --> PgSelect165 + PgSelectSingle136 --> PgClassExpression139 + First144{{"First[144∈4] ➊"}}:::plan + PgSelectRows145[["PgSelectRows[145∈4] ➊"]]:::plan + PgSelectRows145 --> First144 + PgSelect140 --> PgSelectRows145 + PgSelectSingle146{{"PgSelectSingle[146∈4] ➊
ᐸrelational_topicsᐳ"}}:::plan + First144 --> PgSelectSingle146 + First149{{"First[149∈4] ➊"}}:::plan + PgSelectRows150[["PgSelectRows[150∈4] ➊"]]:::plan + PgSelectRows150 --> First149 + PgSelect147 --> PgSelectRows150 + PgSelectSingle151{{"PgSelectSingle[151∈4] ➊
ᐸrelational_postsᐳ"}}:::plan + First149 --> PgSelectSingle151 + PgClassExpression152{{"PgClassExpression[152∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle151 --> PgClassExpression152 + PgClassExpression153{{"PgClassExpression[153∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle151 --> PgClassExpression153 + PgClassExpression154{{"PgClassExpression[154∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle151 --> PgClassExpression154 + First157{{"First[157∈4] ➊"}}:::plan + PgSelectRows158[["PgSelectRows[158∈4] ➊"]]:::plan + PgSelectRows158 --> First157 + PgSelect155 --> PgSelectRows158 + PgSelectSingle159{{"PgSelectSingle[159∈4] ➊
ᐸrelational_dividersᐳ"}}:::plan + First157 --> PgSelectSingle159 + First162{{"First[162∈4] ➊"}}:::plan + PgSelectRows163[["PgSelectRows[163∈4] ➊"]]:::plan + PgSelectRows163 --> First162 + PgSelect160 --> PgSelectRows163 + PgSelectSingle164{{"PgSelectSingle[164∈4] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First162 --> PgSelectSingle164 + First167{{"First[167∈4] ➊"}}:::plan + PgSelectRows168[["PgSelectRows[168∈4] ➊"]]:::plan + PgSelectRows168 --> First167 + PgSelect165 --> PgSelectRows168 + PgSelectSingle169{{"PgSelectSingle[169∈4] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First167 --> PgSelectSingle169 %% define steps %% implicit side effects - PgInsertSingle16 -.-o PgInsertSingle22 - PgInsertSingle30 -.-o PgInsertSingle36 + PgInsertSingle17 -.-o PgInsertSingle23 + PgInsertSingle32 -.-o PgInsertSingle38 + PgInsertSingle47 -.-o PgSelect54 + PgInsertSingle47 -.-o PgPolymorphic60 + PgInsertSingle47 -.-o PgSelect93 + PgInsertSingle47 -.-o PgPolymorphic99 + PgInsertSingle47 -.-o PgSelect132 + PgInsertSingle47 -.-o PgPolymorphic138 + PgInsertSingle47 -.-o First56 + PgInsertSingle47 -.-o PgSelectRows57 + PgInsertSingle47 -.-o PgSelectSingle58 + PgInsertSingle47 -.-o PgClassExpression59 + PgInsertSingle47 -.-o First95 + PgInsertSingle47 -.-o PgSelectRows96 + PgInsertSingle47 -.-o PgSelectSingle97 + PgInsertSingle47 -.-o PgClassExpression98 + PgInsertSingle47 -.-o First134 + PgInsertSingle47 -.-o PgSelectRows135 + PgInsertSingle47 -.-o PgSelectSingle136 + PgInsertSingle47 -.-o PgClassExpression137 subgraph "Buckets for mutations/basics/create-three-relational-posts" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Constant7,Access9,Access10,Object11,Constant13,Constant14,Constant15,Constant27,Constant28,Constant41,Constant42,Constant168,Constant169,Constant170 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 11, 6, 7, 13, 14, 15, 27, 28, 41, 42, 168, 169, 170, 4

1: PgInsertSingle[8]
2: PgClassExpression[12]
3: PgInsertSingle[16]
4: PgInsertSingle[22]
5: PgClassExpression[26]
6: PgInsertSingle[30]
7: PgInsertSingle[36]
8: PgClassExpression[40]
9: PgInsertSingle[44]
10:
ᐳ: PgClassExpression[48]"):::bucket + class Bucket0,__Value2,__Value4,Constant6,Constant7,Access9,Access10,Object11,Constant14,Constant15,Constant16,Constant29,Constant30,Constant44,Constant45,Constant170,Constant171,Constant172 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 11, 6, 7, 14, 15, 16, 29, 30, 44, 45, 170, 171, 172, 4

1: PgInsertSingle[8]
2: Access[13]
3: PgClassExpression[12]
4: PgInsertSingle[17]
5: PgInsertSingle[23]
6: Access[28]
7: PgClassExpression[27]
8: PgInsertSingle[32]
9: PgInsertSingle[38]
10: Access[43]
11: PgClassExpression[42]
12: PgInsertSingle[47]
13: 54, 93, 132
ᐳ: Access[52], PgClassExpression[51]
14: 57, 96, 135
ᐳ: 56, 58, 59, 60, 95, 97, 98, 99, 134, 136, 137, 138"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle8,PgClassExpression12,PgInsertSingle16,PgInsertSingle22,PgClassExpression26,PgInsertSingle30,PgInsertSingle36,PgClassExpression40,PgInsertSingle44,PgClassExpression48 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 11, 168, 169, 170, 48, 4

ROOT PgClassExpression{1}ᐸ__relational_posts__ᐳ[48]
1: 50, 91, 130
2: 55, 94, 133
ᐳ: 54, 56, 57, 58, 59, 93, 95, 96, 97, 98, 132, 134, 135, 136, 137"):::bucket + class Bucket1,PgInsertSingle8,PgClassExpression12,Access13,PgInsertSingle17,PgInsertSingle23,PgClassExpression27,Access28,PgInsertSingle32,PgInsertSingle38,PgClassExpression42,Access43,PgInsertSingle47,PgClassExpression51,Access52,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgClassExpression59,PgPolymorphic60,PgSelect93,First95,PgSelectRows96,PgSelectSingle97,PgClassExpression98,PgPolymorphic99,PgSelect132,First134,PgSelectRows135,PgSelectSingle136,PgClassExpression137,PgPolymorphic138 bucket1 + Bucket2("Bucket 2 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 47
Deps: 58, 11, 60
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[61]
2: 62, 69, 77, 82, 87
3: 67, 72, 80, 85, 90
ᐳ: 66, 68, 71, 73, 74, 75, 76, 79, 81, 84, 86, 89, 91"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgSelect50,First54,PgSelectRows55,PgSelectSingle56,PgClassExpression57,PgPolymorphic58,PgClassExpression59,PgSelect91,First93,PgSelectRows94,PgSelectSingle95,PgClassExpression96,PgPolymorphic97,PgClassExpression98,PgSelect130,First132,PgSelectRows133,PgSelectSingle134,PgClassExpression135,PgPolymorphic136,PgClassExpression137 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 4, 11, 59, 58, 98, 97, 137, 136

ROOT __ValueᐸrootValueᐳ[4]"):::bucket + class Bucket2,PgClassExpression61,PgSelect62,First66,PgSelectRows67,PgSelectSingle68,PgSelect69,First71,PgSelectRows72,PgSelectSingle73,PgClassExpression74,PgClassExpression75,PgClassExpression76,PgSelect77,First79,PgSelectRows80,PgSelectSingle81,PgSelect82,First84,PgSelectRows85,PgSelectSingle86,PgSelect87,First89,PgSelectRows90,PgSelectSingle91 bucket2 + Bucket3("Bucket 3 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 47
Deps: 97, 11, 99
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[100]
2: 101, 108, 116, 121, 126
3: 106, 111, 119, 124, 129
ᐳ: 105, 107, 110, 112, 113, 114, 115, 118, 120, 123, 125, 128, 130"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 - Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 59, 58
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 60, 67, 75, 80, 85
2: 65, 70, 78, 83, 88
ᐳ: 64, 66, 69, 71, 72, 73, 74, 77, 79, 82, 84, 87, 89"):::bucket + class Bucket3,PgClassExpression100,PgSelect101,First105,PgSelectRows106,PgSelectSingle107,PgSelect108,First110,PgSelectRows111,PgSelectSingle112,PgClassExpression113,PgClassExpression114,PgClassExpression115,PgSelect116,First118,PgSelectRows119,PgSelectSingle120,PgSelect121,First123,PgSelectRows124,PgSelectSingle125,PgSelect126,First128,PgSelectRows129,PgSelectSingle130 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 47
Deps: 136, 11, 138
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: PgClassExpression[139]
2: 140, 147, 155, 160, 165
3: 145, 150, 158, 163, 168
ᐳ: 144, 146, 149, 151, 152, 153, 154, 157, 159, 162, 164, 167, 169"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect60,First64,PgSelectRows65,PgSelectSingle66,PgSelect67,First69,PgSelectRows70,PgSelectSingle71,PgClassExpression72,PgClassExpression73,PgClassExpression74,PgSelect75,First77,PgSelectRows78,PgSelectSingle79,PgSelect80,First82,PgSelectRows83,PgSelectSingle84,PgSelect85,First87,PgSelectRows88,PgSelectSingle89 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 98, 97
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 99, 106, 114, 119, 124
2: 104, 109, 117, 122, 127
ᐳ: 103, 105, 108, 110, 111, 112, 113, 116, 118, 121, 123, 126, 128"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect99,First103,PgSelectRows104,PgSelectSingle105,PgSelect106,First108,PgSelectRows109,PgSelectSingle110,PgClassExpression111,PgClassExpression112,PgClassExpression113,PgSelect114,First116,PgSelectRows117,PgSelectSingle118,PgSelect119,First121,PgSelectRows122,PgSelectSingle123,PgSelect124,First126,PgSelectRows127,PgSelectSingle128 bucket5 - Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 137, 136
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 138, 145, 153, 158, 163
2: 143, 148, 156, 161, 166
ᐳ: 142, 144, 147, 149, 150, 151, 152, 155, 157, 160, 162, 165, 167"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect138,First142,PgSelectRows143,PgSelectSingle144,PgSelect145,First147,PgSelectRows148,PgSelectSingle149,PgClassExpression150,PgClassExpression151,PgClassExpression152,PgSelect153,First155,PgSelectRows156,PgSelectSingle157,PgSelect158,First160,PgSelectRows161,PgSelectSingle162,PgSelect163,First165,PgSelectRows166,PgSelectSingle167 bucket6 + class Bucket4,PgClassExpression139,PgSelect140,First144,PgSelectRows145,PgSelectSingle146,PgSelect147,First149,PgSelectRows150,PgSelectSingle151,PgClassExpression152,PgClassExpression153,PgClassExpression154,PgSelect155,First157,PgSelectRows158,PgSelectSingle159,PgSelect160,First162,PgSelectRows163,PgSelectSingle164,PgSelect165,First167,PgSelectRows168,PgSelectSingle169 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 & Bucket6 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post-no-computed.deopt.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post-no-computed.deopt.mermaid index 972dc5103e..4781b7835e 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post-no-computed.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post-no-computed.deopt.mermaid @@ -17,42 +17,38 @@ graph TD __Value2 --> Access9 __Value2 --> Access10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant20{{"Constant[20∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant21{{"Constant[21∈0] ➊
ᐸ3141592ᐳ"}}:::plan + Constant22{{"Constant[22∈0] ➊
ᐸ4ᐳ"}}:::plan + Constant23{{"Constant[23∈0] ➊
ᐸ3141592ᐳ"}}:::plan PgDeleteSingle8[["PgDeleteSingle[8∈1] ➊
ᐸrelational_posts(id)ᐳ"]]:::sideeffectplan - Object11 & Constant20 --> PgDeleteSingle8 - PgClassExpression12{{"PgClassExpression[12∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - PgDeleteSingle8 --> PgClassExpression12 - PgDeleteSingle15[["PgDeleteSingle[15∈3] ➊
ᐸrelational_posts(id)ᐳ"]]:::sideeffectplan - Object18{{"Object[18∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object18 & Constant21 --> PgDeleteSingle15 - Access16{{"Access[16∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access17{{"Access[17∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access16 & Access17 --> Object18 - __Value2 --> Access16 + Object11 & Constant22 --> PgDeleteSingle8 + PgClassExpression12{{"PgClassExpression[12∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Access13{{"Access[13∈1] ➊
ᐸ8.tᐳ"}}:::plan + Access13 --> PgClassExpression12 + PgDeleteSingle8 --> Access13 + PgDeleteSingle16[["PgDeleteSingle[16∈2] ➊
ᐸrelational_posts(id)ᐳ"]]:::sideeffectplan + Object19{{"Object[19∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object19 & Constant23 --> PgDeleteSingle16 + Access17{{"Access[17∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access18{{"Access[18∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access17 & Access18 --> Object19 __Value2 --> Access17 - PgClassExpression19{{"PgClassExpression[19∈4] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - PgDeleteSingle15 --> PgClassExpression19 + __Value2 --> Access18 + PgClassExpression20{{"PgClassExpression[20∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Access21{{"Access[21∈2] ➊
ᐸ16.tᐳ"}}:::plan + Access21 --> PgClassExpression20 + PgDeleteSingle16 --> Access21 %% define steps subgraph "Buckets for mutations/basics/delete-relational-post-no-computed" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Constant20,Constant21 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 11, 20"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Constant22,Constant23 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 11, 22

1: PgDeleteSingle[8]
2:
ᐳ: Access[13], PgClassExpression[12]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgDeleteSingle8 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 8

ROOT PgDeleteSingle{1}ᐸrelational_posts(id)ᐳ[8]"):::bucket + class Bucket1,PgDeleteSingle8,PgClassExpression12,Access13 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 23, 2

1: Access[17]
2: Access[18]
3: Object[19]
4: PgDeleteSingle[16]
5:
ᐳ: Access[21], PgClassExpression[20]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression12 bucket2 - Bucket3("Bucket 3 (mutationField)
Deps: 21, 2

1: Access[16]
2: Access[17]
3: Object[18]
4: PgDeleteSingle[15]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgDeleteSingle15,Access16,Access17,Object18 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 15

ROOT PgDeleteSingle{3}ᐸrelational_posts(id)ᐳ[15]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression19 bucket4 - Bucket0 --> Bucket1 & Bucket3 - Bucket1 --> Bucket2 - Bucket3 --> Bucket4 + class Bucket2,PgDeleteSingle16,Access17,Access18,Object19,PgClassExpression20,Access21 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post-no-computed.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post-no-computed.mermaid index 972dc5103e..4781b7835e 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post-no-computed.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post-no-computed.mermaid @@ -17,42 +17,38 @@ graph TD __Value2 --> Access9 __Value2 --> Access10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant20{{"Constant[20∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant21{{"Constant[21∈0] ➊
ᐸ3141592ᐳ"}}:::plan + Constant22{{"Constant[22∈0] ➊
ᐸ4ᐳ"}}:::plan + Constant23{{"Constant[23∈0] ➊
ᐸ3141592ᐳ"}}:::plan PgDeleteSingle8[["PgDeleteSingle[8∈1] ➊
ᐸrelational_posts(id)ᐳ"]]:::sideeffectplan - Object11 & Constant20 --> PgDeleteSingle8 - PgClassExpression12{{"PgClassExpression[12∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - PgDeleteSingle8 --> PgClassExpression12 - PgDeleteSingle15[["PgDeleteSingle[15∈3] ➊
ᐸrelational_posts(id)ᐳ"]]:::sideeffectplan - Object18{{"Object[18∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object18 & Constant21 --> PgDeleteSingle15 - Access16{{"Access[16∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access17{{"Access[17∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access16 & Access17 --> Object18 - __Value2 --> Access16 + Object11 & Constant22 --> PgDeleteSingle8 + PgClassExpression12{{"PgClassExpression[12∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Access13{{"Access[13∈1] ➊
ᐸ8.tᐳ"}}:::plan + Access13 --> PgClassExpression12 + PgDeleteSingle8 --> Access13 + PgDeleteSingle16[["PgDeleteSingle[16∈2] ➊
ᐸrelational_posts(id)ᐳ"]]:::sideeffectplan + Object19{{"Object[19∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object19 & Constant23 --> PgDeleteSingle16 + Access17{{"Access[17∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access18{{"Access[18∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access17 & Access18 --> Object19 __Value2 --> Access17 - PgClassExpression19{{"PgClassExpression[19∈4] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - PgDeleteSingle15 --> PgClassExpression19 + __Value2 --> Access18 + PgClassExpression20{{"PgClassExpression[20∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Access21{{"Access[21∈2] ➊
ᐸ16.tᐳ"}}:::plan + Access21 --> PgClassExpression20 + PgDeleteSingle16 --> Access21 %% define steps subgraph "Buckets for mutations/basics/delete-relational-post-no-computed" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Constant20,Constant21 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 11, 20"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Constant22,Constant23 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 11, 22

1: PgDeleteSingle[8]
2:
ᐳ: Access[13], PgClassExpression[12]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgDeleteSingle8 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 8

ROOT PgDeleteSingle{1}ᐸrelational_posts(id)ᐳ[8]"):::bucket + class Bucket1,PgDeleteSingle8,PgClassExpression12,Access13 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 23, 2

1: Access[17]
2: Access[18]
3: Object[19]
4: PgDeleteSingle[16]
5:
ᐳ: Access[21], PgClassExpression[20]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression12 bucket2 - Bucket3("Bucket 3 (mutationField)
Deps: 21, 2

1: Access[16]
2: Access[17]
3: Object[18]
4: PgDeleteSingle[15]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgDeleteSingle15,Access16,Access17,Object18 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 15

ROOT PgDeleteSingle{3}ᐸrelational_posts(id)ᐳ[15]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression19 bucket4 - Bucket0 --> Bucket1 & Bucket3 - Bucket1 --> Bucket2 - Bucket3 --> Bucket4 + class Bucket2,PgDeleteSingle16,Access17,Access18,Object19,PgClassExpression20,Access21 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post.deopt.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post.deopt.mermaid index 255365c273..c938565b4b 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post.deopt.mermaid @@ -17,162 +17,150 @@ graph TD __Value2 --> Access9 __Value2 --> Access10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant88{{"Constant[88∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant89{{"Constant[89∈0] ➊
ᐸ3141592ᐳ"}}:::plan + Constant86{{"Constant[86∈0] ➊
ᐸ4ᐳ"}}:::plan + Constant87{{"Constant[87∈0] ➊
ᐸ3141592ᐳ"}}:::plan PgDeleteSingle8[["PgDeleteSingle[8∈1] ➊
ᐸrelational_posts(id)ᐳ"]]:::sideeffectplan - Object11 & Constant88 --> PgDeleteSingle8 - PgSelect14[["PgSelect[14∈2] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression13{{"PgClassExpression[13∈2] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object11 & PgClassExpression13 --> PgSelect14 - PgClassExpression12{{"PgClassExpression[12∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - PgDeleteSingle8 --> PgClassExpression12 - PgDeleteSingle8 --> PgClassExpression13 - First18{{"First[18∈2] ➊"}}:::plan - PgSelectRows19[["PgSelectRows[19∈2] ➊"]]:::plan + Object11 & Constant86 --> PgDeleteSingle8 + PgSelect15[["PgSelect[15∈1] ➊
ᐸrelational_postsᐳ"]]:::plan + PgFromExpression17{{"PgFromExpression[17∈1] ➊"}}:::plan + Object11 & PgFromExpression17 --> PgSelect15 + PgSelect26[["PgSelect[26∈1] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression28{{"PgFromExpression[28∈1] ➊"}}:::plan + Object11 & PgFromExpression28 --> PgSelect26 + PgSelect33[["PgSelect[33∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression21 --> PgSelect33 + PgSelect39[["PgSelect[39∈1] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression38{{"PgClassExpression[38∈1] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression38 --> PgSelect39 + PgClassExpression12{{"PgClassExpression[12∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Access13{{"Access[13∈1] ➊
ᐸ8.tᐳ"}}:::plan + Access13 --> PgClassExpression12 + PgDeleteSingle8 --> Access13 + PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access13 --> PgClassExpression14 + PgClassExpression14 --> PgFromExpression17 + First18{{"First[18∈1] ➊"}}:::plan + PgSelectRows19[["PgSelectRows[19∈1] ➊"]]:::plan PgSelectRows19 --> First18 - PgSelect14 --> PgSelectRows19 - PgSelectSingle20{{"PgSelectSingle[20∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect15 --> PgSelectRows19 + PgSelectSingle20{{"PgSelectSingle[20∈1] ➊
ᐸrelational_postsᐳ"}}:::plan First18 --> PgSelectSingle20 - PgSelect26[["PgSelect[26∈3] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression25{{"PgClassExpression[25∈3] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object11 & PgClassExpression25 --> PgSelect26 - PgSelect34[["PgSelect[34∈3] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression21{{"PgClassExpression[21∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression21 --> PgSelect34 - PgSelect40[["PgSelect[40∈3] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression39{{"PgClassExpression[39∈3] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression39 --> PgSelect40 PgSelectSingle20 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle20 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle20 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle20 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan PgSelectSingle20 --> PgClassExpression25 - First30{{"First[30∈3] ➊"}}:::plan - PgSelectRows31[["PgSelectRows[31∈3] ➊"]]:::plan - PgSelectRows31 --> First30 - PgSelect26 --> PgSelectRows31 - PgSelectSingle32{{"PgSelectSingle[32∈3] ➊
ᐸtextᐳ"}}:::plan - First30 --> PgSelectSingle32 - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan - PgSelectSingle32 --> PgClassExpression33 - First36{{"First[36∈3] ➊"}}:::plan - PgSelectRows37[["PgSelectRows[37∈3] ➊"]]:::plan - PgSelectRows37 --> First36 - PgSelect34 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈3] ➊
ᐸrelational_itemsᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgSelectSingle38 --> PgClassExpression39 - First42{{"First[42∈3] ➊"}}:::plan - PgSelectRows43[["PgSelectRows[43∈3] ➊"]]:::plan - PgSelectRows43 --> First42 - PgSelect40 --> PgSelectRows43 - PgSelectSingle44{{"PgSelectSingle[44∈3] ➊
ᐸpeopleᐳ"}}:::plan - First42 --> PgSelectSingle44 - PgClassExpression45{{"PgClassExpression[45∈4] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈4] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression46 - PgDeleteSingle49[["PgDeleteSingle[49∈5] ➊
ᐸrelational_posts(id)ᐳ"]]:::sideeffectplan - Object52{{"Object[52∈5] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object52 & Constant89 --> PgDeleteSingle49 - Access50{{"Access[50∈5] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access51{{"Access[51∈5] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access50 & Access51 --> Object52 + PgClassExpression25 --> PgFromExpression28 + First29{{"First[29∈1] ➊"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1] ➊"]]:::plan + PgSelectRows30 --> First29 + PgSelect26 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1] ➊
ᐸtextᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + First35{{"First[35∈1] ➊"}}:::plan + PgSelectRows36[["PgSelectRows[36∈1] ➊"]]:::plan + PgSelectRows36 --> First35 + PgSelect33 --> PgSelectRows36 + PgSelectSingle37{{"PgSelectSingle[37∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + First35 --> PgSelectSingle37 + PgSelectSingle37 --> PgClassExpression38 + First41{{"First[41∈1] ➊"}}:::plan + PgSelectRows42[["PgSelectRows[42∈1] ➊"]]:::plan + PgSelectRows42 --> First41 + PgSelect39 --> PgSelectRows42 + PgSelectSingle43{{"PgSelectSingle[43∈1] ➊
ᐸpeopleᐳ"}}:::plan + First41 --> PgSelectSingle43 + PgClassExpression44{{"PgClassExpression[44∈1] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression44 + PgClassExpression45{{"PgClassExpression[45∈1] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression45 + PgDeleteSingle48[["PgDeleteSingle[48∈2] ➊
ᐸrelational_posts(id)ᐳ"]]:::sideeffectplan + Object51{{"Object[51∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object51 & Constant87 --> PgDeleteSingle48 + Access49{{"Access[49∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access50{{"Access[50∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access49 & Access50 --> Object51 + PgSelect55[["PgSelect[55∈2] ➊
ᐸrelational_postsᐳ"]]:::plan + PgFromExpression57{{"PgFromExpression[57∈2] ➊"}}:::plan + Object51 & PgFromExpression57 --> PgSelect55 + PgSelect66[["PgSelect[66∈2] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression68{{"PgFromExpression[68∈2] ➊"}}:::plan + Object51 & PgFromExpression68 --> PgSelect66 + PgSelect73[["PgSelect[73∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression61{{"PgClassExpression[61∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object51 & PgClassExpression61 --> PgSelect73 + PgSelect79[["PgSelect[79∈2] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression78{{"PgClassExpression[78∈2] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object51 & PgClassExpression78 --> PgSelect79 + __Value2 --> Access49 __Value2 --> Access50 - __Value2 --> Access51 - PgSelect55[["PgSelect[55∈6] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression54{{"PgClassExpression[54∈6] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object52 & PgClassExpression54 --> PgSelect55 - PgClassExpression53{{"PgClassExpression[53∈6] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - PgDeleteSingle49 --> PgClassExpression53 - PgDeleteSingle49 --> PgClassExpression54 - First59{{"First[59∈6] ➊"}}:::plan - PgSelectRows60[["PgSelectRows[60∈6] ➊"]]:::plan - PgSelectRows60 --> First59 - PgSelect55 --> PgSelectRows60 - PgSelectSingle61{{"PgSelectSingle[61∈6] ➊
ᐸrelational_postsᐳ"}}:::plan - First59 --> PgSelectSingle61 - PgSelect67[["PgSelect[67∈7] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression66{{"PgClassExpression[66∈7] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object52 & PgClassExpression66 --> PgSelect67 - PgSelect75[["PgSelect[75∈7] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression62{{"PgClassExpression[62∈7] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object52 & PgClassExpression62 --> PgSelect75 - PgSelect81[["PgSelect[81∈7] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression80{{"PgClassExpression[80∈7] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object52 & PgClassExpression80 --> PgSelect81 - PgSelectSingle61 --> PgClassExpression62 - PgClassExpression63{{"PgClassExpression[63∈7] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle61 --> PgClassExpression63 - PgClassExpression64{{"PgClassExpression[64∈7] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle61 --> PgClassExpression64 - PgClassExpression65{{"PgClassExpression[65∈7] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle61 --> PgClassExpression65 - PgSelectSingle61 --> PgClassExpression66 - First71{{"First[71∈7] ➊"}}:::plan - PgSelectRows72[["PgSelectRows[72∈7] ➊"]]:::plan - PgSelectRows72 --> First71 - PgSelect67 --> PgSelectRows72 - PgSelectSingle73{{"PgSelectSingle[73∈7] ➊
ᐸtextᐳ"}}:::plan - First71 --> PgSelectSingle73 - PgClassExpression74{{"PgClassExpression[74∈7] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan - PgSelectSingle73 --> PgClassExpression74 - First77{{"First[77∈7] ➊"}}:::plan - PgSelectRows78[["PgSelectRows[78∈7] ➊"]]:::plan - PgSelectRows78 --> First77 - PgSelect75 --> PgSelectRows78 - PgSelectSingle79{{"PgSelectSingle[79∈7] ➊
ᐸrelational_itemsᐳ"}}:::plan - First77 --> PgSelectSingle79 - PgSelectSingle79 --> PgClassExpression80 - First83{{"First[83∈7] ➊"}}:::plan - PgSelectRows84[["PgSelectRows[84∈7] ➊"]]:::plan - PgSelectRows84 --> First83 - PgSelect81 --> PgSelectRows84 - PgSelectSingle85{{"PgSelectSingle[85∈7] ➊
ᐸpeopleᐳ"}}:::plan - First83 --> PgSelectSingle85 - PgClassExpression86{{"PgClassExpression[86∈8] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle85 --> PgClassExpression86 - PgClassExpression87{{"PgClassExpression[87∈8] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle85 --> PgClassExpression87 + PgClassExpression52{{"PgClassExpression[52∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Access53{{"Access[53∈2] ➊
ᐸ48.tᐳ"}}:::plan + Access53 --> PgClassExpression52 + PgDeleteSingle48 --> Access53 + PgClassExpression54{{"PgClassExpression[54∈2] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access53 --> PgClassExpression54 + PgClassExpression54 --> PgFromExpression57 + First58{{"First[58∈2] ➊"}}:::plan + PgSelectRows59[["PgSelectRows[59∈2] ➊"]]:::plan + PgSelectRows59 --> First58 + PgSelect55 --> PgSelectRows59 + PgSelectSingle60{{"PgSelectSingle[60∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + First58 --> PgSelectSingle60 + PgSelectSingle60 --> PgClassExpression61 + PgClassExpression62{{"PgClassExpression[62∈2] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle60 --> PgClassExpression62 + PgClassExpression63{{"PgClassExpression[63∈2] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle60 --> PgClassExpression63 + PgClassExpression64{{"PgClassExpression[64∈2] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle60 --> PgClassExpression64 + PgClassExpression65{{"PgClassExpression[65∈2] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + PgSelectSingle60 --> PgClassExpression65 + PgClassExpression65 --> PgFromExpression68 + First69{{"First[69∈2] ➊"}}:::plan + PgSelectRows70[["PgSelectRows[70∈2] ➊"]]:::plan + PgSelectRows70 --> First69 + PgSelect66 --> PgSelectRows70 + PgSelectSingle71{{"PgSelectSingle[71∈2] ➊
ᐸtextᐳ"}}:::plan + First69 --> PgSelectSingle71 + PgClassExpression72{{"PgClassExpression[72∈2] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle71 --> PgClassExpression72 + First75{{"First[75∈2] ➊"}}:::plan + PgSelectRows76[["PgSelectRows[76∈2] ➊"]]:::plan + PgSelectRows76 --> First75 + PgSelect73 --> PgSelectRows76 + PgSelectSingle77{{"PgSelectSingle[77∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan + First75 --> PgSelectSingle77 + PgSelectSingle77 --> PgClassExpression78 + First81{{"First[81∈2] ➊"}}:::plan + PgSelectRows82[["PgSelectRows[82∈2] ➊"]]:::plan + PgSelectRows82 --> First81 + PgSelect79 --> PgSelectRows82 + PgSelectSingle83{{"PgSelectSingle[83∈2] ➊
ᐸpeopleᐳ"}}:::plan + First81 --> PgSelectSingle83 + PgClassExpression84{{"PgClassExpression[84∈2] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle83 --> PgClassExpression84 + PgClassExpression85{{"PgClassExpression[85∈2] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle83 --> PgClassExpression85 %% define steps subgraph "Buckets for mutations/basics/delete-relational-post" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Constant88,Constant89 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 11, 88"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Constant86,Constant87 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 11, 86

1: PgDeleteSingle[8]
2:
ᐳ: 13, 12, 14, 17
3: PgSelect[15]
4: PgSelectRows[19]
ᐳ: 18, 20, 21, 22, 23, 24, 25, 28
5: PgSelect[26], PgSelect[33]
6: PgSelectRows[30], PgSelectRows[36]
ᐳ: 29, 31, 32, 35, 37, 38
7: PgSelect[39]
8: PgSelectRows[42]
ᐳ: 41, 43, 44, 45"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgDeleteSingle8 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 8, 11

ROOT PgDeleteSingle{1}ᐸrelational_posts(id)ᐳ[8]
1:
ᐳ: 12, 13
2: PgSelect[14]
3: PgSelectRows[19]
ᐳ: First[18], PgSelectSingle[20]"):::bucket + class Bucket1,PgDeleteSingle8,PgClassExpression12,Access13,PgClassExpression14,PgSelect15,PgFromExpression17,First18,PgSelectRows19,PgSelectSingle20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgSelect26,PgFromExpression28,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgSelect33,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 87, 2

1: Access[49]
2: Access[50]
3: Object[51]
4: PgDeleteSingle[48]
5:
ᐳ: 53, 52, 54, 57
6: PgSelect[55]
7: PgSelectRows[59]
ᐳ: 58, 60, 61, 62, 63, 64, 65, 68
8: PgSelect[66], PgSelect[73]
9: PgSelectRows[70], PgSelectRows[76]
ᐳ: 69, 71, 72, 75, 77, 78
10: PgSelect[79]
11: PgSelectRows[82]
ᐳ: 81, 83, 84, 85"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression12,PgClassExpression13,PgSelect14,First18,PgSelectRows19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 11

ROOT PgSelectSingle{2}ᐸrelational_postsᐳ[20]
1:
ᐳ: 21, 22, 23, 24, 25
2: PgSelect[26], PgSelect[34]
3: PgSelectRows[31], PgSelectRows[37]
ᐳ: 30, 32, 33, 36, 38, 39
4: PgSelect[40]
5: PgSelectRows[43]
ᐳ: First[42], PgSelectSingle[44]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgSelect34,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgSelect40,First42,PgSelectRows43,PgSelectSingle44 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 44

ROOT PgSelectSingle{3}ᐸpeopleᐳ[44]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression45,PgClassExpression46 bucket4 - Bucket5("Bucket 5 (mutationField)
Deps: 89, 2

1: Access[50]
2: Access[51]
3: Object[52]
4: PgDeleteSingle[49]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgDeleteSingle49,Access50,Access51,Object52 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 49, 52

ROOT PgDeleteSingle{5}ᐸrelational_posts(id)ᐳ[49]
1:
ᐳ: 53, 54
2: PgSelect[55]
3: PgSelectRows[60]
ᐳ: First[59], PgSelectSingle[61]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression53,PgClassExpression54,PgSelect55,First59,PgSelectRows60,PgSelectSingle61 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 61, 52

ROOT PgSelectSingle{6}ᐸrelational_postsᐳ[61]
1:
ᐳ: 62, 63, 64, 65, 66
2: PgSelect[67], PgSelect[75]
3: PgSelectRows[72], PgSelectRows[78]
ᐳ: 71, 73, 74, 77, 79, 80
4: PgSelect[81]
5: PgSelectRows[84]
ᐳ: First[83], PgSelectSingle[85]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgClassExpression65,PgClassExpression66,PgSelect67,First71,PgSelectRows72,PgSelectSingle73,PgClassExpression74,PgSelect75,First77,PgSelectRows78,PgSelectSingle79,PgClassExpression80,PgSelect81,First83,PgSelectRows84,PgSelectSingle85 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 85

ROOT PgSelectSingle{7}ᐸpeopleᐳ[85]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression86,PgClassExpression87 bucket8 - Bucket0 --> Bucket1 & Bucket5 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 + class Bucket2,PgDeleteSingle48,Access49,Access50,Object51,PgClassExpression52,Access53,PgClassExpression54,PgSelect55,PgFromExpression57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgClassExpression65,PgSelect66,PgFromExpression68,First69,PgSelectRows70,PgSelectSingle71,PgClassExpression72,PgSelect73,First75,PgSelectRows76,PgSelectSingle77,PgClassExpression78,PgSelect79,First81,PgSelectRows82,PgSelectSingle83,PgClassExpression84,PgClassExpression85 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post.mermaid index 255365c273..c938565b4b 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/delete-relational-post.mermaid @@ -17,162 +17,150 @@ graph TD __Value2 --> Access9 __Value2 --> Access10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant88{{"Constant[88∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant89{{"Constant[89∈0] ➊
ᐸ3141592ᐳ"}}:::plan + Constant86{{"Constant[86∈0] ➊
ᐸ4ᐳ"}}:::plan + Constant87{{"Constant[87∈0] ➊
ᐸ3141592ᐳ"}}:::plan PgDeleteSingle8[["PgDeleteSingle[8∈1] ➊
ᐸrelational_posts(id)ᐳ"]]:::sideeffectplan - Object11 & Constant88 --> PgDeleteSingle8 - PgSelect14[["PgSelect[14∈2] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression13{{"PgClassExpression[13∈2] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object11 & PgClassExpression13 --> PgSelect14 - PgClassExpression12{{"PgClassExpression[12∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - PgDeleteSingle8 --> PgClassExpression12 - PgDeleteSingle8 --> PgClassExpression13 - First18{{"First[18∈2] ➊"}}:::plan - PgSelectRows19[["PgSelectRows[19∈2] ➊"]]:::plan + Object11 & Constant86 --> PgDeleteSingle8 + PgSelect15[["PgSelect[15∈1] ➊
ᐸrelational_postsᐳ"]]:::plan + PgFromExpression17{{"PgFromExpression[17∈1] ➊"}}:::plan + Object11 & PgFromExpression17 --> PgSelect15 + PgSelect26[["PgSelect[26∈1] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression28{{"PgFromExpression[28∈1] ➊"}}:::plan + Object11 & PgFromExpression28 --> PgSelect26 + PgSelect33[["PgSelect[33∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression21 --> PgSelect33 + PgSelect39[["PgSelect[39∈1] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression38{{"PgClassExpression[38∈1] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression38 --> PgSelect39 + PgClassExpression12{{"PgClassExpression[12∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Access13{{"Access[13∈1] ➊
ᐸ8.tᐳ"}}:::plan + Access13 --> PgClassExpression12 + PgDeleteSingle8 --> Access13 + PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access13 --> PgClassExpression14 + PgClassExpression14 --> PgFromExpression17 + First18{{"First[18∈1] ➊"}}:::plan + PgSelectRows19[["PgSelectRows[19∈1] ➊"]]:::plan PgSelectRows19 --> First18 - PgSelect14 --> PgSelectRows19 - PgSelectSingle20{{"PgSelectSingle[20∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelect15 --> PgSelectRows19 + PgSelectSingle20{{"PgSelectSingle[20∈1] ➊
ᐸrelational_postsᐳ"}}:::plan First18 --> PgSelectSingle20 - PgSelect26[["PgSelect[26∈3] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression25{{"PgClassExpression[25∈3] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object11 & PgClassExpression25 --> PgSelect26 - PgSelect34[["PgSelect[34∈3] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression21{{"PgClassExpression[21∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression21 --> PgSelect34 - PgSelect40[["PgSelect[40∈3] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression39{{"PgClassExpression[39∈3] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression39 --> PgSelect40 PgSelectSingle20 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle20 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle20 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle20 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan PgSelectSingle20 --> PgClassExpression25 - First30{{"First[30∈3] ➊"}}:::plan - PgSelectRows31[["PgSelectRows[31∈3] ➊"]]:::plan - PgSelectRows31 --> First30 - PgSelect26 --> PgSelectRows31 - PgSelectSingle32{{"PgSelectSingle[32∈3] ➊
ᐸtextᐳ"}}:::plan - First30 --> PgSelectSingle32 - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan - PgSelectSingle32 --> PgClassExpression33 - First36{{"First[36∈3] ➊"}}:::plan - PgSelectRows37[["PgSelectRows[37∈3] ➊"]]:::plan - PgSelectRows37 --> First36 - PgSelect34 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈3] ➊
ᐸrelational_itemsᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgSelectSingle38 --> PgClassExpression39 - First42{{"First[42∈3] ➊"}}:::plan - PgSelectRows43[["PgSelectRows[43∈3] ➊"]]:::plan - PgSelectRows43 --> First42 - PgSelect40 --> PgSelectRows43 - PgSelectSingle44{{"PgSelectSingle[44∈3] ➊
ᐸpeopleᐳ"}}:::plan - First42 --> PgSelectSingle44 - PgClassExpression45{{"PgClassExpression[45∈4] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈4] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression46 - PgDeleteSingle49[["PgDeleteSingle[49∈5] ➊
ᐸrelational_posts(id)ᐳ"]]:::sideeffectplan - Object52{{"Object[52∈5] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object52 & Constant89 --> PgDeleteSingle49 - Access50{{"Access[50∈5] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access51{{"Access[51∈5] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access50 & Access51 --> Object52 + PgClassExpression25 --> PgFromExpression28 + First29{{"First[29∈1] ➊"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1] ➊"]]:::plan + PgSelectRows30 --> First29 + PgSelect26 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1] ➊
ᐸtextᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + First35{{"First[35∈1] ➊"}}:::plan + PgSelectRows36[["PgSelectRows[36∈1] ➊"]]:::plan + PgSelectRows36 --> First35 + PgSelect33 --> PgSelectRows36 + PgSelectSingle37{{"PgSelectSingle[37∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + First35 --> PgSelectSingle37 + PgSelectSingle37 --> PgClassExpression38 + First41{{"First[41∈1] ➊"}}:::plan + PgSelectRows42[["PgSelectRows[42∈1] ➊"]]:::plan + PgSelectRows42 --> First41 + PgSelect39 --> PgSelectRows42 + PgSelectSingle43{{"PgSelectSingle[43∈1] ➊
ᐸpeopleᐳ"}}:::plan + First41 --> PgSelectSingle43 + PgClassExpression44{{"PgClassExpression[44∈1] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression44 + PgClassExpression45{{"PgClassExpression[45∈1] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression45 + PgDeleteSingle48[["PgDeleteSingle[48∈2] ➊
ᐸrelational_posts(id)ᐳ"]]:::sideeffectplan + Object51{{"Object[51∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object51 & Constant87 --> PgDeleteSingle48 + Access49{{"Access[49∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access50{{"Access[50∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access49 & Access50 --> Object51 + PgSelect55[["PgSelect[55∈2] ➊
ᐸrelational_postsᐳ"]]:::plan + PgFromExpression57{{"PgFromExpression[57∈2] ➊"}}:::plan + Object51 & PgFromExpression57 --> PgSelect55 + PgSelect66[["PgSelect[66∈2] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression68{{"PgFromExpression[68∈2] ➊"}}:::plan + Object51 & PgFromExpression68 --> PgSelect66 + PgSelect73[["PgSelect[73∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression61{{"PgClassExpression[61∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object51 & PgClassExpression61 --> PgSelect73 + PgSelect79[["PgSelect[79∈2] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression78{{"PgClassExpression[78∈2] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object51 & PgClassExpression78 --> PgSelect79 + __Value2 --> Access49 __Value2 --> Access50 - __Value2 --> Access51 - PgSelect55[["PgSelect[55∈6] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression54{{"PgClassExpression[54∈6] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object52 & PgClassExpression54 --> PgSelect55 - PgClassExpression53{{"PgClassExpression[53∈6] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - PgDeleteSingle49 --> PgClassExpression53 - PgDeleteSingle49 --> PgClassExpression54 - First59{{"First[59∈6] ➊"}}:::plan - PgSelectRows60[["PgSelectRows[60∈6] ➊"]]:::plan - PgSelectRows60 --> First59 - PgSelect55 --> PgSelectRows60 - PgSelectSingle61{{"PgSelectSingle[61∈6] ➊
ᐸrelational_postsᐳ"}}:::plan - First59 --> PgSelectSingle61 - PgSelect67[["PgSelect[67∈7] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression66{{"PgClassExpression[66∈7] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object52 & PgClassExpression66 --> PgSelect67 - PgSelect75[["PgSelect[75∈7] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression62{{"PgClassExpression[62∈7] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object52 & PgClassExpression62 --> PgSelect75 - PgSelect81[["PgSelect[81∈7] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression80{{"PgClassExpression[80∈7] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object52 & PgClassExpression80 --> PgSelect81 - PgSelectSingle61 --> PgClassExpression62 - PgClassExpression63{{"PgClassExpression[63∈7] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle61 --> PgClassExpression63 - PgClassExpression64{{"PgClassExpression[64∈7] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle61 --> PgClassExpression64 - PgClassExpression65{{"PgClassExpression[65∈7] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle61 --> PgClassExpression65 - PgSelectSingle61 --> PgClassExpression66 - First71{{"First[71∈7] ➊"}}:::plan - PgSelectRows72[["PgSelectRows[72∈7] ➊"]]:::plan - PgSelectRows72 --> First71 - PgSelect67 --> PgSelectRows72 - PgSelectSingle73{{"PgSelectSingle[73∈7] ➊
ᐸtextᐳ"}}:::plan - First71 --> PgSelectSingle73 - PgClassExpression74{{"PgClassExpression[74∈7] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan - PgSelectSingle73 --> PgClassExpression74 - First77{{"First[77∈7] ➊"}}:::plan - PgSelectRows78[["PgSelectRows[78∈7] ➊"]]:::plan - PgSelectRows78 --> First77 - PgSelect75 --> PgSelectRows78 - PgSelectSingle79{{"PgSelectSingle[79∈7] ➊
ᐸrelational_itemsᐳ"}}:::plan - First77 --> PgSelectSingle79 - PgSelectSingle79 --> PgClassExpression80 - First83{{"First[83∈7] ➊"}}:::plan - PgSelectRows84[["PgSelectRows[84∈7] ➊"]]:::plan - PgSelectRows84 --> First83 - PgSelect81 --> PgSelectRows84 - PgSelectSingle85{{"PgSelectSingle[85∈7] ➊
ᐸpeopleᐳ"}}:::plan - First83 --> PgSelectSingle85 - PgClassExpression86{{"PgClassExpression[86∈8] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle85 --> PgClassExpression86 - PgClassExpression87{{"PgClassExpression[87∈8] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle85 --> PgClassExpression87 + PgClassExpression52{{"PgClassExpression[52∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Access53{{"Access[53∈2] ➊
ᐸ48.tᐳ"}}:::plan + Access53 --> PgClassExpression52 + PgDeleteSingle48 --> Access53 + PgClassExpression54{{"PgClassExpression[54∈2] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + Access53 --> PgClassExpression54 + PgClassExpression54 --> PgFromExpression57 + First58{{"First[58∈2] ➊"}}:::plan + PgSelectRows59[["PgSelectRows[59∈2] ➊"]]:::plan + PgSelectRows59 --> First58 + PgSelect55 --> PgSelectRows59 + PgSelectSingle60{{"PgSelectSingle[60∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + First58 --> PgSelectSingle60 + PgSelectSingle60 --> PgClassExpression61 + PgClassExpression62{{"PgClassExpression[62∈2] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle60 --> PgClassExpression62 + PgClassExpression63{{"PgClassExpression[63∈2] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle60 --> PgClassExpression63 + PgClassExpression64{{"PgClassExpression[64∈2] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle60 --> PgClassExpression64 + PgClassExpression65{{"PgClassExpression[65∈2] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + PgSelectSingle60 --> PgClassExpression65 + PgClassExpression65 --> PgFromExpression68 + First69{{"First[69∈2] ➊"}}:::plan + PgSelectRows70[["PgSelectRows[70∈2] ➊"]]:::plan + PgSelectRows70 --> First69 + PgSelect66 --> PgSelectRows70 + PgSelectSingle71{{"PgSelectSingle[71∈2] ➊
ᐸtextᐳ"}}:::plan + First69 --> PgSelectSingle71 + PgClassExpression72{{"PgClassExpression[72∈2] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle71 --> PgClassExpression72 + First75{{"First[75∈2] ➊"}}:::plan + PgSelectRows76[["PgSelectRows[76∈2] ➊"]]:::plan + PgSelectRows76 --> First75 + PgSelect73 --> PgSelectRows76 + PgSelectSingle77{{"PgSelectSingle[77∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan + First75 --> PgSelectSingle77 + PgSelectSingle77 --> PgClassExpression78 + First81{{"First[81∈2] ➊"}}:::plan + PgSelectRows82[["PgSelectRows[82∈2] ➊"]]:::plan + PgSelectRows82 --> First81 + PgSelect79 --> PgSelectRows82 + PgSelectSingle83{{"PgSelectSingle[83∈2] ➊
ᐸpeopleᐳ"}}:::plan + First81 --> PgSelectSingle83 + PgClassExpression84{{"PgClassExpression[84∈2] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle83 --> PgClassExpression84 + PgClassExpression85{{"PgClassExpression[85∈2] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle83 --> PgClassExpression85 %% define steps subgraph "Buckets for mutations/basics/delete-relational-post" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Constant88,Constant89 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 11, 88"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Constant86,Constant87 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 11, 86

1: PgDeleteSingle[8]
2:
ᐳ: 13, 12, 14, 17
3: PgSelect[15]
4: PgSelectRows[19]
ᐳ: 18, 20, 21, 22, 23, 24, 25, 28
5: PgSelect[26], PgSelect[33]
6: PgSelectRows[30], PgSelectRows[36]
ᐳ: 29, 31, 32, 35, 37, 38
7: PgSelect[39]
8: PgSelectRows[42]
ᐳ: 41, 43, 44, 45"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgDeleteSingle8 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 8, 11

ROOT PgDeleteSingle{1}ᐸrelational_posts(id)ᐳ[8]
1:
ᐳ: 12, 13
2: PgSelect[14]
3: PgSelectRows[19]
ᐳ: First[18], PgSelectSingle[20]"):::bucket + class Bucket1,PgDeleteSingle8,PgClassExpression12,Access13,PgClassExpression14,PgSelect15,PgFromExpression17,First18,PgSelectRows19,PgSelectSingle20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgSelect26,PgFromExpression28,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgSelect33,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 87, 2

1: Access[49]
2: Access[50]
3: Object[51]
4: PgDeleteSingle[48]
5:
ᐳ: 53, 52, 54, 57
6: PgSelect[55]
7: PgSelectRows[59]
ᐳ: 58, 60, 61, 62, 63, 64, 65, 68
8: PgSelect[66], PgSelect[73]
9: PgSelectRows[70], PgSelectRows[76]
ᐳ: 69, 71, 72, 75, 77, 78
10: PgSelect[79]
11: PgSelectRows[82]
ᐳ: 81, 83, 84, 85"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression12,PgClassExpression13,PgSelect14,First18,PgSelectRows19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 11

ROOT PgSelectSingle{2}ᐸrelational_postsᐳ[20]
1:
ᐳ: 21, 22, 23, 24, 25
2: PgSelect[26], PgSelect[34]
3: PgSelectRows[31], PgSelectRows[37]
ᐳ: 30, 32, 33, 36, 38, 39
4: PgSelect[40]
5: PgSelectRows[43]
ᐳ: First[42], PgSelectSingle[44]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgSelect34,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgSelect40,First42,PgSelectRows43,PgSelectSingle44 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 44

ROOT PgSelectSingle{3}ᐸpeopleᐳ[44]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression45,PgClassExpression46 bucket4 - Bucket5("Bucket 5 (mutationField)
Deps: 89, 2

1: Access[50]
2: Access[51]
3: Object[52]
4: PgDeleteSingle[49]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgDeleteSingle49,Access50,Access51,Object52 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 49, 52

ROOT PgDeleteSingle{5}ᐸrelational_posts(id)ᐳ[49]
1:
ᐳ: 53, 54
2: PgSelect[55]
3: PgSelectRows[60]
ᐳ: First[59], PgSelectSingle[61]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression53,PgClassExpression54,PgSelect55,First59,PgSelectRows60,PgSelectSingle61 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 61, 52

ROOT PgSelectSingle{6}ᐸrelational_postsᐳ[61]
1:
ᐳ: 62, 63, 64, 65, 66
2: PgSelect[67], PgSelect[75]
3: PgSelectRows[72], PgSelectRows[78]
ᐳ: 71, 73, 74, 77, 79, 80
4: PgSelect[81]
5: PgSelectRows[84]
ᐳ: First[83], PgSelectSingle[85]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgClassExpression65,PgClassExpression66,PgSelect67,First71,PgSelectRows72,PgSelectSingle73,PgClassExpression74,PgSelect75,First77,PgSelectRows78,PgSelectSingle79,PgClassExpression80,PgSelect81,First83,PgSelectRows84,PgSelectSingle85 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 85

ROOT PgSelectSingle{7}ᐸpeopleᐳ[85]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression86,PgClassExpression87 bucket8 - Bucket0 --> Bucket1 & Bucket5 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 + class Bucket2,PgDeleteSingle48,Access49,Access50,Object51,PgClassExpression52,Access53,PgClassExpression54,PgSelect55,PgFromExpression57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgClassExpression65,PgSelect66,PgFromExpression68,First69,PgSelectRows70,PgSelectSingle71,PgClassExpression72,PgSelect73,First75,PgSelectRows76,PgSelectSingle77,PgClassExpression78,PgSelect79,First81,PgSelectRows82,PgSelectSingle83,PgClassExpression84,PgClassExpression85 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/update-relational-post.deopt.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/update-relational-post.deopt.mermaid index c386516b67..d590205d09 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/update-relational-post.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/update-relational-post.deopt.mermaid @@ -17,319 +17,287 @@ graph TD __Value2 --> Access12 __Value2 --> Access13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant206{{"Constant[206∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant207{{"Constant[207∈0] ➊
ᐸ'A description'ᐳ"}}:::plan - Constant208{{"Constant[208∈0] ➊
ᐸ'A note'ᐳ"}}:::plan - Constant209{{"Constant[209∈0] ➊
ᐸnullᐳ"}}:::plan - Constant210{{"Constant[210∈0] ➊
ᐸ3141592ᐳ"}}:::plan - PgUpdateSingle11[["PgUpdateSingle[11∈1] ➊
ᐸrelational_posts(id;description)ᐳ"]]:::sideeffectplan - Object14 & Constant206 & Constant207 --> PgUpdateSingle11 - PgSelect17[["PgSelect[17∈2] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression15{{"PgClassExpression[15∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object14 & PgClassExpression15 --> PgSelect17 - PgUpdateSingle11 --> PgClassExpression15 - First21{{"First[21∈2] ➊"}}:::plan - PgSelectRows22[["PgSelectRows[22∈2] ➊"]]:::plan - PgSelectRows22 --> First21 - PgSelect17 --> PgSelectRows22 - PgSelectSingle23{{"PgSelectSingle[23∈2] ➊
ᐸrelational_postsᐳ"}}:::plan - First21 --> PgSelectSingle23 - PgSelect29[["PgSelect[29∈3] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈3] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object14 & PgClassExpression28 --> PgSelect29 - PgSelect37[["PgSelect[37∈3] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object14 & PgClassExpression24 --> PgSelect37 - PgSelect49[["PgSelect[49∈3] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression48{{"PgClassExpression[48∈3] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object14 & PgClassExpression48 --> PgSelect49 - PgSelectSingle23 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression26 - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression27 - PgSelectSingle23 --> PgClassExpression28 - First33{{"First[33∈3] ➊"}}:::plan - PgSelectRows34[["PgSelectRows[34∈3] ➊"]]:::plan - PgSelectRows34 --> First33 - PgSelect29 --> PgSelectRows34 - PgSelectSingle35{{"PgSelectSingle[35∈3] ➊
ᐸtextᐳ"}}:::plan - First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈3] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression36 - First39{{"First[39∈3] ➊"}}:::plan - PgSelectRows40[["PgSelectRows[40∈3] ➊"]]:::plan - PgSelectRows40 --> First39 - PgSelect37 --> PgSelectRows40 - PgSelectSingle41{{"PgSelectSingle[41∈3] ➊
ᐸrelational_itemsᐳ"}}:::plan - First39 --> PgSelectSingle41 - PgClassExpression42{{"PgClassExpression[42∈3] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle41 --> PgClassExpression42 - PgSelectSingle41 --> PgClassExpression48 - First51{{"First[51∈3] ➊"}}:::plan - PgSelectRows52[["PgSelectRows[52∈3] ➊"]]:::plan - PgSelectRows52 --> First51 - PgSelect49 --> PgSelectRows52 - PgSelectSingle53{{"PgSelectSingle[53∈3] ➊
ᐸpeopleᐳ"}}:::plan - First51 --> PgSelectSingle53 - PgClassExpression54{{"PgClassExpression[54∈4] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression54 - PgClassExpression55{{"PgClassExpression[55∈4] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression55 - PgUpdateSingle61[["PgUpdateSingle[61∈5] ➊
ᐸrelational_posts(id;note)ᐳ"]]:::sideeffectplan - Object64{{"Object[64∈5] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object64 & Constant206 & Constant208 --> PgUpdateSingle61 - Access62{{"Access[62∈5] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access63{{"Access[63∈5] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access62 & Access63 --> Object64 - __Value2 --> Access62 - __Value2 --> Access63 - PgSelect67[["PgSelect[67∈6] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression65{{"PgClassExpression[65∈6] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object64 & PgClassExpression65 --> PgSelect67 - PgUpdateSingle61 --> PgClassExpression65 - First71{{"First[71∈6] ➊"}}:::plan - PgSelectRows72[["PgSelectRows[72∈6] ➊"]]:::plan - PgSelectRows72 --> First71 - PgSelect67 --> PgSelectRows72 - PgSelectSingle73{{"PgSelectSingle[73∈6] ➊
ᐸrelational_postsᐳ"}}:::plan - First71 --> PgSelectSingle73 - PgSelect79[["PgSelect[79∈7] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression78{{"PgClassExpression[78∈7] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object64 & PgClassExpression78 --> PgSelect79 - PgSelect87[["PgSelect[87∈7] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression74{{"PgClassExpression[74∈7] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object64 & PgClassExpression74 --> PgSelect87 - PgSelect99[["PgSelect[99∈7] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression98{{"PgClassExpression[98∈7] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object64 & PgClassExpression98 --> PgSelect99 - PgSelectSingle73 --> PgClassExpression74 - PgClassExpression75{{"PgClassExpression[75∈7] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle73 --> PgClassExpression75 - PgClassExpression76{{"PgClassExpression[76∈7] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle73 --> PgClassExpression76 - PgClassExpression77{{"PgClassExpression[77∈7] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle73 --> PgClassExpression77 - PgSelectSingle73 --> PgClassExpression78 - First83{{"First[83∈7] ➊"}}:::plan - PgSelectRows84[["PgSelectRows[84∈7] ➊"]]:::plan - PgSelectRows84 --> First83 - PgSelect79 --> PgSelectRows84 - PgSelectSingle85{{"PgSelectSingle[85∈7] ➊
ᐸtextᐳ"}}:::plan - First83 --> PgSelectSingle85 - PgClassExpression86{{"PgClassExpression[86∈7] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan - PgSelectSingle85 --> PgClassExpression86 - First89{{"First[89∈7] ➊"}}:::plan - PgSelectRows90[["PgSelectRows[90∈7] ➊"]]:::plan - PgSelectRows90 --> First89 - PgSelect87 --> PgSelectRows90 - PgSelectSingle91{{"PgSelectSingle[91∈7] ➊
ᐸrelational_itemsᐳ"}}:::plan - First89 --> PgSelectSingle91 - PgClassExpression92{{"PgClassExpression[92∈7] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle91 --> PgClassExpression92 - PgSelectSingle91 --> PgClassExpression98 - First101{{"First[101∈7] ➊"}}:::plan - PgSelectRows102[["PgSelectRows[102∈7] ➊"]]:::plan - PgSelectRows102 --> First101 - PgSelect99 --> PgSelectRows102 - PgSelectSingle103{{"PgSelectSingle[103∈7] ➊
ᐸpeopleᐳ"}}:::plan - First101 --> PgSelectSingle103 - PgClassExpression104{{"PgClassExpression[104∈8] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle103 --> PgClassExpression104 - PgClassExpression105{{"PgClassExpression[105∈8] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle103 --> PgClassExpression105 - PgUpdateSingle111[["PgUpdateSingle[111∈9] ➊
ᐸrelational_posts(id;description)ᐳ"]]:::sideeffectplan - Object114{{"Object[114∈9] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object114 & Constant206 & Constant209 --> PgUpdateSingle111 - Access112{{"Access[112∈9] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access113{{"Access[113∈9] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access112 & Access113 --> Object114 - __Value2 --> Access112 - __Value2 --> Access113 - PgSelect117[["PgSelect[117∈10] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression115{{"PgClassExpression[115∈10] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object114 & PgClassExpression115 --> PgSelect117 - PgUpdateSingle111 --> PgClassExpression115 - First121{{"First[121∈10] ➊"}}:::plan - PgSelectRows122[["PgSelectRows[122∈10] ➊"]]:::plan - PgSelectRows122 --> First121 - PgSelect117 --> PgSelectRows122 - PgSelectSingle123{{"PgSelectSingle[123∈10] ➊
ᐸrelational_postsᐳ"}}:::plan - First121 --> PgSelectSingle123 - PgSelect129[["PgSelect[129∈11] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression128{{"PgClassExpression[128∈11] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object114 & PgClassExpression128 --> PgSelect129 - PgSelect137[["PgSelect[137∈11] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression124{{"PgClassExpression[124∈11] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object114 & PgClassExpression124 --> PgSelect137 - PgSelect149[["PgSelect[149∈11] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression148{{"PgClassExpression[148∈11] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object114 & PgClassExpression148 --> PgSelect149 - PgSelectSingle123 --> PgClassExpression124 - PgClassExpression125{{"PgClassExpression[125∈11] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle123 --> PgClassExpression125 - PgClassExpression126{{"PgClassExpression[126∈11] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle123 --> PgClassExpression126 - PgClassExpression127{{"PgClassExpression[127∈11] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle123 --> PgClassExpression127 - PgSelectSingle123 --> PgClassExpression128 - First133{{"First[133∈11] ➊"}}:::plan - PgSelectRows134[["PgSelectRows[134∈11] ➊"]]:::plan + Constant106{{"Constant[106∈0] ➊
ᐸnullᐳ"}}:::plan + Constant198{{"Constant[198∈0] ➊
ᐸ4ᐳ"}}:::plan + Constant199{{"Constant[199∈0] ➊
ᐸ'A description'ᐳ"}}:::plan + Constant200{{"Constant[200∈0] ➊
ᐸ'A note'ᐳ"}}:::plan + Constant201{{"Constant[201∈0] ➊
ᐸ3141592ᐳ"}}:::plan + PgUpdateSingle11[["PgUpdateSingle[11∈1] ➊
ᐸrelational_posts(id;title,description,note)ᐳ"]]:::sideeffectplan + Object14 & Constant198 & Constant199 --> PgUpdateSingle11 + PgSelect18[["PgSelect[18∈1] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object14 & PgClassExpression15 --> PgSelect18 + PgSelect28[["PgSelect[28∈1] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression30{{"PgFromExpression[30∈1] ➊"}}:::plan + Object14 & PgFromExpression30 --> PgSelect28 + PgSelect35[["PgSelect[35∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object14 & PgClassExpression23 --> PgSelect35 + PgSelect47[["PgSelect[47∈1] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression46{{"PgClassExpression[46∈1] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object14 & PgClassExpression46 --> PgSelect47 + Access16{{"Access[16∈1] ➊
ᐸ11.tᐳ"}}:::plan + Access16 --> PgClassExpression15 + PgUpdateSingle11 --> Access16 + First20{{"First[20∈1] ➊"}}:::plan + PgSelectRows21[["PgSelectRows[21∈1] ➊"]]:::plan + PgSelectRows21 --> First20 + PgSelect18 --> PgSelectRows21 + PgSelectSingle22{{"PgSelectSingle[22∈1] ➊
ᐸrelational_postsᐳ"}}:::plan + First20 --> PgSelectSingle22 + PgSelectSingle22 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression25 + PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression26 + PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression27 + PgClassExpression27 --> PgFromExpression30 + First31{{"First[31∈1] ➊"}}:::plan + PgSelectRows32[["PgSelectRows[32∈1] ➊"]]:::plan + PgSelectRows32 --> First31 + PgSelect28 --> PgSelectRows32 + PgSelectSingle33{{"PgSelectSingle[33∈1] ➊
ᐸtextᐳ"}}:::plan + First31 --> PgSelectSingle33 + PgClassExpression34{{"PgClassExpression[34∈1] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression34 + First37{{"First[37∈1] ➊"}}:::plan + PgSelectRows38[["PgSelectRows[38∈1] ➊"]]:::plan + PgSelectRows38 --> First37 + PgSelect35 --> PgSelectRows38 + PgSelectSingle39{{"PgSelectSingle[39∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + First37 --> PgSelectSingle39 + PgClassExpression40{{"PgClassExpression[40∈1] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression40 + PgSelectSingle39 --> PgClassExpression46 + First49{{"First[49∈1] ➊"}}:::plan + PgSelectRows50[["PgSelectRows[50∈1] ➊"]]:::plan + PgSelectRows50 --> First49 + PgSelect47 --> PgSelectRows50 + PgSelectSingle51{{"PgSelectSingle[51∈1] ➊
ᐸpeopleᐳ"}}:::plan + First49 --> PgSelectSingle51 + PgClassExpression52{{"PgClassExpression[52∈1] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression52 + PgClassExpression53{{"PgClassExpression[53∈1] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression53 + PgUpdateSingle59[["PgUpdateSingle[59∈2] ➊
ᐸrelational_posts(id;title,description,note)ᐳ"]]:::sideeffectplan + Object62{{"Object[62∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object62 & Constant198 & Constant200 --> PgUpdateSingle59 + Access60{{"Access[60∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access61{{"Access[61∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access60 & Access61 --> Object62 + PgSelect66[["PgSelect[66∈2] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression63{{"PgClassExpression[63∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object62 & PgClassExpression63 --> PgSelect66 + PgSelect76[["PgSelect[76∈2] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression78{{"PgFromExpression[78∈2] ➊"}}:::plan + Object62 & PgFromExpression78 --> PgSelect76 + PgSelect83[["PgSelect[83∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression71{{"PgClassExpression[71∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object62 & PgClassExpression71 --> PgSelect83 + PgSelect95[["PgSelect[95∈2] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression94{{"PgClassExpression[94∈2] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object62 & PgClassExpression94 --> PgSelect95 + __Value2 --> Access60 + __Value2 --> Access61 + Access64{{"Access[64∈2] ➊
ᐸ59.tᐳ"}}:::plan + Access64 --> PgClassExpression63 + PgUpdateSingle59 --> Access64 + First68{{"First[68∈2] ➊"}}:::plan + PgSelectRows69[["PgSelectRows[69∈2] ➊"]]:::plan + PgSelectRows69 --> First68 + PgSelect66 --> PgSelectRows69 + PgSelectSingle70{{"PgSelectSingle[70∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + First68 --> PgSelectSingle70 + PgSelectSingle70 --> PgClassExpression71 + PgClassExpression72{{"PgClassExpression[72∈2] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle70 --> PgClassExpression72 + PgClassExpression73{{"PgClassExpression[73∈2] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle70 --> PgClassExpression73 + PgClassExpression74{{"PgClassExpression[74∈2] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle70 --> PgClassExpression74 + PgClassExpression75{{"PgClassExpression[75∈2] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + PgSelectSingle70 --> PgClassExpression75 + PgClassExpression75 --> PgFromExpression78 + First79{{"First[79∈2] ➊"}}:::plan + PgSelectRows80[["PgSelectRows[80∈2] ➊"]]:::plan + PgSelectRows80 --> First79 + PgSelect76 --> PgSelectRows80 + PgSelectSingle81{{"PgSelectSingle[81∈2] ➊
ᐸtextᐳ"}}:::plan + First79 --> PgSelectSingle81 + PgClassExpression82{{"PgClassExpression[82∈2] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle81 --> PgClassExpression82 + First85{{"First[85∈2] ➊"}}:::plan + PgSelectRows86[["PgSelectRows[86∈2] ➊"]]:::plan + PgSelectRows86 --> First85 + PgSelect83 --> PgSelectRows86 + PgSelectSingle87{{"PgSelectSingle[87∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan + First85 --> PgSelectSingle87 + PgClassExpression88{{"PgClassExpression[88∈2] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle87 --> PgClassExpression88 + PgSelectSingle87 --> PgClassExpression94 + First97{{"First[97∈2] ➊"}}:::plan + PgSelectRows98[["PgSelectRows[98∈2] ➊"]]:::plan + PgSelectRows98 --> First97 + PgSelect95 --> PgSelectRows98 + PgSelectSingle99{{"PgSelectSingle[99∈2] ➊
ᐸpeopleᐳ"}}:::plan + First97 --> PgSelectSingle99 + PgClassExpression100{{"PgClassExpression[100∈2] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle99 --> PgClassExpression100 + PgClassExpression101{{"PgClassExpression[101∈2] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle99 --> PgClassExpression101 + PgUpdateSingle107[["PgUpdateSingle[107∈3] ➊
ᐸrelational_posts(id;title,description,note)ᐳ"]]:::sideeffectplan + Object110{{"Object[110∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object110 & Constant198 & Constant106 --> PgUpdateSingle107 + Access108{{"Access[108∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access109{{"Access[109∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access108 & Access109 --> Object110 + PgSelect114[["PgSelect[114∈3] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression111{{"PgClassExpression[111∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object110 & PgClassExpression111 --> PgSelect114 + PgSelect124[["PgSelect[124∈3] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression126{{"PgFromExpression[126∈3] ➊"}}:::plan + Object110 & PgFromExpression126 --> PgSelect124 + PgSelect131[["PgSelect[131∈3] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression119{{"PgClassExpression[119∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object110 & PgClassExpression119 --> PgSelect131 + PgSelect143[["PgSelect[143∈3] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression142{{"PgClassExpression[142∈3] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object110 & PgClassExpression142 --> PgSelect143 + __Value2 --> Access108 + __Value2 --> Access109 + Access112{{"Access[112∈3] ➊
ᐸ107.tᐳ"}}:::plan + Access112 --> PgClassExpression111 + PgUpdateSingle107 --> Access112 + First116{{"First[116∈3] ➊"}}:::plan + PgSelectRows117[["PgSelectRows[117∈3] ➊"]]:::plan + PgSelectRows117 --> First116 + PgSelect114 --> PgSelectRows117 + PgSelectSingle118{{"PgSelectSingle[118∈3] ➊
ᐸrelational_postsᐳ"}}:::plan + First116 --> PgSelectSingle118 + PgSelectSingle118 --> PgClassExpression119 + PgClassExpression120{{"PgClassExpression[120∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle118 --> PgClassExpression120 + PgClassExpression121{{"PgClassExpression[121∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle118 --> PgClassExpression121 + PgClassExpression122{{"PgClassExpression[122∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle118 --> PgClassExpression122 + PgClassExpression123{{"PgClassExpression[123∈3] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + PgSelectSingle118 --> PgClassExpression123 + PgClassExpression123 --> PgFromExpression126 + First127{{"First[127∈3] ➊"}}:::plan + PgSelectRows128[["PgSelectRows[128∈3] ➊"]]:::plan + PgSelectRows128 --> First127 + PgSelect124 --> PgSelectRows128 + PgSelectSingle129{{"PgSelectSingle[129∈3] ➊
ᐸtextᐳ"}}:::plan + First127 --> PgSelectSingle129 + PgClassExpression130{{"PgClassExpression[130∈3] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle129 --> PgClassExpression130 + First133{{"First[133∈3] ➊"}}:::plan + PgSelectRows134[["PgSelectRows[134∈3] ➊"]]:::plan PgSelectRows134 --> First133 - PgSelect129 --> PgSelectRows134 - PgSelectSingle135{{"PgSelectSingle[135∈11] ➊
ᐸtextᐳ"}}:::plan + PgSelect131 --> PgSelectRows134 + PgSelectSingle135{{"PgSelectSingle[135∈3] ➊
ᐸrelational_itemsᐳ"}}:::plan First133 --> PgSelectSingle135 - PgClassExpression136{{"PgClassExpression[136∈11] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgClassExpression136{{"PgClassExpression[136∈3] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle135 --> PgClassExpression136 - First139{{"First[139∈11] ➊"}}:::plan - PgSelectRows140[["PgSelectRows[140∈11] ➊"]]:::plan - PgSelectRows140 --> First139 - PgSelect137 --> PgSelectRows140 - PgSelectSingle141{{"PgSelectSingle[141∈11] ➊
ᐸrelational_itemsᐳ"}}:::plan - First139 --> PgSelectSingle141 - PgClassExpression142{{"PgClassExpression[142∈11] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle141 --> PgClassExpression142 - PgSelectSingle141 --> PgClassExpression148 - First151{{"First[151∈11] ➊"}}:::plan - PgSelectRows152[["PgSelectRows[152∈11] ➊"]]:::plan - PgSelectRows152 --> First151 - PgSelect149 --> PgSelectRows152 - PgSelectSingle153{{"PgSelectSingle[153∈11] ➊
ᐸpeopleᐳ"}}:::plan - First151 --> PgSelectSingle153 - PgClassExpression154{{"PgClassExpression[154∈12] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle153 --> PgClassExpression154 - PgClassExpression155{{"PgClassExpression[155∈12] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle153 --> PgClassExpression155 - PgUpdateSingle161[["PgUpdateSingle[161∈13] ➊
ᐸrelational_posts(id;description)ᐳ"]]:::sideeffectplan - Object164{{"Object[164∈13] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object164 & Constant210 & Constant209 --> PgUpdateSingle161 - Access162{{"Access[162∈13] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access163{{"Access[163∈13] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access162 & Access163 --> Object164 - __Value2 --> Access162 - __Value2 --> Access163 - PgSelect167[["PgSelect[167∈14] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression165{{"PgClassExpression[165∈14] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object164 & PgClassExpression165 --> PgSelect167 - PgUpdateSingle161 --> PgClassExpression165 - First171{{"First[171∈14] ➊"}}:::plan - PgSelectRows172[["PgSelectRows[172∈14] ➊"]]:::plan - PgSelectRows172 --> First171 - PgSelect167 --> PgSelectRows172 - PgSelectSingle173{{"PgSelectSingle[173∈14] ➊
ᐸrelational_postsᐳ"}}:::plan - First171 --> PgSelectSingle173 - PgSelect179[["PgSelect[179∈15] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression178{{"PgClassExpression[178∈15] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object164 & PgClassExpression178 --> PgSelect179 - PgSelect187[["PgSelect[187∈15] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression174{{"PgClassExpression[174∈15] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object164 & PgClassExpression174 --> PgSelect187 - PgSelect199[["PgSelect[199∈15] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression198{{"PgClassExpression[198∈15] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object164 & PgClassExpression198 --> PgSelect199 - PgSelectSingle173 --> PgClassExpression174 - PgClassExpression175{{"PgClassExpression[175∈15] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle173 --> PgClassExpression175 - PgClassExpression176{{"PgClassExpression[176∈15] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle173 --> PgClassExpression176 - PgClassExpression177{{"PgClassExpression[177∈15] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle173 --> PgClassExpression177 - PgSelectSingle173 --> PgClassExpression178 - First183{{"First[183∈15] ➊"}}:::plan - PgSelectRows184[["PgSelectRows[184∈15] ➊"]]:::plan - PgSelectRows184 --> First183 - PgSelect179 --> PgSelectRows184 - PgSelectSingle185{{"PgSelectSingle[185∈15] ➊
ᐸtextᐳ"}}:::plan - First183 --> PgSelectSingle185 - PgClassExpression186{{"PgClassExpression[186∈15] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan - PgSelectSingle185 --> PgClassExpression186 - First189{{"First[189∈15] ➊"}}:::plan - PgSelectRows190[["PgSelectRows[190∈15] ➊"]]:::plan - PgSelectRows190 --> First189 - PgSelect187 --> PgSelectRows190 - PgSelectSingle191{{"PgSelectSingle[191∈15] ➊
ᐸrelational_itemsᐳ"}}:::plan - First189 --> PgSelectSingle191 - PgClassExpression192{{"PgClassExpression[192∈15] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle191 --> PgClassExpression192 - PgSelectSingle191 --> PgClassExpression198 - First201{{"First[201∈15] ➊"}}:::plan - PgSelectRows202[["PgSelectRows[202∈15] ➊"]]:::plan - PgSelectRows202 --> First201 - PgSelect199 --> PgSelectRows202 - PgSelectSingle203{{"PgSelectSingle[203∈15] ➊
ᐸpeopleᐳ"}}:::plan - First201 --> PgSelectSingle203 - PgClassExpression204{{"PgClassExpression[204∈16] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle203 --> PgClassExpression204 - PgClassExpression205{{"PgClassExpression[205∈16] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle203 --> PgClassExpression205 + PgSelectSingle135 --> PgClassExpression142 + First145{{"First[145∈3] ➊"}}:::plan + PgSelectRows146[["PgSelectRows[146∈3] ➊"]]:::plan + PgSelectRows146 --> First145 + PgSelect143 --> PgSelectRows146 + PgSelectSingle147{{"PgSelectSingle[147∈3] ➊
ᐸpeopleᐳ"}}:::plan + First145 --> PgSelectSingle147 + PgClassExpression148{{"PgClassExpression[148∈3] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle147 --> PgClassExpression148 + PgClassExpression149{{"PgClassExpression[149∈3] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle147 --> PgClassExpression149 + PgUpdateSingle155[["PgUpdateSingle[155∈4] ➊
ᐸrelational_posts(id;title,description,note)ᐳ"]]:::sideeffectplan + Object158{{"Object[158∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object158 & Constant201 & Constant106 --> PgUpdateSingle155 + Access156{{"Access[156∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access157{{"Access[157∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access156 & Access157 --> Object158 + PgSelect162[["PgSelect[162∈4] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression159{{"PgClassExpression[159∈4] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object158 & PgClassExpression159 --> PgSelect162 + PgSelect172[["PgSelect[172∈4] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression174{{"PgFromExpression[174∈4] ➊"}}:::plan + Object158 & PgFromExpression174 --> PgSelect172 + PgSelect179[["PgSelect[179∈4] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression167{{"PgClassExpression[167∈4] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object158 & PgClassExpression167 --> PgSelect179 + PgSelect191[["PgSelect[191∈4] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression190{{"PgClassExpression[190∈4] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object158 & PgClassExpression190 --> PgSelect191 + __Value2 --> Access156 + __Value2 --> Access157 + Access160{{"Access[160∈4] ➊
ᐸ155.tᐳ"}}:::plan + Access160 --> PgClassExpression159 + PgUpdateSingle155 --> Access160 + First164{{"First[164∈4] ➊"}}:::plan + PgSelectRows165[["PgSelectRows[165∈4] ➊"]]:::plan + PgSelectRows165 --> First164 + PgSelect162 --> PgSelectRows165 + PgSelectSingle166{{"PgSelectSingle[166∈4] ➊
ᐸrelational_postsᐳ"}}:::plan + First164 --> PgSelectSingle166 + PgSelectSingle166 --> PgClassExpression167 + PgClassExpression168{{"PgClassExpression[168∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle166 --> PgClassExpression168 + PgClassExpression169{{"PgClassExpression[169∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle166 --> PgClassExpression169 + PgClassExpression170{{"PgClassExpression[170∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle166 --> PgClassExpression170 + PgClassExpression171{{"PgClassExpression[171∈4] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + PgSelectSingle166 --> PgClassExpression171 + PgClassExpression171 --> PgFromExpression174 + First175{{"First[175∈4] ➊"}}:::plan + PgSelectRows176[["PgSelectRows[176∈4] ➊"]]:::plan + PgSelectRows176 --> First175 + PgSelect172 --> PgSelectRows176 + PgSelectSingle177{{"PgSelectSingle[177∈4] ➊
ᐸtextᐳ"}}:::plan + First175 --> PgSelectSingle177 + PgClassExpression178{{"PgClassExpression[178∈4] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle177 --> PgClassExpression178 + First181{{"First[181∈4] ➊"}}:::plan + PgSelectRows182[["PgSelectRows[182∈4] ➊"]]:::plan + PgSelectRows182 --> First181 + PgSelect179 --> PgSelectRows182 + PgSelectSingle183{{"PgSelectSingle[183∈4] ➊
ᐸrelational_itemsᐳ"}}:::plan + First181 --> PgSelectSingle183 + PgClassExpression184{{"PgClassExpression[184∈4] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle183 --> PgClassExpression184 + PgSelectSingle183 --> PgClassExpression190 + First193{{"First[193∈4] ➊"}}:::plan + PgSelectRows194[["PgSelectRows[194∈4] ➊"]]:::plan + PgSelectRows194 --> First193 + PgSelect191 --> PgSelectRows194 + PgSelectSingle195{{"PgSelectSingle[195∈4] ➊
ᐸpeopleᐳ"}}:::plan + First193 --> PgSelectSingle195 + PgClassExpression196{{"PgClassExpression[196∈4] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle195 --> PgClassExpression196 + PgClassExpression197{{"PgClassExpression[197∈4] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle195 --> PgClassExpression197 %% define steps subgraph "Buckets for mutations/basics/update-relational-post" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Constant206,Constant207,Constant208,Constant209,Constant210 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 14, 206, 207"):::bucket + class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Constant106,Constant198,Constant199,Constant200,Constant201 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 14, 198, 9, 199

1: PgUpdateSingle[11]
2:
ᐳ: Access[16], PgClassExpression[15]
3: PgSelect[18]
4: PgSelectRows[21]
ᐳ: 20, 22, 23, 24, 25, 26, 27, 30
5: PgSelect[28], PgSelect[35]
6: PgSelectRows[32], PgSelectRows[38]
ᐳ: 31, 33, 34, 37, 39, 40, 46
7: PgSelect[47]
8: PgSelectRows[50]
ᐳ: 49, 51, 52, 53"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUpdateSingle11 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 11, 14

ROOT PgUpdateSingle{1}ᐸrelational_posts(id;description)ᐳ[11]
1:
ᐳ: PgClassExpression[15]
2: PgSelect[17]
3: PgSelectRows[22]
ᐳ: First[21], PgSelectSingle[23]"):::bucket + class Bucket1,PgUpdateSingle11,PgClassExpression15,Access16,PgSelect18,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgSelect28,PgFromExpression30,First31,PgSelectRows32,PgSelectSingle33,PgClassExpression34,PgSelect35,First37,PgSelectRows38,PgSelectSingle39,PgClassExpression40,PgClassExpression46,PgSelect47,First49,PgSelectRows50,PgSelectSingle51,PgClassExpression52,PgClassExpression53 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 198, 9, 200, 2

1: Access[60]
2: Access[61]
3: Object[62]
4: PgUpdateSingle[59]
5:
ᐳ: Access[64], PgClassExpression[63]
6: PgSelect[66]
7: PgSelectRows[69]
ᐳ: 68, 70, 71, 72, 73, 74, 75, 78
8: PgSelect[76], PgSelect[83]
9: PgSelectRows[80], PgSelectRows[86]
ᐳ: 79, 81, 82, 85, 87, 88, 94
10: PgSelect[95]
11: PgSelectRows[98]
ᐳ: 97, 99, 100, 101"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgSelect17,First21,PgSelectRows22,PgSelectSingle23 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 23, 14

ROOT PgSelectSingle{2}ᐸrelational_postsᐳ[23]
1:
ᐳ: 24, 25, 26, 27, 28
2: PgSelect[29], PgSelect[37]
3: PgSelectRows[34], PgSelectRows[40]
ᐳ: 33, 35, 36, 39, 41, 42, 48
4: PgSelect[49]
5: PgSelectRows[52]
ᐳ: First[51], PgSelectSingle[53]"):::bucket + class Bucket2,PgUpdateSingle59,Access60,Access61,Object62,PgClassExpression63,Access64,PgSelect66,First68,PgSelectRows69,PgSelectSingle70,PgClassExpression71,PgClassExpression72,PgClassExpression73,PgClassExpression74,PgClassExpression75,PgSelect76,PgFromExpression78,First79,PgSelectRows80,PgSelectSingle81,PgClassExpression82,PgSelect83,First85,PgSelectRows86,PgSelectSingle87,PgClassExpression88,PgClassExpression94,PgSelect95,First97,PgSelectRows98,PgSelectSingle99,PgClassExpression100,PgClassExpression101 bucket2 + Bucket3("Bucket 3 (mutationField)
Deps: 198, 9, 106, 2

1: Access[108]
2: Access[109]
3: Object[110]
4: PgUpdateSingle[107]
5:
ᐳ: Access[112], PgClassExpression[111]
6: PgSelect[114]
7: PgSelectRows[117]
ᐳ: 116, 118, 119, 120, 121, 122, 123, 126
8: PgSelect[124], PgSelect[131]
9: PgSelectRows[128], PgSelectRows[134]
ᐳ: 127, 129, 130, 133, 135, 136, 142
10: PgSelect[143]
11: PgSelectRows[146]
ᐳ: 145, 147, 148, 149"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,PgSelect37,First39,PgSelectRows40,PgSelectSingle41,PgClassExpression42,PgClassExpression48,PgSelect49,First51,PgSelectRows52,PgSelectSingle53 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 53

ROOT PgSelectSingle{3}ᐸpeopleᐳ[53]"):::bucket + class Bucket3,PgUpdateSingle107,Access108,Access109,Object110,PgClassExpression111,Access112,PgSelect114,First116,PgSelectRows117,PgSelectSingle118,PgClassExpression119,PgClassExpression120,PgClassExpression121,PgClassExpression122,PgClassExpression123,PgSelect124,PgFromExpression126,First127,PgSelectRows128,PgSelectSingle129,PgClassExpression130,PgSelect131,First133,PgSelectRows134,PgSelectSingle135,PgClassExpression136,PgClassExpression142,PgSelect143,First145,PgSelectRows146,PgSelectSingle147,PgClassExpression148,PgClassExpression149 bucket3 + Bucket4("Bucket 4 (mutationField)
Deps: 201, 9, 106, 2

1: Access[156]
2: Access[157]
3: Object[158]
4: PgUpdateSingle[155]
5:
ᐳ: Access[160], PgClassExpression[159]
6: PgSelect[162]
7: PgSelectRows[165]
ᐳ: 164, 166, 167, 168, 169, 170, 171, 174
8: PgSelect[172], PgSelect[179]
9: PgSelectRows[176], PgSelectRows[182]
ᐳ: 175, 177, 178, 181, 183, 184, 190
10: PgSelect[191]
11: PgSelectRows[194]
ᐳ: 193, 195, 196, 197"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression54,PgClassExpression55 bucket4 - Bucket5("Bucket 5 (mutationField)
Deps: 206, 208, 2

1: Access[62]
2: Access[63]
3: Object[64]
4: PgUpdateSingle[61]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgUpdateSingle61,Access62,Access63,Object64 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 61, 64

ROOT PgUpdateSingle{5}ᐸrelational_posts(id;note)ᐳ[61]
1:
ᐳ: PgClassExpression[65]
2: PgSelect[67]
3: PgSelectRows[72]
ᐳ: First[71], PgSelectSingle[73]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression65,PgSelect67,First71,PgSelectRows72,PgSelectSingle73 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 73, 64

ROOT PgSelectSingle{6}ᐸrelational_postsᐳ[73]
1:
ᐳ: 74, 75, 76, 77, 78
2: PgSelect[79], PgSelect[87]
3: PgSelectRows[84], PgSelectRows[90]
ᐳ: 83, 85, 86, 89, 91, 92, 98
4: PgSelect[99]
5: PgSelectRows[102]
ᐳ: First[101], PgSelectSingle[103]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression74,PgClassExpression75,PgClassExpression76,PgClassExpression77,PgClassExpression78,PgSelect79,First83,PgSelectRows84,PgSelectSingle85,PgClassExpression86,PgSelect87,First89,PgSelectRows90,PgSelectSingle91,PgClassExpression92,PgClassExpression98,PgSelect99,First101,PgSelectRows102,PgSelectSingle103 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 103

ROOT PgSelectSingle{7}ᐸpeopleᐳ[103]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression104,PgClassExpression105 bucket8 - Bucket9("Bucket 9 (mutationField)
Deps: 206, 209, 2

1: Access[112]
2: Access[113]
3: Object[114]
4: PgUpdateSingle[111]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgUpdateSingle111,Access112,Access113,Object114 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 111, 114

ROOT PgUpdateSingle{9}ᐸrelational_posts(id;description)ᐳ[111]
1:
ᐳ: PgClassExpression[115]
2: PgSelect[117]
3: PgSelectRows[122]
ᐳ: First[121], PgSelectSingle[123]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression115,PgSelect117,First121,PgSelectRows122,PgSelectSingle123 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 123, 114

ROOT PgSelectSingle{10}ᐸrelational_postsᐳ[123]
1:
ᐳ: 124, 125, 126, 127, 128
2: PgSelect[129], PgSelect[137]
3: PgSelectRows[134], PgSelectRows[140]
ᐳ: 133, 135, 136, 139, 141, 142, 148
4: PgSelect[149]
5: PgSelectRows[152]
ᐳ: First[151], PgSelectSingle[153]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression124,PgClassExpression125,PgClassExpression126,PgClassExpression127,PgClassExpression128,PgSelect129,First133,PgSelectRows134,PgSelectSingle135,PgClassExpression136,PgSelect137,First139,PgSelectRows140,PgSelectSingle141,PgClassExpression142,PgClassExpression148,PgSelect149,First151,PgSelectRows152,PgSelectSingle153 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 153

ROOT PgSelectSingle{11}ᐸpeopleᐳ[153]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgClassExpression154,PgClassExpression155 bucket12 - Bucket13("Bucket 13 (mutationField)
Deps: 210, 209, 2

1: Access[162]
2: Access[163]
3: Object[164]
4: PgUpdateSingle[161]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,PgUpdateSingle161,Access162,Access163,Object164 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 161, 164

ROOT PgUpdateSingle{13}ᐸrelational_posts(id;description)ᐳ[161]
1:
ᐳ: PgClassExpression[165]
2: PgSelect[167]
3: PgSelectRows[172]
ᐳ: First[171], PgSelectSingle[173]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,PgClassExpression165,PgSelect167,First171,PgSelectRows172,PgSelectSingle173 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 173, 164

ROOT PgSelectSingle{14}ᐸrelational_postsᐳ[173]
1:
ᐳ: 174, 175, 176, 177, 178
2: PgSelect[179], PgSelect[187]
3: PgSelectRows[184], PgSelectRows[190]
ᐳ: 183, 185, 186, 189, 191, 192, 198
4: PgSelect[199]
5: PgSelectRows[202]
ᐳ: First[201], PgSelectSingle[203]"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15,PgClassExpression174,PgClassExpression175,PgClassExpression176,PgClassExpression177,PgClassExpression178,PgSelect179,First183,PgSelectRows184,PgSelectSingle185,PgClassExpression186,PgSelect187,First189,PgSelectRows190,PgSelectSingle191,PgClassExpression192,PgClassExpression198,PgSelect199,First201,PgSelectRows202,PgSelectSingle203 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 203

ROOT PgSelectSingle{15}ᐸpeopleᐳ[203]"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16,PgClassExpression204,PgClassExpression205 bucket16 - Bucket0 --> Bucket1 & Bucket5 & Bucket9 & Bucket13 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 - Bucket9 --> Bucket10 - Bucket10 --> Bucket11 - Bucket11 --> Bucket12 - Bucket13 --> Bucket14 - Bucket14 --> Bucket15 - Bucket15 --> Bucket16 + class Bucket4,PgUpdateSingle155,Access156,Access157,Object158,PgClassExpression159,Access160,PgSelect162,First164,PgSelectRows165,PgSelectSingle166,PgClassExpression167,PgClassExpression168,PgClassExpression169,PgClassExpression170,PgClassExpression171,PgSelect172,PgFromExpression174,First175,PgSelectRows176,PgSelectSingle177,PgClassExpression178,PgSelect179,First181,PgSelectRows182,PgSelectSingle183,PgClassExpression184,PgClassExpression190,PgSelect191,First193,PgSelectRows194,PgSelectSingle195,PgClassExpression196,PgClassExpression197 bucket4 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/mutations/basics/update-relational-post.mermaid b/grafast/dataplan-pg/__tests__/mutations/basics/update-relational-post.mermaid index c386516b67..d590205d09 100644 --- a/grafast/dataplan-pg/__tests__/mutations/basics/update-relational-post.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/basics/update-relational-post.mermaid @@ -17,319 +17,287 @@ graph TD __Value2 --> Access12 __Value2 --> Access13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant206{{"Constant[206∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant207{{"Constant[207∈0] ➊
ᐸ'A description'ᐳ"}}:::plan - Constant208{{"Constant[208∈0] ➊
ᐸ'A note'ᐳ"}}:::plan - Constant209{{"Constant[209∈0] ➊
ᐸnullᐳ"}}:::plan - Constant210{{"Constant[210∈0] ➊
ᐸ3141592ᐳ"}}:::plan - PgUpdateSingle11[["PgUpdateSingle[11∈1] ➊
ᐸrelational_posts(id;description)ᐳ"]]:::sideeffectplan - Object14 & Constant206 & Constant207 --> PgUpdateSingle11 - PgSelect17[["PgSelect[17∈2] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression15{{"PgClassExpression[15∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object14 & PgClassExpression15 --> PgSelect17 - PgUpdateSingle11 --> PgClassExpression15 - First21{{"First[21∈2] ➊"}}:::plan - PgSelectRows22[["PgSelectRows[22∈2] ➊"]]:::plan - PgSelectRows22 --> First21 - PgSelect17 --> PgSelectRows22 - PgSelectSingle23{{"PgSelectSingle[23∈2] ➊
ᐸrelational_postsᐳ"}}:::plan - First21 --> PgSelectSingle23 - PgSelect29[["PgSelect[29∈3] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈3] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object14 & PgClassExpression28 --> PgSelect29 - PgSelect37[["PgSelect[37∈3] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object14 & PgClassExpression24 --> PgSelect37 - PgSelect49[["PgSelect[49∈3] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression48{{"PgClassExpression[48∈3] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object14 & PgClassExpression48 --> PgSelect49 - PgSelectSingle23 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression26 - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression27 - PgSelectSingle23 --> PgClassExpression28 - First33{{"First[33∈3] ➊"}}:::plan - PgSelectRows34[["PgSelectRows[34∈3] ➊"]]:::plan - PgSelectRows34 --> First33 - PgSelect29 --> PgSelectRows34 - PgSelectSingle35{{"PgSelectSingle[35∈3] ➊
ᐸtextᐳ"}}:::plan - First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈3] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression36 - First39{{"First[39∈3] ➊"}}:::plan - PgSelectRows40[["PgSelectRows[40∈3] ➊"]]:::plan - PgSelectRows40 --> First39 - PgSelect37 --> PgSelectRows40 - PgSelectSingle41{{"PgSelectSingle[41∈3] ➊
ᐸrelational_itemsᐳ"}}:::plan - First39 --> PgSelectSingle41 - PgClassExpression42{{"PgClassExpression[42∈3] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle41 --> PgClassExpression42 - PgSelectSingle41 --> PgClassExpression48 - First51{{"First[51∈3] ➊"}}:::plan - PgSelectRows52[["PgSelectRows[52∈3] ➊"]]:::plan - PgSelectRows52 --> First51 - PgSelect49 --> PgSelectRows52 - PgSelectSingle53{{"PgSelectSingle[53∈3] ➊
ᐸpeopleᐳ"}}:::plan - First51 --> PgSelectSingle53 - PgClassExpression54{{"PgClassExpression[54∈4] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression54 - PgClassExpression55{{"PgClassExpression[55∈4] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression55 - PgUpdateSingle61[["PgUpdateSingle[61∈5] ➊
ᐸrelational_posts(id;note)ᐳ"]]:::sideeffectplan - Object64{{"Object[64∈5] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object64 & Constant206 & Constant208 --> PgUpdateSingle61 - Access62{{"Access[62∈5] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access63{{"Access[63∈5] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access62 & Access63 --> Object64 - __Value2 --> Access62 - __Value2 --> Access63 - PgSelect67[["PgSelect[67∈6] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression65{{"PgClassExpression[65∈6] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object64 & PgClassExpression65 --> PgSelect67 - PgUpdateSingle61 --> PgClassExpression65 - First71{{"First[71∈6] ➊"}}:::plan - PgSelectRows72[["PgSelectRows[72∈6] ➊"]]:::plan - PgSelectRows72 --> First71 - PgSelect67 --> PgSelectRows72 - PgSelectSingle73{{"PgSelectSingle[73∈6] ➊
ᐸrelational_postsᐳ"}}:::plan - First71 --> PgSelectSingle73 - PgSelect79[["PgSelect[79∈7] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression78{{"PgClassExpression[78∈7] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object64 & PgClassExpression78 --> PgSelect79 - PgSelect87[["PgSelect[87∈7] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression74{{"PgClassExpression[74∈7] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object64 & PgClassExpression74 --> PgSelect87 - PgSelect99[["PgSelect[99∈7] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression98{{"PgClassExpression[98∈7] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object64 & PgClassExpression98 --> PgSelect99 - PgSelectSingle73 --> PgClassExpression74 - PgClassExpression75{{"PgClassExpression[75∈7] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle73 --> PgClassExpression75 - PgClassExpression76{{"PgClassExpression[76∈7] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle73 --> PgClassExpression76 - PgClassExpression77{{"PgClassExpression[77∈7] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle73 --> PgClassExpression77 - PgSelectSingle73 --> PgClassExpression78 - First83{{"First[83∈7] ➊"}}:::plan - PgSelectRows84[["PgSelectRows[84∈7] ➊"]]:::plan - PgSelectRows84 --> First83 - PgSelect79 --> PgSelectRows84 - PgSelectSingle85{{"PgSelectSingle[85∈7] ➊
ᐸtextᐳ"}}:::plan - First83 --> PgSelectSingle85 - PgClassExpression86{{"PgClassExpression[86∈7] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan - PgSelectSingle85 --> PgClassExpression86 - First89{{"First[89∈7] ➊"}}:::plan - PgSelectRows90[["PgSelectRows[90∈7] ➊"]]:::plan - PgSelectRows90 --> First89 - PgSelect87 --> PgSelectRows90 - PgSelectSingle91{{"PgSelectSingle[91∈7] ➊
ᐸrelational_itemsᐳ"}}:::plan - First89 --> PgSelectSingle91 - PgClassExpression92{{"PgClassExpression[92∈7] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle91 --> PgClassExpression92 - PgSelectSingle91 --> PgClassExpression98 - First101{{"First[101∈7] ➊"}}:::plan - PgSelectRows102[["PgSelectRows[102∈7] ➊"]]:::plan - PgSelectRows102 --> First101 - PgSelect99 --> PgSelectRows102 - PgSelectSingle103{{"PgSelectSingle[103∈7] ➊
ᐸpeopleᐳ"}}:::plan - First101 --> PgSelectSingle103 - PgClassExpression104{{"PgClassExpression[104∈8] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle103 --> PgClassExpression104 - PgClassExpression105{{"PgClassExpression[105∈8] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle103 --> PgClassExpression105 - PgUpdateSingle111[["PgUpdateSingle[111∈9] ➊
ᐸrelational_posts(id;description)ᐳ"]]:::sideeffectplan - Object114{{"Object[114∈9] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object114 & Constant206 & Constant209 --> PgUpdateSingle111 - Access112{{"Access[112∈9] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access113{{"Access[113∈9] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access112 & Access113 --> Object114 - __Value2 --> Access112 - __Value2 --> Access113 - PgSelect117[["PgSelect[117∈10] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression115{{"PgClassExpression[115∈10] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object114 & PgClassExpression115 --> PgSelect117 - PgUpdateSingle111 --> PgClassExpression115 - First121{{"First[121∈10] ➊"}}:::plan - PgSelectRows122[["PgSelectRows[122∈10] ➊"]]:::plan - PgSelectRows122 --> First121 - PgSelect117 --> PgSelectRows122 - PgSelectSingle123{{"PgSelectSingle[123∈10] ➊
ᐸrelational_postsᐳ"}}:::plan - First121 --> PgSelectSingle123 - PgSelect129[["PgSelect[129∈11] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression128{{"PgClassExpression[128∈11] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object114 & PgClassExpression128 --> PgSelect129 - PgSelect137[["PgSelect[137∈11] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression124{{"PgClassExpression[124∈11] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object114 & PgClassExpression124 --> PgSelect137 - PgSelect149[["PgSelect[149∈11] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression148{{"PgClassExpression[148∈11] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object114 & PgClassExpression148 --> PgSelect149 - PgSelectSingle123 --> PgClassExpression124 - PgClassExpression125{{"PgClassExpression[125∈11] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle123 --> PgClassExpression125 - PgClassExpression126{{"PgClassExpression[126∈11] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle123 --> PgClassExpression126 - PgClassExpression127{{"PgClassExpression[127∈11] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle123 --> PgClassExpression127 - PgSelectSingle123 --> PgClassExpression128 - First133{{"First[133∈11] ➊"}}:::plan - PgSelectRows134[["PgSelectRows[134∈11] ➊"]]:::plan + Constant106{{"Constant[106∈0] ➊
ᐸnullᐳ"}}:::plan + Constant198{{"Constant[198∈0] ➊
ᐸ4ᐳ"}}:::plan + Constant199{{"Constant[199∈0] ➊
ᐸ'A description'ᐳ"}}:::plan + Constant200{{"Constant[200∈0] ➊
ᐸ'A note'ᐳ"}}:::plan + Constant201{{"Constant[201∈0] ➊
ᐸ3141592ᐳ"}}:::plan + PgUpdateSingle11[["PgUpdateSingle[11∈1] ➊
ᐸrelational_posts(id;title,description,note)ᐳ"]]:::sideeffectplan + Object14 & Constant198 & Constant199 --> PgUpdateSingle11 + PgSelect18[["PgSelect[18∈1] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object14 & PgClassExpression15 --> PgSelect18 + PgSelect28[["PgSelect[28∈1] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression30{{"PgFromExpression[30∈1] ➊"}}:::plan + Object14 & PgFromExpression30 --> PgSelect28 + PgSelect35[["PgSelect[35∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object14 & PgClassExpression23 --> PgSelect35 + PgSelect47[["PgSelect[47∈1] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression46{{"PgClassExpression[46∈1] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object14 & PgClassExpression46 --> PgSelect47 + Access16{{"Access[16∈1] ➊
ᐸ11.tᐳ"}}:::plan + Access16 --> PgClassExpression15 + PgUpdateSingle11 --> Access16 + First20{{"First[20∈1] ➊"}}:::plan + PgSelectRows21[["PgSelectRows[21∈1] ➊"]]:::plan + PgSelectRows21 --> First20 + PgSelect18 --> PgSelectRows21 + PgSelectSingle22{{"PgSelectSingle[22∈1] ➊
ᐸrelational_postsᐳ"}}:::plan + First20 --> PgSelectSingle22 + PgSelectSingle22 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression25 + PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression26 + PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression27 + PgClassExpression27 --> PgFromExpression30 + First31{{"First[31∈1] ➊"}}:::plan + PgSelectRows32[["PgSelectRows[32∈1] ➊"]]:::plan + PgSelectRows32 --> First31 + PgSelect28 --> PgSelectRows32 + PgSelectSingle33{{"PgSelectSingle[33∈1] ➊
ᐸtextᐳ"}}:::plan + First31 --> PgSelectSingle33 + PgClassExpression34{{"PgClassExpression[34∈1] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression34 + First37{{"First[37∈1] ➊"}}:::plan + PgSelectRows38[["PgSelectRows[38∈1] ➊"]]:::plan + PgSelectRows38 --> First37 + PgSelect35 --> PgSelectRows38 + PgSelectSingle39{{"PgSelectSingle[39∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + First37 --> PgSelectSingle39 + PgClassExpression40{{"PgClassExpression[40∈1] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression40 + PgSelectSingle39 --> PgClassExpression46 + First49{{"First[49∈1] ➊"}}:::plan + PgSelectRows50[["PgSelectRows[50∈1] ➊"]]:::plan + PgSelectRows50 --> First49 + PgSelect47 --> PgSelectRows50 + PgSelectSingle51{{"PgSelectSingle[51∈1] ➊
ᐸpeopleᐳ"}}:::plan + First49 --> PgSelectSingle51 + PgClassExpression52{{"PgClassExpression[52∈1] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression52 + PgClassExpression53{{"PgClassExpression[53∈1] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression53 + PgUpdateSingle59[["PgUpdateSingle[59∈2] ➊
ᐸrelational_posts(id;title,description,note)ᐳ"]]:::sideeffectplan + Object62{{"Object[62∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object62 & Constant198 & Constant200 --> PgUpdateSingle59 + Access60{{"Access[60∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access61{{"Access[61∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access60 & Access61 --> Object62 + PgSelect66[["PgSelect[66∈2] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression63{{"PgClassExpression[63∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object62 & PgClassExpression63 --> PgSelect66 + PgSelect76[["PgSelect[76∈2] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression78{{"PgFromExpression[78∈2] ➊"}}:::plan + Object62 & PgFromExpression78 --> PgSelect76 + PgSelect83[["PgSelect[83∈2] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression71{{"PgClassExpression[71∈2] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object62 & PgClassExpression71 --> PgSelect83 + PgSelect95[["PgSelect[95∈2] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression94{{"PgClassExpression[94∈2] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object62 & PgClassExpression94 --> PgSelect95 + __Value2 --> Access60 + __Value2 --> Access61 + Access64{{"Access[64∈2] ➊
ᐸ59.tᐳ"}}:::plan + Access64 --> PgClassExpression63 + PgUpdateSingle59 --> Access64 + First68{{"First[68∈2] ➊"}}:::plan + PgSelectRows69[["PgSelectRows[69∈2] ➊"]]:::plan + PgSelectRows69 --> First68 + PgSelect66 --> PgSelectRows69 + PgSelectSingle70{{"PgSelectSingle[70∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + First68 --> PgSelectSingle70 + PgSelectSingle70 --> PgClassExpression71 + PgClassExpression72{{"PgClassExpression[72∈2] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle70 --> PgClassExpression72 + PgClassExpression73{{"PgClassExpression[73∈2] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle70 --> PgClassExpression73 + PgClassExpression74{{"PgClassExpression[74∈2] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle70 --> PgClassExpression74 + PgClassExpression75{{"PgClassExpression[75∈2] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + PgSelectSingle70 --> PgClassExpression75 + PgClassExpression75 --> PgFromExpression78 + First79{{"First[79∈2] ➊"}}:::plan + PgSelectRows80[["PgSelectRows[80∈2] ➊"]]:::plan + PgSelectRows80 --> First79 + PgSelect76 --> PgSelectRows80 + PgSelectSingle81{{"PgSelectSingle[81∈2] ➊
ᐸtextᐳ"}}:::plan + First79 --> PgSelectSingle81 + PgClassExpression82{{"PgClassExpression[82∈2] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle81 --> PgClassExpression82 + First85{{"First[85∈2] ➊"}}:::plan + PgSelectRows86[["PgSelectRows[86∈2] ➊"]]:::plan + PgSelectRows86 --> First85 + PgSelect83 --> PgSelectRows86 + PgSelectSingle87{{"PgSelectSingle[87∈2] ➊
ᐸrelational_itemsᐳ"}}:::plan + First85 --> PgSelectSingle87 + PgClassExpression88{{"PgClassExpression[88∈2] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle87 --> PgClassExpression88 + PgSelectSingle87 --> PgClassExpression94 + First97{{"First[97∈2] ➊"}}:::plan + PgSelectRows98[["PgSelectRows[98∈2] ➊"]]:::plan + PgSelectRows98 --> First97 + PgSelect95 --> PgSelectRows98 + PgSelectSingle99{{"PgSelectSingle[99∈2] ➊
ᐸpeopleᐳ"}}:::plan + First97 --> PgSelectSingle99 + PgClassExpression100{{"PgClassExpression[100∈2] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle99 --> PgClassExpression100 + PgClassExpression101{{"PgClassExpression[101∈2] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle99 --> PgClassExpression101 + PgUpdateSingle107[["PgUpdateSingle[107∈3] ➊
ᐸrelational_posts(id;title,description,note)ᐳ"]]:::sideeffectplan + Object110{{"Object[110∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object110 & Constant198 & Constant106 --> PgUpdateSingle107 + Access108{{"Access[108∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access109{{"Access[109∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access108 & Access109 --> Object110 + PgSelect114[["PgSelect[114∈3] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression111{{"PgClassExpression[111∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object110 & PgClassExpression111 --> PgSelect114 + PgSelect124[["PgSelect[124∈3] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression126{{"PgFromExpression[126∈3] ➊"}}:::plan + Object110 & PgFromExpression126 --> PgSelect124 + PgSelect131[["PgSelect[131∈3] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression119{{"PgClassExpression[119∈3] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object110 & PgClassExpression119 --> PgSelect131 + PgSelect143[["PgSelect[143∈3] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression142{{"PgClassExpression[142∈3] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object110 & PgClassExpression142 --> PgSelect143 + __Value2 --> Access108 + __Value2 --> Access109 + Access112{{"Access[112∈3] ➊
ᐸ107.tᐳ"}}:::plan + Access112 --> PgClassExpression111 + PgUpdateSingle107 --> Access112 + First116{{"First[116∈3] ➊"}}:::plan + PgSelectRows117[["PgSelectRows[117∈3] ➊"]]:::plan + PgSelectRows117 --> First116 + PgSelect114 --> PgSelectRows117 + PgSelectSingle118{{"PgSelectSingle[118∈3] ➊
ᐸrelational_postsᐳ"}}:::plan + First116 --> PgSelectSingle118 + PgSelectSingle118 --> PgClassExpression119 + PgClassExpression120{{"PgClassExpression[120∈3] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle118 --> PgClassExpression120 + PgClassExpression121{{"PgClassExpression[121∈3] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle118 --> PgClassExpression121 + PgClassExpression122{{"PgClassExpression[122∈3] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle118 --> PgClassExpression122 + PgClassExpression123{{"PgClassExpression[123∈3] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + PgSelectSingle118 --> PgClassExpression123 + PgClassExpression123 --> PgFromExpression126 + First127{{"First[127∈3] ➊"}}:::plan + PgSelectRows128[["PgSelectRows[128∈3] ➊"]]:::plan + PgSelectRows128 --> First127 + PgSelect124 --> PgSelectRows128 + PgSelectSingle129{{"PgSelectSingle[129∈3] ➊
ᐸtextᐳ"}}:::plan + First127 --> PgSelectSingle129 + PgClassExpression130{{"PgClassExpression[130∈3] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle129 --> PgClassExpression130 + First133{{"First[133∈3] ➊"}}:::plan + PgSelectRows134[["PgSelectRows[134∈3] ➊"]]:::plan PgSelectRows134 --> First133 - PgSelect129 --> PgSelectRows134 - PgSelectSingle135{{"PgSelectSingle[135∈11] ➊
ᐸtextᐳ"}}:::plan + PgSelect131 --> PgSelectRows134 + PgSelectSingle135{{"PgSelectSingle[135∈3] ➊
ᐸrelational_itemsᐳ"}}:::plan First133 --> PgSelectSingle135 - PgClassExpression136{{"PgClassExpression[136∈11] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgClassExpression136{{"PgClassExpression[136∈3] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle135 --> PgClassExpression136 - First139{{"First[139∈11] ➊"}}:::plan - PgSelectRows140[["PgSelectRows[140∈11] ➊"]]:::plan - PgSelectRows140 --> First139 - PgSelect137 --> PgSelectRows140 - PgSelectSingle141{{"PgSelectSingle[141∈11] ➊
ᐸrelational_itemsᐳ"}}:::plan - First139 --> PgSelectSingle141 - PgClassExpression142{{"PgClassExpression[142∈11] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle141 --> PgClassExpression142 - PgSelectSingle141 --> PgClassExpression148 - First151{{"First[151∈11] ➊"}}:::plan - PgSelectRows152[["PgSelectRows[152∈11] ➊"]]:::plan - PgSelectRows152 --> First151 - PgSelect149 --> PgSelectRows152 - PgSelectSingle153{{"PgSelectSingle[153∈11] ➊
ᐸpeopleᐳ"}}:::plan - First151 --> PgSelectSingle153 - PgClassExpression154{{"PgClassExpression[154∈12] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle153 --> PgClassExpression154 - PgClassExpression155{{"PgClassExpression[155∈12] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle153 --> PgClassExpression155 - PgUpdateSingle161[["PgUpdateSingle[161∈13] ➊
ᐸrelational_posts(id;description)ᐳ"]]:::sideeffectplan - Object164{{"Object[164∈13] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object164 & Constant210 & Constant209 --> PgUpdateSingle161 - Access162{{"Access[162∈13] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access163{{"Access[163∈13] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access162 & Access163 --> Object164 - __Value2 --> Access162 - __Value2 --> Access163 - PgSelect167[["PgSelect[167∈14] ➊
ᐸrelational_postsᐳ"]]:::plan - PgClassExpression165{{"PgClassExpression[165∈14] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object164 & PgClassExpression165 --> PgSelect167 - PgUpdateSingle161 --> PgClassExpression165 - First171{{"First[171∈14] ➊"}}:::plan - PgSelectRows172[["PgSelectRows[172∈14] ➊"]]:::plan - PgSelectRows172 --> First171 - PgSelect167 --> PgSelectRows172 - PgSelectSingle173{{"PgSelectSingle[173∈14] ➊
ᐸrelational_postsᐳ"}}:::plan - First171 --> PgSelectSingle173 - PgSelect179[["PgSelect[179∈15] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan - PgClassExpression178{{"PgClassExpression[178∈15] ➊
ᐸ__relational_posts__ᐳ"}}:::plan - Object164 & PgClassExpression178 --> PgSelect179 - PgSelect187[["PgSelect[187∈15] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression174{{"PgClassExpression[174∈15] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan - Object164 & PgClassExpression174 --> PgSelect187 - PgSelect199[["PgSelect[199∈15] ➊
ᐸpeopleᐳ"]]:::plan - PgClassExpression198{{"PgClassExpression[198∈15] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan - Object164 & PgClassExpression198 --> PgSelect199 - PgSelectSingle173 --> PgClassExpression174 - PgClassExpression175{{"PgClassExpression[175∈15] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle173 --> PgClassExpression175 - PgClassExpression176{{"PgClassExpression[176∈15] ➊
ᐸ__relation...scription”ᐳ"}}:::plan - PgSelectSingle173 --> PgClassExpression176 - PgClassExpression177{{"PgClassExpression[177∈15] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle173 --> PgClassExpression177 - PgSelectSingle173 --> PgClassExpression178 - First183{{"First[183∈15] ➊"}}:::plan - PgSelectRows184[["PgSelectRows[184∈15] ➊"]]:::plan - PgSelectRows184 --> First183 - PgSelect179 --> PgSelectRows184 - PgSelectSingle185{{"PgSelectSingle[185∈15] ➊
ᐸtextᐳ"}}:::plan - First183 --> PgSelectSingle185 - PgClassExpression186{{"PgClassExpression[186∈15] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan - PgSelectSingle185 --> PgClassExpression186 - First189{{"First[189∈15] ➊"}}:::plan - PgSelectRows190[["PgSelectRows[190∈15] ➊"]]:::plan - PgSelectRows190 --> First189 - PgSelect187 --> PgSelectRows190 - PgSelectSingle191{{"PgSelectSingle[191∈15] ➊
ᐸrelational_itemsᐳ"}}:::plan - First189 --> PgSelectSingle191 - PgClassExpression192{{"PgClassExpression[192∈15] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle191 --> PgClassExpression192 - PgSelectSingle191 --> PgClassExpression198 - First201{{"First[201∈15] ➊"}}:::plan - PgSelectRows202[["PgSelectRows[202∈15] ➊"]]:::plan - PgSelectRows202 --> First201 - PgSelect199 --> PgSelectRows202 - PgSelectSingle203{{"PgSelectSingle[203∈15] ➊
ᐸpeopleᐳ"}}:::plan - First201 --> PgSelectSingle203 - PgClassExpression204{{"PgClassExpression[204∈16] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle203 --> PgClassExpression204 - PgClassExpression205{{"PgClassExpression[205∈16] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle203 --> PgClassExpression205 + PgSelectSingle135 --> PgClassExpression142 + First145{{"First[145∈3] ➊"}}:::plan + PgSelectRows146[["PgSelectRows[146∈3] ➊"]]:::plan + PgSelectRows146 --> First145 + PgSelect143 --> PgSelectRows146 + PgSelectSingle147{{"PgSelectSingle[147∈3] ➊
ᐸpeopleᐳ"}}:::plan + First145 --> PgSelectSingle147 + PgClassExpression148{{"PgClassExpression[148∈3] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle147 --> PgClassExpression148 + PgClassExpression149{{"PgClassExpression[149∈3] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle147 --> PgClassExpression149 + PgUpdateSingle155[["PgUpdateSingle[155∈4] ➊
ᐸrelational_posts(id;title,description,note)ᐳ"]]:::sideeffectplan + Object158{{"Object[158∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object158 & Constant201 & Constant106 --> PgUpdateSingle155 + Access156{{"Access[156∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access157{{"Access[157∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access156 & Access157 --> Object158 + PgSelect162[["PgSelect[162∈4] ➊
ᐸrelational_postsᐳ"]]:::plan + PgClassExpression159{{"PgClassExpression[159∈4] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object158 & PgClassExpression159 --> PgSelect162 + PgSelect172[["PgSelect[172∈4] ➊
ᐸrelational_posts_title_lowerᐳ"]]:::plan + PgFromExpression174{{"PgFromExpression[174∈4] ➊"}}:::plan + Object158 & PgFromExpression174 --> PgSelect172 + PgSelect179[["PgSelect[179∈4] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression167{{"PgClassExpression[167∈4] ➊
ᐸ__relation...sts__.”id”ᐳ"}}:::plan + Object158 & PgClassExpression167 --> PgSelect179 + PgSelect191[["PgSelect[191∈4] ➊
ᐸpeopleᐳ"]]:::plan + PgClassExpression190{{"PgClassExpression[190∈4] ➊
ᐸ__relation...author_id”ᐳ"}}:::plan + Object158 & PgClassExpression190 --> PgSelect191 + __Value2 --> Access156 + __Value2 --> Access157 + Access160{{"Access[160∈4] ➊
ᐸ155.tᐳ"}}:::plan + Access160 --> PgClassExpression159 + PgUpdateSingle155 --> Access160 + First164{{"First[164∈4] ➊"}}:::plan + PgSelectRows165[["PgSelectRows[165∈4] ➊"]]:::plan + PgSelectRows165 --> First164 + PgSelect162 --> PgSelectRows165 + PgSelectSingle166{{"PgSelectSingle[166∈4] ➊
ᐸrelational_postsᐳ"}}:::plan + First164 --> PgSelectSingle166 + PgSelectSingle166 --> PgClassExpression167 + PgClassExpression168{{"PgClassExpression[168∈4] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle166 --> PgClassExpression168 + PgClassExpression169{{"PgClassExpression[169∈4] ➊
ᐸ__relation...scription”ᐳ"}}:::plan + PgSelectSingle166 --> PgClassExpression169 + PgClassExpression170{{"PgClassExpression[170∈4] ➊
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle166 --> PgClassExpression170 + PgClassExpression171{{"PgClassExpression[171∈4] ➊
ᐸ__relational_posts__ᐳ"}}:::plan + PgSelectSingle166 --> PgClassExpression171 + PgClassExpression171 --> PgFromExpression174 + First175{{"First[175∈4] ➊"}}:::plan + PgSelectRows176[["PgSelectRows[176∈4] ➊"]]:::plan + PgSelectRows176 --> First175 + PgSelect172 --> PgSelectRows176 + PgSelectSingle177{{"PgSelectSingle[177∈4] ➊
ᐸtextᐳ"}}:::plan + First175 --> PgSelectSingle177 + PgClassExpression178{{"PgClassExpression[178∈4] ➊
ᐸ__relation..._lower__.vᐳ"}}:::plan + PgSelectSingle177 --> PgClassExpression178 + First181{{"First[181∈4] ➊"}}:::plan + PgSelectRows182[["PgSelectRows[182∈4] ➊"]]:::plan + PgSelectRows182 --> First181 + PgSelect179 --> PgSelectRows182 + PgSelectSingle183{{"PgSelectSingle[183∈4] ➊
ᐸrelational_itemsᐳ"}}:::plan + First181 --> PgSelectSingle183 + PgClassExpression184{{"PgClassExpression[184∈4] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle183 --> PgClassExpression184 + PgSelectSingle183 --> PgClassExpression190 + First193{{"First[193∈4] ➊"}}:::plan + PgSelectRows194[["PgSelectRows[194∈4] ➊"]]:::plan + PgSelectRows194 --> First193 + PgSelect191 --> PgSelectRows194 + PgSelectSingle195{{"PgSelectSingle[195∈4] ➊
ᐸpeopleᐳ"}}:::plan + First193 --> PgSelectSingle195 + PgClassExpression196{{"PgClassExpression[196∈4] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle195 --> PgClassExpression196 + PgClassExpression197{{"PgClassExpression[197∈4] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle195 --> PgClassExpression197 %% define steps subgraph "Buckets for mutations/basics/update-relational-post" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Constant206,Constant207,Constant208,Constant209,Constant210 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 14, 206, 207"):::bucket + class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Constant106,Constant198,Constant199,Constant200,Constant201 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 14, 198, 9, 199

1: PgUpdateSingle[11]
2:
ᐳ: Access[16], PgClassExpression[15]
3: PgSelect[18]
4: PgSelectRows[21]
ᐳ: 20, 22, 23, 24, 25, 26, 27, 30
5: PgSelect[28], PgSelect[35]
6: PgSelectRows[32], PgSelectRows[38]
ᐳ: 31, 33, 34, 37, 39, 40, 46
7: PgSelect[47]
8: PgSelectRows[50]
ᐳ: 49, 51, 52, 53"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUpdateSingle11 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 11, 14

ROOT PgUpdateSingle{1}ᐸrelational_posts(id;description)ᐳ[11]
1:
ᐳ: PgClassExpression[15]
2: PgSelect[17]
3: PgSelectRows[22]
ᐳ: First[21], PgSelectSingle[23]"):::bucket + class Bucket1,PgUpdateSingle11,PgClassExpression15,Access16,PgSelect18,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgSelect28,PgFromExpression30,First31,PgSelectRows32,PgSelectSingle33,PgClassExpression34,PgSelect35,First37,PgSelectRows38,PgSelectSingle39,PgClassExpression40,PgClassExpression46,PgSelect47,First49,PgSelectRows50,PgSelectSingle51,PgClassExpression52,PgClassExpression53 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 198, 9, 200, 2

1: Access[60]
2: Access[61]
3: Object[62]
4: PgUpdateSingle[59]
5:
ᐳ: Access[64], PgClassExpression[63]
6: PgSelect[66]
7: PgSelectRows[69]
ᐳ: 68, 70, 71, 72, 73, 74, 75, 78
8: PgSelect[76], PgSelect[83]
9: PgSelectRows[80], PgSelectRows[86]
ᐳ: 79, 81, 82, 85, 87, 88, 94
10: PgSelect[95]
11: PgSelectRows[98]
ᐳ: 97, 99, 100, 101"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgSelect17,First21,PgSelectRows22,PgSelectSingle23 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 23, 14

ROOT PgSelectSingle{2}ᐸrelational_postsᐳ[23]
1:
ᐳ: 24, 25, 26, 27, 28
2: PgSelect[29], PgSelect[37]
3: PgSelectRows[34], PgSelectRows[40]
ᐳ: 33, 35, 36, 39, 41, 42, 48
4: PgSelect[49]
5: PgSelectRows[52]
ᐳ: First[51], PgSelectSingle[53]"):::bucket + class Bucket2,PgUpdateSingle59,Access60,Access61,Object62,PgClassExpression63,Access64,PgSelect66,First68,PgSelectRows69,PgSelectSingle70,PgClassExpression71,PgClassExpression72,PgClassExpression73,PgClassExpression74,PgClassExpression75,PgSelect76,PgFromExpression78,First79,PgSelectRows80,PgSelectSingle81,PgClassExpression82,PgSelect83,First85,PgSelectRows86,PgSelectSingle87,PgClassExpression88,PgClassExpression94,PgSelect95,First97,PgSelectRows98,PgSelectSingle99,PgClassExpression100,PgClassExpression101 bucket2 + Bucket3("Bucket 3 (mutationField)
Deps: 198, 9, 106, 2

1: Access[108]
2: Access[109]
3: Object[110]
4: PgUpdateSingle[107]
5:
ᐳ: Access[112], PgClassExpression[111]
6: PgSelect[114]
7: PgSelectRows[117]
ᐳ: 116, 118, 119, 120, 121, 122, 123, 126
8: PgSelect[124], PgSelect[131]
9: PgSelectRows[128], PgSelectRows[134]
ᐳ: 127, 129, 130, 133, 135, 136, 142
10: PgSelect[143]
11: PgSelectRows[146]
ᐳ: 145, 147, 148, 149"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,PgSelect37,First39,PgSelectRows40,PgSelectSingle41,PgClassExpression42,PgClassExpression48,PgSelect49,First51,PgSelectRows52,PgSelectSingle53 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 53

ROOT PgSelectSingle{3}ᐸpeopleᐳ[53]"):::bucket + class Bucket3,PgUpdateSingle107,Access108,Access109,Object110,PgClassExpression111,Access112,PgSelect114,First116,PgSelectRows117,PgSelectSingle118,PgClassExpression119,PgClassExpression120,PgClassExpression121,PgClassExpression122,PgClassExpression123,PgSelect124,PgFromExpression126,First127,PgSelectRows128,PgSelectSingle129,PgClassExpression130,PgSelect131,First133,PgSelectRows134,PgSelectSingle135,PgClassExpression136,PgClassExpression142,PgSelect143,First145,PgSelectRows146,PgSelectSingle147,PgClassExpression148,PgClassExpression149 bucket3 + Bucket4("Bucket 4 (mutationField)
Deps: 201, 9, 106, 2

1: Access[156]
2: Access[157]
3: Object[158]
4: PgUpdateSingle[155]
5:
ᐳ: Access[160], PgClassExpression[159]
6: PgSelect[162]
7: PgSelectRows[165]
ᐳ: 164, 166, 167, 168, 169, 170, 171, 174
8: PgSelect[172], PgSelect[179]
9: PgSelectRows[176], PgSelectRows[182]
ᐳ: 175, 177, 178, 181, 183, 184, 190
10: PgSelect[191]
11: PgSelectRows[194]
ᐳ: 193, 195, 196, 197"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression54,PgClassExpression55 bucket4 - Bucket5("Bucket 5 (mutationField)
Deps: 206, 208, 2

1: Access[62]
2: Access[63]
3: Object[64]
4: PgUpdateSingle[61]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgUpdateSingle61,Access62,Access63,Object64 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 61, 64

ROOT PgUpdateSingle{5}ᐸrelational_posts(id;note)ᐳ[61]
1:
ᐳ: PgClassExpression[65]
2: PgSelect[67]
3: PgSelectRows[72]
ᐳ: First[71], PgSelectSingle[73]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression65,PgSelect67,First71,PgSelectRows72,PgSelectSingle73 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 73, 64

ROOT PgSelectSingle{6}ᐸrelational_postsᐳ[73]
1:
ᐳ: 74, 75, 76, 77, 78
2: PgSelect[79], PgSelect[87]
3: PgSelectRows[84], PgSelectRows[90]
ᐳ: 83, 85, 86, 89, 91, 92, 98
4: PgSelect[99]
5: PgSelectRows[102]
ᐳ: First[101], PgSelectSingle[103]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression74,PgClassExpression75,PgClassExpression76,PgClassExpression77,PgClassExpression78,PgSelect79,First83,PgSelectRows84,PgSelectSingle85,PgClassExpression86,PgSelect87,First89,PgSelectRows90,PgSelectSingle91,PgClassExpression92,PgClassExpression98,PgSelect99,First101,PgSelectRows102,PgSelectSingle103 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 103

ROOT PgSelectSingle{7}ᐸpeopleᐳ[103]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression104,PgClassExpression105 bucket8 - Bucket9("Bucket 9 (mutationField)
Deps: 206, 209, 2

1: Access[112]
2: Access[113]
3: Object[114]
4: PgUpdateSingle[111]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgUpdateSingle111,Access112,Access113,Object114 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 111, 114

ROOT PgUpdateSingle{9}ᐸrelational_posts(id;description)ᐳ[111]
1:
ᐳ: PgClassExpression[115]
2: PgSelect[117]
3: PgSelectRows[122]
ᐳ: First[121], PgSelectSingle[123]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression115,PgSelect117,First121,PgSelectRows122,PgSelectSingle123 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 123, 114

ROOT PgSelectSingle{10}ᐸrelational_postsᐳ[123]
1:
ᐳ: 124, 125, 126, 127, 128
2: PgSelect[129], PgSelect[137]
3: PgSelectRows[134], PgSelectRows[140]
ᐳ: 133, 135, 136, 139, 141, 142, 148
4: PgSelect[149]
5: PgSelectRows[152]
ᐳ: First[151], PgSelectSingle[153]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression124,PgClassExpression125,PgClassExpression126,PgClassExpression127,PgClassExpression128,PgSelect129,First133,PgSelectRows134,PgSelectSingle135,PgClassExpression136,PgSelect137,First139,PgSelectRows140,PgSelectSingle141,PgClassExpression142,PgClassExpression148,PgSelect149,First151,PgSelectRows152,PgSelectSingle153 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 153

ROOT PgSelectSingle{11}ᐸpeopleᐳ[153]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgClassExpression154,PgClassExpression155 bucket12 - Bucket13("Bucket 13 (mutationField)
Deps: 210, 209, 2

1: Access[162]
2: Access[163]
3: Object[164]
4: PgUpdateSingle[161]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,PgUpdateSingle161,Access162,Access163,Object164 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 161, 164

ROOT PgUpdateSingle{13}ᐸrelational_posts(id;description)ᐳ[161]
1:
ᐳ: PgClassExpression[165]
2: PgSelect[167]
3: PgSelectRows[172]
ᐳ: First[171], PgSelectSingle[173]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,PgClassExpression165,PgSelect167,First171,PgSelectRows172,PgSelectSingle173 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 173, 164

ROOT PgSelectSingle{14}ᐸrelational_postsᐳ[173]
1:
ᐳ: 174, 175, 176, 177, 178
2: PgSelect[179], PgSelect[187]
3: PgSelectRows[184], PgSelectRows[190]
ᐳ: 183, 185, 186, 189, 191, 192, 198
4: PgSelect[199]
5: PgSelectRows[202]
ᐳ: First[201], PgSelectSingle[203]"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15,PgClassExpression174,PgClassExpression175,PgClassExpression176,PgClassExpression177,PgClassExpression178,PgSelect179,First183,PgSelectRows184,PgSelectSingle185,PgClassExpression186,PgSelect187,First189,PgSelectRows190,PgSelectSingle191,PgClassExpression192,PgClassExpression198,PgSelect199,First201,PgSelectRows202,PgSelectSingle203 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 203

ROOT PgSelectSingle{15}ᐸpeopleᐳ[203]"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16,PgClassExpression204,PgClassExpression205 bucket16 - Bucket0 --> Bucket1 & Bucket5 & Bucket9 & Bucket13 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 - Bucket9 --> Bucket10 - Bucket10 --> Bucket11 - Bucket11 --> Bucket12 - Bucket13 --> Bucket14 - Bucket14 --> Bucket15 - Bucket15 --> Bucket16 + class Bucket4,PgUpdateSingle155,Access156,Access157,Object158,PgClassExpression159,Access160,PgSelect162,First164,PgSelectRows165,PgSelectSingle166,PgClassExpression167,PgClassExpression168,PgClassExpression169,PgClassExpression170,PgClassExpression171,PgSelect172,PgFromExpression174,First175,PgSelectRows176,PgSelectSingle177,PgClassExpression178,PgSelect179,First181,PgSelectRows182,PgSelectSingle183,PgClassExpression184,PgClassExpression190,PgSelect191,First193,PgSelectRows194,PgSelectSingle195,PgClassExpression196,PgClassExpression197 bucket4 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/mutations/withPgClient/multipleActions.deopt.mermaid b/grafast/dataplan-pg/__tests__/mutations/withPgClient/multipleActions.deopt.mermaid index 90c787f65e..3ef600aadd 100644 --- a/grafast/dataplan-pg/__tests__/mutations/withPgClient/multipleActions.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/withPgClient/multipleActions.deopt.mermaid @@ -20,8 +20,8 @@ graph TD Constant15{{"Constant[15∈0] ➊
ᐸ§{ a: 3 }ᐳ"}}:::plan WithPgClient9[["WithPgClient[9∈1] ➊"]]:::sideeffectplan Object12 & Constant15 --> WithPgClient9 - __Item13[/"__Item[13∈3]
ᐸ9ᐳ"\]:::itemplan - WithPgClient9 ==> __Item13 + __Item13[/"__Item[13∈2]
ᐸ9ᐳ"\]:::itemplan + WithPgClient9 ==>|rejectNull| __Item13 %% define steps @@ -32,13 +32,9 @@ graph TD Bucket1("Bucket 1 (mutationField)
Deps: 12, 15"):::bucket classDef bucket1 stroke:#00bfff class Bucket1,WithPgClient9 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 9

ROOT WithPgClient{1}[9]"):::bucket + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ9ᐳ[13]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ9ᐳ[13]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item13 bucket3 + class Bucket2,__Item13 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/mutations/withPgClient/multipleActions.mermaid b/grafast/dataplan-pg/__tests__/mutations/withPgClient/multipleActions.mermaid index 90c787f65e..3ef600aadd 100644 --- a/grafast/dataplan-pg/__tests__/mutations/withPgClient/multipleActions.mermaid +++ b/grafast/dataplan-pg/__tests__/mutations/withPgClient/multipleActions.mermaid @@ -20,8 +20,8 @@ graph TD Constant15{{"Constant[15∈0] ➊
ᐸ§{ a: 3 }ᐳ"}}:::plan WithPgClient9[["WithPgClient[9∈1] ➊"]]:::sideeffectplan Object12 & Constant15 --> WithPgClient9 - __Item13[/"__Item[13∈3]
ᐸ9ᐳ"\]:::itemplan - WithPgClient9 ==> __Item13 + __Item13[/"__Item[13∈2]
ᐸ9ᐳ"\]:::itemplan + WithPgClient9 ==>|rejectNull| __Item13 %% define steps @@ -32,13 +32,9 @@ graph TD Bucket1("Bucket 1 (mutationField)
Deps: 12, 15"):::bucket classDef bucket1 stroke:#00bfff class Bucket1,WithPgClient9 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 9

ROOT WithPgClient{1}[9]"):::bucket + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ9ᐳ[13]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ9ᐳ[13]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item13 bucket3 + class Bucket2,__Item13 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.deopt.mermaid index 3daec70e6e..5236d52604 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.deopt.mermaid @@ -9,113 +9,81 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant50{{"Constant[50∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant50 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression17 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression23 - PgSelect24[["PgSelect[24∈4]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - PgSelectRows25[["PgSelectRows[25∈4]"]]:::plan - PgSelect24 --> PgSelectRows25 - __Item26[/"__Item[26∈5]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈5]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - Access41{{"Access[41∈5]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelect24 --> Access41 - PgSelect30[["PgSelect[30∈6]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈6]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈6]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈6]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈6]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈6]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈7]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈7]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈8]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgSelect45[["PgSelect[45∈8]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈8]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgClassExpression43{{"PgClassExpression[43∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈8]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈8]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈8]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈9]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈9]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + Constant51{{"Constant[51∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelect26[["PgSelect[26∈2]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25[["Lambda[25∈2] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + Constant51 --> Lambda25 + PgSelectRows27[["PgSelectRows[27∈2]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgSelect32[["PgSelect[32∈3]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression31 --> PgSelect32 + PgCursor44{{"PgCursor[44∈3]"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈3]
ᐸmessagesᐳ"}}:::plan + Access43{{"Access[43∈3]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelectSingle29 & Access43 --> PgCursor44 + __Item28[/"__Item[28∈3]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First36{{"First[36∈3]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈3]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈3]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 + PgSelect26 --> Access43 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-1" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 50, 51, 11, 23
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Constant50,Constant51 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 51, 11, 23, 6

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16 bucket1 + Bucket2("Bucket 2 (defer)
Deps: 15, 51, 11, 23, 6

1: Lambda[25]
ᐳ: 18, 24
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (defer)
Deps: 14, 11, 22"):::bucket + class Bucket2,PgClassExpression18,PgClassExpression24,Lambda25,PgSelect26,PgSelectRows27 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 11, 26

ROOT __Item{3}ᐸ27ᐳ[28]
1:
ᐳ: 29, 43, 30, 31, 44
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 11, 17, 23, 22

ROOT Connectionᐸ18ᐳ[22]
1: PgSelect[24]
2: PgSelectRows[25]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect24,PgSelectRows25 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 24, 11

ROOT __Item{5}ᐸ25ᐳ[26]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item26,PgSelectSingle27,Access41 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]
1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{6}ᐸusersᐳ[36]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression37,PgClassExpression38 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]
1:
ᐳ: 42, 43, 44
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor42,PgClassExpression43,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{8}ᐸusersᐳ[51]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression52,PgClassExpression53 bucket9 + class Bucket3,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40,Access43,PgCursor44 bucket3 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket8 - Bucket6 --> Bucket7 - Bucket8 --> Bucket9 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.deopt.sql index e8a5df2dec..2c795c5afc 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.mermaid index 3daec70e6e..5236d52604 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.mermaid @@ -9,113 +9,81 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant50{{"Constant[50∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant50 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression17 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression23 - PgSelect24[["PgSelect[24∈4]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - PgSelectRows25[["PgSelectRows[25∈4]"]]:::plan - PgSelect24 --> PgSelectRows25 - __Item26[/"__Item[26∈5]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈5]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - Access41{{"Access[41∈5]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelect24 --> Access41 - PgSelect30[["PgSelect[30∈6]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈6]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈6]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈6]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈6]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈6]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈7]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈7]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈8]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgSelect45[["PgSelect[45∈8]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈8]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgClassExpression43{{"PgClassExpression[43∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈8]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈8]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈8]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈9]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈9]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + Constant51{{"Constant[51∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelect26[["PgSelect[26∈2]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25[["Lambda[25∈2] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + Constant51 --> Lambda25 + PgSelectRows27[["PgSelectRows[27∈2]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgSelect32[["PgSelect[32∈3]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression31 --> PgSelect32 + PgCursor44{{"PgCursor[44∈3]"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈3]
ᐸmessagesᐳ"}}:::plan + Access43{{"Access[43∈3]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelectSingle29 & Access43 --> PgCursor44 + __Item28[/"__Item[28∈3]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First36{{"First[36∈3]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈3]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈3]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 + PgSelect26 --> Access43 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-1" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 50, 51, 11, 23
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Constant50,Constant51 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 51, 11, 23, 6

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16 bucket1 + Bucket2("Bucket 2 (defer)
Deps: 15, 51, 11, 23, 6

1: Lambda[25]
ᐳ: 18, 24
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (defer)
Deps: 14, 11, 22"):::bucket + class Bucket2,PgClassExpression18,PgClassExpression24,Lambda25,PgSelect26,PgSelectRows27 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 11, 26

ROOT __Item{3}ᐸ27ᐳ[28]
1:
ᐳ: 29, 43, 30, 31, 44
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 11, 17, 23, 22

ROOT Connectionᐸ18ᐳ[22]
1: PgSelect[24]
2: PgSelectRows[25]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect24,PgSelectRows25 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 24, 11

ROOT __Item{5}ᐸ25ᐳ[26]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item26,PgSelectSingle27,Access41 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]
1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{6}ᐸusersᐳ[36]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression37,PgClassExpression38 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]
1:
ᐳ: 42, 43, 44
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor42,PgClassExpression43,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{8}ᐸusersᐳ[51]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression52,PgClassExpression53 bucket9 + class Bucket3,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40,Access43,PgCursor44 bucket3 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket8 - Bucket6 --> Bucket7 - Bucket8 --> Bucket9 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.sql index e8a5df2dec..2c795c5afc 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-1.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.deopt.mermaid index 01f5e431d4..2340864b53 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.deopt.mermaid @@ -9,113 +9,81 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant50{{"Constant[50∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant50 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant51{{"Constant[51∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant51 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression17 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression23 - PgSelect24[["PgSelect[24∈4]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - PgSelectRows25[["PgSelectRows[25∈4]"]]:::plan - PgSelect24 --> PgSelectRows25 - __Item26[/"__Item[26∈5]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈5]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - Access41{{"Access[41∈5]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelect24 --> Access41 - PgSelect30[["PgSelect[30∈6]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈6]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈6]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈6]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈6]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈6]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈7]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈7]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈8]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgSelect45[["PgSelect[45∈8]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈8]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgClassExpression43{{"PgClassExpression[43∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈8]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈8]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈8]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈9]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈9]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelect26[["PgSelect[26∈2]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows27[["PgSelectRows[27∈2]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgSelect32[["PgSelect[32∈3]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression31 --> PgSelect32 + PgCursor44{{"PgCursor[44∈3]"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈3]
ᐸmessagesᐳ"}}:::plan + Access43{{"Access[43∈3]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelectSingle29 & Access43 --> PgCursor44 + __Item28[/"__Item[28∈3]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First36{{"First[36∈3]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈3]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈3]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 + PgSelect26 --> Access43 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-2" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 50, 51, 11, 23
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 22, 11

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant50,Constant51 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 22, 11

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16 bucket1 + Bucket2("Bucket 2 (defer)
Deps: 15, 11, 25, 23, 6

1:
ᐳ: 18, 24
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 22, 11

ROOT Connectionᐸ18ᐳ[22]"):::bucket + class Bucket2,PgClassExpression18,PgClassExpression24,PgSelect26,PgSelectRows27 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 11, 26

ROOT __Item{3}ᐸ27ᐳ[28]
1:
ᐳ: 29, 43, 30, 31, 44
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23 bucket3 - Bucket4("Bucket 4 (defer)
Deps: 11, 17, 23, 22

1: PgSelect[24]
2: PgSelectRows[25]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect24,PgSelectRows25 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 24, 11

ROOT __Item{5}ᐸ25ᐳ[26]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item26,PgSelectSingle27,Access41 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]
1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{6}ᐸusersᐳ[36]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression37,PgClassExpression38 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]
1:
ᐳ: 42, 43, 44
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor42,PgClassExpression43,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{8}ᐸusersᐳ[51]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression52,PgClassExpression53 bucket9 + class Bucket3,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40,Access43,PgCursor44 bucket3 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket8 - Bucket6 --> Bucket7 - Bucket8 --> Bucket9 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.deopt.sql index e8a5df2dec..2c795c5afc 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.mermaid index 01f5e431d4..2340864b53 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.mermaid @@ -9,113 +9,81 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant50{{"Constant[50∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant50 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant51{{"Constant[51∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant51 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression17 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression23 - PgSelect24[["PgSelect[24∈4]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - PgSelectRows25[["PgSelectRows[25∈4]"]]:::plan - PgSelect24 --> PgSelectRows25 - __Item26[/"__Item[26∈5]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈5]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - Access41{{"Access[41∈5]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelect24 --> Access41 - PgSelect30[["PgSelect[30∈6]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈6]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈6]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈6]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈6]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈6]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈7]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈7]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈8]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgSelect45[["PgSelect[45∈8]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈8]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgClassExpression43{{"PgClassExpression[43∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈8]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈8]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈8]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈9]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈9]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelect26[["PgSelect[26∈2]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows27[["PgSelectRows[27∈2]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgSelect32[["PgSelect[32∈3]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression31 --> PgSelect32 + PgCursor44{{"PgCursor[44∈3]"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈3]
ᐸmessagesᐳ"}}:::plan + Access43{{"Access[43∈3]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelectSingle29 & Access43 --> PgCursor44 + __Item28[/"__Item[28∈3]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First36{{"First[36∈3]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈3]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈3]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 + PgSelect26 --> Access43 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-2" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 50, 51, 11, 23
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 22, 11

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant50,Constant51 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 22, 11

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16 bucket1 + Bucket2("Bucket 2 (defer)
Deps: 15, 11, 25, 23, 6

1:
ᐳ: 18, 24
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 22, 11

ROOT Connectionᐸ18ᐳ[22]"):::bucket + class Bucket2,PgClassExpression18,PgClassExpression24,PgSelect26,PgSelectRows27 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 11, 26

ROOT __Item{3}ᐸ27ᐳ[28]
1:
ᐳ: 29, 43, 30, 31, 44
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23 bucket3 - Bucket4("Bucket 4 (defer)
Deps: 11, 17, 23, 22

1: PgSelect[24]
2: PgSelectRows[25]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect24,PgSelectRows25 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 24, 11

ROOT __Item{5}ᐸ25ᐳ[26]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item26,PgSelectSingle27,Access41 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]
1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{6}ᐸusersᐳ[36]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression37,PgClassExpression38 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]
1:
ᐳ: 42, 43, 44
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor42,PgClassExpression43,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{8}ᐸusersᐳ[51]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression52,PgClassExpression53 bucket9 + class Bucket3,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40,Access43,PgCursor44 bucket3 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket8 - Bucket6 --> Bucket7 - Bucket8 --> Bucket9 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.sql index e8a5df2dec..2c795c5afc 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-2.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.deopt.mermaid index 4bf9f6a330..74ebff0e90 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.deopt.mermaid @@ -9,129 +9,113 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant58{{"Constant[58∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant58 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant59{{"Constant[59∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant59 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression17{{"PgClassExpression[17∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression17 - PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression23 - PgSelect24[["PgSelect[24∈4]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - PgSelectRows25[["PgSelectRows[25∈4]"]]:::plan - PgSelect24 --> PgSelectRows25 - __Item26[/"__Item[26∈5]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈5]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - PgSelect30[["PgSelect[30∈6]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈6]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈6]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈6]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈6]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈6]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈7]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈7]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgSelect39[["PgSelect[39∈8]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect39 - PgSelectRows40[["PgSelectRows[40∈8]"]]:::plan - PgSelect39 --> PgSelectRows40 - __Item41[/"__Item[41∈9]
ᐸ40ᐳ"\]:::itemplan - PgSelectRows40 ==> __Item41 - PgSelectSingle42{{"PgSelectSingle[42∈9]
ᐸmessagesᐳ"}}:::plan - __Item41 --> PgSelectSingle42 - Access43{{"Access[43∈9]
ᐸ39.cursorDetailsᐳ"}}:::plan - PgSelect39 --> Access43 - PgCursor44{{"PgCursor[44∈10]"}}:::plan - PgSelectSingle42 & Access43 --> PgCursor44 - PgSelect47[["PgSelect[47∈10]
ᐸusersᐳ"]]:::plan - PgClassExpression46{{"PgClassExpression[46∈10]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression46 --> PgSelect47 - PgClassExpression45{{"PgClassExpression[45∈10]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle42 --> PgClassExpression45 - PgSelectSingle42 --> PgClassExpression46 - First51{{"First[51∈10]"}}:::plan - PgSelectRows52[["PgSelectRows[52∈10]"]]:::plan - PgSelectRows52 --> First51 - PgSelect47 --> PgSelectRows52 - PgSelectSingle53{{"PgSelectSingle[53∈10]
ᐸusersᐳ"}}:::plan - First51 --> PgSelectSingle53 - PgClassExpression54{{"PgClassExpression[54∈11]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression54 - PgClassExpression55{{"PgClassExpression[55∈11]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression55 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression18 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression24 + PgSelect26[["PgSelect[26∈2]
ᐸmessagesᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelectRows27[["PgSelectRows[27∈2]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgSelect32[["PgSelect[32∈3]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression31 --> PgSelect32 + __Item28[/"__Item[28∈3]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + PgSelectSingle29{{"PgSelectSingle[29∈3]
ᐸmessagesᐳ"}}:::plan + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First36{{"First[36∈3]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈3]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈3]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 + PgSelect41[["PgSelect[41∈4]
ᐸmessagesᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect41 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect41 + PgSelectRows42[["PgSelectRows[42∈4]"]]:::plan + PgSelect41 --> PgSelectRows42 + PgCursor46{{"PgCursor[46∈5]"}}:::plan + PgSelectSingle44{{"PgSelectSingle[44∈5]
ᐸmessagesᐳ"}}:::plan + Access45{{"Access[45∈5]
ᐸ41.cursorDetailsᐳ"}}:::plan + PgSelectSingle44 & Access45 --> PgCursor46 + PgSelect49[["PgSelect[49∈5]
ᐸusersᐳ"]]:::plan + PgClassExpression48{{"PgClassExpression[48∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression48 --> PgSelect49 + __Item43[/"__Item[43∈5]
ᐸ42ᐳ"\]:::itemplan + PgSelectRows42 ==> __Item43 + __Item43 --> PgSelectSingle44 + PgSelect41 --> Access45 + PgClassExpression47{{"PgClassExpression[47∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression47 + PgSelectSingle44 --> PgClassExpression48 + First53{{"First[53∈5]"}}:::plan + PgSelectRows54[["PgSelectRows[54∈5]"]]:::plan + PgSelectRows54 --> First53 + PgSelect49 --> PgSelectRows54 + PgSelectSingle55{{"PgSelectSingle[55∈5]
ᐸusersᐳ"}}:::plan + First53 --> PgSelectSingle55 + PgClassExpression56{{"PgClassExpression[56∈5]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle55 --> PgClassExpression56 + PgClassExpression57{{"PgClassExpression[57∈5]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle55 --> PgClassExpression57 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-3" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 58, 59, 11, 23
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 22, 11

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant58,Constant59 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 22, 11

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24 bucket1 + Bucket2("Bucket 2 (defer)
Deps: 11, 18, 24, 25, 23, 6

1: PgSelect[26]
2: PgSelectRows[27]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression17,PgClassExpression23 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 22, 11, 17, 23

ROOT Connectionᐸ18ᐳ[22]"):::bucket + class Bucket2,PgSelect26,PgSelectRows27 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 11

ROOT __Item{3}ᐸ27ᐳ[28]
1:
ᐳ: 29, 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 - Bucket4("Bucket 4 (defer)
Deps: 11, 17, 23, 22

1: PgSelect[24]
2: PgSelectRows[25]"):::bucket + class Bucket3,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40 bucket3 + Bucket4("Bucket 4 (defer)
Deps: 11, 18, 24, 25, 23, 6

1: PgSelect[41]
2: PgSelectRows[42]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect24,PgSelectRows25 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 11

ROOT __Item{5}ᐸ25ᐳ[26]"):::bucket + class Bucket4,PgSelect41,PgSelectRows42 bucket4 + Bucket5("Bucket 5 (listItem)
Deps: 41, 11

ROOT __Item{5}ᐸ42ᐳ[43]
1:
ᐳ: 44, 45, 46, 47, 48
2: PgSelect[49]
3: PgSelectRows[54]
ᐳ: 53, 55, 56, 57"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item26,PgSelectSingle27 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]
1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{6}ᐸusersᐳ[36]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression37,PgClassExpression38 bucket7 - Bucket8("Bucket 8 (defer)
Deps: 11, 17, 23, 22

1: PgSelect[39]
2: PgSelectRows[40]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgSelect39,PgSelectRows40 bucket8 - Bucket9("Bucket 9 (listItem)
Deps: 39, 11

ROOT __Item{9}ᐸ40ᐳ[41]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,__Item41,PgSelectSingle42,Access43 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 42, 43, 11

ROOT PgSelectSingle{9}ᐸmessagesᐳ[42]
1:
ᐳ: 44, 45, 46
2: PgSelect[47]
3: PgSelectRows[52]
ᐳ: First[51], PgSelectSingle[53]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgCursor44,PgClassExpression45,PgClassExpression46,PgSelect47,First51,PgSelectRows52,PgSelectSingle53 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 53

ROOT PgSelectSingle{10}ᐸusersᐳ[53]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression54,PgClassExpression55 bucket11 + class Bucket5,__Item43,PgSelectSingle44,Access45,PgCursor46,PgClassExpression47,PgClassExpression48,PgSelect49,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression56,PgClassExpression57 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 + Bucket1 --> Bucket2 & Bucket4 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket8 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket8 --> Bucket9 - Bucket9 --> Bucket10 - Bucket10 --> Bucket11 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.deopt.sql index 82eefd793d..60f5396a4e 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.mermaid index 4bf9f6a330..74ebff0e90 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.mermaid @@ -9,129 +9,113 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant58{{"Constant[58∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant58 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant59{{"Constant[59∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant59 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression17{{"PgClassExpression[17∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression17 - PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression23 - PgSelect24[["PgSelect[24∈4]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - PgSelectRows25[["PgSelectRows[25∈4]"]]:::plan - PgSelect24 --> PgSelectRows25 - __Item26[/"__Item[26∈5]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈5]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - PgSelect30[["PgSelect[30∈6]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈6]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈6]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈6]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈6]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈6]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈7]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈7]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgSelect39[["PgSelect[39∈8]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect39 - PgSelectRows40[["PgSelectRows[40∈8]"]]:::plan - PgSelect39 --> PgSelectRows40 - __Item41[/"__Item[41∈9]
ᐸ40ᐳ"\]:::itemplan - PgSelectRows40 ==> __Item41 - PgSelectSingle42{{"PgSelectSingle[42∈9]
ᐸmessagesᐳ"}}:::plan - __Item41 --> PgSelectSingle42 - Access43{{"Access[43∈9]
ᐸ39.cursorDetailsᐳ"}}:::plan - PgSelect39 --> Access43 - PgCursor44{{"PgCursor[44∈10]"}}:::plan - PgSelectSingle42 & Access43 --> PgCursor44 - PgSelect47[["PgSelect[47∈10]
ᐸusersᐳ"]]:::plan - PgClassExpression46{{"PgClassExpression[46∈10]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression46 --> PgSelect47 - PgClassExpression45{{"PgClassExpression[45∈10]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle42 --> PgClassExpression45 - PgSelectSingle42 --> PgClassExpression46 - First51{{"First[51∈10]"}}:::plan - PgSelectRows52[["PgSelectRows[52∈10]"]]:::plan - PgSelectRows52 --> First51 - PgSelect47 --> PgSelectRows52 - PgSelectSingle53{{"PgSelectSingle[53∈10]
ᐸusersᐳ"}}:::plan - First51 --> PgSelectSingle53 - PgClassExpression54{{"PgClassExpression[54∈11]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression54 - PgClassExpression55{{"PgClassExpression[55∈11]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression55 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression18 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression24 + PgSelect26[["PgSelect[26∈2]
ᐸmessagesᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelectRows27[["PgSelectRows[27∈2]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgSelect32[["PgSelect[32∈3]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression31 --> PgSelect32 + __Item28[/"__Item[28∈3]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + PgSelectSingle29{{"PgSelectSingle[29∈3]
ᐸmessagesᐳ"}}:::plan + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First36{{"First[36∈3]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈3]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈3]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 + PgSelect41[["PgSelect[41∈4]
ᐸmessagesᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect41 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect41 + PgSelectRows42[["PgSelectRows[42∈4]"]]:::plan + PgSelect41 --> PgSelectRows42 + PgCursor46{{"PgCursor[46∈5]"}}:::plan + PgSelectSingle44{{"PgSelectSingle[44∈5]
ᐸmessagesᐳ"}}:::plan + Access45{{"Access[45∈5]
ᐸ41.cursorDetailsᐳ"}}:::plan + PgSelectSingle44 & Access45 --> PgCursor46 + PgSelect49[["PgSelect[49∈5]
ᐸusersᐳ"]]:::plan + PgClassExpression48{{"PgClassExpression[48∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression48 --> PgSelect49 + __Item43[/"__Item[43∈5]
ᐸ42ᐳ"\]:::itemplan + PgSelectRows42 ==> __Item43 + __Item43 --> PgSelectSingle44 + PgSelect41 --> Access45 + PgClassExpression47{{"PgClassExpression[47∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression47 + PgSelectSingle44 --> PgClassExpression48 + First53{{"First[53∈5]"}}:::plan + PgSelectRows54[["PgSelectRows[54∈5]"]]:::plan + PgSelectRows54 --> First53 + PgSelect49 --> PgSelectRows54 + PgSelectSingle55{{"PgSelectSingle[55∈5]
ᐸusersᐳ"}}:::plan + First53 --> PgSelectSingle55 + PgClassExpression56{{"PgClassExpression[56∈5]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle55 --> PgClassExpression56 + PgClassExpression57{{"PgClassExpression[57∈5]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle55 --> PgClassExpression57 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-3" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 58, 59, 11, 23
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 22, 11

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant58,Constant59 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 22, 11

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24 bucket1 + Bucket2("Bucket 2 (defer)
Deps: 11, 18, 24, 25, 23, 6

1: PgSelect[26]
2: PgSelectRows[27]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression17,PgClassExpression23 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 22, 11, 17, 23

ROOT Connectionᐸ18ᐳ[22]"):::bucket + class Bucket2,PgSelect26,PgSelectRows27 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 11

ROOT __Item{3}ᐸ27ᐳ[28]
1:
ᐳ: 29, 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 - Bucket4("Bucket 4 (defer)
Deps: 11, 17, 23, 22

1: PgSelect[24]
2: PgSelectRows[25]"):::bucket + class Bucket3,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40 bucket3 + Bucket4("Bucket 4 (defer)
Deps: 11, 18, 24, 25, 23, 6

1: PgSelect[41]
2: PgSelectRows[42]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect24,PgSelectRows25 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 11

ROOT __Item{5}ᐸ25ᐳ[26]"):::bucket + class Bucket4,PgSelect41,PgSelectRows42 bucket4 + Bucket5("Bucket 5 (listItem)
Deps: 41, 11

ROOT __Item{5}ᐸ42ᐳ[43]
1:
ᐳ: 44, 45, 46, 47, 48
2: PgSelect[49]
3: PgSelectRows[54]
ᐳ: 53, 55, 56, 57"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item26,PgSelectSingle27 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]
1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{6}ᐸusersᐳ[36]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression37,PgClassExpression38 bucket7 - Bucket8("Bucket 8 (defer)
Deps: 11, 17, 23, 22

1: PgSelect[39]
2: PgSelectRows[40]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgSelect39,PgSelectRows40 bucket8 - Bucket9("Bucket 9 (listItem)
Deps: 39, 11

ROOT __Item{9}ᐸ40ᐳ[41]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,__Item41,PgSelectSingle42,Access43 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 42, 43, 11

ROOT PgSelectSingle{9}ᐸmessagesᐳ[42]
1:
ᐳ: 44, 45, 46
2: PgSelect[47]
3: PgSelectRows[52]
ᐳ: First[51], PgSelectSingle[53]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgCursor44,PgClassExpression45,PgClassExpression46,PgSelect47,First51,PgSelectRows52,PgSelectSingle53 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 53

ROOT PgSelectSingle{10}ᐸusersᐳ[53]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression54,PgClassExpression55 bucket11 + class Bucket5,__Item43,PgSelectSingle44,Access45,PgCursor46,PgClassExpression47,PgClassExpression48,PgSelect49,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression56,PgClassExpression57 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 + Bucket1 --> Bucket2 & Bucket4 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket8 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket8 --> Bucket9 - Bucket9 --> Bucket10 - Bucket10 --> Bucket11 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.sql index 82eefd793d..60f5396a4e 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-3.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.deopt.mermaid index e4de0c9324..cf5964e66c 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.deopt.mermaid @@ -9,148 +9,128 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant84{{"Constant[84∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant84 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant85{{"Constant[85∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant85 --> Lambda25 + PgPageInfo57{{"PgPageInfo[57∈0] ➊"}}:::plan + Connection23 --> PgPageInfo57 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect24[["PgSelect[24∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - Object63{{"Object[63∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access58{{"Access[58∈3]
ᐸ24.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access58 --> Object63 - PgSelect77[["PgSelect[77∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect77 - Object59{{"Object[59∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access58 --> Object59 - PgCursor70{{"PgCursor[70∈3]"}}:::plan - PgSelectSingle68{{"PgSelectSingle[68∈3]
ᐸmessagesᐳ"}}:::plan - Access41{{"Access[41∈3]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelectSingle68 & Access41 --> PgCursor70 - PgCursor76{{"PgCursor[76∈3]"}}:::plan - PgSelectSingle74{{"PgSelectSingle[74∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle74 & Access41 --> PgCursor76 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan - PgSelect24 --> PgSelectRows25 - PgSelect24 --> Access41 - PgPageInfo55{{"PgPageInfo[55∈3] ➊"}}:::plan - Connection22 --> PgPageInfo55 - PgSelect24 --> Access58 - Lambda60{{"Lambda[60∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object59 --> Lambda60 - Lambda64{{"Lambda[64∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object63 --> Lambda64 - First66{{"First[66∈3]"}}:::plan - PgSelectRows25 --> First66 - First66 --> PgSelectSingle68 - Last72{{"Last[72∈3]"}}:::plan - PgSelectRows25 --> Last72 - Last72 --> PgSelectSingle74 - First78{{"First[78∈3]"}}:::plan - PgSelectRows79[["PgSelectRows[79∈3]"]]:::plan - PgSelectRows79 --> First78 - PgSelect77 --> PgSelectRows79 - PgSelectSingle80{{"PgSelectSingle[80∈3]
ᐸmessagesᐳ"}}:::plan - First78 --> PgSelectSingle80 - PgClassExpression81{{"PgClassExpression[81∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle80 --> PgClassExpression81 - __Item26[/"__Item[26∈4]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈4]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - PgSelect30[["PgSelect[30∈6]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈6]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈6]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈6]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈6]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈6]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈7]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈7]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈8]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgSelect45[["PgSelect[45∈8]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈8]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgClassExpression43{{"PgClassExpression[43∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈8]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈8]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈8]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈9]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈9]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + PgSelect26[["PgSelect[26∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelect79[["PgSelect[79∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect79 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect79 + Object65{{"Object[65∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access59{{"Access[59∈1]
ᐸ26.hasMoreᐳ"}}:::plan + Access59 --> Object65 + Object60{{"Object[60∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access59 --> Object60 + PgCursor72{{"PgCursor[72∈1]"}}:::plan + PgSelectSingle70{{"PgSelectSingle[70∈1]
ᐸmessagesᐳ"}}:::plan + Access43{{"Access[43∈1]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelectSingle70 & Access43 --> PgCursor72 + PgCursor78{{"PgCursor[78∈1]"}}:::plan + PgSelectSingle76{{"PgSelectSingle[76∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle76 & Access43 --> PgCursor78 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgSelect26 --> Access43 + PgSelect26 --> Access59 + Lambda61{{"Lambda[61∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object60 --> Lambda61 + Lambda66{{"Lambda[66∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object65 --> Lambda66 + First68{{"First[68∈1]"}}:::plan + PgSelectRows27 --> First68 + First68 --> PgSelectSingle70 + Last74{{"Last[74∈1]"}}:::plan + PgSelectRows27 --> Last74 + Last74 --> PgSelectSingle76 + First80{{"First[80∈1]"}}:::plan + PgSelectRows81[["PgSelectRows[81∈1]"]]:::plan + PgSelectRows81 --> First80 + PgSelect79 --> PgSelectRows81 + PgSelectSingle82{{"PgSelectSingle[82∈1]
ᐸmessagesᐳ"}}:::plan + First80 --> PgSelectSingle82 + PgClassExpression83{{"PgClassExpression[83∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle82 --> PgClassExpression83 + PgCursor44{{"PgCursor[44∈2]"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle29 & Access43 --> PgCursor44 + PgSelect47[["PgSelect[47∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression31 --> PgSelect47 + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First51{{"First[51∈2]"}}:::plan + PgSelectRows52[["PgSelectRows[52∈2]"]]:::plan + PgSelectRows52 --> First51 + PgSelect47 --> PgSelectRows52 + PgSelectSingle53{{"PgSelectSingle[53∈2]
ᐸusersᐳ"}}:::plan + First51 --> PgSelectSingle53 + PgClassExpression54{{"PgClassExpression[54∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression54 + PgClassExpression55{{"PgClassExpression[55∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression55 + PgSelect32[["PgSelect[32∈3]
ᐸusersᐳ"]]:::plan + Object11 & PgClassExpression31 --> PgSelect32 + First36{{"First[36∈3]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈3]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈3]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-4" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 84, 85, 11, 23, 57
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,PgPageInfo57,Constant84,Constant85 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 57

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[26], PgSelect[79]
ᐳ: 43, 59, 60, 61, 65, 66
3: PgSelectRows[27], PgSelectRows[81]
ᐳ: 68, 70, 72, 74, 76, 78, 80, 82, 83"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect26,PgSelectRows27,Access43,Access59,Object60,Lambda61,Object65,Lambda66,First68,PgSelectSingle70,PgCursor72,Last74,PgSelectSingle76,PgCursor78,PgSelect79,First80,PgSelectRows81,PgSelectSingle82,PgClassExpression83 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 43, 11

ROOT __Item{2}ᐸ27ᐳ[28]
1:
ᐳ: 29, 30, 31, 44
2: PgSelect[47]
3: PgSelectRows[52]
ᐳ: 51, 53, 54, 55"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23, 55
2: PgSelect[24], PgSelect[77]
ᐳ: 41, 58, 59, 60, 63, 64
3: PgSelectRows[25], PgSelectRows[79]
ᐳ: 66, 68, 70, 72, 74, 76, 78, 80, 81"):::bucket + class Bucket2,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgCursor44,PgSelect47,First51,PgSelectRows52,PgSelectSingle53,PgClassExpression54,PgClassExpression55 bucket2 + Bucket3("Bucket 3 (defer)
Deps: 11, 31, 29, 30

1: PgSelect[32]
2: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect24,PgSelectRows25,Access41,PgPageInfo55,Access58,Object59,Lambda60,Object63,Lambda64,First66,PgSelectSingle68,PgCursor70,Last72,PgSelectSingle74,PgCursor76,PgSelect77,First78,PgSelectRows79,PgSelectSingle80,PgClassExpression81 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11, 41

ROOT __Item{4}ᐸ25ᐳ[26]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item26,PgSelectSingle27 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5 bucket5 - Bucket6("Bucket 6 (defer)
Deps: 27, 11

1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{6}ᐸusersᐳ[36]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression37,PgClassExpression38 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 42, 43, 44
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor42,PgClassExpression43,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{8}ᐸusersᐳ[51]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression52,PgClassExpression53 bucket9 + class Bucket3,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40 bucket3 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket8 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket8 --> Bucket9 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.deopt.sql index 2957da4b82..a2cd3e62db 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.mermaid index e4de0c9324..cf5964e66c 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.mermaid @@ -9,148 +9,128 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant84{{"Constant[84∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant84 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant85{{"Constant[85∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant85 --> Lambda25 + PgPageInfo57{{"PgPageInfo[57∈0] ➊"}}:::plan + Connection23 --> PgPageInfo57 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect24[["PgSelect[24∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - Object63{{"Object[63∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access58{{"Access[58∈3]
ᐸ24.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access58 --> Object63 - PgSelect77[["PgSelect[77∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect77 - Object59{{"Object[59∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access58 --> Object59 - PgCursor70{{"PgCursor[70∈3]"}}:::plan - PgSelectSingle68{{"PgSelectSingle[68∈3]
ᐸmessagesᐳ"}}:::plan - Access41{{"Access[41∈3]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelectSingle68 & Access41 --> PgCursor70 - PgCursor76{{"PgCursor[76∈3]"}}:::plan - PgSelectSingle74{{"PgSelectSingle[74∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle74 & Access41 --> PgCursor76 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan - PgSelect24 --> PgSelectRows25 - PgSelect24 --> Access41 - PgPageInfo55{{"PgPageInfo[55∈3] ➊"}}:::plan - Connection22 --> PgPageInfo55 - PgSelect24 --> Access58 - Lambda60{{"Lambda[60∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object59 --> Lambda60 - Lambda64{{"Lambda[64∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object63 --> Lambda64 - First66{{"First[66∈3]"}}:::plan - PgSelectRows25 --> First66 - First66 --> PgSelectSingle68 - Last72{{"Last[72∈3]"}}:::plan - PgSelectRows25 --> Last72 - Last72 --> PgSelectSingle74 - First78{{"First[78∈3]"}}:::plan - PgSelectRows79[["PgSelectRows[79∈3]"]]:::plan - PgSelectRows79 --> First78 - PgSelect77 --> PgSelectRows79 - PgSelectSingle80{{"PgSelectSingle[80∈3]
ᐸmessagesᐳ"}}:::plan - First78 --> PgSelectSingle80 - PgClassExpression81{{"PgClassExpression[81∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle80 --> PgClassExpression81 - __Item26[/"__Item[26∈4]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈4]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - PgSelect30[["PgSelect[30∈6]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈6]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈6]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈6]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈6]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈6]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈7]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈7]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈8]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgSelect45[["PgSelect[45∈8]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈8]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgClassExpression43{{"PgClassExpression[43∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈8]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈8]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈8]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈9]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈9]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + PgSelect26[["PgSelect[26∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelect79[["PgSelect[79∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect79 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect79 + Object65{{"Object[65∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access59{{"Access[59∈1]
ᐸ26.hasMoreᐳ"}}:::plan + Access59 --> Object65 + Object60{{"Object[60∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access59 --> Object60 + PgCursor72{{"PgCursor[72∈1]"}}:::plan + PgSelectSingle70{{"PgSelectSingle[70∈1]
ᐸmessagesᐳ"}}:::plan + Access43{{"Access[43∈1]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelectSingle70 & Access43 --> PgCursor72 + PgCursor78{{"PgCursor[78∈1]"}}:::plan + PgSelectSingle76{{"PgSelectSingle[76∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle76 & Access43 --> PgCursor78 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgSelect26 --> Access43 + PgSelect26 --> Access59 + Lambda61{{"Lambda[61∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object60 --> Lambda61 + Lambda66{{"Lambda[66∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object65 --> Lambda66 + First68{{"First[68∈1]"}}:::plan + PgSelectRows27 --> First68 + First68 --> PgSelectSingle70 + Last74{{"Last[74∈1]"}}:::plan + PgSelectRows27 --> Last74 + Last74 --> PgSelectSingle76 + First80{{"First[80∈1]"}}:::plan + PgSelectRows81[["PgSelectRows[81∈1]"]]:::plan + PgSelectRows81 --> First80 + PgSelect79 --> PgSelectRows81 + PgSelectSingle82{{"PgSelectSingle[82∈1]
ᐸmessagesᐳ"}}:::plan + First80 --> PgSelectSingle82 + PgClassExpression83{{"PgClassExpression[83∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle82 --> PgClassExpression83 + PgCursor44{{"PgCursor[44∈2]"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle29 & Access43 --> PgCursor44 + PgSelect47[["PgSelect[47∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression31 --> PgSelect47 + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First51{{"First[51∈2]"}}:::plan + PgSelectRows52[["PgSelectRows[52∈2]"]]:::plan + PgSelectRows52 --> First51 + PgSelect47 --> PgSelectRows52 + PgSelectSingle53{{"PgSelectSingle[53∈2]
ᐸusersᐳ"}}:::plan + First51 --> PgSelectSingle53 + PgClassExpression54{{"PgClassExpression[54∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression54 + PgClassExpression55{{"PgClassExpression[55∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression55 + PgSelect32[["PgSelect[32∈3]
ᐸusersᐳ"]]:::plan + Object11 & PgClassExpression31 --> PgSelect32 + First36{{"First[36∈3]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈3]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈3]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-4" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 84, 85, 11, 23, 57
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,PgPageInfo57,Constant84,Constant85 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 57

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[26], PgSelect[79]
ᐳ: 43, 59, 60, 61, 65, 66
3: PgSelectRows[27], PgSelectRows[81]
ᐳ: 68, 70, 72, 74, 76, 78, 80, 82, 83"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect26,PgSelectRows27,Access43,Access59,Object60,Lambda61,Object65,Lambda66,First68,PgSelectSingle70,PgCursor72,Last74,PgSelectSingle76,PgCursor78,PgSelect79,First80,PgSelectRows81,PgSelectSingle82,PgClassExpression83 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 43, 11

ROOT __Item{2}ᐸ27ᐳ[28]
1:
ᐳ: 29, 30, 31, 44
2: PgSelect[47]
3: PgSelectRows[52]
ᐳ: 51, 53, 54, 55"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23, 55
2: PgSelect[24], PgSelect[77]
ᐳ: 41, 58, 59, 60, 63, 64
3: PgSelectRows[25], PgSelectRows[79]
ᐳ: 66, 68, 70, 72, 74, 76, 78, 80, 81"):::bucket + class Bucket2,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgCursor44,PgSelect47,First51,PgSelectRows52,PgSelectSingle53,PgClassExpression54,PgClassExpression55 bucket2 + Bucket3("Bucket 3 (defer)
Deps: 11, 31, 29, 30

1: PgSelect[32]
2: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect24,PgSelectRows25,Access41,PgPageInfo55,Access58,Object59,Lambda60,Object63,Lambda64,First66,PgSelectSingle68,PgCursor70,Last72,PgSelectSingle74,PgCursor76,PgSelect77,First78,PgSelectRows79,PgSelectSingle80,PgClassExpression81 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11, 41

ROOT __Item{4}ᐸ25ᐳ[26]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item26,PgSelectSingle27 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5 bucket5 - Bucket6("Bucket 6 (defer)
Deps: 27, 11

1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{6}ᐸusersᐳ[36]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression37,PgClassExpression38 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 42, 43, 44
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor42,PgClassExpression43,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{8}ᐸusersᐳ[51]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression52,PgClassExpression53 bucket9 + class Bucket3,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40 bucket3 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket8 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket8 --> Bucket9 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.sql index 2957da4b82..a2cd3e62db 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-4.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.deopt.mermaid index b1a28c90ba..d2c5ba897d 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.deopt.mermaid @@ -9,135 +9,104 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant66{{"Constant[66∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant66 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant67{{"Constant[67∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant67 --> Lambda25 + PgPageInfo51{{"PgPageInfo[51∈0] ➊"}}:::plan + Connection23 --> PgPageInfo51 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect24[["PgSelect[24∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - Object63{{"Object[63∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access58{{"Access[58∈3]
ᐸ24.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access58 --> Object63 - PgSelect65[["PgSelect[65∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect65 - Object59{{"Object[59∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access58 --> Object59 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan - PgSelect24 --> PgSelectRows25 - PgPageInfo55{{"PgPageInfo[55∈3] ➊"}}:::plan - Connection22 --> PgPageInfo55 - PgSelect24 --> Access58 - Lambda60{{"Lambda[60∈3]
ᐸhasNextPageCbᐳ"}}:::plan + PgSelect26[["PgSelect[26∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelect61[["PgSelect[61∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect61 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect61 + Object59{{"Object[59∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access53{{"Access[53∈1]
ᐸ26.hasMoreᐳ"}}:::plan + Access53 --> Object59 + Object54{{"Object[54∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access53 --> Object54 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgSelect26 --> Access53 + Lambda55{{"Lambda[55∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object54 --> Lambda55 + Lambda60{{"Lambda[60∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan Object59 --> Lambda60 - Lambda64{{"Lambda[64∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object63 --> Lambda64 - First66{{"First[66∈3]"}}:::plan - PgSelectRows67[["PgSelectRows[67∈3]"]]:::plan - PgSelectRows67 --> First66 - PgSelect65 --> PgSelectRows67 - PgSelectSingle68{{"PgSelectSingle[68∈3]
ᐸmessagesᐳ"}}:::plan - First66 --> PgSelectSingle68 - PgClassExpression69{{"PgClassExpression[69∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle68 --> PgClassExpression69 - __Item26[/"__Item[26∈4]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈4]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - Access52{{"Access[52∈4]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelect24 --> Access52 - PgSelect30[["PgSelect[30∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈5]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈5]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈5]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgSelect43[["PgSelect[43∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression42{{"PgClassExpression[42∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression42 --> PgSelect43 - PgClassExpression41{{"PgClassExpression[41∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression41 - PgSelectSingle27 --> PgClassExpression42 - First47{{"First[47∈7]"}}:::plan - PgSelectRows48[["PgSelectRows[48∈7]"]]:::plan - PgSelectRows48 --> First47 - PgSelect43 --> PgSelectRows48 - PgSelectSingle49{{"PgSelectSingle[49∈7]
ᐸusersᐳ"}}:::plan - First47 --> PgSelectSingle49 - PgClassExpression50{{"PgClassExpression[50∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression50 - PgClassExpression51{{"PgClassExpression[51∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression51 - PgCursor53{{"PgCursor[53∈9]"}}:::plan - PgSelectSingle27 & Access52 --> PgCursor53 + First62{{"First[62∈1]"}}:::plan + PgSelectRows63[["PgSelectRows[63∈1]"]]:::plan + PgSelectRows63 --> First62 + PgSelect61 --> PgSelectRows63 + PgSelectSingle64{{"PgSelectSingle[64∈1]
ᐸmessagesᐳ"}}:::plan + First62 --> PgSelectSingle64 + PgClassExpression65{{"PgClassExpression[65∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle64 --> PgClassExpression65 + PgSelect32[["PgSelect[32∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression31 --> PgSelect32 + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸmessagesᐳ"}}:::plan + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First36{{"First[36∈2]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈2]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈2]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 + Access48{{"Access[48∈2]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelect26 --> Access48 + PgCursor49{{"PgCursor[49∈3]"}}:::plan + PgSelectSingle29 & Access48 --> PgCursor49 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-5" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 66, 67, 11, 23, 51
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,PgPageInfo51,Constant66,Constant67 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 51

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[26], PgSelect[61]
ᐳ: 53, 54, 55, 59, 60
3: PgSelectRows[27], PgSelectRows[63]
ᐳ: 62, 64, 65"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect26,PgSelectRows27,Access53,Object54,Lambda55,Object59,Lambda60,PgSelect61,First62,PgSelectRows63,PgSelectSingle64,PgClassExpression65 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11, 26

ROOT __Item{2}ᐸ27ᐳ[28]
1:
ᐳ: 29, 48, 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23, 55
2: PgSelect[24], PgSelect[65]
ᐳ: 58, 59, 60, 63, 64
3: PgSelectRows[25], PgSelectRows[67]
ᐳ: 66, 68, 69"):::bucket + class Bucket2,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40,Access48 bucket2 + Bucket3("Bucket 3 (defer)
Deps: 29, 48"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect24,PgSelectRows25,PgPageInfo55,Access58,Object59,Lambda60,Object63,Lambda64,PgSelect65,First66,PgSelectRows67,PgSelectSingle68,PgClassExpression69 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 24, 11

ROOT __Item{4}ᐸ25ᐳ[26]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item26,PgSelectSingle27,Access52 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{5}ᐸusersᐳ[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression37,PgClassExpression38 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 27, 11, 52

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 41, 42
2: PgSelect[43]
3: PgSelectRows[48]
ᐳ: First[47], PgSelectSingle[49]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression41,PgClassExpression42,PgSelect43,First47,PgSelectRows48,PgSelectSingle49 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 49

ROOT PgSelectSingle{7}ᐸusersᐳ[49]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression50,PgClassExpression51 bucket8 - Bucket9("Bucket 9 (defer)
Deps: 27, 52"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgCursor53 bucket9 + class Bucket3,PgCursor49 bucket3 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 & Bucket9 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.deopt.sql index 2957da4b82..a2cd3e62db 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.mermaid index b1a28c90ba..d2c5ba897d 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.mermaid @@ -9,135 +9,104 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant66{{"Constant[66∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant66 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant67{{"Constant[67∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant67 --> Lambda25 + PgPageInfo51{{"PgPageInfo[51∈0] ➊"}}:::plan + Connection23 --> PgPageInfo51 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect24[["PgSelect[24∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - Object63{{"Object[63∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access58{{"Access[58∈3]
ᐸ24.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access58 --> Object63 - PgSelect65[["PgSelect[65∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect65 - Object59{{"Object[59∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access58 --> Object59 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan - PgSelect24 --> PgSelectRows25 - PgPageInfo55{{"PgPageInfo[55∈3] ➊"}}:::plan - Connection22 --> PgPageInfo55 - PgSelect24 --> Access58 - Lambda60{{"Lambda[60∈3]
ᐸhasNextPageCbᐳ"}}:::plan + PgSelect26[["PgSelect[26∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelect61[["PgSelect[61∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect61 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect61 + Object59{{"Object[59∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access53{{"Access[53∈1]
ᐸ26.hasMoreᐳ"}}:::plan + Access53 --> Object59 + Object54{{"Object[54∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access53 --> Object54 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgSelect26 --> Access53 + Lambda55{{"Lambda[55∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object54 --> Lambda55 + Lambda60{{"Lambda[60∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan Object59 --> Lambda60 - Lambda64{{"Lambda[64∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object63 --> Lambda64 - First66{{"First[66∈3]"}}:::plan - PgSelectRows67[["PgSelectRows[67∈3]"]]:::plan - PgSelectRows67 --> First66 - PgSelect65 --> PgSelectRows67 - PgSelectSingle68{{"PgSelectSingle[68∈3]
ᐸmessagesᐳ"}}:::plan - First66 --> PgSelectSingle68 - PgClassExpression69{{"PgClassExpression[69∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle68 --> PgClassExpression69 - __Item26[/"__Item[26∈4]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈4]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - Access52{{"Access[52∈4]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelect24 --> Access52 - PgSelect30[["PgSelect[30∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈5]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈5]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈5]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgSelect43[["PgSelect[43∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression42{{"PgClassExpression[42∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression42 --> PgSelect43 - PgClassExpression41{{"PgClassExpression[41∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression41 - PgSelectSingle27 --> PgClassExpression42 - First47{{"First[47∈7]"}}:::plan - PgSelectRows48[["PgSelectRows[48∈7]"]]:::plan - PgSelectRows48 --> First47 - PgSelect43 --> PgSelectRows48 - PgSelectSingle49{{"PgSelectSingle[49∈7]
ᐸusersᐳ"}}:::plan - First47 --> PgSelectSingle49 - PgClassExpression50{{"PgClassExpression[50∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression50 - PgClassExpression51{{"PgClassExpression[51∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression51 - PgCursor53{{"PgCursor[53∈9]"}}:::plan - PgSelectSingle27 & Access52 --> PgCursor53 + First62{{"First[62∈1]"}}:::plan + PgSelectRows63[["PgSelectRows[63∈1]"]]:::plan + PgSelectRows63 --> First62 + PgSelect61 --> PgSelectRows63 + PgSelectSingle64{{"PgSelectSingle[64∈1]
ᐸmessagesᐳ"}}:::plan + First62 --> PgSelectSingle64 + PgClassExpression65{{"PgClassExpression[65∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle64 --> PgClassExpression65 + PgSelect32[["PgSelect[32∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression31 --> PgSelect32 + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸmessagesᐳ"}}:::plan + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First36{{"First[36∈2]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈2]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈2]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 + Access48{{"Access[48∈2]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelect26 --> Access48 + PgCursor49{{"PgCursor[49∈3]"}}:::plan + PgSelectSingle29 & Access48 --> PgCursor49 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-5" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 66, 67, 11, 23, 51
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,PgPageInfo51,Constant66,Constant67 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 51

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[26], PgSelect[61]
ᐳ: 53, 54, 55, 59, 60
3: PgSelectRows[27], PgSelectRows[63]
ᐳ: 62, 64, 65"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect26,PgSelectRows27,Access53,Object54,Lambda55,Object59,Lambda60,PgSelect61,First62,PgSelectRows63,PgSelectSingle64,PgClassExpression65 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11, 26

ROOT __Item{2}ᐸ27ᐳ[28]
1:
ᐳ: 29, 48, 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23, 55
2: PgSelect[24], PgSelect[65]
ᐳ: 58, 59, 60, 63, 64
3: PgSelectRows[25], PgSelectRows[67]
ᐳ: 66, 68, 69"):::bucket + class Bucket2,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40,Access48 bucket2 + Bucket3("Bucket 3 (defer)
Deps: 29, 48"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect24,PgSelectRows25,PgPageInfo55,Access58,Object59,Lambda60,Object63,Lambda64,PgSelect65,First66,PgSelectRows67,PgSelectSingle68,PgClassExpression69 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 24, 11

ROOT __Item{4}ᐸ25ᐳ[26]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item26,PgSelectSingle27,Access52 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{5}ᐸusersᐳ[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression37,PgClassExpression38 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 27, 11, 52

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 41, 42
2: PgSelect[43]
3: PgSelectRows[48]
ᐳ: First[47], PgSelectSingle[49]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression41,PgClassExpression42,PgSelect43,First47,PgSelectRows48,PgSelectSingle49 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 49

ROOT PgSelectSingle{7}ᐸusersᐳ[49]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression50,PgClassExpression51 bucket8 - Bucket9("Bucket 9 (defer)
Deps: 27, 52"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgCursor53 bucket9 + class Bucket3,PgCursor49 bucket3 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 & Bucket9 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.sql index 2957da4b82..a2cd3e62db 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-5.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.deopt.mermaid index 14c6c416aa..74cf536834 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.deopt.mermaid @@ -9,117 +9,96 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant55{{"Constant[55∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant55 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant56{{"Constant[56∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant56 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect24[["PgSelect[24∈3]
ᐸmessagesᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan - PgSelect24 --> PgSelectRows25 - __Item26[/"__Item[26∈4]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈4]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - Access41{{"Access[41∈4]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelect24 --> Access41 - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelect30[["PgSelect[30∈6]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈6]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈6]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈6]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈6]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈7]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈7]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈8]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgClassExpression43{{"PgClassExpression[43∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelect45[["PgSelect[45∈9]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈9]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈9]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈9]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈9]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈10]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈10]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + PgSelect26[["PgSelect[26∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgCursor44{{"PgCursor[44∈2]"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸmessagesᐳ"}}:::plan + Access43{{"Access[43∈2]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelectSingle29 & Access43 --> PgCursor44 + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression31 + PgSelect26 --> Access43 + PgSelect32[["PgSelect[32∈3]
ᐸusersᐳ"]]:::plan + Object11 & PgClassExpression31 --> PgSelect32 + First36{{"First[36∈3]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈3]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈3]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 + PgSelect46[["PgSelect[46∈4]
ᐸusersᐳ"]]:::plan + Object11 & PgClassExpression31 --> PgSelect46 + First50{{"First[50∈4]"}}:::plan + PgSelectRows51[["PgSelectRows[51∈4]"]]:::plan + PgSelectRows51 --> First50 + PgSelect46 --> PgSelectRows51 + PgSelectSingle52{{"PgSelectSingle[52∈4]
ᐸusersᐳ"}}:::plan + First50 --> PgSelectSingle52 + PgClassExpression53{{"PgClassExpression[53∈4]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle52 --> PgClassExpression53 + PgClassExpression54{{"PgClassExpression[54∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle52 --> PgClassExpression54 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-6" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 55, 56, 11, 23
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant55,Constant56 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect26,PgSelectRows27 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 26, 11

ROOT __Item{2}ᐸ27ᐳ[28]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23
2: PgSelect[24]
3: PgSelectRows[25]"):::bucket + class Bucket2,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,Access43,PgCursor44 bucket2 + Bucket3("Bucket 3 (defer)
Deps: 11, 31, 29

1: PgSelect[32]
2: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect24,PgSelectRows25 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 24, 11

ROOT __Item{4}ᐸ25ᐳ[26]"):::bucket + class Bucket3,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40 bucket3 + Bucket4("Bucket 4 (defer)
Deps: 11, 31, 29

1: PgSelect[46]
2: PgSelectRows[51]
ᐳ: 50, 52, 53, 54"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item26,PgSelectSingle27,Access41 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28 bucket5 - Bucket6("Bucket 6 (defer)
Deps: 27, 11

1:
ᐳ: PgClassExpression[29]
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{6}ᐸusersᐳ[36]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression37,PgClassExpression38 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor42,PgClassExpression43 bucket8 - Bucket9("Bucket 9 (defer)
Deps: 27, 11

1:
ᐳ: PgClassExpression[44]
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{9}ᐸusersᐳ[51]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression52,PgClassExpression53 bucket10 + class Bucket4,PgSelect46,First50,PgSelectRows51,PgSelectSingle52,PgClassExpression53,PgClassExpression54 bucket4 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket8 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket8 --> Bucket9 - Bucket9 --> Bucket10 + Bucket2 --> Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.deopt.sql index e8a5df2dec..2c795c5afc 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.mermaid index 14c6c416aa..74cf536834 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.mermaid @@ -9,117 +9,96 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant55{{"Constant[55∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant55 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant56{{"Constant[56∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant56 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect24[["PgSelect[24∈3]
ᐸmessagesᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan - PgSelect24 --> PgSelectRows25 - __Item26[/"__Item[26∈4]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈4]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - Access41{{"Access[41∈4]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelect24 --> Access41 - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelect30[["PgSelect[30∈6]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈6]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈6]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈6]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈6]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈7]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈7]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈8]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgClassExpression43{{"PgClassExpression[43∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelect45[["PgSelect[45∈9]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈9]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈9]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈9]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈9]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈10]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈10]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + PgSelect26[["PgSelect[26∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgCursor44{{"PgCursor[44∈2]"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸmessagesᐳ"}}:::plan + Access43{{"Access[43∈2]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelectSingle29 & Access43 --> PgCursor44 + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression31 + PgSelect26 --> Access43 + PgSelect32[["PgSelect[32∈3]
ᐸusersᐳ"]]:::plan + Object11 & PgClassExpression31 --> PgSelect32 + First36{{"First[36∈3]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈3]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈3]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 + PgSelect46[["PgSelect[46∈4]
ᐸusersᐳ"]]:::plan + Object11 & PgClassExpression31 --> PgSelect46 + First50{{"First[50∈4]"}}:::plan + PgSelectRows51[["PgSelectRows[51∈4]"]]:::plan + PgSelectRows51 --> First50 + PgSelect46 --> PgSelectRows51 + PgSelectSingle52{{"PgSelectSingle[52∈4]
ᐸusersᐳ"}}:::plan + First50 --> PgSelectSingle52 + PgClassExpression53{{"PgClassExpression[53∈4]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle52 --> PgClassExpression53 + PgClassExpression54{{"PgClassExpression[54∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle52 --> PgClassExpression54 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-6" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 55, 56, 11, 23
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant55,Constant56 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect26,PgSelectRows27 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 26, 11

ROOT __Item{2}ᐸ27ᐳ[28]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23
2: PgSelect[24]
3: PgSelectRows[25]"):::bucket + class Bucket2,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,Access43,PgCursor44 bucket2 + Bucket3("Bucket 3 (defer)
Deps: 11, 31, 29

1: PgSelect[32]
2: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect24,PgSelectRows25 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 24, 11

ROOT __Item{4}ᐸ25ᐳ[26]"):::bucket + class Bucket3,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40 bucket3 + Bucket4("Bucket 4 (defer)
Deps: 11, 31, 29

1: PgSelect[46]
2: PgSelectRows[51]
ᐳ: 50, 52, 53, 54"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item26,PgSelectSingle27,Access41 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28 bucket5 - Bucket6("Bucket 6 (defer)
Deps: 27, 11

1:
ᐳ: PgClassExpression[29]
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{6}ᐸusersᐳ[36]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression37,PgClassExpression38 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor42,PgClassExpression43 bucket8 - Bucket9("Bucket 9 (defer)
Deps: 27, 11

1:
ᐳ: PgClassExpression[44]
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{9}ᐸusersᐳ[51]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression52,PgClassExpression53 bucket10 + class Bucket4,PgSelect46,First50,PgSelectRows51,PgSelectSingle52,PgClassExpression53,PgClassExpression54 bucket4 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket8 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket8 --> Bucket9 - Bucket9 --> Bucket10 + Bucket2 --> Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.sql index e8a5df2dec..2c795c5afc 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-6.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.deopt.mermaid index 8b4fc213f4..e1793b43f9 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.deopt.mermaid @@ -9,121 +9,100 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant55{{"Constant[55∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant55 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression17 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression23 - PgSelect24[["PgSelect[24∈4]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - PgSelectRows25[["PgSelectRows[25∈4]"]]:::plan - PgSelect24 --> PgSelectRows25 - __Item26[/"__Item[26∈5]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈5]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - Access41{{"Access[41∈5]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelect24 --> Access41 - PgClassExpression28{{"PgClassExpression[28∈6]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelect30[["PgSelect[30∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈7]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈7]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈7]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈9]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgClassExpression43{{"PgClassExpression[43∈9]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelect45[["PgSelect[45∈10]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈10]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈10]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈10]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈10]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈11]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈11]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + Constant56{{"Constant[56∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelect26[["PgSelect[26∈2]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25[["Lambda[25∈2] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + Constant56 --> Lambda25 + PgSelectRows27[["PgSelectRows[27∈2]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgCursor44{{"PgCursor[44∈3]"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈3]
ᐸmessagesᐳ"}}:::plan + Access43{{"Access[43∈3]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelectSingle29 & Access43 --> PgCursor44 + __Item28[/"__Item[28∈3]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression31 + PgSelect26 --> Access43 + PgSelect32[["PgSelect[32∈4]
ᐸusersᐳ"]]:::plan + Object11 & PgClassExpression31 --> PgSelect32 + First36{{"First[36∈4]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈4]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈4]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈4]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 + PgSelect46[["PgSelect[46∈5]
ᐸusersᐳ"]]:::plan + Object11 & PgClassExpression31 --> PgSelect46 + First50{{"First[50∈5]"}}:::plan + PgSelectRows51[["PgSelectRows[51∈5]"]]:::plan + PgSelectRows51 --> First50 + PgSelect46 --> PgSelectRows51 + PgSelectSingle52{{"PgSelectSingle[52∈5]
ᐸusersᐳ"}}:::plan + First50 --> PgSelectSingle52 + PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle52 --> PgClassExpression53 + PgClassExpression54{{"PgClassExpression[54∈5]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle52 --> PgClassExpression54 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-7" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 55, 56, 11, 23
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Constant55,Constant56 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 56, 11, 23, 6

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16 bucket1 + Bucket2("Bucket 2 (defer)
Deps: 15, 56, 11, 23, 6

1: Lambda[25]
ᐳ: 18, 24
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (defer)
Deps: 14, 11, 22"):::bucket + class Bucket2,PgClassExpression18,PgClassExpression24,Lambda25,PgSelect26,PgSelectRows27 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 26, 11

ROOT __Item{3}ᐸ27ᐳ[28]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 11, 17, 23, 22

ROOT Connectionᐸ18ᐳ[22]
1: PgSelect[24]
2: PgSelectRows[25]"):::bucket + class Bucket3,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,Access43,PgCursor44 bucket3 + Bucket4("Bucket 4 (defer)
Deps: 11, 31, 29

1: PgSelect[32]
2: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect24,PgSelectRows25 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 24, 11

ROOT __Item{5}ᐸ25ᐳ[26]"):::bucket + class Bucket4,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40 bucket4 + Bucket5("Bucket 5 (defer)
Deps: 11, 31, 29

1: PgSelect[46]
2: PgSelectRows[51]
ᐳ: 50, 52, 53, 54"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item26,PgSelectSingle27,Access41 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression28 bucket6 - Bucket7("Bucket 7 (defer)
Deps: 27, 11

1:
ᐳ: PgClassExpression[29]
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{7}ᐸusersᐳ[36]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression37,PgClassExpression38 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgCursor42,PgClassExpression43 bucket9 - Bucket10("Bucket 10 (defer)
Deps: 27, 11

1:
ᐳ: PgClassExpression[44]
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{10}ᐸusersᐳ[51]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression52,PgClassExpression53 bucket11 + class Bucket5,PgSelect46,First50,PgSelectRows51,PgSelectSingle52,PgClassExpression53,PgClassExpression54 bucket5 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket9 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 - Bucket9 --> Bucket10 - Bucket10 --> Bucket11 + Bucket3 --> Bucket4 & Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.deopt.sql index e8a5df2dec..2c795c5afc 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.mermaid index 8b4fc213f4..e1793b43f9 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.mermaid @@ -9,121 +9,100 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant55{{"Constant[55∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant55 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression17 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression23 - PgSelect24[["PgSelect[24∈4]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - PgSelectRows25[["PgSelectRows[25∈4]"]]:::plan - PgSelect24 --> PgSelectRows25 - __Item26[/"__Item[26∈5]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈5]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - Access41{{"Access[41∈5]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelect24 --> Access41 - PgClassExpression28{{"PgClassExpression[28∈6]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelect30[["PgSelect[30∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈7]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈7]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈7]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈9]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgClassExpression43{{"PgClassExpression[43∈9]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelect45[["PgSelect[45∈10]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈10]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈10]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈10]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈10]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈11]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈11]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + Constant56{{"Constant[56∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelect26[["PgSelect[26∈2]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25[["Lambda[25∈2] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + Constant56 --> Lambda25 + PgSelectRows27[["PgSelectRows[27∈2]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgCursor44{{"PgCursor[44∈3]"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈3]
ᐸmessagesᐳ"}}:::plan + Access43{{"Access[43∈3]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelectSingle29 & Access43 --> PgCursor44 + __Item28[/"__Item[28∈3]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression31 + PgSelect26 --> Access43 + PgSelect32[["PgSelect[32∈4]
ᐸusersᐳ"]]:::plan + Object11 & PgClassExpression31 --> PgSelect32 + First36{{"First[36∈4]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈4]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈4]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈4]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 + PgSelect46[["PgSelect[46∈5]
ᐸusersᐳ"]]:::plan + Object11 & PgClassExpression31 --> PgSelect46 + First50{{"First[50∈5]"}}:::plan + PgSelectRows51[["PgSelectRows[51∈5]"]]:::plan + PgSelectRows51 --> First50 + PgSelect46 --> PgSelectRows51 + PgSelectSingle52{{"PgSelectSingle[52∈5]
ᐸusersᐳ"}}:::plan + First50 --> PgSelectSingle52 + PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle52 --> PgClassExpression53 + PgClassExpression54{{"PgClassExpression[54∈5]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle52 --> PgClassExpression54 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.defer-7" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 55, 56, 11, 23
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Constant55,Constant56 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 56, 11, 23, 6

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16 bucket1 + Bucket2("Bucket 2 (defer)
Deps: 15, 56, 11, 23, 6

1: Lambda[25]
ᐳ: 18, 24
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (defer)
Deps: 14, 11, 22"):::bucket + class Bucket2,PgClassExpression18,PgClassExpression24,Lambda25,PgSelect26,PgSelectRows27 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 26, 11

ROOT __Item{3}ᐸ27ᐳ[28]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 11, 17, 23, 22

ROOT Connectionᐸ18ᐳ[22]
1: PgSelect[24]
2: PgSelectRows[25]"):::bucket + class Bucket3,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,Access43,PgCursor44 bucket3 + Bucket4("Bucket 4 (defer)
Deps: 11, 31, 29

1: PgSelect[32]
2: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect24,PgSelectRows25 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 24, 11

ROOT __Item{5}ᐸ25ᐳ[26]"):::bucket + class Bucket4,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40 bucket4 + Bucket5("Bucket 5 (defer)
Deps: 11, 31, 29

1: PgSelect[46]
2: PgSelectRows[51]
ᐳ: 50, 52, 53, 54"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item26,PgSelectSingle27,Access41 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression28 bucket6 - Bucket7("Bucket 7 (defer)
Deps: 27, 11

1:
ᐳ: PgClassExpression[29]
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{7}ᐸusersᐳ[36]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression37,PgClassExpression38 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{5}ᐸmessagesᐳ[27]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgCursor42,PgClassExpression43 bucket9 - Bucket10("Bucket 10 (defer)
Deps: 27, 11

1:
ᐳ: PgClassExpression[44]
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{10}ᐸusersᐳ[51]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression52,PgClassExpression53 bucket11 + class Bucket5,PgSelect46,First50,PgSelectRows51,PgSelectSingle52,PgClassExpression53,PgClassExpression54 bucket5 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket9 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 - Bucket9 --> Bucket10 - Bucket10 --> Bucket11 + Bucket3 --> Bucket4 & Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.sql index e8a5df2dec..2c795c5afc 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.defer-7.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.deopt.mermaid index 606d9f4207..e61a967c98 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.deopt.mermaid @@ -9,144 +9,112 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant78{{"Constant[78∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant78 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant79{{"Constant[79∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant79 --> Lambda25 + PgPageInfo51{{"PgPageInfo[51∈0] ➊"}}:::plan + Connection23 --> PgPageInfo51 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect24[["PgSelect[24∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - Object63{{"Object[63∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access58{{"Access[58∈3]
ᐸ24.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access58 --> Object63 - PgSelect77[["PgSelect[77∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect77 - Object59{{"Object[59∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access58 --> Object59 - PgCursor70{{"PgCursor[70∈3]"}}:::plan - PgSelectSingle68{{"PgSelectSingle[68∈3]
ᐸmessagesᐳ"}}:::plan - Access41{{"Access[41∈3]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelectSingle68 & Access41 --> PgCursor70 - PgCursor76{{"PgCursor[76∈3]"}}:::plan - PgSelectSingle74{{"PgSelectSingle[74∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle74 & Access41 --> PgCursor76 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan - PgSelect24 --> PgSelectRows25 - PgSelect24 --> Access41 - PgPageInfo55{{"PgPageInfo[55∈3] ➊"}}:::plan - Connection22 --> PgPageInfo55 - PgSelect24 --> Access58 - Lambda60{{"Lambda[60∈3]
ᐸhasNextPageCbᐳ"}}:::plan + PgSelect26[["PgSelect[26∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelect73[["PgSelect[73∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect73 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect73 + Object59{{"Object[59∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access53{{"Access[53∈1]
ᐸ26.hasMoreᐳ"}}:::plan + Access53 --> Object59 + Object54{{"Object[54∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access53 --> Object54 + PgCursor66{{"PgCursor[66∈1]"}}:::plan + PgSelectSingle64{{"PgSelectSingle[64∈1]
ᐸmessagesᐳ"}}:::plan + Access43{{"Access[43∈1]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelectSingle64 & Access43 --> PgCursor66 + PgCursor72{{"PgCursor[72∈1]"}}:::plan + PgSelectSingle70{{"PgSelectSingle[70∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle70 & Access43 --> PgCursor72 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgSelect26 --> Access43 + PgSelect26 --> Access53 + Lambda55{{"Lambda[55∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object54 --> Lambda55 + Lambda60{{"Lambda[60∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan Object59 --> Lambda60 - Lambda64{{"Lambda[64∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object63 --> Lambda64 - First66{{"First[66∈3]"}}:::plan - PgSelectRows25 --> First66 - First66 --> PgSelectSingle68 - Last72{{"Last[72∈3]"}}:::plan - PgSelectRows25 --> Last72 - Last72 --> PgSelectSingle74 - First78{{"First[78∈3]"}}:::plan - PgSelectRows79[["PgSelectRows[79∈3]"]]:::plan - PgSelectRows79 --> First78 - PgSelect77 --> PgSelectRows79 - PgSelectSingle80{{"PgSelectSingle[80∈3]
ᐸmessagesᐳ"}}:::plan - First78 --> PgSelectSingle80 - PgClassExpression81{{"PgClassExpression[81∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle80 --> PgClassExpression81 - __Item26[/"__Item[26∈4]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈4]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - PgSelect30[["PgSelect[30∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈5]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈5]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈5]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈7]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgSelect45[["PgSelect[45∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgClassExpression43{{"PgClassExpression[43∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈7]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈7]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈7]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + First62{{"First[62∈1]"}}:::plan + PgSelectRows27 --> First62 + First62 --> PgSelectSingle64 + Last68{{"Last[68∈1]"}}:::plan + PgSelectRows27 --> Last68 + Last68 --> PgSelectSingle70 + First74{{"First[74∈1]"}}:::plan + PgSelectRows75[["PgSelectRows[75∈1]"]]:::plan + PgSelectRows75 --> First74 + PgSelect73 --> PgSelectRows75 + PgSelectSingle76{{"PgSelectSingle[76∈1]
ᐸmessagesᐳ"}}:::plan + First74 --> PgSelectSingle76 + PgClassExpression77{{"PgClassExpression[77∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle76 --> PgClassExpression77 + PgSelect32[["PgSelect[32∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression31 --> PgSelect32 + PgCursor44{{"PgCursor[44∈2]"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle29 & Access43 --> PgCursor44 + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First36{{"First[36∈2]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈2]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈2]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 78, 79, 11, 23, 51
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,PgPageInfo51,Constant78,Constant79 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 51

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[26], PgSelect[73]
ᐳ: 43, 53, 54, 55, 59, 60
3: PgSelectRows[27], PgSelectRows[75]
ᐳ: 62, 64, 66, 68, 70, 72, 74, 76, 77"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect26,PgSelectRows27,Access43,Access53,Object54,Lambda55,Object59,Lambda60,First62,PgSelectSingle64,PgCursor66,Last68,PgSelectSingle70,PgCursor72,PgSelect73,First74,PgSelectRows75,PgSelectSingle76,PgClassExpression77 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11, 43

ROOT __Item{2}ᐸ27ᐳ[28]
1:
ᐳ: 29, 30, 31, 44
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23, 55
2: PgSelect[24], PgSelect[77]
ᐳ: 41, 58, 59, 60, 63, 64
3: PgSelectRows[25], PgSelectRows[79]
ᐳ: 66, 68, 70, 72, 74, 76, 78, 80, 81"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect24,PgSelectRows25,Access41,PgPageInfo55,Access58,Object59,Lambda60,Object63,Lambda64,First66,PgSelectSingle68,PgCursor70,Last72,PgSelectSingle74,PgCursor76,PgSelect77,First78,PgSelectRows79,PgSelectSingle80,PgClassExpression81 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11, 41

ROOT __Item{4}ᐸ25ᐳ[26]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item26,PgSelectSingle27 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{5}ᐸusersᐳ[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression37,PgClassExpression38 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 42, 43, 44
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgCursor42,PgClassExpression43,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{7}ᐸusersᐳ[51]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression52,PgClassExpression53 bucket8 + class Bucket2,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40,PgCursor44 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.deopt.sql index 2957da4b82..a2cd3e62db 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.mermaid index 606d9f4207..e61a967c98 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.mermaid @@ -9,144 +9,112 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant78{{"Constant[78∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant78 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant79{{"Constant[79∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant79 --> Lambda25 + PgPageInfo51{{"PgPageInfo[51∈0] ➊"}}:::plan + Connection23 --> PgPageInfo51 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect24[["PgSelect[24∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - Object63{{"Object[63∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access58{{"Access[58∈3]
ᐸ24.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access58 --> Object63 - PgSelect77[["PgSelect[77∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect77 - Object59{{"Object[59∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access58 --> Object59 - PgCursor70{{"PgCursor[70∈3]"}}:::plan - PgSelectSingle68{{"PgSelectSingle[68∈3]
ᐸmessagesᐳ"}}:::plan - Access41{{"Access[41∈3]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelectSingle68 & Access41 --> PgCursor70 - PgCursor76{{"PgCursor[76∈3]"}}:::plan - PgSelectSingle74{{"PgSelectSingle[74∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle74 & Access41 --> PgCursor76 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan - PgSelect24 --> PgSelectRows25 - PgSelect24 --> Access41 - PgPageInfo55{{"PgPageInfo[55∈3] ➊"}}:::plan - Connection22 --> PgPageInfo55 - PgSelect24 --> Access58 - Lambda60{{"Lambda[60∈3]
ᐸhasNextPageCbᐳ"}}:::plan + PgSelect26[["PgSelect[26∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect26 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect26 + PgSelect73[["PgSelect[73∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect73 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect73 + Object59{{"Object[59∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access53{{"Access[53∈1]
ᐸ26.hasMoreᐳ"}}:::plan + Access53 --> Object59 + Object54{{"Object[54∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access53 --> Object54 + PgCursor66{{"PgCursor[66∈1]"}}:::plan + PgSelectSingle64{{"PgSelectSingle[64∈1]
ᐸmessagesᐳ"}}:::plan + Access43{{"Access[43∈1]
ᐸ26.cursorDetailsᐳ"}}:::plan + PgSelectSingle64 & Access43 --> PgCursor66 + PgCursor72{{"PgCursor[72∈1]"}}:::plan + PgSelectSingle70{{"PgSelectSingle[70∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle70 & Access43 --> PgCursor72 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelect26 --> PgSelectRows27 + PgSelect26 --> Access43 + PgSelect26 --> Access53 + Lambda55{{"Lambda[55∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object54 --> Lambda55 + Lambda60{{"Lambda[60∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan Object59 --> Lambda60 - Lambda64{{"Lambda[64∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object63 --> Lambda64 - First66{{"First[66∈3]"}}:::plan - PgSelectRows25 --> First66 - First66 --> PgSelectSingle68 - Last72{{"Last[72∈3]"}}:::plan - PgSelectRows25 --> Last72 - Last72 --> PgSelectSingle74 - First78{{"First[78∈3]"}}:::plan - PgSelectRows79[["PgSelectRows[79∈3]"]]:::plan - PgSelectRows79 --> First78 - PgSelect77 --> PgSelectRows79 - PgSelectSingle80{{"PgSelectSingle[80∈3]
ᐸmessagesᐳ"}}:::plan - First78 --> PgSelectSingle80 - PgClassExpression81{{"PgClassExpression[81∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle80 --> PgClassExpression81 - __Item26[/"__Item[26∈4]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈4]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - PgSelect30[["PgSelect[30∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈5]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈5]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈5]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈7]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgSelect45[["PgSelect[45∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgClassExpression43{{"PgClassExpression[43∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈7]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈7]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈7]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + First62{{"First[62∈1]"}}:::plan + PgSelectRows27 --> First62 + First62 --> PgSelectSingle64 + Last68{{"Last[68∈1]"}}:::plan + PgSelectRows27 --> Last68 + Last68 --> PgSelectSingle70 + First74{{"First[74∈1]"}}:::plan + PgSelectRows75[["PgSelectRows[75∈1]"]]:::plan + PgSelectRows75 --> First74 + PgSelect73 --> PgSelectRows75 + PgSelectSingle76{{"PgSelectSingle[76∈1]
ᐸmessagesᐳ"}}:::plan + First74 --> PgSelectSingle76 + PgClassExpression77{{"PgClassExpression[77∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle76 --> PgClassExpression77 + PgSelect32[["PgSelect[32∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression31 --> PgSelect32 + PgCursor44{{"PgCursor[44∈2]"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle29 & Access43 --> PgCursor44 + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First36{{"First[36∈2]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈2]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈2]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 78, 79, 11, 23, 51
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,PgPageInfo51,Constant78,Constant79 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 51

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[26], PgSelect[73]
ᐳ: 43, 53, 54, 55, 59, 60
3: PgSelectRows[27], PgSelectRows[75]
ᐳ: 62, 64, 66, 68, 70, 72, 74, 76, 77"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect26,PgSelectRows27,Access43,Access53,Object54,Lambda55,Object59,Lambda60,First62,PgSelectSingle64,PgCursor66,Last68,PgSelectSingle70,PgCursor72,PgSelect73,First74,PgSelectRows75,PgSelectSingle76,PgClassExpression77 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11, 43

ROOT __Item{2}ᐸ27ᐳ[28]
1:
ᐳ: 29, 30, 31, 44
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23, 55
2: PgSelect[24], PgSelect[77]
ᐳ: 41, 58, 59, 60, 63, 64
3: PgSelectRows[25], PgSelectRows[79]
ᐳ: 66, 68, 70, 72, 74, 76, 78, 80, 81"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect24,PgSelectRows25,Access41,PgPageInfo55,Access58,Object59,Lambda60,Object63,Lambda64,First66,PgSelectSingle68,PgCursor70,Last72,PgSelectSingle74,PgCursor76,PgSelect77,First78,PgSelectRows79,PgSelectSingle80,PgClassExpression81 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11, 41

ROOT __Item{4}ᐸ25ᐳ[26]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item26,PgSelectSingle27 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{5}ᐸusersᐳ[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression37,PgClassExpression38 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 42, 43, 44
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgCursor42,PgClassExpression43,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{7}ᐸusersᐳ[51]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression52,PgClassExpression53 bucket8 + class Bucket2,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40,PgCursor44 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.sql index 2957da4b82..a2cd3e62db 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.deopt.mermaid index 618049cfa8..2c831f2c60 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.deopt.mermaid @@ -9,85 +9,75 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant43{{"Constant[43∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant43 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant44{{"Constant[44∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant44 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect26[["PgSelect[26∈3@s]
ᐸmessagesᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect26 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows27[["PgSelectRows[27∈3@s]"]]:::plan - PgSelect26 --> PgSelectRows27 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸmessagesᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgSelect32[["PgSelect[32∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression31 --> PgSelect32 - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgSelectSingle29 --> PgClassExpression31 - First36{{"First[36∈5]"}}:::plan - PgSelectRows37[["PgSelectRows[37∈5]"]]:::plan - PgSelectRows37 --> First36 - PgSelect32 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈5]
ᐸusersᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 + Constant26{{"Constant[26∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect28[["PgSelect[28∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect28 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows29[["PgSelectRows[29∈1@s]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-1" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 24, 25, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 26, 27, 43, 44, 11, 23
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22,Constant24,Constant25 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 24, 25, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant26,Constant27,Constant43,Constant44 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 26, 27

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[28]
3: PgSelectRows[29]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect28,PgSelectRows29 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect26,PgSelectRows27 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 29, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[29]
1:
ᐳ: 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: First[36], PgSelectSingle[38]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{5}ᐸusersᐳ[38]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression39,PgClassExpression40 bucket6 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.deopt.sql index ad95fbc7e0..9431ed37c5 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.mermaid index 618049cfa8..2c831f2c60 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.mermaid @@ -9,85 +9,75 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant43{{"Constant[43∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant43 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant44{{"Constant[44∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant44 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect26[["PgSelect[26∈3@s]
ᐸmessagesᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect26 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows27[["PgSelectRows[27∈3@s]"]]:::plan - PgSelect26 --> PgSelectRows27 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸmessagesᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgSelect32[["PgSelect[32∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression31 --> PgSelect32 - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgSelectSingle29 --> PgClassExpression31 - First36{{"First[36∈5]"}}:::plan - PgSelectRows37[["PgSelectRows[37∈5]"]]:::plan - PgSelectRows37 --> First36 - PgSelect32 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈5]
ᐸusersᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 + Constant26{{"Constant[26∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect28[["PgSelect[28∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect28 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows29[["PgSelectRows[29∈1@s]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-1" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 24, 25, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 26, 27, 43, 44, 11, 23
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22,Constant24,Constant25 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 24, 25, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant26,Constant27,Constant43,Constant44 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 26, 27

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[28]
3: PgSelectRows[29]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect28,PgSelectRows29 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect26,PgSelectRows27 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 29, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[29]
1:
ᐳ: 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: First[36], PgSelectSingle[38]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{5}ᐸusersᐳ[38]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression39,PgClassExpression40 bucket6 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.sql index ad95fbc7e0..9431ed37c5 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-1.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.deopt.mermaid index 5a34a4c00c..56ab195f03 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.deopt.mermaid @@ -9,148 +9,133 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant76{{"Constant[76∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant76 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant77{{"Constant[77∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant77 --> Lambda25 + PgPageInfo61{{"PgPageInfo[61∈0] ➊"}}:::plan + Connection23 --> PgPageInfo61 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect26[["PgSelect[26∈3@s]
ᐸmessagesᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect26 - PgSelect41[["PgSelect[41∈3@s]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect41 - PgSelect58[["PgSelect[58∈3]
ᐸmessages+1ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect58 - Object67{{"Object[67∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access62{{"Access[62∈3]
ᐸ58.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access62 --> Object67 - PgSelect69[["PgSelect[69∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect69 - Object63{{"Object[63∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access62 --> Object63 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows27[["PgSelectRows[27∈3@s]"]]:::plan - PgSelect26 --> PgSelectRows27 - PgSelectRows42[["PgSelectRows[42∈3@s]"]]:::plan - PgSelect41 --> PgSelectRows42 - PgPageInfo59{{"PgPageInfo[59∈3] ➊"}}:::plan - Connection22 --> PgPageInfo59 - PgSelect58 --> Access62 - Lambda64{{"Lambda[64∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object63 --> Lambda64 - Lambda68{{"Lambda[68∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object67 --> Lambda68 - First70{{"First[70∈3]"}}:::plan - PgSelectRows71[["PgSelectRows[71∈3]"]]:::plan - PgSelectRows71 --> First70 - PgSelect69 --> PgSelectRows71 - PgSelectSingle72{{"PgSelectSingle[72∈3]
ᐸmessagesᐳ"}}:::plan - First70 --> PgSelectSingle72 - PgClassExpression73{{"PgClassExpression[73∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle72 --> PgClassExpression73 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸmessagesᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgSelect32[["PgSelect[32∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression31 --> PgSelect32 - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgSelectSingle29 --> PgClassExpression31 - First36{{"First[36∈5]"}}:::plan - PgSelectRows37[["PgSelectRows[37∈5]"]]:::plan - PgSelectRows37 --> First36 - PgSelect32 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈5]
ᐸusersᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 - __Item43[/"__Item[43∈7]
ᐸ42ᐳ"\]:::itemplan - PgSelectRows42 ==> __Item43 - PgSelectSingle44{{"PgSelectSingle[44∈7]
ᐸmessagesᐳ"}}:::plan - __Item43 --> PgSelectSingle44 - Access45{{"Access[45∈7]
ᐸ41.cursorDetailsᐳ"}}:::plan - PgSelect41 --> Access45 - PgCursor46{{"PgCursor[46∈8]"}}:::plan - PgSelectSingle44 & Access45 --> PgCursor46 - PgSelect49[["PgSelect[49∈8]
ᐸusersᐳ"]]:::plan - PgClassExpression48{{"PgClassExpression[48∈8]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression48 --> PgSelect49 - PgClassExpression47{{"PgClassExpression[47∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression47 - PgSelectSingle44 --> PgClassExpression48 - First53{{"First[53∈8]"}}:::plan - PgSelectRows54[["PgSelectRows[54∈8]"]]:::plan - PgSelectRows54 --> First53 - PgSelect49 --> PgSelectRows54 - PgSelectSingle55{{"PgSelectSingle[55∈8]
ᐸusersᐳ"}}:::plan - First53 --> PgSelectSingle55 - PgClassExpression56{{"PgClassExpression[56∈9]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈9]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression57 + Constant26{{"Constant[26∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect28[["PgSelect[28∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect28 + PgSelect43[["PgSelect[43∈1@s]
ᐸmessagesᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect43 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect43 + PgSelect60[["PgSelect[60∈1]
ᐸmessages+1ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect60 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect60 + PgSelect71[["PgSelect[71∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect71 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect71 + Object69{{"Object[69∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access63{{"Access[63∈1]
ᐸ60.hasMoreᐳ"}}:::plan + Access63 --> Object69 + Object64{{"Object[64∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access63 --> Object64 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows29[["PgSelectRows[29∈1@s]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelectRows44[["PgSelectRows[44∈1@s]"]]:::plan + PgSelect43 --> PgSelectRows44 + PgSelect60 --> Access63 + Lambda65{{"Lambda[65∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object64 --> Lambda65 + Lambda70{{"Lambda[70∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object69 --> Lambda70 + First72{{"First[72∈1]"}}:::plan + PgSelectRows73[["PgSelectRows[73∈1]"]]:::plan + PgSelectRows73 --> First72 + PgSelect71 --> PgSelectRows73 + PgSelectSingle74{{"PgSelectSingle[74∈1]
ᐸmessagesᐳ"}}:::plan + First72 --> PgSelectSingle74 + PgClassExpression75{{"PgClassExpression[75∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle74 --> PgClassExpression75 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 + PgCursor48{{"PgCursor[48∈3]"}}:::plan + PgSelectSingle46{{"PgSelectSingle[46∈3]
ᐸmessagesᐳ"}}:::plan + Access47{{"Access[47∈3]
ᐸ43.cursorDetailsᐳ"}}:::plan + PgSelectSingle46 & Access47 --> PgCursor48 + PgSelect51[["PgSelect[51∈3]
ᐸusersᐳ"]]:::plan + PgClassExpression50{{"PgClassExpression[50∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression50 --> PgSelect51 + __Item45[/"__Item[45∈3]
ᐸ44ᐳ"\]:::itemplan + PgSelectRows44 ==> __Item45 + __Item45 --> PgSelectSingle46 + PgSelect43 --> Access47 + PgClassExpression49{{"PgClassExpression[49∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression49 + PgSelectSingle46 --> PgClassExpression50 + First55{{"First[55∈3]"}}:::plan + PgSelectRows56[["PgSelectRows[56∈3]"]]:::plan + PgSelectRows56 --> First55 + PgSelect51 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈3]
ᐸusersᐳ"}}:::plan + First55 --> PgSelectSingle57 + PgClassExpression58{{"PgClassExpression[58∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression58 + PgClassExpression59{{"PgClassExpression[59∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression59 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-2" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 24, 25, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 26, 27, 76, 77, 11, 23, 61
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22,Constant24,Constant25 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 6, 24, 25

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant26,Constant27,PgPageInfo61,Constant76,Constant77 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 26, 27, 61

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: 28, 43, 60, 71
ᐳ: 63, 64, 65, 69, 70
3: 29, 44, 73
ᐳ: 72, 74, 75"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 6, 24, 25

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect28,PgSelectRows29,PgSelect43,PgSelectRows44,PgSelect60,Access63,Object64,Lambda65,Object69,Lambda70,PgSelect71,First72,PgSelectRows73,PgSelectSingle74,PgClassExpression75 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 6, 24, 25

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23, 59
2: 26, 41, 58, 69
ᐳ: 62, 63, 64, 67, 68
3: 27, 42, 71
ᐳ: 70, 72, 73"):::bucket + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 43, 11

ROOT __Item{3}ᐸ44ᐳ[45]
1:
ᐳ: 46, 47, 48, 49, 50
2: PgSelect[51]
3: PgSelectRows[56]
ᐳ: 55, 57, 58, 59"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect26,PgSelectRows27,PgSelect41,PgSelectRows42,PgSelect58,PgPageInfo59,Access62,Object63,Lambda64,Object67,Lambda68,PgSelect69,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression73 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 29, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[29]
1:
ᐳ: 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: First[36], PgSelectSingle[38]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{5}ᐸusersᐳ[38]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression39,PgClassExpression40 bucket6 - Bucket7("Bucket 7 (listItem)
Deps: 41, 11

ROOT __Item{7}ᐸ42ᐳ[43]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,__Item43,PgSelectSingle44,Access45 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 44, 45, 11

ROOT PgSelectSingle{7}ᐸmessagesᐳ[44]
1:
ᐳ: 46, 47, 48
2: PgSelect[49]
3: PgSelectRows[54]
ᐳ: First[53], PgSelectSingle[55]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor46,PgClassExpression47,PgClassExpression48,PgSelect49,First53,PgSelectRows54,PgSelectSingle55 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 55

ROOT PgSelectSingle{8}ᐸusersᐳ[55]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression56,PgClassExpression57 bucket9 + class Bucket3,__Item45,PgSelectSingle46,Access47,PgCursor48,PgClassExpression49,PgClassExpression50,PgSelect51,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,PgClassExpression59 bucket3 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket7 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 + Bucket1 --> Bucket2 & Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.deopt.sql index 836d6589d9..95dd7e533f 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.mermaid index 5a34a4c00c..56ab195f03 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.mermaid @@ -9,148 +9,133 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant76{{"Constant[76∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant76 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant77{{"Constant[77∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant77 --> Lambda25 + PgPageInfo61{{"PgPageInfo[61∈0] ➊"}}:::plan + Connection23 --> PgPageInfo61 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect26[["PgSelect[26∈3@s]
ᐸmessagesᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect26 - PgSelect41[["PgSelect[41∈3@s]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect41 - PgSelect58[["PgSelect[58∈3]
ᐸmessages+1ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect58 - Object67{{"Object[67∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access62{{"Access[62∈3]
ᐸ58.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access62 --> Object67 - PgSelect69[["PgSelect[69∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect69 - Object63{{"Object[63∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access62 --> Object63 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows27[["PgSelectRows[27∈3@s]"]]:::plan - PgSelect26 --> PgSelectRows27 - PgSelectRows42[["PgSelectRows[42∈3@s]"]]:::plan - PgSelect41 --> PgSelectRows42 - PgPageInfo59{{"PgPageInfo[59∈3] ➊"}}:::plan - Connection22 --> PgPageInfo59 - PgSelect58 --> Access62 - Lambda64{{"Lambda[64∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object63 --> Lambda64 - Lambda68{{"Lambda[68∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object67 --> Lambda68 - First70{{"First[70∈3]"}}:::plan - PgSelectRows71[["PgSelectRows[71∈3]"]]:::plan - PgSelectRows71 --> First70 - PgSelect69 --> PgSelectRows71 - PgSelectSingle72{{"PgSelectSingle[72∈3]
ᐸmessagesᐳ"}}:::plan - First70 --> PgSelectSingle72 - PgClassExpression73{{"PgClassExpression[73∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle72 --> PgClassExpression73 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸmessagesᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgSelect32[["PgSelect[32∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression31 --> PgSelect32 - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgSelectSingle29 --> PgClassExpression31 - First36{{"First[36∈5]"}}:::plan - PgSelectRows37[["PgSelectRows[37∈5]"]]:::plan - PgSelectRows37 --> First36 - PgSelect32 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈5]
ᐸusersᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 - __Item43[/"__Item[43∈7]
ᐸ42ᐳ"\]:::itemplan - PgSelectRows42 ==> __Item43 - PgSelectSingle44{{"PgSelectSingle[44∈7]
ᐸmessagesᐳ"}}:::plan - __Item43 --> PgSelectSingle44 - Access45{{"Access[45∈7]
ᐸ41.cursorDetailsᐳ"}}:::plan - PgSelect41 --> Access45 - PgCursor46{{"PgCursor[46∈8]"}}:::plan - PgSelectSingle44 & Access45 --> PgCursor46 - PgSelect49[["PgSelect[49∈8]
ᐸusersᐳ"]]:::plan - PgClassExpression48{{"PgClassExpression[48∈8]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression48 --> PgSelect49 - PgClassExpression47{{"PgClassExpression[47∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression47 - PgSelectSingle44 --> PgClassExpression48 - First53{{"First[53∈8]"}}:::plan - PgSelectRows54[["PgSelectRows[54∈8]"]]:::plan - PgSelectRows54 --> First53 - PgSelect49 --> PgSelectRows54 - PgSelectSingle55{{"PgSelectSingle[55∈8]
ᐸusersᐳ"}}:::plan - First53 --> PgSelectSingle55 - PgClassExpression56{{"PgClassExpression[56∈9]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈9]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression57 + Constant26{{"Constant[26∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect28[["PgSelect[28∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect28 + PgSelect43[["PgSelect[43∈1@s]
ᐸmessagesᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect43 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect43 + PgSelect60[["PgSelect[60∈1]
ᐸmessages+1ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect60 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect60 + PgSelect71[["PgSelect[71∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect71 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect71 + Object69{{"Object[69∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access63{{"Access[63∈1]
ᐸ60.hasMoreᐳ"}}:::plan + Access63 --> Object69 + Object64{{"Object[64∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access63 --> Object64 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows29[["PgSelectRows[29∈1@s]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelectRows44[["PgSelectRows[44∈1@s]"]]:::plan + PgSelect43 --> PgSelectRows44 + PgSelect60 --> Access63 + Lambda65{{"Lambda[65∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object64 --> Lambda65 + Lambda70{{"Lambda[70∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object69 --> Lambda70 + First72{{"First[72∈1]"}}:::plan + PgSelectRows73[["PgSelectRows[73∈1]"]]:::plan + PgSelectRows73 --> First72 + PgSelect71 --> PgSelectRows73 + PgSelectSingle74{{"PgSelectSingle[74∈1]
ᐸmessagesᐳ"}}:::plan + First72 --> PgSelectSingle74 + PgClassExpression75{{"PgClassExpression[75∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle74 --> PgClassExpression75 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 + PgCursor48{{"PgCursor[48∈3]"}}:::plan + PgSelectSingle46{{"PgSelectSingle[46∈3]
ᐸmessagesᐳ"}}:::plan + Access47{{"Access[47∈3]
ᐸ43.cursorDetailsᐳ"}}:::plan + PgSelectSingle46 & Access47 --> PgCursor48 + PgSelect51[["PgSelect[51∈3]
ᐸusersᐳ"]]:::plan + PgClassExpression50{{"PgClassExpression[50∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression50 --> PgSelect51 + __Item45[/"__Item[45∈3]
ᐸ44ᐳ"\]:::itemplan + PgSelectRows44 ==> __Item45 + __Item45 --> PgSelectSingle46 + PgSelect43 --> Access47 + PgClassExpression49{{"PgClassExpression[49∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression49 + PgSelectSingle46 --> PgClassExpression50 + First55{{"First[55∈3]"}}:::plan + PgSelectRows56[["PgSelectRows[56∈3]"]]:::plan + PgSelectRows56 --> First55 + PgSelect51 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈3]
ᐸusersᐳ"}}:::plan + First55 --> PgSelectSingle57 + PgClassExpression58{{"PgClassExpression[58∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression58 + PgClassExpression59{{"PgClassExpression[59∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression59 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-2" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 24, 25, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 26, 27, 76, 77, 11, 23, 61
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22,Constant24,Constant25 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 6, 24, 25

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant26,Constant27,PgPageInfo61,Constant76,Constant77 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 26, 27, 61

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: 28, 43, 60, 71
ᐳ: 63, 64, 65, 69, 70
3: 29, 44, 73
ᐳ: 72, 74, 75"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 6, 24, 25

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect28,PgSelectRows29,PgSelect43,PgSelectRows44,PgSelect60,Access63,Object64,Lambda65,Object69,Lambda70,PgSelect71,First72,PgSelectRows73,PgSelectSingle74,PgClassExpression75 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 6, 24, 25

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23, 59
2: 26, 41, 58, 69
ᐳ: 62, 63, 64, 67, 68
3: 27, 42, 71
ᐳ: 70, 72, 73"):::bucket + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 43, 11

ROOT __Item{3}ᐸ44ᐳ[45]
1:
ᐳ: 46, 47, 48, 49, 50
2: PgSelect[51]
3: PgSelectRows[56]
ᐳ: 55, 57, 58, 59"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect26,PgSelectRows27,PgSelect41,PgSelectRows42,PgSelect58,PgPageInfo59,Access62,Object63,Lambda64,Object67,Lambda68,PgSelect69,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression73 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 29, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[29]
1:
ᐳ: 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: First[36], PgSelectSingle[38]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{5}ᐸusersᐳ[38]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression39,PgClassExpression40 bucket6 - Bucket7("Bucket 7 (listItem)
Deps: 41, 11

ROOT __Item{7}ᐸ42ᐳ[43]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,__Item43,PgSelectSingle44,Access45 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 44, 45, 11

ROOT PgSelectSingle{7}ᐸmessagesᐳ[44]
1:
ᐳ: 46, 47, 48
2: PgSelect[49]
3: PgSelectRows[54]
ᐳ: First[53], PgSelectSingle[55]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor46,PgClassExpression47,PgClassExpression48,PgSelect49,First53,PgSelectRows54,PgSelectSingle55 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 55

ROOT PgSelectSingle{8}ᐸusersᐳ[55]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression56,PgClassExpression57 bucket9 + class Bucket3,__Item45,PgSelectSingle46,Access47,PgCursor48,PgClassExpression49,PgClassExpression50,PgSelect51,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,PgClassExpression59 bucket3 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket7 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 + Bucket1 --> Bucket2 & Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.sql index 836d6589d9..95dd7e533f 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-2.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.deopt.mermaid index f7dc4ab397..a6d258ad39 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.deopt.mermaid @@ -9,85 +9,75 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant43{{"Constant[43∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant43 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant44{{"Constant[44∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant44 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect26[["PgSelect[26∈3@s]
ᐸmessagesᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect26 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows27[["PgSelectRows[27∈3@s]"]]:::plan - PgSelect26 --> PgSelectRows27 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸmessagesᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgSelect32[["PgSelect[32∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression31 --> PgSelect32 - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgSelectSingle29 --> PgClassExpression31 - First36{{"First[36∈5]"}}:::plan - PgSelectRows37[["PgSelectRows[37∈5]"]]:::plan - PgSelectRows37 --> First36 - PgSelect32 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈5]
ᐸusersᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 + Constant26{{"Constant[26∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect28[["PgSelect[28∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect28 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows29[["PgSelectRows[29∈1@s]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-3" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 24, 25, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 26, 27, 43, 44, 11, 23
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22,Constant24,Constant25 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 24, 25, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant26,Constant27,Constant43,Constant44 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 26, 27

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[28]
3: PgSelectRows[29]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect28,PgSelectRows29 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect26,PgSelectRows27 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 29, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[29]
1:
ᐳ: 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: First[36], PgSelectSingle[38]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{5}ᐸusersᐳ[38]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression39,PgClassExpression40 bucket6 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.deopt.sql index 975c934b64..192458738b 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.mermaid index f7dc4ab397..a6d258ad39 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.mermaid @@ -9,85 +9,75 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant43{{"Constant[43∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant43 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant44{{"Constant[44∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant44 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect26[["PgSelect[26∈3@s]
ᐸmessagesᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect26 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows27[["PgSelectRows[27∈3@s]"]]:::plan - PgSelect26 --> PgSelectRows27 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸmessagesᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgSelect32[["PgSelect[32∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression31 --> PgSelect32 - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgSelectSingle29 --> PgClassExpression31 - First36{{"First[36∈5]"}}:::plan - PgSelectRows37[["PgSelectRows[37∈5]"]]:::plan - PgSelectRows37 --> First36 - PgSelect32 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈5]
ᐸusersᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 + Constant26{{"Constant[26∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect28[["PgSelect[28∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect28 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows29[["PgSelectRows[29∈1@s]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-3" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 24, 25, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 26, 27, 43, 44, 11, 23
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22,Constant24,Constant25 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 24, 25, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant26,Constant27,Constant43,Constant44 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 26, 27

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[28]
3: PgSelectRows[29]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect28,PgSelectRows29 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect26,PgSelectRows27 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 29, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[29]
1:
ᐳ: 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: First[36], PgSelectSingle[38]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{5}ᐸusersᐳ[38]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression39,PgClassExpression40 bucket6 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.sql index 975c934b64..192458738b 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-3.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.deopt.mermaid index c3989bacf4..58100e4ce8 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.deopt.mermaid @@ -9,85 +9,75 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant43{{"Constant[43∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant43 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant44{{"Constant[44∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant44 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect26[["PgSelect[26∈3@s]
ᐸmessagesᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect26 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows27[["PgSelectRows[27∈3@s]"]]:::plan - PgSelect26 --> PgSelectRows27 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸmessagesᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgSelect32[["PgSelect[32∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression31 --> PgSelect32 - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgSelectSingle29 --> PgClassExpression31 - First36{{"First[36∈5]"}}:::plan - PgSelectRows37[["PgSelectRows[37∈5]"]]:::plan - PgSelectRows37 --> First36 - PgSelect32 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈5]
ᐸusersᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 + Constant26{{"Constant[26∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect28[["PgSelect[28∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect28 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows29[["PgSelectRows[29∈1@s]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-4" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 24, 25, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 26, 27, 43, 44, 11, 23
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22,Constant24,Constant25 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 24, 25, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant26,Constant27,Constant43,Constant44 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 26, 27

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[28]
3: PgSelectRows[29]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect28,PgSelectRows29 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect26,PgSelectRows27 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 29, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[29]
1:
ᐳ: 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: First[36], PgSelectSingle[38]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{5}ᐸusersᐳ[38]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression39,PgClassExpression40 bucket6 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.deopt.sql index 8e7bbf07b4..c6c45794e0 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.mermaid index c3989bacf4..58100e4ce8 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.mermaid @@ -9,85 +9,75 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant43{{"Constant[43∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant43 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant44{{"Constant[44∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant44 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect26[["PgSelect[26∈3@s]
ᐸmessagesᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect26 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows27[["PgSelectRows[27∈3@s]"]]:::plan - PgSelect26 --> PgSelectRows27 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸmessagesᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgSelect32[["PgSelect[32∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression31 --> PgSelect32 - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgSelectSingle29 --> PgClassExpression31 - First36{{"First[36∈5]"}}:::plan - PgSelectRows37[["PgSelectRows[37∈5]"]]:::plan - PgSelectRows37 --> First36 - PgSelect32 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈5]
ᐸusersᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 + Constant26{{"Constant[26∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect28[["PgSelect[28∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect28 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows29[["PgSelectRows[29∈1@s]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-4" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 24, 25, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 26, 27, 43, 44, 11, 23
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22,Constant24,Constant25 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 24, 25, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant26,Constant27,Constant43,Constant44 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 26, 27

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[28]
3: PgSelectRows[29]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect28,PgSelectRows29 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23
2: PgSelect[26]
3: PgSelectRows[27]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect26,PgSelectRows27 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 29, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[29]
1:
ᐳ: 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: First[36], PgSelectSingle[38]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{5}ᐸusersᐳ[38]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression39,PgClassExpression40 bucket6 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.sql index 8e7bbf07b4..c6c45794e0 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-4.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.deopt.mermaid index ba8bc6212c..18c0fb3406 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.deopt.mermaid @@ -9,87 +9,77 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan + Constant45{{"Constant[45∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant45 --> Connection24 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 - Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan - Constant42{{"Constant[42∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant42 --> Connection23 + Constant44{{"Constant[44∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant44 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda26[["Lambda[26∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant46{{"Constant[46∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant46 --> Lambda26 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant26{{"Constant[26∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect27[["PgSelect[27∈3@s]
ᐸmessagesᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 & Constant42 --> PgSelect27 - PgSelectSingle14 --> PgClassExpression18 - PgSelectSingle14 --> PgClassExpression24 - PgSelectRows28[["PgSelectRows[28∈3@s]"]]:::plan - PgSelect27 --> PgSelectRows28 - __Item29[/"__Item[29∈4]
ᐸ28ᐳ"\]:::itemplan - PgSelectRows28 ==> __Item29 - PgSelectSingle30{{"PgSelectSingle[30∈4]
ᐸmessagesᐳ"}}:::plan - __Item29 --> PgSelectSingle30 - PgSelect33[["PgSelect[33∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression32{{"PgClassExpression[32∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression32 --> PgSelect33 - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgSelectSingle30 --> PgClassExpression32 - First37{{"First[37∈5]"}}:::plan - PgSelectRows38[["PgSelectRows[38∈5]"]]:::plan - PgSelectRows38 --> First37 - PgSelect33 --> PgSelectRows38 - PgSelectSingle39{{"PgSelectSingle[39∈5]
ᐸusersᐳ"}}:::plan - First37 --> PgSelectSingle39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression41 + Constant27{{"Constant[27∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant28{{"Constant[28∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect29[["PgSelect[29∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda26 -->|rejectNull| PgSelect29 + Object11 & PgClassExpression19 & PgClassExpression25 & Connection24 & Constant45 --> PgSelect29 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression19 + PgSelectSingle15 --> PgClassExpression25 + PgSelectRows30[["PgSelectRows[30∈1@s]"]]:::plan + PgSelect29 --> PgSelectRows30 + PgSelect35[["PgSelect[35∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression34 --> PgSelect35 + __Item31[/"__Item[31∈2]
ᐸ30ᐳ"\]:::itemplan + PgSelectRows30 ==> __Item31 + PgSelectSingle32{{"PgSelectSingle[32∈2]
ᐸmessagesᐳ"}}:::plan + __Item31 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgSelectSingle32 --> PgClassExpression34 + First39{{"First[39∈2]"}}:::plan + PgSelectRows40[["PgSelectRows[40∈2]"]]:::plan + PgSelectRows40 --> First39 + PgSelect35 --> PgSelectRows40 + PgSelectSingle41{{"PgSelectSingle[41∈2]
ᐸusersᐳ"}}:::plan + First39 --> PgSelectSingle41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle41 --> PgClassExpression42 + PgClassExpression43{{"PgClassExpression[43∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle41 --> PgClassExpression43 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-5" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 25, 26, 42, 11, 23
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 27, 28, 44, 45, 46, 11, 24
2: Lambda[12], Lambda[26]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection23,Constant25,Constant26,Constant42 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 23, 42, 25, 26, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection24,Lambda26,Constant27,Constant28,Constant44,Constant45,Constant46 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 26, 24, 6, 45, 27, 28

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 19, 25
2: PgSelect[29]
3: PgSelectRows[30]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 23, 42, 25, 26, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression19,PgClassExpression25,PgSelect29,PgSelectRows30 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ30ᐳ[31]
1:
ᐳ: 32, 33, 34
2: PgSelect[35]
3: PgSelectRows[40]
ᐳ: 39, 41, 42, 43"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 23, 42, 25, 26, 6

ROOT Connectionᐸ19ᐳ[23]
1:
ᐳ: 18, 24
2: PgSelect[27]
3: PgSelectRows[28]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression24,PgSelect27,PgSelectRows28 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ28ᐳ[29]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item29,PgSelectSingle30 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 30, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[30]
1:
ᐳ: 31, 32
2: PgSelect[33]
3: PgSelectRows[38]
ᐳ: First[37], PgSelectSingle[39]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression31,PgClassExpression32,PgSelect33,First37,PgSelectRows38,PgSelectSingle39 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 39

ROOT PgSelectSingle{5}ᐸusersᐳ[39]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression40,PgClassExpression41 bucket6 + class Bucket2,__Item31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgSelect35,First39,PgSelectRows40,PgSelectSingle41,PgClassExpression42,PgClassExpression43 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.deopt.sql index 8f11c2b41e..6cc7c89d4b 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.mermaid index ba8bc6212c..18c0fb3406 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.mermaid @@ -9,87 +9,77 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan + Constant45{{"Constant[45∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant45 --> Connection24 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 - Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan - Constant42{{"Constant[42∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant42 --> Connection23 + Constant44{{"Constant[44∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant44 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda26[["Lambda[26∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant46{{"Constant[46∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant46 --> Lambda26 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant26{{"Constant[26∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect27[["PgSelect[27∈3@s]
ᐸmessagesᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 & Constant42 --> PgSelect27 - PgSelectSingle14 --> PgClassExpression18 - PgSelectSingle14 --> PgClassExpression24 - PgSelectRows28[["PgSelectRows[28∈3@s]"]]:::plan - PgSelect27 --> PgSelectRows28 - __Item29[/"__Item[29∈4]
ᐸ28ᐳ"\]:::itemplan - PgSelectRows28 ==> __Item29 - PgSelectSingle30{{"PgSelectSingle[30∈4]
ᐸmessagesᐳ"}}:::plan - __Item29 --> PgSelectSingle30 - PgSelect33[["PgSelect[33∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression32{{"PgClassExpression[32∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression32 --> PgSelect33 - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgSelectSingle30 --> PgClassExpression32 - First37{{"First[37∈5]"}}:::plan - PgSelectRows38[["PgSelectRows[38∈5]"]]:::plan - PgSelectRows38 --> First37 - PgSelect33 --> PgSelectRows38 - PgSelectSingle39{{"PgSelectSingle[39∈5]
ᐸusersᐳ"}}:::plan - First37 --> PgSelectSingle39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression41 + Constant27{{"Constant[27∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant28{{"Constant[28∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect29[["PgSelect[29∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda26 -->|rejectNull| PgSelect29 + Object11 & PgClassExpression19 & PgClassExpression25 & Connection24 & Constant45 --> PgSelect29 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression19 + PgSelectSingle15 --> PgClassExpression25 + PgSelectRows30[["PgSelectRows[30∈1@s]"]]:::plan + PgSelect29 --> PgSelectRows30 + PgSelect35[["PgSelect[35∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression34 --> PgSelect35 + __Item31[/"__Item[31∈2]
ᐸ30ᐳ"\]:::itemplan + PgSelectRows30 ==> __Item31 + PgSelectSingle32{{"PgSelectSingle[32∈2]
ᐸmessagesᐳ"}}:::plan + __Item31 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgSelectSingle32 --> PgClassExpression34 + First39{{"First[39∈2]"}}:::plan + PgSelectRows40[["PgSelectRows[40∈2]"]]:::plan + PgSelectRows40 --> First39 + PgSelect35 --> PgSelectRows40 + PgSelectSingle41{{"PgSelectSingle[41∈2]
ᐸusersᐳ"}}:::plan + First39 --> PgSelectSingle41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle41 --> PgClassExpression42 + PgClassExpression43{{"PgClassExpression[43∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle41 --> PgClassExpression43 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-5" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 25, 26, 42, 11, 23
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 27, 28, 44, 45, 46, 11, 24
2: Lambda[12], Lambda[26]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection23,Constant25,Constant26,Constant42 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 23, 42, 25, 26, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection24,Lambda26,Constant27,Constant28,Constant44,Constant45,Constant46 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 26, 24, 6, 45, 27, 28

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 19, 25
2: PgSelect[29]
3: PgSelectRows[30]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 23, 42, 25, 26, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression19,PgClassExpression25,PgSelect29,PgSelectRows30 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ30ᐳ[31]
1:
ᐳ: 32, 33, 34
2: PgSelect[35]
3: PgSelectRows[40]
ᐳ: 39, 41, 42, 43"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 23, 42, 25, 26, 6

ROOT Connectionᐸ19ᐳ[23]
1:
ᐳ: 18, 24
2: PgSelect[27]
3: PgSelectRows[28]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression24,PgSelect27,PgSelectRows28 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ28ᐳ[29]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item29,PgSelectSingle30 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 30, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[30]
1:
ᐳ: 31, 32
2: PgSelect[33]
3: PgSelectRows[38]
ᐳ: First[37], PgSelectSingle[39]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression31,PgClassExpression32,PgSelect33,First37,PgSelectRows38,PgSelectSingle39 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 39

ROOT PgSelectSingle{5}ᐸusersᐳ[39]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression40,PgClassExpression41 bucket6 + class Bucket2,__Item31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgSelect35,First39,PgSelectRows40,PgSelectSingle41,PgClassExpression42,PgClassExpression43 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.sql index 8f11c2b41e..6cc7c89d4b 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-5.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.deopt.mermaid index cc72bb2d12..ffcf88e8dc 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.deopt.mermaid @@ -9,151 +9,136 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant76{{"Constant[76∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant76 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant77{{"Constant[77∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant77 --> Lambda25 + PgPageInfo61{{"PgPageInfo[61∈0] ➊"}}:::plan + Connection23 --> PgPageInfo61 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression17{{"PgClassExpression[17∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression17 - PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression23 - PgSelect26[["PgSelect[26∈3@s]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect26 - PgSelect41[["PgSelect[41∈3@s]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect41 - PgSelectRows27[["PgSelectRows[27∈3@s]"]]:::plan - PgSelect26 --> PgSelectRows27 - PgSelectRows42[["PgSelectRows[42∈3@s]"]]:::plan - PgSelect41 --> PgSelectRows42 - PgPageInfo59{{"PgPageInfo[59∈3] ➊"}}:::plan - Connection22 --> PgPageInfo59 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸmessagesᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgSelect32[["PgSelect[32∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression31 --> PgSelect32 - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgSelectSingle29 --> PgClassExpression31 - First36{{"First[36∈5]"}}:::plan - PgSelectRows37[["PgSelectRows[37∈5]"]]:::plan - PgSelectRows37 --> First36 - PgSelect32 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈5]
ᐸusersᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 - __Item43[/"__Item[43∈7]
ᐸ42ᐳ"\]:::itemplan - PgSelectRows42 ==> __Item43 - PgSelectSingle44{{"PgSelectSingle[44∈7]
ᐸmessagesᐳ"}}:::plan - __Item43 --> PgSelectSingle44 - Access45{{"Access[45∈7]
ᐸ41.cursorDetailsᐳ"}}:::plan - PgSelect41 --> Access45 - PgCursor46{{"PgCursor[46∈8]"}}:::plan - PgSelectSingle44 & Access45 --> PgCursor46 - PgSelect49[["PgSelect[49∈8]
ᐸusersᐳ"]]:::plan - PgClassExpression48{{"PgClassExpression[48∈8]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression48 --> PgSelect49 - PgClassExpression47{{"PgClassExpression[47∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression47 - PgSelectSingle44 --> PgClassExpression48 - First53{{"First[53∈8]"}}:::plan - PgSelectRows54[["PgSelectRows[54∈8]"]]:::plan - PgSelectRows54 --> First53 - PgSelect49 --> PgSelectRows54 - PgSelectSingle55{{"PgSelectSingle[55∈8]
ᐸusersᐳ"}}:::plan - First53 --> PgSelectSingle55 - PgClassExpression56{{"PgClassExpression[56∈9]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈9]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression57 - PgSelect58[["PgSelect[58∈10]
ᐸmessages+1ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect58 - Object67{{"Object[67∈10]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access62{{"Access[62∈10]
ᐸ58.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access62 --> Object67 - PgSelect69[["PgSelect[69∈10]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect69 - Object63{{"Object[63∈10]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access62 --> Object63 - PgSelect58 --> Access62 - Lambda64{{"Lambda[64∈10]
ᐸhasNextPageCbᐳ"}}:::plan - Object63 --> Lambda64 - Lambda68{{"Lambda[68∈10]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object67 --> Lambda68 - First70{{"First[70∈10]"}}:::plan - PgSelectRows71[["PgSelectRows[71∈10]"]]:::plan - PgSelectRows71 --> First70 - PgSelect69 --> PgSelectRows71 - PgSelectSingle72{{"PgSelectSingle[72∈10]
ᐸmessagesᐳ"}}:::plan - First70 --> PgSelectSingle72 - PgClassExpression73{{"PgClassExpression[73∈10]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle72 --> PgClassExpression73 + Constant26{{"Constant[26∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect28[["PgSelect[28∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect28 + PgSelect43[["PgSelect[43∈1@s]
ᐸmessagesᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect43 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect43 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows29[["PgSelectRows[29∈1@s]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelectRows44[["PgSelectRows[44∈1@s]"]]:::plan + PgSelect43 --> PgSelectRows44 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 + PgCursor48{{"PgCursor[48∈3]"}}:::plan + PgSelectSingle46{{"PgSelectSingle[46∈3]
ᐸmessagesᐳ"}}:::plan + Access47{{"Access[47∈3]
ᐸ43.cursorDetailsᐳ"}}:::plan + PgSelectSingle46 & Access47 --> PgCursor48 + PgSelect51[["PgSelect[51∈3]
ᐸusersᐳ"]]:::plan + PgClassExpression50{{"PgClassExpression[50∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression50 --> PgSelect51 + __Item45[/"__Item[45∈3]
ᐸ44ᐳ"\]:::itemplan + PgSelectRows44 ==> __Item45 + __Item45 --> PgSelectSingle46 + PgSelect43 --> Access47 + PgClassExpression49{{"PgClassExpression[49∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression49 + PgSelectSingle46 --> PgClassExpression50 + First55{{"First[55∈3]"}}:::plan + PgSelectRows56[["PgSelectRows[56∈3]"]]:::plan + PgSelectRows56 --> First55 + PgSelect51 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈3]
ᐸusersᐳ"}}:::plan + First55 --> PgSelectSingle57 + PgClassExpression58{{"PgClassExpression[58∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression58 + PgClassExpression59{{"PgClassExpression[59∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression59 + PgSelect60[["PgSelect[60∈4]
ᐸmessages+1ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect60 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect60 + PgSelect71[["PgSelect[71∈4]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect71 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect71 + Object69{{"Object[69∈4]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access63{{"Access[63∈4]
ᐸ60.hasMoreᐳ"}}:::plan + Access63 --> Object69 + Object64{{"Object[64∈4]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access63 --> Object64 + PgSelect60 --> Access63 + Lambda65{{"Lambda[65∈4]
ᐸhasNextPageCbᐳ"}}:::plan + Object64 --> Lambda65 + Lambda70{{"Lambda[70∈4]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object69 --> Lambda70 + First72{{"First[72∈4]"}}:::plan + PgSelectRows73[["PgSelectRows[73∈4]"]]:::plan + PgSelectRows73 --> First72 + PgSelect71 --> PgSelectRows73 + PgSelectSingle74{{"PgSelectSingle[74∈4]
ᐸmessagesᐳ"}}:::plan + First72 --> PgSelectSingle74 + PgClassExpression75{{"PgClassExpression[75∈4]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle74 --> PgClassExpression75 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-6" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 24, 25, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 26, 27, 76, 77, 11, 23, 61
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22,Constant24,Constant25 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 24, 25, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant26,Constant27,PgPageInfo61,Constant76,Constant77 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 26, 27, 61

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[28], PgSelect[43]
3: PgSelectRows[29], PgSelectRows[44]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect28,PgSelectRows29,PgSelect43,PgSelectRows44 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression17,PgClassExpression23 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 11, 17, 23, 22, 24, 25, 6

ROOT Connectionᐸ18ᐳ[22]
1: PgSelect[26], PgSelect[41]
ᐳ: PgPageInfo[59]
2: PgSelectRows[27], PgSelectRows[42]"):::bucket + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 43, 11

ROOT __Item{3}ᐸ44ᐳ[45]
1:
ᐳ: 46, 47, 48, 49, 50
2: PgSelect[51]
3: PgSelectRows[56]
ᐳ: 55, 57, 58, 59"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgSelect26,PgSelectRows27,PgSelect41,PgSelectRows42,PgPageInfo59 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket + class Bucket3,__Item45,PgSelectSingle46,Access47,PgCursor48,PgClassExpression49,PgClassExpression50,PgSelect51,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,PgClassExpression59 bucket3 + Bucket4("Bucket 4 (defer)
Deps: 11, 18, 24, 25, 23, 6, 61

1: PgSelect[60], PgSelect[71]
ᐳ: 63, 64, 65, 69, 70
2: PgSelectRows[73]
ᐳ: 72, 74, 75"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 29, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[29]
1:
ᐳ: 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: First[36], PgSelectSingle[38]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{5}ᐸusersᐳ[38]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression39,PgClassExpression40 bucket6 - Bucket7("Bucket 7 (listItem)
Deps: 41, 11

ROOT __Item{7}ᐸ42ᐳ[43]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,__Item43,PgSelectSingle44,Access45 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 44, 45, 11

ROOT PgSelectSingle{7}ᐸmessagesᐳ[44]
1:
ᐳ: 46, 47, 48
2: PgSelect[49]
3: PgSelectRows[54]
ᐳ: First[53], PgSelectSingle[55]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor46,PgClassExpression47,PgClassExpression48,PgSelect49,First53,PgSelectRows54,PgSelectSingle55 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 55

ROOT PgSelectSingle{8}ᐸusersᐳ[55]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression56,PgClassExpression57 bucket9 - Bucket10("Bucket 10 (defer)
Deps: 11, 17, 23, 22, 6, 59

1: PgSelect[58], PgSelect[69]
ᐳ: 62, 63, 64, 67, 68
2: PgSelectRows[71]
ᐳ: 70, 72, 73"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgSelect58,Access62,Object63,Lambda64,Object67,Lambda68,PgSelect69,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression73 bucket10 + class Bucket4,PgSelect60,Access63,Object64,Lambda65,Object69,Lambda70,PgSelect71,First72,PgSelectRows73,PgSelectSingle74,PgClassExpression75 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket7 & Bucket10 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.deopt.sql index 836d6589d9..95dd7e533f 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.mermaid index cc72bb2d12..ffcf88e8dc 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.mermaid @@ -9,151 +9,136 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant76{{"Constant[76∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant76 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant77{{"Constant[77∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant77 --> Lambda25 + PgPageInfo61{{"PgPageInfo[61∈0] ➊"}}:::plan + Connection23 --> PgPageInfo61 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression17{{"PgClassExpression[17∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression17 - PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression23 - PgSelect26[["PgSelect[26∈3@s]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect26 - PgSelect41[["PgSelect[41∈3@s]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect41 - PgSelectRows27[["PgSelectRows[27∈3@s]"]]:::plan - PgSelect26 --> PgSelectRows27 - PgSelectRows42[["PgSelectRows[42∈3@s]"]]:::plan - PgSelect41 --> PgSelectRows42 - PgPageInfo59{{"PgPageInfo[59∈3] ➊"}}:::plan - Connection22 --> PgPageInfo59 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸmessagesᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgSelect32[["PgSelect[32∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression31 --> PgSelect32 - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgSelectSingle29 --> PgClassExpression31 - First36{{"First[36∈5]"}}:::plan - PgSelectRows37[["PgSelectRows[37∈5]"]]:::plan - PgSelectRows37 --> First36 - PgSelect32 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈5]
ᐸusersᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 - __Item43[/"__Item[43∈7]
ᐸ42ᐳ"\]:::itemplan - PgSelectRows42 ==> __Item43 - PgSelectSingle44{{"PgSelectSingle[44∈7]
ᐸmessagesᐳ"}}:::plan - __Item43 --> PgSelectSingle44 - Access45{{"Access[45∈7]
ᐸ41.cursorDetailsᐳ"}}:::plan - PgSelect41 --> Access45 - PgCursor46{{"PgCursor[46∈8]"}}:::plan - PgSelectSingle44 & Access45 --> PgCursor46 - PgSelect49[["PgSelect[49∈8]
ᐸusersᐳ"]]:::plan - PgClassExpression48{{"PgClassExpression[48∈8]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression48 --> PgSelect49 - PgClassExpression47{{"PgClassExpression[47∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression47 - PgSelectSingle44 --> PgClassExpression48 - First53{{"First[53∈8]"}}:::plan - PgSelectRows54[["PgSelectRows[54∈8]"]]:::plan - PgSelectRows54 --> First53 - PgSelect49 --> PgSelectRows54 - PgSelectSingle55{{"PgSelectSingle[55∈8]
ᐸusersᐳ"}}:::plan - First53 --> PgSelectSingle55 - PgClassExpression56{{"PgClassExpression[56∈9]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈9]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression57 - PgSelect58[["PgSelect[58∈10]
ᐸmessages+1ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect58 - Object67{{"Object[67∈10]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access62{{"Access[62∈10]
ᐸ58.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access62 --> Object67 - PgSelect69[["PgSelect[69∈10]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect69 - Object63{{"Object[63∈10]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access62 --> Object63 - PgSelect58 --> Access62 - Lambda64{{"Lambda[64∈10]
ᐸhasNextPageCbᐳ"}}:::plan - Object63 --> Lambda64 - Lambda68{{"Lambda[68∈10]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object67 --> Lambda68 - First70{{"First[70∈10]"}}:::plan - PgSelectRows71[["PgSelectRows[71∈10]"]]:::plan - PgSelectRows71 --> First70 - PgSelect69 --> PgSelectRows71 - PgSelectSingle72{{"PgSelectSingle[72∈10]
ᐸmessagesᐳ"}}:::plan - First70 --> PgSelectSingle72 - PgClassExpression73{{"PgClassExpression[73∈10]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle72 --> PgClassExpression73 + Constant26{{"Constant[26∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect28[["PgSelect[28∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect28 + PgSelect43[["PgSelect[43∈1@s]
ᐸmessagesᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect43 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect43 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows29[["PgSelectRows[29∈1@s]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelectRows44[["PgSelectRows[44∈1@s]"]]:::plan + PgSelect43 --> PgSelectRows44 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 + PgCursor48{{"PgCursor[48∈3]"}}:::plan + PgSelectSingle46{{"PgSelectSingle[46∈3]
ᐸmessagesᐳ"}}:::plan + Access47{{"Access[47∈3]
ᐸ43.cursorDetailsᐳ"}}:::plan + PgSelectSingle46 & Access47 --> PgCursor48 + PgSelect51[["PgSelect[51∈3]
ᐸusersᐳ"]]:::plan + PgClassExpression50{{"PgClassExpression[50∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression50 --> PgSelect51 + __Item45[/"__Item[45∈3]
ᐸ44ᐳ"\]:::itemplan + PgSelectRows44 ==> __Item45 + __Item45 --> PgSelectSingle46 + PgSelect43 --> Access47 + PgClassExpression49{{"PgClassExpression[49∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression49 + PgSelectSingle46 --> PgClassExpression50 + First55{{"First[55∈3]"}}:::plan + PgSelectRows56[["PgSelectRows[56∈3]"]]:::plan + PgSelectRows56 --> First55 + PgSelect51 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈3]
ᐸusersᐳ"}}:::plan + First55 --> PgSelectSingle57 + PgClassExpression58{{"PgClassExpression[58∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression58 + PgClassExpression59{{"PgClassExpression[59∈3]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression59 + PgSelect60[["PgSelect[60∈4]
ᐸmessages+1ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect60 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect60 + PgSelect71[["PgSelect[71∈4]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect71 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect71 + Object69{{"Object[69∈4]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access63{{"Access[63∈4]
ᐸ60.hasMoreᐳ"}}:::plan + Access63 --> Object69 + Object64{{"Object[64∈4]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access63 --> Object64 + PgSelect60 --> Access63 + Lambda65{{"Lambda[65∈4]
ᐸhasNextPageCbᐳ"}}:::plan + Object64 --> Lambda65 + Lambda70{{"Lambda[70∈4]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object69 --> Lambda70 + First72{{"First[72∈4]"}}:::plan + PgSelectRows73[["PgSelectRows[73∈4]"]]:::plan + PgSelectRows73 --> First72 + PgSelect71 --> PgSelectRows73 + PgSelectSingle74{{"PgSelectSingle[74∈4]
ᐸmessagesᐳ"}}:::plan + First72 --> PgSelectSingle74 + PgClassExpression75{{"PgClassExpression[75∈4]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle74 --> PgClassExpression75 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-6" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 24, 25, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 26, 27, 76, 77, 11, 23, 61
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22,Constant24,Constant25 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 24, 25, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant26,Constant27,PgPageInfo61,Constant76,Constant77 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 26, 27, 61

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[28], PgSelect[43]
3: PgSelectRows[29], PgSelectRows[44]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect28,PgSelectRows29,PgSelect43,PgSelectRows44 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression17,PgClassExpression23 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 11, 17, 23, 22, 24, 25, 6

ROOT Connectionᐸ18ᐳ[22]
1: PgSelect[26], PgSelect[41]
ᐳ: PgPageInfo[59]
2: PgSelectRows[27], PgSelectRows[42]"):::bucket + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 43, 11

ROOT __Item{3}ᐸ44ᐳ[45]
1:
ᐳ: 46, 47, 48, 49, 50
2: PgSelect[51]
3: PgSelectRows[56]
ᐳ: 55, 57, 58, 59"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgSelect26,PgSelectRows27,PgSelect41,PgSelectRows42,PgPageInfo59 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket + class Bucket3,__Item45,PgSelectSingle46,Access47,PgCursor48,PgClassExpression49,PgClassExpression50,PgSelect51,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,PgClassExpression59 bucket3 + Bucket4("Bucket 4 (defer)
Deps: 11, 18, 24, 25, 23, 6, 61

1: PgSelect[60], PgSelect[71]
ᐳ: 63, 64, 65, 69, 70
2: PgSelectRows[73]
ᐳ: 72, 74, 75"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 29, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[29]
1:
ᐳ: 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: First[36], PgSelectSingle[38]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{5}ᐸusersᐳ[38]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression39,PgClassExpression40 bucket6 - Bucket7("Bucket 7 (listItem)
Deps: 41, 11

ROOT __Item{7}ᐸ42ᐳ[43]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,__Item43,PgSelectSingle44,Access45 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 44, 45, 11

ROOT PgSelectSingle{7}ᐸmessagesᐳ[44]
1:
ᐳ: 46, 47, 48
2: PgSelect[49]
3: PgSelectRows[54]
ᐳ: First[53], PgSelectSingle[55]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor46,PgClassExpression47,PgClassExpression48,PgSelect49,First53,PgSelectRows54,PgSelectSingle55 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 55

ROOT PgSelectSingle{8}ᐸusersᐳ[55]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression56,PgClassExpression57 bucket9 - Bucket10("Bucket 10 (defer)
Deps: 11, 17, 23, 22, 6, 59

1: PgSelect[58], PgSelect[69]
ᐳ: 62, 63, 64, 67, 68
2: PgSelectRows[71]
ᐳ: 70, 72, 73"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgSelect58,Access62,Object63,Lambda64,Object67,Lambda68,PgSelect69,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression73 bucket10 + class Bucket4,PgSelect60,Access63,Object64,Lambda65,Object69,Lambda70,PgSelect71,First72,PgSelectRows73,PgSelectSingle74,PgClassExpression75 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket7 & Bucket10 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.sql index 836d6589d9..95dd7e533f 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-6.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.deopt.mermaid index b0fedd2db8..fe94f48544 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.deopt.mermaid @@ -9,147 +9,132 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant74{{"Constant[74∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant74 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant75{{"Constant[75∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant75 --> Lambda25 + PgPageInfo59{{"PgPageInfo[59∈0] ➊"}}:::plan + Connection23 --> PgPageInfo59 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression17{{"PgClassExpression[17∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression17 - PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression23 - PgSelect26[["PgSelect[26∈3@s]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect26 - PgSelect41[["PgSelect[41∈3]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect41 - PgSelectRows27[["PgSelectRows[27∈3@s]"]]:::plan - PgSelect26 --> PgSelectRows27 - PgSelectRows42[["PgSelectRows[42∈3]"]]:::plan - PgSelect41 --> PgSelectRows42 - PgPageInfo57{{"PgPageInfo[57∈3] ➊"}}:::plan - Connection22 --> PgPageInfo57 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸmessagesᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgSelect32[["PgSelect[32∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression31 --> PgSelect32 - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgSelectSingle29 --> PgClassExpression31 - First36{{"First[36∈5]"}}:::plan - PgSelectRows37[["PgSelectRows[37∈5]"]]:::plan - PgSelectRows37 --> First36 - PgSelect32 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈5]
ᐸusersᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 - __Item43[/"__Item[43∈7]
ᐸ42ᐳ"\]:::itemplan - PgSelectRows42 ==> __Item43 - PgSelectSingle44{{"PgSelectSingle[44∈7]
ᐸmessagesᐳ"}}:::plan - __Item43 --> PgSelectSingle44 - Access45{{"Access[45∈7]
ᐸ41.cursorDetailsᐳ"}}:::plan - PgSelect41 --> Access45 - PgCursor46{{"PgCursor[46∈8]"}}:::plan - PgSelectSingle44 & Access45 --> PgCursor46 - PgSelect48[["PgSelect[48∈8]
ᐸusersᐳ"]]:::plan - PgClassExpression47{{"PgClassExpression[47∈8]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression47 --> PgSelect48 - PgSelectSingle44 --> PgClassExpression47 - First52{{"First[52∈8]"}}:::plan - PgSelectRows53[["PgSelectRows[53∈8]"]]:::plan - PgSelectRows53 --> First52 - PgSelect48 --> PgSelectRows53 - PgSelectSingle54{{"PgSelectSingle[54∈8]
ᐸusersᐳ"}}:::plan - First52 --> PgSelectSingle54 - PgClassExpression55{{"PgClassExpression[55∈9]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle54 --> PgClassExpression55 - PgSelect56[["PgSelect[56∈10]
ᐸmessages+1ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect56 - Object65{{"Object[65∈10]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access60{{"Access[60∈10]
ᐸ56.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access60 --> Object65 - PgSelect67[["PgSelect[67∈10]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect67 - Object61{{"Object[61∈10]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access60 --> Object61 - PgSelect56 --> Access60 - Lambda62{{"Lambda[62∈10]
ᐸhasNextPageCbᐳ"}}:::plan - Object61 --> Lambda62 - Lambda66{{"Lambda[66∈10]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object65 --> Lambda66 - First68{{"First[68∈10]"}}:::plan - PgSelectRows69[["PgSelectRows[69∈10]"]]:::plan - PgSelectRows69 --> First68 - PgSelect67 --> PgSelectRows69 - PgSelectSingle70{{"PgSelectSingle[70∈10]
ᐸmessagesᐳ"}}:::plan - First68 --> PgSelectSingle70 - PgClassExpression71{{"PgClassExpression[71∈10]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle70 --> PgClassExpression71 + Constant26{{"Constant[26∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect28[["PgSelect[28∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect28 + PgSelect43[["PgSelect[43∈1]
ᐸmessagesᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect43 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect43 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows29[["PgSelectRows[29∈1@s]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelectRows44[["PgSelectRows[44∈1]"]]:::plan + PgSelect43 --> PgSelectRows44 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 + PgCursor48{{"PgCursor[48∈3]"}}:::plan + PgSelectSingle46{{"PgSelectSingle[46∈3]
ᐸmessagesᐳ"}}:::plan + Access47{{"Access[47∈3]
ᐸ43.cursorDetailsᐳ"}}:::plan + PgSelectSingle46 & Access47 --> PgCursor48 + PgSelect50[["PgSelect[50∈3]
ᐸusersᐳ"]]:::plan + PgClassExpression49{{"PgClassExpression[49∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression49 --> PgSelect50 + __Item45[/"__Item[45∈3]
ᐸ44ᐳ"\]:::itemplan + PgSelectRows44 ==> __Item45 + __Item45 --> PgSelectSingle46 + PgSelect43 --> Access47 + PgSelectSingle46 --> PgClassExpression49 + First54{{"First[54∈3]"}}:::plan + PgSelectRows55[["PgSelectRows[55∈3]"]]:::plan + PgSelectRows55 --> First54 + PgSelect50 --> PgSelectRows55 + PgSelectSingle56{{"PgSelectSingle[56∈3]
ᐸusersᐳ"}}:::plan + First54 --> PgSelectSingle56 + PgClassExpression57{{"PgClassExpression[57∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle56 --> PgClassExpression57 + PgSelect58[["PgSelect[58∈4]
ᐸmessages+1ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect58 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect58 + PgSelect69[["PgSelect[69∈4]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect69 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect69 + Object67{{"Object[67∈4]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access61{{"Access[61∈4]
ᐸ58.hasMoreᐳ"}}:::plan + Access61 --> Object67 + Object62{{"Object[62∈4]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access61 --> Object62 + PgSelect58 --> Access61 + Lambda63{{"Lambda[63∈4]
ᐸhasNextPageCbᐳ"}}:::plan + Object62 --> Lambda63 + Lambda68{{"Lambda[68∈4]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object67 --> Lambda68 + First70{{"First[70∈4]"}}:::plan + PgSelectRows71[["PgSelectRows[71∈4]"]]:::plan + PgSelectRows71 --> First70 + PgSelect69 --> PgSelectRows71 + PgSelectSingle72{{"PgSelectSingle[72∈4]
ᐸmessagesᐳ"}}:::plan + First70 --> PgSelectSingle72 + PgClassExpression73{{"PgClassExpression[73∈4]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle72 --> PgClassExpression73 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-7" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 24, 25, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 26, 27, 74, 75, 11, 23, 59
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22,Constant24,Constant25 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 24, 25, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant26,Constant27,PgPageInfo59,Constant74,Constant75 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 26, 27, 59

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[28], PgSelect[43]
3: PgSelectRows[29], PgSelectRows[44]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect28,PgSelectRows29,PgSelect43,PgSelectRows44 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression17,PgClassExpression23 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 11, 17, 23, 22, 24, 25, 6

ROOT Connectionᐸ18ᐳ[22]
1: PgSelect[26], PgSelect[41]
ᐳ: PgPageInfo[57]
2: PgSelectRows[27], PgSelectRows[42]"):::bucket + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 43, 11

ROOT __Item{3}ᐸ44ᐳ[45]
1:
ᐳ: 46, 47, 48, 49
2: PgSelect[50]
3: PgSelectRows[55]
ᐳ: 54, 56, 57"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgSelect26,PgSelectRows27,PgSelect41,PgSelectRows42,PgPageInfo57 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket + class Bucket3,__Item45,PgSelectSingle46,Access47,PgCursor48,PgClassExpression49,PgSelect50,First54,PgSelectRows55,PgSelectSingle56,PgClassExpression57 bucket3 + Bucket4("Bucket 4 (defer)
Deps: 11, 18, 24, 25, 23, 6, 59

1: PgSelect[58], PgSelect[69]
ᐳ: 61, 62, 63, 67, 68
2: PgSelectRows[71]
ᐳ: 70, 72, 73"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 29, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[29]
1:
ᐳ: 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: First[36], PgSelectSingle[38]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{5}ᐸusersᐳ[38]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression39,PgClassExpression40 bucket6 - Bucket7("Bucket 7 (listItem)
Deps: 41, 11

ROOT __Item{7}ᐸ42ᐳ[43]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,__Item43,PgSelectSingle44,Access45 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 44, 45, 11

ROOT PgSelectSingle{7}ᐸmessagesᐳ[44]
1:
ᐳ: PgCursor[46], PgClassExpression[47]
2: PgSelect[48]
3: PgSelectRows[53]
ᐳ: First[52], PgSelectSingle[54]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor46,PgClassExpression47,PgSelect48,First52,PgSelectRows53,PgSelectSingle54 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 54

ROOT PgSelectSingle{8}ᐸusersᐳ[54]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression55 bucket9 - Bucket10("Bucket 10 (defer)
Deps: 11, 17, 23, 22, 6, 57

1: PgSelect[56], PgSelect[67]
ᐳ: 60, 61, 62, 65, 66
2: PgSelectRows[69]
ᐳ: 68, 70, 71"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgSelect56,Access60,Object61,Lambda62,Object65,Lambda66,PgSelect67,First68,PgSelectRows69,PgSelectSingle70,PgClassExpression71 bucket10 + class Bucket4,PgSelect58,Access61,Object62,Lambda63,Object67,Lambda68,PgSelect69,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression73 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket7 & Bucket10 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.deopt.sql index f71765bd7c..560add733f 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.mermaid index b0fedd2db8..fe94f48544 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.mermaid @@ -9,147 +9,132 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant74{{"Constant[74∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant74 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant75{{"Constant[75∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant75 --> Lambda25 + PgPageInfo59{{"PgPageInfo[59∈0] ➊"}}:::plan + Connection23 --> PgPageInfo59 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression17{{"PgClassExpression[17∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression17 - PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression23 - PgSelect26[["PgSelect[26∈3@s]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect26 - PgSelect41[["PgSelect[41∈3]
ᐸmessagesᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect41 - PgSelectRows27[["PgSelectRows[27∈3@s]"]]:::plan - PgSelect26 --> PgSelectRows27 - PgSelectRows42[["PgSelectRows[42∈3]"]]:::plan - PgSelect41 --> PgSelectRows42 - PgPageInfo57{{"PgPageInfo[57∈3] ➊"}}:::plan - Connection22 --> PgPageInfo57 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸmessagesᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgSelect32[["PgSelect[32∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression31 --> PgSelect32 - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgSelectSingle29 --> PgClassExpression31 - First36{{"First[36∈5]"}}:::plan - PgSelectRows37[["PgSelectRows[37∈5]"]]:::plan - PgSelectRows37 --> First36 - PgSelect32 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈5]
ᐸusersᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 - __Item43[/"__Item[43∈7]
ᐸ42ᐳ"\]:::itemplan - PgSelectRows42 ==> __Item43 - PgSelectSingle44{{"PgSelectSingle[44∈7]
ᐸmessagesᐳ"}}:::plan - __Item43 --> PgSelectSingle44 - Access45{{"Access[45∈7]
ᐸ41.cursorDetailsᐳ"}}:::plan - PgSelect41 --> Access45 - PgCursor46{{"PgCursor[46∈8]"}}:::plan - PgSelectSingle44 & Access45 --> PgCursor46 - PgSelect48[["PgSelect[48∈8]
ᐸusersᐳ"]]:::plan - PgClassExpression47{{"PgClassExpression[47∈8]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression47 --> PgSelect48 - PgSelectSingle44 --> PgClassExpression47 - First52{{"First[52∈8]"}}:::plan - PgSelectRows53[["PgSelectRows[53∈8]"]]:::plan - PgSelectRows53 --> First52 - PgSelect48 --> PgSelectRows53 - PgSelectSingle54{{"PgSelectSingle[54∈8]
ᐸusersᐳ"}}:::plan - First52 --> PgSelectSingle54 - PgClassExpression55{{"PgClassExpression[55∈9]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle54 --> PgClassExpression55 - PgSelect56[["PgSelect[56∈10]
ᐸmessages+1ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect56 - Object65{{"Object[65∈10]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access60{{"Access[60∈10]
ᐸ56.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access60 --> Object65 - PgSelect67[["PgSelect[67∈10]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect67 - Object61{{"Object[61∈10]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access60 --> Object61 - PgSelect56 --> Access60 - Lambda62{{"Lambda[62∈10]
ᐸhasNextPageCbᐳ"}}:::plan - Object61 --> Lambda62 - Lambda66{{"Lambda[66∈10]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object65 --> Lambda66 - First68{{"First[68∈10]"}}:::plan - PgSelectRows69[["PgSelectRows[69∈10]"]]:::plan - PgSelectRows69 --> First68 - PgSelect67 --> PgSelectRows69 - PgSelectSingle70{{"PgSelectSingle[70∈10]
ᐸmessagesᐳ"}}:::plan - First68 --> PgSelectSingle70 - PgClassExpression71{{"PgClassExpression[71∈10]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle70 --> PgClassExpression71 + Constant26{{"Constant[26∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸtrueᐳ"}}:::plan + PgSelect28[["PgSelect[28∈1@s]
ᐸmessagesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda25 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect28 + PgSelect43[["PgSelect[43∈1]
ᐸmessagesᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect43 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect43 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression18 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows29[["PgSelectRows[29∈1@s]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelectRows44[["PgSelectRows[44∈1]"]]:::plan + PgSelect43 --> PgSelectRows44 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 + PgCursor48{{"PgCursor[48∈3]"}}:::plan + PgSelectSingle46{{"PgSelectSingle[46∈3]
ᐸmessagesᐳ"}}:::plan + Access47{{"Access[47∈3]
ᐸ43.cursorDetailsᐳ"}}:::plan + PgSelectSingle46 & Access47 --> PgCursor48 + PgSelect50[["PgSelect[50∈3]
ᐸusersᐳ"]]:::plan + PgClassExpression49{{"PgClassExpression[49∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression49 --> PgSelect50 + __Item45[/"__Item[45∈3]
ᐸ44ᐳ"\]:::itemplan + PgSelectRows44 ==> __Item45 + __Item45 --> PgSelectSingle46 + PgSelect43 --> Access47 + PgSelectSingle46 --> PgClassExpression49 + First54{{"First[54∈3]"}}:::plan + PgSelectRows55[["PgSelectRows[55∈3]"]]:::plan + PgSelectRows55 --> First54 + PgSelect50 --> PgSelectRows55 + PgSelectSingle56{{"PgSelectSingle[56∈3]
ᐸusersᐳ"}}:::plan + First54 --> PgSelectSingle56 + PgClassExpression57{{"PgClassExpression[57∈3]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle56 --> PgClassExpression57 + PgSelect58[["PgSelect[58∈4]
ᐸmessages+1ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect58 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect58 + PgSelect69[["PgSelect[69∈4]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda25 -->|rejectNull| PgSelect69 + Object11 & PgClassExpression18 & PgClassExpression24 & Connection23 --> PgSelect69 + Object67{{"Object[67∈4]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access61{{"Access[61∈4]
ᐸ58.hasMoreᐳ"}}:::plan + Access61 --> Object67 + Object62{{"Object[62∈4]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access61 --> Object62 + PgSelect58 --> Access61 + Lambda63{{"Lambda[63∈4]
ᐸhasNextPageCbᐳ"}}:::plan + Object62 --> Lambda63 + Lambda68{{"Lambda[68∈4]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object67 --> Lambda68 + First70{{"First[70∈4]"}}:::plan + PgSelectRows71[["PgSelectRows[71∈4]"]]:::plan + PgSelectRows71 --> First70 + PgSelect69 --> PgSelectRows71 + PgSelectSingle72{{"PgSelectSingle[72∈4]
ᐸmessagesᐳ"}}:::plan + First70 --> PgSelectSingle72 + PgClassExpression73{{"PgClassExpression[73∈4]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle72 --> PgClassExpression73 %% define steps subgraph "Buckets for queries/conditions/archived-forum-inherited-messages.stream-7" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 24, 25, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 26, 27, 74, 75, 11, 23, 59
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22,Constant24,Constant25 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 24, 25, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection23,Lambda25,Constant26,Constant27,PgPageInfo59,Constant74,Constant75 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 23, 6, 26, 27, 59

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 18, 24
2: PgSelect[28], PgSelect[43]
3: PgSelectRows[29], PgSelectRows[44]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 24, 25, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression18,PgClassExpression24,PgSelect28,PgSelectRows29,PgSelect43,PgSelectRows44 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression17,PgClassExpression23 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 11, 17, 23, 22, 24, 25, 6

ROOT Connectionᐸ18ᐳ[22]
1: PgSelect[26], PgSelect[41]
ᐳ: PgPageInfo[57]
2: PgSelectRows[27], PgSelectRows[42]"):::bucket + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 43, 11

ROOT __Item{3}ᐸ44ᐳ[45]
1:
ᐳ: 46, 47, 48, 49
2: PgSelect[50]
3: PgSelectRows[55]
ᐳ: 54, 56, 57"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgSelect26,PgSelectRows27,PgSelect41,PgSelectRows42,PgPageInfo57 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket + class Bucket3,__Item45,PgSelectSingle46,Access47,PgCursor48,PgClassExpression49,PgSelect50,First54,PgSelectRows55,PgSelectSingle56,PgClassExpression57 bucket3 + Bucket4("Bucket 4 (defer)
Deps: 11, 18, 24, 25, 23, 6, 59

1: PgSelect[58], PgSelect[69]
ᐳ: 61, 62, 63, 67, 68
2: PgSelectRows[71]
ᐳ: 70, 72, 73"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 29, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[29]
1:
ᐳ: 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: First[36], PgSelectSingle[38]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{5}ᐸusersᐳ[38]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression39,PgClassExpression40 bucket6 - Bucket7("Bucket 7 (listItem)
Deps: 41, 11

ROOT __Item{7}ᐸ42ᐳ[43]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,__Item43,PgSelectSingle44,Access45 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 44, 45, 11

ROOT PgSelectSingle{7}ᐸmessagesᐳ[44]
1:
ᐳ: PgCursor[46], PgClassExpression[47]
2: PgSelect[48]
3: PgSelectRows[53]
ᐳ: First[52], PgSelectSingle[54]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor46,PgClassExpression47,PgSelect48,First52,PgSelectRows53,PgSelectSingle54 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 54

ROOT PgSelectSingle{8}ᐸusersᐳ[54]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression55 bucket9 - Bucket10("Bucket 10 (defer)
Deps: 11, 17, 23, 22, 6, 57

1: PgSelect[56], PgSelect[67]
ᐳ: 60, 61, 62, 65, 66
2: PgSelectRows[69]
ᐳ: 68, 70, 71"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgSelect56,Access60,Object61,Lambda62,Object65,Lambda66,PgSelect67,First68,PgSelectRows69,PgSelectSingle70,PgClassExpression71 bucket10 + class Bucket4,PgSelect58,Access61,Object62,Lambda63,Object67,Lambda68,PgSelect69,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression73 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket7 & Bucket10 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.sql b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.sql index f71765bd7c..560add733f 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/archived-forum-inherited-messages.stream-7.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is not null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is not null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/basics-with-author.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/basics-with-author.deopt.mermaid index 2317d63a27..0b67618d0f 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/basics-with-author.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/basics-with-author.deopt.mermaid @@ -9,78 +9,72 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant40{{"Constant[40∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant40 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant18{{"Constant[18∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant18 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant38{{"Constant[38∈0] ➊
ᐸ2ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgSelect19[["PgSelect[19∈2]
ᐸmessagesᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression18 & Constant38 & PgClassExpression23 --> PgSelect19 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelectSingle14 --> PgClassExpression18 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows24[["PgSelectRows[24∈2]"]]:::plan - PgSelect19 --> PgSelectRows24 - __Item25[/"__Item[25∈3]
ᐸ24ᐳ"\]:::itemplan - PgSelectRows24 ==> __Item25 - PgSelectSingle26{{"PgSelectSingle[26∈3]
ᐸmessagesᐳ"}}:::plan - __Item25 --> PgSelectSingle26 - PgSelect29[["PgSelect[29∈4]
ᐸusersᐳ"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression28 --> PgSelect29 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 - PgSelectSingle26 --> PgClassExpression28 - First33{{"First[33∈4]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈4]"]]:::plan - PgSelectRows34 --> First33 - PgSelect29 --> PgSelectRows34 - PgSelectSingle35{{"PgSelectSingle[35∈4]
ᐸusersᐳ"}}:::plan - First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈5]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression37 + Constant41{{"Constant[41∈0] ➊
ᐸ2ᐳ"}}:::plan + PgSelect20[["PgSelect[20∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Object11 & PgClassExpression19 & Constant41 & PgClassExpression24 & Lambda25 --> PgSelect20 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression19 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows26[["PgSelectRows[26∈1]"]]:::plan + PgSelect20 --> PgSelectRows26 + PgSelect31[["PgSelect[31∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression30 --> PgSelect31 + __Item27[/"__Item[27∈2]
ᐸ26ᐳ"\]:::itemplan + PgSelectRows26 ==> __Item27 + PgSelectSingle28{{"PgSelectSingle[28∈2]
ᐸmessagesᐳ"}}:::plan + __Item27 --> PgSelectSingle28 + PgClassExpression29{{"PgClassExpression[29∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression29 + PgSelectSingle28 --> PgClassExpression30 + First35{{"First[35∈2]"}}:::plan + PgSelectRows36[["PgSelectRows[36∈2]"]]:::plan + PgSelectRows36 --> First35 + PgSelect31 --> PgSelectRows36 + PgSelectSingle37{{"PgSelectSingle[37∈2]
ᐸusersᐳ"}}:::plan + First35 --> PgSelectSingle37 + PgClassExpression38{{"PgClassExpression[38∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression38 + PgClassExpression39{{"PgClassExpression[39∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression39 %% define steps subgraph "Buckets for queries/conditions/basics-with-author" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 38, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 18, 40, 41, 11
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Constant38 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 38

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Constant18,Lambda25,Constant40,Constant41 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 41, 25

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 19, 24
2: PgSelect[20]
3: PgSelectRows[26]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 38

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]
1:
ᐳ: 15, 18, 23
2: PgSelect[19]
3: PgSelectRows[24]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression19,PgSelect20,PgClassExpression24,PgSelectRows26 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ26ᐳ[27]
1:
ᐳ: 28, 29, 30
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: 35, 37, 38, 39"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression18,PgSelect19,PgClassExpression23,PgSelectRows24 bucket2 - Bucket3("Bucket 3 (listItem)
Deps: 11

ROOT __Item{3}ᐸ24ᐳ[25]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item25,PgSelectSingle26 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 26, 11

ROOT PgSelectSingle{3}ᐸmessagesᐳ[26]
1:
ᐳ: 27, 28
2: PgSelect[29]
3: PgSelectRows[34]
ᐳ: First[33], PgSelectSingle[35]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression27,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 35

ROOT PgSelectSingle{4}ᐸusersᐳ[35]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression36,PgClassExpression37 bucket5 + class Bucket2,__Item27,PgSelectSingle28,PgClassExpression29,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression38,PgClassExpression39 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/basics-with-author.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/basics-with-author.mermaid index 2317d63a27..0b67618d0f 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/basics-with-author.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/basics-with-author.mermaid @@ -9,78 +9,72 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant40{{"Constant[40∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant40 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant18{{"Constant[18∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant18 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant38{{"Constant[38∈0] ➊
ᐸ2ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgSelect19[["PgSelect[19∈2]
ᐸmessagesᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression18 & Constant38 & PgClassExpression23 --> PgSelect19 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelectSingle14 --> PgClassExpression18 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows24[["PgSelectRows[24∈2]"]]:::plan - PgSelect19 --> PgSelectRows24 - __Item25[/"__Item[25∈3]
ᐸ24ᐳ"\]:::itemplan - PgSelectRows24 ==> __Item25 - PgSelectSingle26{{"PgSelectSingle[26∈3]
ᐸmessagesᐳ"}}:::plan - __Item25 --> PgSelectSingle26 - PgSelect29[["PgSelect[29∈4]
ᐸusersᐳ"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression28 --> PgSelect29 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 - PgSelectSingle26 --> PgClassExpression28 - First33{{"First[33∈4]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈4]"]]:::plan - PgSelectRows34 --> First33 - PgSelect29 --> PgSelectRows34 - PgSelectSingle35{{"PgSelectSingle[35∈4]
ᐸusersᐳ"}}:::plan - First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈5]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression37 + Constant41{{"Constant[41∈0] ➊
ᐸ2ᐳ"}}:::plan + PgSelect20[["PgSelect[20∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Object11 & PgClassExpression19 & Constant41 & PgClassExpression24 & Lambda25 --> PgSelect20 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression19 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows26[["PgSelectRows[26∈1]"]]:::plan + PgSelect20 --> PgSelectRows26 + PgSelect31[["PgSelect[31∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression30 --> PgSelect31 + __Item27[/"__Item[27∈2]
ᐸ26ᐳ"\]:::itemplan + PgSelectRows26 ==> __Item27 + PgSelectSingle28{{"PgSelectSingle[28∈2]
ᐸmessagesᐳ"}}:::plan + __Item27 --> PgSelectSingle28 + PgClassExpression29{{"PgClassExpression[29∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression29 + PgSelectSingle28 --> PgClassExpression30 + First35{{"First[35∈2]"}}:::plan + PgSelectRows36[["PgSelectRows[36∈2]"]]:::plan + PgSelectRows36 --> First35 + PgSelect31 --> PgSelectRows36 + PgSelectSingle37{{"PgSelectSingle[37∈2]
ᐸusersᐳ"}}:::plan + First35 --> PgSelectSingle37 + PgClassExpression38{{"PgClassExpression[38∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression38 + PgClassExpression39{{"PgClassExpression[39∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression39 %% define steps subgraph "Buckets for queries/conditions/basics-with-author" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 38, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 18, 40, 41, 11
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Constant38 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 38

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Constant18,Lambda25,Constant40,Constant41 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 41, 25

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 19, 24
2: PgSelect[20]
3: PgSelectRows[26]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 38

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]
1:
ᐳ: 15, 18, 23
2: PgSelect[19]
3: PgSelectRows[24]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression19,PgSelect20,PgClassExpression24,PgSelectRows26 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ26ᐳ[27]
1:
ᐳ: 28, 29, 30
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: 35, 37, 38, 39"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression18,PgSelect19,PgClassExpression23,PgSelectRows24 bucket2 - Bucket3("Bucket 3 (listItem)
Deps: 11

ROOT __Item{3}ᐸ24ᐳ[25]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item25,PgSelectSingle26 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 26, 11

ROOT PgSelectSingle{3}ᐸmessagesᐳ[26]
1:
ᐳ: 27, 28
2: PgSelect[29]
3: PgSelectRows[34]
ᐳ: First[33], PgSelectSingle[35]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression27,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 35

ROOT PgSelectSingle{4}ᐸusersᐳ[35]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression36,PgClassExpression37 bucket5 + class Bucket2,__Item27,PgSelectSingle28,PgClassExpression29,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression38,PgClassExpression39 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/basics.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/basics.deopt.mermaid index d8deba5cca..b9d993e43f 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/basics.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/basics.deopt.mermaid @@ -9,60 +9,58 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant30{{"Constant[30∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant30 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant18{{"Constant[18∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant18 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant28{{"Constant[28∈0] ➊
ᐸ2ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgSelect19[["PgSelect[19∈2]
ᐸmessagesᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression18 & Constant28 & PgClassExpression23 --> PgSelect19 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelectSingle14 --> PgClassExpression18 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows24[["PgSelectRows[24∈2]"]]:::plan - PgSelect19 --> PgSelectRows24 - __Item25[/"__Item[25∈3]
ᐸ24ᐳ"\]:::itemplan - PgSelectRows24 ==> __Item25 - PgSelectSingle26{{"PgSelectSingle[26∈3]
ᐸmessagesᐳ"}}:::plan - __Item25 --> PgSelectSingle26 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 + Constant31{{"Constant[31∈0] ➊
ᐸ2ᐳ"}}:::plan + PgSelect20[["PgSelect[20∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Object11 & PgClassExpression19 & Constant31 & PgClassExpression24 & Lambda25 --> PgSelect20 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression19 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows26[["PgSelectRows[26∈1]"]]:::plan + PgSelect20 --> PgSelectRows26 + __Item27[/"__Item[27∈2]
ᐸ26ᐳ"\]:::itemplan + PgSelectRows26 ==> __Item27 + PgSelectSingle28{{"PgSelectSingle[28∈2]
ᐸmessagesᐳ"}}:::plan + __Item27 --> PgSelectSingle28 + PgClassExpression29{{"PgClassExpression[29∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression29 %% define steps subgraph "Buckets for queries/conditions/basics" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 28, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 18, 30, 31, 11
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Constant28 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 28

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Constant18,Lambda25,Constant30,Constant31 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 31, 25

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 19, 24
2: PgSelect[20]
3: PgSelectRows[26]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 28

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]
1:
ᐳ: 15, 18, 23
2: PgSelect[19]
3: PgSelectRows[24]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression19,PgSelect20,PgClassExpression24,PgSelectRows26 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ26ᐳ[27]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression18,PgSelect19,PgClassExpression23,PgSelectRows24 bucket2 - Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ24ᐳ[25]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item25,PgSelectSingle26 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 26

ROOT PgSelectSingle{3}ᐸmessagesᐳ[26]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression27 bucket4 + class Bucket2,__Item27,PgSelectSingle28,PgClassExpression29 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/basics.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/basics.mermaid index d8deba5cca..b9d993e43f 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/basics.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/basics.mermaid @@ -9,60 +9,58 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant30{{"Constant[30∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant30 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda25[["Lambda[25∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant18{{"Constant[18∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant18 --> Lambda25 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant28{{"Constant[28∈0] ➊
ᐸ2ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgSelect19[["PgSelect[19∈2]
ᐸmessagesᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression18 & Constant28 & PgClassExpression23 --> PgSelect19 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelectSingle14 --> PgClassExpression18 - PgSelectSingle14 --> PgClassExpression23 - PgSelectRows24[["PgSelectRows[24∈2]"]]:::plan - PgSelect19 --> PgSelectRows24 - __Item25[/"__Item[25∈3]
ᐸ24ᐳ"\]:::itemplan - PgSelectRows24 ==> __Item25 - PgSelectSingle26{{"PgSelectSingle[26∈3]
ᐸmessagesᐳ"}}:::plan - __Item25 --> PgSelectSingle26 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 + Constant31{{"Constant[31∈0] ➊
ᐸ2ᐳ"}}:::plan + PgSelect20[["PgSelect[20∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Object11 & PgClassExpression19 & Constant31 & PgClassExpression24 & Lambda25 --> PgSelect20 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression19 + PgSelectSingle15 --> PgClassExpression24 + PgSelectRows26[["PgSelectRows[26∈1]"]]:::plan + PgSelect20 --> PgSelectRows26 + __Item27[/"__Item[27∈2]
ᐸ26ᐳ"\]:::itemplan + PgSelectRows26 ==> __Item27 + PgSelectSingle28{{"PgSelectSingle[28∈2]
ᐸmessagesᐳ"}}:::plan + __Item27 --> PgSelectSingle28 + PgClassExpression29{{"PgClassExpression[29∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression29 %% define steps subgraph "Buckets for queries/conditions/basics" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 28, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 18, 30, 31, 11
2: Lambda[12], Lambda[25]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Constant28 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 28

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Constant18,Lambda25,Constant30,Constant31 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 31, 25

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 19, 24
2: PgSelect[20]
3: PgSelectRows[26]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 28

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]
1:
ᐳ: 15, 18, 23
2: PgSelect[19]
3: PgSelectRows[24]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression19,PgSelect20,PgClassExpression24,PgSelectRows26 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ26ᐳ[27]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression18,PgSelect19,PgClassExpression23,PgSelectRows24 bucket2 - Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ24ᐳ[25]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item25,PgSelectSingle26 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 26

ROOT PgSelectSingle{3}ᐸmessagesᐳ[26]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression27 bucket4 + class Bucket2,__Item27,PgSelectSingle28,PgClassExpression29 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.deopt.mermaid index 583750a8ef..e9fbb6ed1a 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.deopt.mermaid @@ -11,64 +11,73 @@ graph TD %% plan dependencies PgSelect12[["PgSelect[12∈0] ➊
ᐸforumsᐳ"]]:::plan Object15{{"Object[15∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access20{{"Access[20∈0] ➊
ᐸ0.some.featured.equalToᐳ"}}:::plan - Object15 & Access20 --> PgSelect12 + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + ApplyInput17{{"ApplyInput[17∈0] ➊"}}:::plan + Object15 & Lambda16 & ApplyInput17 --> PgSelect12 Access13{{"Access[13∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access14{{"Access[14∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access13 & Access14 --> Object15 + __InputObject22{{"__InputObject[22∈0] ➊"}}:::plan + Access23{{"Access[23∈0] ➊
ᐸ0.featuredᐳ"}}:::plan + Access25{{"Access[25∈0] ➊
ᐸ0.isArchivedᐳ"}}:::plan + Access23 & Access25 --> __InputObject22 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + __InputObject9 --> __InputObject8 + Access10{{"Access[10∈0] ➊
ᐸ0.someᐳ"}}:::plan + Access10 --> __InputObject9 + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value0 --> Access10 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access13 __Value2 --> Access14 - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value0 --> Access20 - PgSelectRows24[["PgSelectRows[24∈0] ➊"]]:::plan - PgSelect12 --> PgSelectRows24 - Access39{{"Access[39∈0] ➊
ᐸ0.featured.notEqualToᐳ"}}:::plan - __Value0 --> Access39 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + __InputObject8 --> ApplyInput17 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect12 --> PgSelectRows18 + __Value0 --> Access23 + __Value0 --> Access25 + ApplyInput32{{"ApplyInput[32∈0] ➊"}}:::plan + __InputObject22 --> ApplyInput32 + Lambda34[["Lambda[34∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant7 --> Lambda34 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item25[/"__Item[25∈1]
ᐸ24ᐳ"\]:::itemplan - PgSelectRows24 ==> __Item25 - PgSelectSingle26{{"PgSelectSingle[26∈1]
ᐸforumsᐳ"}}:::plan - __Item25 --> PgSelectSingle26 - PgSelect35[["PgSelect[35∈2]
ᐸmessagesᐳ"]]:::plan - PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object15 & PgClassExpression34 & Access39 & PgClassExpression42 --> PgSelect35 - PgClassExpression27{{"PgClassExpression[27∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 - PgSelectSingle26 --> PgClassExpression34 - PgSelectSingle26 --> PgClassExpression42 - PgSelectRows43[["PgSelectRows[43∈2]"]]:::plan - PgSelect35 --> PgSelectRows43 - __Item44[/"__Item[44∈3]
ᐸ43ᐳ"\]:::itemplan - PgSelectRows43 ==> __Item44 - PgSelectSingle45{{"PgSelectSingle[45∈3]
ᐸmessagesᐳ"}}:::plan - __Item44 --> PgSelectSingle45 - PgClassExpression46{{"PgClassExpression[46∈4]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈4]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression47 + PgSelect28[["PgSelect[28∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression27{{"PgClassExpression[27∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Object15 & PgClassExpression27 & ApplyInput32 & PgClassExpression33 & Lambda34 --> PgSelect28 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸforumsᐳ"}}:::plan + __Item19 --> PgSelectSingle20 + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression21 + PgSelectSingle20 --> PgClassExpression27 + PgSelectSingle20 --> PgClassExpression33 + PgSelectRows35[["PgSelectRows[35∈1]"]]:::plan + PgSelect28 --> PgSelectRows35 + __Item36[/"__Item[36∈2]
ᐸ35ᐳ"\]:::itemplan + PgSelectRows35 ==> __Item36 + PgSelectSingle37{{"PgSelectSingle[37∈2]
ᐸmessagesᐳ"}}:::plan + __Item36 --> PgSelectSingle37 + PgClassExpression38{{"PgClassExpression[38∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression38 + PgClassExpression39{{"PgClassExpression[39∈2]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression39 %% define steps subgraph "Buckets for queries/conditions/complex-filter-via-partial-variables" - Bucket0("Bucket 0 (root)

1:
ᐳ: 13, 14, 20, 39, 15
2: PgSelect[12]
3: PgSelectRows[24]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 10, 13, 14, 23, 25, 9, 15, 22, 32, 8, 17
2: Lambda[16], Lambda[34]
3: PgSelect[12]
4: PgSelectRows[18]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect12,Access13,Access14,Object15,Access20,PgSelectRows24,Access39 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 15, 39

ROOT __Item{1}ᐸ24ᐳ[25]"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Constant7,__InputObject8,__InputObject9,Access10,PgSelect12,Access13,Access14,Object15,Lambda16,ApplyInput17,PgSelectRows18,__InputObject22,Access23,Access25,ApplyInput32,Lambda34 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 15, 6, 32, 34

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 21, 27, 33
2: PgSelect[28]
3: PgSelectRows[35]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item25,PgSelectSingle26 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 26, 15, 39

ROOT PgSelectSingle{1}ᐸforumsᐳ[26]
1:
ᐳ: 27, 34, 42
2: PgSelect[35]
3: PgSelectRows[43]"):::bucket + class Bucket1,__Item19,PgSelectSingle20,PgClassExpression21,PgClassExpression27,PgSelect28,PgClassExpression33,PgSelectRows35 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ35ᐳ[36]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression27,PgClassExpression34,PgSelect35,PgClassExpression42,PgSelectRows43 bucket2 - Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ43ᐳ[44]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item44,PgSelectSingle45 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 45

ROOT PgSelectSingle{3}ᐸmessagesᐳ[45]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression46,PgClassExpression47 bucket4 + class Bucket2,__Item36,PgSelectSingle37,PgClassExpression38,PgClassExpression39 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.deopt.sql index ee84efb4cc..7588f3bec3 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.deopt.sql @@ -5,6 +5,8 @@ select from app_public.forums as __forums__ where ( + true /* authorization checks */ + ) and ( __forums__.archived_at is null ) and ( exists( @@ -17,8 +19,6 @@ where __messages_filter__.featured = $1::"bool" ) ) - ) and ( - true /* authorization checks */ ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.mermaid index 583750a8ef..e9fbb6ed1a 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.mermaid @@ -11,64 +11,73 @@ graph TD %% plan dependencies PgSelect12[["PgSelect[12∈0] ➊
ᐸforumsᐳ"]]:::plan Object15{{"Object[15∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access20{{"Access[20∈0] ➊
ᐸ0.some.featured.equalToᐳ"}}:::plan - Object15 & Access20 --> PgSelect12 + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + ApplyInput17{{"ApplyInput[17∈0] ➊"}}:::plan + Object15 & Lambda16 & ApplyInput17 --> PgSelect12 Access13{{"Access[13∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access14{{"Access[14∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access13 & Access14 --> Object15 + __InputObject22{{"__InputObject[22∈0] ➊"}}:::plan + Access23{{"Access[23∈0] ➊
ᐸ0.featuredᐳ"}}:::plan + Access25{{"Access[25∈0] ➊
ᐸ0.isArchivedᐳ"}}:::plan + Access23 & Access25 --> __InputObject22 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + __InputObject9 --> __InputObject8 + Access10{{"Access[10∈0] ➊
ᐸ0.someᐳ"}}:::plan + Access10 --> __InputObject9 + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value0 --> Access10 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access13 __Value2 --> Access14 - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value0 --> Access20 - PgSelectRows24[["PgSelectRows[24∈0] ➊"]]:::plan - PgSelect12 --> PgSelectRows24 - Access39{{"Access[39∈0] ➊
ᐸ0.featured.notEqualToᐳ"}}:::plan - __Value0 --> Access39 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + __InputObject8 --> ApplyInput17 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect12 --> PgSelectRows18 + __Value0 --> Access23 + __Value0 --> Access25 + ApplyInput32{{"ApplyInput[32∈0] ➊"}}:::plan + __InputObject22 --> ApplyInput32 + Lambda34[["Lambda[34∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant7 --> Lambda34 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item25[/"__Item[25∈1]
ᐸ24ᐳ"\]:::itemplan - PgSelectRows24 ==> __Item25 - PgSelectSingle26{{"PgSelectSingle[26∈1]
ᐸforumsᐳ"}}:::plan - __Item25 --> PgSelectSingle26 - PgSelect35[["PgSelect[35∈2]
ᐸmessagesᐳ"]]:::plan - PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object15 & PgClassExpression34 & Access39 & PgClassExpression42 --> PgSelect35 - PgClassExpression27{{"PgClassExpression[27∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 - PgSelectSingle26 --> PgClassExpression34 - PgSelectSingle26 --> PgClassExpression42 - PgSelectRows43[["PgSelectRows[43∈2]"]]:::plan - PgSelect35 --> PgSelectRows43 - __Item44[/"__Item[44∈3]
ᐸ43ᐳ"\]:::itemplan - PgSelectRows43 ==> __Item44 - PgSelectSingle45{{"PgSelectSingle[45∈3]
ᐸmessagesᐳ"}}:::plan - __Item44 --> PgSelectSingle45 - PgClassExpression46{{"PgClassExpression[46∈4]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈4]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression47 + PgSelect28[["PgSelect[28∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression27{{"PgClassExpression[27∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Object15 & PgClassExpression27 & ApplyInput32 & PgClassExpression33 & Lambda34 --> PgSelect28 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸforumsᐳ"}}:::plan + __Item19 --> PgSelectSingle20 + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression21 + PgSelectSingle20 --> PgClassExpression27 + PgSelectSingle20 --> PgClassExpression33 + PgSelectRows35[["PgSelectRows[35∈1]"]]:::plan + PgSelect28 --> PgSelectRows35 + __Item36[/"__Item[36∈2]
ᐸ35ᐳ"\]:::itemplan + PgSelectRows35 ==> __Item36 + PgSelectSingle37{{"PgSelectSingle[37∈2]
ᐸmessagesᐳ"}}:::plan + __Item36 --> PgSelectSingle37 + PgClassExpression38{{"PgClassExpression[38∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression38 + PgClassExpression39{{"PgClassExpression[39∈2]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression39 %% define steps subgraph "Buckets for queries/conditions/complex-filter-via-partial-variables" - Bucket0("Bucket 0 (root)

1:
ᐳ: 13, 14, 20, 39, 15
2: PgSelect[12]
3: PgSelectRows[24]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 10, 13, 14, 23, 25, 9, 15, 22, 32, 8, 17
2: Lambda[16], Lambda[34]
3: PgSelect[12]
4: PgSelectRows[18]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect12,Access13,Access14,Object15,Access20,PgSelectRows24,Access39 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 15, 39

ROOT __Item{1}ᐸ24ᐳ[25]"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Constant7,__InputObject8,__InputObject9,Access10,PgSelect12,Access13,Access14,Object15,Lambda16,ApplyInput17,PgSelectRows18,__InputObject22,Access23,Access25,ApplyInput32,Lambda34 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 15, 6, 32, 34

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 21, 27, 33
2: PgSelect[28]
3: PgSelectRows[35]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item25,PgSelectSingle26 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 26, 15, 39

ROOT PgSelectSingle{1}ᐸforumsᐳ[26]
1:
ᐳ: 27, 34, 42
2: PgSelect[35]
3: PgSelectRows[43]"):::bucket + class Bucket1,__Item19,PgSelectSingle20,PgClassExpression21,PgClassExpression27,PgSelect28,PgClassExpression33,PgSelectRows35 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ35ᐳ[36]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression27,PgClassExpression34,PgSelect35,PgClassExpression42,PgSelectRows43 bucket2 - Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ43ᐳ[44]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item44,PgSelectSingle45 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 45

ROOT PgSelectSingle{3}ᐸmessagesᐳ[45]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression46,PgClassExpression47 bucket4 + class Bucket2,__Item36,PgSelectSingle37,PgClassExpression38,PgClassExpression39 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.sql b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.sql index ee84efb4cc..7588f3bec3 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-partial-variables.sql @@ -5,6 +5,8 @@ select from app_public.forums as __forums__ where ( + true /* authorization checks */ + ) and ( __forums__.archived_at is null ) and ( exists( @@ -17,8 +19,6 @@ where __messages_filter__.featured = $1::"bool" ) ) - ) and ( - true /* authorization checks */ ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.deopt.mermaid index 54e0b9b132..cd9dba005a 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.deopt.mermaid @@ -11,64 +11,65 @@ graph TD %% plan dependencies PgSelect10[["PgSelect[10∈0] ➊
ᐸforumsᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access32{{"Access[32∈0] ➊
ᐸ0.forumFilter.messages.some.featured.equalToᐳ"}}:::plan - Object13 & Access32 --> PgSelect10 + Lambda14[["Lambda[14∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + ApplyInput15{{"ApplyInput[15∈0] ➊"}}:::plan + Object13 & Lambda14 & ApplyInput15 --> PgSelect10 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 + Access8{{"Access[8∈0] ➊
ᐸ0.forumFilterᐳ"}}:::plan + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value0 --> Access8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value0 --> Access32 - PgSelectRows38[["PgSelectRows[38∈0] ➊"]]:::plan - PgSelect10 --> PgSelectRows38 - Access54{{"Access[54∈0] ➊
ᐸ0.messagesFilter.featured.notEqualToᐳ"}}:::plan - __Value0 --> Access54 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda14 + Access8 --> ApplyInput15 + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan + PgSelect10 --> PgSelectRows16 + Access20{{"Access[20∈0] ➊
ᐸ0.messagesFilterᐳ"}}:::plan + __Value0 --> Access20 + ApplyInput27{{"ApplyInput[27∈0] ➊"}}:::plan + Access20 --> ApplyInput27 + Lambda29[["Lambda[29∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant7 --> Lambda29 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item39[/"__Item[39∈1]
ᐸ38ᐳ"\]:::itemplan - PgSelectRows38 ==> __Item39 - PgSelectSingle40{{"PgSelectSingle[40∈1]
ᐸforumsᐳ"}}:::plan - __Item39 --> PgSelectSingle40 - PgSelect46[["PgSelect[46∈2]
ᐸmessagesᐳ"]]:::plan - PgClassExpression45{{"PgClassExpression[45∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression60{{"PgClassExpression[60∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object13 & PgClassExpression45 & Access54 & PgClassExpression60 --> PgSelect46 - PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle40 --> PgClassExpression41 - PgSelectSingle40 --> PgClassExpression45 - PgSelectSingle40 --> PgClassExpression60 - PgSelectRows61[["PgSelectRows[61∈2]"]]:::plan - PgSelect46 --> PgSelectRows61 - __Item62[/"__Item[62∈3]
ᐸ61ᐳ"\]:::itemplan - PgSelectRows61 ==> __Item62 - PgSelectSingle63{{"PgSelectSingle[63∈3]
ᐸmessagesᐳ"}}:::plan - __Item62 --> PgSelectSingle63 - PgClassExpression64{{"PgClassExpression[64∈4]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression64 - PgClassExpression65{{"PgClassExpression[65∈4]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression65 + PgSelect23[["PgSelect[23∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression28{{"PgClassExpression[28∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Object13 & PgClassExpression22 & ApplyInput27 & PgClassExpression28 & Lambda29 --> PgSelect23 + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan + PgSelectRows16 ==> __Item17 + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸforumsᐳ"}}:::plan + __Item17 --> PgSelectSingle18 + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression19 + PgSelectSingle18 --> PgClassExpression22 + PgSelectSingle18 --> PgClassExpression28 + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan + PgSelect23 --> PgSelectRows30 + __Item31[/"__Item[31∈2]
ᐸ30ᐳ"\]:::itemplan + PgSelectRows30 ==> __Item31 + PgSelectSingle32{{"PgSelectSingle[32∈2]
ᐸmessagesᐳ"}}:::plan + __Item31 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 %% define steps subgraph "Buckets for queries/conditions/complex-filter-via-variables" - Bucket0("Bucket 0 (root)

1:
ᐳ: 11, 12, 32, 54, 13
2: PgSelect[10]
3: PgSelectRows[38]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 8, 11, 12, 20, 13, 15, 27
2: Lambda[14], Lambda[29]
3: PgSelect[10]
4: PgSelectRows[16]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect10,Access11,Access12,Object13,Access32,PgSelectRows38,Access54 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 13, 54

ROOT __Item{1}ᐸ38ᐳ[39]"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Constant7,Access8,PgSelect10,Access11,Access12,Object13,Lambda14,ApplyInput15,PgSelectRows16,Access20,ApplyInput27,Lambda29 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 13, 6, 27, 29

ROOT __Item{1}ᐸ16ᐳ[17]
1:
ᐳ: 18, 19, 22, 28
2: PgSelect[23]
3: PgSelectRows[30]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item39,PgSelectSingle40 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 40, 13, 54

ROOT PgSelectSingle{1}ᐸforumsᐳ[40]
1:
ᐳ: 41, 45, 60
2: PgSelect[46]
3: PgSelectRows[61]"):::bucket + class Bucket1,__Item17,PgSelectSingle18,PgClassExpression19,PgClassExpression22,PgSelect23,PgClassExpression28,PgSelectRows30 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ30ᐳ[31]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression41,PgClassExpression45,PgSelect46,PgClassExpression60,PgSelectRows61 bucket2 - Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ61ᐳ[62]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item62,PgSelectSingle63 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 63

ROOT PgSelectSingle{3}ᐸmessagesᐳ[63]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression64,PgClassExpression65 bucket4 + class Bucket2,__Item31,PgSelectSingle32,PgClassExpression33,PgClassExpression34 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.deopt.sql index ee84efb4cc..7588f3bec3 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.deopt.sql @@ -5,6 +5,8 @@ select from app_public.forums as __forums__ where ( + true /* authorization checks */ + ) and ( __forums__.archived_at is null ) and ( exists( @@ -17,8 +19,6 @@ where __messages_filter__.featured = $1::"bool" ) ) - ) and ( - true /* authorization checks */ ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.mermaid index 54e0b9b132..cd9dba005a 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.mermaid @@ -11,64 +11,65 @@ graph TD %% plan dependencies PgSelect10[["PgSelect[10∈0] ➊
ᐸforumsᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access32{{"Access[32∈0] ➊
ᐸ0.forumFilter.messages.some.featured.equalToᐳ"}}:::plan - Object13 & Access32 --> PgSelect10 + Lambda14[["Lambda[14∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + ApplyInput15{{"ApplyInput[15∈0] ➊"}}:::plan + Object13 & Lambda14 & ApplyInput15 --> PgSelect10 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 + Access8{{"Access[8∈0] ➊
ᐸ0.forumFilterᐳ"}}:::plan + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value0 --> Access8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value0 --> Access32 - PgSelectRows38[["PgSelectRows[38∈0] ➊"]]:::plan - PgSelect10 --> PgSelectRows38 - Access54{{"Access[54∈0] ➊
ᐸ0.messagesFilter.featured.notEqualToᐳ"}}:::plan - __Value0 --> Access54 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda14 + Access8 --> ApplyInput15 + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan + PgSelect10 --> PgSelectRows16 + Access20{{"Access[20∈0] ➊
ᐸ0.messagesFilterᐳ"}}:::plan + __Value0 --> Access20 + ApplyInput27{{"ApplyInput[27∈0] ➊"}}:::plan + Access20 --> ApplyInput27 + Lambda29[["Lambda[29∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant7 --> Lambda29 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item39[/"__Item[39∈1]
ᐸ38ᐳ"\]:::itemplan - PgSelectRows38 ==> __Item39 - PgSelectSingle40{{"PgSelectSingle[40∈1]
ᐸforumsᐳ"}}:::plan - __Item39 --> PgSelectSingle40 - PgSelect46[["PgSelect[46∈2]
ᐸmessagesᐳ"]]:::plan - PgClassExpression45{{"PgClassExpression[45∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression60{{"PgClassExpression[60∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object13 & PgClassExpression45 & Access54 & PgClassExpression60 --> PgSelect46 - PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle40 --> PgClassExpression41 - PgSelectSingle40 --> PgClassExpression45 - PgSelectSingle40 --> PgClassExpression60 - PgSelectRows61[["PgSelectRows[61∈2]"]]:::plan - PgSelect46 --> PgSelectRows61 - __Item62[/"__Item[62∈3]
ᐸ61ᐳ"\]:::itemplan - PgSelectRows61 ==> __Item62 - PgSelectSingle63{{"PgSelectSingle[63∈3]
ᐸmessagesᐳ"}}:::plan - __Item62 --> PgSelectSingle63 - PgClassExpression64{{"PgClassExpression[64∈4]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression64 - PgClassExpression65{{"PgClassExpression[65∈4]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression65 + PgSelect23[["PgSelect[23∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression28{{"PgClassExpression[28∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Object13 & PgClassExpression22 & ApplyInput27 & PgClassExpression28 & Lambda29 --> PgSelect23 + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan + PgSelectRows16 ==> __Item17 + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸforumsᐳ"}}:::plan + __Item17 --> PgSelectSingle18 + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression19 + PgSelectSingle18 --> PgClassExpression22 + PgSelectSingle18 --> PgClassExpression28 + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan + PgSelect23 --> PgSelectRows30 + __Item31[/"__Item[31∈2]
ᐸ30ᐳ"\]:::itemplan + PgSelectRows30 ==> __Item31 + PgSelectSingle32{{"PgSelectSingle[32∈2]
ᐸmessagesᐳ"}}:::plan + __Item31 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 %% define steps subgraph "Buckets for queries/conditions/complex-filter-via-variables" - Bucket0("Bucket 0 (root)

1:
ᐳ: 11, 12, 32, 54, 13
2: PgSelect[10]
3: PgSelectRows[38]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 8, 11, 12, 20, 13, 15, 27
2: Lambda[14], Lambda[29]
3: PgSelect[10]
4: PgSelectRows[16]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect10,Access11,Access12,Object13,Access32,PgSelectRows38,Access54 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 13, 54

ROOT __Item{1}ᐸ38ᐳ[39]"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Constant7,Access8,PgSelect10,Access11,Access12,Object13,Lambda14,ApplyInput15,PgSelectRows16,Access20,ApplyInput27,Lambda29 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 13, 6, 27, 29

ROOT __Item{1}ᐸ16ᐳ[17]
1:
ᐳ: 18, 19, 22, 28
2: PgSelect[23]
3: PgSelectRows[30]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item39,PgSelectSingle40 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 40, 13, 54

ROOT PgSelectSingle{1}ᐸforumsᐳ[40]
1:
ᐳ: 41, 45, 60
2: PgSelect[46]
3: PgSelectRows[61]"):::bucket + class Bucket1,__Item17,PgSelectSingle18,PgClassExpression19,PgClassExpression22,PgSelect23,PgClassExpression28,PgSelectRows30 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ30ᐳ[31]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression41,PgClassExpression45,PgSelect46,PgClassExpression60,PgSelectRows61 bucket2 - Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ61ᐳ[62]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item62,PgSelectSingle63 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 63

ROOT PgSelectSingle{3}ᐸmessagesᐳ[63]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression64,PgClassExpression65 bucket4 + class Bucket2,__Item31,PgSelectSingle32,PgClassExpression33,PgClassExpression34 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.sql b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.sql index ee84efb4cc..7588f3bec3 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter-via-variables.sql @@ -5,6 +5,8 @@ select from app_public.forums as __forums__ where ( + true /* authorization checks */ + ) and ( __forums__.archived_at is null ) and ( exists( @@ -17,8 +19,6 @@ where __messages_filter__.featured = $1::"bool" ) ) - ) and ( - true /* authorization checks */ ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.deopt.mermaid index 6be1c7ac1b..bed17690fe 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.deopt.mermaid @@ -11,60 +11,73 @@ graph TD %% plan dependencies PgSelect13[["PgSelect[13∈0] ➊
ᐸforumsᐳ"]]:::plan Object16{{"Object[16∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant36{{"Constant[36∈0] ➊
ᐸtrueᐳ"}}:::plan - Object16 & Constant36 --> PgSelect13 + Lambda17[["Lambda[17∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + ApplyInput18{{"ApplyInput[18∈0] ➊"}}:::plan + Object16 & Lambda17 & ApplyInput18 --> PgSelect13 + __InputObject10{{"__InputObject[10∈0] ➊"}}:::plan + __InputObject11{{"__InputObject[11∈0] ➊"}}:::plan + __InputObject11 --> __InputObject10 + Constant39{{"Constant[39∈0] ➊
ᐸtrueᐳ"}}:::plan + Constant39 --> __InputObject11 Access14{{"Access[14∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access15{{"Access[15∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access14 & Access15 --> Object16 + __InputObject23{{"__InputObject[23∈0] ➊"}}:::plan + __InputObject24{{"__InputObject[24∈0] ➊"}}:::plan + __InputObject24 --> __InputObject23 + Constant39 --> __InputObject24 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + __InputObject9 --> __InputObject8 + __InputObject10 --> __InputObject9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access14 __Value2 --> Access15 - PgSelectRows17[["PgSelectRows[17∈0] ➊"]]:::plan - PgSelect13 --> PgSelectRows17 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda17 + __InputObject8 --> ApplyInput18 + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelect13 --> PgSelectRows19 + ApplyInput31{{"ApplyInput[31∈0] ➊"}}:::plan + __InputObject23 --> ApplyInput31 + Lambda33[["Lambda[33∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant7 --> Lambda33 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item18[/"__Item[18∈1]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈1]
ᐸforumsᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgSelect26[["PgSelect[26∈2]
ᐸmessagesᐳ"]]:::plan - PgClassExpression25{{"PgClassExpression[25∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object16 & PgClassExpression25 & Constant36 & PgClassExpression30 --> PgSelect26 - PgClassExpression20{{"PgClassExpression[20∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression20 - PgSelectSingle19 --> PgClassExpression25 - PgSelectSingle19 --> PgClassExpression30 - PgSelectRows31[["PgSelectRows[31∈2]"]]:::plan - PgSelect26 --> PgSelectRows31 - __Item32[/"__Item[32∈3]
ᐸ31ᐳ"\]:::itemplan - PgSelectRows31 ==> __Item32 - PgSelectSingle33{{"PgSelectSingle[33∈3]
ᐸmessagesᐳ"}}:::plan - __Item32 --> PgSelectSingle33 - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle33 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle33 --> PgClassExpression35 + PgSelect27[["PgSelect[27∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Object16 & PgClassExpression26 & ApplyInput31 & PgClassExpression32 & Lambda33 --> PgSelect27 + __Item20[/"__Item[20∈1]
ᐸ19ᐳ"\]:::itemplan + PgSelectRows19 ==> __Item20 + PgSelectSingle21{{"PgSelectSingle[21∈1]
ᐸforumsᐳ"}}:::plan + __Item20 --> PgSelectSingle21 + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression22 + PgSelectSingle21 --> PgClassExpression26 + PgSelectSingle21 --> PgClassExpression32 + PgSelectRows34[["PgSelectRows[34∈1]"]]:::plan + PgSelect27 --> PgSelectRows34 + __Item35[/"__Item[35∈2]
ᐸ34ᐳ"\]:::itemplan + PgSelectRows34 ==> __Item35 + PgSelectSingle36{{"PgSelectSingle[36∈2]
ᐸmessagesᐳ"}}:::plan + __Item35 --> PgSelectSingle36 + PgClassExpression37{{"PgClassExpression[37∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle36 --> PgClassExpression37 + PgClassExpression38{{"PgClassExpression[38∈2]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle36 --> PgClassExpression38 %% define steps subgraph "Buckets for queries/conditions/complex-filter" - Bucket0("Bucket 0 (root)

1:
ᐳ: 14, 15, 36, 16
2: PgSelect[13]
3: PgSelectRows[17]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 14, 15, 39, 11, 16, 24, 10, 23, 31, 9, 8, 18
2: Lambda[17], Lambda[33]
3: PgSelect[13]
4: PgSelectRows[19]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect13,Access14,Access15,Object16,PgSelectRows17,Constant36 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 16, 36

ROOT __Item{1}ᐸ17ᐳ[18]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,__InputObject8,__InputObject9,__InputObject10,__InputObject11,PgSelect13,Access14,Access15,Object16,Lambda17,ApplyInput18,PgSelectRows19,__InputObject23,__InputObject24,ApplyInput31,Lambda33,Constant39 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 16, 6, 31, 33

ROOT __Item{1}ᐸ19ᐳ[20]
1:
ᐳ: 21, 22, 26, 32
2: PgSelect[27]
3: PgSelectRows[34]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item18,PgSelectSingle19 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 19, 16, 36

ROOT PgSelectSingle{1}ᐸforumsᐳ[19]
1:
ᐳ: 20, 25, 30
2: PgSelect[26]
3: PgSelectRows[31]"):::bucket + class Bucket1,__Item20,PgSelectSingle21,PgClassExpression22,PgClassExpression26,PgSelect27,PgClassExpression32,PgSelectRows34 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ34ᐳ[35]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression20,PgClassExpression25,PgSelect26,PgClassExpression30,PgSelectRows31 bucket2 - Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ31ᐳ[32]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item32,PgSelectSingle33 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 33

ROOT PgSelectSingle{3}ᐸmessagesᐳ[33]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression34,PgClassExpression35 bucket4 + class Bucket2,__Item35,PgSelectSingle36,PgClassExpression37,PgClassExpression38 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.deopt.sql index ee84efb4cc..7588f3bec3 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.deopt.sql @@ -5,6 +5,8 @@ select from app_public.forums as __forums__ where ( + true /* authorization checks */ + ) and ( __forums__.archived_at is null ) and ( exists( @@ -17,8 +19,6 @@ where __messages_filter__.featured = $1::"bool" ) ) - ) and ( - true /* authorization checks */ ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.mermaid index 6be1c7ac1b..bed17690fe 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.mermaid @@ -11,60 +11,73 @@ graph TD %% plan dependencies PgSelect13[["PgSelect[13∈0] ➊
ᐸforumsᐳ"]]:::plan Object16{{"Object[16∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant36{{"Constant[36∈0] ➊
ᐸtrueᐳ"}}:::plan - Object16 & Constant36 --> PgSelect13 + Lambda17[["Lambda[17∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + ApplyInput18{{"ApplyInput[18∈0] ➊"}}:::plan + Object16 & Lambda17 & ApplyInput18 --> PgSelect13 + __InputObject10{{"__InputObject[10∈0] ➊"}}:::plan + __InputObject11{{"__InputObject[11∈0] ➊"}}:::plan + __InputObject11 --> __InputObject10 + Constant39{{"Constant[39∈0] ➊
ᐸtrueᐳ"}}:::plan + Constant39 --> __InputObject11 Access14{{"Access[14∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access15{{"Access[15∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access14 & Access15 --> Object16 + __InputObject23{{"__InputObject[23∈0] ➊"}}:::plan + __InputObject24{{"__InputObject[24∈0] ➊"}}:::plan + __InputObject24 --> __InputObject23 + Constant39 --> __InputObject24 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + __InputObject9 --> __InputObject8 + __InputObject10 --> __InputObject9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access14 __Value2 --> Access15 - PgSelectRows17[["PgSelectRows[17∈0] ➊"]]:::plan - PgSelect13 --> PgSelectRows17 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda17 + __InputObject8 --> ApplyInput18 + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelect13 --> PgSelectRows19 + ApplyInput31{{"ApplyInput[31∈0] ➊"}}:::plan + __InputObject23 --> ApplyInput31 + Lambda33[["Lambda[33∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant7 --> Lambda33 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item18[/"__Item[18∈1]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈1]
ᐸforumsᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgSelect26[["PgSelect[26∈2]
ᐸmessagesᐳ"]]:::plan - PgClassExpression25{{"PgClassExpression[25∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object16 & PgClassExpression25 & Constant36 & PgClassExpression30 --> PgSelect26 - PgClassExpression20{{"PgClassExpression[20∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression20 - PgSelectSingle19 --> PgClassExpression25 - PgSelectSingle19 --> PgClassExpression30 - PgSelectRows31[["PgSelectRows[31∈2]"]]:::plan - PgSelect26 --> PgSelectRows31 - __Item32[/"__Item[32∈3]
ᐸ31ᐳ"\]:::itemplan - PgSelectRows31 ==> __Item32 - PgSelectSingle33{{"PgSelectSingle[33∈3]
ᐸmessagesᐳ"}}:::plan - __Item32 --> PgSelectSingle33 - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle33 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle33 --> PgClassExpression35 + PgSelect27[["PgSelect[27∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Object16 & PgClassExpression26 & ApplyInput31 & PgClassExpression32 & Lambda33 --> PgSelect27 + __Item20[/"__Item[20∈1]
ᐸ19ᐳ"\]:::itemplan + PgSelectRows19 ==> __Item20 + PgSelectSingle21{{"PgSelectSingle[21∈1]
ᐸforumsᐳ"}}:::plan + __Item20 --> PgSelectSingle21 + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression22 + PgSelectSingle21 --> PgClassExpression26 + PgSelectSingle21 --> PgClassExpression32 + PgSelectRows34[["PgSelectRows[34∈1]"]]:::plan + PgSelect27 --> PgSelectRows34 + __Item35[/"__Item[35∈2]
ᐸ34ᐳ"\]:::itemplan + PgSelectRows34 ==> __Item35 + PgSelectSingle36{{"PgSelectSingle[36∈2]
ᐸmessagesᐳ"}}:::plan + __Item35 --> PgSelectSingle36 + PgClassExpression37{{"PgClassExpression[37∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle36 --> PgClassExpression37 + PgClassExpression38{{"PgClassExpression[38∈2]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle36 --> PgClassExpression38 %% define steps subgraph "Buckets for queries/conditions/complex-filter" - Bucket0("Bucket 0 (root)

1:
ᐳ: 14, 15, 36, 16
2: PgSelect[13]
3: PgSelectRows[17]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 14, 15, 39, 11, 16, 24, 10, 23, 31, 9, 8, 18
2: Lambda[17], Lambda[33]
3: PgSelect[13]
4: PgSelectRows[19]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect13,Access14,Access15,Object16,PgSelectRows17,Constant36 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 16, 36

ROOT __Item{1}ᐸ17ᐳ[18]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,__InputObject8,__InputObject9,__InputObject10,__InputObject11,PgSelect13,Access14,Access15,Object16,Lambda17,ApplyInput18,PgSelectRows19,__InputObject23,__InputObject24,ApplyInput31,Lambda33,Constant39 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 16, 6, 31, 33

ROOT __Item{1}ᐸ19ᐳ[20]
1:
ᐳ: 21, 22, 26, 32
2: PgSelect[27]
3: PgSelectRows[34]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item18,PgSelectSingle19 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 19, 16, 36

ROOT PgSelectSingle{1}ᐸforumsᐳ[19]
1:
ᐳ: 20, 25, 30
2: PgSelect[26]
3: PgSelectRows[31]"):::bucket + class Bucket1,__Item20,PgSelectSingle21,PgClassExpression22,PgClassExpression26,PgSelect27,PgClassExpression32,PgSelectRows34 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ34ᐳ[35]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression20,PgClassExpression25,PgSelect26,PgClassExpression30,PgSelectRows31 bucket2 - Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ31ᐳ[32]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item32,PgSelectSingle33 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 33

ROOT PgSelectSingle{3}ᐸmessagesᐳ[33]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression34,PgClassExpression35 bucket4 + class Bucket2,__Item35,PgSelectSingle36,PgClassExpression37,PgClassExpression38 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.sql b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.sql index ee84efb4cc..7588f3bec3 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/complex-filter.sql @@ -5,6 +5,8 @@ select from app_public.forums as __forums__ where ( + true /* authorization checks */ + ) and ( __forums__.archived_at is null ) and ( exists( @@ -17,8 +19,6 @@ where __messages_filter__.featured = $1::"bool" ) ) - ) and ( - true /* authorization checks */ ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.deopt.mermaid index b1c0bb1bb3..23816c8cf8 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.deopt.mermaid @@ -9,68 +9,70 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan + Constant39{{"Constant[39∈0] ➊
ᐸ5ᐳ"}}:::plan + Constant39 --> Connection24 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 - Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan - Constant38{{"Constant[38∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant38 --> Connection24 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + __InputObject17{{"__InputObject[17∈0] ➊"}}:::plan + Constant40{{"Constant[40∈0] ➊
ᐸtrueᐳ"}}:::plan + Constant40 --> __InputObject17 + ApplyInput25{{"ApplyInput[25∈0] ➊"}}:::plan + __InputObject17 --> ApplyInput25 + Lambda27[["Lambda[27∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant7 --> Lambda27 + PgPageInfo29{{"PgPageInfo[29∈0] ➊"}}:::plan + Connection24 --> PgPageInfo29 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Constant39{{"Constant[39∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgSelect26[["PgSelect[26∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression19 & Constant39 & PgClassExpression25 & Connection24 & Constant38 --> PgSelect26 - PgSelect33[["PgSelect[33∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression19 & Constant39 & PgClassExpression25 & Connection24 --> PgSelect33 - Object31{{"Object[31∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Access30{{"Access[30∈3]
ᐸ26.hasMoreᐳ"}}:::plan - Constant38 & Constant6 & Access30 --> Object31 - PgSelectSingle14 --> PgClassExpression19 - PgSelectSingle14 --> PgClassExpression25 - PgPageInfo27{{"PgPageInfo[27∈3] ➊"}}:::plan - Connection24 --> PgPageInfo27 - PgSelect26 --> Access30 - Lambda32{{"Lambda[32∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object31 --> Lambda32 - First34{{"First[34∈3]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈3]"]]:::plan - PgSelectRows35 --> First34 - PgSelect33 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈3]
ᐸmessagesᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 + PgSelect28[["PgSelect[28∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda27 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression19 & ApplyInput25 & PgClassExpression26 & Connection24 & Constant39 --> PgSelect28 + PgSelect34[["PgSelect[34∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda27 -->|rejectNull| PgSelect34 + Object11 & PgClassExpression19 & ApplyInput25 & PgClassExpression26 & Connection24 --> PgSelect34 + Object32{{"Object[32∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access31{{"Access[31∈1]
ᐸ28.hasMoreᐳ"}}:::plan + Constant39 & Access31 --> Object32 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgSelectSingle15 --> PgClassExpression19 + PgSelectSingle15 --> PgClassExpression26 + PgSelect28 --> Access31 + Lambda33{{"Lambda[33∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object32 --> Lambda33 + First35{{"First[35∈1]"}}:::plan + PgSelectRows36[["PgSelectRows[36∈1]"]]:::plan + PgSelectRows36 --> First35 + PgSelect34 --> PgSelectRows36 + PgSelectSingle37{{"PgSelectSingle[37∈1]
ᐸmessagesᐳ"}}:::plan + First35 --> PgSelectSingle37 + PgClassExpression38{{"PgClassExpression[38∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression38 %% define steps subgraph "Buckets for queries/conditions/condition-featured-messages-minimal" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 38, 39, 11, 24
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 39, 40, 11, 17, 24, 25, 29
2: Lambda[12], Lambda[27]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection24,Constant38,Constant39 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 39, 24, 38, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,__InputObject17,Connection24,ApplyInput25,Lambda27,PgPageInfo29,Constant39,Constant40 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 27, 24, 39, 6, 29

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 19, 26
2: PgSelect[28], PgSelect[34]
ᐳ: Access[31], Object[32], Lambda[33]
3: PgSelectRows[36]
ᐳ: 35, 37, 38"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 39, 24, 38, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 39, 24, 38, 6

ROOT Connectionᐸ20ᐳ[24]
1:
ᐳ: 19, 25, 27
2: PgSelect[26], PgSelect[33]
ᐳ: Access[30], Object[31], Lambda[32]
3: PgSelectRows[35]
ᐳ: 34, 36, 37"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgClassExpression25,PgSelect26,PgPageInfo27,Access30,Object31,Lambda32,PgSelect33,First34,PgSelectRows35,PgSelectSingle36,PgClassExpression37 bucket3 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression19,PgClassExpression26,PgSelect28,Access31,Object32,Lambda33,PgSelect34,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression38 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.deopt.sql index 6819baa4ea..ad9dc4ac13 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.deopt.sql @@ -4,9 +4,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.mermaid index b1c0bb1bb3..23816c8cf8 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.mermaid @@ -9,68 +9,70 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan + Constant39{{"Constant[39∈0] ➊
ᐸ5ᐳ"}}:::plan + Constant39 --> Connection24 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 - Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan - Constant38{{"Constant[38∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant38 --> Connection24 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + __InputObject17{{"__InputObject[17∈0] ➊"}}:::plan + Constant40{{"Constant[40∈0] ➊
ᐸtrueᐳ"}}:::plan + Constant40 --> __InputObject17 + ApplyInput25{{"ApplyInput[25∈0] ➊"}}:::plan + __InputObject17 --> ApplyInput25 + Lambda27[["Lambda[27∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant7 --> Lambda27 + PgPageInfo29{{"PgPageInfo[29∈0] ➊"}}:::plan + Connection24 --> PgPageInfo29 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Constant39{{"Constant[39∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgSelect26[["PgSelect[26∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression19 & Constant39 & PgClassExpression25 & Connection24 & Constant38 --> PgSelect26 - PgSelect33[["PgSelect[33∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression19 & Constant39 & PgClassExpression25 & Connection24 --> PgSelect33 - Object31{{"Object[31∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Access30{{"Access[30∈3]
ᐸ26.hasMoreᐳ"}}:::plan - Constant38 & Constant6 & Access30 --> Object31 - PgSelectSingle14 --> PgClassExpression19 - PgSelectSingle14 --> PgClassExpression25 - PgPageInfo27{{"PgPageInfo[27∈3] ➊"}}:::plan - Connection24 --> PgPageInfo27 - PgSelect26 --> Access30 - Lambda32{{"Lambda[32∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object31 --> Lambda32 - First34{{"First[34∈3]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈3]"]]:::plan - PgSelectRows35 --> First34 - PgSelect33 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈3]
ᐸmessagesᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 + PgSelect28[["PgSelect[28∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda27 -->|rejectNull| PgSelect28 + Object11 & PgClassExpression19 & ApplyInput25 & PgClassExpression26 & Connection24 & Constant39 --> PgSelect28 + PgSelect34[["PgSelect[34∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda27 -->|rejectNull| PgSelect34 + Object11 & PgClassExpression19 & ApplyInput25 & PgClassExpression26 & Connection24 --> PgSelect34 + Object32{{"Object[32∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access31{{"Access[31∈1]
ᐸ28.hasMoreᐳ"}}:::plan + Constant39 & Access31 --> Object32 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgSelectSingle15 --> PgClassExpression19 + PgSelectSingle15 --> PgClassExpression26 + PgSelect28 --> Access31 + Lambda33{{"Lambda[33∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object32 --> Lambda33 + First35{{"First[35∈1]"}}:::plan + PgSelectRows36[["PgSelectRows[36∈1]"]]:::plan + PgSelectRows36 --> First35 + PgSelect34 --> PgSelectRows36 + PgSelectSingle37{{"PgSelectSingle[37∈1]
ᐸmessagesᐳ"}}:::plan + First35 --> PgSelectSingle37 + PgClassExpression38{{"PgClassExpression[38∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression38 %% define steps subgraph "Buckets for queries/conditions/condition-featured-messages-minimal" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 38, 39, 11, 24
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 39, 40, 11, 17, 24, 25, 29
2: Lambda[12], Lambda[27]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection24,Constant38,Constant39 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 39, 24, 38, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,__InputObject17,Connection24,ApplyInput25,Lambda27,PgPageInfo29,Constant39,Constant40 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 27, 24, 39, 6, 29

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 19, 26
2: PgSelect[28], PgSelect[34]
ᐳ: Access[31], Object[32], Lambda[33]
3: PgSelectRows[36]
ᐳ: 35, 37, 38"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 39, 24, 38, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 39, 24, 38, 6

ROOT Connectionᐸ20ᐳ[24]
1:
ᐳ: 19, 25, 27
2: PgSelect[26], PgSelect[33]
ᐳ: Access[30], Object[31], Lambda[32]
3: PgSelectRows[35]
ᐳ: 34, 36, 37"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgClassExpression25,PgSelect26,PgPageInfo27,Access30,Object31,Lambda32,PgSelect33,First34,PgSelectRows35,PgSelectSingle36,PgClassExpression37 bucket3 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression19,PgClassExpression26,PgSelect28,Access31,Object32,Lambda33,PgSelect34,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression38 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.sql b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.sql index 6819baa4ea..ad9dc4ac13 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages-minimal.sql @@ -4,9 +4,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.deopt.mermaid index 178bcd66d5..604dc7e19f 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.deopt.mermaid @@ -9,147 +9,118 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection26{{"Connection[26∈0] ➊
ᐸ22ᐳ"}}:::plan + Constant82{{"Constant[82∈0] ➊
ᐸ5ᐳ"}}:::plan + Constant82 --> Connection26 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 - Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan - Constant85{{"Constant[85∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant85 --> Connection25 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + __InputObject18{{"__InputObject[18∈0] ➊"}}:::plan + Constant83{{"Constant[83∈0] ➊
ᐸtrueᐳ"}}:::plan + Constant83 --> __InputObject18 + ApplyInput27{{"ApplyInput[27∈0] ➊"}}:::plan + __InputObject18 --> ApplyInput27 + Lambda29[["Lambda[29∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant7 --> Lambda29 + PgPageInfo55{{"PgPageInfo[55∈0] ➊"}}:::plan + Connection26 --> PgPageInfo55 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Constant86{{"Constant[86∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect27[["PgSelect[27∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression26{{"PgClassExpression[26∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression20 & Constant86 & PgClassExpression26 & Connection25 & Constant85 --> PgSelect27 - PgSelect80[["PgSelect[80∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression20 & Constant86 & PgClassExpression26 & Connection25 --> PgSelect80 - Object66{{"Object[66∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access61{{"Access[61∈3]
ᐸ27.hasMoreᐳ"}}:::plan - Constant85 & Constant6 & Constant6 & Access61 --> Object66 - Object62{{"Object[62∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant85 & Constant6 & Access61 --> Object62 - PgCursor73{{"PgCursor[73∈3]"}}:::plan - PgSelectSingle71{{"PgSelectSingle[71∈3]
ᐸmessagesᐳ"}}:::plan - Access44{{"Access[44∈3]
ᐸ27.cursorDetailsᐳ"}}:::plan - PgSelectSingle71 & Access44 --> PgCursor73 - PgCursor79{{"PgCursor[79∈3]"}}:::plan - PgSelectSingle77{{"PgSelectSingle[77∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle77 & Access44 --> PgCursor79 - PgSelectSingle14 --> PgClassExpression20 - PgSelectSingle14 --> PgClassExpression26 - PgSelectRows28[["PgSelectRows[28∈3]"]]:::plan - PgSelect27 --> PgSelectRows28 - PgSelect27 --> Access44 - PgPageInfo58{{"PgPageInfo[58∈3] ➊"}}:::plan - Connection25 --> PgPageInfo58 - PgSelect27 --> Access61 - Lambda63{{"Lambda[63∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object62 --> Lambda63 - Lambda67{{"Lambda[67∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object66 --> Lambda67 - First69{{"First[69∈3]"}}:::plan - PgSelectRows28 --> First69 - First69 --> PgSelectSingle71 - Last75{{"Last[75∈3]"}}:::plan - PgSelectRows28 --> Last75 - Last75 --> PgSelectSingle77 - First81{{"First[81∈3]"}}:::plan - PgSelectRows82[["PgSelectRows[82∈3]"]]:::plan - PgSelectRows82 --> First81 - PgSelect80 --> PgSelectRows82 - PgSelectSingle83{{"PgSelectSingle[83∈3]
ᐸmessagesᐳ"}}:::plan - First81 --> PgSelectSingle83 - PgClassExpression84{{"PgClassExpression[84∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle83 --> PgClassExpression84 - __Item29[/"__Item[29∈4]
ᐸ28ᐳ"\]:::itemplan - PgSelectRows28 ==> __Item29 - PgSelectSingle30{{"PgSelectSingle[30∈4]
ᐸmessagesᐳ"}}:::plan - __Item29 --> PgSelectSingle30 - PgSelect33[["PgSelect[33∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression32{{"PgClassExpression[32∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression32 --> PgSelect33 - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgSelectSingle30 --> PgClassExpression32 - First37{{"First[37∈5]"}}:::plan - PgSelectRows38[["PgSelectRows[38∈5]"]]:::plan - PgSelectRows38 --> First37 - PgSelect33 --> PgSelectRows38 - PgSelectSingle39{{"PgSelectSingle[39∈5]
ᐸusersᐳ"}}:::plan - First37 --> PgSelectSingle39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression41 - PgCursor45{{"PgCursor[45∈7]"}}:::plan - PgSelectSingle30 & Access44 --> PgCursor45 - PgSelect48[["PgSelect[48∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression47{{"PgClassExpression[47∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression47 --> PgSelect48 - PgClassExpression46{{"PgClassExpression[46∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression46 - PgSelectSingle30 --> PgClassExpression47 - First52{{"First[52∈7]"}}:::plan - PgSelectRows53[["PgSelectRows[53∈7]"]]:::plan - PgSelectRows53 --> First52 - PgSelect48 --> PgSelectRows53 - PgSelectSingle54{{"PgSelectSingle[54∈7]
ᐸusersᐳ"}}:::plan - First52 --> PgSelectSingle54 - PgClassExpression55{{"PgClassExpression[55∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle54 --> PgClassExpression55 - PgClassExpression56{{"PgClassExpression[56∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle54 --> PgClassExpression56 + PgSelect30[["PgSelect[30∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression28{{"PgClassExpression[28∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda29 -->|rejectNull| PgSelect30 + Object11 & PgClassExpression21 & ApplyInput27 & PgClassExpression28 & Connection26 & Constant82 --> PgSelect30 + PgSelect77[["PgSelect[77∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda29 -->|rejectNull| PgSelect77 + Object11 & PgClassExpression21 & ApplyInput27 & PgClassExpression28 & Connection26 --> PgSelect77 + Object63{{"Object[63∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access57{{"Access[57∈1]
ᐸ30.hasMoreᐳ"}}:::plan + Constant82 & Access57 --> Object63 + Object58{{"Object[58∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant82 & Access57 --> Object58 + PgCursor70{{"PgCursor[70∈1]"}}:::plan + PgSelectSingle68{{"PgSelectSingle[68∈1]
ᐸmessagesᐳ"}}:::plan + Access47{{"Access[47∈1]
ᐸ30.cursorDetailsᐳ"}}:::plan + PgSelectSingle68 & Access47 --> PgCursor70 + PgCursor76{{"PgCursor[76∈1]"}}:::plan + PgSelectSingle74{{"PgSelectSingle[74∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle74 & Access47 --> PgCursor76 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression21 + PgSelectSingle15 --> PgClassExpression28 + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelect30 --> PgSelectRows31 + PgSelect30 --> Access47 + PgSelect30 --> Access57 + Lambda59{{"Lambda[59∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object58 --> Lambda59 + Lambda64{{"Lambda[64∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object63 --> Lambda64 + First66{{"First[66∈1]"}}:::plan + PgSelectRows31 --> First66 + First66 --> PgSelectSingle68 + Last72{{"Last[72∈1]"}}:::plan + PgSelectRows31 --> Last72 + Last72 --> PgSelectSingle74 + First78{{"First[78∈1]"}}:::plan + PgSelectRows79[["PgSelectRows[79∈1]"]]:::plan + PgSelectRows79 --> First78 + PgSelect77 --> PgSelectRows79 + PgSelectSingle80{{"PgSelectSingle[80∈1]
ᐸmessagesᐳ"}}:::plan + First78 --> PgSelectSingle80 + PgClassExpression81{{"PgClassExpression[81∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle80 --> PgClassExpression81 + PgSelect36[["PgSelect[36∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression35{{"PgClassExpression[35∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression35 --> PgSelect36 + PgCursor48{{"PgCursor[48∈2]"}}:::plan + PgSelectSingle33{{"PgSelectSingle[33∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle33 & Access47 --> PgCursor48 + __Item32[/"__Item[32∈2]
ᐸ31ᐳ"\]:::itemplan + PgSelectRows31 ==> __Item32 + __Item32 --> PgSelectSingle33 + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression34 + PgSelectSingle33 --> PgClassExpression35 + First40{{"First[40∈2]"}}:::plan + PgSelectRows41[["PgSelectRows[41∈2]"]]:::plan + PgSelectRows41 --> First40 + PgSelect36 --> PgSelectRows41 + PgSelectSingle42{{"PgSelectSingle[42∈2]
ᐸusersᐳ"}}:::plan + First40 --> PgSelectSingle42 + PgClassExpression43{{"PgClassExpression[43∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle42 --> PgClassExpression43 + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle42 --> PgClassExpression44 %% define steps subgraph "Buckets for queries/conditions/condition-featured-messages" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 85, 86, 11, 25
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 82, 83, 11, 18, 26, 27, 55
2: Lambda[12], Lambda[29]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection25,Constant85,Constant86 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 86, 25, 85, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,__InputObject18,Connection26,ApplyInput27,Lambda29,PgPageInfo55,Constant82,Constant83 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 27, 29, 26, 82, 6, 55

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 21, 28
2: PgSelect[30], PgSelect[77]
ᐳ: 47, 57, 58, 59, 63, 64
3: PgSelectRows[31], PgSelectRows[79]
ᐳ: 66, 68, 70, 72, 74, 76, 78, 80, 81"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 86, 25, 85, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression21,PgClassExpression28,PgSelect30,PgSelectRows31,Access47,Access57,Object58,Lambda59,Object63,Lambda64,First66,PgSelectSingle68,PgCursor70,Last72,PgSelectSingle74,PgCursor76,PgSelect77,First78,PgSelectRows79,PgSelectSingle80,PgClassExpression81 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11, 47

ROOT __Item{2}ᐸ31ᐳ[32]
1:
ᐳ: 33, 34, 35, 48
2: PgSelect[36]
3: PgSelectRows[41]
ᐳ: 40, 42, 43, 44"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 86, 25, 85, 6

ROOT Connectionᐸ21ᐳ[25]
1:
ᐳ: 20, 26, 58
2: PgSelect[27], PgSelect[80]
ᐳ: 44, 61, 62, 63, 66, 67
3: PgSelectRows[28], PgSelectRows[82]
ᐳ: 69, 71, 73, 75, 77, 79, 81, 83, 84"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression20,PgClassExpression26,PgSelect27,PgSelectRows28,Access44,PgPageInfo58,Access61,Object62,Lambda63,Object66,Lambda67,First69,PgSelectSingle71,PgCursor73,Last75,PgSelectSingle77,PgCursor79,PgSelect80,First81,PgSelectRows82,PgSelectSingle83,PgClassExpression84 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11, 44

ROOT __Item{4}ᐸ28ᐳ[29]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item29,PgSelectSingle30 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 30, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[30]
1:
ᐳ: 31, 32
2: PgSelect[33]
3: PgSelectRows[38]
ᐳ: First[37], PgSelectSingle[39]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression31,PgClassExpression32,PgSelect33,First37,PgSelectRows38,PgSelectSingle39 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 39

ROOT PgSelectSingle{5}ᐸusersᐳ[39]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression40,PgClassExpression41 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 30, 44, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[30]
1:
ᐳ: 45, 46, 47
2: PgSelect[48]
3: PgSelectRows[53]
ᐳ: First[52], PgSelectSingle[54]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgCursor45,PgClassExpression46,PgClassExpression47,PgSelect48,First52,PgSelectRows53,PgSelectSingle54 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 54

ROOT PgSelectSingle{7}ᐸusersᐳ[54]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression55,PgClassExpression56 bucket8 + class Bucket2,__Item32,PgSelectSingle33,PgClassExpression34,PgClassExpression35,PgSelect36,First40,PgSelectRows41,PgSelectSingle42,PgClassExpression43,PgClassExpression44,PgCursor48 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.deopt.sql index 733bed1bfd..1a1576bcfd 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.mermaid index 178bcd66d5..604dc7e19f 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.mermaid @@ -9,147 +9,118 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection26{{"Connection[26∈0] ➊
ᐸ22ᐳ"}}:::plan + Constant82{{"Constant[82∈0] ➊
ᐸ5ᐳ"}}:::plan + Constant82 --> Connection26 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 - Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan - Constant85{{"Constant[85∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant85 --> Connection25 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + __InputObject18{{"__InputObject[18∈0] ➊"}}:::plan + Constant83{{"Constant[83∈0] ➊
ᐸtrueᐳ"}}:::plan + Constant83 --> __InputObject18 + ApplyInput27{{"ApplyInput[27∈0] ➊"}}:::plan + __InputObject18 --> ApplyInput27 + Lambda29[["Lambda[29∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant7 --> Lambda29 + PgPageInfo55{{"PgPageInfo[55∈0] ➊"}}:::plan + Connection26 --> PgPageInfo55 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Constant86{{"Constant[86∈0] ➊
ᐸtrueᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect27[["PgSelect[27∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression26{{"PgClassExpression[26∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression20 & Constant86 & PgClassExpression26 & Connection25 & Constant85 --> PgSelect27 - PgSelect80[["PgSelect[80∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression20 & Constant86 & PgClassExpression26 & Connection25 --> PgSelect80 - Object66{{"Object[66∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access61{{"Access[61∈3]
ᐸ27.hasMoreᐳ"}}:::plan - Constant85 & Constant6 & Constant6 & Access61 --> Object66 - Object62{{"Object[62∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant85 & Constant6 & Access61 --> Object62 - PgCursor73{{"PgCursor[73∈3]"}}:::plan - PgSelectSingle71{{"PgSelectSingle[71∈3]
ᐸmessagesᐳ"}}:::plan - Access44{{"Access[44∈3]
ᐸ27.cursorDetailsᐳ"}}:::plan - PgSelectSingle71 & Access44 --> PgCursor73 - PgCursor79{{"PgCursor[79∈3]"}}:::plan - PgSelectSingle77{{"PgSelectSingle[77∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle77 & Access44 --> PgCursor79 - PgSelectSingle14 --> PgClassExpression20 - PgSelectSingle14 --> PgClassExpression26 - PgSelectRows28[["PgSelectRows[28∈3]"]]:::plan - PgSelect27 --> PgSelectRows28 - PgSelect27 --> Access44 - PgPageInfo58{{"PgPageInfo[58∈3] ➊"}}:::plan - Connection25 --> PgPageInfo58 - PgSelect27 --> Access61 - Lambda63{{"Lambda[63∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object62 --> Lambda63 - Lambda67{{"Lambda[67∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object66 --> Lambda67 - First69{{"First[69∈3]"}}:::plan - PgSelectRows28 --> First69 - First69 --> PgSelectSingle71 - Last75{{"Last[75∈3]"}}:::plan - PgSelectRows28 --> Last75 - Last75 --> PgSelectSingle77 - First81{{"First[81∈3]"}}:::plan - PgSelectRows82[["PgSelectRows[82∈3]"]]:::plan - PgSelectRows82 --> First81 - PgSelect80 --> PgSelectRows82 - PgSelectSingle83{{"PgSelectSingle[83∈3]
ᐸmessagesᐳ"}}:::plan - First81 --> PgSelectSingle83 - PgClassExpression84{{"PgClassExpression[84∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle83 --> PgClassExpression84 - __Item29[/"__Item[29∈4]
ᐸ28ᐳ"\]:::itemplan - PgSelectRows28 ==> __Item29 - PgSelectSingle30{{"PgSelectSingle[30∈4]
ᐸmessagesᐳ"}}:::plan - __Item29 --> PgSelectSingle30 - PgSelect33[["PgSelect[33∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression32{{"PgClassExpression[32∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression32 --> PgSelect33 - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgSelectSingle30 --> PgClassExpression32 - First37{{"First[37∈5]"}}:::plan - PgSelectRows38[["PgSelectRows[38∈5]"]]:::plan - PgSelectRows38 --> First37 - PgSelect33 --> PgSelectRows38 - PgSelectSingle39{{"PgSelectSingle[39∈5]
ᐸusersᐳ"}}:::plan - First37 --> PgSelectSingle39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression41 - PgCursor45{{"PgCursor[45∈7]"}}:::plan - PgSelectSingle30 & Access44 --> PgCursor45 - PgSelect48[["PgSelect[48∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression47{{"PgClassExpression[47∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression47 --> PgSelect48 - PgClassExpression46{{"PgClassExpression[46∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression46 - PgSelectSingle30 --> PgClassExpression47 - First52{{"First[52∈7]"}}:::plan - PgSelectRows53[["PgSelectRows[53∈7]"]]:::plan - PgSelectRows53 --> First52 - PgSelect48 --> PgSelectRows53 - PgSelectSingle54{{"PgSelectSingle[54∈7]
ᐸusersᐳ"}}:::plan - First52 --> PgSelectSingle54 - PgClassExpression55{{"PgClassExpression[55∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle54 --> PgClassExpression55 - PgClassExpression56{{"PgClassExpression[56∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle54 --> PgClassExpression56 + PgSelect30[["PgSelect[30∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression28{{"PgClassExpression[28∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda29 -->|rejectNull| PgSelect30 + Object11 & PgClassExpression21 & ApplyInput27 & PgClassExpression28 & Connection26 & Constant82 --> PgSelect30 + PgSelect77[["PgSelect[77∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda29 -->|rejectNull| PgSelect77 + Object11 & PgClassExpression21 & ApplyInput27 & PgClassExpression28 & Connection26 --> PgSelect77 + Object63{{"Object[63∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access57{{"Access[57∈1]
ᐸ30.hasMoreᐳ"}}:::plan + Constant82 & Access57 --> Object63 + Object58{{"Object[58∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant82 & Access57 --> Object58 + PgCursor70{{"PgCursor[70∈1]"}}:::plan + PgSelectSingle68{{"PgSelectSingle[68∈1]
ᐸmessagesᐳ"}}:::plan + Access47{{"Access[47∈1]
ᐸ30.cursorDetailsᐳ"}}:::plan + PgSelectSingle68 & Access47 --> PgCursor70 + PgCursor76{{"PgCursor[76∈1]"}}:::plan + PgSelectSingle74{{"PgSelectSingle[74∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle74 & Access47 --> PgCursor76 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression21 + PgSelectSingle15 --> PgClassExpression28 + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelect30 --> PgSelectRows31 + PgSelect30 --> Access47 + PgSelect30 --> Access57 + Lambda59{{"Lambda[59∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object58 --> Lambda59 + Lambda64{{"Lambda[64∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object63 --> Lambda64 + First66{{"First[66∈1]"}}:::plan + PgSelectRows31 --> First66 + First66 --> PgSelectSingle68 + Last72{{"Last[72∈1]"}}:::plan + PgSelectRows31 --> Last72 + Last72 --> PgSelectSingle74 + First78{{"First[78∈1]"}}:::plan + PgSelectRows79[["PgSelectRows[79∈1]"]]:::plan + PgSelectRows79 --> First78 + PgSelect77 --> PgSelectRows79 + PgSelectSingle80{{"PgSelectSingle[80∈1]
ᐸmessagesᐳ"}}:::plan + First78 --> PgSelectSingle80 + PgClassExpression81{{"PgClassExpression[81∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle80 --> PgClassExpression81 + PgSelect36[["PgSelect[36∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression35{{"PgClassExpression[35∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression35 --> PgSelect36 + PgCursor48{{"PgCursor[48∈2]"}}:::plan + PgSelectSingle33{{"PgSelectSingle[33∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle33 & Access47 --> PgCursor48 + __Item32[/"__Item[32∈2]
ᐸ31ᐳ"\]:::itemplan + PgSelectRows31 ==> __Item32 + __Item32 --> PgSelectSingle33 + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression34 + PgSelectSingle33 --> PgClassExpression35 + First40{{"First[40∈2]"}}:::plan + PgSelectRows41[["PgSelectRows[41∈2]"]]:::plan + PgSelectRows41 --> First40 + PgSelect36 --> PgSelectRows41 + PgSelectSingle42{{"PgSelectSingle[42∈2]
ᐸusersᐳ"}}:::plan + First40 --> PgSelectSingle42 + PgClassExpression43{{"PgClassExpression[43∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle42 --> PgClassExpression43 + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle42 --> PgClassExpression44 %% define steps subgraph "Buckets for queries/conditions/condition-featured-messages" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 85, 86, 11, 25
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 82, 83, 11, 18, 26, 27, 55
2: Lambda[12], Lambda[29]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection25,Constant85,Constant86 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 86, 25, 85, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,__InputObject18,Connection26,ApplyInput27,Lambda29,PgPageInfo55,Constant82,Constant83 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 27, 29, 26, 82, 6, 55

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 21, 28
2: PgSelect[30], PgSelect[77]
ᐳ: 47, 57, 58, 59, 63, 64
3: PgSelectRows[31], PgSelectRows[79]
ᐳ: 66, 68, 70, 72, 74, 76, 78, 80, 81"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 86, 25, 85, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression21,PgClassExpression28,PgSelect30,PgSelectRows31,Access47,Access57,Object58,Lambda59,Object63,Lambda64,First66,PgSelectSingle68,PgCursor70,Last72,PgSelectSingle74,PgCursor76,PgSelect77,First78,PgSelectRows79,PgSelectSingle80,PgClassExpression81 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11, 47

ROOT __Item{2}ᐸ31ᐳ[32]
1:
ᐳ: 33, 34, 35, 48
2: PgSelect[36]
3: PgSelectRows[41]
ᐳ: 40, 42, 43, 44"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 86, 25, 85, 6

ROOT Connectionᐸ21ᐳ[25]
1:
ᐳ: 20, 26, 58
2: PgSelect[27], PgSelect[80]
ᐳ: 44, 61, 62, 63, 66, 67
3: PgSelectRows[28], PgSelectRows[82]
ᐳ: 69, 71, 73, 75, 77, 79, 81, 83, 84"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression20,PgClassExpression26,PgSelect27,PgSelectRows28,Access44,PgPageInfo58,Access61,Object62,Lambda63,Object66,Lambda67,First69,PgSelectSingle71,PgCursor73,Last75,PgSelectSingle77,PgCursor79,PgSelect80,First81,PgSelectRows82,PgSelectSingle83,PgClassExpression84 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11, 44

ROOT __Item{4}ᐸ28ᐳ[29]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item29,PgSelectSingle30 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 30, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[30]
1:
ᐳ: 31, 32
2: PgSelect[33]
3: PgSelectRows[38]
ᐳ: First[37], PgSelectSingle[39]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression31,PgClassExpression32,PgSelect33,First37,PgSelectRows38,PgSelectSingle39 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 39

ROOT PgSelectSingle{5}ᐸusersᐳ[39]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression40,PgClassExpression41 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 30, 44, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[30]
1:
ᐳ: 45, 46, 47
2: PgSelect[48]
3: PgSelectRows[53]
ᐳ: First[52], PgSelectSingle[54]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgCursor45,PgClassExpression46,PgClassExpression47,PgSelect48,First52,PgSelectRows53,PgSelectSingle54 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 54

ROOT PgSelectSingle{7}ᐸusersᐳ[54]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression55,PgClassExpression56 bucket8 + class Bucket2,__Item32,PgSelectSingle33,PgClassExpression34,PgClassExpression35,PgSelect36,First40,PgSelectRows41,PgSelectSingle42,PgClassExpression43,PgClassExpression44,PgCursor48 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.sql b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.sql index 733bed1bfd..1a1576bcfd 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/condition-featured-messages.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.deopt.mermaid index d1f51fc9d9..17f140cf06 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.deopt.mermaid @@ -9,144 +9,114 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan + Constant80{{"Constant[80∈0] ➊
ᐸ5ᐳ"}}:::plan + Constant80 --> Connection24 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 - Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan - Constant82{{"Constant[82∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant82 --> Connection23 + Constant79{{"Constant[79∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant79 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda26[["Lambda[26∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant81{{"Constant[81∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant81 --> Lambda26 + PgPageInfo52{{"PgPageInfo[52∈0] ➊"}}:::plan + Connection24 --> PgPageInfo52 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect24[["PgSelect[24∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression18 & Connection23 & Constant82 --> PgSelect24 - Object63{{"Object[63∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access58{{"Access[58∈3]
ᐸ24.hasMoreᐳ"}}:::plan - Constant82 & Constant6 & Constant6 & Access58 --> Object63 - Object59{{"Object[59∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant82 & Constant6 & Access58 --> Object59 - PgSelect77[["PgSelect[77∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression18 & Connection23 --> PgSelect77 - PgCursor70{{"PgCursor[70∈3]"}}:::plan - PgSelectSingle68{{"PgSelectSingle[68∈3]
ᐸmessagesᐳ"}}:::plan - Access41{{"Access[41∈3]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelectSingle68 & Access41 --> PgCursor70 - PgCursor76{{"PgCursor[76∈3]"}}:::plan - PgSelectSingle74{{"PgSelectSingle[74∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle74 & Access41 --> PgCursor76 - PgSelectSingle14 --> PgClassExpression18 - PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan - PgSelect24 --> PgSelectRows25 - PgSelect24 --> Access41 - PgPageInfo55{{"PgPageInfo[55∈3] ➊"}}:::plan - Connection23 --> PgPageInfo55 - PgSelect24 --> Access58 - Lambda60{{"Lambda[60∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object59 --> Lambda60 - Lambda64{{"Lambda[64∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object63 --> Lambda64 - First66{{"First[66∈3]"}}:::plan - PgSelectRows25 --> First66 - First66 --> PgSelectSingle68 - Last72{{"Last[72∈3]"}}:::plan - PgSelectRows25 --> Last72 - Last72 --> PgSelectSingle74 - First78{{"First[78∈3]"}}:::plan - PgSelectRows79[["PgSelectRows[79∈3]"]]:::plan - PgSelectRows79 --> First78 - PgSelect77 --> PgSelectRows79 - PgSelectSingle80{{"PgSelectSingle[80∈3]
ᐸmessagesᐳ"}}:::plan - First78 --> PgSelectSingle80 - PgClassExpression81{{"PgClassExpression[81∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle80 --> PgClassExpression81 - __Item26[/"__Item[26∈4]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈4]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - PgSelect30[["PgSelect[30∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈5]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈5]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈5]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈7]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgSelect45[["PgSelect[45∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgClassExpression43{{"PgClassExpression[43∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈7]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈7]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈7]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + PgSelect27[["PgSelect[27∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda26 -->|rejectNull| PgSelect27 + Object11 & PgClassExpression19 & PgClassExpression25 & Connection24 & Constant80 --> PgSelect27 + PgSelect74[["PgSelect[74∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda26 -->|rejectNull| PgSelect74 + Object11 & PgClassExpression19 & PgClassExpression25 & Connection24 --> PgSelect74 + Object60{{"Object[60∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access54{{"Access[54∈1]
ᐸ27.hasMoreᐳ"}}:::plan + Constant80 & Access54 --> Object60 + Object55{{"Object[55∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant80 & Access54 --> Object55 + PgCursor67{{"PgCursor[67∈1]"}}:::plan + PgSelectSingle65{{"PgSelectSingle[65∈1]
ᐸmessagesᐳ"}}:::plan + Access44{{"Access[44∈1]
ᐸ27.cursorDetailsᐳ"}}:::plan + PgSelectSingle65 & Access44 --> PgCursor67 + PgCursor73{{"PgCursor[73∈1]"}}:::plan + PgSelectSingle71{{"PgSelectSingle[71∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle71 & Access44 --> PgCursor73 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression19 + PgSelectSingle15 --> PgClassExpression25 + PgSelectRows28[["PgSelectRows[28∈1]"]]:::plan + PgSelect27 --> PgSelectRows28 + PgSelect27 --> Access44 + PgSelect27 --> Access54 + Lambda56{{"Lambda[56∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object55 --> Lambda56 + Lambda61{{"Lambda[61∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object60 --> Lambda61 + First63{{"First[63∈1]"}}:::plan + PgSelectRows28 --> First63 + First63 --> PgSelectSingle65 + Last69{{"Last[69∈1]"}}:::plan + PgSelectRows28 --> Last69 + Last69 --> PgSelectSingle71 + First75{{"First[75∈1]"}}:::plan + PgSelectRows76[["PgSelectRows[76∈1]"]]:::plan + PgSelectRows76 --> First75 + PgSelect74 --> PgSelectRows76 + PgSelectSingle77{{"PgSelectSingle[77∈1]
ᐸmessagesᐳ"}}:::plan + First75 --> PgSelectSingle77 + PgClassExpression78{{"PgClassExpression[78∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle77 --> PgClassExpression78 + PgSelect33[["PgSelect[33∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression32 --> PgSelect33 + PgCursor45{{"PgCursor[45∈2]"}}:::plan + PgSelectSingle30{{"PgSelectSingle[30∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle30 & Access44 --> PgCursor45 + __Item29[/"__Item[29∈2]
ᐸ28ᐳ"\]:::itemplan + PgSelectRows28 ==> __Item29 + __Item29 --> PgSelectSingle30 + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression31 + PgSelectSingle30 --> PgClassExpression32 + First37{{"First[37∈2]"}}:::plan + PgSelectRows38[["PgSelectRows[38∈2]"]]:::plan + PgSelectRows38 --> First37 + PgSelect33 --> PgSelectRows38 + PgSelectSingle39{{"PgSelectSingle[39∈2]
ᐸusersᐳ"}}:::plan + First37 --> PgSelectSingle39 + PgClassExpression40{{"PgClassExpression[40∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression41 %% define steps subgraph "Buckets for queries/conditions/exclusively-archived-messages" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 82, 11, 23
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 79, 80, 81, 11, 24, 52
2: Lambda[12], Lambda[26]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection23,Constant82 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 23, 82, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection24,Lambda26,PgPageInfo52,Constant79,Constant80,Constant81 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 26, 24, 80, 6, 52

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 19, 25
2: PgSelect[27], PgSelect[74]
ᐳ: 44, 54, 55, 56, 60, 61
3: PgSelectRows[28], PgSelectRows[76]
ᐳ: 63, 65, 67, 69, 71, 73, 75, 77, 78"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 23, 82, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression19,PgClassExpression25,PgSelect27,PgSelectRows28,Access44,Access54,Object55,Lambda56,Object60,Lambda61,First63,PgSelectSingle65,PgCursor67,Last69,PgSelectSingle71,PgCursor73,PgSelect74,First75,PgSelectRows76,PgSelectSingle77,PgClassExpression78 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11, 44

ROOT __Item{2}ᐸ28ᐳ[29]
1:
ᐳ: 30, 31, 32, 45
2: PgSelect[33]
3: PgSelectRows[38]
ᐳ: 37, 39, 40, 41"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 23, 82, 6

ROOT Connectionᐸ19ᐳ[23]
1:
ᐳ: PgClassExpression[18], PgPageInfo[55]
2: PgSelect[24], PgSelect[77]
ᐳ: 41, 58, 59, 60, 63, 64
3: PgSelectRows[25], PgSelectRows[79]
ᐳ: 66, 68, 70, 72, 74, 76, 78, 80, 81"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgSelect24,PgSelectRows25,Access41,PgPageInfo55,Access58,Object59,Lambda60,Object63,Lambda64,First66,PgSelectSingle68,PgCursor70,Last72,PgSelectSingle74,PgCursor76,PgSelect77,First78,PgSelectRows79,PgSelectSingle80,PgClassExpression81 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11, 41

ROOT __Item{4}ᐸ25ᐳ[26]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item26,PgSelectSingle27 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{5}ᐸusersᐳ[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression37,PgClassExpression38 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 42, 43, 44
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgCursor42,PgClassExpression43,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{7}ᐸusersᐳ[51]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression52,PgClassExpression53 bucket8 + class Bucket2,__Item29,PgSelectSingle30,PgClassExpression31,PgClassExpression32,PgSelect33,First37,PgSelectRows38,PgSelectSingle39,PgClassExpression40,PgClassExpression41,PgCursor45 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.deopt.sql index 5a1418237b..4e26f8fedf 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.deopt.sql @@ -1,6 +1,7 @@ select __forums__."name" as "0", - __forums__."id" as "1" + __forums__."id" as "1", + to_char(__forums__."archived_at", 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text) as "2" from app_public.forums as __forums__ where ( true /* authorization checks */ @@ -8,7 +9,7 @@ where ( order by __forums__."id" asc; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select __messages__."body" as "0", @@ -20,14 +21,14 @@ lateral ( ( __messages__.archived_at is not null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) order by __messages__."id" asc limit 6 ) as __messages_result__; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select (count(*))::text as "0", @@ -37,7 +38,7 @@ lateral ( ( __messages__.archived_at is not null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) ) as __messages_result__; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.mermaid index d1f51fc9d9..17f140cf06 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.mermaid @@ -9,144 +9,114 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan + Constant80{{"Constant[80∈0] ➊
ᐸ5ᐳ"}}:::plan + Constant80 --> Connection24 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 - Connection23{{"Connection[23∈0] ➊
ᐸ19ᐳ"}}:::plan - Constant82{{"Constant[82∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant82 --> Connection23 + Constant79{{"Constant[79∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant79 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda26[["Lambda[26∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant81{{"Constant[81∈0] ➊
ᐸ'EXCLUSIVELY'ᐳ"}}:::plan + Constant81 --> Lambda26 + PgPageInfo52{{"PgPageInfo[52∈0] ➊"}}:::plan + Connection24 --> PgPageInfo52 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect24[["PgSelect[24∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression18 & Connection23 & Constant82 --> PgSelect24 - Object63{{"Object[63∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access58{{"Access[58∈3]
ᐸ24.hasMoreᐳ"}}:::plan - Constant82 & Constant6 & Constant6 & Access58 --> Object63 - Object59{{"Object[59∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant82 & Constant6 & Access58 --> Object59 - PgSelect77[["PgSelect[77∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & PgClassExpression18 & Connection23 --> PgSelect77 - PgCursor70{{"PgCursor[70∈3]"}}:::plan - PgSelectSingle68{{"PgSelectSingle[68∈3]
ᐸmessagesᐳ"}}:::plan - Access41{{"Access[41∈3]
ᐸ24.cursorDetailsᐳ"}}:::plan - PgSelectSingle68 & Access41 --> PgCursor70 - PgCursor76{{"PgCursor[76∈3]"}}:::plan - PgSelectSingle74{{"PgSelectSingle[74∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle74 & Access41 --> PgCursor76 - PgSelectSingle14 --> PgClassExpression18 - PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan - PgSelect24 --> PgSelectRows25 - PgSelect24 --> Access41 - PgPageInfo55{{"PgPageInfo[55∈3] ➊"}}:::plan - Connection23 --> PgPageInfo55 - PgSelect24 --> Access58 - Lambda60{{"Lambda[60∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object59 --> Lambda60 - Lambda64{{"Lambda[64∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object63 --> Lambda64 - First66{{"First[66∈3]"}}:::plan - PgSelectRows25 --> First66 - First66 --> PgSelectSingle68 - Last72{{"Last[72∈3]"}}:::plan - PgSelectRows25 --> Last72 - Last72 --> PgSelectSingle74 - First78{{"First[78∈3]"}}:::plan - PgSelectRows79[["PgSelectRows[79∈3]"]]:::plan - PgSelectRows79 --> First78 - PgSelect77 --> PgSelectRows79 - PgSelectSingle80{{"PgSelectSingle[80∈3]
ᐸmessagesᐳ"}}:::plan - First78 --> PgSelectSingle80 - PgClassExpression81{{"PgClassExpression[81∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle80 --> PgClassExpression81 - __Item26[/"__Item[26∈4]
ᐸ25ᐳ"\]:::itemplan - PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈4]
ᐸmessagesᐳ"}}:::plan - __Item26 --> PgSelectSingle27 - PgSelect30[["PgSelect[30∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression29{{"PgClassExpression[29∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression29 --> PgSelect30 - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgSelectSingle27 --> PgClassExpression29 - First34{{"First[34∈5]"}}:::plan - PgSelectRows35[["PgSelectRows[35∈5]"]]:::plan - PgSelectRows35 --> First34 - PgSelect30 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈5]
ᐸusersᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression38 - PgCursor42{{"PgCursor[42∈7]"}}:::plan - PgSelectSingle27 & Access41 --> PgCursor42 - PgSelect45[["PgSelect[45∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression44 --> PgSelect45 - PgClassExpression43{{"PgClassExpression[43∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression43 - PgSelectSingle27 --> PgClassExpression44 - First49{{"First[49∈7]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈7]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈7]
ᐸusersᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 + PgSelect27[["PgSelect[27∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda26 -->|rejectNull| PgSelect27 + Object11 & PgClassExpression19 & PgClassExpression25 & Connection24 & Constant80 --> PgSelect27 + PgSelect74[["PgSelect[74∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda26 -->|rejectNull| PgSelect74 + Object11 & PgClassExpression19 & PgClassExpression25 & Connection24 --> PgSelect74 + Object60{{"Object[60∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access54{{"Access[54∈1]
ᐸ27.hasMoreᐳ"}}:::plan + Constant80 & Access54 --> Object60 + Object55{{"Object[55∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant80 & Access54 --> Object55 + PgCursor67{{"PgCursor[67∈1]"}}:::plan + PgSelectSingle65{{"PgSelectSingle[65∈1]
ᐸmessagesᐳ"}}:::plan + Access44{{"Access[44∈1]
ᐸ27.cursorDetailsᐳ"}}:::plan + PgSelectSingle65 & Access44 --> PgCursor67 + PgCursor73{{"PgCursor[73∈1]"}}:::plan + PgSelectSingle71{{"PgSelectSingle[71∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle71 & Access44 --> PgCursor73 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression19 + PgSelectSingle15 --> PgClassExpression25 + PgSelectRows28[["PgSelectRows[28∈1]"]]:::plan + PgSelect27 --> PgSelectRows28 + PgSelect27 --> Access44 + PgSelect27 --> Access54 + Lambda56{{"Lambda[56∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object55 --> Lambda56 + Lambda61{{"Lambda[61∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object60 --> Lambda61 + First63{{"First[63∈1]"}}:::plan + PgSelectRows28 --> First63 + First63 --> PgSelectSingle65 + Last69{{"Last[69∈1]"}}:::plan + PgSelectRows28 --> Last69 + Last69 --> PgSelectSingle71 + First75{{"First[75∈1]"}}:::plan + PgSelectRows76[["PgSelectRows[76∈1]"]]:::plan + PgSelectRows76 --> First75 + PgSelect74 --> PgSelectRows76 + PgSelectSingle77{{"PgSelectSingle[77∈1]
ᐸmessagesᐳ"}}:::plan + First75 --> PgSelectSingle77 + PgClassExpression78{{"PgClassExpression[78∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle77 --> PgClassExpression78 + PgSelect33[["PgSelect[33∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression32 --> PgSelect33 + PgCursor45{{"PgCursor[45∈2]"}}:::plan + PgSelectSingle30{{"PgSelectSingle[30∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle30 & Access44 --> PgCursor45 + __Item29[/"__Item[29∈2]
ᐸ28ᐳ"\]:::itemplan + PgSelectRows28 ==> __Item29 + __Item29 --> PgSelectSingle30 + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression31 + PgSelectSingle30 --> PgClassExpression32 + First37{{"First[37∈2]"}}:::plan + PgSelectRows38[["PgSelectRows[38∈2]"]]:::plan + PgSelectRows38 --> First37 + PgSelect33 --> PgSelectRows38 + PgSelectSingle39{{"PgSelectSingle[39∈2]
ᐸusersᐳ"}}:::plan + First37 --> PgSelectSingle39 + PgClassExpression40{{"PgClassExpression[40∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression41 %% define steps subgraph "Buckets for queries/conditions/exclusively-archived-messages" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 82, 11, 23
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 79, 80, 81, 11, 24, 52
2: Lambda[12], Lambda[26]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection23,Constant82 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 23, 82, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection24,Lambda26,PgPageInfo52,Constant79,Constant80,Constant81 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 26, 24, 80, 6, 52

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 19, 25
2: PgSelect[27], PgSelect[74]
ᐳ: 44, 54, 55, 56, 60, 61
3: PgSelectRows[28], PgSelectRows[76]
ᐳ: 63, 65, 67, 69, 71, 73, 75, 77, 78"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 23, 82, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression19,PgClassExpression25,PgSelect27,PgSelectRows28,Access44,Access54,Object55,Lambda56,Object60,Lambda61,First63,PgSelectSingle65,PgCursor67,Last69,PgSelectSingle71,PgCursor73,PgSelect74,First75,PgSelectRows76,PgSelectSingle77,PgClassExpression78 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11, 44

ROOT __Item{2}ᐸ28ᐳ[29]
1:
ᐳ: 30, 31, 32, 45
2: PgSelect[33]
3: PgSelectRows[38]
ᐳ: 37, 39, 40, 41"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 23, 82, 6

ROOT Connectionᐸ19ᐳ[23]
1:
ᐳ: PgClassExpression[18], PgPageInfo[55]
2: PgSelect[24], PgSelect[77]
ᐳ: 41, 58, 59, 60, 63, 64
3: PgSelectRows[25], PgSelectRows[79]
ᐳ: 66, 68, 70, 72, 74, 76, 78, 80, 81"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgSelect24,PgSelectRows25,Access41,PgPageInfo55,Access58,Object59,Lambda60,Object63,Lambda64,First66,PgSelectSingle68,PgCursor70,Last72,PgSelectSingle74,PgCursor76,PgSelect77,First78,PgSelectRows79,PgSelectSingle80,PgClassExpression81 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11, 41

ROOT __Item{4}ᐸ25ᐳ[26]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item26,PgSelectSingle27 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 27, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 28, 29
2: PgSelect[30]
3: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28,PgClassExpression29,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{5}ᐸusersᐳ[36]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression37,PgClassExpression38 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 27, 41, 11

ROOT PgSelectSingle{4}ᐸmessagesᐳ[27]
1:
ᐳ: 42, 43, 44
2: PgSelect[45]
3: PgSelectRows[50]
ᐳ: First[49], PgSelectSingle[51]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgCursor42,PgClassExpression43,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{7}ᐸusersᐳ[51]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression52,PgClassExpression53 bucket8 + class Bucket2,__Item29,PgSelectSingle30,PgClassExpression31,PgClassExpression32,PgSelect33,First37,PgSelectRows38,PgSelectSingle39,PgClassExpression40,PgClassExpression41,PgCursor45 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.sql b/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.sql index 5a1418237b..4e26f8fedf 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/exclusively-archived-messages.sql @@ -1,6 +1,7 @@ select __forums__."name" as "0", - __forums__."id" as "1" + __forums__."id" as "1", + to_char(__forums__."archived_at", 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text) as "2" from app_public.forums as __forums__ where ( true /* authorization checks */ @@ -8,7 +9,7 @@ where ( order by __forums__."id" asc; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select __messages__."body" as "0", @@ -20,14 +21,14 @@ lateral ( ( __messages__.archived_at is not null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) order by __messages__."id" asc limit 6 ) as __messages_result__; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select (count(*))::text as "0", @@ -37,7 +38,7 @@ lateral ( ( __messages__.archived_at is not null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) ) as __messages_result__; diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.deopt.mermaid index deb1b395aa..86a1de67ef 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.deopt.mermaid @@ -11,74 +11,69 @@ graph TD %% plan dependencies PgSelect9[["PgSelect[9∈0] ➊
ᐸforumsᐳ"]]:::plan Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant38{{"Constant[38∈0] ➊
ᐸ2ᐳ"}}:::plan - Object12 & Constant38 --> PgSelect9 + Constant41{{"Constant[41∈0] ➊
ᐸ2ᐳ"}}:::plan + Lambda13[["Lambda[13∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object12 & Constant41 & Lambda13 --> PgSelect9 Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 - PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan - PgSelect9 --> PgSelectRows13 + Constant42{{"Constant[42∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant42 --> Lambda13 + PgSelectRows14[["PgSelectRows[14∈0] ➊"]]:::plan + PgSelect9 --> PgSelectRows14 + Lambda26[["Lambda[26∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant42 --> Lambda26 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan - PgSelectRows13 ==> __Item14 - PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan - __Item14 --> PgSelectSingle15 - PgSelect20[["PgSelect[20∈2]
ᐸmessagesᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression19 & Constant38 --> PgSelect20 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression16 - PgSelectSingle15 --> PgClassExpression19 - PgSelectRows24[["PgSelectRows[24∈2]"]]:::plan - PgSelect20 --> PgSelectRows24 - __Item25[/"__Item[25∈3]
ᐸ24ᐳ"\]:::itemplan - PgSelectRows24 ==> __Item25 - PgSelectSingle26{{"PgSelectSingle[26∈3]
ᐸmessagesᐳ"}}:::plan - __Item25 --> PgSelectSingle26 - PgSelect29[["PgSelect[29∈4]
ᐸusersᐳ"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression28 --> PgSelect29 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 - PgSelectSingle26 --> PgClassExpression28 - First33{{"First[33∈4]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈4]"]]:::plan - PgSelectRows34 --> First33 - PgSelect29 --> PgSelectRows34 - PgSelectSingle35{{"PgSelectSingle[35∈4]
ᐸusersᐳ"}}:::plan - First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈5]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression37 + PgSelect21[["PgSelect[21∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Object12 & PgClassExpression20 & Constant41 & PgClassExpression25 & Lambda26 --> PgSelect21 + __Item15[/"__Item[15∈1]
ᐸ14ᐳ"\]:::itemplan + PgSelectRows14 ==> __Item15 + PgSelectSingle16{{"PgSelectSingle[16∈1]
ᐸforumsᐳ"}}:::plan + __Item15 --> PgSelectSingle16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression17 + PgSelectSingle16 --> PgClassExpression20 + PgSelectSingle16 --> PgClassExpression25 + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelect21 --> PgSelectRows27 + PgSelect32[["PgSelect[32∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object12 & PgClassExpression31 --> PgSelect32 + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸmessagesᐳ"}}:::plan + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First36{{"First[36∈2]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈2]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈2]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 %% define steps subgraph "Buckets for queries/conditions/include-all-archived" - Bucket0("Bucket 0 (root)

1:
ᐳ: 10, 11, 38, 12
2: PgSelect[9]
3: PgSelectRows[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 10, 11, 41, 42, 12
2: Lambda[13], Lambda[26]
3: PgSelect[9]
4: PgSelectRows[14]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect9,Access10,Access11,Object12,PgSelectRows13,Constant38 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 12, 38

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect9,Access10,Access11,Object12,Lambda13,PgSelectRows14,Lambda26,Constant41,Constant42 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 41, 26

ROOT __Item{1}ᐸ14ᐳ[15]
1:
ᐳ: 16, 17, 20, 25
2: PgSelect[21]
3: PgSelectRows[27]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item14,PgSelectSingle15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 12, 38

ROOT PgSelectSingle{1}ᐸforumsᐳ[15]
1:
ᐳ: 16, 19
2: PgSelect[20]
3: PgSelectRows[24]"):::bucket + class Bucket1,__Item15,PgSelectSingle16,PgClassExpression17,PgClassExpression20,PgSelect21,PgClassExpression25,PgSelectRows27 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 12

ROOT __Item{2}ᐸ27ᐳ[28]
1:
ᐳ: 29, 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression16,PgClassExpression19,PgSelect20,PgSelectRows24 bucket2 - Bucket3("Bucket 3 (listItem)
Deps: 12

ROOT __Item{3}ᐸ24ᐳ[25]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item25,PgSelectSingle26 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 26, 12

ROOT PgSelectSingle{3}ᐸmessagesᐳ[26]
1:
ᐳ: 27, 28
2: PgSelect[29]
3: PgSelectRows[34]
ᐳ: First[33], PgSelectSingle[35]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression27,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 35

ROOT PgSelectSingle{4}ᐸusersᐳ[35]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression36,PgClassExpression37 bucket5 + class Bucket2,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.deopt.sql b/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.deopt.sql index 94379e3bab..ce870d8eb3 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.deopt.sql @@ -1,6 +1,7 @@ select __forums__."name" as "0", - __forums__."id" as "1" + __forums__."id" as "1", + to_char(__forums__."archived_at", 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text) as "2" from app_public.forums as __forums__ where ( true /* authorization checks */ @@ -9,7 +10,7 @@ order by __forums__."id" asc limit 2; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select __messages__."body" as "0", @@ -17,7 +18,7 @@ lateral ( __messages_identifiers__.idx as "2" from app_public.messages as __messages__ where ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) order by __messages__."id" asc limit 2 diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.mermaid b/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.mermaid index deb1b395aa..86a1de67ef 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.mermaid @@ -11,74 +11,69 @@ graph TD %% plan dependencies PgSelect9[["PgSelect[9∈0] ➊
ᐸforumsᐳ"]]:::plan Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant38{{"Constant[38∈0] ➊
ᐸ2ᐳ"}}:::plan - Object12 & Constant38 --> PgSelect9 + Constant41{{"Constant[41∈0] ➊
ᐸ2ᐳ"}}:::plan + Lambda13[["Lambda[13∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object12 & Constant41 & Lambda13 --> PgSelect9 Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 - PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan - PgSelect9 --> PgSelectRows13 + Constant42{{"Constant[42∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant42 --> Lambda13 + PgSelectRows14[["PgSelectRows[14∈0] ➊"]]:::plan + PgSelect9 --> PgSelectRows14 + Lambda26[["Lambda[26∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant42 --> Lambda26 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan - PgSelectRows13 ==> __Item14 - PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan - __Item14 --> PgSelectSingle15 - PgSelect20[["PgSelect[20∈2]
ᐸmessagesᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression19 & Constant38 --> PgSelect20 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression16 - PgSelectSingle15 --> PgClassExpression19 - PgSelectRows24[["PgSelectRows[24∈2]"]]:::plan - PgSelect20 --> PgSelectRows24 - __Item25[/"__Item[25∈3]
ᐸ24ᐳ"\]:::itemplan - PgSelectRows24 ==> __Item25 - PgSelectSingle26{{"PgSelectSingle[26∈3]
ᐸmessagesᐳ"}}:::plan - __Item25 --> PgSelectSingle26 - PgSelect29[["PgSelect[29∈4]
ᐸusersᐳ"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression28 --> PgSelect29 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 - PgSelectSingle26 --> PgClassExpression28 - First33{{"First[33∈4]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈4]"]]:::plan - PgSelectRows34 --> First33 - PgSelect29 --> PgSelectRows34 - PgSelectSingle35{{"PgSelectSingle[35∈4]
ᐸusersᐳ"}}:::plan - First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈5]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression37 + PgSelect21[["PgSelect[21∈1]
ᐸmessagesᐳ"]]:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Object12 & PgClassExpression20 & Constant41 & PgClassExpression25 & Lambda26 --> PgSelect21 + __Item15[/"__Item[15∈1]
ᐸ14ᐳ"\]:::itemplan + PgSelectRows14 ==> __Item15 + PgSelectSingle16{{"PgSelectSingle[16∈1]
ᐸforumsᐳ"}}:::plan + __Item15 --> PgSelectSingle16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression17 + PgSelectSingle16 --> PgClassExpression20 + PgSelectSingle16 --> PgClassExpression25 + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelect21 --> PgSelectRows27 + PgSelect32[["PgSelect[32∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object12 & PgClassExpression31 --> PgSelect32 + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸmessagesᐳ"}}:::plan + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle29 --> PgClassExpression31 + First36{{"First[36∈2]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈2]"]]:::plan + PgSelectRows37 --> First36 + PgSelect32 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈2]
ᐸusersᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 %% define steps subgraph "Buckets for queries/conditions/include-all-archived" - Bucket0("Bucket 0 (root)

1:
ᐳ: 10, 11, 38, 12
2: PgSelect[9]
3: PgSelectRows[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 10, 11, 41, 42, 12
2: Lambda[13], Lambda[26]
3: PgSelect[9]
4: PgSelectRows[14]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect9,Access10,Access11,Object12,PgSelectRows13,Constant38 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 12, 38

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect9,Access10,Access11,Object12,Lambda13,PgSelectRows14,Lambda26,Constant41,Constant42 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 41, 26

ROOT __Item{1}ᐸ14ᐳ[15]
1:
ᐳ: 16, 17, 20, 25
2: PgSelect[21]
3: PgSelectRows[27]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item14,PgSelectSingle15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 12, 38

ROOT PgSelectSingle{1}ᐸforumsᐳ[15]
1:
ᐳ: 16, 19
2: PgSelect[20]
3: PgSelectRows[24]"):::bucket + class Bucket1,__Item15,PgSelectSingle16,PgClassExpression17,PgClassExpression20,PgSelect21,PgClassExpression25,PgSelectRows27 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 12

ROOT __Item{2}ᐸ27ᐳ[28]
1:
ᐳ: 29, 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: 36, 38, 39, 40"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression16,PgClassExpression19,PgSelect20,PgSelectRows24 bucket2 - Bucket3("Bucket 3 (listItem)
Deps: 12

ROOT __Item{3}ᐸ24ᐳ[25]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item25,PgSelectSingle26 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 26, 12

ROOT PgSelectSingle{3}ᐸmessagesᐳ[26]
1:
ᐳ: 27, 28
2: PgSelect[29]
3: PgSelectRows[34]
ᐳ: First[33], PgSelectSingle[35]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression27,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 35

ROOT PgSelectSingle{4}ᐸusersᐳ[35]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression36,PgClassExpression37 bucket5 + class Bucket2,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.sql b/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.sql index 94379e3bab..ce870d8eb3 100644 --- a/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.sql +++ b/grafast/dataplan-pg/__tests__/queries/conditions/include-all-archived.sql @@ -1,6 +1,7 @@ select __forums__."name" as "0", - __forums__."id" as "1" + __forums__."id" as "1", + to_char(__forums__."archived_at", 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text) as "2" from app_public.forums as __forums__ where ( true /* authorization checks */ @@ -9,7 +10,7 @@ order by __forums__."id" asc limit 2; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select __messages__."body" as "0", @@ -17,7 +18,7 @@ lateral ( __messages_identifiers__.idx as "2" from app_public.messages as __messages__ where ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) order by __messages__."id" asc limit 2 diff --git a/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.deopt.mermaid index d0761378cf..a710cb102a 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.deopt.mermaid @@ -9,101 +9,93 @@ graph TD %% plan dependencies + PgSelect15[["PgSelect[15∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda14[["Lambda[14∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant59{{"Constant[59∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda14 -->|rejectNull| PgSelect15 + Object12 & Connection13 & Constant59 --> PgSelect15 + Object40{{"Object[40∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access35{{"Access[35∈0] ➊
ᐸ15.hasMoreᐳ"}}:::plan + Constant59 & Access35 --> Object40 + Object36{{"Object[36∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant59 & Access35 --> Object36 + PgSelect54[["PgSelect[54∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda14 -->|rejectNull| PgSelect54 + Object12 & Connection13 --> PgSelect54 Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 + Constant59 --> Connection13 + PgCursor47{{"PgCursor[47∈0] ➊"}}:::plan + PgSelectSingle45{{"PgSelectSingle[45∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access19{{"Access[19∈0] ➊
ᐸ15.cursorDetailsᐳ"}}:::plan + PgSelectSingle45 & Access19 --> PgCursor47 + PgCursor53{{"PgCursor[53∈0] ➊"}}:::plan + PgSelectSingle51{{"PgSelectSingle[51∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle51 & Access19 --> PgCursor53 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Constant59{{"Constant[59∈0] ➊
ᐸ3ᐳ"}}:::plan - Constant59 --> Connection13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Object40{{"Object[40∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access35{{"Access[35∈1] ➊
ᐸ14.hasMoreᐳ"}}:::plan - Constant59 & Constant6 & Constant6 & Access35 --> Object40 - PgSelect14[["PgSelect[14∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object12 & Connection13 & Constant59 --> PgSelect14 - Object36{{"Object[36∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant59 & Constant6 & Access35 --> Object36 - PgCursor47{{"PgCursor[47∈1] ➊"}}:::plan - PgSelectSingle45{{"PgSelectSingle[45∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access18{{"Access[18∈1] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan - PgSelectSingle45 & Access18 --> PgCursor47 - PgCursor53{{"PgCursor[53∈1] ➊"}}:::plan - PgSelectSingle51{{"PgSelectSingle[51∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle51 & Access18 --> PgCursor53 - PgSelect54[["PgSelect[54∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect54 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan - PgSelect14 --> PgSelectRows15 - PgSelect14 --> Access18 - PgPageInfo32{{"PgPageInfo[32∈1] ➊"}}:::plan - Connection13 --> PgPageInfo32 - PgSelect14 --> Access35 - Lambda37{{"Lambda[37∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda14 + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan + PgSelect15 --> PgSelectRows16 + PgSelect15 --> Access19 + PgPageInfo33{{"PgPageInfo[33∈0] ➊"}}:::plan + Connection13 --> PgPageInfo33 + PgSelect15 --> Access35 + Lambda37{{"Lambda[37∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object36 --> Lambda37 - Lambda41{{"Lambda[41∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda41{{"Lambda[41∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object40 --> Lambda41 - First43{{"First[43∈1] ➊"}}:::plan - PgSelectRows15 --> First43 + First43{{"First[43∈0] ➊"}}:::plan + PgSelectRows16 --> First43 First43 --> PgSelectSingle45 - Last49{{"Last[49∈1] ➊"}}:::plan - PgSelectRows15 --> Last49 + Last49{{"Last[49∈0] ➊"}}:::plan + PgSelectRows16 --> Last49 Last49 --> PgSelectSingle51 - First55{{"First[55∈1] ➊"}}:::plan - PgSelectRows56[["PgSelectRows[56∈1] ➊"]]:::plan + First55{{"First[55∈0] ➊"}}:::plan + PgSelectRows56[["PgSelectRows[56∈0] ➊"]]:::plan PgSelectRows56 --> First55 PgSelect54 --> PgSelectRows56 - PgSelectSingle57{{"PgSelectSingle[57∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle57{{"PgSelectSingle[57∈0] ➊
ᐸmessagesᐳ"}}:::plan First55 --> PgSelectSingle57 - PgClassExpression58{{"PgClassExpression[58∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression58{{"PgClassExpression[58∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle57 --> PgClassExpression58 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan - PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸmessagesᐳ"}}:::plan - __Item16 --> PgSelectSingle17 - PgCursor19{{"PgCursor[19∈3]"}}:::plan - PgSelectSingle17 & Access18 --> PgCursor19 - PgSelect22[["PgSelect[22∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression21 --> PgSelect22 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression20 - PgSelectSingle17 --> PgClassExpression21 - First26{{"First[26∈3]"}}:::plan - PgSelectRows27[["PgSelectRows[27∈3]"]]:::plan - PgSelectRows27 --> First26 - PgSelect22 --> PgSelectRows27 - PgSelectSingle28{{"PgSelectSingle[28∈3]
ᐸusersᐳ"}}:::plan - First26 --> PgSelectSingle28 - PgClassExpression29{{"PgClassExpression[29∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression29 - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression30 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor20{{"PgCursor[20∈1]"}}:::plan + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle18 & Access19 --> PgCursor20 + PgSelect23[["PgSelect[23∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object12 & PgClassExpression22 --> PgSelect23 + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan + PgSelectRows16 ==> __Item17 + __Item17 --> PgSelectSingle18 + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression21 + PgSelectSingle18 --> PgClassExpression22 + First27{{"First[27∈1]"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1]"]]:::plan + PgSelectRows28 --> First27 + PgSelect23 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1]
ᐸusersᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression31 %% define steps subgraph "Buckets for queries/connections/basics-limit3" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 10, 11, 59, 12, 13, 33
2: Lambda[14]
3: PgSelect[15], PgSelect[54]
ᐳ: 19, 35, 36, 37, 40, 41
4: PgSelectRows[16], PgSelectRows[56]
ᐳ: 43, 45, 47, 49, 51, 53, 55, 57, 58"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access10,Access11,Object12,Connection13,Constant59 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 59, 6

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14], PgSelect[54]
ᐳ: 32, 18, 35, 36, 37, 40, 41
2: PgSelectRows[15], PgSelectRows[56]
ᐳ: 43, 45, 47, 49, 51, 53, 55, 57, 58"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access10,Access11,Object12,Connection13,Lambda14,PgSelect15,PgSelectRows16,Access19,PgPageInfo33,Access35,Object36,Lambda37,Object40,Lambda41,First43,PgSelectSingle45,PgCursor47,Last49,PgSelectSingle51,PgCursor53,PgSelect54,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,Constant59 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 19, 12

ROOT __Item{1}ᐸ16ᐳ[17]
1:
ᐳ: 18, 20, 21, 22
2: PgSelect[23]
3: PgSelectRows[28]
ᐳ: 27, 29, 30, 31"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15,Access18,PgPageInfo32,Access35,Object36,Lambda37,Object40,Lambda41,First43,PgSelectSingle45,PgCursor47,Last49,PgSelectSingle51,PgCursor53,PgSelect54,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 18, 12

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 18, 12

ROOT PgSelectSingle{2}ᐸmessagesᐳ[17]
1:
ᐳ: 19, 20, 21
2: PgSelect[22]
3: PgSelectRows[27]
ᐳ: First[26], PgSelectSingle[28]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor19,PgClassExpression20,PgClassExpression21,PgSelect22,First26,PgSelectRows27,PgSelectSingle28 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 28

ROOT PgSelectSingle{3}ᐸusersᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression29,PgClassExpression30 bucket4 + class Bucket1,__Item17,PgSelectSingle18,PgCursor20,PgClassExpression21,PgClassExpression22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.deopt.sql index 08309441af..9dce91f8cd 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.deopt.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) order by __messages__."id" asc limit 4; @@ -17,9 +17,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.mermaid index d0761378cf..a710cb102a 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.mermaid @@ -9,101 +9,93 @@ graph TD %% plan dependencies + PgSelect15[["PgSelect[15∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda14[["Lambda[14∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant59{{"Constant[59∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda14 -->|rejectNull| PgSelect15 + Object12 & Connection13 & Constant59 --> PgSelect15 + Object40{{"Object[40∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access35{{"Access[35∈0] ➊
ᐸ15.hasMoreᐳ"}}:::plan + Constant59 & Access35 --> Object40 + Object36{{"Object[36∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant59 & Access35 --> Object36 + PgSelect54[["PgSelect[54∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda14 -->|rejectNull| PgSelect54 + Object12 & Connection13 --> PgSelect54 Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 + Constant59 --> Connection13 + PgCursor47{{"PgCursor[47∈0] ➊"}}:::plan + PgSelectSingle45{{"PgSelectSingle[45∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access19{{"Access[19∈0] ➊
ᐸ15.cursorDetailsᐳ"}}:::plan + PgSelectSingle45 & Access19 --> PgCursor47 + PgCursor53{{"PgCursor[53∈0] ➊"}}:::plan + PgSelectSingle51{{"PgSelectSingle[51∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle51 & Access19 --> PgCursor53 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Constant59{{"Constant[59∈0] ➊
ᐸ3ᐳ"}}:::plan - Constant59 --> Connection13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Object40{{"Object[40∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access35{{"Access[35∈1] ➊
ᐸ14.hasMoreᐳ"}}:::plan - Constant59 & Constant6 & Constant6 & Access35 --> Object40 - PgSelect14[["PgSelect[14∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object12 & Connection13 & Constant59 --> PgSelect14 - Object36{{"Object[36∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant59 & Constant6 & Access35 --> Object36 - PgCursor47{{"PgCursor[47∈1] ➊"}}:::plan - PgSelectSingle45{{"PgSelectSingle[45∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access18{{"Access[18∈1] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan - PgSelectSingle45 & Access18 --> PgCursor47 - PgCursor53{{"PgCursor[53∈1] ➊"}}:::plan - PgSelectSingle51{{"PgSelectSingle[51∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle51 & Access18 --> PgCursor53 - PgSelect54[["PgSelect[54∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect54 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan - PgSelect14 --> PgSelectRows15 - PgSelect14 --> Access18 - PgPageInfo32{{"PgPageInfo[32∈1] ➊"}}:::plan - Connection13 --> PgPageInfo32 - PgSelect14 --> Access35 - Lambda37{{"Lambda[37∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda14 + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan + PgSelect15 --> PgSelectRows16 + PgSelect15 --> Access19 + PgPageInfo33{{"PgPageInfo[33∈0] ➊"}}:::plan + Connection13 --> PgPageInfo33 + PgSelect15 --> Access35 + Lambda37{{"Lambda[37∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object36 --> Lambda37 - Lambda41{{"Lambda[41∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda41{{"Lambda[41∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object40 --> Lambda41 - First43{{"First[43∈1] ➊"}}:::plan - PgSelectRows15 --> First43 + First43{{"First[43∈0] ➊"}}:::plan + PgSelectRows16 --> First43 First43 --> PgSelectSingle45 - Last49{{"Last[49∈1] ➊"}}:::plan - PgSelectRows15 --> Last49 + Last49{{"Last[49∈0] ➊"}}:::plan + PgSelectRows16 --> Last49 Last49 --> PgSelectSingle51 - First55{{"First[55∈1] ➊"}}:::plan - PgSelectRows56[["PgSelectRows[56∈1] ➊"]]:::plan + First55{{"First[55∈0] ➊"}}:::plan + PgSelectRows56[["PgSelectRows[56∈0] ➊"]]:::plan PgSelectRows56 --> First55 PgSelect54 --> PgSelectRows56 - PgSelectSingle57{{"PgSelectSingle[57∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle57{{"PgSelectSingle[57∈0] ➊
ᐸmessagesᐳ"}}:::plan First55 --> PgSelectSingle57 - PgClassExpression58{{"PgClassExpression[58∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression58{{"PgClassExpression[58∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle57 --> PgClassExpression58 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan - PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸmessagesᐳ"}}:::plan - __Item16 --> PgSelectSingle17 - PgCursor19{{"PgCursor[19∈3]"}}:::plan - PgSelectSingle17 & Access18 --> PgCursor19 - PgSelect22[["PgSelect[22∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression21 --> PgSelect22 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression20 - PgSelectSingle17 --> PgClassExpression21 - First26{{"First[26∈3]"}}:::plan - PgSelectRows27[["PgSelectRows[27∈3]"]]:::plan - PgSelectRows27 --> First26 - PgSelect22 --> PgSelectRows27 - PgSelectSingle28{{"PgSelectSingle[28∈3]
ᐸusersᐳ"}}:::plan - First26 --> PgSelectSingle28 - PgClassExpression29{{"PgClassExpression[29∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression29 - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression30 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor20{{"PgCursor[20∈1]"}}:::plan + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle18 & Access19 --> PgCursor20 + PgSelect23[["PgSelect[23∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object12 & PgClassExpression22 --> PgSelect23 + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan + PgSelectRows16 ==> __Item17 + __Item17 --> PgSelectSingle18 + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression21 + PgSelectSingle18 --> PgClassExpression22 + First27{{"First[27∈1]"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1]"]]:::plan + PgSelectRows28 --> First27 + PgSelect23 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1]
ᐸusersᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression31 %% define steps subgraph "Buckets for queries/connections/basics-limit3" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 10, 11, 59, 12, 13, 33
2: Lambda[14]
3: PgSelect[15], PgSelect[54]
ᐳ: 19, 35, 36, 37, 40, 41
4: PgSelectRows[16], PgSelectRows[56]
ᐳ: 43, 45, 47, 49, 51, 53, 55, 57, 58"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access10,Access11,Object12,Connection13,Constant59 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 59, 6

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14], PgSelect[54]
ᐳ: 32, 18, 35, 36, 37, 40, 41
2: PgSelectRows[15], PgSelectRows[56]
ᐳ: 43, 45, 47, 49, 51, 53, 55, 57, 58"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access10,Access11,Object12,Connection13,Lambda14,PgSelect15,PgSelectRows16,Access19,PgPageInfo33,Access35,Object36,Lambda37,Object40,Lambda41,First43,PgSelectSingle45,PgCursor47,Last49,PgSelectSingle51,PgCursor53,PgSelect54,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,Constant59 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 19, 12

ROOT __Item{1}ᐸ16ᐳ[17]
1:
ᐳ: 18, 20, 21, 22
2: PgSelect[23]
3: PgSelectRows[28]
ᐳ: 27, 29, 30, 31"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15,Access18,PgPageInfo32,Access35,Object36,Lambda37,Object40,Lambda41,First43,PgSelectSingle45,PgCursor47,Last49,PgSelectSingle51,PgCursor53,PgSelect54,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 18, 12

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 18, 12

ROOT PgSelectSingle{2}ᐸmessagesᐳ[17]
1:
ᐳ: 19, 20, 21
2: PgSelect[22]
3: PgSelectRows[27]
ᐳ: First[26], PgSelectSingle[28]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor19,PgClassExpression20,PgClassExpression21,PgSelect22,First26,PgSelectRows27,PgSelectSingle28 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 28

ROOT PgSelectSingle{3}ᐸusersᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression29,PgClassExpression30 bucket4 + class Bucket1,__Item17,PgSelectSingle18,PgCursor20,PgClassExpression21,PgClassExpression22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.sql b/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.sql index 08309441af..9dce91f8cd 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/basics-limit3.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) order by __messages__."id" asc limit 4; @@ -17,9 +17,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/basics.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/basics.deopt.mermaid index c6a05b0218..cf3a8e17df 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/basics.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/basics.deopt.mermaid @@ -9,99 +9,91 @@ graph TD %% plan dependencies + PgSelect14[["PgSelect[14∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda13[["Lambda[13∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Lambda13 -->|rejectNull| PgSelect14 + Object11 & Connection12 --> PgSelect14 + Object39{{"Object[39∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access34{{"Access[34∈0] ➊
ᐸ14.hasMoreᐳ"}}:::plan + Access34 --> Object39 + Object35{{"Object[35∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access34 --> Object35 + PgSelect53[["PgSelect[53∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda13 -->|rejectNull| PgSelect53 + Object11 & Connection12 --> PgSelect53 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 + PgCursor46{{"PgCursor[46∈0] ➊"}}:::plan + PgSelectSingle44{{"PgSelectSingle[44∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access18{{"Access[18∈0] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan + PgSelectSingle44 & Access18 --> PgCursor46 + PgCursor52{{"PgCursor[52∈0] ➊"}}:::plan + PgSelectSingle50{{"PgSelectSingle[50∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle50 & Access18 --> PgCursor52 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan - Object39{{"Object[39∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access34{{"Access[34∈1] ➊
ᐸ13.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access34 --> Object39 - Object35{{"Object[35∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access34 --> Object35 - PgSelect13[["PgSelect[13∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object11 & Connection12 --> PgSelect13 - PgCursor46{{"PgCursor[46∈1] ➊"}}:::plan - PgSelectSingle44{{"PgSelectSingle[44∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access17{{"Access[17∈1] ➊
ᐸ13.cursorDetailsᐳ"}}:::plan - PgSelectSingle44 & Access17 --> PgCursor46 - PgCursor52{{"PgCursor[52∈1] ➊"}}:::plan - PgSelectSingle50{{"PgSelectSingle[50∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle50 & Access17 --> PgCursor52 - PgSelect53[["PgSelect[53∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & Connection12 --> PgSelect53 - PgSelectRows14[["PgSelectRows[14∈1] ➊"]]:::plan - PgSelect13 --> PgSelectRows14 - PgSelect13 --> Access17 - PgPageInfo31{{"PgPageInfo[31∈1] ➊"}}:::plan - Connection12 --> PgPageInfo31 - PgSelect13 --> Access34 - Lambda36{{"Lambda[36∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda13 + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan + PgSelect14 --> PgSelectRows15 + PgSelect14 --> Access18 + PgPageInfo32{{"PgPageInfo[32∈0] ➊"}}:::plan + Connection12 --> PgPageInfo32 + PgSelect14 --> Access34 + Lambda36{{"Lambda[36∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object35 --> Lambda36 - Lambda40{{"Lambda[40∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda40{{"Lambda[40∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object39 --> Lambda40 - First42{{"First[42∈1] ➊"}}:::plan - PgSelectRows14 --> First42 + First42{{"First[42∈0] ➊"}}:::plan + PgSelectRows15 --> First42 First42 --> PgSelectSingle44 - Last48{{"Last[48∈1] ➊"}}:::plan - PgSelectRows14 --> Last48 + Last48{{"Last[48∈0] ➊"}}:::plan + PgSelectRows15 --> Last48 Last48 --> PgSelectSingle50 - First54{{"First[54∈1] ➊"}}:::plan - PgSelectRows55[["PgSelectRows[55∈1] ➊"]]:::plan + First54{{"First[54∈0] ➊"}}:::plan + PgSelectRows55[["PgSelectRows[55∈0] ➊"]]:::plan PgSelectRows55 --> First54 PgSelect53 --> PgSelectRows55 - PgSelectSingle56{{"PgSelectSingle[56∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle56{{"PgSelectSingle[56∈0] ➊
ᐸmessagesᐳ"}}:::plan First54 --> PgSelectSingle56 - PgClassExpression57{{"PgClassExpression[57∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression57{{"PgClassExpression[57∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle56 --> PgClassExpression57 - __Item15[/"__Item[15∈2]
ᐸ14ᐳ"\]:::itemplan - PgSelectRows14 ==> __Item15 - PgSelectSingle16{{"PgSelectSingle[16∈2]
ᐸmessagesᐳ"}}:::plan - __Item15 --> PgSelectSingle16 - PgCursor18{{"PgCursor[18∈3]"}}:::plan - PgSelectSingle16 & Access17 --> PgCursor18 - PgSelect21[["PgSelect[21∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression20 --> PgSelect21 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle16 --> PgClassExpression19 - PgSelectSingle16 --> PgClassExpression20 - First25{{"First[25∈3]"}}:::plan - PgSelectRows26[["PgSelectRows[26∈3]"]]:::plan - PgSelectRows26 --> First25 - PgSelect21 --> PgSelectRows26 - PgSelectSingle27{{"PgSelectSingle[27∈3]
ᐸusersᐳ"}}:::plan - First25 --> PgSelectSingle27 - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgClassExpression29{{"PgClassExpression[29∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression29 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor19{{"PgCursor[19∈1]"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle17 & Access18 --> PgCursor19 + PgSelect22[["PgSelect[22∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression21 --> PgSelect22 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan + PgSelectRows15 ==> __Item16 + __Item16 --> PgSelectSingle17 + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle17 --> PgClassExpression20 + PgSelectSingle17 --> PgClassExpression21 + First26{{"First[26∈1]"}}:::plan + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelectRows27 --> First26 + PgSelect22 --> PgSelectRows27 + PgSelectSingle28{{"PgSelectSingle[28∈1]
ᐸusersᐳ"}}:::plan + First26 --> PgSelectSingle28 + PgClassExpression29{{"PgClassExpression[29∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression29 + PgClassExpression30{{"PgClassExpression[30∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression30 %% define steps subgraph "Buckets for queries/connections/basics" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11, 12, 32
2: Lambda[13]
3: PgSelect[14], PgSelect[53]
ᐳ: 18, 34, 35, 36, 39, 40
4: PgSelectRows[15], PgSelectRows[55]
ᐳ: 42, 44, 46, 48, 50, 52, 54, 56, 57"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access9,Access10,Object11,Connection12 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 11, 12, 6

ROOT Connectionᐸ8ᐳ[12]
1: PgSelect[13], PgSelect[53]
ᐳ: 31, 17, 34, 35, 36, 39, 40
2: PgSelectRows[14], PgSelectRows[55]
ᐳ: 42, 44, 46, 48, 50, 52, 54, 56, 57"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access9,Access10,Object11,Connection12,Lambda13,PgSelect14,PgSelectRows15,Access18,PgPageInfo32,Access34,Object35,Lambda36,Object39,Lambda40,First42,PgSelectSingle44,PgCursor46,Last48,PgSelectSingle50,PgCursor52,PgSelect53,First54,PgSelectRows55,PgSelectSingle56,PgClassExpression57 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 18, 11

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 19, 20, 21
2: PgSelect[22]
3: PgSelectRows[27]
ᐳ: 26, 28, 29, 30"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect13,PgSelectRows14,Access17,PgPageInfo31,Access34,Object35,Lambda36,Object39,Lambda40,First42,PgSelectSingle44,PgCursor46,Last48,PgSelectSingle50,PgCursor52,PgSelect53,First54,PgSelectRows55,PgSelectSingle56,PgClassExpression57 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 17, 11

ROOT __Item{2}ᐸ14ᐳ[15]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item15,PgSelectSingle16 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 16, 17, 11

ROOT PgSelectSingle{2}ᐸmessagesᐳ[16]
1:
ᐳ: 18, 19, 20
2: PgSelect[21]
3: PgSelectRows[26]
ᐳ: First[25], PgSelectSingle[27]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor18,PgClassExpression19,PgClassExpression20,PgSelect21,First25,PgSelectRows26,PgSelectSingle27 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 27

ROOT PgSelectSingle{3}ᐸusersᐳ[27]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression28,PgClassExpression29 bucket4 + class Bucket1,__Item16,PgSelectSingle17,PgCursor19,PgClassExpression20,PgClassExpression21,PgSelect22,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression29,PgClassExpression30 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/basics.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/basics.deopt.sql index acf355d0ab..b24eca26e1 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/basics.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/basics.deopt.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) order by __messages__."id" asc; @@ -16,9 +16,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/basics.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/basics.mermaid index c6a05b0218..cf3a8e17df 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/basics.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/basics.mermaid @@ -9,99 +9,91 @@ graph TD %% plan dependencies + PgSelect14[["PgSelect[14∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda13[["Lambda[13∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Lambda13 -->|rejectNull| PgSelect14 + Object11 & Connection12 --> PgSelect14 + Object39{{"Object[39∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access34{{"Access[34∈0] ➊
ᐸ14.hasMoreᐳ"}}:::plan + Access34 --> Object39 + Object35{{"Object[35∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access34 --> Object35 + PgSelect53[["PgSelect[53∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda13 -->|rejectNull| PgSelect53 + Object11 & Connection12 --> PgSelect53 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 + PgCursor46{{"PgCursor[46∈0] ➊"}}:::plan + PgSelectSingle44{{"PgSelectSingle[44∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access18{{"Access[18∈0] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan + PgSelectSingle44 & Access18 --> PgCursor46 + PgCursor52{{"PgCursor[52∈0] ➊"}}:::plan + PgSelectSingle50{{"PgSelectSingle[50∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle50 & Access18 --> PgCursor52 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan - Object39{{"Object[39∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access34{{"Access[34∈1] ➊
ᐸ13.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access34 --> Object39 - Object35{{"Object[35∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access34 --> Object35 - PgSelect13[["PgSelect[13∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object11 & Connection12 --> PgSelect13 - PgCursor46{{"PgCursor[46∈1] ➊"}}:::plan - PgSelectSingle44{{"PgSelectSingle[44∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access17{{"Access[17∈1] ➊
ᐸ13.cursorDetailsᐳ"}}:::plan - PgSelectSingle44 & Access17 --> PgCursor46 - PgCursor52{{"PgCursor[52∈1] ➊"}}:::plan - PgSelectSingle50{{"PgSelectSingle[50∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle50 & Access17 --> PgCursor52 - PgSelect53[["PgSelect[53∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object11 & Connection12 --> PgSelect53 - PgSelectRows14[["PgSelectRows[14∈1] ➊"]]:::plan - PgSelect13 --> PgSelectRows14 - PgSelect13 --> Access17 - PgPageInfo31{{"PgPageInfo[31∈1] ➊"}}:::plan - Connection12 --> PgPageInfo31 - PgSelect13 --> Access34 - Lambda36{{"Lambda[36∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda13 + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan + PgSelect14 --> PgSelectRows15 + PgSelect14 --> Access18 + PgPageInfo32{{"PgPageInfo[32∈0] ➊"}}:::plan + Connection12 --> PgPageInfo32 + PgSelect14 --> Access34 + Lambda36{{"Lambda[36∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object35 --> Lambda36 - Lambda40{{"Lambda[40∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda40{{"Lambda[40∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object39 --> Lambda40 - First42{{"First[42∈1] ➊"}}:::plan - PgSelectRows14 --> First42 + First42{{"First[42∈0] ➊"}}:::plan + PgSelectRows15 --> First42 First42 --> PgSelectSingle44 - Last48{{"Last[48∈1] ➊"}}:::plan - PgSelectRows14 --> Last48 + Last48{{"Last[48∈0] ➊"}}:::plan + PgSelectRows15 --> Last48 Last48 --> PgSelectSingle50 - First54{{"First[54∈1] ➊"}}:::plan - PgSelectRows55[["PgSelectRows[55∈1] ➊"]]:::plan + First54{{"First[54∈0] ➊"}}:::plan + PgSelectRows55[["PgSelectRows[55∈0] ➊"]]:::plan PgSelectRows55 --> First54 PgSelect53 --> PgSelectRows55 - PgSelectSingle56{{"PgSelectSingle[56∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle56{{"PgSelectSingle[56∈0] ➊
ᐸmessagesᐳ"}}:::plan First54 --> PgSelectSingle56 - PgClassExpression57{{"PgClassExpression[57∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression57{{"PgClassExpression[57∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle56 --> PgClassExpression57 - __Item15[/"__Item[15∈2]
ᐸ14ᐳ"\]:::itemplan - PgSelectRows14 ==> __Item15 - PgSelectSingle16{{"PgSelectSingle[16∈2]
ᐸmessagesᐳ"}}:::plan - __Item15 --> PgSelectSingle16 - PgCursor18{{"PgCursor[18∈3]"}}:::plan - PgSelectSingle16 & Access17 --> PgCursor18 - PgSelect21[["PgSelect[21∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object11 & PgClassExpression20 --> PgSelect21 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle16 --> PgClassExpression19 - PgSelectSingle16 --> PgClassExpression20 - First25{{"First[25∈3]"}}:::plan - PgSelectRows26[["PgSelectRows[26∈3]"]]:::plan - PgSelectRows26 --> First25 - PgSelect21 --> PgSelectRows26 - PgSelectSingle27{{"PgSelectSingle[27∈3]
ᐸusersᐳ"}}:::plan - First25 --> PgSelectSingle27 - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgClassExpression29{{"PgClassExpression[29∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression29 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor19{{"PgCursor[19∈1]"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle17 & Access18 --> PgCursor19 + PgSelect22[["PgSelect[22∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression21 --> PgSelect22 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan + PgSelectRows15 ==> __Item16 + __Item16 --> PgSelectSingle17 + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle17 --> PgClassExpression20 + PgSelectSingle17 --> PgClassExpression21 + First26{{"First[26∈1]"}}:::plan + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelectRows27 --> First26 + PgSelect22 --> PgSelectRows27 + PgSelectSingle28{{"PgSelectSingle[28∈1]
ᐸusersᐳ"}}:::plan + First26 --> PgSelectSingle28 + PgClassExpression29{{"PgClassExpression[29∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression29 + PgClassExpression30{{"PgClassExpression[30∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression30 %% define steps subgraph "Buckets for queries/connections/basics" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11, 12, 32
2: Lambda[13]
3: PgSelect[14], PgSelect[53]
ᐳ: 18, 34, 35, 36, 39, 40
4: PgSelectRows[15], PgSelectRows[55]
ᐳ: 42, 44, 46, 48, 50, 52, 54, 56, 57"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access9,Access10,Object11,Connection12 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 11, 12, 6

ROOT Connectionᐸ8ᐳ[12]
1: PgSelect[13], PgSelect[53]
ᐳ: 31, 17, 34, 35, 36, 39, 40
2: PgSelectRows[14], PgSelectRows[55]
ᐳ: 42, 44, 46, 48, 50, 52, 54, 56, 57"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access9,Access10,Object11,Connection12,Lambda13,PgSelect14,PgSelectRows15,Access18,PgPageInfo32,Access34,Object35,Lambda36,Object39,Lambda40,First42,PgSelectSingle44,PgCursor46,Last48,PgSelectSingle50,PgCursor52,PgSelect53,First54,PgSelectRows55,PgSelectSingle56,PgClassExpression57 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 18, 11

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 19, 20, 21
2: PgSelect[22]
3: PgSelectRows[27]
ᐳ: 26, 28, 29, 30"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect13,PgSelectRows14,Access17,PgPageInfo31,Access34,Object35,Lambda36,Object39,Lambda40,First42,PgSelectSingle44,PgCursor46,Last48,PgSelectSingle50,PgCursor52,PgSelect53,First54,PgSelectRows55,PgSelectSingle56,PgClassExpression57 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 17, 11

ROOT __Item{2}ᐸ14ᐳ[15]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item15,PgSelectSingle16 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 16, 17, 11

ROOT PgSelectSingle{2}ᐸmessagesᐳ[16]
1:
ᐳ: 18, 19, 20
2: PgSelect[21]
3: PgSelectRows[26]
ᐳ: First[25], PgSelectSingle[27]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor18,PgClassExpression19,PgClassExpression20,PgSelect21,First25,PgSelectRows26,PgSelectSingle27 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 27

ROOT PgSelectSingle{3}ᐸusersᐳ[27]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression28,PgClassExpression29 bucket4 + class Bucket1,__Item16,PgSelectSingle17,PgCursor19,PgClassExpression20,PgClassExpression21,PgSelect22,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression29,PgClassExpression30 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/basics.sql b/grafast/dataplan-pg/__tests__/queries/connections/basics.sql index acf355d0ab..b24eca26e1 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/basics.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/basics.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) order by __messages__."id" asc; @@ -16,9 +16,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/empty.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/empty.deopt.mermaid index e073c89b70..89891c73b5 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/empty.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/empty.deopt.mermaid @@ -9,61 +9,58 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda24[["Lambda[24∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant7 --> Lambda24 + PgPageInfo26{{"PgPageInfo[26∈0] ➊"}}:::plan + Connection22 --> PgPageInfo26 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect24[["PgSelect[24∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - Object33{{"Object[33∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access28{{"Access[28∈3]
ᐸ24.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access28 --> Object33 - Object29{{"Object[29∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access28 --> Object29 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgPageInfo25{{"PgPageInfo[25∈3] ➊"}}:::plan - Connection22 --> PgPageInfo25 - PgSelect24 --> Access28 - Lambda30{{"Lambda[30∈3]
ᐸhasNextPageCbᐳ"}}:::plan + PgSelect25[["PgSelect[25∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda24 -->|rejectNull| PgSelect25 + Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect25 + Object34{{"Object[34∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access28{{"Access[28∈1]
ᐸ25.hasMoreᐳ"}}:::plan + Access28 --> Object34 + Object29{{"Object[29∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access28 --> Object29 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression17 + PgSelectSingle15 --> PgClassExpression23 + PgSelect25 --> Access28 + Lambda30{{"Lambda[30∈1]
ᐸhasNextPageCbᐳ"}}:::plan Object29 --> Lambda30 - Lambda34{{"Lambda[34∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object33 --> Lambda34 + Lambda35{{"Lambda[35∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object34 --> Lambda35 %% define steps subgraph "Buckets for queries/connections/empty" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11, 22, 26
2: Lambda[12], Lambda[24]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection22,Lambda24,PgPageInfo26 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 24, 22, 6, 26

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 17, 23
2: PgSelect[25]
ᐳ: 28, 29, 30, 34, 35"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23, 25
2: PgSelect[24]
ᐳ: 28, 29, 30, 33, 34"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect24,PgPageInfo25,Access28,Object29,Lambda30,Object33,Lambda34 bucket3 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression17,PgClassExpression23,PgSelect25,Access28,Object29,Lambda30,Object34,Lambda35 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/empty.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/empty.deopt.sql index 98c7c8c12f..804a453546 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/empty.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/empty.deopt.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/connections/empty.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/empty.mermaid index e073c89b70..89891c73b5 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/empty.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/empty.mermaid @@ -9,61 +9,58 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 + Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Lambda24[["Lambda[24∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant7 --> Lambda24 + PgPageInfo26{{"PgPageInfo[26∈0] ➊"}}:::plan + Connection22 --> PgPageInfo26 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelect24[["PgSelect[24∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__forums__...chived_at”ᐳ"}}:::plan - Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect24 - Object33{{"Object[33∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access28{{"Access[28∈3]
ᐸ24.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access28 --> Object33 - Object29{{"Object[29∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access28 --> Object29 - PgSelectSingle14 --> PgClassExpression17 - PgSelectSingle14 --> PgClassExpression23 - PgPageInfo25{{"PgPageInfo[25∈3] ➊"}}:::plan - Connection22 --> PgPageInfo25 - PgSelect24 --> Access28 - Lambda30{{"Lambda[30∈3]
ᐸhasNextPageCbᐳ"}}:::plan + PgSelect25[["PgSelect[25∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda24 -->|rejectNull| PgSelect25 + Object11 & PgClassExpression17 & PgClassExpression23 & Connection22 --> PgSelect25 + Object34{{"Object[34∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access28{{"Access[28∈1]
ᐸ25.hasMoreᐳ"}}:::plan + Access28 --> Object34 + Object29{{"Object[29∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access28 --> Object29 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression17 + PgSelectSingle15 --> PgClassExpression23 + PgSelect25 --> Access28 + Lambda30{{"Lambda[30∈1]
ᐸhasNextPageCbᐳ"}}:::plan Object29 --> Lambda30 - Lambda34{{"Lambda[34∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object33 --> Lambda34 + Lambda35{{"Lambda[35∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object34 --> Lambda35 %% define steps subgraph "Buckets for queries/connections/empty" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 22, 11
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11, 22, 26
2: Lambda[12], Lambda[24]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect8,Access9,Access10,Object11,PgSelectRows12,Connection22 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11, 22, 6

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Connection22,Lambda24,PgPageInfo26 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 24, 22, 6, 26

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 17, 23
2: PgSelect[25]
ᐳ: 28, 29, 30, 34, 35"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 11, 22, 6

ROOT Connectionᐸ18ᐳ[22]
1:
ᐳ: 17, 23, 25
2: PgSelect[24]
ᐳ: 28, 29, 30, 33, 34"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression23,PgSelect24,PgPageInfo25,Access28,Object29,Lambda30,Object33,Lambda34 bucket3 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression17,PgClassExpression23,PgSelect25,Access28,Object29,Lambda30,Object34,Lambda35 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/empty.sql b/grafast/dataplan-pg/__tests__/queries/connections/empty.sql index 98c7c8c12f..804a453546 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/empty.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/empty.sql @@ -5,9 +5,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/connections/order.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/order.deopt.mermaid index 26f162cf4a..f65724d761 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/order.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/order.deopt.mermaid @@ -9,101 +9,93 @@ graph TD %% plan dependencies - Object15{{"Object[15∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access14{{"Access[14∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access13 & Access14 --> Object15 + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ5ᐳ"}}:::plan + Lambda16 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Constant61 --> PgSelect17 + Object42{{"Object[42∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access37{{"Access[37∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant61 & Access37 --> Object42 + Object38{{"Object[38∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant61 & Access37 --> Object38 + PgSelect56[["PgSelect[56∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda16 -->|rejectNull| PgSelect56 + Object13 & Connection14 --> PgSelect56 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 + Constant61 --> Connection14 + PgCursor49{{"PgCursor[49∈0] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle47 & Access21 --> PgCursor49 + PgCursor55{{"PgCursor[55∈0] ➊"}}:::plan + PgSelectSingle53{{"PgSelectSingle[53∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle53 & Access21 --> PgCursor55 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access13 - __Value2 --> Access14 - Connection16{{"Connection[16∈0] ➊
ᐸ12ᐳ"}}:::plan - Constant62{{"Constant[62∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant62 --> Connection16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Object43{{"Object[43∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access38{{"Access[38∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant62 & Constant6 & Constant6 & Access38 --> Object43 - PgSelect17[["PgSelect[17∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object15 & Connection16 & Constant62 --> PgSelect17 - Object39{{"Object[39∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant62 & Constant6 & Access38 --> Object39 - PgCursor50{{"PgCursor[50∈1] ➊"}}:::plan - PgSelectSingle48{{"PgSelectSingle[48∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan - PgSelectSingle48 & Access21 --> PgCursor50 - PgCursor56{{"PgCursor[56∈1] ➊"}}:::plan - PgSelectSingle54{{"PgSelectSingle[54∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle54 & Access21 --> PgCursor56 - PgSelect57[["PgSelect[57∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object15 & Connection16 --> PgSelect57 - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan + __Value2 --> Access11 + __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan PgSelect17 --> PgSelectRows18 PgSelect17 --> Access21 - PgPageInfo35{{"PgPageInfo[35∈1] ➊"}}:::plan - Connection16 --> PgPageInfo35 - PgSelect17 --> Access38 - Lambda40{{"Lambda[40∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object39 --> Lambda40 - Lambda44{{"Lambda[44∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object43 --> Lambda44 - First46{{"First[46∈1] ➊"}}:::plan - PgSelectRows18 --> First46 - First46 --> PgSelectSingle48 - Last52{{"Last[52∈1] ➊"}}:::plan - PgSelectRows18 --> Last52 - Last52 --> PgSelectSingle54 - First58{{"First[58∈1] ➊"}}:::plan - PgSelectRows59[["PgSelectRows[59∈1] ➊"]]:::plan - PgSelectRows59 --> First58 - PgSelect57 --> PgSelectRows59 - PgSelectSingle60{{"PgSelectSingle[60∈1] ➊
ᐸmessagesᐳ"}}:::plan - First58 --> PgSelectSingle60 - PgClassExpression61{{"PgClassExpression[61∈1] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle60 --> PgClassExpression61 - __Item19[/"__Item[19∈2]
ᐸ18ᐳ"\]:::itemplan + PgPageInfo35{{"PgPageInfo[35∈0] ➊"}}:::plan + Connection14 --> PgPageInfo35 + PgSelect17 --> Access37 + Lambda39{{"Lambda[39∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object38 --> Lambda39 + Lambda43{{"Lambda[43∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object42 --> Lambda43 + First45{{"First[45∈0] ➊"}}:::plan + PgSelectRows18 --> First45 + First45 --> PgSelectSingle47 + Last51{{"Last[51∈0] ➊"}}:::plan + PgSelectRows18 --> Last51 + Last51 --> PgSelectSingle53 + First57{{"First[57∈0] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈0] ➊"]]:::plan + PgSelectRows58 --> First57 + PgSelect56 --> PgSelectRows58 + PgSelectSingle59{{"PgSelectSingle[59∈0] ➊
ᐸmessagesᐳ"}}:::plan + First57 --> PgSelectSingle59 + PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle59 --> PgClassExpression60 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle20 & Access21 --> PgCursor22 + PgSelect25[["PgSelect[25∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object13 & PgClassExpression24 --> PgSelect25 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan PgSelectRows18 ==> __Item19 - PgSelectSingle20{{"PgSelectSingle[20∈2]
ᐸmessagesᐳ"}}:::plan __Item19 --> PgSelectSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgSelectSingle20 & Access21 --> PgCursor22 - PgSelect25[["PgSelect[25∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object15 & PgClassExpression24 --> PgSelect25 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan PgSelectSingle20 --> PgClassExpression23 PgSelectSingle20 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan + First29{{"First[29∈1]"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan PgSelectRows30 --> First29 PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸusersᐳ"}}:::plan + PgSelectSingle31{{"PgSelectSingle[31∈1]
ᐸusersᐳ"}}:::plan First29 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__.”username”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__users__.”username”ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/connections/order" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 61, 13, 14, 35
2: Lambda[16]
3: PgSelect[17], PgSelect[56]
ᐳ: 21, 37, 38, 39, 42, 43
4: PgSelectRows[18], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access13,Access14,Object15,Connection16,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 15, 16, 62, 6

ROOT Connectionᐸ12ᐳ[16]
1: PgSelect[17], PgSelect[57]
ᐳ: 35, 21, 38, 39, 40, 43, 44
2: PgSelectRows[18], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda16,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,Constant61 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: 29, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 15

ROOT __Item{2}ᐸ18ᐳ[19]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 15

ROOT PgSelectSingle{2}ᐸmessagesᐳ[20]
1:
ᐳ: 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{3}ᐸusersᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32,PgClassExpression33 bucket4 + class Bucket1,__Item19,PgSelectSingle20,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/order.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/order.deopt.sql index 1be6142e1f..9259c8b4ff 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/order.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/order.deopt.sql @@ -9,9 +9,9 @@ left outer join app_public.users as __author__ on (__messages__."author_id" = __author__."id") where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) order by __author__.username desc, __messages__.body asc, __messages__."id" asc limit 6; @@ -23,9 +23,9 @@ left outer join app_public.users as __author__ on (__messages__."author_id" = __author__."id") where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/order.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/order.mermaid index 26f162cf4a..f65724d761 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/order.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/order.mermaid @@ -9,101 +9,93 @@ graph TD %% plan dependencies - Object15{{"Object[15∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access14{{"Access[14∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access13 & Access14 --> Object15 + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ5ᐳ"}}:::plan + Lambda16 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Constant61 --> PgSelect17 + Object42{{"Object[42∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access37{{"Access[37∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant61 & Access37 --> Object42 + Object38{{"Object[38∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant61 & Access37 --> Object38 + PgSelect56[["PgSelect[56∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda16 -->|rejectNull| PgSelect56 + Object13 & Connection14 --> PgSelect56 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 + Constant61 --> Connection14 + PgCursor49{{"PgCursor[49∈0] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle47 & Access21 --> PgCursor49 + PgCursor55{{"PgCursor[55∈0] ➊"}}:::plan + PgSelectSingle53{{"PgSelectSingle[53∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle53 & Access21 --> PgCursor55 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access13 - __Value2 --> Access14 - Connection16{{"Connection[16∈0] ➊
ᐸ12ᐳ"}}:::plan - Constant62{{"Constant[62∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant62 --> Connection16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Object43{{"Object[43∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access38{{"Access[38∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant62 & Constant6 & Constant6 & Access38 --> Object43 - PgSelect17[["PgSelect[17∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object15 & Connection16 & Constant62 --> PgSelect17 - Object39{{"Object[39∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant62 & Constant6 & Access38 --> Object39 - PgCursor50{{"PgCursor[50∈1] ➊"}}:::plan - PgSelectSingle48{{"PgSelectSingle[48∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan - PgSelectSingle48 & Access21 --> PgCursor50 - PgCursor56{{"PgCursor[56∈1] ➊"}}:::plan - PgSelectSingle54{{"PgSelectSingle[54∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle54 & Access21 --> PgCursor56 - PgSelect57[["PgSelect[57∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object15 & Connection16 --> PgSelect57 - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan + __Value2 --> Access11 + __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan PgSelect17 --> PgSelectRows18 PgSelect17 --> Access21 - PgPageInfo35{{"PgPageInfo[35∈1] ➊"}}:::plan - Connection16 --> PgPageInfo35 - PgSelect17 --> Access38 - Lambda40{{"Lambda[40∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object39 --> Lambda40 - Lambda44{{"Lambda[44∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object43 --> Lambda44 - First46{{"First[46∈1] ➊"}}:::plan - PgSelectRows18 --> First46 - First46 --> PgSelectSingle48 - Last52{{"Last[52∈1] ➊"}}:::plan - PgSelectRows18 --> Last52 - Last52 --> PgSelectSingle54 - First58{{"First[58∈1] ➊"}}:::plan - PgSelectRows59[["PgSelectRows[59∈1] ➊"]]:::plan - PgSelectRows59 --> First58 - PgSelect57 --> PgSelectRows59 - PgSelectSingle60{{"PgSelectSingle[60∈1] ➊
ᐸmessagesᐳ"}}:::plan - First58 --> PgSelectSingle60 - PgClassExpression61{{"PgClassExpression[61∈1] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle60 --> PgClassExpression61 - __Item19[/"__Item[19∈2]
ᐸ18ᐳ"\]:::itemplan + PgPageInfo35{{"PgPageInfo[35∈0] ➊"}}:::plan + Connection14 --> PgPageInfo35 + PgSelect17 --> Access37 + Lambda39{{"Lambda[39∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object38 --> Lambda39 + Lambda43{{"Lambda[43∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object42 --> Lambda43 + First45{{"First[45∈0] ➊"}}:::plan + PgSelectRows18 --> First45 + First45 --> PgSelectSingle47 + Last51{{"Last[51∈0] ➊"}}:::plan + PgSelectRows18 --> Last51 + Last51 --> PgSelectSingle53 + First57{{"First[57∈0] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈0] ➊"]]:::plan + PgSelectRows58 --> First57 + PgSelect56 --> PgSelectRows58 + PgSelectSingle59{{"PgSelectSingle[59∈0] ➊
ᐸmessagesᐳ"}}:::plan + First57 --> PgSelectSingle59 + PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle59 --> PgClassExpression60 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle20 & Access21 --> PgCursor22 + PgSelect25[["PgSelect[25∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object13 & PgClassExpression24 --> PgSelect25 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan PgSelectRows18 ==> __Item19 - PgSelectSingle20{{"PgSelectSingle[20∈2]
ᐸmessagesᐳ"}}:::plan __Item19 --> PgSelectSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgSelectSingle20 & Access21 --> PgCursor22 - PgSelect25[["PgSelect[25∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object15 & PgClassExpression24 --> PgSelect25 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan PgSelectSingle20 --> PgClassExpression23 PgSelectSingle20 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan + First29{{"First[29∈1]"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan PgSelectRows30 --> First29 PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸusersᐳ"}}:::plan + PgSelectSingle31{{"PgSelectSingle[31∈1]
ᐸusersᐳ"}}:::plan First29 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__.”username”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__users__.”username”ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/connections/order" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 61, 13, 14, 35
2: Lambda[16]
3: PgSelect[17], PgSelect[56]
ᐳ: 21, 37, 38, 39, 42, 43
4: PgSelectRows[18], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access13,Access14,Object15,Connection16,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 15, 16, 62, 6

ROOT Connectionᐸ12ᐳ[16]
1: PgSelect[17], PgSelect[57]
ᐳ: 35, 21, 38, 39, 40, 43, 44
2: PgSelectRows[18], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda16,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,Constant61 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: 29, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 15

ROOT __Item{2}ᐸ18ᐳ[19]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 15

ROOT PgSelectSingle{2}ᐸmessagesᐳ[20]
1:
ᐳ: 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{3}ᐸusersᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32,PgClassExpression33 bucket4 + class Bucket1,__Item19,PgSelectSingle20,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/order.sql b/grafast/dataplan-pg/__tests__/queries/connections/order.sql index 1be6142e1f..9259c8b4ff 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/order.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/order.sql @@ -9,9 +9,9 @@ left outer join app_public.users as __author__ on (__messages__."author_id" = __author__."id") where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) order by __author__.username desc, __messages__.body asc, __messages__."id" asc limit 6; @@ -23,9 +23,9 @@ left outer join app_public.users as __author__ on (__messages__."author_id" = __author__."id") where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.deopt.mermaid index 0a652c959f..21e26b6cb0 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.deopt.mermaid @@ -9,104 +9,96 @@ graph TD %% plan dependencies + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda15[["Lambda[15∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda15 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Lambda16 & Constant61 --> PgSelect17 + Object42{{"Object[42∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access37{{"Access[37∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant61 & Access37 --> Object42 + Constant61 & Lambda16 --> Connection14 + Object38{{"Object[38∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant61 & Access37 --> Object38 + PgSelect56[["PgSelect[56∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda15 -->|rejectNull| PgSelect56 + Object13 & Connection14 --> PgSelect56 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant61 & Lambda15 --> Connection14 + PgCursor49{{"PgCursor[49∈0] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle47 & Access21 --> PgCursor49 + PgCursor55{{"PgCursor[55∈0] ➊"}}:::plan + PgSelectSingle53{{"PgSelectSingle[53∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle53 & Access21 --> PgCursor55 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda15 Constant62{{"Constant[62∈0] ➊
ᐸ'WyJmMGIyOGM5NGMxIiwiY2E3MGNhNzAtMDAwMC0wMDAwLTAwMDAtYjBiMDAᐳ"}}:::plan - Constant62 --> Lambda15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object13 & Connection14 & Lambda15 & Constant61 --> PgSelect16 - Object42{{"Object[42∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access37{{"Access[37∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant61 & Constant6 & Constant6 & Access37 --> Object42 - Object38{{"Object[38∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant61 & Constant6 & Access37 --> Object38 - PgCursor49{{"PgCursor[49∈1] ➊"}}:::plan - PgSelectSingle47{{"PgSelectSingle[47∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ16.cursorDetailsᐳ"}}:::plan - PgSelectSingle47 & Access20 --> PgCursor49 - PgCursor55{{"PgCursor[55∈1] ➊"}}:::plan - PgSelectSingle53{{"PgSelectSingle[53∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle53 & Access20 --> PgCursor55 - PgSelect56[["PgSelect[56∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object13 & Connection14 --> PgSelect56 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - PgSelect16 --> Access20 - PgPageInfo34{{"PgPageInfo[34∈1] ➊"}}:::plan - Connection14 --> PgPageInfo34 - PgSelect16 --> Access37 - Lambda39{{"Lambda[39∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant62 --> Lambda16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 + PgSelect17 --> Access21 + PgPageInfo35{{"PgPageInfo[35∈0] ➊"}}:::plan + Connection14 --> PgPageInfo35 + PgSelect17 --> Access37 + Lambda39{{"Lambda[39∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object38 --> Lambda39 - Lambda43{{"Lambda[43∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda43{{"Lambda[43∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object42 --> Lambda43 - First45{{"First[45∈1] ➊"}}:::plan - PgSelectRows17 --> First45 + First45{{"First[45∈0] ➊"}}:::plan + PgSelectRows18 --> First45 First45 --> PgSelectSingle47 - Last51{{"Last[51∈1] ➊"}}:::plan - PgSelectRows17 --> Last51 + Last51{{"Last[51∈0] ➊"}}:::plan + PgSelectRows18 --> Last51 Last51 --> PgSelectSingle53 - First57{{"First[57∈1] ➊"}}:::plan - PgSelectRows58[["PgSelectRows[58∈1] ➊"]]:::plan + First57{{"First[57∈0] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈0] ➊"]]:::plan PgSelectRows58 --> First57 PgSelect56 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle59{{"PgSelectSingle[59∈0] ➊
ᐸmessagesᐳ"}}:::plan First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle59 --> PgClassExpression60 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸmessagesᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgCursor21{{"PgCursor[21∈3]"}}:::plan - PgSelectSingle19 & Access20 --> PgCursor21 - PgSelect24[["PgSelect[24∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object13 & PgClassExpression23 --> PgSelect24 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression22 - PgSelectSingle19 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan - PgSelectRows29 --> First28 - PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸusersᐳ"}}:::plan - First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle20 & Access21 --> PgCursor22 + PgSelect25[["PgSelect[25∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object13 & PgClassExpression24 --> PgSelect25 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + __Item19 --> PgSelectSingle20 + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression23 + PgSelectSingle20 --> PgClassExpression24 + First29{{"First[29∈1]"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan + PgSelectRows30 --> First29 + PgSelect25 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1]
ᐸusersᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/connections/pagination-after" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 61, 62, 13, 16, 14, 35
2: Lambda[15]
3: PgSelect[17], PgSelect[56]
ᐳ: 21, 37, 38, 39, 42, 43
4: PgSelectRows[18], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access11,Access12,Object13,Connection14,Lambda15,Constant61,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 15, 61, 6

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[16], PgSelect[56]
ᐳ: 34, 20, 37, 38, 39, 42, 43
2: PgSelectRows[17], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda15,Lambda16,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,Constant61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: 29, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17,Access20,PgPageInfo34,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 20, 13

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19, 20, 13

ROOT PgSelectSingle{2}ᐸmessagesᐳ[19]
1:
ᐳ: 21, 22, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor21,PgClassExpression22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸusersᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression31,PgClassExpression32 bucket4 + class Bucket1,__Item19,PgSelectSingle20,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.deopt.sql index 2a6f383f5f..f796e44008 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.deopt.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" > $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.mermaid index 0a652c959f..21e26b6cb0 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.mermaid @@ -9,104 +9,96 @@ graph TD %% plan dependencies + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda15[["Lambda[15∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda15 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Lambda16 & Constant61 --> PgSelect17 + Object42{{"Object[42∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access37{{"Access[37∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant61 & Access37 --> Object42 + Constant61 & Lambda16 --> Connection14 + Object38{{"Object[38∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant61 & Access37 --> Object38 + PgSelect56[["PgSelect[56∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda15 -->|rejectNull| PgSelect56 + Object13 & Connection14 --> PgSelect56 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant61 & Lambda15 --> Connection14 + PgCursor49{{"PgCursor[49∈0] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle47 & Access21 --> PgCursor49 + PgCursor55{{"PgCursor[55∈0] ➊"}}:::plan + PgSelectSingle53{{"PgSelectSingle[53∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle53 & Access21 --> PgCursor55 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda15 Constant62{{"Constant[62∈0] ➊
ᐸ'WyJmMGIyOGM5NGMxIiwiY2E3MGNhNzAtMDAwMC0wMDAwLTAwMDAtYjBiMDAᐳ"}}:::plan - Constant62 --> Lambda15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object13 & Connection14 & Lambda15 & Constant61 --> PgSelect16 - Object42{{"Object[42∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access37{{"Access[37∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant61 & Constant6 & Constant6 & Access37 --> Object42 - Object38{{"Object[38∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant61 & Constant6 & Access37 --> Object38 - PgCursor49{{"PgCursor[49∈1] ➊"}}:::plan - PgSelectSingle47{{"PgSelectSingle[47∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ16.cursorDetailsᐳ"}}:::plan - PgSelectSingle47 & Access20 --> PgCursor49 - PgCursor55{{"PgCursor[55∈1] ➊"}}:::plan - PgSelectSingle53{{"PgSelectSingle[53∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle53 & Access20 --> PgCursor55 - PgSelect56[["PgSelect[56∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object13 & Connection14 --> PgSelect56 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - PgSelect16 --> Access20 - PgPageInfo34{{"PgPageInfo[34∈1] ➊"}}:::plan - Connection14 --> PgPageInfo34 - PgSelect16 --> Access37 - Lambda39{{"Lambda[39∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant62 --> Lambda16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 + PgSelect17 --> Access21 + PgPageInfo35{{"PgPageInfo[35∈0] ➊"}}:::plan + Connection14 --> PgPageInfo35 + PgSelect17 --> Access37 + Lambda39{{"Lambda[39∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object38 --> Lambda39 - Lambda43{{"Lambda[43∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda43{{"Lambda[43∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object42 --> Lambda43 - First45{{"First[45∈1] ➊"}}:::plan - PgSelectRows17 --> First45 + First45{{"First[45∈0] ➊"}}:::plan + PgSelectRows18 --> First45 First45 --> PgSelectSingle47 - Last51{{"Last[51∈1] ➊"}}:::plan - PgSelectRows17 --> Last51 + Last51{{"Last[51∈0] ➊"}}:::plan + PgSelectRows18 --> Last51 Last51 --> PgSelectSingle53 - First57{{"First[57∈1] ➊"}}:::plan - PgSelectRows58[["PgSelectRows[58∈1] ➊"]]:::plan + First57{{"First[57∈0] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈0] ➊"]]:::plan PgSelectRows58 --> First57 PgSelect56 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle59{{"PgSelectSingle[59∈0] ➊
ᐸmessagesᐳ"}}:::plan First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle59 --> PgClassExpression60 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸmessagesᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgCursor21{{"PgCursor[21∈3]"}}:::plan - PgSelectSingle19 & Access20 --> PgCursor21 - PgSelect24[["PgSelect[24∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object13 & PgClassExpression23 --> PgSelect24 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression22 - PgSelectSingle19 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan - PgSelectRows29 --> First28 - PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸusersᐳ"}}:::plan - First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle20 & Access21 --> PgCursor22 + PgSelect25[["PgSelect[25∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object13 & PgClassExpression24 --> PgSelect25 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + __Item19 --> PgSelectSingle20 + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression23 + PgSelectSingle20 --> PgClassExpression24 + First29{{"First[29∈1]"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan + PgSelectRows30 --> First29 + PgSelect25 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1]
ᐸusersᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/connections/pagination-after" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 61, 62, 13, 16, 14, 35
2: Lambda[15]
3: PgSelect[17], PgSelect[56]
ᐳ: 21, 37, 38, 39, 42, 43
4: PgSelectRows[18], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access11,Access12,Object13,Connection14,Lambda15,Constant61,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 15, 61, 6

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[16], PgSelect[56]
ᐳ: 34, 20, 37, 38, 39, 42, 43
2: PgSelectRows[17], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda15,Lambda16,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,Constant61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: 29, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17,Access20,PgPageInfo34,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 20, 13

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19, 20, 13

ROOT PgSelectSingle{2}ᐸmessagesᐳ[19]
1:
ᐳ: 21, 22, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor21,PgClassExpression22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸusersᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression31,PgClassExpression32 bucket4 + class Bucket1,__Item19,PgSelectSingle20,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.sql index 2a6f383f5f..f796e44008 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-after.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" > $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.deopt.mermaid index 54d2306dd5..1d03a8fba5 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.deopt.mermaid @@ -9,104 +9,96 @@ graph TD %% plan dependencies + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda15[["Lambda[15∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda15 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Lambda16 & Constant61 --> PgSelect17 + Object42{{"Object[42∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access37{{"Access[37∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant61 & Access37 --> Object42 + Constant61 & Lambda16 --> Connection14 + Object38{{"Object[38∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant61 & Access37 --> Object38 + PgSelect56[["PgSelect[56∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda15 -->|rejectNull| PgSelect56 + Object13 & Connection14 --> PgSelect56 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant61 & Lambda15 --> Connection14 + PgCursor49{{"PgCursor[49∈0] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle47 & Access21 --> PgCursor49 + PgCursor55{{"PgCursor[55∈0] ➊"}}:::plan + PgSelectSingle53{{"PgSelectSingle[53∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle53 & Access21 --> PgCursor55 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda15 Constant62{{"Constant[62∈0] ➊
ᐸ'WyJmMGIyOGM5NGMxIiwiZjE3MGYxNzAtMDAwMC0wMDAwLTAwMDAtY2VjMTEᐳ"}}:::plan - Constant62 --> Lambda15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object13 & Connection14 & Lambda15 & Constant61 --> PgSelect16 - Object42{{"Object[42∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access37{{"Access[37∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant6 & Constant61 & Constant6 & Access37 --> Object42 - Object38{{"Object[38∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant61 & Access37 --> Object38 - PgCursor49{{"PgCursor[49∈1] ➊"}}:::plan - PgSelectSingle47{{"PgSelectSingle[47∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ16.cursorDetailsᐳ"}}:::plan - PgSelectSingle47 & Access20 --> PgCursor49 - PgCursor55{{"PgCursor[55∈1] ➊"}}:::plan - PgSelectSingle53{{"PgSelectSingle[53∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle53 & Access20 --> PgCursor55 - PgSelect56[["PgSelect[56∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object13 & Connection14 --> PgSelect56 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - PgSelect16 --> Access20 - PgPageInfo34{{"PgPageInfo[34∈1] ➊"}}:::plan - Connection14 --> PgPageInfo34 - PgSelect16 --> Access37 - Lambda39{{"Lambda[39∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant62 --> Lambda16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 + PgSelect17 --> Access21 + PgPageInfo35{{"PgPageInfo[35∈0] ➊"}}:::plan + Connection14 --> PgPageInfo35 + PgSelect17 --> Access37 + Lambda39{{"Lambda[39∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object38 --> Lambda39 - Lambda43{{"Lambda[43∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda43{{"Lambda[43∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object42 --> Lambda43 - First45{{"First[45∈1] ➊"}}:::plan - PgSelectRows17 --> First45 + First45{{"First[45∈0] ➊"}}:::plan + PgSelectRows18 --> First45 First45 --> PgSelectSingle47 - Last51{{"Last[51∈1] ➊"}}:::plan - PgSelectRows17 --> Last51 + Last51{{"Last[51∈0] ➊"}}:::plan + PgSelectRows18 --> Last51 Last51 --> PgSelectSingle53 - First57{{"First[57∈1] ➊"}}:::plan - PgSelectRows58[["PgSelectRows[58∈1] ➊"]]:::plan + First57{{"First[57∈0] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈0] ➊"]]:::plan PgSelectRows58 --> First57 PgSelect56 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle59{{"PgSelectSingle[59∈0] ➊
ᐸmessagesᐳ"}}:::plan First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle59 --> PgClassExpression60 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸmessagesᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgCursor21{{"PgCursor[21∈3]"}}:::plan - PgSelectSingle19 & Access20 --> PgCursor21 - PgSelect24[["PgSelect[24∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object13 & PgClassExpression23 --> PgSelect24 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression22 - PgSelectSingle19 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan - PgSelectRows29 --> First28 - PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸusersᐳ"}}:::plan - First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle20 & Access21 --> PgCursor22 + PgSelect25[["PgSelect[25∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object13 & PgClassExpression24 --> PgSelect25 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + __Item19 --> PgSelectSingle20 + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression23 + PgSelectSingle20 --> PgClassExpression24 + First29{{"First[29∈1]"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan + PgSelectRows30 --> First29 + PgSelect25 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1]
ᐸusersᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/connections/pagination-before-end-last" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 61, 62, 13, 16, 14, 35
2: Lambda[15]
3: PgSelect[17], PgSelect[56]
ᐳ: 21, 37, 38, 39, 42, 43
4: PgSelectRows[18], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access11,Access12,Object13,Connection14,Lambda15,Constant61,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 15, 61, 6

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[16], PgSelect[56]
ᐳ: 34, 20, 37, 38, 39, 42, 43
2: PgSelectRows[17], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda15,Lambda16,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,Constant61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: 29, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17,Access20,PgPageInfo34,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 20, 13

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19, 20, 13

ROOT PgSelectSingle{2}ᐸmessagesᐳ[19]
1:
ᐳ: 21, 22, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor21,PgClassExpression22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸusersᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression31,PgClassExpression32 bucket4 + class Bucket1,__Item19,PgSelectSingle20,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.deopt.sql index 863ed78dee..e359584540 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.deopt.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.mermaid index 54d2306dd5..1d03a8fba5 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.mermaid @@ -9,104 +9,96 @@ graph TD %% plan dependencies + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda15[["Lambda[15∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda15 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Lambda16 & Constant61 --> PgSelect17 + Object42{{"Object[42∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access37{{"Access[37∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant61 & Access37 --> Object42 + Constant61 & Lambda16 --> Connection14 + Object38{{"Object[38∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant61 & Access37 --> Object38 + PgSelect56[["PgSelect[56∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda15 -->|rejectNull| PgSelect56 + Object13 & Connection14 --> PgSelect56 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant61 & Lambda15 --> Connection14 + PgCursor49{{"PgCursor[49∈0] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle47 & Access21 --> PgCursor49 + PgCursor55{{"PgCursor[55∈0] ➊"}}:::plan + PgSelectSingle53{{"PgSelectSingle[53∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle53 & Access21 --> PgCursor55 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda15 Constant62{{"Constant[62∈0] ➊
ᐸ'WyJmMGIyOGM5NGMxIiwiZjE3MGYxNzAtMDAwMC0wMDAwLTAwMDAtY2VjMTEᐳ"}}:::plan - Constant62 --> Lambda15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object13 & Connection14 & Lambda15 & Constant61 --> PgSelect16 - Object42{{"Object[42∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access37{{"Access[37∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant6 & Constant61 & Constant6 & Access37 --> Object42 - Object38{{"Object[38∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant61 & Access37 --> Object38 - PgCursor49{{"PgCursor[49∈1] ➊"}}:::plan - PgSelectSingle47{{"PgSelectSingle[47∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ16.cursorDetailsᐳ"}}:::plan - PgSelectSingle47 & Access20 --> PgCursor49 - PgCursor55{{"PgCursor[55∈1] ➊"}}:::plan - PgSelectSingle53{{"PgSelectSingle[53∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle53 & Access20 --> PgCursor55 - PgSelect56[["PgSelect[56∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object13 & Connection14 --> PgSelect56 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - PgSelect16 --> Access20 - PgPageInfo34{{"PgPageInfo[34∈1] ➊"}}:::plan - Connection14 --> PgPageInfo34 - PgSelect16 --> Access37 - Lambda39{{"Lambda[39∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant62 --> Lambda16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 + PgSelect17 --> Access21 + PgPageInfo35{{"PgPageInfo[35∈0] ➊"}}:::plan + Connection14 --> PgPageInfo35 + PgSelect17 --> Access37 + Lambda39{{"Lambda[39∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object38 --> Lambda39 - Lambda43{{"Lambda[43∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda43{{"Lambda[43∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object42 --> Lambda43 - First45{{"First[45∈1] ➊"}}:::plan - PgSelectRows17 --> First45 + First45{{"First[45∈0] ➊"}}:::plan + PgSelectRows18 --> First45 First45 --> PgSelectSingle47 - Last51{{"Last[51∈1] ➊"}}:::plan - PgSelectRows17 --> Last51 + Last51{{"Last[51∈0] ➊"}}:::plan + PgSelectRows18 --> Last51 Last51 --> PgSelectSingle53 - First57{{"First[57∈1] ➊"}}:::plan - PgSelectRows58[["PgSelectRows[58∈1] ➊"]]:::plan + First57{{"First[57∈0] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈0] ➊"]]:::plan PgSelectRows58 --> First57 PgSelect56 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle59{{"PgSelectSingle[59∈0] ➊
ᐸmessagesᐳ"}}:::plan First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle59 --> PgClassExpression60 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸmessagesᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgCursor21{{"PgCursor[21∈3]"}}:::plan - PgSelectSingle19 & Access20 --> PgCursor21 - PgSelect24[["PgSelect[24∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object13 & PgClassExpression23 --> PgSelect24 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression22 - PgSelectSingle19 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan - PgSelectRows29 --> First28 - PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸusersᐳ"}}:::plan - First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle20 & Access21 --> PgCursor22 + PgSelect25[["PgSelect[25∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object13 & PgClassExpression24 --> PgSelect25 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + __Item19 --> PgSelectSingle20 + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression23 + PgSelectSingle20 --> PgClassExpression24 + First29{{"First[29∈1]"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan + PgSelectRows30 --> First29 + PgSelect25 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1]
ᐸusersᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/connections/pagination-before-end-last" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 61, 62, 13, 16, 14, 35
2: Lambda[15]
3: PgSelect[17], PgSelect[56]
ᐳ: 21, 37, 38, 39, 42, 43
4: PgSelectRows[18], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access11,Access12,Object13,Connection14,Lambda15,Constant61,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 15, 61, 6

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[16], PgSelect[56]
ᐳ: 34, 20, 37, 38, 39, 42, 43
2: PgSelectRows[17], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda15,Lambda16,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,Constant61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: 29, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17,Access20,PgPageInfo34,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 20, 13

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19, 20, 13

ROOT PgSelectSingle{2}ᐸmessagesᐳ[19]
1:
ᐳ: 21, 22, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor21,PgClassExpression22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸusersᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression31,PgClassExpression32 bucket4 + class Bucket1,__Item19,PgSelectSingle20,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.sql index 863ed78dee..e359584540 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.deopt.mermaid index a20e58221f..c260eef0e2 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.deopt.mermaid @@ -9,106 +9,98 @@ graph TD %% plan dependencies + PgSelect18[["PgSelect[18∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan + Lambda17{{"Lambda[17∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda16 -->|rejectNull| PgSelect18 + Object14 & Connection15 & Lambda17 & Constant62 --> PgSelect18 + Object43{{"Object[43∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access38{{"Access[38∈0] ➊
ᐸ18.hasMoreᐳ"}}:::plan + Constant62 & Access38 --> Object43 + Constant62 & Lambda17 --> Connection15 + Object39{{"Object[39∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant62 & Access38 --> Object39 + PgSelect57[["PgSelect[57∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda16 -->|rejectNull| PgSelect57 + Object14 & Connection15 --> PgSelect57 Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant62 & Lambda16 --> Connection15 + PgCursor50{{"PgCursor[50∈0] ➊"}}:::plan + PgSelectSingle48{{"PgSelectSingle[48∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access22{{"Access[22∈0] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan + PgSelectSingle48 & Access22 --> PgCursor50 + PgCursor56{{"PgCursor[56∈0] ➊"}}:::plan + PgSelectSingle54{{"PgSelectSingle[54∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle54 & Access22 --> PgCursor56 Access9{{"Access[9∈0] ➊
ᐸ0.valueᐳ"}}:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 - Access9 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object14 & Connection15 & Lambda16 & Constant62 --> PgSelect17 - Object43{{"Object[43∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access38{{"Access[38∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant6 & Constant62 & Constant6 & Access38 --> Object43 - Object39{{"Object[39∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant62 & Access38 --> Object39 - PgCursor50{{"PgCursor[50∈1] ➊"}}:::plan - PgSelectSingle48{{"PgSelectSingle[48∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan - PgSelectSingle48 & Access21 --> PgCursor50 - PgCursor56{{"PgCursor[56∈1] ➊"}}:::plan - PgSelectSingle54{{"PgSelectSingle[54∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle54 & Access21 --> PgCursor56 - PgSelect57[["PgSelect[57∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object14 & Connection15 --> PgSelect57 - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan - PgSelect17 --> PgSelectRows18 - PgSelect17 --> Access21 - PgPageInfo35{{"PgPageInfo[35∈1] ➊"}}:::plan - Connection15 --> PgPageInfo35 - PgSelect17 --> Access38 - Lambda40{{"Lambda[40∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + Access9 --> Lambda17 + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelect18 --> PgSelectRows19 + PgSelect18 --> Access22 + PgPageInfo36{{"PgPageInfo[36∈0] ➊"}}:::plan + Connection15 --> PgPageInfo36 + PgSelect18 --> Access38 + Lambda40{{"Lambda[40∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object39 --> Lambda40 - Lambda44{{"Lambda[44∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda44{{"Lambda[44∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object43 --> Lambda44 - First46{{"First[46∈1] ➊"}}:::plan - PgSelectRows18 --> First46 + First46{{"First[46∈0] ➊"}}:::plan + PgSelectRows19 --> First46 First46 --> PgSelectSingle48 - Last52{{"Last[52∈1] ➊"}}:::plan - PgSelectRows18 --> Last52 + Last52{{"Last[52∈0] ➊"}}:::plan + PgSelectRows19 --> Last52 Last52 --> PgSelectSingle54 - First58{{"First[58∈1] ➊"}}:::plan - PgSelectRows59[["PgSelectRows[59∈1] ➊"]]:::plan + First58{{"First[58∈0] ➊"}}:::plan + PgSelectRows59[["PgSelectRows[59∈0] ➊"]]:::plan PgSelectRows59 --> First58 PgSelect57 --> PgSelectRows59 - PgSelectSingle60{{"PgSelectSingle[60∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle60{{"PgSelectSingle[60∈0] ➊
ᐸmessagesᐳ"}}:::plan First58 --> PgSelectSingle60 - PgClassExpression61{{"PgClassExpression[61∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle60 --> PgClassExpression61 - __Item19[/"__Item[19∈2]
ᐸ18ᐳ"\]:::itemplan - PgSelectRows18 ==> __Item19 - PgSelectSingle20{{"PgSelectSingle[20∈2]
ᐸmessagesᐳ"}}:::plan - __Item19 --> PgSelectSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgSelectSingle20 & Access21 --> PgCursor22 - PgSelect25[["PgSelect[25∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object14 & PgClassExpression24 --> PgSelect25 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression23 - PgSelectSingle20 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸusersᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression33 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor23{{"PgCursor[23∈1]"}}:::plan + PgSelectSingle21{{"PgSelectSingle[21∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle21 & Access22 --> PgCursor23 + PgSelect26[["PgSelect[26∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object14 & PgClassExpression25 --> PgSelect26 + __Item20[/"__Item[20∈1]
ᐸ19ᐳ"\]:::itemplan + PgSelectRows19 ==> __Item20 + __Item20 --> PgSelectSingle21 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression24 + PgSelectSingle21 --> PgClassExpression25 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect26 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸusersᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 %% define steps subgraph "Buckets for queries/connections/pagination-before-end-last.variables" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 12, 13, 62, 14, 17, 15, 36
2: Lambda[16]
3: PgSelect[18], PgSelect[57]
ᐳ: 22, 38, 39, 40, 43, 44
4: PgSelectRows[19], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Constant6,Access9,Access12,Access13,Object14,Connection15,Lambda16,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 62, 6

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[17], PgSelect[57]
ᐳ: 35, 21, 38, 39, 40, 43, 44
2: PgSelectRows[18], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Constant7,Access9,Access12,Access13,Object14,Connection15,Lambda16,Lambda17,PgSelect18,PgSelectRows19,Access22,PgPageInfo36,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 22, 14

ROOT __Item{1}ᐸ19ᐳ[20]
1:
ᐳ: 21, 23, 24, 25
2: PgSelect[26]
3: PgSelectRows[31]
ᐳ: 30, 32, 33, 34"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 14

ROOT __Item{2}ᐸ18ᐳ[19]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 14

ROOT PgSelectSingle{2}ᐸmessagesᐳ[20]
1:
ᐳ: 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{3}ᐸusersᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32,PgClassExpression33 bucket4 + class Bucket1,__Item20,PgSelectSingle21,PgCursor23,PgClassExpression24,PgClassExpression25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.deopt.sql index 863ed78dee..e359584540 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.deopt.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.mermaid index a20e58221f..c260eef0e2 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.mermaid @@ -9,106 +9,98 @@ graph TD %% plan dependencies + PgSelect18[["PgSelect[18∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan + Lambda17{{"Lambda[17∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda16 -->|rejectNull| PgSelect18 + Object14 & Connection15 & Lambda17 & Constant62 --> PgSelect18 + Object43{{"Object[43∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access38{{"Access[38∈0] ➊
ᐸ18.hasMoreᐳ"}}:::plan + Constant62 & Access38 --> Object43 + Constant62 & Lambda17 --> Connection15 + Object39{{"Object[39∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant62 & Access38 --> Object39 + PgSelect57[["PgSelect[57∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda16 -->|rejectNull| PgSelect57 + Object14 & Connection15 --> PgSelect57 Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant62 & Lambda16 --> Connection15 + PgCursor50{{"PgCursor[50∈0] ➊"}}:::plan + PgSelectSingle48{{"PgSelectSingle[48∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access22{{"Access[22∈0] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan + PgSelectSingle48 & Access22 --> PgCursor50 + PgCursor56{{"PgCursor[56∈0] ➊"}}:::plan + PgSelectSingle54{{"PgSelectSingle[54∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle54 & Access22 --> PgCursor56 Access9{{"Access[9∈0] ➊
ᐸ0.valueᐳ"}}:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 - Access9 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object14 & Connection15 & Lambda16 & Constant62 --> PgSelect17 - Object43{{"Object[43∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access38{{"Access[38∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant6 & Constant62 & Constant6 & Access38 --> Object43 - Object39{{"Object[39∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant62 & Access38 --> Object39 - PgCursor50{{"PgCursor[50∈1] ➊"}}:::plan - PgSelectSingle48{{"PgSelectSingle[48∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan - PgSelectSingle48 & Access21 --> PgCursor50 - PgCursor56{{"PgCursor[56∈1] ➊"}}:::plan - PgSelectSingle54{{"PgSelectSingle[54∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle54 & Access21 --> PgCursor56 - PgSelect57[["PgSelect[57∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object14 & Connection15 --> PgSelect57 - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan - PgSelect17 --> PgSelectRows18 - PgSelect17 --> Access21 - PgPageInfo35{{"PgPageInfo[35∈1] ➊"}}:::plan - Connection15 --> PgPageInfo35 - PgSelect17 --> Access38 - Lambda40{{"Lambda[40∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + Access9 --> Lambda17 + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelect18 --> PgSelectRows19 + PgSelect18 --> Access22 + PgPageInfo36{{"PgPageInfo[36∈0] ➊"}}:::plan + Connection15 --> PgPageInfo36 + PgSelect18 --> Access38 + Lambda40{{"Lambda[40∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object39 --> Lambda40 - Lambda44{{"Lambda[44∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda44{{"Lambda[44∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object43 --> Lambda44 - First46{{"First[46∈1] ➊"}}:::plan - PgSelectRows18 --> First46 + First46{{"First[46∈0] ➊"}}:::plan + PgSelectRows19 --> First46 First46 --> PgSelectSingle48 - Last52{{"Last[52∈1] ➊"}}:::plan - PgSelectRows18 --> Last52 + Last52{{"Last[52∈0] ➊"}}:::plan + PgSelectRows19 --> Last52 Last52 --> PgSelectSingle54 - First58{{"First[58∈1] ➊"}}:::plan - PgSelectRows59[["PgSelectRows[59∈1] ➊"]]:::plan + First58{{"First[58∈0] ➊"}}:::plan + PgSelectRows59[["PgSelectRows[59∈0] ➊"]]:::plan PgSelectRows59 --> First58 PgSelect57 --> PgSelectRows59 - PgSelectSingle60{{"PgSelectSingle[60∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle60{{"PgSelectSingle[60∈0] ➊
ᐸmessagesᐳ"}}:::plan First58 --> PgSelectSingle60 - PgClassExpression61{{"PgClassExpression[61∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle60 --> PgClassExpression61 - __Item19[/"__Item[19∈2]
ᐸ18ᐳ"\]:::itemplan - PgSelectRows18 ==> __Item19 - PgSelectSingle20{{"PgSelectSingle[20∈2]
ᐸmessagesᐳ"}}:::plan - __Item19 --> PgSelectSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgSelectSingle20 & Access21 --> PgCursor22 - PgSelect25[["PgSelect[25∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object14 & PgClassExpression24 --> PgSelect25 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression23 - PgSelectSingle20 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸusersᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression33 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor23{{"PgCursor[23∈1]"}}:::plan + PgSelectSingle21{{"PgSelectSingle[21∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle21 & Access22 --> PgCursor23 + PgSelect26[["PgSelect[26∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object14 & PgClassExpression25 --> PgSelect26 + __Item20[/"__Item[20∈1]
ᐸ19ᐳ"\]:::itemplan + PgSelectRows19 ==> __Item20 + __Item20 --> PgSelectSingle21 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression24 + PgSelectSingle21 --> PgClassExpression25 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect26 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸusersᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 %% define steps subgraph "Buckets for queries/connections/pagination-before-end-last.variables" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 12, 13, 62, 14, 17, 15, 36
2: Lambda[16]
3: PgSelect[18], PgSelect[57]
ᐳ: 22, 38, 39, 40, 43, 44
4: PgSelectRows[19], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Constant6,Access9,Access12,Access13,Object14,Connection15,Lambda16,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 62, 6

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[17], PgSelect[57]
ᐳ: 35, 21, 38, 39, 40, 43, 44
2: PgSelectRows[18], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Constant7,Access9,Access12,Access13,Object14,Connection15,Lambda16,Lambda17,PgSelect18,PgSelectRows19,Access22,PgPageInfo36,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 22, 14

ROOT __Item{1}ᐸ19ᐳ[20]
1:
ᐳ: 21, 23, 24, 25
2: PgSelect[26]
3: PgSelectRows[31]
ᐳ: 30, 32, 33, 34"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 14

ROOT __Item{2}ᐸ18ᐳ[19]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 14

ROOT PgSelectSingle{2}ᐸmessagesᐳ[20]
1:
ᐳ: 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{3}ᐸusersᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32,PgClassExpression33 bucket4 + class Bucket1,__Item20,PgSelectSingle21,PgCursor23,PgClassExpression24,PgClassExpression25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.sql index 863ed78dee..e359584540 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end-last.variables.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.deopt.mermaid index ea65b95a3d..17681710cc 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.deopt.mermaid @@ -9,104 +9,96 @@ graph TD %% plan dependencies + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda15[["Lambda[15∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda15 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Lambda16 & Constant61 --> PgSelect17 + Object42{{"Object[42∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access37{{"Access[37∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant61 & Access37 --> Object42 + Constant61 & Lambda16 --> Connection14 + Object38{{"Object[38∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant61 & Access37 --> Object38 + PgSelect56[["PgSelect[56∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda15 -->|rejectNull| PgSelect56 + Object13 & Connection14 --> PgSelect56 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant61 & Lambda15 --> Connection14 + PgCursor49{{"PgCursor[49∈0] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle47 & Access21 --> PgCursor49 + PgCursor55{{"PgCursor[55∈0] ➊"}}:::plan + PgSelectSingle53{{"PgSelectSingle[53∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle53 & Access21 --> PgCursor55 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda15 Constant62{{"Constant[62∈0] ➊
ᐸ'WyJmMGIyOGM5NGMxIiwiZjE3MGYxNzAtMDAwMC0wMDAwLTAwMDAtY2VjMTEᐳ"}}:::plan - Constant62 --> Lambda15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object13 & Connection14 & Lambda15 & Constant61 --> PgSelect16 - Object42{{"Object[42∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access37{{"Access[37∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant61 & Constant6 & Constant6 & Access37 --> Object42 - Object38{{"Object[38∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant61 & Constant6 & Access37 --> Object38 - PgCursor49{{"PgCursor[49∈1] ➊"}}:::plan - PgSelectSingle47{{"PgSelectSingle[47∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ16.cursorDetailsᐳ"}}:::plan - PgSelectSingle47 & Access20 --> PgCursor49 - PgCursor55{{"PgCursor[55∈1] ➊"}}:::plan - PgSelectSingle53{{"PgSelectSingle[53∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle53 & Access20 --> PgCursor55 - PgSelect56[["PgSelect[56∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object13 & Connection14 --> PgSelect56 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - PgSelect16 --> Access20 - PgPageInfo34{{"PgPageInfo[34∈1] ➊"}}:::plan - Connection14 --> PgPageInfo34 - PgSelect16 --> Access37 - Lambda39{{"Lambda[39∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant62 --> Lambda16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 + PgSelect17 --> Access21 + PgPageInfo35{{"PgPageInfo[35∈0] ➊"}}:::plan + Connection14 --> PgPageInfo35 + PgSelect17 --> Access37 + Lambda39{{"Lambda[39∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object38 --> Lambda39 - Lambda43{{"Lambda[43∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda43{{"Lambda[43∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object42 --> Lambda43 - First45{{"First[45∈1] ➊"}}:::plan - PgSelectRows17 --> First45 + First45{{"First[45∈0] ➊"}}:::plan + PgSelectRows18 --> First45 First45 --> PgSelectSingle47 - Last51{{"Last[51∈1] ➊"}}:::plan - PgSelectRows17 --> Last51 + Last51{{"Last[51∈0] ➊"}}:::plan + PgSelectRows18 --> Last51 Last51 --> PgSelectSingle53 - First57{{"First[57∈1] ➊"}}:::plan - PgSelectRows58[["PgSelectRows[58∈1] ➊"]]:::plan + First57{{"First[57∈0] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈0] ➊"]]:::plan PgSelectRows58 --> First57 PgSelect56 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle59{{"PgSelectSingle[59∈0] ➊
ᐸmessagesᐳ"}}:::plan First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle59 --> PgClassExpression60 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸmessagesᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgCursor21{{"PgCursor[21∈3]"}}:::plan - PgSelectSingle19 & Access20 --> PgCursor21 - PgSelect24[["PgSelect[24∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object13 & PgClassExpression23 --> PgSelect24 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression22 - PgSelectSingle19 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan - PgSelectRows29 --> First28 - PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸusersᐳ"}}:::plan - First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle20 & Access21 --> PgCursor22 + PgSelect25[["PgSelect[25∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object13 & PgClassExpression24 --> PgSelect25 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + __Item19 --> PgSelectSingle20 + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression23 + PgSelectSingle20 --> PgClassExpression24 + First29{{"First[29∈1]"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan + PgSelectRows30 --> First29 + PgSelect25 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1]
ᐸusersᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/connections/pagination-before-end" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 61, 62, 13, 16, 14, 35
2: Lambda[15]
3: PgSelect[17], PgSelect[56]
ᐳ: 21, 37, 38, 39, 42, 43
4: PgSelectRows[18], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access11,Access12,Object13,Connection14,Lambda15,Constant61,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 15, 61, 6

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[16], PgSelect[56]
ᐳ: 34, 20, 37, 38, 39, 42, 43
2: PgSelectRows[17], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda15,Lambda16,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,Constant61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: 29, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17,Access20,PgPageInfo34,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 20, 13

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19, 20, 13

ROOT PgSelectSingle{2}ᐸmessagesᐳ[19]
1:
ᐳ: 21, 22, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor21,PgClassExpression22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸusersᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression31,PgClassExpression32 bucket4 + class Bucket1,__Item19,PgSelectSingle20,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.deopt.sql index 78ebecd8ee..8a89bbabdd 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.deopt.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.mermaid index ea65b95a3d..17681710cc 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.mermaid @@ -9,104 +9,96 @@ graph TD %% plan dependencies + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda15[["Lambda[15∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda15 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Lambda16 & Constant61 --> PgSelect17 + Object42{{"Object[42∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access37{{"Access[37∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant61 & Access37 --> Object42 + Constant61 & Lambda16 --> Connection14 + Object38{{"Object[38∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant61 & Access37 --> Object38 + PgSelect56[["PgSelect[56∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda15 -->|rejectNull| PgSelect56 + Object13 & Connection14 --> PgSelect56 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant61 & Lambda15 --> Connection14 + PgCursor49{{"PgCursor[49∈0] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle47 & Access21 --> PgCursor49 + PgCursor55{{"PgCursor[55∈0] ➊"}}:::plan + PgSelectSingle53{{"PgSelectSingle[53∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle53 & Access21 --> PgCursor55 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda15 Constant62{{"Constant[62∈0] ➊
ᐸ'WyJmMGIyOGM5NGMxIiwiZjE3MGYxNzAtMDAwMC0wMDAwLTAwMDAtY2VjMTEᐳ"}}:::plan - Constant62 --> Lambda15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object13 & Connection14 & Lambda15 & Constant61 --> PgSelect16 - Object42{{"Object[42∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access37{{"Access[37∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant61 & Constant6 & Constant6 & Access37 --> Object42 - Object38{{"Object[38∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant61 & Constant6 & Access37 --> Object38 - PgCursor49{{"PgCursor[49∈1] ➊"}}:::plan - PgSelectSingle47{{"PgSelectSingle[47∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ16.cursorDetailsᐳ"}}:::plan - PgSelectSingle47 & Access20 --> PgCursor49 - PgCursor55{{"PgCursor[55∈1] ➊"}}:::plan - PgSelectSingle53{{"PgSelectSingle[53∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle53 & Access20 --> PgCursor55 - PgSelect56[["PgSelect[56∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object13 & Connection14 --> PgSelect56 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - PgSelect16 --> Access20 - PgPageInfo34{{"PgPageInfo[34∈1] ➊"}}:::plan - Connection14 --> PgPageInfo34 - PgSelect16 --> Access37 - Lambda39{{"Lambda[39∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant62 --> Lambda16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 + PgSelect17 --> Access21 + PgPageInfo35{{"PgPageInfo[35∈0] ➊"}}:::plan + Connection14 --> PgPageInfo35 + PgSelect17 --> Access37 + Lambda39{{"Lambda[39∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object38 --> Lambda39 - Lambda43{{"Lambda[43∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda43{{"Lambda[43∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object42 --> Lambda43 - First45{{"First[45∈1] ➊"}}:::plan - PgSelectRows17 --> First45 + First45{{"First[45∈0] ➊"}}:::plan + PgSelectRows18 --> First45 First45 --> PgSelectSingle47 - Last51{{"Last[51∈1] ➊"}}:::plan - PgSelectRows17 --> Last51 + Last51{{"Last[51∈0] ➊"}}:::plan + PgSelectRows18 --> Last51 Last51 --> PgSelectSingle53 - First57{{"First[57∈1] ➊"}}:::plan - PgSelectRows58[["PgSelectRows[58∈1] ➊"]]:::plan + First57{{"First[57∈0] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈0] ➊"]]:::plan PgSelectRows58 --> First57 PgSelect56 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle59{{"PgSelectSingle[59∈0] ➊
ᐸmessagesᐳ"}}:::plan First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle59 --> PgClassExpression60 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸmessagesᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgCursor21{{"PgCursor[21∈3]"}}:::plan - PgSelectSingle19 & Access20 --> PgCursor21 - PgSelect24[["PgSelect[24∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object13 & PgClassExpression23 --> PgSelect24 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression22 - PgSelectSingle19 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan - PgSelectRows29 --> First28 - PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸusersᐳ"}}:::plan - First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle20 & Access21 --> PgCursor22 + PgSelect25[["PgSelect[25∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object13 & PgClassExpression24 --> PgSelect25 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + __Item19 --> PgSelectSingle20 + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression23 + PgSelectSingle20 --> PgClassExpression24 + First29{{"First[29∈1]"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan + PgSelectRows30 --> First29 + PgSelect25 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1]
ᐸusersᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/connections/pagination-before-end" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 61, 62, 13, 16, 14, 35
2: Lambda[15]
3: PgSelect[17], PgSelect[56]
ᐳ: 21, 37, 38, 39, 42, 43
4: PgSelectRows[18], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access11,Access12,Object13,Connection14,Lambda15,Constant61,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 15, 61, 6

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[16], PgSelect[56]
ᐳ: 34, 20, 37, 38, 39, 42, 43
2: PgSelectRows[17], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda15,Lambda16,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,Constant61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: 29, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17,Access20,PgPageInfo34,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 20, 13

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19, 20, 13

ROOT PgSelectSingle{2}ᐸmessagesᐳ[19]
1:
ᐳ: 21, 22, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor21,PgClassExpression22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸusersᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression31,PgClassExpression32 bucket4 + class Bucket1,__Item19,PgSelectSingle20,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.sql index 78ebecd8ee..8a89bbabdd 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.deopt.mermaid index 8785a4d18a..811c2b86f1 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.deopt.mermaid @@ -9,106 +9,98 @@ graph TD %% plan dependencies + PgSelect18[["PgSelect[18∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan + Lambda17{{"Lambda[17∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda16 -->|rejectNull| PgSelect18 + Object14 & Connection15 & Lambda17 & Constant62 --> PgSelect18 + Object43{{"Object[43∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access38{{"Access[38∈0] ➊
ᐸ18.hasMoreᐳ"}}:::plan + Constant62 & Access38 --> Object43 + Constant62 & Lambda17 --> Connection15 + Object39{{"Object[39∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant62 & Access38 --> Object39 + PgSelect57[["PgSelect[57∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda16 -->|rejectNull| PgSelect57 + Object14 & Connection15 --> PgSelect57 Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant62 & Lambda16 --> Connection15 + PgCursor50{{"PgCursor[50∈0] ➊"}}:::plan + PgSelectSingle48{{"PgSelectSingle[48∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access22{{"Access[22∈0] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan + PgSelectSingle48 & Access22 --> PgCursor50 + PgCursor56{{"PgCursor[56∈0] ➊"}}:::plan + PgSelectSingle54{{"PgSelectSingle[54∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle54 & Access22 --> PgCursor56 Access9{{"Access[9∈0] ➊
ᐸ0.valueᐳ"}}:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 - Access9 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object14 & Connection15 & Lambda16 & Constant62 --> PgSelect17 - Object43{{"Object[43∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access38{{"Access[38∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant62 & Constant6 & Constant6 & Access38 --> Object43 - Object39{{"Object[39∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant62 & Constant6 & Access38 --> Object39 - PgCursor50{{"PgCursor[50∈1] ➊"}}:::plan - PgSelectSingle48{{"PgSelectSingle[48∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan - PgSelectSingle48 & Access21 --> PgCursor50 - PgCursor56{{"PgCursor[56∈1] ➊"}}:::plan - PgSelectSingle54{{"PgSelectSingle[54∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle54 & Access21 --> PgCursor56 - PgSelect57[["PgSelect[57∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object14 & Connection15 --> PgSelect57 - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan - PgSelect17 --> PgSelectRows18 - PgSelect17 --> Access21 - PgPageInfo35{{"PgPageInfo[35∈1] ➊"}}:::plan - Connection15 --> PgPageInfo35 - PgSelect17 --> Access38 - Lambda40{{"Lambda[40∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + Access9 --> Lambda17 + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelect18 --> PgSelectRows19 + PgSelect18 --> Access22 + PgPageInfo36{{"PgPageInfo[36∈0] ➊"}}:::plan + Connection15 --> PgPageInfo36 + PgSelect18 --> Access38 + Lambda40{{"Lambda[40∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object39 --> Lambda40 - Lambda44{{"Lambda[44∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda44{{"Lambda[44∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object43 --> Lambda44 - First46{{"First[46∈1] ➊"}}:::plan - PgSelectRows18 --> First46 + First46{{"First[46∈0] ➊"}}:::plan + PgSelectRows19 --> First46 First46 --> PgSelectSingle48 - Last52{{"Last[52∈1] ➊"}}:::plan - PgSelectRows18 --> Last52 + Last52{{"Last[52∈0] ➊"}}:::plan + PgSelectRows19 --> Last52 Last52 --> PgSelectSingle54 - First58{{"First[58∈1] ➊"}}:::plan - PgSelectRows59[["PgSelectRows[59∈1] ➊"]]:::plan + First58{{"First[58∈0] ➊"}}:::plan + PgSelectRows59[["PgSelectRows[59∈0] ➊"]]:::plan PgSelectRows59 --> First58 PgSelect57 --> PgSelectRows59 - PgSelectSingle60{{"PgSelectSingle[60∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle60{{"PgSelectSingle[60∈0] ➊
ᐸmessagesᐳ"}}:::plan First58 --> PgSelectSingle60 - PgClassExpression61{{"PgClassExpression[61∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle60 --> PgClassExpression61 - __Item19[/"__Item[19∈2]
ᐸ18ᐳ"\]:::itemplan - PgSelectRows18 ==> __Item19 - PgSelectSingle20{{"PgSelectSingle[20∈2]
ᐸmessagesᐳ"}}:::plan - __Item19 --> PgSelectSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgSelectSingle20 & Access21 --> PgCursor22 - PgSelect25[["PgSelect[25∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object14 & PgClassExpression24 --> PgSelect25 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression23 - PgSelectSingle20 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸusersᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression33 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor23{{"PgCursor[23∈1]"}}:::plan + PgSelectSingle21{{"PgSelectSingle[21∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle21 & Access22 --> PgCursor23 + PgSelect26[["PgSelect[26∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object14 & PgClassExpression25 --> PgSelect26 + __Item20[/"__Item[20∈1]
ᐸ19ᐳ"\]:::itemplan + PgSelectRows19 ==> __Item20 + __Item20 --> PgSelectSingle21 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression24 + PgSelectSingle21 --> PgClassExpression25 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect26 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸusersᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 %% define steps subgraph "Buckets for queries/connections/pagination-before-end.variables" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 12, 13, 62, 14, 17, 15, 36
2: Lambda[16]
3: PgSelect[18], PgSelect[57]
ᐳ: 22, 38, 39, 40, 43, 44
4: PgSelectRows[19], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Constant6,Access9,Access12,Access13,Object14,Connection15,Lambda16,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 62, 6

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[17], PgSelect[57]
ᐳ: 35, 21, 38, 39, 40, 43, 44
2: PgSelectRows[18], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Constant7,Access9,Access12,Access13,Object14,Connection15,Lambda16,Lambda17,PgSelect18,PgSelectRows19,Access22,PgPageInfo36,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 22, 14

ROOT __Item{1}ᐸ19ᐳ[20]
1:
ᐳ: 21, 23, 24, 25
2: PgSelect[26]
3: PgSelectRows[31]
ᐳ: 30, 32, 33, 34"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 14

ROOT __Item{2}ᐸ18ᐳ[19]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 14

ROOT PgSelectSingle{2}ᐸmessagesᐳ[20]
1:
ᐳ: 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{3}ᐸusersᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32,PgClassExpression33 bucket4 + class Bucket1,__Item20,PgSelectSingle21,PgCursor23,PgClassExpression24,PgClassExpression25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.deopt.sql index 78ebecd8ee..8a89bbabdd 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.deopt.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.mermaid index 8785a4d18a..811c2b86f1 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.mermaid @@ -9,106 +9,98 @@ graph TD %% plan dependencies + PgSelect18[["PgSelect[18∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan + Lambda17{{"Lambda[17∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda16 -->|rejectNull| PgSelect18 + Object14 & Connection15 & Lambda17 & Constant62 --> PgSelect18 + Object43{{"Object[43∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access38{{"Access[38∈0] ➊
ᐸ18.hasMoreᐳ"}}:::plan + Constant62 & Access38 --> Object43 + Constant62 & Lambda17 --> Connection15 + Object39{{"Object[39∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant62 & Access38 --> Object39 + PgSelect57[["PgSelect[57∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda16 -->|rejectNull| PgSelect57 + Object14 & Connection15 --> PgSelect57 Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant62 & Lambda16 --> Connection15 + PgCursor50{{"PgCursor[50∈0] ➊"}}:::plan + PgSelectSingle48{{"PgSelectSingle[48∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access22{{"Access[22∈0] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan + PgSelectSingle48 & Access22 --> PgCursor50 + PgCursor56{{"PgCursor[56∈0] ➊"}}:::plan + PgSelectSingle54{{"PgSelectSingle[54∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle54 & Access22 --> PgCursor56 Access9{{"Access[9∈0] ➊
ᐸ0.valueᐳ"}}:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 - Access9 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object14 & Connection15 & Lambda16 & Constant62 --> PgSelect17 - Object43{{"Object[43∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access38{{"Access[38∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant62 & Constant6 & Constant6 & Access38 --> Object43 - Object39{{"Object[39∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant62 & Constant6 & Access38 --> Object39 - PgCursor50{{"PgCursor[50∈1] ➊"}}:::plan - PgSelectSingle48{{"PgSelectSingle[48∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan - PgSelectSingle48 & Access21 --> PgCursor50 - PgCursor56{{"PgCursor[56∈1] ➊"}}:::plan - PgSelectSingle54{{"PgSelectSingle[54∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle54 & Access21 --> PgCursor56 - PgSelect57[["PgSelect[57∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object14 & Connection15 --> PgSelect57 - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan - PgSelect17 --> PgSelectRows18 - PgSelect17 --> Access21 - PgPageInfo35{{"PgPageInfo[35∈1] ➊"}}:::plan - Connection15 --> PgPageInfo35 - PgSelect17 --> Access38 - Lambda40{{"Lambda[40∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + Access9 --> Lambda17 + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelect18 --> PgSelectRows19 + PgSelect18 --> Access22 + PgPageInfo36{{"PgPageInfo[36∈0] ➊"}}:::plan + Connection15 --> PgPageInfo36 + PgSelect18 --> Access38 + Lambda40{{"Lambda[40∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object39 --> Lambda40 - Lambda44{{"Lambda[44∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda44{{"Lambda[44∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object43 --> Lambda44 - First46{{"First[46∈1] ➊"}}:::plan - PgSelectRows18 --> First46 + First46{{"First[46∈0] ➊"}}:::plan + PgSelectRows19 --> First46 First46 --> PgSelectSingle48 - Last52{{"Last[52∈1] ➊"}}:::plan - PgSelectRows18 --> Last52 + Last52{{"Last[52∈0] ➊"}}:::plan + PgSelectRows19 --> Last52 Last52 --> PgSelectSingle54 - First58{{"First[58∈1] ➊"}}:::plan - PgSelectRows59[["PgSelectRows[59∈1] ➊"]]:::plan + First58{{"First[58∈0] ➊"}}:::plan + PgSelectRows59[["PgSelectRows[59∈0] ➊"]]:::plan PgSelectRows59 --> First58 PgSelect57 --> PgSelectRows59 - PgSelectSingle60{{"PgSelectSingle[60∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle60{{"PgSelectSingle[60∈0] ➊
ᐸmessagesᐳ"}}:::plan First58 --> PgSelectSingle60 - PgClassExpression61{{"PgClassExpression[61∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle60 --> PgClassExpression61 - __Item19[/"__Item[19∈2]
ᐸ18ᐳ"\]:::itemplan - PgSelectRows18 ==> __Item19 - PgSelectSingle20{{"PgSelectSingle[20∈2]
ᐸmessagesᐳ"}}:::plan - __Item19 --> PgSelectSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgSelectSingle20 & Access21 --> PgCursor22 - PgSelect25[["PgSelect[25∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object14 & PgClassExpression24 --> PgSelect25 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression23 - PgSelectSingle20 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸusersᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression33 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor23{{"PgCursor[23∈1]"}}:::plan + PgSelectSingle21{{"PgSelectSingle[21∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle21 & Access22 --> PgCursor23 + PgSelect26[["PgSelect[26∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object14 & PgClassExpression25 --> PgSelect26 + __Item20[/"__Item[20∈1]
ᐸ19ᐳ"\]:::itemplan + PgSelectRows19 ==> __Item20 + __Item20 --> PgSelectSingle21 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression24 + PgSelectSingle21 --> PgClassExpression25 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect26 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸusersᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 %% define steps subgraph "Buckets for queries/connections/pagination-before-end.variables" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 12, 13, 62, 14, 17, 15, 36
2: Lambda[16]
3: PgSelect[18], PgSelect[57]
ᐳ: 22, 38, 39, 40, 43, 44
4: PgSelectRows[19], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Constant6,Access9,Access12,Access13,Object14,Connection15,Lambda16,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 62, 6

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[17], PgSelect[57]
ᐳ: 35, 21, 38, 39, 40, 43, 44
2: PgSelectRows[18], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Constant7,Access9,Access12,Access13,Object14,Connection15,Lambda16,Lambda17,PgSelect18,PgSelectRows19,Access22,PgPageInfo36,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 22, 14

ROOT __Item{1}ᐸ19ᐳ[20]
1:
ᐳ: 21, 23, 24, 25
2: PgSelect[26]
3: PgSelectRows[31]
ᐳ: 30, 32, 33, 34"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 14

ROOT __Item{2}ᐸ18ᐳ[19]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 14

ROOT PgSelectSingle{2}ᐸmessagesᐳ[20]
1:
ᐳ: 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{3}ᐸusersᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32,PgClassExpression33 bucket4 + class Bucket1,__Item20,PgSelectSingle21,PgCursor23,PgClassExpression24,PgClassExpression25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.sql index 78ebecd8ee..8a89bbabdd 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-end.variables.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.deopt.mermaid index 1637b5e4ba..21546a8d4b 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.deopt.mermaid @@ -9,54 +9,54 @@ graph TD %% plan dependencies + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda15[["Lambda[15∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant32{{"Constant[32∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda15 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Lambda16 & Constant32 --> PgSelect17 + Object25{{"Object[25∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access20{{"Access[20∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant32 & Access20 --> Object25 + Constant32 & Lambda16 --> Connection14 + Object21{{"Object[21∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant32 & Access20 --> Object21 + PgSelect27[["PgSelect[27∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda15 -->|rejectNull| PgSelect27 + Object13 & Connection14 --> PgSelect27 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant32{{"Constant[32∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant32 & Lambda15 --> Connection14 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda15 Constant33{{"Constant[33∈0] ➊
ᐸ'WyJmMGIyOGM5NGMxIiwiZjE3MGYxNzAtMDAwMC0wMDAwLTAwMDAtYjBiMDAᐳ"}}:::plan - Constant33 --> Lambda15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object13 & Connection14 & Lambda15 & Constant32 --> PgSelect16 - Object25{{"Object[25∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant6 & Constant32 & Constant6 & Access20 --> Object25 - Object21{{"Object[21∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant32 & Access20 --> Object21 - PgSelect27[["PgSelect[27∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object13 & Connection14 --> PgSelect27 - PgPageInfo17{{"PgPageInfo[17∈1] ➊"}}:::plan - Connection14 --> PgPageInfo17 - PgSelect16 --> Access20 - Lambda22{{"Lambda[22∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant33 --> Lambda16 + PgPageInfo18{{"PgPageInfo[18∈0] ➊"}}:::plan + Connection14 --> PgPageInfo18 + PgSelect17 --> Access20 + Lambda22{{"Lambda[22∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object21 --> Lambda22 - Lambda26{{"Lambda[26∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda26{{"Lambda[26∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object25 --> Lambda26 - First28{{"First[28∈1] ➊"}}:::plan - PgSelectRows29[["PgSelectRows[29∈1] ➊"]]:::plan + First28{{"First[28∈0] ➊"}}:::plan + PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan PgSelectRows29 --> First28 PgSelect27 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle30{{"PgSelectSingle[30∈0] ➊
ᐸmessagesᐳ"}}:::plan First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression31 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/connections/pagination-before-last-pagination-only" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 32, 33, 13, 16, 14, 18
2: Lambda[15]
3: PgSelect[17], PgSelect[27]
ᐳ: 20, 21, 22, 25, 26
4: PgSelectRows[29]
ᐳ: 28, 30, 31"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access11,Access12,Object13,Connection14,Lambda15,Constant32,Constant33 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 15, 32, 6

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[16], PgSelect[27]
ᐳ: 17, 20, 21, 22, 25, 26
2: PgSelectRows[29]
ᐳ: 28, 30, 31"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgPageInfo17,Access20,Object21,Lambda22,Object25,Lambda26,PgSelect27,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda15,Lambda16,PgSelect17,PgPageInfo18,Access20,Object21,Lambda22,Object25,Lambda26,PgSelect27,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,Constant32,Constant33 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.deopt.sql index 966cb51e56..9223add09d 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.deopt.sql @@ -2,9 +2,9 @@ select /* NOTHING?! */ from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -16,7 +16,7 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.mermaid index 1637b5e4ba..21546a8d4b 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.mermaid @@ -9,54 +9,54 @@ graph TD %% plan dependencies + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda15[["Lambda[15∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant32{{"Constant[32∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda15 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Lambda16 & Constant32 --> PgSelect17 + Object25{{"Object[25∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access20{{"Access[20∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant32 & Access20 --> Object25 + Constant32 & Lambda16 --> Connection14 + Object21{{"Object[21∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant32 & Access20 --> Object21 + PgSelect27[["PgSelect[27∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda15 -->|rejectNull| PgSelect27 + Object13 & Connection14 --> PgSelect27 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant32{{"Constant[32∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant32 & Lambda15 --> Connection14 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda15 Constant33{{"Constant[33∈0] ➊
ᐸ'WyJmMGIyOGM5NGMxIiwiZjE3MGYxNzAtMDAwMC0wMDAwLTAwMDAtYjBiMDAᐳ"}}:::plan - Constant33 --> Lambda15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object13 & Connection14 & Lambda15 & Constant32 --> PgSelect16 - Object25{{"Object[25∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant6 & Constant32 & Constant6 & Access20 --> Object25 - Object21{{"Object[21∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant32 & Access20 --> Object21 - PgSelect27[["PgSelect[27∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object13 & Connection14 --> PgSelect27 - PgPageInfo17{{"PgPageInfo[17∈1] ➊"}}:::plan - Connection14 --> PgPageInfo17 - PgSelect16 --> Access20 - Lambda22{{"Lambda[22∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant33 --> Lambda16 + PgPageInfo18{{"PgPageInfo[18∈0] ➊"}}:::plan + Connection14 --> PgPageInfo18 + PgSelect17 --> Access20 + Lambda22{{"Lambda[22∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object21 --> Lambda22 - Lambda26{{"Lambda[26∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda26{{"Lambda[26∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object25 --> Lambda26 - First28{{"First[28∈1] ➊"}}:::plan - PgSelectRows29[["PgSelectRows[29∈1] ➊"]]:::plan + First28{{"First[28∈0] ➊"}}:::plan + PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan PgSelectRows29 --> First28 PgSelect27 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle30{{"PgSelectSingle[30∈0] ➊
ᐸmessagesᐳ"}}:::plan First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression31 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/connections/pagination-before-last-pagination-only" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 32, 33, 13, 16, 14, 18
2: Lambda[15]
3: PgSelect[17], PgSelect[27]
ᐳ: 20, 21, 22, 25, 26
4: PgSelectRows[29]
ᐳ: 28, 30, 31"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access11,Access12,Object13,Connection14,Lambda15,Constant32,Constant33 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 15, 32, 6

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[16], PgSelect[27]
ᐳ: 17, 20, 21, 22, 25, 26
2: PgSelectRows[29]
ᐳ: 28, 30, 31"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgPageInfo17,Access20,Object21,Lambda22,Object25,Lambda26,PgSelect27,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda15,Lambda16,PgSelect17,PgPageInfo18,Access20,Object21,Lambda22,Object25,Lambda26,PgSelect27,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,Constant32,Constant33 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.sql index 966cb51e56..9223add09d 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.sql @@ -2,9 +2,9 @@ select /* NOTHING?! */ from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -16,7 +16,7 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.deopt.mermaid index 44e170daa4..14ae8a438f 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.deopt.mermaid @@ -9,56 +9,56 @@ graph TD %% plan dependencies + PgSelect18[["PgSelect[18∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan + Lambda17{{"Lambda[17∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant33{{"Constant[33∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda16 -->|rejectNull| PgSelect18 + Object14 & Connection15 & Lambda17 & Constant33 --> PgSelect18 + Object26{{"Object[26∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ18.hasMoreᐳ"}}:::plan + Constant33 & Access21 --> Object26 + Constant33 & Lambda17 --> Connection15 + Object22{{"Object[22∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant33 & Access21 --> Object22 + PgSelect28[["PgSelect[28∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda16 -->|rejectNull| PgSelect28 + Object14 & Connection15 --> PgSelect28 Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant33{{"Constant[33∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant33 & Lambda16 --> Connection15 Access9{{"Access[9∈0] ➊
ᐸ0.valueᐳ"}}:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 - Access9 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object14 & Connection15 & Lambda16 & Constant33 --> PgSelect17 - Object26{{"Object[26∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access21{{"Access[21∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant6 & Constant33 & Constant6 & Access21 --> Object26 - Object22{{"Object[22∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant33 & Access21 --> Object22 - PgSelect28[["PgSelect[28∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object14 & Connection15 --> PgSelect28 - PgPageInfo18{{"PgPageInfo[18∈1] ➊"}}:::plan - Connection15 --> PgPageInfo18 - PgSelect17 --> Access21 - Lambda23{{"Lambda[23∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + Access9 --> Lambda17 + PgPageInfo19{{"PgPageInfo[19∈0] ➊"}}:::plan + Connection15 --> PgPageInfo19 + PgSelect18 --> Access21 + Lambda23{{"Lambda[23∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object22 --> Lambda23 - Lambda27{{"Lambda[27∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda27{{"Lambda[27∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object26 --> Lambda27 - First29{{"First[29∈1] ➊"}}:::plan - PgSelectRows30[["PgSelectRows[30∈1] ➊"]]:::plan + First29{{"First[29∈0] ➊"}}:::plan + PgSelectRows30[["PgSelectRows[30∈0] ➊"]]:::plan PgSelectRows30 --> First29 PgSelect28 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle31{{"PgSelectSingle[31∈0] ➊
ᐸmessagesᐳ"}}:::plan First29 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression32 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/connections/pagination-before-last-pagination-only.variables" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 12, 13, 33, 14, 17, 15, 19
2: Lambda[16]
3: PgSelect[18], PgSelect[28]
ᐳ: 21, 22, 23, 26, 27
4: PgSelectRows[30]
ᐳ: 29, 31, 32"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Constant6,Access9,Access12,Access13,Object14,Connection15,Lambda16,Constant33 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 33, 6

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[17], PgSelect[28]
ᐳ: 18, 21, 22, 23, 26, 27
2: PgSelectRows[30]
ᐳ: 29, 31, 32"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgPageInfo18,Access21,Object22,Lambda23,Object26,Lambda27,PgSelect28,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value0,__Value2,__Value4,Constant7,Access9,Access12,Access13,Object14,Connection15,Lambda16,Lambda17,PgSelect18,PgPageInfo19,Access21,Object22,Lambda23,Object26,Lambda27,PgSelect28,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,Constant33 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.deopt.sql index 966cb51e56..9223add09d 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.deopt.sql @@ -2,9 +2,9 @@ select /* NOTHING?! */ from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -16,7 +16,7 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.mermaid index 44e170daa4..14ae8a438f 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.mermaid @@ -9,56 +9,56 @@ graph TD %% plan dependencies + PgSelect18[["PgSelect[18∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan + Lambda17{{"Lambda[17∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant33{{"Constant[33∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda16 -->|rejectNull| PgSelect18 + Object14 & Connection15 & Lambda17 & Constant33 --> PgSelect18 + Object26{{"Object[26∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ18.hasMoreᐳ"}}:::plan + Constant33 & Access21 --> Object26 + Constant33 & Lambda17 --> Connection15 + Object22{{"Object[22∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant33 & Access21 --> Object22 + PgSelect28[["PgSelect[28∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda16 -->|rejectNull| PgSelect28 + Object14 & Connection15 --> PgSelect28 Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant33{{"Constant[33∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant33 & Lambda16 --> Connection15 Access9{{"Access[9∈0] ➊
ᐸ0.valueᐳ"}}:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 - Access9 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object14 & Connection15 & Lambda16 & Constant33 --> PgSelect17 - Object26{{"Object[26∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access21{{"Access[21∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant6 & Constant33 & Constant6 & Access21 --> Object26 - Object22{{"Object[22∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant33 & Access21 --> Object22 - PgSelect28[["PgSelect[28∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object14 & Connection15 --> PgSelect28 - PgPageInfo18{{"PgPageInfo[18∈1] ➊"}}:::plan - Connection15 --> PgPageInfo18 - PgSelect17 --> Access21 - Lambda23{{"Lambda[23∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + Access9 --> Lambda17 + PgPageInfo19{{"PgPageInfo[19∈0] ➊"}}:::plan + Connection15 --> PgPageInfo19 + PgSelect18 --> Access21 + Lambda23{{"Lambda[23∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object22 --> Lambda23 - Lambda27{{"Lambda[27∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda27{{"Lambda[27∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object26 --> Lambda27 - First29{{"First[29∈1] ➊"}}:::plan - PgSelectRows30[["PgSelectRows[30∈1] ➊"]]:::plan + First29{{"First[29∈0] ➊"}}:::plan + PgSelectRows30[["PgSelectRows[30∈0] ➊"]]:::plan PgSelectRows30 --> First29 PgSelect28 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle31{{"PgSelectSingle[31∈0] ➊
ᐸmessagesᐳ"}}:::plan First29 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression32 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/connections/pagination-before-last-pagination-only.variables" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 12, 13, 33, 14, 17, 15, 19
2: Lambda[16]
3: PgSelect[18], PgSelect[28]
ᐳ: 21, 22, 23, 26, 27
4: PgSelectRows[30]
ᐳ: 29, 31, 32"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Constant6,Access9,Access12,Access13,Object14,Connection15,Lambda16,Constant33 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 33, 6

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[17], PgSelect[28]
ᐳ: 18, 21, 22, 23, 26, 27
2: PgSelectRows[30]
ᐳ: 29, 31, 32"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgPageInfo18,Access21,Object22,Lambda23,Object26,Lambda27,PgSelect28,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value0,__Value2,__Value4,Constant7,Access9,Access12,Access13,Object14,Connection15,Lambda16,Lambda17,PgSelect18,PgPageInfo19,Access21,Object22,Lambda23,Object26,Lambda27,PgSelect28,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,Constant33 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.sql index 966cb51e56..9223add09d 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last-pagination-only.variables.sql @@ -2,9 +2,9 @@ select /* NOTHING?! */ from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -16,7 +16,7 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.deopt.mermaid index e02ea19392..cbca0edd6b 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.deopt.mermaid @@ -9,104 +9,96 @@ graph TD %% plan dependencies + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda15[["Lambda[15∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda15 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Lambda16 & Constant61 --> PgSelect17 + Object42{{"Object[42∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access37{{"Access[37∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant61 & Access37 --> Object42 + Constant61 & Lambda16 --> Connection14 + Object38{{"Object[38∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant61 & Access37 --> Object38 + PgSelect56[["PgSelect[56∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda15 -->|rejectNull| PgSelect56 + Object13 & Connection14 --> PgSelect56 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant61 & Lambda15 --> Connection14 + PgCursor49{{"PgCursor[49∈0] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle47 & Access21 --> PgCursor49 + PgCursor55{{"PgCursor[55∈0] ➊"}}:::plan + PgSelectSingle53{{"PgSelectSingle[53∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle53 & Access21 --> PgCursor55 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda15 Constant62{{"Constant[62∈0] ➊
ᐸ'WyJmMGIyOGM5NGMxIiwiZjE3MGYxNzAtMDAwMC0wMDAwLTAwMDAtYjBiMDAᐳ"}}:::plan - Constant62 --> Lambda15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object13 & Connection14 & Lambda15 & Constant61 --> PgSelect16 - Object42{{"Object[42∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access37{{"Access[37∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant6 & Constant61 & Constant6 & Access37 --> Object42 - Object38{{"Object[38∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant61 & Access37 --> Object38 - PgCursor49{{"PgCursor[49∈1] ➊"}}:::plan - PgSelectSingle47{{"PgSelectSingle[47∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ16.cursorDetailsᐳ"}}:::plan - PgSelectSingle47 & Access20 --> PgCursor49 - PgCursor55{{"PgCursor[55∈1] ➊"}}:::plan - PgSelectSingle53{{"PgSelectSingle[53∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle53 & Access20 --> PgCursor55 - PgSelect56[["PgSelect[56∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object13 & Connection14 --> PgSelect56 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - PgSelect16 --> Access20 - PgPageInfo34{{"PgPageInfo[34∈1] ➊"}}:::plan - Connection14 --> PgPageInfo34 - PgSelect16 --> Access37 - Lambda39{{"Lambda[39∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant62 --> Lambda16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 + PgSelect17 --> Access21 + PgPageInfo35{{"PgPageInfo[35∈0] ➊"}}:::plan + Connection14 --> PgPageInfo35 + PgSelect17 --> Access37 + Lambda39{{"Lambda[39∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object38 --> Lambda39 - Lambda43{{"Lambda[43∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda43{{"Lambda[43∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object42 --> Lambda43 - First45{{"First[45∈1] ➊"}}:::plan - PgSelectRows17 --> First45 + First45{{"First[45∈0] ➊"}}:::plan + PgSelectRows18 --> First45 First45 --> PgSelectSingle47 - Last51{{"Last[51∈1] ➊"}}:::plan - PgSelectRows17 --> Last51 + Last51{{"Last[51∈0] ➊"}}:::plan + PgSelectRows18 --> Last51 Last51 --> PgSelectSingle53 - First57{{"First[57∈1] ➊"}}:::plan - PgSelectRows58[["PgSelectRows[58∈1] ➊"]]:::plan + First57{{"First[57∈0] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈0] ➊"]]:::plan PgSelectRows58 --> First57 PgSelect56 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle59{{"PgSelectSingle[59∈0] ➊
ᐸmessagesᐳ"}}:::plan First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle59 --> PgClassExpression60 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸmessagesᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgCursor21{{"PgCursor[21∈3]"}}:::plan - PgSelectSingle19 & Access20 --> PgCursor21 - PgSelect24[["PgSelect[24∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object13 & PgClassExpression23 --> PgSelect24 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression22 - PgSelectSingle19 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan - PgSelectRows29 --> First28 - PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸusersᐳ"}}:::plan - First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle20 & Access21 --> PgCursor22 + PgSelect25[["PgSelect[25∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object13 & PgClassExpression24 --> PgSelect25 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + __Item19 --> PgSelectSingle20 + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression23 + PgSelectSingle20 --> PgClassExpression24 + First29{{"First[29∈1]"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan + PgSelectRows30 --> First29 + PgSelect25 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1]
ᐸusersᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/connections/pagination-before-last" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 61, 62, 13, 16, 14, 35
2: Lambda[15]
3: PgSelect[17], PgSelect[56]
ᐳ: 21, 37, 38, 39, 42, 43
4: PgSelectRows[18], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access11,Access12,Object13,Connection14,Lambda15,Constant61,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 15, 61, 6

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[16], PgSelect[56]
ᐳ: 34, 20, 37, 38, 39, 42, 43
2: PgSelectRows[17], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda15,Lambda16,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,Constant61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: 29, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17,Access20,PgPageInfo34,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 20, 13

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19, 20, 13

ROOT PgSelectSingle{2}ᐸmessagesᐳ[19]
1:
ᐳ: 21, 22, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor21,PgClassExpression22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸusersᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression31,PgClassExpression32 bucket4 + class Bucket1,__Item19,PgSelectSingle20,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.deopt.sql index 863ed78dee..e359584540 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.deopt.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.mermaid index e02ea19392..cbca0edd6b 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.mermaid @@ -9,104 +9,96 @@ graph TD %% plan dependencies + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda15[["Lambda[15∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda15 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Lambda16 & Constant61 --> PgSelect17 + Object42{{"Object[42∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access37{{"Access[37∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant61 & Access37 --> Object42 + Constant61 & Lambda16 --> Connection14 + Object38{{"Object[38∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant61 & Access37 --> Object38 + PgSelect56[["PgSelect[56∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda15 -->|rejectNull| PgSelect56 + Object13 & Connection14 --> PgSelect56 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant61 & Lambda15 --> Connection14 + PgCursor49{{"PgCursor[49∈0] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle47 & Access21 --> PgCursor49 + PgCursor55{{"PgCursor[55∈0] ➊"}}:::plan + PgSelectSingle53{{"PgSelectSingle[53∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle53 & Access21 --> PgCursor55 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda15 Constant62{{"Constant[62∈0] ➊
ᐸ'WyJmMGIyOGM5NGMxIiwiZjE3MGYxNzAtMDAwMC0wMDAwLTAwMDAtYjBiMDAᐳ"}}:::plan - Constant62 --> Lambda15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object13 & Connection14 & Lambda15 & Constant61 --> PgSelect16 - Object42{{"Object[42∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access37{{"Access[37∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant6 & Constant61 & Constant6 & Access37 --> Object42 - Object38{{"Object[38∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant61 & Access37 --> Object38 - PgCursor49{{"PgCursor[49∈1] ➊"}}:::plan - PgSelectSingle47{{"PgSelectSingle[47∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ16.cursorDetailsᐳ"}}:::plan - PgSelectSingle47 & Access20 --> PgCursor49 - PgCursor55{{"PgCursor[55∈1] ➊"}}:::plan - PgSelectSingle53{{"PgSelectSingle[53∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle53 & Access20 --> PgCursor55 - PgSelect56[["PgSelect[56∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object13 & Connection14 --> PgSelect56 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - PgSelect16 --> Access20 - PgPageInfo34{{"PgPageInfo[34∈1] ➊"}}:::plan - Connection14 --> PgPageInfo34 - PgSelect16 --> Access37 - Lambda39{{"Lambda[39∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant62 --> Lambda16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 + PgSelect17 --> Access21 + PgPageInfo35{{"PgPageInfo[35∈0] ➊"}}:::plan + Connection14 --> PgPageInfo35 + PgSelect17 --> Access37 + Lambda39{{"Lambda[39∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object38 --> Lambda39 - Lambda43{{"Lambda[43∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda43{{"Lambda[43∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object42 --> Lambda43 - First45{{"First[45∈1] ➊"}}:::plan - PgSelectRows17 --> First45 + First45{{"First[45∈0] ➊"}}:::plan + PgSelectRows18 --> First45 First45 --> PgSelectSingle47 - Last51{{"Last[51∈1] ➊"}}:::plan - PgSelectRows17 --> Last51 + Last51{{"Last[51∈0] ➊"}}:::plan + PgSelectRows18 --> Last51 Last51 --> PgSelectSingle53 - First57{{"First[57∈1] ➊"}}:::plan - PgSelectRows58[["PgSelectRows[58∈1] ➊"]]:::plan + First57{{"First[57∈0] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈0] ➊"]]:::plan PgSelectRows58 --> First57 PgSelect56 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle59{{"PgSelectSingle[59∈0] ➊
ᐸmessagesᐳ"}}:::plan First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle59 --> PgClassExpression60 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸmessagesᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgCursor21{{"PgCursor[21∈3]"}}:::plan - PgSelectSingle19 & Access20 --> PgCursor21 - PgSelect24[["PgSelect[24∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object13 & PgClassExpression23 --> PgSelect24 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression22 - PgSelectSingle19 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan - PgSelectRows29 --> First28 - PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸusersᐳ"}}:::plan - First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle20 & Access21 --> PgCursor22 + PgSelect25[["PgSelect[25∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object13 & PgClassExpression24 --> PgSelect25 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + __Item19 --> PgSelectSingle20 + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression23 + PgSelectSingle20 --> PgClassExpression24 + First29{{"First[29∈1]"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan + PgSelectRows30 --> First29 + PgSelect25 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1]
ᐸusersᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/connections/pagination-before-last" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 61, 62, 13, 16, 14, 35
2: Lambda[15]
3: PgSelect[17], PgSelect[56]
ᐳ: 21, 37, 38, 39, 42, 43
4: PgSelectRows[18], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access11,Access12,Object13,Connection14,Lambda15,Constant61,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 15, 61, 6

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[16], PgSelect[56]
ᐳ: 34, 20, 37, 38, 39, 42, 43
2: PgSelectRows[17], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda15,Lambda16,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,Constant61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: 29, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17,Access20,PgPageInfo34,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 20, 13

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19, 20, 13

ROOT PgSelectSingle{2}ᐸmessagesᐳ[19]
1:
ᐳ: 21, 22, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor21,PgClassExpression22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸusersᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression31,PgClassExpression32 bucket4 + class Bucket1,__Item19,PgSelectSingle20,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.sql index 863ed78dee..e359584540 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.deopt.mermaid index 96e0083221..7143b90d1a 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.deopt.mermaid @@ -9,106 +9,98 @@ graph TD %% plan dependencies + PgSelect18[["PgSelect[18∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan + Lambda17{{"Lambda[17∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda16 -->|rejectNull| PgSelect18 + Object14 & Connection15 & Lambda17 & Constant62 --> PgSelect18 + Object43{{"Object[43∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access38{{"Access[38∈0] ➊
ᐸ18.hasMoreᐳ"}}:::plan + Constant62 & Access38 --> Object43 + Constant62 & Lambda17 --> Connection15 + Object39{{"Object[39∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant62 & Access38 --> Object39 + PgSelect57[["PgSelect[57∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda16 -->|rejectNull| PgSelect57 + Object14 & Connection15 --> PgSelect57 Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant62 & Lambda16 --> Connection15 + PgCursor50{{"PgCursor[50∈0] ➊"}}:::plan + PgSelectSingle48{{"PgSelectSingle[48∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access22{{"Access[22∈0] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan + PgSelectSingle48 & Access22 --> PgCursor50 + PgCursor56{{"PgCursor[56∈0] ➊"}}:::plan + PgSelectSingle54{{"PgSelectSingle[54∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle54 & Access22 --> PgCursor56 Access9{{"Access[9∈0] ➊
ᐸ0.valueᐳ"}}:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 - Access9 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object14 & Connection15 & Lambda16 & Constant62 --> PgSelect17 - Object43{{"Object[43∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access38{{"Access[38∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant6 & Constant62 & Constant6 & Access38 --> Object43 - Object39{{"Object[39∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant62 & Access38 --> Object39 - PgCursor50{{"PgCursor[50∈1] ➊"}}:::plan - PgSelectSingle48{{"PgSelectSingle[48∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan - PgSelectSingle48 & Access21 --> PgCursor50 - PgCursor56{{"PgCursor[56∈1] ➊"}}:::plan - PgSelectSingle54{{"PgSelectSingle[54∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle54 & Access21 --> PgCursor56 - PgSelect57[["PgSelect[57∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object14 & Connection15 --> PgSelect57 - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan - PgSelect17 --> PgSelectRows18 - PgSelect17 --> Access21 - PgPageInfo35{{"PgPageInfo[35∈1] ➊"}}:::plan - Connection15 --> PgPageInfo35 - PgSelect17 --> Access38 - Lambda40{{"Lambda[40∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + Access9 --> Lambda17 + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelect18 --> PgSelectRows19 + PgSelect18 --> Access22 + PgPageInfo36{{"PgPageInfo[36∈0] ➊"}}:::plan + Connection15 --> PgPageInfo36 + PgSelect18 --> Access38 + Lambda40{{"Lambda[40∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object39 --> Lambda40 - Lambda44{{"Lambda[44∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda44{{"Lambda[44∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object43 --> Lambda44 - First46{{"First[46∈1] ➊"}}:::plan - PgSelectRows18 --> First46 + First46{{"First[46∈0] ➊"}}:::plan + PgSelectRows19 --> First46 First46 --> PgSelectSingle48 - Last52{{"Last[52∈1] ➊"}}:::plan - PgSelectRows18 --> Last52 + Last52{{"Last[52∈0] ➊"}}:::plan + PgSelectRows19 --> Last52 Last52 --> PgSelectSingle54 - First58{{"First[58∈1] ➊"}}:::plan - PgSelectRows59[["PgSelectRows[59∈1] ➊"]]:::plan + First58{{"First[58∈0] ➊"}}:::plan + PgSelectRows59[["PgSelectRows[59∈0] ➊"]]:::plan PgSelectRows59 --> First58 PgSelect57 --> PgSelectRows59 - PgSelectSingle60{{"PgSelectSingle[60∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle60{{"PgSelectSingle[60∈0] ➊
ᐸmessagesᐳ"}}:::plan First58 --> PgSelectSingle60 - PgClassExpression61{{"PgClassExpression[61∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle60 --> PgClassExpression61 - __Item19[/"__Item[19∈2]
ᐸ18ᐳ"\]:::itemplan - PgSelectRows18 ==> __Item19 - PgSelectSingle20{{"PgSelectSingle[20∈2]
ᐸmessagesᐳ"}}:::plan - __Item19 --> PgSelectSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgSelectSingle20 & Access21 --> PgCursor22 - PgSelect25[["PgSelect[25∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object14 & PgClassExpression24 --> PgSelect25 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression23 - PgSelectSingle20 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸusersᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression33 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor23{{"PgCursor[23∈1]"}}:::plan + PgSelectSingle21{{"PgSelectSingle[21∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle21 & Access22 --> PgCursor23 + PgSelect26[["PgSelect[26∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object14 & PgClassExpression25 --> PgSelect26 + __Item20[/"__Item[20∈1]
ᐸ19ᐳ"\]:::itemplan + PgSelectRows19 ==> __Item20 + __Item20 --> PgSelectSingle21 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression24 + PgSelectSingle21 --> PgClassExpression25 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect26 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸusersᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 %% define steps subgraph "Buckets for queries/connections/pagination-before-last.variables" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 12, 13, 62, 14, 17, 15, 36
2: Lambda[16]
3: PgSelect[18], PgSelect[57]
ᐳ: 22, 38, 39, 40, 43, 44
4: PgSelectRows[19], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Constant6,Access9,Access12,Access13,Object14,Connection15,Lambda16,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 62, 6

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[17], PgSelect[57]
ᐳ: 35, 21, 38, 39, 40, 43, 44
2: PgSelectRows[18], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Constant7,Access9,Access12,Access13,Object14,Connection15,Lambda16,Lambda17,PgSelect18,PgSelectRows19,Access22,PgPageInfo36,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 22, 14

ROOT __Item{1}ᐸ19ᐳ[20]
1:
ᐳ: 21, 23, 24, 25
2: PgSelect[26]
3: PgSelectRows[31]
ᐳ: 30, 32, 33, 34"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 14

ROOT __Item{2}ᐸ18ᐳ[19]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 14

ROOT PgSelectSingle{2}ᐸmessagesᐳ[20]
1:
ᐳ: 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{3}ᐸusersᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32,PgClassExpression33 bucket4 + class Bucket1,__Item20,PgSelectSingle21,PgCursor23,PgClassExpression24,PgClassExpression25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.deopt.sql index 863ed78dee..e359584540 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.deopt.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.mermaid index 96e0083221..7143b90d1a 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.mermaid @@ -9,106 +9,98 @@ graph TD %% plan dependencies + PgSelect18[["PgSelect[18∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan + Lambda17{{"Lambda[17∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda16 -->|rejectNull| PgSelect18 + Object14 & Connection15 & Lambda17 & Constant62 --> PgSelect18 + Object43{{"Object[43∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access38{{"Access[38∈0] ➊
ᐸ18.hasMoreᐳ"}}:::plan + Constant62 & Access38 --> Object43 + Constant62 & Lambda17 --> Connection15 + Object39{{"Object[39∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant62 & Access38 --> Object39 + PgSelect57[["PgSelect[57∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda16 -->|rejectNull| PgSelect57 + Object14 & Connection15 --> PgSelect57 Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant62 & Lambda16 --> Connection15 + PgCursor50{{"PgCursor[50∈0] ➊"}}:::plan + PgSelectSingle48{{"PgSelectSingle[48∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access22{{"Access[22∈0] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan + PgSelectSingle48 & Access22 --> PgCursor50 + PgCursor56{{"PgCursor[56∈0] ➊"}}:::plan + PgSelectSingle54{{"PgSelectSingle[54∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle54 & Access22 --> PgCursor56 Access9{{"Access[9∈0] ➊
ᐸ0.valueᐳ"}}:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 - Access9 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object14 & Connection15 & Lambda16 & Constant62 --> PgSelect17 - Object43{{"Object[43∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access38{{"Access[38∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant6 & Constant62 & Constant6 & Access38 --> Object43 - Object39{{"Object[39∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant62 & Access38 --> Object39 - PgCursor50{{"PgCursor[50∈1] ➊"}}:::plan - PgSelectSingle48{{"PgSelectSingle[48∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan - PgSelectSingle48 & Access21 --> PgCursor50 - PgCursor56{{"PgCursor[56∈1] ➊"}}:::plan - PgSelectSingle54{{"PgSelectSingle[54∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle54 & Access21 --> PgCursor56 - PgSelect57[["PgSelect[57∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object14 & Connection15 --> PgSelect57 - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan - PgSelect17 --> PgSelectRows18 - PgSelect17 --> Access21 - PgPageInfo35{{"PgPageInfo[35∈1] ➊"}}:::plan - Connection15 --> PgPageInfo35 - PgSelect17 --> Access38 - Lambda40{{"Lambda[40∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + Access9 --> Lambda17 + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelect18 --> PgSelectRows19 + PgSelect18 --> Access22 + PgPageInfo36{{"PgPageInfo[36∈0] ➊"}}:::plan + Connection15 --> PgPageInfo36 + PgSelect18 --> Access38 + Lambda40{{"Lambda[40∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object39 --> Lambda40 - Lambda44{{"Lambda[44∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda44{{"Lambda[44∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object43 --> Lambda44 - First46{{"First[46∈1] ➊"}}:::plan - PgSelectRows18 --> First46 + First46{{"First[46∈0] ➊"}}:::plan + PgSelectRows19 --> First46 First46 --> PgSelectSingle48 - Last52{{"Last[52∈1] ➊"}}:::plan - PgSelectRows18 --> Last52 + Last52{{"Last[52∈0] ➊"}}:::plan + PgSelectRows19 --> Last52 Last52 --> PgSelectSingle54 - First58{{"First[58∈1] ➊"}}:::plan - PgSelectRows59[["PgSelectRows[59∈1] ➊"]]:::plan + First58{{"First[58∈0] ➊"}}:::plan + PgSelectRows59[["PgSelectRows[59∈0] ➊"]]:::plan PgSelectRows59 --> First58 PgSelect57 --> PgSelectRows59 - PgSelectSingle60{{"PgSelectSingle[60∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle60{{"PgSelectSingle[60∈0] ➊
ᐸmessagesᐳ"}}:::plan First58 --> PgSelectSingle60 - PgClassExpression61{{"PgClassExpression[61∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle60 --> PgClassExpression61 - __Item19[/"__Item[19∈2]
ᐸ18ᐳ"\]:::itemplan - PgSelectRows18 ==> __Item19 - PgSelectSingle20{{"PgSelectSingle[20∈2]
ᐸmessagesᐳ"}}:::plan - __Item19 --> PgSelectSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgSelectSingle20 & Access21 --> PgCursor22 - PgSelect25[["PgSelect[25∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object14 & PgClassExpression24 --> PgSelect25 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression23 - PgSelectSingle20 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸusersᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression33 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor23{{"PgCursor[23∈1]"}}:::plan + PgSelectSingle21{{"PgSelectSingle[21∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle21 & Access22 --> PgCursor23 + PgSelect26[["PgSelect[26∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object14 & PgClassExpression25 --> PgSelect26 + __Item20[/"__Item[20∈1]
ᐸ19ᐳ"\]:::itemplan + PgSelectRows19 ==> __Item20 + __Item20 --> PgSelectSingle21 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression24 + PgSelectSingle21 --> PgClassExpression25 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect26 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸusersᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 %% define steps subgraph "Buckets for queries/connections/pagination-before-last.variables" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 12, 13, 62, 14, 17, 15, 36
2: Lambda[16]
3: PgSelect[18], PgSelect[57]
ᐳ: 22, 38, 39, 40, 43, 44
4: PgSelectRows[19], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Constant6,Access9,Access12,Access13,Object14,Connection15,Lambda16,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 62, 6

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[17], PgSelect[57]
ᐳ: 35, 21, 38, 39, 40, 43, 44
2: PgSelectRows[18], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Constant7,Access9,Access12,Access13,Object14,Connection15,Lambda16,Lambda17,PgSelect18,PgSelectRows19,Access22,PgPageInfo36,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 22, 14

ROOT __Item{1}ᐸ19ᐳ[20]
1:
ᐳ: 21, 23, 24, 25
2: PgSelect[26]
3: PgSelectRows[31]
ᐳ: 30, 32, 33, 34"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 14

ROOT __Item{2}ᐸ18ᐳ[19]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 14

ROOT PgSelectSingle{2}ᐸmessagesᐳ[20]
1:
ᐳ: 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{3}ᐸusersᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32,PgClassExpression33 bucket4 + class Bucket1,__Item20,PgSelectSingle21,PgCursor23,PgClassExpression24,PgClassExpression25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.sql index 863ed78dee..e359584540 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before-last.variables.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.deopt.mermaid index 8dae9cff1f..4ae805bb85 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.deopt.mermaid @@ -9,104 +9,96 @@ graph TD %% plan dependencies + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda15[["Lambda[15∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda15 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Lambda16 & Constant61 --> PgSelect17 + Object42{{"Object[42∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access37{{"Access[37∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant61 & Access37 --> Object42 + Constant61 & Lambda16 --> Connection14 + Object38{{"Object[38∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant61 & Access37 --> Object38 + PgSelect56[["PgSelect[56∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda15 -->|rejectNull| PgSelect56 + Object13 & Connection14 --> PgSelect56 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant61 & Lambda15 --> Connection14 + PgCursor49{{"PgCursor[49∈0] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle47 & Access21 --> PgCursor49 + PgCursor55{{"PgCursor[55∈0] ➊"}}:::plan + PgSelectSingle53{{"PgSelectSingle[53∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle53 & Access21 --> PgCursor55 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda15 Constant62{{"Constant[62∈0] ➊
ᐸ'WyJmMGIyOGM5NGMxIiwiY2E3MGNhNzAtMDAwMC0wMDAwLTAwMDAtY2VjMTEᐳ"}}:::plan - Constant62 --> Lambda15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object13 & Connection14 & Lambda15 & Constant61 --> PgSelect16 - Object42{{"Object[42∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access37{{"Access[37∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant61 & Constant6 & Constant6 & Access37 --> Object42 - Object38{{"Object[38∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant61 & Constant6 & Access37 --> Object38 - PgCursor49{{"PgCursor[49∈1] ➊"}}:::plan - PgSelectSingle47{{"PgSelectSingle[47∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ16.cursorDetailsᐳ"}}:::plan - PgSelectSingle47 & Access20 --> PgCursor49 - PgCursor55{{"PgCursor[55∈1] ➊"}}:::plan - PgSelectSingle53{{"PgSelectSingle[53∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle53 & Access20 --> PgCursor55 - PgSelect56[["PgSelect[56∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object13 & Connection14 --> PgSelect56 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - PgSelect16 --> Access20 - PgPageInfo34{{"PgPageInfo[34∈1] ➊"}}:::plan - Connection14 --> PgPageInfo34 - PgSelect16 --> Access37 - Lambda39{{"Lambda[39∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant62 --> Lambda16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 + PgSelect17 --> Access21 + PgPageInfo35{{"PgPageInfo[35∈0] ➊"}}:::plan + Connection14 --> PgPageInfo35 + PgSelect17 --> Access37 + Lambda39{{"Lambda[39∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object38 --> Lambda39 - Lambda43{{"Lambda[43∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda43{{"Lambda[43∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object42 --> Lambda43 - First45{{"First[45∈1] ➊"}}:::plan - PgSelectRows17 --> First45 + First45{{"First[45∈0] ➊"}}:::plan + PgSelectRows18 --> First45 First45 --> PgSelectSingle47 - Last51{{"Last[51∈1] ➊"}}:::plan - PgSelectRows17 --> Last51 + Last51{{"Last[51∈0] ➊"}}:::plan + PgSelectRows18 --> Last51 Last51 --> PgSelectSingle53 - First57{{"First[57∈1] ➊"}}:::plan - PgSelectRows58[["PgSelectRows[58∈1] ➊"]]:::plan + First57{{"First[57∈0] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈0] ➊"]]:::plan PgSelectRows58 --> First57 PgSelect56 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle59{{"PgSelectSingle[59∈0] ➊
ᐸmessagesᐳ"}}:::plan First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle59 --> PgClassExpression60 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸmessagesᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgCursor21{{"PgCursor[21∈3]"}}:::plan - PgSelectSingle19 & Access20 --> PgCursor21 - PgSelect24[["PgSelect[24∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object13 & PgClassExpression23 --> PgSelect24 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression22 - PgSelectSingle19 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan - PgSelectRows29 --> First28 - PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸusersᐳ"}}:::plan - First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle20 & Access21 --> PgCursor22 + PgSelect25[["PgSelect[25∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object13 & PgClassExpression24 --> PgSelect25 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + __Item19 --> PgSelectSingle20 + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression23 + PgSelectSingle20 --> PgClassExpression24 + First29{{"First[29∈1]"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan + PgSelectRows30 --> First29 + PgSelect25 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1]
ᐸusersᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/connections/pagination-before" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 61, 62, 13, 16, 14, 35
2: Lambda[15]
3: PgSelect[17], PgSelect[56]
ᐳ: 21, 37, 38, 39, 42, 43
4: PgSelectRows[18], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access11,Access12,Object13,Connection14,Lambda15,Constant61,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 15, 61, 6

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[16], PgSelect[56]
ᐳ: 34, 20, 37, 38, 39, 42, 43
2: PgSelectRows[17], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda15,Lambda16,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,Constant61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: 29, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17,Access20,PgPageInfo34,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 20, 13

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19, 20, 13

ROOT PgSelectSingle{2}ᐸmessagesᐳ[19]
1:
ᐳ: 21, 22, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor21,PgClassExpression22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸusersᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression31,PgClassExpression32 bucket4 + class Bucket1,__Item19,PgSelectSingle20,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.deopt.sql index 78ebecd8ee..8a89bbabdd 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.deopt.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.mermaid index 8dae9cff1f..4ae805bb85 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.mermaid @@ -9,104 +9,96 @@ graph TD %% plan dependencies + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda15[["Lambda[15∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda15 -->|rejectNull| PgSelect17 + Object13 & Connection14 & Lambda16 & Constant61 --> PgSelect17 + Object42{{"Object[42∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access37{{"Access[37∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant61 & Access37 --> Object42 + Constant61 & Lambda16 --> Connection14 + Object38{{"Object[38∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant61 & Access37 --> Object38 + PgSelect56[["PgSelect[56∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda15 -->|rejectNull| PgSelect56 + Object13 & Connection14 --> PgSelect56 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant61{{"Constant[61∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant61 & Lambda15 --> Connection14 + PgCursor49{{"PgCursor[49∈0] ➊"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle47 & Access21 --> PgCursor49 + PgCursor55{{"PgCursor[55∈0] ➊"}}:::plan + PgSelectSingle53{{"PgSelectSingle[53∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle53 & Access21 --> PgCursor55 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda15 Constant62{{"Constant[62∈0] ➊
ᐸ'WyJmMGIyOGM5NGMxIiwiY2E3MGNhNzAtMDAwMC0wMDAwLTAwMDAtY2VjMTEᐳ"}}:::plan - Constant62 --> Lambda15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object13 & Connection14 & Lambda15 & Constant61 --> PgSelect16 - Object42{{"Object[42∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access37{{"Access[37∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant61 & Constant6 & Constant6 & Access37 --> Object42 - Object38{{"Object[38∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant61 & Constant6 & Access37 --> Object38 - PgCursor49{{"PgCursor[49∈1] ➊"}}:::plan - PgSelectSingle47{{"PgSelectSingle[47∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ16.cursorDetailsᐳ"}}:::plan - PgSelectSingle47 & Access20 --> PgCursor49 - PgCursor55{{"PgCursor[55∈1] ➊"}}:::plan - PgSelectSingle53{{"PgSelectSingle[53∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle53 & Access20 --> PgCursor55 - PgSelect56[["PgSelect[56∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object13 & Connection14 --> PgSelect56 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - PgSelect16 --> Access20 - PgPageInfo34{{"PgPageInfo[34∈1] ➊"}}:::plan - Connection14 --> PgPageInfo34 - PgSelect16 --> Access37 - Lambda39{{"Lambda[39∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant62 --> Lambda16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 + PgSelect17 --> Access21 + PgPageInfo35{{"PgPageInfo[35∈0] ➊"}}:::plan + Connection14 --> PgPageInfo35 + PgSelect17 --> Access37 + Lambda39{{"Lambda[39∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object38 --> Lambda39 - Lambda43{{"Lambda[43∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda43{{"Lambda[43∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object42 --> Lambda43 - First45{{"First[45∈1] ➊"}}:::plan - PgSelectRows17 --> First45 + First45{{"First[45∈0] ➊"}}:::plan + PgSelectRows18 --> First45 First45 --> PgSelectSingle47 - Last51{{"Last[51∈1] ➊"}}:::plan - PgSelectRows17 --> Last51 + Last51{{"Last[51∈0] ➊"}}:::plan + PgSelectRows18 --> Last51 Last51 --> PgSelectSingle53 - First57{{"First[57∈1] ➊"}}:::plan - PgSelectRows58[["PgSelectRows[58∈1] ➊"]]:::plan + First57{{"First[57∈0] ➊"}}:::plan + PgSelectRows58[["PgSelectRows[58∈0] ➊"]]:::plan PgSelectRows58 --> First57 PgSelect56 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle59{{"PgSelectSingle[59∈0] ➊
ᐸmessagesᐳ"}}:::plan First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle59 --> PgClassExpression60 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸmessagesᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgCursor21{{"PgCursor[21∈3]"}}:::plan - PgSelectSingle19 & Access20 --> PgCursor21 - PgSelect24[["PgSelect[24∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object13 & PgClassExpression23 --> PgSelect24 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression22 - PgSelectSingle19 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan - PgSelectRows29 --> First28 - PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸusersᐳ"}}:::plan - First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle20 & Access21 --> PgCursor22 + PgSelect25[["PgSelect[25∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object13 & PgClassExpression24 --> PgSelect25 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + __Item19 --> PgSelectSingle20 + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression23 + PgSelectSingle20 --> PgClassExpression24 + First29{{"First[29∈1]"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan + PgSelectRows30 --> First29 + PgSelect25 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1]
ᐸusersᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/connections/pagination-before" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 11, 12, 61, 62, 13, 16, 14, 35
2: Lambda[15]
3: PgSelect[17], PgSelect[56]
ᐳ: 21, 37, 38, 39, 42, 43
4: PgSelectRows[18], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access11,Access12,Object13,Connection14,Lambda15,Constant61,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 15, 61, 6

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[16], PgSelect[56]
ᐳ: 34, 20, 37, 38, 39, 42, 43
2: PgSelectRows[17], PgSelectRows[58]
ᐳ: 45, 47, 49, 51, 53, 55, 57, 59, 60"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Lambda15,Lambda16,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,Constant61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: 29, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17,Access20,PgPageInfo34,Access37,Object38,Lambda39,Object42,Lambda43,First45,PgSelectSingle47,PgCursor49,Last51,PgSelectSingle53,PgCursor55,PgSelect56,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 20, 13

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19, 20, 13

ROOT PgSelectSingle{2}ᐸmessagesᐳ[19]
1:
ᐳ: 21, 22, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor21,PgClassExpression22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸusersᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression31,PgClassExpression32 bucket4 + class Bucket1,__Item19,PgSelectSingle20,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.sql index 78ebecd8ee..8a89bbabdd 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.deopt.mermaid index 4b3dd29805..0541d58310 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.deopt.mermaid @@ -9,106 +9,98 @@ graph TD %% plan dependencies + PgSelect18[["PgSelect[18∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan + Lambda17{{"Lambda[17∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda16 -->|rejectNull| PgSelect18 + Object14 & Connection15 & Lambda17 & Constant62 --> PgSelect18 + Object43{{"Object[43∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access38{{"Access[38∈0] ➊
ᐸ18.hasMoreᐳ"}}:::plan + Constant62 & Access38 --> Object43 + Constant62 & Lambda17 --> Connection15 + Object39{{"Object[39∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant62 & Access38 --> Object39 + PgSelect57[["PgSelect[57∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda16 -->|rejectNull| PgSelect57 + Object14 & Connection15 --> PgSelect57 Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant62 & Lambda16 --> Connection15 + PgCursor50{{"PgCursor[50∈0] ➊"}}:::plan + PgSelectSingle48{{"PgSelectSingle[48∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access22{{"Access[22∈0] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan + PgSelectSingle48 & Access22 --> PgCursor50 + PgCursor56{{"PgCursor[56∈0] ➊"}}:::plan + PgSelectSingle54{{"PgSelectSingle[54∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle54 & Access22 --> PgCursor56 Access9{{"Access[9∈0] ➊
ᐸ0.valueᐳ"}}:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 - Access9 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object14 & Connection15 & Lambda16 & Constant62 --> PgSelect17 - Object43{{"Object[43∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access38{{"Access[38∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant62 & Constant6 & Constant6 & Access38 --> Object43 - Object39{{"Object[39∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant62 & Constant6 & Access38 --> Object39 - PgCursor50{{"PgCursor[50∈1] ➊"}}:::plan - PgSelectSingle48{{"PgSelectSingle[48∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan - PgSelectSingle48 & Access21 --> PgCursor50 - PgCursor56{{"PgCursor[56∈1] ➊"}}:::plan - PgSelectSingle54{{"PgSelectSingle[54∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle54 & Access21 --> PgCursor56 - PgSelect57[["PgSelect[57∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object14 & Connection15 --> PgSelect57 - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan - PgSelect17 --> PgSelectRows18 - PgSelect17 --> Access21 - PgPageInfo35{{"PgPageInfo[35∈1] ➊"}}:::plan - Connection15 --> PgPageInfo35 - PgSelect17 --> Access38 - Lambda40{{"Lambda[40∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + Access9 --> Lambda17 + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelect18 --> PgSelectRows19 + PgSelect18 --> Access22 + PgPageInfo36{{"PgPageInfo[36∈0] ➊"}}:::plan + Connection15 --> PgPageInfo36 + PgSelect18 --> Access38 + Lambda40{{"Lambda[40∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object39 --> Lambda40 - Lambda44{{"Lambda[44∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda44{{"Lambda[44∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object43 --> Lambda44 - First46{{"First[46∈1] ➊"}}:::plan - PgSelectRows18 --> First46 + First46{{"First[46∈0] ➊"}}:::plan + PgSelectRows19 --> First46 First46 --> PgSelectSingle48 - Last52{{"Last[52∈1] ➊"}}:::plan - PgSelectRows18 --> Last52 + Last52{{"Last[52∈0] ➊"}}:::plan + PgSelectRows19 --> Last52 Last52 --> PgSelectSingle54 - First58{{"First[58∈1] ➊"}}:::plan - PgSelectRows59[["PgSelectRows[59∈1] ➊"]]:::plan + First58{{"First[58∈0] ➊"}}:::plan + PgSelectRows59[["PgSelectRows[59∈0] ➊"]]:::plan PgSelectRows59 --> First58 PgSelect57 --> PgSelectRows59 - PgSelectSingle60{{"PgSelectSingle[60∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle60{{"PgSelectSingle[60∈0] ➊
ᐸmessagesᐳ"}}:::plan First58 --> PgSelectSingle60 - PgClassExpression61{{"PgClassExpression[61∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle60 --> PgClassExpression61 - __Item19[/"__Item[19∈2]
ᐸ18ᐳ"\]:::itemplan - PgSelectRows18 ==> __Item19 - PgSelectSingle20{{"PgSelectSingle[20∈2]
ᐸmessagesᐳ"}}:::plan - __Item19 --> PgSelectSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgSelectSingle20 & Access21 --> PgCursor22 - PgSelect25[["PgSelect[25∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object14 & PgClassExpression24 --> PgSelect25 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression23 - PgSelectSingle20 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸusersᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression33 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor23{{"PgCursor[23∈1]"}}:::plan + PgSelectSingle21{{"PgSelectSingle[21∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle21 & Access22 --> PgCursor23 + PgSelect26[["PgSelect[26∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object14 & PgClassExpression25 --> PgSelect26 + __Item20[/"__Item[20∈1]
ᐸ19ᐳ"\]:::itemplan + PgSelectRows19 ==> __Item20 + __Item20 --> PgSelectSingle21 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression24 + PgSelectSingle21 --> PgClassExpression25 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect26 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸusersᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 %% define steps subgraph "Buckets for queries/connections/pagination-before.variables" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 12, 13, 62, 14, 17, 15, 36
2: Lambda[16]
3: PgSelect[18], PgSelect[57]
ᐳ: 22, 38, 39, 40, 43, 44
4: PgSelectRows[19], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Constant6,Access9,Access12,Access13,Object14,Connection15,Lambda16,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 62, 6

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[17], PgSelect[57]
ᐳ: 35, 21, 38, 39, 40, 43, 44
2: PgSelectRows[18], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Constant7,Access9,Access12,Access13,Object14,Connection15,Lambda16,Lambda17,PgSelect18,PgSelectRows19,Access22,PgPageInfo36,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 22, 14

ROOT __Item{1}ᐸ19ᐳ[20]
1:
ᐳ: 21, 23, 24, 25
2: PgSelect[26]
3: PgSelectRows[31]
ᐳ: 30, 32, 33, 34"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 14

ROOT __Item{2}ᐸ18ᐳ[19]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 14

ROOT PgSelectSingle{2}ᐸmessagesᐳ[20]
1:
ᐳ: 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{3}ᐸusersᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32,PgClassExpression33 bucket4 + class Bucket1,__Item20,PgSelectSingle21,PgCursor23,PgClassExpression24,PgClassExpression25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.deopt.sql index 78ebecd8ee..8a89bbabdd 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.deopt.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.mermaid index 4b3dd29805..0541d58310 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.mermaid @@ -9,106 +9,98 @@ graph TD %% plan dependencies + PgSelect18[["PgSelect[18∈0] ➊
ᐸmessages+1ᐳ"]]:::plan Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda16[["Lambda[16∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan + Lambda17{{"Lambda[17∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda16 -->|rejectNull| PgSelect18 + Object14 & Connection15 & Lambda17 & Constant62 --> PgSelect18 + Object43{{"Object[43∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access38{{"Access[38∈0] ➊
ᐸ18.hasMoreᐳ"}}:::plan + Constant62 & Access38 --> Object43 + Constant62 & Lambda17 --> Connection15 + Object39{{"Object[39∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant62 & Access38 --> Object39 + PgSelect57[["PgSelect[57∈0] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda16 -->|rejectNull| PgSelect57 + Object14 & Connection15 --> PgSelect57 Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant62{{"Constant[62∈0] ➊
ᐸ3ᐳ"}}:::plan - Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant62 & Lambda16 --> Connection15 + PgCursor50{{"PgCursor[50∈0] ➊"}}:::plan + PgSelectSingle48{{"PgSelectSingle[48∈0] ➊
ᐸmessagesᐳ"}}:::plan + Access22{{"Access[22∈0] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan + PgSelectSingle48 & Access22 --> PgCursor50 + PgCursor56{{"PgCursor[56∈0] ➊"}}:::plan + PgSelectSingle54{{"PgSelectSingle[54∈0] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle54 & Access22 --> PgCursor56 Access9{{"Access[9∈0] ➊
ᐸ0.valueᐳ"}}:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 - Access9 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸmessages+1ᐳ"]]:::plan - Object14 & Connection15 & Lambda16 & Constant62 --> PgSelect17 - Object43{{"Object[43∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access38{{"Access[38∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant62 & Constant6 & Constant6 & Access38 --> Object43 - Object39{{"Object[39∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant62 & Constant6 & Access38 --> Object39 - PgCursor50{{"PgCursor[50∈1] ➊"}}:::plan - PgSelectSingle48{{"PgSelectSingle[48∈1] ➊
ᐸmessagesᐳ"}}:::plan - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan - PgSelectSingle48 & Access21 --> PgCursor50 - PgCursor56{{"PgCursor[56∈1] ➊"}}:::plan - PgSelectSingle54{{"PgSelectSingle[54∈1] ➊
ᐸmessagesᐳ"}}:::plan - PgSelectSingle54 & Access21 --> PgCursor56 - PgSelect57[["PgSelect[57∈1] ➊
ᐸmessages(aggregate)ᐳ"]]:::plan - Object14 & Connection15 --> PgSelect57 - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan - PgSelect17 --> PgSelectRows18 - PgSelect17 --> Access21 - PgPageInfo35{{"PgPageInfo[35∈1] ➊"}}:::plan - Connection15 --> PgPageInfo35 - PgSelect17 --> Access38 - Lambda40{{"Lambda[40∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda16 + Access9 --> Lambda17 + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelect18 --> PgSelectRows19 + PgSelect18 --> Access22 + PgPageInfo36{{"PgPageInfo[36∈0] ➊"}}:::plan + Connection15 --> PgPageInfo36 + PgSelect18 --> Access38 + Lambda40{{"Lambda[40∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object39 --> Lambda40 - Lambda44{{"Lambda[44∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda44{{"Lambda[44∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object43 --> Lambda44 - First46{{"First[46∈1] ➊"}}:::plan - PgSelectRows18 --> First46 + First46{{"First[46∈0] ➊"}}:::plan + PgSelectRows19 --> First46 First46 --> PgSelectSingle48 - Last52{{"Last[52∈1] ➊"}}:::plan - PgSelectRows18 --> Last52 + Last52{{"Last[52∈0] ➊"}}:::plan + PgSelectRows19 --> Last52 Last52 --> PgSelectSingle54 - First58{{"First[58∈1] ➊"}}:::plan - PgSelectRows59[["PgSelectRows[59∈1] ➊"]]:::plan + First58{{"First[58∈0] ➊"}}:::plan + PgSelectRows59[["PgSelectRows[59∈0] ➊"]]:::plan PgSelectRows59 --> First58 PgSelect57 --> PgSelectRows59 - PgSelectSingle60{{"PgSelectSingle[60∈1] ➊
ᐸmessagesᐳ"}}:::plan + PgSelectSingle60{{"PgSelectSingle[60∈0] ➊
ᐸmessagesᐳ"}}:::plan First58 --> PgSelectSingle60 - PgClassExpression61{{"PgClassExpression[61∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle60 --> PgClassExpression61 - __Item19[/"__Item[19∈2]
ᐸ18ᐳ"\]:::itemplan - PgSelectRows18 ==> __Item19 - PgSelectSingle20{{"PgSelectSingle[20∈2]
ᐸmessagesᐳ"}}:::plan - __Item19 --> PgSelectSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgSelectSingle20 & Access21 --> PgCursor22 - PgSelect25[["PgSelect[25∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object14 & PgClassExpression24 --> PgSelect25 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression23 - PgSelectSingle20 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸusersᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression33 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor23{{"PgCursor[23∈1]"}}:::plan + PgSelectSingle21{{"PgSelectSingle[21∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle21 & Access22 --> PgCursor23 + PgSelect26[["PgSelect[26∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object14 & PgClassExpression25 --> PgSelect26 + __Item20[/"__Item[20∈1]
ᐸ19ᐳ"\]:::itemplan + PgSelectRows19 ==> __Item20 + __Item20 --> PgSelectSingle21 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression24 + PgSelectSingle21 --> PgClassExpression25 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect26 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸusersᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 %% define steps subgraph "Buckets for queries/connections/pagination-before.variables" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 12, 13, 62, 14, 17, 15, 36
2: Lambda[16]
3: PgSelect[18], PgSelect[57]
ᐳ: 22, 38, 39, 40, 43, 44
4: PgSelectRows[19], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Constant6,Access9,Access12,Access13,Object14,Connection15,Lambda16,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 62, 6

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[17], PgSelect[57]
ᐳ: 35, 21, 38, 39, 40, 43, 44
2: PgSelectRows[18], PgSelectRows[59]
ᐳ: 46, 48, 50, 52, 54, 56, 58, 60, 61"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Constant7,Access9,Access12,Access13,Object14,Connection15,Lambda16,Lambda17,PgSelect18,PgSelectRows19,Access22,PgPageInfo36,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61,Constant62 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 22, 14

ROOT __Item{1}ᐸ19ᐳ[20]
1:
ᐳ: 21, 23, 24, 25
2: PgSelect[26]
3: PgSelectRows[31]
ᐳ: 30, 32, 33, 34"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgSelectRows18,Access21,PgPageInfo35,Access38,Object39,Lambda40,Object43,Lambda44,First46,PgSelectSingle48,PgCursor50,Last52,PgSelectSingle54,PgCursor56,PgSelect57,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression61 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 14

ROOT __Item{2}ᐸ18ᐳ[19]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 14

ROOT PgSelectSingle{2}ᐸmessagesᐳ[20]
1:
ᐳ: 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{3}ᐸusersᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32,PgClassExpression33 bucket4 + class Bucket1,__Item20,PgSelectSingle21,PgCursor23,PgClassExpression24,PgClassExpression25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.sql index 78ebecd8ee..8a89bbabdd 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-before.variables.sql @@ -5,9 +5,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ) and ( __messages__."id" < $1::"uuid" ) @@ -19,9 +19,9 @@ select from app_public.messages as __messages__ where ( - __messages__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __messages__.archived_at is null ); select __users_result__.* diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.deopt.mermaid index fe2f29d1a9..cc3e67ae7b 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.deopt.mermaid @@ -11,117 +11,110 @@ graph TD %% plan dependencies PgSelect9[["PgSelect[9∈0] ➊
ᐸforumsᐳ"]]:::plan Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant68{{"Constant[68∈0] ➊
ᐸ2ᐳ"}}:::plan - Object12 & Constant68 --> PgSelect9 + Constant71{{"Constant[71∈0] ➊
ᐸ2ᐳ"}}:::plan + Lambda13[["Lambda[13∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object12 & Constant71 & Lambda13 --> PgSelect9 Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 + Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan + Constant71 --> Connection25 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 - PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan - PgSelect9 --> PgSelectRows13 - Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan - Constant68 --> Connection24 + Constant72{{"Constant[72∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant72 --> Lambda13 + PgSelectRows14[["PgSelectRows[14∈0] ➊"]]:::plan + PgSelect9 --> PgSelectRows14 + Lambda27[["Lambda[27∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant73{{"Constant[73∈0] ➊
ᐸ'NO'ᐳ"}}:::plan + Constant73 --> Lambda27 + PgPageInfo44{{"PgPageInfo[44∈0] ➊"}}:::plan + Connection25 --> PgPageInfo44 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant8{{"Constant[8∈0] ➊
ᐸundefinedᐳ"}}:::plan - __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan - PgSelectRows13 ==> __Item14 - PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan - __Item14 --> PgSelectSingle15 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression16 - PgSelect25[["PgSelect[25∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression19 & Connection24 & Constant68 --> PgSelect25 - Object49{{"Object[49∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access44{{"Access[44∈3]
ᐸ25.hasMoreᐳ"}}:::plan - Constant8 & Constant68 & Constant8 & Access44 --> Object49 - Object45{{"Object[45∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant8 & Constant68 & Access44 --> Object45 - PgSelect63[["PgSelect[63∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object12 & PgClassExpression19 & Connection24 --> PgSelect63 - PgCursor56{{"PgCursor[56∈3]"}}:::plan - PgSelectSingle54{{"PgSelectSingle[54∈3]
ᐸmessagesᐳ"}}:::plan - Access55{{"Access[55∈3]
ᐸ25.cursorDetailsᐳ"}}:::plan - PgSelectSingle54 & Access55 --> PgCursor56 - PgCursor62{{"PgCursor[62∈3]"}}:::plan - PgSelectSingle60{{"PgSelectSingle[60∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle60 & Access55 --> PgCursor62 - PgSelectSingle15 --> PgClassExpression19 - PgSelectRows26[["PgSelectRows[26∈3]"]]:::plan - PgSelect25 --> PgSelectRows26 - PgPageInfo41{{"PgPageInfo[41∈3] ➊"}}:::plan - Connection24 --> PgPageInfo41 - PgSelect25 --> Access44 - Lambda46{{"Lambda[46∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object45 --> Lambda46 - Lambda50{{"Lambda[50∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object49 --> Lambda50 - First52{{"First[52∈3]"}}:::plan - PgSelectRows26 --> First52 - First52 --> PgSelectSingle54 - PgSelect25 --> Access55 - Last58{{"Last[58∈3]"}}:::plan - PgSelectRows26 --> Last58 - Last58 --> PgSelectSingle60 - First64{{"First[64∈3]"}}:::plan - PgSelectRows65[["PgSelectRows[65∈3]"]]:::plan - PgSelectRows65 --> First64 - PgSelect63 --> PgSelectRows65 - PgSelectSingle66{{"PgSelectSingle[66∈3]
ᐸmessagesᐳ"}}:::plan - First64 --> PgSelectSingle66 - PgClassExpression67{{"PgClassExpression[67∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle66 --> PgClassExpression67 - __Item27[/"__Item[27∈4]
ᐸ26ᐳ"\]:::itemplan - PgSelectRows26 ==> __Item27 - PgSelectSingle28{{"PgSelectSingle[28∈4]
ᐸmessagesᐳ"}}:::plan - __Item27 --> PgSelectSingle28 - PgSelect31[["PgSelect[31∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression30 --> PgSelect31 - PgClassExpression29{{"PgClassExpression[29∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression29 - PgSelectSingle28 --> PgClassExpression30 - First35{{"First[35∈5]"}}:::plan - PgSelectRows36[["PgSelectRows[36∈5]"]]:::plan - PgSelectRows36 --> First35 - PgSelect31 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈5]
ᐸusersᐳ"}}:::plan - First35 --> PgSelectSingle37 - PgClassExpression38{{"PgClassExpression[38∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression39 + PgSelect28[["PgSelect[28∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda27 -->|rejectNull| PgSelect28 + Object12 & PgClassExpression20 & PgClassExpression26 & Connection25 & Constant71 --> PgSelect28 + PgSelect66[["PgSelect[66∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda27 -->|rejectNull| PgSelect66 + Object12 & PgClassExpression20 & PgClassExpression26 & Connection25 --> PgSelect66 + Object52{{"Object[52∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access46{{"Access[46∈1]
ᐸ28.hasMoreᐳ"}}:::plan + Constant71 & Access46 --> Object52 + Object47{{"Object[47∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant71 & Access46 --> Object47 + PgCursor59{{"PgCursor[59∈1]"}}:::plan + PgSelectSingle57{{"PgSelectSingle[57∈1]
ᐸmessagesᐳ"}}:::plan + Access58{{"Access[58∈1]
ᐸ28.cursorDetailsᐳ"}}:::plan + PgSelectSingle57 & Access58 --> PgCursor59 + PgCursor65{{"PgCursor[65∈1]"}}:::plan + PgSelectSingle63{{"PgSelectSingle[63∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle63 & Access58 --> PgCursor65 + __Item15[/"__Item[15∈1]
ᐸ14ᐳ"\]:::itemplan + PgSelectRows14 ==> __Item15 + PgSelectSingle16{{"PgSelectSingle[16∈1]
ᐸforumsᐳ"}}:::plan + __Item15 --> PgSelectSingle16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression17 + PgSelectSingle16 --> PgClassExpression20 + PgSelectSingle16 --> PgClassExpression26 + PgSelectRows29[["PgSelectRows[29∈1]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelect28 --> Access46 + Lambda48{{"Lambda[48∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object47 --> Lambda48 + Lambda53{{"Lambda[53∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object52 --> Lambda53 + First55{{"First[55∈1]"}}:::plan + PgSelectRows29 --> First55 + First55 --> PgSelectSingle57 + PgSelect28 --> Access58 + Last61{{"Last[61∈1]"}}:::plan + PgSelectRows29 --> Last61 + Last61 --> PgSelectSingle63 + First67{{"First[67∈1]"}}:::plan + PgSelectRows68[["PgSelectRows[68∈1]"]]:::plan + PgSelectRows68 --> First67 + PgSelect66 --> PgSelectRows68 + PgSelectSingle69{{"PgSelectSingle[69∈1]
ᐸmessagesᐳ"}}:::plan + First67 --> PgSelectSingle69 + PgClassExpression70{{"PgClassExpression[70∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle69 --> PgClassExpression70 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object12 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/connections/pagination-when-inlined-backwards-nodes-only" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 10, 11, 68, 12, 24
2: PgSelect[9]
3: PgSelectRows[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 10, 11, 71, 72, 73, 12, 25, 44
2: Lambda[13], Lambda[27]
3: PgSelect[9]
4: PgSelectRows[14]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant8,PgSelect9,Access10,Access11,Object12,PgSelectRows13,Connection24,Constant68 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 12, 24, 68, 8

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect9,Access10,Access11,Object12,Lambda13,PgSelectRows14,Connection25,Lambda27,PgPageInfo44,Constant71,Constant72,Constant73 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 27, 25, 8, 71, 44

ROOT __Item{1}ᐸ14ᐳ[15]
1:
ᐳ: 16, 17, 20, 26
2: PgSelect[28], PgSelect[66]
ᐳ: 46, 47, 48, 52, 53, 58
3: PgSelectRows[29], PgSelectRows[68]
ᐳ: 55, 57, 59, 61, 63, 65, 67, 69, 70"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item14,PgSelectSingle15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 12, 24, 68, 8

ROOT PgSelectSingle{1}ᐸforumsᐳ[15]"):::bucket + class Bucket1,__Item15,PgSelectSingle16,PgClassExpression17,PgClassExpression20,PgClassExpression26,PgSelect28,PgSelectRows29,Access46,Object47,Lambda48,Object52,Lambda53,First55,PgSelectSingle57,Access58,PgCursor59,Last61,PgSelectSingle63,PgCursor65,PgSelect66,First67,PgSelectRows68,PgSelectSingle69,PgClassExpression70 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 12

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression16 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 12, 24, 68, 8

ROOT Connectionᐸ20ᐳ[24]
1:
ᐳ: PgClassExpression[19], PgPageInfo[41]
2: PgSelect[25], PgSelect[63]
ᐳ: 44, 45, 46, 49, 50, 55
3: PgSelectRows[26], PgSelectRows[65]
ᐳ: 52, 54, 56, 58, 60, 62, 64, 66, 67"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgSelect25,PgSelectRows26,PgPageInfo41,Access44,Object45,Lambda46,Object49,Lambda50,First52,PgSelectSingle54,Access55,PgCursor56,Last58,PgSelectSingle60,PgCursor62,PgSelect63,First64,PgSelectRows65,PgSelectSingle66,PgClassExpression67 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 12

ROOT __Item{4}ᐸ26ᐳ[27]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item27,PgSelectSingle28 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 28, 12

ROOT PgSelectSingle{4}ᐸmessagesᐳ[28]
1:
ᐳ: 29, 30
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: First[35], PgSelectSingle[37]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression29,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 37

ROOT PgSelectSingle{5}ᐸusersᐳ[37]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression38,PgClassExpression39 bucket6 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.deopt.sql index c1fcff0387..5cec9fbf1e 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.deopt.sql @@ -1,6 +1,7 @@ select __forums__."name" as "0", - __forums__."id" as "1" + __forums__."id" as "1", + to_char(__forums__."archived_at", 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text) as "2" from app_public.forums as __forums__ where ( true /* authorization checks */ @@ -9,7 +10,7 @@ order by __forums__."id" asc limit 2; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select __messages__."body" as "0", @@ -21,14 +22,14 @@ lateral ( ( __messages__.archived_at is null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) order by __messages__."id" desc limit 3 ) as __messages_result__; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select (count(*))::text as "0", @@ -38,7 +39,7 @@ lateral ( ( __messages__.archived_at is null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) ) as __messages_result__; diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.mermaid index fe2f29d1a9..cc3e67ae7b 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.mermaid @@ -11,117 +11,110 @@ graph TD %% plan dependencies PgSelect9[["PgSelect[9∈0] ➊
ᐸforumsᐳ"]]:::plan Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant68{{"Constant[68∈0] ➊
ᐸ2ᐳ"}}:::plan - Object12 & Constant68 --> PgSelect9 + Constant71{{"Constant[71∈0] ➊
ᐸ2ᐳ"}}:::plan + Lambda13[["Lambda[13∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object12 & Constant71 & Lambda13 --> PgSelect9 Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 + Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan + Constant71 --> Connection25 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 - PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan - PgSelect9 --> PgSelectRows13 - Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan - Constant68 --> Connection24 + Constant72{{"Constant[72∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant72 --> Lambda13 + PgSelectRows14[["PgSelectRows[14∈0] ➊"]]:::plan + PgSelect9 --> PgSelectRows14 + Lambda27[["Lambda[27∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant73{{"Constant[73∈0] ➊
ᐸ'NO'ᐳ"}}:::plan + Constant73 --> Lambda27 + PgPageInfo44{{"PgPageInfo[44∈0] ➊"}}:::plan + Connection25 --> PgPageInfo44 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant8{{"Constant[8∈0] ➊
ᐸundefinedᐳ"}}:::plan - __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan - PgSelectRows13 ==> __Item14 - PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan - __Item14 --> PgSelectSingle15 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression16 - PgSelect25[["PgSelect[25∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression19 & Connection24 & Constant68 --> PgSelect25 - Object49{{"Object[49∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access44{{"Access[44∈3]
ᐸ25.hasMoreᐳ"}}:::plan - Constant8 & Constant68 & Constant8 & Access44 --> Object49 - Object45{{"Object[45∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant8 & Constant68 & Access44 --> Object45 - PgSelect63[["PgSelect[63∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object12 & PgClassExpression19 & Connection24 --> PgSelect63 - PgCursor56{{"PgCursor[56∈3]"}}:::plan - PgSelectSingle54{{"PgSelectSingle[54∈3]
ᐸmessagesᐳ"}}:::plan - Access55{{"Access[55∈3]
ᐸ25.cursorDetailsᐳ"}}:::plan - PgSelectSingle54 & Access55 --> PgCursor56 - PgCursor62{{"PgCursor[62∈3]"}}:::plan - PgSelectSingle60{{"PgSelectSingle[60∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle60 & Access55 --> PgCursor62 - PgSelectSingle15 --> PgClassExpression19 - PgSelectRows26[["PgSelectRows[26∈3]"]]:::plan - PgSelect25 --> PgSelectRows26 - PgPageInfo41{{"PgPageInfo[41∈3] ➊"}}:::plan - Connection24 --> PgPageInfo41 - PgSelect25 --> Access44 - Lambda46{{"Lambda[46∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object45 --> Lambda46 - Lambda50{{"Lambda[50∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object49 --> Lambda50 - First52{{"First[52∈3]"}}:::plan - PgSelectRows26 --> First52 - First52 --> PgSelectSingle54 - PgSelect25 --> Access55 - Last58{{"Last[58∈3]"}}:::plan - PgSelectRows26 --> Last58 - Last58 --> PgSelectSingle60 - First64{{"First[64∈3]"}}:::plan - PgSelectRows65[["PgSelectRows[65∈3]"]]:::plan - PgSelectRows65 --> First64 - PgSelect63 --> PgSelectRows65 - PgSelectSingle66{{"PgSelectSingle[66∈3]
ᐸmessagesᐳ"}}:::plan - First64 --> PgSelectSingle66 - PgClassExpression67{{"PgClassExpression[67∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle66 --> PgClassExpression67 - __Item27[/"__Item[27∈4]
ᐸ26ᐳ"\]:::itemplan - PgSelectRows26 ==> __Item27 - PgSelectSingle28{{"PgSelectSingle[28∈4]
ᐸmessagesᐳ"}}:::plan - __Item27 --> PgSelectSingle28 - PgSelect31[["PgSelect[31∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression30 --> PgSelect31 - PgClassExpression29{{"PgClassExpression[29∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression29 - PgSelectSingle28 --> PgClassExpression30 - First35{{"First[35∈5]"}}:::plan - PgSelectRows36[["PgSelectRows[36∈5]"]]:::plan - PgSelectRows36 --> First35 - PgSelect31 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈5]
ᐸusersᐳ"}}:::plan - First35 --> PgSelectSingle37 - PgClassExpression38{{"PgClassExpression[38∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression39 + PgSelect28[["PgSelect[28∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda27 -->|rejectNull| PgSelect28 + Object12 & PgClassExpression20 & PgClassExpression26 & Connection25 & Constant71 --> PgSelect28 + PgSelect66[["PgSelect[66∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda27 -->|rejectNull| PgSelect66 + Object12 & PgClassExpression20 & PgClassExpression26 & Connection25 --> PgSelect66 + Object52{{"Object[52∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access46{{"Access[46∈1]
ᐸ28.hasMoreᐳ"}}:::plan + Constant71 & Access46 --> Object52 + Object47{{"Object[47∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant71 & Access46 --> Object47 + PgCursor59{{"PgCursor[59∈1]"}}:::plan + PgSelectSingle57{{"PgSelectSingle[57∈1]
ᐸmessagesᐳ"}}:::plan + Access58{{"Access[58∈1]
ᐸ28.cursorDetailsᐳ"}}:::plan + PgSelectSingle57 & Access58 --> PgCursor59 + PgCursor65{{"PgCursor[65∈1]"}}:::plan + PgSelectSingle63{{"PgSelectSingle[63∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle63 & Access58 --> PgCursor65 + __Item15[/"__Item[15∈1]
ᐸ14ᐳ"\]:::itemplan + PgSelectRows14 ==> __Item15 + PgSelectSingle16{{"PgSelectSingle[16∈1]
ᐸforumsᐳ"}}:::plan + __Item15 --> PgSelectSingle16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression17 + PgSelectSingle16 --> PgClassExpression20 + PgSelectSingle16 --> PgClassExpression26 + PgSelectRows29[["PgSelectRows[29∈1]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelect28 --> Access46 + Lambda48{{"Lambda[48∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object47 --> Lambda48 + Lambda53{{"Lambda[53∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object52 --> Lambda53 + First55{{"First[55∈1]"}}:::plan + PgSelectRows29 --> First55 + First55 --> PgSelectSingle57 + PgSelect28 --> Access58 + Last61{{"Last[61∈1]"}}:::plan + PgSelectRows29 --> Last61 + Last61 --> PgSelectSingle63 + First67{{"First[67∈1]"}}:::plan + PgSelectRows68[["PgSelectRows[68∈1]"]]:::plan + PgSelectRows68 --> First67 + PgSelect66 --> PgSelectRows68 + PgSelectSingle69{{"PgSelectSingle[69∈1]
ᐸmessagesᐳ"}}:::plan + First67 --> PgSelectSingle69 + PgClassExpression70{{"PgClassExpression[70∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle69 --> PgClassExpression70 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object12 & PgClassExpression33 --> PgSelect34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/connections/pagination-when-inlined-backwards-nodes-only" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 10, 11, 68, 12, 24
2: PgSelect[9]
3: PgSelectRows[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 10, 11, 71, 72, 73, 12, 25, 44
2: Lambda[13], Lambda[27]
3: PgSelect[9]
4: PgSelectRows[14]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant8,PgSelect9,Access10,Access11,Object12,PgSelectRows13,Connection24,Constant68 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 12, 24, 68, 8

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect9,Access10,Access11,Object12,Lambda13,PgSelectRows14,Connection25,Lambda27,PgPageInfo44,Constant71,Constant72,Constant73 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 27, 25, 8, 71, 44

ROOT __Item{1}ᐸ14ᐳ[15]
1:
ᐳ: 16, 17, 20, 26
2: PgSelect[28], PgSelect[66]
ᐳ: 46, 47, 48, 52, 53, 58
3: PgSelectRows[29], PgSelectRows[68]
ᐳ: 55, 57, 59, 61, 63, 65, 67, 69, 70"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item14,PgSelectSingle15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 12, 24, 68, 8

ROOT PgSelectSingle{1}ᐸforumsᐳ[15]"):::bucket + class Bucket1,__Item15,PgSelectSingle16,PgClassExpression17,PgClassExpression20,PgClassExpression26,PgSelect28,PgSelectRows29,Access46,Object47,Lambda48,Object52,Lambda53,First55,PgSelectSingle57,Access58,PgCursor59,Last61,PgSelectSingle63,PgCursor65,PgSelect66,First67,PgSelectRows68,PgSelectSingle69,PgClassExpression70 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 12

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression16 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 12, 24, 68, 8

ROOT Connectionᐸ20ᐳ[24]
1:
ᐳ: PgClassExpression[19], PgPageInfo[41]
2: PgSelect[25], PgSelect[63]
ᐳ: 44, 45, 46, 49, 50, 55
3: PgSelectRows[26], PgSelectRows[65]
ᐳ: 52, 54, 56, 58, 60, 62, 64, 66, 67"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgSelect25,PgSelectRows26,PgPageInfo41,Access44,Object45,Lambda46,Object49,Lambda50,First52,PgSelectSingle54,Access55,PgCursor56,Last58,PgSelectSingle60,PgCursor62,PgSelect63,First64,PgSelectRows65,PgSelectSingle66,PgClassExpression67 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 12

ROOT __Item{4}ᐸ26ᐳ[27]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item27,PgSelectSingle28 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 28, 12

ROOT PgSelectSingle{4}ᐸmessagesᐳ[28]
1:
ᐳ: 29, 30
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: First[35], PgSelectSingle[37]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression29,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 37

ROOT PgSelectSingle{5}ᐸusersᐳ[37]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression38,PgClassExpression39 bucket6 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.sql index c1fcff0387..5cec9fbf1e 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards-nodes-only.sql @@ -1,6 +1,7 @@ select __forums__."name" as "0", - __forums__."id" as "1" + __forums__."id" as "1", + to_char(__forums__."archived_at", 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text) as "2" from app_public.forums as __forums__ where ( true /* authorization checks */ @@ -9,7 +10,7 @@ order by __forums__."id" asc limit 2; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select __messages__."body" as "0", @@ -21,14 +22,14 @@ lateral ( ( __messages__.archived_at is null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) order by __messages__."id" desc limit 3 ) as __messages_result__; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select (count(*))::text as "0", @@ -38,7 +39,7 @@ lateral ( ( __messages__.archived_at is null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) ) as __messages_result__; diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.deopt.mermaid index 56b5ad6f60..3de35c3caa 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.deopt.mermaid @@ -11,142 +11,112 @@ graph TD %% plan dependencies PgSelect9[["PgSelect[9∈0] ➊
ᐸforumsᐳ"]]:::plan Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant83{{"Constant[83∈0] ➊
ᐸ2ᐳ"}}:::plan - Object12 & Constant83 --> PgSelect9 + Constant80{{"Constant[80∈0] ➊
ᐸ2ᐳ"}}:::plan + Lambda13[["Lambda[13∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object12 & Constant80 & Lambda13 --> PgSelect9 Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 + Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan + Constant80 --> Connection25 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 - PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan - PgSelect9 --> PgSelectRows13 - Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan - Constant83 --> Connection24 + Constant81{{"Constant[81∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant81 --> Lambda13 + PgSelectRows14[["PgSelectRows[14∈0] ➊"]]:::plan + PgSelect9 --> PgSelectRows14 + Lambda27[["Lambda[27∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant82{{"Constant[82∈0] ➊
ᐸ'NO'ᐳ"}}:::plan + Constant82 --> Lambda27 + PgPageInfo53{{"PgPageInfo[53∈0] ➊"}}:::plan + Connection25 --> PgPageInfo53 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant8{{"Constant[8∈0] ➊
ᐸundefinedᐳ"}}:::plan - __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan - PgSelectRows13 ==> __Item14 - PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan - __Item14 --> PgSelectSingle15 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression16 - PgSelect25[["PgSelect[25∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression19 & Connection24 & Constant83 --> PgSelect25 - Object64{{"Object[64∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access59{{"Access[59∈3]
ᐸ25.hasMoreᐳ"}}:::plan - Constant8 & Constant83 & Constant8 & Access59 --> Object64 - Object60{{"Object[60∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant8 & Constant83 & Access59 --> Object60 - PgSelect78[["PgSelect[78∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object12 & PgClassExpression19 & Connection24 --> PgSelect78 - PgCursor71{{"PgCursor[71∈3]"}}:::plan - PgSelectSingle69{{"PgSelectSingle[69∈3]
ᐸmessagesᐳ"}}:::plan - Access42{{"Access[42∈3]
ᐸ25.cursorDetailsᐳ"}}:::plan - PgSelectSingle69 & Access42 --> PgCursor71 - PgCursor77{{"PgCursor[77∈3]"}}:::plan - PgSelectSingle75{{"PgSelectSingle[75∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle75 & Access42 --> PgCursor77 - PgSelectSingle15 --> PgClassExpression19 - PgSelectRows26[["PgSelectRows[26∈3]"]]:::plan - PgSelect25 --> PgSelectRows26 - PgSelect25 --> Access42 - PgPageInfo56{{"PgPageInfo[56∈3] ➊"}}:::plan - Connection24 --> PgPageInfo56 - PgSelect25 --> Access59 - Lambda61{{"Lambda[61∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object60 --> Lambda61 - Lambda65{{"Lambda[65∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object64 --> Lambda65 - First67{{"First[67∈3]"}}:::plan - PgSelectRows26 --> First67 - First67 --> PgSelectSingle69 - Last73{{"Last[73∈3]"}}:::plan - PgSelectRows26 --> Last73 - Last73 --> PgSelectSingle75 - First79{{"First[79∈3]"}}:::plan - PgSelectRows80[["PgSelectRows[80∈3]"]]:::plan - PgSelectRows80 --> First79 - PgSelect78 --> PgSelectRows80 - PgSelectSingle81{{"PgSelectSingle[81∈3]
ᐸmessagesᐳ"}}:::plan - First79 --> PgSelectSingle81 - PgClassExpression82{{"PgClassExpression[82∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle81 --> PgClassExpression82 - __Item27[/"__Item[27∈4]
ᐸ26ᐳ"\]:::itemplan - PgSelectRows26 ==> __Item27 - PgSelectSingle28{{"PgSelectSingle[28∈4]
ᐸmessagesᐳ"}}:::plan - __Item27 --> PgSelectSingle28 - PgSelect31[["PgSelect[31∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression30 --> PgSelect31 - PgClassExpression29{{"PgClassExpression[29∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression29 - PgSelectSingle28 --> PgClassExpression30 - First35{{"First[35∈5]"}}:::plan - PgSelectRows36[["PgSelectRows[36∈5]"]]:::plan - PgSelectRows36 --> First35 - PgSelect31 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈5]
ᐸusersᐳ"}}:::plan - First35 --> PgSelectSingle37 - PgClassExpression38{{"PgClassExpression[38∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression39 - PgCursor43{{"PgCursor[43∈7]"}}:::plan - PgSelectSingle28 & Access42 --> PgCursor43 - PgSelect46[["PgSelect[46∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression45{{"PgClassExpression[45∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression45 --> PgSelect46 - PgClassExpression44{{"PgClassExpression[44∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression44 - PgSelectSingle28 --> PgClassExpression45 - First50{{"First[50∈7]"}}:::plan - PgSelectRows51[["PgSelectRows[51∈7]"]]:::plan - PgSelectRows51 --> First50 - PgSelect46 --> PgSelectRows51 - PgSelectSingle52{{"PgSelectSingle[52∈7]
ᐸusersᐳ"}}:::plan - First50 --> PgSelectSingle52 - PgClassExpression53{{"PgClassExpression[53∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression54 + PgSelect28[["PgSelect[28∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda27 -->|rejectNull| PgSelect28 + Object12 & PgClassExpression20 & PgClassExpression26 & Connection25 & Constant80 --> PgSelect28 + PgSelect75[["PgSelect[75∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda27 -->|rejectNull| PgSelect75 + Object12 & PgClassExpression20 & PgClassExpression26 & Connection25 --> PgSelect75 + Object61{{"Object[61∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access55{{"Access[55∈1]
ᐸ28.hasMoreᐳ"}}:::plan + Constant80 & Access55 --> Object61 + Object56{{"Object[56∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant80 & Access55 --> Object56 + PgCursor68{{"PgCursor[68∈1]"}}:::plan + PgSelectSingle66{{"PgSelectSingle[66∈1]
ᐸmessagesᐳ"}}:::plan + Access45{{"Access[45∈1]
ᐸ28.cursorDetailsᐳ"}}:::plan + PgSelectSingle66 & Access45 --> PgCursor68 + PgCursor74{{"PgCursor[74∈1]"}}:::plan + PgSelectSingle72{{"PgSelectSingle[72∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle72 & Access45 --> PgCursor74 + __Item15[/"__Item[15∈1]
ᐸ14ᐳ"\]:::itemplan + PgSelectRows14 ==> __Item15 + PgSelectSingle16{{"PgSelectSingle[16∈1]
ᐸforumsᐳ"}}:::plan + __Item15 --> PgSelectSingle16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression17 + PgSelectSingle16 --> PgClassExpression20 + PgSelectSingle16 --> PgClassExpression26 + PgSelectRows29[["PgSelectRows[29∈1]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelect28 --> Access45 + PgSelect28 --> Access55 + Lambda57{{"Lambda[57∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object56 --> Lambda57 + Lambda62{{"Lambda[62∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object61 --> Lambda62 + First64{{"First[64∈1]"}}:::plan + PgSelectRows29 --> First64 + First64 --> PgSelectSingle66 + Last70{{"Last[70∈1]"}}:::plan + PgSelectRows29 --> Last70 + Last70 --> PgSelectSingle72 + First76{{"First[76∈1]"}}:::plan + PgSelectRows77[["PgSelectRows[77∈1]"]]:::plan + PgSelectRows77 --> First76 + PgSelect75 --> PgSelectRows77 + PgSelectSingle78{{"PgSelectSingle[78∈1]
ᐸmessagesᐳ"}}:::plan + First76 --> PgSelectSingle78 + PgClassExpression79{{"PgClassExpression[79∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle78 --> PgClassExpression79 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object12 & PgClassExpression33 --> PgSelect34 + PgCursor46{{"PgCursor[46∈2]"}}:::plan + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle31 & Access45 --> PgCursor46 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/connections/pagination-when-inlined-backwards" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 10, 11, 83, 12, 24
2: PgSelect[9]
3: PgSelectRows[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 10, 11, 80, 81, 82, 12, 25, 53
2: Lambda[13], Lambda[27]
3: PgSelect[9]
4: PgSelectRows[14]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant8,PgSelect9,Access10,Access11,Object12,PgSelectRows13,Connection24,Constant83 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 12, 24, 83, 8

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect9,Access10,Access11,Object12,Lambda13,PgSelectRows14,Connection25,Lambda27,PgPageInfo53,Constant80,Constant81,Constant82 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 27, 25, 8, 80, 53

ROOT __Item{1}ᐸ14ᐳ[15]
1:
ᐳ: 16, 17, 20, 26
2: PgSelect[28], PgSelect[75]
ᐳ: 45, 55, 56, 57, 61, 62
3: PgSelectRows[29], PgSelectRows[77]
ᐳ: 64, 66, 68, 70, 72, 74, 76, 78, 79"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item14,PgSelectSingle15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 12, 24, 83, 8

ROOT PgSelectSingle{1}ᐸforumsᐳ[15]"):::bucket + class Bucket1,__Item15,PgSelectSingle16,PgClassExpression17,PgClassExpression20,PgClassExpression26,PgSelect28,PgSelectRows29,Access45,Access55,Object56,Lambda57,Object61,Lambda62,First64,PgSelectSingle66,PgCursor68,Last70,PgSelectSingle72,PgCursor74,PgSelect75,First76,PgSelectRows77,PgSelectSingle78,PgClassExpression79 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 12, 45

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33, 46
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression16 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 12, 24, 83, 8

ROOT Connectionᐸ20ᐳ[24]
1:
ᐳ: PgClassExpression[19], PgPageInfo[56]
2: PgSelect[25], PgSelect[78]
ᐳ: 42, 59, 60, 61, 64, 65
3: PgSelectRows[26], PgSelectRows[80]
ᐳ: 67, 69, 71, 73, 75, 77, 79, 81, 82"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgSelect25,PgSelectRows26,Access42,PgPageInfo56,Access59,Object60,Lambda61,Object64,Lambda65,First67,PgSelectSingle69,PgCursor71,Last73,PgSelectSingle75,PgCursor77,PgSelect78,First79,PgSelectRows80,PgSelectSingle81,PgClassExpression82 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 12, 42

ROOT __Item{4}ᐸ26ᐳ[27]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item27,PgSelectSingle28 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 28, 12

ROOT PgSelectSingle{4}ᐸmessagesᐳ[28]
1:
ᐳ: 29, 30
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: First[35], PgSelectSingle[37]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression29,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 37

ROOT PgSelectSingle{5}ᐸusersᐳ[37]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression38,PgClassExpression39 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 28, 42, 12

ROOT PgSelectSingle{4}ᐸmessagesᐳ[28]
1:
ᐳ: 43, 44, 45
2: PgSelect[46]
3: PgSelectRows[51]
ᐳ: First[50], PgSelectSingle[52]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgCursor43,PgClassExpression44,PgClassExpression45,PgSelect46,First50,PgSelectRows51,PgSelectSingle52 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 52

ROOT PgSelectSingle{7}ᐸusersᐳ[52]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression53,PgClassExpression54 bucket8 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42,PgCursor46 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.deopt.sql index c1fcff0387..5cec9fbf1e 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.deopt.sql @@ -1,6 +1,7 @@ select __forums__."name" as "0", - __forums__."id" as "1" + __forums__."id" as "1", + to_char(__forums__."archived_at", 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text) as "2" from app_public.forums as __forums__ where ( true /* authorization checks */ @@ -9,7 +10,7 @@ order by __forums__."id" asc limit 2; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select __messages__."body" as "0", @@ -21,14 +22,14 @@ lateral ( ( __messages__.archived_at is null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) order by __messages__."id" desc limit 3 ) as __messages_result__; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select (count(*))::text as "0", @@ -38,7 +39,7 @@ lateral ( ( __messages__.archived_at is null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) ) as __messages_result__; diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.mermaid index 56b5ad6f60..3de35c3caa 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.mermaid @@ -11,142 +11,112 @@ graph TD %% plan dependencies PgSelect9[["PgSelect[9∈0] ➊
ᐸforumsᐳ"]]:::plan Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant83{{"Constant[83∈0] ➊
ᐸ2ᐳ"}}:::plan - Object12 & Constant83 --> PgSelect9 + Constant80{{"Constant[80∈0] ➊
ᐸ2ᐳ"}}:::plan + Lambda13[["Lambda[13∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object12 & Constant80 & Lambda13 --> PgSelect9 Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 + Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan + Constant80 --> Connection25 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 - PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan - PgSelect9 --> PgSelectRows13 - Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan - Constant83 --> Connection24 + Constant81{{"Constant[81∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant81 --> Lambda13 + PgSelectRows14[["PgSelectRows[14∈0] ➊"]]:::plan + PgSelect9 --> PgSelectRows14 + Lambda27[["Lambda[27∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant82{{"Constant[82∈0] ➊
ᐸ'NO'ᐳ"}}:::plan + Constant82 --> Lambda27 + PgPageInfo53{{"PgPageInfo[53∈0] ➊"}}:::plan + Connection25 --> PgPageInfo53 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant8{{"Constant[8∈0] ➊
ᐸundefinedᐳ"}}:::plan - __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan - PgSelectRows13 ==> __Item14 - PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan - __Item14 --> PgSelectSingle15 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression16 - PgSelect25[["PgSelect[25∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression19 & Connection24 & Constant83 --> PgSelect25 - Object64{{"Object[64∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access59{{"Access[59∈3]
ᐸ25.hasMoreᐳ"}}:::plan - Constant8 & Constant83 & Constant8 & Access59 --> Object64 - Object60{{"Object[60∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant8 & Constant83 & Access59 --> Object60 - PgSelect78[["PgSelect[78∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object12 & PgClassExpression19 & Connection24 --> PgSelect78 - PgCursor71{{"PgCursor[71∈3]"}}:::plan - PgSelectSingle69{{"PgSelectSingle[69∈3]
ᐸmessagesᐳ"}}:::plan - Access42{{"Access[42∈3]
ᐸ25.cursorDetailsᐳ"}}:::plan - PgSelectSingle69 & Access42 --> PgCursor71 - PgCursor77{{"PgCursor[77∈3]"}}:::plan - PgSelectSingle75{{"PgSelectSingle[75∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle75 & Access42 --> PgCursor77 - PgSelectSingle15 --> PgClassExpression19 - PgSelectRows26[["PgSelectRows[26∈3]"]]:::plan - PgSelect25 --> PgSelectRows26 - PgSelect25 --> Access42 - PgPageInfo56{{"PgPageInfo[56∈3] ➊"}}:::plan - Connection24 --> PgPageInfo56 - PgSelect25 --> Access59 - Lambda61{{"Lambda[61∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object60 --> Lambda61 - Lambda65{{"Lambda[65∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object64 --> Lambda65 - First67{{"First[67∈3]"}}:::plan - PgSelectRows26 --> First67 - First67 --> PgSelectSingle69 - Last73{{"Last[73∈3]"}}:::plan - PgSelectRows26 --> Last73 - Last73 --> PgSelectSingle75 - First79{{"First[79∈3]"}}:::plan - PgSelectRows80[["PgSelectRows[80∈3]"]]:::plan - PgSelectRows80 --> First79 - PgSelect78 --> PgSelectRows80 - PgSelectSingle81{{"PgSelectSingle[81∈3]
ᐸmessagesᐳ"}}:::plan - First79 --> PgSelectSingle81 - PgClassExpression82{{"PgClassExpression[82∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle81 --> PgClassExpression82 - __Item27[/"__Item[27∈4]
ᐸ26ᐳ"\]:::itemplan - PgSelectRows26 ==> __Item27 - PgSelectSingle28{{"PgSelectSingle[28∈4]
ᐸmessagesᐳ"}}:::plan - __Item27 --> PgSelectSingle28 - PgSelect31[["PgSelect[31∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression30 --> PgSelect31 - PgClassExpression29{{"PgClassExpression[29∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression29 - PgSelectSingle28 --> PgClassExpression30 - First35{{"First[35∈5]"}}:::plan - PgSelectRows36[["PgSelectRows[36∈5]"]]:::plan - PgSelectRows36 --> First35 - PgSelect31 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈5]
ᐸusersᐳ"}}:::plan - First35 --> PgSelectSingle37 - PgClassExpression38{{"PgClassExpression[38∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression39 - PgCursor43{{"PgCursor[43∈7]"}}:::plan - PgSelectSingle28 & Access42 --> PgCursor43 - PgSelect46[["PgSelect[46∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression45{{"PgClassExpression[45∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression45 --> PgSelect46 - PgClassExpression44{{"PgClassExpression[44∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression44 - PgSelectSingle28 --> PgClassExpression45 - First50{{"First[50∈7]"}}:::plan - PgSelectRows51[["PgSelectRows[51∈7]"]]:::plan - PgSelectRows51 --> First50 - PgSelect46 --> PgSelectRows51 - PgSelectSingle52{{"PgSelectSingle[52∈7]
ᐸusersᐳ"}}:::plan - First50 --> PgSelectSingle52 - PgClassExpression53{{"PgClassExpression[53∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression54 + PgSelect28[["PgSelect[28∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda27 -->|rejectNull| PgSelect28 + Object12 & PgClassExpression20 & PgClassExpression26 & Connection25 & Constant80 --> PgSelect28 + PgSelect75[["PgSelect[75∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda27 -->|rejectNull| PgSelect75 + Object12 & PgClassExpression20 & PgClassExpression26 & Connection25 --> PgSelect75 + Object61{{"Object[61∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access55{{"Access[55∈1]
ᐸ28.hasMoreᐳ"}}:::plan + Constant80 & Access55 --> Object61 + Object56{{"Object[56∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant80 & Access55 --> Object56 + PgCursor68{{"PgCursor[68∈1]"}}:::plan + PgSelectSingle66{{"PgSelectSingle[66∈1]
ᐸmessagesᐳ"}}:::plan + Access45{{"Access[45∈1]
ᐸ28.cursorDetailsᐳ"}}:::plan + PgSelectSingle66 & Access45 --> PgCursor68 + PgCursor74{{"PgCursor[74∈1]"}}:::plan + PgSelectSingle72{{"PgSelectSingle[72∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle72 & Access45 --> PgCursor74 + __Item15[/"__Item[15∈1]
ᐸ14ᐳ"\]:::itemplan + PgSelectRows14 ==> __Item15 + PgSelectSingle16{{"PgSelectSingle[16∈1]
ᐸforumsᐳ"}}:::plan + __Item15 --> PgSelectSingle16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression17 + PgSelectSingle16 --> PgClassExpression20 + PgSelectSingle16 --> PgClassExpression26 + PgSelectRows29[["PgSelectRows[29∈1]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelect28 --> Access45 + PgSelect28 --> Access55 + Lambda57{{"Lambda[57∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object56 --> Lambda57 + Lambda62{{"Lambda[62∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object61 --> Lambda62 + First64{{"First[64∈1]"}}:::plan + PgSelectRows29 --> First64 + First64 --> PgSelectSingle66 + Last70{{"Last[70∈1]"}}:::plan + PgSelectRows29 --> Last70 + Last70 --> PgSelectSingle72 + First76{{"First[76∈1]"}}:::plan + PgSelectRows77[["PgSelectRows[77∈1]"]]:::plan + PgSelectRows77 --> First76 + PgSelect75 --> PgSelectRows77 + PgSelectSingle78{{"PgSelectSingle[78∈1]
ᐸmessagesᐳ"}}:::plan + First76 --> PgSelectSingle78 + PgClassExpression79{{"PgClassExpression[79∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle78 --> PgClassExpression79 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object12 & PgClassExpression33 --> PgSelect34 + PgCursor46{{"PgCursor[46∈2]"}}:::plan + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle31 & Access45 --> PgCursor46 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/connections/pagination-when-inlined-backwards" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 10, 11, 83, 12, 24
2: PgSelect[9]
3: PgSelectRows[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 10, 11, 80, 81, 82, 12, 25, 53
2: Lambda[13], Lambda[27]
3: PgSelect[9]
4: PgSelectRows[14]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant8,PgSelect9,Access10,Access11,Object12,PgSelectRows13,Connection24,Constant83 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 12, 24, 83, 8

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect9,Access10,Access11,Object12,Lambda13,PgSelectRows14,Connection25,Lambda27,PgPageInfo53,Constant80,Constant81,Constant82 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 27, 25, 8, 80, 53

ROOT __Item{1}ᐸ14ᐳ[15]
1:
ᐳ: 16, 17, 20, 26
2: PgSelect[28], PgSelect[75]
ᐳ: 45, 55, 56, 57, 61, 62
3: PgSelectRows[29], PgSelectRows[77]
ᐳ: 64, 66, 68, 70, 72, 74, 76, 78, 79"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item14,PgSelectSingle15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 12, 24, 83, 8

ROOT PgSelectSingle{1}ᐸforumsᐳ[15]"):::bucket + class Bucket1,__Item15,PgSelectSingle16,PgClassExpression17,PgClassExpression20,PgClassExpression26,PgSelect28,PgSelectRows29,Access45,Access55,Object56,Lambda57,Object61,Lambda62,First64,PgSelectSingle66,PgCursor68,Last70,PgSelectSingle72,PgCursor74,PgSelect75,First76,PgSelectRows77,PgSelectSingle78,PgClassExpression79 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 12, 45

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33, 46
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression16 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 12, 24, 83, 8

ROOT Connectionᐸ20ᐳ[24]
1:
ᐳ: PgClassExpression[19], PgPageInfo[56]
2: PgSelect[25], PgSelect[78]
ᐳ: 42, 59, 60, 61, 64, 65
3: PgSelectRows[26], PgSelectRows[80]
ᐳ: 67, 69, 71, 73, 75, 77, 79, 81, 82"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgSelect25,PgSelectRows26,Access42,PgPageInfo56,Access59,Object60,Lambda61,Object64,Lambda65,First67,PgSelectSingle69,PgCursor71,Last73,PgSelectSingle75,PgCursor77,PgSelect78,First79,PgSelectRows80,PgSelectSingle81,PgClassExpression82 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 12, 42

ROOT __Item{4}ᐸ26ᐳ[27]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item27,PgSelectSingle28 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 28, 12

ROOT PgSelectSingle{4}ᐸmessagesᐳ[28]
1:
ᐳ: 29, 30
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: First[35], PgSelectSingle[37]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression29,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 37

ROOT PgSelectSingle{5}ᐸusersᐳ[37]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression38,PgClassExpression39 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 28, 42, 12

ROOT PgSelectSingle{4}ᐸmessagesᐳ[28]
1:
ᐳ: 43, 44, 45
2: PgSelect[46]
3: PgSelectRows[51]
ᐳ: First[50], PgSelectSingle[52]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgCursor43,PgClassExpression44,PgClassExpression45,PgSelect46,First50,PgSelectRows51,PgSelectSingle52 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 52

ROOT PgSelectSingle{7}ᐸusersᐳ[52]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression53,PgClassExpression54 bucket8 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42,PgCursor46 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.sql index c1fcff0387..5cec9fbf1e 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined-backwards.sql @@ -1,6 +1,7 @@ select __forums__."name" as "0", - __forums__."id" as "1" + __forums__."id" as "1", + to_char(__forums__."archived_at", 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text) as "2" from app_public.forums as __forums__ where ( true /* authorization checks */ @@ -9,7 +10,7 @@ order by __forums__."id" asc limit 2; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select __messages__."body" as "0", @@ -21,14 +22,14 @@ lateral ( ( __messages__.archived_at is null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) order by __messages__."id" desc limit 3 ) as __messages_result__; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select (count(*))::text as "0", @@ -38,7 +39,7 @@ lateral ( ( __messages__.archived_at is null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) ) as __messages_result__; diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.deopt.mermaid index 51de561fc3..f91db7c787 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.deopt.mermaid @@ -11,142 +11,112 @@ graph TD %% plan dependencies PgSelect9[["PgSelect[9∈0] ➊
ᐸforumsᐳ"]]:::plan Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant83{{"Constant[83∈0] ➊
ᐸ2ᐳ"}}:::plan - Object12 & Constant83 --> PgSelect9 + Constant80{{"Constant[80∈0] ➊
ᐸ2ᐳ"}}:::plan + Lambda13[["Lambda[13∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object12 & Constant80 & Lambda13 --> PgSelect9 Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 + Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan + Constant80 --> Connection25 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 - PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan - PgSelect9 --> PgSelectRows13 - Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan - Constant83 --> Connection24 + Constant81{{"Constant[81∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant81 --> Lambda13 + PgSelectRows14[["PgSelectRows[14∈0] ➊"]]:::plan + PgSelect9 --> PgSelectRows14 + Lambda27[["Lambda[27∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant82{{"Constant[82∈0] ➊
ᐸ'NO'ᐳ"}}:::plan + Constant82 --> Lambda27 + PgPageInfo53{{"PgPageInfo[53∈0] ➊"}}:::plan + Connection25 --> PgPageInfo53 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant8{{"Constant[8∈0] ➊
ᐸundefinedᐳ"}}:::plan - __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan - PgSelectRows13 ==> __Item14 - PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan - __Item14 --> PgSelectSingle15 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression16 - PgSelect25[["PgSelect[25∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression19 & Connection24 & Constant83 --> PgSelect25 - Object64{{"Object[64∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access59{{"Access[59∈3]
ᐸ25.hasMoreᐳ"}}:::plan - Constant83 & Constant8 & Constant8 & Access59 --> Object64 - Object60{{"Object[60∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant83 & Constant8 & Access59 --> Object60 - PgSelect78[["PgSelect[78∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object12 & PgClassExpression19 & Connection24 --> PgSelect78 - PgCursor71{{"PgCursor[71∈3]"}}:::plan - PgSelectSingle69{{"PgSelectSingle[69∈3]
ᐸmessagesᐳ"}}:::plan - Access42{{"Access[42∈3]
ᐸ25.cursorDetailsᐳ"}}:::plan - PgSelectSingle69 & Access42 --> PgCursor71 - PgCursor77{{"PgCursor[77∈3]"}}:::plan - PgSelectSingle75{{"PgSelectSingle[75∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle75 & Access42 --> PgCursor77 - PgSelectSingle15 --> PgClassExpression19 - PgSelectRows26[["PgSelectRows[26∈3]"]]:::plan - PgSelect25 --> PgSelectRows26 - PgSelect25 --> Access42 - PgPageInfo56{{"PgPageInfo[56∈3] ➊"}}:::plan - Connection24 --> PgPageInfo56 - PgSelect25 --> Access59 - Lambda61{{"Lambda[61∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object60 --> Lambda61 - Lambda65{{"Lambda[65∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object64 --> Lambda65 - First67{{"First[67∈3]"}}:::plan - PgSelectRows26 --> First67 - First67 --> PgSelectSingle69 - Last73{{"Last[73∈3]"}}:::plan - PgSelectRows26 --> Last73 - Last73 --> PgSelectSingle75 - First79{{"First[79∈3]"}}:::plan - PgSelectRows80[["PgSelectRows[80∈3]"]]:::plan - PgSelectRows80 --> First79 - PgSelect78 --> PgSelectRows80 - PgSelectSingle81{{"PgSelectSingle[81∈3]
ᐸmessagesᐳ"}}:::plan - First79 --> PgSelectSingle81 - PgClassExpression82{{"PgClassExpression[82∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle81 --> PgClassExpression82 - __Item27[/"__Item[27∈4]
ᐸ26ᐳ"\]:::itemplan - PgSelectRows26 ==> __Item27 - PgSelectSingle28{{"PgSelectSingle[28∈4]
ᐸmessagesᐳ"}}:::plan - __Item27 --> PgSelectSingle28 - PgSelect31[["PgSelect[31∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression30 --> PgSelect31 - PgClassExpression29{{"PgClassExpression[29∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression29 - PgSelectSingle28 --> PgClassExpression30 - First35{{"First[35∈5]"}}:::plan - PgSelectRows36[["PgSelectRows[36∈5]"]]:::plan - PgSelectRows36 --> First35 - PgSelect31 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈5]
ᐸusersᐳ"}}:::plan - First35 --> PgSelectSingle37 - PgClassExpression38{{"PgClassExpression[38∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression39 - PgCursor43{{"PgCursor[43∈7]"}}:::plan - PgSelectSingle28 & Access42 --> PgCursor43 - PgSelect46[["PgSelect[46∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression45{{"PgClassExpression[45∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression45 --> PgSelect46 - PgClassExpression44{{"PgClassExpression[44∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression44 - PgSelectSingle28 --> PgClassExpression45 - First50{{"First[50∈7]"}}:::plan - PgSelectRows51[["PgSelectRows[51∈7]"]]:::plan - PgSelectRows51 --> First50 - PgSelect46 --> PgSelectRows51 - PgSelectSingle52{{"PgSelectSingle[52∈7]
ᐸusersᐳ"}}:::plan - First50 --> PgSelectSingle52 - PgClassExpression53{{"PgClassExpression[53∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression54 + PgSelect28[["PgSelect[28∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda27 -->|rejectNull| PgSelect28 + Object12 & PgClassExpression20 & PgClassExpression26 & Connection25 & Constant80 --> PgSelect28 + PgSelect75[["PgSelect[75∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda27 -->|rejectNull| PgSelect75 + Object12 & PgClassExpression20 & PgClassExpression26 & Connection25 --> PgSelect75 + Object61{{"Object[61∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access55{{"Access[55∈1]
ᐸ28.hasMoreᐳ"}}:::plan + Constant80 & Access55 --> Object61 + Object56{{"Object[56∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant80 & Access55 --> Object56 + PgCursor68{{"PgCursor[68∈1]"}}:::plan + PgSelectSingle66{{"PgSelectSingle[66∈1]
ᐸmessagesᐳ"}}:::plan + Access45{{"Access[45∈1]
ᐸ28.cursorDetailsᐳ"}}:::plan + PgSelectSingle66 & Access45 --> PgCursor68 + PgCursor74{{"PgCursor[74∈1]"}}:::plan + PgSelectSingle72{{"PgSelectSingle[72∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle72 & Access45 --> PgCursor74 + __Item15[/"__Item[15∈1]
ᐸ14ᐳ"\]:::itemplan + PgSelectRows14 ==> __Item15 + PgSelectSingle16{{"PgSelectSingle[16∈1]
ᐸforumsᐳ"}}:::plan + __Item15 --> PgSelectSingle16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression17 + PgSelectSingle16 --> PgClassExpression20 + PgSelectSingle16 --> PgClassExpression26 + PgSelectRows29[["PgSelectRows[29∈1]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelect28 --> Access45 + PgSelect28 --> Access55 + Lambda57{{"Lambda[57∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object56 --> Lambda57 + Lambda62{{"Lambda[62∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object61 --> Lambda62 + First64{{"First[64∈1]"}}:::plan + PgSelectRows29 --> First64 + First64 --> PgSelectSingle66 + Last70{{"Last[70∈1]"}}:::plan + PgSelectRows29 --> Last70 + Last70 --> PgSelectSingle72 + First76{{"First[76∈1]"}}:::plan + PgSelectRows77[["PgSelectRows[77∈1]"]]:::plan + PgSelectRows77 --> First76 + PgSelect75 --> PgSelectRows77 + PgSelectSingle78{{"PgSelectSingle[78∈1]
ᐸmessagesᐳ"}}:::plan + First76 --> PgSelectSingle78 + PgClassExpression79{{"PgClassExpression[79∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle78 --> PgClassExpression79 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object12 & PgClassExpression33 --> PgSelect34 + PgCursor46{{"PgCursor[46∈2]"}}:::plan + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle31 & Access45 --> PgCursor46 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/connections/pagination-when-inlined" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 10, 11, 83, 12, 24
2: PgSelect[9]
3: PgSelectRows[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 10, 11, 80, 81, 82, 12, 25, 53
2: Lambda[13], Lambda[27]
3: PgSelect[9]
4: PgSelectRows[14]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant8,PgSelect9,Access10,Access11,Object12,PgSelectRows13,Connection24,Constant83 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 12, 24, 83, 8

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect9,Access10,Access11,Object12,Lambda13,PgSelectRows14,Connection25,Lambda27,PgPageInfo53,Constant80,Constant81,Constant82 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 27, 25, 80, 8, 53

ROOT __Item{1}ᐸ14ᐳ[15]
1:
ᐳ: 16, 17, 20, 26
2: PgSelect[28], PgSelect[75]
ᐳ: 45, 55, 56, 57, 61, 62
3: PgSelectRows[29], PgSelectRows[77]
ᐳ: 64, 66, 68, 70, 72, 74, 76, 78, 79"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item14,PgSelectSingle15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 12, 24, 83, 8

ROOT PgSelectSingle{1}ᐸforumsᐳ[15]"):::bucket + class Bucket1,__Item15,PgSelectSingle16,PgClassExpression17,PgClassExpression20,PgClassExpression26,PgSelect28,PgSelectRows29,Access45,Access55,Object56,Lambda57,Object61,Lambda62,First64,PgSelectSingle66,PgCursor68,Last70,PgSelectSingle72,PgCursor74,PgSelect75,First76,PgSelectRows77,PgSelectSingle78,PgClassExpression79 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 12, 45

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33, 46
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression16 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 12, 24, 83, 8

ROOT Connectionᐸ20ᐳ[24]
1:
ᐳ: PgClassExpression[19], PgPageInfo[56]
2: PgSelect[25], PgSelect[78]
ᐳ: 42, 59, 60, 61, 64, 65
3: PgSelectRows[26], PgSelectRows[80]
ᐳ: 67, 69, 71, 73, 75, 77, 79, 81, 82"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgSelect25,PgSelectRows26,Access42,PgPageInfo56,Access59,Object60,Lambda61,Object64,Lambda65,First67,PgSelectSingle69,PgCursor71,Last73,PgSelectSingle75,PgCursor77,PgSelect78,First79,PgSelectRows80,PgSelectSingle81,PgClassExpression82 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 12, 42

ROOT __Item{4}ᐸ26ᐳ[27]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item27,PgSelectSingle28 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 28, 12

ROOT PgSelectSingle{4}ᐸmessagesᐳ[28]
1:
ᐳ: 29, 30
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: First[35], PgSelectSingle[37]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression29,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 37

ROOT PgSelectSingle{5}ᐸusersᐳ[37]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression38,PgClassExpression39 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 28, 42, 12

ROOT PgSelectSingle{4}ᐸmessagesᐳ[28]
1:
ᐳ: 43, 44, 45
2: PgSelect[46]
3: PgSelectRows[51]
ᐳ: First[50], PgSelectSingle[52]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgCursor43,PgClassExpression44,PgClassExpression45,PgSelect46,First50,PgSelectRows51,PgSelectSingle52 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 52

ROOT PgSelectSingle{7}ᐸusersᐳ[52]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression53,PgClassExpression54 bucket8 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42,PgCursor46 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.deopt.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.deopt.sql index 170d00ae0a..d6248a5a4a 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.deopt.sql @@ -1,6 +1,7 @@ select __forums__."name" as "0", - __forums__."id" as "1" + __forums__."id" as "1", + to_char(__forums__."archived_at", 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text) as "2" from app_public.forums as __forums__ where ( true /* authorization checks */ @@ -9,7 +10,7 @@ order by __forums__."id" asc limit 2; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select __messages__."body" as "0", @@ -21,14 +22,14 @@ lateral ( ( __messages__.archived_at is null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) order by __messages__."id" asc limit 3 ) as __messages_result__; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select (count(*))::text as "0", @@ -38,7 +39,7 @@ lateral ( ( __messages__.archived_at is null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) ) as __messages_result__; diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.mermaid b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.mermaid index 51de561fc3..f91db7c787 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.mermaid @@ -11,142 +11,112 @@ graph TD %% plan dependencies PgSelect9[["PgSelect[9∈0] ➊
ᐸforumsᐳ"]]:::plan Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant83{{"Constant[83∈0] ➊
ᐸ2ᐳ"}}:::plan - Object12 & Constant83 --> PgSelect9 + Constant80{{"Constant[80∈0] ➊
ᐸ2ᐳ"}}:::plan + Lambda13[["Lambda[13∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object12 & Constant80 & Lambda13 --> PgSelect9 Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 + Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan + Constant80 --> Connection25 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 - PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan - PgSelect9 --> PgSelectRows13 - Connection24{{"Connection[24∈0] ➊
ᐸ20ᐳ"}}:::plan - Constant83 --> Connection24 + Constant81{{"Constant[81∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant81 --> Lambda13 + PgSelectRows14[["PgSelectRows[14∈0] ➊"]]:::plan + PgSelect9 --> PgSelectRows14 + Lambda27[["Lambda[27∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Constant82{{"Constant[82∈0] ➊
ᐸ'NO'ᐳ"}}:::plan + Constant82 --> Lambda27 + PgPageInfo53{{"PgPageInfo[53∈0] ➊"}}:::plan + Connection25 --> PgPageInfo53 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant8{{"Constant[8∈0] ➊
ᐸundefinedᐳ"}}:::plan - __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan - PgSelectRows13 ==> __Item14 - PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan - __Item14 --> PgSelectSingle15 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression16 - PgSelect25[["PgSelect[25∈3]
ᐸmessages+1ᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__forums__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression19 & Connection24 & Constant83 --> PgSelect25 - Object64{{"Object[64∈3]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access59{{"Access[59∈3]
ᐸ25.hasMoreᐳ"}}:::plan - Constant83 & Constant8 & Constant8 & Access59 --> Object64 - Object60{{"Object[60∈3]
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant83 & Constant8 & Access59 --> Object60 - PgSelect78[["PgSelect[78∈3]
ᐸmessages(aggregate)ᐳ"]]:::plan - Object12 & PgClassExpression19 & Connection24 --> PgSelect78 - PgCursor71{{"PgCursor[71∈3]"}}:::plan - PgSelectSingle69{{"PgSelectSingle[69∈3]
ᐸmessagesᐳ"}}:::plan - Access42{{"Access[42∈3]
ᐸ25.cursorDetailsᐳ"}}:::plan - PgSelectSingle69 & Access42 --> PgCursor71 - PgCursor77{{"PgCursor[77∈3]"}}:::plan - PgSelectSingle75{{"PgSelectSingle[75∈3]
ᐸmessagesᐳ"}}:::plan - PgSelectSingle75 & Access42 --> PgCursor77 - PgSelectSingle15 --> PgClassExpression19 - PgSelectRows26[["PgSelectRows[26∈3]"]]:::plan - PgSelect25 --> PgSelectRows26 - PgSelect25 --> Access42 - PgPageInfo56{{"PgPageInfo[56∈3] ➊"}}:::plan - Connection24 --> PgPageInfo56 - PgSelect25 --> Access59 - Lambda61{{"Lambda[61∈3]
ᐸhasNextPageCbᐳ"}}:::plan - Object60 --> Lambda61 - Lambda65{{"Lambda[65∈3]
ᐸhasPreviousPageCbᐳ"}}:::plan - Object64 --> Lambda65 - First67{{"First[67∈3]"}}:::plan - PgSelectRows26 --> First67 - First67 --> PgSelectSingle69 - Last73{{"Last[73∈3]"}}:::plan - PgSelectRows26 --> Last73 - Last73 --> PgSelectSingle75 - First79{{"First[79∈3]"}}:::plan - PgSelectRows80[["PgSelectRows[80∈3]"]]:::plan - PgSelectRows80 --> First79 - PgSelect78 --> PgSelectRows80 - PgSelectSingle81{{"PgSelectSingle[81∈3]
ᐸmessagesᐳ"}}:::plan - First79 --> PgSelectSingle81 - PgClassExpression82{{"PgClassExpression[82∈3]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle81 --> PgClassExpression82 - __Item27[/"__Item[27∈4]
ᐸ26ᐳ"\]:::itemplan - PgSelectRows26 ==> __Item27 - PgSelectSingle28{{"PgSelectSingle[28∈4]
ᐸmessagesᐳ"}}:::plan - __Item27 --> PgSelectSingle28 - PgSelect31[["PgSelect[31∈5]
ᐸusersᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression30 --> PgSelect31 - PgClassExpression29{{"PgClassExpression[29∈5]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression29 - PgSelectSingle28 --> PgClassExpression30 - First35{{"First[35∈5]"}}:::plan - PgSelectRows36[["PgSelectRows[36∈5]"]]:::plan - PgSelectRows36 --> First35 - PgSelect31 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈5]
ᐸusersᐳ"}}:::plan - First35 --> PgSelectSingle37 - PgClassExpression38{{"PgClassExpression[38∈6]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈6]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression39 - PgCursor43{{"PgCursor[43∈7]"}}:::plan - PgSelectSingle28 & Access42 --> PgCursor43 - PgSelect46[["PgSelect[46∈7]
ᐸusersᐳ"]]:::plan - PgClassExpression45{{"PgClassExpression[45∈7]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression45 --> PgSelect46 - PgClassExpression44{{"PgClassExpression[44∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression44 - PgSelectSingle28 --> PgClassExpression45 - First50{{"First[50∈7]"}}:::plan - PgSelectRows51[["PgSelectRows[51∈7]"]]:::plan - PgSelectRows51 --> First50 - PgSelect46 --> PgSelectRows51 - PgSelectSingle52{{"PgSelectSingle[52∈7]
ᐸusersᐳ"}}:::plan - First50 --> PgSelectSingle52 - PgClassExpression53{{"PgClassExpression[53∈8]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈8]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression54 + PgSelect28[["PgSelect[28∈1]
ᐸmessages+1ᐳ"]]:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__...chived_at”ᐳ"}}:::plan + Lambda27 -->|rejectNull| PgSelect28 + Object12 & PgClassExpression20 & PgClassExpression26 & Connection25 & Constant80 --> PgSelect28 + PgSelect75[["PgSelect[75∈1]
ᐸmessages(aggregate)ᐳ"]]:::plan + Lambda27 -->|rejectNull| PgSelect75 + Object12 & PgClassExpression20 & PgClassExpression26 & Connection25 --> PgSelect75 + Object61{{"Object[61∈1]
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access55{{"Access[55∈1]
ᐸ28.hasMoreᐳ"}}:::plan + Constant80 & Access55 --> Object61 + Object56{{"Object[56∈1]
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant80 & Access55 --> Object56 + PgCursor68{{"PgCursor[68∈1]"}}:::plan + PgSelectSingle66{{"PgSelectSingle[66∈1]
ᐸmessagesᐳ"}}:::plan + Access45{{"Access[45∈1]
ᐸ28.cursorDetailsᐳ"}}:::plan + PgSelectSingle66 & Access45 --> PgCursor68 + PgCursor74{{"PgCursor[74∈1]"}}:::plan + PgSelectSingle72{{"PgSelectSingle[72∈1]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle72 & Access45 --> PgCursor74 + __Item15[/"__Item[15∈1]
ᐸ14ᐳ"\]:::itemplan + PgSelectRows14 ==> __Item15 + PgSelectSingle16{{"PgSelectSingle[16∈1]
ᐸforumsᐳ"}}:::plan + __Item15 --> PgSelectSingle16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression17 + PgSelectSingle16 --> PgClassExpression20 + PgSelectSingle16 --> PgClassExpression26 + PgSelectRows29[["PgSelectRows[29∈1]"]]:::plan + PgSelect28 --> PgSelectRows29 + PgSelect28 --> Access45 + PgSelect28 --> Access55 + Lambda57{{"Lambda[57∈1]
ᐸhasNextPageCbᐳ"}}:::plan + Object56 --> Lambda57 + Lambda62{{"Lambda[62∈1]
ᐸhasPreviousPageCbᐳ"}}:::plan + Object61 --> Lambda62 + First64{{"First[64∈1]"}}:::plan + PgSelectRows29 --> First64 + First64 --> PgSelectSingle66 + Last70{{"Last[70∈1]"}}:::plan + PgSelectRows29 --> Last70 + Last70 --> PgSelectSingle72 + First76{{"First[76∈1]"}}:::plan + PgSelectRows77[["PgSelectRows[77∈1]"]]:::plan + PgSelectRows77 --> First76 + PgSelect75 --> PgSelectRows77 + PgSelectSingle78{{"PgSelectSingle[78∈1]
ᐸmessagesᐳ"}}:::plan + First76 --> PgSelectSingle78 + PgClassExpression79{{"PgClassExpression[79∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle78 --> PgClassExpression79 + PgSelect34[["PgSelect[34∈2]
ᐸusersᐳ"]]:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object12 & PgClassExpression33 --> PgSelect34 + PgCursor46{{"PgCursor[46∈2]"}}:::plan + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle31 & Access45 --> PgCursor46 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows29 ==> __Item30 + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgSelectSingle31 --> PgClassExpression33 + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/connections/pagination-when-inlined" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 10, 11, 83, 12, 24
2: PgSelect[9]
3: PgSelectRows[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 10, 11, 80, 81, 82, 12, 25, 53
2: Lambda[13], Lambda[27]
3: PgSelect[9]
4: PgSelectRows[14]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant8,PgSelect9,Access10,Access11,Object12,PgSelectRows13,Connection24,Constant83 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 12, 24, 83, 8

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect9,Access10,Access11,Object12,Lambda13,PgSelectRows14,Connection25,Lambda27,PgPageInfo53,Constant80,Constant81,Constant82 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 27, 25, 80, 8, 53

ROOT __Item{1}ᐸ14ᐳ[15]
1:
ᐳ: 16, 17, 20, 26
2: PgSelect[28], PgSelect[75]
ᐳ: 45, 55, 56, 57, 61, 62
3: PgSelectRows[29], PgSelectRows[77]
ᐳ: 64, 66, 68, 70, 72, 74, 76, 78, 79"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item14,PgSelectSingle15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 12, 24, 83, 8

ROOT PgSelectSingle{1}ᐸforumsᐳ[15]"):::bucket + class Bucket1,__Item15,PgSelectSingle16,PgClassExpression17,PgClassExpression20,PgClassExpression26,PgSelect28,PgSelectRows29,Access45,Access55,Object56,Lambda57,Object61,Lambda62,First64,PgSelectSingle66,PgCursor68,Last70,PgSelectSingle72,PgCursor74,PgSelect75,First76,PgSelectRows77,PgSelectSingle78,PgClassExpression79 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 12, 45

ROOT __Item{2}ᐸ29ᐳ[30]
1:
ᐳ: 31, 32, 33, 46
2: PgSelect[34]
3: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression16 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 12, 24, 83, 8

ROOT Connectionᐸ20ᐳ[24]
1:
ᐳ: PgClassExpression[19], PgPageInfo[56]
2: PgSelect[25], PgSelect[78]
ᐳ: 42, 59, 60, 61, 64, 65
3: PgSelectRows[26], PgSelectRows[80]
ᐳ: 67, 69, 71, 73, 75, 77, 79, 81, 82"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgSelect25,PgSelectRows26,Access42,PgPageInfo56,Access59,Object60,Lambda61,Object64,Lambda65,First67,PgSelectSingle69,PgCursor71,Last73,PgSelectSingle75,PgCursor77,PgSelect78,First79,PgSelectRows80,PgSelectSingle81,PgClassExpression82 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 12, 42

ROOT __Item{4}ᐸ26ᐳ[27]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item27,PgSelectSingle28 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 28, 12

ROOT PgSelectSingle{4}ᐸmessagesᐳ[28]
1:
ᐳ: 29, 30
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: First[35], PgSelectSingle[37]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression29,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 37

ROOT PgSelectSingle{5}ᐸusersᐳ[37]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression38,PgClassExpression39 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 28, 42, 12

ROOT PgSelectSingle{4}ᐸmessagesᐳ[28]
1:
ᐳ: 43, 44, 45
2: PgSelect[46]
3: PgSelectRows[51]
ᐳ: First[50], PgSelectSingle[52]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgCursor43,PgClassExpression44,PgClassExpression45,PgSelect46,First50,PgSelectRows51,PgSelectSingle52 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 52

ROOT PgSelectSingle{7}ᐸusersᐳ[52]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression53,PgClassExpression54 bucket8 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42,PgCursor46 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.sql b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.sql index 170d00ae0a..d6248a5a4a 100644 --- a/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.sql +++ b/grafast/dataplan-pg/__tests__/queries/connections/pagination-when-inlined.sql @@ -1,6 +1,7 @@ select __forums__."name" as "0", - __forums__."id" as "1" + __forums__."id" as "1", + to_char(__forums__."archived_at", 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text) as "2" from app_public.forums as __forums__ where ( true /* authorization checks */ @@ -9,7 +10,7 @@ order by __forums__."id" asc limit 2; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select __messages__."body" as "0", @@ -21,14 +22,14 @@ lateral ( ( __messages__.archived_at is null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) order by __messages__."id" asc limit 3 ) as __messages_result__; select __messages_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"uuid" as "id0" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"timestamptz" as "id0", (ids.value->>1)::"uuid" as "id1" from json_array_elements($1::json) with ordinality as ids) as __messages_identifiers__, lateral ( select (count(*))::text as "0", @@ -38,7 +39,7 @@ lateral ( ( __messages__.archived_at is null ) and ( - __messages__."forum_id" = __messages_identifiers__."id0" + __messages__."forum_id" = __messages_identifiers__."id1" ) ) as __messages_result__; diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.deopt.mermaid index 3c289f28d1..4232832c1a 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.deopt.mermaid @@ -11,11 +11,25 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸforumsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant49{{"Constant[49∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan - Object10 & Constant49 --> PgSelect7 + Constant47{{"Constant[47∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan + Object10 & Constant47 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect15[["PgSelect[15∈0] ➊
ᐸforums_random_userᐳ"]]:::plan + PgFromExpression17{{"PgFromExpression[17∈0] ➊"}}:::plan + Object10 & PgFromExpression17 --> PgSelect15 + PgSelect24[["PgSelect[24∈0] ➊
ᐸusers_most_recent_forumᐳ"]]:::plan + PgFromExpression26{{"PgFromExpression[26∈0] ➊"}}:::plan + Object10 & PgFromExpression26 --> PgSelect24 + PgSelect32[["PgSelect[32∈0] ➊
ᐸforums_unique_author_countᐳ"]]:::plan + PgFromExpression34{{"PgFromExpression[34∈0] ➊"}}:::plan + Object10 & PgFromExpression34 --> PgSelect32 + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸ__users_mo...nt_forum__ᐳ"}}:::plan + PgClassExpression31 --> PgFromExpression34 + PgSelect40[["PgSelect[40∈0] ➊
ᐸforums_featured_messagesᐳ"]]:::plan + PgFromExpression42{{"PgFromExpression[42∈0] ➊"}}:::plan + Object10 & PgFromExpression42 --> PgSelect40 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,79 +39,56 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸforumsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant32{{"Constant[32∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸforums_random_userᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__forums__ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect15 + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__forums__ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - First19{{"First[19∈1] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect15 --> PgSelectRows20 - PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸusersᐳ"}}:::plan - First19 --> PgSelectSingle21 - PgSelect25[["PgSelect[25∈2] ➊
ᐸusers_most_recent_forumᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈2] ➊
ᐸ__forums_random_user__ᐳ"}}:::plan - Object10 & PgClassExpression24 --> PgSelect25 - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ__forums_r...”username”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈2] ➊
ᐸ__forums_r...vatar_url”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression23 - PgSelectSingle21 --> PgClassExpression24 - First29{{"First[29∈2] ➊"}}:::plan - PgSelectRows30[["PgSelectRows[30∈2] ➊"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈2] ➊
ᐸusers_most_recent_forumᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgSelect34[["PgSelect[34∈3] ➊
ᐸforums_unique_author_countᐳ"]]:::plan - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__users_mo...nt_forum__ᐳ"}}:::plan - Object10 & PgClassExpression33 & Constant32 --> PgSelect34 - PgSelect43[["PgSelect[43∈3] ➊
ᐸforums_featured_messagesᐳ"]]:::plan - Object10 & PgClassExpression33 --> PgSelect43 - PgSelectSingle31 --> PgClassExpression33 - First38{{"First[38∈3] ➊"}}:::plan - PgSelectRows39[["PgSelectRows[39∈3] ➊"]]:::plan - PgSelectRows39 --> First38 - PgSelect34 --> PgSelectRows39 - PgSelectSingle40{{"PgSelectSingle[40∈3] ➊
ᐸforums_unique_author_countᐳ"}}:::plan - First38 --> PgSelectSingle40 - PgClassExpression41{{"PgClassExpression[41∈3] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan - PgSelectSingle40 --> PgClassExpression41 - PgSelectRows45[["PgSelectRows[45∈3] ➊"]]:::plan - PgSelect43 --> PgSelectRows45 - __Item46[/"__Item[46∈4]
ᐸ45ᐳ"\]:::itemplan - PgSelectRows45 ==> __Item46 - PgSelectSingle47{{"PgSelectSingle[47∈4]
ᐸforums_featured_messagesᐳ"}}:::plan - __Item46 --> PgSelectSingle47 - PgClassExpression48{{"PgClassExpression[48∈5]
ᐸ__forums_f...s__.”body”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression48 + PgClassExpression14 --> PgFromExpression17 + First18{{"First[18∈0] ➊"}}:::plan + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelectRows19 --> First18 + PgSelect15 --> PgSelectRows19 + PgSelectSingle20{{"PgSelectSingle[20∈0] ➊
ᐸusersᐳ"}}:::plan + First18 --> PgSelectSingle20 + PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__forums_r...”username”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression21 + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__forums_r...vatar_url”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression22 + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__forums_random_user__ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression23 + PgClassExpression23 --> PgFromExpression26 + First27{{"First[27∈0] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈0] ➊"]]:::plan + PgSelectRows28 --> First27 + PgSelect24 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈0] ➊
ᐸusers_most_recent_forumᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgSelectSingle29 --> PgClassExpression31 + First35{{"First[35∈0] ➊"}}:::plan + PgSelectRows36[["PgSelectRows[36∈0] ➊"]]:::plan + PgSelectRows36 --> First35 + PgSelect32 --> PgSelectRows36 + PgSelectSingle37{{"PgSelectSingle[37∈0] ➊
ᐸforums_unique_author_countᐳ"}}:::plan + First35 --> PgSelectSingle37 + PgClassExpression38{{"PgClassExpression[38∈0] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression38 + PgClassExpression31 --> PgFromExpression42 + PgSelectRows43[["PgSelectRows[43∈0] ➊"]]:::plan + PgSelect40 --> PgSelectRows43 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item44[/"__Item[44∈1]
ᐸ43ᐳ"\]:::itemplan + PgSelectRows43 ==> __Item44 + PgSelectSingle45{{"PgSelectSingle[45∈1]
ᐸforums_featured_messagesᐳ"}}:::plan + __Item44 --> PgSelectSingle45 + PgClassExpression46{{"PgClassExpression[46∈1]
ᐸ__forums_f...s__.”body”ᐳ"}}:::plan + PgSelectSingle45 --> PgClassExpression46 %% define steps subgraph "Buckets for queries/functions/computed-column-combined" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 32, 49, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 30, 47, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 17
4: PgSelect[15]
5: PgSelectRows[19]
ᐳ: 18, 20, 21, 22, 23, 26
6: PgSelect[24]
7: PgSelectRows[28]
ᐳ: 27, 29, 31, 34, 42
8: PgSelect[32], PgSelect[40]
9: PgSelectRows[36], PgSelectRows[43]
ᐳ: 35, 37, 38"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant32,Constant49 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10, 32

ROOT PgSelectSingleᐸforumsᐳ[13]
1:
ᐳ: PgClassExpression[14]
2: PgSelect[15]
3: PgSelectRows[20]
ᐳ: First[19], PgSelectSingle[21]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect15,PgFromExpression17,First18,PgSelectRows19,PgSelectSingle20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgSelect24,PgFromExpression26,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression31,PgSelect32,PgFromExpression34,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression38,PgSelect40,PgFromExpression42,PgSelectRows43,Constant47 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ43ᐳ[44]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgSelect15,First19,PgSelectRows20,PgSelectSingle21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 21, 10, 32

ROOT PgSelectSingle{1}ᐸusersᐳ[21]
1:
ᐳ: 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 31, 10, 32

ROOT PgSelectSingle{2}ᐸusers_most_recent_forumᐳ[31]
1:
ᐳ: PgClassExpression[33]
2: PgSelect[34], PgSelect[43]
3: PgSelectRows[39], PgSelectRows[45]
ᐳ: 38, 40, 41"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgSelect43,PgSelectRows45 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ45ᐳ[46]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item46,PgSelectSingle47 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 47

ROOT PgSelectSingle{4}ᐸforums_featured_messagesᐳ[47]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression48 bucket5 + class Bucket1,__Item44,PgSelectSingle45,PgClassExpression46 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.deopt.sql b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.deopt.sql index f7aae9155a..4453229424 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.deopt.sql @@ -25,10 +25,7 @@ from app_public.users_most_recent_forum($1::app_public.users) as __users_most_re select __forums_unique_author_count__.v::text as "0" -from app_public.forums_unique_author_count( - $1::app_public.forums, - $2::"bool" -) as __forums_unique_author_count__(v) +from app_public.forums_unique_author_count($1::app_public.forums) as __forums_unique_author_count__(v) where ( true /* authorization checks */ ); diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.mermaid index 3c289f28d1..4232832c1a 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.mermaid @@ -11,11 +11,25 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸforumsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant49{{"Constant[49∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan - Object10 & Constant49 --> PgSelect7 + Constant47{{"Constant[47∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan + Object10 & Constant47 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect15[["PgSelect[15∈0] ➊
ᐸforums_random_userᐳ"]]:::plan + PgFromExpression17{{"PgFromExpression[17∈0] ➊"}}:::plan + Object10 & PgFromExpression17 --> PgSelect15 + PgSelect24[["PgSelect[24∈0] ➊
ᐸusers_most_recent_forumᐳ"]]:::plan + PgFromExpression26{{"PgFromExpression[26∈0] ➊"}}:::plan + Object10 & PgFromExpression26 --> PgSelect24 + PgSelect32[["PgSelect[32∈0] ➊
ᐸforums_unique_author_countᐳ"]]:::plan + PgFromExpression34{{"PgFromExpression[34∈0] ➊"}}:::plan + Object10 & PgFromExpression34 --> PgSelect32 + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸ__users_mo...nt_forum__ᐳ"}}:::plan + PgClassExpression31 --> PgFromExpression34 + PgSelect40[["PgSelect[40∈0] ➊
ᐸforums_featured_messagesᐳ"]]:::plan + PgFromExpression42{{"PgFromExpression[42∈0] ➊"}}:::plan + Object10 & PgFromExpression42 --> PgSelect40 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,79 +39,56 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸforumsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant32{{"Constant[32∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸforums_random_userᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__forums__ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect15 + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__forums__ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - First19{{"First[19∈1] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect15 --> PgSelectRows20 - PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸusersᐳ"}}:::plan - First19 --> PgSelectSingle21 - PgSelect25[["PgSelect[25∈2] ➊
ᐸusers_most_recent_forumᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈2] ➊
ᐸ__forums_random_user__ᐳ"}}:::plan - Object10 & PgClassExpression24 --> PgSelect25 - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ__forums_r...”username”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈2] ➊
ᐸ__forums_r...vatar_url”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression23 - PgSelectSingle21 --> PgClassExpression24 - First29{{"First[29∈2] ➊"}}:::plan - PgSelectRows30[["PgSelectRows[30∈2] ➊"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈2] ➊
ᐸusers_most_recent_forumᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgSelect34[["PgSelect[34∈3] ➊
ᐸforums_unique_author_countᐳ"]]:::plan - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__users_mo...nt_forum__ᐳ"}}:::plan - Object10 & PgClassExpression33 & Constant32 --> PgSelect34 - PgSelect43[["PgSelect[43∈3] ➊
ᐸforums_featured_messagesᐳ"]]:::plan - Object10 & PgClassExpression33 --> PgSelect43 - PgSelectSingle31 --> PgClassExpression33 - First38{{"First[38∈3] ➊"}}:::plan - PgSelectRows39[["PgSelectRows[39∈3] ➊"]]:::plan - PgSelectRows39 --> First38 - PgSelect34 --> PgSelectRows39 - PgSelectSingle40{{"PgSelectSingle[40∈3] ➊
ᐸforums_unique_author_countᐳ"}}:::plan - First38 --> PgSelectSingle40 - PgClassExpression41{{"PgClassExpression[41∈3] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan - PgSelectSingle40 --> PgClassExpression41 - PgSelectRows45[["PgSelectRows[45∈3] ➊"]]:::plan - PgSelect43 --> PgSelectRows45 - __Item46[/"__Item[46∈4]
ᐸ45ᐳ"\]:::itemplan - PgSelectRows45 ==> __Item46 - PgSelectSingle47{{"PgSelectSingle[47∈4]
ᐸforums_featured_messagesᐳ"}}:::plan - __Item46 --> PgSelectSingle47 - PgClassExpression48{{"PgClassExpression[48∈5]
ᐸ__forums_f...s__.”body”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression48 + PgClassExpression14 --> PgFromExpression17 + First18{{"First[18∈0] ➊"}}:::plan + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelectRows19 --> First18 + PgSelect15 --> PgSelectRows19 + PgSelectSingle20{{"PgSelectSingle[20∈0] ➊
ᐸusersᐳ"}}:::plan + First18 --> PgSelectSingle20 + PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__forums_r...”username”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression21 + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__forums_r...vatar_url”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression22 + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__forums_random_user__ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression23 + PgClassExpression23 --> PgFromExpression26 + First27{{"First[27∈0] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈0] ➊"]]:::plan + PgSelectRows28 --> First27 + PgSelect24 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈0] ➊
ᐸusers_most_recent_forumᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgSelectSingle29 --> PgClassExpression31 + First35{{"First[35∈0] ➊"}}:::plan + PgSelectRows36[["PgSelectRows[36∈0] ➊"]]:::plan + PgSelectRows36 --> First35 + PgSelect32 --> PgSelectRows36 + PgSelectSingle37{{"PgSelectSingle[37∈0] ➊
ᐸforums_unique_author_countᐳ"}}:::plan + First35 --> PgSelectSingle37 + PgClassExpression38{{"PgClassExpression[38∈0] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression38 + PgClassExpression31 --> PgFromExpression42 + PgSelectRows43[["PgSelectRows[43∈0] ➊"]]:::plan + PgSelect40 --> PgSelectRows43 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item44[/"__Item[44∈1]
ᐸ43ᐳ"\]:::itemplan + PgSelectRows43 ==> __Item44 + PgSelectSingle45{{"PgSelectSingle[45∈1]
ᐸforums_featured_messagesᐳ"}}:::plan + __Item44 --> PgSelectSingle45 + PgClassExpression46{{"PgClassExpression[46∈1]
ᐸ__forums_f...s__.”body”ᐳ"}}:::plan + PgSelectSingle45 --> PgClassExpression46 %% define steps subgraph "Buckets for queries/functions/computed-column-combined" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 32, 49, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 30, 47, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 17
4: PgSelect[15]
5: PgSelectRows[19]
ᐳ: 18, 20, 21, 22, 23, 26
6: PgSelect[24]
7: PgSelectRows[28]
ᐳ: 27, 29, 31, 34, 42
8: PgSelect[32], PgSelect[40]
9: PgSelectRows[36], PgSelectRows[43]
ᐳ: 35, 37, 38"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant32,Constant49 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10, 32

ROOT PgSelectSingleᐸforumsᐳ[13]
1:
ᐳ: PgClassExpression[14]
2: PgSelect[15]
3: PgSelectRows[20]
ᐳ: First[19], PgSelectSingle[21]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect15,PgFromExpression17,First18,PgSelectRows19,PgSelectSingle20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgSelect24,PgFromExpression26,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression31,PgSelect32,PgFromExpression34,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression38,PgSelect40,PgFromExpression42,PgSelectRows43,Constant47 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ43ᐳ[44]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgSelect15,First19,PgSelectRows20,PgSelectSingle21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 21, 10, 32

ROOT PgSelectSingle{1}ᐸusersᐳ[21]
1:
ᐳ: 22, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 31, 10, 32

ROOT PgSelectSingle{2}ᐸusers_most_recent_forumᐳ[31]
1:
ᐳ: PgClassExpression[33]
2: PgSelect[34], PgSelect[43]
3: PgSelectRows[39], PgSelectRows[45]
ᐳ: 38, 40, 41"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgSelect43,PgSelectRows45 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ45ᐳ[46]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item46,PgSelectSingle47 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 47

ROOT PgSelectSingle{4}ᐸforums_featured_messagesᐳ[47]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression48 bucket5 + class Bucket1,__Item44,PgSelectSingle45,PgClassExpression46 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.sql b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.sql index f7aae9155a..4453229424 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.sql +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-combined.sql @@ -25,10 +25,7 @@ from app_public.users_most_recent_forum($1::app_public.users) as __users_most_re select __forums_unique_author_count__.v::text as "0" -from app_public.forums_unique_author_count( - $1::app_public.forums, - $2::"bool" -) as __forums_unique_author_count__(v) +from app_public.forums_unique_author_count($1::app_public.forums) as __forums_unique_author_count__(v) where ( true /* authorization checks */ ); diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.deopt.mermaid index bcc0723e10..4256fb22b6 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.deopt.mermaid @@ -9,74 +9,70 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgSelect16[["PgSelect[16∈2]
ᐸforums_messages_list_setᐳ"]]:::plan - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__ᐳ"}}:::plan - Object11 & PgClassExpression15 --> PgSelect16 - __ListTransform20[["__ListTransform[20∈2]
ᐸpartitionByIndex1:16ᐳ"]]:::plan - PgSelectRows21[["PgSelectRows[21∈2]"]]:::plan - PgSelectRows21 & PgSelect16 --> __ListTransform20 - PgSelectSingle14 --> PgClassExpression15 - PgSelect16 --> PgSelectRows21 - __Item22[/"__Item[22∈3]
ᐸ21ᐳ"\]:::itemplan - PgSelectRows21 -.-> __Item22 - PgSelectSingle23{{"PgSelectSingle[23∈3]
ᐸforums_messages_list_setᐳ"}}:::plan - __Item22 --> PgSelectSingle23 - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__forums_m..._set_idx__ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression24 - __Item25[/"__Item[25∈4]
ᐸ20ᐳ"\]:::itemplan - __ListTransform20 ==> __Item25 - __Item28[/"__Item[28∈6]
ᐸ25ᐳ"\]:::itemplan - __Item25 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈6]
ᐸforums_messages_list_setᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈7]
ᐸ__forums_m...t__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈7]
ᐸ__forums_m...”featured”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression31 + PgFromExpression21{{"PgFromExpression[21∈0] ➊"}}:::plan + PgSelect17[["PgSelect[17∈1]
ᐸforums_messages_list_setᐳ"]]:::plan + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__ᐳ"}}:::plan + Object11 & PgClassExpression16 & PgFromExpression21 --> PgSelect17 + __ListTransform22[["__ListTransform[22∈1]
ᐸpartitionByIndex1:17ᐳ"]]:::plan + PgSelectRows23[["PgSelectRows[23∈1]"]]:::plan + PgSelectRows23 & PgSelect17 --> __ListTransform22 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgSelectSingle15 --> PgClassExpression16 + PgSelect17 --> PgSelectRows23 + __Item24[/"__Item[24∈2]
ᐸ23ᐳ"\]:::itemplan + PgSelectRows23 -.-> __Item24 + PgSelectSingle25{{"PgSelectSingle[25∈2]
ᐸforums_messages_list_setᐳ"}}:::plan + __Item24 --> PgSelectSingle25 + PgClassExpression26{{"PgClassExpression[26∈2]
ᐸ__forums_m..._set_idx__ᐳ"}}:::plan + PgSelectSingle25 --> PgClassExpression26 + __Item27[/"__Item[27∈3]
ᐸ22ᐳ"\]:::itemplan + __ListTransform22 ==> __Item27 + __Item30[/"__Item[30∈5]
ᐸ27ᐳ"\]:::itemplan + __Item27 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈5]
ᐸforums_messages_list_setᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈5]
ᐸ__forums_m...t__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈5]
ᐸ__forums_m...”featured”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/functions/computed-column-forums-messages-list-set" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 21, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,PgFromExpression21 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 21

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16
2: PgSelect[17]
3: PgSelectRows[23]
4: __ListTransform[22]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]
1:
ᐳ: PgClassExpression[15]
2: PgSelect[16]
3: PgSelectRows[21]
4: __ListTransform[20]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgSelect17,__ListTransform22,PgSelectRows23 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgClassExpression{2}ᐸ__forums_m..._set_idx__ᐳ[26]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgSelect16,__ListTransform20,PgSelectRows21 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgClassExpression{3}ᐸ__forums_m..._set_idx__ᐳ[24]"):::bucket + class Bucket2,__Item24,PgSelectSingle25,PgClassExpression26 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ22ᐳ[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item22,PgSelectSingle23,PgClassExpression24 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ20ᐳ[25]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item25 bucket4 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ25ᐳ[28]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,__Item28,PgSelectSingle29 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 29

ROOT PgSelectSingle{6}ᐸforums_messages_list_setᐳ[29]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression30,PgClassExpression31 bucket7 + class Bucket3,__Item27 bucket3 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ27ᐳ[30]"):::bucket + classDef bucket5 stroke:#7fff00 + class Bucket5,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 - Bucket4 --> Bucket6 - Bucket6 --> Bucket7 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.deopt.sql b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.deopt.sql index 3fa7712f2e..1de8e22bee 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.deopt.sql @@ -4,9 +4,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.mermaid index bcc0723e10..4256fb22b6 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.mermaid @@ -9,74 +9,70 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgSelect16[["PgSelect[16∈2]
ᐸforums_messages_list_setᐳ"]]:::plan - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__ᐳ"}}:::plan - Object11 & PgClassExpression15 --> PgSelect16 - __ListTransform20[["__ListTransform[20∈2]
ᐸpartitionByIndex1:16ᐳ"]]:::plan - PgSelectRows21[["PgSelectRows[21∈2]"]]:::plan - PgSelectRows21 & PgSelect16 --> __ListTransform20 - PgSelectSingle14 --> PgClassExpression15 - PgSelect16 --> PgSelectRows21 - __Item22[/"__Item[22∈3]
ᐸ21ᐳ"\]:::itemplan - PgSelectRows21 -.-> __Item22 - PgSelectSingle23{{"PgSelectSingle[23∈3]
ᐸforums_messages_list_setᐳ"}}:::plan - __Item22 --> PgSelectSingle23 - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__forums_m..._set_idx__ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression24 - __Item25[/"__Item[25∈4]
ᐸ20ᐳ"\]:::itemplan - __ListTransform20 ==> __Item25 - __Item28[/"__Item[28∈6]
ᐸ25ᐳ"\]:::itemplan - __Item25 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈6]
ᐸforums_messages_list_setᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈7]
ᐸ__forums_m...t__.”body”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈7]
ᐸ__forums_m...”featured”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression31 + PgFromExpression21{{"PgFromExpression[21∈0] ➊"}}:::plan + PgSelect17[["PgSelect[17∈1]
ᐸforums_messages_list_setᐳ"]]:::plan + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__ᐳ"}}:::plan + Object11 & PgClassExpression16 & PgFromExpression21 --> PgSelect17 + __ListTransform22[["__ListTransform[22∈1]
ᐸpartitionByIndex1:17ᐳ"]]:::plan + PgSelectRows23[["PgSelectRows[23∈1]"]]:::plan + PgSelectRows23 & PgSelect17 --> __ListTransform22 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgSelectSingle15 --> PgClassExpression16 + PgSelect17 --> PgSelectRows23 + __Item24[/"__Item[24∈2]
ᐸ23ᐳ"\]:::itemplan + PgSelectRows23 -.-> __Item24 + PgSelectSingle25{{"PgSelectSingle[25∈2]
ᐸforums_messages_list_setᐳ"}}:::plan + __Item24 --> PgSelectSingle25 + PgClassExpression26{{"PgClassExpression[26∈2]
ᐸ__forums_m..._set_idx__ᐳ"}}:::plan + PgSelectSingle25 --> PgClassExpression26 + __Item27[/"__Item[27∈3]
ᐸ22ᐳ"\]:::itemplan + __ListTransform22 ==> __Item27 + __Item30[/"__Item[30∈5]
ᐸ27ᐳ"\]:::itemplan + __Item27 ==> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈5]
ᐸforums_messages_list_setᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈5]
ᐸ__forums_m...t__.”body”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈5]
ᐸ__forums_m...”featured”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression33 %% define steps subgraph "Buckets for queries/functions/computed-column-forums-messages-list-set" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 21, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,PgFromExpression21 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 21

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16
2: PgSelect[17]
3: PgSelectRows[23]
4: __ListTransform[22]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]
1:
ᐳ: PgClassExpression[15]
2: PgSelect[16]
3: PgSelectRows[21]
4: __ListTransform[20]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgSelect17,__ListTransform22,PgSelectRows23 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgClassExpression{2}ᐸ__forums_m..._set_idx__ᐳ[26]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgSelect16,__ListTransform20,PgSelectRows21 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgClassExpression{3}ᐸ__forums_m..._set_idx__ᐳ[24]"):::bucket + class Bucket2,__Item24,PgSelectSingle25,PgClassExpression26 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ22ᐳ[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item22,PgSelectSingle23,PgClassExpression24 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ20ᐳ[25]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item25 bucket4 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ25ᐳ[28]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,__Item28,PgSelectSingle29 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 29

ROOT PgSelectSingle{6}ᐸforums_messages_list_setᐳ[29]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression30,PgClassExpression31 bucket7 + class Bucket3,__Item27 bucket3 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ27ᐳ[30]"):::bucket + classDef bucket5 stroke:#7fff00 + class Bucket5,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 - Bucket4 --> Bucket6 - Bucket6 --> Bucket7 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.sql b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.sql index 3fa7712f2e..1de8e22bee 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.sql +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-list-set.sql @@ -4,9 +4,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.deopt.mermaid index 0ef566c7fc..6321298f25 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.deopt.mermaid @@ -9,97 +9,93 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression25{{"PgClassExpression[25∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression25 - __ListTransform20[["__ListTransform[20∈3]
ᐸfilter:16ᐳ"]]:::plan - PgSelectRows21[["PgSelectRows[21∈3] ➊"]]:::plan - PgSelect16[["PgSelect[16∈3] ➊
ᐸmessagesᐳ"]]:::plan - PgSelectRows21 & PgSelect16 & PgSelectSingle14 & PgClassExpression25 --> __ListTransform20 - Object11 --> PgSelect16 - PgSelect16 --> PgSelectRows21 - __ListTransform28[["__ListTransform[28∈3]
ᐸgroupBy:20ᐳ"]]:::plan - __ListTransform20 --> __ListTransform28 - Lambda32{{"Lambda[32∈3]"}}:::plan - __ListTransform28 --> Lambda32 - List26{{"List[26∈4]
ᐸ24,25ᐳ"}}:::plan - PgClassExpression24{{"PgClassExpression[24∈4]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan - PgClassExpression24 & PgClassExpression25 --> List26 - __Item22[/"__Item[22∈4]
ᐸ21ᐳ"\]:::itemplan - PgSelectRows21 -.-> __Item22 - PgSelectSingle23{{"PgSelectSingle[23∈4]
ᐸmessagesᐳ"}}:::plan - __Item22 --> PgSelectSingle23 - PgSelectSingle23 --> PgClassExpression24 - Lambda27{{"Lambda[27∈4]"}}:::plan - List26 --> Lambda27 - __Item29[/"__Item[29∈5]
ᐸ20ᐳ"\]:::itemplan - __ListTransform20 -.-> __Item29 - PgSelectSingle30{{"PgSelectSingle[30∈5]
ᐸmessagesᐳ"}}:::plan - __Item29 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - __Item35[/"__Item[35∈7]
ᐸ32ᐳ"\]:::itemplan - Lambda32 ==> __Item35 - __Item38[/"__Item[38∈9]
ᐸ35ᐳ"\]:::itemplan - __Item35 ==> __Item38 - PgSelectSingle39{{"PgSelectSingle[39∈9]
ᐸmessagesᐳ"}}:::plan - __Item38 --> PgSelectSingle39 - PgClassExpression40{{"PgClassExpression[40∈10]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈10]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression41 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression26 + __ListTransform21[["__ListTransform[21∈2]
ᐸfilter:17ᐳ"]]:::plan + PgSelectRows22[["PgSelectRows[22∈2] ➊"]]:::plan + PgSelect17[["PgSelect[17∈2] ➊
ᐸmessagesᐳ"]]:::plan + PgSelect17 -->|rejectNull| __ListTransform21 + PgSelectRows22 & PgSelectSingle15 & PgClassExpression26 --> __ListTransform21 + Object11 --> PgSelect17 + PgSelect17 --> PgSelectRows22 + __ListTransform29[["__ListTransform[29∈2]
ᐸgroupBy:21ᐳ"]]:::plan + __ListTransform21 --> __ListTransform29 + Lambda33{{"Lambda[33∈2]"}}:::plan + __ListTransform29 --> Lambda33 + List27{{"List[27∈3]
ᐸ25,26ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan + PgClassExpression25 & PgClassExpression26 --> List27 + __Item23[/"__Item[23∈3]
ᐸ22ᐳ"\]:::itemplan + PgSelectRows22 -.-> __Item23 + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸmessagesᐳ"}}:::plan + __Item23 --> PgSelectSingle24 + PgSelectSingle24 --> PgClassExpression25 + Lambda28{{"Lambda[28∈3]"}}:::plan + List27 --> Lambda28 + __Item30[/"__Item[30∈4]
ᐸ21ᐳ"\]:::itemplan + __ListTransform21 -.-> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈4]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + __Item36[/"__Item[36∈6]
ᐸ33ᐳ"\]:::itemplan + Lambda33 ==> __Item36 + __Item39[/"__Item[39∈8]
ᐸ36ᐳ"\]:::itemplan + __Item36 ==> __Item39 + PgSelectSingle40{{"PgSelectSingle[40∈8]
ᐸmessagesᐳ"}}:::plan + __Item39 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈8]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/functions/computed-column-forums-messages-with-many-transforms.defer" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression26 bucket1 + Bucket2("Bucket 2 (defer)
Deps: 11, 15, 26

1: PgSelect[17]
2: PgSelectRows[22]
3: __ListTransform[21]
4: __ListTransform[29]
ᐳ: Lambda[33]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression25 bucket2 - Bucket3("Bucket 3 (defer)
Deps: 11, 14, 25

1: PgSelect[16]
2: PgSelectRows[21]
3: __ListTransform[20]
4: __ListTransform[28]
ᐳ: Lambda[32]"):::bucket + class Bucket2,PgSelect17,__ListTransform21,PgSelectRows22,__ListTransform29,Lambda33 bucket2 + Bucket3("Bucket 3 (subroutine)
Deps: 26

ROOT Lambda{3}[28]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgSelect16,__ListTransform20,PgSelectRows21,__ListTransform28,Lambda32 bucket3 - Bucket4("Bucket 4 (subroutine)
Deps: 25

ROOT Lambda{4}[27]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,List27,Lambda28 bucket3 + Bucket4("Bucket 4 (subroutine)

ROOT PgClassExpression{4}ᐸ__messages__.”featured”ᐳ[32]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item22,PgSelectSingle23,PgClassExpression24,List26,Lambda27 bucket4 - Bucket5("Bucket 5 (subroutine)

ROOT PgClassExpression{5}ᐸ__messages__.”featured”ᐳ[31]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item29,PgSelectSingle30,PgClassExpression31 bucket5 - Bucket7("Bucket 7 (listItem)

ROOT __Item{7}ᐸ32ᐳ[35]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,__Item35 bucket7 - Bucket9("Bucket 9 (listItem)

ROOT __Item{9}ᐸ35ᐳ[38]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,__Item38,PgSelectSingle39 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 39

ROOT PgSelectSingle{9}ᐸmessagesᐳ[39]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression40,PgClassExpression41 bucket10 + class Bucket4,__Item30,PgSelectSingle31,PgClassExpression32 bucket4 + Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ33ᐳ[36]"):::bucket + classDef bucket6 stroke:#ff1493 + class Bucket6,__Item36 bucket6 + Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ36ᐳ[39]"):::bucket + classDef bucket8 stroke:#dda0dd + class Bucket8,__Item39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket8 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 & Bucket7 - Bucket7 --> Bucket9 - Bucket9 --> Bucket10 + Bucket2 --> Bucket3 & Bucket4 & Bucket6 + Bucket6 --> Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.deopt.sql b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.deopt.sql index 2ea656a392..d95ec82474 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.deopt.sql @@ -4,9 +4,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.mermaid index 0ef566c7fc..6321298f25 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.mermaid @@ -9,97 +9,93 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression25{{"PgClassExpression[25∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression25 - __ListTransform20[["__ListTransform[20∈3]
ᐸfilter:16ᐳ"]]:::plan - PgSelectRows21[["PgSelectRows[21∈3] ➊"]]:::plan - PgSelect16[["PgSelect[16∈3] ➊
ᐸmessagesᐳ"]]:::plan - PgSelectRows21 & PgSelect16 & PgSelectSingle14 & PgClassExpression25 --> __ListTransform20 - Object11 --> PgSelect16 - PgSelect16 --> PgSelectRows21 - __ListTransform28[["__ListTransform[28∈3]
ᐸgroupBy:20ᐳ"]]:::plan - __ListTransform20 --> __ListTransform28 - Lambda32{{"Lambda[32∈3]"}}:::plan - __ListTransform28 --> Lambda32 - List26{{"List[26∈4]
ᐸ24,25ᐳ"}}:::plan - PgClassExpression24{{"PgClassExpression[24∈4]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan - PgClassExpression24 & PgClassExpression25 --> List26 - __Item22[/"__Item[22∈4]
ᐸ21ᐳ"\]:::itemplan - PgSelectRows21 -.-> __Item22 - PgSelectSingle23{{"PgSelectSingle[23∈4]
ᐸmessagesᐳ"}}:::plan - __Item22 --> PgSelectSingle23 - PgSelectSingle23 --> PgClassExpression24 - Lambda27{{"Lambda[27∈4]"}}:::plan - List26 --> Lambda27 - __Item29[/"__Item[29∈5]
ᐸ20ᐳ"\]:::itemplan - __ListTransform20 -.-> __Item29 - PgSelectSingle30{{"PgSelectSingle[30∈5]
ᐸmessagesᐳ"}}:::plan - __Item29 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - __Item35[/"__Item[35∈7]
ᐸ32ᐳ"\]:::itemplan - Lambda32 ==> __Item35 - __Item38[/"__Item[38∈9]
ᐸ35ᐳ"\]:::itemplan - __Item35 ==> __Item38 - PgSelectSingle39{{"PgSelectSingle[39∈9]
ᐸmessagesᐳ"}}:::plan - __Item38 --> PgSelectSingle39 - PgClassExpression40{{"PgClassExpression[40∈10]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈10]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression41 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression26 + __ListTransform21[["__ListTransform[21∈2]
ᐸfilter:17ᐳ"]]:::plan + PgSelectRows22[["PgSelectRows[22∈2] ➊"]]:::plan + PgSelect17[["PgSelect[17∈2] ➊
ᐸmessagesᐳ"]]:::plan + PgSelect17 -->|rejectNull| __ListTransform21 + PgSelectRows22 & PgSelectSingle15 & PgClassExpression26 --> __ListTransform21 + Object11 --> PgSelect17 + PgSelect17 --> PgSelectRows22 + __ListTransform29[["__ListTransform[29∈2]
ᐸgroupBy:21ᐳ"]]:::plan + __ListTransform21 --> __ListTransform29 + Lambda33{{"Lambda[33∈2]"}}:::plan + __ListTransform29 --> Lambda33 + List27{{"List[27∈3]
ᐸ25,26ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan + PgClassExpression25 & PgClassExpression26 --> List27 + __Item23[/"__Item[23∈3]
ᐸ22ᐳ"\]:::itemplan + PgSelectRows22 -.-> __Item23 + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸmessagesᐳ"}}:::plan + __Item23 --> PgSelectSingle24 + PgSelectSingle24 --> PgClassExpression25 + Lambda28{{"Lambda[28∈3]"}}:::plan + List27 --> Lambda28 + __Item30[/"__Item[30∈4]
ᐸ21ᐳ"\]:::itemplan + __ListTransform21 -.-> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈4]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + __Item36[/"__Item[36∈6]
ᐸ33ᐳ"\]:::itemplan + Lambda33 ==> __Item36 + __Item39[/"__Item[39∈8]
ᐸ36ᐳ"\]:::itemplan + __Item36 ==> __Item39 + PgSelectSingle40{{"PgSelectSingle[40∈8]
ᐸmessagesᐳ"}}:::plan + __Item39 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈8]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈8]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/functions/computed-column-forums-messages-with-many-transforms.defer" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 11

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 11

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression26 bucket1 + Bucket2("Bucket 2 (defer)
Deps: 11, 15, 26

1: PgSelect[17]
2: PgSelectRows[22]
3: __ListTransform[21]
4: __ListTransform[29]
ᐳ: Lambda[33]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression25 bucket2 - Bucket3("Bucket 3 (defer)
Deps: 11, 14, 25

1: PgSelect[16]
2: PgSelectRows[21]
3: __ListTransform[20]
4: __ListTransform[28]
ᐳ: Lambda[32]"):::bucket + class Bucket2,PgSelect17,__ListTransform21,PgSelectRows22,__ListTransform29,Lambda33 bucket2 + Bucket3("Bucket 3 (subroutine)
Deps: 26

ROOT Lambda{3}[28]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgSelect16,__ListTransform20,PgSelectRows21,__ListTransform28,Lambda32 bucket3 - Bucket4("Bucket 4 (subroutine)
Deps: 25

ROOT Lambda{4}[27]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,List27,Lambda28 bucket3 + Bucket4("Bucket 4 (subroutine)

ROOT PgClassExpression{4}ᐸ__messages__.”featured”ᐳ[32]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item22,PgSelectSingle23,PgClassExpression24,List26,Lambda27 bucket4 - Bucket5("Bucket 5 (subroutine)

ROOT PgClassExpression{5}ᐸ__messages__.”featured”ᐳ[31]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item29,PgSelectSingle30,PgClassExpression31 bucket5 - Bucket7("Bucket 7 (listItem)

ROOT __Item{7}ᐸ32ᐳ[35]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,__Item35 bucket7 - Bucket9("Bucket 9 (listItem)

ROOT __Item{9}ᐸ35ᐳ[38]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,__Item38,PgSelectSingle39 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 39

ROOT PgSelectSingle{9}ᐸmessagesᐳ[39]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression40,PgClassExpression41 bucket10 + class Bucket4,__Item30,PgSelectSingle31,PgClassExpression32 bucket4 + Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ33ᐳ[36]"):::bucket + classDef bucket6 stroke:#ff1493 + class Bucket6,__Item36 bucket6 + Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ36ᐳ[39]"):::bucket + classDef bucket8 stroke:#dda0dd + class Bucket8,__Item39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket8 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 & Bucket7 - Bucket7 --> Bucket9 - Bucket9 --> Bucket10 + Bucket2 --> Bucket3 & Bucket4 & Bucket6 + Bucket6 --> Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.sql b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.sql index 2ea656a392..d95ec82474 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.sql +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.defer.sql @@ -4,9 +4,9 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.deopt.mermaid index d007fa5a13..79ff304595 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.deopt.mermaid @@ -9,93 +9,89 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 - PgSelect16[["PgSelect[16∈0] ➊
ᐸmessagesᐳ"]]:::plan - Object11 --> PgSelect16 - PgSelectRows21[["PgSelectRows[21∈0] ➊"]]:::plan - PgSelect16 --> PgSelectRows21 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessagesᐳ"]]:::plan + Object11 --> PgSelect17 + PgSelectRows22[["PgSelectRows[22∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows22 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - __ListTransform20[["__ListTransform[20∈2]
ᐸfilter:16ᐳ"]]:::plan - PgClassExpression25{{"PgClassExpression[25∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectRows21 & PgSelect16 & PgSelectSingle14 & PgClassExpression25 --> __ListTransform20 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelectSingle14 --> PgClassExpression25 - __ListTransform28[["__ListTransform[28∈2]
ᐸgroupBy:20ᐳ"]]:::plan - __ListTransform20 --> __ListTransform28 - Lambda32{{"Lambda[32∈2]"}}:::plan - __ListTransform28 --> Lambda32 - List26{{"List[26∈3]
ᐸ24,25ᐳ"}}:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan - PgClassExpression24 & PgClassExpression25 --> List26 - __Item22[/"__Item[22∈3]
ᐸ21ᐳ"\]:::itemplan - PgSelectRows21 -.-> __Item22 - PgSelectSingle23{{"PgSelectSingle[23∈3]
ᐸmessagesᐳ"}}:::plan - __Item22 --> PgSelectSingle23 - PgSelectSingle23 --> PgClassExpression24 - Lambda27{{"Lambda[27∈3]"}}:::plan - List26 --> Lambda27 - __Item29[/"__Item[29∈4]
ᐸ20ᐳ"\]:::itemplan - __ListTransform20 -.-> __Item29 - PgSelectSingle30{{"PgSelectSingle[30∈4]
ᐸmessagesᐳ"}}:::plan - __Item29 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - __Item35[/"__Item[35∈6]
ᐸ32ᐳ"\]:::itemplan - Lambda32 ==> __Item35 - __Item38[/"__Item[38∈8]
ᐸ35ᐳ"\]:::itemplan - __Item35 ==> __Item38 - PgSelectSingle39{{"PgSelectSingle[39∈8]
ᐸmessagesᐳ"}}:::plan - __Item38 --> PgSelectSingle39 - PgClassExpression40{{"PgClassExpression[40∈9]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈9]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression41 + __ListTransform21[["__ListTransform[21∈1]
ᐸfilter:17ᐳ"]]:::plan + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgSelect17 -->|rejectNull| __ListTransform21 + PgSelectRows22 & PgSelectSingle15 & PgClassExpression26 --> __ListTransform21 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression26 + __ListTransform29[["__ListTransform[29∈1]
ᐸgroupBy:21ᐳ"]]:::plan + __ListTransform21 --> __ListTransform29 + Lambda33{{"Lambda[33∈1]"}}:::plan + __ListTransform29 --> Lambda33 + List27{{"List[27∈2]
ᐸ25,26ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈2]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan + PgClassExpression25 & PgClassExpression26 --> List27 + __Item23[/"__Item[23∈2]
ᐸ22ᐳ"\]:::itemplan + PgSelectRows22 -.-> __Item23 + PgSelectSingle24{{"PgSelectSingle[24∈2]
ᐸmessagesᐳ"}}:::plan + __Item23 --> PgSelectSingle24 + PgSelectSingle24 --> PgClassExpression25 + Lambda28{{"Lambda[28∈2]"}}:::plan + List27 --> Lambda28 + __Item30[/"__Item[30∈3]
ᐸ21ᐳ"\]:::itemplan + __ListTransform21 -.-> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈3]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + __Item36[/"__Item[36∈5]
ᐸ33ᐳ"\]:::itemplan + Lambda33 ==> __Item36 + __Item39[/"__Item[39∈7]
ᐸ36ᐳ"\]:::itemplan + __Item36 ==> __Item39 + PgSelectSingle40{{"PgSelectSingle[40∈7]
ᐸmessagesᐳ"}}:::plan + __Item39 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈7]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/functions/computed-column-forums-messages-with-many-transforms" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8], PgSelect[16]
3: PgSelectRows[12], PgSelectRows[21]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12], PgSelect[17]
3: PgSelect[8], PgSelectRows[22]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,PgSelect16,PgSelectRows21 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 21, 16

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,PgSelect17,PgSelectRows22 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 22, 17

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 26
2: __ListTransform[21]
3: __ListTransform[29]
ᐳ: Lambda[33]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 21, 16

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]
1:
ᐳ: 15, 25
2: __ListTransform[20]
3: __ListTransform[28]
ᐳ: Lambda[32]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,__ListTransform21,PgClassExpression26,__ListTransform29,Lambda33 bucket1 + Bucket2("Bucket 2 (subroutine)
Deps: 26

ROOT Lambda{2}[28]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,__ListTransform20,PgClassExpression25,__ListTransform28,Lambda32 bucket2 - Bucket3("Bucket 3 (subroutine)
Deps: 25

ROOT Lambda{3}[27]"):::bucket + class Bucket2,__Item23,PgSelectSingle24,PgClassExpression25,List27,Lambda28 bucket2 + Bucket3("Bucket 3 (subroutine)

ROOT PgClassExpression{3}ᐸ__messages__.”featured”ᐳ[32]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item22,PgSelectSingle23,PgClassExpression24,List26,Lambda27 bucket3 - Bucket4("Bucket 4 (subroutine)

ROOT PgClassExpression{4}ᐸ__messages__.”featured”ᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item29,PgSelectSingle30,PgClassExpression31 bucket4 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ32ᐳ[35]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,__Item35 bucket6 - Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ35ᐳ[38]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,__Item38,PgSelectSingle39 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 39

ROOT PgSelectSingle{8}ᐸmessagesᐳ[39]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression40,PgClassExpression41 bucket9 + class Bucket3,__Item30,PgSelectSingle31,PgClassExpression32 bucket3 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ33ᐳ[36]"):::bucket + classDef bucket5 stroke:#7fff00 + class Bucket5,__Item36 bucket5 + Bucket7("Bucket 7 (listItem)

ROOT __Item{7}ᐸ36ᐳ[39]"):::bucket + classDef bucket7 stroke:#808000 + class Bucket7,__Item39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket7 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 & Bucket6 - Bucket6 --> Bucket8 - Bucket8 --> Bucket9 + Bucket1 --> Bucket2 & Bucket3 & Bucket5 + Bucket5 --> Bucket7 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.deopt.sql b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.deopt.sql index 2ea656a392..957fb63b2c 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.deopt.sql @@ -1,15 +1,3 @@ -select - __forums__."name" as "0", - __forums__."id" as "1" -from app_public.forums as __forums__ -where - ( - __forums__.archived_at is null - ) and ( - true /* authorization checks */ - ) -order by __forums__."id" asc; - select __messages__."body" as "0", __messages__."featured"::text as "1", @@ -20,3 +8,15 @@ where ( true /* authorization checks */ ) order by __messages__."id" asc; + +select + __forums__."name" as "0", + __forums__."id" as "1" +from app_public.forums as __forums__ +where + ( + true /* authorization checks */ + ) and ( + __forums__.archived_at is null + ) +order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.mermaid index d007fa5a13..79ff304595 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.mermaid @@ -9,93 +9,89 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 - PgSelect16[["PgSelect[16∈0] ➊
ᐸmessagesᐳ"]]:::plan - Object11 --> PgSelect16 - PgSelectRows21[["PgSelectRows[21∈0] ➊"]]:::plan - PgSelect16 --> PgSelectRows21 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + PgSelect17[["PgSelect[17∈0] ➊
ᐸmessagesᐳ"]]:::plan + Object11 --> PgSelect17 + PgSelectRows22[["PgSelectRows[22∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows22 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - __ListTransform20[["__ListTransform[20∈2]
ᐸfilter:16ᐳ"]]:::plan - PgClassExpression25{{"PgClassExpression[25∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectRows21 & PgSelect16 & PgSelectSingle14 & PgClassExpression25 --> __ListTransform20 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgSelectSingle14 --> PgClassExpression25 - __ListTransform28[["__ListTransform[28∈2]
ᐸgroupBy:20ᐳ"]]:::plan - __ListTransform20 --> __ListTransform28 - Lambda32{{"Lambda[32∈2]"}}:::plan - __ListTransform28 --> Lambda32 - List26{{"List[26∈3]
ᐸ24,25ᐳ"}}:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan - PgClassExpression24 & PgClassExpression25 --> List26 - __Item22[/"__Item[22∈3]
ᐸ21ᐳ"\]:::itemplan - PgSelectRows21 -.-> __Item22 - PgSelectSingle23{{"PgSelectSingle[23∈3]
ᐸmessagesᐳ"}}:::plan - __Item22 --> PgSelectSingle23 - PgSelectSingle23 --> PgClassExpression24 - Lambda27{{"Lambda[27∈3]"}}:::plan - List26 --> Lambda27 - __Item29[/"__Item[29∈4]
ᐸ20ᐳ"\]:::itemplan - __ListTransform20 -.-> __Item29 - PgSelectSingle30{{"PgSelectSingle[30∈4]
ᐸmessagesᐳ"}}:::plan - __Item29 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - __Item35[/"__Item[35∈6]
ᐸ32ᐳ"\]:::itemplan - Lambda32 ==> __Item35 - __Item38[/"__Item[38∈8]
ᐸ35ᐳ"\]:::itemplan - __Item35 ==> __Item38 - PgSelectSingle39{{"PgSelectSingle[39∈8]
ᐸmessagesᐳ"}}:::plan - __Item38 --> PgSelectSingle39 - PgClassExpression40{{"PgClassExpression[40∈9]
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈9]
ᐸ__messages__.”featured”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression41 + __ListTransform21[["__ListTransform[21∈1]
ᐸfilter:17ᐳ"]]:::plan + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgSelect17 -->|rejectNull| __ListTransform21 + PgSelectRows22 & PgSelectSingle15 & PgClassExpression26 --> __ListTransform21 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgSelectSingle15 --> PgClassExpression26 + __ListTransform29[["__ListTransform[29∈1]
ᐸgroupBy:21ᐳ"]]:::plan + __ListTransform21 --> __ListTransform29 + Lambda33{{"Lambda[33∈1]"}}:::plan + __ListTransform29 --> Lambda33 + List27{{"List[27∈2]
ᐸ25,26ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈2]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan + PgClassExpression25 & PgClassExpression26 --> List27 + __Item23[/"__Item[23∈2]
ᐸ22ᐳ"\]:::itemplan + PgSelectRows22 -.-> __Item23 + PgSelectSingle24{{"PgSelectSingle[24∈2]
ᐸmessagesᐳ"}}:::plan + __Item23 --> PgSelectSingle24 + PgSelectSingle24 --> PgClassExpression25 + Lambda28{{"Lambda[28∈2]"}}:::plan + List27 --> Lambda28 + __Item30[/"__Item[30∈3]
ᐸ21ᐳ"\]:::itemplan + __ListTransform21 -.-> __Item30 + PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸmessagesᐳ"}}:::plan + __Item30 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈3]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + __Item36[/"__Item[36∈5]
ᐸ33ᐳ"\]:::itemplan + Lambda33 ==> __Item36 + __Item39[/"__Item[39∈7]
ᐸ36ᐳ"\]:::itemplan + __Item36 ==> __Item39 + PgSelectSingle40{{"PgSelectSingle[40∈7]
ᐸmessagesᐳ"}}:::plan + __Item39 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈7]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈7]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/functions/computed-column-forums-messages-with-many-transforms" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8], PgSelect[16]
3: PgSelectRows[12], PgSelectRows[21]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12], PgSelect[17]
3: PgSelect[8], PgSelectRows[22]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,PgSelect16,PgSelectRows21 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 21, 16

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,PgSelect17,PgSelectRows22 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 22, 17

ROOT __Item{1}ᐸ13ᐳ[14]
1:
ᐳ: 15, 16, 26
2: __ListTransform[21]
3: __ListTransform[29]
ᐳ: Lambda[33]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 21, 16

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]
1:
ᐳ: 15, 25
2: __ListTransform[20]
3: __ListTransform[28]
ᐳ: Lambda[32]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,__ListTransform21,PgClassExpression26,__ListTransform29,Lambda33 bucket1 + Bucket2("Bucket 2 (subroutine)
Deps: 26

ROOT Lambda{2}[28]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,__ListTransform20,PgClassExpression25,__ListTransform28,Lambda32 bucket2 - Bucket3("Bucket 3 (subroutine)
Deps: 25

ROOT Lambda{3}[27]"):::bucket + class Bucket2,__Item23,PgSelectSingle24,PgClassExpression25,List27,Lambda28 bucket2 + Bucket3("Bucket 3 (subroutine)

ROOT PgClassExpression{3}ᐸ__messages__.”featured”ᐳ[32]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item22,PgSelectSingle23,PgClassExpression24,List26,Lambda27 bucket3 - Bucket4("Bucket 4 (subroutine)

ROOT PgClassExpression{4}ᐸ__messages__.”featured”ᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item29,PgSelectSingle30,PgClassExpression31 bucket4 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ32ᐳ[35]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,__Item35 bucket6 - Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ35ᐳ[38]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,__Item38,PgSelectSingle39 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 39

ROOT PgSelectSingle{8}ᐸmessagesᐳ[39]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression40,PgClassExpression41 bucket9 + class Bucket3,__Item30,PgSelectSingle31,PgClassExpression32 bucket3 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ33ᐳ[36]"):::bucket + classDef bucket5 stroke:#7fff00 + class Bucket5,__Item36 bucket5 + Bucket7("Bucket 7 (listItem)

ROOT __Item{7}ᐸ36ᐳ[39]"):::bucket + classDef bucket7 stroke:#808000 + class Bucket7,__Item39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket7 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 & Bucket6 - Bucket6 --> Bucket8 - Bucket8 --> Bucket9 + Bucket1 --> Bucket2 & Bucket3 & Bucket5 + Bucket5 --> Bucket7 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.sql b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.sql index 2ea656a392..957fb63b2c 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.sql +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-forums-messages-with-many-transforms.sql @@ -1,15 +1,3 @@ -select - __forums__."name" as "0", - __forums__."id" as "1" -from app_public.forums as __forums__ -where - ( - __forums__.archived_at is null - ) and ( - true /* authorization checks */ - ) -order by __forums__."id" asc; - select __messages__."body" as "0", __messages__."featured"::text as "1", @@ -20,3 +8,15 @@ where ( true /* authorization checks */ ) order by __messages__."id" asc; + +select + __forums__."name" as "0", + __forums__."id" as "1" +from app_public.forums as __forums__ +where + ( + true /* authorization checks */ + ) and ( + __forums__.archived_at is null + ) +order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.deopt.mermaid index 89cfe9b61f..fc0f2f2299 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.deopt.mermaid @@ -11,11 +11,26 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸforumsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant40{{"Constant[40∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan - Object10 & Constant40 --> PgSelect7 + Constant41{{"Constant[41∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan + Object10 & Constant41 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect16[["PgSelect[16∈0] ➊
ᐸforums_unique_author_countᐳ"]]:::plan + PgFromExpression18{{"PgFromExpression[18∈0] ➊"}}:::plan + Object10 & PgFromExpression18 --> PgSelect16 + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__forums__ᐳ"}}:::plan + PgClassExpression15 --> PgFromExpression18 + PgSelect25[["PgSelect[25∈0] ➊
ᐸforums_unique_author_countᐳ"]]:::plan + PgFromExpression27{{"PgFromExpression[27∈0] ➊"}}:::plan + Object10 & PgFromExpression27 --> PgSelect25 + Constant42{{"Constant[42∈0] ➊
ᐸtrueᐳ"}}:::plan + PgClassExpression15 & Constant42 --> PgFromExpression27 + PgSelect34[["PgSelect[34∈0] ➊
ᐸforums_unique_author_countᐳ"]]:::plan + PgFromExpression36{{"PgFromExpression[36∈0] ➊"}}:::plan + Object10 & PgFromExpression36 --> PgSelect34 + Constant43{{"Constant[43∈0] ➊
ᐸfalseᐳ"}}:::plan + PgClassExpression15 & Constant43 --> PgFromExpression36 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,51 +40,37 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸforumsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant14{{"Constant[14∈0] ➊
ᐸundefinedᐳ"}}:::plan - Constant41{{"Constant[41∈0] ➊
ᐸtrueᐳ"}}:::plan - Constant42{{"Constant[42∈0] ➊
ᐸfalseᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸforums_unique_author_countᐳ"]]:::plan - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__forums__ᐳ"}}:::plan - Object10 & PgClassExpression15 & Constant14 --> PgSelect16 - PgSelect26[["PgSelect[26∈1] ➊
ᐸforums_unique_author_countᐳ"]]:::plan - Object10 & PgClassExpression15 & Constant41 --> PgSelect26 - PgSelect34[["PgSelect[34∈1] ➊
ᐸforums_unique_author_countᐳ"]]:::plan - Object10 & PgClassExpression15 & Constant42 --> PgSelect34 PgSelectSingle13 --> PgClassExpression15 - First20{{"First[20∈1] ➊"}}:::plan - PgSelectRows21[["PgSelectRows[21∈1] ➊"]]:::plan - PgSelectRows21 --> First20 - PgSelect16 --> PgSelectRows21 - PgSelectSingle22{{"PgSelectSingle[22∈1] ➊
ᐸforums_unique_author_countᐳ"}}:::plan - First20 --> PgSelectSingle22 - PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan - PgSelectSingle22 --> PgClassExpression23 - First28{{"First[28∈1] ➊"}}:::plan - PgSelectRows29[["PgSelectRows[29∈1] ➊"]]:::plan + First19{{"First[19∈0] ➊"}}:::plan + PgSelectRows20[["PgSelectRows[20∈0] ➊"]]:::plan + PgSelectRows20 --> First19 + PgSelect16 --> PgSelectRows20 + PgSelectSingle21{{"PgSelectSingle[21∈0] ➊
ᐸforums_unique_author_countᐳ"}}:::plan + First19 --> PgSelectSingle21 + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression22 + First28{{"First[28∈0] ➊"}}:::plan + PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan PgSelectRows29 --> First28 - PgSelect26 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈1] ➊
ᐸforums_unique_author_countᐳ"}}:::plan + PgSelect25 --> PgSelectRows29 + PgSelectSingle30{{"PgSelectSingle[30∈0] ➊
ᐸforums_unique_author_countᐳ"}}:::plan First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression31 - First36{{"First[36∈1] ➊"}}:::plan - PgSelectRows37[["PgSelectRows[37∈1] ➊"]]:::plan - PgSelectRows37 --> First36 - PgSelect34 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈1] ➊
ᐸforums_unique_author_countᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈1] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 + First37{{"First[37∈0] ➊"}}:::plan + PgSelectRows38[["PgSelectRows[38∈0] ➊"]]:::plan + PgSelectRows38 --> First37 + PgSelect34 --> PgSelectRows38 + PgSelectSingle39{{"PgSelectSingle[39∈0] ➊
ᐸforums_unique_author_countᐳ"}}:::plan + First37 --> PgSelectSingle39 + PgClassExpression40{{"PgClassExpression[40∈0] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression40 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/functions/computed-column-scalar" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 14, 40, 41, 42, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 14, 41, 42, 43, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 15, 18, 27, 36
4: 16, 25, 34
5: 20, 29, 38
ᐳ: 19, 21, 22, 28, 30, 31, 37, 39, 40"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant14,Constant40,Constant41,Constant42 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10, 14, 41, 42

ROOT PgSelectSingleᐸforumsᐳ[13]
1:
ᐳ: PgClassExpression[15]
2: 16, 26, 34
3: 21, 29, 37
ᐳ: 20, 22, 23, 28, 30, 31, 36, 38, 39"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression15,PgSelect16,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgSelect26,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,PgSelect34,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression15,PgSelect16,PgFromExpression18,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression22,PgSelect25,PgFromExpression27,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,PgSelect34,PgFromExpression36,First37,PgSelectRows38,PgSelectSingle39,PgClassExpression40,Constant41,Constant42,Constant43 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.deopt.sql b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.deopt.sql index d586506c5a..83deaed44a 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.deopt.sql @@ -11,10 +11,7 @@ where select __forums_unique_author_count__.v::text as "0" -from app_public.forums_unique_author_count( - $1::app_public.forums, - $2::"bool" -) as __forums_unique_author_count__(v) +from app_public.forums_unique_author_count($1::app_public.forums) as __forums_unique_author_count__(v) where ( true /* authorization checks */ ); diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.mermaid index 89cfe9b61f..fc0f2f2299 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.mermaid @@ -11,11 +11,26 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸforumsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant40{{"Constant[40∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan - Object10 & Constant40 --> PgSelect7 + Constant41{{"Constant[41∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan + Object10 & Constant41 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect16[["PgSelect[16∈0] ➊
ᐸforums_unique_author_countᐳ"]]:::plan + PgFromExpression18{{"PgFromExpression[18∈0] ➊"}}:::plan + Object10 & PgFromExpression18 --> PgSelect16 + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__forums__ᐳ"}}:::plan + PgClassExpression15 --> PgFromExpression18 + PgSelect25[["PgSelect[25∈0] ➊
ᐸforums_unique_author_countᐳ"]]:::plan + PgFromExpression27{{"PgFromExpression[27∈0] ➊"}}:::plan + Object10 & PgFromExpression27 --> PgSelect25 + Constant42{{"Constant[42∈0] ➊
ᐸtrueᐳ"}}:::plan + PgClassExpression15 & Constant42 --> PgFromExpression27 + PgSelect34[["PgSelect[34∈0] ➊
ᐸforums_unique_author_countᐳ"]]:::plan + PgFromExpression36{{"PgFromExpression[36∈0] ➊"}}:::plan + Object10 & PgFromExpression36 --> PgSelect34 + Constant43{{"Constant[43∈0] ➊
ᐸfalseᐳ"}}:::plan + PgClassExpression15 & Constant43 --> PgFromExpression36 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,51 +40,37 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸforumsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant14{{"Constant[14∈0] ➊
ᐸundefinedᐳ"}}:::plan - Constant41{{"Constant[41∈0] ➊
ᐸtrueᐳ"}}:::plan - Constant42{{"Constant[42∈0] ➊
ᐸfalseᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸforums_unique_author_countᐳ"]]:::plan - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__forums__ᐳ"}}:::plan - Object10 & PgClassExpression15 & Constant14 --> PgSelect16 - PgSelect26[["PgSelect[26∈1] ➊
ᐸforums_unique_author_countᐳ"]]:::plan - Object10 & PgClassExpression15 & Constant41 --> PgSelect26 - PgSelect34[["PgSelect[34∈1] ➊
ᐸforums_unique_author_countᐳ"]]:::plan - Object10 & PgClassExpression15 & Constant42 --> PgSelect34 PgSelectSingle13 --> PgClassExpression15 - First20{{"First[20∈1] ➊"}}:::plan - PgSelectRows21[["PgSelectRows[21∈1] ➊"]]:::plan - PgSelectRows21 --> First20 - PgSelect16 --> PgSelectRows21 - PgSelectSingle22{{"PgSelectSingle[22∈1] ➊
ᐸforums_unique_author_countᐳ"}}:::plan - First20 --> PgSelectSingle22 - PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan - PgSelectSingle22 --> PgClassExpression23 - First28{{"First[28∈1] ➊"}}:::plan - PgSelectRows29[["PgSelectRows[29∈1] ➊"]]:::plan + First19{{"First[19∈0] ➊"}}:::plan + PgSelectRows20[["PgSelectRows[20∈0] ➊"]]:::plan + PgSelectRows20 --> First19 + PgSelect16 --> PgSelectRows20 + PgSelectSingle21{{"PgSelectSingle[21∈0] ➊
ᐸforums_unique_author_countᐳ"}}:::plan + First19 --> PgSelectSingle21 + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression22 + First28{{"First[28∈0] ➊"}}:::plan + PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan PgSelectRows29 --> First28 - PgSelect26 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈1] ➊
ᐸforums_unique_author_countᐳ"}}:::plan + PgSelect25 --> PgSelectRows29 + PgSelectSingle30{{"PgSelectSingle[30∈0] ➊
ᐸforums_unique_author_countᐳ"}}:::plan First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression31 - First36{{"First[36∈1] ➊"}}:::plan - PgSelectRows37[["PgSelectRows[37∈1] ➊"]]:::plan - PgSelectRows37 --> First36 - PgSelect34 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈1] ➊
ᐸforums_unique_author_countᐳ"}}:::plan - First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈1] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 + First37{{"First[37∈0] ➊"}}:::plan + PgSelectRows38[["PgSelectRows[38∈0] ➊"]]:::plan + PgSelectRows38 --> First37 + PgSelect34 --> PgSelectRows38 + PgSelectSingle39{{"PgSelectSingle[39∈0] ➊
ᐸforums_unique_author_countᐳ"}}:::plan + First37 --> PgSelectSingle39 + PgClassExpression40{{"PgClassExpression[40∈0] ➊
ᐸ__forums_u..._count__.vᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression40 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/functions/computed-column-scalar" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 14, 40, 41, 42, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 14, 41, 42, 43, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 15, 18, 27, 36
4: 16, 25, 34
5: 20, 29, 38
ᐳ: 19, 21, 22, 28, 30, 31, 37, 39, 40"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant14,Constant40,Constant41,Constant42 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10, 14, 41, 42

ROOT PgSelectSingleᐸforumsᐳ[13]
1:
ᐳ: PgClassExpression[15]
2: 16, 26, 34
3: 21, 29, 37
ᐳ: 20, 22, 23, 28, 30, 31, 36, 38, 39"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression15,PgSelect16,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgSelect26,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,PgSelect34,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression15,PgSelect16,PgFromExpression18,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression22,PgSelect25,PgFromExpression27,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,PgSelect34,PgFromExpression36,First37,PgSelectRows38,PgSelectSingle39,PgClassExpression40,Constant41,Constant42,Constant43 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.sql b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.sql index d586506c5a..83deaed44a 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.sql +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-scalar.sql @@ -11,10 +11,7 @@ where select __forums_unique_author_count__.v::text as "0" -from app_public.forums_unique_author_count( - $1::app_public.forums, - $2::"bool" -) as __forums_unique_author_count__(v) +from app_public.forums_unique_author_count($1::app_public.forums) as __forums_unique_author_count__(v) where ( true /* authorization checks */ ); diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-setof-message.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-setof-message.deopt.mermaid index 58fa4db4ae..ba567e7fb6 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-setof-message.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-setof-message.deopt.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸforumsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant23{{"Constant[23∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan - Object10 & Constant23 --> PgSelect7 + Constant22{{"Constant[22∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan + Object10 & Constant22 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect15[["PgSelect[15∈0] ➊
ᐸforums_featured_messagesᐳ"]]:::plan + PgFromExpression17{{"PgFromExpression[17∈0] ➊"}}:::plan + Object10 & PgFromExpression17 --> PgSelect15 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,36 +28,27 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸforumsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸforums_featured_messagesᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__forums__ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect15 + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__forums__ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - PgSelectRows19[["PgSelectRows[19∈1] ➊"]]:::plan - PgSelect15 --> PgSelectRows19 - __Item20[/"__Item[20∈2]
ᐸ19ᐳ"\]:::itemplan - PgSelectRows19 ==> __Item20 - PgSelectSingle21{{"PgSelectSingle[21∈2]
ᐸforums_featured_messagesᐳ"}}:::plan - __Item20 --> PgSelectSingle21 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__forums_f...s__.”body”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 + PgClassExpression14 --> PgFromExpression17 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect15 --> PgSelectRows18 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸforums_featured_messagesᐳ"}}:::plan + __Item19 --> PgSelectSingle20 + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__forums_f...s__.”body”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression21 %% define steps subgraph "Buckets for queries/functions/computed-column-setof-message" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 23, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 22, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 17
4: PgSelect[15]
5: PgSelectRows[18]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant23 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸforumsᐳ[13]
1:
ᐳ: PgClassExpression[14]
2: PgSelect[15]
3: PgSelectRows[19]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect15,PgFromExpression17,PgSelectRows18,Constant22 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ18ᐳ[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgSelect15,PgSelectRows19 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ19ᐳ[20]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item20,PgSelectSingle21 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 21

ROOT PgSelectSingle{2}ᐸforums_featured_messagesᐳ[21]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression22 bucket3 + class Bucket1,__Item19,PgSelectSingle20,PgClassExpression21 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-setof-message.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-setof-message.mermaid index 58fa4db4ae..ba567e7fb6 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-setof-message.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-setof-message.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸforumsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant23{{"Constant[23∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan - Object10 & Constant23 --> PgSelect7 + Constant22{{"Constant[22∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan + Object10 & Constant22 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect15[["PgSelect[15∈0] ➊
ᐸforums_featured_messagesᐳ"]]:::plan + PgFromExpression17{{"PgFromExpression[17∈0] ➊"}}:::plan + Object10 & PgFromExpression17 --> PgSelect15 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,36 +28,27 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸforumsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸforums_featured_messagesᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__forums__ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect15 + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__forums__ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - PgSelectRows19[["PgSelectRows[19∈1] ➊"]]:::plan - PgSelect15 --> PgSelectRows19 - __Item20[/"__Item[20∈2]
ᐸ19ᐳ"\]:::itemplan - PgSelectRows19 ==> __Item20 - PgSelectSingle21{{"PgSelectSingle[21∈2]
ᐸforums_featured_messagesᐳ"}}:::plan - __Item20 --> PgSelectSingle21 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__forums_f...s__.”body”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 + PgClassExpression14 --> PgFromExpression17 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect15 --> PgSelectRows18 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸforums_featured_messagesᐳ"}}:::plan + __Item19 --> PgSelectSingle20 + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__forums_f...s__.”body”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression21 %% define steps subgraph "Buckets for queries/functions/computed-column-setof-message" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 23, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 22, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 17
4: PgSelect[15]
5: PgSelectRows[18]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant23 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸforumsᐳ[13]
1:
ᐳ: PgClassExpression[14]
2: PgSelect[15]
3: PgSelectRows[19]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect15,PgFromExpression17,PgSelectRows18,Constant22 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ18ᐳ[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgSelect15,PgSelectRows19 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ19ᐳ[20]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item20,PgSelectSingle21 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 21

ROOT PgSelectSingle{2}ᐸforums_featured_messagesᐳ[21]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression22 bucket3 + class Bucket1,__Item19,PgSelectSingle20,PgClassExpression21 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-user.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-user.deopt.mermaid index 0d3472c0be..2456429bb8 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-user.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-user.deopt.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸforumsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan - Object10 & Constant24 --> PgSelect7 + Constant23{{"Constant[23∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan + Object10 & Constant23 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect15[["PgSelect[15∈0] ➊
ᐸforums_random_userᐳ"]]:::plan + PgFromExpression17{{"PgFromExpression[17∈0] ➊"}}:::plan + Object10 & PgFromExpression17 --> PgSelect15 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,34 +28,25 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸforumsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸforums_random_userᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__forums__ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect15 + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__forums__ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - First19{{"First[19∈1] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect15 --> PgSelectRows20 - PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸusersᐳ"}}:::plan - First19 --> PgSelectSingle21 - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ__forums_r...”username”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈2] ➊
ᐸ__forums_r...vatar_url”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression23 + PgClassExpression14 --> PgFromExpression17 + First18{{"First[18∈0] ➊"}}:::plan + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelectRows19 --> First18 + PgSelect15 --> PgSelectRows19 + PgSelectSingle20{{"PgSelectSingle[20∈0] ➊
ᐸusersᐳ"}}:::plan + First18 --> PgSelectSingle20 + PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__forums_r...”username”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression21 + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__forums_r...vatar_url”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression22 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/functions/computed-column-user" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 24, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 23, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 17
4: PgSelect[15]
5: PgSelectRows[19]
ᐳ: 18, 20, 21, 22"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant24 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸforumsᐳ[13]
1:
ᐳ: PgClassExpression[14]
2: PgSelect[15]
3: PgSelectRows[20]
ᐳ: First[19], PgSelectSingle[21]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgSelect15,First19,PgSelectRows20,PgSelectSingle21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 21

ROOT PgSelectSingle{1}ᐸusersᐳ[21]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgClassExpression23 bucket2 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect15,PgFromExpression17,First18,PgSelectRows19,PgSelectSingle20,PgClassExpression21,PgClassExpression22,Constant23 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-user.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-user.mermaid index 0d3472c0be..2456429bb8 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/computed-column-user.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/computed-column-user.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸforumsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan - Object10 & Constant24 --> PgSelect7 + Constant23{{"Constant[23∈0] ➊
ᐸ'f1700000-0000-0000-0000-000000000f17'ᐳ"}}:::plan + Object10 & Constant23 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect15[["PgSelect[15∈0] ➊
ᐸforums_random_userᐳ"]]:::plan + PgFromExpression17{{"PgFromExpression[17∈0] ➊"}}:::plan + Object10 & PgFromExpression17 --> PgSelect15 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,34 +28,25 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸforumsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸforums_random_userᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__forums__ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect15 + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__forums__ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - First19{{"First[19∈1] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect15 --> PgSelectRows20 - PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸusersᐳ"}}:::plan - First19 --> PgSelectSingle21 - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ__forums_r...”username”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈2] ➊
ᐸ__forums_r...vatar_url”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression23 + PgClassExpression14 --> PgFromExpression17 + First18{{"First[18∈0] ➊"}}:::plan + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelectRows19 --> First18 + PgSelect15 --> PgSelectRows19 + PgSelectSingle20{{"PgSelectSingle[20∈0] ➊
ᐸusersᐳ"}}:::plan + First18 --> PgSelectSingle20 + PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__forums_r...”username”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression21 + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__forums_r...vatar_url”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression22 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/functions/computed-column-user" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 24, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 23, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 17
4: PgSelect[15]
5: PgSelectRows[19]
ᐳ: 18, 20, 21, 22"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant24 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸforumsᐳ[13]
1:
ᐳ: PgClassExpression[14]
2: PgSelect[15]
3: PgSelectRows[20]
ᐳ: First[19], PgSelectSingle[21]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgSelect15,First19,PgSelectRows20,PgSelectSingle21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 21

ROOT PgSelectSingle{1}ᐸusersᐳ[21]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgClassExpression23 bucket2 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect15,PgFromExpression17,First18,PgSelectRows19,PgSelectSingle20,PgClassExpression21,PgClassExpression22,Constant23 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array-set.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array-set.deopt.mermaid index 5b9400141f..e67b90e9b6 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array-set.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array-set.deopt.mermaid @@ -35,9 +35,9 @@ graph TD __Item15 ==> __Item18 PgSelectSingle19{{"PgSelectSingle[19∈4]
ᐸrandom_user_array_setᐳ"}}:::plan __Item18 --> PgSelectSingle19 - PgClassExpression20{{"PgClassExpression[20∈5]
ᐸ__random_u...”username”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈4]
ᐸ__random_u...”username”ᐳ"}}:::plan PgSelectSingle19 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈5]
ᐸ__random_u...vatar_url”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈4]
ᐸ__random_u...vatar_url”ᐳ"}}:::plan PgSelectSingle19 --> PgClassExpression21 %% define steps @@ -54,11 +54,7 @@ graph TD class Bucket2,__Item15 bucket2 Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ15ᐳ[18]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item18,PgSelectSingle19 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 19

ROOT PgSelectSingle{4}ᐸrandom_user_array_setᐳ[19]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression20,PgClassExpression21 bucket5 + class Bucket4,__Item18,PgSelectSingle19,PgClassExpression20,PgClassExpression21 bucket4 Bucket0 --> Bucket1 & Bucket2 Bucket2 --> Bucket4 - Bucket4 --> Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array-set.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array-set.mermaid index 5b9400141f..e67b90e9b6 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array-set.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array-set.mermaid @@ -35,9 +35,9 @@ graph TD __Item15 ==> __Item18 PgSelectSingle19{{"PgSelectSingle[19∈4]
ᐸrandom_user_array_setᐳ"}}:::plan __Item18 --> PgSelectSingle19 - PgClassExpression20{{"PgClassExpression[20∈5]
ᐸ__random_u...”username”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈4]
ᐸ__random_u...”username”ᐳ"}}:::plan PgSelectSingle19 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈5]
ᐸ__random_u...vatar_url”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈4]
ᐸ__random_u...vatar_url”ᐳ"}}:::plan PgSelectSingle19 --> PgClassExpression21 %% define steps @@ -54,11 +54,7 @@ graph TD class Bucket2,__Item15 bucket2 Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ15ᐳ[18]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item18,PgSelectSingle19 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 19

ROOT PgSelectSingle{4}ᐸrandom_user_array_setᐳ[19]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression20,PgClassExpression21 bucket5 + class Bucket4,__Item18,PgSelectSingle19,PgClassExpression20,PgClassExpression21 bucket4 Bucket0 --> Bucket1 & Bucket2 Bucket2 --> Bucket4 - Bucket4 --> Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array.deopt.mermaid index 8c88ffaf26..fc63a812b5 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array.deopt.mermaid @@ -25,9 +25,9 @@ graph TD PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸrandom_user_arrayᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__random_u...”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__random_u...”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__random_u...vatar_url”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__random_u...vatar_url”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression14 %% define steps @@ -38,10 +38,6 @@ graph TD class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12

ROOT PgSelectSingle{1}ᐸrandom_user_arrayᐳ[12]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14 bucket2 + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array.mermaid index 8c88ffaf26..fc63a812b5 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-random-user-array.mermaid @@ -25,9 +25,9 @@ graph TD PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸrandom_user_arrayᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__random_u...”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__random_u...”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__random_u...vatar_url”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__random_u...vatar_url”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression14 %% define steps @@ -38,10 +38,6 @@ graph TD class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12

ROOT PgSelectSingle{1}ᐸrandom_user_arrayᐳ[12]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14 bucket2 + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.deopt.mermaid index 597330b1a9..03d4c54dc2 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.deopt.mermaid @@ -11,50 +11,54 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸunique_author_countᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Object10 & Constant6 --> PgSelect7 + PgFromExpression11{{"PgFromExpression[11∈0] ➊"}}:::plan + Object10 & PgFromExpression11 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 - PgSelect16[["PgSelect[16∈0] ➊
ᐸunique_author_countᐳ"]]:::plan - Constant29{{"Constant[29∈0] ➊
ᐸtrueᐳ"}}:::plan - Object10 & Constant29 --> PgSelect16 - PgSelect23[["PgSelect[23∈0] ➊
ᐸunique_author_countᐳ"]]:::plan - Constant30{{"Constant[30∈0] ➊
ᐸfalseᐳ"}}:::plan - Object10 & Constant30 --> PgSelect23 + PgSelect17[["PgSelect[17∈0] ➊
ᐸunique_author_countᐳ"]]:::plan + PgFromExpression19{{"PgFromExpression[19∈0] ➊"}}:::plan + Object10 & PgFromExpression19 --> PgSelect17 + PgSelect25[["PgSelect[25∈0] ➊
ᐸunique_author_countᐳ"]]:::plan + PgFromExpression27{{"PgFromExpression[27∈0] ➊"}}:::plan + Object10 & PgFromExpression27 --> PgSelect25 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 - First11{{"First[11∈0] ➊"}}:::plan - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelectRows12 --> First11 - PgSelect7 --> PgSelectRows12 - PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸunique_author_countᐳ"}}:::plan - First11 --> PgSelectSingle13 - PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__unique_a..._count__.vᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression14 - First18{{"First[18∈0] ➊"}}:::plan - PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan - PgSelectRows19 --> First18 - PgSelect16 --> PgSelectRows19 - PgSelectSingle20{{"PgSelectSingle[20∈0] ➊
ᐸunique_author_countᐳ"}}:::plan - First18 --> PgSelectSingle20 - PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__unique_a..._count__.vᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression21 - First25{{"First[25∈0] ➊"}}:::plan - PgSelectRows26[["PgSelectRows[26∈0] ➊"]]:::plan - PgSelectRows26 --> First25 - PgSelect23 --> PgSelectRows26 - PgSelectSingle27{{"PgSelectSingle[27∈0] ➊
ᐸunique_author_countᐳ"}}:::plan - First25 --> PgSelectSingle27 - PgClassExpression28{{"PgClassExpression[28∈0] ➊
ᐸ__unique_a..._count__.vᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 + First12{{"First[12∈0] ➊"}}:::plan + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelectRows13 --> First12 + PgSelect7 --> PgSelectRows13 + PgSelectSingle14{{"PgSelectSingle[14∈0] ➊
ᐸunique_author_countᐳ"}}:::plan + First12 --> PgSelectSingle14 + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__unique_a..._count__.vᐳ"}}:::plan + PgSelectSingle14 --> PgClassExpression15 + Constant32{{"Constant[32∈0] ➊
ᐸtrueᐳ"}}:::plan + Constant32 --> PgFromExpression19 + First20{{"First[20∈0] ➊"}}:::plan + PgSelectRows21[["PgSelectRows[21∈0] ➊"]]:::plan + PgSelectRows21 --> First20 + PgSelect17 --> PgSelectRows21 + PgSelectSingle22{{"PgSelectSingle[22∈0] ➊
ᐸunique_author_countᐳ"}}:::plan + First20 --> PgSelectSingle22 + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__unique_a..._count__.vᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression23 + Constant33{{"Constant[33∈0] ➊
ᐸfalseᐳ"}}:::plan + Constant33 --> PgFromExpression27 + First28{{"First[28∈0] ➊"}}:::plan + PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan + PgSelectRows29 --> First28 + PgSelect25 --> PgSelectRows29 + PgSelectSingle30{{"PgSelectSingle[30∈0] ➊
ᐸunique_author_countᐳ"}}:::plan + First28 --> PgSelectSingle30 + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸ__unique_a..._count__.vᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression31 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/functions/custom-query-scalar" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 29, 30, 10
2: PgSelect[7], PgSelect[16], PgSelect[23]
3: 12, 19, 26
ᐳ: 11, 13, 14, 18, 20, 21, 25, 27, 28"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 32, 33, 10, 11, 19, 27
2: PgSelect[7], PgSelect[17], PgSelect[25]
3: 13, 21, 29
ᐳ: 12, 14, 15, 20, 22, 23, 28, 30, 31"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect16,First18,PgSelectRows19,PgSelectSingle20,PgClassExpression21,PgSelect23,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression28,Constant29,Constant30 bucket0 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgFromExpression11,First12,PgSelectRows13,PgSelectSingle14,PgClassExpression15,PgSelect17,PgFromExpression19,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgSelect25,PgFromExpression27,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,Constant32,Constant33 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.deopt.sql b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.deopt.sql index 9eba2203fd..54ae3dfc0a 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.deopt.sql @@ -1,20 +1,20 @@ select __unique_author_count__.v::text as "0" -from app_public.unique_author_count("featured" := $1::"bool") as __unique_author_count__(v) +from app_public.unique_author_count() as __unique_author_count__(v) where ( true /* authorization checks */ ); select __unique_author_count__.v::text as "0" -from app_public.unique_author_count("featured" := $1::"bool") as __unique_author_count__(v) +from app_public.unique_author_count($1::"bool") as __unique_author_count__(v) where ( true /* authorization checks */ ); select __unique_author_count__.v::text as "0" -from app_public.unique_author_count("featured" := $1::"bool") as __unique_author_count__(v) +from app_public.unique_author_count($1::"bool") as __unique_author_count__(v) where ( true /* authorization checks */ ); diff --git a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.mermaid index 597330b1a9..03d4c54dc2 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.mermaid @@ -11,50 +11,54 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸunique_author_countᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Object10 & Constant6 --> PgSelect7 + PgFromExpression11{{"PgFromExpression[11∈0] ➊"}}:::plan + Object10 & PgFromExpression11 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 - PgSelect16[["PgSelect[16∈0] ➊
ᐸunique_author_countᐳ"]]:::plan - Constant29{{"Constant[29∈0] ➊
ᐸtrueᐳ"}}:::plan - Object10 & Constant29 --> PgSelect16 - PgSelect23[["PgSelect[23∈0] ➊
ᐸunique_author_countᐳ"]]:::plan - Constant30{{"Constant[30∈0] ➊
ᐸfalseᐳ"}}:::plan - Object10 & Constant30 --> PgSelect23 + PgSelect17[["PgSelect[17∈0] ➊
ᐸunique_author_countᐳ"]]:::plan + PgFromExpression19{{"PgFromExpression[19∈0] ➊"}}:::plan + Object10 & PgFromExpression19 --> PgSelect17 + PgSelect25[["PgSelect[25∈0] ➊
ᐸunique_author_countᐳ"]]:::plan + PgFromExpression27{{"PgFromExpression[27∈0] ➊"}}:::plan + Object10 & PgFromExpression27 --> PgSelect25 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 - First11{{"First[11∈0] ➊"}}:::plan - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelectRows12 --> First11 - PgSelect7 --> PgSelectRows12 - PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸunique_author_countᐳ"}}:::plan - First11 --> PgSelectSingle13 - PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__unique_a..._count__.vᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression14 - First18{{"First[18∈0] ➊"}}:::plan - PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan - PgSelectRows19 --> First18 - PgSelect16 --> PgSelectRows19 - PgSelectSingle20{{"PgSelectSingle[20∈0] ➊
ᐸunique_author_countᐳ"}}:::plan - First18 --> PgSelectSingle20 - PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__unique_a..._count__.vᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression21 - First25{{"First[25∈0] ➊"}}:::plan - PgSelectRows26[["PgSelectRows[26∈0] ➊"]]:::plan - PgSelectRows26 --> First25 - PgSelect23 --> PgSelectRows26 - PgSelectSingle27{{"PgSelectSingle[27∈0] ➊
ᐸunique_author_countᐳ"}}:::plan - First25 --> PgSelectSingle27 - PgClassExpression28{{"PgClassExpression[28∈0] ➊
ᐸ__unique_a..._count__.vᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 + First12{{"First[12∈0] ➊"}}:::plan + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelectRows13 --> First12 + PgSelect7 --> PgSelectRows13 + PgSelectSingle14{{"PgSelectSingle[14∈0] ➊
ᐸunique_author_countᐳ"}}:::plan + First12 --> PgSelectSingle14 + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__unique_a..._count__.vᐳ"}}:::plan + PgSelectSingle14 --> PgClassExpression15 + Constant32{{"Constant[32∈0] ➊
ᐸtrueᐳ"}}:::plan + Constant32 --> PgFromExpression19 + First20{{"First[20∈0] ➊"}}:::plan + PgSelectRows21[["PgSelectRows[21∈0] ➊"]]:::plan + PgSelectRows21 --> First20 + PgSelect17 --> PgSelectRows21 + PgSelectSingle22{{"PgSelectSingle[22∈0] ➊
ᐸunique_author_countᐳ"}}:::plan + First20 --> PgSelectSingle22 + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__unique_a..._count__.vᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression23 + Constant33{{"Constant[33∈0] ➊
ᐸfalseᐳ"}}:::plan + Constant33 --> PgFromExpression27 + First28{{"First[28∈0] ➊"}}:::plan + PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan + PgSelectRows29 --> First28 + PgSelect25 --> PgSelectRows29 + PgSelectSingle30{{"PgSelectSingle[30∈0] ➊
ᐸunique_author_countᐳ"}}:::plan + First28 --> PgSelectSingle30 + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸ__unique_a..._count__.vᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression31 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/functions/custom-query-scalar" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 29, 30, 10
2: PgSelect[7], PgSelect[16], PgSelect[23]
3: 12, 19, 26
ᐳ: 11, 13, 14, 18, 20, 21, 25, 27, 28"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 32, 33, 10, 11, 19, 27
2: PgSelect[7], PgSelect[17], PgSelect[25]
3: 13, 21, 29
ᐳ: 12, 14, 15, 20, 22, 23, 28, 30, 31"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect16,First18,PgSelectRows19,PgSelectSingle20,PgClassExpression21,PgSelect23,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression28,Constant29,Constant30 bucket0 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgFromExpression11,First12,PgSelectRows13,PgSelectSingle14,PgClassExpression15,PgSelect17,PgFromExpression19,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgSelect25,PgFromExpression27,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,Constant32,Constant33 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.sql b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.sql index 9eba2203fd..54ae3dfc0a 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.sql +++ b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-scalar.sql @@ -1,20 +1,20 @@ select __unique_author_count__.v::text as "0" -from app_public.unique_author_count("featured" := $1::"bool") as __unique_author_count__(v) +from app_public.unique_author_count() as __unique_author_count__(v) where ( true /* authorization checks */ ); select __unique_author_count__.v::text as "0" -from app_public.unique_author_count("featured" := $1::"bool") as __unique_author_count__(v) +from app_public.unique_author_count($1::"bool") as __unique_author_count__(v) where ( true /* authorization checks */ ); select __unique_author_count__.v::text as "0" -from app_public.unique_author_count("featured" := $1::"bool") as __unique_author_count__(v) +from app_public.unique_author_count($1::"bool") as __unique_author_count__(v) where ( true /* authorization checks */ ); diff --git a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-setof-message.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-setof-message.deopt.mermaid index 36601a528d..25df90ba58 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-setof-message.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-setof-message.deopt.mermaid @@ -25,7 +25,7 @@ graph TD PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸfeatured_messagesᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__featured...s__.”body”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__featured...s__.”body”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 %% define steps @@ -36,10 +36,6 @@ graph TD class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12

ROOT PgSelectSingle{1}ᐸfeatured_messagesᐳ[12]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13 bucket2 + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-setof-message.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-setof-message.mermaid index 36601a528d..25df90ba58 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-setof-message.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-setof-message.mermaid @@ -25,7 +25,7 @@ graph TD PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸfeatured_messagesᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__featured...s__.”body”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__featured...s__.”body”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 %% define steps @@ -36,10 +36,6 @@ graph TD class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12

ROOT PgSelectSingle{1}ᐸfeatured_messagesᐳ[12]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13 bucket2 + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-user.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-user.deopt.mermaid index ff24d83457..c7467e1e3f 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-user.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-user.deopt.mermaid @@ -24,20 +24,16 @@ graph TD PgSelect6 --> PgSelectRows11 PgSelectSingle12{{"PgSelectSingle[12∈0] ➊
ᐸusersᐳ"}}:::plan First10 --> PgSelectSingle12 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression13{{"PgClassExpression[13∈1] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈0] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__random_u...vatar_url”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__random_u...vatar_url”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression14 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/functions/custom-query-user" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: First[10], PgSelectSingle[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: 10, 12, 13, 14"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12

ROOT PgSelectSingleᐸusersᐳ[12]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression13,PgClassExpression14 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,PgClassExpression13,PgClassExpression14 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-user.mermaid b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-user.mermaid index ff24d83457..c7467e1e3f 100644 --- a/grafast/dataplan-pg/__tests__/queries/functions/custom-query-user.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/functions/custom-query-user.mermaid @@ -24,20 +24,16 @@ graph TD PgSelect6 --> PgSelectRows11 PgSelectSingle12{{"PgSelectSingle[12∈0] ➊
ᐸusersᐳ"}}:::plan First10 --> PgSelectSingle12 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression13{{"PgClassExpression[13∈1] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈0] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__random_u...vatar_url”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__random_u...vatar_url”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression14 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/functions/custom-query-user" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: First[10], PgSelectSingle[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: 10, 12, 13, 14"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12

ROOT PgSelectSingleᐸusersᐳ[12]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression13,PgClassExpression14 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,PgClassExpression13,PgClassExpression14 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics-with-fragments.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics-with-fragments.deopt.mermaid index ae9aa07119..e8b3db1b89 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics-with-fragments.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics-with-fragments.deopt.mermaid @@ -21,103 +21,103 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸrelational_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgPolymorphic26{{"PgPolymorphic[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgPolymorphic26{{"PgPolymorphic[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle24 & PgClassExpression25 --> PgPolymorphic26 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 PgSelectSingle24 --> PgClassExpression25 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression27 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈3]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈4]
ᐸ__relation...”position”ᐳ"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈3]
ᐸ__relation...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈4]
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgClassExpression38{{"PgClassExpression[38∈3]
ᐸ__relation...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈4]
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__relation...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈4]
ᐸ__relation..._archived”ᐳ"}}:::plan + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈3]
ᐸ__relation...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression41 - PgSelect28[["PgSelect[28∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgSelect28[["PgSelect[28∈4]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan Object9 & PgClassExpression27 --> PgSelect28 - PgSelect43[["PgSelect[43∈5]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + PgSelect43[["PgSelect[43∈4]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan Object9 & PgClassExpression27 --> PgSelect43 - PgSelect51[["PgSelect[51∈5]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + PgSelect51[["PgSelect[51∈4]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan Object9 & PgClassExpression27 --> PgSelect51 - PgSelect58[["PgSelect[58∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + PgSelect58[["PgSelect[58∈4]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression27 --> PgSelect58 - PgSelect64[["PgSelect[64∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + PgSelect64[["PgSelect[64∈4]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression27 --> PgSelect64 - First32{{"First[32∈5]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈5]"]]:::plan + First32{{"First[32∈4]"}}:::plan + PgSelectRows33[["PgSelectRows[33∈4]"]]:::plan PgSelectRows33 --> First32 PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈5]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle34{{"PgSelectSingle[34∈4]
ᐸrelational_topicsᐳ"}}:::plan First32 --> PgSelectSingle34 - PgClassExpression42{{"PgClassExpression[42∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle34 --> PgClassExpression42 - First45{{"First[45∈5]"}}:::plan - PgSelectRows46[["PgSelectRows[46∈5]"]]:::plan + First45{{"First[45∈4]"}}:::plan + PgSelectRows46[["PgSelectRows[46∈4]"]]:::plan PgSelectRows46 --> First45 PgSelect43 --> PgSelectRows46 - PgSelectSingle47{{"PgSelectSingle[47∈5]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈4]
ᐸrelational_postsᐳ"}}:::plan First45 --> PgSelectSingle47 - PgClassExpression48{{"PgClassExpression[48∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression48{{"PgClassExpression[48∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle47 --> PgClassExpression48 - PgClassExpression49{{"PgClassExpression[49∈5]
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression49{{"PgClassExpression[49∈4]
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle47 --> PgClassExpression49 - PgClassExpression50{{"PgClassExpression[50∈5]
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression50{{"PgClassExpression[50∈4]
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle47 --> PgClassExpression50 - First53{{"First[53∈5]"}}:::plan - PgSelectRows54[["PgSelectRows[54∈5]"]]:::plan + First53{{"First[53∈4]"}}:::plan + PgSelectRows54[["PgSelectRows[54∈4]"]]:::plan PgSelectRows54 --> First53 PgSelect51 --> PgSelectRows54 - PgSelectSingle55{{"PgSelectSingle[55∈5]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle55{{"PgSelectSingle[55∈4]
ᐸrelational_dividersᐳ"}}:::plan First53 --> PgSelectSingle55 - PgClassExpression56{{"PgClassExpression[56∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression56{{"PgClassExpression[56∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle55 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈5]
ᐸ__relation...__.”color”ᐳ"}}:::plan + PgClassExpression57{{"PgClassExpression[57∈4]
ᐸ__relation...__.”color”ᐳ"}}:::plan PgSelectSingle55 --> PgClassExpression57 - First60{{"First[60∈5]"}}:::plan - PgSelectRows61[["PgSelectRows[61∈5]"]]:::plan + First60{{"First[60∈4]"}}:::plan + PgSelectRows61[["PgSelectRows[61∈4]"]]:::plan PgSelectRows61 --> First60 PgSelect58 --> PgSelectRows61 - PgSelectSingle62{{"PgSelectSingle[62∈5]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle62{{"PgSelectSingle[62∈4]
ᐸrelational_checklistsᐳ"}}:::plan First60 --> PgSelectSingle62 - PgClassExpression63{{"PgClassExpression[63∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression63{{"PgClassExpression[63∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle62 --> PgClassExpression63 - First66{{"First[66∈5]"}}:::plan - PgSelectRows67[["PgSelectRows[67∈5]"]]:::plan + First66{{"First[66∈4]"}}:::plan + PgSelectRows67[["PgSelectRows[67∈4]"]]:::plan PgSelectRows67 --> First66 PgSelect64 --> PgSelectRows67 - PgSelectSingle68{{"PgSelectSingle[68∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle68{{"PgSelectSingle[68∈4]
ᐸrelational_checklist_itemsᐳ"}}:::plan First66 --> PgSelectSingle68 - PgClassExpression69{{"PgClassExpression[69∈5]
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression69{{"PgClassExpression[69∈4]
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle68 --> PgClassExpression69 - PgClassExpression70{{"PgClassExpression[70∈5]
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression70{{"PgClassExpression[70∈4]
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle68 --> PgClassExpression70 %% define steps @@ -126,23 +126,19 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸrelational_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸrelational_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgClassExpression39,PgClassExpression40,PgClassExpression41 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 26, 25, 36, 37, 38, 39, 40, 41
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 43, 51, 58, 64
2: 33, 46, 54, 61, 67
ᐳ: 32, 34, 42, 45, 47, 48, 49, 50, 53, 55, 56, 57, 60, 62, 63, 66, 68, 69, 70"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgClassExpression39,PgClassExpression40,PgClassExpression41 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 26, 25, 36, 37, 38, 39, 40, 41
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 43, 51, 58, 64
2: 33, 46, 54, 61, 67
ᐳ: 32, 34, 42, 45, 47, 48, 49, 50, 53, 55, 56, 57, 60, 62, 63, 66, 68, 69, 70"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression42,PgSelect43,First45,PgSelectRows46,PgSelectSingle47,PgClassExpression48,PgClassExpression49,PgClassExpression50,PgSelect51,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression56,PgClassExpression57,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgClassExpression63,PgSelect64,First66,PgSelectRows67,PgSelectSingle68,PgClassExpression69,PgClassExpression70 bucket5 + class Bucket4,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression42,PgSelect43,First45,PgSelectRows46,PgSelectSingle47,PgClassExpression48,PgClassExpression49,PgClassExpression50,PgSelect51,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression56,PgClassExpression57,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgClassExpression63,PgSelect64,First66,PgSelectRows67,PgSelectSingle68,PgClassExpression69,PgClassExpression70 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 - Bucket4 --> Bucket5 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics-with-fragments.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics-with-fragments.mermaid index ae9aa07119..e8b3db1b89 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics-with-fragments.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics-with-fragments.mermaid @@ -21,103 +21,103 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸrelational_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgPolymorphic26{{"PgPolymorphic[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgPolymorphic26{{"PgPolymorphic[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle24 & PgClassExpression25 --> PgPolymorphic26 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 PgSelectSingle24 --> PgClassExpression25 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression27 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈3]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈4]
ᐸ__relation...”position”ᐳ"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈3]
ᐸ__relation...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈4]
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgClassExpression38{{"PgClassExpression[38∈3]
ᐸ__relation...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈4]
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__relation...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈4]
ᐸ__relation..._archived”ᐳ"}}:::plan + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈3]
ᐸ__relation...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression41 - PgSelect28[["PgSelect[28∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgSelect28[["PgSelect[28∈4]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan Object9 & PgClassExpression27 --> PgSelect28 - PgSelect43[["PgSelect[43∈5]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + PgSelect43[["PgSelect[43∈4]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan Object9 & PgClassExpression27 --> PgSelect43 - PgSelect51[["PgSelect[51∈5]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + PgSelect51[["PgSelect[51∈4]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan Object9 & PgClassExpression27 --> PgSelect51 - PgSelect58[["PgSelect[58∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + PgSelect58[["PgSelect[58∈4]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression27 --> PgSelect58 - PgSelect64[["PgSelect[64∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + PgSelect64[["PgSelect[64∈4]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression27 --> PgSelect64 - First32{{"First[32∈5]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈5]"]]:::plan + First32{{"First[32∈4]"}}:::plan + PgSelectRows33[["PgSelectRows[33∈4]"]]:::plan PgSelectRows33 --> First32 PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈5]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle34{{"PgSelectSingle[34∈4]
ᐸrelational_topicsᐳ"}}:::plan First32 --> PgSelectSingle34 - PgClassExpression42{{"PgClassExpression[42∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle34 --> PgClassExpression42 - First45{{"First[45∈5]"}}:::plan - PgSelectRows46[["PgSelectRows[46∈5]"]]:::plan + First45{{"First[45∈4]"}}:::plan + PgSelectRows46[["PgSelectRows[46∈4]"]]:::plan PgSelectRows46 --> First45 PgSelect43 --> PgSelectRows46 - PgSelectSingle47{{"PgSelectSingle[47∈5]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈4]
ᐸrelational_postsᐳ"}}:::plan First45 --> PgSelectSingle47 - PgClassExpression48{{"PgClassExpression[48∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression48{{"PgClassExpression[48∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle47 --> PgClassExpression48 - PgClassExpression49{{"PgClassExpression[49∈5]
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression49{{"PgClassExpression[49∈4]
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle47 --> PgClassExpression49 - PgClassExpression50{{"PgClassExpression[50∈5]
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression50{{"PgClassExpression[50∈4]
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle47 --> PgClassExpression50 - First53{{"First[53∈5]"}}:::plan - PgSelectRows54[["PgSelectRows[54∈5]"]]:::plan + First53{{"First[53∈4]"}}:::plan + PgSelectRows54[["PgSelectRows[54∈4]"]]:::plan PgSelectRows54 --> First53 PgSelect51 --> PgSelectRows54 - PgSelectSingle55{{"PgSelectSingle[55∈5]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle55{{"PgSelectSingle[55∈4]
ᐸrelational_dividersᐳ"}}:::plan First53 --> PgSelectSingle55 - PgClassExpression56{{"PgClassExpression[56∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression56{{"PgClassExpression[56∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle55 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈5]
ᐸ__relation...__.”color”ᐳ"}}:::plan + PgClassExpression57{{"PgClassExpression[57∈4]
ᐸ__relation...__.”color”ᐳ"}}:::plan PgSelectSingle55 --> PgClassExpression57 - First60{{"First[60∈5]"}}:::plan - PgSelectRows61[["PgSelectRows[61∈5]"]]:::plan + First60{{"First[60∈4]"}}:::plan + PgSelectRows61[["PgSelectRows[61∈4]"]]:::plan PgSelectRows61 --> First60 PgSelect58 --> PgSelectRows61 - PgSelectSingle62{{"PgSelectSingle[62∈5]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle62{{"PgSelectSingle[62∈4]
ᐸrelational_checklistsᐳ"}}:::plan First60 --> PgSelectSingle62 - PgClassExpression63{{"PgClassExpression[63∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression63{{"PgClassExpression[63∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle62 --> PgClassExpression63 - First66{{"First[66∈5]"}}:::plan - PgSelectRows67[["PgSelectRows[67∈5]"]]:::plan + First66{{"First[66∈4]"}}:::plan + PgSelectRows67[["PgSelectRows[67∈4]"]]:::plan PgSelectRows67 --> First66 PgSelect64 --> PgSelectRows67 - PgSelectSingle68{{"PgSelectSingle[68∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle68{{"PgSelectSingle[68∈4]
ᐸrelational_checklist_itemsᐳ"}}:::plan First66 --> PgSelectSingle68 - PgClassExpression69{{"PgClassExpression[69∈5]
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression69{{"PgClassExpression[69∈4]
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle68 --> PgClassExpression69 - PgClassExpression70{{"PgClassExpression[70∈5]
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression70{{"PgClassExpression[70∈4]
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle68 --> PgClassExpression70 %% define steps @@ -126,23 +126,19 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸrelational_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸrelational_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgClassExpression39,PgClassExpression40,PgClassExpression41 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 26, 25, 36, 37, 38, 39, 40, 41
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 43, 51, 58, 64
2: 33, 46, 54, 61, 67
ᐳ: 32, 34, 42, 45, 47, 48, 49, 50, 53, 55, 56, 57, 60, 62, 63, 66, 68, 69, 70"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgClassExpression39,PgClassExpression40,PgClassExpression41 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 26, 25, 36, 37, 38, 39, 40, 41
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 43, 51, 58, 64
2: 33, 46, 54, 61, 67
ᐳ: 32, 34, 42, 45, 47, 48, 49, 50, 53, 55, 56, 57, 60, 62, 63, 66, 68, 69, 70"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression42,PgSelect43,First45,PgSelectRows46,PgSelectSingle47,PgClassExpression48,PgClassExpression49,PgClassExpression50,PgSelect51,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression56,PgClassExpression57,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgClassExpression63,PgSelect64,First66,PgSelectRows67,PgSelectSingle68,PgClassExpression69,PgClassExpression70 bucket5 + class Bucket4,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression42,PgSelect43,First45,PgSelectRows46,PgSelectSingle47,PgClassExpression48,PgClassExpression49,PgClassExpression50,PgSelect51,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression56,PgClassExpression57,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgClassExpression63,PgSelect64,First66,PgSelectRows67,PgSelectSingle68,PgClassExpression69,PgClassExpression70 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 - Bucket4 --> Bucket5 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics.deopt.mermaid index f770cfdcbf..a13da0f1dc 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics.deopt.mermaid @@ -21,85 +21,85 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸrelational_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgPolymorphic26{{"PgPolymorphic[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgPolymorphic26{{"PgPolymorphic[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle24 & PgClassExpression25 --> PgPolymorphic26 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 PgSelectSingle24 --> PgClassExpression25 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression27 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈3]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈4]
ᐸ__relation...”position”ᐳ"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈3]
ᐸ__relation...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈4]
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgClassExpression38{{"PgClassExpression[38∈3]
ᐸ__relation...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈4]
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__relation...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈4]
ᐸ__relation..._archived”ᐳ"}}:::plan + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈3]
ᐸ__relation...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression41 - PgSelect28[["PgSelect[28∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgSelect28[["PgSelect[28∈4]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan Object9 & PgClassExpression27 --> PgSelect28 - PgSelect42[["PgSelect[42∈5]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + PgSelect42[["PgSelect[42∈4]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan Object9 & PgClassExpression27 --> PgSelect42 - PgSelect47[["PgSelect[47∈5]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + PgSelect47[["PgSelect[47∈4]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan Object9 & PgClassExpression27 --> PgSelect47 - PgSelect52[["PgSelect[52∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + PgSelect52[["PgSelect[52∈4]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression27 --> PgSelect52 - PgSelect57[["PgSelect[57∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + PgSelect57[["PgSelect[57∈4]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression27 --> PgSelect57 - First32{{"First[32∈5]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈5]"]]:::plan + First32{{"First[32∈4]"}}:::plan + PgSelectRows33[["PgSelectRows[33∈4]"]]:::plan PgSelectRows33 --> First32 PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈5]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle34{{"PgSelectSingle[34∈4]
ᐸrelational_topicsᐳ"}}:::plan First32 --> PgSelectSingle34 - First44{{"First[44∈5]"}}:::plan - PgSelectRows45[["PgSelectRows[45∈5]"]]:::plan + First44{{"First[44∈4]"}}:::plan + PgSelectRows45[["PgSelectRows[45∈4]"]]:::plan PgSelectRows45 --> First44 PgSelect42 --> PgSelectRows45 - PgSelectSingle46{{"PgSelectSingle[46∈5]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle46{{"PgSelectSingle[46∈4]
ᐸrelational_postsᐳ"}}:::plan First44 --> PgSelectSingle46 - First49{{"First[49∈5]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈5]"]]:::plan + First49{{"First[49∈4]"}}:::plan + PgSelectRows50[["PgSelectRows[50∈4]"]]:::plan PgSelectRows50 --> First49 PgSelect47 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈5]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle51{{"PgSelectSingle[51∈4]
ᐸrelational_dividersᐳ"}}:::plan First49 --> PgSelectSingle51 - First54{{"First[54∈5]"}}:::plan - PgSelectRows55[["PgSelectRows[55∈5]"]]:::plan + First54{{"First[54∈4]"}}:::plan + PgSelectRows55[["PgSelectRows[55∈4]"]]:::plan PgSelectRows55 --> First54 PgSelect52 --> PgSelectRows55 - PgSelectSingle56{{"PgSelectSingle[56∈5]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle56{{"PgSelectSingle[56∈4]
ᐸrelational_checklistsᐳ"}}:::plan First54 --> PgSelectSingle56 - First59{{"First[59∈5]"}}:::plan - PgSelectRows60[["PgSelectRows[60∈5]"]]:::plan + First59{{"First[59∈4]"}}:::plan + PgSelectRows60[["PgSelectRows[60∈4]"]]:::plan PgSelectRows60 --> First59 PgSelect57 --> PgSelectRows60 - PgSelectSingle61{{"PgSelectSingle[61∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle61{{"PgSelectSingle[61∈4]
ᐸrelational_checklist_itemsᐳ"}}:::plan First59 --> PgSelectSingle61 %% define steps @@ -108,23 +108,19 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸrelational_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸrelational_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgClassExpression39,PgClassExpression40,PgClassExpression41 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 26, 25, 36, 37, 38, 39, 40, 41
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 42, 47, 52, 57
2: 33, 45, 50, 55, 60
ᐳ: 32, 34, 44, 46, 49, 51, 54, 56, 59, 61"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgClassExpression39,PgClassExpression40,PgClassExpression41 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 26, 25, 36, 37, 38, 39, 40, 41
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 42, 47, 52, 57
2: 33, 45, 50, 55, 60
ᐳ: 32, 34, 44, 46, 49, 51, 54, 56, 59, 61"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect42,First44,PgSelectRows45,PgSelectSingle46,PgSelect47,First49,PgSelectRows50,PgSelectSingle51,PgSelect52,First54,PgSelectRows55,PgSelectSingle56,PgSelect57,First59,PgSelectRows60,PgSelectSingle61 bucket5 + class Bucket4,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect42,First44,PgSelectRows45,PgSelectSingle46,PgSelect47,First49,PgSelectRows50,PgSelectSingle51,PgSelect52,First54,PgSelectRows55,PgSelectSingle56,PgSelect57,First59,PgSelectRows60,PgSelectSingle61 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 - Bucket4 --> Bucket5 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics.mermaid index f770cfdcbf..a13da0f1dc 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/basics.mermaid @@ -21,85 +21,85 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸrelational_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgPolymorphic26{{"PgPolymorphic[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgPolymorphic26{{"PgPolymorphic[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle24 & PgClassExpression25 --> PgPolymorphic26 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 PgSelectSingle24 --> PgClassExpression25 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression27 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈3]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈4]
ᐸ__relation...”position”ᐳ"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈3]
ᐸ__relation...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈4]
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgClassExpression38{{"PgClassExpression[38∈3]
ᐸ__relation...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈4]
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__relation...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈4]
ᐸ__relation..._archived”ᐳ"}}:::plan + PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈3]
ᐸ__relation...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression41 - PgSelect28[["PgSelect[28∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgSelect28[["PgSelect[28∈4]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan Object9 & PgClassExpression27 --> PgSelect28 - PgSelect42[["PgSelect[42∈5]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + PgSelect42[["PgSelect[42∈4]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan Object9 & PgClassExpression27 --> PgSelect42 - PgSelect47[["PgSelect[47∈5]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + PgSelect47[["PgSelect[47∈4]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan Object9 & PgClassExpression27 --> PgSelect47 - PgSelect52[["PgSelect[52∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + PgSelect52[["PgSelect[52∈4]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression27 --> PgSelect52 - PgSelect57[["PgSelect[57∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + PgSelect57[["PgSelect[57∈4]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression27 --> PgSelect57 - First32{{"First[32∈5]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈5]"]]:::plan + First32{{"First[32∈4]"}}:::plan + PgSelectRows33[["PgSelectRows[33∈4]"]]:::plan PgSelectRows33 --> First32 PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈5]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle34{{"PgSelectSingle[34∈4]
ᐸrelational_topicsᐳ"}}:::plan First32 --> PgSelectSingle34 - First44{{"First[44∈5]"}}:::plan - PgSelectRows45[["PgSelectRows[45∈5]"]]:::plan + First44{{"First[44∈4]"}}:::plan + PgSelectRows45[["PgSelectRows[45∈4]"]]:::plan PgSelectRows45 --> First44 PgSelect42 --> PgSelectRows45 - PgSelectSingle46{{"PgSelectSingle[46∈5]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle46{{"PgSelectSingle[46∈4]
ᐸrelational_postsᐳ"}}:::plan First44 --> PgSelectSingle46 - First49{{"First[49∈5]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈5]"]]:::plan + First49{{"First[49∈4]"}}:::plan + PgSelectRows50[["PgSelectRows[50∈4]"]]:::plan PgSelectRows50 --> First49 PgSelect47 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈5]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle51{{"PgSelectSingle[51∈4]
ᐸrelational_dividersᐳ"}}:::plan First49 --> PgSelectSingle51 - First54{{"First[54∈5]"}}:::plan - PgSelectRows55[["PgSelectRows[55∈5]"]]:::plan + First54{{"First[54∈4]"}}:::plan + PgSelectRows55[["PgSelectRows[55∈4]"]]:::plan PgSelectRows55 --> First54 PgSelect52 --> PgSelectRows55 - PgSelectSingle56{{"PgSelectSingle[56∈5]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle56{{"PgSelectSingle[56∈4]
ᐸrelational_checklistsᐳ"}}:::plan First54 --> PgSelectSingle56 - First59{{"First[59∈5]"}}:::plan - PgSelectRows60[["PgSelectRows[60∈5]"]]:::plan + First59{{"First[59∈4]"}}:::plan + PgSelectRows60[["PgSelectRows[60∈4]"]]:::plan PgSelectRows60 --> First59 PgSelect57 --> PgSelectRows60 - PgSelectSingle61{{"PgSelectSingle[61∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle61{{"PgSelectSingle[61∈4]
ᐸrelational_checklist_itemsᐳ"}}:::plan First59 --> PgSelectSingle61 %% define steps @@ -108,23 +108,19 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸrelational_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸrelational_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgClassExpression39,PgClassExpression40,PgClassExpression41 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 26, 25, 36, 37, 38, 39, 40, 41
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 42, 47, 52, 57
2: 33, 45, 50, 55, 60
ᐳ: 32, 34, 44, 46, 49, 51, 54, 56, 59, 61"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgClassExpression39,PgClassExpression40,PgClassExpression41 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 26, 25, 36, 37, 38, 39, 40, 41
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 42, 47, 52, 57
2: 33, 45, 50, 55, 60
ᐳ: 32, 34, 44, 46, 49, 51, 54, 56, 59, 61"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect42,First44,PgSelectRows45,PgSelectSingle46,PgSelect47,First49,PgSelectRows50,PgSelectSingle51,PgSelect52,First54,PgSelectRows55,PgSelectSingle56,PgSelect57,First59,PgSelectRows60,PgSelectSingle61 bucket5 + class Bucket4,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect42,First44,PgSelectRows45,PgSelectSingle46,PgSelect47,First49,PgSelectRows50,PgSelectSingle51,PgSelect52,First54,PgSelectRows55,PgSelectSingle56,PgSelect57,First59,PgSelectRows60,PgSelectSingle61 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 - Bucket4 --> Bucket5 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/commentables.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/commentables.deopt.mermaid index 343abbaf47..6c0bd9d5b3 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/commentables.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/commentables.deopt.mermaid @@ -9,15 +9,15 @@ graph TD %% plan dependencies + PgSelect7[["PgSelect[7∈0] ➊
ᐸrelational_commentablesᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object10 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 __ListTransform11[["__ListTransform[11∈0] ➊
ᐸeach:7ᐳ"]]:::plan PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect7[["PgSelect[7∈0] ➊
ᐸrelational_commentablesᐳ"]]:::plan PgSelectRows12 & PgSelect7 --> __ListTransform11 - Object10 --> PgSelect7 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -125,7 +125,7 @@ graph TD %% define steps subgraph "Buckets for queries/interfaces-relational/commentables" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[8], Access[9], Object[10]
2: PgSelect[7]
3: PgSelectRows[12]
4: __ListTransform[11]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 10
2: PgSelect[7]
3: PgSelectRows[12]
4: __ListTransform[11]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,__ListTransform11,PgSelectRows12 bucket0 Bucket1("Bucket 1 (subroutine)

ROOT PgSelectSingle{1}ᐸrelational_commentablesᐳ[14]"):::bucket diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/commentables.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/commentables.mermaid index 343abbaf47..6c0bd9d5b3 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/commentables.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/commentables.mermaid @@ -9,15 +9,15 @@ graph TD %% plan dependencies + PgSelect7[["PgSelect[7∈0] ➊
ᐸrelational_commentablesᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object10 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 __ListTransform11[["__ListTransform[11∈0] ➊
ᐸeach:7ᐳ"]]:::plan PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect7[["PgSelect[7∈0] ➊
ᐸrelational_commentablesᐳ"]]:::plan PgSelectRows12 & PgSelect7 --> __ListTransform11 - Object10 --> PgSelect7 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -125,7 +125,7 @@ graph TD %% define steps subgraph "Buckets for queries/interfaces-relational/commentables" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[8], Access[9], Object[10]
2: PgSelect[7]
3: PgSelectRows[12]
4: __ListTransform[11]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 10
2: PgSelect[7]
3: PgSelectRows[12]
4: __ListTransform[11]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,__ListTransform11,PgSelectRows12 bucket0 Bucket1("Bucket 1 (subroutine)

ROOT PgSelectSingle{1}ᐸrelational_commentablesᐳ[14]"):::bucket diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more-fragments.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more-fragments.deopt.mermaid index ccb04ab349..acaf1b5220 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more-fragments.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more-fragments.deopt.mermaid @@ -21,214 +21,214 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸrelational_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgPolymorphic26{{"PgPolymorphic[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgPolymorphic26{{"PgPolymorphic[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle24 & PgClassExpression25 --> PgPolymorphic26 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 PgSelectSingle24 --> PgClassExpression25 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression27 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__relation...parent_id”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ__relation...parent_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression35 - PgClassExpression115{{"PgClassExpression[115∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression115{{"PgClassExpression[115∈3]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression115 - PgClassExpression116{{"PgClassExpression[116∈4]
ᐸ__relation...author_id”ᐳ"}}:::plan + PgClassExpression116{{"PgClassExpression[116∈3]
ᐸ__relation...author_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression116 - PgClassExpression123{{"PgClassExpression[123∈4]
ᐸ__relation...”position”ᐳ"}}:::plan + PgClassExpression123{{"PgClassExpression[123∈3]
ᐸ__relation...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression123 - PgClassExpression124{{"PgClassExpression[124∈4]
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgClassExpression124{{"PgClassExpression[124∈3]
ᐸ__relation...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression124 - PgClassExpression125{{"PgClassExpression[125∈4]
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgClassExpression125{{"PgClassExpression[125∈3]
ᐸ__relation...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression125 - PgClassExpression126{{"PgClassExpression[126∈4]
ᐸ__relation..._archived”ᐳ"}}:::plan + PgClassExpression126{{"PgClassExpression[126∈3]
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression126 - PgClassExpression127{{"PgClassExpression[127∈4]
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgClassExpression127{{"PgClassExpression[127∈3]
ᐸ__relation...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression127 - PgSelect28[["PgSelect[28∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgSelect28[["PgSelect[28∈4]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan Object9 & PgClassExpression27 --> PgSelect28 - PgSelect36[["PgSelect[36∈5]
ᐸrelational_itemsᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan + PgSelect36[["PgSelect[36∈4]
ᐸrelational_itemsᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression35 --> PgSelect36 - PgPolymorphic42{{"PgPolymorphic[42∈5]
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan - PgSelectSingle40{{"PgSelectSingle[40∈5]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPost
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDivider
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan + PgPolymorphic42{{"PgPolymorphic[42∈4]
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + PgSelectSingle40{{"PgSelectSingle[40∈4]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPost
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDivider
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan PgSelectSingle40 & PgClassExpression41 --> PgPolymorphic42 - PgSelect117[["PgSelect[117∈5]
ᐸpeopleᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan + PgSelect117[["PgSelect[117∈4]
ᐸpeopleᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression116 --> PgSelect117 - PgSelect129[["PgSelect[129∈5]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + PgSelect129[["PgSelect[129∈4]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan Object9 & PgClassExpression27 --> PgSelect129 - PgSelect199[["PgSelect[199∈5]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + PgSelect199[["PgSelect[199∈4]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan Object9 & PgClassExpression27 --> PgSelect199 - PgSelect268[["PgSelect[268∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + PgSelect268[["PgSelect[268∈4]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression27 --> PgSelect268 - PgSelect336[["PgSelect[336∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + PgSelect336[["PgSelect[336∈4]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression27 --> PgSelect336 - First32{{"First[32∈5]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈5]"]]:::plan + First32{{"First[32∈4]"}}:::plan + PgSelectRows33[["PgSelectRows[33∈4]"]]:::plan PgSelectRows33 --> First32 PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈5]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle34{{"PgSelectSingle[34∈4]
ᐸrelational_topicsᐳ"}}:::plan First32 --> PgSelectSingle34 - First38{{"First[38∈5]"}}:::plan - PgSelectRows39[["PgSelectRows[39∈5]"]]:::plan + First38{{"First[38∈4]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈4]"]]:::plan PgSelectRows39 --> First38 PgSelect36 --> PgSelectRows39 First38 --> PgSelectSingle40 PgSelectSingle40 --> PgClassExpression41 - PgClassExpression43{{"PgClassExpression[43∈5]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression43 - PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression52{{"PgClassExpression[52∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__relation...author_id”ᐳ"}}:::plan + PgClassExpression53{{"PgClassExpression[53∈4]
ᐸ__relation...author_id”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression53 - PgClassExpression60{{"PgClassExpression[60∈5]
ᐸ__relation...”position”ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈4]
ᐸ__relation...”position”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression60 - PgClassExpression61{{"PgClassExpression[61∈5]
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈4]
ᐸ__relation...reated_at”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression61 - PgClassExpression62{{"PgClassExpression[62∈5]
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgClassExpression62{{"PgClassExpression[62∈4]
ᐸ__relation...pdated_at”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression62 - PgClassExpression63{{"PgClassExpression[63∈5]
ᐸ__relation..._archived”ᐳ"}}:::plan + PgClassExpression63{{"PgClassExpression[63∈4]
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression63 - PgClassExpression64{{"PgClassExpression[64∈5]
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgClassExpression64{{"PgClassExpression[64∈4]
ᐸ__relation...chived_at”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression64 - First119{{"First[119∈5]"}}:::plan - PgSelectRows120[["PgSelectRows[120∈5]"]]:::plan + First119{{"First[119∈4]"}}:::plan + PgSelectRows120[["PgSelectRows[120∈4]"]]:::plan PgSelectRows120 --> First119 PgSelect117 --> PgSelectRows120 - PgSelectSingle121{{"PgSelectSingle[121∈5]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle121{{"PgSelectSingle[121∈4]
ᐸpeopleᐳ"}}:::plan First119 --> PgSelectSingle121 - PgClassExpression128{{"PgClassExpression[128∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression122{{"PgClassExpression[122∈4]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle121 --> PgClassExpression122 + PgClassExpression128{{"PgClassExpression[128∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle34 --> PgClassExpression128 - First131{{"First[131∈5]"}}:::plan - PgSelectRows132[["PgSelectRows[132∈5]"]]:::plan + First131{{"First[131∈4]"}}:::plan + PgSelectRows132[["PgSelectRows[132∈4]"]]:::plan PgSelectRows132 --> First131 PgSelect129 --> PgSelectRows132 - PgSelectSingle133{{"PgSelectSingle[133∈5]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle133{{"PgSelectSingle[133∈4]
ᐸrelational_postsᐳ"}}:::plan First131 --> PgSelectSingle133 - PgClassExpression196{{"PgClassExpression[196∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression196{{"PgClassExpression[196∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle133 --> PgClassExpression196 - PgClassExpression197{{"PgClassExpression[197∈5]
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression197{{"PgClassExpression[197∈4]
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle133 --> PgClassExpression197 - PgClassExpression198{{"PgClassExpression[198∈5]
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression198{{"PgClassExpression[198∈4]
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle133 --> PgClassExpression198 - First201{{"First[201∈5]"}}:::plan - PgSelectRows202[["PgSelectRows[202∈5]"]]:::plan + First201{{"First[201∈4]"}}:::plan + PgSelectRows202[["PgSelectRows[202∈4]"]]:::plan PgSelectRows202 --> First201 PgSelect199 --> PgSelectRows202 - PgSelectSingle203{{"PgSelectSingle[203∈5]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle203{{"PgSelectSingle[203∈4]
ᐸrelational_dividersᐳ"}}:::plan First201 --> PgSelectSingle203 - PgClassExpression266{{"PgClassExpression[266∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression266{{"PgClassExpression[266∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle203 --> PgClassExpression266 - PgClassExpression267{{"PgClassExpression[267∈5]
ᐸ__relation...__.”color”ᐳ"}}:::plan + PgClassExpression267{{"PgClassExpression[267∈4]
ᐸ__relation...__.”color”ᐳ"}}:::plan PgSelectSingle203 --> PgClassExpression267 - First270{{"First[270∈5]"}}:::plan - PgSelectRows271[["PgSelectRows[271∈5]"]]:::plan + First270{{"First[270∈4]"}}:::plan + PgSelectRows271[["PgSelectRows[271∈4]"]]:::plan PgSelectRows271 --> First270 PgSelect268 --> PgSelectRows271 - PgSelectSingle272{{"PgSelectSingle[272∈5]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle272{{"PgSelectSingle[272∈4]
ᐸrelational_checklistsᐳ"}}:::plan First270 --> PgSelectSingle272 - PgClassExpression335{{"PgClassExpression[335∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression335{{"PgClassExpression[335∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle272 --> PgClassExpression335 - First338{{"First[338∈5]"}}:::plan - PgSelectRows339[["PgSelectRows[339∈5]"]]:::plan + First338{{"First[338∈4]"}}:::plan + PgSelectRows339[["PgSelectRows[339∈4]"]]:::plan PgSelectRows339 --> First338 PgSelect336 --> PgSelectRows339 - PgSelectSingle340{{"PgSelectSingle[340∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle340{{"PgSelectSingle[340∈4]
ᐸrelational_checklist_itemsᐳ"}}:::plan First338 --> PgSelectSingle340 - PgClassExpression403{{"PgClassExpression[403∈5]
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression403{{"PgClassExpression[403∈4]
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle340 --> PgClassExpression403 - PgClassExpression404{{"PgClassExpression[404∈5]
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression404{{"PgClassExpression[404∈4]
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle340 --> PgClassExpression404 - PgSelect44[["PgSelect[44∈6]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan + PgSelect44[["PgSelect[44∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan Object9 & PgClassExpression43 --> PgSelect44 - PgSelect54[["PgSelect[54∈6]
ᐸpeopleᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan + PgSelect54[["PgSelect[54∈5]
ᐸpeopleᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression53 --> PgSelect54 - PgSelect66[["PgSelect[66∈6]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalPostᐳRelationalPost
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan + PgSelect66[["PgSelect[66∈5]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalPostᐳRelationalPost
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan Object9 & PgClassExpression43 --> PgSelect66 - PgSelect79[["PgSelect[79∈6]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan + PgSelect79[["PgSelect[79∈5]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan Object9 & PgClassExpression43 --> PgSelect79 - PgSelect91[["PgSelect[91∈6]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan + PgSelect91[["PgSelect[91∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression43 --> PgSelect91 - PgSelect102[["PgSelect[102∈6]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan + PgSelect102[["PgSelect[102∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression43 --> PgSelect102 - First48{{"First[48∈6]"}}:::plan - PgSelectRows49[["PgSelectRows[49∈6]"]]:::plan + First48{{"First[48∈5]"}}:::plan + PgSelectRows49[["PgSelectRows[49∈5]"]]:::plan PgSelectRows49 --> First48 PgSelect44 --> PgSelectRows49 - PgSelectSingle50{{"PgSelectSingle[50∈6]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle50{{"PgSelectSingle[50∈5]
ᐸrelational_topicsᐳ"}}:::plan First48 --> PgSelectSingle50 - First56{{"First[56∈6]"}}:::plan - PgSelectRows57[["PgSelectRows[57∈6]"]]:::plan + First56{{"First[56∈5]"}}:::plan + PgSelectRows57[["PgSelectRows[57∈5]"]]:::plan PgSelectRows57 --> First56 PgSelect54 --> PgSelectRows57 - PgSelectSingle58{{"PgSelectSingle[58∈6]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle58{{"PgSelectSingle[58∈5]
ᐸpeopleᐳ"}}:::plan First56 --> PgSelectSingle58 - PgClassExpression65{{"PgClassExpression[65∈6]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression59{{"PgClassExpression[59∈5]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression59 + PgClassExpression65{{"PgClassExpression[65∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle50 --> PgClassExpression65 - First68{{"First[68∈6]"}}:::plan - PgSelectRows69[["PgSelectRows[69∈6]"]]:::plan + First68{{"First[68∈5]"}}:::plan + PgSelectRows69[["PgSelectRows[69∈5]"]]:::plan PgSelectRows69 --> First68 PgSelect66 --> PgSelectRows69 - PgSelectSingle70{{"PgSelectSingle[70∈6]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle70{{"PgSelectSingle[70∈5]
ᐸrelational_postsᐳ"}}:::plan First68 --> PgSelectSingle70 - PgClassExpression76{{"PgClassExpression[76∈6]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression76{{"PgClassExpression[76∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle70 --> PgClassExpression76 - PgClassExpression77{{"PgClassExpression[77∈6]
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression77{{"PgClassExpression[77∈5]
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle70 --> PgClassExpression77 - PgClassExpression78{{"PgClassExpression[78∈6]
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression78{{"PgClassExpression[78∈5]
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle70 --> PgClassExpression78 - First81{{"First[81∈6]"}}:::plan - PgSelectRows82[["PgSelectRows[82∈6]"]]:::plan + First81{{"First[81∈5]"}}:::plan + PgSelectRows82[["PgSelectRows[82∈5]"]]:::plan PgSelectRows82 --> First81 PgSelect79 --> PgSelectRows82 - PgSelectSingle83{{"PgSelectSingle[83∈6]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle83{{"PgSelectSingle[83∈5]
ᐸrelational_dividersᐳ"}}:::plan First81 --> PgSelectSingle83 - PgClassExpression89{{"PgClassExpression[89∈6]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression89{{"PgClassExpression[89∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle83 --> PgClassExpression89 - PgClassExpression90{{"PgClassExpression[90∈6]
ᐸ__relation...__.”color”ᐳ"}}:::plan + PgClassExpression90{{"PgClassExpression[90∈5]
ᐸ__relation...__.”color”ᐳ"}}:::plan PgSelectSingle83 --> PgClassExpression90 - First93{{"First[93∈6]"}}:::plan - PgSelectRows94[["PgSelectRows[94∈6]"]]:::plan + First93{{"First[93∈5]"}}:::plan + PgSelectRows94[["PgSelectRows[94∈5]"]]:::plan PgSelectRows94 --> First93 PgSelect91 --> PgSelectRows94 - PgSelectSingle95{{"PgSelectSingle[95∈6]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle95{{"PgSelectSingle[95∈5]
ᐸrelational_checklistsᐳ"}}:::plan First93 --> PgSelectSingle95 - PgClassExpression101{{"PgClassExpression[101∈6]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression101{{"PgClassExpression[101∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle95 --> PgClassExpression101 - First104{{"First[104∈6]"}}:::plan - PgSelectRows105[["PgSelectRows[105∈6]"]]:::plan + First104{{"First[104∈5]"}}:::plan + PgSelectRows105[["PgSelectRows[105∈5]"]]:::plan PgSelectRows105 --> First104 PgSelect102 --> PgSelectRows105 - PgSelectSingle106{{"PgSelectSingle[106∈6]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle106{{"PgSelectSingle[106∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan First104 --> PgSelectSingle106 - PgClassExpression112{{"PgClassExpression[112∈6]
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression112{{"PgClassExpression[112∈5]
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle106 --> PgClassExpression112 - PgClassExpression113{{"PgClassExpression[113∈6]
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression113{{"PgClassExpression[113∈5]
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle106 --> PgClassExpression113 - PgClassExpression59{{"PgClassExpression[59∈7]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle58 --> PgClassExpression59 - PgClassExpression122{{"PgClassExpression[122∈8]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle121 --> PgClassExpression122 %% define steps @@ -236,34 +236,23 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸrelational_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸrelational_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression35,PgClassExpression115,PgClassExpression116,PgClassExpression123,PgClassExpression124,PgClassExpression125,PgClassExpression126,PgClassExpression127 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 35, 116, 26, 25, 115, 123, 124, 125, 126, 127
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 36, 117, 129, 199, 268, 336
2: 33, 39, 120, 132, 202, 271, 339
ᐳ: 32, 34, 38, 40, 41, 42, 43, 52, 53, 60, 61, 62, 63, 64, 119, 121, 122, 128, 131, 133, 196, 197, 198, 201, 203, 266, 267, 270, 272, 335, 338, 340, 403, 404"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression35,PgClassExpression115,PgClassExpression116,PgClassExpression123,PgClassExpression124,PgClassExpression125,PgClassExpression126,PgClassExpression127 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 35, 116, 26, 25, 115, 123, 124, 125, 126, 127
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 36, 117, 129, 199, 268, 336
2: 33, 39, 120, 132, 202, 271, 339
ᐳ: 32, 34, 38, 40, 41, 42, 43, 52, 53, 60, 61, 62, 63, 64, 119, 121, 128, 131, 133, 196, 197, 198, 201, 203, 266, 267, 270, 272, 335, 338, 340, 403, 404"):::bucket + class Bucket4,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgPolymorphic42,PgClassExpression43,PgClassExpression52,PgClassExpression53,PgClassExpression60,PgClassExpression61,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgSelect117,First119,PgSelectRows120,PgSelectSingle121,PgClassExpression122,PgClassExpression128,PgSelect129,First131,PgSelectRows132,PgSelectSingle133,PgClassExpression196,PgClassExpression197,PgClassExpression198,PgSelect199,First201,PgSelectRows202,PgSelectSingle203,PgClassExpression266,PgClassExpression267,PgSelect268,First270,PgSelectRows271,PgSelectSingle272,PgClassExpression335,PgSelect336,First338,PgSelectRows339,PgSelectSingle340,PgClassExpression403,PgClassExpression404 bucket4 + Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 43, 53, 42, 41, 52, 60, 61, 62, 63, 64
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 44, 54, 66, 79, 91, 102
2: 49, 57, 69, 82, 94, 105
ᐳ: 48, 50, 56, 58, 59, 65, 68, 70, 76, 77, 78, 81, 83, 89, 90, 93, 95, 101, 104, 106, 112, 113"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgPolymorphic42,PgClassExpression43,PgClassExpression52,PgClassExpression53,PgClassExpression60,PgClassExpression61,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgSelect117,First119,PgSelectRows120,PgSelectSingle121,PgClassExpression128,PgSelect129,First131,PgSelectRows132,PgSelectSingle133,PgClassExpression196,PgClassExpression197,PgClassExpression198,PgSelect199,First201,PgSelectRows202,PgSelectSingle203,PgClassExpression266,PgClassExpression267,PgSelect268,First270,PgSelectRows271,PgSelectSingle272,PgClassExpression335,PgSelect336,First338,PgSelectRows339,PgSelectSingle340,PgClassExpression403,PgClassExpression404 bucket5 - Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 43, 53, 42, 41, 52, 60, 61, 62, 63, 64
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 44, 54, 66, 79, 91, 102
2: 49, 57, 69, 82, 94, 105
ᐳ: 48, 50, 56, 58, 65, 68, 70, 76, 77, 78, 81, 83, 89, 90, 93, 95, 101, 104, 106, 112, 113"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgClassExpression65,PgSelect66,First68,PgSelectRows69,PgSelectSingle70,PgClassExpression76,PgClassExpression77,PgClassExpression78,PgSelect79,First81,PgSelectRows82,PgSelectSingle83,PgClassExpression89,PgClassExpression90,PgSelect91,First93,PgSelectRows94,PgSelectSingle95,PgClassExpression101,PgSelect102,First104,PgSelectRows105,PgSelectSingle106,PgClassExpression112,PgClassExpression113 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 58

ROOT PgSelectSingle{6}ᐸpeopleᐳ[58]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression59 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 121

ROOT PgSelectSingle{5}ᐸpeopleᐳ[121]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression122 bucket8 + class Bucket5,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgClassExpression59,PgClassExpression65,PgSelect66,First68,PgSelectRows69,PgSelectSingle70,PgClassExpression76,PgClassExpression77,PgClassExpression78,PgSelect79,First81,PgSelectRows82,PgSelectSingle83,PgClassExpression89,PgClassExpression90,PgSelect91,First93,PgSelectRows94,PgSelectSingle95,PgClassExpression101,PgSelect102,First104,PgSelectRows105,PgSelectSingle106,PgClassExpression112,PgClassExpression113 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket8 - Bucket6 --> Bucket7 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more-fragments.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more-fragments.mermaid index ccb04ab349..acaf1b5220 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more-fragments.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more-fragments.mermaid @@ -21,214 +21,214 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸrelational_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgPolymorphic26{{"PgPolymorphic[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgPolymorphic26{{"PgPolymorphic[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle24 & PgClassExpression25 --> PgPolymorphic26 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 PgSelectSingle24 --> PgClassExpression25 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression27 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__relation...parent_id”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ__relation...parent_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression35 - PgClassExpression115{{"PgClassExpression[115∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression115{{"PgClassExpression[115∈3]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression115 - PgClassExpression116{{"PgClassExpression[116∈4]
ᐸ__relation...author_id”ᐳ"}}:::plan + PgClassExpression116{{"PgClassExpression[116∈3]
ᐸ__relation...author_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression116 - PgClassExpression123{{"PgClassExpression[123∈4]
ᐸ__relation...”position”ᐳ"}}:::plan + PgClassExpression123{{"PgClassExpression[123∈3]
ᐸ__relation...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression123 - PgClassExpression124{{"PgClassExpression[124∈4]
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgClassExpression124{{"PgClassExpression[124∈3]
ᐸ__relation...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression124 - PgClassExpression125{{"PgClassExpression[125∈4]
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgClassExpression125{{"PgClassExpression[125∈3]
ᐸ__relation...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression125 - PgClassExpression126{{"PgClassExpression[126∈4]
ᐸ__relation..._archived”ᐳ"}}:::plan + PgClassExpression126{{"PgClassExpression[126∈3]
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression126 - PgClassExpression127{{"PgClassExpression[127∈4]
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgClassExpression127{{"PgClassExpression[127∈3]
ᐸ__relation...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression127 - PgSelect28[["PgSelect[28∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgSelect28[["PgSelect[28∈4]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan Object9 & PgClassExpression27 --> PgSelect28 - PgSelect36[["PgSelect[36∈5]
ᐸrelational_itemsᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan + PgSelect36[["PgSelect[36∈4]
ᐸrelational_itemsᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression35 --> PgSelect36 - PgPolymorphic42{{"PgPolymorphic[42∈5]
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan - PgSelectSingle40{{"PgSelectSingle[40∈5]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPost
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDivider
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan + PgPolymorphic42{{"PgPolymorphic[42∈4]
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + PgSelectSingle40{{"PgSelectSingle[40∈4]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPost
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDivider
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan PgSelectSingle40 & PgClassExpression41 --> PgPolymorphic42 - PgSelect117[["PgSelect[117∈5]
ᐸpeopleᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan + PgSelect117[["PgSelect[117∈4]
ᐸpeopleᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression116 --> PgSelect117 - PgSelect129[["PgSelect[129∈5]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + PgSelect129[["PgSelect[129∈4]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan Object9 & PgClassExpression27 --> PgSelect129 - PgSelect199[["PgSelect[199∈5]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + PgSelect199[["PgSelect[199∈4]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan Object9 & PgClassExpression27 --> PgSelect199 - PgSelect268[["PgSelect[268∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + PgSelect268[["PgSelect[268∈4]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression27 --> PgSelect268 - PgSelect336[["PgSelect[336∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + PgSelect336[["PgSelect[336∈4]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression27 --> PgSelect336 - First32{{"First[32∈5]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈5]"]]:::plan + First32{{"First[32∈4]"}}:::plan + PgSelectRows33[["PgSelectRows[33∈4]"]]:::plan PgSelectRows33 --> First32 PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈5]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle34{{"PgSelectSingle[34∈4]
ᐸrelational_topicsᐳ"}}:::plan First32 --> PgSelectSingle34 - First38{{"First[38∈5]"}}:::plan - PgSelectRows39[["PgSelectRows[39∈5]"]]:::plan + First38{{"First[38∈4]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈4]"]]:::plan PgSelectRows39 --> First38 PgSelect36 --> PgSelectRows39 First38 --> PgSelectSingle40 PgSelectSingle40 --> PgClassExpression41 - PgClassExpression43{{"PgClassExpression[43∈5]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression43 - PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression52{{"PgClassExpression[52∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__relation...author_id”ᐳ"}}:::plan + PgClassExpression53{{"PgClassExpression[53∈4]
ᐸ__relation...author_id”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression53 - PgClassExpression60{{"PgClassExpression[60∈5]
ᐸ__relation...”position”ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈4]
ᐸ__relation...”position”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression60 - PgClassExpression61{{"PgClassExpression[61∈5]
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈4]
ᐸ__relation...reated_at”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression61 - PgClassExpression62{{"PgClassExpression[62∈5]
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgClassExpression62{{"PgClassExpression[62∈4]
ᐸ__relation...pdated_at”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression62 - PgClassExpression63{{"PgClassExpression[63∈5]
ᐸ__relation..._archived”ᐳ"}}:::plan + PgClassExpression63{{"PgClassExpression[63∈4]
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression63 - PgClassExpression64{{"PgClassExpression[64∈5]
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgClassExpression64{{"PgClassExpression[64∈4]
ᐸ__relation...chived_at”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression64 - First119{{"First[119∈5]"}}:::plan - PgSelectRows120[["PgSelectRows[120∈5]"]]:::plan + First119{{"First[119∈4]"}}:::plan + PgSelectRows120[["PgSelectRows[120∈4]"]]:::plan PgSelectRows120 --> First119 PgSelect117 --> PgSelectRows120 - PgSelectSingle121{{"PgSelectSingle[121∈5]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle121{{"PgSelectSingle[121∈4]
ᐸpeopleᐳ"}}:::plan First119 --> PgSelectSingle121 - PgClassExpression128{{"PgClassExpression[128∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression122{{"PgClassExpression[122∈4]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle121 --> PgClassExpression122 + PgClassExpression128{{"PgClassExpression[128∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle34 --> PgClassExpression128 - First131{{"First[131∈5]"}}:::plan - PgSelectRows132[["PgSelectRows[132∈5]"]]:::plan + First131{{"First[131∈4]"}}:::plan + PgSelectRows132[["PgSelectRows[132∈4]"]]:::plan PgSelectRows132 --> First131 PgSelect129 --> PgSelectRows132 - PgSelectSingle133{{"PgSelectSingle[133∈5]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle133{{"PgSelectSingle[133∈4]
ᐸrelational_postsᐳ"}}:::plan First131 --> PgSelectSingle133 - PgClassExpression196{{"PgClassExpression[196∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression196{{"PgClassExpression[196∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle133 --> PgClassExpression196 - PgClassExpression197{{"PgClassExpression[197∈5]
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression197{{"PgClassExpression[197∈4]
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle133 --> PgClassExpression197 - PgClassExpression198{{"PgClassExpression[198∈5]
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression198{{"PgClassExpression[198∈4]
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle133 --> PgClassExpression198 - First201{{"First[201∈5]"}}:::plan - PgSelectRows202[["PgSelectRows[202∈5]"]]:::plan + First201{{"First[201∈4]"}}:::plan + PgSelectRows202[["PgSelectRows[202∈4]"]]:::plan PgSelectRows202 --> First201 PgSelect199 --> PgSelectRows202 - PgSelectSingle203{{"PgSelectSingle[203∈5]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle203{{"PgSelectSingle[203∈4]
ᐸrelational_dividersᐳ"}}:::plan First201 --> PgSelectSingle203 - PgClassExpression266{{"PgClassExpression[266∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression266{{"PgClassExpression[266∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle203 --> PgClassExpression266 - PgClassExpression267{{"PgClassExpression[267∈5]
ᐸ__relation...__.”color”ᐳ"}}:::plan + PgClassExpression267{{"PgClassExpression[267∈4]
ᐸ__relation...__.”color”ᐳ"}}:::plan PgSelectSingle203 --> PgClassExpression267 - First270{{"First[270∈5]"}}:::plan - PgSelectRows271[["PgSelectRows[271∈5]"]]:::plan + First270{{"First[270∈4]"}}:::plan + PgSelectRows271[["PgSelectRows[271∈4]"]]:::plan PgSelectRows271 --> First270 PgSelect268 --> PgSelectRows271 - PgSelectSingle272{{"PgSelectSingle[272∈5]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle272{{"PgSelectSingle[272∈4]
ᐸrelational_checklistsᐳ"}}:::plan First270 --> PgSelectSingle272 - PgClassExpression335{{"PgClassExpression[335∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression335{{"PgClassExpression[335∈4]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle272 --> PgClassExpression335 - First338{{"First[338∈5]"}}:::plan - PgSelectRows339[["PgSelectRows[339∈5]"]]:::plan + First338{{"First[338∈4]"}}:::plan + PgSelectRows339[["PgSelectRows[339∈4]"]]:::plan PgSelectRows339 --> First338 PgSelect336 --> PgSelectRows339 - PgSelectSingle340{{"PgSelectSingle[340∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle340{{"PgSelectSingle[340∈4]
ᐸrelational_checklist_itemsᐳ"}}:::plan First338 --> PgSelectSingle340 - PgClassExpression403{{"PgClassExpression[403∈5]
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression403{{"PgClassExpression[403∈4]
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle340 --> PgClassExpression403 - PgClassExpression404{{"PgClassExpression[404∈5]
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression404{{"PgClassExpression[404∈4]
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle340 --> PgClassExpression404 - PgSelect44[["PgSelect[44∈6]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan + PgSelect44[["PgSelect[44∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan Object9 & PgClassExpression43 --> PgSelect44 - PgSelect54[["PgSelect[54∈6]
ᐸpeopleᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan + PgSelect54[["PgSelect[54∈5]
ᐸpeopleᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression53 --> PgSelect54 - PgSelect66[["PgSelect[66∈6]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalPostᐳRelationalPost
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan + PgSelect66[["PgSelect[66∈5]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalPostᐳRelationalPost
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan Object9 & PgClassExpression43 --> PgSelect66 - PgSelect79[["PgSelect[79∈6]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan + PgSelect79[["PgSelect[79∈5]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan Object9 & PgClassExpression43 --> PgSelect79 - PgSelect91[["PgSelect[91∈6]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan + PgSelect91[["PgSelect[91∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression43 --> PgSelect91 - PgSelect102[["PgSelect[102∈6]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan + PgSelect102[["PgSelect[102∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression43 --> PgSelect102 - First48{{"First[48∈6]"}}:::plan - PgSelectRows49[["PgSelectRows[49∈6]"]]:::plan + First48{{"First[48∈5]"}}:::plan + PgSelectRows49[["PgSelectRows[49∈5]"]]:::plan PgSelectRows49 --> First48 PgSelect44 --> PgSelectRows49 - PgSelectSingle50{{"PgSelectSingle[50∈6]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle50{{"PgSelectSingle[50∈5]
ᐸrelational_topicsᐳ"}}:::plan First48 --> PgSelectSingle50 - First56{{"First[56∈6]"}}:::plan - PgSelectRows57[["PgSelectRows[57∈6]"]]:::plan + First56{{"First[56∈5]"}}:::plan + PgSelectRows57[["PgSelectRows[57∈5]"]]:::plan PgSelectRows57 --> First56 PgSelect54 --> PgSelectRows57 - PgSelectSingle58{{"PgSelectSingle[58∈6]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle58{{"PgSelectSingle[58∈5]
ᐸpeopleᐳ"}}:::plan First56 --> PgSelectSingle58 - PgClassExpression65{{"PgClassExpression[65∈6]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression59{{"PgClassExpression[59∈5]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression59 + PgClassExpression65{{"PgClassExpression[65∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle50 --> PgClassExpression65 - First68{{"First[68∈6]"}}:::plan - PgSelectRows69[["PgSelectRows[69∈6]"]]:::plan + First68{{"First[68∈5]"}}:::plan + PgSelectRows69[["PgSelectRows[69∈5]"]]:::plan PgSelectRows69 --> First68 PgSelect66 --> PgSelectRows69 - PgSelectSingle70{{"PgSelectSingle[70∈6]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle70{{"PgSelectSingle[70∈5]
ᐸrelational_postsᐳ"}}:::plan First68 --> PgSelectSingle70 - PgClassExpression76{{"PgClassExpression[76∈6]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression76{{"PgClassExpression[76∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle70 --> PgClassExpression76 - PgClassExpression77{{"PgClassExpression[77∈6]
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression77{{"PgClassExpression[77∈5]
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle70 --> PgClassExpression77 - PgClassExpression78{{"PgClassExpression[78∈6]
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression78{{"PgClassExpression[78∈5]
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle70 --> PgClassExpression78 - First81{{"First[81∈6]"}}:::plan - PgSelectRows82[["PgSelectRows[82∈6]"]]:::plan + First81{{"First[81∈5]"}}:::plan + PgSelectRows82[["PgSelectRows[82∈5]"]]:::plan PgSelectRows82 --> First81 PgSelect79 --> PgSelectRows82 - PgSelectSingle83{{"PgSelectSingle[83∈6]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle83{{"PgSelectSingle[83∈5]
ᐸrelational_dividersᐳ"}}:::plan First81 --> PgSelectSingle83 - PgClassExpression89{{"PgClassExpression[89∈6]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression89{{"PgClassExpression[89∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle83 --> PgClassExpression89 - PgClassExpression90{{"PgClassExpression[90∈6]
ᐸ__relation...__.”color”ᐳ"}}:::plan + PgClassExpression90{{"PgClassExpression[90∈5]
ᐸ__relation...__.”color”ᐳ"}}:::plan PgSelectSingle83 --> PgClassExpression90 - First93{{"First[93∈6]"}}:::plan - PgSelectRows94[["PgSelectRows[94∈6]"]]:::plan + First93{{"First[93∈5]"}}:::plan + PgSelectRows94[["PgSelectRows[94∈5]"]]:::plan PgSelectRows94 --> First93 PgSelect91 --> PgSelectRows94 - PgSelectSingle95{{"PgSelectSingle[95∈6]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle95{{"PgSelectSingle[95∈5]
ᐸrelational_checklistsᐳ"}}:::plan First93 --> PgSelectSingle95 - PgClassExpression101{{"PgClassExpression[101∈6]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgClassExpression101{{"PgClassExpression[101∈5]
ᐸ__relation...__.”title”ᐳ"}}:::plan PgSelectSingle95 --> PgClassExpression101 - First104{{"First[104∈6]"}}:::plan - PgSelectRows105[["PgSelectRows[105∈6]"]]:::plan + First104{{"First[104∈5]"}}:::plan + PgSelectRows105[["PgSelectRows[105∈5]"]]:::plan PgSelectRows105 --> First104 PgSelect102 --> PgSelectRows105 - PgSelectSingle106{{"PgSelectSingle[106∈6]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle106{{"PgSelectSingle[106∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan First104 --> PgSelectSingle106 - PgClassExpression112{{"PgClassExpression[112∈6]
ᐸ__relation...scription”ᐳ"}}:::plan + PgClassExpression112{{"PgClassExpression[112∈5]
ᐸ__relation...scription”ᐳ"}}:::plan PgSelectSingle106 --> PgClassExpression112 - PgClassExpression113{{"PgClassExpression[113∈6]
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgClassExpression113{{"PgClassExpression[113∈5]
ᐸ__relation...s__.”note”ᐳ"}}:::plan PgSelectSingle106 --> PgClassExpression113 - PgClassExpression59{{"PgClassExpression[59∈7]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle58 --> PgClassExpression59 - PgClassExpression122{{"PgClassExpression[122∈8]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle121 --> PgClassExpression122 %% define steps @@ -236,34 +236,23 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸrelational_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸrelational_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression35,PgClassExpression115,PgClassExpression116,PgClassExpression123,PgClassExpression124,PgClassExpression125,PgClassExpression126,PgClassExpression127 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 35, 116, 26, 25, 115, 123, 124, 125, 126, 127
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 36, 117, 129, 199, 268, 336
2: 33, 39, 120, 132, 202, 271, 339
ᐳ: 32, 34, 38, 40, 41, 42, 43, 52, 53, 60, 61, 62, 63, 64, 119, 121, 122, 128, 131, 133, 196, 197, 198, 201, 203, 266, 267, 270, 272, 335, 338, 340, 403, 404"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression35,PgClassExpression115,PgClassExpression116,PgClassExpression123,PgClassExpression124,PgClassExpression125,PgClassExpression126,PgClassExpression127 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 35, 116, 26, 25, 115, 123, 124, 125, 126, 127
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 36, 117, 129, 199, 268, 336
2: 33, 39, 120, 132, 202, 271, 339
ᐳ: 32, 34, 38, 40, 41, 42, 43, 52, 53, 60, 61, 62, 63, 64, 119, 121, 128, 131, 133, 196, 197, 198, 201, 203, 266, 267, 270, 272, 335, 338, 340, 403, 404"):::bucket + class Bucket4,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgPolymorphic42,PgClassExpression43,PgClassExpression52,PgClassExpression53,PgClassExpression60,PgClassExpression61,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgSelect117,First119,PgSelectRows120,PgSelectSingle121,PgClassExpression122,PgClassExpression128,PgSelect129,First131,PgSelectRows132,PgSelectSingle133,PgClassExpression196,PgClassExpression197,PgClassExpression198,PgSelect199,First201,PgSelectRows202,PgSelectSingle203,PgClassExpression266,PgClassExpression267,PgSelect268,First270,PgSelectRows271,PgSelectSingle272,PgClassExpression335,PgSelect336,First338,PgSelectRows339,PgSelectSingle340,PgClassExpression403,PgClassExpression404 bucket4 + Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 43, 53, 42, 41, 52, 60, 61, 62, 63, 64
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 44, 54, 66, 79, 91, 102
2: 49, 57, 69, 82, 94, 105
ᐳ: 48, 50, 56, 58, 59, 65, 68, 70, 76, 77, 78, 81, 83, 89, 90, 93, 95, 101, 104, 106, 112, 113"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgPolymorphic42,PgClassExpression43,PgClassExpression52,PgClassExpression53,PgClassExpression60,PgClassExpression61,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgSelect117,First119,PgSelectRows120,PgSelectSingle121,PgClassExpression128,PgSelect129,First131,PgSelectRows132,PgSelectSingle133,PgClassExpression196,PgClassExpression197,PgClassExpression198,PgSelect199,First201,PgSelectRows202,PgSelectSingle203,PgClassExpression266,PgClassExpression267,PgSelect268,First270,PgSelectRows271,PgSelectSingle272,PgClassExpression335,PgSelect336,First338,PgSelectRows339,PgSelectSingle340,PgClassExpression403,PgClassExpression404 bucket5 - Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 43, 53, 42, 41, 52, 60, 61, 62, 63, 64
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 44, 54, 66, 79, 91, 102
2: 49, 57, 69, 82, 94, 105
ᐳ: 48, 50, 56, 58, 65, 68, 70, 76, 77, 78, 81, 83, 89, 90, 93, 95, 101, 104, 106, 112, 113"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgClassExpression65,PgSelect66,First68,PgSelectRows69,PgSelectSingle70,PgClassExpression76,PgClassExpression77,PgClassExpression78,PgSelect79,First81,PgSelectRows82,PgSelectSingle83,PgClassExpression89,PgClassExpression90,PgSelect91,First93,PgSelectRows94,PgSelectSingle95,PgClassExpression101,PgSelect102,First104,PgSelectRows105,PgSelectSingle106,PgClassExpression112,PgClassExpression113 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 58

ROOT PgSelectSingle{6}ᐸpeopleᐳ[58]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression59 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 121

ROOT PgSelectSingle{5}ᐸpeopleᐳ[121]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression122 bucket8 + class Bucket5,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgClassExpression59,PgClassExpression65,PgSelect66,First68,PgSelectRows69,PgSelectSingle70,PgClassExpression76,PgClassExpression77,PgClassExpression78,PgSelect79,First81,PgSelectRows82,PgSelectSingle83,PgClassExpression89,PgClassExpression90,PgSelect91,First93,PgSelectRows94,PgSelectSingle95,PgClassExpression101,PgSelect102,First104,PgSelectRows105,PgSelectSingle106,PgClassExpression112,PgClassExpression113 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket8 - Bucket6 --> Bucket7 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more.deopt.mermaid index bca7a32b2b..3f62068c8d 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more.deopt.mermaid @@ -21,178 +21,178 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸrelational_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgPolymorphic26{{"PgPolymorphic[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgPolymorphic26{{"PgPolymorphic[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle24 & PgClassExpression25 --> PgPolymorphic26 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 PgSelectSingle24 --> PgClassExpression25 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression27 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__relation...parent_id”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ__relation...parent_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression35 - PgClassExpression106{{"PgClassExpression[106∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression106{{"PgClassExpression[106∈3]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression106 - PgClassExpression107{{"PgClassExpression[107∈4]
ᐸ__relation...author_id”ᐳ"}}:::plan + PgClassExpression107{{"PgClassExpression[107∈3]
ᐸ__relation...author_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression107 - PgClassExpression114{{"PgClassExpression[114∈4]
ᐸ__relation...”position”ᐳ"}}:::plan + PgClassExpression114{{"PgClassExpression[114∈3]
ᐸ__relation...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression114 - PgClassExpression115{{"PgClassExpression[115∈4]
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgClassExpression115{{"PgClassExpression[115∈3]
ᐸ__relation...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression115 - PgClassExpression116{{"PgClassExpression[116∈4]
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgClassExpression116{{"PgClassExpression[116∈3]
ᐸ__relation...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression116 - PgClassExpression117{{"PgClassExpression[117∈4]
ᐸ__relation..._archived”ᐳ"}}:::plan + PgClassExpression117{{"PgClassExpression[117∈3]
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression117 - PgClassExpression118{{"PgClassExpression[118∈4]
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgClassExpression118{{"PgClassExpression[118∈3]
ᐸ__relation...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression118 - PgSelect28[["PgSelect[28∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgSelect28[["PgSelect[28∈4]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan Object9 & PgClassExpression27 --> PgSelect28 - PgSelect36[["PgSelect[36∈5]
ᐸrelational_itemsᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan + PgSelect36[["PgSelect[36∈4]
ᐸrelational_itemsᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression35 --> PgSelect36 - PgPolymorphic42{{"PgPolymorphic[42∈5]
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan - PgSelectSingle40{{"PgSelectSingle[40∈5]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPost
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDivider
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan + PgPolymorphic42{{"PgPolymorphic[42∈4]
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + PgSelectSingle40{{"PgSelectSingle[40∈4]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPost
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDivider
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan PgSelectSingle40 & PgClassExpression41 --> PgPolymorphic42 - PgSelect108[["PgSelect[108∈5]
ᐸpeopleᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan + PgSelect108[["PgSelect[108∈4]
ᐸpeopleᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression107 --> PgSelect108 - PgSelect119[["PgSelect[119∈5]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + PgSelect119[["PgSelect[119∈4]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan Object9 & PgClassExpression27 --> PgSelect119 - PgSelect186[["PgSelect[186∈5]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + PgSelect186[["PgSelect[186∈4]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan Object9 & PgClassExpression27 --> PgSelect186 - PgSelect253[["PgSelect[253∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + PgSelect253[["PgSelect[253∈4]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression27 --> PgSelect253 - PgSelect320[["PgSelect[320∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + PgSelect320[["PgSelect[320∈4]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression27 --> PgSelect320 - First32{{"First[32∈5]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈5]"]]:::plan + First32{{"First[32∈4]"}}:::plan + PgSelectRows33[["PgSelectRows[33∈4]"]]:::plan PgSelectRows33 --> First32 PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈5]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle34{{"PgSelectSingle[34∈4]
ᐸrelational_topicsᐳ"}}:::plan First32 --> PgSelectSingle34 - First38{{"First[38∈5]"}}:::plan - PgSelectRows39[["PgSelectRows[39∈5]"]]:::plan + First38{{"First[38∈4]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈4]"]]:::plan PgSelectRows39 --> First38 PgSelect36 --> PgSelectRows39 First38 --> PgSelectSingle40 PgSelectSingle40 --> PgClassExpression41 - PgClassExpression43{{"PgClassExpression[43∈5]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression43 - PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression52{{"PgClassExpression[52∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__relation...author_id”ᐳ"}}:::plan + PgClassExpression53{{"PgClassExpression[53∈4]
ᐸ__relation...author_id”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression53 - PgClassExpression60{{"PgClassExpression[60∈5]
ᐸ__relation...”position”ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈4]
ᐸ__relation...”position”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression60 - PgClassExpression61{{"PgClassExpression[61∈5]
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈4]
ᐸ__relation...reated_at”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression61 - PgClassExpression62{{"PgClassExpression[62∈5]
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgClassExpression62{{"PgClassExpression[62∈4]
ᐸ__relation...pdated_at”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression62 - PgClassExpression63{{"PgClassExpression[63∈5]
ᐸ__relation..._archived”ᐳ"}}:::plan + PgClassExpression63{{"PgClassExpression[63∈4]
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression63 - PgClassExpression64{{"PgClassExpression[64∈5]
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgClassExpression64{{"PgClassExpression[64∈4]
ᐸ__relation...chived_at”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression64 - First110{{"First[110∈5]"}}:::plan - PgSelectRows111[["PgSelectRows[111∈5]"]]:::plan + First110{{"First[110∈4]"}}:::plan + PgSelectRows111[["PgSelectRows[111∈4]"]]:::plan PgSelectRows111 --> First110 PgSelect108 --> PgSelectRows111 - PgSelectSingle112{{"PgSelectSingle[112∈5]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle112{{"PgSelectSingle[112∈4]
ᐸpeopleᐳ"}}:::plan First110 --> PgSelectSingle112 - First121{{"First[121∈5]"}}:::plan - PgSelectRows122[["PgSelectRows[122∈5]"]]:::plan + PgClassExpression113{{"PgClassExpression[113∈4]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression113 + First121{{"First[121∈4]"}}:::plan + PgSelectRows122[["PgSelectRows[122∈4]"]]:::plan PgSelectRows122 --> First121 PgSelect119 --> PgSelectRows122 - PgSelectSingle123{{"PgSelectSingle[123∈5]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle123{{"PgSelectSingle[123∈4]
ᐸrelational_postsᐳ"}}:::plan First121 --> PgSelectSingle123 - First188{{"First[188∈5]"}}:::plan - PgSelectRows189[["PgSelectRows[189∈5]"]]:::plan + First188{{"First[188∈4]"}}:::plan + PgSelectRows189[["PgSelectRows[189∈4]"]]:::plan PgSelectRows189 --> First188 PgSelect186 --> PgSelectRows189 - PgSelectSingle190{{"PgSelectSingle[190∈5]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle190{{"PgSelectSingle[190∈4]
ᐸrelational_dividersᐳ"}}:::plan First188 --> PgSelectSingle190 - First255{{"First[255∈5]"}}:::plan - PgSelectRows256[["PgSelectRows[256∈5]"]]:::plan + First255{{"First[255∈4]"}}:::plan + PgSelectRows256[["PgSelectRows[256∈4]"]]:::plan PgSelectRows256 --> First255 PgSelect253 --> PgSelectRows256 - PgSelectSingle257{{"PgSelectSingle[257∈5]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle257{{"PgSelectSingle[257∈4]
ᐸrelational_checklistsᐳ"}}:::plan First255 --> PgSelectSingle257 - First322{{"First[322∈5]"}}:::plan - PgSelectRows323[["PgSelectRows[323∈5]"]]:::plan + First322{{"First[322∈4]"}}:::plan + PgSelectRows323[["PgSelectRows[323∈4]"]]:::plan PgSelectRows323 --> First322 PgSelect320 --> PgSelectRows323 - PgSelectSingle324{{"PgSelectSingle[324∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle324{{"PgSelectSingle[324∈4]
ᐸrelational_checklist_itemsᐳ"}}:::plan First322 --> PgSelectSingle324 - PgSelect44[["PgSelect[44∈6]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan + PgSelect44[["PgSelect[44∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan Object9 & PgClassExpression43 --> PgSelect44 - PgSelect54[["PgSelect[54∈6]
ᐸpeopleᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan + PgSelect54[["PgSelect[54∈5]
ᐸpeopleᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression53 --> PgSelect54 - PgSelect65[["PgSelect[65∈6]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalPostᐳRelationalPost
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan + PgSelect65[["PgSelect[65∈5]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalPostᐳRelationalPost
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan Object9 & PgClassExpression43 --> PgSelect65 - PgSelect75[["PgSelect[75∈6]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan + PgSelect75[["PgSelect[75∈5]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan Object9 & PgClassExpression43 --> PgSelect75 - PgSelect85[["PgSelect[85∈6]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan + PgSelect85[["PgSelect[85∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression43 --> PgSelect85 - PgSelect95[["PgSelect[95∈6]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan + PgSelect95[["PgSelect[95∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression43 --> PgSelect95 - First48{{"First[48∈6]"}}:::plan - PgSelectRows49[["PgSelectRows[49∈6]"]]:::plan + First48{{"First[48∈5]"}}:::plan + PgSelectRows49[["PgSelectRows[49∈5]"]]:::plan PgSelectRows49 --> First48 PgSelect44 --> PgSelectRows49 - PgSelectSingle50{{"PgSelectSingle[50∈6]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle50{{"PgSelectSingle[50∈5]
ᐸrelational_topicsᐳ"}}:::plan First48 --> PgSelectSingle50 - First56{{"First[56∈6]"}}:::plan - PgSelectRows57[["PgSelectRows[57∈6]"]]:::plan + First56{{"First[56∈5]"}}:::plan + PgSelectRows57[["PgSelectRows[57∈5]"]]:::plan PgSelectRows57 --> First56 PgSelect54 --> PgSelectRows57 - PgSelectSingle58{{"PgSelectSingle[58∈6]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle58{{"PgSelectSingle[58∈5]
ᐸpeopleᐳ"}}:::plan First56 --> PgSelectSingle58 - First67{{"First[67∈6]"}}:::plan - PgSelectRows68[["PgSelectRows[68∈6]"]]:::plan + PgClassExpression59{{"PgClassExpression[59∈5]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression59 + First67{{"First[67∈5]"}}:::plan + PgSelectRows68[["PgSelectRows[68∈5]"]]:::plan PgSelectRows68 --> First67 PgSelect65 --> PgSelectRows68 - PgSelectSingle69{{"PgSelectSingle[69∈6]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle69{{"PgSelectSingle[69∈5]
ᐸrelational_postsᐳ"}}:::plan First67 --> PgSelectSingle69 - First77{{"First[77∈6]"}}:::plan - PgSelectRows78[["PgSelectRows[78∈6]"]]:::plan + First77{{"First[77∈5]"}}:::plan + PgSelectRows78[["PgSelectRows[78∈5]"]]:::plan PgSelectRows78 --> First77 PgSelect75 --> PgSelectRows78 - PgSelectSingle79{{"PgSelectSingle[79∈6]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle79{{"PgSelectSingle[79∈5]
ᐸrelational_dividersᐳ"}}:::plan First77 --> PgSelectSingle79 - First87{{"First[87∈6]"}}:::plan - PgSelectRows88[["PgSelectRows[88∈6]"]]:::plan + First87{{"First[87∈5]"}}:::plan + PgSelectRows88[["PgSelectRows[88∈5]"]]:::plan PgSelectRows88 --> First87 PgSelect85 --> PgSelectRows88 - PgSelectSingle89{{"PgSelectSingle[89∈6]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle89{{"PgSelectSingle[89∈5]
ᐸrelational_checklistsᐳ"}}:::plan First87 --> PgSelectSingle89 - First97{{"First[97∈6]"}}:::plan - PgSelectRows98[["PgSelectRows[98∈6]"]]:::plan + First97{{"First[97∈5]"}}:::plan + PgSelectRows98[["PgSelectRows[98∈5]"]]:::plan PgSelectRows98 --> First97 PgSelect95 --> PgSelectRows98 - PgSelectSingle99{{"PgSelectSingle[99∈6]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle99{{"PgSelectSingle[99∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan First97 --> PgSelectSingle99 - PgClassExpression59{{"PgClassExpression[59∈7]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle58 --> PgClassExpression59 - PgClassExpression113{{"PgClassExpression[113∈8]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle112 --> PgClassExpression113 %% define steps @@ -200,34 +200,23 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸrelational_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸrelational_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression35,PgClassExpression106,PgClassExpression107,PgClassExpression114,PgClassExpression115,PgClassExpression116,PgClassExpression117,PgClassExpression118 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 35, 107, 26, 25, 106, 114, 115, 116, 117, 118
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 36, 108, 119, 186, 253, 320
2: 33, 39, 111, 122, 189, 256, 323
ᐳ: 32, 34, 38, 40, 41, 42, 43, 52, 53, 60, 61, 62, 63, 64, 110, 112, 113, 121, 123, 188, 190, 255, 257, 322, 324"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression35,PgClassExpression106,PgClassExpression107,PgClassExpression114,PgClassExpression115,PgClassExpression116,PgClassExpression117,PgClassExpression118 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 35, 107, 26, 25, 106, 114, 115, 116, 117, 118
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 36, 108, 119, 186, 253, 320
2: 33, 39, 111, 122, 189, 256, 323
ᐳ: 32, 34, 38, 40, 41, 42, 43, 52, 53, 60, 61, 62, 63, 64, 110, 112, 121, 123, 188, 190, 255, 257, 322, 324"):::bucket + class Bucket4,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgPolymorphic42,PgClassExpression43,PgClassExpression52,PgClassExpression53,PgClassExpression60,PgClassExpression61,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgSelect108,First110,PgSelectRows111,PgSelectSingle112,PgClassExpression113,PgSelect119,First121,PgSelectRows122,PgSelectSingle123,PgSelect186,First188,PgSelectRows189,PgSelectSingle190,PgSelect253,First255,PgSelectRows256,PgSelectSingle257,PgSelect320,First322,PgSelectRows323,PgSelectSingle324 bucket4 + Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 43, 53, 42, 41, 52, 60, 61, 62, 63, 64
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 44, 54, 65, 75, 85, 95
2: 49, 57, 68, 78, 88, 98
ᐳ: 48, 50, 56, 58, 59, 67, 69, 77, 79, 87, 89, 97, 99"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgPolymorphic42,PgClassExpression43,PgClassExpression52,PgClassExpression53,PgClassExpression60,PgClassExpression61,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgSelect108,First110,PgSelectRows111,PgSelectSingle112,PgSelect119,First121,PgSelectRows122,PgSelectSingle123,PgSelect186,First188,PgSelectRows189,PgSelectSingle190,PgSelect253,First255,PgSelectRows256,PgSelectSingle257,PgSelect320,First322,PgSelectRows323,PgSelectSingle324 bucket5 - Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 43, 53, 42, 41, 52, 60, 61, 62, 63, 64
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 44, 54, 65, 75, 85, 95
2: 49, 57, 68, 78, 88, 98
ᐳ: 48, 50, 56, 58, 67, 69, 77, 79, 87, 89, 97, 99"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgSelect65,First67,PgSelectRows68,PgSelectSingle69,PgSelect75,First77,PgSelectRows78,PgSelectSingle79,PgSelect85,First87,PgSelectRows88,PgSelectSingle89,PgSelect95,First97,PgSelectRows98,PgSelectSingle99 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 58

ROOT PgSelectSingle{6}ᐸpeopleᐳ[58]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression59 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 112

ROOT PgSelectSingle{5}ᐸpeopleᐳ[112]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression113 bucket8 + class Bucket5,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgClassExpression59,PgSelect65,First67,PgSelectRows68,PgSelectSingle69,PgSelect75,First77,PgSelectRows78,PgSelectSingle79,PgSelect85,First87,PgSelectRows88,PgSelectSingle89,PgSelect95,First97,PgSelectRows98,PgSelectSingle99 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket8 - Bucket6 --> Bucket7 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more.mermaid index bca7a32b2b..3f62068c8d 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested-more.mermaid @@ -21,178 +21,178 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸrelational_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgPolymorphic26{{"PgPolymorphic[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgPolymorphic26{{"PgPolymorphic[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle24 & PgClassExpression25 --> PgPolymorphic26 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 PgSelectSingle24 --> PgClassExpression25 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression27 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__relation...parent_id”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ__relation...parent_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression35 - PgClassExpression106{{"PgClassExpression[106∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression106{{"PgClassExpression[106∈3]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression106 - PgClassExpression107{{"PgClassExpression[107∈4]
ᐸ__relation...author_id”ᐳ"}}:::plan + PgClassExpression107{{"PgClassExpression[107∈3]
ᐸ__relation...author_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression107 - PgClassExpression114{{"PgClassExpression[114∈4]
ᐸ__relation...”position”ᐳ"}}:::plan + PgClassExpression114{{"PgClassExpression[114∈3]
ᐸ__relation...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression114 - PgClassExpression115{{"PgClassExpression[115∈4]
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgClassExpression115{{"PgClassExpression[115∈3]
ᐸ__relation...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression115 - PgClassExpression116{{"PgClassExpression[116∈4]
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgClassExpression116{{"PgClassExpression[116∈3]
ᐸ__relation...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression116 - PgClassExpression117{{"PgClassExpression[117∈4]
ᐸ__relation..._archived”ᐳ"}}:::plan + PgClassExpression117{{"PgClassExpression[117∈3]
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression117 - PgClassExpression118{{"PgClassExpression[118∈4]
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgClassExpression118{{"PgClassExpression[118∈3]
ᐸ__relation...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression118 - PgSelect28[["PgSelect[28∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgSelect28[["PgSelect[28∈4]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan Object9 & PgClassExpression27 --> PgSelect28 - PgSelect36[["PgSelect[36∈5]
ᐸrelational_itemsᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan + PgSelect36[["PgSelect[36∈4]
ᐸrelational_itemsᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression35 --> PgSelect36 - PgPolymorphic42{{"PgPolymorphic[42∈5]
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan - PgSelectSingle40{{"PgSelectSingle[40∈5]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPost
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDivider
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan + PgPolymorphic42{{"PgPolymorphic[42∈4]
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + PgSelectSingle40{{"PgSelectSingle[40∈4]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPost
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDivider
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan PgSelectSingle40 & PgClassExpression41 --> PgPolymorphic42 - PgSelect108[["PgSelect[108∈5]
ᐸpeopleᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan + PgSelect108[["PgSelect[108∈4]
ᐸpeopleᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression107 --> PgSelect108 - PgSelect119[["PgSelect[119∈5]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + PgSelect119[["PgSelect[119∈4]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan Object9 & PgClassExpression27 --> PgSelect119 - PgSelect186[["PgSelect[186∈5]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + PgSelect186[["PgSelect[186∈4]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan Object9 & PgClassExpression27 --> PgSelect186 - PgSelect253[["PgSelect[253∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + PgSelect253[["PgSelect[253∈4]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression27 --> PgSelect253 - PgSelect320[["PgSelect[320∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + PgSelect320[["PgSelect[320∈4]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression27 --> PgSelect320 - First32{{"First[32∈5]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈5]"]]:::plan + First32{{"First[32∈4]"}}:::plan + PgSelectRows33[["PgSelectRows[33∈4]"]]:::plan PgSelectRows33 --> First32 PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈5]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle34{{"PgSelectSingle[34∈4]
ᐸrelational_topicsᐳ"}}:::plan First32 --> PgSelectSingle34 - First38{{"First[38∈5]"}}:::plan - PgSelectRows39[["PgSelectRows[39∈5]"]]:::plan + First38{{"First[38∈4]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈4]"]]:::plan PgSelectRows39 --> First38 PgSelect36 --> PgSelectRows39 First38 --> PgSelectSingle40 PgSelectSingle40 --> PgClassExpression41 - PgClassExpression43{{"PgClassExpression[43∈5]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression43 - PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression52{{"PgClassExpression[52∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__relation...author_id”ᐳ"}}:::plan + PgClassExpression53{{"PgClassExpression[53∈4]
ᐸ__relation...author_id”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression53 - PgClassExpression60{{"PgClassExpression[60∈5]
ᐸ__relation...”position”ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈4]
ᐸ__relation...”position”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression60 - PgClassExpression61{{"PgClassExpression[61∈5]
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgClassExpression61{{"PgClassExpression[61∈4]
ᐸ__relation...reated_at”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression61 - PgClassExpression62{{"PgClassExpression[62∈5]
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgClassExpression62{{"PgClassExpression[62∈4]
ᐸ__relation...pdated_at”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression62 - PgClassExpression63{{"PgClassExpression[63∈5]
ᐸ__relation..._archived”ᐳ"}}:::plan + PgClassExpression63{{"PgClassExpression[63∈4]
ᐸ__relation..._archived”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression63 - PgClassExpression64{{"PgClassExpression[64∈5]
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgClassExpression64{{"PgClassExpression[64∈4]
ᐸ__relation...chived_at”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression64 - First110{{"First[110∈5]"}}:::plan - PgSelectRows111[["PgSelectRows[111∈5]"]]:::plan + First110{{"First[110∈4]"}}:::plan + PgSelectRows111[["PgSelectRows[111∈4]"]]:::plan PgSelectRows111 --> First110 PgSelect108 --> PgSelectRows111 - PgSelectSingle112{{"PgSelectSingle[112∈5]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle112{{"PgSelectSingle[112∈4]
ᐸpeopleᐳ"}}:::plan First110 --> PgSelectSingle112 - First121{{"First[121∈5]"}}:::plan - PgSelectRows122[["PgSelectRows[122∈5]"]]:::plan + PgClassExpression113{{"PgClassExpression[113∈4]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression113 + First121{{"First[121∈4]"}}:::plan + PgSelectRows122[["PgSelectRows[122∈4]"]]:::plan PgSelectRows122 --> First121 PgSelect119 --> PgSelectRows122 - PgSelectSingle123{{"PgSelectSingle[123∈5]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle123{{"PgSelectSingle[123∈4]
ᐸrelational_postsᐳ"}}:::plan First121 --> PgSelectSingle123 - First188{{"First[188∈5]"}}:::plan - PgSelectRows189[["PgSelectRows[189∈5]"]]:::plan + First188{{"First[188∈4]"}}:::plan + PgSelectRows189[["PgSelectRows[189∈4]"]]:::plan PgSelectRows189 --> First188 PgSelect186 --> PgSelectRows189 - PgSelectSingle190{{"PgSelectSingle[190∈5]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle190{{"PgSelectSingle[190∈4]
ᐸrelational_dividersᐳ"}}:::plan First188 --> PgSelectSingle190 - First255{{"First[255∈5]"}}:::plan - PgSelectRows256[["PgSelectRows[256∈5]"]]:::plan + First255{{"First[255∈4]"}}:::plan + PgSelectRows256[["PgSelectRows[256∈4]"]]:::plan PgSelectRows256 --> First255 PgSelect253 --> PgSelectRows256 - PgSelectSingle257{{"PgSelectSingle[257∈5]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle257{{"PgSelectSingle[257∈4]
ᐸrelational_checklistsᐳ"}}:::plan First255 --> PgSelectSingle257 - First322{{"First[322∈5]"}}:::plan - PgSelectRows323[["PgSelectRows[323∈5]"]]:::plan + First322{{"First[322∈4]"}}:::plan + PgSelectRows323[["PgSelectRows[323∈4]"]]:::plan PgSelectRows323 --> First322 PgSelect320 --> PgSelectRows323 - PgSelectSingle324{{"PgSelectSingle[324∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle324{{"PgSelectSingle[324∈4]
ᐸrelational_checklist_itemsᐳ"}}:::plan First322 --> PgSelectSingle324 - PgSelect44[["PgSelect[44∈6]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan + PgSelect44[["PgSelect[44∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan Object9 & PgClassExpression43 --> PgSelect44 - PgSelect54[["PgSelect[54∈6]
ᐸpeopleᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan + PgSelect54[["PgSelect[54∈5]
ᐸpeopleᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression53 --> PgSelect54 - PgSelect65[["PgSelect[65∈6]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalPostᐳRelationalPost
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan + PgSelect65[["PgSelect[65∈5]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalPostᐳRelationalPost
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan Object9 & PgClassExpression43 --> PgSelect65 - PgSelect75[["PgSelect[75∈6]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan + PgSelect75[["PgSelect[75∈5]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan Object9 & PgClassExpression43 --> PgSelect75 - PgSelect85[["PgSelect[85∈6]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan + PgSelect85[["PgSelect[85∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression43 --> PgSelect85 - PgSelect95[["PgSelect[95∈6]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan + PgSelect95[["PgSelect[95∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression43 --> PgSelect95 - First48{{"First[48∈6]"}}:::plan - PgSelectRows49[["PgSelectRows[49∈6]"]]:::plan + First48{{"First[48∈5]"}}:::plan + PgSelectRows49[["PgSelectRows[49∈5]"]]:::plan PgSelectRows49 --> First48 PgSelect44 --> PgSelectRows49 - PgSelectSingle50{{"PgSelectSingle[50∈6]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle50{{"PgSelectSingle[50∈5]
ᐸrelational_topicsᐳ"}}:::plan First48 --> PgSelectSingle50 - First56{{"First[56∈6]"}}:::plan - PgSelectRows57[["PgSelectRows[57∈6]"]]:::plan + First56{{"First[56∈5]"}}:::plan + PgSelectRows57[["PgSelectRows[57∈5]"]]:::plan PgSelectRows57 --> First56 PgSelect54 --> PgSelectRows57 - PgSelectSingle58{{"PgSelectSingle[58∈6]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle58{{"PgSelectSingle[58∈5]
ᐸpeopleᐳ"}}:::plan First56 --> PgSelectSingle58 - First67{{"First[67∈6]"}}:::plan - PgSelectRows68[["PgSelectRows[68∈6]"]]:::plan + PgClassExpression59{{"PgClassExpression[59∈5]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression59 + First67{{"First[67∈5]"}}:::plan + PgSelectRows68[["PgSelectRows[68∈5]"]]:::plan PgSelectRows68 --> First67 PgSelect65 --> PgSelectRows68 - PgSelectSingle69{{"PgSelectSingle[69∈6]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle69{{"PgSelectSingle[69∈5]
ᐸrelational_postsᐳ"}}:::plan First67 --> PgSelectSingle69 - First77{{"First[77∈6]"}}:::plan - PgSelectRows78[["PgSelectRows[78∈6]"]]:::plan + First77{{"First[77∈5]"}}:::plan + PgSelectRows78[["PgSelectRows[78∈5]"]]:::plan PgSelectRows78 --> First77 PgSelect75 --> PgSelectRows78 - PgSelectSingle79{{"PgSelectSingle[79∈6]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle79{{"PgSelectSingle[79∈5]
ᐸrelational_dividersᐳ"}}:::plan First77 --> PgSelectSingle79 - First87{{"First[87∈6]"}}:::plan - PgSelectRows88[["PgSelectRows[88∈6]"]]:::plan + First87{{"First[87∈5]"}}:::plan + PgSelectRows88[["PgSelectRows[88∈5]"]]:::plan PgSelectRows88 --> First87 PgSelect85 --> PgSelectRows88 - PgSelectSingle89{{"PgSelectSingle[89∈6]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle89{{"PgSelectSingle[89∈5]
ᐸrelational_checklistsᐳ"}}:::plan First87 --> PgSelectSingle89 - First97{{"First[97∈6]"}}:::plan - PgSelectRows98[["PgSelectRows[98∈6]"]]:::plan + First97{{"First[97∈5]"}}:::plan + PgSelectRows98[["PgSelectRows[98∈5]"]]:::plan PgSelectRows98 --> First97 PgSelect95 --> PgSelectRows98 - PgSelectSingle99{{"PgSelectSingle[99∈6]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle99{{"PgSelectSingle[99∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan First97 --> PgSelectSingle99 - PgClassExpression59{{"PgClassExpression[59∈7]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle58 --> PgClassExpression59 - PgClassExpression113{{"PgClassExpression[113∈8]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle112 --> PgClassExpression113 %% define steps @@ -200,34 +200,23 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸrelational_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸrelational_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression35,PgClassExpression106,PgClassExpression107,PgClassExpression114,PgClassExpression115,PgClassExpression116,PgClassExpression117,PgClassExpression118 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 35, 107, 26, 25, 106, 114, 115, 116, 117, 118
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 36, 108, 119, 186, 253, 320
2: 33, 39, 111, 122, 189, 256, 323
ᐳ: 32, 34, 38, 40, 41, 42, 43, 52, 53, 60, 61, 62, 63, 64, 110, 112, 113, 121, 123, 188, 190, 255, 257, 322, 324"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression35,PgClassExpression106,PgClassExpression107,PgClassExpression114,PgClassExpression115,PgClassExpression116,PgClassExpression117,PgClassExpression118 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 35, 107, 26, 25, 106, 114, 115, 116, 117, 118
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 36, 108, 119, 186, 253, 320
2: 33, 39, 111, 122, 189, 256, 323
ᐳ: 32, 34, 38, 40, 41, 42, 43, 52, 53, 60, 61, 62, 63, 64, 110, 112, 121, 123, 188, 190, 255, 257, 322, 324"):::bucket + class Bucket4,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgPolymorphic42,PgClassExpression43,PgClassExpression52,PgClassExpression53,PgClassExpression60,PgClassExpression61,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgSelect108,First110,PgSelectRows111,PgSelectSingle112,PgClassExpression113,PgSelect119,First121,PgSelectRows122,PgSelectSingle123,PgSelect186,First188,PgSelectRows189,PgSelectSingle190,PgSelect253,First255,PgSelectRows256,PgSelectSingle257,PgSelect320,First322,PgSelectRows323,PgSelectSingle324 bucket4 + Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 43, 53, 42, 41, 52, 60, 61, 62, 63, 64
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 44, 54, 65, 75, 85, 95
2: 49, 57, 68, 78, 88, 98
ᐳ: 48, 50, 56, 58, 59, 67, 69, 77, 79, 87, 89, 97, 99"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgPolymorphic42,PgClassExpression43,PgClassExpression52,PgClassExpression53,PgClassExpression60,PgClassExpression61,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgSelect108,First110,PgSelectRows111,PgSelectSingle112,PgSelect119,First121,PgSelectRows122,PgSelectSingle123,PgSelect186,First188,PgSelectRows189,PgSelectSingle190,PgSelect253,First255,PgSelectRows256,PgSelectSingle257,PgSelect320,First322,PgSelectRows323,PgSelectSingle324 bucket5 - Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 43, 53, 42, 41, 52, 60, 61, 62, 63, 64
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 44, 54, 65, 75, 85, 95
2: 49, 57, 68, 78, 88, 98
ᐳ: 48, 50, 56, 58, 67, 69, 77, 79, 87, 89, 97, 99"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgSelect65,First67,PgSelectRows68,PgSelectSingle69,PgSelect75,First77,PgSelectRows78,PgSelectSingle79,PgSelect85,First87,PgSelectRows88,PgSelectSingle89,PgSelect95,First97,PgSelectRows98,PgSelectSingle99 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 58

ROOT PgSelectSingle{6}ᐸpeopleᐳ[58]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression59 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 112

ROOT PgSelectSingle{5}ᐸpeopleᐳ[112]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression113 bucket8 + class Bucket5,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgClassExpression59,PgSelect65,First67,PgSelectRows68,PgSelectSingle69,PgSelect75,First77,PgSelectRows78,PgSelectSingle79,PgSelect85,First87,PgSelectRows88,PgSelectSingle89,PgSelect95,First97,PgSelectRows98,PgSelectSingle99 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket8 - Bucket6 --> Bucket7 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested.deopt.mermaid index 7131554b44..d89dad374c 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested.deopt.mermaid @@ -21,133 +21,133 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸrelational_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgPolymorphic26{{"PgPolymorphic[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgPolymorphic26{{"PgPolymorphic[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle24 & PgClassExpression25 --> PgPolymorphic26 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 PgSelectSingle24 --> PgClassExpression25 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression27 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__relation...parent_id”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ__relation...parent_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression35 - PgClassExpression74{{"PgClassExpression[74∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression74{{"PgClassExpression[74∈3]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression74 - PgSelect28[["PgSelect[28∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgSelect28[["PgSelect[28∈4]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan Object9 & PgClassExpression27 --> PgSelect28 - PgSelect36[["PgSelect[36∈5]
ᐸrelational_itemsᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan + PgSelect36[["PgSelect[36∈4]
ᐸrelational_itemsᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression35 --> PgSelect36 - PgPolymorphic42{{"PgPolymorphic[42∈5]
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan - PgSelectSingle40{{"PgSelectSingle[40∈5]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPost
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDivider
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan + PgPolymorphic42{{"PgPolymorphic[42∈4]
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + PgSelectSingle40{{"PgSelectSingle[40∈4]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPost
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDivider
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan PgSelectSingle40 & PgClassExpression41 --> PgPolymorphic42 - PgSelect75[["PgSelect[75∈5]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + PgSelect75[["PgSelect[75∈4]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan Object9 & PgClassExpression27 --> PgSelect75 - PgSelect112[["PgSelect[112∈5]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + PgSelect112[["PgSelect[112∈4]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan Object9 & PgClassExpression27 --> PgSelect112 - PgSelect149[["PgSelect[149∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + PgSelect149[["PgSelect[149∈4]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression27 --> PgSelect149 - PgSelect186[["PgSelect[186∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + PgSelect186[["PgSelect[186∈4]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression27 --> PgSelect186 - First32{{"First[32∈5]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈5]"]]:::plan + First32{{"First[32∈4]"}}:::plan + PgSelectRows33[["PgSelectRows[33∈4]"]]:::plan PgSelectRows33 --> First32 PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈5]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle34{{"PgSelectSingle[34∈4]
ᐸrelational_topicsᐳ"}}:::plan First32 --> PgSelectSingle34 - First38{{"First[38∈5]"}}:::plan - PgSelectRows39[["PgSelectRows[39∈5]"]]:::plan + First38{{"First[38∈4]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈4]"]]:::plan PgSelectRows39 --> First38 PgSelect36 --> PgSelectRows39 First38 --> PgSelectSingle40 PgSelectSingle40 --> PgClassExpression41 - PgClassExpression43{{"PgClassExpression[43∈5]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression43 - PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression52{{"PgClassExpression[52∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression52 - First77{{"First[77∈5]"}}:::plan - PgSelectRows78[["PgSelectRows[78∈5]"]]:::plan + First77{{"First[77∈4]"}}:::plan + PgSelectRows78[["PgSelectRows[78∈4]"]]:::plan PgSelectRows78 --> First77 PgSelect75 --> PgSelectRows78 - PgSelectSingle79{{"PgSelectSingle[79∈5]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle79{{"PgSelectSingle[79∈4]
ᐸrelational_postsᐳ"}}:::plan First77 --> PgSelectSingle79 - First114{{"First[114∈5]"}}:::plan - PgSelectRows115[["PgSelectRows[115∈5]"]]:::plan + First114{{"First[114∈4]"}}:::plan + PgSelectRows115[["PgSelectRows[115∈4]"]]:::plan PgSelectRows115 --> First114 PgSelect112 --> PgSelectRows115 - PgSelectSingle116{{"PgSelectSingle[116∈5]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle116{{"PgSelectSingle[116∈4]
ᐸrelational_dividersᐳ"}}:::plan First114 --> PgSelectSingle116 - First151{{"First[151∈5]"}}:::plan - PgSelectRows152[["PgSelectRows[152∈5]"]]:::plan + First151{{"First[151∈4]"}}:::plan + PgSelectRows152[["PgSelectRows[152∈4]"]]:::plan PgSelectRows152 --> First151 PgSelect149 --> PgSelectRows152 - PgSelectSingle153{{"PgSelectSingle[153∈5]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle153{{"PgSelectSingle[153∈4]
ᐸrelational_checklistsᐳ"}}:::plan First151 --> PgSelectSingle153 - First188{{"First[188∈5]"}}:::plan - PgSelectRows189[["PgSelectRows[189∈5]"]]:::plan + First188{{"First[188∈4]"}}:::plan + PgSelectRows189[["PgSelectRows[189∈4]"]]:::plan PgSelectRows189 --> First188 PgSelect186 --> PgSelectRows189 - PgSelectSingle190{{"PgSelectSingle[190∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle190{{"PgSelectSingle[190∈4]
ᐸrelational_checklist_itemsᐳ"}}:::plan First188 --> PgSelectSingle190 - PgSelect44[["PgSelect[44∈6]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan + PgSelect44[["PgSelect[44∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan Object9 & PgClassExpression43 --> PgSelect44 - PgSelect53[["PgSelect[53∈6]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalPostᐳRelationalPost
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan + PgSelect53[["PgSelect[53∈5]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalPostᐳRelationalPost
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan Object9 & PgClassExpression43 --> PgSelect53 - PgSelect58[["PgSelect[58∈6]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan + PgSelect58[["PgSelect[58∈5]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan Object9 & PgClassExpression43 --> PgSelect58 - PgSelect63[["PgSelect[63∈6]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan + PgSelect63[["PgSelect[63∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression43 --> PgSelect63 - PgSelect68[["PgSelect[68∈6]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan + PgSelect68[["PgSelect[68∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression43 --> PgSelect68 - First48{{"First[48∈6]"}}:::plan - PgSelectRows49[["PgSelectRows[49∈6]"]]:::plan + First48{{"First[48∈5]"}}:::plan + PgSelectRows49[["PgSelectRows[49∈5]"]]:::plan PgSelectRows49 --> First48 PgSelect44 --> PgSelectRows49 - PgSelectSingle50{{"PgSelectSingle[50∈6]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle50{{"PgSelectSingle[50∈5]
ᐸrelational_topicsᐳ"}}:::plan First48 --> PgSelectSingle50 - First55{{"First[55∈6]"}}:::plan - PgSelectRows56[["PgSelectRows[56∈6]"]]:::plan + First55{{"First[55∈5]"}}:::plan + PgSelectRows56[["PgSelectRows[56∈5]"]]:::plan PgSelectRows56 --> First55 PgSelect53 --> PgSelectRows56 - PgSelectSingle57{{"PgSelectSingle[57∈6]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle57{{"PgSelectSingle[57∈5]
ᐸrelational_postsᐳ"}}:::plan First55 --> PgSelectSingle57 - First60{{"First[60∈6]"}}:::plan - PgSelectRows61[["PgSelectRows[61∈6]"]]:::plan + First60{{"First[60∈5]"}}:::plan + PgSelectRows61[["PgSelectRows[61∈5]"]]:::plan PgSelectRows61 --> First60 PgSelect58 --> PgSelectRows61 - PgSelectSingle62{{"PgSelectSingle[62∈6]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle62{{"PgSelectSingle[62∈5]
ᐸrelational_dividersᐳ"}}:::plan First60 --> PgSelectSingle62 - First65{{"First[65∈6]"}}:::plan - PgSelectRows66[["PgSelectRows[66∈6]"]]:::plan + First65{{"First[65∈5]"}}:::plan + PgSelectRows66[["PgSelectRows[66∈5]"]]:::plan PgSelectRows66 --> First65 PgSelect63 --> PgSelectRows66 - PgSelectSingle67{{"PgSelectSingle[67∈6]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle67{{"PgSelectSingle[67∈5]
ᐸrelational_checklistsᐳ"}}:::plan First65 --> PgSelectSingle67 - First70{{"First[70∈6]"}}:::plan - PgSelectRows71[["PgSelectRows[71∈6]"]]:::plan + First70{{"First[70∈5]"}}:::plan + PgSelectRows71[["PgSelectRows[71∈5]"]]:::plan PgSelectRows71 --> First70 PgSelect68 --> PgSelectRows71 - PgSelectSingle72{{"PgSelectSingle[72∈6]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle72{{"PgSelectSingle[72∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan First70 --> PgSelectSingle72 %% define steps @@ -156,27 +156,23 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸrelational_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸrelational_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression35,PgClassExpression74 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 35, 26, 25, 74
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 36, 75, 112, 149, 186
2: 33, 39, 78, 115, 152, 189
ᐳ: 32, 34, 38, 40, 41, 42, 43, 52, 77, 79, 114, 116, 151, 153, 188, 190"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression35,PgClassExpression74 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 35, 26, 25, 74
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 36, 75, 112, 149, 186
2: 33, 39, 78, 115, 152, 189
ᐳ: 32, 34, 38, 40, 41, 42, 43, 52, 77, 79, 114, 116, 151, 153, 188, 190"):::bucket + class Bucket4,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgPolymorphic42,PgClassExpression43,PgClassExpression52,PgSelect75,First77,PgSelectRows78,PgSelectSingle79,PgSelect112,First114,PgSelectRows115,PgSelectSingle116,PgSelect149,First151,PgSelectRows152,PgSelectSingle153,PgSelect186,First188,PgSelectRows189,PgSelectSingle190 bucket4 + Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 43, 42, 41, 52
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 44, 53, 58, 63, 68
2: 49, 56, 61, 66, 71
ᐳ: 48, 50, 55, 57, 60, 62, 65, 67, 70, 72"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgPolymorphic42,PgClassExpression43,PgClassExpression52,PgSelect75,First77,PgSelectRows78,PgSelectSingle79,PgSelect112,First114,PgSelectRows115,PgSelectSingle116,PgSelect149,First151,PgSelectRows152,PgSelectSingle153,PgSelect186,First188,PgSelectRows189,PgSelectSingle190 bucket5 - Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 43, 42, 41, 52
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 44, 53, 58, 63, 68
2: 49, 56, 61, 66, 71
ᐳ: 48, 50, 55, 57, 60, 62, 65, 67, 70, 72"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,PgSelect53,First55,PgSelectRows56,PgSelectSingle57,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgSelect63,First65,PgSelectRows66,PgSelectSingle67,PgSelect68,First70,PgSelectRows71,PgSelectSingle72 bucket6 + class Bucket5,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,PgSelect53,First55,PgSelectRows56,PgSelectSingle57,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgSelect63,First65,PgSelectRows66,PgSelectSingle67,PgSelect68,First70,PgSelectRows71,PgSelectSingle72 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested.mermaid index 7131554b44..d89dad374c 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/nested.mermaid @@ -21,133 +21,133 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸrelational_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgPolymorphic26{{"PgPolymorphic[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgPolymorphic26{{"PgPolymorphic[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle24 & PgClassExpression25 --> PgPolymorphic26 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 PgSelectSingle24 --> PgClassExpression25 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression27 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__relation...parent_id”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ__relation...parent_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression35 - PgClassExpression74{{"PgClassExpression[74∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression74{{"PgClassExpression[74∈3]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression74 - PgSelect28[["PgSelect[28∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgSelect28[["PgSelect[28∈4]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan Object9 & PgClassExpression27 --> PgSelect28 - PgSelect36[["PgSelect[36∈5]
ᐸrelational_itemsᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan + PgSelect36[["PgSelect[36∈4]
ᐸrelational_itemsᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression35 --> PgSelect36 - PgPolymorphic42{{"PgPolymorphic[42∈5]
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan - PgSelectSingle40{{"PgSelectSingle[40∈5]
ᐸrelational_itemsᐳ"}}:::plan - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPost
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDivider
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan + PgPolymorphic42{{"PgPolymorphic[42∈4]
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + PgSelectSingle40{{"PgSelectSingle[40∈4]
ᐸrelational_itemsᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPost
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDivider
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan PgSelectSingle40 & PgClassExpression41 --> PgPolymorphic42 - PgSelect75[["PgSelect[75∈5]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + PgSelect75[["PgSelect[75∈4]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan Object9 & PgClassExpression27 --> PgSelect75 - PgSelect112[["PgSelect[112∈5]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + PgSelect112[["PgSelect[112∈4]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan Object9 & PgClassExpression27 --> PgSelect112 - PgSelect149[["PgSelect[149∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + PgSelect149[["PgSelect[149∈4]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression27 --> PgSelect149 - PgSelect186[["PgSelect[186∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + PgSelect186[["PgSelect[186∈4]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression27 --> PgSelect186 - First32{{"First[32∈5]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈5]"]]:::plan + First32{{"First[32∈4]"}}:::plan + PgSelectRows33[["PgSelectRows[33∈4]"]]:::plan PgSelectRows33 --> First32 PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈5]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle34{{"PgSelectSingle[34∈4]
ᐸrelational_topicsᐳ"}}:::plan First32 --> PgSelectSingle34 - First38{{"First[38∈5]"}}:::plan - PgSelectRows39[["PgSelectRows[39∈5]"]]:::plan + First38{{"First[38∈4]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈4]"]]:::plan PgSelectRows39 --> First38 PgSelect36 --> PgSelectRows39 First38 --> PgSelectSingle40 PgSelectSingle40 --> PgClassExpression41 - PgClassExpression43{{"PgClassExpression[43∈5]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression43 - PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgClassExpression52{{"PgClassExpression[52∈4]
ᐸ__relation...__.”type2”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression52 - First77{{"First[77∈5]"}}:::plan - PgSelectRows78[["PgSelectRows[78∈5]"]]:::plan + First77{{"First[77∈4]"}}:::plan + PgSelectRows78[["PgSelectRows[78∈4]"]]:::plan PgSelectRows78 --> First77 PgSelect75 --> PgSelectRows78 - PgSelectSingle79{{"PgSelectSingle[79∈5]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle79{{"PgSelectSingle[79∈4]
ᐸrelational_postsᐳ"}}:::plan First77 --> PgSelectSingle79 - First114{{"First[114∈5]"}}:::plan - PgSelectRows115[["PgSelectRows[115∈5]"]]:::plan + First114{{"First[114∈4]"}}:::plan + PgSelectRows115[["PgSelectRows[115∈4]"]]:::plan PgSelectRows115 --> First114 PgSelect112 --> PgSelectRows115 - PgSelectSingle116{{"PgSelectSingle[116∈5]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle116{{"PgSelectSingle[116∈4]
ᐸrelational_dividersᐳ"}}:::plan First114 --> PgSelectSingle116 - First151{{"First[151∈5]"}}:::plan - PgSelectRows152[["PgSelectRows[152∈5]"]]:::plan + First151{{"First[151∈4]"}}:::plan + PgSelectRows152[["PgSelectRows[152∈4]"]]:::plan PgSelectRows152 --> First151 PgSelect149 --> PgSelectRows152 - PgSelectSingle153{{"PgSelectSingle[153∈5]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle153{{"PgSelectSingle[153∈4]
ᐸrelational_checklistsᐳ"}}:::plan First151 --> PgSelectSingle153 - First188{{"First[188∈5]"}}:::plan - PgSelectRows189[["PgSelectRows[189∈5]"]]:::plan + First188{{"First[188∈4]"}}:::plan + PgSelectRows189[["PgSelectRows[189∈4]"]]:::plan PgSelectRows189 --> First188 PgSelect186 --> PgSelectRows189 - PgSelectSingle190{{"PgSelectSingle[190∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle190{{"PgSelectSingle[190∈4]
ᐸrelational_checklist_itemsᐳ"}}:::plan First188 --> PgSelectSingle190 - PgSelect44[["PgSelect[44∈6]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan + PgSelect44[["PgSelect[44∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan Object9 & PgClassExpression43 --> PgSelect44 - PgSelect53[["PgSelect[53∈6]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalPostᐳRelationalPost
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan + PgSelect53[["PgSelect[53∈5]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalPostᐳRelationalPost
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan Object9 & PgClassExpression43 --> PgSelect53 - PgSelect58[["PgSelect[58∈6]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan + PgSelect58[["PgSelect[58∈5]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan Object9 & PgClassExpression43 --> PgSelect58 - PgSelect63[["PgSelect[63∈6]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan + PgSelect63[["PgSelect[63∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan Object9 & PgClassExpression43 --> PgSelect63 - PgSelect68[["PgSelect[68∈6]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan + PgSelect68[["PgSelect[68∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan Object9 & PgClassExpression43 --> PgSelect68 - First48{{"First[48∈6]"}}:::plan - PgSelectRows49[["PgSelectRows[49∈6]"]]:::plan + First48{{"First[48∈5]"}}:::plan + PgSelectRows49[["PgSelectRows[49∈5]"]]:::plan PgSelectRows49 --> First48 PgSelect44 --> PgSelectRows49 - PgSelectSingle50{{"PgSelectSingle[50∈6]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle50{{"PgSelectSingle[50∈5]
ᐸrelational_topicsᐳ"}}:::plan First48 --> PgSelectSingle50 - First55{{"First[55∈6]"}}:::plan - PgSelectRows56[["PgSelectRows[56∈6]"]]:::plan + First55{{"First[55∈5]"}}:::plan + PgSelectRows56[["PgSelectRows[56∈5]"]]:::plan PgSelectRows56 --> First55 PgSelect53 --> PgSelectRows56 - PgSelectSingle57{{"PgSelectSingle[57∈6]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle57{{"PgSelectSingle[57∈5]
ᐸrelational_postsᐳ"}}:::plan First55 --> PgSelectSingle57 - First60{{"First[60∈6]"}}:::plan - PgSelectRows61[["PgSelectRows[61∈6]"]]:::plan + First60{{"First[60∈5]"}}:::plan + PgSelectRows61[["PgSelectRows[61∈5]"]]:::plan PgSelectRows61 --> First60 PgSelect58 --> PgSelectRows61 - PgSelectSingle62{{"PgSelectSingle[62∈6]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle62{{"PgSelectSingle[62∈5]
ᐸrelational_dividersᐳ"}}:::plan First60 --> PgSelectSingle62 - First65{{"First[65∈6]"}}:::plan - PgSelectRows66[["PgSelectRows[66∈6]"]]:::plan + First65{{"First[65∈5]"}}:::plan + PgSelectRows66[["PgSelectRows[66∈5]"]]:::plan PgSelectRows66 --> First65 PgSelect63 --> PgSelectRows66 - PgSelectSingle67{{"PgSelectSingle[67∈6]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle67{{"PgSelectSingle[67∈5]
ᐸrelational_checklistsᐳ"}}:::plan First65 --> PgSelectSingle67 - First70{{"First[70∈6]"}}:::plan - PgSelectRows71[["PgSelectRows[71∈6]"]]:::plan + First70{{"First[70∈5]"}}:::plan + PgSelectRows71[["PgSelectRows[71∈5]"]]:::plan PgSelectRows71 --> First70 PgSelect68 --> PgSelectRows71 - PgSelectSingle72{{"PgSelectSingle[72∈6]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle72{{"PgSelectSingle[72∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan First70 --> PgSelectSingle72 %% define steps @@ -156,27 +156,23 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸrelational_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸrelational_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression35,PgClassExpression74 bucket3 + Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 35, 26, 25, 74
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 36, 75, 112, 149, 186
2: 33, 39, 78, 115, 152, 189
ᐳ: 32, 34, 38, 40, 41, 42, 43, 52, 77, 79, 114, 116, 151, 153, 188, 190"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,PgPolymorphic26,PgClassExpression27,PgClassExpression35,PgClassExpression74 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 27, 35, 26, 25, 74
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 28, 36, 75, 112, 149, 186
2: 33, 39, 78, 115, 152, 189
ᐳ: 32, 34, 38, 40, 41, 42, 43, 52, 77, 79, 114, 116, 151, 153, 188, 190"):::bucket + class Bucket4,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgPolymorphic42,PgClassExpression43,PgClassExpression52,PgSelect75,First77,PgSelectRows78,PgSelectSingle79,PgSelect112,First114,PgSelectRows115,PgSelectSingle116,PgSelect149,First151,PgSelectRows152,PgSelectSingle153,PgSelect186,First188,PgSelectRows189,PgSelectSingle190 bucket4 + Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 43, 42, 41, 52
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 44, 53, 58, 63, 68
2: 49, 56, 61, 66, 71
ᐳ: 48, 50, 55, 57, 60, 62, 65, 67, 70, 72"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgPolymorphic42,PgClassExpression43,PgClassExpression52,PgSelect75,First77,PgSelectRows78,PgSelectSingle79,PgSelect112,First114,PgSelectRows115,PgSelectSingle116,PgSelect149,First151,PgSelectRows152,PgSelectSingle153,PgSelect186,First188,PgSelectRows189,PgSelectSingle190 bucket5 - Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 9, 43, 42, 41, 52
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 44, 53, 58, 63, 68
2: 49, 56, 61, 66, 71
ᐳ: 48, 50, 55, 57, 60, 62, 65, 67, 70, 72"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,PgSelect53,First55,PgSelectRows56,PgSelectSingle57,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgSelect63,First65,PgSelectRows66,PgSelectSingle67,PgSelect68,First70,PgSelectRows71,PgSelectSingle72 bucket6 + class Bucket5,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,PgSelect53,First55,PgSelectRows56,PgSelectSingle57,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgSelect63,First65,PgSelectRows66,PgSelectSingle67,PgSelect68,First70,PgSelectRows71,PgSelectSingle72 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/relation.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/relation.deopt.mermaid index 29dde6262c..f56acd8628 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/relation.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/relation.deopt.mermaid @@ -114,6 +114,8 @@ graph TD PgSelect41 --> PgSelectRows44 PgSelectSingle45{{"PgSelectSingle[45∈2] ➊
ᐸpeopleᐳ"}}:::plan First43 --> PgSelectSingle45 + PgClassExpression46{{"PgClassExpression[46∈2] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle45 --> PgClassExpression46 First49{{"First[49∈2] ➊"}}:::plan PgSelectRows50[["PgSelectRows[50∈2] ➊"]]:::plan PgSelectRows50 --> First49 @@ -138,8 +140,6 @@ graph TD PgSelect77 --> PgSelectRows80 PgSelectSingle81{{"PgSelectSingle[81∈2] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan First79 --> PgSelectSingle81 - PgClassExpression46{{"PgClassExpression[46∈3] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression46 %% define steps @@ -150,13 +150,9 @@ graph TD Bucket1("Bucket 1 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 10, 16, 24, 15
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 17, 25, 87, 149, 211, 273
2: 22, 28, 90, 152, 214, 276
ᐳ: 21, 23, 27, 29, 30, 31, 32, 40, 89, 91, 151, 153, 213, 215, 275, 277"):::bucket classDef bucket1 stroke:#00bfff class Bucket1,PgSelect17,First21,PgSelectRows22,PgSelectSingle23,PgSelect25,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgPolymorphic31,PgClassExpression32,PgClassExpression40,PgSelect87,First89,PgSelectRows90,PgSelectSingle91,PgSelect149,First151,PgSelectRows152,PgSelectSingle153,PgSelect211,First213,PgSelectRows214,PgSelectSingle215,PgSelect273,First275,PgSelectRows276,PgSelectSingle277 bucket1 - Bucket2("Bucket 2 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 10, 32, 40, 31
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 33, 41, 47, 57, 67, 77
2: 38, 44, 50, 60, 70, 80
ᐳ: 37, 39, 43, 45, 49, 51, 59, 61, 69, 71, 79, 81"):::bucket + Bucket2("Bucket 2 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 10, 32, 40, 31
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 33, 41, 47, 57, 67, 77
2: 38, 44, 50, 60, 70, 80
ᐳ: 37, 39, 43, 45, 46, 49, 51, 59, 61, 69, 71, 79, 81"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgSelect33,First37,PgSelectRows38,PgSelectSingle39,PgSelect41,First43,PgSelectRows44,PgSelectSingle45,PgSelect47,First49,PgSelectRows50,PgSelectSingle51,PgSelect57,First59,PgSelectRows60,PgSelectSingle61,PgSelect67,First69,PgSelectRows70,PgSelectSingle71,PgSelect77,First79,PgSelectRows80,PgSelectSingle81 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 45

ROOT PgSelectSingle{2}ᐸpeopleᐳ[45]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression46 bucket3 + class Bucket2,PgSelect33,First37,PgSelectRows38,PgSelectSingle39,PgSelect41,First43,PgSelectRows44,PgSelectSingle45,PgClassExpression46,PgSelect47,First49,PgSelectRows50,PgSelectSingle51,PgSelect57,First59,PgSelectRows60,PgSelectSingle61,PgSelect67,First69,PgSelectRows70,PgSelectSingle71,PgSelect77,First79,PgSelectRows80,PgSelectSingle81 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/relation.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/relation.mermaid index 29dde6262c..f56acd8628 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/relation.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/relation.mermaid @@ -114,6 +114,8 @@ graph TD PgSelect41 --> PgSelectRows44 PgSelectSingle45{{"PgSelectSingle[45∈2] ➊
ᐸpeopleᐳ"}}:::plan First43 --> PgSelectSingle45 + PgClassExpression46{{"PgClassExpression[46∈2] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle45 --> PgClassExpression46 First49{{"First[49∈2] ➊"}}:::plan PgSelectRows50[["PgSelectRows[50∈2] ➊"]]:::plan PgSelectRows50 --> First49 @@ -138,8 +140,6 @@ graph TD PgSelect77 --> PgSelectRows80 PgSelectSingle81{{"PgSelectSingle[81∈2] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan First79 --> PgSelectSingle81 - PgClassExpression46{{"PgClassExpression[46∈3] ➊
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression46 %% define steps @@ -150,13 +150,9 @@ graph TD Bucket1("Bucket 1 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 10, 16, 24, 15
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 17, 25, 87, 149, 211, 273
2: 22, 28, 90, 152, 214, 276
ᐳ: 21, 23, 27, 29, 30, 31, 32, 40, 89, 91, 151, 153, 213, 215, 275, 277"):::bucket classDef bucket1 stroke:#00bfff class Bucket1,PgSelect17,First21,PgSelectRows22,PgSelectSingle23,PgSelect25,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgPolymorphic31,PgClassExpression32,PgClassExpression40,PgSelect87,First89,PgSelectRows90,PgSelectSingle91,PgSelect149,First151,PgSelectRows152,PgSelectSingle153,PgSelect211,First213,PgSelectRows214,PgSelectSingle215,PgSelect273,First275,PgSelectRows276,PgSelectSingle277 bucket1 - Bucket2("Bucket 2 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 10, 32, 40, 31
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 33, 41, 47, 57, 67, 77
2: 38, 44, 50, 60, 70, 80
ᐳ: 37, 39, 43, 45, 49, 51, 59, 61, 69, 71, 79, 81"):::bucket + Bucket2("Bucket 2 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 10, 32, 40, 31
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 33, 41, 47, 57, 67, 77
2: 38, 44, 50, 60, 70, 80
ᐳ: 37, 39, 43, 45, 46, 49, 51, 59, 61, 69, 71, 79, 81"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgSelect33,First37,PgSelectRows38,PgSelectSingle39,PgSelect41,First43,PgSelectRows44,PgSelectSingle45,PgSelect47,First49,PgSelectRows50,PgSelectSingle51,PgSelect57,First59,PgSelectRows60,PgSelectSingle61,PgSelect67,First69,PgSelectRows70,PgSelectSingle71,PgSelect77,First79,PgSelectRows80,PgSelectSingle81 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 45

ROOT PgSelectSingle{2}ᐸpeopleᐳ[45]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression46 bucket3 + class Bucket2,PgSelect33,First37,PgSelectRows38,PgSelectSingle39,PgSelect41,First43,PgSelectRows44,PgSelectSingle45,PgClassExpression46,PgSelect47,First49,PgSelectRows50,PgSelectSingle51,PgSelect57,First59,PgSelectRows60,PgSelectSingle61,PgSelect67,First69,PgSelectRows70,PgSelectSingle71,PgSelect77,First79,PgSelectRows80,PgSelectSingle81 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-as-item.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-as-item.deopt.mermaid index b606e261f7..2ac7575715 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-as-item.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-as-item.deopt.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸrelational_topicsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant60{{"Constant[60∈0] ➊
ᐸ10ᐳ"}}:::plan - Object10 & Constant60 --> PgSelect7 + Constant58{{"Constant[58∈0] ➊
ᐸ10ᐳ"}}:::plan + Object10 & Constant58 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect15[["PgSelect[15∈0] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__relation...ics__.”id”ᐳ"}}:::plan + Object10 & PgClassExpression14 --> PgSelect15 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,42 +28,35 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸrelational_topicsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__relation...ics__.”id”ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect15 PgSelectSingle13 --> PgClassExpression14 - First19{{"First[19∈1] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect15 --> PgSelectRows20 - PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan - First19 --> PgSelectSingle21 - PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__relation...__.”type2”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression28 - PgClassExpression34{{"PgClassExpression[34∈1] ➊
ᐸ__relation...”position”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression34 - PgClassExpression40{{"PgClassExpression[40∈1] ➊
ᐸ__relation...reated_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression40 - PgClassExpression46{{"PgClassExpression[46∈1] ➊
ᐸ__relation...pdated_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression46 - PgClassExpression52{{"PgClassExpression[52∈1] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression52 - PgClassExpression58{{"PgClassExpression[58∈1] ➊
ᐸ__relation...chived_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression58 - PgClassExpression59{{"PgClassExpression[59∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression59 + First17{{"First[17∈0] ➊"}}:::plan + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelectRows18 --> First17 + PgSelect15 --> PgSelectRows18 + PgSelectSingle19{{"PgSelectSingle[19∈0] ➊
ᐸrelational_itemsᐳ"}}:::plan + First17 --> PgSelectSingle19 + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression20 + PgClassExpression26{{"PgClassExpression[26∈0] ➊
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression26 + PgClassExpression32{{"PgClassExpression[32∈0] ➊
ᐸ__relation...”position”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression32 + PgClassExpression38{{"PgClassExpression[38∈0] ➊
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression38 + PgClassExpression44{{"PgClassExpression[44∈0] ➊
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression44 + PgClassExpression50{{"PgClassExpression[50∈0] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression50 + PgClassExpression56{{"PgClassExpression[56∈0] ➊
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression56 + PgClassExpression57{{"PgClassExpression[57∈0] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression57 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/interfaces-relational/single-topic-as-item" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 60, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 58, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 57
4: PgSelect[15]
5: PgSelectRows[18]
ᐳ: 17, 19, 20, 26, 32, 38, 44, 50, 56"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant60 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸrelational_topicsᐳ[13]
1:
ᐳ: 14, 59
2: PgSelect[15]
3: PgSelectRows[20]
ᐳ: 19, 21, 22, 28, 34, 40, 46, 52, 58"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgSelect15,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression22,PgClassExpression28,PgClassExpression34,PgClassExpression40,PgClassExpression46,PgClassExpression52,PgClassExpression58,PgClassExpression59 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect15,First17,PgSelectRows18,PgSelectSingle19,PgClassExpression20,PgClassExpression26,PgClassExpression32,PgClassExpression38,PgClassExpression44,PgClassExpression50,PgClassExpression56,PgClassExpression57,Constant58 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-as-item.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-as-item.mermaid index b606e261f7..2ac7575715 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-as-item.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-as-item.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸrelational_topicsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant60{{"Constant[60∈0] ➊
ᐸ10ᐳ"}}:::plan - Object10 & Constant60 --> PgSelect7 + Constant58{{"Constant[58∈0] ➊
ᐸ10ᐳ"}}:::plan + Object10 & Constant58 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect15[["PgSelect[15∈0] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__relation...ics__.”id”ᐳ"}}:::plan + Object10 & PgClassExpression14 --> PgSelect15 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,42 +28,35 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸrelational_topicsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__relation...ics__.”id”ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect15 PgSelectSingle13 --> PgClassExpression14 - First19{{"First[19∈1] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect15 --> PgSelectRows20 - PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan - First19 --> PgSelectSingle21 - PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__relation...__.”type2”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression28 - PgClassExpression34{{"PgClassExpression[34∈1] ➊
ᐸ__relation...”position”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression34 - PgClassExpression40{{"PgClassExpression[40∈1] ➊
ᐸ__relation...reated_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression40 - PgClassExpression46{{"PgClassExpression[46∈1] ➊
ᐸ__relation...pdated_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression46 - PgClassExpression52{{"PgClassExpression[52∈1] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression52 - PgClassExpression58{{"PgClassExpression[58∈1] ➊
ᐸ__relation...chived_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression58 - PgClassExpression59{{"PgClassExpression[59∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression59 + First17{{"First[17∈0] ➊"}}:::plan + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelectRows18 --> First17 + PgSelect15 --> PgSelectRows18 + PgSelectSingle19{{"PgSelectSingle[19∈0] ➊
ᐸrelational_itemsᐳ"}}:::plan + First17 --> PgSelectSingle19 + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression20 + PgClassExpression26{{"PgClassExpression[26∈0] ➊
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression26 + PgClassExpression32{{"PgClassExpression[32∈0] ➊
ᐸ__relation...”position”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression32 + PgClassExpression38{{"PgClassExpression[38∈0] ➊
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression38 + PgClassExpression44{{"PgClassExpression[44∈0] ➊
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression44 + PgClassExpression50{{"PgClassExpression[50∈0] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression50 + PgClassExpression56{{"PgClassExpression[56∈0] ➊
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression56 + PgClassExpression57{{"PgClassExpression[57∈0] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression57 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/interfaces-relational/single-topic-as-item" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 60, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 58, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 57
4: PgSelect[15]
5: PgSelectRows[18]
ᐳ: 17, 19, 20, 26, 32, 38, 44, 50, 56"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant60 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸrelational_topicsᐳ[13]
1:
ᐳ: 14, 59
2: PgSelect[15]
3: PgSelectRows[20]
ᐳ: 19, 21, 22, 28, 34, 40, 46, 52, 58"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgSelect15,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression22,PgClassExpression28,PgClassExpression34,PgClassExpression40,PgClassExpression46,PgClassExpression52,PgClassExpression58,PgClassExpression59 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect15,First17,PgSelectRows18,PgSelectSingle19,PgClassExpression20,PgClassExpression26,PgClassExpression32,PgClassExpression38,PgClassExpression44,PgClassExpression50,PgClassExpression56,PgClassExpression57,Constant58 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-not-topic.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-not-topic.deopt.mermaid index 9dd925f64e..7197e785b8 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-not-topic.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-not-topic.deopt.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸrelational_topicsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant60{{"Constant[60∈0] ➊
ᐸ12ᐳ"}}:::plan - Object10 & Constant60 --> PgSelect7 + Constant58{{"Constant[58∈0] ➊
ᐸ12ᐳ"}}:::plan + Object10 & Constant58 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect15[["PgSelect[15∈0] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__relation...ics__.”id”ᐳ"}}:::plan + Object10 & PgClassExpression14 --> PgSelect15 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,42 +28,35 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸrelational_topicsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__relation...ics__.”id”ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect15 PgSelectSingle13 --> PgClassExpression14 - First19{{"First[19∈1] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect15 --> PgSelectRows20 - PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan - First19 --> PgSelectSingle21 - PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__relation...__.”type2”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression28 - PgClassExpression34{{"PgClassExpression[34∈1] ➊
ᐸ__relation...”position”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression34 - PgClassExpression40{{"PgClassExpression[40∈1] ➊
ᐸ__relation...reated_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression40 - PgClassExpression46{{"PgClassExpression[46∈1] ➊
ᐸ__relation...pdated_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression46 - PgClassExpression52{{"PgClassExpression[52∈1] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression52 - PgClassExpression58{{"PgClassExpression[58∈1] ➊
ᐸ__relation...chived_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression58 - PgClassExpression59{{"PgClassExpression[59∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression59 + First17{{"First[17∈0] ➊"}}:::plan + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelectRows18 --> First17 + PgSelect15 --> PgSelectRows18 + PgSelectSingle19{{"PgSelectSingle[19∈0] ➊
ᐸrelational_itemsᐳ"}}:::plan + First17 --> PgSelectSingle19 + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression20 + PgClassExpression26{{"PgClassExpression[26∈0] ➊
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression26 + PgClassExpression32{{"PgClassExpression[32∈0] ➊
ᐸ__relation...”position”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression32 + PgClassExpression38{{"PgClassExpression[38∈0] ➊
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression38 + PgClassExpression44{{"PgClassExpression[44∈0] ➊
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression44 + PgClassExpression50{{"PgClassExpression[50∈0] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression50 + PgClassExpression56{{"PgClassExpression[56∈0] ➊
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression56 + PgClassExpression57{{"PgClassExpression[57∈0] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression57 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/interfaces-relational/single-topic-not-topic" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 60, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 58, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 57
4: PgSelect[15]
5: PgSelectRows[18]
ᐳ: 17, 19, 20, 26, 32, 38, 44, 50, 56"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant60 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸrelational_topicsᐳ[13]
1:
ᐳ: 14, 59
2: PgSelect[15]
3: PgSelectRows[20]
ᐳ: 19, 21, 22, 28, 34, 40, 46, 52, 58"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgSelect15,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression22,PgClassExpression28,PgClassExpression34,PgClassExpression40,PgClassExpression46,PgClassExpression52,PgClassExpression58,PgClassExpression59 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect15,First17,PgSelectRows18,PgSelectSingle19,PgClassExpression20,PgClassExpression26,PgClassExpression32,PgClassExpression38,PgClassExpression44,PgClassExpression50,PgClassExpression56,PgClassExpression57,Constant58 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-not-topic.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-not-topic.mermaid index 9dd925f64e..7197e785b8 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-not-topic.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic-not-topic.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸrelational_topicsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant60{{"Constant[60∈0] ➊
ᐸ12ᐳ"}}:::plan - Object10 & Constant60 --> PgSelect7 + Constant58{{"Constant[58∈0] ➊
ᐸ12ᐳ"}}:::plan + Object10 & Constant58 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect15[["PgSelect[15∈0] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__relation...ics__.”id”ᐳ"}}:::plan + Object10 & PgClassExpression14 --> PgSelect15 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,42 +28,35 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸrelational_topicsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__relation...ics__.”id”ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect15 PgSelectSingle13 --> PgClassExpression14 - First19{{"First[19∈1] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect15 --> PgSelectRows20 - PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan - First19 --> PgSelectSingle21 - PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__relation...__.”type2”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression28 - PgClassExpression34{{"PgClassExpression[34∈1] ➊
ᐸ__relation...”position”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression34 - PgClassExpression40{{"PgClassExpression[40∈1] ➊
ᐸ__relation...reated_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression40 - PgClassExpression46{{"PgClassExpression[46∈1] ➊
ᐸ__relation...pdated_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression46 - PgClassExpression52{{"PgClassExpression[52∈1] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression52 - PgClassExpression58{{"PgClassExpression[58∈1] ➊
ᐸ__relation...chived_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression58 - PgClassExpression59{{"PgClassExpression[59∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression59 + First17{{"First[17∈0] ➊"}}:::plan + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelectRows18 --> First17 + PgSelect15 --> PgSelectRows18 + PgSelectSingle19{{"PgSelectSingle[19∈0] ➊
ᐸrelational_itemsᐳ"}}:::plan + First17 --> PgSelectSingle19 + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression20 + PgClassExpression26{{"PgClassExpression[26∈0] ➊
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression26 + PgClassExpression32{{"PgClassExpression[32∈0] ➊
ᐸ__relation...”position”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression32 + PgClassExpression38{{"PgClassExpression[38∈0] ➊
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression38 + PgClassExpression44{{"PgClassExpression[44∈0] ➊
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression44 + PgClassExpression50{{"PgClassExpression[50∈0] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression50 + PgClassExpression56{{"PgClassExpression[56∈0] ➊
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression56 + PgClassExpression57{{"PgClassExpression[57∈0] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression57 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/interfaces-relational/single-topic-not-topic" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 60, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 58, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 57
4: PgSelect[15]
5: PgSelectRows[18]
ᐳ: 17, 19, 20, 26, 32, 38, 44, 50, 56"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant60 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸrelational_topicsᐳ[13]
1:
ᐳ: 14, 59
2: PgSelect[15]
3: PgSelectRows[20]
ᐳ: 19, 21, 22, 28, 34, 40, 46, 52, 58"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgSelect15,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression22,PgClassExpression28,PgClassExpression34,PgClassExpression40,PgClassExpression46,PgClassExpression52,PgClassExpression58,PgClassExpression59 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect15,First17,PgSelectRows18,PgSelectSingle19,PgClassExpression20,PgClassExpression26,PgClassExpression32,PgClassExpression38,PgClassExpression44,PgClassExpression50,PgClassExpression56,PgClassExpression57,Constant58 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic.deopt.mermaid index 4195f6805c..844353d419 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic.deopt.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸrelational_topicsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant60{{"Constant[60∈0] ➊
ᐸ10ᐳ"}}:::plan - Object10 & Constant60 --> PgSelect7 + Constant58{{"Constant[58∈0] ➊
ᐸ10ᐳ"}}:::plan + Object10 & Constant58 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect15[["PgSelect[15∈0] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__relation...ics__.”id”ᐳ"}}:::plan + Object10 & PgClassExpression14 --> PgSelect15 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,42 +28,35 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸrelational_topicsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__relation...ics__.”id”ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect15 PgSelectSingle13 --> PgClassExpression14 - First19{{"First[19∈1] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect15 --> PgSelectRows20 - PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan - First19 --> PgSelectSingle21 - PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__relation...__.”type2”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression28 - PgClassExpression34{{"PgClassExpression[34∈1] ➊
ᐸ__relation...”position”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression34 - PgClassExpression40{{"PgClassExpression[40∈1] ➊
ᐸ__relation...reated_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression40 - PgClassExpression46{{"PgClassExpression[46∈1] ➊
ᐸ__relation...pdated_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression46 - PgClassExpression52{{"PgClassExpression[52∈1] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression52 - PgClassExpression58{{"PgClassExpression[58∈1] ➊
ᐸ__relation...chived_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression58 - PgClassExpression59{{"PgClassExpression[59∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression59 + First17{{"First[17∈0] ➊"}}:::plan + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelectRows18 --> First17 + PgSelect15 --> PgSelectRows18 + PgSelectSingle19{{"PgSelectSingle[19∈0] ➊
ᐸrelational_itemsᐳ"}}:::plan + First17 --> PgSelectSingle19 + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression20 + PgClassExpression26{{"PgClassExpression[26∈0] ➊
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression26 + PgClassExpression32{{"PgClassExpression[32∈0] ➊
ᐸ__relation...”position”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression32 + PgClassExpression38{{"PgClassExpression[38∈0] ➊
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression38 + PgClassExpression44{{"PgClassExpression[44∈0] ➊
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression44 + PgClassExpression50{{"PgClassExpression[50∈0] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression50 + PgClassExpression56{{"PgClassExpression[56∈0] ➊
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression56 + PgClassExpression57{{"PgClassExpression[57∈0] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression57 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/interfaces-relational/single-topic" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 60, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 58, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 57
4: PgSelect[15]
5: PgSelectRows[18]
ᐳ: 17, 19, 20, 26, 32, 38, 44, 50, 56"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant60 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸrelational_topicsᐳ[13]
1:
ᐳ: 14, 59
2: PgSelect[15]
3: PgSelectRows[20]
ᐳ: 19, 21, 22, 28, 34, 40, 46, 52, 58"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgSelect15,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression22,PgClassExpression28,PgClassExpression34,PgClassExpression40,PgClassExpression46,PgClassExpression52,PgClassExpression58,PgClassExpression59 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect15,First17,PgSelectRows18,PgSelectSingle19,PgClassExpression20,PgClassExpression26,PgClassExpression32,PgClassExpression38,PgClassExpression44,PgClassExpression50,PgClassExpression56,PgClassExpression57,Constant58 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic.mermaid index 4195f6805c..844353d419 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-relational/single-topic.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸrelational_topicsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant60{{"Constant[60∈0] ➊
ᐸ10ᐳ"}}:::plan - Object10 & Constant60 --> PgSelect7 + Constant58{{"Constant[58∈0] ➊
ᐸ10ᐳ"}}:::plan + Object10 & Constant58 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect15[["PgSelect[15∈0] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__relation...ics__.”id”ᐳ"}}:::plan + Object10 & PgClassExpression14 --> PgSelect15 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,42 +28,35 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸrelational_topicsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__relation...ics__.”id”ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect15 PgSelectSingle13 --> PgClassExpression14 - First19{{"First[19∈1] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect15 --> PgSelectRows20 - PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan - First19 --> PgSelectSingle21 - PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__relation...__.”type2”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression28 - PgClassExpression34{{"PgClassExpression[34∈1] ➊
ᐸ__relation...”position”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression34 - PgClassExpression40{{"PgClassExpression[40∈1] ➊
ᐸ__relation...reated_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression40 - PgClassExpression46{{"PgClassExpression[46∈1] ➊
ᐸ__relation...pdated_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression46 - PgClassExpression52{{"PgClassExpression[52∈1] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression52 - PgClassExpression58{{"PgClassExpression[58∈1] ➊
ᐸ__relation...chived_at”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression58 - PgClassExpression59{{"PgClassExpression[59∈1] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression59 + First17{{"First[17∈0] ➊"}}:::plan + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelectRows18 --> First17 + PgSelect15 --> PgSelectRows18 + PgSelectSingle19{{"PgSelectSingle[19∈0] ➊
ᐸrelational_itemsᐳ"}}:::plan + First17 --> PgSelectSingle19 + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression20 + PgClassExpression26{{"PgClassExpression[26∈0] ➊
ᐸ__relation...__.”type2”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression26 + PgClassExpression32{{"PgClassExpression[32∈0] ➊
ᐸ__relation...”position”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression32 + PgClassExpression38{{"PgClassExpression[38∈0] ➊
ᐸ__relation...reated_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression38 + PgClassExpression44{{"PgClassExpression[44∈0] ➊
ᐸ__relation...pdated_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression44 + PgClassExpression50{{"PgClassExpression[50∈0] ➊
ᐸ__relation..._archived”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression50 + PgClassExpression56{{"PgClassExpression[56∈0] ➊
ᐸ__relation...chived_at”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression56 + PgClassExpression57{{"PgClassExpression[57∈0] ➊
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression57 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/interfaces-relational/single-topic" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 60, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 58, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 57
4: PgSelect[15]
5: PgSelectRows[18]
ᐳ: 17, 19, 20, 26, 32, 38, 44, 50, 56"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant60 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸrelational_topicsᐳ[13]
1:
ᐳ: 14, 59
2: PgSelect[15]
3: PgSelectRows[20]
ᐳ: 19, 21, 22, 28, 34, 40, 46, 52, 58"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgSelect15,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression22,PgClassExpression28,PgClassExpression34,PgClassExpression40,PgClassExpression46,PgClassExpression52,PgClassExpression58,PgClassExpression59 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect15,First17,PgSelectRows18,PgSelectSingle19,PgClassExpression20,PgClassExpression26,PgClassExpression32,PgClassExpression38,PgClassExpression44,PgClassExpression50,PgClassExpression56,PgClassExpression57,Constant58 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics-with-fragments.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics-with-fragments.deopt.mermaid index d6d62de70e..3de3f2c6c5 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics-with-fragments.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics-with-fragments.deopt.mermaid @@ -21,55 +21,55 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸsingle_table_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈4]"]:::plan - Lambda26{{"Lambda[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈3]"]:::plan + Lambda26{{"Lambda[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda26 & PgSelectSingle24 --> PgSingleTablePolymorphic27 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression25 PgClassExpression25 --> Lambda26 - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression28 - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈3]
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈3]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈3]
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__single_t...__.”title”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__single_t...__.”title”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist"}}:::plan PgSelectSingle24 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈5]
ᐸ__single_t...scription”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈4]
ᐸ__single_t...scription”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan PgSelectSingle24 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈5]
ᐸ__single_t...s__.”note”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan + PgClassExpression38{{"PgClassExpression[38∈4]
ᐸ__single_t...s__.”note”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan PgSelectSingle24 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈5]
ᐸ__single_t...__.”color”ᐳ
ᐳSingleTableDivider"}}:::plan + PgClassExpression39{{"PgClassExpression[39∈4]
ᐸ__single_t...__.”color”ᐳ
ᐳSingleTableDivider"}}:::plan PgSelectSingle24 --> PgClassExpression39 %% define steps @@ -78,23 +78,19 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸsingle_table_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸsingle_table_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 28, 30, 31, 32, 33, 34, 35
2: PgSingleTablePolymorphic[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 28, 30, 31, 32, 33, 34, 35
2: PgSingleTablePolymorphic[27]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression28,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression35 bucket3 + Bucket4("Bucket 4 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 27, 28, 25, 30, 31, 32, 33, 34, 35
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression28,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression35 bucket4 - Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 27, 28, 25, 30, 31, 32, 33, 34, 35
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgClassExpression39 bucket5 + class Bucket4,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgClassExpression39 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 - Bucket4 --> Bucket5 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics-with-fragments.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics-with-fragments.mermaid index d6d62de70e..3de3f2c6c5 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics-with-fragments.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics-with-fragments.mermaid @@ -21,55 +21,55 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸsingle_table_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈4]"]:::plan - Lambda26{{"Lambda[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈3]"]:::plan + Lambda26{{"Lambda[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda26 & PgSelectSingle24 --> PgSingleTablePolymorphic27 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression25 PgClassExpression25 --> Lambda26 - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression28 - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈3]
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈3]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈3]
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__single_t...__.”title”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__single_t...__.”title”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist"}}:::plan PgSelectSingle24 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈5]
ᐸ__single_t...scription”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈4]
ᐸ__single_t...scription”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan PgSelectSingle24 --> PgClassExpression37 - PgClassExpression38{{"PgClassExpression[38∈5]
ᐸ__single_t...s__.”note”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan + PgClassExpression38{{"PgClassExpression[38∈4]
ᐸ__single_t...s__.”note”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan PgSelectSingle24 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈5]
ᐸ__single_t...__.”color”ᐳ
ᐳSingleTableDivider"}}:::plan + PgClassExpression39{{"PgClassExpression[39∈4]
ᐸ__single_t...__.”color”ᐳ
ᐳSingleTableDivider"}}:::plan PgSelectSingle24 --> PgClassExpression39 %% define steps @@ -78,23 +78,19 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸsingle_table_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸsingle_table_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 28, 30, 31, 32, 33, 34, 35
2: PgSingleTablePolymorphic[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 28, 30, 31, 32, 33, 34, 35
2: PgSingleTablePolymorphic[27]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression28,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression35 bucket3 + Bucket4("Bucket 4 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 27, 28, 25, 30, 31, 32, 33, 34, 35
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression28,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression35 bucket4 - Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 27, 28, 25, 30, 31, 32, 33, 34, 35
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgClassExpression39 bucket5 + class Bucket4,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgClassExpression39 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 - Bucket4 --> Bucket5 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics.deopt.mermaid index f9b88d3af4..852e496d32 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics.deopt.mermaid @@ -21,47 +21,47 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸsingle_table_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈4]"]:::plan - Lambda26{{"Lambda[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈3]"]:::plan + Lambda26{{"Lambda[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda26 & PgSelectSingle24 --> PgSingleTablePolymorphic27 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression25 PgClassExpression25 --> Lambda26 - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression28 - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈3]
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈3]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈3]
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression35 %% define steps @@ -70,23 +70,19 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸsingle_table_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸsingle_table_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 28, 30, 31, 32, 33, 34, 35
2: PgSingleTablePolymorphic[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 28, 30, 31, 32, 33, 34, 35
2: PgSingleTablePolymorphic[27]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression28,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression35 bucket3 + Bucket4("Bucket 4 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 27, 24, 28, 25, 30, 31, 32, 33, 34, 35
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression28,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression35 bucket4 - Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 27, 24, 28, 25, 30, 31, 32, 33, 34, 35
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5 bucket5 + class Bucket4 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 - Bucket4 --> Bucket5 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics.mermaid index f9b88d3af4..852e496d32 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/basics.mermaid @@ -21,47 +21,47 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸsingle_table_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈4]"]:::plan - Lambda26{{"Lambda[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈3]"]:::plan + Lambda26{{"Lambda[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda26 & PgSelectSingle24 --> PgSingleTablePolymorphic27 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression25 PgClassExpression25 --> Lambda26 - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression28 - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈3]
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈3]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈3]
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression35 %% define steps @@ -70,23 +70,19 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸsingle_table_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸsingle_table_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 28, 30, 31, 32, 33, 34, 35
2: PgSingleTablePolymorphic[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 28, 30, 31, 32, 33, 34, 35
2: PgSingleTablePolymorphic[27]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression28,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression35 bucket3 + Bucket4("Bucket 4 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 27, 24, 28, 25, 30, 31, 32, 33, 34, 35
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression28,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression35 bucket4 - Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 27, 24, 28, 25, 30, 31, 32, 33, 34, 35
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5 bucket5 + class Bucket4 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 - Bucket4 --> Bucket5 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more-fragments.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more-fragments.deopt.mermaid index 4c2af22a2e..69750e10d1 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more-fragments.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more-fragments.deopt.mermaid @@ -21,116 +21,116 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸsingle_table_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈4]"]:::plan - Lambda26{{"Lambda[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈3]"]:::plan + Lambda26{{"Lambda[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda26 & PgSelectSingle24 --> PgSingleTablePolymorphic27 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression25 PgClassExpression25 --> Lambda26 - PgClassExpression80{{"PgClassExpression[80∈4]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression80{{"PgClassExpression[80∈3]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression80 - PgClassExpression82{{"PgClassExpression[82∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression82{{"PgClassExpression[82∈3]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression82 - PgClassExpression83{{"PgClassExpression[83∈4]
ᐸ__single_t...author_id”ᐳ"}}:::plan + PgClassExpression83{{"PgClassExpression[83∈3]
ᐸ__single_t...author_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression83 - PgClassExpression90{{"PgClassExpression[90∈4]
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression90{{"PgClassExpression[90∈3]
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression90 - PgClassExpression91{{"PgClassExpression[91∈4]
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression91{{"PgClassExpression[91∈3]
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression91 - PgClassExpression92{{"PgClassExpression[92∈4]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression92{{"PgClassExpression[92∈3]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression92 - PgClassExpression93{{"PgClassExpression[93∈4]
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression93{{"PgClassExpression[93∈3]
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression93 - PgClassExpression94{{"PgClassExpression[94∈4]
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression94{{"PgClassExpression[94∈3]
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression94 - PgSelect29[["PgSelect[29∈5]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__single_t...parent_id”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgSelect29[["PgSelect[29∈4]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__single_t...parent_id”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan Object9 & PgClassExpression28 --> PgSelect29 - PgSingleTablePolymorphic38["PgSingleTablePolymorphic[38∈5]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]:::plan - Lambda37{{"Lambda[37∈5]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan - PgSelectSingle35{{"PgSelectSingle[35∈5]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic38["PgSingleTablePolymorphic[38∈4]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]:::plan + Lambda37{{"Lambda[37∈4]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + PgSelectSingle35{{"PgSelectSingle[35∈4]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda37 & PgSelectSingle35 --> PgSingleTablePolymorphic38 - PgSelect84[["PgSelect[84∈5]
ᐸpeopleᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + PgSelect84[["PgSelect[84∈4]
ᐸpeopleᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan Object9 & PgClassExpression83 --> PgSelect84 PgSelectSingle24 --> PgClassExpression28 - First33{{"First[33∈5]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈5]"]]:::plan + First33{{"First[33∈4]"}}:::plan + PgSelectRows34[["PgSelectRows[34∈4]"]]:::plan PgSelectRows34 --> First33 PgSelect29 --> PgSelectRows34 First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan PgSelectSingle35 --> PgClassExpression36 PgClassExpression36 --> Lambda37 - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression41 - PgClassExpression42{{"PgClassExpression[42∈5]
ᐸ__single_t...author_id”ᐳ"}}:::plan + PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__single_t...author_id”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression42 - PgClassExpression51{{"PgClassExpression[51∈5]
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression51{{"PgClassExpression[51∈4]
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression52{{"PgClassExpression[52∈4]
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression53{{"PgClassExpression[53∈4]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈5]
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression54{{"PgClassExpression[54∈4]
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression54 - PgClassExpression55{{"PgClassExpression[55∈5]
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression55{{"PgClassExpression[55∈4]
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression55 - First86{{"First[86∈5]"}}:::plan - PgSelectRows87[["PgSelectRows[87∈5]"]]:::plan + First86{{"First[86∈4]"}}:::plan + PgSelectRows87[["PgSelectRows[87∈4]"]]:::plan PgSelectRows87 --> First86 PgSelect84 --> PgSelectRows87 - PgSelectSingle88{{"PgSelectSingle[88∈5]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle88{{"PgSelectSingle[88∈4]
ᐸpeopleᐳ"}}:::plan First86 --> PgSelectSingle88 - PgClassExpression95{{"PgClassExpression[95∈5]
ᐸ__single_t...__.”title”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist"}}:::plan + PgClassExpression89{{"PgClassExpression[89∈4]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle88 --> PgClassExpression89 + PgClassExpression95{{"PgClassExpression[95∈4]
ᐸ__single_t...__.”title”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist"}}:::plan PgSelectSingle24 --> PgClassExpression95 - PgClassExpression134{{"PgClassExpression[134∈5]
ᐸ__single_t...scription”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan + PgClassExpression134{{"PgClassExpression[134∈4]
ᐸ__single_t...scription”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan PgSelectSingle24 --> PgClassExpression134 - PgClassExpression135{{"PgClassExpression[135∈5]
ᐸ__single_t...s__.”note”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan + PgClassExpression135{{"PgClassExpression[135∈4]
ᐸ__single_t...s__.”note”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan PgSelectSingle24 --> PgClassExpression135 - PgClassExpression174{{"PgClassExpression[174∈5]
ᐸ__single_t...__.”color”ᐳ
ᐳSingleTableDivider"}}:::plan + PgClassExpression174{{"PgClassExpression[174∈4]
ᐸ__single_t...__.”color”ᐳ
ᐳSingleTableDivider"}}:::plan PgSelectSingle24 --> PgClassExpression174 - PgSelect43[["PgSelect[43∈6]
ᐸpeopleᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"]]:::plan + PgSelect43[["PgSelect[43∈5]
ᐸpeopleᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"]]:::plan Object9 & PgClassExpression42 --> PgSelect43 - First47{{"First[47∈6]"}}:::plan - PgSelectRows48[["PgSelectRows[48∈6]"]]:::plan + First47{{"First[47∈5]"}}:::plan + PgSelectRows48[["PgSelectRows[48∈5]"]]:::plan PgSelectRows48 --> First47 PgSelect43 --> PgSelectRows48 - PgSelectSingle49{{"PgSelectSingle[49∈6]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle49{{"PgSelectSingle[49∈5]
ᐸpeopleᐳ"}}:::plan First47 --> PgSelectSingle49 - PgClassExpression56{{"PgClassExpression[56∈6]
ᐸ__single_t...__.”title”ᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist"}}:::plan + PgClassExpression50{{"PgClassExpression[50∈5]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle49 --> PgClassExpression50 + PgClassExpression56{{"PgClassExpression[56∈5]
ᐸ__single_t...__.”title”ᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist"}}:::plan PgSelectSingle35 --> PgClassExpression56 - PgClassExpression62{{"PgClassExpression[62∈6]
ᐸ__single_t...scription”ᐳ
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgClassExpression62{{"PgClassExpression[62∈5]
ᐸ__single_t...scription”ᐳ
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan PgSelectSingle35 --> PgClassExpression62 - PgClassExpression63{{"PgClassExpression[63∈6]
ᐸ__single_t...s__.”note”ᐳ
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgClassExpression63{{"PgClassExpression[63∈5]
ᐸ__single_t...s__.”note”ᐳ
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan PgSelectSingle35 --> PgClassExpression63 - PgClassExpression69{{"PgClassExpression[69∈6]
ᐸ__single_t...__.”color”ᐳ
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableDivider"}}:::plan + PgClassExpression69{{"PgClassExpression[69∈5]
ᐸ__single_t...__.”color”ᐳ
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableDivider"}}:::plan PgSelectSingle35 --> PgClassExpression69 - PgClassExpression50{{"PgClassExpression[50∈7]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression50 - PgClassExpression89{{"PgClassExpression[89∈8]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle88 --> PgClassExpression89 %% define steps @@ -138,34 +138,23 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸsingle_table_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸsingle_table_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 80, 82, 83, 90, 91, 92, 93, 94
2: PgSingleTablePolymorphic[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 80, 82, 83, 90, 91, 92, 93, 94
2: PgSingleTablePolymorphic[27]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression80,PgClassExpression82,PgClassExpression83,PgClassExpression90,PgClassExpression91,PgClassExpression92,PgClassExpression93,PgClassExpression94 bucket3 + Bucket4("Bucket 4 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 9, 83, 27, 80, 25, 82, 90, 91, 92, 93, 94
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[84]
ᐳ: 28, 95, 134, 135, 174
2: PgSelect[29], PgSelectRows[87]
ᐳ: 86, 88, 89
3: PgSelectRows[34]
ᐳ: 33, 35, 36, 37, 41, 42, 51, 52, 53, 54, 55
4: PgSingleTablePolymorphic[38]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression80,PgClassExpression82,PgClassExpression83,PgClassExpression90,PgClassExpression91,PgClassExpression92,PgClassExpression93,PgClassExpression94 bucket4 - Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 9, 83, 27, 80, 25, 82, 90, 91, 92, 93, 94
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[84]
ᐳ: 28, 95, 134, 135, 174
2: PgSelect[29], PgSelectRows[87]
ᐳ: First[86], PgSelectSingle[88]
3: PgSelectRows[34]
ᐳ: 33, 35, 36, 37, 41, 42, 51, 52, 53, 54, 55
4: PgSingleTablePolymorphic[38]"):::bucket + class Bucket4,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,Lambda37,PgSingleTablePolymorphic38,PgClassExpression41,PgClassExpression42,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54,PgClassExpression55,PgSelect84,First86,PgSelectRows87,PgSelectSingle88,PgClassExpression89,PgClassExpression95,PgClassExpression134,PgClassExpression135,PgClassExpression174 bucket4 + Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 9, 42, 35, 38, 28, 36, 41, 51, 52, 53, 54, 55
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem

1: PgSelect[43]
ᐳ: 56, 62, 63, 69
2: PgSelectRows[48]
ᐳ: 47, 49, 50"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,Lambda37,PgSingleTablePolymorphic38,PgClassExpression41,PgClassExpression42,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54,PgClassExpression55,PgSelect84,First86,PgSelectRows87,PgSelectSingle88,PgClassExpression95,PgClassExpression134,PgClassExpression135,PgClassExpression174 bucket5 - Bucket6("Bucket 6 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 9, 42, 35, 38, 28, 36, 41, 51, 52, 53, 54, 55
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem

1: PgSelect[43]
ᐳ: 56, 62, 63, 69
2: PgSelectRows[48]
ᐳ: First[47], PgSelectSingle[49]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect43,First47,PgSelectRows48,PgSelectSingle49,PgClassExpression56,PgClassExpression62,PgClassExpression63,PgClassExpression69 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 49

ROOT PgSelectSingle{6}ᐸpeopleᐳ[49]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression50 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 88

ROOT PgSelectSingle{5}ᐸpeopleᐳ[88]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression89 bucket8 + class Bucket5,PgSelect43,First47,PgSelectRows48,PgSelectSingle49,PgClassExpression50,PgClassExpression56,PgClassExpression62,PgClassExpression63,PgClassExpression69 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket8 - Bucket6 --> Bucket7 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more-fragments.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more-fragments.mermaid index 4c2af22a2e..69750e10d1 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more-fragments.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more-fragments.mermaid @@ -21,116 +21,116 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸsingle_table_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈4]"]:::plan - Lambda26{{"Lambda[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈3]"]:::plan + Lambda26{{"Lambda[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda26 & PgSelectSingle24 --> PgSingleTablePolymorphic27 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression25 PgClassExpression25 --> Lambda26 - PgClassExpression80{{"PgClassExpression[80∈4]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression80{{"PgClassExpression[80∈3]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression80 - PgClassExpression82{{"PgClassExpression[82∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression82{{"PgClassExpression[82∈3]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression82 - PgClassExpression83{{"PgClassExpression[83∈4]
ᐸ__single_t...author_id”ᐳ"}}:::plan + PgClassExpression83{{"PgClassExpression[83∈3]
ᐸ__single_t...author_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression83 - PgClassExpression90{{"PgClassExpression[90∈4]
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression90{{"PgClassExpression[90∈3]
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression90 - PgClassExpression91{{"PgClassExpression[91∈4]
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression91{{"PgClassExpression[91∈3]
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression91 - PgClassExpression92{{"PgClassExpression[92∈4]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression92{{"PgClassExpression[92∈3]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression92 - PgClassExpression93{{"PgClassExpression[93∈4]
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression93{{"PgClassExpression[93∈3]
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression93 - PgClassExpression94{{"PgClassExpression[94∈4]
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression94{{"PgClassExpression[94∈3]
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression94 - PgSelect29[["PgSelect[29∈5]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__single_t...parent_id”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgSelect29[["PgSelect[29∈4]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__single_t...parent_id”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan Object9 & PgClassExpression28 --> PgSelect29 - PgSingleTablePolymorphic38["PgSingleTablePolymorphic[38∈5]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]:::plan - Lambda37{{"Lambda[37∈5]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan - PgSelectSingle35{{"PgSelectSingle[35∈5]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic38["PgSingleTablePolymorphic[38∈4]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]:::plan + Lambda37{{"Lambda[37∈4]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + PgSelectSingle35{{"PgSelectSingle[35∈4]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda37 & PgSelectSingle35 --> PgSingleTablePolymorphic38 - PgSelect84[["PgSelect[84∈5]
ᐸpeopleᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + PgSelect84[["PgSelect[84∈4]
ᐸpeopleᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan Object9 & PgClassExpression83 --> PgSelect84 PgSelectSingle24 --> PgClassExpression28 - First33{{"First[33∈5]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈5]"]]:::plan + First33{{"First[33∈4]"}}:::plan + PgSelectRows34[["PgSelectRows[34∈4]"]]:::plan PgSelectRows34 --> First33 PgSelect29 --> PgSelectRows34 First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan PgSelectSingle35 --> PgClassExpression36 PgClassExpression36 --> Lambda37 - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression41 - PgClassExpression42{{"PgClassExpression[42∈5]
ᐸ__single_t...author_id”ᐳ"}}:::plan + PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__single_t...author_id”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression42 - PgClassExpression51{{"PgClassExpression[51∈5]
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression51{{"PgClassExpression[51∈4]
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression52{{"PgClassExpression[52∈4]
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression53{{"PgClassExpression[53∈4]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈5]
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression54{{"PgClassExpression[54∈4]
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression54 - PgClassExpression55{{"PgClassExpression[55∈5]
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression55{{"PgClassExpression[55∈4]
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression55 - First86{{"First[86∈5]"}}:::plan - PgSelectRows87[["PgSelectRows[87∈5]"]]:::plan + First86{{"First[86∈4]"}}:::plan + PgSelectRows87[["PgSelectRows[87∈4]"]]:::plan PgSelectRows87 --> First86 PgSelect84 --> PgSelectRows87 - PgSelectSingle88{{"PgSelectSingle[88∈5]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle88{{"PgSelectSingle[88∈4]
ᐸpeopleᐳ"}}:::plan First86 --> PgSelectSingle88 - PgClassExpression95{{"PgClassExpression[95∈5]
ᐸ__single_t...__.”title”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist"}}:::plan + PgClassExpression89{{"PgClassExpression[89∈4]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle88 --> PgClassExpression89 + PgClassExpression95{{"PgClassExpression[95∈4]
ᐸ__single_t...__.”title”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist"}}:::plan PgSelectSingle24 --> PgClassExpression95 - PgClassExpression134{{"PgClassExpression[134∈5]
ᐸ__single_t...scription”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan + PgClassExpression134{{"PgClassExpression[134∈4]
ᐸ__single_t...scription”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan PgSelectSingle24 --> PgClassExpression134 - PgClassExpression135{{"PgClassExpression[135∈5]
ᐸ__single_t...s__.”note”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan + PgClassExpression135{{"PgClassExpression[135∈4]
ᐸ__single_t...s__.”note”ᐳ
ᐳSingleTablePost
ᐳSingleTableChecklistItem"}}:::plan PgSelectSingle24 --> PgClassExpression135 - PgClassExpression174{{"PgClassExpression[174∈5]
ᐸ__single_t...__.”color”ᐳ
ᐳSingleTableDivider"}}:::plan + PgClassExpression174{{"PgClassExpression[174∈4]
ᐸ__single_t...__.”color”ᐳ
ᐳSingleTableDivider"}}:::plan PgSelectSingle24 --> PgClassExpression174 - PgSelect43[["PgSelect[43∈6]
ᐸpeopleᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"]]:::plan + PgSelect43[["PgSelect[43∈5]
ᐸpeopleᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"]]:::plan Object9 & PgClassExpression42 --> PgSelect43 - First47{{"First[47∈6]"}}:::plan - PgSelectRows48[["PgSelectRows[48∈6]"]]:::plan + First47{{"First[47∈5]"}}:::plan + PgSelectRows48[["PgSelectRows[48∈5]"]]:::plan PgSelectRows48 --> First47 PgSelect43 --> PgSelectRows48 - PgSelectSingle49{{"PgSelectSingle[49∈6]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle49{{"PgSelectSingle[49∈5]
ᐸpeopleᐳ"}}:::plan First47 --> PgSelectSingle49 - PgClassExpression56{{"PgClassExpression[56∈6]
ᐸ__single_t...__.”title”ᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist"}}:::plan + PgClassExpression50{{"PgClassExpression[50∈5]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle49 --> PgClassExpression50 + PgClassExpression56{{"PgClassExpression[56∈5]
ᐸ__single_t...__.”title”ᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist"}}:::plan PgSelectSingle35 --> PgClassExpression56 - PgClassExpression62{{"PgClassExpression[62∈6]
ᐸ__single_t...scription”ᐳ
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgClassExpression62{{"PgClassExpression[62∈5]
ᐸ__single_t...scription”ᐳ
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan PgSelectSingle35 --> PgClassExpression62 - PgClassExpression63{{"PgClassExpression[63∈6]
ᐸ__single_t...s__.”note”ᐳ
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgClassExpression63{{"PgClassExpression[63∈5]
ᐸ__single_t...s__.”note”ᐳ
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan PgSelectSingle35 --> PgClassExpression63 - PgClassExpression69{{"PgClassExpression[69∈6]
ᐸ__single_t...__.”color”ᐳ
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableDivider"}}:::plan + PgClassExpression69{{"PgClassExpression[69∈5]
ᐸ__single_t...__.”color”ᐳ
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableDivider"}}:::plan PgSelectSingle35 --> PgClassExpression69 - PgClassExpression50{{"PgClassExpression[50∈7]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression50 - PgClassExpression89{{"PgClassExpression[89∈8]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle88 --> PgClassExpression89 %% define steps @@ -138,34 +138,23 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸsingle_table_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸsingle_table_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 80, 82, 83, 90, 91, 92, 93, 94
2: PgSingleTablePolymorphic[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 80, 82, 83, 90, 91, 92, 93, 94
2: PgSingleTablePolymorphic[27]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression80,PgClassExpression82,PgClassExpression83,PgClassExpression90,PgClassExpression91,PgClassExpression92,PgClassExpression93,PgClassExpression94 bucket3 + Bucket4("Bucket 4 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 9, 83, 27, 80, 25, 82, 90, 91, 92, 93, 94
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[84]
ᐳ: 28, 95, 134, 135, 174
2: PgSelect[29], PgSelectRows[87]
ᐳ: 86, 88, 89
3: PgSelectRows[34]
ᐳ: 33, 35, 36, 37, 41, 42, 51, 52, 53, 54, 55
4: PgSingleTablePolymorphic[38]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression80,PgClassExpression82,PgClassExpression83,PgClassExpression90,PgClassExpression91,PgClassExpression92,PgClassExpression93,PgClassExpression94 bucket4 - Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 9, 83, 27, 80, 25, 82, 90, 91, 92, 93, 94
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[84]
ᐳ: 28, 95, 134, 135, 174
2: PgSelect[29], PgSelectRows[87]
ᐳ: First[86], PgSelectSingle[88]
3: PgSelectRows[34]
ᐳ: 33, 35, 36, 37, 41, 42, 51, 52, 53, 54, 55
4: PgSingleTablePolymorphic[38]"):::bucket + class Bucket4,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,Lambda37,PgSingleTablePolymorphic38,PgClassExpression41,PgClassExpression42,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54,PgClassExpression55,PgSelect84,First86,PgSelectRows87,PgSelectSingle88,PgClassExpression89,PgClassExpression95,PgClassExpression134,PgClassExpression135,PgClassExpression174 bucket4 + Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 9, 42, 35, 38, 28, 36, 41, 51, 52, 53, 54, 55
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem

1: PgSelect[43]
ᐳ: 56, 62, 63, 69
2: PgSelectRows[48]
ᐳ: 47, 49, 50"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,Lambda37,PgSingleTablePolymorphic38,PgClassExpression41,PgClassExpression42,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54,PgClassExpression55,PgSelect84,First86,PgSelectRows87,PgSelectSingle88,PgClassExpression95,PgClassExpression134,PgClassExpression135,PgClassExpression174 bucket5 - Bucket6("Bucket 6 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 9, 42, 35, 38, 28, 36, 41, 51, 52, 53, 54, 55
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem

1: PgSelect[43]
ᐳ: 56, 62, 63, 69
2: PgSelectRows[48]
ᐳ: First[47], PgSelectSingle[49]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect43,First47,PgSelectRows48,PgSelectSingle49,PgClassExpression56,PgClassExpression62,PgClassExpression63,PgClassExpression69 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 49

ROOT PgSelectSingle{6}ᐸpeopleᐳ[49]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression50 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 88

ROOT PgSelectSingle{5}ᐸpeopleᐳ[88]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression89 bucket8 + class Bucket5,PgSelect43,First47,PgSelectRows48,PgSelectSingle49,PgClassExpression50,PgClassExpression56,PgClassExpression62,PgClassExpression63,PgClassExpression69 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket8 - Bucket6 --> Bucket7 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more.deopt.mermaid index 24567a89d2..a8e1061cc2 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more.deopt.mermaid @@ -21,100 +21,100 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸsingle_table_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈4]"]:::plan - Lambda26{{"Lambda[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈3]"]:::plan + Lambda26{{"Lambda[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda26 & PgSelectSingle24 --> PgSingleTablePolymorphic27 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression25 PgClassExpression25 --> Lambda26 - PgClassExpression76{{"PgClassExpression[76∈4]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression76{{"PgClassExpression[76∈3]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression76 - PgClassExpression78{{"PgClassExpression[78∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression78{{"PgClassExpression[78∈3]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression78 - PgClassExpression79{{"PgClassExpression[79∈4]
ᐸ__single_t...author_id”ᐳ"}}:::plan + PgClassExpression79{{"PgClassExpression[79∈3]
ᐸ__single_t...author_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression79 - PgClassExpression86{{"PgClassExpression[86∈4]
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression86{{"PgClassExpression[86∈3]
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression86 - PgClassExpression87{{"PgClassExpression[87∈4]
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression87{{"PgClassExpression[87∈3]
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression87 - PgClassExpression88{{"PgClassExpression[88∈4]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression88{{"PgClassExpression[88∈3]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression88 - PgClassExpression89{{"PgClassExpression[89∈4]
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression89{{"PgClassExpression[89∈3]
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression89 - PgClassExpression90{{"PgClassExpression[90∈4]
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression90{{"PgClassExpression[90∈3]
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression90 - PgSelect29[["PgSelect[29∈5]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__single_t...parent_id”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgSelect29[["PgSelect[29∈4]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__single_t...parent_id”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan Object9 & PgClassExpression28 --> PgSelect29 - PgSingleTablePolymorphic38["PgSingleTablePolymorphic[38∈5]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]:::plan - Lambda37{{"Lambda[37∈5]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan - PgSelectSingle35{{"PgSelectSingle[35∈5]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic38["PgSingleTablePolymorphic[38∈4]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]:::plan + Lambda37{{"Lambda[37∈4]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + PgSelectSingle35{{"PgSelectSingle[35∈4]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda37 & PgSelectSingle35 --> PgSingleTablePolymorphic38 - PgSelect80[["PgSelect[80∈5]
ᐸpeopleᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + PgSelect80[["PgSelect[80∈4]
ᐸpeopleᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan Object9 & PgClassExpression79 --> PgSelect80 PgSelectSingle24 --> PgClassExpression28 - First33{{"First[33∈5]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈5]"]]:::plan + First33{{"First[33∈4]"}}:::plan + PgSelectRows34[["PgSelectRows[34∈4]"]]:::plan PgSelectRows34 --> First33 PgSelect29 --> PgSelectRows34 First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan PgSelectSingle35 --> PgClassExpression36 PgClassExpression36 --> Lambda37 - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression41 - PgClassExpression42{{"PgClassExpression[42∈5]
ᐸ__single_t...author_id”ᐳ"}}:::plan + PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__single_t...author_id”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression42 - PgClassExpression51{{"PgClassExpression[51∈5]
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression51{{"PgClassExpression[51∈4]
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression52{{"PgClassExpression[52∈4]
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression53{{"PgClassExpression[53∈4]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈5]
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression54{{"PgClassExpression[54∈4]
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression54 - PgClassExpression55{{"PgClassExpression[55∈5]
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression55{{"PgClassExpression[55∈4]
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression55 - First82{{"First[82∈5]"}}:::plan - PgSelectRows83[["PgSelectRows[83∈5]"]]:::plan + First82{{"First[82∈4]"}}:::plan + PgSelectRows83[["PgSelectRows[83∈4]"]]:::plan PgSelectRows83 --> First82 PgSelect80 --> PgSelectRows83 - PgSelectSingle84{{"PgSelectSingle[84∈5]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle84{{"PgSelectSingle[84∈4]
ᐸpeopleᐳ"}}:::plan First82 --> PgSelectSingle84 - PgSelect43[["PgSelect[43∈6]
ᐸpeopleᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"]]:::plan + PgClassExpression85{{"PgClassExpression[85∈4]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle84 --> PgClassExpression85 + PgSelect43[["PgSelect[43∈5]
ᐸpeopleᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"]]:::plan Object9 & PgClassExpression42 --> PgSelect43 - First47{{"First[47∈6]"}}:::plan - PgSelectRows48[["PgSelectRows[48∈6]"]]:::plan + First47{{"First[47∈5]"}}:::plan + PgSelectRows48[["PgSelectRows[48∈5]"]]:::plan PgSelectRows48 --> First47 PgSelect43 --> PgSelectRows48 - PgSelectSingle49{{"PgSelectSingle[49∈6]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle49{{"PgSelectSingle[49∈5]
ᐸpeopleᐳ"}}:::plan First47 --> PgSelectSingle49 - PgClassExpression50{{"PgClassExpression[50∈7]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression50{{"PgClassExpression[50∈5]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle49 --> PgClassExpression50 - PgClassExpression85{{"PgClassExpression[85∈8]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle84 --> PgClassExpression85 %% define steps @@ -122,34 +122,23 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸsingle_table_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸsingle_table_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 76, 78, 79, 86, 87, 88, 89, 90
2: PgSingleTablePolymorphic[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 76, 78, 79, 86, 87, 88, 89, 90
2: PgSingleTablePolymorphic[27]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression76,PgClassExpression78,PgClassExpression79,PgClassExpression86,PgClassExpression87,PgClassExpression88,PgClassExpression89,PgClassExpression90 bucket3 + Bucket4("Bucket 4 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 9, 79, 27, 76, 25, 78, 86, 87, 88, 89, 90
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[80]
ᐳ: PgClassExpression[28]
2: PgSelect[29], PgSelectRows[83]
ᐳ: 82, 84, 85
3: PgSelectRows[34]
ᐳ: 33, 35, 36, 37, 41, 42, 51, 52, 53, 54, 55
4: PgSingleTablePolymorphic[38]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression76,PgClassExpression78,PgClassExpression79,PgClassExpression86,PgClassExpression87,PgClassExpression88,PgClassExpression89,PgClassExpression90 bucket4 - Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 9, 79, 27, 76, 25, 78, 86, 87, 88, 89, 90
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[80]
ᐳ: PgClassExpression[28]
2: PgSelect[29], PgSelectRows[83]
ᐳ: First[82], PgSelectSingle[84]
3: PgSelectRows[34]
ᐳ: 33, 35, 36, 37, 41, 42, 51, 52, 53, 54, 55
4: PgSingleTablePolymorphic[38]"):::bucket + class Bucket4,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,Lambda37,PgSingleTablePolymorphic38,PgClassExpression41,PgClassExpression42,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54,PgClassExpression55,PgSelect80,First82,PgSelectRows83,PgSelectSingle84,PgClassExpression85 bucket4 + Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 9, 42, 38, 35, 28, 36, 41, 51, 52, 53, 54, 55
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem

1: PgSelect[43]
2: PgSelectRows[48]
ᐳ: 47, 49, 50"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,Lambda37,PgSingleTablePolymorphic38,PgClassExpression41,PgClassExpression42,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54,PgClassExpression55,PgSelect80,First82,PgSelectRows83,PgSelectSingle84 bucket5 - Bucket6("Bucket 6 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 9, 42, 38, 35, 28, 36, 41, 51, 52, 53, 54, 55
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem

1: PgSelect[43]
2: PgSelectRows[48]
ᐳ: First[47], PgSelectSingle[49]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect43,First47,PgSelectRows48,PgSelectSingle49 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 49

ROOT PgSelectSingle{6}ᐸpeopleᐳ[49]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression50 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 84

ROOT PgSelectSingle{5}ᐸpeopleᐳ[84]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression85 bucket8 + class Bucket5,PgSelect43,First47,PgSelectRows48,PgSelectSingle49,PgClassExpression50 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket8 - Bucket6 --> Bucket7 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more.mermaid index 24567a89d2..a8e1061cc2 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested-more.mermaid @@ -21,100 +21,100 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸsingle_table_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈4]"]:::plan - Lambda26{{"Lambda[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈3]"]:::plan + Lambda26{{"Lambda[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda26 & PgSelectSingle24 --> PgSingleTablePolymorphic27 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression25 PgClassExpression25 --> Lambda26 - PgClassExpression76{{"PgClassExpression[76∈4]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression76{{"PgClassExpression[76∈3]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression76 - PgClassExpression78{{"PgClassExpression[78∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression78{{"PgClassExpression[78∈3]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression78 - PgClassExpression79{{"PgClassExpression[79∈4]
ᐸ__single_t...author_id”ᐳ"}}:::plan + PgClassExpression79{{"PgClassExpression[79∈3]
ᐸ__single_t...author_id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression79 - PgClassExpression86{{"PgClassExpression[86∈4]
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression86{{"PgClassExpression[86∈3]
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression86 - PgClassExpression87{{"PgClassExpression[87∈4]
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression87{{"PgClassExpression[87∈3]
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression87 - PgClassExpression88{{"PgClassExpression[88∈4]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression88{{"PgClassExpression[88∈3]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression88 - PgClassExpression89{{"PgClassExpression[89∈4]
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression89{{"PgClassExpression[89∈3]
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression89 - PgClassExpression90{{"PgClassExpression[90∈4]
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression90{{"PgClassExpression[90∈3]
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression90 - PgSelect29[["PgSelect[29∈5]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__single_t...parent_id”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgSelect29[["PgSelect[29∈4]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__single_t...parent_id”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan Object9 & PgClassExpression28 --> PgSelect29 - PgSingleTablePolymorphic38["PgSingleTablePolymorphic[38∈5]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]:::plan - Lambda37{{"Lambda[37∈5]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan - PgSelectSingle35{{"PgSelectSingle[35∈5]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic38["PgSingleTablePolymorphic[38∈4]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]:::plan + Lambda37{{"Lambda[37∈4]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + PgSelectSingle35{{"PgSelectSingle[35∈4]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda37 & PgSelectSingle35 --> PgSingleTablePolymorphic38 - PgSelect80[["PgSelect[80∈5]
ᐸpeopleᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + PgSelect80[["PgSelect[80∈4]
ᐸpeopleᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan Object9 & PgClassExpression79 --> PgSelect80 PgSelectSingle24 --> PgClassExpression28 - First33{{"First[33∈5]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈5]"]]:::plan + First33{{"First[33∈4]"}}:::plan + PgSelectRows34[["PgSelectRows[34∈4]"]]:::plan PgSelectRows34 --> First33 PgSelect29 --> PgSelectRows34 First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan PgSelectSingle35 --> PgClassExpression36 PgClassExpression36 --> Lambda37 - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression41 - PgClassExpression42{{"PgClassExpression[42∈5]
ᐸ__single_t...author_id”ᐳ"}}:::plan + PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__single_t...author_id”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression42 - PgClassExpression51{{"PgClassExpression[51∈5]
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression51{{"PgClassExpression[51∈4]
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression52{{"PgClassExpression[52∈4]
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression53{{"PgClassExpression[53∈4]
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈5]
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression54{{"PgClassExpression[54∈4]
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression54 - PgClassExpression55{{"PgClassExpression[55∈5]
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression55{{"PgClassExpression[55∈4]
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression55 - First82{{"First[82∈5]"}}:::plan - PgSelectRows83[["PgSelectRows[83∈5]"]]:::plan + First82{{"First[82∈4]"}}:::plan + PgSelectRows83[["PgSelectRows[83∈4]"]]:::plan PgSelectRows83 --> First82 PgSelect80 --> PgSelectRows83 - PgSelectSingle84{{"PgSelectSingle[84∈5]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle84{{"PgSelectSingle[84∈4]
ᐸpeopleᐳ"}}:::plan First82 --> PgSelectSingle84 - PgSelect43[["PgSelect[43∈6]
ᐸpeopleᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"]]:::plan + PgClassExpression85{{"PgClassExpression[85∈4]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle84 --> PgClassExpression85 + PgSelect43[["PgSelect[43∈5]
ᐸpeopleᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"]]:::plan Object9 & PgClassExpression42 --> PgSelect43 - First47{{"First[47∈6]"}}:::plan - PgSelectRows48[["PgSelectRows[48∈6]"]]:::plan + First47{{"First[47∈5]"}}:::plan + PgSelectRows48[["PgSelectRows[48∈5]"]]:::plan PgSelectRows48 --> First47 PgSelect43 --> PgSelectRows48 - PgSelectSingle49{{"PgSelectSingle[49∈6]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle49{{"PgSelectSingle[49∈5]
ᐸpeopleᐳ"}}:::plan First47 --> PgSelectSingle49 - PgClassExpression50{{"PgClassExpression[50∈7]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression50{{"PgClassExpression[50∈5]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle49 --> PgClassExpression50 - PgClassExpression85{{"PgClassExpression[85∈8]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle84 --> PgClassExpression85 %% define steps @@ -122,34 +122,23 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸsingle_table_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸsingle_table_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 76, 78, 79, 86, 87, 88, 89, 90
2: PgSingleTablePolymorphic[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 76, 78, 79, 86, 87, 88, 89, 90
2: PgSingleTablePolymorphic[27]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression76,PgClassExpression78,PgClassExpression79,PgClassExpression86,PgClassExpression87,PgClassExpression88,PgClassExpression89,PgClassExpression90 bucket3 + Bucket4("Bucket 4 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 9, 79, 27, 76, 25, 78, 86, 87, 88, 89, 90
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[80]
ᐳ: PgClassExpression[28]
2: PgSelect[29], PgSelectRows[83]
ᐳ: 82, 84, 85
3: PgSelectRows[34]
ᐳ: 33, 35, 36, 37, 41, 42, 51, 52, 53, 54, 55
4: PgSingleTablePolymorphic[38]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression76,PgClassExpression78,PgClassExpression79,PgClassExpression86,PgClassExpression87,PgClassExpression88,PgClassExpression89,PgClassExpression90 bucket4 - Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 9, 79, 27, 76, 25, 78, 86, 87, 88, 89, 90
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[80]
ᐳ: PgClassExpression[28]
2: PgSelect[29], PgSelectRows[83]
ᐳ: First[82], PgSelectSingle[84]
3: PgSelectRows[34]
ᐳ: 33, 35, 36, 37, 41, 42, 51, 52, 53, 54, 55
4: PgSingleTablePolymorphic[38]"):::bucket + class Bucket4,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,Lambda37,PgSingleTablePolymorphic38,PgClassExpression41,PgClassExpression42,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54,PgClassExpression55,PgSelect80,First82,PgSelectRows83,PgSelectSingle84,PgClassExpression85 bucket4 + Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 9, 42, 38, 35, 28, 36, 41, 51, 52, 53, 54, 55
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem

1: PgSelect[43]
2: PgSelectRows[48]
ᐳ: 47, 49, 50"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,Lambda37,PgSingleTablePolymorphic38,PgClassExpression41,PgClassExpression42,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54,PgClassExpression55,PgSelect80,First82,PgSelectRows83,PgSelectSingle84 bucket5 - Bucket6("Bucket 6 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 9, 42, 38, 35, 28, 36, 41, 51, 52, 53, 54, 55
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem

1: PgSelect[43]
2: PgSelectRows[48]
ᐳ: First[47], PgSelectSingle[49]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect43,First47,PgSelectRows48,PgSelectSingle49 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 49

ROOT PgSelectSingle{6}ᐸpeopleᐳ[49]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression50 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 84

ROOT PgSelectSingle{5}ᐸpeopleᐳ[84]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression85 bucket8 + class Bucket5,PgSelect43,First47,PgSelectRows48,PgSelectSingle49,PgClassExpression50 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket8 - Bucket6 --> Bucket7 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested.deopt.mermaid index ae78bff875..7f0e8595c1 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested.deopt.mermaid @@ -21,55 +21,55 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸsingle_table_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈4]"]:::plan - Lambda26{{"Lambda[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈3]"]:::plan + Lambda26{{"Lambda[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda26 & PgSelectSingle24 --> PgSingleTablePolymorphic27 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression25 PgClassExpression25 --> Lambda26 - PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression42{{"PgClassExpression[42∈3]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression42 - PgClassExpression44{{"PgClassExpression[44∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression44{{"PgClassExpression[44∈3]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression44 - PgSelect29[["PgSelect[29∈5]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__single_t...parent_id”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgSelect29[["PgSelect[29∈4]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__single_t...parent_id”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan Object9 & PgClassExpression28 --> PgSelect29 - PgSingleTablePolymorphic38["PgSingleTablePolymorphic[38∈5]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]:::plan - Lambda37{{"Lambda[37∈5]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan - PgSelectSingle35{{"PgSelectSingle[35∈5]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic38["PgSingleTablePolymorphic[38∈4]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]:::plan + Lambda37{{"Lambda[37∈4]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + PgSelectSingle35{{"PgSelectSingle[35∈4]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda37 & PgSelectSingle35 --> PgSingleTablePolymorphic38 PgSelectSingle24 --> PgClassExpression28 - First33{{"First[33∈5]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈5]"]]:::plan + First33{{"First[33∈4]"}}:::plan + PgSelectRows34[["PgSelectRows[34∈4]"]]:::plan PgSelectRows34 --> First33 PgSelect29 --> PgSelectRows34 First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan PgSelectSingle35 --> PgClassExpression36 PgClassExpression36 --> Lambda37 - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression41 %% define steps @@ -78,27 +78,23 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸsingle_table_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸsingle_table_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 42, 44
2: PgSingleTablePolymorphic[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 42, 44
2: PgSingleTablePolymorphic[27]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression42,PgClassExpression44 bucket3 + Bucket4("Bucket 4 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 9, 27, 42, 25, 44
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1:
ᐳ: PgClassExpression[28]
2: PgSelect[29]
3: PgSelectRows[34]
ᐳ: 33, 35, 36, 37, 41
4: PgSingleTablePolymorphic[38]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression42,PgClassExpression44 bucket4 - Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 9, 27, 42, 25, 44
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1:
ᐳ: PgClassExpression[28]
2: PgSelect[29]
3: PgSelectRows[34]
ᐳ: 33, 35, 36, 37, 41
4: PgSingleTablePolymorphic[38]"):::bucket + class Bucket4,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,Lambda37,PgSingleTablePolymorphic38,PgClassExpression41 bucket4 + Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 38, 35, 28, 36, 41
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,Lambda37,PgSingleTablePolymorphic38,PgClassExpression41 bucket5 - Bucket6("Bucket 6 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 38, 35, 28, 36, 41
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6 bucket6 + class Bucket5 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested.mermaid index ae78bff875..7f0e8595c1 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/nested.mermaid @@ -21,55 +21,55 @@ graph TD PgSelectRows10[["PgSelectRows[10∈0] ➊"]]:::plan PgSelect6 --> PgSelectRows10 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect15[["PgSelect[15∈1]
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object9 & PgClassExpression14 --> PgSelect15 + __ListTransform19[["__ListTransform[19∈1]
ᐸeach:15ᐳ"]]:::plan + PgSelectRows20[["PgSelectRows[20∈1]"]]:::plan + PgSelectRows20 & PgSelect15 --> __ListTransform19 __Item11[/"__Item[11∈1]
ᐸ10ᐳ"\]:::itemplan PgSelectRows10 ==> __Item11 PgSelectSingle12{{"PgSelectSingle[12∈1]
ᐸpeopleᐳ"}}:::plan __Item11 --> PgSelectSingle12 - PgSelect15[["PgSelect[15∈2]
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object9 & PgClassExpression14 --> PgSelect15 - __ListTransform19[["__ListTransform[19∈2]
ᐸeach:15ᐳ"]]:::plan - PgSelectRows20[["PgSelectRows[20∈2]"]]:::plan - PgSelectRows20 & PgSelect15 --> __ListTransform19 - PgClassExpression13{{"PgClassExpression[13∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgSelectSingle12 --> PgClassExpression14 PgSelect15 --> PgSelectRows20 - __Item21[/"__Item[21∈3]
ᐸ20ᐳ"\]:::itemplan + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan PgSelectRows20 -.-> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈3]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸsingle_table_itemsᐳ"}}:::plan __Item21 --> PgSelectSingle22 - PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈4]"]:::plan - Lambda26{{"Lambda[26∈4]"}}:::plan - PgSelectSingle24{{"PgSelectSingle[24∈4]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic27["PgSingleTablePolymorphic[27∈3]"]:::plan + Lambda26{{"Lambda[26∈3]"}}:::plan + PgSelectSingle24{{"PgSelectSingle[24∈3]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda26 & PgSelectSingle24 --> PgSingleTablePolymorphic27 - __Item23[/"__Item[23∈4]
ᐸ19ᐳ"\]:::itemplan + __Item23[/"__Item[23∈3]
ᐸ19ᐳ"\]:::itemplan __ListTransform19 ==> __Item23 __Item23 --> PgSelectSingle24 - PgClassExpression25{{"PgClassExpression[25∈4]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression25 PgClassExpression25 --> Lambda26 - PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression42{{"PgClassExpression[42∈3]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression42 - PgClassExpression44{{"PgClassExpression[44∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression44{{"PgClassExpression[44∈3]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle24 --> PgClassExpression44 - PgSelect29[["PgSelect[29∈5]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈5]
ᐸ__single_t...parent_id”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgSelect29[["PgSelect[29∈4]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__single_t...parent_id”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan Object9 & PgClassExpression28 --> PgSelect29 - PgSingleTablePolymorphic38["PgSingleTablePolymorphic[38∈5]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]:::plan - Lambda37{{"Lambda[37∈5]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan - PgSelectSingle35{{"PgSelectSingle[35∈5]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSingleTablePolymorphic38["PgSingleTablePolymorphic[38∈4]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]:::plan + Lambda37{{"Lambda[37∈4]
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + PgSelectSingle35{{"PgSelectSingle[35∈4]
ᐸsingle_table_itemsᐳ"}}:::plan Lambda37 & PgSelectSingle35 --> PgSingleTablePolymorphic38 PgSelectSingle24 --> PgClassExpression28 - First33{{"First[33∈5]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈5]"]]:::plan + First33{{"First[33∈4]"}}:::plan + PgSelectRows34[["PgSelectRows[34∈4]"]]:::plan PgSelectRows34 --> First33 PgSelect29 --> PgSelectRows34 First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan PgSelectSingle35 --> PgClassExpression36 PgClassExpression36 --> Lambda37 - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle35 --> PgClassExpression41 %% define steps @@ -78,27 +78,23 @@ graph TD Bucket0("Bucket 0 (root)

1:
ᐳ: Access[7], Access[8], Object[9]
2: PgSelect[6]
3: PgSelectRows[10]"):::bucket classDef bucket0 stroke:#696969 class Bucket0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,PgSelectRows10 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]"):::bucket + Bucket1("Bucket 1 (listItem)
Deps: 9

ROOT __Item{1}ᐸ10ᐳ[11]
1:
ᐳ: 12, 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item11,PgSelectSingle12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 9

ROOT PgSelectSingle{1}ᐸpeopleᐳ[12]
1:
ᐳ: 13, 14
2: PgSelect[15]
3: PgSelectRows[20]
4: __ListTransform[19]"):::bucket + class Bucket1,__Item11,PgSelectSingle12,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸsingle_table_itemsᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression13,PgClassExpression14,PgSelect15,__ListTransform19,PgSelectRows20 bucket2 - Bucket3("Bucket 3 (subroutine)

ROOT PgSelectSingle{3}ᐸsingle_table_itemsᐳ[22]"):::bucket + class Bucket2,__Item21,PgSelectSingle22 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 9

ROOT __Item{3}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 42, 44
2: PgSingleTablePolymorphic[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21,PgSelectSingle22 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 9

ROOT __Item{4}ᐸ19ᐳ[23]
1:
ᐳ: 24, 25, 26, 42, 44
2: PgSingleTablePolymorphic[27]"):::bucket + class Bucket3,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression42,PgClassExpression44 bucket3 + Bucket4("Bucket 4 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 9, 27, 42, 25, 44
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1:
ᐳ: PgClassExpression[28]
2: PgSelect[29]
3: PgSelectRows[34]
ᐳ: 33, 35, 36, 37, 41
4: PgSingleTablePolymorphic[38]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression42,PgClassExpression44 bucket4 - Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 24, 9, 27, 42, 25, 44
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1:
ᐳ: PgClassExpression[28]
2: PgSelect[29]
3: PgSelectRows[34]
ᐳ: 33, 35, 36, 37, 41
4: PgSingleTablePolymorphic[38]"):::bucket + class Bucket4,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,Lambda37,PgSingleTablePolymorphic38,PgClassExpression41 bucket4 + Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 38, 35, 28, 36, 41
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,Lambda37,PgSingleTablePolymorphic38,PgClassExpression41 bucket5 - Bucket6("Bucket 6 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 38, 35, 28, 36, 41
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6 bucket6 + class Bucket5 bucket5 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + Bucket1 --> Bucket2 & Bucket3 + Bucket3 --> Bucket4 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/relation.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/relation.deopt.mermaid index 99896716d4..d0a61d8b62 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/relation.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/relation.deopt.mermaid @@ -60,7 +60,7 @@ graph TD PgSelect30 --> PgSelectRows35 PgSelectSingle36{{"PgSelectSingle[36∈2] ➊
ᐸpeopleᐳ"}}:::plan First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈3] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈2] ➊
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle36 --> PgClassExpression37 %% define steps @@ -72,13 +72,9 @@ graph TD Bucket1("Bucket 1 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 13, 10, 16, 58
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1:
ᐳ: PgClassExpression[17]
2: PgSelect[18]
3: PgSelectRows[23]
ᐳ: 22, 24, 25, 26, 29
4: PgSingleTablePolymorphic[27]"):::bucket classDef bucket1 stroke:#00bfff class Bucket1,PgClassExpression17,PgSelect18,First22,PgSelectRows23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression29 bucket1 - Bucket2("Bucket 2 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 10, 29, 27, 24, 17
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem

1: PgSelect[30]
2: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket + Bucket2("Bucket 2 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 10, 29, 27, 24, 17
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem

1: PgSelect[30]
2: PgSelectRows[35]
ᐳ: 34, 36, 37"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{2}ᐸpeopleᐳ[36]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression37 bucket3 + class Bucket2,PgSelect30,First34,PgSelectRows35,PgSelectSingle36,PgClassExpression37 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/relation.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/relation.mermaid index 99896716d4..d0a61d8b62 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/relation.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/relation.mermaid @@ -60,7 +60,7 @@ graph TD PgSelect30 --> PgSelectRows35 PgSelectSingle36{{"PgSelectSingle[36∈2] ➊
ᐸpeopleᐳ"}}:::plan First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈3] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈2] ➊
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle36 --> PgClassExpression37 %% define steps @@ -72,13 +72,9 @@ graph TD Bucket1("Bucket 1 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 13, 10, 16, 58
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1:
ᐳ: PgClassExpression[17]
2: PgSelect[18]
3: PgSelectRows[23]
ᐳ: 22, 24, 25, 26, 29
4: PgSingleTablePolymorphic[27]"):::bucket classDef bucket1 stroke:#00bfff class Bucket1,PgClassExpression17,PgSelect18,First22,PgSelectRows23,PgSelectSingle24,PgClassExpression25,Lambda26,PgSingleTablePolymorphic27,PgClassExpression29 bucket1 - Bucket2("Bucket 2 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 10, 29, 27, 24, 17
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem

1: PgSelect[30]
2: PgSelectRows[35]
ᐳ: First[34], PgSelectSingle[36]"):::bucket + Bucket2("Bucket 2 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 10, 29, 27, 24, 17
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem

1: PgSelect[30]
2: PgSelectRows[35]
ᐳ: 34, 36, 37"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgSelect30,First34,PgSelectRows35,PgSelectSingle36 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 36

ROOT PgSelectSingle{2}ᐸpeopleᐳ[36]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression37 bucket3 + class Bucket2,PgSelect30,First34,PgSelectRows35,PgSelectSingle36,PgClassExpression37 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-as-item.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-as-item.deopt.mermaid index 6d83d8c337..6faf95474a 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-as-item.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-as-item.deopt.mermaid @@ -26,34 +26,30 @@ graph TD PgSelect8 --> PgSelectRows13 PgSelectSingle14{{"PgSelectSingle[14∈0] ➊
ᐸsingle_table_itemsᐳ"}}:::plan First12 --> PgSelectSingle14 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression16 - PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression17{{"PgClassExpression[17∈0] ➊
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression17 - PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈0] ➊
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈1] ➊
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈0] ➊
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression23 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/interfaces-single-table/single-topic-as-item" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 24, 11
2: PgSelect[8]
3: PgSelectRows[13]
ᐳ: First[12], PgSelectSingle[14]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 24, 11
2: PgSelect[8]
3: PgSelectRows[13]
ᐳ: 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,First12,PgSelectRows13,PgSelectSingle14,Constant24 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14

ROOT PgSelectSingleᐸsingle_table_itemsᐳ[14]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,First12,PgSelectRows13,PgSelectSingle14,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,Constant24 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-as-item.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-as-item.mermaid index 6d83d8c337..6faf95474a 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-as-item.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-as-item.mermaid @@ -26,34 +26,30 @@ graph TD PgSelect8 --> PgSelectRows13 PgSelectSingle14{{"PgSelectSingle[14∈0] ➊
ᐸsingle_table_itemsᐳ"}}:::plan First12 --> PgSelectSingle14 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression16 - PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression17{{"PgClassExpression[17∈0] ➊
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression17 - PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈0] ➊
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈1] ➊
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈0] ➊
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression23 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/interfaces-single-table/single-topic-as-item" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 24, 11
2: PgSelect[8]
3: PgSelectRows[13]
ᐳ: First[12], PgSelectSingle[14]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 24, 11
2: PgSelect[8]
3: PgSelectRows[13]
ᐳ: 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,First12,PgSelectRows13,PgSelectSingle14,Constant24 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14

ROOT PgSelectSingleᐸsingle_table_itemsᐳ[14]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,First12,PgSelectRows13,PgSelectSingle14,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,Constant24 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-not-topic.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-not-topic.deopt.mermaid index 7754a34655..fe2eff4697 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-not-topic.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-not-topic.deopt.mermaid @@ -26,34 +26,30 @@ graph TD PgSelect8 --> PgSelectRows13 PgSelectSingle14{{"PgSelectSingle[14∈0] ➊
ᐸsingle_table_itemsᐳ"}}:::plan First12 --> PgSelectSingle14 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression16 - PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression17{{"PgClassExpression[17∈0] ➊
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression17 - PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈0] ➊
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈1] ➊
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈0] ➊
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression23 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/interfaces-single-table/single-topic-not-topic" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 24, 11
2: PgSelect[8]
3: PgSelectRows[13]
ᐳ: First[12], PgSelectSingle[14]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 24, 11
2: PgSelect[8]
3: PgSelectRows[13]
ᐳ: 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,First12,PgSelectRows13,PgSelectSingle14,Constant24 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14

ROOT PgSelectSingleᐸsingle_table_itemsᐳ[14]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,First12,PgSelectRows13,PgSelectSingle14,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,Constant24 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-not-topic.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-not-topic.mermaid index 7754a34655..fe2eff4697 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-not-topic.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic-not-topic.mermaid @@ -26,34 +26,30 @@ graph TD PgSelect8 --> PgSelectRows13 PgSelectSingle14{{"PgSelectSingle[14∈0] ➊
ᐸsingle_table_itemsᐳ"}}:::plan First12 --> PgSelectSingle14 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression16 - PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression17{{"PgClassExpression[17∈0] ➊
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression17 - PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈0] ➊
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈1] ➊
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈0] ➊
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression23 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/interfaces-single-table/single-topic-not-topic" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 24, 11
2: PgSelect[8]
3: PgSelectRows[13]
ᐳ: First[12], PgSelectSingle[14]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 24, 11
2: PgSelect[8]
3: PgSelectRows[13]
ᐳ: 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,First12,PgSelectRows13,PgSelectSingle14,Constant24 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14

ROOT PgSelectSingleᐸsingle_table_itemsᐳ[14]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,First12,PgSelectRows13,PgSelectSingle14,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,Constant24 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic.deopt.mermaid index 627a43ec3e..2f76acbfd7 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic.deopt.mermaid @@ -26,34 +26,30 @@ graph TD PgSelect8 --> PgSelectRows13 PgSelectSingle14{{"PgSelectSingle[14∈0] ➊
ᐸsingle_table_itemsᐳ"}}:::plan First12 --> PgSelectSingle14 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression16 - PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression17{{"PgClassExpression[17∈0] ➊
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression17 - PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈0] ➊
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈1] ➊
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈0] ➊
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression23 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/interfaces-single-table/single-topic" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 24, 11
2: PgSelect[8]
3: PgSelectRows[13]
ᐳ: First[12], PgSelectSingle[14]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 24, 11
2: PgSelect[8]
3: PgSelectRows[13]
ᐳ: 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,First12,PgSelectRows13,PgSelectSingle14,Constant24 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14

ROOT PgSelectSingleᐸsingle_table_itemsᐳ[14]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,First12,PgSelectRows13,PgSelectSingle14,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,Constant24 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic.mermaid index 627a43ec3e..2f76acbfd7 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-single-table/single-topic.mermaid @@ -26,34 +26,30 @@ graph TD PgSelect8 --> PgSelectRows13 PgSelectSingle14{{"PgSelectSingle[14∈0] ➊
ᐸsingle_table_itemsᐳ"}}:::plan First12 --> PgSelectSingle14 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression16 - PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__single_t...__.”type2”ᐳ"}}:::plan + PgClassExpression17{{"PgClassExpression[17∈0] ➊
ᐸ__single_t...__.”type2”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression17 - PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__single_t...”position”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈0] ➊
ᐸ__single_t...”position”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈1] ➊
ᐸ__single_t...reated_at”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈0] ➊
ᐸ__single_t...reated_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__single_t...pdated_at”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__single_t...pdated_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__single_t..._archived”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__single_t..._archived”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__single_t...chived_at”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__single_t...chived_at”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression23 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/interfaces-single-table/single-topic" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 24, 11
2: PgSelect[8]
3: PgSelectRows[13]
ᐳ: First[12], PgSelectSingle[14]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 24, 11
2: PgSelect[8]
3: PgSelectRows[13]
ᐳ: 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,First12,PgSelectRows13,PgSelectSingle14,Constant24 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14

ROOT PgSelectSingleᐸsingle_table_itemsᐳ[14]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,First12,PgSelectRows13,PgSelectSingle14,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,Constant24 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.after1.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.after1.deopt.mermaid index ee863291e4..ce194d7838 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.after1.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.after1.deopt.mermaid @@ -9,95 +9,89 @@ graph TD %% plan dependencies - Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant49{{"Constant[49∈0] ➊
ᐸ2ᐳ"}}:::plan + PgUnionAll17[["PgUnionAll[17∈0] ➊"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Constant14{{"Constant[14∈0] ➊
ᐸ[Function: applyInputConstant]ᐳ"}}:::plan + Connection15{{"Connection[15∈0] ➊
ᐸ10ᐳ"}}:::plan Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant49{{"Constant[49∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant14 -->|rejectNull| PgUnionAll17 + Object13 & Connection15 & Lambda16 & Constant49 --> PgUnionAll17 Constant49 & Lambda16 --> Connection15 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access11 __Value2 --> Access12 - __Value2 --> Access13 Constant50{{"Constant[50∈0] ➊
ᐸ'WyJkMTg1OWM4N2RhIiwiNy4yIiwiRmlyc3RQYXJ0eVZ1bG5lcmFiaWxpdHkᐳ"}}:::plan Constant50 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgUnionAll17[["PgUnionAll[17∈1] ➊"]]:::plan - Object14 & Connection15 & Lambda16 & Constant49 --> PgUnionAll17 - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan PgUnionAll17 --> Access21 - Access48{{"Access[48∈1] ➊
ᐸ17.itemsᐳ"}}:::plan + Access48{{"Access[48∈0] ➊
ᐸ17.itemsᐳ"}}:::plan PgUnionAll17 --> Access48 - __Item19[/"__Item[19∈2]
ᐸ48ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgUnionAllSingle20["PgUnionAllSingle[20∈1]"]:::plan + PgUnionAllSingle20 & Access21 --> PgCursor22 + __Item19[/"__Item[19∈1]
ᐸ48ᐳ"\]:::itemplan Access48 ==> __Item19 - PgUnionAllSingle20["PgUnionAllSingle[20∈2]"]:::plan __Item19 --> PgUnionAllSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgUnionAllSingle20 & Access21 --> PgCursor22 - Access23{{"Access[23∈3]
ᐸ20.1ᐳ"}}:::plan + Access23{{"Access[23∈1]
ᐸ20.1ᐳ"}}:::plan PgUnionAllSingle20 --> Access23 - PgSelect26[["PgSelect[26∈4]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access25{{"Access[25∈4]
ᐸ24.0ᐳ"}}:::plan - Object14 & Access25 --> PgSelect26 - PgSelect39[["PgSelect[39∈4]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access38{{"Access[38∈4]
ᐸ37.0ᐳ"}}:::plan - Object14 & Access38 --> PgSelect39 - JSONParse24[["JSONParse[24∈4]
ᐸ23ᐳ
ᐳFirstPartyVulnerability"]]:::plan + PgSelect26[["PgSelect[26∈2]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access25{{"Access[25∈2]
ᐸ24.0ᐳ"}}:::plan + Object13 & Access25 --> PgSelect26 + PgSelect39[["PgSelect[39∈2]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access38{{"Access[38∈2]
ᐸ37.0ᐳ"}}:::plan + Object13 & Access38 --> PgSelect39 + JSONParse24[["JSONParse[24∈2]
ᐸ23ᐳ
ᐳFirstPartyVulnerability"]]:::plan Access23 --> JSONParse24 JSONParse24 --> Access25 - First30{{"First[30∈4]"}}:::plan - PgSelectRows31[["PgSelectRows[31∈4]"]]:::plan + First30{{"First[30∈2]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈2]"]]:::plan PgSelectRows31 --> First30 PgSelect26 --> PgSelectRows31 - PgSelectSingle32{{"PgSelectSingle[32∈4]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle32{{"PgSelectSingle[32∈2]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan First30 --> PgSelectSingle32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈2]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__first_pa...team_name”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈2]
ᐸ__first_pa...team_name”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression36 - JSONParse37[["JSONParse[37∈4]
ᐸ23ᐳ
ᐳThirdPartyVulnerability"]]:::plan + JSONParse37[["JSONParse[37∈2]
ᐸ23ᐳ
ᐳThirdPartyVulnerability"]]:::plan Access23 --> JSONParse37 JSONParse37 --> Access38 - First41{{"First[41∈4]"}}:::plan - PgSelectRows42[["PgSelectRows[42∈4]"]]:::plan + First41{{"First[41∈2]"}}:::plan + PgSelectRows42[["PgSelectRows[42∈2]"]]:::plan PgSelectRows42 --> First41 PgSelect39 --> PgSelectRows42 - PgSelectSingle43{{"PgSelectSingle[43∈4]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle43{{"PgSelectSingle[43∈2]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan First41 --> PgSelectSingle43 - PgClassExpression44{{"PgClassExpression[44∈4]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression44 - PgClassExpression45{{"PgClassExpression[45∈4]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression45{{"PgClassExpression[45∈2]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈4]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression46{{"PgClassExpression[46∈2]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈4]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgClassExpression47{{"PgClassExpression[47∈2]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression47 %% define steps subgraph "Buckets for queries/interfaces-via-union-all/vulnerabilitiesConnection.after1" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 11, 12, 14, 49, 50, 13, 16, 15
2: PgUnionAll[17]
ᐳ: Access[21], Access[48]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Connection15,Lambda16,Constant49,Constant50 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 49

ROOT Connectionᐸ11ᐳ[15]"):::bucket + class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Constant14,Connection15,Lambda16,PgUnionAll17,Access21,Access48,Constant49,Constant50 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ48ᐳ[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUnionAll17,Access21,Access48 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 14

ROOT __Item{2}ᐸ48ᐳ[19]"):::bucket + class Bucket1,__Item19,PgUnionAllSingle20,PgCursor22,Access23 bucket1 + Bucket2("Bucket 2 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 23, 13, 20
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[24], JSONParse[37]
ᐳ: Access[25], Access[38]
2: PgSelect[26], PgSelect[39]
3: PgSelectRows[31], PgSelectRows[42]
ᐳ: 30, 32, 33, 34, 35, 36, 41, 43, 44, 45, 46, 47"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgUnionAllSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 14

ROOT PgUnionAllSingle{2}[20]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,Access23 bucket3 - Bucket4("Bucket 4 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 23, 14, 20
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[24], JSONParse[37]
ᐳ: Access[25], Access[38]
2: PgSelect[26], PgSelect[39]
3: PgSelectRows[31], PgSelectRows[42]
ᐳ: 30, 32, 33, 34, 35, 36, 41, 43, 44, 45, 46, 47"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,JSONParse24,Access25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36,JSONParse37,Access38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgClassExpression46,PgClassExpression47 bucket4 + class Bucket2,JSONParse24,Access25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36,JSONParse37,Access38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgClassExpression46,PgClassExpression47 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.after1.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.after1.mermaid index ee863291e4..ce194d7838 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.after1.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.after1.mermaid @@ -9,95 +9,89 @@ graph TD %% plan dependencies - Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant49{{"Constant[49∈0] ➊
ᐸ2ᐳ"}}:::plan + PgUnionAll17[["PgUnionAll[17∈0] ➊"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Constant14{{"Constant[14∈0] ➊
ᐸ[Function: applyInputConstant]ᐳ"}}:::plan + Connection15{{"Connection[15∈0] ➊
ᐸ10ᐳ"}}:::plan Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant49{{"Constant[49∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant14 -->|rejectNull| PgUnionAll17 + Object13 & Connection15 & Lambda16 & Constant49 --> PgUnionAll17 Constant49 & Lambda16 --> Connection15 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access11 __Value2 --> Access12 - __Value2 --> Access13 Constant50{{"Constant[50∈0] ➊
ᐸ'WyJkMTg1OWM4N2RhIiwiNy4yIiwiRmlyc3RQYXJ0eVZ1bG5lcmFiaWxpdHkᐳ"}}:::plan Constant50 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgUnionAll17[["PgUnionAll[17∈1] ➊"]]:::plan - Object14 & Connection15 & Lambda16 & Constant49 --> PgUnionAll17 - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan PgUnionAll17 --> Access21 - Access48{{"Access[48∈1] ➊
ᐸ17.itemsᐳ"}}:::plan + Access48{{"Access[48∈0] ➊
ᐸ17.itemsᐳ"}}:::plan PgUnionAll17 --> Access48 - __Item19[/"__Item[19∈2]
ᐸ48ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgUnionAllSingle20["PgUnionAllSingle[20∈1]"]:::plan + PgUnionAllSingle20 & Access21 --> PgCursor22 + __Item19[/"__Item[19∈1]
ᐸ48ᐳ"\]:::itemplan Access48 ==> __Item19 - PgUnionAllSingle20["PgUnionAllSingle[20∈2]"]:::plan __Item19 --> PgUnionAllSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgUnionAllSingle20 & Access21 --> PgCursor22 - Access23{{"Access[23∈3]
ᐸ20.1ᐳ"}}:::plan + Access23{{"Access[23∈1]
ᐸ20.1ᐳ"}}:::plan PgUnionAllSingle20 --> Access23 - PgSelect26[["PgSelect[26∈4]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access25{{"Access[25∈4]
ᐸ24.0ᐳ"}}:::plan - Object14 & Access25 --> PgSelect26 - PgSelect39[["PgSelect[39∈4]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access38{{"Access[38∈4]
ᐸ37.0ᐳ"}}:::plan - Object14 & Access38 --> PgSelect39 - JSONParse24[["JSONParse[24∈4]
ᐸ23ᐳ
ᐳFirstPartyVulnerability"]]:::plan + PgSelect26[["PgSelect[26∈2]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access25{{"Access[25∈2]
ᐸ24.0ᐳ"}}:::plan + Object13 & Access25 --> PgSelect26 + PgSelect39[["PgSelect[39∈2]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access38{{"Access[38∈2]
ᐸ37.0ᐳ"}}:::plan + Object13 & Access38 --> PgSelect39 + JSONParse24[["JSONParse[24∈2]
ᐸ23ᐳ
ᐳFirstPartyVulnerability"]]:::plan Access23 --> JSONParse24 JSONParse24 --> Access25 - First30{{"First[30∈4]"}}:::plan - PgSelectRows31[["PgSelectRows[31∈4]"]]:::plan + First30{{"First[30∈2]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈2]"]]:::plan PgSelectRows31 --> First30 PgSelect26 --> PgSelectRows31 - PgSelectSingle32{{"PgSelectSingle[32∈4]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle32{{"PgSelectSingle[32∈2]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan First30 --> PgSelectSingle32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈2]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__first_pa...team_name”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈2]
ᐸ__first_pa...team_name”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression36 - JSONParse37[["JSONParse[37∈4]
ᐸ23ᐳ
ᐳThirdPartyVulnerability"]]:::plan + JSONParse37[["JSONParse[37∈2]
ᐸ23ᐳ
ᐳThirdPartyVulnerability"]]:::plan Access23 --> JSONParse37 JSONParse37 --> Access38 - First41{{"First[41∈4]"}}:::plan - PgSelectRows42[["PgSelectRows[42∈4]"]]:::plan + First41{{"First[41∈2]"}}:::plan + PgSelectRows42[["PgSelectRows[42∈2]"]]:::plan PgSelectRows42 --> First41 PgSelect39 --> PgSelectRows42 - PgSelectSingle43{{"PgSelectSingle[43∈4]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle43{{"PgSelectSingle[43∈2]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan First41 --> PgSelectSingle43 - PgClassExpression44{{"PgClassExpression[44∈4]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression44 - PgClassExpression45{{"PgClassExpression[45∈4]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression45{{"PgClassExpression[45∈2]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈4]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression46{{"PgClassExpression[46∈2]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈4]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgClassExpression47{{"PgClassExpression[47∈2]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression47 %% define steps subgraph "Buckets for queries/interfaces-via-union-all/vulnerabilitiesConnection.after1" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 11, 12, 14, 49, 50, 13, 16, 15
2: PgUnionAll[17]
ᐳ: Access[21], Access[48]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Connection15,Lambda16,Constant49,Constant50 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 49

ROOT Connectionᐸ11ᐳ[15]"):::bucket + class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Constant14,Connection15,Lambda16,PgUnionAll17,Access21,Access48,Constant49,Constant50 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ48ᐳ[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUnionAll17,Access21,Access48 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 14

ROOT __Item{2}ᐸ48ᐳ[19]"):::bucket + class Bucket1,__Item19,PgUnionAllSingle20,PgCursor22,Access23 bucket1 + Bucket2("Bucket 2 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 23, 13, 20
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[24], JSONParse[37]
ᐳ: Access[25], Access[38]
2: PgSelect[26], PgSelect[39]
3: PgSelectRows[31], PgSelectRows[42]
ᐳ: 30, 32, 33, 34, 35, 36, 41, 43, 44, 45, 46, 47"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgUnionAllSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 14

ROOT PgUnionAllSingle{2}[20]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,Access23 bucket3 - Bucket4("Bucket 4 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 23, 14, 20
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[24], JSONParse[37]
ᐳ: Access[25], Access[38]
2: PgSelect[26], PgSelect[39]
3: PgSelectRows[31], PgSelectRows[42]
ᐳ: 30, 32, 33, 34, 35, 36, 41, 43, 44, 45, 46, 47"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,JSONParse24,Access25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36,JSONParse37,Access38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgClassExpression46,PgClassExpression47 bucket4 + class Bucket2,JSONParse24,Access25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36,JSONParse37,Access38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgClassExpression46,PgClassExpression47 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.deopt.mermaid index 5bade7a8f4..af1396e7da 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.deopt.mermaid @@ -9,95 +9,89 @@ graph TD %% plan dependencies - Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant49{{"Constant[49∈0] ➊
ᐸ2ᐳ"}}:::plan + PgUnionAll17[["PgUnionAll[17∈0] ➊"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Constant14{{"Constant[14∈0] ➊
ᐸ[Function: applyInputConstant]ᐳ"}}:::plan + Connection15{{"Connection[15∈0] ➊
ᐸ10ᐳ"}}:::plan Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant49{{"Constant[49∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant14 -->|rejectNull| PgUnionAll17 + Object13 & Connection15 & Lambda16 & Constant49 --> PgUnionAll17 Constant49 & Lambda16 --> Connection15 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access11 __Value2 --> Access12 - __Value2 --> Access13 Constant50{{"Constant[50∈0] ➊
ᐸ'WyJkMTg1OWM4N2RhIiwiNy4yIiwiVGhpcmRQYXJ0eVZ1bG5lcmFiaWxpdHkᐳ"}}:::plan Constant50 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgUnionAll17[["PgUnionAll[17∈1] ➊"]]:::plan - Object14 & Connection15 & Lambda16 & Constant49 --> PgUnionAll17 - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan PgUnionAll17 --> Access21 - Access48{{"Access[48∈1] ➊
ᐸ17.itemsᐳ"}}:::plan + Access48{{"Access[48∈0] ➊
ᐸ17.itemsᐳ"}}:::plan PgUnionAll17 --> Access48 - __Item19[/"__Item[19∈2]
ᐸ48ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgUnionAllSingle20["PgUnionAllSingle[20∈1]"]:::plan + PgUnionAllSingle20 & Access21 --> PgCursor22 + __Item19[/"__Item[19∈1]
ᐸ48ᐳ"\]:::itemplan Access48 ==> __Item19 - PgUnionAllSingle20["PgUnionAllSingle[20∈2]"]:::plan __Item19 --> PgUnionAllSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgUnionAllSingle20 & Access21 --> PgCursor22 - Access23{{"Access[23∈3]
ᐸ20.1ᐳ"}}:::plan + Access23{{"Access[23∈1]
ᐸ20.1ᐳ"}}:::plan PgUnionAllSingle20 --> Access23 - PgSelect26[["PgSelect[26∈4]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access25{{"Access[25∈4]
ᐸ24.0ᐳ"}}:::plan - Object14 & Access25 --> PgSelect26 - PgSelect39[["PgSelect[39∈4]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access38{{"Access[38∈4]
ᐸ37.0ᐳ"}}:::plan - Object14 & Access38 --> PgSelect39 - JSONParse24[["JSONParse[24∈4]
ᐸ23ᐳ
ᐳFirstPartyVulnerability"]]:::plan + PgSelect26[["PgSelect[26∈2]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access25{{"Access[25∈2]
ᐸ24.0ᐳ"}}:::plan + Object13 & Access25 --> PgSelect26 + PgSelect39[["PgSelect[39∈2]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access38{{"Access[38∈2]
ᐸ37.0ᐳ"}}:::plan + Object13 & Access38 --> PgSelect39 + JSONParse24[["JSONParse[24∈2]
ᐸ23ᐳ
ᐳFirstPartyVulnerability"]]:::plan Access23 --> JSONParse24 JSONParse24 --> Access25 - First30{{"First[30∈4]"}}:::plan - PgSelectRows31[["PgSelectRows[31∈4]"]]:::plan + First30{{"First[30∈2]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈2]"]]:::plan PgSelectRows31 --> First30 PgSelect26 --> PgSelectRows31 - PgSelectSingle32{{"PgSelectSingle[32∈4]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle32{{"PgSelectSingle[32∈2]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan First30 --> PgSelectSingle32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈2]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__first_pa...team_name”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈2]
ᐸ__first_pa...team_name”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression36 - JSONParse37[["JSONParse[37∈4]
ᐸ23ᐳ
ᐳThirdPartyVulnerability"]]:::plan + JSONParse37[["JSONParse[37∈2]
ᐸ23ᐳ
ᐳThirdPartyVulnerability"]]:::plan Access23 --> JSONParse37 JSONParse37 --> Access38 - First41{{"First[41∈4]"}}:::plan - PgSelectRows42[["PgSelectRows[42∈4]"]]:::plan + First41{{"First[41∈2]"}}:::plan + PgSelectRows42[["PgSelectRows[42∈2]"]]:::plan PgSelectRows42 --> First41 PgSelect39 --> PgSelectRows42 - PgSelectSingle43{{"PgSelectSingle[43∈4]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle43{{"PgSelectSingle[43∈2]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan First41 --> PgSelectSingle43 - PgClassExpression44{{"PgClassExpression[44∈4]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression44 - PgClassExpression45{{"PgClassExpression[45∈4]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression45{{"PgClassExpression[45∈2]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈4]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression46{{"PgClassExpression[46∈2]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈4]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgClassExpression47{{"PgClassExpression[47∈2]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression47 %% define steps subgraph "Buckets for queries/interfaces-via-union-all/vulnerabilitiesConnection.before1" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 11, 12, 14, 49, 50, 13, 16, 15
2: PgUnionAll[17]
ᐳ: Access[21], Access[48]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Connection15,Lambda16,Constant49,Constant50 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 49

ROOT Connectionᐸ11ᐳ[15]"):::bucket + class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Constant14,Connection15,Lambda16,PgUnionAll17,Access21,Access48,Constant49,Constant50 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ48ᐳ[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUnionAll17,Access21,Access48 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 14

ROOT __Item{2}ᐸ48ᐳ[19]"):::bucket + class Bucket1,__Item19,PgUnionAllSingle20,PgCursor22,Access23 bucket1 + Bucket2("Bucket 2 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 23, 13, 20
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[24], JSONParse[37]
ᐳ: Access[25], Access[38]
2: PgSelect[26], PgSelect[39]
3: PgSelectRows[31], PgSelectRows[42]
ᐳ: 30, 32, 33, 34, 35, 36, 41, 43, 44, 45, 46, 47"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgUnionAllSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 14

ROOT PgUnionAllSingle{2}[20]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,Access23 bucket3 - Bucket4("Bucket 4 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 23, 14, 20
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[24], JSONParse[37]
ᐳ: Access[25], Access[38]
2: PgSelect[26], PgSelect[39]
3: PgSelectRows[31], PgSelectRows[42]
ᐳ: 30, 32, 33, 34, 35, 36, 41, 43, 44, 45, 46, 47"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,JSONParse24,Access25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36,JSONParse37,Access38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgClassExpression46,PgClassExpression47 bucket4 + class Bucket2,JSONParse24,Access25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36,JSONParse37,Access38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgClassExpression46,PgClassExpression47 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.mermaid index 5bade7a8f4..af1396e7da 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.mermaid @@ -9,95 +9,89 @@ graph TD %% plan dependencies - Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant49{{"Constant[49∈0] ➊
ᐸ2ᐳ"}}:::plan + PgUnionAll17[["PgUnionAll[17∈0] ➊"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Constant14{{"Constant[14∈0] ➊
ᐸ[Function: applyInputConstant]ᐳ"}}:::plan + Connection15{{"Connection[15∈0] ➊
ᐸ10ᐳ"}}:::plan Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant49{{"Constant[49∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant14 -->|rejectNull| PgUnionAll17 + Object13 & Connection15 & Lambda16 & Constant49 --> PgUnionAll17 Constant49 & Lambda16 --> Connection15 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access11 __Value2 --> Access12 - __Value2 --> Access13 Constant50{{"Constant[50∈0] ➊
ᐸ'WyJkMTg1OWM4N2RhIiwiNy4yIiwiVGhpcmRQYXJ0eVZ1bG5lcmFiaWxpdHkᐳ"}}:::plan Constant50 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgUnionAll17[["PgUnionAll[17∈1] ➊"]]:::plan - Object14 & Connection15 & Lambda16 & Constant49 --> PgUnionAll17 - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan PgUnionAll17 --> Access21 - Access48{{"Access[48∈1] ➊
ᐸ17.itemsᐳ"}}:::plan + Access48{{"Access[48∈0] ➊
ᐸ17.itemsᐳ"}}:::plan PgUnionAll17 --> Access48 - __Item19[/"__Item[19∈2]
ᐸ48ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor22{{"PgCursor[22∈1]"}}:::plan + PgUnionAllSingle20["PgUnionAllSingle[20∈1]"]:::plan + PgUnionAllSingle20 & Access21 --> PgCursor22 + __Item19[/"__Item[19∈1]
ᐸ48ᐳ"\]:::itemplan Access48 ==> __Item19 - PgUnionAllSingle20["PgUnionAllSingle[20∈2]"]:::plan __Item19 --> PgUnionAllSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgUnionAllSingle20 & Access21 --> PgCursor22 - Access23{{"Access[23∈3]
ᐸ20.1ᐳ"}}:::plan + Access23{{"Access[23∈1]
ᐸ20.1ᐳ"}}:::plan PgUnionAllSingle20 --> Access23 - PgSelect26[["PgSelect[26∈4]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access25{{"Access[25∈4]
ᐸ24.0ᐳ"}}:::plan - Object14 & Access25 --> PgSelect26 - PgSelect39[["PgSelect[39∈4]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access38{{"Access[38∈4]
ᐸ37.0ᐳ"}}:::plan - Object14 & Access38 --> PgSelect39 - JSONParse24[["JSONParse[24∈4]
ᐸ23ᐳ
ᐳFirstPartyVulnerability"]]:::plan + PgSelect26[["PgSelect[26∈2]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access25{{"Access[25∈2]
ᐸ24.0ᐳ"}}:::plan + Object13 & Access25 --> PgSelect26 + PgSelect39[["PgSelect[39∈2]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access38{{"Access[38∈2]
ᐸ37.0ᐳ"}}:::plan + Object13 & Access38 --> PgSelect39 + JSONParse24[["JSONParse[24∈2]
ᐸ23ᐳ
ᐳFirstPartyVulnerability"]]:::plan Access23 --> JSONParse24 JSONParse24 --> Access25 - First30{{"First[30∈4]"}}:::plan - PgSelectRows31[["PgSelectRows[31∈4]"]]:::plan + First30{{"First[30∈2]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈2]"]]:::plan PgSelectRows31 --> First30 PgSelect26 --> PgSelectRows31 - PgSelectSingle32{{"PgSelectSingle[32∈4]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle32{{"PgSelectSingle[32∈2]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan First30 --> PgSelectSingle32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈2]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__first_pa...team_name”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈2]
ᐸ__first_pa...team_name”ᐳ"}}:::plan PgSelectSingle32 --> PgClassExpression36 - JSONParse37[["JSONParse[37∈4]
ᐸ23ᐳ
ᐳThirdPartyVulnerability"]]:::plan + JSONParse37[["JSONParse[37∈2]
ᐸ23ᐳ
ᐳThirdPartyVulnerability"]]:::plan Access23 --> JSONParse37 JSONParse37 --> Access38 - First41{{"First[41∈4]"}}:::plan - PgSelectRows42[["PgSelectRows[42∈4]"]]:::plan + First41{{"First[41∈2]"}}:::plan + PgSelectRows42[["PgSelectRows[42∈2]"]]:::plan PgSelectRows42 --> First41 PgSelect39 --> PgSelectRows42 - PgSelectSingle43{{"PgSelectSingle[43∈4]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle43{{"PgSelectSingle[43∈2]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan First41 --> PgSelectSingle43 - PgClassExpression44{{"PgClassExpression[44∈4]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression44 - PgClassExpression45{{"PgClassExpression[45∈4]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression45{{"PgClassExpression[45∈2]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈4]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression46{{"PgClassExpression[46∈2]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈4]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgClassExpression47{{"PgClassExpression[47∈2]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression47 %% define steps subgraph "Buckets for queries/interfaces-via-union-all/vulnerabilitiesConnection.before1" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 11, 12, 14, 49, 50, 13, 16, 15
2: PgUnionAll[17]
ᐳ: Access[21], Access[48]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Connection15,Lambda16,Constant49,Constant50 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 49

ROOT Connectionᐸ11ᐳ[15]"):::bucket + class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Constant14,Connection15,Lambda16,PgUnionAll17,Access21,Access48,Constant49,Constant50 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21, 13

ROOT __Item{1}ᐸ48ᐳ[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUnionAll17,Access21,Access48 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 14

ROOT __Item{2}ᐸ48ᐳ[19]"):::bucket + class Bucket1,__Item19,PgUnionAllSingle20,PgCursor22,Access23 bucket1 + Bucket2("Bucket 2 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 23, 13, 20
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[24], JSONParse[37]
ᐳ: Access[25], Access[38]
2: PgSelect[26], PgSelect[39]
3: PgSelectRows[31], PgSelectRows[42]
ᐳ: 30, 32, 33, 34, 35, 36, 41, 43, 44, 45, 46, 47"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgUnionAllSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 14

ROOT PgUnionAllSingle{2}[20]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,Access23 bucket3 - Bucket4("Bucket 4 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 23, 14, 20
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[24], JSONParse[37]
ᐳ: Access[25], Access[38]
2: PgSelect[26], PgSelect[39]
3: PgSelectRows[31], PgSelectRows[42]
ᐳ: 30, 32, 33, 34, 35, 36, 41, 43, 44, 45, 46, 47"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,JSONParse24,Access25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36,JSONParse37,Access38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgClassExpression46,PgClassExpression47 bucket4 + class Bucket2,JSONParse24,Access25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36,JSONParse37,Access38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgClassExpression46,PgClassExpression47 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.variables.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.variables.deopt.mermaid index 16cc973559..0a8a38f13b 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.variables.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.variables.deopt.mermaid @@ -9,97 +9,91 @@ graph TD %% plan dependencies - Object15{{"Object[15∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access14{{"Access[14∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access13 & Access14 --> Object15 - Connection16{{"Connection[16∈0] ➊
ᐸ12ᐳ"}}:::plan - Constant50{{"Constant[50∈0] ➊
ᐸ2ᐳ"}}:::plan + PgUnionAll18[["PgUnionAll[18∈0] ➊"]]:::plan + Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Constant15{{"Constant[15∈0] ➊
ᐸ[Function: applyInputConstant]ᐳ"}}:::plan + Connection16{{"Connection[16∈0] ➊
ᐸ11ᐳ"}}:::plan Lambda17{{"Lambda[17∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant50{{"Constant[50∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant15 -->|rejectNull| PgUnionAll18 + Object14 & Connection16 & Lambda17 & Constant50 --> PgUnionAll18 Constant50 & Lambda17 --> Connection16 + Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access12 & Access13 --> Object14 Access8{{"Access[8∈0] ➊
ᐸ0.valueᐳ"}}:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access12 __Value2 --> Access13 - __Value2 --> Access14 Access8 --> Lambda17 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgUnionAll18[["PgUnionAll[18∈1] ➊"]]:::plan - Object15 & Connection16 & Lambda17 & Constant50 --> PgUnionAll18 - Access22{{"Access[22∈1] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan + Access22{{"Access[22∈0] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan PgUnionAll18 --> Access22 - Access49{{"Access[49∈1] ➊
ᐸ18.itemsᐳ"}}:::plan + Access49{{"Access[49∈0] ➊
ᐸ18.itemsᐳ"}}:::plan PgUnionAll18 --> Access49 - __Item20[/"__Item[20∈2]
ᐸ49ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor23{{"PgCursor[23∈1]"}}:::plan + PgUnionAllSingle21["PgUnionAllSingle[21∈1]"]:::plan + PgUnionAllSingle21 & Access22 --> PgCursor23 + __Item20[/"__Item[20∈1]
ᐸ49ᐳ"\]:::itemplan Access49 ==> __Item20 - PgUnionAllSingle21["PgUnionAllSingle[21∈2]"]:::plan __Item20 --> PgUnionAllSingle21 - PgCursor23{{"PgCursor[23∈3]"}}:::plan - PgUnionAllSingle21 & Access22 --> PgCursor23 - Access24{{"Access[24∈3]
ᐸ21.1ᐳ"}}:::plan + Access24{{"Access[24∈1]
ᐸ21.1ᐳ"}}:::plan PgUnionAllSingle21 --> Access24 - PgSelect27[["PgSelect[27∈4]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access26{{"Access[26∈4]
ᐸ25.0ᐳ"}}:::plan - Object15 & Access26 --> PgSelect27 - PgSelect40[["PgSelect[40∈4]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access39{{"Access[39∈4]
ᐸ38.0ᐳ"}}:::plan - Object15 & Access39 --> PgSelect40 - JSONParse25[["JSONParse[25∈4]
ᐸ24ᐳ
ᐳFirstPartyVulnerability"]]:::plan + PgSelect27[["PgSelect[27∈2]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access26{{"Access[26∈2]
ᐸ25.0ᐳ"}}:::plan + Object14 & Access26 --> PgSelect27 + PgSelect40[["PgSelect[40∈2]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access39{{"Access[39∈2]
ᐸ38.0ᐳ"}}:::plan + Object14 & Access39 --> PgSelect40 + JSONParse25[["JSONParse[25∈2]
ᐸ24ᐳ
ᐳFirstPartyVulnerability"]]:::plan Access24 --> JSONParse25 JSONParse25 --> Access26 - First31{{"First[31∈4]"}}:::plan - PgSelectRows32[["PgSelectRows[32∈4]"]]:::plan + First31{{"First[31∈2]"}}:::plan + PgSelectRows32[["PgSelectRows[32∈2]"]]:::plan PgSelectRows32 --> First31 PgSelect27 --> PgSelectRows32 - PgSelectSingle33{{"PgSelectSingle[33∈4]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle33{{"PgSelectSingle[33∈2]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan First31 --> PgSelectSingle33 - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan PgSelectSingle33 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈2]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle33 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈2]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle33 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈4]
ᐸ__first_pa...team_name”ᐳ"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈2]
ᐸ__first_pa...team_name”ᐳ"}}:::plan PgSelectSingle33 --> PgClassExpression37 - JSONParse38[["JSONParse[38∈4]
ᐸ24ᐳ
ᐳThirdPartyVulnerability"]]:::plan + JSONParse38[["JSONParse[38∈2]
ᐸ24ᐳ
ᐳThirdPartyVulnerability"]]:::plan Access24 --> JSONParse38 JSONParse38 --> Access39 - First42{{"First[42∈4]"}}:::plan - PgSelectRows43[["PgSelectRows[43∈4]"]]:::plan + First42{{"First[42∈2]"}}:::plan + PgSelectRows43[["PgSelectRows[43∈2]"]]:::plan PgSelectRows43 --> First42 PgSelect40 --> PgSelectRows43 - PgSelectSingle44{{"PgSelectSingle[44∈4]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle44{{"PgSelectSingle[44∈2]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan First42 --> PgSelectSingle44 - PgClassExpression45{{"PgClassExpression[45∈4]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgClassExpression45{{"PgClassExpression[45∈2]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan PgSelectSingle44 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈4]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression46{{"PgClassExpression[46∈2]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle44 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈4]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression47{{"PgClassExpression[47∈2]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle44 --> PgClassExpression47 - PgClassExpression48{{"PgClassExpression[48∈4]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgClassExpression48{{"PgClassExpression[48∈2]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan PgSelectSingle44 --> PgClassExpression48 %% define steps subgraph "Buckets for queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.variables" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 12, 13, 15, 50, 14, 17, 16
2: PgUnionAll[18]
ᐳ: Access[22], Access[49]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Access8,Access13,Access14,Object15,Connection16,Lambda17,Constant50 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 15, 16, 17, 50

ROOT Connectionᐸ12ᐳ[16]"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Access8,Access12,Access13,Object14,Constant15,Connection16,Lambda17,PgUnionAll18,Access22,Access49,Constant50 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 22, 14

ROOT __Item{1}ᐸ49ᐳ[20]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUnionAll18,Access22,Access49 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 22, 15

ROOT __Item{2}ᐸ49ᐳ[20]"):::bucket + class Bucket1,__Item20,PgUnionAllSingle21,PgCursor23,Access24 bucket1 + Bucket2("Bucket 2 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 24, 14, 21
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[25], JSONParse[38]
ᐳ: Access[26], Access[39]
2: PgSelect[27], PgSelect[40]
3: PgSelectRows[32], PgSelectRows[43]
ᐳ: 31, 33, 34, 35, 36, 37, 42, 44, 45, 46, 47, 48"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item20,PgUnionAllSingle21 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 21, 22, 15

ROOT PgUnionAllSingle{2}[21]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor23,Access24 bucket3 - Bucket4("Bucket 4 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 24, 15, 21
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[25], JSONParse[38]
ᐳ: Access[26], Access[39]
2: PgSelect[27], PgSelect[40]
3: PgSelectRows[32], PgSelectRows[43]
ᐳ: 31, 33, 34, 35, 36, 37, 42, 44, 45, 46, 47, 48"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,JSONParse25,Access26,PgSelect27,First31,PgSelectRows32,PgSelectSingle33,PgClassExpression34,PgClassExpression35,PgClassExpression36,PgClassExpression37,JSONParse38,Access39,PgSelect40,First42,PgSelectRows43,PgSelectSingle44,PgClassExpression45,PgClassExpression46,PgClassExpression47,PgClassExpression48 bucket4 + class Bucket2,JSONParse25,Access26,PgSelect27,First31,PgSelectRows32,PgSelectSingle33,PgClassExpression34,PgClassExpression35,PgClassExpression36,PgClassExpression37,JSONParse38,Access39,PgSelect40,First42,PgSelectRows43,PgSelectSingle44,PgClassExpression45,PgClassExpression46,PgClassExpression47,PgClassExpression48 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.variables.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.variables.mermaid index 16cc973559..0a8a38f13b 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.variables.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.variables.mermaid @@ -9,97 +9,91 @@ graph TD %% plan dependencies - Object15{{"Object[15∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access14{{"Access[14∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access13 & Access14 --> Object15 - Connection16{{"Connection[16∈0] ➊
ᐸ12ᐳ"}}:::plan - Constant50{{"Constant[50∈0] ➊
ᐸ2ᐳ"}}:::plan + PgUnionAll18[["PgUnionAll[18∈0] ➊"]]:::plan + Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Constant15{{"Constant[15∈0] ➊
ᐸ[Function: applyInputConstant]ᐳ"}}:::plan + Connection16{{"Connection[16∈0] ➊
ᐸ11ᐳ"}}:::plan Lambda17{{"Lambda[17∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant50{{"Constant[50∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant15 -->|rejectNull| PgUnionAll18 + Object14 & Connection16 & Lambda17 & Constant50 --> PgUnionAll18 Constant50 & Lambda17 --> Connection16 + Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access12 & Access13 --> Object14 Access8{{"Access[8∈0] ➊
ᐸ0.valueᐳ"}}:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access12 __Value2 --> Access13 - __Value2 --> Access14 Access8 --> Lambda17 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgUnionAll18[["PgUnionAll[18∈1] ➊"]]:::plan - Object15 & Connection16 & Lambda17 & Constant50 --> PgUnionAll18 - Access22{{"Access[22∈1] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan + Access22{{"Access[22∈0] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan PgUnionAll18 --> Access22 - Access49{{"Access[49∈1] ➊
ᐸ18.itemsᐳ"}}:::plan + Access49{{"Access[49∈0] ➊
ᐸ18.itemsᐳ"}}:::plan PgUnionAll18 --> Access49 - __Item20[/"__Item[20∈2]
ᐸ49ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor23{{"PgCursor[23∈1]"}}:::plan + PgUnionAllSingle21["PgUnionAllSingle[21∈1]"]:::plan + PgUnionAllSingle21 & Access22 --> PgCursor23 + __Item20[/"__Item[20∈1]
ᐸ49ᐳ"\]:::itemplan Access49 ==> __Item20 - PgUnionAllSingle21["PgUnionAllSingle[21∈2]"]:::plan __Item20 --> PgUnionAllSingle21 - PgCursor23{{"PgCursor[23∈3]"}}:::plan - PgUnionAllSingle21 & Access22 --> PgCursor23 - Access24{{"Access[24∈3]
ᐸ21.1ᐳ"}}:::plan + Access24{{"Access[24∈1]
ᐸ21.1ᐳ"}}:::plan PgUnionAllSingle21 --> Access24 - PgSelect27[["PgSelect[27∈4]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access26{{"Access[26∈4]
ᐸ25.0ᐳ"}}:::plan - Object15 & Access26 --> PgSelect27 - PgSelect40[["PgSelect[40∈4]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access39{{"Access[39∈4]
ᐸ38.0ᐳ"}}:::plan - Object15 & Access39 --> PgSelect40 - JSONParse25[["JSONParse[25∈4]
ᐸ24ᐳ
ᐳFirstPartyVulnerability"]]:::plan + PgSelect27[["PgSelect[27∈2]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access26{{"Access[26∈2]
ᐸ25.0ᐳ"}}:::plan + Object14 & Access26 --> PgSelect27 + PgSelect40[["PgSelect[40∈2]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access39{{"Access[39∈2]
ᐸ38.0ᐳ"}}:::plan + Object14 & Access39 --> PgSelect40 + JSONParse25[["JSONParse[25∈2]
ᐸ24ᐳ
ᐳFirstPartyVulnerability"]]:::plan Access24 --> JSONParse25 JSONParse25 --> Access26 - First31{{"First[31∈4]"}}:::plan - PgSelectRows32[["PgSelectRows[32∈4]"]]:::plan + First31{{"First[31∈2]"}}:::plan + PgSelectRows32[["PgSelectRows[32∈2]"]]:::plan PgSelectRows32 --> First31 PgSelect27 --> PgSelectRows32 - PgSelectSingle33{{"PgSelectSingle[33∈4]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle33{{"PgSelectSingle[33∈2]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan First31 --> PgSelectSingle33 - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan PgSelectSingle33 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈2]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle33 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈2]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle33 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈4]
ᐸ__first_pa...team_name”ᐳ"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈2]
ᐸ__first_pa...team_name”ᐳ"}}:::plan PgSelectSingle33 --> PgClassExpression37 - JSONParse38[["JSONParse[38∈4]
ᐸ24ᐳ
ᐳThirdPartyVulnerability"]]:::plan + JSONParse38[["JSONParse[38∈2]
ᐸ24ᐳ
ᐳThirdPartyVulnerability"]]:::plan Access24 --> JSONParse38 JSONParse38 --> Access39 - First42{{"First[42∈4]"}}:::plan - PgSelectRows43[["PgSelectRows[43∈4]"]]:::plan + First42{{"First[42∈2]"}}:::plan + PgSelectRows43[["PgSelectRows[43∈2]"]]:::plan PgSelectRows43 --> First42 PgSelect40 --> PgSelectRows43 - PgSelectSingle44{{"PgSelectSingle[44∈4]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle44{{"PgSelectSingle[44∈2]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan First42 --> PgSelectSingle44 - PgClassExpression45{{"PgClassExpression[45∈4]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgClassExpression45{{"PgClassExpression[45∈2]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan PgSelectSingle44 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈4]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression46{{"PgClassExpression[46∈2]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle44 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈4]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression47{{"PgClassExpression[47∈2]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle44 --> PgClassExpression47 - PgClassExpression48{{"PgClassExpression[48∈4]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgClassExpression48{{"PgClassExpression[48∈2]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan PgSelectSingle44 --> PgClassExpression48 %% define steps subgraph "Buckets for queries/interfaces-via-union-all/vulnerabilitiesConnection.before1.variables" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 12, 13, 15, 50, 14, 17, 16
2: PgUnionAll[18]
ᐳ: Access[22], Access[49]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Access8,Access13,Access14,Object15,Connection16,Lambda17,Constant50 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 15, 16, 17, 50

ROOT Connectionᐸ12ᐳ[16]"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Access8,Access12,Access13,Object14,Constant15,Connection16,Lambda17,PgUnionAll18,Access22,Access49,Constant50 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 22, 14

ROOT __Item{1}ᐸ49ᐳ[20]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUnionAll18,Access22,Access49 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 22, 15

ROOT __Item{2}ᐸ49ᐳ[20]"):::bucket + class Bucket1,__Item20,PgUnionAllSingle21,PgCursor23,Access24 bucket1 + Bucket2("Bucket 2 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 24, 14, 21
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[25], JSONParse[38]
ᐳ: Access[26], Access[39]
2: PgSelect[27], PgSelect[40]
3: PgSelectRows[32], PgSelectRows[43]
ᐳ: 31, 33, 34, 35, 36, 37, 42, 44, 45, 46, 47, 48"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item20,PgUnionAllSingle21 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 21, 22, 15

ROOT PgUnionAllSingle{2}[21]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor23,Access24 bucket3 - Bucket4("Bucket 4 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 24, 15, 21
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[25], JSONParse[38]
ᐳ: Access[26], Access[39]
2: PgSelect[27], PgSelect[40]
3: PgSelectRows[32], PgSelectRows[43]
ᐳ: 31, 33, 34, 35, 36, 37, 42, 44, 45, 46, 47, 48"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,JSONParse25,Access26,PgSelect27,First31,PgSelectRows32,PgSelectSingle33,PgClassExpression34,PgClassExpression35,PgClassExpression36,PgClassExpression37,JSONParse38,Access39,PgSelect40,First42,PgSelectRows43,PgSelectSingle44,PgClassExpression45,PgClassExpression46,PgClassExpression47,PgClassExpression48 bucket4 + class Bucket2,JSONParse25,Access26,PgSelect27,First31,PgSelectRows32,PgSelectSingle33,PgClassExpression34,PgClassExpression35,PgClassExpression36,PgClassExpression37,JSONParse38,Access39,PgSelect40,First42,PgSelectRows43,PgSelectSingle44,PgClassExpression45,PgClassExpression46,PgClassExpression47,PgClassExpression48 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.deopt.mermaid index 493c67400a..fe36aecf11 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.deopt.mermaid @@ -9,90 +9,84 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgUnionAll14[["PgUnionAll[14∈0] ➊"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Constant12{{"Constant[12∈0] ➊
ᐸ[Function: applyInputConstant]ᐳ"}}:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ8ᐳ"}}:::plan + Constant12 -->|rejectNull| PgUnionAll14 + Object11 & Connection13 --> PgUnionAll14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - PgUnionAll14[["PgUnionAll[14∈1] ➊"]]:::plan - Object12 & Connection13 --> PgUnionAll14 - Access18{{"Access[18∈1] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan + Access18{{"Access[18∈0] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan PgUnionAll14 --> Access18 - Access45{{"Access[45∈1] ➊
ᐸ14.itemsᐳ"}}:::plan + Access45{{"Access[45∈0] ➊
ᐸ14.itemsᐳ"}}:::plan PgUnionAll14 --> Access45 - __Item16[/"__Item[16∈2]
ᐸ45ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor19{{"PgCursor[19∈1]"}}:::plan + PgUnionAllSingle17["PgUnionAllSingle[17∈1]"]:::plan + PgUnionAllSingle17 & Access18 --> PgCursor19 + __Item16[/"__Item[16∈1]
ᐸ45ᐳ"\]:::itemplan Access45 ==> __Item16 - PgUnionAllSingle17["PgUnionAllSingle[17∈2]"]:::plan __Item16 --> PgUnionAllSingle17 - PgCursor19{{"PgCursor[19∈3]"}}:::plan - PgUnionAllSingle17 & Access18 --> PgCursor19 - Access20{{"Access[20∈3]
ᐸ17.1ᐳ"}}:::plan + Access20{{"Access[20∈1]
ᐸ17.1ᐳ"}}:::plan PgUnionAllSingle17 --> Access20 - PgSelect23[["PgSelect[23∈4]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access22{{"Access[22∈4]
ᐸ21.0ᐳ"}}:::plan - Object12 & Access22 --> PgSelect23 - PgSelect36[["PgSelect[36∈4]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access35{{"Access[35∈4]
ᐸ34.0ᐳ"}}:::plan - Object12 & Access35 --> PgSelect36 - JSONParse21[["JSONParse[21∈4]
ᐸ20ᐳ
ᐳFirstPartyVulnerability"]]:::plan + PgSelect23[["PgSelect[23∈2]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access22{{"Access[22∈2]
ᐸ21.0ᐳ"}}:::plan + Object11 & Access22 --> PgSelect23 + PgSelect36[["PgSelect[36∈2]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access35{{"Access[35∈2]
ᐸ34.0ᐳ"}}:::plan + Object11 & Access35 --> PgSelect36 + JSONParse21[["JSONParse[21∈2]
ᐸ20ᐳ
ᐳFirstPartyVulnerability"]]:::plan Access20 --> JSONParse21 JSONParse21 --> Access22 - First27{{"First[27∈4]"}}:::plan - PgSelectRows28[["PgSelectRows[28∈4]"]]:::plan + First27{{"First[27∈2]"}}:::plan + PgSelectRows28[["PgSelectRows[28∈2]"]]:::plan PgSelectRows28 --> First27 PgSelect23 --> PgSelectRows28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan First27 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__first_pa...team_name”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__first_pa...team_name”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression33 - JSONParse34[["JSONParse[34∈4]
ᐸ20ᐳ
ᐳThirdPartyVulnerability"]]:::plan + JSONParse34[["JSONParse[34∈2]
ᐸ20ᐳ
ᐳThirdPartyVulnerability"]]:::plan Access20 --> JSONParse34 JSONParse34 --> Access35 - First38{{"First[38∈4]"}}:::plan - PgSelectRows39[["PgSelectRows[39∈4]"]]:::plan + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan PgSelectRows39 --> First38 PgSelect36 --> PgSelectRows39 - PgSelectSingle40{{"PgSelectSingle[40∈4]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan First38 --> PgSelectSingle40 - PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression41 - PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression42 - PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression43{{"PgClassExpression[43∈2]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression43 - PgClassExpression44{{"PgClassExpression[44∈4]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression44 %% define steps subgraph "Buckets for queries/interfaces-via-union-all/vulnerabilitiesConnection" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 12, 11, 13
2: PgUnionAll[14]
ᐳ: Access[18], Access[45]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Constant12,Connection13,PgUnionAll14,Access18,Access45 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 18, 11

ROOT __Item{1}ᐸ45ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUnionAll14,Access18,Access45 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 18, 12

ROOT __Item{2}ᐸ45ᐳ[16]"):::bucket + class Bucket1,__Item16,PgUnionAllSingle17,PgCursor19,Access20 bucket1 + Bucket2("Bucket 2 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 20, 11, 17
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[21], JSONParse[34]
ᐳ: Access[22], Access[35]
2: PgSelect[23], PgSelect[36]
3: PgSelectRows[28], PgSelectRows[39]
ᐳ: 27, 29, 30, 31, 32, 33, 38, 40, 41, 42, 43, 44"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgUnionAllSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 18, 12

ROOT PgUnionAllSingle{2}[17]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor19,Access20 bucket3 - Bucket4("Bucket 4 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 20, 12, 17
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[21], JSONParse[34]
ᐳ: Access[22], Access[35]
2: PgSelect[23], PgSelect[36]
3: PgSelectRows[28], PgSelectRows[39]
ᐳ: 27, 29, 30, 31, 32, 33, 38, 40, 41, 42, 43, 44"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,JSONParse21,Access22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,JSONParse34,Access35,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42,PgClassExpression43,PgClassExpression44 bucket4 + class Bucket2,JSONParse21,Access22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,JSONParse34,Access35,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42,PgClassExpression43,PgClassExpression44 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.mermaid b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.mermaid index 493c67400a..fe36aecf11 100644 --- a/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/interfaces-via-union-all/vulnerabilitiesConnection.mermaid @@ -9,90 +9,84 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgUnionAll14[["PgUnionAll[14∈0] ➊"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Constant12{{"Constant[12∈0] ➊
ᐸ[Function: applyInputConstant]ᐳ"}}:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ8ᐳ"}}:::plan + Constant12 -->|rejectNull| PgUnionAll14 + Object11 & Connection13 --> PgUnionAll14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - PgUnionAll14[["PgUnionAll[14∈1] ➊"]]:::plan - Object12 & Connection13 --> PgUnionAll14 - Access18{{"Access[18∈1] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan + Access18{{"Access[18∈0] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan PgUnionAll14 --> Access18 - Access45{{"Access[45∈1] ➊
ᐸ14.itemsᐳ"}}:::plan + Access45{{"Access[45∈0] ➊
ᐸ14.itemsᐳ"}}:::plan PgUnionAll14 --> Access45 - __Item16[/"__Item[16∈2]
ᐸ45ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor19{{"PgCursor[19∈1]"}}:::plan + PgUnionAllSingle17["PgUnionAllSingle[17∈1]"]:::plan + PgUnionAllSingle17 & Access18 --> PgCursor19 + __Item16[/"__Item[16∈1]
ᐸ45ᐳ"\]:::itemplan Access45 ==> __Item16 - PgUnionAllSingle17["PgUnionAllSingle[17∈2]"]:::plan __Item16 --> PgUnionAllSingle17 - PgCursor19{{"PgCursor[19∈3]"}}:::plan - PgUnionAllSingle17 & Access18 --> PgCursor19 - Access20{{"Access[20∈3]
ᐸ17.1ᐳ"}}:::plan + Access20{{"Access[20∈1]
ᐸ17.1ᐳ"}}:::plan PgUnionAllSingle17 --> Access20 - PgSelect23[["PgSelect[23∈4]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access22{{"Access[22∈4]
ᐸ21.0ᐳ"}}:::plan - Object12 & Access22 --> PgSelect23 - PgSelect36[["PgSelect[36∈4]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access35{{"Access[35∈4]
ᐸ34.0ᐳ"}}:::plan - Object12 & Access35 --> PgSelect36 - JSONParse21[["JSONParse[21∈4]
ᐸ20ᐳ
ᐳFirstPartyVulnerability"]]:::plan + PgSelect23[["PgSelect[23∈2]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access22{{"Access[22∈2]
ᐸ21.0ᐳ"}}:::plan + Object11 & Access22 --> PgSelect23 + PgSelect36[["PgSelect[36∈2]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access35{{"Access[35∈2]
ᐸ34.0ᐳ"}}:::plan + Object11 & Access35 --> PgSelect36 + JSONParse21[["JSONParse[21∈2]
ᐸ20ᐳ
ᐳFirstPartyVulnerability"]]:::plan Access20 --> JSONParse21 JSONParse21 --> Access22 - First27{{"First[27∈4]"}}:::plan - PgSelectRows28[["PgSelectRows[28∈4]"]]:::plan + First27{{"First[27∈2]"}}:::plan + PgSelectRows28[["PgSelectRows[28∈2]"]]:::plan PgSelectRows28 --> First27 PgSelect23 --> PgSelectRows28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan First27 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__first_pa...team_name”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__first_pa...team_name”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression33 - JSONParse34[["JSONParse[34∈4]
ᐸ20ᐳ
ᐳThirdPartyVulnerability"]]:::plan + JSONParse34[["JSONParse[34∈2]
ᐸ20ᐳ
ᐳThirdPartyVulnerability"]]:::plan Access20 --> JSONParse34 JSONParse34 --> Access35 - First38{{"First[38∈4]"}}:::plan - PgSelectRows39[["PgSelectRows[39∈4]"]]:::plan + First38{{"First[38∈2]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈2]"]]:::plan PgSelectRows39 --> First38 PgSelect36 --> PgSelectRows39 - PgSelectSingle40{{"PgSelectSingle[40∈4]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle40{{"PgSelectSingle[40∈2]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan First38 --> PgSelectSingle40 - PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression41 - PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression42 - PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression43{{"PgClassExpression[43∈2]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression43 - PgClassExpression44{{"PgClassExpression[44∈4]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan PgSelectSingle40 --> PgClassExpression44 %% define steps subgraph "Buckets for queries/interfaces-via-union-all/vulnerabilitiesConnection" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 12, 11, 13
2: PgUnionAll[14]
ᐳ: Access[18], Access[45]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Constant12,Connection13,PgUnionAll14,Access18,Access45 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 18, 11

ROOT __Item{1}ᐸ45ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUnionAll14,Access18,Access45 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 18, 12

ROOT __Item{2}ᐸ45ᐳ[16]"):::bucket + class Bucket1,__Item16,PgUnionAllSingle17,PgCursor19,Access20 bucket1 + Bucket2("Bucket 2 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 20, 11, 17
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[21], JSONParse[34]
ᐳ: Access[22], Access[35]
2: PgSelect[23], PgSelect[36]
3: PgSelectRows[28], PgSelectRows[39]
ᐳ: 27, 29, 30, 31, 32, 33, 38, 40, 41, 42, 43, 44"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgUnionAllSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 18, 12

ROOT PgUnionAllSingle{2}[17]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor19,Access20 bucket3 - Bucket4("Bucket 4 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 20, 12, 17
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[21], JSONParse[34]
ᐳ: Access[22], Access[35]
2: PgSelect[23], PgSelect[36]
3: PgSelectRows[28], PgSelectRows[39]
ᐳ: 27, 29, 30, 31, 32, 33, 38, 40, 41, 42, 43, 44"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,JSONParse21,Access22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,JSONParse34,Access35,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42,PgClassExpression43,PgClassExpression44 bucket4 + class Bucket2,JSONParse21,Access22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,JSONParse34,Access35,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42,PgClassExpression43,PgClassExpression44 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/grafast/dataplan-pg/__tests__/queries/relations/basics-no-join-if-identical.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/relations/basics-no-join-if-identical.deopt.mermaid index 8923a1b0df..f889da4a1b 100644 --- a/grafast/dataplan-pg/__tests__/queries/relations/basics-no-join-if-identical.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/relations/basics-no-join-if-identical.deopt.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸmessagesᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸ'ca70ca70-0000-0000-0000-cec111a0ca70'ᐳ"}}:::plan - Object10 & Constant25 --> PgSelect7 + Constant22{{"Constant[22∈0] ➊
ᐸ'ca70ca70-0000-0000-0000-cec111a0ca70'ᐳ"}}:::plan + Object10 & Constant22 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect17[["PgSelect[17∈0] ➊
ᐸforumsᐳ"]]:::plan + PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸ__messages__.”forum_id”ᐳ"}}:::plan + Object10 & PgClassExpression16 --> PgSelect17 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,34 +28,23 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸmessagesᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸforumsᐳ"]]:::plan - PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__messages__.”forum_id”ᐳ"}}:::plan - Object10 & PgClassExpression16 --> PgSelect17 - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__messages__.”id”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__messages__.”id”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__messages__.”body”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__messages__.”body”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression15 PgSelectSingle13 --> PgClassExpression16 - First21{{"First[21∈1] ➊"}}:::plan - PgSelectRows22[["PgSelectRows[22∈1] ➊"]]:::plan - PgSelectRows22 --> First21 - PgSelect17 --> PgSelectRows22 - PgSelectSingle23{{"PgSelectSingle[23∈1] ➊
ᐸforumsᐳ"}}:::plan - First21 --> PgSelectSingle23 + First19{{"First[19∈0] ➊"}}:::plan + PgSelectRows20[["PgSelectRows[20∈0] ➊"]]:::plan + PgSelectRows20 --> First19 + PgSelect17 --> PgSelectRows20 + PgSelectSingle21{{"PgSelectSingle[21∈0] ➊
ᐸforumsᐳ"}}:::plan + First19 --> PgSelectSingle21 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/relations/basics-no-join-if-identical" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 25, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 22, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 15, 16
4: PgSelect[17]
5: PgSelectRows[20]
ᐳ: First[19], PgSelectSingle[21]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant25 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸmessagesᐳ[13]
1:
ᐳ: 14, 15, 16
2: PgSelect[17]
3: PgSelectRows[22]
ᐳ: First[21], PgSelectSingle[23]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgSelect17,First21,PgSelectRows22,PgSelectSingle23 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 23, 16

ROOT PgSelectSingle{1}ᐸforumsᐳ[23]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgSelect17,First19,PgSelectRows20,PgSelectSingle21,Constant22 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/relations/basics-no-join-if-identical.mermaid b/grafast/dataplan-pg/__tests__/queries/relations/basics-no-join-if-identical.mermaid index 8923a1b0df..f889da4a1b 100644 --- a/grafast/dataplan-pg/__tests__/queries/relations/basics-no-join-if-identical.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/relations/basics-no-join-if-identical.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸmessagesᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸ'ca70ca70-0000-0000-0000-cec111a0ca70'ᐳ"}}:::plan - Object10 & Constant25 --> PgSelect7 + Constant22{{"Constant[22∈0] ➊
ᐸ'ca70ca70-0000-0000-0000-cec111a0ca70'ᐳ"}}:::plan + Object10 & Constant22 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect17[["PgSelect[17∈0] ➊
ᐸforumsᐳ"]]:::plan + PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸ__messages__.”forum_id”ᐳ"}}:::plan + Object10 & PgClassExpression16 --> PgSelect17 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,34 +28,23 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸmessagesᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸforumsᐳ"]]:::plan - PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__messages__.”forum_id”ᐳ"}}:::plan - Object10 & PgClassExpression16 --> PgSelect17 - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__messages__.”id”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__messages__.”id”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__messages__.”body”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__messages__.”body”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression15 PgSelectSingle13 --> PgClassExpression16 - First21{{"First[21∈1] ➊"}}:::plan - PgSelectRows22[["PgSelectRows[22∈1] ➊"]]:::plan - PgSelectRows22 --> First21 - PgSelect17 --> PgSelectRows22 - PgSelectSingle23{{"PgSelectSingle[23∈1] ➊
ᐸforumsᐳ"}}:::plan - First21 --> PgSelectSingle23 + First19{{"First[19∈0] ➊"}}:::plan + PgSelectRows20[["PgSelectRows[20∈0] ➊"]]:::plan + PgSelectRows20 --> First19 + PgSelect17 --> PgSelectRows20 + PgSelectSingle21{{"PgSelectSingle[21∈0] ➊
ᐸforumsᐳ"}}:::plan + First19 --> PgSelectSingle21 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/relations/basics-no-join-if-identical" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 25, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 22, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 15, 16
4: PgSelect[17]
5: PgSelectRows[20]
ᐳ: First[19], PgSelectSingle[21]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant25 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸmessagesᐳ[13]
1:
ᐳ: 14, 15, 16
2: PgSelect[17]
3: PgSelectRows[22]
ᐳ: First[21], PgSelectSingle[23]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgSelect17,First21,PgSelectRows22,PgSelectSingle23 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 23, 16

ROOT PgSelectSingle{1}ᐸforumsᐳ[23]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgSelect17,First19,PgSelectRows20,PgSelectSingle21,Constant22 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/relations/basics.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/relations/basics.deopt.mermaid index e6fca1fd77..1f99738d5d 100644 --- a/grafast/dataplan-pg/__tests__/queries/relations/basics.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/relations/basics.deopt.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸmessagesᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant26{{"Constant[26∈0] ➊
ᐸ'ca70ca70-0000-0000-0000-cec111a0ca70'ᐳ"}}:::plan - Object10 & Constant26 --> PgSelect7 + Constant23{{"Constant[23∈0] ➊
ᐸ'ca70ca70-0000-0000-0000-cec111a0ca70'ᐳ"}}:::plan + Object10 & Constant23 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect17[["PgSelect[17∈0] ➊
ᐸforumsᐳ"]]:::plan + PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸ__messages__.”forum_id”ᐳ"}}:::plan + Object10 & PgClassExpression16 --> PgSelect17 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,36 +28,25 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸmessagesᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸforumsᐳ"]]:::plan - PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__messages__.”forum_id”ᐳ"}}:::plan - Object10 & PgClassExpression16 --> PgSelect17 - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__messages__.”id”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__messages__.”id”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__messages__.”body”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__messages__.”body”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression15 PgSelectSingle13 --> PgClassExpression16 - First21{{"First[21∈1] ➊"}}:::plan - PgSelectRows22[["PgSelectRows[22∈1] ➊"]]:::plan - PgSelectRows22 --> First21 - PgSelect17 --> PgSelectRows22 - PgSelectSingle23{{"PgSelectSingle[23∈1] ➊
ᐸforumsᐳ"}}:::plan - First21 --> PgSelectSingle23 - PgClassExpression25{{"PgClassExpression[25∈2] ➊
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression25 + First19{{"First[19∈0] ➊"}}:::plan + PgSelectRows20[["PgSelectRows[20∈0] ➊"]]:::plan + PgSelectRows20 --> First19 + PgSelect17 --> PgSelectRows20 + PgSelectSingle21{{"PgSelectSingle[21∈0] ➊
ᐸforumsᐳ"}}:::plan + First19 --> PgSelectSingle21 + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression22 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/relations/basics" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 26, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 23, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 15, 16
4: PgSelect[17]
5: PgSelectRows[20]
ᐳ: 19, 21, 22"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant26 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸmessagesᐳ[13]
1:
ᐳ: 14, 15, 16
2: PgSelect[17]
3: PgSelectRows[22]
ᐳ: First[21], PgSelectSingle[23]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgSelect17,First21,PgSelectRows22,PgSelectSingle23 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 23, 16

ROOT PgSelectSingle{1}ᐸforumsᐳ[23]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression25 bucket2 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgSelect17,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression22,Constant23 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/relations/basics.mermaid b/grafast/dataplan-pg/__tests__/queries/relations/basics.mermaid index e6fca1fd77..1f99738d5d 100644 --- a/grafast/dataplan-pg/__tests__/queries/relations/basics.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/relations/basics.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸmessagesᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant26{{"Constant[26∈0] ➊
ᐸ'ca70ca70-0000-0000-0000-cec111a0ca70'ᐳ"}}:::plan - Object10 & Constant26 --> PgSelect7 + Constant23{{"Constant[23∈0] ➊
ᐸ'ca70ca70-0000-0000-0000-cec111a0ca70'ᐳ"}}:::plan + Object10 & Constant23 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect17[["PgSelect[17∈0] ➊
ᐸforumsᐳ"]]:::plan + PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸ__messages__.”forum_id”ᐳ"}}:::plan + Object10 & PgClassExpression16 --> PgSelect17 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,36 +28,25 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸmessagesᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸforumsᐳ"]]:::plan - PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__messages__.”forum_id”ᐳ"}}:::plan - Object10 & PgClassExpression16 --> PgSelect17 - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__messages__.”id”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__messages__.”id”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__messages__.”body”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__messages__.”body”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression15 PgSelectSingle13 --> PgClassExpression16 - First21{{"First[21∈1] ➊"}}:::plan - PgSelectRows22[["PgSelectRows[22∈1] ➊"]]:::plan - PgSelectRows22 --> First21 - PgSelect17 --> PgSelectRows22 - PgSelectSingle23{{"PgSelectSingle[23∈1] ➊
ᐸforumsᐳ"}}:::plan - First21 --> PgSelectSingle23 - PgClassExpression25{{"PgClassExpression[25∈2] ➊
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression25 + First19{{"First[19∈0] ➊"}}:::plan + PgSelectRows20[["PgSelectRows[20∈0] ➊"]]:::plan + PgSelectRows20 --> First19 + PgSelect17 --> PgSelectRows20 + PgSelectSingle21{{"PgSelectSingle[21∈0] ➊
ᐸforumsᐳ"}}:::plan + First19 --> PgSelectSingle21 + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression22 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/relations/basics" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 26, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 23, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 15, 16
4: PgSelect[17]
5: PgSelectRows[20]
ᐳ: 19, 21, 22"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant26 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸmessagesᐳ[13]
1:
ᐳ: 14, 15, 16
2: PgSelect[17]
3: PgSelectRows[22]
ᐳ: First[21], PgSelectSingle[23]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgSelect17,First21,PgSelectRows22,PgSelectSingle23 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 23, 16

ROOT PgSelectSingle{1}ᐸforumsᐳ[23]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression25 bucket2 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgSelect17,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression22,Constant23 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-errors.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-errors.deopt.mermaid index aad992ae27..f7cd1423ea 100644 --- a/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-errors.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-errors.deopt.mermaid @@ -9,13 +9,49 @@ graph TD %% plan dependencies + GraphQLResolver15[["GraphQLResolver[15∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + PgClassExpression13{{"PgClassExpression[13∈0] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan + Constant46{{"Constant[46∈0] ➊
ᐸ§{}ᐳ"}}:::plan + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgClassExpression13 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver15 + GraphQLResolver17[["GraphQLResolver[17∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 + GraphQLResolver19[["GraphQLResolver[19∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver19 + GraphQLResolver21[["GraphQLResolver[21∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver21 + GraphQLResolver23[["GraphQLResolver[23∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver23 + GraphQLResolver25[["GraphQLResolver[25∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver23 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver25 + GraphQLResolver27[["GraphQLResolver[27∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver23 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver27 + GraphQLResolver29[["GraphQLResolver[29∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver23 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver29 + GraphQLResolver31[["GraphQLResolver[31∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver31 + GraphQLResolver33[["GraphQLResolver[33∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver31 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver33 + GraphQLResolver35[["GraphQLResolver[35∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver31 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver35 + GraphQLResolver37[["GraphQLResolver[37∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver31 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver37 + GraphQLResolver39[["GraphQLResolver[39∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver39 + GraphQLResolver41[["GraphQLResolver[41∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver41 + GraphQLResolver43[["GraphQLResolver[43∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver43 + GraphQLResolver45[["GraphQLResolver[45∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver45 Object9{{"Object[9∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access7{{"Access[7∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access8{{"Access[8∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access7 & Access8 --> Object9 PgSelect6[["PgSelect[6∈0] ➊
ᐸrandom_userᐳ"]]:::plan Object9 --> PgSelect6 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access7 __Value2 --> Access8 First10{{"First[10∈0] ➊"}}:::plan @@ -24,67 +60,12 @@ graph TD PgSelect6 --> PgSelectRows11 PgSelectSingle12{{"PgSelectSingle[12∈0] ➊
ᐸusersᐳ"}}:::plan First10 --> PgSelectSingle12 - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant46{{"Constant[46∈0] ➊
ᐸ§{}ᐳ"}}:::plan - GraphQLResolver15[["GraphQLResolver[15∈1] ➊
ᐸresolveᐳ"]]:::unbatchedplan - PgClassExpression13{{"PgClassExpression[13∈1] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan - PgClassExpression13 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver15 PgSelectSingle12 --> PgClassExpression13 - GraphQLResolver17[["GraphQLResolver[17∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 - GraphQLResolver19[["GraphQLResolver[19∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver19 - GraphQLResolver21[["GraphQLResolver[21∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver21 - GraphQLResolver45[["GraphQLResolver[45∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver45 - GraphQLResolver23[["GraphQLResolver[23∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver23 - GraphQLResolver31[["GraphQLResolver[31∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver31 - GraphQLResolver39[["GraphQLResolver[39∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver39 - GraphQLResolver41[["GraphQLResolver[41∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver41 - GraphQLResolver43[["GraphQLResolver[43∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver43 - GraphQLResolver25[["GraphQLResolver[25∈4] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver23 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver25 - GraphQLResolver27[["GraphQLResolver[27∈4] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver23 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver27 - GraphQLResolver29[["GraphQLResolver[29∈4] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver23 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver29 - GraphQLResolver33[["GraphQLResolver[33∈5] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver31 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver33 - GraphQLResolver35[["GraphQLResolver[35∈5] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver31 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver35 - GraphQLResolver37[["GraphQLResolver[37∈5] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver31 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver37 %% define steps subgraph "Buckets for queries/resolvers/basics-object-errors" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 46, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: First[10], PgSelectSingle[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 46, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: 10, 12, 13
4: GraphQLResolver[15]
5: 17, 19, 21, 45
6: 23, 31, 39, 41, 43
7: 25, 27, 29, 33, 35, 37"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,Constant46 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 46, 2, 0, 4

ROOT PgSelectSingleᐸusersᐳ[12]
1:
ᐳ: PgClassExpression[13]
2: GraphQLResolver[15]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression13,GraphQLResolver15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 46, 2, 0, 4

ROOT GraphQLResolver{1}ᐸresolveᐳ[15]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,GraphQLResolver17,GraphQLResolver19,GraphQLResolver21,GraphQLResolver45 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 21, 46, 2, 0, 4

ROOT GraphQLResolver{2}ᐸresolveᐳ[21]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,GraphQLResolver23,GraphQLResolver31,GraphQLResolver39,GraphQLResolver41,GraphQLResolver43 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 23, 46, 2, 0, 4

ROOT GraphQLResolver{3}ᐸresolveᐳ[23]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,GraphQLResolver25,GraphQLResolver27,GraphQLResolver29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 31, 46, 2, 0, 4

ROOT GraphQLResolver{3}ᐸresolveᐳ[31]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,GraphQLResolver33,GraphQLResolver35,GraphQLResolver37 bucket5 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 + class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,PgClassExpression13,GraphQLResolver15,GraphQLResolver17,GraphQLResolver19,GraphQLResolver21,GraphQLResolver23,GraphQLResolver25,GraphQLResolver27,GraphQLResolver29,GraphQLResolver31,GraphQLResolver33,GraphQLResolver35,GraphQLResolver37,GraphQLResolver39,GraphQLResolver41,GraphQLResolver43,GraphQLResolver45,Constant46 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-errors.mermaid b/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-errors.mermaid index aad992ae27..f7cd1423ea 100644 --- a/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-errors.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-errors.mermaid @@ -9,13 +9,49 @@ graph TD %% plan dependencies + GraphQLResolver15[["GraphQLResolver[15∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + PgClassExpression13{{"PgClassExpression[13∈0] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan + Constant46{{"Constant[46∈0] ➊
ᐸ§{}ᐳ"}}:::plan + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgClassExpression13 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver15 + GraphQLResolver17[["GraphQLResolver[17∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 + GraphQLResolver19[["GraphQLResolver[19∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver19 + GraphQLResolver21[["GraphQLResolver[21∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver21 + GraphQLResolver23[["GraphQLResolver[23∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver23 + GraphQLResolver25[["GraphQLResolver[25∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver23 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver25 + GraphQLResolver27[["GraphQLResolver[27∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver23 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver27 + GraphQLResolver29[["GraphQLResolver[29∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver23 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver29 + GraphQLResolver31[["GraphQLResolver[31∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver31 + GraphQLResolver33[["GraphQLResolver[33∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver31 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver33 + GraphQLResolver35[["GraphQLResolver[35∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver31 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver35 + GraphQLResolver37[["GraphQLResolver[37∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver31 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver37 + GraphQLResolver39[["GraphQLResolver[39∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver39 + GraphQLResolver41[["GraphQLResolver[41∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver41 + GraphQLResolver43[["GraphQLResolver[43∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver43 + GraphQLResolver45[["GraphQLResolver[45∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver45 Object9{{"Object[9∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access7{{"Access[7∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access8{{"Access[8∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access7 & Access8 --> Object9 PgSelect6[["PgSelect[6∈0] ➊
ᐸrandom_userᐳ"]]:::plan Object9 --> PgSelect6 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access7 __Value2 --> Access8 First10{{"First[10∈0] ➊"}}:::plan @@ -24,67 +60,12 @@ graph TD PgSelect6 --> PgSelectRows11 PgSelectSingle12{{"PgSelectSingle[12∈0] ➊
ᐸusersᐳ"}}:::plan First10 --> PgSelectSingle12 - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant46{{"Constant[46∈0] ➊
ᐸ§{}ᐳ"}}:::plan - GraphQLResolver15[["GraphQLResolver[15∈1] ➊
ᐸresolveᐳ"]]:::unbatchedplan - PgClassExpression13{{"PgClassExpression[13∈1] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan - PgClassExpression13 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver15 PgSelectSingle12 --> PgClassExpression13 - GraphQLResolver17[["GraphQLResolver[17∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 - GraphQLResolver19[["GraphQLResolver[19∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver19 - GraphQLResolver21[["GraphQLResolver[21∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver21 - GraphQLResolver45[["GraphQLResolver[45∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver45 - GraphQLResolver23[["GraphQLResolver[23∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver23 - GraphQLResolver31[["GraphQLResolver[31∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver31 - GraphQLResolver39[["GraphQLResolver[39∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver39 - GraphQLResolver41[["GraphQLResolver[41∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver41 - GraphQLResolver43[["GraphQLResolver[43∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver43 - GraphQLResolver25[["GraphQLResolver[25∈4] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver23 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver25 - GraphQLResolver27[["GraphQLResolver[27∈4] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver23 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver27 - GraphQLResolver29[["GraphQLResolver[29∈4] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver23 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver29 - GraphQLResolver33[["GraphQLResolver[33∈5] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver31 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver33 - GraphQLResolver35[["GraphQLResolver[35∈5] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver31 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver35 - GraphQLResolver37[["GraphQLResolver[37∈5] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver31 & Constant46 & __Value2 & __Value0 & __Value4 --> GraphQLResolver37 %% define steps subgraph "Buckets for queries/resolvers/basics-object-errors" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 46, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: First[10], PgSelectSingle[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 46, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: 10, 12, 13
4: GraphQLResolver[15]
5: 17, 19, 21, 45
6: 23, 31, 39, 41, 43
7: 25, 27, 29, 33, 35, 37"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,Constant46 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 46, 2, 0, 4

ROOT PgSelectSingleᐸusersᐳ[12]
1:
ᐳ: PgClassExpression[13]
2: GraphQLResolver[15]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression13,GraphQLResolver15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 46, 2, 0, 4

ROOT GraphQLResolver{1}ᐸresolveᐳ[15]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,GraphQLResolver17,GraphQLResolver19,GraphQLResolver21,GraphQLResolver45 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 21, 46, 2, 0, 4

ROOT GraphQLResolver{2}ᐸresolveᐳ[21]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,GraphQLResolver23,GraphQLResolver31,GraphQLResolver39,GraphQLResolver41,GraphQLResolver43 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 23, 46, 2, 0, 4

ROOT GraphQLResolver{3}ᐸresolveᐳ[23]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,GraphQLResolver25,GraphQLResolver27,GraphQLResolver29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 31, 46, 2, 0, 4

ROOT GraphQLResolver{3}ᐸresolveᐳ[31]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,GraphQLResolver33,GraphQLResolver35,GraphQLResolver37 bucket5 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 + class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,PgClassExpression13,GraphQLResolver15,GraphQLResolver17,GraphQLResolver19,GraphQLResolver21,GraphQLResolver23,GraphQLResolver25,GraphQLResolver27,GraphQLResolver29,GraphQLResolver31,GraphQLResolver33,GraphQLResolver35,GraphQLResolver37,GraphQLResolver39,GraphQLResolver41,GraphQLResolver43,GraphQLResolver45,Constant46 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-recursive.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-recursive.deopt.mermaid index 04ac3dd66f..4eb5d0156f 100644 --- a/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-recursive.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-recursive.deopt.mermaid @@ -9,13 +9,37 @@ graph TD %% plan dependencies + GraphQLResolver15[["GraphQLResolver[15∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + PgClassExpression13{{"PgClassExpression[13∈0] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan + Constant34{{"Constant[34∈0] ➊
ᐸ§{}ᐳ"}}:::plan + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgClassExpression13 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver15 + GraphQLResolver17[["GraphQLResolver[17∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 + GraphQLResolver19[["GraphQLResolver[19∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver19 + GraphQLResolver21[["GraphQLResolver[21∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver21 + GraphQLResolver23[["GraphQLResolver[23∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver23 + GraphQLResolver25[["GraphQLResolver[25∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver23 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver25 + GraphQLResolver27[["GraphQLResolver[27∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver23 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver27 + GraphQLResolver29[["GraphQLResolver[29∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver29 + GraphQLResolver31[["GraphQLResolver[31∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver31 + GraphQLResolver33[["GraphQLResolver[33∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver33 Object9{{"Object[9∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access7{{"Access[7∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access8{{"Access[8∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access7 & Access8 --> Object9 PgSelect6[["PgSelect[6∈0] ➊
ᐸrandom_userᐳ"]]:::plan Object9 --> PgSelect6 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access7 __Value2 --> Access8 First10{{"First[10∈0] ➊"}}:::plan @@ -24,52 +48,12 @@ graph TD PgSelect6 --> PgSelectRows11 PgSelectSingle12{{"PgSelectSingle[12∈0] ➊
ᐸusersᐳ"}}:::plan First10 --> PgSelectSingle12 - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant34{{"Constant[34∈0] ➊
ᐸ§{}ᐳ"}}:::plan - GraphQLResolver15[["GraphQLResolver[15∈1] ➊
ᐸresolveᐳ"]]:::unbatchedplan - PgClassExpression13{{"PgClassExpression[13∈1] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan - PgClassExpression13 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver15 PgSelectSingle12 --> PgClassExpression13 - GraphQLResolver17[["GraphQLResolver[17∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 - GraphQLResolver19[["GraphQLResolver[19∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver19 - GraphQLResolver21[["GraphQLResolver[21∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver21 - GraphQLResolver23[["GraphQLResolver[23∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver23 - GraphQLResolver29[["GraphQLResolver[29∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver29 - GraphQLResolver31[["GraphQLResolver[31∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver31 - GraphQLResolver33[["GraphQLResolver[33∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver33 - GraphQLResolver25[["GraphQLResolver[25∈4] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver23 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver25 - GraphQLResolver27[["GraphQLResolver[27∈4] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver23 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver27 %% define steps subgraph "Buckets for queries/resolvers/basics-object-recursive" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 34, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: First[10], PgSelectSingle[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 34, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: 10, 12, 13
4: GraphQLResolver[15]
5: 17, 19, 21
6: 23, 29, 31, 33
7: 25, 27"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,Constant34 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 34, 2, 0, 4

ROOT PgSelectSingleᐸusersᐳ[12]
1:
ᐳ: PgClassExpression[13]
2: GraphQLResolver[15]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression13,GraphQLResolver15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 34, 2, 0, 4

ROOT GraphQLResolver{1}ᐸresolveᐳ[15]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,GraphQLResolver17,GraphQLResolver19,GraphQLResolver21 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 21, 34, 2, 0, 4

ROOT GraphQLResolver{2}ᐸresolveᐳ[21]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,GraphQLResolver23,GraphQLResolver29,GraphQLResolver31,GraphQLResolver33 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 23, 34, 2, 0, 4

ROOT GraphQLResolver{3}ᐸresolveᐳ[23]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,GraphQLResolver25,GraphQLResolver27 bucket4 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 + class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,PgClassExpression13,GraphQLResolver15,GraphQLResolver17,GraphQLResolver19,GraphQLResolver21,GraphQLResolver23,GraphQLResolver25,GraphQLResolver27,GraphQLResolver29,GraphQLResolver31,GraphQLResolver33,Constant34 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-recursive.mermaid b/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-recursive.mermaid index 04ac3dd66f..4eb5d0156f 100644 --- a/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-recursive.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object-recursive.mermaid @@ -9,13 +9,37 @@ graph TD %% plan dependencies + GraphQLResolver15[["GraphQLResolver[15∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + PgClassExpression13{{"PgClassExpression[13∈0] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan + Constant34{{"Constant[34∈0] ➊
ᐸ§{}ᐳ"}}:::plan + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgClassExpression13 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver15 + GraphQLResolver17[["GraphQLResolver[17∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 + GraphQLResolver19[["GraphQLResolver[19∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver19 + GraphQLResolver21[["GraphQLResolver[21∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver21 + GraphQLResolver23[["GraphQLResolver[23∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver23 + GraphQLResolver25[["GraphQLResolver[25∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver23 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver25 + GraphQLResolver27[["GraphQLResolver[27∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver23 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver27 + GraphQLResolver29[["GraphQLResolver[29∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver29 + GraphQLResolver31[["GraphQLResolver[31∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver31 + GraphQLResolver33[["GraphQLResolver[33∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver33 Object9{{"Object[9∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access7{{"Access[7∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access8{{"Access[8∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access7 & Access8 --> Object9 PgSelect6[["PgSelect[6∈0] ➊
ᐸrandom_userᐳ"]]:::plan Object9 --> PgSelect6 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access7 __Value2 --> Access8 First10{{"First[10∈0] ➊"}}:::plan @@ -24,52 +48,12 @@ graph TD PgSelect6 --> PgSelectRows11 PgSelectSingle12{{"PgSelectSingle[12∈0] ➊
ᐸusersᐳ"}}:::plan First10 --> PgSelectSingle12 - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant34{{"Constant[34∈0] ➊
ᐸ§{}ᐳ"}}:::plan - GraphQLResolver15[["GraphQLResolver[15∈1] ➊
ᐸresolveᐳ"]]:::unbatchedplan - PgClassExpression13{{"PgClassExpression[13∈1] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan - PgClassExpression13 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver15 PgSelectSingle12 --> PgClassExpression13 - GraphQLResolver17[["GraphQLResolver[17∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 - GraphQLResolver19[["GraphQLResolver[19∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver19 - GraphQLResolver21[["GraphQLResolver[21∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver21 - GraphQLResolver23[["GraphQLResolver[23∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver23 - GraphQLResolver29[["GraphQLResolver[29∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver29 - GraphQLResolver31[["GraphQLResolver[31∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver31 - GraphQLResolver33[["GraphQLResolver[33∈3] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver21 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver33 - GraphQLResolver25[["GraphQLResolver[25∈4] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver23 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver25 - GraphQLResolver27[["GraphQLResolver[27∈4] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver23 & Constant34 & __Value2 & __Value0 & __Value4 --> GraphQLResolver27 %% define steps subgraph "Buckets for queries/resolvers/basics-object-recursive" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 34, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: First[10], PgSelectSingle[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 34, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: 10, 12, 13
4: GraphQLResolver[15]
5: 17, 19, 21
6: 23, 29, 31, 33
7: 25, 27"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,Constant34 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 34, 2, 0, 4

ROOT PgSelectSingleᐸusersᐳ[12]
1:
ᐳ: PgClassExpression[13]
2: GraphQLResolver[15]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression13,GraphQLResolver15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 34, 2, 0, 4

ROOT GraphQLResolver{1}ᐸresolveᐳ[15]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,GraphQLResolver17,GraphQLResolver19,GraphQLResolver21 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 21, 34, 2, 0, 4

ROOT GraphQLResolver{2}ᐸresolveᐳ[21]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,GraphQLResolver23,GraphQLResolver29,GraphQLResolver31,GraphQLResolver33 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 23, 34, 2, 0, 4

ROOT GraphQLResolver{3}ᐸresolveᐳ[23]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,GraphQLResolver25,GraphQLResolver27 bucket4 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 + class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,PgClassExpression13,GraphQLResolver15,GraphQLResolver17,GraphQLResolver19,GraphQLResolver21,GraphQLResolver23,GraphQLResolver25,GraphQLResolver27,GraphQLResolver29,GraphQLResolver31,GraphQLResolver33,Constant34 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object.deopt.mermaid index 0223e3d85f..552076a362 100644 --- a/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object.deopt.mermaid @@ -9,13 +9,23 @@ graph TD %% plan dependencies + GraphQLResolver15[["GraphQLResolver[15∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + PgClassExpression13{{"PgClassExpression[13∈0] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan + Constant20{{"Constant[20∈0] ➊
ᐸ§{}ᐳ"}}:::plan + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgClassExpression13 & Constant20 & __Value2 & __Value0 & __Value4 --> GraphQLResolver15 + GraphQLResolver17[["GraphQLResolver[17∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant20 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 + GraphQLResolver19[["GraphQLResolver[19∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant20 & __Value2 & __Value0 & __Value4 --> GraphQLResolver19 Object9{{"Object[9∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access7{{"Access[7∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access8{{"Access[8∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access7 & Access8 --> Object9 PgSelect6[["PgSelect[6∈0] ➊
ᐸrandom_userᐳ"]]:::plan Object9 --> PgSelect6 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access7 __Value2 --> Access8 First10{{"First[10∈0] ➊"}}:::plan @@ -24,30 +34,12 @@ graph TD PgSelect6 --> PgSelectRows11 PgSelectSingle12{{"PgSelectSingle[12∈0] ➊
ᐸusersᐳ"}}:::plan First10 --> PgSelectSingle12 - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant20{{"Constant[20∈0] ➊
ᐸ§{}ᐳ"}}:::plan - GraphQLResolver15[["GraphQLResolver[15∈1] ➊
ᐸresolveᐳ"]]:::unbatchedplan - PgClassExpression13{{"PgClassExpression[13∈1] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan - PgClassExpression13 & Constant20 & __Value2 & __Value0 & __Value4 --> GraphQLResolver15 PgSelectSingle12 --> PgClassExpression13 - GraphQLResolver17[["GraphQLResolver[17∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant20 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 - GraphQLResolver19[["GraphQLResolver[19∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant20 & __Value2 & __Value0 & __Value4 --> GraphQLResolver19 %% define steps subgraph "Buckets for queries/resolvers/basics-object" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 20, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: First[10], PgSelectSingle[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 20, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: 10, 12, 13
4: GraphQLResolver[15]
5: 17, 19"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,Constant20 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 20, 2, 0, 4

ROOT PgSelectSingleᐸusersᐳ[12]
1:
ᐳ: PgClassExpression[13]
2: GraphQLResolver[15]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression13,GraphQLResolver15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 20, 2, 0, 4

ROOT GraphQLResolver{1}ᐸresolveᐳ[15]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,GraphQLResolver17,GraphQLResolver19 bucket2 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 + class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,PgClassExpression13,GraphQLResolver15,GraphQLResolver17,GraphQLResolver19,Constant20 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object.mermaid b/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object.mermaid index 0223e3d85f..552076a362 100644 --- a/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/resolvers/basics-object.mermaid @@ -9,13 +9,23 @@ graph TD %% plan dependencies + GraphQLResolver15[["GraphQLResolver[15∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + PgClassExpression13{{"PgClassExpression[13∈0] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan + Constant20{{"Constant[20∈0] ➊
ᐸ§{}ᐳ"}}:::plan + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgClassExpression13 & Constant20 & __Value2 & __Value0 & __Value4 --> GraphQLResolver15 + GraphQLResolver17[["GraphQLResolver[17∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant20 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 + GraphQLResolver19[["GraphQLResolver[19∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + GraphQLResolver15 & Constant20 & __Value2 & __Value0 & __Value4 --> GraphQLResolver19 Object9{{"Object[9∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access7{{"Access[7∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access8{{"Access[8∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access7 & Access8 --> Object9 PgSelect6[["PgSelect[6∈0] ➊
ᐸrandom_userᐳ"]]:::plan Object9 --> PgSelect6 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access7 __Value2 --> Access8 First10{{"First[10∈0] ➊"}}:::plan @@ -24,30 +34,12 @@ graph TD PgSelect6 --> PgSelectRows11 PgSelectSingle12{{"PgSelectSingle[12∈0] ➊
ᐸusersᐳ"}}:::plan First10 --> PgSelectSingle12 - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant20{{"Constant[20∈0] ➊
ᐸ§{}ᐳ"}}:::plan - GraphQLResolver15[["GraphQLResolver[15∈1] ➊
ᐸresolveᐳ"]]:::unbatchedplan - PgClassExpression13{{"PgClassExpression[13∈1] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan - PgClassExpression13 & Constant20 & __Value2 & __Value0 & __Value4 --> GraphQLResolver15 PgSelectSingle12 --> PgClassExpression13 - GraphQLResolver17[["GraphQLResolver[17∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant20 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 - GraphQLResolver19[["GraphQLResolver[19∈2] ➊
ᐸresolveᐳ"]]:::unbatchedplan - GraphQLResolver15 & Constant20 & __Value2 & __Value0 & __Value4 --> GraphQLResolver19 %% define steps subgraph "Buckets for queries/resolvers/basics-object" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 20, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: First[10], PgSelectSingle[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 20, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: 10, 12, 13
4: GraphQLResolver[15]
5: 17, 19"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,Constant20 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 20, 2, 0, 4

ROOT PgSelectSingleᐸusersᐳ[12]
1:
ᐳ: PgClassExpression[13]
2: GraphQLResolver[15]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression13,GraphQLResolver15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 20, 2, 0, 4

ROOT GraphQLResolver{1}ᐸresolveᐳ[15]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,GraphQLResolver17,GraphQLResolver19 bucket2 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 + class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,PgClassExpression13,GraphQLResolver15,GraphQLResolver17,GraphQLResolver19,Constant20 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/resolvers/basics.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/resolvers/basics.deopt.mermaid index f1e99c45f9..1b0ad1b100 100644 --- a/grafast/dataplan-pg/__tests__/queries/resolvers/basics.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/resolvers/basics.deopt.mermaid @@ -9,13 +9,19 @@ graph TD %% plan dependencies + GraphQLResolver17[["GraphQLResolver[17∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + Object15{{"Object[15∈0] ➊
ᐸ{username}ᐳ"}}:::plan + Constant19{{"Constant[19∈0] ➊
ᐸ§{ hashType: 'sha1' }ᐳ"}}:::plan + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + Object15 & Constant19 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 Object9{{"Object[9∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access7{{"Access[7∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access8{{"Access[8∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access7 & Access8 --> Object9 PgSelect6[["PgSelect[6∈0] ➊
ᐸrandom_userᐳ"]]:::plan Object9 --> PgSelect6 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access7 __Value2 --> Access8 First10{{"First[10∈0] ➊"}}:::plan @@ -24,24 +30,14 @@ graph TD PgSelect6 --> PgSelectRows11 PgSelectSingle12{{"PgSelectSingle[12∈0] ➊
ᐸusersᐳ"}}:::plan First10 --> PgSelectSingle12 - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant19{{"Constant[19∈0] ➊
ᐸ§{ hashType: 'sha1' }ᐳ"}}:::plan - GraphQLResolver17[["GraphQLResolver[17∈1] ➊
ᐸresolveᐳ"]]:::unbatchedplan - Object15{{"Object[15∈1] ➊
ᐸ{username}ᐳ"}}:::plan - Object15 & Constant19 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 - PgClassExpression13{{"PgClassExpression[13∈1] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈0] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgClassExpression13 --> Object15 %% define steps subgraph "Buckets for queries/resolvers/basics" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 19, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: First[10], PgSelectSingle[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 19, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: 10, 12, 13, 15
4: GraphQLResolver[17]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,Constant19 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 19, 2, 0, 4

ROOT PgSelectSingleᐸusersᐳ[12]
1:
ᐳ: PgClassExpression[13], Object[15]
2: GraphQLResolver[17]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression13,Object15,GraphQLResolver17 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,PgClassExpression13,Object15,GraphQLResolver17,Constant19 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/resolvers/basics.mermaid b/grafast/dataplan-pg/__tests__/queries/resolvers/basics.mermaid index f1e99c45f9..1b0ad1b100 100644 --- a/grafast/dataplan-pg/__tests__/queries/resolvers/basics.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/resolvers/basics.mermaid @@ -9,13 +9,19 @@ graph TD %% plan dependencies + GraphQLResolver17[["GraphQLResolver[17∈0] ➊
ᐸresolveᐳ"]]:::unbatchedplan + Object15{{"Object[15∈0] ➊
ᐸ{username}ᐳ"}}:::plan + Constant19{{"Constant[19∈0] ➊
ᐸ§{ hashType: 'sha1' }ᐳ"}}:::plan + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + Object15 & Constant19 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 Object9{{"Object[9∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access7{{"Access[7∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access8{{"Access[8∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access7 & Access8 --> Object9 PgSelect6[["PgSelect[6∈0] ➊
ᐸrandom_userᐳ"]]:::plan Object9 --> PgSelect6 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access7 __Value2 --> Access8 First10{{"First[10∈0] ➊"}}:::plan @@ -24,24 +30,14 @@ graph TD PgSelect6 --> PgSelectRows11 PgSelectSingle12{{"PgSelectSingle[12∈0] ➊
ᐸusersᐳ"}}:::plan First10 --> PgSelectSingle12 - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant19{{"Constant[19∈0] ➊
ᐸ§{ hashType: 'sha1' }ᐳ"}}:::plan - GraphQLResolver17[["GraphQLResolver[17∈1] ➊
ᐸresolveᐳ"]]:::unbatchedplan - Object15{{"Object[15∈1] ➊
ᐸ{username}ᐳ"}}:::plan - Object15 & Constant19 & __Value2 & __Value0 & __Value4 --> GraphQLResolver17 - PgClassExpression13{{"PgClassExpression[13∈1] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan + PgClassExpression13{{"PgClassExpression[13∈0] ➊
ᐸ__random_u...”username”ᐳ"}}:::plan PgSelectSingle12 --> PgClassExpression13 PgClassExpression13 --> Object15 %% define steps subgraph "Buckets for queries/resolvers/basics" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 19, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: First[10], PgSelectSingle[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 8, 19, 9
2: PgSelect[6]
3: PgSelectRows[11]
ᐳ: 10, 12, 13, 15
4: GraphQLResolver[17]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,Constant19 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 19, 2, 0, 4

ROOT PgSelectSingleᐸusersᐳ[12]
1:
ᐳ: PgClassExpression[13], Object[15]
2: GraphQLResolver[17]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression13,Object15,GraphQLResolver17 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value0,__Value2,__Value4,PgSelect6,Access7,Access8,Object9,First10,PgSelectRows11,PgSelectSingle12,PgClassExpression13,Object15,GraphQLResolver17,Constant19 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/resolvers/objectDefaults.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/resolvers/objectDefaults.deopt.mermaid index 4f32fc97ff..266b493af0 100644 --- a/grafast/dataplan-pg/__tests__/queries/resolvers/objectDefaults.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/resolvers/objectDefaults.deopt.mermaid @@ -14,29 +14,21 @@ graph TD Constant15{{"Constant[15∈0] ➊
ᐸ§{}ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value4 & Constant15 & __Value2 & __Value0 & __Value4 --> GraphQLResolver7 - Access9{{"Access[9∈1] ➊
ᐸ7.numbersᐳ"}}:::plan + Constant15 & __Value2 & __Value0 --> GraphQLResolver7 + __Value4 -- 2 --> GraphQLResolver7 + Access9{{"Access[9∈0] ➊
ᐸ7.numbersᐳ"}}:::plan GraphQLResolver7 --> Access9 - Access11{{"Access[11∈1] ➊
ᐸ7.friendᐳ"}}:::plan - GraphQLResolver7 --> Access11 - __Item10[/"__Item[10∈2]
ᐸ9ᐳ"\]:::itemplan + __Item10[/"__Item[10∈1]
ᐸ9ᐳ"\]:::itemplan Access9 ==> __Item10 %% define steps subgraph "Buckets for queries/resolvers/objectDefaults" - Bucket0("Bucket 0 (root)

1:
ᐳ: Constant[15]
2: GraphQLResolver[7]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: Constant[15]
2: GraphQLResolver[7]
ᐳ: Access[9]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,GraphQLResolver7,Constant15 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 7

ROOT GraphQLResolverᐸresolveᐳ[7]"):::bucket + class Bucket0,__Value0,__Value2,__Value4,GraphQLResolver7,Access9,Constant15 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ9ᐳ[10]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,Access9,Access11 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ9ᐳ[10]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item10 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 11, 7

ROOT Access{1}ᐸ7.friendᐳ[11]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 + class Bucket1,__Item10 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 & Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/resolvers/objectDefaults.mermaid b/grafast/dataplan-pg/__tests__/queries/resolvers/objectDefaults.mermaid index 4f32fc97ff..266b493af0 100644 --- a/grafast/dataplan-pg/__tests__/queries/resolvers/objectDefaults.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/resolvers/objectDefaults.mermaid @@ -14,29 +14,21 @@ graph TD Constant15{{"Constant[15∈0] ➊
ᐸ§{}ᐳ"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value4 & Constant15 & __Value2 & __Value0 & __Value4 --> GraphQLResolver7 - Access9{{"Access[9∈1] ➊
ᐸ7.numbersᐳ"}}:::plan + Constant15 & __Value2 & __Value0 --> GraphQLResolver7 + __Value4 -- 2 --> GraphQLResolver7 + Access9{{"Access[9∈0] ➊
ᐸ7.numbersᐳ"}}:::plan GraphQLResolver7 --> Access9 - Access11{{"Access[11∈1] ➊
ᐸ7.friendᐳ"}}:::plan - GraphQLResolver7 --> Access11 - __Item10[/"__Item[10∈2]
ᐸ9ᐳ"\]:::itemplan + __Item10[/"__Item[10∈1]
ᐸ9ᐳ"\]:::itemplan Access9 ==> __Item10 %% define steps subgraph "Buckets for queries/resolvers/objectDefaults" - Bucket0("Bucket 0 (root)

1:
ᐳ: Constant[15]
2: GraphQLResolver[7]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: Constant[15]
2: GraphQLResolver[7]
ᐳ: Access[9]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,GraphQLResolver7,Constant15 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 7

ROOT GraphQLResolverᐸresolveᐳ[7]"):::bucket + class Bucket0,__Value0,__Value2,__Value4,GraphQLResolver7,Access9,Constant15 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ9ᐳ[10]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,Access9,Access11 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ9ᐳ[10]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item10 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 11, 7

ROOT Access{1}ᐸ7.friendᐳ[11]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 + class Bucket1,__Item10 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 & Bucket3 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/expression-columns.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/expression-columns.deopt.mermaid index acd486d5f3..e463f04d45 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/expression-columns.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/expression-columns.deopt.mermaid @@ -9,39 +9,38 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant18{{"Constant[18∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant18 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ(__forums_... not null)ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression16 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ(__forums_... not null)ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression17 %% define steps subgraph "Buckets for queries/super-simple/expression-columns" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 18, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Constant18 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression16 bucket2 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression17 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/expression-columns.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/expression-columns.mermaid index acd486d5f3..e463f04d45 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/expression-columns.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/expression-columns.mermaid @@ -9,39 +9,38 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant18{{"Constant[18∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant18 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ(__forums_... not null)ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression16 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ(__forums_... not null)ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression17 %% define steps subgraph "Buckets for queries/super-simple/expression-columns" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 18, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Constant18 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression16 bucket2 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression17 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/expression-plan.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/expression-plan.deopt.mermaid index 3683e600ea..827789b1a5 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/expression-plan.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/expression-plan.deopt.mermaid @@ -9,39 +9,38 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant20{{"Constant[20∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant20 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__forums__...ll is trueᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression18 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__...ll is trueᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression19 %% define steps subgraph "Buckets for queries/super-simple/expression-plan" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 20, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Constant20 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression18 bucket2 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression19 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/expression-plan.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/expression-plan.mermaid index 3683e600ea..827789b1a5 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/expression-plan.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/expression-plan.mermaid @@ -9,39 +9,38 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant20{{"Constant[20∈0] ➊
ᐸ'YES'ᐳ"}}:::plan + Constant20 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__forums__...ll is trueᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression18 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__forums__...ll is trueᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression19 %% define steps subgraph "Buckets for queries/super-simple/expression-plan" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 20, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,Constant20 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression18 bucket2 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression19 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.deopt.mermaid index e603288c1c..3b6a8710d0 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.deopt.mermaid @@ -9,37 +9,36 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 %% define steps subgraph "Buckets for queries/super-simple/field-aliases" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.deopt.sql b/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.deopt.sql index cbae273661..4d039d681a 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.deopt.sql @@ -3,8 +3,8 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.mermaid index e603288c1c..3b6a8710d0 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.mermaid @@ -9,37 +9,36 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 %% define steps subgraph "Buckets for queries/super-simple/field-aliases" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.sql b/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.sql index cbae273661..4d039d681a 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.sql +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/field-aliases.sql @@ -3,8 +3,8 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.deopt.mermaid index 23832a1eda..968bd43586 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.deopt.mermaid @@ -9,44 +9,53 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 + PgSelect18[["PgSelect[18∈0] ➊
ᐸforumsᐳ"]]:::plan + Lambda20[["Lambda[20∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda20 --> PgSelect18 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Constant7 --> Lambda20 + PgSelectRows21[["PgSelectRows[21∈0] ➊"]]:::plan + PgSelect18 --> PgSelectRows21 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression16 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression21 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression17 + __Item22[/"__Item[22∈2]
ᐸ21ᐳ"\]:::itemplan + PgSelectRows21 ==> __Item22 + PgSelectSingle23{{"PgSelectSingle[23∈2]
ᐸforumsᐳ"}}:::plan + __Item22 --> PgSelectSingle23 + PgClassExpression24{{"PgClassExpression[24∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle23 --> PgClassExpression24 %% define steps subgraph "Buckets for queries/super-simple/many-field-aliases-and-mismatched-fields" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12], Lambda[20]
3: PgSelect[8], PgSelect[18]
4: PgSelectRows[13], PgSelectRows[21]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,PgSelect18,Lambda20,PgSelectRows21 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression17 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ21ᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression16 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression21 bucket3 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 & Bucket3 + class Bucket2,__Item22,PgSelectSingle23,PgClassExpression24 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.deopt.sql b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.deopt.sql index ba84a1d014..2c76b0b507 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.deopt.sql @@ -4,8 +4,19 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null + true /* authorization checks */ ) and ( + __forums__.archived_at is null + ) +order by __forums__."id" asc; + +select + __forums__."name" as "0" +from app_public.forums as __forums__ +where + ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.mermaid index 23832a1eda..968bd43586 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.mermaid @@ -9,44 +9,53 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 + PgSelect18[["PgSelect[18∈0] ➊
ᐸforumsᐳ"]]:::plan + Lambda20[["Lambda[20∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda20 --> PgSelect18 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Constant7 --> Lambda20 + PgSelectRows21[["PgSelectRows[21∈0] ➊"]]:::plan + PgSelect18 --> PgSelectRows21 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression16 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression21 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression17 + __Item22[/"__Item[22∈2]
ᐸ21ᐳ"\]:::itemplan + PgSelectRows21 ==> __Item22 + PgSelectSingle23{{"PgSelectSingle[23∈2]
ᐸforumsᐳ"}}:::plan + __Item22 --> PgSelectSingle23 + PgClassExpression24{{"PgClassExpression[24∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle23 --> PgClassExpression24 %% define steps subgraph "Buckets for queries/super-simple/many-field-aliases-and-mismatched-fields" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12], Lambda[20]
3: PgSelect[8], PgSelect[18]
4: PgSelectRows[13], PgSelectRows[21]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,PgSelect18,Lambda20,PgSelectRows21 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression17 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ21ᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression16 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression21 bucket3 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 & Bucket3 + class Bucket2,__Item22,PgSelectSingle23,PgClassExpression24 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.sql b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.sql index ba84a1d014..2c76b0b507 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.sql +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases-and-mismatched-fields.sql @@ -4,8 +4,19 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null + true /* authorization checks */ ) and ( + __forums__.archived_at is null + ) +order by __forums__."id" asc; + +select + __forums__."name" as "0" +from app_public.forums as __forums__ +where + ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.deopt.mermaid index 53f8feaa38..96c93e501f 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.deopt.mermaid @@ -9,42 +9,51 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 + PgSelect17[["PgSelect[17∈0] ➊
ᐸforumsᐳ"]]:::plan + Lambda19[["Lambda[19∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda19 --> PgSelect17 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Constant7 --> Lambda19 + PgSelectRows20[["PgSelectRows[20∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows20 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression20 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan + PgSelectRows20 ==> __Item21 + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸforumsᐳ"}}:::plan + __Item21 --> PgSelectSingle22 + PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression23 %% define steps subgraph "Buckets for queries/super-simple/many-field-aliases" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12], Lambda[19]
3: PgSelect[8], PgSelect[17]
4: PgSelectRows[13], PgSelectRows[20]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,PgSelect17,Lambda19,PgSelectRows20 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ20ᐳ[21]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression20 bucket3 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 & Bucket3 + class Bucket2,__Item21,PgSelectSingle22,PgClassExpression23 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.deopt.sql b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.deopt.sql index cbae273661..4d039d681a 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.deopt.sql @@ -3,8 +3,8 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.mermaid index 53f8feaa38..96c93e501f 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.mermaid @@ -9,42 +9,51 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 + PgSelect17[["PgSelect[17∈0] ➊
ᐸforumsᐳ"]]:::plan + Lambda19[["Lambda[19∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda19 --> PgSelect17 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 + Constant7 --> Lambda19 + PgSelectRows20[["PgSelectRows[20∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows20 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression20 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan + PgSelectRows20 ==> __Item21 + PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸforumsᐳ"}}:::plan + __Item21 --> PgSelectSingle22 + PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression23 %% define steps subgraph "Buckets for queries/super-simple/many-field-aliases" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12], Lambda[19]
3: PgSelect[8], PgSelect[17]
4: PgSelectRows[13], PgSelectRows[20]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13,PgSelect17,Lambda19,PgSelectRows20 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ20ᐳ[21]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression20 bucket3 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 & Bucket3 + class Bucket2,__Item21,PgSelectSingle22,PgClassExpression23 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.sql b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.sql index cbae273661..4d039d681a 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.sql +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/many-field-aliases.sql @@ -3,8 +3,8 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.deopt.mermaid index a3d3297296..d52d614b99 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.deopt.mermaid @@ -9,39 +9,38 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression16 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression17 %% define steps subgraph "Buckets for queries/super-simple/self-reference" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression16 bucket2 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression17 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.deopt.sql b/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.deopt.sql index 313b5e00a6..0e9d648201 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.deopt.sql @@ -4,8 +4,8 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.mermaid index a3d3297296..d52d614b99 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.mermaid @@ -9,39 +9,38 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ__forums__.”id”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression16 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__forums__.”id”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression17 %% define steps subgraph "Buckets for queries/super-simple/self-reference" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression16 bucket2 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16,PgClassExpression17 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.sql b/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.sql index 313b5e00a6..0e9d648201 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.sql +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/self-reference.sql @@ -4,8 +4,8 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/single-record-via-arg.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/single-record-via-arg.deopt.mermaid index d5667a25c6..276ad431fa 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/single-record-via-arg.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/single-record-via-arg.deopt.mermaid @@ -25,20 +25,16 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸforumsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__forums__.”id”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__forums__.”name”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__forums__.”name”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression15 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/super-simple/single-record-via-arg" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 16, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 16, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 15"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant16 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13

ROOT PgSelectSingleᐸforumsᐳ[13]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression15 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,Constant16 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/single-record-via-arg.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/single-record-via-arg.mermaid index d5667a25c6..276ad431fa 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/single-record-via-arg.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/single-record-via-arg.mermaid @@ -25,20 +25,16 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸforumsᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__forums__.”id”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__forums__.”id”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__forums__.”name”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__forums__.”name”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression15 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/super-simple/single-record-via-arg" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 16, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 16, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 15"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant16 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13

ROOT PgSelectSingleᐸforumsᐳ[13]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression15 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,Constant16 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.deopt.mermaid index b47aae48b8..3e5ff6ed2a 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.deopt.mermaid @@ -9,37 +9,36 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 %% define steps subgraph "Buckets for queries/super-simple/super-simple" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.deopt.sql b/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.deopt.sql index cbae273661..4d039d681a 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.deopt.sql @@ -3,8 +3,8 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.mermaid index b47aae48b8..3e5ff6ed2a 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.mermaid @@ -9,37 +9,36 @@ graph TD %% plan dependencies + PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda12[["Lambda[12∈0] ➊
ᐸincludeArchivedConditionᐳ"]]:::unbatchedplan + Object11 & Lambda12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect8[["PgSelect[8∈0] ➊
ᐸforumsᐳ"]]:::plan - Object11 --> PgSelect8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelect8 --> PgSelectRows12 + Constant7{{"Constant[7∈0] ➊
ᐸ'INHERIT'ᐳ"}}:::plan + Constant7 --> Lambda12 + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelect8 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 ==> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸforumsᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 ==> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸforumsᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 %% define steps subgraph "Buckets for queries/super-simple/super-simple" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[9], Access[10], Object[11]
2: PgSelect[8]
3: PgSelectRows[12]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 11
2: Lambda[12]
3: PgSelect[8]
4: PgSelectRows[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12 bucket0 - Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,PgSelect8,Access9,Access10,Object11,Lambda12,PgSelectRows13 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸforumsᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15 bucket2 + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression16 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.sql b/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.sql index cbae273661..4d039d681a 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.sql +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/super-simple.sql @@ -3,8 +3,8 @@ select from app_public.forums as __forums__ where ( - __forums__.archived_at is null - ) and ( true /* authorization checks */ + ) and ( + __forums__.archived_at is null ) order by __forums__."id" asc; diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/unique-forum-message.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/unique-forum-message.deopt.mermaid index 9f8b94c7cc..7a34fa198d 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/unique-forum-message.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/unique-forum-message.deopt.mermaid @@ -9,13 +9,20 @@ graph TD %% plan dependencies - PgSelect7[["PgSelect[7∈0] ➊
ᐸforumsᐳ"]]:::plan + PgSelect18[["PgSelect[18∈0] ➊
ᐸmessagesᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant36{{"Constant[36∈0] ➊
ᐸ'ca700000-0000-0000-0000-000000000ca7'ᐳ"}}:::plan - Object10 & Constant36 --> PgSelect7 + PgClassExpression17{{"PgClassExpression[17∈0] ➊
ᐸ__forums__.”id”ᐳ"}}:::plan + Access15{{"Access[15∈0] ➊
ᐸ0.idᐳ"}}:::plan + Object10 & PgClassExpression17 & Access15 --> PgSelect18 + PgSelect7[["PgSelect[7∈0] ➊
ᐸforumsᐳ"]]:::plan + Constant32{{"Constant[32∈0] ➊
ᐸ'ca700000-0000-0000-0000-000000000ca7'ᐳ"}}:::plan + Object10 & Constant32 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect25[["PgSelect[25∈0] ➊
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈0] ➊
ᐸ__messages...author_id”ᐳ"}}:::plan + Object10 & PgClassExpression24 --> PgSelect25 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,55 +32,36 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸforumsᐳ"}}:::plan First11 --> PgSelectSingle13 - Access15{{"Access[15∈0] ➊
ᐸ0.idᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression14 __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect18[["PgSelect[18∈1] ➊
ᐸmessagesᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__forums__.”id”ᐳ"}}:::plan - Object10 & PgClassExpression17 & Access15 --> PgSelect18 - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression14 PgSelectSingle13 --> PgClassExpression17 - First22{{"First[22∈1] ➊"}}:::plan - PgSelectRows23[["PgSelectRows[23∈1] ➊"]]:::plan - PgSelectRows23 --> First22 - PgSelect18 --> PgSelectRows23 - PgSelectSingle24{{"PgSelectSingle[24∈1] ➊
ᐸmessagesᐳ"}}:::plan - First22 --> PgSelectSingle24 - PgSelect27[["PgSelect[27∈2] ➊
ᐸusersᐳ"]]:::plan - PgClassExpression26{{"PgClassExpression[26∈2] ➊
ᐸ__messages...author_id”ᐳ"}}:::plan - Object10 & PgClassExpression26 --> PgSelect27 - PgClassExpression25{{"PgClassExpression[25∈2] ➊
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle24 --> PgClassExpression25 - PgSelectSingle24 --> PgClassExpression26 - First31{{"First[31∈2] ➊"}}:::plan - PgSelectRows32[["PgSelectRows[32∈2] ➊"]]:::plan - PgSelectRows32 --> First31 - PgSelect27 --> PgSelectRows32 - PgSelectSingle33{{"PgSelectSingle[33∈2] ➊
ᐸusersᐳ"}}:::plan - First31 --> PgSelectSingle33 - PgClassExpression34{{"PgClassExpression[34∈3] ➊
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle33 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈3] ➊
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle33 --> PgClassExpression35 + First20{{"First[20∈0] ➊"}}:::plan + PgSelectRows21[["PgSelectRows[21∈0] ➊"]]:::plan + PgSelectRows21 --> First20 + PgSelect18 --> PgSelectRows21 + PgSelectSingle22{{"PgSelectSingle[22∈0] ➊
ᐸmessagesᐳ"}}:::plan + First20 --> PgSelectSingle22 + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression23 + PgSelectSingle22 --> PgClassExpression24 + First27{{"First[27∈0] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈0] ➊"]]:::plan + PgSelectRows28 --> First27 + PgSelect25 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈0] ➊
ᐸusersᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈0] ➊
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression31 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/super-simple/unique-forum-message" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 15, 36, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 15, 32, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 17
4: PgSelect[18]
5: PgSelectRows[21]
ᐳ: 20, 22, 23, 24
6: PgSelect[25]
7: PgSelectRows[28]
ᐳ: 27, 29, 30, 31"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Access15,Constant36 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10, 15

ROOT PgSelectSingleᐸforumsᐳ[13]
1:
ᐳ: 14, 17
2: PgSelect[18]
3: PgSelectRows[23]
ᐳ: First[22], PgSelectSingle[24]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression17,PgSelect18,First22,PgSelectRows23,PgSelectSingle24 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 24, 10

ROOT PgSelectSingle{1}ᐸmessagesᐳ[24]
1:
ᐳ: 25, 26
2: PgSelect[27]
3: PgSelectRows[32]
ᐳ: First[31], PgSelectSingle[33]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression25,PgClassExpression26,PgSelect27,First31,PgSelectRows32,PgSelectSingle33 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 33

ROOT PgSelectSingle{2}ᐸusersᐳ[33]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression34,PgClassExpression35 bucket3 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 + class Bucket0,__Value0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,Access15,PgClassExpression17,PgSelect18,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgClassExpression24,PgSelect25,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,Constant32 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/super-simple/unique-forum-message.mermaid b/grafast/dataplan-pg/__tests__/queries/super-simple/unique-forum-message.mermaid index 9f8b94c7cc..7a34fa198d 100644 --- a/grafast/dataplan-pg/__tests__/queries/super-simple/unique-forum-message.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/super-simple/unique-forum-message.mermaid @@ -9,13 +9,20 @@ graph TD %% plan dependencies - PgSelect7[["PgSelect[7∈0] ➊
ᐸforumsᐳ"]]:::plan + PgSelect18[["PgSelect[18∈0] ➊
ᐸmessagesᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant36{{"Constant[36∈0] ➊
ᐸ'ca700000-0000-0000-0000-000000000ca7'ᐳ"}}:::plan - Object10 & Constant36 --> PgSelect7 + PgClassExpression17{{"PgClassExpression[17∈0] ➊
ᐸ__forums__.”id”ᐳ"}}:::plan + Access15{{"Access[15∈0] ➊
ᐸ0.idᐳ"}}:::plan + Object10 & PgClassExpression17 & Access15 --> PgSelect18 + PgSelect7[["PgSelect[7∈0] ➊
ᐸforumsᐳ"]]:::plan + Constant32{{"Constant[32∈0] ➊
ᐸ'ca700000-0000-0000-0000-000000000ca7'ᐳ"}}:::plan + Object10 & Constant32 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect25[["PgSelect[25∈0] ➊
ᐸusersᐳ"]]:::plan + PgClassExpression24{{"PgClassExpression[24∈0] ➊
ᐸ__messages...author_id”ᐳ"}}:::plan + Object10 & PgClassExpression24 --> PgSelect25 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,55 +32,36 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸforumsᐳ"}}:::plan First11 --> PgSelectSingle13 - Access15{{"Access[15∈0] ➊
ᐸ0.idᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression14 __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan __Value0 --> Access15 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect18[["PgSelect[18∈1] ➊
ᐸmessagesᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__forums__.”id”ᐳ"}}:::plan - Object10 & PgClassExpression17 & Access15 --> PgSelect18 - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression14 PgSelectSingle13 --> PgClassExpression17 - First22{{"First[22∈1] ➊"}}:::plan - PgSelectRows23[["PgSelectRows[23∈1] ➊"]]:::plan - PgSelectRows23 --> First22 - PgSelect18 --> PgSelectRows23 - PgSelectSingle24{{"PgSelectSingle[24∈1] ➊
ᐸmessagesᐳ"}}:::plan - First22 --> PgSelectSingle24 - PgSelect27[["PgSelect[27∈2] ➊
ᐸusersᐳ"]]:::plan - PgClassExpression26{{"PgClassExpression[26∈2] ➊
ᐸ__messages...author_id”ᐳ"}}:::plan - Object10 & PgClassExpression26 --> PgSelect27 - PgClassExpression25{{"PgClassExpression[25∈2] ➊
ᐸ__messages__.”body”ᐳ"}}:::plan - PgSelectSingle24 --> PgClassExpression25 - PgSelectSingle24 --> PgClassExpression26 - First31{{"First[31∈2] ➊"}}:::plan - PgSelectRows32[["PgSelectRows[32∈2] ➊"]]:::plan - PgSelectRows32 --> First31 - PgSelect27 --> PgSelectRows32 - PgSelectSingle33{{"PgSelectSingle[33∈2] ➊
ᐸusersᐳ"}}:::plan - First31 --> PgSelectSingle33 - PgClassExpression34{{"PgClassExpression[34∈3] ➊
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle33 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈3] ➊
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle33 --> PgClassExpression35 + First20{{"First[20∈0] ➊"}}:::plan + PgSelectRows21[["PgSelectRows[21∈0] ➊"]]:::plan + PgSelectRows21 --> First20 + PgSelect18 --> PgSelectRows21 + PgSelectSingle22{{"PgSelectSingle[22∈0] ➊
ᐸmessagesᐳ"}}:::plan + First20 --> PgSelectSingle22 + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__messages__.”body”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression23 + PgSelectSingle22 --> PgClassExpression24 + First27{{"First[27∈0] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈0] ➊"]]:::plan + PgSelectRows28 --> First27 + PgSelect25 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈0] ➊
ᐸusersᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈0] ➊
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression31 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/super-simple/unique-forum-message" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 15, 36, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 15, 32, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 17
4: PgSelect[18]
5: PgSelectRows[21]
ᐳ: 20, 22, 23, 24
6: PgSelect[25]
7: PgSelectRows[28]
ᐳ: 27, 29, 30, 31"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Access15,Constant36 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10, 15

ROOT PgSelectSingleᐸforumsᐳ[13]
1:
ᐳ: 14, 17
2: PgSelect[18]
3: PgSelectRows[23]
ᐳ: First[22], PgSelectSingle[24]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression17,PgSelect18,First22,PgSelectRows23,PgSelectSingle24 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 24, 10

ROOT PgSelectSingle{1}ᐸmessagesᐳ[24]
1:
ᐳ: 25, 26
2: PgSelect[27]
3: PgSelectRows[32]
ᐳ: First[31], PgSelectSingle[33]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression25,PgClassExpression26,PgSelect27,First31,PgSelectRows32,PgSelectSingle33 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 33

ROOT PgSelectSingle{2}ᐸusersᐳ[33]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression34,PgClassExpression35 bucket3 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 + class Bucket0,__Value0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,Access15,PgClassExpression17,PgSelect18,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgClassExpression24,PgSelect25,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,Constant32 bucket0 end diff --git a/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.deopt.mermaid index 0a88d0d2f6..2b59b25ad7 100644 --- a/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.deopt.mermaid @@ -11,137 +11,129 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸentity_searchᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant67{{"Constant[67∈0] ➊
ᐸ'Dave'ᐳ"}}:::plan - Object10 & Constant67 --> PgSelect7 + PgFromExpression11{{"PgFromExpression[11∈0] ➊"}}:::plan + Object10 & PgFromExpression11 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 - __ListTransform11[["__ListTransform[11∈0] ➊
ᐸeach:7ᐳ"]]:::plan - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelectRows12 & PgSelect7 --> __ListTransform11 + __ListTransform12[["__ListTransform[12∈0] ➊
ᐸeach:7ᐳ"]]:::plan + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelectRows13 & PgSelect7 --> __ListTransform12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 - PgSelect7 --> PgSelectRows12 + Constant68{{"Constant[68∈0] ➊
ᐸ'Dave'ᐳ"}}:::plan + Constant68 --> PgFromExpression11 + PgSelect7 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 -.-> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸentity_searchᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - List20{{"List[20∈2]
ᐸ17,18,19ᐳ"}}:::plan - PgClassExpression17{{"PgClassExpression[17∈2]
ᐸ__entity_s...person_id”ᐳ"}}:::plan - PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__entity_s....”post_id”ᐳ"}}:::plan - PgClassExpression19{{"PgClassExpression[19∈2]
ᐸ__entity_s...omment_id”ᐳ"}}:::plan - PgClassExpression17 & PgClassExpression18 & PgClassExpression19 --> List20 - PgPolymorphic21{{"PgPolymorphic[21∈2]"}}:::plan - PgSelectSingle16{{"PgSelectSingle[16∈2]
ᐸentity_searchᐳ"}}:::plan - PgSelectSingle16 & List20 --> PgPolymorphic21 - __Item15[/"__Item[15∈2]
ᐸ11ᐳ"\]:::itemplan - __ListTransform11 ==> __Item15 - __Item15 --> PgSelectSingle16 - PgSelectSingle16 --> PgClassExpression17 - PgSelectSingle16 --> PgClassExpression18 - PgSelectSingle16 --> PgClassExpression19 - PgSelect22[["PgSelect[22∈3]
ᐸpeopleᐳ
ᐳPerson"]]:::plan - Object10 & PgClassExpression17 --> PgSelect22 - PgSelect31[["PgSelect[31∈3]
ᐸpostsᐳ
ᐳPost"]]:::plan - Object10 & PgClassExpression18 --> PgSelect31 - PgSelect38[["PgSelect[38∈3]
ᐸpeopleᐳ
ᐳPost"]]:::plan - PgClassExpression37{{"PgClassExpression[37∈3]
ᐸ__posts__.”author_id”ᐳ"}}:::plan - Object10 & PgClassExpression37 --> PgSelect38 - PgSelect45[["PgSelect[45∈3]
ᐸcommentsᐳ
ᐳComment"]]:::plan - Object10 & PgClassExpression19 --> PgSelect45 - PgSelect52[["PgSelect[52∈3]
ᐸpeopleᐳ
ᐳComment"]]:::plan - PgClassExpression51{{"PgClassExpression[51∈3]
ᐸ__comments...author_id”ᐳ"}}:::plan - Object10 & PgClassExpression51 --> PgSelect52 - PgSelect59[["PgSelect[59∈3]
ᐸpostsᐳ
ᐳComment"]]:::plan - PgClassExpression58{{"PgClassExpression[58∈3]
ᐸ__comments__.”post_id”ᐳ"}}:::plan - Object10 & PgClassExpression58 --> PgSelect59 - First26{{"First[26∈3]"}}:::plan - PgSelectRows27[["PgSelectRows[27∈3]"]]:::plan - PgSelectRows27 --> First26 - PgSelect22 --> PgSelectRows27 - PgSelectSingle28{{"PgSelectSingle[28∈3]
ᐸpeopleᐳ"}}:::plan - First26 --> PgSelectSingle28 - PgClassExpression29{{"PgClassExpression[29∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression29 - PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression30 - First33{{"First[33∈3]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈3]"]]:::plan - PgSelectRows34 --> First33 - PgSelect31 --> PgSelectRows34 - PgSelectSingle35{{"PgSelectSingle[35∈3]
ᐸpostsᐳ"}}:::plan - First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈3]
ᐸ__posts__.”post_id”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression36 - PgSelectSingle35 --> PgClassExpression37 - First40{{"First[40∈3]"}}:::plan - PgSelectRows41[["PgSelectRows[41∈3]"]]:::plan - PgSelectRows41 --> First40 - PgSelect38 --> PgSelectRows41 - PgSelectSingle42{{"PgSelectSingle[42∈3]
ᐸpeopleᐳ"}}:::plan - First40 --> PgSelectSingle42 - PgClassExpression44{{"PgClassExpression[44∈3]
ᐸ__posts__.”body”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression44 - First47{{"First[47∈3]"}}:::plan - PgSelectRows48[["PgSelectRows[48∈3]"]]:::plan - PgSelectRows48 --> First47 - PgSelect45 --> PgSelectRows48 - PgSelectSingle49{{"PgSelectSingle[49∈3]
ᐸcommentsᐳ"}}:::plan - First47 --> PgSelectSingle49 - PgClassExpression50{{"PgClassExpression[50∈3]
ᐸ__comments...omment_id”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression50 - PgSelectSingle49 --> PgClassExpression51 - First54{{"First[54∈3]"}}:::plan - PgSelectRows55[["PgSelectRows[55∈3]"]]:::plan - PgSelectRows55 --> First54 - PgSelect52 --> PgSelectRows55 - PgSelectSingle56{{"PgSelectSingle[56∈3]
ᐸpeopleᐳ"}}:::plan - First54 --> PgSelectSingle56 - PgSelectSingle49 --> PgClassExpression58 - First61{{"First[61∈3]"}}:::plan - PgSelectRows62[["PgSelectRows[62∈3]"]]:::plan - PgSelectRows62 --> First61 - PgSelect59 --> PgSelectRows62 - PgSelectSingle63{{"PgSelectSingle[63∈3]
ᐸpostsᐳ"}}:::plan - First61 --> PgSelectSingle63 - PgClassExpression66{{"PgClassExpression[66∈3]
ᐸ__comments__.”body”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression66 - PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle42 --> PgClassExpression43 - PgClassExpression57{{"PgClassExpression[57∈5]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle56 --> PgClassExpression57 - PgClassExpression64{{"PgClassExpression[64∈6]
ᐸ__posts__.”post_id”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression64 - PgClassExpression65{{"PgClassExpression[65∈6]
ᐸ__posts__.”body”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression65 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 -.-> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸentity_searchᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + List21{{"List[21∈2]
ᐸ18,19,20ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__entity_s...person_id”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈2]
ᐸ__entity_s....”post_id”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈2]
ᐸ__entity_s...omment_id”ᐳ"}}:::plan + PgClassExpression18 & PgClassExpression19 & PgClassExpression20 --> List21 + PgPolymorphic22{{"PgPolymorphic[22∈2]"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸentity_searchᐳ"}}:::plan + PgSelectSingle17 & List21 --> PgPolymorphic22 + __Item16[/"__Item[16∈2]
ᐸ12ᐳ"\]:::itemplan + __ListTransform12 ==> __Item16 + __Item16 --> PgSelectSingle17 + PgSelectSingle17 --> PgClassExpression18 + PgSelectSingle17 --> PgClassExpression19 + PgSelectSingle17 --> PgClassExpression20 + PgSelect23[["PgSelect[23∈3]
ᐸpeopleᐳ
ᐳPerson"]]:::plan + Object10 & PgClassExpression18 --> PgSelect23 + PgSelect32[["PgSelect[32∈3]
ᐸpostsᐳ
ᐳPost"]]:::plan + Object10 & PgClassExpression19 --> PgSelect32 + PgSelect39[["PgSelect[39∈3]
ᐸpeopleᐳ
ᐳPost"]]:::plan + PgClassExpression38{{"PgClassExpression[38∈3]
ᐸ__posts__.”author_id”ᐳ"}}:::plan + Object10 & PgClassExpression38 --> PgSelect39 + PgSelect46[["PgSelect[46∈3]
ᐸcommentsᐳ
ᐳComment"]]:::plan + Object10 & PgClassExpression20 --> PgSelect46 + PgSelect53[["PgSelect[53∈3]
ᐸpeopleᐳ
ᐳComment"]]:::plan + PgClassExpression52{{"PgClassExpression[52∈3]
ᐸ__comments...author_id”ᐳ"}}:::plan + Object10 & PgClassExpression52 --> PgSelect53 + PgSelect60[["PgSelect[60∈3]
ᐸpostsᐳ
ᐳComment"]]:::plan + PgClassExpression59{{"PgClassExpression[59∈3]
ᐸ__comments__.”post_id”ᐳ"}}:::plan + Object10 & PgClassExpression59 --> PgSelect60 + First27{{"First[27∈3]"}}:::plan + PgSelectRows28[["PgSelectRows[28∈3]"]]:::plan + PgSelectRows28 --> First27 + PgSelect23 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈3]
ᐸpeopleᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression31 + First34{{"First[34∈3]"}}:::plan + PgSelectRows35[["PgSelectRows[35∈3]"]]:::plan + PgSelectRows35 --> First34 + PgSelect32 --> PgSelectRows35 + PgSelectSingle36{{"PgSelectSingle[36∈3]
ᐸpostsᐳ"}}:::plan + First34 --> PgSelectSingle36 + PgClassExpression37{{"PgClassExpression[37∈3]
ᐸ__posts__.”post_id”ᐳ"}}:::plan + PgSelectSingle36 --> PgClassExpression37 + PgSelectSingle36 --> PgClassExpression38 + First41{{"First[41∈3]"}}:::plan + PgSelectRows42[["PgSelectRows[42∈3]"]]:::plan + PgSelectRows42 --> First41 + PgSelect39 --> PgSelectRows42 + PgSelectSingle43{{"PgSelectSingle[43∈3]
ᐸpeopleᐳ"}}:::plan + First41 --> PgSelectSingle43 + PgClassExpression44{{"PgClassExpression[44∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression44 + PgClassExpression45{{"PgClassExpression[45∈3]
ᐸ__posts__.”body”ᐳ"}}:::plan + PgSelectSingle36 --> PgClassExpression45 + First48{{"First[48∈3]"}}:::plan + PgSelectRows49[["PgSelectRows[49∈3]"]]:::plan + PgSelectRows49 --> First48 + PgSelect46 --> PgSelectRows49 + PgSelectSingle50{{"PgSelectSingle[50∈3]
ᐸcommentsᐳ"}}:::plan + First48 --> PgSelectSingle50 + PgClassExpression51{{"PgClassExpression[51∈3]
ᐸ__comments...omment_id”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression51 + PgSelectSingle50 --> PgClassExpression52 + First55{{"First[55∈3]"}}:::plan + PgSelectRows56[["PgSelectRows[56∈3]"]]:::plan + PgSelectRows56 --> First55 + PgSelect53 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈3]
ᐸpeopleᐳ"}}:::plan + First55 --> PgSelectSingle57 + PgClassExpression58{{"PgClassExpression[58∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression58 + PgSelectSingle50 --> PgClassExpression59 + First62{{"First[62∈3]"}}:::plan + PgSelectRows63[["PgSelectRows[63∈3]"]]:::plan + PgSelectRows63 --> First62 + PgSelect60 --> PgSelectRows63 + PgSelectSingle64{{"PgSelectSingle[64∈3]
ᐸpostsᐳ"}}:::plan + First62 --> PgSelectSingle64 + PgClassExpression65{{"PgClassExpression[65∈3]
ᐸ__posts__.”post_id”ᐳ"}}:::plan + PgSelectSingle64 --> PgClassExpression65 + PgClassExpression66{{"PgClassExpression[66∈3]
ᐸ__posts__.”body”ᐳ"}}:::plan + PgSelectSingle64 --> PgClassExpression66 + PgClassExpression67{{"PgClassExpression[67∈3]
ᐸ__comments__.”body”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression67 %% define steps subgraph "Buckets for queries/unions-search-entities/search" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 67, 10
2: PgSelect[7]
3: PgSelectRows[12]
4: __ListTransform[11]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 68, 10, 11
2: PgSelect[7]
3: PgSelectRows[13]
4: __ListTransform[12]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,__ListTransform11,PgSelectRows12,Constant67 bucket0 - Bucket1("Bucket 1 (subroutine)

ROOT PgSelectSingle{1}ᐸentity_searchᐳ[14]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgFromExpression11,__ListTransform12,PgSelectRows13,Constant68 bucket0 + Bucket1("Bucket 1 (subroutine)

ROOT PgSelectSingle{1}ᐸentity_searchᐳ[15]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 10

ROOT __Item{2}ᐸ11ᐳ[15]"):::bucket + class Bucket1,__Item14,PgSelectSingle15 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 10

ROOT __Item{2}ᐸ12ᐳ[16]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item15,PgSelectSingle16,PgClassExpression17,PgClassExpression18,PgClassExpression19,List20,PgPolymorphic21 bucket2 - Bucket3("Bucket 3 (polymorphic)
Person,Post,Comment
Deps: 10, 17, 18, 19, 21
ᐳPerson
ᐳPost
ᐳComment

1: 22, 31, 45
2: 27, 34, 48
ᐳ: 26, 28, 29, 30, 33, 35, 36, 37, 44, 47, 49, 50, 51, 58, 66
3: 38, 52, 59
4: 41, 55, 62
ᐳ: 40, 42, 54, 56, 61, 63"):::bucket + class Bucket2,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgClassExpression20,List21,PgPolymorphic22 bucket2 + Bucket3("Bucket 3 (polymorphic)
Person,Post,Comment
Deps: 10, 18, 19, 20, 22
ᐳPerson
ᐳPost
ᐳComment

1: 23, 32, 46
2: 28, 35, 49
ᐳ: 27, 29, 30, 31, 34, 36, 37, 38, 45, 48, 50, 51, 52, 59, 67
3: 39, 53, 60
4: 42, 56, 63
ᐳ: 41, 43, 44, 55, 57, 58, 62, 64, 65, 66"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgSelect22,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression29,PgClassExpression30,PgSelect31,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,PgClassExpression37,PgSelect38,First40,PgSelectRows41,PgSelectSingle42,PgClassExpression44,PgSelect45,First47,PgSelectRows48,PgSelectSingle49,PgClassExpression50,PgClassExpression51,PgSelect52,First54,PgSelectRows55,PgSelectSingle56,PgClassExpression58,PgSelect59,First61,PgSelectRows62,PgSelectSingle63,PgClassExpression66 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 42

ROOT PgSelectSingle{3}ᐸpeopleᐳ[42]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression43 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 56

ROOT PgSelectSingle{3}ᐸpeopleᐳ[56]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression57 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 63

ROOT PgSelectSingle{3}ᐸpostsᐳ[63]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression64,PgClassExpression65 bucket6 + class Bucket3,PgSelect23,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First34,PgSelectRows35,PgSelectSingle36,PgClassExpression37,PgClassExpression38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgSelect46,First48,PgSelectRows49,PgSelectSingle50,PgClassExpression51,PgClassExpression52,PgSelect53,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,PgClassExpression59,PgSelect60,First62,PgSelectRows63,PgSelectSingle64,PgClassExpression65,PgClassExpression66,PgClassExpression67 bucket3 Bucket0 --> Bucket1 & Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 & Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.deopt.sql b/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.deopt.sql index 5c7c376832..6c7afd2a10 100644 --- a/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.deopt.sql +++ b/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.deopt.sql @@ -3,7 +3,7 @@ select __entity_search__."post_id"::text as "1", __entity_search__."comment_id"::text as "2", (not (__entity_search__ is null))::text as "3" -from interfaces_and_unions.search("query" := $1::"text") as __entity_search__ +from interfaces_and_unions.search($1::"text") as __entity_search__ where ( true /* authorization checks */ ); diff --git a/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.mermaid b/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.mermaid index 0a88d0d2f6..2b59b25ad7 100644 --- a/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.mermaid @@ -11,137 +11,129 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸentity_searchᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant67{{"Constant[67∈0] ➊
ᐸ'Dave'ᐳ"}}:::plan - Object10 & Constant67 --> PgSelect7 + PgFromExpression11{{"PgFromExpression[11∈0] ➊"}}:::plan + Object10 & PgFromExpression11 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 - __ListTransform11[["__ListTransform[11∈0] ➊
ᐸeach:7ᐳ"]]:::plan - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelectRows12 & PgSelect7 --> __ListTransform11 + __ListTransform12[["__ListTransform[12∈0] ➊
ᐸeach:7ᐳ"]]:::plan + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelectRows13 & PgSelect7 --> __ListTransform12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 - PgSelect7 --> PgSelectRows12 + Constant68{{"Constant[68∈0] ➊
ᐸ'Dave'ᐳ"}}:::plan + Constant68 --> PgFromExpression11 + PgSelect7 --> PgSelectRows13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan - PgSelectRows12 -.-> __Item13 - PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸentity_searchᐳ"}}:::plan - __Item13 --> PgSelectSingle14 - List20{{"List[20∈2]
ᐸ17,18,19ᐳ"}}:::plan - PgClassExpression17{{"PgClassExpression[17∈2]
ᐸ__entity_s...person_id”ᐳ"}}:::plan - PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__entity_s....”post_id”ᐳ"}}:::plan - PgClassExpression19{{"PgClassExpression[19∈2]
ᐸ__entity_s...omment_id”ᐳ"}}:::plan - PgClassExpression17 & PgClassExpression18 & PgClassExpression19 --> List20 - PgPolymorphic21{{"PgPolymorphic[21∈2]"}}:::plan - PgSelectSingle16{{"PgSelectSingle[16∈2]
ᐸentity_searchᐳ"}}:::plan - PgSelectSingle16 & List20 --> PgPolymorphic21 - __Item15[/"__Item[15∈2]
ᐸ11ᐳ"\]:::itemplan - __ListTransform11 ==> __Item15 - __Item15 --> PgSelectSingle16 - PgSelectSingle16 --> PgClassExpression17 - PgSelectSingle16 --> PgClassExpression18 - PgSelectSingle16 --> PgClassExpression19 - PgSelect22[["PgSelect[22∈3]
ᐸpeopleᐳ
ᐳPerson"]]:::plan - Object10 & PgClassExpression17 --> PgSelect22 - PgSelect31[["PgSelect[31∈3]
ᐸpostsᐳ
ᐳPost"]]:::plan - Object10 & PgClassExpression18 --> PgSelect31 - PgSelect38[["PgSelect[38∈3]
ᐸpeopleᐳ
ᐳPost"]]:::plan - PgClassExpression37{{"PgClassExpression[37∈3]
ᐸ__posts__.”author_id”ᐳ"}}:::plan - Object10 & PgClassExpression37 --> PgSelect38 - PgSelect45[["PgSelect[45∈3]
ᐸcommentsᐳ
ᐳComment"]]:::plan - Object10 & PgClassExpression19 --> PgSelect45 - PgSelect52[["PgSelect[52∈3]
ᐸpeopleᐳ
ᐳComment"]]:::plan - PgClassExpression51{{"PgClassExpression[51∈3]
ᐸ__comments...author_id”ᐳ"}}:::plan - Object10 & PgClassExpression51 --> PgSelect52 - PgSelect59[["PgSelect[59∈3]
ᐸpostsᐳ
ᐳComment"]]:::plan - PgClassExpression58{{"PgClassExpression[58∈3]
ᐸ__comments__.”post_id”ᐳ"}}:::plan - Object10 & PgClassExpression58 --> PgSelect59 - First26{{"First[26∈3]"}}:::plan - PgSelectRows27[["PgSelectRows[27∈3]"]]:::plan - PgSelectRows27 --> First26 - PgSelect22 --> PgSelectRows27 - PgSelectSingle28{{"PgSelectSingle[28∈3]
ᐸpeopleᐳ"}}:::plan - First26 --> PgSelectSingle28 - PgClassExpression29{{"PgClassExpression[29∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression29 - PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression30 - First33{{"First[33∈3]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈3]"]]:::plan - PgSelectRows34 --> First33 - PgSelect31 --> PgSelectRows34 - PgSelectSingle35{{"PgSelectSingle[35∈3]
ᐸpostsᐳ"}}:::plan - First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈3]
ᐸ__posts__.”post_id”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression36 - PgSelectSingle35 --> PgClassExpression37 - First40{{"First[40∈3]"}}:::plan - PgSelectRows41[["PgSelectRows[41∈3]"]]:::plan - PgSelectRows41 --> First40 - PgSelect38 --> PgSelectRows41 - PgSelectSingle42{{"PgSelectSingle[42∈3]
ᐸpeopleᐳ"}}:::plan - First40 --> PgSelectSingle42 - PgClassExpression44{{"PgClassExpression[44∈3]
ᐸ__posts__.”body”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression44 - First47{{"First[47∈3]"}}:::plan - PgSelectRows48[["PgSelectRows[48∈3]"]]:::plan - PgSelectRows48 --> First47 - PgSelect45 --> PgSelectRows48 - PgSelectSingle49{{"PgSelectSingle[49∈3]
ᐸcommentsᐳ"}}:::plan - First47 --> PgSelectSingle49 - PgClassExpression50{{"PgClassExpression[50∈3]
ᐸ__comments...omment_id”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression50 - PgSelectSingle49 --> PgClassExpression51 - First54{{"First[54∈3]"}}:::plan - PgSelectRows55[["PgSelectRows[55∈3]"]]:::plan - PgSelectRows55 --> First54 - PgSelect52 --> PgSelectRows55 - PgSelectSingle56{{"PgSelectSingle[56∈3]
ᐸpeopleᐳ"}}:::plan - First54 --> PgSelectSingle56 - PgSelectSingle49 --> PgClassExpression58 - First61{{"First[61∈3]"}}:::plan - PgSelectRows62[["PgSelectRows[62∈3]"]]:::plan - PgSelectRows62 --> First61 - PgSelect59 --> PgSelectRows62 - PgSelectSingle63{{"PgSelectSingle[63∈3]
ᐸpostsᐳ"}}:::plan - First61 --> PgSelectSingle63 - PgClassExpression66{{"PgClassExpression[66∈3]
ᐸ__comments__.”body”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression66 - PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle42 --> PgClassExpression43 - PgClassExpression57{{"PgClassExpression[57∈5]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle56 --> PgClassExpression57 - PgClassExpression64{{"PgClassExpression[64∈6]
ᐸ__posts__.”post_id”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression64 - PgClassExpression65{{"PgClassExpression[65∈6]
ᐸ__posts__.”body”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression65 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan + PgSelectRows13 -.-> __Item14 + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸentity_searchᐳ"}}:::plan + __Item14 --> PgSelectSingle15 + List21{{"List[21∈2]
ᐸ18,19,20ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__entity_s...person_id”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈2]
ᐸ__entity_s....”post_id”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈2]
ᐸ__entity_s...omment_id”ᐳ"}}:::plan + PgClassExpression18 & PgClassExpression19 & PgClassExpression20 --> List21 + PgPolymorphic22{{"PgPolymorphic[22∈2]"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸentity_searchᐳ"}}:::plan + PgSelectSingle17 & List21 --> PgPolymorphic22 + __Item16[/"__Item[16∈2]
ᐸ12ᐳ"\]:::itemplan + __ListTransform12 ==> __Item16 + __Item16 --> PgSelectSingle17 + PgSelectSingle17 --> PgClassExpression18 + PgSelectSingle17 --> PgClassExpression19 + PgSelectSingle17 --> PgClassExpression20 + PgSelect23[["PgSelect[23∈3]
ᐸpeopleᐳ
ᐳPerson"]]:::plan + Object10 & PgClassExpression18 --> PgSelect23 + PgSelect32[["PgSelect[32∈3]
ᐸpostsᐳ
ᐳPost"]]:::plan + Object10 & PgClassExpression19 --> PgSelect32 + PgSelect39[["PgSelect[39∈3]
ᐸpeopleᐳ
ᐳPost"]]:::plan + PgClassExpression38{{"PgClassExpression[38∈3]
ᐸ__posts__.”author_id”ᐳ"}}:::plan + Object10 & PgClassExpression38 --> PgSelect39 + PgSelect46[["PgSelect[46∈3]
ᐸcommentsᐳ
ᐳComment"]]:::plan + Object10 & PgClassExpression20 --> PgSelect46 + PgSelect53[["PgSelect[53∈3]
ᐸpeopleᐳ
ᐳComment"]]:::plan + PgClassExpression52{{"PgClassExpression[52∈3]
ᐸ__comments...author_id”ᐳ"}}:::plan + Object10 & PgClassExpression52 --> PgSelect53 + PgSelect60[["PgSelect[60∈3]
ᐸpostsᐳ
ᐳComment"]]:::plan + PgClassExpression59{{"PgClassExpression[59∈3]
ᐸ__comments__.”post_id”ᐳ"}}:::plan + Object10 & PgClassExpression59 --> PgSelect60 + First27{{"First[27∈3]"}}:::plan + PgSelectRows28[["PgSelectRows[28∈3]"]]:::plan + PgSelectRows28 --> First27 + PgSelect23 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈3]
ᐸpeopleᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression31 + First34{{"First[34∈3]"}}:::plan + PgSelectRows35[["PgSelectRows[35∈3]"]]:::plan + PgSelectRows35 --> First34 + PgSelect32 --> PgSelectRows35 + PgSelectSingle36{{"PgSelectSingle[36∈3]
ᐸpostsᐳ"}}:::plan + First34 --> PgSelectSingle36 + PgClassExpression37{{"PgClassExpression[37∈3]
ᐸ__posts__.”post_id”ᐳ"}}:::plan + PgSelectSingle36 --> PgClassExpression37 + PgSelectSingle36 --> PgClassExpression38 + First41{{"First[41∈3]"}}:::plan + PgSelectRows42[["PgSelectRows[42∈3]"]]:::plan + PgSelectRows42 --> First41 + PgSelect39 --> PgSelectRows42 + PgSelectSingle43{{"PgSelectSingle[43∈3]
ᐸpeopleᐳ"}}:::plan + First41 --> PgSelectSingle43 + PgClassExpression44{{"PgClassExpression[44∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression44 + PgClassExpression45{{"PgClassExpression[45∈3]
ᐸ__posts__.”body”ᐳ"}}:::plan + PgSelectSingle36 --> PgClassExpression45 + First48{{"First[48∈3]"}}:::plan + PgSelectRows49[["PgSelectRows[49∈3]"]]:::plan + PgSelectRows49 --> First48 + PgSelect46 --> PgSelectRows49 + PgSelectSingle50{{"PgSelectSingle[50∈3]
ᐸcommentsᐳ"}}:::plan + First48 --> PgSelectSingle50 + PgClassExpression51{{"PgClassExpression[51∈3]
ᐸ__comments...omment_id”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression51 + PgSelectSingle50 --> PgClassExpression52 + First55{{"First[55∈3]"}}:::plan + PgSelectRows56[["PgSelectRows[56∈3]"]]:::plan + PgSelectRows56 --> First55 + PgSelect53 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈3]
ᐸpeopleᐳ"}}:::plan + First55 --> PgSelectSingle57 + PgClassExpression58{{"PgClassExpression[58∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression58 + PgSelectSingle50 --> PgClassExpression59 + First62{{"First[62∈3]"}}:::plan + PgSelectRows63[["PgSelectRows[63∈3]"]]:::plan + PgSelectRows63 --> First62 + PgSelect60 --> PgSelectRows63 + PgSelectSingle64{{"PgSelectSingle[64∈3]
ᐸpostsᐳ"}}:::plan + First62 --> PgSelectSingle64 + PgClassExpression65{{"PgClassExpression[65∈3]
ᐸ__posts__.”post_id”ᐳ"}}:::plan + PgSelectSingle64 --> PgClassExpression65 + PgClassExpression66{{"PgClassExpression[66∈3]
ᐸ__posts__.”body”ᐳ"}}:::plan + PgSelectSingle64 --> PgClassExpression66 + PgClassExpression67{{"PgClassExpression[67∈3]
ᐸ__comments__.”body”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression67 %% define steps subgraph "Buckets for queries/unions-search-entities/search" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 67, 10
2: PgSelect[7]
3: PgSelectRows[12]
4: __ListTransform[11]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 68, 10, 11
2: PgSelect[7]
3: PgSelectRows[13]
4: __ListTransform[12]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,__ListTransform11,PgSelectRows12,Constant67 bucket0 - Bucket1("Bucket 1 (subroutine)

ROOT PgSelectSingle{1}ᐸentity_searchᐳ[14]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgFromExpression11,__ListTransform12,PgSelectRows13,Constant68 bucket0 + Bucket1("Bucket 1 (subroutine)

ROOT PgSelectSingle{1}ᐸentity_searchᐳ[15]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 10

ROOT __Item{2}ᐸ11ᐳ[15]"):::bucket + class Bucket1,__Item14,PgSelectSingle15 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 10

ROOT __Item{2}ᐸ12ᐳ[16]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item15,PgSelectSingle16,PgClassExpression17,PgClassExpression18,PgClassExpression19,List20,PgPolymorphic21 bucket2 - Bucket3("Bucket 3 (polymorphic)
Person,Post,Comment
Deps: 10, 17, 18, 19, 21
ᐳPerson
ᐳPost
ᐳComment

1: 22, 31, 45
2: 27, 34, 48
ᐳ: 26, 28, 29, 30, 33, 35, 36, 37, 44, 47, 49, 50, 51, 58, 66
3: 38, 52, 59
4: 41, 55, 62
ᐳ: 40, 42, 54, 56, 61, 63"):::bucket + class Bucket2,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgClassExpression20,List21,PgPolymorphic22 bucket2 + Bucket3("Bucket 3 (polymorphic)
Person,Post,Comment
Deps: 10, 18, 19, 20, 22
ᐳPerson
ᐳPost
ᐳComment

1: 23, 32, 46
2: 28, 35, 49
ᐳ: 27, 29, 30, 31, 34, 36, 37, 38, 45, 48, 50, 51, 52, 59, 67
3: 39, 53, 60
4: 42, 56, 63
ᐳ: 41, 43, 44, 55, 57, 58, 62, 64, 65, 66"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgSelect22,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression29,PgClassExpression30,PgSelect31,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,PgClassExpression37,PgSelect38,First40,PgSelectRows41,PgSelectSingle42,PgClassExpression44,PgSelect45,First47,PgSelectRows48,PgSelectSingle49,PgClassExpression50,PgClassExpression51,PgSelect52,First54,PgSelectRows55,PgSelectSingle56,PgClassExpression58,PgSelect59,First61,PgSelectRows62,PgSelectSingle63,PgClassExpression66 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 42

ROOT PgSelectSingle{3}ᐸpeopleᐳ[42]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression43 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 56

ROOT PgSelectSingle{3}ᐸpeopleᐳ[56]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression57 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 63

ROOT PgSelectSingle{3}ᐸpostsᐳ[63]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression64,PgClassExpression65 bucket6 + class Bucket3,PgSelect23,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgSelect32,First34,PgSelectRows35,PgSelectSingle36,PgClassExpression37,PgClassExpression38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgSelect46,First48,PgSelectRows49,PgSelectSingle50,PgClassExpression51,PgClassExpression52,PgSelect53,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,PgClassExpression59,PgSelect60,First62,PgSelectRows63,PgSelectSingle64,PgClassExpression65,PgClassExpression66,PgClassExpression67 bucket3 Bucket0 --> Bucket1 & Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 & Bucket6 end diff --git a/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.sql b/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.sql index 5c7c376832..6c7afd2a10 100644 --- a/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.sql +++ b/grafast/dataplan-pg/__tests__/queries/unions-search-entities/search.sql @@ -3,7 +3,7 @@ select __entity_search__."post_id"::text as "1", __entity_search__."comment_id"::text as "2", (not (__entity_search__ is null))::text as "3" -from interfaces_and_unions.search("query" := $1::"text") as __entity_search__ +from interfaces_and_unions.search($1::"text") as __entity_search__ where ( true /* authorization checks */ ); diff --git a/grafast/dataplan-pg/__tests__/queries/unions-table/bookmarks.deopt.mermaid b/grafast/dataplan-pg/__tests__/queries/unions-table/bookmarks.deopt.mermaid index fd81651cb7..ee9411aa68 100644 --- a/grafast/dataplan-pg/__tests__/queries/unions-table/bookmarks.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/unions-table/bookmarks.deopt.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸpeopleᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant83{{"Constant[83∈0] ➊
ᐸ2ᐳ"}}:::plan - Object10 & Constant83 --> PgSelect7 + Constant81{{"Constant[81∈0] ➊
ᐸ2ᐳ"}}:::plan + Object10 & Constant81 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect16[["PgSelect[16∈0] ➊
ᐸperson_bookmarksᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object10 & PgClassExpression14 --> PgSelect16 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,151 +28,127 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸpeopleᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸperson_bookmarksᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect16 PgSelectSingle13 --> PgClassExpression14 - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression15 - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows20 - __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan - PgSelectRows20 ==> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸperson_bookmarksᐳ"}}:::plan - __Item21 --> PgSelectSingle22 - List37{{"List[37∈3]
ᐸ34,35,36ᐳ"}}:::plan - PgClassExpression34{{"PgClassExpression[34∈3]
ᐸ(__person_...person_id”ᐳ"}}:::plan - PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ(__person_....”post_id”ᐳ"}}:::plan - PgClassExpression36{{"PgClassExpression[36∈3]
ᐸ(__person_...omment_id”ᐳ"}}:::plan - PgClassExpression34 & PgClassExpression35 & PgClassExpression36 --> List37 - PgSelect25[["PgSelect[25∈3]
ᐸpeopleᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__person_b...person_id”ᐳ"}}:::plan - Object10 & PgClassExpression24 --> PgSelect25 - PgPolymorphic38{{"PgPolymorphic[38∈3]"}}:::plan - PgClassExpression33{{"PgClassExpression[33∈3]
ᐸ__person_b...ed_entity”ᐳ"}}:::plan - PgClassExpression33 & List37 --> PgPolymorphic38 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__person_b...rks__.”id”ᐳ"}}:::plan - PgSelectSingle22 --> PgClassExpression23 - PgSelectSingle22 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸpeopleᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgSelectSingle22 --> PgClassExpression33 - PgSelectSingle22 --> PgClassExpression34 - PgSelectSingle22 --> PgClassExpression35 - PgSelectSingle22 --> PgClassExpression36 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression32 - PgSelect39[["PgSelect[39∈5]
ᐸpeopleᐳ
ᐳPerson"]]:::plan - Object10 & PgClassExpression34 --> PgSelect39 - PgSelect48[["PgSelect[48∈5]
ᐸpostsᐳ
ᐳPost"]]:::plan - Object10 & PgClassExpression35 --> PgSelect48 - PgSelect55[["PgSelect[55∈5]
ᐸpeopleᐳ
ᐳPost"]]:::plan - PgClassExpression54{{"PgClassExpression[54∈5]
ᐸ__posts__.”author_id”ᐳ"}}:::plan - Object10 & PgClassExpression54 --> PgSelect55 - PgSelect62[["PgSelect[62∈5]
ᐸcommentsᐳ
ᐳComment"]]:::plan - Object10 & PgClassExpression36 --> PgSelect62 - PgSelect69[["PgSelect[69∈5]
ᐸpeopleᐳ
ᐳComment"]]:::plan - PgClassExpression68{{"PgClassExpression[68∈5]
ᐸ__comments...author_id”ᐳ"}}:::plan - Object10 & PgClassExpression68 --> PgSelect69 - PgSelect76[["PgSelect[76∈5]
ᐸpostsᐳ
ᐳComment"]]:::plan - PgClassExpression75{{"PgClassExpression[75∈5]
ᐸ__comments__.”post_id”ᐳ"}}:::plan - Object10 & PgClassExpression75 --> PgSelect76 - First43{{"First[43∈5]"}}:::plan - PgSelectRows44[["PgSelectRows[44∈5]"]]:::plan - PgSelectRows44 --> First43 - PgSelect39 --> PgSelectRows44 - PgSelectSingle45{{"PgSelectSingle[45∈5]
ᐸpeopleᐳ"}}:::plan - First43 --> PgSelectSingle45 - PgClassExpression46{{"PgClassExpression[46∈5]
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈5]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression47 - First50{{"First[50∈5]"}}:::plan - PgSelectRows51[["PgSelectRows[51∈5]"]]:::plan - PgSelectRows51 --> First50 - PgSelect48 --> PgSelectRows51 - PgSelectSingle52{{"PgSelectSingle[52∈5]
ᐸpostsᐳ"}}:::plan - First50 --> PgSelectSingle52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__posts__.”post_id”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression53 - PgSelectSingle52 --> PgClassExpression54 - First57{{"First[57∈5]"}}:::plan - PgSelectRows58[["PgSelectRows[58∈5]"]]:::plan - PgSelectRows58 --> First57 - PgSelect55 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈5]
ᐸpeopleᐳ"}}:::plan - First57 --> PgSelectSingle59 - PgClassExpression61{{"PgClassExpression[61∈5]
ᐸ__posts__.”body”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression61 - First64{{"First[64∈5]"}}:::plan - PgSelectRows65[["PgSelectRows[65∈5]"]]:::plan - PgSelectRows65 --> First64 - PgSelect62 --> PgSelectRows65 - PgSelectSingle66{{"PgSelectSingle[66∈5]
ᐸcommentsᐳ"}}:::plan - First64 --> PgSelectSingle66 - PgClassExpression67{{"PgClassExpression[67∈5]
ᐸ__comments...omment_id”ᐳ"}}:::plan - PgSelectSingle66 --> PgClassExpression67 - PgSelectSingle66 --> PgClassExpression68 - First71{{"First[71∈5]"}}:::plan - PgSelectRows72[["PgSelectRows[72∈5]"]]:::plan - PgSelectRows72 --> First71 - PgSelect69 --> PgSelectRows72 - PgSelectSingle73{{"PgSelectSingle[73∈5]
ᐸpeopleᐳ"}}:::plan - First71 --> PgSelectSingle73 - PgSelectSingle66 --> PgClassExpression75 - First78{{"First[78∈5]"}}:::plan - PgSelectRows79[["PgSelectRows[79∈5]"]]:::plan - PgSelectRows79 --> First78 - PgSelect76 --> PgSelectRows79 - PgSelectSingle80{{"PgSelectSingle[80∈5]
ᐸpostsᐳ"}}:::plan - First78 --> PgSelectSingle80 - PgClassExpression82{{"PgClassExpression[82∈5]
ᐸ__comments__.”body”ᐳ"}}:::plan - PgSelectSingle66 --> PgClassExpression82 - PgClassExpression60{{"PgClassExpression[60∈6]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression60 - PgClassExpression74{{"PgClassExpression[74∈7]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle73 --> PgClassExpression74 - PgClassExpression81{{"PgClassExpression[81∈8]
ᐸ__posts__.”body”ᐳ"}}:::plan - PgSelectSingle80 --> PgClassExpression81 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect16 --> PgSelectRows18 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + List35{{"List[35∈1]
ᐸ32,33,34ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ(__person_...person_id”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ(__person_....”post_id”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ(__person_...omment_id”ᐳ"}}:::plan + PgClassExpression32 & PgClassExpression33 & PgClassExpression34 --> List35 + PgSelect23[["PgSelect[23∈1]
ᐸpeopleᐳ"]]:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__person_b...person_id”ᐳ"}}:::plan + Object10 & PgClassExpression22 --> PgSelect23 + PgPolymorphic36{{"PgPolymorphic[36∈1]"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈1]
ᐸ__person_b...ed_entity”ᐳ"}}:::plan + PgClassExpression31 & List35 --> PgPolymorphic36 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸperson_bookmarksᐳ"}}:::plan + __Item19 --> PgSelectSingle20 + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__person_b...rks__.”id”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression21 + PgSelectSingle20 --> PgClassExpression22 + First27{{"First[27∈1]"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1]"]]:::plan + PgSelectRows28 --> First27 + PgSelect23 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1]
ᐸpeopleᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈1]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle20 --> PgClassExpression31 + PgSelectSingle20 --> PgClassExpression32 + PgSelectSingle20 --> PgClassExpression33 + PgSelectSingle20 --> PgClassExpression34 + PgSelect37[["PgSelect[37∈2]
ᐸpeopleᐳ
ᐳPerson"]]:::plan + Object10 & PgClassExpression32 --> PgSelect37 + PgSelect46[["PgSelect[46∈2]
ᐸpostsᐳ
ᐳPost"]]:::plan + Object10 & PgClassExpression33 --> PgSelect46 + PgSelect53[["PgSelect[53∈2]
ᐸpeopleᐳ
ᐳPost"]]:::plan + PgClassExpression52{{"PgClassExpression[52∈2]
ᐸ__posts__.”author_id”ᐳ"}}:::plan + Object10 & PgClassExpression52 --> PgSelect53 + PgSelect60[["PgSelect[60∈2]
ᐸcommentsᐳ
ᐳComment"]]:::plan + Object10 & PgClassExpression34 --> PgSelect60 + PgSelect67[["PgSelect[67∈2]
ᐸpeopleᐳ
ᐳComment"]]:::plan + PgClassExpression66{{"PgClassExpression[66∈2]
ᐸ__comments...author_id”ᐳ"}}:::plan + Object10 & PgClassExpression66 --> PgSelect67 + PgSelect74[["PgSelect[74∈2]
ᐸpostsᐳ
ᐳComment"]]:::plan + PgClassExpression73{{"PgClassExpression[73∈2]
ᐸ__comments__.”post_id”ᐳ"}}:::plan + Object10 & PgClassExpression73 --> PgSelect74 + First41{{"First[41∈2]"}}:::plan + PgSelectRows42[["PgSelectRows[42∈2]"]]:::plan + PgSelectRows42 --> First41 + PgSelect37 --> PgSelectRows42 + PgSelectSingle43{{"PgSelectSingle[43∈2]
ᐸpeopleᐳ"}}:::plan + First41 --> PgSelectSingle43 + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression44 + PgClassExpression45{{"PgClassExpression[45∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression45 + First48{{"First[48∈2]"}}:::plan + PgSelectRows49[["PgSelectRows[49∈2]"]]:::plan + PgSelectRows49 --> First48 + PgSelect46 --> PgSelectRows49 + PgSelectSingle50{{"PgSelectSingle[50∈2]
ᐸpostsᐳ"}}:::plan + First48 --> PgSelectSingle50 + PgClassExpression51{{"PgClassExpression[51∈2]
ᐸ__posts__.”post_id”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression51 + PgSelectSingle50 --> PgClassExpression52 + First55{{"First[55∈2]"}}:::plan + PgSelectRows56[["PgSelectRows[56∈2]"]]:::plan + PgSelectRows56 --> First55 + PgSelect53 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈2]
ᐸpeopleᐳ"}}:::plan + First55 --> PgSelectSingle57 + PgClassExpression58{{"PgClassExpression[58∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression58 + PgClassExpression59{{"PgClassExpression[59∈2]
ᐸ__posts__.”body”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression59 + First62{{"First[62∈2]"}}:::plan + PgSelectRows63[["PgSelectRows[63∈2]"]]:::plan + PgSelectRows63 --> First62 + PgSelect60 --> PgSelectRows63 + PgSelectSingle64{{"PgSelectSingle[64∈2]
ᐸcommentsᐳ"}}:::plan + First62 --> PgSelectSingle64 + PgClassExpression65{{"PgClassExpression[65∈2]
ᐸ__comments...omment_id”ᐳ"}}:::plan + PgSelectSingle64 --> PgClassExpression65 + PgSelectSingle64 --> PgClassExpression66 + First69{{"First[69∈2]"}}:::plan + PgSelectRows70[["PgSelectRows[70∈2]"]]:::plan + PgSelectRows70 --> First69 + PgSelect67 --> PgSelectRows70 + PgSelectSingle71{{"PgSelectSingle[71∈2]
ᐸpeopleᐳ"}}:::plan + First69 --> PgSelectSingle71 + PgClassExpression72{{"PgClassExpression[72∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle71 --> PgClassExpression72 + PgSelectSingle64 --> PgClassExpression73 + First76{{"First[76∈2]"}}:::plan + PgSelectRows77[["PgSelectRows[77∈2]"]]:::plan + PgSelectRows77 --> First76 + PgSelect74 --> PgSelectRows77 + PgSelectSingle78{{"PgSelectSingle[78∈2]
ᐸpostsᐳ"}}:::plan + First76 --> PgSelectSingle78 + PgClassExpression79{{"PgClassExpression[79∈2]
ᐸ__posts__.”body”ᐳ"}}:::plan + PgSelectSingle78 --> PgClassExpression79 + PgClassExpression80{{"PgClassExpression[80∈2]
ᐸ__comments__.”body”ᐳ"}}:::plan + PgSelectSingle64 --> PgClassExpression80 %% define steps subgraph "Buckets for queries/unions-table/bookmarks" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 83, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 81, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 15
4: PgSelect[16]
5: PgSelectRows[18]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant83 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸpeopleᐳ[13]
1:
ᐳ: 14, 15
2: PgSelect[16]
3: PgSelectRows[20]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgSelect16,PgSelectRows18,Constant81 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 10

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 21, 22, 31, 32, 33, 34, 35, 36
2: PgSelect[23]
3: PgSelectRows[28]
ᐳ: 27, 29, 30"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression15,PgSelect16,PgSelectRows20 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 10

ROOT __Item{2}ᐸ20ᐳ[21]"):::bucket + class Bucket1,__Item19,PgSelectSingle20,PgClassExpression21,PgClassExpression22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,List35,PgPolymorphic36 bucket1 + Bucket2("Bucket 2 (polymorphic)
Person,Post,Comment
Deps: 10, 32, 33, 34, 36
ᐳPerson
ᐳPost
ᐳComment

1: 37, 46, 60
2: 42, 49, 63
ᐳ: 41, 43, 44, 45, 48, 50, 51, 52, 59, 62, 64, 65, 66, 73, 80
3: 53, 67, 74
4: 56, 70, 77
ᐳ: 55, 57, 58, 69, 71, 72, 76, 78, 79"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item21,PgSelectSingle22 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 22, 10

ROOT PgSelectSingle{2}ᐸperson_bookmarksᐳ[22]
1:
ᐳ: 23, 24, 33, 34, 35, 36, 37, 38
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36,List37,PgPolymorphic38 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{3}ᐸpeopleᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32 bucket4 - Bucket5("Bucket 5 (polymorphic)
Person,Post,Comment
Deps: 10, 34, 35, 36, 38
ᐳPerson
ᐳPost
ᐳComment

1: 39, 48, 62
2: 44, 51, 65
ᐳ: 43, 45, 46, 47, 50, 52, 53, 54, 61, 64, 66, 67, 68, 75, 82
3: 55, 69, 76
4: 58, 72, 79
ᐳ: 57, 59, 71, 73, 78, 80"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect39,First43,PgSelectRows44,PgSelectSingle45,PgClassExpression46,PgClassExpression47,PgSelect48,First50,PgSelectRows51,PgSelectSingle52,PgClassExpression53,PgClassExpression54,PgSelect55,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression61,PgSelect62,First64,PgSelectRows65,PgSelectSingle66,PgClassExpression67,PgClassExpression68,PgSelect69,First71,PgSelectRows72,PgSelectSingle73,PgClassExpression75,PgSelect76,First78,PgSelectRows79,PgSelectSingle80,PgClassExpression82 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 59

ROOT PgSelectSingle{5}ᐸpeopleᐳ[59]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression60 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 73

ROOT PgSelectSingle{5}ᐸpeopleᐳ[73]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression74 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 80

ROOT PgSelectSingle{5}ᐸpostsᐳ[80]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression81 bucket8 + class Bucket2,PgSelect37,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgSelect46,First48,PgSelectRows49,PgSelectSingle50,PgClassExpression51,PgClassExpression52,PgSelect53,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,PgClassExpression59,PgSelect60,First62,PgSelectRows63,PgSelectSingle64,PgClassExpression65,PgClassExpression66,PgSelect67,First69,PgSelectRows70,PgSelectSingle71,PgClassExpression72,PgClassExpression73,PgSelect74,First76,PgSelectRows77,PgSelectSingle78,PgClassExpression79,PgClassExpression80 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 - Bucket5 --> Bucket6 & Bucket7 & Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/queries/unions-table/bookmarks.mermaid b/grafast/dataplan-pg/__tests__/queries/unions-table/bookmarks.mermaid index fd81651cb7..ee9411aa68 100644 --- a/grafast/dataplan-pg/__tests__/queries/unions-table/bookmarks.mermaid +++ b/grafast/dataplan-pg/__tests__/queries/unions-table/bookmarks.mermaid @@ -11,11 +11,14 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸpeopleᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant83{{"Constant[83∈0] ➊
ᐸ2ᐳ"}}:::plan - Object10 & Constant83 --> PgSelect7 + Constant81{{"Constant[81∈0] ➊
ᐸ2ᐳ"}}:::plan + Object10 & Constant81 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect16[["PgSelect[16∈0] ➊
ᐸperson_bookmarksᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object10 & PgClassExpression14 --> PgSelect16 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,151 +28,127 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸpeopleᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸperson_bookmarksᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect16 PgSelectSingle13 --> PgClassExpression14 - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression15 - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows20 - __Item21[/"__Item[21∈2]
ᐸ20ᐳ"\]:::itemplan - PgSelectRows20 ==> __Item21 - PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸperson_bookmarksᐳ"}}:::plan - __Item21 --> PgSelectSingle22 - List37{{"List[37∈3]
ᐸ34,35,36ᐳ"}}:::plan - PgClassExpression34{{"PgClassExpression[34∈3]
ᐸ(__person_...person_id”ᐳ"}}:::plan - PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ(__person_....”post_id”ᐳ"}}:::plan - PgClassExpression36{{"PgClassExpression[36∈3]
ᐸ(__person_...omment_id”ᐳ"}}:::plan - PgClassExpression34 & PgClassExpression35 & PgClassExpression36 --> List37 - PgSelect25[["PgSelect[25∈3]
ᐸpeopleᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__person_b...person_id”ᐳ"}}:::plan - Object10 & PgClassExpression24 --> PgSelect25 - PgPolymorphic38{{"PgPolymorphic[38∈3]"}}:::plan - PgClassExpression33{{"PgClassExpression[33∈3]
ᐸ__person_b...ed_entity”ᐳ"}}:::plan - PgClassExpression33 & List37 --> PgPolymorphic38 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__person_b...rks__.”id”ᐳ"}}:::plan - PgSelectSingle22 --> PgClassExpression23 - PgSelectSingle22 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸpeopleᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgSelectSingle22 --> PgClassExpression33 - PgSelectSingle22 --> PgClassExpression34 - PgSelectSingle22 --> PgClassExpression35 - PgSelectSingle22 --> PgClassExpression36 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression32 - PgSelect39[["PgSelect[39∈5]
ᐸpeopleᐳ
ᐳPerson"]]:::plan - Object10 & PgClassExpression34 --> PgSelect39 - PgSelect48[["PgSelect[48∈5]
ᐸpostsᐳ
ᐳPost"]]:::plan - Object10 & PgClassExpression35 --> PgSelect48 - PgSelect55[["PgSelect[55∈5]
ᐸpeopleᐳ
ᐳPost"]]:::plan - PgClassExpression54{{"PgClassExpression[54∈5]
ᐸ__posts__.”author_id”ᐳ"}}:::plan - Object10 & PgClassExpression54 --> PgSelect55 - PgSelect62[["PgSelect[62∈5]
ᐸcommentsᐳ
ᐳComment"]]:::plan - Object10 & PgClassExpression36 --> PgSelect62 - PgSelect69[["PgSelect[69∈5]
ᐸpeopleᐳ
ᐳComment"]]:::plan - PgClassExpression68{{"PgClassExpression[68∈5]
ᐸ__comments...author_id”ᐳ"}}:::plan - Object10 & PgClassExpression68 --> PgSelect69 - PgSelect76[["PgSelect[76∈5]
ᐸpostsᐳ
ᐳComment"]]:::plan - PgClassExpression75{{"PgClassExpression[75∈5]
ᐸ__comments__.”post_id”ᐳ"}}:::plan - Object10 & PgClassExpression75 --> PgSelect76 - First43{{"First[43∈5]"}}:::plan - PgSelectRows44[["PgSelectRows[44∈5]"]]:::plan - PgSelectRows44 --> First43 - PgSelect39 --> PgSelectRows44 - PgSelectSingle45{{"PgSelectSingle[45∈5]
ᐸpeopleᐳ"}}:::plan - First43 --> PgSelectSingle45 - PgClassExpression46{{"PgClassExpression[46∈5]
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈5]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression47 - First50{{"First[50∈5]"}}:::plan - PgSelectRows51[["PgSelectRows[51∈5]"]]:::plan - PgSelectRows51 --> First50 - PgSelect48 --> PgSelectRows51 - PgSelectSingle52{{"PgSelectSingle[52∈5]
ᐸpostsᐳ"}}:::plan - First50 --> PgSelectSingle52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__posts__.”post_id”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression53 - PgSelectSingle52 --> PgClassExpression54 - First57{{"First[57∈5]"}}:::plan - PgSelectRows58[["PgSelectRows[58∈5]"]]:::plan - PgSelectRows58 --> First57 - PgSelect55 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈5]
ᐸpeopleᐳ"}}:::plan - First57 --> PgSelectSingle59 - PgClassExpression61{{"PgClassExpression[61∈5]
ᐸ__posts__.”body”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression61 - First64{{"First[64∈5]"}}:::plan - PgSelectRows65[["PgSelectRows[65∈5]"]]:::plan - PgSelectRows65 --> First64 - PgSelect62 --> PgSelectRows65 - PgSelectSingle66{{"PgSelectSingle[66∈5]
ᐸcommentsᐳ"}}:::plan - First64 --> PgSelectSingle66 - PgClassExpression67{{"PgClassExpression[67∈5]
ᐸ__comments...omment_id”ᐳ"}}:::plan - PgSelectSingle66 --> PgClassExpression67 - PgSelectSingle66 --> PgClassExpression68 - First71{{"First[71∈5]"}}:::plan - PgSelectRows72[["PgSelectRows[72∈5]"]]:::plan - PgSelectRows72 --> First71 - PgSelect69 --> PgSelectRows72 - PgSelectSingle73{{"PgSelectSingle[73∈5]
ᐸpeopleᐳ"}}:::plan - First71 --> PgSelectSingle73 - PgSelectSingle66 --> PgClassExpression75 - First78{{"First[78∈5]"}}:::plan - PgSelectRows79[["PgSelectRows[79∈5]"]]:::plan - PgSelectRows79 --> First78 - PgSelect76 --> PgSelectRows79 - PgSelectSingle80{{"PgSelectSingle[80∈5]
ᐸpostsᐳ"}}:::plan - First78 --> PgSelectSingle80 - PgClassExpression82{{"PgClassExpression[82∈5]
ᐸ__comments__.”body”ᐳ"}}:::plan - PgSelectSingle66 --> PgClassExpression82 - PgClassExpression60{{"PgClassExpression[60∈6]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression60 - PgClassExpression74{{"PgClassExpression[74∈7]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle73 --> PgClassExpression74 - PgClassExpression81{{"PgClassExpression[81∈8]
ᐸ__posts__.”body”ᐳ"}}:::plan - PgSelectSingle80 --> PgClassExpression81 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect16 --> PgSelectRows18 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + List35{{"List[35∈1]
ᐸ32,33,34ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ(__person_...person_id”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ(__person_....”post_id”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ(__person_...omment_id”ᐳ"}}:::plan + PgClassExpression32 & PgClassExpression33 & PgClassExpression34 --> List35 + PgSelect23[["PgSelect[23∈1]
ᐸpeopleᐳ"]]:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__person_b...person_id”ᐳ"}}:::plan + Object10 & PgClassExpression22 --> PgSelect23 + PgPolymorphic36{{"PgPolymorphic[36∈1]"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈1]
ᐸ__person_b...ed_entity”ᐳ"}}:::plan + PgClassExpression31 & List35 --> PgPolymorphic36 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸperson_bookmarksᐳ"}}:::plan + __Item19 --> PgSelectSingle20 + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__person_b...rks__.”id”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression21 + PgSelectSingle20 --> PgClassExpression22 + First27{{"First[27∈1]"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1]"]]:::plan + PgSelectRows28 --> First27 + PgSelect23 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1]
ᐸpeopleᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈1]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgSelectSingle20 --> PgClassExpression31 + PgSelectSingle20 --> PgClassExpression32 + PgSelectSingle20 --> PgClassExpression33 + PgSelectSingle20 --> PgClassExpression34 + PgSelect37[["PgSelect[37∈2]
ᐸpeopleᐳ
ᐳPerson"]]:::plan + Object10 & PgClassExpression32 --> PgSelect37 + PgSelect46[["PgSelect[46∈2]
ᐸpostsᐳ
ᐳPost"]]:::plan + Object10 & PgClassExpression33 --> PgSelect46 + PgSelect53[["PgSelect[53∈2]
ᐸpeopleᐳ
ᐳPost"]]:::plan + PgClassExpression52{{"PgClassExpression[52∈2]
ᐸ__posts__.”author_id”ᐳ"}}:::plan + Object10 & PgClassExpression52 --> PgSelect53 + PgSelect60[["PgSelect[60∈2]
ᐸcommentsᐳ
ᐳComment"]]:::plan + Object10 & PgClassExpression34 --> PgSelect60 + PgSelect67[["PgSelect[67∈2]
ᐸpeopleᐳ
ᐳComment"]]:::plan + PgClassExpression66{{"PgClassExpression[66∈2]
ᐸ__comments...author_id”ᐳ"}}:::plan + Object10 & PgClassExpression66 --> PgSelect67 + PgSelect74[["PgSelect[74∈2]
ᐸpostsᐳ
ᐳComment"]]:::plan + PgClassExpression73{{"PgClassExpression[73∈2]
ᐸ__comments__.”post_id”ᐳ"}}:::plan + Object10 & PgClassExpression73 --> PgSelect74 + First41{{"First[41∈2]"}}:::plan + PgSelectRows42[["PgSelectRows[42∈2]"]]:::plan + PgSelectRows42 --> First41 + PgSelect37 --> PgSelectRows42 + PgSelectSingle43{{"PgSelectSingle[43∈2]
ᐸpeopleᐳ"}}:::plan + First41 --> PgSelectSingle43 + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression44 + PgClassExpression45{{"PgClassExpression[45∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression45 + First48{{"First[48∈2]"}}:::plan + PgSelectRows49[["PgSelectRows[49∈2]"]]:::plan + PgSelectRows49 --> First48 + PgSelect46 --> PgSelectRows49 + PgSelectSingle50{{"PgSelectSingle[50∈2]
ᐸpostsᐳ"}}:::plan + First48 --> PgSelectSingle50 + PgClassExpression51{{"PgClassExpression[51∈2]
ᐸ__posts__.”post_id”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression51 + PgSelectSingle50 --> PgClassExpression52 + First55{{"First[55∈2]"}}:::plan + PgSelectRows56[["PgSelectRows[56∈2]"]]:::plan + PgSelectRows56 --> First55 + PgSelect53 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈2]
ᐸpeopleᐳ"}}:::plan + First55 --> PgSelectSingle57 + PgClassExpression58{{"PgClassExpression[58∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression58 + PgClassExpression59{{"PgClassExpression[59∈2]
ᐸ__posts__.”body”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression59 + First62{{"First[62∈2]"}}:::plan + PgSelectRows63[["PgSelectRows[63∈2]"]]:::plan + PgSelectRows63 --> First62 + PgSelect60 --> PgSelectRows63 + PgSelectSingle64{{"PgSelectSingle[64∈2]
ᐸcommentsᐳ"}}:::plan + First62 --> PgSelectSingle64 + PgClassExpression65{{"PgClassExpression[65∈2]
ᐸ__comments...omment_id”ᐳ"}}:::plan + PgSelectSingle64 --> PgClassExpression65 + PgSelectSingle64 --> PgClassExpression66 + First69{{"First[69∈2]"}}:::plan + PgSelectRows70[["PgSelectRows[70∈2]"]]:::plan + PgSelectRows70 --> First69 + PgSelect67 --> PgSelectRows70 + PgSelectSingle71{{"PgSelectSingle[71∈2]
ᐸpeopleᐳ"}}:::plan + First69 --> PgSelectSingle71 + PgClassExpression72{{"PgClassExpression[72∈2]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle71 --> PgClassExpression72 + PgSelectSingle64 --> PgClassExpression73 + First76{{"First[76∈2]"}}:::plan + PgSelectRows77[["PgSelectRows[77∈2]"]]:::plan + PgSelectRows77 --> First76 + PgSelect74 --> PgSelectRows77 + PgSelectSingle78{{"PgSelectSingle[78∈2]
ᐸpostsᐳ"}}:::plan + First76 --> PgSelectSingle78 + PgClassExpression79{{"PgClassExpression[79∈2]
ᐸ__posts__.”body”ᐳ"}}:::plan + PgSelectSingle78 --> PgClassExpression79 + PgClassExpression80{{"PgClassExpression[80∈2]
ᐸ__comments__.”body”ᐳ"}}:::plan + PgSelectSingle64 --> PgClassExpression80 %% define steps subgraph "Buckets for queries/unions-table/bookmarks" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 83, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 81, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 15
4: PgSelect[16]
5: PgSelectRows[18]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant83 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸpeopleᐳ[13]
1:
ᐳ: 14, 15
2: PgSelect[16]
3: PgSelectRows[20]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgSelect16,PgSelectRows18,Constant81 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 10

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 21, 22, 31, 32, 33, 34, 35, 36
2: PgSelect[23]
3: PgSelectRows[28]
ᐳ: 27, 29, 30"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression15,PgSelect16,PgSelectRows20 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 10

ROOT __Item{2}ᐸ20ᐳ[21]"):::bucket + class Bucket1,__Item19,PgSelectSingle20,PgClassExpression21,PgClassExpression22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,List35,PgPolymorphic36 bucket1 + Bucket2("Bucket 2 (polymorphic)
Person,Post,Comment
Deps: 10, 32, 33, 34, 36
ᐳPerson
ᐳPost
ᐳComment

1: 37, 46, 60
2: 42, 49, 63
ᐳ: 41, 43, 44, 45, 48, 50, 51, 52, 59, 62, 64, 65, 66, 73, 80
3: 53, 67, 74
4: 56, 70, 77
ᐳ: 55, 57, 58, 69, 71, 72, 76, 78, 79"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item21,PgSelectSingle22 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 22, 10

ROOT PgSelectSingle{2}ᐸperson_bookmarksᐳ[22]
1:
ᐳ: 23, 24, 33, 34, 35, 36, 37, 38
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36,List37,PgPolymorphic38 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{3}ᐸpeopleᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32 bucket4 - Bucket5("Bucket 5 (polymorphic)
Person,Post,Comment
Deps: 10, 34, 35, 36, 38
ᐳPerson
ᐳPost
ᐳComment

1: 39, 48, 62
2: 44, 51, 65
ᐳ: 43, 45, 46, 47, 50, 52, 53, 54, 61, 64, 66, 67, 68, 75, 82
3: 55, 69, 76
4: 58, 72, 79
ᐳ: 57, 59, 71, 73, 78, 80"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect39,First43,PgSelectRows44,PgSelectSingle45,PgClassExpression46,PgClassExpression47,PgSelect48,First50,PgSelectRows51,PgSelectSingle52,PgClassExpression53,PgClassExpression54,PgSelect55,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression61,PgSelect62,First64,PgSelectRows65,PgSelectSingle66,PgClassExpression67,PgClassExpression68,PgSelect69,First71,PgSelectRows72,PgSelectSingle73,PgClassExpression75,PgSelect76,First78,PgSelectRows79,PgSelectSingle80,PgClassExpression82 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 59

ROOT PgSelectSingle{5}ᐸpeopleᐳ[59]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression60 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 73

ROOT PgSelectSingle{5}ᐸpeopleᐳ[73]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression74 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 80

ROOT PgSelectSingle{5}ᐸpostsᐳ[80]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression81 bucket8 + class Bucket2,PgSelect37,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgSelect46,First48,PgSelectRows49,PgSelectSingle50,PgClassExpression51,PgClassExpression52,PgSelect53,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,PgClassExpression59,PgSelect60,First62,PgSelectRows63,PgSelectSingle64,PgClassExpression65,PgClassExpression66,PgSelect67,First69,PgSelectRows70,PgSelectSingle71,PgClassExpression72,PgClassExpression73,PgSelect74,First76,PgSelectRows77,PgSelectSingle78,PgClassExpression79,PgClassExpression80 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 - Bucket5 --> Bucket6 & Bucket7 & Bucket8 end diff --git a/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-messages.deopt.mermaid b/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-messages.deopt.mermaid index 8696d66366..43eaff11ff 100644 --- a/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-messages.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-messages.deopt.mermaid @@ -17,91 +17,76 @@ graph TD Access17{{"Access[17∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access18{{"Access[18∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access17 & Access18 --> Object19 - Constant46{{"Constant[46∈0] ➊
ᐸ'ca700000-0000-0000-0000-000000000ca7'ᐳ"}}:::plan - Constant46 --> Lambda7 + Constant43{{"Constant[43∈0] ➊
ᐸ'ca700000-0000-0000-0000-000000000ca7'ᐳ"}}:::plan + Constant43 --> Lambda7 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access17 __Value2 --> Access18 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect16[["PgSelect[16∈1]
ᐸmessagesᐳ"]]:::plan + Access15{{"Access[15∈1]
ᐸ11.idᐳ"}}:::plan + Object19 & Access15 --> PgSelect16 + PgSelect28[["PgSelect[28∈1]
ᐸforumsᐳ"]]:::plan + PgClassExpression27{{"PgClassExpression[27∈1]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan + Object19 & PgClassExpression27 --> PgSelect28 + PgSelect36[["PgSelect[36∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression35{{"PgClassExpression[35∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object19 & PgClassExpression35 --> PgSelect36 __Item10[/"__Item[10∈1]
ᐸ9ᐳ"\]:::itemplan Listen9 ==> __Item10 JSONParse11[["JSONParse[11∈1]
ᐸ10ᐳ"]]:::plan __Item10 --> JSONParse11 - PgSelect16[["PgSelect[16∈2]
ᐸmessagesᐳ"]]:::plan - Access15{{"Access[15∈2]
ᐸ11.idᐳ"}}:::plan - Object19 & Access15 --> PgSelect16 - Access13{{"Access[13∈2]
ᐸ11.opᐳ"}}:::plan + Access13{{"Access[13∈1]
ᐸ11.opᐳ"}}:::plan JSONParse11 --> Access13 - Lambda14{{"Lambda[14∈2]"}}:::plan + Lambda14{{"Lambda[14∈1]"}}:::plan Access13 --> Lambda14 JSONParse11 --> Access15 - First20{{"First[20∈2]"}}:::plan - PgSelectRows21[["PgSelectRows[21∈2]"]]:::plan + First20{{"First[20∈1]"}}:::plan + PgSelectRows21[["PgSelectRows[21∈1]"]]:::plan PgSelectRows21 --> First20 PgSelect16 --> PgSelectRows21 - PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈1]
ᐸmessagesᐳ"}}:::plan First20 --> PgSelectSingle22 - PgSelect28[["PgSelect[28∈3]
ᐸforumsᐳ"]]:::plan - PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan - Object19 & PgClassExpression27 --> PgSelect28 - PgSelect39[["PgSelect[39∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression38{{"PgClassExpression[38∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object19 & PgClassExpression38 --> PgSelect39 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”id”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”id”ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages__.”featured”ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3]
ᐸ(__message... not null)ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ(__message... not null)ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression26 PgSelectSingle22 --> PgClassExpression27 - First32{{"First[32∈3]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈3]"]]:::plan - PgSelectRows33 --> First32 - PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈3]
ᐸforumsᐳ"}}:::plan - First32 --> PgSelectSingle34 - PgSelectSingle22 --> PgClassExpression38 - First41{{"First[41∈3]"}}:::plan - PgSelectRows42[["PgSelectRows[42∈3]"]]:::plan - PgSelectRows42 --> First41 - PgSelect39 --> PgSelectRows42 - PgSelectSingle43{{"PgSelectSingle[43∈3]
ᐸusersᐳ"}}:::plan - First41 --> PgSelectSingle43 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈4]
ᐸ(__forums_... not null)ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression37 - PgClassExpression44{{"PgClassExpression[44∈5]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression44 - PgClassExpression45{{"PgClassExpression[45∈5]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression45 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect28 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸforumsᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ(__forums_... not null)ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 + PgSelectSingle22 --> PgClassExpression35 + First38{{"First[38∈1]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈1]"]]:::plan + PgSelectRows39 --> First38 + PgSelect36 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈1]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for subscriptions/basics/forum-messages" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 17, 18, 46, 7, 19
2: Listen[9]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 17, 18, 43, 7, 19
2: Listen[9]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Lambda7,Access8,Listen9,Access17,Access18,Object19,Constant46 bucket0 - Bucket1("Bucket 1 (subscription)
Deps: 19, 4

ROOT __Item{1}ᐸ9ᐳ[10]"):::bucket + class Bucket0,__Value2,__Value4,Lambda7,Access8,Listen9,Access17,Access18,Object19,Constant43 bucket0 + Bucket1("Bucket 1 (subscription)
Deps: 19, 4

ROOT __Item{1}ᐸ9ᐳ[10]
1: JSONParse[11]
ᐳ: Access[13], Lambda[14], Access[15]
2: PgSelect[16]
3: PgSelectRows[21]
ᐳ: 20, 22, 23, 24, 25, 26, 27, 35
4: PgSelect[28], PgSelect[36]
5: PgSelectRows[31], PgSelectRows[39]
ᐳ: 30, 32, 33, 34, 38, 40, 41, 42"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item10,JSONParse11 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 11, 19

ROOT JSONParse{1}ᐸ10ᐳ[11]
1:
ᐳ: Access[13], Access[15], Lambda[14]
2: PgSelect[16]
3: PgSelectRows[21]
ᐳ: First[20], PgSelectSingle[22]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,Access13,Lambda14,Access15,PgSelect16,First20,PgSelectRows21,PgSelectSingle22 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 22, 19

ROOT PgSelectSingle{2}ᐸmessagesᐳ[22]
1:
ᐳ: 23, 24, 25, 26, 27, 38
2: PgSelect[28], PgSelect[39]
3: PgSelectRows[33], PgSelectRows[42]
ᐳ: 32, 34, 41, 43"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 34, 27

ROOT PgSelectSingle{3}ᐸforumsᐳ[34]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression36,PgClassExpression37 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 43

ROOT PgSelectSingle{3}ᐸusersᐳ[43]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression44,PgClassExpression45 bucket5 + class Bucket1,__Item10,JSONParse11,Access13,Lambda14,Access15,PgSelect16,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgSelect28,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-messages.mermaid b/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-messages.mermaid index 8696d66366..43eaff11ff 100644 --- a/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-messages.mermaid +++ b/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-messages.mermaid @@ -17,91 +17,76 @@ graph TD Access17{{"Access[17∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access18{{"Access[18∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access17 & Access18 --> Object19 - Constant46{{"Constant[46∈0] ➊
ᐸ'ca700000-0000-0000-0000-000000000ca7'ᐳ"}}:::plan - Constant46 --> Lambda7 + Constant43{{"Constant[43∈0] ➊
ᐸ'ca700000-0000-0000-0000-000000000ca7'ᐳ"}}:::plan + Constant43 --> Lambda7 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access17 __Value2 --> Access18 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect16[["PgSelect[16∈1]
ᐸmessagesᐳ"]]:::plan + Access15{{"Access[15∈1]
ᐸ11.idᐳ"}}:::plan + Object19 & Access15 --> PgSelect16 + PgSelect28[["PgSelect[28∈1]
ᐸforumsᐳ"]]:::plan + PgClassExpression27{{"PgClassExpression[27∈1]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan + Object19 & PgClassExpression27 --> PgSelect28 + PgSelect36[["PgSelect[36∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression35{{"PgClassExpression[35∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object19 & PgClassExpression35 --> PgSelect36 __Item10[/"__Item[10∈1]
ᐸ9ᐳ"\]:::itemplan Listen9 ==> __Item10 JSONParse11[["JSONParse[11∈1]
ᐸ10ᐳ"]]:::plan __Item10 --> JSONParse11 - PgSelect16[["PgSelect[16∈2]
ᐸmessagesᐳ"]]:::plan - Access15{{"Access[15∈2]
ᐸ11.idᐳ"}}:::plan - Object19 & Access15 --> PgSelect16 - Access13{{"Access[13∈2]
ᐸ11.opᐳ"}}:::plan + Access13{{"Access[13∈1]
ᐸ11.opᐳ"}}:::plan JSONParse11 --> Access13 - Lambda14{{"Lambda[14∈2]"}}:::plan + Lambda14{{"Lambda[14∈1]"}}:::plan Access13 --> Lambda14 JSONParse11 --> Access15 - First20{{"First[20∈2]"}}:::plan - PgSelectRows21[["PgSelectRows[21∈2]"]]:::plan + First20{{"First[20∈1]"}}:::plan + PgSelectRows21[["PgSelectRows[21∈1]"]]:::plan PgSelectRows21 --> First20 PgSelect16 --> PgSelectRows21 - PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈1]
ᐸmessagesᐳ"}}:::plan First20 --> PgSelectSingle22 - PgSelect28[["PgSelect[28∈3]
ᐸforumsᐳ"]]:::plan - PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan - Object19 & PgClassExpression27 --> PgSelect28 - PgSelect39[["PgSelect[39∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression38{{"PgClassExpression[38∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object19 & PgClassExpression38 --> PgSelect39 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”id”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”id”ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages__.”featured”ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3]
ᐸ(__message... not null)ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ(__message... not null)ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression26 PgSelectSingle22 --> PgClassExpression27 - First32{{"First[32∈3]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈3]"]]:::plan - PgSelectRows33 --> First32 - PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈3]
ᐸforumsᐳ"}}:::plan - First32 --> PgSelectSingle34 - PgSelectSingle22 --> PgClassExpression38 - First41{{"First[41∈3]"}}:::plan - PgSelectRows42[["PgSelectRows[42∈3]"]]:::plan - PgSelectRows42 --> First41 - PgSelect39 --> PgSelectRows42 - PgSelectSingle43{{"PgSelectSingle[43∈3]
ᐸusersᐳ"}}:::plan - First41 --> PgSelectSingle43 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈4]
ᐸ(__forums_... not null)ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression37 - PgClassExpression44{{"PgClassExpression[44∈5]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression44 - PgClassExpression45{{"PgClassExpression[45∈5]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression45 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect28 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸforumsᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ(__forums_... not null)ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 + PgSelectSingle22 --> PgClassExpression35 + First38{{"First[38∈1]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈1]"]]:::plan + PgSelectRows39 --> First38 + PgSelect36 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈1]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for subscriptions/basics/forum-messages" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 17, 18, 46, 7, 19
2: Listen[9]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 17, 18, 43, 7, 19
2: Listen[9]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Lambda7,Access8,Listen9,Access17,Access18,Object19,Constant46 bucket0 - Bucket1("Bucket 1 (subscription)
Deps: 19, 4

ROOT __Item{1}ᐸ9ᐳ[10]"):::bucket + class Bucket0,__Value2,__Value4,Lambda7,Access8,Listen9,Access17,Access18,Object19,Constant43 bucket0 + Bucket1("Bucket 1 (subscription)
Deps: 19, 4

ROOT __Item{1}ᐸ9ᐳ[10]
1: JSONParse[11]
ᐳ: Access[13], Lambda[14], Access[15]
2: PgSelect[16]
3: PgSelectRows[21]
ᐳ: 20, 22, 23, 24, 25, 26, 27, 35
4: PgSelect[28], PgSelect[36]
5: PgSelectRows[31], PgSelectRows[39]
ᐳ: 30, 32, 33, 34, 38, 40, 41, 42"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item10,JSONParse11 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 11, 19

ROOT JSONParse{1}ᐸ10ᐳ[11]
1:
ᐳ: Access[13], Access[15], Lambda[14]
2: PgSelect[16]
3: PgSelectRows[21]
ᐳ: First[20], PgSelectSingle[22]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,Access13,Lambda14,Access15,PgSelect16,First20,PgSelectRows21,PgSelectSingle22 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 22, 19

ROOT PgSelectSingle{2}ᐸmessagesᐳ[22]
1:
ᐳ: 23, 24, 25, 26, 27, 38
2: PgSelect[28], PgSelect[39]
3: PgSelectRows[33], PgSelectRows[42]
ᐳ: 32, 34, 41, 43"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 34, 27

ROOT PgSelectSingle{3}ᐸforumsᐳ[34]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression36,PgClassExpression37 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 43

ROOT PgSelectSingle{3}ᐸusersᐳ[43]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression44,PgClassExpression45 bucket5 + class Bucket1,__Item10,JSONParse11,Access13,Lambda14,Access15,PgSelect16,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgSelect28,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-single-message-evolve.deopt.mermaid b/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-single-message-evolve.deopt.mermaid index 54b4d2a23c..f06caaedf9 100644 --- a/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-single-message-evolve.deopt.mermaid +++ b/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-single-message-evolve.deopt.mermaid @@ -17,91 +17,76 @@ graph TD Access17{{"Access[17∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access18{{"Access[18∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access17 & Access18 --> Object19 - Constant46{{"Constant[46∈0] ➊
ᐸ'ca700000-0000-0000-0000-000000000ca7'ᐳ"}}:::plan - Constant46 --> Lambda7 + Constant43{{"Constant[43∈0] ➊
ᐸ'ca700000-0000-0000-0000-000000000ca7'ᐳ"}}:::plan + Constant43 --> Lambda7 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access17 __Value2 --> Access18 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect16[["PgSelect[16∈1]
ᐸmessagesᐳ"]]:::plan + Access15{{"Access[15∈1]
ᐸ11.idᐳ"}}:::plan + Object19 & Access15 --> PgSelect16 + PgSelect28[["PgSelect[28∈1]
ᐸforumsᐳ"]]:::plan + PgClassExpression27{{"PgClassExpression[27∈1]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan + Object19 & PgClassExpression27 --> PgSelect28 + PgSelect36[["PgSelect[36∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression35{{"PgClassExpression[35∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object19 & PgClassExpression35 --> PgSelect36 __Item10[/"__Item[10∈1]
ᐸ9ᐳ"\]:::itemplan Listen9 ==> __Item10 JSONParse11[["JSONParse[11∈1]
ᐸ10ᐳ"]]:::plan __Item10 --> JSONParse11 - PgSelect16[["PgSelect[16∈2]
ᐸmessagesᐳ"]]:::plan - Access15{{"Access[15∈2]
ᐸ11.idᐳ"}}:::plan - Object19 & Access15 --> PgSelect16 - Access13{{"Access[13∈2]
ᐸ11.opᐳ"}}:::plan + Access13{{"Access[13∈1]
ᐸ11.opᐳ"}}:::plan JSONParse11 --> Access13 - Lambda14{{"Lambda[14∈2]"}}:::plan + Lambda14{{"Lambda[14∈1]"}}:::plan Access13 --> Lambda14 JSONParse11 --> Access15 - First20{{"First[20∈2]"}}:::plan - PgSelectRows21[["PgSelectRows[21∈2]"]]:::plan + First20{{"First[20∈1]"}}:::plan + PgSelectRows21[["PgSelectRows[21∈1]"]]:::plan PgSelectRows21 --> First20 PgSelect16 --> PgSelectRows21 - PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈1]
ᐸmessagesᐳ"}}:::plan First20 --> PgSelectSingle22 - PgSelect28[["PgSelect[28∈3]
ᐸforumsᐳ"]]:::plan - PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan - Object19 & PgClassExpression27 --> PgSelect28 - PgSelect39[["PgSelect[39∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression38{{"PgClassExpression[38∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object19 & PgClassExpression38 --> PgSelect39 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”id”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”id”ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages__.”featured”ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3]
ᐸ(__message... not null)ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ(__message... not null)ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression26 PgSelectSingle22 --> PgClassExpression27 - First32{{"First[32∈3]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈3]"]]:::plan - PgSelectRows33 --> First32 - PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈3]
ᐸforumsᐳ"}}:::plan - First32 --> PgSelectSingle34 - PgSelectSingle22 --> PgClassExpression38 - First41{{"First[41∈3]"}}:::plan - PgSelectRows42[["PgSelectRows[42∈3]"]]:::plan - PgSelectRows42 --> First41 - PgSelect39 --> PgSelectRows42 - PgSelectSingle43{{"PgSelectSingle[43∈3]
ᐸusersᐳ"}}:::plan - First41 --> PgSelectSingle43 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈4]
ᐸ(__forums_... not null)ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression37 - PgClassExpression44{{"PgClassExpression[44∈5]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression44 - PgClassExpression45{{"PgClassExpression[45∈5]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression45 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect28 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸforumsᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ(__forums_... not null)ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 + PgSelectSingle22 --> PgClassExpression35 + First38{{"First[38∈1]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈1]"]]:::plan + PgSelectRows39 --> First38 + PgSelect36 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈1]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for subscriptions/basics/forum-single-message-evolve" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 17, 18, 46, 7, 19
2: Listen[9]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 17, 18, 43, 7, 19
2: Listen[9]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Lambda7,Access8,Listen9,Access17,Access18,Object19,Constant46 bucket0 - Bucket1("Bucket 1 (subscription)
Deps: 19, 4

ROOT __Item{1}ᐸ9ᐳ[10]"):::bucket + class Bucket0,__Value2,__Value4,Lambda7,Access8,Listen9,Access17,Access18,Object19,Constant43 bucket0 + Bucket1("Bucket 1 (subscription)
Deps: 19, 4

ROOT __Item{1}ᐸ9ᐳ[10]
1: JSONParse[11]
ᐳ: Access[13], Lambda[14], Access[15]
2: PgSelect[16]
3: PgSelectRows[21]
ᐳ: 20, 22, 23, 24, 25, 26, 27, 35
4: PgSelect[28], PgSelect[36]
5: PgSelectRows[31], PgSelectRows[39]
ᐳ: 30, 32, 33, 34, 38, 40, 41, 42"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item10,JSONParse11 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 11, 19

ROOT JSONParse{1}ᐸ10ᐳ[11]
1:
ᐳ: Access[13], Access[15], Lambda[14]
2: PgSelect[16]
3: PgSelectRows[21]
ᐳ: First[20], PgSelectSingle[22]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,Access13,Lambda14,Access15,PgSelect16,First20,PgSelectRows21,PgSelectSingle22 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 22, 19

ROOT PgSelectSingle{2}ᐸmessagesᐳ[22]
1:
ᐳ: 23, 24, 25, 26, 27, 38
2: PgSelect[28], PgSelect[39]
3: PgSelectRows[33], PgSelectRows[42]
ᐳ: 32, 34, 41, 43"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 34, 27

ROOT PgSelectSingle{3}ᐸforumsᐳ[34]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression36,PgClassExpression37 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 43

ROOT PgSelectSingle{3}ᐸusersᐳ[43]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression44,PgClassExpression45 bucket5 + class Bucket1,__Item10,JSONParse11,Access13,Lambda14,Access15,PgSelect16,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgSelect28,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 end diff --git a/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-single-message-evolve.mermaid b/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-single-message-evolve.mermaid index 54b4d2a23c..f06caaedf9 100644 --- a/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-single-message-evolve.mermaid +++ b/grafast/dataplan-pg/__tests__/subscriptions/basics/forum-single-message-evolve.mermaid @@ -17,91 +17,76 @@ graph TD Access17{{"Access[17∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access18{{"Access[18∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access17 & Access18 --> Object19 - Constant46{{"Constant[46∈0] ➊
ᐸ'ca700000-0000-0000-0000-000000000ca7'ᐳ"}}:::plan - Constant46 --> Lambda7 + Constant43{{"Constant[43∈0] ➊
ᐸ'ca700000-0000-0000-0000-000000000ca7'ᐳ"}}:::plan + Constant43 --> Lambda7 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access17 __Value2 --> Access18 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect16[["PgSelect[16∈1]
ᐸmessagesᐳ"]]:::plan + Access15{{"Access[15∈1]
ᐸ11.idᐳ"}}:::plan + Object19 & Access15 --> PgSelect16 + PgSelect28[["PgSelect[28∈1]
ᐸforumsᐳ"]]:::plan + PgClassExpression27{{"PgClassExpression[27∈1]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan + Object19 & PgClassExpression27 --> PgSelect28 + PgSelect36[["PgSelect[36∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression35{{"PgClassExpression[35∈1]
ᐸ__messages...author_id”ᐳ"}}:::plan + Object19 & PgClassExpression35 --> PgSelect36 __Item10[/"__Item[10∈1]
ᐸ9ᐳ"\]:::itemplan Listen9 ==> __Item10 JSONParse11[["JSONParse[11∈1]
ᐸ10ᐳ"]]:::plan __Item10 --> JSONParse11 - PgSelect16[["PgSelect[16∈2]
ᐸmessagesᐳ"]]:::plan - Access15{{"Access[15∈2]
ᐸ11.idᐳ"}}:::plan - Object19 & Access15 --> PgSelect16 - Access13{{"Access[13∈2]
ᐸ11.opᐳ"}}:::plan + Access13{{"Access[13∈1]
ᐸ11.opᐳ"}}:::plan JSONParse11 --> Access13 - Lambda14{{"Lambda[14∈2]"}}:::plan + Lambda14{{"Lambda[14∈1]"}}:::plan Access13 --> Lambda14 JSONParse11 --> Access15 - First20{{"First[20∈2]"}}:::plan - PgSelectRows21[["PgSelectRows[21∈2]"]]:::plan + First20{{"First[20∈1]"}}:::plan + PgSelectRows21[["PgSelectRows[21∈1]"]]:::plan PgSelectRows21 --> First20 PgSelect16 --> PgSelectRows21 - PgSelectSingle22{{"PgSelectSingle[22∈2]
ᐸmessagesᐳ"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈1]
ᐸmessagesᐳ"}}:::plan First20 --> PgSelectSingle22 - PgSelect28[["PgSelect[28∈3]
ᐸforumsᐳ"]]:::plan - PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__messages__.”forum_id”ᐳ"}}:::plan - Object19 & PgClassExpression27 --> PgSelect28 - PgSelect39[["PgSelect[39∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression38{{"PgClassExpression[38∈3]
ᐸ__messages...author_id”ᐳ"}}:::plan - Object19 & PgClassExpression38 --> PgSelect39 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__messages__.”id”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__messages__.”id”ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__messages__.”featured”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__messages__.”featured”ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__messages__.”body”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__messages__.”body”ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3]
ᐸ(__message... not null)ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ(__message... not null)ᐳ"}}:::plan PgSelectSingle22 --> PgClassExpression26 PgSelectSingle22 --> PgClassExpression27 - First32{{"First[32∈3]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈3]"]]:::plan - PgSelectRows33 --> First32 - PgSelect28 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈3]
ᐸforumsᐳ"}}:::plan - First32 --> PgSelectSingle34 - PgSelectSingle22 --> PgClassExpression38 - First41{{"First[41∈3]"}}:::plan - PgSelectRows42[["PgSelectRows[42∈3]"]]:::plan - PgSelectRows42 --> First41 - PgSelect39 --> PgSelectRows42 - PgSelectSingle43{{"PgSelectSingle[43∈3]
ᐸusersᐳ"}}:::plan - First41 --> PgSelectSingle43 - PgClassExpression36{{"PgClassExpression[36∈4]
ᐸ__forums__.”name”ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈4]
ᐸ(__forums_... not null)ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression37 - PgClassExpression44{{"PgClassExpression[44∈5]
ᐸ__users__.”username”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression44 - PgClassExpression45{{"PgClassExpression[45∈5]
ᐸ__users__....vatar_url”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression45 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect28 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸforumsᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__forums__.”name”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ(__forums_... not null)ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 + PgSelectSingle22 --> PgClassExpression35 + First38{{"First[38∈1]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈1]"]]:::plan + PgSelectRows39 --> First38 + PgSelect36 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈1]
ᐸusersᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈1]
ᐸ__users__.”username”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈1]
ᐸ__users__....vatar_url”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for subscriptions/basics/forum-single-message-evolve" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 17, 18, 46, 7, 19
2: Listen[9]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 17, 18, 43, 7, 19
2: Listen[9]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Lambda7,Access8,Listen9,Access17,Access18,Object19,Constant46 bucket0 - Bucket1("Bucket 1 (subscription)
Deps: 19, 4

ROOT __Item{1}ᐸ9ᐳ[10]"):::bucket + class Bucket0,__Value2,__Value4,Lambda7,Access8,Listen9,Access17,Access18,Object19,Constant43 bucket0 + Bucket1("Bucket 1 (subscription)
Deps: 19, 4

ROOT __Item{1}ᐸ9ᐳ[10]
1: JSONParse[11]
ᐳ: Access[13], Lambda[14], Access[15]
2: PgSelect[16]
3: PgSelectRows[21]
ᐳ: 20, 22, 23, 24, 25, 26, 27, 35
4: PgSelect[28], PgSelect[36]
5: PgSelectRows[31], PgSelectRows[39]
ᐳ: 30, 32, 33, 34, 38, 40, 41, 42"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item10,JSONParse11 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 11, 19

ROOT JSONParse{1}ᐸ10ᐳ[11]
1:
ᐳ: Access[13], Access[15], Lambda[14]
2: PgSelect[16]
3: PgSelectRows[21]
ᐳ: First[20], PgSelectSingle[22]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,Access13,Lambda14,Access15,PgSelect16,First20,PgSelectRows21,PgSelectSingle22 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 22, 19

ROOT PgSelectSingle{2}ᐸmessagesᐳ[22]
1:
ᐳ: 23, 24, 25, 26, 27, 38
2: PgSelect[28], PgSelect[39]
3: PgSelectRows[33], PgSelectRows[42]
ᐳ: 32, 34, 41, 43"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgSelect28,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 34, 27

ROOT PgSelectSingle{3}ᐸforumsᐳ[34]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression36,PgClassExpression37 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 43

ROOT PgSelectSingle{3}ᐸusersᐳ[43]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression44,PgClassExpression45 bucket5 + class Bucket1,__Item10,JSONParse11,Access13,Lambda14,Access15,PgSelect16,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgSelect28,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 end diff --git a/grafast/dataplan-pg/src/codecs.ts b/grafast/dataplan-pg/src/codecs.ts index c05165cae3..42f61afc2c 100644 --- a/grafast/dataplan-pg/src/codecs.ts +++ b/grafast/dataplan-pg/src/codecs.ts @@ -1276,3 +1276,9 @@ export function getInnerCodec< return codec as any; } exportAs("@dataplan/pg", getInnerCodec, "getInnerCodec"); + +export function sqlValueWithCodec(value: unknown, codec: PgCodec) { + return sql`${sql.value(value == null ? null : codec.toPg(value))}::${ + codec.sqlType + }`; +} diff --git a/grafast/dataplan-pg/src/examples/exampleSchema.ts b/grafast/dataplan-pg/src/examples/exampleSchema.ts index f26f4cd2cd..f7acd7dd54 100644 --- a/grafast/dataplan-pg/src/examples/exampleSchema.ts +++ b/grafast/dataplan-pg/src/examples/exampleSchema.ts @@ -29,6 +29,7 @@ import type { import { __ListTransformStep, __ValueStep, + bakedInput, connection, ConnectionStep, constant, @@ -37,7 +38,7 @@ import { error, ExecutableStep, filter, - getEnumValueConfig, + getNullableInputTypeAtPath, groupBy, lambda, list, @@ -52,7 +53,6 @@ import type { GraphQLOutputType } from "grafast/graphql"; import { GraphQLBoolean, GraphQLEnumType, - GraphQLError, GraphQLFloat, GraphQLInt, GraphQLInterfaceType, @@ -65,21 +65,20 @@ import { printSchema, } from "grafast/graphql"; import sql from "pg-sql2"; -//import prettier from "prettier"; -import { inspect } from "util"; +//import prettier from "prettier"; import type { GetPgResourceRelations, PgCodecAttribute, PgCodecAttributeVia, - PgConditionStep, + PgCondition, PgExecutorContextPlans, PgInsertSingleStep, PgSelectStep, WithPgClient, } from "../"; import type { NodePostgresPgClient, PgSubscriber } from "../adaptors/pg.js"; -import { listOfCodec } from "../codecs.js"; +import { listOfCodec, sqlValueWithCodec } from "../codecs.js"; import { makePgResourceOptions, makeRegistry, @@ -87,15 +86,15 @@ import { } from "../datasource.js"; import { enumCodec, - PgBooleanFilterStep, + PgBooleanFilter, pgClassExpression, PgClassExpressionStep, - PgClassFilterStep, + PgClassFilter, pgDeleteSingle, PgDeleteSingleStep, PgExecutor, pgInsertSingle, - PgManyFilterStep, + PgManyFilter, pgPolymorphic, PgResource, pgSelect, @@ -107,18 +106,27 @@ import { recordCodec, TYPES, } from "../index.js"; -import type { GetPgResourceAttributes, PgCodec } from "../interfaces"; +import type { + GetPgResourceAttributes, + PgCodec, + PgSelectQueryBuilderCallback, +} from "../interfaces"; import { PgPageInfoStep } from "../steps/pgPageInfo.js"; import type { PgPolymorphicTypeMap } from "../steps/pgPolymorphic.js"; -import type { PgSelectParsedCursorStep } from "../steps/pgSelect.js"; +import type { + PgSelectParsedCursorStep, + PgSelectQueryBuilder, +} from "../steps/pgSelect.js"; import { sqlFromArgDigests } from "../steps/pgSelect.js"; -import type { PgUnionAllStep } from "../steps/pgUnionAll.js"; +import type { + PgUnionAllQueryBuilder, + PgUnionAllStep, +} from "../steps/pgUnionAll.js"; import { pgUnionAll, PgUnionAllSingleStep } from "../steps/pgUnionAll.js"; import { WithPgClientStep, withPgClientTransaction, } from "../steps/withPgClient.js"; - const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); export function EXPORTABLE( @@ -449,7 +457,13 @@ export function makeExampleSchema( sql`app_public.forums_messages_list_set(${sqlFromArgDigests( args, )})`, - parameters: [], + parameters: [ + { + codec: forumCodec, + name: null, + required: true, + }, + ], returnsArray: true, returnsSetof: true, extensions: { @@ -1906,9 +1920,7 @@ export function makeExampleSchema( }), }); - const User = newObjectTypeBuilder( - PgSelectSingleStep, - )({ + const User = newObjectTypeBuilder(PgSelectSingleStep)({ name: "User", fields: () => ({ // Here we don't use `attrField` because we want to explicitly test the default plan resolver @@ -1985,11 +1997,11 @@ export function makeExampleSchema( BODY_ASC: { extensions: { grafast: { - applyPlan: EXPORTABLE( - (TYPES, sql) => (step: PgSelectStep) => { - step.orderBy({ + apply: EXPORTABLE( + (TYPES, sql) => (qb: PgSelectQueryBuilder) => { + qb.orderBy({ codec: TYPES.text, - fragment: sql`${step}.body`, + fragment: sql`${qb}.body`, direction: "ASC", }); }, @@ -2001,11 +2013,11 @@ export function makeExampleSchema( BODY_DESC: { extensions: { grafast: { - applyPlan: EXPORTABLE( - (TYPES, sql) => (step: PgSelectStep) => { - step.orderBy({ + apply: EXPORTABLE( + (TYPES, sql) => (qb: PgSelectQueryBuilder) => { + qb.orderBy({ codec: TYPES.text, - fragment: sql`${step}.body`, + fragment: sql`${qb}.body`, direction: "DESC", }); }, @@ -2017,10 +2029,10 @@ export function makeExampleSchema( AUTHOR_USERNAME_ASC: { extensions: { grafast: { - applyPlan: EXPORTABLE( - (TYPES, sql) => (step: PgSelectStep) => { - const authorAlias = step.singleRelation("author"); - step.orderBy({ + apply: EXPORTABLE( + (TYPES, sql) => (qb: PgSelectQueryBuilder) => { + const authorAlias = qb.singleRelation("author"); + qb.orderBy({ codec: TYPES.text, fragment: sql`${authorAlias}.username`, direction: "ASC", @@ -2034,10 +2046,10 @@ export function makeExampleSchema( AUTHOR_USERNAME_DESC: { extensions: { grafast: { - applyPlan: EXPORTABLE( - (TYPES, sql) => (step: PgSelectStep) => { - const authorAlias = step.singleRelation("author"); - step.orderBy({ + apply: EXPORTABLE( + (TYPES, sql) => (qb: PgSelectQueryBuilder) => { + const authorAlias = qb.singleRelation("author"); + qb.orderBy({ codec: TYPES.text, fragment: sql`${authorAlias}.username`, direction: "DESC", @@ -2050,9 +2062,7 @@ export function makeExampleSchema( }, }, }); - const Message = newObjectTypeBuilder( - PgSelectSingleStep, - )({ + const Message = newObjectTypeBuilder(PgSelectSingleStep)({ name: "Message", fields: () => ({ id: attrField("id", GraphQLString), @@ -2076,9 +2086,7 @@ export function makeExampleSchema( }), }); - const MessageEdge = newObjectTypeBuilder( - PgSelectSingleStep, - )({ + const MessageEdge = newObjectTypeBuilder(PgSelectSingleStep)({ name: "MessageEdge", fields: { cursor: { @@ -2104,9 +2112,7 @@ export function makeExampleSchema( }, }); - const PageInfo = newObjectTypeBuilder>( - PgPageInfoStep, - )({ + const PageInfo = newObjectTypeBuilder>(PgPageInfoStep)({ name: "PageInfo", fields: { hasNextPage: { @@ -2128,10 +2134,9 @@ export function makeExampleSchema( }, }); - const MessagesConnection = newObjectTypeBuilder< - OurGraphQLContext, - MessageConnectionStep - >(ConnectionStep)({ + const MessagesConnection = newObjectTypeBuilder( + ConnectionStep, + )({ name: "MessagesConnection", fields: { edges: { @@ -2144,10 +2149,7 @@ export function makeExampleSchema( [], ), }, - nodes: newGrafastFieldConfigBuilder< - OurGraphQLContext, - MessageConnectionStep - >()({ + nodes: newGrafastFieldConfigBuilder()({ type: new GraphQLList(Message), plan: EXPORTABLE( () => @@ -2157,10 +2159,7 @@ export function makeExampleSchema( [], ), }), - pageInfo: newGrafastFieldConfigBuilder< - OurGraphQLContext, - MessageConnectionStep - >()({ + pageInfo: newGrafastFieldConfigBuilder()({ type: new GraphQLNonNull(PageInfo), plan: EXPORTABLE( () => @@ -2208,214 +2207,201 @@ export function makeExampleSchema( ): GrafastArgumentConfig { return { type: IncludeArchived, - autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( - (PgSelectSingleStep, TYPES, getClassStep, sql) => + (PgSelectSingleStep, getClassStep, lambda, sql) => function plan($parent: ExecutableStep, $field: TFieldStep, val) { const $messages = getClassStep($field); - const $value = val.getRaw() as - | __InputStaticLeafStep - | __TrackedValueStep; - if ($value.evalIs("YES")) { - // No restriction - } else if ($value.evalIs("EXCLUSIVELY")) { - $messages.where(sql`${$messages}.archived_at is not null`); - } else if ( - $value.evalIs("INHERIT") && - // INHERIT only works if the parent has an archived_at attribute. - $parent instanceof PgSelectSingleStep && - !!$parent.resource.codec.attributes.archived_at - ) { - $messages.where( - sql`(${ - $messages.alias - }.archived_at is null) = (${$messages.placeholder( - $parent.get("archived_at"), - TYPES.timestamptz, - )} is null)`, - ); - } else { - $messages.where(sql`${$messages}.archived_at is null`); - } + const $value = val.getRaw(); + const $parentPgSelectSingle = + $parent instanceof PgSelectSingleStep + ? ($parent as PgSelectSingleStep) + : null; + const sqlParentArchivedAt = $parentPgSelectSingle?.resource?.codec + .attributes?.archived_at + ? $messages.placeholder($parentPgSelectSingle.get("archived_at")) + : undefined; + const $condition = lambda( + $value, + function includeArchivedCondition( + value, + ): PgSelectQueryBuilderCallback { + return (queryBuilder) => { + if (value === "YES") { + // No restriction + } else if (value === "EXCLUSIVELY") { + queryBuilder.where( + sql`${queryBuilder}.archived_at is not null`, + ); + } else if ( + value === "INHERIT" && + // INHERIT only works if the parent has an archived_at attribute. + sqlParentArchivedAt !== undefined + ) { + queryBuilder.where( + sql`(${queryBuilder.alias}.archived_at is null) = (${sqlParentArchivedAt} is null)`, + ); + } else { + queryBuilder.where( + sql`${queryBuilder}.archived_at is null`, + ); + } + }; + }, + ); + $messages.apply($condition); }, - [PgSelectSingleStep, TYPES, getClassStep, sql], + [PgSelectSingleStep, getClassStep, lambda, sql], ), defaultValue: "INHERIT", }; } - const MessageCondition = newInputObjectTypeBuilder< - OurGraphQLContext, - PgConditionStep - >()({ + const MessageCondition = newInputObjectTypeBuilder()({ name: "MessageCondition", fields: { featured: { type: GraphQLBoolean, - applyPlan: EXPORTABLE( - (TYPES, sql) => - function plan($condition: PgConditionStep, val) { - const $value = val.getRaw(); - if ($value.evalIs(null)) { + apply: EXPORTABLE( + (TYPES, sql, sqlValueWithCodec) => + function plan($condition, arg) { + if (arg === null) { $condition.where(sql`${$condition}.featured is null`); } else { $condition.where( - sql`${$condition}.featured = ${$condition.placeholder( - $value, + sql`${$condition}.featured = ${sqlValueWithCodec( + arg, TYPES.boolean, )}`, ); } }, - [TYPES, sql], + [TYPES, sql, sqlValueWithCodec], ), }, }, }); - const BooleanFilter = newInputObjectTypeBuilder< - OurGraphQLContext, - PgBooleanFilterStep - >()({ + const BooleanFilter = newInputObjectTypeBuilder()({ name: "BooleanFilter", fields: { equalTo: { type: GraphQLBoolean, - applyPlan: EXPORTABLE( - (TYPES, sql) => - function plan($parent, val) { - const $value = val.getRaw(); - if ($value.evalIs(null)) { + apply: EXPORTABLE( + (TYPES, sql, sqlValueWithCodec) => + function plan($parent, arg) { + if (arg === null) { // Ignore } else { $parent.where( - sql`${$parent.expression} = ${$parent.placeholder( - $value, + sql`${$parent.expression} = ${sqlValueWithCodec( + arg, TYPES.boolean, )}`, ); } }, - [TYPES, sql], + [TYPES, sql, sqlValueWithCodec], ), }, notEqualTo: { type: GraphQLBoolean, - applyPlan: EXPORTABLE( - (TYPES, sql) => - function plan($parent: PgBooleanFilterStep, val) { - const $value = val.getRaw(); - if ($value.evalIs(null)) { + apply: EXPORTABLE( + (TYPES, sql, sqlValueWithCodec) => + function plan($parent: PgBooleanFilter, arg) { + if (arg === null) { // Ignore } else { $parent.where( - sql`${$parent.expression} <> ${$parent.placeholder( - $value, + sql`${$parent.expression} <> ${sqlValueWithCodec( + arg, TYPES.boolean, )}`, ); } }, - [TYPES, sql], + [TYPES, sql, sqlValueWithCodec], ), }, }, }); - const MessageFilter = newInputObjectTypeBuilder< - OurGraphQLContext, - PgClassFilterStep - >()({ + const MessageFilter = newInputObjectTypeBuilder()({ name: "MessageFilter", fields: { featured: { type: BooleanFilter, - applyPlan: EXPORTABLE( - (BooleanFilterStep, sql) => + apply: EXPORTABLE( + (PgBooleanFilter, sql) => function plan($messageFilter, arg) { - const $value = arg.getRaw(); - if ($value.evalIs(null)) { + if (arg === null) { // Ignore } else { - const plan = new BooleanFilterStep( + return new PgBooleanFilter( $messageFilter, sql`${$messageFilter}.featured`, ); - arg.apply(plan); } }, - [PgBooleanFilterStep, sql], + [PgBooleanFilter, sql], ), }, isArchived: { type: BooleanFilter, - applyPlan: EXPORTABLE( - (BooleanFilterStep, sql) => + apply: EXPORTABLE( + (PgBooleanFilter, sql) => function plan($messageFilter, arg) { - const $value = arg.getRaw(); - if ($value.evalIs(null)) { + if (arg === null) { // Ignore } else { - const plan = new BooleanFilterStep( + return new PgBooleanFilter( $messageFilter, sql`${$messageFilter}.is_archived`, ); - arg.apply(plan); } }, - [PgBooleanFilterStep, sql], + [PgBooleanFilter, sql], ), }, }, }); - const ForumCondition = newInputObjectTypeBuilder< - OurGraphQLContext, - PgConditionStep - >()({ + const ForumCondition = newInputObjectTypeBuilder()({ name: "ForumCondition", fields: { name: { type: GraphQLString, - applyPlan: EXPORTABLE( - (TYPES, sql) => - function plan($condition: PgConditionStep, arg) { - const $value = arg.getRaw(); - if ($value.evalIs(null)) { + apply: EXPORTABLE( + (TYPES, sql, sqlValueWithCodec) => + function plan($condition, arg) { + if (arg === null) { $condition.where(sql`${$condition}.name is null`); } else { $condition.where( - sql`${$condition}.name = ${$condition.placeholder( - $value, + sql`${$condition}.name = ${sqlValueWithCodec( + arg, TYPES.text, )}`, ); } }, - [TYPES, sql], + [TYPES, sql, sqlValueWithCodec], ), }, }, }); const ForumToManyMessageFilter = newInputObjectTypeBuilder< - OurGraphQLContext, - PgManyFilterStep + PgManyFilter >()({ name: "ForumToManyMessageFilter", fields: { some: { type: MessageFilter, - applyPlan: EXPORTABLE( + apply: EXPORTABLE( () => - function plan( - $manyFilter: PgManyFilterStep, - arg, - ) { - const $value = arg.getRaw(); - if (!$value.evalIs(null)) { - const plan = $manyFilter.some(); - arg.apply(plan); + function plan($manyFilter, arg) { + if (arg !== null) { + return $manyFilter.some(); } }, [], @@ -2424,38 +2410,31 @@ export function makeExampleSchema( }, }); - const ForumFilter = newInputObjectTypeBuilder< - OurGraphQLContext, - PgClassFilterStep - >()({ + const ForumFilter = newInputObjectTypeBuilder()({ name: "ForumFilter", fields: { messages: { type: ForumToManyMessageFilter, - applyPlan: EXPORTABLE( - (PgManyFilterStep, messageResource) => + apply: EXPORTABLE( + (PgManyFilter, messageResource) => function plan($condition, arg) { - const $value = arg.getRaw(); - if (!$value.evalIs(null)) { - const plan = new PgManyFilterStep( + if (arg !== null) { + return new PgManyFilter( $condition, messageResource, ["id"], ["forum_id"], ); - arg.apply(plan); } }, - [PgManyFilterStep, messageResource], + [PgManyFilter, messageResource], ), }, }, }); - const Forum: GraphQLObjectType = newObjectTypeBuilder< - OurGraphQLContext, - ForumStep - >(PgSelectSingleStep)({ + type GQLObj = GraphQLObjectType; + const Forum: GQLObj = newObjectTypeBuilder(PgSelectSingleStep)({ name: "Forum", fields: () => ({ id: attrField("id", GraphQLString), @@ -2505,13 +2484,11 @@ export function makeExampleSchema( }, plan: EXPORTABLE( (deoptimizeIfAppropriate, messageResource) => - function plan($forum, fieldArgs) { + function plan($forum, { $id }) { const $forumId = $forum.get("id"); - // Deliberately using `.get()` rather than `.getRaw()` here to ensure a certain bug doesn't resurface - const $messageId = fieldArgs.get("id"); const $message = messageResource.get({ forum_id: $forumId, - id: $messageId, + id: $id as ExecutableStep, }); deoptimizeIfAppropriate($message); return $message; @@ -2533,7 +2510,6 @@ export function makeExampleSchema( arg, ) { $messages.setFirst(arg.getRaw()); - return null; }, [], ), @@ -2542,31 +2518,30 @@ export function makeExampleSchema( type: MessageCondition, autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( - () => + (pgWhere) => function plan( _$forum: ForumStep, $messages: PgSelectStep, + arg, ) { - return $messages.wherePlan(); + arg.apply($messages, pgWhere); }, - [], + [pgWhere], ), }, filter: { type: MessageFilter, autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( - (PgClassFilterStep) => + (pgClassFilterWhere) => function plan( _$forum: ForumStep, $messages: PgSelectStep, + arg, ) { - return new PgClassFilterStep( - $messages.wherePlan(), - $messages.alias, - ); + arg.apply($messages, pgClassFilterWhere); }, - [PgClassFilterStep], + [pgClassFilterWhere], ), }, includeArchived: makeIncludeArchivedArg< @@ -2604,7 +2579,6 @@ export function makeExampleSchema( arg, ) { $connection.setFirst(arg.getRaw()); - return null; }, [], ), @@ -2620,7 +2594,6 @@ export function makeExampleSchema( arg, ) { $connection.setLast(arg.getRaw()); - return null; }, [], ), @@ -2629,33 +2602,32 @@ export function makeExampleSchema( type: MessageCondition, autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( - () => + (pgWhere) => function plan( _$forum, $connection: ResourceConnectionPlan, + arg, ) { const $messages = $connection.getSubplan(); - return $messages.wherePlan(); + arg.apply($messages, pgWhere); }, - [], + [pgWhere], ), }, filter: { type: MessageFilter, autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( - (PgClassFilterStep) => + (pgClassFilterWhere) => function plan( _$forum, $connection: ResourceConnectionPlan, + arg, ) { const $messages = $connection.getSubplan(); - return new PgClassFilterStep( - $messages.wherePlan(), - $messages.alias, - ); + arg.apply($messages, pgClassFilterWhere); }, - [PgClassFilterStep], + [pgClassFilterWhere], ), }, includeArchived: makeIncludeArchivedArg< @@ -3045,9 +3017,7 @@ export function makeExampleSchema( ); const PersonBookmark: GraphQLObjectType = - newObjectTypeBuilder( - PgSelectSingleStep, - )({ + newObjectTypeBuilder(PgSelectSingleStep)({ name: "PersonBookmark", fields: () => ({ id: attrField("id", GraphQLInt), @@ -3067,7 +3037,7 @@ export function makeExampleSchema( }); const Person: GraphQLObjectType = - newObjectTypeBuilder(PgSelectSingleStep)({ + newObjectTypeBuilder(PgSelectSingleStep)({ name: "Person", fields: () => ({ personId: attrField("person_id", GraphQLInt), @@ -3139,10 +3109,7 @@ export function makeExampleSchema( }), }); - const Post: GraphQLObjectType = newObjectTypeBuilder< - OurGraphQLContext, - PostStep - >(PgSelectSingleStep)({ + const Post: GQLObj = newObjectTypeBuilder(PgSelectSingleStep)({ name: "Post", fields: () => ({ postId: attrField("post_id", GraphQLInt), @@ -3152,7 +3119,7 @@ export function makeExampleSchema( }); const Comment: GraphQLObjectType = - newObjectTypeBuilder(PgSelectSingleStep)({ + newObjectTypeBuilder(PgSelectSingleStep)({ name: "Comment", fields: () => ({ commentId: attrField("comment_id", GraphQLInt), @@ -3204,7 +3171,6 @@ export function makeExampleSchema( archivedAt: attrField("archived_at", GraphQLString), } satisfies { [fieldName: string]: GrafastFieldConfig< - any, any, PgSelectSingleStep< PgResource @@ -3214,10 +3180,9 @@ export function makeExampleSchema( >; }; - const SingleTableTopic = newObjectTypeBuilder< - OurGraphQLContext, - SingleTableItemStep - >(PgSelectSingleStep)({ + const SingleTableTopic = newObjectTypeBuilder( + PgSelectSingleStep, + )({ name: "SingleTableTopic", interfaces: [SingleTableItem], fields: () => ({ @@ -3226,10 +3191,9 @@ export function makeExampleSchema( }), }); - const SingleTablePost = newObjectTypeBuilder< - OurGraphQLContext, - SingleTableItemStep - >(PgSelectSingleStep)({ + const SingleTablePost = newObjectTypeBuilder( + PgSelectSingleStep, + )({ name: "SingleTablePost", interfaces: [SingleTableItem], fields: () => ({ @@ -3240,10 +3204,9 @@ export function makeExampleSchema( }), }); - const SingleTableDivider = newObjectTypeBuilder< - OurGraphQLContext, - SingleTableItemStep - >(PgSelectSingleStep)({ + const SingleTableDivider = newObjectTypeBuilder( + PgSelectSingleStep, + )({ name: "SingleTableDivider", interfaces: [SingleTableItem], fields: () => ({ @@ -3253,10 +3216,9 @@ export function makeExampleSchema( }), }); - const SingleTableChecklist = newObjectTypeBuilder< - OurGraphQLContext, - SingleTableItemStep - >(PgSelectSingleStep)({ + const SingleTableChecklist = newObjectTypeBuilder( + PgSelectSingleStep, + )({ name: "SingleTableChecklist", interfaces: [SingleTableItem], fields: () => ({ @@ -3265,10 +3227,9 @@ export function makeExampleSchema( }), }); - const SingleTableChecklistItem = newObjectTypeBuilder< - OurGraphQLContext, - SingleTableItemStep - >(PgSelectSingleStep)({ + const SingleTableChecklistItem = newObjectTypeBuilder( + PgSelectSingleStep, + )({ name: "SingleTableChecklistItem", interfaces: [SingleTableItem], fields: () => ({ @@ -3331,13 +3292,12 @@ export function makeExampleSchema( isExplicitlyArchived: attrField("is_explicitly_archived", GraphQLBoolean), archivedAt: attrField("archived_at", GraphQLString), }) satisfies { - [fieldName: string]: GrafastFieldConfig; + [fieldName: string]: GrafastFieldConfig; }; - const RelationalTopic = newObjectTypeBuilder< - OurGraphQLContext, - RelationalTopicStep - >(PgSelectSingleStep)({ + const RelationalTopic = newObjectTypeBuilder( + PgSelectSingleStep, + )({ name: "RelationalTopic", interfaces: [RelationalItem], fields: () => ({ @@ -3346,10 +3306,9 @@ export function makeExampleSchema( }), }); - const RelationalPost = newObjectTypeBuilder< - OurGraphQLContext, - RelationalPostStep - >(PgSelectSingleStep)({ + const RelationalPost = newObjectTypeBuilder( + PgSelectSingleStep, + )({ name: "RelationalPost", interfaces: [RelationalItem, RelationalCommentable], fields: () => ({ @@ -3384,10 +3343,9 @@ export function makeExampleSchema( }), }); - const RelationalDivider = newObjectTypeBuilder< - OurGraphQLContext, - RelationalDividerStep - >(PgSelectSingleStep)({ + const RelationalDivider = newObjectTypeBuilder( + PgSelectSingleStep, + )({ name: "RelationalDivider", interfaces: [RelationalItem], fields: () => ({ @@ -3397,10 +3355,9 @@ export function makeExampleSchema( }), }); - const RelationalChecklist = newObjectTypeBuilder< - OurGraphQLContext, - RelationalChecklistStep - >(PgSelectSingleStep)({ + const RelationalChecklist = newObjectTypeBuilder( + PgSelectSingleStep, + )({ name: "RelationalChecklist", interfaces: [RelationalItem, RelationalCommentable], fields: () => ({ @@ -3409,10 +3366,9 @@ export function makeExampleSchema( }), }); - const RelationalChecklistItem = newObjectTypeBuilder< - OurGraphQLContext, - RelationalChecklistItemStep - >(PgSelectSingleStep)({ + // To preserve formatting, we use a short alias + type RC = RelationalChecklistItemStep; + const RelationalChecklistItem = newObjectTypeBuilder(PgSelectSingleStep)({ name: "RelationalChecklistItem", interfaces: [RelationalItem, RelationalCommentable], fields: () => ({ @@ -3435,9 +3391,7 @@ export function makeExampleSchema( ], }); - const UnionTopic = newObjectTypeBuilder( - PgSelectSingleStep, - )({ + const UnionTopic = newObjectTypeBuilder(PgSelectSingleStep)({ name: "UnionTopic", fields: () => ({ id: attrField("id", GraphQLInt), @@ -3445,9 +3399,7 @@ export function makeExampleSchema( }), }); - const UnionPost = newObjectTypeBuilder( - PgSelectSingleStep, - )({ + const UnionPost = newObjectTypeBuilder(PgSelectSingleStep)({ name: "UnionPost", fields: () => ({ id: attrField("id", GraphQLInt), @@ -3457,10 +3409,9 @@ export function makeExampleSchema( }), }); - const UnionDivider = newObjectTypeBuilder< - OurGraphQLContext, - UnionDividerStep - >(PgSelectSingleStep)({ + const UnionDivider = newObjectTypeBuilder( + PgSelectSingleStep, + )({ name: "UnionDivider", fields: () => ({ id: attrField("id", GraphQLInt), @@ -3469,10 +3420,9 @@ export function makeExampleSchema( }), }); - const UnionChecklist = newObjectTypeBuilder< - OurGraphQLContext, - UnionChecklistStep - >(PgSelectSingleStep)({ + const UnionChecklist = newObjectTypeBuilder( + PgSelectSingleStep, + )({ name: "UnionChecklist", fields: () => ({ id: attrField("id", GraphQLInt), @@ -3480,10 +3430,9 @@ export function makeExampleSchema( }), }); - const UnionChecklistItem = newObjectTypeBuilder< - OurGraphQLContext, - UnionChecklistItemStep - >(PgSelectSingleStep)({ + const UnionChecklistItem = newObjectTypeBuilder( + PgSelectSingleStep, + )({ name: "UnionChecklistItem", fields: () => ({ id: attrField("id", GraphQLInt), @@ -3611,10 +3560,9 @@ export function makeExampleSchema( PgUnionAllSingleStep >; - const VulnerabilityEdge = newObjectTypeBuilder< - OurGraphQLContext, - PgUnionAllSingleStep - >(PgUnionAllSingleStep)({ + const VulnerabilityEdge = newObjectTypeBuilder( + PgUnionAllSingleStep, + )({ name: "VulnerabilityEdge", fields: { cursor: { @@ -3640,10 +3588,9 @@ export function makeExampleSchema( }, }); - const VulnerabilitiesConnection = newObjectTypeBuilder< - OurGraphQLContext, - VulnerabilityConnectionStep - >(ConnectionStep)({ + // To preserve formatting, we use a short alias + type VCS = VulnerabilityConnectionStep; + const VulnerabilitiesConnection = newObjectTypeBuilder(ConnectionStep)({ name: "VulnerabilitiesConnection", fields: { edges: { @@ -3656,10 +3603,7 @@ export function makeExampleSchema( [], ), }, - pageInfo: newGrafastFieldConfigBuilder< - OurGraphQLContext, - VulnerabilityConnectionStep - >()({ + pageInfo: newGrafastFieldConfigBuilder()({ type: new GraphQLNonNull(PageInfo), plan: EXPORTABLE( () => @@ -3687,9 +3631,9 @@ export function makeExampleSchema( CVSS_SCORE_ASC: { extensions: { grafast: { - applyPlan: EXPORTABLE( - () => (step: PgUnionAllStep) => { - step.orderBy({ + apply: EXPORTABLE( + () => (qb: PgUnionAllQueryBuilder) => { + qb.orderBy({ attribute: "cvss_score", direction: "ASC", }); @@ -3702,9 +3646,9 @@ export function makeExampleSchema( CVSS_SCORE_DESC: { extensions: { grafast: { - applyPlan: EXPORTABLE( - () => (step: PgUnionAllStep) => { - step.orderBy({ + apply: EXPORTABLE( + () => (qb: PgUnionAllQueryBuilder) => { + qb.orderBy({ attribute: "cvss_score", direction: "DESC", }); @@ -3719,10 +3663,9 @@ export function makeExampleSchema( //////////////////////////////////////// - const Query = newObjectTypeBuilder< - OurGraphQLContext, - __ValueStep - >(__ValueStep)({ + const Query = newObjectTypeBuilder<__ValueStep>( + __ValueStep, + )({ name: "Query", fields: { forums: { @@ -3739,7 +3682,6 @@ export function makeExampleSchema( arg, ) { $forums.setFirst(arg.getRaw()); - return null; }, [], ), @@ -3751,31 +3693,30 @@ export function makeExampleSchema( type: ForumCondition, autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( - () => + (pgWhere) => function plan( _$root, $forums: PgSelectStep, + arg, ) { - return $forums.wherePlan(); + arg.apply($forums, pgWhere); }, - [], + [pgWhere], ), }, filter: { type: ForumFilter, autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( - (PgClassFilterStep) => + (pgClassFilterWhere) => function plan( _$root, $forums: PgSelectStep, + arg, ) { - return new PgClassFilterStep( - $forums.wherePlan(), - $forums.alias, - ); + arg.apply($forums, pgClassFilterWhere); }, - [PgClassFilterStep], + [pgClassFilterWhere], ), }, }, @@ -3834,33 +3775,32 @@ export function makeExampleSchema( type: MessageCondition, autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( - () => + (pgWhere) => function plan( _$root: any, $connection: ResourceConnectionPlan, + arg, ) { const $messages = $connection.getSubplan(); - return $messages.wherePlan(); + arg.apply($messages, pgWhere); }, - [], + [pgWhere], ), }, filter: { type: MessageFilter, autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( - (PgClassFilterStep) => + (pgClassFilterWhere) => function plan( _$root: any, $connection: ResourceConnectionPlan, + arg, ) { const $messages = $connection.getSubplan(); - return new PgClassFilterStep( - $messages.wherePlan(), - $messages.alias, - ); + arg.apply($messages, pgClassFilterWhere); }, - [PgClassFilterStep], + [pgClassFilterWhere], ), }, includeArchived: makeIncludeArchivedArg< @@ -3877,7 +3817,6 @@ export function makeExampleSchema( val, ) { $connection.setFirst(val.getRaw()); - return null; }, [], ), @@ -3893,7 +3832,6 @@ export function makeExampleSchema( arg, ) { $connection.setLast(arg.getRaw()); - return null; }, [], ), @@ -3909,7 +3847,6 @@ export function makeExampleSchema( arg, ) { $connection.setAfter(arg.getRaw()); - return null; }, [], ), @@ -3925,52 +3862,17 @@ export function makeExampleSchema( arg, ) { $connection.setBefore(arg.getRaw()); - return null; }, [], ), }, orderBy: { type: new GraphQLList(new GraphQLNonNull(MessagesOrderBy)), - autoApplyAfterParentPlan: true, - applyPlan: EXPORTABLE( - (GraphQLError, MessagesOrderBy, getEnumValueConfig, inspect) => - function plan( - _$root, - $connection: ResourceConnectionPlan, - arg, - ) { - const $messages = $connection.getSubplan(); - const val = arg.getRaw().eval(); - if (!Array.isArray(val)) { - throw new GraphQLError( - "Invalid valus supplied to 'orderBy'", - ); - } - val.forEach((order) => { - const config = getEnumValueConfig(MessagesOrderBy, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error( - `Internal server error: invalid orderBy configuration: expected function, but received ${inspect( - plan, - )}`, - ); - throw new GraphQLError( - "Internal server error: invalid orderBy configuration", - ); - } - plan($messages); - }); - return null; - }, - [GraphQLError, MessagesOrderBy, getEnumValueConfig, inspect], - ), }, }, plan: EXPORTABLE( (connection, deoptimizeIfAppropriate, messageResource) => - function plan() { + function plan(_, fieldArgs) { const $messages = messageResource.find(); deoptimizeIfAppropriate($messages); // $messages.leftJoin(...); @@ -3978,7 +3880,7 @@ export function makeExampleSchema( // $messages.relation('fk_messages_author_id') // $messages.where(...); const $connectionPlan = connection($messages); - // $connectionPlan.orderBy... ? + fieldArgs.apply($messages, "orderBy"); // DEFINITELY NOT $messages.orderBy BECAUSE we don't want that applied to aggregates. // DEFINITELY NOT $messages.limit BECAUSE we don't want those limits applied to aggregates or page info. return $connectionPlan; @@ -4248,7 +4150,6 @@ export function makeExampleSchema( const $commentables = $each.getListStep() as RelationalCommentablesStep; $commentables.setFirst(val.getRaw()); - return null; }, [], ), @@ -4575,15 +4476,16 @@ export function makeExampleSchema( type: VulnerabilityCondition, autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( - () => + (pgWhere) => function plan( _$root: any, $connection: VulnerabilityConnectionStep, + arg, ) { const $collection = $connection.getSubplan(); - return $collection.wherePlan(); + arg.apply($collection, pgWhere); }, - [], + [pgWhere], ), }, first: { @@ -4597,7 +4499,6 @@ export function makeExampleSchema( val, ) { $connection.setFirst(val.getRaw()); - return null; }, [], ), @@ -4613,7 +4514,6 @@ export function makeExampleSchema( arg, ) { $connection.setLast(arg.getRaw()); - return null; }, [], ), @@ -4629,7 +4529,6 @@ export function makeExampleSchema( arg, ) { $connection.setOffset(arg.getRaw()); - return null; }, [], ), @@ -4645,7 +4544,6 @@ export function makeExampleSchema( arg, ) { $connection.setAfter(arg.getRaw()); - return null; }, [], ), @@ -4661,58 +4559,12 @@ export function makeExampleSchema( arg, ) { $connection.setBefore(arg.getRaw()); - return null; }, [], ), }, orderBy: { type: new GraphQLList(new GraphQLNonNull(VulnerabilitiesOrderBy)), - autoApplyAfterParentPlan: true, - applyPlan: EXPORTABLE( - ( - GraphQLError, - VulnerabilitiesOrderBy, - getEnumValueConfig, - inspect, - ) => - function plan( - _$root, - $connection: ResourceConnectionPlan, - arg, - ) { - const $collection = $connection.getSubplan(); - const val = arg.getRaw().eval(); - if (!Array.isArray(val)) { - throw new Error("Invalid!"); - } - val.forEach((order) => { - const config = getEnumValueConfig( - VulnerabilitiesOrderBy, - order, - ); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error( - `Internal server error: invalid orderBy configuration: expected function, but received ${inspect( - plan, - )}`, - ); - throw new GraphQLError( - "Internal server error: invalid orderBy configuration", - ); - } - plan($collection); - }); - return null; - }, - [ - GraphQLError, - VulnerabilitiesOrderBy, - getEnumValueConfig, - inspect, - ], - ), }, }, plan: EXPORTABLE( @@ -4723,7 +4575,7 @@ export function makeExampleSchema( pgUnionAll, thirdPartyVulnerabilitiesResource, ) => - function plan() { + function plan(_, fieldArgs) { // IMPORTANT: for cursor pagination, type must be part of cursor condition const $vulnerabilities = pgUnionAll({ name: "vulnerabilities", @@ -4738,6 +4590,7 @@ export function makeExampleSchema( ThirdPartyVulnerability: thirdPartyVulnerabilitiesResource, }, }); + fieldArgs.apply($vulnerabilities, "orderBy"); return connection($vulnerabilities); }, [ @@ -4811,7 +4664,6 @@ export function makeExampleSchema( >; const CreateRelationalPostPayload = newObjectTypeBuilder< - OurGraphQLContext, PgRecord >(PgClassExpressionStep)({ name: "CreateRelationalPostPayload", @@ -4850,7 +4702,6 @@ export function makeExampleSchema( }); const UpdateRelationalPostByIdPayload = newObjectTypeBuilder< - OurGraphQLContext, PgUpdateSingleStep >(PgUpdateSingleStep)({ name: "UpdateRelationalPostByIdPayload", @@ -4889,7 +4740,6 @@ export function makeExampleSchema( }); const DeleteRelationalPostByIdPayload = newObjectTypeBuilder< - OurGraphQLContext, PgDeleteSingleStep >(PgDeleteSingleStep)({ name: "DeleteRelationalPostByIdPayload", @@ -4942,10 +4792,9 @@ export function makeExampleSchema( }, }); - const MultipleActionsPayload = newObjectTypeBuilder< - OurGraphQLContext, - WithPgClientStep - >(WithPgClientStep)({ + const MultipleActionsPayload = newObjectTypeBuilder( + WithPgClientStep, + )({ name: "MultipleActionsPayload", fields: { i: { @@ -4961,10 +4810,9 @@ export function makeExampleSchema( }, }); - const Mutation = newObjectTypeBuilder< - OurGraphQLContext, - __ValueStep - >(__ValueStep)({ + const Mutation = newObjectTypeBuilder<__ValueStep>( + __ValueStep, + )({ name: "Mutation", fields: { createRelationalPost: { @@ -4976,12 +4824,14 @@ export function makeExampleSchema( type: CreateRelationalPostPayload, plan: EXPORTABLE( ( + bakedInput, constant, + getNullableInputTypeAtPath, pgInsertSingle, relationalItemsResource, relationalPostsResource, ) => - function plan(_$root, fieldArgs) { + function plan(_$root, fieldArgs, info) { const $item = pgInsertSingle(relationalItemsResource, { type: constant`POST`, author_id: constant(2, false), @@ -4990,14 +4840,20 @@ export function makeExampleSchema( const $post = pgInsertSingle(relationalPostsResource, { id: $itemId, }); + const inputArgType = info.field.args.find( + (a) => a.name === "input", + )!.type; for (const key of ["title", "description", "note"] as Array< keyof typeof relationalPostsResource.codec.attributes >) { - const $value = fieldArgs.getRaw(["input", key]); - if (!$value.evalIs(undefined)) { - const $value = fieldArgs.get(["input", key]); - $post.set(key, $value); - } + const $rawValue = fieldArgs.getRaw(["input", key]); + const $value = bakedInput( + getNullableInputTypeAtPath(inputArgType, [key]), + $rawValue, + ); + + // TODO: pgInsertSingle needs to attributes with undefined values at runtime + $post.set(key, $value); } // NOTE: returning a record() here is unnecessary and requires @@ -5014,7 +4870,9 @@ export function makeExampleSchema( return $post.record(); }, [ + bakedInput, constant, + getNullableInputTypeAtPath, pgInsertSingle, relationalItemsResource, relationalPostsResource, @@ -5110,25 +4968,39 @@ export function makeExampleSchema( }, type: UpdateRelationalPostByIdPayload, plan: EXPORTABLE( - (pgUpdateSingle, relationalPostsResource) => - function plan(_$root, fieldArgs) { + ( + bakedInput, + getNullableInputTypeAtPath, + pgUpdateSingle, + relationalPostsResource, + ) => + function plan(_$root, fieldArgs, info) { const $post = pgUpdateSingle(relationalPostsResource, { id: fieldArgs.$input.$id as ExecutableStep, }); + const inputArgType = info.field.args.find( + (a) => a.name === "input", + )!.type; for (const key of ["title", "description", "note"] as Array< keyof typeof relationalPostsResource.codec.attributes >) { const $rawValue = fieldArgs.getRaw(["input", "patch", key]); - // TEST: test that we differentiate between value set to null and - // value not being present - if (!$rawValue.evalIs(undefined)) { - const $value = fieldArgs.get(["input", "patch", key]); - $post.set(key, $value); - } + const $value = bakedInput( + getNullableInputTypeAtPath(inputArgType, ["patch", key]), + $rawValue, + ); + + // TODO: pgUpdateSingle needs to ignore values set to undefined + $post.set(key, $value); } return $post; }, - [pgUpdateSingle, relationalPostsResource], + [ + bakedInput, + getNullableInputTypeAtPath, + pgUpdateSingle, + relationalPostsResource, + ], ), }, @@ -5217,7 +5089,6 @@ export function makeExampleSchema( }); const ForumMessageSubscriptionPayload = newObjectTypeBuilder< - OurGraphQLContext, JSONParseStep<{ id: string; op: string }> >(JSONParseStep)({ name: "ForumMessageSubscriptionPayload", @@ -5249,10 +5120,9 @@ export function makeExampleSchema( }, }); - const Subscription = newObjectTypeBuilder< - OurGraphQLContext, - __ValueStep - >(__ValueStep)({ + const Subscription = newObjectTypeBuilder<__ValueStep>( + __ValueStep, + )({ name: "Subscription", fields: { forumMessage: { @@ -5265,7 +5135,7 @@ export function makeExampleSchema( subscribePlan: EXPORTABLE( (context, jsonParse, lambda, listen) => function subscribePlan(_$root, args) { - const $forumId = args.get("forumId"); + const $forumId = args.getRaw("forumId"); const $topic = lambda( $forumId, (id) => `forum:${id}:message`, @@ -5346,3 +5216,13 @@ if (require.main === module) { process.exit(1); }); } +const pgClassFilterWhere = EXPORTABLE( + (PgClassFilter) => + function pgClassFilterWhere(qb: PgSelectQueryBuilder) { + return new PgClassFilter(qb.whereBuilder(), qb.alias); + }, + [PgClassFilter], +); +function pgWhere(qb: PgSelectQueryBuilder | PgUnionAllQueryBuilder) { + return qb.whereBuilder(); +} diff --git a/grafast/dataplan-pg/src/filters/pgBooleanFilter.ts b/grafast/dataplan-pg/src/filters/pgBooleanFilter.ts index c9c7d3c0ef..d11f038404 100644 --- a/grafast/dataplan-pg/src/filters/pgBooleanFilter.ts +++ b/grafast/dataplan-pg/src/filters/pgBooleanFilter.ts @@ -1,17 +1,16 @@ -import type { ExecutableStep } from "grafast"; -import { ModifierStep } from "grafast"; +import { Modifier } from "grafast"; import type { SQL, SQLable } from "pg-sql2"; import { $$toSQL } from "pg-sql2"; -import type { PgCodec, PgConditionLikeStep } from "../interfaces.js"; +import type { PgConditionLike } from "../interfaces.js"; -export class PgBooleanFilterStep - extends ModifierStep +export class PgBooleanFilter + extends Modifier implements SQLable { static $$export = { moduleName: "@dataplan/pg", - exportName: "PgBooleanFilterStep", + exportName: "PgBooleanFilter", }; private conditions: SQL[] = []; @@ -19,15 +18,11 @@ export class PgBooleanFilterStep public alias: SQL; constructor( - $classFilterPlan: PgConditionLikeStep, + classFilter: PgConditionLike, public readonly expression: SQL, ) { - super($classFilterPlan); - this.alias = $classFilterPlan.alias; - } - - placeholder($step: ExecutableStep, codec: PgCodec): SQL { - return this.$parent.placeholder($step, codec); + super(classFilter); + this.alias = classFilter.alias; } where(condition: SQL) { @@ -39,11 +34,10 @@ export class PgBooleanFilterStep } apply() { - this.conditions.forEach((condition) => this.$parent.where(condition)); - this.havingConditions.forEach((condition) => - this.$parent.having(condition), - ); + this.conditions.forEach((condition) => this.parent.where(condition)); + this.havingConditions.forEach((condition) => this.parent.having(condition)); } + [$$toSQL]() { return this.alias; } diff --git a/grafast/dataplan-pg/src/filters/pgClassFilter.ts b/grafast/dataplan-pg/src/filters/pgClassFilter.ts index 9ff19cd17d..185558ca35 100644 --- a/grafast/dataplan-pg/src/filters/pgClassFilter.ts +++ b/grafast/dataplan-pg/src/filters/pgClassFilter.ts @@ -1,30 +1,29 @@ -import type { ExecutableStep } from "grafast"; -import { ModifierStep } from "grafast"; +import { Modifier } from "grafast"; import type { SQL, SQLable } from "pg-sql2"; import { $$toSQL } from "pg-sql2"; -import type { PgCodec } from "../interfaces.js"; +import type { PgConditionLike } from "../index.js"; import type { - PgConditionCapableParentStep, - PgConditionStep, + PgCondition, + PgConditionCapableParent, } from "../steps/pgCondition.js"; -export class PgClassFilterStep< - TParentStep extends - PgConditionCapableParentStep = PgConditionCapableParentStep, +export class PgClassFilter< + TParent extends PgConditionCapableParent = PgConditionCapableParent, > - extends ModifierStep> - implements SQLable + extends Modifier> + implements SQLable, PgConditionLike { static $$export = { moduleName: "@dataplan/pg", - exportName: "PgClassFilterStep", + exportName: "PgClassFilter", }; private conditions: SQL[] = []; + private havingConditions: SQL[] = []; constructor( - parent: PgConditionStep, + parent: PgCondition, public readonly alias: SQL, ) { super(parent); @@ -34,12 +33,13 @@ export class PgClassFilterStep< this.conditions.push(condition); } - placeholder($step: ExecutableStep, codec: PgCodec): SQL { - return this.$parent.placeholder($step, codec); + having(condition: SQL) { + this.havingConditions.push(condition); } apply() { - this.conditions.forEach((condition) => this.$parent.where(condition)); + this.conditions.forEach((condition) => this.parent.where(condition)); + this.havingConditions.forEach((condition) => this.parent.having(condition)); } [$$toSQL]() { diff --git a/grafast/dataplan-pg/src/filters/pgManyFilter.ts b/grafast/dataplan-pg/src/filters/pgManyFilter.ts index f5852d1bb7..dbd1ea542a 100644 --- a/grafast/dataplan-pg/src/filters/pgManyFilter.ts +++ b/grafast/dataplan-pg/src/filters/pgManyFilter.ts @@ -1,21 +1,21 @@ -import { ModifierStep } from "grafast"; +import { Modifier } from "grafast"; import sql from "pg-sql2"; import type { PgResource } from "../datasource.js"; -import { PgTempTableStep } from "../steps/pgTempTable.js"; -import { PgClassFilterStep } from "./pgClassFilter.js"; +import { PgTempTable } from "../steps/pgTempTable.js"; +import { PgClassFilter } from "./pgClassFilter.js"; -export class PgManyFilterStep< +export class PgManyFilter< TChildResource extends PgResource, -> extends ModifierStep { +> extends Modifier { static $$export = { moduleName: "@dataplan/pg", - exportName: "PgManyFilterStep", + exportName: "PgManyFilter", }; - public $some: PgTempTableStep | null = null; + public someTemp: PgTempTable | null = null; constructor( - $parentFilterPlan: PgClassFilterStep, + $parentFilterPlan: PgClassFilter, public childDataSource: TChildResource, private myAttrs: string[], private theirAttrs: string[], @@ -29,27 +29,27 @@ export class PgManyFilterStep< } some() { - const $table = new PgTempTableStep(this.$parent, this.childDataSource); + const tempTable = new PgTempTable(this.parent, this.childDataSource); // Implement the relationship this.myAttrs.forEach((attr, i) => { - $table.where( - sql`${this.$parent.alias}.${sql.identifier(attr)} = ${ - $table.alias + tempTable.where( + sql`${this.parent.alias}.${sql.identifier(attr)} = ${ + tempTable.alias }.${sql.identifier(this.theirAttrs[i])}`, ); }); - const $filter = new PgClassFilterStep($table.wherePlan(), $table.alias); - this.$some = $table; + const $filter = new PgClassFilter(tempTable.wherePlan(), tempTable.alias); + this.someTemp = tempTable; return $filter; } apply() { - if (this.$some) { - const conditions = this.$some.conditions; - const from = sql`\nfrom ${this.$some.fromExpression()} as ${ - this.$some.alias + if (this.someTemp) { + const conditions = this.someTemp.conditions; + const from = sql`\nfrom ${this.someTemp.fromExpression()} as ${ + this.someTemp.alias }`; const sqlConditions = sql.join( conditions.map((c) => sql.parens(sql.indent(c))), @@ -61,7 +61,7 @@ export class PgManyFilterStep< : conditions.length === 1 ? sql`\nwhere ${sqlConditions}` : sql`\nwhere\n${sql.indent(sqlConditions)}`; - this.$parent.where( + this.parent.where( sql`exists(${sql.indent(sql`select 1${from}${where}`)})`, ); } diff --git a/grafast/dataplan-pg/src/filters/pgOrFilter.ts b/grafast/dataplan-pg/src/filters/pgOrFilter.ts index 3658aafa69..0fde446e4f 100644 --- a/grafast/dataplan-pg/src/filters/pgOrFilter.ts +++ b/grafast/dataplan-pg/src/filters/pgOrFilter.ts @@ -1,32 +1,24 @@ -import type { ExecutableStep } from "grafast"; -import { ModifierStep } from "grafast"; +import { Modifier } from "grafast"; import type { SQL, SQLable } from "pg-sql2"; import { $$toSQL, sql } from "pg-sql2"; -import type { PgCodec, PgConditionLikeStep } from "../interfaces.js"; +import type { PgConditionLike } from "../interfaces.js"; -export class PgOrFilterStep - extends ModifierStep - implements SQLable -{ +export class PgOrFilter extends Modifier implements SQLable { static $$export = { moduleName: "@dataplan/pg", - exportName: "PgOrFilterStep", + exportName: "PgOrFilter", }; private conditions: SQL[] = []; private havingConditions: SQL[] = []; public alias: SQL; - constructor($classFilterPlan: PgConditionLikeStep) { + constructor($classFilterPlan: PgConditionLike) { super($classFilterPlan); this.alias = $classFilterPlan.alias; } - placeholder($step: ExecutableStep, codec: PgCodec): SQL { - return this.$parent.placeholder($step, codec); - } - where(condition: SQL) { this.conditions.push(condition); } @@ -37,7 +29,7 @@ export class PgOrFilterStep apply() { if (this.conditions.length > 0) { - this.$parent.where( + this.parent.where( sql`(${sql.join( this.conditions.map((frag) => sql.indent(sql.parens(frag))), "\nOR\n", @@ -45,7 +37,7 @@ export class PgOrFilterStep ); } if (this.havingConditions.length > 0) { - this.$parent.having( + this.parent.having( sql`(${sql.join( this.havingConditions.map((frag) => sql.indent(sql.parens(frag))), "\nOR\n", diff --git a/grafast/dataplan-pg/src/index.ts b/grafast/dataplan-pg/src/index.ts index eaf98cd1c0..cec5662e30 100644 --- a/grafast/dataplan-pg/src/index.ts +++ b/grafast/dataplan-pg/src/index.ts @@ -18,6 +18,7 @@ import { PgRecordTypeCodecSpec, rangeOfCodec, recordCodec, + sqlValueWithCodec, TYPES, } from "./codecs.js"; import { @@ -61,10 +62,14 @@ import { PgExecutorOptions, WithPgClient, } from "./executor.js"; -import { PgBooleanFilterStep } from "./filters/pgBooleanFilter.js"; -import { PgClassFilterStep } from "./filters/pgClassFilter.js"; -import { PgManyFilterStep } from "./filters/pgManyFilter.js"; -import { PgOrFilterStep } from "./filters/pgOrFilter.js"; +import { PgBooleanFilter } from "./filters/pgBooleanFilter.js"; +import { PgClassFilter } from "./filters/pgClassFilter.js"; +import { PgManyFilter } from "./filters/pgManyFilter.js"; +import { PgOrFilter } from "./filters/pgOrFilter.js"; +import type { + PgSelectQueryBuilderCallback, + PgUnionAllQueryBuilderCallback, +} from "./interfaces.js"; import { GetPgCodecAttributes, GetPgRegistryCodecRelations, @@ -93,7 +98,7 @@ import { PgCodecRelationConfig, PgCodecRelationExtensions, PgCodecWithAttributes, - PgConditionLikeStep, + PgConditionLike, PgDecode, PgEncode, PgEnumCodec, @@ -104,7 +109,7 @@ import { PgRefDefinitionExtensions, PgRefDefinitions, PgRegistry, - PgTypedExecutableStep, + PgTypedStep, PlanByUniques, TuplePlanMap, } from "./interfaces.js"; @@ -121,16 +126,23 @@ import { PgClassExpressionStep, } from "./steps/pgClassExpression.js"; import { - PgConditionCapableParentStep, - PgConditionStep, - PgConditionStepExtensions, + PgCondition, + PgConditionCapableParent, PgHavingConditionSpec, PgWhereConditionSpec, pgWhereConditionSpecListToSQL, } from "./steps/pgCondition.js"; import { PgCursorStep } from "./steps/pgCursor.js"; -import { pgDeleteSingle, PgDeleteSingleStep } from "./steps/pgDeleteSingle.js"; -import { pgInsertSingle, PgInsertSingleStep } from "./steps/pgInsertSingle.js"; +import { + pgDeleteSingle, + PgDeleteSingleQueryBuilder, + PgDeleteSingleStep, +} from "./steps/pgDeleteSingle.js"; +import { + pgInsertSingle, + PgInsertSingleQueryBuilder, + PgInsertSingleStep, +} from "./steps/pgInsertSingle.js"; import { pgPageInfo, PgPageInfoStep } from "./steps/pgPageInfo.js"; import { pgPolymorphic, @@ -138,7 +150,7 @@ import { PgPolymorphicTypeMap, } from "./steps/pgPolymorphic.js"; import { - digestsFromArgumentSpecs, + pgFromExpression, pgSelect, PgSelectArgumentDigest, PgSelectArgumentSpec, @@ -147,6 +159,7 @@ import { PgSelectMode, PgSelectOptions, PgSelectParsedCursorStep, + PgSelectQueryBuilder, PgSelectRowsStep, PgSelectStep, sqlFromArgDigests, @@ -161,9 +174,10 @@ import { pgSingleTablePolymorphic, PgSingleTablePolymorphicStep, } from "./steps/pgSingleTablePolymorphic.js"; -import { PgTempTableStep } from "./steps/pgTempTable.js"; +import { PgTempTable } from "./steps/pgTempTable.js"; import { pgUnionAll, + PgUnionAllQueryBuilder, PgUnionAllRowsStep, PgUnionAllSingleStep, PgUnionAllStep, @@ -173,7 +187,11 @@ import { PgUnionAllStepMember, PgUnionAllStepOrder, } from "./steps/pgUnionAll.js"; -import { pgUpdateSingle, PgUpdateSingleStep } from "./steps/pgUpdateSingle.js"; +import { + pgUpdateSingle, + PgUpdateSingleQueryBuilder, + PgUpdateSingleStep, +} from "./steps/pgUpdateSingle.js"; import { pgValidateParsedCursor, PgValidateParsedCursorStep, @@ -189,7 +207,6 @@ import { assertPgClassSingleStep } from "./utils.js"; export { assertPgClassSingleStep, - digestsFromArgumentSpecs, domainOfCodec, enumCodec, getCodecByPgCatalogTypeName, @@ -213,12 +230,12 @@ export { makeRegistryBuilder, ObjectFromPgCodecAttributes, PgAdaptor, - PgBooleanFilterStep, + PgBooleanFilter, PgBox, PgCircle, pgClassExpression, PgClassExpressionStep, - PgClassFilterStep, + PgClassFilter, PgClassSingleStep, PgClient, PgClientQuery, @@ -248,14 +265,14 @@ export { PgCodecRelationConfig, PgCodecRelationExtensions, PgCodecWithAttributes, - PgConditionCapableParentStep, - PgConditionLikeStep, - PgConditionStep, - PgConditionStepExtensions, + PgCondition, + PgConditionCapableParent, + PgConditionLike, PgContextPlugin, PgCursorStep, PgDecode, pgDeleteSingle, + PgDeleteSingleQueryBuilder, PgDeleteSingleStep, PgEncode, PgEnumCodec, @@ -267,20 +284,22 @@ export { PgExecutorInput, PgExecutorMutationOptions, PgExecutorOptions, + pgFromExpression, PgFunctionResourceOptions, PgGroupSpec, PgHavingConditionSpec, PgHStore, pgInsertSingle, + PgInsertSingleQueryBuilder, PgInsertSingleStep, PgInterval, PgLine, PgLockableParameter, PgLockCallback, PgLseg, - PgManyFilterStep, + PgManyFilter, PgOrderSpec, - PgOrFilterStep, + PgOrFilter, pgPageInfo, PgPageInfoStep, PgPath, @@ -310,6 +329,8 @@ export { PgSelectMode, PgSelectOptions, PgSelectParsedCursorStep, + PgSelectQueryBuilder, + PgSelectQueryBuilderCallback, PgSelectRowsStep, pgSelectSingleFromRecord, PgSelectSinglePlanOptions, @@ -317,9 +338,11 @@ export { PgSelectStep, pgSingleTablePolymorphic, PgSingleTablePolymorphicStep, - PgTempTableStep, - PgTypedExecutableStep, + PgTempTable, + PgTypedStep, pgUnionAll, + PgUnionAllQueryBuilder, + PgUnionAllQueryBuilderCallback, PgUnionAllRowsStep, PgUnionAllSingleStep, PgUnionAllStep, @@ -329,6 +352,7 @@ export { PgUnionAllStepMember, PgUnionAllStepOrder, pgUpdateSingle, + PgUpdateSingleQueryBuilder, PgUpdateSingleStep, pgValidateParsedCursor, PgValidateParsedCursorStep, @@ -338,6 +362,7 @@ export { rangeOfCodec, recordCodec, sqlFromArgDigests, + sqlValueWithCodec, toPg, ToPgStep, TuplePlanMap, @@ -361,19 +386,20 @@ exportAsMany("@dataplan/pg", { listOfCodec, rangeOfCodec, recordCodec, + sqlValueWithCodec, makeRegistryBuilder, makeRegistry, makePgResourceOptions, TYPES, PgResource, PgExecutor, - PgBooleanFilterStep, - PgClassFilterStep, - PgManyFilterStep, - PgOrFilterStep, + PgBooleanFilter, + PgClassFilter, + PgManyFilter, + PgOrFilter, pgClassExpression, PgClassExpressionStep, - PgConditionStep, + PgCondition, pgWhereConditionSpecListToSQL, PgCursorStep, pgDeleteSingle, @@ -385,7 +411,7 @@ exportAsMany("@dataplan/pg", { pgPolymorphic, PgPolymorphicStep, pgSelect, - digestsFromArgumentSpecs, + pgFromExpression, pgSelectFromRecords, PgSelectStep, PgSelectRowsStep, @@ -403,7 +429,7 @@ exportAsMany("@dataplan/pg", { PgUpdateSingleStep, pgValidateParsedCursor, PgValidateParsedCursorStep, - PgTempTableStep, + PgTempTable, toPg, ToPgStep, withPgClient, @@ -415,19 +441,6 @@ exportAsMany("@dataplan/pg", { PgContextPlugin, }); -export { - /** @deprecated Use Pg prefix */ - PgBooleanFilterStep as BooleanFilterStep, - /** @deprecated Use Pg prefix */ - PgClassFilterStep as ClassFilterStep, - /** @deprecated Use Pg prefix */ - PgManyFilterStep as ManyFilterStep, - /** @deprecated Use Pg prefix */ - PgOrFilterStep as OrFilterStep, - /** @deprecated Use Pg prefix */ - PgTempTableStep as TempTableStep, -}; - export { version } from "./version.js"; declare global { @@ -505,7 +518,7 @@ declare global { } } namespace DataplanPg { - interface PgConditionStepExtensions {} + interface PgConditionExtensions {} /** * Custom metadata for a codec */ diff --git a/grafast/dataplan-pg/src/interfaces.ts b/grafast/dataplan-pg/src/interfaces.ts index 583b6c9e15..530cccf613 100644 --- a/grafast/dataplan-pg/src/interfaces.ts +++ b/grafast/dataplan-pg/src/interfaces.ts @@ -1,5 +1,6 @@ -import type { ExecutableStep, ModifierStep } from "grafast"; +import type { Modifier, Step } from "grafast"; import type { PgSQL, SQL, SQLRawValue } from "pg-sql2"; +import { $$toSQL } from "pg-sql2"; import type { CustomInspectFunction, inspect } from "util"; import type { PgCodecAttributes } from "./codecs.js"; @@ -13,7 +14,9 @@ import type { import type { PgExecutor } from "./executor.js"; import type { PgDeleteSingleStep } from "./steps/pgDeleteSingle.js"; import type { PgInsertSingleStep } from "./steps/pgInsertSingle.js"; +import type { PgSelectQueryBuilder } from "./steps/pgSelect.js"; import type { PgSelectSingleStep } from "./steps/pgSelectSingle.js"; +import type { PgUnionAllQueryBuilder } from "./steps/pgUnionAll.js"; import type { PgUpdateSingleStep } from "./steps/pgUpdateSingle.js"; /** @@ -317,11 +320,10 @@ export interface PgEnumCodec< } /** - * A PgTypedExecutableStep has a 'pgCodec' property which means we don't need + * A PgTypedStep has a 'pgCodec' property which means we don't need * to also state the pgCodec to use, this can be an added convenience. */ -export interface PgTypedExecutableStep - extends ExecutableStep { +export interface PgTypedStep extends Step { pgCodec: TCodec; } @@ -378,21 +380,20 @@ export type TuplePlanMap< > = { [Index in keyof TTuple]: { // Optional attributes - [key in keyof TAttributes as Exclude< - key, - keyof TTuple[number] - >]?: ExecutableStep>; + [key in keyof TAttributes as Exclude]?: Step< + ReturnType + >; } & { // Required unique combination of attributes - [key in TTuple[number]]: ExecutableStep< + [key in TTuple[number]]: Step< ReturnType >; }; }; /** - * Represents a spec like `{user_id: ExecutableStep}` or - * `{organization_id: ExecutableStep, item_id: ExecutableStep}`. The keys in + * Represents a spec like `{user_id: Step}` or + * `{organization_id: Step, item_id: Step}`. The keys in * the spec can be any of the attributes in TAttributes, however there must be at * least one of the unique sets of attributes represented (as specified in * TUniqueAttributes) - you can then add arbitrary additional attributes if you need @@ -408,9 +409,8 @@ export type PlanByUniques< >[number] : undefined; -export type PgConditionLikeStep = (ModifierStep | ExecutableStep) & { +export type PgConditionLike = Modifier & { alias: SQL; - placeholder($step: ExecutableStep, codec: PgCodec): SQL; where(condition: SQL): void; having(condition: SQL): void; }; @@ -722,7 +722,7 @@ export type GetPgResourceCodec< > = TResource["codec"]; export type GetPgResourceAttributes< - TResource extends PgResource, + TResource extends PgResource, > = GetPgCodecAttributes; export type GetPgResourceRelations< @@ -734,6 +734,32 @@ export type GetPgResourceUniques< > = TResource["uniques"]; export type PgSQLCallback = ( - sql: PgSQL>, + sql: PgSQL>, ) => TResult; export type PgSQLCallbackOrDirect = PgSQLCallback | TResult; + +export interface PgQueryBuilder { + /** The alias of the current table */ + alias: SQL; + [$$toSQL](): SQL; + setMeta(key: string, value: unknown): void; +} + +export type PgSelectQueryBuilderCallback = (qb: PgSelectQueryBuilder) => void; +export type PgUnionAllQueryBuilderCallback = ( + qb: PgUnionAllQueryBuilder, +) => void; +export type ReadonlyArrayOrDirect = T | ReadonlyArray; + +export type ObjectForResource< + TResource extends PgResource, +> = { + [key in keyof GetPgResourceAttributes & string]?: any; // TYPES: we should be able to make this stronger using the attribute codec +}; + +export interface PgQueryRootStep extends Step { + getPgRoot(): PgQueryRootStep; + placeholder($step: PgTypedStep): SQL; + placeholder($step: Step, codec: PgCodec, alreadyEncoded?: boolean): SQL; + deferredSQL($step: Step): SQL; +} diff --git a/grafast/dataplan-pg/src/steps/pgClassExpression.ts b/grafast/dataplan-pg/src/steps/pgClassExpression.ts index 03a0c3fc41..daf328f964 100644 --- a/grafast/dataplan-pg/src/steps/pgClassExpression.ts +++ b/grafast/dataplan-pg/src/steps/pgClassExpression.ts @@ -1,5 +1,5 @@ -import type { UnbatchedExecutionExtra } from "grafast"; -import { access, exportAs, UnbatchedExecutableStep } from "grafast"; +import type { AccessStep, UnbatchedExecutionExtra } from "grafast"; +import { access, exportAs, UnbatchedStep } from "grafast"; import type { SQL } from "pg-sql2"; import sql, { $$toSQL } from "pg-sql2"; @@ -8,7 +8,7 @@ import type { GetPgCodecAttributes, PgClassSingleStep, PgCodec, - PgTypedExecutableStep, + PgTypedStep, } from "../interfaces.js"; import { PgDeleteSingleStep } from "./pgDeleteSingle.js"; import { PgInsertSingleStep } from "./pgInsertSingle.js"; @@ -31,8 +31,8 @@ export class PgClassExpressionStep< TExpressionCodec extends PgCodec, TResource extends PgResource, > - extends UnbatchedExecutableStep - implements PgTypedExecutableStep + extends UnbatchedStep + implements PgTypedStep { static $$export = { moduleName: "@dataplan/pg", @@ -58,19 +58,25 @@ export class PgClassExpressionStep< public readonly expression: SQL; private needsPolymorphicUnwrap: boolean; + private needsTupleAccess: boolean; constructor( $table: PgClassSingleStep | PgUnionAllSingleStep, public readonly pgCodec: TExpressionCodec, strings: TemplateStringsArray, - dependencies: ReadonlyArray | SQL> = [], + dependencies: ReadonlyArray | SQL> = [], private guaranteedNotNull?: boolean, ) { super(); this.needsPolymorphicUnwrap = $table instanceof PgUnionAllSingleStep && $table.getClassStep().mode === "normal"; - this.rowDependencyId = this.addDependency($table); + this.needsTupleAccess = + $table instanceof PgInsertSingleStep || + $table instanceof PgUpdateSingleStep || + $table instanceof PgDeleteSingleStep; + const $row = this.needsTupleAccess ? access($table, "t") : $table; + this.rowDependencyId = this.addDependency($row); if (strings.length !== dependencies.length + 1) { throw new Error( `Invalid call to PgClassExpressionStep; should have exactly one more string (found ${strings.length}) than dependency (found ${dependencies.length}). Recommend using the tagged template literal helper pgClassExpression.`, @@ -219,7 +225,10 @@ export class PgClassExpressionStep< } public getParentStep(): PgClassSingleStep | PgUnionAllSingleStep { - const step = this.getDep(this.rowDependencyId); + const $row = this.getDep(this.rowDependencyId); + const step = this.needsTupleAccess + ? ($row as AccessStep).getParentStep() + : $row; if ( !(step instanceof PgSelectSingleStep) && !(step instanceof PgInsertSingleStep) && @@ -233,6 +242,9 @@ export class PgClassExpressionStep< } return step; } + public getMeta(key: string) { + return this.getParentStep().getMeta(key); + } public optimize(): this { this.attrIndex = this.getParentStep().selectAndReturnIndex( @@ -294,7 +306,7 @@ function pgClassExpression< guaranteedNotNull?: boolean, ): ( strings: TemplateStringsArray, - ...dependencies: ReadonlyArray | SQL> + ...dependencies: ReadonlyArray | SQL> ) => PgClassExpressionStep { return (strings, ...dependencies) => { return new PgClassExpressionStep( diff --git a/grafast/dataplan-pg/src/steps/pgCondition.ts b/grafast/dataplan-pg/src/steps/pgCondition.ts index 5ca75c4f6b..3bb864263b 100644 --- a/grafast/dataplan-pg/src/steps/pgCondition.ts +++ b/grafast/dataplan-pg/src/steps/pgCondition.ts @@ -1,11 +1,7 @@ -import type { BaseStep, ExecutableStep } from "grafast"; -import { ModifierStep } from "grafast"; +import { Modifier } from "grafast"; import type { SQL, SQLable } from "pg-sql2"; import { $$toSQL, sql } from "pg-sql2"; -import { TYPES } from "../index.js"; -import type { PgCodec } from "../interfaces.js"; - export type PgWhereConditionSpec = | SQL | PgWhereConditionAttributeSpec; @@ -19,47 +15,42 @@ export interface PgWhereConditionAttributeSpec { export type PgHavingConditionSpec<_TAttribute extends string> = SQL; // | ... -/** @deprecated Use DataplanPg.PgConditionStepExtensions instead */ -export type PgConditionStepExtensions = DataplanPg.PgConditionStepExtensions; - -export interface PgConditionCapableParentStep extends BaseStep { +export interface PgConditionCapableParent { alias: SQL; - placeholder($step: ExecutableStep, codec: PgCodec): SQL; where(condition: PgWhereConditionSpec): void; having?(condition: PgHavingConditionSpec): void; } -type PgConditionStepModeExists = { +type PgConditionModeExists = { mode: "EXISTS"; tableExpression: SQL; alias?: string; - $equals?: ExecutableStep; + equals?: boolean; }; -export type PgConditionStepResolvedMode = +export type PgConditionResolvedMode = | { mode: "PASS_THRU" } | { mode: "AND" } | { mode: "OR" } | { mode: "NOT" } - | PgConditionStepModeExists; + | PgConditionModeExists; -export type PgConditionStepMode = +export type PgConditionMode = | "PASS_THRU" | "AND" | "OR" | "NOT" - | PgConditionStepResolvedMode; + | PgConditionResolvedMode; -export class PgConditionStep< - TParentStep extends - PgConditionCapableParentStep = PgConditionCapableParentStep, +export class PgCondition< + TParent extends PgConditionCapableParent = PgConditionCapableParent, > - extends ModifierStep - implements PgConditionCapableParentStep, SQLable + extends Modifier + implements PgConditionCapableParent, SQLable { static $$export = { moduleName: "@dataplan/pg", - exportName: "PgConditionStep", + exportName: "PgCondition", }; private conditions: PgWhereConditionSpec[] = []; @@ -67,15 +58,15 @@ export class PgConditionStep< public readonly alias: SQL; - public extensions: PgConditionStepExtensions = Object.create(null); - private mode: PgConditionStepResolvedMode; + public extensions: DataplanPg.PgConditionExtensions = Object.create(null); + private mode: PgConditionResolvedMode; constructor( - $parent: TParentStep, + parent: TParent, private isHaving = false, - mode: PgConditionStepMode = "PASS_THRU", + mode: PgConditionMode = "PASS_THRU", ) { - super($parent); + super(parent); if (typeof mode === "string") { this.mode = { mode }; } else { @@ -86,7 +77,7 @@ export class PgConditionStep< case "AND": case "OR": case "NOT": { - this.alias = $parent.alias; + this.alias = parent.alias; break; } case "EXISTS": { @@ -97,27 +88,27 @@ export class PgConditionStep< } public toStringMeta(): string { - return `${(this.$parent as any).id}/${this.mode.mode}`; + return `${(this.parent as any).id}/${this.mode.mode}`; } orPlan() { - return new PgConditionStep(this, this.isHaving, "OR"); + return new PgCondition(this, this.isHaving, "OR"); } andPlan() { - return new PgConditionStep(this, this.isHaving, "AND"); + return new PgCondition(this, this.isHaving, "AND"); } notPlan() { - return new PgConditionStep(this, this.isHaving, "NOT"); + return new PgCondition(this, this.isHaving, "NOT"); } - existsPlan(options: Omit) { + existsPlan(options: Omit) { if (this.isHaving) { // Is this true? throw new Error(`EXISTS inside having is currently unsupported`); } - return new PgConditionStep(this, this.isHaving, { + return new PgCondition(this, this.isHaving, { ...options, mode: "EXISTS", }); @@ -137,10 +128,6 @@ export class PgConditionStep< this.havingConditions.push(condition); } - placeholder($step: ExecutableStep, codec: PgCodec): SQL { - return this.$parent.placeholder($step, codec); - } - private transform(conditions: PgWhereConditionSpec[]): SQL | null { const sqlCondition = pgWhereConditionSpecListToSQL( this.alias, @@ -168,11 +155,8 @@ export class PgConditionStep< select 1 from ${this.mode.tableExpression} as ${this.alias} where ${sqlCondition}`})`; - if (this.mode.$equals) { - return sql`${sqlExists} = ${this.placeholder( - this.mode.$equals, - TYPES.boolean, - )}`; + if (this.mode.equals != null) { + return sql`${sqlExists} = ${this.mode.equals ? sql.true : sql.false}`; } else { // Assume true return sqlExists; @@ -187,28 +171,28 @@ where ${sqlCondition}`})`; apply(): void { if (this.isHaving) { - if (!this.$parent.having) { - throw new Error(`${this.$parent} doesn't support 'having'`); + if (!this.parent.having) { + throw new Error(`${this.parent} doesn't support 'having'`); } if (this.mode.mode === "PASS_THRU") { this.havingConditions.forEach((condition) => { - this.$parent.having!(condition); + this.parent.having!(condition); }); } else { const frag = this.transform(this.havingConditions); if (frag) { - this.$parent.having!(frag); + this.parent.having!(frag); } } } else { if (this.mode.mode === "PASS_THRU") { this.conditions.forEach((condition) => { - this.$parent.where(condition); + this.parent.where(condition); }); } else { const frag = this.transform(this.conditions); if (frag) { - this.$parent.where(frag); + this.parent.where(frag); } } } diff --git a/grafast/dataplan-pg/src/steps/pgCursor.ts b/grafast/dataplan-pg/src/steps/pgCursor.ts index 4a33a28beb..6763423999 100644 --- a/grafast/dataplan-pg/src/steps/pgCursor.ts +++ b/grafast/dataplan-pg/src/steps/pgCursor.ts @@ -1,5 +1,5 @@ import type { ExecutableStep, UnbatchedExecutionExtra } from "grafast"; -import { UnbatchedExecutableStep } from "grafast"; +import { UnbatchedStep } from "grafast"; import type { PgCodec } from "../index.js"; import type { PgSelectSingleStep } from "./pgSelectSingle.js"; @@ -20,7 +20,7 @@ export interface PgCursorDetails { */ export class PgCursorStep< TStep extends PgSelectSingleStep | PgUnionAllSingleStep, -> extends UnbatchedExecutableStep { +> extends UnbatchedStep { static $$export = { moduleName: "@dataplan/pg", exportName: "PgCursorStep", diff --git a/grafast/dataplan-pg/src/steps/pgDeleteSingle.ts b/grafast/dataplan-pg/src/steps/pgDeleteSingle.ts index ae5d7cc135..e99671fb38 100644 --- a/grafast/dataplan-pg/src/steps/pgDeleteSingle.ts +++ b/grafast/dataplan-pg/src/steps/pgDeleteSingle.ts @@ -1,21 +1,28 @@ import type { ExecutionDetails, GrafastResultsList, + Maybe, PromiseOrDirect, } from "grafast"; -import { ExecutableStep, exportAs, isDev, SafeError } from "grafast"; +import { access, exportAs, isDev, SafeError, Step } from "grafast"; import type { SQL, SQLRawValue } from "pg-sql2"; -import sql from "pg-sql2"; +import sql, { $$toSQL } from "pg-sql2"; import type { PgCodecAttribute } from "../codecs.js"; -import type { PgResource, PgResourceUnique } from "../index.js"; +import type { + PgCodecWithAttributes, + PgResource, + PgResourceUnique, +} from "../index.js"; import { inspect } from "../inspect.js"; import type { GetPgResourceAttributes, GetPgResourceCodec, GetPgResourceUniques, PgCodec, + PgQueryBuilder, PlanByUniques, + ReadonlyArrayOrDirect, } from "../interfaces.js"; import type { PgClassExpressionStep } from "./pgClassExpression.js"; import { pgClassExpression } from "./pgClassExpression.js"; @@ -41,7 +48,7 @@ interface PgDeletePlanFinalizeResults { */ export class PgDeleteSingleStep< TResource extends PgResource = PgResource, -> extends ExecutableStep { +> extends Step { static $$export = { moduleName: "@dataplan/pg", exportName: "PgDeleteSingleStep", @@ -101,6 +108,8 @@ export class PgDeleteSingleStep< */ private selects: Array = []; + private applyDepIds: number[] = []; + constructor( resource: TResource, getBy: PlanByUniques< @@ -204,6 +213,10 @@ export class PgDeleteSingleStep< return colPlan as any; } + public getMeta(key: string) { + return access(this, ["m", key]); + } + public record(): PgClassExpressionStep< GetPgResourceCodec, TResource @@ -237,6 +250,14 @@ export class PgDeleteSingleStep< return this.selects.push(fragment) - 1; } + apply( + $step: Step< + ReadonlyArrayOrDirect> + >, + ) { + this.applyDepIds.push(this.addUnaryDependency($step)); + } + /** * `execute` will always run as a root-level query. In future we'll implement a * `toSQL` method that allows embedding this plan within another SQL plan... @@ -253,18 +274,39 @@ export class PgDeleteSingleStep< indexMap, values, }: ExecutionDetails): Promise> { - if (!this.finalizeResults) { + const { alias, contextId, finalizeResults } = this; + if (!finalizeResults) { throw new Error("Cannot execute PgSelectStep before finalizing it."); } - const { text, rawSqlValues, queryValueDetailsBySymbol } = - this.finalizeResults; + const { text, rawSqlValues, queryValueDetailsBySymbol } = finalizeResults; // We must execute each mutation on its own, but we can at least do so in // parallel. Note we return a list of promises, each may reject or resolve // without causing the others to reject. - const contextDep = values[this.contextId]; + const contextDep = values[contextId]; return indexMap>(async (i) => { const context = contextDep.at(i); + + const meta = Object.create(null); + const queryBuilder: PgDeleteSingleQueryBuilder = { + alias, + [$$toSQL]() { + return alias; + }, + setMeta(key, value) { + meta[key] = value; + }, + }; + + for (const applyDepId of this.applyDepIds) { + const val = values[applyDepId].unaryValue(); + if (Array.isArray(val)) { + val.forEach((v) => v?.(queryBuilder)); + } else { + val?.(queryBuilder); + } + } + const sqlValues = queryValueDetailsBySymbol.size ? rawSqlValues.map((v) => { if (typeof v === "symbol") { @@ -284,16 +326,14 @@ export class PgDeleteSingleStep< text, values: sqlValues, }); - return ( - rows[0] ?? - (rowCount === 0 - ? Promise.reject( - new Error( - `No values were deleted in collection '${this.resource.name}' because no values you can delete were found matching these criteria.`, - ), - ) - : Object.create(null)) - ); + if (rowCount === 0) { + return Promise.reject( + new Error( + `No values were deleted in collection '${this.resource.name}' because no values you can delete were found matching these criteria.`, + ), + ); + } + return { __proto__: null, m: meta, t: rows[0] ?? [] }; }); } @@ -394,3 +434,17 @@ export function pgDeleteSingle< return new PgDeleteSingleStep(resource, getBy); } exportAs("@dataplan/pg", pgDeleteSingle, "pgDeleteSingle"); + +export interface PgDeleteSingleQueryBuilder< + _TResource extends PgResource< + any, + PgCodecWithAttributes, + any, + any, + any + > = PgResource, +> extends PgQueryBuilder {} + +type PgDeleteSingleQueryBuilderCallback = ( + qb: PgDeleteSingleQueryBuilder, +) => void; diff --git a/grafast/dataplan-pg/src/steps/pgInsertSingle.ts b/grafast/dataplan-pg/src/steps/pgInsertSingle.ts index 666105f2ec..c749887141 100644 --- a/grafast/dataplan-pg/src/steps/pgInsertSingle.ts +++ b/grafast/dataplan-pg/src/steps/pgInsertSingle.ts @@ -1,42 +1,35 @@ import type { ExecutionDetails, GrafastResultsList, + Maybe, PromiseOrDirect, - SetterCapableStep, - SetterStep, + Setter, + SetterCapable, } from "grafast"; -import { ExecutableStep, exportAs, isDev, setter } from "grafast"; -import type { SQL, SQLable, SQLRawValue } from "pg-sql2"; +import { access, exportAs, isDev, setter, Step } from "grafast"; +import type { SQL, SQLable } from "pg-sql2"; import sql, { $$toSQL } from "pg-sql2"; import type { PgCodecAttribute } from "../codecs.js"; -import type { PgResource } from "../index.js"; +import { sqlValueWithCodec } from "../codecs.js"; +import type { PgResource } from "../datasource.js"; import { inspect } from "../inspect.js"; import type { GetPgResourceAttributes, GetPgResourceCodec, + ObjectForResource, PgCodec, - PgTypedExecutableStep, + PgCodecWithAttributes, + PgQueryBuilder, + PgTypedStep, + ReadonlyArrayOrDirect, } from "../interfaces.js"; import type { PgClassExpressionStep } from "./pgClassExpression.js"; import { pgClassExpression } from "./pgClassExpression.js"; -const EMPTY_MAP = new Map(); - -type QueryValueDetailsBySymbol = Map< - symbol, - { depId: number; processor: (value: any) => SQLRawValue } ->; - interface PgInsertSinglePlanFinalizeResults { - /** The SQL query text */ - text: string; - - /** The values to feed into the query */ - rawSqlValues: ReadonlyArray; - - /** When we see the given symbol in the SQL values, what dependency do we replace it with? */ - queryValueDetailsBySymbol: QueryValueDetailsBySymbol; + table: SQL; + returning: SQL; } /** @@ -45,13 +38,12 @@ interface PgInsertSinglePlanFinalizeResults { export class PgInsertSingleStep< TResource extends PgResource = PgResource, > - extends ExecutableStep< + extends Step< unknown[] // tuple depending on what's selected > implements - SetterCapableStep<{ - [key in keyof GetPgResourceAttributes & - string]: ExecutableStep; + SetterCapable<{ + [key in keyof GetPgResourceAttributes & string]: Step; }>, SQLable { @@ -114,14 +106,14 @@ export class PgInsertSingleStep< */ private selects: Array = []; + private applyDepIds: number[] = []; + constructor( resource: TResource, attributes?: { [key in keyof GetPgResourceAttributes]?: - | PgTypedExecutableStep< - GetPgResourceAttributes[key]["codec"] - > - | ExecutableStep; + | PgTypedStep[key]["codec"]> + | Step; }, ) { super(); @@ -136,7 +128,7 @@ export class PgInsertSingleStep< if (value) { this.set( key as keyof GetPgResourceAttributes, - value as ExecutableStep, + value as Step, ); } }); @@ -149,7 +141,7 @@ export class PgInsertSingleStep< set>( name: TKey, - value: ExecutableStep, // | PgTypedExecutableStep + value: Step, // | PgTypedStep ): void { if (this.locked) { throw new Error("Cannot set after plan is locked."); @@ -174,21 +166,6 @@ export class PgInsertSingleStep< this.attributes.push({ name, depId, pgCodec }); } - setPlan(): SetterStep< - { - [key in keyof GetPgResourceAttributes & - string]: ExecutableStep; - }, - this - > { - if (this.locked) { - throw new Error( - `${this}: cannot set values once plan is locked ('setPlan')`, - ); - } - return setter(this); - } - /** * Returns a plan representing a named attribute (e.g. column) from the newly * inserted row. @@ -242,6 +219,10 @@ export class PgInsertSingleStep< return colPlan as any; } + public getMeta(key: string) { + return access(this, ["m", key]); + } + public record(): PgClassExpressionStep< GetPgResourceCodec, TResource @@ -275,6 +256,14 @@ export class PgInsertSingleStep< return this.selects.push(fragment) - 1; } + apply( + $step: Step< + ReadonlyArrayOrDirect> + >, + ) { + this.applyDepIds.push(this.addUnaryDependency($step)); + } + /** * `execute` will always run as a root-level query. In future we'll implement a * `toSQL` method that allows embedding this plan within another SQL plan... @@ -291,37 +280,102 @@ export class PgInsertSingleStep< indexMap, values, }: ExecutionDetails): Promise> { - if (!this.finalizeResults) { + const { resource, contextId, finalizeResults, alias } = this; + if (!finalizeResults) { throw new Error("Cannot execute PgSelectStep before finalizing it."); } - const { text, rawSqlValues, queryValueDetailsBySymbol } = - this.finalizeResults; + const { table, returning } = finalizeResults; + const contextDep = values[contextId]; + /* + * NOTE: Though we'd like to do bulk inserts, there's no way of us + * reliably linking the data back up again given users might: + * + * - rely on auto-generated primary keys + * - have triggers manipulating the data so we can't match it back up + * + * Currently it seems that the order returned from `insert into ... + * select ... order by ... returning ...` is the same order as the + * `order by` was, however this is not guaranteed in the documentation + * and as such cannot be relied upon. Further the pgsql-hackers list + * explicitly declined guaranteeing this behavior: + * + * https://www.postgresql.org/message-id/CAKFQuwbgdJ_xNn0YHWGR0D%2Bv%2B3mHGVqJpG_Ejt96KHoJjs6DkA%40mail.gmail.com + * + * So we have to make do with single inserts, alas. + */ // We must execute each mutation on its own, but we can at least do so in // parallel. Note we return a list of promises, each may reject or resolve // without causing the others to reject. return indexMap>(async (i) => { - const value = values.map((v) => v.at(i)); - const sqlValues = queryValueDetailsBySymbol.size - ? rawSqlValues.map((v) => { - if (typeof v === "symbol") { - const details = queryValueDetailsBySymbol.get(v); - if (!details) { - throw new Error(`Saw unexpected symbol '${inspect(v)}'`); - } - const val = value[details.depId]; - return val == null ? null : details.processor(val); - } else { - return v; - } - }) - : rawSqlValues; + const context = contextDep.at(i); + + const sqlAttributes: SQL[] = []; + const sqlValues: SQL[] = []; + for (const { depId, name, pgCodec } of this.attributes) { + const attVal = values[depId].at(i); + // `null` is kept, `undefined` is skipped + if (attVal !== undefined) { + const sqlIdent = sql.identifier(name as string); + const sqlVal = sqlValueWithCodec(attVal, pgCodec); + sqlAttributes.push(sqlIdent); + sqlValues.push(sqlVal); + } + } + + const meta = Object.create(null); + const queryBuilder: PgInsertSingleQueryBuilder = { + alias, + [$$toSQL]() { + return alias; + }, + setMeta(key, value) { + meta[key] = value; + }, + set(name, attVal) { + const pgCodec = resource.codec.attributes[name]?.codec; + if (!pgCodec) { + throw new Error(`Attribute ${name} not recognized on ${resource}`); + } + const sqlIdent = sql.identifier(name as string); + const sqlVal = sqlValueWithCodec(attVal, pgCodec); + sqlAttributes.push(sqlIdent); + sqlValues.push(sqlVal); + }, + setBuilder() { + return setter(this); + }, + }; + + for (const applyDepId of this.applyDepIds) { + const val = values[applyDepId].unaryValue(); + if (Array.isArray(val)) { + val.forEach((v) => v?.(queryBuilder)); + } else { + val?.(queryBuilder); + } + } + + let compileResult: ReturnType; + if (sqlAttributes.length > 0) { + // This is our common path + const attributes = sql.join(sqlAttributes, ", "); + const values = sql.join(sqlValues, ", "); + const query = sql`insert into ${table} (${attributes}) values (${values})${returning};`; + compileResult = sql.compile(query); + } else { + // No columns to insert?! Odd... but okay. + const query = sql`insert into ${table} default values${returning};`; + compileResult = sql.compile(query); + } + + const { text, values: stmtValues } = compileResult; const { rows } = await this.resource.executeMutation({ - context: value[this.contextId], + context, text, - values: sqlValues, + values: stmtValues, }); - return rows[0] ?? Object.create(null); + return { __proto__: null, m: meta, t: rows[0] ?? [] }; }); } @@ -347,65 +401,10 @@ export class PgInsertSingleStep< sql.join(fragmentsWithAliases, ",\n"), )}` : sql.blank; - - /* - * NOTE: Though we'd like to do bulk inserts, there's no way of us - * reliably linking the data back up again given users might: - * - * - rely on auto-generated primary keys - * - have triggers manipulating the data so we can't match it back up - * - * Currently it seems that the order returned from `insert into ... - * select ... order by ... returning ...` is the same order as the - * `order by` was, however this is not guaranteed in the documentation - * and as such cannot be relied upon. Further the pgsql-hackers list - * explicitly declined guaranteeing this behavior: - * - * https://www.postgresql.org/message-id/CAKFQuwbgdJ_xNn0YHWGR0D%2Bv%2B3mHGVqJpG_Ejt96KHoJjs6DkA%40mail.gmail.com - * - * So we have to make do with single inserts, alas. - */ - const attributesCount = this.attributes.length; - if (attributesCount > 0) { - // This is our common path - const sqlAttributes: SQL[] = []; - const valuePlaceholders: SQL[] = []; - const queryValueDetailsBySymbol: QueryValueDetailsBySymbol = new Map(); - for (let i = 0; i < attributesCount; i++) { - const { name, depId, pgCodec } = this.attributes[i]; - sqlAttributes[i] = sql.identifier(name as string); - const symbol = Symbol(name as string); - valuePlaceholders[i] = sql`${sql.value( - // THIS IS A DELIBERATE HACK - we will be replacing this symbol with - // a value before executing the query. - symbol as any, - )}::${pgCodec.sqlType}`; - queryValueDetailsBySymbol.set(symbol, { - depId, - processor: pgCodec.toPg, - }); - } - const attributes = sql.join(sqlAttributes, ", "); - const values = sql.join(valuePlaceholders, ", "); - const query = sql`insert into ${table} (${attributes}) values (${values})${returning};`; - const { text, values: rawSqlValues } = sql.compile(query); - - this.finalizeResults = { - text, - rawSqlValues, - queryValueDetailsBySymbol, - }; - } else { - // No columns to insert?! Odd... but okay. - const query = sql`insert into ${table} default values${returning};`; - const { text, values: rawSqlValues } = sql.compile(query); - - this.finalizeResults = { - text, - rawSqlValues, - queryValueDetailsBySymbol: EMPTY_MAP, - }; - } + this.finalizeResults = { + table, + returning, + }; } super.finalize(); @@ -424,10 +423,31 @@ export function pgInsertSingle< resource: TResource, attributes?: { [key in keyof GetPgResourceAttributes]?: - | PgTypedExecutableStep[key]["codec"]> - | ExecutableStep; + | PgTypedStep[key]["codec"]> + | Step; }, ): PgInsertSingleStep { return new PgInsertSingleStep(resource, attributes); } exportAs("@dataplan/pg", pgInsertSingle, "pgInsertSingle"); + +export interface PgInsertSingleQueryBuilder< + TResource extends PgResource< + any, + PgCodecWithAttributes, + any, + any, + any + > = PgResource, +> extends PgQueryBuilder, + SetterCapable> { + set>( + key: TAttributeName, + value: ObjectForResource[TAttributeName], + ): void; + setBuilder(): Setter, this>; +} + +type PgInsertSingleQueryBuilderCallback = ( + qb: PgInsertSingleQueryBuilder, +) => void; diff --git a/grafast/dataplan-pg/src/steps/pgPageInfo.ts b/grafast/dataplan-pg/src/steps/pgPageInfo.ts index ff8d69e5c4..72d72102ca 100644 --- a/grafast/dataplan-pg/src/steps/pgPageInfo.ts +++ b/grafast/dataplan-pg/src/steps/pgPageInfo.ts @@ -11,7 +11,7 @@ import { first, lambda, last, - UnbatchedExecutableStep, + UnbatchedStep, } from "grafast"; import type { PgCursorStep } from "./pgCursor.js"; @@ -38,7 +38,7 @@ const EMPTY_OBJECT = Object.freeze(Object.create(null)); export class PgPageInfoStep< TStep extends PgSelectStep | PgUnionAllStep, > - extends UnbatchedExecutableStep + extends UnbatchedStep implements PageInfoCapableStep { static $$export = { diff --git a/grafast/dataplan-pg/src/steps/pgPolymorphic.ts b/grafast/dataplan-pg/src/steps/pgPolymorphic.ts index de81dd1b31..8b6df00ced 100644 --- a/grafast/dataplan-pg/src/steps/pgPolymorphic.ts +++ b/grafast/dataplan-pg/src/steps/pgPolymorphic.ts @@ -9,7 +9,7 @@ import { isDev, polymorphicWrap, SafeError, - UnbatchedExecutableStep, + UnbatchedStep, } from "grafast"; import type { GraphQLObjectType } from "grafast/graphql"; @@ -45,7 +45,7 @@ export class PgPolymorphicStep< TTypeSpecifierStep extends ExecutableStep = ExecutableStep, > - extends UnbatchedExecutableStep + extends UnbatchedStep implements PolymorphicStep { static $$export = { @@ -82,12 +82,13 @@ export class PgPolymorphicStep< }) as any; } - itemPlan(): TItemStep { - return this.getDep(this.itemStepId); + private itemPlan(): TItemStep { + return this.getDepOptions(this.itemStepId).step; } - typeSpecifierPlan(): TTypeSpecifierStep { - return this.getDep(this.typeSpecifierStepId); + private typeSpecifierPlan(): TTypeSpecifierStep { + return this.getDepOptions(this.typeSpecifierStepId) + .step; } planForType(type: GraphQLObjectType): ExecutableStep { @@ -101,7 +102,9 @@ export class PgPolymorphicStep< ).join("', '")}'`, ); } - return spec.plan(this.typeSpecifierPlan(), this.itemPlan()); + const $typeSpecifier = this.typeSpecifierPlan(); + const $item = this.itemPlan(); + return spec.plan($typeSpecifier, $item); } private getTypeNameFromSpecifier(specifier: TTypeSpecifier) { diff --git a/grafast/dataplan-pg/src/steps/pgSelect.ts b/grafast/dataplan-pg/src/steps/pgSelect.ts index 85b10b0556..faeb43f237 100644 --- a/grafast/dataplan-pg/src/steps/pgSelect.ts +++ b/grafast/dataplan-pg/src/steps/pgSelect.ts @@ -3,11 +3,13 @@ import debugFactory from "debug"; import type { ConnectionCapableStep, ConnectionStep, + ExecutableStep, ExecutionDetails, GrafastResultsList, LambdaStep, Maybe, PromiseOrDirect, + UnbatchedExecutionExtra, } from "grafast"; import { __InputListStep, @@ -17,7 +19,7 @@ import { __TrackedValueStep, access, arrayOfLength, - ExecutableStep, + ConstantStep, exportAs, first, isAsyncIterable, @@ -25,13 +27,19 @@ import { isPromiseLike, reverseArray, SafeError, + Step, + UnbatchedStep, } from "grafast"; import type { SQL, SQLRawValue } from "pg-sql2"; import sql, { $$symbolToIdentifier, $$toSQL, arraysMatch } from "pg-sql2"; import type { PgCodecAttributes } from "../codecs.js"; -import { listOfCodec, TYPES } from "../codecs.js"; -import type { PgResource, PgResourceUnique } from "../datasource.js"; +import { listOfCodec, sqlValueWithCodec, TYPES } from "../codecs.js"; +import type { + PgResource, + PgResourceParameter, + PgResourceUnique, +} from "../datasource.js"; import type { PgExecutorContextPlans, PgExecutorInput } from "../executor.js"; import type { GetPgResourceAttributes, @@ -41,8 +49,11 @@ import type { PgCodecRelation, PgGroupSpec, PgOrderSpec, + PgQueryBuilder, + PgSelectQueryBuilderCallback, PgSQLCallbackOrDirect, - PgTypedExecutableStep, + PgTypedStep, + ReadonlyArrayOrDirect, } from "../interfaces.js"; import { PgLocker } from "../pgLocker.js"; import type { PgClassExpressionStep } from "./pgClassExpression.js"; @@ -50,7 +61,7 @@ import type { PgHavingConditionSpec, PgWhereConditionSpec, } from "./pgCondition.js"; -import { PgConditionStep } from "./pgCondition.js"; +import { PgCondition } from "./pgCondition.js"; import type { PgCursorDetails } from "./pgCursor.js"; import type { PgPageInfoStep } from "./pgPageInfo.js"; import { pgPageInfo } from "./pgPageInfo.js"; @@ -71,7 +82,7 @@ import { } from "./pgStmt.js"; import { validateParsedCursor } from "./pgValidateParsedCursor.js"; -export type PgSelectParsedCursorStep = LambdaStep; +export type PgSelectParsedCursorStep = LambdaStep; // Maximum identifier length in Postgres is 63 chars, so trim one off. (We // could do base64... but meh.) @@ -85,6 +96,7 @@ const debugPlanVerbose = debugPlan.extend("verbose"); const EMPTY_ARRAY: ReadonlyArray = Object.freeze([]); const NO_ROWS = Object.freeze({ + m: Object.create(null), hasMore: false, items: [], } as PgSelectStepResult); @@ -110,24 +122,25 @@ type PgSelectScopedPlanJoin = PgSQLCallbackOrDirect; export type PgSelectIdentifierSpec = | { - step: ExecutableStep; + step: Step; codec: PgCodec; matches: (alias: SQL) => SQL; } | { - step: PgTypedExecutableStep; + step: PgTypedStep; codec?: PgCodec; matches: (alias: SQL) => SQL; }; export type PgSelectArgumentSpec = | { - step: ExecutableStep; + step: Step; pgCodec: PgCodec; name?: string; } | { - step: PgTypedExecutableStep; + step: PgTypedStep; + pgCodec?: never; name?: string; }; @@ -135,6 +148,25 @@ export interface PgSelectArgumentDigest { position?: number; name?: string; placeholder: SQL; + step?: never; +} + +interface PgSelectArgumentBasics { + position?: number; + name?: string; +} +interface PgSelectArgumentPlaceholder extends PgSelectArgumentBasics { + placeholder: SQL; + step?: never; + depId?: never; +} +interface PgSelectArgumentUnaryStep extends PgSelectArgumentBasics { + placeholder?: never; + step: ExecutableStep; +} +interface PgSelectArgumentDepId extends PgSelectArgumentBasics { + placeholder?: never; + depId: number; } interface QueryValue { @@ -143,7 +175,7 @@ interface QueryValue { alreadyEncoded: boolean; } -function assertSensible(step: ExecutableStep): void { +function assertSensible(step: Step): void { if (step instanceof PgSelectStep) { throw new Error( "You passed a PgSelectStep as an identifier, perhaps you forgot to add `.record()`?", @@ -186,6 +218,8 @@ export interface PgSelectOptions< */ forceIdentity?: boolean; + parameters?: PgResourceParameter[]; + /** * If your `from` (or resource.from if omitted) is a function, the arguments * to pass to the function. @@ -225,7 +259,7 @@ export interface PgSelectOptions< joinAsLateral?: boolean; /** @internal @experimental */ - context?: ExecutableStep>; + context?: Step>; /** @internal */ _internalCloneSymbol?: symbol | string; /** @internal */ @@ -237,6 +271,8 @@ export interface PgSelectOptions< * the relevant queryValues. This saves repeating this work at execution time. */ interface QueryBuildResult { + meta: Record; + // The SQL query text text: string; @@ -273,6 +309,7 @@ interface PgSelectStepResult { /** a tuple based on what is selected at runtime */ items: ReadonlyArray | AsyncIterable; cursorDetails?: PgCursorDetails; + m: Record; } /** @@ -292,7 +329,13 @@ export class PgSelectStep< ConnectionCapableStep< PgSelectSingleStep, PgSelectParsedCursorStep - > + >, + /** + * @internal PgSelectStep might not always implement PgSelectQueryBuilder; + * we only use it for internal optimizations (specifically around + * `.apply(...)`). + */ + PgSelectQueryBuilder { static $$export = { moduleName: "@dataplan/pg", @@ -302,9 +345,7 @@ export class PgSelectStep< isSyncAndSafe = false; // FROM - private readonly from: - | SQL - | ((...args: Array) => SQL); + private readonly from: SQL; private readonly hasImplicitOrder: boolean; /** @@ -380,6 +421,8 @@ export class PgSelectStep< // Connection private connectionDepId: number | null = null; + private applyDepIds: number[] = []; + // -------------------- /** @@ -402,11 +445,6 @@ export class PgSelectStep< */ public forceIdentity: boolean; - /** - * If the resource is a function, this is the names of the arguments to pass - */ - private arguments: ReadonlyArray; - protected placeholders: Array = []; protected deferreds: Array = []; private fixedPlaceholderValues = new Map(); @@ -461,6 +499,8 @@ export class PgSelectStep< protected locker: PgLocker = new PgLocker(this); + private _meta: Record = Object.create(null); + static clone>( cloneFrom: PgSelectStep, mode: PgSelectMode = cloneFrom.mode, @@ -504,8 +544,8 @@ export class PgSelectStep< } }); + $clone.applyDepIds = [...cloneFrom.applyDepIds]; $clone.identifierMatches = [...cloneFrom.identifierMatches]; - $clone.arguments = [...cloneFrom.arguments]; $clone.isTrusted = cloneFrom.isTrusted; // TODO: should `isUnique` only be set if mode matches? $clone.isUnique = cloneFrom.isUnique; @@ -567,6 +607,7 @@ export class PgSelectStep< super(); const { resource, + parameters = resource.parameters, identifiers, args: inArgs, from: inFrom = null, @@ -605,7 +646,6 @@ export class PgSelectStep< this.name = name ?? resource.name; this.symbol = _internalCloneSymbol ?? Symbol(this.name); this.alias = _internalCloneAlias ?? sql.identifier(this.symbol); - this.from = inFrom ?? resource.from; this.hasImplicitOrder = inHasImplicitOrder ?? resource.hasImplicitOrder; this.joinAsLateral = inJoinAsLateral ?? !!this.resource.parameters; this.forceIdentity = inForceIdentity; @@ -620,16 +660,13 @@ export class PgSelectStep< codec: PgCodec; _matches: PgSelectIdentifierSpec["matches"]; }[] = []; - let args: PgSelectArgumentDigest[] = []; - let argIndex: null | number = 0; identifiers.forEach((identifier) => { if (isDev) { assertSensible(identifier.step); } const { step, matches } = identifier; const codec = - identifier.codec || - (identifier.step as PgTypedExecutableStep).pgCodec; + identifier.codec || (identifier.step as PgTypedStep).pgCodec; identifierMatches.push({ expression: matches(this.alias), dependencyIndex: this.addDependency(step), @@ -637,14 +674,10 @@ export class PgSelectStep< _matches: matches, }); }); - if (inArgs != null) { - const { digests: newArgs, argIndex: newArgIndex } = - digestsFromArgumentSpecs(this, inArgs, args, argIndex); - args = newArgs; - argIndex = newArgIndex; - } this.identifierMatches = identifierMatches; - this.arguments = args; + + const ourFrom = inFrom ?? resource.from; + this.from = pgFromExpression(this, ourFrom, parameters, inArgs); } this.peerKey = this.resource.name; @@ -764,6 +797,10 @@ export class PgSelectStep< this.joins.push(this.scopedSQL(spec)); } + public getMeta(key: string) { + return access(this, ["m", key]); + } + /** * Select an SQL fragment, returning the index the result will have. * @@ -872,15 +909,6 @@ export class PgSelectStep< } } - wherePlan(): PgConditionStep { - if (this.locker.locked) { - throw new Error( - `${this}: cannot add conditions once plan is locked ('wherePlan')`, - ); - } - return new PgConditionStep(this); - } - groupBy(group: PgSQLCallbackOrDirect): void { this.locker.assertParameterUnlocked("groupBy"); if (this.mode !== "aggregate") { @@ -889,18 +917,6 @@ export class PgSelectStep< this.groups.push(this.scopedSQL(group)); } - havingPlan(): PgConditionStep { - if (this.locker.locked) { - throw new Error( - `${this}: cannot add having conditions once plan is locked ('havingPlan')`, - ); - } - if (this.mode !== "aggregate") { - throw new SafeError(`Cannot add having to a non-aggregate query`); - } - return new PgConditionStep(this, true); - } - having( rawCondition: PgSQLCallbackOrDirect< PgHavingConditionSpec & string> @@ -936,6 +952,16 @@ export class PgSelectStep< this.isOrderUnique = true; } + apply( + $step: Step>>, + ) { + if ($step instanceof ConstantStep) { + ($step.data as PgSelectQueryBuilderCallback)(this); + } else { + this.applyDepIds.push(this.addUnaryDependency($step)); + } + } + protected assertCursorPaginationAllowed(): void { if (this.mode === "aggregate") { throw new SafeError( @@ -961,7 +987,7 @@ export class PgSelectStep< return pgPageInfo($connectionPlan); } - public getCursorDetails(): ExecutableStep { + public getCursorDetails(): Step { this.needsCursor = true; return access(this, "cursorDetails"); } @@ -989,6 +1015,7 @@ export class PgSelectStep< stream, } = executionDetails; const { + meta, text, rawSqlValues, textForDeclare, @@ -1017,6 +1044,7 @@ export class PgSelectStep< hasSideEffects: this.hasSideEffects, name: this.name, alias: this.alias, + symbol: this.symbol, resource: this.resource, groups: this.groups, orders: this.orders, @@ -1029,8 +1057,10 @@ export class PgSelectStep< _symbolSubstitutes: this._symbolSubstitutes, from: this.from, joins: this.joins, - arguments: this.arguments, needsCursor: this.needsCursor, + applyDepIds: this.applyDepIds, + relationJoins: this.relationJoins, + meta: this._meta, }); if (first === 0 || last === 0) { return arrayOfLength(count, NO_ROWS); @@ -1091,6 +1121,7 @@ export class PgSelectStep< ? reverseArray(slicedRows) : slicedRows; return { + m: meta, items: orderedRows, hasMore, cursorDetails, @@ -1163,6 +1194,7 @@ export class PgSelectStep< } if (!initialFetchResult) { return { + m: meta, items: iterable, hasMore: false, cursorDetails, @@ -1211,6 +1243,7 @@ export class PgSelectStep< }, }; return { + m: meta, items: mergedGenerator, hasMore: false, cursorDetails, @@ -1256,9 +1289,6 @@ export class PgSelectStep< if (p.resource !== this.resource) { return false; } - if (p.from !== this.from) { - return false; - } // Check mode matches if (p.mode !== this.mode) { @@ -1302,6 +1332,27 @@ export class PgSelectStep< return false; } + // Check DEFERREDs match + if ( + !arraysMatch(this.deferreds, p.deferreds, (a, b) => { + const equivalent = a.dependencyIndex === b.dependencyIndex; + if (equivalent) { + if (a.symbol !== b.symbol) { + // Make symbols appear equivalent + symbolSubstitutes.set(a.symbol, b.symbol); + } + } + return equivalent; + }) + ) { + debugPlanVerbose( + "Refusing to deduplicate %c with %c because the deferreds don't match", + this, + p, + ); + return false; + } + const sqlIsEquivalent = (a: SQL, b: SQL) => sql.isEquivalent(a, b, options); @@ -1315,6 +1366,11 @@ export class PgSelectStep< return false; } + // Check FROM + if (!sqlIsEquivalent(p.from, this.from)) { + return false; + } + // Check SELECT matches if (!arraysMatch(this.selects, p.selects, sqlIsEquivalent)) { return false; @@ -1432,7 +1488,7 @@ export class PgSelectStep< } } - optimize(): ExecutableStep { + optimize(): Step { // In case we have any lock actions in future: this.lock(); @@ -1520,7 +1576,7 @@ export class PgSelectStep< return (isScalar ? $single.getSelfNamed() : $single) as any; } - row($row: ExecutableStep, options?: PgSelectSinglePlanOptions) { + row($row: Step, options?: PgSelectSinglePlanOptions) { return new PgSelectSingleStep(this, $row, options); } @@ -1538,7 +1594,7 @@ export class PgSelectStep< * be called by Grafast. */ listItem( - itemPlan: ExecutableStep, + itemPlan: Step, ): TResource extends PgResource< any, PgCodec, @@ -1561,11 +1617,20 @@ export class PgSelectStep< [$$toSQL]() { return this.alias; } + whereBuilder() { + return new PgCondition(this); + } + havingBuilder() { + return new PgCondition(this, true); + } + setMeta(key: string, value: unknown): void { + this._meta[key] = value; + } } export class PgSelectRowsStep< TResource extends PgResource = PgResource, -> extends ExecutableStep { +> extends Step { static $$export = { moduleName: "@dataplan/pg", exportName: "PgSelectRowsStep", @@ -1579,14 +1644,14 @@ export class PgSelectRowsStep< } public getClassStep(): PgSelectStep { - return this.getDep>(0); + return this.getDepOptions>(0).step; } - listItem(itemPlan: ExecutableStep) { + listItem(itemPlan: Step) { return this.getClassStep().listItem(itemPlan); } - public deduplicate(_peers: readonly ExecutableStep[]) { + public deduplicate(_peers: readonly Step[]) { // We don't have any properties, and dependencies is already checked, so we're the same as our kin. return _peers; } @@ -1694,7 +1759,7 @@ export function pgSelectFromRecords< >, TResource > - | ExecutableStep, + | Step, ): PgSelectStep { return new PgSelectStep({ resource, @@ -1722,42 +1787,253 @@ export function sqlFromArgDigests( } exportAs("@dataplan/pg", sqlFromArgDigests, "sqlFromArgDigests"); -export function digestsFromArgumentSpecs( - $placeholderable: { - placeholder(step: ExecutableStep, codec: PgCodec): SQL; +// Previously: digestsFromArgumentSpecs; now combined +export function pgFromExpression( + $target: { + getPgRoot(): Step & { + placeholder(step: Step, codec: PgCodec): SQL; + deferredSQL($step: Step): SQL; + }; }, - specs: PgSelectArgumentSpec[], - digests: PgSelectArgumentDigest[] = [], - initialArgIndex: number | null = 0, -): { digests: PgSelectArgumentDigest[]; argIndex: number | null } { - let argIndex: null | number = initialArgIndex; - for (const identifier of specs) { - if (isDev) { - assertSensible(identifier.step); + baseFrom: SQL | ((...args: readonly PgSelectArgumentDigest[]) => SQL), + inParameters: PgResourceParameter[] | undefined = undefined, + specs: ReadonlyArray = [], +): SQL { + if (typeof baseFrom !== "function") { + return baseFrom; + } + if (specs.length === 0) { + return baseFrom(); + } + if ( + specs.every( + (spec): spec is PgSelectArgumentDigest => + "placeholder" in spec && spec.placeholder != null, + ) + ) { + return baseFrom(...specs); + } + const $placeholderable = $target.getPgRoot(); + let parameters: PgResourceParameter[]; + if (!inParameters) { + parameters = []; + for (const spec of specs) { + if (spec.step) { + if (spec.pgCodec) { + parameters.push({ + name: spec.name ?? null, + codec: spec.pgCodec, + required: false, + }); + } else { + parameters.push({ + name: spec.name ?? null, + codec: spec.step.pgCodec, + required: false, + }); + } + } else { + throw new Error( + `Cannot use placeholder steps without passing accurate placeholders`, + ); + } } - const { step, name } = identifier; - const codec = - "pgCodec" in identifier ? identifier.pgCodec : identifier.step.pgCodec; - const placeholder = $placeholderable.placeholder(step, codec); - if (name !== undefined) { - argIndex = null; - digests.push({ - name, - placeholder, - }); + } else { + parameters = inParameters; + } + if (specs.length > parameters.length) { + throw new Error( + `Attempted to build function-like from expression for ${$placeholderable}, but insufficient parameter definitions (${parameters.length}) were provided for the arguments passed (${specs.length}).`, + ); + } + const digests: Array< + PgSelectArgumentPlaceholder | PgSelectArgumentUnaryStep + > = []; + for (const spec of specs) { + if (spec.step) { + if (isDev) { + assertSensible(spec.step); + } + const { step, name } = spec; + + const codec = "pgCodec" in spec ? spec.pgCodec : spec.step.pgCodec; + if (step.getAndFreezeIsUnary()) { + // It's a unary step + digests.push({ + name, + step, + }); + } else { + const placeholder = $placeholderable.placeholder(step, codec); + digests.push({ + name, + placeholder, + }); + } } else { - if (argIndex === null) { - throw new Error("Cannot have unnamed argument after named arguments"); + digests.push(spec); + } + } + return $placeholderable.withLayerPlan(() => + $placeholderable.deferredSQL( + new PgFromExpressionStep(baseFrom, parameters, digests), + ), + ); +} + +class PgFromExpressionStep extends UnbatchedStep { + private digests: ReadonlyArray< + PgSelectArgumentPlaceholder | PgSelectArgumentDepId + >; + private parameterByName: { + [argName: string]: PgResourceParameter; + }; + private indexAfterWhichAllArgsAreNamed: number; + public isSyncAndSafe = true; + constructor( + private from: (...args: PgSelectArgumentDigest[]) => SQL, + private parameters: PgResourceParameter[], + digests: ReadonlyArray< + PgSelectArgumentPlaceholder | PgSelectArgumentUnaryStep + >, + ) { + super(); + if (this.getAndFreezeIsUnary() !== true) { + throw new Error(`PgFromExpressionStep must be unary`); + } + this.parameterByName = Object.create(null); + let indexAfterWhichAllArgsAreNamed = 0; + for (let i = 0, l = parameters.length; i < l; i++) { + const param = parameters[i]; + if (param.name != null) { + this.parameterByName[param.name] = param; + } + // Note that `name = ''` counts as having no name. + if (!param.name) { + indexAfterWhichAllArgsAreNamed = i + 1; } - digests.push({ - position: argIndex++, - placeholder, - }); } + this.indexAfterWhichAllArgsAreNamed = indexAfterWhichAllArgsAreNamed; + this.digests = digests.map((digest) => { + if (digest.step) { + const { step, ...rest } = digest; + const depId = this.addDependency(digest.step); + return { ...rest, depId }; + } else { + return digest; + } + }); + } + + public deduplicate( + peers: readonly PgFromExpressionStep[], + ): readonly PgFromExpressionStep[] { + return peers.filter((p) => { + if (p.from !== this.from) { + return false; + } + if ( + !arraysMatch( + p.parameters, + this.parameters, + (a, b) => + a.name === b.name && + a.codec === b.codec && + a.notNull === b.notNull && + a.required === b.required && + a.extensions === b.extensions, + ) + ) { + return false; + } + if ( + !arraysMatch(p.digests, this.digests, (a, b) => { + return ( + a.name === b.name && + a.position === b.position && + a.depId === b.depId && + a.placeholder === b.placeholder + ); + }) + ) { + return false; + } + return true; + }); + } + + unbatchedExecute(_extra: UnbatchedExecutionExtra, ...deps: any[]): SQL { + /** + * If true, we can only use named parameters now. Set this if we skip an + * entry, or if the input has a name that doesn't match the parameter name. + */ + let namedOnly = false; + let argIndex = 0; + + const args: PgSelectArgumentDigest[] = []; + for ( + let digestIndex = 0, digestsCount = this.digests.length; + digestIndex < digestsCount; + digestIndex++ + ) { + const digest = this.digests[digestIndex]; + if ( + !namedOnly && + // Note that name can be the empty string, we treat that as "no name" + digest.name && + this.parameters[digestIndex].name !== digest.name + ) { + namedOnly = true; + } + if (namedOnly && !digest.name) { + throw new Error( + `Cannot have unnamed argument after named arguments at index ${digestIndex}`, + ); + } + const parameter = namedOnly + ? this.parameterByName[digest.name!] + : this.parameters[digestIndex]; + if (!parameter) { + throw new Error( + `Could not determine parameter for argument at index ${digestIndex}${ + digest.name ? ` (${digest.name})` : "" + }`, + ); + } + let sqlValue: SQL; + if (digest.depId != null) { + const dep = deps[digest.depId]; + if ( + dep === undefined && + (namedOnly || + (!parameter.required && + digestIndex >= this.indexAfterWhichAllArgsAreNamed - 1)) + ) { + namedOnly = true; + continue; + } + sqlValue = sqlValueWithCodec(dep ?? null, parameter.codec); + } else { + // It's a placeholder, always use it + sqlValue = digest.placeholder; + } + if (namedOnly) { + args.push({ + placeholder: sqlValue, + name: parameter.name!, + }); + } else { + args.push({ + placeholder: sqlValue, + position: argIndex++, + }); + } + } + return this.from(...args); } - return { digests, argIndex }; } -exportAs("@dataplan/pg", digestsFromArgumentSpecs, "digestsFromArgumentSpecs"); + +exportAs("@dataplan/pg", pgFromExpression, "pgFromExpression"); export function getFragmentAndCodecFromOrder( alias: SQL, @@ -1852,22 +2128,29 @@ interface PgSelectQueryInfo< readonly _symbolSubstitutes: ReadonlyMap; readonly selects: ReadonlyArray; - readonly from: SQL | ((...args: Array) => SQL); - readonly arguments: ReadonlyArray; + readonly from: SQL; readonly joins: ReadonlyArray; readonly conditions: ReadonlyArray; readonly orders: ReadonlyArray; + readonly relationJoins: ReadonlyMap< + keyof GetPgResourceRelations, + SQL + >; + readonly meta: { readonly [key: string]: any }; } interface MutablePgSelectQueryInfo< TResource extends PgResource = PgResource, > extends PgSelectQueryInfo, MutablePgStmtCommonQueryInfo { readonly selects: Array; + readonly joins: Array; readonly conditions: Array; readonly orders: Array; readonly groups: Array; readonly havingConditions: Array; isOrderUnique: boolean; + readonly relationJoins: Map, SQL>; + readonly meta: Record; } function buildTheQuery< @@ -1882,6 +2165,9 @@ function buildTheQuery< orders: [...rawInfo.orders], groups: [...rawInfo.groups], havingConditions: [...rawInfo.havingConditions], + relationJoins: new Map(rawInfo.relationJoins), + joins: [...rawInfo.joins], + meta: { __proto__: null, ...rawInfo.meta }, // Will be populated by applyConditionFromCursor cursorLower: null, @@ -1904,14 +2190,132 @@ function buildTheQuery< return info.selects.push(expression) - 1; } - // TODO: evaluate runtime orders, conditions, etc here + const meta = info.meta; + const queryBuilder: PgSelectQueryBuilder = { + alias: info.alias, + [$$toSQL]() { + return info.alias; + }, + setMeta(key, value) { + meta[key] = value; + }, + orderBy(spec) { + if (info.mode !== "aggregate") { + info.orders.push(spec); + } else { + // Throw it away? + // Maybe later we can use it in the aggregates themself - e.g. `array_agg(... order by )` + } + }, + setOrderIsUnique() { + info.isOrderUnique = true; + }, + singleRelation(relationIdentifier) { + // NOTE: this is almost an exact copy of the same method on PgSelectStep, + // except using `info`... We should harmonize them. + const relation = info.resource.getRelation( + relationIdentifier, + ) as PgCodecRelation; + if (!relation) { + throw new Error( + `${info.resource} does not have a relation named '${String( + relationIdentifier, + )}'`, + ); + } + if (!relation.isUnique) { + throw new Error( + `${info.resource} relation '${String( + relationIdentifier, + )}' is not unique so cannot be used with singleRelation`, + ); + } + + const { remoteResource, localAttributes, remoteAttributes } = relation; + + // Join to this relation if we haven't already + const cachedAlias = info.relationJoins.get(relationIdentifier); + if (cachedAlias) { + return cachedAlias; + } + const alias = sql.identifier(Symbol(relationIdentifier as string)); + if (typeof remoteResource.from === "function") { + throw new Error( + "Callback sources not currently supported via singleRelation", + ); + } + info.joins.push({ + type: "left", + from: remoteResource.from, + alias, + conditions: localAttributes.map( + (col, i) => + sql`${info.alias}.${sql.identifier( + col as string, + )} = ${alias}.${sql.identifier(remoteAttributes[i] as string)}`, + ), + }); + info.relationJoins.set(relationIdentifier, alias); + return alias; + }, + // TODO: where, whereBuilder, having, havingBuilder + where(condition) { + if (sql.isSQL(condition)) { + info.conditions.push(condition); + } else { + switch (condition.type) { + case "attribute": { + info.conditions.push( + condition.callback( + sql`${info.alias}.${sql.identifier(condition.attribute)}`, + ), + ); + break; + } + default: { + const never: never = condition.type; + console.error("Unsupported condition: ", never); + throw new Error(`Unsupported condition`); + } + } + } + }, + having(condition) { + if (info.mode !== "aggregate") { + throw new SafeError(`Cannot add having to a non-aggregate query`); + } + if (sql.isSQL(condition)) { + info.havingConditions.push(condition); + } else { + const never: never = condition; + console.error("Unsupported condition: ", never); + throw new Error(`Unsupported condition`); + } + }, + whereBuilder() { + return new PgCondition(this); + }, + havingBuilder() { + return new PgCondition(this, true); + }, + }; + + const { count, stream, values } = info.executionDetails; + + for (const applyDepId of info.applyDepIds) { + const val = values[applyDepId].unaryValue(); + if (Array.isArray(val)) { + val.forEach((v) => v?.(queryBuilder)); + } else { + val?.(queryBuilder); + } + } // beforeLock("orderBy"): Now the runtime orders/etc have been added, mutate `orders` to be unique makeOrderUniqueIfPossible(info); // afterLock("orderBy"): Now the runtime orders/etc have been performed, - const { count, stream, values } = info.executionDetails; const after = getUnary(values, info.afterStepId); const before = getUnary(values, info.beforeStepId); @@ -2227,6 +2631,7 @@ ${lateralText};`; } const identifierIndex = initialFetchIdentifierIndex; return { + meta, text, rawSqlValues, textForDeclare, @@ -2256,6 +2661,7 @@ ${lateralText};`; }, }); return { + meta, // This is a hack since this is the _only_ place we don't want // `text`; loosening the types would risk us forgetting in more // places (and cause us to do excessive type safety checks) so we @@ -2280,6 +2686,7 @@ ${lateralText};`; }, }); return { + meta, text, rawSqlValues, identifierIndex, @@ -2486,12 +2893,8 @@ function buildQuery>( } function buildFrom() { - const fromSql = - typeof info.from === "function" - ? info.from(...info.arguments) - : info.from; return { - sql: sql`\nfrom ${fromSql} as ${alias}${ + sql: sql`\nfrom ${info.from} as ${alias}${ resource.codec.attributes ? sql.blank : sql`(v)` }`, }; @@ -2632,3 +3035,30 @@ function buildOrderBy>( }), }; } + +export interface PgSelectQueryBuilder< + TResource extends PgResource = PgResource, +> extends PgQueryBuilder { + /** Instruct to add another order */ + orderBy(spec: PgOrderSpec): void; + /** Inform that the resulting order is now unique */ + setOrderIsUnique(): void; + /** Returns the SQL alias representing the table related to this relation */ + singleRelation< + TRelationName extends keyof GetPgResourceRelations & string, + >( + relationIdentifier: TRelationName, + ): SQL; + where( + condition: PgWhereConditionSpec< + keyof GetPgResourceAttributes & string + >, + ): void; + whereBuilder(): PgCondition; + having( + condition: PgHavingConditionSpec< + keyof GetPgResourceAttributes & string + >, + ): void; + havingBuilder(): PgCondition; +} diff --git a/grafast/dataplan-pg/src/steps/pgSelectSingle.ts b/grafast/dataplan-pg/src/steps/pgSelectSingle.ts index 21e2174a28..dfc80e603b 100644 --- a/grafast/dataplan-pg/src/steps/pgSelectSingle.ts +++ b/grafast/dataplan-pg/src/steps/pgSelectSingle.ts @@ -1,9 +1,5 @@ -import type { - EdgeCapableStep, - ExecutableStep, - UnbatchedExecutionExtra, -} from "grafast"; -import { exportAs, polymorphicWrap, UnbatchedExecutableStep } from "grafast"; +import type { EdgeCapableStep, Step, UnbatchedExecutionExtra } from "grafast"; +import { exportAs, polymorphicWrap, UnbatchedStep } from "grafast"; import type { GraphQLObjectType } from "grafast/graphql"; import type { SQL, SQLable } from "pg-sql2"; import sql, { $$toSQL } from "pg-sql2"; @@ -20,9 +16,10 @@ import type { GetPgResourceRelations, PgCodec, PgCodecRelation, + PgQueryRootStep, PgRegistry, PgSQLCallbackOrDirect, - PgTypedExecutableStep, + PgTypedStep, } from "../interfaces.js"; import { makeScopedSQL } from "../utils.js"; import type { PgClassExpressionStep } from "./pgClassExpression.js"; @@ -67,11 +64,11 @@ const CHEAP_ATTRIBUTE_TYPES = new Set([ export class PgSelectSingleStep< TResource extends PgResource = PgResource, > - extends UnbatchedExecutableStep< + extends UnbatchedStep< unknown[] /* What we return will be a tuple based on the values selected */ > implements - PgTypedExecutableStep< + PgTypedStep< TResource extends PgResource ? UCodec : never @@ -96,7 +93,7 @@ export class PgSelectSingleStep< constructor( $class: PgSelectStep, - $item: ExecutableStep, + $item: Step, private options: PgSelectSinglePlanOptions = Object.create(null), ) { super(); @@ -130,7 +127,7 @@ export class PgSelectSingleStep< } /** @internal */ - public getItemStep(): ExecutableStep { + public getItemStep(): Step { const plan = this.getDep(this.itemStepId); return plan; } @@ -282,6 +279,10 @@ export class PgSelectSingleStep< return colPlan as any; } + public getMeta(key: string) { + return this.getClassStep().getMeta(key); + } + /** * Returns a plan representing the result of an expression. */ @@ -310,15 +311,25 @@ export class PgSelectSingleStep< public scopedSQL = makeScopedSQL(this); - public placeholder($step: PgTypedExecutableStep): SQL; - public placeholder($step: ExecutableStep, codec: PgCodec): SQL; + public getPgRoot(): PgQueryRootStep { + return this.getClassStep(); + } + + /** @deprecated Use .getPgRoot().placeholder() */ + public placeholder($step: PgTypedStep): SQL; + /** @deprecated Use .getPgRoot().placeholder() */ + public placeholder($step: Step, codec: PgCodec): SQL; public placeholder( - $step: ExecutableStep | PgTypedExecutableStep, + $step: Step | PgTypedStep, overrideCodec?: PgCodec, ): SQL { return overrideCodec ? this.getClassStep().placeholder($step, overrideCodec) - : this.getClassStep().placeholder($step as PgTypedExecutableStep); + : this.getClassStep().placeholder($step as PgTypedStep); + } + + public deferredSQL($step: Step): SQL { + return this.getClassStep().deferredSQL($step); } private existingSingleRelation< @@ -461,7 +472,7 @@ export class PgSelectSingleStep< }); } - planForType(type: GraphQLObjectType): ExecutableStep { + planForType(type: GraphQLObjectType): Step { const poly = (this.resource.codec as PgCodec).polymorphism; if (poly?.mode === "single") { return this; @@ -631,8 +642,8 @@ export function pgSelectFromRecord< resource: TResource, $record: | PgClassExpressionStep, TResource> - | ExecutableStep<{ - [Attr in keyof TResource["codec"]["attributes"]]: ExecutableStep; + | Step<{ + [Attr in keyof TResource["codec"]["attributes"]]: Step; }>, ): PgSelectStep { return new PgSelectStep({ diff --git a/grafast/dataplan-pg/src/steps/pgSingleTablePolymorphic.ts b/grafast/dataplan-pg/src/steps/pgSingleTablePolymorphic.ts index 39719e204d..fb67c7f07f 100644 --- a/grafast/dataplan-pg/src/steps/pgSingleTablePolymorphic.ts +++ b/grafast/dataplan-pg/src/steps/pgSingleTablePolymorphic.ts @@ -5,7 +5,7 @@ import type { PolymorphicStep, PromiseOrDirect, } from "grafast"; -import { ExecutableStep, exportAs, polymorphicWrap } from "grafast"; +import { exportAs, polymorphicWrap, Step } from "grafast"; import type { GraphQLObjectType } from "grafast/graphql"; import type { PgResource } from "../datasource.js"; @@ -21,7 +21,7 @@ import type { PgSelectSingleStep } from "./pgSelectSingle.js"; export class PgSingleTablePolymorphicStep< TResource extends PgResource, > - extends ExecutableStep + extends Step implements PolymorphicStep { static $$export = { @@ -34,7 +34,7 @@ export class PgSingleTablePolymorphicStep< private rowStepId: number; constructor( - $typeName: ExecutableStep, + $typeName: Step, $row: PgSelectSingleStep, ) { super(); @@ -52,7 +52,7 @@ export class PgSingleTablePolymorphicStep< return peers; } - planForType(_type: GraphQLObjectType): ExecutableStep { + planForType(_type: GraphQLObjectType): Step { return this.rowPlan(); } @@ -76,7 +76,7 @@ export class PgSingleTablePolymorphicStep< export function pgSingleTablePolymorphic< TResource extends PgResource, >( - $typeName: ExecutableStep, + $typeName: Step, $row: PgSelectSingleStep, ): PgSingleTablePolymorphicStep { return new PgSingleTablePolymorphicStep($typeName, $row); diff --git a/grafast/dataplan-pg/src/steps/pgStmt.ts b/grafast/dataplan-pg/src/steps/pgStmt.ts index 4de00f42fc..6d5b2c2f93 100644 --- a/grafast/dataplan-pg/src/steps/pgStmt.ts +++ b/grafast/dataplan-pg/src/steps/pgStmt.ts @@ -1,17 +1,12 @@ import type { __InputStaticLeafStep, ExecutionDetails, Maybe } from "grafast"; -import { - access, - applyTransforms, - ExecutableStep, - lambda, - SafeError, -} from "grafast"; +import { access, applyTransforms, lambda, SafeError, Step } from "grafast"; import { type SQL, sql } from "pg-sql2"; import type { PgCodec, PgGroupSpec, - PgTypedExecutableStep, + PgQueryRootStep, + PgTypedStep, } from "../interfaces.js"; import type { PgLocker } from "../pgLocker.js"; import { makeScopedSQL } from "../utils.js"; @@ -48,7 +43,10 @@ export type PgStmtDeferredSQL = { const UNHANDLED_PLACEHOLDER = sql`(1/0) /* ERROR! Unhandled placeholder! */`; const UNHANDLED_DEFERRED = sql`(1/0) /* ERROR! Unhandled deferred! */`; -export abstract class PgStmtBaseStep extends ExecutableStep { +export abstract class PgStmtBaseStep + extends Step + implements PgQueryRootStep +{ static $$export = { moduleName: "@dataplan/pg", exportName: "PgStmtBaseStep", @@ -80,21 +78,21 @@ export abstract class PgStmtBaseStep extends ExecutableStep { * request-global dependencies such as variableValues, context, and input * arguments. */ - public deferredSQL($step: ExecutableStep): SQL { + public deferredSQL($step: Step): SQL { const symbol = Symbol(`deferred-${$step.id}`); const dependencyIndex = this.addUnaryDependency($step); this.deferreds.push({ symbol, dependencyIndex }); return sql.placeholder(symbol, UNHANDLED_DEFERRED); } - public placeholder($step: PgTypedExecutableStep): SQL; + public placeholder($step: PgTypedStep): SQL; public placeholder( - $step: ExecutableStep, + $step: Step, codec: PgCodec, alreadyEncoded?: boolean, ): SQL; public placeholder( - $step: ExecutableStep | PgTypedExecutableStep, + $step: Step | PgTypedStep, overrideCodec?: PgCodec, alreadyEncoded = false, ): SQL { @@ -198,14 +196,14 @@ export abstract class PgStmtBaseStep extends ExecutableStep { } protected abstract assertCursorPaginationAllowed(): void; - public setFirst($first: ExecutableStep>): this { + public setFirst($first: Step>): this { this.locker.assertParameterUnlocked("first"); this.firstStepId = this.addUnaryDependency($first); this.locker.lockParameter("first"); return this; } - public setLast($last: ExecutableStep>): this { + public setLast($last: Step>): this { this.assertCursorPaginationAllowed(); this.locker.assertParameterUnlocked("orderBy"); this.locker.assertParameterUnlocked("last"); @@ -214,7 +212,7 @@ export abstract class PgStmtBaseStep extends ExecutableStep { return this; } - public setOffset($offset: ExecutableStep>): this { + public setOffset($offset: Step>): this { this.locker.assertParameterUnlocked("offset"); this.offsetStepId = this.addUnaryDependency($offset); this.locker.lockParameter("offset"); @@ -230,15 +228,9 @@ export abstract class PgStmtBaseStep extends ExecutableStep { } parseCursor( - $cursorPlan: __InputStaticLeafStep, - ): PgSelectParsedCursorStep | null { + $cursorPlan: __InputStaticLeafStep>, + ): PgSelectParsedCursorStep { this.assertCursorPaginationAllowed(); - if ($cursorPlan.evalIs(null)) { - return null; - } else if ($cursorPlan.evalIs(undefined)) { - return null; - } - const $parsedCursorPlan = lambda($cursorPlan, parseCursor); return $parsedCursorPlan; } @@ -247,19 +239,19 @@ export abstract class PgStmtBaseStep extends ExecutableStep { * Someone (probably pageInfo) wants to know if there's more records. To * determine this we fetch one extra record and then throw it away. */ - public hasMore(): ExecutableStep { + public hasMore(): Step { this.fetchOneExtra = true; return access(this, "hasMore", false); } + + public getPgRoot() { + return this; + } } -function parseCursor(cursor: string | null) { +function parseCursor(cursor: Maybe) { if (cursor == null) { - // This throw should never happen, so we can still be isSyncAndSafe. - // If it does throw, the entire lambda will throw, which is allowed. - throw new Error( - "GrafastInternalError<3b076b86-828b-46b3-885d-ed2577068b8d>: cursor is null, but we have a constraint preventing that...", - ); + return null; } try { if (typeof cursor !== "string") { @@ -444,6 +436,7 @@ export function calculateLimitAndOffsetSQL(params: { } export interface PgStmtCommonQueryInfo { + readonly symbol: symbol | string; readonly alias: SQL; readonly hasSideEffects: boolean; @@ -462,6 +455,7 @@ export interface PgStmtCommonQueryInfo { readonly groups: ReadonlyArray; readonly havingConditions: ReadonlyArray; + readonly applyDepIds: ReadonlyArray; } export interface MutablePgStmtCommonQueryInfo { diff --git a/grafast/dataplan-pg/src/steps/pgTempTable.ts b/grafast/dataplan-pg/src/steps/pgTempTable.ts index 7427af7ee9..083546e893 100644 --- a/grafast/dataplan-pg/src/steps/pgTempTable.ts +++ b/grafast/dataplan-pg/src/steps/pgTempTable.ts @@ -1,50 +1,39 @@ -import type { ExecutableStep } from "grafast"; -import { BaseStep } from "grafast"; import type { SQL } from "pg-sql2"; import { sql } from "pg-sql2"; import type { PgResource } from "../datasource.js"; -import type { PgClassFilterStep } from "../filters/pgClassFilter.js"; -import type { PgCodec } from "../interfaces.js"; -import type { PgConditionCapableParentStep } from "./pgCondition.js"; -import { PgConditionStep } from "./pgCondition.js"; +import type { PgClassFilter } from "../filters/pgClassFilter.js"; +import type { PgConditionCapableParent } from "./pgCondition.js"; +import { PgCondition } from "./pgCondition.js"; -export class PgTempTableStep< - TResource extends PgResource, - > - extends BaseStep - implements PgConditionCapableParentStep +export class PgTempTable> + implements PgConditionCapableParent { static $$export = { moduleName: "@dataplan/pg", - exportName: "PgTempTableStep", + exportName: "PgTempTable", }; public readonly alias: SQL; public readonly conditions: SQL[] = []; constructor( - public readonly $parent: PgClassFilterStep, + public readonly parent: PgClassFilter, public readonly resource: TResource, ) { - super(); this.alias = sql.identifier(Symbol(`${resource.name}_filter`)); } - placeholder($step: ExecutableStep, codec: PgCodec): SQL { - return this.$parent.placeholder($step, codec); - } - where(condition: SQL): void { this.conditions.push(condition); } wherePlan() { - return new PgConditionStep(this); + return new PgCondition(this); } fromExpression() { const from = this.resource.from; if (typeof from === "function") { - throw new Error("PgTempTableStep doesn't support function sources yet."); + throw new Error("PgTempTable doesn't support function sources yet."); } else { return from; } diff --git a/grafast/dataplan-pg/src/steps/pgUnionAll.ts b/grafast/dataplan-pg/src/steps/pgUnionAll.ts index 0e6cef4dd2..234c5543a3 100644 --- a/grafast/dataplan-pg/src/steps/pgUnionAll.ts +++ b/grafast/dataplan-pg/src/steps/pgUnionAll.ts @@ -16,7 +16,6 @@ import { access, arrayOfLength, constant, - ExecutableStep, exportAs, first, isDev, @@ -24,6 +23,7 @@ import { polymorphicWrap, reverseArray, SafeError, + Step, } from "grafast"; import type { GraphQLObjectType } from "grafast/graphql"; import type { SQL, SQLRawValue } from "pg-sql2"; @@ -38,8 +38,11 @@ import type { PgCodec, PgOrderFragmentSpec, PgOrderSpec, + PgQueryBuilder, PgSQLCallbackOrDirect, - PgTypedExecutableStep, + PgTypedStep, + PgUnionAllQueryBuilderCallback, + ReadonlyArrayOrDirect, } from "../interfaces.js"; import { PgLocker } from "../pgLocker.js"; import { makeScopedSQL } from "../utils.js"; @@ -49,7 +52,7 @@ import type { PgHavingConditionSpec, PgWhereConditionSpec, } from "./pgCondition.js"; -import { PgConditionStep } from "./pgCondition.js"; +import { PgCondition } from "./pgCondition.js"; import type { PgCursorDetails } from "./pgCursor.js"; import { PgCursorStep } from "./pgCursor.js"; import type { PgPageInfoStep } from "./pgPageInfo.js"; @@ -90,6 +93,7 @@ const digestSpecificExpressionFromAttributeName = ( const EMPTY_ARRAY: ReadonlyArray = Object.freeze([]); const NO_ROWS = Object.freeze({ + m: Object.create(null), hasMore: false, items: [], } as PgUnionAllStepResult); @@ -139,11 +143,11 @@ export interface PgUnionAllStepMember { match?: { [resourceAttributeName: string]: | { - step: PgTypedExecutableStep; + step: PgTypedStep; codec?: never; } | { - step: ExecutableStep; + step: Step; codec: PgCodec; }; }; @@ -185,7 +189,7 @@ export interface PgUnionAllStepOrder { } export class PgUnionAllSingleStep - extends ExecutableStep + extends Step implements PolymorphicStep, EdgeCapableStep { static $$export = { @@ -196,7 +200,7 @@ export class PgUnionAllSingleStep private typeKey: number | null; private pkKey: number | null; private readonly spec: PgUnionAllStepConfig; - constructor($parent: PgUnionAllStep, $item: ExecutableStep) { + constructor($parent: PgUnionAllStep, $item: Step) { super(); this.addDependency($item); this.spec = $parent.spec; @@ -209,7 +213,7 @@ export class PgUnionAllSingleStep } } - planForType(objectType: GraphQLObjectType): ExecutableStep { + planForType(objectType: GraphQLObjectType): Step { if (this.pkKey === null || this.typeKey === null) { throw new Error( `${this} not polymorphic because parent isn't in normal mode`, @@ -258,21 +262,25 @@ export class PgUnionAllSingleStep return $pgUnionAll; } + public getMeta(key: string) { + return this.getClassStep().getMeta(key); + } + public node() { return this; } public scopedSQL = makeScopedSQL(this); - public placeholder($step: PgTypedExecutableStep): SQL; - public placeholder($step: ExecutableStep, codec: PgCodec): SQL; + public placeholder($step: PgTypedStep): SQL; + public placeholder($step: Step, codec: PgCodec): SQL; public placeholder( - $step: ExecutableStep | PgTypedExecutableStep, + $step: Step | PgTypedStep, overrideCodec?: PgCodec, ): SQL { return overrideCodec ? this.getClassStep().placeholder($step, overrideCodec) - : this.getClassStep().placeholder($step as PgTypedExecutableStep); + : this.getClassStep().placeholder($step as PgTypedStep); } /** @@ -364,6 +372,8 @@ export type PgUnionAllMode = "normal" | "aggregate"; * the relevant queryValues. This saves repeating this work at execution time. */ interface QueryBuildResult { + meta: Record; + // The SQL query text text: string; @@ -397,6 +407,7 @@ interface QueryBuildResult { } interface PgUnionAllStepResult { + m: Record; hasMore?: boolean; /** a tuple based on what is selected at runtime */ items: ReadonlyArray; @@ -481,6 +492,8 @@ export class PgUnionAllStep< private memberDigests: Readonly>[] = []; private _limitToTypes: string[] | undefined; + private applyDepIds: number[] = []; + /** * Set this true if your query includes any `VOLATILE` function (including * seemingly innocuous things such as `random()`) otherwise we might only @@ -521,6 +534,7 @@ export class PgUnionAllStep< } }); + $clone.applyDepIds = [...cloneFrom.applyDepIds]; $clone.contextId = cloneFrom.contextId; $clone.memberDigests = cloneFrom.memberDigests.map(cloneMemberDigest); if (cloneFrom._limitToTypes) { @@ -755,6 +769,10 @@ on (${sql.indent( return index; } + public getMeta(key: string) { + return access(this, ["m", key]); + } + /** * If this plan may only return one record, you can use `.singleAsRecord()` * to return a plan that resolves to that record (rather than a list of @@ -772,10 +790,16 @@ on (${sql.indent( return this.singleAsRecord(); } - row($row: ExecutableStep) { + row($row: Step) { return new PgUnionAllSingleStep(this, $row); } + apply( + $step: Step>>, + ) { + this.applyDepIds.push(this.addUnaryDependency($step)); + } + public items() { return this.operationPlan.cacheStep( this, @@ -785,7 +809,7 @@ on (${sql.indent( ); } - listItem(itemPlan: ExecutableStep) { + listItem(itemPlan: Step) { const $single = new PgUnionAllSingleStep(this, itemPlan); return $single as any; } @@ -822,15 +846,6 @@ on (${sql.indent( } } - wherePlan(): PgConditionStep { - if (this.locker.locked) { - throw new Error( - `${this}: cannot add conditions once plan is locked ('wherePlan')`, - ); - } - return new PgConditionStep(this); - } - groupBy(group: PgSQLCallbackOrDirect): void { this.locker.assertParameterUnlocked("groupBy"); if (this.mode !== "aggregate") { @@ -839,18 +854,6 @@ on (${sql.indent( this.groups.push(this.scopedSQL(group)); } - havingPlan(): PgConditionStep { - if (this.locker.locked) { - throw new Error( - `${this}: cannot add having conditions once plan is locked ('havingPlan')`, - ); - } - if (this.mode !== "aggregate") { - throw new SafeError(`Cannot add having to a non-aggregate query`); - } - return new PgConditionStep(this, true); - } - having( rawCondition: PgSQLCallbackOrDirect>, ): void { @@ -907,16 +910,6 @@ on (${sql.indent( } optimize() { - if (this._limitToTypes) { - this.memberDigests = this.memberDigests.filter((d) => - this._limitToTypes!.includes(d.member.typeName), - ); - } - if (this.memberDigests.length === 0) { - // We have no implementations, we'll never return anything - return constant(NO_ROWS, false); - } - // TODO: validate the parsed cursor and throw error in connection if it // fails. I'm not sure, but perhaps we can add this step itself (or a // derivative thereof) as a dependency of the connection - that way, if @@ -943,7 +936,7 @@ on (${sql.indent( return this; } - public getCursorDetails(): ExecutableStep { + public getCursorDetails(): Step { this.needsCursor = true; return access(this, "cursorDetails"); } @@ -971,6 +964,7 @@ on (${sql.indent( } = executionDetails; const { fetchOneExtra } = this; const { + meta, text, rawSqlValues, identifierIndex, @@ -993,6 +987,7 @@ on (${sql.indent( havingConditions: this.havingConditions, mode: this.mode, alias: this.alias, + symbol: this.symbol, hasSideEffects: this.hasSideEffects, groups: this.groups, orderSpecs: this.orderSpecs, @@ -1000,8 +995,10 @@ on (${sql.indent( typeIdx: this.typeIdx, attributes: this.spec.attributes, memberDigests: this.memberDigests, + limitToTypes: this._limitToTypes, fetchOneExtra, needsCursor: this.needsCursor, + applyDepIds: this.applyDepIds, }); if (first === 0 || last === 0) { @@ -1068,6 +1065,7 @@ on (${sql.indent( ? reverseArray(slicedRows) : slicedRows; return { + m: meta, hasMore, items: orderedRows, cursorDetails, @@ -1087,7 +1085,7 @@ on (${sql.indent( export class PgUnionAllRowsStep< TAttributes extends string = string, TTypeNames extends string = string, -> extends ExecutableStep { +> extends Step { static $$export = { moduleName: "@dataplan/pg", exportName: "PgUnionAllRowsStep", @@ -1098,14 +1096,14 @@ export class PgUnionAllRowsStep< this.addDependency($pgUnionAll); } public getClassStep(): PgUnionAllStep { - return this.getDep>(0); + return this.getDepOptions>(0).step; } - listItem(itemPlan: ExecutableStep) { + listItem(itemPlan: Step) { return this.getClassStep().listItem(itemPlan); } - public deduplicate(_peers: readonly ExecutableStep[]) { + public deduplicate(_peers: readonly Step[]) { // We don't have any properties, and dependencies is already checked, so we're the same as our kin. return _peers; } @@ -1137,6 +1135,7 @@ interface PgUnionAllQueryInfo< readonly mode: PgUnionAllMode; readonly typeIdx: number | null; readonly memberDigests: ReadonlyArray>; + readonly limitToTypes: ReadonlyArray | undefined; readonly attributes?: PgUnionAllStepConfigAttributes; readonly selects: ReadonlyArray>; @@ -1147,14 +1146,18 @@ interface MutablePgUnionAllQueryInfo< TTypeNames extends string = string, > extends PgUnionAllQueryInfo, MutablePgStmtCommonQueryInfo { - readonly memberDigests: ReadonlyArray>; + memberDigests: ReadonlyArray>; + limitToTypes: Array | undefined; readonly selects: Array>; + readonly orderSpecs: Array>; readonly orders: Array; cursorLower: Maybe; cursorUpper: Maybe; ordersForCursor: ReadonlyArray; typeIdx: number | null; + isOrderUnique: boolean; + readonly havingConditions: Array; } function buildTheQuery< @@ -1166,10 +1169,13 @@ function buildTheQuery< // Copy and make mutable selects: [...rawInfo.selects], + orderSpecs: [...rawInfo.orderSpecs], orders: [], + isOrderUnique: false, groups: [...rawInfo.groups], havingConditions: [...rawInfo.havingConditions], memberDigests: rawInfo.memberDigests.map(cloneMemberDigest), + limitToTypes: rawInfo.limitToTypes?.slice(), // Will be populated below ordersForCursor: undefined as never, @@ -1186,6 +1192,7 @@ function buildTheQuery< offset: null, shouldReverseOrder: false, }; + const { values, count } = info.executionDetails; function selectAndReturnIndex(expression: SQL): number { @@ -1224,7 +1231,101 @@ function buildTheQuery< return info.selects.push({ type: "pk" }) - 1; } - // TODO: evaluate runtime orders, conditions, etc here + const meta = Object.create(null); + const queryBuilder: PgUnionAllQueryBuilder = { + alias: info.alias, + [$$toSQL]() { + return info.alias; + }, + setMeta(key, value) { + meta[key] = value; + }, + orderBy(spec) { + if (info.mode !== "aggregate") { + info.orderSpecs.push(spec); + } + }, + setOrderIsUnique() { + info.isOrderUnique = true; + }, + where(whereSpec) { + for (const digest of info.memberDigests) { + const { alias: tableAlias, symbol } = digest; + if (sql.isSQL(whereSpec)) { + // Merge the global where into this sub-where. + digest.conditions.push( + // TODO: do we require that info.symbol is a symbol? + typeof info.symbol === "symbol" + ? sql.replaceSymbol(whereSpec, info.symbol, symbol) + : whereSpec, + ); + } else { + const ident = sql`${tableAlias}.${digestSpecificExpressionFromAttributeName( + digest, + whereSpec.attribute, + )}`; + digest.conditions.push(whereSpec.callback(ident)); + } + } + }, + having(condition) { + if (info.mode !== "aggregate") { + throw new SafeError(`Cannot add having to a non-aggregate query`); + } + if (sql.isSQL(condition)) { + info.havingConditions.push(condition); + } else { + const never: never = condition; + console.error("Unsupported condition: ", never); + throw new Error(`Unsupported condition`); + } + }, + whereBuilder() { + return new PgCondition(this); + }, + havingBuilder() { + return new PgCondition(this, true); + }, + limitToTypes(types) { + if (!info.limitToTypes) { + info.limitToTypes = [...types]; + } else { + info.limitToTypes = info.limitToTypes.filter((t) => types.includes(t)); + } + }, + }; + + for (const applyDepId of info.applyDepIds) { + const val = values[applyDepId].unaryValue(); + if (Array.isArray(val)) { + val.forEach((v) => v?.(queryBuilder)); + } else { + val?.(queryBuilder); + } + } + + // Apply type limits + if (info.limitToTypes) { + info.memberDigests = info.memberDigests.filter((d) => + info.limitToTypes!.includes(d.member.typeName), + ); + } + + // Now turn order specs into orders + if (info.memberDigests.length === 0) { + // We have no implementations, we'll never return anything + return { + meta, + text: `select null;`, + rawSqlValues: [], + identifierIndex: null, + first: 0, + last: 0, + queryValues: [], + cursorDetails: undefined, + shouldReverseOrder: false, + }; + } for (const orderSpec of info.orderSpecs) { if (!info.attributes) { @@ -1684,6 +1785,7 @@ ${lateralText};`; : undefined; return { + meta, text, rawSqlValues, identifierIndex, @@ -1926,3 +2028,19 @@ function cloneMemberDigest( conditions: [...memberDigest.conditions], }; } + +export interface PgUnionAllQueryBuilder< + TAttributes extends string = string, + _TTypeNames extends string = string, +> extends PgQueryBuilder { + /** Instruct to add another order */ + orderBy(spec: PgUnionAllStepOrder): void; + /** Inform that the resulting order is now unique */ + setOrderIsUnique(): void; + where(whereSpec: PgWhereConditionSpec): void; + whereBuilder(): PgCondition; + having(rawCondition: PgHavingConditionSpec): void; + havingBuilder(): PgCondition; + /** Only return values of the given types */ + limitToTypes(types: readonly string[]): void; +} diff --git a/grafast/dataplan-pg/src/steps/pgUpdateSingle.ts b/grafast/dataplan-pg/src/steps/pgUpdateSingle.ts index a512cc0072..eb42c6360f 100644 --- a/grafast/dataplan-pg/src/steps/pgUpdateSingle.ts +++ b/grafast/dataplan-pg/src/steps/pgUpdateSingle.ts @@ -1,17 +1,28 @@ -import type { ExecutionDetails, GrafastResultsList, SetterStep } from "grafast"; -import { ExecutableStep, exportAs, isDev, SafeError, setter } from "grafast"; +import type { + ExecutionDetails, + GrafastResultsList, + Maybe, + Setter, + SetterCapable, +} from "grafast"; +import { access, exportAs, isDev, SafeError, setter, Step } from "grafast"; import type { SQL, SQLable, SQLRawValue } from "pg-sql2"; import sql, { $$toSQL } from "pg-sql2"; import type { PgCodecAttribute } from "../codecs.js"; -import type { PgResource, PgResourceUnique } from "../index.js"; +import { sqlValueWithCodec } from "../codecs.js"; +import type { PgResource, PgResourceUnique } from "../datasource.js"; import { inspect } from "../inspect.js"; import type { GetPgResourceAttributes, GetPgResourceCodec, GetPgResourceUniques, + ObjectForResource, PgCodec, + PgCodecWithAttributes, + PgQueryBuilder, PlanByUniques, + ReadonlyArrayOrDirect, } from "../interfaces.js"; import type { PgClassExpressionStep } from "./pgClassExpression.js"; import { pgClassExpression } from "./pgClassExpression.js"; @@ -22,11 +33,9 @@ type QueryValueDetailsBySymbol = Map< >; interface PgUpdatePlanFinalizeResults { - /** The SQL query text */ - text: string; - - /** The values to feed into the query */ - rawSqlValues: ReadonlyArray; + table: SQL; + returning: SQL; + sqlWhere: SQL; /** When we see the given symbol in the SQL values, what dependency do we replace it with? */ queryValueDetailsBySymbol: QueryValueDetailsBySymbol; @@ -38,7 +47,7 @@ interface PgUpdatePlanFinalizeResults { export class PgUpdateSingleStep< TResource extends PgResource = PgResource, > - extends ExecutableStep + extends Step implements SQLable { static $$export = { @@ -107,6 +116,8 @@ export class PgUpdateSingleStep< */ private selects: Array = []; + private applyDepIds: number[] = []; + constructor( resource: TResource, getBy: PlanByUniques< @@ -114,7 +125,7 @@ export class PgUpdateSingleStep< GetPgResourceUniques >, attributes?: { - [key in keyof GetPgResourceAttributes]?: ExecutableStep; // | PgTypedExecutableStep + [key in keyof GetPgResourceAttributes]?: Step; // | PgTypedStep }, ) { super(); @@ -167,7 +178,7 @@ export class PgUpdateSingleStep< if (value) { this.set( key as keyof GetPgResourceAttributes, - value as ExecutableStep, + value as Step, ); } }); @@ -182,7 +193,7 @@ export class PgUpdateSingleStep< set>( name: TKey, - value: ExecutableStep, // | PgTypedExecutableStep + value: Step, // | PgTypedStep ): void { if (this.locked) { throw new Error("Cannot set after plan is locked."); @@ -201,21 +212,6 @@ export class PgUpdateSingleStep< this.attributes.push({ name, depId, pgCodec }); } - setPlan(): SetterStep< - { - [key in keyof GetPgResourceAttributes & - string]: ExecutableStep; - }, - this - > { - if (this.locked) { - throw new Error( - `${this}: cannot set values once plan is locked ('setPlan')`, - ); - } - return setter(this); - } - /** * Returns a plan representing a named attribute (e.g. column) from the newly * updateed row. @@ -262,6 +258,10 @@ export class PgUpdateSingleStep< return colPlan as any; } + public getMeta(key: string) { + return access(this, ["m", key]); + } + public record(): PgClassExpressionStep< GetPgResourceCodec, TResource @@ -295,6 +295,14 @@ export class PgUpdateSingleStep< return this.selects.push(fragment) - 1; } + apply( + $step: Step< + ReadonlyArrayOrDirect> + >, + ) { + this.applyDepIds.push(this.addUnaryDependency($step)); + } + /** * `execute` will always run as a root-level query. In future we'll implement a * `toSQL` method that allows embedding this plan within another SQL plan... @@ -311,18 +319,92 @@ export class PgUpdateSingleStep< indexMap, values, }: ExecutionDetails): Promise> { - if (!this.finalizeResults) { + const { alias, contextId, finalizeResults, resource } = this; + if (!finalizeResults) { throw new Error("Cannot execute PgSelectStep before finalizing it."); } - const { text, rawSqlValues, queryValueDetailsBySymbol } = - this.finalizeResults; - const contextDep = values[this.contextId]; + const { table, returning, sqlWhere, queryValueDetailsBySymbol } = + finalizeResults; + const contextDep = values[contextId]; + /* + * NOTE: Though we'd like to do bulk updates, there's no way of us + * reliably linking the data back up again given users might have + * triggers manipulating the data so we can't match it back up even using + * the same getBy specs. + * + * Currently it seems that the order returned from `update ... + * from (select ... order by ...) returning ...` is the same order as the + * `order by` was, however this is not guaranteed in the documentation + * and as such cannot be relied upon. Further the pgsql-hackers list + * explicitly declined guaranteeing this behavior: + * + * https://www.postgresql.org/message-id/CAKFQuwbgdJ_xNn0YHWGR0D%2Bv%2B3mHGVqJpG_Ejt96KHoJjs6DkA%40mail.gmail.com + * + * So we have to make do with single updates, alas. + */ // We must execute each mutation on its own, but we can at least do so in // parallel. Note we return a list of promises, each may reject or resolve // without causing the others to reject. return indexMap(async (i) => { const context = contextDep.at(i); + + const sqlSets: SQL[] = []; + for (const { depId, name, pgCodec } of this.attributes) { + const attVal = values[depId].at(i); + // `null` is kept, `undefined` is skipped + if (attVal !== undefined) { + const sqlIdent = sql.identifier(name as string); + const sqlVal = sqlValueWithCodec(attVal, pgCodec); + sqlSets.push(sql`${sqlIdent} = ${sqlVal}`); + } + } + + const meta = Object.create(null); + const queryBuilder: PgUpdateSingleQueryBuilder = { + alias, + [$$toSQL]() { + return alias; + }, + setMeta(key, value) { + meta[key] = value; + }, + set(name, attVal) { + const pgCodec = resource.codec.attributes[name]?.codec; + if (!pgCodec) { + throw new Error(`Attribute ${name} not recognized on ${resource}`); + } + const sqlIdent = sql.identifier(name as string); + const sqlVal = sqlValueWithCodec(attVal, pgCodec); + sqlSets.push(sql`${sqlIdent} = ${sqlVal}`); + }, + setBuilder() { + return setter(this); + }, + }; + + for (const applyDepId of this.applyDepIds) { + const val = values[applyDepId].unaryValue(); + if (Array.isArray(val)) { + val.forEach((v) => v?.(queryBuilder)); + } else { + val?.(queryBuilder); + } + } + + if (sqlSets.length === 0) { + // No attributes to update?! This isn't allowed. + throw new SafeError( + "Attempted to update a record, but no new values were specified.", + ); + } + + const query = sql`update ${table} set ${sql.join( + sqlSets, + ", ", + )} where ${sqlWhere}${returning};`; + const { text, values: rawSqlValues } = sql.compile(query); + const sqlValues = queryValueDetailsBySymbol.size ? rawSqlValues.map((v) => { if (typeof v === "symbol") { @@ -342,7 +424,15 @@ export class PgUpdateSingleStep< text, values: sqlValues, }); - return rows[0] ?? (rowCount === 0 ? null : Object.create(null)); + if (rowCount === 0) { + // TODO: should we throw? + return null; + } + return { + __proto__: null, + m: meta, + t: rows[0] ?? [], + }; }); } @@ -369,83 +459,37 @@ export class PgUpdateSingleStep< )}` : sql.blank; - /* - * NOTE: Though we'd like to do bulk updates, there's no way of us - * reliably linking the data back up again given users might have - * triggers manipulating the data so we can't match it back up even using - * the same getBy specs. - * - * Currently it seems that the order returned from `update ... - * from (select ... order by ...) returning ...` is the same order as the - * `order by` was, however this is not guaranteed in the documentation - * and as such cannot be relied upon. Further the pgsql-hackers list - * explicitly declined guaranteeing this behavior: - * - * https://www.postgresql.org/message-id/CAKFQuwbgdJ_xNn0YHWGR0D%2Bv%2B3mHGVqJpG_Ejt96KHoJjs6DkA%40mail.gmail.com - * - * So we have to make do with single updates, alas. - */ const getByAttributesCount = this.getBys.length; - const attributesCount = this.attributes.length; - if (attributesCount === 0) { - // No attributes to update?! This isn't allowed. - throw new SafeError( - "Attempted to update a record, but no new values were specified.", - ); - } else if (getByAttributesCount === 0) { + if (getByAttributesCount === 0) { // No attributes specified to find the row?! This is forbidden. throw new SafeError( "Attempted to update a record, but no information on uniquely determining the record was specified.", ); - } else { - // This is our common path - const sqlWhereClauses: SQL[] = []; - const sqlSets: SQL[] = []; - const queryValueDetailsBySymbol: QueryValueDetailsBySymbol = new Map(); - - for (let i = 0; i < getByAttributesCount; i++) { - const { name, depId, pgCodec } = this.getBys[i]; - const symbol = Symbol(name as string); - sqlWhereClauses[i] = sql.parens( - sql`${sql.identifier(this.symbol, name as string)} = ${sql.value( - // THIS IS A DELIBERATE HACK - we will be replacing this symbol with - // a value before executing the query. - symbol as any, - )}::${pgCodec.sqlType}`, - ); - queryValueDetailsBySymbol.set(symbol, { - depId, - processor: pgCodec.toPg, - }); - } - - for (let i = 0; i < attributesCount; i++) { - const { name, depId, pgCodec } = this.attributes[i]; - const symbol = Symbol(name as string); - sqlSets[i] = sql`${sql.identifier(name as string)} = ${sql.value( + } + const queryValueDetailsBySymbol: QueryValueDetailsBySymbol = new Map(); + const sqlWhereClauses: SQL[] = []; + for (let i = 0; i < getByAttributesCount; i++) { + const { name, depId, pgCodec } = this.getBys[i]; + const symbol = Symbol(name as string); + sqlWhereClauses[i] = sql.parens( + sql`${sql.identifier(this.symbol, name as string)} = ${sql.value( // THIS IS A DELIBERATE HACK - we will be replacing this symbol with // a value before executing the query. symbol as any, - )}::${pgCodec.sqlType}`; - queryValueDetailsBySymbol.set(symbol, { - depId, - processor: pgCodec.toPg, - }); - } - - const set = sql` set ${sql.join(sqlSets, ", ")}`; - const where = sql` where ${sql.parens( - sql.join(sqlWhereClauses, " and "), - )}`; - const query = sql`update ${table}${set}${where}${returning};`; - const { text, values: rawSqlValues } = sql.compile(query); - - this.finalizeResults = { - text, - rawSqlValues, - queryValueDetailsBySymbol, - }; + )}::${pgCodec.sqlType}`, + ); + queryValueDetailsBySymbol.set(symbol, { + depId, + processor: pgCodec.toPg, + }); } + + this.finalizeResults = { + table, + returning, + sqlWhere: sql.parens(sql.join(sqlWhereClauses, " and ")), + queryValueDetailsBySymbol, + }; } super.finalize(); @@ -467,9 +511,30 @@ export function pgUpdateSingle< GetPgResourceUniques >, attributes?: { - [key in keyof GetPgResourceAttributes]?: ExecutableStep; // | PgTypedExecutableStep + [key in keyof GetPgResourceAttributes]?: Step; // | PgTypedStep }, ): PgUpdateSingleStep { return new PgUpdateSingleStep(resource, getBy, attributes); } exportAs("@dataplan/pg", pgUpdateSingle, "pgUpdateSingle"); + +export interface PgUpdateSingleQueryBuilder< + TResource extends PgResource< + any, + PgCodecWithAttributes, + any, + any, + any + > = PgResource, +> extends PgQueryBuilder, + SetterCapable> { + set>( + key: TAttributeName, + value: ObjectForResource[TAttributeName], + ): void; + setBuilder(): Setter, this>; +} + +type PgUpdateSingleQueryBuilderCallback = ( + qb: PgUpdateSingleQueryBuilder, +) => void; diff --git a/grafast/dataplan-pg/src/steps/pgValidateParsedCursor.ts b/grafast/dataplan-pg/src/steps/pgValidateParsedCursor.ts index c39f63603e..70684e0033 100644 --- a/grafast/dataplan-pg/src/steps/pgValidateParsedCursor.ts +++ b/grafast/dataplan-pg/src/steps/pgValidateParsedCursor.ts @@ -1,5 +1,5 @@ import type { ExecutableStep, ExecutionExtra, Maybe } from "grafast"; -import { isDev, SafeError, UnbatchedExecutableStep } from "grafast"; +import { isDev, SafeError, UnbatchedStep } from "grafast"; /** * Lightweight plan to validate cursor. We couldn't do this with a lambda @@ -8,7 +8,7 @@ import { isDev, SafeError, UnbatchedExecutableStep } from "grafast"; * * @internal */ -export class PgValidateParsedCursorStep extends UnbatchedExecutableStep { +export class PgValidateParsedCursorStep extends UnbatchedStep { static $$export = { moduleName: "@dataplan/pg", exportName: "PgValidateParsedCursorStep", @@ -96,7 +96,7 @@ export function validateParsedCursor( } // TODO: in all likelihood this is called in a unary position, so the // following TODO is most likely dismissable. We should assert such via - // `addUnaryDependency`? Should also make the above a UnbatchedExecutableStep? + // `addUnaryDependency`? Should also make the above a UnbatchedStep? // TODO: we should push this error to `results`; but doing so would make it // not syncAndSafe. throw new SafeError( diff --git a/grafast/dataplan-pg/src/steps/toPg.ts b/grafast/dataplan-pg/src/steps/toPg.ts index e16c12a9b5..812cba2ab2 100644 --- a/grafast/dataplan-pg/src/steps/toPg.ts +++ b/grafast/dataplan-pg/src/steps/toPg.ts @@ -1,5 +1,5 @@ import type { ExecutableStep, UnbatchedExecutionExtra } from "grafast"; -import { UnbatchedExecutableStep } from "grafast"; +import { UnbatchedStep } from "grafast"; import type { PgCodec } from "../interfaces.js"; @@ -11,7 +11,7 @@ import type { PgCodec } from "../interfaces.js"; * * @internal */ -export class ToPgStep extends UnbatchedExecutableStep { +export class ToPgStep extends UnbatchedStep { static $$export = { moduleName: "@dataplan/pg", exportName: "ToPgStep", diff --git a/grafast/dataplan-pg/src/steps/withPgClient.ts b/grafast/dataplan-pg/src/steps/withPgClient.ts index a6b90abbc6..da5558abd4 100644 --- a/grafast/dataplan-pg/src/steps/withPgClient.ts +++ b/grafast/dataplan-pg/src/steps/withPgClient.ts @@ -1,5 +1,5 @@ import type { ExecutionDetails, GrafastResultsList } from "grafast"; -import { constant, ExecutableStep } from "grafast"; +import { constant, Step } from "grafast"; import type { PgClient, PgExecutor, WithPgClient } from "../executor"; @@ -18,7 +18,7 @@ export class WithPgClientStep< TData = any, TResult = any, TPgClient extends PgClient = PgClient, -> extends ExecutableStep { +> extends Step { static $$export = { moduleName: "@dataplan/pg", exportName: "WithPgClientStep", @@ -44,7 +44,7 @@ export class WithPgClientStep< constructor( executor: PgExecutor, - $data: ExecutableStep, + $data: Step, private callback: WithPgClientStepCallback, ) { super(); @@ -78,7 +78,7 @@ export function withPgClient< >( executor: PgExecutor, $data: - | ExecutableStep + | Step | (TData extends null | undefined ? null | undefined : never), callback: WithPgClientStepCallback, ) { @@ -96,7 +96,7 @@ export function withPgClientTransaction< >( executor: PgExecutor, $data: - | ExecutableStep + | Step | (TData extends null | undefined ? null | undefined : never), callback: WithPgClientStepCallback, ) { diff --git a/grafast/dataplan-pg/src/utils.ts b/grafast/dataplan-pg/src/utils.ts index 6221cd5f90..9a57898fe8 100644 --- a/grafast/dataplan-pg/src/utils.ts +++ b/grafast/dataplan-pg/src/utils.ts @@ -8,7 +8,7 @@ import type { PgCodec, PgSQLCallback, PgSQLCallbackOrDirect, - PgTypedExecutableStep, + PgTypedStep, } from "./interfaces.js"; import { PgDeleteSingleStep } from "./steps/pgDeleteSingle.js"; import { PgInsertSingleStep } from "./steps/pgInsertSingle.js"; @@ -37,10 +37,7 @@ export function assertPgClassSingleStep< export function makeScopedSQL( that: TThis, ): (cb: PgSQLCallbackOrDirect) => T { - const sqlTransformer: Transformer> = ( - sql, - value, - ) => { + const sqlTransformer: Transformer> = (sql, value) => { if (value instanceof ExecutableStep && "pgCodec" in value) { if (value.pgCodec) { return that.placeholder(value); diff --git a/grafast/grafast/__tests__/errorHandling-test.ts b/grafast/grafast/__tests__/errorHandling-test.ts index 8da265063d..a785e285e3 100644 --- a/grafast/grafast/__tests__/errorHandling-test.ts +++ b/grafast/grafast/__tests__/errorHandling-test.ts @@ -12,11 +12,11 @@ import type { import { constant, context, - ExecutableStep, grafast, lambda, makeGrafastSchema, sideEffect, + Step, } from "../dist/index.js"; const resolvedPreset = resolvePreset({}); @@ -32,13 +32,10 @@ declare global { const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); -class SyncListCallbackStep< - TIn, - TOut extends any[], -> extends ExecutableStep { +class SyncListCallbackStep extends Step { isSyncAndSafe = false; constructor( - $dep: ExecutableStep, + $dep: Step, private callback: (val: TIn) => PromiseOrDirect, ) { super(); @@ -90,7 +87,7 @@ const schema = makeGrafastSchema({ sideEffectListCheck(_, fieldArgs) { const $mol = context().get("mol"); sideEffect($mol, () => {}); - const $count = lambda(fieldArgs.get("arr"), (arr) => { + const $count = lambda(fieldArgs.getRaw("arr"), (arr) => { return arr.length; }); $count.hasSideEffects = true; @@ -98,10 +95,10 @@ const schema = makeGrafastSchema({ }, }, Thing: { - id($i: ExecutableStep) { + id($i: Step) { return $i; }, - anotherList($i: ExecutableStep) { + anotherList($i: Step) { return new SyncListCallbackStep($i, (i) => [i + 0, i + 1, i + 2]); }, throw() { @@ -109,7 +106,7 @@ const schema = makeGrafastSchema({ }, }, OtherThing: { - id($i: ExecutableStep) { + id($i: Step) { return $i; }, }, diff --git a/grafast/grafast/__tests__/errorHandlingStreamTermination-test.ts b/grafast/grafast/__tests__/errorHandlingStreamTermination-test.ts index 52c499a2d9..ea295779b2 100644 --- a/grafast/grafast/__tests__/errorHandlingStreamTermination-test.ts +++ b/grafast/grafast/__tests__/errorHandlingStreamTermination-test.ts @@ -11,11 +11,11 @@ import type { } from "../dist/index.js"; import { constant, - ExecutableStep, grafast, isAsyncIterable, lambda, makeGrafastSchema, + Step, } from "../dist/index.js"; const resolvedPreset = resolvePreset({}); @@ -23,13 +23,10 @@ const requestContext = {}; const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); -class SyncListCallbackStep< - TIn, - TOut extends any[], -> extends ExecutableStep { +class SyncListCallbackStep extends Step { isSyncAndSafe = false; constructor( - $dep: ExecutableStep, + $dep: Step, private callback: (val: TIn) => PromiseOrDirect, private setStreaming: (isStreaming: boolean) => void, ) { @@ -89,10 +86,10 @@ const makeSchema = (setStreaming: (isStreaming: boolean) => void) => }, }, Thing: { - id($i: ExecutableStep) { + id($i: Step) { return $i; }, - anotherList($i: ExecutableStep) { + anotherList($i: Step) { return new SyncListCallbackStep( $i, (i) => [i + 0, i + 1, i + 2], @@ -104,7 +101,7 @@ const makeSchema = (setStreaming: (isStreaming: boolean) => void) => }, }, OtherThing: { - id($i: ExecutableStep) { + id($i: Step) { return $i; }, }, diff --git a/grafast/grafast/__tests__/forbidden-test.ts b/grafast/grafast/__tests__/forbidden-test.ts index 2330263df7..3305729fc7 100644 --- a/grafast/grafast/__tests__/forbidden-test.ts +++ b/grafast/grafast/__tests__/forbidden-test.ts @@ -6,22 +6,20 @@ import { it } from "mocha"; import type { ExecutionDetails } from "../dist/index.js"; import { arrayOfLength, - ExecutableStep, grafast, makeGrafastSchema, + Step, } from "../dist/index.js"; if (process.env.NODE_ENV !== "test") { throw new Error(`Tests must run with NODE_ENV=test`); } -class SomeStep extends ExecutableStep { - deduplicate( - _peers: readonly ExecutableStep[], - ): readonly ExecutableStep[] { +class SomeStep extends Step { + deduplicate(_peers: readonly Step[]): readonly Step[] { return _peers; } - deduplicatedWith(replacement: ExecutableStep): void {} + deduplicatedWith(replacement: Step): void {} optimize() { return this; } @@ -33,8 +31,8 @@ class SomeStep extends ExecutableStep { } } -class BadOptimizeStep extends ExecutableStep { - constructor($parent: ExecutableStep) { +class BadOptimizeStep extends Step { + constructor($parent: Step) { super(); this.addDependency($parent); } @@ -48,8 +46,8 @@ class BadOptimizeStep extends ExecutableStep { } } -class BadFinalizeStep extends ExecutableStep { - constructor($parent: ExecutableStep) { +class BadFinalizeStep extends Step { + constructor($parent: Step) { super(); this.addDependency($parent); } diff --git a/grafast/grafast/__tests__/loadOne-test.ts b/grafast/grafast/__tests__/loadOne-test.ts index 3a520e947e..fcde10ad90 100644 --- a/grafast/grafast/__tests__/loadOne-test.ts +++ b/grafast/grafast/__tests__/loadOne-test.ts @@ -567,6 +567,9 @@ it("uses stable identifiers to avoid the need for double-fetches (obj)", async ( resolvedPreset, requestContext, })) as ExecutionResult; + if (result.errors) { + console.error(result.errors[0]?.originalError); + } expect(result).to.deep.equal({ data: { t1: { diff --git a/grafast/grafast/__tests__/stream-test.ts b/grafast/grafast/__tests__/stream-test.ts index 232670054c..398f007365 100644 --- a/grafast/grafast/__tests__/stream-test.ts +++ b/grafast/grafast/__tests__/stream-test.ts @@ -11,22 +11,19 @@ import type { } from "../dist/index.js"; import { constant, - ExecutableStep, grafast, lambda, makeGrafastSchema, + Step, } from "../dist/index.js"; const resolvedPreset = resolvePreset({}); const requestContext = {}; -class SyncListCallbackStep< - TIn, - TOut extends any[], -> extends ExecutableStep { +class SyncListCallbackStep extends Step { isSyncAndSafe = false; constructor( - $dep: ExecutableStep, + $dep: Step, private callback: (val: TIn) => PromiseOrDirect, ) { super(); @@ -73,10 +70,10 @@ const makeSchema = (useStreamableStep = false) => { }, }, Thing: { - id($i: ExecutableStep) { + id($i: Step) { return $i; }, - anotherList($i: ExecutableStep) { + anotherList($i: Step) { const cb = (i: number) => [i + 0, i + 1, i + 2]; if (useStreamableStep) { return new SyncListCallbackStep($i, cb); @@ -86,7 +83,7 @@ const makeSchema = (useStreamableStep = false) => { }, }, OtherThing: { - id($i: ExecutableStep) { + id($i: Step) { return $i; }, }, diff --git a/grafast/grafast/__tests__/types-test.ts b/grafast/grafast/__tests__/types-test.ts index 359aae67c9..0e48ce58f4 100644 --- a/grafast/grafast/__tests__/types-test.ts +++ b/grafast/grafast/__tests__/types-test.ts @@ -5,8 +5,8 @@ import type { __ValueStep, ConstantStep, DataFromObjectSteps, - ExecutableStep, ListStep, + Step, } from "../dist/index.js"; type Expected = { @@ -16,5 +16,5 @@ type Test = DataFromObjectSteps<{ test: ListStep[]> }>; assert>(); type TStep = __ValueStep; -type TCtx = TStep extends ExecutableStep ? U : never; +type TCtx = TStep extends Step ? U : never; assert>(); diff --git a/grafast/grafast/__tests__/unaryDeps-test.ts b/grafast/grafast/__tests__/unaryDeps-test.ts index 67f8325deb..6a3b652cb7 100644 --- a/grafast/grafast/__tests__/unaryDeps-test.ts +++ b/grafast/grafast/__tests__/unaryDeps-test.ts @@ -9,9 +9,9 @@ import type { ExecutionDetails, GrafastResultsList } from "../dist/index.js"; import { access, context, - ExecutableStep, grafast, makeGrafastSchema, + Step, } from "../dist/index.js"; const resolvedPreset = resolvePreset({}); @@ -49,12 +49,12 @@ function run(db: sqlite3.Database, sql: string, values: any[] = []) { }); } -class GetRecordsStep> extends ExecutableStep { +class GetRecordsStep> extends Step { depIdByIdentifier: Record; dbDepId: number; constructor( private tableName: string, - identifiers: Record = Object.create(null), + identifiers: Record = Object.create(null), ) { super(); this.dbDepId = this.addUnaryDependency(context().get("db")); @@ -78,7 +78,7 @@ class GetRecordsStep> extends ExecutableStep { // Unary Dep Id private firstUDI: number | undefined; - setFirst($first: ExecutableStep) { + setFirst($first: Step) { this.firstUDI = this.addUnaryDependency($first); } @@ -152,7 +152,7 @@ ${orderBy ? `order by ${orderBy}` : ""} }); }); } - listItem($item: ExecutableStep) { + listItem($item: Step) { return access($item); } } @@ -173,7 +173,7 @@ const makeSchema = () => { `, plans: { Query: { - allPeople(_: ExecutableStep) { + allPeople(_: Step) { return getRecords("people"); }, }, @@ -190,10 +190,7 @@ const makeSchema = () => { }); }; -function getRecords( - tableName: string, - identifiers?: Record, -) { +function getRecords(tableName: string, identifiers?: Record) { return new GetRecordsStep(tableName, identifiers); } diff --git a/grafast/grafast/src/bucket.ts b/grafast/grafast/src/bucket.ts index 2c21112b3b..29224807eb 100644 --- a/grafast/grafast/src/bucket.ts +++ b/grafast/grafast/src/bucket.ts @@ -1,6 +1,6 @@ // import type { GraphQLScalarType } from "graphql"; -import type { ExecutableStep, GrafastExecutionArgs } from "."; +import type { GrafastExecutionArgs, Step } from "."; import type { LayerPlan } from "./engine/LayerPlan"; import type { MetaByMetaKey } from "./engine/OperationPlan"; import type { @@ -102,7 +102,7 @@ export interface Bucket { store: Map; setResult( - step: ExecutableStep, + step: Step, index: number, value: any, flags: ExecutionEntryFlags, diff --git a/grafast/grafast/src/engine/LayerPlan.ts b/grafast/grafast/src/engine/LayerPlan.ts index e8ce4d6d08..d49037dd09 100644 --- a/grafast/grafast/src/engine/LayerPlan.ts +++ b/grafast/grafast/src/engine/LayerPlan.ts @@ -14,11 +14,7 @@ import { NO_FLAGS, } from "../interfaces.js"; import { resolveType } from "../polymorphic.js"; -import type { - ExecutableStep, - ModifierStep, - UnbatchedExecutableStep, -} from "../step"; +import type { Step, UnbatchedStep } from "../step"; import { batchExecutionValue, newBucket } from "./executeBucket.js"; import type { OperationPlan } from "./OperationPlan"; @@ -40,18 +36,6 @@ import type { OperationPlan } from "./OperationPlan"; export interface LayerPlanReasonRoot { type: "root"; } -/** Non-branching, non-deferred */ -export interface LayerPlanReasonNullableField { - type: "nullableBoundary"; - /** - * Can be used such that the same LayerPlan can be used for two selection - * sets for the same parent plan. In this case an additional output plan - * would be added to the LayerPlan. - * - * Also needed for execution (see `executeBucket`). - */ - parentStep: ExecutableStep; -} export interface LayerPlanReasonListItemStream { initialCountStepId?: number; ifStepId?: number; @@ -67,7 +51,7 @@ export interface LayerPlanReasonListItem { * * Also needed for execution (see `executeBucket`). */ - parentStep: ExecutableStep; + parentStep: Step; /** * If this listItem is to be streamed, the configuration for that streaming. @@ -97,7 +81,7 @@ export interface LayerPlanReasonPolymorphic { /** * Needed for execution (see `executeBucket`). */ - parentStep: ExecutableStep; + parentStep: Step; polymorphicPaths: Set; } /** Non-branching, non-deferred */ @@ -105,7 +89,7 @@ export interface LayerPlanReasonSubroutine { // NOTE: the plan that has a subroutine should call executeBucket from within // `execute`. type: "subroutine"; - parentStep: ExecutableStep; + parentStep: Step; } export function isBranchingLayerPlan(layerPlan: LayerPlan): boolean { @@ -127,7 +111,6 @@ export function isPolymorphicLayerPlan(layerPlan: LayerPlan): boolean { export type LayerPlanReason = | LayerPlanReasonRoot - | LayerPlanReasonNullableField | LayerPlanReasonListItem | LayerPlanReasonSubscription | LayerPlanReasonMutationField @@ -138,7 +121,7 @@ export type LayerPlanReason = // The `A extends any ? ... : never` tells TypeScript to make this // distributive. TypeScript can be a bit arcane. export type HasParent = A extends any - ? A extends { parentStep: ExecutableStep } + ? A extends { parentStep: Step } ? A : never : never; @@ -161,7 +144,7 @@ export interface LayerPlanPhase { */ normalSteps: | Array<{ - step: ExecutableStep; + step: Step; }> | undefined; @@ -173,7 +156,7 @@ export interface LayerPlanPhase { */ unbatchedSyncAndSafeSteps: | Array<{ - step: UnbatchedExecutableStep; + step: UnbatchedStep; /** * Store the result of the step here if you want - useful to avoid lookups @@ -188,7 +171,7 @@ export interface LayerPlanPhase { * * @internal */ - _allSteps: ExecutableStep[]; + _allSteps: Step[]; } /** @@ -236,7 +219,7 @@ export class LayerPlan { * * @internal */ - public readonly rootStep: ExecutableStep | null = null; + public readonly rootStep: Step | null = null; /** * Which steps the results for which are available in a parent bucket need to @@ -251,9 +234,9 @@ export class LayerPlan { public children: LayerPlan[] = []; /** @internal */ - steps: ExecutableStep[] = []; + steps: Step[] = []; /** @internal */ - pendingSteps: ExecutableStep[] = []; + pendingSteps: Step[] = []; /** * This goes along with `parentStep` in the reason, except it applies to all @@ -263,7 +246,7 @@ export class LayerPlan { * * @internal */ - public parentSideEffectStep: ExecutableStep | null = null; + public parentSideEffectStep: Step | null = null; /** * This tracks the latest seen side effect at the current point in planning @@ -272,7 +255,7 @@ export class LayerPlan { * * @internal */ - public latestSideEffectStep: ExecutableStep | null = null; + public latestSideEffectStep: Step | null = null; /** * Describes the order in which the steps within this LayerPlan are executed. @@ -305,7 +288,7 @@ export class LayerPlan { * layer plan, grouped by their step class. */ // eslint-disable-next-line @typescript-eslint/ban-types - stepsByConstructor: Map>; + stepsByConstructor: Map>; constructor( public readonly operationPlan: OperationPlan, @@ -376,7 +359,7 @@ export class LayerPlan { } _hasSetRootStep = false; - setRootStep($root: ExecutableStep): void { + setRootStep($root: Step): void { if (this._hasSetRootStep) { throw new Error(`Set root step on ${this} more than once`); } @@ -390,25 +373,17 @@ export class LayerPlan { } /** @internal Use plan.getStep(id) instead. */ - public getStep(id: number, requestingStep: ExecutableStep): ExecutableStep { + public getStep(id: number, requestingStep: Step): Step { return this.operationPlan.getStep(id, requestingStep); } /** @internal */ - public _addStep(step: ExecutableStep): number { + public _addStep(step: Step): number { return this.operationPlan._addStep(step); } - /** @internal */ - public _addModifierStep(step: ModifierStep): string { - return this.operationPlan._addModifierStep(step); - } - public finalize(): void { - if ( - // this.reason.type === "nullableBoundary" || - this.reason.type === "listItem" - ) { + if (this.reason.type === "listItem") { const u = this.copyStepIds.length; const signature = `${this.reason.type[0]}_${u}`; withNewBucketFactory(signature, u, this.reason.type, (fn) => { @@ -438,134 +413,6 @@ export class LayerPlan { let size = 0; switch (this.reason.type) { - case "nullableBoundary": { - if (this.rootStep == null) { - throw new Error( - "GrafastInternalError: nullableStepStore layer plan has no rootStepId", - ); - } - const itemStepId = this.rootStep.id; - - // PERF: if parent bucket has no nulls/errors in `itemStepId` - // then we can just copy everything wholesale rather than building - // new arrays and looping. - const hasNoNullsOrErrors = false; - - if (this.rootStep._isUnary) { - const fieldValue = parentBucket.store.get( - itemStepId, - )! as UnaryExecutionValue; - const forbiddenFlags = - fieldValue._entryFlags & FORBIDDEN_BY_NULLABLE_BOUNDARY_FLAGS; - if (forbiddenFlags) { - size = 0; - } else { - store.set(itemStepId, fieldValue); - for (const stepId of copyStepIds) { - store.set(stepId, parentBucket.store.get(stepId)!); - } - const parentBucketSize = parentBucket.size; - for ( - let originalIndex = 0; - originalIndex < parentBucketSize; - originalIndex++ - ) { - if ( - parentSideEffectValue === null || - !(parentSideEffectValue._flagsAt(originalIndex) & FLAG_ERROR) - ) { - const newIndex = size++; - map.set(originalIndex, newIndex); - polymorphicPathList[newIndex] = - parentBucket.polymorphicPathList[originalIndex]; - iterators[newIndex] = parentBucket.iterators[originalIndex]; - } - } - } - } else if (hasNoNullsOrErrors) { - const nullableStepStore = parentBucket.store.get(itemStepId); - if (!nullableStepStore) { - throw new Error( - `GrafastInternalError<017dc8bf-1db1-4983-a41e-e69c6652e4c7>: could not find entry '${itemStepId}' (${parentBucket.layerPlan.operationPlan.dangerouslyGetStep( - itemStepId, - )}) in store for ${parentBucket.layerPlan}`, - ); - } - store.set(itemStepId, nullableStepStore); - for (const stepId of copyStepIds) { - store.set(stepId, parentBucket.store.get(stepId)!); - } - for ( - let originalIndex = 0; - originalIndex < parentBucket.size; - originalIndex++ - ) { - const newIndex = size++; - map.set(originalIndex, newIndex); - polymorphicPathList[newIndex] = - parentBucket.polymorphicPathList[originalIndex]; - iterators[newIndex] = parentBucket.iterators[originalIndex]; - } - } else { - const itemStepIdList: any[] = []; - store.set(itemStepId, batchExecutionValue(itemStepIdList)); - - for (const stepId of copyStepIds) { - const ev = parentBucket.store.get(stepId)!; - if (ev.isBatch) { - // Prepare store with an empty list for each copyPlanId - store.set(stepId, batchExecutionValue([])); - } else { - store.set(stepId, ev); - } - } - - const nullableStepStore = parentBucket.store.get(itemStepId); - if (!nullableStepStore) { - throw new Error( - `GrafastInternalError<017dc8bf-1db1-4983-a41e-e69c6652e4c7>: could not find entry '${itemStepId}' (${parentBucket.layerPlan.operationPlan.dangerouslyGetStep( - itemStepId, - )}) in store for ${parentBucket.layerPlan}`, - ); - } - - // We'll typically be creating fewer nullableBoundary bucket entries - // than we have parent bucket entries (because we exclude nulls), so - // we must "multiply up" (down) the store entries. - for ( - let originalIndex = 0; - originalIndex < parentBucket.size; - originalIndex++ - ) { - if ( - (parentSideEffectValue === null || - !( - parentSideEffectValue._flagsAt(originalIndex) & FLAG_ERROR - )) && - !(nullableStepStore._flagsAt(originalIndex) & FLAG_NULL) - ) { - const newIndex = size++; - map.set(originalIndex, newIndex); - const fieldValue: any[] | null | undefined | Error = - nullableStepStore.at(originalIndex); - itemStepIdList[newIndex] = fieldValue; - - polymorphicPathList[newIndex] = - parentBucket.polymorphicPathList[originalIndex]; - iterators[newIndex] = parentBucket.iterators[originalIndex]; - for (const stepId of copyStepIds) { - const ev = store.get(stepId)!; - if (ev.isBatch) { - const orig = parentBucket.store.get(stepId)!; - ev._copyResult(newIndex, orig, originalIndex); - } - } - } - } - } - - break; - } case "listItem": { const listStepId = this.reason.parentStep.id; const listStepStore = parentBucket.store.get(listStepId); @@ -799,7 +646,7 @@ const ref_batchExecutionValue = te.ref( function makeNewBucketExpression( signature: string, - reasonType: "nullableBoundary" | "listItem" | "mutationField", + reasonType: "listItem" | "mutationField", inner: TE, ): TE { const expr = te`\ @@ -844,73 +691,10 @@ ${inner} function newBucketFactoryInnerExpression( signature: string, copyCount: number, - reasonType: "nullableBoundary" | "listItem", + reasonType: "listItem", ) { - if (reasonType === "nullableBoundary") { - if (Math.random() < 2) { - throw new Error("This code no longer works since we added unary steps."); - } - // PERF: if parent bucket has no nulls/errors in itemStepId - // then we can just copy everything wholesale rather than building - // new arrays and looping. - - const blocks: TE[] = []; - const copyBlocks: TE[] = []; - for (let i = 0; i < copyCount; i++) { - const te_source = te.identifier(`source${i}`); - const te_target = te.identifier(`target${i}`); - const te_i = te.lit(i); - blocks.push( - te`\ - const ${te_source} = parentBucket.store.get(copyStepIds[${te_i}]); - const ${te_target} = ${te_source}.isBatch ? ${ref_batchExecutionValue}([]) : ${te_source}; - store.set(copyStepIds[${te_i}], ${te_target}); -`, - ); - copyBlocks.push( - te`\ - if(${te_target}.isBatch) { - ${te_target}.entries[newIndex] = ${te_source}.at(originalIndex); - } -`, - ); - } - - return makeNewBucketExpression( - signature, - reasonType, - te`\ - const itemStepId = this.rootStep.id; - const nullableStepStore = parentBucket.store.get(itemStepId); - - const itemStepIdList = []; - store.set(itemStepId, ${ref_batchExecutionValue}(itemStepIdList)); - - // Prepare store with an empty list for each copyPlanId -${te.join(blocks, "")} - - // We'll typically be creating fewer nullableBoundary bucket entries - // than we have parent bucket entries (because we exclude nulls), so - // we must "multiply up" (down) the store entries. - for ( - let originalIndex = 0; - originalIndex < parentBucket.size; - originalIndex++ - ) { - const fieldValue = nullableStepStore.at(originalIndex); - if (fieldValue != null) { - const newIndex = size++; - map.set(originalIndex, newIndex); - itemStepIdList[newIndex] = fieldValue; - - polymorphicPathList[newIndex] = parentBucket.polymorphicPathList[originalIndex]; - iterators[newIndex] = parentBucket.iterators[originalIndex]; -${te.join(copyBlocks, "")} - } - } -`, - ); - } else if (reasonType === "listItem") { + // PERF: this check is redundant + if (reasonType === "listItem") { const blocks: TE[] = []; const copyBlocks: TE[] = []; for (let i = 0; i < copyCount; i++) { @@ -977,7 +761,7 @@ ${te.join(copyBlocks, "")} function withNewBucketFactory( signature: string, copyCount: number, - reasonType: "nullableBoundary" | "listItem", + reasonType: "listItem", callback: (factory: Factory) => void, ) { const fn = makeNewBucketCache.get(signature); diff --git a/grafast/grafast/src/engine/OperationPlan.ts b/grafast/grafast/src/engine/OperationPlan.ts index 298a2a05f1..c7ac0dc8b2 100644 --- a/grafast/grafast/src/engine/OperationPlan.ts +++ b/grafast/grafast/src/engine/OperationPlan.ts @@ -24,23 +24,24 @@ import { newSelectionSetDigest, } from "../graphqlCollectFields.js"; import { fieldSelectionsForType } from "../graphqlMergeSelectionSets.js"; -import type { GrafastPlanJSON, ModifierStep } from "../index.js"; +import type { GrafastPlanJSON } from "../index.js"; import { __FlagStep, __ItemStep, __TrackedValueStep, __ValueStep, error, - ExecutableStep, isDev, object, SafeError, + Step, stripAnsi, } from "../index.js"; import { inputStep } from "../input.js"; import { inspect } from "../inspect.js"; import type { AddDependencyOptions, + AnyInputStep, FieldPlanResolver, GrafastPlanBucketJSONv1, GrafastPlanBucketPhaseJSONv1, @@ -63,12 +64,13 @@ import type { ApplyAfterModeArg } from "../operationPlan-input.js"; import { withFieldArgsForArguments } from "../operationPlan-input.js"; import type { PolymorphicStep } from "../step.js"; import { + $$isNullableBoundary, $$noExec, - assertExecutableStep, assertFinalized, + assertStep, isListCapableStep, isPolymorphicStep, - isUnbatchedExecutableStep, + isUnbatchedStep, } from "../step.js"; import { __TrackedValueStepWithDollars } from "../steps/__trackedValue.js"; import { itemsOrStep } from "../steps/connection.js"; @@ -114,7 +116,7 @@ const THROW_PLANNING_ERRORS_ON_SIDE_EFFECTS = atpe === "2"; /** * Returns true for steps that the system populates automatically without executing. */ -function isPrepopulatedStep(step: ExecutableStep) { +function isPrepopulatedStep(step: Step) { return step instanceof __ItemStep || step instanceof __ValueStep; } @@ -228,16 +230,9 @@ export class OperationPlan { */ public rootOutputPlan!: OutputPlan; - private modifierStepCount = 0; - private modifierDepthCount = 0; - private modifierSteps: ModifierStep[] = []; - /** @internal */ public readonly stepTracker = new StepTracker(this); - private maxDeduplicatedStepId = -1; - private maxValidatedStepId = -1; - /** Constraints based on evaluating variables. @internal */ public readonly variableValuesConstraints: Constraint[]; /** Stores the actual variableValues. @internal */ @@ -291,6 +286,12 @@ export class OperationPlan { private scalarPlanInfo: { schema: GraphQLSchema }; + /** @internal */ + public valueNodeToStaticValueCache = new Map< + graphql.ValueNode, + AnyInputStep + >(); + constructor( public readonly schema: GraphQLSchema, public readonly operation: OperationDefinitionNode, @@ -552,7 +553,7 @@ export class OperationPlan { * * @internal */ - public _addStep(plan: ExecutableStep): number { + public _addStep(plan: Step): number { if (!["plan", "validate", "optimize"].includes(this.phase)) { throw new Error( `Creating a plan during the '${this.phase}' phase is forbidden.`, @@ -561,29 +562,8 @@ export class OperationPlan { return this.stepTracker.addStep(plan); } - /** - * Adds a plan to the known steps and returns the number to use as the plan - * id. ONLY to be used from Step, user code should never call this directly. - * - * @internal - */ - public _addModifierStep(step: ModifierStep): string { - if (!["plan", "validate", "optimize"].includes(this.phase)) { - throw new Error( - `Creating a step during the '${this.phase}' phase is forbidden.`, - ); - } - const modifierStepId = `${this.modifierDepthCount}-${this - .modifierStepCount++}`; - this.modifierSteps.push(step); - return modifierStepId; - } - /** @internal Use plan.getStep(id) instead. */ - public getStep: ( - id: number, - requestingStep: ExecutableStep, - ) => ExecutableStep = isDev + public getStep: (id: number, requestingStep: Step) => Step = isDev ? (id, requestingStep) => { if (!["plan", "validate", "optimize"].includes(this.phase)) { throw new Error( @@ -621,7 +601,7 @@ export class OperationPlan { * * @internal */ - public dangerouslyGetStep(id: number): ExecutableStep { + public dangerouslyGetStep(id: number): Step { return this.stepTracker.getStepById(id); } @@ -812,11 +792,11 @@ export class OperationPlan { if (subscriptionPlanResolver !== undefined) { // PERF: optimize this const { haltTree, step: subscribeStep } = this.planField( + rootType.name, fieldName, this.rootLayerPlan, path, POLYMORPHIC_ROOT_PATHS, - fields, subscriptionPlanResolver, "autoApplyAfterParentSubscribePlan", this.trackedRootValueStep, @@ -972,7 +952,7 @@ export class OperationPlan { */ private itemStepForListStep( parentLayerPlan: LayerPlan, - listStep: ExecutableStep | ExecutableStep, + listStep: Step | Step, depth: number, stream: LayerPlanReasonListItemStream | undefined, ): __ItemStep { @@ -1002,7 +982,7 @@ export class OperationPlan { path: readonly string[], polymorphicPath: string | null, polymorphicPaths: ReadonlySet | null, - parentStep: ExecutableStep, + parentStep: Step, objectType: GraphQLObjectType, objectTypeFields: GraphQLFieldMap, isMutation: boolean, @@ -1178,7 +1158,7 @@ export class OperationPlan { ); } - let step: ExecutableStep | PolymorphicStep; + let step: Step | PolymorphicStep; let haltTree = false; const fieldLayerPlan = isMutation ? new LayerPlan(this, outputPlan.layerPlan, { @@ -1264,11 +1244,11 @@ export class OperationPlan { } if (typeof planResolver === "function") { ({ step, haltTree } = this.planField( + objectType.name, fieldName, fieldLayerPlan, fieldPath, polymorphicPaths, - fieldNodes, planResolver, "autoApplyAfterParentPlan", parentStep, @@ -1404,7 +1384,7 @@ export class OperationPlan { path: readonly string[], polymorphicPath: string | null, polymorphicPaths: ReadonlySet | null, - parentStep: ExecutableStep, + parentStep: Step, objectType: GraphQLObjectType, selections: readonly SelectionNode[], resolverEmulation: boolean, @@ -1449,9 +1429,7 @@ export class OperationPlan { if (this.loc !== null) this.loc.pop(); } - private internalDependency( - $step: TStep, - ): TStep { + private internalDependency($step: TStep): TStep { this.stepTracker.internalDependencies.add($step); return $step; } @@ -1469,7 +1447,7 @@ export class OperationPlan { parentObjectType: GraphQLObjectType | null, responseKey: string | null, fieldType: GraphQLOutputType, - $step: ExecutableStep, + $step: Step, locationDetails: LocationDetails, resolverEmulation: boolean, listDepth: number, @@ -1615,20 +1593,20 @@ export class OperationPlan { if (stepAssertion != null) { try { if ( - stepAssertion === ExecutableStep || - stepAssertion.prototype instanceof ExecutableStep + stepAssertion === Step || + stepAssertion.prototype instanceof Step ) { if (!($step instanceof stepAssertion)) { throw new Error( `Step mis-match: expected ${ stepAssertion.name }, but instead found ${ - ($step as ExecutableStep).constructor.name + ($step as Step).constructor.name } (${$step})`, ); } } else { - (stepAssertion as ($step: ExecutableStep) => void)($step); + (stepAssertion as ($step: Step) => void)($step); } } catch (e) { throw new Error( @@ -1648,31 +1626,15 @@ export class OperationPlan { } } - let objectLayerPlan: LayerPlan; - if ( - isNonNull || - (parentLayerPlan.reason.type === "nullableBoundary" && - parentLayerPlan.rootStep === $step) - ) { - objectLayerPlan = parentLayerPlan; - } else { - // Find existing match - const match = parentLayerPlan.children.find( - (clp) => - clp.reason.type === "nullableBoundary" && - clp.reason.parentStep === $step, - ); - if (match !== undefined) { - objectLayerPlan = match; - } else { - objectLayerPlan = new LayerPlan(this, parentLayerPlan, { - type: "nullableBoundary", - parentStep: $step, - }); - objectLayerPlan.setRootStep($step); - } + // TODO: this seems unsafe; what if a different path has dependencies on + // the exact same step but doesn't want the nullable boundary? + if (!isNonNull) { + // INHIBIT ON NULL + $step[$$isNullableBoundary] = true; } + const objectLayerPlan = parentLayerPlan; + const $sideEffect = objectLayerPlan.latestSideEffectStep; try { const objectOutputPlan = new OutputPlan( @@ -1883,7 +1845,7 @@ export class OperationPlan { private getPolymorphicLayerPlan( parentLayerPlan: LayerPlan, path: readonly string[], - $step: ExecutableStep, + $step: Step, allPossibleObjectTypes: readonly GraphQLObjectType[], ): LayerPlan { // OPTIMIZE: I added the $step.id to pathString to fix a planning issue; but maybe we can do this without branching? @@ -1939,14 +1901,14 @@ export class OperationPlan { } private planField( + typeName: string, fieldName: string, layerPlan: LayerPlan, path: readonly string[], polymorphicPaths: ReadonlySet | null, - fieldNodes: FieldNode[], - planResolver: FieldPlanResolver, + planResolver: FieldPlanResolver, applyAfterMode: ApplyAfterModeArg, - rawParentStep: ExecutableStep, + rawParentStep: Step, field: GraphQLField, trackedArguments: TrackedArguments, // If 'true' this is a subscription rather than a stream @@ -1955,7 +1917,9 @@ export class OperationPlan { // Otherwise, it's a list field that has the `@stream` directive applied streamDetails: StreamDetails | true | false | null, deduplicate = true, - ): { haltTree: boolean; step: ExecutableStep } { + ): { haltTree: boolean; step: Step } { + const coordinate = `${typeName}.${fieldName}`; + // The step may have been de-duped whilst sibling steps were planned // PERF: this should be handled in the parent? const parentStep = this.stepTracker.getStepById(rawParentStep.id); @@ -1971,10 +1935,11 @@ export class OperationPlan { withFieldArgsForArguments, null, this, - parentStep, trackedArguments, field, + parentStep, applyAfterMode, + coordinate, (fieldArgs) => planResolver(parentStep, fieldArgs, { fieldName, @@ -1997,7 +1962,7 @@ export class OperationPlan { ); haltTree = true; } - assertExecutableStep(step); + assertStep(step); if (streamDetails === true) { // subscription @@ -2058,7 +2023,6 @@ export class OperationPlan { e, ); const haltTree = true; - this.modifierSteps = []; // PERF: consider deleting all steps that were allocated during this. For // now we'll just rely on tree-shaking. return { step, haltTree }; @@ -2109,41 +2073,6 @@ export class OperationPlan { }; } - public withModifiers(cb: () => T): T { - // Stash previous modifiers - const previousModifierDepthCount = this.modifierDepthCount++; - const previousCount = this.modifierStepCount; - const previousStack = this.modifierSteps.splice( - 0, - this.modifierSteps.length, - ); - this.modifierStepCount = 0; - let result; - let plansToApply; - try { - result = cb(); - } finally { - // Remove the modifier plans from operationPlan and sort them ready for application. - plansToApply = this.modifierSteps - .splice(0, this.modifierSteps.length) - .reverse(); - // Restore previous modifiers - this.modifierStepCount = previousCount; - for (const mod of previousStack) { - this.modifierSteps.push(mod); - } - // Restore previous depth - this.modifierDepthCount = previousModifierDepthCount; - } - - // Apply the plans. - for (let i = 0, l = plansToApply.length; i < l; i++) { - plansToApply[i].apply(); - } - - return result; - } - /** * Sets up tracking for the given value (variableValues, context, rootValue). */ @@ -2183,8 +2112,8 @@ export class OperationPlan { for (const key in step) { const val = step[key as keyof typeof step]; if ( - key !== ("implicitSideEffectStep" satisfies keyof ExecutableStep) && - val instanceof ExecutableStep + key !== ("implicitSideEffectStep" satisfies keyof Step) && + val instanceof Step ) { errors.push( new Error( @@ -2200,10 +2129,7 @@ export class OperationPlan { } } - private replaceStep( - $original: ExecutableStep, - $replacement: ExecutableStep, - ): void { + private replaceStep($original: Step, $replacement: Step): void { this.stepTracker.replaceStep($original, $replacement); } @@ -2211,9 +2137,9 @@ export class OperationPlan { actionDescription: string, order: "dependents-first" | "dependencies-first", isReadonly: boolean, - callback: (plan: ExecutableStep) => ExecutableStep, - processed: Set, - step: ExecutableStep, + callback: (plan: Step) => Step, + processed: Set, + step: Step, ) { // MUST come before anything else, otherwise infinite loops may occur processed.add(step); @@ -2279,7 +2205,7 @@ export class OperationPlan { return step; } - let replacementStep: ExecutableStep = step; + let replacementStep: Step = step; try { replacementStep = withGlobalLayerPlan( step.layerPlan, @@ -2326,12 +2252,12 @@ export class OperationPlan { actionDescription: string, order: "dependents-first" | "dependencies-first", isReadonly: boolean, - callback: (plan: ExecutableStep) => ExecutableStep, + callback: (plan: Step) => Step, ): void { if (isDev) this.stepTracker.lockNewSteps(); const previousStepCount = this.stepTracker.stepCount; - const processed = new Set(); + const processed = new Set(); for (let i = 0; i < this.stepTracker.stepCount; i++) { const step = this.stepTracker.getStepById(i, true); @@ -2391,7 +2317,7 @@ export class OperationPlan { * compatible layers and have the same dependencies. Peers must not have side * effects. A step is not its own peer. */ - private getPeers(step: ExecutableStep): ReadonlyArray { + private getPeers(step: Step): ReadonlyArray { if (step.hasSideEffects) { // Plans with side effects have no peers. return EMPTY_ARRAY; @@ -2439,7 +2365,7 @@ export class OperationPlan { const dependencyCount = deps.length; if (dependencyCount === 0) { - let allPeers: ExecutableStep[] | null = null; + let allPeers: Step[] | null = null; const stepsWithNoDependencies = this.stepTracker.stepsWithNoDependenciesByConstructor.get( step.constructor, @@ -2475,7 +2401,7 @@ export class OperationPlan { } const minDepth = Math.max(deferBoundaryDepth, dep.layerPlan.depth); - let allPeers: ExecutableStep[] | null = null; + let allPeers: Step[] | null = null; for (const { dependencyIndex: peerDependencyIndex, @@ -2525,7 +2451,7 @@ export class OperationPlan { * Compatible layer plans are no less deep than minDepth. */ let minDepth = deferBoundaryDepth; - const possiblePeers: ExecutableStep[] = []; + const possiblePeers: Step[] = []; // Loop backwards since last dependency is most likely to be most unique for ( let dependencyIndex = dependencyCount - 1; @@ -2583,7 +2509,7 @@ export class OperationPlan { if (possiblePeers.length === 0) { return EMPTY_ARRAY; } - let allPeers: ExecutableStep[] | null = null; + let allPeers: Step[] | null = null; outerloop: for (const possiblyPeer of possiblePeers) { if (possiblyPeer.layerPlan.depth < minDepth) continue; // We know the final dependency matches and the dependency count @@ -2603,7 +2529,7 @@ export class OperationPlan { } } - private isImmoveable(step: ExecutableStep): boolean { + private isImmoveable(step: Step): boolean { if (step.hasSideEffects) { return true; } @@ -2622,7 +2548,7 @@ export class OperationPlan { * Attempts to hoist the step into a higher layerPlan to maximize * deduplication. */ - private hoistStep(step: ExecutableStep) { + private hoistStep(step: Step) { if (this.isImmoveable(step)) { return; } @@ -2681,15 +2607,6 @@ export class OperationPlan { // Should be safe to hoist. break; } - case "nullableBoundary": { - // Safe to hoist _unless_ it depends on the root step of the nullableBoundary. - const $root = step.layerPlan.reason.parentStep!; - if (sudo(step).dependencies.includes($root)) { - return; - } else { - break; - } - } case "listItem": { // Should be safe to hoist so long as it doesn't depend on the // `__ItemStep` itself (which is just a regular dependency, so it'll be @@ -2799,7 +2716,7 @@ export class OperationPlan { * Attempts to push the step into the lowest layerPlan to minimize the need * for copying between layer plans. */ - private pushDown(step: T): T { + private pushDown(step: T): T { if (this.isImmoveable(step)) { return step; } @@ -2814,7 +2731,6 @@ export class OperationPlan { case "defer": case "polymorphic": case "subroutine": - case "nullableBoundary": case "listItem": { // Fine to push lower break; @@ -2966,7 +2882,7 @@ export class OperationPlan { return step; } - private _deduplicateInnerLogic(step: ExecutableStep) { + private _deduplicateInnerLogic(step: Step) { if (step instanceof __ItemStep) { // __ItemStep cannot be deduplicated return null; @@ -3000,7 +2916,7 @@ export class OperationPlan { // Prefer the step that's closest to the root LayerPlan; failing that, prefer the step with the lowest id. let minDepth = step.layerPlan.depth; - let stepsAtMinDepth: ExecutableStep[] = [step]; + let stepsAtMinDepth: Step[] = [step]; for (const step of equivalentSteps) { const depth = step.layerPlan.depth; if (depth < minDepth) { @@ -3014,7 +2930,7 @@ export class OperationPlan { return { stepsAtMinDepth, equivalentSteps }; } - private deduplicateStep(step: ExecutableStep): ExecutableStep { + private deduplicateStep(step: Step): Step { step.isArgumentsFinalized = true; if (step.deduplicate == null) return step; const result = this._deduplicateInnerLogic(step); @@ -3094,9 +3010,9 @@ export class OperationPlan { */ private deduplicateStepsProcess( - processed: Set, + processed: Set, start: number, - step: ExecutableStep, + step: Step, ) { processed.add(step); for (const dep of sudo(step).dependencies) { @@ -3131,7 +3047,7 @@ export class OperationPlan { return; } - const processed = new Set(); + const processed = new Set(); for (let i = start; i < end; i++) { const step = this.stepTracker.stepById[i]; if (!step || step.id !== i || processed.has(step)) continue; @@ -3143,7 +3059,7 @@ export class OperationPlan { // More steps were created during deduplicate; let's deduplicate those! const MAX_DEPTH = 5; if (depth > MAX_DEPTH) { - const newSteps: (ExecutableStep | null)[] = []; + const newSteps: (Step | null)[] = []; for (let i = end, l = this.stepTracker.stepCount; i < l; i++) { newSteps.push(this.stepTracker.stepById[i]); } @@ -3157,7 +3073,7 @@ export class OperationPlan { } } - private hoistAndDeduplicate(step: ExecutableStep) { + private hoistAndDeduplicate(step: Step) { this.hoistStep(step); // Even if step wasn't hoisted, its deps may have been so we should still // re-deduplicate it. @@ -3182,7 +3098,7 @@ export class OperationPlan { * communicate with its (deep) dependencies, and even to replace itself with * a different plan. */ - private optimizeStep(inStep: ExecutableStep): ExecutableStep { + private optimizeStep(inStep: Step): Step { const step = inStep.allowMultipleOptimizations && inStep.deduplicate ? this.deduplicateStep(inStep) @@ -3225,7 +3141,7 @@ export class OperationPlan { * know all our dependent's needs before we optimise ourself. */ private optimizeSteps() { - const thirdAndFutureLoopReplacedPlans: ExecutableStep[] = []; + const thirdAndFutureLoopReplacedPlans: Step[] = []; for (let loops = 0; loops < MAX_OPTIMIZATION_LOOPS; loops++) { let replacedPlan = false; this.processSteps( @@ -3291,10 +3207,10 @@ export class OperationPlan { // We're only going to inline one if we can inline all. const toInline: Array<{ - $dependent: Sudo; + $dependent: Sudo; dependencyIndex: number; inlineDetails: AddDependencyOptions; - dependent: ExecutableStep["dependents"][number]; + dependent: Step["dependents"][number]; }> = []; for (const dependent of $flag.dependents) { const { step, dependencyIndex } = dependent; @@ -3333,11 +3249,6 @@ export class OperationPlan { /** Finalizes each step */ private finalizeSteps(): void { const initialStepCount = this.stepTracker.stepCount; - assert.strictEqual( - this.modifierSteps.length, - 0, - "No modifier steps expected when performing finalizeSteps", - ); for (const step of this.stepTracker.activeSteps) { const wasLocked = isDev && unlock(step); step.finalize(); @@ -3357,7 +3268,7 @@ export class OperationPlan { * ancestor layers until we hit the layerPlan that `dep` is from. */ const ensurePlanAvailableInLayer = ( - dep: ExecutableStep, + dep: Step, layerPlan: LayerPlan, ): void => { let currentLayerPlan: LayerPlan | null = layerPlan; @@ -3405,11 +3316,11 @@ export class OperationPlan { const sideEffectSteps = layerPlan.pendingSteps.filter( (s) => s.hasSideEffects, ); - const pending = new Set(layerPlan.pendingSteps); - const processed = new Set(); + const pending = new Set(layerPlan.pendingSteps); + const processed = new Set(); - let latestSideEffectStep: ExecutableStep | null = null; - const processSideEffectPlan = (step: ExecutableStep) => { + let latestSideEffectStep: Step | null = null; + const processSideEffectPlan = (step: Step) => { if (processed.has(step) || isPrepopulatedStep(step)) { return; } @@ -3417,8 +3328,8 @@ export class OperationPlan { processed.add(step); pending.delete(step); - const sideEffectDeps: ExecutableStep[] = []; - const rest: ExecutableStep[] = []; + const sideEffectDeps: Step[] = []; + const rest: Step[] = []; for (const dep of sstep.dependencies) { if (dep.layerPlan !== layerPlan) { continue; @@ -3466,7 +3377,7 @@ export class OperationPlan { processSideEffectPlan(sideEffectStep); } - const readyToExecute = (step: ExecutableStep): boolean => { + const readyToExecute = (step: Step): boolean => { for (const dep of sudo(step).dependencies) { if (dep.layerPlan === layerPlan && pending.has(dep)) { return false; @@ -3476,7 +3387,7 @@ export class OperationPlan { }; while (pending.size > 0) { - const nextSteps: ExecutableStep[] = []; + const nextSteps: Step[] = []; for (const step of pending) { if (readyToExecute(step)) { nextSteps.push(step); @@ -3502,7 +3413,7 @@ export class OperationPlan { ) { sstep.implicitSideEffectStep = latestSideEffectStep; } - if (step.isSyncAndSafe && isUnbatchedExecutableStep(step)) { + if (step.isSyncAndSafe && isUnbatchedStep(step)) { if (phase.unbatchedSyncAndSafeSteps !== undefined) { phase.unbatchedSyncAndSafeSteps.push({ step, @@ -3530,7 +3441,7 @@ export class OperationPlan { do { foundOne = false; for (const step of pending) { - if (step.isSyncAndSafe && isUnbatchedExecutableStep(step)) { + if (step.isSyncAndSafe && isUnbatchedStep(step)) { if (readyToExecute(step)) { processed.add(step); pending.delete(step); @@ -3696,7 +3607,7 @@ export class OperationPlan { } generatePlanJSON(): GrafastPlanJSON { - function printStep(step: ExecutableStep): GrafastPlanStepJSONv1 { + function printStep(step: Step): GrafastPlanStepJSONv1 { const metaString = step.toStringMeta(); const sstep = sudo(step); return { @@ -3740,10 +3651,6 @@ export class OperationPlan { const { type } = reason; return { type }; } - case "nullableBoundary": { - const { type, parentStep } = reason; - return { type, parentStepId: parentStep.id }; - } case "listItem": { const { type, parentStep, stream } = reason; return { type, parentStepId: parentStep.id, stream }; @@ -3801,7 +3708,7 @@ export class OperationPlan { } finishSubroutine( - subroutineStep: ExecutableStep, + subroutineStep: Step, layerPlan: LayerPlan, ): void { // Now find anything that these plans are dependent on and make ourself @@ -3833,8 +3740,8 @@ export class OperationPlan { this.stepTracker.deleteLayerPlan(layerPlan); } - getStepsByMetaKey(metaKey: string | number | symbol): ExecutableStep[] { - const matches: ExecutableStep[] = []; + getStepsByMetaKey(metaKey: string | number | symbol): Step[] { + const matches: Step[] = []; for (const step of this.stepTracker.activeSteps) { if (step.metaKey === metaKey) { matches.push(step); @@ -3843,7 +3750,7 @@ export class OperationPlan { return matches; } - getStepsByStepClass(klass: { + getStepsByStepClass(klass: { new (...args: any[]): TClass; }): TClass[] { const matches: TClass[] = []; @@ -3870,8 +3777,8 @@ export class OperationPlan { * * @experimental */ - cacheStep( - ownerStep: ExecutableStep, + cacheStep( + ownerStep: Step, actionKey: string, cacheKey: symbol | string | number | boolean | null | undefined, cb: () => T, @@ -3884,7 +3791,7 @@ export class OperationPlan { const cacheIt = () => { const stepToCache = cb(); - if (!(stepToCache instanceof ExecutableStep)) { + if (!(stepToCache instanceof Step)) { throw new Error( `The callback passed to cacheStep must always return an ExecutableStep; but this call from ${ownerStep} returned instead ${inspect( stepToCache, @@ -4080,11 +3987,11 @@ function newLayerPlanPhase(): LayerPlanPhase { function throwNoNewStepsError( operationPlan: OperationPlan, actionDescription: string, - step: ExecutableStep, + step: Step, previousStepCount: number, message: string, ) { - const newSteps: (ExecutableStep | null)[] = []; + const newSteps: (Step | null)[] = []; for ( let i = previousStepCount, l = operationPlan.stepTracker.stepCount; i < l; @@ -4100,7 +4007,7 @@ function throwNoNewStepsError( } type StreamDetails = { - if: ExecutableStep; - initialCount: ExecutableStep; - label: ExecutableStep>; + if: Step; + initialCount: Step; + label: Step>; }; diff --git a/grafast/grafast/src/engine/OutputPlan.ts b/grafast/grafast/src/engine/OutputPlan.ts index 8fb634268f..195cc4b498 100644 --- a/grafast/grafast/src/engine/OutputPlan.ts +++ b/grafast/grafast/src/engine/OutputPlan.ts @@ -22,7 +22,7 @@ import type { } from "../interfaces.js"; import { $$concreteType, $$streamMore, FLAG_ERROR } from "../interfaces.js"; import { isPolymorphicData } from "../polymorphic.js"; -import type { ExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; import { expressionSymbol } from "../steps/access.js"; import type { PayloadRoot } from "./executeOutputPlan.js"; import type { LayerPlan, LayerPlanReasonListItem } from "./LayerPlan.js"; @@ -167,12 +167,12 @@ export class OutputPlan { * The step that represents the root value. How this is used depends on the * OutputPlanMode. */ - public readonly rootStep: ExecutableStep; + public readonly rootStep: Step; /** * If this output plan should resolve to an error if a side effect step * raises an error, this is that side effect. */ - public readonly sideEffectStep: ExecutableStep | null; + public readonly sideEffectStep: Step | null; /** * Appended to the root step when accessed to avoid the need for AccessSteps @@ -232,7 +232,7 @@ export class OutputPlan { * * For `introspection`, `null` it's irrelevant. Use `constant(null)` or whatever. */ - rootStep: ExecutableStep, + rootStep: Step, public readonly type: TType, locationDetails: LocationDetails, ) { @@ -466,7 +466,7 @@ export class OutputPlan { | undefined = ($root.unbatchedExecute! as any)[expressionSymbol]; if (expressionDetails !== undefined) { // @ts-ignore - const $parent: ExecutableStep = $root.getDep(0); + const { step: $parent } = $root.getDepOptions(0); this.layerPlan.operationPlan.stepTracker.setOutputPlanRootStep( this, $parent, @@ -492,7 +492,7 @@ export class OutputPlan { stepADependsOnStepB($root, $sideEffect) ) { // It's marked readonly, but we override it anyway - (this.sideEffectStep as ExecutableStep | null) = null; + (this.sideEffectStep as Step | null) = null; } } diff --git a/grafast/grafast/src/engine/StepTracker.ts b/grafast/grafast/src/engine/StepTracker.ts index fed8e3db5d..f212fd2b50 100644 --- a/grafast/grafast/src/engine/StepTracker.ts +++ b/grafast/grafast/src/engine/StepTracker.ts @@ -2,8 +2,13 @@ import { isDev } from "../dev.js"; import type { OperationPlan } from "../index.js"; import { inspect } from "../inspect.js"; import type { AddDependencyOptions } from "../interfaces.js"; -import { $$subroutine, ALL_FLAGS, TRAPPABLE_FLAGS } from "../interfaces.js"; -import { ExecutableStep } from "../step.js"; +import { + $$subroutine, + ALL_FLAGS, + FLAG_NULL, + TRAPPABLE_FLAGS, +} from "../interfaces.js"; +import { $$isNullableBoundary, Step } from "../step.js"; import { __FlagStep } from "../steps/__flag.js"; import { sudo, writeableArray } from "../utils.js"; import type { @@ -29,10 +34,10 @@ export class StepTracker { /** @internal */ public lockedStepCount = 0; /** @internal */ - public activeSteps = new Set(); + public activeSteps = new Set(); /** @internal */ public stepById: { - [stepId: number]: ExecutableStep | null; + [stepId: number]: Step | null; } = []; /** @internal */ private aliasesById: { @@ -42,18 +47,18 @@ export class StepTracker { public stepsWithNoDependenciesByConstructor = new Map< // eslint-disable-next-line @typescript-eslint/ban-types Function, - Set + Set >(); /** @internal */ - public internalDependencies = new Set(); + public internalDependencies = new Set(); /** @internal */ - public outputPlansByRootStep = new Map>(); + public outputPlansByRootStep = new Map>(); /** @internal */ - public layerPlansByRootStep = new Map>(); + public layerPlansByRootStep = new Map>(); /** @internal */ public layerPlansByParentStep = new Map< - ExecutableStep, + Step, Set> >(); @@ -72,7 +77,7 @@ export class StepTracker { constructor(private readonly operationPlan: OperationPlan) {} public newStepsSince(oldStepCount: number) { - return (this.stepById as ExecutableStep[]).slice(oldStepCount); + return (this.stepById as Step[]).slice(oldStepCount); } private forbid( @@ -105,7 +110,7 @@ export class StepTracker { this.forbid("setOutputPlanRootStep"); } - public addStep($step: ExecutableStep): number { + public addStep($step: Step): number { const stepId = this.stepCount++; this.activeSteps.add($step); const ctor = $step.constructor; @@ -137,7 +142,6 @@ export class StepTracker { case "defer": { break; } - case "nullableBoundary": case "listItem": case "polymorphic": { const store = this.layerPlansByParentStep.get( @@ -245,8 +249,8 @@ export class StepTracker { } } // Remove all plans in this layer - const handled = new Set(); - const handle = (step: ExecutableStep) => { + const handled = new Set(); + const handle = (step: Step) => { if (handled.has(step)) return; handled.add(step); // Handle dependents first @@ -264,9 +268,9 @@ export class StepTracker { } } - public getStepById(id: number): ExecutableStep; - public getStepById(id: number, allowUnset: true): ExecutableStep | null; - public getStepById(id: number, allowUnset = false): ExecutableStep | null { + public getStepById(id: number): Step; + public getStepById(id: number, allowUnset: true): Step | null; + public getStepById(id: number, allowUnset = false): Step | null { const step = this.stepById[id]; if (!step && !allowUnset) { throw new Error(`Illegal step access? Step with id ${id} doesn't exist`); @@ -282,7 +286,7 @@ export class StepTracker { } public addStepDependency( - raw$dependent: ExecutableStep, + raw$dependent: Step, options: AddDependencyOptions, ): number { const $dependent = sudo(raw$dependent); @@ -302,7 +306,7 @@ export class StepTracker { "You cannot add a dependency after the step is finalized.", ); } - if (!($dependency instanceof ExecutableStep)) { + if (!($dependency instanceof Step)) { throw new Error( `Error occurred when adding dependency for '${$dependent}', value passed was not a step, it was '${inspect( $dependency, @@ -327,11 +331,12 @@ export class StepTracker { const dependentDependencyOnReject = writeableArray( $dependent.dependencyOnReject, ); - const { - skipDeduplication, - acceptFlags = ALL_FLAGS & ~$dependent.defaultForbiddenFlags, - onReject, - } = options; + const { skipDeduplication, onReject } = options; + let acceptFlags = + options.acceptFlags ?? ALL_FLAGS & ~$dependent.defaultForbiddenFlags; + if ($dependency[$$isNullableBoundary]) { + acceptFlags = acceptFlags & ~FLAG_NULL; + } // When copying dependencies between classes, we might not want to // deduplicate because we might refer to the dependency by its index. As // such, we should only dedupe by default but allow opting out. @@ -369,7 +374,7 @@ export class StepTracker { } public addStepUnaryDependency( - $dependent: ExecutableStep, + $dependent: Step, options: AddDependencyOptions, ): number { const $dependency = options.step; @@ -381,10 +386,7 @@ export class StepTracker { return this.addStepDependency($dependent, options); } - public setOutputPlanRootStep( - outputPlan: OutputPlan, - $dependency: ExecutableStep, - ) { + public setOutputPlanRootStep(outputPlan: OutputPlan, $dependency: Step) { if (!this.activeSteps.has($dependency)) { throw new Error( `Cannot add ${$dependency} to ${outputPlan} because it's deleted`, @@ -414,10 +416,7 @@ export class StepTracker { } } - public setLayerPlanRootStep( - layerPlan: LayerPlan, - $dependency: ExecutableStep, - ) { + public setLayerPlanRootStep(layerPlan: LayerPlan, $dependency: Step) { if (!this.activeSteps.has($dependency)) { throw new Error( `Cannot add ${$dependency} to ${layerPlan} because it's deleted`, @@ -449,10 +448,7 @@ export class StepTracker { } /** @internal */ - public replaceStep( - $original: ExecutableStep, - $replacement: ExecutableStep, - ): void { + public replaceStep($original: Step, $replacement: Step): void { if (!this.activeSteps.has($original)) { // OPTIMIZE: seems like there's unnecessary work being done here. // console.trace(`${$original} should be replaced with ${$replacement} but it's no longer alive`); @@ -579,7 +575,7 @@ export class StepTracker { /** * Return true if this step can be tree-shaken. */ - private isNotNeeded($step: ExecutableStep): boolean { + private isNotNeeded($step: Step): boolean { if ($step.dependents.length !== 0) return false; if ($step.hasSideEffects) return false; if (this.internalDependencies.has($step)) { @@ -599,14 +595,14 @@ export class StepTracker { */ public purgeBackTo(count: number): void { const upper = this.stepCount; - const toRemove = new Set(); + const toRemove = new Set(); for (let i = count; i < upper; i++) { const step = this.stepById[i]; if (step) { toRemove.add(step); } } - const remove = (step: ExecutableStep): void => { + const remove = (step: Step): void => { if (this.stepById[step.id] !== step) { return; } @@ -634,7 +630,7 @@ export class StepTracker { * steps no longer have any dependents (steps, layer plans or output plans) * then they can also be eradicated _except_ during the 'plan' phase. */ - private eradicate($original: ExecutableStep) { + private eradicate($original: Step) { if ($original[$$subroutine] !== null) { this.deleteLayerPlan($original[$$subroutine]); } @@ -719,13 +715,13 @@ export class StepTracker { $original.destroy(); } - moveStepToLayerPlan(step: ExecutableStep, targetLayerPlan: LayerPlan) { + moveStepToLayerPlan(step: Step, targetLayerPlan: LayerPlan) { this.removeStepFromItsLayerPlan(step); (step.layerPlan as any) = targetLayerPlan; this.addStepToItsLayerPlan(step); } - addStepToItsLayerPlan(step: ExecutableStep) { + addStepToItsLayerPlan(step: Step) { const { layerPlan: { stepsByConstructor }, constructor, @@ -738,7 +734,7 @@ export class StepTracker { set.add(step); } - removeStepFromItsLayerPlan(step: ExecutableStep) { + removeStepFromItsLayerPlan(step: Step) { step.layerPlan.stepsByConstructor.get(step.constructor)!.delete(step); } @@ -754,9 +750,6 @@ export class StepTracker { } } -function defaultNonUnaryMessage( - $dependent: ExecutableStep, - $dependency: ExecutableStep, -) { +function defaultNonUnaryMessage($dependent: Step, $dependency: Step) { return `${$dependent} attempted to create a unary step dependency on ${$dependency}, but that step is not unary. See https://err.red/gud`; } diff --git a/grafast/grafast/src/engine/executeBucket.ts b/grafast/grafast/src/engine/executeBucket.ts index 312bded411..ccde52e8e9 100644 --- a/grafast/grafast/src/engine/executeBucket.ts +++ b/grafast/grafast/src/engine/executeBucket.ts @@ -33,7 +33,7 @@ import { FLAG_STOPPED, NO_FLAGS, } from "../interfaces.js"; -import type { ExecutableStep, UnbatchedExecutableStep } from "../step.js"; +import type { Step, UnbatchedStep } from "../step.js"; import { __ItemStep } from "../steps/__item.js"; import { __ValueStep } from "../steps/__value.js"; import { timeSource } from "../timeSource.js"; @@ -96,7 +96,7 @@ export function executeBucket( */ function reallyExecuteStepWithoutFiltering( size: number, - step: ExecutableStep, + step: Step, dependencies: ReadonlyArray, extra: ExecutionExtra, ): PromiseOrDirect> { @@ -270,7 +270,7 @@ export function executeBucket( // TODO: it seems that if this throws an error it results in a permanent // hang of defers? In the mean time... Don't throw any errors here! const success = ( - finishedStep: ExecutableStep, + finishedStep: Step, bucket: Bucket, resultIndex: number, value: unknown, @@ -502,9 +502,7 @@ export function executeBucket( allStepsIndex < allStepsLength; allStepsIndex++ ) { - const step = sudo( - _allSteps[allStepsIndex] as UnbatchedExecutableStep, - ); + const step = sudo(_allSteps[allStepsIndex] as UnbatchedStep); // Unary steps only need to be processed once if (step._isUnary && dataIndex !== 0) { @@ -694,7 +692,7 @@ export function executeBucket( function executeOrStream( count: number, - step: ExecutableStep, + step: Step, values: ReadonlyArray, extra: ExecutionExtra, ): ExecutionResults { @@ -734,7 +732,7 @@ export function executeBucket( * back out at the end. */ function reallyExecuteStepWithFiltering( - step: ExecutableStep, + step: Step, dependenciesIncludingSideEffects: ReadonlyArray, dependencyForbiddenFlags: ReadonlyArray, dependencyOnReject: ReadonlyArray, @@ -906,7 +904,7 @@ export function executeBucket( * This function MIGHT throw or reject, so be sure to handle that. */ function executeStep( - step: ExecutableStep, + step: Step, ): PromiseOrDirect> { try { const meta = @@ -927,7 +925,7 @@ export function executeBucket( let needsFiltering = false; const defaultForbiddenFlags = sudo(step).defaultForbiddenFlags; const addDependency = ( - $dep: ExecutableStep, + $dep: Step, forbiddenFlags: ExecutionEntryFlags, onReject: Error | null | undefined, ) => { @@ -1034,7 +1032,6 @@ export function executeBucket( loop: for (const childLayerPlan of childLayerPlans) { switch (childLayerPlan.reason.type) { - case "nullableBoundary": case "listItem": case "polymorphic": { const childBucket = childLayerPlan.newBucket(bucket); @@ -1366,7 +1363,7 @@ function executeStepFromEvent(event: ExecuteStepEvent) { function evaluateStream( bucket: Bucket, - step: ExecutableStep, + step: Step, ): ExecutionDetailsStream | null { const stream = step._stepOptions.stream; if (!stream) return null; diff --git a/grafast/grafast/src/engine/lib/defaultPlanResolver.ts b/grafast/grafast/src/engine/lib/defaultPlanResolver.ts index ed188421c7..53800d0423 100644 --- a/grafast/grafast/src/engine/lib/defaultPlanResolver.ts +++ b/grafast/grafast/src/engine/lib/defaultPlanResolver.ts @@ -1,10 +1,10 @@ import type { FieldPlanResolver } from "../../interfaces.js"; -import type { ExecutableStep } from "../../step.js"; +import type { Step } from "../../step.js"; import { access } from "../../steps/access.js"; export const defaultPlanResolver: FieldPlanResolver< any, - ExecutableStep & { get?: (field: string) => ExecutableStep }, + Step & { get?: (field: string) => Step }, any > = ($step, _, { fieldName }) => { return typeof $step.get === "function" diff --git a/grafast/grafast/src/engine/lib/withGlobalLayerPlan.ts b/grafast/grafast/src/engine/lib/withGlobalLayerPlan.ts index 437c2da342..cba458647e 100644 --- a/grafast/grafast/src/engine/lib/withGlobalLayerPlan.ts +++ b/grafast/grafast/src/engine/lib/withGlobalLayerPlan.ts @@ -1,4 +1,4 @@ -import type { ExecutableStep } from "../.."; +import type { Step } from "../.."; import type { LayerPlan } from "../LayerPlan"; let globalData_layerPlan: LayerPlan | undefined = undefined; @@ -47,6 +47,6 @@ export function currentPolymorphicPaths(): ReadonlySet | null { return globalData_polymorphicPaths; } -export function isUnaryStep($step: ExecutableStep): boolean { +export function isUnaryStep($step: Step): boolean { return $step._isUnary; } diff --git a/grafast/grafast/src/engine/lock.ts b/grafast/grafast/src/engine/lock.ts index 5d5a8a96e0..5a9b9b7279 100644 --- a/grafast/grafast/src/engine/lock.ts +++ b/grafast/grafast/src/engine/lock.ts @@ -1,4 +1,4 @@ -import type { ExecutableStep } from ".."; +import type { Step } from ".."; /** * Used internally to prevent steps using other steps' optimize/finalize/etc @@ -8,13 +8,11 @@ import type { ExecutableStep } from ".."; */ export const $$unlock = Symbol("unlock"); -function isLocked( - $step: ExecutableStep, -): $step is ExecutableStep & { [$$unlock](): void } { +function isLocked($step: Step): $step is Step & { [$$unlock](): void } { return $step[$$unlock] !== undefined; } -export function lock($step: ExecutableStep): void { +export function lock($step: Step): void { if (!isLocked($step)) { const { optimize, finalize, deduplicate, deduplicatedWith } = $step; if (optimize) { @@ -66,7 +64,7 @@ export function lock($step: ExecutableStep): void { } } -export function unlock($step: ExecutableStep): boolean { +export function unlock($step: Step): boolean { if (isLocked($step)) { $step[$$unlock](); return true; diff --git a/grafast/grafast/src/grafastPrint.ts b/grafast/grafast/src/grafastPrint.ts index 60056a3796..dce7cf36b3 100644 --- a/grafast/grafast/src/grafastPrint.ts +++ b/grafast/grafast/src/grafastPrint.ts @@ -4,7 +4,7 @@ import type { Bucket } from "./bucket.js"; import { bucketToString } from "./engine/executeBucket.js"; import { OutputPlan } from "./engine/OutputPlan.js"; import { inspect } from "./inspect.js"; -import { ExecutableStep } from "./step.js"; +import { Step } from "./step.js"; import { stripAnsi } from "./stripAnsi.js"; import { isDeferred, @@ -60,7 +60,7 @@ export function _grafastPrint( if (symbol === ROOT_VALUE_OBJECT) { return chalk.gray`(blank)`; } - if (symbol instanceof ExecutableStep) { + if (symbol instanceof Step) { return String(symbol); } if (Array.isArray(symbol)) { diff --git a/grafast/grafast/src/index.ts b/grafast/grafast/src/index.ts index d01ec34cfd..a5f78288e1 100644 --- a/grafast/grafast/src/index.ts +++ b/grafast/grafast/src/index.ts @@ -43,15 +43,20 @@ import type { $$cacheByOperation, $$hooked, $$queryCache, + ArgumentApplyPlanResolver, BatchExecutionValue, CacheByOperationEntry, DataFromStep, + EnumValueApplyResolver, EstablishOperationPlanEvent, ExecuteEvent, ExecuteStepEvent, ExecutionValue, GrafastExecutionArgs, GrafastTimeouts, + InputObjectFieldApplyResolver, + InputObjectTypeBakedInfo, + InputObjectTypeBakedResolver, ParseAndValidateEvent, PrepareArgsEvent, ScalarInputPlanResolver, @@ -64,13 +69,10 @@ import { $$extensions, $$idempotent, $$verbatim, - ArgumentApplyPlanResolver, - ArgumentInputPlanResolver, BaseEventMap, BaseGraphQLArguments, BaseGraphQLRootValue, BaseGraphQLVariables, - EnumValueApplyPlanResolver, EventCallback, EventMapKey, ExecutionDetails, @@ -92,10 +94,6 @@ import { GrafastResultStreamList, GrafastSubscriber, GrafastValuesList, - InputObjectFieldApplyPlanResolver, - InputObjectFieldInputPlanResolver, - InputObjectTypeInputPlanResolver, - InputStep, JSONArray, JSONObject, JSONValue, @@ -114,24 +112,23 @@ import { import { getGrafastMiddleware } from "./middleware.js"; import type { Multistep, UnwrapMultistep } from "./multistep.js"; import { multistep } from "./multistep.js"; +import { getNullableInputTypeAtPath } from "./operationPlan-input.js"; import { polymorphicWrap } from "./polymorphic.js"; import { assertExecutableStep, assertListCapableStep, - assertModifierStep, - BaseStep, - ExecutableStep, + assertStep, isExecutableStep, isListCapableStep, isListLikeStep, - isModifierStep, isObjectLikeStep, + isStep, ListCapableStep, ListLikeStep, - ModifierStep, ObjectLikeStep, PolymorphicStep, - UnbatchedExecutableStep, + Step, + UnbatchedStep, } from "./step.js"; import { __FlagStep, @@ -147,11 +144,17 @@ import { access, AccessStep, ActualKeyByDesiredKey, + applyInput, + ApplyInputStep, applyTransforms, ApplyTransformsStep, assertEdgeCapableStep, + assertModifier, assertNotNull, assertPageInfoCapableStep, + bakedInput, + bakedInputRuntime, + BakedInputStep, condition, ConditionStep, connection, @@ -160,6 +163,7 @@ import { constant, ConstantStep, context, + createObjectAndApplyChildren, debugPlans, each, EdgeCapableStep, @@ -177,6 +181,7 @@ import { groupBy, GroupByPlanMemo, inhibitOnNull, + isModifier, lambda, LambdaStep, last, @@ -199,6 +204,8 @@ import { LoadOptions, LoadStep, makeDecodeNodeId, + makeDecodeNodeIdRuntime, + Modifier, node, nodeIdFromNode, NodeStep, @@ -220,9 +227,9 @@ import { reverseArray, ReverseStep, rootValue, + Setter, setter, - SetterCapableStep, - SetterStep, + SetterCapable, sideEffect, SideEffectStep, specFromNodeId, @@ -240,6 +247,7 @@ import { arrayOfLength, arraysMatch, getEnumValueConfig, + getEnumValueConfigs, GrafastInputFieldConfigMap, GrafastInputObjectType, GrafastObjectType, @@ -279,23 +287,26 @@ export { access, AccessStep, ActualKeyByDesiredKey, + applyInput, + ApplyInputStep, applyTransforms, ApplyTransformsStep, - ArgumentApplyPlanResolver, - ArgumentInputPlanResolver, arrayOfLength, arraysMatch, assertEdgeCapableStep, assertExecutableStep, assertListCapableStep, - assertModifierStep, + assertModifier, assertNotNull, assertPageInfoCapableStep, + assertStep, + bakedInput, + bakedInputRuntime, + BakedInputStep, BaseEventMap, BaseGraphQLArguments, BaseGraphQLRootValue, BaseGraphQLVariables, - BaseStep, BatchExecutionValue, condition, ConditionStep, @@ -305,6 +316,7 @@ export { constant, ConstantStep, context, + createObjectAndApplyChildren, DataFromObjectSteps, DataFromStep, debugPlans, @@ -315,12 +327,11 @@ export { EdgeCapableStep, EdgeStep, EnumPlans, - EnumValueApplyPlanResolver, error, ErrorStep, EventCallback, EventMapKey, - ExecutableStep, + Step as ExecutableStep, execute, ExecutionDetails, ExecutionDetailsStream, @@ -342,7 +353,9 @@ export { FirstStep, flagError, getEnumValueConfig, + getEnumValueConfigs, getGrafastMiddleware, + getNullableInputTypeAtPath, grafast, GrafastArgumentConfig, GrafastExecutionArgs, @@ -369,22 +382,21 @@ export { groupBy, GroupByPlanMemo, inhibitOnNull, - InputObjectFieldApplyPlanResolver, - InputObjectFieldInputPlanResolver, inputObjectFieldSpec, InputObjectPlans, - InputObjectTypeInputPlanResolver, + InputObjectTypeBakedInfo, + InputObjectTypeBakedResolver, InputObjectTypeSpec, - InputStep, InterfaceOrUnionPlans, isDev, isExecutableStep, isListCapableStep, isListLikeStep, - isModifierStep, + isModifier, isObjectLikeStep, isPromiseLike, isSafeError, + isStep, isUnaryStep, JSONArray, JSONObject, @@ -413,9 +425,10 @@ export { LoadOptions, LoadStep, makeDecodeNodeId, + makeDecodeNodeIdRuntime, makeGrafastSchema, Maybe, - ModifierStep, + Modifier, Multistep, multistep, newGrafastFieldConfigBuilder, @@ -460,12 +473,13 @@ export { SafeError, ScalarPlanResolver, ScalarPlans, + Setter, setter, - SetterCapableStep, - SetterStep, + SetterCapable, sideEffect, SideEffectStep, specFromNodeId, + Step, stepADependsOnStepB, stepAMayDependOnStepB, StepOptimizeOptions, @@ -482,8 +496,9 @@ export { TRAP_INHIBITED, TypedEventEmitter, UnaryExecutionValue, - UnbatchedExecutableStep, + UnbatchedStep as UnbatchedExecutableStep, UnbatchedExecutionExtra, + UnbatchedStep, UnwrapMultistep, }; @@ -495,6 +510,7 @@ exportAsMany("grafast", { OperationPlan, defer, execute, + getNullableInputTypeAtPath, getGrafastMiddleware, grafast, grafastSync, @@ -504,11 +520,12 @@ exportAsMany("grafast", { __InputObjectStep, __InputStaticLeafStep, assertExecutableStep, + assertStep, assertListCapableStep, - assertModifierStep, - isExecutableStep, + assertModifier, + isStep, isListCapableStep, - isModifierStep, + isModifier, isObjectLikeStep, isListLikeStep, __ItemStep, @@ -517,6 +534,11 @@ exportAsMany("grafast", { __ValueStep, access, AccessStep, + applyInput, + ApplyInputStep, + bakedInput, + bakedInputRuntime, + BakedInputStep, operationPlan, connection, assertEdgeCapableStep, @@ -553,6 +575,7 @@ exportAsMany("grafast", { polymorphicBranch, PolymorphicBranchStep, makeDecodeNodeId, + makeDecodeNodeIdRuntime, proxy, applyTransforms, ApplyTransformsStep, @@ -579,7 +602,8 @@ exportAsMany("grafast", { reverseArray, ReverseStep, setter, - SetterStep, + createObjectAndApplyChildren, + Setter, listen, ListenStep, polymorphicWrap, @@ -599,6 +623,7 @@ exportAsMany("grafast", { isDev, noop, getEnumValueConfig, + getEnumValueConfigs, loadOne, loadMany, loadOneCallback, @@ -658,28 +683,22 @@ declare global { interface ArgumentExtensions { // fooPlan?: ArgumentPlanResolver; - inputPlan?: ArgumentInputPlanResolver; applyPlan?: ArgumentApplyPlanResolver; - autoApplyAfterParentPlan?: boolean; - autoApplyAfterParentSubscribePlan?: boolean; + applySubscribePlan?: ArgumentApplyPlanResolver; } interface InputObjectTypeExtensions { - inputPlan?: InputObjectTypeInputPlanResolver; + baked?: InputObjectTypeBakedResolver; } interface InputFieldExtensions { - // fooPlan?: InputObjectFieldPlanResolver; - inputPlan?: InputObjectFieldInputPlanResolver; - applyPlan?: InputObjectFieldApplyPlanResolver; - autoApplyAfterParentInputPlan?: boolean; - autoApplyAfterParentApplyPlan?: boolean; + apply?: InputObjectFieldApplyResolver; } interface ObjectTypeExtensions { assertStep?: - | ((step: ExecutableStep) => asserts step is ExecutableStep) - | { new (...args: any[]): ExecutableStep } + | ((step: Step) => asserts step is Step) + | { new (...args: any[]): Step } | null; } @@ -691,7 +710,7 @@ declare global { * * @experimental */ - applyPlan?: EnumValueApplyPlanResolver; + apply?: EnumValueApplyResolver; } interface ScalarTypeExtensions { diff --git a/grafast/grafast/src/input.ts b/grafast/grafast/src/input.ts index 51f95b13d5..55eb5fbec1 100644 --- a/grafast/grafast/src/input.ts +++ b/grafast/grafast/src/input.ts @@ -22,6 +22,10 @@ import { __TrackedValueStep, constant, } from "./steps/index.js"; +import { + findVariableNamesUsedInValueNode, + valueNodeToStaticValue, +} from "./utils.js"; const { assertScalarType, @@ -83,18 +87,28 @@ export function graphqlGetTypeForNode( export function inputStep( operationPlan: OperationPlan, inputType: GraphQLInputType, - rawInputValue: ValueNode | undefined, + inputValue: ValueNode | undefined, defaultValue: ConstValueNode | undefined = undefined, ): AnyInputStep { - // This prevents recursion - if (rawInputValue === undefined && defaultValue === undefined) { - return constant(undefined); + const { valueNodeToStaticValueCache } = operationPlan; + if (inputValue === undefined) { + // Definitely can't be or contain a variable! + if (defaultValue === undefined) { + return constant(undefined); + } else { + return valueNodeToCachedStaticValueConstantStep( + valueNodeToStaticValueCache, + defaultValue, + inputType, + ); + } } const isObj = isInputObjectType(inputType); - let inputValue = rawInputValue; - if (inputValue?.kind === "Variable") { + if (inputValue.kind === "Variable") { + // Note: this is the only other place where `defaultValue` might be used + // we know `inputValue` is not a variable. const variableName = inputValue.name.value; const variableDefinition = operationPlan.operation.variableDefinitions?.find( @@ -119,12 +133,13 @@ export function inputStep( inputType, defaultValue, ); - } - // Note: past here we know whether `defaultValue` will be used or not because - // we know `inputValue` is not a variable. - inputValue = inputValue ?? defaultValue; - if (inputType instanceof GraphQLNonNull) { + } else if (inputType instanceof GraphQLNonNull) { const innerType = inputType.ofType; + if (inputValue.kind === Kind.NULL) { + throw new Error( + `Null found in non-null position; this should have been prevented by validation.`, + ); + } const valuePlan = inputStep( operationPlan, innerType, @@ -132,7 +147,18 @@ export function inputStep( undefined, ); return inputNonNullPlan(operationPlan, valuePlan); + } else if (inputValue.kind === Kind.NULL) { + return constant(null); } else if (inputType instanceof GraphQLList) { + const variableNames = new Set(); + findVariableNamesUsedInValueNode(inputValue, variableNames); + if (variableNames.size === 0) { + return valueNodeToCachedStaticValueConstantStep( + valueNodeToStaticValueCache, + inputValue, + inputType, + ); + } return new __InputListStep(inputType, inputValue); } else if (isLeafType(inputType)) { if (inputValue?.kind === Kind.OBJECT || inputValue?.kind === Kind.LIST) { @@ -210,6 +236,7 @@ function inputVariablePlan( inputType.ofType, defaultValue, ); + // TODO: find a way to do this without doing eval. For example: track list of variables that may not be nullish. if (variablePlan.evalIs(null) || variablePlan.evalIs(undefined)) { throw new GraphQLError( `Expected non-null value of type ${inputType.ofType.toString()}`, @@ -222,9 +249,8 @@ function inputVariablePlan( } const variableValuePlan = operationPlan.trackedVariableValuesStep.get(variableName); - if (defaultValue === undefined || !variableValuePlan.evalIs(undefined)) { - // There's no default value, or we know for sure that our variable will be - // set (even if null) and thus the default will not be used; use the variable. + if (defaultValue === undefined) { + // There's no default value and thus the default will not be used; use the variable. return variableValuePlan; } else { // `defaultValue` is NOT undefined, and we know variableValue is @@ -243,3 +269,16 @@ function inputNonNullPlan( ): AnyInputStep { return innerPlan; } + +function valueNodeToCachedStaticValueConstantStep( + cache: Map, + valueNode: ValueNode, + inputType: GraphQLInputType, +) { + let step = cache.get(valueNode); + if (!step) { + step = constant(valueNodeToStaticValue(valueNode, inputType), false); + cache.set(valueNode, step); + } + return step; +} diff --git a/grafast/grafast/src/interfaces.ts b/grafast/grafast/src/interfaces.ts index 086d06545a..b1487529f7 100644 --- a/grafast/grafast/src/interfaces.ts +++ b/grafast/grafast/src/interfaces.ts @@ -31,8 +31,9 @@ import type { Constraint } from "./constraints.js"; import type { LayerPlanReasonListItemStream } from "./engine/LayerPlan.js"; import type { OperationPlan } from "./engine/OperationPlan.js"; import type { FlaggedValue, SafeError } from "./error.js"; -import type { ExecutableStep, ListCapableStep, ModifierStep } from "./step.js"; +import type { ListCapableStep, Step } from "./step.js"; import type { __InputDynamicScalarStep } from "./steps/__inputDynamicScalar.js"; +import type { ApplyableExecutableStep } from "./steps/applyInput.js"; import type { __InputListStep, __InputObjectStep, @@ -41,8 +42,9 @@ import type { __TrackedValueStep, __TrackedValueStepWithDollars, ConstantStep, + ObjectStep, } from "./steps/index.js"; -import type { GrafastInputObjectType, GrafastObjectType } from "./utils.js"; +import type { GrafastObjectType } from "./utils.js"; export interface GrafastTimeouts { /** @@ -257,42 +259,44 @@ export interface BaseGraphQLArguments { } export type BaseGraphQLInputObject = BaseGraphQLArguments; -// TYPES: we need to work some TypeScript magic to know which callback forms are -// appropriate. Or split up FieldArgs.apply/applyEach/applyField or whatever. -export type TargetStepOrCallback = - | ExecutableStep - | ModifierStep - | ((indexOrFieldName: number | string) => TargetStepOrCallback); - export type FieldArgs = { - /** Gets the value, evaluating the `inputPlan` at each field if appropriate */ - get(path?: string | ReadonlyArray): ExecutableStep; - /** Gets the value *without* calling any `inputPlan`s */ - getRaw(path?: string | ReadonlyArray): AnyInputStep; + /** @deprecated Use bakedInput() step instead. */ + get?: never; + getRaw( + path?: string | ReadonlyArray, + ): AnyInputStep | ObjectStep<{ [argName: string]: AnyInputStep }>; + typeAt(path: string | ReadonlyArray): GraphQLInputType; /** This also works (without path) to apply each list entry against $target */ - apply( - $target: ExecutableStep | ModifierStep | (() => ModifierStep), + apply( + $target: ApplyableExecutableStep, path?: string | ReadonlyArray, + getTargetFromParent?: (parent: TArg) => object, + ): void; + apply( + $target: ApplyableExecutableStep, + getTargetFromParent: (parent: TArg) => object, + // TYPES: Really not sure why TypeScript requires this here? + justTargetFromParent?: never, ): void; } & AnyInputStepDollars; - -export type InputStep = - GraphQLInputType extends TInputType - ? AnyInputStep - : TInputType extends GraphQLNonNull - ? Exclude, ConstantStep> - : TInputType extends GraphQLList - ? - | __InputListStep // .at(), .eval(), .evalLength(), .evalIs(null) - | __TrackedValueStep // .get(), .eval(), .evalIs(), .evalHas(), .at(), .evalLength(), .evalIsEmpty() - | ConstantStep // .eval(), .evalIs(), .evalIsEmpty() - : TInputType extends GraphQLInputObjectType - ? - | __TrackedValueStepWithDollars // .get(), .eval(), .evalIs(), .evalHas(), .at(), .evalLength(), .evalIsEmpty() - | __InputObjectStepWithDollars // .get(), .eval(), .evalHas(), .evalIs(null), .evalIsEmpty() - | ConstantStep // .eval(), .evalIs(), .evalIsEmpty() - : // TYPES: handle the other types - AnyInputStep; +export type FieldArg = { + /** @deprecated Use bakedInput() step instead. */ + get?: never; + getRaw(path?: string | ReadonlyArray): AnyInputStep; + typeAt(path: string | ReadonlyArray): GraphQLInputType; + /** This also works (without path) to apply each list entry against $target */ + apply( + $target: ApplyableExecutableStep, + path?: string | ReadonlyArray, + getTargetFromParent?: (parent: TArg) => object, + ): void; + apply( + $target: ApplyableExecutableStep, + getTargetFromParent: (parent: TArg) => object, + // TYPES: Really not sure why TypeScript requires this here? + justTargetFromParent?: never, + ): void; +}; export type AnyInputStep = | __TrackedValueStepWithDollars // .get(), .eval(), .evalIs(), .evalHas(), .at(), .evalLength(), .evalIsEmpty() @@ -300,7 +304,7 @@ export type AnyInputStep = | __InputStaticLeafStep // .eval(), .evalIs() | __InputDynamicScalarStep // .eval(), .evalIs() | __InputObjectStepWithDollars // .get(), .eval(), .evalHas(), .evalIs(null), .evalIsEmpty() - | ConstantStep; // .eval(), .evalIs(), .evalIsEmpty() + | ConstantStep; // .eval(), .evalIs(), .evalIsEmpty() export type AnyInputStepWithDollars = AnyInputStep & AnyInputStepDollars; @@ -339,114 +343,60 @@ export interface FieldInfo { */ export type FieldPlanResolver< _TArgs extends BaseGraphQLArguments, - TParentStep extends ExecutableStep | null, - TResultStep extends ExecutableStep | null, + TParentStep extends Step | null, + TResultStep extends Step | null, > = ($parentPlan: TParentStep, args: FieldArgs, info: FieldInfo) => TResultStep; -// TYPES: review _TContext -/** - * Fields on input objects can have plans; the plan resolver is passed a parent plan - * (from an argument, or from a parent input object) or null if none, and an - * input plan that represents the value the user will pass to this field. The - * resolver must return either a ModifierStep or null. - */ -export type InputObjectFieldInputPlanResolver< - TResultStep extends ExecutableStep = ExecutableStep, -> = ( - input: FieldArgs, +export type InputObjectFieldApplyResolver = ( + target: TParent, + input: unknown, info: { schema: GraphQLSchema; - entity: GraphQLInputField; + fieldName: string; + field: GraphQLInputField; }, -) => TResultStep; +) => any; -export type InputObjectFieldApplyPlanResolver< - TFieldStep extends ExecutableStep | ModifierStep = - | ExecutableStep - | ModifierStep, - TResultStep extends ModifierStep< - ExecutableStep | ModifierStep - > | null | void = ModifierStep< - ExecutableStep | ModifierStep - > | null | void, -> = ( - $fieldPlan: TFieldStep, - input: FieldArgs, - info: { - schema: GraphQLSchema; - entity: GraphQLInputField; - }, -) => TResultStep; - -export type InputObjectTypeInputPlanResolver = ( - input: FieldArgs, - info: { - schema: GraphQLSchema; - type: GraphQLInputObjectType; - }, -) => ExecutableStep; - -// TYPES: review _TContext -/** - * Arguments can have plans; the plan resolver is passed the parent plan (the - * plan that represents the _parent_ field of the field the arg is defined on), - * the field plan (the plan that represents the field the arg is defined on) - * and an input plan that represents the value the user will pass to this - * argument. The resolver must return either a ModifierStep or null. - */ -export type ArgumentInputPlanResolver< - TParentStep extends ExecutableStep = ExecutableStep, - TResultStep extends ExecutableStep = ExecutableStep, -> = ( - $parentPlan: TParentStep, - input: FieldArgs, - info: { - schema: GraphQLSchema; - entity: GraphQLArgument; - }, -) => TResultStep; +export type InputObjectTypeBakedInfo = { + schema: GraphQLSchema; + type: GraphQLInputObjectType; + applyChildren(val: any): void; +}; +export type InputObjectTypeBakedResolver = ( + input: Record, + info: InputObjectTypeBakedInfo, +) => any; export type ArgumentApplyPlanResolver< - TParentStep extends ExecutableStep = ExecutableStep, - TFieldStep extends ExecutableStep | ModifierStep = - | ExecutableStep - | ModifierStep, - TResultStep extends - | ExecutableStep - | ModifierStep - | null - | void = - | ExecutableStep - | ModifierStep - | null - | void, + TParentStep extends Step = Step, + TFieldStep extends Step = Step, > = ( $parentPlan: TParentStep, $fieldPlan: TFieldStep, - input: FieldArgs, + input: FieldArg, info: { schema: GraphQLSchema; - entity: GraphQLArgument; + arg: GraphQLArgument; + argName: string; }, -) => TResultStep; +) => void; /** * GraphQLScalarTypes can have plans, these are passed the field plan and must * return an executable plan. */ export type ScalarPlanResolver< - TParentStep extends ExecutableStep = ExecutableStep, - TResultStep extends ExecutableStep = ExecutableStep, + TParentStep extends Step = Step, + TResultStep extends Step = Step, > = ($parentPlan: TParentStep, info: { schema: GraphQLSchema }) => TResultStep; +// TODO: is this still implemented? /** * GraphQLScalarTypes can have plans, these are passed the field plan and must * return an executable plan. */ -export type ScalarInputPlanResolver< - TResultStep extends ExecutableStep = ExecutableStep, -> = ( - $inputValue: InputStep, +export type ScalarInputPlanResolver = ( + $inputValue: AnyInputStep, /* | __InputListStep | __InputStaticLeafStep @@ -464,158 +414,46 @@ export type ScalarInputPlanResolver< * * @experimental */ -export type EnumValueApplyPlanResolver< - TParentStep extends ExecutableStep | ModifierStep = - | ExecutableStep - | ModifierStep, -> = ($parent: TParentStep) => ModifierStep | void; +export type EnumValueApplyResolver = (parent: TParent) => void; // TypeScript gets upset if we go too deep, so we try and cover the most common // use cases and fall back to `any` type OutputPlanForNamedType = - TType extends GrafastObjectType - ? TStep - : ExecutableStep; + TType extends GrafastObjectType ? TStep : Step; export type OutputPlanForType = TType extends GraphQLNonNull>> - ? - | ListCapableStep> - | ExecutableStep> + ? ListCapableStep> | Step> : TType extends GraphQLNonNull> - ? - | ListCapableStep> - | ExecutableStep> + ? ListCapableStep> | Step> : TType extends GraphQLList> - ? - | ListCapableStep> - | ExecutableStep> + ? ListCapableStep> | Step> : TType extends GraphQLList - ? - | ListCapableStep> - | ExecutableStep> + ? ListCapableStep> | Step> : TType extends GraphQLNonNull ? OutputPlanForNamedType : OutputPlanForNamedType; -// TypeScript gets upset if we go too deep, so we try and cover the most common -// use cases and fall back to `any` -type InputPlanForNamedType = - TType extends GrafastInputObjectType - ? U - : ModifierStep; -type InputPlanForType = - TType extends GraphQLNonNull>> - ? InputPlanForNamedType - : TType extends GraphQLNonNull> - ? InputPlanForNamedType - : TType extends GraphQLList> - ? InputPlanForNamedType - : TType extends GraphQLList - ? InputPlanForNamedType - : TType extends GraphQLNonNull - ? InputPlanForNamedType - : InputPlanForNamedType; - -// TypeScript gets upset if we go too deep, so we try and cover the most common -// use cases and fall back to `any` -type InputTypeForNamedType = - TType extends GraphQLScalarType ? U : any; -type InputTypeFor = - TType extends GraphQLNonNull>> - ? InputTypeForNamedType - : TType extends GraphQLNonNull> - ? InputTypeForNamedType - : TType extends GraphQLList> - ? InputTypeForNamedType - : TType extends GraphQLList - ? InputTypeForNamedType - : TType extends GraphQLNonNull - ? InputTypeForNamedType - : InputTypeForNamedType; - -/* -type OutputPlanForType = - TType extends GraphQLList< - infer U -> - ? U extends GraphQLOutputType - ? ListCapableStep> - : never - : TType extends GraphQLNonNull - ? V extends GraphQLOutputType - ? OutputPlanForType - : never - : TType extends GraphQLScalarType | GraphQLEnumType - ? ExecutableStep - : ExecutableStep<{ [key: string]: any }>; - -type InputPlanForType = - TType extends GraphQLList - ? U extends GraphQLInputType - ? InputPlanForType - : never - : TType extends GraphQLNonNull - ? V extends GraphQLInputType - ? InputPlanForType - : never - : TType extends GraphQLScalarType | GraphQLEnumType - ? null - : ExecutableStep<{ [key: string]: any }> | null; - -type InputTypeFor = TType extends GraphQLList< - infer U -> - ? U extends GraphQLInputType - ? InputTypeFor - : never - : TType extends GraphQLNonNull - ? V extends GraphQLInputType - ? InputTypeFor - : never - : TType extends GraphQLScalarType - ? U - : any; - */ - /** * Basically GraphQLFieldConfig but with an easy to access `plan` method. */ export type GrafastFieldConfig< TType extends GraphQLOutputType, - TContext extends Grafast.Context, - TParentStep extends ExecutableStep | null, - TFieldStep extends ExecutableStep, // TODO: should be OutputPlanForType, but that results in everything thinking it should be a ListStep + TParentStep extends Step | null, + TFieldStep extends Step, // TODO: should be OutputPlanForType, but that results in everything thinking it should be a ListStep TArgs extends BaseGraphQLArguments, > = Omit, "args" | "type"> & { type: TType; plan?: FieldPlanResolver; subscribePlan?: FieldPlanResolver; - args?: GrafastFieldConfigArgumentMap< - TType, - TContext, - TParentStep, - TFieldStep - >; + args?: GrafastFieldConfigArgumentMap; }; /** * Basically GraphQLFieldConfigArgumentMap but allowing for args to have plans. */ -export type GrafastFieldConfigArgumentMap< - _TType extends GraphQLOutputType, - TContext extends Grafast.Context, - TParentStep extends ExecutableStep | null, - TFieldStep extends ExecutableStep, // TODO: should be OutputPlanForType<_TType>, but that results in everything thinking it should be a ListStep -> = { - [argName: string]: GrafastArgumentConfig< - any, - TContext, - TParentStep, - TFieldStep, - any, - any - >; +export type GrafastFieldConfigArgumentMap = { + [argName: string]: GrafastArgumentConfig; }; /** @@ -624,37 +462,22 @@ export type GrafastFieldConfigArgumentMap< export type GrafastArgumentConfig< TInputType extends GraphQLInputType = GraphQLInputType, _TContext extends Grafast.Context = Grafast.Context, - _TParentStep extends ExecutableStep | null = ExecutableStep | null, - TFieldStep extends ExecutableStep = ExecutableStep, - _TArgumentStep extends TFieldStep extends ExecutableStep - ? ModifierStep | null - : null = TFieldStep extends ExecutableStep - ? ModifierStep | null - : null, - _TInput extends InputTypeFor = InputTypeFor, + _TParentStep extends Step | null = Step | null, > = Omit & { type: TInputType; - inputPlan?: ArgumentInputPlanResolver; applyPlan?: ArgumentApplyPlanResolver; - autoApplyAfterParentPlan?: boolean; - autoApplyAfterParentSubscribePlan?: boolean; + applySubscribePlan?: ArgumentApplyPlanResolver; }; /** * Basically GraphQLInputFieldConfig but allowing for the field to have a plan. */ export type GrafastInputFieldConfig< - TInputType extends GraphQLInputType, - _TContext extends Grafast.Context, - _TParentStep extends ModifierStep, - _TResultStep extends InputPlanForType, - _TInput extends InputTypeFor, + TParent = any, + TInputType extends GraphQLInputType = GraphQLInputType, > = Omit & { type: TInputType; - inputPlan?: InputObjectFieldInputPlanResolver; - applyPlan?: InputObjectFieldApplyPlanResolver; - autoApplyAfterParentInputPlan?: boolean; - autoApplyAfterParentApplyPlan?: boolean; + apply?: InputObjectFieldApplyResolver; }; /** @@ -723,8 +546,9 @@ export interface NodeIdCodec { * encoding the NodeID for that type. */ export type NodeIdHandler< + TIdentifiers extends readonly any[] = readonly any[], TCodec extends NodeIdCodec = NodeIdCodec, - TNodeStep extends ExecutableStep = ExecutableStep, + TNodeStep extends Step = Step, TSpec = any, > = { /** @@ -732,6 +556,9 @@ export type NodeIdHandler< */ typeName: string; + // /* * How many identifiers does this NodeId represent? */ + // identifierCount: number; + /** * Which codec are we using to encode/decode the NodeID string? */ @@ -742,13 +569,19 @@ export type NodeIdHandler< */ match(specifier: TCodec extends NodeIdCodec ? U : any): boolean; + /** + * Returns the underlying identifiers extracted from the decoded NodeID + * value. + */ + getIdentifiers( + value: TCodec extends NodeIdCodec ? U : any, + ): TIdentifiers; + /** * Returns a plan that returns the value ready to be encoded. When the result * of this plan is fed into `match`, it should return `true`. */ - plan( - $thing: TNodeStep, - ): ExecutableStep ? U : any>; + plan($thing: TNodeStep): Step ? U : any>; /** * Returns a specification based on the Node ID, this can be in any format @@ -757,9 +590,7 @@ export type NodeIdHandler< * referencing a node without actually fetching it - e.g. allowing you to * delete a node by its ID without first fetching it.) */ - getSpec( - plan: ExecutableStep ? U : any>, - ): TSpec; + getSpec(plan: Step ? U : any>): TSpec; /** * Combined with `getSpec`, this forms the recprocal of `plan`; i.e. @@ -873,6 +704,8 @@ export const ALL_FLAGS = flag( /** By default, accept null values as an input */ export const DEFAULT_ACCEPT_FLAGS = flag(FLAG_NULL); +export const DEFAULT_ACCEPT_FLAGS_FOR_NULLABLE_BOUNDARY = + DEFAULT_ACCEPT_FLAGS & ~FLAG_NULL; export const TRAPPABLE_FLAGS = flag(FLAG_ERROR | FLAG_NULL | FLAG_INHIBITED); export const DEFAULT_FORBIDDEN_FLAGS = flag(ALL_FLAGS & ~DEFAULT_ACCEPT_FLAGS); export const FORBIDDEN_BY_NULLABLE_BOUNDARY_FLAGS = flag( @@ -956,12 +789,9 @@ export interface LocationDetails { fieldName: string | null; } -export type UnwrapPlanTuple = - { - [Index in keyof TIn]: TIn[Index] extends ExecutableStep - ? U - : never; - }; +export type UnwrapPlanTuple = { + [Index in keyof TIn]: DataFromStep; +}; export type NotVariableValueNode = Exclude; @@ -981,24 +811,29 @@ export type Maybe = T | null | undefined; export * from "./planJSONInterfaces.js"; -export interface AddDependencyOptions { - step: ExecutableStep; +export interface AddDependencyOptions { + step: TStep; skipDeduplication?: boolean; /** @defaultValue `FLAG_NULL` */ acceptFlags?: ExecutionEntryFlags; - onReject?: null | Error | undefined; - nonUnaryMessage?: ( - $dependent: ExecutableStep, - $dependency: ExecutableStep, - ) => string; + onReject?: Maybe; + nonUnaryMessage?: ($dependent: Step, $dependency: Step) => string; +} + +export interface DependencyOptions { + step: TStep; + acceptFlags: ExecutionEntryFlags; + onReject: Maybe; } + /** * @internal */ export const $$deepDepSkip = Symbol("deepDepSkip_experimental"); -export type DataFromStep = - TStep extends ExecutableStep ? TData : never; +export type DataFromStep = TStep extends Step + ? TData + : never; export interface GrafastExecutionArgs extends ExecutionArgs { resolvedPreset?: GraphileConfig.ResolvedPreset; @@ -1037,6 +872,6 @@ export interface EstablishOperationPlanEvent { } export interface ExecuteStepEvent { args: GrafastExecutionArgs; - step: ExecutableStep; + step: Step; executeDetails: ExecutionDetails; } diff --git a/grafast/grafast/src/makeGrafastSchema.ts b/grafast/grafast/src/makeGrafastSchema.ts index 15bad947af..2d7460d805 100644 --- a/grafast/grafast/src/makeGrafastSchema.ts +++ b/grafast/grafast/src/makeGrafastSchema.ts @@ -9,11 +9,12 @@ import { GraphQLSchema } from "graphql"; import * as graphql from "graphql"; import type { - EnumValueApplyPlanResolver, + EnumValueApplyResolver, FieldPlanResolver, + InputObjectTypeBakedResolver, ScalarPlanResolver, } from "./interfaces.js"; -import type { ExecutableStep } from "./step.js"; +import type { Step } from "./step.js"; import { exportNameHint } from "./utils.js"; const { @@ -50,8 +51,8 @@ export type FieldPlans = */ export type ObjectPlans = { __assertStep?: - | ((step: ExecutableStep) => asserts step is ExecutableStep) - | { new (...args: any[]): ExecutableStep }; + | ((step: Step) => asserts step is Step) + | { new (...args: any[]): Step }; } & { [fieldName: string]: FieldPlans; }; @@ -60,7 +61,7 @@ export type ObjectPlans = { * The plans for each field of a GraphQL input object type. */ export type InputObjectPlans = { - __inputPlan?: () => ExecutableStep; + __baked?: InputObjectTypeBakedResolver; } & { [fieldName: string]: Grafast.InputFieldExtensions; }; @@ -88,15 +89,14 @@ export type ScalarPlans = { export type EnumPlans = { // The internal value for the enum [enumValueName: string]: - | EnumValueApplyPlanResolver + | EnumValueApplyResolver | string | number | boolean | { value?: unknown; extensions?: graphql.GraphQLEnumValueExtensions; - /** @deprecated Use extensions */ - applyPlan?: EnumValueApplyPlanResolver; + apply?: EnumValueApplyResolver; }; }; @@ -320,18 +320,6 @@ export function makeGrafastSchema(details: { argSpec.grafast?.applyPlan, `${typeName}_${fieldName}_${argName}_applyPlan`, ); - exportNameHint( - argSpec.grafast?.inputPlan, - `${typeName}_${fieldName}_${argName}_inputPlan`, - ); - exportNameHint( - argSpec.pgSelectApply, - `${typeName}_${fieldName}_${argName}_pgSelectApply`, - ); - exportNameHint( - argSpec.pgUnionAllApply, - `${typeName}_${fieldName}_${argName}_pgUnionAllApply`, - ); Object.assign(arg.extensions!, argSpec); } } @@ -361,11 +349,17 @@ export function makeGrafastSchema(details: { for (const [fieldName, fieldSpec] of Object.entries( inputObjectPlans, )) { - if (fieldName === "__inputPlan") { - config.extensions!.grafast!.inputPlan = - fieldSpec as () => ExecutableStep; + if (fieldName === "__baked") { + config.extensions!.grafast!.baked = + fieldSpec as InputObjectTypeBakedResolver; continue; } + if (config.extensions?.grafast?.baked) { + exportNameHint( + config.extensions.grafast.baked, + `${typeName}__baked`, + ); + } const field = rawConfig.fields[fieldName]; if (!field) { console.warn( @@ -394,14 +388,7 @@ export function makeGrafastSchema(details: { }; fields[fieldName] = fieldConfig; if (fieldSpec) { - exportNameHint( - fieldSpec.inputPlan, - `${typeName}_${fieldName}_inputPlan`, - ); - exportNameHint( - fieldSpec.applyPlan, - `${typeName}_${fieldName}_applyPlan`, - ); + exportNameHint(fieldSpec.apply, `${typeName}_${fieldName}_apply`); } // it's a spec const grafastExtensions: Grafast.InputFieldExtensions = @@ -519,7 +506,7 @@ export function makeGrafastSchema(details: { if (typeof enumValueSpec === "function") { exportNameHint( enumValueSpec, - `${typeName}_${enumValueName}_applyPlan`, + `${typeName}_${enumValueName}_apply`, ); // It's a plan if (!enumValue.extensions) { @@ -528,7 +515,7 @@ export function makeGrafastSchema(details: { ) as graphql.GraphQLEnumValueExtensions; } enumValue.extensions.grafast = { - applyPlan: enumValueSpec, + apply: enumValueSpec, } as Grafast.EnumValueExtensions; } else if ( typeof enumValueSpec === "object" && @@ -542,13 +529,13 @@ export function makeGrafastSchema(details: { ); Object.assign(enumValue.extensions!, enumValueSpec.extensions); } - if (enumValueSpec.applyPlan) { + if (enumValueSpec.apply) { exportNameHint( - enumValueSpec.applyPlan, - `${typeName}_${enumValueName}_applyPlan`, + enumValueSpec.apply, + `${typeName}_${enumValueName}_apply`, ); enumValue.extensions!.grafast = { - applyPlan: enumValueSpec.applyPlan, + apply: enumValueSpec.apply, } as Grafast.EnumValueExtensions; } if ("value" in enumValueSpec) { diff --git a/grafast/grafast/src/mermaid.ts b/grafast/grafast/src/mermaid.ts index 332d175f6e..dec38d6f74 100644 --- a/grafast/grafast/src/mermaid.ts +++ b/grafast/grafast/src/mermaid.ts @@ -83,6 +83,10 @@ function isGrafastPlanJSONv1(json: GrafastPlanJSON): json is GrafastPlanJSONv1 { return json.version === "v1"; } +function shouldHideStep(step: GrafastPlanStepJSONv1) { + return (step.extra?.constant as any)?.type === "undefined"; +} + export function planToMermaid( planJSON: GrafastPlanJSON, { @@ -162,6 +166,11 @@ export function planToMermaid( const planIdMap = Object.create(null); const planId = (plan: GrafastPlanStepJSONv1): string => { if (!planIdMap[plan.id]) { + if (shouldHideStep(plan)) { + console.warn( + `Was expecting to hide step ${plan.id}, but we're rendering it anyway?`, + ); + } const planName = plan.stepClass.replace(/Step$/, ""); const planNode = `${planName}${plan.id}`; planIdMap[plan.id] = planNode; @@ -241,10 +250,18 @@ export function planToMermaid( sortedSteps.forEach( // This comment is here purely to maintain the previous formatting to reduce a git diff. (plan) => { + if (shouldHideStep(plan)) return; const planNode = planId(plan); - const depNodes = plan.dependencyIds.map((depId) => { - return planId(stepById[depId]); - }); + const depNodes = plan.dependencyIds + .map((depId) => { + const step = stepById[depId]; + if (shouldHideStep(step)) { + return null; + } else { + return planId(step); + } + }) + .filter((n): n is string => n !== null); const transformItemPlanNode = null; /* plan.stepClass === '__ListTransformStep' @@ -271,9 +288,7 @@ export function planToMermaid( normal.push(r); } } - if (normal.length) { - graph.push(` ${normal.join(" & ")} --> ${planNode}`); - } + outputGroupedNormalLinks(graph, planNode, normal); } } else { if ( @@ -305,9 +320,7 @@ export function planToMermaid( normal.push(r); } } - if (normal.length) { - graph.push(` ${normal.join(" & ")} --> ${planNode}`); - } + outputGroupedNormalLinks(graph, planNode, normal); } } } @@ -321,7 +334,9 @@ export function planToMermaid( graph.push(""); graph.push(" %% define steps"); sortedSteps.forEach((step) => { - planId(step); + if (!shouldHideStep(step)) { + planId(step); + } }); const stepToString = (step: GrafastPlanStepJSONv1): string => { @@ -385,9 +400,10 @@ export function planToMermaid( ` classDef bucket${layerPlan.id} stroke:${color(layerPlan.id)}`, ); graph.push( - ` class ${[`Bucket${layerPlan.id}`, ...steps.map(planId)].join( - ",", - )} bucket${layerPlan.id}`, + ` class ${[ + `Bucket${layerPlan.id}`, + ...steps.filter((s) => !shouldHideStep(s)).map(planId), + ].join(",")} bucket${layerPlan.id}`, ); } if (!skipBuckets) { @@ -455,3 +471,29 @@ function trim(string: string, length = 15): string { return string; } } + +function outputGroupedNormalLinks( + graph: string[], + planNode: string, + normal: string[], +) { + if (normal.length) { + const counts: Record = Object.create(null); + for (const n of normal) { + if (counts[n]) { + counts[n]++; + } else { + counts[n] = 1; + } + } + const oners = Object.keys(counts).filter((n) => counts[n] === 1); + if (oners.length >= 1) { + graph.push(` ${oners.join(" & ")} --> ${planNode}`); + } + for (const [n, c] of Object.entries(counts)) { + if (c !== 1) { + graph.push(` ${n} -- ${c} --> ${planNode}`); + } + } + } +} diff --git a/grafast/grafast/src/multistep.ts b/grafast/grafast/src/multistep.ts index 9a16f0859a..50ee705e2c 100644 --- a/grafast/grafast/src/multistep.ts +++ b/grafast/grafast/src/multistep.ts @@ -1,4 +1,4 @@ -import { ExecutableStep } from "./step.js"; +import { Step } from "./step.js"; import { constant } from "./steps/constant.js"; import { list } from "./steps/list.js"; import { object } from "./steps/object.js"; @@ -11,29 +11,27 @@ import { isTuple } from "./utils.js"; export type Multistep = | null | undefined - | ExecutableStep - | readonly [...(readonly ExecutableStep[])] - | Record; + | Step + | readonly [...(readonly Step[])] + | Record; export type UnwrapMultistep = TMultistepSpec extends null ? null : TMultistepSpec extends undefined ? undefined - : TMultistepSpec extends ExecutableStep + : TMultistepSpec extends Step ? U : TMultistepSpec extends readonly [...(readonly any[])] ? { - [index in keyof TMultistepSpec]: TMultistepSpec[index] extends ExecutableStep< + [index in keyof TMultistepSpec]: TMultistepSpec[index] extends Step< infer V > ? V : never; } : { - [key in keyof TMultistepSpec]: TMultistepSpec[key] extends ExecutableStep< - infer V - > + [key in keyof TMultistepSpec]: TMultistepSpec[key] extends Step ? V : never; }; @@ -46,10 +44,10 @@ interface MultistepCacheConfig { export function multistep( spec: TMultistepSpec, stable?: string | true | MultistepCacheConfig, -): ExecutableStep> { +): Step> { if (spec == null) { return constant(spec) as any; - } else if (spec instanceof ExecutableStep) { + } else if (spec instanceof Step) { return spec; } else if (isTuple(spec)) { const config = @@ -77,13 +75,13 @@ export function isMultistep( ): spec is TMultistepSpec { if (spec == null) { return true; - } else if (spec instanceof ExecutableStep) { + } else if (spec instanceof Step) { return true; - } else if (isTuple(spec) && spec.every((s) => s instanceof ExecutableStep)) { + } else if (isTuple(spec) && spec.every((s) => s instanceof Step)) { return true; } else if ( typeof spec === "object" && - Object.values(spec).every((s) => s instanceof ExecutableStep) + Object.values(spec).every((s) => s instanceof Step) ) { return true; } else { diff --git a/grafast/grafast/src/operationPlan-input.ts b/grafast/grafast/src/operationPlan-input.ts index a81d89ec9b..7d67b517dd 100644 --- a/grafast/grafast/src/operationPlan-input.ts +++ b/grafast/grafast/src/operationPlan-input.ts @@ -1,41 +1,35 @@ import type { GraphQLArgument, GraphQLField, - GraphQLInputField, GraphQLInputType, + GraphQLNullableType, } from "graphql"; import * as graphql from "graphql"; import type { OperationPlan } from "./engine/OperationPlan.js"; -import { __InputObjectStep, __TrackedValueStep } from "./index.js"; +import { + __InputObjectStep, + __TrackedValueStep, + applyInput, + ConstantStep, + object, +} from "./index.js"; +import { inspect } from "./inspect.js"; import type { + AnyInputStep, + FieldArg, FieldArgs, - InputObjectTypeInputPlanResolver, - InputStep, TrackedArguments, } from "./interfaces.js"; -import type { ExecutableStep, ModifierStep } from "./step.js"; +import type { Step } from "./step.js"; import type { __ItemStep } from "./steps/__item.js"; -import { constant, ConstantStep } from "./steps/constant.js"; -import { list } from "./steps/list.js"; -import { object } from "./steps/object.js"; -import { assertNotAsync, assertNotPromise } from "./utils.js"; +import { assertNotPromise } from "./utils.js"; -const { - getNullableType, - isEnumType, - isInputObjectType, - isListType, - isScalarType, -} = graphql; +const { getNullableType, isInputObjectType, isListType } = graphql; export type ApplyAfterModeArg = | "autoApplyAfterParentPlan" | "autoApplyAfterParentSubscribePlan"; -type ApplyAfterModeInput = - | "autoApplyAfterParentApplyPlan" - | "autoApplyAfterParentInputPlan"; -type ApplyAfterMode = ApplyAfterModeArg | ApplyAfterModeInput; function assertNotRuntime(operationPlan: OperationPlan, description: string) { if (operationPlan.phase === "ready") { @@ -45,22 +39,18 @@ function assertNotRuntime(operationPlan: OperationPlan, description: string) { } } -export function withFieldArgsForArguments< - T extends ExecutableStep, - TParentStep extends ExecutableStep = ExecutableStep, ->( +export function withFieldArgsForArguments( operationPlan: OperationPlan, - $parent: TParentStep, $all: TrackedArguments, field: GraphQLField, + $parent: Step, applyAfterMode: ApplyAfterModeArg, + coordinate: string, callback: (fieldArgs: FieldArgs) => T | null | undefined, ): Exclude | null { if (operationPlan.loc !== null) operationPlan.loc.push(`withFieldArgsForArguments(${field.name})`); - const schema = operationPlan.schema; - const args: { [key: string]: GraphQLArgument; } = Object.create(null); @@ -68,14 +58,71 @@ export function withFieldArgsForArguments< args[arg.name] = arg; } - const got = new Map(); - const applied = new Map(); + const applied = new Map(); let explicitlyApplied = false; const fieldArgs: FieldArgs = { + typeAt(path) { + if (typeof path === "string") { + return args[path].type; + } else { + if (path.length === 0) { + throw new Error( + `typeAt can only be used with a non-empty path since arguments themselves don't belong to a type but a field.`, + ); + } + const argName = path[0]; + let type = args[argName]?.type; + if (!type) { + throw new Error(`Argument ${argName} does not exist`); + } + for (let i = 1, l = path.length; i < l; i++) { + const segment = path[i]; + type = graphql.isNonNullType(type) ? type.ofType : type; + if (typeof segment === "number") { + if (!isListType(type)) { + throw new Error( + `Invalid path ${path.slice( + 1, + )} within argument ${argName}; expected a list at path index ${ + i - 1 + }`, + ); + } + type = type.ofType; + } else { + if (!isInputObjectType(type)) { + throw new Error( + `Invalid path ${path.slice( + 1, + )} within argument ${argName}; expected an object at path index ${ + i - 1 + }`, + ); + } + const arg = type.getFields()[segment]; + if (!arg) { + throw new Error( + `Invalid path ${path.slice( + 1, + )} within argument ${argName}; ${type} does not have a field '${segment}'`, + ); + } + type = arg.type; + } + } + return type; + } + }, getRaw(path) { assertNotRuntime(operationPlan, `fieldArgs.getRaw()`); - if (typeof path === "string") { + if (path === undefined) { + return object( + Object.fromEntries( + Object.keys(args).map((argName) => [argName, $all.get(argName)]), + ), + ); + } else if (typeof path === "string") { return $all.get(path); } else if (Array.isArray(path)) { const [first, ...rest] = path; @@ -96,488 +143,77 @@ export function withFieldArgsForArguments< } return $entry; } else { - throw new Error(`Invalid path`); - } - }, - get(inPath) { - assertNotRuntime(operationPlan, `fieldArgs.get()`); - const path = Array.isArray(inPath) - ? (inPath as ReadonlyArray) - : inPath - ? [inPath as string] - : []; - const pathString = path.join("."); - const $existing = got.get(pathString); - if ($existing) { - return $existing; - } - if (path.length === 0) { - const values = Object.create(null); - for (const argName of Object.keys(args)) { - values[argName] = fieldArgs.get([argName]); - } - return object(values); - } else { - const [argName, ...rest] = path; - if (typeof argName !== "string") { - throw new Error( - `Invalid path; argument '${argName}' is an invalid argument name`, - ); - } - let entity: GraphQLArgument | GraphQLInputField | null = args[argName]; - if (!entity) { - throw new Error(`Invalid path; argument '${argName}' does not exist`); - } - let entityType: GraphQLInputType = entity.type; - let $val = $all.get(argName); - for (const pathSegment of rest) { - const nullableType: graphql.GraphQLNullableType & GraphQLInputType = - getNullableType(entityType); - if ( - typeof pathSegment === "string" && - isInputObjectType(nullableType) - ) { - entity = nullableType.getFields()[pathSegment]; - entityType = entity.type; - if ("get" in $val) { - $val = $val.get(pathSegment); - } else if ($val instanceof ConstantStep && $val.isUndefined()) { - $val = constant(undefined); - } else { - throw new Error( - `GrafastInternalError: Processing input object type, but '${$val}' has no .get() method.`, - ); - } - } else if ( - typeof pathSegment === "number" && - isListType(nullableType) - ) { - entity = null; - entityType = nullableType.ofType; - if ("at" in $val) { - $val = $val.at(pathSegment); - } else { - throw new Error( - `GrafastInternalError<0abe76fa-c87a-4477-aebd-feffef848c2b>: Processing input object type, but '${$val}' has no .get() method.`, - ); - } - } else { - throw new Error( - `Asked to navigate ('get' mode) to position '${pathSegment}' (${typeof pathSegment}) (in path '${path.join( - ".", - )}') for incompatible type '${nullableType}' (${ - nullableType.constructor.name - })`, - ); - } - } - let result; - const childFieldArgs = getFieldArgsForPath( - path, - entityType, - $val, - "input", - ); - if (rest.length === 0) { - // Argument - const arg = entity as GraphQLArgument; - const argInputPlan = arg.extensions.grafast?.inputPlan; - const fnDescription = `???.${field.name}(${arg.name}:).inputPlan`; - assertNotAsync(argInputPlan, fnDescription); - result = argInputPlan - ? assertNotPromise( - argInputPlan($parent, childFieldArgs, { - schema, - entity: arg, - }), - argInputPlan, - fnDescription, - ) - : childFieldArgs.get(); - } else { - // Input field - const inputField = entity as GraphQLInputField | undefined; - const inputFieldInputPlan = inputField?.extensions.grafast?.inputPlan; - const fnDescription = `???.${inputField?.name}.inputPlan`; - assertNotAsync(inputFieldInputPlan, fnDescription); - result = inputFieldInputPlan - ? assertNotPromise( - inputFieldInputPlan(childFieldArgs, { - schema, - entity: inputField, - }), - inputFieldInputPlan, - fnDescription, - ) - : childFieldArgs.get(); - } - const nullableType = getNullableType(entityType); - if (isInputObjectType(nullableType)) { - processAfter( - fieldArgs, + throw new Error( + `Invalid path passed to FieldArgs.getRaw(); please check your code. Path: ${inspect( path, - result, - nullableType.getFields(), - "autoApplyAfterParentInputPlan", - ); - } - return result; + )}`, + ); } }, - apply(targetStepOrCallback, inPath) { + apply($target, inPathOrGetTargetFromParent, maybeGetTargetFromParent) { + const inPath = + typeof inPathOrGetTargetFromParent === "function" + ? undefined + : inPathOrGetTargetFromParent; + const getTargetFromParent = + typeof inPathOrGetTargetFromParent === "function" + ? inPathOrGetTargetFromParent + : maybeGetTargetFromParent; assertNotRuntime(operationPlan, `fieldArgs.apply()`); const path = Array.isArray(inPath) ? inPath : inPath ? [inPath] : []; const pathString = path.join("."); const $existing = applied.get(pathString); if ($existing) { throw new Error( - `Attempted to apply 'applyPlan' at input path ${pathString} more than once - first time to ${$existing}, second time to ${targetStepOrCallback}. Multiple applications are not currently supported.`, + `Attempted to apply 'applyPlan' at input path ${pathString} more than once - first time to ${$existing}, second time to ${$target}. Multiple applications are not currently supported.`, ); } if (path.length === 0) { explicitlyApplied = true; // Auto-apply all the arguments for (const argName of Object.keys(args)) { - const $target = - typeof targetStepOrCallback === "function" - ? targetStepOrCallback() - : targetStepOrCallback; fieldArgs.apply($target, [argName]); } } else { const [argName, ...rest] = path; - let entity: GraphQLArgument | GraphQLInputField | null = args[argName]; - if (!entity) { - throw new Error(`Invalid path; argument '${argName}' does not exist`); + if (typeof argName !== "string") { + throw new Error( + `Invalid path; argument '${argName}' is an invalid argument name`, + ); } - let entityType: GraphQLInputType = entity.type; - let $val = $all.get(argName); - for (const pathSegment of rest) { - const nullableType: graphql.GraphQLNullableType & GraphQLInputType = - getNullableType(entityType); - if (isInputObjectType(nullableType)) { - entity = nullableType.getFields()[pathSegment]; - entityType = entity.type; - if ("get" in $val) { - $val = $val.get(pathSegment); - } else { - throw new Error( - `GrafastInternalError<91e1e80d-cf24-4828-a749-3f24156c7b9c>: Processing input object type, but '${$val}' has no .get() method.`, - ); - } - } else if ( - typeof pathSegment === "number" && - isListType(nullableType) - ) { - entity = null; - entityType = nullableType.ofType; - if ("at" in $val) { - $val = $val.at(pathSegment); - } else { - throw new Error( - `GrafastInternalError: Processing list type, but '${$val}' has no .at() method.`, - ); - } - } else { - throw new Error( - `Asked to navigate ('apply' mode) to position '${pathSegment}' (${typeof pathSegment}) (in path '${path.join( - ".", - )}') for incompatible type '${nullableType}' (${ - nullableType.constructor.name - })`, - ); - } + const arg = args[argName]; + if (!arg) { + throw new Error(`Invalid path; argument '${argName}' does not exist`); } - if (notUndefined($val)) { - const childFieldArgs = getFieldArgsForPath( - path, - entityType, - $val, - "apply", + const typeAtPath = getNullableInputTypeAtPath(arg.type, rest); + const $valueAtPath = fieldArgs.getRaw(inPath) as AnyInputStep; + if ( + $valueAtPath instanceof ConstantStep && + $valueAtPath.data === undefined + ) { + // Skip applying! + } else { + $target.apply( + applyInput(typeAtPath, $valueAtPath, getTargetFromParent), ); - operationPlan.withModifiers(() => { - let result; - const $target = - typeof targetStepOrCallback === "function" - ? targetStepOrCallback() - : targetStepOrCallback; - if (rest.length === 0) { - // Argument - const arg = entity as GraphQLArgument; - const argApplyPlan = arg.extensions.grafast?.applyPlan; - const fnDescription = `???.${field.name}(${arg.name}:).applyPlan`; - assertNotAsync(argApplyPlan, fnDescription); - result = argApplyPlan - ? assertNotPromise( - argApplyPlan($parent, $target, childFieldArgs, { - schema, - entity: arg, - }), - argApplyPlan, - fnDescription, - ) - : undefined; - } else if (entity) { - // input field - const inputField = entity as GraphQLInputField; - const inputFieldApplyPlan = - inputField.extensions.grafast?.applyPlan; - const fnDescription = `???.${inputField.name}.applyPlan`; - assertNotAsync(inputFieldApplyPlan, fnDescription); - result = inputFieldApplyPlan - ? assertNotPromise( - inputFieldApplyPlan($target, childFieldArgs, { - schema, - entity: inputField, - }), - inputFieldApplyPlan, - fnDescription, - ) - : undefined; - } else { - childFieldArgs.apply($target); - // Shortcut 'processAfter' - return; - } - const nullableType = getNullableType(entityType); - if (isInputObjectType(nullableType)) { - processAfter( - fieldArgs, - path, - result, - nullableType.getFields(), - "autoApplyAfterParentApplyPlan", - ); - } - }); } } }, }; for (const argName of Object.keys(args)) { - let val: ExecutableStep; + let val: Step; Object.defineProperty(fieldArgs, `$${argName}`, { get() { - if (!val) { - val = fieldArgs.getRaw(argName); - } - return val; + return (val ??= fieldArgs.getRaw(argName)); }, }); } - function getFieldArgsForPath( - path: ReadonlyArray, - entityType: GraphQLInputType, - $input: InputStep, - mode: "input" | "apply", - ): FieldArgs { - const nullableEntityType = getNullableType(entityType); - const localFieldArgs: FieldArgs = { - getRaw(subpath) { - assertNotRuntime(operationPlan, `fieldArgs.getRaw()`); - return fieldArgs.getRaw(concatPath(path, subpath)); - }, - get(subpath) { - assertNotRuntime(operationPlan, `fieldArgs.get()`); - if (!subpath || (Array.isArray(subpath) && subpath.length === 0)) { - if (isListType(nullableEntityType)) { - if (!("evalLength" in $input)) { - throw new Error( - `GrafastInternalError<6ef74af7-7be0-4117-870f-2ebabcf5161c>: Expected ${$input} to be a __InputListStep or __TrackedValueStep (i.e. to have 'evalLength')`, - ); - } - const l = $input.evalLength(); - if (l == null) { - return constant(null); - } - const entries: ExecutableStep[] = []; - for (let i = 0; i < l; i++) { - const entry = fieldArgs.get([...path, i]); - entries.push(entry); - } - return list(entries); - } else if (isInputObjectType(nullableEntityType)) { - const typeResolver = - nullableEntityType.extensions.grafast?.inputPlan || - defaultInputObjectTypeInputPlanResolver; - const fnDescription = `${nullableEntityType}.inputPlan`; - assertNotAsync(typeResolver, fnDescription); - const resolvedResult = assertNotPromise( - typeResolver( - getFieldArgsForPath(path, nullableEntityType, $input, "input"), - { - schema, - type: nullableEntityType, - }, - ), - typeResolver, - fnDescription, - ); - if (mode === "apply") { - // NOTE: if mode === 'input' then `.get()` won't need a - // `processAfter` since that will already have been handled in - // the parent fieldArgs. - processAfter( - fieldArgs, - path, - resolvedResult, - nullableEntityType.getFields(), - "autoApplyAfterParentInputPlan", - ); - } - return resolvedResult; - } else if (isScalarType(nullableEntityType)) { - const scalarResolver = - nullableEntityType.extensions.grafast?.inputPlan; - const fnDescription = `${nullableEntityType}.inputPlan`; - assertNotAsync(scalarResolver, fnDescription); - if (scalarResolver !== undefined) { - return assertNotPromise( - scalarResolver($input, { - schema, - type: nullableEntityType, - }), - scalarResolver, - fnDescription, - ); - } else { - return $input; - } - } else if (isEnumType(nullableEntityType)) { - /* - const enumResolver = nullableEntityType.extensions.grafast?.inputPlan; - if (enumResolver) { - return enumResolver($input, { schema, type: nullableEntityType }); - } else { - return $input; - } - */ - return $input; - } else { - throw new Error( - `Call to fieldArgs.get() at input path '${path.join( - ".", - )}' must pass a non-empty subpath`, - ); - } - } - return fieldArgs.get(concatPath(path, subpath)); - }, - apply(targetStepOrCallback, subpath) { - assertNotRuntime(operationPlan, `fieldArgs.apply()`); - if ( - mode === "apply" && - (!subpath || (Array.isArray(subpath) && subpath.length === 0)) - ) { - if (isInputObjectType(nullableEntityType)) { - if (!("evalKeys" in $input)) { - throw new Error( - `GrafastInternalError: Expected ${$input} to be a __InputObjectStep or __TrackedValueStep (i.e. to have 'evalKeys')`, - ); - } - const keys = $input.evalKeys(); - if (keys == null) { - return; - } - for (const fieldName of keys) { - const $target = - typeof targetStepOrCallback === "function" - ? targetStepOrCallback() - : targetStepOrCallback; - fieldArgs.apply($target, [...path, fieldName]); - } - } else if (isListType(nullableEntityType)) { - if (!("evalLength" in $input)) { - throw new Error( - `GrafastInternalError<6ef74af7-7be0-4117-870f-2ebabcf5161c>: Expected ${$input} to be a __InputListStep or __TrackedValueStep (i.e. to have 'evalLength')`, - ); - } - const l = $input.evalLength(); - if (l == null) { - return; - } - // const innerType = nullableEntityType.ofType; - for (let i = 0; i < l; i++) { - const $target = - typeof targetStepOrCallback === "function" - ? targetStepOrCallback() - : targetStepOrCallback; - fieldArgs.apply($target, [...path, i]); - } - } else if (isScalarType(nullableEntityType)) { - // noop - } else if (isEnumType(nullableEntityType)) { - // PERF: only do this if this enum type has values that have side effects - const value = $input.eval(); - const enumValue = nullableEntityType - .getValues() - .find((v) => v.value === value); - if (enumValue) { - const enumResolver = enumValue.extensions.grafast?.applyPlan; - const fnDescription = `${nullableEntityType.name}.${enumValue.name}.applyPlan`; - assertNotAsync(enumResolver, fnDescription); - if (enumResolver !== undefined) { - const $target = - typeof targetStepOrCallback === "function" - ? targetStepOrCallback() - : targetStepOrCallback; - assertNotPromise( - enumResolver($target), - enumResolver, - fnDescription, - ); - } - } - } else { - const never: never = nullableEntityType; - throw new Error(`Unhandled input type ${never}`); - } - } else { - const $target = - typeof targetStepOrCallback === "function" - ? targetStepOrCallback() - : targetStepOrCallback; - fieldArgs.apply($target, concatPath(path, subpath)); - } - }, - }; - - if (isInputObjectType(nullableEntityType)) { - const inputFields = nullableEntityType.getFields(); - for (const fieldName of Object.keys(inputFields)) { - let val: ExecutableStep; - Object.defineProperty(localFieldArgs, `$${fieldName}`, { - enumerable: true, - get() { - if (!val) { - if ("get" in $input) { - val = $input.get(fieldName); - } else if ( - $input instanceof ConstantStep && - $input.isUndefined() - ) { - val = constant(undefined); - } else { - throw new Error( - `GrafastInternalError<9b70d5c0-c45f-4acd-8b94-eaa02f87ad41>: expected '${$input}' to have a .get() method`, - ); - } - } - return val; - }, - }); - } - } - - return localFieldArgs; - } - const result = callback(fieldArgs); assertNotPromise(result, callback, operationPlan.loc?.join(">") ?? "???"); - if (!explicitlyApplied) { - processAfter(fieldArgs, [], result, args, applyAfterMode); + if (!explicitlyApplied && result != null) { + processAfter($parent, fieldArgs, result, args, applyAfterMode, coordinate); } if (operationPlan.loc !== null) operationPlan.loc.pop(); @@ -586,62 +222,101 @@ export function withFieldArgsForArguments< } function processAfter( + $parent: Step, rootFieldArgs: FieldArgs, - path: ReadonlyArray, - result: ExecutableStep | ModifierStep | null | undefined | void, - fields: Record, - applyAfterMode: ApplyAfterMode, + $result: Step, + args: Record, + applyAfterMode: ApplyAfterModeArg, + coordinate: string, ) { - if (result != null && !(result instanceof ConstantStep && result.isNull())) { - if (applyAfterMode === "autoApplyAfterParentApplyPlan" && result != null) { - // `applyPlan` returned a step, so auto-apply every subfield to it - for (const name of Object.keys(fields)) { - rootFieldArgs.apply(result, [...path, name]); + const schema = $parent.operationPlan.schema; + for (const [argName, arg] of Object.entries(args)) { + const autoApply = + applyAfterMode === "autoApplyAfterParentPlan" + ? arg.extensions.grafast?.applyPlan + : applyAfterMode === "autoApplyAfterParentSubscribePlan" + ? arg.extensions.grafast?.applySubscribePlan + : null; + if (autoApply) { + // TODO: should this have dollars on it for accessing subkeys? + const input: FieldArg = { + typeAt(path) { + return rootFieldArgs.typeAt(concatPath(argName, path)); + }, + getRaw(path) { + return rootFieldArgs.getRaw( + concatPath(argName, path), + ) as AnyInputStep; + }, + apply($target, pathOrTargetGetter, maybeTargetGetter) { + if (typeof pathOrTargetGetter === "function") { + return rootFieldArgs.apply($target, [argName], pathOrTargetGetter); + } else { + return rootFieldArgs.apply( + $target, + concatPath(argName, pathOrTargetGetter), + maybeTargetGetter, + ); + } + }, + }; + const result = autoApply($parent, $result, input, { + schema, + arg, + argName, + }); + if (result !== undefined) { + const fullCoordinate = `${coordinate}(${argName}:)`; + throw new Error( + `Argument ${fullCoordinate}'s applyPlan returned a value. This may indicate a bug in that method, please see https://err.red/gaap#coord=${encodeURIComponent( + fullCoordinate, + )}`, + ); } + } + } +} + +export function getNullableInputTypeAtPath( + startType: GraphQLInputType, + path: ReadonlyArray, +): GraphQLInputType & GraphQLNullableType { + let type: GraphQLInputType & GraphQLNullableType = getNullableType(startType); + for (let i = 0, l = path.length; i < l; i++) { + const segment = path[i]; + if (typeof segment === "number") { + // Expect list + if (!isListType(type)) { + throw new Error( + `Invalid path passed to fieldArgs.get(); expected list type, but found ${type}`, + ); + } + type = getNullableType(type.ofType); } else { - for (const [name, spec] of Object.entries(fields)) { - const autoApply = - applyAfterMode === "autoApplyAfterParentPlan" - ? (spec as GraphQLArgument).extensions.grafast - ?.autoApplyAfterParentPlan - : applyAfterMode === "autoApplyAfterParentSubscribePlan" - ? (spec as GraphQLArgument).extensions.grafast - ?.autoApplyAfterParentSubscribePlan - : applyAfterMode === "autoApplyAfterParentInputPlan" - ? (spec as GraphQLInputField).extensions.grafast - ?.autoApplyAfterParentInputPlan - : applyAfterMode === "autoApplyAfterParentApplyPlan" - ? (spec as GraphQLInputField).extensions.grafast - ?.autoApplyAfterParentApplyPlan - : null; - if (autoApply) { - rootFieldArgs.apply(result, [...path, name]); - } + // Must be a string + if (!isInputObjectType(type)) { + throw new Error( + `Invalid path passed to fieldArgs.get(); expected object type, but found ${type}`, + ); } + const field = type.getFields()[segment]; + if (!field) { + throw new Error( + `Invalid path passed to fieldArgs.get(); ${type} has no field named ${segment}`, + ); + } + type = getNullableType(field.type) as GraphQLInputType & + GraphQLNullableType; } } + return type; } function concatPath( - path: ReadonlyArray, + argName: string, subpath: ReadonlyArray | string | undefined, ) { - const localPath = Array.isArray(subpath) ? subpath : subpath ? [subpath] : []; - return [...path, ...localPath]; + if (subpath == null) return [argName]; + const localPath = Array.isArray(subpath) ? subpath : [subpath]; + return [argName, ...localPath]; } - -function notUndefined($value: InputStep) { - // OPTIMIZE: having a lot of 'is undefined' checks is expensive; instead we - // should optimize this so that it tracks the set of keys that are set and - // matches against those as a single operation. - return !("evalIs" in $value && $value.evalIs(undefined)); -} -const defaultInputObjectTypeInputPlanResolver: InputObjectTypeInputPlanResolver = - (input, info) => { - const fields = info.type.getFields(); - const obj: { [key: string]: ExecutableStep } = Object.create(null); - for (const fieldName in fields) { - obj[fieldName] = input.get(fieldName); - } - return object(obj); - }; diff --git a/grafast/grafast/src/planJSONInterfaces.ts b/grafast/grafast/src/planJSONInterfaces.ts index 15eb74e095..4fed3c396f 100644 --- a/grafast/grafast/src/planJSONInterfaces.ts +++ b/grafast/grafast/src/planJSONInterfaces.ts @@ -29,7 +29,6 @@ export interface GrafastPlanBucketPhaseJSONv1 { export type GrafastPlanBucketReasonJSONv1 = | GrafastPlanBucketReasonRootJSONv1 - | GrafastPlanBucketReasonNullableFieldJSONv1 | GrafastPlanBucketReasonListItemJSONv1 | GrafastPlanBucketReasonSubscriptionJSONv1 | GrafastPlanBucketReasonMutationFieldJSONv1 @@ -41,11 +40,6 @@ export interface GrafastPlanBucketReasonRootJSONv1 { type: "root"; } /** Non-branching, non-deferred */ -export interface GrafastPlanBucketReasonNullableFieldJSONv1 { - type: "nullableBoundary"; - parentStepId: string | number; -} -/** Non-branching, non-deferred */ export interface GrafastPlanBucketReasonListItemJSONv1 { type: "listItem"; parentStepId: string | number; diff --git a/grafast/grafast/src/step.ts b/grafast/grafast/src/step.ts index 353a3281da..efc923863f 100644 --- a/grafast/grafast/src/step.ts +++ b/grafast/grafast/src/step.ts @@ -20,6 +20,7 @@ import { getDebug } from "./global.js"; import { inspect } from "./inspect.js"; import type { AddDependencyOptions, + DependencyOptions, ExecutionDetails, ExecutionEntryFlags, ExecutionResults, @@ -36,7 +37,7 @@ import { ALL_FLAGS, DEFAULT_FORBIDDEN_FLAGS, } from "./interfaces.js"; -import type { __ItemStep } from "./steps/index.js"; +import type { __FlagStep, __ItemStep } from "./steps/index.js"; import { stepADependsOnStepB, stepAMayDependOnStepB } from "./utils.js"; /** @@ -46,10 +47,15 @@ import { stepADependsOnStepB, stepAMayDependOnStepB } from "./utils.js"; * @internal */ export const $$noExec = Symbol("noExec"); +/** + * If this property is set to `true` on a step, all steps that depend on it + * should automatically remove NULL from their acceptFlags. + */ +export const $$isNullableBoundary = Symbol("isNullableBoundary"); const ref_flagError = te.ref(flagError, "flagError"); -function throwDestroyed(this: ExecutableStep): any { +function throwDestroyed(this: Step): any { let message: string; try { message = `${this} has been destroyed; calling methods on it is no longer possible`; @@ -59,17 +65,15 @@ function throwDestroyed(this: ExecutableStep): any { throw new Error(message); } -type DeepDepSkippable = ExecutableStep & { - [$$deepDepSkip](): ExecutableStep; +type DeepDepSkippable = Step & { + [$$deepDepSkip](): Step; }; -function isDeepDepSkippable( - $dep: ExecutableStep, -): $dep is DeepDepSkippable { +function isDeepDepSkippable($dep: Step): $dep is DeepDepSkippable { return $$deepDepSkip in $dep && typeof $dep[$$deepDepSkip] === "function"; } -function reallyAssertFinalized(plan: BaseStep): void { +function reallyAssertFinalized(plan: Step): void { if (!plan.isFinalized) { throw new Error( `Step ${plan} is not finalized; did you forget to call \`super.finalize()\` from its \`finalize()\` method?`, @@ -81,23 +85,10 @@ function reallyAssertFinalized(plan: BaseStep): void { export const assertFinalized = !isDev ? noop : reallyAssertFinalized; /** - * The base abstract plan type; you should not extend this directly - instead - * use an ExecutableStep (for use when planning output fields) or a - * ModifierStep (for use when planning arguments/input fields). - * - * @remarks - * - * Though it might seem that ModifierStep should be used for all inputs - * (arguments, input objects), this is not the case. When planning an output - * field, all inputs to it (including arguments, parent plan, context, etc) - * should be other executable plans. The only time that ModifierStep is used is - * when writing specific plans as part of the argument or input field - * definitions themself; even in these cases the inputs to these plan resolvers - * will be ExecutablePlans. + * Executable plans are the plans associated with leaves on the GraphQL tree, + * they must be able to execute to return values. */ -export abstract class BaseStep { - // Explicitly we do not add $$export here because we want children to set it - +export /* abstract */ class Step { /** * This identifies the "bucket" into which this plan's results will be stored. * New buckets are introduced when you cross boundaries that may change the @@ -133,61 +124,15 @@ export abstract class BaseStep { public _isUnaryLocked: boolean; public debug: boolean; - constructor() { - this.isArgumentsFinalized = false; - this.isFinalized = false; - this.debug = getDebug(); - const layerPlan = currentLayerPlan(); - this.layerPlan = layerPlan; - this.operationPlan = layerPlan.operationPlan; - this._isUnary = true; - this._isUnaryLocked = false; - } - - public toString(): string { - const meta = this.toStringMeta(); - return chalk.bold.blue( - `${this.constructor.name.replace(/Step$/, "")}${ - meta != null && meta.length ? chalk.grey(`<${meta}>`) : "" - }`, - ); - } - - /** - * This metadata will be merged into toString when referencing this plan. - */ - public toStringMeta(): string | null { - return null; - } - - public planJSONExtra(): Record | undefined { - return undefined; - } - - public finalize(): void { - if (!this.isFinalized) { - this.isFinalized = true; - } else { - throw new Error( - `Step ${this} has already been finalized - do not call \`finalize()\` from user code!`, - ); - } - } - - public destroy(): void {} -} - -/** - * Executable plans are the plans associated with leaves on the GraphQL tree, - * they must be able to execute to return values. - */ -export /* abstract */ class ExecutableStep extends BaseStep { // Explicitly we do not add $$export here because we want children to set it static $$export: any; /** @internal */ [$$unlock]: undefined | (() => void) = undefined; + /** @internal */ + [$$isNullableBoundary] = false; + /** * Setting this true is a performance optimisation, but it comes with strong * rules; we do not test you comply with these rules (as that would undo the @@ -220,19 +165,22 @@ export /* abstract */ class ExecutableStep extends BaseStep { /** * The plan this plan will need data from in order to execute. */ - protected readonly dependencies: ReadonlyArray; + protected readonly dependencies: ReadonlyArray; /** * If this step follows a side effects, it must implicitly depend on it (so * that any errors the side effect generated will be respected). * * @internal */ - public readonly implicitSideEffectStep: ExecutableStep | null; + public readonly implicitSideEffectStep: Step | null; /** * What execution entry flags we can't handle for the given indexed dependency * (default = this.defaultForbiddenFlags) + * + * @internal */ protected readonly dependencyForbiddenFlags: ReadonlyArray; + /** @internal */ protected readonly dependencyOnReject: ReadonlyArray< Error | null | undefined >; @@ -242,7 +190,7 @@ export /* abstract */ class ExecutableStep extends BaseStep { * @internal */ public readonly dependents: ReadonlyArray<{ - step: ExecutableStep; + step: Step; dependencyIndex: number; }>; @@ -313,21 +261,29 @@ export /* abstract */ class ExecutableStep extends BaseStep { public hasSideEffects: boolean; constructor() { - super(); + this.isArgumentsFinalized = false; + this.isFinalized = false; + this.debug = getDebug(); + const layerPlan = currentLayerPlan(); + this.layerPlan = layerPlan; + this.operationPlan = layerPlan.operationPlan; + this._isUnary = true; + this._isUnaryLocked = false; + this.implicitSideEffectStep = null; this.hasSideEffects ??= false; let hasSideEffects = false; const stepTracker = this.layerPlan.operationPlan.stepTracker; Object.defineProperty(this, "hasSideEffects", { - get(this: ExecutableStep) { + get(this: Step) { return hasSideEffects; }, - set(this: ExecutableStep, value) { + set(this: Step, value) { /** * If steps were created after this step, an this step doesn't depend * on them, then it's no longer safe to change hasSideEffects. */ - let nonDependentSteps: ExecutableStep[] | null = null; + let nonDependentSteps: Step[] | null = null; const maxStepId = stepTracker.stepCount - 1; if (this.id === maxStepId) { @@ -380,41 +336,78 @@ export /* abstract */ class ExecutableStep extends BaseStep { this.id = this.layerPlan._addStep(this); } + /** + * Generally you should only use this once the dependencies of a step are + * established, if you use it beforehand and it returns `true` then adding a + * non-unary dependency later will result in an error. + */ + public getAndFreezeIsUnary() { + this._isUnaryLocked = true; + return this._isUnary; + } + protected withMyLayerPlan(callback: () => T): T { return withGlobalLayerPlan(this.layerPlan, this.polymorphicPaths, callback); } - protected getStep(id: number): ExecutableStep { + /** @experimental */ + public withLayerPlan(callback: () => T): T { + return withGlobalLayerPlan(this.layerPlan, this.polymorphicPaths, callback); + } + + protected getStep(id: number): Step { return this.layerPlan.getStep(id, this); } - protected getDepOptions(depId: number): AddDependencyOptions { - const step = this.dependencies[depId]; + protected getDepOptions( + depId: number, + ): DependencyOptions { + const step = this.dependencies[depId] as TStep; const forbiddenFlags = this.dependencyForbiddenFlags[depId]; const onReject = this.dependencyOnReject[depId]; const acceptFlags = ALL_FLAGS & ~forbiddenFlags; return { step, acceptFlags, onReject }; } - protected getDep( + protected getDep( _depId: number, - ): T { + ): TStep | __FlagStep; + protected getDep( + _depId: number, + throwOnFlagged: true, + ): TStep; + protected getDep( + _depId: number, + _throwOnFlagged = false, + ): TStep | __FlagStep { // This gets replaced when `__FlagStep` is loaded. Were we on ESM we could // just put the code here, but since we're not we have to avoid the // circular dependency. throw new Error(`Grafast failed to load correctly`); } - protected maybeGetDep( + protected maybeGetDep( + depId: number | null | undefined, + ): TStep | __FlagStep | null; + protected maybeGetDep( depId: number | null | undefined, - ): T | null { - return depId == null ? null : this.getDep(depId); + throwOnFlagged: true, + ): TStep | null; + protected maybeGetDep( + depId: number | null | undefined, + throwOnFlagged = false, + ): TStep | __FlagStep | null { + return depId == null + ? null + : throwOnFlagged + ? this.getDep(depId, true) + : this.getDep(depId); } protected getDepOrConstant( _depId: number | null, _fallback: TData, - ): ExecutableStep { + ): Step { // This gets replaced when `constant` is loaded. Were we on ESM we could // just put the code here, but since we're not we have to avoid the // circular dependency. @@ -427,7 +420,7 @@ export /* abstract */ class ExecutableStep extends BaseStep { * * @experimental */ - protected getDepDeep(depId: number): ExecutableStep { + protected getDepDeep(depId: number): Step { let $dep = this.getDep(depId); // Walk up the tree, looking for the source of this record. We know that // __ItemStep and __ListTransformStep are safe to walk through, but other @@ -445,7 +438,7 @@ export /* abstract */ class ExecutableStep extends BaseStep { * * @experimental */ - protected cacheStep( + protected cacheStep( actionKey: string, cacheKey: symbol | string | number, cb: () => T, @@ -473,15 +466,24 @@ export /* abstract */ class ExecutableStep extends BaseStep { ); } - protected canAddDependency(step: ExecutableStep): boolean { + /** + * This metadata will be merged into toString when referencing this plan. + */ + public toStringMeta(): string | null { + return null; + } + + public planJSONExtra(): Record | undefined { + return undefined; + } + + protected canAddDependency(step: Step): boolean { return stepAMayDependOnStepB(this, step); } - protected addDependency( - stepOrOptions: ExecutableStep | AddDependencyOptions, - ): number { + protected addDependency(stepOrOptions: Step | AddDependencyOptions): number { const options: AddDependencyOptions = - stepOrOptions instanceof ExecutableStep + stepOrOptions instanceof Step ? { step: stepOrOptions, skipDeduplication: false } : stepOrOptions; if (options.step.layerPlan.id > this.layerPlan.id) { @@ -499,12 +501,10 @@ export /* abstract */ class ExecutableStep extends BaseStep { * directly. */ protected addUnaryDependency( - stepOrOptions: ExecutableStep | AddDependencyOptions, + stepOrOptions: Step | AddDependencyOptions, ): number { const options: AddDependencyOptions = - stepOrOptions instanceof ExecutableStep - ? { step: stepOrOptions } - : stepOrOptions; + stepOrOptions instanceof Step ? { step: stepOrOptions } : stepOrOptions; if (options.step.layerPlan.id > this.layerPlan.id) { throw new Error( `Cannot add dependency ${options.step} to ${this} since the former is in a deeper layerPlan (creates a catch-22)`, @@ -523,22 +523,20 @@ export /* abstract */ class ExecutableStep extends BaseStep { * If you need to transform the peer to be equivalent you should do so via * the `deduplicatedWith` callback later. */ - public deduplicate?( - _peers: readonly ExecutableStep[], - ): readonly ExecutableStep[]; + public deduplicate?(_peers: readonly Step[]): readonly Step[]; /** * If this plan is replaced via deduplication, this method gives it a chance * to hand over its responsibilities to its replacement. */ // eslint-disable-next-line @typescript-eslint/no-unused-vars - public deduplicatedWith?(replacement: ExecutableStep): void; + public deduplicatedWith?(replacement: Step): void; /** * Our chance to optimise the plan (which could go as far as to inline the * plan into the parent plan). */ - public optimize?(_options: StepOptimizeOptions): ExecutableStep; + public optimize?(_options: StepOptimizeOptions): Step; public finalize() { if (typeof (this as any).isSyncAndSafe !== "boolean") { @@ -562,7 +560,14 @@ export /* abstract */ class ExecutableStep extends BaseStep { `${this} claims to be synchronous, however the execute method is asynchronous`, ); } - super.finalize(); + + if (!this.isFinalized) { + this.isFinalized = true; + } else { + throw new Error( + `Step ${this} has already been finalized - do not call \`finalize()\` from user code!`, + ); + } } /** @@ -607,8 +612,6 @@ export /* abstract */ class ExecutableStep extends BaseStep { this.optimize = throwDestroyed; this.finalize = throwDestroyed; this.execute = throwDestroyed; - - super.destroy(); } } @@ -694,16 +697,14 @@ function buildOptimizedExecute( }); } -export abstract class UnbatchedExecutableStep< - TData = any, -> extends ExecutableStep { +export abstract class UnbatchedStep extends Step { static $$export = { moduleName: "grafast", - exportName: "UnbatchedExecutableStep", + exportName: "UnbatchedStep", }; finalize() { - if (this.execute === UnbatchedExecutableStep.prototype.execute) { + if (this.execute === UnbatchedStep.prototype.execute) { // If they've not replaced 'execute', use our optimized form buildOptimizedExecute( this.dependencies.length, @@ -744,157 +745,80 @@ export abstract class UnbatchedExecutableStep< ): PromiseOrDirect; } -export function isExecutableStep( - step: unknown, -): step is ExecutableStep { - return ( - step instanceof BaseStep && - "execute" in step && - typeof (step as any).execute === "function" - ); +export function isStep(step: unknown): step is Step { + return step instanceof Step; } -export function assertExecutableStep( - step: BaseStep, -): asserts step is ExecutableStep { - if (!isExecutableStep(step)) { +export function assertStep(step: unknown): asserts step is Step { + if (!isStep(step)) { throw new Error( - `Expected an executable step, but received something else: ${inspect( - step, - )}`, + `Expected a step, but received something else: ${inspect(step)}`, ); } } -export function isUnbatchedExecutableStep( +export function isUnbatchedStep( step: unknown, -): step is UnbatchedExecutableStep { - return ( - isExecutableStep(step) && - typeof (step as any).unbatchedExecute === "function" - ); +): step is UnbatchedStep { + return isStep(step) && typeof (step as any).unbatchedExecute === "function"; } export type ObjectLikeStep< - TData extends { [key: string]: ExecutableStep } = { - [key: string]: ExecutableStep; + TData extends { [key: string]: Step } = { + [key: string]: Step; }, -> = ExecutableStep<{ - [key in keyof TData]: TData[key] extends ExecutableStep ? U : never; +> = Step<{ + [key in keyof TData]: TData[key] extends Step ? U : never; }> & { - get(key: TKey): ExecutableStep; + get(key: TKey): Step; }; export function isObjectLikeStep< - TData extends { [key: string]: ExecutableStep } = { - [key: string]: ExecutableStep; + TData extends { [key: string]: Step } = { + [key: string]: Step; }, ->(plan: ExecutableStep): plan is ObjectLikeStep { +>(plan: Step): plan is ObjectLikeStep { return "get" in plan && typeof (plan as any).get === "function"; } -export type ListLikeStep< - TData extends [...ExecutableStep[]] = [...ExecutableStep[]], -> = ExecutableStep<{ - [key in keyof TData]: TData[key] extends ExecutableStep ? U : never; +export type ListLikeStep = Step<{ + [key in keyof TData]: TData[key] extends Step ? U : never; }> & { - at(key: TKey): ExecutableStep; + at(key: TKey): Step; }; -export function isListLikeStep< - TData extends [...ExecutableStep[]] = [...ExecutableStep[]], ->(plan: ExecutableStep): plan is ListLikeStep { +export function isListLikeStep( + plan: Step, +): plan is ListLikeStep { return "at" in plan && typeof (plan as any).at === "function"; } -export type PolymorphicStep = ExecutableStep & { - planForType(objectType: GraphQLObjectType): ExecutableStep; +export type PolymorphicStep = Step & { + planForType(objectType: GraphQLObjectType): Step; }; -export function isPolymorphicStep(s: ExecutableStep): s is PolymorphicStep { +export function isPolymorphicStep(s: Step): s is PolymorphicStep { return ( "planForType" in s && typeof (s as PolymorphicStep).planForType === "function" ); } -/** - * Modifier plans modify their parent plan (which may be another ModifierStep - * or an ExecutableStep). First they gather all the requirements from their - * children (if any) being applied to them, then they apply themselves to their - * parent plan. This application is done through the `apply()` method. - * - * Modifier plans do not use dependencies. - */ -export abstract class ModifierStep< - TParentStep extends BaseStep = BaseStep, -> extends BaseStep { - // Explicitly we do not add $$export here because we want children to set it - static $$export: any; - - public readonly id: string; - constructor(protected readonly $parent: TParentStep) { - super(); - this.id = this.layerPlan._addModifierStep(this); - } - - public toString(): string { - const meta = this.toStringMeta(); - return chalk.bold.blue( - `${this.constructor.name.replace(/Step$/, "")}${ - meta != null && meta.length ? chalk.grey(`<${meta}>`) : "" - }[${inspect(this.id, { - colors: true, - })}]`, - ); - } - - /** - * In this method, you should apply the changes to your `this.$parent` plan - */ - abstract apply(): void; -} - -export function isModifierStep< - TParentStep extends ExecutableStep | ModifierStep, ->(plan: BaseStep): plan is ModifierStep { - return "apply" in plan && typeof (plan as any).apply === "function"; -} - -export function assertModifierStep< - TParentStep extends ExecutableStep | ModifierStep, ->( - plan: BaseStep, - pathDescription: string, -): asserts plan is ModifierStep { - if (!isModifierStep(plan)) { - throw new Error( - `The plan returned from '${pathDescription}' should be a modifier plan, but it does not implement the 'apply' method.`, - ); - } -} - export interface ListCapableStep< TOutputData, - TItemStep extends ExecutableStep = ExecutableStep, -> extends ExecutableStep> { + TItemStep extends Step = Step, +> extends Step> { listItem(itemPlan: __ItemStep): TItemStep; } -export function isListCapableStep< - TData, - TItemStep extends ExecutableStep, ->( - plan: ExecutableStep>, +export function isListCapableStep>( + plan: Step>, ): plan is ListCapableStep { return "listItem" in plan && typeof (plan as any).listItem === "function"; } -export function assertListCapableStep< - TData, - TItemStep extends ExecutableStep, ->( - plan: ExecutableStep>, +export function assertListCapableStep>( + plan: Step>, pathDescription: string, ): asserts plan is ListCapableStep { if (!isListCapableStep(plan)) { @@ -903,3 +827,19 @@ export function assertListCapableStep< ); } } + +export { + /** @deprecated Use ExecutableStep instead */ + Step as ExecutableStep, + /** @deprecated Use UnbatchedStep instead */ + UnbatchedStep as UnbatchedExecutableStep, +}; + +/** @deprecated Use isStep instead */ +export const isExecutableStep = isStep; +/** @deprecated Use isStep instead */ +export function assertExecutableStep( + step: unknown, +): asserts step is Step { + return assertStep(step); +} diff --git a/grafast/grafast/src/steps/__flag.ts b/grafast/grafast/src/steps/__flag.ts index c3f46689db..dc8ffe2b05 100644 --- a/grafast/grafast/src/steps/__flag.ts +++ b/grafast/grafast/src/steps/__flag.ts @@ -3,6 +3,7 @@ import { $$inhibit, flagError, SafeError } from "../error.js"; import { inspect } from "../inspect.js"; import type { AddDependencyOptions, + DataFromStep, ExecutionDetails, ExecutionEntryFlags, GrafastResultsList, @@ -11,6 +12,7 @@ import { $$deepDepSkip, ALL_FLAGS, DEFAULT_ACCEPT_FLAGS, + DEFAULT_ACCEPT_FLAGS_FOR_NULLABLE_BOUNDARY, DEFAULT_FORBIDDEN_FLAGS, FLAG_ERROR, FLAG_INHIBITED, @@ -18,7 +20,7 @@ import { TRAPPABLE_FLAGS, } from "../interfaces.js"; import type { ListCapableStep } from "../step.js"; -import { ExecutableStep, isListCapableStep } from "../step.js"; +import { $$isNullableBoundary, isListCapableStep, Step } from "../step.js"; import type { __ItemStep } from "./__item.js"; // PUBLIC FLAGS @@ -54,7 +56,7 @@ export type ResolvedTrapValue = false | null | undefined | readonly never[]; export interface FlagStepOptions { acceptFlags?: ExecutionEntryFlags; onReject?: Error | null; - if?: ExecutableStep; + if?: Step; // Trapping an error might want to result in a null or an empty list. valueForInhibited?: TrapValue; valueForError?: TrapValue; @@ -89,7 +91,7 @@ function resolveTrapValue(tv: TrapValue): ResolvedTrapValue { } } -export class __FlagStep extends ExecutableStep { +export class __FlagStep extends Step> { static $$export = { moduleName: "grafast", exportName: "__FlagStep", @@ -102,7 +104,7 @@ export class __FlagStep extends ExecutableStep { private valueForInhibited: ResolvedTrapValue; private valueForError: ResolvedTrapValue; private canBeInlined: boolean; - constructor(step: ExecutableStep, options: FlagStepOptions) { + constructor(step: TStep, options: FlagStepOptions) { super(); const { acceptFlags = DEFAULT_ACCEPT_FLAGS, @@ -147,16 +149,14 @@ export class __FlagStep extends ExecutableStep { $if ? `if(${$if.id}), ` : `` }${digestAcceptFlags(acceptFlags)}, onReject: ${rej}`; } - [$$deepDepSkip](): ExecutableStep { + [$$deepDepSkip](): Step { return this.getDepOptions(0).step; } listItem?: ( - $item: __ItemStep>>, - ) => ExecutableStep; + $item: __ItemStep>>, + ) => Step; // Copied over listItem if the dependent step is a list capable step - _listItem( - $item: __ItemStep>>, - ) { + _listItem($item: __ItemStep>>) { const $dep = this.dependencies[0]; return isListCapableStep($dep) ? $dep.listItem($item) : $item; } @@ -196,9 +196,7 @@ export class __FlagStep extends ExecutableStep { return null; } - public deduplicate( - _peers: readonly ExecutableStep[], - ): readonly ExecutableStep[] { + public deduplicate(_peers: readonly Step[]): readonly Step[] { return (_peers as __FlagStep[]).filter((p) => { // ifDep has already been tested by Grafast (it's a dependency) if (p.forbiddenFlags !== this.forbiddenFlags) return false; @@ -211,8 +209,8 @@ export class __FlagStep extends ExecutableStep { } public execute( - _details: ExecutionDetails<[data: TData, cond?: boolean]>, - ): GrafastResultsList { + _details: ExecutionDetails<[data: DataFromStep, cond?: boolean]>, + ): GrafastResultsList> { throw new Error(`${this} not finalized?`); } @@ -226,7 +224,7 @@ export class __FlagStep extends ExecutableStep { } private fancyExecute( - details: ExecutionDetails<[data: TData, cond?: boolean]>, + details: ExecutionDetails<[data: DataFromStep, cond?: boolean]>, ): any { const dataEv = details.values[0]!; const condEv = @@ -272,7 +270,7 @@ export class __FlagStep extends ExecutableStep { // Checks already performed via addDependency, just pass everything through. Should have been inlined! private passThroughExecute( - details: ExecutionDetails<[data: TData, cond?: boolean]>, + details: ExecutionDetails<[data: DataFromStep, cond?: boolean]>, ): any { const ev = details.values[0]; if (ev.isBatch) { @@ -288,11 +286,11 @@ export class __FlagStep extends ExecutableStep { * Example use case: get user by id, but id is null: no need to fetch the user * since we know they won't exist. */ -export function inhibitOnNull( - $step: ExecutableStep, +export function inhibitOnNull( + $step: TStep, options?: { if?: FlagStepOptions["if"] }, ) { - return new __FlagStep($step, { + return new __FlagStep($step, { ...options, acceptFlags: DEFAULT_ACCEPT_FLAGS & ~FLAG_NULL, }); @@ -303,20 +301,20 @@ export function inhibitOnNull( * that represents a Post instead: throw error to tell user they've sent invalid * data. */ -export function assertNotNull( - $step: ExecutableStep, +export function assertNotNull( + $step: TStep, message: string, options?: { if?: FlagStepOptions["if"] }, ) { - return new __FlagStep($step, { + return new __FlagStep($step, { ...options, acceptFlags: DEFAULT_ACCEPT_FLAGS & ~FLAG_NULL, onReject: new SafeError(message), }); } -export function trap( - $step: ExecutableStep, +export function trap( + $step: TStep, acceptFlags: ExecutionEntryFlags, options?: { valueForInhibited?: FlagStepOptions["valueForInhibited"]; @@ -324,21 +322,36 @@ export function trap( if?: FlagStepOptions["if"]; }, ) { - return new __FlagStep($step, { + return new __FlagStep($step, { ...options, acceptFlags: (acceptFlags & TRAPPABLE_FLAGS) | FLAG_NULL, }); } // Have to overwrite the getDep method due to circular dependency -(ExecutableStep.prototype as any).getDep = function ( - this: ExecutableStep, +(Step.prototype as any).getDep = function ( + this: Step, depId: number, + throwOnFlagged = false, ) { const { step, acceptFlags, onReject } = this.getDepOptions(depId); - if (acceptFlags === DEFAULT_ACCEPT_FLAGS && onReject == null) { + if ( + (acceptFlags === DEFAULT_ACCEPT_FLAGS || + (step[$$isNullableBoundary] && + acceptFlags === DEFAULT_ACCEPT_FLAGS_FOR_NULLABLE_BOUNDARY)) && + onReject == null + ) { return step; } else { + if (throwOnFlagged) { + throw new Error( + `When retrieving dependency ${step} of ${this}, the dependency is flagged as ${digestAcceptFlags( + acceptFlags, + )}/onReject=${String( + onReject, + )}. Please use \`this.getDepOptions(depId)\` instead, and handle the flags`, + ); + } // Return a __FlagStep around options.step so that all the options are preserved. return new __FlagStep(step, { acceptFlags, onReject }); } diff --git a/grafast/grafast/src/steps/__inputDynamicScalar.ts b/grafast/grafast/src/steps/__inputDynamicScalar.ts index 584d231a5a..cda7a7566b 100644 --- a/grafast/grafast/src/steps/__inputDynamicScalar.ts +++ b/grafast/grafast/src/steps/__inputDynamicScalar.ts @@ -8,7 +8,7 @@ import * as graphql from "graphql"; import { SafeError } from "../error.js"; import type { UnbatchedExecutionExtra } from "../interfaces.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import type { __TrackedValueStep } from "./__trackedValue.js"; const { Kind } = graphql; @@ -18,7 +18,7 @@ const { Kind } = graphql; */ export class __InputDynamicScalarStep< TLeaf = any, -> extends UnbatchedExecutableStep { +> extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "__InputDynamicScalarStep", @@ -129,13 +129,15 @@ export class __InputDynamicScalarStep< return converted; }; + /** @internal */ eval(): TLeaf { const variableValues = this.variableNames.map((variableName, i) => - this.getDep<__TrackedValueStep>(i).eval(), + this.getDep<__TrackedValueStep>(i, true).eval(), ); return this.valueFromValues(variableValues); } + /** @internal */ evalIs(expectedValue: undefined | null | 0): boolean { if ( expectedValue === undefined || diff --git a/grafast/grafast/src/steps/__inputList.ts b/grafast/grafast/src/steps/__inputList.ts index ec27cdf136..28b5367cdb 100644 --- a/grafast/grafast/src/steps/__inputList.ts +++ b/grafast/grafast/src/steps/__inputList.ts @@ -3,9 +3,8 @@ import * as graphql from "graphql"; import * as assert from "../assert.js"; import { assertInputStep, inputStep } from "../input.js"; -import type { InputStep, NotVariableValueNode } from "../interfaces.js"; -import { ExecutableStep } from "../step.js"; -import type { ConstantStep } from "./constant.js"; +import type { AnyInputStep, NotVariableValueNode } from "../interfaces.js"; +import { Step } from "../step.js"; import { constant } from "./constant.js"; import { list } from "./list.js"; @@ -17,7 +16,7 @@ const { GraphQLList, Kind } = graphql; export class __InputListStep< TInputType extends graphql.GraphQLList = graphql.GraphQLList, -> extends ExecutableStep { +> extends Step { static $$export = { moduleName: "grafast", exportName: "__InputListStep", @@ -64,12 +63,12 @@ export class __InputListStep< } } - optimize(): ExecutableStep { + optimize(): Step { const { inputValues } = this; if (inputValues?.kind === "NullValue") { return constant(null); } else { - const arr: ExecutableStep[] = []; + const arr: Step[] = []; for (let idx = 0; idx < this.itemCount; idx++) { const itemPlan = this.getDep(idx); arr[idx] = itemPlan; @@ -89,13 +88,14 @@ export class __InputListStep< ); }; - at(index: number): InputStep | ConstantStep { + at(index: number): AnyInputStep { const itemPlan = index < this.itemCount ? this.getDep(index) : constant(undefined); assertInputStep(itemPlan); return itemPlan; } + /** @internal */ eval(): any[] | null { if (this.inputValues?.kind === "NullValue") { return null; @@ -114,6 +114,7 @@ export class __InputListStep< return list; } + /** @internal */ evalIs(value: null | undefined | 0): boolean { if (value === undefined) { return this.inputValues === value; @@ -126,6 +127,7 @@ export class __InputListStep< } } + /** @internal */ evalLength(): number | null { if (this.inputValues === undefined) { return null; diff --git a/grafast/grafast/src/steps/__inputObject.ts b/grafast/grafast/src/steps/__inputObject.ts index a64ce53f47..91909d546c 100644 --- a/grafast/grafast/src/steps/__inputObject.ts +++ b/grafast/grafast/src/steps/__inputObject.ts @@ -4,11 +4,11 @@ import te from "tamedevil"; import { inputStep } from "../input.js"; import type { - InputStep, + AnyInputStep, NotVariableValueNode, UnbatchedExecutionExtra, } from "../interfaces.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import { defaultValueToValueNode } from "../utils.js"; import { constant } from "./constant.js"; @@ -19,7 +19,7 @@ const { Kind } = graphql; */ export class __InputObjectStep< TInputType extends GraphQLInputObjectType = GraphQLInputObjectType, -> extends UnbatchedExecutableStep { +> extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "__InputObjectStep", @@ -27,7 +27,7 @@ export class __InputObjectStep< isSyncAndSafe = true; private inputFields: { - [fieldName: string]: { dependencyIndex: number; step: InputStep }; + [fieldName: string]: { dependencyIndex: number; step: AnyInputStep }; } = Object.create(null); constructor( private inputObjectType: TInputType, @@ -118,7 +118,7 @@ export class __InputObjectStep< return resultValues; } - get(attrName: string): InputStep { + get(attrName: string): AnyInputStep { const step = this.inputFields[attrName]?.step; if (step === undefined) { throw new Error( @@ -128,6 +128,7 @@ export class __InputObjectStep< return step; } + /** @internal */ eval(): any { if (this.inputValues?.kind === "NullValue") { return null; @@ -140,6 +141,7 @@ export class __InputObjectStep< return resultValues; } + /** @internal */ evalIs(value: null | undefined | 0): boolean { if (value === undefined) { return this.inputValues === value; @@ -156,6 +158,7 @@ export class __InputObjectStep< } } + /** @internal */ evalIsEmpty(): boolean { return ( this.inputValues?.kind === "ObjectValue" && @@ -164,6 +167,7 @@ export class __InputObjectStep< } // Written without consulting spec. + /** @internal */ evalHas(attrName: string): boolean { if (!this.inputValues) { return false; @@ -177,6 +181,7 @@ export class __InputObjectStep< return !this.inputFields[attrName].step.evalIs(undefined); } + /** @internal */ evalKeys(): ReadonlyArray | null { if (this.inputValues === undefined) { return null; @@ -218,7 +223,5 @@ export type __InputObjectStepWithDollars< TInputType extends GraphQLInputObjectType = GraphQLInputObjectType, > = __InputObjectStep & { [key in keyof ReturnType & - string as `$${key}`]: InputStep< - ReturnType[key]["type"] - >; + string as `$${key}`]: AnyInputStep; }; diff --git a/grafast/grafast/src/steps/__inputStaticLeaf.ts b/grafast/grafast/src/steps/__inputStaticLeaf.ts index d843005beb..2af94f23c8 100644 --- a/grafast/grafast/src/steps/__inputStaticLeaf.ts +++ b/grafast/grafast/src/steps/__inputStaticLeaf.ts @@ -9,7 +9,7 @@ import type { } from "graphql"; import * as graphql from "graphql"; -import { UnbatchedExecutableStep } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import { constant } from "./constant.js"; const { valueFromAST } = graphql; @@ -19,9 +19,7 @@ const { valueFromAST } = graphql; * * @see __InputDynamicScalarStep */ -export class __InputStaticLeafStep< - TLeaf = any, -> extends UnbatchedExecutableStep { +export class __InputStaticLeafStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "__InputStaticLeafStep", @@ -57,10 +55,12 @@ export class __InputStaticLeafStep< return constant(this.coercedValue, false); } + /** @internal */ eval(): TLeaf { return this.coercedValue; } + /** @internal */ evalIs(expectedValue: unknown): boolean { return this.coercedValue === expectedValue; } diff --git a/grafast/grafast/src/steps/__item.ts b/grafast/grafast/src/steps/__item.ts index 9849340a0a..3a0801475f 100644 --- a/grafast/grafast/src/steps/__item.ts +++ b/grafast/grafast/src/steps/__item.ts @@ -2,15 +2,15 @@ import chalk from "chalk"; import type { GrafastResultsList, JSONValue } from "../index.js"; import { $$deepDepSkip } from "../interfaces.js"; -import type { ExecutableStep } from "../step.js"; -import { $$noExec, UnbatchedExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; +import { $$noExec, UnbatchedStep } from "../step.js"; /** * An __ItemStep is an internal plan (users must never construct it * themselves!) that Grafast uses to refer to an individual item within a list * or stream. */ -export class __ItemStep extends UnbatchedExecutableStep { +export class __ItemStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "__ItemStep", @@ -24,7 +24,7 @@ export class __ItemStep extends UnbatchedExecutableStep { public transformStepId?: number; constructor( - parentPlan: ExecutableStep | ExecutableStep, + parentPlan: Step | Step, public readonly depth = 0, ) { super(); @@ -43,10 +43,10 @@ export class __ItemStep extends UnbatchedExecutableStep { }; } - getParentStep(): ExecutableStep { + getParentStep(): Step { return this.getDep(0); } - [$$deepDepSkip](): ExecutableStep { + [$$deepDepSkip](): Step { return this.getDep(0); } diff --git a/grafast/grafast/src/steps/__trackedValue.ts b/grafast/grafast/src/steps/__trackedValue.ts index 7d770b9761..4705bb06a5 100644 --- a/grafast/grafast/src/steps/__trackedValue.ts +++ b/grafast/grafast/src/steps/__trackedValue.ts @@ -20,7 +20,7 @@ import type { GrafastResultsList, UnbatchedExecutionExtra, } from "../interfaces.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import type { __ValueStep } from "./__value.js"; import type { AccessStep } from "./access.js"; @@ -49,7 +49,7 @@ export class __TrackedValueStep< | GraphQLInputType | ReadonlyArray | undefined = undefined, -> extends UnbatchedExecutableStep { +> extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "__TrackedValueStep", @@ -166,7 +166,7 @@ export class __TrackedValueStep< } private getValuePlan() { - return this.getDep<__ValueStep | AccessStep>(0); + return this.getDep<__ValueStep | AccessStep>(0, true); } /** @@ -292,6 +292,8 @@ export class __TrackedValueStep< * **WARNING**: avoid using this where possible, it causes OpPlans to split. * * **WARNING**: this is the most expensive eval, if you need to eval, prefer evalIs, evalHas, etc instead. + * + * @internal */ eval(): TData | undefined { const { path, value } = this; @@ -311,6 +313,8 @@ export class __TrackedValueStep< * Should only be used on scalars. * * **WARNING**: avoid using this where possible, it causes OpPlans to split. + * + * @internal */ evalIs(expectedValue: unknown): boolean { const { value, path } = this; @@ -324,6 +328,7 @@ export class __TrackedValueStep< return pass; } + /** @internal */ evalIsEmpty() { const { value, path } = this; const isEmpty = @@ -344,6 +349,8 @@ export class __TrackedValueStep< * check will always return the same (boolean) result. * * **WARNING**: avoid using this where possible, it causes OpPlans to split. + * + * @internal */ evalHas(key: string): boolean { const { value, path } = this; @@ -372,6 +379,8 @@ export class __TrackedValueStep< * check will always return the same result. * * **WARNING**: avoid using this where possible, it causes OpPlans to split. + * + * @internal */ evalKeys(): ReadonlyArray | null { const { value, path } = this; @@ -417,6 +426,8 @@ export class __TrackedValueStep< * the same length. * * **WARNING**: avoid using this where possible, it causes OpPlans to split. + * + * @internal */ evalLength(): number | null { const { value, path } = this; diff --git a/grafast/grafast/src/steps/__value.ts b/grafast/grafast/src/steps/__value.ts index 7c29f5f16d..f1691482d5 100644 --- a/grafast/grafast/src/steps/__value.ts +++ b/grafast/grafast/src/steps/__value.ts @@ -1,5 +1,5 @@ import type { GrafastResultsList } from "../index.js"; -import { $$noExec, ExecutableStep } from "../step.js"; +import { $$noExec, Step } from "../step.js"; import type { AccessStep } from "./access.js"; import { access } from "./access.js"; @@ -8,7 +8,7 @@ import { access } from "./access.js"; * internal - we populate the value as part of the algorithm - see * `GetValueStepId` and `PopulateValueStep`. */ -export class __ValueStep extends ExecutableStep { +export class __ValueStep extends Step { static $$export = { moduleName: "grafast", exportName: "__ValueStep", diff --git a/grafast/grafast/src/steps/access.ts b/grafast/grafast/src/steps/access.ts index f54ec137dd..af18f2266e 100644 --- a/grafast/grafast/src/steps/access.ts +++ b/grafast/grafast/src/steps/access.ts @@ -4,8 +4,8 @@ import te from "tamedevil"; import { inspect } from "../inspect.js"; import type { ExecutionExtra, UnbatchedExecutionExtra } from "../interfaces.js"; -import type { ExecutableStep } from "../step.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import { arraysMatch, digestKeys } from "../utils.js"; /** @internal */ @@ -133,7 +133,7 @@ return (_meta, value) => value?.${te.join(access, "?.")}${ * preferably where the objects have null prototypes, and be sure to adhere to * the naming conventions detailed in assertSafeToAccessViaBraces. */ -export class AccessStep extends UnbatchedExecutableStep { +export class AccessStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "AccessStep", @@ -145,7 +145,7 @@ export class AccessStep extends UnbatchedExecutableStep { private readonly hasSymbols: boolean; constructor( - parentPlan: ExecutableStep, + parentPlan: Step, path: (string | number | symbol)[], public readonly fallback?: any, ) { @@ -160,9 +160,13 @@ export class AccessStep extends UnbatchedExecutableStep { } toStringMeta(): string { - return `${chalk.bold.yellow(String(this.getDep(0).id))}.${this.path - .map((p) => String(p)) - .join(".")}`; + return `${chalk.bold.yellow( + String(this.getDepOptions(0).step.id), + )}.${this.path.map((p) => String(p)).join(".")}`; + } + + getParentStep() { + return this.getDep(0); } /** @@ -240,7 +244,7 @@ export class AccessStep extends UnbatchedExecutableStep { * falling back to `fallback` if it were null-ish. */ export function access( - parentPlan: ExecutableStep, + parentPlan: Step, rawPath?: (string | number | symbol)[] | string | number | symbol, fallback?: any, ): AccessStep { diff --git a/grafast/grafast/src/steps/applyInput.ts b/grafast/grafast/src/steps/applyInput.ts new file mode 100644 index 0000000000..612f3fbba8 --- /dev/null +++ b/grafast/grafast/src/steps/applyInput.ts @@ -0,0 +1,315 @@ +import type { GraphQLInputType, GraphQLSchema } from "graphql"; +import { + isEnumType, + isInputObjectType, + isListType, + isNonNullType, + isScalarType, +} from "graphql"; + +import type { AnyInputStep, UnbatchedExecutionExtra } from "../interfaces.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; +import { constant, ConstantStep, operationPlan } from "./index.js"; + +let currentModifiers: Modifier[] = []; +let applyingModifiers = false; +let inputArgsApplyDepth = 0; + +export class ApplyInputStep< + TParent extends object = any, + TTarget extends object = TParent, +> extends UnbatchedStep<(arg: TParent) => void> { + static $$export = { + moduleName: "grafast", + exportName: "ApplyInputStep", + }; + public isSyncAndSafe = true; + public allowMultipleOptimizations = true; + + valueDepId: 0; + constructor( + private inputType: GraphQLInputType, + $value: AnyInputStep, + private getTargetFromParent: + | ((parent: TParent) => TTarget | (() => TTarget)) + | undefined, + ) { + super(); + this.valueDepId = this.addUnaryDependency($value) as 0; + if (!this._isUnary) { + throw new Error(`applyInput() must be unary`); + } + this._isUnaryLocked = true; + } + + public deduplicate(peers: readonly ApplyInputStep[]) { + return peers.filter( + (p) => + p.inputType === this.inputType && + p.getTargetFromParent === this.getTargetFromParent, + ); + } + + public optimize() { + const $value = this.getDep(this.valueDepId); + if ($value instanceof ConstantStep) { + // Replace myself with a constant! + const { + operationPlan: { schema }, + inputType, + getTargetFromParent, + } = this; + const { data } = $value; + return constant(function applyInputConstant(parent: TParent) { + inputArgsApply(schema, inputType, parent, data, getTargetFromParent); + }, false); + } + return this; + } + + unbatchedExecute(extra: UnbatchedExecutionExtra, value: unknown) { + const { getTargetFromParent } = this; + return (parentThing: TParent) => + inputArgsApply( + this.operationPlan.schema, + this.inputType, + parentThing, + value, + getTargetFromParent, + ); + } +} + +export function inputArgsApply< + TArg extends object, + TTarget extends object = TArg, +>( + schema: GraphQLSchema, + inputType: GraphQLInputType, + parent: TArg, + inputValue: unknown, + getTargetFromParent: + | ((parent: TArg) => TTarget | (() => TTarget)) + | undefined, +): void { + try { + inputArgsApplyDepth++; + const target = getTargetFromParent + ? getTargetFromParent(parent) + : (parent as unknown as TTarget); + + _inputArgsApply(schema, inputType, target, inputValue); + } finally { + inputArgsApplyDepth--; + } + let l: number; + if (inputArgsApplyDepth === 0 && (l = currentModifiers.length) > 0) { + applyingModifiers = true; + try { + for (let i = l - 1; i >= 0; i--) { + currentModifiers[i].apply(); + } + } finally { + applyingModifiers = false; + currentModifiers = []; + } + } +} + +export function applyInput< + TParent extends object = any, + TTarget extends object = TParent, +>( + inputType: GraphQLInputType, + $value: AnyInputStep, + getTargetFromParent?: (parent: TParent) => TTarget, +) { + const opPlan = operationPlan(); + const { schema } = opPlan; + return opPlan.withRootLayerPlan(() => { + if ($value instanceof ConstantStep) { + // Replace us with a constant + const { data } = $value; + return constant(function applyInputConstant(parent: TParent) { + inputArgsApply(schema, inputType, parent, data, getTargetFromParent); + }, false); + } else { + return new ApplyInputStep( + inputType, + $value, + getTargetFromParent, + ); + } + }); +} + +/* +const defaultInputObjectTypeInputPlanResolver: InputObjectTypeInputPlanResolver = + (input, info) => { + const fields = info.type.getFields(); + const obj: { [key: string]: ExecutableStep } = Object.create(null); + for (const fieldName in fields) { + obj[fieldName] = input.get(fieldName); + } + return object(obj); + }; +*/ + +function _inputArgsApply( + schema: GraphQLSchema, + inputType: GraphQLInputType, + target: TArg | (() => TArg), + inputValue: unknown, +): void { + // PERF: we should have the plan generate a digest of `inputType` so that we + // can jump right to the relevant parts without too much traversal cost. + if (inputValue === undefined) { + return; + } + if (isNonNullType(inputType)) { + if (inputValue === null) { + throw new Error(`null value found in non-null position`); + } + _inputArgsApply(schema, inputType.ofType, target, inputValue); + } else if (isListType(inputType)) { + if (inputValue == null) return; + if (!Array.isArray(inputValue)) { + throw new Error(`Expected list in list position`); + } + for (const item of inputValue) { + const itemTarget = typeof target === "function" ? target() : target; + _inputArgsApply(schema, inputType.ofType, itemTarget, item); + } + } else if (typeof target === "function") { + throw new Error( + "Functions may only be used as the target for list types (the function is called once per list item)", + ); + } else if (isInputObjectType(inputType)) { + if (inputValue === null) { + return; + } + const fields = inputType.getFields(); + for (const [fieldName, field] of Object.entries(fields)) { + const val = (inputValue as any)[fieldName]; + if (val === undefined) continue; + if (field.extensions.grafast?.apply) { + const newTarget = field.extensions.grafast.apply(target, val, { + schema, + field, + fieldName, + }); + if (newTarget != null) { + _inputArgsApply(schema, field.type, newTarget, val); + } + } + } + } else if (isScalarType(inputType)) { + // if (inputType.extensions.grafast?.apply) { + // } + } else if (isEnumType(inputType)) { + if (inputValue === null) { + return; + } + const values = inputType.getValues(); + const value = values.find((v) => v.value === inputValue); + if (value) { + if (value.extensions.grafast?.apply) { + value.extensions.grafast.apply(target); + } + } else { + throw new Error(`Couldn't find value in ${inputType} for ${inputValue}`); + } + } else { + const never: never = inputType; + throw new Error(`Input type expected, but found ${never}`); + } +} + +/** + * Modifiers modify their parent (which may be another modifier or anything + * else). First they gather all the requirements from their children (if any) + * being applied to them, then they apply themselves to their parent. This + * application is done through the `apply()` method. + */ +export abstract class Modifier { + // Explicitly we do not add $$export here because we want children to set it + static $$export: any; + + constructor(protected readonly parent: TParent) { + if (applyingModifiers) { + throw new Error( + `Must not create new modifier whilst modifiers are being applied!`, + ); + } + currentModifiers.push(this); + } + + /** + * In this method, you should apply the changes to your `this.parent` plan + */ + abstract apply(): void; +} + +export function isModifier(plan: any): plan is Modifier { + return plan instanceof Modifier; +} + +export function assertModifier( + plan: any, + pathDescription: string, +): asserts plan is Modifier { + if (!isModifier(plan)) { + throw new Error( + `The plan returned from '${pathDescription}' should be a modifier plan, but it does not implement the 'apply' method.`, + ); + } +} + +/* +type ApplyAfterMode = "autoApplyAfterParentApply" | "autoApplyAfterParentInput"; + +function processAfter( + rootFieldArgs: InputValue, + path: ReadonlyArray, + result: Modifier | null | undefined | void, + fields: Record, + applyAfterMode: ApplyAfterMode, +) { + if (result != null) { + if (applyAfterMode === "autoApplyAfterParentApplyPlan" && result != null) { + // `applyPlan` returned a step, so auto-apply every subfield to it + for (const name of Object.keys(fields)) { + rootFieldArgs.apply(result, [...path, name]); + } + } else { + for (const [name, spec] of Object.entries(fields)) { + const autoApply = + applyAfterMode === "autoApplyAfterParentInputPlan" + ? (spec as GraphQLInputField).extensions.grafast + ?.autoApplyAfterParentInputPlan + : applyAfterMode === "autoApplyAfterParentApplyPlan" + ? (spec as GraphQLInputField).extensions.grafast + ?.autoApplyAfterParentApplyPlan + : null; + if (autoApply) { + rootFieldArgs.apply(result, [...path, name]); + } + } + } + } +} +*/ + +export type ApplyableExecutableStep< + TArg extends object = any, + TData = any, +> = Step & { + apply($apply: Step<(arg: TArg) => void>): void; +}; + +export function isApplyableStep( + s: Step, +): s is ApplyableExecutableStep { + return typeof (s as any).apply === "function"; +} diff --git a/grafast/grafast/src/steps/applyTransforms.ts b/grafast/grafast/src/steps/applyTransforms.ts index 487dc1dd8b..cad2eda174 100644 --- a/grafast/grafast/src/steps/applyTransforms.ts +++ b/grafast/grafast/src/steps/applyTransforms.ts @@ -17,7 +17,7 @@ import { type GrafastResultsList, } from "../interfaces.js"; import type { ListCapableStep } from "../step.js"; -import { ExecutableStep, isListCapableStep } from "../step.js"; +import { isListCapableStep, Step } from "../step.js"; import { __ItemStep } from "./__item.js"; import type { ConnectionCapableStep } from "./connection.js"; import { itemsOrStep } from "./connection.js"; @@ -25,7 +25,7 @@ import { itemsOrStep } from "./connection.js"; /** * @internal */ -export class ApplyTransformsStep extends ExecutableStep { +export class ApplyTransformsStep extends Step { static $$export = { moduleName: "grafast", exportName: "ApplyTransformsStep", @@ -222,7 +222,7 @@ export class ApplyTransformsStep extends ExecutableStep { * send the result to an external service) rather than processing them through * the GraphQL response, then you may need to call `applyTransforms` on it. */ -export function applyTransforms($step: ExecutableStep) { +export function applyTransforms($step: Step) { if (isListCapableStep($step)) { return $step.operationPlan.cacheStep( $step, diff --git a/grafast/grafast/src/steps/bakedInput.ts b/grafast/grafast/src/steps/bakedInput.ts new file mode 100644 index 0000000000..ff4be762ff --- /dev/null +++ b/grafast/grafast/src/steps/bakedInput.ts @@ -0,0 +1,115 @@ +import type { + GraphQLInputObjectType, + GraphQLInputType, + GraphQLList, + GraphQLSchema, +} from "graphql"; +import { getNullableType, isInputObjectType, isListType } from "graphql"; + +import type { UnbatchedExecutionExtra } from "../interfaces.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; +import { inputArgsApply } from "./applyInput.js"; +import { operationPlan } from "./index.js"; + +export class BakedInputStep extends UnbatchedStep { + static $$export = { + moduleName: "grafast", + exportName: "BakedInputStep", + }; + public isSyncAndSafe = true; + + valueDepId: 0; + constructor( + private inputType: GraphQLInputObjectType | GraphQLList, + $value: Step, + ) { + super(); + this.valueDepId = this.addUnaryDependency($value) as 0; + if (!this._isUnary) { + throw new Error(`bakedInput() must be unary`); + } + this._isUnaryLocked = true; + } + + public deduplicate(peers: readonly BakedInputStep[]) { + return peers.filter((p) => p.inputType === this.inputType); + } + + unbatchedExecute(extra: UnbatchedExecutionExtra, value: unknown) { + if (value == null) return value as TData; + return bakedInputRuntime( + this.operationPlan.schema, + this.inputType, + value, + ) as TData; + } +} + +/** + * Takes a input type and matching value and performs runtime conversion of + * that type to the internal representation (if any). + */ +export function bakedInput( + inputType: GraphQLInputType, + $value: Step, +) { + const nullableInputType = getNullableType(inputType); + // Could have done this in `optimize()` but faster to do it here. + if ( + isListType(nullableInputType) || + (isInputObjectType(nullableInputType) && + typeof nullableInputType.extensions?.grafast?.baked === "function") + ) { + // Ooo, we're fancy! Do the thing! + return operationPlan().withRootLayerPlan( + () => new BakedInputStep(nullableInputType, $value), + ); + } else { + // Nothing special, we just return the input. + return $value; + } +} + +export function bakedInputRuntime( + schema: GraphQLSchema, + inputType: GraphQLInputType, + value: unknown, +): unknown { + if (value == null) return value; + const nullableInputType = getNullableType(inputType); + if (isListType(nullableInputType)) { + if (Array.isArray(value)) { + return value.map((v) => + bakedInputRuntime(schema, nullableInputType.ofType, v), + ); + } else { + throw new Error( + `Failed to process input for type ${inputType} - expected array`, + ); + } + } + // Could have done this in `optimize()` but faster to do it here. + const baked = isInputObjectType(nullableInputType) + ? nullableInputType.extensions?.grafast?.baked + : null; + if (typeof baked !== "function") { + // Nothing special, we just return the input. + return value; + } else { + // Ooo, we're fancy! Do the thing! + let applied = false; + const bakedObj = baked!(value as Record, { + type: nullableInputType as GraphQLInputObjectType, + schema, + applyChildren(parent) { + applied = true; + inputArgsApply(schema, nullableInputType, parent, value, undefined); + }, + }); + if (!applied) { + inputArgsApply(schema, nullableInputType, bakedObj, value, undefined); + } + return bakedObj; + } +} diff --git a/grafast/grafast/src/steps/condition.ts b/grafast/grafast/src/steps/condition.ts index 4b5339b1f8..0c8708ad20 100644 --- a/grafast/grafast/src/steps/condition.ts +++ b/grafast/grafast/src/steps/condition.ts @@ -1,5 +1,6 @@ -import type { ExecutableStep, UnbatchedExecutionExtra } from ".."; -import { UnbatchedExecutableStep } from "../step.js"; +import type { UnbatchedExecutionExtra } from "../interfaces.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; const unaryOperators = ["null", "not null", "exists", "not exists"] as const; type UnaryOperator = (typeof unaryOperators)[number]; @@ -7,7 +8,7 @@ const binaryOperators = ["===", "!=="] as const; type BinaryOperator = (typeof binaryOperators)[number]; type Operator = UnaryOperator | BinaryOperator; -export class ConditionStep extends UnbatchedExecutableStep { +export class ConditionStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "ConditionStep", @@ -113,8 +114,7 @@ function isNotEqual( return value1 !== value2; } -type Step = ExecutableStep; -type $Boolean = ExecutableStep; +type $Boolean = Step; function condition(op: "null", step: Step): $Boolean; function condition(op: "not null", step: Step): $Boolean; function condition(op: "exists", step: Step): $Boolean; diff --git a/grafast/grafast/src/steps/connection.ts b/grafast/grafast/src/steps/connection.ts index 89866bb875..00ef958d10 100644 --- a/grafast/grafast/src/steps/connection.ts +++ b/grafast/grafast/src/steps/connection.ts @@ -5,10 +5,10 @@ import type { Maybe, UnbatchedExecutionExtra, } from "../interfaces.js"; -import type { ExecutableStep } from "../step.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import { arrayOfLength } from "../utils.js"; -import { constant } from "./constant.js"; +import { constant, ConstantStep } from "./constant.js"; import { each } from "./each.js"; type ParametersExceptFirst = F extends (arg0: any, ...rest: infer R) => any @@ -19,17 +19,17 @@ type ParametersExceptFirst = F extends (arg0: any, ...rest: infer R) => any * Describes what a plan needs to implement in order to be suitable for * supplying what the `PageInfo` type requires. */ -export interface PageInfoCapableStep extends ExecutableStep { - hasNextPage(): ExecutableStep; - hasPreviousPage(): ExecutableStep; - startCursor(): ExecutableStep; - endCursor(): ExecutableStep; +export interface PageInfoCapableStep extends Step { + hasNextPage(): Step; + hasPreviousPage(): Step; + startCursor(): Step; + endCursor(): Step; } export function assertPageInfoCapableStep( - $step: ExecutableStep | PageInfoCapableStep, + $step: Step | PageInfoCapableStep, ): asserts $step is PageInfoCapableStep { - const $typed = $step as ExecutableStep & { + const $typed = $step as Step & { hasNextPage?: any; hasPreviousPage?: any; startCursor?: any; @@ -50,9 +50,9 @@ export function assertPageInfoCapableStep( * supplying what a ConnectionStep requires. */ export interface ConnectionCapableStep< - TItemStep extends ExecutableStep, - TCursorStep extends ExecutableStep, -> extends ExecutableStep { + TItemStep extends Step, + TCursorStep extends Step, +> extends Step { /** * Clone the plan; it's recommended that you add `$connection` as a * dependency so that you can abort execution early in the case of errors @@ -70,17 +70,15 @@ export interface ConnectionCapableStep< any >, ): PageInfoCapableStep; - setFirst($first: ExecutableStep>): void; - setLast($last: ExecutableStep>): void; - setOffset($offset: ExecutableStep>): void; + setFirst($first: Step>): void; + setLast($last: Step>): void; + setOffset($offset: Step>): void; - parseCursor($cursor: ExecutableStep>): Maybe; + parseCursor($cursor: Step>): TCursorStep; setBefore($before: TCursorStep): void; setAfter($after: TCursorStep): void; - items(): ExecutableStep< - ReadonlyArray ? U : any> - >; + items(): Step ? U : any>>; } const EMPTY_OBJECT = Object.freeze(Object.create(null)); @@ -90,12 +88,12 @@ const EMPTY_OBJECT = Object.freeze(Object.create(null)); * indepdenent of data source. */ export class ConnectionStep< - TItemStep extends ExecutableStep, - TCursorStep extends ExecutableStep, + TItemStep extends Step, + TCursorStep extends Step, TStep extends ConnectionCapableStep, - TEdgeDataStep extends ExecutableStep = TItemStep, - TNodeStep extends ExecutableStep = ExecutableStep, -> extends UnbatchedExecutableStep { + TEdgeDataStep extends Step = TItemStep, + TNodeStep extends Step = Step, +> extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "ConnectionStep", @@ -120,7 +118,7 @@ export class ConnectionStep< public readonly itemPlan?: ($item: TItemStep) => TNodeStep; public readonly cursorPlan?: ( $item: TItemStep, - ) => ExecutableStep | undefined; + ) => Step | undefined; // TYPES: if subplan is `ConnectionCapableStep>` then `nodePlan`/`cursorPlan` aren't needed; otherwise `cursorPlan` is required. constructor( @@ -145,12 +143,10 @@ export class ConnectionStep< return String(this.subplanId); } - public getFirst(): ExecutableStep | null { - return this.maybeGetDep>( - this._firstDepId, - ); + public getFirst(): Step | null { + return this.maybeGetDep>(this._firstDepId); } - public setFirst(first: ExecutableStep | number) { + public setFirst(first: Step | number) { if (this._firstDepId != null) { throw new Error(`${this}->setFirst already called`); } @@ -161,12 +157,10 @@ export class ConnectionStep< `${this}.setFirst(...) must be passed a _unary_ step, but ${$first} is not unary. See: https://err.red/gud#connection`, }); } - public getLast(): ExecutableStep | null { - return this.maybeGetDep>( - this._lastDepId, - ); + public getLast(): Step | null { + return this.maybeGetDep>(this._lastDepId); } - public setLast(last: ExecutableStep | number) { + public setLast(last: Step | number) { if (this._lastDepId != null) { throw new Error(`${this}->setLast already called`); } @@ -177,12 +171,10 @@ export class ConnectionStep< `${this}.setLast(...) must be passed a _unary_ step, but ${$last} is not unary. See: https://err.red/gud#connection`, }); } - public getOffset(): ExecutableStep | null { - return this.maybeGetDep>( - this._offsetDepId, - ); + public getOffset(): Step | null { + return this.maybeGetDep>(this._offsetDepId); } - public setOffset(offset: ExecutableStep | number) { + public setOffset(offset: Step | number) { if (this._offsetDepId != null) { throw new Error(`${this}->setOffset already called`); } @@ -194,36 +186,38 @@ export class ConnectionStep< }); } public getBefore(): TCursorStep | null { - return this.maybeGetDep(this._beforeDepId); + return this.maybeGetDep(this._beforeDepId, true); } - public setBefore($beforePlan: ExecutableStep) { + public setBefore($beforePlan: Step) { + if ($beforePlan instanceof ConstantStep && $beforePlan.data == null) { + return; + } if (this._beforeDepId !== undefined) { throw new Error(`${this}->setBefore already called`); } const $parsedBeforePlan = this.getSubplan().parseCursor($beforePlan); - this._beforeDepId = $parsedBeforePlan - ? this.addUnaryDependency({ - step: $parsedBeforePlan, - nonUnaryMessage: () => - `${this}.setBefore(...) must be passed a _unary_ step, but ${$parsedBeforePlan} (and presumably ${$beforePlan}) is not unary. See: https://err.red/gud#connection`, - }) - : null; + this._beforeDepId = this.addUnaryDependency({ + step: $parsedBeforePlan, + nonUnaryMessage: () => + `${this}.setBefore(...) must be passed a _unary_ step, but ${$parsedBeforePlan} (and presumably ${$beforePlan}) is not unary. See: https://err.red/gud#connection`, + }); } public getAfter(): TCursorStep | null { - return this.maybeGetDep(this._afterDepId); + return this.maybeGetDep(this._afterDepId, true); } - public setAfter($afterPlan: ExecutableStep) { + public setAfter($afterPlan: Step) { + if ($afterPlan instanceof ConstantStep && $afterPlan.data == null) { + return; + } if (this._afterDepId !== undefined) { throw new Error(`${this}->setAfter already called`); } const $parsedAfterPlan = this.getSubplan().parseCursor($afterPlan); - this._afterDepId = $parsedAfterPlan - ? this.addUnaryDependency({ - step: $parsedAfterPlan, - nonUnaryMessage: () => - `${this}.setAfter(...) must be passed a _unary_ step, but ${$parsedAfterPlan} (and presumably ${$afterPlan}) is not unary. See: https://err.red/gud#connection`, - }) - : null; + this._afterDepId = this.addUnaryDependency({ + step: $parsedAfterPlan, + nonUnaryMessage: () => + `${this}.setAfter(...) must be passed a _unary_ step, but ${$parsedAfterPlan} (and presumably ${$afterPlan}) is not unary. See: https://err.red/gud#connection`, + }); } /** @@ -315,7 +309,7 @@ export class ConnectionStep< * to add a dependency to us, which is typically useful for adding validation * functions so that they are thrown "earlier", avoiding error bubbling. */ - public addValidation(callback: () => ExecutableStep) { + public addValidation(callback: () => Step) { this.withMyLayerPlan(() => { this.addDependency(callback()); }); @@ -332,7 +326,7 @@ export class ConnectionStep< } } - public edges(): ExecutableStep { + public edges(): Step { if (this.cursorPlan || this.itemPlan || this.edgeDataPlan) { return each(this.cloneSubplanWithPagination(), ($intermediate) => this.wrapEdge($intermediate as any), @@ -385,16 +379,15 @@ export class ConnectionStep< } } -export interface EdgeCapableStep - extends ExecutableStep { +export interface EdgeCapableStep extends Step { node(): TNodeStep; - cursor(): ExecutableStep; + cursor(): Step; } -export function assertEdgeCapableStep( - $step: ExecutableStep | EdgeCapableStep, +export function assertEdgeCapableStep( + $step: Step | EdgeCapableStep, ): asserts $step is EdgeCapableStep { - const $typed = $step as ExecutableStep & { + const $typed = $step as Step & { node?: any; cursor?: any; }; @@ -407,13 +400,13 @@ export function assertEdgeCapableStep( } export class EdgeStep< - TItemStep extends ExecutableStep, - TCursorStep extends ExecutableStep, + TItemStep extends Step, + TCursorStep extends Step, TStep extends ConnectionCapableStep, - TEdgeDataStep extends ExecutableStep = TItemStep, - TNodeStep extends ExecutableStep = ExecutableStep, + TEdgeDataStep extends Step = TItemStep, + TNodeStep extends Step = Step, > - extends UnbatchedExecutableStep + extends UnbatchedStep implements EdgeCapableStep { static $$export = { @@ -447,9 +440,7 @@ export class EdgeStep< if (!skipCursor) { const $cursor = $connection.cursorPlan?.($item) ?? - ( - $item as ExecutableStep & { cursor?: () => ExecutableStep } - ).cursor?.(); + ($item as Step & { cursor?: () => Step }).cursor?.(); if (!$cursor) { throw new Error(`No cursor plan known for '${$item}'`); } @@ -497,7 +488,7 @@ export class EdgeStep< return this.getConnectionStep().itemPlan?.($item) ?? ($item as any); } - cursor(): ExecutableStep { + cursor(): Step { this.needCursor = true; return this.getDep(this.cursorDepId!); } @@ -536,13 +527,13 @@ export class EdgeStep< let warned = false; interface ConnectionConfig< - TItemStep extends ExecutableStep, - TEdgeDataStep extends ExecutableStep = TItemStep, - TNodeStep extends ExecutableStep = ExecutableStep, + TItemStep extends Step, + TEdgeDataStep extends Step = TItemStep, + TNodeStep extends Step = Step, > { nodePlan?: ($item: TItemStep) => TNodeStep; edgeDataPlan?: ($item: TItemStep) => TEdgeDataStep; - cursorPlan?: ($item: TItemStep) => ExecutableStep; + cursorPlan?: ($item: TItemStep) => Step; } /** @@ -550,11 +541,11 @@ interface ConnectionConfig< * cursor connections. */ export function connection< - TItemStep extends ExecutableStep, - TCursorStep extends ExecutableStep, + TItemStep extends Step, + TCursorStep extends Step, TStep extends ConnectionCapableStep, - TEdgeDataStep extends ExecutableStep = TItemStep, - TNodeStep extends ExecutableStep = ExecutableStep, + TEdgeDataStep extends Step = TItemStep, + TNodeStep extends Step = Step, >( step: TStep, config?: ConnectionConfig, @@ -577,12 +568,12 @@ export function connection< } export type ItemsStep< - T extends ExecutableStep | ConnectionCapableStep, + T extends Step | ConnectionCapableStep, > = T extends ConnectionCapableStep ? ReturnType : T; export function itemsOrStep< - T extends ExecutableStep | ConnectionCapableStep, ->($step: T): ExecutableStep { + T extends Step | ConnectionCapableStep, +>($step: T): Step { return "items" in $step && typeof $step.items === "function" ? $step.items() : $step; diff --git a/grafast/grafast/src/steps/constant.ts b/grafast/grafast/src/steps/constant.ts index c23dedb983..11069c16d0 100644 --- a/grafast/grafast/src/steps/constant.ts +++ b/grafast/grafast/src/steps/constant.ts @@ -1,13 +1,17 @@ import { inspect } from "../inspect.js"; -import type { ExecutionDetails, GrafastResultsList } from "../interfaces.js"; -import { ExecutableStep, UnbatchedExecutableStep } from "../step.js"; +import type { + ExecutionDetails, + GrafastResultsList, + JSONValue, +} from "../interfaces.js"; +import { Step, UnbatchedStep } from "../step.js"; import { arrayOfLength } from "../utils.js"; import { operationPlan } from "./index.js"; /** * Converts a constant value (e.g. a string/number/etc) into a plan */ -export class ConstantStep extends UnbatchedExecutableStep { +export class ConstantStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "ConstantStep", @@ -42,6 +46,23 @@ export class ConstantStep extends UnbatchedExecutableStep { .slice(0, 60); } + public planJSONExtra(): undefined | Record { + if (this.isSensitive) return; + const data = this.data as unknown; + if ( + data == null || + typeof data === "boolean" || + typeof data === "number" || + typeof data === "string" + ) { + return { + constant: { + type: typeof data, + }, + }; + } + } + deduplicate(peers: readonly ConstantStep[]) { return peers.filter((p) => p.data === this.data); } @@ -50,14 +71,17 @@ export class ConstantStep extends UnbatchedExecutableStep { return arrayOfLength(count, this.data); } + /** @internal */ eval() { return this.data; } + /** @internal */ evalIs(value: any) { return this.data === value; } + /** @internal */ evalIsEmpty() { return ( typeof this.data === "object" && @@ -66,10 +90,12 @@ export class ConstantStep extends UnbatchedExecutableStep { ); } + /** @internal */ evalLength() { return Array.isArray(this.data) ? this.data.length : null; } + /** @internal */ evalKeys(): ReadonlyArray | null { if (this.data == null || typeof this.data !== "object") { return null; @@ -164,10 +190,10 @@ export function constant( } // Have to overwrite the getDepOrConstant method due to circular dependency -(ExecutableStep.prototype as any).getDepOrConstant = function ( - this: ExecutableStep, +(Step.prototype as any).getDepOrConstant = function ( + this: Step, depId: number | null, fallback: TData, -): ExecutableStep { +): Step { return this.maybeGetDep(depId) ?? constant(fallback, false); }; diff --git a/grafast/grafast/src/steps/each.ts b/grafast/grafast/src/steps/each.ts index ed85972794..cdf9682a53 100644 --- a/grafast/grafast/src/steps/each.ts +++ b/grafast/grafast/src/steps/each.ts @@ -1,6 +1,6 @@ import chalk from "chalk"; -import type { ExecutableStep, ListCapableStep } from "../step.js"; +import type { ListCapableStep, Step } from "../step.js"; import { isListCapableStep } from "../step.js"; import { __ItemStep } from "./__item.js"; import type { @@ -15,7 +15,7 @@ const eachReduceCallback = (memo: any[], item: any) => { memo.push(item); return memo; }; -const eachItemPlanCallback = (itemPlan: ExecutableStep) => itemPlan; +const eachItemPlanCallback = (itemPlan: Step) => itemPlan; const eachInitialState = () => [] as any; const outerCache = new WeakMap>(); @@ -42,10 +42,9 @@ const eachCallbackForListPlan = ( */ export function each< TListStep extends - | (ExecutableStep & - Partial>) + | (Step & Partial>) | ConnectionCapableStep, - TResultItemStep extends ExecutableStep, + TResultItemStep extends Step, >( listStep: TListStep, mapper: ( diff --git a/grafast/grafast/src/steps/error.ts b/grafast/grafast/src/steps/error.ts index a2098c7617..cf6c666e86 100644 --- a/grafast/grafast/src/steps/error.ts +++ b/grafast/grafast/src/steps/error.ts @@ -1,12 +1,10 @@ import { flagError } from "../error.js"; import { inspect } from "../inspect.js"; import type { ExecutionDetails, GrafastResultsList } from "../interfaces.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import { arrayOfLength } from "../utils.js"; -export class ErrorStep< - TError extends Error, -> extends UnbatchedExecutableStep { +export class ErrorStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "ErrorStep", diff --git a/grafast/grafast/src/steps/filter.ts b/grafast/grafast/src/steps/filter.ts index 28ab1f3515..f68b472d3b 100644 --- a/grafast/grafast/src/steps/filter.ts +++ b/grafast/grafast/src/steps/filter.ts @@ -1,6 +1,6 @@ import chalk from "chalk"; -import type { ExecutableStep, ListCapableStep } from "../step.js"; +import type { ListCapableStep, Step } from "../step.js"; import { isListCapableStep } from "../step.js"; import type { __ItemStep } from "./__item.js"; import type { ConnectionCapableStep, ItemsStep } from "./connection.js"; @@ -31,10 +31,8 @@ const initialState = (): FilterPlanMemo => []; * plan results in a truthy value. */ export function filter< - TListStep extends - | ExecutableStep - | ConnectionCapableStep, - TItemStep extends ExecutableStep, + TListStep extends Step | ConnectionCapableStep, + TItemStep extends Step, >( listStep: TListStep, filterCallback: ListTransformItemPlanCallback< diff --git a/grafast/grafast/src/steps/first.ts b/grafast/grafast/src/steps/first.ts index 9f91a6f023..c1d235903e 100644 --- a/grafast/grafast/src/steps/first.ts +++ b/grafast/grafast/src/steps/first.ts @@ -3,13 +3,13 @@ import type { GrafastResultsList, UnbatchedExecutionExtra, } from "../interfaces.js"; -import type { ExecutableStep } from "../step.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import type { ConnectionCapableStep } from "./connection.js"; import { itemsOrStep } from "./connection.js"; import { ListStep } from "./list.js"; -export class FirstStep extends UnbatchedExecutableStep { +export class FirstStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "FirstStep", @@ -19,8 +19,8 @@ export class FirstStep extends UnbatchedExecutableStep { constructor( parentPlan: - | ExecutableStep> - | ConnectionCapableStep, any>, + | Step> + | ConnectionCapableStep, any>, ) { super(); this.addDependency(itemsOrStep(parentPlan)); @@ -56,9 +56,7 @@ export class FirstStep extends UnbatchedExecutableStep { * plan. */ export function first( - plan: - | ExecutableStep> - | ConnectionCapableStep, any>, + plan: Step> | ConnectionCapableStep, any>, ): FirstStep { return plan.operationPlan.cacheStep( plan, diff --git a/grafast/grafast/src/steps/graphqlResolver.ts b/grafast/grafast/src/steps/graphqlResolver.ts index bbcacaed3d..2a67637710 100644 --- a/grafast/grafast/src/steps/graphqlResolver.ts +++ b/grafast/grafast/src/steps/graphqlResolver.ts @@ -17,7 +17,7 @@ import type { } from "../interfaces.js"; import { polymorphicWrap } from "../polymorphic.js"; import type { PolymorphicStep } from "../step.js"; -import { ExecutableStep, UnbatchedExecutableStep } from "../step.js"; +import { Step, UnbatchedStep } from "../step.js"; import { isPromiseLike } from "../utils.js"; const { @@ -80,7 +80,7 @@ function dcr( * * @internal */ -export class GraphQLResolverStep extends UnbatchedExecutableStep { +export class GraphQLResolverStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "GraphQLResolverStep", @@ -104,7 +104,7 @@ export class GraphQLResolverStep extends UnbatchedExecutableStep { | (GraphQLFieldResolver & { displayName?: string }) | null | undefined, - $plan: ExecutableStep, + $plan: Step, $args: ObjectStep, private resolveInfoBase: ResolveInfoBase, private returnContextAndResolveInfo = false, @@ -196,10 +196,7 @@ export class GraphQLResolverStep extends UnbatchedExecutableStep { } /** @internal */ -export class GraphQLItemHandler - extends ExecutableStep - implements PolymorphicStep -{ +export class GraphQLItemHandler extends Step implements PolymorphicStep { static $$export = { moduleName: "grafast", exportName: "GraphQLItemHandler", @@ -209,7 +206,7 @@ export class GraphQLItemHandler null; public isSyncAndSafe = false; constructor( - $parent: ExecutableStep, + $parent: Step, nullableType: GraphQLNullableType & GraphQLOutputType, ) { super(); @@ -355,7 +352,7 @@ export class GraphQLItemHandler } export function graphqlItemHandler( - $item: ExecutableStep, + $item: Step, nullableType: GraphQLNullableType & GraphQLOutputType, ) { return new GraphQLItemHandler($item, nullableType); @@ -370,10 +367,10 @@ export function graphqlItemHandler( export function graphqlResolver( resolver: GraphQLFieldResolver | null | undefined, subscriber: GraphQLFieldResolver | null | undefined, - $step: ExecutableStep, + $step: Step, $args: ObjectStep, resolveInfoBase: ResolveInfoBase, -): ExecutableStep { +): Step { const { returnType } = resolveInfoBase; const namedType = getNamedType(returnType); const isAbstract = isAbstractType(namedType); diff --git a/grafast/grafast/src/steps/groupBy.ts b/grafast/grafast/src/steps/groupBy.ts index e6ea7fd4c9..ffacce35e7 100644 --- a/grafast/grafast/src/steps/groupBy.ts +++ b/grafast/grafast/src/steps/groupBy.ts @@ -1,6 +1,6 @@ import chalk from "chalk"; -import type { ExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; import { isListCapableStep } from "../step.js"; import type { __ItemStep } from "./__item.js"; import type { ConnectionCapableStep, ItemsStep } from "./connection.js"; @@ -37,10 +37,8 @@ const initialState = (): GroupByPlanMemo => new Map(); * grouping keys. */ export function groupBy< - TListStep extends - | ExecutableStep - | ConnectionCapableStep, - TItemStep extends ExecutableStep, + TListStep extends Step | ConnectionCapableStep, + TItemStep extends Step, >( listStep: TListStep, mapper: ListTransformItemPlanCallback, TItemStep>, diff --git a/grafast/grafast/src/steps/index.ts b/grafast/grafast/src/steps/index.ts index c4cde6036b..ff16652c89 100644 --- a/grafast/grafast/src/steps/index.ts +++ b/grafast/grafast/src/steps/index.ts @@ -78,6 +78,7 @@ export { } from "./listTransform.js"; export { makeDecodeNodeId, + makeDecodeNodeIdRuntime, node, nodeIdFromNode, NodeStep, @@ -91,7 +92,12 @@ export { RemapKeysStep, } from "./remapKeys.js"; export { reverse, reverseArray, ReverseStep } from "./reverse.js"; -export { setter, SetterCapableStep, SetterStep } from "./setter.js"; +export { + createObjectAndApplyChildren, + Setter, + setter, + SetterCapable, +} from "./setter.js"; export { sideEffect, SideEffectStep } from "./sideEffect.js"; // Internal plans @@ -107,7 +113,15 @@ export { __TrackedValueStepWithDollars, } from "./__trackedValue.js"; export { __ValueStep } from "./__value.js"; +export { + applyInput, + ApplyInputStep, + assertModifier, + isModifier, + Modifier, +} from "./applyInput.js"; export { applyTransforms, ApplyTransformsStep } from "./applyTransforms.js"; +export { bakedInput, bakedInputRuntime, BakedInputStep } from "./bakedInput.js"; export { condition, ConditionStep } from "./condition.js"; export { GraphQLItemHandler, diff --git a/grafast/grafast/src/steps/lambda.ts b/grafast/grafast/src/steps/lambda.ts index 67e5b04592..b733412013 100644 --- a/grafast/grafast/src/steps/lambda.ts +++ b/grafast/grafast/src/steps/lambda.ts @@ -4,14 +4,14 @@ import type { } from "../interfaces.js"; import type { Multistep, UnwrapMultistep } from "../multistep.js"; import { multistep } from "../multistep.js"; -import type { ExecutableStep } from "../step.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import { sideEffect } from "./sideEffect.js"; /** * Calls the given lambda function for each tuple */ -export class LambdaStep extends UnbatchedExecutableStep { +export class LambdaStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "LambdaStep", @@ -22,7 +22,7 @@ export class LambdaStep extends UnbatchedExecutableStep { private depId: number | null; constructor( - $plan: ExecutableStep | null | undefined, + $plan: Step | null | undefined, private fn: (value: TIn) => PromiseOrDirect, ) { super(); diff --git a/grafast/grafast/src/steps/last.ts b/grafast/grafast/src/steps/last.ts index bee5848f4e..4558c29a55 100644 --- a/grafast/grafast/src/steps/last.ts +++ b/grafast/grafast/src/steps/last.ts @@ -1,11 +1,11 @@ import type { UnbatchedExecutionExtra } from "../interfaces.js"; -import type { ExecutableStep } from "../step.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import type { ConnectionCapableStep } from "./connection.js"; import { itemsOrStep } from "./connection.js"; import { ListStep } from "./list.js"; -export class LastStep extends UnbatchedExecutableStep { +export class LastStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "LastStep", @@ -15,8 +15,8 @@ export class LastStep extends UnbatchedExecutableStep { constructor( parentPlan: - | ExecutableStep> - | ConnectionCapableStep, any>, + | Step> + | ConnectionCapableStep, any>, ) { super(); this.addDependency(itemsOrStep(parentPlan)); @@ -48,9 +48,7 @@ export class LastStep extends UnbatchedExecutableStep { * plan. */ export function last( - plan: - | ExecutableStep> - | ConnectionCapableStep, any>, + plan: Step> | ConnectionCapableStep, any>, ): LastStep { return plan.operationPlan.cacheStep( plan, diff --git a/grafast/grafast/src/steps/list.ts b/grafast/grafast/src/steps/list.ts index 9cd9d91d55..cf2d50cb20 100644 --- a/grafast/grafast/src/steps/list.ts +++ b/grafast/grafast/src/steps/list.ts @@ -4,8 +4,8 @@ import type { UnbatchedExecutionExtra, UnwrapPlanTuple, } from "../interfaces.js"; -import type { ExecutableStep } from "../step.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import { constant, ConstantStep } from "./constant.js"; const DEFAULT_CACHE_SIZE = 100; @@ -16,8 +16,8 @@ interface ListStepCacheConfig { } export class ListStep< - const TPlanTuple extends readonly ExecutableStep[], -> extends UnbatchedExecutableStep> { + const TPlanTuple extends readonly Step[], +> extends UnbatchedStep> { static $$export = { moduleName: "grafast", exportName: "ListStep", @@ -156,7 +156,7 @@ export class ListStep< * Takes a list of plans and turns it into a single plan that represents the * list of their values. */ -export function list( +export function list( list: TPlanTuple, cacheConfig?: ListStepCacheConfig, ): ListStep { diff --git a/grafast/grafast/src/steps/listTransform.ts b/grafast/grafast/src/steps/listTransform.ts index 0267e4025a..9061346a98 100644 --- a/grafast/grafast/src/steps/listTransform.ts +++ b/grafast/grafast/src/steps/listTransform.ts @@ -10,11 +10,15 @@ import { import type { LayerPlanReasonSubroutine } from "../engine/LayerPlan.js"; import { LayerPlan } from "../engine/LayerPlan.js"; import { withGlobalLayerPlan } from "../engine/lib/withGlobalLayerPlan.js"; -import type { ConnectionCapableStep, ExecutionDetails } from "../index.js"; +import type { + __FlagStep, + ConnectionCapableStep, + ExecutionDetails, +} from "../index.js"; import type { GrafastResultsList } from "../interfaces.js"; import { $$deepDepSkip } from "../interfaces.js"; import type { ListCapableStep } from "../step.js"; -import { ExecutableStep, isListCapableStep } from "../step.js"; +import { isListCapableStep, Step } from "../step.js"; import { __ItemStep } from "./__item.js"; import type { ItemsStep } from "./connection.js"; import { itemsOrStep } from "./connection.js"; @@ -26,8 +30,8 @@ export type ListTransformReduce = ( ) => TMemo; export type ListTransformItemPlanCallback< - TListStep extends ExecutableStep, - TDepsStep extends ExecutableStep, + TListStep extends Step, + TDepsStep extends Step, > = ( listItemPlan: ItemsStep extends ListCapableStep ? ReturnType["listItem"]> @@ -36,11 +40,11 @@ export type ListTransformItemPlanCallback< export interface ListTransformOptions< TListStep extends - | ExecutableStep - | ConnectionCapableStep, any>, - TDepsStep extends ExecutableStep, + | Step + | ConnectionCapableStep, any>, + TDepsStep extends Step, TMemo, - TItemStep extends ExecutableStep | undefined = undefined, + TItemStep extends Step | undefined = undefined, > { listStep: TListStep; itemPlanCallback: ListTransformItemPlanCallback< @@ -50,14 +54,14 @@ export interface ListTransformOptions< initialState(): TMemo; reduceCallback: ListTransformReduce< TMemo, - TDepsStep extends ExecutableStep ? U : never + TDepsStep extends Step ? U : never >; - listItem?(itemPlan: ExecutableStep): TItemStep; + listItem?(itemPlan: Step): TItemStep; finalizeCallback?(data: TMemo): TMemo; meta?: string; optimize?: ( this: __ListTransformStep, - ) => ExecutableStep; + ) => Step; connectionClone?: ConnectionCapableStep["connectionClone"]; } @@ -71,15 +75,13 @@ export interface ListTransformOptions< * functions that uses this under the hood such as `filter()`. */ export class __ListTransformStep< - TListStep extends - | ExecutableStep - | ConnectionCapableStep = - | ExecutableStep + TListStep extends Step | ConnectionCapableStep = + | Step | ConnectionCapableStep, - TDepsStep extends ExecutableStep = ExecutableStep, + TDepsStep extends Step = Step, TMemo = any, - TItemStep extends ExecutableStep | undefined = ExecutableStep | undefined, -> extends ExecutableStep { + TItemStep extends Step | undefined = Step | undefined, +> extends Step { static $$export = { moduleName: "grafast", exportName: "__ListTransformStep", @@ -96,7 +98,7 @@ export class __ListTransformStep< public initialState: () => TMemo; public reduceCallback: ListTransformReduce< TMemo, - TDepsStep extends ExecutableStep ? U : never + TDepsStep extends Step ? U : never >; public finalizeCallback?: (data: TMemo) => TMemo; public listItem?: (itemPlan: __ItemStep) => TItemStep; @@ -188,7 +190,7 @@ export class __ListTransformStep< } getListStep(): TListStep { - return this.getDep(this.rawListStepDepId); + return this.getDepOptions(this.rawListStepDepId).step; } [$$deepDepSkip]() { @@ -214,7 +216,7 @@ export class __ListTransformStep< // ListTransform plans must _NOT_ optimize away. They must persist (unless // the options overrides this) - optimize(): ExecutableStep { + optimize(): Step { return this; } @@ -373,12 +375,10 @@ export class __ListTransformStep< * {@page ~grafast/steps/listTransform.md} */ export function listTransform< - TListStep extends - | ExecutableStep - | ConnectionCapableStep, - TDepsStep extends ExecutableStep, + TListStep extends Step | ConnectionCapableStep, + TDepsStep extends Step, TMemo, - TItemStep extends ExecutableStep | undefined = undefined, + TItemStep extends Step | undefined = undefined, >( options: ListTransformOptions, ): __ListTransformStep { diff --git a/grafast/grafast/src/steps/listen.ts b/grafast/grafast/src/steps/listen.ts index e6ee9265d3..b3314f7f3a 100644 --- a/grafast/grafast/src/steps/listen.ts +++ b/grafast/grafast/src/steps/listen.ts @@ -5,7 +5,7 @@ import type { GrafastResultStreamList, GrafastSubscriber, } from "../interfaces.js"; -import { ExecutableStep, isExecutableStep } from "../step.js"; +import { isExecutableStep, Step } from "../step.js"; import type { __ItemStep } from "./__item.js"; import { constant } from "./constant.js"; @@ -17,8 +17,8 @@ import { constant } from "./constant.js"; export class ListenStep< TTopics extends { [topic: string]: any }, TTopic extends keyof TTopics, - TPayloadStep extends ExecutableStep, -> extends ExecutableStep { + TPayloadStep extends Step, +> extends Step { static $$export = { moduleName: "grafast", exportName: "ListenStep", @@ -37,10 +37,10 @@ export class ListenStep< constructor( pubsubOrPlan: - | ExecutableStep | null> + | Step | null> | GrafastSubscriber | null, - topicOrPlan: ExecutableStep | string, + topicOrPlan: Step | string, public itemPlan: (itemPlan: __ItemStep) => TPayloadStep = ( $item, ) => $item as any, @@ -95,13 +95,13 @@ export class ListenStep< export function listen< TTopics extends { [topic: string]: any }, TTopic extends keyof TTopics, - TPayloadStep extends ExecutableStep, + TPayloadStep extends Step, >( pubsubOrPlan: - | ExecutableStep | null> + | Step | null> | GrafastSubscriber | null, - topicOrPlan: ExecutableStep | string, + topicOrPlan: Step | string, itemPlan?: (itemPlan: __ItemStep) => TPayloadStep, ): ListenStep { return new ListenStep( diff --git a/grafast/grafast/src/steps/load.ts b/grafast/grafast/src/steps/load.ts index 1ee37e8b6e..5433c0f725 100644 --- a/grafast/grafast/src/steps/load.ts +++ b/grafast/grafast/src/steps/load.ts @@ -7,7 +7,7 @@ import type { } from "../interfaces.js"; import type { Multistep, UnwrapMultistep } from "../multistep.js"; import { isMultistep, multistep } from "../multistep.js"; -import { ExecutableStep, isListLikeStep, isObjectLikeStep } from "../step.js"; +import { isListLikeStep, isObjectLikeStep, Step } from "../step.js"; import { arrayOfLength, canonicalJSONStringify, isTuple } from "../utils.js"; import { access } from "./access.js"; @@ -98,7 +98,7 @@ let loadCounter = 0; export class LoadedRecordStep< TItem, TParams extends Record = Record, -> extends ExecutableStep { +> extends Step { static $$export = { moduleName: "grafast", exportName: "LoadedRecordStep", @@ -109,11 +109,11 @@ export class LoadedRecordStep< attributes = new Set(); params: Partial = Object.create(null); constructor( - $data: ExecutableStep, + $data: Step, private isSingle: boolean, private sourceDescription: string, // Only safe to reference this during planning phase - private ioEquivalence: Record, + private ioEquivalence: Record, ) { super(); this.addDependency($data); @@ -183,7 +183,7 @@ export class LoadStep< TData extends TItem | ReadonlyArray, TParams extends Record, const TUnaryMultistep extends Multistep = never, -> extends ExecutableStep { +> extends Step { /* implements ListCapableStep> */ static $$export = { moduleName: "grafast", exportName: "LoadStep" }; @@ -222,7 +222,7 @@ export class LoadStep< toStringMeta() { return this.load.displayName || this.load.name; } - private makeAccessMap(): Record { + private makeAccessMap(): Record { const map = Object.create(null); const $spec = this.getDep(0); if (this.ioEquivalence == null) { diff --git a/grafast/grafast/src/steps/node.ts b/grafast/grafast/src/steps/node.ts index f81f2118c8..7012064cff 100644 --- a/grafast/grafast/src/steps/node.ts +++ b/grafast/grafast/src/steps/node.ts @@ -3,14 +3,14 @@ import type { GraphQLObjectType } from "graphql"; import { isDev } from "../dev.js"; import { inspect } from "../inspect.js"; import type { - AnyInputStep, + Maybe, NodeIdHandler, PolymorphicData, UnbatchedExecutionExtra, } from "../interfaces.js"; import { polymorphicWrap } from "../polymorphic.js"; -import type { ExecutableStep, PolymorphicStep } from "../step.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import type { PolymorphicStep, Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import { access } from "./access.js"; import { constant } from "./constant.js"; import { lambda } from "./lambda.js"; @@ -21,10 +21,7 @@ import { lambda } from "./lambda.js"; * typeNames supported and their details (codec to use, how to find the record, * etc), and finally the Node id string plan. */ -export class NodeStep - extends UnbatchedExecutableStep - implements PolymorphicStep -{ +export class NodeStep extends UnbatchedStep implements PolymorphicStep { static $$export = { moduleName: "grafast", exportName: "NodeStep", @@ -38,14 +35,14 @@ export class NodeStep private possibleTypes: { [typeName: string]: NodeIdHandler; }, - $id: ExecutableStep, + $id: Step, ) { super(); const decodeNodeId = makeDecodeNodeId(Object.values(possibleTypes)); this.specPlanDep = this.addDependency(decodeNodeId($id)); } - planForType(type: GraphQLObjectType): ExecutableStep { + planForType(type: GraphQLObjectType): Step { const spec = this.possibleTypes[type.name]; if (spec !== undefined) { return spec.get( @@ -94,16 +91,17 @@ export function node( possibleTypes: { [typeName: string]: NodeIdHandler; }, - $id: ExecutableStep, + $id: Step, ): NodeStep { return new NodeStep(possibleTypes, $id); } export function specFromNodeId( handler: NodeIdHandler, - $id: ExecutableStep | AnyInputStep, + $id: Step>, ) { - function decodeWithCodecAndHandler(raw: string) { + function decodeWithCodecAndHandler(raw: Maybe) { + if (raw == null) return raw; try { const decoded = handler.codec.decode(raw); if (handler.match(decoded)) { @@ -116,22 +114,16 @@ export function specFromNodeId( } decodeWithCodecAndHandler.displayName = `decode_${handler.typeName}_${handler.codec.name}`; decodeWithCodecAndHandler.isSyncAndSafe = true; // Optimization - const $decoded = lambda( - $id as ExecutableStep, - decodeWithCodecAndHandler, - ); + const $decoded = lambda($id as Step, decodeWithCodecAndHandler); return handler.getSpec($decoded); } -export function nodeIdFromNode( - handler: NodeIdHandler, - $node: ExecutableStep, -) { +export function nodeIdFromNode(handler: NodeIdHandler, $node: Step) { const specifier = handler.plan($node); return lambda(specifier, handler.codec.encode); } -export function makeDecodeNodeId(handlers: NodeIdHandler[]) { +export function makeDecodeNodeIdRuntime(handlers: readonly NodeIdHandler[]) { const codecs = [...new Set(handlers.map((h) => h.codec))]; function decodeNodeIdWithCodecs(raw: string | null | undefined) { @@ -151,6 +143,11 @@ export function makeDecodeNodeId(handlers: NodeIdHandler[]) { ); } decodeNodeIdWithCodecs.isSyncAndSafe = true; // Optimization - return ($id: ExecutableStep) => + return decodeNodeIdWithCodecs; +} + +export function makeDecodeNodeId(handlers: readonly NodeIdHandler[]) { + const decodeNodeIdWithCodecs = makeDecodeNodeIdRuntime(handlers); + return ($id: Step) => lambda($id, decodeNodeIdWithCodecs); } diff --git a/grafast/grafast/src/steps/object.ts b/grafast/grafast/src/steps/object.ts index 558f3b8fbf..de325a7d85 100644 --- a/grafast/grafast/src/steps/object.ts +++ b/grafast/grafast/src/steps/object.ts @@ -9,11 +9,10 @@ import type { StepOptimizeOptions, UnbatchedExecutionExtra, } from "../interfaces.js"; -import type { ExecutableStep } from "../step.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import { digestKeys } from "../utils.js"; import { constant, ConstantStep } from "./constant.js"; -import type { SetterCapableStep } from "./setter.js"; const DEFAULT_CACHE_SIZE = 100; @@ -22,21 +21,17 @@ const EMPTY_OBJECT = Object.freeze(Object.create(null)); // const debugObjectPlan = debugFactory("grafast:ObjectStep"); // const debugObjectPlanVerbose = debugObjectPlan.extend("verbose"); -export type DataFromObjectSteps< - TSteps extends { [key: string]: ExecutableStep }, -> = { +export type DataFromObjectSteps = { [key in keyof TSteps]: DataFromStep; }; -type Results = Array< +type Results = Array< [ Array[keyof TSteps]>, DataFromObjectSteps, ] >; -export interface ObjectPlanMeta< - TSteps extends { [key: string]: ExecutableStep }, -> { +export interface ObjectPlanMeta { results: Results; } @@ -50,13 +45,10 @@ interface ObjectStepCacheConfig { * the results of the associated plans. */ export class ObjectStep< - TPlans extends { [key: string]: ExecutableStep } = { - [key: string]: ExecutableStep; - }, - > - extends UnbatchedExecutableStep> - implements SetterCapableStep -{ + TPlans extends { [key: string]: Step } = { + [key: string]: Step; + }, +> extends UnbatchedStep> { static $$export = { moduleName: "grafast", exportName: "ObjectStep", @@ -120,7 +112,7 @@ export class ObjectStep< } return null as any; } - return this.getDep(idx) as any; + return this.getDepOptions(idx).step as any; } toStringMeta(): string { @@ -324,7 +316,7 @@ ${inner} )}'; supported keys: '${this.keys.join("', '")}'`, ); } - return this.getDep(index); + return this.getDepOptions(index).step; } } @@ -332,7 +324,7 @@ ${inner} * A plan that represents an object using the keys given and the values being * the results of the associated plans. */ -export function object( +export function object( obj: TPlans, cacheConfig?: ObjectStepCacheConfig, ): ObjectStep { diff --git a/grafast/grafast/src/steps/partitionByIndex.ts b/grafast/grafast/src/steps/partitionByIndex.ts index 8a823b61e7..a336cb2093 100644 --- a/grafast/grafast/src/steps/partitionByIndex.ts +++ b/grafast/grafast/src/steps/partitionByIndex.ts @@ -1,6 +1,6 @@ import chalk from "chalk"; -import type { ExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; import { isListCapableStep } from "../step.js"; import type { __ItemStep } from "./__item.js"; import type { ConnectionCapableStep, ItemsStep } from "./connection.js"; @@ -75,10 +75,8 @@ const initialState = () => []; * Beware: the target indexes should not contain gaps. */ export function partitionByIndex< - TListStep extends - | ExecutableStep - | ConnectionCapableStep, - TItemStep extends ExecutableStep, + TListStep extends Step | ConnectionCapableStep, + TItemStep extends Step, >( listStep: TListStep, mapper: ListTransformItemPlanCallback, TItemStep>, diff --git a/grafast/grafast/src/steps/polymorphicBranch.ts b/grafast/grafast/src/steps/polymorphicBranch.ts index 3926091d4d..8924ee6451 100644 --- a/grafast/grafast/src/steps/polymorphicBranch.ts +++ b/grafast/grafast/src/steps/polymorphicBranch.ts @@ -7,29 +7,25 @@ import type { } from "../index.js"; import { polymorphicWrap } from "../index.js"; import type { PolymorphicStep } from "../step.js"; -import { ExecutableStep } from "../step.js"; +import { $$isNullableBoundary, Step } from "../step.js"; import { constant } from "./constant.js"; -type StepData = TStep extends ExecutableStep< - infer U -> - ? U - : any; +type StepData = TStep extends Step ? U : any; -interface ConcretePolymorphicBranchMatcher { +interface ConcretePolymorphicBranchMatcher { match: (obj: StepData) => boolean; - plan: ($obj: TStep) => ExecutableStep; + plan: ($obj: TStep) => Step; } -export interface PolymorphicBranchMatchers { +export interface PolymorphicBranchMatchers { [typeName: string]: PolymorphicBranchMatcher; } -export interface PolymorphicBranchMatcher { +export interface PolymorphicBranchMatcher { match?: (obj: StepData) => boolean; - plan?: ($obj: TStep) => ExecutableStep; + plan?: ($obj: TStep) => Step; } -export class PolymorphicBranchStep - extends ExecutableStep +export class PolymorphicBranchStep + extends Step implements PolymorphicStep { static $$export = { @@ -43,6 +39,7 @@ export class PolymorphicBranchStep }; constructor($step: TStep, matchers: PolymorphicBranchMatchers) { super(); + this[$$isNullableBoundary] = true; this.addDependency($step); this.typeNames = Object.keys(matchers); this.matchers = Object.fromEntries( @@ -56,9 +53,9 @@ export class PolymorphicBranchStep ); } - planForType(objectType: GraphQLObjectType): ExecutableStep { + planForType(objectType: GraphQLObjectType): Step { const matcher = this.matchers[objectType.name]; - const $step = this.getDep(0); + const $step = this.getDep(0, true); if (matcher) { if (typeof matcher.plan === "function") { return matcher.plan($step); @@ -91,7 +88,7 @@ export class PolymorphicBranchStep } } -export function polymorphicBranch( +export function polymorphicBranch( $step: TStep, matchers: PolymorphicBranchMatchers, ) { diff --git a/grafast/grafast/src/steps/proxy.ts b/grafast/grafast/src/steps/proxy.ts index 6aebd5b531..9de2adbce5 100644 --- a/grafast/grafast/src/steps/proxy.ts +++ b/grafast/grafast/src/steps/proxy.ts @@ -4,8 +4,8 @@ import type { UnbatchedExecutionExtra, } from "../interfaces.js"; import { $$proxy } from "../interfaces.js"; -import type { ExecutableStep } from "../step.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import { arrayOfLength } from "../utils.js"; /** @@ -13,14 +13,14 @@ import { arrayOfLength } from "../utils.js"; * * Never build this class directly. */ -export class ProxyStep extends UnbatchedExecutableStep { +export class ProxyStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "ProxyStep", }; isSyncAndSafe = true; private $depId: number; - constructor($dep: ExecutableStep, $actualDep: ExecutableStep) { + constructor($dep: Step, $actualDep: Step) { super(); this.$depId = $dep.id; this.addDependency($actualDep); @@ -30,7 +30,7 @@ export class ProxyStep extends UnbatchedExecutableStep { return $dep.toString(); } // Publicly expose this - public addDependency(step: ExecutableStep): number { + public addDependency(step: Step): number { return super.addDependency(step); } execute({ @@ -49,14 +49,12 @@ export class ProxyStep extends UnbatchedExecutableStep { } declare module "../step.js" { - interface ExecutableStep { + interface Step { [$$proxy]?: any; } } -function makeProxyHandler( - $toStep: ExecutableStep, -): ProxyHandler> { +function makeProxyHandler($toStep: Step): ProxyHandler> { return { // $proxy - the ProxyStep instance // p - the property being accessed @@ -124,10 +122,10 @@ function makeProxyHandler( * This could change at any time, may impact performance, and just, generally, * needs more work. You shouldn't need this in the vast majority of cases. */ -export function proxy>( +export function proxy>( $step: TStep, - $actualDep: ExecutableStep = $step, -): TStep & { addDependency(step: ExecutableStep): number } { + $actualDep: Step = $step, +): TStep & { addDependency(step: Step): number } { const $proxy = new ProxyStep($step, $actualDep); const proxy = new Proxy($proxy, makeProxyHandler($step)) as any; // Lie. $proxy[$$proxy] = proxy; diff --git a/grafast/grafast/src/steps/remapKeys.ts b/grafast/grafast/src/steps/remapKeys.ts index 3984661042..83bc1447a4 100644 --- a/grafast/grafast/src/steps/remapKeys.ts +++ b/grafast/grafast/src/steps/remapKeys.ts @@ -7,8 +7,8 @@ import type { GrafastResultsList, UnbatchedExecutionExtra, } from "../interfaces.js"; -import type { ExecutableStep } from "../step.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; import { digestKeys } from "../utils.js"; export type ActualKeyByDesiredKey = { [desiredKey: string]: string }; @@ -58,7 +58,7 @@ function makeMapper( * A plan that returns an object resulting from extracting the given * `actualKey` from the input and storing it as the `desiredKey` in the output. */ -export class RemapKeysStep extends UnbatchedExecutableStep { +export class RemapKeysStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "RemapKeysStep", @@ -68,7 +68,7 @@ export class RemapKeysStep extends UnbatchedExecutableStep { private mapper!: (obj: object | null) => object | null; constructor( - $plan: ExecutableStep, + $plan: Step, private readonly actualKeyByDesiredKey: ActualKeyByDesiredKey, ) { super(); @@ -128,7 +128,7 @@ export class RemapKeysStep extends UnbatchedExecutableStep { * `actualKey` from the input and storing it as the `desiredKey` in the output. */ export function remapKeys( - $step: ExecutableStep, + $step: Step, actualKeyByDesiredKey: { [desiredKey: string]: string }, ): RemapKeysStep { return new RemapKeysStep($step, actualKeyByDesiredKey); diff --git a/grafast/grafast/src/steps/reverse.ts b/grafast/grafast/src/steps/reverse.ts index db2bd02adc..dc933d3537 100644 --- a/grafast/grafast/src/steps/reverse.ts +++ b/grafast/grafast/src/steps/reverse.ts @@ -3,8 +3,8 @@ import type { GrafastResultsList, UnbatchedExecutionExtra, } from "../interfaces.js"; -import type { ExecutableStep } from "../step.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; /** * Returns a reversed copy of the list. @@ -26,9 +26,7 @@ export function reverseArray(list: readonly TData[]): TData[] { /** * Reverses a list. */ -export class ReverseStep extends UnbatchedExecutableStep< - readonly TData[] -> { +export class ReverseStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "ReverseStep", @@ -36,7 +34,7 @@ export class ReverseStep extends UnbatchedExecutableStep< isSyncAndSafe = true; allowMultipleOptimizations = true; - constructor(plan: ExecutableStep) { + constructor(plan: Step) { super(); this.addDependency(plan); } @@ -64,7 +62,7 @@ export class ReverseStep extends UnbatchedExecutableStep< * Reverses a list. */ export function reverse( - plan: ExecutableStep, + plan: Step, ): ReverseStep { return plan.operationPlan.cacheStep( plan, diff --git a/grafast/grafast/src/steps/setter.ts b/grafast/grafast/src/steps/setter.ts index 32310c6903..d7add07982 100644 --- a/grafast/grafast/src/steps/setter.ts +++ b/grafast/grafast/src/steps/setter.ts @@ -1,51 +1,54 @@ -import type { BaseStep, ExecutableStep } from "../step.js"; -import { ModifierStep } from "../step.js"; - -export interface SetterCapableStep< - TPlans extends { - [key: string]: ExecutableStep; - }, -> extends BaseStep { - set(key: TKey, value: TPlans[TKey]): void; +import type { InputObjectTypeBakedInfo } from "../index.js"; +import { Modifier } from "./applyInput.js"; + +export interface SetterCapable> { + set(key: TKey, value: TObj[TKey]): void; } -export class SetterStep< - TPlans extends { - [key: string]: ExecutableStep; - } = { - [key: string]: ExecutableStep; - }, - TParentStep extends SetterCapableStep = SetterCapableStep, -> extends ModifierStep { +export class Setter< + TObj extends Record = Record, + TParent extends SetterCapable = SetterCapable, +> extends Modifier { static $$export = { moduleName: "grafast", - exportName: "SetterStep", + exportName: "Setter", }; - private setters = new Map(); + private setters = new Map(); - constructor($parent: TParentStep) { - super($parent); + constructor(parent: TParent) { + super(parent); } - set(key: TKey, valuePlan: TPlans[TKey]): void { - this.setters.set(key, valuePlan); + set(key: TKey, value: TObj[TKey]): void { + this.setters.set(key, value); } apply(): void { - for (const [key, valuePlan] of this.setters.entries()) { - this.$parent.set(key, valuePlan); + for (const [key, value] of this.setters.entries()) { + this.parent.set(key, value); } } } export function setter< - TPlans extends { - [key: string]: ExecutableStep; - } = { - [key: string]: ExecutableStep; - }, - TParentStep extends SetterCapableStep = SetterCapableStep, ->($parent: TParentStep) { - return new SetterStep($parent); + TObj extends Record = Record, + TParent extends SetterCapable = SetterCapable, +>(parent: TParent) { + return new Setter(parent); +} + +export function createObjectAndApplyChildren>( + _input: Record, + info: InputObjectTypeBakedInfo, +): TObj { + const obj: Partial = Object.create(null); + info.applyChildren( + setter({ + set(key, value) { + obj[key] = value; + }, + }), + ); + return obj as TObj; } diff --git a/grafast/grafast/src/steps/sideEffect.ts b/grafast/grafast/src/steps/sideEffect.ts index 22dfb0c63b..2d9cedd7f8 100644 --- a/grafast/grafast/src/steps/sideEffect.ts +++ b/grafast/grafast/src/steps/sideEffect.ts @@ -4,13 +4,13 @@ import type { } from "../interfaces.js"; import type { Multistep, UnwrapMultistep } from "../multistep.js"; import { multistep } from "../multistep.js"; -import type { ExecutableStep } from "../step.js"; -import { UnbatchedExecutableStep } from "../step.js"; +import type { Step } from "../step.js"; +import { UnbatchedStep } from "../step.js"; /** * Calls the given callback function for each tuple */ -export class SideEffectStep extends UnbatchedExecutableStep { +export class SideEffectStep extends UnbatchedStep { static $$export = { moduleName: "grafast", exportName: "SideEffectStep", @@ -20,7 +20,7 @@ export class SideEffectStep extends UnbatchedExecutableStep { private planDep: number | null; constructor( - $plan: ExecutableStep | null | undefined, + $plan: Step | null | undefined, private fn: (value: TIn) => PromiseOrDirect, ) { super(); diff --git a/grafast/grafast/src/utils.ts b/grafast/grafast/src/utils.ts index 8adbfc2c41..496d3a13c5 100644 --- a/grafast/grafast/src/utils.ts +++ b/grafast/grafast/src/utils.ts @@ -32,10 +32,9 @@ import type { ExecutionEntryFlags, GrafastFieldConfig, GrafastInputFieldConfig, - InputStep, OutputPlanForType, } from "./interfaces.js"; -import type { ExecutableStep, ModifierStep } from "./step.js"; +import type { Step } from "./step.js"; import { constant } from "./steps/constant.js"; const { @@ -334,28 +333,18 @@ export function arraysMatch( return true; } -export type ObjectTypeFields< - TContext extends Grafast.Context, - TParentStep extends ExecutableStep, -> = { - [key: string]: GrafastFieldConfig< - GraphQLOutputType, - TContext, - TParentStep, - any, - any - >; +export type ObjectTypeFields = { + [key: string]: GrafastFieldConfig; }; export type ObjectTypeSpec< - TContext extends Grafast.Context, - TParentStep extends ExecutableStep, - TFields extends ObjectTypeFields, -> = Omit, "fields"> & { + TParentStep extends Step, + TFields extends ObjectTypeFields, +> = Omit, "fields"> & { fields: TFields | (() => TFields); - assertStep?: TParentStep extends ExecutableStep + assertStep?: TParentStep extends Step ? - | ((step: ExecutableStep) => asserts step is TParentStep) + | ((step: Step) => asserts step is TParentStep) | { new (...args: any[]): TParentStep } : null; }; @@ -364,14 +353,13 @@ export type ObjectTypeSpec< * Saves us having to write `extensions: {grafast: {...}}` everywhere. */ export function objectSpec< - TContext extends Grafast.Context, - TParentStep extends ExecutableStep, - TFields extends ObjectTypeFields, + TParentStep extends Step, + TFields extends ObjectTypeFields, >( - spec: ObjectTypeSpec, -): GraphQLObjectTypeConfig { + spec: ObjectTypeSpec, +): GraphQLObjectTypeConfig { const { assertStep, ...rest } = spec; - const modifiedSpec: GraphQLObjectTypeConfig = { + const modifiedSpec: GraphQLObjectTypeConfig = { ...rest, ...(assertStep ? { @@ -389,13 +377,13 @@ export function objectSpec< typeof spec.fields === "function" ? spec.fields() : spec.fields; const modifiedFields = Object.keys(fields).reduce( (o, key) => { - o[key] = objectFieldSpec( + o[key] = objectFieldSpec( fields[key], `${spec.name}.${key}`, ); return o; }, - {} as GraphQLFieldConfigMap, + {} as GraphQLFieldConfigMap, ); return modifiedFields; }, @@ -404,53 +392,42 @@ export function objectSpec< } export type GrafastObjectType< - TContext extends Grafast.Context, - TParentStep extends ExecutableStep, - TFields extends ObjectTypeFields, -> = graphql.GraphQLObjectType< - TParentStep extends ExecutableStep ? U : never, - TContext -> & { TParentStep: TParentStep; TFields: TFields }; + TParentStep extends Step, + TFields extends ObjectTypeFields, +> = graphql.GraphQLObjectType ? U : never> & { + TParentStep: TParentStep; + TFields: TFields; +}; /** * @remarks This is a mess because the first two generics need to be specified manually, but the latter one we want inferred. */ -export function newObjectTypeBuilder< - TContext extends Grafast.Context, - TParentStep extends ExecutableStep, ->( - assertStep: TParentStep extends ExecutableStep +export function newObjectTypeBuilder( + assertStep: TParentStep extends Step ? - | ((step: ExecutableStep) => asserts step is TParentStep) + | ((step: Step) => asserts step is TParentStep) | { new (...args: any[]): TParentStep } : never, -): >( - spec: ObjectTypeSpec, -) => GrafastObjectType { +): >( + spec: ObjectTypeSpec, +) => GrafastObjectType { return (spec) => new GraphQLObjectType( objectSpec({ assertStep, ...spec }), - ) as GrafastObjectType; + ) as GrafastObjectType; } /** * Saves us having to write `extensions: {grafast: {...}}` everywhere. */ export function objectFieldSpec< - TContext extends Grafast.Context, - TSource extends ExecutableStep, - TResult extends ExecutableStep = ExecutableStep, + TSource extends Step, + TResult extends Step = Step, TArgs extends BaseGraphQLArguments = BaseGraphQLArguments, >( - grafastSpec: GrafastFieldConfig< - GraphQLOutputType, - TContext, - TSource, - TResult, - TArgs - >, + grafastSpec: GrafastFieldConfig, path: string, -): GraphQLFieldConfig { +): GraphQLFieldConfig { const { plan, subscribePlan, args, ...spec } = grafastSpec; assertNotAsync(plan, `${path ?? "?"}.plan`); @@ -458,29 +435,22 @@ export function objectFieldSpec< const argsWithExtensions = args ? Object.keys(args).reduce((memo, argName) => { - const { - inputPlan, - applyPlan, - autoApplyAfterParentPlan, - autoApplyAfterParentSubscribePlan, - ...argSpec - } = args[argName]; - assertNotAsync(inputPlan, `${path ?? "?"}(${argName}:).inputPlan`); + const { applyPlan, applySubscribePlan, ...argSpec } = args[argName]; assertNotAsync(applyPlan, `${path ?? "?"}(${argName}:).applyPlan`); + assertNotAsync( + applySubscribePlan, + `${path ?? "?"}(${argName}:).applySubscribePlan`, + ); memo[argName] = { ...argSpec, - ...(inputPlan || applyPlan + ...(applyPlan || applySubscribePlan ? { extensions: { + ...argSpec.extensions, grafast: { - ...(inputPlan ? { inputPlan } : null), - ...(autoApplyAfterParentPlan - ? { autoApplyAfterParentPlan } - : null), + ...argSpec.extensions?.grafast, ...(applyPlan ? { applyPlan } : null), - ...(autoApplyAfterParentSubscribePlan - ? { autoApplyAfterParentSubscribePlan } - : null), + ...(applySubscribePlan ? { applySubscribePlan } : null), }, }, } @@ -513,46 +483,31 @@ export function objectFieldSpec< * * @see {@link https://kentcdodds.com/blog/how-to-write-a-constrained-identity-function-in-typescript} */ -export function newGrafastFieldConfigBuilder< - TContext extends Grafast.Context, - TParentStep extends ExecutableStep, ->(): < +export function newGrafastFieldConfigBuilder(): < TType extends GraphQLOutputType, TFieldStep extends OutputPlanForType, TArgs extends BaseGraphQLArguments, >( - config: GrafastFieldConfig, + config: GrafastFieldConfig, ) => typeof config { return (config) => config; } -export type GrafastInputFieldConfigMap< - TContext extends Grafast.Context, - TParentStep extends ModifierStep, -> = { - [key: string]: GrafastInputFieldConfig< - GraphQLInputType, - TContext, - TParentStep, - any, - any - >; +export type GrafastInputFieldConfigMap = { + [key: string]: GrafastInputFieldConfig; }; -export type InputObjectTypeSpec< - TContext extends Grafast.Context, - TParentStep extends ModifierStep, - TFields extends GrafastInputFieldConfigMap, -> = Omit & { - fields: TFields | (() => TFields); +export type InputObjectTypeSpec = Omit< + GraphQLInputObjectTypeConfig, + "fields" +> & { + fields: + | GrafastInputFieldConfigMap + | (() => GrafastInputFieldConfigMap); }; -function inputObjectSpec< - TContext extends Grafast.Context, - TParentStep extends ModifierStep, - TFields extends GrafastInputFieldConfigMap, ->( - spec: InputObjectTypeSpec, +function inputObjectSpec( + spec: InputObjectTypeSpec, ): GraphQLInputObjectTypeConfig { const modifiedSpec: GraphQLInputObjectTypeConfig = { ...spec, @@ -560,10 +515,7 @@ function inputObjectSpec< const fields = typeof spec.fields === "function" ? spec.fields() : spec.fields; const modifiedFields = Object.keys(fields).reduce((o, key) => { - o[key] = inputObjectFieldSpec( - fields[key], - `${spec.name}.${key}`, - ); + o[key] = inputObjectFieldSpec(fields[key], `${spec.name}.${key}`); return o; }, {} as GraphQLInputFieldConfigMap); return modifiedFields; @@ -572,71 +524,37 @@ function inputObjectSpec< return modifiedSpec; } -export type GrafastInputObjectType< - TContext extends Grafast.Context, - TParentStep extends ModifierStep, - TFields extends GrafastInputFieldConfigMap, -> = graphql.GraphQLInputObjectType & { - TContext: TContext; - TParentStep: TParentStep; - TFields: TFields; +export type GrafastInputObjectType = graphql.GraphQLInputObjectType & { + TParent: TParent; }; -export function newInputObjectTypeBuilder< - TContext extends Grafast.Context, - TParentStep extends ModifierStep, ->(): >( - spec: InputObjectTypeSpec, -) => GrafastInputObjectType { +export function newInputObjectTypeBuilder(): ( + spec: InputObjectTypeSpec, +) => GrafastInputObjectType { return (spec) => - new GraphQLInputObjectType(inputObjectSpec(spec)) as GrafastInputObjectType< - TContext, - TParentStep, - any - >; + new GraphQLInputObjectType( + inputObjectSpec(spec), + ) as GrafastInputObjectType; } /** * Saves us having to write `extensions: {grafast: {...}}` everywhere. */ -export function inputObjectFieldSpec< - TContext extends Grafast.Context, - TParent extends ModifierStep, - TResult extends ModifierStep = ModifierStep, - TInput extends InputStep = InputStep, ->( - grafastSpec: GrafastInputFieldConfig< - GraphQLInputType, - TContext, - TParent, - TResult, - TInput - >, +export function inputObjectFieldSpec( + grafastSpec: GrafastInputFieldConfig, path: string, ): GraphQLInputFieldConfig { - const { - inputPlan, - applyPlan, - autoApplyAfterParentInputPlan, - autoApplyAfterParentApplyPlan, - ...spec - } = grafastSpec; - assertNotAsync(inputPlan, `${path ?? "?"}.inputPlan`); - assertNotAsync(applyPlan, `${path ?? "?"}.applyPlan`); - return inputPlan || applyPlan + const { apply, ...spec } = grafastSpec; + assertNotAsync(apply, `${path ?? "?"}.apply`); + return apply ? { ...spec, extensions: { + ...spec.extensions, grafast: { - ...(inputPlan ? { inputPlan } : null), - ...(applyPlan ? { applyPlan } : null), - ...(autoApplyAfterParentInputPlan - ? { autoApplyAfterParentInputPlan } - : null), - ...(autoApplyAfterParentApplyPlan - ? { autoApplyAfterParentApplyPlan } - : null), - }, + ...spec.extensions?.grafast, + apply, + } as Grafast.InputFieldExtensions, }, } : spec; @@ -649,18 +567,11 @@ declare module "graphql" { } const $$valueConfigByValue = Symbol("valueConfigByValue"); -/** - * This would be equivalent to `enumType._valueLookup.get(outputValue)` except - * that's not a public API so we have to do a bit of heavy lifting here. Since - * it is heavy lifting, we cache the result, but we don't know when enumType - * will go away so we use a weakmap. - */ -export function getEnumValueConfig( - enumType: graphql.GraphQLEnumType, - outputValue: string, -): GraphQLEnumValueConfig | undefined { +export function getEnumValueConfigs(enumType: graphql.GraphQLEnumType): { + [outputValue: string]: GraphQLEnumValueConfig | undefined; +} { // We cache onto the enumType directly so that garbage collection can clear up after us easily. - if (!enumType[$$valueConfigByValue]) { + if (enumType[$$valueConfigByValue] === undefined) { const config = enumType.toConfig(); enumType[$$valueConfigByValue] = Object.values(config.values).reduce( (memo, value) => { @@ -670,7 +581,19 @@ export function getEnumValueConfig( Object.create(null), ); } - return enumType[$$valueConfigByValue]![outputValue]; + return enumType[$$valueConfigByValue]!; +} +/** + * This would be equivalent to `enumType._valueLookup.get(outputValue)` except + * that's not a public API so we have to do a bit of heavy lifting here. Since + * it is heavy lifting, we cache the result, but we don't know when enumType + * will go away so we use a weakmap. + */ +export function getEnumValueConfig( + enumType: graphql.GraphQLEnumType, + outputValue: string, +): GraphQLEnumValueConfig | undefined { + return getEnumValueConfigs(enumType)[outputValue]; } /** @@ -738,7 +661,9 @@ export function arrayOfLengthCb(length: number, fill: () => any) { return arr; } -function findVariableNamesUsedInValueNode( +export const valueNodeToStaticValue = graphql.valueFromAST; + +export function findVariableNamesUsedInValueNode( valueNode: ValueNode, variableNames: Set, ): void { @@ -924,14 +849,14 @@ export function isTypePlanned( * * @internal */ -export type Sudo = T extends ExecutableStep +export type Sudo = T extends Step ? T & { - dependencies: ReadonlyArray; - implicitSideEffectStep: ExecutableStep | null; + dependencies: ReadonlyArray; + implicitSideEffectStep: Step | null; dependencyForbiddenFlags: ReadonlyArray; dependencyOnReject: ReadonlyArray; defaultForbiddenFlags: ExecutionEntryFlags; - getDepOptions: ExecutableStep["getDepOptions"]; + getDepOptions: Step["getDepOptions"]; } : T; @@ -959,10 +884,7 @@ export function writeableArray(a: ReadonlyArray): Array { * Returns `true` if the first argument depends on the second argument either * directly or indirectly (via a chain of dependencies). */ -export function stepADependsOnStepB( - stepA: ExecutableStep, - stepB: ExecutableStep, -): boolean { +export function stepADependsOnStepB(stepA: Step, stepB: Step): boolean { if (stepA === stepB) { throw new Error("Invalid call to stepADependsOnStepB"); } @@ -989,10 +911,7 @@ export function stepADependsOnStepB( * Returns true if stepA is allowed to depend on stepB, false otherwise. (This * mostly relates to heirarchy.) */ -export function stepAMayDependOnStepB( - $a: ExecutableStep, - $b: ExecutableStep, -): boolean { +export function stepAMayDependOnStepB($a: Step, $b: Step): boolean { if ($a.isFinalized) { return false; } @@ -1032,10 +951,7 @@ export function stepAMayDependOnStepB( * approach. Once you have, you can use this function to help you, should you * need it. */ -export function stepsAreInSamePhase( - ancestor: ExecutableStep, - descendent: ExecutableStep, -) { +export function stepsAreInSamePhase(ancestor: Step, descendent: Step) { let currentLayerPlan: LayerPlan | null = descendent.layerPlan; do { if (currentLayerPlan === ancestor.layerPlan) { @@ -1064,7 +980,6 @@ export function stepsAreInSamePhase( } } case "root": - case "nullableBoundary": case "subroutine": case "mutationField": { continue; @@ -1107,11 +1022,11 @@ export function assertNotPromise( } export function hasItemPlan( - step: ExecutableStep & { - itemPlan?: ($item: ExecutableStep) => ExecutableStep; + step: Step & { + itemPlan?: ($item: Step) => Step; }, -): step is ExecutableStep & { - itemPlan: ($item: ExecutableStep) => ExecutableStep; +): step is Step & { + itemPlan: ($item: Step) => Step; } { return "itemPlan" in step && typeof step.itemPlan === "function"; } @@ -1173,7 +1088,7 @@ export function directiveArgument( | graphql.Kind.FLOAT | graphql.Kind.BOOLEAN | graphql.Kind.STRING, -): ExecutableStep | undefined { +): Step | undefined { const arg = directive.arguments?.find((n) => n.name.value === argName); if (!arg) return undefined; const val = arg.value; diff --git a/grafast/website/grafast/getting-started/index.mdx b/grafast/website/grafast/getting-started/index.mdx index d3b64b15d9..8d505dc893 100644 --- a/grafast/website/grafast/getting-started/index.mdx +++ b/grafast/website/grafast/getting-started/index.mdx @@ -177,7 +177,7 @@ We could then [serve this schema over HTTP][servers] using a server such as The building blocks of an operation plan are "steps." Steps are instances of "step classes," and makes available a modest range of [standard steps][] that you can use; but when these aren't enough you can write your own. -Step classes extend the `ExecutableStep` class. The only required method to +Step classes extend the `Step` class. The only required method to define is `execute`, however most steps will also have a `constructor` in which they accept their arguments (some of which may be dependencies) and may also have the various lifecycle methods. @@ -186,9 +186,9 @@ Full details for doing so can be found in [Step classes][], but let's build ourselves a simple one now to replace the `lambda` usage above: ```ts -const { ExecutableStep } = require("grafast"); +const { Step } = require("grafast"); -class AddStep extends ExecutableStep { +class AddStep extends Step { constructor($a, $b) { super(); this.addDependency($a); diff --git a/grafast/website/grafast/index.mdx b/grafast/website/grafast/index.mdx index cfdfb026ab..c40394ffa6 100644 --- a/grafast/website/grafast/index.mdx +++ b/grafast/website/grafast/index.mdx @@ -273,7 +273,7 @@ Here's a step class which retrieves records matching a given column (i.e. Optionally, you may request to limit to the first `$first` results. ```ts -export class RecordsByColumnStep extends ExecutableStep { +export class RecordsByColumnStep extends Step { constructor(tableName, columnName, $columnValue) { super(); this.tableName = tableName; diff --git a/grafast/website/grafast/plan-diagrams.mdx b/grafast/website/grafast/plan-diagrams.mdx index a8310c68b8..6a50cdc0ff 100644 --- a/grafast/website/grafast/plan-diagrams.mdx +++ b/grafast/website/grafast/plan-diagrams.mdx @@ -63,6 +63,8 @@ due to polymorphic filtering or excluding null results from further processing. Here's an example of a bucket node: + + + + ### First line (e.g. `Bucket 1 (nullableBoundary)`) The first line in the bucket node always start with the word `Bucket` followed by the bucket number. diff --git a/grafast/website/grafast/plan-resolvers.md b/grafast/website/grafast/plan-resolvers.md index ec179b8d5b..f4db802a51 100644 --- a/grafast/website/grafast/plan-resolvers.md +++ b/grafast/website/grafast/plan-resolvers.md @@ -216,6 +216,8 @@ type what the step actually is, you can use `__assertStep: ExecutableStep` or ## Argument and input field plan resolvers +**THIS CONTENT IS WRONG!** TODO: update this to reflect the beta2 changes. + :::tip This section is very advanced and rarely used, so feel free to skip to the next diff --git a/grafast/website/grafast/step-classes.md b/grafast/website/grafast/step-classes.md index c85b94bebc..3f413adcc8 100644 --- a/grafast/website/grafast/step-classes.md +++ b/grafast/website/grafast/step-classes.md @@ -15,7 +15,7 @@ A modest range of [standard step classes][standard steps] are available for you to use; but when these aren't enough you are encouraged to write your own (or pull down third party step classes from npm or similar). -Step classes extend the `ExecutableStep` class, the only required method to +Step classes extend the `Step` class, the only required method to define is `execute`, but you may also implement the various lifecycle methods, or add methods of your own to make it easier for you to write [plan resolvers][]. @@ -23,7 +23,7 @@ resolvers][]. ```ts /** XKCD-221 step class @ref https://xkcd.com/221/ */ -class GetRandomNumberStep extends ExecutableStep { +class GetRandomNumberStep extends Step { execute({ count }) { return new Array(count).fill(4); // chosen by fair dice roll. // guaranteed to be random. @@ -46,7 +46,7 @@ conflicts occurring. :::warning Don't subclass steps. Don't subclass steps, this will make things very confusing for you. Always -inherit directly from `ExecutableStep`. +inherit directly from `Step`. ::: @@ -209,8 +209,8 @@ _This method is optional._ ```ts deduplicate( - peers: readonly ExecutableStep[] -): readonly ExecutableStep[] + peers: readonly Step[] +): readonly Step[] ``` After a field has been fully planned, will call this method on each @@ -232,7 +232,7 @@ _This method is optional._ ```ts deduplicatedWith( - replacement: ExecutableStep + replacement: Step ): void ``` @@ -272,7 +272,7 @@ _This method is optional._ ```ts optimize( options: { stream: StepStreamOptions | null } -): ExecutableStep +): Step ``` This method is called on each step during the optimize lifecycle event. It @@ -380,7 +380,7 @@ Usage: ```ts import { access } from "grafast"; -class MyListStep extends ExecutableStep { +class MyListStep extends Step { // ... at(index) { @@ -407,7 +407,7 @@ string, which represents an attribute to access an object-like value. ```ts import { access } from "grafast"; -class MyObjectStep extends ExecutableStep { +class MyObjectStep extends Step { // ... get(key) { @@ -439,7 +439,7 @@ zero or more times. ```ts import { access } from "grafast"; -class MyCollectionStep extends ExecutableStep /* implements ConnectionCapableStep */ { +class MyCollectionStep extends Step /* implements ConnectionCapableStep */ { // ... items() { @@ -460,10 +460,89 @@ from steps which don't adhere to these expectations. ::: +### apply() + +Implement `.apply()` if your step wants to allow for runtime modification of +its action based on non-trivial input values - for example, if your step +represents an SQL query it might want to allow dynamic `WHERE` or `ORDER BY` +clauses based on input arguments to a GraphQL field. `.apply()` will accept a +single argument, a step that represents a runtime callback function. The step +should then call this function from `.execute()`; a common implementation might +look like: + + + +```ts +import { Step, ExecutionDetails, GrafastResultsList, Maybe } from "grafast"; + +interface QueryBuilder { + orderBy(columnName: string, ascending?: boolean): void; +} + +type Callback = (queryBuilder: QueryBuilder) => void; + +class MyQueryStep extends Step { + private applyDepIds: number[] = []; + + // [...] + // this.foreignKeyDepId = this.addDependency($fkey); + // [...] + + // Handling `Step` is enough for some use cases, but + // handling this combination is the most flexible. + apply($step: Step>>) { + this.applyDepIds.push(this.addUnaryDependency($step)); + } + + async execute( + executionDetails: ExecutionDetails, + ): Promise>> { + const { values, indexMap } = executionDetails; + const foreignKeyEV = values[this.foreignKeyDepId]; + + // Create a query builder to collect together the orderBy values + const orderBys: string[] = []; + const queryBuilder: QueryBuilder = { + orderBy(columnName, asc = true) { + orderBys.push(`${columnName} ${asc ? "ASC" : "DESC"}`); + }, + }; + + // For each of the `apply()` callbacks, run it against the query builder + for (const applyDepId of this.applyDepIds) { + const callback = values[applyDepId].unaryValue(); + if (Array.isArray(callback)) { + callback.forEach((cb) => cb(queryBuilder)); + } else if (callback != null) { + callback(queryBuilder); + } + } + + // Now we can use `orderBys` to build a query: + const query = ` + select * + from my_table + where foreign_key = any($1) + order by ${orderBys} + `; + + // Then we can fetch the data: + const allForeignKeys = indexMap((i) => foreignKeyEV.at(i)); + const rows = await runQuery(query, [allForeignKeys]); + + // And return the right data to go with each input value: + return indexMap((i) => { + const foreignKey = foreignKeyEV.at(i); + return rows.filter((r) => r.foreign_key === foreignKey); + }); + } +} +``` + ## Built in methods Your custom step class will have access to all the built-in methods that come -as part of `ExecutableStep`. +as part of `Step`. ### addDependency @@ -480,7 +559,7 @@ In the [getting started][] guide we saw the constructor for the `AddStep` step class added two dependencies: ```ts -class AddStep extends ExecutableStep { +class AddStep extends Step { constructor($a, $b) { super(); this.addDependency($a); // Returns 0 diff --git a/grafast/website/grafast/step-library/standard-steps/applyInput.md b/grafast/website/grafast/step-library/standard-steps/applyInput.md new file mode 100644 index 0000000000..2b5e7427f6 --- /dev/null +++ b/grafast/website/grafast/step-library/standard-steps/applyInput.md @@ -0,0 +1,3 @@ +# applyInput() + +TODO: DOCUMENT ME! diff --git a/grafast/website/grafast/step-library/standard-steps/connection.md b/grafast/website/grafast/step-library/standard-steps/connection.md index 93414a7e76..f8d3bb9b9a 100644 --- a/grafast/website/grafast/step-library/standard-steps/connection.md +++ b/grafast/website/grafast/step-library/standard-steps/connection.md @@ -25,11 +25,11 @@ methods, specifically: >, ): PageInfoCapableStep; - setFirst($step: ExecutableStep> | number): void; - setLast($step: ExecutableStep> | number): void; - setOffset($step: ExecutableStep> | number): void; + setFirst($step: Step> | number): void; + setLast($step: Step> | number): void; + setOffset($step: Step> | number): void; - parseCursor($step: ExecutableStep>): TCursorStep | null | undefined; + parseCursor($step: Step>): TCursorStep; setBefore($step: TCursorStep): void; setAfter($step: TCursorStep): void; ``` @@ -38,13 +38,13 @@ TODO: the documentation for this is terrible. Sorry. ```ts export function connection< - TItemStep extends ExecutableStep, - TCursorStep extends ExecutableStep, + TItemStep extends Step, + TCursorStep extends Step, TStep extends ConnectionCapableStep, - TNodeStep extends ExecutableStep = ExecutableStep, + TNodeStep extends Step = Step, >( $collection: TStep, itemPlan?: ($item: TItemStep) => TNodeStep, - cursorPlan?: ($item: TItemStep) => ExecutableStep, + cursorPlan?: ($item: TItemStep) => Step, ): ConnectionStep; ``` diff --git a/grafast/website/grafast/step-library/standard-steps/index.mdx b/grafast/website/grafast/step-library/standard-steps/index.mdx index 2cbf9b5d80..27964582d4 100644 --- a/grafast/website/grafast/step-library/standard-steps/index.mdx +++ b/grafast/website/grafast/step-library/standard-steps/index.mdx @@ -46,7 +46,9 @@ business logic layer. - [error][]: always throws the given error - [access][]: accesses the property at the given path for each value - [lambda][]: executes a lambda function for each set of values -- [setter][]: a ModifierStep for setting given values onto a parent step + + + ## GraphQL diff --git a/grafast/website/grafast/step-library/standard-steps/setter.md b/grafast/website/grafast/step-library/standard-steps/setter.md index 9575594fed..a22030099e 100644 --- a/grafast/website/grafast/step-library/standard-steps/setter.md +++ b/grafast/website/grafast/step-library/standard-steps/setter.md @@ -1,12 +1,12 @@ # setter -A ModifierStep for setting given values onto a parent step. +A Modifier for setting given values onto a parent. Usage: ```ts -const $update = pgUpdateSingle(...); -return setter($update); +const object = {}; +return setter(object); ``` TODO: actually document this! diff --git a/grafast/website/src/pages/errors/aap.md b/grafast/website/src/pages/errors/aap.md new file mode 100644 index 0000000000..f47adecb01 --- /dev/null +++ b/grafast/website/src/pages/errors/aap.md @@ -0,0 +1,52 @@ +# Argument applyPlan + + + +You've received this error because the `applyPlan` method on one of your arguments +(see the error message to identify which one) has returned a value. Doing so +was meaningful during part of Grafast's beta phase, but it was determined that +this led to bad patterns and thus it was removed. + +It's likely that you just returned a value by accident and did not mean for it +to be meaningful. If so, simply remove the `return`. + +However, if you are migrating from an early version of Grafast and this is +meaningful then instead of returning something from your existing code: + +```ts +// Code that produces the error: +function applyPlan($parent, $field, fieldArg, info) { + // [...] + return $target; +} +``` + +you likely want to directly apply the fieldArg to it: + +```ts +function applyPlan($parent, $field, fieldArg, info) { + // [...] + fieldArg.apply($target); +} +``` + +This uses [`applyInput()`](/grafast/step-library/standard-steps/applyInput) +under the hood to "apply" input values to a parent step, and thus requires that +`$target` implements the [apply()](/grafast/step-classes#apply) method. The +code is roughly equivalent to: + +```ts +function applyPlan($parent, $field, fieldArg, info) { + // [...] + // fieldArg.apply($target) is roughly equivalent to: + const argType = info.arg.type; + const $value = fieldArg.getRaw(); + const $callback = applyInput(argType, $value); + $target.apply($callback); +} +``` + +Note that applying inputs like this happens at runtime (rather than plantime) +since the inputs could be variables and we don't want to fork the plans based +on runtime values; thus the mechanics have changed a bit - please see the +`applyInput()` documentation for more details. diff --git a/graphile-build/graphile-build-pg/src/plugins/PgAttributesPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgAttributesPlugin.ts index efc5f3e9de..26e79b52e1 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgAttributesPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgAttributesPlugin.ts @@ -8,13 +8,17 @@ import type { PgCodecAttributes, PgCodecList, PgCodecWithAttributes, - PgConditionStep, + PgCondition, + PgSelectQueryBuilder, PgSelectSingleStep, - PgSelectStep, } from "@dataplan/pg"; -import { pgSelectFromRecords, pgSelectSingleFromRecord } from "@dataplan/pg"; -import type { GrafastFieldConfig, SetterStep } from "grafast"; -import { each } from "grafast"; +import { + pgSelectFromRecords, + pgSelectSingleFromRecord, + sqlValueWithCodec, +} from "@dataplan/pg"; +import type { GrafastFieldConfig, Setter } from "grafast"; +import { bakedInputRuntime, each } from "grafast"; import type { GraphQLFieldConfigMap, GraphQLOutputType } from "grafast/graphql"; import { EXPORTABLE } from "graphile-build"; @@ -156,7 +160,7 @@ function processAttribute( } const [baseCodec, type] = resolveResult; - const fieldSpec: GrafastFieldConfig = { + const fieldSpec: GrafastFieldConfig = { description: attribute.description, type: type as GraphQLOutputType, }; @@ -484,7 +488,12 @@ export const PgAttributesPlugin: GraphileConfig.Plugin = { return fields; }, GraphQLInputObjectType_fields(fields, build, context) { - const { extend, inflection, sql } = build; + const { + extend, + inflection, + sql, + graphql: { isInputType }, + } = build; const { scope: { isPgRowType, @@ -561,13 +570,19 @@ export const PgAttributesPlugin: GraphileConfig.Plugin = { `Two attributes produce the same GraphQL field name '${fieldName}' on input PgCodec '${pgCodec.name}'; one of them is '${attributeName}'`, ); } + const attributeCodec = attribute.codec; const attributeType = build.getGraphQLTypeByPgCodec( - attribute.codec, + attributeCodec, "input", ); if (!attributeType) { return memo; } + if (!isInputType(attributeType)) { + throw new Error( + `Expected ${attributeType} to be an input type`, + ); + } return extend( memo, { @@ -596,16 +611,19 @@ export const PgAttributesPlugin: GraphileConfig.Plugin = { Boolean(attribute.extensions?.tags?.hasDefault), attributeType, ), - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true, - applyPlan: isPgCondition + apply: isPgCondition ? EXPORTABLE( - (attribute, attributeName, sql) => + ( + attributeCodec, + attributeName, + sql, + sqlValueWithCodec, + ) => function plan( - $condition: PgConditionStep>, - val, + $condition: PgCondition, + val: unknown, ) { - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where({ type: "attribute", attribute: attributeName, @@ -617,24 +635,33 @@ export const PgAttributesPlugin: GraphileConfig.Plugin = { type: "attribute", attribute: attributeName, callback: (expression) => - sql`${expression} = ${$condition.placeholder( - val.get(), - attribute.codec, + sql`${expression} = ${sqlValueWithCodec( + val, + attributeCodec, )}`, }); } }, - [attribute, attributeName, sql], + [ + attributeCodec, + attributeName, + sql, + sqlValueWithCodec, + ], ) : EXPORTABLE( - (attributeName) => + (attributeName, bakedInputRuntime) => function plan( - $insert: SetterStep, - val, + obj: Setter, + val: unknown, + { field, schema }, ) { - $insert.set(attributeName, val.get()); + obj.set( + attributeName, + bakedInputRuntime(schema, field.type, val), + ); }, - [attributeName], + [attributeName, bakedInputRuntime], ), }, ), diff --git a/graphile-build/graphile-build-pg/src/plugins/PgConditionArgumentPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgConditionArgumentPlugin.ts index a29a8fae09..5fc9a240db 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgConditionArgumentPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgConditionArgumentPlugin.ts @@ -4,10 +4,11 @@ import "graphile-config"; import type { PgCodecWithAttributes, PgSelectParsedCursorStep, + PgSelectQueryBuilder, PgSelectSingleStep, PgSelectStep, } from "@dataplan/pg"; -import type { ConnectionStep } from "grafast"; +import type { ConnectionStep, GrafastArgumentConfig } from "grafast"; import type { GraphQLInputObjectType } from "grafast/graphql"; import { version } from "../version.js"; @@ -113,6 +114,7 @@ export const PgConditionArgumentPlugin: GraphileConfig.Plugin = { }, GraphQLObjectType_fields_field_args(args, build, context) { + const { EXPORTABLE } = build; const { scope, Self } = context; const { @@ -174,21 +176,30 @@ export const PgConditionArgumentPlugin: GraphileConfig.Plugin = { type: tableConditionType, autoApplyAfterParentPlan: true, applyPlan: isPgFieldConnection - ? ( - _condition, - $connection: ConnectionStep< - PgSelectSingleStep, - PgSelectParsedCursorStep, - PgSelectStep - >, - ) => { - const $select = $connection.getSubplan(); - return $select.wherePlan(); - } - : (_condition, $select: PgSelectStep) => { - return $select.wherePlan(); - }, - }, + ? EXPORTABLE( + (qbWhereBuilder) => + ( + _condition, + $connection: ConnectionStep< + PgSelectSingleStep, + PgSelectParsedCursorStep, + PgSelectStep + >, + arg, + ) => { + const $select = $connection.getSubplan(); + arg.apply($select, qbWhereBuilder); + }, + [qbWhereBuilder], + ) + : EXPORTABLE( + (qbWhereBuilder) => + (_condition, $select: PgSelectStep, arg) => { + arg.apply($select, qbWhereBuilder); + }, + [qbWhereBuilder], + ), + } as GrafastArgumentConfig, }, `Adding condition to connection field '${fieldName}' of '${Self.name}'`, ); @@ -196,3 +207,6 @@ export const PgConditionArgumentPlugin: GraphileConfig.Plugin = { }, }, }; +function qbWhereBuilder(qb: PgSelectQueryBuilder) { + return qb.whereBuilder(); +} diff --git a/graphile-build/graphile-build-pg/src/plugins/PgConditionCustomFieldsPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgConditionCustomFieldsPlugin.ts index 8bb2f67efa..aa6b1d47e1 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgConditionCustomFieldsPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgConditionCustomFieldsPlugin.ts @@ -1,12 +1,13 @@ import "graphile-config"; import type { - PgConditionStep, + PgCondition, PgResource, PgResourceParameter, - PgSelectStep, } from "@dataplan/pg"; +import { sqlValueWithCodec } from "@dataplan/pg"; import { EXPORTABLE } from "graphile-build"; +import type { GraphQLInputType } from "graphql"; import { version } from "../version.js"; @@ -114,7 +115,7 @@ export const PgConditionCustomFieldsPlugin: GraphileConfig.Plugin = { const type = build.getGraphQLTypeByPgCodec( pgFieldSource.codec, "input", - ); + ) as GraphQLInputType; if (!type) return memo; memo = build.extend( memo, @@ -132,12 +133,10 @@ export const PgConditionCustomFieldsPlugin: GraphileConfig.Plugin = { "field", ), type, - applyPlan: EXPORTABLE( - (pgFieldSource, sql) => - function plan( - $condition: PgConditionStep>, - val, - ) { + apply: EXPORTABLE( + (pgFieldSource, sql, sqlValueWithCodec) => + function plan($condition: PgCondition, val: unknown) { + if (val === undefined) return; if (typeof pgFieldSource.from !== "function") { throw new Error( "Invalid computed attribute 'from'", @@ -146,18 +145,18 @@ export const PgConditionCustomFieldsPlugin: GraphileConfig.Plugin = { const expression = sql`${pgFieldSource.from({ placeholder: $condition.alias, })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { $condition.where( - sql`${expression} = ${$condition.placeholder( - val.get(), + sql`${expression} = ${sqlValueWithCodec( + val, pgFieldSource.codec, )}`, ); } }, - [pgFieldSource, sql], + [pgFieldSource, sql, sqlValueWithCodec], ), }, ), diff --git a/graphile-build/graphile-build-pg/src/plugins/PgConnectionArgOrderByPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgConnectionArgOrderByPlugin.ts index 5e67ce9ab7..906c213d8a 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgConnectionArgOrderByPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgConnectionArgOrderByPlugin.ts @@ -7,15 +7,9 @@ import type { PgSelectSingleStep, PgSelectStep, } from "@dataplan/pg"; -import type { - ConnectionStep, - GrafastFieldConfigArgumentMap, - InputStep, -} from "grafast"; -import { getEnumValueConfig, SafeError } from "grafast"; -import type { GraphQLEnumType, GraphQLSchema } from "grafast/graphql"; +import type { ConnectionStep, GrafastFieldConfigArgumentMap } from "grafast"; +import type { GraphQLEnumType } from "grafast/graphql"; import { EXPORTABLE } from "graphile-build"; -import { inspect } from "util"; import { version } from "../version.js"; @@ -109,12 +103,7 @@ export const PgConnectionArgOrderByPlugin: GraphileConfig.Plugin = { ), values: { [inflection.builtin("NATURAL")]: { - extensions: { - grafast: { - // NATURAL means to not change the sort order - applyPlan: EXPORTABLE(() => () => {}, []), - }, - }, + // No need for hooks, it doesn't change the order }, }, }), @@ -185,102 +174,45 @@ export const PgConnectionArgOrderByPlugin: GraphileConfig.Plugin = { return args; } + // TODO: inflection + const argName = "orderBy"; return extend( args, { - orderBy: { + [argName]: { description: build.wrapDescription( `The method to use when ordering \`${tableTypeName}\`.`, "arg", ), type: new GraphQLList(new GraphQLNonNull(TableOrderByType)), - autoApplyAfterParentPlan: true, applyPlan: isPgFieldConnection ? EXPORTABLE( - (applyOrderToPlan, tableOrderByTypeName) => - function plan( - _: any, + () => + ( + parent, $connection: ConnectionStep< PgSelectSingleStep, PgSelectParsedCursorStep, PgSelectStep >, - val, - info: { schema: GraphQLSchema }, - ) { - const $value = val.getRaw(); + value, + ) => { const $select = $connection.getSubplan(); - applyOrderToPlan( - $select, - $value, - info.schema.getType( - tableOrderByTypeName, - ) as GraphQLEnumType, - ); - return null; + value.apply($select); }, - [applyOrderToPlan, tableOrderByTypeName], + [], ) : EXPORTABLE( - (applyOrderToPlan, tableOrderByTypeName) => - function plan( - _: any, - $select: PgSelectStep, - val, - info: { schema: GraphQLSchema }, - ) { - const $value = val.getRaw(); - applyOrderToPlan( - $select, - $value, - info.schema.getType( - tableOrderByTypeName, - ) as GraphQLEnumType, - ); - return null; - }, - [applyOrderToPlan, tableOrderByTypeName], + () => (parent, $select: PgSelectStep, value) => { + value.apply($select); + }, + [], ), }, - } as GrafastFieldConfigArgumentMap, - `Adding 'orderBy' argument to field '${fieldName}' of '${Self.name}'`, + } as GrafastFieldConfigArgumentMap, + `Adding '${argName}' (orderBy) argument to field '${fieldName}' of '${Self.name}'`, ); }, }, }, }; - -export const applyOrderToPlan = EXPORTABLE( - (SafeError, getEnumValueConfig, inspect) => - ( - $select: PgSelectStep, - $value: InputStep, - TableOrderByType: GraphQLEnumType, - ) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error( - `Internal server error: invalid orderBy configuration: expected function, but received ${inspect( - plan, - )}`, - ); - throw new SafeError( - "Internal server error: invalid orderBy configuration", - ); - } - plan($select); - } - }, - [SafeError, getEnumValueConfig, inspect], -); diff --git a/graphile-build/graphile-build-pg/src/plugins/PgCustomTypeFieldPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgCustomTypeFieldPlugin.ts index cb8e5128bf..4cf7a2aae5 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgCustomTypeFieldPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgCustomTypeFieldPlugin.ts @@ -6,6 +6,7 @@ import "./PgProceduresPlugin.js"; import "graphile-config"; import type { + PgClassExpressionStep, PgClassSingleStep, PgCodec, PgDeleteSingleStep, @@ -14,15 +15,15 @@ import type { PgResourceParameter, PgSelectArgumentDigest, PgSelectArgumentSpec, - PgSelectStep, - PgTypedExecutableStep, + PgSelectQueryBuilder, PgUpdateSingleStep, } from "@dataplan/pg"; import { - digestsFromArgumentSpecs, pgClassExpression, + pgFromExpression, pgSelectSingleFromRecord, PgSelectSingleStep, + PgSelectStep, TYPES, } from "@dataplan/pg"; import type { @@ -34,20 +35,20 @@ import type { FieldPlanResolver, GrafastFieldConfig, GrafastInputFieldConfigMap, + Maybe, } from "grafast"; import { __ListTransformStep, + bakedInput, connection, - constant, object, ObjectStep, stepAMayDependOnStepB, } from "grafast"; import type { GraphQLInputType, GraphQLOutputType } from "grafast/graphql"; import { EXPORTABLE } from "graphile-build"; -import type { SQL } from "pg-sql2"; -import { tagToString } from "../utils.js"; +import { exportNameHint, tagToString } from "../utils.js"; import { version } from "../version.js"; const $$rootQuery = Symbol("PgCustomTypeFieldPluginRootQuerySources"); @@ -94,15 +95,6 @@ declare global { inputType: GraphQLInputType; required: boolean; }>; - makeExpression(opts: { - $placeholderable: { - placeholder($step: ExecutableStep, codec: PgCodec): SQL; - }; - resource: PgResource; - fieldArgs: FieldArgs; - path?: string[]; - initialArgs?: SQL[]; - }): SQL; }; } @@ -484,7 +476,7 @@ export const PgCustomTypeFieldPlugin: GraphileConfig.Plugin = { getSpec && codecResource ? EXPORTABLE( (codecResource, getSpec) => - ($nodeId: ExecutableStep) => + ($nodeId: ExecutableStep>) => codecResource.get(getSpec($nodeId)), [codecResource, getSpec], ) @@ -557,116 +549,26 @@ export const PgCustomTypeFieldPlugin: GraphileConfig.Plugin = { fetcher, }), ); - let indexAfterWhichAllArgsAreNamed = 0; - const argDetailsLength = argDetails.length; - for (let i = 0; i < argDetailsLength; i++) { - if (!argDetails[i].postgresArgName) { - indexAfterWhichAllArgsAreNamed = i + 1; - } - } + exportNameHint( + argDetailsSimple, + `argDetailsSimple_${resource.name}`, + ); const makeArgs = EXPORTABLE( - ( - argDetailsLength, - argDetailsSimple, - constant, - indexAfterWhichAllArgsAreNamed, - ) => - (args: FieldArgs, path: string[] = []) => { - const selectArgs: PgSelectArgumentSpec[] = []; - - let skipped = false; - for (let i = 0; i < argDetailsLength; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher, - } = argDetailsSimple[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step: ExecutableStep; - if ($raw.evalIs(undefined)) { - if ( - !required && - i >= indexAfterWhichAllArgsAreNamed - 1 - ) { - skipped = true; - continue; - } else { - step = constant(null); - } - } else if (fetcher) { - step = ( - fetcher( - args.get([...path, graphqlArgName]), - ) as PgSelectSingleStep - ).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; - }, - [ - argDetailsLength, - argDetailsSimple, - constant, - indexAfterWhichAllArgsAreNamed, - ], + (argDetailsSimple, makeArg) => + (args: FieldArgs, path: string[] = []) => + argDetailsSimple.map((details) => + makeArg(path, args, details), + ), + [argDetailsSimple, makeArg], ); + exportNameHint(makeArgs, `makeArgs_${resource.name}`); + return { argDetails, makeArgs, makeFieldArgs, - makeExpression: EXPORTABLE( - (digestsFromArgumentSpecs, makeArgs) => - ({ - $placeholderable, - resource, - fieldArgs, - path = [], - initialArgs = [], - }) => { - const args = makeArgs(fieldArgs, path); - const { digests } = digestsFromArgumentSpecs( - $placeholderable, - args, - initialArgs.map((a, position) => ({ - placeholder: a, - position, - })), - initialArgs.length, - ); - if (typeof resource.from !== "function") { - throw new Error("!function"); - } - const src = resource.from(...digests); - return src; - }, - [digestsFromArgumentSpecs, makeArgs], - ), }; }; @@ -802,19 +704,18 @@ export const PgCustomTypeFieldPlugin: GraphileConfig.Plugin = { Object.assign(Object.create(null), { clientMutationId: { type: GraphQLString, - autoApplyAfterParentApplyPlan: true, - applyPlan: EXPORTABLE( + apply: EXPORTABLE( () => - function plan( - $input: ObjectStep, - val: FieldArgs, + function apply( + qb: PgSelectQueryBuilder, + val: string | null, ) { - $input.set("clientMutationId", val.get()); + qb.setMeta("clientMutationId", val); }, [], ), }, - }) as GrafastInputFieldConfigMap, + }) as GrafastInputFieldConfigMap, ); }, }; @@ -845,21 +746,25 @@ export const PgCustomTypeFieldPlugin: GraphileConfig.Plugin = { clientMutationId: { type: GraphQLString, plan: EXPORTABLE( - (constant) => - function plan($object: ObjectStep) { - return ( - $object.getStepForKey( - "clientMutationId", - true, - ) ?? constant(undefined) - ); + () => + function plan( + $object: ObjectStep<{ + result: + | PgSelectStep + | PgSelectSingleStep + | PgClassExpressionStep; + }>, + ) { + const $result = + $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, - [constant], + [], ), }, }) as Record< string, - GrafastFieldConfig + GrafastFieldConfig >; if (isVoid) { return fields; @@ -955,7 +860,7 @@ export const PgCustomTypeFieldPlugin: GraphileConfig.Plugin = { }; function modFields( - fields: GraphileBuild.GrafastFieldConfigMap, + fields: GraphileBuild.GrafastFieldConfigMap, build: GraphileBuild.Build, context: | GraphileBuild.ContextObjectFields @@ -1066,6 +971,7 @@ function modFields( hasRecord, makeArgs, pgClassExpression, + pgFromExpression, pgSelectSingleFromRecord, resource, stepAMayDependOnStepB, @@ -1105,39 +1011,29 @@ function modFields( ( arg, i, - ): PgSelectArgumentDigest & { - // We _MUST_ set `name` if we're told one - name: string | undefined; - } => { - const { name } = arg; + ): PgSelectArgumentSpec | PgSelectArgumentDigest => { if (i === 0) { + const { step, ...rest } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias, - }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder( - arg.step, - arg.pgCodec, - ), - }; + } as PgSelectArgumentDigest; } else { - return { - name, - placeholder: $row.placeholder( - arg.step as PgTypedExecutableStep, - ), - }; + return arg; } }, ); + const from = pgFromExpression( + $row, + resource.from, + resource.parameters, + newSelectArgs, + ); return pgClassExpression( $row, resource.codec, undefined, - )`${resource.from(...newSelectArgs)}`; + )`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource.execute(selectArgs); @@ -1147,6 +1043,7 @@ function modFields( hasRecord, makeArgs, pgClassExpression, + pgFromExpression, pgSelectSingleFromRecord, resource, stepAMayDependOnStepB, @@ -1183,13 +1080,39 @@ function modFields( args: { input: { type: new GraphQLNonNull(inputType), - autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( - () => - function plan(_: any, $object: ObjectStep) { - return $object; + (PgSelectStep) => + function plan( + _: any, + $object: ObjectStep<{ + result: + | PgSelectStep + | PgSelectSingleStep + | PgClassExpressionStep; + }>, + arg, + ) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = + "getParentStep" in $result + ? ($result.getParentStep() as PgSelectSingleStep) + : $result; + const $pgSelect = + "getClassStep" in $parent + ? $parent.getClassStep() + : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error( + `Could not determine PgSelectStep for ${$result}`, + ); + } }, - [], + [PgSelectStep], ), }, }, @@ -1501,3 +1424,37 @@ function getFunctionSourceReturnGraphQLType( : innerType; return type; } + +const makeArg = EXPORTABLE( + (bakedInput) => + function makeArg( + path: string[], + args: FieldArgs, + details: { + graphqlArgName: string; + postgresArgName: string | null; + pgCodec: PgCodec; + fetcher: + | null + | (( + $nodeId: ExecutableStep>, + ) => PgSelectSingleStep | PgClassExpressionStep); + }, + ): PgSelectArgumentSpec { + const { graphqlArgName, postgresArgName, pgCodec, fetcher } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath) as __TrackedValueStep; + const step = fetcher + ? ( + fetcher($raw as ExecutableStep>) as PgSelectSingleStep + ).record() + : bakedInput(args.typeAt(fullPath), $raw); + + return { + step, + pgCodec, + name: postgresArgName ?? undefined, + }; + }, + [bakedInput], +); diff --git a/graphile-build/graphile-build-pg/src/plugins/PgFirstLastBeforeAfterArgsPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgFirstLastBeforeAfterArgsPlugin.ts index 1a8f8fcda1..f6050bd5e8 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgFirstLastBeforeAfterArgsPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgFirstLastBeforeAfterArgsPlugin.ts @@ -49,7 +49,7 @@ export const PgFirstLastBeforeAfterArgsPlugin: GraphileConfig.Plugin = { }; function commonFn( - args: GrafastFieldConfigArgumentMap, + args: GrafastFieldConfigArgumentMap, build: GraphileBuild.Build, context: | GraphileBuild.ContextObjectFieldsFieldArgs @@ -104,7 +104,6 @@ function commonFn( "arg", ), type: GraphQLInt, - autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( () => function plan( @@ -129,7 +128,6 @@ function commonFn( "arg", ), type: GraphQLInt, - autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( () => function plan( @@ -156,7 +154,6 @@ function commonFn( "arg", ), type: GraphQLInt, - autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( () => function plan( @@ -181,7 +178,6 @@ function commonFn( "arg", ), type: Cursor, - autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( () => function plan( @@ -208,7 +204,6 @@ function commonFn( "arg", ), type: Cursor, - autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( () => function plan( @@ -227,7 +222,7 @@ function commonFn( }, } : null), - } as GrafastFieldConfigArgumentMap, + } as GrafastFieldConfigArgumentMap, isPgFieldConnection ? `Adding connection pagination args to field '${fieldName}' of '${Self.name}'` : `Adding simple collection args to field '${fieldName}' of '${Self.name}'`, diff --git a/graphile-build/graphile-build-pg/src/plugins/PgMutationCreatePlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgMutationCreatePlugin.ts index 9ce292137c..46f25beba3 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgMutationCreatePlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgMutationCreatePlugin.ts @@ -1,9 +1,13 @@ import "graphile-config"; -import type { PgInsertSingleStep, PgResource } from "@dataplan/pg"; +import type { + PgInsertSingleQueryBuilder, + PgInsertSingleStep, + PgResource, +} from "@dataplan/pg"; import { pgInsertSingle } from "@dataplan/pg"; import type { FieldArgs, ObjectStep } from "grafast"; -import { assertExecutableStep, constant, object } from "grafast"; +import { assertExecutableStep, object } from "grafast"; import type { GraphQLOutputType } from "grafast/graphql"; import { EXPORTABLE } from "graphile-build"; @@ -123,7 +127,7 @@ export const PgMutationCreatePlugin: GraphileConfig.Plugin = { init(_, build) { const { inflection, - graphql: { GraphQLString, GraphQLNonNull }, + graphql: { GraphQLString, GraphQLNonNull, isInputType }, } = build; const insertableResources = Object.values( build.input.pgRegistry.pgResources, @@ -147,16 +151,15 @@ export const PgMutationCreatePlugin: GraphileConfig.Plugin = { return { clientMutationId: { type: GraphQLString, - autoApplyAfterParentApplyPlan: true, - applyPlan: EXPORTABLE( + apply: EXPORTABLE( () => - function plan($input: ObjectStep, val) { - $input.set("clientMutationId", val.get()); + function apply(qb: PgInsertSingleQueryBuilder, val) { + qb.setMeta("clientMutationId", val); }, [], ), }, - ...(TableInput + ...(isInputType(TableInput) ? { [tableFieldName]: fieldWithHooks( { @@ -169,17 +172,15 @@ export const PgMutationCreatePlugin: GraphileConfig.Plugin = { "field", ), type: new GraphQLNonNull(TableInput), - autoApplyAfterParentApplyPlan: true, - applyPlan: EXPORTABLE( + apply: EXPORTABLE( () => function plan( - $object: ObjectStep<{ - result: PgInsertSingleStep; - }>, + qb: PgInsertSingleQueryBuilder, + arg, ) { - const $record = - $object.getStepForKey("result"); - return $record.setPlan(); + if (arg != null) { + return qb.setBuilder(); + } }, [], ), @@ -214,16 +215,16 @@ export const PgMutationCreatePlugin: GraphileConfig.Plugin = { clientMutationId: { type: GraphQLString, plan: EXPORTABLE( - (constant) => - function plan($mutation: ObjectStep) { - return ( - $mutation.getStepForKey( - "clientMutationId", - true, - ) ?? constant(null) - ); + () => + function plan( + $mutation: ObjectStep<{ + result: PgInsertSingleStep; + }>, + ) { + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, - [constant], + [], ), }, ...(TableType && @@ -306,7 +307,6 @@ export const PgMutationCreatePlugin: GraphileConfig.Plugin = { args: { input: { type: new GraphQLNonNull(mutationInputType), - autoApplyAfterParentPlan: true, applyPlan: EXPORTABLE( () => function plan( @@ -331,13 +331,14 @@ export const PgMutationCreatePlugin: GraphileConfig.Plugin = { plan: EXPORTABLE( (object, pgInsertSingle, resource) => function plan(_: any, args: FieldArgs) { + const $insert = pgInsertSingle( + resource, + Object.create(null), + ); + args.apply($insert); const plan = object({ - result: pgInsertSingle( - resource, - Object.create(null), - ), + result: $insert, }); - args.apply(plan); return plan; }, [object, pgInsertSingle, resource], diff --git a/graphile-build/graphile-build-pg/src/plugins/PgMutationPayloadEdgePlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgMutationPayloadEdgePlugin.ts index 9aade6a328..7c4a1fc297 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgMutationPayloadEdgePlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgMutationPayloadEdgePlugin.ts @@ -6,14 +6,13 @@ import type { PgResourceUnique, } from "@dataplan/pg"; import { PgDeleteSingleStep, pgSelectFromRecord } from "@dataplan/pg"; -import type { FieldArgs, FieldInfo, ObjectStep } from "grafast"; +import type { FieldArgs, ObjectStep } from "grafast"; import { connection, constant, EdgeStep, first } from "grafast"; import type { GraphQLEnumType, GraphQLObjectType } from "grafast/graphql"; import { EXPORTABLE } from "graphile-build"; import { tagToString } from "../utils.js"; import { version } from "../version.js"; -import { applyOrderToPlan } from "./PgConnectionArgOrderByPlugin.js"; declare global { namespace GraphileConfig { @@ -163,21 +162,18 @@ export const PgMutationPayloadEdgePlugin: GraphileConfig.Plugin = { ( EdgeStep, PgDeleteSingleStep, - applyOrderToPlan, connection, constant, first, pgSelectFromRecord, pkAttributes, resource, - tableOrderByTypeName, ) => function plan( $mutation: ObjectStep<{ result: PgClassSingleStep; }>, - args: FieldArgs, - info: FieldInfo, + fieldArgs: FieldArgs, ) { const $result = $mutation.getStepForKey("result", true); if (!$result) { @@ -202,15 +198,7 @@ export const PgMutationPayloadEdgePlugin: GraphileConfig.Plugin = { } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan( - $select, - $value, - info.schema.getType( - tableOrderByTypeName, - ) as GraphQLEnumType, - ); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select) as any; // NOTE: you must not use `$single = $select.single()` @@ -222,14 +210,12 @@ export const PgMutationPayloadEdgePlugin: GraphileConfig.Plugin = { [ EdgeStep, PgDeleteSingleStep, - applyOrderToPlan, connection, constant, first, pgSelectFromRecord, pkAttributes, resource, - tableOrderByTypeName, ], ), }), diff --git a/graphile-build/graphile-build-pg/src/plugins/PgMutationUpdateDeletePlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgMutationUpdateDeletePlugin.ts index 4ebf6d8eb0..4929fc2c4e 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgMutationUpdateDeletePlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgMutationUpdateDeletePlugin.ts @@ -3,17 +3,18 @@ import "graphile-config"; import type { PgClassSingleStep, PgCodecWithAttributes, + PgDeleteSingleQueryBuilder, PgDeleteSingleStep, PgResource, PgResourceUnique, + PgUpdateSingleQueryBuilder, PgUpdateSingleStep, } from "@dataplan/pg"; import { pgDeleteSingle, pgUpdateSingle } from "@dataplan/pg"; -import type { ExecutableStep, FieldArgs } from "grafast"; +import type { ExecutableStep, FieldArgs, Maybe } from "grafast"; import { __InputObjectStep, __TrackedValueStep, - constant, lambda, object, ObjectStep, @@ -358,16 +359,16 @@ export const PgMutationUpdateDeletePlugin: GraphileConfig.Plugin = { ), type: GraphQLString, plan: EXPORTABLE( - (constant) => - function plan($mutation: ObjectStep) { - return ( - $mutation.getStepForKey( - "clientMutationId", - true, - ) ?? constant(null) - ); + () => + function plan( + $mutation: ObjectStep<{ + result: PgUpdateSingleStep | PgDeleteSingleStep; + }>, + ) { + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, - [constant], + [], ), }, ...(TableType && @@ -528,13 +529,15 @@ export const PgMutationUpdateDeletePlugin: GraphileConfig.Plugin = { "field", ), type: GraphQLString, - applyPlan: EXPORTABLE( + apply: EXPORTABLE( () => - function plan( - $input: ObjectStep, - val: FieldArgs, + function apply( + qb: + | PgUpdateSingleQueryBuilder + | PgDeleteSingleQueryBuilder, + val: string | null, ) { - $input.set("clientMutationId", val.get()); + qb.setMeta("clientMutationId", val); }, [], ), @@ -582,16 +585,15 @@ export const PgMutationUpdateDeletePlugin: GraphileConfig.Plugin = { "field", ), type: new GraphQLNonNull(TablePatch!), - applyPlan: EXPORTABLE( + apply: EXPORTABLE( () => function plan( - $object: ObjectStep<{ - result: PgUpdateSingleStep; - }>, + qb: PgUpdateSingleQueryBuilder, + arg: any, ) { - const $record = - $object.getStepForKey("result"); - return $record.setPlan(); + if (arg != null) { + return qb.setBuilder(); + } }, [], ), @@ -756,7 +758,7 @@ export const PgMutationUpdateDeletePlugin: GraphileConfig.Plugin = { ([attributeName, fieldName]) => te`${te.safeKeyOrThrow( attributeName, - )}: args.get(['input', ${te.lit(fieldName)}])`, + )}: args.getRaw(['input', ${te.lit(fieldName)}])`, ), ", ", )} }` @@ -781,7 +783,7 @@ export const PgMutationUpdateDeletePlugin: GraphileConfig.Plugin = { (uniqueAttributes) => (args: FieldArgs) => { return uniqueAttributes.reduce( (memo, [attributeName, fieldName]) => { - memo[attributeName] = args.get([ + memo[attributeName] = args.getRaw([ "input", fieldName, ]); @@ -795,10 +797,10 @@ export const PgMutationUpdateDeletePlugin: GraphileConfig.Plugin = { : EXPORTABLE( (handler, nodeIdFieldName, specFromNodeId) => (args: FieldArgs) => { - const $nodeId = args.get([ + const $nodeId = args.getRaw([ "input", nodeIdFieldName, - ]); + ]) as ExecutableStep>; return specFromNodeId(handler!, $nodeId); }, [handler, nodeIdFieldName, specFromNodeId], @@ -850,9 +852,9 @@ export const PgMutationUpdateDeletePlugin: GraphileConfig.Plugin = { te.run`\ return function(object, pgUpdateSingle, resource) { return (_$root, args) => { - const plan = object({ result: pgUpdateSingle(resource, ${specFromArgsString}) }); - args.apply(plan); - return plan; + const $update = pgUpdateSingle(resource, ${specFromArgsString}); + args.apply($update); + return object({ result: $update }); } }` as any, [object, pgUpdateSingle, resource], @@ -868,14 +870,14 @@ return (_$root, args) => { _$root: ExecutableStep, args: FieldArgs, ) { - const plan = object({ - result: pgUpdateSingle( - resource, - specFromArgs(args), - ), + const $update = pgUpdateSingle( + resource, + specFromArgs(args), + ); + args.apply($update); + return object({ + result: $update, }); - args.apply(plan); - return plan; }, [ object, @@ -890,9 +892,9 @@ return (_$root, args) => { te.run`\ return function (object, pgDeleteSingle, resource) { return (_$root, args) => { - const plan = object({ result: pgDeleteSingle(resource, ${specFromArgsString}) }); - args.apply(plan); - return plan; + const $delete = pgDeleteSingle(resource, ${specFromArgsString}); + args.apply($delete); + return object({ result: $delete }); } }` as any, [object, pgDeleteSingle, resource], @@ -908,14 +910,14 @@ return (_$root, args) => { _$root: ExecutableStep, args: FieldArgs, ) { - const plan = object({ - result: pgDeleteSingle( - resource, - specFromArgs(args), - ), + const $delete = pgDeleteSingle( + resource, + specFromArgs(args), + ); + args.apply($delete); + return object({ + result: $delete, }); - args.apply(plan); - return plan; }, [ object, diff --git a/graphile-build/graphile-build-pg/src/plugins/PgNodeIdAttributesPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgNodeIdAttributesPlugin.ts index 1d4c7af83c..e17e837f0e 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgNodeIdAttributesPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgNodeIdAttributesPlugin.ts @@ -4,12 +4,11 @@ import "graphile-config"; import type { PgCodecRelation, PgCodecWithAttributes, - PgConditionStep, + PgCondition, PgRegistry, - PgSelectStep, } from "@dataplan/pg"; -import type { SetterStep } from "grafast"; -import { assertNotNull, condition, trap, TRAP_INHIBITED } from "grafast"; +import { sqlValueWithCodec } from "@dataplan/pg"; +import type { Setter } from "grafast"; import { EXPORTABLE } from "graphile-build"; import { version } from "../version.js"; @@ -145,12 +144,13 @@ export const PgNodeIdAttributesPlugin: GraphileConfig.Plugin = { if (typeName === build.inflection.builtin("Query")) { return memo; } - const getSpec = build.nodeIdSpecForCodec?.( - relation.remoteResource.codec, - ); - if (!getSpec) { + const helpers = ( + build as GraphileBuild.Build + ).nodeIdHelpersForCodec(relation.remoteResource.codec); + if (!helpers) { return memo; } + const { getIdentifiers } = helpers; const action = isPgBaseInput ? "base" : isPgPatch @@ -180,7 +180,8 @@ export const PgNodeIdAttributesPlugin: GraphileConfig.Plugin = { const anAttributeIsNotNull = attributes.some( (attr) => attr.notNull || attr.extensions?.tags?.notNull, ); - const { localAttributes, remoteAttributes } = relation; + const { localAttributes } = relation; + const attributeCount = localAttributes.length; const localAttributeCodecs = localAttributes.map( (name) => pgCodec.attributes[name].codec, ); @@ -201,132 +202,123 @@ export const PgNodeIdAttributesPlugin: GraphileConfig.Plugin = { !anAttributeIsNotNull, GraphQLID, ), - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true, // ENHANCE: if the remote columns are the primary keys // then there's no need to actually fetch the record // (unless we want to check it exists). // ENHANCE: we know nodeId will always be unary, so we // could optimize this SQL at execution time when we know // if it is null or not. - applyPlan: isPgCondition + apply: isPgCondition ? EXPORTABLE( ( - TRAP_INHIBITED, - assertNotNull, - condition, - getSpec, + attributeCount, + getIdentifiers, localAttributeCodecs, localAttributes, - remoteAttributes, sql, - trap, + sqlValueWithCodec, typeName, ) => - function plan( - $condition: PgConditionStep>, - val, + function apply( + condition: PgCondition, + nodeId: unknown, ) { - const $nodeId = val.get(); - const $nodeIdExists = condition( - "exists", - $nodeId, - ); - const spec = getSpec($nodeId); - for ( - let i = 0, l = localAttributes.length; - i < l; - i++ - ) { - const localName = localAttributes[i]; - const codec = localAttributeCodecs[i]; - const remoteName = remoteAttributes[i]; - // Set `null` if invalid - const $rawValue = trap( - spec[remoteName], - TRAP_INHIBITED, - ); - // If `null` but `$nodeId` wasn't null, throw an error: invalid Node ID! - const $value = assertNotNull( - $rawValue, - `Invalid node identifier for '${typeName}'`, - { if: $nodeIdExists }, + if (nodeId === undefined) { + return; + } else if (nodeId === null) { + for (const localName of localAttributes) { + condition.where({ + type: "attribute", + attribute: localName, + callback: (expression) => + sql`${expression} is null`, + }); + } + return; + } else if (typeof nodeId !== "string") { + throw new Error( + `Invalid node identifier for '${typeName}'; expected string`, ); - const sqlRemoteValue = $condition.placeholder( - $value, - codec, - ); - $condition.where({ - type: "attribute", - attribute: localName, - callback: (expression) => - sql`((${sqlRemoteValue} is null and ${expression} is null) or (${sqlRemoteValue} is not null and ${expression} = ${sqlRemoteValue}))`, - }); + } else { + const identifiers = getIdentifiers(nodeId); + if (identifiers == null) { + throw new Error( + `Invalid node identifier for '${typeName}'`, + ); + } + for (let i = 0; i < attributeCount; i++) { + const localName = localAttributes[i]; + const value = identifiers[i]; + if (value == null) { + condition.where({ + type: "attribute", + attribute: localName, + callback: (expression) => + sql`${expression} is null`, + }); + } else { + const codec = localAttributeCodecs[i]; + const sqlRemoteValue = sqlValueWithCodec( + value, + codec, + ); + condition.where({ + type: "attribute", + attribute: localName, + callback: (expression) => + sql`${expression} = ${sqlRemoteValue}`, + }); + } + } } }, [ - TRAP_INHIBITED, - assertNotNull, - condition, - getSpec, + attributeCount, + getIdentifiers, localAttributeCodecs, localAttributes, - remoteAttributes, sql, - trap, + sqlValueWithCodec, typeName, ], ) : EXPORTABLE( ( - TRAP_INHIBITED, - assertNotNull, - condition, - getSpec, + attributeCount, + getIdentifiers, localAttributes, - remoteAttributes, - trap, typeName, ) => - function plan( - $insert: SetterStep, - val, - ) { - const $nodeId = val.get(); - const $nodeIdExists = condition( - "exists", - $nodeId, - ); - const spec = getSpec($nodeId); - for ( - let i = 0, l = localAttributes.length; - i < l; - i++ - ) { - const localName = localAttributes[i]; - const remoteName = remoteAttributes[i]; - // Set `null` if invalid - const $rawValue = trap( - spec[remoteName], - TRAP_INHIBITED, - ); - // If `null` but `$nodeId` wasn't null, throw an error: invalid Node ID! - const $value = assertNotNull( - $rawValue, - `Invalid node identifier for '${typeName}'`, - { if: $nodeIdExists }, + function plan(record: Setter, nodeId: unknown) { + if (nodeId === undefined) { + return; + } else if (nodeId === null) { + for (const localName of localAttributes) { + record.set(localName, null); + } + return; + } else if (typeof nodeId !== "string") { + throw new Error( + `Invalid node identifier for '${typeName}'; expected string`, ); - $insert.set(localName, $value); + } else { + const identifiers = getIdentifiers(nodeId); + if (identifiers == null) { + console.log(identifiers, nodeId, typeName); + throw new Error( + `Invalid node identifier for '${typeName}'`, + ); + } + for (let i = 0; i < attributeCount; i++) { + const localName = localAttributes[i]; + record.set(localName, identifiers[i]); + } } }, [ - TRAP_INHIBITED, - assertNotNull, - condition, - getSpec, + attributeCount, + getIdentifiers, localAttributes, - remoteAttributes, - trap, typeName, ], ), diff --git a/graphile-build/graphile-build-pg/src/plugins/PgOrderAllAttributesPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgOrderAllAttributesPlugin.ts index c4a0657a47..19662488bb 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgOrderAllAttributesPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgOrderAllAttributesPlugin.ts @@ -1,9 +1,12 @@ import "./PgTablesPlugin.js"; import "graphile-config"; -import type { PgCodecWithAttributes } from "@dataplan/pg"; -import { PgSelectStep, PgUnionAllStep } from "@dataplan/pg"; -import type { ExecutableStep, ModifierStep } from "grafast"; +import type { + PgCodecWithAttributes, + PgSelectQueryBuilder, + PgSelectQueryBuilderCallback, + PgUnionAllQueryBuilder, +} from "@dataplan/pg"; import type { GraphQLEnumValueConfigMap } from "grafast/graphql"; import { EXPORTABLE } from "graphile-build"; @@ -122,24 +125,14 @@ export const PgOrderAllAttributesPlugin: GraphileConfig.Plugin = { [ascFieldName]: { extensions: { grafast: { - applyPlan: EXPORTABLE( - ( - PgSelectStep, - PgUnionAllStep, - attributeName, - isUnique, - pgOrderByNullsLast, - ) => - (plan: ExecutableStep | ModifierStep): void => { - if ( - !(plan instanceof PgSelectStep) && - !(plan instanceof PgUnionAllStep) - ) { - throw new Error( - "Expected a PgSelectStep or PgUnionAllStep when applying ordering value", - ); - } - plan.orderBy({ + apply: EXPORTABLE( + (attributeName, isUnique, pgOrderByNullsLast) => + (( + queryBuilder: + | PgSelectQueryBuilder + | PgUnionAllQueryBuilder, + ): void => { + queryBuilder.orderBy({ attribute: attributeName, direction: "ASC", ...(pgOrderByNullsLast != null @@ -151,16 +144,10 @@ export const PgOrderAllAttributesPlugin: GraphileConfig.Plugin = { : null), }); if (isUnique) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } - }, - [ - PgSelectStep, - PgUnionAllStep, - attributeName, - isUnique, - pgOrderByNullsLast, - ], + }) as PgSelectQueryBuilderCallback, + [attributeName, isUnique, pgOrderByNullsLast], ), }, }, @@ -181,24 +168,14 @@ export const PgOrderAllAttributesPlugin: GraphileConfig.Plugin = { [descFieldName]: { extensions: { grafast: { - applyPlan: EXPORTABLE( - ( - PgSelectStep, - PgUnionAllStep, - attributeName, - isUnique, - pgOrderByNullsLast, - ) => - (plan: ExecutableStep | ModifierStep): void => { - if ( - !(plan instanceof PgSelectStep) && - !(plan instanceof PgUnionAllStep) - ) { - throw new Error( - "Expected a PgSelectStep or PgUnionAllStep when applying ordering value", - ); - } - plan.orderBy({ + apply: EXPORTABLE( + (attributeName, isUnique, pgOrderByNullsLast) => + (( + queryBuilder: + | PgSelectQueryBuilder + | PgUnionAllQueryBuilder, + ): void => { + queryBuilder.orderBy({ attribute: attributeName, direction: "DESC", ...(pgOrderByNullsLast != null @@ -210,16 +187,10 @@ export const PgOrderAllAttributesPlugin: GraphileConfig.Plugin = { : null), }); if (isUnique) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } - }, - [ - PgSelectStep, - PgUnionAllStep, - attributeName, - isUnique, - pgOrderByNullsLast, - ], + }) as PgSelectQueryBuilderCallback, + [attributeName, isUnique, pgOrderByNullsLast], ), }, }, diff --git a/graphile-build/graphile-build-pg/src/plugins/PgOrderByPrimaryKeyPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgOrderByPrimaryKeyPlugin.ts index 1fb9118593..7a9c88e1e8 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgOrderByPrimaryKeyPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgOrderByPrimaryKeyPlugin.ts @@ -4,7 +4,9 @@ import "graphile-config"; import type { PgCodecWithAttributes, PgResourceUnique, - PgSelectStep, + PgSelectQueryBuilder, + PgSelectQueryBuilderCallback, + PgUnionAllQueryBuilder, } from "@dataplan/pg"; import { EXPORTABLE } from "graphile-build"; @@ -32,7 +34,7 @@ export const PgOrderByPrimaryKeyPlugin: GraphileConfig.Plugin = { schema: { hooks: { GraphQLEnumType_values(values, build, context) { - const { extend, inflection, sql, options } = build; + const { extend, inflection, options } = build; const { scope: { isPgRowSortEnum, pgCodec: rawPgCodec }, } = context; @@ -68,16 +70,16 @@ export const PgOrderByPrimaryKeyPlugin: GraphileConfig.Plugin = { [inflection.builtin("PRIMARY_KEY_ASC")]: { extensions: { grafast: { - applyPlan: EXPORTABLE( - (pgCodec, pgOrderByNullsLast, primaryKeyAttributes, sql) => - (step: PgSelectStep) => { + apply: EXPORTABLE( + (pgOrderByNullsLast, primaryKeyAttributes) => + (( + queryBuilder: + | PgSelectQueryBuilder + | PgUnionAllQueryBuilder, + ) => { primaryKeyAttributes.forEach((attributeName) => { - const attribute = pgCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier( - attributeName, - )}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(pgOrderByNullsLast != null ? { @@ -86,9 +88,9 @@ export const PgOrderByPrimaryKeyPlugin: GraphileConfig.Plugin = { : null), }); }); - step.setOrderIsUnique(); - }, - [pgCodec, pgOrderByNullsLast, primaryKeyAttributes, sql], + queryBuilder.setOrderIsUnique(); + }) as PgSelectQueryBuilderCallback, + [pgOrderByNullsLast, primaryKeyAttributes], ), }, }, @@ -96,16 +98,16 @@ export const PgOrderByPrimaryKeyPlugin: GraphileConfig.Plugin = { [inflection.builtin("PRIMARY_KEY_DESC")]: { extensions: { grafast: { - applyPlan: EXPORTABLE( - (pgCodec, pgOrderByNullsLast, primaryKeyAttributes, sql) => - (step: PgSelectStep) => { + apply: EXPORTABLE( + (pgOrderByNullsLast, primaryKeyAttributes) => + (( + queryBuilder: + | PgSelectQueryBuilder + | PgUnionAllQueryBuilder, + ) => { primaryKeyAttributes.forEach((attributeName) => { - const attribute = pgCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier( - attributeName, - )}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(pgOrderByNullsLast != null ? { @@ -114,9 +116,9 @@ export const PgOrderByPrimaryKeyPlugin: GraphileConfig.Plugin = { : null), }); }); - step.setOrderIsUnique(); - }, - [pgCodec, pgOrderByNullsLast, primaryKeyAttributes, sql], + queryBuilder.setOrderIsUnique(); + }) as PgSelectQueryBuilderCallback, + [pgOrderByNullsLast, primaryKeyAttributes], ), }, }, diff --git a/graphile-build/graphile-build-pg/src/plugins/PgOrderCustomFieldsPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgOrderCustomFieldsPlugin.ts index 0fe8b1277a..4494a0245d 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgOrderCustomFieldsPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgOrderCustomFieldsPlugin.ts @@ -4,7 +4,8 @@ import "graphile-config"; import type { PgResource, PgResourceParameter, - PgSelectStep, + PgSelectQueryBuilder, + PgSelectQueryBuilderCallback, } from "@dataplan/pg"; import { EXPORTABLE } from "graphile-build"; @@ -121,25 +122,25 @@ export const PgOrderCustomFieldsPlugin: GraphileConfig.Plugin = { [valueName]: { extensions: { grafast: { - applyPlan: EXPORTABLE( + apply: EXPORTABLE( (ascDesc, pgFieldSource, sql) => - (step: PgSelectStep) => { + ((queryBuilder: PgSelectQueryBuilder) => { if (typeof pgFieldSource.from !== "function") { throw new Error( "Invalid computed attribute 'from'", ); } const expression = sql`${pgFieldSource.from({ - placeholder: step.alias, + placeholder: queryBuilder.alias, })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: pgFieldSource.codec, fragment: expression, direction: ascDesc.toUpperCase() as | "ASC" | "DESC", }); - }, + }) as PgSelectQueryBuilderCallback, [ascDesc, pgFieldSource, sql], ), }, diff --git a/graphile-build/graphile-build-pg/src/plugins/PgPolymorphismOnlyArgumentPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgPolymorphismOnlyArgumentPlugin.ts index f2065fa742..1830f76993 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgPolymorphismOnlyArgumentPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgPolymorphismOnlyArgumentPlugin.ts @@ -1,16 +1,18 @@ import type { PgCodec, PgCodecPolymorphismRelationalTypeSpec, + PgUnionAllQueryBuilderCallback, PgUnionAllStep, } from "@dataplan/pg"; import type { ConnectionStep, FieldArgs, GrafastFieldConfigArgumentMap, + Maybe, } from "grafast"; import { EXPORTABLE } from "graphile-build"; import type { GraphileConfig } from "graphile-config"; -import type { GraphQLFieldConfigArgumentMap } from "graphql"; +import type { GraphQLEnumType, GraphQLFieldConfigArgumentMap } from "graphql"; import { version } from "../version.js"; @@ -158,9 +160,7 @@ export const PgPolymorphismOnlyArgumentPlugin: GraphileConfig.Plugin = { }; function makeFieldsHook(isInterface: boolean) { return ( - args: - | GrafastFieldConfigArgumentMap - | GraphQLFieldConfigArgumentMap, + args: GrafastFieldConfigArgumentMap | GraphQLFieldConfigArgumentMap, build: GraphileBuild.Build, context: @@ -170,6 +170,7 @@ function makeFieldsHook(isInterface: boolean) { const { getTypeByName, graphql: { GraphQLList, GraphQLNonNull }, + grafast: { lambda }, inflection, } = build; const { @@ -188,7 +189,7 @@ function makeFieldsHook(isInterface: boolean) { return args; } const enumTypeName = inflection.pgPolymorphismEnumType(codec); - const enumType = getTypeByName(enumTypeName); + const enumType = getTypeByName(enumTypeName) as GraphQLEnumType; if (!enumType) { return args; } @@ -204,10 +205,9 @@ function makeFieldsHook(isInterface: boolean) { ...(isInterface ? null : { - autoApplyAfterParentPlan: true, applyPlan: isPgFieldConnection ? EXPORTABLE( - () => + (lambda, limitToTypes) => ( $parent: any, $connection: ConnectionStep< @@ -219,20 +219,22 @@ function makeFieldsHook(isInterface: boolean) { fieldArgs: FieldArgs, ) => { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); }, - [], + [lambda, limitToTypes], ) : EXPORTABLE( - () => + (lambda, limitToTypes) => ( $parent: any, $union: PgUnionAllStep, fieldArgs: FieldArgs, ) => { - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); }, - [], + [lambda, limitToTypes], ), }), }, @@ -244,3 +246,11 @@ function makeFieldsHook(isInterface: boolean) { return args; }; } + +function limitToTypes(ltt: Maybe): PgUnionAllQueryBuilderCallback { + if (ltt) { + return (qb) => qb.limitToTypes(ltt); + } else { + return () => {}; + } +} diff --git a/graphile-build/graphile-build-pg/src/plugins/PgPolymorphismPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgPolymorphismPlugin.ts index 7b71c75251..08c775b7a0 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgPolymorphismPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgPolymorphismPlugin.ts @@ -29,6 +29,7 @@ import type { ExecutableStep, LambdaStep, ListStep, + Maybe, NodeIdHandler, } from "grafast"; import { @@ -37,6 +38,7 @@ import { lambda, list, makeDecodeNodeId, + makeDecodeNodeIdRuntime, object, } from "grafast"; import type { @@ -81,8 +83,16 @@ declare global { [polymorphicTypeName: string]: PgCodec; }; + nodeIdHelpersForCodec( + codec: PgCodec, + ): { + getSpec: ($nodeId: ExecutableStep>) => { + [key: string]: ExecutableStep; + }; + getIdentifiers: (nodeId: Maybe) => null | readonly any[]; + } | null; nodeIdSpecForCodec(codec: PgCodec): - | (($nodeId: ExecutableStep) => { + | (($nodeId: ExecutableStep>) => { [key: string]: ExecutableStep; }) | null; @@ -796,9 +806,9 @@ export const PgPolymorphismPlugin: GraphileConfig.Plugin = { resource.uniques as PgResourceUnique[] | undefined )?.find((u) => u.isPrimary); if (pk) { - const pkAttributes = pk.attributes; + const remotePkAttributes = pk.attributes; const pkRelations = Object.values(relations).filter((r) => - arraysMatch(r.localAttributes, pkAttributes), + arraysMatch(r.localAttributes, remotePkAttributes), ); if ( pkRelations.some( @@ -909,7 +919,7 @@ export const PgPolymorphismPlugin: GraphileConfig.Plugin = { { pgResourcesByPolymorphicTypeName, pgCodecByPolymorphicUnionModeTypeName, - nodeIdSpecForCodec(codec) { + nodeIdHelpersForCodec(codec) { const table = build.pgTableResource!(codec); if (!table) { return null; @@ -920,10 +930,7 @@ export const PgPolymorphismPlugin: GraphileConfig.Plugin = { } const tablePkAttributes = tablePk.attributes; if (codec.polymorphism?.mode === "relational") { - const details: Array<{ - handler: NodeIdHandler; - pkAttributes: readonly string[]; - }> = []; + const details: Array = []; for (const spec of Object.values(codec.polymorphism.types)) { const relation = table.getRelation(spec.relationName); const typeName = build.inflection.tableType( @@ -940,81 +947,15 @@ export const PgPolymorphismPlugin: GraphileConfig.Plugin = { return null; } details.push({ - pkAttributes: pk.attributes, + remotePkAttributes: pk.attributes, handler, }); } const handlers = details.map((d) => d.handler); - const decodeNodeId = EXPORTABLE( - (handlers, makeDecodeNodeId) => makeDecodeNodeId(handlers), - [handlers, makeDecodeNodeId], - ); - return EXPORTABLE( - ( - access, - decodeNodeId, - details, - lambda, - list, - object, - tablePkAttributes, - ) => - ( - $nodeId: ExecutableStep, - ): { [key: string]: ExecutableStep } => { - const $specifier = decodeNodeId($nodeId); - const $handlerMatches = list( - details.map(({ handler, pkAttributes }) => { - const spec = handler.getSpec( - access($specifier, handler.codec.name), - ); - return object({ - match: lambda($specifier, (specifier) => { - const value = specifier?.[handler.codec.name]; - return value != null - ? handler.match(value) - : false; - }), - pks: list(pkAttributes.map((n) => spec[n])), - }); - }), - ); - const $pkValues = lambda( - $handlerMatches, - (handlerMatches) => { - const match = ( - handlerMatches as DataFromObjectSteps<{ - match: LambdaStep< - { - [codecName: string]: any; - } | null, - boolean - >; - pks: ListStep; - }>[] - ).find((pk) => pk.match); - return match?.pks; - }, - true, - ); - return tablePkAttributes.reduce( - (memo, pkAttribute, i) => { - memo[pkAttribute] = access($pkValues, i); - return memo; - }, - Object.create(null), - ); - }, - [ - access, - decodeNodeId, - details, - lambda, - list, - object, - tablePkAttributes, - ], - ); + return { + getSpec: makeGetRelationalSpec(details, tablePkAttributes), + getIdentifiers: makeGetIdentifiers(handlers), + }; } else if (codec.polymorphism?.mode === "single") { // Lots of type names, but they all relate to the same table const handlers: Array = []; @@ -1026,78 +967,10 @@ export const PgPolymorphismPlugin: GraphileConfig.Plugin = { } handlers.push(handler); } - const decodeNodeId = EXPORTABLE( - (handlers, makeDecodeNodeId) => makeDecodeNodeId(handlers), - [handlers, makeDecodeNodeId], - ); - return EXPORTABLE( - ( - access, - decodeNodeId, - handlers, - lambda, - list, - object, - tablePkAttributes, - ) => - ( - $nodeId: ExecutableStep, - ): { [key: string]: ExecutableStep } => { - const $specifier = decodeNodeId($nodeId); - const $handlerMatches = list( - handlers.map((handler) => { - const spec = handler.getSpec( - access($specifier, handler.codec.name), - ); - return object({ - match: lambda($specifier, (specifier) => { - const value = specifier?.[handler.codec.name]; - return value != null - ? handler.match(value) - : false; - }), - pks: list(tablePkAttributes.map((n) => spec[n])), - }); - }), - ); - const $pkValues = lambda( - $handlerMatches, - (handlerMatches) => { - // Explicit typing because TypeScript has lost the - // plot. - const match = ( - handlerMatches as DataFromObjectSteps<{ - match: LambdaStep< - { - [codecName: string]: any; - } | null, - boolean - >; - pks: ListStep; - }>[] - ).find((pk) => pk.match); - return match?.pks; - }, - true, - ); - return tablePkAttributes.reduce( - (memo, pkAttribute, i) => { - memo[pkAttribute] = access($pkValues, i); - return memo; - }, - Object.create(null), - ); - }, - [ - access, - decodeNodeId, - handlers, - lambda, - list, - object, - tablePkAttributes, - ], - ); + return { + getSpec: makeGetSingleSpec(handlers, tablePkAttributes), + getIdentifiers: makeGetIdentifiers(handlers), + }; } else if (codec.polymorphism) { throw new Error( `Don't know how to get the spec for nodeId for codec with polymorphism mode '${codec.polymorphism.mode}'`, @@ -1109,20 +982,32 @@ export const PgPolymorphismPlugin: GraphileConfig.Plugin = { if (!handler || !specForHandler) { return null; } - return EXPORTABLE( - (handler, lambda, specForHandler) => - ( - $nodeId: ExecutableStep, - ): { [key: string]: ExecutableStep } => { - // TODO: should change this to a common method like - // `const $decoded = getDecodedNodeIdForHandler(handler, $nodeId)` - const $decoded = lambda($nodeId, specForHandler(handler)); - return handler.getSpec($decoded); - }, - [handler, lambda, specForHandler], - ); + return { + getSpec: EXPORTABLE( + (handler, lambda, specForHandler) => + ( + $nodeId: ExecutableStep>, + ): { [key: string]: ExecutableStep } => { + // TODO: should change this to a common method like + // `const $decoded = getDecodedNodeIdForHandler(handler, $nodeId)` + const $decoded = lambda( + $nodeId, + specForHandler(handler), + ); + return handler.getSpec($decoded); + }, + [handler, lambda, specForHandler], + ), + getIdentifiers: makeGetIdentifiers([handler]), + }; } }, + nodeIdSpecForCodec(codec) { + const helpers = ( + build as GraphileBuild.Build + ).nodeIdHelpersForCodec(codec); + return helpers ? helpers.getSpec : null; + }, }, "Adding PgPolmorphismPlugin helpers to Build", ); @@ -1326,6 +1211,9 @@ return function (access, inhibitOnNull) { }, [access, inhibitOnNull, pk], ), + getIdentifiers(value) { + return value.slice(1); + }, get: EXPORTABLE( (resource) => (spec: any) => resource.get(spec), [resource], @@ -1498,3 +1386,143 @@ return function (access, inhibitOnNull) { }, }, }; + +function makeGetIdentifiers(handlers: ReadonlyArray) { + const decodeNodeId = EXPORTABLE( + (handlers, makeDecodeNodeIdRuntime) => makeDecodeNodeIdRuntime(handlers), + [handlers, makeDecodeNodeIdRuntime], + ); + return EXPORTABLE( + (decodeNodeId, handlers) => (nodeId: string | null | undefined) => { + const specifier = decodeNodeId(nodeId); + if (specifier == null) return null; + for (const handler of handlers) { + const value = specifier?.[handler.codec.name]; + const match = value != null ? handler.match(value) : false; + if (match) { + return handler.getIdentifiers(value); + } + } + return null; + }, + [decodeNodeId, handlers], + ); +} + +function makeGetRelationalSpec( + details: ReadonlyArray, + tablePkAttributes: readonly string[], +) { + const handlers = details.map((d) => d.handler); + const decodeNodeId = EXPORTABLE( + (handlers, makeDecodeNodeId) => makeDecodeNodeId(handlers), + [handlers, makeDecodeNodeId], + ); + return EXPORTABLE( + (access, decodeNodeId, details, lambda, list, object, tablePkAttributes) => + ( + $nodeId: ExecutableStep>, + ): { [key: string]: ExecutableStep } => { + const $specifier = decodeNodeId($nodeId); + const $handlerMatches = list( + details.map(({ handler, remotePkAttributes }) => { + const spec = handler.getSpec( + access($specifier, handler.codec.name), + ); + return object({ + match: lambda($specifier, (specifier) => { + const value = specifier?.[handler.codec.name]; + return value != null ? handler.match(value) : false; + }), + pks: list(remotePkAttributes.map((n) => spec[n])), + }); + }), + ); + const $pkValues = lambda( + $handlerMatches, + (handlerMatches) => { + const match = ( + handlerMatches as DataFromObjectSteps<{ + match: LambdaStep< + { + [codecName: string]: any; + } | null, + boolean + >; + pks: ListStep; + }>[] + ).find((pk) => pk.match); + return match?.pks; + }, + true, + ); + return tablePkAttributes.reduce((memo, pkAttribute, i) => { + memo[pkAttribute] = access($pkValues, i); + return memo; + }, Object.create(null)); + }, + [access, decodeNodeId, details, lambda, list, object, tablePkAttributes], + ); +} + +interface NodeIdHandlerAndPkAttributes { + handler: NodeIdHandler; + remotePkAttributes: readonly string[]; +} + +function makeGetSingleSpec( + handlers: ReadonlyArray, + tablePkAttributes: readonly string[], +) { + const decodeNodeId = EXPORTABLE( + (handlers, makeDecodeNodeId) => makeDecodeNodeId(handlers), + [handlers, makeDecodeNodeId], + ); + return EXPORTABLE( + (access, decodeNodeId, handlers, lambda, list, object, tablePkAttributes) => + ( + $nodeId: ExecutableStep>, + ): { [key: string]: ExecutableStep } => { + const $specifier = decodeNodeId($nodeId); + const $handlerMatches = list( + handlers.map((handler) => { + const spec = handler.getSpec( + access($specifier, handler.codec.name), + ); + return object({ + match: lambda($specifier, (specifier) => { + const value = specifier?.[handler.codec.name]; + return value != null ? handler.match(value) : false; + }), + pks: list(tablePkAttributes.map((n) => spec[n])), + }); + }), + ); + const $pkValues = lambda( + $handlerMatches, + (handlerMatches) => { + // Explicit typing because TypeScript has lost the + // plot. + const match = ( + handlerMatches as DataFromObjectSteps<{ + match: LambdaStep< + { + [codecName: string]: any; + } | null, + boolean + >; + pks: ListStep; + }>[] + ).find((pk) => pk.match); + return match?.pks; + }, + true, + ); + return tablePkAttributes.reduce((memo, pkAttribute, i) => { + memo[pkAttribute] = access($pkValues, i); + return memo; + }, Object.create(null)); + }, + [access, decodeNodeId, handlers, lambda, list, object, tablePkAttributes], + ); +} diff --git a/graphile-build/graphile-build-pg/src/plugins/PgRowByUniquePlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgRowByUniquePlugin.ts index 5fec712a7e..f80bdbb72e 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgRowByUniquePlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgRowByUniquePlugin.ts @@ -166,7 +166,7 @@ return function (resource) { return (_$root, args) => resource.get({ ${te.join( attributeNames.map( (attributeName) => - te`${te.safeKeyOrThrow(attributeName)}: args.get(${te.lit( + te`${te.safeKeyOrThrow(attributeName)}: args.getRaw(${te.lit( detailsByAttributeName[attributeName].graphqlName, )})`, ), @@ -180,7 +180,7 @@ return function (resource) { function plan(_$root: any, args: FieldArgs) { const spec = Object.create(null); for (const attributeName in detailsByAttributeName) { - spec[attributeName] = args.get( + spec[attributeName] = args.getRaw( detailsByAttributeName[attributeName] .graphqlName, ); diff --git a/graphile-build/graphile-build-pg/src/plugins/PgTableNodePlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgTableNodePlugin.ts index 4c09a0404d..0b5f54a35c 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgTableNodePlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgTableNodePlugin.ts @@ -213,6 +213,7 @@ return function (access, inhibitOnNull) { }, [access, inhibitOnNull, pk], ), + getIdentifiers: EXPORTABLE(() => (value) => value.slice(1), []), get: EXPORTABLE( (pgResource) => (spec: any) => pgResource.get(spec), [pgResource], diff --git a/graphile-build/graphile-build-pg/src/plugins/PgTablesPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgTablesPlugin.ts index 67cc4541fe..5002cb6918 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgTablesPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgTablesPlugin.ts @@ -6,7 +6,7 @@ import type { PgResourceUnique, } from "@dataplan/pg"; import { assertPgClassSingleStep, makePgResourceOptions } from "@dataplan/pg"; -import { object } from "grafast"; +import { createObjectAndApplyChildren } from "grafast"; import { EXPORTABLE, EXPORTABLE_OBJECT_CLONE, @@ -712,13 +712,7 @@ export const PgTablesPlugin: GraphileConfig.Plugin = { description: `An input for mutations affecting \`${tableTypeName}\``, extensions: { grafast: { - inputPlan: EXPORTABLE( - (object) => - function inputPlan() { - return object(Object.create(null)); - }, - [object], - ), + baked: createObjectAndApplyChildren, }, }, }), @@ -745,13 +739,7 @@ export const PgTablesPlugin: GraphileConfig.Plugin = { description: `Represents an update to a \`${tableTypeName}\`. Fields that are set will be updated.`, extensions: { grafast: { - inputPlan: EXPORTABLE( - (object) => - function inputPlan() { - return object(Object.create(null)); - }, - [object], - ), + baked: createObjectAndApplyChildren, }, }, }), @@ -774,13 +762,7 @@ export const PgTablesPlugin: GraphileConfig.Plugin = { description: `An input representation of \`${tableTypeName}\` with nullable fields.`, extensions: { grafast: { - inputPlan: EXPORTABLE( - (object) => - function inputPlan() { - return object(Object.create(null)); - }, - [object], - ), + baked: createObjectAndApplyChildren, }, }, }), diff --git a/graphile-build/graphile-build-pg/src/plugins/PgTypesPlugin.ts b/graphile-build/graphile-build-pg/src/plugins/PgTypesPlugin.ts index 046febb82a..f755189742 100644 --- a/graphile-build/graphile-build-pg/src/plugins/PgTypesPlugin.ts +++ b/graphile-build/graphile-build-pg/src/plugins/PgTypesPlugin.ts @@ -504,7 +504,7 @@ export const PgTypesPlugin: GraphileConfig.Plugin = { function registerGeometry( typeName: string, description: string, - fieldGen: () => GraphileBuild.GrafastFieldConfigMap, + fieldGen: () => GraphileBuild.GrafastFieldConfigMap, inputFieldGen: () => GraphQLInputFieldConfigMap, ): void { build.registerObjectType( diff --git a/graphile-build/graphile-build/src/examples/README-1.ts b/graphile-build/graphile-build/src/examples/README-1.ts index d35c709511..fc6df2a79d 100644 --- a/graphile-build/graphile-build/src/examples/README-1.ts +++ b/graphile-build/graphile-build/src/examples/README-1.ts @@ -56,14 +56,16 @@ const MyRandomFieldPlugin: GraphileConfig.Plugin = { }, }, plan: EXPORTABLE( - (lambda, myDefaultMax, myDefaultMin) => (_$parent, args) => { - return lambda( - args.get("sides"), - (sides = myDefaultMax) => - Math.floor(Math.random() * (sides + 1 - myDefaultMin)) + - myDefaultMin, - ); - }, + (lambda, myDefaultMax, myDefaultMin) => + (_$parent, { $sides }) => { + return lambda( + $sides, + (sides = myDefaultMax) => + Math.floor( + Math.random() * (sides + 1 - myDefaultMin), + ) + myDefaultMin, + ); + }, [lambda, myDefaultMax, myDefaultMin], ), })), diff --git a/graphile-build/graphile-build/src/global.ts b/graphile-build/graphile-build/src/global.ts index 793ae1908d..fe42e83fbc 100644 --- a/graphile-build/graphile-build/src/global.ts +++ b/graphile-build/graphile-build/src/global.ts @@ -1,12 +1,12 @@ import type { BaseGraphQLArguments, - ExecutableStep, GrafastArgumentConfig, GrafastFieldConfig, GrafastFieldConfigArgumentMap, GrafastInputFieldConfig, GrafastInputFieldConfigMap, OutputPlanForType, + Step, } from "grafast"; import type { GraphQLArgumentConfig, @@ -63,11 +63,11 @@ interface RegisterObjectType { * scope so that other plugins may hook it; it can also be helpful to * indicate where a conflict has occurred. */ - ( + ( typeName: string, scope: GraphileBuild.ScopeObject, specGenerator: () => Omit< - GraphileBuild.GrafastObjectTypeConfig, + GraphileBuild.GrafastObjectTypeConfig, "name" >, origin: string | null | undefined, @@ -77,16 +77,16 @@ interface RegisterObjectType { * @deprecated Please pass 'assertStep' as part of the object spec. This * compatibility signature will not be supported for long! */ - ( + ( typeName: string, scope: GraphileBuild.ScopeObject, - assertStep: TStep extends ExecutableStep + assertStep: TStep extends Step ? - | ((step: ExecutableStep) => asserts step is TStep) + | ((step: Step) => asserts step is TStep) | { new (...args: any[]): TStep } : null, specGenerator: () => Omit< - GraphileBuild.GrafastObjectTypeConfig, + GraphileBuild.GrafastObjectTypeConfig, "name" >, origin: string | null | undefined, @@ -212,38 +212,27 @@ declare global { interface Inflection extends InflectionBase {} /** Our take on GraphQLFieldConfigMap that allows for plans */ - type GrafastFieldConfigMap< - TParentStep extends ExecutableStep | null, - TContext extends Grafast.Context, - > = { - [fieldName: string]: GrafastFieldConfig< - any, - TContext, - TParentStep, - any, - any - >; + type GrafastFieldConfigMap = { + [fieldName: string]: GrafastFieldConfig; }; /** Our take on GraphQLObjectTypeConfig that allows for plans */ - interface GrafastObjectTypeConfig< - TParentStep extends ExecutableStep | null, - TContext extends Grafast.Context, - > extends Omit< - GraphQLObjectTypeConfig, + interface GrafastObjectTypeConfig + extends Omit< + GraphQLObjectTypeConfig, "fields" | "interfaces" > { fields?: - | GrafastFieldConfigMap + | GrafastFieldConfigMap | (( context: ContextObjectFields, - ) => GrafastFieldConfigMap); + ) => GrafastFieldConfigMap); interfaces?: | GraphQLInterfaceType[] | ((context: ContextObjectInterfaces) => GraphQLInterfaceType[]); - assertStep?: TParentStep extends ExecutableStep + assertStep?: TParentStep extends Step ? - | ((step: ExecutableStep) => asserts step is TParentStep) + | ((step: Step) => asserts step is TParentStep) | { new (...args: any[]): TParentStep } : null; } @@ -252,31 +241,31 @@ declare global { interface GrafastInputObjectTypeConfig extends Omit { fields?: - | GrafastInputFieldConfigMap + | GrafastInputFieldConfigMap | (( context: ContextInputObjectFields, - ) => GrafastInputFieldConfigMap); + ) => GrafastInputFieldConfigMap); } /** Our take on GraphQLUnionTypeConfig that allows for plans */ - interface GrafastUnionTypeConfig - extends Omit, "types"> { + interface GrafastUnionTypeConfig + extends Omit, "types"> { types?: | GraphQLObjectType[] | ((context: ContextUnionTypes) => GraphQLObjectType[]); } /** Our take on GraphQLInterfaceTypeConfig that allows for plans */ - interface GrafastInterfaceTypeConfig + interface GrafastInterfaceTypeConfig extends Omit< - GraphQLInterfaceTypeConfig, + GraphQLInterfaceTypeConfig, "fields" | "interfaces" > { fields?: - | GraphQLFieldConfigMap + | GraphQLFieldConfigMap | (( context: ContextInterfaceFields, - ) => GraphQLFieldConfigMap); + ) => GraphQLFieldConfigMap); interfaces?: | GraphQLInterfaceType[] | ((context: ContextInterfaceInterfaces) => GraphQLInterfaceType[]); @@ -395,14 +384,14 @@ declare global { registerInterfaceType: ( typeName: string, scope: ScopeInterface, - specGenerator: () => Omit, "name">, + specGenerator: () => Omit, "name">, origin: string | null | undefined, ) => void; /** As registerObjectType, but for unions */ registerUnionType: ( typeName: string, scope: ScopeUnion, - specGenerator: () => Omit, "name">, + specGenerator: () => Omit, "name">, origin: string | null | undefined, ) => void; /** As registerObjectType, but for scalars */ @@ -441,14 +430,11 @@ declare global { Constructor: { new (spec: any): GraphQLNamedType }; scope: GraphileBuild.SomeScope; origin: string | null | undefined; - Step?: { new (...args: any[]): ExecutableStep } | null; + Step?: { new (...args: any[]): Step } | null; specGenerator: - | (() => Omit< - GraphileBuild.GrafastObjectTypeConfig, - "name" - >) - | (() => Omit, "name">) - | (() => Omit, "name">) + | (() => Omit, "name">) + | (() => Omit, "name">) + | (() => Omit, "name">) | (() => Omit, "name">) | (() => Omit) | (() => Omit); @@ -660,7 +646,8 @@ declare global { } interface ScopeObjectFieldsFieldArgs extends ScopeObjectFieldsField {} - interface ContextObjectFieldsFieldArgs extends ContextObjectFieldsField { + interface ContextObjectFieldsFieldArgs + extends Omit { scope: ScopeObjectFieldsFieldArgs; } @@ -830,24 +817,17 @@ declare global { */ type FieldWithHooksFunction = < TType extends GraphQLOutputType, - TContext extends Grafast.Context, - TParentStep extends ExecutableStep, + TParentStep extends Step, TFieldStep extends OutputPlanForType, TArgs extends BaseGraphQLArguments, >( fieldScope: ScopeObjectFieldsField, spec: - | GrafastFieldConfig + | GrafastFieldConfig | (( context: ContextObjectFieldsField, - ) => GrafastFieldConfig< - TType, - TContext, - TParentStep, - TFieldStep, - TArgs - >), - ) => GrafastFieldConfig; + ) => GrafastFieldConfig), + ) => GrafastFieldConfig; type InterfaceFieldWithHooksFunction = ( fieldScope: ScopeInterfaceFieldsField, @@ -861,11 +841,9 @@ declare global { type InputFieldWithHooksFunction = ( fieldScope: ScopeInputObjectFieldsField, spec: - | GrafastInputFieldConfig - | (( - context: ContextInputObjectFieldsField, - ) => GrafastInputFieldConfig), - ) => GrafastInputFieldConfig; + | GrafastInputFieldConfig + | ((context: ContextInputObjectFieldsField) => GrafastInputFieldConfig), + ) => GrafastInputFieldConfig; // type WatchUnwatch = (triggerChange: TriggerChangeType) => void; @@ -941,7 +919,7 @@ declare global { * - 'GraphQLObjectType_fields_field_args' to customize the arguments to a field */ GraphQLObjectType: GraphileBuild.Hook< - GrafastObjectTypeConfig, + GrafastObjectTypeConfig, GraphileBuild.ContextObject, TBuild >[]; @@ -951,22 +929,22 @@ declare global { TBuild >[]; GraphQLObjectType_fields: GraphileBuild.Hook< - GrafastFieldConfigMap, + GrafastFieldConfigMap, GraphileBuild.ContextObjectFields, TBuild >[]; GraphQLObjectType_fields_field: GraphileBuild.Hook< - GrafastFieldConfig, + GrafastFieldConfig, GraphileBuild.ContextObjectFieldsField, TBuild >[]; GraphQLObjectType_fields_field_args: GraphileBuild.Hook< - GrafastFieldConfigArgumentMap, + GrafastFieldConfigArgumentMap, GraphileBuild.ContextObjectFieldsFieldArgs, TBuild >[]; GraphQLObjectType_fields_field_args_arg: GraphileBuild.Hook< - GrafastArgumentConfig, + GrafastArgumentConfig, GraphileBuild.ContextObjectFieldsFieldArgsArg, TBuild >[]; @@ -991,7 +969,7 @@ declare global { TBuild >[]; GraphQLInputObjectType_fields_field: GraphileBuild.Hook< - GrafastInputFieldConfig, + GrafastInputFieldConfig, GraphileBuild.ContextInputObjectFieldsField, TBuild >[]; @@ -1026,7 +1004,7 @@ declare global { * - 'GraphQLUnionType_types' to add additional types to this union */ GraphQLUnionType: GraphileBuild.Hook< - GraphileBuild.GrafastUnionTypeConfig, + GraphileBuild.GrafastUnionTypeConfig, GraphileBuild.ContextUnion, TBuild >[]; @@ -1047,7 +1025,7 @@ declare global { * - 'GraphQLInterfaceType_fields_field_args' to customize the arguments to a field */ GraphQLInterfaceType: GraphileBuild.Hook< - GraphileBuild.GrafastInterfaceTypeConfig, + GraphileBuild.GrafastInterfaceTypeConfig, GraphileBuild.ContextInterface, TBuild >[]; @@ -1100,15 +1078,15 @@ export type SpecForType = TType extends GraphQLSchema ? Partial : TType extends GraphQLObjectType - ? Partial> & { + ? Partial> & { name: string; } : TType extends GraphQLInterfaceType - ? Partial> & { + ? Partial> & { name: string; } : TType extends GraphQLUnionType - ? Partial> & { + ? Partial> & { name: string; } : TType extends GraphQLScalarType diff --git a/graphile-build/graphile-build/src/index.ts b/graphile-build/graphile-build/src/index.ts index 7db6479dbc..e2cc6247bd 100644 --- a/graphile-build/graphile-build/src/index.ts +++ b/graphile-build/graphile-build/src/index.ts @@ -992,7 +992,7 @@ declare global { */ GraphQLObjectType?: PluginHook< GraphileBuild.Hook< - GraphileBuild.GrafastObjectTypeConfig, + GraphileBuild.GrafastObjectTypeConfig, GraphileBuild.ContextObject, GraphileBuild.Build > @@ -1006,28 +1006,28 @@ declare global { >; GraphQLObjectType_fields?: PluginHook< GraphileBuild.Hook< - GraphileBuild.GrafastFieldConfigMap, + GraphileBuild.GrafastFieldConfigMap, GraphileBuild.ContextObjectFields, GraphileBuild.Build > >; GraphQLObjectType_fields_field?: PluginHook< GraphileBuild.Hook< - GrafastFieldConfig, + GrafastFieldConfig, GraphileBuild.ContextObjectFieldsField, GraphileBuild.Build > >; GraphQLObjectType_fields_field_args?: PluginHook< GraphileBuild.Hook< - GrafastFieldConfigArgumentMap, + GrafastFieldConfigArgumentMap, GraphileBuild.ContextObjectFieldsFieldArgs, GraphileBuild.Build > >; GraphQLObjectType_fields_field_args_arg?: PluginHook< GraphileBuild.Hook< - GrafastArgumentConfig, + GrafastArgumentConfig, GraphileBuild.ContextObjectFieldsFieldArgsArg, GraphileBuild.Build > @@ -1101,7 +1101,7 @@ declare global { */ GraphQLUnionType?: PluginHook< GraphileBuild.Hook< - GraphileBuild.GrafastUnionTypeConfig, + GraphileBuild.GrafastUnionTypeConfig, GraphileBuild.ContextUnion, GraphileBuild.Build > @@ -1127,7 +1127,7 @@ declare global { */ GraphQLInterfaceType?: PluginHook< GraphileBuild.Hook< - GraphileBuild.GrafastInterfaceTypeConfig, + GraphileBuild.GrafastInterfaceTypeConfig, GraphileBuild.ContextInterface, GraphileBuild.Build > diff --git a/graphile-build/graphile-build/src/newWithHooks/index.ts b/graphile-build/graphile-build/src/newWithHooks/index.ts index 527987a5de..d28ed87198 100644 --- a/graphile-build/graphile-build/src/newWithHooks/index.ts +++ b/graphile-build/graphile-build/src/newWithHooks/index.ts @@ -1,8 +1,8 @@ import type { BaseGraphQLArguments, - ExecutableStep, GrafastFieldConfig, OutputPlanForType, + Step, } from "grafast"; import { inputObjectFieldSpec, objectSpec } from "grafast"; import type { @@ -135,10 +135,8 @@ export function makeNewWithHooks({ builder }: MakeNewWithHooksOptions): { } case GraphQLObjectType: { - const rawObjectSpec = inSpec as GraphileBuild.GrafastObjectTypeConfig< - any, - any - >; + const rawObjectSpec = + inSpec as GraphileBuild.GrafastObjectTypeConfig; const scope = (inScope || Object.create(null)) as GraphileBuild.ScopeObject; @@ -187,45 +185,26 @@ export function makeNewWithHooks({ builder }: MakeNewWithHooksOptions): { ); }, fields: () => { - const processedFields: GrafastFieldConfig< - any, - any, - any, - any, - any - >[] = []; + const processedFields: GrafastFieldConfig[] = + []; const fieldWithHooks: GraphileBuild.FieldWithHooksFunction = < TType extends GraphQLOutputType, - TContext extends Grafast.Context, - TParentStep extends ExecutableStep, + TParentStep extends Step, TFieldStep extends OutputPlanForType, TArgs extends BaseGraphQLArguments, >( fieldScope: GraphileBuild.ScopeObjectFieldsField, fieldSpec: - | GrafastFieldConfig< - TType, - TContext, - TParentStep, - TFieldStep, - TArgs - > + | GrafastFieldConfig | (( context: GraphileBuild.ContextObjectFieldsField, ) => GrafastFieldConfig< TType, - TContext, TParentStep, TFieldStep, TArgs >), - ): GrafastFieldConfig< - TType, - TContext, - TParentStep, - TFieldStep, - TArgs - > => { + ): GrafastFieldConfig => { if (!isString(fieldScope.fieldName)) { throw new Error( "It looks like you forgot to pass the fieldName to `fieldWithHooks`, we're sorry this is currently necessary.", @@ -272,9 +251,7 @@ export function makeNewWithHooks({ builder }: MakeNewWithHooksOptions): { resolvedFieldSpec.args = resolvedFieldSpec.args ?? {}; const argsContext: GraphileBuild.ContextObjectFieldsFieldArgs = - { - ...fieldContext, - }; + { ...fieldContext }; const finalFieldSpec = { ...resolvedFieldSpec, args: builder.applyHooks( @@ -368,7 +345,7 @@ export function makeNewWithHooks({ builder }: MakeNewWithHooksOptions): { case GraphQLInterfaceType: { const rawInterfaceSpec = - inSpec as GraphileBuild.GrafastInterfaceTypeConfig; + inSpec as GraphileBuild.GrafastInterfaceTypeConfig; const scope = (inScope || Object.create(null)) as GraphileBuild.ScopeInterface; @@ -555,10 +532,8 @@ export function makeNewWithHooks({ builder }: MakeNewWithHooksOptions): { } case GraphQLUnionType: { - const rawUnionSpec = inSpec as GraphileBuild.GrafastUnionTypeConfig< - any, - any - >; + const rawUnionSpec = + inSpec as GraphileBuild.GrafastUnionTypeConfig; const scope = (inScope || Object.create(null)) as GraphileBuild.ScopeUnion; diff --git a/graphile-build/graphile-build/src/plugins/NodeAccessorPlugin.ts b/graphile-build/graphile-build/src/plugins/NodeAccessorPlugin.ts index 8e0b389fbd..8378a0fb60 100644 --- a/graphile-build/graphile-build/src/plugins/NodeAccessorPlugin.ts +++ b/graphile-build/graphile-build/src/plugins/NodeAccessorPlugin.ts @@ -1,6 +1,6 @@ import "graphile-config"; -import type { ExecutableStep, FieldArgs, NodeIdHandler } from "grafast"; +import type { ExecutableStep, FieldArgs, Maybe, NodeIdHandler } from "grafast"; import { lambda } from "grafast"; import { EXPORTABLE } from "../utils.js"; @@ -15,11 +15,11 @@ declare global { namespace GraphileBuild { type NodeFetcher = { - ($nodeId: ExecutableStep): ExecutableStep; + ($nodeId: ExecutableStep>): ExecutableStep; deprecationReason?: string; }; interface Build { - specForHandler?(handler: NodeIdHandler): (nodeId: string) => any; + specForHandler?(handler: NodeIdHandler): (nodeId: Maybe) => any; nodeFetcherByTypeName?(typeName: string): NodeFetcher | null; } interface Inflection { @@ -50,7 +50,7 @@ export const NodeAccessorPlugin: GraphileConfig.Plugin = { build(build) { const nodeFetcherByTypeNameCache = new Map< string, - ($id: ExecutableStep) => ExecutableStep + ($id: ExecutableStep>) => ExecutableStep >(); return build.extend( build, @@ -58,9 +58,10 @@ export const NodeAccessorPlugin: GraphileConfig.Plugin = { specForHandler: EXPORTABLE( () => function (handler) { - function spec(nodeId: string) { + function spec(nodeId: Maybe) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -88,7 +89,7 @@ export const NodeAccessorPlugin: GraphileConfig.Plugin = { const fetcher = EXPORTABLE( (handler, lambda, specForHandler) => { const fn: GraphileBuild.NodeFetcher = ( - $nodeId: ExecutableStep, + $nodeId: ExecutableStep>, ) => { const $decoded = lambda($nodeId, specForHandler(handler)); return handler.get(handler.getSpec($decoded)); @@ -150,7 +151,9 @@ export const NodeAccessorPlugin: GraphileConfig.Plugin = { plan: EXPORTABLE( (fetcher, nodeIdFieldName) => function plan(_$parent: ExecutableStep, args: FieldArgs) { - const $nodeId = args.get(nodeIdFieldName); + const $nodeId = args.getRaw( + nodeIdFieldName, + ) as ExecutableStep; return fetcher($nodeId); }, [fetcher, nodeIdFieldName], diff --git a/graphile-build/graphile-build/src/plugins/NodePlugin.ts b/graphile-build/graphile-build/src/plugins/NodePlugin.ts index 5664203896..d8bca842a8 100644 --- a/graphile-build/graphile-build/src/plugins/NodePlugin.ts +++ b/graphile-build/graphile-build/src/plugins/NodePlugin.ts @@ -1,6 +1,11 @@ import "graphile-config"; -import type { NodeIdCodec, NodeIdHandler } from "grafast"; +import type { + ExecutableStep, + Maybe, + NodeIdCodec, + NodeIdHandler, +} from "grafast"; import { node } from "grafast"; import type { GraphQLObjectType } from "grafast/graphql"; @@ -217,7 +222,9 @@ export const NodePlugin: GraphileConfig.Plugin = { function plan(_$root, args) { return node( nodeIdHandlerByTypeName!, - args.get(nodeIdFieldName), + args.getRaw(nodeIdFieldName) as ExecutableStep< + Maybe + >, ); }, [node, nodeIdFieldName, nodeIdHandlerByTypeName], diff --git a/graphile-build/graphile-build/src/plugins/RegisterQueryNodePlugin.ts b/graphile-build/graphile-build/src/plugins/RegisterQueryNodePlugin.ts index 1a6aeaf46c..0f2ef97660 100644 --- a/graphile-build/graphile-build/src/plugins/RegisterQueryNodePlugin.ts +++ b/graphile-build/graphile-build/src/plugins/RegisterQueryNodePlugin.ts @@ -32,6 +32,9 @@ export const RegisterQueryNodePlugin: GraphileConfig.Plugin = { }, [], ), + getIdentifiers(_value) { + return []; + }, getSpec: () => "irrelevant", get: EXPORTABLE( (rootValue) => () => { diff --git a/graphile-build/graphile-build/src/plugins/TrimEmptyDescriptionsPlugin.ts b/graphile-build/graphile-build/src/plugins/TrimEmptyDescriptionsPlugin.ts index 63aa790e1e..b07130d45e 100644 --- a/graphile-build/graphile-build/src/plugins/TrimEmptyDescriptionsPlugin.ts +++ b/graphile-build/graphile-build/src/plugins/TrimEmptyDescriptionsPlugin.ts @@ -22,10 +22,10 @@ declare global { */ function rmEmptyTypeDescription< T extends - | GraphileBuild.GrafastObjectTypeConfig + | GraphileBuild.GrafastObjectTypeConfig | GraphileBuild.GrafastInputObjectTypeConfig - | GraphileBuild.GrafastUnionTypeConfig - | GraphileBuild.GrafastInterfaceTypeConfig + | GraphileBuild.GrafastUnionTypeConfig + | GraphileBuild.GrafastInterfaceTypeConfig | GraphQLEnumTypeConfig, >(type: T): T { if (type.description?.trim() === "") { @@ -53,9 +53,9 @@ function rmEmptyFieldDescription< * for cleaning up the schema as printing a schema with a lot of empty string * descriptions is u.g.l.y. */ -function rmEmptyArgDescriptions< - T extends GrafastArgumentConfig, ->(arg: T): T { +function rmEmptyArgDescriptions>( + arg: T, +): T { if (arg.description === "") { arg.description = null; } diff --git a/graphile-build/graphile-utils/__tests__/makeAddPgTableConditionPlugin.test.ts b/graphile-build/graphile-utils/__tests__/makeAddPgTableConditionPlugin.test.ts index 1a343fbd15..2e79c4ef81 100644 --- a/graphile-build/graphile-utils/__tests__/makeAddPgTableConditionPlugin.test.ts +++ b/graphile-build/graphile-utils/__tests__/makeAddPgTableConditionPlugin.test.ts @@ -70,10 +70,9 @@ const PetsCountPlugin = makeAddPgTableConditionPlugin( }), (value, helpers) => { expect(helpers.build.graphql).toBeTruthy(); - const { sqlTableAlias, sql, $condition } = helpers; - const val = value.get(); - return sql.fragment`(select count(*) from graphile_utils.pets where pets.user_id = ${sqlTableAlias}.id) >= ${$condition.placeholder( - val, + const { sqlTableAlias, sql } = helpers; + return sql.fragment`(select count(*) from graphile_utils.pets where pets.user_id = ${sqlTableAlias}.id) >= ${helpers.sqlValueWithCodec( + value, TYPES.int, )}`; }, diff --git a/graphile-build/graphile-utils/__tests__/makeWrapPlansPlugin.test.ts b/graphile-build/graphile-utils/__tests__/makeWrapPlansPlugin.test.ts index 6a9c14db8c..b0088d085e 100644 --- a/graphile-build/graphile-utils/__tests__/makeWrapPlansPlugin.test.ts +++ b/graphile-build/graphile-utils/__tests__/makeWrapPlansPlugin.test.ts @@ -71,7 +71,7 @@ const makeEchoSpy = (fn?: FieldPlanResolver) => jest.fn( fn || (($parent, args) => { - return args.get("message"); + return args.getRaw("message"); }), ); @@ -329,7 +329,7 @@ describe("wrapping plans matching a filter", () => { argValues, ]); } - sideEffect(args.get(), beforeFn); + sideEffect(args.getRaw(), beforeFn); const $result = plan(); @@ -343,8 +343,8 @@ describe("wrapping plans matching a filter", () => { const add: FieldPlanResolver = (_, args) => lambda( [ - args.get("arg1") as ExecutableStep, - args.get("arg2") as ExecutableStep, + args.getRaw("arg1") as ExecutableStep, + args.getRaw("arg2") as ExecutableStep, ], ([arg1, arg2]) => arg1 + arg2, ); @@ -378,6 +378,10 @@ describe("wrapping plans matching a filter", () => { `, contextValue: { test: true }, })) as ExecutionResult; + if (result.errors) { + const firstError = result.errors[0]; + console.error(firstError.originalError ?? firstError); + } expect(result.errors).toBeFalsy(); expect(result.data.a).toBe(8); expect(result.data.b).toBe("1ARG2"); diff --git a/graphile-build/graphile-utils/src/makeAddPgTableConditionPlugin.ts b/graphile-build/graphile-utils/src/makeAddPgTableConditionPlugin.ts index 02b5ee4c7d..fb3e95ee2e 100644 --- a/graphile-build/graphile-utils/src/makeAddPgTableConditionPlugin.ts +++ b/graphile-build/graphile-utils/src/makeAddPgTableConditionPlugin.ts @@ -1,5 +1,6 @@ -import type { PgConditionStep, PgSelectStep } from "@dataplan/pg"; -import type { FieldArgs, GrafastInputFieldConfig } from "grafast"; +import type { PgCondition } from "@dataplan/pg"; +import { sqlValueWithCodec } from "@dataplan/pg"; +import type { GrafastInputFieldConfig } from "grafast"; import type { SQL, sql } from "pg-sql2"; import { EXPORTABLE } from "./exportable.js"; @@ -9,14 +10,16 @@ export function makeAddPgTableConditionPlugin( conditionFieldName: string, conditionFieldSpecGenerator: ( build: GraphileBuild.Build, - ) => GrafastInputFieldConfig, + ) => GrafastInputFieldConfig, conditionGenerator?: ( - value: FieldArgs, + value: unknown, helpers: { - $condition: PgConditionStep; sql: typeof sql; sqlTableAlias: SQL; + sqlValueWithCodec: typeof sqlValueWithCodec; build: GraphileBuild.Build; + /** @internal We might expose this in future if needed */ + condition: PgCondition; }, ) => SQL | null | undefined, ): GraphileConfig.Plugin { @@ -66,12 +69,12 @@ export function makeAddPgTableConditionPlugin( } const conditionFieldSpec = conditionFieldSpecGenerator(build); if ( - conditionFieldSpec.applyPlan || - conditionFieldSpec.extensions?.grafast?.applyPlan + conditionFieldSpec.apply || + conditionFieldSpec.extensions?.grafast?.apply ) { if (conditionGenerator) { throw new Error( - `${displayName}: You supplied 'applyPlan' for your field spec, so you cannot also supply a 'conditionGenerator'`, + `${displayName}: You supplied 'apply' for your field spec, so you cannot also supply a 'conditionGenerator'`, ); } // Done. @@ -82,23 +85,21 @@ export function makeAddPgTableConditionPlugin( ); } // build applyPlan - conditionFieldSpec.applyPlan = EXPORTABLE( - (build, conditionGenerator, sql) => - function applyPlan( - $condition: PgConditionStep, - val, - ) { + conditionFieldSpec.apply = EXPORTABLE( + (build, conditionGenerator, sql, sqlValueWithCodec) => + function apply(condition: PgCondition, val) { const expression = conditionGenerator!(val, { - $condition, sql, - sqlTableAlias: $condition.alias, + sqlTableAlias: condition.alias, + sqlValueWithCodec, build, + condition, }); if (expression) { - $condition.where(expression); + condition.where(expression); } }, - [build, conditionGenerator, sql], + [build, conditionGenerator, sql, sqlValueWithCodec], ); } const meta = build._pluginMeta[displayName]!; diff --git a/graphile-build/graphile-utils/src/makeAddPgTableOrderByPlugin.ts b/graphile-build/graphile-utils/src/makeAddPgTableOrderByPlugin.ts index a04797a709..918e2a3952 100644 --- a/graphile-build/graphile-utils/src/makeAddPgTableOrderByPlugin.ts +++ b/graphile-build/graphile-utils/src/makeAddPgTableOrderByPlugin.ts @@ -1,20 +1,19 @@ -import type { PgOrderSpec, PgSelectStep } from "@dataplan/pg"; +import type { + PgOrderSpec, + PgSelectQueryBuilder, + PgUnionAllQueryBuilder, +} from "@dataplan/pg"; +import type { GraphQLEnumValueConfig } from "graphql"; import { EXPORTABLE } from "./exportable.js"; type OrderBySpecIdentity = | string // Attribute name | Omit // Expression - | (($select: PgSelectStep) => Omit); // Callback, allows for joins/etc + | ((queryBuilder: PgSelectQueryBuilder) => Omit); // Callback, allows for joins/etc export interface MakeAddPgTableOrderByPluginOrders { - [orderByEnumValue: string]: { - extensions: { - grafast: { - applyPlan($select: PgSelectStep): void; - }; - }; - }; + [orderByEnumValue: string]: GraphQLEnumValueConfig; } const counterByName = new Map(); @@ -133,22 +132,22 @@ export function orderByAscDesc( ? "FIRST" : "LAST"; - type Plan = ($select: PgSelectStep) => void; - let spec: PgOrderSpec; - const ascendingPlan: Plan = + const ascendingCb = typeof attributeOrSqlFragment === "string" ? EXPORTABLE( (ascendingNulls, attributeOrSqlFragment, nullable, unique) => - function applyPlan($select) { - $select.orderBy({ + function apply( + queryBuilder: PgSelectQueryBuilder | PgUnionAllQueryBuilder, + ) { + queryBuilder.orderBy({ nulls: ascendingNulls, attribute: attributeOrSqlFragment, direction: "ASC", nullable, }); if (unique) { - $select.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } }, [ascendingNulls, attributeOrSqlFragment, nullable, unique], @@ -156,15 +155,15 @@ export function orderByAscDesc( : typeof attributeOrSqlFragment === "function" ? EXPORTABLE( (ascendingNulls, attributeOrSqlFragment, nullable, unique) => - function applyPlan($select) { - $select.orderBy({ + function apply(queryBuilder: PgSelectQueryBuilder) { + queryBuilder.orderBy({ nulls: ascendingNulls, - ...attributeOrSqlFragment($select), + ...attributeOrSqlFragment(queryBuilder), direction: "ASC", nullable, } as PgOrderSpec); if (unique) { - $select.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } }, [ascendingNulls, attributeOrSqlFragment, nullable, unique], @@ -177,27 +176,29 @@ export function orderByAscDesc( } as PgOrderSpec), EXPORTABLE( (spec, unique) => - function applyPlan($select) { - $select.orderBy(spec); + function apply(queryBuilder: PgSelectQueryBuilder) { + queryBuilder.orderBy(spec); if (unique) { - $select.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } }, [spec, unique], )); - const descendingPlan: Plan = + const descendingCb = typeof attributeOrSqlFragment === "string" ? EXPORTABLE( (attributeOrSqlFragment, descendingNulls, nullable, unique) => - function applyPlan($select) { - $select.orderBy({ + function apply( + queryBuilder: PgSelectQueryBuilder | PgUnionAllQueryBuilder, + ) { + queryBuilder.orderBy({ nulls: descendingNulls, attribute: attributeOrSqlFragment, direction: "DESC", nullable, }); if (unique) { - $select.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } }, [attributeOrSqlFragment, descendingNulls, nullable, unique], @@ -205,15 +206,15 @@ export function orderByAscDesc( : typeof attributeOrSqlFragment === "function" ? EXPORTABLE( (attributeOrSqlFragment, descendingNulls, nullable, unique) => - function applyPlan($select) { - $select.orderBy({ + function apply(queryBuilder: PgSelectQueryBuilder) { + queryBuilder.orderBy({ nulls: descendingNulls, - ...attributeOrSqlFragment($select), + ...attributeOrSqlFragment(queryBuilder), direction: "DESC", nullable, } as PgOrderSpec); if (unique) { - $select.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } }, [attributeOrSqlFragment, descendingNulls, nullable, unique], @@ -226,10 +227,10 @@ export function orderByAscDesc( } as PgOrderSpec), EXPORTABLE( (spec, unique) => - function applyPlan($select) { - $select.orderBy(spec); + function apply(queryBuilder: PgSelectQueryBuilder) { + queryBuilder.orderBy(spec); if (unique) { - $select.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } }, [spec, unique], @@ -239,18 +240,17 @@ export function orderByAscDesc( [`${baseName}_ASC`]: { extensions: { grafast: { - applyPlan: ascendingPlan, + apply: ascendingCb, }, }, }, [`${baseName}_DESC`]: { extensions: { grafast: { - applyPlan: descendingPlan, + apply: descendingCb, }, }, }, }; - return orders; } diff --git a/graphile-build/graphile-utils/src/makeChangeNullabilityPlugin.ts b/graphile-build/graphile-utils/src/makeChangeNullabilityPlugin.ts index 63330d9af6..0c86350fd5 100644 --- a/graphile-build/graphile-utils/src/makeChangeNullabilityPlugin.ts +++ b/graphile-build/graphile-utils/src/makeChangeNullabilityPlugin.ts @@ -128,7 +128,7 @@ export function makeChangeNullabilityPlugin( let pendingMatches = new Set(); function objectOrInterfaceFieldCallback< - T extends GrafastFieldConfig, + T extends GrafastFieldConfig, >( field: T, build: GraphileBuild.Build, @@ -161,9 +161,7 @@ export function makeChangeNullabilityPlugin( return field; } - function objectOrInterfaceArgsArgCallback< - T extends GrafastArgumentConfig, - >( + function objectOrInterfaceArgsArgCallback( arg: T, build: GraphileBuild.Build, context: @@ -190,7 +188,7 @@ export function makeChangeNullabilityPlugin( spec, build.graphql, `${Self.name}.${fieldName}(${argName}:)`, - ); + ) as GraphQLInputType; } return arg; } diff --git a/graphile-build/graphile-utils/src/makeWrapPlansPlugin.ts b/graphile-build/graphile-utils/src/makeWrapPlansPlugin.ts index a78f0e39b7..1b9d936aa4 100644 --- a/graphile-build/graphile-utils/src/makeWrapPlansPlugin.ts +++ b/graphile-build/graphile-utils/src/makeWrapPlansPlugin.ts @@ -39,7 +39,7 @@ export type PlanWrapperRulesGenerator = ( export type PlanWrapperFilter = ( context: GraphileBuild.ContextObjectFieldsField, build: GraphileBuild.Build, - field: GrafastFieldConfig, + field: GrafastFieldConfig, ) => T | null; export type PlanWrapperFilterRule = ( diff --git a/postgraphile/pgl/graphile.config.ts b/postgraphile/pgl/graphile.config.ts index e30c025932..b63231b98c 100644 --- a/postgraphile/pgl/graphile.config.ts +++ b/postgraphile/pgl/graphile.config.ts @@ -127,7 +127,7 @@ const preset: GraphileConfig.Preset = { Subscription: { // Test via SQL: `NOTIFY test, '{"a":40}';` sub(_$root, args) { - const $topic = args.get("topic"); + const $topic = args.getRaw("topic"); const $pgSubscriber = context().get("pgSubscriber"); return listen($pgSubscriber, $topic, ($payload) => object({ sub: jsonParse($payload).get("a" as never) }), diff --git a/postgraphile/postgraphile/__tests__/helpers.ts b/postgraphile/postgraphile/__tests__/helpers.ts index a5a7d14af9..b0077d844b 100644 --- a/postgraphile/postgraphile/__tests__/helpers.ts +++ b/postgraphile/postgraphile/__tests__/helpers.ts @@ -61,8 +61,19 @@ import { makeV4Preset } from "../src/presets/v4.js"; * We go beyond what Jest snapshots allow; so we have to manage it ourselves. * If UPDATE_SNAPSHOTS is set then we'll write updated snapshots, otherwise * we'll do the default behaviour of comparing to existing snapshots. + * + * Set UPDATE_SNAPSHOTS=1 to update all snapshots. Alternatively, set it to a + * comma separated list of snapshot types to update. */ -export const UPDATE_SNAPSHOTS = process.env.UPDATE_SNAPSHOTS === "1"; +const { UPDATE_SNAPSHOTS } = process.env; +const updateSnapshotExtensions = UPDATE_SNAPSHOTS?.split(","); +function shouldUpdateSnapshot(filePath: string) { + // Never update snapshots in CI + if (process.env.CI) return false; + if (UPDATE_SNAPSHOTS === "1") return true; + if (!updateSnapshotExtensions) return false; + return updateSnapshotExtensions.some((e) => filePath.endsWith(e)); +} const EXPORT_SCHEMA_MODE = process.env.EXPORT_SCHEMA as | undefined @@ -548,7 +559,7 @@ export async function runTestQuery( JSON.stringify(result), ); if (errors) { - console.error(errors[0].originalError || errors[0]); + console.error(result.errors?.[0].originalError || errors[0]); } if (options.callback) { throw new Error( @@ -582,7 +593,7 @@ export async function snapshot(actual: string, filePath: string) { } catch (e) { /* noop */ } - if (expected == null || UPDATE_SNAPSHOTS) { + if (expected == null || shouldUpdateSnapshot(filePath)) { if (expected !== actual) { console.warn(`Updated snapshot in '${filePath}'`); await fsp.writeFile(filePath, actual); diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/authenticateFail.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/authenticateFail.mermaid index 09d10986cf..4edcd0db16 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/authenticateFail.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/authenticateFail.mermaid @@ -13,12 +13,15 @@ graph TD Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 + ApplyInput16{{"ApplyInput[16∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput16 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan PgSelect8[["PgSelect[8∈1] ➊
ᐸauthenticate_fail(mutation)ᐳ"]]:::sideeffectplan - Object11 --> PgSelect8 + Object11 & ApplyInput16 --> PgSelect8 First12{{"First[12∈1] ➊"}}:::plan PgSelectRows13[["PgSelectRows[13∈1] ➊"]]:::plan PgSelectRows13 --> First12 @@ -27,21 +30,17 @@ graph TD First12 --> PgSelectSingle14 Object15{{"Object[15∈1] ➊
ᐸ{result}ᐳ"}}:::plan PgSelectSingle14 --> Object15 - PgClassExpression16{{"PgClassExpression[16∈2] ➊
ᐸ__authenticate_fail__ᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression16 + PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__authenticate_fail__ᐳ"}}:::plan + PgSelectSingle14 --> PgClassExpression17 %% define steps subgraph "Buckets for mutations/v4/authenticateFail" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access9,Access10,Object11 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 11

1: PgSelect[8]
2: PgSelectRows[13]
ᐳ: 12, 14, 15"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Access9,Access10,Object11,ApplyInput16 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 11, 16

1: PgSelect[8]
2: PgSelectRows[13]
ᐳ: 12, 14, 15, 17"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect8,First12,PgSelectRows13,PgSelectSingle14,Object15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 15

ROOT Object{1}ᐸ{result}ᐳ[15]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression16 bucket2 + class Bucket1,PgSelect8,First12,PgSelectRows13,PgSelectSingle14,Object15,PgClassExpression17 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/b.list_bde_mutation.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/b.list_bde_mutation.mermaid index 899118b53f..cff31f0bb7 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/b.list_bde_mutation.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/b.list_bde_mutation.mermaid @@ -9,148 +9,165 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant8{{"Constant[8∈0] ➊
ᐸ[]ᐳ"}}:::plan + Constant78{{"Constant[78∈0] ➊
ᐸ'bar'ᐳ"}}:::plan + Constant79{{"Constant[79∈0] ➊
ᐸ'q0'ᐳ"}}:::plan + Constant8 & Constant78 & Constant79 --> __InputObject6 + __InputObject24{{"__InputObject[24∈0] ➊"}}:::plan + Constant26{{"Constant[26∈0] ➊
ᐸ[ 'option-1' ]ᐳ"}}:::plan + Constant80{{"Constant[80∈0] ➊
ᐸ''ᐳ"}}:::plan + Constant81{{"Constant[81∈0] ➊
ᐸ'q1'ᐳ"}}:::plan + Constant26 & Constant80 & Constant81 --> __InputObject24 + __InputObject42{{"__InputObject[42∈0] ➊"}}:::plan + Constant44{{"Constant[44∈0] ➊
ᐸ[]ᐳ"}}:::plan + Constant82{{"Constant[82∈0] ➊
ᐸ'foo'ᐳ"}}:::plan + Constant83{{"Constant[83∈0] ➊
ᐸ'q2'ᐳ"}}:::plan + Constant44 & Constant82 & Constant83 --> __InputObject42 + __InputObject60{{"__InputObject[60∈0] ➊"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ[ 'option-2' ]ᐳ"}}:::plan + Constant84{{"Constant[84∈0] ➊
ᐸ'q3'ᐳ"}}:::plan + Constant62 & Constant80 & Constant84 --> __InputObject60 + PgFromExpression16{{"PgFromExpression[16∈0] ➊"}}:::plan + BakedInput11{{"BakedInput[11∈0] ➊"}}:::plan + BakedInput11 & Constant78 & Constant79 --> PgFromExpression16 Object15{{"Object[15∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access14{{"Access[14∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access13 & Access14 --> Object15 + Constant8 --> BakedInput11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access13 __Value2 --> Access14 + ApplyInput22{{"ApplyInput[22∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput22 + BakedInput29{{"BakedInput[29∈0] ➊"}}:::plan + Constant26 --> BakedInput29 + ApplyInput40{{"ApplyInput[40∈0] ➊"}}:::plan + __InputObject24 --> ApplyInput40 + BakedInput47{{"BakedInput[47∈0] ➊"}}:::plan + Constant44 --> BakedInput47 + ApplyInput58{{"ApplyInput[58∈0] ➊"}}:::plan + __InputObject42 --> ApplyInput58 + BakedInput65{{"BakedInput[65∈0] ➊"}}:::plan + Constant62 --> BakedInput65 + ApplyInput76{{"ApplyInput[76∈0] ➊"}}:::plan + __InputObject60 --> ApplyInput76 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant72{{"Constant[72∈0] ➊
ᐸ'bar'ᐳ"}}:::plan - Constant73{{"Constant[73∈0] ➊
ᐸ'q0'ᐳ"}}:::plan - Constant74{{"Constant[74∈0] ➊
ᐸ[]ᐳ"}}:::plan - Constant76{{"Constant[76∈0] ➊
ᐸ''ᐳ"}}:::plan - Constant77{{"Constant[77∈0] ➊
ᐸ'q1'ᐳ"}}:::plan - Constant78{{"Constant[78∈0] ➊
ᐸ'foo'ᐳ"}}:::plan - Constant79{{"Constant[79∈0] ➊
ᐸ'q2'ᐳ"}}:::plan - Constant82{{"Constant[82∈0] ➊
ᐸ'q3'ᐳ"}}:::plan - Constant83{{"Constant[83∈0] ➊
ᐸ[ 'option-1' ]ᐳ"}}:::plan - Constant84{{"Constant[84∈0] ➊
ᐸ[ 'option-2' ]ᐳ"}}:::plan PgSelect12[["PgSelect[12∈1] ➊
ᐸlist_bde_mutation(mutation)ᐳ"]]:::sideeffectplan - Object15 & Constant74 & Constant72 & Constant73 --> PgSelect12 - First16{{"First[16∈1] ➊"}}:::plan - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelectRows17 --> First16 - PgSelect12 --> PgSelectRows17 - PgSelectSingle18{{"PgSelectSingle[18∈1] ➊
ᐸlist_bde_mutationᐳ"}}:::plan - First16 --> PgSelectSingle18 - PgClassExpression19{{"PgClassExpression[19∈1] ➊
ᐸ__list_bde_mutation__.vᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression19 - Object20{{"Object[20∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression19 --> Object20 - __Item21[/"__Item[21∈3]
ᐸ19ᐳ"\]:::itemplan - PgClassExpression19 ==> __Item21 - PgSelect29[["PgSelect[29∈4] ➊
ᐸlist_bde_mutation(mutation)ᐳ"]]:::sideeffectplan - Object32{{"Object[32∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object32 & Constant83 & Constant76 & Constant77 --> PgSelect29 - Access30{{"Access[30∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access31{{"Access[31∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access30 & Access31 --> Object32 - __Value2 --> Access30 + Object15 & PgFromExpression16 & ApplyInput22 --> PgSelect12 + First17{{"First[17∈1] ➊"}}:::plan + PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan + PgSelectRows18 --> First17 + PgSelect12 --> PgSelectRows18 + PgSelectSingle19{{"PgSelectSingle[19∈1] ➊
ᐸlist_bde_mutationᐳ"}}:::plan + First17 --> PgSelectSingle19 + PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__list_bde_mutation__.vᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression20 + Object21{{"Object[21∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression20 --> Object21 + __Item23[/"__Item[23∈2]
ᐸ20ᐳ"\]:::itemplan + PgClassExpression20 ==> __Item23 + PgSelect30[["PgSelect[30∈3] ➊
ᐸlist_bde_mutation(mutation)ᐳ"]]:::sideeffectplan + Object33{{"Object[33∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression34{{"PgFromExpression[34∈3] ➊"}}:::plan + Object33 & PgFromExpression34 & ApplyInput40 --> PgSelect30 + BakedInput29 & Constant80 & Constant81 --> PgFromExpression34 + Access31{{"Access[31∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access32{{"Access[32∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access31 & Access32 --> Object33 __Value2 --> Access31 - First33{{"First[33∈4] ➊"}}:::plan - PgSelectRows34[["PgSelectRows[34∈4] ➊"]]:::plan - PgSelectRows34 --> First33 - PgSelect29 --> PgSelectRows34 - PgSelectSingle35{{"PgSelectSingle[35∈4] ➊
ᐸlist_bde_mutationᐳ"}}:::plan - First33 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈4] ➊
ᐸ__list_bde_mutation__.vᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression36 - Object37{{"Object[37∈4] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression36 --> Object37 - __Item38[/"__Item[38∈6]
ᐸ36ᐳ"\]:::itemplan - PgClassExpression36 ==> __Item38 - PgSelect45[["PgSelect[45∈7] ➊
ᐸlist_bde_mutation(mutation)ᐳ"]]:::sideeffectplan - Object48{{"Object[48∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object48 & Constant74 & Constant78 & Constant79 --> PgSelect45 - Access46{{"Access[46∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access47{{"Access[47∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access46 & Access47 --> Object48 - __Value2 --> Access46 - __Value2 --> Access47 - First49{{"First[49∈7] ➊"}}:::plan - PgSelectRows50[["PgSelectRows[50∈7] ➊"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈7] ➊
ᐸlist_bde_mutationᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈7] ➊
ᐸ__list_bde_mutation__.vᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - Object53{{"Object[53∈7] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression52 --> Object53 - __Item54[/"__Item[54∈9]
ᐸ52ᐳ"\]:::itemplan - PgClassExpression52 ==> __Item54 - PgSelect62[["PgSelect[62∈10] ➊
ᐸlist_bde_mutation(mutation)ᐳ"]]:::sideeffectplan - Object65{{"Object[65∈10] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object65 & Constant84 & Constant76 & Constant82 --> PgSelect62 - Access63{{"Access[63∈10] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access64{{"Access[64∈10] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access63 & Access64 --> Object65 - __Value2 --> Access63 - __Value2 --> Access64 - First66{{"First[66∈10] ➊"}}:::plan - PgSelectRows67[["PgSelectRows[67∈10] ➊"]]:::plan - PgSelectRows67 --> First66 - PgSelect62 --> PgSelectRows67 - PgSelectSingle68{{"PgSelectSingle[68∈10] ➊
ᐸlist_bde_mutationᐳ"}}:::plan - First66 --> PgSelectSingle68 - PgClassExpression69{{"PgClassExpression[69∈10] ➊
ᐸ__list_bde_mutation__.vᐳ"}}:::plan - PgSelectSingle68 --> PgClassExpression69 - Object70{{"Object[70∈10] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression69 --> Object70 - __Item71[/"__Item[71∈12]
ᐸ69ᐳ"\]:::itemplan - PgClassExpression69 ==> __Item71 + __Value2 --> Access32 + First35{{"First[35∈3] ➊"}}:::plan + PgSelectRows36[["PgSelectRows[36∈3] ➊"]]:::plan + PgSelectRows36 --> First35 + PgSelect30 --> PgSelectRows36 + PgSelectSingle37{{"PgSelectSingle[37∈3] ➊
ᐸlist_bde_mutationᐳ"}}:::plan + First35 --> PgSelectSingle37 + PgClassExpression38{{"PgClassExpression[38∈3] ➊
ᐸ__list_bde_mutation__.vᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression38 + Object39{{"Object[39∈3] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression38 --> Object39 + __Item41[/"__Item[41∈4]
ᐸ38ᐳ"\]:::itemplan + PgClassExpression38 ==> __Item41 + PgSelect48[["PgSelect[48∈5] ➊
ᐸlist_bde_mutation(mutation)ᐳ"]]:::sideeffectplan + Object51{{"Object[51∈5] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression52{{"PgFromExpression[52∈5] ➊"}}:::plan + Object51 & PgFromExpression52 & ApplyInput58 --> PgSelect48 + BakedInput47 & Constant82 & Constant83 --> PgFromExpression52 + Access49{{"Access[49∈5] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access50{{"Access[50∈5] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access49 & Access50 --> Object51 + __Value2 --> Access49 + __Value2 --> Access50 + First53{{"First[53∈5] ➊"}}:::plan + PgSelectRows54[["PgSelectRows[54∈5] ➊"]]:::plan + PgSelectRows54 --> First53 + PgSelect48 --> PgSelectRows54 + PgSelectSingle55{{"PgSelectSingle[55∈5] ➊
ᐸlist_bde_mutationᐳ"}}:::plan + First53 --> PgSelectSingle55 + PgClassExpression56{{"PgClassExpression[56∈5] ➊
ᐸ__list_bde_mutation__.vᐳ"}}:::plan + PgSelectSingle55 --> PgClassExpression56 + Object57{{"Object[57∈5] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression56 --> Object57 + __Item59[/"__Item[59∈6]
ᐸ56ᐳ"\]:::itemplan + PgClassExpression56 ==> __Item59 + PgSelect66[["PgSelect[66∈7] ➊
ᐸlist_bde_mutation(mutation)ᐳ"]]:::sideeffectplan + Object69{{"Object[69∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression70{{"PgFromExpression[70∈7] ➊"}}:::plan + Object69 & PgFromExpression70 & ApplyInput76 --> PgSelect66 + BakedInput65 & Constant80 & Constant84 --> PgFromExpression70 + Access67{{"Access[67∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access68{{"Access[68∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access67 & Access68 --> Object69 + __Value2 --> Access67 + __Value2 --> Access68 + First71{{"First[71∈7] ➊"}}:::plan + PgSelectRows72[["PgSelectRows[72∈7] ➊"]]:::plan + PgSelectRows72 --> First71 + PgSelect66 --> PgSelectRows72 + PgSelectSingle73{{"PgSelectSingle[73∈7] ➊
ᐸlist_bde_mutationᐳ"}}:::plan + First71 --> PgSelectSingle73 + PgClassExpression74{{"PgClassExpression[74∈7] ➊
ᐸ__list_bde_mutation__.vᐳ"}}:::plan + PgSelectSingle73 --> PgClassExpression74 + Object75{{"Object[75∈7] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression74 --> Object75 + __Item77[/"__Item[77∈8]
ᐸ74ᐳ"\]:::itemplan + PgClassExpression74 ==> __Item77 %% define steps subgraph "Buckets for mutations/v4/b.list_bde_mutation" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access13,Access14,Object15,Constant72,Constant73,Constant74,Constant76,Constant77,Constant78,Constant79,Constant82,Constant83,Constant84 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 15, 74, 72, 73

1: PgSelect[12]
2: PgSelectRows[17]
ᐳ: 16, 18, 19, 20"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Constant8,BakedInput11,Access13,Access14,Object15,PgFromExpression16,ApplyInput22,__InputObject24,Constant26,BakedInput29,ApplyInput40,__InputObject42,Constant44,BakedInput47,ApplyInput58,__InputObject60,Constant62,BakedInput65,ApplyInput76,Constant78,Constant79,Constant80,Constant81,Constant82,Constant83,Constant84 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 15, 16, 22

1: PgSelect[12]
2: PgSelectRows[18]
ᐳ: 17, 19, 20, 21"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect12,First16,PgSelectRows17,PgSelectSingle18,PgClassExpression19,Object20 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 20, 19

ROOT Object{1}ᐸ{result}ᐳ[20]"):::bucket + class Bucket1,PgSelect12,First17,PgSelectRows18,PgSelectSingle19,PgClassExpression20,Object21 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ20ᐳ[23]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ19ᐳ[21]"):::bucket + class Bucket2,__Item23 bucket2 + Bucket3("Bucket 3 (mutationField)
Deps: 40, 2, 29, 80, 81

1: Access[31]
2: Access[32]
3: Object[33]
4: PgFromExpression[34]
5: PgSelect[30]
6: PgSelectRows[36]
ᐳ: 35, 37, 38, 39"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item21 bucket3 - Bucket4("Bucket 4 (mutationField)
Deps: 83, 76, 77, 2

1: Access[30]
2: Access[31]
3: Object[32]
4: PgSelect[29]
5: PgSelectRows[34]
ᐳ: 33, 35, 36, 37"):::bucket + class Bucket3,PgSelect30,Access31,Access32,Object33,PgFromExpression34,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression38,Object39 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ38ᐳ[41]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect29,Access30,Access31,Object32,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,Object37 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 37, 36

ROOT Object{4}ᐸ{result}ᐳ[37]"):::bucket + class Bucket4,__Item41 bucket4 + Bucket5("Bucket 5 (mutationField)
Deps: 58, 2, 47, 82, 83

1: Access[49]
2: Access[50]
3: Object[51]
4: PgFromExpression[52]
5: PgSelect[48]
6: PgSelectRows[54]
ᐳ: 53, 55, 56, 57"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5 bucket5 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ36ᐳ[38]"):::bucket + class Bucket5,PgSelect48,Access49,Access50,Object51,PgFromExpression52,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression56,Object57 bucket5 + Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ56ᐳ[59]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,__Item38 bucket6 - Bucket7("Bucket 7 (mutationField)
Deps: 74, 78, 79, 2

1: Access[46]
2: Access[47]
3: Object[48]
4: PgSelect[45]
5: PgSelectRows[50]
ᐳ: 49, 51, 52, 53"):::bucket + class Bucket6,__Item59 bucket6 + Bucket7("Bucket 7 (mutationField)
Deps: 76, 2, 65, 80, 84

1: Access[67]
2: Access[68]
3: Object[69]
4: PgFromExpression[70]
5: PgSelect[66]
6: PgSelectRows[72]
ᐳ: 71, 73, 74, 75"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgSelect45,Access46,Access47,Object48,First49,PgSelectRows50,PgSelectSingle51,PgClassExpression52,Object53 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 53, 52

ROOT Object{7}ᐸ{result}ᐳ[53]"):::bucket + class Bucket7,PgSelect66,Access67,Access68,Object69,PgFromExpression70,First71,PgSelectRows72,PgSelectSingle73,PgClassExpression74,Object75 bucket7 + Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ74ᐳ[77]"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8 bucket8 - Bucket9("Bucket 9 (listItem)

ROOT __Item{9}ᐸ52ᐳ[54]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,__Item54 bucket9 - Bucket10("Bucket 10 (mutationField)
Deps: 84, 76, 82, 2

1: Access[63]
2: Access[64]
3: Object[65]
4: PgSelect[62]
5: PgSelectRows[67]
ᐳ: 66, 68, 69, 70"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgSelect62,Access63,Access64,Object65,First66,PgSelectRows67,PgSelectSingle68,PgClassExpression69,Object70 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 70, 69

ROOT Object{10}ᐸ{result}ᐳ[70]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11 bucket11 - Bucket12("Bucket 12 (listItem)

ROOT __Item{12}ᐸ69ᐳ[71]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,__Item71 bucket12 - Bucket0 --> Bucket1 & Bucket4 & Bucket7 & Bucket10 + class Bucket8,__Item77 bucket8 + Bucket0 --> Bucket1 & Bucket3 & Bucket5 & Bucket7 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 + Bucket3 --> Bucket4 Bucket5 --> Bucket6 Bucket7 --> Bucket8 - Bucket8 --> Bucket9 - Bucket10 --> Bucket11 - Bucket11 --> Bucket12 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/d.createPerson.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/d.createPerson.mermaid index 63b5adb5db..dcdbc37117 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/d.createPerson.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/d.createPerson.mermaid @@ -9,6 +9,14 @@ graph TD %% plan dependencies + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant29{{"Constant[29∈0] ➊
ᐸ'Doe'ᐳ"}}:::plan + Constant30{{"Constant[30∈0] ➊
ᐸ'create2'ᐳ"}}:::plan + Constant31{{"Constant[31∈0] ➊
ᐸ'create1'ᐳ"}}:::plan + Constant32{{"Constant[32∈0] ➊
ᐸ'create3'ᐳ"}}:::plan + Constant29 & Constant30 & Constant31 & Constant32 --> __InputObject8 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 Object16{{"Object[16∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access14{{"Access[14∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access15{{"Access[15∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan @@ -16,50 +24,42 @@ graph TD __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access14 __Value2 --> Access15 + ApplyInput17{{"ApplyInput[17∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput17 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant27{{"Constant[27∈0] ➊
ᐸ'Doe'ᐳ"}}:::plan - Constant28{{"Constant[28∈0] ➊
ᐸ'create2'ᐳ"}}:::plan - Constant29{{"Constant[29∈0] ➊
ᐸ'create1'ᐳ"}}:::plan - Constant30{{"Constant[30∈0] ➊
ᐸ'create3'ᐳ"}}:::plan - PgInsertSingle13[["PgInsertSingle[13∈1] ➊
ᐸperson(last_name,col_no_update,col_no_order,col_no_filter)ᐳ"]]:::sideeffectplan - Object16 & Constant27 & Constant28 & Constant29 & Constant30 --> PgInsertSingle13 - Object17{{"Object[17∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle13 --> Object17 - PgClassExpression18{{"PgClassExpression[18∈3] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3] ➊
ᐸ__person__.”first_name”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3] ➊
ᐸ__person__.”last_name”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3] ➊
ᐸ__person__...no_create”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3] ➊
ᐸ__person__...no_update”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈3] ➊
ᐸ__person__..._no_order”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3] ➊
ᐸ__person__...no_filter”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3] ➊
ᐸ__person__...te_update”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3] ➊
ᐸ__person__...er_filter”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression26 + PgInsertSingle13[["PgInsertSingle[13∈1] ➊
ᐸperson()ᐳ"]]:::sideeffectplan + Object16 & ApplyInput17 --> PgInsertSingle13 + Object18{{"Object[18∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle13 --> Object18 + PgClassExpression19{{"PgClassExpression[19∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Access20{{"Access[20∈1] ➊
ᐸ13.tᐳ"}}:::plan + Access20 --> PgClassExpression19 + PgInsertSingle13 --> Access20 + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__person__.”first_name”ᐳ"}}:::plan + Access20 --> PgClassExpression21 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__person__.”last_name”ᐳ"}}:::plan + Access20 --> PgClassExpression22 + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__person__...no_create”ᐳ"}}:::plan + Access20 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__person__...no_update”ᐳ"}}:::plan + Access20 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__person__..._no_order”ᐳ"}}:::plan + Access20 --> PgClassExpression25 + PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__person__...no_filter”ᐳ"}}:::plan + Access20 --> PgClassExpression26 + PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__person__...te_update”ᐳ"}}:::plan + Access20 --> PgClassExpression27 + PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__person__...er_filter”ᐳ"}}:::plan + Access20 --> PgClassExpression28 %% define steps subgraph "Buckets for mutations/v4/d.createPerson" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access14,Access15,Object16,Constant27,Constant28,Constant29,Constant30 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 16, 27, 28, 29, 30

1: PgInsertSingle[13]
2:
ᐳ: Object[17]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,Access14,Access15,Object16,ApplyInput17,Constant29,Constant30,Constant31,Constant32 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 16, 17

1: PgInsertSingle[13]
2:
ᐳ: 18, 20, 19, 21, 22, 23, 24, 25, 26, 27, 28"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle13,Object17 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 13

ROOT Object{1}ᐸ{result}ᐳ[17]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 13

ROOT PgInsertSingle{1}ᐸperson(last_name,col_no_update,col_no_order,col_no_filter)ᐳ[13]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26 bucket3 + class Bucket1,PgInsertSingle13,Object18,PgClassExpression19,Access20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgClassExpression28 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/d.deletePerson.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/d.deletePerson.mermaid index d20d7d85c0..ab27303f74 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/d.deletePerson.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/d.deletePerson.mermaid @@ -9,6 +9,9 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant25{{"Constant[25∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant25 --> __InputObject6 Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan @@ -16,47 +19,42 @@ graph TD __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 + ApplyInput13{{"ApplyInput[13∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant23{{"Constant[23∈0] ➊
ᐸ1ᐳ"}}:::plan PgDeleteSingle9[["PgDeleteSingle[9∈1] ➊
ᐸperson(id)ᐳ"]]:::sideeffectplan - Object12 & Constant23 --> PgDeleteSingle9 - Object13{{"Object[13∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgDeleteSingle9 --> Object13 - PgClassExpression14{{"PgClassExpression[14∈3] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgDeleteSingle9 --> PgClassExpression14 - PgClassExpression15{{"PgClassExpression[15∈3] ➊
ᐸ__person__.”first_name”ᐳ"}}:::plan - PgDeleteSingle9 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈3] ➊
ᐸ__person__.”last_name”ᐳ"}}:::plan - PgDeleteSingle9 --> PgClassExpression16 - PgClassExpression17{{"PgClassExpression[17∈3] ➊
ᐸ__person__...no_create”ᐳ"}}:::plan - PgDeleteSingle9 --> PgClassExpression17 - PgClassExpression18{{"PgClassExpression[18∈3] ➊
ᐸ__person__...no_update”ᐳ"}}:::plan - PgDeleteSingle9 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3] ➊
ᐸ__person__..._no_order”ᐳ"}}:::plan - PgDeleteSingle9 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3] ➊
ᐸ__person__...no_filter”ᐳ"}}:::plan - PgDeleteSingle9 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3] ➊
ᐸ__person__...te_update”ᐳ"}}:::plan - PgDeleteSingle9 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3] ➊
ᐸ__person__...er_filter”ᐳ"}}:::plan - PgDeleteSingle9 --> PgClassExpression22 + Object12 & Constant25 & ApplyInput13 --> PgDeleteSingle9 + Object14{{"Object[14∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle9 --> Object14 + PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Access16{{"Access[16∈1] ➊
ᐸ9.tᐳ"}}:::plan + Access16 --> PgClassExpression15 + PgDeleteSingle9 --> Access16 + PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__person__.”first_name”ᐳ"}}:::plan + Access16 --> PgClassExpression17 + PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__person__.”last_name”ᐳ"}}:::plan + Access16 --> PgClassExpression18 + PgClassExpression19{{"PgClassExpression[19∈1] ➊
ᐸ__person__...no_create”ᐳ"}}:::plan + Access16 --> PgClassExpression19 + PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__person__...no_update”ᐳ"}}:::plan + Access16 --> PgClassExpression20 + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__person__..._no_order”ᐳ"}}:::plan + Access16 --> PgClassExpression21 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__person__...no_filter”ᐳ"}}:::plan + Access16 --> PgClassExpression22 + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__person__...te_update”ᐳ"}}:::plan + Access16 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__person__...er_filter”ᐳ"}}:::plan + Access16 --> PgClassExpression24 %% define steps subgraph "Buckets for mutations/v4/d.deletePerson" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Constant23 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 12, 23

1: PgDeleteSingle[9]
2:
ᐳ: Object[13]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Access10,Access11,Object12,ApplyInput13,Constant25 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 12, 25, 13

1: PgDeleteSingle[9]
2:
ᐳ: 14, 16, 15, 17, 18, 19, 20, 21, 22, 23, 24"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgDeleteSingle9,Object13 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 13, 9

ROOT Object{1}ᐸ{result}ᐳ[13]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 9

ROOT PgDeleteSingle{1}ᐸperson(id)ᐳ[9]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22 bucket3 + class Bucket1,PgDeleteSingle9,Object14,PgClassExpression15,Access16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/d.updatePerson.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/d.updatePerson.mermaid index 82276b957a..cb57fa6aa7 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/d.updatePerson.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/d.updatePerson.mermaid @@ -9,6 +9,15 @@ graph TD %% plan dependencies + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + Constant31{{"Constant[31∈0] ➊
ᐸ'Doe'ᐳ"}}:::plan + Constant32{{"Constant[32∈0] ➊
ᐸ'update2'ᐳ"}}:::plan + Constant33{{"Constant[33∈0] ➊
ᐸ'update1'ᐳ"}}:::plan + Constant34{{"Constant[34∈0] ➊
ᐸ'update3'ᐳ"}}:::plan + Constant31 & Constant32 & Constant33 & Constant34 --> __InputObject9 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant30{{"Constant[30∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant30 & __InputObject9 --> __InputObject6 Object17{{"Object[17∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access15{{"Access[15∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access16{{"Access[16∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan @@ -16,51 +25,42 @@ graph TD __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access15 __Value2 --> Access16 + ApplyInput18{{"ApplyInput[18∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput18 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant28{{"Constant[28∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant29{{"Constant[29∈0] ➊
ᐸ'Doe'ᐳ"}}:::plan - Constant30{{"Constant[30∈0] ➊
ᐸ'update2'ᐳ"}}:::plan - Constant31{{"Constant[31∈0] ➊
ᐸ'update1'ᐳ"}}:::plan - Constant32{{"Constant[32∈0] ➊
ᐸ'update3'ᐳ"}}:::plan - PgUpdateSingle14[["PgUpdateSingle[14∈1] ➊
ᐸperson(id;last_name,col_no_create,col_no_order,col_no_filter)ᐳ"]]:::sideeffectplan - Object17 & Constant28 & Constant29 & Constant30 & Constant31 & Constant32 --> PgUpdateSingle14 - Object18{{"Object[18∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle14 --> Object18 - PgClassExpression19{{"PgClassExpression[19∈3] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgUpdateSingle14 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3] ➊
ᐸ__person__.”first_name”ᐳ"}}:::plan - PgUpdateSingle14 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3] ➊
ᐸ__person__.”last_name”ᐳ"}}:::plan - PgUpdateSingle14 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3] ➊
ᐸ__person__...no_create”ᐳ"}}:::plan - PgUpdateSingle14 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈3] ➊
ᐸ__person__...no_update”ᐳ"}}:::plan - PgUpdateSingle14 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3] ➊
ᐸ__person__..._no_order”ᐳ"}}:::plan - PgUpdateSingle14 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3] ➊
ᐸ__person__...no_filter”ᐳ"}}:::plan - PgUpdateSingle14 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3] ➊
ᐸ__person__...te_update”ᐳ"}}:::plan - PgUpdateSingle14 --> PgClassExpression26 - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__person__...er_filter”ᐳ"}}:::plan - PgUpdateSingle14 --> PgClassExpression27 + PgUpdateSingle14[["PgUpdateSingle[14∈1] ➊
ᐸperson(id;)ᐳ"]]:::sideeffectplan + Object17 & Constant30 & ApplyInput18 --> PgUpdateSingle14 + Object19{{"Object[19∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle14 --> Object19 + PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Access21{{"Access[21∈1] ➊
ᐸ14.tᐳ"}}:::plan + Access21 --> PgClassExpression20 + PgUpdateSingle14 --> Access21 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__person__.”first_name”ᐳ"}}:::plan + Access21 --> PgClassExpression22 + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__person__.”last_name”ᐳ"}}:::plan + Access21 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__person__...no_create”ᐳ"}}:::plan + Access21 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__person__...no_update”ᐳ"}}:::plan + Access21 --> PgClassExpression25 + PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__person__..._no_order”ᐳ"}}:::plan + Access21 --> PgClassExpression26 + PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__person__...no_filter”ᐳ"}}:::plan + Access21 --> PgClassExpression27 + PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__person__...te_update”ᐳ"}}:::plan + Access21 --> PgClassExpression28 + PgClassExpression29{{"PgClassExpression[29∈1] ➊
ᐸ__person__...er_filter”ᐳ"}}:::plan + Access21 --> PgClassExpression29 %% define steps subgraph "Buckets for mutations/v4/d.updatePerson" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access15,Access16,Object17,Constant28,Constant29,Constant30,Constant31,Constant32 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 17, 28, 29, 30, 31, 32

1: PgUpdateSingle[14]
2:
ᐳ: Object[18]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject9,Access15,Access16,Object17,ApplyInput18,Constant30,Constant31,Constant32,Constant33,Constant34 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 17, 30, 18

1: PgUpdateSingle[14]
2:
ᐳ: 19, 21, 20, 22, 23, 24, 25, 26, 27, 28, 29"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUpdateSingle14,Object18 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 18, 14

ROOT Object{1}ᐸ{result}ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14

ROOT PgUpdateSingle{1}ᐸperson(id;last_name,col_no_create,col_no_order,col_no_filter)ᐳ[14]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27 bucket3 + class Bucket1,PgUpdateSingle14,Object19,PgClassExpression20,Access21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgClassExpression28,PgClassExpression29 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/d.updatePersonByNodeId.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/d.updatePersonByNodeId.mermaid index 2cef182a47..36258b0b39 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/d.updatePersonByNodeId.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/d.updatePersonByNodeId.mermaid @@ -9,68 +9,68 @@ graph TD %% plan dependencies + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + Constant38{{"Constant[38∈0] ➊
ᐸ'Doe'ᐳ"}}:::plan + Constant39{{"Constant[39∈0] ➊
ᐸ'update2'ᐳ"}}:::plan + Constant40{{"Constant[40∈0] ➊
ᐸ'update1'ᐳ"}}:::plan + Constant41{{"Constant[41∈0] ➊
ᐸ'update3'ᐳ"}}:::plan + Constant38 & Constant39 & Constant40 & Constant41 --> __InputObject9 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant37{{"Constant[37∈0] ➊
ᐸ'WyJwZW9wbGUiLDFd'ᐳ"}}:::plan + Constant37 & __InputObject9 --> __InputObject6 Object20{{"Object[20∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access18{{"Access[18∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access19{{"Access[19∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access18 & Access19 --> Object20 Lambda14{{"Lambda[14∈0] ➊
ᐸdecode_Person_base64JSONᐳ"}}:::plan - Constant35{{"Constant[35∈0] ➊
ᐸ'WyJwZW9wbGUiLDFd'ᐳ"}}:::plan - Constant35 --> Lambda14 + Constant37 --> Lambda14 Access15{{"Access[15∈0] ➊
ᐸ14.1ᐳ"}}:::plan Lambda14 --> Access15 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access18 __Value2 --> Access19 + ApplyInput21{{"ApplyInput[21∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput21 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant23{{"Constant[23∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant36{{"Constant[36∈0] ➊
ᐸ'Doe'ᐳ"}}:::plan - Constant37{{"Constant[37∈0] ➊
ᐸ'update2'ᐳ"}}:::plan - Constant38{{"Constant[38∈0] ➊
ᐸ'update1'ᐳ"}}:::plan - Constant39{{"Constant[39∈0] ➊
ᐸ'update3'ᐳ"}}:::plan - PgUpdateSingle17[["PgUpdateSingle[17∈1] ➊
ᐸperson(id;last_name,col_no_create,col_no_order,col_no_filter)ᐳ"]]:::sideeffectplan + Constant25{{"Constant[25∈0] ➊
ᐸ'people'ᐳ"}}:::plan + PgUpdateSingle17[["PgUpdateSingle[17∈1] ➊
ᐸperson(id;)ᐳ"]]:::sideeffectplan Object20 -->|rejectNull| PgUpdateSingle17 - Access15 & Constant36 & Constant37 & Constant38 & Constant39 --> PgUpdateSingle17 - Object21{{"Object[21∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle17 --> Object21 - List25{{"List[25∈3] ➊
ᐸ23,22ᐳ"}}:::plan - PgClassExpression22{{"PgClassExpression[22∈3] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant23 & PgClassExpression22 --> List25 - PgUpdateSingle17 --> PgClassExpression22 - Lambda26{{"Lambda[26∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List25 --> Lambda26 - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__person__.”first_name”ᐳ"}}:::plan - PgUpdateSingle17 --> PgClassExpression27 - PgClassExpression28{{"PgClassExpression[28∈3] ➊
ᐸ__person__.”last_name”ᐳ"}}:::plan - PgUpdateSingle17 --> PgClassExpression28 - PgClassExpression29{{"PgClassExpression[29∈3] ➊
ᐸ__person__...no_create”ᐳ"}}:::plan - PgUpdateSingle17 --> PgClassExpression29 - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__person__...no_update”ᐳ"}}:::plan - PgUpdateSingle17 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈3] ➊
ᐸ__person__..._no_order”ᐳ"}}:::plan - PgUpdateSingle17 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__person__...no_filter”ᐳ"}}:::plan - PgUpdateSingle17 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__person__...te_update”ᐳ"}}:::plan - PgUpdateSingle17 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈3] ➊
ᐸ__person__...er_filter”ᐳ"}}:::plan - PgUpdateSingle17 --> PgClassExpression34 + Access15 & ApplyInput21 --> PgUpdateSingle17 + List27{{"List[27∈1] ➊
ᐸ25,23ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant25 & PgClassExpression23 --> List27 + Object22{{"Object[22∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle17 --> Object22 + Access24{{"Access[24∈1] ➊
ᐸ17.tᐳ"}}:::plan + Access24 --> PgClassExpression23 + PgUpdateSingle17 --> Access24 + Lambda28{{"Lambda[28∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List27 --> Lambda28 + PgClassExpression29{{"PgClassExpression[29∈1] ➊
ᐸ__person__.”first_name”ᐳ"}}:::plan + Access24 --> PgClassExpression29 + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__person__.”last_name”ᐳ"}}:::plan + Access24 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸ__person__...no_create”ᐳ"}}:::plan + Access24 --> PgClassExpression31 + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__person__...no_update”ᐳ"}}:::plan + Access24 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__person__..._no_order”ᐳ"}}:::plan + Access24 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1] ➊
ᐸ__person__...no_filter”ᐳ"}}:::plan + Access24 --> PgClassExpression34 + PgClassExpression35{{"PgClassExpression[35∈1] ➊
ᐸ__person__...te_update”ᐳ"}}:::plan + Access24 --> PgClassExpression35 + PgClassExpression36{{"PgClassExpression[36∈1] ➊
ᐸ__person__...er_filter”ᐳ"}}:::plan + Access24 --> PgClassExpression36 %% define steps subgraph "Buckets for mutations/v4/d.updatePersonByNodeId" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Lambda14,Access15,Access18,Access19,Object20,Constant23,Constant35,Constant36,Constant37,Constant38,Constant39 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 20, 15, 36, 37, 38, 39, 23

1: PgUpdateSingle[17]
2:
ᐳ: Object[21]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject9,Lambda14,Access15,Access18,Access19,Object20,ApplyInput21,Constant25,Constant37,Constant38,Constant39,Constant40,Constant41 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 20, 15, 21, 25

1: PgUpdateSingle[17]
2:
ᐳ: 22, 24, 23, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUpdateSingle17,Object21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 21, 17, 23

ROOT Object{1}ᐸ{result}ᐳ[21]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 23

ROOT PgUpdateSingle{1}ᐸperson(id;last_name,col_no_create,col_no_order,col_no_filter)ᐳ[17]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression22,List25,Lambda26,PgClassExpression27,PgClassExpression28,PgClassExpression29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34 bucket3 + class Bucket1,PgUpdateSingle17,Object22,PgClassExpression23,Access24,List27,Lambda28,PgClassExpression29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/enum_tables.mutations.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/enum_tables.mutations.mermaid index 8dd1c9709e..a507c5dfd2 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/enum_tables.mutations.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/enum_tables.mutations.mermaid @@ -9,98 +9,106 @@ graph TD %% plan dependencies + __InputObject38{{"__InputObject[38∈0] ➊"}}:::plan + Constant57{{"Constant[57∈0] ➊
ᐸ'a1'ᐳ"}}:::plan + Constant58{{"Constant[58∈0] ➊
ᐸ'b2'ᐳ"}}:::plan + Constant59{{"Constant[59∈0] ➊
ᐸ'c4'ᐳ"}}:::plan + Constant60{{"Constant[60∈0] ➊
ᐸ'Qux'ᐳ"}}:::plan + Constant57 & Constant58 & Constant59 & Constant60 --> __InputObject38 + __InputObject21{{"__InputObject[21∈0] ➊"}}:::plan + Constant55{{"Constant[55∈0] ➊
ᐸ'C'ᐳ"}}:::plan + Constant56{{"Constant[56∈0] ➊
ᐸ'One does like to see the letter C'ᐳ"}}:::plan + Constant56 --> __InputObject21 + Constant55 -- 2 --> __InputObject21 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant55 --> __InputObject6 Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 + __InputObject19{{"__InputObject[19∈0] ➊"}}:::plan + __InputObject21 --> __InputObject19 + __InputObject36{{"__InputObject[36∈0] ➊"}}:::plan + __InputObject38 --> __InputObject36 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 + ApplyInput13{{"ApplyInput[13∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput13 + ApplyInput29{{"ApplyInput[29∈0] ➊"}}:::plan + __InputObject19 --> ApplyInput29 + BakedInput43{{"BakedInput[43∈0] ➊"}}:::plan + __InputObject38 --> BakedInput43 + ApplyInput54{{"ApplyInput[54∈0] ➊"}}:::plan + __InputObject36 --> ApplyInput54 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant49{{"Constant[49∈0] ➊
ᐸ'C'ᐳ"}}:::plan - Constant50{{"Constant[50∈0] ➊
ᐸ'One does like to see the letter C'ᐳ"}}:::plan - Constant55{{"Constant[55∈0] ➊
ᐸ§{ enum_1: 'a1', enum_2: 'b2', enum_3: 'c4', simple_enum: 'Qᐳ"}}:::plan PgDeleteSingle9[["PgDeleteSingle[9∈1] ➊
ᐸletter_descriptions(letter)ᐳ"]]:::sideeffectplan - Object12 & Constant49 --> PgDeleteSingle9 - Object13{{"Object[13∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgDeleteSingle9 --> Object13 - PgClassExpression14{{"PgClassExpression[14∈3] ➊
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan - PgDeleteSingle9 --> PgClassExpression14 - PgClassExpression15{{"PgClassExpression[15∈3] ➊
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan - PgDeleteSingle9 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈3] ➊
ᐸ__letter_d..._via_view”ᐳ"}}:::plan - PgDeleteSingle9 --> PgClassExpression16 - PgInsertSingle23[["PgInsertSingle[23∈4] ➊
ᐸletter_descriptions(letter,letter_via_view,description)ᐳ"]]:::sideeffectplan - Object26{{"Object[26∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object26 & Constant49 & Constant49 & Constant50 --> PgInsertSingle23 - Access24{{"Access[24∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access25{{"Access[25∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access24 & Access25 --> Object26 - __Value2 --> Access24 - __Value2 --> Access25 - Object27{{"Object[27∈4] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle23 --> Object27 - PgClassExpression28{{"PgClassExpression[28∈6] ➊
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan - PgInsertSingle23 --> PgClassExpression28 - PgClassExpression29{{"PgClassExpression[29∈6] ➊
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan - PgInsertSingle23 --> PgClassExpression29 - PgClassExpression30{{"PgClassExpression[30∈6] ➊
ᐸ__letter_d..._via_view”ᐳ"}}:::plan - PgInsertSingle23 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈6] ➊
ᐸ__letter_d...scription”ᐳ"}}:::plan - PgInsertSingle23 --> PgClassExpression31 - PgSelect40[["PgSelect[40∈7] ➊
ᐸreferencing_table_mutation(mutation)ᐳ"]]:::sideeffectplan - Object43{{"Object[43∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object43 & Constant55 --> PgSelect40 - Access41{{"Access[41∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access42{{"Access[42∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access41 & Access42 --> Object43 - __Value2 --> Access41 - __Value2 --> Access42 - First44{{"First[44∈7] ➊"}}:::plan - PgSelectRows45[["PgSelectRows[45∈7] ➊"]]:::plan - PgSelectRows45 --> First44 - PgSelect40 --> PgSelectRows45 - PgSelectSingle46{{"PgSelectSingle[46∈7] ➊
ᐸreferencing_table_mutationᐳ"}}:::plan - First44 --> PgSelectSingle46 - PgClassExpression47{{"PgClassExpression[47∈7] ➊
ᐸ__referenc...tation__.vᐳ"}}:::plan - PgSelectSingle46 --> PgClassExpression47 - Object48{{"Object[48∈7] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression47 --> Object48 + Object12 & Constant55 & ApplyInput13 --> PgDeleteSingle9 + Object14{{"Object[14∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle9 --> Object14 + PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan + Access16{{"Access[16∈1] ➊
ᐸ9.tᐳ"}}:::plan + Access16 --> PgClassExpression15 + PgDeleteSingle9 --> Access16 + PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan + Access16 --> PgClassExpression17 + PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__letter_d..._via_view”ᐳ"}}:::plan + Access16 --> PgClassExpression18 + PgInsertSingle25[["PgInsertSingle[25∈2] ➊
ᐸletter_descriptions()ᐳ"]]:::sideeffectplan + Object28{{"Object[28∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object28 & ApplyInput29 --> PgInsertSingle25 + Access26{{"Access[26∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access27{{"Access[27∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access26 & Access27 --> Object28 + __Value2 --> Access26 + __Value2 --> Access27 + Object30{{"Object[30∈2] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle25 --> Object30 + PgClassExpression31{{"PgClassExpression[31∈2] ➊
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan + Access32{{"Access[32∈2] ➊
ᐸ25.tᐳ"}}:::plan + Access32 --> PgClassExpression31 + PgInsertSingle25 --> Access32 + PgClassExpression33{{"PgClassExpression[33∈2] ➊
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan + Access32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈2] ➊
ᐸ__letter_d..._via_view”ᐳ"}}:::plan + Access32 --> PgClassExpression34 + PgClassExpression35{{"PgClassExpression[35∈2] ➊
ᐸ__letter_d...scription”ᐳ"}}:::plan + Access32 --> PgClassExpression35 + PgSelect44[["PgSelect[44∈3] ➊
ᐸreferencing_table_mutation(mutation)ᐳ"]]:::sideeffectplan + Object47{{"Object[47∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression48{{"PgFromExpression[48∈3] ➊"}}:::plan + Object47 & PgFromExpression48 & ApplyInput54 --> PgSelect44 + Access45{{"Access[45∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access46{{"Access[46∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access45 & Access46 --> Object47 + __Value2 --> Access45 + __Value2 --> Access46 + BakedInput43 --> PgFromExpression48 + First49{{"First[49∈3] ➊"}}:::plan + PgSelectRows50[["PgSelectRows[50∈3] ➊"]]:::plan + PgSelectRows50 --> First49 + PgSelect44 --> PgSelectRows50 + PgSelectSingle51{{"PgSelectSingle[51∈3] ➊
ᐸreferencing_table_mutationᐳ"}}:::plan + First49 --> PgSelectSingle51 + PgClassExpression52{{"PgClassExpression[52∈3] ➊
ᐸ__referenc...tation__.vᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression52 + Object53{{"Object[53∈3] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression52 --> Object53 %% define steps subgraph "Buckets for mutations/v4/enum_tables.mutations" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Constant49,Constant50,Constant55 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 12, 49

1: PgDeleteSingle[9]
2:
ᐳ: Object[13]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Access10,Access11,Object12,ApplyInput13,__InputObject19,__InputObject21,ApplyInput29,__InputObject36,__InputObject38,BakedInput43,ApplyInput54,Constant55,Constant56,Constant57,Constant58,Constant59,Constant60 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 12, 55, 13

1: PgDeleteSingle[9]
2:
ᐳ: 14, 16, 15, 17, 18"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgDeleteSingle9,Object13 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 13, 9

ROOT Object{1}ᐸ{result}ᐳ[13]"):::bucket + class Bucket1,PgDeleteSingle9,Object14,PgClassExpression15,Access16,PgClassExpression17,PgClassExpression18 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 29, 2

1: Access[26]
2: Access[27]
3: Object[28]
4: PgInsertSingle[25]
5:
ᐳ: 30, 32, 31, 33, 34, 35"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 9

ROOT PgDeleteSingle{1}ᐸletter_descriptions(letter)ᐳ[9]"):::bucket + class Bucket2,PgInsertSingle25,Access26,Access27,Object28,Object30,PgClassExpression31,Access32,PgClassExpression33,PgClassExpression34,PgClassExpression35 bucket2 + Bucket3("Bucket 3 (mutationField)
Deps: 54, 2, 43

1: Access[45]
2: Access[46]
3: Object[47]
4: PgFromExpression[48]
5: PgSelect[44]
6: PgSelectRows[50]
ᐳ: 49, 51, 52, 53"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression14,PgClassExpression15,PgClassExpression16 bucket3 - Bucket4("Bucket 4 (mutationField)
Deps: 49, 50, 2

1: Access[24]
2: Access[25]
3: Object[26]
4: PgInsertSingle[23]
5:
ᐳ: Object[27]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgInsertSingle23,Access24,Access25,Object26,Object27 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 27, 23

ROOT Object{4}ᐸ{result}ᐳ[27]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 23

ROOT PgInsertSingle{4}ᐸletter_descriptions(letter,letter_via_view,description)ᐳ[23]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression28,PgClassExpression29,PgClassExpression30,PgClassExpression31 bucket6 - Bucket7("Bucket 7 (mutationField)
Deps: 55, 2

1: Access[41]
2: Access[42]
3: Object[43]
4: PgSelect[40]
5: PgSelectRows[45]
ᐳ: 44, 46, 47, 48"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgSelect40,Access41,Access42,Object43,First44,PgSelectRows45,PgSelectSingle46,PgClassExpression47,Object48 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 48, 47

ROOT Object{7}ᐸ{result}ᐳ[48]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8 bucket8 - Bucket0 --> Bucket1 & Bucket4 & Bucket7 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 + class Bucket3,PgSelect44,Access45,Access46,Object47,PgFromExpression48,First49,PgSelectRows50,PgSelectSingle51,PgClassExpression52,Object53 bucket3 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/enum_tables.mutations2.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/enum_tables.mutations2.mermaid index 98e4cdb90a..f24da3bcb1 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/enum_tables.mutations2.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/enum_tables.mutations2.mermaid @@ -9,6 +9,12 @@ graph TD %% plan dependencies + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant22{{"Constant[22∈0] ➊
ᐸ'a3'ᐳ"}}:::plan + Constant23{{"Constant[23∈0] ➊
ᐸ'b4'ᐳ"}}:::plan + Constant22 & Constant23 --> __InputObject8 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan @@ -16,38 +22,32 @@ graph TD __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 + ApplyInput15{{"ApplyInput[15∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput15 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant20{{"Constant[20∈0] ➊
ᐸ'a3'ᐳ"}}:::plan - Constant21{{"Constant[21∈0] ➊
ᐸ'b4'ᐳ"}}:::plan - PgInsertSingle11[["PgInsertSingle[11∈1] ➊
ᐸreferencing_table(enum_1,enum_2)ᐳ"]]:::sideeffectplan - Object14 & Constant20 & Constant21 --> PgInsertSingle11 - Object15{{"Object[15∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle11 --> Object15 - PgClassExpression16{{"PgClassExpression[16∈3] ➊
ᐸ__referenc...ble__.”id”ᐳ"}}:::plan - PgInsertSingle11 --> PgClassExpression16 - PgClassExpression17{{"PgClassExpression[17∈3] ➊
ᐸ__referenc..._.”enum_1”ᐳ"}}:::plan - PgInsertSingle11 --> PgClassExpression17 - PgClassExpression18{{"PgClassExpression[18∈3] ➊
ᐸ__referenc..._.”enum_2”ᐳ"}}:::plan - PgInsertSingle11 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3] ➊
ᐸ__referenc..._.”enum_3”ᐳ"}}:::plan - PgInsertSingle11 --> PgClassExpression19 + PgInsertSingle11[["PgInsertSingle[11∈1] ➊
ᐸreferencing_table()ᐳ"]]:::sideeffectplan + Object14 & ApplyInput15 --> PgInsertSingle11 + Object16{{"Object[16∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle11 --> Object16 + PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__referenc...ble__.”id”ᐳ"}}:::plan + Access18{{"Access[18∈1] ➊
ᐸ11.tᐳ"}}:::plan + Access18 --> PgClassExpression17 + PgInsertSingle11 --> Access18 + PgClassExpression19{{"PgClassExpression[19∈1] ➊
ᐸ__referenc..._.”enum_1”ᐳ"}}:::plan + Access18 --> PgClassExpression19 + PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__referenc..._.”enum_2”ᐳ"}}:::plan + Access18 --> PgClassExpression20 + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__referenc..._.”enum_3”ᐳ"}}:::plan + Access18 --> PgClassExpression21 %% define steps subgraph "Buckets for mutations/v4/enum_tables.mutations2" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Constant20,Constant21 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 14, 20, 21

1: PgInsertSingle[11]
2:
ᐳ: Object[15]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,Access12,Access13,Object14,ApplyInput15,Constant22,Constant23 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 14, 15

1: PgInsertSingle[11]
2:
ᐳ: 16, 18, 17, 19, 20, 21"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle11,Object15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 11

ROOT Object{1}ᐸ{result}ᐳ[15]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 11

ROOT PgInsertSingle{1}ᐸreferencing_table(enum_1,enum_2)ᐳ[11]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19 bucket3 + class Bucket1,PgInsertSingle11,Object16,PgClassExpression17,Access18,PgClassExpression19,PgClassExpression20,PgClassExpression21 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/geometry.mutations.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/geometry.mutations.mermaid index c0ad23d102..5741a4e831 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/geometry.mutations.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/geometry.mutations.mermaid @@ -9,110 +9,178 @@ graph TD %% plan dependencies - Object85{{"Object[85∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access83{{"Access[83∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access84{{"Access[84∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access83 & Access84 --> Object85 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + __InputObject12{{"__InputObject[12∈0] ➊"}}:::plan + __InputObject19{{"__InputObject[19∈0] ➊"}}:::plan + __InputObject26{{"__InputObject[26∈0] ➊"}}:::plan + __InputObject33{{"__InputObject[33∈0] ➊"}}:::plan + __InputObject36{{"__InputObject[36∈0] ➊"}}:::plan + __InputObject39{{"__InputObject[39∈0] ➊"}}:::plan + __InputObject41{{"__InputObject[41∈0] ➊"}}:::plan + __InputObject9 & __InputObject12 & __InputObject19 & __InputObject26 & __InputObject33 & __InputObject36 & __InputObject39 & __InputObject41 --> __InputObject8 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 + Constant100{{"Constant[100∈0] ➊
ᐸ99ᐳ"}}:::plan + Constant101{{"Constant[101∈0] ➊
ᐸ1234ᐳ"}}:::plan + Constant100 & Constant101 --> __InputObject9 + __InputObject13{{"__InputObject[13∈0] ➊"}}:::plan + __InputObject16{{"__InputObject[16∈0] ➊"}}:::plan + __InputObject13 & __InputObject16 --> __InputObject12 + Constant102{{"Constant[102∈0] ➊
ᐸ25ᐳ"}}:::plan + Constant103{{"Constant[103∈0] ➊
ᐸ200ᐳ"}}:::plan + Constant102 & Constant103 --> __InputObject13 + Constant104{{"Constant[104∈0] ➊
ᐸ0ᐳ"}}:::plan + Constant105{{"Constant[105∈0] ➊
ᐸ100ᐳ"}}:::plan + Constant104 & Constant105 --> __InputObject16 + __InputObject20{{"__InputObject[20∈0] ➊"}}:::plan + __InputObject23{{"__InputObject[23∈0] ➊"}}:::plan + __InputObject20 & __InputObject23 --> __InputObject19 + Constant106{{"Constant[106∈0] ➊
ᐸ111ᐳ"}}:::plan + Constant100 & Constant106 --> __InputObject20 + Constant107{{"Constant[107∈0] ➊
ᐸ2935ᐳ"}}:::plan + Constant108{{"Constant[108∈0] ➊
ᐸ3548ᐳ"}}:::plan + Constant107 & Constant108 --> __InputObject23 + __InputObject27{{"__InputObject[27∈0] ➊"}}:::plan + __InputObject30{{"__InputObject[30∈0] ➊"}}:::plan + __InputObject27 & __InputObject30 --> __InputObject26 + Constant109{{"Constant[109∈0] ➊
ᐸ123ᐳ"}}:::plan + Constant110{{"Constant[110∈0] ➊
ᐸ52635ᐳ"}}:::plan + Constant109 & Constant110 --> __InputObject27 + Constant111{{"Constant[111∈0] ➊
ᐸ2342ᐳ"}}:::plan + Constant112{{"Constant[112∈0] ➊
ᐸ12445ᐳ"}}:::plan + Constant111 & Constant112 --> __InputObject30 + Constant34{{"Constant[34∈0] ➊
ᐸ[ §{ x: 0, y: 0 }, §{ x: 0, y: 10 }, §{ x: 10, y: 10 }, §{ xᐳ"}}:::plan + Constant113{{"Constant[113∈0] ➊
ᐸtrueᐳ"}}:::plan + Constant34 & Constant113 --> __InputObject33 + Constant37{{"Constant[37∈0] ➊
ᐸ[ §{ x: 0, y: 0 }, §{ x: 0, y: 10 }, §{ x: 10, y: 10 }, §{ xᐳ"}}:::plan + Constant114{{"Constant[114∈0] ➊
ᐸfalseᐳ"}}:::plan + Constant37 & Constant114 --> __InputObject36 + __InputObject42{{"__InputObject[42∈0] ➊"}}:::plan + Constant117{{"Constant[117∈0] ➊
ᐸ3ᐳ"}}:::plan + __InputObject42 & Constant117 --> __InputObject41 + Constant115{{"Constant[115∈0] ➊
ᐸ7ᐳ"}}:::plan + Constant116{{"Constant[116∈0] ➊
ᐸ11ᐳ"}}:::plan + Constant115 & Constant116 --> __InputObject42 + Object49{{"Object[49∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access47{{"Access[47∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access48{{"Access[48∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access47 & Access48 --> Object49 + Constant40{{"Constant[40∈0] ➊
ᐸ[ §{ x: 0, y: 0 }, §{ x: 0, y: 10 }, §{ x: 10, y: 10 }, §{ xᐳ"}}:::plan + Constant40 --> __InputObject39 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access83 - __Value2 --> Access84 + __Value2 --> Access47 + __Value2 --> Access48 + ApplyInput50{{"ApplyInput[50∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput50 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant183{{"Constant[183∈0] ➊
ᐸ§{ x: 99, y: 1234 }ᐳ"}}:::plan - Constant196{{"Constant[196∈0] ➊
ᐸ§{ a: §{ x: 25, y: 200 }, b: §{ x: 0, y: 100 } }ᐳ"}}:::plan - Constant197{{"Constant[197∈0] ➊
ᐸ§{ a: §{ x: 99, y: 111 }, b: §{ x: 2935, y: 3548 } }ᐳ"}}:::plan - Constant198{{"Constant[198∈0] ➊
ᐸ§{ a: §{ x: 123, y: 52635 }, b: §{ x: 2342, y: 12445 } }ᐳ"}}:::plan - Constant200{{"Constant[200∈0] ➊
ᐸ§{ center: §{ x: 7, y: 11 }, radius: 3 }ᐳ"}}:::plan - Constant201{{"Constant[201∈0] ➊
ᐸ§{ points: [ §{ x: 0, y: 0 }, §{ x: 0, y: 10 }, §{ x: 10, y:ᐳ"}}:::plan - Constant202{{"Constant[202∈0] ➊
ᐸ§{ points: [ §{ x: 0, y: 0 }, §{ x: 0, y: 10 }, §{ x: 10, y:ᐳ"}}:::plan - Constant203{{"Constant[203∈0] ➊
ᐸ§{ points: [ §{ x: 0, y: 0 }, §{ x: 0, y: 10 }, §{ x: 10, y:ᐳ"}}:::plan - PgInsertSingle82[["PgInsertSingle[82∈1] ➊
ᐸgeom(point,line,lseg,box,open_path,closed_path,polygon,circle)ᐳ"]]:::sideeffectplan - Object85 & Constant183 & Constant196 & Constant197 & Constant198 & Constant201 & Constant202 & Constant203 & Constant200 --> PgInsertSingle82 - Object86{{"Object[86∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle82 --> Object86 - PgClassExpression117{{"PgClassExpression[117∈3] ➊
ᐸ__geom__.”id”ᐳ"}}:::plan - PgInsertSingle82 --> PgClassExpression117 - PgClassExpression118{{"PgClassExpression[118∈3] ➊
ᐸ__geom__.”point”ᐳ"}}:::plan - PgInsertSingle82 --> PgClassExpression118 - PgClassExpression121{{"PgClassExpression[121∈3] ➊
ᐸ__geom__.”line”ᐳ"}}:::plan - PgInsertSingle82 --> PgClassExpression121 - PgClassExpression128{{"PgClassExpression[128∈3] ➊
ᐸ__geom__.”lseg”ᐳ"}}:::plan - PgInsertSingle82 --> PgClassExpression128 - PgClassExpression135{{"PgClassExpression[135∈3] ➊
ᐸ__geom__.”box”ᐳ"}}:::plan - PgInsertSingle82 --> PgClassExpression135 - PgClassExpression142{{"PgClassExpression[142∈3] ➊
ᐸ__geom__.”open_path”ᐳ"}}:::plan - PgInsertSingle82 --> PgClassExpression142 - PgClassExpression148{{"PgClassExpression[148∈3] ➊
ᐸ__geom__.”closed_path”ᐳ"}}:::plan - PgInsertSingle82 --> PgClassExpression148 - PgClassExpression154{{"PgClassExpression[154∈3] ➊
ᐸ__geom__.”polygon”ᐳ"}}:::plan - PgInsertSingle82 --> PgClassExpression154 - PgClassExpression159{{"PgClassExpression[159∈3] ➊
ᐸ__geom__.”circle”ᐳ"}}:::plan - PgInsertSingle82 --> PgClassExpression159 - Access144{{"Access[144∈8] ➊
ᐸ142.pointsᐳ"}}:::plan - PgClassExpression142 --> Access144 - __Item145[/"__Item[145∈9]
ᐸ144ᐳ"\]:::itemplan - Access144 ==> __Item145 - Access150{{"Access[150∈10] ➊
ᐸ148.pointsᐳ"}}:::plan - PgClassExpression148 --> Access150 - __Item151[/"__Item[151∈11]
ᐸ150ᐳ"\]:::itemplan - Access150 ==> __Item151 - Access155{{"Access[155∈12] ➊
ᐸ154.pointsᐳ"}}:::plan - PgClassExpression154 --> Access155 - __Item156[/"__Item[156∈13]
ᐸ155ᐳ"\]:::itemplan - Access155 ==> __Item156 + PgInsertSingle46[["PgInsertSingle[46∈1] ➊
ᐸgeom()ᐳ"]]:::sideeffectplan + Object49 & ApplyInput50 --> PgInsertSingle46 + Object51{{"Object[51∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle46 --> Object51 + PgClassExpression52{{"PgClassExpression[52∈1] ➊
ᐸ__geom__.”id”ᐳ"}}:::plan + Access53{{"Access[53∈1] ➊
ᐸ46.tᐳ"}}:::plan + Access53 --> PgClassExpression52 + PgInsertSingle46 --> Access53 + PgClassExpression54{{"PgClassExpression[54∈1] ➊
ᐸ__geom__.”point”ᐳ"}}:::plan + Access53 --> PgClassExpression54 + Access55{{"Access[55∈1] ➊
ᐸ54.xᐳ"}}:::plan + PgClassExpression54 --> Access55 + Access56{{"Access[56∈1] ➊
ᐸ54.yᐳ"}}:::plan + PgClassExpression54 --> Access56 + PgClassExpression57{{"PgClassExpression[57∈1] ➊
ᐸ__geom__.”line”ᐳ"}}:::plan + Access53 --> PgClassExpression57 + Access58{{"Access[58∈1] ➊
ᐸ57.aᐳ"}}:::plan + PgClassExpression57 --> Access58 + Access59{{"Access[59∈1] ➊
ᐸ57.a.xᐳ"}}:::plan + PgClassExpression57 --> Access59 + Access60{{"Access[60∈1] ➊
ᐸ57.a.yᐳ"}}:::plan + PgClassExpression57 --> Access60 + Access61{{"Access[61∈1] ➊
ᐸ57.bᐳ"}}:::plan + PgClassExpression57 --> Access61 + Access62{{"Access[62∈1] ➊
ᐸ57.b.xᐳ"}}:::plan + PgClassExpression57 --> Access62 + Access63{{"Access[63∈1] ➊
ᐸ57.b.yᐳ"}}:::plan + PgClassExpression57 --> Access63 + PgClassExpression64{{"PgClassExpression[64∈1] ➊
ᐸ__geom__.”lseg”ᐳ"}}:::plan + Access53 --> PgClassExpression64 + Access65{{"Access[65∈1] ➊
ᐸ64.aᐳ"}}:::plan + PgClassExpression64 --> Access65 + Access66{{"Access[66∈1] ➊
ᐸ64.a.xᐳ"}}:::plan + PgClassExpression64 --> Access66 + Access67{{"Access[67∈1] ➊
ᐸ64.a.yᐳ"}}:::plan + PgClassExpression64 --> Access67 + Access68{{"Access[68∈1] ➊
ᐸ64.bᐳ"}}:::plan + PgClassExpression64 --> Access68 + Access69{{"Access[69∈1] ➊
ᐸ64.b.xᐳ"}}:::plan + PgClassExpression64 --> Access69 + Access70{{"Access[70∈1] ➊
ᐸ64.b.yᐳ"}}:::plan + PgClassExpression64 --> Access70 + PgClassExpression71{{"PgClassExpression[71∈1] ➊
ᐸ__geom__.”box”ᐳ"}}:::plan + Access53 --> PgClassExpression71 + Access72{{"Access[72∈1] ➊
ᐸ71.aᐳ"}}:::plan + PgClassExpression71 --> Access72 + Access73{{"Access[73∈1] ➊
ᐸ71.a.xᐳ"}}:::plan + PgClassExpression71 --> Access73 + Access74{{"Access[74∈1] ➊
ᐸ71.a.yᐳ"}}:::plan + PgClassExpression71 --> Access74 + Access75{{"Access[75∈1] ➊
ᐸ71.bᐳ"}}:::plan + PgClassExpression71 --> Access75 + Access76{{"Access[76∈1] ➊
ᐸ71.b.xᐳ"}}:::plan + PgClassExpression71 --> Access76 + Access77{{"Access[77∈1] ➊
ᐸ71.b.yᐳ"}}:::plan + PgClassExpression71 --> Access77 + PgClassExpression78{{"PgClassExpression[78∈1] ➊
ᐸ__geom__.”open_path”ᐳ"}}:::plan + Access53 --> PgClassExpression78 + Access79{{"Access[79∈1] ➊
ᐸ78.isOpenᐳ"}}:::plan + PgClassExpression78 --> Access79 + Access80{{"Access[80∈1] ➊
ᐸ78.pointsᐳ"}}:::plan + PgClassExpression78 --> Access80 + PgClassExpression84{{"PgClassExpression[84∈1] ➊
ᐸ__geom__.”closed_path”ᐳ"}}:::plan + Access53 --> PgClassExpression84 + Access85{{"Access[85∈1] ➊
ᐸ84.isOpenᐳ"}}:::plan + PgClassExpression84 --> Access85 + Access86{{"Access[86∈1] ➊
ᐸ84.pointsᐳ"}}:::plan + PgClassExpression84 --> Access86 + PgClassExpression90{{"PgClassExpression[90∈1] ➊
ᐸ__geom__.”polygon”ᐳ"}}:::plan + Access53 --> PgClassExpression90 + Access91{{"Access[91∈1] ➊
ᐸ90.pointsᐳ"}}:::plan + PgClassExpression90 --> Access91 + PgClassExpression95{{"PgClassExpression[95∈1] ➊
ᐸ__geom__.”circle”ᐳ"}}:::plan + Access53 --> PgClassExpression95 + Access96{{"Access[96∈1] ➊
ᐸ95.centerᐳ"}}:::plan + PgClassExpression95 --> Access96 + Access97{{"Access[97∈1] ➊
ᐸ95.center.xᐳ"}}:::plan + PgClassExpression95 --> Access97 + Access98{{"Access[98∈1] ➊
ᐸ95.center.yᐳ"}}:::plan + PgClassExpression95 --> Access98 + Access99{{"Access[99∈1] ➊
ᐸ95.radiusᐳ"}}:::plan + PgClassExpression95 --> Access99 + __Item81[/"__Item[81∈2]
ᐸ80ᐳ"\]:::itemplan + Access80 ==> __Item81 + __Item87[/"__Item[87∈3]
ᐸ86ᐳ"\]:::itemplan + Access86 ==> __Item87 + __Item92[/"__Item[92∈4]
ᐸ91ᐳ"\]:::itemplan + Access91 ==> __Item92 %% define steps subgraph "Buckets for mutations/v4/geometry.mutations" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access83,Access84,Object85,Constant183,Constant196,Constant197,Constant198,Constant200,Constant201,Constant202,Constant203 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 85, 183, 196, 197, 198, 201, 202, 203, 200

1: PgInsertSingle[82]
2:
ᐳ: Object[86]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,__InputObject9,__InputObject12,__InputObject13,__InputObject16,__InputObject19,__InputObject20,__InputObject23,__InputObject26,__InputObject27,__InputObject30,__InputObject33,Constant34,__InputObject36,Constant37,__InputObject39,Constant40,__InputObject41,__InputObject42,Access47,Access48,Object49,ApplyInput50,Constant100,Constant101,Constant102,Constant103,Constant104,Constant105,Constant106,Constant107,Constant108,Constant109,Constant110,Constant111,Constant112,Constant113,Constant114,Constant115,Constant116,Constant117 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 49, 50

1: PgInsertSingle[46]
2:
ᐳ: 51, 53, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 84, 85, 86, 90, 91, 95, 96, 97, 98, 99"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle82,Object86 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 86, 82

ROOT Object{1}ᐸ{result}ᐳ[86]"):::bucket + class Bucket1,PgInsertSingle46,Object51,PgClassExpression52,Access53,PgClassExpression54,Access55,Access56,PgClassExpression57,Access58,Access59,Access60,Access61,Access62,Access63,PgClassExpression64,Access65,Access66,Access67,Access68,Access69,Access70,PgClassExpression71,Access72,Access73,Access74,Access75,Access76,Access77,PgClassExpression78,Access79,Access80,PgClassExpression84,Access85,Access86,PgClassExpression90,Access91,PgClassExpression95,Access96,Access97,Access98,Access99 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ80ᐳ[81]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 82

ROOT PgInsertSingle{1}ᐸgeom(point,line,lseg,box,open_path,closed_path,polygon,circle)ᐳ[82]"):::bucket + class Bucket2,__Item81 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ86ᐳ[87]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression117,PgClassExpression118,PgClassExpression121,PgClassExpression128,PgClassExpression135,PgClassExpression142,PgClassExpression148,PgClassExpression154,PgClassExpression159 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 118

ROOT PgClassExpression{3}ᐸ__geom__.”point”ᐳ[118]"):::bucket + class Bucket3,__Item87 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ91ᐳ[92]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 121

ROOT PgClassExpression{3}ᐸ__geom__.”line”ᐳ[121]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 128

ROOT PgClassExpression{3}ᐸ__geom__.”lseg”ᐳ[128]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 135

ROOT PgClassExpression{3}ᐸ__geom__.”box”ᐳ[135]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 142

ROOT PgClassExpression{3}ᐸ__geom__.”open_path”ᐳ[142]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,Access144 bucket8 - Bucket9("Bucket 9 (listItem)

ROOT __Item{9}ᐸ144ᐳ[145]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,__Item145 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 148

ROOT PgClassExpression{3}ᐸ__geom__.”closed_path”ᐳ[148]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,Access150 bucket10 - Bucket11("Bucket 11 (listItem)

ROOT __Item{11}ᐸ150ᐳ[151]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,__Item151 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 154

ROOT PgClassExpression{3}ᐸ__geom__.”polygon”ᐳ[154]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,Access155 bucket12 - Bucket13("Bucket 13 (listItem)

ROOT __Item{13}ᐸ155ᐳ[156]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,__Item156 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 159

ROOT PgClassExpression{3}ᐸ__geom__.”circle”ᐳ[159]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14 bucket14 + class Bucket4,__Item92 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket10 & Bucket12 & Bucket14 - Bucket8 --> Bucket9 - Bucket10 --> Bucket11 - Bucket12 --> Bucket13 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/inheritence.createUserFile.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/inheritence.createUserFile.mermaid index 2bf77c4bc2..48a7d39612 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/inheritence.createUserFile.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/inheritence.createUserFile.mermaid @@ -9,90 +9,86 @@ graph TD %% plan dependencies + __InputObject26{{"__InputObject[26∈0] ➊"}}:::plan + Constant48{{"Constant[48∈0] ➊
ᐸ'foo.txt'ᐳ"}}:::plan + Constant46{{"Constant[46∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant48 & Constant46 --> __InputObject26 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 + Constant47{{"Constant[47∈0] ➊
ᐸ'Bobby Tables'ᐳ"}}:::plan + Constant46 & Constant47 --> __InputObject8 Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 + __InputObject24{{"__InputObject[24∈0] ➊"}}:::plan + __InputObject26 --> __InputObject24 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 + ApplyInput15{{"ApplyInput[15∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput15 + ApplyInput33{{"ApplyInput[33∈0] ➊"}}:::plan + __InputObject24 --> ApplyInput33 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant16{{"Constant[16∈0] ➊
ᐸ'users'ᐳ"}}:::plan - Constant44{{"Constant[44∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant45{{"Constant[45∈0] ➊
ᐸ'Bobby Tables'ᐳ"}}:::plan - Constant46{{"Constant[46∈0] ➊
ᐸ'foo.txt'ᐳ"}}:::plan - PgInsertSingle11[["PgInsertSingle[11∈1] ➊
ᐸuser(id,name)ᐳ"]]:::sideeffectplan - Object14 & Constant44 & Constant45 --> PgInsertSingle11 - Object15{{"Object[15∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle11 --> Object15 - List18{{"List[18∈3] ➊
ᐸ16,17ᐳ"}}:::plan - PgClassExpression17{{"PgClassExpression[17∈3] ➊
ᐸ__user__.”id”ᐳ"}}:::plan - Constant16 & PgClassExpression17 --> List18 - PgInsertSingle11 --> PgClassExpression17 - Lambda19{{"Lambda[19∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List18 --> Lambda19 - PgClassExpression21{{"PgClassExpression[21∈3] ➊
ᐸ__user__.”name”ᐳ"}}:::plan - PgInsertSingle11 --> PgClassExpression21 - PgInsertSingle27[["PgInsertSingle[27∈4] ➊
ᐸuser_file(filename,user_id)ᐳ"]]:::sideeffectplan - Object30{{"Object[30∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object30 & Constant46 & Constant44 --> PgInsertSingle27 - Access28{{"Access[28∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access29{{"Access[29∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access28 & Access29 --> Object30 - __Value2 --> Access28 - __Value2 --> Access29 - Object31{{"Object[31∈4] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle27 --> Object31 - PgSelect35[["PgSelect[35∈6] ➊
ᐸuserᐳ"]]:::plan - PgClassExpression34{{"PgClassExpression[34∈6] ➊
ᐸ__user_file__.”user_id”ᐳ"}}:::plan - Object30 & PgClassExpression34 --> PgSelect35 - PgClassExpression32{{"PgClassExpression[32∈6] ➊
ᐸ__user_file__.”id”ᐳ"}}:::plan - PgInsertSingle27 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈6] ➊
ᐸ__user_fil...”filename”ᐳ"}}:::plan - PgInsertSingle27 --> PgClassExpression33 - PgInsertSingle27 --> PgClassExpression34 - First39{{"First[39∈6] ➊"}}:::plan - PgSelectRows40[["PgSelectRows[40∈6] ➊"]]:::plan - PgSelectRows40 --> First39 - PgSelect35 --> PgSelectRows40 - PgSelectSingle41{{"PgSelectSingle[41∈6] ➊
ᐸuserᐳ"}}:::plan - First39 --> PgSelectSingle41 - PgClassExpression42{{"PgClassExpression[42∈7] ➊
ᐸ__user__.”id”ᐳ"}}:::plan - PgSelectSingle41 --> PgClassExpression42 - PgClassExpression43{{"PgClassExpression[43∈7] ➊
ᐸ__user__.”name”ᐳ"}}:::plan - PgSelectSingle41 --> PgClassExpression43 + Constant17{{"Constant[17∈0] ➊
ᐸ'users'ᐳ"}}:::plan + PgInsertSingle11[["PgInsertSingle[11∈1] ➊
ᐸuser()ᐳ"]]:::sideeffectplan + Object14 & ApplyInput15 --> PgInsertSingle11 + List20{{"List[20∈1] ➊
ᐸ17,18ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__user__.”id”ᐳ"}}:::plan + Constant17 & PgClassExpression18 --> List20 + Object16{{"Object[16∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle11 --> Object16 + Access19{{"Access[19∈1] ➊
ᐸ11.tᐳ"}}:::plan + Access19 --> PgClassExpression18 + PgInsertSingle11 --> Access19 + Lambda21{{"Lambda[21∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List20 --> Lambda21 + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__user__.”name”ᐳ"}}:::plan + Access19 --> PgClassExpression23 + PgInsertSingle29[["PgInsertSingle[29∈2] ➊
ᐸuser_file()ᐳ"]]:::sideeffectplan + Object32{{"Object[32∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object32 & ApplyInput33 --> PgInsertSingle29 + Access30{{"Access[30∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access31{{"Access[31∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access30 & Access31 --> Object32 + PgSelect39[["PgSelect[39∈2] ➊
ᐸuserᐳ"]]:::plan + PgClassExpression38{{"PgClassExpression[38∈2] ➊
ᐸ__user_file__.”user_id”ᐳ"}}:::plan + Object32 & PgClassExpression38 --> PgSelect39 + __Value2 --> Access30 + __Value2 --> Access31 + Object34{{"Object[34∈2] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle29 --> Object34 + PgClassExpression35{{"PgClassExpression[35∈2] ➊
ᐸ__user_file__.”id”ᐳ"}}:::plan + Access36{{"Access[36∈2] ➊
ᐸ29.tᐳ"}}:::plan + Access36 --> PgClassExpression35 + PgInsertSingle29 --> Access36 + PgClassExpression37{{"PgClassExpression[37∈2] ➊
ᐸ__user_fil...”filename”ᐳ"}}:::plan + Access36 --> PgClassExpression37 + Access36 --> PgClassExpression38 + First41{{"First[41∈2] ➊"}}:::plan + PgSelectRows42[["PgSelectRows[42∈2] ➊"]]:::plan + PgSelectRows42 --> First41 + PgSelect39 --> PgSelectRows42 + PgSelectSingle43{{"PgSelectSingle[43∈2] ➊
ᐸuserᐳ"}}:::plan + First41 --> PgSelectSingle43 + PgClassExpression44{{"PgClassExpression[44∈2] ➊
ᐸ__user__.”id”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression44 + PgClassExpression45{{"PgClassExpression[45∈2] ➊
ᐸ__user__.”name”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression45 %% define steps subgraph "Buckets for mutations/v4/inheritence.createUserFile" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Constant16,Constant44,Constant45,Constant46 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 14, 44, 45, 16

1: PgInsertSingle[11]
2:
ᐳ: Object[15]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,Access12,Access13,Object14,ApplyInput15,Constant17,__InputObject24,__InputObject26,ApplyInput33,Constant46,Constant47,Constant48 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 14, 15, 17

1: PgInsertSingle[11]
2:
ᐳ: 16, 19, 18, 20, 21, 23"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle11,Object15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 11, 16

ROOT Object{1}ᐸ{result}ᐳ[15]"):::bucket + class Bucket1,PgInsertSingle11,Object16,PgClassExpression18,Access19,List20,Lambda21,PgClassExpression23 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 33, 2

1: Access[30]
2: Access[31]
3: Object[32]
4: PgInsertSingle[29]
5:
ᐳ: 34, 36, 35, 37, 38
6: PgSelect[39]
7: PgSelectRows[42]
ᐳ: 41, 43, 44, 45"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 11, 16

ROOT PgInsertSingle{1}ᐸuser(id,name)ᐳ[11]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,List18,Lambda19,PgClassExpression21 bucket3 - Bucket4("Bucket 4 (mutationField)
Deps: 46, 44, 2

1: Access[28]
2: Access[29]
3: Object[30]
4: PgInsertSingle[27]
5:
ᐳ: Object[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgInsertSingle27,Access28,Access29,Object30,Object31 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 31, 27, 30

ROOT Object{4}ᐸ{result}ᐳ[31]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 27, 30

ROOT PgInsertSingle{4}ᐸuser_file(filename,user_id)ᐳ[27]
1:
ᐳ: 32, 33, 34
2: PgSelect[35]
3: PgSelectRows[40]
ᐳ: First[39], PgSelectSingle[41]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgSelect35,First39,PgSelectRows40,PgSelectSingle41 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 41

ROOT PgSelectSingle{6}ᐸuserᐳ[41]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression42,PgClassExpression43 bucket7 - Bucket0 --> Bucket1 & Bucket4 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 + class Bucket2,PgInsertSingle29,Access30,Access31,Object32,Object34,PgClassExpression35,Access36,PgClassExpression37,PgClassExpression38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.mermaid index 006db47106..9c54a5b451 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.mermaid @@ -9,1612 +9,1391 @@ graph TD %% plan dependencies - Object119{{"Object[119∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access117{{"Access[117∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access118{{"Access[118∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access117 & Access118 --> Object119 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant936{{"Constant[936∈0] ➊
ᐸ201ᐳ"}}:::plan + Constant937{{"Constant[937∈0] ➊
ᐸ30ᐳ"}}:::plan + Constant938{{"Constant[938∈0] ➊
ᐸ'467131188225'ᐳ"}}:::plan + Constant939{{"Constant[939∈0] ➊
ᐸ'15.2'ᐳ"}}:::plan + Constant940{{"Constant[940∈0] ➊
ᐸfalseᐳ"}}:::plan + Constant941{{"Constant[941∈0] ➊
ᐸ'abc'ᐳ"}}:::plan + Constant942{{"Constant[942∈0] ➊
ᐸ'red'ᐳ"}}:::plan + Constant17{{"Constant[17∈0] ➊
ᐸ[ 'red', 'green' ]ᐳ"}}:::plan + Constant943{{"Constant[943∈0] ➊
ᐸ6ᐳ"}}:::plan + Constant944{{"Constant[944∈0] ➊
ᐸ5ᐳ"}}:::plan + Constant20{{"Constant[20∈0] ➊
ᐸ[ 'have', 'you', 'ever', 'been', 'down', 'the', 'ᐳ"}}:::plan + Constant945{{"Constant[945∈0] ➊
ᐸ{ x: 1, y: 2, z: 3 }ᐳ"}}:::plan + Constant946{{"Constant[946∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan + __InputObject23{{"__InputObject[23∈0] ➊"}}:::plan + __InputObject27{{"__InputObject[27∈0] ➊"}}:::plan + __InputObject34{{"__InputObject[34∈0] ➊"}}:::plan + Constant952{{"Constant[952∈0] ➊
ᐸ'2016-10-07 16:12:21.747269'ᐳ"}}:::plan + Constant953{{"Constant[953∈0] ➊
ᐸ'2016-10-09 16:12:45.218676-04'ᐳ"}}:::plan + Constant954{{"Constant[954∈0] ➊
ᐸ'2016-10-15'ᐳ"}}:::plan + Constant955{{"Constant[955∈0] ➊
ᐸ'19:13:18.625699'ᐳ"}}:::plan + Constant956{{"Constant[956∈0] ➊
ᐸ'13:13:29.585176-04'ᐳ"}}:::plan + __InputObject43{{"__InputObject[43∈0] ➊"}}:::plan + Constant50{{"Constant[50∈0] ➊
ᐸ[ §{ seconds: 2, minutes: 3, hours: 4, days: 5, months: 6, yᐳ"}}:::plan + Constant961{{"Constant[961∈0] ➊
ᐸ1234567.89ᐳ"}}:::plan + __InputObject52{{"__InputObject[52∈0] ➊"}}:::plan + __InputObject60{{"__InputObject[60∈0] ➊"}}:::plan + __InputObject78{{"__InputObject[78∈0] ➊"}}:::plan + Constant981{{"Constant[981∈0] ➊
ᐸ'192.168.0.0/16'ᐳ"}}:::plan + Constant982{{"Constant[982∈0] ➊
ᐸ'0cafec0ffee0'ᐳ"}}:::plan + Constant83{{"Constant[83∈0] ➊
ᐸ[ 'TEXT 2098288669218571759', 'TEXT 2098288669218571760', 'Tᐳ"}}:::plan + Constant84{{"Constant[84∈0] ➊
ᐸ[ '2098288669218571759', '2098288669218571760', '20982886692ᐳ"}}:::plan + Constant936 & Constant937 & Constant938 & Constant940 & Constant941 & Constant942 & Constant17 & Constant943 & Constant944 & Constant20 & Constant945 & Constant946 & __InputObject23 & __InputObject27 & __InputObject34 & Constant952 & Constant953 & Constant954 & Constant955 & Constant956 & __InputObject43 & Constant50 & Constant961 & __InputObject52 & __InputObject60 & __InputObject78 & Constant981 & Constant982 & Constant83 & Constant84 --> __InputObject8 + Constant939 -- 2 --> __InputObject8 + __InputObject222{{"__InputObject[222∈0] ➊"}}:::plan + Constant983{{"Constant[983∈0] ➊
ᐸ9000ᐳ"}}:::plan + Constant984{{"Constant[984∈0] ➊
ᐸ'John Smith Jr.'ᐳ"}}:::plan + Constant985{{"Constant[985∈0] ➊
ᐸ'Son of Sara and John Smith.'ᐳ"}}:::plan + Constant986{{"Constant[986∈0] ➊
ᐸ'johnny.boy.smith@email.com'ᐳ"}}:::plan + Access227{{"Access[227∈0] ➊
ᐸ0.configᐳ"}}:::plan + Constant987{{"Constant[987∈0] ➊
ᐸ'172.16.1.2'ᐳ"}}:::plan + Constant988{{"Constant[988∈0] ➊
ᐸ'172.16.0.0/12'ᐳ"}}:::plan + Constant989{{"Constant[989∈0] ➊
ᐸ'00:00:00:00:00:00'ᐳ"}}:::plan + Constant983 & Constant984 & Constant985 & Constant986 & Access227 & Constant987 & Constant988 & Constant989 --> __InputObject222 + __InputObject391{{"__InputObject[391∈0] ➊"}}:::plan + Constant967{{"Constant[967∈0] ➊
ᐸ20ᐳ"}}:::plan + Constant992{{"Constant[992∈0] ➊
ᐸ'Best Pal'ᐳ"}}:::plan + Constant993{{"Constant[993∈0] ➊
ᐸ'My archnemisis is Budd Deey.'ᐳ"}}:::plan + Constant994{{"Constant[994∈0] ➊
ᐸ'best.pal@email.com'ᐳ"}}:::plan + Constant397{{"Constant[397∈0] ➊
ᐸnullᐳ"}}:::plan + Constant995{{"Constant[995∈0] ➊
ᐸ'192.168.0.42'ᐳ"}}:::plan + Constant996{{"Constant[996∈0] ➊
ᐸ'0000.0000.0000'ᐳ"}}:::plan + Constant967 & Constant992 & Constant993 & Constant994 & Constant397 & Constant995 & Constant981 & Constant996 --> __InputObject391 + __InputObject640{{"__InputObject[640∈0] ➊"}}:::plan + Constant998{{"Constant[998∈0] ➊
ᐸ1998ᐳ"}}:::plan + Constant999{{"Constant[999∈0] ➊
ᐸ'Budd Deey'ᐳ"}}:::plan + Constant1000{{"Constant[1000∈0] ➊
ᐸ'budd.deey.the.second@email.com'ᐳ"}}:::plan + __InputDynamicScalar645{{"__InputDynamicScalar[645∈0] ➊"}}:::plan + Constant1001{{"Constant[1001∈0] ➊
ᐸ'10.0.1.42'ᐳ"}}:::plan + Constant1002{{"Constant[1002∈0] ➊
ᐸ'10.0.0.0/8'ᐳ"}}:::plan + Constant1003{{"Constant[1003∈0] ➊
ᐸ'aa-bb-cc-dd-ee-ff'ᐳ"}}:::plan + Constant998 & Constant999 & Constant397 & Constant1000 & __InputDynamicScalar645 & Constant1001 & Constant1002 & Constant1003 --> __InputObject640 + Constant962{{"Constant[962∈0] ➊
ᐸ123ᐳ"}}:::plan + Constant963{{"Constant[963∈0] ➊
ᐸ'green'ᐳ"}}:::plan + Constant964{{"Constant[964∈0] ➊
ᐸ'ec4a9fae-4ec5-4763-98eb-0327fb2dc9bf'ᐳ"}}:::plan + Constant965{{"Constant[965∈0] ➊
ᐸ'FOO_BAR'ᐳ"}}:::plan + Constant966{{"Constant[966∈0] ➊
ᐸ''ᐳ"}}:::plan + Constant962 & Constant941 & Constant963 & Constant964 & Constant965 & Constant966 & Constant967 --> __InputObject52 + __InputObject61{{"__InputObject[61∈0] ➊"}}:::plan + Constant968{{"Constant[968∈0] ➊
ᐸ456ᐳ"}}:::plan + Constant969{{"Constant[969∈0] ➊
ᐸ'def'ᐳ"}}:::plan + Constant970{{"Constant[970∈0] ➊
ᐸ'blue'ᐳ"}}:::plan + Constant971{{"Constant[971∈0] ➊
ᐸ'79863dcf-0433-4c3d-bc51-978326d4546f'ᐳ"}}:::plan + Constant972{{"Constant[972∈0] ➊
ᐸ'BAR_FOO'ᐳ"}}:::plan + Constant973{{"Constant[973∈0] ➊
ᐸ'one'ᐳ"}}:::plan + Constant974{{"Constant[974∈0] ➊
ᐸ42ᐳ"}}:::plan + Constant968 & Constant969 & Constant970 & Constant971 & Constant972 & Constant973 & Constant974 --> __InputObject61 + __InputObject69{{"__InputObject[69∈0] ➊"}}:::plan + Constant975{{"Constant[975∈0] ➊
ᐸ789ᐳ"}}:::plan + Constant976{{"Constant[976∈0] ➊
ᐸ'ghi'ᐳ"}}:::plan + Constant977{{"Constant[977∈0] ➊
ᐸ'b687ee42-c515-4544-b742-525e39517e7d'ᐳ"}}:::plan + Constant978{{"Constant[978∈0] ➊
ᐸ'BAZ_QUX'ᐳ"}}:::plan + Constant979{{"Constant[979∈0] ➊
ᐸ-8ᐳ"}}:::plan + Constant975 & Constant976 & Constant942 & Constant977 & Constant978 & Constant966 & Constant979 --> __InputObject69 + Constant957{{"Constant[957∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant958{{"Constant[958∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant959{{"Constant[959∈0] ➊
ᐸ3ᐳ"}}:::plan + Constant960{{"Constant[960∈0] ➊
ᐸ4ᐳ"}}:::plan + Constant957 & Constant958 & Constant959 & Constant960 & Constant944 & Constant943 --> __InputObject43 + __InputObject800{{"__InputObject[800∈0] ➊"}}:::plan + Constant1004{{"Constant[1004∈0] ➊
ᐸ1999ᐳ"}}:::plan + Constant1005{{"Constant[1005∈0] ➊
ᐸ'Twenty Seven'ᐳ"}}:::plan + Constant990{{"Constant[990∈0] ➊
ᐸ'graphile-build.issue.27@example.com'ᐳ"}}:::plan + Constant1004 & Constant1005 & Constant397 & Constant990 --> __InputObject800 + __InputObject862{{"__InputObject[862∈0] ➊"}}:::plan + Constant1008{{"Constant[1008∈0] ➊
ᐸ'super headline 2'ᐳ"}}:::plan + Constant865{{"Constant[865∈0] ➊
ᐸ[ §{ schedule: '2008-10-24 10:17:54+02', isOptimised: true }ᐳ"}}:::plan + Constant1008 & Constant957 & Constant865 --> __InputObject862 + Constant980{{"Constant[980∈0] ➊
ᐸ0ᐳ"}}:::plan + __InputObject61 & __InputObject69 & Constant980 --> __InputObject60 + __InputObject552{{"__InputObject[552∈0] ➊"}}:::plan + Constant967 & Constant983 & Constant940 --> __InputObject552 + __InputObject839{{"__InputObject[839∈0] ➊"}}:::plan + Constant1007{{"Constant[1007∈0] ➊
ᐸ'super headline'ᐳ"}}:::plan + Constant841{{"Constant[841∈0] ➊
ᐸ[ §{ schedule: '2009-10-24 10:23:54+02', isOptimised: true }ᐳ"}}:::plan + Constant1007 & Constant841 --> __InputObject839 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 + __InputObject24{{"__InputObject[24∈0] ➊"}}:::plan + __InputObject24 --> __InputObject23 + Constant947{{"Constant[947∈0] ➊
ᐸ'50'ᐳ"}}:::plan + Constant948{{"Constant[948∈0] ➊
ᐸtrueᐳ"}}:::plan + Constant947 & Constant948 --> __InputObject24 + __InputObject28{{"__InputObject[28∈0] ➊"}}:::plan + __InputObject31{{"__InputObject[31∈0] ➊"}}:::plan + __InputObject28 & __InputObject31 --> __InputObject27 + Constant949{{"Constant[949∈0] ➊
ᐸ'1927-11-05'ᐳ"}}:::plan + Constant949 & Constant940 --> __InputObject28 + Constant950{{"Constant[950∈0] ➊
ᐸ'1927-11-07'ᐳ"}}:::plan + Constant950 & Constant940 --> __InputObject31 + __InputObject35{{"__InputObject[35∈0] ➊"}}:::plan + __InputObject35 --> __InputObject34 + Constant951{{"Constant[951∈0] ➊
ᐸ500ᐳ"}}:::plan + Constant951 & Constant940 --> __InputObject35 + Constant957 & Constant959 --> __InputObject78 + Object88{{"Object[88∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access86{{"Access[86∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access87{{"Access[87∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access86 & Access87 --> Object88 + __InputObject220{{"__InputObject[220∈0] ➊"}}:::plan + __InputObject222 --> __InputObject220 + __InputObject389{{"__InputObject[389∈0] ➊"}}:::plan + Constant991{{"Constant[991∈0] ➊
ᐸ'hello'ᐳ"}}:::plan + Constant991 & __InputObject391 --> __InputObject389 + __InputObject550{{"__InputObject[550∈0] ➊"}}:::plan + Constant997{{"Constant[997∈0] ➊
ᐸ'world'ᐳ"}}:::plan + Constant997 & __InputObject552 --> __InputObject550 + __InputObject611{{"__InputObject[611∈0] ➊"}}:::plan + __InputObject613{{"__InputObject[613∈0] ➊"}}:::plan + __InputObject613 --> __InputObject611 + Constant948 --> __InputObject613 + __InputObject625{{"__InputObject[625∈0] ➊"}}:::plan + __InputObject627{{"__InputObject[627∈0] ➊"}}:::plan + __InputObject627 --> __InputObject625 + __InputObject638{{"__InputObject[638∈0] ➊"}}:::plan + __InputObject640 --> __InputObject638 + __InputObject798{{"__InputObject[798∈0] ➊"}}:::plan + __InputObject800 --> __InputObject798 + __InputObject823{{"__InputObject[823∈0] ➊"}}:::plan + __InputObject825{{"__InputObject[825∈0] ➊"}}:::plan + __InputObject825 --> __InputObject823 + Constant1006{{"Constant[1006∈0] ➊
ᐸ2000ᐳ"}}:::plan + Constant1006 & Constant397 --> __InputObject825 + __InputObject837{{"__InputObject[837∈0] ➊"}}:::plan + __InputObject839 --> __InputObject837 + __InputObject860{{"__InputObject[860∈0] ➊"}}:::plan + __InputObject862 --> __InputObject860 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access117 - __Value2 --> Access118 - Access277{{"Access[277∈0] ➊
ᐸ0.configᐳ"}}:::plan + __Value2 --> Access86 + __Value2 --> Access87 + ApplyInput89{{"ApplyInput[89∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput89 + Lambda219{{"Lambda[219∈0] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant218{{"Constant[218∈0] ➊
ᐸ'query'ᐳ"}}:::plan + Constant218 --> Lambda219 __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value0 --> Access277 + __Value0 --> Access227 + ApplyInput236{{"ApplyInput[236∈0] ➊"}}:::plan + __InputObject220 --> ApplyInput236 + ApplyInput405{{"ApplyInput[405∈0] ➊"}}:::plan + __InputObject389 --> ApplyInput405 + ApplyInput560{{"ApplyInput[560∈0] ➊"}}:::plan + __InputObject550 --> ApplyInput560 + ApplyInput619{{"ApplyInput[619∈0] ➊"}}:::plan + __InputObject611 --> ApplyInput619 + ApplyInput632{{"ApplyInput[632∈0] ➊"}}:::plan + __InputObject625 --> ApplyInput632 + ApplyInput653{{"ApplyInput[653∈0] ➊"}}:::plan + __InputObject638 --> ApplyInput653 + ApplyInput809{{"ApplyInput[809∈0] ➊"}}:::plan + __InputObject798 --> ApplyInput809 + ApplyInput832{{"ApplyInput[832∈0] ➊"}}:::plan + __InputObject823 --> ApplyInput832 + ApplyInput846{{"ApplyInput[846∈0] ➊"}}:::plan + __InputObject837 --> ApplyInput846 + ApplyInput870{{"ApplyInput[870∈0] ➊"}}:::plan + __InputObject860 --> ApplyInput870 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant144{{"Constant[144∈0] ➊
ᐸnullᐳ"}}:::plan - Constant145{{"Constant[145∈0] ➊
ᐸ'types'ᐳ"}}:::plan - Constant268{{"Constant[268∈0] ➊
ᐸ'query'ᐳ"}}:::plan - Constant288{{"Constant[288∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant644{{"Constant[644∈0] ➊
ᐸ'compound_keys'ᐳ"}}:::plan - __InputDynamicScalar732{{"__InputDynamicScalar[732∈0] ➊"}}:::plan - Constant1068{{"Constant[1068∈0] ➊
ᐸ201ᐳ"}}:::plan - Constant1069{{"Constant[1069∈0] ➊
ᐸ30ᐳ"}}:::plan - Constant1070{{"Constant[1070∈0] ➊
ᐸ'467131188225'ᐳ"}}:::plan - Constant1071{{"Constant[1071∈0] ➊
ᐸ'15.2'ᐳ"}}:::plan - Constant1072{{"Constant[1072∈0] ➊
ᐸfalseᐳ"}}:::plan - Constant1073{{"Constant[1073∈0] ➊
ᐸ'abc'ᐳ"}}:::plan - Constant1074{{"Constant[1074∈0] ➊
ᐸ'red'ᐳ"}}:::plan - Constant1076{{"Constant[1076∈0] ➊
ᐸ6ᐳ"}}:::plan - Constant1077{{"Constant[1077∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant1087{{"Constant[1087∈0] ➊
ᐸ{ x: 1, y: 2, z: 3 }ᐳ"}}:::plan - Constant1088{{"Constant[1088∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan - Constant1090{{"Constant[1090∈0] ➊
ᐸtrueᐳ"}}:::plan - Constant1094{{"Constant[1094∈0] ➊
ᐸ'2016-10-07 16:12:21.747269'ᐳ"}}:::plan - Constant1095{{"Constant[1095∈0] ➊
ᐸ'2016-10-09 16:12:45.218676-04'ᐳ"}}:::plan - Constant1096{{"Constant[1096∈0] ➊
ᐸ'2016-10-15'ᐳ"}}:::plan - Constant1097{{"Constant[1097∈0] ➊
ᐸ'19:13:18.625699'ᐳ"}}:::plan - Constant1098{{"Constant[1098∈0] ➊
ᐸ'13:13:29.585176-04'ᐳ"}}:::plan - Constant1099{{"Constant[1099∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant1105{{"Constant[1105∈0] ➊
ᐸ1234567.89ᐳ"}}:::plan - Constant1110{{"Constant[1110∈0] ➊
ᐸ20ᐳ"}}:::plan - Constant1124{{"Constant[1124∈0] ➊
ᐸ'192.168.0.0/16'ᐳ"}}:::plan - Constant1125{{"Constant[1125∈0] ➊
ᐸ'0cafec0ffee0'ᐳ"}}:::plan - Constant1132{{"Constant[1132∈0] ➊
ᐸ9000ᐳ"}}:::plan - Constant1133{{"Constant[1133∈0] ➊
ᐸ'John Smith Jr.'ᐳ"}}:::plan - Constant1134{{"Constant[1134∈0] ➊
ᐸ'Son of Sara and John Smith.'ᐳ"}}:::plan - Constant1135{{"Constant[1135∈0] ➊
ᐸ'johnny.boy.smith@email.com'ᐳ"}}:::plan - Constant1136{{"Constant[1136∈0] ➊
ᐸ'172.16.1.2'ᐳ"}}:::plan - Constant1137{{"Constant[1137∈0] ➊
ᐸ'172.16.0.0/12'ᐳ"}}:::plan - Constant1138{{"Constant[1138∈0] ➊
ᐸ'00:00:00:00:00:00'ᐳ"}}:::plan - Constant1139{{"Constant[1139∈0] ➊
ᐸ'graphile-build.issue.27@example.com'ᐳ"}}:::plan - Constant1140{{"Constant[1140∈0] ➊
ᐸ'hello'ᐳ"}}:::plan - Constant1141{{"Constant[1141∈0] ➊
ᐸ'Best Pal'ᐳ"}}:::plan - Constant1142{{"Constant[1142∈0] ➊
ᐸ'My archnemisis is Budd Deey.'ᐳ"}}:::plan - Constant1143{{"Constant[1143∈0] ➊
ᐸ'best.pal@email.com'ᐳ"}}:::plan - Constant1145{{"Constant[1145∈0] ➊
ᐸ'192.168.0.42'ᐳ"}}:::plan - Constant1146{{"Constant[1146∈0] ➊
ᐸ'0000.0000.0000'ᐳ"}}:::plan - Constant1147{{"Constant[1147∈0] ➊
ᐸ'world'ᐳ"}}:::plan - Constant1148{{"Constant[1148∈0] ➊
ᐸ1998ᐳ"}}:::plan - Constant1149{{"Constant[1149∈0] ➊
ᐸ'Budd Deey'ᐳ"}}:::plan - Constant1150{{"Constant[1150∈0] ➊
ᐸ'budd.deey.the.second@email.com'ᐳ"}}:::plan - Constant1151{{"Constant[1151∈0] ➊
ᐸ'10.0.1.42'ᐳ"}}:::plan - Constant1152{{"Constant[1152∈0] ➊
ᐸ'10.0.0.0/8'ᐳ"}}:::plan - Constant1153{{"Constant[1153∈0] ➊
ᐸ'aa-bb-cc-dd-ee-ff'ᐳ"}}:::plan - Constant1154{{"Constant[1154∈0] ➊
ᐸ1999ᐳ"}}:::plan - Constant1155{{"Constant[1155∈0] ➊
ᐸ'Twenty Seven'ᐳ"}}:::plan - Constant1156{{"Constant[1156∈0] ➊
ᐸ2000ᐳ"}}:::plan - Constant1157{{"Constant[1157∈0] ➊
ᐸ'super headline'ᐳ"}}:::plan - Constant1161{{"Constant[1161∈0] ➊
ᐸ'super headline 2'ᐳ"}}:::plan - Constant1165{{"Constant[1165∈0] ➊
ᐸ[ 'red', 'green' ]ᐳ"}}:::plan - Constant1166{{"Constant[1166∈0] ➊
ᐸ[ 'have', 'you', 'ever', 'been', 'down', 'the', 'ᐳ"}}:::plan - Constant1171{{"Constant[1171∈0] ➊
ᐸ§{ seconds: 1, minutes: 2, hours: 3, days: 4, months: 5, yeaᐳ"}}:::plan - Constant1174{{"Constant[1174∈0] ➊
ᐸ§{ a: 123, b: 'abc', c: 'green', d: 'ec4a9fae-4ec5-4763-98ebᐳ"}}:::plan - Constant1177{{"Constant[1177∈0] ➊
ᐸ§{ x: 1, y: 3 }ᐳ"}}:::plan - Constant1178{{"Constant[1178∈0] ➊
ᐸ[ 'TEXT 2098288669218571759', 'TEXT 2098288669218571760', 'Tᐳ"}}:::plan - Constant1179{{"Constant[1179∈0] ➊
ᐸ[ '2098288669218571759', '2098288669218571760', '20982886692ᐳ"}}:::plan - Constant1186{{"Constant[1186∈0] ➊
ᐸ§{ start: §{ value: '50', inclusive: true }, end: §{ value: ᐳ"}}:::plan - Constant1187{{"Constant[1187∈0] ➊
ᐸ§{ start: §{ value: '1927-11-05', inclusive: false }, end: §ᐳ"}}:::plan - Constant1188{{"Constant[1188∈0] ➊
ᐸ§{ start: §{ value: undefined, inclusive: undefined }, end: ᐳ"}}:::plan - Constant1189{{"Constant[1189∈0] ➊
ᐸ[ §{ seconds: 2, minutes: 3, hours: 4, days: 5, months: 6, yᐳ"}}:::plan - Constant1190{{"Constant[1190∈0] ➊
ᐸ§{ a: §{ a: 456, b: 'def', c: 'blue', d: '79863dcf-0433-4c3dᐳ"}}:::plan - Constant1191{{"Constant[1191∈0] ➊
ᐸ[ §{ schedule: '2009-10-24 10:23:54+02', is_optimised: true ᐳ"}}:::plan - Constant1192{{"Constant[1192∈0] ➊
ᐸ[ §{ schedule: '2008-10-24 10:17:54+02', is_optimised: true ᐳ"}}:::plan - PgInsertSingle116[["PgInsertSingle[116∈1] ➊
ᐸtypes(id,smallint,bigint,numeric,decimal,boolean,varchar,enum,enum_array,domain,domain2,text_array,json,jsonb,numrange,daterange,an_int_range,timestamp,timestamptz,date,time,timetz,interval,interval_array,money,compound_type,nested_compound_type,point,cidr,macaddr,text_array_domain,int8_array_domain)ᐳ"]]:::sideeffectplan - Object119 & Constant1068 & Constant1069 & Constant1070 & Constant1071 & Constant1071 & Constant1072 & Constant1073 & Constant1074 & Constant1165 & Constant1076 & Constant1077 & Constant1166 & Constant1087 & Constant1088 & Constant1186 & Constant1187 & Constant1188 & Constant1094 & Constant1095 & Constant1096 & Constant1097 & Constant1098 & Constant1171 & Constant1189 & Constant1105 & Constant1174 & Constant1190 & Constant1177 & Constant1124 & Constant1125 & Constant1178 & Constant1179 --> PgInsertSingle116 - Object120{{"Object[120∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle116 --> Object120 - Lambda269{{"Lambda[269∈2] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant268 --> Lambda269 - List147{{"List[147∈3] ➊
ᐸ145,146ᐳ"}}:::plan - PgClassExpression146{{"PgClassExpression[146∈3] ➊
ᐸ__types__.”id”ᐳ"}}:::plan - Constant145 & PgClassExpression146 --> List147 - PgSelect208[["PgSelect[208∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression207{{"PgClassExpression[207∈3] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object119 & PgClassExpression207 --> PgSelect208 - PgSelect223[["PgSelect[223∈3] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression222{{"PgClassExpression[222∈3] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object119 & PgClassExpression222 --> PgSelect223 - PgSelect229[["PgSelect[229∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression228{{"PgClassExpression[228∈3] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object119 & PgClassExpression228 --> PgSelect229 - PgSelect242[["PgSelect[242∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression241{{"PgClassExpression[241∈3] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object119 & PgClassExpression241 --> PgSelect242 - PgInsertSingle116 --> PgClassExpression146 - Lambda148{{"Lambda[148∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List147 --> Lambda148 - PgClassExpression150{{"PgClassExpression[150∈3] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression150 - PgClassExpression151{{"PgClassExpression[151∈3] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression151 - PgClassExpression152{{"PgClassExpression[152∈3] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression152 - PgClassExpression153{{"PgClassExpression[153∈3] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression153 - PgClassExpression154{{"PgClassExpression[154∈3] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression154 - PgClassExpression155{{"PgClassExpression[155∈3] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression155 - PgClassExpression156{{"PgClassExpression[156∈3] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression156 - PgClassExpression157{{"PgClassExpression[157∈3] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression157 - PgClassExpression159{{"PgClassExpression[159∈3] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression159 - PgClassExpression160{{"PgClassExpression[160∈3] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression160 - PgClassExpression161{{"PgClassExpression[161∈3] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression161 - PgClassExpression163{{"PgClassExpression[163∈3] ➊
ᐸ__types__.”json”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression163 - PgClassExpression164{{"PgClassExpression[164∈3] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression164 - PgClassExpression165{{"PgClassExpression[165∈3] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression165 - Access166{{"Access[166∈3] ➊
ᐸ165.startᐳ"}}:::plan - PgClassExpression165 --> Access166 - Access169{{"Access[169∈3] ➊
ᐸ165.endᐳ"}}:::plan - PgClassExpression165 --> Access169 - PgClassExpression172{{"PgClassExpression[172∈3] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression172 - Access173{{"Access[173∈3] ➊
ᐸ172.startᐳ"}}:::plan - PgClassExpression172 --> Access173 - Access176{{"Access[176∈3] ➊
ᐸ172.endᐳ"}}:::plan - PgClassExpression172 --> Access176 - PgClassExpression179{{"PgClassExpression[179∈3] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression179 - Access180{{"Access[180∈3] ➊
ᐸ179.startᐳ"}}:::plan - PgClassExpression179 --> Access180 - Access183{{"Access[183∈3] ➊
ᐸ179.endᐳ"}}:::plan - PgClassExpression179 --> Access183 - PgClassExpression186{{"PgClassExpression[186∈3] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression186 - PgClassExpression187{{"PgClassExpression[187∈3] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression187 - PgClassExpression188{{"PgClassExpression[188∈3] ➊
ᐸ__types__.”date”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression188 - PgClassExpression189{{"PgClassExpression[189∈3] ➊
ᐸ__types__.”time”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression189 - PgClassExpression190{{"PgClassExpression[190∈3] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression190 - PgClassExpression191{{"PgClassExpression[191∈3] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression191 - PgClassExpression198{{"PgClassExpression[198∈3] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression198 - PgClassExpression206{{"PgClassExpression[206∈3] ➊
ᐸ__types__.”money”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression206 - PgInsertSingle116 --> PgClassExpression207 - First212{{"First[212∈3] ➊"}}:::plan - PgSelectRows213[["PgSelectRows[213∈3] ➊"]]:::plan - PgSelectRows213 --> First212 - PgSelect208 --> PgSelectRows213 - PgSelectSingle214{{"PgSelectSingle[214∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First212 --> PgSelectSingle214 - PgClassExpression215{{"PgClassExpression[215∈3] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle214 --> PgClassExpression215 - PgClassExpression216{{"PgClassExpression[216∈3] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle214 --> PgClassExpression216 - PgClassExpression217{{"PgClassExpression[217∈3] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle214 --> PgClassExpression217 - PgClassExpression218{{"PgClassExpression[218∈3] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle214 --> PgClassExpression218 - PgClassExpression219{{"PgClassExpression[219∈3] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle214 --> PgClassExpression219 - PgClassExpression220{{"PgClassExpression[220∈3] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle214 --> PgClassExpression220 - PgClassExpression221{{"PgClassExpression[221∈3] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle214 --> PgClassExpression221 - PgInsertSingle116 --> PgClassExpression222 - First225{{"First[225∈3] ➊"}}:::plan - PgSelectRows226[["PgSelectRows[226∈3] ➊"]]:::plan - PgSelectRows226 --> First225 - PgSelect223 --> PgSelectRows226 - PgSelectSingle227{{"PgSelectSingle[227∈3] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First225 --> PgSelectSingle227 - PgSelectSingle227 --> PgClassExpression228 - First231{{"First[231∈3] ➊"}}:::plan - PgSelectRows232[["PgSelectRows[232∈3] ➊"]]:::plan - PgSelectRows232 --> First231 - PgSelect229 --> PgSelectRows232 - PgSelectSingle233{{"PgSelectSingle[233∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First231 --> PgSelectSingle233 - PgSelectSingle227 --> PgClassExpression241 - First244{{"First[244∈3] ➊"}}:::plan - PgSelectRows245[["PgSelectRows[245∈3] ➊"]]:::plan - PgSelectRows245 --> First244 - PgSelect242 --> PgSelectRows245 - PgSelectSingle246{{"PgSelectSingle[246∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First244 --> PgSelectSingle246 - PgClassExpression254{{"PgClassExpression[254∈3] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle227 --> PgClassExpression254 - PgClassExpression255{{"PgClassExpression[255∈3] ➊
ᐸ__types__.”point”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression255 - PgClassExpression258{{"PgClassExpression[258∈3] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression258 - PgClassExpression261{{"PgClassExpression[261∈3] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression261 - PgClassExpression262{{"PgClassExpression[262∈3] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression262 - PgClassExpression263{{"PgClassExpression[263∈3] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression263 - PgClassExpression264{{"PgClassExpression[264∈3] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression264 - PgClassExpression266{{"PgClassExpression[266∈3] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgInsertSingle116 --> PgClassExpression266 - __Item158[/"__Item[158∈4]
ᐸ157ᐳ"\]:::itemplan - PgClassExpression157 ==> __Item158 - __Item162[/"__Item[162∈5]
ᐸ161ᐳ"\]:::itemplan - PgClassExpression161 ==> __Item162 - __Item199[/"__Item[199∈12]
ᐸ198ᐳ"\]:::itemplan - PgClassExpression198 ==> __Item199 - PgClassExpression234{{"PgClassExpression[234∈14] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle233 --> PgClassExpression234 - PgClassExpression235{{"PgClassExpression[235∈14] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle233 --> PgClassExpression235 - PgClassExpression236{{"PgClassExpression[236∈14] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle233 --> PgClassExpression236 - PgClassExpression237{{"PgClassExpression[237∈14] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle233 --> PgClassExpression237 - PgClassExpression238{{"PgClassExpression[238∈14] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle233 --> PgClassExpression238 - PgClassExpression239{{"PgClassExpression[239∈14] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle233 --> PgClassExpression239 - PgClassExpression240{{"PgClassExpression[240∈14] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle233 --> PgClassExpression240 - PgClassExpression247{{"PgClassExpression[247∈15] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle246 --> PgClassExpression247 - PgClassExpression248{{"PgClassExpression[248∈15] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle246 --> PgClassExpression248 - PgClassExpression249{{"PgClassExpression[249∈15] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle246 --> PgClassExpression249 - PgClassExpression250{{"PgClassExpression[250∈15] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle246 --> PgClassExpression250 - PgClassExpression251{{"PgClassExpression[251∈15] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle246 --> PgClassExpression251 - PgClassExpression252{{"PgClassExpression[252∈15] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle246 --> PgClassExpression252 - PgClassExpression253{{"PgClassExpression[253∈15] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle246 --> PgClassExpression253 - __Item265[/"__Item[265∈17]
ᐸ264ᐳ"\]:::itemplan - PgClassExpression264 ==> __Item265 - __Item267[/"__Item[267∈18]
ᐸ266ᐳ"\]:::itemplan - PgClassExpression266 ==> __Item267 - PgInsertSingle282[["PgInsertSingle[282∈20] ➊
ᐸperson(id,person_full_name,about,email,config,last_login_from_ip,last_login_from_subnet,user_mac)ᐳ"]]:::sideeffectplan - Object285{{"Object[285∈20] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object285 & Constant1132 & Constant1133 & Constant1134 & Constant1135 & Access277 & Constant1136 & Constant1137 & Constant1138 --> PgInsertSingle282 - Access283{{"Access[283∈20] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access284{{"Access[284∈20] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access283 & Access284 --> Object285 - __Value2 --> Access283 - __Value2 --> Access284 - Object286{{"Object[286∈20] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle282 --> Object286 - Edge322{{"Edge[322∈21] ➊"}}:::plan - PgSelectSingle321{{"PgSelectSingle[321∈21] ➊
ᐸpersonᐳ"}}:::plan - PgCursor324{{"PgCursor[324∈21] ➊"}}:::plan - Connection318{{"Connection[318∈21] ➊
ᐸ314ᐳ"}}:::plan - PgSelectSingle321 & PgCursor324 & Connection318 --> Edge322 - Edge339{{"Edge[339∈21] ➊"}}:::plan - PgSelectSingle338{{"PgSelectSingle[338∈21] ➊
ᐸpersonᐳ"}}:::plan - PgCursor341{{"PgCursor[341∈21] ➊"}}:::plan - Connection335{{"Connection[335∈21] ➊
ᐸ333ᐳ"}}:::plan - PgSelectSingle338 & PgCursor341 & Connection335 --> Edge339 - Edge356{{"Edge[356∈21] ➊"}}:::plan - PgSelectSingle355{{"PgSelectSingle[355∈21] ➊
ᐸpersonᐳ"}}:::plan - PgCursor358{{"PgCursor[358∈21] ➊"}}:::plan - Connection352{{"Connection[352∈21] ➊
ᐸ350ᐳ"}}:::plan - PgSelectSingle355 & PgCursor358 & Connection352 --> Edge356 - Edge373{{"Edge[373∈21] ➊"}}:::plan - PgSelectSingle372{{"PgSelectSingle[372∈21] ➊
ᐸpersonᐳ"}}:::plan - PgCursor375{{"PgCursor[375∈21] ➊"}}:::plan - Connection369{{"Connection[369∈21] ➊
ᐸ367ᐳ"}}:::plan - PgSelectSingle372 & PgCursor375 & Connection369 --> Edge373 - Edge390{{"Edge[390∈21] ➊"}}:::plan - PgSelectSingle389{{"PgSelectSingle[389∈21] ➊
ᐸpersonᐳ"}}:::plan - PgCursor392{{"PgCursor[392∈21] ➊"}}:::plan - Connection386{{"Connection[386∈21] ➊
ᐸ384ᐳ"}}:::plan - PgSelectSingle389 & PgCursor392 & Connection386 --> Edge390 - Edge407{{"Edge[407∈21] ➊"}}:::plan - PgSelectSingle406{{"PgSelectSingle[406∈21] ➊
ᐸpersonᐳ"}}:::plan - PgCursor409{{"PgCursor[409∈21] ➊"}}:::plan - Connection403{{"Connection[403∈21] ➊
ᐸ401ᐳ"}}:::plan - PgSelectSingle406 & PgCursor409 & Connection403 --> Edge407 - Edge424{{"Edge[424∈21] ➊"}}:::plan - PgSelectSingle423{{"PgSelectSingle[423∈21] ➊
ᐸpersonᐳ"}}:::plan - PgCursor426{{"PgCursor[426∈21] ➊"}}:::plan - Connection420{{"Connection[420∈21] ➊
ᐸ418ᐳ"}}:::plan - PgSelectSingle423 & PgCursor426 & Connection420 --> Edge424 - Edge442{{"Edge[442∈21] ➊"}}:::plan - PgSelectSingle441{{"PgSelectSingle[441∈21] ➊
ᐸpersonᐳ"}}:::plan - PgCursor444{{"PgCursor[444∈21] ➊"}}:::plan - Connection438{{"Connection[438∈21] ➊
ᐸ436ᐳ"}}:::plan - PgSelectSingle441 & PgCursor444 & Connection438 --> Edge442 - List290{{"List[290∈21] ➊
ᐸ288,313ᐳ"}}:::plan - PgClassExpression313{{"PgClassExpression[313∈21] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression313 --> List290 - PgSelect314[["PgSelect[314∈21] ➊
ᐸpersonᐳ"]]:::plan - Object285 & PgClassExpression313 --> PgSelect314 - Access323{{"Access[323∈21] ➊
ᐸ314.cursorDetailsᐳ"}}:::plan - PgSelectSingle321 & Access323 --> PgCursor324 - PgSelect333[["PgSelect[333∈21] ➊
ᐸpersonᐳ"]]:::plan - Object285 & PgClassExpression313 --> PgSelect333 - Access340{{"Access[340∈21] ➊
ᐸ333.cursorDetailsᐳ"}}:::plan - PgSelectSingle338 & Access340 --> PgCursor341 - PgSelect350[["PgSelect[350∈21] ➊
ᐸpersonᐳ"]]:::plan - Object285 & PgClassExpression313 --> PgSelect350 - Access357{{"Access[357∈21] ➊
ᐸ350.cursorDetailsᐳ"}}:::plan - PgSelectSingle355 & Access357 --> PgCursor358 - PgSelect367[["PgSelect[367∈21] ➊
ᐸpersonᐳ"]]:::plan - Object285 & PgClassExpression313 --> PgSelect367 - Access374{{"Access[374∈21] ➊
ᐸ367.cursorDetailsᐳ"}}:::plan - PgSelectSingle372 & Access374 --> PgCursor375 - PgSelect384[["PgSelect[384∈21] ➊
ᐸpersonᐳ"]]:::plan - Object285 & PgClassExpression313 --> PgSelect384 - Access391{{"Access[391∈21] ➊
ᐸ384.cursorDetailsᐳ"}}:::plan - PgSelectSingle389 & Access391 --> PgCursor392 - PgSelect401[["PgSelect[401∈21] ➊
ᐸpersonᐳ"]]:::plan - Object285 & PgClassExpression313 --> PgSelect401 - Access408{{"Access[408∈21] ➊
ᐸ401.cursorDetailsᐳ"}}:::plan - PgSelectSingle406 & Access408 --> PgCursor409 - PgSelect418[["PgSelect[418∈21] ➊
ᐸpersonᐳ"]]:::plan - Object285 & PgClassExpression313 --> PgSelect418 - Access425{{"Access[425∈21] ➊
ᐸ418.cursorDetailsᐳ"}}:::plan - PgSelectSingle423 & Access425 --> PgCursor426 - PgSelect436[["PgSelect[436∈21] ➊
ᐸpersonᐳ"]]:::plan - Object285 & PgClassExpression313 --> PgSelect436 - Access443{{"Access[443∈21] ➊
ᐸ436.cursorDetailsᐳ"}}:::plan - PgSelectSingle441 & Access443 --> PgCursor444 - Lambda291{{"Lambda[291∈21] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List290 --> Lambda291 - PgInsertSingle282 --> PgClassExpression313 - First319{{"First[319∈21] ➊"}}:::plan - PgSelectRows320[["PgSelectRows[320∈21] ➊"]]:::plan - PgSelectRows320 --> First319 - PgSelect314 --> PgSelectRows320 - First319 --> PgSelectSingle321 - PgSelect314 --> Access323 - First336{{"First[336∈21] ➊"}}:::plan - PgSelectRows337[["PgSelectRows[337∈21] ➊"]]:::plan - PgSelectRows337 --> First336 - PgSelect333 --> PgSelectRows337 - First336 --> PgSelectSingle338 - PgSelect333 --> Access340 - First353{{"First[353∈21] ➊"}}:::plan - PgSelectRows354[["PgSelectRows[354∈21] ➊"]]:::plan - PgSelectRows354 --> First353 - PgSelect350 --> PgSelectRows354 - First353 --> PgSelectSingle355 - PgSelect350 --> Access357 - First370{{"First[370∈21] ➊"}}:::plan - PgSelectRows371[["PgSelectRows[371∈21] ➊"]]:::plan - PgSelectRows371 --> First370 - PgSelect367 --> PgSelectRows371 - First370 --> PgSelectSingle372 - PgSelect367 --> Access374 - First387{{"First[387∈21] ➊"}}:::plan - PgSelectRows388[["PgSelectRows[388∈21] ➊"]]:::plan - PgSelectRows388 --> First387 - PgSelect384 --> PgSelectRows388 - First387 --> PgSelectSingle389 - PgSelect384 --> Access391 - First404{{"First[404∈21] ➊"}}:::plan - PgSelectRows405[["PgSelectRows[405∈21] ➊"]]:::plan - PgSelectRows405 --> First404 - PgSelect401 --> PgSelectRows405 - First404 --> PgSelectSingle406 - PgSelect401 --> Access408 - First421{{"First[421∈21] ➊"}}:::plan - PgSelectRows422[["PgSelectRows[422∈21] ➊"]]:::plan - PgSelectRows422 --> First421 - PgSelect418 --> PgSelectRows422 - First421 --> PgSelectSingle423 - PgSelect418 --> Access425 - First439{{"First[439∈21] ➊"}}:::plan - PgSelectRows440[["PgSelectRows[440∈21] ➊"]]:::plan - PgSelectRows440 --> First439 - PgSelect436 --> PgSelectRows440 - First439 --> PgSelectSingle441 - PgSelect436 --> Access443 - Lambda451{{"Lambda[451∈21] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant268 --> Lambda451 - PgSelect302[["PgSelect[302∈22] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression301{{"PgClassExpression[301∈22] ➊
ᐸ__person__ᐳ"}}:::plan - Object285 & PgClassExpression301 & Constant1139 --> PgSelect302 - PgClassExpression293{{"PgClassExpression[293∈22] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgInsertSingle282 --> PgClassExpression293 - PgClassExpression294{{"PgClassExpression[294∈22] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgInsertSingle282 --> PgClassExpression294 - PgClassExpression295{{"PgClassExpression[295∈22] ➊
ᐸ__person__.”about”ᐳ"}}:::plan - PgInsertSingle282 --> PgClassExpression295 - PgClassExpression296{{"PgClassExpression[296∈22] ➊
ᐸ__person__.”config”ᐳ"}}:::plan - PgInsertSingle282 --> PgClassExpression296 - PgClassExpression297{{"PgClassExpression[297∈22] ➊
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgInsertSingle282 --> PgClassExpression297 - PgClassExpression298{{"PgClassExpression[298∈22] ➊
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgInsertSingle282 --> PgClassExpression298 - PgClassExpression299{{"PgClassExpression[299∈22] ➊
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgInsertSingle282 --> PgClassExpression299 - PgInsertSingle282 --> PgClassExpression301 - First306{{"First[306∈22] ➊"}}:::plan - PgSelectRows307[["PgSelectRows[307∈22] ➊"]]:::plan - PgSelectRows307 --> First306 - PgSelect302 --> PgSelectRows307 - PgSelectSingle308{{"PgSelectSingle[308∈22] ➊
ᐸpersonᐳ"}}:::plan - First306 --> PgSelectSingle308 - PgClassExpression310{{"PgClassExpression[310∈22] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle308 --> PgClassExpression310 - List327{{"List[327∈24] ➊
ᐸ288,326ᐳ"}}:::plan - PgClassExpression326{{"PgClassExpression[326∈24] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression326 --> List327 - PgSelectSingle321 --> PgClassExpression326 - Lambda328{{"Lambda[328∈24] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List327 --> Lambda328 - PgClassExpression329{{"PgClassExpression[329∈24] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle321 --> PgClassExpression329 - List344{{"List[344∈26] ➊
ᐸ288,343ᐳ"}}:::plan - PgClassExpression343{{"PgClassExpression[343∈26] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression343 --> List344 - PgSelectSingle338 --> PgClassExpression343 - Lambda345{{"Lambda[345∈26] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List344 --> Lambda345 - PgClassExpression346{{"PgClassExpression[346∈26] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle338 --> PgClassExpression346 - List361{{"List[361∈28] ➊
ᐸ288,360ᐳ"}}:::plan - PgClassExpression360{{"PgClassExpression[360∈28] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression360 --> List361 - PgSelectSingle355 --> PgClassExpression360 - Lambda362{{"Lambda[362∈28] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List361 --> Lambda362 - PgClassExpression363{{"PgClassExpression[363∈28] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle355 --> PgClassExpression363 - List378{{"List[378∈30] ➊
ᐸ288,377ᐳ"}}:::plan - PgClassExpression377{{"PgClassExpression[377∈30] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression377 --> List378 - PgSelectSingle372 --> PgClassExpression377 - Lambda379{{"Lambda[379∈30] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List378 --> Lambda379 - PgClassExpression380{{"PgClassExpression[380∈30] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle372 --> PgClassExpression380 - List395{{"List[395∈32] ➊
ᐸ288,394ᐳ"}}:::plan - PgClassExpression394{{"PgClassExpression[394∈32] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression394 --> List395 - PgSelectSingle389 --> PgClassExpression394 - Lambda396{{"Lambda[396∈32] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List395 --> Lambda396 - PgClassExpression397{{"PgClassExpression[397∈32] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle389 --> PgClassExpression397 - List412{{"List[412∈34] ➊
ᐸ288,411ᐳ"}}:::plan - PgClassExpression411{{"PgClassExpression[411∈34] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression411 --> List412 - PgSelectSingle406 --> PgClassExpression411 - Lambda413{{"Lambda[413∈34] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List412 --> Lambda413 - PgClassExpression414{{"PgClassExpression[414∈34] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle406 --> PgClassExpression414 - List429{{"List[429∈36] ➊
ᐸ288,428ᐳ"}}:::plan - PgClassExpression428{{"PgClassExpression[428∈36] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression428 --> List429 - PgSelectSingle423 --> PgClassExpression428 - Lambda430{{"Lambda[430∈36] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List429 --> Lambda430 - PgClassExpression431{{"PgClassExpression[431∈36] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle423 --> PgClassExpression431 - List447{{"List[447∈38] ➊
ᐸ288,446ᐳ"}}:::plan - PgClassExpression446{{"PgClassExpression[446∈38] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression446 --> List447 - PgSelectSingle441 --> PgClassExpression446 - Lambda448{{"Lambda[448∈38] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List447 --> Lambda448 - PgClassExpression449{{"PgClassExpression[449∈38] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle441 --> PgClassExpression449 - PgInsertSingle464[["PgInsertSingle[464∈40] ➊
ᐸperson(id,person_full_name,about,email,config,last_login_from_ip,last_login_from_subnet,user_mac)ᐳ"]]:::sideeffectplan - Object467{{"Object[467∈40] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object467 & Constant1110 & Constant1141 & Constant1142 & Constant1143 & Constant144 & Constant1145 & Constant1124 & Constant1146 --> PgInsertSingle464 - Access465{{"Access[465∈40] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access466{{"Access[466∈40] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access465 & Access466 --> Object467 - Object468{{"Object[468∈40] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgInsertSingle464 & Constant1140 --> Object468 - __Value2 --> Access465 - __Value2 --> Access466 - Edge503{{"Edge[503∈41] ➊"}}:::plan - PgSelectSingle502{{"PgSelectSingle[502∈41] ➊
ᐸpersonᐳ"}}:::plan - PgCursor505{{"PgCursor[505∈41] ➊"}}:::plan - Connection499{{"Connection[499∈41] ➊
ᐸ495ᐳ"}}:::plan - PgSelectSingle502 & PgCursor505 & Connection499 --> Edge503 - Edge520{{"Edge[520∈41] ➊"}}:::plan - PgSelectSingle519{{"PgSelectSingle[519∈41] ➊
ᐸpersonᐳ"}}:::plan - PgCursor522{{"PgCursor[522∈41] ➊"}}:::plan - Connection516{{"Connection[516∈41] ➊
ᐸ514ᐳ"}}:::plan - PgSelectSingle519 & PgCursor522 & Connection516 --> Edge520 - Edge537{{"Edge[537∈41] ➊"}}:::plan - PgSelectSingle536{{"PgSelectSingle[536∈41] ➊
ᐸpersonᐳ"}}:::plan - PgCursor539{{"PgCursor[539∈41] ➊"}}:::plan - Connection533{{"Connection[533∈41] ➊
ᐸ531ᐳ"}}:::plan - PgSelectSingle536 & PgCursor539 & Connection533 --> Edge537 - Edge554{{"Edge[554∈41] ➊"}}:::plan - PgSelectSingle553{{"PgSelectSingle[553∈41] ➊
ᐸpersonᐳ"}}:::plan - PgCursor556{{"PgCursor[556∈41] ➊"}}:::plan - Connection550{{"Connection[550∈41] ➊
ᐸ548ᐳ"}}:::plan - PgSelectSingle553 & PgCursor556 & Connection550 --> Edge554 - Edge571{{"Edge[571∈41] ➊"}}:::plan - PgSelectSingle570{{"PgSelectSingle[570∈41] ➊
ᐸpersonᐳ"}}:::plan - PgCursor573{{"PgCursor[573∈41] ➊"}}:::plan - Connection567{{"Connection[567∈41] ➊
ᐸ565ᐳ"}}:::plan - PgSelectSingle570 & PgCursor573 & Connection567 --> Edge571 - Edge588{{"Edge[588∈41] ➊"}}:::plan - PgSelectSingle587{{"PgSelectSingle[587∈41] ➊
ᐸpersonᐳ"}}:::plan - PgCursor590{{"PgCursor[590∈41] ➊"}}:::plan - Connection584{{"Connection[584∈41] ➊
ᐸ582ᐳ"}}:::plan - PgSelectSingle587 & PgCursor590 & Connection584 --> Edge588 - Edge605{{"Edge[605∈41] ➊"}}:::plan - PgSelectSingle604{{"PgSelectSingle[604∈41] ➊
ᐸpersonᐳ"}}:::plan - PgCursor607{{"PgCursor[607∈41] ➊"}}:::plan - Connection601{{"Connection[601∈41] ➊
ᐸ599ᐳ"}}:::plan - PgSelectSingle604 & PgCursor607 & Connection601 --> Edge605 - Edge623{{"Edge[623∈41] ➊"}}:::plan - PgSelectSingle622{{"PgSelectSingle[622∈41] ➊
ᐸpersonᐳ"}}:::plan - PgCursor625{{"PgCursor[625∈41] ➊"}}:::plan - Connection619{{"Connection[619∈41] ➊
ᐸ617ᐳ"}}:::plan - PgSelectSingle622 & PgCursor625 & Connection619 --> Edge623 - List471{{"List[471∈41] ➊
ᐸ288,494ᐳ"}}:::plan - PgClassExpression494{{"PgClassExpression[494∈41] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression494 --> List471 - PgSelect495[["PgSelect[495∈41] ➊
ᐸpersonᐳ"]]:::plan - Object467 & PgClassExpression494 --> PgSelect495 - Access504{{"Access[504∈41] ➊
ᐸ495.cursorDetailsᐳ"}}:::plan - PgSelectSingle502 & Access504 --> PgCursor505 - PgSelect514[["PgSelect[514∈41] ➊
ᐸpersonᐳ"]]:::plan - Object467 & PgClassExpression494 --> PgSelect514 - Access521{{"Access[521∈41] ➊
ᐸ514.cursorDetailsᐳ"}}:::plan - PgSelectSingle519 & Access521 --> PgCursor522 - PgSelect531[["PgSelect[531∈41] ➊
ᐸpersonᐳ"]]:::plan - Object467 & PgClassExpression494 --> PgSelect531 - Access538{{"Access[538∈41] ➊
ᐸ531.cursorDetailsᐳ"}}:::plan - PgSelectSingle536 & Access538 --> PgCursor539 - PgSelect548[["PgSelect[548∈41] ➊
ᐸpersonᐳ"]]:::plan - Object467 & PgClassExpression494 --> PgSelect548 - Access555{{"Access[555∈41] ➊
ᐸ548.cursorDetailsᐳ"}}:::plan - PgSelectSingle553 & Access555 --> PgCursor556 - PgSelect565[["PgSelect[565∈41] ➊
ᐸpersonᐳ"]]:::plan - Object467 & PgClassExpression494 --> PgSelect565 - Access572{{"Access[572∈41] ➊
ᐸ565.cursorDetailsᐳ"}}:::plan - PgSelectSingle570 & Access572 --> PgCursor573 - PgSelect582[["PgSelect[582∈41] ➊
ᐸpersonᐳ"]]:::plan - Object467 & PgClassExpression494 --> PgSelect582 - Access589{{"Access[589∈41] ➊
ᐸ582.cursorDetailsᐳ"}}:::plan - PgSelectSingle587 & Access589 --> PgCursor590 - PgSelect599[["PgSelect[599∈41] ➊
ᐸpersonᐳ"]]:::plan - Object467 & PgClassExpression494 --> PgSelect599 - Access606{{"Access[606∈41] ➊
ᐸ599.cursorDetailsᐳ"}}:::plan - PgSelectSingle604 & Access606 --> PgCursor607 - PgSelect617[["PgSelect[617∈41] ➊
ᐸpersonᐳ"]]:::plan - Object467 & PgClassExpression494 --> PgSelect617 - Access624{{"Access[624∈41] ➊
ᐸ617.cursorDetailsᐳ"}}:::plan - PgSelectSingle622 & Access624 --> PgCursor625 - Lambda472{{"Lambda[472∈41] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List471 --> Lambda472 - PgInsertSingle464 --> PgClassExpression494 - First500{{"First[500∈41] ➊"}}:::plan - PgSelectRows501[["PgSelectRows[501∈41] ➊"]]:::plan - PgSelectRows501 --> First500 - PgSelect495 --> PgSelectRows501 - First500 --> PgSelectSingle502 - PgSelect495 --> Access504 - First517{{"First[517∈41] ➊"}}:::plan - PgSelectRows518[["PgSelectRows[518∈41] ➊"]]:::plan - PgSelectRows518 --> First517 - PgSelect514 --> PgSelectRows518 - First517 --> PgSelectSingle519 - PgSelect514 --> Access521 - First534{{"First[534∈41] ➊"}}:::plan - PgSelectRows535[["PgSelectRows[535∈41] ➊"]]:::plan - PgSelectRows535 --> First534 - PgSelect531 --> PgSelectRows535 - First534 --> PgSelectSingle536 - PgSelect531 --> Access538 - First551{{"First[551∈41] ➊"}}:::plan - PgSelectRows552[["PgSelectRows[552∈41] ➊"]]:::plan - PgSelectRows552 --> First551 - PgSelect548 --> PgSelectRows552 - First551 --> PgSelectSingle553 - PgSelect548 --> Access555 - First568{{"First[568∈41] ➊"}}:::plan - PgSelectRows569[["PgSelectRows[569∈41] ➊"]]:::plan - PgSelectRows569 --> First568 - PgSelect565 --> PgSelectRows569 - First568 --> PgSelectSingle570 - PgSelect565 --> Access572 - First585{{"First[585∈41] ➊"}}:::plan - PgSelectRows586[["PgSelectRows[586∈41] ➊"]]:::plan - PgSelectRows586 --> First585 - PgSelect582 --> PgSelectRows586 - First585 --> PgSelectSingle587 - PgSelect582 --> Access589 - First602{{"First[602∈41] ➊"}}:::plan - PgSelectRows603[["PgSelectRows[603∈41] ➊"]]:::plan - PgSelectRows603 --> First602 - PgSelect599 --> PgSelectRows603 - First602 --> PgSelectSingle604 - PgSelect599 --> Access606 - First620{{"First[620∈41] ➊"}}:::plan - PgSelectRows621[["PgSelectRows[621∈41] ➊"]]:::plan - PgSelectRows621 --> First620 - PgSelect617 --> PgSelectRows621 - First620 --> PgSelectSingle622 - PgSelect617 --> Access624 - Lambda632{{"Lambda[632∈41] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant268 --> Lambda632 - PgSelect483[["PgSelect[483∈42] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression482{{"PgClassExpression[482∈42] ➊
ᐸ__person__ᐳ"}}:::plan - Object467 & PgClassExpression482 & Constant1139 --> PgSelect483 - PgClassExpression474{{"PgClassExpression[474∈42] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgInsertSingle464 --> PgClassExpression474 - PgClassExpression475{{"PgClassExpression[475∈42] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgInsertSingle464 --> PgClassExpression475 - PgClassExpression476{{"PgClassExpression[476∈42] ➊
ᐸ__person__.”about”ᐳ"}}:::plan - PgInsertSingle464 --> PgClassExpression476 - PgClassExpression477{{"PgClassExpression[477∈42] ➊
ᐸ__person__.”config”ᐳ"}}:::plan - PgInsertSingle464 --> PgClassExpression477 - PgClassExpression478{{"PgClassExpression[478∈42] ➊
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgInsertSingle464 --> PgClassExpression478 - PgClassExpression479{{"PgClassExpression[479∈42] ➊
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgInsertSingle464 --> PgClassExpression479 - PgClassExpression480{{"PgClassExpression[480∈42] ➊
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgInsertSingle464 --> PgClassExpression480 - PgInsertSingle464 --> PgClassExpression482 - First487{{"First[487∈42] ➊"}}:::plan - PgSelectRows488[["PgSelectRows[488∈42] ➊"]]:::plan - PgSelectRows488 --> First487 - PgSelect483 --> PgSelectRows488 - PgSelectSingle489{{"PgSelectSingle[489∈42] ➊
ᐸpersonᐳ"}}:::plan - First487 --> PgSelectSingle489 - PgClassExpression491{{"PgClassExpression[491∈42] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle489 --> PgClassExpression491 - List508{{"List[508∈44] ➊
ᐸ288,507ᐳ"}}:::plan - PgClassExpression507{{"PgClassExpression[507∈44] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression507 --> List508 - PgSelectSingle502 --> PgClassExpression507 - Lambda509{{"Lambda[509∈44] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List508 --> Lambda509 - PgClassExpression510{{"PgClassExpression[510∈44] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle502 --> PgClassExpression510 - List525{{"List[525∈46] ➊
ᐸ288,524ᐳ"}}:::plan - PgClassExpression524{{"PgClassExpression[524∈46] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression524 --> List525 - PgSelectSingle519 --> PgClassExpression524 - Lambda526{{"Lambda[526∈46] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List525 --> Lambda526 - PgClassExpression527{{"PgClassExpression[527∈46] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle519 --> PgClassExpression527 - List542{{"List[542∈48] ➊
ᐸ288,541ᐳ"}}:::plan - PgClassExpression541{{"PgClassExpression[541∈48] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression541 --> List542 - PgSelectSingle536 --> PgClassExpression541 - Lambda543{{"Lambda[543∈48] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List542 --> Lambda543 - PgClassExpression544{{"PgClassExpression[544∈48] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle536 --> PgClassExpression544 - List559{{"List[559∈50] ➊
ᐸ288,558ᐳ"}}:::plan - PgClassExpression558{{"PgClassExpression[558∈50] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression558 --> List559 - PgSelectSingle553 --> PgClassExpression558 - Lambda560{{"Lambda[560∈50] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List559 --> Lambda560 - PgClassExpression561{{"PgClassExpression[561∈50] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle553 --> PgClassExpression561 - List576{{"List[576∈52] ➊
ᐸ288,575ᐳ"}}:::plan - PgClassExpression575{{"PgClassExpression[575∈52] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression575 --> List576 - PgSelectSingle570 --> PgClassExpression575 - Lambda577{{"Lambda[577∈52] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List576 --> Lambda577 - PgClassExpression578{{"PgClassExpression[578∈52] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle570 --> PgClassExpression578 - List593{{"List[593∈54] ➊
ᐸ288,592ᐳ"}}:::plan - PgClassExpression592{{"PgClassExpression[592∈54] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression592 --> List593 - PgSelectSingle587 --> PgClassExpression592 - Lambda594{{"Lambda[594∈54] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List593 --> Lambda594 - PgClassExpression595{{"PgClassExpression[595∈54] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle587 --> PgClassExpression595 - List610{{"List[610∈56] ➊
ᐸ288,609ᐳ"}}:::plan - PgClassExpression609{{"PgClassExpression[609∈56] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression609 --> List610 - PgSelectSingle604 --> PgClassExpression609 - Lambda611{{"Lambda[611∈56] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List610 --> Lambda611 - PgClassExpression612{{"PgClassExpression[612∈56] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle604 --> PgClassExpression612 - List628{{"List[628∈58] ➊
ᐸ288,627ᐳ"}}:::plan - PgClassExpression627{{"PgClassExpression[627∈58] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression627 --> List628 - PgSelectSingle622 --> PgClassExpression627 - Lambda629{{"Lambda[629∈58] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List628 --> Lambda629 - PgClassExpression630{{"PgClassExpression[630∈58] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle622 --> PgClassExpression630 - PgInsertSingle639[["PgInsertSingle[639∈60] ➊
ᐸcompound_key(person_id_2,person_id_1,extra)ᐳ"]]:::sideeffectplan - Object642{{"Object[642∈60] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object642 & Constant1110 & Constant1132 & Constant1072 --> PgInsertSingle639 - Access640{{"Access[640∈60] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access641{{"Access[641∈60] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access640 & Access641 --> Object642 - Object643{{"Object[643∈60] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgInsertSingle639 & Constant1147 --> Object643 - __Value2 --> Access640 - __Value2 --> Access641 - List647{{"List[647∈61] ➊
ᐸ644,676,689ᐳ"}}:::plan - PgClassExpression676{{"PgClassExpression[676∈61] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression689{{"PgClassExpression[689∈61] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Constant644 & PgClassExpression676 & PgClassExpression689 --> List647 - PgSelect653[["PgSelect[653∈61] ➊
ᐸpersonᐳ"]]:::plan - Object642 & PgClassExpression676 --> PgSelect653 - PgSelect666[["PgSelect[666∈61] ➊
ᐸpersonᐳ"]]:::plan - Object642 & PgClassExpression689 --> PgSelect666 - Lambda648{{"Lambda[648∈61] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List647 --> Lambda648 - First657{{"First[657∈61] ➊"}}:::plan - PgSelectRows658[["PgSelectRows[658∈61] ➊"]]:::plan - PgSelectRows658 --> First657 - PgSelect653 --> PgSelectRows658 - PgSelectSingle659{{"PgSelectSingle[659∈61] ➊
ᐸpersonᐳ"}}:::plan - First657 --> PgSelectSingle659 - First668{{"First[668∈61] ➊"}}:::plan - PgSelectRows669[["PgSelectRows[669∈61] ➊"]]:::plan - PgSelectRows669 --> First668 - PgSelect666 --> PgSelectRows669 - PgSelectSingle670{{"PgSelectSingle[670∈61] ➊
ᐸpersonᐳ"}}:::plan - First668 --> PgSelectSingle670 - PgInsertSingle639 --> PgClassExpression676 - PgInsertSingle639 --> PgClassExpression689 - Lambda701{{"Lambda[701∈61] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant268 --> Lambda701 - PgClassExpression651{{"PgClassExpression[651∈62] ➊
ᐸ__compound...__.”extra”ᐳ"}}:::plan - PgInsertSingle639 --> PgClassExpression651 - List662{{"List[662∈63] ➊
ᐸ288,661ᐳ"}}:::plan - PgClassExpression661{{"PgClassExpression[661∈63] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression661 --> List662 - PgSelectSingle659 --> PgClassExpression661 - Lambda663{{"Lambda[663∈63] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List662 --> Lambda663 - PgClassExpression664{{"PgClassExpression[664∈63] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle659 --> PgClassExpression664 - List673{{"List[673∈64] ➊
ᐸ288,672ᐳ"}}:::plan - PgClassExpression672{{"PgClassExpression[672∈64] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression672 --> List673 - PgSelectSingle670 --> PgClassExpression672 - Lambda674{{"Lambda[674∈64] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List673 --> Lambda674 - PgClassExpression675{{"PgClassExpression[675∈64] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle670 --> PgClassExpression675 - List686{{"List[686∈65] ➊
ᐸ288,685ᐳ"}}:::plan - PgClassExpression685{{"PgClassExpression[685∈65] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression685 --> List686 - PgSelectSingle659 --> PgClassExpression685 - Lambda687{{"Lambda[687∈65] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List686 --> Lambda687 - PgClassExpression688{{"PgClassExpression[688∈65] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle659 --> PgClassExpression688 - List697{{"List[697∈66] ➊
ᐸ288,696ᐳ"}}:::plan - PgClassExpression696{{"PgClassExpression[696∈66] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression696 --> List697 - PgSelectSingle670 --> PgClassExpression696 - Lambda698{{"Lambda[698∈66] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List697 --> Lambda698 - PgClassExpression699{{"PgClassExpression[699∈66] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle670 --> PgClassExpression699 - PgInsertSingle706[["PgInsertSingle[706∈68] ➊
ᐸedge_case(not_null_has_default)ᐳ"]]:::sideeffectplan - Object709{{"Object[709∈68] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object709 & Constant1090 --> PgInsertSingle706 - Access707{{"Access[707∈68] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access708{{"Access[708∈68] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access707 & Access708 --> Object709 - __Value2 --> Access707 - __Value2 --> Access708 - Object710{{"Object[710∈68] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle706 --> Object710 - Lambda713{{"Lambda[713∈69] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant268 --> Lambda713 - PgClassExpression711{{"PgClassExpression[711∈70] ➊
ᐸ__edge_cas...s_default”ᐳ"}}:::plan - PgInsertSingle706 --> PgClassExpression711 - Object720{{"Object[720∈72] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access718{{"Access[718∈72] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access719{{"Access[719∈72] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access718 & Access719 --> Object720 - PgInsertSingle717[["PgInsertSingle[717∈72] ➊
ᐸedge_case()ᐳ"]]:::sideeffectplan - Object720 --> PgInsertSingle717 - __Value2 --> Access718 - __Value2 --> Access719 - Object721{{"Object[721∈72] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle717 --> Object721 - Lambda724{{"Lambda[724∈73] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant268 --> Lambda724 - PgClassExpression722{{"PgClassExpression[722∈74] ➊
ᐸ__edge_cas...s_default”ᐳ"}}:::plan - PgInsertSingle717 --> PgClassExpression722 - PgInsertSingle736[["PgInsertSingle[736∈76] ➊
ᐸperson(id,person_full_name,about,email,config,last_login_from_ip,last_login_from_subnet,user_mac)ᐳ"]]:::sideeffectplan - Object739{{"Object[739∈76] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object739 & Constant1148 & Constant1149 & Constant144 & Constant1150 & __InputDynamicScalar732 & Constant1151 & Constant1152 & Constant1153 --> PgInsertSingle736 - Access737{{"Access[737∈76] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access738{{"Access[738∈76] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access737 & Access738 --> Object739 - __Value2 --> Access737 - __Value2 --> Access738 - Object740{{"Object[740∈76] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle736 --> Object740 - Edge776{{"Edge[776∈77] ➊"}}:::plan - PgSelectSingle775{{"PgSelectSingle[775∈77] ➊
ᐸpersonᐳ"}}:::plan - PgCursor778{{"PgCursor[778∈77] ➊"}}:::plan - Connection772{{"Connection[772∈77] ➊
ᐸ768ᐳ"}}:::plan - PgSelectSingle775 & PgCursor778 & Connection772 --> Edge776 - Edge793{{"Edge[793∈77] ➊"}}:::plan - PgSelectSingle792{{"PgSelectSingle[792∈77] ➊
ᐸpersonᐳ"}}:::plan - PgCursor795{{"PgCursor[795∈77] ➊"}}:::plan - Connection789{{"Connection[789∈77] ➊
ᐸ787ᐳ"}}:::plan - PgSelectSingle792 & PgCursor795 & Connection789 --> Edge793 - Edge810{{"Edge[810∈77] ➊"}}:::plan - PgSelectSingle809{{"PgSelectSingle[809∈77] ➊
ᐸpersonᐳ"}}:::plan - PgCursor812{{"PgCursor[812∈77] ➊"}}:::plan - Connection806{{"Connection[806∈77] ➊
ᐸ804ᐳ"}}:::plan - PgSelectSingle809 & PgCursor812 & Connection806 --> Edge810 - Edge827{{"Edge[827∈77] ➊"}}:::plan - PgSelectSingle826{{"PgSelectSingle[826∈77] ➊
ᐸpersonᐳ"}}:::plan - PgCursor829{{"PgCursor[829∈77] ➊"}}:::plan - Connection823{{"Connection[823∈77] ➊
ᐸ821ᐳ"}}:::plan - PgSelectSingle826 & PgCursor829 & Connection823 --> Edge827 - Edge844{{"Edge[844∈77] ➊"}}:::plan - PgSelectSingle843{{"PgSelectSingle[843∈77] ➊
ᐸpersonᐳ"}}:::plan - PgCursor846{{"PgCursor[846∈77] ➊"}}:::plan - Connection840{{"Connection[840∈77] ➊
ᐸ838ᐳ"}}:::plan - PgSelectSingle843 & PgCursor846 & Connection840 --> Edge844 - Edge861{{"Edge[861∈77] ➊"}}:::plan - PgSelectSingle860{{"PgSelectSingle[860∈77] ➊
ᐸpersonᐳ"}}:::plan - PgCursor863{{"PgCursor[863∈77] ➊"}}:::plan - Connection857{{"Connection[857∈77] ➊
ᐸ855ᐳ"}}:::plan - PgSelectSingle860 & PgCursor863 & Connection857 --> Edge861 - Edge878{{"Edge[878∈77] ➊"}}:::plan - PgSelectSingle877{{"PgSelectSingle[877∈77] ➊
ᐸpersonᐳ"}}:::plan - PgCursor880{{"PgCursor[880∈77] ➊"}}:::plan - Connection874{{"Connection[874∈77] ➊
ᐸ872ᐳ"}}:::plan - PgSelectSingle877 & PgCursor880 & Connection874 --> Edge878 - Edge896{{"Edge[896∈77] ➊"}}:::plan - PgSelectSingle895{{"PgSelectSingle[895∈77] ➊
ᐸpersonᐳ"}}:::plan - PgCursor898{{"PgCursor[898∈77] ➊"}}:::plan - Connection892{{"Connection[892∈77] ➊
ᐸ890ᐳ"}}:::plan - PgSelectSingle895 & PgCursor898 & Connection892 --> Edge896 - List744{{"List[744∈77] ➊
ᐸ288,767ᐳ"}}:::plan - PgClassExpression767{{"PgClassExpression[767∈77] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression767 --> List744 - PgSelect768[["PgSelect[768∈77] ➊
ᐸpersonᐳ"]]:::plan - Object739 & PgClassExpression767 --> PgSelect768 - Access777{{"Access[777∈77] ➊
ᐸ768.cursorDetailsᐳ"}}:::plan - PgSelectSingle775 & Access777 --> PgCursor778 - PgSelect787[["PgSelect[787∈77] ➊
ᐸpersonᐳ"]]:::plan - Object739 & PgClassExpression767 --> PgSelect787 - Access794{{"Access[794∈77] ➊
ᐸ787.cursorDetailsᐳ"}}:::plan - PgSelectSingle792 & Access794 --> PgCursor795 - PgSelect804[["PgSelect[804∈77] ➊
ᐸpersonᐳ"]]:::plan - Object739 & PgClassExpression767 --> PgSelect804 - Access811{{"Access[811∈77] ➊
ᐸ804.cursorDetailsᐳ"}}:::plan - PgSelectSingle809 & Access811 --> PgCursor812 - PgSelect821[["PgSelect[821∈77] ➊
ᐸpersonᐳ"]]:::plan - Object739 & PgClassExpression767 --> PgSelect821 - Access828{{"Access[828∈77] ➊
ᐸ821.cursorDetailsᐳ"}}:::plan - PgSelectSingle826 & Access828 --> PgCursor829 - PgSelect838[["PgSelect[838∈77] ➊
ᐸpersonᐳ"]]:::plan - Object739 & PgClassExpression767 --> PgSelect838 - Access845{{"Access[845∈77] ➊
ᐸ838.cursorDetailsᐳ"}}:::plan - PgSelectSingle843 & Access845 --> PgCursor846 - PgSelect855[["PgSelect[855∈77] ➊
ᐸpersonᐳ"]]:::plan - Object739 & PgClassExpression767 --> PgSelect855 - Access862{{"Access[862∈77] ➊
ᐸ855.cursorDetailsᐳ"}}:::plan - PgSelectSingle860 & Access862 --> PgCursor863 - PgSelect872[["PgSelect[872∈77] ➊
ᐸpersonᐳ"]]:::plan - Object739 & PgClassExpression767 --> PgSelect872 - Access879{{"Access[879∈77] ➊
ᐸ872.cursorDetailsᐳ"}}:::plan - PgSelectSingle877 & Access879 --> PgCursor880 - PgSelect890[["PgSelect[890∈77] ➊
ᐸpersonᐳ"]]:::plan - Object739 & PgClassExpression767 --> PgSelect890 - Access897{{"Access[897∈77] ➊
ᐸ890.cursorDetailsᐳ"}}:::plan - PgSelectSingle895 & Access897 --> PgCursor898 - Lambda745{{"Lambda[745∈77] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List744 --> Lambda745 - PgInsertSingle736 --> PgClassExpression767 - First773{{"First[773∈77] ➊"}}:::plan - PgSelectRows774[["PgSelectRows[774∈77] ➊"]]:::plan - PgSelectRows774 --> First773 - PgSelect768 --> PgSelectRows774 - First773 --> PgSelectSingle775 - PgSelect768 --> Access777 - First790{{"First[790∈77] ➊"}}:::plan - PgSelectRows791[["PgSelectRows[791∈77] ➊"]]:::plan - PgSelectRows791 --> First790 - PgSelect787 --> PgSelectRows791 - First790 --> PgSelectSingle792 - PgSelect787 --> Access794 - First807{{"First[807∈77] ➊"}}:::plan - PgSelectRows808[["PgSelectRows[808∈77] ➊"]]:::plan - PgSelectRows808 --> First807 - PgSelect804 --> PgSelectRows808 - First807 --> PgSelectSingle809 - PgSelect804 --> Access811 - First824{{"First[824∈77] ➊"}}:::plan - PgSelectRows825[["PgSelectRows[825∈77] ➊"]]:::plan - PgSelectRows825 --> First824 - PgSelect821 --> PgSelectRows825 - First824 --> PgSelectSingle826 - PgSelect821 --> Access828 - First841{{"First[841∈77] ➊"}}:::plan - PgSelectRows842[["PgSelectRows[842∈77] ➊"]]:::plan - PgSelectRows842 --> First841 - PgSelect838 --> PgSelectRows842 - First841 --> PgSelectSingle843 - PgSelect838 --> Access845 - First858{{"First[858∈77] ➊"}}:::plan - PgSelectRows859[["PgSelectRows[859∈77] ➊"]]:::plan - PgSelectRows859 --> First858 - PgSelect855 --> PgSelectRows859 - First858 --> PgSelectSingle860 - PgSelect855 --> Access862 - First875{{"First[875∈77] ➊"}}:::plan - PgSelectRows876[["PgSelectRows[876∈77] ➊"]]:::plan - PgSelectRows876 --> First875 - PgSelect872 --> PgSelectRows876 - First875 --> PgSelectSingle877 - PgSelect872 --> Access879 - First893{{"First[893∈77] ➊"}}:::plan - PgSelectRows894[["PgSelectRows[894∈77] ➊"]]:::plan - PgSelectRows894 --> First893 - PgSelect890 --> PgSelectRows894 - First893 --> PgSelectSingle895 - PgSelect890 --> Access897 - Lambda905{{"Lambda[905∈77] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant268 --> Lambda905 - PgSelect756[["PgSelect[756∈78] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression755{{"PgClassExpression[755∈78] ➊
ᐸ__person__ᐳ"}}:::plan - Object739 & PgClassExpression755 & Constant1139 --> PgSelect756 - PgClassExpression747{{"PgClassExpression[747∈78] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgInsertSingle736 --> PgClassExpression747 - PgClassExpression748{{"PgClassExpression[748∈78] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgInsertSingle736 --> PgClassExpression748 - PgClassExpression749{{"PgClassExpression[749∈78] ➊
ᐸ__person__.”about”ᐳ"}}:::plan - PgInsertSingle736 --> PgClassExpression749 - PgClassExpression750{{"PgClassExpression[750∈78] ➊
ᐸ__person__.”config”ᐳ"}}:::plan - PgInsertSingle736 --> PgClassExpression750 - PgClassExpression751{{"PgClassExpression[751∈78] ➊
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgInsertSingle736 --> PgClassExpression751 - PgClassExpression752{{"PgClassExpression[752∈78] ➊
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgInsertSingle736 --> PgClassExpression752 - PgClassExpression753{{"PgClassExpression[753∈78] ➊
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgInsertSingle736 --> PgClassExpression753 - PgInsertSingle736 --> PgClassExpression755 - First760{{"First[760∈78] ➊"}}:::plan - PgSelectRows761[["PgSelectRows[761∈78] ➊"]]:::plan - PgSelectRows761 --> First760 - PgSelect756 --> PgSelectRows761 - PgSelectSingle762{{"PgSelectSingle[762∈78] ➊
ᐸpersonᐳ"}}:::plan - First760 --> PgSelectSingle762 - PgClassExpression764{{"PgClassExpression[764∈78] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle762 --> PgClassExpression764 - List781{{"List[781∈80] ➊
ᐸ288,780ᐳ"}}:::plan - PgClassExpression780{{"PgClassExpression[780∈80] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression780 --> List781 - PgSelectSingle775 --> PgClassExpression780 - Lambda782{{"Lambda[782∈80] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List781 --> Lambda782 - PgClassExpression783{{"PgClassExpression[783∈80] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle775 --> PgClassExpression783 - List798{{"List[798∈82] ➊
ᐸ288,797ᐳ"}}:::plan - PgClassExpression797{{"PgClassExpression[797∈82] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression797 --> List798 - PgSelectSingle792 --> PgClassExpression797 - Lambda799{{"Lambda[799∈82] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List798 --> Lambda799 - PgClassExpression800{{"PgClassExpression[800∈82] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle792 --> PgClassExpression800 - List815{{"List[815∈84] ➊
ᐸ288,814ᐳ"}}:::plan - PgClassExpression814{{"PgClassExpression[814∈84] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression814 --> List815 - PgSelectSingle809 --> PgClassExpression814 - Lambda816{{"Lambda[816∈84] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List815 --> Lambda816 - PgClassExpression817{{"PgClassExpression[817∈84] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle809 --> PgClassExpression817 - List832{{"List[832∈86] ➊
ᐸ288,831ᐳ"}}:::plan - PgClassExpression831{{"PgClassExpression[831∈86] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression831 --> List832 - PgSelectSingle826 --> PgClassExpression831 - Lambda833{{"Lambda[833∈86] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List832 --> Lambda833 - PgClassExpression834{{"PgClassExpression[834∈86] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle826 --> PgClassExpression834 - List849{{"List[849∈88] ➊
ᐸ288,848ᐳ"}}:::plan - PgClassExpression848{{"PgClassExpression[848∈88] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression848 --> List849 - PgSelectSingle843 --> PgClassExpression848 - Lambda850{{"Lambda[850∈88] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List849 --> Lambda850 - PgClassExpression851{{"PgClassExpression[851∈88] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle843 --> PgClassExpression851 - List866{{"List[866∈90] ➊
ᐸ288,865ᐳ"}}:::plan - PgClassExpression865{{"PgClassExpression[865∈90] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression865 --> List866 - PgSelectSingle860 --> PgClassExpression865 - Lambda867{{"Lambda[867∈90] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List866 --> Lambda867 - PgClassExpression868{{"PgClassExpression[868∈90] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle860 --> PgClassExpression868 - List883{{"List[883∈92] ➊
ᐸ288,882ᐳ"}}:::plan - PgClassExpression882{{"PgClassExpression[882∈92] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression882 --> List883 - PgSelectSingle877 --> PgClassExpression882 - Lambda884{{"Lambda[884∈92] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List883 --> Lambda884 - PgClassExpression885{{"PgClassExpression[885∈92] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle877 --> PgClassExpression885 - List901{{"List[901∈94] ➊
ᐸ288,900ᐳ"}}:::plan - PgClassExpression900{{"PgClassExpression[900∈94] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant288 & PgClassExpression900 --> List901 - PgSelectSingle895 --> PgClassExpression900 - Lambda902{{"Lambda[902∈94] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List901 --> Lambda902 - PgClassExpression903{{"PgClassExpression[903∈94] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle895 --> PgClassExpression903 - PgInsertSingle913[["PgInsertSingle[913∈96] ➊
ᐸperson(id,person_full_name,about,email)ᐳ"]]:::sideeffectplan - Object916{{"Object[916∈96] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object916 & Constant1154 & Constant1155 & Constant144 & Constant1139 --> PgInsertSingle913 - Access914{{"Access[914∈96] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access915{{"Access[915∈96] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access914 & Access915 --> Object916 - __Value2 --> Access914 - __Value2 --> Access915 - Object917{{"Object[917∈96] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle913 --> Object917 - PgSelect920[["PgSelect[920∈98] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression919{{"PgClassExpression[919∈98] ➊
ᐸ__person__ᐳ"}}:::plan - Object916 & PgClassExpression919 & Constant1139 --> PgSelect920 - PgInsertSingle913 --> PgClassExpression919 - First924{{"First[924∈98] ➊"}}:::plan - PgSelectRows925[["PgSelectRows[925∈98] ➊"]]:::plan + Constant92{{"Constant[92∈0] ➊
ᐸ'types'ᐳ"}}:::plan + Constant239{{"Constant[239∈0] ➊
ᐸ'people'ᐳ"}}:::plan + Constant563{{"Constant[563∈0] ➊
ᐸ'compound_keys'ᐳ"}}:::plan + PgInsertSingle85[["PgInsertSingle[85∈1] ➊
ᐸtypes()ᐳ"]]:::sideeffectplan + Object88 & ApplyInput89 --> PgInsertSingle85 + List95{{"List[95∈1] ➊
ᐸ92,93ᐳ"}}:::plan + PgClassExpression93{{"PgClassExpression[93∈1] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + Constant92 & PgClassExpression93 --> List95 + PgSelect156[["PgSelect[156∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression158{{"PgFromExpression[158∈1] ➊"}}:::plan + Object88 & PgFromExpression158 --> PgSelect156 + PgSelect170[["PgSelect[170∈1] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression172{{"PgFromExpression[172∈1] ➊"}}:::plan + Object88 & PgFromExpression172 --> PgSelect170 + PgSelect177[["PgSelect[177∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression179{{"PgFromExpression[179∈1] ➊"}}:::plan + Object88 & PgFromExpression179 --> PgSelect177 + PgSelect191[["PgSelect[191∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression193{{"PgFromExpression[193∈1] ➊"}}:::plan + Object88 & PgFromExpression193 --> PgSelect191 + Object90{{"Object[90∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle85 --> Object90 + Access91{{"Access[91∈1] ➊
ᐸ85.m.clientMutationIdᐳ"}}:::plan + PgInsertSingle85 --> Access91 + Access94{{"Access[94∈1] ➊
ᐸ85.tᐳ"}}:::plan + Access94 --> PgClassExpression93 + PgInsertSingle85 --> Access94 + Lambda96{{"Lambda[96∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List95 --> Lambda96 + PgClassExpression98{{"PgClassExpression[98∈1] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan + Access94 --> PgClassExpression98 + PgClassExpression99{{"PgClassExpression[99∈1] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan + Access94 --> PgClassExpression99 + PgClassExpression100{{"PgClassExpression[100∈1] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan + Access94 --> PgClassExpression100 + PgClassExpression101{{"PgClassExpression[101∈1] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan + Access94 --> PgClassExpression101 + PgClassExpression102{{"PgClassExpression[102∈1] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan + Access94 --> PgClassExpression102 + PgClassExpression103{{"PgClassExpression[103∈1] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan + Access94 --> PgClassExpression103 + PgClassExpression104{{"PgClassExpression[104∈1] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan + Access94 --> PgClassExpression104 + PgClassExpression105{{"PgClassExpression[105∈1] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan + Access94 --> PgClassExpression105 + PgClassExpression107{{"PgClassExpression[107∈1] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan + Access94 --> PgClassExpression107 + PgClassExpression108{{"PgClassExpression[108∈1] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan + Access94 --> PgClassExpression108 + PgClassExpression109{{"PgClassExpression[109∈1] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan + Access94 --> PgClassExpression109 + PgClassExpression111{{"PgClassExpression[111∈1] ➊
ᐸ__types__.”json”ᐳ"}}:::plan + Access94 --> PgClassExpression111 + PgClassExpression112{{"PgClassExpression[112∈1] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan + Access94 --> PgClassExpression112 + PgClassExpression113{{"PgClassExpression[113∈1] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan + Access94 --> PgClassExpression113 + Access114{{"Access[114∈1] ➊
ᐸ113.startᐳ"}}:::plan + PgClassExpression113 --> Access114 + Access115{{"Access[115∈1] ➊
ᐸ113.start.valueᐳ"}}:::plan + PgClassExpression113 --> Access115 + Access116{{"Access[116∈1] ➊
ᐸ113.start.inclusiveᐳ"}}:::plan + PgClassExpression113 --> Access116 + Access117{{"Access[117∈1] ➊
ᐸ113.endᐳ"}}:::plan + PgClassExpression113 --> Access117 + Access118{{"Access[118∈1] ➊
ᐸ113.end.valueᐳ"}}:::plan + PgClassExpression113 --> Access118 + Access119{{"Access[119∈1] ➊
ᐸ113.end.inclusiveᐳ"}}:::plan + PgClassExpression113 --> Access119 + PgClassExpression120{{"PgClassExpression[120∈1] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan + Access94 --> PgClassExpression120 + Access121{{"Access[121∈1] ➊
ᐸ120.startᐳ"}}:::plan + PgClassExpression120 --> Access121 + Access122{{"Access[122∈1] ➊
ᐸ120.start.valueᐳ"}}:::plan + PgClassExpression120 --> Access122 + Access123{{"Access[123∈1] ➊
ᐸ120.start.inclusiveᐳ"}}:::plan + PgClassExpression120 --> Access123 + Access124{{"Access[124∈1] ➊
ᐸ120.endᐳ"}}:::plan + PgClassExpression120 --> Access124 + Access125{{"Access[125∈1] ➊
ᐸ120.end.valueᐳ"}}:::plan + PgClassExpression120 --> Access125 + Access126{{"Access[126∈1] ➊
ᐸ120.end.inclusiveᐳ"}}:::plan + PgClassExpression120 --> Access126 + PgClassExpression127{{"PgClassExpression[127∈1] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan + Access94 --> PgClassExpression127 + Access128{{"Access[128∈1] ➊
ᐸ127.startᐳ"}}:::plan + PgClassExpression127 --> Access128 + Access129{{"Access[129∈1] ➊
ᐸ127.start.valueᐳ"}}:::plan + PgClassExpression127 --> Access129 + Access130{{"Access[130∈1] ➊
ᐸ127.start.inclusiveᐳ"}}:::plan + PgClassExpression127 --> Access130 + Access131{{"Access[131∈1] ➊
ᐸ127.endᐳ"}}:::plan + PgClassExpression127 --> Access131 + Access132{{"Access[132∈1] ➊
ᐸ127.end.valueᐳ"}}:::plan + PgClassExpression127 --> Access132 + Access133{{"Access[133∈1] ➊
ᐸ127.end.inclusiveᐳ"}}:::plan + PgClassExpression127 --> Access133 + PgClassExpression134{{"PgClassExpression[134∈1] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan + Access94 --> PgClassExpression134 + PgClassExpression135{{"PgClassExpression[135∈1] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan + Access94 --> PgClassExpression135 + PgClassExpression136{{"PgClassExpression[136∈1] ➊
ᐸ__types__.”date”ᐳ"}}:::plan + Access94 --> PgClassExpression136 + PgClassExpression137{{"PgClassExpression[137∈1] ➊
ᐸ__types__.”time”ᐳ"}}:::plan + Access94 --> PgClassExpression137 + PgClassExpression138{{"PgClassExpression[138∈1] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan + Access94 --> PgClassExpression138 + PgClassExpression139{{"PgClassExpression[139∈1] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan + Access94 --> PgClassExpression139 + Access140{{"Access[140∈1] ➊
ᐸ139.secondsᐳ"}}:::plan + PgClassExpression139 --> Access140 + Access141{{"Access[141∈1] ➊
ᐸ139.minutesᐳ"}}:::plan + PgClassExpression139 --> Access141 + Access142{{"Access[142∈1] ➊
ᐸ139.hoursᐳ"}}:::plan + PgClassExpression139 --> Access142 + Access143{{"Access[143∈1] ➊
ᐸ139.daysᐳ"}}:::plan + PgClassExpression139 --> Access143 + Access144{{"Access[144∈1] ➊
ᐸ139.monthsᐳ"}}:::plan + PgClassExpression139 --> Access144 + Access145{{"Access[145∈1] ➊
ᐸ139.yearsᐳ"}}:::plan + PgClassExpression139 --> Access145 + PgClassExpression146{{"PgClassExpression[146∈1] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan + Access94 --> PgClassExpression146 + PgClassExpression154{{"PgClassExpression[154∈1] ➊
ᐸ__types__.”money”ᐳ"}}:::plan + Access94 --> PgClassExpression154 + PgClassExpression155{{"PgClassExpression[155∈1] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + Access94 --> PgClassExpression155 + PgClassExpression155 --> PgFromExpression158 + First159{{"First[159∈1] ➊"}}:::plan + PgSelectRows160[["PgSelectRows[160∈1] ➊"]]:::plan + PgSelectRows160 --> First159 + PgSelect156 --> PgSelectRows160 + PgSelectSingle161{{"PgSelectSingle[161∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First159 --> PgSelectSingle161 + PgClassExpression162{{"PgClassExpression[162∈1] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression162 + PgClassExpression163{{"PgClassExpression[163∈1] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression163 + PgClassExpression164{{"PgClassExpression[164∈1] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression164 + PgClassExpression165{{"PgClassExpression[165∈1] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression165 + PgClassExpression166{{"PgClassExpression[166∈1] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression166 + PgClassExpression167{{"PgClassExpression[167∈1] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression167 + PgClassExpression168{{"PgClassExpression[168∈1] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression168 + PgClassExpression169{{"PgClassExpression[169∈1] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + Access94 --> PgClassExpression169 + PgClassExpression169 --> PgFromExpression172 + First173{{"First[173∈1] ➊"}}:::plan + PgSelectRows174[["PgSelectRows[174∈1] ➊"]]:::plan + PgSelectRows174 --> First173 + PgSelect170 --> PgSelectRows174 + PgSelectSingle175{{"PgSelectSingle[175∈1] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First173 --> PgSelectSingle175 + PgClassExpression176{{"PgClassExpression[176∈1] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle175 --> PgClassExpression176 + PgClassExpression176 --> PgFromExpression179 + First180{{"First[180∈1] ➊"}}:::plan + PgSelectRows181[["PgSelectRows[181∈1] ➊"]]:::plan + PgSelectRows181 --> First180 + PgSelect177 --> PgSelectRows181 + PgSelectSingle182{{"PgSelectSingle[182∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First180 --> PgSelectSingle182 + PgClassExpression183{{"PgClassExpression[183∈1] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression183 + PgClassExpression184{{"PgClassExpression[184∈1] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression184 + PgClassExpression185{{"PgClassExpression[185∈1] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression185 + PgClassExpression186{{"PgClassExpression[186∈1] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression186 + PgClassExpression187{{"PgClassExpression[187∈1] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression187 + PgClassExpression188{{"PgClassExpression[188∈1] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression188 + PgClassExpression189{{"PgClassExpression[189∈1] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression189 + PgClassExpression190{{"PgClassExpression[190∈1] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle175 --> PgClassExpression190 + PgClassExpression190 --> PgFromExpression193 + First194{{"First[194∈1] ➊"}}:::plan + PgSelectRows195[["PgSelectRows[195∈1] ➊"]]:::plan + PgSelectRows195 --> First194 + PgSelect191 --> PgSelectRows195 + PgSelectSingle196{{"PgSelectSingle[196∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First194 --> PgSelectSingle196 + PgClassExpression197{{"PgClassExpression[197∈1] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle196 --> PgClassExpression197 + PgClassExpression198{{"PgClassExpression[198∈1] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle196 --> PgClassExpression198 + PgClassExpression199{{"PgClassExpression[199∈1] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle196 --> PgClassExpression199 + PgClassExpression200{{"PgClassExpression[200∈1] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle196 --> PgClassExpression200 + PgClassExpression201{{"PgClassExpression[201∈1] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle196 --> PgClassExpression201 + PgClassExpression202{{"PgClassExpression[202∈1] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle196 --> PgClassExpression202 + PgClassExpression203{{"PgClassExpression[203∈1] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle196 --> PgClassExpression203 + PgClassExpression204{{"PgClassExpression[204∈1] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle175 --> PgClassExpression204 + PgClassExpression205{{"PgClassExpression[205∈1] ➊
ᐸ__types__.”point”ᐳ"}}:::plan + Access94 --> PgClassExpression205 + Access206{{"Access[206∈1] ➊
ᐸ205.xᐳ"}}:::plan + PgClassExpression205 --> Access206 + Access207{{"Access[207∈1] ➊
ᐸ205.yᐳ"}}:::plan + PgClassExpression205 --> Access207 + PgClassExpression208{{"PgClassExpression[208∈1] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan + Access94 --> PgClassExpression208 + Access209{{"Access[209∈1] ➊
ᐸ208.xᐳ"}}:::plan + PgClassExpression208 --> Access209 + Access210{{"Access[210∈1] ➊
ᐸ208.yᐳ"}}:::plan + PgClassExpression208 --> Access210 + PgClassExpression211{{"PgClassExpression[211∈1] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan + Access94 --> PgClassExpression211 + PgClassExpression212{{"PgClassExpression[212∈1] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan + Access94 --> PgClassExpression212 + PgClassExpression213{{"PgClassExpression[213∈1] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan + Access94 --> PgClassExpression213 + PgClassExpression214{{"PgClassExpression[214∈1] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + Access94 --> PgClassExpression214 + PgClassExpression216{{"PgClassExpression[216∈1] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + Access94 --> PgClassExpression216 + __Item106[/"__Item[106∈2]
ᐸ105ᐳ"\]:::itemplan + PgClassExpression105 ==> __Item106 + __Item110[/"__Item[110∈3]
ᐸ109ᐳ"\]:::itemplan + PgClassExpression109 ==> __Item110 + __Item147[/"__Item[147∈4]
ᐸ146ᐳ"\]:::itemplan + PgClassExpression146 ==> __Item147 + __Item215[/"__Item[215∈5]
ᐸ214ᐳ"\]:::itemplan + PgClassExpression214 ==> __Item215 + __Item217[/"__Item[217∈6]
ᐸ216ᐳ"\]:::itemplan + PgClassExpression216 ==> __Item217 + PgSelect254[["PgSelect[254∈7] ➊
ᐸpersonᐳ"]]:::plan + Object235{{"Object[235∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression256{{"PgFromExpression[256∈7] ➊"}}:::plan + PgFromExpression261{{"PgFromExpression[261∈7] ➊"}}:::plan + Object235 & PgFromExpression256 & PgFromExpression261 --> PgSelect254 + Edge272{{"Edge[272∈7] ➊"}}:::plan + PgSelectSingle271{{"PgSelectSingle[271∈7] ➊
ᐸpersonᐳ"}}:::plan + PgCursor274{{"PgCursor[274∈7] ➊"}}:::plan + Connection268{{"Connection[268∈7] ➊
ᐸ265ᐳ"}}:::plan + PgSelectSingle271 & PgCursor274 & Connection268 --> Edge272 + Edge288{{"Edge[288∈7] ➊"}}:::plan + PgSelectSingle287{{"PgSelectSingle[287∈7] ➊
ᐸpersonᐳ"}}:::plan + PgCursor290{{"PgCursor[290∈7] ➊"}}:::plan + Connection284{{"Connection[284∈7] ➊
ᐸ281ᐳ"}}:::plan + PgSelectSingle287 & PgCursor290 & Connection284 --> Edge288 + Edge304{{"Edge[304∈7] ➊"}}:::plan + PgCursor306{{"PgCursor[306∈7] ➊"}}:::plan + Connection300{{"Connection[300∈7] ➊
ᐸ297ᐳ"}}:::plan + PgSelectSingle271 & PgCursor306 & Connection300 --> Edge304 + Edge318{{"Edge[318∈7] ➊"}}:::plan + PgCursor320{{"PgCursor[320∈7] ➊"}}:::plan + Connection314{{"Connection[314∈7] ➊
ᐸ311ᐳ"}}:::plan + PgSelectSingle287 & PgCursor320 & Connection314 --> Edge318 + Edge332{{"Edge[332∈7] ➊"}}:::plan + PgSelectSingle331{{"PgSelectSingle[331∈7] ➊
ᐸpersonᐳ"}}:::plan + PgCursor334{{"PgCursor[334∈7] ➊"}}:::plan + Connection328{{"Connection[328∈7] ➊
ᐸ325ᐳ"}}:::plan + PgSelectSingle331 & PgCursor334 & Connection328 --> Edge332 + Edge348{{"Edge[348∈7] ➊"}}:::plan + PgSelectSingle347{{"PgSelectSingle[347∈7] ➊
ᐸpersonᐳ"}}:::plan + PgCursor350{{"PgCursor[350∈7] ➊"}}:::plan + Connection344{{"Connection[344∈7] ➊
ᐸ341ᐳ"}}:::plan + PgSelectSingle347 & PgCursor350 & Connection344 --> Edge348 + Edge364{{"Edge[364∈7] ➊"}}:::plan + PgSelectSingle363{{"PgSelectSingle[363∈7] ➊
ᐸpersonᐳ"}}:::plan + PgCursor366{{"PgCursor[366∈7] ➊"}}:::plan + Connection360{{"Connection[360∈7] ➊
ᐸ357ᐳ"}}:::plan + PgSelectSingle363 & PgCursor366 & Connection360 --> Edge364 + Edge380{{"Edge[380∈7] ➊"}}:::plan + PgSelectSingle379{{"PgSelectSingle[379∈7] ➊
ᐸpersonᐳ"}}:::plan + PgCursor382{{"PgCursor[382∈7] ➊"}}:::plan + Connection376{{"Connection[376∈7] ➊
ᐸ373ᐳ"}}:::plan + PgSelectSingle379 & PgCursor382 & Connection376 --> Edge380 + PgInsertSingle232[["PgInsertSingle[232∈7] ➊
ᐸperson()ᐳ"]]:::sideeffectplan + Object235 & ApplyInput236 --> PgInsertSingle232 + Access233{{"Access[233∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access234{{"Access[234∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access233 & Access234 --> Object235 + List242{{"List[242∈7] ➊
ᐸ239,240ᐳ"}}:::plan + PgClassExpression240{{"PgClassExpression[240∈7] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression240 --> List242 + PgSelect265[["PgSelect[265∈7] ➊
ᐸpersonᐳ"]]:::plan + Object235 & PgClassExpression240 --> PgSelect265 + Access273{{"Access[273∈7] ➊
ᐸ265.cursorDetailsᐳ"}}:::plan + PgSelectSingle271 & Access273 --> PgCursor274 + List276{{"List[276∈7] ➊
ᐸ239,275ᐳ"}}:::plan + PgClassExpression275{{"PgClassExpression[275∈7] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression275 --> List276 + PgSelect281[["PgSelect[281∈7] ➊
ᐸpersonᐳ"]]:::plan + Object235 & PgClassExpression240 --> PgSelect281 + Access289{{"Access[289∈7] ➊
ᐸ281.cursorDetailsᐳ"}}:::plan + PgSelectSingle287 & Access289 --> PgCursor290 + List292{{"List[292∈7] ➊
ᐸ239,291ᐳ"}}:::plan + PgClassExpression291{{"PgClassExpression[291∈7] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression291 --> List292 + PgSelectSingle271 & Access273 --> PgCursor306 + PgSelectSingle287 & Access289 --> PgCursor320 + PgSelect325[["PgSelect[325∈7] ➊
ᐸpersonᐳ"]]:::plan + Object235 & PgClassExpression240 --> PgSelect325 + Access333{{"Access[333∈7] ➊
ᐸ325.cursorDetailsᐳ"}}:::plan + PgSelectSingle331 & Access333 --> PgCursor334 + List336{{"List[336∈7] ➊
ᐸ239,335ᐳ"}}:::plan + PgClassExpression335{{"PgClassExpression[335∈7] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression335 --> List336 + PgSelect341[["PgSelect[341∈7] ➊
ᐸpersonᐳ"]]:::plan + Object235 & PgClassExpression240 --> PgSelect341 + Access349{{"Access[349∈7] ➊
ᐸ341.cursorDetailsᐳ"}}:::plan + PgSelectSingle347 & Access349 --> PgCursor350 + List352{{"List[352∈7] ➊
ᐸ239,351ᐳ"}}:::plan + PgClassExpression351{{"PgClassExpression[351∈7] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression351 --> List352 + PgSelect357[["PgSelect[357∈7] ➊
ᐸpersonᐳ"]]:::plan + Object235 & PgClassExpression240 --> PgSelect357 + Access365{{"Access[365∈7] ➊
ᐸ357.cursorDetailsᐳ"}}:::plan + PgSelectSingle363 & Access365 --> PgCursor366 + List368{{"List[368∈7] ➊
ᐸ239,367ᐳ"}}:::plan + PgClassExpression367{{"PgClassExpression[367∈7] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression367 --> List368 + PgSelect373[["PgSelect[373∈7] ➊
ᐸpersonᐳ"]]:::plan + Object235 & PgClassExpression240 --> PgSelect373 + Access381{{"Access[381∈7] ➊
ᐸ373.cursorDetailsᐳ"}}:::plan + PgSelectSingle379 & Access381 --> PgCursor382 + List384{{"List[384∈7] ➊
ᐸ239,383ᐳ"}}:::plan + PgClassExpression383{{"PgClassExpression[383∈7] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression383 --> List384 + __Value2 --> Access233 + __Value2 --> Access234 + Object237{{"Object[237∈7] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle232 --> Object237 + Access238{{"Access[238∈7] ➊
ᐸ232.m.clientMutationIdᐳ"}}:::plan + PgInsertSingle232 --> Access238 + Access241{{"Access[241∈7] ➊
ᐸ232.tᐳ"}}:::plan + Access241 --> PgClassExpression240 + PgInsertSingle232 --> Access241 + Lambda243{{"Lambda[243∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List242 --> Lambda243 + PgClassExpression245{{"PgClassExpression[245∈7] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + Access241 --> PgClassExpression245 + PgClassExpression246{{"PgClassExpression[246∈7] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + Access241 --> PgClassExpression246 + PgClassExpression247{{"PgClassExpression[247∈7] ➊
ᐸ__person__.”about”ᐳ"}}:::plan + Access241 --> PgClassExpression247 + PgClassExpression248{{"PgClassExpression[248∈7] ➊
ᐸ__person__.”config”ᐳ"}}:::plan + Access241 --> PgClassExpression248 + PgClassExpression249{{"PgClassExpression[249∈7] ➊
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + Access241 --> PgClassExpression249 + PgClassExpression250{{"PgClassExpression[250∈7] ➊
ᐸ__person__...om_subnet”ᐳ"}}:::plan + Access241 --> PgClassExpression250 + PgClassExpression251{{"PgClassExpression[251∈7] ➊
ᐸ__person__.”user_mac”ᐳ"}}:::plan + Access241 --> PgClassExpression251 + PgClassExpression253{{"PgClassExpression[253∈7] ➊
ᐸ__person__ᐳ"}}:::plan + Access241 --> PgClassExpression253 + PgClassExpression253 --> PgFromExpression256 + First257{{"First[257∈7] ➊"}}:::plan + PgSelectRows258[["PgSelectRows[258∈7] ➊"]]:::plan + PgSelectRows258 --> First257 + PgSelect254 --> PgSelectRows258 + PgSelectSingle259{{"PgSelectSingle[259∈7] ➊
ᐸpersonᐳ"}}:::plan + First257 --> PgSelectSingle259 + Constant990 --> PgFromExpression261 + PgClassExpression262{{"PgClassExpression[262∈7] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle259 --> PgClassExpression262 + First269{{"First[269∈7] ➊"}}:::plan + PgSelectRows270[["PgSelectRows[270∈7] ➊"]]:::plan + PgSelectRows270 --> First269 + PgSelect265 --> PgSelectRows270 + First269 --> PgSelectSingle271 + PgSelect265 --> Access273 + PgSelectSingle271 --> PgClassExpression275 + Lambda277{{"Lambda[277∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List276 --> Lambda277 + PgClassExpression278{{"PgClassExpression[278∈7] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle271 --> PgClassExpression278 + First285{{"First[285∈7] ➊"}}:::plan + PgSelectRows286[["PgSelectRows[286∈7] ➊"]]:::plan + PgSelectRows286 --> First285 + PgSelect281 --> PgSelectRows286 + First285 --> PgSelectSingle287 + PgSelect281 --> Access289 + PgSelectSingle287 --> PgClassExpression291 + Lambda293{{"Lambda[293∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List292 --> Lambda293 + PgClassExpression294{{"PgClassExpression[294∈7] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle287 --> PgClassExpression294 + First329{{"First[329∈7] ➊"}}:::plan + PgSelectRows330[["PgSelectRows[330∈7] ➊"]]:::plan + PgSelectRows330 --> First329 + PgSelect325 --> PgSelectRows330 + First329 --> PgSelectSingle331 + PgSelect325 --> Access333 + PgSelectSingle331 --> PgClassExpression335 + Lambda337{{"Lambda[337∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List336 --> Lambda337 + PgClassExpression338{{"PgClassExpression[338∈7] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle331 --> PgClassExpression338 + First345{{"First[345∈7] ➊"}}:::plan + PgSelectRows346[["PgSelectRows[346∈7] ➊"]]:::plan + PgSelectRows346 --> First345 + PgSelect341 --> PgSelectRows346 + First345 --> PgSelectSingle347 + PgSelect341 --> Access349 + PgSelectSingle347 --> PgClassExpression351 + Lambda353{{"Lambda[353∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List352 --> Lambda353 + PgClassExpression354{{"PgClassExpression[354∈7] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle347 --> PgClassExpression354 + First361{{"First[361∈7] ➊"}}:::plan + PgSelectRows362[["PgSelectRows[362∈7] ➊"]]:::plan + PgSelectRows362 --> First361 + PgSelect357 --> PgSelectRows362 + First361 --> PgSelectSingle363 + PgSelect357 --> Access365 + PgSelectSingle363 --> PgClassExpression367 + Lambda369{{"Lambda[369∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List368 --> Lambda369 + PgClassExpression370{{"PgClassExpression[370∈7] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle363 --> PgClassExpression370 + First377{{"First[377∈7] ➊"}}:::plan + PgSelectRows378[["PgSelectRows[378∈7] ➊"]]:::plan + PgSelectRows378 --> First377 + PgSelect373 --> PgSelectRows378 + First377 --> PgSelectSingle379 + PgSelect373 --> Access381 + PgSelectSingle379 --> PgClassExpression383 + Lambda385{{"Lambda[385∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List384 --> Lambda385 + PgClassExpression386{{"PgClassExpression[386∈7] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle379 --> PgClassExpression386 + Lambda388{{"Lambda[388∈7] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant218 --> Lambda388 + PgSelect423[["PgSelect[423∈8] ➊
ᐸpersonᐳ"]]:::plan + Object404{{"Object[404∈8] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression425{{"PgFromExpression[425∈8] ➊"}}:::plan + PgFromExpression430{{"PgFromExpression[430∈8] ➊"}}:::plan + Object404 & PgFromExpression425 & PgFromExpression430 --> PgSelect423 + Edge440{{"Edge[440∈8] ➊"}}:::plan + PgSelectSingle439{{"PgSelectSingle[439∈8] ➊
ᐸpersonᐳ"}}:::plan + PgCursor442{{"PgCursor[442∈8] ➊"}}:::plan + Connection436{{"Connection[436∈8] ➊
ᐸ433ᐳ"}}:::plan + PgSelectSingle439 & PgCursor442 & Connection436 --> Edge440 + Edge455{{"Edge[455∈8] ➊"}}:::plan + PgSelectSingle454{{"PgSelectSingle[454∈8] ➊
ᐸpersonᐳ"}}:::plan + PgCursor457{{"PgCursor[457∈8] ➊"}}:::plan + Connection451{{"Connection[451∈8] ➊
ᐸ448ᐳ"}}:::plan + PgSelectSingle454 & PgCursor457 & Connection451 --> Edge455 + Edge470{{"Edge[470∈8] ➊"}}:::plan + PgCursor472{{"PgCursor[472∈8] ➊"}}:::plan + Connection466{{"Connection[466∈8] ➊
ᐸ463ᐳ"}}:::plan + PgSelectSingle439 & PgCursor472 & Connection466 --> Edge470 + Edge483{{"Edge[483∈8] ➊"}}:::plan + PgCursor485{{"PgCursor[485∈8] ➊"}}:::plan + Connection479{{"Connection[479∈8] ➊
ᐸ476ᐳ"}}:::plan + PgSelectSingle454 & PgCursor485 & Connection479 --> Edge483 + Edge496{{"Edge[496∈8] ➊"}}:::plan + PgSelectSingle495{{"PgSelectSingle[495∈8] ➊
ᐸpersonᐳ"}}:::plan + PgCursor498{{"PgCursor[498∈8] ➊"}}:::plan + Connection492{{"Connection[492∈8] ➊
ᐸ489ᐳ"}}:::plan + PgSelectSingle495 & PgCursor498 & Connection492 --> Edge496 + Edge511{{"Edge[511∈8] ➊"}}:::plan + PgSelectSingle510{{"PgSelectSingle[510∈8] ➊
ᐸpersonᐳ"}}:::plan + PgCursor513{{"PgCursor[513∈8] ➊"}}:::plan + Connection507{{"Connection[507∈8] ➊
ᐸ504ᐳ"}}:::plan + PgSelectSingle510 & PgCursor513 & Connection507 --> Edge511 + Edge526{{"Edge[526∈8] ➊"}}:::plan + PgSelectSingle525{{"PgSelectSingle[525∈8] ➊
ᐸpersonᐳ"}}:::plan + PgCursor528{{"PgCursor[528∈8] ➊"}}:::plan + Connection522{{"Connection[522∈8] ➊
ᐸ519ᐳ"}}:::plan + PgSelectSingle525 & PgCursor528 & Connection522 --> Edge526 + Edge541{{"Edge[541∈8] ➊"}}:::plan + PgSelectSingle540{{"PgSelectSingle[540∈8] ➊
ᐸpersonᐳ"}}:::plan + PgCursor543{{"PgCursor[543∈8] ➊"}}:::plan + Connection537{{"Connection[537∈8] ➊
ᐸ534ᐳ"}}:::plan + PgSelectSingle540 & PgCursor543 & Connection537 --> Edge541 + PgInsertSingle401[["PgInsertSingle[401∈8] ➊
ᐸperson()ᐳ"]]:::sideeffectplan + Object404 & ApplyInput405 --> PgInsertSingle401 + Access402{{"Access[402∈8] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access403{{"Access[403∈8] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access402 & Access403 --> Object404 + List411{{"List[411∈8] ➊
ᐸ239,409ᐳ"}}:::plan + PgClassExpression409{{"PgClassExpression[409∈8] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression409 --> List411 + PgSelect433[["PgSelect[433∈8] ➊
ᐸpersonᐳ"]]:::plan + Object404 & PgClassExpression409 --> PgSelect433 + Access441{{"Access[441∈8] ➊
ᐸ433.cursorDetailsᐳ"}}:::plan + PgSelectSingle439 & Access441 --> PgCursor442 + List444{{"List[444∈8] ➊
ᐸ239,443ᐳ"}}:::plan + PgClassExpression443{{"PgClassExpression[443∈8] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression443 --> List444 + PgSelect448[["PgSelect[448∈8] ➊
ᐸpersonᐳ"]]:::plan + Object404 & PgClassExpression409 --> PgSelect448 + Access456{{"Access[456∈8] ➊
ᐸ448.cursorDetailsᐳ"}}:::plan + PgSelectSingle454 & Access456 --> PgCursor457 + List459{{"List[459∈8] ➊
ᐸ239,458ᐳ"}}:::plan + PgClassExpression458{{"PgClassExpression[458∈8] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression458 --> List459 + PgSelectSingle439 & Access441 --> PgCursor472 + PgSelectSingle454 & Access456 --> PgCursor485 + PgSelect489[["PgSelect[489∈8] ➊
ᐸpersonᐳ"]]:::plan + Object404 & PgClassExpression409 --> PgSelect489 + Access497{{"Access[497∈8] ➊
ᐸ489.cursorDetailsᐳ"}}:::plan + PgSelectSingle495 & Access497 --> PgCursor498 + List500{{"List[500∈8] ➊
ᐸ239,499ᐳ"}}:::plan + PgClassExpression499{{"PgClassExpression[499∈8] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression499 --> List500 + PgSelect504[["PgSelect[504∈8] ➊
ᐸpersonᐳ"]]:::plan + Object404 & PgClassExpression409 --> PgSelect504 + Access512{{"Access[512∈8] ➊
ᐸ504.cursorDetailsᐳ"}}:::plan + PgSelectSingle510 & Access512 --> PgCursor513 + List515{{"List[515∈8] ➊
ᐸ239,514ᐳ"}}:::plan + PgClassExpression514{{"PgClassExpression[514∈8] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression514 --> List515 + PgSelect519[["PgSelect[519∈8] ➊
ᐸpersonᐳ"]]:::plan + Object404 & PgClassExpression409 --> PgSelect519 + Access527{{"Access[527∈8] ➊
ᐸ519.cursorDetailsᐳ"}}:::plan + PgSelectSingle525 & Access527 --> PgCursor528 + List530{{"List[530∈8] ➊
ᐸ239,529ᐳ"}}:::plan + PgClassExpression529{{"PgClassExpression[529∈8] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression529 --> List530 + PgSelect534[["PgSelect[534∈8] ➊
ᐸpersonᐳ"]]:::plan + Object404 & PgClassExpression409 --> PgSelect534 + Access542{{"Access[542∈8] ➊
ᐸ534.cursorDetailsᐳ"}}:::plan + PgSelectSingle540 & Access542 --> PgCursor543 + List545{{"List[545∈8] ➊
ᐸ239,544ᐳ"}}:::plan + PgClassExpression544{{"PgClassExpression[544∈8] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression544 --> List545 + __Value2 --> Access402 + __Value2 --> Access403 + Object406{{"Object[406∈8] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle401 --> Object406 + Access407{{"Access[407∈8] ➊
ᐸ401.m.clientMutationIdᐳ"}}:::plan + PgInsertSingle401 --> Access407 + Access410{{"Access[410∈8] ➊
ᐸ401.tᐳ"}}:::plan + Access410 --> PgClassExpression409 + PgInsertSingle401 --> Access410 + Lambda412{{"Lambda[412∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List411 --> Lambda412 + PgClassExpression414{{"PgClassExpression[414∈8] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + Access410 --> PgClassExpression414 + PgClassExpression415{{"PgClassExpression[415∈8] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + Access410 --> PgClassExpression415 + PgClassExpression416{{"PgClassExpression[416∈8] ➊
ᐸ__person__.”about”ᐳ"}}:::plan + Access410 --> PgClassExpression416 + PgClassExpression417{{"PgClassExpression[417∈8] ➊
ᐸ__person__.”config”ᐳ"}}:::plan + Access410 --> PgClassExpression417 + PgClassExpression418{{"PgClassExpression[418∈8] ➊
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + Access410 --> PgClassExpression418 + PgClassExpression419{{"PgClassExpression[419∈8] ➊
ᐸ__person__...om_subnet”ᐳ"}}:::plan + Access410 --> PgClassExpression419 + PgClassExpression420{{"PgClassExpression[420∈8] ➊
ᐸ__person__.”user_mac”ᐳ"}}:::plan + Access410 --> PgClassExpression420 + PgClassExpression422{{"PgClassExpression[422∈8] ➊
ᐸ__person__ᐳ"}}:::plan + Access410 --> PgClassExpression422 + PgClassExpression422 --> PgFromExpression425 + First426{{"First[426∈8] ➊"}}:::plan + PgSelectRows427[["PgSelectRows[427∈8] ➊"]]:::plan + PgSelectRows427 --> First426 + PgSelect423 --> PgSelectRows427 + PgSelectSingle428{{"PgSelectSingle[428∈8] ➊
ᐸpersonᐳ"}}:::plan + First426 --> PgSelectSingle428 + Constant990 --> PgFromExpression430 + PgClassExpression431{{"PgClassExpression[431∈8] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle428 --> PgClassExpression431 + First437{{"First[437∈8] ➊"}}:::plan + PgSelectRows438[["PgSelectRows[438∈8] ➊"]]:::plan + PgSelectRows438 --> First437 + PgSelect433 --> PgSelectRows438 + First437 --> PgSelectSingle439 + PgSelect433 --> Access441 + PgSelectSingle439 --> PgClassExpression443 + Lambda445{{"Lambda[445∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List444 --> Lambda445 + PgClassExpression446{{"PgClassExpression[446∈8] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle439 --> PgClassExpression446 + First452{{"First[452∈8] ➊"}}:::plan + PgSelectRows453[["PgSelectRows[453∈8] ➊"]]:::plan + PgSelectRows453 --> First452 + PgSelect448 --> PgSelectRows453 + First452 --> PgSelectSingle454 + PgSelect448 --> Access456 + PgSelectSingle454 --> PgClassExpression458 + Lambda460{{"Lambda[460∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List459 --> Lambda460 + PgClassExpression461{{"PgClassExpression[461∈8] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression461 + First493{{"First[493∈8] ➊"}}:::plan + PgSelectRows494[["PgSelectRows[494∈8] ➊"]]:::plan + PgSelectRows494 --> First493 + PgSelect489 --> PgSelectRows494 + First493 --> PgSelectSingle495 + PgSelect489 --> Access497 + PgSelectSingle495 --> PgClassExpression499 + Lambda501{{"Lambda[501∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List500 --> Lambda501 + PgClassExpression502{{"PgClassExpression[502∈8] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle495 --> PgClassExpression502 + First508{{"First[508∈8] ➊"}}:::plan + PgSelectRows509[["PgSelectRows[509∈8] ➊"]]:::plan + PgSelectRows509 --> First508 + PgSelect504 --> PgSelectRows509 + First508 --> PgSelectSingle510 + PgSelect504 --> Access512 + PgSelectSingle510 --> PgClassExpression514 + Lambda516{{"Lambda[516∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List515 --> Lambda516 + PgClassExpression517{{"PgClassExpression[517∈8] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle510 --> PgClassExpression517 + First523{{"First[523∈8] ➊"}}:::plan + PgSelectRows524[["PgSelectRows[524∈8] ➊"]]:::plan + PgSelectRows524 --> First523 + PgSelect519 --> PgSelectRows524 + First523 --> PgSelectSingle525 + PgSelect519 --> Access527 + PgSelectSingle525 --> PgClassExpression529 + Lambda531{{"Lambda[531∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List530 --> Lambda531 + PgClassExpression532{{"PgClassExpression[532∈8] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle525 --> PgClassExpression532 + First538{{"First[538∈8] ➊"}}:::plan + PgSelectRows539[["PgSelectRows[539∈8] ➊"]]:::plan + PgSelectRows539 --> First538 + PgSelect534 --> PgSelectRows539 + First538 --> PgSelectSingle540 + PgSelect534 --> Access542 + PgSelectSingle540 --> PgClassExpression544 + Lambda546{{"Lambda[546∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List545 --> Lambda546 + PgClassExpression547{{"PgClassExpression[547∈8] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle540 --> PgClassExpression547 + Lambda549{{"Lambda[549∈8] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant218 --> Lambda549 + List567{{"List[567∈9] ➊
ᐸ563,564,566ᐳ"}}:::plan + PgClassExpression564{{"PgClassExpression[564∈9] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression566{{"PgClassExpression[566∈9] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Constant563 & PgClassExpression564 & PgClassExpression566 --> List567 + PgInsertSingle556[["PgInsertSingle[556∈9] ➊
ᐸcompound_key()ᐳ"]]:::sideeffectplan + Object559{{"Object[559∈9] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object559 & ApplyInput560 --> PgInsertSingle556 + Access557{{"Access[557∈9] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access558{{"Access[558∈9] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access557 & Access558 --> Object559 + PgSelect573[["PgSelect[573∈9] ➊
ᐸpersonᐳ"]]:::plan + Object559 & PgClassExpression564 --> PgSelect573 + List580{{"List[580∈9] ➊
ᐸ239,579ᐳ"}}:::plan + PgClassExpression579{{"PgClassExpression[579∈9] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression579 --> List580 + PgSelect584[["PgSelect[584∈9] ➊
ᐸpersonᐳ"]]:::plan + Object559 & PgClassExpression566 --> PgSelect584 + List590{{"List[590∈9] ➊
ᐸ239,589ᐳ"}}:::plan + PgClassExpression589{{"PgClassExpression[589∈9] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression589 --> List590 + __Value2 --> Access557 + __Value2 --> Access558 + Object561{{"Object[561∈9] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle556 --> Object561 + Access562{{"Access[562∈9] ➊
ᐸ556.m.clientMutationIdᐳ"}}:::plan + PgInsertSingle556 --> Access562 + Access565{{"Access[565∈9] ➊
ᐸ556.tᐳ"}}:::plan + Access565 --> PgClassExpression564 + PgInsertSingle556 --> Access565 + Access565 --> PgClassExpression566 + Lambda568{{"Lambda[568∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List567 --> Lambda568 + PgClassExpression571{{"PgClassExpression[571∈9] ➊
ᐸ__compound...__.”extra”ᐳ"}}:::plan + Access565 --> PgClassExpression571 + First575{{"First[575∈9] ➊"}}:::plan + PgSelectRows576[["PgSelectRows[576∈9] ➊"]]:::plan + PgSelectRows576 --> First575 + PgSelect573 --> PgSelectRows576 + PgSelectSingle577{{"PgSelectSingle[577∈9] ➊
ᐸpersonᐳ"}}:::plan + First575 --> PgSelectSingle577 + PgSelectSingle577 --> PgClassExpression579 + Lambda581{{"Lambda[581∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List580 --> Lambda581 + PgClassExpression582{{"PgClassExpression[582∈9] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle577 --> PgClassExpression582 + First586{{"First[586∈9] ➊"}}:::plan + PgSelectRows587[["PgSelectRows[587∈9] ➊"]]:::plan + PgSelectRows587 --> First586 + PgSelect584 --> PgSelectRows587 + PgSelectSingle588{{"PgSelectSingle[588∈9] ➊
ᐸpersonᐳ"}}:::plan + First586 --> PgSelectSingle588 + PgSelectSingle588 --> PgClassExpression589 + Lambda591{{"Lambda[591∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List590 --> Lambda591 + PgClassExpression592{{"PgClassExpression[592∈9] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle588 --> PgClassExpression592 + Lambda610{{"Lambda[610∈9] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant218 --> Lambda610 + PgInsertSingle615[["PgInsertSingle[615∈10] ➊
ᐸedge_case()ᐳ"]]:::sideeffectplan + Object618{{"Object[618∈10] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object618 & ApplyInput619 --> PgInsertSingle615 + Access616{{"Access[616∈10] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access617{{"Access[617∈10] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access616 & Access617 --> Object618 + __Value2 --> Access616 + __Value2 --> Access617 + Object620{{"Object[620∈10] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle615 --> Object620 + PgClassExpression621{{"PgClassExpression[621∈10] ➊
ᐸ__edge_cas...s_default”ᐳ"}}:::plan + Access622{{"Access[622∈10] ➊
ᐸ615.tᐳ"}}:::plan + Access622 --> PgClassExpression621 + PgInsertSingle615 --> Access622 + Lambda624{{"Lambda[624∈10] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant218 --> Lambda624 + PgInsertSingle628[["PgInsertSingle[628∈11] ➊
ᐸedge_case()ᐳ"]]:::sideeffectplan + Object631{{"Object[631∈11] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object631 & ApplyInput632 --> PgInsertSingle628 + Access629{{"Access[629∈11] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access630{{"Access[630∈11] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access629 & Access630 --> Object631 + __Value2 --> Access629 + __Value2 --> Access630 + Object633{{"Object[633∈11] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle628 --> Object633 + PgClassExpression634{{"PgClassExpression[634∈11] ➊
ᐸ__edge_cas...s_default”ᐳ"}}:::plan + Access635{{"Access[635∈11] ➊
ᐸ628.tᐳ"}}:::plan + Access635 --> PgClassExpression634 + PgInsertSingle628 --> Access635 + Lambda637{{"Lambda[637∈11] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant218 --> Lambda637 + PgSelect671[["PgSelect[671∈12] ➊
ᐸpersonᐳ"]]:::plan + Object652{{"Object[652∈12] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression673{{"PgFromExpression[673∈12] ➊"}}:::plan + PgFromExpression678{{"PgFromExpression[678∈12] ➊"}}:::plan + Object652 & PgFromExpression673 & PgFromExpression678 --> PgSelect671 + Edge688{{"Edge[688∈12] ➊"}}:::plan + PgSelectSingle687{{"PgSelectSingle[687∈12] ➊
ᐸpersonᐳ"}}:::plan + PgCursor690{{"PgCursor[690∈12] ➊"}}:::plan + Connection684{{"Connection[684∈12] ➊
ᐸ681ᐳ"}}:::plan + PgSelectSingle687 & PgCursor690 & Connection684 --> Edge688 + Edge703{{"Edge[703∈12] ➊"}}:::plan + PgSelectSingle702{{"PgSelectSingle[702∈12] ➊
ᐸpersonᐳ"}}:::plan + PgCursor705{{"PgCursor[705∈12] ➊"}}:::plan + Connection699{{"Connection[699∈12] ➊
ᐸ696ᐳ"}}:::plan + PgSelectSingle702 & PgCursor705 & Connection699 --> Edge703 + Edge718{{"Edge[718∈12] ➊"}}:::plan + PgCursor720{{"PgCursor[720∈12] ➊"}}:::plan + Connection714{{"Connection[714∈12] ➊
ᐸ711ᐳ"}}:::plan + PgSelectSingle687 & PgCursor720 & Connection714 --> Edge718 + Edge731{{"Edge[731∈12] ➊"}}:::plan + PgCursor733{{"PgCursor[733∈12] ➊"}}:::plan + Connection727{{"Connection[727∈12] ➊
ᐸ724ᐳ"}}:::plan + PgSelectSingle702 & PgCursor733 & Connection727 --> Edge731 + Edge744{{"Edge[744∈12] ➊"}}:::plan + PgSelectSingle743{{"PgSelectSingle[743∈12] ➊
ᐸpersonᐳ"}}:::plan + PgCursor746{{"PgCursor[746∈12] ➊"}}:::plan + Connection740{{"Connection[740∈12] ➊
ᐸ737ᐳ"}}:::plan + PgSelectSingle743 & PgCursor746 & Connection740 --> Edge744 + Edge759{{"Edge[759∈12] ➊"}}:::plan + PgSelectSingle758{{"PgSelectSingle[758∈12] ➊
ᐸpersonᐳ"}}:::plan + PgCursor761{{"PgCursor[761∈12] ➊"}}:::plan + Connection755{{"Connection[755∈12] ➊
ᐸ752ᐳ"}}:::plan + PgSelectSingle758 & PgCursor761 & Connection755 --> Edge759 + Edge774{{"Edge[774∈12] ➊"}}:::plan + PgSelectSingle773{{"PgSelectSingle[773∈12] ➊
ᐸpersonᐳ"}}:::plan + PgCursor776{{"PgCursor[776∈12] ➊"}}:::plan + Connection770{{"Connection[770∈12] ➊
ᐸ767ᐳ"}}:::plan + PgSelectSingle773 & PgCursor776 & Connection770 --> Edge774 + Edge789{{"Edge[789∈12] ➊"}}:::plan + PgSelectSingle788{{"PgSelectSingle[788∈12] ➊
ᐸpersonᐳ"}}:::plan + PgCursor791{{"PgCursor[791∈12] ➊"}}:::plan + Connection785{{"Connection[785∈12] ➊
ᐸ782ᐳ"}}:::plan + PgSelectSingle788 & PgCursor791 & Connection785 --> Edge789 + PgInsertSingle649[["PgInsertSingle[649∈12] ➊
ᐸperson()ᐳ"]]:::sideeffectplan + Object652 & ApplyInput653 --> PgInsertSingle649 + Access650{{"Access[650∈12] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access651{{"Access[651∈12] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access650 & Access651 --> Object652 + List659{{"List[659∈12] ➊
ᐸ239,657ᐳ"}}:::plan + PgClassExpression657{{"PgClassExpression[657∈12] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression657 --> List659 + PgSelect681[["PgSelect[681∈12] ➊
ᐸpersonᐳ"]]:::plan + Object652 & PgClassExpression657 --> PgSelect681 + Access689{{"Access[689∈12] ➊
ᐸ681.cursorDetailsᐳ"}}:::plan + PgSelectSingle687 & Access689 --> PgCursor690 + List692{{"List[692∈12] ➊
ᐸ239,691ᐳ"}}:::plan + PgClassExpression691{{"PgClassExpression[691∈12] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression691 --> List692 + PgSelect696[["PgSelect[696∈12] ➊
ᐸpersonᐳ"]]:::plan + Object652 & PgClassExpression657 --> PgSelect696 + Access704{{"Access[704∈12] ➊
ᐸ696.cursorDetailsᐳ"}}:::plan + PgSelectSingle702 & Access704 --> PgCursor705 + List707{{"List[707∈12] ➊
ᐸ239,706ᐳ"}}:::plan + PgClassExpression706{{"PgClassExpression[706∈12] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression706 --> List707 + PgSelectSingle687 & Access689 --> PgCursor720 + PgSelectSingle702 & Access704 --> PgCursor733 + PgSelect737[["PgSelect[737∈12] ➊
ᐸpersonᐳ"]]:::plan + Object652 & PgClassExpression657 --> PgSelect737 + Access745{{"Access[745∈12] ➊
ᐸ737.cursorDetailsᐳ"}}:::plan + PgSelectSingle743 & Access745 --> PgCursor746 + List748{{"List[748∈12] ➊
ᐸ239,747ᐳ"}}:::plan + PgClassExpression747{{"PgClassExpression[747∈12] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression747 --> List748 + PgSelect752[["PgSelect[752∈12] ➊
ᐸpersonᐳ"]]:::plan + Object652 & PgClassExpression657 --> PgSelect752 + Access760{{"Access[760∈12] ➊
ᐸ752.cursorDetailsᐳ"}}:::plan + PgSelectSingle758 & Access760 --> PgCursor761 + List763{{"List[763∈12] ➊
ᐸ239,762ᐳ"}}:::plan + PgClassExpression762{{"PgClassExpression[762∈12] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression762 --> List763 + PgSelect767[["PgSelect[767∈12] ➊
ᐸpersonᐳ"]]:::plan + Object652 & PgClassExpression657 --> PgSelect767 + Access775{{"Access[775∈12] ➊
ᐸ767.cursorDetailsᐳ"}}:::plan + PgSelectSingle773 & Access775 --> PgCursor776 + List778{{"List[778∈12] ➊
ᐸ239,777ᐳ"}}:::plan + PgClassExpression777{{"PgClassExpression[777∈12] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression777 --> List778 + PgSelect782[["PgSelect[782∈12] ➊
ᐸpersonᐳ"]]:::plan + Object652 & PgClassExpression657 --> PgSelect782 + Access790{{"Access[790∈12] ➊
ᐸ782.cursorDetailsᐳ"}}:::plan + PgSelectSingle788 & Access790 --> PgCursor791 + List793{{"List[793∈12] ➊
ᐸ239,792ᐳ"}}:::plan + PgClassExpression792{{"PgClassExpression[792∈12] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant239 & PgClassExpression792 --> List793 + __Value2 --> Access650 + __Value2 --> Access651 + Object654{{"Object[654∈12] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle649 --> Object654 + Access655{{"Access[655∈12] ➊
ᐸ649.m.clientMutationIdᐳ"}}:::plan + PgInsertSingle649 --> Access655 + Access658{{"Access[658∈12] ➊
ᐸ649.tᐳ"}}:::plan + Access658 --> PgClassExpression657 + PgInsertSingle649 --> Access658 + Lambda660{{"Lambda[660∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List659 --> Lambda660 + PgClassExpression662{{"PgClassExpression[662∈12] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + Access658 --> PgClassExpression662 + PgClassExpression663{{"PgClassExpression[663∈12] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + Access658 --> PgClassExpression663 + PgClassExpression664{{"PgClassExpression[664∈12] ➊
ᐸ__person__.”about”ᐳ"}}:::plan + Access658 --> PgClassExpression664 + PgClassExpression665{{"PgClassExpression[665∈12] ➊
ᐸ__person__.”config”ᐳ"}}:::plan + Access658 --> PgClassExpression665 + PgClassExpression666{{"PgClassExpression[666∈12] ➊
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + Access658 --> PgClassExpression666 + PgClassExpression667{{"PgClassExpression[667∈12] ➊
ᐸ__person__...om_subnet”ᐳ"}}:::plan + Access658 --> PgClassExpression667 + PgClassExpression668{{"PgClassExpression[668∈12] ➊
ᐸ__person__.”user_mac”ᐳ"}}:::plan + Access658 --> PgClassExpression668 + PgClassExpression670{{"PgClassExpression[670∈12] ➊
ᐸ__person__ᐳ"}}:::plan + Access658 --> PgClassExpression670 + PgClassExpression670 --> PgFromExpression673 + First674{{"First[674∈12] ➊"}}:::plan + PgSelectRows675[["PgSelectRows[675∈12] ➊"]]:::plan + PgSelectRows675 --> First674 + PgSelect671 --> PgSelectRows675 + PgSelectSingle676{{"PgSelectSingle[676∈12] ➊
ᐸpersonᐳ"}}:::plan + First674 --> PgSelectSingle676 + Constant990 --> PgFromExpression678 + PgClassExpression679{{"PgClassExpression[679∈12] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle676 --> PgClassExpression679 + First685{{"First[685∈12] ➊"}}:::plan + PgSelectRows686[["PgSelectRows[686∈12] ➊"]]:::plan + PgSelectRows686 --> First685 + PgSelect681 --> PgSelectRows686 + First685 --> PgSelectSingle687 + PgSelect681 --> Access689 + PgSelectSingle687 --> PgClassExpression691 + Lambda693{{"Lambda[693∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List692 --> Lambda693 + PgClassExpression694{{"PgClassExpression[694∈12] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle687 --> PgClassExpression694 + First700{{"First[700∈12] ➊"}}:::plan + PgSelectRows701[["PgSelectRows[701∈12] ➊"]]:::plan + PgSelectRows701 --> First700 + PgSelect696 --> PgSelectRows701 + First700 --> PgSelectSingle702 + PgSelect696 --> Access704 + PgSelectSingle702 --> PgClassExpression706 + Lambda708{{"Lambda[708∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List707 --> Lambda708 + PgClassExpression709{{"PgClassExpression[709∈12] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle702 --> PgClassExpression709 + First741{{"First[741∈12] ➊"}}:::plan + PgSelectRows742[["PgSelectRows[742∈12] ➊"]]:::plan + PgSelectRows742 --> First741 + PgSelect737 --> PgSelectRows742 + First741 --> PgSelectSingle743 + PgSelect737 --> Access745 + PgSelectSingle743 --> PgClassExpression747 + Lambda749{{"Lambda[749∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List748 --> Lambda749 + PgClassExpression750{{"PgClassExpression[750∈12] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle743 --> PgClassExpression750 + First756{{"First[756∈12] ➊"}}:::plan + PgSelectRows757[["PgSelectRows[757∈12] ➊"]]:::plan + PgSelectRows757 --> First756 + PgSelect752 --> PgSelectRows757 + First756 --> PgSelectSingle758 + PgSelect752 --> Access760 + PgSelectSingle758 --> PgClassExpression762 + Lambda764{{"Lambda[764∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List763 --> Lambda764 + PgClassExpression765{{"PgClassExpression[765∈12] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle758 --> PgClassExpression765 + First771{{"First[771∈12] ➊"}}:::plan + PgSelectRows772[["PgSelectRows[772∈12] ➊"]]:::plan + PgSelectRows772 --> First771 + PgSelect767 --> PgSelectRows772 + First771 --> PgSelectSingle773 + PgSelect767 --> Access775 + PgSelectSingle773 --> PgClassExpression777 + Lambda779{{"Lambda[779∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List778 --> Lambda779 + PgClassExpression780{{"PgClassExpression[780∈12] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle773 --> PgClassExpression780 + First786{{"First[786∈12] ➊"}}:::plan + PgSelectRows787[["PgSelectRows[787∈12] ➊"]]:::plan + PgSelectRows787 --> First786 + PgSelect782 --> PgSelectRows787 + First786 --> PgSelectSingle788 + PgSelect782 --> Access790 + PgSelectSingle788 --> PgClassExpression792 + Lambda794{{"Lambda[794∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List793 --> Lambda794 + PgClassExpression795{{"PgClassExpression[795∈12] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle788 --> PgClassExpression795 + Lambda797{{"Lambda[797∈12] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant218 --> Lambda797 + PgSelect814[["PgSelect[814∈13] ➊
ᐸpersonᐳ"]]:::plan + Object808{{"Object[808∈13] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression816{{"PgFromExpression[816∈13] ➊"}}:::plan + PgFromExpression821{{"PgFromExpression[821∈13] ➊"}}:::plan + Object808 & PgFromExpression816 & PgFromExpression821 --> PgSelect814 + PgInsertSingle805[["PgInsertSingle[805∈13] ➊
ᐸperson()ᐳ"]]:::sideeffectplan + Object808 & ApplyInput809 --> PgInsertSingle805 + Access806{{"Access[806∈13] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access807{{"Access[807∈13] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access806 & Access807 --> Object808 + __Value2 --> Access806 + __Value2 --> Access807 + Object810{{"Object[810∈13] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle805 --> Object810 + PgClassExpression812{{"PgClassExpression[812∈13] ➊
ᐸ__person__ᐳ"}}:::plan + Access813{{"Access[813∈13] ➊
ᐸ805.tᐳ"}}:::plan + Access813 --> PgClassExpression812 + PgInsertSingle805 --> Access813 + PgClassExpression812 --> PgFromExpression816 + First817{{"First[817∈13] ➊"}}:::plan + PgSelectRows818[["PgSelectRows[818∈13] ➊"]]:::plan + PgSelectRows818 --> First817 + PgSelect814 --> PgSelectRows818 + PgSelectSingle819{{"PgSelectSingle[819∈13] ➊
ᐸpersonᐳ"}}:::plan + First817 --> PgSelectSingle819 + Constant990 --> PgFromExpression821 + PgClassExpression822{{"PgClassExpression[822∈13] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle819 --> PgClassExpression822 + PgInsertSingle828[["PgInsertSingle[828∈14] ➊
ᐸdefault_value()ᐳ"]]:::sideeffectplan + Object831{{"Object[831∈14] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object831 & ApplyInput832 --> PgInsertSingle828 + Access829{{"Access[829∈14] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access830{{"Access[830∈14] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access829 & Access830 --> Object831 + __Value2 --> Access829 + __Value2 --> Access830 + Object833{{"Object[833∈14] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle828 --> Object833 + PgClassExpression834{{"PgClassExpression[834∈14] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan + Access835{{"Access[835∈14] ➊
ᐸ828.tᐳ"}}:::plan + Access835 --> PgClassExpression834 + PgInsertSingle828 --> Access835 + PgClassExpression836{{"PgClassExpression[836∈14] ➊
ᐸ__default_...ull_value”ᐳ"}}:::plan + Access835 --> PgClassExpression836 + PgInsertSingle842[["PgInsertSingle[842∈15] ➊
ᐸpost()ᐳ"]]:::sideeffectplan + Object845{{"Object[845∈15] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object845 & ApplyInput846 --> PgInsertSingle842 + Access843{{"Access[843∈15] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access844{{"Access[844∈15] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access843 & Access844 --> Object845 + PgSelect852[["PgSelect[852∈15] ➊
ᐸfrmcdc_comptypeᐳ"]]:::plan + PgFromExpression854{{"PgFromExpression[854∈15] ➊"}}:::plan + Object845 & PgFromExpression854 --> PgSelect852 + __Value2 --> Access843 + __Value2 --> Access844 + Object847{{"Object[847∈15] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle842 --> Object847 + PgClassExpression848{{"PgClassExpression[848∈15] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Access849{{"Access[849∈15] ➊
ᐸ842.tᐳ"}}:::plan + Access849 --> PgClassExpression848 + PgInsertSingle842 --> Access849 + PgClassExpression850{{"PgClassExpression[850∈15] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + Access849 --> PgClassExpression850 + PgClassExpression851{{"PgClassExpression[851∈15] ➊
ᐸ__post__.”comptypes”ᐳ"}}:::plan + Access849 --> PgClassExpression851 + PgClassExpression851 --> PgFromExpression854 + PgSelectRows855[["PgSelectRows[855∈15] ➊"]]:::plan + PgSelect852 --> PgSelectRows855 + __Item856[/"__Item[856∈16]
ᐸ855ᐳ"\]:::itemplan + PgSelectRows855 ==> __Item856 + PgSelectSingle857{{"PgSelectSingle[857∈16]
ᐸfrmcdc_comptypeᐳ"}}:::plan + __Item856 --> PgSelectSingle857 + PgClassExpression858{{"PgClassExpression[858∈16]
ᐸ__frmcdc_c...”schedule”ᐳ"}}:::plan + PgSelectSingle857 --> PgClassExpression858 + PgClassExpression859{{"PgClassExpression[859∈16]
ᐸ__frmcdc_c...optimised”ᐳ"}}:::plan + PgSelectSingle857 --> PgClassExpression859 + PgInsertSingle866[["PgInsertSingle[866∈17] ➊
ᐸpost()ᐳ"]]:::sideeffectplan + Object869{{"Object[869∈17] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object869 & ApplyInput870 --> PgInsertSingle866 + Access867{{"Access[867∈17] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access868{{"Access[868∈17] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access867 & Access868 --> Object869 + PgSelect876[["PgSelect[876∈17] ➊
ᐸfrmcdc_comptypeᐳ"]]:::plan + PgFromExpression878{{"PgFromExpression[878∈17] ➊"}}:::plan + Object869 & PgFromExpression878 --> PgSelect876 + PgSelect885[["PgSelect[885∈17] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression884{{"PgClassExpression[884∈17] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan + Object869 & PgClassExpression884 --> PgSelect885 + PgSelect900[["PgSelect[900∈17] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression872{{"PgClassExpression[872∈17] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Object869 & PgClassExpression872 --> PgSelect900 + PgSelect913[["PgSelect[913∈17] ➊
ᐸfrmcdc_comptypeᐳ"]]:::plan + PgFromExpression915{{"PgFromExpression[915∈17] ➊"}}:::plan + Object869 & PgFromExpression915 --> PgSelect913 + PgSelect922[["PgSelect[922∈17] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression921{{"PgClassExpression[921∈17] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan + Object869 & PgClassExpression921 --> PgSelect922 + Edge935{{"Edge[935∈17] ➊"}}:::plan + PgSelectSingle906{{"PgSelectSingle[906∈17] ➊
ᐸpostᐳ"}}:::plan + Connection903{{"Connection[903∈17] ➊
ᐸ900ᐳ"}}:::plan + PgSelectSingle906 & Connection903 --> Edge935 + __Value2 --> Access867 + __Value2 --> Access868 + Object871{{"Object[871∈17] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle866 --> Object871 + Access873{{"Access[873∈17] ➊
ᐸ866.tᐳ"}}:::plan + Access873 --> PgClassExpression872 + PgInsertSingle866 --> Access873 + PgClassExpression874{{"PgClassExpression[874∈17] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + Access873 --> PgClassExpression874 + PgClassExpression875{{"PgClassExpression[875∈17] ➊
ᐸ__post__.”comptypes”ᐳ"}}:::plan + Access873 --> PgClassExpression875 + PgClassExpression875 --> PgFromExpression878 + PgSelectRows879[["PgSelectRows[879∈17] ➊"]]:::plan + PgSelect876 --> PgSelectRows879 + Access873 --> PgClassExpression884 + First887{{"First[887∈17] ➊"}}:::plan + PgSelectRows888[["PgSelectRows[888∈17] ➊"]]:::plan + PgSelectRows888 --> First887 + PgSelect885 --> PgSelectRows888 + PgSelectSingle889{{"PgSelectSingle[889∈17] ➊
ᐸpersonᐳ"}}:::plan + First887 --> PgSelectSingle889 + PgClassExpression890{{"PgClassExpression[890∈17] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle889 --> PgClassExpression890 + PgClassExpression897{{"PgClassExpression[897∈17] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle889 --> PgClassExpression897 + First904{{"First[904∈17] ➊"}}:::plan + PgSelectRows905[["PgSelectRows[905∈17] ➊"]]:::plan + PgSelectRows905 --> First904 + PgSelect900 --> PgSelectRows905 + First904 --> PgSelectSingle906 + PgClassExpression910{{"PgClassExpression[910∈17] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle906 --> PgClassExpression910 + PgClassExpression911{{"PgClassExpression[911∈17] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle906 --> PgClassExpression911 + PgClassExpression912{{"PgClassExpression[912∈17] ➊
ᐸ__post__.”comptypes”ᐳ"}}:::plan + PgSelectSingle906 --> PgClassExpression912 + PgClassExpression912 --> PgFromExpression915 + PgSelectRows916[["PgSelectRows[916∈17] ➊"]]:::plan + PgSelect913 --> PgSelectRows916 + PgSelectSingle906 --> PgClassExpression921 + First924{{"First[924∈17] ➊"}}:::plan + PgSelectRows925[["PgSelectRows[925∈17] ➊"]]:::plan PgSelectRows925 --> First924 - PgSelect920 --> PgSelectRows925 - PgSelectSingle926{{"PgSelectSingle[926∈98] ➊
ᐸpersonᐳ"}}:::plan + PgSelect922 --> PgSelectRows925 + PgSelectSingle926{{"PgSelectSingle[926∈17] ➊
ᐸpersonᐳ"}}:::plan First924 --> PgSelectSingle926 - PgClassExpression928{{"PgClassExpression[928∈98] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle926 --> PgClassExpression928 - PgInsertSingle934[["PgInsertSingle[934∈99] ➊
ᐸdefault_value(id,null_value)ᐳ"]]:::sideeffectplan - Object937{{"Object[937∈99] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object937 & Constant1156 & Constant144 --> PgInsertSingle934 - Access935{{"Access[935∈99] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access936{{"Access[936∈99] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access935 & Access936 --> Object937 - __Value2 --> Access935 - __Value2 --> Access936 - Object938{{"Object[938∈99] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle934 --> Object938 - PgClassExpression939{{"PgClassExpression[939∈101] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan - PgInsertSingle934 --> PgClassExpression939 - PgClassExpression940{{"PgClassExpression[940∈101] ➊
ᐸ__default_...ull_value”ᐳ"}}:::plan - PgInsertSingle934 --> PgClassExpression940 - PgInsertSingle955[["PgInsertSingle[955∈102] ➊
ᐸpost(headline,comptypes)ᐳ"]]:::sideeffectplan - Object958{{"Object[958∈102] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object958 & Constant1157 & Constant1191 --> PgInsertSingle955 - Access956{{"Access[956∈102] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access957{{"Access[957∈102] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access956 & Access957 --> Object958 - __Value2 --> Access956 - __Value2 --> Access957 - Object959{{"Object[959∈102] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle955 --> Object959 - PgSelect967[["PgSelect[967∈104] ➊
ᐸfrmcdc_comptypeᐳ"]]:::plan - PgClassExpression966{{"PgClassExpression[966∈104] ➊
ᐸ__post__.”comptypes”ᐳ"}}:::plan - Object958 & PgClassExpression966 --> PgSelect967 - PgClassExpression964{{"PgClassExpression[964∈104] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgInsertSingle955 --> PgClassExpression964 - PgClassExpression965{{"PgClassExpression[965∈104] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgInsertSingle955 --> PgClassExpression965 - PgInsertSingle955 --> PgClassExpression966 - PgSelectRows971[["PgSelectRows[971∈104] ➊"]]:::plan - PgSelect967 --> PgSelectRows971 - __Item972[/"__Item[972∈105]
ᐸ971ᐳ"\]:::itemplan - PgSelectRows971 ==> __Item972 - PgSelectSingle973{{"PgSelectSingle[973∈105]
ᐸfrmcdc_comptypeᐳ"}}:::plan - __Item972 --> PgSelectSingle973 - PgClassExpression974{{"PgClassExpression[974∈106]
ᐸ__frmcdc_c...”schedule”ᐳ"}}:::plan - PgSelectSingle973 --> PgClassExpression974 - PgClassExpression975{{"PgClassExpression[975∈106]
ᐸ__frmcdc_c...optimised”ᐳ"}}:::plan - PgSelectSingle973 --> PgClassExpression975 - PgInsertSingle991[["PgInsertSingle[991∈107] ➊
ᐸpost(headline,author_id,comptypes)ᐳ"]]:::sideeffectplan - Object994{{"Object[994∈107] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object994 & Constant1161 & Constant1099 & Constant1192 --> PgInsertSingle991 - Access992{{"Access[992∈107] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access993{{"Access[993∈107] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access992 & Access993 --> Object994 - __Value2 --> Access992 - __Value2 --> Access993 - Object995{{"Object[995∈107] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle991 --> Object995 - PgSelect1013[["PgSelect[1013∈108] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression1059{{"PgClassExpression[1059∈108] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan - Object994 & PgClassExpression1059 --> PgSelect1013 - PgSelect1029[["PgSelect[1029∈108] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression1028{{"PgClassExpression[1028∈108] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - Object994 & PgClassExpression1028 --> PgSelect1029 - Edge1066{{"Edge[1066∈108] ➊"}}:::plan - PgSelectSingle1036{{"PgSelectSingle[1036∈108] ➊
ᐸpostᐳ"}}:::plan - Connection1033{{"Connection[1033∈108] ➊
ᐸ1029ᐳ"}}:::plan - PgSelectSingle1036 & Connection1033 --> Edge1066 - First1015{{"First[1015∈108] ➊"}}:::plan - PgSelectRows1016[["PgSelectRows[1016∈108] ➊"]]:::plan - PgSelectRows1016 --> First1015 - PgSelect1013 --> PgSelectRows1016 - PgSelectSingle1017{{"PgSelectSingle[1017∈108] ➊
ᐸpersonᐳ"}}:::plan - First1015 --> PgSelectSingle1017 - PgInsertSingle991 --> PgClassExpression1028 - First1034{{"First[1034∈108] ➊"}}:::plan - PgSelectRows1035[["PgSelectRows[1035∈108] ➊"]]:::plan - PgSelectRows1035 --> First1034 - PgSelect1029 --> PgSelectRows1035 - First1034 --> PgSelectSingle1036 - PgInsertSingle991 --> PgClassExpression1059 - PgSelect1003[["PgSelect[1003∈109] ➊
ᐸfrmcdc_comptypeᐳ"]]:::plan - PgClassExpression1002{{"PgClassExpression[1002∈109] ➊
ᐸ__post__.”comptypes”ᐳ"}}:::plan - Object994 & PgClassExpression1002 --> PgSelect1003 - PgClassExpression1001{{"PgClassExpression[1001∈109] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgInsertSingle991 --> PgClassExpression1001 - PgInsertSingle991 --> PgClassExpression1002 - PgSelectRows1007[["PgSelectRows[1007∈109] ➊"]]:::plan - PgSelect1003 --> PgSelectRows1007 - __Item1008[/"__Item[1008∈110]
ᐸ1007ᐳ"\]:::itemplan - PgSelectRows1007 ==> __Item1008 - PgSelectSingle1009{{"PgSelectSingle[1009∈110]
ᐸfrmcdc_comptypeᐳ"}}:::plan - __Item1008 --> PgSelectSingle1009 - PgClassExpression1010{{"PgClassExpression[1010∈111]
ᐸ__frmcdc_c...”schedule”ᐳ"}}:::plan - PgSelectSingle1009 --> PgClassExpression1010 - PgClassExpression1011{{"PgClassExpression[1011∈111]
ᐸ__frmcdc_c...optimised”ᐳ"}}:::plan - PgSelectSingle1009 --> PgClassExpression1011 - PgClassExpression1018{{"PgClassExpression[1018∈112] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle1017 --> PgClassExpression1018 - PgClassExpression1025{{"PgClassExpression[1025∈112] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle1017 --> PgClassExpression1025 - PgSelect1043[["PgSelect[1043∈114] ➊
ᐸfrmcdc_comptypeᐳ"]]:::plan - PgClassExpression1042{{"PgClassExpression[1042∈114] ➊
ᐸ__post__.”comptypes”ᐳ"}}:::plan - Object994 & PgClassExpression1042 --> PgSelect1043 - PgSelect1053[["PgSelect[1053∈114] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression1052{{"PgClassExpression[1052∈114] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan - Object994 & PgClassExpression1052 --> PgSelect1053 - PgClassExpression1040{{"PgClassExpression[1040∈114] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle1036 --> PgClassExpression1040 - PgClassExpression1041{{"PgClassExpression[1041∈114] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle1036 --> PgClassExpression1041 - PgSelectSingle1036 --> PgClassExpression1042 - PgSelectRows1047[["PgSelectRows[1047∈114] ➊"]]:::plan - PgSelect1043 --> PgSelectRows1047 - PgSelectSingle1036 --> PgClassExpression1052 - First1055{{"First[1055∈114] ➊"}}:::plan - PgSelectRows1056[["PgSelectRows[1056∈114] ➊"]]:::plan - PgSelectRows1056 --> First1055 - PgSelect1053 --> PgSelectRows1056 - PgSelectSingle1057{{"PgSelectSingle[1057∈114] ➊
ᐸpersonᐳ"}}:::plan - First1055 --> PgSelectSingle1057 - __Item1048[/"__Item[1048∈115]
ᐸ1047ᐳ"\]:::itemplan - PgSelectRows1047 ==> __Item1048 - PgSelectSingle1049{{"PgSelectSingle[1049∈115]
ᐸfrmcdc_comptypeᐳ"}}:::plan - __Item1048 --> PgSelectSingle1049 - PgClassExpression1050{{"PgClassExpression[1050∈116]
ᐸ__frmcdc_c...”schedule”ᐳ"}}:::plan - PgSelectSingle1049 --> PgClassExpression1050 - PgClassExpression1051{{"PgClassExpression[1051∈116]
ᐸ__frmcdc_c...optimised”ᐳ"}}:::plan - PgSelectSingle1049 --> PgClassExpression1051 - PgClassExpression1058{{"PgClassExpression[1058∈117] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle1057 --> PgClassExpression1058 - PgClassExpression1065{{"PgClassExpression[1065∈118] ➊
ᐸ__person__.”created_at”ᐳ"}}:::plan - PgSelectSingle1017 --> PgClassExpression1065 + PgClassExpression927{{"PgClassExpression[927∈17] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle926 --> PgClassExpression927 + PgClassExpression934{{"PgClassExpression[934∈17] ➊
ᐸ__person__.”created_at”ᐳ"}}:::plan + PgSelectSingle889 --> PgClassExpression934 + __Item880[/"__Item[880∈18]
ᐸ879ᐳ"\]:::itemplan + PgSelectRows879 ==> __Item880 + PgSelectSingle881{{"PgSelectSingle[881∈18]
ᐸfrmcdc_comptypeᐳ"}}:::plan + __Item880 --> PgSelectSingle881 + PgClassExpression882{{"PgClassExpression[882∈18]
ᐸ__frmcdc_c...”schedule”ᐳ"}}:::plan + PgSelectSingle881 --> PgClassExpression882 + PgClassExpression883{{"PgClassExpression[883∈18]
ᐸ__frmcdc_c...optimised”ᐳ"}}:::plan + PgSelectSingle881 --> PgClassExpression883 + __Item917[/"__Item[917∈19]
ᐸ916ᐳ"\]:::itemplan + PgSelectRows916 ==> __Item917 + PgSelectSingle918{{"PgSelectSingle[918∈19]
ᐸfrmcdc_comptypeᐳ"}}:::plan + __Item917 --> PgSelectSingle918 + PgClassExpression919{{"PgClassExpression[919∈19]
ᐸ__frmcdc_c...”schedule”ᐳ"}}:::plan + PgSelectSingle918 --> PgClassExpression919 + PgClassExpression920{{"PgClassExpression[920∈19]
ᐸ__frmcdc_c...optimised”ᐳ"}}:::plan + PgSelectSingle918 --> PgClassExpression920 %% define steps + %% implicit side effects + PgInsertSingle232 -.-o PgFromExpression261 + PgInsertSingle232 -.-o Lambda388 + PgInsertSingle232 -.-o Connection268 + PgInsertSingle232 -.-o Connection284 + PgInsertSingle232 -.-o Connection300 + PgInsertSingle232 -.-o Connection314 + PgInsertSingle232 -.-o Connection328 + PgInsertSingle232 -.-o Connection344 + PgInsertSingle232 -.-o Connection360 + PgInsertSingle232 -.-o Connection376 + PgInsertSingle401 -.-o PgFromExpression430 + PgInsertSingle401 -.-o Lambda549 + PgInsertSingle401 -.-o Connection436 + PgInsertSingle401 -.-o Connection451 + PgInsertSingle401 -.-o Connection466 + PgInsertSingle401 -.-o Connection479 + PgInsertSingle401 -.-o Connection492 + PgInsertSingle401 -.-o Connection507 + PgInsertSingle401 -.-o Connection522 + PgInsertSingle401 -.-o Connection537 + PgInsertSingle556 -.-o Lambda610 + PgInsertSingle615 -.-o Lambda624 + PgInsertSingle628 -.-o Lambda637 + PgInsertSingle649 -.-o PgFromExpression678 + PgInsertSingle649 -.-o Lambda797 + PgInsertSingle649 -.-o Connection684 + PgInsertSingle649 -.-o Connection699 + PgInsertSingle649 -.-o Connection714 + PgInsertSingle649 -.-o Connection727 + PgInsertSingle649 -.-o Connection740 + PgInsertSingle649 -.-o Connection755 + PgInsertSingle649 -.-o Connection770 + PgInsertSingle649 -.-o Connection785 + PgInsertSingle805 -.-o PgFromExpression821 + PgInsertSingle866 -.-o Connection903 + subgraph "Buckets for mutations/v4/mutation-create" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Access117,Access118,Object119,Constant144,Constant145,Constant268,Access277,Constant288,Constant644,__InputDynamicScalar732,Constant1068,Constant1069,Constant1070,Constant1071,Constant1072,Constant1073,Constant1074,Constant1076,Constant1077,Constant1087,Constant1088,Constant1090,Constant1094,Constant1095,Constant1096,Constant1097,Constant1098,Constant1099,Constant1105,Constant1110,Constant1124,Constant1125,Constant1132,Constant1133,Constant1134,Constant1135,Constant1136,Constant1137,Constant1138,Constant1139,Constant1140,Constant1141,Constant1142,Constant1143,Constant1145,Constant1146,Constant1147,Constant1148,Constant1149,Constant1150,Constant1151,Constant1152,Constant1153,Constant1154,Constant1155,Constant1156,Constant1157,Constant1161,Constant1165,Constant1166,Constant1171,Constant1174,Constant1177,Constant1178,Constant1179,Constant1186,Constant1187,Constant1188,Constant1189,Constant1190,Constant1191,Constant1192 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 119, 1068, 1069, 1070, 1071, 1072, 1073, 1074, 1165, 1076, 1077, 1166, 1087, 1088, 1186, 1187, 1188, 1094, 1095, 1096, 1097, 1098, 1171, 1189, 1105, 1174, 1190, 1177, 1124, 1125, 1178, 1179, 268, 145, 4, 144

1: PgInsertSingle[116]
2:
ᐳ: Object[120]"):::bucket + class Bucket0,__Value0,__Value2,__Value4,__InputObject6,__InputObject8,Constant17,Constant20,__InputObject23,__InputObject24,__InputObject27,__InputObject28,__InputObject31,__InputObject34,__InputObject35,__InputObject43,Constant50,__InputObject52,__InputObject60,__InputObject61,__InputObject69,__InputObject78,Constant83,Constant84,Access86,Access87,Object88,ApplyInput89,Constant92,Constant218,Lambda219,__InputObject220,__InputObject222,Access227,ApplyInput236,Constant239,__InputObject389,__InputObject391,Constant397,ApplyInput405,__InputObject550,__InputObject552,ApplyInput560,Constant563,__InputObject611,__InputObject613,ApplyInput619,__InputObject625,__InputObject627,ApplyInput632,__InputObject638,__InputObject640,__InputDynamicScalar645,ApplyInput653,__InputObject798,__InputObject800,ApplyInput809,__InputObject823,__InputObject825,ApplyInput832,__InputObject837,__InputObject839,Constant841,ApplyInput846,__InputObject860,__InputObject862,Constant865,ApplyInput870,Constant936,Constant937,Constant938,Constant939,Constant940,Constant941,Constant942,Constant943,Constant944,Constant945,Constant946,Constant947,Constant948,Constant949,Constant950,Constant951,Constant952,Constant953,Constant954,Constant955,Constant956,Constant957,Constant958,Constant959,Constant960,Constant961,Constant962,Constant963,Constant964,Constant965,Constant966,Constant967,Constant968,Constant969,Constant970,Constant971,Constant972,Constant973,Constant974,Constant975,Constant976,Constant977,Constant978,Constant979,Constant980,Constant981,Constant982,Constant983,Constant984,Constant985,Constant986,Constant987,Constant988,Constant989,Constant990,Constant991,Constant992,Constant993,Constant994,Constant995,Constant996,Constant997,Constant998,Constant999,Constant1000,Constant1001,Constant1002,Constant1003,Constant1004,Constant1005,Constant1006,Constant1007,Constant1008 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 88, 89, 92, 4, 219

1: PgInsertSingle[85]
2:
ᐳ: 90, 91, 94, 93, 95, 96, 98, 99, 100, 101, 102, 103, 104, 105, 107, 108, 109, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 154, 155, 158, 169, 172, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 216
3: PgSelect[156], PgSelect[170]
4: PgSelectRows[160], PgSelectRows[174]
ᐳ: 159, 161, 162, 163, 164, 165, 166, 167, 168, 173, 175, 176, 179, 190, 193, 204
5: PgSelect[177], PgSelect[191]
6: PgSelectRows[181], PgSelectRows[195]
ᐳ: 180, 182, 183, 184, 185, 186, 187, 188, 189, 194, 196, 197, 198, 199, 200, 201, 202, 203"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle116,Object120 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 268, 120, 116, 145, 119, 4, 144

ROOT Object{1}ᐸ{result}ᐳ[120]"):::bucket + class Bucket1,PgInsertSingle85,Object90,Access91,PgClassExpression93,Access94,List95,Lambda96,PgClassExpression98,PgClassExpression99,PgClassExpression100,PgClassExpression101,PgClassExpression102,PgClassExpression103,PgClassExpression104,PgClassExpression105,PgClassExpression107,PgClassExpression108,PgClassExpression109,PgClassExpression111,PgClassExpression112,PgClassExpression113,Access114,Access115,Access116,Access117,Access118,Access119,PgClassExpression120,Access121,Access122,Access123,Access124,Access125,Access126,PgClassExpression127,Access128,Access129,Access130,Access131,Access132,Access133,PgClassExpression134,PgClassExpression135,PgClassExpression136,PgClassExpression137,PgClassExpression138,PgClassExpression139,Access140,Access141,Access142,Access143,Access144,Access145,PgClassExpression146,PgClassExpression154,PgClassExpression155,PgSelect156,PgFromExpression158,First159,PgSelectRows160,PgSelectSingle161,PgClassExpression162,PgClassExpression163,PgClassExpression164,PgClassExpression165,PgClassExpression166,PgClassExpression167,PgClassExpression168,PgClassExpression169,PgSelect170,PgFromExpression172,First173,PgSelectRows174,PgSelectSingle175,PgClassExpression176,PgSelect177,PgFromExpression179,First180,PgSelectRows181,PgSelectSingle182,PgClassExpression183,PgClassExpression184,PgClassExpression185,PgClassExpression186,PgClassExpression187,PgClassExpression188,PgClassExpression189,PgClassExpression190,PgSelect191,PgFromExpression193,First194,PgSelectRows195,PgSelectSingle196,PgClassExpression197,PgClassExpression198,PgClassExpression199,PgClassExpression200,PgClassExpression201,PgClassExpression202,PgClassExpression203,PgClassExpression204,PgClassExpression205,Access206,Access207,PgClassExpression208,Access209,Access210,PgClassExpression211,PgClassExpression212,PgClassExpression213,PgClassExpression214,PgClassExpression216 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ105ᐳ[106]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,Lambda269 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 116, 145, 119

ROOT PgInsertSingle{1}ᐸtypes(id,smallint,bigint,numeric,decimal,boolean,varchar,enum,enum_array,domain,domain2,text_array,json,jsonb,numrange,daterange,an_int_range,timestamp,timestamptz,date,time,timetz,interval,interval_array,money,compound_type,nested_compound_type,point,cidr,macaddr,text_array_domain,int8_array_domain)ᐳ[116]
1:
ᐳ: 146, 150, 151, 152, 153, 154, 155, 156, 157, 159, 160, 161, 163, 164, 165, 172, 179, 186, 187, 188, 189, 190, 191, 198, 206, 207, 222, 255, 258, 261, 262, 263, 264, 266, 147, 148, 166, 169, 173, 176, 180, 183
2: PgSelect[208], PgSelect[223]
3: PgSelectRows[213], PgSelectRows[226]
ᐳ: 212, 214, 215, 216, 217, 218, 219, 220, 221, 225, 227, 228, 241, 254
4: PgSelect[229], PgSelect[242]
5: PgSelectRows[232], PgSelectRows[245]
ᐳ: 231, 233, 244, 246"):::bucket + class Bucket2,__Item106 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ109ᐳ[110]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression146,List147,Lambda148,PgClassExpression150,PgClassExpression151,PgClassExpression152,PgClassExpression153,PgClassExpression154,PgClassExpression155,PgClassExpression156,PgClassExpression157,PgClassExpression159,PgClassExpression160,PgClassExpression161,PgClassExpression163,PgClassExpression164,PgClassExpression165,Access166,Access169,PgClassExpression172,Access173,Access176,PgClassExpression179,Access180,Access183,PgClassExpression186,PgClassExpression187,PgClassExpression188,PgClassExpression189,PgClassExpression190,PgClassExpression191,PgClassExpression198,PgClassExpression206,PgClassExpression207,PgSelect208,First212,PgSelectRows213,PgSelectSingle214,PgClassExpression215,PgClassExpression216,PgClassExpression217,PgClassExpression218,PgClassExpression219,PgClassExpression220,PgClassExpression221,PgClassExpression222,PgSelect223,First225,PgSelectRows226,PgSelectSingle227,PgClassExpression228,PgSelect229,First231,PgSelectRows232,PgSelectSingle233,PgClassExpression241,PgSelect242,First244,PgSelectRows245,PgSelectSingle246,PgClassExpression254,PgClassExpression255,PgClassExpression258,PgClassExpression261,PgClassExpression262,PgClassExpression263,PgClassExpression264,PgClassExpression266 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ157ᐳ[158]"):::bucket + class Bucket3,__Item110 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ146ᐳ[147]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item158 bucket4 - Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ161ᐳ[162]"):::bucket + class Bucket4,__Item147 bucket4 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ214ᐳ[215]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item162 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 166, 165

ROOT Access{3}ᐸ165.startᐳ[166]"):::bucket + class Bucket5,__Item215 bucket5 + Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ216ᐳ[217]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 169, 165

ROOT Access{3}ᐸ165.endᐳ[169]"):::bucket + class Bucket6,__Item217 bucket6 + Bucket7("Bucket 7 (mutationField)
Deps: 236, 2, 239, 990, 218, 4

1: Access[233]
2: Access[234]
3: Object[235]
4: PgInsertSingle[232]
5:
ᐳ: 237, 238, 241, 261, 268, 284, 300, 314, 328, 344, 360, 376, 388, 240, 242, 243, 245, 246, 247, 248, 249, 250, 251, 253, 256
6: 254, 265, 281, 325, 341, 357, 373
ᐳ: 273, 289, 333, 349, 365, 381
7: 258, 270, 286, 330, 346, 362, 378
ᐳ: 257, 259, 262, 269, 271, 274, 275, 276, 277, 278, 285, 287, 290, 291, 292, 293, 294, 306, 320, 329, 331, 334, 335, 336, 337, 338, 345, 347, 350, 351, 352, 353, 354, 361, 363, 366, 367, 368, 369, 370, 377, 379, 382, 383, 384, 385, 386, 272, 288, 304, 318, 332, 348, 364, 380"):::bucket classDef bucket7 stroke:#808000 - class Bucket7 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 173, 172

ROOT Access{3}ᐸ172.startᐳ[173]"):::bucket + class Bucket7,PgInsertSingle232,Access233,Access234,Object235,Object237,Access238,PgClassExpression240,Access241,List242,Lambda243,PgClassExpression245,PgClassExpression246,PgClassExpression247,PgClassExpression248,PgClassExpression249,PgClassExpression250,PgClassExpression251,PgClassExpression253,PgSelect254,PgFromExpression256,First257,PgSelectRows258,PgSelectSingle259,PgFromExpression261,PgClassExpression262,PgSelect265,Connection268,First269,PgSelectRows270,PgSelectSingle271,Edge272,Access273,PgCursor274,PgClassExpression275,List276,Lambda277,PgClassExpression278,PgSelect281,Connection284,First285,PgSelectRows286,PgSelectSingle287,Edge288,Access289,PgCursor290,PgClassExpression291,List292,Lambda293,PgClassExpression294,Connection300,Edge304,PgCursor306,Connection314,Edge318,PgCursor320,PgSelect325,Connection328,First329,PgSelectRows330,PgSelectSingle331,Edge332,Access333,PgCursor334,PgClassExpression335,List336,Lambda337,PgClassExpression338,PgSelect341,Connection344,First345,PgSelectRows346,PgSelectSingle347,Edge348,Access349,PgCursor350,PgClassExpression351,List352,Lambda353,PgClassExpression354,PgSelect357,Connection360,First361,PgSelectRows362,PgSelectSingle363,Edge364,Access365,PgCursor366,PgClassExpression367,List368,Lambda369,PgClassExpression370,PgSelect373,Connection376,First377,PgSelectRows378,PgSelectSingle379,Edge380,Access381,PgCursor382,PgClassExpression383,List384,Lambda385,PgClassExpression386,Lambda388 bucket7 + Bucket8("Bucket 8 (mutationField)
Deps: 405, 2, 239, 990, 218, 4

1: Access[402]
2: Access[403]
3: Object[404]
4: PgInsertSingle[401]
5:
ᐳ: 406, 407, 410, 430, 436, 451, 466, 479, 492, 507, 522, 537, 549, 409, 411, 412, 414, 415, 416, 417, 418, 419, 420, 422, 425
6: 423, 433, 448, 489, 504, 519, 534
ᐳ: 441, 456, 497, 512, 527, 542
7: 427, 438, 453, 494, 509, 524, 539
ᐳ: 426, 428, 431, 437, 439, 442, 443, 444, 445, 446, 452, 454, 457, 458, 459, 460, 461, 472, 485, 493, 495, 498, 499, 500, 501, 502, 508, 510, 513, 514, 515, 516, 517, 523, 525, 528, 529, 530, 531, 532, 538, 540, 543, 544, 545, 546, 547, 440, 455, 470, 483, 496, 511, 526, 541"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 176, 172

ROOT Access{3}ᐸ172.endᐳ[176]"):::bucket + class Bucket8,PgInsertSingle401,Access402,Access403,Object404,Object406,Access407,PgClassExpression409,Access410,List411,Lambda412,PgClassExpression414,PgClassExpression415,PgClassExpression416,PgClassExpression417,PgClassExpression418,PgClassExpression419,PgClassExpression420,PgClassExpression422,PgSelect423,PgFromExpression425,First426,PgSelectRows427,PgSelectSingle428,PgFromExpression430,PgClassExpression431,PgSelect433,Connection436,First437,PgSelectRows438,PgSelectSingle439,Edge440,Access441,PgCursor442,PgClassExpression443,List444,Lambda445,PgClassExpression446,PgSelect448,Connection451,First452,PgSelectRows453,PgSelectSingle454,Edge455,Access456,PgCursor457,PgClassExpression458,List459,Lambda460,PgClassExpression461,Connection466,Edge470,PgCursor472,Connection479,Edge483,PgCursor485,PgSelect489,Connection492,First493,PgSelectRows494,PgSelectSingle495,Edge496,Access497,PgCursor498,PgClassExpression499,List500,Lambda501,PgClassExpression502,PgSelect504,Connection507,First508,PgSelectRows509,PgSelectSingle510,Edge511,Access512,PgCursor513,PgClassExpression514,List515,Lambda516,PgClassExpression517,PgSelect519,Connection522,First523,PgSelectRows524,PgSelectSingle525,Edge526,Access527,PgCursor528,PgClassExpression529,List530,Lambda531,PgClassExpression532,PgSelect534,Connection537,First538,PgSelectRows539,PgSelectSingle540,Edge541,Access542,PgCursor543,PgClassExpression544,List545,Lambda546,PgClassExpression547,Lambda549 bucket8 + Bucket9("Bucket 9 (mutationField)
Deps: 560, 2, 563, 239, 218, 4

1: Access[557]
2: Access[558]
3: Object[559]
4: PgInsertSingle[556]
5:
ᐳ: 561, 562, 565, 610, 564, 566, 567, 568, 571
6: PgSelect[573], PgSelect[584]
7: PgSelectRows[576], PgSelectRows[587]
ᐳ: 575, 577, 579, 580, 581, 582, 586, 588, 589, 590, 591, 592"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 180, 179

ROOT Access{3}ᐸ179.startᐳ[180]"):::bucket + class Bucket9,PgInsertSingle556,Access557,Access558,Object559,Object561,Access562,PgClassExpression564,Access565,PgClassExpression566,List567,Lambda568,PgClassExpression571,PgSelect573,First575,PgSelectRows576,PgSelectSingle577,PgClassExpression579,List580,Lambda581,PgClassExpression582,PgSelect584,First586,PgSelectRows587,PgSelectSingle588,PgClassExpression589,List590,Lambda591,PgClassExpression592,Lambda610 bucket9 + Bucket10("Bucket 10 (mutationField)
Deps: 619, 2, 218, 4

1: Access[616]
2: Access[617]
3: Object[618]
4: PgInsertSingle[615]
5:
ᐳ: 620, 622, 624, 621"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 183, 179

ROOT Access{3}ᐸ179.endᐳ[183]"):::bucket + class Bucket10,PgInsertSingle615,Access616,Access617,Object618,Object620,PgClassExpression621,Access622,Lambda624 bucket10 + Bucket11("Bucket 11 (mutationField)
Deps: 632, 2, 218, 4

1: Access[629]
2: Access[630]
3: Object[631]
4: PgInsertSingle[628]
5:
ᐳ: 633, 635, 637, 634"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11 bucket11 - Bucket12("Bucket 12 (listItem)

ROOT __Item{12}ᐸ198ᐳ[199]"):::bucket + class Bucket11,PgInsertSingle628,Access629,Access630,Object631,Object633,PgClassExpression634,Access635,Lambda637 bucket11 + Bucket12("Bucket 12 (mutationField)
Deps: 653, 2, 239, 990, 218, 4

1: Access[650]
2: Access[651]
3: Object[652]
4: PgInsertSingle[649]
5:
ᐳ: 654, 655, 658, 678, 684, 699, 714, 727, 740, 755, 770, 785, 797, 657, 659, 660, 662, 663, 664, 665, 666, 667, 668, 670, 673
6: 671, 681, 696, 737, 752, 767, 782
ᐳ: 689, 704, 745, 760, 775, 790
7: 675, 686, 701, 742, 757, 772, 787
ᐳ: 674, 676, 679, 685, 687, 690, 691, 692, 693, 694, 700, 702, 705, 706, 707, 708, 709, 720, 733, 741, 743, 746, 747, 748, 749, 750, 756, 758, 761, 762, 763, 764, 765, 771, 773, 776, 777, 778, 779, 780, 786, 788, 791, 792, 793, 794, 795, 688, 703, 718, 731, 744, 759, 774, 789"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12,__Item199 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 199

ROOT __Item{12}ᐸ198ᐳ[199]"):::bucket + class Bucket12,PgInsertSingle649,Access650,Access651,Object652,Object654,Access655,PgClassExpression657,Access658,List659,Lambda660,PgClassExpression662,PgClassExpression663,PgClassExpression664,PgClassExpression665,PgClassExpression666,PgClassExpression667,PgClassExpression668,PgClassExpression670,PgSelect671,PgFromExpression673,First674,PgSelectRows675,PgSelectSingle676,PgFromExpression678,PgClassExpression679,PgSelect681,Connection684,First685,PgSelectRows686,PgSelectSingle687,Edge688,Access689,PgCursor690,PgClassExpression691,List692,Lambda693,PgClassExpression694,PgSelect696,Connection699,First700,PgSelectRows701,PgSelectSingle702,Edge703,Access704,PgCursor705,PgClassExpression706,List707,Lambda708,PgClassExpression709,Connection714,Edge718,PgCursor720,Connection727,Edge731,PgCursor733,PgSelect737,Connection740,First741,PgSelectRows742,PgSelectSingle743,Edge744,Access745,PgCursor746,PgClassExpression747,List748,Lambda749,PgClassExpression750,PgSelect752,Connection755,First756,PgSelectRows757,PgSelectSingle758,Edge759,Access760,PgCursor761,PgClassExpression762,List763,Lambda764,PgClassExpression765,PgSelect767,Connection770,First771,PgSelectRows772,PgSelectSingle773,Edge774,Access775,PgCursor776,PgClassExpression777,List778,Lambda779,PgClassExpression780,PgSelect782,Connection785,First786,PgSelectRows787,PgSelectSingle788,Edge789,Access790,PgCursor791,PgClassExpression792,List793,Lambda794,PgClassExpression795,Lambda797 bucket12 + Bucket13("Bucket 13 (mutationField)
Deps: 809, 2, 990

1: Access[806]
2: Access[807]
3: Object[808]
4: PgInsertSingle[805]
5:
ᐳ: 810, 813, 821, 812, 816
6: PgSelect[814]
7: PgSelectRows[818]
ᐳ: 817, 819, 822"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 233

ROOT PgSelectSingle{3}ᐸfrmcdc_compoundTypeᐳ[233]"):::bucket + class Bucket13,PgInsertSingle805,Access806,Access807,Object808,Object810,PgClassExpression812,Access813,PgSelect814,PgFromExpression816,First817,PgSelectRows818,PgSelectSingle819,PgFromExpression821,PgClassExpression822 bucket13 + Bucket14("Bucket 14 (mutationField)
Deps: 832, 2

1: Access[829]
2: Access[830]
3: Object[831]
4: PgInsertSingle[828]
5:
ᐳ: 833, 835, 834, 836"):::bucket classDef bucket14 stroke:#a52a2a - class Bucket14,PgClassExpression234,PgClassExpression235,PgClassExpression236,PgClassExpression237,PgClassExpression238,PgClassExpression239,PgClassExpression240 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 246

ROOT PgSelectSingle{3}ᐸfrmcdc_compoundTypeᐳ[246]"):::bucket + class Bucket14,PgInsertSingle828,Access829,Access830,Object831,Object833,PgClassExpression834,Access835,PgClassExpression836 bucket14 + Bucket15("Bucket 15 (mutationField)
Deps: 846, 2

1: Access[843]
2: Access[844]
3: Object[845]
4: PgInsertSingle[842]
5:
ᐳ: 847, 849, 848, 850, 851, 854
6: PgSelect[852]
7: PgSelectRows[855]"):::bucket classDef bucket15 stroke:#ff00ff - class Bucket15,PgClassExpression247,PgClassExpression248,PgClassExpression249,PgClassExpression250,PgClassExpression251,PgClassExpression252,PgClassExpression253 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 258

ROOT PgClassExpression{3}ᐸ__types__....ablePoint”ᐳ[258]"):::bucket + class Bucket15,PgInsertSingle842,Access843,Access844,Object845,Object847,PgClassExpression848,Access849,PgClassExpression850,PgClassExpression851,PgSelect852,PgFromExpression854,PgSelectRows855 bucket15 + Bucket16("Bucket 16 (listItem)

ROOT __Item{16}ᐸ855ᐳ[856]"):::bucket classDef bucket16 stroke:#f5deb3 - class Bucket16 bucket16 - Bucket17("Bucket 17 (listItem)

ROOT __Item{17}ᐸ264ᐳ[265]"):::bucket + class Bucket16,__Item856,PgSelectSingle857,PgClassExpression858,PgClassExpression859 bucket16 + Bucket17("Bucket 17 (mutationField)
Deps: 870, 2

1: Access[867]
2: Access[868]
3: Object[869]
4: PgInsertSingle[866]
5:
ᐳ: 871, 873, 903, 872, 874, 875, 878, 884
6: 876, 885, 900
7: 879, 888, 905
ᐳ: 887, 889, 890, 897, 904, 906, 910, 911, 912, 915, 921, 934, 935
8: PgSelect[913], PgSelect[922]
9: PgSelectRows[916], PgSelectRows[925]
ᐳ: 924, 926, 927"):::bucket classDef bucket17 stroke:#696969 - class Bucket17,__Item265 bucket17 - Bucket18("Bucket 18 (listItem)

ROOT __Item{18}ᐸ266ᐳ[267]"):::bucket + class Bucket17,PgInsertSingle866,Access867,Access868,Object869,Object871,PgClassExpression872,Access873,PgClassExpression874,PgClassExpression875,PgSelect876,PgFromExpression878,PgSelectRows879,PgClassExpression884,PgSelect885,First887,PgSelectRows888,PgSelectSingle889,PgClassExpression890,PgClassExpression897,PgSelect900,Connection903,First904,PgSelectRows905,PgSelectSingle906,PgClassExpression910,PgClassExpression911,PgClassExpression912,PgSelect913,PgFromExpression915,PgSelectRows916,PgClassExpression921,PgSelect922,First924,PgSelectRows925,PgSelectSingle926,PgClassExpression927,PgClassExpression934,Edge935 bucket17 + Bucket18("Bucket 18 (listItem)

ROOT __Item{18}ᐸ879ᐳ[880]"):::bucket classDef bucket18 stroke:#00bfff - class Bucket18,__Item267 bucket18 - Bucket19("Bucket 19 (nullableBoundary)
Deps: 4, 269

ROOT __ValueᐸrootValueᐳ[4]"):::bucket + class Bucket18,__Item880,PgSelectSingle881,PgClassExpression882,PgClassExpression883 bucket18 + Bucket19("Bucket 19 (listItem)

ROOT __Item{19}ᐸ916ᐳ[917]"):::bucket classDef bucket19 stroke:#7f007f - class Bucket19 bucket19 - Bucket20("Bucket 20 (mutationField)
Deps: 1132, 1133, 1134, 1135, 277, 1136, 1137, 1138, 2, 288, 268, 1139, 4, 144

1: Access[283]
2: Access[284]
3: Object[285]
4: PgInsertSingle[282]
5:
ᐳ: Object[286]"):::bucket - classDef bucket20 stroke:#ffa500 - class Bucket20,PgInsertSingle282,Access283,Access284,Object285,Object286 bucket20 - Bucket21("Bucket 21 (nullableBoundary)
Deps: 288, 282, 285, 268, 286, 1139, 4, 144

ROOT Object{20}ᐸ{result}ᐳ[286]
1:
ᐳ: 313, 318, 335, 352, 369, 386, 403, 420, 438, 451, 290, 291
2: 314, 333, 350, 367, 384, 401, 418, 436
ᐳ: 323, 340, 357, 374, 391, 408, 425, 443
3: 320, 337, 354, 371, 388, 405, 422, 440
ᐳ: 319, 321, 324, 336, 338, 341, 353, 355, 358, 370, 372, 375, 387, 389, 392, 404, 406, 409, 421, 423, 426, 439, 441, 444, 322, 339, 356, 373, 390, 407, 424, 442"):::bucket - classDef bucket21 stroke:#0000ff - class Bucket21,List290,Lambda291,PgClassExpression313,PgSelect314,Connection318,First319,PgSelectRows320,PgSelectSingle321,Edge322,Access323,PgCursor324,PgSelect333,Connection335,First336,PgSelectRows337,PgSelectSingle338,Edge339,Access340,PgCursor341,PgSelect350,Connection352,First353,PgSelectRows354,PgSelectSingle355,Edge356,Access357,PgCursor358,PgSelect367,Connection369,First370,PgSelectRows371,PgSelectSingle372,Edge373,Access374,PgCursor375,PgSelect384,Connection386,First387,PgSelectRows388,PgSelectSingle389,Edge390,Access391,PgCursor392,PgSelect401,Connection403,First404,PgSelectRows405,PgSelectSingle406,Edge407,Access408,PgCursor409,PgSelect418,Connection420,First421,PgSelectRows422,PgSelectSingle423,Edge424,Access425,PgCursor426,PgSelect436,Connection438,First439,PgSelectRows440,PgSelectSingle441,Edge442,Access443,PgCursor444,Lambda451 bucket21 - Bucket22("Bucket 22 (nullableBoundary)
Deps: 282, 285, 1139, 291, 313

ROOT PgInsertSingle{20}ᐸperson(id,person_full_name,about,email,config,last_login_from_ip,last_login_from_subnet,user_mac)ᐳ[282]
1:
ᐳ: 293, 294, 295, 296, 297, 298, 299, 301
2: PgSelect[302]
3: PgSelectRows[307]
ᐳ: 306, 308, 310"):::bucket - classDef bucket22 stroke:#7fff00 - class Bucket22,PgClassExpression293,PgClassExpression294,PgClassExpression295,PgClassExpression296,PgClassExpression297,PgClassExpression298,PgClassExpression299,PgClassExpression301,PgSelect302,First306,PgSelectRows307,PgSelectSingle308,PgClassExpression310 bucket22 - Bucket23("Bucket 23 (nullableBoundary)
Deps: 322, 321, 288, 324

ROOT Edge{21}[322]"):::bucket - classDef bucket23 stroke:#ff1493 - class Bucket23 bucket23 - Bucket24("Bucket 24 (nullableBoundary)
Deps: 321, 288

ROOT PgSelectSingle{21}ᐸpersonᐳ[321]"):::bucket - classDef bucket24 stroke:#808000 - class Bucket24,PgClassExpression326,List327,Lambda328,PgClassExpression329 bucket24 - Bucket25("Bucket 25 (nullableBoundary)
Deps: 339, 338, 288, 341

ROOT Edge{21}[339]"):::bucket - classDef bucket25 stroke:#dda0dd - class Bucket25 bucket25 - Bucket26("Bucket 26 (nullableBoundary)
Deps: 338, 288

ROOT PgSelectSingle{21}ᐸpersonᐳ[338]"):::bucket - classDef bucket26 stroke:#ff0000 - class Bucket26,PgClassExpression343,List344,Lambda345,PgClassExpression346 bucket26 - Bucket27("Bucket 27 (nullableBoundary)
Deps: 356, 355, 288, 358

ROOT Edge{21}[356]"):::bucket - classDef bucket27 stroke:#ffff00 - class Bucket27 bucket27 - Bucket28("Bucket 28 (nullableBoundary)
Deps: 355, 288

ROOT PgSelectSingle{21}ᐸpersonᐳ[355]"):::bucket - classDef bucket28 stroke:#00ffff - class Bucket28,PgClassExpression360,List361,Lambda362,PgClassExpression363 bucket28 - Bucket29("Bucket 29 (nullableBoundary)
Deps: 373, 372, 288, 375

ROOT Edge{21}[373]"):::bucket - classDef bucket29 stroke:#4169e1 - class Bucket29 bucket29 - Bucket30("Bucket 30 (nullableBoundary)
Deps: 372, 288

ROOT PgSelectSingle{21}ᐸpersonᐳ[372]"):::bucket - classDef bucket30 stroke:#3cb371 - class Bucket30,PgClassExpression377,List378,Lambda379,PgClassExpression380 bucket30 - Bucket31("Bucket 31 (nullableBoundary)
Deps: 390, 389, 288, 392

ROOT Edge{21}[390]"):::bucket - classDef bucket31 stroke:#a52a2a - class Bucket31 bucket31 - Bucket32("Bucket 32 (nullableBoundary)
Deps: 389, 288

ROOT PgSelectSingle{21}ᐸpersonᐳ[389]"):::bucket - classDef bucket32 stroke:#ff00ff - class Bucket32,PgClassExpression394,List395,Lambda396,PgClassExpression397 bucket32 - Bucket33("Bucket 33 (nullableBoundary)
Deps: 407, 406, 288, 409

ROOT Edge{21}[407]"):::bucket - classDef bucket33 stroke:#f5deb3 - class Bucket33 bucket33 - Bucket34("Bucket 34 (nullableBoundary)
Deps: 406, 288

ROOT PgSelectSingle{21}ᐸpersonᐳ[406]"):::bucket - classDef bucket34 stroke:#696969 - class Bucket34,PgClassExpression411,List412,Lambda413,PgClassExpression414 bucket34 - Bucket35("Bucket 35 (nullableBoundary)
Deps: 424, 423, 288, 426

ROOT Edge{21}[424]"):::bucket - classDef bucket35 stroke:#00bfff - class Bucket35 bucket35 - Bucket36("Bucket 36 (nullableBoundary)
Deps: 423, 288

ROOT PgSelectSingle{21}ᐸpersonᐳ[423]"):::bucket - classDef bucket36 stroke:#7f007f - class Bucket36,PgClassExpression428,List429,Lambda430,PgClassExpression431 bucket36 - Bucket37("Bucket 37 (nullableBoundary)
Deps: 442, 441, 288, 444

ROOT Edge{21}[442]"):::bucket - classDef bucket37 stroke:#ffa500 - class Bucket37 bucket37 - Bucket38("Bucket 38 (nullableBoundary)
Deps: 441, 288

ROOT PgSelectSingle{21}ᐸpersonᐳ[441]"):::bucket - classDef bucket38 stroke:#0000ff - class Bucket38,PgClassExpression446,List447,Lambda448,PgClassExpression449 bucket38 - Bucket39("Bucket 39 (nullableBoundary)
Deps: 4, 451

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket39 stroke:#7fff00 - class Bucket39 bucket39 - Bucket40("Bucket 40 (mutationField)
Deps: 1110, 1141, 1142, 1143, 144, 1145, 1124, 1146, 2, 1140, 288, 268, 1139, 4

1: Access[465]
2: Access[466]
3: Object[467]
4: PgInsertSingle[464]
5:
ᐳ: Object[468]"):::bucket - classDef bucket40 stroke:#ff1493 - class Bucket40,PgInsertSingle464,Access465,Access466,Object467,Object468 bucket40 - Bucket41("Bucket 41 (nullableBoundary)
Deps: 288, 464, 467, 268, 468, 1139, 4, 1140

ROOT Object{40}ᐸ{result,clientMutationId}ᐳ[468]
1:
ᐳ: 494, 499, 516, 533, 550, 567, 584, 601, 619, 632, 471, 472
2: 495, 514, 531, 548, 565, 582, 599, 617
ᐳ: 504, 521, 538, 555, 572, 589, 606, 624
3: 501, 518, 535, 552, 569, 586, 603, 621
ᐳ: 500, 502, 505, 517, 519, 522, 534, 536, 539, 551, 553, 556, 568, 570, 573, 585, 587, 590, 602, 604, 607, 620, 622, 625, 503, 520, 537, 554, 571, 588, 605, 623"):::bucket - classDef bucket41 stroke:#808000 - class Bucket41,List471,Lambda472,PgClassExpression494,PgSelect495,Connection499,First500,PgSelectRows501,PgSelectSingle502,Edge503,Access504,PgCursor505,PgSelect514,Connection516,First517,PgSelectRows518,PgSelectSingle519,Edge520,Access521,PgCursor522,PgSelect531,Connection533,First534,PgSelectRows535,PgSelectSingle536,Edge537,Access538,PgCursor539,PgSelect548,Connection550,First551,PgSelectRows552,PgSelectSingle553,Edge554,Access555,PgCursor556,PgSelect565,Connection567,First568,PgSelectRows569,PgSelectSingle570,Edge571,Access572,PgCursor573,PgSelect582,Connection584,First585,PgSelectRows586,PgSelectSingle587,Edge588,Access589,PgCursor590,PgSelect599,Connection601,First602,PgSelectRows603,PgSelectSingle604,Edge605,Access606,PgCursor607,PgSelect617,Connection619,First620,PgSelectRows621,PgSelectSingle622,Edge623,Access624,PgCursor625,Lambda632 bucket41 - Bucket42("Bucket 42 (nullableBoundary)
Deps: 464, 467, 1139, 472, 494

ROOT PgInsertSingle{40}ᐸperson(id,person_full_name,about,email,config,last_login_from_ip,last_login_from_subnet,user_mac)ᐳ[464]
1:
ᐳ: 474, 475, 476, 477, 478, 479, 480, 482
2: PgSelect[483]
3: PgSelectRows[488]
ᐳ: 487, 489, 491"):::bucket - classDef bucket42 stroke:#dda0dd - class Bucket42,PgClassExpression474,PgClassExpression475,PgClassExpression476,PgClassExpression477,PgClassExpression478,PgClassExpression479,PgClassExpression480,PgClassExpression482,PgSelect483,First487,PgSelectRows488,PgSelectSingle489,PgClassExpression491 bucket42 - Bucket43("Bucket 43 (nullableBoundary)
Deps: 503, 502, 288, 505

ROOT Edge{41}[503]"):::bucket - classDef bucket43 stroke:#ff0000 - class Bucket43 bucket43 - Bucket44("Bucket 44 (nullableBoundary)
Deps: 502, 288

ROOT PgSelectSingle{41}ᐸpersonᐳ[502]"):::bucket - classDef bucket44 stroke:#ffff00 - class Bucket44,PgClassExpression507,List508,Lambda509,PgClassExpression510 bucket44 - Bucket45("Bucket 45 (nullableBoundary)
Deps: 520, 519, 288, 522

ROOT Edge{41}[520]"):::bucket - classDef bucket45 stroke:#00ffff - class Bucket45 bucket45 - Bucket46("Bucket 46 (nullableBoundary)
Deps: 519, 288

ROOT PgSelectSingle{41}ᐸpersonᐳ[519]"):::bucket - classDef bucket46 stroke:#4169e1 - class Bucket46,PgClassExpression524,List525,Lambda526,PgClassExpression527 bucket46 - Bucket47("Bucket 47 (nullableBoundary)
Deps: 537, 536, 288, 539

ROOT Edge{41}[537]"):::bucket - classDef bucket47 stroke:#3cb371 - class Bucket47 bucket47 - Bucket48("Bucket 48 (nullableBoundary)
Deps: 536, 288

ROOT PgSelectSingle{41}ᐸpersonᐳ[536]"):::bucket - classDef bucket48 stroke:#a52a2a - class Bucket48,PgClassExpression541,List542,Lambda543,PgClassExpression544 bucket48 - Bucket49("Bucket 49 (nullableBoundary)
Deps: 554, 553, 288, 556

ROOT Edge{41}[554]"):::bucket - classDef bucket49 stroke:#ff00ff - class Bucket49 bucket49 - Bucket50("Bucket 50 (nullableBoundary)
Deps: 553, 288

ROOT PgSelectSingle{41}ᐸpersonᐳ[553]"):::bucket - classDef bucket50 stroke:#f5deb3 - class Bucket50,PgClassExpression558,List559,Lambda560,PgClassExpression561 bucket50 - Bucket51("Bucket 51 (nullableBoundary)
Deps: 571, 570, 288, 573

ROOT Edge{41}[571]"):::bucket - classDef bucket51 stroke:#696969 - class Bucket51 bucket51 - Bucket52("Bucket 52 (nullableBoundary)
Deps: 570, 288

ROOT PgSelectSingle{41}ᐸpersonᐳ[570]"):::bucket - classDef bucket52 stroke:#00bfff - class Bucket52,PgClassExpression575,List576,Lambda577,PgClassExpression578 bucket52 - Bucket53("Bucket 53 (nullableBoundary)
Deps: 588, 587, 288, 590

ROOT Edge{41}[588]"):::bucket - classDef bucket53 stroke:#7f007f - class Bucket53 bucket53 - Bucket54("Bucket 54 (nullableBoundary)
Deps: 587, 288

ROOT PgSelectSingle{41}ᐸpersonᐳ[587]"):::bucket - classDef bucket54 stroke:#ffa500 - class Bucket54,PgClassExpression592,List593,Lambda594,PgClassExpression595 bucket54 - Bucket55("Bucket 55 (nullableBoundary)
Deps: 605, 604, 288, 607

ROOT Edge{41}[605]"):::bucket - classDef bucket55 stroke:#0000ff - class Bucket55 bucket55 - Bucket56("Bucket 56 (nullableBoundary)
Deps: 604, 288

ROOT PgSelectSingle{41}ᐸpersonᐳ[604]"):::bucket - classDef bucket56 stroke:#7fff00 - class Bucket56,PgClassExpression609,List610,Lambda611,PgClassExpression612 bucket56 - Bucket57("Bucket 57 (nullableBoundary)
Deps: 623, 622, 288, 625

ROOT Edge{41}[623]"):::bucket - classDef bucket57 stroke:#ff1493 - class Bucket57 bucket57 - Bucket58("Bucket 58 (nullableBoundary)
Deps: 622, 288

ROOT PgSelectSingle{41}ᐸpersonᐳ[622]"):::bucket - classDef bucket58 stroke:#808000 - class Bucket58,PgClassExpression627,List628,Lambda629,PgClassExpression630 bucket58 - Bucket59("Bucket 59 (nullableBoundary)
Deps: 4, 632

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket59 stroke:#dda0dd - class Bucket59 bucket59 - Bucket60("Bucket 60 (mutationField)
Deps: 1110, 1132, 1072, 2, 1147, 644, 268, 288, 4

1: Access[640]
2: Access[641]
3: Object[642]
4: PgInsertSingle[639]
5:
ᐳ: Object[643]"):::bucket - classDef bucket60 stroke:#ff0000 - class Bucket60,PgInsertSingle639,Access640,Access641,Object642,Object643 bucket60 - Bucket61("Bucket 61 (nullableBoundary)
Deps: 644, 642, 639, 268, 643, 288, 4, 1147

ROOT Object{60}ᐸ{result,clientMutationId}ᐳ[643]
1:
ᐳ: 676, 689, 701, 647, 648
2: PgSelect[653], PgSelect[666]
3: PgSelectRows[658], PgSelectRows[669]
ᐳ: 657, 659, 668, 670"):::bucket - classDef bucket61 stroke:#ffff00 - class Bucket61,List647,Lambda648,PgSelect653,First657,PgSelectRows658,PgSelectSingle659,PgSelect666,First668,PgSelectRows669,PgSelectSingle670,PgClassExpression676,PgClassExpression689,Lambda701 bucket61 - Bucket62("Bucket 62 (nullableBoundary)
Deps: 639, 659, 288, 670, 648, 676, 689

ROOT PgInsertSingle{60}ᐸcompound_key(person_id_2,person_id_1,extra)ᐳ[639]"):::bucket - classDef bucket62 stroke:#00ffff - class Bucket62,PgClassExpression651 bucket62 - Bucket63("Bucket 63 (nullableBoundary)
Deps: 659, 288

ROOT PgSelectSingle{61}ᐸpersonᐳ[659]"):::bucket - classDef bucket63 stroke:#4169e1 - class Bucket63,PgClassExpression661,List662,Lambda663,PgClassExpression664 bucket63 - Bucket64("Bucket 64 (nullableBoundary)
Deps: 670, 288

ROOT PgSelectSingle{61}ᐸpersonᐳ[670]"):::bucket - classDef bucket64 stroke:#3cb371 - class Bucket64,PgClassExpression672,List673,Lambda674,PgClassExpression675 bucket64 - Bucket65("Bucket 65 (nullableBoundary)
Deps: 659, 288

ROOT PgSelectSingle{61}ᐸpersonᐳ[659]"):::bucket - classDef bucket65 stroke:#a52a2a - class Bucket65,PgClassExpression685,List686,Lambda687,PgClassExpression688 bucket65 - Bucket66("Bucket 66 (nullableBoundary)
Deps: 670, 288

ROOT PgSelectSingle{61}ᐸpersonᐳ[670]"):::bucket - classDef bucket66 stroke:#ff00ff - class Bucket66,PgClassExpression696,List697,Lambda698,PgClassExpression699 bucket66 - Bucket67("Bucket 67 (nullableBoundary)
Deps: 4, 701

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket67 stroke:#f5deb3 - class Bucket67 bucket67 - Bucket68("Bucket 68 (mutationField)
Deps: 1090, 2, 268, 4

1: Access[707]
2: Access[708]
3: Object[709]
4: PgInsertSingle[706]
5:
ᐳ: Object[710]"):::bucket - classDef bucket68 stroke:#696969 - class Bucket68,PgInsertSingle706,Access707,Access708,Object709,Object710 bucket68 - Bucket69("Bucket 69 (nullableBoundary)
Deps: 268, 710, 706, 4

ROOT Object{68}ᐸ{result}ᐳ[710]"):::bucket - classDef bucket69 stroke:#00bfff - class Bucket69,Lambda713 bucket69 - Bucket70("Bucket 70 (nullableBoundary)
Deps: 706

ROOT PgInsertSingle{68}ᐸedge_case(not_null_has_default)ᐳ[706]"):::bucket - classDef bucket70 stroke:#7f007f - class Bucket70,PgClassExpression711 bucket70 - Bucket71("Bucket 71 (nullableBoundary)
Deps: 4, 713

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket71 stroke:#ffa500 - class Bucket71 bucket71 - Bucket72("Bucket 72 (mutationField)
Deps: 2, 268, 4

1: Access[718]
2: Access[719]
3: Object[720]
4: PgInsertSingle[717]
5:
ᐳ: Object[721]"):::bucket - classDef bucket72 stroke:#0000ff - class Bucket72,PgInsertSingle717,Access718,Access719,Object720,Object721 bucket72 - Bucket73("Bucket 73 (nullableBoundary)
Deps: 268, 721, 717, 4

ROOT Object{72}ᐸ{result}ᐳ[721]"):::bucket - classDef bucket73 stroke:#7fff00 - class Bucket73,Lambda724 bucket73 - Bucket74("Bucket 74 (nullableBoundary)
Deps: 717

ROOT PgInsertSingle{72}ᐸedge_case()ᐳ[717]"):::bucket - classDef bucket74 stroke:#ff1493 - class Bucket74,PgClassExpression722 bucket74 - Bucket75("Bucket 75 (nullableBoundary)
Deps: 4, 724

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket75 stroke:#808000 - class Bucket75 bucket75 - Bucket76("Bucket 76 (mutationField)
Deps: 1148, 1149, 144, 1150, 732, 1151, 1152, 1153, 2, 288, 268, 1139, 4

1: Access[737]
2: Access[738]
3: Object[739]
4: PgInsertSingle[736]
5:
ᐳ: Object[740]"):::bucket - classDef bucket76 stroke:#dda0dd - class Bucket76,PgInsertSingle736,Access737,Access738,Object739,Object740 bucket76 - Bucket77("Bucket 77 (nullableBoundary)
Deps: 288, 736, 739, 268, 740, 1139, 4, 144

ROOT Object{76}ᐸ{result}ᐳ[740]
1:
ᐳ: 767, 772, 789, 806, 823, 840, 857, 874, 892, 905, 744, 745
2: 768, 787, 804, 821, 838, 855, 872, 890
ᐳ: 777, 794, 811, 828, 845, 862, 879, 897
3: 774, 791, 808, 825, 842, 859, 876, 894
ᐳ: 773, 775, 778, 790, 792, 795, 807, 809, 812, 824, 826, 829, 841, 843, 846, 858, 860, 863, 875, 877, 880, 893, 895, 898, 776, 793, 810, 827, 844, 861, 878, 896"):::bucket - classDef bucket77 stroke:#ff0000 - class Bucket77,List744,Lambda745,PgClassExpression767,PgSelect768,Connection772,First773,PgSelectRows774,PgSelectSingle775,Edge776,Access777,PgCursor778,PgSelect787,Connection789,First790,PgSelectRows791,PgSelectSingle792,Edge793,Access794,PgCursor795,PgSelect804,Connection806,First807,PgSelectRows808,PgSelectSingle809,Edge810,Access811,PgCursor812,PgSelect821,Connection823,First824,PgSelectRows825,PgSelectSingle826,Edge827,Access828,PgCursor829,PgSelect838,Connection840,First841,PgSelectRows842,PgSelectSingle843,Edge844,Access845,PgCursor846,PgSelect855,Connection857,First858,PgSelectRows859,PgSelectSingle860,Edge861,Access862,PgCursor863,PgSelect872,Connection874,First875,PgSelectRows876,PgSelectSingle877,Edge878,Access879,PgCursor880,PgSelect890,Connection892,First893,PgSelectRows894,PgSelectSingle895,Edge896,Access897,PgCursor898,Lambda905 bucket77 - Bucket78("Bucket 78 (nullableBoundary)
Deps: 736, 739, 1139, 745, 767

ROOT PgInsertSingle{76}ᐸperson(id,person_full_name,about,email,config,last_login_from_ip,last_login_from_subnet,user_mac)ᐳ[736]
1:
ᐳ: 747, 748, 749, 750, 751, 752, 753, 755
2: PgSelect[756]
3: PgSelectRows[761]
ᐳ: 760, 762, 764"):::bucket - classDef bucket78 stroke:#ffff00 - class Bucket78,PgClassExpression747,PgClassExpression748,PgClassExpression749,PgClassExpression750,PgClassExpression751,PgClassExpression752,PgClassExpression753,PgClassExpression755,PgSelect756,First760,PgSelectRows761,PgSelectSingle762,PgClassExpression764 bucket78 - Bucket79("Bucket 79 (nullableBoundary)
Deps: 776, 775, 288, 778

ROOT Edge{77}[776]"):::bucket - classDef bucket79 stroke:#00ffff - class Bucket79 bucket79 - Bucket80("Bucket 80 (nullableBoundary)
Deps: 775, 288

ROOT PgSelectSingle{77}ᐸpersonᐳ[775]"):::bucket - classDef bucket80 stroke:#4169e1 - class Bucket80,PgClassExpression780,List781,Lambda782,PgClassExpression783 bucket80 - Bucket81("Bucket 81 (nullableBoundary)
Deps: 793, 792, 288, 795

ROOT Edge{77}[793]"):::bucket - classDef bucket81 stroke:#3cb371 - class Bucket81 bucket81 - Bucket82("Bucket 82 (nullableBoundary)
Deps: 792, 288

ROOT PgSelectSingle{77}ᐸpersonᐳ[792]"):::bucket - classDef bucket82 stroke:#a52a2a - class Bucket82,PgClassExpression797,List798,Lambda799,PgClassExpression800 bucket82 - Bucket83("Bucket 83 (nullableBoundary)
Deps: 810, 809, 288, 812

ROOT Edge{77}[810]"):::bucket - classDef bucket83 stroke:#ff00ff - class Bucket83 bucket83 - Bucket84("Bucket 84 (nullableBoundary)
Deps: 809, 288

ROOT PgSelectSingle{77}ᐸpersonᐳ[809]"):::bucket - classDef bucket84 stroke:#f5deb3 - class Bucket84,PgClassExpression814,List815,Lambda816,PgClassExpression817 bucket84 - Bucket85("Bucket 85 (nullableBoundary)
Deps: 827, 826, 288, 829

ROOT Edge{77}[827]"):::bucket - classDef bucket85 stroke:#696969 - class Bucket85 bucket85 - Bucket86("Bucket 86 (nullableBoundary)
Deps: 826, 288

ROOT PgSelectSingle{77}ᐸpersonᐳ[826]"):::bucket - classDef bucket86 stroke:#00bfff - class Bucket86,PgClassExpression831,List832,Lambda833,PgClassExpression834 bucket86 - Bucket87("Bucket 87 (nullableBoundary)
Deps: 844, 843, 288, 846

ROOT Edge{77}[844]"):::bucket - classDef bucket87 stroke:#7f007f - class Bucket87 bucket87 - Bucket88("Bucket 88 (nullableBoundary)
Deps: 843, 288

ROOT PgSelectSingle{77}ᐸpersonᐳ[843]"):::bucket - classDef bucket88 stroke:#ffa500 - class Bucket88,PgClassExpression848,List849,Lambda850,PgClassExpression851 bucket88 - Bucket89("Bucket 89 (nullableBoundary)
Deps: 861, 860, 288, 863

ROOT Edge{77}[861]"):::bucket - classDef bucket89 stroke:#0000ff - class Bucket89 bucket89 - Bucket90("Bucket 90 (nullableBoundary)
Deps: 860, 288

ROOT PgSelectSingle{77}ᐸpersonᐳ[860]"):::bucket - classDef bucket90 stroke:#7fff00 - class Bucket90,PgClassExpression865,List866,Lambda867,PgClassExpression868 bucket90 - Bucket91("Bucket 91 (nullableBoundary)
Deps: 878, 877, 288, 880

ROOT Edge{77}[878]"):::bucket - classDef bucket91 stroke:#ff1493 - class Bucket91 bucket91 - Bucket92("Bucket 92 (nullableBoundary)
Deps: 877, 288

ROOT PgSelectSingle{77}ᐸpersonᐳ[877]"):::bucket - classDef bucket92 stroke:#808000 - class Bucket92,PgClassExpression882,List883,Lambda884,PgClassExpression885 bucket92 - Bucket93("Bucket 93 (nullableBoundary)
Deps: 896, 895, 288, 898

ROOT Edge{77}[896]"):::bucket - classDef bucket93 stroke:#dda0dd - class Bucket93 bucket93 - Bucket94("Bucket 94 (nullableBoundary)
Deps: 895, 288

ROOT PgSelectSingle{77}ᐸpersonᐳ[895]"):::bucket - classDef bucket94 stroke:#ff0000 - class Bucket94,PgClassExpression900,List901,Lambda902,PgClassExpression903 bucket94 - Bucket95("Bucket 95 (nullableBoundary)
Deps: 4, 905

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket95 stroke:#ffff00 - class Bucket95 bucket95 - Bucket96("Bucket 96 (mutationField)
Deps: 1154, 1155, 144, 1139, 2

1: Access[914]
2: Access[915]
3: Object[916]
4: PgInsertSingle[913]
5:
ᐳ: Object[917]"):::bucket - classDef bucket96 stroke:#00ffff - class Bucket96,PgInsertSingle913,Access914,Access915,Object916,Object917 bucket96 - Bucket97("Bucket 97 (nullableBoundary)
Deps: 917, 913, 916, 1139

ROOT Object{96}ᐸ{result}ᐳ[917]"):::bucket - classDef bucket97 stroke:#4169e1 - class Bucket97 bucket97 - Bucket98("Bucket 98 (nullableBoundary)
Deps: 913, 916, 1139

ROOT PgInsertSingle{96}ᐸperson(id,person_full_name,about,email)ᐳ[913]
1:
ᐳ: PgClassExpression[919]
2: PgSelect[920]
3: PgSelectRows[925]
ᐳ: 924, 926, 928"):::bucket - classDef bucket98 stroke:#3cb371 - class Bucket98,PgClassExpression919,PgSelect920,First924,PgSelectRows925,PgSelectSingle926,PgClassExpression928 bucket98 - Bucket99("Bucket 99 (mutationField)
Deps: 1156, 144, 2

1: Access[935]
2: Access[936]
3: Object[937]
4: PgInsertSingle[934]
5:
ᐳ: Object[938]"):::bucket - classDef bucket99 stroke:#a52a2a - class Bucket99,PgInsertSingle934,Access935,Access936,Object937,Object938 bucket99 - Bucket100("Bucket 100 (nullableBoundary)
Deps: 938, 934

ROOT Object{99}ᐸ{result}ᐳ[938]"):::bucket - classDef bucket100 stroke:#ff00ff - class Bucket100 bucket100 - Bucket101("Bucket 101 (nullableBoundary)
Deps: 934

ROOT PgInsertSingle{99}ᐸdefault_value(id,null_value)ᐳ[934]"):::bucket - classDef bucket101 stroke:#f5deb3 - class Bucket101,PgClassExpression939,PgClassExpression940 bucket101 - Bucket102("Bucket 102 (mutationField)
Deps: 1157, 1191, 2

1: Access[956]
2: Access[957]
3: Object[958]
4: PgInsertSingle[955]
5:
ᐳ: Object[959]"):::bucket - classDef bucket102 stroke:#696969 - class Bucket102,PgInsertSingle955,Access956,Access957,Object958,Object959 bucket102 - Bucket103("Bucket 103 (nullableBoundary)
Deps: 959, 955, 958

ROOT Object{102}ᐸ{result}ᐳ[959]"):::bucket - classDef bucket103 stroke:#00bfff - class Bucket103 bucket103 - Bucket104("Bucket 104 (nullableBoundary)
Deps: 955, 958

ROOT PgInsertSingle{102}ᐸpost(headline,comptypes)ᐳ[955]
1:
ᐳ: 964, 965, 966
2: PgSelect[967]
3: PgSelectRows[971]"):::bucket - classDef bucket104 stroke:#7f007f - class Bucket104,PgClassExpression964,PgClassExpression965,PgClassExpression966,PgSelect967,PgSelectRows971 bucket104 - Bucket105("Bucket 105 (listItem)

ROOT __Item{105}ᐸ971ᐳ[972]"):::bucket - classDef bucket105 stroke:#ffa500 - class Bucket105,__Item972,PgSelectSingle973 bucket105 - Bucket106("Bucket 106 (nullableBoundary)
Deps: 973

ROOT PgSelectSingle{105}ᐸfrmcdc_comptypeᐳ[973]"):::bucket - classDef bucket106 stroke:#0000ff - class Bucket106,PgClassExpression974,PgClassExpression975 bucket106 - Bucket107("Bucket 107 (mutationField)
Deps: 1161, 1099, 1192, 2

1: Access[992]
2: Access[993]
3: Object[994]
4: PgInsertSingle[991]
5:
ᐳ: Object[995]"):::bucket - classDef bucket107 stroke:#7fff00 - class Bucket107,PgInsertSingle991,Access992,Access993,Object994,Object995 bucket107 - Bucket108("Bucket 108 (nullableBoundary)
Deps: 994, 991, 995

ROOT Object{107}ᐸ{result}ᐳ[995]
1:
ᐳ: 1028, 1033, 1059
2: PgSelect[1013], PgSelect[1029]
3: PgSelectRows[1016], PgSelectRows[1035]
ᐳ: 1015, 1017, 1034, 1036, 1066"):::bucket - classDef bucket108 stroke:#ff1493 - class Bucket108,PgSelect1013,First1015,PgSelectRows1016,PgSelectSingle1017,PgClassExpression1028,PgSelect1029,Connection1033,First1034,PgSelectRows1035,PgSelectSingle1036,PgClassExpression1059,Edge1066 bucket108 - Bucket109("Bucket 109 (nullableBoundary)
Deps: 991, 994, 1017, 1028

ROOT PgInsertSingle{107}ᐸpost(headline,author_id,comptypes)ᐳ[991]
1:
ᐳ: 1001, 1002
2: PgSelect[1003]
3: PgSelectRows[1007]"):::bucket - classDef bucket109 stroke:#808000 - class Bucket109,PgClassExpression1001,PgClassExpression1002,PgSelect1003,PgSelectRows1007 bucket109 - Bucket110("Bucket 110 (listItem)

ROOT __Item{110}ᐸ1007ᐳ[1008]"):::bucket - classDef bucket110 stroke:#dda0dd - class Bucket110,__Item1008,PgSelectSingle1009 bucket110 - Bucket111("Bucket 111 (nullableBoundary)
Deps: 1009

ROOT PgSelectSingle{110}ᐸfrmcdc_comptypeᐳ[1009]"):::bucket - classDef bucket111 stroke:#ff0000 - class Bucket111,PgClassExpression1010,PgClassExpression1011 bucket111 - Bucket112("Bucket 112 (nullableBoundary)
Deps: 1017

ROOT PgSelectSingle{108}ᐸpersonᐳ[1017]"):::bucket - classDef bucket112 stroke:#ffff00 - class Bucket112,PgClassExpression1018,PgClassExpression1025 bucket112 - Bucket113("Bucket 113 (nullableBoundary)
Deps: 1066, 1036, 994

ROOT Edge{108}[1066]"):::bucket - classDef bucket113 stroke:#00ffff - class Bucket113 bucket113 - Bucket114("Bucket 114 (nullableBoundary)
Deps: 1036, 994

ROOT PgSelectSingle{108}ᐸpostᐳ[1036]
1:
ᐳ: 1040, 1041, 1042, 1052
2: PgSelect[1043], PgSelect[1053]
3: PgSelectRows[1047], PgSelectRows[1056]
ᐳ: First[1055], PgSelectSingle[1057]"):::bucket - classDef bucket114 stroke:#4169e1 - class Bucket114,PgClassExpression1040,PgClassExpression1041,PgClassExpression1042,PgSelect1043,PgSelectRows1047,PgClassExpression1052,PgSelect1053,First1055,PgSelectRows1056,PgSelectSingle1057 bucket114 - Bucket115("Bucket 115 (listItem)

ROOT __Item{115}ᐸ1047ᐳ[1048]"):::bucket - classDef bucket115 stroke:#3cb371 - class Bucket115,__Item1048,PgSelectSingle1049 bucket115 - Bucket116("Bucket 116 (nullableBoundary)
Deps: 1049

ROOT PgSelectSingle{115}ᐸfrmcdc_comptypeᐳ[1049]"):::bucket - classDef bucket116 stroke:#a52a2a - class Bucket116,PgClassExpression1050,PgClassExpression1051 bucket116 - Bucket117("Bucket 117 (nullableBoundary)
Deps: 1057

ROOT PgSelectSingle{114}ᐸpersonᐳ[1057]"):::bucket - classDef bucket117 stroke:#ff00ff - class Bucket117,PgClassExpression1058 bucket117 - Bucket118("Bucket 118 (nullableBoundary)
Deps: 1017

ROOT PgSelectSingle{108}ᐸpersonᐳ[1017]"):::bucket - classDef bucket118 stroke:#f5deb3 - class Bucket118,PgClassExpression1065 bucket118 - Bucket0 --> Bucket1 & Bucket20 & Bucket40 & Bucket60 & Bucket68 & Bucket72 & Bucket76 & Bucket96 & Bucket99 & Bucket102 & Bucket107 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket19 - Bucket3 --> Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 & Bucket11 & Bucket12 & Bucket14 & Bucket15 & Bucket16 & Bucket17 & Bucket18 - Bucket12 --> Bucket13 - Bucket20 --> Bucket21 - Bucket21 --> Bucket22 & Bucket23 & Bucket25 & Bucket27 & Bucket29 & Bucket31 & Bucket33 & Bucket35 & Bucket37 & Bucket39 - Bucket23 --> Bucket24 - Bucket25 --> Bucket26 - Bucket27 --> Bucket28 - Bucket29 --> Bucket30 - Bucket31 --> Bucket32 - Bucket33 --> Bucket34 - Bucket35 --> Bucket36 - Bucket37 --> Bucket38 - Bucket40 --> Bucket41 - Bucket41 --> Bucket42 & Bucket43 & Bucket45 & Bucket47 & Bucket49 & Bucket51 & Bucket53 & Bucket55 & Bucket57 & Bucket59 - Bucket43 --> Bucket44 - Bucket45 --> Bucket46 - Bucket47 --> Bucket48 - Bucket49 --> Bucket50 - Bucket51 --> Bucket52 - Bucket53 --> Bucket54 - Bucket55 --> Bucket56 - Bucket57 --> Bucket58 - Bucket60 --> Bucket61 - Bucket61 --> Bucket62 & Bucket65 & Bucket66 & Bucket67 - Bucket62 --> Bucket63 & Bucket64 - Bucket68 --> Bucket69 - Bucket69 --> Bucket70 & Bucket71 - Bucket72 --> Bucket73 - Bucket73 --> Bucket74 & Bucket75 - Bucket76 --> Bucket77 - Bucket77 --> Bucket78 & Bucket79 & Bucket81 & Bucket83 & Bucket85 & Bucket87 & Bucket89 & Bucket91 & Bucket93 & Bucket95 - Bucket79 --> Bucket80 - Bucket81 --> Bucket82 - Bucket83 --> Bucket84 - Bucket85 --> Bucket86 - Bucket87 --> Bucket88 - Bucket89 --> Bucket90 - Bucket91 --> Bucket92 - Bucket93 --> Bucket94 - Bucket96 --> Bucket97 - Bucket97 --> Bucket98 - Bucket99 --> Bucket100 - Bucket100 --> Bucket101 - Bucket102 --> Bucket103 - Bucket103 --> Bucket104 - Bucket104 --> Bucket105 - Bucket105 --> Bucket106 - Bucket107 --> Bucket108 - Bucket108 --> Bucket109 & Bucket113 & Bucket118 - Bucket109 --> Bucket110 & Bucket112 - Bucket110 --> Bucket111 - Bucket113 --> Bucket114 - Bucket114 --> Bucket115 & Bucket117 - Bucket115 --> Bucket116 + class Bucket19,__Item917,PgSelectSingle918,PgClassExpression919,PgClassExpression920 bucket19 + Bucket0 --> Bucket1 & Bucket7 & Bucket8 & Bucket9 & Bucket10 & Bucket11 & Bucket12 & Bucket13 & Bucket14 & Bucket15 & Bucket17 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 + Bucket15 --> Bucket16 + Bucket17 --> Bucket18 & Bucket19 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-hardcoded.json5 b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-hardcoded.json5 new file mode 100644 index 0000000000..5cc7bc8273 --- /dev/null +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-hardcoded.json5 @@ -0,0 +1,22 @@ +{ + createPerson: { + clientMutationId: null, + edge1: { + cursor: "WyIwOGUwZDM0MmRlIiw5MDAwXQ==", + node: { + nodeId: "WyJwZW9wbGUiLDkwMDBd", + name: "John Smith Jr.", + }, + }, + edge2: { + cursor: "WyIwOGUwZDM0MmRlIiw5MDAwXQ==", + node: { + nodeId: "WyJwZW9wbGUiLDkwMDBd", + name: "John Smith Jr.", + }, + }, + query: { + nodeId: "query", + }, + }, +} diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-hardcoded.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-hardcoded.mermaid new file mode 100644 index 0000000000..35d2cfb7da --- /dev/null +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-hardcoded.mermaid @@ -0,0 +1,87 @@ +%%{init: {'themeVariables': { 'fontSize': '12px'}}}%% +graph TD + classDef path fill:#eee,stroke:#000,color:#000 + classDef plan fill:#fff,stroke-width:1px,color:#000 + classDef itemplan fill:#fff,stroke-width:2px,color:#000 + classDef unbatchedplan fill:#dff,stroke-width:1px,color:#000 + classDef sideeffectplan fill:#fcc,stroke-width:2px,color:#000 + classDef bucket fill:#f6f6f6,color:#000,stroke-width:2px,text-align:left + + + %% plan dependencies + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant58{{"Constant[58∈0] ➊
ᐸ9000ᐳ"}}:::plan + Constant59{{"Constant[59∈0] ➊
ᐸ'John Smith Jr.'ᐳ"}}:::plan + Constant60{{"Constant[60∈0] ➊
ᐸ'Son of Sara and John Smith.'ᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ'johnny.boy.smith@email.com'ᐳ"}}:::plan + __InputDynamicScalar13{{"__InputDynamicScalar[13∈0] ➊"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ'172.16.1.2'ᐳ"}}:::plan + Constant63{{"Constant[63∈0] ➊
ᐸ'172.16.0.0/12'ᐳ"}}:::plan + Constant64{{"Constant[64∈0] ➊
ᐸ'00:00:00:00:00:00'ᐳ"}}:::plan + Constant58 & Constant59 & Constant60 & Constant61 & __InputDynamicScalar13 & Constant62 & Constant63 & Constant64 --> __InputObject8 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 + Object20{{"Object[20∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access18{{"Access[18∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access19{{"Access[19∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access18 & Access19 --> Object20 + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access18 + __Value2 --> Access19 + ApplyInput21{{"ApplyInput[21∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput21 + Lambda57{{"Lambda[57∈0] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant56{{"Constant[56∈0] ➊
ᐸ'query'ᐳ"}}:::plan + Constant56 --> Lambda57 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + Connection30{{"Connection[30∈0] ➊
ᐸ27ᐳ"}}:::plan + Constant37{{"Constant[37∈0] ➊
ᐸ'people'ᐳ"}}:::plan + Connection47{{"Connection[47∈0] ➊
ᐸ44ᐳ"}}:::plan + Edge34{{"Edge[34∈1] ➊"}}:::plan + PgSelectSingle33{{"PgSelectSingle[33∈1] ➊
ᐸpersonᐳ"}}:::plan + PgCursor36{{"PgCursor[36∈1] ➊"}}:::plan + PgSelectSingle33 & PgCursor36 & Connection30 --> Edge34 + Edge51{{"Edge[51∈1] ➊"}}:::plan + PgCursor53{{"PgCursor[53∈1] ➊"}}:::plan + PgSelectSingle33 & PgCursor53 & Connection47 --> Edge51 + PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸperson()ᐳ"]]:::sideeffectplan + Object20 & ApplyInput21 --> PgInsertSingle17 + PgSelect27[["PgSelect[27∈1] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Object20 & PgClassExpression25 --> PgSelect27 + Access35{{"Access[35∈1] ➊
ᐸ27.cursorDetailsᐳ"}}:::plan + PgSelectSingle33 & Access35 --> PgCursor36 + List39{{"List[39∈1] ➊
ᐸ37,38ᐳ"}}:::plan + PgClassExpression38{{"PgClassExpression[38∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant37 & PgClassExpression38 --> List39 + PgSelectSingle33 & Access35 --> PgCursor53 + Object22{{"Object[22∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle17 --> Object22 + Access23{{"Access[23∈1] ➊
ᐸ17.m.clientMutationIdᐳ"}}:::plan + PgInsertSingle17 --> Access23 + Access26{{"Access[26∈1] ➊
ᐸ17.tᐳ"}}:::plan + Access26 --> PgClassExpression25 + PgInsertSingle17 --> Access26 + First31{{"First[31∈1] ➊"}}:::plan + PgSelectRows32[["PgSelectRows[32∈1] ➊"]]:::plan + PgSelectRows32 --> First31 + PgSelect27 --> PgSelectRows32 + First31 --> PgSelectSingle33 + PgSelect27 --> Access35 + PgSelectSingle33 --> PgClassExpression38 + Lambda40{{"Lambda[40∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List39 --> Lambda40 + PgClassExpression41{{"PgClassExpression[41∈1] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression41 + + %% define steps + + subgraph "Buckets for mutations/v4/mutation-create.single-hardcoded" + Bucket0("Bucket 0 (root)"):::bucket + classDef bucket0 stroke:#696969 + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,__InputDynamicScalar13,Access18,Access19,Object20,ApplyInput21,Connection30,Constant37,Connection47,Constant56,Lambda57,Constant58,Constant59,Constant60,Constant61,Constant62,Constant63,Constant64 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 20, 21, 30, 37, 47, 4, 57

1: PgInsertSingle[17]
2:
ᐳ: 22, 23, 26, 25
3: PgSelect[27]
ᐳ: Access[35]
4: PgSelectRows[32]
ᐳ: 31, 33, 36, 38, 39, 40, 41, 53, 34, 51"):::bucket + classDef bucket1 stroke:#00bfff + class Bucket1,PgInsertSingle17,Object22,Access23,PgClassExpression25,Access26,PgSelect27,First31,PgSelectRows32,PgSelectSingle33,Edge34,Access35,PgCursor36,PgClassExpression38,List39,Lambda40,PgClassExpression41,Edge51,PgCursor53 bucket1 + Bucket0 --> Bucket1 + end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-hardcoded.sql b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-hardcoded.sql new file mode 100644 index 0000000000..e66ad6cc57 --- /dev/null +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-hardcoded.sql @@ -0,0 +1,11 @@ +insert into "c"."person" as __person__ ("id", "person_full_name", "about", "email", "config", "last_login_from_ip", "last_login_from_subnet", "user_mac") values ($1::"int4", $2::"varchar", $3::"text", $4::"b"."email", $5::"hstore", $6::"inet", $7::"cidr", $8::"macaddr") returning + __person__."id"::text as "0"; + +select + __person__."id"::text as "0", + __person__."person_full_name" as "1" +from "c"."person" as __person__ +where ( + __person__."id" = $1::"int4" +) +order by __person__."id" asc; \ No newline at end of file diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-hardcoded.test.graphql b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-hardcoded.test.graphql new file mode 100644 index 0000000000..d6cfcce197 --- /dev/null +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-hardcoded.test.graphql @@ -0,0 +1,45 @@ +## expect(errors).toBeFalsy(); +#> schema: ["a", "b", "c"] +# NOTE: because this is hardcoded, as compared to our neighbouring +# single-variables test, we can determine that the orders are equivalent and +# thus we only need to perform one fetch across both edges. + +mutation CreateMutation { + createPerson( + input: { + person: { + id: 9000 + name: "John Smith Jr." + email: "johnny.boy.smith@email.com" + about: "Son of Sara and John Smith." + config: {} + lastLoginFromIp: "172.16.1.2" + lastLoginFromSubnet: "172.16.0.0/12" + userMac: "00:00:00:00:00:00" + } + } + ) { + ...createPersonPayload + } +} + +fragment createPersonPayload on CreatePersonPayload { + clientMutationId + edge1: personEdge(orderBy: [PRIMARY_KEY_ASC]) { + ...peopleEdge + } + edge2: personEdge(orderBy: [ID_ASC]) { + ...peopleEdge + } + query { + nodeId + } +} + +fragment peopleEdge on PeopleEdge { + cursor + node { + nodeId + name + } +} diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-variables.json5 b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-variables.json5 new file mode 100644 index 0000000000..5cc7bc8273 --- /dev/null +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-variables.json5 @@ -0,0 +1,22 @@ +{ + createPerson: { + clientMutationId: null, + edge1: { + cursor: "WyIwOGUwZDM0MmRlIiw5MDAwXQ==", + node: { + nodeId: "WyJwZW9wbGUiLDkwMDBd", + name: "John Smith Jr.", + }, + }, + edge2: { + cursor: "WyIwOGUwZDM0MmRlIiw5MDAwXQ==", + node: { + nodeId: "WyJwZW9wbGUiLDkwMDBd", + name: "John Smith Jr.", + }, + }, + query: { + nodeId: "query", + }, + }, +} diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-variables.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-variables.mermaid new file mode 100644 index 0000000000..1ac4d8dd9e --- /dev/null +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-variables.mermaid @@ -0,0 +1,87 @@ +%%{init: {'themeVariables': { 'fontSize': '12px'}}}%% +graph TD + classDef path fill:#eee,stroke:#000,color:#000 + classDef plan fill:#fff,stroke-width:1px,color:#000 + classDef itemplan fill:#fff,stroke-width:2px,color:#000 + classDef unbatchedplan fill:#dff,stroke-width:1px,color:#000 + classDef sideeffectplan fill:#fcc,stroke-width:2px,color:#000 + classDef bucket fill:#f6f6f6,color:#000,stroke-width:2px,text-align:left + + + %% plan dependencies + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ9000ᐳ"}}:::plan + Constant63{{"Constant[63∈0] ➊
ᐸ'John Smith Jr.'ᐳ"}}:::plan + Constant64{{"Constant[64∈0] ➊
ᐸ'Son of Sara and John Smith.'ᐳ"}}:::plan + Constant65{{"Constant[65∈0] ➊
ᐸ'johnny.boy.smith@email.com'ᐳ"}}:::plan + __InputDynamicScalar13{{"__InputDynamicScalar[13∈0] ➊"}}:::plan + Constant66{{"Constant[66∈0] ➊
ᐸ'172.16.1.2'ᐳ"}}:::plan + Constant67{{"Constant[67∈0] ➊
ᐸ'172.16.0.0/12'ᐳ"}}:::plan + Constant68{{"Constant[68∈0] ➊
ᐸ'00:00:00:00:00:00'ᐳ"}}:::plan + Constant62 & Constant63 & Constant64 & Constant65 & __InputDynamicScalar13 & Constant66 & Constant67 & Constant68 --> __InputObject8 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 + Object20{{"Object[20∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access18{{"Access[18∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access19{{"Access[19∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access18 & Access19 --> Object20 + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access18 + __Value2 --> Access19 + ApplyInput21{{"ApplyInput[21∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput21 + Lambda61{{"Lambda[61∈0] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant60{{"Constant[60∈0] ➊
ᐸ'query'ᐳ"}}:::plan + Constant60 --> Lambda61 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + Connection32{{"Connection[32∈0] ➊
ᐸ29ᐳ"}}:::plan + Constant39{{"Constant[39∈0] ➊
ᐸ'people'ᐳ"}}:::plan + Connection51{{"Connection[51∈0] ➊
ᐸ48ᐳ"}}:::plan + Edge36{{"Edge[36∈1] ➊"}}:::plan + PgSelectSingle35{{"PgSelectSingle[35∈1] ➊
ᐸpersonᐳ"}}:::plan + PgCursor38{{"PgCursor[38∈1] ➊"}}:::plan + PgSelectSingle35 & PgCursor38 & Connection32 --> Edge36 + Edge55{{"Edge[55∈1] ➊"}}:::plan + PgCursor57{{"PgCursor[57∈1] ➊"}}:::plan + PgSelectSingle35 & PgCursor57 & Connection51 --> Edge55 + PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸperson()ᐳ"]]:::sideeffectplan + Object20 & ApplyInput21 --> PgInsertSingle17 + PgSelect29[["PgSelect[29∈1] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Object20 & PgClassExpression27 --> PgSelect29 + Access37{{"Access[37∈1] ➊
ᐸ29.cursorDetailsᐳ"}}:::plan + PgSelectSingle35 & Access37 --> PgCursor38 + List41{{"List[41∈1] ➊
ᐸ39,40ᐳ"}}:::plan + PgClassExpression40{{"PgClassExpression[40∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant39 & PgClassExpression40 --> List41 + PgSelectSingle35 & Access37 --> PgCursor57 + Object22{{"Object[22∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle17 --> Object22 + Access23{{"Access[23∈1] ➊
ᐸ17.m.clientMutationIdᐳ"}}:::plan + PgInsertSingle17 --> Access23 + Access28{{"Access[28∈1] ➊
ᐸ17.tᐳ"}}:::plan + Access28 --> PgClassExpression27 + PgInsertSingle17 --> Access28 + First33{{"First[33∈1] ➊"}}:::plan + PgSelectRows34[["PgSelectRows[34∈1] ➊"]]:::plan + PgSelectRows34 --> First33 + PgSelect29 --> PgSelectRows34 + First33 --> PgSelectSingle35 + PgSelect29 --> Access37 + PgSelectSingle35 --> PgClassExpression40 + Lambda42{{"Lambda[42∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List41 --> Lambda42 + PgClassExpression43{{"PgClassExpression[43∈1] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle35 --> PgClassExpression43 + + %% define steps + + subgraph "Buckets for mutations/v4/mutation-create.single-variables" + Bucket0("Bucket 0 (root)"):::bucket + classDef bucket0 stroke:#696969 + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,__InputDynamicScalar13,Access18,Access19,Object20,ApplyInput21,Connection32,Constant39,Connection51,Constant60,Lambda61,Constant62,Constant63,Constant64,Constant65,Constant66,Constant67,Constant68 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 20, 21, 32, 39, 51, 4, 61

1: PgInsertSingle[17]
2:
ᐳ: 22, 23, 28, 27
3: PgSelect[29]
ᐳ: Access[37]
4: PgSelectRows[34]
ᐳ: 33, 35, 38, 40, 41, 42, 43, 57, 36, 55"):::bucket + classDef bucket1 stroke:#00bfff + class Bucket1,PgInsertSingle17,Object22,Access23,PgClassExpression27,Access28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,Edge36,Access37,PgCursor38,PgClassExpression40,List41,Lambda42,PgClassExpression43,Edge55,PgCursor57 bucket1 + Bucket0 --> Bucket1 + end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-variables.sql b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-variables.sql new file mode 100644 index 0000000000..e66ad6cc57 --- /dev/null +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-variables.sql @@ -0,0 +1,11 @@ +insert into "c"."person" as __person__ ("id", "person_full_name", "about", "email", "config", "last_login_from_ip", "last_login_from_subnet", "user_mac") values ($1::"int4", $2::"varchar", $3::"text", $4::"b"."email", $5::"hstore", $6::"inet", $7::"cidr", $8::"macaddr") returning + __person__."id"::text as "0"; + +select + __person__."id"::text as "0", + __person__."person_full_name" as "1" +from "c"."person" as __person__ +where ( + __person__."id" = $1::"int4" +) +order by __person__."id" asc; \ No newline at end of file diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-variables.test.graphql b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-variables.test.graphql new file mode 100644 index 0000000000..2eeeb155ac --- /dev/null +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.single-variables.test.graphql @@ -0,0 +1,50 @@ +## expect(errors).toBeFalsy(); +#> schema: ["a", "b", "c"] +# TODO: we perform a fetch for edge1 and a fetch for edge2; ideally we'd notice +# that the SQL is the same for both and we'd just perform the query once. +# However, to do so we'd have to know it's definitely not a mutation (no +# VOLATILE functions referenced). We can know this at plan time - see our +# neighbouring single-hardcoded test. + +mutation CreateMutation( + $order1: [PeopleOrderBy!] = [PRIMARY_KEY_ASC] + $order2: [PeopleOrderBy!] = [ID_ASC] +) { + createPerson( + input: { + person: { + id: 9000 + name: "John Smith Jr." + email: "johnny.boy.smith@email.com" + about: "Son of Sara and John Smith." + config: {} + lastLoginFromIp: "172.16.1.2" + lastLoginFromSubnet: "172.16.0.0/12" + userMac: "00:00:00:00:00:00" + } + } + ) { + ...createPersonPayload + } +} + +fragment createPersonPayload on CreatePersonPayload { + clientMutationId + edge1: personEdge(orderBy: $order1) { + ...peopleEdge + } + edge2: personEdge(orderBy: $order2) { + ...peopleEdge + } + query { + nodeId + } +} + +fragment peopleEdge on PeopleEdge { + cursor + node { + nodeId + name + } +} diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.sql b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.sql index d2090f081a..812444045f 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.sql +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-create.sql @@ -83,33 +83,23 @@ select from (select ($1::"c"."compound_type").*) as __frmcdc_compound_type__; insert into "c"."person" as __person__ ("id", "person_full_name", "about", "email", "config", "last_login_from_ip", "last_login_from_subnet", "user_mac") values ($1::"int4", $2::"varchar", $3::"text", $4::"b"."email", $5::"hstore", $6::"inet", $7::"cidr", $8::"macaddr") returning - __person__."person_full_name" as "0", - __person__."email" as "1", - __person__."about" as "2", - __person__."config"::text as "3", - __person__."last_login_from_ip"::text as "4", - __person__."last_login_from_subnet"::text as "5", - __person__."user_mac"::text as "6", - case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "7", - __person__."id"::text as "8"; - -select __person__."id"::text as "0", - __person__."person_full_name" as "1" -from "c"."person" as __person__ -where ( - __person__."id" = $1::"int4" -) -order by __person__."id" asc; + __person__."person_full_name" as "1", + __person__."email" as "2", + __person__."about" as "3", + __person__."config"::text as "4", + __person__."last_login_from_ip"::text as "5", + __person__."last_login_from_subnet"::text as "6", + __person__."user_mac"::text as "7", + case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "8"; select - __person__."id"::text as "0", - __person__."person_full_name" as "1" -from "c"."person" as __person__ -where ( - __person__."id" = $1::"int4" -) -order by __person__."id" desc; + ("c"."person_exists"( + __person__, + $1::"b"."email" + ))::text as "0", + __person__."id"::text as "1" +from (select ($2::"c"."person").*) as __person__; select __person__."id"::text as "0", @@ -168,6 +158,17 @@ where ( ) order by __person__."email" desc, __person__."id" desc; +insert into "c"."person" as __person__ ("id", "person_full_name", "about", "email", "config", "last_login_from_ip", "last_login_from_subnet", "user_mac") values ($1::"int4", $2::"varchar", $3::"text", $4::"b"."email", $5::"hstore", $6::"inet", $7::"cidr", $8::"macaddr") returning + __person__."id"::text as "0", + __person__."person_full_name" as "1", + __person__."email" as "2", + __person__."about" as "3", + __person__."config"::text as "4", + __person__."last_login_from_ip"::text as "5", + __person__."last_login_from_subnet"::text as "6", + __person__."user_mac"::text as "7", + case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "8"; + select ("c"."person_exists"( __person__, @@ -176,35 +177,6 @@ select __person__."id"::text as "1" from (select ($2::"c"."person").*) as __person__; -insert into "c"."person" as __person__ ("id", "person_full_name", "about", "email", "config", "last_login_from_ip", "last_login_from_subnet", "user_mac") values ($1::"int4", $2::"varchar", $3::"text", $4::"b"."email", $5::"hstore", $6::"inet", $7::"cidr", $8::"macaddr") returning - __person__."person_full_name" as "0", - __person__."email" as "1", - __person__."about" as "2", - __person__."config"::text as "3", - __person__."last_login_from_ip"::text as "4", - __person__."last_login_from_subnet"::text as "5", - __person__."user_mac"::text as "6", - case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "7", - __person__."id"::text as "8"; - -select - __person__."id"::text as "0", - __person__."person_full_name" as "1" -from "c"."person" as __person__ -where ( - __person__."id" = $1::"int4" -) -order by __person__."id" asc; - -select - __person__."id"::text as "0", - __person__."person_full_name" as "1" -from "c"."person" as __person__ -where ( - __person__."id" = $1::"int4" -) -order by __person__."id" desc; - select __person__."id"::text as "0", __person__."person_full_name" as "1" @@ -262,18 +234,10 @@ where ( ) order by __person__."email" desc, __person__."id" desc; -select - ("c"."person_exists"( - __person__, - $1::"b"."email" - ))::text as "0", - __person__."id"::text as "1" -from (select ($2::"c"."person").*) as __person__; - insert into "c"."compound_key" as __compound_key__ ("person_id_2", "person_id_1", "extra") values ($1::"int4", $2::"int4", $3::"bool") returning - __compound_key__."extra"::text as "0", - __compound_key__."person_id_1"::text as "1", - __compound_key__."person_id_2"::text as "2"; + __compound_key__."person_id_1"::text as "0", + __compound_key__."person_id_2"::text as "1", + __compound_key__."extra"::text as "2"; select __person__."id"::text as "0", @@ -298,33 +262,23 @@ insert into "c"."edge_case" as __edge_case__ default values returning __edge_case__."not_null_has_default"::text as "0"; insert into "c"."person" as __person__ ("id", "person_full_name", "about", "email", "config", "last_login_from_ip", "last_login_from_subnet", "user_mac") values ($1::"int4", $2::"varchar", $3::"text", $4::"b"."email", $5::"hstore", $6::"inet", $7::"cidr", $8::"macaddr") returning - __person__."person_full_name" as "0", - __person__."email" as "1", - __person__."about" as "2", - __person__."config"::text as "3", - __person__."last_login_from_ip"::text as "4", - __person__."last_login_from_subnet"::text as "5", - __person__."user_mac"::text as "6", - case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "7", - __person__."id"::text as "8"; - -select __person__."id"::text as "0", - __person__."person_full_name" as "1" -from "c"."person" as __person__ -where ( - __person__."id" = $1::"int4" -) -order by __person__."id" asc; + __person__."person_full_name" as "1", + __person__."email" as "2", + __person__."about" as "3", + __person__."config"::text as "4", + __person__."last_login_from_ip"::text as "5", + __person__."last_login_from_subnet"::text as "6", + __person__."user_mac"::text as "7", + case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "8"; select - __person__."id"::text as "0", - __person__."person_full_name" as "1" -from "c"."person" as __person__ -where ( - __person__."id" = $1::"int4" -) -order by __person__."id" desc; + ("c"."person_exists"( + __person__, + $1::"b"."email" + ))::text as "0", + __person__."id"::text as "1" +from (select ($2::"c"."person").*) as __person__; select __person__."id"::text as "0", @@ -383,14 +337,6 @@ where ( ) order by __person__."email" desc, __person__."id" desc; -select - ("c"."person_exists"( - __person__, - $1::"b"."email" - ))::text as "0", - __person__."id"::text as "1" -from (select ($2::"c"."person").*) as __person__; - insert into "c"."person" as __person__ ("id", "person_full_name", "about", "email") values ($1::"int4", $2::"varchar", $3::"text", $4::"b"."email") returning case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "0"; @@ -421,14 +367,20 @@ select from unnest($1::"a"."comptype"[]) as __frmcdc_comptype__; insert into "a"."post" as __post__ ("headline", "author_id", "comptypes") values ($1::"text", $2::"int4", $3::"a"."comptype"[]) returning - __post__."headline" as "0", + __post__."id"::text as "0", + __post__."headline" as "1", (case when (__post__."comptypes") is not distinct from null then null::text else array( select case when (__comptype__) is not distinct from null then null::text else json_build_array(to_char(((__comptype__)."schedule"), 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text), (((__comptype__)."is_optimised"))::text)::text end from unnest(__post__."comptypes") __comptype__ - )::text end) as "1", - __post__."id"::text as "2", + )::text end) as "2", __post__."author_id"::text as "3"; +select + to_char(__frmcdc_comptype__."schedule", 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text) as "0", + __frmcdc_comptype__."is_optimised"::text as "1", + (not (__frmcdc_comptype__ is null))::text as "2" +from unnest($1::"a"."comptype"[]) as __frmcdc_comptype__; + select __person__."id"::text as "0", __person__."email" as "1", @@ -458,12 +410,6 @@ select (not (__frmcdc_comptype__ is null))::text as "2" from unnest($1::"a"."comptype"[]) as __frmcdc_comptype__; -select - to_char(__frmcdc_comptype__."schedule", 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text) as "0", - __frmcdc_comptype__."is_optimised"::text as "1", - (not (__frmcdc_comptype__ is null))::text as "2" -from unnest($1::"a"."comptype"[]) as __frmcdc_comptype__; - select __person__."person_full_name" as "0" from "c"."person" as __person__ diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-delete.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-delete.mermaid index 4b28107ca1..da43d5610f 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-delete.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-delete.mermaid @@ -9,662 +9,633 @@ graph TD %% plan dependencies + __InputObject267{{"__InputObject[267∈0] ➊"}}:::plan + Constant412{{"Constant[412∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant413{{"Constant[413∈0] ➊
ᐸ3ᐳ"}}:::plan + Constant412 & Constant413 --> __InputObject267 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant400{{"Constant[400∈0] ➊
ᐸ'WyJwb3N0cyIsMV0='ᐳ"}}:::plan + Constant400 --> __InputObject6 Object15{{"Object[15∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access14{{"Access[14∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access13 & Access14 --> Object15 + __InputObject32{{"__InputObject[32∈0] ➊"}}:::plan + Constant401{{"Constant[401∈0] ➊
ᐸ'hello'ᐳ"}}:::plan + Constant402{{"Constant[402∈0] ➊
ᐸ'WyJwb3N0cyIsMl0='ᐳ"}}:::plan + Constant401 & Constant402 --> __InputObject32 + __InputObject58{{"__InputObject[58∈0] ➊"}}:::plan + Constant403{{"Constant[403∈0] ➊
ᐸ'WyJwb3N0cyIsMjAwMDAwMF0='ᐳ"}}:::plan + Constant403 --> __InputObject58 + __InputObject84{{"__InputObject[84∈0] ➊"}}:::plan + Constant404{{"Constant[404∈0] ➊
ᐸ'world'ᐳ"}}:::plan + Constant405{{"Constant[405∈0] ➊
ᐸ'WyJwb3N0cyIsM10='ᐳ"}}:::plan + Constant404 & Constant405 --> __InputObject84 + __InputObject110{{"__InputObject[110∈0] ➊"}}:::plan + Constant406{{"Constant[406∈0] ➊
ᐸ'throw error'ᐳ"}}:::plan + Constant407{{"Constant[407∈0] ➊
ᐸ11ᐳ"}}:::plan + Constant406 & Constant407 --> __InputObject110 + __InputObject125{{"__InputObject[125∈0] ➊"}}:::plan + Constant408{{"Constant[408∈0] ➊
ᐸ6ᐳ"}}:::plan + Constant408 --> __InputObject125 + __InputObject148{{"__InputObject[148∈0] ➊"}}:::plan + Constant409{{"Constant[409∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant401 & Constant409 --> __InputObject148 + __InputObject171{{"__InputObject[171∈0] ➊"}}:::plan + Constant410{{"Constant[410∈0] ➊
ᐸ2000000ᐳ"}}:::plan + Constant410 --> __InputObject171 + __InputObject194{{"__InputObject[194∈0] ➊"}}:::plan + Constant404 & Constant407 --> __InputObject194 + __InputObject217{{"__InputObject[217∈0] ➊"}}:::plan + Constant411{{"Constant[411∈0] ➊
ᐸ'WyJjb21wb3VuZF9rZXlzIiw0LDNd'ᐳ"}}:::plan + Constant411 --> __InputObject217 + __InputObject313{{"__InputObject[313∈0] ➊"}}:::plan + Constant414{{"Constant[414∈0] ➊
ᐸ'budd.deey@email.com'ᐳ"}}:::plan + Constant414 --> __InputObject313 + __InputObject330{{"__InputObject[330∈0] ➊"}}:::plan + Constant415{{"Constant[415∈0] ➊
ᐸ'graphile-build.issue.27.exists@example.com'ᐳ"}}:::plan + Constant415 --> __InputObject330 + __InputObject364{{"__InputObject[364∈0] ➊"}}:::plan + Constant416{{"Constant[416∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant416 --> __InputObject364 Lambda9{{"Lambda[9∈0] ➊
ᐸdecode_Post_base64JSONᐳ"}}:::plan - Constant386{{"Constant[386∈0] ➊
ᐸ'WyJwb3N0cyIsMV0='ᐳ"}}:::plan - Constant386 --> Lambda9 + Constant400 --> Lambda9 Access10{{"Access[10∈0] ➊
ᐸ9.1ᐳ"}}:::plan Lambda9 --> Access10 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access13 __Value2 --> Access14 + ApplyInput16{{"ApplyInput[16∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput16 + Lambda31{{"Lambda[31∈0] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant30{{"Constant[30∈0] ➊
ᐸ'query'ᐳ"}}:::plan + Constant30 --> Lambda31 + ApplyInput42{{"ApplyInput[42∈0] ➊"}}:::plan + __InputObject32 --> ApplyInput42 + ApplyInput68{{"ApplyInput[68∈0] ➊"}}:::plan + __InputObject58 --> ApplyInput68 + ApplyInput94{{"ApplyInput[94∈0] ➊"}}:::plan + __InputObject84 --> ApplyInput94 + ApplyInput117{{"ApplyInput[117∈0] ➊"}}:::plan + __InputObject110 --> ApplyInput117 + ApplyInput132{{"ApplyInput[132∈0] ➊"}}:::plan + __InputObject125 --> ApplyInput132 + ApplyInput155{{"ApplyInput[155∈0] ➊"}}:::plan + __InputObject148 --> ApplyInput155 + ApplyInput178{{"ApplyInput[178∈0] ➊"}}:::plan + __InputObject171 --> ApplyInput178 + ApplyInput201{{"ApplyInput[201∈0] ➊"}}:::plan + __InputObject194 --> ApplyInput201 + ApplyInput229{{"ApplyInput[229∈0] ➊"}}:::plan + __InputObject217 --> ApplyInput229 + ApplyInput275{{"ApplyInput[275∈0] ➊"}}:::plan + __InputObject267 --> ApplyInput275 + ApplyInput320{{"ApplyInput[320∈0] ➊"}}:::plan + __InputObject313 --> ApplyInput320 + ApplyInput337{{"ApplyInput[337∈0] ➊"}}:::plan + __InputObject330 --> ApplyInput337 + ApplyInput371{{"ApplyInput[371∈0] ➊"}}:::plan + __InputObject364 --> ApplyInput371 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant17{{"Constant[17∈0] ➊
ᐸnullᐳ"}}:::plan - Constant18{{"Constant[18∈0] ➊
ᐸ'posts'ᐳ"}}:::plan - Constant29{{"Constant[29∈0] ➊
ᐸ'query'ᐳ"}}:::plan - Constant112{{"Constant[112∈0] ➊
ᐸ'types'ᐳ"}}:::plan - Constant216{{"Constant[216∈0] ➊
ᐸ'compound_keys'ᐳ"}}:::plan - Constant236{{"Constant[236∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant387{{"Constant[387∈0] ➊
ᐸ'hello'ᐳ"}}:::plan - Constant388{{"Constant[388∈0] ➊
ᐸ'WyJwb3N0cyIsMl0='ᐳ"}}:::plan - Constant389{{"Constant[389∈0] ➊
ᐸ'WyJwb3N0cyIsMjAwMDAwMF0='ᐳ"}}:::plan - Constant390{{"Constant[390∈0] ➊
ᐸ'world'ᐳ"}}:::plan - Constant391{{"Constant[391∈0] ➊
ᐸ'WyJwb3N0cyIsM10='ᐳ"}}:::plan - Constant392{{"Constant[392∈0] ➊
ᐸ'throw error'ᐳ"}}:::plan - Constant393{{"Constant[393∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant394{{"Constant[394∈0] ➊
ᐸ6ᐳ"}}:::plan - Constant395{{"Constant[395∈0] ➊
ᐸ9ᐳ"}}:::plan - Constant396{{"Constant[396∈0] ➊
ᐸ2000000ᐳ"}}:::plan - Constant397{{"Constant[397∈0] ➊
ᐸ'WyJjb21wb3VuZF9rZXlzIiw0LDNd'ᐳ"}}:::plan - Constant398{{"Constant[398∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant399{{"Constant[399∈0] ➊
ᐸ3ᐳ"}}:::plan - Constant400{{"Constant[400∈0] ➊
ᐸ'budd.deey@email.com'ᐳ"}}:::plan - Constant401{{"Constant[401∈0] ➊
ᐸ'graphile-build.issue.27.exists@example.com'ᐳ"}}:::plan - Constant402{{"Constant[402∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant19{{"Constant[19∈0] ➊
ᐸ'posts'ᐳ"}}:::plan + Constant120{{"Constant[120∈0] ➊
ᐸ'types'ᐳ"}}:::plan + Constant232{{"Constant[232∈0] ➊
ᐸ'compound_keys'ᐳ"}}:::plan + Constant250{{"Constant[250∈0] ➊
ᐸ'people'ᐳ"}}:::plan PgDeleteSingle12[["PgDeleteSingle[12∈1] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan Object15 -->|rejectNull| PgDeleteSingle12 - Access10 --> PgDeleteSingle12 - Object16{{"Object[16∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgDeleteSingle12 --> Object16 - List20{{"List[20∈2] ➊
ᐸ18,19ᐳ"}}:::plan - PgClassExpression19{{"PgClassExpression[19∈2] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression19 --> List20 - PgDeleteSingle12 --> PgClassExpression19 - Lambda21{{"Lambda[21∈2] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List20 --> Lambda21 - Lambda30{{"Lambda[30∈2] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant29 --> Lambda30 - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgDeleteSingle12 --> PgClassExpression27 - PgClassExpression28{{"PgClassExpression[28∈3] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgDeleteSingle12 --> PgClassExpression28 - PgDeleteSingle37[["PgDeleteSingle[37∈5] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan - Object40{{"Object[40∈5] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access35{{"Access[35∈5] ➊
ᐸ34.1ᐳ"}}:::plan - Object40 -->|rejectNull| PgDeleteSingle37 - Access35 --> PgDeleteSingle37 - Access38{{"Access[38∈5] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access39{{"Access[39∈5] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access38 & Access39 --> Object40 - Object41{{"Object[41∈5] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgDeleteSingle37 & Constant387 --> Object41 - Lambda34{{"Lambda[34∈5] ➊
ᐸdecode_Post_base64JSONᐳ"}}:::plan - Constant388 --> Lambda34 - Lambda34 --> Access35 - __Value2 --> Access38 + Access10 & ApplyInput16 --> PgDeleteSingle12 + List22{{"List[22∈1] ➊
ᐸ19,20ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Constant19 & PgClassExpression20 --> List22 + Object17{{"Object[17∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle12 --> Object17 + Access18{{"Access[18∈1] ➊
ᐸ12.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle12 --> Access18 + Access21{{"Access[21∈1] ➊
ᐸ12.tᐳ"}}:::plan + Access21 --> PgClassExpression20 + PgDeleteSingle12 --> Access21 + Lambda23{{"Lambda[23∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List22 --> Lambda23 + PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + Access21 --> PgClassExpression28 + PgClassExpression29{{"PgClassExpression[29∈1] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan + Access21 --> PgClassExpression29 + PgDeleteSingle38[["PgDeleteSingle[38∈2] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan + Object41{{"Object[41∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access36{{"Access[36∈2] ➊
ᐸ35.1ᐳ"}}:::plan + Object41 -->|rejectNull| PgDeleteSingle38 + Access36 & ApplyInput42 --> PgDeleteSingle38 + Access39{{"Access[39∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access40{{"Access[40∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access39 & Access40 --> Object41 + List48{{"List[48∈2] ➊
ᐸ19,46ᐳ"}}:::plan + PgClassExpression46{{"PgClassExpression[46∈2] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Constant19 & PgClassExpression46 --> List48 + Lambda35{{"Lambda[35∈2] ➊
ᐸdecode_Post_base64JSONᐳ"}}:::plan + Constant402 --> Lambda35 + Lambda35 --> Access36 __Value2 --> Access39 - List44{{"List[44∈6] ➊
ᐸ18,43ᐳ"}}:::plan - PgClassExpression43{{"PgClassExpression[43∈6] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression43 --> List44 - PgDeleteSingle37 --> PgClassExpression43 - Lambda45{{"Lambda[45∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List44 --> Lambda45 - Lambda54{{"Lambda[54∈6] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant29 --> Lambda54 - PgClassExpression51{{"PgClassExpression[51∈7] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgDeleteSingle37 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈7] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgDeleteSingle37 --> PgClassExpression52 - PgDeleteSingle61[["PgDeleteSingle[61∈9] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan - Object64{{"Object[64∈9] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access59{{"Access[59∈9] ➊
ᐸ58.1ᐳ"}}:::plan - Object64 -->|rejectNull| PgDeleteSingle61 - Access59 --> PgDeleteSingle61 - Access62{{"Access[62∈9] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access63{{"Access[63∈9] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access62 & Access63 --> Object64 - Lambda58{{"Lambda[58∈9] ➊
ᐸdecode_Post_base64JSONᐳ"}}:::plan - Constant389 --> Lambda58 - Lambda58 --> Access59 - __Value2 --> Access62 - __Value2 --> Access63 - Object65{{"Object[65∈9] ➊
ᐸ{result}ᐳ"}}:::plan - PgDeleteSingle61 --> Object65 - List69{{"List[69∈10] ➊
ᐸ18,68ᐳ"}}:::plan - PgClassExpression68{{"PgClassExpression[68∈10] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression68 --> List69 - PgDeleteSingle61 --> PgClassExpression68 - Lambda70{{"Lambda[70∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List69 --> Lambda70 - Lambda79{{"Lambda[79∈10] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant29 --> Lambda79 - PgClassExpression76{{"PgClassExpression[76∈11] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgDeleteSingle61 --> PgClassExpression76 - PgClassExpression77{{"PgClassExpression[77∈11] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgDeleteSingle61 --> PgClassExpression77 - PgDeleteSingle86[["PgDeleteSingle[86∈13] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan - Object89{{"Object[89∈13] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access84{{"Access[84∈13] ➊
ᐸ83.1ᐳ"}}:::plan - Object89 -->|rejectNull| PgDeleteSingle86 - Access84 --> PgDeleteSingle86 - Access87{{"Access[87∈13] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access88{{"Access[88∈13] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access87 & Access88 --> Object89 - Object90{{"Object[90∈13] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgDeleteSingle86 & Constant390 --> Object90 - Lambda83{{"Lambda[83∈13] ➊
ᐸdecode_Post_base64JSONᐳ"}}:::plan - Constant391 --> Lambda83 - Lambda83 --> Access84 - __Value2 --> Access87 - __Value2 --> Access88 - List93{{"List[93∈14] ➊
ᐸ18,92ᐳ"}}:::plan - PgClassExpression92{{"PgClassExpression[92∈14] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression92 --> List93 - PgDeleteSingle86 --> PgClassExpression92 - Lambda94{{"Lambda[94∈14] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List93 --> Lambda94 - Lambda103{{"Lambda[103∈14] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant29 --> Lambda103 - PgClassExpression100{{"PgClassExpression[100∈15] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgDeleteSingle86 --> PgClassExpression100 - PgClassExpression101{{"PgClassExpression[101∈15] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgDeleteSingle86 --> PgClassExpression101 - PgDeleteSingle107[["PgDeleteSingle[107∈17] ➊
ᐸtypes(id)ᐳ"]]:::sideeffectplan - Object110{{"Object[110∈17] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object110 & Constant393 --> PgDeleteSingle107 - Access108{{"Access[108∈17] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access109{{"Access[109∈17] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access108 & Access109 --> Object110 - Object111{{"Object[111∈17] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgDeleteSingle107 & Constant392 --> Object111 - __Value2 --> Access108 - __Value2 --> Access109 - List114{{"List[114∈18] ➊
ᐸ112,113ᐳ"}}:::plan - PgClassExpression113{{"PgClassExpression[113∈18] ➊
ᐸ__types__.”id”ᐳ"}}:::plan - Constant112 & PgClassExpression113 --> List114 - PgDeleteSingle107 --> PgClassExpression113 - Lambda115{{"Lambda[115∈18] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List114 --> Lambda115 - PgDeleteSingle119[["PgDeleteSingle[119∈19] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan - Object122{{"Object[122∈19] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object122 & Constant394 --> PgDeleteSingle119 - Access120{{"Access[120∈19] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access121{{"Access[121∈19] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access120 & Access121 --> Object122 - __Value2 --> Access120 - __Value2 --> Access121 - Object123{{"Object[123∈19] ➊
ᐸ{result}ᐳ"}}:::plan - PgDeleteSingle119 --> Object123 - List127{{"List[127∈20] ➊
ᐸ18,126ᐳ"}}:::plan - PgClassExpression126{{"PgClassExpression[126∈20] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression126 --> List127 - PgDeleteSingle119 --> PgClassExpression126 - Lambda128{{"Lambda[128∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List127 --> Lambda128 - Lambda137{{"Lambda[137∈20] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant29 --> Lambda137 - PgClassExpression134{{"PgClassExpression[134∈21] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgDeleteSingle119 --> PgClassExpression134 - PgClassExpression135{{"PgClassExpression[135∈21] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgDeleteSingle119 --> PgClassExpression135 - PgDeleteSingle141[["PgDeleteSingle[141∈23] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan - Object144{{"Object[144∈23] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object144 & Constant395 --> PgDeleteSingle141 - Access142{{"Access[142∈23] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access143{{"Access[143∈23] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access142 & Access143 --> Object144 - Object145{{"Object[145∈23] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgDeleteSingle141 & Constant387 --> Object145 - __Value2 --> Access142 - __Value2 --> Access143 - List148{{"List[148∈24] ➊
ᐸ18,147ᐳ"}}:::plan - PgClassExpression147{{"PgClassExpression[147∈24] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression147 --> List148 - PgDeleteSingle141 --> PgClassExpression147 - Lambda149{{"Lambda[149∈24] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List148 --> Lambda149 - Lambda158{{"Lambda[158∈24] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant29 --> Lambda158 - PgClassExpression155{{"PgClassExpression[155∈25] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgDeleteSingle141 --> PgClassExpression155 - PgClassExpression156{{"PgClassExpression[156∈25] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgDeleteSingle141 --> PgClassExpression156 - PgDeleteSingle162[["PgDeleteSingle[162∈27] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan - Object165{{"Object[165∈27] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object165 & Constant396 --> PgDeleteSingle162 - Access163{{"Access[163∈27] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access164{{"Access[164∈27] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access163 & Access164 --> Object165 - __Value2 --> Access163 - __Value2 --> Access164 - Object166{{"Object[166∈27] ➊
ᐸ{result}ᐳ"}}:::plan - PgDeleteSingle162 --> Object166 - List170{{"List[170∈28] ➊
ᐸ18,169ᐳ"}}:::plan - PgClassExpression169{{"PgClassExpression[169∈28] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression169 --> List170 - PgDeleteSingle162 --> PgClassExpression169 - Lambda171{{"Lambda[171∈28] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List170 --> Lambda171 - Lambda180{{"Lambda[180∈28] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant29 --> Lambda180 - PgClassExpression177{{"PgClassExpression[177∈29] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgDeleteSingle162 --> PgClassExpression177 - PgClassExpression178{{"PgClassExpression[178∈29] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgDeleteSingle162 --> PgClassExpression178 - PgDeleteSingle184[["PgDeleteSingle[184∈31] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan - Object187{{"Object[187∈31] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object187 & Constant393 --> PgDeleteSingle184 - Access185{{"Access[185∈31] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access186{{"Access[186∈31] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access185 & Access186 --> Object187 - Object188{{"Object[188∈31] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgDeleteSingle184 & Constant390 --> Object188 - __Value2 --> Access185 - __Value2 --> Access186 - List191{{"List[191∈32] ➊
ᐸ18,190ᐳ"}}:::plan - PgClassExpression190{{"PgClassExpression[190∈32] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression190 --> List191 - PgDeleteSingle184 --> PgClassExpression190 - Lambda192{{"Lambda[192∈32] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List191 --> Lambda192 - Lambda201{{"Lambda[201∈32] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant29 --> Lambda201 - PgClassExpression198{{"PgClassExpression[198∈33] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgDeleteSingle184 --> PgClassExpression198 - PgClassExpression199{{"PgClassExpression[199∈33] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgDeleteSingle184 --> PgClassExpression199 - PgDeleteSingle210[["PgDeleteSingle[210∈35] ➊
ᐸcompound_key(person_id_1,person_id_2)ᐳ"]]:::sideeffectplan - Object213{{"Object[213∈35] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access206{{"Access[206∈35] ➊
ᐸ205.1ᐳ"}}:::plan - Access208{{"Access[208∈35] ➊
ᐸ205.2ᐳ"}}:::plan - Object213 -->|rejectNull| PgDeleteSingle210 - Access206 -->|rejectNull| PgDeleteSingle210 - Access208 --> PgDeleteSingle210 - Access211{{"Access[211∈35] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access212{{"Access[212∈35] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access211 & Access212 --> Object213 - Lambda205{{"Lambda[205∈35] ➊
ᐸdecode_CompoundKey_base64JSONᐳ"}}:::plan - Constant397 --> Lambda205 - Lambda205 --> Access206 - Lambda205 --> Access208 - __Value2 --> Access211 - __Value2 --> Access212 - Object214{{"Object[214∈35] ➊
ᐸ{result}ᐳ"}}:::plan - PgDeleteSingle210 --> Object214 - List219{{"List[219∈36] ➊
ᐸ216,217,218ᐳ"}}:::plan - PgClassExpression217{{"PgClassExpression[217∈36] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression218{{"PgClassExpression[218∈36] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Constant216 & PgClassExpression217 & PgClassExpression218 --> List219 - PgSelect229[["PgSelect[229∈36] ➊
ᐸpersonᐳ"]]:::plan - Object213 & PgClassExpression217 --> PgSelect229 - PgSelect242[["PgSelect[242∈36] ➊
ᐸpersonᐳ"]]:::plan - Object213 & PgClassExpression218 --> PgSelect242 - PgDeleteSingle210 --> PgClassExpression217 - PgDeleteSingle210 --> PgClassExpression218 - Lambda220{{"Lambda[220∈36] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List219 --> Lambda220 - First233{{"First[233∈36] ➊"}}:::plan - PgSelectRows234[["PgSelectRows[234∈36] ➊"]]:::plan - PgSelectRows234 --> First233 - PgSelect229 --> PgSelectRows234 - PgSelectSingle235{{"PgSelectSingle[235∈36] ➊
ᐸpersonᐳ"}}:::plan - First233 --> PgSelectSingle235 - First244{{"First[244∈36] ➊"}}:::plan - PgSelectRows245[["PgSelectRows[245∈36] ➊"]]:::plan - PgSelectRows245 --> First244 - PgSelect242 --> PgSelectRows245 - PgSelectSingle246{{"PgSelectSingle[246∈36] ➊
ᐸpersonᐳ"}}:::plan - First244 --> PgSelectSingle246 - Lambda253{{"Lambda[253∈36] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant29 --> Lambda253 - List238{{"List[238∈38] ➊
ᐸ236,237ᐳ"}}:::plan - PgClassExpression237{{"PgClassExpression[237∈38] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant236 & PgClassExpression237 --> List238 - PgSelectSingle235 --> PgClassExpression237 - Lambda239{{"Lambda[239∈38] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List238 --> Lambda239 - PgClassExpression240{{"PgClassExpression[240∈38] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle235 --> PgClassExpression240 - List249{{"List[249∈39] ➊
ᐸ236,248ᐳ"}}:::plan - PgClassExpression248{{"PgClassExpression[248∈39] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant236 & PgClassExpression248 --> List249 - PgSelectSingle246 --> PgClassExpression248 - Lambda250{{"Lambda[250∈39] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List249 --> Lambda250 - PgClassExpression251{{"PgClassExpression[251∈39] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle246 --> PgClassExpression251 - PgDeleteSingle258[["PgDeleteSingle[258∈41] ➊
ᐸcompound_key(person_id_1,person_id_2)ᐳ"]]:::sideeffectplan - Object261{{"Object[261∈41] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object261 & Constant398 & Constant399 --> PgDeleteSingle258 - Access259{{"Access[259∈41] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access260{{"Access[260∈41] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access259 & Access260 --> Object261 - __Value2 --> Access259 - __Value2 --> Access260 - Object262{{"Object[262∈41] ➊
ᐸ{result}ᐳ"}}:::plan - PgDeleteSingle258 --> Object262 - List267{{"List[267∈42] ➊
ᐸ216,265,266ᐳ"}}:::plan - PgClassExpression265{{"PgClassExpression[265∈42] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression266{{"PgClassExpression[266∈42] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Constant216 & PgClassExpression265 & PgClassExpression266 --> List267 - PgSelect277[["PgSelect[277∈42] ➊
ᐸpersonᐳ"]]:::plan - Object261 & PgClassExpression265 --> PgSelect277 - PgSelect290[["PgSelect[290∈42] ➊
ᐸpersonᐳ"]]:::plan - Object261 & PgClassExpression266 --> PgSelect290 - PgDeleteSingle258 --> PgClassExpression265 - PgDeleteSingle258 --> PgClassExpression266 - Lambda268{{"Lambda[268∈42] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List267 --> Lambda268 - First281{{"First[281∈42] ➊"}}:::plan - PgSelectRows282[["PgSelectRows[282∈42] ➊"]]:::plan - PgSelectRows282 --> First281 - PgSelect277 --> PgSelectRows282 - PgSelectSingle283{{"PgSelectSingle[283∈42] ➊
ᐸpersonᐳ"}}:::plan - First281 --> PgSelectSingle283 - First292{{"First[292∈42] ➊"}}:::plan - PgSelectRows293[["PgSelectRows[293∈42] ➊"]]:::plan - PgSelectRows293 --> First292 - PgSelect290 --> PgSelectRows293 - PgSelectSingle294{{"PgSelectSingle[294∈42] ➊
ᐸpersonᐳ"}}:::plan - First292 --> PgSelectSingle294 - Lambda301{{"Lambda[301∈42] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant29 --> Lambda301 - List286{{"List[286∈44] ➊
ᐸ236,285ᐳ"}}:::plan - PgClassExpression285{{"PgClassExpression[285∈44] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant236 & PgClassExpression285 --> List286 - PgSelectSingle283 --> PgClassExpression285 - Lambda287{{"Lambda[287∈44] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List286 --> Lambda287 - PgClassExpression288{{"PgClassExpression[288∈44] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle283 --> PgClassExpression288 - List297{{"List[297∈45] ➊
ᐸ236,296ᐳ"}}:::plan - PgClassExpression296{{"PgClassExpression[296∈45] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant236 & PgClassExpression296 --> List297 - PgSelectSingle294 --> PgClassExpression296 - Lambda298{{"Lambda[298∈45] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List297 --> Lambda298 - PgClassExpression299{{"PgClassExpression[299∈45] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle294 --> PgClassExpression299 - PgDeleteSingle305[["PgDeleteSingle[305∈47] ➊
ᐸperson(email)ᐳ"]]:::sideeffectplan - Object308{{"Object[308∈47] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object308 & Constant400 --> PgDeleteSingle305 - Access306{{"Access[306∈47] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access307{{"Access[307∈47] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access306 & Access307 --> Object308 - __Value2 --> Access306 - __Value2 --> Access307 - Object309{{"Object[309∈47] ➊
ᐸ{result}ᐳ"}}:::plan - PgDeleteSingle305 --> Object309 - List313{{"List[313∈48] ➊
ᐸ236,312ᐳ"}}:::plan - PgClassExpression312{{"PgClassExpression[312∈48] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant236 & PgClassExpression312 --> List313 - PgDeleteSingle305 --> PgClassExpression312 - Lambda314{{"Lambda[314∈48] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List313 --> Lambda314 - Lambda316{{"Lambda[316∈48] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant29 --> Lambda316 - PgDeleteSingle320[["PgDeleteSingle[320∈50] ➊
ᐸperson(email)ᐳ"]]:::sideeffectplan - Object323{{"Object[323∈50] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object323 & Constant401 --> PgDeleteSingle320 - Access321{{"Access[321∈50] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access322{{"Access[322∈50] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access321 & Access322 --> Object323 - __Value2 --> Access321 - __Value2 --> Access322 - Object324{{"Object[324∈50] ➊
ᐸ{result}ᐳ"}}:::plan - PgDeleteSingle320 --> Object324 - List328{{"List[328∈51] ➊
ᐸ236,327ᐳ"}}:::plan - PgClassExpression327{{"PgClassExpression[327∈51] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant236 & PgClassExpression327 --> List328 - PgDeleteSingle320 --> PgClassExpression327 - Lambda329{{"Lambda[329∈51] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List328 --> Lambda329 - Lambda349{{"Lambda[349∈51] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant29 --> Lambda349 - PgSelect339[["PgSelect[339∈52] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression338{{"PgClassExpression[338∈52] ➊
ᐸ__person__ᐳ"}}:::plan - Object323 & PgClassExpression338 & Constant401 --> PgSelect339 - PgClassExpression335{{"PgClassExpression[335∈52] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgDeleteSingle320 --> PgClassExpression335 - PgClassExpression336{{"PgClassExpression[336∈52] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgDeleteSingle320 --> PgClassExpression336 - PgDeleteSingle320 --> PgClassExpression338 - First343{{"First[343∈52] ➊"}}:::plan - PgSelectRows344[["PgSelectRows[344∈52] ➊"]]:::plan - PgSelectRows344 --> First343 - PgSelect339 --> PgSelectRows344 - PgSelectSingle345{{"PgSelectSingle[345∈52] ➊
ᐸpersonᐳ"}}:::plan - First343 --> PgSelectSingle345 - PgClassExpression347{{"PgClassExpression[347∈52] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle345 --> PgClassExpression347 - PgDeleteSingle353[["PgDeleteSingle[353∈54] ➊
ᐸperson(id)ᐳ"]]:::sideeffectplan - Object356{{"Object[356∈54] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object356 & Constant402 --> PgDeleteSingle353 - Access354{{"Access[354∈54] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access355{{"Access[355∈54] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access354 & Access355 --> Object356 - __Value2 --> Access354 - __Value2 --> Access355 - Object357{{"Object[357∈54] ➊
ᐸ{result}ᐳ"}}:::plan - PgDeleteSingle353 --> Object357 - Edge374{{"Edge[374∈55] ➊"}}:::plan - PgSelectSingle373{{"PgSelectSingle[373∈55] ➊
ᐸpersonᐳ"}}:::plan - PgCursor376{{"PgCursor[376∈55] ➊"}}:::plan - Connection370{{"Connection[370∈55] ➊
ᐸ366ᐳ"}}:::plan - PgSelectSingle373 & PgCursor376 & Connection370 --> Edge374 - List361{{"List[361∈55] ➊
ᐸ236,360ᐳ"}}:::plan - PgClassExpression360{{"PgClassExpression[360∈55] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant236 & PgClassExpression360 --> List361 - PgSelect366[["PgSelect[366∈55] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression365{{"PgClassExpression[365∈55] ➊
ᐸ__person__ᐳ"}}:::plan - Object356 & PgClassExpression365 --> PgSelect366 - Access375{{"Access[375∈55] ➊
ᐸ366.cursorDetailsᐳ"}}:::plan - PgSelectSingle373 & Access375 --> PgCursor376 - PgDeleteSingle353 --> PgClassExpression360 - Lambda362{{"Lambda[362∈55] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List361 --> Lambda362 - PgDeleteSingle353 --> PgClassExpression365 - First371{{"First[371∈55] ➊"}}:::plan - PgSelectRows372[["PgSelectRows[372∈55] ➊"]]:::plan - PgSelectRows372 --> First371 - PgSelect366 --> PgSelectRows372 - First371 --> PgSelectSingle373 - PgSelect366 --> Access375 - Lambda385{{"Lambda[385∈55] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant29 --> Lambda385 - List381{{"List[381∈57] ➊
ᐸ236,379ᐳ"}}:::plan - PgClassExpression379{{"PgClassExpression[379∈57] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant236 & PgClassExpression379 --> List381 - PgClassExpression378{{"PgClassExpression[378∈57] ➊
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan - PgSelectSingle373 --> PgClassExpression378 - PgSelectSingle373 --> PgClassExpression379 - Lambda382{{"Lambda[382∈57] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List381 --> Lambda382 - PgClassExpression383{{"PgClassExpression[383∈57] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle373 --> PgClassExpression383 + __Value2 --> Access40 + Object43{{"Object[43∈2] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle38 --> Object43 + Access44{{"Access[44∈2] ➊
ᐸ38.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle38 --> Access44 + Access47{{"Access[47∈2] ➊
ᐸ38.tᐳ"}}:::plan + Access47 --> PgClassExpression46 + PgDeleteSingle38 --> Access47 + Lambda49{{"Lambda[49∈2] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List48 --> Lambda49 + PgClassExpression54{{"PgClassExpression[54∈2] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + Access47 --> PgClassExpression54 + PgClassExpression55{{"PgClassExpression[55∈2] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan + Access47 --> PgClassExpression55 + Lambda57{{"Lambda[57∈2] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant30 --> Lambda57 + PgDeleteSingle64[["PgDeleteSingle[64∈3] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan + Object67{{"Object[67∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access62{{"Access[62∈3] ➊
ᐸ61.1ᐳ"}}:::plan + Object67 -->|rejectNull| PgDeleteSingle64 + Access62 & ApplyInput68 --> PgDeleteSingle64 + Access65{{"Access[65∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access66{{"Access[66∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access65 & Access66 --> Object67 + List74{{"List[74∈3] ➊
ᐸ19,72ᐳ"}}:::plan + PgClassExpression72{{"PgClassExpression[72∈3] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Constant19 & PgClassExpression72 --> List74 + Lambda61{{"Lambda[61∈3] ➊
ᐸdecode_Post_base64JSONᐳ"}}:::plan + Constant403 --> Lambda61 + Lambda61 --> Access62 + __Value2 --> Access65 + __Value2 --> Access66 + Object69{{"Object[69∈3] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle64 --> Object69 + Access70{{"Access[70∈3] ➊
ᐸ64.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle64 --> Access70 + Access73{{"Access[73∈3] ➊
ᐸ64.tᐳ"}}:::plan + Access73 --> PgClassExpression72 + PgDeleteSingle64 --> Access73 + Lambda75{{"Lambda[75∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List74 --> Lambda75 + PgClassExpression80{{"PgClassExpression[80∈3] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + Access73 --> PgClassExpression80 + PgClassExpression81{{"PgClassExpression[81∈3] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan + Access73 --> PgClassExpression81 + Lambda83{{"Lambda[83∈3] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant30 --> Lambda83 + PgDeleteSingle90[["PgDeleteSingle[90∈4] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan + Object93{{"Object[93∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access88{{"Access[88∈4] ➊
ᐸ87.1ᐳ"}}:::plan + Object93 -->|rejectNull| PgDeleteSingle90 + Access88 & ApplyInput94 --> PgDeleteSingle90 + Access91{{"Access[91∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access92{{"Access[92∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access91 & Access92 --> Object93 + List100{{"List[100∈4] ➊
ᐸ19,98ᐳ"}}:::plan + PgClassExpression98{{"PgClassExpression[98∈4] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Constant19 & PgClassExpression98 --> List100 + Lambda87{{"Lambda[87∈4] ➊
ᐸdecode_Post_base64JSONᐳ"}}:::plan + Constant405 --> Lambda87 + Lambda87 --> Access88 + __Value2 --> Access91 + __Value2 --> Access92 + Object95{{"Object[95∈4] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle90 --> Object95 + Access96{{"Access[96∈4] ➊
ᐸ90.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle90 --> Access96 + Access99{{"Access[99∈4] ➊
ᐸ90.tᐳ"}}:::plan + Access99 --> PgClassExpression98 + PgDeleteSingle90 --> Access99 + Lambda101{{"Lambda[101∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List100 --> Lambda101 + PgClassExpression106{{"PgClassExpression[106∈4] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + Access99 --> PgClassExpression106 + PgClassExpression107{{"PgClassExpression[107∈4] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan + Access99 --> PgClassExpression107 + Lambda109{{"Lambda[109∈4] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant30 --> Lambda109 + PgDeleteSingle113[["PgDeleteSingle[113∈5] ➊
ᐸtypes(id)ᐳ"]]:::sideeffectplan + Object116{{"Object[116∈5] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object116 & Constant407 & ApplyInput117 --> PgDeleteSingle113 + Access114{{"Access[114∈5] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access115{{"Access[115∈5] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access114 & Access115 --> Object116 + List123{{"List[123∈5] ➊
ᐸ120,121ᐳ"}}:::plan + PgClassExpression121{{"PgClassExpression[121∈5] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + Constant120 & PgClassExpression121 --> List123 + __Value2 --> Access114 + __Value2 --> Access115 + Object118{{"Object[118∈5] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle113 --> Object118 + Access119{{"Access[119∈5] ➊
ᐸ113.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle113 --> Access119 + Access122{{"Access[122∈5] ➊
ᐸ113.tᐳ"}}:::plan + Access122 --> PgClassExpression121 + PgDeleteSingle113 --> Access122 + Lambda124{{"Lambda[124∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List123 --> Lambda124 + PgDeleteSingle128[["PgDeleteSingle[128∈6] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan + Object131{{"Object[131∈6] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object131 & Constant408 & ApplyInput132 --> PgDeleteSingle128 + Access129{{"Access[129∈6] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access130{{"Access[130∈6] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access129 & Access130 --> Object131 + List138{{"List[138∈6] ➊
ᐸ19,136ᐳ"}}:::plan + PgClassExpression136{{"PgClassExpression[136∈6] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Constant19 & PgClassExpression136 --> List138 + __Value2 --> Access129 + __Value2 --> Access130 + Object133{{"Object[133∈6] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle128 --> Object133 + Access134{{"Access[134∈6] ➊
ᐸ128.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle128 --> Access134 + Access137{{"Access[137∈6] ➊
ᐸ128.tᐳ"}}:::plan + Access137 --> PgClassExpression136 + PgDeleteSingle128 --> Access137 + Lambda139{{"Lambda[139∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List138 --> Lambda139 + PgClassExpression144{{"PgClassExpression[144∈6] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + Access137 --> PgClassExpression144 + PgClassExpression145{{"PgClassExpression[145∈6] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan + Access137 --> PgClassExpression145 + Lambda147{{"Lambda[147∈6] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant30 --> Lambda147 + PgDeleteSingle151[["PgDeleteSingle[151∈7] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan + Object154{{"Object[154∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object154 & Constant409 & ApplyInput155 --> PgDeleteSingle151 + Access152{{"Access[152∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access153{{"Access[153∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access152 & Access153 --> Object154 + List161{{"List[161∈7] ➊
ᐸ19,159ᐳ"}}:::plan + PgClassExpression159{{"PgClassExpression[159∈7] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Constant19 & PgClassExpression159 --> List161 + __Value2 --> Access152 + __Value2 --> Access153 + Object156{{"Object[156∈7] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle151 --> Object156 + Access157{{"Access[157∈7] ➊
ᐸ151.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle151 --> Access157 + Access160{{"Access[160∈7] ➊
ᐸ151.tᐳ"}}:::plan + Access160 --> PgClassExpression159 + PgDeleteSingle151 --> Access160 + Lambda162{{"Lambda[162∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List161 --> Lambda162 + PgClassExpression167{{"PgClassExpression[167∈7] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + Access160 --> PgClassExpression167 + PgClassExpression168{{"PgClassExpression[168∈7] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan + Access160 --> PgClassExpression168 + Lambda170{{"Lambda[170∈7] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant30 --> Lambda170 + PgDeleteSingle174[["PgDeleteSingle[174∈8] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan + Object177{{"Object[177∈8] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object177 & Constant410 & ApplyInput178 --> PgDeleteSingle174 + Access175{{"Access[175∈8] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access176{{"Access[176∈8] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access175 & Access176 --> Object177 + List184{{"List[184∈8] ➊
ᐸ19,182ᐳ"}}:::plan + PgClassExpression182{{"PgClassExpression[182∈8] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Constant19 & PgClassExpression182 --> List184 + __Value2 --> Access175 + __Value2 --> Access176 + Object179{{"Object[179∈8] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle174 --> Object179 + Access180{{"Access[180∈8] ➊
ᐸ174.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle174 --> Access180 + Access183{{"Access[183∈8] ➊
ᐸ174.tᐳ"}}:::plan + Access183 --> PgClassExpression182 + PgDeleteSingle174 --> Access183 + Lambda185{{"Lambda[185∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List184 --> Lambda185 + PgClassExpression190{{"PgClassExpression[190∈8] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + Access183 --> PgClassExpression190 + PgClassExpression191{{"PgClassExpression[191∈8] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan + Access183 --> PgClassExpression191 + Lambda193{{"Lambda[193∈8] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant30 --> Lambda193 + PgDeleteSingle197[["PgDeleteSingle[197∈9] ➊
ᐸpost(id)ᐳ"]]:::sideeffectplan + Object200{{"Object[200∈9] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object200 & Constant407 & ApplyInput201 --> PgDeleteSingle197 + Access198{{"Access[198∈9] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access199{{"Access[199∈9] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access198 & Access199 --> Object200 + List207{{"List[207∈9] ➊
ᐸ19,205ᐳ"}}:::plan + PgClassExpression205{{"PgClassExpression[205∈9] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Constant19 & PgClassExpression205 --> List207 + __Value2 --> Access198 + __Value2 --> Access199 + Object202{{"Object[202∈9] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle197 --> Object202 + Access203{{"Access[203∈9] ➊
ᐸ197.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle197 --> Access203 + Access206{{"Access[206∈9] ➊
ᐸ197.tᐳ"}}:::plan + Access206 --> PgClassExpression205 + PgDeleteSingle197 --> Access206 + Lambda208{{"Lambda[208∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List207 --> Lambda208 + PgClassExpression213{{"PgClassExpression[213∈9] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + Access206 --> PgClassExpression213 + PgClassExpression214{{"PgClassExpression[214∈9] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan + Access206 --> PgClassExpression214 + Lambda216{{"Lambda[216∈9] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant30 --> Lambda216 + PgDeleteSingle225[["PgDeleteSingle[225∈10] ➊
ᐸcompound_key(person_id_1,person_id_2)ᐳ"]]:::sideeffectplan + Object228{{"Object[228∈10] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access221{{"Access[221∈10] ➊
ᐸ220.1ᐳ"}}:::plan + Access223{{"Access[223∈10] ➊
ᐸ220.2ᐳ"}}:::plan + Object228 -->|rejectNull| PgDeleteSingle225 + Access221 -->|rejectNull| PgDeleteSingle225 + Access223 & ApplyInput229 --> PgDeleteSingle225 + List236{{"List[236∈10] ➊
ᐸ232,233,235ᐳ"}}:::plan + PgClassExpression233{{"PgClassExpression[233∈10] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression235{{"PgClassExpression[235∈10] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Constant232 & PgClassExpression233 & PgClassExpression235 --> List236 + Access226{{"Access[226∈10] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access227{{"Access[227∈10] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access226 & Access227 --> Object228 + PgSelect245[["PgSelect[245∈10] ➊
ᐸpersonᐳ"]]:::plan + Object228 & PgClassExpression233 --> PgSelect245 + List252{{"List[252∈10] ➊
ᐸ250,251ᐳ"}}:::plan + PgClassExpression251{{"PgClassExpression[251∈10] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant250 & PgClassExpression251 --> List252 + PgSelect256[["PgSelect[256∈10] ➊
ᐸpersonᐳ"]]:::plan + Object228 & PgClassExpression235 --> PgSelect256 + List262{{"List[262∈10] ➊
ᐸ250,261ᐳ"}}:::plan + PgClassExpression261{{"PgClassExpression[261∈10] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant250 & PgClassExpression261 --> List262 + Lambda220{{"Lambda[220∈10] ➊
ᐸdecode_CompoundKey_base64JSONᐳ"}}:::plan + Constant411 --> Lambda220 + Lambda220 --> Access221 + Lambda220 --> Access223 + __Value2 --> Access226 + __Value2 --> Access227 + Object230{{"Object[230∈10] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle225 --> Object230 + Access231{{"Access[231∈10] ➊
ᐸ225.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle225 --> Access231 + Access234{{"Access[234∈10] ➊
ᐸ225.tᐳ"}}:::plan + Access234 --> PgClassExpression233 + PgDeleteSingle225 --> Access234 + Access234 --> PgClassExpression235 + Lambda237{{"Lambda[237∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List236 --> Lambda237 + First247{{"First[247∈10] ➊"}}:::plan + PgSelectRows248[["PgSelectRows[248∈10] ➊"]]:::plan + PgSelectRows248 --> First247 + PgSelect245 --> PgSelectRows248 + PgSelectSingle249{{"PgSelectSingle[249∈10] ➊
ᐸpersonᐳ"}}:::plan + First247 --> PgSelectSingle249 + PgSelectSingle249 --> PgClassExpression251 + Lambda253{{"Lambda[253∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List252 --> Lambda253 + PgClassExpression254{{"PgClassExpression[254∈10] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle249 --> PgClassExpression254 + First258{{"First[258∈10] ➊"}}:::plan + PgSelectRows259[["PgSelectRows[259∈10] ➊"]]:::plan + PgSelectRows259 --> First258 + PgSelect256 --> PgSelectRows259 + PgSelectSingle260{{"PgSelectSingle[260∈10] ➊
ᐸpersonᐳ"}}:::plan + First258 --> PgSelectSingle260 + PgSelectSingle260 --> PgClassExpression261 + Lambda263{{"Lambda[263∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List262 --> Lambda263 + PgClassExpression264{{"PgClassExpression[264∈10] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle260 --> PgClassExpression264 + Lambda266{{"Lambda[266∈10] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant30 --> Lambda266 + PgDeleteSingle271[["PgDeleteSingle[271∈11] ➊
ᐸcompound_key(person_id_1,person_id_2)ᐳ"]]:::sideeffectplan + Object274{{"Object[274∈11] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object274 & Constant412 & Constant413 & ApplyInput275 --> PgDeleteSingle271 + List282{{"List[282∈11] ➊
ᐸ232,279,281ᐳ"}}:::plan + PgClassExpression279{{"PgClassExpression[279∈11] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression281{{"PgClassExpression[281∈11] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Constant232 & PgClassExpression279 & PgClassExpression281 --> List282 + Access272{{"Access[272∈11] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access273{{"Access[273∈11] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access272 & Access273 --> Object274 + PgSelect291[["PgSelect[291∈11] ➊
ᐸpersonᐳ"]]:::plan + Object274 & PgClassExpression279 --> PgSelect291 + List298{{"List[298∈11] ➊
ᐸ250,297ᐳ"}}:::plan + PgClassExpression297{{"PgClassExpression[297∈11] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant250 & PgClassExpression297 --> List298 + PgSelect302[["PgSelect[302∈11] ➊
ᐸpersonᐳ"]]:::plan + Object274 & PgClassExpression281 --> PgSelect302 + List308{{"List[308∈11] ➊
ᐸ250,307ᐳ"}}:::plan + PgClassExpression307{{"PgClassExpression[307∈11] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant250 & PgClassExpression307 --> List308 + __Value2 --> Access272 + __Value2 --> Access273 + Object276{{"Object[276∈11] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle271 --> Object276 + Access277{{"Access[277∈11] ➊
ᐸ271.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle271 --> Access277 + Access280{{"Access[280∈11] ➊
ᐸ271.tᐳ"}}:::plan + Access280 --> PgClassExpression279 + PgDeleteSingle271 --> Access280 + Access280 --> PgClassExpression281 + Lambda283{{"Lambda[283∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List282 --> Lambda283 + First293{{"First[293∈11] ➊"}}:::plan + PgSelectRows294[["PgSelectRows[294∈11] ➊"]]:::plan + PgSelectRows294 --> First293 + PgSelect291 --> PgSelectRows294 + PgSelectSingle295{{"PgSelectSingle[295∈11] ➊
ᐸpersonᐳ"}}:::plan + First293 --> PgSelectSingle295 + PgSelectSingle295 --> PgClassExpression297 + Lambda299{{"Lambda[299∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List298 --> Lambda299 + PgClassExpression300{{"PgClassExpression[300∈11] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle295 --> PgClassExpression300 + First304{{"First[304∈11] ➊"}}:::plan + PgSelectRows305[["PgSelectRows[305∈11] ➊"]]:::plan + PgSelectRows305 --> First304 + PgSelect302 --> PgSelectRows305 + PgSelectSingle306{{"PgSelectSingle[306∈11] ➊
ᐸpersonᐳ"}}:::plan + First304 --> PgSelectSingle306 + PgSelectSingle306 --> PgClassExpression307 + Lambda309{{"Lambda[309∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List308 --> Lambda309 + PgClassExpression310{{"PgClassExpression[310∈11] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle306 --> PgClassExpression310 + Lambda312{{"Lambda[312∈11] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant30 --> Lambda312 + PgDeleteSingle316[["PgDeleteSingle[316∈12] ➊
ᐸperson(email)ᐳ"]]:::sideeffectplan + Object319{{"Object[319∈12] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object319 & Constant414 & ApplyInput320 --> PgDeleteSingle316 + Access317{{"Access[317∈12] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access318{{"Access[318∈12] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access317 & Access318 --> Object319 + List326{{"List[326∈12] ➊
ᐸ250,324ᐳ"}}:::plan + PgClassExpression324{{"PgClassExpression[324∈12] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant250 & PgClassExpression324 --> List326 + __Value2 --> Access317 + __Value2 --> Access318 + Object321{{"Object[321∈12] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle316 --> Object321 + Access322{{"Access[322∈12] ➊
ᐸ316.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle316 --> Access322 + Access325{{"Access[325∈12] ➊
ᐸ316.tᐳ"}}:::plan + Access325 --> PgClassExpression324 + PgDeleteSingle316 --> Access325 + Lambda327{{"Lambda[327∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List326 --> Lambda327 + Lambda329{{"Lambda[329∈12] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant30 --> Lambda329 + PgDeleteSingle333[["PgDeleteSingle[333∈13] ➊
ᐸperson(email)ᐳ"]]:::sideeffectplan + Object336{{"Object[336∈13] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object336 & Constant415 & ApplyInput337 --> PgDeleteSingle333 + PgSelect353[["PgSelect[353∈13] ➊
ᐸpersonᐳ"]]:::plan + PgFromExpression355{{"PgFromExpression[355∈13] ➊"}}:::plan + PgFromExpression360{{"PgFromExpression[360∈13] ➊"}}:::plan + Object336 & PgFromExpression355 & PgFromExpression360 --> PgSelect353 + Access334{{"Access[334∈13] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access335{{"Access[335∈13] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access334 & Access335 --> Object336 + List343{{"List[343∈13] ➊
ᐸ250,341ᐳ"}}:::plan + PgClassExpression341{{"PgClassExpression[341∈13] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant250 & PgClassExpression341 --> List343 + __Value2 --> Access334 + __Value2 --> Access335 + Object338{{"Object[338∈13] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle333 --> Object338 + Access339{{"Access[339∈13] ➊
ᐸ333.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle333 --> Access339 + Access342{{"Access[342∈13] ➊
ᐸ333.tᐳ"}}:::plan + Access342 --> PgClassExpression341 + PgDeleteSingle333 --> Access342 + Lambda344{{"Lambda[344∈13] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List343 --> Lambda344 + PgClassExpression349{{"PgClassExpression[349∈13] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + Access342 --> PgClassExpression349 + PgClassExpression350{{"PgClassExpression[350∈13] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + Access342 --> PgClassExpression350 + PgClassExpression352{{"PgClassExpression[352∈13] ➊
ᐸ__person__ᐳ"}}:::plan + Access342 --> PgClassExpression352 + PgClassExpression352 --> PgFromExpression355 + First356{{"First[356∈13] ➊"}}:::plan + PgSelectRows357[["PgSelectRows[357∈13] ➊"]]:::plan + PgSelectRows357 --> First356 + PgSelect353 --> PgSelectRows357 + PgSelectSingle358{{"PgSelectSingle[358∈13] ➊
ᐸpersonᐳ"}}:::plan + First356 --> PgSelectSingle358 + Constant415 --> PgFromExpression360 + PgClassExpression361{{"PgClassExpression[361∈13] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle358 --> PgClassExpression361 + Lambda363{{"Lambda[363∈13] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant30 --> Lambda363 + PgDeleteSingle367[["PgDeleteSingle[367∈14] ➊
ᐸperson(id)ᐳ"]]:::sideeffectplan + Object370{{"Object[370∈14] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object370 & Constant416 & ApplyInput371 --> PgDeleteSingle367 + Edge389{{"Edge[389∈14] ➊"}}:::plan + PgSelectSingle388{{"PgSelectSingle[388∈14] ➊
ᐸpersonᐳ"}}:::plan + PgCursor391{{"PgCursor[391∈14] ➊"}}:::plan + Connection385{{"Connection[385∈14] ➊
ᐸ381ᐳ"}}:::plan + PgSelectSingle388 & PgCursor391 & Connection385 --> Edge389 + Access368{{"Access[368∈14] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access369{{"Access[369∈14] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access368 & Access369 --> Object370 + List377{{"List[377∈14] ➊
ᐸ250,375ᐳ"}}:::plan + PgClassExpression375{{"PgClassExpression[375∈14] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant250 & PgClassExpression375 --> List377 + PgSelect381[["PgSelect[381∈14] ➊
ᐸpersonᐳ"]]:::plan + PgFromExpression383{{"PgFromExpression[383∈14] ➊"}}:::plan + Object370 & PgFromExpression383 --> PgSelect381 + Access390{{"Access[390∈14] ➊
ᐸ381.cursorDetailsᐳ"}}:::plan + PgSelectSingle388 & Access390 --> PgCursor391 + List395{{"List[395∈14] ➊
ᐸ250,394ᐳ"}}:::plan + PgClassExpression394{{"PgClassExpression[394∈14] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant250 & PgClassExpression394 --> List395 + __Value2 --> Access368 + __Value2 --> Access369 + Object372{{"Object[372∈14] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle367 --> Object372 + Access373{{"Access[373∈14] ➊
ᐸ367.m.clientMutationIdᐳ"}}:::plan + PgDeleteSingle367 --> Access373 + Access376{{"Access[376∈14] ➊
ᐸ367.tᐳ"}}:::plan + Access376 --> PgClassExpression375 + PgDeleteSingle367 --> Access376 + Lambda378{{"Lambda[378∈14] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List377 --> Lambda378 + PgClassExpression380{{"PgClassExpression[380∈14] ➊
ᐸ__person__ᐳ"}}:::plan + Access376 --> PgClassExpression380 + PgClassExpression380 --> PgFromExpression383 + First386{{"First[386∈14] ➊"}}:::plan + PgSelectRows387[["PgSelectRows[387∈14] ➊"]]:::plan + PgSelectRows387 --> First386 + PgSelect381 --> PgSelectRows387 + First386 --> PgSelectSingle388 + PgSelect381 --> Access390 + PgClassExpression393{{"PgClassExpression[393∈14] ➊
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan + PgSelectSingle388 --> PgClassExpression393 + PgSelectSingle388 --> PgClassExpression394 + Lambda396{{"Lambda[396∈14] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List395 --> Lambda396 + PgClassExpression397{{"PgClassExpression[397∈14] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle388 --> PgClassExpression397 + Lambda399{{"Lambda[399∈14] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant30 --> Lambda399 %% define steps + %% implicit side effects + PgDeleteSingle38 -.-o Lambda57 + PgDeleteSingle64 -.-o Lambda83 + PgDeleteSingle90 -.-o Lambda109 + PgDeleteSingle128 -.-o Lambda147 + PgDeleteSingle151 -.-o Lambda170 + PgDeleteSingle174 -.-o Lambda193 + PgDeleteSingle197 -.-o Lambda216 + PgDeleteSingle225 -.-o Lambda266 + PgDeleteSingle271 -.-o Lambda312 + PgDeleteSingle316 -.-o Lambda329 + PgDeleteSingle333 -.-o PgFromExpression360 + PgDeleteSingle333 -.-o Lambda363 + PgDeleteSingle367 -.-o Lambda399 + PgDeleteSingle367 -.-o Connection385 + subgraph "Buckets for mutations/v4/mutation-delete" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Lambda9,Access10,Access13,Access14,Object15,Constant17,Constant18,Constant29,Constant112,Constant216,Constant236,Constant386,Constant387,Constant388,Constant389,Constant390,Constant391,Constant392,Constant393,Constant394,Constant395,Constant396,Constant397,Constant398,Constant399,Constant400,Constant401,Constant402 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 18, 29, 4, 17

1: PgDeleteSingle[12]
2:
ᐳ: Object[16]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Lambda9,Access10,Access13,Access14,Object15,ApplyInput16,Constant19,Constant30,Lambda31,__InputObject32,ApplyInput42,__InputObject58,ApplyInput68,__InputObject84,ApplyInput94,__InputObject110,ApplyInput117,Constant120,__InputObject125,ApplyInput132,__InputObject148,ApplyInput155,__InputObject171,ApplyInput178,__InputObject194,ApplyInput201,__InputObject217,ApplyInput229,Constant232,Constant250,__InputObject267,ApplyInput275,__InputObject313,ApplyInput320,__InputObject330,ApplyInput337,__InputObject364,ApplyInput371,Constant400,Constant401,Constant402,Constant403,Constant404,Constant405,Constant406,Constant407,Constant408,Constant409,Constant410,Constant411,Constant412,Constant413,Constant414,Constant415,Constant416 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 15, 10, 16, 19, 4, 31

1: PgDeleteSingle[12]
2:
ᐳ: 17, 18, 21, 20, 22, 23, 28, 29"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgDeleteSingle12,Object16 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 18, 29, 16, 4, 17

ROOT Object{1}ᐸ{result}ᐳ[16]"):::bucket + class Bucket1,PgDeleteSingle12,Object17,Access18,PgClassExpression20,Access21,List22,Lambda23,PgClassExpression28,PgClassExpression29 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 402, 42, 2, 19, 30, 4

1: Access[39]
2: Access[40]
3: Object[41]
4: Lambda[35]
5: Access[36]
6: PgDeleteSingle[38]
7:
ᐳ: 43, 44, 47, 57, 46, 48, 49, 54, 55"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression19,List20,Lambda21,Lambda30 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 12, 21, 19

ROOT PgDeleteSingle{1}ᐸpost(id)ᐳ[12]"):::bucket + class Bucket2,Lambda35,Access36,PgDeleteSingle38,Access39,Access40,Object41,Object43,Access44,PgClassExpression46,Access47,List48,Lambda49,PgClassExpression54,PgClassExpression55,Lambda57 bucket2 + Bucket3("Bucket 3 (mutationField)
Deps: 403, 68, 2, 19, 30, 4

1: Access[65]
2: Access[66]
3: Object[67]
4: Lambda[61]
5: Access[62]
6: PgDeleteSingle[64]
7:
ᐳ: 69, 70, 73, 83, 72, 74, 75, 80, 81"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression27,PgClassExpression28 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 4, 30

ROOT __ValueᐸrootValueᐳ[4]"):::bucket + class Bucket3,Lambda61,Access62,PgDeleteSingle64,Access65,Access66,Object67,Object69,Access70,PgClassExpression72,Access73,List74,Lambda75,PgClassExpression80,PgClassExpression81,Lambda83 bucket3 + Bucket4("Bucket 4 (mutationField)
Deps: 405, 94, 2, 19, 30, 4

1: Access[91]
2: Access[92]
3: Object[93]
4: Lambda[87]
5: Access[88]
6: PgDeleteSingle[90]
7:
ᐳ: 95, 96, 99, 109, 98, 100, 101, 106, 107"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4 bucket4 - Bucket5("Bucket 5 (mutationField)
Deps: 388, 2, 387, 18, 29, 4

1: Access[38]
2: Access[39]
3: Object[40]
4: Lambda[34]
5: Access[35]
6: PgDeleteSingle[37]
7:
ᐳ: Object[41]"):::bucket + class Bucket4,Lambda87,Access88,PgDeleteSingle90,Access91,Access92,Object93,Object95,Access96,PgClassExpression98,Access99,List100,Lambda101,PgClassExpression106,PgClassExpression107,Lambda109 bucket4 + Bucket5("Bucket 5 (mutationField)
Deps: 407, 117, 2, 120

1: Access[114]
2: Access[115]
3: Object[116]
4: PgDeleteSingle[113]
5:
ᐳ: 118, 119, 122, 121, 123, 124"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,Lambda34,Access35,PgDeleteSingle37,Access38,Access39,Object40,Object41 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 37, 18, 29, 41, 4, 387

ROOT Object{5}ᐸ{result,clientMutationId}ᐳ[41]"):::bucket + class Bucket5,PgDeleteSingle113,Access114,Access115,Object116,Object118,Access119,PgClassExpression121,Access122,List123,Lambda124 bucket5 + Bucket6("Bucket 6 (mutationField)
Deps: 408, 132, 2, 19, 30, 4

1: Access[129]
2: Access[130]
3: Object[131]
4: PgDeleteSingle[128]
5:
ᐳ: 133, 134, 137, 147, 136, 138, 139, 144, 145"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression43,List44,Lambda45,Lambda54 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 37, 45, 43

ROOT PgDeleteSingle{5}ᐸpost(id)ᐳ[37]"):::bucket + class Bucket6,PgDeleteSingle128,Access129,Access130,Object131,Object133,Access134,PgClassExpression136,Access137,List138,Lambda139,PgClassExpression144,PgClassExpression145,Lambda147 bucket6 + Bucket7("Bucket 7 (mutationField)
Deps: 409, 155, 2, 19, 30, 4

1: Access[152]
2: Access[153]
3: Object[154]
4: PgDeleteSingle[151]
5:
ᐳ: 156, 157, 160, 170, 159, 161, 162, 167, 168"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression51,PgClassExpression52 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 4, 54

ROOT __ValueᐸrootValueᐳ[4]"):::bucket + class Bucket7,PgDeleteSingle151,Access152,Access153,Object154,Object156,Access157,PgClassExpression159,Access160,List161,Lambda162,PgClassExpression167,PgClassExpression168,Lambda170 bucket7 + Bucket8("Bucket 8 (mutationField)
Deps: 410, 178, 2, 19, 30, 4

1: Access[175]
2: Access[176]
3: Object[177]
4: PgDeleteSingle[174]
5:
ᐳ: 179, 180, 183, 193, 182, 184, 185, 190, 191"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8 bucket8 - Bucket9("Bucket 9 (mutationField)
Deps: 389, 2, 18, 29, 4, 17

1: Access[62]
2: Access[63]
3: Object[64]
4: Lambda[58]
5: Access[59]
6: PgDeleteSingle[61]
7:
ᐳ: Object[65]"):::bucket + class Bucket8,PgDeleteSingle174,Access175,Access176,Object177,Object179,Access180,PgClassExpression182,Access183,List184,Lambda185,PgClassExpression190,PgClassExpression191,Lambda193 bucket8 + Bucket9("Bucket 9 (mutationField)
Deps: 407, 201, 2, 19, 30, 4

1: Access[198]
2: Access[199]
3: Object[200]
4: PgDeleteSingle[197]
5:
ᐳ: 202, 203, 206, 216, 205, 207, 208, 213, 214"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,Lambda58,Access59,PgDeleteSingle61,Access62,Access63,Object64,Object65 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 61, 18, 29, 65, 4, 17

ROOT Object{9}ᐸ{result}ᐳ[65]"):::bucket + class Bucket9,PgDeleteSingle197,Access198,Access199,Object200,Object202,Access203,PgClassExpression205,Access206,List207,Lambda208,PgClassExpression213,PgClassExpression214,Lambda216 bucket9 + Bucket10("Bucket 10 (mutationField)
Deps: 411, 229, 2, 232, 250, 30, 4

1: Access[226]
2: Access[227]
3: Object[228]
4: Lambda[220]
5: Access[221]
6: Access[223]
7: PgDeleteSingle[225]
8:
ᐳ: 230, 231, 234, 266, 233, 235, 236, 237
9: PgSelect[245], PgSelect[256]
10: PgSelectRows[248], PgSelectRows[259]
ᐳ: 247, 249, 251, 252, 253, 254, 258, 260, 261, 262, 263, 264"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression68,List69,Lambda70,Lambda79 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 61, 70, 68

ROOT PgDeleteSingle{9}ᐸpost(id)ᐳ[61]"):::bucket + class Bucket10,Lambda220,Access221,Access223,PgDeleteSingle225,Access226,Access227,Object228,Object230,Access231,PgClassExpression233,Access234,PgClassExpression235,List236,Lambda237,PgSelect245,First247,PgSelectRows248,PgSelectSingle249,PgClassExpression251,List252,Lambda253,PgClassExpression254,PgSelect256,First258,PgSelectRows259,PgSelectSingle260,PgClassExpression261,List262,Lambda263,PgClassExpression264,Lambda266 bucket10 + Bucket11("Bucket 11 (mutationField)
Deps: 412, 413, 275, 2, 232, 250, 30, 4

1: Access[272]
2: Access[273]
3: Object[274]
4: PgDeleteSingle[271]
5:
ᐳ: 276, 277, 280, 312, 279, 281, 282, 283
6: PgSelect[291], PgSelect[302]
7: PgSelectRows[294], PgSelectRows[305]
ᐳ: 293, 295, 297, 298, 299, 300, 304, 306, 307, 308, 309, 310"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression76,PgClassExpression77 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 4, 79

ROOT __ValueᐸrootValueᐳ[4]"):::bucket + class Bucket11,PgDeleteSingle271,Access272,Access273,Object274,Object276,Access277,PgClassExpression279,Access280,PgClassExpression281,List282,Lambda283,PgSelect291,First293,PgSelectRows294,PgSelectSingle295,PgClassExpression297,List298,Lambda299,PgClassExpression300,PgSelect302,First304,PgSelectRows305,PgSelectSingle306,PgClassExpression307,List308,Lambda309,PgClassExpression310,Lambda312 bucket11 + Bucket12("Bucket 12 (mutationField)
Deps: 414, 320, 2, 250, 30, 4

1: Access[317]
2: Access[318]
3: Object[319]
4: PgDeleteSingle[316]
5:
ᐳ: 321, 322, 325, 329, 324, 326, 327"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12 bucket12 - Bucket13("Bucket 13 (mutationField)
Deps: 391, 2, 390, 18, 29, 4

1: Access[87]
2: Access[88]
3: Object[89]
4: Lambda[83]
5: Access[84]
6: PgDeleteSingle[86]
7:
ᐳ: Object[90]"):::bucket + class Bucket12,PgDeleteSingle316,Access317,Access318,Object319,Object321,Access322,PgClassExpression324,Access325,List326,Lambda327,Lambda329 bucket12 + Bucket13("Bucket 13 (mutationField)
Deps: 415, 337, 2, 250, 30, 4

1: Access[334]
2: Access[335]
3: Object[336]
4: PgDeleteSingle[333]
5:
ᐳ: 338, 339, 342, 360, 363, 341, 343, 344, 349, 350, 352, 355
6: PgSelect[353]
7: PgSelectRows[357]
ᐳ: 356, 358, 361"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13,Lambda83,Access84,PgDeleteSingle86,Access87,Access88,Object89,Object90 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 86, 18, 29, 90, 4, 390

ROOT Object{13}ᐸ{result,clientMutationId}ᐳ[90]"):::bucket + class Bucket13,PgDeleteSingle333,Access334,Access335,Object336,Object338,Access339,PgClassExpression341,Access342,List343,Lambda344,PgClassExpression349,PgClassExpression350,PgClassExpression352,PgSelect353,PgFromExpression355,First356,PgSelectRows357,PgSelectSingle358,PgFromExpression360,PgClassExpression361,Lambda363 bucket13 + Bucket14("Bucket 14 (mutationField)
Deps: 416, 371, 2, 250, 30, 4

1: Access[368]
2: Access[369]
3: Object[370]
4: PgDeleteSingle[367]
5:
ᐳ: 372, 373, 376, 385, 399, 375, 377, 378, 380, 383
6: PgSelect[381]
ᐳ: Access[390]
7: PgSelectRows[387]
ᐳ: 386, 388, 391, 393, 394, 395, 396, 397, 389"):::bucket classDef bucket14 stroke:#a52a2a - class Bucket14,PgClassExpression92,List93,Lambda94,Lambda103 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 86, 94, 92

ROOT PgDeleteSingle{13}ᐸpost(id)ᐳ[86]"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15,PgClassExpression100,PgClassExpression101 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 4, 103

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16 bucket16 - Bucket17("Bucket 17 (mutationField)
Deps: 393, 2, 392, 112

1: Access[108]
2: Access[109]
3: Object[110]
4: PgDeleteSingle[107]
5:
ᐳ: Object[111]"):::bucket - classDef bucket17 stroke:#696969 - class Bucket17,PgDeleteSingle107,Access108,Access109,Object110,Object111 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 107, 112, 111, 392

ROOT Object{17}ᐸ{result,clientMutationId}ᐳ[111]"):::bucket - classDef bucket18 stroke:#00bfff - class Bucket18,PgClassExpression113,List114,Lambda115 bucket18 - Bucket19("Bucket 19 (mutationField)
Deps: 394, 2, 18, 29, 4, 17

1: Access[120]
2: Access[121]
3: Object[122]
4: PgDeleteSingle[119]
5:
ᐳ: Object[123]"):::bucket - classDef bucket19 stroke:#7f007f - class Bucket19,PgDeleteSingle119,Access120,Access121,Object122,Object123 bucket19 - Bucket20("Bucket 20 (nullableBoundary)
Deps: 119, 18, 29, 123, 4, 17

ROOT Object{19}ᐸ{result}ᐳ[123]"):::bucket - classDef bucket20 stroke:#ffa500 - class Bucket20,PgClassExpression126,List127,Lambda128,Lambda137 bucket20 - Bucket21("Bucket 21 (nullableBoundary)
Deps: 119, 128, 126

ROOT PgDeleteSingle{19}ᐸpost(id)ᐳ[119]"):::bucket - classDef bucket21 stroke:#0000ff - class Bucket21,PgClassExpression134,PgClassExpression135 bucket21 - Bucket22("Bucket 22 (nullableBoundary)
Deps: 4, 137

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket22 stroke:#7fff00 - class Bucket22 bucket22 - Bucket23("Bucket 23 (mutationField)
Deps: 395, 2, 387, 18, 29, 4

1: Access[142]
2: Access[143]
3: Object[144]
4: PgDeleteSingle[141]
5:
ᐳ: Object[145]"):::bucket - classDef bucket23 stroke:#ff1493 - class Bucket23,PgDeleteSingle141,Access142,Access143,Object144,Object145 bucket23 - Bucket24("Bucket 24 (nullableBoundary)
Deps: 141, 18, 29, 145, 4, 387

ROOT Object{23}ᐸ{result,clientMutationId}ᐳ[145]"):::bucket - classDef bucket24 stroke:#808000 - class Bucket24,PgClassExpression147,List148,Lambda149,Lambda158 bucket24 - Bucket25("Bucket 25 (nullableBoundary)
Deps: 141, 149, 147

ROOT PgDeleteSingle{23}ᐸpost(id)ᐳ[141]"):::bucket - classDef bucket25 stroke:#dda0dd - class Bucket25,PgClassExpression155,PgClassExpression156 bucket25 - Bucket26("Bucket 26 (nullableBoundary)
Deps: 4, 158

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket26 stroke:#ff0000 - class Bucket26 bucket26 - Bucket27("Bucket 27 (mutationField)
Deps: 396, 2, 18, 29, 4, 17

1: Access[163]
2: Access[164]
3: Object[165]
4: PgDeleteSingle[162]
5:
ᐳ: Object[166]"):::bucket - classDef bucket27 stroke:#ffff00 - class Bucket27,PgDeleteSingle162,Access163,Access164,Object165,Object166 bucket27 - Bucket28("Bucket 28 (nullableBoundary)
Deps: 162, 18, 29, 166, 4, 17

ROOT Object{27}ᐸ{result}ᐳ[166]"):::bucket - classDef bucket28 stroke:#00ffff - class Bucket28,PgClassExpression169,List170,Lambda171,Lambda180 bucket28 - Bucket29("Bucket 29 (nullableBoundary)
Deps: 162, 171, 169

ROOT PgDeleteSingle{27}ᐸpost(id)ᐳ[162]"):::bucket - classDef bucket29 stroke:#4169e1 - class Bucket29,PgClassExpression177,PgClassExpression178 bucket29 - Bucket30("Bucket 30 (nullableBoundary)
Deps: 4, 180

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket30 stroke:#3cb371 - class Bucket30 bucket30 - Bucket31("Bucket 31 (mutationField)
Deps: 393, 2, 390, 18, 29, 4

1: Access[185]
2: Access[186]
3: Object[187]
4: PgDeleteSingle[184]
5:
ᐳ: Object[188]"):::bucket - classDef bucket31 stroke:#a52a2a - class Bucket31,PgDeleteSingle184,Access185,Access186,Object187,Object188 bucket31 - Bucket32("Bucket 32 (nullableBoundary)
Deps: 184, 18, 29, 188, 4, 390

ROOT Object{31}ᐸ{result,clientMutationId}ᐳ[188]"):::bucket - classDef bucket32 stroke:#ff00ff - class Bucket32,PgClassExpression190,List191,Lambda192,Lambda201 bucket32 - Bucket33("Bucket 33 (nullableBoundary)
Deps: 184, 192, 190

ROOT PgDeleteSingle{31}ᐸpost(id)ᐳ[184]"):::bucket - classDef bucket33 stroke:#f5deb3 - class Bucket33,PgClassExpression198,PgClassExpression199 bucket33 - Bucket34("Bucket 34 (nullableBoundary)
Deps: 4, 201

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket34 stroke:#696969 - class Bucket34 bucket34 - Bucket35("Bucket 35 (mutationField)
Deps: 397, 2, 216, 29, 236, 4, 17

1: Access[211]
2: Access[212]
3: Object[213]
4: Lambda[205]
5: Access[206]
6: Access[208]
7: PgDeleteSingle[210]
8:
ᐳ: Object[214]"):::bucket - classDef bucket35 stroke:#00bfff - class Bucket35,Lambda205,Access206,Access208,PgDeleteSingle210,Access211,Access212,Object213,Object214 bucket35 - Bucket36("Bucket 36 (nullableBoundary)
Deps: 210, 216, 213, 29, 214, 236, 4, 17

ROOT Object{35}ᐸ{result}ᐳ[214]
1:
ᐳ: 217, 218, 253, 219, 220
2: PgSelect[229], PgSelect[242]
3: PgSelectRows[234], PgSelectRows[245]
ᐳ: 233, 235, 244, 246"):::bucket - classDef bucket36 stroke:#7f007f - class Bucket36,PgClassExpression217,PgClassExpression218,List219,Lambda220,PgSelect229,First233,PgSelectRows234,PgSelectSingle235,PgSelect242,First244,PgSelectRows245,PgSelectSingle246,Lambda253 bucket36 - Bucket37("Bucket 37 (nullableBoundary)
Deps: 210, 235, 236, 246, 220, 217, 218

ROOT PgDeleteSingle{35}ᐸcompound_key(person_id_1,person_id_2)ᐳ[210]"):::bucket - classDef bucket37 stroke:#ffa500 - class Bucket37 bucket37 - Bucket38("Bucket 38 (nullableBoundary)
Deps: 235, 236

ROOT PgSelectSingle{36}ᐸpersonᐳ[235]"):::bucket - classDef bucket38 stroke:#0000ff - class Bucket38,PgClassExpression237,List238,Lambda239,PgClassExpression240 bucket38 - Bucket39("Bucket 39 (nullableBoundary)
Deps: 246, 236

ROOT PgSelectSingle{36}ᐸpersonᐳ[246]"):::bucket - classDef bucket39 stroke:#7fff00 - class Bucket39,PgClassExpression248,List249,Lambda250,PgClassExpression251 bucket39 - Bucket40("Bucket 40 (nullableBoundary)
Deps: 4, 253

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket40 stroke:#ff1493 - class Bucket40 bucket40 - Bucket41("Bucket 41 (mutationField)
Deps: 398, 399, 2, 216, 29, 236, 4, 17

1: Access[259]
2: Access[260]
3: Object[261]
4: PgDeleteSingle[258]
5:
ᐳ: Object[262]"):::bucket - classDef bucket41 stroke:#808000 - class Bucket41,PgDeleteSingle258,Access259,Access260,Object261,Object262 bucket41 - Bucket42("Bucket 42 (nullableBoundary)
Deps: 258, 216, 261, 29, 262, 236, 4, 17

ROOT Object{41}ᐸ{result}ᐳ[262]
1:
ᐳ: 265, 266, 301, 267, 268
2: PgSelect[277], PgSelect[290]
3: PgSelectRows[282], PgSelectRows[293]
ᐳ: 281, 283, 292, 294"):::bucket - classDef bucket42 stroke:#dda0dd - class Bucket42,PgClassExpression265,PgClassExpression266,List267,Lambda268,PgSelect277,First281,PgSelectRows282,PgSelectSingle283,PgSelect290,First292,PgSelectRows293,PgSelectSingle294,Lambda301 bucket42 - Bucket43("Bucket 43 (nullableBoundary)
Deps: 258, 283, 236, 294, 268, 265, 266

ROOT PgDeleteSingle{41}ᐸcompound_key(person_id_1,person_id_2)ᐳ[258]"):::bucket - classDef bucket43 stroke:#ff0000 - class Bucket43 bucket43 - Bucket44("Bucket 44 (nullableBoundary)
Deps: 283, 236

ROOT PgSelectSingle{42}ᐸpersonᐳ[283]"):::bucket - classDef bucket44 stroke:#ffff00 - class Bucket44,PgClassExpression285,List286,Lambda287,PgClassExpression288 bucket44 - Bucket45("Bucket 45 (nullableBoundary)
Deps: 294, 236

ROOT PgSelectSingle{42}ᐸpersonᐳ[294]"):::bucket - classDef bucket45 stroke:#00ffff - class Bucket45,PgClassExpression296,List297,Lambda298,PgClassExpression299 bucket45 - Bucket46("Bucket 46 (nullableBoundary)
Deps: 4, 301

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket46 stroke:#4169e1 - class Bucket46 bucket46 - Bucket47("Bucket 47 (mutationField)
Deps: 400, 2, 236, 29, 4, 17

1: Access[306]
2: Access[307]
3: Object[308]
4: PgDeleteSingle[305]
5:
ᐳ: Object[309]"):::bucket - classDef bucket47 stroke:#3cb371 - class Bucket47,PgDeleteSingle305,Access306,Access307,Object308,Object309 bucket47 - Bucket48("Bucket 48 (nullableBoundary)
Deps: 305, 236, 29, 309, 4, 17

ROOT Object{47}ᐸ{result}ᐳ[309]"):::bucket - classDef bucket48 stroke:#a52a2a - class Bucket48,PgClassExpression312,List313,Lambda314,Lambda316 bucket48 - Bucket49("Bucket 49 (nullableBoundary)
Deps: 4, 316

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket49 stroke:#ff00ff - class Bucket49 bucket49 - Bucket50("Bucket 50 (mutationField)
Deps: 401, 2, 236, 29, 4, 17

1: Access[321]
2: Access[322]
3: Object[323]
4: PgDeleteSingle[320]
5:
ᐳ: Object[324]"):::bucket - classDef bucket50 stroke:#f5deb3 - class Bucket50,PgDeleteSingle320,Access321,Access322,Object323,Object324 bucket50 - Bucket51("Bucket 51 (nullableBoundary)
Deps: 320, 236, 29, 324, 323, 401, 4, 17

ROOT Object{50}ᐸ{result}ᐳ[324]"):::bucket - classDef bucket51 stroke:#696969 - class Bucket51,PgClassExpression327,List328,Lambda329,Lambda349 bucket51 - Bucket52("Bucket 52 (nullableBoundary)
Deps: 320, 323, 401, 329, 327

ROOT PgDeleteSingle{50}ᐸperson(email)ᐳ[320]
1:
ᐳ: 335, 336, 338
2: PgSelect[339]
3: PgSelectRows[344]
ᐳ: 343, 345, 347"):::bucket - classDef bucket52 stroke:#00bfff - class Bucket52,PgClassExpression335,PgClassExpression336,PgClassExpression338,PgSelect339,First343,PgSelectRows344,PgSelectSingle345,PgClassExpression347 bucket52 - Bucket53("Bucket 53 (nullableBoundary)
Deps: 4, 349

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket53 stroke:#7f007f - class Bucket53 bucket53 - Bucket54("Bucket 54 (mutationField)
Deps: 402, 2, 236, 29, 4, 17

1: Access[354]
2: Access[355]
3: Object[356]
4: PgDeleteSingle[353]
5:
ᐳ: Object[357]"):::bucket - classDef bucket54 stroke:#ffa500 - class Bucket54,PgDeleteSingle353,Access354,Access355,Object356,Object357 bucket54 - Bucket55("Bucket 55 (nullableBoundary)
Deps: 353, 236, 356, 29, 357, 4, 17

ROOT Object{54}ᐸ{result}ᐳ[357]
1:
ᐳ: 360, 365, 370, 385, 361, 362
2: PgSelect[366]
ᐳ: Access[375]
3: PgSelectRows[372]
ᐳ: 371, 373, 376, 374"):::bucket - classDef bucket55 stroke:#0000ff - class Bucket55,PgClassExpression360,List361,Lambda362,PgClassExpression365,PgSelect366,Connection370,First371,PgSelectRows372,PgSelectSingle373,Edge374,Access375,PgCursor376,Lambda385 bucket55 - Bucket56("Bucket 56 (nullableBoundary)
Deps: 374, 373, 236, 376

ROOT Edge{55}[374]"):::bucket - classDef bucket56 stroke:#7fff00 - class Bucket56 bucket56 - Bucket57("Bucket 57 (nullableBoundary)
Deps: 373, 236

ROOT PgSelectSingle{55}ᐸpersonᐳ[373]"):::bucket - classDef bucket57 stroke:#ff1493 - class Bucket57,PgClassExpression378,PgClassExpression379,List381,Lambda382,PgClassExpression383 bucket57 - Bucket58("Bucket 58 (nullableBoundary)
Deps: 4, 385

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket58 stroke:#808000 - class Bucket58 bucket58 - Bucket0 --> Bucket1 & Bucket5 & Bucket9 & Bucket13 & Bucket17 & Bucket19 & Bucket23 & Bucket27 & Bucket31 & Bucket35 & Bucket41 & Bucket47 & Bucket50 & Bucket54 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 & Bucket8 - Bucket9 --> Bucket10 - Bucket10 --> Bucket11 & Bucket12 - Bucket13 --> Bucket14 - Bucket14 --> Bucket15 & Bucket16 - Bucket17 --> Bucket18 - Bucket19 --> Bucket20 - Bucket20 --> Bucket21 & Bucket22 - Bucket23 --> Bucket24 - Bucket24 --> Bucket25 & Bucket26 - Bucket27 --> Bucket28 - Bucket28 --> Bucket29 & Bucket30 - Bucket31 --> Bucket32 - Bucket32 --> Bucket33 & Bucket34 - Bucket35 --> Bucket36 - Bucket36 --> Bucket37 & Bucket40 - Bucket37 --> Bucket38 & Bucket39 - Bucket41 --> Bucket42 - Bucket42 --> Bucket43 & Bucket46 - Bucket43 --> Bucket44 & Bucket45 - Bucket47 --> Bucket48 - Bucket48 --> Bucket49 - Bucket50 --> Bucket51 - Bucket51 --> Bucket52 & Bucket53 - Bucket54 --> Bucket55 - Bucket55 --> Bucket56 & Bucket58 - Bucket56 --> Bucket57 + class Bucket14,PgDeleteSingle367,Access368,Access369,Object370,Object372,Access373,PgClassExpression375,Access376,List377,Lambda378,PgClassExpression380,PgSelect381,PgFromExpression383,Connection385,First386,PgSelectRows387,PgSelectSingle388,Edge389,Access390,PgCursor391,PgClassExpression393,PgClassExpression394,List395,Lambda396,PgClassExpression397,Lambda399 bucket14 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 & Bucket11 & Bucket12 & Bucket13 & Bucket14 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-return-types.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-return-types.mermaid index ee35ead8de..55cddd5321 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-return-types.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-return-types.mermaid @@ -9,653 +9,603 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant309{{"Constant[309∈0] ➊
ᐸ10ᐳ"}}:::plan + Constant310{{"Constant[310∈0] ➊
ᐸ5ᐳ"}}:::plan + Constant309 & Constant310 --> __InputObject6 + __InputObject47{{"__InputObject[47∈0] ➊"}}:::plan + Constant311{{"Constant[311∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant312{{"Constant[312∈0] ➊
ᐸ'test'ᐳ"}}:::plan + Constant311 & Constant312 --> __InputObject47 + __InputObject98{{"__InputObject[98∈0] ➊"}}:::plan + Constant311 & Constant312 --> __InputObject98 Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 + PgFromExpression14{{"PgFromExpression[14∈0] ➊"}}:::plan + Constant309 & Constant310 --> PgFromExpression14 + __InputObject21{{"__InputObject[21∈0] ➊"}}:::plan + Constant309 --> __InputObject21 + __InputObject162{{"__InputObject[162∈0] ➊"}}:::plan + Constant309 --> __InputObject162 + __InputObject280{{"__InputObject[280∈0] ➊"}}:::plan + Constant313{{"Constant[313∈0] ➊
ᐸ20ᐳ"}}:::plan + Constant313 --> __InputObject280 + __InputObject295{{"__InputObject[295∈0] ➊"}}:::plan + Constant313 --> __InputObject295 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + ApplyInput20{{"ApplyInput[20∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput20 + ApplyInput34{{"ApplyInput[34∈0] ➊"}}:::plan + __InputObject21 --> ApplyInput34 + __InputObject35{{"__InputObject[35∈0] ➊"}}:::plan + ApplyInput46{{"ApplyInput[46∈0] ➊"}}:::plan + __InputObject35 --> ApplyInput46 + ApplyInput60{{"ApplyInput[60∈0] ➊"}}:::plan + __InputObject47 --> ApplyInput60 + ApplyInput107{{"ApplyInput[107∈0] ➊"}}:::plan + __InputObject98 --> ApplyInput107 + __InputObject150{{"__InputObject[150∈0] ➊"}}:::plan + ApplyInput159{{"ApplyInput[159∈0] ➊"}}:::plan + __InputObject150 --> ApplyInput159 + ApplyInput174{{"ApplyInput[174∈0] ➊"}}:::plan + __InputObject162 --> ApplyInput174 + __InputObject186{{"__InputObject[186∈0] ➊"}}:::plan + ApplyInput193{{"ApplyInput[193∈0] ➊"}}:::plan + __InputObject186 --> ApplyInput193 + __InputObject199{{"__InputObject[199∈0] ➊"}}:::plan + ApplyInput209{{"ApplyInput[209∈0] ➊"}}:::plan + __InputObject199 --> ApplyInput209 + __InputObject212{{"__InputObject[212∈0] ➊"}}:::plan + ApplyInput219{{"ApplyInput[219∈0] ➊"}}:::plan + __InputObject212 --> ApplyInput219 + __InputObject224{{"__InputObject[224∈0] ➊"}}:::plan + ApplyInput234{{"ApplyInput[234∈0] ➊"}}:::plan + __InputObject224 --> ApplyInput234 + __InputObject239{{"__InputObject[239∈0] ➊"}}:::plan + ApplyInput246{{"ApplyInput[246∈0] ➊"}}:::plan + __InputObject239 --> ApplyInput246 + __InputObject254{{"__InputObject[254∈0] ➊"}}:::plan + ApplyInput265{{"ApplyInput[265∈0] ➊"}}:::plan + __InputObject254 --> ApplyInput265 + __InputObject266{{"__InputObject[266∈0] ➊"}}:::plan + ApplyInput276{{"ApplyInput[276∈0] ➊"}}:::plan + __InputObject266 --> ApplyInput276 + ApplyInput289{{"ApplyInput[289∈0] ➊"}}:::plan + __InputObject280 --> ApplyInput289 + ApplyInput304{{"ApplyInput[304∈0] ➊"}}:::plan + __InputObject295 --> ApplyInput304 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant72{{"Constant[72∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant89{{"Constant[89∈0] ➊
ᐸ'posts'ᐳ"}}:::plan - Constant289{{"Constant[289∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant290{{"Constant[290∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant291{{"Constant[291∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant292{{"Constant[292∈0] ➊
ᐸ'test'ᐳ"}}:::plan - Constant293{{"Constant[293∈0] ➊
ᐸ20ᐳ"}}:::plan + Constant79{{"Constant[79∈0] ➊
ᐸ'people'ᐳ"}}:::plan + Constant94{{"Constant[94∈0] ➊
ᐸ'posts'ᐳ"}}:::plan PgSelect10[["PgSelect[10∈1] ➊
ᐸmutation_in_inout(mutation)ᐳ"]]:::sideeffectplan - Object13 & Constant289 & Constant290 --> PgSelect10 - First14{{"First[14∈1] ➊"}}:::plan - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan - PgSelectRows15 --> First14 - PgSelect10 --> PgSelectRows15 - PgSelectSingle16{{"PgSelectSingle[16∈1] ➊
ᐸmutation_in_inoutᐳ"}}:::plan - First14 --> PgSelectSingle16 - PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__mutation_in_inout__.vᐳ"}}:::plan - PgSelectSingle16 --> PgClassExpression17 - Object18{{"Object[18∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression17 --> Object18 - PgSelect22[["PgSelect[22∈3] ➊
ᐸmutation_in_out(mutation)ᐳ"]]:::sideeffectplan - Object25{{"Object[25∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object25 & Constant289 --> PgSelect22 - Access23{{"Access[23∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access24{{"Access[24∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access23 & Access24 --> Object25 - __Value2 --> Access23 - __Value2 --> Access24 - First26{{"First[26∈3] ➊"}}:::plan - PgSelectRows27[["PgSelectRows[27∈3] ➊"]]:::plan - PgSelectRows27 --> First26 - PgSelect22 --> PgSelectRows27 - PgSelectSingle28{{"PgSelectSingle[28∈3] ➊
ᐸmutation_in_outᐳ"}}:::plan - First26 --> PgSelectSingle28 - PgClassExpression29{{"PgClassExpression[29∈3] ➊
ᐸ__mutation_in_out__.vᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression29 - Object30{{"Object[30∈3] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression29 --> Object30 - Object36{{"Object[36∈5] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access34{{"Access[34∈5] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access35{{"Access[35∈5] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access34 & Access35 --> Object36 - PgSelect33[["PgSelect[33∈5] ➊
ᐸmutation_out(mutation)ᐳ"]]:::sideeffectplan - Object36 --> PgSelect33 - __Value2 --> Access34 - __Value2 --> Access35 - First37{{"First[37∈5] ➊"}}:::plan - PgSelectRows38[["PgSelectRows[38∈5] ➊"]]:::plan - PgSelectRows38 --> First37 - PgSelect33 --> PgSelectRows38 - PgSelectSingle39{{"PgSelectSingle[39∈5] ➊
ᐸmutation_outᐳ"}}:::plan - First37 --> PgSelectSingle39 - PgClassExpression40{{"PgClassExpression[40∈5] ➊
ᐸ__mutation_out__.vᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression40 - Object41{{"Object[41∈5] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression40 --> Object41 - PgSelect46[["PgSelect[46∈7] ➊
ᐸmutation_out_complex(mutation)ᐳ"]]:::sideeffectplan - Object49{{"Object[49∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object49 & Constant291 & Constant292 --> PgSelect46 - Access47{{"Access[47∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access48{{"Access[48∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access47 & Access48 --> Object49 - __Value2 --> Access47 - __Value2 --> Access48 - First50{{"First[50∈7] ➊"}}:::plan - PgSelectRows51[["PgSelectRows[51∈7] ➊"]]:::plan - PgSelectRows51 --> First50 - PgSelect46 --> PgSelectRows51 - PgSelectSingle52{{"PgSelectSingle[52∈7] ➊
ᐸmutation_out_complexᐳ"}}:::plan - First50 --> PgSelectSingle52 - Object53{{"Object[53∈7] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle52 --> Object53 - Connection84{{"Connection[84∈8] ➊
ᐸ80ᐳ"}}:::plan - PgSelect56[["PgSelect[56∈9] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression55{{"PgClassExpression[55∈9] ➊
ᐸ__mutation...plex__.”y”ᐳ"}}:::plan - Object49 & PgClassExpression55 --> PgSelect56 - PgSelect67[["PgSelect[67∈9] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression66{{"PgClassExpression[66∈9] ➊
ᐸ__mutation...plex__.”z”ᐳ"}}:::plan - Object49 & PgClassExpression66 --> PgSelect67 - PgClassExpression54{{"PgClassExpression[54∈9] ➊
ᐸ__mutation...plex__.”x”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression54 - PgSelectSingle52 --> PgClassExpression55 - First60{{"First[60∈9] ➊"}}:::plan - PgSelectRows61[["PgSelectRows[61∈9] ➊"]]:::plan - PgSelectRows61 --> First60 - PgSelect56 --> PgSelectRows61 - PgSelectSingle62{{"PgSelectSingle[62∈9] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First60 --> PgSelectSingle62 - PgSelectSingle52 --> PgClassExpression66 - First69{{"First[69∈9] ➊"}}:::plan - PgSelectRows70[["PgSelectRows[70∈9] ➊"]]:::plan - PgSelectRows70 --> First69 - PgSelect67 --> PgSelectRows70 - PgSelectSingle71{{"PgSelectSingle[71∈9] ➊
ᐸpersonᐳ"}}:::plan - First69 --> PgSelectSingle71 - PgClassExpression63{{"PgClassExpression[63∈10] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle62 --> PgClassExpression63 - PgClassExpression64{{"PgClassExpression[64∈10] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle62 --> PgClassExpression64 - PgClassExpression65{{"PgClassExpression[65∈10] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle62 --> PgClassExpression65 - PgSelect85[["PgSelect[85∈11] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression73{{"PgClassExpression[73∈11] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Object49 & PgClassExpression73 & Connection84 --> PgSelect85 - List74{{"List[74∈11] ➊
ᐸ72,73ᐳ"}}:::plan - Constant72 & PgClassExpression73 --> List74 - PgSelectSingle71 --> PgClassExpression73 - Lambda75{{"Lambda[75∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List74 --> Lambda75 - PgClassExpression76{{"PgClassExpression[76∈11] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle71 --> PgClassExpression76 - PgSelectRows86[["PgSelectRows[86∈11] ➊"]]:::plan - PgSelect85 --> PgSelectRows86 - __Item87[/"__Item[87∈12]
ᐸ86ᐳ"\]:::itemplan - PgSelectRows86 ==> __Item87 - PgSelectSingle88{{"PgSelectSingle[88∈12]
ᐸpostᐳ"}}:::plan - __Item87 --> PgSelectSingle88 - List91{{"List[91∈13]
ᐸ89,90ᐳ"}}:::plan - PgClassExpression90{{"PgClassExpression[90∈13]
ᐸ__post__.”id”ᐳ"}}:::plan - Constant89 & PgClassExpression90 --> List91 - PgSelectSingle88 --> PgClassExpression90 - Lambda92{{"Lambda[92∈13]
ᐸbase64JSONEncodeᐳ"}}:::plan - List91 --> Lambda92 - PgSelect96[["PgSelect[96∈14] ➊
ᐸmutation_out_complex_setof(mutation)ᐳ"]]:::sideeffectplan - Object99{{"Object[99∈14] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object99 & Constant291 & Constant292 --> PgSelect96 - Access97{{"Access[97∈14] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access98{{"Access[98∈14] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access97 & Access98 --> Object99 - __Value2 --> Access97 - __Value2 --> Access98 - Object100{{"Object[100∈14] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect96 --> Object100 - PgSelectRows101[["PgSelectRows[101∈15] ➊"]]:::plan - PgSelect96 --> PgSelectRows101 - Connection134{{"Connection[134∈15] ➊
ᐸ130ᐳ"}}:::plan - __Item102[/"__Item[102∈16]
ᐸ101ᐳ"\]:::itemplan - PgSelectRows101 ==> __Item102 - PgSelectSingle103{{"PgSelectSingle[103∈16]
ᐸmutation_out_complex_setofᐳ"}}:::plan - __Item102 --> PgSelectSingle103 - PgSelect106[["PgSelect[106∈17]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression105{{"PgClassExpression[105∈17]
ᐸ__mutation...etof__.”y”ᐳ"}}:::plan - Object99 & PgClassExpression105 --> PgSelect106 - PgSelect117[["PgSelect[117∈17]
ᐸpersonᐳ"]]:::plan - PgClassExpression116{{"PgClassExpression[116∈17]
ᐸ__mutation...etof__.”z”ᐳ"}}:::plan - Object99 & PgClassExpression116 --> PgSelect117 - PgClassExpression104{{"PgClassExpression[104∈17]
ᐸ__mutation...etof__.”x”ᐳ"}}:::plan - PgSelectSingle103 --> PgClassExpression104 - PgSelectSingle103 --> PgClassExpression105 - First110{{"First[110∈17]"}}:::plan - PgSelectRows111[["PgSelectRows[111∈17]"]]:::plan - PgSelectRows111 --> First110 - PgSelect106 --> PgSelectRows111 - PgSelectSingle112{{"PgSelectSingle[112∈17]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First110 --> PgSelectSingle112 - PgSelectSingle103 --> PgClassExpression116 - First119{{"First[119∈17]"}}:::plan - PgSelectRows120[["PgSelectRows[120∈17]"]]:::plan - PgSelectRows120 --> First119 - PgSelect117 --> PgSelectRows120 - PgSelectSingle121{{"PgSelectSingle[121∈17]
ᐸpersonᐳ"}}:::plan - First119 --> PgSelectSingle121 - PgClassExpression113{{"PgClassExpression[113∈18]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle112 --> PgClassExpression113 - PgClassExpression114{{"PgClassExpression[114∈18]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle112 --> PgClassExpression114 - PgClassExpression115{{"PgClassExpression[115∈18]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle112 --> PgClassExpression115 - PgSelect135[["PgSelect[135∈19]
ᐸpostᐳ"]]:::plan - PgClassExpression123{{"PgClassExpression[123∈19]
ᐸ__person__.”id”ᐳ"}}:::plan - Object99 & PgClassExpression123 & Connection134 --> PgSelect135 - List124{{"List[124∈19]
ᐸ72,123ᐳ"}}:::plan - Constant72 & PgClassExpression123 --> List124 - PgSelectSingle121 --> PgClassExpression123 - Lambda125{{"Lambda[125∈19]
ᐸbase64JSONEncodeᐳ"}}:::plan - List124 --> Lambda125 - PgClassExpression126{{"PgClassExpression[126∈19]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle121 --> PgClassExpression126 - PgSelectRows136[["PgSelectRows[136∈19]"]]:::plan - PgSelect135 --> PgSelectRows136 - __Item137[/"__Item[137∈20]
ᐸ136ᐳ"\]:::itemplan - PgSelectRows136 ==> __Item137 - PgSelectSingle138{{"PgSelectSingle[138∈20]
ᐸpostᐳ"}}:::plan - __Item137 --> PgSelectSingle138 - List141{{"List[141∈21]
ᐸ89,140ᐳ"}}:::plan - PgClassExpression140{{"PgClassExpression[140∈21]
ᐸ__post__.”id”ᐳ"}}:::plan - Constant89 & PgClassExpression140 --> List141 - PgSelectSingle138 --> PgClassExpression140 - Lambda142{{"Lambda[142∈21]
ᐸbase64JSONEncodeᐳ"}}:::plan - List141 --> Lambda142 - Object147{{"Object[147∈22] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access145{{"Access[145∈22] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access146{{"Access[146∈22] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access145 & Access146 --> Object147 - PgSelect144[["PgSelect[144∈22] ➊
ᐸmutation_out_out(mutation)ᐳ"]]:::sideeffectplan - Object147 --> PgSelect144 - __Value2 --> Access145 - __Value2 --> Access146 - First148{{"First[148∈22] ➊"}}:::plan - PgSelectRows149[["PgSelectRows[149∈22] ➊"]]:::plan - PgSelectRows149 --> First148 - PgSelect144 --> PgSelectRows149 - PgSelectSingle150{{"PgSelectSingle[150∈22] ➊
ᐸmutation_out_outᐳ"}}:::plan - First148 --> PgSelectSingle150 - Object151{{"Object[151∈22] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle150 --> Object151 - PgClassExpression152{{"PgClassExpression[152∈24] ➊
ᐸ__mutation...first_out”ᐳ"}}:::plan - PgSelectSingle150 --> PgClassExpression152 - PgClassExpression153{{"PgClassExpression[153∈24] ➊
ᐸ__mutation...econd_out”ᐳ"}}:::plan - PgSelectSingle150 --> PgClassExpression153 - PgSelect157[["PgSelect[157∈25] ➊
ᐸmutation_out_out_compound_type(mutation)ᐳ"]]:::sideeffectplan - Object160{{"Object[160∈25] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object160 & Constant289 --> PgSelect157 - Access158{{"Access[158∈25] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access159{{"Access[159∈25] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access158 & Access159 --> Object160 - __Value2 --> Access158 - __Value2 --> Access159 - First161{{"First[161∈25] ➊"}}:::plan - PgSelectRows162[["PgSelectRows[162∈25] ➊"]]:::plan - PgSelectRows162 --> First161 - PgSelect157 --> PgSelectRows162 - PgSelectSingle163{{"PgSelectSingle[163∈25] ➊
ᐸmutation_out_out_compound_typeᐳ"}}:::plan - First161 --> PgSelectSingle163 - Object164{{"Object[164∈25] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle163 --> Object164 - PgSelect167[["PgSelect[167∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression166{{"PgClassExpression[166∈27] ➊
ᐸ__mutation...ype__.”o2”ᐳ"}}:::plan - Object160 & PgClassExpression166 --> PgSelect167 - PgClassExpression165{{"PgClassExpression[165∈27] ➊
ᐸ__mutation...ype__.”o1”ᐳ"}}:::plan - PgSelectSingle163 --> PgClassExpression165 - PgSelectSingle163 --> PgClassExpression166 - First171{{"First[171∈27] ➊"}}:::plan - PgSelectRows172[["PgSelectRows[172∈27] ➊"]]:::plan - PgSelectRows172 --> First171 - PgSelect167 --> PgSelectRows172 - PgSelectSingle173{{"PgSelectSingle[173∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First171 --> PgSelectSingle173 - PgClassExpression174{{"PgClassExpression[174∈28] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle173 --> PgClassExpression174 - PgClassExpression175{{"PgClassExpression[175∈28] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle173 --> PgClassExpression175 - PgClassExpression176{{"PgClassExpression[176∈28] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle173 --> PgClassExpression176 - Object182{{"Object[182∈29] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access180{{"Access[180∈29] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access181{{"Access[181∈29] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access180 & Access181 --> Object182 - PgSelect179[["PgSelect[179∈29] ➊
ᐸmutation_out_out_setof(mutation)ᐳ"]]:::sideeffectplan - Object182 --> PgSelect179 - __Value2 --> Access180 - __Value2 --> Access181 - Object183{{"Object[183∈29] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect179 --> Object183 - PgSelectRows184[["PgSelectRows[184∈30] ➊"]]:::plan - PgSelect179 --> PgSelectRows184 - __Item185[/"__Item[185∈31]
ᐸ184ᐳ"\]:::itemplan - PgSelectRows184 ==> __Item185 - PgSelectSingle186{{"PgSelectSingle[186∈31]
ᐸmutation_out_out_setofᐳ"}}:::plan - __Item185 --> PgSelectSingle186 - PgClassExpression187{{"PgClassExpression[187∈32]
ᐸ__mutation...tof__.”o1”ᐳ"}}:::plan - PgSelectSingle186 --> PgClassExpression187 - PgClassExpression188{{"PgClassExpression[188∈32]
ᐸ__mutation...tof__.”o2”ᐳ"}}:::plan - PgSelectSingle186 --> PgClassExpression188 - Object194{{"Object[194∈33] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access192{{"Access[192∈33] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access193{{"Access[193∈33] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access192 & Access193 --> Object194 - PgSelect191[["PgSelect[191∈33] ➊
ᐸmutation_out_out_unnamed(mutation)ᐳ"]]:::sideeffectplan - Object194 --> PgSelect191 - __Value2 --> Access192 - __Value2 --> Access193 - First195{{"First[195∈33] ➊"}}:::plan - PgSelectRows196[["PgSelectRows[196∈33] ➊"]]:::plan - PgSelectRows196 --> First195 - PgSelect191 --> PgSelectRows196 - PgSelectSingle197{{"PgSelectSingle[197∈33] ➊
ᐸmutation_out_out_unnamedᐳ"}}:::plan - First195 --> PgSelectSingle197 - Object198{{"Object[198∈33] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle197 --> Object198 - PgClassExpression199{{"PgClassExpression[199∈35] ➊
ᐸ__mutation....”column1”ᐳ"}}:::plan - PgSelectSingle197 --> PgClassExpression199 - PgClassExpression200{{"PgClassExpression[200∈35] ➊
ᐸ__mutation....”column2”ᐳ"}}:::plan - PgSelectSingle197 --> PgClassExpression200 - Object206{{"Object[206∈36] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access204{{"Access[204∈36] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access205{{"Access[205∈36] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access204 & Access205 --> Object206 - PgSelect203[["PgSelect[203∈36] ➊
ᐸmutation_out_setof(mutation)ᐳ"]]:::sideeffectplan - Object206 --> PgSelect203 - __Value2 --> Access204 - __Value2 --> Access205 - Object207{{"Object[207∈36] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect203 --> Object207 - PgSelectRows208[["PgSelectRows[208∈37] ➊"]]:::plan - PgSelect203 --> PgSelectRows208 - __Item209[/"__Item[209∈38]
ᐸ208ᐳ"\]:::itemplan - PgSelectRows208 ==> __Item209 - PgSelectSingle210{{"PgSelectSingle[210∈38]
ᐸmutation_out_setofᐳ"}}:::plan - __Item209 --> PgSelectSingle210 - PgClassExpression211{{"PgClassExpression[211∈38]
ᐸ__mutation..._setof__.vᐳ"}}:::plan - PgSelectSingle210 --> PgClassExpression211 - Object217{{"Object[217∈39] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access215{{"Access[215∈39] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access216{{"Access[216∈39] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Object13 & PgFromExpression14 & ApplyInput20 --> PgSelect10 + First15{{"First[15∈1] ➊"}}:::plan + PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan + PgSelectRows16 --> First15 + PgSelect10 --> PgSelectRows16 + PgSelectSingle17{{"PgSelectSingle[17∈1] ➊
ᐸmutation_in_inoutᐳ"}}:::plan + First15 --> PgSelectSingle17 + PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__mutation_in_inout__.vᐳ"}}:::plan + PgSelectSingle17 --> PgClassExpression18 + Object19{{"Object[19∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression18 --> Object19 + PgSelect24[["PgSelect[24∈2] ➊
ᐸmutation_in_out(mutation)ᐳ"]]:::sideeffectplan + Object27{{"Object[27∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression28{{"PgFromExpression[28∈2] ➊"}}:::plan + Object27 & PgFromExpression28 & ApplyInput34 --> PgSelect24 + Access25{{"Access[25∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access26{{"Access[26∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access25 & Access26 --> Object27 + __Value2 --> Access25 + __Value2 --> Access26 + Constant309 --> PgFromExpression28 + First29{{"First[29∈2] ➊"}}:::plan + PgSelectRows30[["PgSelectRows[30∈2] ➊"]]:::plan + PgSelectRows30 --> First29 + PgSelect24 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈2] ➊
ᐸmutation_in_outᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈2] ➊
ᐸ__mutation_in_out__.vᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + Object33{{"Object[33∈2] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression32 --> Object33 + PgSelect37[["PgSelect[37∈3] ➊
ᐸmutation_out(mutation)ᐳ"]]:::sideeffectplan + Object40{{"Object[40∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object40 & ApplyInput46 --> PgSelect37 + Access38{{"Access[38∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access39{{"Access[39∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access38 & Access39 --> Object40 + __Value2 --> Access38 + __Value2 --> Access39 + First41{{"First[41∈3] ➊"}}:::plan + PgSelectRows42[["PgSelectRows[42∈3] ➊"]]:::plan + PgSelectRows42 --> First41 + PgSelect37 --> PgSelectRows42 + PgSelectSingle43{{"PgSelectSingle[43∈3] ➊
ᐸmutation_outᐳ"}}:::plan + First41 --> PgSelectSingle43 + PgClassExpression44{{"PgClassExpression[44∈3] ➊
ᐸ__mutation_out__.vᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression44 + Object45{{"Object[45∈3] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression44 --> Object45 + PgSelect90[["PgSelect[90∈4] ➊
ᐸpostᐳ"]]:::plan + Object54{{"Object[54∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgClassExpression80{{"PgClassExpression[80∈4] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Connection88{{"Connection[88∈4] ➊
ᐸ86ᐳ"}}:::plan + Object54 & PgClassExpression80 & Connection88 --> PgSelect90 + PgSelect51[["PgSelect[51∈4] ➊
ᐸmutation_out_complex(mutation)ᐳ"]]:::sideeffectplan + PgFromExpression55{{"PgFromExpression[55∈4] ➊"}}:::plan + Object54 & PgFromExpression55 & ApplyInput60 --> PgSelect51 + Access52{{"Access[52∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access53{{"Access[53∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access52 & Access53 --> Object54 + Constant311 & Constant312 --> PgFromExpression55 + PgSelect63[["PgSelect[63∈4] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression65{{"PgFromExpression[65∈4] ➊"}}:::plan + Object54 & PgFromExpression65 --> PgSelect63 + PgSelect73[["PgSelect[73∈4] ➊
ᐸpersonᐳ"]]:::plan + PgFromExpression75{{"PgFromExpression[75∈4] ➊"}}:::plan + Object54 & PgFromExpression75 --> PgSelect73 + List81{{"List[81∈4] ➊
ᐸ79,80ᐳ"}}:::plan + Constant79 & PgClassExpression80 --> List81 + __Value2 --> Access52 + __Value2 --> Access53 + First56{{"First[56∈4] ➊"}}:::plan + PgSelectRows57[["PgSelectRows[57∈4] ➊"]]:::plan + PgSelectRows57 --> First56 + PgSelect51 --> PgSelectRows57 + PgSelectSingle58{{"PgSelectSingle[58∈4] ➊
ᐸmutation_out_complexᐳ"}}:::plan + First56 --> PgSelectSingle58 + Object59{{"Object[59∈4] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle58 --> Object59 + PgClassExpression61{{"PgClassExpression[61∈4] ➊
ᐸ__mutation...plex__.”x”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression61 + PgClassExpression62{{"PgClassExpression[62∈4] ➊
ᐸ__mutation...plex__.”y”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression62 + PgClassExpression62 --> PgFromExpression65 + First66{{"First[66∈4] ➊"}}:::plan + PgSelectRows67[["PgSelectRows[67∈4] ➊"]]:::plan + PgSelectRows67 --> First66 + PgSelect63 --> PgSelectRows67 + PgSelectSingle68{{"PgSelectSingle[68∈4] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First66 --> PgSelectSingle68 + PgClassExpression69{{"PgClassExpression[69∈4] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle68 --> PgClassExpression69 + PgClassExpression70{{"PgClassExpression[70∈4] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle68 --> PgClassExpression70 + PgClassExpression71{{"PgClassExpression[71∈4] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle68 --> PgClassExpression71 + PgClassExpression72{{"PgClassExpression[72∈4] ➊
ᐸ__mutation...plex__.”z”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression72 + PgClassExpression72 --> PgFromExpression75 + First76{{"First[76∈4] ➊"}}:::plan + PgSelectRows77[["PgSelectRows[77∈4] ➊"]]:::plan + PgSelectRows77 --> First76 + PgSelect73 --> PgSelectRows77 + PgSelectSingle78{{"PgSelectSingle[78∈4] ➊
ᐸpersonᐳ"}}:::plan + First76 --> PgSelectSingle78 + PgSelectSingle78 --> PgClassExpression80 + Lambda82{{"Lambda[82∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List81 --> Lambda82 + PgClassExpression83{{"PgClassExpression[83∈4] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle78 --> PgClassExpression83 + PgSelectRows91[["PgSelectRows[91∈4] ➊"]]:::plan + PgSelect90 --> PgSelectRows91 + List96{{"List[96∈5]
ᐸ94,95ᐳ"}}:::plan + PgClassExpression95{{"PgClassExpression[95∈5]
ᐸ__post__.”id”ᐳ"}}:::plan + Constant94 & PgClassExpression95 --> List96 + __Item92[/"__Item[92∈5]
ᐸ91ᐳ"\]:::itemplan + PgSelectRows91 ==> __Item92 + PgSelectSingle93{{"PgSelectSingle[93∈5]
ᐸpostᐳ"}}:::plan + __Item92 --> PgSelectSingle93 + PgSelectSingle93 --> PgClassExpression95 + Lambda97{{"Lambda[97∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan + List96 --> Lambda97 + PgSelect101[["PgSelect[101∈6] ➊
ᐸmutation_out_complex_setof(mutation)ᐳ"]]:::sideeffectplan + Object104{{"Object[104∈6] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression105{{"PgFromExpression[105∈6] ➊"}}:::plan + Object104 & PgFromExpression105 & ApplyInput107 --> PgSelect101 + Access102{{"Access[102∈6] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access103{{"Access[103∈6] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access102 & Access103 --> Object104 + Constant311 & Constant312 --> PgFromExpression105 + __Value2 --> Access102 + __Value2 --> Access103 + Object106{{"Object[106∈6] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect101 --> Object106 + PgSelectRows108[["PgSelectRows[108∈6] ➊"]]:::plan + PgSelect101 --> PgSelectRows108 + PgSelect142[["PgSelect[142∈7]
ᐸpostᐳ"]]:::plan + PgClassExpression132{{"PgClassExpression[132∈7]
ᐸ__person__.”id”ᐳ"}}:::plan + Connection140{{"Connection[140∈7] ➊
ᐸ138ᐳ"}}:::plan + Object104 & PgClassExpression132 & Connection140 --> PgSelect142 + PgSelect113[["PgSelect[113∈7]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression112{{"PgClassExpression[112∈7]
ᐸ__mutation...etof__.”y”ᐳ"}}:::plan + PgFromExpression117{{"PgFromExpression[117∈7] ➊"}}:::plan + Object104 & PgClassExpression112 & PgFromExpression117 --> PgSelect113 + PgSelect125[["PgSelect[125∈7]
ᐸpersonᐳ"]]:::plan + PgClassExpression124{{"PgClassExpression[124∈7]
ᐸ__mutation...etof__.”z”ᐳ"}}:::plan + PgFromExpression127{{"PgFromExpression[127∈7] ➊"}}:::plan + Object104 & PgClassExpression124 & PgFromExpression127 --> PgSelect125 + List133{{"List[133∈7]
ᐸ79,132ᐳ"}}:::plan + Constant79 & PgClassExpression132 --> List133 + __Item109[/"__Item[109∈7]
ᐸ108ᐳ"\]:::itemplan + PgSelectRows108 ==> __Item109 + PgSelectSingle110{{"PgSelectSingle[110∈7]
ᐸmutation_out_complex_setofᐳ"}}:::plan + __Item109 --> PgSelectSingle110 + PgClassExpression111{{"PgClassExpression[111∈7]
ᐸ__mutation...etof__.”x”ᐳ"}}:::plan + PgSelectSingle110 --> PgClassExpression111 + PgSelectSingle110 --> PgClassExpression112 + First118{{"First[118∈7]"}}:::plan + PgSelectRows119[["PgSelectRows[119∈7]"]]:::plan + PgSelectRows119 --> First118 + PgSelect113 --> PgSelectRows119 + PgSelectSingle120{{"PgSelectSingle[120∈7]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First118 --> PgSelectSingle120 + PgClassExpression121{{"PgClassExpression[121∈7]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle120 --> PgClassExpression121 + PgClassExpression122{{"PgClassExpression[122∈7]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle120 --> PgClassExpression122 + PgClassExpression123{{"PgClassExpression[123∈7]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle120 --> PgClassExpression123 + PgSelectSingle110 --> PgClassExpression124 + First128{{"First[128∈7]"}}:::plan + PgSelectRows129[["PgSelectRows[129∈7]"]]:::plan + PgSelectRows129 --> First128 + PgSelect125 --> PgSelectRows129 + PgSelectSingle130{{"PgSelectSingle[130∈7]
ᐸpersonᐳ"}}:::plan + First128 --> PgSelectSingle130 + PgSelectSingle130 --> PgClassExpression132 + Lambda134{{"Lambda[134∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan + List133 --> Lambda134 + PgClassExpression135{{"PgClassExpression[135∈7]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle130 --> PgClassExpression135 + PgSelectRows143[["PgSelectRows[143∈7]"]]:::plan + PgSelect142 --> PgSelectRows143 + List148{{"List[148∈8]
ᐸ94,147ᐳ"}}:::plan + PgClassExpression147{{"PgClassExpression[147∈8]
ᐸ__post__.”id”ᐳ"}}:::plan + Constant94 & PgClassExpression147 --> List148 + __Item144[/"__Item[144∈8]
ᐸ143ᐳ"\]:::itemplan + PgSelectRows143 ==> __Item144 + PgSelectSingle145{{"PgSelectSingle[145∈8]
ᐸpostᐳ"}}:::plan + __Item144 --> PgSelectSingle145 + PgSelectSingle145 --> PgClassExpression147 + Lambda149{{"Lambda[149∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan + List148 --> Lambda149 + PgSelect151[["PgSelect[151∈9] ➊
ᐸmutation_out_out(mutation)ᐳ"]]:::sideeffectplan + Object154{{"Object[154∈9] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object154 & ApplyInput159 --> PgSelect151 + Access152{{"Access[152∈9] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access153{{"Access[153∈9] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access152 & Access153 --> Object154 + __Value2 --> Access152 + __Value2 --> Access153 + First155{{"First[155∈9] ➊"}}:::plan + PgSelectRows156[["PgSelectRows[156∈9] ➊"]]:::plan + PgSelectRows156 --> First155 + PgSelect151 --> PgSelectRows156 + PgSelectSingle157{{"PgSelectSingle[157∈9] ➊
ᐸmutation_out_outᐳ"}}:::plan + First155 --> PgSelectSingle157 + Object158{{"Object[158∈9] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle157 --> Object158 + PgClassExpression160{{"PgClassExpression[160∈9] ➊
ᐸ__mutation...first_out”ᐳ"}}:::plan + PgSelectSingle157 --> PgClassExpression160 + PgClassExpression161{{"PgClassExpression[161∈9] ➊
ᐸ__mutation...econd_out”ᐳ"}}:::plan + PgSelectSingle157 --> PgClassExpression161 + PgSelect165[["PgSelect[165∈10] ➊
ᐸmutation_out_out_compound_type(mutation)ᐳ"]]:::sideeffectplan + Object168{{"Object[168∈10] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression169{{"PgFromExpression[169∈10] ➊"}}:::plan + Object168 & PgFromExpression169 & ApplyInput174 --> PgSelect165 + Access166{{"Access[166∈10] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access167{{"Access[167∈10] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access166 & Access167 --> Object168 + PgSelect177[["PgSelect[177∈10] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression179{{"PgFromExpression[179∈10] ➊"}}:::plan + Object168 & PgFromExpression179 --> PgSelect177 + __Value2 --> Access166 + __Value2 --> Access167 + Constant309 --> PgFromExpression169 + First170{{"First[170∈10] ➊"}}:::plan + PgSelectRows171[["PgSelectRows[171∈10] ➊"]]:::plan + PgSelectRows171 --> First170 + PgSelect165 --> PgSelectRows171 + PgSelectSingle172{{"PgSelectSingle[172∈10] ➊
ᐸmutation_out_out_compound_typeᐳ"}}:::plan + First170 --> PgSelectSingle172 + Object173{{"Object[173∈10] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle172 --> Object173 + PgClassExpression175{{"PgClassExpression[175∈10] ➊
ᐸ__mutation...ype__.”o1”ᐳ"}}:::plan + PgSelectSingle172 --> PgClassExpression175 + PgClassExpression176{{"PgClassExpression[176∈10] ➊
ᐸ__mutation...ype__.”o2”ᐳ"}}:::plan + PgSelectSingle172 --> PgClassExpression176 + PgClassExpression176 --> PgFromExpression179 + First180{{"First[180∈10] ➊"}}:::plan + PgSelectRows181[["PgSelectRows[181∈10] ➊"]]:::plan + PgSelectRows181 --> First180 + PgSelect177 --> PgSelectRows181 + PgSelectSingle182{{"PgSelectSingle[182∈10] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First180 --> PgSelectSingle182 + PgClassExpression183{{"PgClassExpression[183∈10] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression183 + PgClassExpression184{{"PgClassExpression[184∈10] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression184 + PgClassExpression185{{"PgClassExpression[185∈10] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression185 + PgSelect188[["PgSelect[188∈11] ➊
ᐸmutation_out_out_setof(mutation)ᐳ"]]:::sideeffectplan + Object191{{"Object[191∈11] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object191 & ApplyInput193 --> PgSelect188 + Access189{{"Access[189∈11] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access190{{"Access[190∈11] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access189 & Access190 --> Object191 + __Value2 --> Access189 + __Value2 --> Access190 + Object192{{"Object[192∈11] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect188 --> Object192 + PgSelectRows194[["PgSelectRows[194∈11] ➊"]]:::plan + PgSelect188 --> PgSelectRows194 + __Item195[/"__Item[195∈12]
ᐸ194ᐳ"\]:::itemplan + PgSelectRows194 ==> __Item195 + PgSelectSingle196{{"PgSelectSingle[196∈12]
ᐸmutation_out_out_setofᐳ"}}:::plan + __Item195 --> PgSelectSingle196 + PgClassExpression197{{"PgClassExpression[197∈12]
ᐸ__mutation...tof__.”o1”ᐳ"}}:::plan + PgSelectSingle196 --> PgClassExpression197 + PgClassExpression198{{"PgClassExpression[198∈12]
ᐸ__mutation...tof__.”o2”ᐳ"}}:::plan + PgSelectSingle196 --> PgClassExpression198 + PgSelect201[["PgSelect[201∈13] ➊
ᐸmutation_out_out_unnamed(mutation)ᐳ"]]:::sideeffectplan + Object204{{"Object[204∈13] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object204 & ApplyInput209 --> PgSelect201 + Access202{{"Access[202∈13] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access203{{"Access[203∈13] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access202 & Access203 --> Object204 + __Value2 --> Access202 + __Value2 --> Access203 + First205{{"First[205∈13] ➊"}}:::plan + PgSelectRows206[["PgSelectRows[206∈13] ➊"]]:::plan + PgSelectRows206 --> First205 + PgSelect201 --> PgSelectRows206 + PgSelectSingle207{{"PgSelectSingle[207∈13] ➊
ᐸmutation_out_out_unnamedᐳ"}}:::plan + First205 --> PgSelectSingle207 + Object208{{"Object[208∈13] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle207 --> Object208 + PgClassExpression210{{"PgClassExpression[210∈13] ➊
ᐸ__mutation....”column1”ᐳ"}}:::plan + PgSelectSingle207 --> PgClassExpression210 + PgClassExpression211{{"PgClassExpression[211∈13] ➊
ᐸ__mutation....”column2”ᐳ"}}:::plan + PgSelectSingle207 --> PgClassExpression211 + PgSelect214[["PgSelect[214∈14] ➊
ᐸmutation_out_setof(mutation)ᐳ"]]:::sideeffectplan + Object217{{"Object[217∈14] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object217 & ApplyInput219 --> PgSelect214 + Access215{{"Access[215∈14] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access216{{"Access[216∈14] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access215 & Access216 --> Object217 - PgSelect214[["PgSelect[214∈39] ➊
ᐸmutation_out_table(mutation)ᐳ"]]:::sideeffectplan - Object217 --> PgSelect214 __Value2 --> Access215 __Value2 --> Access216 - First218{{"First[218∈39] ➊"}}:::plan - PgSelectRows219[["PgSelectRows[219∈39] ➊"]]:::plan - PgSelectRows219 --> First218 - PgSelect214 --> PgSelectRows219 - PgSelectSingle220{{"PgSelectSingle[220∈39] ➊
ᐸmutation_out_tableᐳ"}}:::plan - First218 --> PgSelectSingle220 - Object221{{"Object[221∈39] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle220 --> Object221 - List224{{"List[224∈41] ➊
ᐸ72,223ᐳ"}}:::plan - PgClassExpression223{{"PgClassExpression[223∈41] ➊
ᐸ__mutation...ble__.”id”ᐳ"}}:::plan - Constant72 & PgClassExpression223 --> List224 - PgSelectSingle220 --> PgClassExpression223 - Lambda225{{"Lambda[225∈41] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List224 --> Lambda225 - Object231{{"Object[231∈42] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access229{{"Access[229∈42] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access230{{"Access[230∈42] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access229 & Access230 --> Object231 - PgSelect228[["PgSelect[228∈42] ➊
ᐸmutation_out_table_setof(mutation)ᐳ"]]:::sideeffectplan - Object231 --> PgSelect228 - __Value2 --> Access229 - __Value2 --> Access230 - Object232{{"Object[232∈42] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect228 --> Object232 - PgSelectRows233[["PgSelectRows[233∈43] ➊"]]:::plan - PgSelect228 --> PgSelectRows233 - __Item234[/"__Item[234∈44]
ᐸ233ᐳ"\]:::itemplan - PgSelectRows233 ==> __Item234 - PgSelectSingle235{{"PgSelectSingle[235∈44]
ᐸmutation_out_table_setofᐳ"}}:::plan - __Item234 --> PgSelectSingle235 - List238{{"List[238∈45]
ᐸ72,237ᐳ"}}:::plan - PgClassExpression237{{"PgClassExpression[237∈45]
ᐸ__mutation...tof__.”id”ᐳ"}}:::plan - Constant72 & PgClassExpression237 --> List238 - PgSelectSingle235 --> PgClassExpression237 - Lambda239{{"Lambda[239∈45]
ᐸbase64JSONEncodeᐳ"}}:::plan - List238 --> Lambda239 - Object245{{"Object[245∈46] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access243{{"Access[243∈46] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access244{{"Access[244∈46] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access243 & Access244 --> Object245 - PgSelect242[["PgSelect[242∈46] ➊
ᐸmutation_out_unnamed(mutation)ᐳ"]]:::sideeffectplan - Object245 --> PgSelect242 + Object218{{"Object[218∈14] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect214 --> Object218 + PgSelectRows220[["PgSelectRows[220∈14] ➊"]]:::plan + PgSelect214 --> PgSelectRows220 + __Item221[/"__Item[221∈15]
ᐸ220ᐳ"\]:::itemplan + PgSelectRows220 ==> __Item221 + PgSelectSingle222{{"PgSelectSingle[222∈15]
ᐸmutation_out_setofᐳ"}}:::plan + __Item221 --> PgSelectSingle222 + PgClassExpression223{{"PgClassExpression[223∈15]
ᐸ__mutation..._setof__.vᐳ"}}:::plan + PgSelectSingle222 --> PgClassExpression223 + PgSelect226[["PgSelect[226∈16] ➊
ᐸmutation_out_table(mutation)ᐳ"]]:::sideeffectplan + Object229{{"Object[229∈16] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object229 & ApplyInput234 --> PgSelect226 + Access227{{"Access[227∈16] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access228{{"Access[228∈16] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access227 & Access228 --> Object229 + List237{{"List[237∈16] ➊
ᐸ79,236ᐳ"}}:::plan + PgClassExpression236{{"PgClassExpression[236∈16] ➊
ᐸ__mutation...ble__.”id”ᐳ"}}:::plan + Constant79 & PgClassExpression236 --> List237 + __Value2 --> Access227 + __Value2 --> Access228 + First230{{"First[230∈16] ➊"}}:::plan + PgSelectRows231[["PgSelectRows[231∈16] ➊"]]:::plan + PgSelectRows231 --> First230 + PgSelect226 --> PgSelectRows231 + PgSelectSingle232{{"PgSelectSingle[232∈16] ➊
ᐸmutation_out_tableᐳ"}}:::plan + First230 --> PgSelectSingle232 + Object233{{"Object[233∈16] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle232 --> Object233 + PgSelectSingle232 --> PgClassExpression236 + Lambda238{{"Lambda[238∈16] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List237 --> Lambda238 + PgSelect241[["PgSelect[241∈17] ➊
ᐸmutation_out_table_setof(mutation)ᐳ"]]:::sideeffectplan + Object244{{"Object[244∈17] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object244 & ApplyInput246 --> PgSelect241 + Access242{{"Access[242∈17] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access243{{"Access[243∈17] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access242 & Access243 --> Object244 + __Value2 --> Access242 __Value2 --> Access243 - __Value2 --> Access244 - First246{{"First[246∈46] ➊"}}:::plan - PgSelectRows247[["PgSelectRows[247∈46] ➊"]]:::plan - PgSelectRows247 --> First246 - PgSelect242 --> PgSelectRows247 - PgSelectSingle248{{"PgSelectSingle[248∈46] ➊
ᐸmutation_out_unnamedᐳ"}}:::plan - First246 --> PgSelectSingle248 - PgClassExpression249{{"PgClassExpression[249∈46] ➊
ᐸ__mutation...nnamed__.vᐳ"}}:::plan - PgSelectSingle248 --> PgClassExpression249 - Object250{{"Object[250∈46] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression249 --> Object250 - Object256{{"Object[256∈48] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access254{{"Access[254∈48] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access255{{"Access[255∈48] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access254 & Access255 --> Object256 - PgSelect253[["PgSelect[253∈48] ➊
ᐸmutation_out_unnamed_out_out_unnamed(mutation)ᐳ"]]:::sideeffectplan - Object256 --> PgSelect253 - __Value2 --> Access254 - __Value2 --> Access255 - First257{{"First[257∈48] ➊"}}:::plan - PgSelectRows258[["PgSelectRows[258∈48] ➊"]]:::plan - PgSelectRows258 --> First257 - PgSelect253 --> PgSelectRows258 - PgSelectSingle259{{"PgSelectSingle[259∈48] ➊
ᐸmutation_out_unnamed_out_out_unnamedᐳ"}}:::plan - First257 --> PgSelectSingle259 - Object260{{"Object[260∈48] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle259 --> Object260 - PgClassExpression261{{"PgClassExpression[261∈50] ➊
ᐸ__mutation....”column1”ᐳ"}}:::plan - PgSelectSingle259 --> PgClassExpression261 - PgClassExpression262{{"PgClassExpression[262∈50] ➊
ᐸ__mutation....”column3”ᐳ"}}:::plan - PgSelectSingle259 --> PgClassExpression262 - PgClassExpression263{{"PgClassExpression[263∈50] ➊
ᐸ__mutation...med__.”o2”ᐳ"}}:::plan - PgSelectSingle259 --> PgClassExpression263 - PgSelect267[["PgSelect[267∈51] ➊
ᐸmutation_returns_table_multi_col(mutation)ᐳ"]]:::sideeffectplan - Object270{{"Object[270∈51] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object270 & Constant293 --> PgSelect267 - Access268{{"Access[268∈51] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access269{{"Access[269∈51] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access268 & Access269 --> Object270 - __Value2 --> Access268 + Object245{{"Object[245∈17] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect241 --> Object245 + PgSelectRows247[["PgSelectRows[247∈17] ➊"]]:::plan + PgSelect241 --> PgSelectRows247 + List252{{"List[252∈18]
ᐸ79,251ᐳ"}}:::plan + PgClassExpression251{{"PgClassExpression[251∈18]
ᐸ__mutation...tof__.”id”ᐳ"}}:::plan + Constant79 & PgClassExpression251 --> List252 + __Item248[/"__Item[248∈18]
ᐸ247ᐳ"\]:::itemplan + PgSelectRows247 ==> __Item248 + PgSelectSingle249{{"PgSelectSingle[249∈18]
ᐸmutation_out_table_setofᐳ"}}:::plan + __Item248 --> PgSelectSingle249 + PgSelectSingle249 --> PgClassExpression251 + Lambda253{{"Lambda[253∈18]
ᐸbase64JSONEncodeᐳ"}}:::plan + List252 --> Lambda253 + PgSelect256[["PgSelect[256∈19] ➊
ᐸmutation_out_unnamed(mutation)ᐳ"]]:::sideeffectplan + Object259{{"Object[259∈19] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object259 & ApplyInput265 --> PgSelect256 + Access257{{"Access[257∈19] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access258{{"Access[258∈19] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access257 & Access258 --> Object259 + __Value2 --> Access257 + __Value2 --> Access258 + First260{{"First[260∈19] ➊"}}:::plan + PgSelectRows261[["PgSelectRows[261∈19] ➊"]]:::plan + PgSelectRows261 --> First260 + PgSelect256 --> PgSelectRows261 + PgSelectSingle262{{"PgSelectSingle[262∈19] ➊
ᐸmutation_out_unnamedᐳ"}}:::plan + First260 --> PgSelectSingle262 + PgClassExpression263{{"PgClassExpression[263∈19] ➊
ᐸ__mutation...nnamed__.vᐳ"}}:::plan + PgSelectSingle262 --> PgClassExpression263 + Object264{{"Object[264∈19] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression263 --> Object264 + PgSelect268[["PgSelect[268∈20] ➊
ᐸmutation_out_unnamed_out_out_unnamed(mutation)ᐳ"]]:::sideeffectplan + Object271{{"Object[271∈20] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object271 & ApplyInput276 --> PgSelect268 + Access269{{"Access[269∈20] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access270{{"Access[270∈20] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access269 & Access270 --> Object271 __Value2 --> Access269 - Object271{{"Object[271∈51] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect267 --> Object271 - PgSelectRows272[["PgSelectRows[272∈52] ➊"]]:::plan - PgSelect267 --> PgSelectRows272 - __Item273[/"__Item[273∈53]
ᐸ272ᐳ"\]:::itemplan - PgSelectRows272 ==> __Item273 - PgSelectSingle274{{"PgSelectSingle[274∈53]
ᐸmutation_returns_table_multi_colᐳ"}}:::plan - __Item273 --> PgSelectSingle274 - PgClassExpression275{{"PgClassExpression[275∈54]
ᐸ__mutation...l__.”col1”ᐳ"}}:::plan - PgSelectSingle274 --> PgClassExpression275 - PgClassExpression276{{"PgClassExpression[276∈54]
ᐸ__mutation...l__.”col2”ᐳ"}}:::plan - PgSelectSingle274 --> PgClassExpression276 - PgSelect280[["PgSelect[280∈55] ➊
ᐸmutation_returns_table_one_col(mutation)ᐳ"]]:::sideeffectplan - Object283{{"Object[283∈55] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object283 & Constant293 --> PgSelect280 - Access281{{"Access[281∈55] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access282{{"Access[282∈55] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access281 & Access282 --> Object283 - __Value2 --> Access281 - __Value2 --> Access282 - Object284{{"Object[284∈55] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect280 --> Object284 - PgSelectRows285[["PgSelectRows[285∈56] ➊"]]:::plan - PgSelect280 --> PgSelectRows285 - __Item286[/"__Item[286∈57]
ᐸ285ᐳ"\]:::itemplan - PgSelectRows285 ==> __Item286 - PgSelectSingle287{{"PgSelectSingle[287∈57]
ᐸmutation_returns_table_one_colᐳ"}}:::plan - __Item286 --> PgSelectSingle287 - PgClassExpression288{{"PgClassExpression[288∈57]
ᐸ__mutation...ne_col__.vᐳ"}}:::plan - PgSelectSingle287 --> PgClassExpression288 + __Value2 --> Access270 + First272{{"First[272∈20] ➊"}}:::plan + PgSelectRows273[["PgSelectRows[273∈20] ➊"]]:::plan + PgSelectRows273 --> First272 + PgSelect268 --> PgSelectRows273 + PgSelectSingle274{{"PgSelectSingle[274∈20] ➊
ᐸmutation_out_unnamed_out_out_unnamedᐳ"}}:::plan + First272 --> PgSelectSingle274 + Object275{{"Object[275∈20] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle274 --> Object275 + PgClassExpression277{{"PgClassExpression[277∈20] ➊
ᐸ__mutation....”column1”ᐳ"}}:::plan + PgSelectSingle274 --> PgClassExpression277 + PgClassExpression278{{"PgClassExpression[278∈20] ➊
ᐸ__mutation....”column3”ᐳ"}}:::plan + PgSelectSingle274 --> PgClassExpression278 + PgClassExpression279{{"PgClassExpression[279∈20] ➊
ᐸ__mutation...med__.”o2”ᐳ"}}:::plan + PgSelectSingle274 --> PgClassExpression279 + PgSelect283[["PgSelect[283∈21] ➊
ᐸmutation_returns_table_multi_col(mutation)ᐳ"]]:::sideeffectplan + Object286{{"Object[286∈21] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression287{{"PgFromExpression[287∈21] ➊"}}:::plan + Object286 & PgFromExpression287 & ApplyInput289 --> PgSelect283 + Access284{{"Access[284∈21] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access285{{"Access[285∈21] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access284 & Access285 --> Object286 + __Value2 --> Access284 + __Value2 --> Access285 + Constant313 --> PgFromExpression287 + Object288{{"Object[288∈21] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect283 --> Object288 + PgSelectRows290[["PgSelectRows[290∈21] ➊"]]:::plan + PgSelect283 --> PgSelectRows290 + __Item291[/"__Item[291∈22]
ᐸ290ᐳ"\]:::itemplan + PgSelectRows290 ==> __Item291 + PgSelectSingle292{{"PgSelectSingle[292∈22]
ᐸmutation_returns_table_multi_colᐳ"}}:::plan + __Item291 --> PgSelectSingle292 + PgClassExpression293{{"PgClassExpression[293∈22]
ᐸ__mutation...l__.”col1”ᐳ"}}:::plan + PgSelectSingle292 --> PgClassExpression293 + PgClassExpression294{{"PgClassExpression[294∈22]
ᐸ__mutation...l__.”col2”ᐳ"}}:::plan + PgSelectSingle292 --> PgClassExpression294 + PgSelect298[["PgSelect[298∈23] ➊
ᐸmutation_returns_table_one_col(mutation)ᐳ"]]:::sideeffectplan + Object301{{"Object[301∈23] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression302{{"PgFromExpression[302∈23] ➊"}}:::plan + Object301 & PgFromExpression302 & ApplyInput304 --> PgSelect298 + Access299{{"Access[299∈23] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access300{{"Access[300∈23] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access299 & Access300 --> Object301 + __Value2 --> Access299 + __Value2 --> Access300 + Constant313 --> PgFromExpression302 + Object303{{"Object[303∈23] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect298 --> Object303 + PgSelectRows305[["PgSelectRows[305∈23] ➊"]]:::plan + PgSelect298 --> PgSelectRows305 + __Item306[/"__Item[306∈24]
ᐸ305ᐳ"\]:::itemplan + PgSelectRows305 ==> __Item306 + PgSelectSingle307{{"PgSelectSingle[307∈24]
ᐸmutation_returns_table_one_colᐳ"}}:::plan + __Item306 --> PgSelectSingle307 + PgClassExpression308{{"PgClassExpression[308∈24]
ᐸ__mutation...ne_col__.vᐳ"}}:::plan + PgSelectSingle307 --> PgClassExpression308 %% define steps + %% implicit side effects + PgSelect51 -.-o Connection88 + subgraph "Buckets for mutations/v4/mutation-return-types" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Constant72,Constant89,Constant289,Constant290,Constant291,Constant292,Constant293 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 13, 289, 290

1: PgSelect[10]
2: PgSelectRows[15]
ᐳ: 14, 16, 17, 18"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Access11,Access12,Object13,PgFromExpression14,ApplyInput20,__InputObject21,ApplyInput34,__InputObject35,ApplyInput46,__InputObject47,ApplyInput60,Constant79,Constant94,__InputObject98,ApplyInput107,__InputObject150,ApplyInput159,__InputObject162,ApplyInput174,__InputObject186,ApplyInput193,__InputObject199,ApplyInput209,__InputObject212,ApplyInput219,__InputObject224,ApplyInput234,__InputObject239,ApplyInput246,__InputObject254,ApplyInput265,__InputObject266,ApplyInput276,__InputObject280,ApplyInput289,__InputObject295,ApplyInput304,Constant309,Constant310,Constant311,Constant312,Constant313 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 13, 14, 20

1: PgSelect[10]
2: PgSelectRows[16]
ᐳ: 15, 17, 18, 19"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect10,First14,PgSelectRows15,PgSelectSingle16,PgClassExpression17,Object18 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 18, 17

ROOT Object{1}ᐸ{result}ᐳ[18]"):::bucket + class Bucket1,PgSelect10,First15,PgSelectRows16,PgSelectSingle17,PgClassExpression18,Object19 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 34, 2, 309

1: Access[25]
2: Access[26]
3: Object[27]
4: PgFromExpression[28]
5: PgSelect[24]
6: PgSelectRows[30]
ᐳ: 29, 31, 32, 33"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (mutationField)
Deps: 289, 2

1: Access[23]
2: Access[24]
3: Object[25]
4: PgSelect[22]
5: PgSelectRows[27]
ᐳ: 26, 28, 29, 30"):::bucket + class Bucket2,PgSelect24,Access25,Access26,Object27,PgFromExpression28,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,Object33 bucket2 + Bucket3("Bucket 3 (mutationField)
Deps: 46, 2

1: Access[38]
2: Access[39]
3: Object[40]
4: PgSelect[37]
5: PgSelectRows[42]
ᐳ: 41, 43, 44, 45"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgSelect22,Access23,Access24,Object25,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression29,Object30 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30, 29

ROOT Object{3}ᐸ{result}ᐳ[30]"):::bucket + class Bucket3,PgSelect37,Access38,Access39,Object40,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,Object45 bucket3 + Bucket4("Bucket 4 (mutationField)
Deps: 60, 2, 311, 312, 79, 7, 94

1: Access[52]
2: Access[53]
3: Object[54]
4: PgFromExpression[55]
5: PgSelect[51]
6: PgSelectRows[57]
ᐳ: 88, 56, 58, 59, 61, 62, 65, 72, 75
7: PgSelect[63], PgSelect[73]
8: PgSelectRows[67], PgSelectRows[77]
ᐳ: 66, 68, 69, 70, 71, 76, 78, 80, 81, 82, 83
9: PgSelect[90]
10: PgSelectRows[91]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4 bucket4 - Bucket5("Bucket 5 (mutationField)
Deps: 2

1: Access[34]
2: Access[35]
3: Object[36]
4: PgSelect[33]
5: PgSelectRows[38]
ᐳ: 37, 39, 40, 41"):::bucket + class Bucket4,PgSelect51,Access52,Access53,Object54,PgFromExpression55,First56,PgSelectRows57,PgSelectSingle58,Object59,PgClassExpression61,PgClassExpression62,PgSelect63,PgFromExpression65,First66,PgSelectRows67,PgSelectSingle68,PgClassExpression69,PgClassExpression70,PgClassExpression71,PgClassExpression72,PgSelect73,PgFromExpression75,First76,PgSelectRows77,PgSelectSingle78,PgClassExpression80,List81,Lambda82,PgClassExpression83,Connection88,PgSelect90,PgSelectRows91 bucket4 + Bucket5("Bucket 5 (listItem)
Deps: 94

ROOT __Item{5}ᐸ91ᐳ[92]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect33,Access34,Access35,Object36,First37,PgSelectRows38,PgSelectSingle39,PgClassExpression40,Object41 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 41, 40

ROOT Object{5}ᐸ{result}ᐳ[41]"):::bucket + class Bucket5,__Item92,PgSelectSingle93,PgClassExpression95,List96,Lambda97 bucket5 + Bucket6("Bucket 6 (mutationField)
Deps: 107, 2, 311, 312, 79, 7, 94

1: Access[102]
2: Access[103]
3: Object[104]
4: PgFromExpression[105]
5: PgSelect[101]
6: PgSelectRows[108]
ᐳ: Object[106]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6 bucket6 - Bucket7("Bucket 7 (mutationField)
Deps: 291, 292, 2, 72, 89

1: Access[47]
2: Access[48]
3: Object[49]
4: PgSelect[46]
5: PgSelectRows[51]
ᐳ: 50, 52, 53"):::bucket + class Bucket6,PgSelect101,Access102,Access103,Object104,PgFromExpression105,Object106,PgSelectRows108 bucket6 + Bucket7("Bucket 7 (listItem)
Deps: 104, 79, 7, 94

ROOT __Item{7}ᐸ108ᐳ[109]
1:
ᐳ: 110, 117, 127, 140, 111, 112, 124
2: PgSelect[113], PgSelect[125]
3: PgSelectRows[119], PgSelectRows[129]
ᐳ: 118, 120, 121, 122, 123, 128, 130, 132, 133, 134, 135
4: PgSelect[142]
5: PgSelectRows[143]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgSelect46,Access47,Access48,Object49,First50,PgSelectRows51,PgSelectSingle52,Object53 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 53, 52, 49, 72, 89

ROOT Object{7}ᐸ{result}ᐳ[53]"):::bucket + class Bucket7,__Item109,PgSelectSingle110,PgClassExpression111,PgClassExpression112,PgSelect113,PgFromExpression117,First118,PgSelectRows119,PgSelectSingle120,PgClassExpression121,PgClassExpression122,PgClassExpression123,PgClassExpression124,PgSelect125,PgFromExpression127,First128,PgSelectRows129,PgSelectSingle130,PgClassExpression132,List133,Lambda134,PgClassExpression135,Connection140,PgSelect142,PgSelectRows143 bucket7 + Bucket8("Bucket 8 (listItem)
Deps: 94

ROOT __Item{8}ᐸ143ᐳ[144]"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,Connection84 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 52, 49, 72, 84, 89

ROOT PgSelectSingle{7}ᐸmutation_out_complexᐳ[52]
1:
ᐳ: 54, 55, 66
2: PgSelect[56], PgSelect[67]
3: PgSelectRows[61], PgSelectRows[70]
ᐳ: 60, 62, 69, 71"):::bucket + class Bucket8,__Item144,PgSelectSingle145,PgClassExpression147,List148,Lambda149 bucket8 + Bucket9("Bucket 9 (mutationField)
Deps: 159, 2

1: Access[152]
2: Access[153]
3: Object[154]
4: PgSelect[151]
5: PgSelectRows[156]
ᐳ: 155, 157, 158, 160, 161"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression54,PgClassExpression55,PgSelect56,First60,PgSelectRows61,PgSelectSingle62,PgClassExpression66,PgSelect67,First69,PgSelectRows70,PgSelectSingle71 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 62

ROOT PgSelectSingle{9}ᐸfrmcdc_compoundTypeᐳ[62]"):::bucket + class Bucket9,PgSelect151,Access152,Access153,Object154,First155,PgSelectRows156,PgSelectSingle157,Object158,PgClassExpression160,PgClassExpression161 bucket9 + Bucket10("Bucket 10 (mutationField)
Deps: 174, 2, 309

1: Access[166]
2: Access[167]
3: Object[168]
4: PgFromExpression[169]
5: PgSelect[165]
6: PgSelectRows[171]
ᐳ: 170, 172, 173, 175, 176, 179
7: PgSelect[177]
8: PgSelectRows[181]
ᐳ: 180, 182, 183, 184, 185"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression63,PgClassExpression64,PgClassExpression65 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 71, 72, 49, 84, 89

ROOT PgSelectSingle{9}ᐸpersonᐳ[71]
1:
ᐳ: 73, 76, 74, 75
2: PgSelect[85]
3: PgSelectRows[86]"):::bucket + class Bucket10,PgSelect165,Access166,Access167,Object168,PgFromExpression169,First170,PgSelectRows171,PgSelectSingle172,Object173,PgClassExpression175,PgClassExpression176,PgSelect177,PgFromExpression179,First180,PgSelectRows181,PgSelectSingle182,PgClassExpression183,PgClassExpression184,PgClassExpression185 bucket10 + Bucket11("Bucket 11 (mutationField)
Deps: 193, 2

1: Access[189]
2: Access[190]
3: Object[191]
4: PgSelect[188]
5: PgSelectRows[194]
ᐳ: Object[192]"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression73,List74,Lambda75,PgClassExpression76,PgSelect85,PgSelectRows86 bucket11 - Bucket12("Bucket 12 (listItem)
Deps: 89

ROOT __Item{12}ᐸ86ᐳ[87]"):::bucket + class Bucket11,PgSelect188,Access189,Access190,Object191,Object192,PgSelectRows194 bucket11 + Bucket12("Bucket 12 (listItem)

ROOT __Item{12}ᐸ194ᐳ[195]"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12,__Item87,PgSelectSingle88 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 88, 89

ROOT PgSelectSingle{12}ᐸpostᐳ[88]"):::bucket + class Bucket12,__Item195,PgSelectSingle196,PgClassExpression197,PgClassExpression198 bucket12 + Bucket13("Bucket 13 (mutationField)
Deps: 209, 2

1: Access[202]
2: Access[203]
3: Object[204]
4: PgSelect[201]
5: PgSelectRows[206]
ᐳ: 205, 207, 208, 210, 211"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13,PgClassExpression90,List91,Lambda92 bucket13 - Bucket14("Bucket 14 (mutationField)
Deps: 291, 292, 2, 72, 89

1: Access[97]
2: Access[98]
3: Object[99]
4: PgSelect[96]
5:
ᐳ: Object[100]"):::bucket + class Bucket13,PgSelect201,Access202,Access203,Object204,First205,PgSelectRows206,PgSelectSingle207,Object208,PgClassExpression210,PgClassExpression211 bucket13 + Bucket14("Bucket 14 (mutationField)
Deps: 219, 2

1: Access[215]
2: Access[216]
3: Object[217]
4: PgSelect[214]
5: PgSelectRows[220]
ᐳ: Object[218]"):::bucket classDef bucket14 stroke:#a52a2a - class Bucket14,PgSelect96,Access97,Access98,Object99,Object100 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 96, 100, 99, 72, 89

ROOT Object{14}ᐸ{result}ᐳ[100]"):::bucket + class Bucket14,PgSelect214,Access215,Access216,Object217,Object218,PgSelectRows220 bucket14 + Bucket15("Bucket 15 (listItem)

ROOT __Item{15}ᐸ220ᐳ[221]"):::bucket classDef bucket15 stroke:#ff00ff - class Bucket15,PgSelectRows101,Connection134 bucket15 - Bucket16("Bucket 16 (listItem)
Deps: 99, 72, 134, 89

ROOT __Item{16}ᐸ101ᐳ[102]"):::bucket + class Bucket15,__Item221,PgSelectSingle222,PgClassExpression223 bucket15 + Bucket16("Bucket 16 (mutationField)
Deps: 234, 2, 79

1: Access[227]
2: Access[228]
3: Object[229]
4: PgSelect[226]
5: PgSelectRows[231]
ᐳ: 230, 232, 233, 236, 237, 238"):::bucket classDef bucket16 stroke:#f5deb3 - class Bucket16,__Item102,PgSelectSingle103 bucket16 - Bucket17("Bucket 17 (nullableBoundary)
Deps: 103, 99, 72, 134, 89

ROOT PgSelectSingle{16}ᐸmutation_out_complex_setofᐳ[103]
1:
ᐳ: 104, 105, 116
2: PgSelect[106], PgSelect[117]
3: PgSelectRows[111], PgSelectRows[120]
ᐳ: 110, 112, 119, 121"):::bucket + class Bucket16,PgSelect226,Access227,Access228,Object229,First230,PgSelectRows231,PgSelectSingle232,Object233,PgClassExpression236,List237,Lambda238 bucket16 + Bucket17("Bucket 17 (mutationField)
Deps: 246, 2, 79

1: Access[242]
2: Access[243]
3: Object[244]
4: PgSelect[241]
5: PgSelectRows[247]
ᐳ: Object[245]"):::bucket classDef bucket17 stroke:#696969 - class Bucket17,PgClassExpression104,PgClassExpression105,PgSelect106,First110,PgSelectRows111,PgSelectSingle112,PgClassExpression116,PgSelect117,First119,PgSelectRows120,PgSelectSingle121 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 112

ROOT PgSelectSingle{17}ᐸfrmcdc_compoundTypeᐳ[112]"):::bucket + class Bucket17,PgSelect241,Access242,Access243,Object244,Object245,PgSelectRows247 bucket17 + Bucket18("Bucket 18 (listItem)
Deps: 79

ROOT __Item{18}ᐸ247ᐳ[248]"):::bucket classDef bucket18 stroke:#00bfff - class Bucket18,PgClassExpression113,PgClassExpression114,PgClassExpression115 bucket18 - Bucket19("Bucket 19 (nullableBoundary)
Deps: 121, 72, 99, 134, 89

ROOT PgSelectSingle{17}ᐸpersonᐳ[121]
1:
ᐳ: 123, 126, 124, 125
2: PgSelect[135]
3: PgSelectRows[136]"):::bucket + class Bucket18,__Item248,PgSelectSingle249,PgClassExpression251,List252,Lambda253 bucket18 + Bucket19("Bucket 19 (mutationField)
Deps: 265, 2

1: Access[257]
2: Access[258]
3: Object[259]
4: PgSelect[256]
5: PgSelectRows[261]
ᐳ: 260, 262, 263, 264"):::bucket classDef bucket19 stroke:#7f007f - class Bucket19,PgClassExpression123,List124,Lambda125,PgClassExpression126,PgSelect135,PgSelectRows136 bucket19 - Bucket20("Bucket 20 (listItem)
Deps: 89

ROOT __Item{20}ᐸ136ᐳ[137]"):::bucket + class Bucket19,PgSelect256,Access257,Access258,Object259,First260,PgSelectRows261,PgSelectSingle262,PgClassExpression263,Object264 bucket19 + Bucket20("Bucket 20 (mutationField)
Deps: 276, 2

1: Access[269]
2: Access[270]
3: Object[271]
4: PgSelect[268]
5: PgSelectRows[273]
ᐳ: 272, 274, 275, 277, 278, 279"):::bucket classDef bucket20 stroke:#ffa500 - class Bucket20,__Item137,PgSelectSingle138 bucket20 - Bucket21("Bucket 21 (nullableBoundary)
Deps: 138, 89

ROOT PgSelectSingle{20}ᐸpostᐳ[138]"):::bucket + class Bucket20,PgSelect268,Access269,Access270,Object271,First272,PgSelectRows273,PgSelectSingle274,Object275,PgClassExpression277,PgClassExpression278,PgClassExpression279 bucket20 + Bucket21("Bucket 21 (mutationField)
Deps: 289, 2, 313

1: Access[284]
2: Access[285]
3: Object[286]
4: PgFromExpression[287]
5: PgSelect[283]
6: PgSelectRows[290]
ᐳ: Object[288]"):::bucket classDef bucket21 stroke:#0000ff - class Bucket21,PgClassExpression140,List141,Lambda142 bucket21 - Bucket22("Bucket 22 (mutationField)
Deps: 2

1: Access[145]
2: Access[146]
3: Object[147]
4: PgSelect[144]
5: PgSelectRows[149]
ᐳ: 148, 150, 151"):::bucket + class Bucket21,PgSelect283,Access284,Access285,Object286,PgFromExpression287,Object288,PgSelectRows290 bucket21 + Bucket22("Bucket 22 (listItem)

ROOT __Item{22}ᐸ290ᐳ[291]"):::bucket classDef bucket22 stroke:#7fff00 - class Bucket22,PgSelect144,Access145,Access146,Object147,First148,PgSelectRows149,PgSelectSingle150,Object151 bucket22 - Bucket23("Bucket 23 (nullableBoundary)
Deps: 151, 150

ROOT Object{22}ᐸ{result}ᐳ[151]"):::bucket + class Bucket22,__Item291,PgSelectSingle292,PgClassExpression293,PgClassExpression294 bucket22 + Bucket23("Bucket 23 (mutationField)
Deps: 304, 2, 313

1: Access[299]
2: Access[300]
3: Object[301]
4: PgFromExpression[302]
5: PgSelect[298]
6: PgSelectRows[305]
ᐳ: Object[303]"):::bucket classDef bucket23 stroke:#ff1493 - class Bucket23 bucket23 - Bucket24("Bucket 24 (nullableBoundary)
Deps: 150

ROOT PgSelectSingle{22}ᐸmutation_out_outᐳ[150]"):::bucket + class Bucket23,PgSelect298,Access299,Access300,Object301,PgFromExpression302,Object303,PgSelectRows305 bucket23 + Bucket24("Bucket 24 (listItem)

ROOT __Item{24}ᐸ305ᐳ[306]"):::bucket classDef bucket24 stroke:#808000 - class Bucket24,PgClassExpression152,PgClassExpression153 bucket24 - Bucket25("Bucket 25 (mutationField)
Deps: 289, 2

1: Access[158]
2: Access[159]
3: Object[160]
4: PgSelect[157]
5: PgSelectRows[162]
ᐳ: 161, 163, 164"):::bucket - classDef bucket25 stroke:#dda0dd - class Bucket25,PgSelect157,Access158,Access159,Object160,First161,PgSelectRows162,PgSelectSingle163,Object164 bucket25 - Bucket26("Bucket 26 (nullableBoundary)
Deps: 164, 163, 160

ROOT Object{25}ᐸ{result}ᐳ[164]"):::bucket - classDef bucket26 stroke:#ff0000 - class Bucket26 bucket26 - Bucket27("Bucket 27 (nullableBoundary)
Deps: 163, 160

ROOT PgSelectSingle{25}ᐸmutation_out_out_compound_typeᐳ[163]
1:
ᐳ: 165, 166
2: PgSelect[167]
3: PgSelectRows[172]
ᐳ: First[171], PgSelectSingle[173]"):::bucket - classDef bucket27 stroke:#ffff00 - class Bucket27,PgClassExpression165,PgClassExpression166,PgSelect167,First171,PgSelectRows172,PgSelectSingle173 bucket27 - Bucket28("Bucket 28 (nullableBoundary)
Deps: 173

ROOT PgSelectSingle{27}ᐸfrmcdc_compoundTypeᐳ[173]"):::bucket - classDef bucket28 stroke:#00ffff - class Bucket28,PgClassExpression174,PgClassExpression175,PgClassExpression176 bucket28 - Bucket29("Bucket 29 (mutationField)
Deps: 2

1: Access[180]
2: Access[181]
3: Object[182]
4: PgSelect[179]
5:
ᐳ: Object[183]"):::bucket - classDef bucket29 stroke:#4169e1 - class Bucket29,PgSelect179,Access180,Access181,Object182,Object183 bucket29 - Bucket30("Bucket 30 (nullableBoundary)
Deps: 179, 183

ROOT Object{29}ᐸ{result}ᐳ[183]"):::bucket - classDef bucket30 stroke:#3cb371 - class Bucket30,PgSelectRows184 bucket30 - Bucket31("Bucket 31 (listItem)

ROOT __Item{31}ᐸ184ᐳ[185]"):::bucket - classDef bucket31 stroke:#a52a2a - class Bucket31,__Item185,PgSelectSingle186 bucket31 - Bucket32("Bucket 32 (nullableBoundary)
Deps: 186

ROOT PgSelectSingle{31}ᐸmutation_out_out_setofᐳ[186]"):::bucket - classDef bucket32 stroke:#ff00ff - class Bucket32,PgClassExpression187,PgClassExpression188 bucket32 - Bucket33("Bucket 33 (mutationField)
Deps: 2

1: Access[192]
2: Access[193]
3: Object[194]
4: PgSelect[191]
5: PgSelectRows[196]
ᐳ: 195, 197, 198"):::bucket - classDef bucket33 stroke:#f5deb3 - class Bucket33,PgSelect191,Access192,Access193,Object194,First195,PgSelectRows196,PgSelectSingle197,Object198 bucket33 - Bucket34("Bucket 34 (nullableBoundary)
Deps: 198, 197

ROOT Object{33}ᐸ{result}ᐳ[198]"):::bucket - classDef bucket34 stroke:#696969 - class Bucket34 bucket34 - Bucket35("Bucket 35 (nullableBoundary)
Deps: 197

ROOT PgSelectSingle{33}ᐸmutation_out_out_unnamedᐳ[197]"):::bucket - classDef bucket35 stroke:#00bfff - class Bucket35,PgClassExpression199,PgClassExpression200 bucket35 - Bucket36("Bucket 36 (mutationField)
Deps: 2

1: Access[204]
2: Access[205]
3: Object[206]
4: PgSelect[203]
5:
ᐳ: Object[207]"):::bucket - classDef bucket36 stroke:#7f007f - class Bucket36,PgSelect203,Access204,Access205,Object206,Object207 bucket36 - Bucket37("Bucket 37 (nullableBoundary)
Deps: 203, 207

ROOT Object{36}ᐸ{result}ᐳ[207]"):::bucket - classDef bucket37 stroke:#ffa500 - class Bucket37,PgSelectRows208 bucket37 - Bucket38("Bucket 38 (listItem)

ROOT __Item{38}ᐸ208ᐳ[209]"):::bucket - classDef bucket38 stroke:#0000ff - class Bucket38,__Item209,PgSelectSingle210,PgClassExpression211 bucket38 - Bucket39("Bucket 39 (mutationField)
Deps: 2, 72

1: Access[215]
2: Access[216]
3: Object[217]
4: PgSelect[214]
5: PgSelectRows[219]
ᐳ: 218, 220, 221"):::bucket - classDef bucket39 stroke:#7fff00 - class Bucket39,PgSelect214,Access215,Access216,Object217,First218,PgSelectRows219,PgSelectSingle220,Object221 bucket39 - Bucket40("Bucket 40 (nullableBoundary)
Deps: 221, 220, 72

ROOT Object{39}ᐸ{result}ᐳ[221]"):::bucket - classDef bucket40 stroke:#ff1493 - class Bucket40 bucket40 - Bucket41("Bucket 41 (nullableBoundary)
Deps: 220, 72

ROOT PgSelectSingle{39}ᐸmutation_out_tableᐳ[220]"):::bucket - classDef bucket41 stroke:#808000 - class Bucket41,PgClassExpression223,List224,Lambda225 bucket41 - Bucket42("Bucket 42 (mutationField)
Deps: 2, 72

1: Access[229]
2: Access[230]
3: Object[231]
4: PgSelect[228]
5:
ᐳ: Object[232]"):::bucket - classDef bucket42 stroke:#dda0dd - class Bucket42,PgSelect228,Access229,Access230,Object231,Object232 bucket42 - Bucket43("Bucket 43 (nullableBoundary)
Deps: 228, 232, 72

ROOT Object{42}ᐸ{result}ᐳ[232]"):::bucket - classDef bucket43 stroke:#ff0000 - class Bucket43,PgSelectRows233 bucket43 - Bucket44("Bucket 44 (listItem)
Deps: 72

ROOT __Item{44}ᐸ233ᐳ[234]"):::bucket - classDef bucket44 stroke:#ffff00 - class Bucket44,__Item234,PgSelectSingle235 bucket44 - Bucket45("Bucket 45 (nullableBoundary)
Deps: 235, 72

ROOT PgSelectSingle{44}ᐸmutation_out_table_setofᐳ[235]"):::bucket - classDef bucket45 stroke:#00ffff - class Bucket45,PgClassExpression237,List238,Lambda239 bucket45 - Bucket46("Bucket 46 (mutationField)
Deps: 2

1: Access[243]
2: Access[244]
3: Object[245]
4: PgSelect[242]
5: PgSelectRows[247]
ᐳ: 246, 248, 249, 250"):::bucket - classDef bucket46 stroke:#4169e1 - class Bucket46,PgSelect242,Access243,Access244,Object245,First246,PgSelectRows247,PgSelectSingle248,PgClassExpression249,Object250 bucket46 - Bucket47("Bucket 47 (nullableBoundary)
Deps: 250, 249

ROOT Object{46}ᐸ{result}ᐳ[250]"):::bucket - classDef bucket47 stroke:#3cb371 - class Bucket47 bucket47 - Bucket48("Bucket 48 (mutationField)
Deps: 2

1: Access[254]
2: Access[255]
3: Object[256]
4: PgSelect[253]
5: PgSelectRows[258]
ᐳ: 257, 259, 260"):::bucket - classDef bucket48 stroke:#a52a2a - class Bucket48,PgSelect253,Access254,Access255,Object256,First257,PgSelectRows258,PgSelectSingle259,Object260 bucket48 - Bucket49("Bucket 49 (nullableBoundary)
Deps: 260, 259

ROOT Object{48}ᐸ{result}ᐳ[260]"):::bucket - classDef bucket49 stroke:#ff00ff - class Bucket49 bucket49 - Bucket50("Bucket 50 (nullableBoundary)
Deps: 259

ROOT PgSelectSingle{48}ᐸmutation_out_unnamed_out_out_unnamedᐳ[259]"):::bucket - classDef bucket50 stroke:#f5deb3 - class Bucket50,PgClassExpression261,PgClassExpression262,PgClassExpression263 bucket50 - Bucket51("Bucket 51 (mutationField)
Deps: 293, 2

1: Access[268]
2: Access[269]
3: Object[270]
4: PgSelect[267]
5:
ᐳ: Object[271]"):::bucket - classDef bucket51 stroke:#696969 - class Bucket51,PgSelect267,Access268,Access269,Object270,Object271 bucket51 - Bucket52("Bucket 52 (nullableBoundary)
Deps: 267, 271

ROOT Object{51}ᐸ{result}ᐳ[271]"):::bucket - classDef bucket52 stroke:#00bfff - class Bucket52,PgSelectRows272 bucket52 - Bucket53("Bucket 53 (listItem)

ROOT __Item{53}ᐸ272ᐳ[273]"):::bucket - classDef bucket53 stroke:#7f007f - class Bucket53,__Item273,PgSelectSingle274 bucket53 - Bucket54("Bucket 54 (nullableBoundary)
Deps: 274

ROOT PgSelectSingle{53}ᐸmutation_returns_table_multi_colᐳ[274]"):::bucket - classDef bucket54 stroke:#ffa500 - class Bucket54,PgClassExpression275,PgClassExpression276 bucket54 - Bucket55("Bucket 55 (mutationField)
Deps: 293, 2

1: Access[281]
2: Access[282]
3: Object[283]
4: PgSelect[280]
5:
ᐳ: Object[284]"):::bucket - classDef bucket55 stroke:#0000ff - class Bucket55,PgSelect280,Access281,Access282,Object283,Object284 bucket55 - Bucket56("Bucket 56 (nullableBoundary)
Deps: 280, 284

ROOT Object{55}ᐸ{result}ᐳ[284]"):::bucket - classDef bucket56 stroke:#7fff00 - class Bucket56,PgSelectRows285 bucket56 - Bucket57("Bucket 57 (listItem)

ROOT __Item{57}ᐸ285ᐳ[286]"):::bucket - classDef bucket57 stroke:#ff1493 - class Bucket57,__Item286,PgSelectSingle287,PgClassExpression288 bucket57 - Bucket0 --> Bucket1 & Bucket3 & Bucket5 & Bucket7 & Bucket14 & Bucket22 & Bucket25 & Bucket29 & Bucket33 & Bucket36 & Bucket39 & Bucket42 & Bucket46 & Bucket48 & Bucket51 & Bucket55 - Bucket1 --> Bucket2 - Bucket3 --> Bucket4 - Bucket5 --> Bucket6 + class Bucket24,__Item306,PgSelectSingle307,PgClassExpression308 bucket24 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket6 & Bucket9 & Bucket10 & Bucket11 & Bucket13 & Bucket14 & Bucket16 & Bucket17 & Bucket19 & Bucket20 & Bucket21 & Bucket23 + Bucket4 --> Bucket5 + Bucket6 --> Bucket7 Bucket7 --> Bucket8 - Bucket8 --> Bucket9 - Bucket9 --> Bucket10 & Bucket11 Bucket11 --> Bucket12 - Bucket12 --> Bucket13 Bucket14 --> Bucket15 - Bucket15 --> Bucket16 - Bucket16 --> Bucket17 - Bucket17 --> Bucket18 & Bucket19 - Bucket19 --> Bucket20 - Bucket20 --> Bucket21 - Bucket22 --> Bucket23 + Bucket17 --> Bucket18 + Bucket21 --> Bucket22 Bucket23 --> Bucket24 - Bucket25 --> Bucket26 - Bucket26 --> Bucket27 - Bucket27 --> Bucket28 - Bucket29 --> Bucket30 - Bucket30 --> Bucket31 - Bucket31 --> Bucket32 - Bucket33 --> Bucket34 - Bucket34 --> Bucket35 - Bucket36 --> Bucket37 - Bucket37 --> Bucket38 - Bucket39 --> Bucket40 - Bucket40 --> Bucket41 - Bucket42 --> Bucket43 - Bucket43 --> Bucket44 - Bucket44 --> Bucket45 - Bucket46 --> Bucket47 - Bucket48 --> Bucket49 - Bucket49 --> Bucket50 - Bucket51 --> Bucket52 - Bucket52 --> Bucket53 - Bucket53 --> Bucket54 - Bucket55 --> Bucket56 - Bucket56 --> Bucket57 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-update.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-update.mermaid index 4b94c2a72b..791082a815 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-update.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-update.mermaid @@ -9,866 +9,839 @@ graph TD %% plan dependencies + __InputObject362{{"__InputObject[362∈0] ➊"}}:::plan + Constant526{{"Constant[526∈0] ➊
ᐸ'hello'ᐳ"}}:::plan + Constant538{{"Constant[538∈0] ➊
ᐸ2ᐳ"}}:::plan + __InputObject366{{"__InputObject[366∈0] ➊"}}:::plan + Constant526 & __InputObject366 --> __InputObject362 + Constant538 -- 2 --> __InputObject362 + __InputObject404{{"__InputObject[404∈0] ➊"}}:::plan + Constant530{{"Constant[530∈0] ➊
ᐸ'world'ᐳ"}}:::plan + Constant541{{"Constant[541∈0] ➊
ᐸ4ᐳ"}}:::plan + Constant532{{"Constant[532∈0] ➊
ᐸ3ᐳ"}}:::plan + __InputObject408{{"__InputObject[408∈0] ➊"}}:::plan + Constant530 & Constant541 & Constant532 & __InputObject408 --> __InputObject404 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant522{{"Constant[522∈0] ➊
ᐸ'WyJwZW9wbGUiLDFd'ᐳ"}}:::plan + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + Constant522 & __InputObject9 --> __InputObject6 + Constant523{{"Constant[523∈0] ➊
ᐸ'John Smith Sr.'ᐳ"}}:::plan + Constant524{{"Constant[524∈0] ➊
ᐸ'An older John Smith'ᐳ"}}:::plan + Constant523 & Constant524 --> __InputObject9 + __InputObject59{{"__InputObject[59∈0] ➊"}}:::plan + Constant527{{"Constant[527∈0] ➊
ᐸ'WyJwZW9wbGUiLDJd'ᐳ"}}:::plan + __InputObject62{{"__InputObject[62∈0] ➊"}}:::plan + Constant526 & Constant527 & __InputObject62 --> __InputObject59 + Constant528{{"Constant[528∈0] ➊
ᐸ'Sarah Smith'ᐳ"}}:::plan + Constant529{{"Constant[529∈0] ➊
ᐸ'sarah.smith@email.com'ᐳ"}}:::plan + Constant528 & Constant529 --> __InputObject62 + __InputObject113{{"__InputObject[113∈0] ➊"}}:::plan + __InputObject116{{"__InputObject[116∈0] ➊"}}:::plan + Constant530 & Constant527 & __InputObject116 --> __InputObject113 + __InputObject166{{"__InputObject[166∈0] ➊"}}:::plan + __InputObject169{{"__InputObject[169∈0] ➊"}}:::plan + Constant527 & __InputObject169 --> __InputObject166 + __InputObject218{{"__InputObject[218∈0] ➊"}}:::plan + __InputObject221{{"__InputObject[221∈0] ➊"}}:::plan + Constant532 & __InputObject221 --> __InputObject218 + Constant533{{"Constant[533∈0] ➊
ᐸ'Best Pal'ᐳ"}}:::plan + Constant534{{"Constant[534∈0] ➊
ᐸ'I have taken over Budd’s account. Hehehe.'ᐳ"}}:::plan + Constant533 & Constant534 --> __InputObject221 + __InputObject268{{"__InputObject[268∈0] ➊"}}:::plan + Constant535{{"Constant[535∈0] ➊
ᐸ'kathryn.ramirez@email.com'ᐳ"}}:::plan + __InputObject271{{"__InputObject[271∈0] ➊"}}:::plan + Constant535 & __InputObject271 --> __InputObject268 + __InputObject317{{"__InputObject[317∈0] ➊"}}:::plan + Constant537{{"Constant[537∈0] ➊
ᐸ'WyJjb21wb3VuZF9rZXlzIiwxLDJd'ᐳ"}}:::plan + __InputObject320{{"__InputObject[320∈0] ➊"}}:::plan + Constant537 & __InputObject320 --> __InputObject317 + Constant539{{"Constant[539∈0] ➊
ᐸtrueᐳ"}}:::plan + Constant538 & Constant539 --> __InputObject320 + Constant540{{"Constant[540∈0] ➊
ᐸfalseᐳ"}}:::plan + Constant532 & Constant540 --> __InputObject366 + __InputObject445{{"__InputObject[445∈0] ➊"}}:::plan + Constant525{{"Constant[525∈0] ➊
ᐸ'graphile-build.issue.27.exists@example.com'ᐳ"}}:::plan + __InputObject448{{"__InputObject[448∈0] ➊"}}:::plan + Constant525 & __InputObject448 --> __InputObject445 + __InputObject494{{"__InputObject[494∈0] ➊"}}:::plan + Constant543{{"Constant[543∈0] ➊
ᐸ1ᐳ"}}:::plan + __InputObject497{{"__InputObject[497∈0] ➊"}}:::plan + Constant543 & __InputObject497 --> __InputObject494 + __InputObject508{{"__InputObject[508∈0] ➊"}}:::plan + __InputObject511{{"__InputObject[511∈0] ➊"}}:::plan + Constant543 & __InputObject511 --> __InputObject508 Object18{{"Object[18∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access16{{"Access[16∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access17{{"Access[17∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access16 & Access17 --> Object18 + Constant531{{"Constant[531∈0] ➊
ᐸ'Now with an “H.”'ᐳ"}}:::plan + Constant531 --> __InputObject116 + Constant170{{"Constant[170∈0] ➊
ᐸnullᐳ"}}:::plan + Constant170 --> __InputObject169 + Constant536{{"Constant[536∈0] ➊
ᐸ'Make art not friends.'ᐳ"}}:::plan + Constant536 --> __InputObject271 + Constant540 --> __InputObject408 + Constant542{{"Constant[542∈0] ➊
ᐸ'somethingelse@example.com'ᐳ"}}:::plan + Constant542 --> __InputObject448 + Constant170 --> __InputObject497 + Constant544{{"Constant[544∈0] ➊
ᐸ'New String'ᐳ"}}:::plan + Constant544 --> __InputObject511 Lambda12{{"Lambda[12∈0] ➊
ᐸdecode_Person_base64JSONᐳ"}}:::plan - Constant521{{"Constant[521∈0] ➊
ᐸ'WyJwZW9wbGUiLDFd'ᐳ"}}:::plan - Constant521 --> Lambda12 + Constant522 --> Lambda12 Access13{{"Access[13∈0] ➊
ᐸ12.1ᐳ"}}:::plan Lambda12 --> Access13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access16 __Value2 --> Access17 + ApplyInput19{{"ApplyInput[19∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput19 + PgFromExpression40{{"PgFromExpression[40∈0] ➊"}}:::plan + Constant525 --> PgFromExpression40 + Lambda58{{"Lambda[58∈0] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant57{{"Constant[57∈0] ➊
ᐸ'query'ᐳ"}}:::plan + Constant57 --> Lambda58 + ApplyInput73{{"ApplyInput[73∈0] ➊"}}:::plan + __InputObject59 --> ApplyInput73 + ApplyInput126{{"ApplyInput[126∈0] ➊"}}:::plan + __InputObject113 --> ApplyInput126 + ApplyInput178{{"ApplyInput[178∈0] ➊"}}:::plan + __InputObject166 --> ApplyInput178 + ApplyInput228{{"ApplyInput[228∈0] ➊"}}:::plan + __InputObject218 --> ApplyInput228 + ApplyInput277{{"ApplyInput[277∈0] ➊"}}:::plan + __InputObject268 --> ApplyInput277 + ApplyInput332{{"ApplyInput[332∈0] ➊"}}:::plan + __InputObject317 --> ApplyInput332 + ApplyInput374{{"ApplyInput[374∈0] ➊"}}:::plan + __InputObject362 --> ApplyInput374 + ApplyInput415{{"ApplyInput[415∈0] ➊"}}:::plan + __InputObject404 --> ApplyInput415 + ApplyInput454{{"ApplyInput[454∈0] ➊"}}:::plan + __InputObject445 --> ApplyInput454 + ApplyInput503{{"ApplyInput[503∈0] ➊"}}:::plan + __InputObject494 --> ApplyInput503 + ApplyInput517{{"ApplyInput[517∈0] ➊"}}:::plan + __InputObject508 --> ApplyInput517 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant20{{"Constant[20∈0] ➊
ᐸnullᐳ"}}:::plan - Constant21{{"Constant[21∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant58{{"Constant[58∈0] ➊
ᐸ'query'ᐳ"}}:::plan - Constant338{{"Constant[338∈0] ➊
ᐸ'compound_keys'ᐳ"}}:::plan - Constant522{{"Constant[522∈0] ➊
ᐸ'John Smith Sr.'ᐳ"}}:::plan - Constant523{{"Constant[523∈0] ➊
ᐸ'An older John Smith'ᐳ"}}:::plan - Constant524{{"Constant[524∈0] ➊
ᐸ'graphile-build.issue.27.exists@example.com'ᐳ"}}:::plan - Constant525{{"Constant[525∈0] ➊
ᐸ'hello'ᐳ"}}:::plan - Constant526{{"Constant[526∈0] ➊
ᐸ'WyJwZW9wbGUiLDJd'ᐳ"}}:::plan - Constant527{{"Constant[527∈0] ➊
ᐸ'Sarah Smith'ᐳ"}}:::plan - Constant528{{"Constant[528∈0] ➊
ᐸ'sarah.smith@email.com'ᐳ"}}:::plan - Constant529{{"Constant[529∈0] ➊
ᐸ'world'ᐳ"}}:::plan - Constant530{{"Constant[530∈0] ➊
ᐸ'Now with an “H.”'ᐳ"}}:::plan - Constant532{{"Constant[532∈0] ➊
ᐸ3ᐳ"}}:::plan - Constant533{{"Constant[533∈0] ➊
ᐸ'Best Pal'ᐳ"}}:::plan - Constant534{{"Constant[534∈0] ➊
ᐸ'I have taken over Budd’s account. Hehehe.'ᐳ"}}:::plan - Constant535{{"Constant[535∈0] ➊
ᐸ'kathryn.ramirez@email.com'ᐳ"}}:::plan - Constant536{{"Constant[536∈0] ➊
ᐸ'Make art not friends.'ᐳ"}}:::plan - Constant537{{"Constant[537∈0] ➊
ᐸ'WyJjb21wb3VuZF9rZXlzIiwxLDJd'ᐳ"}}:::plan - Constant538{{"Constant[538∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant539{{"Constant[539∈0] ➊
ᐸtrueᐳ"}}:::plan - Constant540{{"Constant[540∈0] ➊
ᐸfalseᐳ"}}:::plan - Constant541{{"Constant[541∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant542{{"Constant[542∈0] ➊
ᐸ'somethingelse@example.com'ᐳ"}}:::plan - Constant543{{"Constant[543∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant544{{"Constant[544∈0] ➊
ᐸ'New String'ᐳ"}}:::plan - PgUpdateSingle15[["PgUpdateSingle[15∈1] ➊
ᐸperson(id;person_full_name,about)ᐳ"]]:::sideeffectplan + Constant22{{"Constant[22∈0] ➊
ᐸ'people'ᐳ"}}:::plan + Connection47{{"Connection[47∈0] ➊
ᐸ44ᐳ"}}:::plan + Constant335{{"Constant[335∈0] ➊
ᐸ'compound_keys'ᐳ"}}:::plan + PgUpdateSingle15[["PgUpdateSingle[15∈1] ➊
ᐸperson(id;)ᐳ"]]:::sideeffectplan Object18 -->|rejectNull| PgUpdateSingle15 - Access13 & Constant522 & Constant523 --> PgUpdateSingle15 - Object19{{"Object[19∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle15 --> Object19 - Edge51{{"Edge[51∈2] ➊"}}:::plan - PgSelectSingle50{{"PgSelectSingle[50∈2] ➊
ᐸpersonᐳ"}}:::plan - PgCursor53{{"PgCursor[53∈2] ➊"}}:::plan - Connection47{{"Connection[47∈2] ➊
ᐸ43ᐳ"}}:::plan + Access13 & ApplyInput19 --> PgUpdateSingle15 + PgSelect33[["PgSelect[33∈1] ➊
ᐸpersonᐳ"]]:::plan + PgFromExpression35{{"PgFromExpression[35∈1] ➊"}}:::plan + Object18 & PgFromExpression35 & PgFromExpression40 --> PgSelect33 + Edge51{{"Edge[51∈1] ➊"}}:::plan + PgSelectSingle50{{"PgSelectSingle[50∈1] ➊
ᐸpersonᐳ"}}:::plan + PgCursor53{{"PgCursor[53∈1] ➊"}}:::plan PgSelectSingle50 & PgCursor53 & Connection47 --> Edge51 - List23{{"List[23∈2] ➊
ᐸ21,42ᐳ"}}:::plan - PgClassExpression42{{"PgClassExpression[42∈2] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression42 --> List23 - PgSelect43[["PgSelect[43∈2] ➊
ᐸpersonᐳ"]]:::plan - Object18 & PgClassExpression42 --> PgSelect43 - Access52{{"Access[52∈2] ➊
ᐸ43.cursorDetailsᐳ"}}:::plan + List25{{"List[25∈1] ➊
ᐸ22,23ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression23 --> List25 + PgSelect44[["PgSelect[44∈1] ➊
ᐸpersonᐳ"]]:::plan + Object18 & PgClassExpression23 --> PgSelect44 + Access52{{"Access[52∈1] ➊
ᐸ44.cursorDetailsᐳ"}}:::plan PgSelectSingle50 & Access52 --> PgCursor53 - Lambda24{{"Lambda[24∈2] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List23 --> Lambda24 - PgUpdateSingle15 --> PgClassExpression42 - First48{{"First[48∈2] ➊"}}:::plan - PgSelectRows49[["PgSelectRows[49∈2] ➊"]]:::plan + List55{{"List[55∈1] ➊
ᐸ22,54ᐳ"}}:::plan + PgClassExpression54{{"PgClassExpression[54∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression54 --> List55 + Object20{{"Object[20∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle15 --> Object20 + Access21{{"Access[21∈1] ➊
ᐸ15.m.clientMutationIdᐳ"}}:::plan + PgUpdateSingle15 --> Access21 + Access24{{"Access[24∈1] ➊
ᐸ15.tᐳ"}}:::plan + Access24 --> PgClassExpression23 + PgUpdateSingle15 --> Access24 + Lambda26{{"Lambda[26∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List25 --> Lambda26 + PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + Access24 --> PgClassExpression28 + PgClassExpression29{{"PgClassExpression[29∈1] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + Access24 --> PgClassExpression29 + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__person__.”about”ᐳ"}}:::plan + Access24 --> PgClassExpression30 + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__person__ᐳ"}}:::plan + Access24 --> PgClassExpression32 + PgClassExpression32 --> PgFromExpression35 + First36{{"First[36∈1] ➊"}}:::plan + PgSelectRows37[["PgSelectRows[37∈1] ➊"]]:::plan + PgSelectRows37 --> First36 + PgSelect33 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈1] ➊
ᐸpersonᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression41{{"PgClassExpression[41∈1] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression41 + First48{{"First[48∈1] ➊"}}:::plan + PgSelectRows49[["PgSelectRows[49∈1] ➊"]]:::plan PgSelectRows49 --> First48 - PgSelect43 --> PgSelectRows49 + PgSelect44 --> PgSelectRows49 First48 --> PgSelectSingle50 - PgSelect43 --> Access52 - Lambda59{{"Lambda[59∈2] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant58 --> Lambda59 - PgSelect31[["PgSelect[31∈3] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__person__ᐳ"}}:::plan - Object18 & PgClassExpression30 & Constant524 --> PgSelect31 - PgClassExpression26{{"PgClassExpression[26∈3] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgUpdateSingle15 --> PgClassExpression26 - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgUpdateSingle15 --> PgClassExpression27 - PgClassExpression28{{"PgClassExpression[28∈3] ➊
ᐸ__person__.”about”ᐳ"}}:::plan - PgUpdateSingle15 --> PgClassExpression28 - PgUpdateSingle15 --> PgClassExpression30 - First35{{"First[35∈3] ➊"}}:::plan - PgSelectRows36[["PgSelectRows[36∈3] ➊"]]:::plan - PgSelectRows36 --> First35 - PgSelect31 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈3] ➊
ᐸpersonᐳ"}}:::plan - First35 --> PgSelectSingle37 - PgClassExpression39{{"PgClassExpression[39∈3] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression39 - List56{{"List[56∈5] ➊
ᐸ21,55ᐳ"}}:::plan - PgClassExpression55{{"PgClassExpression[55∈5] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression55 --> List56 - PgSelectSingle50 --> PgClassExpression55 - Lambda57{{"Lambda[57∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List56 --> Lambda57 - PgUpdateSingle70[["PgUpdateSingle[70∈7] ➊
ᐸperson(id;person_full_name,email)ᐳ"]]:::sideeffectplan - Object73{{"Object[73∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access68{{"Access[68∈7] ➊
ᐸ67.1ᐳ"}}:::plan - Object73 -->|rejectNull| PgUpdateSingle70 - Access68 & Constant527 & Constant528 --> PgUpdateSingle70 - Access71{{"Access[71∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access72{{"Access[72∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access71 & Access72 --> Object73 - Object74{{"Object[74∈7] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgUpdateSingle70 & Constant525 --> Object74 - Lambda67{{"Lambda[67∈7] ➊
ᐸdecode_Person_base64JSONᐳ"}}:::plan - Constant526 --> Lambda67 - Lambda67 --> Access68 - __Value2 --> Access71 - __Value2 --> Access72 - Edge105{{"Edge[105∈8] ➊"}}:::plan - PgSelectSingle104{{"PgSelectSingle[104∈8] ➊
ᐸpersonᐳ"}}:::plan - PgCursor107{{"PgCursor[107∈8] ➊"}}:::plan - Connection101{{"Connection[101∈8] ➊
ᐸ97ᐳ"}}:::plan + PgSelect44 --> Access52 + PgSelectSingle50 --> PgClassExpression54 + Lambda56{{"Lambda[56∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List55 --> Lambda56 + PgUpdateSingle69[["PgUpdateSingle[69∈2] ➊
ᐸperson(id;)ᐳ"]]:::sideeffectplan + Object72{{"Object[72∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access67{{"Access[67∈2] ➊
ᐸ66.1ᐳ"}}:::plan + Object72 -->|rejectNull| PgUpdateSingle69 + Access67 & ApplyInput73 --> PgUpdateSingle69 + PgSelect87[["PgSelect[87∈2] ➊
ᐸpersonᐳ"]]:::plan + PgFromExpression89{{"PgFromExpression[89∈2] ➊"}}:::plan + PgFromExpression94{{"PgFromExpression[94∈2] ➊"}}:::plan + Object72 & PgFromExpression89 & PgFromExpression94 --> PgSelect87 + Edge105{{"Edge[105∈2] ➊"}}:::plan + PgSelectSingle104{{"PgSelectSingle[104∈2] ➊
ᐸpersonᐳ"}}:::plan + PgCursor107{{"PgCursor[107∈2] ➊"}}:::plan + Connection101{{"Connection[101∈2] ➊
ᐸ98ᐳ"}}:::plan PgSelectSingle104 & PgCursor107 & Connection101 --> Edge105 - List77{{"List[77∈8] ➊
ᐸ21,96ᐳ"}}:::plan - PgClassExpression96{{"PgClassExpression[96∈8] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression96 --> List77 - PgSelect97[["PgSelect[97∈8] ➊
ᐸpersonᐳ"]]:::plan - Object73 & PgClassExpression96 --> PgSelect97 - Access106{{"Access[106∈8] ➊
ᐸ97.cursorDetailsᐳ"}}:::plan + Access70{{"Access[70∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access71{{"Access[71∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access70 & Access71 --> Object72 + List79{{"List[79∈2] ➊
ᐸ22,77ᐳ"}}:::plan + PgClassExpression77{{"PgClassExpression[77∈2] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression77 --> List79 + PgSelect98[["PgSelect[98∈2] ➊
ᐸpersonᐳ"]]:::plan + Object72 & PgClassExpression77 --> PgSelect98 + Access106{{"Access[106∈2] ➊
ᐸ98.cursorDetailsᐳ"}}:::plan PgSelectSingle104 & Access106 --> PgCursor107 - Lambda78{{"Lambda[78∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List77 --> Lambda78 - PgUpdateSingle70 --> PgClassExpression96 - First102{{"First[102∈8] ➊"}}:::plan - PgSelectRows103[["PgSelectRows[103∈8] ➊"]]:::plan + List109{{"List[109∈2] ➊
ᐸ22,108ᐳ"}}:::plan + PgClassExpression108{{"PgClassExpression[108∈2] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression108 --> List109 + Lambda66{{"Lambda[66∈2] ➊
ᐸdecode_Person_base64JSONᐳ"}}:::plan + Constant527 --> Lambda66 + Lambda66 --> Access67 + __Value2 --> Access70 + __Value2 --> Access71 + Object74{{"Object[74∈2] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle69 --> Object74 + Access75{{"Access[75∈2] ➊
ᐸ69.m.clientMutationIdᐳ"}}:::plan + PgUpdateSingle69 --> Access75 + Access78{{"Access[78∈2] ➊
ᐸ69.tᐳ"}}:::plan + Access78 --> PgClassExpression77 + PgUpdateSingle69 --> Access78 + Lambda80{{"Lambda[80∈2] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List79 --> Lambda80 + PgClassExpression82{{"PgClassExpression[82∈2] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + Access78 --> PgClassExpression82 + PgClassExpression83{{"PgClassExpression[83∈2] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + Access78 --> PgClassExpression83 + PgClassExpression84{{"PgClassExpression[84∈2] ➊
ᐸ__person__.”about”ᐳ"}}:::plan + Access78 --> PgClassExpression84 + PgClassExpression86{{"PgClassExpression[86∈2] ➊
ᐸ__person__ᐳ"}}:::plan + Access78 --> PgClassExpression86 + PgClassExpression86 --> PgFromExpression89 + First90{{"First[90∈2] ➊"}}:::plan + PgSelectRows91[["PgSelectRows[91∈2] ➊"]]:::plan + PgSelectRows91 --> First90 + PgSelect87 --> PgSelectRows91 + PgSelectSingle92{{"PgSelectSingle[92∈2] ➊
ᐸpersonᐳ"}}:::plan + First90 --> PgSelectSingle92 + Constant525 --> PgFromExpression94 + PgClassExpression95{{"PgClassExpression[95∈2] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle92 --> PgClassExpression95 + First102{{"First[102∈2] ➊"}}:::plan + PgSelectRows103[["PgSelectRows[103∈2] ➊"]]:::plan PgSelectRows103 --> First102 - PgSelect97 --> PgSelectRows103 + PgSelect98 --> PgSelectRows103 First102 --> PgSelectSingle104 - PgSelect97 --> Access106 - Lambda113{{"Lambda[113∈8] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant58 --> Lambda113 - PgSelect85[["PgSelect[85∈9] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression84{{"PgClassExpression[84∈9] ➊
ᐸ__person__ᐳ"}}:::plan - Object73 & PgClassExpression84 & Constant524 --> PgSelect85 - PgClassExpression80{{"PgClassExpression[80∈9] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgUpdateSingle70 --> PgClassExpression80 - PgClassExpression81{{"PgClassExpression[81∈9] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgUpdateSingle70 --> PgClassExpression81 - PgClassExpression82{{"PgClassExpression[82∈9] ➊
ᐸ__person__.”about”ᐳ"}}:::plan - PgUpdateSingle70 --> PgClassExpression82 - PgUpdateSingle70 --> PgClassExpression84 - First89{{"First[89∈9] ➊"}}:::plan - PgSelectRows90[["PgSelectRows[90∈9] ➊"]]:::plan - PgSelectRows90 --> First89 - PgSelect85 --> PgSelectRows90 - PgSelectSingle91{{"PgSelectSingle[91∈9] ➊
ᐸpersonᐳ"}}:::plan - First89 --> PgSelectSingle91 - PgClassExpression93{{"PgClassExpression[93∈9] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle91 --> PgClassExpression93 - List110{{"List[110∈11] ➊
ᐸ21,109ᐳ"}}:::plan - PgClassExpression109{{"PgClassExpression[109∈11] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression109 --> List110 - PgSelectSingle104 --> PgClassExpression109 - Lambda111{{"Lambda[111∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List110 --> Lambda111 - PgUpdateSingle123[["PgUpdateSingle[123∈13] ➊
ᐸperson(id;about)ᐳ"]]:::sideeffectplan - Object126{{"Object[126∈13] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access121{{"Access[121∈13] ➊
ᐸ120.1ᐳ"}}:::plan - Object126 -->|rejectNull| PgUpdateSingle123 - Access121 & Constant530 --> PgUpdateSingle123 - Access124{{"Access[124∈13] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access125{{"Access[125∈13] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access124 & Access125 --> Object126 - Object127{{"Object[127∈13] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgUpdateSingle123 & Constant529 --> Object127 - Lambda120{{"Lambda[120∈13] ➊
ᐸdecode_Person_base64JSONᐳ"}}:::plan - Constant526 --> Lambda120 - Lambda120 --> Access121 - __Value2 --> Access124 - __Value2 --> Access125 - Edge158{{"Edge[158∈14] ➊"}}:::plan - PgSelectSingle157{{"PgSelectSingle[157∈14] ➊
ᐸpersonᐳ"}}:::plan - PgCursor160{{"PgCursor[160∈14] ➊"}}:::plan - Connection154{{"Connection[154∈14] ➊
ᐸ150ᐳ"}}:::plan + PgSelect98 --> Access106 + PgSelectSingle104 --> PgClassExpression108 + Lambda110{{"Lambda[110∈2] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List109 --> Lambda110 + Lambda112{{"Lambda[112∈2] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant57 --> Lambda112 + PgUpdateSingle122[["PgUpdateSingle[122∈3] ➊
ᐸperson(id;)ᐳ"]]:::sideeffectplan + Object125{{"Object[125∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access120{{"Access[120∈3] ➊
ᐸ119.1ᐳ"}}:::plan + Object125 -->|rejectNull| PgUpdateSingle122 + Access120 & ApplyInput126 --> PgUpdateSingle122 + PgSelect140[["PgSelect[140∈3] ➊
ᐸpersonᐳ"]]:::plan + PgFromExpression142{{"PgFromExpression[142∈3] ➊"}}:::plan + PgFromExpression147{{"PgFromExpression[147∈3] ➊"}}:::plan + Object125 & PgFromExpression142 & PgFromExpression147 --> PgSelect140 + Edge158{{"Edge[158∈3] ➊"}}:::plan + PgSelectSingle157{{"PgSelectSingle[157∈3] ➊
ᐸpersonᐳ"}}:::plan + PgCursor160{{"PgCursor[160∈3] ➊"}}:::plan + Connection154{{"Connection[154∈3] ➊
ᐸ151ᐳ"}}:::plan PgSelectSingle157 & PgCursor160 & Connection154 --> Edge158 - List130{{"List[130∈14] ➊
ᐸ21,149ᐳ"}}:::plan - PgClassExpression149{{"PgClassExpression[149∈14] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression149 --> List130 - PgSelect150[["PgSelect[150∈14] ➊
ᐸpersonᐳ"]]:::plan - Object126 & PgClassExpression149 --> PgSelect150 - Access159{{"Access[159∈14] ➊
ᐸ150.cursorDetailsᐳ"}}:::plan + Access123{{"Access[123∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access124{{"Access[124∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access123 & Access124 --> Object125 + List132{{"List[132∈3] ➊
ᐸ22,130ᐳ"}}:::plan + PgClassExpression130{{"PgClassExpression[130∈3] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression130 --> List132 + PgSelect151[["PgSelect[151∈3] ➊
ᐸpersonᐳ"]]:::plan + Object125 & PgClassExpression130 --> PgSelect151 + Access159{{"Access[159∈3] ➊
ᐸ151.cursorDetailsᐳ"}}:::plan PgSelectSingle157 & Access159 --> PgCursor160 - Lambda131{{"Lambda[131∈14] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List130 --> Lambda131 - PgUpdateSingle123 --> PgClassExpression149 - First155{{"First[155∈14] ➊"}}:::plan - PgSelectRows156[["PgSelectRows[156∈14] ➊"]]:::plan + List162{{"List[162∈3] ➊
ᐸ22,161ᐳ"}}:::plan + PgClassExpression161{{"PgClassExpression[161∈3] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression161 --> List162 + Lambda119{{"Lambda[119∈3] ➊
ᐸdecode_Person_base64JSONᐳ"}}:::plan + Constant527 --> Lambda119 + Lambda119 --> Access120 + __Value2 --> Access123 + __Value2 --> Access124 + Object127{{"Object[127∈3] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle122 --> Object127 + Access128{{"Access[128∈3] ➊
ᐸ122.m.clientMutationIdᐳ"}}:::plan + PgUpdateSingle122 --> Access128 + Access131{{"Access[131∈3] ➊
ᐸ122.tᐳ"}}:::plan + Access131 --> PgClassExpression130 + PgUpdateSingle122 --> Access131 + Lambda133{{"Lambda[133∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List132 --> Lambda133 + PgClassExpression135{{"PgClassExpression[135∈3] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + Access131 --> PgClassExpression135 + PgClassExpression136{{"PgClassExpression[136∈3] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + Access131 --> PgClassExpression136 + PgClassExpression137{{"PgClassExpression[137∈3] ➊
ᐸ__person__.”about”ᐳ"}}:::plan + Access131 --> PgClassExpression137 + PgClassExpression139{{"PgClassExpression[139∈3] ➊
ᐸ__person__ᐳ"}}:::plan + Access131 --> PgClassExpression139 + PgClassExpression139 --> PgFromExpression142 + First143{{"First[143∈3] ➊"}}:::plan + PgSelectRows144[["PgSelectRows[144∈3] ➊"]]:::plan + PgSelectRows144 --> First143 + PgSelect140 --> PgSelectRows144 + PgSelectSingle145{{"PgSelectSingle[145∈3] ➊
ᐸpersonᐳ"}}:::plan + First143 --> PgSelectSingle145 + Constant525 --> PgFromExpression147 + PgClassExpression148{{"PgClassExpression[148∈3] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle145 --> PgClassExpression148 + First155{{"First[155∈3] ➊"}}:::plan + PgSelectRows156[["PgSelectRows[156∈3] ➊"]]:::plan PgSelectRows156 --> First155 - PgSelect150 --> PgSelectRows156 + PgSelect151 --> PgSelectRows156 First155 --> PgSelectSingle157 - PgSelect150 --> Access159 - Lambda166{{"Lambda[166∈14] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant58 --> Lambda166 - PgSelect138[["PgSelect[138∈15] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression137{{"PgClassExpression[137∈15] ➊
ᐸ__person__ᐳ"}}:::plan - Object126 & PgClassExpression137 & Constant524 --> PgSelect138 - PgClassExpression133{{"PgClassExpression[133∈15] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgUpdateSingle123 --> PgClassExpression133 - PgClassExpression134{{"PgClassExpression[134∈15] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgUpdateSingle123 --> PgClassExpression134 - PgClassExpression135{{"PgClassExpression[135∈15] ➊
ᐸ__person__.”about”ᐳ"}}:::plan - PgUpdateSingle123 --> PgClassExpression135 - PgUpdateSingle123 --> PgClassExpression137 - First142{{"First[142∈15] ➊"}}:::plan - PgSelectRows143[["PgSelectRows[143∈15] ➊"]]:::plan - PgSelectRows143 --> First142 - PgSelect138 --> PgSelectRows143 - PgSelectSingle144{{"PgSelectSingle[144∈15] ➊
ᐸpersonᐳ"}}:::plan - First142 --> PgSelectSingle144 - PgClassExpression146{{"PgClassExpression[146∈15] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle144 --> PgClassExpression146 - List163{{"List[163∈17] ➊
ᐸ21,162ᐳ"}}:::plan - PgClassExpression162{{"PgClassExpression[162∈17] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression162 --> List163 - PgSelectSingle157 --> PgClassExpression162 - Lambda164{{"Lambda[164∈17] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List163 --> Lambda164 - PgUpdateSingle175[["PgUpdateSingle[175∈19] ➊
ᐸperson(id;about)ᐳ"]]:::sideeffectplan - Object178{{"Object[178∈19] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access173{{"Access[173∈19] ➊
ᐸ172.1ᐳ"}}:::plan - Object178 -->|rejectNull| PgUpdateSingle175 - Access173 & Constant20 --> PgUpdateSingle175 - Access176{{"Access[176∈19] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access177{{"Access[177∈19] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access176 & Access177 --> Object178 - Lambda172{{"Lambda[172∈19] ➊
ᐸdecode_Person_base64JSONᐳ"}}:::plan - Constant526 --> Lambda172 - Lambda172 --> Access173 + PgSelect151 --> Access159 + PgSelectSingle157 --> PgClassExpression161 + Lambda163{{"Lambda[163∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List162 --> Lambda163 + Lambda165{{"Lambda[165∈3] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant57 --> Lambda165 + PgUpdateSingle174[["PgUpdateSingle[174∈4] ➊
ᐸperson(id;)ᐳ"]]:::sideeffectplan + Object177{{"Object[177∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access172{{"Access[172∈4] ➊
ᐸ171.1ᐳ"}}:::plan + Object177 -->|rejectNull| PgUpdateSingle174 + Access172 & ApplyInput178 --> PgUpdateSingle174 + PgSelect192[["PgSelect[192∈4] ➊
ᐸpersonᐳ"]]:::plan + PgFromExpression194{{"PgFromExpression[194∈4] ➊"}}:::plan + PgFromExpression199{{"PgFromExpression[199∈4] ➊"}}:::plan + Object177 & PgFromExpression194 & PgFromExpression199 --> PgSelect192 + Edge210{{"Edge[210∈4] ➊"}}:::plan + PgSelectSingle209{{"PgSelectSingle[209∈4] ➊
ᐸpersonᐳ"}}:::plan + PgCursor212{{"PgCursor[212∈4] ➊"}}:::plan + Connection206{{"Connection[206∈4] ➊
ᐸ203ᐳ"}}:::plan + PgSelectSingle209 & PgCursor212 & Connection206 --> Edge210 + Access175{{"Access[175∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access176{{"Access[176∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access175 & Access176 --> Object177 + List184{{"List[184∈4] ➊
ᐸ22,182ᐳ"}}:::plan + PgClassExpression182{{"PgClassExpression[182∈4] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression182 --> List184 + PgSelect203[["PgSelect[203∈4] ➊
ᐸpersonᐳ"]]:::plan + Object177 & PgClassExpression182 --> PgSelect203 + Access211{{"Access[211∈4] ➊
ᐸ203.cursorDetailsᐳ"}}:::plan + PgSelectSingle209 & Access211 --> PgCursor212 + List214{{"List[214∈4] ➊
ᐸ22,213ᐳ"}}:::plan + PgClassExpression213{{"PgClassExpression[213∈4] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression213 --> List214 + Lambda171{{"Lambda[171∈4] ➊
ᐸdecode_Person_base64JSONᐳ"}}:::plan + Constant527 --> Lambda171 + Lambda171 --> Access172 + __Value2 --> Access175 __Value2 --> Access176 - __Value2 --> Access177 - Object179{{"Object[179∈19] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle175 --> Object179 - Edge211{{"Edge[211∈20] ➊"}}:::plan - PgSelectSingle210{{"PgSelectSingle[210∈20] ➊
ᐸpersonᐳ"}}:::plan - PgCursor213{{"PgCursor[213∈20] ➊"}}:::plan - Connection207{{"Connection[207∈20] ➊
ᐸ203ᐳ"}}:::plan - PgSelectSingle210 & PgCursor213 & Connection207 --> Edge211 - List183{{"List[183∈20] ➊
ᐸ21,202ᐳ"}}:::plan - PgClassExpression202{{"PgClassExpression[202∈20] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression202 --> List183 - PgSelect203[["PgSelect[203∈20] ➊
ᐸpersonᐳ"]]:::plan - Object178 & PgClassExpression202 --> PgSelect203 - Access212{{"Access[212∈20] ➊
ᐸ203.cursorDetailsᐳ"}}:::plan - PgSelectSingle210 & Access212 --> PgCursor213 - Lambda184{{"Lambda[184∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List183 --> Lambda184 - PgUpdateSingle175 --> PgClassExpression202 - First208{{"First[208∈20] ➊"}}:::plan - PgSelectRows209[["PgSelectRows[209∈20] ➊"]]:::plan - PgSelectRows209 --> First208 - PgSelect203 --> PgSelectRows209 - First208 --> PgSelectSingle210 - PgSelect203 --> Access212 - Lambda219{{"Lambda[219∈20] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant58 --> Lambda219 - PgSelect191[["PgSelect[191∈21] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression190{{"PgClassExpression[190∈21] ➊
ᐸ__person__ᐳ"}}:::plan - Object178 & PgClassExpression190 & Constant524 --> PgSelect191 - PgClassExpression186{{"PgClassExpression[186∈21] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgUpdateSingle175 --> PgClassExpression186 - PgClassExpression187{{"PgClassExpression[187∈21] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgUpdateSingle175 --> PgClassExpression187 - PgClassExpression188{{"PgClassExpression[188∈21] ➊
ᐸ__person__.”about”ᐳ"}}:::plan - PgUpdateSingle175 --> PgClassExpression188 - PgUpdateSingle175 --> PgClassExpression190 - First195{{"First[195∈21] ➊"}}:::plan - PgSelectRows196[["PgSelectRows[196∈21] ➊"]]:::plan + Object179{{"Object[179∈4] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle174 --> Object179 + Access180{{"Access[180∈4] ➊
ᐸ174.m.clientMutationIdᐳ"}}:::plan + PgUpdateSingle174 --> Access180 + Access183{{"Access[183∈4] ➊
ᐸ174.tᐳ"}}:::plan + Access183 --> PgClassExpression182 + PgUpdateSingle174 --> Access183 + Lambda185{{"Lambda[185∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List184 --> Lambda185 + PgClassExpression187{{"PgClassExpression[187∈4] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + Access183 --> PgClassExpression187 + PgClassExpression188{{"PgClassExpression[188∈4] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + Access183 --> PgClassExpression188 + PgClassExpression189{{"PgClassExpression[189∈4] ➊
ᐸ__person__.”about”ᐳ"}}:::plan + Access183 --> PgClassExpression189 + PgClassExpression191{{"PgClassExpression[191∈4] ➊
ᐸ__person__ᐳ"}}:::plan + Access183 --> PgClassExpression191 + PgClassExpression191 --> PgFromExpression194 + First195{{"First[195∈4] ➊"}}:::plan + PgSelectRows196[["PgSelectRows[196∈4] ➊"]]:::plan PgSelectRows196 --> First195 - PgSelect191 --> PgSelectRows196 - PgSelectSingle197{{"PgSelectSingle[197∈21] ➊
ᐸpersonᐳ"}}:::plan + PgSelect192 --> PgSelectRows196 + PgSelectSingle197{{"PgSelectSingle[197∈4] ➊
ᐸpersonᐳ"}}:::plan First195 --> PgSelectSingle197 - PgClassExpression199{{"PgClassExpression[199∈21] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle197 --> PgClassExpression199 - List216{{"List[216∈23] ➊
ᐸ21,215ᐳ"}}:::plan - PgClassExpression215{{"PgClassExpression[215∈23] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression215 --> List216 - PgSelectSingle210 --> PgClassExpression215 - Lambda217{{"Lambda[217∈23] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List216 --> Lambda217 - PgUpdateSingle226[["PgUpdateSingle[226∈25] ➊
ᐸperson(id;person_full_name,about)ᐳ"]]:::sideeffectplan - Object229{{"Object[229∈25] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object229 & Constant532 & Constant533 & Constant534 --> PgUpdateSingle226 - Access227{{"Access[227∈25] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access228{{"Access[228∈25] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access227 & Access228 --> Object229 - __Value2 --> Access227 - __Value2 --> Access228 - Object230{{"Object[230∈25] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle226 --> Object230 - Edge262{{"Edge[262∈26] ➊"}}:::plan - PgSelectSingle261{{"PgSelectSingle[261∈26] ➊
ᐸpersonᐳ"}}:::plan - PgCursor264{{"PgCursor[264∈26] ➊"}}:::plan - Connection258{{"Connection[258∈26] ➊
ᐸ254ᐳ"}}:::plan - PgSelectSingle261 & PgCursor264 & Connection258 --> Edge262 - List234{{"List[234∈26] ➊
ᐸ21,253ᐳ"}}:::plan - PgClassExpression253{{"PgClassExpression[253∈26] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression253 --> List234 - PgSelect254[["PgSelect[254∈26] ➊
ᐸpersonᐳ"]]:::plan - Object229 & PgClassExpression253 --> PgSelect254 - Access263{{"Access[263∈26] ➊
ᐸ254.cursorDetailsᐳ"}}:::plan - PgSelectSingle261 & Access263 --> PgCursor264 - Lambda235{{"Lambda[235∈26] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Constant525 --> PgFromExpression199 + PgClassExpression200{{"PgClassExpression[200∈4] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle197 --> PgClassExpression200 + First207{{"First[207∈4] ➊"}}:::plan + PgSelectRows208[["PgSelectRows[208∈4] ➊"]]:::plan + PgSelectRows208 --> First207 + PgSelect203 --> PgSelectRows208 + First207 --> PgSelectSingle209 + PgSelect203 --> Access211 + PgSelectSingle209 --> PgClassExpression213 + Lambda215{{"Lambda[215∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List214 --> Lambda215 + Lambda217{{"Lambda[217∈4] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant57 --> Lambda217 + PgUpdateSingle224[["PgUpdateSingle[224∈5] ➊
ᐸperson(id;)ᐳ"]]:::sideeffectplan + Object227{{"Object[227∈5] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object227 & Constant532 & ApplyInput228 --> PgUpdateSingle224 + PgSelect242[["PgSelect[242∈5] ➊
ᐸpersonᐳ"]]:::plan + PgFromExpression244{{"PgFromExpression[244∈5] ➊"}}:::plan + PgFromExpression249{{"PgFromExpression[249∈5] ➊"}}:::plan + Object227 & PgFromExpression244 & PgFromExpression249 --> PgSelect242 + Edge260{{"Edge[260∈5] ➊"}}:::plan + PgSelectSingle259{{"PgSelectSingle[259∈5] ➊
ᐸpersonᐳ"}}:::plan + PgCursor262{{"PgCursor[262∈5] ➊"}}:::plan + Connection256{{"Connection[256∈5] ➊
ᐸ253ᐳ"}}:::plan + PgSelectSingle259 & PgCursor262 & Connection256 --> Edge260 + Access225{{"Access[225∈5] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access226{{"Access[226∈5] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access225 & Access226 --> Object227 + List234{{"List[234∈5] ➊
ᐸ22,232ᐳ"}}:::plan + PgClassExpression232{{"PgClassExpression[232∈5] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression232 --> List234 + PgSelect253[["PgSelect[253∈5] ➊
ᐸpersonᐳ"]]:::plan + Object227 & PgClassExpression232 --> PgSelect253 + Access261{{"Access[261∈5] ➊
ᐸ253.cursorDetailsᐳ"}}:::plan + PgSelectSingle259 & Access261 --> PgCursor262 + List264{{"List[264∈5] ➊
ᐸ22,263ᐳ"}}:::plan + PgClassExpression263{{"PgClassExpression[263∈5] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression263 --> List264 + __Value2 --> Access225 + __Value2 --> Access226 + Object229{{"Object[229∈5] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle224 --> Object229 + Access230{{"Access[230∈5] ➊
ᐸ224.m.clientMutationIdᐳ"}}:::plan + PgUpdateSingle224 --> Access230 + Access233{{"Access[233∈5] ➊
ᐸ224.tᐳ"}}:::plan + Access233 --> PgClassExpression232 + PgUpdateSingle224 --> Access233 + Lambda235{{"Lambda[235∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List234 --> Lambda235 - PgUpdateSingle226 --> PgClassExpression253 - First259{{"First[259∈26] ➊"}}:::plan - PgSelectRows260[["PgSelectRows[260∈26] ➊"]]:::plan - PgSelectRows260 --> First259 - PgSelect254 --> PgSelectRows260 - First259 --> PgSelectSingle261 - PgSelect254 --> Access263 - Lambda270{{"Lambda[270∈26] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant58 --> Lambda270 - PgSelect242[["PgSelect[242∈27] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression241{{"PgClassExpression[241∈27] ➊
ᐸ__person__ᐳ"}}:::plan - Object229 & PgClassExpression241 & Constant524 --> PgSelect242 - PgClassExpression237{{"PgClassExpression[237∈27] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgUpdateSingle226 --> PgClassExpression237 - PgClassExpression238{{"PgClassExpression[238∈27] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgUpdateSingle226 --> PgClassExpression238 - PgClassExpression239{{"PgClassExpression[239∈27] ➊
ᐸ__person__.”about”ᐳ"}}:::plan - PgUpdateSingle226 --> PgClassExpression239 - PgUpdateSingle226 --> PgClassExpression241 - First246{{"First[246∈27] ➊"}}:::plan - PgSelectRows247[["PgSelectRows[247∈27] ➊"]]:::plan - PgSelectRows247 --> First246 - PgSelect242 --> PgSelectRows247 - PgSelectSingle248{{"PgSelectSingle[248∈27] ➊
ᐸpersonᐳ"}}:::plan - First246 --> PgSelectSingle248 - PgClassExpression250{{"PgClassExpression[250∈27] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle248 --> PgClassExpression250 - List267{{"List[267∈29] ➊
ᐸ21,266ᐳ"}}:::plan - PgClassExpression266{{"PgClassExpression[266∈29] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression266 --> List267 - PgSelectSingle261 --> PgClassExpression266 - Lambda268{{"Lambda[268∈29] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List267 --> Lambda268 - PgUpdateSingle276[["PgUpdateSingle[276∈31] ➊
ᐸperson(email;about)ᐳ"]]:::sideeffectplan - Object279{{"Object[279∈31] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object279 & Constant535 & Constant536 --> PgUpdateSingle276 - Access277{{"Access[277∈31] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access278{{"Access[278∈31] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access277 & Access278 --> Object279 - __Value2 --> Access277 - __Value2 --> Access278 - Object280{{"Object[280∈31] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle276 --> Object280 - Edge312{{"Edge[312∈32] ➊"}}:::plan - PgSelectSingle311{{"PgSelectSingle[311∈32] ➊
ᐸpersonᐳ"}}:::plan - PgCursor314{{"PgCursor[314∈32] ➊"}}:::plan - Connection308{{"Connection[308∈32] ➊
ᐸ304ᐳ"}}:::plan - PgSelectSingle311 & PgCursor314 & Connection308 --> Edge312 - List284{{"List[284∈32] ➊
ᐸ21,303ᐳ"}}:::plan - PgClassExpression303{{"PgClassExpression[303∈32] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression303 --> List284 - PgSelect304[["PgSelect[304∈32] ➊
ᐸpersonᐳ"]]:::plan - Object279 & PgClassExpression303 --> PgSelect304 - Access313{{"Access[313∈32] ➊
ᐸ304.cursorDetailsᐳ"}}:::plan - PgSelectSingle311 & Access313 --> PgCursor314 - Lambda285{{"Lambda[285∈32] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List284 --> Lambda285 - PgUpdateSingle276 --> PgClassExpression303 - First309{{"First[309∈32] ➊"}}:::plan - PgSelectRows310[["PgSelectRows[310∈32] ➊"]]:::plan - PgSelectRows310 --> First309 - PgSelect304 --> PgSelectRows310 - First309 --> PgSelectSingle311 - PgSelect304 --> Access313 - Lambda320{{"Lambda[320∈32] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant58 --> Lambda320 - PgSelect292[["PgSelect[292∈33] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression291{{"PgClassExpression[291∈33] ➊
ᐸ__person__ᐳ"}}:::plan - Object279 & PgClassExpression291 & Constant524 --> PgSelect292 - PgClassExpression287{{"PgClassExpression[287∈33] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgUpdateSingle276 --> PgClassExpression287 - PgClassExpression288{{"PgClassExpression[288∈33] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgUpdateSingle276 --> PgClassExpression288 - PgClassExpression289{{"PgClassExpression[289∈33] ➊
ᐸ__person__.”about”ᐳ"}}:::plan - PgUpdateSingle276 --> PgClassExpression289 - PgUpdateSingle276 --> PgClassExpression291 - First296{{"First[296∈33] ➊"}}:::plan - PgSelectRows297[["PgSelectRows[297∈33] ➊"]]:::plan - PgSelectRows297 --> First296 - PgSelect292 --> PgSelectRows297 - PgSelectSingle298{{"PgSelectSingle[298∈33] ➊
ᐸpersonᐳ"}}:::plan - First296 --> PgSelectSingle298 - PgClassExpression300{{"PgClassExpression[300∈33] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle298 --> PgClassExpression300 - List317{{"List[317∈35] ➊
ᐸ21,316ᐳ"}}:::plan - PgClassExpression316{{"PgClassExpression[316∈35] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression316 --> List317 - PgSelectSingle311 --> PgClassExpression316 - Lambda318{{"Lambda[318∈35] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List317 --> Lambda318 - PgUpdateSingle332[["PgUpdateSingle[332∈37] ➊
ᐸcompound_key(person_id_1,person_id_2;person_id_1,extra)ᐳ"]]:::sideeffectplan - Object335{{"Object[335∈37] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access328{{"Access[328∈37] ➊
ᐸ327.1ᐳ"}}:::plan - Access330{{"Access[330∈37] ➊
ᐸ327.2ᐳ"}}:::plan - Object335 -->|rejectNull| PgUpdateSingle332 - Access328 -->|rejectNull| PgUpdateSingle332 - Access330 & Constant538 & Constant539 --> PgUpdateSingle332 - Access333{{"Access[333∈37] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access334{{"Access[334∈37] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access333 & Access334 --> Object335 - Lambda327{{"Lambda[327∈37] ➊
ᐸdecode_CompoundKey_base64JSONᐳ"}}:::plan - Constant537 --> Lambda327 - Lambda327 --> Access328 - Lambda327 --> Access330 - __Value2 --> Access333 - __Value2 --> Access334 - Object336{{"Object[336∈37] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle332 --> Object336 - Lambda365{{"Lambda[365∈38] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant58 --> Lambda365 - List341{{"List[341∈39] ➊
ᐸ338,339,340ᐳ"}}:::plan - PgClassExpression339{{"PgClassExpression[339∈39] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression340{{"PgClassExpression[340∈39] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Constant338 & PgClassExpression339 & PgClassExpression340 --> List341 - PgSelect347[["PgSelect[347∈39] ➊
ᐸpersonᐳ"]]:::plan - Object335 & PgClassExpression339 --> PgSelect347 - PgSelect357[["PgSelect[357∈39] ➊
ᐸpersonᐳ"]]:::plan - Object335 & PgClassExpression340 --> PgSelect357 - PgUpdateSingle332 --> PgClassExpression339 - PgUpdateSingle332 --> PgClassExpression340 - Lambda342{{"Lambda[342∈39] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List341 --> Lambda342 - PgClassExpression345{{"PgClassExpression[345∈39] ➊
ᐸ__compound...__.”extra”ᐳ"}}:::plan - PgUpdateSingle332 --> PgClassExpression345 - First351{{"First[351∈39] ➊"}}:::plan - PgSelectRows352[["PgSelectRows[352∈39] ➊"]]:::plan - PgSelectRows352 --> First351 - PgSelect347 --> PgSelectRows352 - PgSelectSingle353{{"PgSelectSingle[353∈39] ➊
ᐸpersonᐳ"}}:::plan - First351 --> PgSelectSingle353 - First359{{"First[359∈39] ➊"}}:::plan - PgSelectRows360[["PgSelectRows[360∈39] ➊"]]:::plan - PgSelectRows360 --> First359 - PgSelect357 --> PgSelectRows360 - PgSelectSingle361{{"PgSelectSingle[361∈39] ➊
ᐸpersonᐳ"}}:::plan - First359 --> PgSelectSingle361 - PgClassExpression354{{"PgClassExpression[354∈40] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle353 --> PgClassExpression354 - PgClassExpression355{{"PgClassExpression[355∈40] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle353 --> PgClassExpression355 - PgClassExpression362{{"PgClassExpression[362∈41] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle361 --> PgClassExpression362 - PgClassExpression363{{"PgClassExpression[363∈41] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle361 --> PgClassExpression363 - PgUpdateSingle374[["PgUpdateSingle[374∈43] ➊
ᐸcompound_key(person_id_1,person_id_2;person_id_1,extra)ᐳ"]]:::sideeffectplan - Object377{{"Object[377∈43] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object377 & Constant538 & Constant538 & Constant532 & Constant540 --> PgUpdateSingle374 - Access375{{"Access[375∈43] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access376{{"Access[376∈43] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access375 & Access376 --> Object377 - Object378{{"Object[378∈43] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgUpdateSingle374 & Constant525 --> Object378 - __Value2 --> Access375 - __Value2 --> Access376 - Lambda406{{"Lambda[406∈44] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant58 --> Lambda406 - List382{{"List[382∈45] ➊
ᐸ338,380,381ᐳ"}}:::plan - PgClassExpression380{{"PgClassExpression[380∈45] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression381{{"PgClassExpression[381∈45] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Constant338 & PgClassExpression380 & PgClassExpression381 --> List382 - PgSelect388[["PgSelect[388∈45] ➊
ᐸpersonᐳ"]]:::plan - Object377 & PgClassExpression380 --> PgSelect388 - PgSelect398[["PgSelect[398∈45] ➊
ᐸpersonᐳ"]]:::plan - Object377 & PgClassExpression381 --> PgSelect398 - PgUpdateSingle374 --> PgClassExpression380 - PgUpdateSingle374 --> PgClassExpression381 - Lambda383{{"Lambda[383∈45] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List382 --> Lambda383 - PgClassExpression386{{"PgClassExpression[386∈45] ➊
ᐸ__compound...__.”extra”ᐳ"}}:::plan - PgUpdateSingle374 --> PgClassExpression386 - First392{{"First[392∈45] ➊"}}:::plan - PgSelectRows393[["PgSelectRows[393∈45] ➊"]]:::plan - PgSelectRows393 --> First392 - PgSelect388 --> PgSelectRows393 - PgSelectSingle394{{"PgSelectSingle[394∈45] ➊
ᐸpersonᐳ"}}:::plan - First392 --> PgSelectSingle394 - First400{{"First[400∈45] ➊"}}:::plan - PgSelectRows401[["PgSelectRows[401∈45] ➊"]]:::plan - PgSelectRows401 --> First400 - PgSelect398 --> PgSelectRows401 - PgSelectSingle402{{"PgSelectSingle[402∈45] ➊
ᐸpersonᐳ"}}:::plan - First400 --> PgSelectSingle402 - PgClassExpression395{{"PgClassExpression[395∈46] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle394 --> PgClassExpression395 - PgClassExpression396{{"PgClassExpression[396∈46] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle394 --> PgClassExpression396 - PgClassExpression403{{"PgClassExpression[403∈47] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle402 --> PgClassExpression403 - PgClassExpression404{{"PgClassExpression[404∈47] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle402 --> PgClassExpression404 - PgUpdateSingle414[["PgUpdateSingle[414∈49] ➊
ᐸcompound_key(person_id_1,person_id_2;extra)ᐳ"]]:::sideeffectplan - Object417{{"Object[417∈49] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object417 & Constant541 & Constant532 & Constant540 --> PgUpdateSingle414 - Access415{{"Access[415∈49] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access416{{"Access[416∈49] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access415 & Access416 --> Object417 - Object418{{"Object[418∈49] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgUpdateSingle414 & Constant529 --> Object418 - __Value2 --> Access415 - __Value2 --> Access416 - Lambda446{{"Lambda[446∈50] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant58 --> Lambda446 - List422{{"List[422∈51] ➊
ᐸ338,420,421ᐳ"}}:::plan - PgClassExpression420{{"PgClassExpression[420∈51] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression421{{"PgClassExpression[421∈51] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Constant338 & PgClassExpression420 & PgClassExpression421 --> List422 - PgSelect428[["PgSelect[428∈51] ➊
ᐸpersonᐳ"]]:::plan - Object417 & PgClassExpression420 --> PgSelect428 - PgSelect438[["PgSelect[438∈51] ➊
ᐸpersonᐳ"]]:::plan - Object417 & PgClassExpression421 --> PgSelect438 - PgUpdateSingle414 --> PgClassExpression420 - PgUpdateSingle414 --> PgClassExpression421 - Lambda423{{"Lambda[423∈51] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + PgClassExpression237{{"PgClassExpression[237∈5] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + Access233 --> PgClassExpression237 + PgClassExpression238{{"PgClassExpression[238∈5] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + Access233 --> PgClassExpression238 + PgClassExpression239{{"PgClassExpression[239∈5] ➊
ᐸ__person__.”about”ᐳ"}}:::plan + Access233 --> PgClassExpression239 + PgClassExpression241{{"PgClassExpression[241∈5] ➊
ᐸ__person__ᐳ"}}:::plan + Access233 --> PgClassExpression241 + PgClassExpression241 --> PgFromExpression244 + First245{{"First[245∈5] ➊"}}:::plan + PgSelectRows246[["PgSelectRows[246∈5] ➊"]]:::plan + PgSelectRows246 --> First245 + PgSelect242 --> PgSelectRows246 + PgSelectSingle247{{"PgSelectSingle[247∈5] ➊
ᐸpersonᐳ"}}:::plan + First245 --> PgSelectSingle247 + Constant525 --> PgFromExpression249 + PgClassExpression250{{"PgClassExpression[250∈5] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle247 --> PgClassExpression250 + First257{{"First[257∈5] ➊"}}:::plan + PgSelectRows258[["PgSelectRows[258∈5] ➊"]]:::plan + PgSelectRows258 --> First257 + PgSelect253 --> PgSelectRows258 + First257 --> PgSelectSingle259 + PgSelect253 --> Access261 + PgSelectSingle259 --> PgClassExpression263 + Lambda265{{"Lambda[265∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List264 --> Lambda265 + Lambda267{{"Lambda[267∈5] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant57 --> Lambda267 + PgUpdateSingle273[["PgUpdateSingle[273∈6] ➊
ᐸperson(email;)ᐳ"]]:::sideeffectplan + Object276{{"Object[276∈6] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object276 & Constant535 & ApplyInput277 --> PgUpdateSingle273 + PgSelect291[["PgSelect[291∈6] ➊
ᐸpersonᐳ"]]:::plan + PgFromExpression293{{"PgFromExpression[293∈6] ➊"}}:::plan + PgFromExpression298{{"PgFromExpression[298∈6] ➊"}}:::plan + Object276 & PgFromExpression293 & PgFromExpression298 --> PgSelect291 + Edge309{{"Edge[309∈6] ➊"}}:::plan + PgSelectSingle308{{"PgSelectSingle[308∈6] ➊
ᐸpersonᐳ"}}:::plan + PgCursor311{{"PgCursor[311∈6] ➊"}}:::plan + Connection305{{"Connection[305∈6] ➊
ᐸ302ᐳ"}}:::plan + PgSelectSingle308 & PgCursor311 & Connection305 --> Edge309 + Access274{{"Access[274∈6] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access275{{"Access[275∈6] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access274 & Access275 --> Object276 + List283{{"List[283∈6] ➊
ᐸ22,281ᐳ"}}:::plan + PgClassExpression281{{"PgClassExpression[281∈6] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression281 --> List283 + PgSelect302[["PgSelect[302∈6] ➊
ᐸpersonᐳ"]]:::plan + Object276 & PgClassExpression281 --> PgSelect302 + Access310{{"Access[310∈6] ➊
ᐸ302.cursorDetailsᐳ"}}:::plan + PgSelectSingle308 & Access310 --> PgCursor311 + List313{{"List[313∈6] ➊
ᐸ22,312ᐳ"}}:::plan + PgClassExpression312{{"PgClassExpression[312∈6] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression312 --> List313 + __Value2 --> Access274 + __Value2 --> Access275 + Object278{{"Object[278∈6] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle273 --> Object278 + Access279{{"Access[279∈6] ➊
ᐸ273.m.clientMutationIdᐳ"}}:::plan + PgUpdateSingle273 --> Access279 + Access282{{"Access[282∈6] ➊
ᐸ273.tᐳ"}}:::plan + Access282 --> PgClassExpression281 + PgUpdateSingle273 --> Access282 + Lambda284{{"Lambda[284∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List283 --> Lambda284 + PgClassExpression286{{"PgClassExpression[286∈6] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + Access282 --> PgClassExpression286 + PgClassExpression287{{"PgClassExpression[287∈6] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + Access282 --> PgClassExpression287 + PgClassExpression288{{"PgClassExpression[288∈6] ➊
ᐸ__person__.”about”ᐳ"}}:::plan + Access282 --> PgClassExpression288 + PgClassExpression290{{"PgClassExpression[290∈6] ➊
ᐸ__person__ᐳ"}}:::plan + Access282 --> PgClassExpression290 + PgClassExpression290 --> PgFromExpression293 + First294{{"First[294∈6] ➊"}}:::plan + PgSelectRows295[["PgSelectRows[295∈6] ➊"]]:::plan + PgSelectRows295 --> First294 + PgSelect291 --> PgSelectRows295 + PgSelectSingle296{{"PgSelectSingle[296∈6] ➊
ᐸpersonᐳ"}}:::plan + First294 --> PgSelectSingle296 + Constant525 --> PgFromExpression298 + PgClassExpression299{{"PgClassExpression[299∈6] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle296 --> PgClassExpression299 + First306{{"First[306∈6] ➊"}}:::plan + PgSelectRows307[["PgSelectRows[307∈6] ➊"]]:::plan + PgSelectRows307 --> First306 + PgSelect302 --> PgSelectRows307 + First306 --> PgSelectSingle308 + PgSelect302 --> Access310 + PgSelectSingle308 --> PgClassExpression312 + Lambda314{{"Lambda[314∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List313 --> Lambda314 + Lambda316{{"Lambda[316∈6] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant57 --> Lambda316 + PgUpdateSingle328[["PgUpdateSingle[328∈7] ➊
ᐸcompound_key(person_id_1,person_id_2;)ᐳ"]]:::sideeffectplan + Object331{{"Object[331∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access324{{"Access[324∈7] ➊
ᐸ323.1ᐳ"}}:::plan + Access326{{"Access[326∈7] ➊
ᐸ323.2ᐳ"}}:::plan + Object331 -->|rejectNull| PgUpdateSingle328 + Access324 -->|rejectNull| PgUpdateSingle328 + Access326 & ApplyInput332 --> PgUpdateSingle328 + List339{{"List[339∈7] ➊
ᐸ335,336,338ᐳ"}}:::plan + PgClassExpression336{{"PgClassExpression[336∈7] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression338{{"PgClassExpression[338∈7] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Constant335 & PgClassExpression336 & PgClassExpression338 --> List339 + Access329{{"Access[329∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access330{{"Access[330∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access329 & Access330 --> Object331 + PgSelect345[["PgSelect[345∈7] ➊
ᐸpersonᐳ"]]:::plan + Object331 & PgClassExpression336 --> PgSelect345 + PgSelect353[["PgSelect[353∈7] ➊
ᐸpersonᐳ"]]:::plan + Object331 & PgClassExpression338 --> PgSelect353 + Lambda323{{"Lambda[323∈7] ➊
ᐸdecode_CompoundKey_base64JSONᐳ"}}:::plan + Constant537 --> Lambda323 + Lambda323 --> Access324 + Lambda323 --> Access326 + __Value2 --> Access329 + __Value2 --> Access330 + Object333{{"Object[333∈7] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle328 --> Object333 + Access334{{"Access[334∈7] ➊
ᐸ328.m.clientMutationIdᐳ"}}:::plan + PgUpdateSingle328 --> Access334 + Access337{{"Access[337∈7] ➊
ᐸ328.tᐳ"}}:::plan + Access337 --> PgClassExpression336 + PgUpdateSingle328 --> Access337 + Access337 --> PgClassExpression338 + Lambda340{{"Lambda[340∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List339 --> Lambda340 + PgClassExpression343{{"PgClassExpression[343∈7] ➊
ᐸ__compound...__.”extra”ᐳ"}}:::plan + Access337 --> PgClassExpression343 + First347{{"First[347∈7] ➊"}}:::plan + PgSelectRows348[["PgSelectRows[348∈7] ➊"]]:::plan + PgSelectRows348 --> First347 + PgSelect345 --> PgSelectRows348 + PgSelectSingle349{{"PgSelectSingle[349∈7] ➊
ᐸpersonᐳ"}}:::plan + First347 --> PgSelectSingle349 + PgClassExpression350{{"PgClassExpression[350∈7] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle349 --> PgClassExpression350 + PgClassExpression351{{"PgClassExpression[351∈7] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle349 --> PgClassExpression351 + First355{{"First[355∈7] ➊"}}:::plan + PgSelectRows356[["PgSelectRows[356∈7] ➊"]]:::plan + PgSelectRows356 --> First355 + PgSelect353 --> PgSelectRows356 + PgSelectSingle357{{"PgSelectSingle[357∈7] ➊
ᐸpersonᐳ"}}:::plan + First355 --> PgSelectSingle357 + PgClassExpression358{{"PgClassExpression[358∈7] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle357 --> PgClassExpression358 + PgClassExpression359{{"PgClassExpression[359∈7] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle357 --> PgClassExpression359 + Lambda361{{"Lambda[361∈7] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant57 --> Lambda361 + PgUpdateSingle370[["PgUpdateSingle[370∈8] ➊
ᐸcompound_key(person_id_1,person_id_2;)ᐳ"]]:::sideeffectplan + Object373{{"Object[373∈8] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object373 & ApplyInput374 --> PgUpdateSingle370 + Constant538 -- 2 --> PgUpdateSingle370 + List381{{"List[381∈8] ➊
ᐸ335,378,380ᐳ"}}:::plan + PgClassExpression378{{"PgClassExpression[378∈8] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression380{{"PgClassExpression[380∈8] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Constant335 & PgClassExpression378 & PgClassExpression380 --> List381 + Access371{{"Access[371∈8] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access372{{"Access[372∈8] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access371 & Access372 --> Object373 + PgSelect387[["PgSelect[387∈8] ➊
ᐸpersonᐳ"]]:::plan + Object373 & PgClassExpression378 --> PgSelect387 + PgSelect395[["PgSelect[395∈8] ➊
ᐸpersonᐳ"]]:::plan + Object373 & PgClassExpression380 --> PgSelect395 + __Value2 --> Access371 + __Value2 --> Access372 + Object375{{"Object[375∈8] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle370 --> Object375 + Access376{{"Access[376∈8] ➊
ᐸ370.m.clientMutationIdᐳ"}}:::plan + PgUpdateSingle370 --> Access376 + Access379{{"Access[379∈8] ➊
ᐸ370.tᐳ"}}:::plan + Access379 --> PgClassExpression378 + PgUpdateSingle370 --> Access379 + Access379 --> PgClassExpression380 + Lambda382{{"Lambda[382∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List381 --> Lambda382 + PgClassExpression385{{"PgClassExpression[385∈8] ➊
ᐸ__compound...__.”extra”ᐳ"}}:::plan + Access379 --> PgClassExpression385 + First389{{"First[389∈8] ➊"}}:::plan + PgSelectRows390[["PgSelectRows[390∈8] ➊"]]:::plan + PgSelectRows390 --> First389 + PgSelect387 --> PgSelectRows390 + PgSelectSingle391{{"PgSelectSingle[391∈8] ➊
ᐸpersonᐳ"}}:::plan + First389 --> PgSelectSingle391 + PgClassExpression392{{"PgClassExpression[392∈8] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle391 --> PgClassExpression392 + PgClassExpression393{{"PgClassExpression[393∈8] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle391 --> PgClassExpression393 + First397{{"First[397∈8] ➊"}}:::plan + PgSelectRows398[["PgSelectRows[398∈8] ➊"]]:::plan + PgSelectRows398 --> First397 + PgSelect395 --> PgSelectRows398 + PgSelectSingle399{{"PgSelectSingle[399∈8] ➊
ᐸpersonᐳ"}}:::plan + First397 --> PgSelectSingle399 + PgClassExpression400{{"PgClassExpression[400∈8] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle399 --> PgClassExpression400 + PgClassExpression401{{"PgClassExpression[401∈8] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle399 --> PgClassExpression401 + Lambda403{{"Lambda[403∈8] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant57 --> Lambda403 + PgUpdateSingle411[["PgUpdateSingle[411∈9] ➊
ᐸcompound_key(person_id_1,person_id_2;)ᐳ"]]:::sideeffectplan + Object414{{"Object[414∈9] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object414 & Constant541 & Constant532 & ApplyInput415 --> PgUpdateSingle411 + List422{{"List[422∈9] ➊
ᐸ335,419,421ᐳ"}}:::plan + PgClassExpression419{{"PgClassExpression[419∈9] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression421{{"PgClassExpression[421∈9] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Constant335 & PgClassExpression419 & PgClassExpression421 --> List422 + Access412{{"Access[412∈9] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access413{{"Access[413∈9] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access412 & Access413 --> Object414 + PgSelect428[["PgSelect[428∈9] ➊
ᐸpersonᐳ"]]:::plan + Object414 & PgClassExpression419 --> PgSelect428 + PgSelect436[["PgSelect[436∈9] ➊
ᐸpersonᐳ"]]:::plan + Object414 & PgClassExpression421 --> PgSelect436 + __Value2 --> Access412 + __Value2 --> Access413 + Object416{{"Object[416∈9] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle411 --> Object416 + Access417{{"Access[417∈9] ➊
ᐸ411.m.clientMutationIdᐳ"}}:::plan + PgUpdateSingle411 --> Access417 + Access420{{"Access[420∈9] ➊
ᐸ411.tᐳ"}}:::plan + Access420 --> PgClassExpression419 + PgUpdateSingle411 --> Access420 + Access420 --> PgClassExpression421 + Lambda423{{"Lambda[423∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List422 --> Lambda423 - PgClassExpression426{{"PgClassExpression[426∈51] ➊
ᐸ__compound...__.”extra”ᐳ"}}:::plan - PgUpdateSingle414 --> PgClassExpression426 - First432{{"First[432∈51] ➊"}}:::plan - PgSelectRows433[["PgSelectRows[433∈51] ➊"]]:::plan - PgSelectRows433 --> First432 - PgSelect428 --> PgSelectRows433 - PgSelectSingle434{{"PgSelectSingle[434∈51] ➊
ᐸpersonᐳ"}}:::plan - First432 --> PgSelectSingle434 - First440{{"First[440∈51] ➊"}}:::plan - PgSelectRows441[["PgSelectRows[441∈51] ➊"]]:::plan - PgSelectRows441 --> First440 - PgSelect438 --> PgSelectRows441 - PgSelectSingle442{{"PgSelectSingle[442∈51] ➊
ᐸpersonᐳ"}}:::plan - First440 --> PgSelectSingle442 - PgClassExpression435{{"PgClassExpression[435∈52] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle434 --> PgClassExpression435 - PgClassExpression436{{"PgClassExpression[436∈52] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle434 --> PgClassExpression436 - PgClassExpression443{{"PgClassExpression[443∈53] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle442 --> PgClassExpression443 - PgClassExpression444{{"PgClassExpression[444∈53] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle442 --> PgClassExpression444 - PgUpdateSingle452[["PgUpdateSingle[452∈55] ➊
ᐸperson(email;email)ᐳ"]]:::sideeffectplan - Object455{{"Object[455∈55] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object455 & Constant524 & Constant542 --> PgUpdateSingle452 - Access453{{"Access[453∈55] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access454{{"Access[454∈55] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access453 & Access454 --> Object455 - __Value2 --> Access453 - __Value2 --> Access454 - Object456{{"Object[456∈55] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle452 --> Object456 - Edge488{{"Edge[488∈56] ➊"}}:::plan - PgSelectSingle487{{"PgSelectSingle[487∈56] ➊
ᐸpersonᐳ"}}:::plan - PgCursor490{{"PgCursor[490∈56] ➊"}}:::plan - Connection484{{"Connection[484∈56] ➊
ᐸ480ᐳ"}}:::plan - PgSelectSingle487 & PgCursor490 & Connection484 --> Edge488 - List460{{"List[460∈56] ➊
ᐸ21,479ᐳ"}}:::plan - PgClassExpression479{{"PgClassExpression[479∈56] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression479 --> List460 - PgSelect480[["PgSelect[480∈56] ➊
ᐸpersonᐳ"]]:::plan - Object455 & PgClassExpression479 --> PgSelect480 - Access489{{"Access[489∈56] ➊
ᐸ480.cursorDetailsᐳ"}}:::plan - PgSelectSingle487 & Access489 --> PgCursor490 - Lambda461{{"Lambda[461∈56] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + PgClassExpression426{{"PgClassExpression[426∈9] ➊
ᐸ__compound...__.”extra”ᐳ"}}:::plan + Access420 --> PgClassExpression426 + First430{{"First[430∈9] ➊"}}:::plan + PgSelectRows431[["PgSelectRows[431∈9] ➊"]]:::plan + PgSelectRows431 --> First430 + PgSelect428 --> PgSelectRows431 + PgSelectSingle432{{"PgSelectSingle[432∈9] ➊
ᐸpersonᐳ"}}:::plan + First430 --> PgSelectSingle432 + PgClassExpression433{{"PgClassExpression[433∈9] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle432 --> PgClassExpression433 + PgClassExpression434{{"PgClassExpression[434∈9] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle432 --> PgClassExpression434 + First438{{"First[438∈9] ➊"}}:::plan + PgSelectRows439[["PgSelectRows[439∈9] ➊"]]:::plan + PgSelectRows439 --> First438 + PgSelect436 --> PgSelectRows439 + PgSelectSingle440{{"PgSelectSingle[440∈9] ➊
ᐸpersonᐳ"}}:::plan + First438 --> PgSelectSingle440 + PgClassExpression441{{"PgClassExpression[441∈9] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle440 --> PgClassExpression441 + PgClassExpression442{{"PgClassExpression[442∈9] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle440 --> PgClassExpression442 + Lambda444{{"Lambda[444∈9] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant57 --> Lambda444 + PgUpdateSingle450[["PgUpdateSingle[450∈10] ➊
ᐸperson(email;)ᐳ"]]:::sideeffectplan + Object453{{"Object[453∈10] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object453 & Constant525 & ApplyInput454 --> PgUpdateSingle450 + PgSelect468[["PgSelect[468∈10] ➊
ᐸpersonᐳ"]]:::plan + PgFromExpression470{{"PgFromExpression[470∈10] ➊"}}:::plan + PgFromExpression475{{"PgFromExpression[475∈10] ➊"}}:::plan + Object453 & PgFromExpression470 & PgFromExpression475 --> PgSelect468 + Edge486{{"Edge[486∈10] ➊"}}:::plan + PgSelectSingle485{{"PgSelectSingle[485∈10] ➊
ᐸpersonᐳ"}}:::plan + PgCursor488{{"PgCursor[488∈10] ➊"}}:::plan + Connection482{{"Connection[482∈10] ➊
ᐸ479ᐳ"}}:::plan + PgSelectSingle485 & PgCursor488 & Connection482 --> Edge486 + Access451{{"Access[451∈10] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access452{{"Access[452∈10] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access451 & Access452 --> Object453 + List460{{"List[460∈10] ➊
ᐸ22,458ᐳ"}}:::plan + PgClassExpression458{{"PgClassExpression[458∈10] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression458 --> List460 + PgSelect479[["PgSelect[479∈10] ➊
ᐸpersonᐳ"]]:::plan + Object453 & PgClassExpression458 --> PgSelect479 + Access487{{"Access[487∈10] ➊
ᐸ479.cursorDetailsᐳ"}}:::plan + PgSelectSingle485 & Access487 --> PgCursor488 + List490{{"List[490∈10] ➊
ᐸ22,489ᐳ"}}:::plan + PgClassExpression489{{"PgClassExpression[489∈10] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant22 & PgClassExpression489 --> List490 + __Value2 --> Access451 + __Value2 --> Access452 + Object455{{"Object[455∈10] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle450 --> Object455 + Access456{{"Access[456∈10] ➊
ᐸ450.m.clientMutationIdᐳ"}}:::plan + PgUpdateSingle450 --> Access456 + Access459{{"Access[459∈10] ➊
ᐸ450.tᐳ"}}:::plan + Access459 --> PgClassExpression458 + PgUpdateSingle450 --> Access459 + Lambda461{{"Lambda[461∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List460 --> Lambda461 - PgUpdateSingle452 --> PgClassExpression479 - First485{{"First[485∈56] ➊"}}:::plan - PgSelectRows486[["PgSelectRows[486∈56] ➊"]]:::plan - PgSelectRows486 --> First485 - PgSelect480 --> PgSelectRows486 - First485 --> PgSelectSingle487 - PgSelect480 --> Access489 - Lambda496{{"Lambda[496∈56] ➊
ᐸrawEncodeᐳ"}}:::plan - Constant58 --> Lambda496 - PgSelect468[["PgSelect[468∈57] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression467{{"PgClassExpression[467∈57] ➊
ᐸ__person__ᐳ"}}:::plan - Object455 & PgClassExpression467 & Constant524 --> PgSelect468 - PgClassExpression463{{"PgClassExpression[463∈57] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgUpdateSingle452 --> PgClassExpression463 - PgClassExpression464{{"PgClassExpression[464∈57] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgUpdateSingle452 --> PgClassExpression464 - PgClassExpression465{{"PgClassExpression[465∈57] ➊
ᐸ__person__.”about”ᐳ"}}:::plan - PgUpdateSingle452 --> PgClassExpression465 - PgUpdateSingle452 --> PgClassExpression467 - First472{{"First[472∈57] ➊"}}:::plan - PgSelectRows473[["PgSelectRows[473∈57] ➊"]]:::plan - PgSelectRows473 --> First472 - PgSelect468 --> PgSelectRows473 - PgSelectSingle474{{"PgSelectSingle[474∈57] ➊
ᐸpersonᐳ"}}:::plan - First472 --> PgSelectSingle474 - PgClassExpression476{{"PgClassExpression[476∈57] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle474 --> PgClassExpression476 - List493{{"List[493∈59] ➊
ᐸ21,492ᐳ"}}:::plan - PgClassExpression492{{"PgClassExpression[492∈59] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant21 & PgClassExpression492 --> List493 - PgSelectSingle487 --> PgClassExpression492 - Lambda494{{"Lambda[494∈59] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List493 --> Lambda494 - PgUpdateSingle502[["PgUpdateSingle[502∈61] ➊
ᐸdefault_value(id;null_value)ᐳ"]]:::sideeffectplan - Object505{{"Object[505∈61] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object505 & Constant543 & Constant20 --> PgUpdateSingle502 - Access503{{"Access[503∈61] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access504{{"Access[504∈61] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access503 & Access504 --> Object505 - __Value2 --> Access503 - __Value2 --> Access504 - Object506{{"Object[506∈61] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle502 --> Object506 - PgClassExpression507{{"PgClassExpression[507∈63] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan - PgUpdateSingle502 --> PgClassExpression507 - PgClassExpression508{{"PgClassExpression[508∈63] ➊
ᐸ__default_...ull_value”ᐳ"}}:::plan - PgUpdateSingle502 --> PgClassExpression508 - PgUpdateSingle514[["PgUpdateSingle[514∈64] ➊
ᐸno_primary_key(id;str)ᐳ"]]:::sideeffectplan - Object517{{"Object[517∈64] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object517 & Constant543 & Constant544 --> PgUpdateSingle514 - Access515{{"Access[515∈64] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access516{{"Access[516∈64] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access515 & Access516 --> Object517 + PgClassExpression463{{"PgClassExpression[463∈10] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + Access459 --> PgClassExpression463 + PgClassExpression464{{"PgClassExpression[464∈10] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + Access459 --> PgClassExpression464 + PgClassExpression465{{"PgClassExpression[465∈10] ➊
ᐸ__person__.”about”ᐳ"}}:::plan + Access459 --> PgClassExpression465 + PgClassExpression467{{"PgClassExpression[467∈10] ➊
ᐸ__person__ᐳ"}}:::plan + Access459 --> PgClassExpression467 + PgClassExpression467 --> PgFromExpression470 + First471{{"First[471∈10] ➊"}}:::plan + PgSelectRows472[["PgSelectRows[472∈10] ➊"]]:::plan + PgSelectRows472 --> First471 + PgSelect468 --> PgSelectRows472 + PgSelectSingle473{{"PgSelectSingle[473∈10] ➊
ᐸpersonᐳ"}}:::plan + First471 --> PgSelectSingle473 + Constant525 --> PgFromExpression475 + PgClassExpression476{{"PgClassExpression[476∈10] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle473 --> PgClassExpression476 + First483{{"First[483∈10] ➊"}}:::plan + PgSelectRows484[["PgSelectRows[484∈10] ➊"]]:::plan + PgSelectRows484 --> First483 + PgSelect479 --> PgSelectRows484 + First483 --> PgSelectSingle485 + PgSelect479 --> Access487 + PgSelectSingle485 --> PgClassExpression489 + Lambda491{{"Lambda[491∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List490 --> Lambda491 + Lambda493{{"Lambda[493∈10] ➊
ᐸrawEncodeᐳ"}}:::plan + Constant57 --> Lambda493 + PgUpdateSingle499[["PgUpdateSingle[499∈11] ➊
ᐸdefault_value(id;)ᐳ"]]:::sideeffectplan + Object502{{"Object[502∈11] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object502 & Constant543 & ApplyInput503 --> PgUpdateSingle499 + Access500{{"Access[500∈11] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access501{{"Access[501∈11] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access500 & Access501 --> Object502 + __Value2 --> Access500 + __Value2 --> Access501 + Object504{{"Object[504∈11] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle499 --> Object504 + PgClassExpression505{{"PgClassExpression[505∈11] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan + Access506{{"Access[506∈11] ➊
ᐸ499.tᐳ"}}:::plan + Access506 --> PgClassExpression505 + PgUpdateSingle499 --> Access506 + PgClassExpression507{{"PgClassExpression[507∈11] ➊
ᐸ__default_...ull_value”ᐳ"}}:::plan + Access506 --> PgClassExpression507 + PgUpdateSingle513[["PgUpdateSingle[513∈12] ➊
ᐸno_primary_key(id;)ᐳ"]]:::sideeffectplan + Object516{{"Object[516∈12] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object516 & Constant543 & ApplyInput517 --> PgUpdateSingle513 + Access514{{"Access[514∈12] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access515{{"Access[515∈12] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access514 & Access515 --> Object516 + __Value2 --> Access514 __Value2 --> Access515 - __Value2 --> Access516 - Object518{{"Object[518∈64] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle514 --> Object518 - PgClassExpression519{{"PgClassExpression[519∈66] ➊
ᐸ__no_primary_key__.”id”ᐳ"}}:::plan - PgUpdateSingle514 --> PgClassExpression519 - PgClassExpression520{{"PgClassExpression[520∈66] ➊
ᐸ__no_prima...ey__.”str”ᐳ"}}:::plan - PgUpdateSingle514 --> PgClassExpression520 + Object518{{"Object[518∈12] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle513 --> Object518 + PgClassExpression519{{"PgClassExpression[519∈12] ➊
ᐸ__no_primary_key__.”id”ᐳ"}}:::plan + Access520{{"Access[520∈12] ➊
ᐸ513.tᐳ"}}:::plan + Access520 --> PgClassExpression519 + PgUpdateSingle513 --> Access520 + PgClassExpression521{{"PgClassExpression[521∈12] ➊
ᐸ__no_prima...ey__.”str”ᐳ"}}:::plan + Access520 --> PgClassExpression521 %% define steps + %% implicit side effects + PgUpdateSingle69 -.-o PgFromExpression94 + PgUpdateSingle69 -.-o Lambda112 + PgUpdateSingle69 -.-o Connection101 + PgUpdateSingle122 -.-o PgFromExpression147 + PgUpdateSingle122 -.-o Lambda165 + PgUpdateSingle122 -.-o Connection154 + PgUpdateSingle174 -.-o PgFromExpression199 + PgUpdateSingle174 -.-o Lambda217 + PgUpdateSingle174 -.-o Connection206 + PgUpdateSingle224 -.-o PgFromExpression249 + PgUpdateSingle224 -.-o Lambda267 + PgUpdateSingle224 -.-o Connection256 + PgUpdateSingle273 -.-o PgFromExpression298 + PgUpdateSingle273 -.-o Lambda316 + PgUpdateSingle273 -.-o Connection305 + PgUpdateSingle328 -.-o Lambda361 + PgUpdateSingle370 -.-o Lambda403 + PgUpdateSingle411 -.-o Lambda444 + PgUpdateSingle450 -.-o PgFromExpression475 + PgUpdateSingle450 -.-o Lambda493 + PgUpdateSingle450 -.-o Connection482 + subgraph "Buckets for mutations/v4/mutation-update" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Lambda12,Access13,Access16,Access17,Object18,Constant20,Constant21,Constant58,Constant338,Constant521,Constant522,Constant523,Constant524,Constant525,Constant526,Constant527,Constant528,Constant529,Constant530,Constant532,Constant533,Constant534,Constant535,Constant536,Constant537,Constant538,Constant539,Constant540,Constant541,Constant542,Constant543,Constant544 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 18, 13, 522, 523, 21, 58, 524, 4, 20

1: PgUpdateSingle[15]
2:
ᐳ: Object[19]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject9,Lambda12,Access13,Access16,Access17,Object18,ApplyInput19,Constant22,PgFromExpression40,Connection47,Constant57,Lambda58,__InputObject59,__InputObject62,ApplyInput73,__InputObject113,__InputObject116,ApplyInput126,__InputObject166,__InputObject169,Constant170,ApplyInput178,__InputObject218,__InputObject221,ApplyInput228,__InputObject268,__InputObject271,ApplyInput277,__InputObject317,__InputObject320,ApplyInput332,Constant335,__InputObject362,__InputObject366,ApplyInput374,__InputObject404,__InputObject408,ApplyInput415,__InputObject445,__InputObject448,ApplyInput454,__InputObject494,__InputObject497,ApplyInput503,__InputObject508,__InputObject511,ApplyInput517,Constant522,Constant523,Constant524,Constant525,Constant526,Constant527,Constant528,Constant529,Constant530,Constant531,Constant532,Constant533,Constant534,Constant535,Constant536,Constant537,Constant538,Constant539,Constant540,Constant541,Constant542,Constant543,Constant544 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 18, 13, 19, 22, 40, 47, 4, 58

1: PgUpdateSingle[15]
2:
ᐳ: 20, 21, 24, 23, 25, 26, 28, 29, 30, 32, 35
3: PgSelect[33], PgSelect[44]
ᐳ: Access[52]
4: PgSelectRows[37], PgSelectRows[49]
ᐳ: 36, 38, 41, 48, 50, 53, 54, 55, 56, 51"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUpdateSingle15,Object19 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 21, 15, 18, 58, 19, 524, 4, 20

ROOT Object{1}ᐸ{result}ᐳ[19]
1:
ᐳ: 42, 47, 59, 23, 24
2: PgSelect[43]
ᐳ: Access[52]
3: PgSelectRows[49]
ᐳ: 48, 50, 53, 51"):::bucket + class Bucket1,PgUpdateSingle15,Object20,Access21,PgClassExpression23,Access24,List25,Lambda26,PgClassExpression28,PgClassExpression29,PgClassExpression30,PgClassExpression32,PgSelect33,PgFromExpression35,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression41,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,Edge51,Access52,PgCursor53,PgClassExpression54,List55,Lambda56 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 527, 73, 2, 22, 525, 57, 4

1: Access[70]
2: Access[71]
3: Object[72]
4: Lambda[66]
5: Access[67]
6: PgUpdateSingle[69]
7:
ᐳ: 74, 75, 78, 94, 101, 112, 77, 79, 80, 82, 83, 84, 86, 89
8: PgSelect[87], PgSelect[98]
ᐳ: Access[106]
9: PgSelectRows[91], PgSelectRows[103]
ᐳ: 90, 92, 95, 102, 104, 107, 108, 109, 110, 105"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,List23,Lambda24,PgClassExpression42,PgSelect43,Connection47,First48,PgSelectRows49,PgSelectSingle50,Edge51,Access52,PgCursor53,Lambda59 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 18, 524, 24, 42

ROOT PgUpdateSingle{1}ᐸperson(id;person_full_name,about)ᐳ[15]
1:
ᐳ: 26, 27, 28, 30
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: 35, 37, 39"):::bucket + class Bucket2,Lambda66,Access67,PgUpdateSingle69,Access70,Access71,Object72,Object74,Access75,PgClassExpression77,Access78,List79,Lambda80,PgClassExpression82,PgClassExpression83,PgClassExpression84,PgClassExpression86,PgSelect87,PgFromExpression89,First90,PgSelectRows91,PgSelectSingle92,PgFromExpression94,PgClassExpression95,PgSelect98,Connection101,First102,PgSelectRows103,PgSelectSingle104,Edge105,Access106,PgCursor107,PgClassExpression108,List109,Lambda110,Lambda112 bucket2 + Bucket3("Bucket 3 (mutationField)
Deps: 527, 126, 2, 22, 525, 57, 4

1: Access[123]
2: Access[124]
3: Object[125]
4: Lambda[119]
5: Access[120]
6: PgUpdateSingle[122]
7:
ᐳ: 127, 128, 131, 147, 154, 165, 130, 132, 133, 135, 136, 137, 139, 142
8: PgSelect[140], PgSelect[151]
ᐳ: Access[159]
9: PgSelectRows[144], PgSelectRows[156]
ᐳ: 143, 145, 148, 155, 157, 160, 161, 162, 163, 158"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression26,PgClassExpression27,PgClassExpression28,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression39 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 51, 50, 21, 53

ROOT Edge{2}[51]"):::bucket + class Bucket3,Lambda119,Access120,PgUpdateSingle122,Access123,Access124,Object125,Object127,Access128,PgClassExpression130,Access131,List132,Lambda133,PgClassExpression135,PgClassExpression136,PgClassExpression137,PgClassExpression139,PgSelect140,PgFromExpression142,First143,PgSelectRows144,PgSelectSingle145,PgFromExpression147,PgClassExpression148,PgSelect151,Connection154,First155,PgSelectRows156,PgSelectSingle157,Edge158,Access159,PgCursor160,PgClassExpression161,List162,Lambda163,Lambda165 bucket3 + Bucket4("Bucket 4 (mutationField)
Deps: 527, 178, 2, 22, 525, 57, 4

1: Access[175]
2: Access[176]
3: Object[177]
4: Lambda[171]
5: Access[172]
6: PgUpdateSingle[174]
7:
ᐳ: 179, 180, 183, 199, 206, 217, 182, 184, 185, 187, 188, 189, 191, 194
8: PgSelect[192], PgSelect[203]
ᐳ: Access[211]
9: PgSelectRows[196], PgSelectRows[208]
ᐳ: 195, 197, 200, 207, 209, 212, 213, 214, 215, 210"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 50, 21

ROOT PgSelectSingle{2}ᐸpersonᐳ[50]"):::bucket + class Bucket4,Lambda171,Access172,PgUpdateSingle174,Access175,Access176,Object177,Object179,Access180,PgClassExpression182,Access183,List184,Lambda185,PgClassExpression187,PgClassExpression188,PgClassExpression189,PgClassExpression191,PgSelect192,PgFromExpression194,First195,PgSelectRows196,PgSelectSingle197,PgFromExpression199,PgClassExpression200,PgSelect203,Connection206,First207,PgSelectRows208,PgSelectSingle209,Edge210,Access211,PgCursor212,PgClassExpression213,List214,Lambda215,Lambda217 bucket4 + Bucket5("Bucket 5 (mutationField)
Deps: 532, 228, 2, 22, 525, 57, 4

1: Access[225]
2: Access[226]
3: Object[227]
4: PgUpdateSingle[224]
5:
ᐳ: 229, 230, 233, 249, 256, 267, 232, 234, 235, 237, 238, 239, 241, 244
6: PgSelect[242], PgSelect[253]
ᐳ: Access[261]
7: PgSelectRows[246], PgSelectRows[258]
ᐳ: 245, 247, 250, 257, 259, 262, 263, 264, 265, 260"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression55,List56,Lambda57 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 4, 59

ROOT __ValueᐸrootValueᐳ[4]"):::bucket + class Bucket5,PgUpdateSingle224,Access225,Access226,Object227,Object229,Access230,PgClassExpression232,Access233,List234,Lambda235,PgClassExpression237,PgClassExpression238,PgClassExpression239,PgClassExpression241,PgSelect242,PgFromExpression244,First245,PgSelectRows246,PgSelectSingle247,PgFromExpression249,PgClassExpression250,PgSelect253,Connection256,First257,PgSelectRows258,PgSelectSingle259,Edge260,Access261,PgCursor262,PgClassExpression263,List264,Lambda265,Lambda267 bucket5 + Bucket6("Bucket 6 (mutationField)
Deps: 535, 277, 2, 22, 525, 57, 4

1: Access[274]
2: Access[275]
3: Object[276]
4: PgUpdateSingle[273]
5:
ᐳ: 278, 279, 282, 298, 305, 316, 281, 283, 284, 286, 287, 288, 290, 293
6: PgSelect[291], PgSelect[302]
ᐳ: Access[310]
7: PgSelectRows[295], PgSelectRows[307]
ᐳ: 294, 296, 299, 306, 308, 311, 312, 313, 314, 309"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6 bucket6 - Bucket7("Bucket 7 (mutationField)
Deps: 526, 527, 528, 2, 525, 21, 58, 524, 4

1: Access[71]
2: Access[72]
3: Object[73]
4: Lambda[67]
5: Access[68]
6: PgUpdateSingle[70]
7:
ᐳ: Object[74]"):::bucket + class Bucket6,PgUpdateSingle273,Access274,Access275,Object276,Object278,Access279,PgClassExpression281,Access282,List283,Lambda284,PgClassExpression286,PgClassExpression287,PgClassExpression288,PgClassExpression290,PgSelect291,PgFromExpression293,First294,PgSelectRows295,PgSelectSingle296,PgFromExpression298,PgClassExpression299,PgSelect302,Connection305,First306,PgSelectRows307,PgSelectSingle308,Edge309,Access310,PgCursor311,PgClassExpression312,List313,Lambda314,Lambda316 bucket6 + Bucket7("Bucket 7 (mutationField)
Deps: 537, 332, 2, 335, 57, 4

1: Access[329]
2: Access[330]
3: Object[331]
4: Lambda[323]
5: Access[324]
6: Access[326]
7: PgUpdateSingle[328]
8:
ᐳ: 333, 334, 337, 361, 336, 338, 339, 340, 343
9: PgSelect[345], PgSelect[353]
10: PgSelectRows[348], PgSelectRows[356]
ᐳ: 347, 349, 350, 351, 355, 357, 358, 359"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,Lambda67,Access68,PgUpdateSingle70,Access71,Access72,Object73,Object74 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 21, 70, 73, 58, 74, 524, 4, 525

ROOT Object{7}ᐸ{result,clientMutationId}ᐳ[74]
1:
ᐳ: 96, 101, 113, 77, 78
2: PgSelect[97]
ᐳ: Access[106]
3: PgSelectRows[103]
ᐳ: 102, 104, 107, 105"):::bucket + class Bucket7,Lambda323,Access324,Access326,PgUpdateSingle328,Access329,Access330,Object331,Object333,Access334,PgClassExpression336,Access337,PgClassExpression338,List339,Lambda340,PgClassExpression343,PgSelect345,First347,PgSelectRows348,PgSelectSingle349,PgClassExpression350,PgClassExpression351,PgSelect353,First355,PgSelectRows356,PgSelectSingle357,PgClassExpression358,PgClassExpression359,Lambda361 bucket7 + Bucket8("Bucket 8 (mutationField)
Deps: 538, 374, 2, 335, 57, 4

1: Access[371]
2: Access[372]
3: Object[373]
4: PgUpdateSingle[370]
5:
ᐳ: 375, 376, 379, 403, 378, 380, 381, 382, 385
6: PgSelect[387], PgSelect[395]
7: PgSelectRows[390], PgSelectRows[398]
ᐳ: 389, 391, 392, 393, 397, 399, 400, 401"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,List77,Lambda78,PgClassExpression96,PgSelect97,Connection101,First102,PgSelectRows103,PgSelectSingle104,Edge105,Access106,PgCursor107,Lambda113 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 70, 73, 524, 78, 96

ROOT PgUpdateSingle{7}ᐸperson(id;person_full_name,email)ᐳ[70]
1:
ᐳ: 80, 81, 82, 84
2: PgSelect[85]
3: PgSelectRows[90]
ᐳ: 89, 91, 93"):::bucket + class Bucket8,PgUpdateSingle370,Access371,Access372,Object373,Object375,Access376,PgClassExpression378,Access379,PgClassExpression380,List381,Lambda382,PgClassExpression385,PgSelect387,First389,PgSelectRows390,PgSelectSingle391,PgClassExpression392,PgClassExpression393,PgSelect395,First397,PgSelectRows398,PgSelectSingle399,PgClassExpression400,PgClassExpression401,Lambda403 bucket8 + Bucket9("Bucket 9 (mutationField)
Deps: 541, 532, 415, 2, 335, 57, 4

1: Access[412]
2: Access[413]
3: Object[414]
4: PgUpdateSingle[411]
5:
ᐳ: 416, 417, 420, 444, 419, 421, 422, 423, 426
6: PgSelect[428], PgSelect[436]
7: PgSelectRows[431], PgSelectRows[439]
ᐳ: 430, 432, 433, 434, 438, 440, 441, 442"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression80,PgClassExpression81,PgClassExpression82,PgClassExpression84,PgSelect85,First89,PgSelectRows90,PgSelectSingle91,PgClassExpression93 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 105, 104, 21, 107

ROOT Edge{8}[105]"):::bucket + class Bucket9,PgUpdateSingle411,Access412,Access413,Object414,Object416,Access417,PgClassExpression419,Access420,PgClassExpression421,List422,Lambda423,PgClassExpression426,PgSelect428,First430,PgSelectRows431,PgSelectSingle432,PgClassExpression433,PgClassExpression434,PgSelect436,First438,PgSelectRows439,PgSelectSingle440,PgClassExpression441,PgClassExpression442,Lambda444 bucket9 + Bucket10("Bucket 10 (mutationField)
Deps: 525, 454, 2, 22, 57, 4

1: Access[451]
2: Access[452]
3: Object[453]
4: PgUpdateSingle[450]
5:
ᐳ: 455, 456, 459, 475, 482, 493, 458, 460, 461, 463, 464, 465, 467, 470
6: PgSelect[468], PgSelect[479]
ᐳ: Access[487]
7: PgSelectRows[472], PgSelectRows[484]
ᐳ: 471, 473, 476, 483, 485, 488, 489, 490, 491, 486"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 104, 21

ROOT PgSelectSingle{8}ᐸpersonᐳ[104]"):::bucket + class Bucket10,PgUpdateSingle450,Access451,Access452,Object453,Object455,Access456,PgClassExpression458,Access459,List460,Lambda461,PgClassExpression463,PgClassExpression464,PgClassExpression465,PgClassExpression467,PgSelect468,PgFromExpression470,First471,PgSelectRows472,PgSelectSingle473,PgFromExpression475,PgClassExpression476,PgSelect479,Connection482,First483,PgSelectRows484,PgSelectSingle485,Edge486,Access487,PgCursor488,PgClassExpression489,List490,Lambda491,Lambda493 bucket10 + Bucket11("Bucket 11 (mutationField)
Deps: 543, 503, 2

1: Access[500]
2: Access[501]
3: Object[502]
4: PgUpdateSingle[499]
5:
ᐳ: 504, 506, 505, 507"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression109,List110,Lambda111 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 4, 113

ROOT __ValueᐸrootValueᐳ[4]"):::bucket + class Bucket11,PgUpdateSingle499,Access500,Access501,Object502,Object504,PgClassExpression505,Access506,PgClassExpression507 bucket11 + Bucket12("Bucket 12 (mutationField)
Deps: 543, 517, 2

1: Access[514]
2: Access[515]
3: Object[516]
4: PgUpdateSingle[513]
5:
ᐳ: 518, 520, 519, 521"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12 bucket12 - Bucket13("Bucket 13 (mutationField)
Deps: 526, 530, 2, 529, 21, 58, 524, 4

1: Access[124]
2: Access[125]
3: Object[126]
4: Lambda[120]
5: Access[121]
6: PgUpdateSingle[123]
7:
ᐳ: Object[127]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,Lambda120,Access121,PgUpdateSingle123,Access124,Access125,Object126,Object127 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 21, 123, 126, 58, 127, 524, 4, 529

ROOT Object{13}ᐸ{result,clientMutationId}ᐳ[127]
1:
ᐳ: 149, 154, 166, 130, 131
2: PgSelect[150]
ᐳ: Access[159]
3: PgSelectRows[156]
ᐳ: 155, 157, 160, 158"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,List130,Lambda131,PgClassExpression149,PgSelect150,Connection154,First155,PgSelectRows156,PgSelectSingle157,Edge158,Access159,PgCursor160,Lambda166 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 123, 126, 524, 131, 149

ROOT PgUpdateSingle{13}ᐸperson(id;about)ᐳ[123]
1:
ᐳ: 133, 134, 135, 137
2: PgSelect[138]
3: PgSelectRows[143]
ᐳ: 142, 144, 146"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15,PgClassExpression133,PgClassExpression134,PgClassExpression135,PgClassExpression137,PgSelect138,First142,PgSelectRows143,PgSelectSingle144,PgClassExpression146 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 158, 157, 21, 160

ROOT Edge{14}[158]"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16 bucket16 - Bucket17("Bucket 17 (nullableBoundary)
Deps: 157, 21

ROOT PgSelectSingle{14}ᐸpersonᐳ[157]"):::bucket - classDef bucket17 stroke:#696969 - class Bucket17,PgClassExpression162,List163,Lambda164 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 4, 166

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket18 stroke:#00bfff - class Bucket18 bucket18 - Bucket19("Bucket 19 (mutationField)
Deps: 526, 20, 2, 21, 58, 524, 4

1: Access[176]
2: Access[177]
3: Object[178]
4: Lambda[172]
5: Access[173]
6: PgUpdateSingle[175]
7:
ᐳ: Object[179]"):::bucket - classDef bucket19 stroke:#7f007f - class Bucket19,Lambda172,Access173,PgUpdateSingle175,Access176,Access177,Object178,Object179 bucket19 - Bucket20("Bucket 20 (nullableBoundary)
Deps: 21, 175, 178, 58, 179, 524, 4, 20

ROOT Object{19}ᐸ{result}ᐳ[179]
1:
ᐳ: 202, 207, 219, 183, 184
2: PgSelect[203]
ᐳ: Access[212]
3: PgSelectRows[209]
ᐳ: 208, 210, 213, 211"):::bucket - classDef bucket20 stroke:#ffa500 - class Bucket20,List183,Lambda184,PgClassExpression202,PgSelect203,Connection207,First208,PgSelectRows209,PgSelectSingle210,Edge211,Access212,PgCursor213,Lambda219 bucket20 - Bucket21("Bucket 21 (nullableBoundary)
Deps: 175, 178, 524, 184, 202

ROOT PgUpdateSingle{19}ᐸperson(id;about)ᐳ[175]
1:
ᐳ: 186, 187, 188, 190
2: PgSelect[191]
3: PgSelectRows[196]
ᐳ: 195, 197, 199"):::bucket - classDef bucket21 stroke:#0000ff - class Bucket21,PgClassExpression186,PgClassExpression187,PgClassExpression188,PgClassExpression190,PgSelect191,First195,PgSelectRows196,PgSelectSingle197,PgClassExpression199 bucket21 - Bucket22("Bucket 22 (nullableBoundary)
Deps: 211, 210, 21, 213

ROOT Edge{20}[211]"):::bucket - classDef bucket22 stroke:#7fff00 - class Bucket22 bucket22 - Bucket23("Bucket 23 (nullableBoundary)
Deps: 210, 21

ROOT PgSelectSingle{20}ᐸpersonᐳ[210]"):::bucket - classDef bucket23 stroke:#ff1493 - class Bucket23,PgClassExpression215,List216,Lambda217 bucket23 - Bucket24("Bucket 24 (nullableBoundary)
Deps: 4, 219

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket24 stroke:#808000 - class Bucket24 bucket24 - Bucket25("Bucket 25 (mutationField)
Deps: 532, 533, 534, 2, 21, 58, 524, 4, 20

1: Access[227]
2: Access[228]
3: Object[229]
4: PgUpdateSingle[226]
5:
ᐳ: Object[230]"):::bucket - classDef bucket25 stroke:#dda0dd - class Bucket25,PgUpdateSingle226,Access227,Access228,Object229,Object230 bucket25 - Bucket26("Bucket 26 (nullableBoundary)
Deps: 21, 226, 229, 58, 230, 524, 4, 20

ROOT Object{25}ᐸ{result}ᐳ[230]
1:
ᐳ: 253, 258, 270, 234, 235
2: PgSelect[254]
ᐳ: Access[263]
3: PgSelectRows[260]
ᐳ: 259, 261, 264, 262"):::bucket - classDef bucket26 stroke:#ff0000 - class Bucket26,List234,Lambda235,PgClassExpression253,PgSelect254,Connection258,First259,PgSelectRows260,PgSelectSingle261,Edge262,Access263,PgCursor264,Lambda270 bucket26 - Bucket27("Bucket 27 (nullableBoundary)
Deps: 226, 229, 524, 235, 253

ROOT PgUpdateSingle{25}ᐸperson(id;person_full_name,about)ᐳ[226]
1:
ᐳ: 237, 238, 239, 241
2: PgSelect[242]
3: PgSelectRows[247]
ᐳ: 246, 248, 250"):::bucket - classDef bucket27 stroke:#ffff00 - class Bucket27,PgClassExpression237,PgClassExpression238,PgClassExpression239,PgClassExpression241,PgSelect242,First246,PgSelectRows247,PgSelectSingle248,PgClassExpression250 bucket27 - Bucket28("Bucket 28 (nullableBoundary)
Deps: 262, 261, 21, 264

ROOT Edge{26}[262]"):::bucket - classDef bucket28 stroke:#00ffff - class Bucket28 bucket28 - Bucket29("Bucket 29 (nullableBoundary)
Deps: 261, 21

ROOT PgSelectSingle{26}ᐸpersonᐳ[261]"):::bucket - classDef bucket29 stroke:#4169e1 - class Bucket29,PgClassExpression266,List267,Lambda268 bucket29 - Bucket30("Bucket 30 (nullableBoundary)
Deps: 4, 270

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket30 stroke:#3cb371 - class Bucket30 bucket30 - Bucket31("Bucket 31 (mutationField)
Deps: 535, 536, 2, 21, 58, 524, 4, 20

1: Access[277]
2: Access[278]
3: Object[279]
4: PgUpdateSingle[276]
5:
ᐳ: Object[280]"):::bucket - classDef bucket31 stroke:#a52a2a - class Bucket31,PgUpdateSingle276,Access277,Access278,Object279,Object280 bucket31 - Bucket32("Bucket 32 (nullableBoundary)
Deps: 21, 276, 279, 58, 280, 524, 4, 20

ROOT Object{31}ᐸ{result}ᐳ[280]
1:
ᐳ: 303, 308, 320, 284, 285
2: PgSelect[304]
ᐳ: Access[313]
3: PgSelectRows[310]
ᐳ: 309, 311, 314, 312"):::bucket - classDef bucket32 stroke:#ff00ff - class Bucket32,List284,Lambda285,PgClassExpression303,PgSelect304,Connection308,First309,PgSelectRows310,PgSelectSingle311,Edge312,Access313,PgCursor314,Lambda320 bucket32 - Bucket33("Bucket 33 (nullableBoundary)
Deps: 276, 279, 524, 285, 303

ROOT PgUpdateSingle{31}ᐸperson(email;about)ᐳ[276]
1:
ᐳ: 287, 288, 289, 291
2: PgSelect[292]
3: PgSelectRows[297]
ᐳ: 296, 298, 300"):::bucket - classDef bucket33 stroke:#f5deb3 - class Bucket33,PgClassExpression287,PgClassExpression288,PgClassExpression289,PgClassExpression291,PgSelect292,First296,PgSelectRows297,PgSelectSingle298,PgClassExpression300 bucket33 - Bucket34("Bucket 34 (nullableBoundary)
Deps: 312, 311, 21, 314

ROOT Edge{32}[312]"):::bucket - classDef bucket34 stroke:#696969 - class Bucket34 bucket34 - Bucket35("Bucket 35 (nullableBoundary)
Deps: 311, 21

ROOT PgSelectSingle{32}ᐸpersonᐳ[311]"):::bucket - classDef bucket35 stroke:#00bfff - class Bucket35,PgClassExpression316,List317,Lambda318 bucket35 - Bucket36("Bucket 36 (nullableBoundary)
Deps: 4, 320

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket36 stroke:#7f007f - class Bucket36 bucket36 - Bucket37("Bucket 37 (mutationField)
Deps: 537, 538, 539, 2, 58, 338, 4, 20

1: Access[333]
2: Access[334]
3: Object[335]
4: Lambda[327]
5: Access[328]
6: Access[330]
7: PgUpdateSingle[332]
8:
ᐳ: Object[336]"):::bucket - classDef bucket37 stroke:#ffa500 - class Bucket37,Lambda327,Access328,Access330,PgUpdateSingle332,Access333,Access334,Object335,Object336 bucket37 - Bucket38("Bucket 38 (nullableBoundary)
Deps: 58, 336, 332, 338, 335, 4, 20

ROOT Object{37}ᐸ{result}ᐳ[336]"):::bucket - classDef bucket38 stroke:#0000ff - class Bucket38,Lambda365 bucket38 - Bucket39("Bucket 39 (nullableBoundary)
Deps: 332, 338, 335

ROOT PgUpdateSingle{37}ᐸcompound_key(person_id_1,person_id_2;person_id_1,extra)ᐳ[332]
1:
ᐳ: 339, 340, 345, 341, 342
2: PgSelect[347], PgSelect[357]
3: PgSelectRows[352], PgSelectRows[360]
ᐳ: 351, 353, 359, 361"):::bucket - classDef bucket39 stroke:#7fff00 - class Bucket39,PgClassExpression339,PgClassExpression340,List341,Lambda342,PgClassExpression345,PgSelect347,First351,PgSelectRows352,PgSelectSingle353,PgSelect357,First359,PgSelectRows360,PgSelectSingle361 bucket39 - Bucket40("Bucket 40 (nullableBoundary)
Deps: 353

ROOT PgSelectSingle{39}ᐸpersonᐳ[353]"):::bucket - classDef bucket40 stroke:#ff1493 - class Bucket40,PgClassExpression354,PgClassExpression355 bucket40 - Bucket41("Bucket 41 (nullableBoundary)
Deps: 361

ROOT PgSelectSingle{39}ᐸpersonᐳ[361]"):::bucket - classDef bucket41 stroke:#808000 - class Bucket41,PgClassExpression362,PgClassExpression363 bucket41 - Bucket42("Bucket 42 (nullableBoundary)
Deps: 4, 365

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket42 stroke:#dda0dd - class Bucket42 bucket42 - Bucket43("Bucket 43 (mutationField)
Deps: 538, 532, 540, 2, 525, 58, 338, 4

1: Access[375]
2: Access[376]
3: Object[377]
4: PgUpdateSingle[374]
5:
ᐳ: Object[378]"):::bucket - classDef bucket43 stroke:#ff0000 - class Bucket43,PgUpdateSingle374,Access375,Access376,Object377,Object378 bucket43 - Bucket44("Bucket 44 (nullableBoundary)
Deps: 58, 378, 374, 338, 377, 4, 525

ROOT Object{43}ᐸ{result,clientMutationId}ᐳ[378]"):::bucket - classDef bucket44 stroke:#ffff00 - class Bucket44,Lambda406 bucket44 - Bucket45("Bucket 45 (nullableBoundary)
Deps: 374, 338, 377

ROOT PgUpdateSingle{43}ᐸcompound_key(person_id_1,person_id_2;person_id_1,extra)ᐳ[374]
1:
ᐳ: 380, 381, 386, 382, 383
2: PgSelect[388], PgSelect[398]
3: PgSelectRows[393], PgSelectRows[401]
ᐳ: 392, 394, 400, 402"):::bucket - classDef bucket45 stroke:#00ffff - class Bucket45,PgClassExpression380,PgClassExpression381,List382,Lambda383,PgClassExpression386,PgSelect388,First392,PgSelectRows393,PgSelectSingle394,PgSelect398,First400,PgSelectRows401,PgSelectSingle402 bucket45 - Bucket46("Bucket 46 (nullableBoundary)
Deps: 394

ROOT PgSelectSingle{45}ᐸpersonᐳ[394]"):::bucket - classDef bucket46 stroke:#4169e1 - class Bucket46,PgClassExpression395,PgClassExpression396 bucket46 - Bucket47("Bucket 47 (nullableBoundary)
Deps: 402

ROOT PgSelectSingle{45}ᐸpersonᐳ[402]"):::bucket - classDef bucket47 stroke:#3cb371 - class Bucket47,PgClassExpression403,PgClassExpression404 bucket47 - Bucket48("Bucket 48 (nullableBoundary)
Deps: 4, 406

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket48 stroke:#a52a2a - class Bucket48 bucket48 - Bucket49("Bucket 49 (mutationField)
Deps: 541, 532, 540, 2, 529, 58, 338, 4

1: Access[415]
2: Access[416]
3: Object[417]
4: PgUpdateSingle[414]
5:
ᐳ: Object[418]"):::bucket - classDef bucket49 stroke:#ff00ff - class Bucket49,PgUpdateSingle414,Access415,Access416,Object417,Object418 bucket49 - Bucket50("Bucket 50 (nullableBoundary)
Deps: 58, 418, 414, 338, 417, 4, 529

ROOT Object{49}ᐸ{result,clientMutationId}ᐳ[418]"):::bucket - classDef bucket50 stroke:#f5deb3 - class Bucket50,Lambda446 bucket50 - Bucket51("Bucket 51 (nullableBoundary)
Deps: 414, 338, 417

ROOT PgUpdateSingle{49}ᐸcompound_key(person_id_1,person_id_2;extra)ᐳ[414]
1:
ᐳ: 420, 421, 426, 422, 423
2: PgSelect[428], PgSelect[438]
3: PgSelectRows[433], PgSelectRows[441]
ᐳ: 432, 434, 440, 442"):::bucket - classDef bucket51 stroke:#696969 - class Bucket51,PgClassExpression420,PgClassExpression421,List422,Lambda423,PgClassExpression426,PgSelect428,First432,PgSelectRows433,PgSelectSingle434,PgSelect438,First440,PgSelectRows441,PgSelectSingle442 bucket51 - Bucket52("Bucket 52 (nullableBoundary)
Deps: 434

ROOT PgSelectSingle{51}ᐸpersonᐳ[434]"):::bucket - classDef bucket52 stroke:#00bfff - class Bucket52,PgClassExpression435,PgClassExpression436 bucket52 - Bucket53("Bucket 53 (nullableBoundary)
Deps: 442

ROOT PgSelectSingle{51}ᐸpersonᐳ[442]"):::bucket - classDef bucket53 stroke:#7f007f - class Bucket53,PgClassExpression443,PgClassExpression444 bucket53 - Bucket54("Bucket 54 (nullableBoundary)
Deps: 4, 446

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket54 stroke:#ffa500 - class Bucket54 bucket54 - Bucket55("Bucket 55 (mutationField)
Deps: 524, 542, 2, 21, 58, 4, 20

1: Access[453]
2: Access[454]
3: Object[455]
4: PgUpdateSingle[452]
5:
ᐳ: Object[456]"):::bucket - classDef bucket55 stroke:#0000ff - class Bucket55,PgUpdateSingle452,Access453,Access454,Object455,Object456 bucket55 - Bucket56("Bucket 56 (nullableBoundary)
Deps: 21, 452, 455, 58, 456, 524, 4, 20

ROOT Object{55}ᐸ{result}ᐳ[456]
1:
ᐳ: 479, 484, 496, 460, 461
2: PgSelect[480]
ᐳ: Access[489]
3: PgSelectRows[486]
ᐳ: 485, 487, 490, 488"):::bucket - classDef bucket56 stroke:#7fff00 - class Bucket56,List460,Lambda461,PgClassExpression479,PgSelect480,Connection484,First485,PgSelectRows486,PgSelectSingle487,Edge488,Access489,PgCursor490,Lambda496 bucket56 - Bucket57("Bucket 57 (nullableBoundary)
Deps: 452, 455, 524, 461, 479

ROOT PgUpdateSingle{55}ᐸperson(email;email)ᐳ[452]
1:
ᐳ: 463, 464, 465, 467
2: PgSelect[468]
3: PgSelectRows[473]
ᐳ: 472, 474, 476"):::bucket - classDef bucket57 stroke:#ff1493 - class Bucket57,PgClassExpression463,PgClassExpression464,PgClassExpression465,PgClassExpression467,PgSelect468,First472,PgSelectRows473,PgSelectSingle474,PgClassExpression476 bucket57 - Bucket58("Bucket 58 (nullableBoundary)
Deps: 488, 487, 21, 490

ROOT Edge{56}[488]"):::bucket - classDef bucket58 stroke:#808000 - class Bucket58 bucket58 - Bucket59("Bucket 59 (nullableBoundary)
Deps: 487, 21

ROOT PgSelectSingle{56}ᐸpersonᐳ[487]"):::bucket - classDef bucket59 stroke:#dda0dd - class Bucket59,PgClassExpression492,List493,Lambda494 bucket59 - Bucket60("Bucket 60 (nullableBoundary)
Deps: 4, 496

ROOT __ValueᐸrootValueᐳ[4]"):::bucket - classDef bucket60 stroke:#ff0000 - class Bucket60 bucket60 - Bucket61("Bucket 61 (mutationField)
Deps: 543, 20, 2

1: Access[503]
2: Access[504]
3: Object[505]
4: PgUpdateSingle[502]
5:
ᐳ: Object[506]"):::bucket - classDef bucket61 stroke:#ffff00 - class Bucket61,PgUpdateSingle502,Access503,Access504,Object505,Object506 bucket61 - Bucket62("Bucket 62 (nullableBoundary)
Deps: 506, 502

ROOT Object{61}ᐸ{result}ᐳ[506]"):::bucket - classDef bucket62 stroke:#00ffff - class Bucket62 bucket62 - Bucket63("Bucket 63 (nullableBoundary)
Deps: 502

ROOT PgUpdateSingle{61}ᐸdefault_value(id;null_value)ᐳ[502]"):::bucket - classDef bucket63 stroke:#4169e1 - class Bucket63,PgClassExpression507,PgClassExpression508 bucket63 - Bucket64("Bucket 64 (mutationField)
Deps: 543, 544, 2

1: Access[515]
2: Access[516]
3: Object[517]
4: PgUpdateSingle[514]
5:
ᐳ: Object[518]"):::bucket - classDef bucket64 stroke:#3cb371 - class Bucket64,PgUpdateSingle514,Access515,Access516,Object517,Object518 bucket64 - Bucket65("Bucket 65 (nullableBoundary)
Deps: 518, 514

ROOT Object{64}ᐸ{result}ᐳ[518]"):::bucket - classDef bucket65 stroke:#a52a2a - class Bucket65 bucket65 - Bucket66("Bucket 66 (nullableBoundary)
Deps: 514

ROOT PgUpdateSingle{64}ᐸno_primary_key(id;str)ᐳ[514]"):::bucket - classDef bucket66 stroke:#ff00ff - class Bucket66,PgClassExpression519,PgClassExpression520 bucket66 - Bucket0 --> Bucket1 & Bucket7 & Bucket13 & Bucket19 & Bucket25 & Bucket31 & Bucket37 & Bucket43 & Bucket49 & Bucket55 & Bucket61 & Bucket64 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 & Bucket6 - Bucket4 --> Bucket5 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 & Bucket10 & Bucket12 - Bucket10 --> Bucket11 - Bucket13 --> Bucket14 - Bucket14 --> Bucket15 & Bucket16 & Bucket18 - Bucket16 --> Bucket17 - Bucket19 --> Bucket20 - Bucket20 --> Bucket21 & Bucket22 & Bucket24 - Bucket22 --> Bucket23 - Bucket25 --> Bucket26 - Bucket26 --> Bucket27 & Bucket28 & Bucket30 - Bucket28 --> Bucket29 - Bucket31 --> Bucket32 - Bucket32 --> Bucket33 & Bucket34 & Bucket36 - Bucket34 --> Bucket35 - Bucket37 --> Bucket38 - Bucket38 --> Bucket39 & Bucket42 - Bucket39 --> Bucket40 & Bucket41 - Bucket43 --> Bucket44 - Bucket44 --> Bucket45 & Bucket48 - Bucket45 --> Bucket46 & Bucket47 - Bucket49 --> Bucket50 - Bucket50 --> Bucket51 & Bucket54 - Bucket51 --> Bucket52 & Bucket53 - Bucket55 --> Bucket56 - Bucket56 --> Bucket57 & Bucket58 & Bucket60 - Bucket58 --> Bucket59 - Bucket61 --> Bucket62 - Bucket62 --> Bucket63 - Bucket64 --> Bucket65 - Bucket65 --> Bucket66 + class Bucket12,PgUpdateSingle513,Access514,Access515,Object516,Object518,PgClassExpression519,Access520,PgClassExpression521 bucket12 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 & Bucket11 & Bucket12 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-update.sql b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-update.sql index cb3e42e23c..55b985750d 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/mutation-update.sql +++ b/postgraphile/postgraphile/__tests__/mutations/v4/mutation-update.sql @@ -1,17 +1,9 @@ update "c"."person" as __person__ set "person_full_name" = $1::"varchar", "about" = $2::"text" where (__person__."id" = $3::"int4") returning - __person__."person_full_name" as "0", - __person__."email" as "1", - __person__."about" as "2", - case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "3", - __person__."id"::text as "4"; - -select - __person__."id"::text as "0" -from "c"."person" as __person__ -where ( - __person__."id" = $1::"int4" -) -order by __person__."id" asc; + __person__."id"::text as "0", + __person__."person_full_name" as "1", + __person__."email" as "2", + __person__."about" as "3", + case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "4"; select ("c"."person_exists"( @@ -21,13 +13,6 @@ select __person__."id"::text as "1" from (select ($2::"c"."person").*) as __person__; -update "c"."person" as __person__ set "person_full_name" = $1::"varchar", "email" = $2::"b"."email" where (__person__."id" = $3::"int4") returning - __person__."person_full_name" as "0", - __person__."email" as "1", - __person__."about" as "2", - case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "3", - __person__."id"::text as "4"; - select __person__."id"::text as "0" from "c"."person" as __person__ @@ -36,6 +21,13 @@ where ( ) order by __person__."id" asc; +update "c"."person" as __person__ set "person_full_name" = $1::"varchar", "email" = $2::"b"."email" where (__person__."id" = $3::"int4") returning + __person__."id"::text as "0", + __person__."person_full_name" as "1", + __person__."email" as "2", + __person__."about" as "3", + case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "4"; + select ("c"."person_exists"( __person__, @@ -44,13 +36,6 @@ select __person__."id"::text as "1" from (select ($2::"c"."person").*) as __person__; -update "c"."person" as __person__ set "about" = $1::"text" where (__person__."id" = $2::"int4") returning - __person__."person_full_name" as "0", - __person__."email" as "1", - __person__."about" as "2", - case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "3", - __person__."id"::text as "4"; - select __person__."id"::text as "0" from "c"."person" as __person__ @@ -59,6 +44,13 @@ where ( ) order by __person__."id" asc; +update "c"."person" as __person__ set "about" = $1::"text" where (__person__."id" = $2::"int4") returning + __person__."id"::text as "0", + __person__."person_full_name" as "1", + __person__."email" as "2", + __person__."about" as "3", + case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "4"; + select ("c"."person_exists"( __person__, @@ -67,13 +59,6 @@ select __person__."id"::text as "1" from (select ($2::"c"."person").*) as __person__; -update "c"."person" as __person__ set "about" = $1::"text" where (__person__."id" = $2::"int4") returning - __person__."person_full_name" as "0", - __person__."email" as "1", - __person__."about" as "2", - case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "3", - __person__."id"::text as "4"; - select __person__."id"::text as "0" from "c"."person" as __person__ @@ -82,6 +67,13 @@ where ( ) order by __person__."id" asc; +update "c"."person" as __person__ set "about" = $1::"text" where (__person__."id" = $2::"int4") returning + __person__."id"::text as "0", + __person__."person_full_name" as "1", + __person__."email" as "2", + __person__."about" as "3", + case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "4"; + select ("c"."person_exists"( __person__, @@ -90,13 +82,6 @@ select __person__."id"::text as "1" from (select ($2::"c"."person").*) as __person__; -update "c"."person" as __person__ set "person_full_name" = $1::"varchar", "about" = $2::"text" where (__person__."id" = $3::"int4") returning - __person__."person_full_name" as "0", - __person__."email" as "1", - __person__."about" as "2", - case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "3", - __person__."id"::text as "4"; - select __person__."id"::text as "0" from "c"."person" as __person__ @@ -105,6 +90,13 @@ where ( ) order by __person__."id" asc; +update "c"."person" as __person__ set "person_full_name" = $1::"varchar", "about" = $2::"text" where (__person__."id" = $3::"int4") returning + __person__."id"::text as "0", + __person__."person_full_name" as "1", + __person__."email" as "2", + __person__."about" as "3", + case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "4"; + select ("c"."person_exists"( __person__, @@ -113,13 +105,6 @@ select __person__."id"::text as "1" from (select ($2::"c"."person").*) as __person__; -update "c"."person" as __person__ set "about" = $1::"text" where (__person__."email" = $2::"b"."email") returning - __person__."person_full_name" as "0", - __person__."email" as "1", - __person__."about" as "2", - case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "3", - __person__."id"::text as "4"; - select __person__."id"::text as "0" from "c"."person" as __person__ @@ -128,6 +113,13 @@ where ( ) order by __person__."id" asc; +update "c"."person" as __person__ set "about" = $1::"text" where (__person__."email" = $2::"b"."email") returning + __person__."id"::text as "0", + __person__."person_full_name" as "1", + __person__."email" as "2", + __person__."about" as "3", + case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "4"; + select ("c"."person_exists"( __person__, @@ -136,6 +128,14 @@ select __person__."id"::text as "1" from (select ($2::"c"."person").*) as __person__; +select + __person__."id"::text as "0" +from "c"."person" as __person__ +where ( + __person__."id" = $1::"int4" +) +order by __person__."id" asc; + update "c"."compound_key" as __compound_key__ set "person_id_1" = $1::"int4", "extra" = $2::"bool" where ((__compound_key__."person_id_1" = $3::"int4") and (__compound_key__."person_id_2" = $4::"int4")) returning __compound_key__."person_id_1"::text as "0", __compound_key__."person_id_2"::text as "1", @@ -200,19 +200,11 @@ where ( ); update "c"."person" as __person__ set "email" = $1::"b"."email" where (__person__."email" = $2::"b"."email") returning - __person__."person_full_name" as "0", - __person__."email" as "1", - __person__."about" as "2", - case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "3", - __person__."id"::text as "4"; - -select - __person__."id"::text as "0" -from "c"."person" as __person__ -where ( - __person__."id" = $1::"int4" -) -order by __person__."id" asc; + __person__."id"::text as "0", + __person__."person_full_name" as "1", + __person__."email" as "2", + __person__."about" as "3", + case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "4"; select ("c"."person_exists"( @@ -222,6 +214,14 @@ select __person__."id"::text as "1" from (select ($2::"c"."person").*) as __person__; +select + __person__."id"::text as "0" +from "c"."person" as __person__ +where ( + __person__."id" = $1::"int4" +) +order by __person__."id" asc; + update "a"."default_value" as __default_value__ set "null_value" = $1::"text" where (__default_value__."id" = $2::"int4") returning __default_value__."id"::text as "0", __default_value__."null_value" as "1"; diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/nested_arrays.createT.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/nested_arrays.createT.mermaid index c082aad792..6ee0e2dc45 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/nested_arrays.createT.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/nested_arrays.createT.mermaid @@ -9,103 +9,65 @@ graph TD %% plan dependencies - List153{{"List[153∈0] ➊
ᐸ57,122,170,170,170,170,170,170ᐳ"}}:::plan - List57{{"List[57∈0] ➊
ᐸ32ᐳ"}}:::plan - List122{{"List[122∈0] ➊
ᐸ67,97ᐳ"}}:::plan - Constant170{{"Constant[170∈0] ➊
ᐸ[]ᐳ"}}:::plan - List57 & List122 & Constant170 & Constant170 & Constant170 & Constant170 & Constant170 & Constant170 --> List153 - Object32{{"Object[32∈0] ➊
ᐸ{from_hours,from_minutes,to_hours,to_minutes}ᐳ"}}:::plan - Access37{{"Access[37∈0] ➊
ᐸ0.input.t.v.0.0.fromHoursᐳ"}}:::plan - Access43{{"Access[43∈0] ➊
ᐸ0.input.t.v.0.0.fromMinutesᐳ"}}:::plan - Access49{{"Access[49∈0] ➊
ᐸ0.input.t.v.0.0.toHoursᐳ"}}:::plan - Access55{{"Access[55∈0] ➊
ᐸ0.input.t.v.0.0.toMinutesᐳ"}}:::plan - Access37 & Access43 & Access49 & Access55 --> Object32 - Object67{{"Object[67∈0] ➊
ᐸ{from_hours,from_minutes,to_hours,to_minutes}ᐳ"}}:::plan - Access72{{"Access[72∈0] ➊
ᐸ0.input.t.v.1.0.fromHoursᐳ"}}:::plan - Access78{{"Access[78∈0] ➊
ᐸ0.input.t.v.1.0.fromMinutesᐳ"}}:::plan - Access84{{"Access[84∈0] ➊
ᐸ0.input.t.v.1.0.toHoursᐳ"}}:::plan - Access90{{"Access[90∈0] ➊
ᐸ0.input.t.v.1.0.toMinutesᐳ"}}:::plan - Access72 & Access78 & Access84 & Access90 --> Object67 - Object97{{"Object[97∈0] ➊
ᐸ{from_hours,from_minutes,to_hours,to_minutes}ᐳ"}}:::plan - Access102{{"Access[102∈0] ➊
ᐸ0.input.t.v.1.1.fromHoursᐳ"}}:::plan - Access108{{"Access[108∈0] ➊
ᐸ0.input.t.v.1.1.fromMinutesᐳ"}}:::plan - Access114{{"Access[114∈0] ➊
ᐸ0.input.t.v.1.1.toHoursᐳ"}}:::plan - Access120{{"Access[120∈0] ➊
ᐸ0.input.t.v.1.1.toMinutesᐳ"}}:::plan - Access102 & Access108 & Access114 & Access120 --> Object97 Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - Object67 & Object97 --> List122 + Access6{{"Access[6∈0] ➊
ᐸ0.inputᐳ"}}:::plan + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value0 --> Access6 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value0 --> Access37 - __Value0 --> Access43 - __Value0 --> Access49 - __Value0 --> Access55 - Object32 --> List57 - __Value0 --> Access72 - __Value0 --> Access78 - __Value0 --> Access84 - __Value0 --> Access90 - __Value0 --> Access102 - __Value0 --> Access108 - __Value0 --> Access114 - __Value0 --> Access120 + ApplyInput12{{"ApplyInput[12∈0] ➊"}}:::plan + Access6 --> ApplyInput12 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgInsertSingle8[["PgInsertSingle[8∈1] ➊
ᐸt(v)ᐳ"]]:::sideeffectplan - Object11 & List153 --> PgInsertSingle8 - Object12{{"Object[12∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle8 --> Object12 - PgClassExpression154{{"PgClassExpression[154∈3] ➊
ᐸ__t__.”k”ᐳ"}}:::plan - PgInsertSingle8 --> PgClassExpression154 - PgClassExpression155{{"PgClassExpression[155∈3] ➊
ᐸ__t__.”v”ᐳ"}}:::plan - PgInsertSingle8 --> PgClassExpression155 - PgSelect159[["PgSelect[159∈5]
ᐸfrmcdc_workHourᐳ"]]:::plan - __Item158[/"__Item[158∈5]
ᐸ155ᐳ"\]:::itemplan - Object11 & __Item158 --> PgSelect159 - PgClassExpression155 ==> __Item158 - PgSelectRows163[["PgSelectRows[163∈5]"]]:::plan - PgSelect159 --> PgSelectRows163 - __Item164[/"__Item[164∈6]
ᐸ163ᐳ"\]:::itemplan - PgSelectRows163 ==> __Item164 - PgSelectSingle165{{"PgSelectSingle[165∈6]
ᐸfrmcdc_workHourᐳ"}}:::plan - __Item164 --> PgSelectSingle165 - PgClassExpression166{{"PgClassExpression[166∈6]
ᐸ__frmcdc_w...rom_hours”ᐳ"}}:::plan - PgSelectSingle165 --> PgClassExpression166 - PgClassExpression167{{"PgClassExpression[167∈6]
ᐸ__frmcdc_w...m_minutes”ᐳ"}}:::plan - PgSelectSingle165 --> PgClassExpression167 - PgClassExpression168{{"PgClassExpression[168∈6]
ᐸ__frmcdc_w...”to_hours”ᐳ"}}:::plan - PgSelectSingle165 --> PgClassExpression168 - PgClassExpression169{{"PgClassExpression[169∈6]
ᐸ__frmcdc_w...o_minutes”ᐳ"}}:::plan - PgSelectSingle165 --> PgClassExpression169 + PgInsertSingle8[["PgInsertSingle[8∈1] ➊
ᐸt()ᐳ"]]:::sideeffectplan + Object11 & ApplyInput12 --> PgInsertSingle8 + Object13{{"Object[13∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle8 --> Object13 + PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__t__.”k”ᐳ"}}:::plan + Access15{{"Access[15∈1] ➊
ᐸ8.tᐳ"}}:::plan + Access15 --> PgClassExpression14 + PgInsertSingle8 --> Access15 + PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__t__.”v”ᐳ"}}:::plan + Access15 --> PgClassExpression16 + PgSelect20[["PgSelect[20∈3]
ᐸfrmcdc_workHourᐳ"]]:::plan + __Item19[/"__Item[19∈3]
ᐸ16ᐳ"\]:::itemplan + PgFromExpression24{{"PgFromExpression[24∈3] ➊"}}:::plan + Object11 & __Item19 & PgFromExpression24 --> PgSelect20 + PgClassExpression16 ==> __Item19 + PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan + PgSelect20 --> PgSelectRows25 + __Item26[/"__Item[26∈4]
ᐸ25ᐳ"\]:::itemplan + PgSelectRows25 ==> __Item26 + PgSelectSingle27{{"PgSelectSingle[27∈4]
ᐸfrmcdc_workHourᐳ"}}:::plan + __Item26 --> PgSelectSingle27 + PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__frmcdc_w...rom_hours”ᐳ"}}:::plan + PgSelectSingle27 --> PgClassExpression28 + PgClassExpression29{{"PgClassExpression[29∈4]
ᐸ__frmcdc_w...m_minutes”ᐳ"}}:::plan + PgSelectSingle27 --> PgClassExpression29 + PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__frmcdc_w...”to_hours”ᐳ"}}:::plan + PgSelectSingle27 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__frmcdc_w...o_minutes”ᐳ"}}:::plan + PgSelectSingle27 --> PgClassExpression31 %% define steps subgraph "Buckets for mutations/v4/nested_arrays.createT" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Access9,Access10,Object11,Object32,Access37,Access43,Access49,Access55,List57,Object67,Access72,Access78,Access84,Access90,Object97,Access102,Access108,Access114,Access120,List122,List153,Constant170 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 11, 153

1: PgInsertSingle[8]
2:
ᐳ: Object[12]"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Access6,Access9,Access10,Object11,ApplyInput12 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 11, 12

1: PgInsertSingle[8]
2:
ᐳ: 13, 15, 14, 16"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle8,Object12 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 8, 11

ROOT Object{1}ᐸ{result}ᐳ[12]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 8, 11

ROOT PgInsertSingle{1}ᐸt(v)ᐳ[8]"):::bucket + class Bucket1,PgInsertSingle8,Object13,PgClassExpression14,Access15,PgClassExpression16 bucket1 + Bucket3("Bucket 3 (listItem)
Deps: 11

ROOT __Item{3}ᐸ16ᐳ[19]
1:
ᐳ: PgFromExpression[24]
2: PgSelect[20]
3: PgSelectRows[25]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression154,PgClassExpression155 bucket3 - Bucket5("Bucket 5 (listItem)
Deps: 11

ROOT __Item{5}ᐸ155ᐳ[158]
1: PgSelect[159]
2: PgSelectRows[163]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item158,PgSelect159,PgSelectRows163 bucket5 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ163ᐳ[164]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,__Item164,PgSelectSingle165,PgClassExpression166,PgClassExpression167,PgClassExpression168,PgClassExpression169 bucket6 + class Bucket3,__Item19,PgSelect20,PgFromExpression24,PgSelectRows25 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ25ᐳ[26]"):::bucket + classDef bucket4 stroke:#0000ff + class Bucket4,__Item26,PgSelectSingle27,PgClassExpression28,PgClassExpression29,PgClassExpression30,PgClassExpression31 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket5 - Bucket5 --> Bucket6 + Bucket1 --> Bucket3 + Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/nested_arrays.updateT.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/nested_arrays.updateT.mermaid index a1e98fdb2b..43504134de 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/nested_arrays.updateT.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/nested_arrays.updateT.mermaid @@ -9,105 +9,67 @@ graph TD %% plan dependencies - List157{{"List[157∈0] ➊
ᐸ61,126,174,174,174,174,174,174ᐳ"}}:::plan - List61{{"List[61∈0] ➊
ᐸ36ᐳ"}}:::plan - List126{{"List[126∈0] ➊
ᐸ71,101ᐳ"}}:::plan - Constant174{{"Constant[174∈0] ➊
ᐸ[]ᐳ"}}:::plan - List61 & List126 & Constant174 & Constant174 & Constant174 & Constant174 & Constant174 & Constant174 --> List157 - Object36{{"Object[36∈0] ➊
ᐸ{from_hours,from_minutes,to_hours,to_minutes}ᐳ"}}:::plan - Access41{{"Access[41∈0] ➊
ᐸ0.input.tPatch.v.0.0.fromHoursᐳ"}}:::plan - Access47{{"Access[47∈0] ➊
ᐸ0.input.tPatch.v.0.0.fromMinutesᐳ"}}:::plan - Access53{{"Access[53∈0] ➊
ᐸ0.input.tPatch.v.0.0.toHoursᐳ"}}:::plan - Access59{{"Access[59∈0] ➊
ᐸ0.input.tPatch.v.0.0.toMinutesᐳ"}}:::plan - Access41 & Access47 & Access53 & Access59 --> Object36 - Object71{{"Object[71∈0] ➊
ᐸ{from_hours,from_minutes,to_hours,to_minutes}ᐳ"}}:::plan - Access76{{"Access[76∈0] ➊
ᐸ0.input.tPatch.v.1.0.fromHoursᐳ"}}:::plan - Access82{{"Access[82∈0] ➊
ᐸ0.input.tPatch.v.1.0.fromMinutesᐳ"}}:::plan - Access88{{"Access[88∈0] ➊
ᐸ0.input.tPatch.v.1.0.toHoursᐳ"}}:::plan - Access94{{"Access[94∈0] ➊
ᐸ0.input.tPatch.v.1.0.toMinutesᐳ"}}:::plan - Access76 & Access82 & Access88 & Access94 --> Object71 - Object101{{"Object[101∈0] ➊
ᐸ{from_hours,from_minutes,to_hours,to_minutes}ᐳ"}}:::plan - Access106{{"Access[106∈0] ➊
ᐸ0.input.tPatch.v.1.1.fromHoursᐳ"}}:::plan - Access112{{"Access[112∈0] ➊
ᐸ0.input.tPatch.v.1.1.fromMinutesᐳ"}}:::plan - Access118{{"Access[118∈0] ➊
ᐸ0.input.tPatch.v.1.1.toHoursᐳ"}}:::plan - Access124{{"Access[124∈0] ➊
ᐸ0.input.tPatch.v.1.1.toMinutesᐳ"}}:::plan - Access106 & Access112 & Access118 & Access124 --> Object101 Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 - Object71 & Object101 --> List126 - Access8{{"Access[8∈0] ➊
ᐸ0.input.kᐳ"}}:::plan + Access6{{"Access[6∈0] ➊
ᐸ0.inputᐳ"}}:::plan __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value0 --> Access6 + Access8{{"Access[8∈0] ➊
ᐸ0.input.kᐳ"}}:::plan __Value0 --> Access8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 - __Value0 --> Access41 - __Value0 --> Access47 - __Value0 --> Access53 - __Value0 --> Access59 - Object36 --> List61 - __Value0 --> Access76 - __Value0 --> Access82 - __Value0 --> Access88 - __Value0 --> Access94 - __Value0 --> Access106 - __Value0 --> Access112 - __Value0 --> Access118 - __Value0 --> Access124 + ApplyInput14{{"ApplyInput[14∈0] ➊"}}:::plan + Access6 --> ApplyInput14 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgUpdateSingle10[["PgUpdateSingle[10∈1] ➊
ᐸt(k;v)ᐳ"]]:::sideeffectplan - Object13 & Access8 & List157 --> PgUpdateSingle10 - Object14{{"Object[14∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle10 --> Object14 - PgClassExpression158{{"PgClassExpression[158∈3] ➊
ᐸ__t__.”k”ᐳ"}}:::plan - PgUpdateSingle10 --> PgClassExpression158 - PgClassExpression159{{"PgClassExpression[159∈3] ➊
ᐸ__t__.”v”ᐳ"}}:::plan - PgUpdateSingle10 --> PgClassExpression159 - PgSelect163[["PgSelect[163∈5]
ᐸfrmcdc_workHourᐳ"]]:::plan - __Item162[/"__Item[162∈5]
ᐸ159ᐳ"\]:::itemplan - Object13 & __Item162 --> PgSelect163 - PgClassExpression159 ==> __Item162 - PgSelectRows167[["PgSelectRows[167∈5]"]]:::plan - PgSelect163 --> PgSelectRows167 - __Item168[/"__Item[168∈6]
ᐸ167ᐳ"\]:::itemplan - PgSelectRows167 ==> __Item168 - PgSelectSingle169{{"PgSelectSingle[169∈6]
ᐸfrmcdc_workHourᐳ"}}:::plan - __Item168 --> PgSelectSingle169 - PgClassExpression170{{"PgClassExpression[170∈6]
ᐸ__frmcdc_w...rom_hours”ᐳ"}}:::plan - PgSelectSingle169 --> PgClassExpression170 - PgClassExpression171{{"PgClassExpression[171∈6]
ᐸ__frmcdc_w...m_minutes”ᐳ"}}:::plan - PgSelectSingle169 --> PgClassExpression171 - PgClassExpression172{{"PgClassExpression[172∈6]
ᐸ__frmcdc_w...”to_hours”ᐳ"}}:::plan - PgSelectSingle169 --> PgClassExpression172 - PgClassExpression173{{"PgClassExpression[173∈6]
ᐸ__frmcdc_w...o_minutes”ᐳ"}}:::plan - PgSelectSingle169 --> PgClassExpression173 + PgUpdateSingle10[["PgUpdateSingle[10∈1] ➊
ᐸt(k;)ᐳ"]]:::sideeffectplan + Object13 & Access8 & ApplyInput14 --> PgUpdateSingle10 + Object15{{"Object[15∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle10 --> Object15 + PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__t__.”k”ᐳ"}}:::plan + Access17{{"Access[17∈1] ➊
ᐸ10.tᐳ"}}:::plan + Access17 --> PgClassExpression16 + PgUpdateSingle10 --> Access17 + PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__t__.”v”ᐳ"}}:::plan + Access17 --> PgClassExpression18 + PgSelect22[["PgSelect[22∈3]
ᐸfrmcdc_workHourᐳ"]]:::plan + __Item21[/"__Item[21∈3]
ᐸ18ᐳ"\]:::itemplan + PgFromExpression26{{"PgFromExpression[26∈3] ➊"}}:::plan + Object13 & __Item21 & PgFromExpression26 --> PgSelect22 + PgClassExpression18 ==> __Item21 + PgSelectRows27[["PgSelectRows[27∈3]"]]:::plan + PgSelect22 --> PgSelectRows27 + __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan + PgSelectRows27 ==> __Item28 + PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸfrmcdc_workHourᐳ"}}:::plan + __Item28 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__frmcdc_w...rom_hours”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__frmcdc_w...m_minutes”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression31 + PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__frmcdc_w...”to_hours”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__frmcdc_w...o_minutes”ᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression33 %% define steps subgraph "Buckets for mutations/v4/nested_arrays.updateT" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Access8,Access11,Access12,Object13,Object36,Access41,Access47,Access53,Access59,List61,Object71,Access76,Access82,Access88,Access94,Object101,Access106,Access112,Access118,Access124,List126,List157,Constant174 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 13, 8, 157

1: PgUpdateSingle[10]
2:
ᐳ: Object[14]"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Access6,Access8,Access11,Access12,Object13,ApplyInput14 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 13, 8, 14

1: PgUpdateSingle[10]
2:
ᐳ: 15, 17, 16, 18"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUpdateSingle10,Object14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 10, 13

ROOT Object{1}ᐸ{result}ᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 10, 13

ROOT PgUpdateSingle{1}ᐸt(k;v)ᐳ[10]"):::bucket + class Bucket1,PgUpdateSingle10,Object15,PgClassExpression16,Access17,PgClassExpression18 bucket1 + Bucket3("Bucket 3 (listItem)
Deps: 13

ROOT __Item{3}ᐸ18ᐳ[21]
1:
ᐳ: PgFromExpression[26]
2: PgSelect[22]
3: PgSelectRows[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression158,PgClassExpression159 bucket3 - Bucket5("Bucket 5 (listItem)
Deps: 13

ROOT __Item{5}ᐸ159ᐳ[162]
1: PgSelect[163]
2: PgSelectRows[167]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item162,PgSelect163,PgSelectRows167 bucket5 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ167ᐳ[168]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,__Item168,PgSelectSingle169,PgClassExpression170,PgClassExpression171,PgClassExpression172,PgClassExpression173 bucket6 + class Bucket3,__Item21,PgSelect22,PgFromExpression26,PgSelectRows27 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket + classDef bucket4 stroke:#0000ff + class Bucket4,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket5 - Bucket5 --> Bucket6 + Bucket1 --> Bucket3 + Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/network_types.createNetwork.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/network_types.createNetwork.mermaid index 5c66715d55..63ff8b3e30 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/network_types.createNetwork.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/network_types.createNetwork.mermaid @@ -9,6 +9,13 @@ graph TD %% plan dependencies + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸ'10.0.0.0'ᐳ"}}:::plan + Constant28{{"Constant[28∈0] ➊
ᐸ'10.0.0.0/8'ᐳ"}}:::plan + Constant29{{"Constant[29∈0] ➊
ᐸ'000000000000'ᐳ"}}:::plan + Constant27 & Constant28 & Constant29 --> __InputObject8 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 Object15{{"Object[15∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access14{{"Access[14∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan @@ -16,44 +23,37 @@ graph TD __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access13 __Value2 --> Access14 + ApplyInput16{{"ApplyInput[16∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput16 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant17{{"Constant[17∈0] ➊
ᐸ'networks'ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸ'10.0.0.0'ᐳ"}}:::plan - Constant26{{"Constant[26∈0] ➊
ᐸ'10.0.0.0/8'ᐳ"}}:::plan - Constant27{{"Constant[27∈0] ➊
ᐸ'000000000000'ᐳ"}}:::plan - PgInsertSingle12[["PgInsertSingle[12∈1] ➊
ᐸnetwork(inet,cidr,macaddr)ᐳ"]]:::sideeffectplan - Object15 & Constant25 & Constant26 & Constant27 --> PgInsertSingle12 - Object16{{"Object[16∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle12 --> Object16 - List19{{"List[19∈3] ➊
ᐸ17,18ᐳ"}}:::plan - PgClassExpression18{{"PgClassExpression[18∈3] ➊
ᐸ__network__.”id”ᐳ"}}:::plan - Constant17 & PgClassExpression18 --> List19 - PgInsertSingle12 --> PgClassExpression18 - Lambda20{{"Lambda[20∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List19 --> Lambda20 - PgClassExpression22{{"PgClassExpression[22∈3] ➊
ᐸ__network__.”inet”ᐳ"}}:::plan - PgInsertSingle12 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈3] ➊
ᐸ__network__.”cidr”ᐳ"}}:::plan - PgInsertSingle12 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3] ➊
ᐸ__network__.”macaddr”ᐳ"}}:::plan - PgInsertSingle12 --> PgClassExpression24 + Constant18{{"Constant[18∈0] ➊
ᐸ'networks'ᐳ"}}:::plan + PgInsertSingle12[["PgInsertSingle[12∈1] ➊
ᐸnetwork()ᐳ"]]:::sideeffectplan + Object15 & ApplyInput16 --> PgInsertSingle12 + List21{{"List[21∈1] ➊
ᐸ18,19ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1] ➊
ᐸ__network__.”id”ᐳ"}}:::plan + Constant18 & PgClassExpression19 --> List21 + Object17{{"Object[17∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle12 --> Object17 + Access20{{"Access[20∈1] ➊
ᐸ12.tᐳ"}}:::plan + Access20 --> PgClassExpression19 + PgInsertSingle12 --> Access20 + Lambda22{{"Lambda[22∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List21 --> Lambda22 + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__network__.”inet”ᐳ"}}:::plan + Access20 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__network__.”cidr”ᐳ"}}:::plan + Access20 --> PgClassExpression25 + PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__network__.”macaddr”ᐳ"}}:::plan + Access20 --> PgClassExpression26 %% define steps subgraph "Buckets for mutations/v4/network_types.createNetwork" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access13,Access14,Object15,Constant17,Constant25,Constant26,Constant27 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 15, 25, 26, 27, 17

1: PgInsertSingle[12]
2:
ᐳ: Object[16]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,Access13,Access14,Object15,ApplyInput16,Constant18,Constant27,Constant28,Constant29 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 15, 16, 18

1: PgInsertSingle[12]
2:
ᐳ: 17, 20, 19, 21, 22, 24, 25, 26"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle12,Object16 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 16, 12, 17

ROOT Object{1}ᐸ{result}ᐳ[16]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 12, 17

ROOT PgInsertSingle{1}ᐸnetwork(inet,cidr,macaddr)ᐳ[12]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,List19,Lambda20,PgClassExpression22,PgClassExpression23,PgClassExpression24 bucket3 + class Bucket1,PgInsertSingle12,Object17,PgClassExpression19,Access20,List21,Lambda22,PgClassExpression24,PgClassExpression25,PgClassExpression26 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/normal.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/normal.mermaid index e41dfc3e6c..20136c037d 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/normal.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/normal.mermaid @@ -9,6 +9,13 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant26{{"Constant[26∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant27{{"Constant[27∈0] ➊
ᐸ'2'ᐳ"}}:::plan + Constant28{{"Constant[28∈0] ➊
ᐸ'3'ᐳ"}}:::plan + Constant26 & Constant27 & Constant28 --> __InputObject6 + PgFromExpression15{{"PgFromExpression[15∈0] ➊"}}:::plan + Constant26 & Constant27 & Constant28 --> PgFromExpression15 Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan @@ -16,47 +23,38 @@ graph TD __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 + ApplyInput20{{"ApplyInput[20∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput20 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸ'2'ᐳ"}}:::plan - Constant26{{"Constant[26∈0] ➊
ᐸ'3'ᐳ"}}:::plan PgSelect11[["PgSelect[11∈1] ➊
ᐸauthenticate(mutation)ᐳ"]]:::sideeffectplan - Object14 & Constant24 & Constant25 & Constant26 --> PgSelect11 - First15{{"First[15∈1] ➊"}}:::plan - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan - PgSelectRows16 --> First15 - PgSelect11 --> PgSelectRows16 - PgSelectSingle17{{"PgSelectSingle[17∈1] ➊
ᐸauthenticateᐳ"}}:::plan - First15 --> PgSelectSingle17 - Object18{{"Object[18∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle17 --> Object18 - PgClassExpression19{{"PgClassExpression[19∈3] ➊
ᐸ__authenticate__.”role”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3] ➊
ᐸ__authenticate__.”exp”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3] ➊
ᐸ__authenticate__.”a”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3] ➊
ᐸ__authenticate__.”b”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈3] ➊
ᐸ__authenticate__.”c”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression23 + Object14 & PgFromExpression15 & ApplyInput20 --> PgSelect11 + First16{{"First[16∈1] ➊"}}:::plan + PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan + PgSelectRows17 --> First16 + PgSelect11 --> PgSelectRows17 + PgSelectSingle18{{"PgSelectSingle[18∈1] ➊
ᐸauthenticateᐳ"}}:::plan + First16 --> PgSelectSingle18 + Object19{{"Object[19∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle18 --> Object19 + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__authenticate__.”role”ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression21 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__authenticate__.”exp”ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression22 + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__authenticate__.”a”ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__authenticate__.”b”ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__authenticate__.”c”ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression25 %% define steps subgraph "Buckets for mutations/v4/normal" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Constant24,Constant25,Constant26 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 14, 24, 25, 26

1: PgSelect[11]
2: PgSelectRows[16]
ᐳ: 15, 17, 18"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Access12,Access13,Object14,PgFromExpression15,ApplyInput20,Constant26,Constant27,Constant28 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 14, 15, 20

1: PgSelect[11]
2: PgSelectRows[17]
ᐳ: 16, 18, 19, 21, 22, 23, 24, 25"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect11,First15,PgSelectRows16,PgSelectSingle17,Object18 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 18, 17

ROOT Object{1}ᐸ{result}ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17

ROOT PgSelectSingle{1}ᐸauthenticateᐳ[17]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23 bucket3 + class Bucket1,PgSelect11,First16,PgSelectRows17,PgSelectSingle18,Object19,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/partitions.unqualified.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/partitions.unqualified.mermaid index 423ffff5c2..a7699463a5 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/partitions.unqualified.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/partitions.unqualified.mermaid @@ -9,72 +9,88 @@ graph TD %% plan dependencies + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant55{{"Constant[55∈0] ➊
ᐸ'2023-05-24T07:43:00Z'ᐳ"}}:::plan + Constant56{{"Constant[56∈0] ➊
ᐸ'temp'ᐳ"}}:::plan + Constant57{{"Constant[57∈0] ➊
ᐸ12.7ᐳ"}}:::plan + Constant58{{"Constant[58∈0] ➊
ᐸ4ᐳ"}}:::plan + Constant55 & Constant56 & Constant57 & Constant58 --> __InputObject8 + __InputObject31{{"__InputObject[31∈0] ➊"}}:::plan + __InputObject35{{"__InputObject[35∈0] ➊"}}:::plan + Constant55 & Constant56 & __InputObject35 --> __InputObject31 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 Object16{{"Object[16∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access14{{"Access[14∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access15{{"Access[15∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access14 & Access15 --> Object16 + Constant59{{"Constant[59∈0] ➊
ᐸ13ᐳ"}}:::plan + Constant59 --> __InputObject35 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access14 __Value2 --> Access15 + ApplyInput17{{"ApplyInput[17∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput17 + ApplyInput41{{"ApplyInput[41∈0] ➊"}}:::plan + __InputObject31 --> ApplyInput41 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant55{{"Constant[55∈0] ➊
ᐸ'2023-05-24T07:43:00Z'ᐳ"}}:::plan - Constant56{{"Constant[56∈0] ➊
ᐸ'temp'ᐳ"}}:::plan - Constant57{{"Constant[57∈0] ➊
ᐸ12.7ᐳ"}}:::plan - Constant58{{"Constant[58∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant59{{"Constant[59∈0] ➊
ᐸ13ᐳ"}}:::plan - PgInsertSingle13[["PgInsertSingle[13∈1] ➊
ᐸmeasurements(timestamp,key,value,user_id)ᐳ"]]:::sideeffectplan - Object16 & Constant55 & Constant56 & Constant57 & Constant58 --> PgInsertSingle13 - Object17{{"Object[17∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle13 --> Object17 - PgSelect22[["PgSelect[22∈3] ➊
ᐸusersᐳ"]]:::plan - PgClassExpression21{{"PgClassExpression[21∈3] ➊
ᐸ__measurem....”user_id”ᐳ"}}:::plan - Object16 & PgClassExpression21 --> PgSelect22 - PgClassExpression18{{"PgClassExpression[18∈3] ➊
ᐸ__measurem...timestamp”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3] ➊
ᐸ__measurements__.”key”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3] ➊
ᐸ__measurem...__.”value”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression20 - PgInsertSingle13 --> PgClassExpression21 - First26{{"First[26∈3] ➊"}}:::plan - PgSelectRows27[["PgSelectRows[27∈3] ➊"]]:::plan + PgInsertSingle13[["PgInsertSingle[13∈1] ➊
ᐸmeasurements()ᐳ"]]:::sideeffectplan + Object16 & ApplyInput17 --> PgInsertSingle13 + PgSelect24[["PgSelect[24∈1] ➊
ᐸusersᐳ"]]:::plan + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__measurem....”user_id”ᐳ"}}:::plan + Object16 & PgClassExpression23 --> PgSelect24 + Object18{{"Object[18∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle13 --> Object18 + PgClassExpression19{{"PgClassExpression[19∈1] ➊
ᐸ__measurem...timestamp”ᐳ"}}:::plan + Access20{{"Access[20∈1] ➊
ᐸ13.tᐳ"}}:::plan + Access20 --> PgClassExpression19 + PgInsertSingle13 --> Access20 + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__measurements__.”key”ᐳ"}}:::plan + Access20 --> PgClassExpression21 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__measurem...__.”value”ᐳ"}}:::plan + Access20 --> PgClassExpression22 + Access20 --> PgClassExpression23 + First26{{"First[26∈1] ➊"}}:::plan + PgSelectRows27[["PgSelectRows[27∈1] ➊"]]:::plan PgSelectRows27 --> First26 - PgSelect22 --> PgSelectRows27 - PgSelectSingle28{{"PgSelectSingle[28∈3] ➊
ᐸusersᐳ"}}:::plan + PgSelect24 --> PgSelectRows27 + PgSelectSingle28{{"PgSelectSingle[28∈1] ➊
ᐸusersᐳ"}}:::plan First26 --> PgSelectSingle28 - PgClassExpression29{{"PgClassExpression[29∈4] ➊
ᐸ__users__.”id”ᐳ"}}:::plan + PgClassExpression29{{"PgClassExpression[29∈1] ➊
ᐸ__users__.”id”ᐳ"}}:::plan PgSelectSingle28 --> PgClassExpression29 - PgClassExpression30{{"PgClassExpression[30∈4] ➊
ᐸ__users__.”name”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__users__.”name”ᐳ"}}:::plan PgSelectSingle28 --> PgClassExpression30 - PgUpdateSingle37[["PgUpdateSingle[37∈5] ➊
ᐸmeasurements(timestamp,key;value)ᐳ"]]:::sideeffectplan - Object40{{"Object[40∈5] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object40 & Constant55 & Constant56 & Constant59 --> PgUpdateSingle37 - Access38{{"Access[38∈5] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access39{{"Access[39∈5] ➊
ᐸ2.withPgClientᐳ"}}:::plan + PgUpdateSingle37[["PgUpdateSingle[37∈2] ➊
ᐸmeasurements(timestamp,key;)ᐳ"]]:::sideeffectplan + Object40{{"Object[40∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object40 & Constant55 & Constant56 & ApplyInput41 --> PgUpdateSingle37 + Access38{{"Access[38∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access39{{"Access[39∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access38 & Access39 --> Object40 + PgSelect48[["PgSelect[48∈2] ➊
ᐸusersᐳ"]]:::plan + PgClassExpression47{{"PgClassExpression[47∈2] ➊
ᐸ__measurem....”user_id”ᐳ"}}:::plan + Object40 & PgClassExpression47 --> PgSelect48 __Value2 --> Access38 __Value2 --> Access39 - Object41{{"Object[41∈5] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle37 --> Object41 - PgSelect46[["PgSelect[46∈7] ➊
ᐸusersᐳ"]]:::plan - PgClassExpression45{{"PgClassExpression[45∈7] ➊
ᐸ__measurem....”user_id”ᐳ"}}:::plan - Object40 & PgClassExpression45 --> PgSelect46 - PgClassExpression42{{"PgClassExpression[42∈7] ➊
ᐸ__measurem...timestamp”ᐳ"}}:::plan - PgUpdateSingle37 --> PgClassExpression42 - PgClassExpression43{{"PgClassExpression[43∈7] ➊
ᐸ__measurements__.”key”ᐳ"}}:::plan - PgUpdateSingle37 --> PgClassExpression43 - PgClassExpression44{{"PgClassExpression[44∈7] ➊
ᐸ__measurem...__.”value”ᐳ"}}:::plan - PgUpdateSingle37 --> PgClassExpression44 - PgUpdateSingle37 --> PgClassExpression45 - First50{{"First[50∈7] ➊"}}:::plan - PgSelectRows51[["PgSelectRows[51∈7] ➊"]]:::plan + Object42{{"Object[42∈2] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle37 --> Object42 + PgClassExpression43{{"PgClassExpression[43∈2] ➊
ᐸ__measurem...timestamp”ᐳ"}}:::plan + Access44{{"Access[44∈2] ➊
ᐸ37.tᐳ"}}:::plan + Access44 --> PgClassExpression43 + PgUpdateSingle37 --> Access44 + PgClassExpression45{{"PgClassExpression[45∈2] ➊
ᐸ__measurements__.”key”ᐳ"}}:::plan + Access44 --> PgClassExpression45 + PgClassExpression46{{"PgClassExpression[46∈2] ➊
ᐸ__measurem...__.”value”ᐳ"}}:::plan + Access44 --> PgClassExpression46 + Access44 --> PgClassExpression47 + First50{{"First[50∈2] ➊"}}:::plan + PgSelectRows51[["PgSelectRows[51∈2] ➊"]]:::plan PgSelectRows51 --> First50 - PgSelect46 --> PgSelectRows51 - PgSelectSingle52{{"PgSelectSingle[52∈7] ➊
ᐸusersᐳ"}}:::plan + PgSelect48 --> PgSelectRows51 + PgSelectSingle52{{"PgSelectSingle[52∈2] ➊
ᐸusersᐳ"}}:::plan First50 --> PgSelectSingle52 - PgClassExpression53{{"PgClassExpression[53∈8] ➊
ᐸ__users__.”id”ᐳ"}}:::plan + PgClassExpression53{{"PgClassExpression[53∈2] ➊
ᐸ__users__.”id”ᐳ"}}:::plan PgSelectSingle52 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈8] ➊
ᐸ__users__.”name”ᐳ"}}:::plan + PgClassExpression54{{"PgClassExpression[54∈2] ➊
ᐸ__users__.”name”ᐳ"}}:::plan PgSelectSingle52 --> PgClassExpression54 %% define steps @@ -82,36 +98,12 @@ graph TD subgraph "Buckets for mutations/v4/partitions.unqualified" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access14,Access15,Object16,Constant55,Constant56,Constant57,Constant58,Constant59 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 16, 55, 56, 57, 58

1: PgInsertSingle[13]
2:
ᐳ: Object[17]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,Access14,Access15,Object16,ApplyInput17,__InputObject31,__InputObject35,ApplyInput41,Constant55,Constant56,Constant57,Constant58,Constant59 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 16, 17

1: PgInsertSingle[13]
2:
ᐳ: 18, 20, 19, 21, 22, 23
3: PgSelect[24]
4: PgSelectRows[27]
ᐳ: 26, 28, 29, 30"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle13,Object17 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 13, 16

ROOT Object{1}ᐸ{result}ᐳ[17]"):::bucket + class Bucket1,PgInsertSingle13,Object18,PgClassExpression19,Access20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgSelect24,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression29,PgClassExpression30 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 55, 56, 41, 2

1: Access[38]
2: Access[39]
3: Object[40]
4: PgUpdateSingle[37]
5:
ᐳ: 42, 44, 43, 45, 46, 47
6: PgSelect[48]
7: PgSelectRows[51]
ᐳ: 50, 52, 53, 54"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 13, 16

ROOT PgInsertSingle{1}ᐸmeasurements(timestamp,key,value,user_id)ᐳ[13]
1:
ᐳ: 18, 19, 20, 21
2: PgSelect[22]
3: PgSelectRows[27]
ᐳ: First[26], PgSelectSingle[28]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgSelect22,First26,PgSelectRows27,PgSelectSingle28 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 28

ROOT PgSelectSingle{3}ᐸusersᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression29,PgClassExpression30 bucket4 - Bucket5("Bucket 5 (mutationField)
Deps: 55, 56, 59, 2

1: Access[38]
2: Access[39]
3: Object[40]
4: PgUpdateSingle[37]
5:
ᐳ: Object[41]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgUpdateSingle37,Access38,Access39,Object40,Object41 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 41, 37, 40

ROOT Object{5}ᐸ{result}ᐳ[41]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 37, 40

ROOT PgUpdateSingle{5}ᐸmeasurements(timestamp,key;value)ᐳ[37]
1:
ᐳ: 42, 43, 44, 45
2: PgSelect[46]
3: PgSelectRows[51]
ᐳ: First[50], PgSelectSingle[52]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression42,PgClassExpression43,PgClassExpression44,PgClassExpression45,PgSelect46,First50,PgSelectRows51,PgSelectSingle52 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 52

ROOT PgSelectSingle{7}ᐸusersᐳ[52]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression53,PgClassExpression54 bucket8 - Bucket0 --> Bucket1 & Bucket5 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 + class Bucket2,PgUpdateSingle37,Access38,Access39,Object40,Object42,PgClassExpression43,Access44,PgClassExpression45,PgClassExpression46,PgClassExpression47,PgSelect48,First50,PgSelectRows51,PgSelectSingle52,PgClassExpression53,PgClassExpression54 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/pg11.identity.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/pg11.identity.mermaid index 2bd2c0f3fc..af51f597c0 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/pg11.identity.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/pg11.identity.mermaid @@ -9,91 +9,91 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 + __InputObject19{{"__InputObject[19∈0] ➊"}}:::plan + __InputObject21{{"__InputObject[21∈0] ➊"}}:::plan + __InputObject21 --> __InputObject19 + Constant46{{"Constant[46∈0] ➊
ᐸ'test'ᐳ"}}:::plan + Constant46 --> __InputObject21 + __InputObject32{{"__InputObject[32∈0] ➊"}}:::plan + __InputObject34{{"__InputObject[34∈0] ➊"}}:::plan + __InputObject34 --> __InputObject32 + Constant47{{"Constant[47∈0] ➊
ᐸ100ᐳ"}}:::plan + Constant47 & Constant46 --> __InputObject34 + Constant46 --> __InputObject8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + ApplyInput14{{"ApplyInput[14∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput14 + ApplyInput27{{"ApplyInput[27∈0] ➊"}}:::plan + __InputObject19 --> ApplyInput27 + ApplyInput41{{"ApplyInput[41∈0] ➊"}}:::plan + __InputObject32 --> ApplyInput41 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant40{{"Constant[40∈0] ➊
ᐸ'test'ᐳ"}}:::plan - Constant41{{"Constant[41∈0] ➊
ᐸ100ᐳ"}}:::plan - PgInsertSingle10[["PgInsertSingle[10∈1] ➊
ᐸalways_as_identity(t)ᐳ"]]:::sideeffectplan - Object13 & Constant40 --> PgInsertSingle10 - Object14{{"Object[14∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle10 --> Object14 - PgClassExpression15{{"PgClassExpression[15∈3] ➊
ᐸ__always_a...ity__.”id”ᐳ"}}:::plan - PgInsertSingle10 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈3] ➊
ᐸ__always_a...tity__.”t”ᐳ"}}:::plan - PgInsertSingle10 --> PgClassExpression16 - PgInsertSingle21[["PgInsertSingle[21∈4] ➊
ᐸby_default_as_identity(t)ᐳ"]]:::sideeffectplan - Object24{{"Object[24∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object24 & Constant40 --> PgInsertSingle21 - Access22{{"Access[22∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access23{{"Access[23∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access22 & Access23 --> Object24 - __Value2 --> Access22 - __Value2 --> Access23 - Object25{{"Object[25∈4] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle21 --> Object25 - PgClassExpression26{{"PgClassExpression[26∈6] ➊
ᐸ__by_defau...ity__.”id”ᐳ"}}:::plan - PgInsertSingle21 --> PgClassExpression26 - PgClassExpression27{{"PgClassExpression[27∈6] ➊
ᐸ__by_defau...tity__.”t”ᐳ"}}:::plan - PgInsertSingle21 --> PgClassExpression27 - PgInsertSingle33[["PgInsertSingle[33∈7] ➊
ᐸby_default_as_identity(id,t)ᐳ"]]:::sideeffectplan - Object36{{"Object[36∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object36 & Constant41 & Constant40 --> PgInsertSingle33 - Access34{{"Access[34∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access35{{"Access[35∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access34 & Access35 --> Object36 - __Value2 --> Access34 - __Value2 --> Access35 - Object37{{"Object[37∈7] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle33 --> Object37 - PgClassExpression38{{"PgClassExpression[38∈9] ➊
ᐸ__by_defau...ity__.”id”ᐳ"}}:::plan - PgInsertSingle33 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈9] ➊
ᐸ__by_defau...tity__.”t”ᐳ"}}:::plan - PgInsertSingle33 --> PgClassExpression39 + PgInsertSingle10[["PgInsertSingle[10∈1] ➊
ᐸalways_as_identity()ᐳ"]]:::sideeffectplan + Object13 & ApplyInput14 --> PgInsertSingle10 + Object15{{"Object[15∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle10 --> Object15 + PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__always_a...ity__.”id”ᐳ"}}:::plan + Access17{{"Access[17∈1] ➊
ᐸ10.tᐳ"}}:::plan + Access17 --> PgClassExpression16 + PgInsertSingle10 --> Access17 + PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__always_a...tity__.”t”ᐳ"}}:::plan + Access17 --> PgClassExpression18 + PgInsertSingle23[["PgInsertSingle[23∈2] ➊
ᐸby_default_as_identity()ᐳ"]]:::sideeffectplan + Object26{{"Object[26∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object26 & ApplyInput27 --> PgInsertSingle23 + Access24{{"Access[24∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access25{{"Access[25∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access24 & Access25 --> Object26 + __Value2 --> Access24 + __Value2 --> Access25 + Object28{{"Object[28∈2] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle23 --> Object28 + PgClassExpression29{{"PgClassExpression[29∈2] ➊
ᐸ__by_defau...ity__.”id”ᐳ"}}:::plan + Access30{{"Access[30∈2] ➊
ᐸ23.tᐳ"}}:::plan + Access30 --> PgClassExpression29 + PgInsertSingle23 --> Access30 + PgClassExpression31{{"PgClassExpression[31∈2] ➊
ᐸ__by_defau...tity__.”t”ᐳ"}}:::plan + Access30 --> PgClassExpression31 + PgInsertSingle37[["PgInsertSingle[37∈3] ➊
ᐸby_default_as_identity()ᐳ"]]:::sideeffectplan + Object40{{"Object[40∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object40 & ApplyInput41 --> PgInsertSingle37 + Access38{{"Access[38∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access39{{"Access[39∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access38 & Access39 --> Object40 + __Value2 --> Access38 + __Value2 --> Access39 + Object42{{"Object[42∈3] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle37 --> Object42 + PgClassExpression43{{"PgClassExpression[43∈3] ➊
ᐸ__by_defau...ity__.”id”ᐳ"}}:::plan + Access44{{"Access[44∈3] ➊
ᐸ37.tᐳ"}}:::plan + Access44 --> PgClassExpression43 + PgInsertSingle37 --> Access44 + PgClassExpression45{{"PgClassExpression[45∈3] ➊
ᐸ__by_defau...tity__.”t”ᐳ"}}:::plan + Access44 --> PgClassExpression45 %% define steps subgraph "Buckets for mutations/v4/pg11.identity" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Constant40,Constant41 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 13, 40

1: PgInsertSingle[10]
2:
ᐳ: Object[14]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,Access11,Access12,Object13,ApplyInput14,__InputObject19,__InputObject21,ApplyInput27,__InputObject32,__InputObject34,ApplyInput41,Constant46,Constant47 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 13, 14

1: PgInsertSingle[10]
2:
ᐳ: 15, 17, 16, 18"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle10,Object14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 10

ROOT Object{1}ᐸ{result}ᐳ[14]"):::bucket + class Bucket1,PgInsertSingle10,Object15,PgClassExpression16,Access17,PgClassExpression18 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 27, 2

1: Access[24]
2: Access[25]
3: Object[26]
4: PgInsertSingle[23]
5:
ᐳ: 28, 30, 29, 31"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 10

ROOT PgInsertSingle{1}ᐸalways_as_identity(t)ᐳ[10]"):::bucket + class Bucket2,PgInsertSingle23,Access24,Access25,Object26,Object28,PgClassExpression29,Access30,PgClassExpression31 bucket2 + Bucket3("Bucket 3 (mutationField)
Deps: 41, 2

1: Access[38]
2: Access[39]
3: Object[40]
4: PgInsertSingle[37]
5:
ᐳ: 42, 44, 43, 45"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression15,PgClassExpression16 bucket3 - Bucket4("Bucket 4 (mutationField)
Deps: 40, 2

1: Access[22]
2: Access[23]
3: Object[24]
4: PgInsertSingle[21]
5:
ᐳ: Object[25]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgInsertSingle21,Access22,Access23,Object24,Object25 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 25, 21

ROOT Object{4}ᐸ{result}ᐳ[25]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 21

ROOT PgInsertSingle{4}ᐸby_default_as_identity(t)ᐳ[21]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression26,PgClassExpression27 bucket6 - Bucket7("Bucket 7 (mutationField)
Deps: 41, 40, 2

1: Access[34]
2: Access[35]
3: Object[36]
4: PgInsertSingle[33]
5:
ᐳ: Object[37]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgInsertSingle33,Access34,Access35,Object36,Object37 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 37, 33

ROOT Object{7}ᐸ{result}ᐳ[37]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 33

ROOT PgInsertSingle{7}ᐸby_default_as_identity(id,t)ᐳ[33]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression38,PgClassExpression39 bucket9 - Bucket0 --> Bucket1 & Bucket4 & Bucket7 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 + class Bucket3,PgInsertSingle37,Access38,Access39,Object40,Object42,PgClassExpression43,Access44,PgClassExpression45 bucket3 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/pg11.network_types.createNetwork.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/pg11.network_types.createNetwork.mermaid index 5fdb658c05..5d725da55d 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/pg11.network_types.createNetwork.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/pg11.network_types.createNetwork.mermaid @@ -9,6 +9,14 @@ graph TD %% plan dependencies + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant29{{"Constant[29∈0] ➊
ᐸ'10.0.0.0'ᐳ"}}:::plan + Constant30{{"Constant[30∈0] ➊
ᐸ'10.0.0.0/8'ᐳ"}}:::plan + Constant31{{"Constant[31∈0] ➊
ᐸ'000000000000'ᐳ"}}:::plan + Constant32{{"Constant[32∈0] ➊
ᐸ'0000000000000000'ᐳ"}}:::plan + Constant29 & Constant30 & Constant31 & Constant32 --> __InputObject8 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 Object16{{"Object[16∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access14{{"Access[14∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access15{{"Access[15∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan @@ -16,47 +24,39 @@ graph TD __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access14 __Value2 --> Access15 + ApplyInput17{{"ApplyInput[17∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput17 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant18{{"Constant[18∈0] ➊
ᐸ'networks'ᐳ"}}:::plan - Constant27{{"Constant[27∈0] ➊
ᐸ'10.0.0.0'ᐳ"}}:::plan - Constant28{{"Constant[28∈0] ➊
ᐸ'10.0.0.0/8'ᐳ"}}:::plan - Constant29{{"Constant[29∈0] ➊
ᐸ'000000000000'ᐳ"}}:::plan - Constant30{{"Constant[30∈0] ➊
ᐸ'0000000000000000'ᐳ"}}:::plan - PgInsertSingle13[["PgInsertSingle[13∈1] ➊
ᐸnetwork(inet,cidr,macaddr,macaddr8)ᐳ"]]:::sideeffectplan - Object16 & Constant27 & Constant28 & Constant29 & Constant30 --> PgInsertSingle13 - Object17{{"Object[17∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle13 --> Object17 - List20{{"List[20∈3] ➊
ᐸ18,19ᐳ"}}:::plan - PgClassExpression19{{"PgClassExpression[19∈3] ➊
ᐸ__network__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression19 --> List20 - PgInsertSingle13 --> PgClassExpression19 - Lambda21{{"Lambda[21∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List20 --> Lambda21 - PgClassExpression23{{"PgClassExpression[23∈3] ➊
ᐸ__network__.”inet”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3] ➊
ᐸ__network__.”cidr”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3] ➊
ᐸ__network__.”macaddr”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3] ➊
ᐸ__network__.”macaddr8”ᐳ"}}:::plan - PgInsertSingle13 --> PgClassExpression26 + Constant19{{"Constant[19∈0] ➊
ᐸ'networks'ᐳ"}}:::plan + PgInsertSingle13[["PgInsertSingle[13∈1] ➊
ᐸnetwork()ᐳ"]]:::sideeffectplan + Object16 & ApplyInput17 --> PgInsertSingle13 + List22{{"List[22∈1] ➊
ᐸ19,20ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__network__.”id”ᐳ"}}:::plan + Constant19 & PgClassExpression20 --> List22 + Object18{{"Object[18∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle13 --> Object18 + Access21{{"Access[21∈1] ➊
ᐸ13.tᐳ"}}:::plan + Access21 --> PgClassExpression20 + PgInsertSingle13 --> Access21 + Lambda23{{"Lambda[23∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List22 --> Lambda23 + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__network__.”inet”ᐳ"}}:::plan + Access21 --> PgClassExpression25 + PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__network__.”cidr”ᐳ"}}:::plan + Access21 --> PgClassExpression26 + PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__network__.”macaddr”ᐳ"}}:::plan + Access21 --> PgClassExpression27 + PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__network__.”macaddr8”ᐳ"}}:::plan + Access21 --> PgClassExpression28 %% define steps subgraph "Buckets for mutations/v4/pg11.network_types.createNetwork" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access14,Access15,Object16,Constant18,Constant27,Constant28,Constant29,Constant30 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 16, 27, 28, 29, 30, 18

1: PgInsertSingle[13]
2:
ᐳ: Object[17]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,Access14,Access15,Object16,ApplyInput17,Constant19,Constant29,Constant30,Constant31,Constant32 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 16, 17, 19

1: PgInsertSingle[13]
2:
ᐳ: 18, 21, 20, 22, 23, 25, 26, 27, 28"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle13,Object17 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 13, 18

ROOT Object{1}ᐸ{result}ᐳ[17]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 13, 18

ROOT PgInsertSingle{1}ᐸnetwork(inet,cidr,macaddr,macaddr8)ᐳ[13]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,List20,Lambda21,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26 bucket3 + class Bucket1,PgInsertSingle13,Object18,PgClassExpression20,Access21,List22,Lambda23,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgClassExpression28 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/pg11.types.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/pg11.types.mermaid index f2236611fd..3b3b29a731 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/pg11.types.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/pg11.types.mermaid @@ -9,145 +9,148 @@ graph TD %% plan dependencies - Object21{{"Object[21∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access19{{"Access[19∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access20{{"Access[20∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access19 & Access20 --> Object21 + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + Constant76{{"Constant[76∈0] ➊
ᐸ'postgraphile_test_authenticator'ᐳ"}}:::plan + Constant77{{"Constant[77∈0] ➊
ᐸ'pg11'ᐳ"}}:::plan + Constant12{{"Constant[12∈0] ➊
ᐸ[ '2098288669218571759', '2098288669218571760', '20982886692ᐳ"}}:::plan + __InputObject13{{"__InputObject[13∈0] ➊"}}:::plan + Constant76 & Constant77 & Constant12 & __InputObject13 --> __InputObject9 + __InputObject43{{"__InputObject[43∈0] ➊"}}:::plan + Constant79{{"Constant[79∈0] ➊
ᐸ'postgraphile_test_visitor'ᐳ"}}:::plan + Constant80{{"Constant[80∈0] ➊
ᐸ'c'ᐳ"}}:::plan + Constant46{{"Constant[46∈0] ➊
ᐸ[ '2098288669218571759', '2098288669218571760', '20982886692ᐳ"}}:::plan + __InputObject47{{"__InputObject[47∈0] ➊"}}:::plan + Constant79 & Constant80 & Constant46 & __InputObject47 --> __InputObject43 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant75{{"Constant[75∈0] ➊
ᐸ12ᐳ"}}:::plan + Constant75 & __InputObject9 --> __InputObject6 + Constant78{{"Constant[78∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant78 --> __InputObject13 + Object18{{"Object[18∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access16{{"Access[16∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access17{{"Access[17∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access16 & Access17 --> Object18 + __InputObject41{{"__InputObject[41∈0] ➊"}}:::plan + __InputObject43 --> __InputObject41 + Constant78 --> __InputObject47 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access19 - __Value2 --> Access20 + __Value2 --> Access16 + __Value2 --> Access17 + ApplyInput19{{"ApplyInput[19∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput19 + ApplyInput53{{"ApplyInput[53∈0] ➊"}}:::plan + __InputObject41 --> ApplyInput53 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant83{{"Constant[83∈0] ➊
ᐸ12ᐳ"}}:::plan - Constant84{{"Constant[84∈0] ➊
ᐸ'postgraphile_test_authenticator'ᐳ"}}:::plan - Constant85{{"Constant[85∈0] ➊
ᐸ'pg11'ᐳ"}}:::plan - Constant90{{"Constant[90∈0] ➊
ᐸ'postgraphile_test_visitor'ᐳ"}}:::plan - Constant91{{"Constant[91∈0] ➊
ᐸ'c'ᐳ"}}:::plan - Constant92{{"Constant[92∈0] ➊
ᐸ[ '2098288669218571759', '2098288669218571760', '20982886692ᐳ"}}:::plan - Constant93{{"Constant[93∈0] ➊
ᐸ§{ a: 1 }ᐳ"}}:::plan - PgUpdateSingle18[["PgUpdateSingle[18∈1] ➊
ᐸtypes(id;regrole,regnamespace,bigint_domain_array_domain,domain_constrained_compound_type)ᐳ"]]:::sideeffectplan - Object21 & Constant83 & Constant84 & Constant85 & Constant92 & Constant93 --> PgUpdateSingle18 - Object22{{"Object[22∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle18 --> Object22 - PgSelect31[["PgSelect[31∈3] ➊
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object21 & PgClassExpression30 --> PgSelect31 - PgClassExpression25{{"PgClassExpression[25∈3] ➊
ᐸ__types__.”id”ᐳ"}}:::plan - PgUpdateSingle18 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3] ➊
ᐸ__types__.”regrole”ᐳ"}}:::plan - PgUpdateSingle18 --> PgClassExpression26 - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__types__....namespace”ᐳ"}}:::plan - PgUpdateSingle18 --> PgClassExpression27 - PgClassExpression28{{"PgClassExpression[28∈3] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgUpdateSingle18 --> PgClassExpression28 - PgUpdateSingle18 --> PgClassExpression30 - First35{{"First[35∈3] ➊"}}:::plan - PgSelectRows36[["PgSelectRows[36∈3] ➊"]]:::plan - PgSelectRows36 --> First35 - PgSelect31 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈3] ➊
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"}}:::plan - First35 --> PgSelectSingle37 - __Item29[/"__Item[29∈4]
ᐸ28ᐳ"\]:::itemplan - PgClassExpression28 ==> __Item29 - PgClassExpression38{{"PgClassExpression[38∈5] ➊
ᐸ__frmcdc_d...type__.”a”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈5] ➊
ᐸ__frmcdc_d...type__.”b”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈5] ➊
ᐸ__frmcdc_d...type__.”c”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈5] ➊
ᐸ__frmcdc_d...type__.”d”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression41 - PgClassExpression42{{"PgClassExpression[42∈5] ➊
ᐸ__frmcdc_d...type__.”e”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression42 - PgClassExpression43{{"PgClassExpression[43∈5] ➊
ᐸ__frmcdc_d...type__.”f”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression43 - PgClassExpression44{{"PgClassExpression[44∈5] ➊
ᐸ__frmcdc_d....”foo_bar”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression44 - PgInsertSingle56[["PgInsertSingle[56∈6] ➊
ᐸtypes(regrole,regnamespace,bigint_domain_array_domain,domain_constrained_compound_type)ᐳ"]]:::sideeffectplan - Object59{{"Object[59∈6] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object59 & Constant90 & Constant91 & Constant92 & Constant93 --> PgInsertSingle56 - Access57{{"Access[57∈6] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access58{{"Access[58∈6] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access57 & Access58 --> Object59 - __Value2 --> Access57 - __Value2 --> Access58 - Object60{{"Object[60∈6] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle56 --> Object60 - PgSelect69[["PgSelect[69∈8] ➊
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"]]:::plan - PgClassExpression68{{"PgClassExpression[68∈8] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object59 & PgClassExpression68 --> PgSelect69 - PgClassExpression63{{"PgClassExpression[63∈8] ➊
ᐸ__types__.”id”ᐳ"}}:::plan - PgInsertSingle56 --> PgClassExpression63 - PgClassExpression64{{"PgClassExpression[64∈8] ➊
ᐸ__types__.”regrole”ᐳ"}}:::plan - PgInsertSingle56 --> PgClassExpression64 - PgClassExpression65{{"PgClassExpression[65∈8] ➊
ᐸ__types__....namespace”ᐳ"}}:::plan - PgInsertSingle56 --> PgClassExpression65 - PgClassExpression66{{"PgClassExpression[66∈8] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgInsertSingle56 --> PgClassExpression66 - PgInsertSingle56 --> PgClassExpression68 - First73{{"First[73∈8] ➊"}}:::plan - PgSelectRows74[["PgSelectRows[74∈8] ➊"]]:::plan - PgSelectRows74 --> First73 - PgSelect69 --> PgSelectRows74 - PgSelectSingle75{{"PgSelectSingle[75∈8] ➊
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"}}:::plan - First73 --> PgSelectSingle75 - __Item67[/"__Item[67∈9]
ᐸ66ᐳ"\]:::itemplan - PgClassExpression66 ==> __Item67 - PgClassExpression76{{"PgClassExpression[76∈10] ➊
ᐸ__frmcdc_d...type__.”a”ᐳ"}}:::plan - PgSelectSingle75 --> PgClassExpression76 - PgClassExpression77{{"PgClassExpression[77∈10] ➊
ᐸ__frmcdc_d...type__.”b”ᐳ"}}:::plan - PgSelectSingle75 --> PgClassExpression77 - PgClassExpression78{{"PgClassExpression[78∈10] ➊
ᐸ__frmcdc_d...type__.”c”ᐳ"}}:::plan - PgSelectSingle75 --> PgClassExpression78 - PgClassExpression79{{"PgClassExpression[79∈10] ➊
ᐸ__frmcdc_d...type__.”d”ᐳ"}}:::plan - PgSelectSingle75 --> PgClassExpression79 - PgClassExpression80{{"PgClassExpression[80∈10] ➊
ᐸ__frmcdc_d...type__.”e”ᐳ"}}:::plan - PgSelectSingle75 --> PgClassExpression80 - PgClassExpression81{{"PgClassExpression[81∈10] ➊
ᐸ__frmcdc_d...type__.”f”ᐳ"}}:::plan - PgSelectSingle75 --> PgClassExpression81 - PgClassExpression82{{"PgClassExpression[82∈10] ➊
ᐸ__frmcdc_d....”foo_bar”ᐳ"}}:::plan - PgSelectSingle75 --> PgClassExpression82 + PgUpdateSingle15[["PgUpdateSingle[15∈1] ➊
ᐸtypes(id;)ᐳ"]]:::sideeffectplan + Object18 & Constant75 & ApplyInput19 --> PgUpdateSingle15 + PgSelect28[["PgSelect[28∈1] ➊
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"]]:::plan + PgFromExpression30{{"PgFromExpression[30∈1] ➊"}}:::plan + Object18 & PgFromExpression30 --> PgSelect28 + Object20{{"Object[20∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle15 --> Object20 + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + Access22{{"Access[22∈1] ➊
ᐸ15.tᐳ"}}:::plan + Access22 --> PgClassExpression21 + PgUpdateSingle15 --> Access22 + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__types__.”regrole”ᐳ"}}:::plan + Access22 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__types__....namespace”ᐳ"}}:::plan + Access22 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + Access22 --> PgClassExpression25 + PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + Access22 --> PgClassExpression27 + PgClassExpression27 --> PgFromExpression30 + First31{{"First[31∈1] ➊"}}:::plan + PgSelectRows32[["PgSelectRows[32∈1] ➊"]]:::plan + PgSelectRows32 --> First31 + PgSelect28 --> PgSelectRows32 + PgSelectSingle33{{"PgSelectSingle[33∈1] ➊
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"}}:::plan + First31 --> PgSelectSingle33 + PgClassExpression34{{"PgClassExpression[34∈1] ➊
ᐸ__frmcdc_d...type__.”a”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression34 + PgClassExpression35{{"PgClassExpression[35∈1] ➊
ᐸ__frmcdc_d...type__.”b”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression35 + PgClassExpression36{{"PgClassExpression[36∈1] ➊
ᐸ__frmcdc_d...type__.”c”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression36 + PgClassExpression37{{"PgClassExpression[37∈1] ➊
ᐸ__frmcdc_d...type__.”d”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression37 + PgClassExpression38{{"PgClassExpression[38∈1] ➊
ᐸ__frmcdc_d...type__.”e”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression38 + PgClassExpression39{{"PgClassExpression[39∈1] ➊
ᐸ__frmcdc_d...type__.”f”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈1] ➊
ᐸ__frmcdc_d....”foo_bar”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression40 + __Item26[/"__Item[26∈2]
ᐸ25ᐳ"\]:::itemplan + PgClassExpression25 ==> __Item26 + PgInsertSingle49[["PgInsertSingle[49∈3] ➊
ᐸtypes()ᐳ"]]:::sideeffectplan + Object52{{"Object[52∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object52 & ApplyInput53 --> PgInsertSingle49 + Access50{{"Access[50∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access51{{"Access[51∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access50 & Access51 --> Object52 + PgSelect62[["PgSelect[62∈3] ➊
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"]]:::plan + PgFromExpression64{{"PgFromExpression[64∈3] ➊"}}:::plan + Object52 & PgFromExpression64 --> PgSelect62 + __Value2 --> Access50 + __Value2 --> Access51 + Object54{{"Object[54∈3] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle49 --> Object54 + PgClassExpression55{{"PgClassExpression[55∈3] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + Access56{{"Access[56∈3] ➊
ᐸ49.tᐳ"}}:::plan + Access56 --> PgClassExpression55 + PgInsertSingle49 --> Access56 + PgClassExpression57{{"PgClassExpression[57∈3] ➊
ᐸ__types__.”regrole”ᐳ"}}:::plan + Access56 --> PgClassExpression57 + PgClassExpression58{{"PgClassExpression[58∈3] ➊
ᐸ__types__....namespace”ᐳ"}}:::plan + Access56 --> PgClassExpression58 + PgClassExpression59{{"PgClassExpression[59∈3] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + Access56 --> PgClassExpression59 + PgClassExpression61{{"PgClassExpression[61∈3] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + Access56 --> PgClassExpression61 + PgClassExpression61 --> PgFromExpression64 + First65{{"First[65∈3] ➊"}}:::plan + PgSelectRows66[["PgSelectRows[66∈3] ➊"]]:::plan + PgSelectRows66 --> First65 + PgSelect62 --> PgSelectRows66 + PgSelectSingle67{{"PgSelectSingle[67∈3] ➊
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"}}:::plan + First65 --> PgSelectSingle67 + PgClassExpression68{{"PgClassExpression[68∈3] ➊
ᐸ__frmcdc_d...type__.”a”ᐳ"}}:::plan + PgSelectSingle67 --> PgClassExpression68 + PgClassExpression69{{"PgClassExpression[69∈3] ➊
ᐸ__frmcdc_d...type__.”b”ᐳ"}}:::plan + PgSelectSingle67 --> PgClassExpression69 + PgClassExpression70{{"PgClassExpression[70∈3] ➊
ᐸ__frmcdc_d...type__.”c”ᐳ"}}:::plan + PgSelectSingle67 --> PgClassExpression70 + PgClassExpression71{{"PgClassExpression[71∈3] ➊
ᐸ__frmcdc_d...type__.”d”ᐳ"}}:::plan + PgSelectSingle67 --> PgClassExpression71 + PgClassExpression72{{"PgClassExpression[72∈3] ➊
ᐸ__frmcdc_d...type__.”e”ᐳ"}}:::plan + PgSelectSingle67 --> PgClassExpression72 + PgClassExpression73{{"PgClassExpression[73∈3] ➊
ᐸ__frmcdc_d...type__.”f”ᐳ"}}:::plan + PgSelectSingle67 --> PgClassExpression73 + PgClassExpression74{{"PgClassExpression[74∈3] ➊
ᐸ__frmcdc_d....”foo_bar”ᐳ"}}:::plan + PgSelectSingle67 --> PgClassExpression74 + __Item60[/"__Item[60∈4]
ᐸ59ᐳ"\]:::itemplan + PgClassExpression59 ==> __Item60 %% define steps subgraph "Buckets for mutations/v4/pg11.types" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access19,Access20,Object21,Constant83,Constant84,Constant85,Constant90,Constant91,Constant92,Constant93 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 21, 83, 84, 85, 92, 93

1: PgUpdateSingle[18]
2:
ᐳ: Object[22]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject9,Constant12,__InputObject13,Access16,Access17,Object18,ApplyInput19,__InputObject41,__InputObject43,Constant46,__InputObject47,ApplyInput53,Constant75,Constant76,Constant77,Constant78,Constant79,Constant80 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 18, 75, 19

1: PgUpdateSingle[15]
2:
ᐳ: 20, 22, 21, 23, 24, 25, 27, 30
3: PgSelect[28]
4: PgSelectRows[32]
ᐳ: 31, 33, 34, 35, 36, 37, 38, 39, 40"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUpdateSingle18,Object22 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 22, 18, 21

ROOT Object{1}ᐸ{result}ᐳ[22]"):::bucket + class Bucket1,PgUpdateSingle15,Object20,PgClassExpression21,Access22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression27,PgSelect28,PgFromExpression30,First31,PgSelectRows32,PgSelectSingle33,PgClassExpression34,PgClassExpression35,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgClassExpression39,PgClassExpression40 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ25ᐳ[26]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 18, 21

ROOT PgUpdateSingle{1}ᐸtypes(id;regrole,regnamespace,bigint_domain_array_domain,domain_constrained_compound_type)ᐳ[18]
1:
ᐳ: 25, 26, 27, 28, 30
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: First[35], PgSelectSingle[37]"):::bucket + class Bucket2,__Item26 bucket2 + Bucket3("Bucket 3 (mutationField)
Deps: 53, 2

1: Access[50]
2: Access[51]
3: Object[52]
4: PgInsertSingle[49]
5:
ᐳ: 54, 56, 55, 57, 58, 59, 61, 64
6: PgSelect[62]
7: PgSelectRows[66]
ᐳ: 65, 67, 68, 69, 70, 71, 72, 73, 74"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgClassExpression28,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ28ᐳ[29]"):::bucket + class Bucket3,PgInsertSingle49,Access50,Access51,Object52,Object54,PgClassExpression55,Access56,PgClassExpression57,PgClassExpression58,PgClassExpression59,PgClassExpression61,PgSelect62,PgFromExpression64,First65,PgSelectRows66,PgSelectSingle67,PgClassExpression68,PgClassExpression69,PgClassExpression70,PgClassExpression71,PgClassExpression72,PgClassExpression73,PgClassExpression74 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ59ᐳ[60]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 37

ROOT PgSelectSingle{3}ᐸfrmcdc_domainConstrainedCompoundTypeᐳ[37]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression38,PgClassExpression39,PgClassExpression40,PgClassExpression41,PgClassExpression42,PgClassExpression43,PgClassExpression44 bucket5 - Bucket6("Bucket 6 (mutationField)
Deps: 90, 91, 92, 93, 2

1: Access[57]
2: Access[58]
3: Object[59]
4: PgInsertSingle[56]
5:
ᐳ: Object[60]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgInsertSingle56,Access57,Access58,Object59,Object60 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 60, 56, 59

ROOT Object{6}ᐸ{result}ᐳ[60]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 56, 59

ROOT PgInsertSingle{6}ᐸtypes(regrole,regnamespace,bigint_domain_array_domain,domain_constrained_compound_type)ᐳ[56]
1:
ᐳ: 63, 64, 65, 66, 68
2: PgSelect[69]
3: PgSelectRows[74]
ᐳ: First[73], PgSelectSingle[75]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression63,PgClassExpression64,PgClassExpression65,PgClassExpression66,PgClassExpression68,PgSelect69,First73,PgSelectRows74,PgSelectSingle75 bucket8 - Bucket9("Bucket 9 (listItem)

ROOT __Item{9}ᐸ66ᐳ[67]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,__Item67 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 75

ROOT PgSelectSingle{8}ᐸfrmcdc_domainConstrainedCompoundTypeᐳ[75]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression76,PgClassExpression77,PgClassExpression78,PgClassExpression79,PgClassExpression80,PgClassExpression81,PgClassExpression82 bucket10 - Bucket0 --> Bucket1 & Bucket6 + class Bucket4,__Item60 bucket4 + Bucket0 --> Bucket1 & Bucket3 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 & Bucket10 + Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier-bigNumbers.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier-bigNumbers.mermaid index e27be26ee4..112c4ffc22 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier-bigNumbers.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier-bigNumbers.mermaid @@ -9,6 +9,13 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant22{{"Constant[22∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant23{{"Constant[23∈0] ➊
ᐸ'1234567890123456789.123456789'ᐳ"}}:::plan + Constant24{{"Constant[24∈0] ➊
ᐸ'987654321098765432'ᐳ"}}:::plan + Constant22 & Constant23 & Constant24 --> __InputObject6 + PgFromExpression15{{"PgFromExpression[15∈0] ➊"}}:::plan + Constant22 & Constant23 & Constant24 --> PgFromExpression15 Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan @@ -16,35 +23,30 @@ graph TD __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 + ApplyInput20{{"ApplyInput[20∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput20 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant20{{"Constant[20∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant21{{"Constant[21∈0] ➊
ᐸ'1234567890123456789.123456789'ᐳ"}}:::plan - Constant22{{"Constant[22∈0] ➊
ᐸ'987654321098765432'ᐳ"}}:::plan PgSelect11[["PgSelect[11∈1] ➊
ᐸauthenticate(mutation)ᐳ"]]:::sideeffectplan - Object14 & Constant20 & Constant21 & Constant22 --> PgSelect11 - First15{{"First[15∈1] ➊"}}:::plan - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan - PgSelectRows16 --> First15 - PgSelect11 --> PgSelectRows16 - PgSelectSingle17{{"PgSelectSingle[17∈1] ➊
ᐸauthenticateᐳ"}}:::plan - First15 --> PgSelectSingle17 - Object18{{"Object[18∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle17 --> Object18 - PgClassExpression19{{"PgClassExpression[19∈2] ➊
ᐸ__authenticate__ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression19 + Object14 & PgFromExpression15 & ApplyInput20 --> PgSelect11 + First16{{"First[16∈1] ➊"}}:::plan + PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan + PgSelectRows17 --> First16 + PgSelect11 --> PgSelectRows17 + PgSelectSingle18{{"PgSelectSingle[18∈1] ➊
ᐸauthenticateᐳ"}}:::plan + First16 --> PgSelectSingle18 + Object19{{"Object[19∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle18 --> Object19 + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__authenticate__ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression21 %% define steps subgraph "Buckets for mutations/v4/pgJwtTypeIdentifier-bigNumbers" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Constant20,Constant21,Constant22 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 14, 20, 21, 22

1: PgSelect[11]
2: PgSelectRows[16]
ᐳ: 15, 17, 18"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Access12,Access13,Object14,PgFromExpression15,ApplyInput20,Constant22,Constant23,Constant24 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 14, 15, 20

1: PgSelect[11]
2: PgSelectRows[17]
ᐳ: 16, 18, 19, 21"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect11,First15,PgSelectRows16,PgSelectSingle17,Object18 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 18

ROOT Object{1}ᐸ{result}ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression19 bucket2 + class Bucket1,PgSelect11,First16,PgSelectRows17,PgSelectSingle18,Object19,PgClassExpression21 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier-withPayload.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier-withPayload.mermaid index dfe292de7b..95b30b7598 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier-withPayload.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier-withPayload.mermaid @@ -9,6 +9,13 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant43{{"Constant[43∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant44{{"Constant[44∈0] ➊
ᐸ'2'ᐳ"}}:::plan + Constant45{{"Constant[45∈0] ➊
ᐸ'3'ᐳ"}}:::plan + Constant43 & Constant44 & Constant45 --> __InputObject6 + PgFromExpression15{{"PgFromExpression[15∈0] ➊"}}:::plan + Constant43 & Constant44 & Constant45 --> PgFromExpression15 Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan @@ -16,76 +23,58 @@ graph TD __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 + ApplyInput20{{"ApplyInput[20∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput20 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant47{{"Constant[47∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant48{{"Constant[48∈0] ➊
ᐸ'2'ᐳ"}}:::plan - Constant49{{"Constant[49∈0] ➊
ᐸ'3'ᐳ"}}:::plan PgSelect11[["PgSelect[11∈1] ➊
ᐸauthenticate_payload(mutation)ᐳ"]]:::sideeffectplan - Object14 & Constant47 & Constant48 & Constant49 --> PgSelect11 - First15{{"First[15∈1] ➊"}}:::plan - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan - PgSelectRows16 --> First15 - PgSelect11 --> PgSelectRows16 - PgSelectSingle17{{"PgSelectSingle[17∈1] ➊
ᐸauthenticate_payloadᐳ"}}:::plan - First15 --> PgSelectSingle17 - Object18{{"Object[18∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle17 --> Object18 - PgSelect30[["PgSelect[30∈2] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression37{{"PgClassExpression[37∈2] ➊
ᐸ__authenti...oad__.”id”ᐳ"}}:::plan - Object14 & PgClassExpression37 --> PgSelect30 - First32{{"First[32∈2] ➊"}}:::plan - PgSelectRows33[["PgSelectRows[33∈2] ➊"]]:::plan - PgSelectRows33 --> First32 - PgSelect30 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈2] ➊
ᐸpersonᐳ"}}:::plan - First32 --> PgSelectSingle34 - PgSelectSingle17 --> PgClassExpression37 - PgSelect20[["PgSelect[20∈3] ➊
ᐸfrmcdc_jwtTokenᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3] ➊
ᐸ__authenti...ad__.”jwt”ᐳ"}}:::plan - Object14 & PgClassExpression19 --> PgSelect20 - PgSelectSingle17 --> PgClassExpression19 - First24{{"First[24∈3] ➊"}}:::plan - PgSelectRows25[["PgSelectRows[25∈3] ➊"]]:::plan - PgSelectRows25 --> First24 - PgSelect20 --> PgSelectRows25 - PgSelectSingle26{{"PgSelectSingle[26∈3] ➊
ᐸfrmcdc_jwtTokenᐳ"}}:::plan - First24 --> PgSelectSingle26 - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__frmcdc_jwt_token__ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 - PgClassExpression29{{"PgClassExpression[29∈3] ➊
ᐸ__authenti...__.”admin”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression29 - PgClassExpression35{{"PgClassExpression[35∈4] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈4] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression36 - PgClassExpression45{{"PgClassExpression[45∈5] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈5] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression46 + Object14 & PgFromExpression15 & ApplyInput20 --> PgSelect11 + PgSelect22[["PgSelect[22∈1] ➊
ᐸfrmcdc_jwtTokenᐳ"]]:::plan + PgFromExpression24{{"PgFromExpression[24∈1] ➊"}}:::plan + Object14 & PgFromExpression24 --> PgSelect22 + PgSelect31[["PgSelect[31∈1] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression29{{"PgClassExpression[29∈1] ➊
ᐸ__authenti...oad__.”id”ᐳ"}}:::plan + Object14 & PgClassExpression29 --> PgSelect31 + First16{{"First[16∈1] ➊"}}:::plan + PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan + PgSelectRows17 --> First16 + PgSelect11 --> PgSelectRows17 + PgSelectSingle18{{"PgSelectSingle[18∈1] ➊
ᐸauthenticate_payloadᐳ"}}:::plan + First16 --> PgSelectSingle18 + Object19{{"Object[19∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle18 --> Object19 + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__authenti...ad__.”jwt”ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression21 + PgClassExpression21 --> PgFromExpression24 + First25{{"First[25∈1] ➊"}}:::plan + PgSelectRows26[["PgSelectRows[26∈1] ➊"]]:::plan + PgSelectRows26 --> First25 + PgSelect22 --> PgSelectRows26 + PgSelectSingle27{{"PgSelectSingle[27∈1] ➊
ᐸfrmcdc_jwtTokenᐳ"}}:::plan + First25 --> PgSelectSingle27 + PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__frmcdc_jwt_token__ᐳ"}}:::plan + PgSelectSingle27 --> PgClassExpression28 + PgSelectSingle18 --> PgClassExpression29 + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__authenti...__.”admin”ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression30 + First33{{"First[33∈1] ➊"}}:::plan + PgSelectRows34[["PgSelectRows[34∈1] ➊"]]:::plan + PgSelectRows34 --> First33 + PgSelect31 --> PgSelectRows34 + PgSelectSingle35{{"PgSelectSingle[35∈1] ➊
ᐸpersonᐳ"}}:::plan + First33 --> PgSelectSingle35 + PgClassExpression36{{"PgClassExpression[36∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle35 --> PgClassExpression36 + PgClassExpression37{{"PgClassExpression[37∈1] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle35 --> PgClassExpression37 %% define steps subgraph "Buckets for mutations/v4/pgJwtTypeIdentifier-withPayload" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Constant47,Constant48,Constant49 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 14, 47, 48, 49

1: PgSelect[11]
2: PgSelectRows[16]
ᐳ: 15, 17, 18"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Access12,Access13,Object14,PgFromExpression15,ApplyInput20,Constant43,Constant44,Constant45 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 14, 15, 20

1: PgSelect[11]
2: PgSelectRows[17]
ᐳ: 16, 18, 19, 21, 24, 29, 30
3: PgSelect[22], PgSelect[31]
4: PgSelectRows[26], PgSelectRows[34]
ᐳ: 25, 27, 28, 33, 35, 36, 37"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect11,First15,PgSelectRows16,PgSelectSingle17,Object18 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 17, 18

ROOT Object{1}ᐸ{result}ᐳ[18]
1:
ᐳ: PgClassExpression[37]
2: PgSelect[30]
3: PgSelectRows[33]
ᐳ: First[32], PgSelectSingle[34]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgSelect30,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression37 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 14, 34, 37

ROOT PgSelectSingle{1}ᐸauthenticate_payloadᐳ[17]
1:
ᐳ: 19, 29
2: PgSelect[20]
3: PgSelectRows[25]
ᐳ: 24, 26, 27"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgSelect20,First24,PgSelectRows25,PgSelectSingle26,PgClassExpression27,PgClassExpression29 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 34

ROOT PgSelectSingle{2}ᐸpersonᐳ[34]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression35,PgClassExpression36 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 34

ROOT PgSelectSingle{2}ᐸpersonᐳ[34]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression45,PgClassExpression46 bucket5 + class Bucket1,PgSelect11,First16,PgSelectRows17,PgSelectSingle18,Object19,PgClassExpression21,PgSelect22,PgFromExpression24,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression28,PgClassExpression29,PgClassExpression30,PgSelect31,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,PgClassExpression37 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket5 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier-withPayload.sql b/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier-withPayload.sql index 01e32b4a69..c6fb91c5ed 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier-withPayload.sql +++ b/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier-withPayload.sql @@ -1,7 +1,7 @@ select case when (__authenticate_payload__."jwt") is not distinct from null then null::text else json_build_array(((__authenticate_payload__."jwt")."role"), (((__authenticate_payload__."jwt")."exp"))::text, (((__authenticate_payload__."jwt")."a"))::text, (((__authenticate_payload__."jwt")."b"))::text, (((__authenticate_payload__."jwt")."c"))::text)::text end as "0", - __authenticate_payload__."admin"::text as "1", - __authenticate_payload__."id"::text as "2", + __authenticate_payload__."id"::text as "1", + __authenticate_payload__."admin"::text as "2", (not (__authenticate_payload__ is null))::text as "3" from "b"."authenticate_payload"( $1::"int4", @@ -9,15 +9,15 @@ from "b"."authenticate_payload"( $3::"int8" ) as __authenticate_payload__; +select + case when (__frmcdc_jwt_token__) is not distinct from null then null::text else json_build_array(((__frmcdc_jwt_token__)."role"), (((__frmcdc_jwt_token__)."exp"))::text, (((__frmcdc_jwt_token__)."a"))::text, (((__frmcdc_jwt_token__)."b"))::text, (((__frmcdc_jwt_token__)."c"))::text)::text end as "0", + (not (__frmcdc_jwt_token__ is null))::text as "1" +from (select ($1::"b"."jwt_token").*) as __frmcdc_jwt_token__; + select __person__."id"::text as "0", __person__."person_full_name" as "1" from "c"."person" as __person__ where ( __person__."id" = $1::"int4" -); - -select - case when (__frmcdc_jwt_token__) is not distinct from null then null::text else json_build_array(((__frmcdc_jwt_token__)."role"), (((__frmcdc_jwt_token__)."exp"))::text, (((__frmcdc_jwt_token__)."a"))::text, (((__frmcdc_jwt_token__)."b"))::text, (((__frmcdc_jwt_token__)."c"))::text)::text end as "0", - (not (__frmcdc_jwt_token__ is null))::text as "1" -from (select ($1::"b"."jwt_token").*) as __frmcdc_jwt_token__; \ No newline at end of file +); \ No newline at end of file diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier.mermaid index cd54ee1c25..8658f35a28 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/pgJwtTypeIdentifier.mermaid @@ -9,6 +9,13 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant22{{"Constant[22∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant23{{"Constant[23∈0] ➊
ᐸ'2'ᐳ"}}:::plan + Constant24{{"Constant[24∈0] ➊
ᐸ'3'ᐳ"}}:::plan + Constant22 & Constant23 & Constant24 --> __InputObject6 + PgFromExpression15{{"PgFromExpression[15∈0] ➊"}}:::plan + Constant22 & Constant23 & Constant24 --> PgFromExpression15 Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan @@ -16,35 +23,30 @@ graph TD __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 + ApplyInput20{{"ApplyInput[20∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput20 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant20{{"Constant[20∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant21{{"Constant[21∈0] ➊
ᐸ'2'ᐳ"}}:::plan - Constant22{{"Constant[22∈0] ➊
ᐸ'3'ᐳ"}}:::plan PgSelect11[["PgSelect[11∈1] ➊
ᐸauthenticate(mutation)ᐳ"]]:::sideeffectplan - Object14 & Constant20 & Constant21 & Constant22 --> PgSelect11 - First15{{"First[15∈1] ➊"}}:::plan - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan - PgSelectRows16 --> First15 - PgSelect11 --> PgSelectRows16 - PgSelectSingle17{{"PgSelectSingle[17∈1] ➊
ᐸauthenticateᐳ"}}:::plan - First15 --> PgSelectSingle17 - Object18{{"Object[18∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle17 --> Object18 - PgClassExpression19{{"PgClassExpression[19∈2] ➊
ᐸ__authenticate__ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression19 + Object14 & PgFromExpression15 & ApplyInput20 --> PgSelect11 + First16{{"First[16∈1] ➊"}}:::plan + PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan + PgSelectRows17 --> First16 + PgSelect11 --> PgSelectRows17 + PgSelectSingle18{{"PgSelectSingle[18∈1] ➊
ᐸauthenticateᐳ"}}:::plan + First16 --> PgSelectSingle18 + Object19{{"Object[19∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle18 --> Object19 + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__authenticate__ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression21 %% define steps subgraph "Buckets for mutations/v4/pgJwtTypeIdentifier" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Constant20,Constant21,Constant22 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 14, 20, 21, 22

1: PgSelect[11]
2: PgSelectRows[16]
ᐳ: 15, 17, 18"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Access12,Access13,Object14,PgFromExpression15,ApplyInput20,Constant22,Constant23,Constant24 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 14, 15, 20

1: PgSelect[11]
2: PgSelectRows[17]
ᐳ: 16, 18, 19, 21"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect11,First15,PgSelectRows16,PgSelectSingle17,Object18 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 18

ROOT Object{1}ᐸ{result}ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression19 bucket2 + class Bucket1,PgSelect11,First16,PgSelectRows17,PgSelectSingle18,Object19,PgClassExpression21 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/polymorphic.relay.custom_delete.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/polymorphic.relay.custom_delete.mermaid index 9fcd4208f3..2e6449a287 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/polymorphic.relay.custom_delete.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/polymorphic.relay.custom_delete.mermaid @@ -9,12 +9,17 @@ graph TD %% plan dependencies + Connection59{{"Connection[59∈0] ➊
ᐸ57ᐳ"}}:::plan + Constant116{{"Constant[116∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant116 --> Connection59 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant115{{"Constant[115∈0] ➊
ᐸ'WyJyZWxhdGlvbmFsX3RvcGljcyIsMV0='ᐳ"}}:::plan + Constant115 --> __InputObject6 Object38{{"Object[38∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access36{{"Access[36∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access37{{"Access[37∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access36 & Access37 --> Object38 Lambda9{{"Lambda[9∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Constant115{{"Constant[115∈0] ➊
ᐸ'WyJyZWxhdGlvbmFsX3RvcGljcyIsMV0='ᐳ"}}:::plan Constant115 --> Lambda9 List14{{"List[14∈0] ➊
ᐸ114ᐳ"}}:::plan Access114{{"Access[114∈0] ➊
ᐸ9.base64JSON.1ᐳ"}}:::plan @@ -22,6 +27,8 @@ graph TD __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access36 __Value2 --> Access37 + ApplyInput53{{"ApplyInput[53∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput53 Lambda9 --> Access114 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan Constant73{{"Constant[73∈0] ➊
ᐸ'relational_topics'ᐳ"}}:::plan @@ -29,7 +36,6 @@ graph TD Constant92{{"Constant[92∈0] ➊
ᐸ'relational_dividers'ᐳ"}}:::plan Constant101{{"Constant[101∈0] ➊
ᐸ'relational_checklists'ᐳ"}}:::plan Constant110{{"Constant[110∈0] ➊
ᐸ'relational_checklist_items'ᐳ"}}:::plan - Constant116{{"Constant[116∈0] ➊
ᐸ1ᐳ"}}:::plan List32{{"List[32∈1] ➊
ᐸ15,19,23,27,31ᐳ"}}:::plan Object15{{"Object[15∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan Object19{{"Object[19∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan @@ -37,6 +43,12 @@ graph TD Object27{{"Object[27∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan Object31{{"Object[31∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan Object15 & Object19 & Object23 & Object27 & Object31 --> List32 + PgSelect61[["PgSelect[61∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object38 -->|rejectNull| PgSelect61 + Connection59 & Constant116 --> PgSelect61 + PgSelect43[["PgSelect[43∈1] ➊
ᐸcustom_delete_relational_item(mutation)ᐳ"]]:::sideeffectplan + PgFromExpression47{{"PgFromExpression[47∈1] ➊"}}:::plan + Object38 & PgFromExpression47 & ApplyInput53 --> PgSelect43 Lambda13[["Lambda[13∈1] ➊"]]:::unbatchedplan Lambda13 & List14 --> Object15 Lambda17[["Lambda[17∈1] ➊"]]:::unbatchedplan @@ -50,9 +62,6 @@ graph TD PgSelect35[["PgSelect[35∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan Access34{{"Access[34∈1] ➊
ᐸ33.0ᐳ"}}:::plan Object38 & Access34 --> PgSelect35 - PgSelect43[["PgSelect[43∈1] ➊
ᐸcustom_delete_relational_item(mutation)ᐳ"]]:::sideeffectplan - PgClassExpression42{{"PgClassExpression[42∈1] ➊
ᐸ__relational_items__ᐳ"}}:::plan - Object38 & PgClassExpression42 --> PgSelect43 Lambda9 --> Lambda13 Lambda9 --> Lambda17 Lambda9 --> Lambda21 @@ -67,130 +76,120 @@ graph TD PgSelect35 --> PgSelectRows40 PgSelectSingle41{{"PgSelectSingle[41∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan First39 --> PgSelectSingle41 + PgClassExpression42{{"PgClassExpression[42∈1] ➊
ᐸ__relational_items__ᐳ"}}:::plan PgSelectSingle41 --> PgClassExpression42 - First47{{"First[47∈1] ➊"}}:::plan - PgSelectRows48[["PgSelectRows[48∈1] ➊"]]:::plan - PgSelectRows48 --> First47 - PgSelect43 --> PgSelectRows48 - PgSelectSingle49{{"PgSelectSingle[49∈1] ➊
ᐸcustom_delete_relational_itemᐳ"}}:::plan - First47 --> PgSelectSingle49 - PgClassExpression50{{"PgClassExpression[50∈1] ➊
ᐸ__custom_d...l_item__.vᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression50 - Object51{{"Object[51∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression50 --> Object51 - Connection60{{"Connection[60∈2] ➊
ᐸ56ᐳ"}}:::plan - Constant116 --> Connection60 - PgSelect61[["PgSelect[61∈4] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object38 & Connection60 & Constant116 --> PgSelect61 - PgSelectRows62[["PgSelectRows[62∈4] ➊"]]:::plan + PgClassExpression42 --> PgFromExpression47 + First48{{"First[48∈1] ➊"}}:::plan + PgSelectRows49[["PgSelectRows[49∈1] ➊"]]:::plan + PgSelectRows49 --> First48 + PgSelect43 --> PgSelectRows49 + PgSelectSingle50{{"PgSelectSingle[50∈1] ➊
ᐸcustom_delete_relational_itemᐳ"}}:::plan + First48 --> PgSelectSingle50 + PgClassExpression51{{"PgClassExpression[51∈1] ➊
ᐸ__custom_d...l_item__.vᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression51 + Object52{{"Object[52∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression51 --> Object52 + PgSelectRows62[["PgSelectRows[62∈1] ➊"]]:::plan PgSelect61 --> PgSelectRows62 - __Item63[/"__Item[63∈5]
ᐸ62ᐳ"\]:::itemplan + __Item63[/"__Item[63∈2]
ᐸ62ᐳ"\]:::itemplan PgSelectRows62 ==> __Item63 - PgSelectSingle64{{"PgSelectSingle[64∈5]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle64{{"PgSelectSingle[64∈2]
ᐸrelational_itemsᐳ"}}:::plan __Item63 --> PgSelectSingle64 - PgClassExpression65{{"PgClassExpression[65∈5]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression65{{"PgClassExpression[65∈2]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle64 --> PgClassExpression65 - PgClassExpression77{{"PgClassExpression[77∈5]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgClassExpression77{{"PgClassExpression[77∈2]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle64 --> PgClassExpression77 - PgSelect66[["PgSelect[66∈6]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgSelect66[["PgSelect[66∈3]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan Object38 & PgClassExpression65 --> PgSelect66 - List75{{"List[75∈6]
ᐸ73,74ᐳ
ᐳRelationalTopic"}}:::plan - PgClassExpression74{{"PgClassExpression[74∈6]
ᐸ__relation...c_item_id”ᐳ"}}:::plan + List75{{"List[75∈3]
ᐸ73,74ᐳ
ᐳRelationalTopic"}}:::plan + PgClassExpression74{{"PgClassExpression[74∈3]
ᐸ__relation...c_item_id”ᐳ"}}:::plan Constant73 & PgClassExpression74 --> List75 - PgSelect78[["PgSelect[78∈6]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + PgSelect78[["PgSelect[78∈3]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan Object38 & PgClassExpression65 --> PgSelect78 - List85{{"List[85∈6]
ᐸ83,84ᐳ
ᐳRelationalPost"}}:::plan - PgClassExpression84{{"PgClassExpression[84∈6]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + List85{{"List[85∈3]
ᐸ83,84ᐳ
ᐳRelationalPost"}}:::plan + PgClassExpression84{{"PgClassExpression[84∈3]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant83 & PgClassExpression84 --> List85 - PgSelect87[["PgSelect[87∈6]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + PgSelect87[["PgSelect[87∈3]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan Object38 & PgClassExpression65 --> PgSelect87 - List94{{"List[94∈6]
ᐸ92,93ᐳ
ᐳRelationalDivider"}}:::plan - PgClassExpression93{{"PgClassExpression[93∈6]
ᐸ__relation...r_item_id”ᐳ"}}:::plan + List94{{"List[94∈3]
ᐸ92,93ᐳ
ᐳRelationalDivider"}}:::plan + PgClassExpression93{{"PgClassExpression[93∈3]
ᐸ__relation...r_item_id”ᐳ"}}:::plan Constant92 & PgClassExpression93 --> List94 - PgSelect96[["PgSelect[96∈6]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + PgSelect96[["PgSelect[96∈3]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan Object38 & PgClassExpression65 --> PgSelect96 - List103{{"List[103∈6]
ᐸ101,102ᐳ
ᐳRelationalChecklist"}}:::plan - PgClassExpression102{{"PgClassExpression[102∈6]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + List103{{"List[103∈3]
ᐸ101,102ᐳ
ᐳRelationalChecklist"}}:::plan + PgClassExpression102{{"PgClassExpression[102∈3]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant101 & PgClassExpression102 --> List103 - PgSelect105[["PgSelect[105∈6]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + PgSelect105[["PgSelect[105∈3]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan Object38 & PgClassExpression65 --> PgSelect105 - List112{{"List[112∈6]
ᐸ110,111ᐳ
ᐳRelationalChecklistItem"}}:::plan - PgClassExpression111{{"PgClassExpression[111∈6]
ᐸ__relation...m_item_id”ᐳ"}}:::plan + List112{{"List[112∈3]
ᐸ110,111ᐳ
ᐳRelationalChecklistItem"}}:::plan + PgClassExpression111{{"PgClassExpression[111∈3]
ᐸ__relation...m_item_id”ᐳ"}}:::plan Constant110 & PgClassExpression111 --> List112 - First70{{"First[70∈6]"}}:::plan - PgSelectRows71[["PgSelectRows[71∈6]"]]:::plan + First70{{"First[70∈3]"}}:::plan + PgSelectRows71[["PgSelectRows[71∈3]"]]:::plan PgSelectRows71 --> First70 PgSelect66 --> PgSelectRows71 - PgSelectSingle72{{"PgSelectSingle[72∈6]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle72{{"PgSelectSingle[72∈3]
ᐸrelational_topicsᐳ"}}:::plan First70 --> PgSelectSingle72 PgSelectSingle72 --> PgClassExpression74 - Lambda76{{"Lambda[76∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda76{{"Lambda[76∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan List75 --> Lambda76 - First80{{"First[80∈6]"}}:::plan - PgSelectRows81[["PgSelectRows[81∈6]"]]:::plan + First80{{"First[80∈3]"}}:::plan + PgSelectRows81[["PgSelectRows[81∈3]"]]:::plan PgSelectRows81 --> First80 PgSelect78 --> PgSelectRows81 - PgSelectSingle82{{"PgSelectSingle[82∈6]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle82{{"PgSelectSingle[82∈3]
ᐸrelational_postsᐳ"}}:::plan First80 --> PgSelectSingle82 PgSelectSingle82 --> PgClassExpression84 - Lambda86{{"Lambda[86∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda86{{"Lambda[86∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan List85 --> Lambda86 - First89{{"First[89∈6]"}}:::plan - PgSelectRows90[["PgSelectRows[90∈6]"]]:::plan + First89{{"First[89∈3]"}}:::plan + PgSelectRows90[["PgSelectRows[90∈3]"]]:::plan PgSelectRows90 --> First89 PgSelect87 --> PgSelectRows90 - PgSelectSingle91{{"PgSelectSingle[91∈6]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle91{{"PgSelectSingle[91∈3]
ᐸrelational_dividersᐳ"}}:::plan First89 --> PgSelectSingle91 PgSelectSingle91 --> PgClassExpression93 - Lambda95{{"Lambda[95∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda95{{"Lambda[95∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan List94 --> Lambda95 - First98{{"First[98∈6]"}}:::plan - PgSelectRows99[["PgSelectRows[99∈6]"]]:::plan + First98{{"First[98∈3]"}}:::plan + PgSelectRows99[["PgSelectRows[99∈3]"]]:::plan PgSelectRows99 --> First98 PgSelect96 --> PgSelectRows99 - PgSelectSingle100{{"PgSelectSingle[100∈6]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle100{{"PgSelectSingle[100∈3]
ᐸrelational_checklistsᐳ"}}:::plan First98 --> PgSelectSingle100 PgSelectSingle100 --> PgClassExpression102 - Lambda104{{"Lambda[104∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda104{{"Lambda[104∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan List103 --> Lambda104 - First107{{"First[107∈6]"}}:::plan - PgSelectRows108[["PgSelectRows[108∈6]"]]:::plan + First107{{"First[107∈3]"}}:::plan + PgSelectRows108[["PgSelectRows[108∈3]"]]:::plan PgSelectRows108 --> First107 PgSelect105 --> PgSelectRows108 - PgSelectSingle109{{"PgSelectSingle[109∈6]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle109{{"PgSelectSingle[109∈3]
ᐸrelational_checklist_itemsᐳ"}}:::plan First107 --> PgSelectSingle109 PgSelectSingle109 --> PgClassExpression111 - Lambda113{{"Lambda[113∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda113{{"Lambda[113∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan List112 --> Lambda113 %% define steps + %% implicit side effects + PgSelect43 -.-o PgSelect61 + PgSelect43 -.-o PgSelectRows62 + subgraph "Buckets for mutations/v4/polymorphic.relay.custom_delete" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Lambda9,List14,Access36,Access37,Object38,Constant73,Constant83,Constant92,Constant101,Constant110,Access114,Constant115,Constant116 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 9, 14, 38, 116, 4, 73, 83, 92, 101, 110

1: Lambda[13]
2: Object[15]
3: Lambda[17]
4: Object[19]
5: Lambda[21]
6: Object[23]
7: Lambda[25]
8: Object[27]
9: Lambda[29]
10: Object[31]
11: List[32]
12: Lambda[33]
13: Access[34]
14: PgSelect[35]
15: PgSelectRows[40]
16: First[39]
17: PgSelectSingle[41]
18: PgClassExpression[42]
19: PgSelect[43]
20: PgSelectRows[48]
ᐳ: 47, 49, 50, 51"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Lambda9,List14,Access36,Access37,Object38,ApplyInput53,Connection59,Constant73,Constant83,Constant92,Constant101,Constant110,Access114,Constant115,Constant116 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 9, 14, 38, 53, 59, 116, 7, 73, 83, 92, 101, 110, 4

1: Lambda[13]
2: Object[15]
3: Lambda[17]
4: Object[19]
5: Lambda[21]
6: Object[23]
7: Lambda[25]
8: Object[27]
9: Lambda[29]
10: Object[31]
11: List[32]
12: Lambda[33]
13: Access[34]
14: PgSelect[35]
15: PgSelectRows[40]
16: First[39]
17: PgSelectSingle[41]
18: PgClassExpression[42]
19: PgFromExpression[47]
20: PgSelect[43]
21: PgSelectRows[49], PgSelect[61]
ᐳ: 48, 50, 51, 52
22: PgSelectRows[62]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,Lambda13,Object15,Lambda17,Object19,Lambda21,Object23,Lambda25,Object27,Lambda29,Object31,List32,Lambda33,Access34,PgSelect35,First39,PgSelectRows40,PgSelectSingle41,PgClassExpression42,PgSelect43,First47,PgSelectRows48,PgSelectSingle49,PgClassExpression50,Object51 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 116, 51, 4, 38, 73, 83, 92, 101, 110, 50

ROOT Object{1}ᐸ{result}ᐳ[51]"):::bucket + class Bucket1,Lambda13,Object15,Lambda17,Object19,Lambda21,Object23,Lambda25,Object27,Lambda29,Object31,List32,Lambda33,Access34,PgSelect35,First39,PgSelectRows40,PgSelectSingle41,PgClassExpression42,PgSelect43,PgFromExpression47,First48,PgSelectRows49,PgSelectSingle50,PgClassExpression51,Object52,PgSelect61,PgSelectRows62 bucket1 + Bucket2("Bucket 2 (listItem)
Parent side effect step: 43
Deps: 38, 73, 83, 92, 101, 110

ROOT __Item{2}ᐸ62ᐳ[63]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,Connection60 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 4, 38, 60, 116, 73, 83, 92, 101, 110

ROOT __ValueᐸrootValueᐳ[4]"):::bucket + class Bucket2,__Item63,PgSelectSingle64,PgClassExpression65,PgClassExpression77 bucket2 + Bucket3("Bucket 3 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 38, 65, 73, 83, 92, 101, 110, 64, 77
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 66, 78, 87, 96, 105
2: 71, 81, 90, 99, 108
ᐳ: 70, 72, 74, 75, 76, 80, 82, 84, 85, 86, 89, 91, 93, 94, 95, 98, 100, 102, 103, 104, 107, 109, 111, 112, 113"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 38, 60, 116, 73, 83, 92, 101, 110

ROOT Connection{2}ᐸ56ᐳ[60]
1: PgSelect[61]
2: PgSelectRows[62]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect61,PgSelectRows62 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 38, 73, 83, 92, 101, 110

ROOT __Item{5}ᐸ62ᐳ[63]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item63,PgSelectSingle64,PgClassExpression65,PgClassExpression77 bucket5 - Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 38, 65, 73, 83, 92, 101, 110, 64, 77
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 66, 78, 87, 96, 105
2: 71, 81, 90, 99, 108
ᐳ: 70, 72, 74, 75, 76, 80, 82, 84, 85, 86, 89, 91, 93, 94, 95, 98, 100, 102, 103, 104, 107, 109, 111, 112, 113"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect66,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression74,List75,Lambda76,PgSelect78,First80,PgSelectRows81,PgSelectSingle82,PgClassExpression84,List85,Lambda86,PgSelect87,First89,PgSelectRows90,PgSelectSingle91,PgClassExpression93,List94,Lambda95,PgSelect96,First98,PgSelectRows99,PgSelectSingle100,PgClassExpression102,List103,Lambda104,PgSelect105,First107,PgSelectRows108,PgSelectSingle109,PgClassExpression111,List112,Lambda113 bucket6 + class Bucket3,PgSelect66,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression74,List75,Lambda76,PgSelect78,First80,PgSelectRows81,PgSelectSingle82,PgClassExpression84,List85,Lambda86,PgSelect87,First89,PgSelectRows90,PgSelectSingle91,PgClassExpression93,List94,Lambda95,PgSelect96,First98,PgSelectRows99,PgSelectSingle100,PgClassExpression102,List103,Lambda104,PgSelect105,First107,PgSelectRows108,PgSelectSingle109,PgClassExpression111,List112,Lambda113 bucket3 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/polymorphic.relay.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/polymorphic.relay.mermaid index 7dc482c734..925eadbbb1 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/polymorphic.relay.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/polymorphic.relay.mermaid @@ -9,940 +9,636 @@ graph TD %% plan dependencies + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant384{{"Constant[384∈0] ➊
ᐸ'WyJyZWxhdGlvbmFsX3RvcGljcyIsMV0='ᐳ"}}:::plan + Constant385{{"Constant[385∈0] ➊
ᐸ'WyJyZWxhdGlvbmFsX3RvcGljcyIsMl0='ᐳ"}}:::plan + Constant384 & Constant385 --> __InputObject8 + __InputObject261{{"__InputObject[261∈0] ➊"}}:::plan + Constant386{{"Constant[386∈0] ➊
ᐸ'WyJTaW5nbGVUYWJsZVRvcGljIiwxXQ=='ᐳ"}}:::plan + Constant387{{"Constant[387∈0] ➊
ᐸ'WyJTaW5nbGVUYWJsZVRvcGljIiwyXQ=='ᐳ"}}:::plan + Constant386 & Constant387 --> __InputObject261 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 + __InputObject132{{"__InputObject[132∈0] ➊"}}:::plan + __InputObject134{{"__InputObject[134∈0] ➊"}}:::plan + __InputObject134 --> __InputObject132 + Constant384 & Constant385 --> __InputObject134 + __InputObject259{{"__InputObject[259∈0] ➊"}}:::plan + __InputObject261 --> __InputObject259 + __InputObject321{{"__InputObject[321∈0] ➊"}}:::plan + __InputObject323{{"__InputObject[323∈0] ➊"}}:::plan + __InputObject323 --> __InputObject321 + Constant386 & Constant387 --> __InputObject323 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 - Condition16{{"Condition[16∈0] ➊
ᐸexistsᐳ"}}:::plan - Constant617{{"Constant[617∈0] ➊
ᐸ'WyJyZWxhdGlvbmFsX3RvcGljcyIsMV0='ᐳ"}}:::plan - Constant617 --> Condition16 - Lambda17{{"Lambda[17∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Constant617 --> Lambda17 - List22{{"List[22∈0] ➊
ᐸ616ᐳ"}}:::plan - Access616{{"Access[616∈0] ➊
ᐸ17.base64JSON.1ᐳ"}}:::plan - Access616 --> List22 - Condition45{{"Condition[45∈0] ➊
ᐸexistsᐳ"}}:::plan - Constant619{{"Constant[619∈0] ➊
ᐸ'WyJyZWxhdGlvbmFsX3RvcGljcyIsMl0='ᐳ"}}:::plan - Constant619 --> Condition45 - Lambda46{{"Lambda[46∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Constant619 --> Lambda46 - List51{{"List[51∈0] ➊
ᐸ618ᐳ"}}:::plan - Access618{{"Access[618∈0] ➊
ᐸ46.base64JSON.1ᐳ"}}:::plan - Access618 --> List51 - Lambda17 --> Access616 - Lambda46 --> Access618 + ApplyInput15{{"ApplyInput[15∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput15 + ApplyInput141{{"ApplyInput[141∈0] ➊"}}:::plan + __InputObject132 --> ApplyInput141 + ApplyInput268{{"ApplyInput[268∈0] ➊"}}:::plan + __InputObject259 --> ApplyInput268 + ApplyInput330{{"ApplyInput[330∈0] ➊"}}:::plan + __InputObject321 --> ApplyInput330 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant74{{"Constant[74∈0] ➊
ᐸ'relational_item_relations'ᐳ"}}:::plan - Constant94{{"Constant[94∈0] ➊
ᐸ'relational_topics'ᐳ"}}:::plan - Constant104{{"Constant[104∈0] ➊
ᐸ'relational_posts'ᐳ"}}:::plan - Constant113{{"Constant[113∈0] ➊
ᐸ'relational_dividers'ᐳ"}}:::plan - Constant122{{"Constant[122∈0] ➊
ᐸ'relational_checklists'ᐳ"}}:::plan - Constant131{{"Constant[131∈0] ➊
ᐸ'relational_checklist_items'ᐳ"}}:::plan - Constant258{{"Constant[258∈0] ➊
ᐸ'relational_item_relation_composite_pks'ᐳ"}}:::plan - Constant443{{"Constant[443∈0] ➊
ᐸ'single_table_item_relations'ᐳ"}}:::plan - Constant455{{"Constant[455∈0] ➊
ᐸ'SingleTableTopic'ᐳ"}}:::plan - Constant460{{"Constant[460∈0] ➊
ᐸ'SingleTablePost'ᐳ"}}:::plan - Constant463{{"Constant[463∈0] ➊
ᐸ'SingleTableDivider'ᐳ"}}:::plan - Constant466{{"Constant[466∈0] ➊
ᐸ'SingleTableChecklist'ᐳ"}}:::plan - Constant469{{"Constant[469∈0] ➊
ᐸ'SingleTableChecklistItem'ᐳ"}}:::plan - Constant563{{"Constant[563∈0] ➊
ᐸ'single_table_item_relation_composite_pks'ᐳ"}}:::plan - Constant623{{"Constant[623∈0] ➊
ᐸ'WyJTaW5nbGVUYWJsZVRvcGljIiwxXQ=='ᐳ"}}:::plan - Constant625{{"Constant[625∈0] ➊
ᐸ'WyJTaW5nbGVUYWJsZVRvcGljIiwyXQ=='ᐳ"}}:::plan - List40{{"List[40∈1] ➊
ᐸ23,27,31,35,39ᐳ"}}:::plan - Object23{{"Object[23∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object27{{"Object[27∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object31{{"Object[31∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object35{{"Object[35∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object39{{"Object[39∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object23 & Object27 & Object31 & Object35 & Object39 --> List40 - List69{{"List[69∈1] ➊
ᐸ52,56,60,64,68ᐳ"}}:::plan - Object52{{"Object[52∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object56{{"Object[56∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object60{{"Object[60∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object64{{"Object[64∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object68{{"Object[68∈1] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object52 & Object56 & Object60 & Object64 & Object68 --> List69 - PgInsertSingle11[["PgInsertSingle[11∈1] ➊
ᐸrelational_item_relations(child_id,parent_id)ᐳ"]]:::sideeffectplan - __Flag44[["__Flag[44∈1] ➊
ᐸ43, if(16), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - __Flag73[["__Flag[73∈1] ➊
ᐸ72, if(45), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - Object14 & __Flag44 & __Flag73 --> PgInsertSingle11 - Lambda21[["Lambda[21∈1] ➊"]]:::unbatchedplan - Lambda21 & List22 --> Object23 - Lambda25[["Lambda[25∈1] ➊"]]:::unbatchedplan - Lambda25 & List22 --> Object27 - Lambda29[["Lambda[29∈1] ➊"]]:::unbatchedplan - Lambda29 & List22 --> Object31 - Lambda33[["Lambda[33∈1] ➊"]]:::unbatchedplan - Lambda33 & List22 --> Object35 - Lambda37[["Lambda[37∈1] ➊"]]:::unbatchedplan - Lambda37 & List22 --> Object39 - __Flag43[["__Flag[43∈1] ➊
ᐸ42, trapInhibited, onReject: INHIBITᐳ"]]:::plan - __Flag43 & Condition16 --> __Flag44 - Lambda50[["Lambda[50∈1] ➊"]]:::unbatchedplan - Lambda50 & List51 --> Object52 - Lambda54[["Lambda[54∈1] ➊"]]:::unbatchedplan - Lambda54 & List51 --> Object56 - Lambda58[["Lambda[58∈1] ➊"]]:::unbatchedplan - Lambda58 & List51 --> Object60 - Lambda62[["Lambda[62∈1] ➊"]]:::unbatchedplan - Lambda62 & List51 --> Object64 - Lambda66[["Lambda[66∈1] ➊"]]:::unbatchedplan - Lambda66 & List51 --> Object68 - __Flag72[["__Flag[72∈1] ➊
ᐸ71, trapInhibited, onReject: INHIBITᐳ"]]:::plan - __Flag72 & Condition45 --> __Flag73 - Object15{{"Object[15∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle11 --> Object15 - Lambda17 --> Lambda21 - Lambda17 --> Lambda25 - Lambda17 --> Lambda29 - Lambda17 --> Lambda33 - Lambda17 --> Lambda37 - Lambda41{{"Lambda[41∈1] ➊"}}:::plan - List40 --> Lambda41 - Access42{{"Access[42∈1] ➊
ᐸ41.0ᐳ"}}:::plan - Lambda41 --> Access42 - Access42 --> __Flag43 - Lambda46 --> Lambda50 - Lambda46 --> Lambda54 - Lambda46 --> Lambda58 - Lambda46 --> Lambda62 - Lambda46 --> Lambda66 - Lambda70{{"Lambda[70∈1] ➊"}}:::plan - List69 --> Lambda70 - Access71{{"Access[71∈1] ➊
ᐸ70.0ᐳ"}}:::plan - Lambda70 --> Access71 - Access71 --> __Flag72 - List76{{"List[76∈3] ➊
ᐸ74,75ᐳ"}}:::plan - PgClassExpression75{{"PgClassExpression[75∈3] ➊
ᐸ__relation...ons__.”id”ᐳ"}}:::plan - Constant74 & PgClassExpression75 --> List76 - PgSelect79[["PgSelect[79∈3] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression78{{"PgClassExpression[78∈3] ➊
ᐸ__relation...”child_id”ᐳ"}}:::plan - Object14 & PgClassExpression78 --> PgSelect79 - PgSelect136[["PgSelect[136∈3] ➊
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression135{{"PgClassExpression[135∈3] ➊
ᐸ__relation...parent_id”ᐳ"}}:::plan - Object14 & PgClassExpression135 --> PgSelect136 - PgInsertSingle11 --> PgClassExpression75 - Lambda77{{"Lambda[77∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List76 --> Lambda77 - PgInsertSingle11 --> PgClassExpression78 - First83{{"First[83∈3] ➊"}}:::plan - PgSelectRows84[["PgSelectRows[84∈3] ➊"]]:::plan - PgSelectRows84 --> First83 - PgSelect79 --> PgSelectRows84 - PgSelectSingle85{{"PgSelectSingle[85∈3] ➊
ᐸrelational_itemsᐳ"}}:::plan - First83 --> PgSelectSingle85 - PgClassExpression86{{"PgClassExpression[86∈3] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle85 --> PgClassExpression86 - PgClassExpression98{{"PgClassExpression[98∈3] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle85 --> PgClassExpression98 - PgInsertSingle11 --> PgClassExpression135 - First138{{"First[138∈3] ➊"}}:::plan - PgSelectRows139[["PgSelectRows[139∈3] ➊"]]:::plan - PgSelectRows139 --> First138 - PgSelect136 --> PgSelectRows139 - PgSelectSingle140{{"PgSelectSingle[140∈3] ➊
ᐸrelational_itemsᐳ"}}:::plan - First138 --> PgSelectSingle140 - PgClassExpression141{{"PgClassExpression[141∈3] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle140 --> PgClassExpression141 - PgClassExpression153{{"PgClassExpression[153∈3] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle140 --> PgClassExpression153 - PgSelect87[["PgSelect[87∈4] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object14 & PgClassExpression86 --> PgSelect87 - List96{{"List[96∈4] ➊
ᐸ94,95ᐳ
ᐳRelationalTopic"}}:::plan - PgClassExpression95{{"PgClassExpression[95∈4] ➊
ᐸ__relation...c_item_id”ᐳ"}}:::plan - Constant94 & PgClassExpression95 --> List96 - PgSelect99[["PgSelect[99∈4] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object14 & PgClassExpression86 --> PgSelect99 - List106{{"List[106∈4] ➊
ᐸ104,105ᐳ
ᐳRelationalPost"}}:::plan - PgClassExpression105{{"PgClassExpression[105∈4] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan - Constant104 & PgClassExpression105 --> List106 - PgSelect108[["PgSelect[108∈4] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object14 & PgClassExpression86 --> PgSelect108 - List115{{"List[115∈4] ➊
ᐸ113,114ᐳ
ᐳRelationalDivider"}}:::plan - PgClassExpression114{{"PgClassExpression[114∈4] ➊
ᐸ__relation...r_item_id”ᐳ"}}:::plan - Constant113 & PgClassExpression114 --> List115 - PgSelect117[["PgSelect[117∈4] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object14 & PgClassExpression86 --> PgSelect117 - List124{{"List[124∈4] ➊
ᐸ122,123ᐳ
ᐳRelationalChecklist"}}:::plan - PgClassExpression123{{"PgClassExpression[123∈4] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan - Constant122 & PgClassExpression123 --> List124 - PgSelect126[["PgSelect[126∈4] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object14 & PgClassExpression86 --> PgSelect126 - List133{{"List[133∈4] ➊
ᐸ131,132ᐳ
ᐳRelationalChecklistItem"}}:::plan - PgClassExpression132{{"PgClassExpression[132∈4] ➊
ᐸ__relation...m_item_id”ᐳ"}}:::plan - Constant131 & PgClassExpression132 --> List133 - First91{{"First[91∈4] ➊"}}:::plan - PgSelectRows92[["PgSelectRows[92∈4] ➊"]]:::plan - PgSelectRows92 --> First91 - PgSelect87 --> PgSelectRows92 - PgSelectSingle93{{"PgSelectSingle[93∈4] ➊
ᐸrelational_topicsᐳ"}}:::plan - First91 --> PgSelectSingle93 - PgSelectSingle93 --> PgClassExpression95 - Lambda97{{"Lambda[97∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List96 --> Lambda97 - First101{{"First[101∈4] ➊"}}:::plan - PgSelectRows102[["PgSelectRows[102∈4] ➊"]]:::plan - PgSelectRows102 --> First101 - PgSelect99 --> PgSelectRows102 - PgSelectSingle103{{"PgSelectSingle[103∈4] ➊
ᐸrelational_postsᐳ"}}:::plan - First101 --> PgSelectSingle103 - PgSelectSingle103 --> PgClassExpression105 - Lambda107{{"Lambda[107∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List106 --> Lambda107 - First110{{"First[110∈4] ➊"}}:::plan - PgSelectRows111[["PgSelectRows[111∈4] ➊"]]:::plan - PgSelectRows111 --> First110 - PgSelect108 --> PgSelectRows111 - PgSelectSingle112{{"PgSelectSingle[112∈4] ➊
ᐸrelational_dividersᐳ"}}:::plan - First110 --> PgSelectSingle112 - PgSelectSingle112 --> PgClassExpression114 - Lambda116{{"Lambda[116∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List115 --> Lambda116 - First119{{"First[119∈4] ➊"}}:::plan - PgSelectRows120[["PgSelectRows[120∈4] ➊"]]:::plan - PgSelectRows120 --> First119 - PgSelect117 --> PgSelectRows120 - PgSelectSingle121{{"PgSelectSingle[121∈4] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First119 --> PgSelectSingle121 - PgSelectSingle121 --> PgClassExpression123 - Lambda125{{"Lambda[125∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List124 --> Lambda125 - First128{{"First[128∈4] ➊"}}:::plan - PgSelectRows129[["PgSelectRows[129∈4] ➊"]]:::plan - PgSelectRows129 --> First128 - PgSelect126 --> PgSelectRows129 - PgSelectSingle130{{"PgSelectSingle[130∈4] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First128 --> PgSelectSingle130 - PgSelectSingle130 --> PgClassExpression132 - Lambda134{{"Lambda[134∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List133 --> Lambda134 - PgSelect142[["PgSelect[142∈5] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object14 & PgClassExpression141 --> PgSelect142 - List151{{"List[151∈5] ➊
ᐸ94,150ᐳ
ᐳRelationalTopic"}}:::plan - PgClassExpression150{{"PgClassExpression[150∈5] ➊
ᐸ__relation...c_item_id”ᐳ"}}:::plan - Constant94 & PgClassExpression150 --> List151 - PgSelect154[["PgSelect[154∈5] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object14 & PgClassExpression141 --> PgSelect154 - List161{{"List[161∈5] ➊
ᐸ104,160ᐳ
ᐳRelationalPost"}}:::plan - PgClassExpression160{{"PgClassExpression[160∈5] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan - Constant104 & PgClassExpression160 --> List161 - PgSelect163[["PgSelect[163∈5] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object14 & PgClassExpression141 --> PgSelect163 - List170{{"List[170∈5] ➊
ᐸ113,169ᐳ
ᐳRelationalDivider"}}:::plan - PgClassExpression169{{"PgClassExpression[169∈5] ➊
ᐸ__relation...r_item_id”ᐳ"}}:::plan - Constant113 & PgClassExpression169 --> List170 - PgSelect172[["PgSelect[172∈5] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object14 & PgClassExpression141 --> PgSelect172 - List179{{"List[179∈5] ➊
ᐸ122,178ᐳ
ᐳRelationalChecklist"}}:::plan - PgClassExpression178{{"PgClassExpression[178∈5] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan - Constant122 & PgClassExpression178 --> List179 - PgSelect181[["PgSelect[181∈5] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object14 & PgClassExpression141 --> PgSelect181 - List188{{"List[188∈5] ➊
ᐸ131,187ᐳ
ᐳRelationalChecklistItem"}}:::plan - PgClassExpression187{{"PgClassExpression[187∈5] ➊
ᐸ__relation...m_item_id”ᐳ"}}:::plan - Constant131 & PgClassExpression187 --> List188 - First146{{"First[146∈5] ➊"}}:::plan - PgSelectRows147[["PgSelectRows[147∈5] ➊"]]:::plan - PgSelectRows147 --> First146 - PgSelect142 --> PgSelectRows147 - PgSelectSingle148{{"PgSelectSingle[148∈5] ➊
ᐸrelational_topicsᐳ"}}:::plan - First146 --> PgSelectSingle148 - PgSelectSingle148 --> PgClassExpression150 - Lambda152{{"Lambda[152∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List151 --> Lambda152 - First156{{"First[156∈5] ➊"}}:::plan - PgSelectRows157[["PgSelectRows[157∈5] ➊"]]:::plan - PgSelectRows157 --> First156 - PgSelect154 --> PgSelectRows157 - PgSelectSingle158{{"PgSelectSingle[158∈5] ➊
ᐸrelational_postsᐳ"}}:::plan - First156 --> PgSelectSingle158 - PgSelectSingle158 --> PgClassExpression160 - Lambda162{{"Lambda[162∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List161 --> Lambda162 - First165{{"First[165∈5] ➊"}}:::plan - PgSelectRows166[["PgSelectRows[166∈5] ➊"]]:::plan - PgSelectRows166 --> First165 - PgSelect163 --> PgSelectRows166 - PgSelectSingle167{{"PgSelectSingle[167∈5] ➊
ᐸrelational_dividersᐳ"}}:::plan - First165 --> PgSelectSingle167 - PgSelectSingle167 --> PgClassExpression169 - Lambda171{{"Lambda[171∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List170 --> Lambda171 - First174{{"First[174∈5] ➊"}}:::plan - PgSelectRows175[["PgSelectRows[175∈5] ➊"]]:::plan - PgSelectRows175 --> First174 - PgSelect172 --> PgSelectRows175 - PgSelectSingle176{{"PgSelectSingle[176∈5] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First174 --> PgSelectSingle176 - PgSelectSingle176 --> PgClassExpression178 - Lambda180{{"Lambda[180∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List179 --> Lambda180 - First183{{"First[183∈5] ➊"}}:::plan - PgSelectRows184[["PgSelectRows[184∈5] ➊"]]:::plan - PgSelectRows184 --> First183 - PgSelect181 --> PgSelectRows184 - PgSelectSingle185{{"PgSelectSingle[185∈5] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First183 --> PgSelectSingle185 - PgSelectSingle185 --> PgClassExpression187 - Lambda189{{"Lambda[189∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List188 --> Lambda189 - List224{{"List[224∈6] ➊
ᐸ207,211,215,219,223ᐳ"}}:::plan - Object207{{"Object[207∈6] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object211{{"Object[211∈6] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object215{{"Object[215∈6] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object219{{"Object[219∈6] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object223{{"Object[223∈6] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object207 & Object211 & Object215 & Object219 & Object223 --> List224 - List253{{"List[253∈6] ➊
ᐸ236,240,244,248,252ᐳ"}}:::plan - Object236{{"Object[236∈6] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object240{{"Object[240∈6] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object244{{"Object[244∈6] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object248{{"Object[248∈6] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object252{{"Object[252∈6] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object236 & Object240 & Object244 & Object248 & Object252 --> List253 - PgInsertSingle195[["PgInsertSingle[195∈6] ➊
ᐸrelational_item_relation_composite_pks(child_id,parent_id)ᐳ"]]:::sideeffectplan - Object198{{"Object[198∈6] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - __Flag228[["__Flag[228∈6] ➊
ᐸ227, if(200), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - __Flag257[["__Flag[257∈6] ➊
ᐸ256, if(229), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - Object198 & __Flag228 & __Flag257 --> PgInsertSingle195 - Access196{{"Access[196∈6] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access197{{"Access[197∈6] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access196 & Access197 --> Object198 - Lambda205[["Lambda[205∈6] ➊"]]:::unbatchedplan - List206{{"List[206∈6] ➊
ᐸ620ᐳ"}}:::plan - Lambda205 & List206 --> Object207 - Lambda209[["Lambda[209∈6] ➊"]]:::unbatchedplan - Lambda209 & List206 --> Object211 - Lambda213[["Lambda[213∈6] ➊"]]:::unbatchedplan - Lambda213 & List206 --> Object215 - Lambda217[["Lambda[217∈6] ➊"]]:::unbatchedplan - Lambda217 & List206 --> Object219 - Lambda221[["Lambda[221∈6] ➊"]]:::unbatchedplan - Lambda221 & List206 --> Object223 - __Flag227[["__Flag[227∈6] ➊
ᐸ226, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition200{{"Condition[200∈6] ➊
ᐸexistsᐳ"}}:::plan - __Flag227 & Condition200 --> __Flag228 - Lambda234[["Lambda[234∈6] ➊"]]:::unbatchedplan - List235{{"List[235∈6] ➊
ᐸ621ᐳ"}}:::plan - Lambda234 & List235 --> Object236 - Lambda238[["Lambda[238∈6] ➊"]]:::unbatchedplan - Lambda238 & List235 --> Object240 - Lambda242[["Lambda[242∈6] ➊"]]:::unbatchedplan - Lambda242 & List235 --> Object244 - Lambda246[["Lambda[246∈6] ➊"]]:::unbatchedplan - Lambda246 & List235 --> Object248 - Lambda250[["Lambda[250∈6] ➊"]]:::unbatchedplan - Lambda250 & List235 --> Object252 - __Flag256[["__Flag[256∈6] ➊
ᐸ255, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition229{{"Condition[229∈6] ➊
ᐸexistsᐳ"}}:::plan - __Flag256 & Condition229 --> __Flag257 - __Value2 --> Access196 - __Value2 --> Access197 - Object199{{"Object[199∈6] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle195 --> Object199 - Constant617 --> Condition200 - Lambda201{{"Lambda[201∈6] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Constant617 --> Lambda201 - Lambda201 --> Lambda205 - Access620{{"Access[620∈6] ➊
ᐸ201.base64JSON.1ᐳ"}}:::plan - Access620 --> List206 - Lambda201 --> Lambda209 - Lambda201 --> Lambda213 - Lambda201 --> Lambda217 - Lambda201 --> Lambda221 - Lambda225{{"Lambda[225∈6] ➊"}}:::plan - List224 --> Lambda225 - Access226{{"Access[226∈6] ➊
ᐸ225.0ᐳ"}}:::plan - Lambda225 --> Access226 - Access226 --> __Flag227 - Constant619 --> Condition229 - Lambda230{{"Lambda[230∈6] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Constant619 --> Lambda230 - Lambda230 --> Lambda234 - Access621{{"Access[621∈6] ➊
ᐸ230.base64JSON.1ᐳ"}}:::plan - Access621 --> List235 - Lambda230 --> Lambda238 - Lambda230 --> Lambda242 - Lambda230 --> Lambda246 - Lambda230 --> Lambda250 - Lambda254{{"Lambda[254∈6] ➊"}}:::plan - List253 --> Lambda254 - Access255{{"Access[255∈6] ➊
ᐸ254.0ᐳ"}}:::plan - Lambda254 --> Access255 - Access255 --> __Flag256 - Lambda201 --> Access620 - Lambda230 --> Access621 - List261{{"List[261∈8] ➊
ᐸ258,259,260ᐳ"}}:::plan - PgClassExpression259{{"PgClassExpression[259∈8] ➊
ᐸ__relation...parent_id”ᐳ"}}:::plan - PgClassExpression260{{"PgClassExpression[260∈8] ➊
ᐸ__relation...”child_id”ᐳ"}}:::plan - Constant258 & PgClassExpression259 & PgClassExpression260 --> List261 - PgSelect264[["PgSelect[264∈8] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object198 & PgClassExpression260 --> PgSelect264 - PgSelect321[["PgSelect[321∈8] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object198 & PgClassExpression259 --> PgSelect321 - PgInsertSingle195 --> PgClassExpression259 - PgInsertSingle195 --> PgClassExpression260 - Lambda262{{"Lambda[262∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List261 --> Lambda262 - First268{{"First[268∈8] ➊"}}:::plan - PgSelectRows269[["PgSelectRows[269∈8] ➊"]]:::plan - PgSelectRows269 --> First268 - PgSelect264 --> PgSelectRows269 - PgSelectSingle270{{"PgSelectSingle[270∈8] ➊
ᐸrelational_itemsᐳ"}}:::plan - First268 --> PgSelectSingle270 - PgClassExpression271{{"PgClassExpression[271∈8] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle270 --> PgClassExpression271 - PgClassExpression283{{"PgClassExpression[283∈8] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle270 --> PgClassExpression283 - First323{{"First[323∈8] ➊"}}:::plan - PgSelectRows324[["PgSelectRows[324∈8] ➊"]]:::plan - PgSelectRows324 --> First323 - PgSelect321 --> PgSelectRows324 - PgSelectSingle325{{"PgSelectSingle[325∈8] ➊
ᐸrelational_itemsᐳ"}}:::plan - First323 --> PgSelectSingle325 - PgClassExpression326{{"PgClassExpression[326∈8] ➊
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle325 --> PgClassExpression326 - PgClassExpression338{{"PgClassExpression[338∈8] ➊
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle325 --> PgClassExpression338 - PgSelect272[["PgSelect[272∈9] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object198 & PgClassExpression271 --> PgSelect272 - List281{{"List[281∈9] ➊
ᐸ94,280ᐳ
ᐳRelationalTopic"}}:::plan - PgClassExpression280{{"PgClassExpression[280∈9] ➊
ᐸ__relation...c_item_id”ᐳ"}}:::plan - Constant94 & PgClassExpression280 --> List281 - PgSelect284[["PgSelect[284∈9] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object198 & PgClassExpression271 --> PgSelect284 - List291{{"List[291∈9] ➊
ᐸ104,290ᐳ
ᐳRelationalPost"}}:::plan - PgClassExpression290{{"PgClassExpression[290∈9] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan - Constant104 & PgClassExpression290 --> List291 - PgSelect293[["PgSelect[293∈9] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object198 & PgClassExpression271 --> PgSelect293 - List300{{"List[300∈9] ➊
ᐸ113,299ᐳ
ᐳRelationalDivider"}}:::plan - PgClassExpression299{{"PgClassExpression[299∈9] ➊
ᐸ__relation...r_item_id”ᐳ"}}:::plan - Constant113 & PgClassExpression299 --> List300 - PgSelect302[["PgSelect[302∈9] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object198 & PgClassExpression271 --> PgSelect302 - List309{{"List[309∈9] ➊
ᐸ122,308ᐳ
ᐳRelationalChecklist"}}:::plan - PgClassExpression308{{"PgClassExpression[308∈9] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan - Constant122 & PgClassExpression308 --> List309 - PgSelect311[["PgSelect[311∈9] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object198 & PgClassExpression271 --> PgSelect311 - List318{{"List[318∈9] ➊
ᐸ131,317ᐳ
ᐳRelationalChecklistItem"}}:::plan - PgClassExpression317{{"PgClassExpression[317∈9] ➊
ᐸ__relation...m_item_id”ᐳ"}}:::plan - Constant131 & PgClassExpression317 --> List318 - First276{{"First[276∈9] ➊"}}:::plan - PgSelectRows277[["PgSelectRows[277∈9] ➊"]]:::plan - PgSelectRows277 --> First276 - PgSelect272 --> PgSelectRows277 - PgSelectSingle278{{"PgSelectSingle[278∈9] ➊
ᐸrelational_topicsᐳ"}}:::plan - First276 --> PgSelectSingle278 - PgSelectSingle278 --> PgClassExpression280 - Lambda282{{"Lambda[282∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List281 --> Lambda282 - First286{{"First[286∈9] ➊"}}:::plan - PgSelectRows287[["PgSelectRows[287∈9] ➊"]]:::plan - PgSelectRows287 --> First286 - PgSelect284 --> PgSelectRows287 - PgSelectSingle288{{"PgSelectSingle[288∈9] ➊
ᐸrelational_postsᐳ"}}:::plan - First286 --> PgSelectSingle288 - PgSelectSingle288 --> PgClassExpression290 - Lambda292{{"Lambda[292∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List291 --> Lambda292 - First295{{"First[295∈9] ➊"}}:::plan - PgSelectRows296[["PgSelectRows[296∈9] ➊"]]:::plan - PgSelectRows296 --> First295 - PgSelect293 --> PgSelectRows296 - PgSelectSingle297{{"PgSelectSingle[297∈9] ➊
ᐸrelational_dividersᐳ"}}:::plan - First295 --> PgSelectSingle297 - PgSelectSingle297 --> PgClassExpression299 - Lambda301{{"Lambda[301∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List300 --> Lambda301 - First304{{"First[304∈9] ➊"}}:::plan - PgSelectRows305[["PgSelectRows[305∈9] ➊"]]:::plan - PgSelectRows305 --> First304 - PgSelect302 --> PgSelectRows305 - PgSelectSingle306{{"PgSelectSingle[306∈9] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First304 --> PgSelectSingle306 - PgSelectSingle306 --> PgClassExpression308 - Lambda310{{"Lambda[310∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List309 --> Lambda310 - First313{{"First[313∈9] ➊"}}:::plan - PgSelectRows314[["PgSelectRows[314∈9] ➊"]]:::plan - PgSelectRows314 --> First313 - PgSelect311 --> PgSelectRows314 - PgSelectSingle315{{"PgSelectSingle[315∈9] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First313 --> PgSelectSingle315 - PgSelectSingle315 --> PgClassExpression317 - Lambda319{{"Lambda[319∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List318 --> Lambda319 - PgSelect327[["PgSelect[327∈10] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object198 & PgClassExpression326 --> PgSelect327 - List336{{"List[336∈10] ➊
ᐸ94,335ᐳ
ᐳRelationalTopic"}}:::plan - PgClassExpression335{{"PgClassExpression[335∈10] ➊
ᐸ__relation...c_item_id”ᐳ"}}:::plan - Constant94 & PgClassExpression335 --> List336 - PgSelect339[["PgSelect[339∈10] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object198 & PgClassExpression326 --> PgSelect339 - List346{{"List[346∈10] ➊
ᐸ104,345ᐳ
ᐳRelationalPost"}}:::plan - PgClassExpression345{{"PgClassExpression[345∈10] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan - Constant104 & PgClassExpression345 --> List346 - PgSelect348[["PgSelect[348∈10] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object198 & PgClassExpression326 --> PgSelect348 - List355{{"List[355∈10] ➊
ᐸ113,354ᐳ
ᐳRelationalDivider"}}:::plan - PgClassExpression354{{"PgClassExpression[354∈10] ➊
ᐸ__relation...r_item_id”ᐳ"}}:::plan - Constant113 & PgClassExpression354 --> List355 - PgSelect357[["PgSelect[357∈10] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object198 & PgClassExpression326 --> PgSelect357 - List364{{"List[364∈10] ➊
ᐸ122,363ᐳ
ᐳRelationalChecklist"}}:::plan - PgClassExpression363{{"PgClassExpression[363∈10] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan - Constant122 & PgClassExpression363 --> List364 - PgSelect366[["PgSelect[366∈10] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object198 & PgClassExpression326 --> PgSelect366 - List373{{"List[373∈10] ➊
ᐸ131,372ᐳ
ᐳRelationalChecklistItem"}}:::plan - PgClassExpression372{{"PgClassExpression[372∈10] ➊
ᐸ__relation...m_item_id”ᐳ"}}:::plan - Constant131 & PgClassExpression372 --> List373 - First331{{"First[331∈10] ➊"}}:::plan - PgSelectRows332[["PgSelectRows[332∈10] ➊"]]:::plan - PgSelectRows332 --> First331 - PgSelect327 --> PgSelectRows332 - PgSelectSingle333{{"PgSelectSingle[333∈10] ➊
ᐸrelational_topicsᐳ"}}:::plan - First331 --> PgSelectSingle333 - PgSelectSingle333 --> PgClassExpression335 + Constant17{{"Constant[17∈0] ➊
ᐸ'relational_item_relations'ᐳ"}}:::plan + Constant36{{"Constant[36∈0] ➊
ᐸ'relational_topics'ᐳ"}}:::plan + Constant46{{"Constant[46∈0] ➊
ᐸ'relational_posts'ᐳ"}}:::plan + Constant55{{"Constant[55∈0] ➊
ᐸ'relational_dividers'ᐳ"}}:::plan + Constant64{{"Constant[64∈0] ➊
ᐸ'relational_checklists'ᐳ"}}:::plan + Constant73{{"Constant[73∈0] ➊
ᐸ'relational_checklist_items'ᐳ"}}:::plan + Constant143{{"Constant[143∈0] ➊
ᐸ'relational_item_relation_composite_pks'ᐳ"}}:::plan + Constant270{{"Constant[270∈0] ➊
ᐸ'single_table_item_relations'ᐳ"}}:::plan + Constant281{{"Constant[281∈0] ➊
ᐸ'SingleTableTopic'ᐳ"}}:::plan + Constant286{{"Constant[286∈0] ➊
ᐸ'SingleTablePost'ᐳ"}}:::plan + Constant289{{"Constant[289∈0] ➊
ᐸ'SingleTableDivider'ᐳ"}}:::plan + Constant292{{"Constant[292∈0] ➊
ᐸ'SingleTableChecklist'ᐳ"}}:::plan + Constant295{{"Constant[295∈0] ➊
ᐸ'SingleTableChecklistItem'ᐳ"}}:::plan + Constant332{{"Constant[332∈0] ➊
ᐸ'single_table_item_relation_composite_pks'ᐳ"}}:::plan + PgInsertSingle11[["PgInsertSingle[11∈1] ➊
ᐸrelational_item_relations()ᐳ"]]:::sideeffectplan + Object14 & ApplyInput15 --> PgInsertSingle11 + List20{{"List[20∈1] ➊
ᐸ17,18ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__relation...ons__.”id”ᐳ"}}:::plan + Constant17 & PgClassExpression18 --> List20 + PgSelect23[["PgSelect[23∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__relation...”child_id”ᐳ"}}:::plan + Object14 & PgClassExpression22 --> PgSelect23 + PgSelect78[["PgSelect[78∈1] ➊
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression77{{"PgClassExpression[77∈1] ➊
ᐸ__relation...parent_id”ᐳ"}}:::plan + Object14 & PgClassExpression77 --> PgSelect78 + Object16{{"Object[16∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle11 --> Object16 + Access19{{"Access[19∈1] ➊
ᐸ11.tᐳ"}}:::plan + Access19 --> PgClassExpression18 + PgInsertSingle11 --> Access19 + Lambda21{{"Lambda[21∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List20 --> Lambda21 + Access19 --> PgClassExpression22 + First25{{"First[25∈1] ➊"}}:::plan + PgSelectRows26[["PgSelectRows[26∈1] ➊"]]:::plan + PgSelectRows26 --> First25 + PgSelect23 --> PgSelectRows26 + PgSelectSingle27{{"PgSelectSingle[27∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + First25 --> PgSelectSingle27 + Access19 --> PgClassExpression77 + First80{{"First[80∈1] ➊"}}:::plan + PgSelectRows81[["PgSelectRows[81∈1] ➊"]]:::plan + PgSelectRows81 --> First80 + PgSelect78 --> PgSelectRows81 + PgSelectSingle82{{"PgSelectSingle[82∈1] ➊
ᐸrelational_itemsᐳ"}}:::plan + First80 --> PgSelectSingle82 + PgSelect29[["PgSelect[29∈2] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression28{{"PgClassExpression[28∈2] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object14 & PgClassExpression28 --> PgSelect29 + List38{{"List[38∈2] ➊
ᐸ36,37ᐳ
ᐳRelationalTopic"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈2] ➊
ᐸ__relation...c_item_id”ᐳ"}}:::plan + Constant36 & PgClassExpression37 --> List38 + PgSelect41[["PgSelect[41∈2] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object14 & PgClassExpression28 --> PgSelect41 + List48{{"List[48∈2] ➊
ᐸ46,47ᐳ
ᐳRelationalPost"}}:::plan + PgClassExpression47{{"PgClassExpression[47∈2] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan + Constant46 & PgClassExpression47 --> List48 + PgSelect50[["PgSelect[50∈2] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object14 & PgClassExpression28 --> PgSelect50 + List57{{"List[57∈2] ➊
ᐸ55,56ᐳ
ᐳRelationalDivider"}}:::plan + PgClassExpression56{{"PgClassExpression[56∈2] ➊
ᐸ__relation...r_item_id”ᐳ"}}:::plan + Constant55 & PgClassExpression56 --> List57 + PgSelect59[["PgSelect[59∈2] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object14 & PgClassExpression28 --> PgSelect59 + List66{{"List[66∈2] ➊
ᐸ64,65ᐳ
ᐳRelationalChecklist"}}:::plan + PgClassExpression65{{"PgClassExpression[65∈2] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan + Constant64 & PgClassExpression65 --> List66 + PgSelect68[["PgSelect[68∈2] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object14 & PgClassExpression28 --> PgSelect68 + List75{{"List[75∈2] ➊
ᐸ73,74ᐳ
ᐳRelationalChecklistItem"}}:::plan + PgClassExpression74{{"PgClassExpression[74∈2] ➊
ᐸ__relation...m_item_id”ᐳ"}}:::plan + Constant73 & PgClassExpression74 --> List75 + PgSelectSingle27 --> PgClassExpression28 + First33{{"First[33∈2] ➊"}}:::plan + PgSelectRows34[["PgSelectRows[34∈2] ➊"]]:::plan + PgSelectRows34 --> First33 + PgSelect29 --> PgSelectRows34 + PgSelectSingle35{{"PgSelectSingle[35∈2] ➊
ᐸrelational_topicsᐳ"}}:::plan + First33 --> PgSelectSingle35 + PgSelectSingle35 --> PgClassExpression37 + Lambda39{{"Lambda[39∈2] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List38 --> Lambda39 + PgClassExpression40{{"PgClassExpression[40∈2] ➊
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + PgSelectSingle27 --> PgClassExpression40 + First43{{"First[43∈2] ➊"}}:::plan + PgSelectRows44[["PgSelectRows[44∈2] ➊"]]:::plan + PgSelectRows44 --> First43 + PgSelect41 --> PgSelectRows44 + PgSelectSingle45{{"PgSelectSingle[45∈2] ➊
ᐸrelational_postsᐳ"}}:::plan + First43 --> PgSelectSingle45 + PgSelectSingle45 --> PgClassExpression47 + Lambda49{{"Lambda[49∈2] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List48 --> Lambda49 + First52{{"First[52∈2] ➊"}}:::plan + PgSelectRows53[["PgSelectRows[53∈2] ➊"]]:::plan + PgSelectRows53 --> First52 + PgSelect50 --> PgSelectRows53 + PgSelectSingle54{{"PgSelectSingle[54∈2] ➊
ᐸrelational_dividersᐳ"}}:::plan + First52 --> PgSelectSingle54 + PgSelectSingle54 --> PgClassExpression56 + Lambda58{{"Lambda[58∈2] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List57 --> Lambda58 + First61{{"First[61∈2] ➊"}}:::plan + PgSelectRows62[["PgSelectRows[62∈2] ➊"]]:::plan + PgSelectRows62 --> First61 + PgSelect59 --> PgSelectRows62 + PgSelectSingle63{{"PgSelectSingle[63∈2] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First61 --> PgSelectSingle63 + PgSelectSingle63 --> PgClassExpression65 + Lambda67{{"Lambda[67∈2] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List66 --> Lambda67 + First70{{"First[70∈2] ➊"}}:::plan + PgSelectRows71[["PgSelectRows[71∈2] ➊"]]:::plan + PgSelectRows71 --> First70 + PgSelect68 --> PgSelectRows71 + PgSelectSingle72{{"PgSelectSingle[72∈2] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First70 --> PgSelectSingle72 + PgSelectSingle72 --> PgClassExpression74 + Lambda76{{"Lambda[76∈2] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List75 --> Lambda76 + PgSelect84[["PgSelect[84∈3] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression83{{"PgClassExpression[83∈3] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object14 & PgClassExpression83 --> PgSelect84 + List93{{"List[93∈3] ➊
ᐸ36,92ᐳ
ᐳRelationalTopic"}}:::plan + PgClassExpression92{{"PgClassExpression[92∈3] ➊
ᐸ__relation...c_item_id”ᐳ"}}:::plan + Constant36 & PgClassExpression92 --> List93 + PgSelect96[["PgSelect[96∈3] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object14 & PgClassExpression83 --> PgSelect96 + List103{{"List[103∈3] ➊
ᐸ46,102ᐳ
ᐳRelationalPost"}}:::plan + PgClassExpression102{{"PgClassExpression[102∈3] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan + Constant46 & PgClassExpression102 --> List103 + PgSelect105[["PgSelect[105∈3] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object14 & PgClassExpression83 --> PgSelect105 + List112{{"List[112∈3] ➊
ᐸ55,111ᐳ
ᐳRelationalDivider"}}:::plan + PgClassExpression111{{"PgClassExpression[111∈3] ➊
ᐸ__relation...r_item_id”ᐳ"}}:::plan + Constant55 & PgClassExpression111 --> List112 + PgSelect114[["PgSelect[114∈3] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object14 & PgClassExpression83 --> PgSelect114 + List121{{"List[121∈3] ➊
ᐸ64,120ᐳ
ᐳRelationalChecklist"}}:::plan + PgClassExpression120{{"PgClassExpression[120∈3] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan + Constant64 & PgClassExpression120 --> List121 + PgSelect123[["PgSelect[123∈3] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object14 & PgClassExpression83 --> PgSelect123 + List130{{"List[130∈3] ➊
ᐸ73,129ᐳ
ᐳRelationalChecklistItem"}}:::plan + PgClassExpression129{{"PgClassExpression[129∈3] ➊
ᐸ__relation...m_item_id”ᐳ"}}:::plan + Constant73 & PgClassExpression129 --> List130 + PgSelectSingle82 --> PgClassExpression83 + First88{{"First[88∈3] ➊"}}:::plan + PgSelectRows89[["PgSelectRows[89∈3] ➊"]]:::plan + PgSelectRows89 --> First88 + PgSelect84 --> PgSelectRows89 + PgSelectSingle90{{"PgSelectSingle[90∈3] ➊
ᐸrelational_topicsᐳ"}}:::plan + First88 --> PgSelectSingle90 + PgSelectSingle90 --> PgClassExpression92 + Lambda94{{"Lambda[94∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List93 --> Lambda94 + PgClassExpression95{{"PgClassExpression[95∈3] ➊
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + PgSelectSingle82 --> PgClassExpression95 + First98{{"First[98∈3] ➊"}}:::plan + PgSelectRows99[["PgSelectRows[99∈3] ➊"]]:::plan + PgSelectRows99 --> First98 + PgSelect96 --> PgSelectRows99 + PgSelectSingle100{{"PgSelectSingle[100∈3] ➊
ᐸrelational_postsᐳ"}}:::plan + First98 --> PgSelectSingle100 + PgSelectSingle100 --> PgClassExpression102 + Lambda104{{"Lambda[104∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List103 --> Lambda104 + First107{{"First[107∈3] ➊"}}:::plan + PgSelectRows108[["PgSelectRows[108∈3] ➊"]]:::plan + PgSelectRows108 --> First107 + PgSelect105 --> PgSelectRows108 + PgSelectSingle109{{"PgSelectSingle[109∈3] ➊
ᐸrelational_dividersᐳ"}}:::plan + First107 --> PgSelectSingle109 + PgSelectSingle109 --> PgClassExpression111 + Lambda113{{"Lambda[113∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List112 --> Lambda113 + First116{{"First[116∈3] ➊"}}:::plan + PgSelectRows117[["PgSelectRows[117∈3] ➊"]]:::plan + PgSelectRows117 --> First116 + PgSelect114 --> PgSelectRows117 + PgSelectSingle118{{"PgSelectSingle[118∈3] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First116 --> PgSelectSingle118 + PgSelectSingle118 --> PgClassExpression120 + Lambda122{{"Lambda[122∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List121 --> Lambda122 + First125{{"First[125∈3] ➊"}}:::plan + PgSelectRows126[["PgSelectRows[126∈3] ➊"]]:::plan + PgSelectRows126 --> First125 + PgSelect123 --> PgSelectRows126 + PgSelectSingle127{{"PgSelectSingle[127∈3] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First125 --> PgSelectSingle127 + PgSelectSingle127 --> PgClassExpression129 + Lambda131{{"Lambda[131∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List130 --> Lambda131 + List147{{"List[147∈4] ➊
ᐸ143,144,146ᐳ"}}:::plan + PgClassExpression144{{"PgClassExpression[144∈4] ➊
ᐸ__relation...parent_id”ᐳ"}}:::plan + PgClassExpression146{{"PgClassExpression[146∈4] ➊
ᐸ__relation...”child_id”ᐳ"}}:::plan + Constant143 & PgClassExpression144 & PgClassExpression146 --> List147 + PgInsertSingle137[["PgInsertSingle[137∈4] ➊
ᐸrelational_item_relation_composite_pks()ᐳ"]]:::sideeffectplan + Object140{{"Object[140∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object140 & ApplyInput141 --> PgInsertSingle137 + Access138{{"Access[138∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access139{{"Access[139∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access138 & Access139 --> Object140 + PgSelect150[["PgSelect[150∈4] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object140 & PgClassExpression146 --> PgSelect150 + PgSelect205[["PgSelect[205∈4] ➊
ᐸrelational_itemsᐳ"]]:::plan + Object140 & PgClassExpression144 --> PgSelect205 + __Value2 --> Access138 + __Value2 --> Access139 + Object142{{"Object[142∈4] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle137 --> Object142 + Access145{{"Access[145∈4] ➊
ᐸ137.tᐳ"}}:::plan + Access145 --> PgClassExpression144 + PgInsertSingle137 --> Access145 + Access145 --> PgClassExpression146 + Lambda148{{"Lambda[148∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List147 --> Lambda148 + First152{{"First[152∈4] ➊"}}:::plan + PgSelectRows153[["PgSelectRows[153∈4] ➊"]]:::plan + PgSelectRows153 --> First152 + PgSelect150 --> PgSelectRows153 + PgSelectSingle154{{"PgSelectSingle[154∈4] ➊
ᐸrelational_itemsᐳ"}}:::plan + First152 --> PgSelectSingle154 + First207{{"First[207∈4] ➊"}}:::plan + PgSelectRows208[["PgSelectRows[208∈4] ➊"]]:::plan + PgSelectRows208 --> First207 + PgSelect205 --> PgSelectRows208 + PgSelectSingle209{{"PgSelectSingle[209∈4] ➊
ᐸrelational_itemsᐳ"}}:::plan + First207 --> PgSelectSingle209 + PgSelect156[["PgSelect[156∈5] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression155{{"PgClassExpression[155∈5] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object140 & PgClassExpression155 --> PgSelect156 + List165{{"List[165∈5] ➊
ᐸ36,164ᐳ
ᐳRelationalTopic"}}:::plan + PgClassExpression164{{"PgClassExpression[164∈5] ➊
ᐸ__relation...c_item_id”ᐳ"}}:::plan + Constant36 & PgClassExpression164 --> List165 + PgSelect168[["PgSelect[168∈5] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object140 & PgClassExpression155 --> PgSelect168 + List175{{"List[175∈5] ➊
ᐸ46,174ᐳ
ᐳRelationalPost"}}:::plan + PgClassExpression174{{"PgClassExpression[174∈5] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan + Constant46 & PgClassExpression174 --> List175 + PgSelect177[["PgSelect[177∈5] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object140 & PgClassExpression155 --> PgSelect177 + List184{{"List[184∈5] ➊
ᐸ55,183ᐳ
ᐳRelationalDivider"}}:::plan + PgClassExpression183{{"PgClassExpression[183∈5] ➊
ᐸ__relation...r_item_id”ᐳ"}}:::plan + Constant55 & PgClassExpression183 --> List184 + PgSelect186[["PgSelect[186∈5] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object140 & PgClassExpression155 --> PgSelect186 + List193{{"List[193∈5] ➊
ᐸ64,192ᐳ
ᐳRelationalChecklist"}}:::plan + PgClassExpression192{{"PgClassExpression[192∈5] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan + Constant64 & PgClassExpression192 --> List193 + PgSelect195[["PgSelect[195∈5] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object140 & PgClassExpression155 --> PgSelect195 + List202{{"List[202∈5] ➊
ᐸ73,201ᐳ
ᐳRelationalChecklistItem"}}:::plan + PgClassExpression201{{"PgClassExpression[201∈5] ➊
ᐸ__relation...m_item_id”ᐳ"}}:::plan + Constant73 & PgClassExpression201 --> List202 + PgSelectSingle154 --> PgClassExpression155 + First160{{"First[160∈5] ➊"}}:::plan + PgSelectRows161[["PgSelectRows[161∈5] ➊"]]:::plan + PgSelectRows161 --> First160 + PgSelect156 --> PgSelectRows161 + PgSelectSingle162{{"PgSelectSingle[162∈5] ➊
ᐸrelational_topicsᐳ"}}:::plan + First160 --> PgSelectSingle162 + PgSelectSingle162 --> PgClassExpression164 + Lambda166{{"Lambda[166∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List165 --> Lambda166 + PgClassExpression167{{"PgClassExpression[167∈5] ➊
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + PgSelectSingle154 --> PgClassExpression167 + First170{{"First[170∈5] ➊"}}:::plan + PgSelectRows171[["PgSelectRows[171∈5] ➊"]]:::plan + PgSelectRows171 --> First170 + PgSelect168 --> PgSelectRows171 + PgSelectSingle172{{"PgSelectSingle[172∈5] ➊
ᐸrelational_postsᐳ"}}:::plan + First170 --> PgSelectSingle172 + PgSelectSingle172 --> PgClassExpression174 + Lambda176{{"Lambda[176∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List175 --> Lambda176 + First179{{"First[179∈5] ➊"}}:::plan + PgSelectRows180[["PgSelectRows[180∈5] ➊"]]:::plan + PgSelectRows180 --> First179 + PgSelect177 --> PgSelectRows180 + PgSelectSingle181{{"PgSelectSingle[181∈5] ➊
ᐸrelational_dividersᐳ"}}:::plan + First179 --> PgSelectSingle181 + PgSelectSingle181 --> PgClassExpression183 + Lambda185{{"Lambda[185∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List184 --> Lambda185 + First188{{"First[188∈5] ➊"}}:::plan + PgSelectRows189[["PgSelectRows[189∈5] ➊"]]:::plan + PgSelectRows189 --> First188 + PgSelect186 --> PgSelectRows189 + PgSelectSingle190{{"PgSelectSingle[190∈5] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First188 --> PgSelectSingle190 + PgSelectSingle190 --> PgClassExpression192 + Lambda194{{"Lambda[194∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List193 --> Lambda194 + First197{{"First[197∈5] ➊"}}:::plan + PgSelectRows198[["PgSelectRows[198∈5] ➊"]]:::plan + PgSelectRows198 --> First197 + PgSelect195 --> PgSelectRows198 + PgSelectSingle199{{"PgSelectSingle[199∈5] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First197 --> PgSelectSingle199 + PgSelectSingle199 --> PgClassExpression201 + Lambda203{{"Lambda[203∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List202 --> Lambda203 + PgSelect211[["PgSelect[211∈6] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + PgClassExpression210{{"PgClassExpression[210∈6] ➊
ᐸ__relation...ems__.”id”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + Object140 & PgClassExpression210 --> PgSelect211 + List220{{"List[220∈6] ➊
ᐸ36,219ᐳ
ᐳRelationalTopic"}}:::plan + PgClassExpression219{{"PgClassExpression[219∈6] ➊
ᐸ__relation...c_item_id”ᐳ"}}:::plan + Constant36 & PgClassExpression219 --> List220 + PgSelect223[["PgSelect[223∈6] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object140 & PgClassExpression210 --> PgSelect223 + List230{{"List[230∈6] ➊
ᐸ46,229ᐳ
ᐳRelationalPost"}}:::plan + PgClassExpression229{{"PgClassExpression[229∈6] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan + Constant46 & PgClassExpression229 --> List230 + PgSelect232[["PgSelect[232∈6] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object140 & PgClassExpression210 --> PgSelect232 + List239{{"List[239∈6] ➊
ᐸ55,238ᐳ
ᐳRelationalDivider"}}:::plan + PgClassExpression238{{"PgClassExpression[238∈6] ➊
ᐸ__relation...r_item_id”ᐳ"}}:::plan + Constant55 & PgClassExpression238 --> List239 + PgSelect241[["PgSelect[241∈6] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object140 & PgClassExpression210 --> PgSelect241 + List248{{"List[248∈6] ➊
ᐸ64,247ᐳ
ᐳRelationalChecklist"}}:::plan + PgClassExpression247{{"PgClassExpression[247∈6] ➊
ᐸ__relation...t_item_id”ᐳ"}}:::plan + Constant64 & PgClassExpression247 --> List248 + PgSelect250[["PgSelect[250∈6] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object140 & PgClassExpression210 --> PgSelect250 + List257{{"List[257∈6] ➊
ᐸ73,256ᐳ
ᐳRelationalChecklistItem"}}:::plan + PgClassExpression256{{"PgClassExpression[256∈6] ➊
ᐸ__relation...m_item_id”ᐳ"}}:::plan + Constant73 & PgClassExpression256 --> List257 + PgSelectSingle209 --> PgClassExpression210 + First215{{"First[215∈6] ➊"}}:::plan + PgSelectRows216[["PgSelectRows[216∈6] ➊"]]:::plan + PgSelectRows216 --> First215 + PgSelect211 --> PgSelectRows216 + PgSelectSingle217{{"PgSelectSingle[217∈6] ➊
ᐸrelational_topicsᐳ"}}:::plan + First215 --> PgSelectSingle217 + PgSelectSingle217 --> PgClassExpression219 + Lambda221{{"Lambda[221∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List220 --> Lambda221 + PgClassExpression222{{"PgClassExpression[222∈6] ➊
ᐸ__relation...s__.”type”ᐳ
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem"}}:::plan + PgSelectSingle209 --> PgClassExpression222 + First225{{"First[225∈6] ➊"}}:::plan + PgSelectRows226[["PgSelectRows[226∈6] ➊"]]:::plan + PgSelectRows226 --> First225 + PgSelect223 --> PgSelectRows226 + PgSelectSingle227{{"PgSelectSingle[227∈6] ➊
ᐸrelational_postsᐳ"}}:::plan + First225 --> PgSelectSingle227 + PgSelectSingle227 --> PgClassExpression229 + Lambda231{{"Lambda[231∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List230 --> Lambda231 + First234{{"First[234∈6] ➊"}}:::plan + PgSelectRows235[["PgSelectRows[235∈6] ➊"]]:::plan + PgSelectRows235 --> First234 + PgSelect232 --> PgSelectRows235 + PgSelectSingle236{{"PgSelectSingle[236∈6] ➊
ᐸrelational_dividersᐳ"}}:::plan + First234 --> PgSelectSingle236 + PgSelectSingle236 --> PgClassExpression238 + Lambda240{{"Lambda[240∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List239 --> Lambda240 + First243{{"First[243∈6] ➊"}}:::plan + PgSelectRows244[["PgSelectRows[244∈6] ➊"]]:::plan + PgSelectRows244 --> First243 + PgSelect241 --> PgSelectRows244 + PgSelectSingle245{{"PgSelectSingle[245∈6] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First243 --> PgSelectSingle245 + PgSelectSingle245 --> PgClassExpression247 + Lambda249{{"Lambda[249∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List248 --> Lambda249 + First252{{"First[252∈6] ➊"}}:::plan + PgSelectRows253[["PgSelectRows[253∈6] ➊"]]:::plan + PgSelectRows253 --> First252 + PgSelect250 --> PgSelectRows253 + PgSelectSingle254{{"PgSelectSingle[254∈6] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First252 --> PgSelectSingle254 + PgSelectSingle254 --> PgClassExpression256 + Lambda258{{"Lambda[258∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List257 --> Lambda258 + PgInsertSingle264[["PgInsertSingle[264∈7] ➊
ᐸsingle_table_item_relations()ᐳ"]]:::sideeffectplan + Object267{{"Object[267∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object267 & ApplyInput268 --> PgInsertSingle264 + Access265{{"Access[265∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access266{{"Access[266∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access265 & Access266 --> Object267 + List273{{"List[273∈7] ➊
ᐸ270,271ᐳ"}}:::plan + PgClassExpression271{{"PgClassExpression[271∈7] ➊
ᐸ__single_t...ons__.”id”ᐳ"}}:::plan + Constant270 & PgClassExpression271 --> List273 + PgSelect276[["PgSelect[276∈7] ➊
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression275{{"PgClassExpression[275∈7] ➊
ᐸ__single_t...”child_id”ᐳ"}}:::plan + Object267 & PgClassExpression275 --> PgSelect276 + PgSelect299[["PgSelect[299∈7] ➊
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression298{{"PgClassExpression[298∈7] ➊
ᐸ__single_t...parent_id”ᐳ"}}:::plan + Object267 & PgClassExpression298 --> PgSelect299 + __Value2 --> Access265 + __Value2 --> Access266 + Object269{{"Object[269∈7] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle264 --> Object269 + Access272{{"Access[272∈7] ➊
ᐸ264.tᐳ"}}:::plan + Access272 --> PgClassExpression271 + PgInsertSingle264 --> Access272 + Lambda274{{"Lambda[274∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List273 --> Lambda274 + Access272 --> PgClassExpression275 + First278{{"First[278∈7] ➊"}}:::plan + PgSelectRows279[["PgSelectRows[279∈7] ➊"]]:::plan + PgSelectRows279 --> First278 + PgSelect276 --> PgSelectRows279 + PgSelectSingle280{{"PgSelectSingle[280∈7] ➊
ᐸsingle_table_itemsᐳ"}}:::plan + First278 --> PgSelectSingle280 + Access272 --> PgClassExpression298 + First301{{"First[301∈7] ➊"}}:::plan + PgSelectRows302[["PgSelectRows[302∈7] ➊"]]:::plan + PgSelectRows302 --> First301 + PgSelect299 --> PgSelectRows302 + PgSelectSingle303{{"PgSelectSingle[303∈7] ➊
ᐸsingle_table_itemsᐳ"}}:::plan + First301 --> PgSelectSingle303 + List283{{"List[283∈8] ➊
ᐸ281,282ᐳ
ᐳSingleTableTopic"}}:::plan + PgClassExpression282{{"PgClassExpression[282∈8] ➊
ᐸ__single_t...ems__.”id”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + Constant281 & PgClassExpression282 --> List283 + List287{{"List[287∈8] ➊
ᐸ286,282ᐳ
ᐳSingleTablePost"}}:::plan + Constant286 & PgClassExpression282 --> List287 + List290{{"List[290∈8] ➊
ᐸ289,282ᐳ
ᐳSingleTableDivider"}}:::plan + Constant289 & PgClassExpression282 --> List290 + List293{{"List[293∈8] ➊
ᐸ292,282ᐳ
ᐳSingleTableChecklist"}}:::plan + Constant292 & PgClassExpression282 --> List293 + List296{{"List[296∈8] ➊
ᐸ295,282ᐳ
ᐳSingleTableChecklistItem"}}:::plan + Constant295 & PgClassExpression282 --> List296 + PgSelectSingle280 --> PgClassExpression282 + Lambda284{{"Lambda[284∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List283 --> Lambda284 + PgClassExpression285{{"PgClassExpression[285∈8] ➊
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + PgSelectSingle280 --> PgClassExpression285 + Lambda288{{"Lambda[288∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List287 --> Lambda288 + Lambda291{{"Lambda[291∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List290 --> Lambda291 + Lambda294{{"Lambda[294∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List293 --> Lambda294 + Lambda297{{"Lambda[297∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List296 --> Lambda297 + List306{{"List[306∈9] ➊
ᐸ281,305ᐳ
ᐳSingleTableTopic"}}:::plan + PgClassExpression305{{"PgClassExpression[305∈9] ➊
ᐸ__single_t...ems__.”id”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + Constant281 & PgClassExpression305 --> List306 + List310{{"List[310∈9] ➊
ᐸ286,305ᐳ
ᐳSingleTablePost"}}:::plan + Constant286 & PgClassExpression305 --> List310 + List313{{"List[313∈9] ➊
ᐸ289,305ᐳ
ᐳSingleTableDivider"}}:::plan + Constant289 & PgClassExpression305 --> List313 + List316{{"List[316∈9] ➊
ᐸ292,305ᐳ
ᐳSingleTableChecklist"}}:::plan + Constant292 & PgClassExpression305 --> List316 + List319{{"List[319∈9] ➊
ᐸ295,305ᐳ
ᐳSingleTableChecklistItem"}}:::plan + Constant295 & PgClassExpression305 --> List319 + PgSelectSingle303 --> PgClassExpression305 + Lambda307{{"Lambda[307∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List306 --> Lambda307 + PgClassExpression308{{"PgClassExpression[308∈9] ➊
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + PgSelectSingle303 --> PgClassExpression308 + Lambda311{{"Lambda[311∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List310 --> Lambda311 + Lambda314{{"Lambda[314∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List313 --> Lambda314 + Lambda317{{"Lambda[317∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List316 --> Lambda317 + Lambda320{{"Lambda[320∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List319 --> Lambda320 + List336{{"List[336∈10] ➊
ᐸ332,333,335ᐳ"}}:::plan + PgClassExpression333{{"PgClassExpression[333∈10] ➊
ᐸ__single_t...parent_id”ᐳ"}}:::plan + PgClassExpression335{{"PgClassExpression[335∈10] ➊
ᐸ__single_t...”child_id”ᐳ"}}:::plan + Constant332 & PgClassExpression333 & PgClassExpression335 --> List336 + PgInsertSingle326[["PgInsertSingle[326∈10] ➊
ᐸsingle_table_item_relation_composite_pks()ᐳ"]]:::sideeffectplan + Object329{{"Object[329∈10] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object329 & ApplyInput330 --> PgInsertSingle326 + Access327{{"Access[327∈10] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access328{{"Access[328∈10] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access327 & Access328 --> Object329 + PgSelect339[["PgSelect[339∈10] ➊
ᐸsingle_table_itemsᐳ"]]:::plan + Object329 & PgClassExpression335 --> PgSelect339 + PgSelect362[["PgSelect[362∈10] ➊
ᐸsingle_table_itemsᐳ"]]:::plan + Object329 & PgClassExpression333 --> PgSelect362 + __Value2 --> Access327 + __Value2 --> Access328 + Object331{{"Object[331∈10] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle326 --> Object331 + Access334{{"Access[334∈10] ➊
ᐸ326.tᐳ"}}:::plan + Access334 --> PgClassExpression333 + PgInsertSingle326 --> Access334 + Access334 --> PgClassExpression335 Lambda337{{"Lambda[337∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List336 --> Lambda337 First341{{"First[341∈10] ➊"}}:::plan PgSelectRows342[["PgSelectRows[342∈10] ➊"]]:::plan PgSelectRows342 --> First341 PgSelect339 --> PgSelectRows342 - PgSelectSingle343{{"PgSelectSingle[343∈10] ➊
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle343{{"PgSelectSingle[343∈10] ➊
ᐸsingle_table_itemsᐳ"}}:::plan First341 --> PgSelectSingle343 + First364{{"First[364∈10] ➊"}}:::plan + PgSelectRows365[["PgSelectRows[365∈10] ➊"]]:::plan + PgSelectRows365 --> First364 + PgSelect362 --> PgSelectRows365 + PgSelectSingle366{{"PgSelectSingle[366∈10] ➊
ᐸsingle_table_itemsᐳ"}}:::plan + First364 --> PgSelectSingle366 + List346{{"List[346∈11] ➊
ᐸ281,345ᐳ
ᐳSingleTableTopic"}}:::plan + PgClassExpression345{{"PgClassExpression[345∈11] ➊
ᐸ__single_t...ems__.”id”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + Constant281 & PgClassExpression345 --> List346 + List350{{"List[350∈11] ➊
ᐸ286,345ᐳ
ᐳSingleTablePost"}}:::plan + Constant286 & PgClassExpression345 --> List350 + List353{{"List[353∈11] ➊
ᐸ289,345ᐳ
ᐳSingleTableDivider"}}:::plan + Constant289 & PgClassExpression345 --> List353 + List356{{"List[356∈11] ➊
ᐸ292,345ᐳ
ᐳSingleTableChecklist"}}:::plan + Constant292 & PgClassExpression345 --> List356 + List359{{"List[359∈11] ➊
ᐸ295,345ᐳ
ᐳSingleTableChecklistItem"}}:::plan + Constant295 & PgClassExpression345 --> List359 PgSelectSingle343 --> PgClassExpression345 - Lambda347{{"Lambda[347∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda347{{"Lambda[347∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List346 --> Lambda347 - First350{{"First[350∈10] ➊"}}:::plan - PgSelectRows351[["PgSelectRows[351∈10] ➊"]]:::plan - PgSelectRows351 --> First350 - PgSelect348 --> PgSelectRows351 - PgSelectSingle352{{"PgSelectSingle[352∈10] ➊
ᐸrelational_dividersᐳ"}}:::plan - First350 --> PgSelectSingle352 - PgSelectSingle352 --> PgClassExpression354 - Lambda356{{"Lambda[356∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List355 --> Lambda356 - First359{{"First[359∈10] ➊"}}:::plan - PgSelectRows360[["PgSelectRows[360∈10] ➊"]]:::plan - PgSelectRows360 --> First359 - PgSelect357 --> PgSelectRows360 - PgSelectSingle361{{"PgSelectSingle[361∈10] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First359 --> PgSelectSingle361 - PgSelectSingle361 --> PgClassExpression363 - Lambda365{{"Lambda[365∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List364 --> Lambda365 - First368{{"First[368∈10] ➊"}}:::plan - PgSelectRows369[["PgSelectRows[369∈10] ➊"]]:::plan - PgSelectRows369 --> First368 - PgSelect366 --> PgSelectRows369 - PgSelectSingle370{{"PgSelectSingle[370∈10] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First368 --> PgSelectSingle370 - PgSelectSingle370 --> PgClassExpression372 - Lambda374{{"Lambda[374∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + PgClassExpression348{{"PgClassExpression[348∈11] ➊
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + PgSelectSingle343 --> PgClassExpression348 + Lambda351{{"Lambda[351∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List350 --> Lambda351 + Lambda354{{"Lambda[354∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List353 --> Lambda354 + Lambda357{{"Lambda[357∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List356 --> Lambda357 + Lambda360{{"Lambda[360∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List359 --> Lambda360 + List369{{"List[369∈12] ➊
ᐸ281,368ᐳ
ᐳSingleTableTopic"}}:::plan + PgClassExpression368{{"PgClassExpression[368∈12] ➊
ᐸ__single_t...ems__.”id”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + Constant281 & PgClassExpression368 --> List369 + List373{{"List[373∈12] ➊
ᐸ286,368ᐳ
ᐳSingleTablePost"}}:::plan + Constant286 & PgClassExpression368 --> List373 + List376{{"List[376∈12] ➊
ᐸ289,368ᐳ
ᐳSingleTableDivider"}}:::plan + Constant289 & PgClassExpression368 --> List376 + List379{{"List[379∈12] ➊
ᐸ292,368ᐳ
ᐳSingleTableChecklist"}}:::plan + Constant292 & PgClassExpression368 --> List379 + List382{{"List[382∈12] ➊
ᐸ295,368ᐳ
ᐳSingleTableChecklistItem"}}:::plan + Constant295 & PgClassExpression368 --> List382 + PgSelectSingle366 --> PgClassExpression368 + Lambda370{{"Lambda[370∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List369 --> Lambda370 + PgClassExpression371{{"PgClassExpression[371∈12] ➊
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + PgSelectSingle366 --> PgClassExpression371 + Lambda374{{"Lambda[374∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List373 --> Lambda374 - List409{{"List[409∈11] ➊
ᐸ392,396,400,404,408ᐳ"}}:::plan - Object392{{"Object[392∈11] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object396{{"Object[396∈11] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object400{{"Object[400∈11] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object404{{"Object[404∈11] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object408{{"Object[408∈11] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object392 & Object396 & Object400 & Object404 & Object408 --> List409 - List438{{"List[438∈11] ➊
ᐸ421,425,429,433,437ᐳ"}}:::plan - Object421{{"Object[421∈11] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object425{{"Object[425∈11] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object429{{"Object[429∈11] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object433{{"Object[433∈11] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object437{{"Object[437∈11] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object421 & Object425 & Object429 & Object433 & Object437 --> List438 - PgInsertSingle380[["PgInsertSingle[380∈11] ➊
ᐸsingle_table_item_relations(child_id,parent_id)ᐳ"]]:::sideeffectplan - Object383{{"Object[383∈11] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - __Flag413[["__Flag[413∈11] ➊
ᐸ412, if(385), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - __Flag442[["__Flag[442∈11] ➊
ᐸ441, if(414), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - Object383 & __Flag413 & __Flag442 --> PgInsertSingle380 - Access381{{"Access[381∈11] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access382{{"Access[382∈11] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access381 & Access382 --> Object383 - Lambda390[["Lambda[390∈11] ➊"]]:::unbatchedplan - List391{{"List[391∈11] ➊
ᐸ622ᐳ"}}:::plan - Lambda390 & List391 --> Object392 - Lambda394[["Lambda[394∈11] ➊"]]:::unbatchedplan - Lambda394 & List391 --> Object396 - Lambda398[["Lambda[398∈11] ➊"]]:::unbatchedplan - Lambda398 & List391 --> Object400 - Lambda402[["Lambda[402∈11] ➊"]]:::unbatchedplan - Lambda402 & List391 --> Object404 - Lambda406[["Lambda[406∈11] ➊"]]:::unbatchedplan - Lambda406 & List391 --> Object408 - __Flag412[["__Flag[412∈11] ➊
ᐸ411, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition385{{"Condition[385∈11] ➊
ᐸexistsᐳ"}}:::plan - __Flag412 & Condition385 --> __Flag413 - Lambda419[["Lambda[419∈11] ➊"]]:::unbatchedplan - List420{{"List[420∈11] ➊
ᐸ624ᐳ"}}:::plan - Lambda419 & List420 --> Object421 - Lambda423[["Lambda[423∈11] ➊"]]:::unbatchedplan - Lambda423 & List420 --> Object425 - Lambda427[["Lambda[427∈11] ➊"]]:::unbatchedplan - Lambda427 & List420 --> Object429 - Lambda431[["Lambda[431∈11] ➊"]]:::unbatchedplan - Lambda431 & List420 --> Object433 - Lambda435[["Lambda[435∈11] ➊"]]:::unbatchedplan - Lambda435 & List420 --> Object437 - __Flag441[["__Flag[441∈11] ➊
ᐸ440, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition414{{"Condition[414∈11] ➊
ᐸexistsᐳ"}}:::plan - __Flag441 & Condition414 --> __Flag442 - __Value2 --> Access381 - __Value2 --> Access382 - Object384{{"Object[384∈11] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle380 --> Object384 - Constant623 --> Condition385 - Lambda386{{"Lambda[386∈11] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Constant623 --> Lambda386 - Lambda386 --> Lambda390 - Access622{{"Access[622∈11] ➊
ᐸ386.base64JSON.1ᐳ"}}:::plan - Access622 --> List391 - Lambda386 --> Lambda394 - Lambda386 --> Lambda398 - Lambda386 --> Lambda402 - Lambda386 --> Lambda406 - Lambda410{{"Lambda[410∈11] ➊"}}:::plan - List409 --> Lambda410 - Access411{{"Access[411∈11] ➊
ᐸ410.0ᐳ"}}:::plan - Lambda410 --> Access411 - Access411 --> __Flag412 - Constant625 --> Condition414 - Lambda415{{"Lambda[415∈11] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Constant625 --> Lambda415 - Lambda415 --> Lambda419 - Access624{{"Access[624∈11] ➊
ᐸ415.base64JSON.1ᐳ"}}:::plan - Access624 --> List420 - Lambda415 --> Lambda423 - Lambda415 --> Lambda427 - Lambda415 --> Lambda431 - Lambda415 --> Lambda435 - Lambda439{{"Lambda[439∈11] ➊"}}:::plan - List438 --> Lambda439 - Access440{{"Access[440∈11] ➊
ᐸ439.0ᐳ"}}:::plan - Lambda439 --> Access440 - Access440 --> __Flag441 - Lambda386 --> Access622 - Lambda415 --> Access624 - List445{{"List[445∈13] ➊
ᐸ443,444ᐳ"}}:::plan - PgClassExpression444{{"PgClassExpression[444∈13] ➊
ᐸ__single_t...ons__.”id”ᐳ"}}:::plan - Constant443 & PgClassExpression444 --> List445 - PgSelect448[["PgSelect[448∈13] ➊
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression447{{"PgClassExpression[447∈13] ➊
ᐸ__single_t...”child_id”ᐳ"}}:::plan - Object383 & PgClassExpression447 --> PgSelect448 - PgSelect473[["PgSelect[473∈13] ➊
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression472{{"PgClassExpression[472∈13] ➊
ᐸ__single_t...parent_id”ᐳ"}}:::plan - Object383 & PgClassExpression472 --> PgSelect473 - PgInsertSingle380 --> PgClassExpression444 - Lambda446{{"Lambda[446∈13] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List445 --> Lambda446 - PgInsertSingle380 --> PgClassExpression447 - First452{{"First[452∈13] ➊"}}:::plan - PgSelectRows453[["PgSelectRows[453∈13] ➊"]]:::plan - PgSelectRows453 --> First452 - PgSelect448 --> PgSelectRows453 - PgSelectSingle454{{"PgSelectSingle[454∈13] ➊
ᐸsingle_table_itemsᐳ"}}:::plan - First452 --> PgSelectSingle454 - PgClassExpression456{{"PgClassExpression[456∈13] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan - PgSelectSingle454 --> PgClassExpression456 - PgClassExpression459{{"PgClassExpression[459∈13] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan - PgSelectSingle454 --> PgClassExpression459 - PgInsertSingle380 --> PgClassExpression472 - First475{{"First[475∈13] ➊"}}:::plan - PgSelectRows476[["PgSelectRows[476∈13] ➊"]]:::plan - PgSelectRows476 --> First475 - PgSelect473 --> PgSelectRows476 - PgSelectSingle477{{"PgSelectSingle[477∈13] ➊
ᐸsingle_table_itemsᐳ"}}:::plan - First475 --> PgSelectSingle477 - PgClassExpression479{{"PgClassExpression[479∈13] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan - PgSelectSingle477 --> PgClassExpression479 - PgClassExpression482{{"PgClassExpression[482∈13] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan - PgSelectSingle477 --> PgClassExpression482 - List457{{"List[457∈14] ➊
ᐸ455,456ᐳ
ᐳSingleTableTopic"}}:::plan - Constant455 & PgClassExpression456 --> List457 - List461{{"List[461∈14] ➊
ᐸ460,456ᐳ
ᐳSingleTablePost"}}:::plan - Constant460 & PgClassExpression456 --> List461 - List464{{"List[464∈14] ➊
ᐸ463,456ᐳ
ᐳSingleTableDivider"}}:::plan - Constant463 & PgClassExpression456 --> List464 - List467{{"List[467∈14] ➊
ᐸ466,456ᐳ
ᐳSingleTableChecklist"}}:::plan - Constant466 & PgClassExpression456 --> List467 - List470{{"List[470∈14] ➊
ᐸ469,456ᐳ
ᐳSingleTableChecklistItem"}}:::plan - Constant469 & PgClassExpression456 --> List470 - Lambda458{{"Lambda[458∈14] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List457 --> Lambda458 - Lambda462{{"Lambda[462∈14] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List461 --> Lambda462 - Lambda465{{"Lambda[465∈14] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List464 --> Lambda465 - Lambda468{{"Lambda[468∈14] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List467 --> Lambda468 - Lambda471{{"Lambda[471∈14] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List470 --> Lambda471 - List480{{"List[480∈15] ➊
ᐸ455,479ᐳ
ᐳSingleTableTopic"}}:::plan - Constant455 & PgClassExpression479 --> List480 - List484{{"List[484∈15] ➊
ᐸ460,479ᐳ
ᐳSingleTablePost"}}:::plan - Constant460 & PgClassExpression479 --> List484 - List487{{"List[487∈15] ➊
ᐸ463,479ᐳ
ᐳSingleTableDivider"}}:::plan - Constant463 & PgClassExpression479 --> List487 - List490{{"List[490∈15] ➊
ᐸ466,479ᐳ
ᐳSingleTableChecklist"}}:::plan - Constant466 & PgClassExpression479 --> List490 - List493{{"List[493∈15] ➊
ᐸ469,479ᐳ
ᐳSingleTableChecklistItem"}}:::plan - Constant469 & PgClassExpression479 --> List493 - Lambda481{{"Lambda[481∈15] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List480 --> Lambda481 - Lambda485{{"Lambda[485∈15] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List484 --> Lambda485 - Lambda488{{"Lambda[488∈15] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List487 --> Lambda488 - Lambda491{{"Lambda[491∈15] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List490 --> Lambda491 - Lambda494{{"Lambda[494∈15] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List493 --> Lambda494 - List529{{"List[529∈16] ➊
ᐸ512,516,520,524,528ᐳ"}}:::plan - Object512{{"Object[512∈16] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object516{{"Object[516∈16] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object520{{"Object[520∈16] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object524{{"Object[524∈16] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object528{{"Object[528∈16] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object512 & Object516 & Object520 & Object524 & Object528 --> List529 - List558{{"List[558∈16] ➊
ᐸ541,545,549,553,557ᐳ"}}:::plan - Object541{{"Object[541∈16] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object545{{"Object[545∈16] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object549{{"Object[549∈16] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object553{{"Object[553∈16] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object557{{"Object[557∈16] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object541 & Object545 & Object549 & Object553 & Object557 --> List558 - PgInsertSingle500[["PgInsertSingle[500∈16] ➊
ᐸsingle_table_item_relation_composite_pks(child_id,parent_id)ᐳ"]]:::sideeffectplan - Object503{{"Object[503∈16] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - __Flag533[["__Flag[533∈16] ➊
ᐸ532, if(505), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - __Flag562[["__Flag[562∈16] ➊
ᐸ561, if(534), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - Object503 & __Flag533 & __Flag562 --> PgInsertSingle500 - Access501{{"Access[501∈16] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access502{{"Access[502∈16] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access501 & Access502 --> Object503 - Lambda510[["Lambda[510∈16] ➊"]]:::unbatchedplan - List511{{"List[511∈16] ➊
ᐸ626ᐳ"}}:::plan - Lambda510 & List511 --> Object512 - Lambda514[["Lambda[514∈16] ➊"]]:::unbatchedplan - Lambda514 & List511 --> Object516 - Lambda518[["Lambda[518∈16] ➊"]]:::unbatchedplan - Lambda518 & List511 --> Object520 - Lambda522[["Lambda[522∈16] ➊"]]:::unbatchedplan - Lambda522 & List511 --> Object524 - Lambda526[["Lambda[526∈16] ➊"]]:::unbatchedplan - Lambda526 & List511 --> Object528 - __Flag532[["__Flag[532∈16] ➊
ᐸ531, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition505{{"Condition[505∈16] ➊
ᐸexistsᐳ"}}:::plan - __Flag532 & Condition505 --> __Flag533 - Lambda539[["Lambda[539∈16] ➊"]]:::unbatchedplan - List540{{"List[540∈16] ➊
ᐸ627ᐳ"}}:::plan - Lambda539 & List540 --> Object541 - Lambda543[["Lambda[543∈16] ➊"]]:::unbatchedplan - Lambda543 & List540 --> Object545 - Lambda547[["Lambda[547∈16] ➊"]]:::unbatchedplan - Lambda547 & List540 --> Object549 - Lambda551[["Lambda[551∈16] ➊"]]:::unbatchedplan - Lambda551 & List540 --> Object553 - Lambda555[["Lambda[555∈16] ➊"]]:::unbatchedplan - Lambda555 & List540 --> Object557 - __Flag561[["__Flag[561∈16] ➊
ᐸ560, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition534{{"Condition[534∈16] ➊
ᐸexistsᐳ"}}:::plan - __Flag561 & Condition534 --> __Flag562 - __Value2 --> Access501 - __Value2 --> Access502 - Object504{{"Object[504∈16] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle500 --> Object504 - Constant623 --> Condition505 - Lambda506{{"Lambda[506∈16] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Constant623 --> Lambda506 - Lambda506 --> Lambda510 - Access626{{"Access[626∈16] ➊
ᐸ506.base64JSON.1ᐳ"}}:::plan - Access626 --> List511 - Lambda506 --> Lambda514 - Lambda506 --> Lambda518 - Lambda506 --> Lambda522 - Lambda506 --> Lambda526 - Lambda530{{"Lambda[530∈16] ➊"}}:::plan - List529 --> Lambda530 - Access531{{"Access[531∈16] ➊
ᐸ530.0ᐳ"}}:::plan - Lambda530 --> Access531 - Access531 --> __Flag532 - Constant625 --> Condition534 - Lambda535{{"Lambda[535∈16] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Constant625 --> Lambda535 - Lambda535 --> Lambda539 - Access627{{"Access[627∈16] ➊
ᐸ535.base64JSON.1ᐳ"}}:::plan - Access627 --> List540 - Lambda535 --> Lambda543 - Lambda535 --> Lambda547 - Lambda535 --> Lambda551 - Lambda535 --> Lambda555 - Lambda559{{"Lambda[559∈16] ➊"}}:::plan - List558 --> Lambda559 - Access560{{"Access[560∈16] ➊
ᐸ559.0ᐳ"}}:::plan - Lambda559 --> Access560 - Access560 --> __Flag561 - Lambda506 --> Access626 - Lambda535 --> Access627 - List566{{"List[566∈18] ➊
ᐸ563,564,565ᐳ"}}:::plan - PgClassExpression564{{"PgClassExpression[564∈18] ➊
ᐸ__single_t...parent_id”ᐳ"}}:::plan - PgClassExpression565{{"PgClassExpression[565∈18] ➊
ᐸ__single_t...”child_id”ᐳ"}}:::plan - Constant563 & PgClassExpression564 & PgClassExpression565 --> List566 - PgSelect569[["PgSelect[569∈18] ➊
ᐸsingle_table_itemsᐳ"]]:::plan - Object503 & PgClassExpression565 --> PgSelect569 - PgSelect594[["PgSelect[594∈18] ➊
ᐸsingle_table_itemsᐳ"]]:::plan - Object503 & PgClassExpression564 --> PgSelect594 - PgInsertSingle500 --> PgClassExpression564 - PgInsertSingle500 --> PgClassExpression565 - Lambda567{{"Lambda[567∈18] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List566 --> Lambda567 - First573{{"First[573∈18] ➊"}}:::plan - PgSelectRows574[["PgSelectRows[574∈18] ➊"]]:::plan - PgSelectRows574 --> First573 - PgSelect569 --> PgSelectRows574 - PgSelectSingle575{{"PgSelectSingle[575∈18] ➊
ᐸsingle_table_itemsᐳ"}}:::plan - First573 --> PgSelectSingle575 - PgClassExpression577{{"PgClassExpression[577∈18] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan - PgSelectSingle575 --> PgClassExpression577 - PgClassExpression580{{"PgClassExpression[580∈18] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan - PgSelectSingle575 --> PgClassExpression580 - First596{{"First[596∈18] ➊"}}:::plan - PgSelectRows597[["PgSelectRows[597∈18] ➊"]]:::plan - PgSelectRows597 --> First596 - PgSelect594 --> PgSelectRows597 - PgSelectSingle598{{"PgSelectSingle[598∈18] ➊
ᐸsingle_table_itemsᐳ"}}:::plan - First596 --> PgSelectSingle598 - PgClassExpression600{{"PgClassExpression[600∈18] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan - PgSelectSingle598 --> PgClassExpression600 - PgClassExpression603{{"PgClassExpression[603∈18] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan - PgSelectSingle598 --> PgClassExpression603 - List578{{"List[578∈19] ➊
ᐸ455,577ᐳ
ᐳSingleTableTopic"}}:::plan - Constant455 & PgClassExpression577 --> List578 - List582{{"List[582∈19] ➊
ᐸ460,577ᐳ
ᐳSingleTablePost"}}:::plan - Constant460 & PgClassExpression577 --> List582 - List585{{"List[585∈19] ➊
ᐸ463,577ᐳ
ᐳSingleTableDivider"}}:::plan - Constant463 & PgClassExpression577 --> List585 - List588{{"List[588∈19] ➊
ᐸ466,577ᐳ
ᐳSingleTableChecklist"}}:::plan - Constant466 & PgClassExpression577 --> List588 - List591{{"List[591∈19] ➊
ᐸ469,577ᐳ
ᐳSingleTableChecklistItem"}}:::plan - Constant469 & PgClassExpression577 --> List591 - Lambda579{{"Lambda[579∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List578 --> Lambda579 - Lambda583{{"Lambda[583∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List582 --> Lambda583 - Lambda586{{"Lambda[586∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List585 --> Lambda586 - Lambda589{{"Lambda[589∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List588 --> Lambda589 - Lambda592{{"Lambda[592∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List591 --> Lambda592 - List601{{"List[601∈20] ➊
ᐸ455,600ᐳ
ᐳSingleTableTopic"}}:::plan - Constant455 & PgClassExpression600 --> List601 - List605{{"List[605∈20] ➊
ᐸ460,600ᐳ
ᐳSingleTablePost"}}:::plan - Constant460 & PgClassExpression600 --> List605 - List608{{"List[608∈20] ➊
ᐸ463,600ᐳ
ᐳSingleTableDivider"}}:::plan - Constant463 & PgClassExpression600 --> List608 - List611{{"List[611∈20] ➊
ᐸ466,600ᐳ
ᐳSingleTableChecklist"}}:::plan - Constant466 & PgClassExpression600 --> List611 - List614{{"List[614∈20] ➊
ᐸ469,600ᐳ
ᐳSingleTableChecklistItem"}}:::plan - Constant469 & PgClassExpression600 --> List614 - Lambda602{{"Lambda[602∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List601 --> Lambda602 - Lambda606{{"Lambda[606∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List605 --> Lambda606 - Lambda609{{"Lambda[609∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List608 --> Lambda609 - Lambda612{{"Lambda[612∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List611 --> Lambda612 - Lambda615{{"Lambda[615∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List614 --> Lambda615 + Lambda377{{"Lambda[377∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List376 --> Lambda377 + Lambda380{{"Lambda[380∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List379 --> Lambda380 + Lambda383{{"Lambda[383∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List382 --> Lambda383 %% define steps subgraph "Buckets for mutations/v4/polymorphic.relay" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Condition16,Lambda17,List22,Condition45,Lambda46,List51,Constant74,Constant94,Constant104,Constant113,Constant122,Constant131,Constant258,Constant443,Constant455,Constant460,Constant463,Constant466,Constant469,Constant563,Access616,Constant617,Access618,Constant619,Constant623,Constant625 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 14, 17, 22, 16, 46, 51, 45, 74, 94, 104, 113, 122, 131

1: Lambda[21]
2: Object[23]
3: Lambda[25]
4: Object[27]
5: Lambda[29]
6: Object[31]
7: Lambda[33]
8: Object[35]
9: Lambda[37]
10: Object[39]
11: List[40]
12: Lambda[41]
13: Access[42]
14: __Flag[43]
15: __Flag[44]
16: Lambda[50]
17: Object[52]
18: Lambda[54]
19: Object[56]
20: Lambda[58]
21: Object[60]
22: Lambda[62]
23: Object[64]
24: Lambda[66]
25: Object[68]
26: List[69]
27: Lambda[70]
28: Access[71]
29: __Flag[72]
30: __Flag[73]
31: PgInsertSingle[11]
32:
ᐳ: Object[15]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,Access12,Access13,Object14,ApplyInput15,Constant17,Constant36,Constant46,Constant55,Constant64,Constant73,__InputObject132,__InputObject134,ApplyInput141,Constant143,__InputObject259,__InputObject261,ApplyInput268,Constant270,Constant281,Constant286,Constant289,Constant292,Constant295,__InputObject321,__InputObject323,ApplyInput330,Constant332,Constant384,Constant385,Constant386,Constant387 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 14, 15, 17, 36, 46, 55, 64, 73

1: PgInsertSingle[11]
2:
ᐳ: 16, 19, 18, 20, 21, 22, 77
3: PgSelect[23], PgSelect[78]
4: PgSelectRows[26], PgSelectRows[81]
ᐳ: 25, 27, 80, 82"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle11,Object15,Lambda21,Object23,Lambda25,Object27,Lambda29,Object31,Lambda33,Object35,Lambda37,Object39,List40,Lambda41,Access42,__Flag43,__Flag44,Lambda50,Object52,Lambda54,Object56,Lambda58,Object60,Lambda62,Object64,Lambda66,Object68,List69,Lambda70,Access71,__Flag72,__Flag73 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 11, 74, 14, 94, 104, 113, 122, 131

ROOT Object{1}ᐸ{result}ᐳ[15]"):::bucket + class Bucket1,PgInsertSingle11,Object16,PgClassExpression18,Access19,List20,Lambda21,PgClassExpression22,PgSelect23,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression77,PgSelect78,First80,PgSelectRows81,PgSelectSingle82 bucket1 + Bucket2("Bucket 2 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 11
Deps: 27, 14, 36, 46, 55, 64, 73
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: 28, 40
2: 29, 41, 50, 59, 68
3: 34, 44, 53, 62, 71
ᐳ: 33, 35, 37, 38, 39, 43, 45, 47, 48, 49, 52, 54, 56, 57, 58, 61, 63, 65, 66, 67, 70, 72, 74, 75, 76"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 11, 74, 14, 94, 104, 113, 122, 131

ROOT PgInsertSingle{1}ᐸrelational_item_relations(child_id,parent_id)ᐳ[11]
1:
ᐳ: 75, 78, 135, 76, 77
2: PgSelect[79], PgSelect[136]
3: PgSelectRows[84], PgSelectRows[139]
ᐳ: 83, 85, 86, 98, 138, 140, 141, 153"):::bucket + class Bucket2,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression37,List38,Lambda39,PgClassExpression40,PgSelect41,First43,PgSelectRows44,PgSelectSingle45,PgClassExpression47,List48,Lambda49,PgSelect50,First52,PgSelectRows53,PgSelectSingle54,PgClassExpression56,List57,Lambda58,PgSelect59,First61,PgSelectRows62,PgSelectSingle63,PgClassExpression65,List66,Lambda67,PgSelect68,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression74,List75,Lambda76 bucket2 + Bucket3("Bucket 3 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 11
Deps: 82, 14, 36, 46, 55, 64, 73
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: 83, 95
2: 84, 96, 105, 114, 123
3: 89, 99, 108, 117, 126
ᐳ: 88, 90, 92, 93, 94, 98, 100, 102, 103, 104, 107, 109, 111, 112, 113, 116, 118, 120, 121, 122, 125, 127, 129, 130, 131"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression75,List76,Lambda77,PgClassExpression78,PgSelect79,First83,PgSelectRows84,PgSelectSingle85,PgClassExpression86,PgClassExpression98,PgClassExpression135,PgSelect136,First138,PgSelectRows139,PgSelectSingle140,PgClassExpression141,PgClassExpression153 bucket3 - Bucket4("Bucket 4 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 14, 86, 94, 104, 113, 122, 131, 85, 98
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 87, 99, 108, 117, 126
2: 92, 102, 111, 120, 129
ᐳ: 91, 93, 95, 96, 97, 101, 103, 105, 106, 107, 110, 112, 114, 115, 116, 119, 121, 123, 124, 125, 128, 130, 132, 133, 134"):::bucket + class Bucket3,PgClassExpression83,PgSelect84,First88,PgSelectRows89,PgSelectSingle90,PgClassExpression92,List93,Lambda94,PgClassExpression95,PgSelect96,First98,PgSelectRows99,PgSelectSingle100,PgClassExpression102,List103,Lambda104,PgSelect105,First107,PgSelectRows108,PgSelectSingle109,PgClassExpression111,List112,Lambda113,PgSelect114,First116,PgSelectRows117,PgSelectSingle118,PgClassExpression120,List121,Lambda122,PgSelect123,First125,PgSelectRows126,PgSelectSingle127,PgClassExpression129,List130,Lambda131 bucket3 + Bucket4("Bucket 4 (mutationField)
Deps: 141, 2, 143, 36, 46, 55, 64, 73

1: Access[138]
2: Access[139]
3: Object[140]
4: PgInsertSingle[137]
5:
ᐳ: 142, 145, 144, 146, 147, 148
6: PgSelect[150], PgSelect[205]
7: PgSelectRows[153], PgSelectRows[208]
ᐳ: 152, 154, 207, 209"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect87,First91,PgSelectRows92,PgSelectSingle93,PgClassExpression95,List96,Lambda97,PgSelect99,First101,PgSelectRows102,PgSelectSingle103,PgClassExpression105,List106,Lambda107,PgSelect108,First110,PgSelectRows111,PgSelectSingle112,PgClassExpression114,List115,Lambda116,PgSelect117,First119,PgSelectRows120,PgSelectSingle121,PgClassExpression123,List124,Lambda125,PgSelect126,First128,PgSelectRows129,PgSelectSingle130,PgClassExpression132,List133,Lambda134 bucket4 - Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 14, 141, 94, 104, 113, 122, 131, 140, 153
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 142, 154, 163, 172, 181
2: 147, 157, 166, 175, 184
ᐳ: 146, 148, 150, 151, 152, 156, 158, 160, 161, 162, 165, 167, 169, 170, 171, 174, 176, 178, 179, 180, 183, 185, 187, 188, 189"):::bucket + class Bucket4,PgInsertSingle137,Access138,Access139,Object140,Object142,PgClassExpression144,Access145,PgClassExpression146,List147,Lambda148,PgSelect150,First152,PgSelectRows153,PgSelectSingle154,PgSelect205,First207,PgSelectRows208,PgSelectSingle209 bucket4 + Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 137
Deps: 154, 140, 36, 46, 55, 64, 73
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: 155, 167
2: 156, 168, 177, 186, 195
3: 161, 171, 180, 189, 198
ᐳ: 160, 162, 164, 165, 166, 170, 172, 174, 175, 176, 179, 181, 183, 184, 185, 188, 190, 192, 193, 194, 197, 199, 201, 202, 203"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect142,First146,PgSelectRows147,PgSelectSingle148,PgClassExpression150,List151,Lambda152,PgSelect154,First156,PgSelectRows157,PgSelectSingle158,PgClassExpression160,List161,Lambda162,PgSelect163,First165,PgSelectRows166,PgSelectSingle167,PgClassExpression169,List170,Lambda171,PgSelect172,First174,PgSelectRows175,PgSelectSingle176,PgClassExpression178,List179,Lambda180,PgSelect181,First183,PgSelectRows184,PgSelectSingle185,PgClassExpression187,List188,Lambda189 bucket5 - Bucket6("Bucket 6 (mutationField)
Deps: 2, 617, 619, 258, 94, 104, 113, 122, 131

1: Access[196]
2: Access[197]
3: Object[198]
4: Lambda[201]
5: Lambda[205]
6: Access[620]
7: List[206]
8: Object[207]
9: Lambda[209]
10: Object[211]
11: Lambda[213]
12: Object[215]
13: Lambda[217]
14: Object[219]
15: Lambda[221]
16: Object[223]
17: List[224]
18: Lambda[225]
19: Access[226]
20: __Flag[227]
21: Condition[200]
22: __Flag[228]
23: Lambda[230]
24: Lambda[234]
25: Access[621]
26: List[235]
27: Object[236]
28: Lambda[238]
29: Object[240]
30: Lambda[242]
31: Object[244]
32: Lambda[246]
33: Object[248]
34: Lambda[250]
35: Object[252]
36: List[253]
37: Lambda[254]
38: Access[255]
39: __Flag[256]
40: Condition[229]
41: __Flag[257]
42: PgInsertSingle[195]
43:
ᐳ: Object[199]"):::bucket + class Bucket5,PgClassExpression155,PgSelect156,First160,PgSelectRows161,PgSelectSingle162,PgClassExpression164,List165,Lambda166,PgClassExpression167,PgSelect168,First170,PgSelectRows171,PgSelectSingle172,PgClassExpression174,List175,Lambda176,PgSelect177,First179,PgSelectRows180,PgSelectSingle181,PgClassExpression183,List184,Lambda185,PgSelect186,First188,PgSelectRows189,PgSelectSingle190,PgClassExpression192,List193,Lambda194,PgSelect195,First197,PgSelectRows198,PgSelectSingle199,PgClassExpression201,List202,Lambda203 bucket5 + Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Parent side effect step: 137
Deps: 209, 140, 36, 46, 55, 64, 73
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1:
ᐳ: 210, 222
2: 211, 223, 232, 241, 250
3: 216, 226, 235, 244, 253
ᐳ: 215, 217, 219, 220, 221, 225, 227, 229, 230, 231, 234, 236, 238, 239, 240, 243, 245, 247, 248, 249, 252, 254, 256, 257, 258"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,PgInsertSingle195,Access196,Access197,Object198,Object199,Condition200,Lambda201,Lambda205,List206,Object207,Lambda209,Object211,Lambda213,Object215,Lambda217,Object219,Lambda221,Object223,List224,Lambda225,Access226,__Flag227,__Flag228,Condition229,Lambda230,Lambda234,List235,Object236,Lambda238,Object240,Lambda242,Object244,Lambda246,Object248,Lambda250,Object252,List253,Lambda254,Access255,__Flag256,__Flag257,Access620,Access621 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 199, 195, 258, 198, 94, 104, 113, 122, 131

ROOT Object{6}ᐸ{result}ᐳ[199]"):::bucket + class Bucket6,PgClassExpression210,PgSelect211,First215,PgSelectRows216,PgSelectSingle217,PgClassExpression219,List220,Lambda221,PgClassExpression222,PgSelect223,First225,PgSelectRows226,PgSelectSingle227,PgClassExpression229,List230,Lambda231,PgSelect232,First234,PgSelectRows235,PgSelectSingle236,PgClassExpression238,List239,Lambda240,PgSelect241,First243,PgSelectRows244,PgSelectSingle245,PgClassExpression247,List248,Lambda249,PgSelect250,First252,PgSelectRows253,PgSelectSingle254,PgClassExpression256,List257,Lambda258 bucket6 + Bucket7("Bucket 7 (mutationField)
Deps: 268, 2, 270, 281, 286, 289, 292, 295

1: Access[265]
2: Access[266]
3: Object[267]
4: PgInsertSingle[264]
5:
ᐳ: 269, 272, 271, 273, 274, 275, 298
6: PgSelect[276], PgSelect[299]
7: PgSelectRows[279], PgSelectRows[302]
ᐳ: 278, 280, 301, 303"):::bucket classDef bucket7 stroke:#808000 - class Bucket7 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 195, 258, 198, 94, 104, 113, 122, 131

ROOT PgInsertSingle{6}ᐸrelational_item_relation_composite_pks(child_id,parent_id)ᐳ[195]
1:
ᐳ: 259, 260, 261, 262
2: PgSelect[264], PgSelect[321]
3: PgSelectRows[269], PgSelectRows[324]
ᐳ: 268, 270, 271, 283, 323, 325, 326, 338"):::bucket + class Bucket7,PgInsertSingle264,Access265,Access266,Object267,Object269,PgClassExpression271,Access272,List273,Lambda274,PgClassExpression275,PgSelect276,First278,PgSelectRows279,PgSelectSingle280,PgClassExpression298,PgSelect299,First301,PgSelectRows302,PgSelectSingle303 bucket7 + Bucket8("Bucket 8 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Parent side effect step: 264
Deps: 280, 281, 286, 289, 292, 295
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression259,PgClassExpression260,List261,Lambda262,PgSelect264,First268,PgSelectRows269,PgSelectSingle270,PgClassExpression271,PgClassExpression283,PgSelect321,First323,PgSelectRows324,PgSelectSingle325,PgClassExpression326,PgClassExpression338 bucket8 - Bucket9("Bucket 9 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 198, 271, 94, 104, 113, 122, 131, 270, 283
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 272, 284, 293, 302, 311
2: 277, 287, 296, 305, 314
ᐳ: 276, 278, 280, 281, 282, 286, 288, 290, 291, 292, 295, 297, 299, 300, 301, 304, 306, 308, 309, 310, 313, 315, 317, 318, 319"):::bucket + class Bucket8,PgClassExpression282,List283,Lambda284,PgClassExpression285,List287,Lambda288,List290,Lambda291,List293,Lambda294,List296,Lambda297 bucket8 + Bucket9("Bucket 9 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Parent side effect step: 264
Deps: 303, 281, 286, 289, 292, 295
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,PgSelect272,First276,PgSelectRows277,PgSelectSingle278,PgClassExpression280,List281,Lambda282,PgSelect284,First286,PgSelectRows287,PgSelectSingle288,PgClassExpression290,List291,Lambda292,PgSelect293,First295,PgSelectRows296,PgSelectSingle297,PgClassExpression299,List300,Lambda301,PgSelect302,First304,PgSelectRows305,PgSelectSingle306,PgClassExpression308,List309,Lambda310,PgSelect311,First313,PgSelectRows314,PgSelectSingle315,PgClassExpression317,List318,Lambda319 bucket9 - Bucket10("Bucket 10 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 198, 326, 94, 104, 113, 122, 131, 325, 338
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 327, 339, 348, 357, 366
2: 332, 342, 351, 360, 369
ᐳ: 331, 333, 335, 336, 337, 341, 343, 345, 346, 347, 350, 352, 354, 355, 356, 359, 361, 363, 364, 365, 368, 370, 372, 373, 374"):::bucket + class Bucket9,PgClassExpression305,List306,Lambda307,PgClassExpression308,List310,Lambda311,List313,Lambda314,List316,Lambda317,List319,Lambda320 bucket9 + Bucket10("Bucket 10 (mutationField)
Deps: 330, 2, 332, 281, 286, 289, 292, 295

1: Access[327]
2: Access[328]
3: Object[329]
4: PgInsertSingle[326]
5:
ᐳ: 331, 334, 333, 335, 336, 337
6: PgSelect[339], PgSelect[362]
7: PgSelectRows[342], PgSelectRows[365]
ᐳ: 341, 343, 364, 366"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,PgSelect327,First331,PgSelectRows332,PgSelectSingle333,PgClassExpression335,List336,Lambda337,PgSelect339,First341,PgSelectRows342,PgSelectSingle343,PgClassExpression345,List346,Lambda347,PgSelect348,First350,PgSelectRows351,PgSelectSingle352,PgClassExpression354,List355,Lambda356,PgSelect357,First359,PgSelectRows360,PgSelectSingle361,PgClassExpression363,List364,Lambda365,PgSelect366,First368,PgSelectRows369,PgSelectSingle370,PgClassExpression372,List373,Lambda374 bucket10 - Bucket11("Bucket 11 (mutationField)
Deps: 2, 623, 625, 443, 455, 460, 463, 466, 469

1: Access[381]
2: Access[382]
3: Object[383]
4: Lambda[386]
5: Lambda[390]
6: Access[622]
7: List[391]
8: Object[392]
9: Lambda[394]
10: Object[396]
11: Lambda[398]
12: Object[400]
13: Lambda[402]
14: Object[404]
15: Lambda[406]
16: Object[408]
17: List[409]
18: Lambda[410]
19: Access[411]
20: __Flag[412]
21: Condition[385]
22: __Flag[413]
23: Lambda[415]
24: Lambda[419]
25: Access[624]
26: List[420]
27: Object[421]
28: Lambda[423]
29: Object[425]
30: Lambda[427]
31: Object[429]
32: Lambda[431]
33: Object[433]
34: Lambda[435]
35: Object[437]
36: List[438]
37: Lambda[439]
38: Access[440]
39: __Flag[441]
40: Condition[414]
41: __Flag[442]
42: PgInsertSingle[380]
43:
ᐳ: Object[384]"):::bucket + class Bucket10,PgInsertSingle326,Access327,Access328,Object329,Object331,PgClassExpression333,Access334,PgClassExpression335,List336,Lambda337,PgSelect339,First341,PgSelectRows342,PgSelectSingle343,PgSelect362,First364,PgSelectRows365,PgSelectSingle366 bucket10 + Bucket11("Bucket 11 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Parent side effect step: 326
Deps: 343, 281, 286, 289, 292, 295
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11,PgInsertSingle380,Access381,Access382,Object383,Object384,Condition385,Lambda386,Lambda390,List391,Object392,Lambda394,Object396,Lambda398,Object400,Lambda402,Object404,Lambda406,Object408,List409,Lambda410,Access411,__Flag412,__Flag413,Condition414,Lambda415,Lambda419,List420,Object421,Lambda423,Object425,Lambda427,Object429,Lambda431,Object433,Lambda435,Object437,List438,Lambda439,Access440,__Flag441,__Flag442,Access622,Access624 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 384, 380, 443, 383, 455, 460, 463, 466, 469

ROOT Object{11}ᐸ{result}ᐳ[384]"):::bucket + class Bucket11,PgClassExpression345,List346,Lambda347,PgClassExpression348,List350,Lambda351,List353,Lambda354,List356,Lambda357,List359,Lambda360 bucket11 + Bucket12("Bucket 12 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Parent side effect step: 326
Deps: 366, 281, 286, 289, 292, 295
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 380, 443, 383, 455, 460, 463, 466, 469

ROOT PgInsertSingle{11}ᐸsingle_table_item_relations(child_id,parent_id)ᐳ[380]
1:
ᐳ: 444, 447, 472, 445, 446
2: PgSelect[448], PgSelect[473]
3: PgSelectRows[453], PgSelectRows[476]
ᐳ: 452, 454, 456, 459, 475, 477, 479, 482"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,PgClassExpression444,List445,Lambda446,PgClassExpression447,PgSelect448,First452,PgSelectRows453,PgSelectSingle454,PgClassExpression456,PgClassExpression459,PgClassExpression472,PgSelect473,First475,PgSelectRows476,PgSelectSingle477,PgClassExpression479,PgClassExpression482 bucket13 - Bucket14("Bucket 14 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 455, 456, 460, 463, 466, 469, 454, 459
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,List457,Lambda458,List461,Lambda462,List464,Lambda465,List467,Lambda468,List470,Lambda471 bucket14 - Bucket15("Bucket 15 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 455, 479, 460, 463, 466, 469, 477, 482
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15,List480,Lambda481,List484,Lambda485,List487,Lambda488,List490,Lambda491,List493,Lambda494 bucket15 - Bucket16("Bucket 16 (mutationField)
Deps: 2, 623, 625, 563, 455, 460, 463, 466, 469

1: Access[501]
2: Access[502]
3: Object[503]
4: Lambda[506]
5: Lambda[510]
6: Access[626]
7: List[511]
8: Object[512]
9: Lambda[514]
10: Object[516]
11: Lambda[518]
12: Object[520]
13: Lambda[522]
14: Object[524]
15: Lambda[526]
16: Object[528]
17: List[529]
18: Lambda[530]
19: Access[531]
20: __Flag[532]
21: Condition[505]
22: __Flag[533]
23: Lambda[535]
24: Lambda[539]
25: Access[627]
26: List[540]
27: Object[541]
28: Lambda[543]
29: Object[545]
30: Lambda[547]
31: Object[549]
32: Lambda[551]
33: Object[553]
34: Lambda[555]
35: Object[557]
36: List[558]
37: Lambda[559]
38: Access[560]
39: __Flag[561]
40: Condition[534]
41: __Flag[562]
42: PgInsertSingle[500]
43:
ᐳ: Object[504]"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16,PgInsertSingle500,Access501,Access502,Object503,Object504,Condition505,Lambda506,Lambda510,List511,Object512,Lambda514,Object516,Lambda518,Object520,Lambda522,Object524,Lambda526,Object528,List529,Lambda530,Access531,__Flag532,__Flag533,Condition534,Lambda535,Lambda539,List540,Object541,Lambda543,Object545,Lambda547,Object549,Lambda551,Object553,Lambda555,Object557,List558,Lambda559,Access560,__Flag561,__Flag562,Access626,Access627 bucket16 - Bucket17("Bucket 17 (nullableBoundary)
Deps: 504, 500, 563, 503, 455, 460, 463, 466, 469

ROOT Object{16}ᐸ{result}ᐳ[504]"):::bucket - classDef bucket17 stroke:#696969 - class Bucket17 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 500, 563, 503, 455, 460, 463, 466, 469

ROOT PgInsertSingle{16}ᐸsingle_table_item_relation_composite_pks(child_id,parent_id)ᐳ[500]
1:
ᐳ: 564, 565, 566, 567
2: PgSelect[569], PgSelect[594]
3: PgSelectRows[574], PgSelectRows[597]
ᐳ: 573, 575, 577, 580, 596, 598, 600, 603"):::bucket - classDef bucket18 stroke:#00bfff - class Bucket18,PgClassExpression564,PgClassExpression565,List566,Lambda567,PgSelect569,First573,PgSelectRows574,PgSelectSingle575,PgClassExpression577,PgClassExpression580,PgSelect594,First596,PgSelectRows597,PgSelectSingle598,PgClassExpression600,PgClassExpression603 bucket18 - Bucket19("Bucket 19 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 455, 577, 460, 463, 466, 469, 575, 580
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket - classDef bucket19 stroke:#7f007f - class Bucket19,List578,Lambda579,List582,Lambda583,List585,Lambda586,List588,Lambda589,List591,Lambda592 bucket19 - Bucket20("Bucket 20 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 455, 600, 460, 463, 466, 469, 598, 603
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket - classDef bucket20 stroke:#ffa500 - class Bucket20,List601,Lambda602,List605,Lambda606,List608,Lambda609,List611,Lambda612,List614,Lambda615 bucket20 - Bucket0 --> Bucket1 & Bucket6 & Bucket11 & Bucket16 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 & Bucket10 - Bucket11 --> Bucket12 - Bucket12 --> Bucket13 - Bucket13 --> Bucket14 & Bucket15 - Bucket16 --> Bucket17 - Bucket17 --> Bucket18 - Bucket18 --> Bucket19 & Bucket20 + class Bucket12,PgClassExpression368,List369,Lambda370,PgClassExpression371,List373,Lambda374,List376,Lambda377,List379,Lambda380,List382,Lambda383 bucket12 + Bucket0 --> Bucket1 & Bucket4 & Bucket7 & Bucket10 + Bucket1 --> Bucket2 & Bucket3 + Bucket4 --> Bucket5 & Bucket6 + Bucket7 --> Bucket8 & Bucket9 + Bucket10 --> Bucket11 & Bucket12 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/procedure-mutation.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/procedure-mutation.mermaid index 98b338a400..9269a0a8cc 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/procedure-mutation.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/procedure-mutation.mermaid @@ -9,1241 +9,1259 @@ graph TD %% plan dependencies + __InputObject269{{"__InputObject[269∈0] ➊"}}:::plan + Constant697{{"Constant[697∈0] ➊
ᐸ419ᐳ"}}:::plan + Constant698{{"Constant[698∈0] ➊
ᐸ'easy cheesy baked potatoes'ᐳ"}}:::plan + Constant699{{"Constant[699∈0] ➊
ᐸ'red'ᐳ"}}:::plan + Constant700{{"Constant[700∈0] ➊
ᐸ'FOO_BAR'ᐳ"}}:::plan + Constant701{{"Constant[701∈0] ➊
ᐸ''ᐳ"}}:::plan + __InputObject275{{"__InputObject[275∈0] ➊"}}:::plan + Constant702{{"Constant[702∈0] ➊
ᐸ8ᐳ"}}:::plan + Constant697 & Constant698 & Constant699 & Constant700 & Constant701 & __InputObject275 & Constant702 --> __InputObject269 + __InputObject302{{"__InputObject[302∈0] ➊"}}:::plan + __InputObject308{{"__InputObject[308∈0] ➊"}}:::plan + Constant697 & Constant698 & Constant699 & Constant700 & Constant701 & __InputObject308 & Constant702 --> __InputObject302 + __InputObject335{{"__InputObject[335∈0] ➊"}}:::plan + __InputObject341{{"__InputObject[341∈0] ➊"}}:::plan + Constant697 & Constant698 & Constant699 & Constant700 & Constant701 & __InputObject341 & Constant702 --> __InputObject335 + __InputObject599{{"__InputObject[599∈0] ➊"}}:::plan + Constant711{{"Constant[711∈0] ➊
ᐸ'BAR_FOO'ᐳ"}}:::plan + __InputObject605{{"__InputObject[605∈0] ➊"}}:::plan + Constant697 & Constant698 & Constant699 & Constant711 & Constant701 & __InputObject605 & Constant702 --> __InputObject599 + __InputObject241{{"__InputObject[241∈0] ➊"}}:::plan + Constant693{{"Constant[693∈0] ➊
ᐸ'50'ᐳ"}}:::plan + Constant694{{"Constant[694∈0] ➊
ᐸfalseᐳ"}}:::plan + Constant695{{"Constant[695∈0] ➊
ᐸ'xyz'ᐳ"}}:::plan + Constant246{{"Constant[246∈0] ➊
ᐸ[ 1, 2, 3 ]ᐳ"}}:::plan + Constant696{{"Constant[696∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan + __InputObject248{{"__InputObject[248∈0] ➊"}}:::plan + Constant693 & Constant694 & Constant695 & Constant246 & Constant696 & __InputObject248 --> __InputObject241 + __InputObject553{{"__InputObject[553∈0] ➊"}}:::plan + Constant707{{"Constant[707∈0] ➊
ᐸ15ᐳ"}}:::plan + Constant708{{"Constant[708∈0] ➊
ᐸ'headline_'ᐳ"}}:::plan + Constant709{{"Constant[709∈0] ➊
ᐸ'body'ᐳ"}}:::plan + Constant707 & Constant708 & Constant709 --> __InputObject553 + __InputObject103{{"__InputObject[103∈0] ➊"}}:::plan + Constant686{{"Constant[686∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant687{{"Constant[687∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant686 & Constant687 --> __InputObject103 + __InputObject119{{"__InputObject[119∈0] ➊"}}:::plan + Constant688{{"Constant[688∈0] ➊
ᐸ'hello'ᐳ"}}:::plan + Constant688 --> __InputObject119 + Constant687 -- 2 --> __InputObject119 + __InputObject135{{"__InputObject[135∈0] ➊"}}:::plan + Constant689{{"Constant[689∈0] ➊
ᐸ'world'ᐳ"}}:::plan + Constant690{{"Constant[690∈0] ➊
ᐸ5ᐳ"}}:::plan + Constant689 & Constant690 --> __InputObject135 + __InputObject151{{"__InputObject[151∈0] ➊"}}:::plan + Constant691{{"Constant[691∈0] ➊
ᐸ3ᐳ"}}:::plan + Constant686 & Constant691 --> __InputObject151 + __InputObject166{{"__InputObject[166∈0] ➊"}}:::plan + Constant686 & Constant691 --> __InputObject166 + __InputObject181{{"__InputObject[181∈0] ➊"}}:::plan + Constant692{{"Constant[692∈0] ➊
ᐸ0ᐳ"}}:::plan + Constant692 & Constant686 --> __InputObject181 + __InputObject196{{"__InputObject[196∈0] ➊"}}:::plan + Constant686 -- 2 --> __InputObject196 + __InputObject211{{"__InputObject[211∈0] ➊"}}:::plan + Constant686 & Constant687 --> __InputObject211 + __InputObject226{{"__InputObject[226∈0] ➊"}}:::plan + Constant690 & Constant687 --> __InputObject226 + __InputObject456{{"__InputObject[456∈0] ➊"}}:::plan + Constant704{{"Constant[704∈0] ➊
ᐸ6ᐳ"}}:::plan + Constant690 & Constant704 --> __InputObject456 + __InputObject551{{"__InputObject[551∈0] ➊"}}:::plan + Constant710{{"Constant[710∈0] ➊
ᐸ'test'ᐳ"}}:::plan + __InputObject553 & Constant710 --> __InputObject551 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant680{{"Constant[680∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan + Constant680 --> __InputObject6 Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 + __InputObject20{{"__InputObject[20∈0] ➊"}}:::plan + Constant681{{"Constant[681∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan + Constant681 --> __InputObject20 + __InputObject34{{"__InputObject[34∈0] ➊"}}:::plan + Constant682{{"Constant[682∈0] ➊
ᐸ[ { amount: '44' }, { amount: null } ]ᐳ"}}:::plan + Constant682 --> __InputObject34 + __InputObject48{{"__InputObject[48∈0] ➊"}}:::plan + Constant683{{"Constant[683∈0] ➊
ᐸ[ { amount: '44' }, { amount: null } ]ᐳ"}}:::plan + Constant683 --> __InputObject48 + __InputObject62{{"__InputObject[62∈0] ➊"}}:::plan + Constant684{{"Constant[684∈0] ➊
ᐸ[ { amount: '44' }, { amount: null } ]ᐳ"}}:::plan + Constant684 --> __InputObject62 + __InputObject89{{"__InputObject[89∈0] ➊"}}:::plan + Constant685{{"Constant[685∈0] ➊
ᐸ[ { amount: '44' }, { amount: null } ]ᐳ"}}:::plan + Constant685 --> __InputObject89 + __InputObject249{{"__InputObject[249∈0] ➊"}}:::plan + __InputObject252{{"__InputObject[252∈0] ➊"}}:::plan + __InputObject249 & __InputObject252 --> __InputObject248 + Constant686 & Constant694 --> __InputObject249 + Constant690 & Constant694 --> __InputObject252 + __InputObject267{{"__InputObject[267∈0] ➊"}}:::plan + __InputObject269 --> __InputObject267 + Constant690 --> __InputObject275 + __InputObject300{{"__InputObject[300∈0] ➊"}}:::plan + __InputObject302 --> __InputObject300 + Constant690 --> __InputObject308 + __InputObject333{{"__InputObject[333∈0] ➊"}}:::plan + __InputObject335 --> __InputObject333 + Constant690 --> __InputObject341 + __InputObject366{{"__InputObject[366∈0] ➊"}}:::plan + Constant690 --> __InputObject366 + __InputObject405{{"__InputObject[405∈0] ➊"}}:::plan + Constant703{{"Constant[703∈0] ➊
ᐸ-1ᐳ"}}:::plan + Constant703 --> __InputObject405 + __InputObject496{{"__InputObject[496∈0] ➊"}}:::plan + Constant498{{"Constant[498∈0] ➊
ᐸnullᐳ"}}:::plan + Constant498 --> __InputObject496 + __InputObject510{{"__InputObject[510∈0] ➊"}}:::plan + Constant706{{"Constant[706∈0] ➊
ᐸ'0123456789abcde'ᐳ"}}:::plan + Constant706 --> __InputObject510 + __InputObject524{{"__InputObject[524∈0] ➊"}}:::plan + Constant526{{"Constant[526∈0] ➊
ᐸ[ §{ id: 7, headline: 'headline', body: 'body', authorId: 90ᐳ"}}:::plan + Constant526 --> __InputObject524 + __InputObject597{{"__InputObject[597∈0] ➊"}}:::plan + __InputObject599 --> __InputObject597 + Constant690 --> __InputObject605 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 + PgFromExpression13{{"PgFromExpression[13∈0] ➊"}}:::plan + Constant680 --> PgFromExpression13 + ApplyInput19{{"ApplyInput[19∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput19 + ApplyInput33{{"ApplyInput[33∈0] ➊"}}:::plan + __InputObject20 --> ApplyInput33 + ApplyInput47{{"ApplyInput[47∈0] ➊"}}:::plan + __InputObject34 --> ApplyInput47 + ApplyInput61{{"ApplyInput[61∈0] ➊"}}:::plan + __InputObject48 --> ApplyInput61 + ApplyInput75{{"ApplyInput[75∈0] ➊"}}:::plan + __InputObject62 --> ApplyInput75 + __InputObject76{{"__InputObject[76∈0] ➊"}}:::plan + ApplyInput88{{"ApplyInput[88∈0] ➊"}}:::plan + __InputObject76 --> ApplyInput88 + ApplyInput102{{"ApplyInput[102∈0] ➊"}}:::plan + __InputObject89 --> ApplyInput102 + ApplyInput117{{"ApplyInput[117∈0] ➊"}}:::plan + __InputObject103 --> ApplyInput117 + ApplyInput133{{"ApplyInput[133∈0] ➊"}}:::plan + __InputObject119 --> ApplyInput133 + ApplyInput149{{"ApplyInput[149∈0] ➊"}}:::plan + __InputObject135 --> ApplyInput149 + ApplyInput165{{"ApplyInput[165∈0] ➊"}}:::plan + __InputObject151 --> ApplyInput165 + ApplyInput180{{"ApplyInput[180∈0] ➊"}}:::plan + __InputObject166 --> ApplyInput180 + ApplyInput195{{"ApplyInput[195∈0] ➊"}}:::plan + __InputObject181 --> ApplyInput195 + ApplyInput210{{"ApplyInput[210∈0] ➊"}}:::plan + __InputObject196 --> ApplyInput210 + ApplyInput225{{"ApplyInput[225∈0] ➊"}}:::plan + __InputObject211 --> ApplyInput225 + ApplyInput240{{"ApplyInput[240∈0] ➊"}}:::plan + __InputObject226 --> ApplyInput240 + BakedInput255{{"BakedInput[255∈0] ➊"}}:::plan + Constant246 --> BakedInput255 + ApplyInput266{{"ApplyInput[266∈0] ➊"}}:::plan + __InputObject241 --> ApplyInput266 + BakedInput278{{"BakedInput[278∈0] ➊"}}:::plan + __InputObject269 --> BakedInput278 + ApplyInput288{{"ApplyInput[288∈0] ➊"}}:::plan + __InputObject267 --> ApplyInput288 + BakedInput311{{"BakedInput[311∈0] ➊"}}:::plan + __InputObject302 --> BakedInput311 + ApplyInput318{{"ApplyInput[318∈0] ➊"}}:::plan + __InputObject300 --> ApplyInput318 + BakedInput344{{"BakedInput[344∈0] ➊"}}:::plan + __InputObject335 --> BakedInput344 + ApplyInput351{{"ApplyInput[351∈0] ➊"}}:::plan + __InputObject333 --> ApplyInput351 + ApplyInput378{{"ApplyInput[378∈0] ➊"}}:::plan + __InputObject366 --> ApplyInput378 + ApplyInput417{{"ApplyInput[417∈0] ➊"}}:::plan + __InputObject405 --> ApplyInput417 + __InputObject444{{"__InputObject[444∈0] ➊"}}:::plan + ApplyInput451{{"ApplyInput[451∈0] ➊"}}:::plan + __InputObject444 --> ApplyInput451 + ApplyInput466{{"ApplyInput[466∈0] ➊"}}:::plan + __InputObject456 --> ApplyInput466 + __InputObject471{{"__InputObject[471∈0] ➊"}}:::plan + Constant705{{"Constant[705∈0] ➊
ᐸ'x'ᐳ"}}:::plan + Constant705 --> __InputObject471 + ApplyInput482{{"ApplyInput[482∈0] ➊"}}:::plan + __InputObject471 --> ApplyInput482 + __InputObject484{{"__InputObject[484∈0] ➊"}}:::plan + ApplyInput495{{"ApplyInput[495∈0] ➊"}}:::plan + __InputObject484 --> ApplyInput495 + ApplyInput509{{"ApplyInput[509∈0] ➊"}}:::plan + __InputObject496 --> ApplyInput509 + ApplyInput523{{"ApplyInput[523∈0] ➊"}}:::plan + __InputObject510 --> ApplyInput523 + BakedInput527{{"BakedInput[527∈0] ➊"}}:::plan + Constant526 --> BakedInput527 + ApplyInput534{{"ApplyInput[534∈0] ➊"}}:::plan + __InputObject524 --> ApplyInput534 + BakedInput558{{"BakedInput[558∈0] ➊"}}:::plan + __InputObject553 --> BakedInput558 + ApplyInput568{{"ApplyInput[568∈0] ➊"}}:::plan + __InputObject551 --> ApplyInput568 + __InputObject571{{"__InputObject[571∈0] ➊"}}:::plan + ApplyInput581{{"ApplyInput[581∈0] ➊"}}:::plan + __InputObject571 --> ApplyInput581 + __InputObject584{{"__InputObject[584∈0] ➊"}}:::plan + ApplyInput591{{"ApplyInput[591∈0] ➊"}}:::plan + __InputObject584 --> ApplyInput591 + BakedInput608{{"BakedInput[608∈0] ➊"}}:::plan + __InputObject599 --> BakedInput608 + ApplyInput615{{"ApplyInput[615∈0] ➊"}}:::plan + __InputObject597 --> ApplyInput615 + __InputObject630{{"__InputObject[630∈0] ➊"}}:::plan + ApplyInput641{{"ApplyInput[641∈0] ➊"}}:::plan + __InputObject630 --> ApplyInput641 + __InputObject643{{"__InputObject[643∈0] ➊"}}:::plan + ApplyInput654{{"ApplyInput[654∈0] ➊"}}:::plan + __InputObject643 --> ApplyInput654 + __InputObject662{{"__InputObject[662∈0] ➊"}}:::plan + ApplyInput669{{"ApplyInput[669∈0] ➊"}}:::plan + __InputObject662 --> ApplyInput669 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant7{{"Constant[7∈0] ➊
ᐸundefinedᐳ"}}:::plan - Constant120{{"Constant[120∈0] ➊
ᐸnullᐳ"}}:::plan - Constant345{{"Constant[345∈0] ➊
ᐸ'posts'ᐳ"}}:::plan - Constant677{{"Constant[677∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan - Constant678{{"Constant[678∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan - Constant679{{"Constant[679∈0] ➊
ᐸ[ { amount: '44' }, { amount: null } ]ᐳ"}}:::plan - Constant680{{"Constant[680∈0] ➊
ᐸ[ { amount: '44' }, { amount: null } ]ᐳ"}}:::plan - Constant681{{"Constant[681∈0] ➊
ᐸ[ { amount: '44' }, { amount: null } ]ᐳ"}}:::plan - Constant682{{"Constant[682∈0] ➊
ᐸ[ { amount: '44' }, { amount: null } ]ᐳ"}}:::plan - Constant683{{"Constant[683∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant684{{"Constant[684∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant685{{"Constant[685∈0] ➊
ᐸ'hello'ᐳ"}}:::plan - Constant686{{"Constant[686∈0] ➊
ᐸ'world'ᐳ"}}:::plan - Constant687{{"Constant[687∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant688{{"Constant[688∈0] ➊
ᐸ3ᐳ"}}:::plan - Constant689{{"Constant[689∈0] ➊
ᐸ0ᐳ"}}:::plan - Constant690{{"Constant[690∈0] ➊
ᐸ'50'ᐳ"}}:::plan - Constant691{{"Constant[691∈0] ➊
ᐸfalseᐳ"}}:::plan - Constant692{{"Constant[692∈0] ➊
ᐸ'xyz'ᐳ"}}:::plan - Constant693{{"Constant[693∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan - Constant700{{"Constant[700∈0] ➊
ᐸ-1ᐳ"}}:::plan - Constant701{{"Constant[701∈0] ➊
ᐸ6ᐳ"}}:::plan - Constant702{{"Constant[702∈0] ➊
ᐸ'x'ᐳ"}}:::plan - Constant704{{"Constant[704∈0] ➊
ᐸ'0123456789abcde'ᐳ"}}:::plan - Constant715{{"Constant[715∈0] ➊
ᐸ'test'ᐳ"}}:::plan - Constant722{{"Constant[722∈0] ➊
ᐸ[ 1, 2, 3 ]ᐳ"}}:::plan - Constant728{{"Constant[728∈0] ➊
ᐸ§{ id: 15, headline: 'headline_', body: 'body' }ᐳ"}}:::plan - Constant729{{"Constant[729∈0] ➊
ᐸ§{ start: §{ value: 1, inclusive: false }, end: §{ value: 5,ᐳ"}}:::plan - Constant730{{"Constant[730∈0] ➊
ᐸ§{ a: 419, b: 'easy cheesy baked potatoes', c: 'red', e: 'FOᐳ"}}:::plan - Constant736{{"Constant[736∈0] ➊
ᐸ§{ a: 419, b: 'easy cheesy baked potatoes', c: 'red', e: 'BAᐳ"}}:::plan - Constant740{{"Constant[740∈0] ➊
ᐸ[ §{ id: 7, headline: 'headline', body: 'body', author_id: 9ᐳ"}}:::plan + Constant379{{"Constant[379∈0] ➊
ᐸ'posts'ᐳ"}}:::plan PgSelect9[["PgSelect[9∈1] ➊
ᐸjson_identity_mutation(mutation)ᐳ"]]:::sideeffectplan - Object12 & Constant677 --> PgSelect9 - First13{{"First[13∈1] ➊"}}:::plan - PgSelectRows14[["PgSelectRows[14∈1] ➊"]]:::plan - PgSelectRows14 --> First13 - PgSelect9 --> PgSelectRows14 - PgSelectSingle15{{"PgSelectSingle[15∈1] ➊
ᐸjson_identity_mutationᐳ"}}:::plan - First13 --> PgSelectSingle15 - PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__json_ide...tation__.vᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression16 - Object17{{"Object[17∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression16 --> Object17 - PgSelect21[["PgSelect[21∈3] ➊
ᐸjsonb_identity_mutation(mutation)ᐳ"]]:::sideeffectplan - Object24{{"Object[24∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object24 & Constant678 --> PgSelect21 - Access22{{"Access[22∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access23{{"Access[23∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access22 & Access23 --> Object24 - __Value2 --> Access22 - __Value2 --> Access23 - First25{{"First[25∈3] ➊"}}:::plan - PgSelectRows26[["PgSelectRows[26∈3] ➊"]]:::plan - PgSelectRows26 --> First25 - PgSelect21 --> PgSelectRows26 - PgSelectSingle27{{"PgSelectSingle[27∈3] ➊
ᐸjsonb_identity_mutationᐳ"}}:::plan - First25 --> PgSelectSingle27 - PgClassExpression28{{"PgClassExpression[28∈3] ➊
ᐸ__jsonb_id...tation__.vᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - Object29{{"Object[29∈3] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression28 --> Object29 - PgSelect33[["PgSelect[33∈5] ➊
ᐸjson_identity_mutation(mutation)ᐳ"]]:::sideeffectplan - Object36{{"Object[36∈5] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object36 & Constant679 --> PgSelect33 - Access34{{"Access[34∈5] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access35{{"Access[35∈5] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access34 & Access35 --> Object36 - __Value2 --> Access34 - __Value2 --> Access35 - First37{{"First[37∈5] ➊"}}:::plan - PgSelectRows38[["PgSelectRows[38∈5] ➊"]]:::plan - PgSelectRows38 --> First37 - PgSelect33 --> PgSelectRows38 - PgSelectSingle39{{"PgSelectSingle[39∈5] ➊
ᐸjson_identity_mutationᐳ"}}:::plan - First37 --> PgSelectSingle39 - PgClassExpression40{{"PgClassExpression[40∈5] ➊
ᐸ__json_ide...tation__.vᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression40 - Object41{{"Object[41∈5] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression40 --> Object41 - PgSelect45[["PgSelect[45∈7] ➊
ᐸjsonb_identity_mutation(mutation)ᐳ"]]:::sideeffectplan - Object48{{"Object[48∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object48 & Constant680 --> PgSelect45 - Access46{{"Access[46∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access47{{"Access[47∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access46 & Access47 --> Object48 - __Value2 --> Access46 - __Value2 --> Access47 - First49{{"First[49∈7] ➊"}}:::plan - PgSelectRows50[["PgSelectRows[50∈7] ➊"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈7] ➊
ᐸjsonb_identity_mutationᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈7] ➊
ᐸ__jsonb_id...tation__.vᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - Object53{{"Object[53∈7] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression52 --> Object53 - PgSelect57[["PgSelect[57∈9] ➊
ᐸjsonb_identity_mutation_plpgsql(mutation)ᐳ"]]:::sideeffectplan - Object60{{"Object[60∈9] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object60 & Constant681 --> PgSelect57 - Access58{{"Access[58∈9] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access59{{"Access[59∈9] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access58 & Access59 --> Object60 - __Value2 --> Access58 - __Value2 --> Access59 - First61{{"First[61∈9] ➊"}}:::plan - PgSelectRows62[["PgSelectRows[62∈9] ➊"]]:::plan - PgSelectRows62 --> First61 - PgSelect57 --> PgSelectRows62 - PgSelectSingle63{{"PgSelectSingle[63∈9] ➊
ᐸjsonb_identity_mutation_plpgsqlᐳ"}}:::plan - First61 --> PgSelectSingle63 - PgClassExpression64{{"PgClassExpression[64∈9] ➊
ᐸ__jsonb_id...lpgsql__.vᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression64 - Object65{{"Object[65∈9] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression64 --> Object65 - Object71{{"Object[71∈11] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access69{{"Access[69∈11] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access70{{"Access[70∈11] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access69 & Access70 --> Object71 - PgSelect68[["PgSelect[68∈11] ➊
ᐸjsonb_identity_mutation_plpgsql_with_default(mutation)ᐳ"]]:::sideeffectplan - Object71 --> PgSelect68 - __Value2 --> Access69 - __Value2 --> Access70 - First72{{"First[72∈11] ➊"}}:::plan - PgSelectRows73[["PgSelectRows[73∈11] ➊"]]:::plan - PgSelectRows73 --> First72 - PgSelect68 --> PgSelectRows73 - PgSelectSingle74{{"PgSelectSingle[74∈11] ➊
ᐸjsonb_identity_mutation_plpgsql_with_defaultᐳ"}}:::plan - First72 --> PgSelectSingle74 - PgClassExpression75{{"PgClassExpression[75∈11] ➊
ᐸ__jsonb_id...efault__.vᐳ"}}:::plan - PgSelectSingle74 --> PgClassExpression75 - Object76{{"Object[76∈11] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression75 --> Object76 - PgSelect80[["PgSelect[80∈13] ➊
ᐸjsonb_identity_mutation_plpgsql_with_default(mutation)ᐳ"]]:::sideeffectplan - Object83{{"Object[83∈13] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object83 & Constant682 --> PgSelect80 - Access81{{"Access[81∈13] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access82{{"Access[82∈13] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access81 & Access82 --> Object83 - __Value2 --> Access81 - __Value2 --> Access82 - First84{{"First[84∈13] ➊"}}:::plan - PgSelectRows85[["PgSelectRows[85∈13] ➊"]]:::plan - PgSelectRows85 --> First84 - PgSelect80 --> PgSelectRows85 - PgSelectSingle86{{"PgSelectSingle[86∈13] ➊
ᐸjsonb_identity_mutation_plpgsql_with_defaultᐳ"}}:::plan - First84 --> PgSelectSingle86 - PgClassExpression87{{"PgClassExpression[87∈13] ➊
ᐸ__jsonb_id...efault__.vᐳ"}}:::plan - PgSelectSingle86 --> PgClassExpression87 - Object88{{"Object[88∈13] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression87 --> Object88 - PgSelect93[["PgSelect[93∈15] ➊
ᐸadd_1_mutation(mutation)ᐳ"]]:::sideeffectplan - Object96{{"Object[96∈15] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object96 & Constant683 & Constant684 --> PgSelect93 - Access94{{"Access[94∈15] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access95{{"Access[95∈15] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access94 & Access95 --> Object96 + Object12 & PgFromExpression13 & ApplyInput19 --> PgSelect9 + First14{{"First[14∈1] ➊"}}:::plan + PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15 --> First14 + PgSelect9 --> PgSelectRows15 + PgSelectSingle16{{"PgSelectSingle[16∈1] ➊
ᐸjson_identity_mutationᐳ"}}:::plan + First14 --> PgSelectSingle16 + PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__json_ide...tation__.vᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression17 + Object18{{"Object[18∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression17 --> Object18 + PgSelect23[["PgSelect[23∈2] ➊
ᐸjsonb_identity_mutation(mutation)ᐳ"]]:::sideeffectplan + Object26{{"Object[26∈2] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression27{{"PgFromExpression[27∈2] ➊"}}:::plan + Object26 & PgFromExpression27 & ApplyInput33 --> PgSelect23 + Access24{{"Access[24∈2] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access25{{"Access[25∈2] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access24 & Access25 --> Object26 + __Value2 --> Access24 + __Value2 --> Access25 + Constant681 --> PgFromExpression27 + First28{{"First[28∈2] ➊"}}:::plan + PgSelectRows29[["PgSelectRows[29∈2] ➊"]]:::plan + PgSelectRows29 --> First28 + PgSelect23 --> PgSelectRows29 + PgSelectSingle30{{"PgSelectSingle[30∈2] ➊
ᐸjsonb_identity_mutationᐳ"}}:::plan + First28 --> PgSelectSingle30 + PgClassExpression31{{"PgClassExpression[31∈2] ➊
ᐸ__jsonb_id...tation__.vᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression31 + Object32{{"Object[32∈2] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression31 --> Object32 + PgSelect37[["PgSelect[37∈3] ➊
ᐸjson_identity_mutation(mutation)ᐳ"]]:::sideeffectplan + Object40{{"Object[40∈3] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression41{{"PgFromExpression[41∈3] ➊"}}:::plan + Object40 & PgFromExpression41 & ApplyInput47 --> PgSelect37 + Access38{{"Access[38∈3] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access39{{"Access[39∈3] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access38 & Access39 --> Object40 + __Value2 --> Access38 + __Value2 --> Access39 + Constant682 --> PgFromExpression41 + First42{{"First[42∈3] ➊"}}:::plan + PgSelectRows43[["PgSelectRows[43∈3] ➊"]]:::plan + PgSelectRows43 --> First42 + PgSelect37 --> PgSelectRows43 + PgSelectSingle44{{"PgSelectSingle[44∈3] ➊
ᐸjson_identity_mutationᐳ"}}:::plan + First42 --> PgSelectSingle44 + PgClassExpression45{{"PgClassExpression[45∈3] ➊
ᐸ__json_ide...tation__.vᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression45 + Object46{{"Object[46∈3] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression45 --> Object46 + PgSelect51[["PgSelect[51∈4] ➊
ᐸjsonb_identity_mutation(mutation)ᐳ"]]:::sideeffectplan + Object54{{"Object[54∈4] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression55{{"PgFromExpression[55∈4] ➊"}}:::plan + Object54 & PgFromExpression55 & ApplyInput61 --> PgSelect51 + Access52{{"Access[52∈4] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access53{{"Access[53∈4] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access52 & Access53 --> Object54 + __Value2 --> Access52 + __Value2 --> Access53 + Constant683 --> PgFromExpression55 + First56{{"First[56∈4] ➊"}}:::plan + PgSelectRows57[["PgSelectRows[57∈4] ➊"]]:::plan + PgSelectRows57 --> First56 + PgSelect51 --> PgSelectRows57 + PgSelectSingle58{{"PgSelectSingle[58∈4] ➊
ᐸjsonb_identity_mutationᐳ"}}:::plan + First56 --> PgSelectSingle58 + PgClassExpression59{{"PgClassExpression[59∈4] ➊
ᐸ__jsonb_id...tation__.vᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression59 + Object60{{"Object[60∈4] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression59 --> Object60 + PgSelect65[["PgSelect[65∈5] ➊
ᐸjsonb_identity_mutation_plpgsql(mutation)ᐳ"]]:::sideeffectplan + Object68{{"Object[68∈5] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression69{{"PgFromExpression[69∈5] ➊"}}:::plan + Object68 & PgFromExpression69 & ApplyInput75 --> PgSelect65 + Access66{{"Access[66∈5] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access67{{"Access[67∈5] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access66 & Access67 --> Object68 + __Value2 --> Access66 + __Value2 --> Access67 + Constant684 --> PgFromExpression69 + First70{{"First[70∈5] ➊"}}:::plan + PgSelectRows71[["PgSelectRows[71∈5] ➊"]]:::plan + PgSelectRows71 --> First70 + PgSelect65 --> PgSelectRows71 + PgSelectSingle72{{"PgSelectSingle[72∈5] ➊
ᐸjsonb_identity_mutation_plpgsqlᐳ"}}:::plan + First70 --> PgSelectSingle72 + PgClassExpression73{{"PgClassExpression[73∈5] ➊
ᐸ__jsonb_id...lpgsql__.vᐳ"}}:::plan + PgSelectSingle72 --> PgClassExpression73 + Object74{{"Object[74∈5] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression73 --> Object74 + PgSelect78[["PgSelect[78∈6] ➊
ᐸjsonb_identity_mutation_plpgsql_with_default(mutation)ᐳ"]]:::sideeffectplan + Object81{{"Object[81∈6] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression82{{"PgFromExpression[82∈6] ➊"}}:::plan + Object81 & PgFromExpression82 & ApplyInput88 --> PgSelect78 + Access79{{"Access[79∈6] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access80{{"Access[80∈6] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access79 & Access80 --> Object81 + __Value2 --> Access79 + __Value2 --> Access80 + First83{{"First[83∈6] ➊"}}:::plan + PgSelectRows84[["PgSelectRows[84∈6] ➊"]]:::plan + PgSelectRows84 --> First83 + PgSelect78 --> PgSelectRows84 + PgSelectSingle85{{"PgSelectSingle[85∈6] ➊
ᐸjsonb_identity_mutation_plpgsql_with_defaultᐳ"}}:::plan + First83 --> PgSelectSingle85 + PgClassExpression86{{"PgClassExpression[86∈6] ➊
ᐸ__jsonb_id...efault__.vᐳ"}}:::plan + PgSelectSingle85 --> PgClassExpression86 + Object87{{"Object[87∈6] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression86 --> Object87 + PgSelect92[["PgSelect[92∈7] ➊
ᐸjsonb_identity_mutation_plpgsql_with_default(mutation)ᐳ"]]:::sideeffectplan + Object95{{"Object[95∈7] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression96{{"PgFromExpression[96∈7] ➊"}}:::plan + Object95 & PgFromExpression96 & ApplyInput102 --> PgSelect92 + Access93{{"Access[93∈7] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access94{{"Access[94∈7] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access93 & Access94 --> Object95 + __Value2 --> Access93 __Value2 --> Access94 - __Value2 --> Access95 - First97{{"First[97∈15] ➊"}}:::plan - PgSelectRows98[["PgSelectRows[98∈15] ➊"]]:::plan + Constant685 --> PgFromExpression96 + First97{{"First[97∈7] ➊"}}:::plan + PgSelectRows98[["PgSelectRows[98∈7] ➊"]]:::plan PgSelectRows98 --> First97 - PgSelect93 --> PgSelectRows98 - PgSelectSingle99{{"PgSelectSingle[99∈15] ➊
ᐸadd_1_mutationᐳ"}}:::plan + PgSelect92 --> PgSelectRows98 + PgSelectSingle99{{"PgSelectSingle[99∈7] ➊
ᐸjsonb_identity_mutation_plpgsql_with_defaultᐳ"}}:::plan First97 --> PgSelectSingle99 - PgClassExpression100{{"PgClassExpression[100∈15] ➊
ᐸ__add_1_mutation__.vᐳ"}}:::plan + PgClassExpression100{{"PgClassExpression[100∈7] ➊
ᐸ__jsonb_id...efault__.vᐳ"}}:::plan PgSelectSingle99 --> PgClassExpression100 - Object101{{"Object[101∈15] ➊
ᐸ{result}ᐳ"}}:::plan + Object101{{"Object[101∈7] ➊
ᐸ{result}ᐳ"}}:::plan PgClassExpression100 --> Object101 - PgSelect107[["PgSelect[107∈17] ➊
ᐸadd_2_mutation(mutation)ᐳ"]]:::sideeffectplan - Object110{{"Object[110∈17] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object110 & Constant684 & Constant684 --> PgSelect107 - Access108{{"Access[108∈17] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access109{{"Access[109∈17] ➊
ᐸ2.withPgClientᐳ"}}:::plan + PgSelect107[["PgSelect[107∈8] ➊
ᐸadd_1_mutation(mutation)ᐳ"]]:::sideeffectplan + Object110{{"Object[110∈8] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression111{{"PgFromExpression[111∈8] ➊"}}:::plan + Object110 & PgFromExpression111 & ApplyInput117 --> PgSelect107 + Access108{{"Access[108∈8] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access109{{"Access[109∈8] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access108 & Access109 --> Object110 - Object115{{"Object[115∈17] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgClassExpression114{{"PgClassExpression[114∈17] ➊
ᐸ__add_2_mutation__.vᐳ"}}:::plan - PgClassExpression114 & Constant685 --> Object115 + Constant686 & Constant687 --> PgFromExpression111 __Value2 --> Access108 __Value2 --> Access109 - First111{{"First[111∈17] ➊"}}:::plan - PgSelectRows112[["PgSelectRows[112∈17] ➊"]]:::plan - PgSelectRows112 --> First111 - PgSelect107 --> PgSelectRows112 - PgSelectSingle113{{"PgSelectSingle[113∈17] ➊
ᐸadd_2_mutationᐳ"}}:::plan - First111 --> PgSelectSingle113 - PgSelectSingle113 --> PgClassExpression114 - PgSelect121[["PgSelect[121∈19] ➊
ᐸadd_3_mutation(mutation)ᐳ"]]:::sideeffectplan - Object124{{"Object[124∈19] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object124 & Constant120 & Constant687 --> PgSelect121 - Access122{{"Access[122∈19] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access123{{"Access[123∈19] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access122 & Access123 --> Object124 - Object129{{"Object[129∈19] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgClassExpression128{{"PgClassExpression[128∈19] ➊
ᐸ__add_3_mutation__.vᐳ"}}:::plan - PgClassExpression128 & Constant686 --> Object129 - __Value2 --> Access122 - __Value2 --> Access123 - First125{{"First[125∈19] ➊"}}:::plan - PgSelectRows126[["PgSelectRows[126∈19] ➊"]]:::plan - PgSelectRows126 --> First125 - PgSelect121 --> PgSelectRows126 - PgSelectSingle127{{"PgSelectSingle[127∈19] ➊
ᐸadd_3_mutationᐳ"}}:::plan - First125 --> PgSelectSingle127 - PgSelectSingle127 --> PgClassExpression128 - PgSelect134[["PgSelect[134∈21] ➊
ᐸadd_4_mutation(mutation)ᐳ"]]:::sideeffectplan - Object137{{"Object[137∈21] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object137 & Constant683 & Constant688 --> PgSelect134 - Access135{{"Access[135∈21] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access136{{"Access[136∈21] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access135 & Access136 --> Object137 - __Value2 --> Access135 - __Value2 --> Access136 - First138{{"First[138∈21] ➊"}}:::plan - PgSelectRows139[["PgSelectRows[139∈21] ➊"]]:::plan - PgSelectRows139 --> First138 - PgSelect134 --> PgSelectRows139 - PgSelectSingle140{{"PgSelectSingle[140∈21] ➊
ᐸadd_4_mutationᐳ"}}:::plan - First138 --> PgSelectSingle140 - PgClassExpression141{{"PgClassExpression[141∈21] ➊
ᐸ__add_4_mutation__.vᐳ"}}:::plan - PgSelectSingle140 --> PgClassExpression141 - Object142{{"Object[142∈21] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression141 --> Object142 - PgSelect147[["PgSelect[147∈23] ➊
ᐸadd_4_mutation_error(mutation)ᐳ"]]:::sideeffectplan - Object150{{"Object[150∈23] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object150 & Constant683 & Constant688 --> PgSelect147 - Access148{{"Access[148∈23] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access149{{"Access[149∈23] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access148 & Access149 --> Object150 - __Value2 --> Access148 - __Value2 --> Access149 - First151{{"First[151∈23] ➊"}}:::plan - PgSelectRows152[["PgSelectRows[152∈23] ➊"]]:::plan - PgSelectRows152 --> First151 - PgSelect147 --> PgSelectRows152 - PgSelectSingle153{{"PgSelectSingle[153∈23] ➊
ᐸadd_4_mutation_errorᐳ"}}:::plan - First151 --> PgSelectSingle153 - PgClassExpression154{{"PgClassExpression[154∈23] ➊
ᐸ__add_4_mu..._error__.vᐳ"}}:::plan - PgSelectSingle153 --> PgClassExpression154 - Object155{{"Object[155∈23] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression154 --> Object155 - PgSelect160[["PgSelect[160∈25] ➊
ᐸmult_1(mutation)ᐳ"]]:::sideeffectplan - Object163{{"Object[163∈25] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object163 & Constant689 & Constant683 --> PgSelect160 - Access161{{"Access[161∈25] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access162{{"Access[162∈25] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access161 & Access162 --> Object163 - __Value2 --> Access161 - __Value2 --> Access162 - First164{{"First[164∈25] ➊"}}:::plan - PgSelectRows165[["PgSelectRows[165∈25] ➊"]]:::plan - PgSelectRows165 --> First164 - PgSelect160 --> PgSelectRows165 - PgSelectSingle166{{"PgSelectSingle[166∈25] ➊
ᐸmult_1ᐳ"}}:::plan - First164 --> PgSelectSingle166 - PgClassExpression167{{"PgClassExpression[167∈25] ➊
ᐸ__mult_1__.vᐳ"}}:::plan - PgSelectSingle166 --> PgClassExpression167 - Object168{{"Object[168∈25] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression167 --> Object168 - PgSelect173[["PgSelect[173∈27] ➊
ᐸmult_2(mutation)ᐳ"]]:::sideeffectplan - Object176{{"Object[176∈27] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object176 & Constant683 & Constant683 --> PgSelect173 - Access174{{"Access[174∈27] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access175{{"Access[175∈27] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access174 & Access175 --> Object176 - __Value2 --> Access174 - __Value2 --> Access175 - First177{{"First[177∈27] ➊"}}:::plan - PgSelectRows178[["PgSelectRows[178∈27] ➊"]]:::plan - PgSelectRows178 --> First177 - PgSelect173 --> PgSelectRows178 - PgSelectSingle179{{"PgSelectSingle[179∈27] ➊
ᐸmult_2ᐳ"}}:::plan - First177 --> PgSelectSingle179 - PgClassExpression180{{"PgClassExpression[180∈27] ➊
ᐸ__mult_2__.vᐳ"}}:::plan - PgSelectSingle179 --> PgClassExpression180 - Object181{{"Object[181∈27] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression180 --> Object181 - PgSelect186[["PgSelect[186∈29] ➊
ᐸmult_3(mutation)ᐳ"]]:::sideeffectplan - Object189{{"Object[189∈29] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object189 & Constant683 & Constant684 --> PgSelect186 - Access187{{"Access[187∈29] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access188{{"Access[188∈29] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access187 & Access188 --> Object189 + First112{{"First[112∈8] ➊"}}:::plan + PgSelectRows113[["PgSelectRows[113∈8] ➊"]]:::plan + PgSelectRows113 --> First112 + PgSelect107 --> PgSelectRows113 + PgSelectSingle114{{"PgSelectSingle[114∈8] ➊
ᐸadd_1_mutationᐳ"}}:::plan + First112 --> PgSelectSingle114 + PgClassExpression115{{"PgClassExpression[115∈8] ➊
ᐸ__add_1_mutation__.vᐳ"}}:::plan + PgSelectSingle114 --> PgClassExpression115 + Object116{{"Object[116∈8] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression115 --> Object116 + Access118{{"Access[118∈8] ➊
ᐸ107.m.clientMutationIdᐳ"}}:::plan + PgSelect107 --> Access118 + PgSelect123[["PgSelect[123∈9] ➊
ᐸadd_2_mutation(mutation)ᐳ"]]:::sideeffectplan + Object126{{"Object[126∈9] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression127{{"PgFromExpression[127∈9] ➊"}}:::plan + Object126 & PgFromExpression127 & ApplyInput133 --> PgSelect123 + Access124{{"Access[124∈9] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access125{{"Access[125∈9] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access124 & Access125 --> Object126 + Constant687 -- 2 --> PgFromExpression127 + __Value2 --> Access124 + __Value2 --> Access125 + First128{{"First[128∈9] ➊"}}:::plan + PgSelectRows129[["PgSelectRows[129∈9] ➊"]]:::plan + PgSelectRows129 --> First128 + PgSelect123 --> PgSelectRows129 + PgSelectSingle130{{"PgSelectSingle[130∈9] ➊
ᐸadd_2_mutationᐳ"}}:::plan + First128 --> PgSelectSingle130 + PgClassExpression131{{"PgClassExpression[131∈9] ➊
ᐸ__add_2_mutation__.vᐳ"}}:::plan + PgSelectSingle130 --> PgClassExpression131 + Object132{{"Object[132∈9] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression131 --> Object132 + Access134{{"Access[134∈9] ➊
ᐸ123.m.clientMutationIdᐳ"}}:::plan + PgSelect123 --> Access134 + PgSelect139[["PgSelect[139∈10] ➊
ᐸadd_3_mutation(mutation)ᐳ"]]:::sideeffectplan + Object142{{"Object[142∈10] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression143{{"PgFromExpression[143∈10] ➊"}}:::plan + Object142 & PgFromExpression143 & ApplyInput149 --> PgSelect139 + Access140{{"Access[140∈10] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access141{{"Access[141∈10] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access140 & Access141 --> Object142 + Constant690 --> PgFromExpression143 + __Value2 --> Access140 + __Value2 --> Access141 + First144{{"First[144∈10] ➊"}}:::plan + PgSelectRows145[["PgSelectRows[145∈10] ➊"]]:::plan + PgSelectRows145 --> First144 + PgSelect139 --> PgSelectRows145 + PgSelectSingle146{{"PgSelectSingle[146∈10] ➊
ᐸadd_3_mutationᐳ"}}:::plan + First144 --> PgSelectSingle146 + PgClassExpression147{{"PgClassExpression[147∈10] ➊
ᐸ__add_3_mutation__.vᐳ"}}:::plan + PgSelectSingle146 --> PgClassExpression147 + Object148{{"Object[148∈10] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression147 --> Object148 + Access150{{"Access[150∈10] ➊
ᐸ139.m.clientMutationIdᐳ"}}:::plan + PgSelect139 --> Access150 + PgSelect155[["PgSelect[155∈11] ➊
ᐸadd_4_mutation(mutation)ᐳ"]]:::sideeffectplan + Object158{{"Object[158∈11] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression159{{"PgFromExpression[159∈11] ➊"}}:::plan + Object158 & PgFromExpression159 & ApplyInput165 --> PgSelect155 + Access156{{"Access[156∈11] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access157{{"Access[157∈11] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access156 & Access157 --> Object158 + Constant686 & Constant691 --> PgFromExpression159 + __Value2 --> Access156 + __Value2 --> Access157 + First160{{"First[160∈11] ➊"}}:::plan + PgSelectRows161[["PgSelectRows[161∈11] ➊"]]:::plan + PgSelectRows161 --> First160 + PgSelect155 --> PgSelectRows161 + PgSelectSingle162{{"PgSelectSingle[162∈11] ➊
ᐸadd_4_mutationᐳ"}}:::plan + First160 --> PgSelectSingle162 + PgClassExpression163{{"PgClassExpression[163∈11] ➊
ᐸ__add_4_mutation__.vᐳ"}}:::plan + PgSelectSingle162 --> PgClassExpression163 + Object164{{"Object[164∈11] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression163 --> Object164 + PgSelect170[["PgSelect[170∈12] ➊
ᐸadd_4_mutation_error(mutation)ᐳ"]]:::sideeffectplan + Object173{{"Object[173∈12] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression174{{"PgFromExpression[174∈12] ➊"}}:::plan + Object173 & PgFromExpression174 & ApplyInput180 --> PgSelect170 + Access171{{"Access[171∈12] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access172{{"Access[172∈12] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access171 & Access172 --> Object173 + Constant686 & Constant691 --> PgFromExpression174 + __Value2 --> Access171 + __Value2 --> Access172 + First175{{"First[175∈12] ➊"}}:::plan + PgSelectRows176[["PgSelectRows[176∈12] ➊"]]:::plan + PgSelectRows176 --> First175 + PgSelect170 --> PgSelectRows176 + PgSelectSingle177{{"PgSelectSingle[177∈12] ➊
ᐸadd_4_mutation_errorᐳ"}}:::plan + First175 --> PgSelectSingle177 + PgClassExpression178{{"PgClassExpression[178∈12] ➊
ᐸ__add_4_mu..._error__.vᐳ"}}:::plan + PgSelectSingle177 --> PgClassExpression178 + Object179{{"Object[179∈12] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression178 --> Object179 + PgSelect185[["PgSelect[185∈13] ➊
ᐸmult_1(mutation)ᐳ"]]:::sideeffectplan + Object188{{"Object[188∈13] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression189{{"PgFromExpression[189∈13] ➊"}}:::plan + Object188 & PgFromExpression189 & ApplyInput195 --> PgSelect185 + Access186{{"Access[186∈13] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access187{{"Access[187∈13] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access186 & Access187 --> Object188 + Constant692 & Constant686 --> PgFromExpression189 + __Value2 --> Access186 __Value2 --> Access187 - __Value2 --> Access188 - First190{{"First[190∈29] ➊"}}:::plan - PgSelectRows191[["PgSelectRows[191∈29] ➊"]]:::plan + First190{{"First[190∈13] ➊"}}:::plan + PgSelectRows191[["PgSelectRows[191∈13] ➊"]]:::plan PgSelectRows191 --> First190 - PgSelect186 --> PgSelectRows191 - PgSelectSingle192{{"PgSelectSingle[192∈29] ➊
ᐸmult_3ᐳ"}}:::plan + PgSelect185 --> PgSelectRows191 + PgSelectSingle192{{"PgSelectSingle[192∈13] ➊
ᐸmult_1ᐳ"}}:::plan First190 --> PgSelectSingle192 - PgClassExpression193{{"PgClassExpression[193∈29] ➊
ᐸ__mult_3__.vᐳ"}}:::plan + PgClassExpression193{{"PgClassExpression[193∈13] ➊
ᐸ__mult_1__.vᐳ"}}:::plan PgSelectSingle192 --> PgClassExpression193 - Object194{{"Object[194∈29] ➊
ᐸ{result}ᐳ"}}:::plan + Object194{{"Object[194∈13] ➊
ᐸ{result}ᐳ"}}:::plan PgClassExpression193 --> Object194 - PgSelect199[["PgSelect[199∈31] ➊
ᐸmult_4(mutation)ᐳ"]]:::sideeffectplan - Object202{{"Object[202∈31] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object202 & Constant687 & Constant684 --> PgSelect199 - Access200{{"Access[200∈31] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access201{{"Access[201∈31] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access200 & Access201 --> Object202 - __Value2 --> Access200 + PgSelect200[["PgSelect[200∈14] ➊
ᐸmult_2(mutation)ᐳ"]]:::sideeffectplan + Object203{{"Object[203∈14] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression204{{"PgFromExpression[204∈14] ➊"}}:::plan + Object203 & PgFromExpression204 & ApplyInput210 --> PgSelect200 + Access201{{"Access[201∈14] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access202{{"Access[202∈14] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access201 & Access202 --> Object203 + Constant686 -- 2 --> PgFromExpression204 __Value2 --> Access201 - First203{{"First[203∈31] ➊"}}:::plan - PgSelectRows204[["PgSelectRows[204∈31] ➊"]]:::plan - PgSelectRows204 --> First203 - PgSelect199 --> PgSelectRows204 - PgSelectSingle205{{"PgSelectSingle[205∈31] ➊
ᐸmult_4ᐳ"}}:::plan - First203 --> PgSelectSingle205 - PgClassExpression206{{"PgClassExpression[206∈31] ➊
ᐸ__mult_4__.vᐳ"}}:::plan - PgSelectSingle205 --> PgClassExpression206 - Object207{{"Object[207∈31] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression206 --> Object207 - PgSelect229[["PgSelect[229∈33] ➊
ᐸtypes_mutation(mutation)ᐳ"]]:::sideeffectplan - Object232{{"Object[232∈33] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object232 & Constant690 & Constant691 & Constant692 & Constant722 & Constant693 & Constant729 --> PgSelect229 - Access230{{"Access[230∈33] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access231{{"Access[231∈33] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access230 & Access231 --> Object232 - __Value2 --> Access230 + __Value2 --> Access202 + First205{{"First[205∈14] ➊"}}:::plan + PgSelectRows206[["PgSelectRows[206∈14] ➊"]]:::plan + PgSelectRows206 --> First205 + PgSelect200 --> PgSelectRows206 + PgSelectSingle207{{"PgSelectSingle[207∈14] ➊
ᐸmult_2ᐳ"}}:::plan + First205 --> PgSelectSingle207 + PgClassExpression208{{"PgClassExpression[208∈14] ➊
ᐸ__mult_2__.vᐳ"}}:::plan + PgSelectSingle207 --> PgClassExpression208 + Object209{{"Object[209∈14] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression208 --> Object209 + PgSelect215[["PgSelect[215∈15] ➊
ᐸmult_3(mutation)ᐳ"]]:::sideeffectplan + Object218{{"Object[218∈15] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression219{{"PgFromExpression[219∈15] ➊"}}:::plan + Object218 & PgFromExpression219 & ApplyInput225 --> PgSelect215 + Access216{{"Access[216∈15] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access217{{"Access[217∈15] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access216 & Access217 --> Object218 + Constant686 & Constant687 --> PgFromExpression219 + __Value2 --> Access216 + __Value2 --> Access217 + First220{{"First[220∈15] ➊"}}:::plan + PgSelectRows221[["PgSelectRows[221∈15] ➊"]]:::plan + PgSelectRows221 --> First220 + PgSelect215 --> PgSelectRows221 + PgSelectSingle222{{"PgSelectSingle[222∈15] ➊
ᐸmult_3ᐳ"}}:::plan + First220 --> PgSelectSingle222 + PgClassExpression223{{"PgClassExpression[223∈15] ➊
ᐸ__mult_3__.vᐳ"}}:::plan + PgSelectSingle222 --> PgClassExpression223 + Object224{{"Object[224∈15] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression223 --> Object224 + PgSelect230[["PgSelect[230∈16] ➊
ᐸmult_4(mutation)ᐳ"]]:::sideeffectplan + Object233{{"Object[233∈16] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression234{{"PgFromExpression[234∈16] ➊"}}:::plan + Object233 & PgFromExpression234 & ApplyInput240 --> PgSelect230 + Access231{{"Access[231∈16] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access232{{"Access[232∈16] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access231 & Access232 --> Object233 + Constant690 & Constant687 --> PgFromExpression234 __Value2 --> Access231 - First233{{"First[233∈33] ➊"}}:::plan - PgSelectRows234[["PgSelectRows[234∈33] ➊"]]:::plan - PgSelectRows234 --> First233 - PgSelect229 --> PgSelectRows234 - PgSelectSingle235{{"PgSelectSingle[235∈33] ➊
ᐸtypes_mutationᐳ"}}:::plan - First233 --> PgSelectSingle235 - PgClassExpression236{{"PgClassExpression[236∈33] ➊
ᐸ__types_mutation__.vᐳ"}}:::plan - PgSelectSingle235 --> PgClassExpression236 - Object237{{"Object[237∈33] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression236 --> Object237 - PgSelect251[["PgSelect[251∈35] ➊
ᐸcompound_type_mutation(mutation)ᐳ"]]:::sideeffectplan - Object254{{"Object[254∈35] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object254 & Constant730 --> PgSelect251 - Access252{{"Access[252∈35] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access253{{"Access[253∈35] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access252 & Access253 --> Object254 - __Value2 --> Access252 - __Value2 --> Access253 - First255{{"First[255∈35] ➊"}}:::plan - PgSelectRows256[["PgSelectRows[256∈35] ➊"]]:::plan - PgSelectRows256 --> First255 - PgSelect251 --> PgSelectRows256 - PgSelectSingle257{{"PgSelectSingle[257∈35] ➊
ᐸcompound_type_mutationᐳ"}}:::plan - First255 --> PgSelectSingle257 - Object258{{"Object[258∈35] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle257 --> Object258 - PgClassExpression259{{"PgClassExpression[259∈37] ➊
ᐸ__compound...tion__.”a”ᐳ"}}:::plan - PgSelectSingle257 --> PgClassExpression259 - PgClassExpression260{{"PgClassExpression[260∈37] ➊
ᐸ__compound...tion__.”b”ᐳ"}}:::plan - PgSelectSingle257 --> PgClassExpression260 - PgClassExpression261{{"PgClassExpression[261∈37] ➊
ᐸ__compound...tion__.”c”ᐳ"}}:::plan - PgSelectSingle257 --> PgClassExpression261 - PgClassExpression262{{"PgClassExpression[262∈37] ➊
ᐸ__compound...tion__.”d”ᐳ"}}:::plan - PgSelectSingle257 --> PgClassExpression262 - PgClassExpression263{{"PgClassExpression[263∈37] ➊
ᐸ__compound...tion__.”e”ᐳ"}}:::plan - PgSelectSingle257 --> PgClassExpression263 - PgClassExpression264{{"PgClassExpression[264∈37] ➊
ᐸ__compound...tion__.”f”ᐳ"}}:::plan - PgSelectSingle257 --> PgClassExpression264 - PgClassExpression265{{"PgClassExpression[265∈37] ➊
ᐸ__compound...tion__.”g”ᐳ"}}:::plan - PgSelectSingle257 --> PgClassExpression265 - PgClassExpression269{{"PgClassExpression[269∈37] ➊
ᐸ__compound....”foo_bar”ᐳ"}}:::plan - PgSelectSingle257 --> PgClassExpression269 - PgSelect283[["PgSelect[283∈39] ➊
ᐸcompound_type_set_mutation(mutation)ᐳ"]]:::sideeffectplan - Object286{{"Object[286∈39] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object286 & Constant730 --> PgSelect283 - Access284{{"Access[284∈39] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access285{{"Access[285∈39] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access284 & Access285 --> Object286 - __Value2 --> Access284 - __Value2 --> Access285 - Object287{{"Object[287∈39] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect283 --> Object287 - PgSelectRows288[["PgSelectRows[288∈40] ➊"]]:::plan - PgSelect283 --> PgSelectRows288 - __Item289[/"__Item[289∈41]
ᐸ288ᐳ"\]:::itemplan - PgSelectRows288 ==> __Item289 - PgSelectSingle290{{"PgSelectSingle[290∈41]
ᐸcompound_type_set_mutationᐳ"}}:::plan - __Item289 --> PgSelectSingle290 - PgClassExpression291{{"PgClassExpression[291∈42]
ᐸ__compound...tion__.”a”ᐳ"}}:::plan - PgSelectSingle290 --> PgClassExpression291 - PgClassExpression292{{"PgClassExpression[292∈42]
ᐸ__compound...tion__.”b”ᐳ"}}:::plan - PgSelectSingle290 --> PgClassExpression292 - PgClassExpression293{{"PgClassExpression[293∈42]
ᐸ__compound...tion__.”c”ᐳ"}}:::plan - PgSelectSingle290 --> PgClassExpression293 - PgClassExpression294{{"PgClassExpression[294∈42]
ᐸ__compound...tion__.”d”ᐳ"}}:::plan - PgSelectSingle290 --> PgClassExpression294 - PgClassExpression295{{"PgClassExpression[295∈42]
ᐸ__compound...tion__.”e”ᐳ"}}:::plan - PgSelectSingle290 --> PgClassExpression295 - PgClassExpression296{{"PgClassExpression[296∈42]
ᐸ__compound...tion__.”f”ᐳ"}}:::plan - PgSelectSingle290 --> PgClassExpression296 - PgClassExpression297{{"PgClassExpression[297∈42]
ᐸ__compound...tion__.”g”ᐳ"}}:::plan - PgSelectSingle290 --> PgClassExpression297 - PgClassExpression301{{"PgClassExpression[301∈42]
ᐸ__compound....”foo_bar”ᐳ"}}:::plan - PgSelectSingle290 --> PgClassExpression301 - PgSelect315[["PgSelect[315∈44] ➊
ᐸcompound_type_array_mutation(mutation)ᐳ"]]:::sideeffectplan - Object318{{"Object[318∈44] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object318 & Constant730 --> PgSelect315 - Access316{{"Access[316∈44] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access317{{"Access[317∈44] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access316 & Access317 --> Object318 - __Value2 --> Access316 - __Value2 --> Access317 - Object319{{"Object[319∈44] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect315 --> Object319 - PgSelectRows320[["PgSelectRows[320∈45] ➊"]]:::plan - PgSelect315 --> PgSelectRows320 - __Item321[/"__Item[321∈46]
ᐸ320ᐳ"\]:::itemplan - PgSelectRows320 ==> __Item321 - PgSelectSingle322{{"PgSelectSingle[322∈46]
ᐸcompound_type_array_mutationᐳ"}}:::plan - __Item321 --> PgSelectSingle322 - PgClassExpression323{{"PgClassExpression[323∈47]
ᐸ__compound...tion__.”a”ᐳ"}}:::plan - PgSelectSingle322 --> PgClassExpression323 - PgClassExpression324{{"PgClassExpression[324∈47]
ᐸ__compound...tion__.”b”ᐳ"}}:::plan - PgSelectSingle322 --> PgClassExpression324 - PgClassExpression325{{"PgClassExpression[325∈47]
ᐸ__compound...tion__.”c”ᐳ"}}:::plan - PgSelectSingle322 --> PgClassExpression325 - PgClassExpression326{{"PgClassExpression[326∈47]
ᐸ__compound...tion__.”d”ᐳ"}}:::plan - PgSelectSingle322 --> PgClassExpression326 - PgClassExpression327{{"PgClassExpression[327∈47]
ᐸ__compound...tion__.”e”ᐳ"}}:::plan - PgSelectSingle322 --> PgClassExpression327 - PgClassExpression328{{"PgClassExpression[328∈47]
ᐸ__compound...tion__.”f”ᐳ"}}:::plan - PgSelectSingle322 --> PgClassExpression328 - PgClassExpression329{{"PgClassExpression[329∈47]
ᐸ__compound...tion__.”g”ᐳ"}}:::plan - PgSelectSingle322 --> PgClassExpression329 - PgClassExpression333{{"PgClassExpression[333∈47]
ᐸ__compound....”foo_bar”ᐳ"}}:::plan - PgSelectSingle322 --> PgClassExpression333 - PgSelect337[["PgSelect[337∈49] ➊
ᐸtable_mutation(mutation)ᐳ"]]:::sideeffectplan - Object340{{"Object[340∈49] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object340 & Constant687 --> PgSelect337 - Access338{{"Access[338∈49] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access339{{"Access[339∈49] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access338 & Access339 --> Object340 - __Value2 --> Access338 - __Value2 --> Access339 - First341{{"First[341∈49] ➊"}}:::plan - PgSelectRows342[["PgSelectRows[342∈49] ➊"]]:::plan - PgSelectRows342 --> First341 - PgSelect337 --> PgSelectRows342 - PgSelectSingle343{{"PgSelectSingle[343∈49] ➊
ᐸtable_mutationᐳ"}}:::plan - First341 --> PgSelectSingle343 - Object344{{"Object[344∈49] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle343 --> Object344 - Edge370{{"Edge[370∈50] ➊"}}:::plan - PgSelectSingle369{{"PgSelectSingle[369∈50] ➊
ᐸpostᐳ"}}:::plan - PgCursor372{{"PgCursor[372∈50] ➊"}}:::plan - Connection366{{"Connection[366∈50] ➊
ᐸ364ᐳ"}}:::plan - PgSelectSingle369 & PgCursor372 & Connection366 --> Edge370 - List347{{"List[347∈50] ➊
ᐸ345,363ᐳ"}}:::plan - PgClassExpression363{{"PgClassExpression[363∈50] ➊
ᐸ__table_mutation__.”id”ᐳ"}}:::plan - Constant345 & PgClassExpression363 --> List347 - PgSelect352[["PgSelect[352∈50] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression351{{"PgClassExpression[351∈50] ➊
ᐸ__table_mu...author_id”ᐳ"}}:::plan - Object340 & PgClassExpression351 --> PgSelect352 - PgSelect364[["PgSelect[364∈50] ➊
ᐸpostᐳ"]]:::plan - Object340 & PgClassExpression363 --> PgSelect364 - Access371{{"Access[371∈50] ➊
ᐸ364.cursorDetailsᐳ"}}:::plan - PgSelectSingle369 & Access371 --> PgCursor372 - Lambda348{{"Lambda[348∈50] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List347 --> Lambda348 - PgSelectSingle343 --> PgClassExpression351 - First356{{"First[356∈50] ➊"}}:::plan - PgSelectRows357[["PgSelectRows[357∈50] ➊"]]:::plan - PgSelectRows357 --> First356 - PgSelect352 --> PgSelectRows357 - PgSelectSingle358{{"PgSelectSingle[358∈50] ➊
ᐸpersonᐳ"}}:::plan - First356 --> PgSelectSingle358 - PgSelectSingle343 --> PgClassExpression363 - First367{{"First[367∈50] ➊"}}:::plan - PgSelectRows368[["PgSelectRows[368∈50] ➊"]]:::plan - PgSelectRows368 --> First367 - PgSelect364 --> PgSelectRows368 - First367 --> PgSelectSingle369 - PgSelect364 --> Access371 - PgClassExpression349{{"PgClassExpression[349∈51] ➊
ᐸ__table_mu...”headline”ᐳ"}}:::plan - PgSelectSingle343 --> PgClassExpression349 - PgClassExpression359{{"PgClassExpression[359∈52] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle358 --> PgClassExpression359 - PgClassExpression360{{"PgClassExpression[360∈52] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle358 --> PgClassExpression360 - PgClassExpression373{{"PgClassExpression[373∈54] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle369 --> PgClassExpression373 - PgClassExpression374{{"PgClassExpression[374∈54] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle369 --> PgClassExpression374 - PgSelect378[["PgSelect[378∈55] ➊
ᐸtable_mutation(mutation)ᐳ"]]:::sideeffectplan - Object381{{"Object[381∈55] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object381 & Constant700 --> PgSelect378 - Access379{{"Access[379∈55] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access380{{"Access[380∈55] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access379 & Access380 --> Object381 - __Value2 --> Access379 - __Value2 --> Access380 - First382{{"First[382∈55] ➊"}}:::plan - PgSelectRows383[["PgSelectRows[383∈55] ➊"]]:::plan - PgSelectRows383 --> First382 - PgSelect378 --> PgSelectRows383 - PgSelectSingle384{{"PgSelectSingle[384∈55] ➊
ᐸtable_mutationᐳ"}}:::plan - First382 --> PgSelectSingle384 - Object385{{"Object[385∈55] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle384 --> Object385 - Edge411{{"Edge[411∈56] ➊"}}:::plan - PgSelectSingle410{{"PgSelectSingle[410∈56] ➊
ᐸpostᐳ"}}:::plan - PgCursor413{{"PgCursor[413∈56] ➊"}}:::plan - Connection407{{"Connection[407∈56] ➊
ᐸ405ᐳ"}}:::plan - PgSelectSingle410 & PgCursor413 & Connection407 --> Edge411 - List388{{"List[388∈56] ➊
ᐸ345,404ᐳ"}}:::plan - PgClassExpression404{{"PgClassExpression[404∈56] ➊
ᐸ__table_mutation__.”id”ᐳ"}}:::plan - Constant345 & PgClassExpression404 --> List388 - PgSelect393[["PgSelect[393∈56] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression392{{"PgClassExpression[392∈56] ➊
ᐸ__table_mu...author_id”ᐳ"}}:::plan - Object381 & PgClassExpression392 --> PgSelect393 - PgSelect405[["PgSelect[405∈56] ➊
ᐸpostᐳ"]]:::plan - Object381 & PgClassExpression404 --> PgSelect405 - Access412{{"Access[412∈56] ➊
ᐸ405.cursorDetailsᐳ"}}:::plan - PgSelectSingle410 & Access412 --> PgCursor413 - Lambda389{{"Lambda[389∈56] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List388 --> Lambda389 - PgSelectSingle384 --> PgClassExpression392 - First397{{"First[397∈56] ➊"}}:::plan - PgSelectRows398[["PgSelectRows[398∈56] ➊"]]:::plan + __Value2 --> Access232 + First235{{"First[235∈16] ➊"}}:::plan + PgSelectRows236[["PgSelectRows[236∈16] ➊"]]:::plan + PgSelectRows236 --> First235 + PgSelect230 --> PgSelectRows236 + PgSelectSingle237{{"PgSelectSingle[237∈16] ➊
ᐸmult_4ᐳ"}}:::plan + First235 --> PgSelectSingle237 + PgClassExpression238{{"PgClassExpression[238∈16] ➊
ᐸ__mult_4__.vᐳ"}}:::plan + PgSelectSingle237 --> PgClassExpression238 + Object239{{"Object[239∈16] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression238 --> Object239 + PgFromExpression260{{"PgFromExpression[260∈17] ➊"}}:::plan + Constant693 & Constant694 & Constant695 & BakedInput255 & Constant696 & __InputObject248 --> PgFromExpression260 + PgSelect256[["PgSelect[256∈17] ➊
ᐸtypes_mutation(mutation)ᐳ"]]:::sideeffectplan + Object259{{"Object[259∈17] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object259 & PgFromExpression260 & ApplyInput266 --> PgSelect256 + Access257{{"Access[257∈17] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access258{{"Access[258∈17] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access257 & Access258 --> Object259 + __Value2 --> Access257 + __Value2 --> Access258 + First261{{"First[261∈17] ➊"}}:::plan + PgSelectRows262[["PgSelectRows[262∈17] ➊"]]:::plan + PgSelectRows262 --> First261 + PgSelect256 --> PgSelectRows262 + PgSelectSingle263{{"PgSelectSingle[263∈17] ➊
ᐸtypes_mutationᐳ"}}:::plan + First261 --> PgSelectSingle263 + PgClassExpression264{{"PgClassExpression[264∈17] ➊
ᐸ__types_mutation__.vᐳ"}}:::plan + PgSelectSingle263 --> PgClassExpression264 + Object265{{"Object[265∈17] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression264 --> Object265 + PgSelect279[["PgSelect[279∈18] ➊
ᐸcompound_type_mutation(mutation)ᐳ"]]:::sideeffectplan + Object282{{"Object[282∈18] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression283{{"PgFromExpression[283∈18] ➊"}}:::plan + Object282 & PgFromExpression283 & ApplyInput288 --> PgSelect279 + Access280{{"Access[280∈18] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access281{{"Access[281∈18] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access280 & Access281 --> Object282 + __Value2 --> Access280 + __Value2 --> Access281 + BakedInput278 --> PgFromExpression283 + First284{{"First[284∈18] ➊"}}:::plan + PgSelectRows285[["PgSelectRows[285∈18] ➊"]]:::plan + PgSelectRows285 --> First284 + PgSelect279 --> PgSelectRows285 + PgSelectSingle286{{"PgSelectSingle[286∈18] ➊
ᐸcompound_type_mutationᐳ"}}:::plan + First284 --> PgSelectSingle286 + Object287{{"Object[287∈18] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle286 --> Object287 + PgClassExpression289{{"PgClassExpression[289∈18] ➊
ᐸ__compound...tion__.”a”ᐳ"}}:::plan + PgSelectSingle286 --> PgClassExpression289 + PgClassExpression290{{"PgClassExpression[290∈18] ➊
ᐸ__compound...tion__.”b”ᐳ"}}:::plan + PgSelectSingle286 --> PgClassExpression290 + PgClassExpression291{{"PgClassExpression[291∈18] ➊
ᐸ__compound...tion__.”c”ᐳ"}}:::plan + PgSelectSingle286 --> PgClassExpression291 + PgClassExpression292{{"PgClassExpression[292∈18] ➊
ᐸ__compound...tion__.”d”ᐳ"}}:::plan + PgSelectSingle286 --> PgClassExpression292 + PgClassExpression293{{"PgClassExpression[293∈18] ➊
ᐸ__compound...tion__.”e”ᐳ"}}:::plan + PgSelectSingle286 --> PgClassExpression293 + PgClassExpression294{{"PgClassExpression[294∈18] ➊
ᐸ__compound...tion__.”f”ᐳ"}}:::plan + PgSelectSingle286 --> PgClassExpression294 + PgClassExpression295{{"PgClassExpression[295∈18] ➊
ᐸ__compound...tion__.”g”ᐳ"}}:::plan + PgSelectSingle286 --> PgClassExpression295 + Access296{{"Access[296∈18] ➊
ᐸ295.secondsᐳ"}}:::plan + PgClassExpression295 --> Access296 + Access297{{"Access[297∈18] ➊
ᐸ295.minutesᐳ"}}:::plan + PgClassExpression295 --> Access297 + Access298{{"Access[298∈18] ➊
ᐸ295.hoursᐳ"}}:::plan + PgClassExpression295 --> Access298 + PgClassExpression299{{"PgClassExpression[299∈18] ➊
ᐸ__compound....”foo_bar”ᐳ"}}:::plan + PgSelectSingle286 --> PgClassExpression299 + PgSelect312[["PgSelect[312∈19] ➊
ᐸcompound_type_set_mutation(mutation)ᐳ"]]:::sideeffectplan + Object315{{"Object[315∈19] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression316{{"PgFromExpression[316∈19] ➊"}}:::plan + Object315 & PgFromExpression316 & ApplyInput318 --> PgSelect312 + Access313{{"Access[313∈19] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access314{{"Access[314∈19] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access313 & Access314 --> Object315 + __Value2 --> Access313 + __Value2 --> Access314 + BakedInput311 --> PgFromExpression316 + Object317{{"Object[317∈19] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect312 --> Object317 + PgSelectRows319[["PgSelectRows[319∈19] ➊"]]:::plan + PgSelect312 --> PgSelectRows319 + __Item320[/"__Item[320∈20]
ᐸ319ᐳ"\]:::itemplan + PgSelectRows319 ==> __Item320 + PgSelectSingle321{{"PgSelectSingle[321∈20]
ᐸcompound_type_set_mutationᐳ"}}:::plan + __Item320 --> PgSelectSingle321 + PgClassExpression322{{"PgClassExpression[322∈20]
ᐸ__compound...tion__.”a”ᐳ"}}:::plan + PgSelectSingle321 --> PgClassExpression322 + PgClassExpression323{{"PgClassExpression[323∈20]
ᐸ__compound...tion__.”b”ᐳ"}}:::plan + PgSelectSingle321 --> PgClassExpression323 + PgClassExpression324{{"PgClassExpression[324∈20]
ᐸ__compound...tion__.”c”ᐳ"}}:::plan + PgSelectSingle321 --> PgClassExpression324 + PgClassExpression325{{"PgClassExpression[325∈20]
ᐸ__compound...tion__.”d”ᐳ"}}:::plan + PgSelectSingle321 --> PgClassExpression325 + PgClassExpression326{{"PgClassExpression[326∈20]
ᐸ__compound...tion__.”e”ᐳ"}}:::plan + PgSelectSingle321 --> PgClassExpression326 + PgClassExpression327{{"PgClassExpression[327∈20]
ᐸ__compound...tion__.”f”ᐳ"}}:::plan + PgSelectSingle321 --> PgClassExpression327 + PgClassExpression328{{"PgClassExpression[328∈20]
ᐸ__compound...tion__.”g”ᐳ"}}:::plan + PgSelectSingle321 --> PgClassExpression328 + PgClassExpression332{{"PgClassExpression[332∈20]
ᐸ__compound....”foo_bar”ᐳ"}}:::plan + PgSelectSingle321 --> PgClassExpression332 + PgSelect345[["PgSelect[345∈21] ➊
ᐸcompound_type_array_mutation(mutation)ᐳ"]]:::sideeffectplan + Object348{{"Object[348∈21] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression349{{"PgFromExpression[349∈21] ➊"}}:::plan + Object348 & PgFromExpression349 & ApplyInput351 --> PgSelect345 + Access346{{"Access[346∈21] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access347{{"Access[347∈21] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access346 & Access347 --> Object348 + __Value2 --> Access346 + __Value2 --> Access347 + BakedInput344 --> PgFromExpression349 + Object350{{"Object[350∈21] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect345 --> Object350 + PgSelectRows352[["PgSelectRows[352∈21] ➊"]]:::plan + PgSelect345 --> PgSelectRows352 + __Item353[/"__Item[353∈22]
ᐸ352ᐳ"\]:::itemplan + PgSelectRows352 ==> __Item353 + PgSelectSingle354{{"PgSelectSingle[354∈22]
ᐸcompound_type_array_mutationᐳ"}}:::plan + __Item353 --> PgSelectSingle354 + PgClassExpression355{{"PgClassExpression[355∈22]
ᐸ__compound...tion__.”a”ᐳ"}}:::plan + PgSelectSingle354 --> PgClassExpression355 + PgClassExpression356{{"PgClassExpression[356∈22]
ᐸ__compound...tion__.”b”ᐳ"}}:::plan + PgSelectSingle354 --> PgClassExpression356 + PgClassExpression357{{"PgClassExpression[357∈22]
ᐸ__compound...tion__.”c”ᐳ"}}:::plan + PgSelectSingle354 --> PgClassExpression357 + PgClassExpression358{{"PgClassExpression[358∈22]
ᐸ__compound...tion__.”d”ᐳ"}}:::plan + PgSelectSingle354 --> PgClassExpression358 + PgClassExpression359{{"PgClassExpression[359∈22]
ᐸ__compound...tion__.”e”ᐳ"}}:::plan + PgSelectSingle354 --> PgClassExpression359 + PgClassExpression360{{"PgClassExpression[360∈22]
ᐸ__compound...tion__.”f”ᐳ"}}:::plan + PgSelectSingle354 --> PgClassExpression360 + PgClassExpression361{{"PgClassExpression[361∈22]
ᐸ__compound...tion__.”g”ᐳ"}}:::plan + PgSelectSingle354 --> PgClassExpression361 + PgClassExpression365{{"PgClassExpression[365∈22]
ᐸ__compound....”foo_bar”ᐳ"}}:::plan + PgSelectSingle354 --> PgClassExpression365 + PgSelect369[["PgSelect[369∈23] ➊
ᐸtable_mutation(mutation)ᐳ"]]:::sideeffectplan + Object372{{"Object[372∈23] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression373{{"PgFromExpression[373∈23] ➊"}}:::plan + Object372 & PgFromExpression373 & ApplyInput378 --> PgSelect369 + Edge400{{"Edge[400∈23] ➊"}}:::plan + PgSelectSingle399{{"PgSelectSingle[399∈23] ➊
ᐸpostᐳ"}}:::plan + PgCursor402{{"PgCursor[402∈23] ➊"}}:::plan + Connection396{{"Connection[396∈23] ➊
ᐸ393ᐳ"}}:::plan + PgSelectSingle399 & PgCursor402 & Connection396 --> Edge400 + Access370{{"Access[370∈23] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access371{{"Access[371∈23] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access370 & Access371 --> Object372 + List381{{"List[381∈23] ➊
ᐸ379,380ᐳ"}}:::plan + PgClassExpression380{{"PgClassExpression[380∈23] ➊
ᐸ__table_mutation__.”id”ᐳ"}}:::plan + Constant379 & PgClassExpression380 --> List381 + PgSelect385[["PgSelect[385∈23] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression384{{"PgClassExpression[384∈23] ➊
ᐸ__table_mu...author_id”ᐳ"}}:::plan + Object372 & PgClassExpression384 --> PgSelect385 + PgSelect393[["PgSelect[393∈23] ➊
ᐸpostᐳ"]]:::plan + Object372 & PgClassExpression380 --> PgSelect393 + Access401{{"Access[401∈23] ➊
ᐸ393.cursorDetailsᐳ"}}:::plan + PgSelectSingle399 & Access401 --> PgCursor402 + __Value2 --> Access370 + __Value2 --> Access371 + Constant690 --> PgFromExpression373 + First374{{"First[374∈23] ➊"}}:::plan + PgSelectRows375[["PgSelectRows[375∈23] ➊"]]:::plan + PgSelectRows375 --> First374 + PgSelect369 --> PgSelectRows375 + PgSelectSingle376{{"PgSelectSingle[376∈23] ➊
ᐸtable_mutationᐳ"}}:::plan + First374 --> PgSelectSingle376 + Object377{{"Object[377∈23] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle376 --> Object377 + PgSelectSingle376 --> PgClassExpression380 + Lambda382{{"Lambda[382∈23] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List381 --> Lambda382 + PgClassExpression383{{"PgClassExpression[383∈23] ➊
ᐸ__table_mu...”headline”ᐳ"}}:::plan + PgSelectSingle376 --> PgClassExpression383 + PgSelectSingle376 --> PgClassExpression384 + First387{{"First[387∈23] ➊"}}:::plan + PgSelectRows388[["PgSelectRows[388∈23] ➊"]]:::plan + PgSelectRows388 --> First387 + PgSelect385 --> PgSelectRows388 + PgSelectSingle389{{"PgSelectSingle[389∈23] ➊
ᐸpersonᐳ"}}:::plan + First387 --> PgSelectSingle389 + PgClassExpression390{{"PgClassExpression[390∈23] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle389 --> PgClassExpression390 + PgClassExpression391{{"PgClassExpression[391∈23] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle389 --> PgClassExpression391 + First397{{"First[397∈23] ➊"}}:::plan + PgSelectRows398[["PgSelectRows[398∈23] ➊"]]:::plan PgSelectRows398 --> First397 PgSelect393 --> PgSelectRows398 - PgSelectSingle399{{"PgSelectSingle[399∈56] ➊
ᐸpersonᐳ"}}:::plan First397 --> PgSelectSingle399 - PgSelectSingle384 --> PgClassExpression404 - First408{{"First[408∈56] ➊"}}:::plan - PgSelectRows409[["PgSelectRows[409∈56] ➊"]]:::plan - PgSelectRows409 --> First408 - PgSelect405 --> PgSelectRows409 - First408 --> PgSelectSingle410 - PgSelect405 --> Access412 - PgClassExpression390{{"PgClassExpression[390∈57] ➊
ᐸ__table_mu...”headline”ᐳ"}}:::plan - PgSelectSingle384 --> PgClassExpression390 - PgClassExpression400{{"PgClassExpression[400∈58] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle399 --> PgClassExpression400 - PgClassExpression401{{"PgClassExpression[401∈58] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle399 --> PgClassExpression401 - PgClassExpression414{{"PgClassExpression[414∈60] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle410 --> PgClassExpression414 - PgClassExpression415{{"PgClassExpression[415∈60] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle410 --> PgClassExpression415 - Object421{{"Object[421∈61] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access419{{"Access[419∈61] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access420{{"Access[420∈61] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access419 & Access420 --> Object421 - PgSelect418[["PgSelect[418∈61] ➊
ᐸtable_set_mutation(mutation)ᐳ"]]:::sideeffectplan - Object421 --> PgSelect418 - __Value2 --> Access419 - __Value2 --> Access420 - Object422{{"Object[422∈61] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect418 --> Object422 - PgSelectRows423[["PgSelectRows[423∈62] ➊"]]:::plan - PgSelect418 --> PgSelectRows423 - __Item424[/"__Item[424∈63]
ᐸ423ᐳ"\]:::itemplan - PgSelectRows423 ==> __Item424 - PgSelectSingle425{{"PgSelectSingle[425∈63]
ᐸtable_set_mutationᐳ"}}:::plan - __Item424 --> PgSelectSingle425 - PgClassExpression426{{"PgClassExpression[426∈64]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle425 --> PgClassExpression426 - PgSelect432[["PgSelect[432∈65] ➊
ᐸint_set_mutation(mutation)ᐳ"]]:::sideeffectplan - Object435{{"Object[435∈65] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object435 & Constant687 & Constant120 & Constant701 --> PgSelect432 - Access433{{"Access[433∈65] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access434{{"Access[434∈65] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access433 & Access434 --> Object435 - __Value2 --> Access433 - __Value2 --> Access434 - Object436{{"Object[436∈65] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect432 --> Object436 - PgSelectRows437[["PgSelectRows[437∈66] ➊"]]:::plan + PgSelect393 --> Access401 + PgClassExpression403{{"PgClassExpression[403∈23] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle399 --> PgClassExpression403 + PgClassExpression404{{"PgClassExpression[404∈23] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle399 --> PgClassExpression404 + PgSelect408[["PgSelect[408∈24] ➊
ᐸtable_mutation(mutation)ᐳ"]]:::sideeffectplan + Object411{{"Object[411∈24] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression412{{"PgFromExpression[412∈24] ➊"}}:::plan + Object411 & PgFromExpression412 & ApplyInput417 --> PgSelect408 + Edge439{{"Edge[439∈24] ➊"}}:::plan + PgSelectSingle438{{"PgSelectSingle[438∈24] ➊
ᐸpostᐳ"}}:::plan + PgCursor441{{"PgCursor[441∈24] ➊"}}:::plan + Connection435{{"Connection[435∈24] ➊
ᐸ432ᐳ"}}:::plan + PgSelectSingle438 & PgCursor441 & Connection435 --> Edge439 + Access409{{"Access[409∈24] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access410{{"Access[410∈24] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access409 & Access410 --> Object411 + List420{{"List[420∈24] ➊
ᐸ379,419ᐳ"}}:::plan + PgClassExpression419{{"PgClassExpression[419∈24] ➊
ᐸ__table_mutation__.”id”ᐳ"}}:::plan + Constant379 & PgClassExpression419 --> List420 + PgSelect424[["PgSelect[424∈24] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression423{{"PgClassExpression[423∈24] ➊
ᐸ__table_mu...author_id”ᐳ"}}:::plan + Object411 & PgClassExpression423 --> PgSelect424 + PgSelect432[["PgSelect[432∈24] ➊
ᐸpostᐳ"]]:::plan + Object411 & PgClassExpression419 --> PgSelect432 + Access440{{"Access[440∈24] ➊
ᐸ432.cursorDetailsᐳ"}}:::plan + PgSelectSingle438 & Access440 --> PgCursor441 + __Value2 --> Access409 + __Value2 --> Access410 + Constant703 --> PgFromExpression412 + First413{{"First[413∈24] ➊"}}:::plan + PgSelectRows414[["PgSelectRows[414∈24] ➊"]]:::plan + PgSelectRows414 --> First413 + PgSelect408 --> PgSelectRows414 + PgSelectSingle415{{"PgSelectSingle[415∈24] ➊
ᐸtable_mutationᐳ"}}:::plan + First413 --> PgSelectSingle415 + Object416{{"Object[416∈24] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle415 --> Object416 + PgSelectSingle415 --> PgClassExpression419 + Lambda421{{"Lambda[421∈24] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List420 --> Lambda421 + PgClassExpression422{{"PgClassExpression[422∈24] ➊
ᐸ__table_mu...”headline”ᐳ"}}:::plan + PgSelectSingle415 --> PgClassExpression422 + PgSelectSingle415 --> PgClassExpression423 + First426{{"First[426∈24] ➊"}}:::plan + PgSelectRows427[["PgSelectRows[427∈24] ➊"]]:::plan + PgSelectRows427 --> First426 + PgSelect424 --> PgSelectRows427 + PgSelectSingle428{{"PgSelectSingle[428∈24] ➊
ᐸpersonᐳ"}}:::plan + First426 --> PgSelectSingle428 + PgClassExpression429{{"PgClassExpression[429∈24] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle428 --> PgClassExpression429 + PgClassExpression430{{"PgClassExpression[430∈24] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle428 --> PgClassExpression430 + First436{{"First[436∈24] ➊"}}:::plan + PgSelectRows437[["PgSelectRows[437∈24] ➊"]]:::plan + PgSelectRows437 --> First436 PgSelect432 --> PgSelectRows437 - __Item438[/"__Item[438∈67]
ᐸ437ᐳ"\]:::itemplan - PgSelectRows437 ==> __Item438 - PgSelectSingle439{{"PgSelectSingle[439∈67]
ᐸint_set_mutationᐳ"}}:::plan - __Item438 --> PgSelectSingle439 - PgClassExpression440{{"PgClassExpression[440∈67]
ᐸ__int_set_mutation__.vᐳ"}}:::plan - PgSelectSingle439 --> PgClassExpression440 - Object446{{"Object[446∈68] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access444{{"Access[444∈68] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access445{{"Access[445∈68] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access444 & Access445 --> Object446 - Object451{{"Object[451∈68] ➊
ᐸ{result,clientMutationId}ᐳ"}}:::plan - PgClassExpression450{{"PgClassExpression[450∈68] ➊
ᐸ__no_args_mutation__.vᐳ"}}:::plan - PgClassExpression450 & Constant702 --> Object451 - PgSelect443[["PgSelect[443∈68] ➊
ᐸno_args_mutation(mutation)ᐳ"]]:::sideeffectplan - Object446 --> PgSelect443 - __Value2 --> Access444 - __Value2 --> Access445 - First447{{"First[447∈68] ➊"}}:::plan - PgSelectRows448[["PgSelectRows[448∈68] ➊"]]:::plan - PgSelectRows448 --> First447 - PgSelect443 --> PgSelectRows448 - PgSelectSingle449{{"PgSelectSingle[449∈68] ➊
ᐸno_args_mutationᐳ"}}:::plan - First447 --> PgSelectSingle449 - PgSelectSingle449 --> PgClassExpression450 - Object457{{"Object[457∈70] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access455{{"Access[455∈70] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access456{{"Access[456∈70] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access455 & Access456 --> Object457 - PgSelect454[["PgSelect[454∈70] ➊
ᐸreturn_void_mutation(mutation)ᐳ"]]:::sideeffectplan - Object457 --> PgSelect454 - __Value2 --> Access455 - __Value2 --> Access456 - First458{{"First[458∈70] ➊"}}:::plan - PgSelectRows459[["PgSelectRows[459∈70] ➊"]]:::plan - PgSelectRows459 --> First458 - PgSelect454 --> PgSelectRows459 - PgSelectSingle460{{"PgSelectSingle[460∈70] ➊
ᐸreturn_void_mutationᐳ"}}:::plan - First458 --> PgSelectSingle460 - PgClassExpression461{{"PgClassExpression[461∈70] ➊
ᐸ__return_v...tation__.vᐳ"}}:::plan - PgSelectSingle460 --> PgClassExpression461 - Object462{{"Object[462∈70] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression461 --> Object462 - PgSelect466[["PgSelect[466∈72] ➊
ᐸguid_fn(mutation)ᐳ"]]:::sideeffectplan - Object469{{"Object[469∈72] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object469 & Constant120 --> PgSelect466 - Access467{{"Access[467∈72] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access468{{"Access[468∈72] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access467 & Access468 --> Object469 - __Value2 --> Access467 - __Value2 --> Access468 - First470{{"First[470∈72] ➊"}}:::plan - PgSelectRows471[["PgSelectRows[471∈72] ➊"]]:::plan - PgSelectRows471 --> First470 - PgSelect466 --> PgSelectRows471 - PgSelectSingle472{{"PgSelectSingle[472∈72] ➊
ᐸguid_fnᐳ"}}:::plan - First470 --> PgSelectSingle472 - PgClassExpression473{{"PgClassExpression[473∈72] ➊
ᐸ__guid_fn__.vᐳ"}}:::plan - PgSelectSingle472 --> PgClassExpression473 - Object474{{"Object[474∈72] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression473 --> Object474 - PgSelect478[["PgSelect[478∈74] ➊
ᐸguid_fn(mutation)ᐳ"]]:::sideeffectplan - Object481{{"Object[481∈74] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object481 & Constant704 --> PgSelect478 - Access479{{"Access[479∈74] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access480{{"Access[480∈74] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access479 & Access480 --> Object481 - __Value2 --> Access479 - __Value2 --> Access480 - First482{{"First[482∈74] ➊"}}:::plan - PgSelectRows483[["PgSelectRows[483∈74] ➊"]]:::plan - PgSelectRows483 --> First482 - PgSelect478 --> PgSelectRows483 - PgSelectSingle484{{"PgSelectSingle[484∈74] ➊
ᐸguid_fnᐳ"}}:::plan - First482 --> PgSelectSingle484 - PgClassExpression485{{"PgClassExpression[485∈74] ➊
ᐸ__guid_fn__.vᐳ"}}:::plan - PgSelectSingle484 --> PgClassExpression485 - Object486{{"Object[486∈74] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression485 --> Object486 - PgSelect536[["PgSelect[536∈76] ➊
ᐸpost_many(mutation)ᐳ"]]:::sideeffectplan - Object539{{"Object[539∈76] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object539 & Constant740 --> PgSelect536 - Access537{{"Access[537∈76] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access538{{"Access[538∈76] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access537 & Access538 --> Object539 - __Value2 --> Access537 - __Value2 --> Access538 - Object540{{"Object[540∈76] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect536 --> Object540 - PgSelectRows541[["PgSelectRows[541∈77] ➊"]]:::plan - PgSelect536 --> PgSelectRows541 - __Item542[/"__Item[542∈78]
ᐸ541ᐳ"\]:::itemplan - PgSelectRows541 ==> __Item542 - PgSelectSingle543{{"PgSelectSingle[543∈78]
ᐸpost_manyᐳ"}}:::plan - __Item542 --> PgSelectSingle543 - PgSelect547[["PgSelect[547∈79]
ᐸfrmcdc_comptypeᐳ"]]:::plan - PgClassExpression546{{"PgClassExpression[546∈79]
ᐸ__post_man...comptypes”ᐳ"}}:::plan - Object539 & PgClassExpression546 --> PgSelect547 - PgClassExpression544{{"PgClassExpression[544∈79]
ᐸ__post_many__.”id”ᐳ"}}:::plan - PgSelectSingle543 --> PgClassExpression544 - PgClassExpression545{{"PgClassExpression[545∈79]
ᐸ__post_man...”headline”ᐳ"}}:::plan - PgSelectSingle543 --> PgClassExpression545 - PgSelectSingle543 --> PgClassExpression546 - PgSelectRows551[["PgSelectRows[551∈79]"]]:::plan - PgSelect547 --> PgSelectRows551 - __Item552[/"__Item[552∈80]
ᐸ551ᐳ"\]:::itemplan - PgSelectRows551 ==> __Item552 - PgSelectSingle553{{"PgSelectSingle[553∈80]
ᐸfrmcdc_comptypeᐳ"}}:::plan - __Item552 --> PgSelectSingle553 - PgClassExpression554{{"PgClassExpression[554∈81]
ᐸ__frmcdc_c...”schedule”ᐳ"}}:::plan - PgSelectSingle553 --> PgClassExpression554 - PgClassExpression555{{"PgClassExpression[555∈81]
ᐸ__frmcdc_c...optimised”ᐳ"}}:::plan - PgSelectSingle553 --> PgClassExpression555 - PgSelect564[["PgSelect[564∈82] ➊
ᐸpost_with_suffix(mutation)ᐳ"]]:::sideeffectplan - Object567{{"Object[567∈82] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object567 & Constant728 & Constant715 --> PgSelect564 - Access565{{"Access[565∈82] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access566{{"Access[566∈82] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access565 & Access566 --> Object567 - __Value2 --> Access565 - __Value2 --> Access566 - First568{{"First[568∈82] ➊"}}:::plan - PgSelectRows569[["PgSelectRows[569∈82] ➊"]]:::plan - PgSelectRows569 --> First568 - PgSelect564 --> PgSelectRows569 - PgSelectSingle570{{"PgSelectSingle[570∈82] ➊
ᐸpost_with_suffixᐳ"}}:::plan - First568 --> PgSelectSingle570 - Object571{{"Object[571∈82] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle570 --> Object571 - PgClassExpression572{{"PgClassExpression[572∈84] ➊
ᐸ__post_wit...fix__.”id”ᐳ"}}:::plan - PgSelectSingle570 --> PgClassExpression572 - PgClassExpression573{{"PgClassExpression[573∈84] ➊
ᐸ__post_wit...”headline”ᐳ"}}:::plan - PgSelectSingle570 --> PgClassExpression573 - Object579{{"Object[579∈85] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access577{{"Access[577∈85] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access578{{"Access[578∈85] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access577 & Access578 --> Object579 - PgSelect576[["PgSelect[576∈85] ➊
ᐸissue756_mutation(mutation)ᐳ"]]:::sideeffectplan - Object579 --> PgSelect576 - __Value2 --> Access577 - __Value2 --> Access578 - First580{{"First[580∈85] ➊"}}:::plan - PgSelectRows581[["PgSelectRows[581∈85] ➊"]]:::plan - PgSelectRows581 --> First580 - PgSelect576 --> PgSelectRows581 - PgSelectSingle582{{"PgSelectSingle[582∈85] ➊
ᐸissue756_mutationᐳ"}}:::plan - First580 --> PgSelectSingle582 - Object583{{"Object[583∈85] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle582 --> Object583 - PgClassExpression584{{"PgClassExpression[584∈87] ➊
ᐸ__issue756...ion__.”id”ᐳ"}}:::plan - PgSelectSingle582 --> PgClassExpression584 - PgClassExpression585{{"PgClassExpression[585∈87] ➊
ᐸ__issue756...ion__.”ts”ᐳ"}}:::plan - PgSelectSingle582 --> PgClassExpression585 - Object591{{"Object[591∈88] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access589{{"Access[589∈88] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access590{{"Access[590∈88] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access589 & Access590 --> Object591 - PgSelect588[["PgSelect[588∈88] ➊
ᐸissue756_set_mutation(mutation)ᐳ"]]:::sideeffectplan - Object591 --> PgSelect588 - __Value2 --> Access589 - __Value2 --> Access590 - Object592{{"Object[592∈88] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect588 --> Object592 - PgSelectRows593[["PgSelectRows[593∈89] ➊"]]:::plan - PgSelect588 --> PgSelectRows593 - __Item594[/"__Item[594∈90]
ᐸ593ᐳ"\]:::itemplan - PgSelectRows593 ==> __Item594 - PgSelectSingle595{{"PgSelectSingle[595∈90]
ᐸissue756_set_mutationᐳ"}}:::plan - __Item594 --> PgSelectSingle595 - PgClassExpression596{{"PgClassExpression[596∈91]
ᐸ__issue756...ion__.”id”ᐳ"}}:::plan - PgSelectSingle595 --> PgClassExpression596 - PgClassExpression597{{"PgClassExpression[597∈91]
ᐸ__issue756...ion__.”ts”ᐳ"}}:::plan - PgSelectSingle595 --> PgClassExpression597 - PgSelect611[["PgSelect[611∈92] ➊
ᐸmutation_compound_type_array(mutation)ᐳ"]]:::sideeffectplan - Object614{{"Object[614∈92] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object614 & Constant736 --> PgSelect611 - Access612{{"Access[612∈92] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access613{{"Access[613∈92] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access612 & Access613 --> Object614 - __Value2 --> Access612 - __Value2 --> Access613 - Object615{{"Object[615∈92] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect611 --> Object615 - PgSelectRows616[["PgSelectRows[616∈93] ➊"]]:::plan - PgSelect611 --> PgSelectRows616 - __Item617[/"__Item[617∈94]
ᐸ616ᐳ"\]:::itemplan + First436 --> PgSelectSingle438 + PgSelect432 --> Access440 + PgClassExpression442{{"PgClassExpression[442∈24] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle438 --> PgClassExpression442 + PgClassExpression443{{"PgClassExpression[443∈24] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle438 --> PgClassExpression443 + PgSelect446[["PgSelect[446∈25] ➊
ᐸtable_set_mutation(mutation)ᐳ"]]:::sideeffectplan + Object449{{"Object[449∈25] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object449 & ApplyInput451 --> PgSelect446 + Access447{{"Access[447∈25] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access448{{"Access[448∈25] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access447 & Access448 --> Object449 + __Value2 --> Access447 + __Value2 --> Access448 + Object450{{"Object[450∈25] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect446 --> Object450 + PgSelectRows452[["PgSelectRows[452∈25] ➊"]]:::plan + PgSelect446 --> PgSelectRows452 + __Item453[/"__Item[453∈26]
ᐸ452ᐳ"\]:::itemplan + PgSelectRows452 ==> __Item453 + PgSelectSingle454{{"PgSelectSingle[454∈26]
ᐸtable_set_mutationᐳ"}}:::plan + __Item453 --> PgSelectSingle454 + PgClassExpression455{{"PgClassExpression[455∈26]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression455 + PgSelect460[["PgSelect[460∈27] ➊
ᐸint_set_mutation(mutation)ᐳ"]]:::sideeffectplan + Object463{{"Object[463∈27] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression464{{"PgFromExpression[464∈27] ➊"}}:::plan + Object463 & PgFromExpression464 & ApplyInput466 --> PgSelect460 + Constant690 & Constant704 --> PgFromExpression464 + Access461{{"Access[461∈27] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access462{{"Access[462∈27] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access461 & Access462 --> Object463 + __Value2 --> Access461 + __Value2 --> Access462 + Object465{{"Object[465∈27] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect460 --> Object465 + PgSelectRows467[["PgSelectRows[467∈27] ➊"]]:::plan + PgSelect460 --> PgSelectRows467 + __Item468[/"__Item[468∈28]
ᐸ467ᐳ"\]:::itemplan + PgSelectRows467 ==> __Item468 + PgSelectSingle469{{"PgSelectSingle[469∈28]
ᐸint_set_mutationᐳ"}}:::plan + __Item468 --> PgSelectSingle469 + PgClassExpression470{{"PgClassExpression[470∈28]
ᐸ__int_set_mutation__.vᐳ"}}:::plan + PgSelectSingle469 --> PgClassExpression470 + PgSelect473[["PgSelect[473∈29] ➊
ᐸno_args_mutation(mutation)ᐳ"]]:::sideeffectplan + Object476{{"Object[476∈29] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object476 & ApplyInput482 --> PgSelect473 + Access474{{"Access[474∈29] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access475{{"Access[475∈29] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access474 & Access475 --> Object476 + __Value2 --> Access474 + __Value2 --> Access475 + First477{{"First[477∈29] ➊"}}:::plan + PgSelectRows478[["PgSelectRows[478∈29] ➊"]]:::plan + PgSelectRows478 --> First477 + PgSelect473 --> PgSelectRows478 + PgSelectSingle479{{"PgSelectSingle[479∈29] ➊
ᐸno_args_mutationᐳ"}}:::plan + First477 --> PgSelectSingle479 + PgClassExpression480{{"PgClassExpression[480∈29] ➊
ᐸ__no_args_mutation__.vᐳ"}}:::plan + PgSelectSingle479 --> PgClassExpression480 + Object481{{"Object[481∈29] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression480 --> Object481 + Access483{{"Access[483∈29] ➊
ᐸ473.m.clientMutationIdᐳ"}}:::plan + PgSelect473 --> Access483 + PgSelect486[["PgSelect[486∈30] ➊
ᐸreturn_void_mutation(mutation)ᐳ"]]:::sideeffectplan + Object489{{"Object[489∈30] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object489 & ApplyInput495 --> PgSelect486 + Access487{{"Access[487∈30] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access488{{"Access[488∈30] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access487 & Access488 --> Object489 + __Value2 --> Access487 + __Value2 --> Access488 + First490{{"First[490∈30] ➊"}}:::plan + PgSelectRows491[["PgSelectRows[491∈30] ➊"]]:::plan + PgSelectRows491 --> First490 + PgSelect486 --> PgSelectRows491 + PgSelectSingle492{{"PgSelectSingle[492∈30] ➊
ᐸreturn_void_mutationᐳ"}}:::plan + First490 --> PgSelectSingle492 + PgClassExpression493{{"PgClassExpression[493∈30] ➊
ᐸ__return_v...tation__.vᐳ"}}:::plan + PgSelectSingle492 --> PgClassExpression493 + Object494{{"Object[494∈30] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression493 --> Object494 + PgSelect499[["PgSelect[499∈31] ➊
ᐸguid_fn(mutation)ᐳ"]]:::sideeffectplan + Object502{{"Object[502∈31] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression503{{"PgFromExpression[503∈31] ➊"}}:::plan + Object502 & PgFromExpression503 & ApplyInput509 --> PgSelect499 + Access500{{"Access[500∈31] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access501{{"Access[501∈31] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access500 & Access501 --> Object502 + __Value2 --> Access500 + __Value2 --> Access501 + Constant498 --> PgFromExpression503 + First504{{"First[504∈31] ➊"}}:::plan + PgSelectRows505[["PgSelectRows[505∈31] ➊"]]:::plan + PgSelectRows505 --> First504 + PgSelect499 --> PgSelectRows505 + PgSelectSingle506{{"PgSelectSingle[506∈31] ➊
ᐸguid_fnᐳ"}}:::plan + First504 --> PgSelectSingle506 + PgClassExpression507{{"PgClassExpression[507∈31] ➊
ᐸ__guid_fn__.vᐳ"}}:::plan + PgSelectSingle506 --> PgClassExpression507 + Object508{{"Object[508∈31] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression507 --> Object508 + PgSelect513[["PgSelect[513∈32] ➊
ᐸguid_fn(mutation)ᐳ"]]:::sideeffectplan + Object516{{"Object[516∈32] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression517{{"PgFromExpression[517∈32] ➊"}}:::plan + Object516 & PgFromExpression517 & ApplyInput523 --> PgSelect513 + Access514{{"Access[514∈32] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access515{{"Access[515∈32] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access514 & Access515 --> Object516 + __Value2 --> Access514 + __Value2 --> Access515 + Constant706 --> PgFromExpression517 + First518{{"First[518∈32] ➊"}}:::plan + PgSelectRows519[["PgSelectRows[519∈32] ➊"]]:::plan + PgSelectRows519 --> First518 + PgSelect513 --> PgSelectRows519 + PgSelectSingle520{{"PgSelectSingle[520∈32] ➊
ᐸguid_fnᐳ"}}:::plan + First518 --> PgSelectSingle520 + PgClassExpression521{{"PgClassExpression[521∈32] ➊
ᐸ__guid_fn__.vᐳ"}}:::plan + PgSelectSingle520 --> PgClassExpression521 + Object522{{"Object[522∈32] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression521 --> Object522 + PgSelect528[["PgSelect[528∈33] ➊
ᐸpost_many(mutation)ᐳ"]]:::sideeffectplan + Object531{{"Object[531∈33] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression532{{"PgFromExpression[532∈33] ➊"}}:::plan + Object531 & PgFromExpression532 & ApplyInput534 --> PgSelect528 + Access529{{"Access[529∈33] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access530{{"Access[530∈33] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access529 & Access530 --> Object531 + __Value2 --> Access529 + __Value2 --> Access530 + BakedInput527 --> PgFromExpression532 + Object533{{"Object[533∈33] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect528 --> Object533 + PgSelectRows535[["PgSelectRows[535∈33] ➊"]]:::plan + PgSelect528 --> PgSelectRows535 + PgSelect541[["PgSelect[541∈34]
ᐸfrmcdc_comptypeᐳ"]]:::plan + PgClassExpression540{{"PgClassExpression[540∈34]
ᐸ__post_man...comptypes”ᐳ"}}:::plan + PgFromExpression545{{"PgFromExpression[545∈34] ➊"}}:::plan + Object531 & PgClassExpression540 & PgFromExpression545 --> PgSelect541 + __Item536[/"__Item[536∈34]
ᐸ535ᐳ"\]:::itemplan + PgSelectRows535 ==> __Item536 + PgSelectSingle537{{"PgSelectSingle[537∈34]
ᐸpost_manyᐳ"}}:::plan + __Item536 --> PgSelectSingle537 + PgClassExpression538{{"PgClassExpression[538∈34]
ᐸ__post_many__.”id”ᐳ"}}:::plan + PgSelectSingle537 --> PgClassExpression538 + PgClassExpression539{{"PgClassExpression[539∈34]
ᐸ__post_man...”headline”ᐳ"}}:::plan + PgSelectSingle537 --> PgClassExpression539 + PgSelectSingle537 --> PgClassExpression540 + PgSelectRows546[["PgSelectRows[546∈34]"]]:::plan + PgSelect541 --> PgSelectRows546 + __Item547[/"__Item[547∈35]
ᐸ546ᐳ"\]:::itemplan + PgSelectRows546 ==> __Item547 + PgSelectSingle548{{"PgSelectSingle[548∈35]
ᐸfrmcdc_comptypeᐳ"}}:::plan + __Item547 --> PgSelectSingle548 + PgClassExpression549{{"PgClassExpression[549∈35]
ᐸ__frmcdc_c...”schedule”ᐳ"}}:::plan + PgSelectSingle548 --> PgClassExpression549 + PgClassExpression550{{"PgClassExpression[550∈35]
ᐸ__frmcdc_c...optimised”ᐳ"}}:::plan + PgSelectSingle548 --> PgClassExpression550 + PgSelect559[["PgSelect[559∈36] ➊
ᐸpost_with_suffix(mutation)ᐳ"]]:::sideeffectplan + Object562{{"Object[562∈36] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression563{{"PgFromExpression[563∈36] ➊"}}:::plan + Object562 & PgFromExpression563 & ApplyInput568 --> PgSelect559 + Access560{{"Access[560∈36] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access561{{"Access[561∈36] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access560 & Access561 --> Object562 + BakedInput558 & Constant710 --> PgFromExpression563 + __Value2 --> Access560 + __Value2 --> Access561 + First564{{"First[564∈36] ➊"}}:::plan + PgSelectRows565[["PgSelectRows[565∈36] ➊"]]:::plan + PgSelectRows565 --> First564 + PgSelect559 --> PgSelectRows565 + PgSelectSingle566{{"PgSelectSingle[566∈36] ➊
ᐸpost_with_suffixᐳ"}}:::plan + First564 --> PgSelectSingle566 + Object567{{"Object[567∈36] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle566 --> Object567 + PgClassExpression569{{"PgClassExpression[569∈36] ➊
ᐸ__post_wit...fix__.”id”ᐳ"}}:::plan + PgSelectSingle566 --> PgClassExpression569 + PgClassExpression570{{"PgClassExpression[570∈36] ➊
ᐸ__post_wit...”headline”ᐳ"}}:::plan + PgSelectSingle566 --> PgClassExpression570 + PgSelect573[["PgSelect[573∈37] ➊
ᐸissue756_mutation(mutation)ᐳ"]]:::sideeffectplan + Object576{{"Object[576∈37] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object576 & ApplyInput581 --> PgSelect573 + Access574{{"Access[574∈37] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access575{{"Access[575∈37] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access574 & Access575 --> Object576 + __Value2 --> Access574 + __Value2 --> Access575 + First577{{"First[577∈37] ➊"}}:::plan + PgSelectRows578[["PgSelectRows[578∈37] ➊"]]:::plan + PgSelectRows578 --> First577 + PgSelect573 --> PgSelectRows578 + PgSelectSingle579{{"PgSelectSingle[579∈37] ➊
ᐸissue756_mutationᐳ"}}:::plan + First577 --> PgSelectSingle579 + Object580{{"Object[580∈37] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle579 --> Object580 + PgClassExpression582{{"PgClassExpression[582∈37] ➊
ᐸ__issue756...ion__.”id”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression582 + PgClassExpression583{{"PgClassExpression[583∈37] ➊
ᐸ__issue756...ion__.”ts”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression583 + PgSelect586[["PgSelect[586∈38] ➊
ᐸissue756_set_mutation(mutation)ᐳ"]]:::sideeffectplan + Object589{{"Object[589∈38] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object589 & ApplyInput591 --> PgSelect586 + Access587{{"Access[587∈38] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access588{{"Access[588∈38] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access587 & Access588 --> Object589 + __Value2 --> Access587 + __Value2 --> Access588 + Object590{{"Object[590∈38] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect586 --> Object590 + PgSelectRows592[["PgSelectRows[592∈38] ➊"]]:::plan + PgSelect586 --> PgSelectRows592 + __Item593[/"__Item[593∈39]
ᐸ592ᐳ"\]:::itemplan + PgSelectRows592 ==> __Item593 + PgSelectSingle594{{"PgSelectSingle[594∈39]
ᐸissue756_set_mutationᐳ"}}:::plan + __Item593 --> PgSelectSingle594 + PgClassExpression595{{"PgClassExpression[595∈39]
ᐸ__issue756...ion__.”id”ᐳ"}}:::plan + PgSelectSingle594 --> PgClassExpression595 + PgClassExpression596{{"PgClassExpression[596∈39]
ᐸ__issue756...ion__.”ts”ᐳ"}}:::plan + PgSelectSingle594 --> PgClassExpression596 + PgSelect609[["PgSelect[609∈40] ➊
ᐸmutation_compound_type_array(mutation)ᐳ"]]:::sideeffectplan + Object612{{"Object[612∈40] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression613{{"PgFromExpression[613∈40] ➊"}}:::plan + Object612 & PgFromExpression613 & ApplyInput615 --> PgSelect609 + Access610{{"Access[610∈40] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access611{{"Access[611∈40] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access610 & Access611 --> Object612 + __Value2 --> Access610 + __Value2 --> Access611 + BakedInput608 --> PgFromExpression613 + Object614{{"Object[614∈40] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect609 --> Object614 + PgSelectRows616[["PgSelectRows[616∈40] ➊"]]:::plan + PgSelect609 --> PgSelectRows616 + __Item617[/"__Item[617∈41]
ᐸ616ᐳ"\]:::itemplan PgSelectRows616 ==> __Item617 - PgSelectSingle618{{"PgSelectSingle[618∈94]
ᐸmutation_compound_type_arrayᐳ"}}:::plan + PgSelectSingle618{{"PgSelectSingle[618∈41]
ᐸmutation_compound_type_arrayᐳ"}}:::plan __Item617 --> PgSelectSingle618 - PgClassExpression619{{"PgClassExpression[619∈95]
ᐸ__mutation...rray__.”a”ᐳ"}}:::plan + PgClassExpression619{{"PgClassExpression[619∈41]
ᐸ__mutation...rray__.”a”ᐳ"}}:::plan PgSelectSingle618 --> PgClassExpression619 - PgClassExpression620{{"PgClassExpression[620∈95]
ᐸ__mutation...rray__.”b”ᐳ"}}:::plan + PgClassExpression620{{"PgClassExpression[620∈41]
ᐸ__mutation...rray__.”b”ᐳ"}}:::plan PgSelectSingle618 --> PgClassExpression620 - PgClassExpression621{{"PgClassExpression[621∈95]
ᐸ__mutation...rray__.”c”ᐳ"}}:::plan + PgClassExpression621{{"PgClassExpression[621∈41]
ᐸ__mutation...rray__.”c”ᐳ"}}:::plan PgSelectSingle618 --> PgClassExpression621 - PgClassExpression622{{"PgClassExpression[622∈95]
ᐸ__mutation...rray__.”d”ᐳ"}}:::plan + PgClassExpression622{{"PgClassExpression[622∈41]
ᐸ__mutation...rray__.”d”ᐳ"}}:::plan PgSelectSingle618 --> PgClassExpression622 - PgClassExpression623{{"PgClassExpression[623∈95]
ᐸ__mutation...rray__.”e”ᐳ"}}:::plan + PgClassExpression623{{"PgClassExpression[623∈41]
ᐸ__mutation...rray__.”e”ᐳ"}}:::plan PgSelectSingle618 --> PgClassExpression623 - PgClassExpression624{{"PgClassExpression[624∈95]
ᐸ__mutation...rray__.”f”ᐳ"}}:::plan + PgClassExpression624{{"PgClassExpression[624∈41]
ᐸ__mutation...rray__.”f”ᐳ"}}:::plan PgSelectSingle618 --> PgClassExpression624 - PgClassExpression625{{"PgClassExpression[625∈95]
ᐸ__mutation...rray__.”g”ᐳ"}}:::plan + PgClassExpression625{{"PgClassExpression[625∈41]
ᐸ__mutation...rray__.”g”ᐳ"}}:::plan PgSelectSingle618 --> PgClassExpression625 - PgClassExpression629{{"PgClassExpression[629∈95]
ᐸ__mutation....”foo_bar”ᐳ"}}:::plan + PgClassExpression629{{"PgClassExpression[629∈41]
ᐸ__mutation....”foo_bar”ᐳ"}}:::plan PgSelectSingle618 --> PgClassExpression629 - Object635{{"Object[635∈97] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access633{{"Access[633∈97] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access634{{"Access[634∈97] ➊
ᐸ2.withPgClientᐳ"}}:::plan + PgSelect632[["PgSelect[632∈42] ➊
ᐸmutation_text_array(mutation)ᐳ"]]:::sideeffectplan + Object635{{"Object[635∈42] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object635 & ApplyInput641 --> PgSelect632 + Access633{{"Access[633∈42] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access634{{"Access[634∈42] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access633 & Access634 --> Object635 - PgSelect632[["PgSelect[632∈97] ➊
ᐸmutation_text_array(mutation)ᐳ"]]:::sideeffectplan - Object635 --> PgSelect632 __Value2 --> Access633 __Value2 --> Access634 - First636{{"First[636∈97] ➊"}}:::plan - PgSelectRows637[["PgSelectRows[637∈97] ➊"]]:::plan + First636{{"First[636∈42] ➊"}}:::plan + PgSelectRows637[["PgSelectRows[637∈42] ➊"]]:::plan PgSelectRows637 --> First636 PgSelect632 --> PgSelectRows637 - PgSelectSingle638{{"PgSelectSingle[638∈97] ➊
ᐸmutation_text_arrayᐳ"}}:::plan + PgSelectSingle638{{"PgSelectSingle[638∈42] ➊
ᐸmutation_text_arrayᐳ"}}:::plan First636 --> PgSelectSingle638 - PgClassExpression639{{"PgClassExpression[639∈97] ➊
ᐸ__mutation..._array__.vᐳ"}}:::plan + PgClassExpression639{{"PgClassExpression[639∈42] ➊
ᐸ__mutation..._array__.vᐳ"}}:::plan PgSelectSingle638 --> PgClassExpression639 - Object640{{"Object[640∈97] ➊
ᐸ{result}ᐳ"}}:::plan + Object640{{"Object[640∈42] ➊
ᐸ{result}ᐳ"}}:::plan PgClassExpression639 --> Object640 - __Item641[/"__Item[641∈99]
ᐸ639ᐳ"\]:::itemplan - PgClassExpression639 ==> __Item641 - Object647{{"Object[647∈100] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access645{{"Access[645∈100] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access646{{"Access[646∈100] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access645 & Access646 --> Object647 - PgSelect644[["PgSelect[644∈100] ➊
ᐸmutation_interval_array(mutation)ᐳ"]]:::sideeffectplan - Object647 --> PgSelect644 - __Value2 --> Access645 + __Item642[/"__Item[642∈43]
ᐸ639ᐳ"\]:::itemplan + PgClassExpression639 ==> __Item642 + PgSelect645[["PgSelect[645∈44] ➊
ᐸmutation_interval_array(mutation)ᐳ"]]:::sideeffectplan + Object648{{"Object[648∈44] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object648 & ApplyInput654 --> PgSelect645 + Access646{{"Access[646∈44] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access647{{"Access[647∈44] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access646 & Access647 --> Object648 __Value2 --> Access646 - First648{{"First[648∈100] ➊"}}:::plan - PgSelectRows649[["PgSelectRows[649∈100] ➊"]]:::plan - PgSelectRows649 --> First648 - PgSelect644 --> PgSelectRows649 - PgSelectSingle650{{"PgSelectSingle[650∈100] ➊
ᐸmutation_interval_arrayᐳ"}}:::plan - First648 --> PgSelectSingle650 - PgClassExpression651{{"PgClassExpression[651∈100] ➊
ᐸ__mutation..._array__.vᐳ"}}:::plan - PgSelectSingle650 --> PgClassExpression651 - Object652{{"Object[652∈100] ➊
ᐸ{result}ᐳ"}}:::plan - PgClassExpression651 --> Object652 - __Item653[/"__Item[653∈102]
ᐸ651ᐳ"\]:::itemplan - PgClassExpression651 ==> __Item653 - Object665{{"Object[665∈104] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access663{{"Access[663∈104] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access664{{"Access[664∈104] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access663 & Access664 --> Object665 - PgSelect662[["PgSelect[662∈104] ➊
ᐸmutation_interval_set(mutation)ᐳ"]]:::sideeffectplan - Object665 --> PgSelect662 - __Value2 --> Access663 - __Value2 --> Access664 - Object666{{"Object[666∈104] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect662 --> Object666 - PgSelectRows667[["PgSelectRows[667∈105] ➊"]]:::plan - PgSelect662 --> PgSelectRows667 - __Item668[/"__Item[668∈106]
ᐸ667ᐳ"\]:::itemplan - PgSelectRows667 ==> __Item668 - PgSelectSingle669{{"PgSelectSingle[669∈106]
ᐸmutation_interval_setᐳ"}}:::plan - __Item668 --> PgSelectSingle669 - PgClassExpression670{{"PgClassExpression[670∈106]
ᐸ__mutation...al_set__.vᐳ"}}:::plan - PgSelectSingle669 --> PgClassExpression670 + __Value2 --> Access647 + First649{{"First[649∈44] ➊"}}:::plan + PgSelectRows650[["PgSelectRows[650∈44] ➊"]]:::plan + PgSelectRows650 --> First649 + PgSelect645 --> PgSelectRows650 + PgSelectSingle651{{"PgSelectSingle[651∈44] ➊
ᐸmutation_interval_arrayᐳ"}}:::plan + First649 --> PgSelectSingle651 + PgClassExpression652{{"PgClassExpression[652∈44] ➊
ᐸ__mutation..._array__.vᐳ"}}:::plan + PgSelectSingle651 --> PgClassExpression652 + Object653{{"Object[653∈44] ➊
ᐸ{result}ᐳ"}}:::plan + PgClassExpression652 --> Object653 + __Item655[/"__Item[655∈45]
ᐸ652ᐳ"\]:::itemplan + PgClassExpression652 ==> __Item655 + PgSelect664[["PgSelect[664∈46] ➊
ᐸmutation_interval_set(mutation)ᐳ"]]:::sideeffectplan + Object667{{"Object[667∈46] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object667 & ApplyInput669 --> PgSelect664 + Access665{{"Access[665∈46] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access666{{"Access[666∈46] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access665 & Access666 --> Object667 + __Value2 --> Access665 + __Value2 --> Access666 + Object668{{"Object[668∈46] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect664 --> Object668 + PgSelectRows670[["PgSelectRows[670∈46] ➊"]]:::plan + PgSelect664 --> PgSelectRows670 + __Item671[/"__Item[671∈47]
ᐸ670ᐳ"\]:::itemplan + PgSelectRows670 ==> __Item671 + PgSelectSingle672{{"PgSelectSingle[672∈47]
ᐸmutation_interval_setᐳ"}}:::plan + __Item671 --> PgSelectSingle672 + PgClassExpression673{{"PgClassExpression[673∈47]
ᐸ__mutation...al_set__.vᐳ"}}:::plan + PgSelectSingle672 --> PgClassExpression673 %% define steps + %% implicit side effects + PgSelect369 -.-o Connection396 + PgSelect408 -.-o Connection435 + subgraph "Buckets for mutations/v4/procedure-mutation" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant7,Access10,Access11,Object12,Constant120,Constant345,Constant677,Constant678,Constant679,Constant680,Constant681,Constant682,Constant683,Constant684,Constant685,Constant686,Constant687,Constant688,Constant689,Constant690,Constant691,Constant692,Constant693,Constant700,Constant701,Constant702,Constant704,Constant715,Constant722,Constant728,Constant729,Constant730,Constant736,Constant740 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 12, 677

1: PgSelect[9]
2: PgSelectRows[14]
ᐳ: 13, 15, 16, 17"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Access10,Access11,Object12,PgFromExpression13,ApplyInput19,__InputObject20,ApplyInput33,__InputObject34,ApplyInput47,__InputObject48,ApplyInput61,__InputObject62,ApplyInput75,__InputObject76,ApplyInput88,__InputObject89,ApplyInput102,__InputObject103,ApplyInput117,__InputObject119,ApplyInput133,__InputObject135,ApplyInput149,__InputObject151,ApplyInput165,__InputObject166,ApplyInput180,__InputObject181,ApplyInput195,__InputObject196,ApplyInput210,__InputObject211,ApplyInput225,__InputObject226,ApplyInput240,__InputObject241,Constant246,__InputObject248,__InputObject249,__InputObject252,BakedInput255,ApplyInput266,__InputObject267,__InputObject269,__InputObject275,BakedInput278,ApplyInput288,__InputObject300,__InputObject302,__InputObject308,BakedInput311,ApplyInput318,__InputObject333,__InputObject335,__InputObject341,BakedInput344,ApplyInput351,__InputObject366,ApplyInput378,Constant379,__InputObject405,ApplyInput417,__InputObject444,ApplyInput451,__InputObject456,ApplyInput466,__InputObject471,ApplyInput482,__InputObject484,ApplyInput495,__InputObject496,Constant498,ApplyInput509,__InputObject510,ApplyInput523,__InputObject524,Constant526,BakedInput527,ApplyInput534,__InputObject551,__InputObject553,BakedInput558,ApplyInput568,__InputObject571,ApplyInput581,__InputObject584,ApplyInput591,__InputObject597,__InputObject599,__InputObject605,BakedInput608,ApplyInput615,__InputObject630,ApplyInput641,__InputObject643,ApplyInput654,__InputObject662,ApplyInput669,Constant680,Constant681,Constant682,Constant683,Constant684,Constant685,Constant686,Constant687,Constant688,Constant689,Constant690,Constant691,Constant692,Constant693,Constant694,Constant695,Constant696,Constant697,Constant698,Constant699,Constant700,Constant701,Constant702,Constant703,Constant704,Constant705,Constant706,Constant707,Constant708,Constant709,Constant710,Constant711 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 12, 13, 19

1: PgSelect[9]
2: PgSelectRows[15]
ᐳ: 14, 16, 17, 18"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect9,First13,PgSelectRows14,PgSelectSingle15,PgClassExpression16,Object17 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 17, 16

ROOT Object{1}ᐸ{result}ᐳ[17]"):::bucket + class Bucket1,PgSelect9,First14,PgSelectRows15,PgSelectSingle16,PgClassExpression17,Object18 bucket1 + Bucket2("Bucket 2 (mutationField)
Deps: 33, 2, 681

1: Access[24]
2: Access[25]
3: Object[26]
4: PgFromExpression[27]
5: PgSelect[23]
6: PgSelectRows[29]
ᐳ: 28, 30, 31, 32"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (mutationField)
Deps: 678, 2

1: Access[22]
2: Access[23]
3: Object[24]
4: PgSelect[21]
5: PgSelectRows[26]
ᐳ: 25, 27, 28, 29"):::bucket + class Bucket2,PgSelect23,Access24,Access25,Object26,PgFromExpression27,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,Object32 bucket2 + Bucket3("Bucket 3 (mutationField)
Deps: 47, 2, 682

1: Access[38]
2: Access[39]
3: Object[40]
4: PgFromExpression[41]
5: PgSelect[37]
6: PgSelectRows[43]
ᐳ: 42, 44, 45, 46"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgSelect21,Access22,Access23,Object24,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression28,Object29 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 29, 28

ROOT Object{3}ᐸ{result}ᐳ[29]"):::bucket + class Bucket3,PgSelect37,Access38,Access39,Object40,PgFromExpression41,First42,PgSelectRows43,PgSelectSingle44,PgClassExpression45,Object46 bucket3 + Bucket4("Bucket 4 (mutationField)
Deps: 61, 2, 683

1: Access[52]
2: Access[53]
3: Object[54]
4: PgFromExpression[55]
5: PgSelect[51]
6: PgSelectRows[57]
ᐳ: 56, 58, 59, 60"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4 bucket4 - Bucket5("Bucket 5 (mutationField)
Deps: 679, 2

1: Access[34]
2: Access[35]
3: Object[36]
4: PgSelect[33]
5: PgSelectRows[38]
ᐳ: 37, 39, 40, 41"):::bucket + class Bucket4,PgSelect51,Access52,Access53,Object54,PgFromExpression55,First56,PgSelectRows57,PgSelectSingle58,PgClassExpression59,Object60 bucket4 + Bucket5("Bucket 5 (mutationField)
Deps: 75, 2, 684

1: Access[66]
2: Access[67]
3: Object[68]
4: PgFromExpression[69]
5: PgSelect[65]
6: PgSelectRows[71]
ᐳ: 70, 72, 73, 74"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect33,Access34,Access35,Object36,First37,PgSelectRows38,PgSelectSingle39,PgClassExpression40,Object41 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 41, 40

ROOT Object{5}ᐸ{result}ᐳ[41]"):::bucket + class Bucket5,PgSelect65,Access66,Access67,Object68,PgFromExpression69,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression73,Object74 bucket5 + Bucket6("Bucket 6 (mutationField)
Deps: 88, 2, 7

1: Access[79]
2: Access[80]
3: Object[81]
4: PgFromExpression[82]
5: PgSelect[78]
6: PgSelectRows[84]
ᐳ: 83, 85, 86, 87"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6 bucket6 - Bucket7("Bucket 7 (mutationField)
Deps: 680, 2

1: Access[46]
2: Access[47]
3: Object[48]
4: PgSelect[45]
5: PgSelectRows[50]
ᐳ: 49, 51, 52, 53"):::bucket + class Bucket6,PgSelect78,Access79,Access80,Object81,PgFromExpression82,First83,PgSelectRows84,PgSelectSingle85,PgClassExpression86,Object87 bucket6 + Bucket7("Bucket 7 (mutationField)
Deps: 102, 2, 685

1: Access[93]
2: Access[94]
3: Object[95]
4: PgFromExpression[96]
5: PgSelect[92]
6: PgSelectRows[98]
ᐳ: 97, 99, 100, 101"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgSelect45,Access46,Access47,Object48,First49,PgSelectRows50,PgSelectSingle51,PgClassExpression52,Object53 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 53, 52

ROOT Object{7}ᐸ{result}ᐳ[53]"):::bucket + class Bucket7,PgSelect92,Access93,Access94,Object95,PgFromExpression96,First97,PgSelectRows98,PgSelectSingle99,PgClassExpression100,Object101 bucket7 + Bucket8("Bucket 8 (mutationField)
Deps: 117, 2, 686, 687

1: Access[108]
2: Access[109]
3: Object[110]
4: PgFromExpression[111]
5: PgSelect[107]
6: PgSelectRows[113]
ᐳ: 118, 112, 114, 115, 116"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8 bucket8 - Bucket9("Bucket 9 (mutationField)
Deps: 681, 2

1: Access[58]
2: Access[59]
3: Object[60]
4: PgSelect[57]
5: PgSelectRows[62]
ᐳ: 61, 63, 64, 65"):::bucket + class Bucket8,PgSelect107,Access108,Access109,Object110,PgFromExpression111,First112,PgSelectRows113,PgSelectSingle114,PgClassExpression115,Object116,Access118 bucket8 + Bucket9("Bucket 9 (mutationField)
Deps: 133, 2, 687

1: Access[124]
2: Access[125]
3: Object[126]
4: PgFromExpression[127]
5: PgSelect[123]
6: PgSelectRows[129]
ᐳ: 134, 128, 130, 131, 132"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,PgSelect57,Access58,Access59,Object60,First61,PgSelectRows62,PgSelectSingle63,PgClassExpression64,Object65 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 65, 64

ROOT Object{9}ᐸ{result}ᐳ[65]"):::bucket + class Bucket9,PgSelect123,Access124,Access125,Object126,PgFromExpression127,First128,PgSelectRows129,PgSelectSingle130,PgClassExpression131,Object132,Access134 bucket9 + Bucket10("Bucket 10 (mutationField)
Deps: 149, 2, 7, 690

1: Access[140]
2: Access[141]
3: Object[142]
4: PgFromExpression[143]
5: PgSelect[139]
6: PgSelectRows[145]
ᐳ: 150, 144, 146, 147, 148"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10 bucket10 - Bucket11("Bucket 11 (mutationField)
Deps: 2

1: Access[69]
2: Access[70]
3: Object[71]
4: PgSelect[68]
5: PgSelectRows[73]
ᐳ: 72, 74, 75, 76"):::bucket + class Bucket10,PgSelect139,Access140,Access141,Object142,PgFromExpression143,First144,PgSelectRows145,PgSelectSingle146,PgClassExpression147,Object148,Access150 bucket10 + Bucket11("Bucket 11 (mutationField)
Deps: 165, 2, 686, 691

1: Access[156]
2: Access[157]
3: Object[158]
4: PgFromExpression[159]
5: PgSelect[155]
6: PgSelectRows[161]
ᐳ: 160, 162, 163, 164"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11,PgSelect68,Access69,Access70,Object71,First72,PgSelectRows73,PgSelectSingle74,PgClassExpression75,Object76 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 76, 75

ROOT Object{11}ᐸ{result}ᐳ[76]"):::bucket + class Bucket11,PgSelect155,Access156,Access157,Object158,PgFromExpression159,First160,PgSelectRows161,PgSelectSingle162,PgClassExpression163,Object164 bucket11 + Bucket12("Bucket 12 (mutationField)
Deps: 180, 2, 686, 691

1: Access[171]
2: Access[172]
3: Object[173]
4: PgFromExpression[174]
5: PgSelect[170]
6: PgSelectRows[176]
ᐳ: 175, 177, 178, 179"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12 bucket12 - Bucket13("Bucket 13 (mutationField)
Deps: 682, 2

1: Access[81]
2: Access[82]
3: Object[83]
4: PgSelect[80]
5: PgSelectRows[85]
ᐳ: 84, 86, 87, 88"):::bucket + class Bucket12,PgSelect170,Access171,Access172,Object173,PgFromExpression174,First175,PgSelectRows176,PgSelectSingle177,PgClassExpression178,Object179 bucket12 + Bucket13("Bucket 13 (mutationField)
Deps: 195, 2, 692, 686

1: Access[186]
2: Access[187]
3: Object[188]
4: PgFromExpression[189]
5: PgSelect[185]
6: PgSelectRows[191]
ᐳ: 190, 192, 193, 194"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13,PgSelect80,Access81,Access82,Object83,First84,PgSelectRows85,PgSelectSingle86,PgClassExpression87,Object88 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 88, 87

ROOT Object{13}ᐸ{result}ᐳ[88]"):::bucket + class Bucket13,PgSelect185,Access186,Access187,Object188,PgFromExpression189,First190,PgSelectRows191,PgSelectSingle192,PgClassExpression193,Object194 bucket13 + Bucket14("Bucket 14 (mutationField)
Deps: 210, 2, 686

1: Access[201]
2: Access[202]
3: Object[203]
4: PgFromExpression[204]
5: PgSelect[200]
6: PgSelectRows[206]
ᐳ: 205, 207, 208, 209"):::bucket classDef bucket14 stroke:#a52a2a - class Bucket14 bucket14 - Bucket15("Bucket 15 (mutationField)
Deps: 683, 684, 2, 7

1: Access[94]
2: Access[95]
3: Object[96]
4: PgSelect[93]
5: PgSelectRows[98]
ᐳ: 97, 99, 100, 101"):::bucket + class Bucket14,PgSelect200,Access201,Access202,Object203,PgFromExpression204,First205,PgSelectRows206,PgSelectSingle207,PgClassExpression208,Object209 bucket14 + Bucket15("Bucket 15 (mutationField)
Deps: 225, 2, 686, 687

1: Access[216]
2: Access[217]
3: Object[218]
4: PgFromExpression[219]
5: PgSelect[215]
6: PgSelectRows[221]
ᐳ: 220, 222, 223, 224"):::bucket classDef bucket15 stroke:#ff00ff - class Bucket15,PgSelect93,Access94,Access95,Object96,First97,PgSelectRows98,PgSelectSingle99,PgClassExpression100,Object101 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 101, 7, 100

ROOT Object{15}ᐸ{result}ᐳ[101]"):::bucket + class Bucket15,PgSelect215,Access216,Access217,Object218,PgFromExpression219,First220,PgSelectRows221,PgSelectSingle222,PgClassExpression223,Object224 bucket15 + Bucket16("Bucket 16 (mutationField)
Deps: 240, 2, 690, 687

1: Access[231]
2: Access[232]
3: Object[233]
4: PgFromExpression[234]
5: PgSelect[230]
6: PgSelectRows[236]
ᐳ: 235, 237, 238, 239"):::bucket classDef bucket16 stroke:#f5deb3 - class Bucket16 bucket16 - Bucket17("Bucket 17 (mutationField)
Deps: 684, 2, 685

1: Access[108]
2: Access[109]
3: Object[110]
4: PgSelect[107]
5: PgSelectRows[112]
ᐳ: 111, 113, 114, 115"):::bucket + class Bucket16,PgSelect230,Access231,Access232,Object233,PgFromExpression234,First235,PgSelectRows236,PgSelectSingle237,PgClassExpression238,Object239 bucket16 + Bucket17("Bucket 17 (mutationField)
Deps: 266, 2, 693, 694, 695, 255, 696, 248

1: Access[257]
2: Access[258]
3: Object[259]
4: PgFromExpression[260]
5: PgSelect[256]
6: PgSelectRows[262]
ᐳ: 261, 263, 264, 265"):::bucket classDef bucket17 stroke:#696969 - class Bucket17,PgSelect107,Access108,Access109,Object110,First111,PgSelectRows112,PgSelectSingle113,PgClassExpression114,Object115 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 115, 685, 114

ROOT Object{17}ᐸ{result,clientMutationId}ᐳ[115]"):::bucket + class Bucket17,PgSelect256,Access257,Access258,Object259,PgFromExpression260,First261,PgSelectRows262,PgSelectSingle263,PgClassExpression264,Object265 bucket17 + Bucket18("Bucket 18 (mutationField)
Deps: 288, 2, 278

1: Access[280]
2: Access[281]
3: Object[282]
4: PgFromExpression[283]
5: PgSelect[279]
6: PgSelectRows[285]
ᐳ: 284, 286, 287, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299"):::bucket classDef bucket18 stroke:#00bfff - class Bucket18 bucket18 - Bucket19("Bucket 19 (mutationField)
Deps: 120, 687, 2, 686

1: Access[122]
2: Access[123]
3: Object[124]
4: PgSelect[121]
5: PgSelectRows[126]
ᐳ: 125, 127, 128, 129"):::bucket + class Bucket18,PgSelect279,Access280,Access281,Object282,PgFromExpression283,First284,PgSelectRows285,PgSelectSingle286,Object287,PgClassExpression289,PgClassExpression290,PgClassExpression291,PgClassExpression292,PgClassExpression293,PgClassExpression294,PgClassExpression295,Access296,Access297,Access298,PgClassExpression299 bucket18 + Bucket19("Bucket 19 (mutationField)
Deps: 318, 2, 311

1: Access[313]
2: Access[314]
3: Object[315]
4: PgFromExpression[316]
5: PgSelect[312]
6: PgSelectRows[319]
ᐳ: Object[317]"):::bucket classDef bucket19 stroke:#7f007f - class Bucket19,PgSelect121,Access122,Access123,Object124,First125,PgSelectRows126,PgSelectSingle127,PgClassExpression128,Object129 bucket19 - Bucket20("Bucket 20 (nullableBoundary)
Deps: 129, 686, 128

ROOT Object{19}ᐸ{result,clientMutationId}ᐳ[129]"):::bucket + class Bucket19,PgSelect312,Access313,Access314,Object315,PgFromExpression316,Object317,PgSelectRows319 bucket19 + Bucket20("Bucket 20 (listItem)

ROOT __Item{20}ᐸ319ᐳ[320]"):::bucket classDef bucket20 stroke:#ffa500 - class Bucket20 bucket20 - Bucket21("Bucket 21 (mutationField)
Deps: 683, 688, 2

1: Access[135]
2: Access[136]
3: Object[137]
4: PgSelect[134]
5: PgSelectRows[139]
ᐳ: 138, 140, 141, 142"):::bucket + class Bucket20,__Item320,PgSelectSingle321,PgClassExpression322,PgClassExpression323,PgClassExpression324,PgClassExpression325,PgClassExpression326,PgClassExpression327,PgClassExpression328,PgClassExpression332 bucket20 + Bucket21("Bucket 21 (mutationField)
Deps: 351, 2, 344

1: Access[346]
2: Access[347]
3: Object[348]
4: PgFromExpression[349]
5: PgSelect[345]
6: PgSelectRows[352]
ᐳ: Object[350]"):::bucket classDef bucket21 stroke:#0000ff - class Bucket21,PgSelect134,Access135,Access136,Object137,First138,PgSelectRows139,PgSelectSingle140,PgClassExpression141,Object142 bucket21 - Bucket22("Bucket 22 (nullableBoundary)
Deps: 142, 141

ROOT Object{21}ᐸ{result}ᐳ[142]"):::bucket + class Bucket21,PgSelect345,Access346,Access347,Object348,PgFromExpression349,Object350,PgSelectRows352 bucket21 + Bucket22("Bucket 22 (listItem)

ROOT __Item{22}ᐸ352ᐳ[353]"):::bucket classDef bucket22 stroke:#7fff00 - class Bucket22 bucket22 - Bucket23("Bucket 23 (mutationField)
Deps: 683, 688, 2

1: Access[148]
2: Access[149]
3: Object[150]
4: PgSelect[147]
5: PgSelectRows[152]
ᐳ: 151, 153, 154, 155"):::bucket + class Bucket22,__Item353,PgSelectSingle354,PgClassExpression355,PgClassExpression356,PgClassExpression357,PgClassExpression358,PgClassExpression359,PgClassExpression360,PgClassExpression361,PgClassExpression365 bucket22 + Bucket23("Bucket 23 (mutationField)
Deps: 378, 2, 690, 379

1: Access[370]
2: Access[371]
3: Object[372]
4: PgFromExpression[373]
5: PgSelect[369]
6: PgSelectRows[375]
ᐳ: 396, 374, 376, 377, 380, 381, 382, 383, 384
7: PgSelect[385], PgSelect[393]
ᐳ: Access[401]
8: PgSelectRows[388], PgSelectRows[398]
ᐳ: 387, 389, 390, 391, 397, 399, 402, 403, 404, 400"):::bucket classDef bucket23 stroke:#ff1493 - class Bucket23,PgSelect147,Access148,Access149,Object150,First151,PgSelectRows152,PgSelectSingle153,PgClassExpression154,Object155 bucket23 - Bucket24("Bucket 24 (nullableBoundary)
Deps: 155, 154

ROOT Object{23}ᐸ{result}ᐳ[155]"):::bucket + class Bucket23,PgSelect369,Access370,Access371,Object372,PgFromExpression373,First374,PgSelectRows375,PgSelectSingle376,Object377,PgClassExpression380,List381,Lambda382,PgClassExpression383,PgClassExpression384,PgSelect385,First387,PgSelectRows388,PgSelectSingle389,PgClassExpression390,PgClassExpression391,PgSelect393,Connection396,First397,PgSelectRows398,PgSelectSingle399,Edge400,Access401,PgCursor402,PgClassExpression403,PgClassExpression404 bucket23 + Bucket24("Bucket 24 (mutationField)
Deps: 417, 2, 703, 379

1: Access[409]
2: Access[410]
3: Object[411]
4: PgFromExpression[412]
5: PgSelect[408]
6: PgSelectRows[414]
ᐳ: 435, 413, 415, 416, 419, 420, 421, 422, 423
7: PgSelect[424], PgSelect[432]
ᐳ: Access[440]
8: PgSelectRows[427], PgSelectRows[437]
ᐳ: 426, 428, 429, 430, 436, 438, 441, 442, 443, 439"):::bucket classDef bucket24 stroke:#808000 - class Bucket24 bucket24 - Bucket25("Bucket 25 (mutationField)
Deps: 689, 683, 2

1: Access[161]
2: Access[162]
3: Object[163]
4: PgSelect[160]
5: PgSelectRows[165]
ᐳ: 164, 166, 167, 168"):::bucket + class Bucket24,PgSelect408,Access409,Access410,Object411,PgFromExpression412,First413,PgSelectRows414,PgSelectSingle415,Object416,PgClassExpression419,List420,Lambda421,PgClassExpression422,PgClassExpression423,PgSelect424,First426,PgSelectRows427,PgSelectSingle428,PgClassExpression429,PgClassExpression430,PgSelect432,Connection435,First436,PgSelectRows437,PgSelectSingle438,Edge439,Access440,PgCursor441,PgClassExpression442,PgClassExpression443 bucket24 + Bucket25("Bucket 25 (mutationField)
Deps: 451, 2

1: Access[447]
2: Access[448]
3: Object[449]
4: PgSelect[446]
5: PgSelectRows[452]
ᐳ: Object[450]"):::bucket classDef bucket25 stroke:#dda0dd - class Bucket25,PgSelect160,Access161,Access162,Object163,First164,PgSelectRows165,PgSelectSingle166,PgClassExpression167,Object168 bucket25 - Bucket26("Bucket 26 (nullableBoundary)
Deps: 168, 167

ROOT Object{25}ᐸ{result}ᐳ[168]"):::bucket + class Bucket25,PgSelect446,Access447,Access448,Object449,Object450,PgSelectRows452 bucket25 + Bucket26("Bucket 26 (listItem)

ROOT __Item{26}ᐸ452ᐳ[453]"):::bucket classDef bucket26 stroke:#ff0000 - class Bucket26 bucket26 - Bucket27("Bucket 27 (mutationField)
Deps: 683, 2

1: Access[174]
2: Access[175]
3: Object[176]
4: PgSelect[173]
5: PgSelectRows[178]
ᐳ: 177, 179, 180, 181"):::bucket + class Bucket26,__Item453,PgSelectSingle454,PgClassExpression455 bucket26 + Bucket27("Bucket 27 (mutationField)
Deps: 466, 2, 690, 7, 704

1: Access[461]
2: Access[462]
3: Object[463]
4: PgFromExpression[464]
5: PgSelect[460]
6: PgSelectRows[467]
ᐳ: Object[465]"):::bucket classDef bucket27 stroke:#ffff00 - class Bucket27,PgSelect173,Access174,Access175,Object176,First177,PgSelectRows178,PgSelectSingle179,PgClassExpression180,Object181 bucket27 - Bucket28("Bucket 28 (nullableBoundary)
Deps: 181, 180

ROOT Object{27}ᐸ{result}ᐳ[181]"):::bucket + class Bucket27,PgSelect460,Access461,Access462,Object463,PgFromExpression464,Object465,PgSelectRows467 bucket27 + Bucket28("Bucket 28 (listItem)

ROOT __Item{28}ᐸ467ᐳ[468]"):::bucket classDef bucket28 stroke:#00ffff - class Bucket28 bucket28 - Bucket29("Bucket 29 (mutationField)
Deps: 683, 684, 2

1: Access[187]
2: Access[188]
3: Object[189]
4: PgSelect[186]
5: PgSelectRows[191]
ᐳ: 190, 192, 193, 194"):::bucket + class Bucket28,__Item468,PgSelectSingle469,PgClassExpression470 bucket28 + Bucket29("Bucket 29 (mutationField)
Deps: 482, 2

1: Access[474]
2: Access[475]
3: Object[476]
4: PgSelect[473]
5: PgSelectRows[478]
ᐳ: 483, 477, 479, 480, 481"):::bucket classDef bucket29 stroke:#4169e1 - class Bucket29,PgSelect186,Access187,Access188,Object189,First190,PgSelectRows191,PgSelectSingle192,PgClassExpression193,Object194 bucket29 - Bucket30("Bucket 30 (nullableBoundary)
Deps: 194, 193

ROOT Object{29}ᐸ{result}ᐳ[194]"):::bucket + class Bucket29,PgSelect473,Access474,Access475,Object476,First477,PgSelectRows478,PgSelectSingle479,PgClassExpression480,Object481,Access483 bucket29 + Bucket30("Bucket 30 (mutationField)
Deps: 495, 2

1: Access[487]
2: Access[488]
3: Object[489]
4: PgSelect[486]
5: PgSelectRows[491]
ᐳ: 490, 492, 493, 494"):::bucket classDef bucket30 stroke:#3cb371 - class Bucket30 bucket30 - Bucket31("Bucket 31 (mutationField)
Deps: 687, 684, 2

1: Access[200]
2: Access[201]
3: Object[202]
4: PgSelect[199]
5: PgSelectRows[204]
ᐳ: 203, 205, 206, 207"):::bucket + class Bucket30,PgSelect486,Access487,Access488,Object489,First490,PgSelectRows491,PgSelectSingle492,PgClassExpression493,Object494 bucket30 + Bucket31("Bucket 31 (mutationField)
Deps: 509, 2, 498

1: Access[500]
2: Access[501]
3: Object[502]
4: PgFromExpression[503]
5: PgSelect[499]
6: PgSelectRows[505]
ᐳ: 504, 506, 507, 508"):::bucket classDef bucket31 stroke:#a52a2a - class Bucket31,PgSelect199,Access200,Access201,Object202,First203,PgSelectRows204,PgSelectSingle205,PgClassExpression206,Object207 bucket31 - Bucket32("Bucket 32 (nullableBoundary)
Deps: 207, 206

ROOT Object{31}ᐸ{result}ᐳ[207]"):::bucket + class Bucket31,PgSelect499,Access500,Access501,Object502,PgFromExpression503,First504,PgSelectRows505,PgSelectSingle506,PgClassExpression507,Object508 bucket31 + Bucket32("Bucket 32 (mutationField)
Deps: 523, 2, 706

1: Access[514]
2: Access[515]
3: Object[516]
4: PgFromExpression[517]
5: PgSelect[513]
6: PgSelectRows[519]
ᐳ: 518, 520, 521, 522"):::bucket classDef bucket32 stroke:#ff00ff - class Bucket32 bucket32 - Bucket33("Bucket 33 (mutationField)
Deps: 690, 691, 692, 722, 693, 729, 2

1: Access[230]
2: Access[231]
3: Object[232]
4: PgSelect[229]
5: PgSelectRows[234]
ᐳ: 233, 235, 236, 237"):::bucket + class Bucket32,PgSelect513,Access514,Access515,Object516,PgFromExpression517,First518,PgSelectRows519,PgSelectSingle520,PgClassExpression521,Object522 bucket32 + Bucket33("Bucket 33 (mutationField)
Deps: 534, 2, 527

1: Access[529]
2: Access[530]
3: Object[531]
4: PgFromExpression[532]
5: PgSelect[528]
6: PgSelectRows[535]
ᐳ: Object[533]"):::bucket classDef bucket33 stroke:#f5deb3 - class Bucket33,PgSelect229,Access230,Access231,Object232,First233,PgSelectRows234,PgSelectSingle235,PgClassExpression236,Object237 bucket33 - Bucket34("Bucket 34 (nullableBoundary)
Deps: 237, 236

ROOT Object{33}ᐸ{result}ᐳ[237]"):::bucket + class Bucket33,PgSelect528,Access529,Access530,Object531,PgFromExpression532,Object533,PgSelectRows535 bucket33 + Bucket34("Bucket 34 (listItem)
Deps: 531

ROOT __Item{34}ᐸ535ᐳ[536]
1:
ᐳ: 537, 545, 538, 539, 540
2: PgSelect[541]
3: PgSelectRows[546]"):::bucket classDef bucket34 stroke:#696969 - class Bucket34 bucket34 - Bucket35("Bucket 35 (mutationField)
Deps: 730, 2

1: Access[252]
2: Access[253]
3: Object[254]
4: PgSelect[251]
5: PgSelectRows[256]
ᐳ: 255, 257, 258"):::bucket + class Bucket34,__Item536,PgSelectSingle537,PgClassExpression538,PgClassExpression539,PgClassExpression540,PgSelect541,PgFromExpression545,PgSelectRows546 bucket34 + Bucket35("Bucket 35 (listItem)

ROOT __Item{35}ᐸ546ᐳ[547]"):::bucket classDef bucket35 stroke:#00bfff - class Bucket35,PgSelect251,Access252,Access253,Object254,First255,PgSelectRows256,PgSelectSingle257,Object258 bucket35 - Bucket36("Bucket 36 (nullableBoundary)
Deps: 258, 257

ROOT Object{35}ᐸ{result}ᐳ[258]"):::bucket + class Bucket35,__Item547,PgSelectSingle548,PgClassExpression549,PgClassExpression550 bucket35 + Bucket36("Bucket 36 (mutationField)
Deps: 568, 2, 558, 710

1: Access[560]
2: Access[561]
3: Object[562]
4: PgFromExpression[563]
5: PgSelect[559]
6: PgSelectRows[565]
ᐳ: 564, 566, 567, 569, 570"):::bucket classDef bucket36 stroke:#7f007f - class Bucket36 bucket36 - Bucket37("Bucket 37 (nullableBoundary)
Deps: 257

ROOT PgSelectSingle{35}ᐸcompound_type_mutationᐳ[257]"):::bucket + class Bucket36,PgSelect559,Access560,Access561,Object562,PgFromExpression563,First564,PgSelectRows565,PgSelectSingle566,Object567,PgClassExpression569,PgClassExpression570 bucket36 + Bucket37("Bucket 37 (mutationField)
Deps: 581, 2

1: Access[574]
2: Access[575]
3: Object[576]
4: PgSelect[573]
5: PgSelectRows[578]
ᐳ: 577, 579, 580, 582, 583"):::bucket classDef bucket37 stroke:#ffa500 - class Bucket37,PgClassExpression259,PgClassExpression260,PgClassExpression261,PgClassExpression262,PgClassExpression263,PgClassExpression264,PgClassExpression265,PgClassExpression269 bucket37 - Bucket38("Bucket 38 (nullableBoundary)
Deps: 265

ROOT PgClassExpression{37}ᐸ__compound...tion__.”g”ᐳ[265]"):::bucket + class Bucket37,PgSelect573,Access574,Access575,Object576,First577,PgSelectRows578,PgSelectSingle579,Object580,PgClassExpression582,PgClassExpression583 bucket37 + Bucket38("Bucket 38 (mutationField)
Deps: 591, 2

1: Access[587]
2: Access[588]
3: Object[589]
4: PgSelect[586]
5: PgSelectRows[592]
ᐳ: Object[590]"):::bucket classDef bucket38 stroke:#0000ff - class Bucket38 bucket38 - Bucket39("Bucket 39 (mutationField)
Deps: 730, 2

1: Access[284]
2: Access[285]
3: Object[286]
4: PgSelect[283]
5:
ᐳ: Object[287]"):::bucket + class Bucket38,PgSelect586,Access587,Access588,Object589,Object590,PgSelectRows592 bucket38 + Bucket39("Bucket 39 (listItem)

ROOT __Item{39}ᐸ592ᐳ[593]"):::bucket classDef bucket39 stroke:#7fff00 - class Bucket39,PgSelect283,Access284,Access285,Object286,Object287 bucket39 - Bucket40("Bucket 40 (nullableBoundary)
Deps: 283, 287

ROOT Object{39}ᐸ{result}ᐳ[287]"):::bucket + class Bucket39,__Item593,PgSelectSingle594,PgClassExpression595,PgClassExpression596 bucket39 + Bucket40("Bucket 40 (mutationField)
Deps: 615, 2, 608

1: Access[610]
2: Access[611]
3: Object[612]
4: PgFromExpression[613]
5: PgSelect[609]
6: PgSelectRows[616]
ᐳ: Object[614]"):::bucket classDef bucket40 stroke:#ff1493 - class Bucket40,PgSelectRows288 bucket40 - Bucket41("Bucket 41 (listItem)

ROOT __Item{41}ᐸ288ᐳ[289]"):::bucket + class Bucket40,PgSelect609,Access610,Access611,Object612,PgFromExpression613,Object614,PgSelectRows616 bucket40 + Bucket41("Bucket 41 (listItem)

ROOT __Item{41}ᐸ616ᐳ[617]"):::bucket classDef bucket41 stroke:#808000 - class Bucket41,__Item289,PgSelectSingle290 bucket41 - Bucket42("Bucket 42 (nullableBoundary)
Deps: 290

ROOT PgSelectSingle{41}ᐸcompound_type_set_mutationᐳ[290]"):::bucket + class Bucket41,__Item617,PgSelectSingle618,PgClassExpression619,PgClassExpression620,PgClassExpression621,PgClassExpression622,PgClassExpression623,PgClassExpression624,PgClassExpression625,PgClassExpression629 bucket41 + Bucket42("Bucket 42 (mutationField)
Deps: 641, 2

1: Access[633]
2: Access[634]
3: Object[635]
4: PgSelect[632]
5: PgSelectRows[637]
ᐳ: 636, 638, 639, 640"):::bucket classDef bucket42 stroke:#dda0dd - class Bucket42,PgClassExpression291,PgClassExpression292,PgClassExpression293,PgClassExpression294,PgClassExpression295,PgClassExpression296,PgClassExpression297,PgClassExpression301 bucket42 - Bucket43("Bucket 43 (nullableBoundary)
Deps: 297

ROOT PgClassExpression{42}ᐸ__compound...tion__.”g”ᐳ[297]"):::bucket + class Bucket42,PgSelect632,Access633,Access634,Object635,First636,PgSelectRows637,PgSelectSingle638,PgClassExpression639,Object640 bucket42 + Bucket43("Bucket 43 (listItem)

ROOT __Item{43}ᐸ639ᐳ[642]"):::bucket classDef bucket43 stroke:#ff0000 - class Bucket43 bucket43 - Bucket44("Bucket 44 (mutationField)
Deps: 730, 2

1: Access[316]
2: Access[317]
3: Object[318]
4: PgSelect[315]
5:
ᐳ: Object[319]"):::bucket + class Bucket43,__Item642 bucket43 + Bucket44("Bucket 44 (mutationField)
Deps: 654, 2

1: Access[646]
2: Access[647]
3: Object[648]
4: PgSelect[645]
5: PgSelectRows[650]
ᐳ: 649, 651, 652, 653"):::bucket classDef bucket44 stroke:#ffff00 - class Bucket44,PgSelect315,Access316,Access317,Object318,Object319 bucket44 - Bucket45("Bucket 45 (nullableBoundary)
Deps: 315, 319

ROOT Object{44}ᐸ{result}ᐳ[319]"):::bucket + class Bucket44,PgSelect645,Access646,Access647,Object648,First649,PgSelectRows650,PgSelectSingle651,PgClassExpression652,Object653 bucket44 + Bucket45("Bucket 45 (listItem)

ROOT __Item{45}ᐸ652ᐳ[655]"):::bucket classDef bucket45 stroke:#00ffff - class Bucket45,PgSelectRows320 bucket45 - Bucket46("Bucket 46 (listItem)

ROOT __Item{46}ᐸ320ᐳ[321]"):::bucket + class Bucket45,__Item655 bucket45 + Bucket46("Bucket 46 (mutationField)
Deps: 669, 2

1: Access[665]
2: Access[666]
3: Object[667]
4: PgSelect[664]
5: PgSelectRows[670]
ᐳ: Object[668]"):::bucket classDef bucket46 stroke:#4169e1 - class Bucket46,__Item321,PgSelectSingle322 bucket46 - Bucket47("Bucket 47 (nullableBoundary)
Deps: 322

ROOT PgSelectSingle{46}ᐸcompound_type_array_mutationᐳ[322]"):::bucket + class Bucket46,PgSelect664,Access665,Access666,Object667,Object668,PgSelectRows670 bucket46 + Bucket47("Bucket 47 (listItem)

ROOT __Item{47}ᐸ670ᐳ[671]"):::bucket classDef bucket47 stroke:#3cb371 - class Bucket47,PgClassExpression323,PgClassExpression324,PgClassExpression325,PgClassExpression326,PgClassExpression327,PgClassExpression328,PgClassExpression329,PgClassExpression333 bucket47 - Bucket48("Bucket 48 (nullableBoundary)
Deps: 329

ROOT PgClassExpression{47}ᐸ__compound...tion__.”g”ᐳ[329]"):::bucket - classDef bucket48 stroke:#a52a2a - class Bucket48 bucket48 - Bucket49("Bucket 49 (mutationField)
Deps: 687, 2, 345

1: Access[338]
2: Access[339]
3: Object[340]
4: PgSelect[337]
5: PgSelectRows[342]
ᐳ: 341, 343, 344"):::bucket - classDef bucket49 stroke:#ff00ff - class Bucket49,PgSelect337,Access338,Access339,Object340,First341,PgSelectRows342,PgSelectSingle343,Object344 bucket49 - Bucket50("Bucket 50 (nullableBoundary)
Deps: 345, 343, 340, 344

ROOT Object{49}ᐸ{result}ᐳ[344]
1:
ᐳ: 351, 363, 366, 347, 348
2: PgSelect[352], PgSelect[364]
ᐳ: Access[371]
3: PgSelectRows[357], PgSelectRows[368]
ᐳ: 356, 358, 367, 369, 372, 370"):::bucket - classDef bucket50 stroke:#f5deb3 - class Bucket50,List347,Lambda348,PgClassExpression351,PgSelect352,First356,PgSelectRows357,PgSelectSingle358,PgClassExpression363,PgSelect364,Connection366,First367,PgSelectRows368,PgSelectSingle369,Edge370,Access371,PgCursor372 bucket50 - Bucket51("Bucket 51 (nullableBoundary)
Deps: 343, 348, 363, 351

ROOT PgSelectSingle{49}ᐸtable_mutationᐳ[343]"):::bucket - classDef bucket51 stroke:#696969 - class Bucket51,PgClassExpression349 bucket51 - Bucket52("Bucket 52 (nullableBoundary)
Deps: 358

ROOT PgSelectSingle{50}ᐸpersonᐳ[358]"):::bucket - classDef bucket52 stroke:#00bfff - class Bucket52,PgClassExpression359,PgClassExpression360 bucket52 - Bucket53("Bucket 53 (nullableBoundary)
Deps: 370, 369, 372

ROOT Edge{50}[370]"):::bucket - classDef bucket53 stroke:#7f007f - class Bucket53 bucket53 - Bucket54("Bucket 54 (nullableBoundary)
Deps: 369

ROOT PgSelectSingle{50}ᐸpostᐳ[369]"):::bucket - classDef bucket54 stroke:#ffa500 - class Bucket54,PgClassExpression373,PgClassExpression374 bucket54 - Bucket55("Bucket 55 (mutationField)
Deps: 700, 2, 345

1: Access[379]
2: Access[380]
3: Object[381]
4: PgSelect[378]
5: PgSelectRows[383]
ᐳ: 382, 384, 385"):::bucket - classDef bucket55 stroke:#0000ff - class Bucket55,PgSelect378,Access379,Access380,Object381,First382,PgSelectRows383,PgSelectSingle384,Object385 bucket55 - Bucket56("Bucket 56 (nullableBoundary)
Deps: 345, 384, 381, 385

ROOT Object{55}ᐸ{result}ᐳ[385]
1:
ᐳ: 392, 404, 407, 388, 389
2: PgSelect[393], PgSelect[405]
ᐳ: Access[412]
3: PgSelectRows[398], PgSelectRows[409]
ᐳ: 397, 399, 408, 410, 413, 411"):::bucket - classDef bucket56 stroke:#7fff00 - class Bucket56,List388,Lambda389,PgClassExpression392,PgSelect393,First397,PgSelectRows398,PgSelectSingle399,PgClassExpression404,PgSelect405,Connection407,First408,PgSelectRows409,PgSelectSingle410,Edge411,Access412,PgCursor413 bucket56 - Bucket57("Bucket 57 (nullableBoundary)
Deps: 384, 389, 404, 392

ROOT PgSelectSingle{55}ᐸtable_mutationᐳ[384]"):::bucket - classDef bucket57 stroke:#ff1493 - class Bucket57,PgClassExpression390 bucket57 - Bucket58("Bucket 58 (nullableBoundary)
Deps: 399

ROOT PgSelectSingle{56}ᐸpersonᐳ[399]"):::bucket - classDef bucket58 stroke:#808000 - class Bucket58,PgClassExpression400,PgClassExpression401 bucket58 - Bucket59("Bucket 59 (nullableBoundary)
Deps: 411, 410, 413

ROOT Edge{56}[411]"):::bucket - classDef bucket59 stroke:#dda0dd - class Bucket59 bucket59 - Bucket60("Bucket 60 (nullableBoundary)
Deps: 410

ROOT PgSelectSingle{56}ᐸpostᐳ[410]"):::bucket - classDef bucket60 stroke:#ff0000 - class Bucket60,PgClassExpression414,PgClassExpression415 bucket60 - Bucket61("Bucket 61 (mutationField)
Deps: 2

1: Access[419]
2: Access[420]
3: Object[421]
4: PgSelect[418]
5:
ᐳ: Object[422]"):::bucket - classDef bucket61 stroke:#ffff00 - class Bucket61,PgSelect418,Access419,Access420,Object421,Object422 bucket61 - Bucket62("Bucket 62 (nullableBoundary)
Deps: 418, 422

ROOT Object{61}ᐸ{result}ᐳ[422]"):::bucket - classDef bucket62 stroke:#00ffff - class Bucket62,PgSelectRows423 bucket62 - Bucket63("Bucket 63 (listItem)

ROOT __Item{63}ᐸ423ᐳ[424]"):::bucket - classDef bucket63 stroke:#4169e1 - class Bucket63,__Item424,PgSelectSingle425 bucket63 - Bucket64("Bucket 64 (nullableBoundary)
Deps: 425

ROOT PgSelectSingle{63}ᐸtable_set_mutationᐳ[425]"):::bucket - classDef bucket64 stroke:#3cb371 - class Bucket64,PgClassExpression426 bucket64 - Bucket65("Bucket 65 (mutationField)
Deps: 687, 120, 701, 2

1: Access[433]
2: Access[434]
3: Object[435]
4: PgSelect[432]
5:
ᐳ: Object[436]"):::bucket - classDef bucket65 stroke:#a52a2a - class Bucket65,PgSelect432,Access433,Access434,Object435,Object436 bucket65 - Bucket66("Bucket 66 (nullableBoundary)
Deps: 432, 436

ROOT Object{65}ᐸ{result}ᐳ[436]"):::bucket - classDef bucket66 stroke:#ff00ff - class Bucket66,PgSelectRows437 bucket66 - Bucket67("Bucket 67 (listItem)

ROOT __Item{67}ᐸ437ᐳ[438]"):::bucket - classDef bucket67 stroke:#f5deb3 - class Bucket67,__Item438,PgSelectSingle439,PgClassExpression440 bucket67 - Bucket68("Bucket 68 (mutationField)
Deps: 2, 702

1: Access[444]
2: Access[445]
3: Object[446]
4: PgSelect[443]
5: PgSelectRows[448]
ᐳ: 447, 449, 450, 451"):::bucket - classDef bucket68 stroke:#696969 - class Bucket68,PgSelect443,Access444,Access445,Object446,First447,PgSelectRows448,PgSelectSingle449,PgClassExpression450,Object451 bucket68 - Bucket69("Bucket 69 (nullableBoundary)
Deps: 451, 702, 450

ROOT Object{68}ᐸ{result,clientMutationId}ᐳ[451]"):::bucket - classDef bucket69 stroke:#00bfff - class Bucket69 bucket69 - Bucket70("Bucket 70 (mutationField)
Deps: 2

1: Access[455]
2: Access[456]
3: Object[457]
4: PgSelect[454]
5: PgSelectRows[459]
ᐳ: 458, 460, 461, 462"):::bucket - classDef bucket70 stroke:#7f007f - class Bucket70,PgSelect454,Access455,Access456,Object457,First458,PgSelectRows459,PgSelectSingle460,PgClassExpression461,Object462 bucket70 - Bucket71("Bucket 71 (nullableBoundary)
Deps: 462

ROOT Object{70}ᐸ{result}ᐳ[462]"):::bucket - classDef bucket71 stroke:#ffa500 - class Bucket71 bucket71 - Bucket72("Bucket 72 (mutationField)
Deps: 120, 2

1: Access[467]
2: Access[468]
3: Object[469]
4: PgSelect[466]
5: PgSelectRows[471]
ᐳ: 470, 472, 473, 474"):::bucket - classDef bucket72 stroke:#0000ff - class Bucket72,PgSelect466,Access467,Access468,Object469,First470,PgSelectRows471,PgSelectSingle472,PgClassExpression473,Object474 bucket72 - Bucket73("Bucket 73 (nullableBoundary)
Deps: 474, 473

ROOT Object{72}ᐸ{result}ᐳ[474]"):::bucket - classDef bucket73 stroke:#7fff00 - class Bucket73 bucket73 - Bucket74("Bucket 74 (mutationField)
Deps: 704, 2

1: Access[479]
2: Access[480]
3: Object[481]
4: PgSelect[478]
5: PgSelectRows[483]
ᐳ: 482, 484, 485, 486"):::bucket - classDef bucket74 stroke:#ff1493 - class Bucket74,PgSelect478,Access479,Access480,Object481,First482,PgSelectRows483,PgSelectSingle484,PgClassExpression485,Object486 bucket74 - Bucket75("Bucket 75 (nullableBoundary)
Deps: 486, 485

ROOT Object{74}ᐸ{result}ᐳ[486]"):::bucket - classDef bucket75 stroke:#808000 - class Bucket75 bucket75 - Bucket76("Bucket 76 (mutationField)
Deps: 740, 2

1: Access[537]
2: Access[538]
3: Object[539]
4: PgSelect[536]
5:
ᐳ: Object[540]"):::bucket - classDef bucket76 stroke:#dda0dd - class Bucket76,PgSelect536,Access537,Access538,Object539,Object540 bucket76 - Bucket77("Bucket 77 (nullableBoundary)
Deps: 536, 540, 539

ROOT Object{76}ᐸ{result}ᐳ[540]"):::bucket - classDef bucket77 stroke:#ff0000 - class Bucket77,PgSelectRows541 bucket77 - Bucket78("Bucket 78 (listItem)
Deps: 539

ROOT __Item{78}ᐸ541ᐳ[542]"):::bucket - classDef bucket78 stroke:#ffff00 - class Bucket78,__Item542,PgSelectSingle543 bucket78 - Bucket79("Bucket 79 (nullableBoundary)
Deps: 543, 539

ROOT PgSelectSingle{78}ᐸpost_manyᐳ[543]
1:
ᐳ: 544, 545, 546
2: PgSelect[547]
3: PgSelectRows[551]"):::bucket - classDef bucket79 stroke:#00ffff - class Bucket79,PgClassExpression544,PgClassExpression545,PgClassExpression546,PgSelect547,PgSelectRows551 bucket79 - Bucket80("Bucket 80 (listItem)

ROOT __Item{80}ᐸ551ᐳ[552]"):::bucket - classDef bucket80 stroke:#4169e1 - class Bucket80,__Item552,PgSelectSingle553 bucket80 - Bucket81("Bucket 81 (nullableBoundary)
Deps: 553

ROOT PgSelectSingle{80}ᐸfrmcdc_comptypeᐳ[553]"):::bucket - classDef bucket81 stroke:#3cb371 - class Bucket81,PgClassExpression554,PgClassExpression555 bucket81 - Bucket82("Bucket 82 (mutationField)
Deps: 728, 715, 2

1: Access[565]
2: Access[566]
3: Object[567]
4: PgSelect[564]
5: PgSelectRows[569]
ᐳ: 568, 570, 571"):::bucket - classDef bucket82 stroke:#a52a2a - class Bucket82,PgSelect564,Access565,Access566,Object567,First568,PgSelectRows569,PgSelectSingle570,Object571 bucket82 - Bucket83("Bucket 83 (nullableBoundary)
Deps: 571, 570

ROOT Object{82}ᐸ{result}ᐳ[571]"):::bucket - classDef bucket83 stroke:#ff00ff - class Bucket83 bucket83 - Bucket84("Bucket 84 (nullableBoundary)
Deps: 570

ROOT PgSelectSingle{82}ᐸpost_with_suffixᐳ[570]"):::bucket - classDef bucket84 stroke:#f5deb3 - class Bucket84,PgClassExpression572,PgClassExpression573 bucket84 - Bucket85("Bucket 85 (mutationField)
Deps: 2

1: Access[577]
2: Access[578]
3: Object[579]
4: PgSelect[576]
5: PgSelectRows[581]
ᐳ: 580, 582, 583"):::bucket - classDef bucket85 stroke:#696969 - class Bucket85,PgSelect576,Access577,Access578,Object579,First580,PgSelectRows581,PgSelectSingle582,Object583 bucket85 - Bucket86("Bucket 86 (nullableBoundary)
Deps: 583, 582

ROOT Object{85}ᐸ{result}ᐳ[583]"):::bucket - classDef bucket86 stroke:#00bfff - class Bucket86 bucket86 - Bucket87("Bucket 87 (nullableBoundary)
Deps: 582

ROOT PgSelectSingle{85}ᐸissue756_mutationᐳ[582]"):::bucket - classDef bucket87 stroke:#7f007f - class Bucket87,PgClassExpression584,PgClassExpression585 bucket87 - Bucket88("Bucket 88 (mutationField)
Deps: 2

1: Access[589]
2: Access[590]
3: Object[591]
4: PgSelect[588]
5:
ᐳ: Object[592]"):::bucket - classDef bucket88 stroke:#ffa500 - class Bucket88,PgSelect588,Access589,Access590,Object591,Object592 bucket88 - Bucket89("Bucket 89 (nullableBoundary)
Deps: 588, 592

ROOT Object{88}ᐸ{result}ᐳ[592]"):::bucket - classDef bucket89 stroke:#0000ff - class Bucket89,PgSelectRows593 bucket89 - Bucket90("Bucket 90 (listItem)

ROOT __Item{90}ᐸ593ᐳ[594]"):::bucket - classDef bucket90 stroke:#7fff00 - class Bucket90,__Item594,PgSelectSingle595 bucket90 - Bucket91("Bucket 91 (nullableBoundary)
Deps: 595

ROOT PgSelectSingle{90}ᐸissue756_set_mutationᐳ[595]"):::bucket - classDef bucket91 stroke:#ff1493 - class Bucket91,PgClassExpression596,PgClassExpression597 bucket91 - Bucket92("Bucket 92 (mutationField)
Deps: 736, 2

1: Access[612]
2: Access[613]
3: Object[614]
4: PgSelect[611]
5:
ᐳ: Object[615]"):::bucket - classDef bucket92 stroke:#808000 - class Bucket92,PgSelect611,Access612,Access613,Object614,Object615 bucket92 - Bucket93("Bucket 93 (nullableBoundary)
Deps: 611, 615

ROOT Object{92}ᐸ{result}ᐳ[615]"):::bucket - classDef bucket93 stroke:#dda0dd - class Bucket93,PgSelectRows616 bucket93 - Bucket94("Bucket 94 (listItem)

ROOT __Item{94}ᐸ616ᐳ[617]"):::bucket - classDef bucket94 stroke:#ff0000 - class Bucket94,__Item617,PgSelectSingle618 bucket94 - Bucket95("Bucket 95 (nullableBoundary)
Deps: 618

ROOT PgSelectSingle{94}ᐸmutation_compound_type_arrayᐳ[618]"):::bucket - classDef bucket95 stroke:#ffff00 - class Bucket95,PgClassExpression619,PgClassExpression620,PgClassExpression621,PgClassExpression622,PgClassExpression623,PgClassExpression624,PgClassExpression625,PgClassExpression629 bucket95 - Bucket96("Bucket 96 (nullableBoundary)
Deps: 625

ROOT PgClassExpression{95}ᐸ__mutation...rray__.”g”ᐳ[625]"):::bucket - classDef bucket96 stroke:#00ffff - class Bucket96 bucket96 - Bucket97("Bucket 97 (mutationField)
Deps: 2

1: Access[633]
2: Access[634]
3: Object[635]
4: PgSelect[632]
5: PgSelectRows[637]
ᐳ: 636, 638, 639, 640"):::bucket - classDef bucket97 stroke:#4169e1 - class Bucket97,PgSelect632,Access633,Access634,Object635,First636,PgSelectRows637,PgSelectSingle638,PgClassExpression639,Object640 bucket97 - Bucket98("Bucket 98 (nullableBoundary)
Deps: 640, 639

ROOT Object{97}ᐸ{result}ᐳ[640]"):::bucket - classDef bucket98 stroke:#3cb371 - class Bucket98 bucket98 - Bucket99("Bucket 99 (listItem)

ROOT __Item{99}ᐸ639ᐳ[641]"):::bucket - classDef bucket99 stroke:#a52a2a - class Bucket99,__Item641 bucket99 - Bucket100("Bucket 100 (mutationField)
Deps: 2

1: Access[645]
2: Access[646]
3: Object[647]
4: PgSelect[644]
5: PgSelectRows[649]
ᐳ: 648, 650, 651, 652"):::bucket - classDef bucket100 stroke:#ff00ff - class Bucket100,PgSelect644,Access645,Access646,Object647,First648,PgSelectRows649,PgSelectSingle650,PgClassExpression651,Object652 bucket100 - Bucket101("Bucket 101 (nullableBoundary)
Deps: 652, 651

ROOT Object{100}ᐸ{result}ᐳ[652]"):::bucket - classDef bucket101 stroke:#f5deb3 - class Bucket101 bucket101 - Bucket102("Bucket 102 (listItem)

ROOT __Item{102}ᐸ651ᐳ[653]"):::bucket - classDef bucket102 stroke:#696969 - class Bucket102,__Item653 bucket102 - Bucket103("Bucket 103 (nullableBoundary)
Deps: 653

ROOT __Item{102}ᐸ651ᐳ[653]"):::bucket - classDef bucket103 stroke:#00bfff - class Bucket103 bucket103 - Bucket104("Bucket 104 (mutationField)
Deps: 2

1: Access[663]
2: Access[664]
3: Object[665]
4: PgSelect[662]
5:
ᐳ: Object[666]"):::bucket - classDef bucket104 stroke:#7f007f - class Bucket104,PgSelect662,Access663,Access664,Object665,Object666 bucket104 - Bucket105("Bucket 105 (nullableBoundary)
Deps: 662, 666

ROOT Object{104}ᐸ{result}ᐳ[666]"):::bucket - classDef bucket105 stroke:#ffa500 - class Bucket105,PgSelectRows667 bucket105 - Bucket106("Bucket 106 (listItem)

ROOT __Item{106}ᐸ667ᐳ[668]"):::bucket - classDef bucket106 stroke:#0000ff - class Bucket106,__Item668,PgSelectSingle669,PgClassExpression670 bucket106 - Bucket107("Bucket 107 (nullableBoundary)
Deps: 670

ROOT PgClassExpression{106}ᐸ__mutation...al_set__.vᐳ[670]"):::bucket - classDef bucket107 stroke:#7fff00 - class Bucket107 bucket107 - Bucket0 --> Bucket1 & Bucket3 & Bucket5 & Bucket7 & Bucket9 & Bucket11 & Bucket13 & Bucket15 & Bucket17 & Bucket19 & Bucket21 & Bucket23 & Bucket25 & Bucket27 & Bucket29 & Bucket31 & Bucket33 & Bucket35 & Bucket39 & Bucket44 & Bucket49 & Bucket55 & Bucket61 & Bucket65 & Bucket68 & Bucket70 & Bucket72 & Bucket74 & Bucket76 & Bucket82 & Bucket85 & Bucket88 & Bucket92 & Bucket97 & Bucket100 & Bucket104 - Bucket1 --> Bucket2 - Bucket3 --> Bucket4 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket9 --> Bucket10 - Bucket11 --> Bucket12 - Bucket13 --> Bucket14 - Bucket15 --> Bucket16 - Bucket17 --> Bucket18 + class Bucket47,__Item671,PgSelectSingle672,PgClassExpression673 bucket47 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 & Bucket11 & Bucket12 & Bucket13 & Bucket14 & Bucket15 & Bucket16 & Bucket17 & Bucket18 & Bucket19 & Bucket21 & Bucket23 & Bucket24 & Bucket25 & Bucket27 & Bucket29 & Bucket30 & Bucket31 & Bucket32 & Bucket33 & Bucket36 & Bucket37 & Bucket38 & Bucket40 & Bucket42 & Bucket44 & Bucket46 Bucket19 --> Bucket20 Bucket21 --> Bucket22 - Bucket23 --> Bucket24 Bucket25 --> Bucket26 Bucket27 --> Bucket28 - Bucket29 --> Bucket30 - Bucket31 --> Bucket32 Bucket33 --> Bucket34 - Bucket35 --> Bucket36 - Bucket36 --> Bucket37 - Bucket37 --> Bucket38 - Bucket39 --> Bucket40 + Bucket34 --> Bucket35 + Bucket38 --> Bucket39 Bucket40 --> Bucket41 - Bucket41 --> Bucket42 Bucket42 --> Bucket43 Bucket44 --> Bucket45 - Bucket45 --> Bucket46 Bucket46 --> Bucket47 - Bucket47 --> Bucket48 - Bucket49 --> Bucket50 - Bucket50 --> Bucket51 & Bucket52 & Bucket53 - Bucket53 --> Bucket54 - Bucket55 --> Bucket56 - Bucket56 --> Bucket57 & Bucket58 & Bucket59 - Bucket59 --> Bucket60 - Bucket61 --> Bucket62 - Bucket62 --> Bucket63 - Bucket63 --> Bucket64 - Bucket65 --> Bucket66 - Bucket66 --> Bucket67 - Bucket68 --> Bucket69 - Bucket70 --> Bucket71 - Bucket72 --> Bucket73 - Bucket74 --> Bucket75 - Bucket76 --> Bucket77 - Bucket77 --> Bucket78 - Bucket78 --> Bucket79 - Bucket79 --> Bucket80 - Bucket80 --> Bucket81 - Bucket82 --> Bucket83 - Bucket83 --> Bucket84 - Bucket85 --> Bucket86 - Bucket86 --> Bucket87 - Bucket88 --> Bucket89 - Bucket89 --> Bucket90 - Bucket90 --> Bucket91 - Bucket92 --> Bucket93 - Bucket93 --> Bucket94 - Bucket94 --> Bucket95 - Bucket95 --> Bucket96 - Bucket97 --> Bucket98 - Bucket98 --> Bucket99 - Bucket100 --> Bucket101 - Bucket101 --> Bucket102 - Bucket102 --> Bucket103 - Bucket104 --> Bucket105 - Bucket105 --> Bucket106 - Bucket106 --> Bucket107 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/procedure-mutation.sql b/postgraphile/postgraphile/__tests__/mutations/v4/procedure-mutation.sql index 39cb9e9694..4d68eb789e 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/procedure-mutation.sql +++ b/postgraphile/postgraphile/__tests__/mutations/v4/procedure-mutation.sql @@ -137,9 +137,9 @@ select from unnest("b"."compound_type_array_mutation"($1::"c"."compound_type")) as __compound_type_array_mutation__; select - __table_mutation__."headline" as "0", - __table_mutation__."author_id"::text as "1", - __table_mutation__."id"::text as "2" + __table_mutation__."id"::text as "0", + __table_mutation__."headline" as "1", + __table_mutation__."author_id"::text as "2" from "c"."table_mutation"($1::"int4") as __table_mutation__; select @@ -160,28 +160,11 @@ where ( order by __post__."id" asc; select - __table_mutation__."headline" as "0", - __table_mutation__."author_id"::text as "1", - __table_mutation__."id"::text as "2" + __table_mutation__."id"::text as "0", + __table_mutation__."headline" as "1", + __table_mutation__."author_id"::text as "2" from "c"."table_mutation"($1::"int4") as __table_mutation__; -select - __person__."id"::text as "0", - __person__."person_full_name" as "1" -from "c"."person" as __person__ -where ( - __person__."id" = $1::"int4" -); - -select - __post__."id"::text as "0", - __post__."headline" as "1" -from "a"."post" as __post__ -where ( - __post__."id" = $1::"int4" -) -order by __post__."id" asc; - select __table_set_mutation__."person_full_name" as "0" from "c"."table_set_mutation"() as __table_set_mutation__; diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/rbac.createLeftArm.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/rbac.createLeftArm.mermaid index 5ecbbef03a..3377932b41 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/rbac.createLeftArm.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/rbac.createLeftArm.mermaid @@ -9,49 +9,49 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 + Constant25{{"Constant[25∈0] ➊
ᐸ0.66ᐳ"}}:::plan + Constant25 --> __InputObject8 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 + ApplyInput14{{"ApplyInput[14∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput14 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant15{{"Constant[15∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan - Constant23{{"Constant[23∈0] ➊
ᐸ0.66ᐳ"}}:::plan - PgInsertSingle10[["PgInsertSingle[10∈1] ➊
ᐸleft_arm(length_in_metres)ᐳ"]]:::sideeffectplan - Object13 & Constant23 --> PgInsertSingle10 - Object14{{"Object[14∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle10 --> Object14 - List17{{"List[17∈3] ➊
ᐸ15,16ᐳ"}}:::plan - PgClassExpression16{{"PgClassExpression[16∈3] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan - Constant15 & PgClassExpression16 --> List17 - PgInsertSingle10 --> PgClassExpression16 - Lambda18{{"Lambda[18∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List17 --> Lambda18 - PgClassExpression20{{"PgClassExpression[20∈3] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan - PgInsertSingle10 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgInsertSingle10 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan - PgInsertSingle10 --> PgClassExpression22 + Constant16{{"Constant[16∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan + PgInsertSingle10[["PgInsertSingle[10∈1] ➊
ᐸleft_arm()ᐳ"]]:::sideeffectplan + Object13 & ApplyInput14 --> PgInsertSingle10 + List19{{"List[19∈1] ➊
ᐸ16,17ᐳ"}}:::plan + PgClassExpression17{{"PgClassExpression[17∈1] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + Constant16 & PgClassExpression17 --> List19 + Object15{{"Object[15∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle10 --> Object15 + Access18{{"Access[18∈1] ➊
ᐸ10.tᐳ"}}:::plan + Access18 --> PgClassExpression17 + PgInsertSingle10 --> Access18 + Lambda20{{"Lambda[20∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List19 --> Lambda20 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan + Access18 --> PgClassExpression22 + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + Access18 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan + Access18 --> PgClassExpression24 %% define steps subgraph "Buckets for mutations/v4/rbac.createLeftArm" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Constant15,Constant23 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 13, 23, 15

1: PgInsertSingle[10]
2:
ᐳ: Object[14]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,Access11,Access12,Object13,ApplyInput14,Constant16,Constant25 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 13, 14, 16

1: PgInsertSingle[10]
2:
ᐳ: 15, 18, 17, 19, 20, 22, 23, 24"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle10,Object14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14, 10, 15

ROOT Object{1}ᐸ{result}ᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 10, 15

ROOT PgInsertSingle{1}ᐸleft_arm(length_in_metres)ᐳ[10]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression16,List17,Lambda18,PgClassExpression20,PgClassExpression21,PgClassExpression22 bucket3 + class Bucket1,PgInsertSingle10,Object15,PgClassExpression17,Access18,List19,Lambda20,PgClassExpression22,PgClassExpression23,PgClassExpression24 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/rbac.createPerson.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/rbac.createPerson.mermaid index 8397cc55be..c2ba27c3fb 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/rbac.createPerson.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/rbac.createPerson.mermaid @@ -9,71 +9,72 @@ graph TD %% plan dependencies - Object20{{"Object[20∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access18{{"Access[18∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access19{{"Access[19∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access18 & Access19 --> Object20 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant36{{"Constant[36∈0] ➊
ᐸ'Jane Doe'ᐳ"}}:::plan + Constant10{{"Constant[10∈0] ➊
ᐸ[ 'Jay Doe', 'JD' ]ᐳ"}}:::plan + Constant37{{"Constant[37∈0] ➊
ᐸ'Unknown'ᐳ"}}:::plan + Constant38{{"Constant[38∈0] ➊
ᐸ'jane.doe@example.com'ᐳ"}}:::plan + __InputObject13{{"__InputObject[13∈0] ➊"}}:::plan + Constant36 & Constant10 & Constant37 & Constant38 & __InputObject13 --> __InputObject8 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 + Object18{{"Object[18∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access16{{"Access[16∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access17{{"Access[17∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access16 & Access17 --> Object18 + Constant39{{"Constant[39∈0] ➊
ᐸ'http://example.com'ᐳ"}}:::plan + Constant39 --> __InputObject13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access18 - __Value2 --> Access19 + __Value2 --> Access16 + __Value2 --> Access17 + ApplyInput19{{"ApplyInput[19∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput19 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant39{{"Constant[39∈0] ➊
ᐸ'Jane Doe'ᐳ"}}:::plan - Constant42{{"Constant[42∈0] ➊
ᐸ'Unknown'ᐳ"}}:::plan - Constant43{{"Constant[43∈0] ➊
ᐸ'jane.doe@example.com'ᐳ"}}:::plan - Constant45{{"Constant[45∈0] ➊
ᐸ[ 'Jay Doe', 'JD' ]ᐳ"}}:::plan - Constant46{{"Constant[46∈0] ➊
ᐸ§{ url: 'http://example.com' }ᐳ"}}:::plan - PgInsertSingle17[["PgInsertSingle[17∈1] ➊
ᐸperson(person_full_name,aliases,about,email,site)ᐳ"]]:::sideeffectplan - Object20 & Constant39 & Constant45 & Constant42 & Constant43 & Constant46 --> PgInsertSingle17 - Object21{{"Object[21∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle17 --> Object21 - PgSelect31[["PgSelect[31∈3] ➊
ᐸfrmcdc_wrappedUrlᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__person__.”site”ᐳ"}}:::plan - Object20 & PgClassExpression30 --> PgSelect31 - PgClassExpression24{{"PgClassExpression[24∈3] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3] ➊
ᐸ__person__.”aliases”ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression26 - PgClassExpression28{{"PgClassExpression[28∈3] ➊
ᐸ__person__.”about”ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression28 - PgClassExpression29{{"PgClassExpression[29∈3] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgInsertSingle17 --> PgClassExpression29 - PgInsertSingle17 --> PgClassExpression30 - First35{{"First[35∈3] ➊"}}:::plan - PgSelectRows36[["PgSelectRows[36∈3] ➊"]]:::plan - PgSelectRows36 --> First35 - PgSelect31 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈3] ➊
ᐸfrmcdc_wrappedUrlᐳ"}}:::plan - First35 --> PgSelectSingle37 - __Item27[/"__Item[27∈4]
ᐸ26ᐳ"\]:::itemplan - PgClassExpression26 ==> __Item27 - PgClassExpression38{{"PgClassExpression[38∈5] ➊
ᐸ__frmcdc_w...rl__.”url”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression38 + PgInsertSingle15[["PgInsertSingle[15∈1] ➊
ᐸperson()ᐳ"]]:::sideeffectplan + Object18 & ApplyInput19 --> PgInsertSingle15 + PgSelect29[["PgSelect[29∈1] ➊
ᐸfrmcdc_wrappedUrlᐳ"]]:::plan + PgFromExpression31{{"PgFromExpression[31∈1] ➊"}}:::plan + Object18 & PgFromExpression31 --> PgSelect29 + Object20{{"Object[20∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle15 --> Object20 + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Access22{{"Access[22∈1] ➊
ᐸ15.tᐳ"}}:::plan + Access22 --> PgClassExpression21 + PgInsertSingle15 --> Access22 + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + Access22 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__person__.”aliases”ᐳ"}}:::plan + Access22 --> PgClassExpression24 + PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__person__.”about”ᐳ"}}:::plan + Access22 --> PgClassExpression26 + PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + Access22 --> PgClassExpression27 + PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__person__.”site”ᐳ"}}:::plan + Access22 --> PgClassExpression28 + PgClassExpression28 --> PgFromExpression31 + First32{{"First[32∈1] ➊"}}:::plan + PgSelectRows33[["PgSelectRows[33∈1] ➊"]]:::plan + PgSelectRows33 --> First32 + PgSelect29 --> PgSelectRows33 + PgSelectSingle34{{"PgSelectSingle[34∈1] ➊
ᐸfrmcdc_wrappedUrlᐳ"}}:::plan + First32 --> PgSelectSingle34 + PgClassExpression35{{"PgClassExpression[35∈1] ➊
ᐸ__frmcdc_w...rl__.”url”ᐳ"}}:::plan + PgSelectSingle34 --> PgClassExpression35 + __Item25[/"__Item[25∈2]
ᐸ24ᐳ"\]:::itemplan + PgClassExpression24 ==> __Item25 %% define steps subgraph "Buckets for mutations/v4/rbac.createPerson" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access18,Access19,Object20,Constant39,Constant42,Constant43,Constant45,Constant46 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 20, 39, 45, 42, 43, 46

1: PgInsertSingle[17]
2:
ᐳ: Object[21]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,Constant10,__InputObject13,Access16,Access17,Object18,ApplyInput19,Constant36,Constant37,Constant38,Constant39 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 18, 19

1: PgInsertSingle[15]
2:
ᐳ: 20, 22, 21, 23, 24, 26, 27, 28, 31
3: PgSelect[29]
4: PgSelectRows[33]
ᐳ: 32, 34, 35"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle17,Object21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 21, 17, 20

ROOT Object{1}ᐸ{result}ᐳ[21]"):::bucket + class Bucket1,PgInsertSingle15,Object20,PgClassExpression21,Access22,PgClassExpression23,PgClassExpression24,PgClassExpression26,PgClassExpression27,PgClassExpression28,PgSelect29,PgFromExpression31,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression35 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ24ᐳ[25]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 20

ROOT PgInsertSingle{1}ᐸperson(person_full_name,aliases,about,email,site)ᐳ[17]
1:
ᐳ: 24, 25, 26, 28, 29, 30
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: First[35], PgSelectSingle[37]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression28,PgClassExpression29,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ26ᐳ[27]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item27 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 37

ROOT PgSelectSingle{3}ᐸfrmcdc_wrappedUrlᐳ[37]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression38 bucket5 + class Bucket2,__Item25 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/rbac.deletePerson.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/rbac.deletePerson.mermaid index c258c53b66..8b3f536037 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/rbac.deletePerson.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/rbac.deletePerson.mermaid @@ -9,6 +9,9 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant20{{"Constant[20∈0] ➊
ᐸ3ᐳ"}}:::plan + Constant20 --> __InputObject6 Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan @@ -16,32 +19,31 @@ graph TD __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 + ApplyInput13{{"ApplyInput[13∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput13 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant14{{"Constant[14∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant18{{"Constant[18∈0] ➊
ᐸ3ᐳ"}}:::plan + Constant15{{"Constant[15∈0] ➊
ᐸ'people'ᐳ"}}:::plan PgDeleteSingle9[["PgDeleteSingle[9∈1] ➊
ᐸperson(id)ᐳ"]]:::sideeffectplan - Object12 & Constant18 --> PgDeleteSingle9 - Object13{{"Object[13∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgDeleteSingle9 --> Object13 - List16{{"List[16∈2] ➊
ᐸ14,15ᐳ"}}:::plan - PgClassExpression15{{"PgClassExpression[15∈2] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant14 & PgClassExpression15 --> List16 - PgDeleteSingle9 --> PgClassExpression15 - Lambda17{{"Lambda[17∈2] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List16 --> Lambda17 + Object12 & Constant20 & ApplyInput13 --> PgDeleteSingle9 + List18{{"List[18∈1] ➊
ᐸ15,16ᐳ"}}:::plan + PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant15 & PgClassExpression16 --> List18 + Object14{{"Object[14∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgDeleteSingle9 --> Object14 + Access17{{"Access[17∈1] ➊
ᐸ9.tᐳ"}}:::plan + Access17 --> PgClassExpression16 + PgDeleteSingle9 --> Access17 + Lambda19{{"Lambda[19∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List18 --> Lambda19 %% define steps subgraph "Buckets for mutations/v4/rbac.deletePerson" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Constant14,Constant18 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 12, 18, 14

1: PgDeleteSingle[9]
2:
ᐳ: Object[13]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Access10,Access11,Object12,ApplyInput13,Constant15,Constant20 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 12, 20, 13, 15

1: PgDeleteSingle[9]
2:
ᐳ: 14, 17, 16, 18, 19"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgDeleteSingle9,Object13 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 9, 14, 13

ROOT Object{1}ᐸ{result}ᐳ[13]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,List16,Lambda17 bucket2 + class Bucket1,PgDeleteSingle9,Object14,PgClassExpression16,Access17,List18,Lambda19 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/rbac.leftArmIdentity.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/rbac.leftArmIdentity.mermaid index b38b968a60..7224a183c4 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/rbac.leftArmIdentity.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/rbac.leftArmIdentity.mermaid @@ -9,55 +9,60 @@ graph TD %% plan dependencies + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant31{{"Constant[31∈0] ➊
ᐸ9001ᐳ"}}:::plan + Constant32{{"Constant[32∈0] ➊
ᐸ99ᐳ"}}:::plan + Constant33{{"Constant[33∈0] ➊
ᐸ77ᐳ"}}:::plan + Constant34{{"Constant[34∈0] ➊
ᐸ'jubilant'ᐳ"}}:::plan + Constant31 & Constant32 & Constant33 & Constant34 --> __InputObject8 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 Object17{{"Object[17∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access15{{"Access[15∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access16{{"Access[16∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access15 & Access16 --> Object17 + BakedInput13{{"BakedInput[13∈0] ➊"}}:::plan + __InputObject8 --> BakedInput13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access15 __Value2 --> Access16 + PgFromExpression18{{"PgFromExpression[18∈0] ➊"}}:::plan + BakedInput13 --> PgFromExpression18 + ApplyInput23{{"ApplyInput[23∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput23 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant22{{"Constant[22∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan - Constant33{{"Constant[33∈0] ➊
ᐸ§{ id: 9001, person_id: 99, length_in_metres: 77, mood: 'jubᐳ"}}:::plan + Constant24{{"Constant[24∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan PgSelect14[["PgSelect[14∈1] ➊
ᐸleft_arm_identity(mutation)ᐳ"]]:::sideeffectplan - Object17 & Constant33 --> PgSelect14 - First18{{"First[18∈1] ➊"}}:::plan - PgSelectRows19[["PgSelectRows[19∈1] ➊"]]:::plan - PgSelectRows19 --> First18 - PgSelect14 --> PgSelectRows19 - PgSelectSingle20{{"PgSelectSingle[20∈1] ➊
ᐸleft_arm_identityᐳ"}}:::plan - First18 --> PgSelectSingle20 - Object21{{"Object[21∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle20 --> Object21 - List24{{"List[24∈3] ➊
ᐸ22,23ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3] ➊
ᐸ__left_arm...ity__.”id”ᐳ"}}:::plan - Constant22 & PgClassExpression23 --> List24 - PgSelectSingle20 --> PgClassExpression23 - Lambda25{{"Lambda[25∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List24 --> Lambda25 - PgClassExpression26{{"PgClassExpression[26∈3] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression26 - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression27 - PgClassExpression28{{"PgClassExpression[28∈3] ➊
ᐸ__left_arm...y__.”mood”ᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression28 + Object17 & PgFromExpression18 & ApplyInput23 --> PgSelect14 + List26{{"List[26∈1] ➊
ᐸ24,25ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__left_arm...ity__.”id”ᐳ"}}:::plan + Constant24 & PgClassExpression25 --> List26 + First19{{"First[19∈1] ➊"}}:::plan + PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan + PgSelectRows20 --> First19 + PgSelect14 --> PgSelectRows20 + PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸleft_arm_identityᐳ"}}:::plan + First19 --> PgSelectSingle21 + Object22{{"Object[22∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle21 --> Object22 + PgSelectSingle21 --> PgClassExpression25 + Lambda27{{"Lambda[27∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List26 --> Lambda27 + PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression28 + PgClassExpression29{{"PgClassExpression[29∈1] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression29 + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__left_arm...y__.”mood”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression30 %% define steps subgraph "Buckets for mutations/v4/rbac.leftArmIdentity" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access15,Access16,Object17,Constant22,Constant33 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 17, 33, 22

1: PgSelect[14]
2: PgSelectRows[19]
ᐳ: 18, 20, 21"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,BakedInput13,Access15,Access16,Object17,PgFromExpression18,ApplyInput23,Constant24,Constant31,Constant32,Constant33,Constant34 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 17, 18, 23, 24

1: PgSelect[14]
2: PgSelectRows[20]
ᐳ: 19, 21, 22, 25, 26, 27, 28, 29, 30"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,First18,PgSelectRows19,PgSelectSingle20,Object21 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 21, 20, 22

ROOT Object{1}ᐸ{result}ᐳ[21]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 22

ROOT PgSelectSingle{1}ᐸleft_arm_identityᐳ[20]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression23,List24,Lambda25,PgClassExpression26,PgClassExpression27,PgClassExpression28 bucket3 + class Bucket1,PgSelect14,First19,PgSelectRows20,PgSelectSingle21,Object22,PgClassExpression25,List26,Lambda27,PgClassExpression28,PgClassExpression29,PgClassExpression30 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/rbac.updateLeftArm.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/rbac.updateLeftArm.mermaid index a5af7dbb02..40740f7bcc 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/rbac.updateLeftArm.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/rbac.updateLeftArm.mermaid @@ -9,50 +9,50 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant26{{"Constant[26∈0] ➊
ᐸ47ᐳ"}}:::plan + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + Constant26 & __InputObject9 --> __InputObject6 Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 + Constant27{{"Constant[27∈0] ➊
ᐸ'jovial'ᐳ"}}:::plan + Constant27 --> __InputObject9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 + ApplyInput15{{"ApplyInput[15∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput15 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant16{{"Constant[16∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ47ᐳ"}}:::plan - Constant25{{"Constant[25∈0] ➊
ᐸ'jovial'ᐳ"}}:::plan - PgUpdateSingle11[["PgUpdateSingle[11∈1] ➊
ᐸleft_arm(id;mood)ᐳ"]]:::sideeffectplan - Object14 & Constant24 & Constant25 --> PgUpdateSingle11 - Object15{{"Object[15∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle11 --> Object15 - List18{{"List[18∈3] ➊
ᐸ16,17ᐳ"}}:::plan - PgClassExpression17{{"PgClassExpression[17∈3] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan - Constant16 & PgClassExpression17 --> List18 - PgUpdateSingle11 --> PgClassExpression17 - Lambda19{{"Lambda[19∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List18 --> Lambda19 - PgClassExpression21{{"PgClassExpression[21∈3] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan - PgUpdateSingle11 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgUpdateSingle11 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈3] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan - PgUpdateSingle11 --> PgClassExpression23 + Constant17{{"Constant[17∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan + PgUpdateSingle11[["PgUpdateSingle[11∈1] ➊
ᐸleft_arm(id;)ᐳ"]]:::sideeffectplan + Object14 & Constant26 & ApplyInput15 --> PgUpdateSingle11 + List20{{"List[20∈1] ➊
ᐸ17,18ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + Constant17 & PgClassExpression18 --> List20 + Object16{{"Object[16∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle11 --> Object16 + Access19{{"Access[19∈1] ➊
ᐸ11.tᐳ"}}:::plan + Access19 --> PgClassExpression18 + PgUpdateSingle11 --> Access19 + Lambda21{{"Lambda[21∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List20 --> Lambda21 + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan + Access19 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + Access19 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan + Access19 --> PgClassExpression25 %% define steps subgraph "Buckets for mutations/v4/rbac.updateLeftArm" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Constant16,Constant24,Constant25 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 14, 24, 25, 16

1: PgUpdateSingle[11]
2:
ᐳ: Object[15]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject9,Access12,Access13,Object14,ApplyInput15,Constant17,Constant26,Constant27 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 14, 26, 15, 17

1: PgUpdateSingle[11]
2:
ᐳ: 16, 19, 18, 20, 21, 23, 24, 25"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUpdateSingle11,Object15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 11, 16

ROOT Object{1}ᐸ{result}ᐳ[15]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 11, 16

ROOT PgUpdateSingle{1}ᐸleft_arm(id;mood)ᐳ[11]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,List18,Lambda19,PgClassExpression21,PgClassExpression22,PgClassExpression23 bucket3 + class Bucket1,PgUpdateSingle11,Object16,PgClassExpression18,Access19,List20,Lambda21,PgClassExpression23,PgClassExpression24,PgClassExpression25 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/rbac.updatePerson.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/rbac.updatePerson.mermaid index 8d78bc477d..c6089dc52e 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/rbac.updatePerson.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/rbac.updatePerson.mermaid @@ -9,72 +9,73 @@ graph TD %% plan dependencies - Object21{{"Object[21∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access19{{"Access[19∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access20{{"Access[20∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access19 & Access20 --> Object21 + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + Constant38{{"Constant[38∈0] ➊
ᐸ'Budd Daay'ᐳ"}}:::plan + Constant11{{"Constant[11∈0] ➊
ᐸ[ 'BD', 'Buddy' ]ᐳ"}}:::plan + Constant12{{"Constant[12∈0] ➊
ᐸnullᐳ"}}:::plan + Constant39{{"Constant[39∈0] ➊
ᐸ'buddy@example.com'ᐳ"}}:::plan + __InputObject14{{"__InputObject[14∈0] ➊"}}:::plan + Constant38 & Constant11 & Constant12 & Constant39 & __InputObject14 --> __InputObject9 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant37{{"Constant[37∈0] ➊
ᐸ3ᐳ"}}:::plan + Constant37 & __InputObject9 --> __InputObject6 + Object19{{"Object[19∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Access17{{"Access[17∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access18{{"Access[18∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access17 & Access18 --> Object19 + Constant40{{"Constant[40∈0] ➊
ᐸ'http://buddy.com'ᐳ"}}:::plan + Constant40 --> __InputObject14 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access19 - __Value2 --> Access20 + __Value2 --> Access17 + __Value2 --> Access18 + ApplyInput20{{"ApplyInput[20∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput20 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant40{{"Constant[40∈0] ➊
ᐸ3ᐳ"}}:::plan - Constant41{{"Constant[41∈0] ➊
ᐸ'Budd Daay'ᐳ"}}:::plan - Constant44{{"Constant[44∈0] ➊
ᐸnullᐳ"}}:::plan - Constant45{{"Constant[45∈0] ➊
ᐸ'buddy@example.com'ᐳ"}}:::plan - Constant47{{"Constant[47∈0] ➊
ᐸ[ 'BD', 'Buddy' ]ᐳ"}}:::plan - Constant48{{"Constant[48∈0] ➊
ᐸ§{ url: 'http://buddy.com' }ᐳ"}}:::plan - PgUpdateSingle18[["PgUpdateSingle[18∈1] ➊
ᐸperson(id;person_full_name,aliases,about,email,site)ᐳ"]]:::sideeffectplan - Object21 & Constant40 & Constant41 & Constant47 & Constant44 & Constant45 & Constant48 --> PgUpdateSingle18 - Object22{{"Object[22∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle18 --> Object22 - PgSelect32[["PgSelect[32∈3] ➊
ᐸfrmcdc_wrappedUrlᐳ"]]:::plan - PgClassExpression31{{"PgClassExpression[31∈3] ➊
ᐸ__person__.”site”ᐳ"}}:::plan - Object21 & PgClassExpression31 --> PgSelect32 - PgClassExpression25{{"PgClassExpression[25∈3] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgUpdateSingle18 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgUpdateSingle18 --> PgClassExpression26 - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__person__.”aliases”ᐳ"}}:::plan - PgUpdateSingle18 --> PgClassExpression27 - PgClassExpression29{{"PgClassExpression[29∈3] ➊
ᐸ__person__.”about”ᐳ"}}:::plan - PgUpdateSingle18 --> PgClassExpression29 - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgUpdateSingle18 --> PgClassExpression30 - PgUpdateSingle18 --> PgClassExpression31 - First36{{"First[36∈3] ➊"}}:::plan - PgSelectRows37[["PgSelectRows[37∈3] ➊"]]:::plan - PgSelectRows37 --> First36 - PgSelect32 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈3] ➊
ᐸfrmcdc_wrappedUrlᐳ"}}:::plan - First36 --> PgSelectSingle38 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgClassExpression27 ==> __Item28 - PgClassExpression39{{"PgClassExpression[39∈5] ➊
ᐸ__frmcdc_w...rl__.”url”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 + PgUpdateSingle16[["PgUpdateSingle[16∈1] ➊
ᐸperson(id;)ᐳ"]]:::sideeffectplan + Object19 & Constant37 & ApplyInput20 --> PgUpdateSingle16 + PgSelect30[["PgSelect[30∈1] ➊
ᐸfrmcdc_wrappedUrlᐳ"]]:::plan + PgFromExpression32{{"PgFromExpression[32∈1] ➊"}}:::plan + Object19 & PgFromExpression32 --> PgSelect30 + Object21{{"Object[21∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle16 --> Object21 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Access23{{"Access[23∈1] ➊
ᐸ16.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgUpdateSingle16 --> Access23 + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + Access23 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__person__.”aliases”ᐳ"}}:::plan + Access23 --> PgClassExpression25 + PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__person__.”about”ᐳ"}}:::plan + Access23 --> PgClassExpression27 + PgClassExpression28{{"PgClassExpression[28∈1] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + Access23 --> PgClassExpression28 + PgClassExpression29{{"PgClassExpression[29∈1] ➊
ᐸ__person__.”site”ᐳ"}}:::plan + Access23 --> PgClassExpression29 + PgClassExpression29 --> PgFromExpression32 + First33{{"First[33∈1] ➊"}}:::plan + PgSelectRows34[["PgSelectRows[34∈1] ➊"]]:::plan + PgSelectRows34 --> First33 + PgSelect30 --> PgSelectRows34 + PgSelectSingle35{{"PgSelectSingle[35∈1] ➊
ᐸfrmcdc_wrappedUrlᐳ"}}:::plan + First33 --> PgSelectSingle35 + PgClassExpression36{{"PgClassExpression[36∈1] ➊
ᐸ__frmcdc_w...rl__.”url”ᐳ"}}:::plan + PgSelectSingle35 --> PgClassExpression36 + __Item26[/"__Item[26∈2]
ᐸ25ᐳ"\]:::itemplan + PgClassExpression25 ==> __Item26 %% define steps subgraph "Buckets for mutations/v4/rbac.updatePerson" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access19,Access20,Object21,Constant40,Constant41,Constant44,Constant45,Constant47,Constant48 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 21, 40, 41, 47, 44, 45, 48

1: PgUpdateSingle[18]
2:
ᐳ: Object[22]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject9,Constant11,Constant12,__InputObject14,Access17,Access18,Object19,ApplyInput20,Constant37,Constant38,Constant39,Constant40 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 19, 37, 20

1: PgUpdateSingle[16]
2:
ᐳ: 21, 23, 22, 24, 25, 27, 28, 29, 32
3: PgSelect[30]
4: PgSelectRows[34]
ᐳ: 33, 35, 36"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUpdateSingle18,Object22 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 22, 18, 21

ROOT Object{1}ᐸ{result}ᐳ[22]"):::bucket + class Bucket1,PgUpdateSingle16,Object21,PgClassExpression22,Access23,PgClassExpression24,PgClassExpression25,PgClassExpression27,PgClassExpression28,PgClassExpression29,PgSelect30,PgFromExpression32,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ25ᐳ[26]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 18, 21

ROOT PgUpdateSingle{1}ᐸperson(id;person_full_name,aliases,about,email,site)ᐳ[18]
1:
ᐳ: 25, 26, 27, 29, 30, 31
2: PgSelect[32]
3: PgSelectRows[37]
ᐳ: First[36], PgSelectSingle[38]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgClassExpression29,PgClassExpression30,PgClassExpression31,PgSelect32,First36,PgSelectRows37,PgSelectSingle38 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item28 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{3}ᐸfrmcdc_wrappedUrlᐳ[38]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression39 bucket5 + class Bucket2,__Item26 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/relay.createLeftArm.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/relay.createLeftArm.mermaid index e6aa74cd39..757d44906a 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/relay.createLeftArm.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/relay.createLeftArm.mermaid @@ -9,81 +9,65 @@ graph TD %% plan dependencies + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant34{{"Constant[34∈0] ➊
ᐸ0.69ᐳ"}}:::plan + Constant35{{"Constant[35∈0] ➊
ᐸ'WyJwZW9wbGUiLDZd'ᐳ"}}:::plan + Constant34 & Constant35 --> __InputObject8 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + __InputObject8 --> __InputObject6 Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 - __Flag21[["__Flag[21∈0] ➊
ᐸ20, if(16), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - __Flag20[["__Flag[20∈0] ➊
ᐸ19, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition16{{"Condition[16∈0] ➊
ᐸexistsᐳ"}}:::plan - __Flag20 & Condition16 --> __Flag21 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 - Constant41{{"Constant[41∈0] ➊
ᐸ'WyJwZW9wbGUiLDZd'ᐳ"}}:::plan - Constant41 --> Condition16 - Lambda17{{"Lambda[17∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Constant41 --> Lambda17 - Access18{{"Access[18∈0] ➊
ᐸ17.1ᐳ"}}:::plan - Lambda17 --> Access18 - __Flag19[["__Flag[19∈0] ➊
ᐸ18, rejectNull, onReject: INHIBITᐳ"]]:::plan - Access18 --> __Flag19 - __Flag19 --> __Flag20 + ApplyInput15{{"ApplyInput[15∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput15 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant22{{"Constant[22∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan - Constant34{{"Constant[34∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant40{{"Constant[40∈0] ➊
ᐸ0.69ᐳ"}}:::plan - PgInsertSingle11[["PgInsertSingle[11∈1] ➊
ᐸleft_arm(length_in_metres,person_id)ᐳ"]]:::sideeffectplan - Object14 & Constant40 & __Flag21 --> PgInsertSingle11 - Object15{{"Object[15∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle11 --> Object15 - List24{{"List[24∈3] ➊
ᐸ22,23ᐳ"}}:::plan - PgClassExpression23{{"PgClassExpression[23∈3] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan - Constant22 & PgClassExpression23 --> List24 - PgSelect27[["PgSelect[27∈3] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression26{{"PgClassExpression[26∈3] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan - Object14 & PgClassExpression26 --> PgSelect27 - PgInsertSingle11 --> PgClassExpression23 - Lambda25{{"Lambda[25∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List24 --> Lambda25 - PgInsertSingle11 --> PgClassExpression26 - First31{{"First[31∈3] ➊"}}:::plan - PgSelectRows32[["PgSelectRows[32∈3] ➊"]]:::plan - PgSelectRows32 --> First31 - PgSelect27 --> PgSelectRows32 - PgSelectSingle33{{"PgSelectSingle[33∈3] ➊
ᐸpersonᐳ"}}:::plan - First31 --> PgSelectSingle33 - PgClassExpression38{{"PgClassExpression[38∈3] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgInsertSingle11 --> PgClassExpression38 - PgClassExpression39{{"PgClassExpression[39∈3] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan - PgInsertSingle11 --> PgClassExpression39 - List36{{"List[36∈4] ➊
ᐸ34,35ᐳ"}}:::plan - PgClassExpression35{{"PgClassExpression[35∈4] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant34 & PgClassExpression35 --> List36 - PgSelectSingle33 --> PgClassExpression35 - Lambda37{{"Lambda[37∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List36 --> Lambda37 + Constant17{{"Constant[17∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan + Constant28{{"Constant[28∈0] ➊
ᐸ'people'ᐳ"}}:::plan + PgInsertSingle11[["PgInsertSingle[11∈1] ➊
ᐸleft_arm()ᐳ"]]:::sideeffectplan + Object14 & ApplyInput15 --> PgInsertSingle11 + List20{{"List[20∈1] ➊
ᐸ17,18ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + Constant17 & PgClassExpression18 --> List20 + PgSelect23[["PgSelect[23∈1] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan + Object14 & PgClassExpression22 --> PgSelect23 + List30{{"List[30∈1] ➊
ᐸ28,29ᐳ"}}:::plan + PgClassExpression29{{"PgClassExpression[29∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant28 & PgClassExpression29 --> List30 + Object16{{"Object[16∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle11 --> Object16 + Access19{{"Access[19∈1] ➊
ᐸ11.tᐳ"}}:::plan + Access19 --> PgClassExpression18 + PgInsertSingle11 --> Access19 + Lambda21{{"Lambda[21∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List20 --> Lambda21 + Access19 --> PgClassExpression22 + First25{{"First[25∈1] ➊"}}:::plan + PgSelectRows26[["PgSelectRows[26∈1] ➊"]]:::plan + PgSelectRows26 --> First25 + PgSelect23 --> PgSelectRows26 + PgSelectSingle27{{"PgSelectSingle[27∈1] ➊
ᐸpersonᐳ"}}:::plan + First25 --> PgSelectSingle27 + PgSelectSingle27 --> PgClassExpression29 + Lambda31{{"Lambda[31∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List30 --> Lambda31 + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + Access19 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan + Access19 --> PgClassExpression33 %% define steps subgraph "Buckets for mutations/v4/relay.createLeftArm" - Bucket0("Bucket 0 (root)

1:
ᐳ: 12, 13, 22, 34, 40, 41, 14, 16, 17, 18
2: __Flag[19]
3: __Flag[20]
4: __Flag[21]"):::bucket + Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Condition16,Lambda17,Access18,__Flag19,__Flag20,__Flag21,Constant22,Constant34,Constant40,Constant41 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 14, 40, 21, 22, 34

1: PgInsertSingle[11]
2:
ᐳ: Object[15]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject8,Access12,Access13,Object14,ApplyInput15,Constant17,Constant28,Constant34,Constant35 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 14, 15, 17, 28

1: PgInsertSingle[11]
2:
ᐳ: 16, 19, 18, 20, 21, 22, 32, 33
3: PgSelect[23]
4: PgSelectRows[26]
ᐳ: 25, 27, 29, 30, 31"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgInsertSingle11,Object15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 15, 11, 22, 14, 34

ROOT Object{1}ᐸ{result}ᐳ[15]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 11, 22, 14, 34

ROOT PgInsertSingle{1}ᐸleft_arm(length_in_metres,person_id)ᐳ[11]
1:
ᐳ: 23, 26, 38, 39, 24, 25
2: PgSelect[27]
3: PgSelectRows[32]
ᐳ: First[31], PgSelectSingle[33]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression23,List24,Lambda25,PgClassExpression26,PgSelect27,First31,PgSelectRows32,PgSelectSingle33,PgClassExpression38,PgClassExpression39 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 33, 34

ROOT PgSelectSingle{3}ᐸpersonᐳ[33]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression35,List36,Lambda37 bucket4 + class Bucket1,PgInsertSingle11,Object16,PgClassExpression18,Access19,List20,Lambda21,PgClassExpression22,PgSelect23,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression29,List30,Lambda31,PgClassExpression32,PgClassExpression33 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.differentPerson.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.differentPerson.mermaid index 47e9217b98..8c6a54f640 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.differentPerson.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.differentPerson.mermaid @@ -9,87 +9,71 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant38{{"Constant[38∈0] ➊
ᐸ'WyJsZWZ0X2FybXMiLDQyXQ=='ᐳ"}}:::plan + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + Constant38 & __InputObject9 --> __InputObject6 + Constant39{{"Constant[39∈0] ➊
ᐸ0.74ᐳ"}}:::plan + Constant40{{"Constant[40∈0] ➊
ᐸ'WyJwZW9wbGUiLDNd'ᐳ"}}:::plan + Constant39 & Constant40 --> __InputObject9 Object18{{"Object[18∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access16{{"Access[16∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access17{{"Access[17∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access16 & Access17 --> Object18 - __Flag25[["__Flag[25∈0] ➊
ᐸ24, if(20), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - __Flag24[["__Flag[24∈0] ➊
ᐸ23, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition20{{"Condition[20∈0] ➊
ᐸexistsᐳ"}}:::plan - __Flag24 & Condition20 --> __Flag25 Lambda12{{"Lambda[12∈0] ➊
ᐸdecode_LeftArm_base64JSONᐳ"}}:::plan - Constant44{{"Constant[44∈0] ➊
ᐸ'WyJsZWZ0X2FybXMiLDQyXQ=='ᐳ"}}:::plan - Constant44 --> Lambda12 + Constant38 --> Lambda12 Access13{{"Access[13∈0] ➊
ᐸ12.1ᐳ"}}:::plan Lambda12 --> Access13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access16 __Value2 --> Access17 - Constant46{{"Constant[46∈0] ➊
ᐸ'WyJwZW9wbGUiLDNd'ᐳ"}}:::plan - Constant46 --> Condition20 - Lambda21{{"Lambda[21∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Constant46 --> Lambda21 - Access22{{"Access[22∈0] ➊
ᐸ21.1ᐳ"}}:::plan - Lambda21 --> Access22 - __Flag23[["__Flag[23∈0] ➊
ᐸ22, rejectNull, onReject: INHIBITᐳ"]]:::plan - Access22 --> __Flag23 - __Flag23 --> __Flag24 + ApplyInput19{{"ApplyInput[19∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput19 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant26{{"Constant[26∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan - Constant38{{"Constant[38∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant45{{"Constant[45∈0] ➊
ᐸ0.74ᐳ"}}:::plan - PgUpdateSingle15[["PgUpdateSingle[15∈1] ➊
ᐸleft_arm(id;length_in_metres,person_id)ᐳ"]]:::sideeffectplan + Constant21{{"Constant[21∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan + Constant32{{"Constant[32∈0] ➊
ᐸ'people'ᐳ"}}:::plan + PgUpdateSingle15[["PgUpdateSingle[15∈1] ➊
ᐸleft_arm(id;)ᐳ"]]:::sideeffectplan Object18 -->|rejectNull| PgUpdateSingle15 - Access13 & Constant45 & __Flag25 --> PgUpdateSingle15 - Object19{{"Object[19∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle15 --> Object19 - List28{{"List[28∈3] ➊
ᐸ26,27ᐳ"}}:::plan - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan - Constant26 & PgClassExpression27 --> List28 - PgSelect31[["PgSelect[31∈3] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan - Object18 & PgClassExpression30 --> PgSelect31 - PgUpdateSingle15 --> PgClassExpression27 - Lambda29{{"Lambda[29∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List28 --> Lambda29 - PgUpdateSingle15 --> PgClassExpression30 - First35{{"First[35∈3] ➊"}}:::plan - PgSelectRows36[["PgSelectRows[36∈3] ➊"]]:::plan - PgSelectRows36 --> First35 - PgSelect31 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈3] ➊
ᐸpersonᐳ"}}:::plan - First35 --> PgSelectSingle37 - PgClassExpression42{{"PgClassExpression[42∈3] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgUpdateSingle15 --> PgClassExpression42 - PgClassExpression43{{"PgClassExpression[43∈3] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan - PgUpdateSingle15 --> PgClassExpression43 - List40{{"List[40∈4] ➊
ᐸ38,39ᐳ"}}:::plan - PgClassExpression39{{"PgClassExpression[39∈4] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant38 & PgClassExpression39 --> List40 - PgSelectSingle37 --> PgClassExpression39 - Lambda41{{"Lambda[41∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List40 --> Lambda41 + Access13 & ApplyInput19 --> PgUpdateSingle15 + List24{{"List[24∈1] ➊
ᐸ21,22ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + Constant21 & PgClassExpression22 --> List24 + PgSelect27[["PgSelect[27∈1] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan + Object18 & PgClassExpression26 --> PgSelect27 + List34{{"List[34∈1] ➊
ᐸ32,33ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant32 & PgClassExpression33 --> List34 + Object20{{"Object[20∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle15 --> Object20 + Access23{{"Access[23∈1] ➊
ᐸ15.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgUpdateSingle15 --> Access23 + Lambda25{{"Lambda[25∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List24 --> Lambda25 + Access23 --> PgClassExpression26 + First29{{"First[29∈1] ➊"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1] ➊"]]:::plan + PgSelectRows30 --> First29 + PgSelect27 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1] ➊
ᐸpersonᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgSelectSingle31 --> PgClassExpression33 + Lambda35{{"Lambda[35∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List34 --> Lambda35 + PgClassExpression36{{"PgClassExpression[36∈1] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + Access23 --> PgClassExpression36 + PgClassExpression37{{"PgClassExpression[37∈1] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan + Access23 --> PgClassExpression37 %% define steps subgraph "Buckets for mutations/v4/relay.updateLeftArm.differentPerson" - Bucket0("Bucket 0 (root)

1:
ᐳ: 16, 17, 26, 38, 44, 45, 46, 12, 13, 18, 20, 21, 22
2: __Flag[23]
3: __Flag[24]
4: __Flag[25]"):::bucket + Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Lambda12,Access13,Access16,Access17,Object18,Condition20,Lambda21,Access22,__Flag23,__Flag24,__Flag25,Constant26,Constant38,Constant44,Constant45,Constant46 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 18, 13, 45, 25, 26, 38

1: PgUpdateSingle[15]
2:
ᐳ: Object[19]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject9,Lambda12,Access13,Access16,Access17,Object18,ApplyInput19,Constant21,Constant32,Constant38,Constant39,Constant40 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 18, 13, 19, 21, 32

1: PgUpdateSingle[15]
2:
ᐳ: 20, 23, 22, 24, 25, 26, 36, 37
3: PgSelect[27]
4: PgSelectRows[30]
ᐳ: 29, 31, 33, 34, 35"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUpdateSingle15,Object19 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 19, 15, 26, 18, 38

ROOT Object{1}ᐸ{result}ᐳ[19]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 26, 18, 38

ROOT PgUpdateSingle{1}ᐸleft_arm(id;length_in_metres,person_id)ᐳ[15]
1:
ᐳ: 27, 30, 42, 43, 28, 29
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: First[35], PgSelectSingle[37]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression27,List28,Lambda29,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression42,PgClassExpression43 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 37, 38

ROOT PgSelectSingle{3}ᐸpersonᐳ[37]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression39,List40,Lambda41 bucket4 + class Bucket1,PgUpdateSingle15,Object20,PgClassExpression22,Access23,List24,Lambda25,PgClassExpression26,PgSelect27,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression33,List34,Lambda35,PgClassExpression36,PgClassExpression37 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.invalidId.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.invalidId.mermaid index a0166edce2..2887f23778 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.invalidId.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.invalidId.mermaid @@ -9,87 +9,71 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant38{{"Constant[38∈0] ➊
ᐸ'WyJsZWZ0X2FybXMiLDQyXQ=='ᐳ"}}:::plan + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + Constant38 & __InputObject9 --> __InputObject6 + Constant39{{"Constant[39∈0] ➊
ᐸ0.75ᐳ"}}:::plan + Constant40{{"Constant[40∈0] ➊
ᐸ'WyJteV90YWJsZXMiLDFd'ᐳ"}}:::plan + Constant39 & Constant40 --> __InputObject9 Object18{{"Object[18∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access16{{"Access[16∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access17{{"Access[17∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access16 & Access17 --> Object18 - __Flag25[["__Flag[25∈0] ➊
ᐸ24, if(20), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - __Flag24[["__Flag[24∈0] ➊
ᐸ23, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition20{{"Condition[20∈0] ➊
ᐸexistsᐳ"}}:::plan - __Flag24 & Condition20 --> __Flag25 Lambda12{{"Lambda[12∈0] ➊
ᐸdecode_LeftArm_base64JSONᐳ"}}:::plan - Constant44{{"Constant[44∈0] ➊
ᐸ'WyJsZWZ0X2FybXMiLDQyXQ=='ᐳ"}}:::plan - Constant44 --> Lambda12 + Constant38 --> Lambda12 Access13{{"Access[13∈0] ➊
ᐸ12.1ᐳ"}}:::plan Lambda12 --> Access13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access16 __Value2 --> Access17 - Constant46{{"Constant[46∈0] ➊
ᐸ'WyJteV90YWJsZXMiLDFd'ᐳ"}}:::plan - Constant46 --> Condition20 - Lambda21{{"Lambda[21∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Constant46 --> Lambda21 - Access22{{"Access[22∈0] ➊
ᐸ21.1ᐳ"}}:::plan - Lambda21 --> Access22 - __Flag23[["__Flag[23∈0] ➊
ᐸ22, rejectNull, onReject: INHIBITᐳ"]]:::plan - Access22 --> __Flag23 - __Flag23 --> __Flag24 + ApplyInput19{{"ApplyInput[19∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput19 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant26{{"Constant[26∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan - Constant38{{"Constant[38∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant45{{"Constant[45∈0] ➊
ᐸ0.75ᐳ"}}:::plan - PgUpdateSingle15[["PgUpdateSingle[15∈1] ➊
ᐸleft_arm(id;length_in_metres,person_id)ᐳ"]]:::sideeffectplan + Constant21{{"Constant[21∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan + Constant32{{"Constant[32∈0] ➊
ᐸ'people'ᐳ"}}:::plan + PgUpdateSingle15[["PgUpdateSingle[15∈1] ➊
ᐸleft_arm(id;)ᐳ"]]:::sideeffectplan Object18 -->|rejectNull| PgUpdateSingle15 - Access13 & Constant45 & __Flag25 --> PgUpdateSingle15 - Object19{{"Object[19∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle15 --> Object19 - List28{{"List[28∈3] ➊
ᐸ26,27ᐳ"}}:::plan - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan - Constant26 & PgClassExpression27 --> List28 - PgSelect31[["PgSelect[31∈3] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan - Object18 & PgClassExpression30 --> PgSelect31 - PgUpdateSingle15 --> PgClassExpression27 - Lambda29{{"Lambda[29∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List28 --> Lambda29 - PgUpdateSingle15 --> PgClassExpression30 - First35{{"First[35∈3] ➊"}}:::plan - PgSelectRows36[["PgSelectRows[36∈3] ➊"]]:::plan - PgSelectRows36 --> First35 - PgSelect31 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈3] ➊
ᐸpersonᐳ"}}:::plan - First35 --> PgSelectSingle37 - PgClassExpression42{{"PgClassExpression[42∈3] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgUpdateSingle15 --> PgClassExpression42 - PgClassExpression43{{"PgClassExpression[43∈3] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan - PgUpdateSingle15 --> PgClassExpression43 - List40{{"List[40∈4] ➊
ᐸ38,39ᐳ"}}:::plan - PgClassExpression39{{"PgClassExpression[39∈4] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant38 & PgClassExpression39 --> List40 - PgSelectSingle37 --> PgClassExpression39 - Lambda41{{"Lambda[41∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List40 --> Lambda41 + Access13 & ApplyInput19 --> PgUpdateSingle15 + List24{{"List[24∈1] ➊
ᐸ21,22ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + Constant21 & PgClassExpression22 --> List24 + PgSelect27[["PgSelect[27∈1] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan + Object18 & PgClassExpression26 --> PgSelect27 + List34{{"List[34∈1] ➊
ᐸ32,33ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant32 & PgClassExpression33 --> List34 + Object20{{"Object[20∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle15 --> Object20 + Access23{{"Access[23∈1] ➊
ᐸ15.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgUpdateSingle15 --> Access23 + Lambda25{{"Lambda[25∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List24 --> Lambda25 + Access23 --> PgClassExpression26 + First29{{"First[29∈1] ➊"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1] ➊"]]:::plan + PgSelectRows30 --> First29 + PgSelect27 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1] ➊
ᐸpersonᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgSelectSingle31 --> PgClassExpression33 + Lambda35{{"Lambda[35∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List34 --> Lambda35 + PgClassExpression36{{"PgClassExpression[36∈1] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + Access23 --> PgClassExpression36 + PgClassExpression37{{"PgClassExpression[37∈1] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan + Access23 --> PgClassExpression37 %% define steps subgraph "Buckets for mutations/v4/relay.updateLeftArm.invalidId" - Bucket0("Bucket 0 (root)

1:
ᐳ: 16, 17, 26, 38, 44, 45, 46, 12, 13, 18, 20, 21, 22
2: __Flag[23]
3: __Flag[24]
4: __Flag[25]"):::bucket + Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Lambda12,Access13,Access16,Access17,Object18,Condition20,Lambda21,Access22,__Flag23,__Flag24,__Flag25,Constant26,Constant38,Constant44,Constant45,Constant46 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 18, 13, 45, 25, 26, 38

1: PgUpdateSingle[15]
2:
ᐳ: Object[19]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject9,Lambda12,Access13,Access16,Access17,Object18,ApplyInput19,Constant21,Constant32,Constant38,Constant39,Constant40 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 18, 13, 19, 21, 32

1: PgUpdateSingle[15]
2:
ᐳ: 20, 23, 22, 24, 25, 26, 36, 37
3: PgSelect[27]
4: PgSelectRows[30]
ᐳ: 29, 31, 33, 34, 35"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUpdateSingle15,Object19 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 19, 15, 26, 18, 38

ROOT Object{1}ᐸ{result}ᐳ[19]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 26, 18, 38

ROOT PgUpdateSingle{1}ᐸleft_arm(id;length_in_metres,person_id)ᐳ[15]
1:
ᐳ: 27, 30, 42, 43, 28, 29
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: First[35], PgSelectSingle[37]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression27,List28,Lambda29,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression42,PgClassExpression43 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 37, 38

ROOT PgSelectSingle{3}ᐸpersonᐳ[37]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression39,List40,Lambda41 bucket4 + class Bucket1,PgUpdateSingle15,Object20,PgClassExpression22,Access23,List24,Lambda25,PgClassExpression26,PgSelect27,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression33,List34,Lambda35,PgClassExpression36,PgClassExpression37 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.mermaid index f07ae48bdc..cc6c3aadb2 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.mermaid @@ -9,87 +9,71 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant38{{"Constant[38∈0] ➊
ᐸ'WyJsZWZ0X2FybXMiLDQyXQ=='ᐳ"}}:::plan + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + Constant38 & __InputObject9 --> __InputObject6 + Constant39{{"Constant[39∈0] ➊
ᐸ0.71ᐳ"}}:::plan + Constant11{{"Constant[11∈0] ➊
ᐸnullᐳ"}}:::plan + Constant39 & Constant11 --> __InputObject9 Object18{{"Object[18∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access16{{"Access[16∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access17{{"Access[17∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access16 & Access17 --> Object18 - __Flag25[["__Flag[25∈0] ➊
ᐸ24, if(20), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - __Flag24[["__Flag[24∈0] ➊
ᐸ23, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition20{{"Condition[20∈0] ➊
ᐸexistsᐳ"}}:::plan - __Flag24 & Condition20 --> __Flag25 Lambda12{{"Lambda[12∈0] ➊
ᐸdecode_LeftArm_base64JSONᐳ"}}:::plan - Constant44{{"Constant[44∈0] ➊
ᐸ'WyJsZWZ0X2FybXMiLDQyXQ=='ᐳ"}}:::plan - Constant44 --> Lambda12 + Constant38 --> Lambda12 Access13{{"Access[13∈0] ➊
ᐸ12.1ᐳ"}}:::plan Lambda12 --> Access13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access16 __Value2 --> Access17 - Constant46{{"Constant[46∈0] ➊
ᐸnullᐳ"}}:::plan - Constant46 --> Condition20 - Lambda21{{"Lambda[21∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Constant46 --> Lambda21 - Access22{{"Access[22∈0] ➊
ᐸ21.1ᐳ"}}:::plan - Lambda21 --> Access22 - __Flag23[["__Flag[23∈0] ➊
ᐸ22, rejectNull, onReject: INHIBITᐳ"]]:::plan - Access22 --> __Flag23 - __Flag23 --> __Flag24 + ApplyInput19{{"ApplyInput[19∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput19 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant26{{"Constant[26∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan - Constant38{{"Constant[38∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant45{{"Constant[45∈0] ➊
ᐸ0.71ᐳ"}}:::plan - PgUpdateSingle15[["PgUpdateSingle[15∈1] ➊
ᐸleft_arm(id;length_in_metres,person_id)ᐳ"]]:::sideeffectplan + Constant21{{"Constant[21∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan + Constant32{{"Constant[32∈0] ➊
ᐸ'people'ᐳ"}}:::plan + PgUpdateSingle15[["PgUpdateSingle[15∈1] ➊
ᐸleft_arm(id;)ᐳ"]]:::sideeffectplan Object18 -->|rejectNull| PgUpdateSingle15 - Access13 & Constant45 & __Flag25 --> PgUpdateSingle15 - Object19{{"Object[19∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle15 --> Object19 - List28{{"List[28∈3] ➊
ᐸ26,27ᐳ"}}:::plan - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan - Constant26 & PgClassExpression27 --> List28 - PgSelect31[["PgSelect[31∈3] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈3] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan - Object18 & PgClassExpression30 --> PgSelect31 - PgUpdateSingle15 --> PgClassExpression27 - Lambda29{{"Lambda[29∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List28 --> Lambda29 - PgUpdateSingle15 --> PgClassExpression30 - First35{{"First[35∈3] ➊"}}:::plan - PgSelectRows36[["PgSelectRows[36∈3] ➊"]]:::plan - PgSelectRows36 --> First35 - PgSelect31 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈3] ➊
ᐸpersonᐳ"}}:::plan - First35 --> PgSelectSingle37 - PgClassExpression42{{"PgClassExpression[42∈3] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgUpdateSingle15 --> PgClassExpression42 - PgClassExpression43{{"PgClassExpression[43∈3] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan - PgUpdateSingle15 --> PgClassExpression43 - List40{{"List[40∈4] ➊
ᐸ38,39ᐳ"}}:::plan - PgClassExpression39{{"PgClassExpression[39∈4] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant38 & PgClassExpression39 --> List40 - PgSelectSingle37 --> PgClassExpression39 - Lambda41{{"Lambda[41∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List40 --> Lambda41 + Access13 & ApplyInput19 --> PgUpdateSingle15 + List24{{"List[24∈1] ➊
ᐸ21,22ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + Constant21 & PgClassExpression22 --> List24 + PgSelect27[["PgSelect[27∈1] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan + Object18 & PgClassExpression26 --> PgSelect27 + List34{{"List[34∈1] ➊
ᐸ32,33ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant32 & PgClassExpression33 --> List34 + Object20{{"Object[20∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle15 --> Object20 + Access23{{"Access[23∈1] ➊
ᐸ15.tᐳ"}}:::plan + Access23 --> PgClassExpression22 + PgUpdateSingle15 --> Access23 + Lambda25{{"Lambda[25∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List24 --> Lambda25 + Access23 --> PgClassExpression26 + First29{{"First[29∈1] ➊"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1] ➊"]]:::plan + PgSelectRows30 --> First29 + PgSelect27 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1] ➊
ᐸpersonᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgSelectSingle31 --> PgClassExpression33 + Lambda35{{"Lambda[35∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List34 --> Lambda35 + PgClassExpression36{{"PgClassExpression[36∈1] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + Access23 --> PgClassExpression36 + PgClassExpression37{{"PgClassExpression[37∈1] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan + Access23 --> PgClassExpression37 %% define steps subgraph "Buckets for mutations/v4/relay.updateLeftArm" - Bucket0("Bucket 0 (root)

1:
ᐳ: 16, 17, 26, 38, 44, 45, 46, 12, 13, 18, 20, 21, 22
2: __Flag[23]
3: __Flag[24]
4: __Flag[25]"):::bucket + Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Lambda12,Access13,Access16,Access17,Object18,Condition20,Lambda21,Access22,__Flag23,__Flag24,__Flag25,Constant26,Constant38,Constant44,Constant45,Constant46 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 18, 13, 45, 25, 26, 38

1: PgUpdateSingle[15]
2:
ᐳ: Object[19]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject9,Constant11,Lambda12,Access13,Access16,Access17,Object18,ApplyInput19,Constant21,Constant32,Constant38,Constant39 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 18, 13, 19, 21, 32

1: PgUpdateSingle[15]
2:
ᐳ: 20, 23, 22, 24, 25, 26, 36, 37
3: PgSelect[27]
4: PgSelectRows[30]
ᐳ: 29, 31, 33, 34, 35"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUpdateSingle15,Object19 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 19, 15, 26, 18, 38

ROOT Object{1}ᐸ{result}ᐳ[19]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 26, 18, 38

ROOT PgUpdateSingle{1}ᐸleft_arm(id;length_in_metres,person_id)ᐳ[15]
1:
ᐳ: 27, 30, 42, 43, 28, 29
2: PgSelect[31]
3: PgSelectRows[36]
ᐳ: First[35], PgSelectSingle[37]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression27,List28,Lambda29,PgClassExpression30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression42,PgClassExpression43 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 37, 38

ROOT PgSelectSingle{3}ᐸpersonᐳ[37]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression39,List40,Lambda41 bucket4 + class Bucket1,PgUpdateSingle15,Object20,PgClassExpression22,Access23,List24,Lambda25,PgClassExpression26,PgSelect27,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression33,List34,Lambda35,PgClassExpression36,PgClassExpression37 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.withoutPersonId.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.withoutPersonId.mermaid index c9053c0e2e..4077ac09dd 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.withoutPersonId.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/relay.updateLeftArm.withoutPersonId.mermaid @@ -9,74 +9,70 @@ graph TD %% plan dependencies + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant37{{"Constant[37∈0] ➊
ᐸ'WyJsZWZ0X2FybXMiLDQyXQ=='ᐳ"}}:::plan + __InputObject9{{"__InputObject[9∈0] ➊"}}:::plan + Constant37 & __InputObject9 --> __InputObject6 + Constant38{{"Constant[38∈0] ➊
ᐸ0.71ᐳ"}}:::plan + Constant38 --> __InputObject9 Object17{{"Object[17∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access15{{"Access[15∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access16{{"Access[16∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access15 & Access16 --> Object17 Lambda11{{"Lambda[11∈0] ➊
ᐸdecode_LeftArm_base64JSONᐳ"}}:::plan - Constant37{{"Constant[37∈0] ➊
ᐸ'WyJsZWZ0X2FybXMiLDQyXQ=='ᐳ"}}:::plan Constant37 --> Lambda11 Access12{{"Access[12∈0] ➊
ᐸ11.1ᐳ"}}:::plan Lambda11 --> Access12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access15 __Value2 --> Access16 + ApplyInput18{{"ApplyInput[18∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput18 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant19{{"Constant[19∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan + Constant20{{"Constant[20∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan Constant31{{"Constant[31∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant38{{"Constant[38∈0] ➊
ᐸ0.71ᐳ"}}:::plan - PgUpdateSingle14[["PgUpdateSingle[14∈1] ➊
ᐸleft_arm(id;length_in_metres)ᐳ"]]:::sideeffectplan + PgUpdateSingle14[["PgUpdateSingle[14∈1] ➊
ᐸleft_arm(id;)ᐳ"]]:::sideeffectplan Object17 -->|rejectNull| PgUpdateSingle14 - Access12 & Constant38 --> PgUpdateSingle14 - Object18{{"Object[18∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle14 --> Object18 - List21{{"List[21∈3] ➊
ᐸ19,20ᐳ"}}:::plan - PgClassExpression20{{"PgClassExpression[20∈3] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan - Constant19 & PgClassExpression20 --> List21 - PgSelect24[["PgSelect[24∈3] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan - Object17 & PgClassExpression23 --> PgSelect24 - PgUpdateSingle14 --> PgClassExpression20 - Lambda22{{"Lambda[22∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List21 --> Lambda22 - PgUpdateSingle14 --> PgClassExpression23 - First28{{"First[28∈3] ➊"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3] ➊"]]:::plan + Access12 & ApplyInput18 --> PgUpdateSingle14 + List23{{"List[23∈1] ➊
ᐸ20,21ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + Constant20 & PgClassExpression21 --> List23 + PgSelect26[["PgSelect[26∈1] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan + Object17 & PgClassExpression25 --> PgSelect26 + List33{{"List[33∈1] ➊
ᐸ31,32ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant31 & PgClassExpression32 --> List33 + Object19{{"Object[19∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle14 --> Object19 + Access22{{"Access[22∈1] ➊
ᐸ14.tᐳ"}}:::plan + Access22 --> PgClassExpression21 + PgUpdateSingle14 --> Access22 + Lambda24{{"Lambda[24∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List23 --> Lambda24 + Access22 --> PgClassExpression25 + First28{{"First[28∈1] ➊"}}:::plan + PgSelectRows29[["PgSelectRows[29∈1] ➊"]]:::plan PgSelectRows29 --> First28 - PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3] ➊
ᐸpersonᐳ"}}:::plan + PgSelect26 --> PgSelectRows29 + PgSelectSingle30{{"PgSelectSingle[30∈1] ➊
ᐸpersonᐳ"}}:::plan First28 --> PgSelectSingle30 - PgClassExpression35{{"PgClassExpression[35∈3] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgUpdateSingle14 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈3] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan - PgUpdateSingle14 --> PgClassExpression36 - List33{{"List[33∈4] ➊
ᐸ31,32ᐳ"}}:::plan - PgClassExpression32{{"PgClassExpression[32∈4] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant31 & PgClassExpression32 --> List33 PgSelectSingle30 --> PgClassExpression32 - Lambda34{{"Lambda[34∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda34{{"Lambda[34∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List33 --> Lambda34 + PgClassExpression35{{"PgClassExpression[35∈1] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + Access22 --> PgClassExpression35 + PgClassExpression36{{"PgClassExpression[36∈1] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan + Access22 --> PgClassExpression36 %% define steps subgraph "Buckets for mutations/v4/relay.updateLeftArm.withoutPersonId" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Lambda11,Access12,Access15,Access16,Object17,Constant19,Constant31,Constant37,Constant38 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 17, 12, 38, 19, 31

1: PgUpdateSingle[14]
2:
ᐳ: Object[18]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,__InputObject9,Lambda11,Access12,Access15,Access16,Object17,ApplyInput18,Constant20,Constant31,Constant37,Constant38 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 17, 12, 18, 20, 31

1: PgUpdateSingle[14]
2:
ᐳ: 19, 22, 21, 23, 24, 25, 35, 36
3: PgSelect[26]
4: PgSelectRows[29]
ᐳ: 28, 30, 32, 33, 34"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUpdateSingle14,Object18 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 18, 14, 19, 17, 31

ROOT Object{1}ᐸ{result}ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 14, 19, 17, 31

ROOT PgUpdateSingle{1}ᐸleft_arm(id;length_in_metres)ᐳ[14]
1:
ᐳ: 20, 23, 35, 36, 21, 22
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression20,List21,Lambda22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression35,PgClassExpression36 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30, 31

ROOT PgSelectSingle{3}ᐸpersonᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32,List33,Lambda34 bucket4 + class Bucket1,PgUpdateSingle14,Object19,PgClassExpression21,Access22,List23,Lambda24,PgClassExpression25,PgSelect26,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression32,List33,Lambda34,PgClassExpression35,PgClassExpression36 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/mutations/v4/types.mermaid b/postgraphile/postgraphile/__tests__/mutations/v4/types.mermaid index fd6cebc0d6..2c88d0e365 100644 --- a/postgraphile/postgraphile/__tests__/mutations/v4/types.mermaid +++ b/postgraphile/postgraphile/__tests__/mutations/v4/types.mermaid @@ -9,2157 +9,2101 @@ graph TD %% plan dependencies + __InputObject666{{"__InputObject[666∈0] ➊"}}:::plan + Constant1233{{"Constant[1233∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant1234{{"Constant[1234∈0] ➊
ᐸ'1'ᐳ"}}:::plan + Constant1235{{"Constant[1235∈0] ➊
ᐸtrueᐳ"}}:::plan + Constant1236{{"Constant[1236∈0] ➊
ᐸ'red'ᐳ"}}:::plan + Constant674{{"Constant[674∈0] ➊
ᐸ[ 'red', 'green', 'blue' ]ᐳ"}}:::plan + Constant677{{"Constant[677∈0] ➊
ᐸ[ 'Hi' ]ᐳ"}}:::plan + Constant1237{{"Constant[1237∈0] ➊
ᐸ{ json: true }ᐳ"}}:::plan + Constant1238{{"Constant[1238∈0] ➊
ᐸ{ jsonb: true }ᐳ"}}:::plan + __InputObject680{{"__InputObject[680∈0] ➊"}}:::plan + __InputObject687{{"__InputObject[687∈0] ➊"}}:::plan + __InputObject694{{"__InputObject[694∈0] ➊"}}:::plan + Constant1243{{"Constant[1243∈0] ➊
ᐸ'2012-01-11'ᐳ"}}:::plan + Constant1244{{"Constant[1244∈0] ➊
ᐸ'2012-01-01'ᐳ"}}:::plan + Constant1245{{"Constant[1245∈0] ➊
ᐸ'2010-01-01'ᐳ"}}:::plan + Constant1246{{"Constant[1246∈0] ➊
ᐸ'19:00:00'ᐳ"}}:::plan + __InputObject706{{"__InputObject[706∈0] ➊"}}:::plan + Constant708{{"Constant[708∈0] ➊
ᐸ[ §{ minutes: 27 } ]ᐳ"}}:::plan + Constant1247{{"Constant[1247∈0] ➊
ᐸ27ᐳ"}}:::plan + __InputObject710{{"__InputObject[710∈0] ➊"}}:::plan + __InputObject712{{"__InputObject[712∈0] ➊"}}:::plan + __InputObject715{{"__InputObject[715∈0] ➊"}}:::plan + __InputObject718{{"__InputObject[718∈0] ➊"}}:::plan + Constant1252{{"Constant[1252∈0] ➊
ᐸ'192.168.0.0'ᐳ"}}:::plan + Constant1253{{"Constant[1253∈0] ➊
ᐸ'192.168.0.0/16'ᐳ"}}:::plan + Constant1254{{"Constant[1254∈0] ➊
ᐸ'08:00:2b:01:02:03'ᐳ"}}:::plan + Constant1255{{"Constant[1255∈0] ➊
ᐸ'b.type_function'ᐳ"}}:::plan + Constant1256{{"Constant[1256∈0] ➊
ᐸ'b.type_function(int)'ᐳ"}}:::plan + Constant1257{{"Constant[1257∈0] ➊
ᐸ'*ᐸᐳ'ᐳ"}}:::plan + Constant1258{{"Constant[1258∈0] ➊
ᐸ'+(integer, integer)'ᐳ"}}:::plan + Constant1259{{"Constant[1259∈0] ➊
ᐸ'c.person'ᐳ"}}:::plan + Constant1260{{"Constant[1260∈0] ➊
ᐸ'numeric'ᐳ"}}:::plan + Constant1261{{"Constant[1261∈0] ➊
ᐸ'dutch'ᐳ"}}:::plan + Constant1262{{"Constant[1262∈0] ➊
ᐸ'dutch_stem'ᐳ"}}:::plan + Constant732{{"Constant[732∈0] ➊
ᐸ[ 'T1', 'T2', 'T3' ]ᐳ"}}:::plan + Constant733{{"Constant[733∈0] ➊
ᐸ[ '2098288669218571759', '2098288669218571760', '20982886692ᐳ"}}:::plan + Constant1263{{"Constant[1263∈0] ➊
ᐸᐸBuffer 5a 53 ea 5a 7f eaᐳᐳ"}}:::plan + Constant735{{"Constant[735∈0] ➊
ᐸ[ ᐸBuffer 01 a0 5b 09 c0 ddᐳ, ᐸBuffer 01 a0 5bᐳ ]ᐳ"}}:::plan + Constant1264{{"Constant[1264∈0] ➊
ᐸ'Foo.Bar.Baz'ᐳ"}}:::plan + Constant737{{"Constant[737∈0] ➊
ᐸ[ 'Bar.Baz.Qux', 'Bar.Foo.Fah' ]ᐳ"}}:::plan + Constant1235 & Constant1236 & Constant674 & Constant677 & Constant1237 & Constant1238 & __InputObject680 & __InputObject687 & __InputObject694 & Constant1243 & Constant1244 & Constant1245 & __InputObject706 & Constant708 & Constant1247 & __InputObject710 & __InputObject712 & __InputObject715 & __InputObject718 & Constant1252 & Constant1253 & Constant1254 & Constant1255 & Constant1256 & Constant1257 & Constant1258 & Constant1259 & Constant1260 & Constant1261 & Constant1262 & Constant732 & Constant733 & Constant1263 & Constant735 & Constant1264 & Constant737 --> __InputObject666 + Constant1233 -- 3 --> __InputObject666 + Constant1234 -- 4 --> __InputObject666 + Constant1246 -- 2 --> __InputObject666 + __InputObject955{{"__InputObject[955∈0] ➊"}}:::plan + Constant963{{"Constant[963∈0] ➊
ᐸ[ 'red', 'green', 'blue' ]ᐳ"}}:::plan + Constant966{{"Constant[966∈0] ➊
ᐸ[ 'Hi' ]ᐳ"}}:::plan + Constant1265{{"Constant[1265∈0] ➊
ᐸ{ json: true }ᐳ"}}:::plan + Constant1266{{"Constant[1266∈0] ➊
ᐸ{ jsonb: true }ᐳ"}}:::plan + __InputObject969{{"__InputObject[969∈0] ➊"}}:::plan + __InputObject976{{"__InputObject[976∈0] ➊"}}:::plan + __InputObject983{{"__InputObject[983∈0] ➊"}}:::plan + __InputObject995{{"__InputObject[995∈0] ➊"}}:::plan + Constant997{{"Constant[997∈0] ➊
ᐸ[ §{ minutes: 27 } ]ᐳ"}}:::plan + __InputObject999{{"__InputObject[999∈0] ➊"}}:::plan + __InputObject1001{{"__InputObject[1001∈0] ➊"}}:::plan + __InputObject1004{{"__InputObject[1004∈0] ➊"}}:::plan + Constant1016{{"Constant[1016∈0] ➊
ᐸ[ 'Bar.Baz.Qux', 'Bar.Foo.Fah' ]ᐳ"}}:::plan + Constant1235 & Constant1236 & Constant963 & Constant966 & Constant1265 & Constant1266 & __InputObject969 & __InputObject976 & __InputObject983 & Constant1243 & Constant1244 & Constant1245 & __InputObject995 & Constant997 & Constant1247 & __InputObject999 & __InputObject1001 & __InputObject1004 & Constant1255 & Constant1256 & Constant1257 & Constant1258 & Constant1259 & Constant1260 & Constant1261 & Constant1262 & Constant1264 & Constant1016 --> __InputObject955 + Constant1233 -- 3 --> __InputObject955 + Constant1234 -- 4 --> __InputObject955 + Constant1246 -- 2 --> __InputObject955 + __InputObject663{{"__InputObject[663∈0] ➊"}}:::plan + Constant1232{{"Constant[1232∈0] ➊
ᐸ11ᐳ"}}:::plan + Constant1232 & __InputObject666 --> __InputObject663 + __InputObject6{{"__InputObject[6∈0] ➊"}}:::plan + Constant1232 --> __InputObject6 Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 + __InputObject681{{"__InputObject[681∈0] ➊"}}:::plan + __InputObject684{{"__InputObject[684∈0] ➊"}}:::plan + __InputObject681 & __InputObject684 --> __InputObject680 + Constant1234 & Constant1235 --> __InputObject681 + Constant1239{{"Constant[1239∈0] ➊
ᐸ'7'ᐳ"}}:::plan + Constant1239 & Constant1235 --> __InputObject684 + __InputObject688{{"__InputObject[688∈0] ➊"}}:::plan + __InputObject691{{"__InputObject[691∈0] ➊"}}:::plan + __InputObject688 & __InputObject691 --> __InputObject687 + Constant1240{{"Constant[1240∈0] ➊
ᐸ'1985-01-01'ᐳ"}}:::plan + Constant1240 & Constant1235 --> __InputObject688 + Constant1241{{"Constant[1241∈0] ➊
ᐸ'2020-01-01'ᐳ"}}:::plan + Constant1241 & Constant1235 --> __InputObject691 + __InputObject695{{"__InputObject[695∈0] ➊"}}:::plan + __InputObject698{{"__InputObject[698∈0] ➊"}}:::plan + __InputObject695 & __InputObject698 --> __InputObject694 + Constant1233 & Constant1235 --> __InputObject695 + Constant1242{{"Constant[1242∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant1242 & Constant1235 --> __InputObject698 + Constant1247 --> __InputObject706 + Constant1233 --> __InputObject710 + __InputObject713{{"__InputObject[713∈0] ➊"}}:::plan + __InputObject713 --> __InputObject712 + Constant1233 --> __InputObject713 + Constant1248{{"Constant[1248∈0] ➊
ᐸ99ᐳ"}}:::plan + Constant1249{{"Constant[1249∈0] ➊
ᐸ77ᐳ"}}:::plan + Constant1248 & Constant1249 --> __InputObject715 + Constant1250{{"Constant[1250∈0] ➊
ᐸ0ᐳ"}}:::plan + Constant1251{{"Constant[1251∈0] ➊
ᐸ42ᐳ"}}:::plan + Constant1250 & Constant1251 --> __InputObject718 + __InputObject953{{"__InputObject[953∈0] ➊"}}:::plan + __InputObject955 --> __InputObject953 + __InputObject970{{"__InputObject[970∈0] ➊"}}:::plan + __InputObject973{{"__InputObject[973∈0] ➊"}}:::plan + __InputObject970 & __InputObject973 --> __InputObject969 + Constant1234 & Constant1235 --> __InputObject970 + Constant1239 & Constant1235 --> __InputObject973 + __InputObject977{{"__InputObject[977∈0] ➊"}}:::plan + __InputObject980{{"__InputObject[980∈0] ➊"}}:::plan + __InputObject977 & __InputObject980 --> __InputObject976 + Constant1240 & Constant1235 --> __InputObject977 + Constant1241 & Constant1235 --> __InputObject980 + __InputObject984{{"__InputObject[984∈0] ➊"}}:::plan + __InputObject987{{"__InputObject[987∈0] ➊"}}:::plan + __InputObject984 & __InputObject987 --> __InputObject983 + Constant1233 & Constant1235 --> __InputObject984 + Constant1242 & Constant1235 --> __InputObject987 + Constant1247 --> __InputObject995 + Constant1233 --> __InputObject999 + __InputObject1002{{"__InputObject[1002∈0] ➊"}}:::plan + __InputObject1002 --> __InputObject1001 + Constant1233 --> __InputObject1002 + Constant1248 & Constant1249 --> __InputObject1004 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 + PgFromExpression13{{"PgFromExpression[13∈0] ➊"}}:::plan + Constant1232 --> PgFromExpression13 + ApplyInput18{{"ApplyInput[18∈0] ➊"}}:::plan + __InputObject6 --> ApplyInput18 + __InputObject225{{"__InputObject[225∈0] ➊"}}:::plan + ApplyInput232{{"ApplyInput[232∈0] ➊"}}:::plan + __InputObject225 --> ApplyInput232 + __InputObject444{{"__InputObject[444∈0] ➊"}}:::plan + ApplyInput451{{"ApplyInput[451∈0] ➊"}}:::plan + __InputObject444 --> ApplyInput451 + ApplyInput742{{"ApplyInput[742∈0] ➊"}}:::plan + __InputObject663 --> ApplyInput742 + ApplyInput1021{{"ApplyInput[1021∈0] ➊"}}:::plan + __InputObject953 --> ApplyInput1021 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant1266{{"Constant[1266∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant1267{{"Constant[1267∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant1268{{"Constant[1268∈0] ➊
ᐸ'1'ᐳ"}}:::plan - Constant1269{{"Constant[1269∈0] ➊
ᐸtrueᐳ"}}:::plan - Constant1270{{"Constant[1270∈0] ➊
ᐸ'red'ᐳ"}}:::plan - Constant1274{{"Constant[1274∈0] ➊
ᐸ{ json: true }ᐳ"}}:::plan - Constant1275{{"Constant[1275∈0] ➊
ᐸ{ jsonb: true }ᐳ"}}:::plan - Constant1280{{"Constant[1280∈0] ➊
ᐸ'2012-01-11'ᐳ"}}:::plan - Constant1281{{"Constant[1281∈0] ➊
ᐸ'2012-01-01'ᐳ"}}:::plan - Constant1282{{"Constant[1282∈0] ➊
ᐸ'2010-01-01'ᐳ"}}:::plan - Constant1283{{"Constant[1283∈0] ➊
ᐸ'19:00:00'ᐳ"}}:::plan - Constant1284{{"Constant[1284∈0] ➊
ᐸ27ᐳ"}}:::plan - Constant1289{{"Constant[1289∈0] ➊
ᐸ'192.168.0.0'ᐳ"}}:::plan - Constant1290{{"Constant[1290∈0] ➊
ᐸ'192.168.0.0/16'ᐳ"}}:::plan - Constant1291{{"Constant[1291∈0] ➊
ᐸ'08:00:2b:01:02:03'ᐳ"}}:::plan - Constant1292{{"Constant[1292∈0] ➊
ᐸ'b.type_function'ᐳ"}}:::plan - Constant1293{{"Constant[1293∈0] ➊
ᐸ'b.type_function(int)'ᐳ"}}:::plan - Constant1294{{"Constant[1294∈0] ➊
ᐸ'*ᐸᐳ'ᐳ"}}:::plan - Constant1295{{"Constant[1295∈0] ➊
ᐸ'+(integer, integer)'ᐳ"}}:::plan - Constant1296{{"Constant[1296∈0] ➊
ᐸ'c.person'ᐳ"}}:::plan - Constant1297{{"Constant[1297∈0] ➊
ᐸ'numeric'ᐳ"}}:::plan - Constant1298{{"Constant[1298∈0] ➊
ᐸ'dutch'ᐳ"}}:::plan - Constant1299{{"Constant[1299∈0] ➊
ᐸ'dutch_stem'ᐳ"}}:::plan - Constant1306{{"Constant[1306∈0] ➊
ᐸᐸBuffer 5a 53 ea 5a 7f eaᐳᐳ"}}:::plan - Constant1309{{"Constant[1309∈0] ➊
ᐸ'Foo.Bar.Baz'ᐳ"}}:::plan - Constant1312{{"Constant[1312∈0] ➊
ᐸ{ json: true }ᐳ"}}:::plan - Constant1313{{"Constant[1313∈0] ➊
ᐸ{ jsonb: true }ᐳ"}}:::plan - Constant1314{{"Constant[1314∈0] ➊
ᐸ§{ seconds: undefined, minutes: 27, hours: undefined, days: ᐳ"}}:::plan - Constant1316{{"Constant[1316∈0] ➊
ᐸ[ 'red', 'green', 'blue' ]ᐳ"}}:::plan - Constant1317{{"Constant[1317∈0] ➊
ᐸ[ 'Hi' ]ᐳ"}}:::plan - Constant1324{{"Constant[1324∈0] ➊
ᐸ[ §{ seconds: undefined, minutes: 27, hours: undefined, daysᐳ"}}:::plan - Constant1325{{"Constant[1325∈0] ➊
ᐸ§{ a: 1 }ᐳ"}}:::plan - Constant1326{{"Constant[1326∈0] ➊
ᐸ§{ a: §{ a: 1 } }ᐳ"}}:::plan - Constant1327{{"Constant[1327∈0] ➊
ᐸ§{ x: 99, y: 77 }ᐳ"}}:::plan - Constant1328{{"Constant[1328∈0] ➊
ᐸ§{ x: 0, y: 42 }ᐳ"}}:::plan - Constant1329{{"Constant[1329∈0] ➊
ᐸ[ 'T1', 'T2', 'T3' ]ᐳ"}}:::plan - Constant1330{{"Constant[1330∈0] ➊
ᐸ[ '2098288669218571759', '2098288669218571760', '20982886692ᐳ"}}:::plan - Constant1331{{"Constant[1331∈0] ➊
ᐸ[ ᐸBuffer 01 a0 5b 09 c0 ddᐳ, ᐸBuffer 01 a0 5bᐳ ]ᐳ"}}:::plan - Constant1332{{"Constant[1332∈0] ➊
ᐸ[ 'Bar.Baz.Qux', 'Bar.Foo.Fah' ]ᐳ"}}:::plan - Constant1346{{"Constant[1346∈0] ➊
ᐸ§{ start: §{ value: '1', inclusive: true }, end: §{ value: 'ᐳ"}}:::plan - Constant1347{{"Constant[1347∈0] ➊
ᐸ§{ start: §{ value: '1985-01-01', inclusive: true }, end: §{ᐳ"}}:::plan - Constant1348{{"Constant[1348∈0] ➊
ᐸ§{ start: §{ value: 1, inclusive: true }, end: §{ value: 2, ᐳ"}}:::plan PgSelect9[["PgSelect[9∈1] ➊
ᐸtype_function_mutation(mutation)ᐳ"]]:::sideeffectplan - Object12 & Constant1266 --> PgSelect9 - First13{{"First[13∈1] ➊"}}:::plan - PgSelectRows14[["PgSelectRows[14∈1] ➊"]]:::plan - PgSelectRows14 --> First13 - PgSelect9 --> PgSelectRows14 - PgSelectSingle15{{"PgSelectSingle[15∈1] ➊
ᐸtype_function_mutationᐳ"}}:::plan - First13 --> PgSelectSingle15 - Object16{{"Object[16∈1] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelectSingle15 --> Object16 - PgSelect83[["PgSelect[83∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression82{{"PgClassExpression[82∈3] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression82 --> PgSelect83 - PgSelect98[["PgSelect[98∈3] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression97{{"PgClassExpression[97∈3] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression97 --> PgSelect98 - PgSelect104[["PgSelect[104∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression103{{"PgClassExpression[103∈3] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression103 --> PgSelect104 - PgSelect117[["PgSelect[117∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression116{{"PgClassExpression[116∈3] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression116 --> PgSelect117 - PgSelect131[["PgSelect[131∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression130{{"PgClassExpression[130∈3] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression130 --> PgSelect131 - PgSelect144[["PgSelect[144∈3] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression143{{"PgClassExpression[143∈3] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression143 --> PgSelect144 - PgSelect202[["PgSelect[202∈3] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈3] ➊
ᐸ__type_fun...”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression18 --> PgSelect202 - PgSelect209[["PgSelect[209∈3] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression17{{"PgClassExpression[17∈3] ➊
ᐸ__type_fun...ion__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression17 --> PgSelect209 - PgSelectSingle15 --> PgClassExpression17 - PgSelectSingle15 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3] ➊
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3] ➊
ᐸ__type_fun....”numeric”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3] ➊
ᐸ__type_fun....”decimal”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3] ➊
ᐸ__type_fun....”boolean”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈3] ➊
ᐸ__type_fun....”varchar”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3] ➊
ᐸ__type_fun...n__.”enum”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3] ➊
ᐸ__type_fun...num_array”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression25 - PgClassExpression27{{"PgClassExpression[27∈3] ➊
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression27 - PgClassExpression28{{"PgClassExpression[28∈3] ➊
ᐸ__type_fun....”domain2”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression28 - PgClassExpression29{{"PgClassExpression[29∈3] ➊
ᐸ__type_fun...ext_array”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression29 - PgClassExpression31{{"PgClassExpression[31∈3] ➊
ᐸ__type_fun...n__.”json”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__type_fun...ble_range”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression33 - PgClassExpression40{{"PgClassExpression[40∈3] ➊
ᐸ__type_fun...”numrange”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression40 - Access41{{"Access[41∈3] ➊
ᐸ40.startᐳ"}}:::plan - PgClassExpression40 --> Access41 - Access44{{"Access[44∈3] ➊
ᐸ40.endᐳ"}}:::plan - PgClassExpression40 --> Access44 - PgClassExpression47{{"PgClassExpression[47∈3] ➊
ᐸ__type_fun...daterange”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression47 - Access48{{"Access[48∈3] ➊
ᐸ47.startᐳ"}}:::plan - PgClassExpression47 --> Access48 - Access51{{"Access[51∈3] ➊
ᐸ47.endᐳ"}}:::plan - PgClassExpression47 --> Access51 - PgClassExpression54{{"PgClassExpression[54∈3] ➊
ᐸ__type_fun...int_range”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression54 - Access55{{"Access[55∈3] ➊
ᐸ54.startᐳ"}}:::plan - PgClassExpression54 --> Access55 - Access58{{"Access[58∈3] ➊
ᐸ54.endᐳ"}}:::plan - PgClassExpression54 --> Access58 - PgClassExpression61{{"PgClassExpression[61∈3] ➊
ᐸ__type_fun...timestamp”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression61 - PgClassExpression62{{"PgClassExpression[62∈3] ➊
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression62 - PgClassExpression63{{"PgClassExpression[63∈3] ➊
ᐸ__type_fun...n__.”date”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression63 - PgClassExpression64{{"PgClassExpression[64∈3] ➊
ᐸ__type_fun...n__.”time”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression64 - PgClassExpression65{{"PgClassExpression[65∈3] ➊
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression65 - PgClassExpression66{{"PgClassExpression[66∈3] ➊
ᐸ__type_fun...”interval”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression66 - PgClassExpression73{{"PgClassExpression[73∈3] ➊
ᐸ__type_fun...val_array”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression73 - PgClassExpression81{{"PgClassExpression[81∈3] ➊
ᐸ__type_fun...__.”money”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression81 - PgSelectSingle15 --> PgClassExpression82 - First87{{"First[87∈3] ➊"}}:::plan - PgSelectRows88[["PgSelectRows[88∈3] ➊"]]:::plan - PgSelectRows88 --> First87 - PgSelect83 --> PgSelectRows88 - PgSelectSingle89{{"PgSelectSingle[89∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First87 --> PgSelectSingle89 - PgClassExpression90{{"PgClassExpression[90∈3] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression90 - PgClassExpression91{{"PgClassExpression[91∈3] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression91 - PgClassExpression92{{"PgClassExpression[92∈3] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression92 - PgClassExpression93{{"PgClassExpression[93∈3] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression93 - PgClassExpression94{{"PgClassExpression[94∈3] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression94 - PgClassExpression95{{"PgClassExpression[95∈3] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression95 - PgClassExpression96{{"PgClassExpression[96∈3] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression96 - PgSelectSingle15 --> PgClassExpression97 - First100{{"First[100∈3] ➊"}}:::plan - PgSelectRows101[["PgSelectRows[101∈3] ➊"]]:::plan - PgSelectRows101 --> First100 - PgSelect98 --> PgSelectRows101 - PgSelectSingle102{{"PgSelectSingle[102∈3] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First100 --> PgSelectSingle102 - PgSelectSingle102 --> PgClassExpression103 - First106{{"First[106∈3] ➊"}}:::plan - PgSelectRows107[["PgSelectRows[107∈3] ➊"]]:::plan - PgSelectRows107 --> First106 - PgSelect104 --> PgSelectRows107 - PgSelectSingle108{{"PgSelectSingle[108∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First106 --> PgSelectSingle108 - PgSelectSingle102 --> PgClassExpression116 - First119{{"First[119∈3] ➊"}}:::plan - PgSelectRows120[["PgSelectRows[120∈3] ➊"]]:::plan - PgSelectRows120 --> First119 - PgSelect117 --> PgSelectRows120 - PgSelectSingle121{{"PgSelectSingle[121∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First119 --> PgSelectSingle121 - PgClassExpression129{{"PgClassExpression[129∈3] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression129 - PgSelectSingle15 --> PgClassExpression130 - First133{{"First[133∈3] ➊"}}:::plan - PgSelectRows134[["PgSelectRows[134∈3] ➊"]]:::plan - PgSelectRows134 --> First133 - PgSelect131 --> PgSelectRows134 - PgSelectSingle135{{"PgSelectSingle[135∈3] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First133 --> PgSelectSingle135 - PgSelectSingle15 --> PgClassExpression143 - First146{{"First[146∈3] ➊"}}:::plan - PgSelectRows147[["PgSelectRows[147∈3] ➊"]]:::plan - PgSelectRows147 --> First146 - PgSelect144 --> PgSelectRows147 - PgSelectSingle148{{"PgSelectSingle[148∈3] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First146 --> PgSelectSingle148 - PgClassExpression178{{"PgClassExpression[178∈3] ➊
ᐸ__type_fun...__.”point”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression178 - PgClassExpression181{{"PgClassExpression[181∈3] ➊
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression181 - PgClassExpression184{{"PgClassExpression[184∈3] ➊
ᐸ__type_fun...n__.”inet”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression184 - PgClassExpression185{{"PgClassExpression[185∈3] ➊
ᐸ__type_fun...n__.”cidr”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression185 - PgClassExpression186{{"PgClassExpression[186∈3] ➊
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression186 - PgClassExpression187{{"PgClassExpression[187∈3] ➊
ᐸ__type_fun....”regproc”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression187 - PgClassExpression188{{"PgClassExpression[188∈3] ➊
ᐸ__type_fun...procedure”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression188 - PgClassExpression189{{"PgClassExpression[189∈3] ➊
ᐸ__type_fun....”regoper”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression189 - PgClassExpression190{{"PgClassExpression[190∈3] ➊
ᐸ__type_fun...goperator”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression190 - PgClassExpression191{{"PgClassExpression[191∈3] ➊
ᐸ__type_fun...”regclass”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression191 - PgClassExpression192{{"PgClassExpression[192∈3] ➊
ᐸ__type_fun....”regtype”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression192 - PgClassExpression193{{"PgClassExpression[193∈3] ➊
ᐸ__type_fun...regconfig”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression193 - PgClassExpression194{{"PgClassExpression[194∈3] ➊
ᐸ__type_fun...ictionary”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression194 - PgClassExpression195{{"PgClassExpression[195∈3] ➊
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression195 - PgClassExpression197{{"PgClassExpression[197∈3] ➊
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression197 - PgClassExpression199{{"PgClassExpression[199∈3] ➊
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression199 - PgClassExpression200{{"PgClassExpression[200∈3] ➊
ᐸ__type_fun...tea_array”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression200 - First204{{"First[204∈3] ➊"}}:::plan - PgSelectRows205[["PgSelectRows[205∈3] ➊"]]:::plan - PgSelectRows205 --> First204 - PgSelect202 --> PgSelectRows205 - PgSelectSingle206{{"PgSelectSingle[206∈3] ➊
ᐸpostᐳ"}}:::plan - First204 --> PgSelectSingle206 - First211{{"First[211∈3] ➊"}}:::plan - PgSelectRows212[["PgSelectRows[212∈3] ➊"]]:::plan - PgSelectRows212 --> First211 - PgSelect209 --> PgSelectRows212 - PgSelectSingle213{{"PgSelectSingle[213∈3] ➊
ᐸpostᐳ"}}:::plan - First211 --> PgSelectSingle213 - PgClassExpression216{{"PgClassExpression[216∈3] ➊
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression216 - PgClassExpression217{{"PgClassExpression[217∈3] ➊
ᐸ__type_fun...ree_array”ᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression217 - __Item26[/"__Item[26∈4]
ᐸ25ᐳ"\]:::itemplan - PgClassExpression25 ==> __Item26 - __Item30[/"__Item[30∈5]
ᐸ29ᐳ"\]:::itemplan - PgClassExpression29 ==> __Item30 - Access34{{"Access[34∈6] ➊
ᐸ33.startᐳ"}}:::plan - PgClassExpression33 --> Access34 - Access37{{"Access[37∈6] ➊
ᐸ33.endᐳ"}}:::plan - PgClassExpression33 --> Access37 - __Item74[/"__Item[74∈15]
ᐸ73ᐳ"\]:::itemplan - PgClassExpression73 ==> __Item74 - PgClassExpression109{{"PgClassExpression[109∈17] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle108 --> PgClassExpression109 - PgClassExpression110{{"PgClassExpression[110∈17] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle108 --> PgClassExpression110 - PgClassExpression111{{"PgClassExpression[111∈17] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle108 --> PgClassExpression111 - PgClassExpression112{{"PgClassExpression[112∈17] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle108 --> PgClassExpression112 - PgClassExpression113{{"PgClassExpression[113∈17] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle108 --> PgClassExpression113 - PgClassExpression114{{"PgClassExpression[114∈17] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle108 --> PgClassExpression114 - PgClassExpression115{{"PgClassExpression[115∈17] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle108 --> PgClassExpression115 - PgClassExpression122{{"PgClassExpression[122∈18] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle121 --> PgClassExpression122 - PgClassExpression123{{"PgClassExpression[123∈18] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle121 --> PgClassExpression123 - PgClassExpression124{{"PgClassExpression[124∈18] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle121 --> PgClassExpression124 - PgClassExpression125{{"PgClassExpression[125∈18] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle121 --> PgClassExpression125 - PgClassExpression126{{"PgClassExpression[126∈18] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle121 --> PgClassExpression126 - PgClassExpression127{{"PgClassExpression[127∈18] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle121 --> PgClassExpression127 - PgClassExpression128{{"PgClassExpression[128∈18] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle121 --> PgClassExpression128 - PgClassExpression136{{"PgClassExpression[136∈19] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle135 --> PgClassExpression136 - PgClassExpression137{{"PgClassExpression[137∈19] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle135 --> PgClassExpression137 - PgClassExpression138{{"PgClassExpression[138∈19] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle135 --> PgClassExpression138 - PgClassExpression139{{"PgClassExpression[139∈19] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle135 --> PgClassExpression139 - PgClassExpression140{{"PgClassExpression[140∈19] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle135 --> PgClassExpression140 - PgClassExpression141{{"PgClassExpression[141∈19] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle135 --> PgClassExpression141 - PgClassExpression142{{"PgClassExpression[142∈19] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle135 --> PgClassExpression142 - PgSelect150[["PgSelect[150∈20] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression149{{"PgClassExpression[149∈20] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression149 --> PgSelect150 - PgSelect165[["PgSelect[165∈20] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression164{{"PgClassExpression[164∈20] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression164 --> PgSelect165 - PgSelectSingle148 --> PgClassExpression149 - First154{{"First[154∈20] ➊"}}:::plan - PgSelectRows155[["PgSelectRows[155∈20] ➊"]]:::plan - PgSelectRows155 --> First154 - PgSelect150 --> PgSelectRows155 - PgSelectSingle156{{"PgSelectSingle[156∈20] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First154 --> PgSelectSingle156 - PgSelectSingle148 --> PgClassExpression164 - First167{{"First[167∈20] ➊"}}:::plan - PgSelectRows168[["PgSelectRows[168∈20] ➊"]]:::plan - PgSelectRows168 --> First167 - PgSelect165 --> PgSelectRows168 - PgSelectSingle169{{"PgSelectSingle[169∈20] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First167 --> PgSelectSingle169 - PgClassExpression177{{"PgClassExpression[177∈20] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle148 --> PgClassExpression177 - PgClassExpression157{{"PgClassExpression[157∈21] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle156 --> PgClassExpression157 - PgClassExpression158{{"PgClassExpression[158∈21] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle156 --> PgClassExpression158 - PgClassExpression159{{"PgClassExpression[159∈21] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle156 --> PgClassExpression159 - PgClassExpression160{{"PgClassExpression[160∈21] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle156 --> PgClassExpression160 - PgClassExpression161{{"PgClassExpression[161∈21] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle156 --> PgClassExpression161 - PgClassExpression162{{"PgClassExpression[162∈21] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle156 --> PgClassExpression162 - PgClassExpression163{{"PgClassExpression[163∈21] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle156 --> PgClassExpression163 - PgClassExpression170{{"PgClassExpression[170∈22] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle169 --> PgClassExpression170 - PgClassExpression171{{"PgClassExpression[171∈22] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle169 --> PgClassExpression171 - PgClassExpression172{{"PgClassExpression[172∈22] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle169 --> PgClassExpression172 - PgClassExpression173{{"PgClassExpression[173∈22] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle169 --> PgClassExpression173 - PgClassExpression174{{"PgClassExpression[174∈22] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle169 --> PgClassExpression174 - PgClassExpression175{{"PgClassExpression[175∈22] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle169 --> PgClassExpression175 - PgClassExpression176{{"PgClassExpression[176∈22] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle169 --> PgClassExpression176 - __Item196[/"__Item[196∈24]
ᐸ195ᐳ"\]:::itemplan - PgClassExpression195 ==> __Item196 - __Item198[/"__Item[198∈25]
ᐸ197ᐳ"\]:::itemplan - PgClassExpression197 ==> __Item198 - __Item201[/"__Item[201∈26]
ᐸ200ᐳ"\]:::itemplan - PgClassExpression200 ==> __Item201 - PgClassExpression207{{"PgClassExpression[207∈27] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle206 --> PgClassExpression207 - PgClassExpression208{{"PgClassExpression[208∈27] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle206 --> PgClassExpression208 - PgClassExpression214{{"PgClassExpression[214∈28] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle213 --> PgClassExpression214 - PgClassExpression215{{"PgClassExpression[215∈28] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle213 --> PgClassExpression215 - __Item218[/"__Item[218∈29]
ᐸ217ᐳ"\]:::itemplan - PgClassExpression217 ==> __Item218 - Object224{{"Object[224∈30] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access222{{"Access[222∈30] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access223{{"Access[223∈30] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access222 & Access223 --> Object224 - PgSelect221[["PgSelect[221∈30] ➊
ᐸtype_function_list_mutation(mutation)ᐳ"]]:::sideeffectplan - Object224 --> PgSelect221 - __Value2 --> Access222 - __Value2 --> Access223 - Object225{{"Object[225∈30] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect221 --> Object225 - PgSelectRows226[["PgSelectRows[226∈31] ➊"]]:::plan - PgSelect221 --> PgSelectRows226 - __Item227[/"__Item[227∈32]
ᐸ226ᐳ"\]:::itemplan - PgSelectRows226 ==> __Item227 - PgSelectSingle228{{"PgSelectSingle[228∈32]
ᐸtype_function_list_mutationᐳ"}}:::plan - __Item227 --> PgSelectSingle228 - PgSelect295[["PgSelect[295∈33]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression294{{"PgClassExpression[294∈33]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object224 & PgClassExpression294 --> PgSelect295 - PgSelect310[["PgSelect[310∈33]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression309{{"PgClassExpression[309∈33]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object224 & PgClassExpression309 --> PgSelect310 - PgSelect316[["PgSelect[316∈33]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression315{{"PgClassExpression[315∈33]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object224 & PgClassExpression315 --> PgSelect316 - PgSelect329[["PgSelect[329∈33]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression328{{"PgClassExpression[328∈33]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object224 & PgClassExpression328 --> PgSelect329 - PgSelect343[["PgSelect[343∈33]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression342{{"PgClassExpression[342∈33]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object224 & PgClassExpression342 --> PgSelect343 - PgSelect356[["PgSelect[356∈33]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression355{{"PgClassExpression[355∈33]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object224 & PgClassExpression355 --> PgSelect356 - PgSelect414[["PgSelect[414∈33]
ᐸpostᐳ"]]:::plan - PgClassExpression230{{"PgClassExpression[230∈33]
ᐸ__type_fun...”smallint”ᐳ"}}:::plan - Object224 & PgClassExpression230 --> PgSelect414 - PgSelect421[["PgSelect[421∈33]
ᐸpostᐳ"]]:::plan - PgClassExpression229{{"PgClassExpression[229∈33]
ᐸ__type_fun...ion__.”id”ᐳ"}}:::plan - Object224 & PgClassExpression229 --> PgSelect421 - PgSelectSingle228 --> PgClassExpression229 - PgSelectSingle228 --> PgClassExpression230 - PgClassExpression231{{"PgClassExpression[231∈33]
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression231 - PgClassExpression232{{"PgClassExpression[232∈33]
ᐸ__type_fun....”numeric”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression232 - PgClassExpression233{{"PgClassExpression[233∈33]
ᐸ__type_fun....”decimal”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression233 - PgClassExpression234{{"PgClassExpression[234∈33]
ᐸ__type_fun....”boolean”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression234 - PgClassExpression235{{"PgClassExpression[235∈33]
ᐸ__type_fun....”varchar”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression235 - PgClassExpression236{{"PgClassExpression[236∈33]
ᐸ__type_fun...n__.”enum”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression236 - PgClassExpression237{{"PgClassExpression[237∈33]
ᐸ__type_fun...num_array”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression237 - PgClassExpression239{{"PgClassExpression[239∈33]
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression239 - PgClassExpression240{{"PgClassExpression[240∈33]
ᐸ__type_fun....”domain2”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression240 - PgClassExpression241{{"PgClassExpression[241∈33]
ᐸ__type_fun...ext_array”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression241 - PgClassExpression243{{"PgClassExpression[243∈33]
ᐸ__type_fun...n__.”json”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression243 - PgClassExpression244{{"PgClassExpression[244∈33]
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression244 - PgClassExpression245{{"PgClassExpression[245∈33]
ᐸ__type_fun...ble_range”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression245 - PgClassExpression252{{"PgClassExpression[252∈33]
ᐸ__type_fun...”numrange”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression252 - Access253{{"Access[253∈33]
ᐸ252.startᐳ"}}:::plan - PgClassExpression252 --> Access253 - Access256{{"Access[256∈33]
ᐸ252.endᐳ"}}:::plan - PgClassExpression252 --> Access256 - PgClassExpression259{{"PgClassExpression[259∈33]
ᐸ__type_fun...daterange”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression259 - Access260{{"Access[260∈33]
ᐸ259.startᐳ"}}:::plan - PgClassExpression259 --> Access260 - Access263{{"Access[263∈33]
ᐸ259.endᐳ"}}:::plan - PgClassExpression259 --> Access263 - PgClassExpression266{{"PgClassExpression[266∈33]
ᐸ__type_fun...int_range”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression266 - Access267{{"Access[267∈33]
ᐸ266.startᐳ"}}:::plan - PgClassExpression266 --> Access267 - Access270{{"Access[270∈33]
ᐸ266.endᐳ"}}:::plan - PgClassExpression266 --> Access270 - PgClassExpression273{{"PgClassExpression[273∈33]
ᐸ__type_fun...timestamp”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression273 - PgClassExpression274{{"PgClassExpression[274∈33]
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression274 - PgClassExpression275{{"PgClassExpression[275∈33]
ᐸ__type_fun...n__.”date”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression275 - PgClassExpression276{{"PgClassExpression[276∈33]
ᐸ__type_fun...n__.”time”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression276 - PgClassExpression277{{"PgClassExpression[277∈33]
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression277 - PgClassExpression278{{"PgClassExpression[278∈33]
ᐸ__type_fun...”interval”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression278 - PgClassExpression285{{"PgClassExpression[285∈33]
ᐸ__type_fun...val_array”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression285 - PgClassExpression293{{"PgClassExpression[293∈33]
ᐸ__type_fun...__.”money”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression293 - PgSelectSingle228 --> PgClassExpression294 - First299{{"First[299∈33]"}}:::plan - PgSelectRows300[["PgSelectRows[300∈33]"]]:::plan - PgSelectRows300 --> First299 - PgSelect295 --> PgSelectRows300 - PgSelectSingle301{{"PgSelectSingle[301∈33]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First299 --> PgSelectSingle301 - PgClassExpression302{{"PgClassExpression[302∈33]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle301 --> PgClassExpression302 - PgClassExpression303{{"PgClassExpression[303∈33]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle301 --> PgClassExpression303 - PgClassExpression304{{"PgClassExpression[304∈33]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle301 --> PgClassExpression304 - PgClassExpression305{{"PgClassExpression[305∈33]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle301 --> PgClassExpression305 - PgClassExpression306{{"PgClassExpression[306∈33]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle301 --> PgClassExpression306 - PgClassExpression307{{"PgClassExpression[307∈33]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle301 --> PgClassExpression307 - PgClassExpression308{{"PgClassExpression[308∈33]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle301 --> PgClassExpression308 - PgSelectSingle228 --> PgClassExpression309 - First312{{"First[312∈33]"}}:::plan - PgSelectRows313[["PgSelectRows[313∈33]"]]:::plan - PgSelectRows313 --> First312 - PgSelect310 --> PgSelectRows313 - PgSelectSingle314{{"PgSelectSingle[314∈33]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First312 --> PgSelectSingle314 - PgSelectSingle314 --> PgClassExpression315 - First318{{"First[318∈33]"}}:::plan - PgSelectRows319[["PgSelectRows[319∈33]"]]:::plan - PgSelectRows319 --> First318 - PgSelect316 --> PgSelectRows319 - PgSelectSingle320{{"PgSelectSingle[320∈33]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First318 --> PgSelectSingle320 - PgSelectSingle314 --> PgClassExpression328 - First331{{"First[331∈33]"}}:::plan - PgSelectRows332[["PgSelectRows[332∈33]"]]:::plan - PgSelectRows332 --> First331 - PgSelect329 --> PgSelectRows332 - PgSelectSingle333{{"PgSelectSingle[333∈33]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First331 --> PgSelectSingle333 - PgClassExpression341{{"PgClassExpression[341∈33]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle314 --> PgClassExpression341 - PgSelectSingle228 --> PgClassExpression342 - First345{{"First[345∈33]"}}:::plan - PgSelectRows346[["PgSelectRows[346∈33]"]]:::plan - PgSelectRows346 --> First345 - PgSelect343 --> PgSelectRows346 - PgSelectSingle347{{"PgSelectSingle[347∈33]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First345 --> PgSelectSingle347 - PgSelectSingle228 --> PgClassExpression355 - First358{{"First[358∈33]"}}:::plan - PgSelectRows359[["PgSelectRows[359∈33]"]]:::plan - PgSelectRows359 --> First358 - PgSelect356 --> PgSelectRows359 - PgSelectSingle360{{"PgSelectSingle[360∈33]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First358 --> PgSelectSingle360 - PgClassExpression390{{"PgClassExpression[390∈33]
ᐸ__type_fun...__.”point”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression390 - PgClassExpression393{{"PgClassExpression[393∈33]
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression393 - PgClassExpression396{{"PgClassExpression[396∈33]
ᐸ__type_fun...n__.”inet”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression396 - PgClassExpression397{{"PgClassExpression[397∈33]
ᐸ__type_fun...n__.”cidr”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression397 - PgClassExpression398{{"PgClassExpression[398∈33]
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression398 - PgClassExpression399{{"PgClassExpression[399∈33]
ᐸ__type_fun....”regproc”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression399 - PgClassExpression400{{"PgClassExpression[400∈33]
ᐸ__type_fun...procedure”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression400 - PgClassExpression401{{"PgClassExpression[401∈33]
ᐸ__type_fun....”regoper”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression401 - PgClassExpression402{{"PgClassExpression[402∈33]
ᐸ__type_fun...goperator”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression402 - PgClassExpression403{{"PgClassExpression[403∈33]
ᐸ__type_fun...”regclass”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression403 - PgClassExpression404{{"PgClassExpression[404∈33]
ᐸ__type_fun....”regtype”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression404 - PgClassExpression405{{"PgClassExpression[405∈33]
ᐸ__type_fun...regconfig”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression405 - PgClassExpression406{{"PgClassExpression[406∈33]
ᐸ__type_fun...ictionary”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression406 - PgClassExpression407{{"PgClassExpression[407∈33]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression407 - PgClassExpression409{{"PgClassExpression[409∈33]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression409 - PgClassExpression411{{"PgClassExpression[411∈33]
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression411 - PgClassExpression412{{"PgClassExpression[412∈33]
ᐸ__type_fun...tea_array”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression412 - First416{{"First[416∈33]"}}:::plan - PgSelectRows417[["PgSelectRows[417∈33]"]]:::plan - PgSelectRows417 --> First416 - PgSelect414 --> PgSelectRows417 - PgSelectSingle418{{"PgSelectSingle[418∈33]
ᐸpostᐳ"}}:::plan - First416 --> PgSelectSingle418 - First423{{"First[423∈33]"}}:::plan - PgSelectRows424[["PgSelectRows[424∈33]"]]:::plan - PgSelectRows424 --> First423 - PgSelect421 --> PgSelectRows424 - PgSelectSingle425{{"PgSelectSingle[425∈33]
ᐸpostᐳ"}}:::plan - First423 --> PgSelectSingle425 - PgClassExpression428{{"PgClassExpression[428∈33]
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression428 - PgClassExpression429{{"PgClassExpression[429∈33]
ᐸ__type_fun...ree_array”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression429 - __Item238[/"__Item[238∈34]
ᐸ237ᐳ"\]:::itemplan - PgClassExpression237 ==> __Item238 - __Item242[/"__Item[242∈35]
ᐸ241ᐳ"\]:::itemplan - PgClassExpression241 ==> __Item242 - Access246{{"Access[246∈36]
ᐸ245.startᐳ"}}:::plan - PgClassExpression245 --> Access246 - Access249{{"Access[249∈36]
ᐸ245.endᐳ"}}:::plan - PgClassExpression245 --> Access249 - __Item286[/"__Item[286∈45]
ᐸ285ᐳ"\]:::itemplan - PgClassExpression285 ==> __Item286 - PgClassExpression321{{"PgClassExpression[321∈47]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle320 --> PgClassExpression321 - PgClassExpression322{{"PgClassExpression[322∈47]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle320 --> PgClassExpression322 - PgClassExpression323{{"PgClassExpression[323∈47]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle320 --> PgClassExpression323 - PgClassExpression324{{"PgClassExpression[324∈47]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle320 --> PgClassExpression324 - PgClassExpression325{{"PgClassExpression[325∈47]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle320 --> PgClassExpression325 - PgClassExpression326{{"PgClassExpression[326∈47]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle320 --> PgClassExpression326 - PgClassExpression327{{"PgClassExpression[327∈47]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle320 --> PgClassExpression327 - PgClassExpression334{{"PgClassExpression[334∈48]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle333 --> PgClassExpression334 - PgClassExpression335{{"PgClassExpression[335∈48]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle333 --> PgClassExpression335 - PgClassExpression336{{"PgClassExpression[336∈48]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle333 --> PgClassExpression336 - PgClassExpression337{{"PgClassExpression[337∈48]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle333 --> PgClassExpression337 - PgClassExpression338{{"PgClassExpression[338∈48]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle333 --> PgClassExpression338 - PgClassExpression339{{"PgClassExpression[339∈48]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle333 --> PgClassExpression339 - PgClassExpression340{{"PgClassExpression[340∈48]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle333 --> PgClassExpression340 - PgClassExpression348{{"PgClassExpression[348∈49]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle347 --> PgClassExpression348 - PgClassExpression349{{"PgClassExpression[349∈49]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle347 --> PgClassExpression349 - PgClassExpression350{{"PgClassExpression[350∈49]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle347 --> PgClassExpression350 - PgClassExpression351{{"PgClassExpression[351∈49]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle347 --> PgClassExpression351 - PgClassExpression352{{"PgClassExpression[352∈49]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle347 --> PgClassExpression352 - PgClassExpression353{{"PgClassExpression[353∈49]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle347 --> PgClassExpression353 - PgClassExpression354{{"PgClassExpression[354∈49]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle347 --> PgClassExpression354 - PgSelect362[["PgSelect[362∈50]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression361{{"PgClassExpression[361∈50]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object224 & PgClassExpression361 --> PgSelect362 - PgSelect377[["PgSelect[377∈50]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression376{{"PgClassExpression[376∈50]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object224 & PgClassExpression376 --> PgSelect377 - PgSelectSingle360 --> PgClassExpression361 - First366{{"First[366∈50]"}}:::plan - PgSelectRows367[["PgSelectRows[367∈50]"]]:::plan - PgSelectRows367 --> First366 - PgSelect362 --> PgSelectRows367 - PgSelectSingle368{{"PgSelectSingle[368∈50]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First366 --> PgSelectSingle368 - PgSelectSingle360 --> PgClassExpression376 - First379{{"First[379∈50]"}}:::plan - PgSelectRows380[["PgSelectRows[380∈50]"]]:::plan - PgSelectRows380 --> First379 - PgSelect377 --> PgSelectRows380 - PgSelectSingle381{{"PgSelectSingle[381∈50]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First379 --> PgSelectSingle381 - PgClassExpression389{{"PgClassExpression[389∈50]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle360 --> PgClassExpression389 - PgClassExpression369{{"PgClassExpression[369∈51]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle368 --> PgClassExpression369 - PgClassExpression370{{"PgClassExpression[370∈51]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle368 --> PgClassExpression370 - PgClassExpression371{{"PgClassExpression[371∈51]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle368 --> PgClassExpression371 - PgClassExpression372{{"PgClassExpression[372∈51]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle368 --> PgClassExpression372 - PgClassExpression373{{"PgClassExpression[373∈51]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle368 --> PgClassExpression373 - PgClassExpression374{{"PgClassExpression[374∈51]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle368 --> PgClassExpression374 - PgClassExpression375{{"PgClassExpression[375∈51]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle368 --> PgClassExpression375 - PgClassExpression382{{"PgClassExpression[382∈52]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle381 --> PgClassExpression382 - PgClassExpression383{{"PgClassExpression[383∈52]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle381 --> PgClassExpression383 - PgClassExpression384{{"PgClassExpression[384∈52]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle381 --> PgClassExpression384 - PgClassExpression385{{"PgClassExpression[385∈52]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle381 --> PgClassExpression385 - PgClassExpression386{{"PgClassExpression[386∈52]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle381 --> PgClassExpression386 - PgClassExpression387{{"PgClassExpression[387∈52]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle381 --> PgClassExpression387 - PgClassExpression388{{"PgClassExpression[388∈52]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle381 --> PgClassExpression388 - __Item408[/"__Item[408∈54]
ᐸ407ᐳ"\]:::itemplan - PgClassExpression407 ==> __Item408 - __Item410[/"__Item[410∈55]
ᐸ409ᐳ"\]:::itemplan - PgClassExpression409 ==> __Item410 - __Item413[/"__Item[413∈56]
ᐸ412ᐳ"\]:::itemplan - PgClassExpression412 ==> __Item413 - PgClassExpression419{{"PgClassExpression[419∈57]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle418 --> PgClassExpression419 - PgClassExpression420{{"PgClassExpression[420∈57]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle418 --> PgClassExpression420 - PgClassExpression426{{"PgClassExpression[426∈58]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle425 --> PgClassExpression426 - PgClassExpression427{{"PgClassExpression[427∈58]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle425 --> PgClassExpression427 - __Item430[/"__Item[430∈59]
ᐸ429ᐳ"\]:::itemplan - PgClassExpression429 ==> __Item430 - Object436{{"Object[436∈60] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access434{{"Access[434∈60] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access435{{"Access[435∈60] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access434 & Access435 --> Object436 - PgSelect433[["PgSelect[433∈60] ➊
ᐸtype_function_connection_mutation(mutation)ᐳ"]]:::sideeffectplan - Object436 --> PgSelect433 - __Value2 --> Access434 - __Value2 --> Access435 - Object437{{"Object[437∈60] ➊
ᐸ{result}ᐳ"}}:::plan - PgSelect433 --> Object437 - PgSelectRows438[["PgSelectRows[438∈61] ➊"]]:::plan - PgSelect433 --> PgSelectRows438 - __Item439[/"__Item[439∈62]
ᐸ438ᐳ"\]:::itemplan - PgSelectRows438 ==> __Item439 - PgSelectSingle440{{"PgSelectSingle[440∈62]
ᐸtype_function_connection_mutationᐳ"}}:::plan - __Item439 --> PgSelectSingle440 - PgSelect507[["PgSelect[507∈63]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression506{{"PgClassExpression[506∈63]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object436 & PgClassExpression506 --> PgSelect507 - PgSelect522[["PgSelect[522∈63]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression521{{"PgClassExpression[521∈63]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object436 & PgClassExpression521 --> PgSelect522 - PgSelect528[["PgSelect[528∈63]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression527{{"PgClassExpression[527∈63]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object436 & PgClassExpression527 --> PgSelect528 - PgSelect541[["PgSelect[541∈63]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression540{{"PgClassExpression[540∈63]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object436 & PgClassExpression540 --> PgSelect541 - PgSelect555[["PgSelect[555∈63]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression554{{"PgClassExpression[554∈63]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object436 & PgClassExpression554 --> PgSelect555 - PgSelect568[["PgSelect[568∈63]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression567{{"PgClassExpression[567∈63]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object436 & PgClassExpression567 --> PgSelect568 - PgSelect626[["PgSelect[626∈63]
ᐸpostᐳ"]]:::plan - PgClassExpression442{{"PgClassExpression[442∈63]
ᐸ__type_fun...”smallint”ᐳ"}}:::plan - Object436 & PgClassExpression442 --> PgSelect626 - PgSelect633[["PgSelect[633∈63]
ᐸpostᐳ"]]:::plan - PgClassExpression441{{"PgClassExpression[441∈63]
ᐸ__type_fun...ion__.”id”ᐳ"}}:::plan - Object436 & PgClassExpression441 --> PgSelect633 - PgSelectSingle440 --> PgClassExpression441 - PgSelectSingle440 --> PgClassExpression442 - PgClassExpression443{{"PgClassExpression[443∈63]
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression443 - PgClassExpression444{{"PgClassExpression[444∈63]
ᐸ__type_fun....”numeric”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression444 - PgClassExpression445{{"PgClassExpression[445∈63]
ᐸ__type_fun....”decimal”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression445 - PgClassExpression446{{"PgClassExpression[446∈63]
ᐸ__type_fun....”boolean”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression446 - PgClassExpression447{{"PgClassExpression[447∈63]
ᐸ__type_fun....”varchar”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression447 - PgClassExpression448{{"PgClassExpression[448∈63]
ᐸ__type_fun...n__.”enum”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression448 - PgClassExpression449{{"PgClassExpression[449∈63]
ᐸ__type_fun...num_array”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression449 - PgClassExpression451{{"PgClassExpression[451∈63]
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression451 - PgClassExpression452{{"PgClassExpression[452∈63]
ᐸ__type_fun....”domain2”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression452 - PgClassExpression453{{"PgClassExpression[453∈63]
ᐸ__type_fun...ext_array”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression453 - PgClassExpression455{{"PgClassExpression[455∈63]
ᐸ__type_fun...n__.”json”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression455 - PgClassExpression456{{"PgClassExpression[456∈63]
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression456 - PgClassExpression457{{"PgClassExpression[457∈63]
ᐸ__type_fun...ble_range”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression457 - PgClassExpression464{{"PgClassExpression[464∈63]
ᐸ__type_fun...”numrange”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression464 - Access465{{"Access[465∈63]
ᐸ464.startᐳ"}}:::plan - PgClassExpression464 --> Access465 - Access468{{"Access[468∈63]
ᐸ464.endᐳ"}}:::plan - PgClassExpression464 --> Access468 - PgClassExpression471{{"PgClassExpression[471∈63]
ᐸ__type_fun...daterange”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression471 - Access472{{"Access[472∈63]
ᐸ471.startᐳ"}}:::plan - PgClassExpression471 --> Access472 - Access475{{"Access[475∈63]
ᐸ471.endᐳ"}}:::plan - PgClassExpression471 --> Access475 - PgClassExpression478{{"PgClassExpression[478∈63]
ᐸ__type_fun...int_range”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression478 - Access479{{"Access[479∈63]
ᐸ478.startᐳ"}}:::plan - PgClassExpression478 --> Access479 - Access482{{"Access[482∈63]
ᐸ478.endᐳ"}}:::plan - PgClassExpression478 --> Access482 - PgClassExpression485{{"PgClassExpression[485∈63]
ᐸ__type_fun...timestamp”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression485 - PgClassExpression486{{"PgClassExpression[486∈63]
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression486 - PgClassExpression487{{"PgClassExpression[487∈63]
ᐸ__type_fun...n__.”date”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression487 - PgClassExpression488{{"PgClassExpression[488∈63]
ᐸ__type_fun...n__.”time”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression488 - PgClassExpression489{{"PgClassExpression[489∈63]
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression489 - PgClassExpression490{{"PgClassExpression[490∈63]
ᐸ__type_fun...”interval”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression490 - PgClassExpression497{{"PgClassExpression[497∈63]
ᐸ__type_fun...val_array”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression497 - PgClassExpression505{{"PgClassExpression[505∈63]
ᐸ__type_fun...__.”money”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression505 - PgSelectSingle440 --> PgClassExpression506 - First511{{"First[511∈63]"}}:::plan - PgSelectRows512[["PgSelectRows[512∈63]"]]:::plan - PgSelectRows512 --> First511 - PgSelect507 --> PgSelectRows512 - PgSelectSingle513{{"PgSelectSingle[513∈63]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First511 --> PgSelectSingle513 - PgClassExpression514{{"PgClassExpression[514∈63]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle513 --> PgClassExpression514 - PgClassExpression515{{"PgClassExpression[515∈63]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle513 --> PgClassExpression515 - PgClassExpression516{{"PgClassExpression[516∈63]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle513 --> PgClassExpression516 - PgClassExpression517{{"PgClassExpression[517∈63]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle513 --> PgClassExpression517 - PgClassExpression518{{"PgClassExpression[518∈63]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle513 --> PgClassExpression518 - PgClassExpression519{{"PgClassExpression[519∈63]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle513 --> PgClassExpression519 - PgClassExpression520{{"PgClassExpression[520∈63]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle513 --> PgClassExpression520 - PgSelectSingle440 --> PgClassExpression521 - First524{{"First[524∈63]"}}:::plan - PgSelectRows525[["PgSelectRows[525∈63]"]]:::plan - PgSelectRows525 --> First524 - PgSelect522 --> PgSelectRows525 - PgSelectSingle526{{"PgSelectSingle[526∈63]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First524 --> PgSelectSingle526 - PgSelectSingle526 --> PgClassExpression527 - First530{{"First[530∈63]"}}:::plan - PgSelectRows531[["PgSelectRows[531∈63]"]]:::plan - PgSelectRows531 --> First530 - PgSelect528 --> PgSelectRows531 - PgSelectSingle532{{"PgSelectSingle[532∈63]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First530 --> PgSelectSingle532 - PgSelectSingle526 --> PgClassExpression540 - First543{{"First[543∈63]"}}:::plan - PgSelectRows544[["PgSelectRows[544∈63]"]]:::plan - PgSelectRows544 --> First543 - PgSelect541 --> PgSelectRows544 - PgSelectSingle545{{"PgSelectSingle[545∈63]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First543 --> PgSelectSingle545 - PgClassExpression553{{"PgClassExpression[553∈63]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle526 --> PgClassExpression553 - PgSelectSingle440 --> PgClassExpression554 - First557{{"First[557∈63]"}}:::plan - PgSelectRows558[["PgSelectRows[558∈63]"]]:::plan - PgSelectRows558 --> First557 - PgSelect555 --> PgSelectRows558 - PgSelectSingle559{{"PgSelectSingle[559∈63]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First557 --> PgSelectSingle559 - PgSelectSingle440 --> PgClassExpression567 - First570{{"First[570∈63]"}}:::plan - PgSelectRows571[["PgSelectRows[571∈63]"]]:::plan - PgSelectRows571 --> First570 - PgSelect568 --> PgSelectRows571 - PgSelectSingle572{{"PgSelectSingle[572∈63]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First570 --> PgSelectSingle572 - PgClassExpression602{{"PgClassExpression[602∈63]
ᐸ__type_fun...__.”point”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression602 - PgClassExpression605{{"PgClassExpression[605∈63]
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression605 - PgClassExpression608{{"PgClassExpression[608∈63]
ᐸ__type_fun...n__.”inet”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression608 - PgClassExpression609{{"PgClassExpression[609∈63]
ᐸ__type_fun...n__.”cidr”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression609 - PgClassExpression610{{"PgClassExpression[610∈63]
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression610 - PgClassExpression611{{"PgClassExpression[611∈63]
ᐸ__type_fun....”regproc”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression611 - PgClassExpression612{{"PgClassExpression[612∈63]
ᐸ__type_fun...procedure”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression612 - PgClassExpression613{{"PgClassExpression[613∈63]
ᐸ__type_fun....”regoper”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression613 - PgClassExpression614{{"PgClassExpression[614∈63]
ᐸ__type_fun...goperator”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression614 - PgClassExpression615{{"PgClassExpression[615∈63]
ᐸ__type_fun...”regclass”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression615 - PgClassExpression616{{"PgClassExpression[616∈63]
ᐸ__type_fun....”regtype”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression616 - PgClassExpression617{{"PgClassExpression[617∈63]
ᐸ__type_fun...regconfig”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression617 - PgClassExpression618{{"PgClassExpression[618∈63]
ᐸ__type_fun...ictionary”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression618 - PgClassExpression619{{"PgClassExpression[619∈63]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression619 - PgClassExpression621{{"PgClassExpression[621∈63]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression621 - PgClassExpression623{{"PgClassExpression[623∈63]
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression623 - PgClassExpression624{{"PgClassExpression[624∈63]
ᐸ__type_fun...tea_array”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression624 - First628{{"First[628∈63]"}}:::plan - PgSelectRows629[["PgSelectRows[629∈63]"]]:::plan - PgSelectRows629 --> First628 - PgSelect626 --> PgSelectRows629 - PgSelectSingle630{{"PgSelectSingle[630∈63]
ᐸpostᐳ"}}:::plan - First628 --> PgSelectSingle630 - First635{{"First[635∈63]"}}:::plan - PgSelectRows636[["PgSelectRows[636∈63]"]]:::plan - PgSelectRows636 --> First635 - PgSelect633 --> PgSelectRows636 - PgSelectSingle637{{"PgSelectSingle[637∈63]
ᐸpostᐳ"}}:::plan - First635 --> PgSelectSingle637 - PgClassExpression640{{"PgClassExpression[640∈63]
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression640 - PgClassExpression641{{"PgClassExpression[641∈63]
ᐸ__type_fun...ree_array”ᐳ"}}:::plan - PgSelectSingle440 --> PgClassExpression641 - __Item450[/"__Item[450∈64]
ᐸ449ᐳ"\]:::itemplan - PgClassExpression449 ==> __Item450 - __Item454[/"__Item[454∈65]
ᐸ453ᐳ"\]:::itemplan - PgClassExpression453 ==> __Item454 - Access458{{"Access[458∈66]
ᐸ457.startᐳ"}}:::plan - PgClassExpression457 --> Access458 - Access461{{"Access[461∈66]
ᐸ457.endᐳ"}}:::plan - PgClassExpression457 --> Access461 - __Item498[/"__Item[498∈75]
ᐸ497ᐳ"\]:::itemplan - PgClassExpression497 ==> __Item498 - PgClassExpression533{{"PgClassExpression[533∈77]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle532 --> PgClassExpression533 - PgClassExpression534{{"PgClassExpression[534∈77]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle532 --> PgClassExpression534 - PgClassExpression535{{"PgClassExpression[535∈77]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle532 --> PgClassExpression535 - PgClassExpression536{{"PgClassExpression[536∈77]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle532 --> PgClassExpression536 - PgClassExpression537{{"PgClassExpression[537∈77]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle532 --> PgClassExpression537 - PgClassExpression538{{"PgClassExpression[538∈77]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle532 --> PgClassExpression538 - PgClassExpression539{{"PgClassExpression[539∈77]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle532 --> PgClassExpression539 - PgClassExpression546{{"PgClassExpression[546∈78]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle545 --> PgClassExpression546 - PgClassExpression547{{"PgClassExpression[547∈78]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle545 --> PgClassExpression547 - PgClassExpression548{{"PgClassExpression[548∈78]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle545 --> PgClassExpression548 - PgClassExpression549{{"PgClassExpression[549∈78]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle545 --> PgClassExpression549 - PgClassExpression550{{"PgClassExpression[550∈78]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle545 --> PgClassExpression550 - PgClassExpression551{{"PgClassExpression[551∈78]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle545 --> PgClassExpression551 - PgClassExpression552{{"PgClassExpression[552∈78]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle545 --> PgClassExpression552 - PgClassExpression560{{"PgClassExpression[560∈79]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle559 --> PgClassExpression560 - PgClassExpression561{{"PgClassExpression[561∈79]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle559 --> PgClassExpression561 - PgClassExpression562{{"PgClassExpression[562∈79]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle559 --> PgClassExpression562 - PgClassExpression563{{"PgClassExpression[563∈79]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle559 --> PgClassExpression563 - PgClassExpression564{{"PgClassExpression[564∈79]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle559 --> PgClassExpression564 - PgClassExpression565{{"PgClassExpression[565∈79]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle559 --> PgClassExpression565 - PgClassExpression566{{"PgClassExpression[566∈79]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle559 --> PgClassExpression566 - PgSelect574[["PgSelect[574∈80]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression573{{"PgClassExpression[573∈80]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object436 & PgClassExpression573 --> PgSelect574 - PgSelect589[["PgSelect[589∈80]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression588{{"PgClassExpression[588∈80]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object436 & PgClassExpression588 --> PgSelect589 - PgSelectSingle572 --> PgClassExpression573 - First578{{"First[578∈80]"}}:::plan - PgSelectRows579[["PgSelectRows[579∈80]"]]:::plan - PgSelectRows579 --> First578 - PgSelect574 --> PgSelectRows579 - PgSelectSingle580{{"PgSelectSingle[580∈80]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First578 --> PgSelectSingle580 - PgSelectSingle572 --> PgClassExpression588 - First591{{"First[591∈80]"}}:::plan - PgSelectRows592[["PgSelectRows[592∈80]"]]:::plan - PgSelectRows592 --> First591 - PgSelect589 --> PgSelectRows592 - PgSelectSingle593{{"PgSelectSingle[593∈80]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First591 --> PgSelectSingle593 - PgClassExpression601{{"PgClassExpression[601∈80]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle572 --> PgClassExpression601 - PgClassExpression581{{"PgClassExpression[581∈81]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle580 --> PgClassExpression581 - PgClassExpression582{{"PgClassExpression[582∈81]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle580 --> PgClassExpression582 - PgClassExpression583{{"PgClassExpression[583∈81]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle580 --> PgClassExpression583 - PgClassExpression584{{"PgClassExpression[584∈81]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle580 --> PgClassExpression584 - PgClassExpression585{{"PgClassExpression[585∈81]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle580 --> PgClassExpression585 - PgClassExpression586{{"PgClassExpression[586∈81]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle580 --> PgClassExpression586 - PgClassExpression587{{"PgClassExpression[587∈81]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle580 --> PgClassExpression587 - PgClassExpression594{{"PgClassExpression[594∈82]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle593 --> PgClassExpression594 - PgClassExpression595{{"PgClassExpression[595∈82]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle593 --> PgClassExpression595 - PgClassExpression596{{"PgClassExpression[596∈82]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle593 --> PgClassExpression596 - PgClassExpression597{{"PgClassExpression[597∈82]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle593 --> PgClassExpression597 - PgClassExpression598{{"PgClassExpression[598∈82]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle593 --> PgClassExpression598 - PgClassExpression599{{"PgClassExpression[599∈82]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle593 --> PgClassExpression599 - PgClassExpression600{{"PgClassExpression[600∈82]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle593 --> PgClassExpression600 - __Item620[/"__Item[620∈84]
ᐸ619ᐳ"\]:::itemplan - PgClassExpression619 ==> __Item620 - __Item622[/"__Item[622∈85]
ᐸ621ᐳ"\]:::itemplan - PgClassExpression621 ==> __Item622 - __Item625[/"__Item[625∈86]
ᐸ624ᐳ"\]:::itemplan - PgClassExpression624 ==> __Item625 - PgClassExpression631{{"PgClassExpression[631∈87]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle630 --> PgClassExpression631 - PgClassExpression632{{"PgClassExpression[632∈87]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle630 --> PgClassExpression632 - PgClassExpression638{{"PgClassExpression[638∈88]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle637 --> PgClassExpression638 - PgClassExpression639{{"PgClassExpression[639∈88]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle637 --> PgClassExpression639 - __Item642[/"__Item[642∈89]
ᐸ641ᐳ"\]:::itemplan + Object12 & PgFromExpression13 & ApplyInput18 --> PgSelect9 + PgSelect85[["PgSelect[85∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression87{{"PgFromExpression[87∈1] ➊"}}:::plan + Object12 & PgFromExpression87 --> PgSelect85 + PgSelect99[["PgSelect[99∈1] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression101{{"PgFromExpression[101∈1] ➊"}}:::plan + Object12 & PgFromExpression101 --> PgSelect99 + PgSelect106[["PgSelect[106∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression108{{"PgFromExpression[108∈1] ➊"}}:::plan + Object12 & PgFromExpression108 --> PgSelect106 + PgSelect120[["PgSelect[120∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression122{{"PgFromExpression[122∈1] ➊"}}:::plan + Object12 & PgFromExpression122 --> PgSelect120 + PgSelect135[["PgSelect[135∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression137{{"PgFromExpression[137∈1] ➊"}}:::plan + Object12 & PgFromExpression137 --> PgSelect135 + PgSelect149[["PgSelect[149∈1] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression151{{"PgFromExpression[151∈1] ➊"}}:::plan + Object12 & PgFromExpression151 --> PgSelect149 + PgSelect156[["PgSelect[156∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression158{{"PgFromExpression[158∈1] ➊"}}:::plan + Object12 & PgFromExpression158 --> PgSelect156 + PgSelect170[["PgSelect[170∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression172{{"PgFromExpression[172∈1] ➊"}}:::plan + Object12 & PgFromExpression172 --> PgSelect170 + PgSelect208[["PgSelect[208∈1] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__type_fun...”smallint”ᐳ"}}:::plan + Object12 & PgClassExpression20 --> PgSelect208 + PgSelect215[["PgSelect[215∈1] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1] ➊
ᐸ__type_fun...ion__.”id”ᐳ"}}:::plan + Object12 & PgClassExpression19 --> PgSelect215 + First14{{"First[14∈1] ➊"}}:::plan + PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15 --> First14 + PgSelect9 --> PgSelectRows15 + PgSelectSingle16{{"PgSelectSingle[16∈1] ➊
ᐸtype_function_mutationᐳ"}}:::plan + First14 --> PgSelectSingle16 + Object17{{"Object[17∈1] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelectSingle16 --> Object17 + PgSelectSingle16 --> PgClassExpression19 + PgSelectSingle16 --> PgClassExpression20 + PgClassExpression21{{"PgClassExpression[21∈1] ➊
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression21 + PgClassExpression22{{"PgClassExpression[22∈1] ➊
ᐸ__type_fun....”numeric”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression22 + PgClassExpression23{{"PgClassExpression[23∈1] ➊
ᐸ__type_fun....”decimal”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__type_fun....”boolean”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1] ➊
ᐸ__type_fun....”varchar”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression25 + PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__type_fun...n__.”enum”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression26 + PgClassExpression27{{"PgClassExpression[27∈1] ➊
ᐸ__type_fun...num_array”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression27 + PgClassExpression29{{"PgClassExpression[29∈1] ➊
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression29 + PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸ__type_fun....”domain2”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression30 + PgClassExpression31{{"PgClassExpression[31∈1] ➊
ᐸ__type_fun...ext_array”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression31 + PgClassExpression33{{"PgClassExpression[33∈1] ➊
ᐸ__type_fun...n__.”json”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1] ➊
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression34 + PgClassExpression35{{"PgClassExpression[35∈1] ➊
ᐸ__type_fun...ble_range”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression35 + Access36{{"Access[36∈1] ➊
ᐸ35.startᐳ"}}:::plan + PgClassExpression35 --> Access36 + Access37{{"Access[37∈1] ➊
ᐸ35.start.valueᐳ"}}:::plan + PgClassExpression35 --> Access37 + Access38{{"Access[38∈1] ➊
ᐸ35.start.inclusiveᐳ"}}:::plan + PgClassExpression35 --> Access38 + Access39{{"Access[39∈1] ➊
ᐸ35.endᐳ"}}:::plan + PgClassExpression35 --> Access39 + Access40{{"Access[40∈1] ➊
ᐸ35.end.valueᐳ"}}:::plan + PgClassExpression35 --> Access40 + Access41{{"Access[41∈1] ➊
ᐸ35.end.inclusiveᐳ"}}:::plan + PgClassExpression35 --> Access41 + PgClassExpression42{{"PgClassExpression[42∈1] ➊
ᐸ__type_fun...”numrange”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression42 + Access43{{"Access[43∈1] ➊
ᐸ42.startᐳ"}}:::plan + PgClassExpression42 --> Access43 + Access44{{"Access[44∈1] ➊
ᐸ42.start.valueᐳ"}}:::plan + PgClassExpression42 --> Access44 + Access45{{"Access[45∈1] ➊
ᐸ42.start.inclusiveᐳ"}}:::plan + PgClassExpression42 --> Access45 + Access46{{"Access[46∈1] ➊
ᐸ42.endᐳ"}}:::plan + PgClassExpression42 --> Access46 + Access47{{"Access[47∈1] ➊
ᐸ42.end.valueᐳ"}}:::plan + PgClassExpression42 --> Access47 + Access48{{"Access[48∈1] ➊
ᐸ42.end.inclusiveᐳ"}}:::plan + PgClassExpression42 --> Access48 + PgClassExpression49{{"PgClassExpression[49∈1] ➊
ᐸ__type_fun...daterange”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression49 + Access50{{"Access[50∈1] ➊
ᐸ49.startᐳ"}}:::plan + PgClassExpression49 --> Access50 + Access51{{"Access[51∈1] ➊
ᐸ49.start.valueᐳ"}}:::plan + PgClassExpression49 --> Access51 + Access52{{"Access[52∈1] ➊
ᐸ49.start.inclusiveᐳ"}}:::plan + PgClassExpression49 --> Access52 + Access53{{"Access[53∈1] ➊
ᐸ49.endᐳ"}}:::plan + PgClassExpression49 --> Access53 + Access54{{"Access[54∈1] ➊
ᐸ49.end.valueᐳ"}}:::plan + PgClassExpression49 --> Access54 + Access55{{"Access[55∈1] ➊
ᐸ49.end.inclusiveᐳ"}}:::plan + PgClassExpression49 --> Access55 + PgClassExpression56{{"PgClassExpression[56∈1] ➊
ᐸ__type_fun...int_range”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression56 + Access57{{"Access[57∈1] ➊
ᐸ56.startᐳ"}}:::plan + PgClassExpression56 --> Access57 + Access58{{"Access[58∈1] ➊
ᐸ56.start.valueᐳ"}}:::plan + PgClassExpression56 --> Access58 + Access59{{"Access[59∈1] ➊
ᐸ56.start.inclusiveᐳ"}}:::plan + PgClassExpression56 --> Access59 + Access60{{"Access[60∈1] ➊
ᐸ56.endᐳ"}}:::plan + PgClassExpression56 --> Access60 + Access61{{"Access[61∈1] ➊
ᐸ56.end.valueᐳ"}}:::plan + PgClassExpression56 --> Access61 + Access62{{"Access[62∈1] ➊
ᐸ56.end.inclusiveᐳ"}}:::plan + PgClassExpression56 --> Access62 + PgClassExpression63{{"PgClassExpression[63∈1] ➊
ᐸ__type_fun...timestamp”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression63 + PgClassExpression64{{"PgClassExpression[64∈1] ➊
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression64 + PgClassExpression65{{"PgClassExpression[65∈1] ➊
ᐸ__type_fun...n__.”date”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression65 + PgClassExpression66{{"PgClassExpression[66∈1] ➊
ᐸ__type_fun...n__.”time”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression66 + PgClassExpression67{{"PgClassExpression[67∈1] ➊
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression67 + PgClassExpression68{{"PgClassExpression[68∈1] ➊
ᐸ__type_fun...”interval”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression68 + Access69{{"Access[69∈1] ➊
ᐸ68.yearsᐳ"}}:::plan + PgClassExpression68 --> Access69 + Access70{{"Access[70∈1] ➊
ᐸ68.monthsᐳ"}}:::plan + PgClassExpression68 --> Access70 + Access71{{"Access[71∈1] ➊
ᐸ68.daysᐳ"}}:::plan + PgClassExpression68 --> Access71 + Access72{{"Access[72∈1] ➊
ᐸ68.hoursᐳ"}}:::plan + PgClassExpression68 --> Access72 + Access73{{"Access[73∈1] ➊
ᐸ68.minutesᐳ"}}:::plan + PgClassExpression68 --> Access73 + Access74{{"Access[74∈1] ➊
ᐸ68.secondsᐳ"}}:::plan + PgClassExpression68 --> Access74 + PgClassExpression75{{"PgClassExpression[75∈1] ➊
ᐸ__type_fun...val_array”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression75 + PgClassExpression83{{"PgClassExpression[83∈1] ➊
ᐸ__type_fun...__.”money”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression83 + PgClassExpression84{{"PgClassExpression[84∈1] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression84 + PgClassExpression84 --> PgFromExpression87 + First88{{"First[88∈1] ➊"}}:::plan + PgSelectRows89[["PgSelectRows[89∈1] ➊"]]:::plan + PgSelectRows89 --> First88 + PgSelect85 --> PgSelectRows89 + PgSelectSingle90{{"PgSelectSingle[90∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First88 --> PgSelectSingle90 + PgClassExpression91{{"PgClassExpression[91∈1] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression91 + PgClassExpression92{{"PgClassExpression[92∈1] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression92 + PgClassExpression93{{"PgClassExpression[93∈1] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression93 + PgClassExpression94{{"PgClassExpression[94∈1] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression94 + PgClassExpression95{{"PgClassExpression[95∈1] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression95 + PgClassExpression96{{"PgClassExpression[96∈1] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression96 + PgClassExpression97{{"PgClassExpression[97∈1] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression97 + PgClassExpression98{{"PgClassExpression[98∈1] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression98 + PgClassExpression98 --> PgFromExpression101 + First102{{"First[102∈1] ➊"}}:::plan + PgSelectRows103[["PgSelectRows[103∈1] ➊"]]:::plan + PgSelectRows103 --> First102 + PgSelect99 --> PgSelectRows103 + PgSelectSingle104{{"PgSelectSingle[104∈1] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First102 --> PgSelectSingle104 + PgClassExpression105{{"PgClassExpression[105∈1] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle104 --> PgClassExpression105 + PgClassExpression105 --> PgFromExpression108 + First109{{"First[109∈1] ➊"}}:::plan + PgSelectRows110[["PgSelectRows[110∈1] ➊"]]:::plan + PgSelectRows110 --> First109 + PgSelect106 --> PgSelectRows110 + PgSelectSingle111{{"PgSelectSingle[111∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First109 --> PgSelectSingle111 + PgClassExpression112{{"PgClassExpression[112∈1] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle111 --> PgClassExpression112 + PgClassExpression113{{"PgClassExpression[113∈1] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle111 --> PgClassExpression113 + PgClassExpression114{{"PgClassExpression[114∈1] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle111 --> PgClassExpression114 + PgClassExpression115{{"PgClassExpression[115∈1] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle111 --> PgClassExpression115 + PgClassExpression116{{"PgClassExpression[116∈1] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle111 --> PgClassExpression116 + PgClassExpression117{{"PgClassExpression[117∈1] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle111 --> PgClassExpression117 + PgClassExpression118{{"PgClassExpression[118∈1] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle111 --> PgClassExpression118 + PgClassExpression119{{"PgClassExpression[119∈1] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle104 --> PgClassExpression119 + PgClassExpression119 --> PgFromExpression122 + First123{{"First[123∈1] ➊"}}:::plan + PgSelectRows124[["PgSelectRows[124∈1] ➊"]]:::plan + PgSelectRows124 --> First123 + PgSelect120 --> PgSelectRows124 + PgSelectSingle125{{"PgSelectSingle[125∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First123 --> PgSelectSingle125 + PgClassExpression126{{"PgClassExpression[126∈1] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle125 --> PgClassExpression126 + PgClassExpression127{{"PgClassExpression[127∈1] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle125 --> PgClassExpression127 + PgClassExpression128{{"PgClassExpression[128∈1] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle125 --> PgClassExpression128 + PgClassExpression129{{"PgClassExpression[129∈1] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle125 --> PgClassExpression129 + PgClassExpression130{{"PgClassExpression[130∈1] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle125 --> PgClassExpression130 + PgClassExpression131{{"PgClassExpression[131∈1] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle125 --> PgClassExpression131 + PgClassExpression132{{"PgClassExpression[132∈1] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle125 --> PgClassExpression132 + PgClassExpression133{{"PgClassExpression[133∈1] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle104 --> PgClassExpression133 + PgClassExpression134{{"PgClassExpression[134∈1] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression134 + PgClassExpression134 --> PgFromExpression137 + First138{{"First[138∈1] ➊"}}:::plan + PgSelectRows139[["PgSelectRows[139∈1] ➊"]]:::plan + PgSelectRows139 --> First138 + PgSelect135 --> PgSelectRows139 + PgSelectSingle140{{"PgSelectSingle[140∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First138 --> PgSelectSingle140 + PgClassExpression141{{"PgClassExpression[141∈1] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle140 --> PgClassExpression141 + PgClassExpression142{{"PgClassExpression[142∈1] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle140 --> PgClassExpression142 + PgClassExpression143{{"PgClassExpression[143∈1] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle140 --> PgClassExpression143 + PgClassExpression144{{"PgClassExpression[144∈1] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle140 --> PgClassExpression144 + PgClassExpression145{{"PgClassExpression[145∈1] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle140 --> PgClassExpression145 + PgClassExpression146{{"PgClassExpression[146∈1] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle140 --> PgClassExpression146 + PgClassExpression147{{"PgClassExpression[147∈1] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle140 --> PgClassExpression147 + PgClassExpression148{{"PgClassExpression[148∈1] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression148 + PgClassExpression148 --> PgFromExpression151 + First152{{"First[152∈1] ➊"}}:::plan + PgSelectRows153[["PgSelectRows[153∈1] ➊"]]:::plan + PgSelectRows153 --> First152 + PgSelect149 --> PgSelectRows153 + PgSelectSingle154{{"PgSelectSingle[154∈1] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First152 --> PgSelectSingle154 + PgClassExpression155{{"PgClassExpression[155∈1] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle154 --> PgClassExpression155 + PgClassExpression155 --> PgFromExpression158 + First159{{"First[159∈1] ➊"}}:::plan + PgSelectRows160[["PgSelectRows[160∈1] ➊"]]:::plan + PgSelectRows160 --> First159 + PgSelect156 --> PgSelectRows160 + PgSelectSingle161{{"PgSelectSingle[161∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First159 --> PgSelectSingle161 + PgClassExpression162{{"PgClassExpression[162∈1] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression162 + PgClassExpression163{{"PgClassExpression[163∈1] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression163 + PgClassExpression164{{"PgClassExpression[164∈1] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression164 + PgClassExpression165{{"PgClassExpression[165∈1] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression165 + PgClassExpression166{{"PgClassExpression[166∈1] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression166 + PgClassExpression167{{"PgClassExpression[167∈1] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression167 + PgClassExpression168{{"PgClassExpression[168∈1] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression168 + PgClassExpression169{{"PgClassExpression[169∈1] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle154 --> PgClassExpression169 + PgClassExpression169 --> PgFromExpression172 + First173{{"First[173∈1] ➊"}}:::plan + PgSelectRows174[["PgSelectRows[174∈1] ➊"]]:::plan + PgSelectRows174 --> First173 + PgSelect170 --> PgSelectRows174 + PgSelectSingle175{{"PgSelectSingle[175∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First173 --> PgSelectSingle175 + PgClassExpression176{{"PgClassExpression[176∈1] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle175 --> PgClassExpression176 + PgClassExpression177{{"PgClassExpression[177∈1] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle175 --> PgClassExpression177 + PgClassExpression178{{"PgClassExpression[178∈1] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle175 --> PgClassExpression178 + PgClassExpression179{{"PgClassExpression[179∈1] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle175 --> PgClassExpression179 + PgClassExpression180{{"PgClassExpression[180∈1] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle175 --> PgClassExpression180 + PgClassExpression181{{"PgClassExpression[181∈1] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle175 --> PgClassExpression181 + PgClassExpression182{{"PgClassExpression[182∈1] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle175 --> PgClassExpression182 + PgClassExpression183{{"PgClassExpression[183∈1] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle154 --> PgClassExpression183 + PgClassExpression184{{"PgClassExpression[184∈1] ➊
ᐸ__type_fun...__.”point”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression184 + Access185{{"Access[185∈1] ➊
ᐸ184.xᐳ"}}:::plan + PgClassExpression184 --> Access185 + Access186{{"Access[186∈1] ➊
ᐸ184.yᐳ"}}:::plan + PgClassExpression184 --> Access186 + PgClassExpression187{{"PgClassExpression[187∈1] ➊
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression187 + Access188{{"Access[188∈1] ➊
ᐸ187.xᐳ"}}:::plan + PgClassExpression187 --> Access188 + Access189{{"Access[189∈1] ➊
ᐸ187.yᐳ"}}:::plan + PgClassExpression187 --> Access189 + PgClassExpression190{{"PgClassExpression[190∈1] ➊
ᐸ__type_fun...n__.”inet”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression190 + PgClassExpression191{{"PgClassExpression[191∈1] ➊
ᐸ__type_fun...n__.”cidr”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression191 + PgClassExpression192{{"PgClassExpression[192∈1] ➊
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression192 + PgClassExpression193{{"PgClassExpression[193∈1] ➊
ᐸ__type_fun....”regproc”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression193 + PgClassExpression194{{"PgClassExpression[194∈1] ➊
ᐸ__type_fun...procedure”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression194 + PgClassExpression195{{"PgClassExpression[195∈1] ➊
ᐸ__type_fun....”regoper”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression195 + PgClassExpression196{{"PgClassExpression[196∈1] ➊
ᐸ__type_fun...goperator”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression196 + PgClassExpression197{{"PgClassExpression[197∈1] ➊
ᐸ__type_fun...”regclass”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression197 + PgClassExpression198{{"PgClassExpression[198∈1] ➊
ᐸ__type_fun....”regtype”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression198 + PgClassExpression199{{"PgClassExpression[199∈1] ➊
ᐸ__type_fun...regconfig”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression199 + PgClassExpression200{{"PgClassExpression[200∈1] ➊
ᐸ__type_fun...ictionary”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression200 + PgClassExpression201{{"PgClassExpression[201∈1] ➊
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression201 + PgClassExpression203{{"PgClassExpression[203∈1] ➊
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression203 + PgClassExpression205{{"PgClassExpression[205∈1] ➊
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression205 + PgClassExpression206{{"PgClassExpression[206∈1] ➊
ᐸ__type_fun...tea_array”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression206 + First210{{"First[210∈1] ➊"}}:::plan + PgSelectRows211[["PgSelectRows[211∈1] ➊"]]:::plan + PgSelectRows211 --> First210 + PgSelect208 --> PgSelectRows211 + PgSelectSingle212{{"PgSelectSingle[212∈1] ➊
ᐸpostᐳ"}}:::plan + First210 --> PgSelectSingle212 + PgClassExpression213{{"PgClassExpression[213∈1] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle212 --> PgClassExpression213 + PgClassExpression214{{"PgClassExpression[214∈1] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle212 --> PgClassExpression214 + First217{{"First[217∈1] ➊"}}:::plan + PgSelectRows218[["PgSelectRows[218∈1] ➊"]]:::plan + PgSelectRows218 --> First217 + PgSelect215 --> PgSelectRows218 + PgSelectSingle219{{"PgSelectSingle[219∈1] ➊
ᐸpostᐳ"}}:::plan + First217 --> PgSelectSingle219 + PgClassExpression220{{"PgClassExpression[220∈1] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle219 --> PgClassExpression220 + PgClassExpression221{{"PgClassExpression[221∈1] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle219 --> PgClassExpression221 + PgClassExpression222{{"PgClassExpression[222∈1] ➊
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression222 + PgClassExpression223{{"PgClassExpression[223∈1] ➊
ᐸ__type_fun...ree_array”ᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression223 + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan + PgClassExpression27 ==> __Item28 + __Item32[/"__Item[32∈3]
ᐸ31ᐳ"\]:::itemplan + PgClassExpression31 ==> __Item32 + __Item76[/"__Item[76∈4]
ᐸ75ᐳ"\]:::itemplan + PgClassExpression75 ==> __Item76 + __Item202[/"__Item[202∈5]
ᐸ201ᐳ"\]:::itemplan + PgClassExpression201 ==> __Item202 + __Item204[/"__Item[204∈6]
ᐸ203ᐳ"\]:::itemplan + PgClassExpression203 ==> __Item204 + __Item207[/"__Item[207∈7]
ᐸ206ᐳ"\]:::itemplan + PgClassExpression206 ==> __Item207 + __Item224[/"__Item[224∈8]
ᐸ223ᐳ"\]:::itemplan + PgClassExpression223 ==> __Item224 + PgSelect227[["PgSelect[227∈9] ➊
ᐸtype_function_list_mutation(mutation)ᐳ"]]:::sideeffectplan + Object230{{"Object[230∈9] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object230 & ApplyInput232 --> PgSelect227 + Access228{{"Access[228∈9] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access229{{"Access[229∈9] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access228 & Access229 --> Object230 + __Value2 --> Access228 + __Value2 --> Access229 + Object231{{"Object[231∈9] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect227 --> Object231 + PgSelectRows233[["PgSelectRows[233∈9] ➊"]]:::plan + PgSelect227 --> PgSelectRows233 + PgSelect302[["PgSelect[302∈10]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression301{{"PgClassExpression[301∈10]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgFromExpression306{{"PgFromExpression[306∈10] ➊"}}:::plan + Object230 & PgClassExpression301 & PgFromExpression306 --> PgSelect302 + PgSelect318[["PgSelect[318∈10]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression317{{"PgClassExpression[317∈10]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgFromExpression320{{"PgFromExpression[320∈10] ➊"}}:::plan + Object230 & PgClassExpression317 & PgFromExpression320 --> PgSelect318 + PgSelect325[["PgSelect[325∈10]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression324{{"PgClassExpression[324∈10]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgFromExpression327{{"PgFromExpression[327∈10] ➊"}}:::plan + Object230 & PgClassExpression324 & PgFromExpression327 --> PgSelect325 + PgSelect339[["PgSelect[339∈10]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression338{{"PgClassExpression[338∈10]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgFromExpression341{{"PgFromExpression[341∈10] ➊"}}:::plan + Object230 & PgClassExpression338 & PgFromExpression341 --> PgSelect339 + PgSelect354[["PgSelect[354∈10]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression353{{"PgClassExpression[353∈10]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgFromExpression356{{"PgFromExpression[356∈10] ➊"}}:::plan + Object230 & PgClassExpression353 & PgFromExpression356 --> PgSelect354 + PgSelect368[["PgSelect[368∈10]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression367{{"PgClassExpression[367∈10]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgFromExpression370{{"PgFromExpression[370∈10] ➊"}}:::plan + Object230 & PgClassExpression367 & PgFromExpression370 --> PgSelect368 + PgSelect375[["PgSelect[375∈10]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression374{{"PgClassExpression[374∈10]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgFromExpression377{{"PgFromExpression[377∈10] ➊"}}:::plan + Object230 & PgClassExpression374 & PgFromExpression377 --> PgSelect375 + PgSelect389[["PgSelect[389∈10]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression388{{"PgClassExpression[388∈10]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgFromExpression391{{"PgFromExpression[391∈10] ➊"}}:::plan + Object230 & PgClassExpression388 & PgFromExpression391 --> PgSelect389 + PgSelect427[["PgSelect[427∈10]
ᐸpostᐳ"]]:::plan + PgClassExpression237{{"PgClassExpression[237∈10]
ᐸ__type_fun...”smallint”ᐳ"}}:::plan + Object230 & PgClassExpression237 --> PgSelect427 + PgSelect434[["PgSelect[434∈10]
ᐸpostᐳ"]]:::plan + PgClassExpression236{{"PgClassExpression[236∈10]
ᐸ__type_fun...ion__.”id”ᐳ"}}:::plan + Object230 & PgClassExpression236 --> PgSelect434 + __Item234[/"__Item[234∈10]
ᐸ233ᐳ"\]:::itemplan + PgSelectRows233 ==> __Item234 + PgSelectSingle235{{"PgSelectSingle[235∈10]
ᐸtype_function_list_mutationᐳ"}}:::plan + __Item234 --> PgSelectSingle235 + PgSelectSingle235 --> PgClassExpression236 + PgSelectSingle235 --> PgClassExpression237 + PgClassExpression238{{"PgClassExpression[238∈10]
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression238 + PgClassExpression239{{"PgClassExpression[239∈10]
ᐸ__type_fun....”numeric”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression239 + PgClassExpression240{{"PgClassExpression[240∈10]
ᐸ__type_fun....”decimal”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression240 + PgClassExpression241{{"PgClassExpression[241∈10]
ᐸ__type_fun....”boolean”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression241 + PgClassExpression242{{"PgClassExpression[242∈10]
ᐸ__type_fun....”varchar”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression242 + PgClassExpression243{{"PgClassExpression[243∈10]
ᐸ__type_fun...n__.”enum”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression243 + PgClassExpression244{{"PgClassExpression[244∈10]
ᐸ__type_fun...num_array”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression244 + PgClassExpression246{{"PgClassExpression[246∈10]
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression246 + PgClassExpression247{{"PgClassExpression[247∈10]
ᐸ__type_fun....”domain2”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression247 + PgClassExpression248{{"PgClassExpression[248∈10]
ᐸ__type_fun...ext_array”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression248 + PgClassExpression250{{"PgClassExpression[250∈10]
ᐸ__type_fun...n__.”json”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression250 + PgClassExpression251{{"PgClassExpression[251∈10]
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression251 + PgClassExpression252{{"PgClassExpression[252∈10]
ᐸ__type_fun...ble_range”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression252 + PgClassExpression259{{"PgClassExpression[259∈10]
ᐸ__type_fun...”numrange”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression259 + PgClassExpression266{{"PgClassExpression[266∈10]
ᐸ__type_fun...daterange”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression266 + PgClassExpression273{{"PgClassExpression[273∈10]
ᐸ__type_fun...int_range”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression273 + PgClassExpression280{{"PgClassExpression[280∈10]
ᐸ__type_fun...timestamp”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression280 + PgClassExpression281{{"PgClassExpression[281∈10]
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression281 + PgClassExpression282{{"PgClassExpression[282∈10]
ᐸ__type_fun...n__.”date”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression282 + PgClassExpression283{{"PgClassExpression[283∈10]
ᐸ__type_fun...n__.”time”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression283 + PgClassExpression284{{"PgClassExpression[284∈10]
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression284 + PgClassExpression285{{"PgClassExpression[285∈10]
ᐸ__type_fun...”interval”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression285 + PgClassExpression292{{"PgClassExpression[292∈10]
ᐸ__type_fun...val_array”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression292 + PgClassExpression300{{"PgClassExpression[300∈10]
ᐸ__type_fun...__.”money”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression300 + PgSelectSingle235 --> PgClassExpression301 + First307{{"First[307∈10]"}}:::plan + PgSelectRows308[["PgSelectRows[308∈10]"]]:::plan + PgSelectRows308 --> First307 + PgSelect302 --> PgSelectRows308 + PgSelectSingle309{{"PgSelectSingle[309∈10]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First307 --> PgSelectSingle309 + PgClassExpression310{{"PgClassExpression[310∈10]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle309 --> PgClassExpression310 + PgClassExpression311{{"PgClassExpression[311∈10]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle309 --> PgClassExpression311 + PgClassExpression312{{"PgClassExpression[312∈10]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle309 --> PgClassExpression312 + PgClassExpression313{{"PgClassExpression[313∈10]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle309 --> PgClassExpression313 + PgClassExpression314{{"PgClassExpression[314∈10]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle309 --> PgClassExpression314 + PgClassExpression315{{"PgClassExpression[315∈10]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle309 --> PgClassExpression315 + PgClassExpression316{{"PgClassExpression[316∈10]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle309 --> PgClassExpression316 + PgSelectSingle235 --> PgClassExpression317 + First321{{"First[321∈10]"}}:::plan + PgSelectRows322[["PgSelectRows[322∈10]"]]:::plan + PgSelectRows322 --> First321 + PgSelect318 --> PgSelectRows322 + PgSelectSingle323{{"PgSelectSingle[323∈10]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First321 --> PgSelectSingle323 + PgSelectSingle323 --> PgClassExpression324 + First328{{"First[328∈10]"}}:::plan + PgSelectRows329[["PgSelectRows[329∈10]"]]:::plan + PgSelectRows329 --> First328 + PgSelect325 --> PgSelectRows329 + PgSelectSingle330{{"PgSelectSingle[330∈10]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First328 --> PgSelectSingle330 + PgClassExpression331{{"PgClassExpression[331∈10]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression331 + PgClassExpression332{{"PgClassExpression[332∈10]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression332 + PgClassExpression333{{"PgClassExpression[333∈10]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression333 + PgClassExpression334{{"PgClassExpression[334∈10]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression334 + PgClassExpression335{{"PgClassExpression[335∈10]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression335 + PgClassExpression336{{"PgClassExpression[336∈10]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression336 + PgClassExpression337{{"PgClassExpression[337∈10]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression337 + PgSelectSingle323 --> PgClassExpression338 + First342{{"First[342∈10]"}}:::plan + PgSelectRows343[["PgSelectRows[343∈10]"]]:::plan + PgSelectRows343 --> First342 + PgSelect339 --> PgSelectRows343 + PgSelectSingle344{{"PgSelectSingle[344∈10]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First342 --> PgSelectSingle344 + PgClassExpression345{{"PgClassExpression[345∈10]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle344 --> PgClassExpression345 + PgClassExpression346{{"PgClassExpression[346∈10]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle344 --> PgClassExpression346 + PgClassExpression347{{"PgClassExpression[347∈10]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle344 --> PgClassExpression347 + PgClassExpression348{{"PgClassExpression[348∈10]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle344 --> PgClassExpression348 + PgClassExpression349{{"PgClassExpression[349∈10]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle344 --> PgClassExpression349 + PgClassExpression350{{"PgClassExpression[350∈10]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle344 --> PgClassExpression350 + PgClassExpression351{{"PgClassExpression[351∈10]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle344 --> PgClassExpression351 + PgClassExpression352{{"PgClassExpression[352∈10]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle323 --> PgClassExpression352 + PgSelectSingle235 --> PgClassExpression353 + First357{{"First[357∈10]"}}:::plan + PgSelectRows358[["PgSelectRows[358∈10]"]]:::plan + PgSelectRows358 --> First357 + PgSelect354 --> PgSelectRows358 + PgSelectSingle359{{"PgSelectSingle[359∈10]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First357 --> PgSelectSingle359 + PgClassExpression360{{"PgClassExpression[360∈10]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle359 --> PgClassExpression360 + PgClassExpression361{{"PgClassExpression[361∈10]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle359 --> PgClassExpression361 + PgClassExpression362{{"PgClassExpression[362∈10]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle359 --> PgClassExpression362 + PgClassExpression363{{"PgClassExpression[363∈10]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle359 --> PgClassExpression363 + PgClassExpression364{{"PgClassExpression[364∈10]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle359 --> PgClassExpression364 + PgClassExpression365{{"PgClassExpression[365∈10]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle359 --> PgClassExpression365 + PgClassExpression366{{"PgClassExpression[366∈10]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle359 --> PgClassExpression366 + PgSelectSingle235 --> PgClassExpression367 + First371{{"First[371∈10]"}}:::plan + PgSelectRows372[["PgSelectRows[372∈10]"]]:::plan + PgSelectRows372 --> First371 + PgSelect368 --> PgSelectRows372 + PgSelectSingle373{{"PgSelectSingle[373∈10]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First371 --> PgSelectSingle373 + PgSelectSingle373 --> PgClassExpression374 + First378{{"First[378∈10]"}}:::plan + PgSelectRows379[["PgSelectRows[379∈10]"]]:::plan + PgSelectRows379 --> First378 + PgSelect375 --> PgSelectRows379 + PgSelectSingle380{{"PgSelectSingle[380∈10]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First378 --> PgSelectSingle380 + PgClassExpression381{{"PgClassExpression[381∈10]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle380 --> PgClassExpression381 + PgClassExpression382{{"PgClassExpression[382∈10]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle380 --> PgClassExpression382 + PgClassExpression383{{"PgClassExpression[383∈10]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle380 --> PgClassExpression383 + PgClassExpression384{{"PgClassExpression[384∈10]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle380 --> PgClassExpression384 + PgClassExpression385{{"PgClassExpression[385∈10]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle380 --> PgClassExpression385 + PgClassExpression386{{"PgClassExpression[386∈10]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle380 --> PgClassExpression386 + PgClassExpression387{{"PgClassExpression[387∈10]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle380 --> PgClassExpression387 + PgSelectSingle373 --> PgClassExpression388 + First392{{"First[392∈10]"}}:::plan + PgSelectRows393[["PgSelectRows[393∈10]"]]:::plan + PgSelectRows393 --> First392 + PgSelect389 --> PgSelectRows393 + PgSelectSingle394{{"PgSelectSingle[394∈10]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First392 --> PgSelectSingle394 + PgClassExpression395{{"PgClassExpression[395∈10]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle394 --> PgClassExpression395 + PgClassExpression396{{"PgClassExpression[396∈10]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle394 --> PgClassExpression396 + PgClassExpression397{{"PgClassExpression[397∈10]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle394 --> PgClassExpression397 + PgClassExpression398{{"PgClassExpression[398∈10]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle394 --> PgClassExpression398 + PgClassExpression399{{"PgClassExpression[399∈10]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle394 --> PgClassExpression399 + PgClassExpression400{{"PgClassExpression[400∈10]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle394 --> PgClassExpression400 + PgClassExpression401{{"PgClassExpression[401∈10]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle394 --> PgClassExpression401 + PgClassExpression402{{"PgClassExpression[402∈10]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle373 --> PgClassExpression402 + PgClassExpression403{{"PgClassExpression[403∈10]
ᐸ__type_fun...__.”point”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression403 + PgClassExpression406{{"PgClassExpression[406∈10]
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression406 + PgClassExpression409{{"PgClassExpression[409∈10]
ᐸ__type_fun...n__.”inet”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression409 + PgClassExpression410{{"PgClassExpression[410∈10]
ᐸ__type_fun...n__.”cidr”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression410 + PgClassExpression411{{"PgClassExpression[411∈10]
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression411 + PgClassExpression412{{"PgClassExpression[412∈10]
ᐸ__type_fun....”regproc”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression412 + PgClassExpression413{{"PgClassExpression[413∈10]
ᐸ__type_fun...procedure”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression413 + PgClassExpression414{{"PgClassExpression[414∈10]
ᐸ__type_fun....”regoper”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression414 + PgClassExpression415{{"PgClassExpression[415∈10]
ᐸ__type_fun...goperator”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression415 + PgClassExpression416{{"PgClassExpression[416∈10]
ᐸ__type_fun...”regclass”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression416 + PgClassExpression417{{"PgClassExpression[417∈10]
ᐸ__type_fun....”regtype”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression417 + PgClassExpression418{{"PgClassExpression[418∈10]
ᐸ__type_fun...regconfig”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression418 + PgClassExpression419{{"PgClassExpression[419∈10]
ᐸ__type_fun...ictionary”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression419 + PgClassExpression420{{"PgClassExpression[420∈10]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression420 + PgClassExpression422{{"PgClassExpression[422∈10]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression422 + PgClassExpression424{{"PgClassExpression[424∈10]
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression424 + PgClassExpression425{{"PgClassExpression[425∈10]
ᐸ__type_fun...tea_array”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression425 + First429{{"First[429∈10]"}}:::plan + PgSelectRows430[["PgSelectRows[430∈10]"]]:::plan + PgSelectRows430 --> First429 + PgSelect427 --> PgSelectRows430 + PgSelectSingle431{{"PgSelectSingle[431∈10]
ᐸpostᐳ"}}:::plan + First429 --> PgSelectSingle431 + PgClassExpression432{{"PgClassExpression[432∈10]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle431 --> PgClassExpression432 + PgClassExpression433{{"PgClassExpression[433∈10]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle431 --> PgClassExpression433 + First436{{"First[436∈10]"}}:::plan + PgSelectRows437[["PgSelectRows[437∈10]"]]:::plan + PgSelectRows437 --> First436 + PgSelect434 --> PgSelectRows437 + PgSelectSingle438{{"PgSelectSingle[438∈10]
ᐸpostᐳ"}}:::plan + First436 --> PgSelectSingle438 + PgClassExpression439{{"PgClassExpression[439∈10]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle438 --> PgClassExpression439 + PgClassExpression440{{"PgClassExpression[440∈10]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle438 --> PgClassExpression440 + PgClassExpression441{{"PgClassExpression[441∈10]
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression441 + PgClassExpression442{{"PgClassExpression[442∈10]
ᐸ__type_fun...ree_array”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression442 + __Item245[/"__Item[245∈11]
ᐸ244ᐳ"\]:::itemplan + PgClassExpression244 ==> __Item245 + __Item249[/"__Item[249∈12]
ᐸ248ᐳ"\]:::itemplan + PgClassExpression248 ==> __Item249 + __Item293[/"__Item[293∈13]
ᐸ292ᐳ"\]:::itemplan + PgClassExpression292 ==> __Item293 + __Item421[/"__Item[421∈14]
ᐸ420ᐳ"\]:::itemplan + PgClassExpression420 ==> __Item421 + __Item423[/"__Item[423∈15]
ᐸ422ᐳ"\]:::itemplan + PgClassExpression422 ==> __Item423 + __Item426[/"__Item[426∈16]
ᐸ425ᐳ"\]:::itemplan + PgClassExpression425 ==> __Item426 + __Item443[/"__Item[443∈17]
ᐸ442ᐳ"\]:::itemplan + PgClassExpression442 ==> __Item443 + PgSelect446[["PgSelect[446∈18] ➊
ᐸtype_function_connection_mutation(mutation)ᐳ"]]:::sideeffectplan + Object449{{"Object[449∈18] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object449 & ApplyInput451 --> PgSelect446 + Access447{{"Access[447∈18] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access448{{"Access[448∈18] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access447 & Access448 --> Object449 + __Value2 --> Access447 + __Value2 --> Access448 + Object450{{"Object[450∈18] ➊
ᐸ{result}ᐳ"}}:::plan + PgSelect446 --> Object450 + PgSelectRows452[["PgSelectRows[452∈18] ➊"]]:::plan + PgSelect446 --> PgSelectRows452 + PgSelect521[["PgSelect[521∈19]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression520{{"PgClassExpression[520∈19]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgFromExpression525{{"PgFromExpression[525∈19] ➊"}}:::plan + Object449 & PgClassExpression520 & PgFromExpression525 --> PgSelect521 + PgSelect537[["PgSelect[537∈19]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression536{{"PgClassExpression[536∈19]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgFromExpression539{{"PgFromExpression[539∈19] ➊"}}:::plan + Object449 & PgClassExpression536 & PgFromExpression539 --> PgSelect537 + PgSelect544[["PgSelect[544∈19]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression543{{"PgClassExpression[543∈19]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgFromExpression546{{"PgFromExpression[546∈19] ➊"}}:::plan + Object449 & PgClassExpression543 & PgFromExpression546 --> PgSelect544 + PgSelect558[["PgSelect[558∈19]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression557{{"PgClassExpression[557∈19]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgFromExpression560{{"PgFromExpression[560∈19] ➊"}}:::plan + Object449 & PgClassExpression557 & PgFromExpression560 --> PgSelect558 + PgSelect573[["PgSelect[573∈19]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression572{{"PgClassExpression[572∈19]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgFromExpression575{{"PgFromExpression[575∈19] ➊"}}:::plan + Object449 & PgClassExpression572 & PgFromExpression575 --> PgSelect573 + PgSelect587[["PgSelect[587∈19]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression586{{"PgClassExpression[586∈19]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgFromExpression589{{"PgFromExpression[589∈19] ➊"}}:::plan + Object449 & PgClassExpression586 & PgFromExpression589 --> PgSelect587 + PgSelect594[["PgSelect[594∈19]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression593{{"PgClassExpression[593∈19]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgFromExpression596{{"PgFromExpression[596∈19] ➊"}}:::plan + Object449 & PgClassExpression593 & PgFromExpression596 --> PgSelect594 + PgSelect608[["PgSelect[608∈19]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression607{{"PgClassExpression[607∈19]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgFromExpression610{{"PgFromExpression[610∈19] ➊"}}:::plan + Object449 & PgClassExpression607 & PgFromExpression610 --> PgSelect608 + PgSelect646[["PgSelect[646∈19]
ᐸpostᐳ"]]:::plan + PgClassExpression456{{"PgClassExpression[456∈19]
ᐸ__type_fun...”smallint”ᐳ"}}:::plan + Object449 & PgClassExpression456 --> PgSelect646 + PgSelect653[["PgSelect[653∈19]
ᐸpostᐳ"]]:::plan + PgClassExpression455{{"PgClassExpression[455∈19]
ᐸ__type_fun...ion__.”id”ᐳ"}}:::plan + Object449 & PgClassExpression455 --> PgSelect653 + __Item453[/"__Item[453∈19]
ᐸ452ᐳ"\]:::itemplan + PgSelectRows452 ==> __Item453 + PgSelectSingle454{{"PgSelectSingle[454∈19]
ᐸtype_function_connection_mutationᐳ"}}:::plan + __Item453 --> PgSelectSingle454 + PgSelectSingle454 --> PgClassExpression455 + PgSelectSingle454 --> PgClassExpression456 + PgClassExpression457{{"PgClassExpression[457∈19]
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression457 + PgClassExpression458{{"PgClassExpression[458∈19]
ᐸ__type_fun....”numeric”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression458 + PgClassExpression459{{"PgClassExpression[459∈19]
ᐸ__type_fun....”decimal”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression459 + PgClassExpression460{{"PgClassExpression[460∈19]
ᐸ__type_fun....”boolean”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression460 + PgClassExpression461{{"PgClassExpression[461∈19]
ᐸ__type_fun....”varchar”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression461 + PgClassExpression462{{"PgClassExpression[462∈19]
ᐸ__type_fun...n__.”enum”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression462 + PgClassExpression463{{"PgClassExpression[463∈19]
ᐸ__type_fun...num_array”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression463 + PgClassExpression465{{"PgClassExpression[465∈19]
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression465 + PgClassExpression466{{"PgClassExpression[466∈19]
ᐸ__type_fun....”domain2”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression466 + PgClassExpression467{{"PgClassExpression[467∈19]
ᐸ__type_fun...ext_array”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression467 + PgClassExpression469{{"PgClassExpression[469∈19]
ᐸ__type_fun...n__.”json”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression469 + PgClassExpression470{{"PgClassExpression[470∈19]
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression470 + PgClassExpression471{{"PgClassExpression[471∈19]
ᐸ__type_fun...ble_range”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression471 + PgClassExpression478{{"PgClassExpression[478∈19]
ᐸ__type_fun...”numrange”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression478 + PgClassExpression485{{"PgClassExpression[485∈19]
ᐸ__type_fun...daterange”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression485 + PgClassExpression492{{"PgClassExpression[492∈19]
ᐸ__type_fun...int_range”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression492 + PgClassExpression499{{"PgClassExpression[499∈19]
ᐸ__type_fun...timestamp”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression499 + PgClassExpression500{{"PgClassExpression[500∈19]
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression500 + PgClassExpression501{{"PgClassExpression[501∈19]
ᐸ__type_fun...n__.”date”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression501 + PgClassExpression502{{"PgClassExpression[502∈19]
ᐸ__type_fun...n__.”time”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression502 + PgClassExpression503{{"PgClassExpression[503∈19]
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression503 + PgClassExpression504{{"PgClassExpression[504∈19]
ᐸ__type_fun...”interval”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression504 + PgClassExpression511{{"PgClassExpression[511∈19]
ᐸ__type_fun...val_array”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression511 + PgClassExpression519{{"PgClassExpression[519∈19]
ᐸ__type_fun...__.”money”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression519 + PgSelectSingle454 --> PgClassExpression520 + First526{{"First[526∈19]"}}:::plan + PgSelectRows527[["PgSelectRows[527∈19]"]]:::plan + PgSelectRows527 --> First526 + PgSelect521 --> PgSelectRows527 + PgSelectSingle528{{"PgSelectSingle[528∈19]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First526 --> PgSelectSingle528 + PgClassExpression529{{"PgClassExpression[529∈19]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle528 --> PgClassExpression529 + PgClassExpression530{{"PgClassExpression[530∈19]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle528 --> PgClassExpression530 + PgClassExpression531{{"PgClassExpression[531∈19]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle528 --> PgClassExpression531 + PgClassExpression532{{"PgClassExpression[532∈19]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle528 --> PgClassExpression532 + PgClassExpression533{{"PgClassExpression[533∈19]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle528 --> PgClassExpression533 + PgClassExpression534{{"PgClassExpression[534∈19]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle528 --> PgClassExpression534 + PgClassExpression535{{"PgClassExpression[535∈19]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle528 --> PgClassExpression535 + PgSelectSingle454 --> PgClassExpression536 + First540{{"First[540∈19]"}}:::plan + PgSelectRows541[["PgSelectRows[541∈19]"]]:::plan + PgSelectRows541 --> First540 + PgSelect537 --> PgSelectRows541 + PgSelectSingle542{{"PgSelectSingle[542∈19]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First540 --> PgSelectSingle542 + PgSelectSingle542 --> PgClassExpression543 + First547{{"First[547∈19]"}}:::plan + PgSelectRows548[["PgSelectRows[548∈19]"]]:::plan + PgSelectRows548 --> First547 + PgSelect544 --> PgSelectRows548 + PgSelectSingle549{{"PgSelectSingle[549∈19]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First547 --> PgSelectSingle549 + PgClassExpression550{{"PgClassExpression[550∈19]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle549 --> PgClassExpression550 + PgClassExpression551{{"PgClassExpression[551∈19]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle549 --> PgClassExpression551 + PgClassExpression552{{"PgClassExpression[552∈19]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle549 --> PgClassExpression552 + PgClassExpression553{{"PgClassExpression[553∈19]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle549 --> PgClassExpression553 + PgClassExpression554{{"PgClassExpression[554∈19]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle549 --> PgClassExpression554 + PgClassExpression555{{"PgClassExpression[555∈19]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle549 --> PgClassExpression555 + PgClassExpression556{{"PgClassExpression[556∈19]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle549 --> PgClassExpression556 + PgSelectSingle542 --> PgClassExpression557 + First561{{"First[561∈19]"}}:::plan + PgSelectRows562[["PgSelectRows[562∈19]"]]:::plan + PgSelectRows562 --> First561 + PgSelect558 --> PgSelectRows562 + PgSelectSingle563{{"PgSelectSingle[563∈19]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First561 --> PgSelectSingle563 + PgClassExpression564{{"PgClassExpression[564∈19]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle563 --> PgClassExpression564 + PgClassExpression565{{"PgClassExpression[565∈19]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle563 --> PgClassExpression565 + PgClassExpression566{{"PgClassExpression[566∈19]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle563 --> PgClassExpression566 + PgClassExpression567{{"PgClassExpression[567∈19]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle563 --> PgClassExpression567 + PgClassExpression568{{"PgClassExpression[568∈19]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle563 --> PgClassExpression568 + PgClassExpression569{{"PgClassExpression[569∈19]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle563 --> PgClassExpression569 + PgClassExpression570{{"PgClassExpression[570∈19]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle563 --> PgClassExpression570 + PgClassExpression571{{"PgClassExpression[571∈19]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle542 --> PgClassExpression571 + PgSelectSingle454 --> PgClassExpression572 + First576{{"First[576∈19]"}}:::plan + PgSelectRows577[["PgSelectRows[577∈19]"]]:::plan + PgSelectRows577 --> First576 + PgSelect573 --> PgSelectRows577 + PgSelectSingle578{{"PgSelectSingle[578∈19]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First576 --> PgSelectSingle578 + PgClassExpression579{{"PgClassExpression[579∈19]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle578 --> PgClassExpression579 + PgClassExpression580{{"PgClassExpression[580∈19]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle578 --> PgClassExpression580 + PgClassExpression581{{"PgClassExpression[581∈19]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle578 --> PgClassExpression581 + PgClassExpression582{{"PgClassExpression[582∈19]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle578 --> PgClassExpression582 + PgClassExpression583{{"PgClassExpression[583∈19]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle578 --> PgClassExpression583 + PgClassExpression584{{"PgClassExpression[584∈19]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle578 --> PgClassExpression584 + PgClassExpression585{{"PgClassExpression[585∈19]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle578 --> PgClassExpression585 + PgSelectSingle454 --> PgClassExpression586 + First590{{"First[590∈19]"}}:::plan + PgSelectRows591[["PgSelectRows[591∈19]"]]:::plan + PgSelectRows591 --> First590 + PgSelect587 --> PgSelectRows591 + PgSelectSingle592{{"PgSelectSingle[592∈19]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First590 --> PgSelectSingle592 + PgSelectSingle592 --> PgClassExpression593 + First597{{"First[597∈19]"}}:::plan + PgSelectRows598[["PgSelectRows[598∈19]"]]:::plan + PgSelectRows598 --> First597 + PgSelect594 --> PgSelectRows598 + PgSelectSingle599{{"PgSelectSingle[599∈19]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First597 --> PgSelectSingle599 + PgClassExpression600{{"PgClassExpression[600∈19]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle599 --> PgClassExpression600 + PgClassExpression601{{"PgClassExpression[601∈19]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle599 --> PgClassExpression601 + PgClassExpression602{{"PgClassExpression[602∈19]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle599 --> PgClassExpression602 + PgClassExpression603{{"PgClassExpression[603∈19]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle599 --> PgClassExpression603 + PgClassExpression604{{"PgClassExpression[604∈19]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle599 --> PgClassExpression604 + PgClassExpression605{{"PgClassExpression[605∈19]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle599 --> PgClassExpression605 + PgClassExpression606{{"PgClassExpression[606∈19]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle599 --> PgClassExpression606 + PgSelectSingle592 --> PgClassExpression607 + First611{{"First[611∈19]"}}:::plan + PgSelectRows612[["PgSelectRows[612∈19]"]]:::plan + PgSelectRows612 --> First611 + PgSelect608 --> PgSelectRows612 + PgSelectSingle613{{"PgSelectSingle[613∈19]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First611 --> PgSelectSingle613 + PgClassExpression614{{"PgClassExpression[614∈19]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle613 --> PgClassExpression614 + PgClassExpression615{{"PgClassExpression[615∈19]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle613 --> PgClassExpression615 + PgClassExpression616{{"PgClassExpression[616∈19]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle613 --> PgClassExpression616 + PgClassExpression617{{"PgClassExpression[617∈19]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle613 --> PgClassExpression617 + PgClassExpression618{{"PgClassExpression[618∈19]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle613 --> PgClassExpression618 + PgClassExpression619{{"PgClassExpression[619∈19]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle613 --> PgClassExpression619 + PgClassExpression620{{"PgClassExpression[620∈19]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle613 --> PgClassExpression620 + PgClassExpression621{{"PgClassExpression[621∈19]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle592 --> PgClassExpression621 + PgClassExpression622{{"PgClassExpression[622∈19]
ᐸ__type_fun...__.”point”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression622 + PgClassExpression625{{"PgClassExpression[625∈19]
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression625 + PgClassExpression628{{"PgClassExpression[628∈19]
ᐸ__type_fun...n__.”inet”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression628 + PgClassExpression629{{"PgClassExpression[629∈19]
ᐸ__type_fun...n__.”cidr”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression629 + PgClassExpression630{{"PgClassExpression[630∈19]
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression630 + PgClassExpression631{{"PgClassExpression[631∈19]
ᐸ__type_fun....”regproc”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression631 + PgClassExpression632{{"PgClassExpression[632∈19]
ᐸ__type_fun...procedure”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression632 + PgClassExpression633{{"PgClassExpression[633∈19]
ᐸ__type_fun....”regoper”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression633 + PgClassExpression634{{"PgClassExpression[634∈19]
ᐸ__type_fun...goperator”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression634 + PgClassExpression635{{"PgClassExpression[635∈19]
ᐸ__type_fun...”regclass”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression635 + PgClassExpression636{{"PgClassExpression[636∈19]
ᐸ__type_fun....”regtype”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression636 + PgClassExpression637{{"PgClassExpression[637∈19]
ᐸ__type_fun...regconfig”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression637 + PgClassExpression638{{"PgClassExpression[638∈19]
ᐸ__type_fun...ictionary”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression638 + PgClassExpression639{{"PgClassExpression[639∈19]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression639 + PgClassExpression641{{"PgClassExpression[641∈19]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression641 + PgClassExpression643{{"PgClassExpression[643∈19]
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression643 + PgClassExpression644{{"PgClassExpression[644∈19]
ᐸ__type_fun...tea_array”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression644 + First648{{"First[648∈19]"}}:::plan + PgSelectRows649[["PgSelectRows[649∈19]"]]:::plan + PgSelectRows649 --> First648 + PgSelect646 --> PgSelectRows649 + PgSelectSingle650{{"PgSelectSingle[650∈19]
ᐸpostᐳ"}}:::plan + First648 --> PgSelectSingle650 + PgClassExpression651{{"PgClassExpression[651∈19]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle650 --> PgClassExpression651 + PgClassExpression652{{"PgClassExpression[652∈19]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle650 --> PgClassExpression652 + First655{{"First[655∈19]"}}:::plan + PgSelectRows656[["PgSelectRows[656∈19]"]]:::plan + PgSelectRows656 --> First655 + PgSelect653 --> PgSelectRows656 + PgSelectSingle657{{"PgSelectSingle[657∈19]
ᐸpostᐳ"}}:::plan + First655 --> PgSelectSingle657 + PgClassExpression658{{"PgClassExpression[658∈19]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle657 --> PgClassExpression658 + PgClassExpression659{{"PgClassExpression[659∈19]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle657 --> PgClassExpression659 + PgClassExpression660{{"PgClassExpression[660∈19]
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression660 + PgClassExpression661{{"PgClassExpression[661∈19]
ᐸ__type_fun...ree_array”ᐳ"}}:::plan + PgSelectSingle454 --> PgClassExpression661 + __Item464[/"__Item[464∈20]
ᐸ463ᐳ"\]:::itemplan + PgClassExpression463 ==> __Item464 + __Item468[/"__Item[468∈21]
ᐸ467ᐳ"\]:::itemplan + PgClassExpression467 ==> __Item468 + __Item512[/"__Item[512∈22]
ᐸ511ᐳ"\]:::itemplan + PgClassExpression511 ==> __Item512 + __Item640[/"__Item[640∈23]
ᐸ639ᐳ"\]:::itemplan + PgClassExpression639 ==> __Item640 + __Item642[/"__Item[642∈24]
ᐸ641ᐳ"\]:::itemplan PgClassExpression641 ==> __Item642 - PgUpdateSingle734[["PgUpdateSingle[734∈90] ➊
ᐸtypes(id;smallint,bigint,numeric,decimal,boolean,varchar,enum,enum_array,domain,domain2,text_array,json,jsonb,numrange,daterange,an_int_range,timestamp,timestamptz,date,time,timetz,interval,interval_array,money,compound_type,nested_compound_type,point,nullablePoint,inet,cidr,macaddr,regproc,regprocedure,regoper,regoperator,regclass,regtype,regconfig,regdictionary,text_array_domain,int8_array_domain,bytea,bytea_array,ltree,ltree_array)ᐳ"]]:::sideeffectplan - Object737{{"Object[737∈90] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object737 & Constant1266 & Constant1267 & Constant1268 & Constant1268 & Constant1268 & Constant1269 & Constant1268 & Constant1270 & Constant1316 & Constant1267 & Constant1267 & Constant1317 & Constant1274 & Constant1275 & Constant1346 & Constant1347 & Constant1348 & Constant1280 & Constant1281 & Constant1282 & Constant1283 & Constant1283 & Constant1314 & Constant1324 & Constant1284 & Constant1325 & Constant1326 & Constant1327 & Constant1328 & Constant1289 & Constant1290 & Constant1291 & Constant1292 & Constant1293 & Constant1294 & Constant1295 & Constant1296 & Constant1297 & Constant1298 & Constant1299 & Constant1329 & Constant1330 & Constant1306 & Constant1331 & Constant1309 & Constant1332 --> PgUpdateSingle734 - Access735{{"Access[735∈90] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access736{{"Access[736∈90] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access735 & Access736 --> Object737 - __Value2 --> Access735 - __Value2 --> Access736 - Object738{{"Object[738∈90] ➊
ᐸ{result}ᐳ"}}:::plan - PgUpdateSingle734 --> Object738 - PgSelect828[["PgSelect[828∈92] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression827{{"PgClassExpression[827∈92] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object737 & PgClassExpression827 --> PgSelect828 - PgSelect843[["PgSelect[843∈92] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression842{{"PgClassExpression[842∈92] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object737 & PgClassExpression842 --> PgSelect843 - PgSelect849[["PgSelect[849∈92] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression848{{"PgClassExpression[848∈92] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object737 & PgClassExpression848 --> PgSelect849 - PgSelect862[["PgSelect[862∈92] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression861{{"PgClassExpression[861∈92] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object737 & PgClassExpression861 --> PgSelect862 - PgSelect876[["PgSelect[876∈92] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression875{{"PgClassExpression[875∈92] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object737 & PgClassExpression875 --> PgSelect876 - PgSelect889[["PgSelect[889∈92] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression888{{"PgClassExpression[888∈92] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object737 & PgClassExpression888 --> PgSelect889 - PgSelect948[["PgSelect[948∈92] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression763{{"PgClassExpression[763∈92] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan - Object737 & PgClassExpression763 --> PgSelect948 - PgSelect956[["PgSelect[956∈92] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression762{{"PgClassExpression[762∈92] ➊
ᐸ__types__.”id”ᐳ"}}:::plan - Object737 & PgClassExpression762 --> PgSelect956 - PgUpdateSingle734 --> PgClassExpression762 - PgUpdateSingle734 --> PgClassExpression763 - PgClassExpression764{{"PgClassExpression[764∈92] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression764 - PgClassExpression765{{"PgClassExpression[765∈92] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression765 - PgClassExpression766{{"PgClassExpression[766∈92] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression766 - PgClassExpression767{{"PgClassExpression[767∈92] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression767 - PgClassExpression768{{"PgClassExpression[768∈92] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression768 - PgClassExpression769{{"PgClassExpression[769∈92] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression769 - PgClassExpression770{{"PgClassExpression[770∈92] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression770 - PgClassExpression772{{"PgClassExpression[772∈92] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression772 - PgClassExpression773{{"PgClassExpression[773∈92] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression773 - PgClassExpression774{{"PgClassExpression[774∈92] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression774 - PgClassExpression776{{"PgClassExpression[776∈92] ➊
ᐸ__types__.”json”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression776 - PgClassExpression777{{"PgClassExpression[777∈92] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression777 - PgClassExpression778{{"PgClassExpression[778∈92] ➊
ᐸ__types__....ble_range”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression778 - PgClassExpression785{{"PgClassExpression[785∈92] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression785 - Access786{{"Access[786∈92] ➊
ᐸ785.startᐳ"}}:::plan - PgClassExpression785 --> Access786 - Access789{{"Access[789∈92] ➊
ᐸ785.endᐳ"}}:::plan - PgClassExpression785 --> Access789 - PgClassExpression792{{"PgClassExpression[792∈92] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression792 - Access793{{"Access[793∈92] ➊
ᐸ792.startᐳ"}}:::plan - PgClassExpression792 --> Access793 - Access796{{"Access[796∈92] ➊
ᐸ792.endᐳ"}}:::plan - PgClassExpression792 --> Access796 - PgClassExpression799{{"PgClassExpression[799∈92] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression799 - Access800{{"Access[800∈92] ➊
ᐸ799.startᐳ"}}:::plan - PgClassExpression799 --> Access800 - Access803{{"Access[803∈92] ➊
ᐸ799.endᐳ"}}:::plan - PgClassExpression799 --> Access803 - PgClassExpression806{{"PgClassExpression[806∈92] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression806 - PgClassExpression807{{"PgClassExpression[807∈92] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression807 - PgClassExpression808{{"PgClassExpression[808∈92] ➊
ᐸ__types__.”date”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression808 - PgClassExpression809{{"PgClassExpression[809∈92] ➊
ᐸ__types__.”time”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression809 - PgClassExpression810{{"PgClassExpression[810∈92] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression810 - PgClassExpression811{{"PgClassExpression[811∈92] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression811 - PgClassExpression818{{"PgClassExpression[818∈92] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression818 - PgClassExpression826{{"PgClassExpression[826∈92] ➊
ᐸ__types__.”money”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression826 - PgUpdateSingle734 --> PgClassExpression827 - First832{{"First[832∈92] ➊"}}:::plan - PgSelectRows833[["PgSelectRows[833∈92] ➊"]]:::plan - PgSelectRows833 --> First832 - PgSelect828 --> PgSelectRows833 - PgSelectSingle834{{"PgSelectSingle[834∈92] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First832 --> PgSelectSingle834 - PgClassExpression835{{"PgClassExpression[835∈92] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle834 --> PgClassExpression835 - PgClassExpression836{{"PgClassExpression[836∈92] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle834 --> PgClassExpression836 - PgClassExpression837{{"PgClassExpression[837∈92] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle834 --> PgClassExpression837 - PgClassExpression838{{"PgClassExpression[838∈92] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle834 --> PgClassExpression838 - PgClassExpression839{{"PgClassExpression[839∈92] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle834 --> PgClassExpression839 - PgClassExpression840{{"PgClassExpression[840∈92] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle834 --> PgClassExpression840 - PgClassExpression841{{"PgClassExpression[841∈92] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle834 --> PgClassExpression841 - PgUpdateSingle734 --> PgClassExpression842 - First845{{"First[845∈92] ➊"}}:::plan - PgSelectRows846[["PgSelectRows[846∈92] ➊"]]:::plan - PgSelectRows846 --> First845 - PgSelect843 --> PgSelectRows846 - PgSelectSingle847{{"PgSelectSingle[847∈92] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First845 --> PgSelectSingle847 - PgSelectSingle847 --> PgClassExpression848 - First851{{"First[851∈92] ➊"}}:::plan - PgSelectRows852[["PgSelectRows[852∈92] ➊"]]:::plan - PgSelectRows852 --> First851 - PgSelect849 --> PgSelectRows852 - PgSelectSingle853{{"PgSelectSingle[853∈92] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First851 --> PgSelectSingle853 - PgSelectSingle847 --> PgClassExpression861 - First864{{"First[864∈92] ➊"}}:::plan - PgSelectRows865[["PgSelectRows[865∈92] ➊"]]:::plan + __Item645[/"__Item[645∈25]
ᐸ644ᐳ"\]:::itemplan + PgClassExpression644 ==> __Item645 + __Item662[/"__Item[662∈26]
ᐸ661ᐳ"\]:::itemplan + PgClassExpression661 ==> __Item662 + PgUpdateSingle738[["PgUpdateSingle[738∈27] ➊
ᐸtypes(id;)ᐳ"]]:::sideeffectplan + Object741{{"Object[741∈27] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object741 & Constant1232 & ApplyInput742 --> PgUpdateSingle738 + Access739{{"Access[739∈27] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access740{{"Access[740∈27] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access739 & Access740 --> Object741 + PgSelect811[["PgSelect[811∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression813{{"PgFromExpression[813∈27] ➊"}}:::plan + Object741 & PgFromExpression813 --> PgSelect811 + PgSelect825[["PgSelect[825∈27] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression827{{"PgFromExpression[827∈27] ➊"}}:::plan + Object741 & PgFromExpression827 --> PgSelect825 + PgSelect832[["PgSelect[832∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression834{{"PgFromExpression[834∈27] ➊"}}:::plan + Object741 & PgFromExpression834 --> PgSelect832 + PgSelect846[["PgSelect[846∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression848{{"PgFromExpression[848∈27] ➊"}}:::plan + Object741 & PgFromExpression848 --> PgSelect846 + PgSelect861[["PgSelect[861∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression863{{"PgFromExpression[863∈27] ➊"}}:::plan + Object741 & PgFromExpression863 --> PgSelect861 + PgSelect875[["PgSelect[875∈27] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression877{{"PgFromExpression[877∈27] ➊"}}:::plan + Object741 & PgFromExpression877 --> PgSelect875 + PgSelect882[["PgSelect[882∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression884{{"PgFromExpression[884∈27] ➊"}}:::plan + Object741 & PgFromExpression884 --> PgSelect882 + PgSelect896[["PgSelect[896∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression898{{"PgFromExpression[898∈27] ➊"}}:::plan + Object741 & PgFromExpression898 --> PgSelect896 + PgSelect935[["PgSelect[935∈27] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression746{{"PgClassExpression[746∈27] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan + Object741 & PgClassExpression746 --> PgSelect935 + PgSelect943[["PgSelect[943∈27] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression744{{"PgClassExpression[744∈27] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + Object741 & PgClassExpression744 --> PgSelect943 + __Value2 --> Access739 + __Value2 --> Access740 + Object743{{"Object[743∈27] ➊
ᐸ{result}ᐳ"}}:::plan + PgUpdateSingle738 --> Object743 + Access745{{"Access[745∈27] ➊
ᐸ738.tᐳ"}}:::plan + Access745 --> PgClassExpression744 + PgUpdateSingle738 --> Access745 + Access745 --> PgClassExpression746 + PgClassExpression747{{"PgClassExpression[747∈27] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan + Access745 --> PgClassExpression747 + PgClassExpression748{{"PgClassExpression[748∈27] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan + Access745 --> PgClassExpression748 + PgClassExpression749{{"PgClassExpression[749∈27] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan + Access745 --> PgClassExpression749 + PgClassExpression750{{"PgClassExpression[750∈27] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan + Access745 --> PgClassExpression750 + PgClassExpression751{{"PgClassExpression[751∈27] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan + Access745 --> PgClassExpression751 + PgClassExpression752{{"PgClassExpression[752∈27] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan + Access745 --> PgClassExpression752 + PgClassExpression753{{"PgClassExpression[753∈27] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan + Access745 --> PgClassExpression753 + PgClassExpression755{{"PgClassExpression[755∈27] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan + Access745 --> PgClassExpression755 + PgClassExpression756{{"PgClassExpression[756∈27] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan + Access745 --> PgClassExpression756 + PgClassExpression757{{"PgClassExpression[757∈27] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan + Access745 --> PgClassExpression757 + PgClassExpression759{{"PgClassExpression[759∈27] ➊
ᐸ__types__.”json”ᐳ"}}:::plan + Access745 --> PgClassExpression759 + PgClassExpression760{{"PgClassExpression[760∈27] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan + Access745 --> PgClassExpression760 + PgClassExpression761{{"PgClassExpression[761∈27] ➊
ᐸ__types__....ble_range”ᐳ"}}:::plan + Access745 --> PgClassExpression761 + Access762{{"Access[762∈27] ➊
ᐸ761.startᐳ"}}:::plan + PgClassExpression761 --> Access762 + Access763{{"Access[763∈27] ➊
ᐸ761.start.valueᐳ"}}:::plan + PgClassExpression761 --> Access763 + Access764{{"Access[764∈27] ➊
ᐸ761.start.inclusiveᐳ"}}:::plan + PgClassExpression761 --> Access764 + Access765{{"Access[765∈27] ➊
ᐸ761.endᐳ"}}:::plan + PgClassExpression761 --> Access765 + Access766{{"Access[766∈27] ➊
ᐸ761.end.valueᐳ"}}:::plan + PgClassExpression761 --> Access766 + Access767{{"Access[767∈27] ➊
ᐸ761.end.inclusiveᐳ"}}:::plan + PgClassExpression761 --> Access767 + PgClassExpression768{{"PgClassExpression[768∈27] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan + Access745 --> PgClassExpression768 + Access769{{"Access[769∈27] ➊
ᐸ768.startᐳ"}}:::plan + PgClassExpression768 --> Access769 + Access770{{"Access[770∈27] ➊
ᐸ768.start.valueᐳ"}}:::plan + PgClassExpression768 --> Access770 + Access771{{"Access[771∈27] ➊
ᐸ768.start.inclusiveᐳ"}}:::plan + PgClassExpression768 --> Access771 + Access772{{"Access[772∈27] ➊
ᐸ768.endᐳ"}}:::plan + PgClassExpression768 --> Access772 + Access773{{"Access[773∈27] ➊
ᐸ768.end.valueᐳ"}}:::plan + PgClassExpression768 --> Access773 + Access774{{"Access[774∈27] ➊
ᐸ768.end.inclusiveᐳ"}}:::plan + PgClassExpression768 --> Access774 + PgClassExpression775{{"PgClassExpression[775∈27] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan + Access745 --> PgClassExpression775 + Access776{{"Access[776∈27] ➊
ᐸ775.startᐳ"}}:::plan + PgClassExpression775 --> Access776 + Access777{{"Access[777∈27] ➊
ᐸ775.start.valueᐳ"}}:::plan + PgClassExpression775 --> Access777 + Access778{{"Access[778∈27] ➊
ᐸ775.start.inclusiveᐳ"}}:::plan + PgClassExpression775 --> Access778 + Access779{{"Access[779∈27] ➊
ᐸ775.endᐳ"}}:::plan + PgClassExpression775 --> Access779 + Access780{{"Access[780∈27] ➊
ᐸ775.end.valueᐳ"}}:::plan + PgClassExpression775 --> Access780 + Access781{{"Access[781∈27] ➊
ᐸ775.end.inclusiveᐳ"}}:::plan + PgClassExpression775 --> Access781 + PgClassExpression782{{"PgClassExpression[782∈27] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan + Access745 --> PgClassExpression782 + Access783{{"Access[783∈27] ➊
ᐸ782.startᐳ"}}:::plan + PgClassExpression782 --> Access783 + Access784{{"Access[784∈27] ➊
ᐸ782.start.valueᐳ"}}:::plan + PgClassExpression782 --> Access784 + Access785{{"Access[785∈27] ➊
ᐸ782.start.inclusiveᐳ"}}:::plan + PgClassExpression782 --> Access785 + Access786{{"Access[786∈27] ➊
ᐸ782.endᐳ"}}:::plan + PgClassExpression782 --> Access786 + Access787{{"Access[787∈27] ➊
ᐸ782.end.valueᐳ"}}:::plan + PgClassExpression782 --> Access787 + Access788{{"Access[788∈27] ➊
ᐸ782.end.inclusiveᐳ"}}:::plan + PgClassExpression782 --> Access788 + PgClassExpression789{{"PgClassExpression[789∈27] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan + Access745 --> PgClassExpression789 + PgClassExpression790{{"PgClassExpression[790∈27] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan + Access745 --> PgClassExpression790 + PgClassExpression791{{"PgClassExpression[791∈27] ➊
ᐸ__types__.”date”ᐳ"}}:::plan + Access745 --> PgClassExpression791 + PgClassExpression792{{"PgClassExpression[792∈27] ➊
ᐸ__types__.”time”ᐳ"}}:::plan + Access745 --> PgClassExpression792 + PgClassExpression793{{"PgClassExpression[793∈27] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan + Access745 --> PgClassExpression793 + PgClassExpression794{{"PgClassExpression[794∈27] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan + Access745 --> PgClassExpression794 + Access795{{"Access[795∈27] ➊
ᐸ794.yearsᐳ"}}:::plan + PgClassExpression794 --> Access795 + Access796{{"Access[796∈27] ➊
ᐸ794.monthsᐳ"}}:::plan + PgClassExpression794 --> Access796 + Access797{{"Access[797∈27] ➊
ᐸ794.daysᐳ"}}:::plan + PgClassExpression794 --> Access797 + Access798{{"Access[798∈27] ➊
ᐸ794.hoursᐳ"}}:::plan + PgClassExpression794 --> Access798 + Access799{{"Access[799∈27] ➊
ᐸ794.minutesᐳ"}}:::plan + PgClassExpression794 --> Access799 + Access800{{"Access[800∈27] ➊
ᐸ794.secondsᐳ"}}:::plan + PgClassExpression794 --> Access800 + PgClassExpression801{{"PgClassExpression[801∈27] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan + Access745 --> PgClassExpression801 + PgClassExpression809{{"PgClassExpression[809∈27] ➊
ᐸ__types__.”money”ᐳ"}}:::plan + Access745 --> PgClassExpression809 + PgClassExpression810{{"PgClassExpression[810∈27] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + Access745 --> PgClassExpression810 + PgClassExpression810 --> PgFromExpression813 + First814{{"First[814∈27] ➊"}}:::plan + PgSelectRows815[["PgSelectRows[815∈27] ➊"]]:::plan + PgSelectRows815 --> First814 + PgSelect811 --> PgSelectRows815 + PgSelectSingle816{{"PgSelectSingle[816∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First814 --> PgSelectSingle816 + PgClassExpression817{{"PgClassExpression[817∈27] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle816 --> PgClassExpression817 + PgClassExpression818{{"PgClassExpression[818∈27] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle816 --> PgClassExpression818 + PgClassExpression819{{"PgClassExpression[819∈27] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle816 --> PgClassExpression819 + PgClassExpression820{{"PgClassExpression[820∈27] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle816 --> PgClassExpression820 + PgClassExpression821{{"PgClassExpression[821∈27] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle816 --> PgClassExpression821 + PgClassExpression822{{"PgClassExpression[822∈27] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle816 --> PgClassExpression822 + PgClassExpression823{{"PgClassExpression[823∈27] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle816 --> PgClassExpression823 + PgClassExpression824{{"PgClassExpression[824∈27] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + Access745 --> PgClassExpression824 + PgClassExpression824 --> PgFromExpression827 + First828{{"First[828∈27] ➊"}}:::plan + PgSelectRows829[["PgSelectRows[829∈27] ➊"]]:::plan + PgSelectRows829 --> First828 + PgSelect825 --> PgSelectRows829 + PgSelectSingle830{{"PgSelectSingle[830∈27] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First828 --> PgSelectSingle830 + PgClassExpression831{{"PgClassExpression[831∈27] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle830 --> PgClassExpression831 + PgClassExpression831 --> PgFromExpression834 + First835{{"First[835∈27] ➊"}}:::plan + PgSelectRows836[["PgSelectRows[836∈27] ➊"]]:::plan + PgSelectRows836 --> First835 + PgSelect832 --> PgSelectRows836 + PgSelectSingle837{{"PgSelectSingle[837∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First835 --> PgSelectSingle837 + PgClassExpression838{{"PgClassExpression[838∈27] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle837 --> PgClassExpression838 + PgClassExpression839{{"PgClassExpression[839∈27] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle837 --> PgClassExpression839 + PgClassExpression840{{"PgClassExpression[840∈27] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle837 --> PgClassExpression840 + PgClassExpression841{{"PgClassExpression[841∈27] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle837 --> PgClassExpression841 + PgClassExpression842{{"PgClassExpression[842∈27] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle837 --> PgClassExpression842 + PgClassExpression843{{"PgClassExpression[843∈27] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle837 --> PgClassExpression843 + PgClassExpression844{{"PgClassExpression[844∈27] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle837 --> PgClassExpression844 + PgClassExpression845{{"PgClassExpression[845∈27] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle830 --> PgClassExpression845 + PgClassExpression845 --> PgFromExpression848 + First849{{"First[849∈27] ➊"}}:::plan + PgSelectRows850[["PgSelectRows[850∈27] ➊"]]:::plan + PgSelectRows850 --> First849 + PgSelect846 --> PgSelectRows850 + PgSelectSingle851{{"PgSelectSingle[851∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First849 --> PgSelectSingle851 + PgClassExpression852{{"PgClassExpression[852∈27] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle851 --> PgClassExpression852 + PgClassExpression853{{"PgClassExpression[853∈27] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle851 --> PgClassExpression853 + PgClassExpression854{{"PgClassExpression[854∈27] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle851 --> PgClassExpression854 + PgClassExpression855{{"PgClassExpression[855∈27] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle851 --> PgClassExpression855 + PgClassExpression856{{"PgClassExpression[856∈27] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle851 --> PgClassExpression856 + PgClassExpression857{{"PgClassExpression[857∈27] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle851 --> PgClassExpression857 + PgClassExpression858{{"PgClassExpression[858∈27] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle851 --> PgClassExpression858 + PgClassExpression859{{"PgClassExpression[859∈27] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle830 --> PgClassExpression859 + PgClassExpression860{{"PgClassExpression[860∈27] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + Access745 --> PgClassExpression860 + PgClassExpression860 --> PgFromExpression863 + First864{{"First[864∈27] ➊"}}:::plan + PgSelectRows865[["PgSelectRows[865∈27] ➊"]]:::plan PgSelectRows865 --> First864 - PgSelect862 --> PgSelectRows865 - PgSelectSingle866{{"PgSelectSingle[866∈92] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + PgSelect861 --> PgSelectRows865 + PgSelectSingle866{{"PgSelectSingle[866∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan First864 --> PgSelectSingle866 - PgClassExpression874{{"PgClassExpression[874∈92] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle847 --> PgClassExpression874 - PgUpdateSingle734 --> PgClassExpression875 - First878{{"First[878∈92] ➊"}}:::plan - PgSelectRows879[["PgSelectRows[879∈92] ➊"]]:::plan - PgSelectRows879 --> First878 - PgSelect876 --> PgSelectRows879 - PgSelectSingle880{{"PgSelectSingle[880∈92] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First878 --> PgSelectSingle880 - PgUpdateSingle734 --> PgClassExpression888 - First891{{"First[891∈92] ➊"}}:::plan - PgSelectRows892[["PgSelectRows[892∈92] ➊"]]:::plan - PgSelectRows892 --> First891 - PgSelect889 --> PgSelectRows892 - PgSelectSingle893{{"PgSelectSingle[893∈92] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First891 --> PgSelectSingle893 - PgClassExpression923{{"PgClassExpression[923∈92] ➊
ᐸ__types__.”point”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression923 - PgClassExpression926{{"PgClassExpression[926∈92] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression926 - PgClassExpression929{{"PgClassExpression[929∈92] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression929 - PgClassExpression930{{"PgClassExpression[930∈92] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression930 - PgClassExpression931{{"PgClassExpression[931∈92] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression931 - PgClassExpression932{{"PgClassExpression[932∈92] ➊
ᐸ__types__.”regproc”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression932 - PgClassExpression933{{"PgClassExpression[933∈92] ➊
ᐸ__types__....procedure”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression933 - PgClassExpression934{{"PgClassExpression[934∈92] ➊
ᐸ__types__.”regoper”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression934 - PgClassExpression935{{"PgClassExpression[935∈92] ➊
ᐸ__types__.”regoperator”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression935 - PgClassExpression936{{"PgClassExpression[936∈92] ➊
ᐸ__types__.”regclass”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression936 - PgClassExpression937{{"PgClassExpression[937∈92] ➊
ᐸ__types__.”regtype”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression937 - PgClassExpression938{{"PgClassExpression[938∈92] ➊
ᐸ__types__.”regconfig”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression938 - PgClassExpression939{{"PgClassExpression[939∈92] ➊
ᐸ__types__....ictionary”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression939 - PgClassExpression940{{"PgClassExpression[940∈92] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression940 - PgClassExpression942{{"PgClassExpression[942∈92] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression942 - PgClassExpression944{{"PgClassExpression[944∈92] ➊
ᐸ__types__.”bytea”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression944 - PgClassExpression945{{"PgClassExpression[945∈92] ➊
ᐸ__types__.”bytea_array”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression945 - First950{{"First[950∈92] ➊"}}:::plan - PgSelectRows951[["PgSelectRows[951∈92] ➊"]]:::plan - PgSelectRows951 --> First950 - PgSelect948 --> PgSelectRows951 - PgSelectSingle952{{"PgSelectSingle[952∈92] ➊
ᐸpostᐳ"}}:::plan - First950 --> PgSelectSingle952 - First958{{"First[958∈92] ➊"}}:::plan - PgSelectRows959[["PgSelectRows[959∈92] ➊"]]:::plan - PgSelectRows959 --> First958 - PgSelect956 --> PgSelectRows959 - PgSelectSingle960{{"PgSelectSingle[960∈92] ➊
ᐸpostᐳ"}}:::plan - First958 --> PgSelectSingle960 - PgClassExpression963{{"PgClassExpression[963∈92] ➊
ᐸ__types__.”ltree”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression963 - PgClassExpression964{{"PgClassExpression[964∈92] ➊
ᐸ__types__.”ltree_array”ᐳ"}}:::plan - PgUpdateSingle734 --> PgClassExpression964 - __Item771[/"__Item[771∈93]
ᐸ770ᐳ"\]:::itemplan - PgClassExpression770 ==> __Item771 - __Item775[/"__Item[775∈94]
ᐸ774ᐳ"\]:::itemplan - PgClassExpression774 ==> __Item775 - Access779{{"Access[779∈95] ➊
ᐸ778.startᐳ"}}:::plan - PgClassExpression778 --> Access779 - Access782{{"Access[782∈95] ➊
ᐸ778.endᐳ"}}:::plan - PgClassExpression778 --> Access782 - __Item819[/"__Item[819∈104]
ᐸ818ᐳ"\]:::itemplan - PgClassExpression818 ==> __Item819 - PgClassExpression854{{"PgClassExpression[854∈106] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle853 --> PgClassExpression854 - PgClassExpression855{{"PgClassExpression[855∈106] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle853 --> PgClassExpression855 - PgClassExpression856{{"PgClassExpression[856∈106] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle853 --> PgClassExpression856 - PgClassExpression857{{"PgClassExpression[857∈106] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle853 --> PgClassExpression857 - PgClassExpression858{{"PgClassExpression[858∈106] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle853 --> PgClassExpression858 - PgClassExpression859{{"PgClassExpression[859∈106] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle853 --> PgClassExpression859 - PgClassExpression860{{"PgClassExpression[860∈106] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle853 --> PgClassExpression860 - PgClassExpression867{{"PgClassExpression[867∈107] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgClassExpression867{{"PgClassExpression[867∈27] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan PgSelectSingle866 --> PgClassExpression867 - PgClassExpression868{{"PgClassExpression[868∈107] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgClassExpression868{{"PgClassExpression[868∈27] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan PgSelectSingle866 --> PgClassExpression868 - PgClassExpression869{{"PgClassExpression[869∈107] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgClassExpression869{{"PgClassExpression[869∈27] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan PgSelectSingle866 --> PgClassExpression869 - PgClassExpression870{{"PgClassExpression[870∈107] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgClassExpression870{{"PgClassExpression[870∈27] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan PgSelectSingle866 --> PgClassExpression870 - PgClassExpression871{{"PgClassExpression[871∈107] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgClassExpression871{{"PgClassExpression[871∈27] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan PgSelectSingle866 --> PgClassExpression871 - PgClassExpression872{{"PgClassExpression[872∈107] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgClassExpression872{{"PgClassExpression[872∈27] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan PgSelectSingle866 --> PgClassExpression872 - PgClassExpression873{{"PgClassExpression[873∈107] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgClassExpression873{{"PgClassExpression[873∈27] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan PgSelectSingle866 --> PgClassExpression873 - PgClassExpression881{{"PgClassExpression[881∈108] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgClassExpression874{{"PgClassExpression[874∈27] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + Access745 --> PgClassExpression874 + PgClassExpression874 --> PgFromExpression877 + First878{{"First[878∈27] ➊"}}:::plan + PgSelectRows879[["PgSelectRows[879∈27] ➊"]]:::plan + PgSelectRows879 --> First878 + PgSelect875 --> PgSelectRows879 + PgSelectSingle880{{"PgSelectSingle[880∈27] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First878 --> PgSelectSingle880 + PgClassExpression881{{"PgClassExpression[881∈27] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan PgSelectSingle880 --> PgClassExpression881 - PgClassExpression882{{"PgClassExpression[882∈108] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle880 --> PgClassExpression882 - PgClassExpression883{{"PgClassExpression[883∈108] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle880 --> PgClassExpression883 - PgClassExpression884{{"PgClassExpression[884∈108] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle880 --> PgClassExpression884 - PgClassExpression885{{"PgClassExpression[885∈108] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle880 --> PgClassExpression885 - PgClassExpression886{{"PgClassExpression[886∈108] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle880 --> PgClassExpression886 - PgClassExpression887{{"PgClassExpression[887∈108] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle880 --> PgClassExpression887 - PgSelect895[["PgSelect[895∈109] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression894{{"PgClassExpression[894∈109] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object737 & PgClassExpression894 --> PgSelect895 - PgSelect910[["PgSelect[910∈109] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression909{{"PgClassExpression[909∈109] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object737 & PgClassExpression909 --> PgSelect910 - PgSelectSingle893 --> PgClassExpression894 - First899{{"First[899∈109] ➊"}}:::plan - PgSelectRows900[["PgSelectRows[900∈109] ➊"]]:::plan + PgClassExpression881 --> PgFromExpression884 + First885{{"First[885∈27] ➊"}}:::plan + PgSelectRows886[["PgSelectRows[886∈27] ➊"]]:::plan + PgSelectRows886 --> First885 + PgSelect882 --> PgSelectRows886 + PgSelectSingle887{{"PgSelectSingle[887∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First885 --> PgSelectSingle887 + PgClassExpression888{{"PgClassExpression[888∈27] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression888 + PgClassExpression889{{"PgClassExpression[889∈27] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression889 + PgClassExpression890{{"PgClassExpression[890∈27] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression890 + PgClassExpression891{{"PgClassExpression[891∈27] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression891 + PgClassExpression892{{"PgClassExpression[892∈27] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression892 + PgClassExpression893{{"PgClassExpression[893∈27] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression893 + PgClassExpression894{{"PgClassExpression[894∈27] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression894 + PgClassExpression895{{"PgClassExpression[895∈27] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle880 --> PgClassExpression895 + PgClassExpression895 --> PgFromExpression898 + First899{{"First[899∈27] ➊"}}:::plan + PgSelectRows900[["PgSelectRows[900∈27] ➊"]]:::plan PgSelectRows900 --> First899 - PgSelect895 --> PgSelectRows900 - PgSelectSingle901{{"PgSelectSingle[901∈109] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + PgSelect896 --> PgSelectRows900 + PgSelectSingle901{{"PgSelectSingle[901∈27] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan First899 --> PgSelectSingle901 - PgSelectSingle893 --> PgClassExpression909 - First912{{"First[912∈109] ➊"}}:::plan - PgSelectRows913[["PgSelectRows[913∈109] ➊"]]:::plan - PgSelectRows913 --> First912 - PgSelect910 --> PgSelectRows913 - PgSelectSingle914{{"PgSelectSingle[914∈109] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First912 --> PgSelectSingle914 - PgClassExpression922{{"PgClassExpression[922∈109] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle893 --> PgClassExpression922 - PgClassExpression902{{"PgClassExpression[902∈110] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgClassExpression902{{"PgClassExpression[902∈27] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan PgSelectSingle901 --> PgClassExpression902 - PgClassExpression903{{"PgClassExpression[903∈110] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgClassExpression903{{"PgClassExpression[903∈27] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan PgSelectSingle901 --> PgClassExpression903 - PgClassExpression904{{"PgClassExpression[904∈110] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgClassExpression904{{"PgClassExpression[904∈27] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan PgSelectSingle901 --> PgClassExpression904 - PgClassExpression905{{"PgClassExpression[905∈110] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgClassExpression905{{"PgClassExpression[905∈27] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan PgSelectSingle901 --> PgClassExpression905 - PgClassExpression906{{"PgClassExpression[906∈110] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgClassExpression906{{"PgClassExpression[906∈27] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan PgSelectSingle901 --> PgClassExpression906 - PgClassExpression907{{"PgClassExpression[907∈110] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgClassExpression907{{"PgClassExpression[907∈27] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan PgSelectSingle901 --> PgClassExpression907 - PgClassExpression908{{"PgClassExpression[908∈110] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgClassExpression908{{"PgClassExpression[908∈27] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan PgSelectSingle901 --> PgClassExpression908 - PgClassExpression915{{"PgClassExpression[915∈111] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle914 --> PgClassExpression915 - PgClassExpression916{{"PgClassExpression[916∈111] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle914 --> PgClassExpression916 - PgClassExpression917{{"PgClassExpression[917∈111] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle914 --> PgClassExpression917 - PgClassExpression918{{"PgClassExpression[918∈111] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle914 --> PgClassExpression918 - PgClassExpression919{{"PgClassExpression[919∈111] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle914 --> PgClassExpression919 - PgClassExpression920{{"PgClassExpression[920∈111] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle914 --> PgClassExpression920 - PgClassExpression921{{"PgClassExpression[921∈111] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle914 --> PgClassExpression921 - __Item941[/"__Item[941∈113]
ᐸ940ᐳ"\]:::itemplan - PgClassExpression940 ==> __Item941 - __Item943[/"__Item[943∈114]
ᐸ942ᐳ"\]:::itemplan - PgClassExpression942 ==> __Item943 - __Item946[/"__Item[946∈115]
ᐸ945ᐳ"\]:::itemplan - PgClassExpression945 ==> __Item946 - PgClassExpression953{{"PgClassExpression[953∈116] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle952 --> PgClassExpression953 - PgClassExpression954{{"PgClassExpression[954∈116] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle952 --> PgClassExpression954 - PgClassExpression961{{"PgClassExpression[961∈117] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle960 --> PgClassExpression961 - PgClassExpression962{{"PgClassExpression[962∈117] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle960 --> PgClassExpression962 - __Item965[/"__Item[965∈118]
ᐸ964ᐳ"\]:::itemplan - PgClassExpression964 ==> __Item965 - PgInsertSingle1038[["PgInsertSingle[1038∈119] ➊
ᐸtypes(smallint,bigint,numeric,decimal,boolean,varchar,enum,enum_array,domain,domain2,text_array,json,jsonb,numrange,daterange,an_int_range,timestamp,timestamptz,date,time,timetz,interval,interval_array,money,compound_type,nested_compound_type,point,regproc,regprocedure,regoper,regoperator,regclass,regtype,regconfig,regdictionary,ltree,ltree_array)ᐳ"]]:::sideeffectplan - Object1041{{"Object[1041∈119] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Object1041 & Constant1267 & Constant1268 & Constant1268 & Constant1268 & Constant1269 & Constant1268 & Constant1270 & Constant1316 & Constant1267 & Constant1267 & Constant1317 & Constant1312 & Constant1313 & Constant1346 & Constant1347 & Constant1348 & Constant1280 & Constant1281 & Constant1282 & Constant1283 & Constant1283 & Constant1314 & Constant1324 & Constant1284 & Constant1325 & Constant1326 & Constant1327 & Constant1292 & Constant1293 & Constant1294 & Constant1295 & Constant1296 & Constant1297 & Constant1298 & Constant1299 & Constant1309 & Constant1332 --> PgInsertSingle1038 - Access1039{{"Access[1039∈119] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access1040{{"Access[1040∈119] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access1039 & Access1040 --> Object1041 - __Value2 --> Access1039 - __Value2 --> Access1040 - Object1042{{"Object[1042∈119] ➊
ᐸ{result}ᐳ"}}:::plan - PgInsertSingle1038 --> Object1042 - PgSelect1128[["PgSelect[1128∈121] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1127{{"PgClassExpression[1127∈121] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object1041 & PgClassExpression1127 --> PgSelect1128 - PgSelect1143[["PgSelect[1143∈121] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression1142{{"PgClassExpression[1142∈121] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object1041 & PgClassExpression1142 --> PgSelect1143 - PgSelect1149[["PgSelect[1149∈121] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1148{{"PgClassExpression[1148∈121] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object1041 & PgClassExpression1148 --> PgSelect1149 - PgSelect1162[["PgSelect[1162∈121] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1161{{"PgClassExpression[1161∈121] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object1041 & PgClassExpression1161 --> PgSelect1162 - PgSelect1176[["PgSelect[1176∈121] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1175{{"PgClassExpression[1175∈121] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object1041 & PgClassExpression1175 --> PgSelect1176 - PgSelect1189[["PgSelect[1189∈121] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression1188{{"PgClassExpression[1188∈121] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object1041 & PgClassExpression1188 --> PgSelect1189 - PgSelect1248[["PgSelect[1248∈121] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression1063{{"PgClassExpression[1063∈121] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan - Object1041 & PgClassExpression1063 --> PgSelect1248 - PgSelect1256[["PgSelect[1256∈121] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression1062{{"PgClassExpression[1062∈121] ➊
ᐸ__types__.”id”ᐳ"}}:::plan - Object1041 & PgClassExpression1062 --> PgSelect1256 - PgInsertSingle1038 --> PgClassExpression1062 - PgInsertSingle1038 --> PgClassExpression1063 - PgClassExpression1064{{"PgClassExpression[1064∈121] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1064 - PgClassExpression1065{{"PgClassExpression[1065∈121] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1065 - PgClassExpression1066{{"PgClassExpression[1066∈121] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1066 - PgClassExpression1067{{"PgClassExpression[1067∈121] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1067 - PgClassExpression1068{{"PgClassExpression[1068∈121] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1068 - PgClassExpression1069{{"PgClassExpression[1069∈121] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1069 - PgClassExpression1070{{"PgClassExpression[1070∈121] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1070 - PgClassExpression1072{{"PgClassExpression[1072∈121] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1072 - PgClassExpression1073{{"PgClassExpression[1073∈121] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1073 - PgClassExpression1074{{"PgClassExpression[1074∈121] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1074 - PgClassExpression1076{{"PgClassExpression[1076∈121] ➊
ᐸ__types__.”json”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1076 - PgClassExpression1077{{"PgClassExpression[1077∈121] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1077 - PgClassExpression1078{{"PgClassExpression[1078∈121] ➊
ᐸ__types__....ble_range”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1078 - PgClassExpression1085{{"PgClassExpression[1085∈121] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1085 - Access1086{{"Access[1086∈121] ➊
ᐸ1085.startᐳ"}}:::plan - PgClassExpression1085 --> Access1086 - Access1089{{"Access[1089∈121] ➊
ᐸ1085.endᐳ"}}:::plan - PgClassExpression1085 --> Access1089 - PgClassExpression1092{{"PgClassExpression[1092∈121] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1092 - Access1093{{"Access[1093∈121] ➊
ᐸ1092.startᐳ"}}:::plan - PgClassExpression1092 --> Access1093 - Access1096{{"Access[1096∈121] ➊
ᐸ1092.endᐳ"}}:::plan - PgClassExpression1092 --> Access1096 - PgClassExpression1099{{"PgClassExpression[1099∈121] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1099 - Access1100{{"Access[1100∈121] ➊
ᐸ1099.startᐳ"}}:::plan - PgClassExpression1099 --> Access1100 - Access1103{{"Access[1103∈121] ➊
ᐸ1099.endᐳ"}}:::plan - PgClassExpression1099 --> Access1103 - PgClassExpression1106{{"PgClassExpression[1106∈121] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1106 - PgClassExpression1107{{"PgClassExpression[1107∈121] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1107 - PgClassExpression1108{{"PgClassExpression[1108∈121] ➊
ᐸ__types__.”date”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1108 - PgClassExpression1109{{"PgClassExpression[1109∈121] ➊
ᐸ__types__.”time”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1109 - PgClassExpression1110{{"PgClassExpression[1110∈121] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1110 - PgClassExpression1111{{"PgClassExpression[1111∈121] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1111 - PgClassExpression1118{{"PgClassExpression[1118∈121] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1118 - PgClassExpression1126{{"PgClassExpression[1126∈121] ➊
ᐸ__types__.”money”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1126 - PgInsertSingle1038 --> PgClassExpression1127 - First1132{{"First[1132∈121] ➊"}}:::plan - PgSelectRows1133[["PgSelectRows[1133∈121] ➊"]]:::plan - PgSelectRows1133 --> First1132 - PgSelect1128 --> PgSelectRows1133 - PgSelectSingle1134{{"PgSelectSingle[1134∈121] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1132 --> PgSelectSingle1134 - PgClassExpression1135{{"PgClassExpression[1135∈121] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1134 --> PgClassExpression1135 - PgClassExpression1136{{"PgClassExpression[1136∈121] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1134 --> PgClassExpression1136 - PgClassExpression1137{{"PgClassExpression[1137∈121] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1134 --> PgClassExpression1137 - PgClassExpression1138{{"PgClassExpression[1138∈121] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1134 --> PgClassExpression1138 - PgClassExpression1139{{"PgClassExpression[1139∈121] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1134 --> PgClassExpression1139 - PgClassExpression1140{{"PgClassExpression[1140∈121] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1134 --> PgClassExpression1140 - PgClassExpression1141{{"PgClassExpression[1141∈121] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1134 --> PgClassExpression1141 - PgInsertSingle1038 --> PgClassExpression1142 - First1145{{"First[1145∈121] ➊"}}:::plan - PgSelectRows1146[["PgSelectRows[1146∈121] ➊"]]:::plan - PgSelectRows1146 --> First1145 - PgSelect1143 --> PgSelectRows1146 - PgSelectSingle1147{{"PgSelectSingle[1147∈121] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First1145 --> PgSelectSingle1147 - PgSelectSingle1147 --> PgClassExpression1148 - First1151{{"First[1151∈121] ➊"}}:::plan - PgSelectRows1152[["PgSelectRows[1152∈121] ➊"]]:::plan - PgSelectRows1152 --> First1151 - PgSelect1149 --> PgSelectRows1152 - PgSelectSingle1153{{"PgSelectSingle[1153∈121] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1151 --> PgSelectSingle1153 - PgSelectSingle1147 --> PgClassExpression1161 - First1164{{"First[1164∈121] ➊"}}:::plan - PgSelectRows1165[["PgSelectRows[1165∈121] ➊"]]:::plan + PgClassExpression909{{"PgClassExpression[909∈27] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle880 --> PgClassExpression909 + PgClassExpression910{{"PgClassExpression[910∈27] ➊
ᐸ__types__.”point”ᐳ"}}:::plan + Access745 --> PgClassExpression910 + Access911{{"Access[911∈27] ➊
ᐸ910.xᐳ"}}:::plan + PgClassExpression910 --> Access911 + Access912{{"Access[912∈27] ➊
ᐸ910.yᐳ"}}:::plan + PgClassExpression910 --> Access912 + PgClassExpression913{{"PgClassExpression[913∈27] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan + Access745 --> PgClassExpression913 + Access914{{"Access[914∈27] ➊
ᐸ913.xᐳ"}}:::plan + PgClassExpression913 --> Access914 + Access915{{"Access[915∈27] ➊
ᐸ913.yᐳ"}}:::plan + PgClassExpression913 --> Access915 + PgClassExpression916{{"PgClassExpression[916∈27] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan + Access745 --> PgClassExpression916 + PgClassExpression917{{"PgClassExpression[917∈27] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan + Access745 --> PgClassExpression917 + PgClassExpression918{{"PgClassExpression[918∈27] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan + Access745 --> PgClassExpression918 + PgClassExpression919{{"PgClassExpression[919∈27] ➊
ᐸ__types__.”regproc”ᐳ"}}:::plan + Access745 --> PgClassExpression919 + PgClassExpression920{{"PgClassExpression[920∈27] ➊
ᐸ__types__....procedure”ᐳ"}}:::plan + Access745 --> PgClassExpression920 + PgClassExpression921{{"PgClassExpression[921∈27] ➊
ᐸ__types__.”regoper”ᐳ"}}:::plan + Access745 --> PgClassExpression921 + PgClassExpression922{{"PgClassExpression[922∈27] ➊
ᐸ__types__.”regoperator”ᐳ"}}:::plan + Access745 --> PgClassExpression922 + PgClassExpression923{{"PgClassExpression[923∈27] ➊
ᐸ__types__.”regclass”ᐳ"}}:::plan + Access745 --> PgClassExpression923 + PgClassExpression924{{"PgClassExpression[924∈27] ➊
ᐸ__types__.”regtype”ᐳ"}}:::plan + Access745 --> PgClassExpression924 + PgClassExpression925{{"PgClassExpression[925∈27] ➊
ᐸ__types__.”regconfig”ᐳ"}}:::plan + Access745 --> PgClassExpression925 + PgClassExpression926{{"PgClassExpression[926∈27] ➊
ᐸ__types__....ictionary”ᐳ"}}:::plan + Access745 --> PgClassExpression926 + PgClassExpression927{{"PgClassExpression[927∈27] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + Access745 --> PgClassExpression927 + PgClassExpression929{{"PgClassExpression[929∈27] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + Access745 --> PgClassExpression929 + PgClassExpression931{{"PgClassExpression[931∈27] ➊
ᐸ__types__.”bytea”ᐳ"}}:::plan + Access745 --> PgClassExpression931 + PgClassExpression932{{"PgClassExpression[932∈27] ➊
ᐸ__types__.”bytea_array”ᐳ"}}:::plan + Access745 --> PgClassExpression932 + First937{{"First[937∈27] ➊"}}:::plan + PgSelectRows938[["PgSelectRows[938∈27] ➊"]]:::plan + PgSelectRows938 --> First937 + PgSelect935 --> PgSelectRows938 + PgSelectSingle939{{"PgSelectSingle[939∈27] ➊
ᐸpostᐳ"}}:::plan + First937 --> PgSelectSingle939 + PgClassExpression940{{"PgClassExpression[940∈27] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle939 --> PgClassExpression940 + PgClassExpression941{{"PgClassExpression[941∈27] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle939 --> PgClassExpression941 + First945{{"First[945∈27] ➊"}}:::plan + PgSelectRows946[["PgSelectRows[946∈27] ➊"]]:::plan + PgSelectRows946 --> First945 + PgSelect943 --> PgSelectRows946 + PgSelectSingle947{{"PgSelectSingle[947∈27] ➊
ᐸpostᐳ"}}:::plan + First945 --> PgSelectSingle947 + PgClassExpression948{{"PgClassExpression[948∈27] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle947 --> PgClassExpression948 + PgClassExpression949{{"PgClassExpression[949∈27] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle947 --> PgClassExpression949 + PgClassExpression950{{"PgClassExpression[950∈27] ➊
ᐸ__types__.”ltree”ᐳ"}}:::plan + Access745 --> PgClassExpression950 + PgClassExpression951{{"PgClassExpression[951∈27] ➊
ᐸ__types__.”ltree_array”ᐳ"}}:::plan + Access745 --> PgClassExpression951 + __Item754[/"__Item[754∈28]
ᐸ753ᐳ"\]:::itemplan + PgClassExpression753 ==> __Item754 + __Item758[/"__Item[758∈29]
ᐸ757ᐳ"\]:::itemplan + PgClassExpression757 ==> __Item758 + __Item802[/"__Item[802∈30]
ᐸ801ᐳ"\]:::itemplan + PgClassExpression801 ==> __Item802 + __Item928[/"__Item[928∈31]
ᐸ927ᐳ"\]:::itemplan + PgClassExpression927 ==> __Item928 + __Item930[/"__Item[930∈32]
ᐸ929ᐳ"\]:::itemplan + PgClassExpression929 ==> __Item930 + __Item933[/"__Item[933∈33]
ᐸ932ᐳ"\]:::itemplan + PgClassExpression932 ==> __Item933 + __Item952[/"__Item[952∈34]
ᐸ951ᐳ"\]:::itemplan + PgClassExpression951 ==> __Item952 + PgInsertSingle1017[["PgInsertSingle[1017∈35] ➊
ᐸtypes()ᐳ"]]:::sideeffectplan + Object1020{{"Object[1020∈35] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object1020 & ApplyInput1021 --> PgInsertSingle1017 + Access1018{{"Access[1018∈35] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access1019{{"Access[1019∈35] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access1018 & Access1019 --> Object1020 + PgSelect1090[["PgSelect[1090∈35] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression1092{{"PgFromExpression[1092∈35] ➊"}}:::plan + Object1020 & PgFromExpression1092 --> PgSelect1090 + PgSelect1104[["PgSelect[1104∈35] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression1106{{"PgFromExpression[1106∈35] ➊"}}:::plan + Object1020 & PgFromExpression1106 --> PgSelect1104 + PgSelect1111[["PgSelect[1111∈35] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression1113{{"PgFromExpression[1113∈35] ➊"}}:::plan + Object1020 & PgFromExpression1113 --> PgSelect1111 + PgSelect1125[["PgSelect[1125∈35] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression1127{{"PgFromExpression[1127∈35] ➊"}}:::plan + Object1020 & PgFromExpression1127 --> PgSelect1125 + PgSelect1140[["PgSelect[1140∈35] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression1142{{"PgFromExpression[1142∈35] ➊"}}:::plan + Object1020 & PgFromExpression1142 --> PgSelect1140 + PgSelect1154[["PgSelect[1154∈35] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression1156{{"PgFromExpression[1156∈35] ➊"}}:::plan + Object1020 & PgFromExpression1156 --> PgSelect1154 + PgSelect1161[["PgSelect[1161∈35] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression1163{{"PgFromExpression[1163∈35] ➊"}}:::plan + Object1020 & PgFromExpression1163 --> PgSelect1161 + PgSelect1175[["PgSelect[1175∈35] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression1177{{"PgFromExpression[1177∈35] ➊"}}:::plan + Object1020 & PgFromExpression1177 --> PgSelect1175 + PgSelect1214[["PgSelect[1214∈35] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression1025{{"PgClassExpression[1025∈35] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan + Object1020 & PgClassExpression1025 --> PgSelect1214 + PgSelect1222[["PgSelect[1222∈35] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression1023{{"PgClassExpression[1023∈35] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + Object1020 & PgClassExpression1023 --> PgSelect1222 + __Value2 --> Access1018 + __Value2 --> Access1019 + Object1022{{"Object[1022∈35] ➊
ᐸ{result}ᐳ"}}:::plan + PgInsertSingle1017 --> Object1022 + Access1024{{"Access[1024∈35] ➊
ᐸ1017.tᐳ"}}:::plan + Access1024 --> PgClassExpression1023 + PgInsertSingle1017 --> Access1024 + Access1024 --> PgClassExpression1025 + PgClassExpression1026{{"PgClassExpression[1026∈35] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan + Access1024 --> PgClassExpression1026 + PgClassExpression1027{{"PgClassExpression[1027∈35] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan + Access1024 --> PgClassExpression1027 + PgClassExpression1028{{"PgClassExpression[1028∈35] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan + Access1024 --> PgClassExpression1028 + PgClassExpression1029{{"PgClassExpression[1029∈35] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan + Access1024 --> PgClassExpression1029 + PgClassExpression1030{{"PgClassExpression[1030∈35] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan + Access1024 --> PgClassExpression1030 + PgClassExpression1031{{"PgClassExpression[1031∈35] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan + Access1024 --> PgClassExpression1031 + PgClassExpression1032{{"PgClassExpression[1032∈35] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan + Access1024 --> PgClassExpression1032 + PgClassExpression1034{{"PgClassExpression[1034∈35] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan + Access1024 --> PgClassExpression1034 + PgClassExpression1035{{"PgClassExpression[1035∈35] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan + Access1024 --> PgClassExpression1035 + PgClassExpression1036{{"PgClassExpression[1036∈35] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan + Access1024 --> PgClassExpression1036 + PgClassExpression1038{{"PgClassExpression[1038∈35] ➊
ᐸ__types__.”json”ᐳ"}}:::plan + Access1024 --> PgClassExpression1038 + PgClassExpression1039{{"PgClassExpression[1039∈35] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan + Access1024 --> PgClassExpression1039 + PgClassExpression1040{{"PgClassExpression[1040∈35] ➊
ᐸ__types__....ble_range”ᐳ"}}:::plan + Access1024 --> PgClassExpression1040 + Access1041{{"Access[1041∈35] ➊
ᐸ1040.startᐳ"}}:::plan + PgClassExpression1040 --> Access1041 + Access1042{{"Access[1042∈35] ➊
ᐸ1040.start.valueᐳ"}}:::plan + PgClassExpression1040 --> Access1042 + Access1043{{"Access[1043∈35] ➊
ᐸ1040.start.inclusiveᐳ"}}:::plan + PgClassExpression1040 --> Access1043 + Access1044{{"Access[1044∈35] ➊
ᐸ1040.endᐳ"}}:::plan + PgClassExpression1040 --> Access1044 + Access1045{{"Access[1045∈35] ➊
ᐸ1040.end.valueᐳ"}}:::plan + PgClassExpression1040 --> Access1045 + Access1046{{"Access[1046∈35] ➊
ᐸ1040.end.inclusiveᐳ"}}:::plan + PgClassExpression1040 --> Access1046 + PgClassExpression1047{{"PgClassExpression[1047∈35] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan + Access1024 --> PgClassExpression1047 + Access1048{{"Access[1048∈35] ➊
ᐸ1047.startᐳ"}}:::plan + PgClassExpression1047 --> Access1048 + Access1049{{"Access[1049∈35] ➊
ᐸ1047.start.valueᐳ"}}:::plan + PgClassExpression1047 --> Access1049 + Access1050{{"Access[1050∈35] ➊
ᐸ1047.start.inclusiveᐳ"}}:::plan + PgClassExpression1047 --> Access1050 + Access1051{{"Access[1051∈35] ➊
ᐸ1047.endᐳ"}}:::plan + PgClassExpression1047 --> Access1051 + Access1052{{"Access[1052∈35] ➊
ᐸ1047.end.valueᐳ"}}:::plan + PgClassExpression1047 --> Access1052 + Access1053{{"Access[1053∈35] ➊
ᐸ1047.end.inclusiveᐳ"}}:::plan + PgClassExpression1047 --> Access1053 + PgClassExpression1054{{"PgClassExpression[1054∈35] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan + Access1024 --> PgClassExpression1054 + Access1055{{"Access[1055∈35] ➊
ᐸ1054.startᐳ"}}:::plan + PgClassExpression1054 --> Access1055 + Access1056{{"Access[1056∈35] ➊
ᐸ1054.start.valueᐳ"}}:::plan + PgClassExpression1054 --> Access1056 + Access1057{{"Access[1057∈35] ➊
ᐸ1054.start.inclusiveᐳ"}}:::plan + PgClassExpression1054 --> Access1057 + Access1058{{"Access[1058∈35] ➊
ᐸ1054.endᐳ"}}:::plan + PgClassExpression1054 --> Access1058 + Access1059{{"Access[1059∈35] ➊
ᐸ1054.end.valueᐳ"}}:::plan + PgClassExpression1054 --> Access1059 + Access1060{{"Access[1060∈35] ➊
ᐸ1054.end.inclusiveᐳ"}}:::plan + PgClassExpression1054 --> Access1060 + PgClassExpression1061{{"PgClassExpression[1061∈35] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan + Access1024 --> PgClassExpression1061 + Access1062{{"Access[1062∈35] ➊
ᐸ1061.startᐳ"}}:::plan + PgClassExpression1061 --> Access1062 + Access1063{{"Access[1063∈35] ➊
ᐸ1061.start.valueᐳ"}}:::plan + PgClassExpression1061 --> Access1063 + Access1064{{"Access[1064∈35] ➊
ᐸ1061.start.inclusiveᐳ"}}:::plan + PgClassExpression1061 --> Access1064 + Access1065{{"Access[1065∈35] ➊
ᐸ1061.endᐳ"}}:::plan + PgClassExpression1061 --> Access1065 + Access1066{{"Access[1066∈35] ➊
ᐸ1061.end.valueᐳ"}}:::plan + PgClassExpression1061 --> Access1066 + Access1067{{"Access[1067∈35] ➊
ᐸ1061.end.inclusiveᐳ"}}:::plan + PgClassExpression1061 --> Access1067 + PgClassExpression1068{{"PgClassExpression[1068∈35] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan + Access1024 --> PgClassExpression1068 + PgClassExpression1069{{"PgClassExpression[1069∈35] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan + Access1024 --> PgClassExpression1069 + PgClassExpression1070{{"PgClassExpression[1070∈35] ➊
ᐸ__types__.”date”ᐳ"}}:::plan + Access1024 --> PgClassExpression1070 + PgClassExpression1071{{"PgClassExpression[1071∈35] ➊
ᐸ__types__.”time”ᐳ"}}:::plan + Access1024 --> PgClassExpression1071 + PgClassExpression1072{{"PgClassExpression[1072∈35] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan + Access1024 --> PgClassExpression1072 + PgClassExpression1073{{"PgClassExpression[1073∈35] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan + Access1024 --> PgClassExpression1073 + Access1074{{"Access[1074∈35] ➊
ᐸ1073.yearsᐳ"}}:::plan + PgClassExpression1073 --> Access1074 + Access1075{{"Access[1075∈35] ➊
ᐸ1073.monthsᐳ"}}:::plan + PgClassExpression1073 --> Access1075 + Access1076{{"Access[1076∈35] ➊
ᐸ1073.daysᐳ"}}:::plan + PgClassExpression1073 --> Access1076 + Access1077{{"Access[1077∈35] ➊
ᐸ1073.hoursᐳ"}}:::plan + PgClassExpression1073 --> Access1077 + Access1078{{"Access[1078∈35] ➊
ᐸ1073.minutesᐳ"}}:::plan + PgClassExpression1073 --> Access1078 + Access1079{{"Access[1079∈35] ➊
ᐸ1073.secondsᐳ"}}:::plan + PgClassExpression1073 --> Access1079 + PgClassExpression1080{{"PgClassExpression[1080∈35] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan + Access1024 --> PgClassExpression1080 + PgClassExpression1088{{"PgClassExpression[1088∈35] ➊
ᐸ__types__.”money”ᐳ"}}:::plan + Access1024 --> PgClassExpression1088 + PgClassExpression1089{{"PgClassExpression[1089∈35] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + Access1024 --> PgClassExpression1089 + PgClassExpression1089 --> PgFromExpression1092 + First1093{{"First[1093∈35] ➊"}}:::plan + PgSelectRows1094[["PgSelectRows[1094∈35] ➊"]]:::plan + PgSelectRows1094 --> First1093 + PgSelect1090 --> PgSelectRows1094 + PgSelectSingle1095{{"PgSelectSingle[1095∈35] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1093 --> PgSelectSingle1095 + PgClassExpression1096{{"PgClassExpression[1096∈35] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1095 --> PgClassExpression1096 + PgClassExpression1097{{"PgClassExpression[1097∈35] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1095 --> PgClassExpression1097 + PgClassExpression1098{{"PgClassExpression[1098∈35] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1095 --> PgClassExpression1098 + PgClassExpression1099{{"PgClassExpression[1099∈35] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1095 --> PgClassExpression1099 + PgClassExpression1100{{"PgClassExpression[1100∈35] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1095 --> PgClassExpression1100 + PgClassExpression1101{{"PgClassExpression[1101∈35] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1095 --> PgClassExpression1101 + PgClassExpression1102{{"PgClassExpression[1102∈35] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1095 --> PgClassExpression1102 + PgClassExpression1103{{"PgClassExpression[1103∈35] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + Access1024 --> PgClassExpression1103 + PgClassExpression1103 --> PgFromExpression1106 + First1107{{"First[1107∈35] ➊"}}:::plan + PgSelectRows1108[["PgSelectRows[1108∈35] ➊"]]:::plan + PgSelectRows1108 --> First1107 + PgSelect1104 --> PgSelectRows1108 + PgSelectSingle1109{{"PgSelectSingle[1109∈35] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First1107 --> PgSelectSingle1109 + PgClassExpression1110{{"PgClassExpression[1110∈35] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle1109 --> PgClassExpression1110 + PgClassExpression1110 --> PgFromExpression1113 + First1114{{"First[1114∈35] ➊"}}:::plan + PgSelectRows1115[["PgSelectRows[1115∈35] ➊"]]:::plan + PgSelectRows1115 --> First1114 + PgSelect1111 --> PgSelectRows1115 + PgSelectSingle1116{{"PgSelectSingle[1116∈35] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1114 --> PgSelectSingle1116 + PgClassExpression1117{{"PgClassExpression[1117∈35] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1116 --> PgClassExpression1117 + PgClassExpression1118{{"PgClassExpression[1118∈35] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1116 --> PgClassExpression1118 + PgClassExpression1119{{"PgClassExpression[1119∈35] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1116 --> PgClassExpression1119 + PgClassExpression1120{{"PgClassExpression[1120∈35] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1116 --> PgClassExpression1120 + PgClassExpression1121{{"PgClassExpression[1121∈35] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1116 --> PgClassExpression1121 + PgClassExpression1122{{"PgClassExpression[1122∈35] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1116 --> PgClassExpression1122 + PgClassExpression1123{{"PgClassExpression[1123∈35] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1116 --> PgClassExpression1123 + PgClassExpression1124{{"PgClassExpression[1124∈35] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle1109 --> PgClassExpression1124 + PgClassExpression1124 --> PgFromExpression1127 + First1128{{"First[1128∈35] ➊"}}:::plan + PgSelectRows1129[["PgSelectRows[1129∈35] ➊"]]:::plan + PgSelectRows1129 --> First1128 + PgSelect1125 --> PgSelectRows1129 + PgSelectSingle1130{{"PgSelectSingle[1130∈35] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1128 --> PgSelectSingle1130 + PgClassExpression1131{{"PgClassExpression[1131∈35] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1130 --> PgClassExpression1131 + PgClassExpression1132{{"PgClassExpression[1132∈35] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1130 --> PgClassExpression1132 + PgClassExpression1133{{"PgClassExpression[1133∈35] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1130 --> PgClassExpression1133 + PgClassExpression1134{{"PgClassExpression[1134∈35] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1130 --> PgClassExpression1134 + PgClassExpression1135{{"PgClassExpression[1135∈35] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1130 --> PgClassExpression1135 + PgClassExpression1136{{"PgClassExpression[1136∈35] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1130 --> PgClassExpression1136 + PgClassExpression1137{{"PgClassExpression[1137∈35] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1130 --> PgClassExpression1137 + PgClassExpression1138{{"PgClassExpression[1138∈35] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle1109 --> PgClassExpression1138 + PgClassExpression1139{{"PgClassExpression[1139∈35] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + Access1024 --> PgClassExpression1139 + PgClassExpression1139 --> PgFromExpression1142 + First1143{{"First[1143∈35] ➊"}}:::plan + PgSelectRows1144[["PgSelectRows[1144∈35] ➊"]]:::plan + PgSelectRows1144 --> First1143 + PgSelect1140 --> PgSelectRows1144 + PgSelectSingle1145{{"PgSelectSingle[1145∈35] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1143 --> PgSelectSingle1145 + PgClassExpression1146{{"PgClassExpression[1146∈35] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1145 --> PgClassExpression1146 + PgClassExpression1147{{"PgClassExpression[1147∈35] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1145 --> PgClassExpression1147 + PgClassExpression1148{{"PgClassExpression[1148∈35] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1145 --> PgClassExpression1148 + PgClassExpression1149{{"PgClassExpression[1149∈35] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1145 --> PgClassExpression1149 + PgClassExpression1150{{"PgClassExpression[1150∈35] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1145 --> PgClassExpression1150 + PgClassExpression1151{{"PgClassExpression[1151∈35] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1145 --> PgClassExpression1151 + PgClassExpression1152{{"PgClassExpression[1152∈35] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1145 --> PgClassExpression1152 + PgClassExpression1153{{"PgClassExpression[1153∈35] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + Access1024 --> PgClassExpression1153 + PgClassExpression1153 --> PgFromExpression1156 + First1157{{"First[1157∈35] ➊"}}:::plan + PgSelectRows1158[["PgSelectRows[1158∈35] ➊"]]:::plan + PgSelectRows1158 --> First1157 + PgSelect1154 --> PgSelectRows1158 + PgSelectSingle1159{{"PgSelectSingle[1159∈35] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First1157 --> PgSelectSingle1159 + PgClassExpression1160{{"PgClassExpression[1160∈35] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle1159 --> PgClassExpression1160 + PgClassExpression1160 --> PgFromExpression1163 + First1164{{"First[1164∈35] ➊"}}:::plan + PgSelectRows1165[["PgSelectRows[1165∈35] ➊"]]:::plan PgSelectRows1165 --> First1164 - PgSelect1162 --> PgSelectRows1165 - PgSelectSingle1166{{"PgSelectSingle[1166∈121] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + PgSelect1161 --> PgSelectRows1165 + PgSelectSingle1166{{"PgSelectSingle[1166∈35] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan First1164 --> PgSelectSingle1166 - PgClassExpression1174{{"PgClassExpression[1174∈121] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1174 - PgInsertSingle1038 --> PgClassExpression1175 - First1178{{"First[1178∈121] ➊"}}:::plan - PgSelectRows1179[["PgSelectRows[1179∈121] ➊"]]:::plan - PgSelectRows1179 --> First1178 - PgSelect1176 --> PgSelectRows1179 - PgSelectSingle1180{{"PgSelectSingle[1180∈121] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1178 --> PgSelectSingle1180 - PgInsertSingle1038 --> PgClassExpression1188 - First1191{{"First[1191∈121] ➊"}}:::plan - PgSelectRows1192[["PgSelectRows[1192∈121] ➊"]]:::plan - PgSelectRows1192 --> First1191 - PgSelect1189 --> PgSelectRows1192 - PgSelectSingle1193{{"PgSelectSingle[1193∈121] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First1191 --> PgSelectSingle1193 - PgClassExpression1223{{"PgClassExpression[1223∈121] ➊
ᐸ__types__.”point”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1223 - PgClassExpression1226{{"PgClassExpression[1226∈121] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1226 - PgClassExpression1229{{"PgClassExpression[1229∈121] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1229 - PgClassExpression1230{{"PgClassExpression[1230∈121] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1230 - PgClassExpression1231{{"PgClassExpression[1231∈121] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1231 - PgClassExpression1232{{"PgClassExpression[1232∈121] ➊
ᐸ__types__.”regproc”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1232 - PgClassExpression1233{{"PgClassExpression[1233∈121] ➊
ᐸ__types__....procedure”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1233 - PgClassExpression1234{{"PgClassExpression[1234∈121] ➊
ᐸ__types__.”regoper”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1234 - PgClassExpression1235{{"PgClassExpression[1235∈121] ➊
ᐸ__types__.”regoperator”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1235 - PgClassExpression1236{{"PgClassExpression[1236∈121] ➊
ᐸ__types__.”regclass”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1236 - PgClassExpression1237{{"PgClassExpression[1237∈121] ➊
ᐸ__types__.”regtype”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1237 - PgClassExpression1238{{"PgClassExpression[1238∈121] ➊
ᐸ__types__.”regconfig”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1238 - PgClassExpression1239{{"PgClassExpression[1239∈121] ➊
ᐸ__types__....ictionary”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1239 - PgClassExpression1240{{"PgClassExpression[1240∈121] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1240 - PgClassExpression1242{{"PgClassExpression[1242∈121] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1242 - PgClassExpression1244{{"PgClassExpression[1244∈121] ➊
ᐸ__types__.”bytea”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1244 - PgClassExpression1245{{"PgClassExpression[1245∈121] ➊
ᐸ__types__.”bytea_array”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1245 - First1250{{"First[1250∈121] ➊"}}:::plan - PgSelectRows1251[["PgSelectRows[1251∈121] ➊"]]:::plan - PgSelectRows1251 --> First1250 - PgSelect1248 --> PgSelectRows1251 - PgSelectSingle1252{{"PgSelectSingle[1252∈121] ➊
ᐸpostᐳ"}}:::plan - First1250 --> PgSelectSingle1252 - First1258{{"First[1258∈121] ➊"}}:::plan - PgSelectRows1259[["PgSelectRows[1259∈121] ➊"]]:::plan - PgSelectRows1259 --> First1258 - PgSelect1256 --> PgSelectRows1259 - PgSelectSingle1260{{"PgSelectSingle[1260∈121] ➊
ᐸpostᐳ"}}:::plan - First1258 --> PgSelectSingle1260 - PgClassExpression1263{{"PgClassExpression[1263∈121] ➊
ᐸ__types__.”ltree”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1263 - PgClassExpression1264{{"PgClassExpression[1264∈121] ➊
ᐸ__types__.”ltree_array”ᐳ"}}:::plan - PgInsertSingle1038 --> PgClassExpression1264 - __Item1071[/"__Item[1071∈122]
ᐸ1070ᐳ"\]:::itemplan - PgClassExpression1070 ==> __Item1071 - __Item1075[/"__Item[1075∈123]
ᐸ1074ᐳ"\]:::itemplan - PgClassExpression1074 ==> __Item1075 - Access1079{{"Access[1079∈124] ➊
ᐸ1078.startᐳ"}}:::plan - PgClassExpression1078 --> Access1079 - Access1082{{"Access[1082∈124] ➊
ᐸ1078.endᐳ"}}:::plan - PgClassExpression1078 --> Access1082 - __Item1119[/"__Item[1119∈133]
ᐸ1118ᐳ"\]:::itemplan - PgClassExpression1118 ==> __Item1119 - PgClassExpression1154{{"PgClassExpression[1154∈135] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1153 --> PgClassExpression1154 - PgClassExpression1155{{"PgClassExpression[1155∈135] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1153 --> PgClassExpression1155 - PgClassExpression1156{{"PgClassExpression[1156∈135] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1153 --> PgClassExpression1156 - PgClassExpression1157{{"PgClassExpression[1157∈135] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1153 --> PgClassExpression1157 - PgClassExpression1158{{"PgClassExpression[1158∈135] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1153 --> PgClassExpression1158 - PgClassExpression1159{{"PgClassExpression[1159∈135] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1153 --> PgClassExpression1159 - PgClassExpression1160{{"PgClassExpression[1160∈135] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1153 --> PgClassExpression1160 - PgClassExpression1167{{"PgClassExpression[1167∈136] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgClassExpression1167{{"PgClassExpression[1167∈35] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan PgSelectSingle1166 --> PgClassExpression1167 - PgClassExpression1168{{"PgClassExpression[1168∈136] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgClassExpression1168{{"PgClassExpression[1168∈35] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan PgSelectSingle1166 --> PgClassExpression1168 - PgClassExpression1169{{"PgClassExpression[1169∈136] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgClassExpression1169{{"PgClassExpression[1169∈35] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan PgSelectSingle1166 --> PgClassExpression1169 - PgClassExpression1170{{"PgClassExpression[1170∈136] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgClassExpression1170{{"PgClassExpression[1170∈35] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan PgSelectSingle1166 --> PgClassExpression1170 - PgClassExpression1171{{"PgClassExpression[1171∈136] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgClassExpression1171{{"PgClassExpression[1171∈35] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan PgSelectSingle1166 --> PgClassExpression1171 - PgClassExpression1172{{"PgClassExpression[1172∈136] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgClassExpression1172{{"PgClassExpression[1172∈35] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan PgSelectSingle1166 --> PgClassExpression1172 - PgClassExpression1173{{"PgClassExpression[1173∈136] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgClassExpression1173{{"PgClassExpression[1173∈35] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan PgSelectSingle1166 --> PgClassExpression1173 - PgClassExpression1181{{"PgClassExpression[1181∈137] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgClassExpression1174{{"PgClassExpression[1174∈35] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle1159 --> PgClassExpression1174 + PgClassExpression1174 --> PgFromExpression1177 + First1178{{"First[1178∈35] ➊"}}:::plan + PgSelectRows1179[["PgSelectRows[1179∈35] ➊"]]:::plan + PgSelectRows1179 --> First1178 + PgSelect1175 --> PgSelectRows1179 + PgSelectSingle1180{{"PgSelectSingle[1180∈35] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1178 --> PgSelectSingle1180 + PgClassExpression1181{{"PgClassExpression[1181∈35] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan PgSelectSingle1180 --> PgClassExpression1181 - PgClassExpression1182{{"PgClassExpression[1182∈137] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgClassExpression1182{{"PgClassExpression[1182∈35] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan PgSelectSingle1180 --> PgClassExpression1182 - PgClassExpression1183{{"PgClassExpression[1183∈137] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgClassExpression1183{{"PgClassExpression[1183∈35] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan PgSelectSingle1180 --> PgClassExpression1183 - PgClassExpression1184{{"PgClassExpression[1184∈137] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgClassExpression1184{{"PgClassExpression[1184∈35] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan PgSelectSingle1180 --> PgClassExpression1184 - PgClassExpression1185{{"PgClassExpression[1185∈137] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgClassExpression1185{{"PgClassExpression[1185∈35] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan PgSelectSingle1180 --> PgClassExpression1185 - PgClassExpression1186{{"PgClassExpression[1186∈137] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgClassExpression1186{{"PgClassExpression[1186∈35] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan PgSelectSingle1180 --> PgClassExpression1186 - PgClassExpression1187{{"PgClassExpression[1187∈137] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgClassExpression1187{{"PgClassExpression[1187∈35] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan PgSelectSingle1180 --> PgClassExpression1187 - PgSelect1195[["PgSelect[1195∈138] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1194{{"PgClassExpression[1194∈138] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object1041 & PgClassExpression1194 --> PgSelect1195 - PgSelect1210[["PgSelect[1210∈138] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1209{{"PgClassExpression[1209∈138] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object1041 & PgClassExpression1209 --> PgSelect1210 - PgSelectSingle1193 --> PgClassExpression1194 - First1199{{"First[1199∈138] ➊"}}:::plan - PgSelectRows1200[["PgSelectRows[1200∈138] ➊"]]:::plan - PgSelectRows1200 --> First1199 - PgSelect1195 --> PgSelectRows1200 - PgSelectSingle1201{{"PgSelectSingle[1201∈138] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1199 --> PgSelectSingle1201 - PgSelectSingle1193 --> PgClassExpression1209 - First1212{{"First[1212∈138] ➊"}}:::plan - PgSelectRows1213[["PgSelectRows[1213∈138] ➊"]]:::plan - PgSelectRows1213 --> First1212 - PgSelect1210 --> PgSelectRows1213 - PgSelectSingle1214{{"PgSelectSingle[1214∈138] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1212 --> PgSelectSingle1214 - PgClassExpression1222{{"PgClassExpression[1222∈138] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle1193 --> PgClassExpression1222 - PgClassExpression1202{{"PgClassExpression[1202∈139] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1201 --> PgClassExpression1202 - PgClassExpression1203{{"PgClassExpression[1203∈139] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1201 --> PgClassExpression1203 - PgClassExpression1204{{"PgClassExpression[1204∈139] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1201 --> PgClassExpression1204 - PgClassExpression1205{{"PgClassExpression[1205∈139] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1201 --> PgClassExpression1205 - PgClassExpression1206{{"PgClassExpression[1206∈139] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1201 --> PgClassExpression1206 - PgClassExpression1207{{"PgClassExpression[1207∈139] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1201 --> PgClassExpression1207 - PgClassExpression1208{{"PgClassExpression[1208∈139] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1201 --> PgClassExpression1208 - PgClassExpression1215{{"PgClassExpression[1215∈140] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1214 --> PgClassExpression1215 - PgClassExpression1216{{"PgClassExpression[1216∈140] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1214 --> PgClassExpression1216 - PgClassExpression1217{{"PgClassExpression[1217∈140] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1214 --> PgClassExpression1217 - PgClassExpression1218{{"PgClassExpression[1218∈140] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1214 --> PgClassExpression1218 - PgClassExpression1219{{"PgClassExpression[1219∈140] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1214 --> PgClassExpression1219 - PgClassExpression1220{{"PgClassExpression[1220∈140] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1214 --> PgClassExpression1220 - PgClassExpression1221{{"PgClassExpression[1221∈140] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1214 --> PgClassExpression1221 - __Item1241[/"__Item[1241∈142]
ᐸ1240ᐳ"\]:::itemplan - PgClassExpression1240 ==> __Item1241 - __Item1243[/"__Item[1243∈143]
ᐸ1242ᐳ"\]:::itemplan - PgClassExpression1242 ==> __Item1243 - __Item1246[/"__Item[1246∈144]
ᐸ1245ᐳ"\]:::itemplan - PgClassExpression1245 ==> __Item1246 - PgClassExpression1253{{"PgClassExpression[1253∈145] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle1252 --> PgClassExpression1253 - PgClassExpression1254{{"PgClassExpression[1254∈145] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle1252 --> PgClassExpression1254 - PgClassExpression1261{{"PgClassExpression[1261∈146] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle1260 --> PgClassExpression1261 - PgClassExpression1262{{"PgClassExpression[1262∈146] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle1260 --> PgClassExpression1262 - __Item1265[/"__Item[1265∈147]
ᐸ1264ᐳ"\]:::itemplan - PgClassExpression1264 ==> __Item1265 + PgClassExpression1188{{"PgClassExpression[1188∈35] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle1159 --> PgClassExpression1188 + PgClassExpression1189{{"PgClassExpression[1189∈35] ➊
ᐸ__types__.”point”ᐳ"}}:::plan + Access1024 --> PgClassExpression1189 + Access1190{{"Access[1190∈35] ➊
ᐸ1189.xᐳ"}}:::plan + PgClassExpression1189 --> Access1190 + Access1191{{"Access[1191∈35] ➊
ᐸ1189.yᐳ"}}:::plan + PgClassExpression1189 --> Access1191 + PgClassExpression1192{{"PgClassExpression[1192∈35] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan + Access1024 --> PgClassExpression1192 + Access1193{{"Access[1193∈35] ➊
ᐸ1192.xᐳ"}}:::plan + PgClassExpression1192 --> Access1193 + Access1194{{"Access[1194∈35] ➊
ᐸ1192.yᐳ"}}:::plan + PgClassExpression1192 --> Access1194 + PgClassExpression1195{{"PgClassExpression[1195∈35] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan + Access1024 --> PgClassExpression1195 + PgClassExpression1196{{"PgClassExpression[1196∈35] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan + Access1024 --> PgClassExpression1196 + PgClassExpression1197{{"PgClassExpression[1197∈35] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan + Access1024 --> PgClassExpression1197 + PgClassExpression1198{{"PgClassExpression[1198∈35] ➊
ᐸ__types__.”regproc”ᐳ"}}:::plan + Access1024 --> PgClassExpression1198 + PgClassExpression1199{{"PgClassExpression[1199∈35] ➊
ᐸ__types__....procedure”ᐳ"}}:::plan + Access1024 --> PgClassExpression1199 + PgClassExpression1200{{"PgClassExpression[1200∈35] ➊
ᐸ__types__.”regoper”ᐳ"}}:::plan + Access1024 --> PgClassExpression1200 + PgClassExpression1201{{"PgClassExpression[1201∈35] ➊
ᐸ__types__.”regoperator”ᐳ"}}:::plan + Access1024 --> PgClassExpression1201 + PgClassExpression1202{{"PgClassExpression[1202∈35] ➊
ᐸ__types__.”regclass”ᐳ"}}:::plan + Access1024 --> PgClassExpression1202 + PgClassExpression1203{{"PgClassExpression[1203∈35] ➊
ᐸ__types__.”regtype”ᐳ"}}:::plan + Access1024 --> PgClassExpression1203 + PgClassExpression1204{{"PgClassExpression[1204∈35] ➊
ᐸ__types__.”regconfig”ᐳ"}}:::plan + Access1024 --> PgClassExpression1204 + PgClassExpression1205{{"PgClassExpression[1205∈35] ➊
ᐸ__types__....ictionary”ᐳ"}}:::plan + Access1024 --> PgClassExpression1205 + PgClassExpression1206{{"PgClassExpression[1206∈35] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + Access1024 --> PgClassExpression1206 + PgClassExpression1208{{"PgClassExpression[1208∈35] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + Access1024 --> PgClassExpression1208 + PgClassExpression1210{{"PgClassExpression[1210∈35] ➊
ᐸ__types__.”bytea”ᐳ"}}:::plan + Access1024 --> PgClassExpression1210 + PgClassExpression1211{{"PgClassExpression[1211∈35] ➊
ᐸ__types__.”bytea_array”ᐳ"}}:::plan + Access1024 --> PgClassExpression1211 + First1216{{"First[1216∈35] ➊"}}:::plan + PgSelectRows1217[["PgSelectRows[1217∈35] ➊"]]:::plan + PgSelectRows1217 --> First1216 + PgSelect1214 --> PgSelectRows1217 + PgSelectSingle1218{{"PgSelectSingle[1218∈35] ➊
ᐸpostᐳ"}}:::plan + First1216 --> PgSelectSingle1218 + PgClassExpression1219{{"PgClassExpression[1219∈35] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle1218 --> PgClassExpression1219 + PgClassExpression1220{{"PgClassExpression[1220∈35] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle1218 --> PgClassExpression1220 + First1224{{"First[1224∈35] ➊"}}:::plan + PgSelectRows1225[["PgSelectRows[1225∈35] ➊"]]:::plan + PgSelectRows1225 --> First1224 + PgSelect1222 --> PgSelectRows1225 + PgSelectSingle1226{{"PgSelectSingle[1226∈35] ➊
ᐸpostᐳ"}}:::plan + First1224 --> PgSelectSingle1226 + PgClassExpression1227{{"PgClassExpression[1227∈35] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle1226 --> PgClassExpression1227 + PgClassExpression1228{{"PgClassExpression[1228∈35] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle1226 --> PgClassExpression1228 + PgClassExpression1229{{"PgClassExpression[1229∈35] ➊
ᐸ__types__.”ltree”ᐳ"}}:::plan + Access1024 --> PgClassExpression1229 + PgClassExpression1230{{"PgClassExpression[1230∈35] ➊
ᐸ__types__.”ltree_array”ᐳ"}}:::plan + Access1024 --> PgClassExpression1230 + __Item1033[/"__Item[1033∈36]
ᐸ1032ᐳ"\]:::itemplan + PgClassExpression1032 ==> __Item1033 + __Item1037[/"__Item[1037∈37]
ᐸ1036ᐳ"\]:::itemplan + PgClassExpression1036 ==> __Item1037 + __Item1081[/"__Item[1081∈38]
ᐸ1080ᐳ"\]:::itemplan + PgClassExpression1080 ==> __Item1081 + __Item1207[/"__Item[1207∈39]
ᐸ1206ᐳ"\]:::itemplan + PgClassExpression1206 ==> __Item1207 + __Item1209[/"__Item[1209∈40]
ᐸ1208ᐳ"\]:::itemplan + PgClassExpression1208 ==> __Item1209 + __Item1212[/"__Item[1212∈41]
ᐸ1211ᐳ"\]:::itemplan + PgClassExpression1211 ==> __Item1212 + __Item1231[/"__Item[1231∈42]
ᐸ1230ᐳ"\]:::itemplan + PgClassExpression1230 ==> __Item1231 %% define steps subgraph "Buckets for mutations/v4/types" Bucket0("Bucket 0 (root)"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Constant1266,Constant1267,Constant1268,Constant1269,Constant1270,Constant1274,Constant1275,Constant1280,Constant1281,Constant1282,Constant1283,Constant1284,Constant1289,Constant1290,Constant1291,Constant1292,Constant1293,Constant1294,Constant1295,Constant1296,Constant1297,Constant1298,Constant1299,Constant1306,Constant1309,Constant1312,Constant1313,Constant1314,Constant1316,Constant1317,Constant1324,Constant1325,Constant1326,Constant1327,Constant1328,Constant1329,Constant1330,Constant1331,Constant1332,Constant1346,Constant1347,Constant1348 bucket0 - Bucket1("Bucket 1 (mutationField)
Deps: 12, 1266

1: PgSelect[9]
2: PgSelectRows[14]
ᐳ: 13, 15, 16"):::bucket + class Bucket0,__Value2,__Value4,__InputObject6,Access10,Access11,Object12,PgFromExpression13,ApplyInput18,__InputObject225,ApplyInput232,__InputObject444,ApplyInput451,__InputObject663,__InputObject666,Constant674,Constant677,__InputObject680,__InputObject681,__InputObject684,__InputObject687,__InputObject688,__InputObject691,__InputObject694,__InputObject695,__InputObject698,__InputObject706,Constant708,__InputObject710,__InputObject712,__InputObject713,__InputObject715,__InputObject718,Constant732,Constant733,Constant735,Constant737,ApplyInput742,__InputObject953,__InputObject955,Constant963,Constant966,__InputObject969,__InputObject970,__InputObject973,__InputObject976,__InputObject977,__InputObject980,__InputObject983,__InputObject984,__InputObject987,__InputObject995,Constant997,__InputObject999,__InputObject1001,__InputObject1002,__InputObject1004,Constant1016,ApplyInput1021,Constant1232,Constant1233,Constant1234,Constant1235,Constant1236,Constant1237,Constant1238,Constant1239,Constant1240,Constant1241,Constant1242,Constant1243,Constant1244,Constant1245,Constant1246,Constant1247,Constant1248,Constant1249,Constant1250,Constant1251,Constant1252,Constant1253,Constant1254,Constant1255,Constant1256,Constant1257,Constant1258,Constant1259,Constant1260,Constant1261,Constant1262,Constant1263,Constant1264,Constant1265,Constant1266 bucket0 + Bucket1("Bucket 1 (mutationField)
Deps: 12, 13, 18

1: PgSelect[9]
2: PgSelectRows[15]
ᐳ: 14, 16, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 83, 84, 87, 98, 101, 134, 137, 148, 151, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 205, 206, 222, 223
3: 85, 99, 135, 149, 208, 215
4: 89, 103, 139, 153, 211, 218
ᐳ: 88, 90, 91, 92, 93, 94, 95, 96, 97, 102, 104, 105, 108, 119, 122, 133, 138, 140, 141, 142, 143, 144, 145, 146, 147, 152, 154, 155, 158, 169, 172, 183, 210, 212, 213, 214, 217, 219, 220, 221
5: 106, 120, 156, 170
6: 110, 124, 160, 174
ᐳ: 109, 111, 112, 113, 114, 115, 116, 117, 118, 123, 125, 126, 127, 128, 129, 130, 131, 132, 159, 161, 162, 163, 164, 165, 166, 167, 168, 173, 175, 176, 177, 178, 179, 180, 181, 182"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect9,First13,PgSelectRows14,PgSelectSingle15,Object16 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 16, 15, 12

ROOT Object{1}ᐸ{result}ᐳ[16]"):::bucket + class Bucket1,PgSelect9,First14,PgSelectRows15,PgSelectSingle16,Object17,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgClassExpression29,PgClassExpression30,PgClassExpression31,PgClassExpression33,PgClassExpression34,PgClassExpression35,Access36,Access37,Access38,Access39,Access40,Access41,PgClassExpression42,Access43,Access44,Access45,Access46,Access47,Access48,PgClassExpression49,Access50,Access51,Access52,Access53,Access54,Access55,PgClassExpression56,Access57,Access58,Access59,Access60,Access61,Access62,PgClassExpression63,PgClassExpression64,PgClassExpression65,PgClassExpression66,PgClassExpression67,PgClassExpression68,Access69,Access70,Access71,Access72,Access73,Access74,PgClassExpression75,PgClassExpression83,PgClassExpression84,PgSelect85,PgFromExpression87,First88,PgSelectRows89,PgSelectSingle90,PgClassExpression91,PgClassExpression92,PgClassExpression93,PgClassExpression94,PgClassExpression95,PgClassExpression96,PgClassExpression97,PgClassExpression98,PgSelect99,PgFromExpression101,First102,PgSelectRows103,PgSelectSingle104,PgClassExpression105,PgSelect106,PgFromExpression108,First109,PgSelectRows110,PgSelectSingle111,PgClassExpression112,PgClassExpression113,PgClassExpression114,PgClassExpression115,PgClassExpression116,PgClassExpression117,PgClassExpression118,PgClassExpression119,PgSelect120,PgFromExpression122,First123,PgSelectRows124,PgSelectSingle125,PgClassExpression126,PgClassExpression127,PgClassExpression128,PgClassExpression129,PgClassExpression130,PgClassExpression131,PgClassExpression132,PgClassExpression133,PgClassExpression134,PgSelect135,PgFromExpression137,First138,PgSelectRows139,PgSelectSingle140,PgClassExpression141,PgClassExpression142,PgClassExpression143,PgClassExpression144,PgClassExpression145,PgClassExpression146,PgClassExpression147,PgClassExpression148,PgSelect149,PgFromExpression151,First152,PgSelectRows153,PgSelectSingle154,PgClassExpression155,PgSelect156,PgFromExpression158,First159,PgSelectRows160,PgSelectSingle161,PgClassExpression162,PgClassExpression163,PgClassExpression164,PgClassExpression165,PgClassExpression166,PgClassExpression167,PgClassExpression168,PgClassExpression169,PgSelect170,PgFromExpression172,First173,PgSelectRows174,PgSelectSingle175,PgClassExpression176,PgClassExpression177,PgClassExpression178,PgClassExpression179,PgClassExpression180,PgClassExpression181,PgClassExpression182,PgClassExpression183,PgClassExpression184,Access185,Access186,PgClassExpression187,Access188,Access189,PgClassExpression190,PgClassExpression191,PgClassExpression192,PgClassExpression193,PgClassExpression194,PgClassExpression195,PgClassExpression196,PgClassExpression197,PgClassExpression198,PgClassExpression199,PgClassExpression200,PgClassExpression201,PgClassExpression203,PgClassExpression205,PgClassExpression206,PgSelect208,First210,PgSelectRows211,PgSelectSingle212,PgClassExpression213,PgClassExpression214,PgSelect215,First217,PgSelectRows218,PgSelectSingle219,PgClassExpression220,PgClassExpression221,PgClassExpression222,PgClassExpression223 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ27ᐳ[28]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 12

ROOT PgSelectSingle{1}ᐸtype_function_mutationᐳ[15]
1:
ᐳ: 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 31, 32, 33, 40, 47, 54, 61, 62, 63, 64, 65, 66, 73, 81, 82, 97, 130, 143, 178, 181, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 197, 199, 200, 216, 217, 41, 44, 48, 51, 55, 58
2: 83, 98, 131, 144, 202, 209
3: 88, 101, 134, 147, 205, 212
ᐳ: 87, 89, 90, 91, 92, 93, 94, 95, 96, 100, 102, 103, 116, 129, 133, 135, 146, 148, 204, 206, 211, 213
4: PgSelect[104], PgSelect[117]
5: PgSelectRows[107], PgSelectRows[120]
ᐳ: 106, 108, 119, 121"):::bucket + class Bucket2,__Item28 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ31ᐳ[32]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression27,PgClassExpression28,PgClassExpression29,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression40,Access41,Access44,PgClassExpression47,Access48,Access51,PgClassExpression54,Access55,Access58,PgClassExpression61,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgClassExpression65,PgClassExpression66,PgClassExpression73,PgClassExpression81,PgClassExpression82,PgSelect83,First87,PgSelectRows88,PgSelectSingle89,PgClassExpression90,PgClassExpression91,PgClassExpression92,PgClassExpression93,PgClassExpression94,PgClassExpression95,PgClassExpression96,PgClassExpression97,PgSelect98,First100,PgSelectRows101,PgSelectSingle102,PgClassExpression103,PgSelect104,First106,PgSelectRows107,PgSelectSingle108,PgClassExpression116,PgSelect117,First119,PgSelectRows120,PgSelectSingle121,PgClassExpression129,PgClassExpression130,PgSelect131,First133,PgSelectRows134,PgSelectSingle135,PgClassExpression143,PgSelect144,First146,PgSelectRows147,PgSelectSingle148,PgClassExpression178,PgClassExpression181,PgClassExpression184,PgClassExpression185,PgClassExpression186,PgClassExpression187,PgClassExpression188,PgClassExpression189,PgClassExpression190,PgClassExpression191,PgClassExpression192,PgClassExpression193,PgClassExpression194,PgClassExpression195,PgClassExpression197,PgClassExpression199,PgClassExpression200,PgSelect202,First204,PgSelectRows205,PgSelectSingle206,PgSelect209,First211,PgSelectRows212,PgSelectSingle213,PgClassExpression216,PgClassExpression217 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ25ᐳ[26]"):::bucket + class Bucket3,__Item32 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ75ᐳ[76]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item26 bucket4 - Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ29ᐳ[30]"):::bucket + class Bucket4,__Item76 bucket4 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ201ᐳ[202]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item30 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 33

ROOT PgClassExpression{3}ᐸ__type_fun...ble_range”ᐳ[33]"):::bucket + class Bucket5,__Item202 bucket5 + Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ203ᐳ[204]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,Access34,Access37 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 34, 33

ROOT Access{6}ᐸ33.startᐳ[34]"):::bucket + class Bucket6,__Item204 bucket6 + Bucket7("Bucket 7 (listItem)

ROOT __Item{7}ᐸ206ᐳ[207]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 37, 33

ROOT Access{6}ᐸ33.endᐳ[37]"):::bucket + class Bucket7,__Item207 bucket7 + Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ223ᐳ[224]"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 41, 40

ROOT Access{3}ᐸ40.startᐳ[41]"):::bucket + class Bucket8,__Item224 bucket8 + Bucket9("Bucket 9 (mutationField)
Deps: 232, 2

1: Access[228]
2: Access[229]
3: Object[230]
4: PgSelect[227]
5: PgSelectRows[233]
ᐳ: Object[231]"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 44, 40

ROOT Access{3}ᐸ40.endᐳ[44]"):::bucket + class Bucket9,PgSelect227,Access228,Access229,Object230,Object231,PgSelectRows233 bucket9 + Bucket10("Bucket 10 (listItem)
Deps: 230

ROOT __Item{10}ᐸ233ᐳ[234]
1:
ᐳ: 235, 306, 320, 327, 341, 356, 370, 377, 391, 236, 237, 238, 239, 240, 241, 242, 243, 244, 246, 247, 248, 250, 251, 252, 259, 266, 273, 280, 281, 282, 283, 284, 285, 292, 300, 301, 317, 353, 367, 403, 406, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 422, 424, 425, 441, 442
2: 302, 318, 354, 368, 427, 434
3: 308, 322, 358, 372, 430, 437
ᐳ: 307, 309, 310, 311, 312, 313, 314, 315, 316, 321, 323, 324, 338, 352, 357, 359, 360, 361, 362, 363, 364, 365, 366, 371, 373, 374, 388, 402, 429, 431, 432, 433, 436, 438, 439, 440
4: 325, 339, 375, 389
5: 329, 343, 379, 393
ᐳ: 328, 330, 331, 332, 333, 334, 335, 336, 337, 342, 344, 345, 346, 347, 348, 349, 350, 351, 378, 380, 381, 382, 383, 384, 385, 386, 387, 392, 394, 395, 396, 397, 398, 399, 400, 401"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 48, 47

ROOT Access{3}ᐸ47.startᐳ[48]"):::bucket + class Bucket10,__Item234,PgSelectSingle235,PgClassExpression236,PgClassExpression237,PgClassExpression238,PgClassExpression239,PgClassExpression240,PgClassExpression241,PgClassExpression242,PgClassExpression243,PgClassExpression244,PgClassExpression246,PgClassExpression247,PgClassExpression248,PgClassExpression250,PgClassExpression251,PgClassExpression252,PgClassExpression259,PgClassExpression266,PgClassExpression273,PgClassExpression280,PgClassExpression281,PgClassExpression282,PgClassExpression283,PgClassExpression284,PgClassExpression285,PgClassExpression292,PgClassExpression300,PgClassExpression301,PgSelect302,PgFromExpression306,First307,PgSelectRows308,PgSelectSingle309,PgClassExpression310,PgClassExpression311,PgClassExpression312,PgClassExpression313,PgClassExpression314,PgClassExpression315,PgClassExpression316,PgClassExpression317,PgSelect318,PgFromExpression320,First321,PgSelectRows322,PgSelectSingle323,PgClassExpression324,PgSelect325,PgFromExpression327,First328,PgSelectRows329,PgSelectSingle330,PgClassExpression331,PgClassExpression332,PgClassExpression333,PgClassExpression334,PgClassExpression335,PgClassExpression336,PgClassExpression337,PgClassExpression338,PgSelect339,PgFromExpression341,First342,PgSelectRows343,PgSelectSingle344,PgClassExpression345,PgClassExpression346,PgClassExpression347,PgClassExpression348,PgClassExpression349,PgClassExpression350,PgClassExpression351,PgClassExpression352,PgClassExpression353,PgSelect354,PgFromExpression356,First357,PgSelectRows358,PgSelectSingle359,PgClassExpression360,PgClassExpression361,PgClassExpression362,PgClassExpression363,PgClassExpression364,PgClassExpression365,PgClassExpression366,PgClassExpression367,PgSelect368,PgFromExpression370,First371,PgSelectRows372,PgSelectSingle373,PgClassExpression374,PgSelect375,PgFromExpression377,First378,PgSelectRows379,PgSelectSingle380,PgClassExpression381,PgClassExpression382,PgClassExpression383,PgClassExpression384,PgClassExpression385,PgClassExpression386,PgClassExpression387,PgClassExpression388,PgSelect389,PgFromExpression391,First392,PgSelectRows393,PgSelectSingle394,PgClassExpression395,PgClassExpression396,PgClassExpression397,PgClassExpression398,PgClassExpression399,PgClassExpression400,PgClassExpression401,PgClassExpression402,PgClassExpression403,PgClassExpression406,PgClassExpression409,PgClassExpression410,PgClassExpression411,PgClassExpression412,PgClassExpression413,PgClassExpression414,PgClassExpression415,PgClassExpression416,PgClassExpression417,PgClassExpression418,PgClassExpression419,PgClassExpression420,PgClassExpression422,PgClassExpression424,PgClassExpression425,PgSelect427,First429,PgSelectRows430,PgSelectSingle431,PgClassExpression432,PgClassExpression433,PgSelect434,First436,PgSelectRows437,PgSelectSingle438,PgClassExpression439,PgClassExpression440,PgClassExpression441,PgClassExpression442 bucket10 + Bucket11("Bucket 11 (listItem)

ROOT __Item{11}ᐸ244ᐳ[245]"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 51, 47

ROOT Access{3}ᐸ47.endᐳ[51]"):::bucket + class Bucket11,__Item245 bucket11 + Bucket12("Bucket 12 (listItem)

ROOT __Item{12}ᐸ248ᐳ[249]"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 55, 54

ROOT Access{3}ᐸ54.startᐳ[55]"):::bucket + class Bucket12,__Item249 bucket12 + Bucket13("Bucket 13 (listItem)

ROOT __Item{13}ᐸ292ᐳ[293]"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 58, 54

ROOT Access{3}ᐸ54.endᐳ[58]"):::bucket + class Bucket13,__Item293 bucket13 + Bucket14("Bucket 14 (listItem)

ROOT __Item{14}ᐸ420ᐳ[421]"):::bucket classDef bucket14 stroke:#a52a2a - class Bucket14 bucket14 - Bucket15("Bucket 15 (listItem)

ROOT __Item{15}ᐸ73ᐳ[74]"):::bucket + class Bucket14,__Item421 bucket14 + Bucket15("Bucket 15 (listItem)

ROOT __Item{15}ᐸ422ᐳ[423]"):::bucket classDef bucket15 stroke:#ff00ff - class Bucket15,__Item74 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 74

ROOT __Item{15}ᐸ73ᐳ[74]"):::bucket + class Bucket15,__Item423 bucket15 + Bucket16("Bucket 16 (listItem)

ROOT __Item{16}ᐸ425ᐳ[426]"):::bucket classDef bucket16 stroke:#f5deb3 - class Bucket16 bucket16 - Bucket17("Bucket 17 (nullableBoundary)
Deps: 108

ROOT PgSelectSingle{3}ᐸfrmcdc_compoundTypeᐳ[108]"):::bucket + class Bucket16,__Item426 bucket16 + Bucket17("Bucket 17 (listItem)

ROOT __Item{17}ᐸ442ᐳ[443]"):::bucket classDef bucket17 stroke:#696969 - class Bucket17,PgClassExpression109,PgClassExpression110,PgClassExpression111,PgClassExpression112,PgClassExpression113,PgClassExpression114,PgClassExpression115 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 121

ROOT PgSelectSingle{3}ᐸfrmcdc_compoundTypeᐳ[121]"):::bucket + class Bucket17,__Item443 bucket17 + Bucket18("Bucket 18 (mutationField)
Deps: 451, 2

1: Access[447]
2: Access[448]
3: Object[449]
4: PgSelect[446]
5: PgSelectRows[452]
ᐳ: Object[450]"):::bucket classDef bucket18 stroke:#00bfff - class Bucket18,PgClassExpression122,PgClassExpression123,PgClassExpression124,PgClassExpression125,PgClassExpression126,PgClassExpression127,PgClassExpression128 bucket18 - Bucket19("Bucket 19 (nullableBoundary)
Deps: 135

ROOT PgSelectSingle{3}ᐸfrmcdc_compoundTypeᐳ[135]"):::bucket + class Bucket18,PgSelect446,Access447,Access448,Object449,Object450,PgSelectRows452 bucket18 + Bucket19("Bucket 19 (listItem)
Deps: 449

ROOT __Item{19}ᐸ452ᐳ[453]
1:
ᐳ: 454, 525, 539, 546, 560, 575, 589, 596, 610, 455, 456, 457, 458, 459, 460, 461, 462, 463, 465, 466, 467, 469, 470, 471, 478, 485, 492, 499, 500, 501, 502, 503, 504, 511, 519, 520, 536, 572, 586, 622, 625, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 641, 643, 644, 660, 661
2: 521, 537, 573, 587, 646, 653
3: 527, 541, 577, 591, 649, 656
ᐳ: 526, 528, 529, 530, 531, 532, 533, 534, 535, 540, 542, 543, 557, 571, 576, 578, 579, 580, 581, 582, 583, 584, 585, 590, 592, 593, 607, 621, 648, 650, 651, 652, 655, 657, 658, 659
4: 544, 558, 594, 608
5: 548, 562, 598, 612
ᐳ: 547, 549, 550, 551, 552, 553, 554, 555, 556, 561, 563, 564, 565, 566, 567, 568, 569, 570, 597, 599, 600, 601, 602, 603, 604, 605, 606, 611, 613, 614, 615, 616, 617, 618, 619, 620"):::bucket classDef bucket19 stroke:#7f007f - class Bucket19,PgClassExpression136,PgClassExpression137,PgClassExpression138,PgClassExpression139,PgClassExpression140,PgClassExpression141,PgClassExpression142 bucket19 - Bucket20("Bucket 20 (nullableBoundary)
Deps: 148, 12

ROOT PgSelectSingle{3}ᐸfrmcdc_nestedCompoundTypeᐳ[148]
1:
ᐳ: 149, 164, 177
2: PgSelect[150], PgSelect[165]
3: PgSelectRows[155], PgSelectRows[168]
ᐳ: 154, 156, 167, 169"):::bucket + class Bucket19,__Item453,PgSelectSingle454,PgClassExpression455,PgClassExpression456,PgClassExpression457,PgClassExpression458,PgClassExpression459,PgClassExpression460,PgClassExpression461,PgClassExpression462,PgClassExpression463,PgClassExpression465,PgClassExpression466,PgClassExpression467,PgClassExpression469,PgClassExpression470,PgClassExpression471,PgClassExpression478,PgClassExpression485,PgClassExpression492,PgClassExpression499,PgClassExpression500,PgClassExpression501,PgClassExpression502,PgClassExpression503,PgClassExpression504,PgClassExpression511,PgClassExpression519,PgClassExpression520,PgSelect521,PgFromExpression525,First526,PgSelectRows527,PgSelectSingle528,PgClassExpression529,PgClassExpression530,PgClassExpression531,PgClassExpression532,PgClassExpression533,PgClassExpression534,PgClassExpression535,PgClassExpression536,PgSelect537,PgFromExpression539,First540,PgSelectRows541,PgSelectSingle542,PgClassExpression543,PgSelect544,PgFromExpression546,First547,PgSelectRows548,PgSelectSingle549,PgClassExpression550,PgClassExpression551,PgClassExpression552,PgClassExpression553,PgClassExpression554,PgClassExpression555,PgClassExpression556,PgClassExpression557,PgSelect558,PgFromExpression560,First561,PgSelectRows562,PgSelectSingle563,PgClassExpression564,PgClassExpression565,PgClassExpression566,PgClassExpression567,PgClassExpression568,PgClassExpression569,PgClassExpression570,PgClassExpression571,PgClassExpression572,PgSelect573,PgFromExpression575,First576,PgSelectRows577,PgSelectSingle578,PgClassExpression579,PgClassExpression580,PgClassExpression581,PgClassExpression582,PgClassExpression583,PgClassExpression584,PgClassExpression585,PgClassExpression586,PgSelect587,PgFromExpression589,First590,PgSelectRows591,PgSelectSingle592,PgClassExpression593,PgSelect594,PgFromExpression596,First597,PgSelectRows598,PgSelectSingle599,PgClassExpression600,PgClassExpression601,PgClassExpression602,PgClassExpression603,PgClassExpression604,PgClassExpression605,PgClassExpression606,PgClassExpression607,PgSelect608,PgFromExpression610,First611,PgSelectRows612,PgSelectSingle613,PgClassExpression614,PgClassExpression615,PgClassExpression616,PgClassExpression617,PgClassExpression618,PgClassExpression619,PgClassExpression620,PgClassExpression621,PgClassExpression622,PgClassExpression625,PgClassExpression628,PgClassExpression629,PgClassExpression630,PgClassExpression631,PgClassExpression632,PgClassExpression633,PgClassExpression634,PgClassExpression635,PgClassExpression636,PgClassExpression637,PgClassExpression638,PgClassExpression639,PgClassExpression641,PgClassExpression643,PgClassExpression644,PgSelect646,First648,PgSelectRows649,PgSelectSingle650,PgClassExpression651,PgClassExpression652,PgSelect653,First655,PgSelectRows656,PgSelectSingle657,PgClassExpression658,PgClassExpression659,PgClassExpression660,PgClassExpression661 bucket19 + Bucket20("Bucket 20 (listItem)

ROOT __Item{20}ᐸ463ᐳ[464]"):::bucket classDef bucket20 stroke:#ffa500 - class Bucket20,PgClassExpression149,PgSelect150,First154,PgSelectRows155,PgSelectSingle156,PgClassExpression164,PgSelect165,First167,PgSelectRows168,PgSelectSingle169,PgClassExpression177 bucket20 - Bucket21("Bucket 21 (nullableBoundary)
Deps: 156

ROOT PgSelectSingle{20}ᐸfrmcdc_compoundTypeᐳ[156]"):::bucket + class Bucket20,__Item464 bucket20 + Bucket21("Bucket 21 (listItem)

ROOT __Item{21}ᐸ467ᐳ[468]"):::bucket classDef bucket21 stroke:#0000ff - class Bucket21,PgClassExpression157,PgClassExpression158,PgClassExpression159,PgClassExpression160,PgClassExpression161,PgClassExpression162,PgClassExpression163 bucket21 - Bucket22("Bucket 22 (nullableBoundary)
Deps: 169

ROOT PgSelectSingle{20}ᐸfrmcdc_compoundTypeᐳ[169]"):::bucket + class Bucket21,__Item468 bucket21 + Bucket22("Bucket 22 (listItem)

ROOT __Item{22}ᐸ511ᐳ[512]"):::bucket classDef bucket22 stroke:#7fff00 - class Bucket22,PgClassExpression170,PgClassExpression171,PgClassExpression172,PgClassExpression173,PgClassExpression174,PgClassExpression175,PgClassExpression176 bucket22 - Bucket23("Bucket 23 (nullableBoundary)
Deps: 181

ROOT PgClassExpression{3}ᐸ__type_fun...ablePoint”ᐳ[181]"):::bucket + class Bucket22,__Item512 bucket22 + Bucket23("Bucket 23 (listItem)

ROOT __Item{23}ᐸ639ᐳ[640]"):::bucket classDef bucket23 stroke:#ff1493 - class Bucket23 bucket23 - Bucket24("Bucket 24 (listItem)

ROOT __Item{24}ᐸ195ᐳ[196]"):::bucket + class Bucket23,__Item640 bucket23 + Bucket24("Bucket 24 (listItem)

ROOT __Item{24}ᐸ641ᐳ[642]"):::bucket classDef bucket24 stroke:#808000 - class Bucket24,__Item196 bucket24 - Bucket25("Bucket 25 (listItem)

ROOT __Item{25}ᐸ197ᐳ[198]"):::bucket + class Bucket24,__Item642 bucket24 + Bucket25("Bucket 25 (listItem)

ROOT __Item{25}ᐸ644ᐳ[645]"):::bucket classDef bucket25 stroke:#dda0dd - class Bucket25,__Item198 bucket25 - Bucket26("Bucket 26 (listItem)

ROOT __Item{26}ᐸ200ᐳ[201]"):::bucket + class Bucket25,__Item645 bucket25 + Bucket26("Bucket 26 (listItem)

ROOT __Item{26}ᐸ661ᐳ[662]"):::bucket classDef bucket26 stroke:#ff0000 - class Bucket26,__Item201 bucket26 - Bucket27("Bucket 27 (nullableBoundary)
Deps: 206

ROOT PgSelectSingle{3}ᐸpostᐳ[206]"):::bucket + class Bucket26,__Item662 bucket26 + Bucket27("Bucket 27 (mutationField)
Deps: 1232, 742, 2

1: Access[739]
2: Access[740]
3: Object[741]
4: PgUpdateSingle[738]
5:
ᐳ: 743, 745, 744, 746, 747, 748, 749, 750, 751, 752, 753, 755, 756, 757, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 809, 810, 813, 824, 827, 860, 863, 874, 877, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 929, 931, 932, 950, 951
6: 811, 825, 861, 875, 935, 943
7: 815, 829, 865, 879, 938, 946
ᐳ: 814, 816, 817, 818, 819, 820, 821, 822, 823, 828, 830, 831, 834, 845, 848, 859, 864, 866, 867, 868, 869, 870, 871, 872, 873, 878, 880, 881, 884, 895, 898, 909, 937, 939, 940, 941, 945, 947, 948, 949
8: 832, 846, 882, 896
9: 836, 850, 886, 900
ᐳ: 835, 837, 838, 839, 840, 841, 842, 843, 844, 849, 851, 852, 853, 854, 855, 856, 857, 858, 885, 887, 888, 889, 890, 891, 892, 893, 894, 899, 901, 902, 903, 904, 905, 906, 907, 908"):::bucket classDef bucket27 stroke:#ffff00 - class Bucket27,PgClassExpression207,PgClassExpression208 bucket27 - Bucket28("Bucket 28 (nullableBoundary)
Deps: 213

ROOT PgSelectSingle{3}ᐸpostᐳ[213]"):::bucket + class Bucket27,PgUpdateSingle738,Access739,Access740,Object741,Object743,PgClassExpression744,Access745,PgClassExpression746,PgClassExpression747,PgClassExpression748,PgClassExpression749,PgClassExpression750,PgClassExpression751,PgClassExpression752,PgClassExpression753,PgClassExpression755,PgClassExpression756,PgClassExpression757,PgClassExpression759,PgClassExpression760,PgClassExpression761,Access762,Access763,Access764,Access765,Access766,Access767,PgClassExpression768,Access769,Access770,Access771,Access772,Access773,Access774,PgClassExpression775,Access776,Access777,Access778,Access779,Access780,Access781,PgClassExpression782,Access783,Access784,Access785,Access786,Access787,Access788,PgClassExpression789,PgClassExpression790,PgClassExpression791,PgClassExpression792,PgClassExpression793,PgClassExpression794,Access795,Access796,Access797,Access798,Access799,Access800,PgClassExpression801,PgClassExpression809,PgClassExpression810,PgSelect811,PgFromExpression813,First814,PgSelectRows815,PgSelectSingle816,PgClassExpression817,PgClassExpression818,PgClassExpression819,PgClassExpression820,PgClassExpression821,PgClassExpression822,PgClassExpression823,PgClassExpression824,PgSelect825,PgFromExpression827,First828,PgSelectRows829,PgSelectSingle830,PgClassExpression831,PgSelect832,PgFromExpression834,First835,PgSelectRows836,PgSelectSingle837,PgClassExpression838,PgClassExpression839,PgClassExpression840,PgClassExpression841,PgClassExpression842,PgClassExpression843,PgClassExpression844,PgClassExpression845,PgSelect846,PgFromExpression848,First849,PgSelectRows850,PgSelectSingle851,PgClassExpression852,PgClassExpression853,PgClassExpression854,PgClassExpression855,PgClassExpression856,PgClassExpression857,PgClassExpression858,PgClassExpression859,PgClassExpression860,PgSelect861,PgFromExpression863,First864,PgSelectRows865,PgSelectSingle866,PgClassExpression867,PgClassExpression868,PgClassExpression869,PgClassExpression870,PgClassExpression871,PgClassExpression872,PgClassExpression873,PgClassExpression874,PgSelect875,PgFromExpression877,First878,PgSelectRows879,PgSelectSingle880,PgClassExpression881,PgSelect882,PgFromExpression884,First885,PgSelectRows886,PgSelectSingle887,PgClassExpression888,PgClassExpression889,PgClassExpression890,PgClassExpression891,PgClassExpression892,PgClassExpression893,PgClassExpression894,PgClassExpression895,PgSelect896,PgFromExpression898,First899,PgSelectRows900,PgSelectSingle901,PgClassExpression902,PgClassExpression903,PgClassExpression904,PgClassExpression905,PgClassExpression906,PgClassExpression907,PgClassExpression908,PgClassExpression909,PgClassExpression910,Access911,Access912,PgClassExpression913,Access914,Access915,PgClassExpression916,PgClassExpression917,PgClassExpression918,PgClassExpression919,PgClassExpression920,PgClassExpression921,PgClassExpression922,PgClassExpression923,PgClassExpression924,PgClassExpression925,PgClassExpression926,PgClassExpression927,PgClassExpression929,PgClassExpression931,PgClassExpression932,PgSelect935,First937,PgSelectRows938,PgSelectSingle939,PgClassExpression940,PgClassExpression941,PgSelect943,First945,PgSelectRows946,PgSelectSingle947,PgClassExpression948,PgClassExpression949,PgClassExpression950,PgClassExpression951 bucket27 + Bucket28("Bucket 28 (listItem)

ROOT __Item{28}ᐸ753ᐳ[754]"):::bucket classDef bucket28 stroke:#00ffff - class Bucket28,PgClassExpression214,PgClassExpression215 bucket28 - Bucket29("Bucket 29 (listItem)

ROOT __Item{29}ᐸ217ᐳ[218]"):::bucket + class Bucket28,__Item754 bucket28 + Bucket29("Bucket 29 (listItem)

ROOT __Item{29}ᐸ757ᐳ[758]"):::bucket classDef bucket29 stroke:#4169e1 - class Bucket29,__Item218 bucket29 - Bucket30("Bucket 30 (mutationField)
Deps: 2

1: Access[222]
2: Access[223]
3: Object[224]
4: PgSelect[221]
5:
ᐳ: Object[225]"):::bucket + class Bucket29,__Item758 bucket29 + Bucket30("Bucket 30 (listItem)

ROOT __Item{30}ᐸ801ᐳ[802]"):::bucket classDef bucket30 stroke:#3cb371 - class Bucket30,PgSelect221,Access222,Access223,Object224,Object225 bucket30 - Bucket31("Bucket 31 (nullableBoundary)
Deps: 221, 225, 224

ROOT Object{30}ᐸ{result}ᐳ[225]"):::bucket + class Bucket30,__Item802 bucket30 + Bucket31("Bucket 31 (listItem)

ROOT __Item{31}ᐸ927ᐳ[928]"):::bucket classDef bucket31 stroke:#a52a2a - class Bucket31,PgSelectRows226 bucket31 - Bucket32("Bucket 32 (listItem)
Deps: 224

ROOT __Item{32}ᐸ226ᐳ[227]"):::bucket + class Bucket31,__Item928 bucket31 + Bucket32("Bucket 32 (listItem)

ROOT __Item{32}ᐸ929ᐳ[930]"):::bucket classDef bucket32 stroke:#ff00ff - class Bucket32,__Item227,PgSelectSingle228 bucket32 - Bucket33("Bucket 33 (nullableBoundary)
Deps: 228, 224

ROOT PgSelectSingle{32}ᐸtype_function_list_mutationᐳ[228]
1:
ᐳ: 229, 230, 231, 232, 233, 234, 235, 236, 237, 239, 240, 241, 243, 244, 245, 252, 259, 266, 273, 274, 275, 276, 277, 278, 285, 293, 294, 309, 342, 355, 390, 393, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 409, 411, 412, 428, 429, 253, 256, 260, 263, 267, 270
2: 295, 310, 343, 356, 414, 421
3: 300, 313, 346, 359, 417, 424
ᐳ: 299, 301, 302, 303, 304, 305, 306, 307, 308, 312, 314, 315, 328, 341, 345, 347, 358, 360, 416, 418, 423, 425
4: PgSelect[316], PgSelect[329]
5: PgSelectRows[319], PgSelectRows[332]
ᐳ: 318, 320, 331, 333"):::bucket + class Bucket32,__Item930 bucket32 + Bucket33("Bucket 33 (listItem)

ROOT __Item{33}ᐸ932ᐳ[933]"):::bucket classDef bucket33 stroke:#f5deb3 - class Bucket33,PgClassExpression229,PgClassExpression230,PgClassExpression231,PgClassExpression232,PgClassExpression233,PgClassExpression234,PgClassExpression235,PgClassExpression236,PgClassExpression237,PgClassExpression239,PgClassExpression240,PgClassExpression241,PgClassExpression243,PgClassExpression244,PgClassExpression245,PgClassExpression252,Access253,Access256,PgClassExpression259,Access260,Access263,PgClassExpression266,Access267,Access270,PgClassExpression273,PgClassExpression274,PgClassExpression275,PgClassExpression276,PgClassExpression277,PgClassExpression278,PgClassExpression285,PgClassExpression293,PgClassExpression294,PgSelect295,First299,PgSelectRows300,PgSelectSingle301,PgClassExpression302,PgClassExpression303,PgClassExpression304,PgClassExpression305,PgClassExpression306,PgClassExpression307,PgClassExpression308,PgClassExpression309,PgSelect310,First312,PgSelectRows313,PgSelectSingle314,PgClassExpression315,PgSelect316,First318,PgSelectRows319,PgSelectSingle320,PgClassExpression328,PgSelect329,First331,PgSelectRows332,PgSelectSingle333,PgClassExpression341,PgClassExpression342,PgSelect343,First345,PgSelectRows346,PgSelectSingle347,PgClassExpression355,PgSelect356,First358,PgSelectRows359,PgSelectSingle360,PgClassExpression390,PgClassExpression393,PgClassExpression396,PgClassExpression397,PgClassExpression398,PgClassExpression399,PgClassExpression400,PgClassExpression401,PgClassExpression402,PgClassExpression403,PgClassExpression404,PgClassExpression405,PgClassExpression406,PgClassExpression407,PgClassExpression409,PgClassExpression411,PgClassExpression412,PgSelect414,First416,PgSelectRows417,PgSelectSingle418,PgSelect421,First423,PgSelectRows424,PgSelectSingle425,PgClassExpression428,PgClassExpression429 bucket33 - Bucket34("Bucket 34 (listItem)

ROOT __Item{34}ᐸ237ᐳ[238]"):::bucket + class Bucket33,__Item933 bucket33 + Bucket34("Bucket 34 (listItem)

ROOT __Item{34}ᐸ951ᐳ[952]"):::bucket classDef bucket34 stroke:#696969 - class Bucket34,__Item238 bucket34 - Bucket35("Bucket 35 (listItem)

ROOT __Item{35}ᐸ241ᐳ[242]"):::bucket + class Bucket34,__Item952 bucket34 + Bucket35("Bucket 35 (mutationField)
Deps: 1021, 2

1: Access[1018]
2: Access[1019]
3: Object[1020]
4: PgInsertSingle[1017]
5:
ᐳ: 1022, 1024, 1023, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1034, 1035, 1036, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1088, 1089, 1092, 1103, 1106, 1139, 1142, 1153, 1156, 1189, 1190, 1191, 1192, 1193, 1194, 1195, 1196, 1197, 1198, 1199, 1200, 1201, 1202, 1203, 1204, 1205, 1206, 1208, 1210, 1211, 1229, 1230
6: 1090, 1104, 1140, 1154, 1214, 1222
7: 1094, 1108, 1144, 1158, 1217, 1225
ᐳ: 1093, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1107, 1109, 1110, 1113, 1124, 1127, 1138, 1143, 1145, 1146, 1147, 1148, 1149, 1150, 1151, 1152, 1157, 1159, 1160, 1163, 1174, 1177, 1188, 1216, 1218, 1219, 1220, 1224, 1226, 1227, 1228
8: 1111, 1125, 1161, 1175
9: 1115, 1129, 1165, 1179
ᐳ: 1114, 1116, 1117, 1118, 1119, 1120, 1121, 1122, 1123, 1128, 1130, 1131, 1132, 1133, 1134, 1135, 1136, 1137, 1164, 1166, 1167, 1168, 1169, 1170, 1171, 1172, 1173, 1178, 1180, 1181, 1182, 1183, 1184, 1185, 1186, 1187"):::bucket classDef bucket35 stroke:#00bfff - class Bucket35,__Item242 bucket35 - Bucket36("Bucket 36 (nullableBoundary)
Deps: 245

ROOT PgClassExpression{33}ᐸ__type_fun...ble_range”ᐳ[245]"):::bucket + class Bucket35,PgInsertSingle1017,Access1018,Access1019,Object1020,Object1022,PgClassExpression1023,Access1024,PgClassExpression1025,PgClassExpression1026,PgClassExpression1027,PgClassExpression1028,PgClassExpression1029,PgClassExpression1030,PgClassExpression1031,PgClassExpression1032,PgClassExpression1034,PgClassExpression1035,PgClassExpression1036,PgClassExpression1038,PgClassExpression1039,PgClassExpression1040,Access1041,Access1042,Access1043,Access1044,Access1045,Access1046,PgClassExpression1047,Access1048,Access1049,Access1050,Access1051,Access1052,Access1053,PgClassExpression1054,Access1055,Access1056,Access1057,Access1058,Access1059,Access1060,PgClassExpression1061,Access1062,Access1063,Access1064,Access1065,Access1066,Access1067,PgClassExpression1068,PgClassExpression1069,PgClassExpression1070,PgClassExpression1071,PgClassExpression1072,PgClassExpression1073,Access1074,Access1075,Access1076,Access1077,Access1078,Access1079,PgClassExpression1080,PgClassExpression1088,PgClassExpression1089,PgSelect1090,PgFromExpression1092,First1093,PgSelectRows1094,PgSelectSingle1095,PgClassExpression1096,PgClassExpression1097,PgClassExpression1098,PgClassExpression1099,PgClassExpression1100,PgClassExpression1101,PgClassExpression1102,PgClassExpression1103,PgSelect1104,PgFromExpression1106,First1107,PgSelectRows1108,PgSelectSingle1109,PgClassExpression1110,PgSelect1111,PgFromExpression1113,First1114,PgSelectRows1115,PgSelectSingle1116,PgClassExpression1117,PgClassExpression1118,PgClassExpression1119,PgClassExpression1120,PgClassExpression1121,PgClassExpression1122,PgClassExpression1123,PgClassExpression1124,PgSelect1125,PgFromExpression1127,First1128,PgSelectRows1129,PgSelectSingle1130,PgClassExpression1131,PgClassExpression1132,PgClassExpression1133,PgClassExpression1134,PgClassExpression1135,PgClassExpression1136,PgClassExpression1137,PgClassExpression1138,PgClassExpression1139,PgSelect1140,PgFromExpression1142,First1143,PgSelectRows1144,PgSelectSingle1145,PgClassExpression1146,PgClassExpression1147,PgClassExpression1148,PgClassExpression1149,PgClassExpression1150,PgClassExpression1151,PgClassExpression1152,PgClassExpression1153,PgSelect1154,PgFromExpression1156,First1157,PgSelectRows1158,PgSelectSingle1159,PgClassExpression1160,PgSelect1161,PgFromExpression1163,First1164,PgSelectRows1165,PgSelectSingle1166,PgClassExpression1167,PgClassExpression1168,PgClassExpression1169,PgClassExpression1170,PgClassExpression1171,PgClassExpression1172,PgClassExpression1173,PgClassExpression1174,PgSelect1175,PgFromExpression1177,First1178,PgSelectRows1179,PgSelectSingle1180,PgClassExpression1181,PgClassExpression1182,PgClassExpression1183,PgClassExpression1184,PgClassExpression1185,PgClassExpression1186,PgClassExpression1187,PgClassExpression1188,PgClassExpression1189,Access1190,Access1191,PgClassExpression1192,Access1193,Access1194,PgClassExpression1195,PgClassExpression1196,PgClassExpression1197,PgClassExpression1198,PgClassExpression1199,PgClassExpression1200,PgClassExpression1201,PgClassExpression1202,PgClassExpression1203,PgClassExpression1204,PgClassExpression1205,PgClassExpression1206,PgClassExpression1208,PgClassExpression1210,PgClassExpression1211,PgSelect1214,First1216,PgSelectRows1217,PgSelectSingle1218,PgClassExpression1219,PgClassExpression1220,PgSelect1222,First1224,PgSelectRows1225,PgSelectSingle1226,PgClassExpression1227,PgClassExpression1228,PgClassExpression1229,PgClassExpression1230 bucket35 + Bucket36("Bucket 36 (listItem)

ROOT __Item{36}ᐸ1032ᐳ[1033]"):::bucket classDef bucket36 stroke:#7f007f - class Bucket36,Access246,Access249 bucket36 - Bucket37("Bucket 37 (nullableBoundary)
Deps: 246, 245

ROOT Access{36}ᐸ245.startᐳ[246]"):::bucket + class Bucket36,__Item1033 bucket36 + Bucket37("Bucket 37 (listItem)

ROOT __Item{37}ᐸ1036ᐳ[1037]"):::bucket classDef bucket37 stroke:#ffa500 - class Bucket37 bucket37 - Bucket38("Bucket 38 (nullableBoundary)
Deps: 249, 245

ROOT Access{36}ᐸ245.endᐳ[249]"):::bucket + class Bucket37,__Item1037 bucket37 + Bucket38("Bucket 38 (listItem)

ROOT __Item{38}ᐸ1080ᐳ[1081]"):::bucket classDef bucket38 stroke:#0000ff - class Bucket38 bucket38 - Bucket39("Bucket 39 (nullableBoundary)
Deps: 253, 252

ROOT Access{33}ᐸ252.startᐳ[253]"):::bucket + class Bucket38,__Item1081 bucket38 + Bucket39("Bucket 39 (listItem)

ROOT __Item{39}ᐸ1206ᐳ[1207]"):::bucket classDef bucket39 stroke:#7fff00 - class Bucket39 bucket39 - Bucket40("Bucket 40 (nullableBoundary)
Deps: 256, 252

ROOT Access{33}ᐸ252.endᐳ[256]"):::bucket + class Bucket39,__Item1207 bucket39 + Bucket40("Bucket 40 (listItem)

ROOT __Item{40}ᐸ1208ᐳ[1209]"):::bucket classDef bucket40 stroke:#ff1493 - class Bucket40 bucket40 - Bucket41("Bucket 41 (nullableBoundary)
Deps: 260, 259

ROOT Access{33}ᐸ259.startᐳ[260]"):::bucket + class Bucket40,__Item1209 bucket40 + Bucket41("Bucket 41 (listItem)

ROOT __Item{41}ᐸ1211ᐳ[1212]"):::bucket classDef bucket41 stroke:#808000 - class Bucket41 bucket41 - Bucket42("Bucket 42 (nullableBoundary)
Deps: 263, 259

ROOT Access{33}ᐸ259.endᐳ[263]"):::bucket + class Bucket41,__Item1212 bucket41 + Bucket42("Bucket 42 (listItem)

ROOT __Item{42}ᐸ1230ᐳ[1231]"):::bucket classDef bucket42 stroke:#dda0dd - class Bucket42 bucket42 - Bucket43("Bucket 43 (nullableBoundary)
Deps: 267, 266

ROOT Access{33}ᐸ266.startᐳ[267]"):::bucket - classDef bucket43 stroke:#ff0000 - class Bucket43 bucket43 - Bucket44("Bucket 44 (nullableBoundary)
Deps: 270, 266

ROOT Access{33}ᐸ266.endᐳ[270]"):::bucket - classDef bucket44 stroke:#ffff00 - class Bucket44 bucket44 - Bucket45("Bucket 45 (listItem)

ROOT __Item{45}ᐸ285ᐳ[286]"):::bucket - classDef bucket45 stroke:#00ffff - class Bucket45,__Item286 bucket45 - Bucket46("Bucket 46 (nullableBoundary)
Deps: 286

ROOT __Item{45}ᐸ285ᐳ[286]"):::bucket - classDef bucket46 stroke:#4169e1 - class Bucket46 bucket46 - Bucket47("Bucket 47 (nullableBoundary)
Deps: 320

ROOT PgSelectSingle{33}ᐸfrmcdc_compoundTypeᐳ[320]"):::bucket - classDef bucket47 stroke:#3cb371 - class Bucket47,PgClassExpression321,PgClassExpression322,PgClassExpression323,PgClassExpression324,PgClassExpression325,PgClassExpression326,PgClassExpression327 bucket47 - Bucket48("Bucket 48 (nullableBoundary)
Deps: 333

ROOT PgSelectSingle{33}ᐸfrmcdc_compoundTypeᐳ[333]"):::bucket - classDef bucket48 stroke:#a52a2a - class Bucket48,PgClassExpression334,PgClassExpression335,PgClassExpression336,PgClassExpression337,PgClassExpression338,PgClassExpression339,PgClassExpression340 bucket48 - Bucket49("Bucket 49 (nullableBoundary)
Deps: 347

ROOT PgSelectSingle{33}ᐸfrmcdc_compoundTypeᐳ[347]"):::bucket - classDef bucket49 stroke:#ff00ff - class Bucket49,PgClassExpression348,PgClassExpression349,PgClassExpression350,PgClassExpression351,PgClassExpression352,PgClassExpression353,PgClassExpression354 bucket49 - Bucket50("Bucket 50 (nullableBoundary)
Deps: 360, 224

ROOT PgSelectSingle{33}ᐸfrmcdc_nestedCompoundTypeᐳ[360]
1:
ᐳ: 361, 376, 389
2: PgSelect[362], PgSelect[377]
3: PgSelectRows[367], PgSelectRows[380]
ᐳ: 366, 368, 379, 381"):::bucket - classDef bucket50 stroke:#f5deb3 - class Bucket50,PgClassExpression361,PgSelect362,First366,PgSelectRows367,PgSelectSingle368,PgClassExpression376,PgSelect377,First379,PgSelectRows380,PgSelectSingle381,PgClassExpression389 bucket50 - Bucket51("Bucket 51 (nullableBoundary)
Deps: 368

ROOT PgSelectSingle{50}ᐸfrmcdc_compoundTypeᐳ[368]"):::bucket - classDef bucket51 stroke:#696969 - class Bucket51,PgClassExpression369,PgClassExpression370,PgClassExpression371,PgClassExpression372,PgClassExpression373,PgClassExpression374,PgClassExpression375 bucket51 - Bucket52("Bucket 52 (nullableBoundary)
Deps: 381

ROOT PgSelectSingle{50}ᐸfrmcdc_compoundTypeᐳ[381]"):::bucket - classDef bucket52 stroke:#00bfff - class Bucket52,PgClassExpression382,PgClassExpression383,PgClassExpression384,PgClassExpression385,PgClassExpression386,PgClassExpression387,PgClassExpression388 bucket52 - Bucket53("Bucket 53 (nullableBoundary)
Deps: 393

ROOT PgClassExpression{33}ᐸ__type_fun...ablePoint”ᐳ[393]"):::bucket - classDef bucket53 stroke:#7f007f - class Bucket53 bucket53 - Bucket54("Bucket 54 (listItem)

ROOT __Item{54}ᐸ407ᐳ[408]"):::bucket - classDef bucket54 stroke:#ffa500 - class Bucket54,__Item408 bucket54 - Bucket55("Bucket 55 (listItem)

ROOT __Item{55}ᐸ409ᐳ[410]"):::bucket - classDef bucket55 stroke:#0000ff - class Bucket55,__Item410 bucket55 - Bucket56("Bucket 56 (listItem)

ROOT __Item{56}ᐸ412ᐳ[413]"):::bucket - classDef bucket56 stroke:#7fff00 - class Bucket56,__Item413 bucket56 - Bucket57("Bucket 57 (nullableBoundary)
Deps: 418

ROOT PgSelectSingle{33}ᐸpostᐳ[418]"):::bucket - classDef bucket57 stroke:#ff1493 - class Bucket57,PgClassExpression419,PgClassExpression420 bucket57 - Bucket58("Bucket 58 (nullableBoundary)
Deps: 425

ROOT PgSelectSingle{33}ᐸpostᐳ[425]"):::bucket - classDef bucket58 stroke:#808000 - class Bucket58,PgClassExpression426,PgClassExpression427 bucket58 - Bucket59("Bucket 59 (listItem)

ROOT __Item{59}ᐸ429ᐳ[430]"):::bucket - classDef bucket59 stroke:#dda0dd - class Bucket59,__Item430 bucket59 - Bucket60("Bucket 60 (mutationField)
Deps: 2

1: Access[434]
2: Access[435]
3: Object[436]
4: PgSelect[433]
5:
ᐳ: Object[437]"):::bucket - classDef bucket60 stroke:#ff0000 - class Bucket60,PgSelect433,Access434,Access435,Object436,Object437 bucket60 - Bucket61("Bucket 61 (nullableBoundary)
Deps: 433, 437, 436

ROOT Object{60}ᐸ{result}ᐳ[437]"):::bucket - classDef bucket61 stroke:#ffff00 - class Bucket61,PgSelectRows438 bucket61 - Bucket62("Bucket 62 (listItem)
Deps: 436

ROOT __Item{62}ᐸ438ᐳ[439]"):::bucket - classDef bucket62 stroke:#00ffff - class Bucket62,__Item439,PgSelectSingle440 bucket62 - Bucket63("Bucket 63 (nullableBoundary)
Deps: 440, 436

ROOT PgSelectSingle{62}ᐸtype_function_connection_mutationᐳ[440]
1:
ᐳ: 441, 442, 443, 444, 445, 446, 447, 448, 449, 451, 452, 453, 455, 456, 457, 464, 471, 478, 485, 486, 487, 488, 489, 490, 497, 505, 506, 521, 554, 567, 602, 605, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 621, 623, 624, 640, 641, 465, 468, 472, 475, 479, 482
2: 507, 522, 555, 568, 626, 633
3: 512, 525, 558, 571, 629, 636
ᐳ: 511, 513, 514, 515, 516, 517, 518, 519, 520, 524, 526, 527, 540, 553, 557, 559, 570, 572, 628, 630, 635, 637
4: PgSelect[528], PgSelect[541]
5: PgSelectRows[531], PgSelectRows[544]
ᐳ: 530, 532, 543, 545"):::bucket - classDef bucket63 stroke:#4169e1 - class Bucket63,PgClassExpression441,PgClassExpression442,PgClassExpression443,PgClassExpression444,PgClassExpression445,PgClassExpression446,PgClassExpression447,PgClassExpression448,PgClassExpression449,PgClassExpression451,PgClassExpression452,PgClassExpression453,PgClassExpression455,PgClassExpression456,PgClassExpression457,PgClassExpression464,Access465,Access468,PgClassExpression471,Access472,Access475,PgClassExpression478,Access479,Access482,PgClassExpression485,PgClassExpression486,PgClassExpression487,PgClassExpression488,PgClassExpression489,PgClassExpression490,PgClassExpression497,PgClassExpression505,PgClassExpression506,PgSelect507,First511,PgSelectRows512,PgSelectSingle513,PgClassExpression514,PgClassExpression515,PgClassExpression516,PgClassExpression517,PgClassExpression518,PgClassExpression519,PgClassExpression520,PgClassExpression521,PgSelect522,First524,PgSelectRows525,PgSelectSingle526,PgClassExpression527,PgSelect528,First530,PgSelectRows531,PgSelectSingle532,PgClassExpression540,PgSelect541,First543,PgSelectRows544,PgSelectSingle545,PgClassExpression553,PgClassExpression554,PgSelect555,First557,PgSelectRows558,PgSelectSingle559,PgClassExpression567,PgSelect568,First570,PgSelectRows571,PgSelectSingle572,PgClassExpression602,PgClassExpression605,PgClassExpression608,PgClassExpression609,PgClassExpression610,PgClassExpression611,PgClassExpression612,PgClassExpression613,PgClassExpression614,PgClassExpression615,PgClassExpression616,PgClassExpression617,PgClassExpression618,PgClassExpression619,PgClassExpression621,PgClassExpression623,PgClassExpression624,PgSelect626,First628,PgSelectRows629,PgSelectSingle630,PgSelect633,First635,PgSelectRows636,PgSelectSingle637,PgClassExpression640,PgClassExpression641 bucket63 - Bucket64("Bucket 64 (listItem)

ROOT __Item{64}ᐸ449ᐳ[450]"):::bucket - classDef bucket64 stroke:#3cb371 - class Bucket64,__Item450 bucket64 - Bucket65("Bucket 65 (listItem)

ROOT __Item{65}ᐸ453ᐳ[454]"):::bucket - classDef bucket65 stroke:#a52a2a - class Bucket65,__Item454 bucket65 - Bucket66("Bucket 66 (nullableBoundary)
Deps: 457

ROOT PgClassExpression{63}ᐸ__type_fun...ble_range”ᐳ[457]"):::bucket - classDef bucket66 stroke:#ff00ff - class Bucket66,Access458,Access461 bucket66 - Bucket67("Bucket 67 (nullableBoundary)
Deps: 458, 457

ROOT Access{66}ᐸ457.startᐳ[458]"):::bucket - classDef bucket67 stroke:#f5deb3 - class Bucket67 bucket67 - Bucket68("Bucket 68 (nullableBoundary)
Deps: 461, 457

ROOT Access{66}ᐸ457.endᐳ[461]"):::bucket - classDef bucket68 stroke:#696969 - class Bucket68 bucket68 - Bucket69("Bucket 69 (nullableBoundary)
Deps: 465, 464

ROOT Access{63}ᐸ464.startᐳ[465]"):::bucket - classDef bucket69 stroke:#00bfff - class Bucket69 bucket69 - Bucket70("Bucket 70 (nullableBoundary)
Deps: 468, 464

ROOT Access{63}ᐸ464.endᐳ[468]"):::bucket - classDef bucket70 stroke:#7f007f - class Bucket70 bucket70 - Bucket71("Bucket 71 (nullableBoundary)
Deps: 472, 471

ROOT Access{63}ᐸ471.startᐳ[472]"):::bucket - classDef bucket71 stroke:#ffa500 - class Bucket71 bucket71 - Bucket72("Bucket 72 (nullableBoundary)
Deps: 475, 471

ROOT Access{63}ᐸ471.endᐳ[475]"):::bucket - classDef bucket72 stroke:#0000ff - class Bucket72 bucket72 - Bucket73("Bucket 73 (nullableBoundary)
Deps: 479, 478

ROOT Access{63}ᐸ478.startᐳ[479]"):::bucket - classDef bucket73 stroke:#7fff00 - class Bucket73 bucket73 - Bucket74("Bucket 74 (nullableBoundary)
Deps: 482, 478

ROOT Access{63}ᐸ478.endᐳ[482]"):::bucket - classDef bucket74 stroke:#ff1493 - class Bucket74 bucket74 - Bucket75("Bucket 75 (listItem)

ROOT __Item{75}ᐸ497ᐳ[498]"):::bucket - classDef bucket75 stroke:#808000 - class Bucket75,__Item498 bucket75 - Bucket76("Bucket 76 (nullableBoundary)
Deps: 498

ROOT __Item{75}ᐸ497ᐳ[498]"):::bucket - classDef bucket76 stroke:#dda0dd - class Bucket76 bucket76 - Bucket77("Bucket 77 (nullableBoundary)
Deps: 532

ROOT PgSelectSingle{63}ᐸfrmcdc_compoundTypeᐳ[532]"):::bucket - classDef bucket77 stroke:#ff0000 - class Bucket77,PgClassExpression533,PgClassExpression534,PgClassExpression535,PgClassExpression536,PgClassExpression537,PgClassExpression538,PgClassExpression539 bucket77 - Bucket78("Bucket 78 (nullableBoundary)
Deps: 545

ROOT PgSelectSingle{63}ᐸfrmcdc_compoundTypeᐳ[545]"):::bucket - classDef bucket78 stroke:#ffff00 - class Bucket78,PgClassExpression546,PgClassExpression547,PgClassExpression548,PgClassExpression549,PgClassExpression550,PgClassExpression551,PgClassExpression552 bucket78 - Bucket79("Bucket 79 (nullableBoundary)
Deps: 559

ROOT PgSelectSingle{63}ᐸfrmcdc_compoundTypeᐳ[559]"):::bucket - classDef bucket79 stroke:#00ffff - class Bucket79,PgClassExpression560,PgClassExpression561,PgClassExpression562,PgClassExpression563,PgClassExpression564,PgClassExpression565,PgClassExpression566 bucket79 - Bucket80("Bucket 80 (nullableBoundary)
Deps: 572, 436

ROOT PgSelectSingle{63}ᐸfrmcdc_nestedCompoundTypeᐳ[572]
1:
ᐳ: 573, 588, 601
2: PgSelect[574], PgSelect[589]
3: PgSelectRows[579], PgSelectRows[592]
ᐳ: 578, 580, 591, 593"):::bucket - classDef bucket80 stroke:#4169e1 - class Bucket80,PgClassExpression573,PgSelect574,First578,PgSelectRows579,PgSelectSingle580,PgClassExpression588,PgSelect589,First591,PgSelectRows592,PgSelectSingle593,PgClassExpression601 bucket80 - Bucket81("Bucket 81 (nullableBoundary)
Deps: 580

ROOT PgSelectSingle{80}ᐸfrmcdc_compoundTypeᐳ[580]"):::bucket - classDef bucket81 stroke:#3cb371 - class Bucket81,PgClassExpression581,PgClassExpression582,PgClassExpression583,PgClassExpression584,PgClassExpression585,PgClassExpression586,PgClassExpression587 bucket81 - Bucket82("Bucket 82 (nullableBoundary)
Deps: 593

ROOT PgSelectSingle{80}ᐸfrmcdc_compoundTypeᐳ[593]"):::bucket - classDef bucket82 stroke:#a52a2a - class Bucket82,PgClassExpression594,PgClassExpression595,PgClassExpression596,PgClassExpression597,PgClassExpression598,PgClassExpression599,PgClassExpression600 bucket82 - Bucket83("Bucket 83 (nullableBoundary)
Deps: 605

ROOT PgClassExpression{63}ᐸ__type_fun...ablePoint”ᐳ[605]"):::bucket - classDef bucket83 stroke:#ff00ff - class Bucket83 bucket83 - Bucket84("Bucket 84 (listItem)

ROOT __Item{84}ᐸ619ᐳ[620]"):::bucket - classDef bucket84 stroke:#f5deb3 - class Bucket84,__Item620 bucket84 - Bucket85("Bucket 85 (listItem)

ROOT __Item{85}ᐸ621ᐳ[622]"):::bucket - classDef bucket85 stroke:#696969 - class Bucket85,__Item622 bucket85 - Bucket86("Bucket 86 (listItem)

ROOT __Item{86}ᐸ624ᐳ[625]"):::bucket - classDef bucket86 stroke:#00bfff - class Bucket86,__Item625 bucket86 - Bucket87("Bucket 87 (nullableBoundary)
Deps: 630

ROOT PgSelectSingle{63}ᐸpostᐳ[630]"):::bucket - classDef bucket87 stroke:#7f007f - class Bucket87,PgClassExpression631,PgClassExpression632 bucket87 - Bucket88("Bucket 88 (nullableBoundary)
Deps: 637

ROOT PgSelectSingle{63}ᐸpostᐳ[637]"):::bucket - classDef bucket88 stroke:#ffa500 - class Bucket88,PgClassExpression638,PgClassExpression639 bucket88 - Bucket89("Bucket 89 (listItem)

ROOT __Item{89}ᐸ641ᐳ[642]"):::bucket - classDef bucket89 stroke:#0000ff - class Bucket89,__Item642 bucket89 - Bucket90("Bucket 90 (mutationField)
Deps: 1266, 1267, 1268, 1269, 1270, 1316, 1317, 1274, 1275, 1346, 1347, 1348, 1280, 1281, 1282, 1283, 1314, 1324, 1284, 1325, 1326, 1327, 1328, 1289, 1290, 1291, 1292, 1293, 1294, 1295, 1296, 1297, 1298, 1299, 1329, 1330, 1306, 1331, 1309, 1332, 2

1: Access[735]
2: Access[736]
3: Object[737]
4: PgUpdateSingle[734]
5:
ᐳ: Object[738]"):::bucket - classDef bucket90 stroke:#7fff00 - class Bucket90,PgUpdateSingle734,Access735,Access736,Object737,Object738 bucket90 - Bucket91("Bucket 91 (nullableBoundary)
Deps: 738, 734, 737

ROOT Object{90}ᐸ{result}ᐳ[738]"):::bucket - classDef bucket91 stroke:#ff1493 - class Bucket91 bucket91 - Bucket92("Bucket 92 (nullableBoundary)
Deps: 734, 737

ROOT PgUpdateSingle{90}ᐸtypes(id;smallint,bigint,numeric,decimal,boolean,varchar,enum,enum_array,domain,domain2,text_array,json,jsonb,numrange,daterange,an_int_range,timestamp,timestamptz,date,time,timetz,interval,interval_array,money,compound_type,nested_compound_type,point,nullablePoint,inet,cidr,macaddr,regproc,regprocedure,regoper,regoperator,regclass,regtype,regconfig,regdictionary,text_array_domain,int8_array_domain,bytea,bytea_array,ltree,ltree_array)ᐳ[734]
1:
ᐳ: 762, 763, 764, 765, 766, 767, 768, 769, 770, 772, 773, 774, 776, 777, 778, 785, 792, 799, 806, 807, 808, 809, 810, 811, 818, 826, 827, 842, 875, 888, 923, 926, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 942, 944, 945, 963, 964, 786, 789, 793, 796, 800, 803
2: 828, 843, 876, 889, 948, 956
3: 833, 846, 879, 892, 951, 959
ᐳ: 832, 834, 835, 836, 837, 838, 839, 840, 841, 845, 847, 848, 861, 874, 878, 880, 891, 893, 950, 952, 958, 960
4: PgSelect[849], PgSelect[862]
5: PgSelectRows[852], PgSelectRows[865]
ᐳ: 851, 853, 864, 866"):::bucket - classDef bucket92 stroke:#808000 - class Bucket92,PgClassExpression762,PgClassExpression763,PgClassExpression764,PgClassExpression765,PgClassExpression766,PgClassExpression767,PgClassExpression768,PgClassExpression769,PgClassExpression770,PgClassExpression772,PgClassExpression773,PgClassExpression774,PgClassExpression776,PgClassExpression777,PgClassExpression778,PgClassExpression785,Access786,Access789,PgClassExpression792,Access793,Access796,PgClassExpression799,Access800,Access803,PgClassExpression806,PgClassExpression807,PgClassExpression808,PgClassExpression809,PgClassExpression810,PgClassExpression811,PgClassExpression818,PgClassExpression826,PgClassExpression827,PgSelect828,First832,PgSelectRows833,PgSelectSingle834,PgClassExpression835,PgClassExpression836,PgClassExpression837,PgClassExpression838,PgClassExpression839,PgClassExpression840,PgClassExpression841,PgClassExpression842,PgSelect843,First845,PgSelectRows846,PgSelectSingle847,PgClassExpression848,PgSelect849,First851,PgSelectRows852,PgSelectSingle853,PgClassExpression861,PgSelect862,First864,PgSelectRows865,PgSelectSingle866,PgClassExpression874,PgClassExpression875,PgSelect876,First878,PgSelectRows879,PgSelectSingle880,PgClassExpression888,PgSelect889,First891,PgSelectRows892,PgSelectSingle893,PgClassExpression923,PgClassExpression926,PgClassExpression929,PgClassExpression930,PgClassExpression931,PgClassExpression932,PgClassExpression933,PgClassExpression934,PgClassExpression935,PgClassExpression936,PgClassExpression937,PgClassExpression938,PgClassExpression939,PgClassExpression940,PgClassExpression942,PgClassExpression944,PgClassExpression945,PgSelect948,First950,PgSelectRows951,PgSelectSingle952,PgSelect956,First958,PgSelectRows959,PgSelectSingle960,PgClassExpression963,PgClassExpression964 bucket92 - Bucket93("Bucket 93 (listItem)

ROOT __Item{93}ᐸ770ᐳ[771]"):::bucket - classDef bucket93 stroke:#dda0dd - class Bucket93,__Item771 bucket93 - Bucket94("Bucket 94 (listItem)

ROOT __Item{94}ᐸ774ᐳ[775]"):::bucket - classDef bucket94 stroke:#ff0000 - class Bucket94,__Item775 bucket94 - Bucket95("Bucket 95 (nullableBoundary)
Deps: 778

ROOT PgClassExpression{92}ᐸ__types__....ble_range”ᐳ[778]"):::bucket - classDef bucket95 stroke:#ffff00 - class Bucket95,Access779,Access782 bucket95 - Bucket96("Bucket 96 (nullableBoundary)
Deps: 779, 778

ROOT Access{95}ᐸ778.startᐳ[779]"):::bucket - classDef bucket96 stroke:#00ffff - class Bucket96 bucket96 - Bucket97("Bucket 97 (nullableBoundary)
Deps: 782, 778

ROOT Access{95}ᐸ778.endᐳ[782]"):::bucket - classDef bucket97 stroke:#4169e1 - class Bucket97 bucket97 - Bucket98("Bucket 98 (nullableBoundary)
Deps: 786, 785

ROOT Access{92}ᐸ785.startᐳ[786]"):::bucket - classDef bucket98 stroke:#3cb371 - class Bucket98 bucket98 - Bucket99("Bucket 99 (nullableBoundary)
Deps: 789, 785

ROOT Access{92}ᐸ785.endᐳ[789]"):::bucket - classDef bucket99 stroke:#a52a2a - class Bucket99 bucket99 - Bucket100("Bucket 100 (nullableBoundary)
Deps: 793, 792

ROOT Access{92}ᐸ792.startᐳ[793]"):::bucket - classDef bucket100 stroke:#ff00ff - class Bucket100 bucket100 - Bucket101("Bucket 101 (nullableBoundary)
Deps: 796, 792

ROOT Access{92}ᐸ792.endᐳ[796]"):::bucket - classDef bucket101 stroke:#f5deb3 - class Bucket101 bucket101 - Bucket102("Bucket 102 (nullableBoundary)
Deps: 800, 799

ROOT Access{92}ᐸ799.startᐳ[800]"):::bucket - classDef bucket102 stroke:#696969 - class Bucket102 bucket102 - Bucket103("Bucket 103 (nullableBoundary)
Deps: 803, 799

ROOT Access{92}ᐸ799.endᐳ[803]"):::bucket - classDef bucket103 stroke:#00bfff - class Bucket103 bucket103 - Bucket104("Bucket 104 (listItem)

ROOT __Item{104}ᐸ818ᐳ[819]"):::bucket - classDef bucket104 stroke:#7f007f - class Bucket104,__Item819 bucket104 - Bucket105("Bucket 105 (nullableBoundary)
Deps: 819

ROOT __Item{104}ᐸ818ᐳ[819]"):::bucket - classDef bucket105 stroke:#ffa500 - class Bucket105 bucket105 - Bucket106("Bucket 106 (nullableBoundary)
Deps: 853

ROOT PgSelectSingle{92}ᐸfrmcdc_compoundTypeᐳ[853]"):::bucket - classDef bucket106 stroke:#0000ff - class Bucket106,PgClassExpression854,PgClassExpression855,PgClassExpression856,PgClassExpression857,PgClassExpression858,PgClassExpression859,PgClassExpression860 bucket106 - Bucket107("Bucket 107 (nullableBoundary)
Deps: 866

ROOT PgSelectSingle{92}ᐸfrmcdc_compoundTypeᐳ[866]"):::bucket - classDef bucket107 stroke:#7fff00 - class Bucket107,PgClassExpression867,PgClassExpression868,PgClassExpression869,PgClassExpression870,PgClassExpression871,PgClassExpression872,PgClassExpression873 bucket107 - Bucket108("Bucket 108 (nullableBoundary)
Deps: 880

ROOT PgSelectSingle{92}ᐸfrmcdc_compoundTypeᐳ[880]"):::bucket - classDef bucket108 stroke:#ff1493 - class Bucket108,PgClassExpression881,PgClassExpression882,PgClassExpression883,PgClassExpression884,PgClassExpression885,PgClassExpression886,PgClassExpression887 bucket108 - Bucket109("Bucket 109 (nullableBoundary)
Deps: 893, 737

ROOT PgSelectSingle{92}ᐸfrmcdc_nestedCompoundTypeᐳ[893]
1:
ᐳ: 894, 909, 922
2: PgSelect[895], PgSelect[910]
3: PgSelectRows[900], PgSelectRows[913]
ᐳ: 899, 901, 912, 914"):::bucket - classDef bucket109 stroke:#808000 - class Bucket109,PgClassExpression894,PgSelect895,First899,PgSelectRows900,PgSelectSingle901,PgClassExpression909,PgSelect910,First912,PgSelectRows913,PgSelectSingle914,PgClassExpression922 bucket109 - Bucket110("Bucket 110 (nullableBoundary)
Deps: 901

ROOT PgSelectSingle{109}ᐸfrmcdc_compoundTypeᐳ[901]"):::bucket - classDef bucket110 stroke:#dda0dd - class Bucket110,PgClassExpression902,PgClassExpression903,PgClassExpression904,PgClassExpression905,PgClassExpression906,PgClassExpression907,PgClassExpression908 bucket110 - Bucket111("Bucket 111 (nullableBoundary)
Deps: 914

ROOT PgSelectSingle{109}ᐸfrmcdc_compoundTypeᐳ[914]"):::bucket - classDef bucket111 stroke:#ff0000 - class Bucket111,PgClassExpression915,PgClassExpression916,PgClassExpression917,PgClassExpression918,PgClassExpression919,PgClassExpression920,PgClassExpression921 bucket111 - Bucket112("Bucket 112 (nullableBoundary)
Deps: 926

ROOT PgClassExpression{92}ᐸ__types__....ablePoint”ᐳ[926]"):::bucket - classDef bucket112 stroke:#ffff00 - class Bucket112 bucket112 - Bucket113("Bucket 113 (listItem)

ROOT __Item{113}ᐸ940ᐳ[941]"):::bucket - classDef bucket113 stroke:#00ffff - class Bucket113,__Item941 bucket113 - Bucket114("Bucket 114 (listItem)

ROOT __Item{114}ᐸ942ᐳ[943]"):::bucket - classDef bucket114 stroke:#4169e1 - class Bucket114,__Item943 bucket114 - Bucket115("Bucket 115 (listItem)

ROOT __Item{115}ᐸ945ᐳ[946]"):::bucket - classDef bucket115 stroke:#3cb371 - class Bucket115,__Item946 bucket115 - Bucket116("Bucket 116 (nullableBoundary)
Deps: 952

ROOT PgSelectSingle{92}ᐸpostᐳ[952]"):::bucket - classDef bucket116 stroke:#a52a2a - class Bucket116,PgClassExpression953,PgClassExpression954 bucket116 - Bucket117("Bucket 117 (nullableBoundary)
Deps: 960

ROOT PgSelectSingle{92}ᐸpostᐳ[960]"):::bucket - classDef bucket117 stroke:#ff00ff - class Bucket117,PgClassExpression961,PgClassExpression962 bucket117 - Bucket118("Bucket 118 (listItem)

ROOT __Item{118}ᐸ964ᐳ[965]"):::bucket - classDef bucket118 stroke:#f5deb3 - class Bucket118,__Item965 bucket118 - Bucket119("Bucket 119 (mutationField)
Deps: 1267, 1268, 1269, 1270, 1316, 1317, 1312, 1313, 1346, 1347, 1348, 1280, 1281, 1282, 1283, 1314, 1324, 1284, 1325, 1326, 1327, 1292, 1293, 1294, 1295, 1296, 1297, 1298, 1299, 1309, 1332, 2

1: Access[1039]
2: Access[1040]
3: Object[1041]
4: PgInsertSingle[1038]
5:
ᐳ: Object[1042]"):::bucket - classDef bucket119 stroke:#696969 - class Bucket119,PgInsertSingle1038,Access1039,Access1040,Object1041,Object1042 bucket119 - Bucket120("Bucket 120 (nullableBoundary)
Deps: 1042, 1038, 1041

ROOT Object{119}ᐸ{result}ᐳ[1042]"):::bucket - classDef bucket120 stroke:#00bfff - class Bucket120 bucket120 - Bucket121("Bucket 121 (nullableBoundary)
Deps: 1038, 1041

ROOT PgInsertSingle{119}ᐸtypes(smallint,bigint,numeric,decimal,boolean,varchar,enum,enum_array,domain,domain2,text_array,json,jsonb,numrange,daterange,an_int_range,timestamp,timestamptz,date,time,timetz,interval,interval_array,money,compound_type,nested_compound_type,point,regproc,regprocedure,regoper,regoperator,regclass,regtype,regconfig,regdictionary,ltree,ltree_array)ᐳ[1038]
1:
ᐳ: 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1072, 1073, 1074, 1076, 1077, 1078, 1085, 1092, 1099, 1106, 1107, 1108, 1109, 1110, 1111, 1118, 1126, 1127, 1142, 1175, 1188, 1223, 1226, 1229, 1230, 1231, 1232, 1233, 1234, 1235, 1236, 1237, 1238, 1239, 1240, 1242, 1244, 1245, 1263, 1264, 1086, 1089, 1093, 1096, 1100, 1103
2: 1128, 1143, 1176, 1189, 1248, 1256
3: 1133, 1146, 1179, 1192, 1251, 1259
ᐳ: 1132, 1134, 1135, 1136, 1137, 1138, 1139, 1140, 1141, 1145, 1147, 1148, 1161, 1174, 1178, 1180, 1191, 1193, 1250, 1252, 1258, 1260
4: PgSelect[1149], PgSelect[1162]
5: PgSelectRows[1152], PgSelectRows[1165]
ᐳ: 1151, 1153, 1164, 1166"):::bucket - classDef bucket121 stroke:#7f007f - class Bucket121,PgClassExpression1062,PgClassExpression1063,PgClassExpression1064,PgClassExpression1065,PgClassExpression1066,PgClassExpression1067,PgClassExpression1068,PgClassExpression1069,PgClassExpression1070,PgClassExpression1072,PgClassExpression1073,PgClassExpression1074,PgClassExpression1076,PgClassExpression1077,PgClassExpression1078,PgClassExpression1085,Access1086,Access1089,PgClassExpression1092,Access1093,Access1096,PgClassExpression1099,Access1100,Access1103,PgClassExpression1106,PgClassExpression1107,PgClassExpression1108,PgClassExpression1109,PgClassExpression1110,PgClassExpression1111,PgClassExpression1118,PgClassExpression1126,PgClassExpression1127,PgSelect1128,First1132,PgSelectRows1133,PgSelectSingle1134,PgClassExpression1135,PgClassExpression1136,PgClassExpression1137,PgClassExpression1138,PgClassExpression1139,PgClassExpression1140,PgClassExpression1141,PgClassExpression1142,PgSelect1143,First1145,PgSelectRows1146,PgSelectSingle1147,PgClassExpression1148,PgSelect1149,First1151,PgSelectRows1152,PgSelectSingle1153,PgClassExpression1161,PgSelect1162,First1164,PgSelectRows1165,PgSelectSingle1166,PgClassExpression1174,PgClassExpression1175,PgSelect1176,First1178,PgSelectRows1179,PgSelectSingle1180,PgClassExpression1188,PgSelect1189,First1191,PgSelectRows1192,PgSelectSingle1193,PgClassExpression1223,PgClassExpression1226,PgClassExpression1229,PgClassExpression1230,PgClassExpression1231,PgClassExpression1232,PgClassExpression1233,PgClassExpression1234,PgClassExpression1235,PgClassExpression1236,PgClassExpression1237,PgClassExpression1238,PgClassExpression1239,PgClassExpression1240,PgClassExpression1242,PgClassExpression1244,PgClassExpression1245,PgSelect1248,First1250,PgSelectRows1251,PgSelectSingle1252,PgSelect1256,First1258,PgSelectRows1259,PgSelectSingle1260,PgClassExpression1263,PgClassExpression1264 bucket121 - Bucket122("Bucket 122 (listItem)

ROOT __Item{122}ᐸ1070ᐳ[1071]"):::bucket - classDef bucket122 stroke:#ffa500 - class Bucket122,__Item1071 bucket122 - Bucket123("Bucket 123 (listItem)

ROOT __Item{123}ᐸ1074ᐳ[1075]"):::bucket - classDef bucket123 stroke:#0000ff - class Bucket123,__Item1075 bucket123 - Bucket124("Bucket 124 (nullableBoundary)
Deps: 1078

ROOT PgClassExpression{121}ᐸ__types__....ble_range”ᐳ[1078]"):::bucket - classDef bucket124 stroke:#7fff00 - class Bucket124,Access1079,Access1082 bucket124 - Bucket125("Bucket 125 (nullableBoundary)
Deps: 1079, 1078

ROOT Access{124}ᐸ1078.startᐳ[1079]"):::bucket - classDef bucket125 stroke:#ff1493 - class Bucket125 bucket125 - Bucket126("Bucket 126 (nullableBoundary)
Deps: 1082, 1078

ROOT Access{124}ᐸ1078.endᐳ[1082]"):::bucket - classDef bucket126 stroke:#808000 - class Bucket126 bucket126 - Bucket127("Bucket 127 (nullableBoundary)
Deps: 1086, 1085

ROOT Access{121}ᐸ1085.startᐳ[1086]"):::bucket - classDef bucket127 stroke:#dda0dd - class Bucket127 bucket127 - Bucket128("Bucket 128 (nullableBoundary)
Deps: 1089, 1085

ROOT Access{121}ᐸ1085.endᐳ[1089]"):::bucket - classDef bucket128 stroke:#ff0000 - class Bucket128 bucket128 - Bucket129("Bucket 129 (nullableBoundary)
Deps: 1093, 1092

ROOT Access{121}ᐸ1092.startᐳ[1093]"):::bucket - classDef bucket129 stroke:#ffff00 - class Bucket129 bucket129 - Bucket130("Bucket 130 (nullableBoundary)
Deps: 1096, 1092

ROOT Access{121}ᐸ1092.endᐳ[1096]"):::bucket - classDef bucket130 stroke:#00ffff - class Bucket130 bucket130 - Bucket131("Bucket 131 (nullableBoundary)
Deps: 1100, 1099

ROOT Access{121}ᐸ1099.startᐳ[1100]"):::bucket - classDef bucket131 stroke:#4169e1 - class Bucket131 bucket131 - Bucket132("Bucket 132 (nullableBoundary)
Deps: 1103, 1099

ROOT Access{121}ᐸ1099.endᐳ[1103]"):::bucket - classDef bucket132 stroke:#3cb371 - class Bucket132 bucket132 - Bucket133("Bucket 133 (listItem)

ROOT __Item{133}ᐸ1118ᐳ[1119]"):::bucket - classDef bucket133 stroke:#a52a2a - class Bucket133,__Item1119 bucket133 - Bucket134("Bucket 134 (nullableBoundary)
Deps: 1119

ROOT __Item{133}ᐸ1118ᐳ[1119]"):::bucket - classDef bucket134 stroke:#ff00ff - class Bucket134 bucket134 - Bucket135("Bucket 135 (nullableBoundary)
Deps: 1153

ROOT PgSelectSingle{121}ᐸfrmcdc_compoundTypeᐳ[1153]"):::bucket - classDef bucket135 stroke:#f5deb3 - class Bucket135,PgClassExpression1154,PgClassExpression1155,PgClassExpression1156,PgClassExpression1157,PgClassExpression1158,PgClassExpression1159,PgClassExpression1160 bucket135 - Bucket136("Bucket 136 (nullableBoundary)
Deps: 1166

ROOT PgSelectSingle{121}ᐸfrmcdc_compoundTypeᐳ[1166]"):::bucket - classDef bucket136 stroke:#696969 - class Bucket136,PgClassExpression1167,PgClassExpression1168,PgClassExpression1169,PgClassExpression1170,PgClassExpression1171,PgClassExpression1172,PgClassExpression1173 bucket136 - Bucket137("Bucket 137 (nullableBoundary)
Deps: 1180

ROOT PgSelectSingle{121}ᐸfrmcdc_compoundTypeᐳ[1180]"):::bucket - classDef bucket137 stroke:#00bfff - class Bucket137,PgClassExpression1181,PgClassExpression1182,PgClassExpression1183,PgClassExpression1184,PgClassExpression1185,PgClassExpression1186,PgClassExpression1187 bucket137 - Bucket138("Bucket 138 (nullableBoundary)
Deps: 1193, 1041

ROOT PgSelectSingle{121}ᐸfrmcdc_nestedCompoundTypeᐳ[1193]
1:
ᐳ: 1194, 1209, 1222
2: PgSelect[1195], PgSelect[1210]
3: PgSelectRows[1200], PgSelectRows[1213]
ᐳ: 1199, 1201, 1212, 1214"):::bucket - classDef bucket138 stroke:#7f007f - class Bucket138,PgClassExpression1194,PgSelect1195,First1199,PgSelectRows1200,PgSelectSingle1201,PgClassExpression1209,PgSelect1210,First1212,PgSelectRows1213,PgSelectSingle1214,PgClassExpression1222 bucket138 - Bucket139("Bucket 139 (nullableBoundary)
Deps: 1201

ROOT PgSelectSingle{138}ᐸfrmcdc_compoundTypeᐳ[1201]"):::bucket - classDef bucket139 stroke:#ffa500 - class Bucket139,PgClassExpression1202,PgClassExpression1203,PgClassExpression1204,PgClassExpression1205,PgClassExpression1206,PgClassExpression1207,PgClassExpression1208 bucket139 - Bucket140("Bucket 140 (nullableBoundary)
Deps: 1214

ROOT PgSelectSingle{138}ᐸfrmcdc_compoundTypeᐳ[1214]"):::bucket - classDef bucket140 stroke:#0000ff - class Bucket140,PgClassExpression1215,PgClassExpression1216,PgClassExpression1217,PgClassExpression1218,PgClassExpression1219,PgClassExpression1220,PgClassExpression1221 bucket140 - Bucket141("Bucket 141 (nullableBoundary)
Deps: 1226

ROOT PgClassExpression{121}ᐸ__types__....ablePoint”ᐳ[1226]"):::bucket - classDef bucket141 stroke:#7fff00 - class Bucket141 bucket141 - Bucket142("Bucket 142 (listItem)

ROOT __Item{142}ᐸ1240ᐳ[1241]"):::bucket - classDef bucket142 stroke:#ff1493 - class Bucket142,__Item1241 bucket142 - Bucket143("Bucket 143 (listItem)

ROOT __Item{143}ᐸ1242ᐳ[1243]"):::bucket - classDef bucket143 stroke:#808000 - class Bucket143,__Item1243 bucket143 - Bucket144("Bucket 144 (listItem)

ROOT __Item{144}ᐸ1245ᐳ[1246]"):::bucket - classDef bucket144 stroke:#dda0dd - class Bucket144,__Item1246 bucket144 - Bucket145("Bucket 145 (nullableBoundary)
Deps: 1252

ROOT PgSelectSingle{121}ᐸpostᐳ[1252]"):::bucket - classDef bucket145 stroke:#ff0000 - class Bucket145,PgClassExpression1253,PgClassExpression1254 bucket145 - Bucket146("Bucket 146 (nullableBoundary)
Deps: 1260

ROOT PgSelectSingle{121}ᐸpostᐳ[1260]"):::bucket - classDef bucket146 stroke:#ffff00 - class Bucket146,PgClassExpression1261,PgClassExpression1262 bucket146 - Bucket147("Bucket 147 (listItem)

ROOT __Item{147}ᐸ1264ᐳ[1265]"):::bucket - classDef bucket147 stroke:#00ffff - class Bucket147,__Item1265 bucket147 - Bucket0 --> Bucket1 & Bucket30 & Bucket60 & Bucket90 & Bucket119 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 & Bucket6 & Bucket9 & Bucket10 & Bucket11 & Bucket12 & Bucket13 & Bucket14 & Bucket15 & Bucket17 & Bucket18 & Bucket19 & Bucket20 & Bucket23 & Bucket24 & Bucket25 & Bucket26 & Bucket27 & Bucket28 & Bucket29 - Bucket6 --> Bucket7 & Bucket8 - Bucket15 --> Bucket16 - Bucket20 --> Bucket21 & Bucket22 - Bucket30 --> Bucket31 - Bucket31 --> Bucket32 - Bucket32 --> Bucket33 - Bucket33 --> Bucket34 & Bucket35 & Bucket36 & Bucket39 & Bucket40 & Bucket41 & Bucket42 & Bucket43 & Bucket44 & Bucket45 & Bucket47 & Bucket48 & Bucket49 & Bucket50 & Bucket53 & Bucket54 & Bucket55 & Bucket56 & Bucket57 & Bucket58 & Bucket59 - Bucket36 --> Bucket37 & Bucket38 - Bucket45 --> Bucket46 - Bucket50 --> Bucket51 & Bucket52 - Bucket60 --> Bucket61 - Bucket61 --> Bucket62 - Bucket62 --> Bucket63 - Bucket63 --> Bucket64 & Bucket65 & Bucket66 & Bucket69 & Bucket70 & Bucket71 & Bucket72 & Bucket73 & Bucket74 & Bucket75 & Bucket77 & Bucket78 & Bucket79 & Bucket80 & Bucket83 & Bucket84 & Bucket85 & Bucket86 & Bucket87 & Bucket88 & Bucket89 - Bucket66 --> Bucket67 & Bucket68 - Bucket75 --> Bucket76 - Bucket80 --> Bucket81 & Bucket82 - Bucket90 --> Bucket91 - Bucket91 --> Bucket92 - Bucket92 --> Bucket93 & Bucket94 & Bucket95 & Bucket98 & Bucket99 & Bucket100 & Bucket101 & Bucket102 & Bucket103 & Bucket104 & Bucket106 & Bucket107 & Bucket108 & Bucket109 & Bucket112 & Bucket113 & Bucket114 & Bucket115 & Bucket116 & Bucket117 & Bucket118 - Bucket95 --> Bucket96 & Bucket97 - Bucket104 --> Bucket105 - Bucket109 --> Bucket110 & Bucket111 - Bucket119 --> Bucket120 - Bucket120 --> Bucket121 - Bucket121 --> Bucket122 & Bucket123 & Bucket124 & Bucket127 & Bucket128 & Bucket129 & Bucket130 & Bucket131 & Bucket132 & Bucket133 & Bucket135 & Bucket136 & Bucket137 & Bucket138 & Bucket141 & Bucket142 & Bucket143 & Bucket144 & Bucket145 & Bucket146 & Bucket147 - Bucket124 --> Bucket125 & Bucket126 - Bucket133 --> Bucket134 - Bucket138 --> Bucket139 & Bucket140 + class Bucket42,__Item1231 bucket42 + Bucket0 --> Bucket1 & Bucket9 & Bucket18 & Bucket27 & Bucket35 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 + Bucket9 --> Bucket10 + Bucket10 --> Bucket11 & Bucket12 & Bucket13 & Bucket14 & Bucket15 & Bucket16 & Bucket17 + Bucket18 --> Bucket19 + Bucket19 --> Bucket20 & Bucket21 & Bucket22 & Bucket23 & Bucket24 & Bucket25 & Bucket26 + Bucket27 --> Bucket28 & Bucket29 & Bucket30 & Bucket31 & Bucket32 & Bucket33 & Bucket34 + Bucket35 --> Bucket36 & Bucket37 & Bucket38 & Bucket39 & Bucket40 & Bucket41 & Bucket42 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/only.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/only.mermaid index 6304fc87a0..22f033a1e6 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/only.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/only.mermaid @@ -9,183 +9,186 @@ graph TD %% plan dependencies - Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access11 & Access12 --> Object13 + PgUnionAll14[["PgUnionAll[14∈0] ➊"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda13[["Lambda[13∈0] ➊
ᐸlimitToTypesᐳ"]]:::unbatchedplan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Lambda13 -->|rejectNull| PgUnionAll14 + Object11 & Connection12 --> PgUnionAll14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access11 - __Value2 --> Access12 + __Value2 --> Access9 + __Value2 --> Access10 + Constant7{{"Constant[7∈0] ➊
ᐸ[ 'GcpApplication', 'AwsApplication' ]ᐳ"}}:::plan + Constant7 --> Lambda13 + Access104{{"Access[104∈0] ➊
ᐸ14.itemsᐳ"}}:::plan + PgUnionAll14 --> Access104 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - PgUnionAll15[["PgUnionAll[15∈1] ➊"]]:::plan - Object13 & Connection14 --> PgUnionAll15 - Access106{{"Access[106∈1] ➊
ᐸ15.itemsᐳ"}}:::plan - PgUnionAll15 --> Access106 - __Item17[/"__Item[17∈2]
ᐸ106ᐳ"\]:::itemplan - Access106 ==> __Item17 - PgUnionAllSingle18["PgUnionAllSingle[18∈2]"]:::plan - __Item17 --> PgUnionAllSingle18 - Access19{{"Access[19∈2]
ᐸ18.1ᐳ"}}:::plan - PgUnionAllSingle18 --> Access19 - PgUnionAll36[["PgUnionAll[36∈3]
ᐳAwsApplication"]]:::plan - PgClassExpression32{{"PgClassExpression[32∈3]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan - Connection35{{"Connection[35∈3] ➊
ᐸ33ᐳ
ᐳAwsApplication"}}:::plan - Object13 & PgClassExpression32 & Connection35 --> PgUnionAll36 - PgUnionAll77[["PgUnionAll[77∈3]
ᐳGcpApplication"]]:::plan - PgClassExpression73{{"PgClassExpression[73∈3]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan - Connection76{{"Connection[76∈3] ➊
ᐸ74ᐳ
ᐳGcpApplication"}}:::plan - Object13 & PgClassExpression73 & Connection76 --> PgUnionAll77 - PgSelect22[["PgSelect[22∈3]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan - Access21{{"Access[21∈3]
ᐸ20.0ᐳ"}}:::plan - Object13 & Access21 --> PgSelect22 - PgSelect65[["PgSelect[65∈3]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan - Access64{{"Access[64∈3]
ᐸ63.0ᐳ"}}:::plan - Object13 & Access64 --> PgSelect65 - JSONParse20[["JSONParse[20∈3]
ᐸ19ᐳ
ᐳAwsApplication"]]:::plan - Access19 --> JSONParse20 - JSONParse20 --> Access21 - First26{{"First[26∈3]"}}:::plan - PgSelectRows27[["PgSelectRows[27∈3]"]]:::plan - PgSelectRows27 --> First26 - PgSelect22 --> PgSelectRows27 - PgSelectSingle28{{"PgSelectSingle[28∈3]
ᐸaws_applicationsᐳ"}}:::plan - First26 --> PgSelectSingle28 - PgClassExpression29{{"PgClassExpression[29∈3]
ᐸ__aws_appl..._.”aws_id”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression29 - PgSelectSingle28 --> PgClassExpression32 - JSONParse63[["JSONParse[63∈3]
ᐸ19ᐳ
ᐳGcpApplication"]]:::plan - Access19 --> JSONParse63 - JSONParse63 --> Access64 - First67{{"First[67∈3]"}}:::plan - PgSelectRows68[["PgSelectRows[68∈3]"]]:::plan - PgSelectRows68 --> First67 - PgSelect65 --> PgSelectRows68 - PgSelectSingle69{{"PgSelectSingle[69∈3]
ᐸgcp_applicationsᐳ"}}:::plan - First67 --> PgSelectSingle69 - PgClassExpression70{{"PgClassExpression[70∈3]
ᐸ__gcp_appl..._.”gcp_id”ᐳ"}}:::plan - PgSelectSingle69 --> PgClassExpression70 - PgSelectSingle69 --> PgClassExpression73 - Access104{{"Access[104∈3]
ᐸ36.itemsᐳ"}}:::plan - PgUnionAll36 --> Access104 - Access105{{"Access[105∈3]
ᐸ77.itemsᐳ"}}:::plan - PgUnionAll77 --> Access105 - __Item38[/"__Item[38∈4]
ᐸ104ᐳ"\]:::itemplan - Access104 ==> __Item38 - PgUnionAllSingle39["PgUnionAllSingle[39∈4]"]:::plan - __Item38 --> PgUnionAllSingle39 - Access40{{"Access[40∈4]
ᐸ39.1ᐳ"}}:::plan - PgUnionAllSingle39 --> Access40 - PgSelect43[["PgSelect[43∈5]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan - Access42{{"Access[42∈5]
ᐸ41.0ᐳ"}}:::plan - Object13 & Access42 --> PgSelect43 - PgSelect55[["PgSelect[55∈5]
ᐸthird_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan - Access54{{"Access[54∈5]
ᐸ53.0ᐳ"}}:::plan - Object13 & Access54 --> PgSelect55 - JSONParse41[["JSONParse[41∈5]
ᐸ40ᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan - Access40 --> JSONParse41 - JSONParse41 --> Access42 - First47{{"First[47∈5]"}}:::plan - PgSelectRows48[["PgSelectRows[48∈5]"]]:::plan - PgSelectRows48 --> First47 - PgSelect43 --> PgSelectRows48 - PgSelectSingle49{{"PgSelectSingle[49∈5]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan - First47 --> PgSelectSingle49 - PgClassExpression50{{"PgClassExpression[50∈5]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression50 - PgClassExpression51{{"PgClassExpression[51∈5]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__first_pa...team_name”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression52 - JSONParse53[["JSONParse[53∈5]
ᐸ40ᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan - Access40 --> JSONParse53 - JSONParse53 --> Access54 - First57{{"First[57∈5]"}}:::plan - PgSelectRows58[["PgSelectRows[58∈5]"]]:::plan - PgSelectRows58 --> First57 - PgSelect55 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈5]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan - First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈5]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression60 - PgClassExpression61{{"PgClassExpression[61∈5]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression61 - PgClassExpression62{{"PgClassExpression[62∈5]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression62 - __Item79[/"__Item[79∈6]
ᐸ105ᐳ"\]:::itemplan - Access105 ==> __Item79 - PgUnionAllSingle80["PgUnionAllSingle[80∈6]"]:::plan - __Item79 --> PgUnionAllSingle80 - Access81{{"Access[81∈6]
ᐸ80.1ᐳ"}}:::plan - PgUnionAllSingle80 --> Access81 - PgSelect84[["PgSelect[84∈7]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan - Access83{{"Access[83∈7]
ᐸ82.0ᐳ"}}:::plan - Object13 & Access83 --> PgSelect84 - PgSelect96[["PgSelect[96∈7]
ᐸthird_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan - Access95{{"Access[95∈7]
ᐸ94.0ᐳ"}}:::plan - Object13 & Access95 --> PgSelect96 - JSONParse82[["JSONParse[82∈7]
ᐸ81ᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan - Access81 --> JSONParse82 - JSONParse82 --> Access83 - First88{{"First[88∈7]"}}:::plan - PgSelectRows89[["PgSelectRows[89∈7]"]]:::plan - PgSelectRows89 --> First88 - PgSelect84 --> PgSelectRows89 - PgSelectSingle90{{"PgSelectSingle[90∈7]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan - First88 --> PgSelectSingle90 - PgClassExpression91{{"PgClassExpression[91∈7]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression91 - PgClassExpression92{{"PgClassExpression[92∈7]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression92 - PgClassExpression93{{"PgClassExpression[93∈7]
ᐸ__first_pa...team_name”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression93 - JSONParse94[["JSONParse[94∈7]
ᐸ81ᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan - Access81 --> JSONParse94 - JSONParse94 --> Access95 - First98{{"First[98∈7]"}}:::plan - PgSelectRows99[["PgSelectRows[99∈7]"]]:::plan - PgSelectRows99 --> First98 - PgSelect96 --> PgSelectRows99 - PgSelectSingle100{{"PgSelectSingle[100∈7]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan - First98 --> PgSelectSingle100 - PgClassExpression101{{"PgClassExpression[101∈7]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle100 --> PgClassExpression101 - PgClassExpression102{{"PgClassExpression[102∈7]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle100 --> PgClassExpression102 - PgClassExpression103{{"PgClassExpression[103∈7]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan - PgSelectSingle100 --> PgClassExpression103 + Constant29{{"Constant[29∈0] ➊
ᐸ[ 'ThirdPartyVulnerability' ]ᐳ"}}:::plan + __Item16[/"__Item[16∈1]
ᐸ104ᐳ"\]:::itemplan + Access104 ==> __Item16 + PgUnionAllSingle17["PgUnionAllSingle[17∈1]"]:::plan + __Item16 --> PgUnionAllSingle17 + Access18{{"Access[18∈1]
ᐸ17.1ᐳ"}}:::plan + PgUnionAllSingle17 --> Access18 + PgUnionAll35[["PgUnionAll[35∈2]
ᐳAwsApplication"]]:::plan + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan + Lambda34[["Lambda[34∈2] ➊
ᐸlimitToTypesᐳ
ᐳAwsApplication
ᐳGcpApplication"]]:::unbatchedplan + Connection33{{"Connection[33∈2] ➊
ᐸ31ᐳ
ᐳAwsApplication"}}:::plan + Object11 & PgClassExpression30 & Lambda34 & Connection33 --> PgUnionAll35 + PgUnionAll75[["PgUnionAll[75∈2]
ᐳGcpApplication"]]:::plan + PgClassExpression70{{"PgClassExpression[70∈2]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan + Connection73{{"Connection[73∈2] ➊
ᐸ71ᐳ
ᐳGcpApplication"}}:::plan + Object11 & PgClassExpression70 & Lambda34 & Connection73 --> PgUnionAll75 + PgSelect21[["PgSelect[21∈2]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan + Access20{{"Access[20∈2]
ᐸ19.0ᐳ"}}:::plan + Object11 & Access20 --> PgSelect21 + PgSelect64[["PgSelect[64∈2]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan + Access63{{"Access[63∈2]
ᐸ62.0ᐳ"}}:::plan + Object11 & Access63 --> PgSelect64 + JSONParse19[["JSONParse[19∈2]
ᐸ18ᐳ
ᐳAwsApplication"]]:::plan + Access18 --> JSONParse19 + JSONParse19 --> Access20 + First25{{"First[25∈2]"}}:::plan + PgSelectRows26[["PgSelectRows[26∈2]"]]:::plan + PgSelectRows26 --> First25 + PgSelect21 --> PgSelectRows26 + PgSelectSingle27{{"PgSelectSingle[27∈2]
ᐸaws_applicationsᐳ"}}:::plan + First25 --> PgSelectSingle27 + PgClassExpression28{{"PgClassExpression[28∈2]
ᐸ__aws_appl..._.”aws_id”ᐳ"}}:::plan + PgSelectSingle27 --> PgClassExpression28 + PgSelectSingle27 --> PgClassExpression30 + Constant29 --> Lambda34 + JSONParse62[["JSONParse[62∈2]
ᐸ18ᐳ
ᐳGcpApplication"]]:::plan + Access18 --> JSONParse62 + JSONParse62 --> Access63 + First66{{"First[66∈2]"}}:::plan + PgSelectRows67[["PgSelectRows[67∈2]"]]:::plan + PgSelectRows67 --> First66 + PgSelect64 --> PgSelectRows67 + PgSelectSingle68{{"PgSelectSingle[68∈2]
ᐸgcp_applicationsᐳ"}}:::plan + First66 --> PgSelectSingle68 + PgClassExpression69{{"PgClassExpression[69∈2]
ᐸ__gcp_appl..._.”gcp_id”ᐳ"}}:::plan + PgSelectSingle68 --> PgClassExpression69 + PgSelectSingle68 --> PgClassExpression70 + Access102{{"Access[102∈2]
ᐸ35.itemsᐳ"}}:::plan + PgUnionAll35 --> Access102 + Access103{{"Access[103∈2]
ᐸ75.itemsᐳ"}}:::plan + PgUnionAll75 --> Access103 + __Item37[/"__Item[37∈3]
ᐸ102ᐳ"\]:::itemplan + Access102 ==> __Item37 + PgUnionAllSingle38["PgUnionAllSingle[38∈3]"]:::plan + __Item37 --> PgUnionAllSingle38 + Access39{{"Access[39∈3]
ᐸ38.1ᐳ"}}:::plan + PgUnionAllSingle38 --> Access39 + PgSelect42[["PgSelect[42∈4]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan + Access41{{"Access[41∈4]
ᐸ40.0ᐳ"}}:::plan + Object11 & Access41 --> PgSelect42 + PgSelect54[["PgSelect[54∈4]
ᐸthird_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan + Access53{{"Access[53∈4]
ᐸ52.0ᐳ"}}:::plan + Object11 & Access53 --> PgSelect54 + JSONParse40[["JSONParse[40∈4]
ᐸ39ᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan + Access39 --> JSONParse40 + JSONParse40 --> Access41 + First46{{"First[46∈4]"}}:::plan + PgSelectRows47[["PgSelectRows[47∈4]"]]:::plan + PgSelectRows47 --> First46 + PgSelect42 --> PgSelectRows47 + PgSelectSingle48{{"PgSelectSingle[48∈4]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + First46 --> PgSelectSingle48 + PgClassExpression49{{"PgClassExpression[49∈4]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle48 --> PgClassExpression49 + PgClassExpression50{{"PgClassExpression[50∈4]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle48 --> PgClassExpression50 + PgClassExpression51{{"PgClassExpression[51∈4]
ᐸ__first_pa...team_name”ᐳ"}}:::plan + PgSelectSingle48 --> PgClassExpression51 + JSONParse52[["JSONParse[52∈4]
ᐸ39ᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan + Access39 --> JSONParse52 + JSONParse52 --> Access53 + First56{{"First[56∈4]"}}:::plan + PgSelectRows57[["PgSelectRows[57∈4]"]]:::plan + PgSelectRows57 --> First56 + PgSelect54 --> PgSelectRows57 + PgSelectSingle58{{"PgSelectSingle[58∈4]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + First56 --> PgSelectSingle58 + PgClassExpression59{{"PgClassExpression[59∈4]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression59 + PgClassExpression60{{"PgClassExpression[60∈4]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression60 + PgClassExpression61{{"PgClassExpression[61∈4]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression61 + __Item77[/"__Item[77∈5]
ᐸ103ᐳ"\]:::itemplan + Access103 ==> __Item77 + PgUnionAllSingle78["PgUnionAllSingle[78∈5]"]:::plan + __Item77 --> PgUnionAllSingle78 + Access79{{"Access[79∈5]
ᐸ78.1ᐳ"}}:::plan + PgUnionAllSingle78 --> Access79 + PgSelect82[["PgSelect[82∈6]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan + Access81{{"Access[81∈6]
ᐸ80.0ᐳ"}}:::plan + Object11 & Access81 --> PgSelect82 + PgSelect94[["PgSelect[94∈6]
ᐸthird_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan + Access93{{"Access[93∈6]
ᐸ92.0ᐳ"}}:::plan + Object11 & Access93 --> PgSelect94 + JSONParse80[["JSONParse[80∈6]
ᐸ79ᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan + Access79 --> JSONParse80 + JSONParse80 --> Access81 + First86{{"First[86∈6]"}}:::plan + PgSelectRows87[["PgSelectRows[87∈6]"]]:::plan + PgSelectRows87 --> First86 + PgSelect82 --> PgSelectRows87 + PgSelectSingle88{{"PgSelectSingle[88∈6]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + First86 --> PgSelectSingle88 + PgClassExpression89{{"PgClassExpression[89∈6]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle88 --> PgClassExpression89 + PgClassExpression90{{"PgClassExpression[90∈6]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle88 --> PgClassExpression90 + PgClassExpression91{{"PgClassExpression[91∈6]
ᐸ__first_pa...team_name”ᐳ"}}:::plan + PgSelectSingle88 --> PgClassExpression91 + JSONParse92[["JSONParse[92∈6]
ᐸ79ᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan + Access79 --> JSONParse92 + JSONParse92 --> Access93 + First96{{"First[96∈6]"}}:::plan + PgSelectRows97[["PgSelectRows[97∈6]"]]:::plan + PgSelectRows97 --> First96 + PgSelect94 --> PgSelectRows97 + PgSelectSingle98{{"PgSelectSingle[98∈6]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + First96 --> PgSelectSingle98 + PgClassExpression99{{"PgClassExpression[99∈6]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle98 --> PgClassExpression99 + PgClassExpression100{{"PgClassExpression[100∈6]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle98 --> PgClassExpression100 + PgClassExpression101{{"PgClassExpression[101∈6]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgSelectSingle98 --> PgClassExpression101 %% define steps subgraph "Buckets for queries/polymorphic/only" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 7, 9, 10, 29, 11, 12
2: Lambda[13]
3: PgUnionAll[14]
ᐳ: Access[104]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14

ROOT Connectionᐸ10ᐳ[14]"):::bucket + class Bucket0,__Value2,__Value4,Constant7,Access9,Access10,Object11,Connection12,Lambda13,PgUnionAll14,Constant29,Access104 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 6, 29

ROOT __Item{1}ᐸ104ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUnionAll15,Access106 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 13

ROOT __Item{2}ᐸ106ᐳ[17]"):::bucket + class Bucket1,__Item16,PgUnionAllSingle17,Access18 bucket1 + Bucket2("Bucket 2 (polymorphic)
AwsApplication,GcpApplication
Deps: 18, 11, 6, 29, 17
ᐳAwsApplication
ᐳGcpApplication

1: 19, 34, 62
ᐳ: 33, 73, 20, 63
2: PgSelect[21], PgSelect[64]
3: PgSelectRows[26], PgSelectRows[67]
ᐳ: 25, 27, 28, 30, 66, 68, 69, 70
4: PgUnionAll[35], PgUnionAll[75]
ᐳ: Access[102], Access[103]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item17,PgUnionAllSingle18,Access19 bucket2 - Bucket3("Bucket 3 (polymorphic)
AwsApplication,GcpApplication
Deps: 19, 13, 18
ᐳAwsApplication
ᐳGcpApplication

1: JSONParse[20], JSONParse[63]
ᐳ: 35, 76, 21, 64
2: PgSelect[22], PgSelect[65]
3: PgSelectRows[27], PgSelectRows[68]
ᐳ: 26, 28, 29, 32, 67, 69, 70, 73
4: PgUnionAll[36], PgUnionAll[77]
ᐳ: Access[104], Access[105]"):::bucket + class Bucket2,JSONParse19,Access20,PgSelect21,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression28,PgClassExpression30,Connection33,Lambda34,PgUnionAll35,JSONParse62,Access63,PgSelect64,First66,PgSelectRows67,PgSelectSingle68,PgClassExpression69,PgClassExpression70,Connection73,PgUnionAll75,Access102,Access103 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 11

ROOT __Item{3}ᐸ102ᐳ[37]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,JSONParse20,Access21,PgSelect22,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression29,PgClassExpression32,Connection35,PgUnionAll36,JSONParse63,Access64,PgSelect65,First67,PgSelectRows68,PgSelectSingle69,PgClassExpression70,PgClassExpression73,Connection76,PgUnionAll77,Access104,Access105 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 13

ROOT __Item{4}ᐸ104ᐳ[38]"):::bucket + class Bucket3,__Item37,PgUnionAllSingle38,Access39 bucket3 + Bucket4("Bucket 4 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 39, 11, 38
ᐳAwsApplicationᐳFirstPartyVulnerability
ᐳAwsApplicationᐳThirdPartyVulnerability

1: JSONParse[40], JSONParse[52]
ᐳ: Access[41], Access[53]
2: PgSelect[42], PgSelect[54]
3: PgSelectRows[47], PgSelectRows[57]
ᐳ: 46, 48, 49, 50, 51, 56, 58, 59, 60, 61"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item38,PgUnionAllSingle39,Access40 bucket4 - Bucket5("Bucket 5 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 40, 13, 39
ᐳAwsApplicationᐳFirstPartyVulnerability
ᐳAwsApplicationᐳThirdPartyVulnerability

1: JSONParse[41], JSONParse[53]
ᐳ: Access[42], Access[54]
2: PgSelect[43], PgSelect[55]
3: PgSelectRows[48], PgSelectRows[58]
ᐳ: 47, 49, 50, 51, 52, 57, 59, 60, 61, 62"):::bucket + class Bucket4,JSONParse40,Access41,PgSelect42,First46,PgSelectRows47,PgSelectSingle48,PgClassExpression49,PgClassExpression50,PgClassExpression51,JSONParse52,Access53,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgClassExpression59,PgClassExpression60,PgClassExpression61 bucket4 + Bucket5("Bucket 5 (listItem)
Deps: 11

ROOT __Item{5}ᐸ103ᐳ[77]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,JSONParse41,Access42,PgSelect43,First47,PgSelectRows48,PgSelectSingle49,PgClassExpression50,PgClassExpression51,PgClassExpression52,JSONParse53,Access54,PgSelect55,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,PgClassExpression61,PgClassExpression62 bucket5 - Bucket6("Bucket 6 (listItem)
Deps: 13

ROOT __Item{6}ᐸ105ᐳ[79]"):::bucket + class Bucket5,__Item77,PgUnionAllSingle78,Access79 bucket5 + Bucket6("Bucket 6 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 79, 11, 78
ᐳGcpApplicationᐳFirstPartyVulnerability
ᐳGcpApplicationᐳThirdPartyVulnerability

1: JSONParse[80], JSONParse[92]
ᐳ: Access[81], Access[93]
2: PgSelect[82], PgSelect[94]
3: PgSelectRows[87], PgSelectRows[97]
ᐳ: 86, 88, 89, 90, 91, 96, 98, 99, 100, 101"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,__Item79,PgUnionAllSingle80,Access81 bucket6 - Bucket7("Bucket 7 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 81, 13, 80
ᐳGcpApplicationᐳFirstPartyVulnerability
ᐳGcpApplicationᐳThirdPartyVulnerability

1: JSONParse[82], JSONParse[94]
ᐳ: Access[83], Access[95]
2: PgSelect[84], PgSelect[96]
3: PgSelectRows[89], PgSelectRows[99]
ᐳ: 88, 90, 91, 92, 93, 98, 100, 101, 102, 103"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,JSONParse82,Access83,PgSelect84,First88,PgSelectRows89,PgSelectSingle90,PgClassExpression91,PgClassExpression92,PgClassExpression93,JSONParse94,Access95,PgSelect96,First98,PgSelectRows99,PgSelectSingle100,PgClassExpression101,PgClassExpression102,PgClassExpression103 bucket7 + class Bucket6,JSONParse80,Access81,PgSelect82,First86,PgSelectRows87,PgSelectSingle88,PgClassExpression89,PgClassExpression90,PgClassExpression91,JSONParse92,Access93,PgSelect94,First96,PgSelectRows97,PgSelectSingle98,PgClassExpression99,PgClassExpression100,PgClassExpression101 bucket6 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket6 - Bucket4 --> Bucket5 - Bucket6 --> Bucket7 + Bucket2 --> Bucket3 & Bucket5 + Bucket3 --> Bucket4 + Bucket5 --> Bucket6 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-condition.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-condition.mermaid index 8b81be88c9..191b936a4e 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-condition.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-condition.mermaid @@ -9,111 +9,105 @@ graph TD %% plan dependencies - Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access11 & Access12 --> Object13 + PgSelect15[["PgSelect[15∈0] ➊
ᐸpeopleᐳ"]]:::plan + Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ4ᐳ"}}:::plan + Object12 -->|rejectNull| PgSelect15 + Connection13 & Constant61 --> PgSelect15 Connection29{{"Connection[29∈0] ➊
ᐸ25ᐳ"}}:::plan - Constant60{{"Constant[60∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ1ᐳ"}}:::plan Lambda30{{"Lambda[30∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant60 & Lambda30 --> Connection29 + Constant62 & Lambda30 --> Connection29 + Constant61 --> Connection13 + Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access10 & Access11 --> Object12 + __InputObject23{{"__InputObject[23∈0] ➊"}}:::plan + Constant64{{"Constant[64∈0] ➊
ᐸ'AWfulS'ᐳ"}}:::plan + Constant64 --> __InputObject23 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access10 __Value2 --> Access11 - __Value2 --> Access12 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant59{{"Constant[59∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant59 --> Connection14 - Constant61{{"Constant[61∈0] ➊
ᐸ'WyI0OTgwM2MxZTJiIiwiQXdzQXBwbGljYXRpb24iLCJbXCI0XCJdIl0='ᐳ"}}:::plan - Constant61 --> Lambda30 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant62{{"Constant[62∈0] ➊
ᐸ'AWfulS'ᐳ"}}:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸpeopleᐳ"]]:::plan - Object13 & Connection14 & Constant59 --> PgSelect15 - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan PgSelect15 --> PgSelectRows16 - __Item17[/"__Item[17∈2]
ᐸ16ᐳ"\]:::itemplan + Constant63{{"Constant[63∈0] ➊
ᐸ'WyI0OTgwM2MxZTJiIiwiQXdzQXBwbGljYXRpb24iLCJbXCI0XCJdIl0='ᐳ"}}:::plan + Constant63 --> Lambda30 + ApplyInput31{{"ApplyInput[31∈0] ➊"}}:::plan + __InputObject23 --> ApplyInput31 + Lambda32[["Lambda[32∈0] ➊
ᐸlimitToTypesᐳ"]]:::unbatchedplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgUnionAll33[["PgUnionAll[33∈1]"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object12 & PgClassExpression19 & ApplyInput31 & Lambda32 & Connection29 & Lambda30 & Constant62 --> PgUnionAll33 + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan PgSelectRows16 ==> __Item17 - PgSelectSingle18{{"PgSelectSingle[18∈2]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸpeopleᐳ"}}:::plan __Item17 --> PgSelectSingle18 - PgUnionAll31[["PgUnionAll[31∈3]"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object13 & PgClassExpression19 & Constant62 & Connection29 & Lambda30 & Constant60 --> PgUnionAll31 PgSelectSingle18 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression20 - Access58{{"Access[58∈3]
ᐸ31.itemsᐳ"}}:::plan - PgUnionAll31 --> Access58 - __Item33[/"__Item[33∈4]
ᐸ58ᐳ"\]:::itemplan - Access58 ==> __Item33 - PgUnionAllSingle34["PgUnionAllSingle[34∈4]"]:::plan - __Item33 --> PgUnionAllSingle34 - Access35{{"Access[35∈4]
ᐸ31.cursorDetailsᐳ"}}:::plan - PgUnionAll31 --> Access35 - PgCursor36{{"PgCursor[36∈5]"}}:::plan - PgUnionAllSingle34 & Access35 --> PgCursor36 - Access37{{"Access[37∈5]
ᐸ34.1ᐳ"}}:::plan - PgUnionAllSingle34 --> Access37 - PgSelect40[["PgSelect[40∈6]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan - Access39{{"Access[39∈6]
ᐸ38.0ᐳ"}}:::plan - Object13 & Access39 --> PgSelect40 - PgSelect51[["PgSelect[51∈6]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan - Access50{{"Access[50∈6]
ᐸ49.0ᐳ"}}:::plan - Object13 & Access50 --> PgSelect51 - JSONParse38[["JSONParse[38∈6]
ᐸ37ᐳ
ᐳAwsApplication"]]:::plan - Access37 --> JSONParse38 - JSONParse38 --> Access39 - First44{{"First[44∈6]"}}:::plan - PgSelectRows45[["PgSelectRows[45∈6]"]]:::plan - PgSelectRows45 --> First44 - PgSelect40 --> PgSelectRows45 - PgSelectSingle46{{"PgSelectSingle[46∈6]
ᐸaws_applicationsᐳ"}}:::plan - First44 --> PgSelectSingle46 - PgClassExpression47{{"PgClassExpression[47∈6]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan - PgSelectSingle46 --> PgClassExpression47 - PgClassExpression48{{"PgClassExpression[48∈6]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan - PgSelectSingle46 --> PgClassExpression48 - JSONParse49[["JSONParse[49∈6]
ᐸ37ᐳ
ᐳGcpApplication"]]:::plan - Access37 --> JSONParse49 - JSONParse49 --> Access50 - First53{{"First[53∈6]"}}:::plan - PgSelectRows54[["PgSelectRows[54∈6]"]]:::plan - PgSelectRows54 --> First53 - PgSelect51 --> PgSelectRows54 - PgSelectSingle55{{"PgSelectSingle[55∈6]
ᐸgcp_applicationsᐳ"}}:::plan - First53 --> PgSelectSingle55 - PgClassExpression56{{"PgClassExpression[56∈6]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈6]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression57 + Access60{{"Access[60∈1]
ᐸ33.itemsᐳ"}}:::plan + PgUnionAll33 --> Access60 + PgCursor38{{"PgCursor[38∈2]"}}:::plan + PgUnionAllSingle36["PgUnionAllSingle[36∈2]"]:::plan + Access37{{"Access[37∈2]
ᐸ33.cursorDetailsᐳ"}}:::plan + PgUnionAllSingle36 & Access37 --> PgCursor38 + __Item35[/"__Item[35∈2]
ᐸ60ᐳ"\]:::itemplan + Access60 ==> __Item35 + __Item35 --> PgUnionAllSingle36 + PgUnionAll33 --> Access37 + Access39{{"Access[39∈2]
ᐸ36.1ᐳ"}}:::plan + PgUnionAllSingle36 --> Access39 + PgSelect42[["PgSelect[42∈3]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan + Access41{{"Access[41∈3]
ᐸ40.0ᐳ"}}:::plan + Object12 & Access41 --> PgSelect42 + PgSelect53[["PgSelect[53∈3]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan + Access52{{"Access[52∈3]
ᐸ51.0ᐳ"}}:::plan + Object12 & Access52 --> PgSelect53 + JSONParse40[["JSONParse[40∈3]
ᐸ39ᐳ
ᐳAwsApplication"]]:::plan + Access39 --> JSONParse40 + JSONParse40 --> Access41 + First46{{"First[46∈3]"}}:::plan + PgSelectRows47[["PgSelectRows[47∈3]"]]:::plan + PgSelectRows47 --> First46 + PgSelect42 --> PgSelectRows47 + PgSelectSingle48{{"PgSelectSingle[48∈3]
ᐸaws_applicationsᐳ"}}:::plan + First46 --> PgSelectSingle48 + PgClassExpression49{{"PgClassExpression[49∈3]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan + PgSelectSingle48 --> PgClassExpression49 + PgClassExpression50{{"PgClassExpression[50∈3]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan + PgSelectSingle48 --> PgClassExpression50 + JSONParse51[["JSONParse[51∈3]
ᐸ39ᐳ
ᐳGcpApplication"]]:::plan + Access39 --> JSONParse51 + JSONParse51 --> Access52 + First55{{"First[55∈3]"}}:::plan + PgSelectRows56[["PgSelectRows[56∈3]"]]:::plan + PgSelectRows56 --> First55 + PgSelect53 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈3]
ᐸgcp_applicationsᐳ"}}:::plan + First55 --> PgSelectSingle57 + PgClassExpression58{{"PgClassExpression[58∈3]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression58 + PgClassExpression59{{"PgClassExpression[59∈3]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression59 %% define steps subgraph "Buckets for queries/polymorphic/person-app-vulns.app-condition" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 10, 11, 61, 62, 63, 64, 12, 13, 23, 30, 31, 29
2: PgSelect[15], Lambda[32]
3: PgSelectRows[16]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14,Connection29,Lambda30,Constant59,Constant60,Constant61,Constant62 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 59, 62, 29, 30, 60

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[15]
2: PgSelectRows[16]"):::bucket + class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,PgSelect15,PgSelectRows16,__InputObject23,Connection29,Lambda30,ApplyInput31,Lambda32,Constant61,Constant62,Constant63,Constant64 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 31, 32, 29, 30, 62, 7

ROOT __Item{1}ᐸ16ᐳ[17]
1:
ᐳ: 18, 19, 20
2: PgUnionAll[33]
ᐳ: Access[60]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect15,PgSelectRows16 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 13, 62, 29, 30, 60

ROOT __Item{2}ᐸ16ᐳ[17]"):::bucket + class Bucket1,__Item17,PgSelectSingle18,PgClassExpression19,PgClassExpression20,PgUnionAll33,Access60 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 33, 12

ROOT __Item{2}ᐸ60ᐳ[35]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item17,PgSelectSingle18 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 18, 13, 62, 29, 30, 60

ROOT PgSelectSingle{2}ᐸpeopleᐳ[18]
1:
ᐳ: 19, 20
2: PgUnionAll[31]
ᐳ: Access[58]"):::bucket + class Bucket2,__Item35,PgUnionAllSingle36,Access37,PgCursor38,Access39 bucket2 + Bucket3("Bucket 3 (polymorphic)
AwsApplication,GcpApplication
Deps: 39, 12, 36
ᐳAwsApplication
ᐳGcpApplication

1: JSONParse[40], JSONParse[51]
ᐳ: Access[41], Access[52]
2: PgSelect[42], PgSelect[53]
3: PgSelectRows[47], PgSelectRows[56]
ᐳ: 46, 48, 49, 50, 55, 57, 58, 59"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgClassExpression20,PgUnionAll31,Access58 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 31, 13

ROOT __Item{4}ᐸ58ᐳ[33]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item33,PgUnionAllSingle34,Access35 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 34, 35, 13

ROOT PgUnionAllSingle{4}[34]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgCursor36,Access37 bucket5 - Bucket6("Bucket 6 (polymorphic)
AwsApplication,GcpApplication
Deps: 37, 13, 34
ᐳAwsApplication
ᐳGcpApplication

1: JSONParse[38], JSONParse[49]
ᐳ: Access[39], Access[50]
2: PgSelect[40], PgSelect[51]
3: PgSelectRows[45], PgSelectRows[54]
ᐳ: 44, 46, 47, 48, 53, 55, 56, 57"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,JSONParse38,Access39,PgSelect40,First44,PgSelectRows45,PgSelectSingle46,PgClassExpression47,PgClassExpression48,JSONParse49,Access50,PgSelect51,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression56,PgClassExpression57 bucket6 + class Bucket3,JSONParse40,Access41,PgSelect42,First46,PgSelectRows47,PgSelectSingle48,PgClassExpression49,PgClassExpression50,JSONParse51,Access52,PgSelect53,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,PgClassExpression59 bucket3 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-order.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-order.mermaid index 5c71cc9dc4..2b55e837d7 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-order.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-order.mermaid @@ -9,109 +9,100 @@ graph TD %% plan dependencies - Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access11 & Access12 --> Object13 + PgSelect15[["PgSelect[15∈0] ➊
ᐸpeopleᐳ"]]:::plan + Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant59{{"Constant[59∈0] ➊
ᐸ4ᐳ"}}:::plan + Object12 -->|rejectNull| PgSelect15 + Connection13 & Constant59 --> PgSelect15 + Constant59 --> Connection13 + Connection26{{"Connection[26∈0] ➊
ᐸ22ᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access10 & Access11 --> Object12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access10 __Value2 --> Access11 - __Value2 --> Access12 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant59{{"Constant[59∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant59 --> Connection14 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection28{{"Connection[28∈0] ➊
ᐸ24ᐳ"}}:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸpeopleᐳ"]]:::plan - Object13 & Connection14 & Constant59 --> PgSelect15 - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan PgSelect15 --> PgSelectRows16 - __Item17[/"__Item[17∈2]
ᐸ16ᐳ"\]:::itemplan + Lambda28[["Lambda[28∈0] ➊
ᐸlimitToTypesᐳ"]]:::unbatchedplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + Constant27{{"Constant[27∈0] ➊
ᐸ[Function: applyInputConstant]ᐳ"}}:::plan + PgUnionAll29[["PgUnionAll[29∈1]"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object12 & PgClassExpression19 & Constant27 & Lambda28 & Connection26 --> PgUnionAll29 + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan PgSelectRows16 ==> __Item17 - PgSelectSingle18{{"PgSelectSingle[18∈2]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸpeopleᐳ"}}:::plan __Item17 --> PgSelectSingle18 - PgUnionAll29[["PgUnionAll[29∈3]"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object13 & PgClassExpression19 & Connection28 --> PgUnionAll29 PgSelectSingle18 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression20 - Access58{{"Access[58∈3]
ᐸ29.itemsᐳ"}}:::plan + Access58{{"Access[58∈1]
ᐸ29.itemsᐳ"}}:::plan PgUnionAll29 --> Access58 - __Item31[/"__Item[31∈4]
ᐸ58ᐳ"\]:::itemplan + PgCursor34{{"PgCursor[34∈2]"}}:::plan + PgUnionAllSingle32["PgUnionAllSingle[32∈2]"]:::plan + Access33{{"Access[33∈2]
ᐸ29.cursorDetailsᐳ"}}:::plan + PgUnionAllSingle32 & Access33 --> PgCursor34 + __Item31[/"__Item[31∈2]
ᐸ58ᐳ"\]:::itemplan Access58 ==> __Item31 - PgUnionAllSingle32["PgUnionAllSingle[32∈4]"]:::plan __Item31 --> PgUnionAllSingle32 - Access33{{"Access[33∈4]
ᐸ29.cursorDetailsᐳ"}}:::plan PgUnionAll29 --> Access33 - PgCursor34{{"PgCursor[34∈5]"}}:::plan - PgUnionAllSingle32 & Access33 --> PgCursor34 - Access35{{"Access[35∈5]
ᐸ32.1ᐳ"}}:::plan + Access35{{"Access[35∈2]
ᐸ32.1ᐳ"}}:::plan PgUnionAllSingle32 --> Access35 - PgSelect38[["PgSelect[38∈6]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan - Access37{{"Access[37∈6]
ᐸ36.0ᐳ"}}:::plan - Object13 & Access37 --> PgSelect38 - PgSelect50[["PgSelect[50∈6]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan - Access49{{"Access[49∈6]
ᐸ48.0ᐳ"}}:::plan - Object13 & Access49 --> PgSelect50 - JSONParse36[["JSONParse[36∈6]
ᐸ35ᐳ
ᐳAwsApplication"]]:::plan + PgSelect38[["PgSelect[38∈3]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan + Access37{{"Access[37∈3]
ᐸ36.0ᐳ"}}:::plan + Object12 & Access37 --> PgSelect38 + PgSelect50[["PgSelect[50∈3]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan + Access49{{"Access[49∈3]
ᐸ48.0ᐳ"}}:::plan + Object12 & Access49 --> PgSelect50 + JSONParse36[["JSONParse[36∈3]
ᐸ35ᐳ
ᐳAwsApplication"]]:::plan Access35 --> JSONParse36 JSONParse36 --> Access37 - First42{{"First[42∈6]"}}:::plan - PgSelectRows43[["PgSelectRows[43∈6]"]]:::plan + First42{{"First[42∈3]"}}:::plan + PgSelectRows43[["PgSelectRows[43∈3]"]]:::plan PgSelectRows43 --> First42 PgSelect38 --> PgSelectRows43 - PgSelectSingle44{{"PgSelectSingle[44∈6]
ᐸaws_applicationsᐳ"}}:::plan + PgSelectSingle44{{"PgSelectSingle[44∈3]
ᐸaws_applicationsᐳ"}}:::plan First42 --> PgSelectSingle44 - PgClassExpression45{{"PgClassExpression[45∈6]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan + PgClassExpression45{{"PgClassExpression[45∈3]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan PgSelectSingle44 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈6]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan + PgClassExpression46{{"PgClassExpression[46∈3]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan PgSelectSingle44 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈6]
ᐸ__aws_appl..._deployed”ᐳ"}}:::plan + PgClassExpression47{{"PgClassExpression[47∈3]
ᐸ__aws_appl..._deployed”ᐳ"}}:::plan PgSelectSingle44 --> PgClassExpression47 - JSONParse48[["JSONParse[48∈6]
ᐸ35ᐳ
ᐳGcpApplication"]]:::plan + JSONParse48[["JSONParse[48∈3]
ᐸ35ᐳ
ᐳGcpApplication"]]:::plan Access35 --> JSONParse48 JSONParse48 --> Access49 - First52{{"First[52∈6]"}}:::plan - PgSelectRows53[["PgSelectRows[53∈6]"]]:::plan + First52{{"First[52∈3]"}}:::plan + PgSelectRows53[["PgSelectRows[53∈3]"]]:::plan PgSelectRows53 --> First52 PgSelect50 --> PgSelectRows53 - PgSelectSingle54{{"PgSelectSingle[54∈6]
ᐸgcp_applicationsᐳ"}}:::plan + PgSelectSingle54{{"PgSelectSingle[54∈3]
ᐸgcp_applicationsᐳ"}}:::plan First52 --> PgSelectSingle54 - PgClassExpression55{{"PgClassExpression[55∈6]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan + PgClassExpression55{{"PgClassExpression[55∈3]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan PgSelectSingle54 --> PgClassExpression55 - PgClassExpression56{{"PgClassExpression[56∈6]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan + PgClassExpression56{{"PgClassExpression[56∈3]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan PgSelectSingle54 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈6]
ᐸ__gcp_appl..._deployed”ᐳ"}}:::plan + PgClassExpression57{{"PgClassExpression[57∈3]
ᐸ__gcp_appl..._deployed”ᐳ"}}:::plan PgSelectSingle54 --> PgClassExpression57 %% define steps subgraph "Buckets for queries/polymorphic/person-app-vulns.app-order" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 10, 11, 27, 59, 12, 13, 26
2: PgSelect[15], Lambda[28]
3: PgSelectRows[16]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14,Connection28,Constant59 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 59, 28

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[15]
2: PgSelectRows[16]"):::bucket + class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,PgSelect15,PgSelectRows16,Connection26,Constant27,Lambda28,Constant59 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 27, 28, 26, 7

ROOT __Item{1}ᐸ16ᐳ[17]
1:
ᐳ: 18, 19, 20
2: PgUnionAll[29]
ᐳ: Access[58]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect15,PgSelectRows16 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 13, 28

ROOT __Item{2}ᐸ16ᐳ[17]"):::bucket + class Bucket1,__Item17,PgSelectSingle18,PgClassExpression19,PgClassExpression20,PgUnionAll29,Access58 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 29, 12

ROOT __Item{2}ᐸ58ᐳ[31]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item17,PgSelectSingle18 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 18, 13, 28

ROOT PgSelectSingle{2}ᐸpeopleᐳ[18]
1:
ᐳ: 19, 20
2: PgUnionAll[29]
ᐳ: Access[58]"):::bucket + class Bucket2,__Item31,PgUnionAllSingle32,Access33,PgCursor34,Access35 bucket2 + Bucket3("Bucket 3 (polymorphic)
AwsApplication,GcpApplication
Deps: 35, 12, 32
ᐳAwsApplication
ᐳGcpApplication

1: JSONParse[36], JSONParse[48]
ᐳ: Access[37], Access[49]
2: PgSelect[38], PgSelect[50]
3: PgSelectRows[43], PgSelectRows[53]
ᐳ: 42, 44, 45, 46, 47, 52, 54, 55, 56, 57"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgClassExpression20,PgUnionAll29,Access58 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 29, 13

ROOT __Item{4}ᐸ58ᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item31,PgUnionAllSingle32,Access33 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 32, 33, 13

ROOT PgUnionAllSingle{4}[32]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgCursor34,Access35 bucket5 - Bucket6("Bucket 6 (polymorphic)
AwsApplication,GcpApplication
Deps: 35, 13, 32
ᐳAwsApplication
ᐳGcpApplication

1: JSONParse[36], JSONParse[48]
ᐳ: Access[37], Access[49]
2: PgSelect[38], PgSelect[50]
3: PgSelectRows[43], PgSelectRows[53]
ᐳ: 42, 44, 45, 46, 47, 52, 54, 55, 56, 57"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,JSONParse36,Access37,PgSelect38,First42,PgSelectRows43,PgSelectSingle44,PgClassExpression45,PgClassExpression46,PgClassExpression47,JSONParse48,Access49,PgSelect50,First52,PgSelectRows53,PgSelectSingle54,PgClassExpression55,PgClassExpression56,PgClassExpression57 bucket6 + class Bucket3,JSONParse36,Access37,PgSelect38,First42,PgSelectRows43,PgSelectSingle44,PgClassExpression45,PgClassExpression46,PgClassExpression47,JSONParse48,Access49,PgSelect50,First52,PgSelectRows53,PgSelectSingle54,PgClassExpression55,PgClassExpression56,PgClassExpression57 bucket3 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-page-2.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-page-2.mermaid index 51d820dcf4..fd1a472700 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-page-2.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-page-2.mermaid @@ -9,217 +9,199 @@ graph TD %% plan dependencies - Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access11 & Access12 --> Object13 + PgSelect15[["PgSelect[15∈0] ➊
ᐸpeopleᐳ"]]:::plan + Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant118{{"Constant[118∈0] ➊
ᐸ4ᐳ"}}:::plan + Object12 -->|rejectNull| PgSelect15 + Connection13 & Constant118 --> PgSelect15 Connection27{{"Connection[27∈0] ➊
ᐸ23ᐳ"}}:::plan - Constant116{{"Constant[116∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant119{{"Constant[119∈0] ➊
ᐸ1ᐳ"}}:::plan Lambda28{{"Lambda[28∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant116 & Lambda28 --> Connection27 + Constant119 & Lambda28 --> Connection27 + Constant118 --> Connection13 + Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access10 & Access11 --> Object12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access10 __Value2 --> Access11 - __Value2 --> Access12 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant115{{"Constant[115∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant115 --> Connection14 - Constant117{{"Constant[117∈0] ➊
ᐸ'WyI0OTgwM2MxZTJiIiwiQXdzQXBwbGljYXRpb24iLCJbXCI0XCJdIl0='ᐳ"}}:::plan - Constant117 --> Lambda28 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸpeopleᐳ"]]:::plan - Object13 & Connection14 & Constant115 --> PgSelect15 - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan PgSelect15 --> PgSelectRows16 - __Item17[/"__Item[17∈2]
ᐸ16ᐳ"\]:::itemplan + Constant120{{"Constant[120∈0] ➊
ᐸ'WyI0OTgwM2MxZTJiIiwiQXdzQXBwbGljYXRpb24iLCJbXCI0XCJdIl0='ᐳ"}}:::plan + Constant120 --> Lambda28 + Lambda29[["Lambda[29∈0] ➊
ᐸlimitToTypesᐳ"]]:::unbatchedplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgUnionAll30[["PgUnionAll[30∈1]"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object12 & PgClassExpression19 & Lambda29 & Connection27 & Lambda28 & Constant119 --> PgUnionAll30 + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan PgSelectRows16 ==> __Item17 - PgSelectSingle18{{"PgSelectSingle[18∈2]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸpeopleᐳ"}}:::plan __Item17 --> PgSelectSingle18 - PgUnionAll29[["PgUnionAll[29∈3]"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object13 & PgClassExpression19 & Connection27 & Lambda28 & Constant116 --> PgUnionAll29 PgSelectSingle18 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression20 - Access114{{"Access[114∈3]
ᐸ29.itemsᐳ"}}:::plan - PgUnionAll29 --> Access114 - __Item31[/"__Item[31∈4]
ᐸ114ᐳ"\]:::itemplan - Access114 ==> __Item31 - PgUnionAllSingle32["PgUnionAllSingle[32∈4]"]:::plan - __Item31 --> PgUnionAllSingle32 - Access33{{"Access[33∈4]
ᐸ29.cursorDetailsᐳ"}}:::plan - PgUnionAll29 --> Access33 - PgCursor34{{"PgCursor[34∈5]"}}:::plan - PgUnionAllSingle32 & Access33 --> PgCursor34 - Access35{{"Access[35∈5]
ᐸ32.1ᐳ"}}:::plan - PgUnionAllSingle32 --> Access35 - PgUnionAll50[["PgUnionAll[50∈6]
ᐳAwsApplication"]]:::plan - PgClassExpression45{{"PgClassExpression[45∈6]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan - Connection49{{"Connection[49∈6] ➊
ᐸ47ᐳ
ᐳAwsApplication"}}:::plan - Object13 & PgClassExpression45 & Connection49 & Constant116 --> PgUnionAll50 - PgUnionAll87[["PgUnionAll[87∈6]
ᐳGcpApplication"]]:::plan - PgClassExpression82{{"PgClassExpression[82∈6]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan - Connection86{{"Connection[86∈6] ➊
ᐸ84ᐳ
ᐳGcpApplication"}}:::plan - Object13 & PgClassExpression82 & Connection86 & Constant116 --> PgUnionAll87 - PgSelect38[["PgSelect[38∈6]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan - Access37{{"Access[37∈6]
ᐸ36.0ᐳ"}}:::plan - Object13 & Access37 --> PgSelect38 - PgSelect77[["PgSelect[77∈6]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan - Access76{{"Access[76∈6]
ᐸ75.0ᐳ"}}:::plan - Object13 & Access76 --> PgSelect77 - JSONParse36[["JSONParse[36∈6]
ᐸ35ᐳ
ᐳAwsApplication"]]:::plan - Access35 --> JSONParse36 - JSONParse36 --> Access37 - First42{{"First[42∈6]"}}:::plan - PgSelectRows43[["PgSelectRows[43∈6]"]]:::plan - PgSelectRows43 --> First42 - PgSelect38 --> PgSelectRows43 - PgSelectSingle44{{"PgSelectSingle[44∈6]
ᐸaws_applicationsᐳ"}}:::plan - First42 --> PgSelectSingle44 - PgSelectSingle44 --> PgClassExpression45 - Constant116 --> Connection49 - JSONParse75[["JSONParse[75∈6]
ᐸ35ᐳ
ᐳGcpApplication"]]:::plan - Access35 --> JSONParse75 - JSONParse75 --> Access76 - First79{{"First[79∈6]"}}:::plan - PgSelectRows80[["PgSelectRows[80∈6]"]]:::plan - PgSelectRows80 --> First79 - PgSelect77 --> PgSelectRows80 - PgSelectSingle81{{"PgSelectSingle[81∈6]
ᐸgcp_applicationsᐳ"}}:::plan - First79 --> PgSelectSingle81 - PgSelectSingle81 --> PgClassExpression82 - Constant116 --> Connection86 - Access112{{"Access[112∈6]
ᐸ50.itemsᐳ"}}:::plan - PgUnionAll50 --> Access112 - Access113{{"Access[113∈6]
ᐸ87.itemsᐳ"}}:::plan - PgUnionAll87 --> Access113 - __Item52[/"__Item[52∈7]
ᐸ112ᐳ"\]:::itemplan - Access112 ==> __Item52 - PgUnionAllSingle53["PgUnionAllSingle[53∈7]"]:::plan - __Item52 --> PgUnionAllSingle53 - Access54{{"Access[54∈7]
ᐸ50.cursorDetailsᐳ"}}:::plan - PgUnionAll50 --> Access54 - PgCursor55{{"PgCursor[55∈8]
ᐳAwsApplication"}}:::plan - PgUnionAllSingle53 & Access54 --> PgCursor55 - Access56{{"Access[56∈8]
ᐸ53.1ᐳ"}}:::plan - PgUnionAllSingle53 --> Access56 - PgSelect59[["PgSelect[59∈9]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan - Access58{{"Access[58∈9]
ᐸ57.0ᐳ"}}:::plan - Object13 & Access58 --> PgSelect59 - PgSelect69[["PgSelect[69∈9]
ᐸthird_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan - Access68{{"Access[68∈9]
ᐸ67.0ᐳ"}}:::plan - Object13 & Access68 --> PgSelect69 - JSONParse57[["JSONParse[57∈9]
ᐸ56ᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan - Access56 --> JSONParse57 - JSONParse57 --> Access58 - First63{{"First[63∈9]"}}:::plan - PgSelectRows64[["PgSelectRows[64∈9]"]]:::plan - PgSelectRows64 --> First63 - PgSelect59 --> PgSelectRows64 - PgSelectSingle65{{"PgSelectSingle[65∈9]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan - First63 --> PgSelectSingle65 - PgClassExpression66{{"PgClassExpression[66∈9]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle65 --> PgClassExpression66 - JSONParse67[["JSONParse[67∈9]
ᐸ56ᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan - Access56 --> JSONParse67 - JSONParse67 --> Access68 - First71{{"First[71∈9]"}}:::plan - PgSelectRows72[["PgSelectRows[72∈9]"]]:::plan - PgSelectRows72 --> First71 - PgSelect69 --> PgSelectRows72 - PgSelectSingle73{{"PgSelectSingle[73∈9]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan - First71 --> PgSelectSingle73 - PgClassExpression74{{"PgClassExpression[74∈9]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle73 --> PgClassExpression74 - __Item89[/"__Item[89∈10]
ᐸ113ᐳ"\]:::itemplan - Access113 ==> __Item89 - PgUnionAllSingle90["PgUnionAllSingle[90∈10]"]:::plan - __Item89 --> PgUnionAllSingle90 - Access91{{"Access[91∈10]
ᐸ87.cursorDetailsᐳ"}}:::plan - PgUnionAll87 --> Access91 - PgCursor92{{"PgCursor[92∈11]
ᐳGcpApplication"}}:::plan - PgUnionAllSingle90 & Access91 --> PgCursor92 - Access93{{"Access[93∈11]
ᐸ90.1ᐳ"}}:::plan - PgUnionAllSingle90 --> Access93 - PgSelect96[["PgSelect[96∈12]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan - Access95{{"Access[95∈12]
ᐸ94.0ᐳ"}}:::plan - Object13 & Access95 --> PgSelect96 - PgSelect106[["PgSelect[106∈12]
ᐸthird_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan - Access105{{"Access[105∈12]
ᐸ104.0ᐳ"}}:::plan - Object13 & Access105 --> PgSelect106 - JSONParse94[["JSONParse[94∈12]
ᐸ93ᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan - Access93 --> JSONParse94 - JSONParse94 --> Access95 - First100{{"First[100∈12]"}}:::plan - PgSelectRows101[["PgSelectRows[101∈12]"]]:::plan - PgSelectRows101 --> First100 - PgSelect96 --> PgSelectRows101 - PgSelectSingle102{{"PgSelectSingle[102∈12]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan - First100 --> PgSelectSingle102 - PgClassExpression103{{"PgClassExpression[103∈12]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression103 - JSONParse104[["JSONParse[104∈12]
ᐸ93ᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan - Access93 --> JSONParse104 - JSONParse104 --> Access105 - First108{{"First[108∈12]"}}:::plan - PgSelectRows109[["PgSelectRows[109∈12]"]]:::plan - PgSelectRows109 --> First108 - PgSelect106 --> PgSelectRows109 - PgSelectSingle110{{"PgSelectSingle[110∈12]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan - First108 --> PgSelectSingle110 - PgClassExpression111{{"PgClassExpression[111∈12]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle110 --> PgClassExpression111 + Access117{{"Access[117∈1]
ᐸ30.itemsᐳ"}}:::plan + PgUnionAll30 --> Access117 + PgCursor35{{"PgCursor[35∈2]"}}:::plan + PgUnionAllSingle33["PgUnionAllSingle[33∈2]"]:::plan + Access34{{"Access[34∈2]
ᐸ30.cursorDetailsᐳ"}}:::plan + PgUnionAllSingle33 & Access34 --> PgCursor35 + __Item32[/"__Item[32∈2]
ᐸ117ᐳ"\]:::itemplan + Access117 ==> __Item32 + __Item32 --> PgUnionAllSingle33 + PgUnionAll30 --> Access34 + Access36{{"Access[36∈2]
ᐸ33.1ᐳ"}}:::plan + PgUnionAllSingle33 --> Access36 + PgUnionAll52[["PgUnionAll[52∈3]
ᐳAwsApplication"]]:::plan + PgClassExpression46{{"PgClassExpression[46∈3]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan + Connection50{{"Connection[50∈3] ➊
ᐸ48ᐳ
ᐳAwsApplication"}}:::plan + Object12 & PgClassExpression46 & Lambda29 & Connection50 & Constant119 --> PgUnionAll52 + PgUnionAll90[["PgUnionAll[90∈3]
ᐳGcpApplication"]]:::plan + PgClassExpression84{{"PgClassExpression[84∈3]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan + Connection88{{"Connection[88∈3] ➊
ᐸ86ᐳ
ᐳGcpApplication"}}:::plan + Object12 & PgClassExpression84 & Lambda29 & Connection88 & Constant119 --> PgUnionAll90 + Constant119 --> Connection50 + Constant119 --> Connection88 + PgSelect39[["PgSelect[39∈3]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan + Access38{{"Access[38∈3]
ᐸ37.0ᐳ"}}:::plan + Object12 & Access38 --> PgSelect39 + PgSelect79[["PgSelect[79∈3]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan + Access78{{"Access[78∈3]
ᐸ77.0ᐳ"}}:::plan + Object12 & Access78 --> PgSelect79 + JSONParse37[["JSONParse[37∈3]
ᐸ36ᐳ
ᐳAwsApplication"]]:::plan + Access36 --> JSONParse37 + JSONParse37 --> Access38 + First43{{"First[43∈3]"}}:::plan + PgSelectRows44[["PgSelectRows[44∈3]"]]:::plan + PgSelectRows44 --> First43 + PgSelect39 --> PgSelectRows44 + PgSelectSingle45{{"PgSelectSingle[45∈3]
ᐸaws_applicationsᐳ"}}:::plan + First43 --> PgSelectSingle45 + PgSelectSingle45 --> PgClassExpression46 + JSONParse77[["JSONParse[77∈3]
ᐸ36ᐳ
ᐳGcpApplication"]]:::plan + Access36 --> JSONParse77 + JSONParse77 --> Access78 + First81{{"First[81∈3]"}}:::plan + PgSelectRows82[["PgSelectRows[82∈3]"]]:::plan + PgSelectRows82 --> First81 + PgSelect79 --> PgSelectRows82 + PgSelectSingle83{{"PgSelectSingle[83∈3]
ᐸgcp_applicationsᐳ"}}:::plan + First81 --> PgSelectSingle83 + PgSelectSingle83 --> PgClassExpression84 + Access115{{"Access[115∈3]
ᐸ52.itemsᐳ"}}:::plan + PgUnionAll52 --> Access115 + Access116{{"Access[116∈3]
ᐸ90.itemsᐳ"}}:::plan + PgUnionAll90 --> Access116 + PgCursor57{{"PgCursor[57∈4]
ᐳAwsApplication"}}:::plan + PgUnionAllSingle55["PgUnionAllSingle[55∈4]"]:::plan + Access56{{"Access[56∈4]
ᐸ52.cursorDetailsᐳ"}}:::plan + PgUnionAllSingle55 & Access56 --> PgCursor57 + __Item54[/"__Item[54∈4]
ᐸ115ᐳ"\]:::itemplan + Access115 ==> __Item54 + __Item54 --> PgUnionAllSingle55 + PgUnionAll52 --> Access56 + Access58{{"Access[58∈4]
ᐸ55.1ᐳ"}}:::plan + PgUnionAllSingle55 --> Access58 + PgSelect61[["PgSelect[61∈5]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan + Access60{{"Access[60∈5]
ᐸ59.0ᐳ"}}:::plan + Object12 & Access60 --> PgSelect61 + PgSelect71[["PgSelect[71∈5]
ᐸthird_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan + Access70{{"Access[70∈5]
ᐸ69.0ᐳ"}}:::plan + Object12 & Access70 --> PgSelect71 + JSONParse59[["JSONParse[59∈5]
ᐸ58ᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan + Access58 --> JSONParse59 + JSONParse59 --> Access60 + First65{{"First[65∈5]"}}:::plan + PgSelectRows66[["PgSelectRows[66∈5]"]]:::plan + PgSelectRows66 --> First65 + PgSelect61 --> PgSelectRows66 + PgSelectSingle67{{"PgSelectSingle[67∈5]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + First65 --> PgSelectSingle67 + PgClassExpression68{{"PgClassExpression[68∈5]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle67 --> PgClassExpression68 + JSONParse69[["JSONParse[69∈5]
ᐸ58ᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan + Access58 --> JSONParse69 + JSONParse69 --> Access70 + First73{{"First[73∈5]"}}:::plan + PgSelectRows74[["PgSelectRows[74∈5]"]]:::plan + PgSelectRows74 --> First73 + PgSelect71 --> PgSelectRows74 + PgSelectSingle75{{"PgSelectSingle[75∈5]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + First73 --> PgSelectSingle75 + PgClassExpression76{{"PgClassExpression[76∈5]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle75 --> PgClassExpression76 + PgCursor95{{"PgCursor[95∈6]
ᐳGcpApplication"}}:::plan + PgUnionAllSingle93["PgUnionAllSingle[93∈6]"]:::plan + Access94{{"Access[94∈6]
ᐸ90.cursorDetailsᐳ"}}:::plan + PgUnionAllSingle93 & Access94 --> PgCursor95 + __Item92[/"__Item[92∈6]
ᐸ116ᐳ"\]:::itemplan + Access116 ==> __Item92 + __Item92 --> PgUnionAllSingle93 + PgUnionAll90 --> Access94 + Access96{{"Access[96∈6]
ᐸ93.1ᐳ"}}:::plan + PgUnionAllSingle93 --> Access96 + PgSelect99[["PgSelect[99∈7]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan + Access98{{"Access[98∈7]
ᐸ97.0ᐳ"}}:::plan + Object12 & Access98 --> PgSelect99 + PgSelect109[["PgSelect[109∈7]
ᐸthird_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan + Access108{{"Access[108∈7]
ᐸ107.0ᐳ"}}:::plan + Object12 & Access108 --> PgSelect109 + JSONParse97[["JSONParse[97∈7]
ᐸ96ᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan + Access96 --> JSONParse97 + JSONParse97 --> Access98 + First103{{"First[103∈7]"}}:::plan + PgSelectRows104[["PgSelectRows[104∈7]"]]:::plan + PgSelectRows104 --> First103 + PgSelect99 --> PgSelectRows104 + PgSelectSingle105{{"PgSelectSingle[105∈7]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + First103 --> PgSelectSingle105 + PgClassExpression106{{"PgClassExpression[106∈7]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle105 --> PgClassExpression106 + JSONParse107[["JSONParse[107∈7]
ᐸ96ᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan + Access96 --> JSONParse107 + JSONParse107 --> Access108 + First111{{"First[111∈7]"}}:::plan + PgSelectRows112[["PgSelectRows[112∈7]"]]:::plan + PgSelectRows112 --> First111 + PgSelect109 --> PgSelectRows112 + PgSelectSingle113{{"PgSelectSingle[113∈7]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + First111 --> PgSelectSingle113 + PgClassExpression114{{"PgClassExpression[114∈7]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle113 --> PgClassExpression114 %% define steps subgraph "Buckets for queries/polymorphic/person-app-vulns.app-page-2" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 10, 11, 118, 119, 120, 12, 13, 28, 27
2: PgSelect[15], Lambda[29]
3: PgSelectRows[16]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14,Connection27,Lambda28,Constant115,Constant116,Constant117 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 115, 27, 28, 116

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[15]
2: PgSelectRows[16]"):::bucket + class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,PgSelect15,PgSelectRows16,Connection27,Lambda28,Lambda29,Constant118,Constant119,Constant120 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 29, 27, 28, 119, 7

ROOT __Item{1}ᐸ16ᐳ[17]
1:
ᐳ: 18, 19, 20
2: PgUnionAll[30]
ᐳ: Access[117]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect15,PgSelectRows16 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 13, 27, 28, 116

ROOT __Item{2}ᐸ16ᐳ[17]"):::bucket + class Bucket1,__Item17,PgSelectSingle18,PgClassExpression19,PgClassExpression20,PgUnionAll30,Access117 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 30, 12, 119, 7, 29

ROOT __Item{2}ᐸ117ᐳ[32]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item17,PgSelectSingle18 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 18, 13, 27, 28, 116

ROOT PgSelectSingle{2}ᐸpeopleᐳ[18]
1:
ᐳ: 19, 20
2: PgUnionAll[29]
ᐳ: Access[114]"):::bucket + class Bucket2,__Item32,PgUnionAllSingle33,Access34,PgCursor35,Access36 bucket2 + Bucket3("Bucket 3 (polymorphic)
AwsApplication,GcpApplication
Deps: 36, 12, 119, 7, 29, 33
ᐳAwsApplication
ᐳGcpApplication

1: JSONParse[37], JSONParse[77]
ᐳ: 50, 88, 38, 78
2: PgSelect[39], PgSelect[79]
3: PgSelectRows[44], PgSelectRows[82]
ᐳ: 43, 45, 46, 81, 83, 84
4: PgUnionAll[52], PgUnionAll[90]
ᐳ: Access[115], Access[116]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgClassExpression20,PgUnionAll29,Access114 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 29, 13, 116

ROOT __Item{4}ᐸ114ᐳ[31]"):::bucket + class Bucket3,JSONParse37,Access38,PgSelect39,First43,PgSelectRows44,PgSelectSingle45,PgClassExpression46,Connection50,PgUnionAll52,JSONParse77,Access78,PgSelect79,First81,PgSelectRows82,PgSelectSingle83,PgClassExpression84,Connection88,PgUnionAll90,Access115,Access116 bucket3 + Bucket4("Bucket 4 (listItem)
Deps: 52, 12

ROOT __Item{4}ᐸ115ᐳ[54]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item31,PgUnionAllSingle32,Access33 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 32, 33, 13, 116

ROOT PgUnionAllSingle{4}[32]"):::bucket + class Bucket4,__Item54,PgUnionAllSingle55,Access56,PgCursor57,Access58 bucket4 + Bucket5("Bucket 5 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 58, 12, 55
ᐳAwsApplicationᐳFirstPartyVulnerability
ᐳAwsApplicationᐳThirdPartyVulnerability

1: JSONParse[59], JSONParse[69]
ᐳ: Access[60], Access[70]
2: PgSelect[61], PgSelect[71]
3: PgSelectRows[66], PgSelectRows[74]
ᐳ: 65, 67, 68, 73, 75, 76"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgCursor34,Access35 bucket5 - Bucket6("Bucket 6 (polymorphic)
AwsApplication,GcpApplication
Deps: 35, 13, 116, 32
ᐳAwsApplication
ᐳGcpApplication

1: JSONParse[36], JSONParse[75]
ᐳ: 49, 86, 37, 76
2: PgSelect[38], PgSelect[77]
3: PgSelectRows[43], PgSelectRows[80]
ᐳ: 42, 44, 45, 79, 81, 82
4: PgUnionAll[50], PgUnionAll[87]
ᐳ: Access[112], Access[113]"):::bucket + class Bucket5,JSONParse59,Access60,PgSelect61,First65,PgSelectRows66,PgSelectSingle67,PgClassExpression68,JSONParse69,Access70,PgSelect71,First73,PgSelectRows74,PgSelectSingle75,PgClassExpression76 bucket5 + Bucket6("Bucket 6 (listItem)
Deps: 90, 12

ROOT __Item{6}ᐸ116ᐳ[92]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,JSONParse36,Access37,PgSelect38,First42,PgSelectRows43,PgSelectSingle44,PgClassExpression45,Connection49,PgUnionAll50,JSONParse75,Access76,PgSelect77,First79,PgSelectRows80,PgSelectSingle81,PgClassExpression82,Connection86,PgUnionAll87,Access112,Access113 bucket6 - Bucket7("Bucket 7 (listItem)
Deps: 50, 13

ROOT __Item{7}ᐸ112ᐳ[52]"):::bucket + class Bucket6,__Item92,PgUnionAllSingle93,Access94,PgCursor95,Access96 bucket6 + Bucket7("Bucket 7 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 96, 12, 93
ᐳGcpApplicationᐳFirstPartyVulnerability
ᐳGcpApplicationᐳThirdPartyVulnerability

1: JSONParse[97], JSONParse[107]
ᐳ: Access[98], Access[108]
2: PgSelect[99], PgSelect[109]
3: PgSelectRows[104], PgSelectRows[112]
ᐳ: 103, 105, 106, 111, 113, 114"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,__Item52,PgUnionAllSingle53,Access54 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 53, 54, 13

ROOT PgUnionAllSingle{7}[53]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgCursor55,Access56 bucket8 - Bucket9("Bucket 9 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 56, 13, 53
ᐳAwsApplicationᐳFirstPartyVulnerability
ᐳAwsApplicationᐳThirdPartyVulnerability

1: JSONParse[57], JSONParse[67]
ᐳ: Access[58], Access[68]
2: PgSelect[59], PgSelect[69]
3: PgSelectRows[64], PgSelectRows[72]
ᐳ: 63, 65, 66, 71, 73, 74"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,JSONParse57,Access58,PgSelect59,First63,PgSelectRows64,PgSelectSingle65,PgClassExpression66,JSONParse67,Access68,PgSelect69,First71,PgSelectRows72,PgSelectSingle73,PgClassExpression74 bucket9 - Bucket10("Bucket 10 (listItem)
Deps: 87, 13

ROOT __Item{10}ᐸ113ᐳ[89]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,__Item89,PgUnionAllSingle90,Access91 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 90, 91, 13

ROOT PgUnionAllSingle{10}[90]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgCursor92,Access93 bucket11 - Bucket12("Bucket 12 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 93, 13, 90
ᐳGcpApplicationᐳFirstPartyVulnerability
ᐳGcpApplicationᐳThirdPartyVulnerability

1: JSONParse[94], JSONParse[104]
ᐳ: Access[95], Access[105]
2: PgSelect[96], PgSelect[106]
3: PgSelectRows[101], PgSelectRows[109]
ᐳ: 100, 102, 103, 108, 110, 111"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,JSONParse94,Access95,PgSelect96,First100,PgSelectRows101,PgSelectSingle102,PgClassExpression103,JSONParse104,Access105,PgSelect106,First108,PgSelectRows109,PgSelectSingle110,PgClassExpression111 bucket12 + class Bucket7,JSONParse97,Access98,PgSelect99,First103,PgSelectRows104,PgSelectSingle105,PgClassExpression106,JSONParse107,Access108,PgSelect109,First111,PgSelectRows112,PgSelectSingle113,PgClassExpression114 bucket7 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 + Bucket3 --> Bucket4 & Bucket6 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 & Bucket10 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 - Bucket10 --> Bucket11 - Bucket11 --> Bucket12 + Bucket6 --> Bucket7 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-totalCount.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-totalCount.mermaid index f0687b3eb8..a75fbde54f 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-totalCount.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-totalCount.mermaid @@ -9,57 +9,51 @@ graph TD %% plan dependencies - Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access11 & Access12 --> Object13 + PgSelect15[["PgSelect[15∈0] ➊
ᐸpeopleᐳ"]]:::plan + Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant33{{"Constant[33∈0] ➊
ᐸ4ᐳ"}}:::plan + Object12 -->|rejectNull| PgSelect15 + Connection13 & Constant33 --> PgSelect15 + Constant33 --> Connection13 + Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access10 & Access11 --> Object12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access10 __Value2 --> Access11 - __Value2 --> Access12 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant32{{"Constant[32∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant32 --> Connection14 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸpeopleᐳ"]]:::plan - Object13 & Connection14 & Constant32 --> PgSelect15 - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan PgSelect15 --> PgSelectRows16 - __Item17[/"__Item[17∈2]
ᐸ16ᐳ"\]:::itemplan + Lambda26[["Lambda[26∈0] ➊
ᐸlimitToTypesᐳ"]]:::unbatchedplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgUnionAll27[["PgUnionAll[27∈1]"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object12 & PgClassExpression19 & Lambda26 & Connection25 --> PgUnionAll27 + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan PgSelectRows16 ==> __Item17 - PgSelectSingle18{{"PgSelectSingle[18∈2]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸpeopleᐳ"}}:::plan __Item17 --> PgSelectSingle18 - PgUnionAll26[["PgUnionAll[26∈3]"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object13 & PgClassExpression19 & Connection25 --> PgUnionAll26 PgSelectSingle18 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression20 - First27{{"First[27∈3]"}}:::plan - Access31{{"Access[31∈3]
ᐸ26.itemsᐳ"}}:::plan - Access31 --> First27 - PgUnionAllSingle29["PgUnionAllSingle[29∈3]"]:::plan - First27 --> PgUnionAllSingle29 - PgClassExpression30{{"PgClassExpression[30∈3]
ᐸcount(*)ᐳ"}}:::plan - PgUnionAllSingle29 --> PgClassExpression30 - PgUnionAll26 --> Access31 + First28{{"First[28∈1]"}}:::plan + Access32{{"Access[32∈1]
ᐸ27.itemsᐳ"}}:::plan + Access32 --> First28 + PgUnionAllSingle30["PgUnionAllSingle[30∈1]"]:::plan + First28 --> PgUnionAllSingle30 + PgClassExpression31{{"PgClassExpression[31∈1]
ᐸcount(*)ᐳ"}}:::plan + PgUnionAllSingle30 --> PgClassExpression31 + PgUnionAll27 --> Access32 %% define steps subgraph "Buckets for queries/polymorphic/person-app-vulns.app-totalCount" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 10, 11, 33, 12, 13, 25
2: PgSelect[15], Lambda[26]
3: PgSelectRows[16]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14,Connection25,Constant32 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 32, 25

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[15]
2: PgSelectRows[16]"):::bucket + class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,PgSelect15,PgSelectRows16,Connection25,Lambda26,Constant33 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 26, 25

ROOT __Item{1}ᐸ16ᐳ[17]
1:
ᐳ: 18, 19, 20
2: PgUnionAll[27]
ᐳ: Access[32], First[28]
3: PgUnionAllSingle[30]
ᐳ: PgClassExpression[31]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect15,PgSelectRows16 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 13, 25

ROOT __Item{2}ᐸ16ᐳ[17]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item17,PgSelectSingle18 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 18, 13, 25

ROOT PgSelectSingle{2}ᐸpeopleᐳ[18]
1:
ᐳ: 19, 20
2: PgUnionAll[26]
ᐳ: Access[31], First[27]
3: PgUnionAllSingle[29]
ᐳ: PgClassExpression[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgClassExpression20,PgUnionAll26,First27,PgUnionAllSingle29,PgClassExpression30,Access31 bucket3 + class Bucket1,__Item17,PgSelectSingle18,PgClassExpression19,PgClassExpression20,PgUnionAll27,First28,PgUnionAllSingle30,PgClassExpression31,Access32 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-vuln-totalCount.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-vuln-totalCount.mermaid index b9a15eecf8..7ad805bced 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-vuln-totalCount.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.app-vuln-totalCount.mermaid @@ -9,115 +9,109 @@ graph TD %% plan dependencies - Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access11 & Access12 --> Object13 + PgSelect15[["PgSelect[15∈0] ➊
ᐸpeopleᐳ"]]:::plan + Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant71{{"Constant[71∈0] ➊
ᐸ4ᐳ"}}:::plan + Object12 -->|rejectNull| PgSelect15 + Connection13 & Constant71 --> PgSelect15 + Constant71 --> Connection13 + Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access10 & Access11 --> Object12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access10 __Value2 --> Access11 - __Value2 --> Access12 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant68{{"Constant[68∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant68 --> Connection14 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸpeopleᐳ"]]:::plan - Object13 & Connection14 & Constant68 --> PgSelect15 - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan PgSelect15 --> PgSelectRows16 - __Item17[/"__Item[17∈2]
ᐸ16ᐳ"\]:::itemplan + Lambda26[["Lambda[26∈0] ➊
ᐸlimitToTypesᐳ"]]:::unbatchedplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgUnionAll27[["PgUnionAll[27∈1]"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object12 & PgClassExpression19 & Lambda26 & Connection25 --> PgUnionAll27 + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan PgSelectRows16 ==> __Item17 - PgSelectSingle18{{"PgSelectSingle[18∈2]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸpeopleᐳ"}}:::plan __Item17 --> PgSelectSingle18 - PgUnionAll26[["PgUnionAll[26∈3]"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object13 & PgClassExpression19 & Connection25 --> PgUnionAll26 PgSelectSingle18 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression20 - Access67{{"Access[67∈3]
ᐸ26.itemsᐳ"}}:::plan - PgUnionAll26 --> Access67 - __Item28[/"__Item[28∈4]
ᐸ67ᐳ"\]:::itemplan - Access67 ==> __Item28 - PgUnionAllSingle29["PgUnionAllSingle[29∈4]"]:::plan - __Item28 --> PgUnionAllSingle29 - Access30{{"Access[30∈4]
ᐸ29.1ᐳ"}}:::plan - PgUnionAllSingle29 --> Access30 - PgUnionAll44[["PgUnionAll[44∈5]
ᐳAwsApplication"]]:::plan - PgClassExpression40{{"PgClassExpression[40∈5]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan - Connection43{{"Connection[43∈5] ➊
ᐸ41ᐳ
ᐳAwsApplication"}}:::plan - Object13 & PgClassExpression40 & Connection43 --> PgUnionAll44 - PgUnionAll60[["PgUnionAll[60∈5]
ᐳGcpApplication"]]:::plan - PgClassExpression56{{"PgClassExpression[56∈5]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan - Connection59{{"Connection[59∈5] ➊
ᐸ57ᐳ
ᐳGcpApplication"}}:::plan - Object13 & PgClassExpression56 & Connection59 --> PgUnionAll60 - PgSelect33[["PgSelect[33∈5]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan - Access32{{"Access[32∈5]
ᐸ31.0ᐳ"}}:::plan - Object13 & Access32 --> PgSelect33 - PgSelect51[["PgSelect[51∈5]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan - Access50{{"Access[50∈5]
ᐸ49.0ᐳ"}}:::plan - Object13 & Access50 --> PgSelect51 - JSONParse31[["JSONParse[31∈5]
ᐸ30ᐳ
ᐳAwsApplication"]]:::plan - Access30 --> JSONParse31 - JSONParse31 --> Access32 - First37{{"First[37∈5]"}}:::plan - PgSelectRows38[["PgSelectRows[38∈5]"]]:::plan - PgSelectRows38 --> First37 - PgSelect33 --> PgSelectRows38 - PgSelectSingle39{{"PgSelectSingle[39∈5]
ᐸaws_applicationsᐳ"}}:::plan - First37 --> PgSelectSingle39 - PgSelectSingle39 --> PgClassExpression40 - First45{{"First[45∈5]"}}:::plan - Access65{{"Access[65∈5]
ᐸ44.itemsᐳ"}}:::plan - Access65 --> First45 - PgUnionAllSingle47["PgUnionAllSingle[47∈5]"]:::plan - First45 --> PgUnionAllSingle47 - PgClassExpression48{{"PgClassExpression[48∈5]
ᐸcount(*)ᐳ"}}:::plan - PgUnionAllSingle47 --> PgClassExpression48 - JSONParse49[["JSONParse[49∈5]
ᐸ30ᐳ
ᐳGcpApplication"]]:::plan - Access30 --> JSONParse49 - JSONParse49 --> Access50 - First53{{"First[53∈5]"}}:::plan - PgSelectRows54[["PgSelectRows[54∈5]"]]:::plan - PgSelectRows54 --> First53 - PgSelect51 --> PgSelectRows54 - PgSelectSingle55{{"PgSelectSingle[55∈5]
ᐸgcp_applicationsᐳ"}}:::plan - First53 --> PgSelectSingle55 - PgSelectSingle55 --> PgClassExpression56 - First61{{"First[61∈5]"}}:::plan - Access66{{"Access[66∈5]
ᐸ60.itemsᐳ"}}:::plan - Access66 --> First61 - PgUnionAllSingle63["PgUnionAllSingle[63∈5]"]:::plan - First61 --> PgUnionAllSingle63 - PgClassExpression64{{"PgClassExpression[64∈5]
ᐸcount(*)ᐳ"}}:::plan - PgUnionAllSingle63 --> PgClassExpression64 - PgUnionAll44 --> Access65 - PgUnionAll60 --> Access66 + Access70{{"Access[70∈1]
ᐸ27.itemsᐳ"}}:::plan + PgUnionAll27 --> Access70 + __Item29[/"__Item[29∈2]
ᐸ70ᐳ"\]:::itemplan + Access70 ==> __Item29 + PgUnionAllSingle30["PgUnionAllSingle[30∈2]"]:::plan + __Item29 --> PgUnionAllSingle30 + Access31{{"Access[31∈2]
ᐸ30.1ᐳ"}}:::plan + PgUnionAllSingle30 --> Access31 + PgUnionAll46[["PgUnionAll[46∈3]
ᐳAwsApplication"]]:::plan + PgClassExpression41{{"PgClassExpression[41∈3]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan + Connection44{{"Connection[44∈3] ➊
ᐸ42ᐳ
ᐳAwsApplication"}}:::plan + Object12 & PgClassExpression41 & Lambda26 & Connection44 --> PgUnionAll46 + PgUnionAll63[["PgUnionAll[63∈3]
ᐳGcpApplication"]]:::plan + PgClassExpression58{{"PgClassExpression[58∈3]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan + Connection61{{"Connection[61∈3] ➊
ᐸ59ᐳ
ᐳGcpApplication"}}:::plan + Object12 & PgClassExpression58 & Lambda26 & Connection61 --> PgUnionAll63 + PgSelect34[["PgSelect[34∈3]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan + Access33{{"Access[33∈3]
ᐸ32.0ᐳ"}}:::plan + Object12 & Access33 --> PgSelect34 + PgSelect53[["PgSelect[53∈3]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan + Access52{{"Access[52∈3]
ᐸ51.0ᐳ"}}:::plan + Object12 & Access52 --> PgSelect53 + JSONParse32[["JSONParse[32∈3]
ᐸ31ᐳ
ᐳAwsApplication"]]:::plan + Access31 --> JSONParse32 + JSONParse32 --> Access33 + First38{{"First[38∈3]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈3]"]]:::plan + PgSelectRows39 --> First38 + PgSelect34 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈3]
ᐸaws_applicationsᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgSelectSingle40 --> PgClassExpression41 + First47{{"First[47∈3]"}}:::plan + Access68{{"Access[68∈3]
ᐸ46.itemsᐳ"}}:::plan + Access68 --> First47 + PgUnionAllSingle49["PgUnionAllSingle[49∈3]"]:::plan + First47 --> PgUnionAllSingle49 + PgClassExpression50{{"PgClassExpression[50∈3]
ᐸcount(*)ᐳ"}}:::plan + PgUnionAllSingle49 --> PgClassExpression50 + JSONParse51[["JSONParse[51∈3]
ᐸ31ᐳ
ᐳGcpApplication"]]:::plan + Access31 --> JSONParse51 + JSONParse51 --> Access52 + First55{{"First[55∈3]"}}:::plan + PgSelectRows56[["PgSelectRows[56∈3]"]]:::plan + PgSelectRows56 --> First55 + PgSelect53 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈3]
ᐸgcp_applicationsᐳ"}}:::plan + First55 --> PgSelectSingle57 + PgSelectSingle57 --> PgClassExpression58 + First64{{"First[64∈3]"}}:::plan + Access69{{"Access[69∈3]
ᐸ63.itemsᐳ"}}:::plan + Access69 --> First64 + PgUnionAllSingle66["PgUnionAllSingle[66∈3]"]:::plan + First64 --> PgUnionAllSingle66 + PgClassExpression67{{"PgClassExpression[67∈3]
ᐸcount(*)ᐳ"}}:::plan + PgUnionAllSingle66 --> PgClassExpression67 + PgUnionAll46 --> Access68 + PgUnionAll63 --> Access69 %% define steps subgraph "Buckets for queries/polymorphic/person-app-vulns.app-vuln-totalCount" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 10, 11, 71, 12, 13, 25
2: PgSelect[15], Lambda[26]
3: PgSelectRows[16]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14,Connection25,Constant68 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 68, 25

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[15]
2: PgSelectRows[16]"):::bucket + class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,PgSelect15,PgSelectRows16,Connection25,Lambda26,Constant71 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 26, 25, 7

ROOT __Item{1}ᐸ16ᐳ[17]
1:
ᐳ: 18, 19, 20
2: PgUnionAll[27]
ᐳ: Access[70]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect15,PgSelectRows16 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 13, 25

ROOT __Item{2}ᐸ16ᐳ[17]"):::bucket + class Bucket1,__Item17,PgSelectSingle18,PgClassExpression19,PgClassExpression20,PgUnionAll27,Access70 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 12, 7, 26

ROOT __Item{2}ᐸ70ᐳ[29]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item17,PgSelectSingle18 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 18, 13, 25

ROOT PgSelectSingle{2}ᐸpeopleᐳ[18]
1:
ᐳ: 19, 20
2: PgUnionAll[26]
ᐳ: Access[67]"):::bucket + class Bucket2,__Item29,PgUnionAllSingle30,Access31 bucket2 + Bucket3("Bucket 3 (polymorphic)
AwsApplication,GcpApplication
Deps: 31, 12, 7, 26, 30
ᐳAwsApplication
ᐳGcpApplication

1: JSONParse[32], JSONParse[51]
ᐳ: 44, 61, 33, 52
2: PgSelect[34], PgSelect[53]
3: PgSelectRows[39], PgSelectRows[56]
ᐳ: 38, 40, 41, 55, 57, 58
4: PgUnionAll[46], PgUnionAll[63]
ᐳ: 68, 69, 47, 64
5: 49, 66
ᐳ: 50, 67"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgClassExpression20,PgUnionAll26,Access67 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 13

ROOT __Item{4}ᐸ67ᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgUnionAllSingle29,Access30 bucket4 - Bucket5("Bucket 5 (polymorphic)
AwsApplication,GcpApplication
Deps: 30, 13, 29
ᐳAwsApplication
ᐳGcpApplication

1: JSONParse[31], JSONParse[49]
ᐳ: 43, 59, 32, 50
2: PgSelect[33], PgSelect[51]
3: PgSelectRows[38], PgSelectRows[54]
ᐳ: 37, 39, 40, 53, 55, 56
4: PgUnionAll[44], PgUnionAll[60]
ᐳ: 65, 66, 45, 61
5: 47, 63
ᐳ: 48, 64"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,JSONParse31,Access32,PgSelect33,First37,PgSelectRows38,PgSelectSingle39,PgClassExpression40,Connection43,PgUnionAll44,First45,PgUnionAllSingle47,PgClassExpression48,JSONParse49,Access50,PgSelect51,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression56,Connection59,PgUnionAll60,First61,PgUnionAllSingle63,PgClassExpression64,Access65,Access66 bucket5 + class Bucket3,JSONParse32,Access33,PgSelect34,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,Connection44,PgUnionAll46,First47,PgUnionAllSingle49,PgClassExpression50,JSONParse51,Access52,PgSelect53,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,Connection61,PgUnionAll63,First64,PgUnionAllSingle66,PgClassExpression67,Access68,Access69 bucket3 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.mermaid index 63c3dec889..5438fce8b6 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-app-vulns.mermaid @@ -9,521 +9,503 @@ graph TD %% plan dependencies - Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access11 & Access12 --> Object13 + PgSelect15[["PgSelect[15∈0] ➊
ᐸpeopleᐳ"]]:::plan + Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant289{{"Constant[289∈0] ➊
ᐸ4ᐳ"}}:::plan + Object12 -->|rejectNull| PgSelect15 + Connection13 & Constant289 --> PgSelect15 + Constant289 --> Connection13 + Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access10 & Access11 --> Object12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access10 __Value2 --> Access11 - __Value2 --> Access12 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant284{{"Constant[284∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant284 --> Connection14 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸpeopleᐳ"]]:::plan - Object13 & Connection14 & Constant284 --> PgSelect15 - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan PgSelect15 --> PgSelectRows16 - __Item17[/"__Item[17∈2]
ᐸ16ᐳ"\]:::itemplan + Lambda26[["Lambda[26∈0] ➊
ᐸlimitToTypesᐳ"]]:::unbatchedplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgUnionAll32[["PgUnionAll[32∈1]"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object12 & PgClassExpression19 & Lambda26 & Connection25 --> PgUnionAll32 + PgUnionAll57[["PgUnionAll[57∈1]"]]:::plan + Object12 & PgClassExpression19 & Lambda26 & Connection25 --> PgUnionAll57 + PgUnionAll27[["PgUnionAll[27∈1]"]]:::plan + Object12 & PgClassExpression19 & Lambda26 & Connection25 --> PgUnionAll27 + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan PgSelectRows16 ==> __Item17 - PgSelectSingle18{{"PgSelectSingle[18∈2]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸpeopleᐳ"}}:::plan __Item17 --> PgSelectSingle18 - PgUnionAll26[["PgUnionAll[26∈3]"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object13 & PgClassExpression19 & Connection25 --> PgUnionAll26 - PgUnionAll31[["PgUnionAll[31∈3]"]]:::plan - Object13 & PgClassExpression19 & Connection25 --> PgUnionAll31 - PgUnionAll56[["PgUnionAll[56∈3]"]]:::plan - Object13 & PgClassExpression19 & Connection25 --> PgUnionAll56 PgSelectSingle18 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression20 - First27{{"First[27∈3]"}}:::plan - Access273{{"Access[273∈3]
ᐸ26.itemsᐳ"}}:::plan - Access273 --> First27 - PgUnionAllSingle29["PgUnionAllSingle[29∈3]"]:::plan - First27 --> PgUnionAllSingle29 - PgClassExpression30{{"PgClassExpression[30∈3]
ᐸcount(*)ᐳ"}}:::plan - PgUnionAllSingle29 --> PgClassExpression30 - PgUnionAll26 --> Access273 - Access274{{"Access[274∈3]
ᐸ31.itemsᐳ"}}:::plan - PgUnionAll31 --> Access274 - Access283{{"Access[283∈3]
ᐸ56.itemsᐳ"}}:::plan - PgUnionAll56 --> Access283 - __Item33[/"__Item[33∈4]
ᐸ274ᐳ"\]:::itemplan - Access274 ==> __Item33 - PgUnionAllSingle34["PgUnionAllSingle[34∈4]"]:::plan - __Item33 --> PgUnionAllSingle34 - Access35{{"Access[35∈4]
ᐸ31.cursorDetailsᐳ"}}:::plan - PgUnionAll31 --> Access35 - PgCursor36{{"PgCursor[36∈5]"}}:::plan - PgUnionAllSingle34 & Access35 --> PgCursor36 - Access37{{"Access[37∈5]
ᐸ34.1ᐳ"}}:::plan - PgUnionAllSingle34 --> Access37 - PgSelect40[["PgSelect[40∈6]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan - Access39{{"Access[39∈6]
ᐸ38.0ᐳ"}}:::plan - Object13 & Access39 --> PgSelect40 - PgSelect50[["PgSelect[50∈6]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan - Access49{{"Access[49∈6]
ᐸ48.0ᐳ"}}:::plan - Object13 & Access49 --> PgSelect50 - JSONParse38[["JSONParse[38∈6]
ᐸ37ᐳ
ᐳAwsApplication"]]:::plan - Access37 --> JSONParse38 - JSONParse38 --> Access39 - First44{{"First[44∈6]"}}:::plan - PgSelectRows45[["PgSelectRows[45∈6]"]]:::plan - PgSelectRows45 --> First44 - PgSelect40 --> PgSelectRows45 - PgSelectSingle46{{"PgSelectSingle[46∈6]
ᐸaws_applicationsᐳ"}}:::plan - First44 --> PgSelectSingle46 - PgClassExpression47{{"PgClassExpression[47∈6]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan - PgSelectSingle46 --> PgClassExpression47 - JSONParse48[["JSONParse[48∈6]
ᐸ37ᐳ
ᐳGcpApplication"]]:::plan - Access37 --> JSONParse48 - JSONParse48 --> Access49 - First52{{"First[52∈6]"}}:::plan - PgSelectRows53[["PgSelectRows[53∈6]"]]:::plan - PgSelectRows53 --> First52 - PgSelect50 --> PgSelectRows53 - PgSelectSingle54{{"PgSelectSingle[54∈6]
ᐸgcp_applicationsᐳ"}}:::plan - First52 --> PgSelectSingle54 - PgClassExpression55{{"PgClassExpression[55∈6]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan - PgSelectSingle54 --> PgClassExpression55 - __Item58[/"__Item[58∈7]
ᐸ283ᐳ"\]:::itemplan - Access283 ==> __Item58 - PgUnionAllSingle59["PgUnionAllSingle[59∈7]"]:::plan - __Item58 --> PgUnionAllSingle59 - Access60{{"Access[60∈7]
ᐸ59.1ᐳ"}}:::plan - PgUnionAllSingle59 --> Access60 - PgUnionAll75[["PgUnionAll[75∈8]
ᐳAwsApplication"]]:::plan - PgClassExpression73{{"PgClassExpression[73∈8]
ᐸ__aws_appl...person_id”ᐳ"}}:::plan - PgClassExpression74{{"PgClassExpression[74∈8]
ᐸ__aws_appl...zation_id”ᐳ"}}:::plan - Object13 & PgClassExpression73 & PgClassExpression74 --> PgUnionAll75 - PgUnionAll134[["PgUnionAll[134∈8]
ᐳAwsApplication"]]:::plan - PgClassExpression71{{"PgClassExpression[71∈8]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan - Connection133{{"Connection[133∈8] ➊
ᐸ131ᐳ
ᐳAwsApplication"}}:::plan - Object13 & PgClassExpression71 & Connection133 --> PgUnionAll134 - PgUnionAll139[["PgUnionAll[139∈8]
ᐳAwsApplication"]]:::plan - Object13 & PgClassExpression71 & Connection133 --> PgUnionAll139 - PgUnionAll180[["PgUnionAll[180∈8]
ᐳGcpApplication"]]:::plan - PgClassExpression178{{"PgClassExpression[178∈8]
ᐸ__gcp_appl...person_id”ᐳ"}}:::plan - PgClassExpression179{{"PgClassExpression[179∈8]
ᐸ__gcp_appl...zation_id”ᐳ"}}:::plan - Object13 & PgClassExpression178 & PgClassExpression179 --> PgUnionAll180 - PgUnionAll239[["PgUnionAll[239∈8]
ᐳGcpApplication"]]:::plan - PgClassExpression176{{"PgClassExpression[176∈8]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan - Connection238{{"Connection[238∈8] ➊
ᐸ236ᐳ
ᐳGcpApplication"}}:::plan - Object13 & PgClassExpression176 & Connection238 --> PgUnionAll239 - PgUnionAll244[["PgUnionAll[244∈8]
ᐳGcpApplication"]]:::plan - Object13 & PgClassExpression176 & Connection238 --> PgUnionAll244 - PgSelect63[["PgSelect[63∈8]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan - Access62{{"Access[62∈8]
ᐸ61.0ᐳ"}}:::plan - Object13 & Access62 --> PgSelect63 - PgUnionAll101[["PgUnionAll[101∈8]
ᐳAwsApplication"]]:::plan - Object13 & PgClassExpression71 --> PgUnionAll101 - PgSelect170[["PgSelect[170∈8]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan - Access169{{"Access[169∈8]
ᐸ168.0ᐳ"}}:::plan - Object13 & Access169 --> PgSelect170 - PgUnionAll206[["PgUnionAll[206∈8]
ᐳGcpApplication"]]:::plan - Object13 & PgClassExpression176 --> PgUnionAll206 - JSONParse61[["JSONParse[61∈8]
ᐸ60ᐳ
ᐳAwsApplication"]]:::plan - Access60 --> JSONParse61 - JSONParse61 --> Access62 - First67{{"First[67∈8]"}}:::plan - PgSelectRows68[["PgSelectRows[68∈8]"]]:::plan - PgSelectRows68 --> First67 - PgSelect63 --> PgSelectRows68 - PgSelectSingle69{{"PgSelectSingle[69∈8]
ᐸaws_applicationsᐳ"}}:::plan - First67 --> PgSelectSingle69 - PgClassExpression70{{"PgClassExpression[70∈8]
ᐸ__aws_appl..._.”aws_id”ᐳ"}}:::plan - PgSelectSingle69 --> PgClassExpression70 - PgSelectSingle69 --> PgClassExpression71 - PgClassExpression72{{"PgClassExpression[72∈8]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan - PgSelectSingle69 --> PgClassExpression72 - PgSelectSingle69 --> PgClassExpression73 - PgSelectSingle69 --> PgClassExpression74 - First77{{"First[77∈8]"}}:::plan - Access278{{"Access[278∈8]
ᐸ75.itemsᐳ"}}:::plan - Access278 --> First77 - PgUnionAllSingle79["PgUnionAllSingle[79∈8]"]:::plan - First77 --> PgUnionAllSingle79 - Access80{{"Access[80∈8]
ᐸ79.1ᐳ"}}:::plan - PgUnionAllSingle79 --> Access80 - First135{{"First[135∈8]"}}:::plan - Access276{{"Access[276∈8]
ᐸ134.itemsᐳ"}}:::plan - Access276 --> First135 - PgUnionAllSingle137["PgUnionAllSingle[137∈8]"]:::plan - First135 --> PgUnionAllSingle137 - PgClassExpression138{{"PgClassExpression[138∈8]
ᐸcount(*)ᐳ"}}:::plan - PgUnionAllSingle137 --> PgClassExpression138 - JSONParse168[["JSONParse[168∈8]
ᐸ60ᐳ
ᐳGcpApplication"]]:::plan - Access60 --> JSONParse168 - JSONParse168 --> Access169 - First172{{"First[172∈8]"}}:::plan - PgSelectRows173[["PgSelectRows[173∈8]"]]:::plan - PgSelectRows173 --> First172 - PgSelect170 --> PgSelectRows173 - PgSelectSingle174{{"PgSelectSingle[174∈8]
ᐸgcp_applicationsᐳ"}}:::plan - First172 --> PgSelectSingle174 - PgClassExpression175{{"PgClassExpression[175∈8]
ᐸ__gcp_appl..._.”gcp_id”ᐳ"}}:::plan - PgSelectSingle174 --> PgClassExpression175 - PgSelectSingle174 --> PgClassExpression176 - PgClassExpression177{{"PgClassExpression[177∈8]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan - PgSelectSingle174 --> PgClassExpression177 - PgSelectSingle174 --> PgClassExpression178 - PgSelectSingle174 --> PgClassExpression179 - First182{{"First[182∈8]"}}:::plan - Access282{{"Access[282∈8]
ᐸ180.itemsᐳ"}}:::plan - Access282 --> First182 - PgUnionAllSingle184["PgUnionAllSingle[184∈8]"]:::plan - First182 --> PgUnionAllSingle184 - Access185{{"Access[185∈8]
ᐸ184.1ᐳ"}}:::plan - PgUnionAllSingle184 --> Access185 - First240{{"First[240∈8]"}}:::plan - Access280{{"Access[280∈8]
ᐸ239.itemsᐳ"}}:::plan - Access280 --> First240 - PgUnionAllSingle242["PgUnionAllSingle[242∈8]"]:::plan - First240 --> PgUnionAllSingle242 - PgClassExpression243{{"PgClassExpression[243∈8]
ᐸcount(*)ᐳ"}}:::plan - PgUnionAllSingle242 --> PgClassExpression243 - Access275{{"Access[275∈8]
ᐸ101.itemsᐳ"}}:::plan - PgUnionAll101 --> Access275 - PgUnionAll134 --> Access276 - Access277{{"Access[277∈8]
ᐸ139.itemsᐳ"}}:::plan - PgUnionAll139 --> Access277 - PgUnionAll75 --> Access278 - Access279{{"Access[279∈8]
ᐸ206.itemsᐳ"}}:::plan - PgUnionAll206 --> Access279 - PgUnionAll239 --> Access280 - Access281{{"Access[281∈8]
ᐸ244.itemsᐳ"}}:::plan - PgUnionAll244 --> Access281 - PgUnionAll180 --> Access282 - PgSelect83[["PgSelect[83∈9]
ᐸorganizationsᐳ
ᐳAwsApplicationᐳOrganization"]]:::plan - Access82{{"Access[82∈9]
ᐸ81.0ᐳ"}}:::plan - Object13 & Access82 --> PgSelect83 - PgSelect94[["PgSelect[94∈9]
ᐸpeopleᐳ
ᐳAwsApplicationᐳPerson"]]:::plan - Access93{{"Access[93∈9]
ᐸ92.0ᐳ"}}:::plan - Object13 & Access93 --> PgSelect94 - JSONParse81[["JSONParse[81∈9]
ᐸ80ᐳ
ᐳAwsApplicationᐳOrganization"]]:::plan - Access80 --> JSONParse81 - JSONParse81 --> Access82 - First87{{"First[87∈9]"}}:::plan - PgSelectRows88[["PgSelectRows[88∈9]"]]:::plan - PgSelectRows88 --> First87 - PgSelect83 --> PgSelectRows88 - PgSelectSingle89{{"PgSelectSingle[89∈9]
ᐸorganizationsᐳ"}}:::plan - First87 --> PgSelectSingle89 - PgClassExpression90{{"PgClassExpression[90∈9]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression90 - PgClassExpression91{{"PgClassExpression[91∈9]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression91 - JSONParse92[["JSONParse[92∈9]
ᐸ80ᐳ
ᐳAwsApplicationᐳPerson"]]:::plan - Access80 --> JSONParse92 - JSONParse92 --> Access93 - First96{{"First[96∈9]"}}:::plan - PgSelectRows97[["PgSelectRows[97∈9]"]]:::plan - PgSelectRows97 --> First96 - PgSelect94 --> PgSelectRows97 - PgSelectSingle98{{"PgSelectSingle[98∈9]
ᐸpeopleᐳ"}}:::plan - First96 --> PgSelectSingle98 - PgClassExpression99{{"PgClassExpression[99∈9]
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle98 --> PgClassExpression99 - PgClassExpression100{{"PgClassExpression[100∈9]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle98 --> PgClassExpression100 - __Item104[/"__Item[104∈10]
ᐸ275ᐳ"\]:::itemplan - Access275 ==> __Item104 - PgUnionAllSingle105["PgUnionAllSingle[105∈10]"]:::plan - __Item104 --> PgUnionAllSingle105 - Access106{{"Access[106∈10]
ᐸ105.1ᐳ"}}:::plan - PgUnionAllSingle105 --> Access106 - PgSelect109[["PgSelect[109∈11]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan - Access108{{"Access[108∈11]
ᐸ107.0ᐳ"}}:::plan - Object13 & Access108 --> PgSelect109 - PgSelect122[["PgSelect[122∈11]
ᐸthird_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan - Access121{{"Access[121∈11]
ᐸ120.0ᐳ"}}:::plan - Object13 & Access121 --> PgSelect122 - JSONParse107[["JSONParse[107∈11]
ᐸ106ᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan - Access106 --> JSONParse107 - JSONParse107 --> Access108 - First113{{"First[113∈11]"}}:::plan - PgSelectRows114[["PgSelectRows[114∈11]"]]:::plan - PgSelectRows114 --> First113 - PgSelect109 --> PgSelectRows114 - PgSelectSingle115{{"PgSelectSingle[115∈11]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan - First113 --> PgSelectSingle115 - PgClassExpression116{{"PgClassExpression[116∈11]
ᐸ__first_pa...team_name”ᐳ"}}:::plan - PgSelectSingle115 --> PgClassExpression116 - PgClassExpression117{{"PgClassExpression[117∈11]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle115 --> PgClassExpression117 - PgClassExpression118{{"PgClassExpression[118∈11]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan - PgSelectSingle115 --> PgClassExpression118 - PgClassExpression119{{"PgClassExpression[119∈11]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle115 --> PgClassExpression119 - JSONParse120[["JSONParse[120∈11]
ᐸ106ᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan - Access106 --> JSONParse120 - JSONParse120 --> Access121 - First124{{"First[124∈11]"}}:::plan - PgSelectRows125[["PgSelectRows[125∈11]"]]:::plan - PgSelectRows125 --> First124 - PgSelect122 --> PgSelectRows125 - PgSelectSingle126{{"PgSelectSingle[126∈11]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan - First124 --> PgSelectSingle126 - PgClassExpression127{{"PgClassExpression[127∈11]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan - PgSelectSingle126 --> PgClassExpression127 - PgClassExpression128{{"PgClassExpression[128∈11]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle126 --> PgClassExpression128 - PgClassExpression129{{"PgClassExpression[129∈11]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan - PgSelectSingle126 --> PgClassExpression129 - PgClassExpression130{{"PgClassExpression[130∈11]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle126 --> PgClassExpression130 - __Item141[/"__Item[141∈12]
ᐸ277ᐳ"\]:::itemplan - Access277 ==> __Item141 - PgUnionAllSingle142["PgUnionAllSingle[142∈12]"]:::plan - __Item141 --> PgUnionAllSingle142 - Access143{{"Access[143∈12]
ᐸ139.cursorDetailsᐳ"}}:::plan - PgUnionAll139 --> Access143 - PgCursor144{{"PgCursor[144∈13]
ᐳAwsApplication"}}:::plan - PgUnionAllSingle142 & Access143 --> PgCursor144 - Access145{{"Access[145∈13]
ᐸ142.1ᐳ"}}:::plan - PgUnionAllSingle142 --> Access145 - PgSelect148[["PgSelect[148∈14]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan - Access147{{"Access[147∈14]
ᐸ146.0ᐳ"}}:::plan - Object13 & Access147 --> PgSelect148 - PgSelect160[["PgSelect[160∈14]
ᐸthird_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan - Access159{{"Access[159∈14]
ᐸ158.0ᐳ"}}:::plan - Object13 & Access159 --> PgSelect160 - JSONParse146[["JSONParse[146∈14]
ᐸ145ᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan - Access145 --> JSONParse146 - JSONParse146 --> Access147 - First152{{"First[152∈14]"}}:::plan - PgSelectRows153[["PgSelectRows[153∈14]"]]:::plan - PgSelectRows153 --> First152 - PgSelect148 --> PgSelectRows153 - PgSelectSingle154{{"PgSelectSingle[154∈14]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan - First152 --> PgSelectSingle154 - PgClassExpression155{{"PgClassExpression[155∈14]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan - PgSelectSingle154 --> PgClassExpression155 - PgClassExpression156{{"PgClassExpression[156∈14]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle154 --> PgClassExpression156 - PgClassExpression157{{"PgClassExpression[157∈14]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle154 --> PgClassExpression157 - JSONParse158[["JSONParse[158∈14]
ᐸ145ᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan - Access145 --> JSONParse158 - JSONParse158 --> Access159 - First162{{"First[162∈14]"}}:::plan - PgSelectRows163[["PgSelectRows[163∈14]"]]:::plan - PgSelectRows163 --> First162 - PgSelect160 --> PgSelectRows163 - PgSelectSingle164{{"PgSelectSingle[164∈14]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan - First162 --> PgSelectSingle164 - PgClassExpression165{{"PgClassExpression[165∈14]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan - PgSelectSingle164 --> PgClassExpression165 - PgClassExpression166{{"PgClassExpression[166∈14]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle164 --> PgClassExpression166 - PgClassExpression167{{"PgClassExpression[167∈14]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle164 --> PgClassExpression167 - PgSelect188[["PgSelect[188∈15]
ᐸorganizationsᐳ
ᐳGcpApplicationᐳOrganization"]]:::plan - Access187{{"Access[187∈15]
ᐸ186.0ᐳ"}}:::plan - Object13 & Access187 --> PgSelect188 - PgSelect199[["PgSelect[199∈15]
ᐸpeopleᐳ
ᐳGcpApplicationᐳPerson"]]:::plan - Access198{{"Access[198∈15]
ᐸ197.0ᐳ"}}:::plan - Object13 & Access198 --> PgSelect199 - JSONParse186[["JSONParse[186∈15]
ᐸ185ᐳ
ᐳGcpApplicationᐳOrganization"]]:::plan - Access185 --> JSONParse186 - JSONParse186 --> Access187 - First192{{"First[192∈15]"}}:::plan - PgSelectRows193[["PgSelectRows[193∈15]"]]:::plan - PgSelectRows193 --> First192 - PgSelect188 --> PgSelectRows193 - PgSelectSingle194{{"PgSelectSingle[194∈15]
ᐸorganizationsᐳ"}}:::plan - First192 --> PgSelectSingle194 - PgClassExpression195{{"PgClassExpression[195∈15]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - PgSelectSingle194 --> PgClassExpression195 - PgClassExpression196{{"PgClassExpression[196∈15]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle194 --> PgClassExpression196 - JSONParse197[["JSONParse[197∈15]
ᐸ185ᐳ
ᐳGcpApplicationᐳPerson"]]:::plan - Access185 --> JSONParse197 - JSONParse197 --> Access198 - First201{{"First[201∈15]"}}:::plan - PgSelectRows202[["PgSelectRows[202∈15]"]]:::plan - PgSelectRows202 --> First201 - PgSelect199 --> PgSelectRows202 - PgSelectSingle203{{"PgSelectSingle[203∈15]
ᐸpeopleᐳ"}}:::plan - First201 --> PgSelectSingle203 - PgClassExpression204{{"PgClassExpression[204∈15]
ᐸ__people__.”person_id”ᐳ"}}:::plan - PgSelectSingle203 --> PgClassExpression204 - PgClassExpression205{{"PgClassExpression[205∈15]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle203 --> PgClassExpression205 - __Item209[/"__Item[209∈16]
ᐸ279ᐳ"\]:::itemplan - Access279 ==> __Item209 - PgUnionAllSingle210["PgUnionAllSingle[210∈16]"]:::plan - __Item209 --> PgUnionAllSingle210 - Access211{{"Access[211∈16]
ᐸ210.1ᐳ"}}:::plan - PgUnionAllSingle210 --> Access211 - PgSelect214[["PgSelect[214∈17]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan - Access213{{"Access[213∈17]
ᐸ212.0ᐳ"}}:::plan - Object13 & Access213 --> PgSelect214 - PgSelect227[["PgSelect[227∈17]
ᐸthird_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan - Access226{{"Access[226∈17]
ᐸ225.0ᐳ"}}:::plan - Object13 & Access226 --> PgSelect227 - JSONParse212[["JSONParse[212∈17]
ᐸ211ᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan - Access211 --> JSONParse212 - JSONParse212 --> Access213 - First218{{"First[218∈17]"}}:::plan - PgSelectRows219[["PgSelectRows[219∈17]"]]:::plan - PgSelectRows219 --> First218 - PgSelect214 --> PgSelectRows219 - PgSelectSingle220{{"PgSelectSingle[220∈17]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan - First218 --> PgSelectSingle220 - PgClassExpression221{{"PgClassExpression[221∈17]
ᐸ__first_pa...team_name”ᐳ"}}:::plan - PgSelectSingle220 --> PgClassExpression221 - PgClassExpression222{{"PgClassExpression[222∈17]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle220 --> PgClassExpression222 - PgClassExpression223{{"PgClassExpression[223∈17]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan - PgSelectSingle220 --> PgClassExpression223 - PgClassExpression224{{"PgClassExpression[224∈17]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle220 --> PgClassExpression224 - JSONParse225[["JSONParse[225∈17]
ᐸ211ᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan - Access211 --> JSONParse225 - JSONParse225 --> Access226 - First229{{"First[229∈17]"}}:::plan - PgSelectRows230[["PgSelectRows[230∈17]"]]:::plan - PgSelectRows230 --> First229 - PgSelect227 --> PgSelectRows230 - PgSelectSingle231{{"PgSelectSingle[231∈17]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan - First229 --> PgSelectSingle231 - PgClassExpression232{{"PgClassExpression[232∈17]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan - PgSelectSingle231 --> PgClassExpression232 - PgClassExpression233{{"PgClassExpression[233∈17]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle231 --> PgClassExpression233 - PgClassExpression234{{"PgClassExpression[234∈17]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan - PgSelectSingle231 --> PgClassExpression234 - PgClassExpression235{{"PgClassExpression[235∈17]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle231 --> PgClassExpression235 - __Item246[/"__Item[246∈18]
ᐸ281ᐳ"\]:::itemplan - Access281 ==> __Item246 - PgUnionAllSingle247["PgUnionAllSingle[247∈18]"]:::plan - __Item246 --> PgUnionAllSingle247 - Access248{{"Access[248∈18]
ᐸ244.cursorDetailsᐳ"}}:::plan - PgUnionAll244 --> Access248 - PgCursor249{{"PgCursor[249∈19]
ᐳGcpApplication"}}:::plan - PgUnionAllSingle247 & Access248 --> PgCursor249 - Access250{{"Access[250∈19]
ᐸ247.1ᐳ"}}:::plan - PgUnionAllSingle247 --> Access250 - PgSelect253[["PgSelect[253∈20]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan - Access252{{"Access[252∈20]
ᐸ251.0ᐳ"}}:::plan - Object13 & Access252 --> PgSelect253 - PgSelect265[["PgSelect[265∈20]
ᐸthird_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan - Access264{{"Access[264∈20]
ᐸ263.0ᐳ"}}:::plan - Object13 & Access264 --> PgSelect265 - JSONParse251[["JSONParse[251∈20]
ᐸ250ᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan - Access250 --> JSONParse251 - JSONParse251 --> Access252 - First257{{"First[257∈20]"}}:::plan - PgSelectRows258[["PgSelectRows[258∈20]"]]:::plan - PgSelectRows258 --> First257 - PgSelect253 --> PgSelectRows258 - PgSelectSingle259{{"PgSelectSingle[259∈20]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan - First257 --> PgSelectSingle259 - PgClassExpression260{{"PgClassExpression[260∈20]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan - PgSelectSingle259 --> PgClassExpression260 - PgClassExpression261{{"PgClassExpression[261∈20]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle259 --> PgClassExpression261 - PgClassExpression262{{"PgClassExpression[262∈20]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle259 --> PgClassExpression262 - JSONParse263[["JSONParse[263∈20]
ᐸ250ᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan - Access250 --> JSONParse263 - JSONParse263 --> Access264 - First267{{"First[267∈20]"}}:::plan - PgSelectRows268[["PgSelectRows[268∈20]"]]:::plan - PgSelectRows268 --> First267 - PgSelect265 --> PgSelectRows268 - PgSelectSingle269{{"PgSelectSingle[269∈20]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan - First267 --> PgSelectSingle269 - PgClassExpression270{{"PgClassExpression[270∈20]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan - PgSelectSingle269 --> PgClassExpression270 - PgClassExpression271{{"PgClassExpression[271∈20]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle269 --> PgClassExpression271 - PgClassExpression272{{"PgClassExpression[272∈20]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle269 --> PgClassExpression272 + First28{{"First[28∈1]"}}:::plan + Access278{{"Access[278∈1]
ᐸ27.itemsᐳ"}}:::plan + Access278 --> First28 + PgUnionAllSingle30["PgUnionAllSingle[30∈1]"]:::plan + First28 --> PgUnionAllSingle30 + PgClassExpression31{{"PgClassExpression[31∈1]
ᐸcount(*)ᐳ"}}:::plan + PgUnionAllSingle30 --> PgClassExpression31 + PgUnionAll27 --> Access278 + Access279{{"Access[279∈1]
ᐸ32.itemsᐳ"}}:::plan + PgUnionAll32 --> Access279 + Access288{{"Access[288∈1]
ᐸ57.itemsᐳ"}}:::plan + PgUnionAll57 --> Access288 + PgCursor37{{"PgCursor[37∈2]"}}:::plan + PgUnionAllSingle35["PgUnionAllSingle[35∈2]"]:::plan + Access36{{"Access[36∈2]
ᐸ32.cursorDetailsᐳ"}}:::plan + PgUnionAllSingle35 & Access36 --> PgCursor37 + __Item34[/"__Item[34∈2]
ᐸ279ᐳ"\]:::itemplan + Access279 ==> __Item34 + __Item34 --> PgUnionAllSingle35 + PgUnionAll32 --> Access36 + Access38{{"Access[38∈2]
ᐸ35.1ᐳ"}}:::plan + PgUnionAllSingle35 --> Access38 + PgSelect41[["PgSelect[41∈3]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan + Access40{{"Access[40∈3]
ᐸ39.0ᐳ"}}:::plan + Object12 & Access40 --> PgSelect41 + PgSelect51[["PgSelect[51∈3]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan + Access50{{"Access[50∈3]
ᐸ49.0ᐳ"}}:::plan + Object12 & Access50 --> PgSelect51 + JSONParse39[["JSONParse[39∈3]
ᐸ38ᐳ
ᐳAwsApplication"]]:::plan + Access38 --> JSONParse39 + JSONParse39 --> Access40 + First45{{"First[45∈3]"}}:::plan + PgSelectRows46[["PgSelectRows[46∈3]"]]:::plan + PgSelectRows46 --> First45 + PgSelect41 --> PgSelectRows46 + PgSelectSingle47{{"PgSelectSingle[47∈3]
ᐸaws_applicationsᐳ"}}:::plan + First45 --> PgSelectSingle47 + PgClassExpression48{{"PgClassExpression[48∈3]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression48 + JSONParse49[["JSONParse[49∈3]
ᐸ38ᐳ
ᐳGcpApplication"]]:::plan + Access38 --> JSONParse49 + JSONParse49 --> Access50 + First53{{"First[53∈3]"}}:::plan + PgSelectRows54[["PgSelectRows[54∈3]"]]:::plan + PgSelectRows54 --> First53 + PgSelect51 --> PgSelectRows54 + PgSelectSingle55{{"PgSelectSingle[55∈3]
ᐸgcp_applicationsᐳ"}}:::plan + First53 --> PgSelectSingle55 + PgClassExpression56{{"PgClassExpression[56∈3]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan + PgSelectSingle55 --> PgClassExpression56 + __Item59[/"__Item[59∈4]
ᐸ288ᐳ"\]:::itemplan + Access288 ==> __Item59 + PgUnionAllSingle60["PgUnionAllSingle[60∈4]"]:::plan + __Item59 --> PgUnionAllSingle60 + Access61{{"Access[61∈4]
ᐸ60.1ᐳ"}}:::plan + PgUnionAllSingle60 --> Access61 + PgUnionAll142[["PgUnionAll[142∈5]
ᐳAwsApplication"]]:::plan + PgClassExpression72{{"PgClassExpression[72∈5]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan + Connection135{{"Connection[135∈5] ➊
ᐸ133ᐳ
ᐳAwsApplication"}}:::plan + Object12 & PgClassExpression72 & Lambda26 & Connection135 --> PgUnionAll142 + PgUnionAll249[["PgUnionAll[249∈5]
ᐳGcpApplication"]]:::plan + PgClassExpression179{{"PgClassExpression[179∈5]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan + Connection242{{"Connection[242∈5] ➊
ᐸ240ᐳ
ᐳGcpApplication"}}:::plan + Object12 & PgClassExpression179 & Lambda26 & Connection242 --> PgUnionAll249 + PgUnionAll102[["PgUnionAll[102∈5]
ᐳAwsApplication"]]:::plan + Object12 & PgClassExpression72 & Lambda26 --> PgUnionAll102 + PgUnionAll209[["PgUnionAll[209∈5]
ᐳGcpApplication"]]:::plan + Object12 & PgClassExpression179 & Lambda26 --> PgUnionAll209 + PgUnionAll137[["PgUnionAll[137∈5]
ᐳAwsApplication"]]:::plan + Object12 & PgClassExpression72 & Lambda26 & Connection135 --> PgUnionAll137 + PgUnionAll244[["PgUnionAll[244∈5]
ᐳGcpApplication"]]:::plan + Object12 & PgClassExpression179 & Lambda26 & Connection242 --> PgUnionAll244 + PgUnionAll76[["PgUnionAll[76∈5]
ᐳAwsApplication"]]:::plan + PgClassExpression74{{"PgClassExpression[74∈5]
ᐸ__aws_appl...person_id”ᐳ"}}:::plan + PgClassExpression75{{"PgClassExpression[75∈5]
ᐸ__aws_appl...zation_id”ᐳ"}}:::plan + Object12 & PgClassExpression74 & PgClassExpression75 --> PgUnionAll76 + PgUnionAll183[["PgUnionAll[183∈5]
ᐳGcpApplication"]]:::plan + PgClassExpression181{{"PgClassExpression[181∈5]
ᐸ__gcp_appl...person_id”ᐳ"}}:::plan + PgClassExpression182{{"PgClassExpression[182∈5]
ᐸ__gcp_appl...zation_id”ᐳ"}}:::plan + Object12 & PgClassExpression181 & PgClassExpression182 --> PgUnionAll183 + PgSelect64[["PgSelect[64∈5]
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan + Access63{{"Access[63∈5]
ᐸ62.0ᐳ"}}:::plan + Object12 & Access63 --> PgSelect64 + PgSelect173[["PgSelect[173∈5]
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan + Access172{{"Access[172∈5]
ᐸ171.0ᐳ"}}:::plan + Object12 & Access172 --> PgSelect173 + JSONParse62[["JSONParse[62∈5]
ᐸ61ᐳ
ᐳAwsApplication"]]:::plan + Access61 --> JSONParse62 + JSONParse62 --> Access63 + First68{{"First[68∈5]"}}:::plan + PgSelectRows69[["PgSelectRows[69∈5]"]]:::plan + PgSelectRows69 --> First68 + PgSelect64 --> PgSelectRows69 + PgSelectSingle70{{"PgSelectSingle[70∈5]
ᐸaws_applicationsᐳ"}}:::plan + First68 --> PgSelectSingle70 + PgClassExpression71{{"PgClassExpression[71∈5]
ᐸ__aws_appl..._.”aws_id”ᐳ"}}:::plan + PgSelectSingle70 --> PgClassExpression71 + PgSelectSingle70 --> PgClassExpression72 + PgClassExpression73{{"PgClassExpression[73∈5]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan + PgSelectSingle70 --> PgClassExpression73 + PgSelectSingle70 --> PgClassExpression74 + PgSelectSingle70 --> PgClassExpression75 + First78{{"First[78∈5]"}}:::plan + Access283{{"Access[283∈5]
ᐸ76.itemsᐳ"}}:::plan + Access283 --> First78 + PgUnionAllSingle80["PgUnionAllSingle[80∈5]"]:::plan + First78 --> PgUnionAllSingle80 + Access81{{"Access[81∈5]
ᐸ80.1ᐳ"}}:::plan + PgUnionAllSingle80 --> Access81 + First138{{"First[138∈5]"}}:::plan + Access281{{"Access[281∈5]
ᐸ137.itemsᐳ"}}:::plan + Access281 --> First138 + PgUnionAllSingle140["PgUnionAllSingle[140∈5]"]:::plan + First138 --> PgUnionAllSingle140 + PgClassExpression141{{"PgClassExpression[141∈5]
ᐸcount(*)ᐳ"}}:::plan + PgUnionAllSingle140 --> PgClassExpression141 + JSONParse171[["JSONParse[171∈5]
ᐸ61ᐳ
ᐳGcpApplication"]]:::plan + Access61 --> JSONParse171 + JSONParse171 --> Access172 + First175{{"First[175∈5]"}}:::plan + PgSelectRows176[["PgSelectRows[176∈5]"]]:::plan + PgSelectRows176 --> First175 + PgSelect173 --> PgSelectRows176 + PgSelectSingle177{{"PgSelectSingle[177∈5]
ᐸgcp_applicationsᐳ"}}:::plan + First175 --> PgSelectSingle177 + PgClassExpression178{{"PgClassExpression[178∈5]
ᐸ__gcp_appl..._.”gcp_id”ᐳ"}}:::plan + PgSelectSingle177 --> PgClassExpression178 + PgSelectSingle177 --> PgClassExpression179 + PgClassExpression180{{"PgClassExpression[180∈5]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan + PgSelectSingle177 --> PgClassExpression180 + PgSelectSingle177 --> PgClassExpression181 + PgSelectSingle177 --> PgClassExpression182 + First185{{"First[185∈5]"}}:::plan + Access287{{"Access[287∈5]
ᐸ183.itemsᐳ"}}:::plan + Access287 --> First185 + PgUnionAllSingle187["PgUnionAllSingle[187∈5]"]:::plan + First185 --> PgUnionAllSingle187 + Access188{{"Access[188∈5]
ᐸ187.1ᐳ"}}:::plan + PgUnionAllSingle187 --> Access188 + First245{{"First[245∈5]"}}:::plan + Access285{{"Access[285∈5]
ᐸ244.itemsᐳ"}}:::plan + Access285 --> First245 + PgUnionAllSingle247["PgUnionAllSingle[247∈5]"]:::plan + First245 --> PgUnionAllSingle247 + PgClassExpression248{{"PgClassExpression[248∈5]
ᐸcount(*)ᐳ"}}:::plan + PgUnionAllSingle247 --> PgClassExpression248 + Access280{{"Access[280∈5]
ᐸ102.itemsᐳ"}}:::plan + PgUnionAll102 --> Access280 + PgUnionAll137 --> Access281 + Access282{{"Access[282∈5]
ᐸ142.itemsᐳ"}}:::plan + PgUnionAll142 --> Access282 + PgUnionAll76 --> Access283 + Access284{{"Access[284∈5]
ᐸ209.itemsᐳ"}}:::plan + PgUnionAll209 --> Access284 + PgUnionAll244 --> Access285 + Access286{{"Access[286∈5]
ᐸ249.itemsᐳ"}}:::plan + PgUnionAll249 --> Access286 + PgUnionAll183 --> Access287 + PgSelect84[["PgSelect[84∈6]
ᐸorganizationsᐳ
ᐳAwsApplicationᐳOrganization"]]:::plan + Access83{{"Access[83∈6]
ᐸ82.0ᐳ"}}:::plan + Object12 & Access83 --> PgSelect84 + PgSelect95[["PgSelect[95∈6]
ᐸpeopleᐳ
ᐳAwsApplicationᐳPerson"]]:::plan + Access94{{"Access[94∈6]
ᐸ93.0ᐳ"}}:::plan + Object12 & Access94 --> PgSelect95 + JSONParse82[["JSONParse[82∈6]
ᐸ81ᐳ
ᐳAwsApplicationᐳOrganization"]]:::plan + Access81 --> JSONParse82 + JSONParse82 --> Access83 + First88{{"First[88∈6]"}}:::plan + PgSelectRows89[["PgSelectRows[89∈6]"]]:::plan + PgSelectRows89 --> First88 + PgSelect84 --> PgSelectRows89 + PgSelectSingle90{{"PgSelectSingle[90∈6]
ᐸorganizationsᐳ"}}:::plan + First88 --> PgSelectSingle90 + PgClassExpression91{{"PgClassExpression[91∈6]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression91 + PgClassExpression92{{"PgClassExpression[92∈6]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression92 + JSONParse93[["JSONParse[93∈6]
ᐸ81ᐳ
ᐳAwsApplicationᐳPerson"]]:::plan + Access81 --> JSONParse93 + JSONParse93 --> Access94 + First97{{"First[97∈6]"}}:::plan + PgSelectRows98[["PgSelectRows[98∈6]"]]:::plan + PgSelectRows98 --> First97 + PgSelect95 --> PgSelectRows98 + PgSelectSingle99{{"PgSelectSingle[99∈6]
ᐸpeopleᐳ"}}:::plan + First97 --> PgSelectSingle99 + PgClassExpression100{{"PgClassExpression[100∈6]
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle99 --> PgClassExpression100 + PgClassExpression101{{"PgClassExpression[101∈6]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle99 --> PgClassExpression101 + __Item106[/"__Item[106∈7]
ᐸ280ᐳ"\]:::itemplan + Access280 ==> __Item106 + PgUnionAllSingle107["PgUnionAllSingle[107∈7]"]:::plan + __Item106 --> PgUnionAllSingle107 + Access108{{"Access[108∈7]
ᐸ107.1ᐳ"}}:::plan + PgUnionAllSingle107 --> Access108 + PgSelect111[["PgSelect[111∈8]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan + Access110{{"Access[110∈8]
ᐸ109.0ᐳ"}}:::plan + Object12 & Access110 --> PgSelect111 + PgSelect124[["PgSelect[124∈8]
ᐸthird_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan + Access123{{"Access[123∈8]
ᐸ122.0ᐳ"}}:::plan + Object12 & Access123 --> PgSelect124 + JSONParse109[["JSONParse[109∈8]
ᐸ108ᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan + Access108 --> JSONParse109 + JSONParse109 --> Access110 + First115{{"First[115∈8]"}}:::plan + PgSelectRows116[["PgSelectRows[116∈8]"]]:::plan + PgSelectRows116 --> First115 + PgSelect111 --> PgSelectRows116 + PgSelectSingle117{{"PgSelectSingle[117∈8]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + First115 --> PgSelectSingle117 + PgClassExpression118{{"PgClassExpression[118∈8]
ᐸ__first_pa...team_name”ᐳ"}}:::plan + PgSelectSingle117 --> PgClassExpression118 + PgClassExpression119{{"PgClassExpression[119∈8]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle117 --> PgClassExpression119 + PgClassExpression120{{"PgClassExpression[120∈8]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgSelectSingle117 --> PgClassExpression120 + PgClassExpression121{{"PgClassExpression[121∈8]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle117 --> PgClassExpression121 + JSONParse122[["JSONParse[122∈8]
ᐸ108ᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan + Access108 --> JSONParse122 + JSONParse122 --> Access123 + First126{{"First[126∈8]"}}:::plan + PgSelectRows127[["PgSelectRows[127∈8]"]]:::plan + PgSelectRows127 --> First126 + PgSelect124 --> PgSelectRows127 + PgSelectSingle128{{"PgSelectSingle[128∈8]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + First126 --> PgSelectSingle128 + PgClassExpression129{{"PgClassExpression[129∈8]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgSelectSingle128 --> PgClassExpression129 + PgClassExpression130{{"PgClassExpression[130∈8]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle128 --> PgClassExpression130 + PgClassExpression131{{"PgClassExpression[131∈8]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgSelectSingle128 --> PgClassExpression131 + PgClassExpression132{{"PgClassExpression[132∈8]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle128 --> PgClassExpression132 + PgCursor147{{"PgCursor[147∈9]
ᐳAwsApplication"}}:::plan + PgUnionAllSingle145["PgUnionAllSingle[145∈9]"]:::plan + Access146{{"Access[146∈9]
ᐸ142.cursorDetailsᐳ"}}:::plan + PgUnionAllSingle145 & Access146 --> PgCursor147 + __Item144[/"__Item[144∈9]
ᐸ282ᐳ"\]:::itemplan + Access282 ==> __Item144 + __Item144 --> PgUnionAllSingle145 + PgUnionAll142 --> Access146 + Access148{{"Access[148∈9]
ᐸ145.1ᐳ"}}:::plan + PgUnionAllSingle145 --> Access148 + PgSelect151[["PgSelect[151∈10]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan + Access150{{"Access[150∈10]
ᐸ149.0ᐳ"}}:::plan + Object12 & Access150 --> PgSelect151 + PgSelect163[["PgSelect[163∈10]
ᐸthird_party_vulnerabilitiesᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan + Access162{{"Access[162∈10]
ᐸ161.0ᐳ"}}:::plan + Object12 & Access162 --> PgSelect163 + JSONParse149[["JSONParse[149∈10]
ᐸ148ᐳ
ᐳAwsApplicationᐳFirstPartyVulnerability"]]:::plan + Access148 --> JSONParse149 + JSONParse149 --> Access150 + First155{{"First[155∈10]"}}:::plan + PgSelectRows156[["PgSelectRows[156∈10]"]]:::plan + PgSelectRows156 --> First155 + PgSelect151 --> PgSelectRows156 + PgSelectSingle157{{"PgSelectSingle[157∈10]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + First155 --> PgSelectSingle157 + PgClassExpression158{{"PgClassExpression[158∈10]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgSelectSingle157 --> PgClassExpression158 + PgClassExpression159{{"PgClassExpression[159∈10]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle157 --> PgClassExpression159 + PgClassExpression160{{"PgClassExpression[160∈10]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle157 --> PgClassExpression160 + JSONParse161[["JSONParse[161∈10]
ᐸ148ᐳ
ᐳAwsApplicationᐳThirdPartyVulnerability"]]:::plan + Access148 --> JSONParse161 + JSONParse161 --> Access162 + First165{{"First[165∈10]"}}:::plan + PgSelectRows166[["PgSelectRows[166∈10]"]]:::plan + PgSelectRows166 --> First165 + PgSelect163 --> PgSelectRows166 + PgSelectSingle167{{"PgSelectSingle[167∈10]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + First165 --> PgSelectSingle167 + PgClassExpression168{{"PgClassExpression[168∈10]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgSelectSingle167 --> PgClassExpression168 + PgClassExpression169{{"PgClassExpression[169∈10]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle167 --> PgClassExpression169 + PgClassExpression170{{"PgClassExpression[170∈10]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle167 --> PgClassExpression170 + PgSelect191[["PgSelect[191∈11]
ᐸorganizationsᐳ
ᐳGcpApplicationᐳOrganization"]]:::plan + Access190{{"Access[190∈11]
ᐸ189.0ᐳ"}}:::plan + Object12 & Access190 --> PgSelect191 + PgSelect202[["PgSelect[202∈11]
ᐸpeopleᐳ
ᐳGcpApplicationᐳPerson"]]:::plan + Access201{{"Access[201∈11]
ᐸ200.0ᐳ"}}:::plan + Object12 & Access201 --> PgSelect202 + JSONParse189[["JSONParse[189∈11]
ᐸ188ᐳ
ᐳGcpApplicationᐳOrganization"]]:::plan + Access188 --> JSONParse189 + JSONParse189 --> Access190 + First195{{"First[195∈11]"}}:::plan + PgSelectRows196[["PgSelectRows[196∈11]"]]:::plan + PgSelectRows196 --> First195 + PgSelect191 --> PgSelectRows196 + PgSelectSingle197{{"PgSelectSingle[197∈11]
ᐸorganizationsᐳ"}}:::plan + First195 --> PgSelectSingle197 + PgClassExpression198{{"PgClassExpression[198∈11]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + PgSelectSingle197 --> PgClassExpression198 + PgClassExpression199{{"PgClassExpression[199∈11]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle197 --> PgClassExpression199 + JSONParse200[["JSONParse[200∈11]
ᐸ188ᐳ
ᐳGcpApplicationᐳPerson"]]:::plan + Access188 --> JSONParse200 + JSONParse200 --> Access201 + First204{{"First[204∈11]"}}:::plan + PgSelectRows205[["PgSelectRows[205∈11]"]]:::plan + PgSelectRows205 --> First204 + PgSelect202 --> PgSelectRows205 + PgSelectSingle206{{"PgSelectSingle[206∈11]
ᐸpeopleᐳ"}}:::plan + First204 --> PgSelectSingle206 + PgClassExpression207{{"PgClassExpression[207∈11]
ᐸ__people__.”person_id”ᐳ"}}:::plan + PgSelectSingle206 --> PgClassExpression207 + PgClassExpression208{{"PgClassExpression[208∈11]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle206 --> PgClassExpression208 + __Item213[/"__Item[213∈12]
ᐸ284ᐳ"\]:::itemplan + Access284 ==> __Item213 + PgUnionAllSingle214["PgUnionAllSingle[214∈12]"]:::plan + __Item213 --> PgUnionAllSingle214 + Access215{{"Access[215∈12]
ᐸ214.1ᐳ"}}:::plan + PgUnionAllSingle214 --> Access215 + PgSelect218[["PgSelect[218∈13]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan + Access217{{"Access[217∈13]
ᐸ216.0ᐳ"}}:::plan + Object12 & Access217 --> PgSelect218 + PgSelect231[["PgSelect[231∈13]
ᐸthird_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan + Access230{{"Access[230∈13]
ᐸ229.0ᐳ"}}:::plan + Object12 & Access230 --> PgSelect231 + JSONParse216[["JSONParse[216∈13]
ᐸ215ᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan + Access215 --> JSONParse216 + JSONParse216 --> Access217 + First222{{"First[222∈13]"}}:::plan + PgSelectRows223[["PgSelectRows[223∈13]"]]:::plan + PgSelectRows223 --> First222 + PgSelect218 --> PgSelectRows223 + PgSelectSingle224{{"PgSelectSingle[224∈13]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + First222 --> PgSelectSingle224 + PgClassExpression225{{"PgClassExpression[225∈13]
ᐸ__first_pa...team_name”ᐳ"}}:::plan + PgSelectSingle224 --> PgClassExpression225 + PgClassExpression226{{"PgClassExpression[226∈13]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle224 --> PgClassExpression226 + PgClassExpression227{{"PgClassExpression[227∈13]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgSelectSingle224 --> PgClassExpression227 + PgClassExpression228{{"PgClassExpression[228∈13]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle224 --> PgClassExpression228 + JSONParse229[["JSONParse[229∈13]
ᐸ215ᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan + Access215 --> JSONParse229 + JSONParse229 --> Access230 + First233{{"First[233∈13]"}}:::plan + PgSelectRows234[["PgSelectRows[234∈13]"]]:::plan + PgSelectRows234 --> First233 + PgSelect231 --> PgSelectRows234 + PgSelectSingle235{{"PgSelectSingle[235∈13]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + First233 --> PgSelectSingle235 + PgClassExpression236{{"PgClassExpression[236∈13]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression236 + PgClassExpression237{{"PgClassExpression[237∈13]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression237 + PgClassExpression238{{"PgClassExpression[238∈13]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression238 + PgClassExpression239{{"PgClassExpression[239∈13]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression239 + PgCursor254{{"PgCursor[254∈14]
ᐳGcpApplication"}}:::plan + PgUnionAllSingle252["PgUnionAllSingle[252∈14]"]:::plan + Access253{{"Access[253∈14]
ᐸ249.cursorDetailsᐳ"}}:::plan + PgUnionAllSingle252 & Access253 --> PgCursor254 + __Item251[/"__Item[251∈14]
ᐸ286ᐳ"\]:::itemplan + Access286 ==> __Item251 + __Item251 --> PgUnionAllSingle252 + PgUnionAll249 --> Access253 + Access255{{"Access[255∈14]
ᐸ252.1ᐳ"}}:::plan + PgUnionAllSingle252 --> Access255 + PgSelect258[["PgSelect[258∈15]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan + Access257{{"Access[257∈15]
ᐸ256.0ᐳ"}}:::plan + Object12 & Access257 --> PgSelect258 + PgSelect270[["PgSelect[270∈15]
ᐸthird_party_vulnerabilitiesᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan + Access269{{"Access[269∈15]
ᐸ268.0ᐳ"}}:::plan + Object12 & Access269 --> PgSelect270 + JSONParse256[["JSONParse[256∈15]
ᐸ255ᐳ
ᐳGcpApplicationᐳFirstPartyVulnerability"]]:::plan + Access255 --> JSONParse256 + JSONParse256 --> Access257 + First262{{"First[262∈15]"}}:::plan + PgSelectRows263[["PgSelectRows[263∈15]"]]:::plan + PgSelectRows263 --> First262 + PgSelect258 --> PgSelectRows263 + PgSelectSingle264{{"PgSelectSingle[264∈15]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + First262 --> PgSelectSingle264 + PgClassExpression265{{"PgClassExpression[265∈15]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgSelectSingle264 --> PgClassExpression265 + PgClassExpression266{{"PgClassExpression[266∈15]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle264 --> PgClassExpression266 + PgClassExpression267{{"PgClassExpression[267∈15]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle264 --> PgClassExpression267 + JSONParse268[["JSONParse[268∈15]
ᐸ255ᐳ
ᐳGcpApplicationᐳThirdPartyVulnerability"]]:::plan + Access255 --> JSONParse268 + JSONParse268 --> Access269 + First272{{"First[272∈15]"}}:::plan + PgSelectRows273[["PgSelectRows[273∈15]"]]:::plan + PgSelectRows273 --> First272 + PgSelect270 --> PgSelectRows273 + PgSelectSingle274{{"PgSelectSingle[274∈15]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + First272 --> PgSelectSingle274 + PgClassExpression275{{"PgClassExpression[275∈15]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgSelectSingle274 --> PgClassExpression275 + PgClassExpression276{{"PgClassExpression[276∈15]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle274 --> PgClassExpression276 + PgClassExpression277{{"PgClassExpression[277∈15]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle274 --> PgClassExpression277 %% define steps subgraph "Buckets for queries/polymorphic/person-app-vulns" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 10, 11, 289, 12, 13, 25
2: PgSelect[15], Lambda[26]
3: PgSelectRows[16]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14,Connection25,Constant284 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 284, 25

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[15]
2: PgSelectRows[16]"):::bucket + class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,PgSelect15,PgSelectRows16,Connection25,Lambda26,Constant289 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 26, 25, 7

ROOT __Item{1}ᐸ16ᐳ[17]
1:
ᐳ: 18, 19, 20
2: 27, 32, 57
ᐳ: 278, 279, 288, 28
3: PgUnionAllSingle[30]
ᐳ: PgClassExpression[31]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect15,PgSelectRows16 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 13, 25

ROOT __Item{2}ᐸ16ᐳ[17]"):::bucket + class Bucket1,__Item17,PgSelectSingle18,PgClassExpression19,PgClassExpression20,PgUnionAll27,First28,PgUnionAllSingle30,PgClassExpression31,PgUnionAll32,PgUnionAll57,Access278,Access279,Access288 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 32, 12

ROOT __Item{2}ᐸ279ᐳ[34]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item17,PgSelectSingle18 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 18, 13, 25

ROOT PgSelectSingle{2}ᐸpeopleᐳ[18]
1:
ᐳ: 19, 20
2: 26, 31, 56
ᐳ: 273, 274, 283, 27
3: PgUnionAllSingle[29]
ᐳ: PgClassExpression[30]"):::bucket + class Bucket2,__Item34,PgUnionAllSingle35,Access36,PgCursor37,Access38 bucket2 + Bucket3("Bucket 3 (polymorphic)
AwsApplication,GcpApplication
Deps: 38, 12, 35
ᐳAwsApplication
ᐳGcpApplication

1: JSONParse[39], JSONParse[49]
ᐳ: Access[40], Access[50]
2: PgSelect[41], PgSelect[51]
3: PgSelectRows[46], PgSelectRows[54]
ᐳ: 45, 47, 48, 53, 55, 56"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgClassExpression20,PgUnionAll26,First27,PgUnionAllSingle29,PgClassExpression30,PgUnionAll31,PgUnionAll56,Access273,Access274,Access283 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 31, 13

ROOT __Item{4}ᐸ274ᐳ[33]"):::bucket + class Bucket3,JSONParse39,Access40,PgSelect41,First45,PgSelectRows46,PgSelectSingle47,PgClassExpression48,JSONParse49,Access50,PgSelect51,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression56 bucket3 + Bucket4("Bucket 4 (listItem)
Deps: 12, 7, 26

ROOT __Item{4}ᐸ288ᐳ[59]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item33,PgUnionAllSingle34,Access35 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 34, 35, 13

ROOT PgUnionAllSingle{4}[34]"):::bucket + class Bucket4,__Item59,PgUnionAllSingle60,Access61 bucket4 + Bucket5("Bucket 5 (polymorphic)
AwsApplication,GcpApplication
Deps: 61, 12, 7, 26, 60
ᐳAwsApplication
ᐳGcpApplication

1: JSONParse[62], JSONParse[171]
ᐳ: 135, 242, 63, 172
2: PgSelect[64], PgSelect[173]
3: PgSelectRows[69], PgSelectRows[176]
ᐳ: 68, 70, 71, 72, 73, 74, 75, 175, 177, 178, 179, 180, 181, 182
4: 76, 102, 137, 142, 183, 209, 244, 249
ᐳ: 280, 281, 282, 283, 284, 285, 286, 287, 78, 138, 185, 245
5: 80, 140, 187, 247
ᐳ: 81, 141, 188, 248"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgCursor36,Access37 bucket5 - Bucket6("Bucket 6 (polymorphic)
AwsApplication,GcpApplication
Deps: 37, 13, 34
ᐳAwsApplication
ᐳGcpApplication

1: JSONParse[38], JSONParse[48]
ᐳ: Access[39], Access[49]
2: PgSelect[40], PgSelect[50]
3: PgSelectRows[45], PgSelectRows[53]
ᐳ: 44, 46, 47, 52, 54, 55"):::bucket + class Bucket5,JSONParse62,Access63,PgSelect64,First68,PgSelectRows69,PgSelectSingle70,PgClassExpression71,PgClassExpression72,PgClassExpression73,PgClassExpression74,PgClassExpression75,PgUnionAll76,First78,PgUnionAllSingle80,Access81,PgUnionAll102,Connection135,PgUnionAll137,First138,PgUnionAllSingle140,PgClassExpression141,PgUnionAll142,JSONParse171,Access172,PgSelect173,First175,PgSelectRows176,PgSelectSingle177,PgClassExpression178,PgClassExpression179,PgClassExpression180,PgClassExpression181,PgClassExpression182,PgUnionAll183,First185,PgUnionAllSingle187,Access188,PgUnionAll209,Connection242,PgUnionAll244,First245,PgUnionAllSingle247,PgClassExpression248,PgUnionAll249,Access280,Access281,Access282,Access283,Access284,Access285,Access286,Access287 bucket5 + Bucket6("Bucket 6 (polymorphic)
Organization,Person
Deps: 81, 12, 80
ᐳAwsApplicationᐳOrganization
ᐳAwsApplicationᐳPerson

1: JSONParse[82], JSONParse[93]
ᐳ: Access[83], Access[94]
2: PgSelect[84], PgSelect[95]
3: PgSelectRows[89], PgSelectRows[98]
ᐳ: 88, 90, 91, 92, 97, 99, 100, 101"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,JSONParse38,Access39,PgSelect40,First44,PgSelectRows45,PgSelectSingle46,PgClassExpression47,JSONParse48,Access49,PgSelect50,First52,PgSelectRows53,PgSelectSingle54,PgClassExpression55 bucket6 - Bucket7("Bucket 7 (listItem)
Deps: 13

ROOT __Item{7}ᐸ283ᐳ[58]"):::bucket + class Bucket6,JSONParse82,Access83,PgSelect84,First88,PgSelectRows89,PgSelectSingle90,PgClassExpression91,PgClassExpression92,JSONParse93,Access94,PgSelect95,First97,PgSelectRows98,PgSelectSingle99,PgClassExpression100,PgClassExpression101 bucket6 + Bucket7("Bucket 7 (listItem)
Deps: 12

ROOT __Item{7}ᐸ280ᐳ[106]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,__Item58,PgUnionAllSingle59,Access60 bucket7 - Bucket8("Bucket 8 (polymorphic)
AwsApplication,GcpApplication
Deps: 60, 13, 59
ᐳAwsApplication
ᐳGcpApplication

1: JSONParse[61], JSONParse[168]
ᐳ: 133, 238, 62, 169
2: PgSelect[63], PgSelect[170]
3: PgSelectRows[68], PgSelectRows[173]
ᐳ: 67, 69, 70, 71, 72, 73, 74, 172, 174, 175, 176, 177, 178, 179
4: 75, 101, 134, 139, 180, 206, 239, 244
ᐳ: 275, 276, 277, 278, 279, 280, 281, 282, 77, 135, 182, 240
5: 79, 137, 184, 242
ᐳ: 80, 138, 185, 243"):::bucket + class Bucket7,__Item106,PgUnionAllSingle107,Access108 bucket7 + Bucket8("Bucket 8 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 108, 12, 107
ᐳAwsApplicationᐳFirstPartyVulnerability
ᐳAwsApplicationᐳThirdPartyVulnerability

1: JSONParse[109], JSONParse[122]
ᐳ: Access[110], Access[123]
2: PgSelect[111], PgSelect[124]
3: PgSelectRows[116], PgSelectRows[127]
ᐳ: 115, 117, 118, 119, 120, 121, 126, 128, 129, 130, 131, 132"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,JSONParse61,Access62,PgSelect63,First67,PgSelectRows68,PgSelectSingle69,PgClassExpression70,PgClassExpression71,PgClassExpression72,PgClassExpression73,PgClassExpression74,PgUnionAll75,First77,PgUnionAllSingle79,Access80,PgUnionAll101,Connection133,PgUnionAll134,First135,PgUnionAllSingle137,PgClassExpression138,PgUnionAll139,JSONParse168,Access169,PgSelect170,First172,PgSelectRows173,PgSelectSingle174,PgClassExpression175,PgClassExpression176,PgClassExpression177,PgClassExpression178,PgClassExpression179,PgUnionAll180,First182,PgUnionAllSingle184,Access185,PgUnionAll206,Connection238,PgUnionAll239,First240,PgUnionAllSingle242,PgClassExpression243,PgUnionAll244,Access275,Access276,Access277,Access278,Access279,Access280,Access281,Access282 bucket8 - Bucket9("Bucket 9 (polymorphic)
Organization,Person
Deps: 80, 13, 79
ᐳAwsApplicationᐳOrganization
ᐳAwsApplicationᐳPerson

1: JSONParse[81], JSONParse[92]
ᐳ: Access[82], Access[93]
2: PgSelect[83], PgSelect[94]
3: PgSelectRows[88], PgSelectRows[97]
ᐳ: 87, 89, 90, 91, 96, 98, 99, 100"):::bucket + class Bucket8,JSONParse109,Access110,PgSelect111,First115,PgSelectRows116,PgSelectSingle117,PgClassExpression118,PgClassExpression119,PgClassExpression120,PgClassExpression121,JSONParse122,Access123,PgSelect124,First126,PgSelectRows127,PgSelectSingle128,PgClassExpression129,PgClassExpression130,PgClassExpression131,PgClassExpression132 bucket8 + Bucket9("Bucket 9 (listItem)
Deps: 142, 12

ROOT __Item{9}ᐸ282ᐳ[144]"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,JSONParse81,Access82,PgSelect83,First87,PgSelectRows88,PgSelectSingle89,PgClassExpression90,PgClassExpression91,JSONParse92,Access93,PgSelect94,First96,PgSelectRows97,PgSelectSingle98,PgClassExpression99,PgClassExpression100 bucket9 - Bucket10("Bucket 10 (listItem)
Deps: 13

ROOT __Item{10}ᐸ275ᐳ[104]"):::bucket + class Bucket9,__Item144,PgUnionAllSingle145,Access146,PgCursor147,Access148 bucket9 + Bucket10("Bucket 10 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 148, 12, 145
ᐳAwsApplicationᐳFirstPartyVulnerability
ᐳAwsApplicationᐳThirdPartyVulnerability

1: JSONParse[149], JSONParse[161]
ᐳ: Access[150], Access[162]
2: PgSelect[151], PgSelect[163]
3: PgSelectRows[156], PgSelectRows[166]
ᐳ: 155, 157, 158, 159, 160, 165, 167, 168, 169, 170"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,__Item104,PgUnionAllSingle105,Access106 bucket10 - Bucket11("Bucket 11 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 106, 13, 105
ᐳAwsApplicationᐳFirstPartyVulnerability
ᐳAwsApplicationᐳThirdPartyVulnerability

1: JSONParse[107], JSONParse[120]
ᐳ: Access[108], Access[121]
2: PgSelect[109], PgSelect[122]
3: PgSelectRows[114], PgSelectRows[125]
ᐳ: 113, 115, 116, 117, 118, 119, 124, 126, 127, 128, 129, 130"):::bucket + class Bucket10,JSONParse149,Access150,PgSelect151,First155,PgSelectRows156,PgSelectSingle157,PgClassExpression158,PgClassExpression159,PgClassExpression160,JSONParse161,Access162,PgSelect163,First165,PgSelectRows166,PgSelectSingle167,PgClassExpression168,PgClassExpression169,PgClassExpression170 bucket10 + Bucket11("Bucket 11 (polymorphic)
Organization,Person
Deps: 188, 12, 187
ᐳGcpApplicationᐳOrganization
ᐳGcpApplicationᐳPerson

1: JSONParse[189], JSONParse[200]
ᐳ: Access[190], Access[201]
2: PgSelect[191], PgSelect[202]
3: PgSelectRows[196], PgSelectRows[205]
ᐳ: 195, 197, 198, 199, 204, 206, 207, 208"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11,JSONParse107,Access108,PgSelect109,First113,PgSelectRows114,PgSelectSingle115,PgClassExpression116,PgClassExpression117,PgClassExpression118,PgClassExpression119,JSONParse120,Access121,PgSelect122,First124,PgSelectRows125,PgSelectSingle126,PgClassExpression127,PgClassExpression128,PgClassExpression129,PgClassExpression130 bucket11 - Bucket12("Bucket 12 (listItem)
Deps: 139, 13

ROOT __Item{12}ᐸ277ᐳ[141]"):::bucket + class Bucket11,JSONParse189,Access190,PgSelect191,First195,PgSelectRows196,PgSelectSingle197,PgClassExpression198,PgClassExpression199,JSONParse200,Access201,PgSelect202,First204,PgSelectRows205,PgSelectSingle206,PgClassExpression207,PgClassExpression208 bucket11 + Bucket12("Bucket 12 (listItem)
Deps: 12

ROOT __Item{12}ᐸ284ᐳ[213]"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12,__Item141,PgUnionAllSingle142,Access143 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 142, 143, 13

ROOT PgUnionAllSingle{12}[142]"):::bucket + class Bucket12,__Item213,PgUnionAllSingle214,Access215 bucket12 + Bucket13("Bucket 13 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 215, 12, 214
ᐳGcpApplicationᐳFirstPartyVulnerability
ᐳGcpApplicationᐳThirdPartyVulnerability

1: JSONParse[216], JSONParse[229]
ᐳ: Access[217], Access[230]
2: PgSelect[218], PgSelect[231]
3: PgSelectRows[223], PgSelectRows[234]
ᐳ: 222, 224, 225, 226, 227, 228, 233, 235, 236, 237, 238, 239"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13,PgCursor144,Access145 bucket13 - Bucket14("Bucket 14 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 145, 13, 142
ᐳAwsApplicationᐳFirstPartyVulnerability
ᐳAwsApplicationᐳThirdPartyVulnerability

1: JSONParse[146], JSONParse[158]
ᐳ: Access[147], Access[159]
2: PgSelect[148], PgSelect[160]
3: PgSelectRows[153], PgSelectRows[163]
ᐳ: 152, 154, 155, 156, 157, 162, 164, 165, 166, 167"):::bucket + class Bucket13,JSONParse216,Access217,PgSelect218,First222,PgSelectRows223,PgSelectSingle224,PgClassExpression225,PgClassExpression226,PgClassExpression227,PgClassExpression228,JSONParse229,Access230,PgSelect231,First233,PgSelectRows234,PgSelectSingle235,PgClassExpression236,PgClassExpression237,PgClassExpression238,PgClassExpression239 bucket13 + Bucket14("Bucket 14 (listItem)
Deps: 249, 12

ROOT __Item{14}ᐸ286ᐳ[251]"):::bucket classDef bucket14 stroke:#a52a2a - class Bucket14,JSONParse146,Access147,PgSelect148,First152,PgSelectRows153,PgSelectSingle154,PgClassExpression155,PgClassExpression156,PgClassExpression157,JSONParse158,Access159,PgSelect160,First162,PgSelectRows163,PgSelectSingle164,PgClassExpression165,PgClassExpression166,PgClassExpression167 bucket14 - Bucket15("Bucket 15 (polymorphic)
Organization,Person
Deps: 185, 13, 184
ᐳGcpApplicationᐳOrganization
ᐳGcpApplicationᐳPerson

1: JSONParse[186], JSONParse[197]
ᐳ: Access[187], Access[198]
2: PgSelect[188], PgSelect[199]
3: PgSelectRows[193], PgSelectRows[202]
ᐳ: 192, 194, 195, 196, 201, 203, 204, 205"):::bucket + class Bucket14,__Item251,PgUnionAllSingle252,Access253,PgCursor254,Access255 bucket14 + Bucket15("Bucket 15 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 255, 12, 252
ᐳGcpApplicationᐳFirstPartyVulnerability
ᐳGcpApplicationᐳThirdPartyVulnerability

1: JSONParse[256], JSONParse[268]
ᐳ: Access[257], Access[269]
2: PgSelect[258], PgSelect[270]
3: PgSelectRows[263], PgSelectRows[273]
ᐳ: 262, 264, 265, 266, 267, 272, 274, 275, 276, 277"):::bucket classDef bucket15 stroke:#ff00ff - class Bucket15,JSONParse186,Access187,PgSelect188,First192,PgSelectRows193,PgSelectSingle194,PgClassExpression195,PgClassExpression196,JSONParse197,Access198,PgSelect199,First201,PgSelectRows202,PgSelectSingle203,PgClassExpression204,PgClassExpression205 bucket15 - Bucket16("Bucket 16 (listItem)
Deps: 13

ROOT __Item{16}ᐸ279ᐳ[209]"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16,__Item209,PgUnionAllSingle210,Access211 bucket16 - Bucket17("Bucket 17 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 211, 13, 210
ᐳGcpApplicationᐳFirstPartyVulnerability
ᐳGcpApplicationᐳThirdPartyVulnerability

1: JSONParse[212], JSONParse[225]
ᐳ: Access[213], Access[226]
2: PgSelect[214], PgSelect[227]
3: PgSelectRows[219], PgSelectRows[230]
ᐳ: 218, 220, 221, 222, 223, 224, 229, 231, 232, 233, 234, 235"):::bucket - classDef bucket17 stroke:#696969 - class Bucket17,JSONParse212,Access213,PgSelect214,First218,PgSelectRows219,PgSelectSingle220,PgClassExpression221,PgClassExpression222,PgClassExpression223,PgClassExpression224,JSONParse225,Access226,PgSelect227,First229,PgSelectRows230,PgSelectSingle231,PgClassExpression232,PgClassExpression233,PgClassExpression234,PgClassExpression235 bucket17 - Bucket18("Bucket 18 (listItem)
Deps: 244, 13

ROOT __Item{18}ᐸ281ᐳ[246]"):::bucket - classDef bucket18 stroke:#00bfff - class Bucket18,__Item246,PgUnionAllSingle247,Access248 bucket18 - Bucket19("Bucket 19 (nullableBoundary)
Deps: 247, 248, 13

ROOT PgUnionAllSingle{18}[247]"):::bucket - classDef bucket19 stroke:#7f007f - class Bucket19,PgCursor249,Access250 bucket19 - Bucket20("Bucket 20 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 250, 13, 247
ᐳGcpApplicationᐳFirstPartyVulnerability
ᐳGcpApplicationᐳThirdPartyVulnerability

1: JSONParse[251], JSONParse[263]
ᐳ: Access[252], Access[264]
2: PgSelect[253], PgSelect[265]
3: PgSelectRows[258], PgSelectRows[268]
ᐳ: 257, 259, 260, 261, 262, 267, 269, 270, 271, 272"):::bucket - classDef bucket20 stroke:#ffa500 - class Bucket20,JSONParse251,Access252,PgSelect253,First257,PgSelectRows258,PgSelectSingle259,PgClassExpression260,PgClassExpression261,PgClassExpression262,JSONParse263,Access264,PgSelect265,First267,PgSelectRows268,PgSelectSingle269,PgClassExpression270,PgClassExpression271,PgClassExpression272 bucket20 + class Bucket15,JSONParse256,Access257,PgSelect258,First262,PgSelectRows263,PgSelectSingle264,PgClassExpression265,PgClassExpression266,PgClassExpression267,JSONParse268,Access269,PgSelect270,First272,PgSelectRows273,PgSelectSingle274,PgClassExpression275,PgClassExpression276,PgClassExpression277 bucket15 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 + Bucket1 --> Bucket2 & Bucket4 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket7 Bucket4 --> Bucket5 - Bucket5 --> Bucket6 + Bucket5 --> Bucket6 & Bucket7 & Bucket9 & Bucket11 & Bucket12 & Bucket14 Bucket7 --> Bucket8 - Bucket8 --> Bucket9 & Bucket10 & Bucket12 & Bucket15 & Bucket16 & Bucket18 - Bucket10 --> Bucket11 + Bucket9 --> Bucket10 Bucket12 --> Bucket13 - Bucket13 --> Bucket14 - Bucket16 --> Bucket17 - Bucket18 --> Bucket19 - Bucket19 --> Bucket20 + Bucket14 --> Bucket15 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.after-caroline.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.after-caroline.mermaid index 303fd42943..08ce30a931 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.after-caroline.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.after-caroline.mermaid @@ -9,70 +9,63 @@ graph TD %% plan dependencies - Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan + PgSelect17[["PgSelect[17∈0] ➊
ᐸpeopleᐳ"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan Constant35{{"Constant[35∈0] ➊
ᐸ2ᐳ"}}:::plan - Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant35 & Lambda16 --> Connection15 + Object13 -->|rejectNull| PgSelect17 + Connection14 & Lambda15 & Constant35 --> PgSelect17 + Constant35 & Lambda15 --> Connection14 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access11 __Value2 --> Access12 - __Value2 --> Access13 Constant36{{"Constant[36∈0] ➊
ᐸ'WyI5NjdkZTdmYTdlIiwzXQ=='ᐳ"}}:::plan - Constant36 --> Lambda16 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant37{{"Constant[37∈0] ➊
ᐸ1ᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸpeopleᐳ"]]:::plan - Object14 & Connection15 & Lambda16 & Constant35 --> PgSelect17 - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan + Constant36 --> Lambda15 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan PgSelect17 --> PgSelectRows18 - Access33{{"Access[33∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + Access33{{"Access[33∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan PgSelect17 --> Access33 - __Item19[/"__Item[19∈2]
ᐸ18ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + Constant37{{"Constant[37∈0] ➊
ᐸ1ᐳ"}}:::plan + PgSelect23[["PgSelect[23∈1]
ᐸlog_entriesᐳ"]]:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object13 & PgClassExpression22 & Constant37 --> PgSelect23 + PgCursor34{{"PgCursor[34∈1]"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle20 & Access33 --> PgCursor34 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan PgSelectRows18 ==> __Item19 - PgSelectSingle20{{"PgSelectSingle[20∈2]
ᐸpeopleᐳ"}}:::plan __Item19 --> PgSelectSingle20 - PgSelect23[["PgSelect[23∈3]
ᐸlog_entriesᐳ"]]:::plan - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object14 & PgClassExpression22 & Constant37 --> PgSelect23 - PgCursor34{{"PgCursor[34∈3]"}}:::plan - PgSelectSingle20 & Access33 --> PgCursor34 PgSelectSingle20 --> PgClassExpression22 - PgSelectRows27[["PgSelectRows[27∈3]"]]:::plan + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan PgSelect23 --> PgSelectRows27 - PgClassExpression32{{"PgClassExpression[32∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle20 --> PgClassExpression32 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸlog_entriesᐳ"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸlog_entriesᐳ"}}:::plan __Item28 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__log_entries__.”text”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__log_entries__.”text”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__log_entries__.”id”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__log_entries__.”id”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression31 %% define steps subgraph "Buckets for queries/polymorphic/person-log-entries.after-caroline" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 11, 12, 35, 36, 37, 13, 15, 14
2: PgSelect[17]
ᐳ: Access[33]
3: PgSelectRows[18]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Connection15,Lambda16,Constant35,Constant36,Constant37 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 35, 37

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[17]
ᐳ: Access[33]
2: PgSelectRows[18]"):::bucket + class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14,Lambda15,PgSelect17,PgSelectRows18,Access33,Constant35,Constant36,Constant37 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 13, 37, 7, 33

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 32, 34
2: PgSelect[23]
3: PgSelectRows[27]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgSelectRows18,Access33 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 14, 37, 33

ROOT __Item{2}ᐸ18ᐳ[19]"):::bucket + class Bucket1,__Item19,PgSelectSingle20,PgClassExpression22,PgSelect23,PgSelectRows27,PgClassExpression32,PgCursor34 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ27ᐳ[28]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 14, 37, 33

ROOT PgSelectSingle{2}ᐸpeopleᐳ[20]
1:
ᐳ: 22, 32, 34
2: PgSelect[23]
3: PgSelectRows[27]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression22,PgSelect23,PgSelectRows27,PgClassExpression32,PgCursor34 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31 bucket4 + class Bucket2,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.condition.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.condition.mermaid index 1018714521..b078069c3f 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.condition.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.condition.mermaid @@ -9,61 +9,58 @@ graph TD %% plan dependencies - Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access12 & Access13 --> Object14 + PgSelect17[["PgSelect[17∈0] ➊
ᐸpeopleᐳ"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + ApplyInput16{{"ApplyInput[16∈0] ➊"}}:::plan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + ApplyInput16 -->|rejectNull| PgSelect17 + Object13 & Connection14 --> PgSelect17 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant34{{"Constant[34∈0] ➊
ᐸ'Dave'ᐳ"}}:::plan + Constant34 --> __InputObject8 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access11 __Value2 --> Access12 - __Value2 --> Access13 + __InputObject8 --> ApplyInput16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant33{{"Constant[33∈0] ➊
ᐸ'Dave'ᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸpeopleᐳ"]]:::plan - Object14 & Constant33 & Connection15 --> PgSelect16 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸpeopleᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgSelect23[["PgSelect[23∈3]
ᐸlog_entriesᐳ"]]:::plan - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object14 & PgClassExpression22 --> PgSelect23 - PgSelectSingle19 --> PgClassExpression22 - PgSelectRows27[["PgSelectRows[27∈3]"]]:::plan - PgSelect23 --> PgSelectRows27 - PgClassExpression32{{"PgClassExpression[32∈3]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression32 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸlog_entriesᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__log_entries__.”text”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__log_entries__.”id”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression31 + PgSelect23[["PgSelect[23∈1]
ᐸlog_entriesᐳ"]]:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object13 & PgClassExpression22 --> PgSelect23 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸpeopleᐳ"}}:::plan + __Item19 --> PgSelectSingle20 + PgSelectSingle20 --> PgClassExpression22 + PgSelectRows28[["PgSelectRows[28∈1]"]]:::plan + PgSelect23 --> PgSelectRows28 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression33 + __Item29[/"__Item[29∈2]
ᐸ28ᐳ"\]:::itemplan + PgSelectRows28 ==> __Item29 + PgSelectSingle30{{"PgSelectSingle[30∈2]
ᐸlog_entriesᐳ"}}:::plan + __Item29 --> PgSelectSingle30 + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__log_entries__.”text”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__log_entries__.”id”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression32 %% define steps subgraph "Buckets for queries/polymorphic/person-log-entries.condition" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 11, 12, 34, 8, 13, 14, 16
2: PgSelect[17]
3: PgSelectRows[18]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Connection15,Constant33 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 33, 15

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[16]
2: PgSelectRows[17]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject8,Access11,Access12,Object13,Connection14,ApplyInput16,PgSelect17,PgSelectRows18,Constant34 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 13, 6

ROOT __Item{1}ᐸ18ᐳ[19]
1:
ᐳ: 20, 22, 33
2: PgSelect[23]
3: PgSelectRows[28]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 14

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket + class Bucket1,__Item19,PgSelectSingle20,PgClassExpression22,PgSelect23,PgSelectRows28,PgClassExpression33 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ28ᐳ[29]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19, 14

ROOT PgSelectSingle{2}ᐸpeopleᐳ[19]
1:
ᐳ: 22, 32
2: PgSelect[23]
3: PgSelectRows[27]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression22,PgSelect23,PgSelectRows27,PgClassExpression32 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31 bucket4 + class Bucket2,__Item29,PgSelectSingle30,PgClassExpression31,PgClassExpression32 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.last-ordered.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.last-ordered.mermaid index 7c6eee6f2a..c10d59050f 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.last-ordered.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.last-ordered.mermaid @@ -9,63 +9,56 @@ graph TD %% plan dependencies - Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access11 & Access12 --> Object13 + PgSelect15[["PgSelect[15∈0] ➊
ᐸpeopleᐳ"]]:::plan + Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant33{{"Constant[33∈0] ➊
ᐸ5ᐳ"}}:::plan + Object12 -->|rejectNull| PgSelect15 + Connection13 & Constant33 --> PgSelect15 + Constant33 --> Connection13 + Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access10 & Access11 --> Object12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access10 __Value2 --> Access11 - __Value2 --> Access12 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant33{{"Constant[33∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant33 --> Connection14 + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan + PgSelect15 --> PgSelectRows16 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan Constant34{{"Constant[34∈0] ➊
ᐸ1ᐳ"}}:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸpeopleᐳ"]]:::plan - Object13 & Connection14 & Constant33 --> PgSelect15 - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan - PgSelect15 --> PgSelectRows16 - __Item17[/"__Item[17∈2]
ᐸ16ᐳ"\]:::itemplan + PgSelect22[["PgSelect[22∈1]
ᐸlog_entriesᐳ"]]:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object12 & PgClassExpression21 & Constant34 --> PgSelect22 + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan PgSelectRows16 ==> __Item17 - PgSelectSingle18{{"PgSelectSingle[18∈2]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸpeopleᐳ"}}:::plan __Item17 --> PgSelectSingle18 - PgSelect23[["PgSelect[23∈3]
ᐸlog_entriesᐳ"]]:::plan - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object13 & PgClassExpression22 & Constant34 --> PgSelect23 - PgSelectSingle18 --> PgClassExpression22 - PgSelectRows27[["PgSelectRows[27∈3]"]]:::plan - PgSelect23 --> PgSelectRows27 - PgClassExpression32{{"PgClassExpression[32∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression21 + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelect22 --> PgSelectRows27 + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression32 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸlog_entriesᐳ"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸlog_entriesᐳ"}}:::plan __Item28 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__log_entries__.”text”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__log_entries__.”text”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__log_entries__.”id”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__log_entries__.”id”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression31 %% define steps subgraph "Buckets for queries/polymorphic/person-log-entries.last-ordered" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 10, 11, 33, 34, 12, 13
2: PgSelect[15]
3: PgSelectRows[16]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14,Constant33,Constant34 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 33, 34

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[15]
2: PgSelectRows[16]"):::bucket + class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,PgSelect15,PgSelectRows16,Constant33,Constant34 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 34, 6

ROOT __Item{1}ᐸ16ᐳ[17]
1:
ᐳ: 18, 21, 32
2: PgSelect[22]
3: PgSelectRows[27]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect15,PgSelectRows16 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 13, 34

ROOT __Item{2}ᐸ16ᐳ[17]"):::bucket + class Bucket1,__Item17,PgSelectSingle18,PgClassExpression21,PgSelect22,PgSelectRows27,PgClassExpression32 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ27ᐳ[28]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item17,PgSelectSingle18 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 18, 13, 34

ROOT PgSelectSingle{2}ᐸpeopleᐳ[18]
1:
ᐳ: 22, 32
2: PgSelect[23]
3: PgSelectRows[27]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression22,PgSelect23,PgSelectRows27,PgClassExpression32 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31 bucket4 + class Bucket2,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.mermaid index 8777ff2924..146e2c2b14 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/person-log-entries.mermaid @@ -9,64 +9,57 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸpeopleᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸpeopleᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - Access29{{"Access[29∈1] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan + Access29{{"Access[29∈0] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan PgSelect14 --> Access29 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect19[["PgSelect[19∈1]
ᐸlog_entriesᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Object11 & PgClassExpression18 --> PgSelect19 + PgCursor30{{"PgCursor[30∈1]"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle17 & Access29 --> PgCursor30 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸpeopleᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgSelect19[["PgSelect[19∈3]
ᐸlog_entriesᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Object12 & PgClassExpression18 --> PgSelect19 - PgCursor30{{"PgCursor[30∈3]"}}:::plan - PgSelectSingle17 & Access29 --> PgCursor30 PgSelectSingle17 --> PgClassExpression18 - PgSelectRows23[["PgSelectRows[23∈3]"]]:::plan + PgSelectRows23[["PgSelectRows[23∈1]"]]:::plan PgSelect19 --> PgSelectRows23 - PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression28{{"PgClassExpression[28∈1]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression28 - __Item24[/"__Item[24∈4]
ᐸ23ᐳ"\]:::itemplan + __Item24[/"__Item[24∈2]
ᐸ23ᐳ"\]:::itemplan PgSelectRows23 ==> __Item24 - PgSelectSingle25{{"PgSelectSingle[25∈4]
ᐸlog_entriesᐳ"}}:::plan + PgSelectSingle25{{"PgSelectSingle[25∈2]
ᐸlog_entriesᐳ"}}:::plan __Item24 --> PgSelectSingle25 - PgClassExpression26{{"PgClassExpression[26∈4]
ᐸ__log_entries__.”text”ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈2]
ᐸ__log_entries__.”text”ᐳ"}}:::plan PgSelectSingle25 --> PgClassExpression26 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__log_entries__.”id”ᐳ"}}:::plan + PgClassExpression27{{"PgClassExpression[27∈2]
ᐸ__log_entries__.”id”ᐳ"}}:::plan PgSelectSingle25 --> PgClassExpression27 %% define steps subgraph "Buckets for queries/polymorphic/person-log-entries" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 11, 12
2: PgSelect[14]
ᐳ: Access[29]
3: PgSelectRows[15]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
ᐳ: Access[29]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Access29 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 6, 29

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 18, 28, 30
2: PgSelect[19]
3: PgSelectRows[23]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15,Access29 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 12, 29

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgSelect19,PgSelectRows23,PgClassExpression28,PgCursor30 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ23ᐳ[24]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 12, 29

ROOT PgSelectSingle{2}ᐸpeopleᐳ[17]
1:
ᐳ: 18, 28, 30
2: PgSelect[19]
3: PgSelectRows[23]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgSelect19,PgSelectRows23,PgClassExpression28,PgCursor30 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ23ᐳ[24]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item24,PgSelectSingle25,PgClassExpression26,PgClassExpression27 bucket4 + class Bucket2,__Item24,PgSelectSingle25,PgClassExpression26,PgClassExpression27 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/relay.polyroot_with_related_poly.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/relay.polyroot_with_related_poly.mermaid index d339dfe4ff..e84d31bfe4 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/relay.polyroot_with_related_poly.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/relay.polyroot_with_related_poly.mermaid @@ -9,1014 +9,926 @@ graph TD %% plan dependencies - List479{{"List[479∈0] ➊
ᐸ462,466,470,474,478ᐳ"}}:::plan - Object462{{"Object[462∈0] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object466{{"Object[466∈0] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object470{{"Object[470∈0] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object474{{"Object[474∈0] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object478{{"Object[478∈0] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object462 & Object466 & Object470 & Object474 & Object478 --> List479 - List571{{"List[571∈0] ➊
ᐸ554,558,562,566,570ᐳ"}}:::plan - Object554{{"Object[554∈0] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object558{{"Object[558∈0] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object562{{"Object[562∈0] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object566{{"Object[566∈0] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object570{{"Object[570∈0] ➊
ᐸ{match,pks}ᐳ"}}:::plan - Object554 & Object558 & Object562 & Object566 & Object570 --> List571 - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 - Lambda460[["Lambda[460∈0] ➊"]]:::unbatchedplan - List461{{"List[461∈0] ➊
ᐸ696ᐳ"}}:::plan - Lambda460 & List461 --> Object462 - Lambda464[["Lambda[464∈0] ➊"]]:::unbatchedplan - Lambda464 & List461 --> Object466 - Lambda468[["Lambda[468∈0] ➊"]]:::unbatchedplan - Lambda468 & List461 --> Object470 - Lambda472[["Lambda[472∈0] ➊"]]:::unbatchedplan - Lambda472 & List461 --> Object474 - Lambda476[["Lambda[476∈0] ➊"]]:::unbatchedplan - Lambda476 & List461 --> Object478 - __Flag483[["__Flag[483∈0] ➊
ᐸ482, if(455), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - __Flag482[["__Flag[482∈0] ➊
ᐸ481, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition455{{"Condition[455∈0] ➊
ᐸexistsᐳ"}}:::plan - __Flag482 & Condition455 --> __Flag483 - Lambda552[["Lambda[552∈0] ➊"]]:::unbatchedplan - List553{{"List[553∈0] ➊
ᐸ698ᐳ"}}:::plan - Lambda552 & List553 --> Object554 - Lambda556[["Lambda[556∈0] ➊"]]:::unbatchedplan - Lambda556 & List553 --> Object558 - Lambda560[["Lambda[560∈0] ➊"]]:::unbatchedplan - Lambda560 & List553 --> Object562 - Lambda564[["Lambda[564∈0] ➊"]]:::unbatchedplan - Lambda564 & List553 --> Object566 - Lambda568[["Lambda[568∈0] ➊"]]:::unbatchedplan - Lambda568 & List553 --> Object570 - __Flag575[["__Flag[575∈0] ➊
ᐸ574, if(547), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - __Flag574[["__Flag[574∈0] ➊
ᐸ573, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition547{{"Condition[547∈0] ➊
ᐸexistsᐳ"}}:::plan - __Flag574 & Condition547 --> __Flag575 + PgSelect456[["PgSelect[456∈0] ➊
ᐸsingle_table_item_relationsᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + ApplyInput455{{"ApplyInput[455∈0] ➊"}}:::plan + Connection453{{"Connection[453∈0] ➊
ᐸ451ᐳ"}}:::plan + ApplyInput455 -->|rejectNull| PgSelect456 + Object11 & Connection453 --> PgSelect456 + PgSelect520[["PgSelect[520∈0] ➊
ᐸrelational_item_relationsᐳ"]]:::plan + ApplyInput519{{"ApplyInput[519∈0] ➊"}}:::plan + Connection517{{"Connection[517∈0] ➊
ᐸ515ᐳ"}}:::plan + ApplyInput519 -->|rejectNull| PgSelect520 + Object11 & Connection517 --> PgSelect520 + PgSelect14[["PgSelect[14∈0] ➊
ᐸsingle_table_itemsᐳ"]]:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect125[["PgSelect[125∈0] ➊
ᐸrelational_itemsᐳ"]]:::plan + Connection123{{"Connection[123∈0] ➊
ᐸ121ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect125 + Connection123 --> PgSelect125 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 + __InputObject449{{"__InputObject[449∈0] ➊"}}:::plan + Constant640{{"Constant[640∈0] ➊
ᐸ'WyJTaW5nbGVUYWJsZURpdmlkZXIiLDNd'ᐳ"}}:::plan + Constant640 --> __InputObject449 + __InputObject513{{"__InputObject[513∈0] ➊"}}:::plan + Constant641{{"Constant[641∈0] ➊
ᐸ'WyJyZWxhdGlvbmFsX2NoZWNrbGlzdF9pdGVtcyIsMjFd'ᐳ"}}:::plan + Constant641 --> __InputObject513 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - Constant697{{"Constant[697∈0] ➊
ᐸ'WyJTaW5nbGVUYWJsZURpdmlkZXIiLDNd'ᐳ"}}:::plan - Constant697 --> Condition455 - Lambda456{{"Lambda[456∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Constant697 --> Lambda456 - Lambda456 --> Lambda460 - Access696{{"Access[696∈0] ➊
ᐸ456.base64JSON.1ᐳ"}}:::plan - Access696 --> List461 - Lambda456 --> Lambda464 - Lambda456 --> Lambda468 - Lambda456 --> Lambda472 - Lambda456 --> Lambda476 - Lambda480{{"Lambda[480∈0] ➊"}}:::plan - List479 --> Lambda480 - Access481{{"Access[481∈0] ➊
ᐸ480.0ᐳ"}}:::plan - Lambda480 --> Access481 - Access481 --> __Flag482 - Constant699{{"Constant[699∈0] ➊
ᐸ'WyJyZWxhdGlvbmFsX2NoZWNrbGlzdF9pdGVtcyIsMjFd'ᐳ"}}:::plan - Constant699 --> Condition547 - Lambda548{{"Lambda[548∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Constant699 --> Lambda548 - Lambda548 --> Lambda552 - Access698{{"Access[698∈0] ➊
ᐸ548.base64JSON.1ᐳ"}}:::plan - Access698 --> List553 - Lambda548 --> Lambda556 - Lambda548 --> Lambda560 - Lambda548 --> Lambda564 - Lambda548 --> Lambda568 - Lambda572{{"Lambda[572∈0] ➊"}}:::plan - List571 --> Lambda572 - Access573{{"Access[573∈0] ➊
ᐸ572.0ᐳ"}}:::plan - Lambda572 --> Access573 - Access573 --> __Flag574 - Lambda456 --> Access696 - Lambda548 --> Access698 + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan + PgSelect14 --> PgSelectRows15 + PgSelectRows126[["PgSelectRows[126∈0] ➊"]]:::plan + PgSelect125 --> PgSelectRows126 + __InputObject449 --> ApplyInput455 + PgSelectRows457[["PgSelectRows[457∈0] ➊"]]:::plan + PgSelect456 --> PgSelectRows457 + __InputObject513 --> ApplyInput519 + PgSelectRows521[["PgSelectRows[521∈0] ➊"]]:::plan + PgSelect520 --> PgSelectRows521 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan Constant18{{"Constant[18∈0] ➊
ᐸ'SingleTableTopic'ᐳ"}}:::plan Constant36{{"Constant[36∈0] ➊
ᐸ'SingleTablePost'ᐳ"}}:::plan Constant39{{"Constant[39∈0] ➊
ᐸ'SingleTableDivider'ᐳ"}}:::plan Constant42{{"Constant[42∈0] ➊
ᐸ'SingleTableChecklist'ᐳ"}}:::plan Constant45{{"Constant[45∈0] ➊
ᐸ'SingleTableChecklistItem'ᐳ"}}:::plan - Connection124{{"Connection[124∈0] ➊
ᐸ122ᐳ"}}:::plan Constant137{{"Constant[137∈0] ➊
ᐸ'relational_topics'ᐳ"}}:::plan Constant165{{"Constant[165∈0] ➊
ᐸ'relational_posts'ᐳ"}}:::plan Constant174{{"Constant[174∈0] ➊
ᐸ'relational_dividers'ᐳ"}}:::plan Constant183{{"Constant[183∈0] ➊
ᐸ'relational_checklists'ᐳ"}}:::plan Constant192{{"Constant[192∈0] ➊
ᐸ'relational_checklist_items'ᐳ"}}:::plan - Connection454{{"Connection[454∈0] ➊
ᐸ452ᐳ"}}:::plan - Constant488{{"Constant[488∈0] ➊
ᐸ'single_table_item_relations'ᐳ"}}:::plan - Connection546{{"Connection[546∈0] ➊
ᐸ544ᐳ"}}:::plan - Constant580{{"Constant[580∈0] ➊
ᐸ'relational_item_relations'ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸsingle_table_itemsᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan - PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + Constant460{{"Constant[460∈0] ➊
ᐸ'single_table_item_relations'ᐳ"}}:::plan + Constant524{{"Constant[524∈0] ➊
ᐸ'relational_item_relations'ᐳ"}}:::plan + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸsingle_table_itemsᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgClassExpression19{{"PgClassExpression[19∈2]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression19 - PgClassExpression22{{"PgClassExpression[22∈2]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__single_t...parent_id”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__single_t...parent_id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression23 - List20{{"List[20∈3]
ᐸ18,19ᐳ
ᐳSingleTableTopic"}}:::plan + List20{{"List[20∈2]
ᐸ18,19ᐳ
ᐳSingleTableTopic"}}:::plan Constant18 & PgClassExpression19 --> List20 - PgSelect24[["PgSelect[24∈3]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan - Object12 & PgClassExpression23 --> PgSelect24 - List49{{"List[49∈3]
ᐸ36,19ᐳ
ᐳSingleTablePost"}}:::plan + PgSelect24[["PgSelect[24∈2]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + Object11 & PgClassExpression23 --> PgSelect24 + List49{{"List[49∈2]
ᐸ36,19ᐳ
ᐳSingleTablePost"}}:::plan Constant36 & PgClassExpression19 --> List49 - List67{{"List[67∈3]
ᐸ39,19ᐳ
ᐳSingleTableDivider"}}:::plan + List67{{"List[67∈2]
ᐸ39,19ᐳ
ᐳSingleTableDivider"}}:::plan Constant39 & PgClassExpression19 --> List67 - List85{{"List[85∈3]
ᐸ42,19ᐳ
ᐳSingleTableChecklist"}}:::plan + List85{{"List[85∈2]
ᐸ42,19ᐳ
ᐳSingleTableChecklist"}}:::plan Constant42 & PgClassExpression19 --> List85 - List103{{"List[103∈3]
ᐸ45,19ᐳ
ᐳSingleTableChecklistItem"}}:::plan + List103{{"List[103∈2]
ᐸ45,19ᐳ
ᐳSingleTableChecklistItem"}}:::plan Constant45 & PgClassExpression19 --> List103 - Lambda21{{"Lambda[21∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda21{{"Lambda[21∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan List20 --> Lambda21 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan + First28{{"First[28∈2]"}}:::plan + PgSelectRows29[["PgSelectRows[29∈2]"]]:::plan PgSelectRows29 --> First28 PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle30{{"PgSelectSingle[30∈2]
ᐸsingle_table_itemsᐳ"}}:::plan First28 --> PgSelectSingle30 - PgClassExpression32{{"PgClassExpression[32∈3]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression32 - PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈2]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression35 - Lambda50{{"Lambda[50∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda50{{"Lambda[50∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan List49 --> Lambda50 - Lambda68{{"Lambda[68∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda68{{"Lambda[68∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan List67 --> Lambda68 - Lambda86{{"Lambda[86∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda86{{"Lambda[86∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan List85 --> Lambda86 - Lambda104{{"Lambda[104∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda104{{"Lambda[104∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan List103 --> Lambda104 - List33{{"List[33∈4]
ᐸ18,32ᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTableTopic"}}:::plan + List33{{"List[33∈3]
ᐸ18,32ᐳ
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTableTopic"}}:::plan Constant18 & PgClassExpression32 --> List33 - List37{{"List[37∈4]
ᐸ36,32ᐳ
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTablePost"}}:::plan + List37{{"List[37∈3]
ᐸ36,32ᐳ
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTablePost"}}:::plan Constant36 & PgClassExpression32 --> List37 - List40{{"List[40∈4]
ᐸ39,32ᐳ
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableDivider"}}:::plan + List40{{"List[40∈3]
ᐸ39,32ᐳ
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableDivider"}}:::plan Constant39 & PgClassExpression32 --> List40 - List43{{"List[43∈4]
ᐸ42,32ᐳ
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklist"}}:::plan + List43{{"List[43∈3]
ᐸ42,32ᐳ
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklist"}}:::plan Constant42 & PgClassExpression32 --> List43 - List46{{"List[46∈4]
ᐸ45,32ᐳ
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan + List46{{"List[46∈3]
ᐸ45,32ᐳ
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"}}:::plan Constant45 & PgClassExpression32 --> List46 - Lambda34{{"Lambda[34∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda34{{"Lambda[34∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan List33 --> Lambda34 - Lambda38{{"Lambda[38∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda38{{"Lambda[38∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan List37 --> Lambda38 - Lambda41{{"Lambda[41∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda41{{"Lambda[41∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan List40 --> Lambda41 - Lambda44{{"Lambda[44∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda44{{"Lambda[44∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan List43 --> Lambda44 - Lambda47{{"Lambda[47∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda47{{"Lambda[47∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan List46 --> Lambda47 - PgSelect125[["PgSelect[125∈5] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object12 & Connection124 --> PgSelect125 - PgSelectRows126[["PgSelectRows[126∈5] ➊"]]:::plan - PgSelect125 --> PgSelectRows126 - __Item127[/"__Item[127∈6]
ᐸ126ᐳ"\]:::itemplan + __Item127[/"__Item[127∈4]
ᐸ126ᐳ"\]:::itemplan PgSelectRows126 ==> __Item127 - PgSelectSingle128{{"PgSelectSingle[128∈6]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle128{{"PgSelectSingle[128∈4]
ᐸrelational_itemsᐳ"}}:::plan __Item127 --> PgSelectSingle128 - PgClassExpression129{{"PgClassExpression[129∈6]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression129{{"PgClassExpression[129∈4]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle128 --> PgClassExpression129 - PgClassExpression141{{"PgClassExpression[141∈6]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgClassExpression141{{"PgClassExpression[141∈4]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle128 --> PgClassExpression141 - PgSelect130[["PgSelect[130∈7]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object12 & PgClassExpression129 --> PgSelect130 - List139{{"List[139∈7]
ᐸ137,138ᐳ
ᐳRelationalTopic"}}:::plan - PgClassExpression138{{"PgClassExpression[138∈7]
ᐸ__relation...c_item_id”ᐳ"}}:::plan + PgSelect130[["PgSelect[130∈5]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + Object11 & PgClassExpression129 --> PgSelect130 + List139{{"List[139∈5]
ᐸ137,138ᐳ
ᐳRelationalTopic"}}:::plan + PgClassExpression138{{"PgClassExpression[138∈5]
ᐸ__relation...c_item_id”ᐳ"}}:::plan Constant137 & PgClassExpression138 --> List139 - PgSelect142[["PgSelect[142∈7]
ᐸrelational_itemsᐳ
ᐳRelationalTopic"]]:::plan - Object12 & PgClassExpression138 --> PgSelect142 - PgSelect196[["PgSelect[196∈7]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object12 & PgClassExpression129 --> PgSelect196 - List203{{"List[203∈7]
ᐸ165,202ᐳ
ᐳRelationalPost"}}:::plan - PgClassExpression202{{"PgClassExpression[202∈7]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + PgSelect142[["PgSelect[142∈5]
ᐸrelational_itemsᐳ
ᐳRelationalTopic"]]:::plan + Object11 & PgClassExpression138 --> PgSelect142 + PgSelect196[["PgSelect[196∈5]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression129 --> PgSelect196 + List203{{"List[203∈5]
ᐸ165,202ᐳ
ᐳRelationalPost"}}:::plan + PgClassExpression202{{"PgClassExpression[202∈5]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant165 & PgClassExpression202 --> List203 - PgSelect205[["PgSelect[205∈7]
ᐸrelational_itemsᐳ
ᐳRelationalPost"]]:::plan - Object12 & PgClassExpression202 --> PgSelect205 - PgSelect259[["PgSelect[259∈7]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object12 & PgClassExpression129 --> PgSelect259 - List266{{"List[266∈7]
ᐸ174,265ᐳ
ᐳRelationalDivider"}}:::plan - PgClassExpression265{{"PgClassExpression[265∈7]
ᐸ__relation...r_item_id”ᐳ"}}:::plan + PgSelect205[["PgSelect[205∈5]
ᐸrelational_itemsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression202 --> PgSelect205 + PgSelect259[["PgSelect[259∈5]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression129 --> PgSelect259 + List266{{"List[266∈5]
ᐸ174,265ᐳ
ᐳRelationalDivider"}}:::plan + PgClassExpression265{{"PgClassExpression[265∈5]
ᐸ__relation...r_item_id”ᐳ"}}:::plan Constant174 & PgClassExpression265 --> List266 - PgSelect268[["PgSelect[268∈7]
ᐸrelational_itemsᐳ
ᐳRelationalDivider"]]:::plan - Object12 & PgClassExpression265 --> PgSelect268 - PgSelect322[["PgSelect[322∈7]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object12 & PgClassExpression129 --> PgSelect322 - List329{{"List[329∈7]
ᐸ183,328ᐳ
ᐳRelationalChecklist"}}:::plan - PgClassExpression328{{"PgClassExpression[328∈7]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + PgSelect268[["PgSelect[268∈5]
ᐸrelational_itemsᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression265 --> PgSelect268 + PgSelect322[["PgSelect[322∈5]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression129 --> PgSelect322 + List329{{"List[329∈5]
ᐸ183,328ᐳ
ᐳRelationalChecklist"}}:::plan + PgClassExpression328{{"PgClassExpression[328∈5]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant183 & PgClassExpression328 --> List329 - PgSelect331[["PgSelect[331∈7]
ᐸrelational_itemsᐳ
ᐳRelationalChecklist"]]:::plan - Object12 & PgClassExpression328 --> PgSelect331 - PgSelect385[["PgSelect[385∈7]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object12 & PgClassExpression129 --> PgSelect385 - List392{{"List[392∈7]
ᐸ192,391ᐳ
ᐳRelationalChecklistItem"}}:::plan - PgClassExpression391{{"PgClassExpression[391∈7]
ᐸ__relation...m_item_id”ᐳ"}}:::plan + PgSelect331[["PgSelect[331∈5]
ᐸrelational_itemsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression328 --> PgSelect331 + PgSelect385[["PgSelect[385∈5]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression129 --> PgSelect385 + List392{{"List[392∈5]
ᐸ192,391ᐳ
ᐳRelationalChecklistItem"}}:::plan + PgClassExpression391{{"PgClassExpression[391∈5]
ᐸ__relation...m_item_id”ᐳ"}}:::plan Constant192 & PgClassExpression391 --> List392 - PgSelect394[["PgSelect[394∈7]
ᐸrelational_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object12 & PgClassExpression391 --> PgSelect394 - First134{{"First[134∈7]"}}:::plan - PgSelectRows135[["PgSelectRows[135∈7]"]]:::plan + PgSelect394[["PgSelect[394∈5]
ᐸrelational_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression391 --> PgSelect394 + First134{{"First[134∈5]"}}:::plan + PgSelectRows135[["PgSelectRows[135∈5]"]]:::plan PgSelectRows135 --> First134 PgSelect130 --> PgSelectRows135 - PgSelectSingle136{{"PgSelectSingle[136∈7]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle136{{"PgSelectSingle[136∈5]
ᐸrelational_topicsᐳ"}}:::plan First134 --> PgSelectSingle136 PgSelectSingle136 --> PgClassExpression138 - Lambda140{{"Lambda[140∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda140{{"Lambda[140∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan List139 --> Lambda140 - First144{{"First[144∈7]"}}:::plan - PgSelectRows145[["PgSelectRows[145∈7]"]]:::plan + First144{{"First[144∈5]"}}:::plan + PgSelectRows145[["PgSelectRows[145∈5]"]]:::plan PgSelectRows145 --> First144 PgSelect142 --> PgSelectRows145 - PgSelectSingle146{{"PgSelectSingle[146∈7]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle146{{"PgSelectSingle[146∈5]
ᐸrelational_itemsᐳ"}}:::plan First144 --> PgSelectSingle146 - PgClassExpression147{{"PgClassExpression[147∈7]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression147{{"PgClassExpression[147∈5]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle146 --> PgClassExpression147 - PgClassExpression159{{"PgClassExpression[159∈7]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgClassExpression159{{"PgClassExpression[159∈5]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle146 --> PgClassExpression159 - First198{{"First[198∈7]"}}:::plan - PgSelectRows199[["PgSelectRows[199∈7]"]]:::plan + First198{{"First[198∈5]"}}:::plan + PgSelectRows199[["PgSelectRows[199∈5]"]]:::plan PgSelectRows199 --> First198 PgSelect196 --> PgSelectRows199 - PgSelectSingle200{{"PgSelectSingle[200∈7]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle200{{"PgSelectSingle[200∈5]
ᐸrelational_postsᐳ"}}:::plan First198 --> PgSelectSingle200 PgSelectSingle200 --> PgClassExpression202 - Lambda204{{"Lambda[204∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda204{{"Lambda[204∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan List203 --> Lambda204 - First207{{"First[207∈7]"}}:::plan - PgSelectRows208[["PgSelectRows[208∈7]"]]:::plan + First207{{"First[207∈5]"}}:::plan + PgSelectRows208[["PgSelectRows[208∈5]"]]:::plan PgSelectRows208 --> First207 PgSelect205 --> PgSelectRows208 - PgSelectSingle209{{"PgSelectSingle[209∈7]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle209{{"PgSelectSingle[209∈5]
ᐸrelational_itemsᐳ"}}:::plan First207 --> PgSelectSingle209 - PgClassExpression210{{"PgClassExpression[210∈7]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression210{{"PgClassExpression[210∈5]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle209 --> PgClassExpression210 - PgClassExpression222{{"PgClassExpression[222∈7]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgClassExpression222{{"PgClassExpression[222∈5]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle209 --> PgClassExpression222 - First261{{"First[261∈7]"}}:::plan - PgSelectRows262[["PgSelectRows[262∈7]"]]:::plan + First261{{"First[261∈5]"}}:::plan + PgSelectRows262[["PgSelectRows[262∈5]"]]:::plan PgSelectRows262 --> First261 PgSelect259 --> PgSelectRows262 - PgSelectSingle263{{"PgSelectSingle[263∈7]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle263{{"PgSelectSingle[263∈5]
ᐸrelational_dividersᐳ"}}:::plan First261 --> PgSelectSingle263 PgSelectSingle263 --> PgClassExpression265 - Lambda267{{"Lambda[267∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda267{{"Lambda[267∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan List266 --> Lambda267 - First270{{"First[270∈7]"}}:::plan - PgSelectRows271[["PgSelectRows[271∈7]"]]:::plan + First270{{"First[270∈5]"}}:::plan + PgSelectRows271[["PgSelectRows[271∈5]"]]:::plan PgSelectRows271 --> First270 PgSelect268 --> PgSelectRows271 - PgSelectSingle272{{"PgSelectSingle[272∈7]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle272{{"PgSelectSingle[272∈5]
ᐸrelational_itemsᐳ"}}:::plan First270 --> PgSelectSingle272 - PgClassExpression273{{"PgClassExpression[273∈7]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression273{{"PgClassExpression[273∈5]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle272 --> PgClassExpression273 - PgClassExpression285{{"PgClassExpression[285∈7]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgClassExpression285{{"PgClassExpression[285∈5]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle272 --> PgClassExpression285 - First324{{"First[324∈7]"}}:::plan - PgSelectRows325[["PgSelectRows[325∈7]"]]:::plan + First324{{"First[324∈5]"}}:::plan + PgSelectRows325[["PgSelectRows[325∈5]"]]:::plan PgSelectRows325 --> First324 PgSelect322 --> PgSelectRows325 - PgSelectSingle326{{"PgSelectSingle[326∈7]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle326{{"PgSelectSingle[326∈5]
ᐸrelational_checklistsᐳ"}}:::plan First324 --> PgSelectSingle326 PgSelectSingle326 --> PgClassExpression328 - Lambda330{{"Lambda[330∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda330{{"Lambda[330∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan List329 --> Lambda330 - First333{{"First[333∈7]"}}:::plan - PgSelectRows334[["PgSelectRows[334∈7]"]]:::plan + First333{{"First[333∈5]"}}:::plan + PgSelectRows334[["PgSelectRows[334∈5]"]]:::plan PgSelectRows334 --> First333 PgSelect331 --> PgSelectRows334 - PgSelectSingle335{{"PgSelectSingle[335∈7]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle335{{"PgSelectSingle[335∈5]
ᐸrelational_itemsᐳ"}}:::plan First333 --> PgSelectSingle335 - PgClassExpression336{{"PgClassExpression[336∈7]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression336{{"PgClassExpression[336∈5]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle335 --> PgClassExpression336 - PgClassExpression348{{"PgClassExpression[348∈7]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgClassExpression348{{"PgClassExpression[348∈5]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle335 --> PgClassExpression348 - First387{{"First[387∈7]"}}:::plan - PgSelectRows388[["PgSelectRows[388∈7]"]]:::plan + First387{{"First[387∈5]"}}:::plan + PgSelectRows388[["PgSelectRows[388∈5]"]]:::plan PgSelectRows388 --> First387 PgSelect385 --> PgSelectRows388 - PgSelectSingle389{{"PgSelectSingle[389∈7]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle389{{"PgSelectSingle[389∈5]
ᐸrelational_checklist_itemsᐳ"}}:::plan First387 --> PgSelectSingle389 PgSelectSingle389 --> PgClassExpression391 - Lambda393{{"Lambda[393∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda393{{"Lambda[393∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan List392 --> Lambda393 - First396{{"First[396∈7]"}}:::plan - PgSelectRows397[["PgSelectRows[397∈7]"]]:::plan + First396{{"First[396∈5]"}}:::plan + PgSelectRows397[["PgSelectRows[397∈5]"]]:::plan PgSelectRows397 --> First396 PgSelect394 --> PgSelectRows397 - PgSelectSingle398{{"PgSelectSingle[398∈7]
ᐸrelational_itemsᐳ"}}:::plan + PgSelectSingle398{{"PgSelectSingle[398∈5]
ᐸrelational_itemsᐳ"}}:::plan First396 --> PgSelectSingle398 - PgClassExpression399{{"PgClassExpression[399∈7]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgClassExpression399{{"PgClassExpression[399∈5]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan PgSelectSingle398 --> PgClassExpression399 - PgClassExpression411{{"PgClassExpression[411∈7]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgClassExpression411{{"PgClassExpression[411∈5]
ᐸ__relation...s__.”type”ᐳ"}}:::plan PgSelectSingle398 --> PgClassExpression411 - PgSelect148[["PgSelect[148∈8]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic"]]:::plan - Object12 & PgClassExpression147 --> PgSelect148 - List157{{"List[157∈8]
ᐸ137,156ᐳ
ᐳRelationalTopicᐳRelationalTopic"}}:::plan - PgClassExpression156{{"PgClassExpression[156∈8]
ᐸ__relation...c_item_id”ᐳ"}}:::plan + PgSelect148[["PgSelect[148∈6]
ᐸrelational_topicsᐳ
ᐳRelationalTopicᐳRelationalTopic"]]:::plan + Object11 & PgClassExpression147 --> PgSelect148 + List157{{"List[157∈6]
ᐸ137,156ᐳ
ᐳRelationalTopicᐳRelationalTopic"}}:::plan + PgClassExpression156{{"PgClassExpression[156∈6]
ᐸ__relation...c_item_id”ᐳ"}}:::plan Constant137 & PgClassExpression156 --> List157 - PgSelect160[["PgSelect[160∈8]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost"]]:::plan - Object12 & PgClassExpression147 --> PgSelect160 - List167{{"List[167∈8]
ᐸ165,166ᐳ
ᐳRelationalTopicᐳRelationalPost"}}:::plan - PgClassExpression166{{"PgClassExpression[166∈8]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + PgSelect160[["PgSelect[160∈6]
ᐸrelational_postsᐳ
ᐳRelationalTopicᐳRelationalPost"]]:::plan + Object11 & PgClassExpression147 --> PgSelect160 + List167{{"List[167∈6]
ᐸ165,166ᐳ
ᐳRelationalTopicᐳRelationalPost"}}:::plan + PgClassExpression166{{"PgClassExpression[166∈6]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant165 & PgClassExpression166 --> List167 - PgSelect169[["PgSelect[169∈8]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider"]]:::plan - Object12 & PgClassExpression147 --> PgSelect169 - List176{{"List[176∈8]
ᐸ174,175ᐳ
ᐳRelationalTopicᐳRelationalDivider"}}:::plan - PgClassExpression175{{"PgClassExpression[175∈8]
ᐸ__relation...r_item_id”ᐳ"}}:::plan + PgSelect169[["PgSelect[169∈6]
ᐸrelational_dividersᐳ
ᐳRelationalTopicᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression147 --> PgSelect169 + List176{{"List[176∈6]
ᐸ174,175ᐳ
ᐳRelationalTopicᐳRelationalDivider"}}:::plan + PgClassExpression175{{"PgClassExpression[175∈6]
ᐸ__relation...r_item_id”ᐳ"}}:::plan Constant174 & PgClassExpression175 --> List176 - PgSelect178[["PgSelect[178∈8]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist"]]:::plan - Object12 & PgClassExpression147 --> PgSelect178 - List185{{"List[185∈8]
ᐸ183,184ᐳ
ᐳRelationalTopicᐳRelationalChecklist"}}:::plan - PgClassExpression184{{"PgClassExpression[184∈8]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + PgSelect178[["PgSelect[178∈6]
ᐸrelational_checklistsᐳ
ᐳRelationalTopicᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression147 --> PgSelect178 + List185{{"List[185∈6]
ᐸ183,184ᐳ
ᐳRelationalTopicᐳRelationalChecklist"}}:::plan + PgClassExpression184{{"PgClassExpression[184∈6]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant183 & PgClassExpression184 --> List185 - PgSelect187[["PgSelect[187∈8]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem"]]:::plan - Object12 & PgClassExpression147 --> PgSelect187 - List194{{"List[194∈8]
ᐸ192,193ᐳ
ᐳRelationalTopicᐳRelationalChecklistItem"}}:::plan - PgClassExpression193{{"PgClassExpression[193∈8]
ᐸ__relation...m_item_id”ᐳ"}}:::plan + PgSelect187[["PgSelect[187∈6]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalTopicᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression147 --> PgSelect187 + List194{{"List[194∈6]
ᐸ192,193ᐳ
ᐳRelationalTopicᐳRelationalChecklistItem"}}:::plan + PgClassExpression193{{"PgClassExpression[193∈6]
ᐸ__relation...m_item_id”ᐳ"}}:::plan Constant192 & PgClassExpression193 --> List194 - First152{{"First[152∈8]"}}:::plan - PgSelectRows153[["PgSelectRows[153∈8]"]]:::plan + First152{{"First[152∈6]"}}:::plan + PgSelectRows153[["PgSelectRows[153∈6]"]]:::plan PgSelectRows153 --> First152 PgSelect148 --> PgSelectRows153 - PgSelectSingle154{{"PgSelectSingle[154∈8]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle154{{"PgSelectSingle[154∈6]
ᐸrelational_topicsᐳ"}}:::plan First152 --> PgSelectSingle154 PgSelectSingle154 --> PgClassExpression156 - Lambda158{{"Lambda[158∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda158{{"Lambda[158∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan List157 --> Lambda158 - First162{{"First[162∈8]"}}:::plan - PgSelectRows163[["PgSelectRows[163∈8]"]]:::plan + First162{{"First[162∈6]"}}:::plan + PgSelectRows163[["PgSelectRows[163∈6]"]]:::plan PgSelectRows163 --> First162 PgSelect160 --> PgSelectRows163 - PgSelectSingle164{{"PgSelectSingle[164∈8]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle164{{"PgSelectSingle[164∈6]
ᐸrelational_postsᐳ"}}:::plan First162 --> PgSelectSingle164 PgSelectSingle164 --> PgClassExpression166 - Lambda168{{"Lambda[168∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda168{{"Lambda[168∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan List167 --> Lambda168 - First171{{"First[171∈8]"}}:::plan - PgSelectRows172[["PgSelectRows[172∈8]"]]:::plan + First171{{"First[171∈6]"}}:::plan + PgSelectRows172[["PgSelectRows[172∈6]"]]:::plan PgSelectRows172 --> First171 PgSelect169 --> PgSelectRows172 - PgSelectSingle173{{"PgSelectSingle[173∈8]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle173{{"PgSelectSingle[173∈6]
ᐸrelational_dividersᐳ"}}:::plan First171 --> PgSelectSingle173 PgSelectSingle173 --> PgClassExpression175 - Lambda177{{"Lambda[177∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda177{{"Lambda[177∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan List176 --> Lambda177 - First180{{"First[180∈8]"}}:::plan - PgSelectRows181[["PgSelectRows[181∈8]"]]:::plan + First180{{"First[180∈6]"}}:::plan + PgSelectRows181[["PgSelectRows[181∈6]"]]:::plan PgSelectRows181 --> First180 PgSelect178 --> PgSelectRows181 - PgSelectSingle182{{"PgSelectSingle[182∈8]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle182{{"PgSelectSingle[182∈6]
ᐸrelational_checklistsᐳ"}}:::plan First180 --> PgSelectSingle182 PgSelectSingle182 --> PgClassExpression184 - Lambda186{{"Lambda[186∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda186{{"Lambda[186∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan List185 --> Lambda186 - First189{{"First[189∈8]"}}:::plan - PgSelectRows190[["PgSelectRows[190∈8]"]]:::plan + First189{{"First[189∈6]"}}:::plan + PgSelectRows190[["PgSelectRows[190∈6]"]]:::plan PgSelectRows190 --> First189 PgSelect187 --> PgSelectRows190 - PgSelectSingle191{{"PgSelectSingle[191∈8]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle191{{"PgSelectSingle[191∈6]
ᐸrelational_checklist_itemsᐳ"}}:::plan First189 --> PgSelectSingle191 PgSelectSingle191 --> PgClassExpression193 - Lambda195{{"Lambda[195∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda195{{"Lambda[195∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan List194 --> Lambda195 - PgSelect211[["PgSelect[211∈9]
ᐸrelational_topicsᐳ
ᐳRelationalPostᐳRelationalTopic"]]:::plan - Object12 & PgClassExpression210 --> PgSelect211 - List220{{"List[220∈9]
ᐸ137,219ᐳ
ᐳRelationalPostᐳRelationalTopic"}}:::plan - PgClassExpression219{{"PgClassExpression[219∈9]
ᐸ__relation...c_item_id”ᐳ"}}:::plan + PgSelect211[["PgSelect[211∈7]
ᐸrelational_topicsᐳ
ᐳRelationalPostᐳRelationalTopic"]]:::plan + Object11 & PgClassExpression210 --> PgSelect211 + List220{{"List[220∈7]
ᐸ137,219ᐳ
ᐳRelationalPostᐳRelationalTopic"}}:::plan + PgClassExpression219{{"PgClassExpression[219∈7]
ᐸ__relation...c_item_id”ᐳ"}}:::plan Constant137 & PgClassExpression219 --> List220 - PgSelect223[["PgSelect[223∈9]
ᐸrelational_postsᐳ
ᐳRelationalPostᐳRelationalPost"]]:::plan - Object12 & PgClassExpression210 --> PgSelect223 - List230{{"List[230∈9]
ᐸ165,229ᐳ
ᐳRelationalPostᐳRelationalPost"}}:::plan - PgClassExpression229{{"PgClassExpression[229∈9]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + PgSelect223[["PgSelect[223∈7]
ᐸrelational_postsᐳ
ᐳRelationalPostᐳRelationalPost"]]:::plan + Object11 & PgClassExpression210 --> PgSelect223 + List230{{"List[230∈7]
ᐸ165,229ᐳ
ᐳRelationalPostᐳRelationalPost"}}:::plan + PgClassExpression229{{"PgClassExpression[229∈7]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant165 & PgClassExpression229 --> List230 - PgSelect232[["PgSelect[232∈9]
ᐸrelational_dividersᐳ
ᐳRelationalPostᐳRelationalDivider"]]:::plan - Object12 & PgClassExpression210 --> PgSelect232 - List239{{"List[239∈9]
ᐸ174,238ᐳ
ᐳRelationalPostᐳRelationalDivider"}}:::plan - PgClassExpression238{{"PgClassExpression[238∈9]
ᐸ__relation...r_item_id”ᐳ"}}:::plan + PgSelect232[["PgSelect[232∈7]
ᐸrelational_dividersᐳ
ᐳRelationalPostᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression210 --> PgSelect232 + List239{{"List[239∈7]
ᐸ174,238ᐳ
ᐳRelationalPostᐳRelationalDivider"}}:::plan + PgClassExpression238{{"PgClassExpression[238∈7]
ᐸ__relation...r_item_id”ᐳ"}}:::plan Constant174 & PgClassExpression238 --> List239 - PgSelect241[["PgSelect[241∈9]
ᐸrelational_checklistsᐳ
ᐳRelationalPostᐳRelationalChecklist"]]:::plan - Object12 & PgClassExpression210 --> PgSelect241 - List248{{"List[248∈9]
ᐸ183,247ᐳ
ᐳRelationalPostᐳRelationalChecklist"}}:::plan - PgClassExpression247{{"PgClassExpression[247∈9]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + PgSelect241[["PgSelect[241∈7]
ᐸrelational_checklistsᐳ
ᐳRelationalPostᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression210 --> PgSelect241 + List248{{"List[248∈7]
ᐸ183,247ᐳ
ᐳRelationalPostᐳRelationalChecklist"}}:::plan + PgClassExpression247{{"PgClassExpression[247∈7]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant183 & PgClassExpression247 --> List248 - PgSelect250[["PgSelect[250∈9]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalPostᐳRelationalChecklistItem"]]:::plan - Object12 & PgClassExpression210 --> PgSelect250 - List257{{"List[257∈9]
ᐸ192,256ᐳ
ᐳRelationalPostᐳRelationalChecklistItem"}}:::plan - PgClassExpression256{{"PgClassExpression[256∈9]
ᐸ__relation...m_item_id”ᐳ"}}:::plan + PgSelect250[["PgSelect[250∈7]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalPostᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression210 --> PgSelect250 + List257{{"List[257∈7]
ᐸ192,256ᐳ
ᐳRelationalPostᐳRelationalChecklistItem"}}:::plan + PgClassExpression256{{"PgClassExpression[256∈7]
ᐸ__relation...m_item_id”ᐳ"}}:::plan Constant192 & PgClassExpression256 --> List257 - First215{{"First[215∈9]"}}:::plan - PgSelectRows216[["PgSelectRows[216∈9]"]]:::plan + First215{{"First[215∈7]"}}:::plan + PgSelectRows216[["PgSelectRows[216∈7]"]]:::plan PgSelectRows216 --> First215 PgSelect211 --> PgSelectRows216 - PgSelectSingle217{{"PgSelectSingle[217∈9]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle217{{"PgSelectSingle[217∈7]
ᐸrelational_topicsᐳ"}}:::plan First215 --> PgSelectSingle217 PgSelectSingle217 --> PgClassExpression219 - Lambda221{{"Lambda[221∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda221{{"Lambda[221∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan List220 --> Lambda221 - First225{{"First[225∈9]"}}:::plan - PgSelectRows226[["PgSelectRows[226∈9]"]]:::plan + First225{{"First[225∈7]"}}:::plan + PgSelectRows226[["PgSelectRows[226∈7]"]]:::plan PgSelectRows226 --> First225 PgSelect223 --> PgSelectRows226 - PgSelectSingle227{{"PgSelectSingle[227∈9]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle227{{"PgSelectSingle[227∈7]
ᐸrelational_postsᐳ"}}:::plan First225 --> PgSelectSingle227 PgSelectSingle227 --> PgClassExpression229 - Lambda231{{"Lambda[231∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda231{{"Lambda[231∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan List230 --> Lambda231 - First234{{"First[234∈9]"}}:::plan - PgSelectRows235[["PgSelectRows[235∈9]"]]:::plan + First234{{"First[234∈7]"}}:::plan + PgSelectRows235[["PgSelectRows[235∈7]"]]:::plan PgSelectRows235 --> First234 PgSelect232 --> PgSelectRows235 - PgSelectSingle236{{"PgSelectSingle[236∈9]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle236{{"PgSelectSingle[236∈7]
ᐸrelational_dividersᐳ"}}:::plan First234 --> PgSelectSingle236 PgSelectSingle236 --> PgClassExpression238 - Lambda240{{"Lambda[240∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda240{{"Lambda[240∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan List239 --> Lambda240 - First243{{"First[243∈9]"}}:::plan - PgSelectRows244[["PgSelectRows[244∈9]"]]:::plan + First243{{"First[243∈7]"}}:::plan + PgSelectRows244[["PgSelectRows[244∈7]"]]:::plan PgSelectRows244 --> First243 PgSelect241 --> PgSelectRows244 - PgSelectSingle245{{"PgSelectSingle[245∈9]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle245{{"PgSelectSingle[245∈7]
ᐸrelational_checklistsᐳ"}}:::plan First243 --> PgSelectSingle245 PgSelectSingle245 --> PgClassExpression247 - Lambda249{{"Lambda[249∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda249{{"Lambda[249∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan List248 --> Lambda249 - First252{{"First[252∈9]"}}:::plan - PgSelectRows253[["PgSelectRows[253∈9]"]]:::plan + First252{{"First[252∈7]"}}:::plan + PgSelectRows253[["PgSelectRows[253∈7]"]]:::plan PgSelectRows253 --> First252 PgSelect250 --> PgSelectRows253 - PgSelectSingle254{{"PgSelectSingle[254∈9]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle254{{"PgSelectSingle[254∈7]
ᐸrelational_checklist_itemsᐳ"}}:::plan First252 --> PgSelectSingle254 PgSelectSingle254 --> PgClassExpression256 - Lambda258{{"Lambda[258∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda258{{"Lambda[258∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan List257 --> Lambda258 - PgSelect274[["PgSelect[274∈10]
ᐸrelational_topicsᐳ
ᐳRelationalDividerᐳRelationalTopic"]]:::plan - Object12 & PgClassExpression273 --> PgSelect274 - List283{{"List[283∈10]
ᐸ137,282ᐳ
ᐳRelationalDividerᐳRelationalTopic"}}:::plan - PgClassExpression282{{"PgClassExpression[282∈10]
ᐸ__relation...c_item_id”ᐳ"}}:::plan + PgSelect274[["PgSelect[274∈8]
ᐸrelational_topicsᐳ
ᐳRelationalDividerᐳRelationalTopic"]]:::plan + Object11 & PgClassExpression273 --> PgSelect274 + List283{{"List[283∈8]
ᐸ137,282ᐳ
ᐳRelationalDividerᐳRelationalTopic"}}:::plan + PgClassExpression282{{"PgClassExpression[282∈8]
ᐸ__relation...c_item_id”ᐳ"}}:::plan Constant137 & PgClassExpression282 --> List283 - PgSelect286[["PgSelect[286∈10]
ᐸrelational_postsᐳ
ᐳRelationalDividerᐳRelationalPost"]]:::plan - Object12 & PgClassExpression273 --> PgSelect286 - List293{{"List[293∈10]
ᐸ165,292ᐳ
ᐳRelationalDividerᐳRelationalPost"}}:::plan - PgClassExpression292{{"PgClassExpression[292∈10]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + PgSelect286[["PgSelect[286∈8]
ᐸrelational_postsᐳ
ᐳRelationalDividerᐳRelationalPost"]]:::plan + Object11 & PgClassExpression273 --> PgSelect286 + List293{{"List[293∈8]
ᐸ165,292ᐳ
ᐳRelationalDividerᐳRelationalPost"}}:::plan + PgClassExpression292{{"PgClassExpression[292∈8]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant165 & PgClassExpression292 --> List293 - PgSelect295[["PgSelect[295∈10]
ᐸrelational_dividersᐳ
ᐳRelationalDividerᐳRelationalDivider"]]:::plan - Object12 & PgClassExpression273 --> PgSelect295 - List302{{"List[302∈10]
ᐸ174,301ᐳ
ᐳRelationalDividerᐳRelationalDivider"}}:::plan - PgClassExpression301{{"PgClassExpression[301∈10]
ᐸ__relation...r_item_id”ᐳ"}}:::plan + PgSelect295[["PgSelect[295∈8]
ᐸrelational_dividersᐳ
ᐳRelationalDividerᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression273 --> PgSelect295 + List302{{"List[302∈8]
ᐸ174,301ᐳ
ᐳRelationalDividerᐳRelationalDivider"}}:::plan + PgClassExpression301{{"PgClassExpression[301∈8]
ᐸ__relation...r_item_id”ᐳ"}}:::plan Constant174 & PgClassExpression301 --> List302 - PgSelect304[["PgSelect[304∈10]
ᐸrelational_checklistsᐳ
ᐳRelationalDividerᐳRelationalChecklist"]]:::plan - Object12 & PgClassExpression273 --> PgSelect304 - List311{{"List[311∈10]
ᐸ183,310ᐳ
ᐳRelationalDividerᐳRelationalChecklist"}}:::plan - PgClassExpression310{{"PgClassExpression[310∈10]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + PgSelect304[["PgSelect[304∈8]
ᐸrelational_checklistsᐳ
ᐳRelationalDividerᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression273 --> PgSelect304 + List311{{"List[311∈8]
ᐸ183,310ᐳ
ᐳRelationalDividerᐳRelationalChecklist"}}:::plan + PgClassExpression310{{"PgClassExpression[310∈8]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant183 & PgClassExpression310 --> List311 - PgSelect313[["PgSelect[313∈10]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalDividerᐳRelationalChecklistItem"]]:::plan - Object12 & PgClassExpression273 --> PgSelect313 - List320{{"List[320∈10]
ᐸ192,319ᐳ
ᐳRelationalDividerᐳRelationalChecklistItem"}}:::plan - PgClassExpression319{{"PgClassExpression[319∈10]
ᐸ__relation...m_item_id”ᐳ"}}:::plan + PgSelect313[["PgSelect[313∈8]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalDividerᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression273 --> PgSelect313 + List320{{"List[320∈8]
ᐸ192,319ᐳ
ᐳRelationalDividerᐳRelationalChecklistItem"}}:::plan + PgClassExpression319{{"PgClassExpression[319∈8]
ᐸ__relation...m_item_id”ᐳ"}}:::plan Constant192 & PgClassExpression319 --> List320 - First278{{"First[278∈10]"}}:::plan - PgSelectRows279[["PgSelectRows[279∈10]"]]:::plan + First278{{"First[278∈8]"}}:::plan + PgSelectRows279[["PgSelectRows[279∈8]"]]:::plan PgSelectRows279 --> First278 PgSelect274 --> PgSelectRows279 - PgSelectSingle280{{"PgSelectSingle[280∈10]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle280{{"PgSelectSingle[280∈8]
ᐸrelational_topicsᐳ"}}:::plan First278 --> PgSelectSingle280 PgSelectSingle280 --> PgClassExpression282 - Lambda284{{"Lambda[284∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda284{{"Lambda[284∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan List283 --> Lambda284 - First288{{"First[288∈10]"}}:::plan - PgSelectRows289[["PgSelectRows[289∈10]"]]:::plan + First288{{"First[288∈8]"}}:::plan + PgSelectRows289[["PgSelectRows[289∈8]"]]:::plan PgSelectRows289 --> First288 PgSelect286 --> PgSelectRows289 - PgSelectSingle290{{"PgSelectSingle[290∈10]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle290{{"PgSelectSingle[290∈8]
ᐸrelational_postsᐳ"}}:::plan First288 --> PgSelectSingle290 PgSelectSingle290 --> PgClassExpression292 - Lambda294{{"Lambda[294∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda294{{"Lambda[294∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan List293 --> Lambda294 - First297{{"First[297∈10]"}}:::plan - PgSelectRows298[["PgSelectRows[298∈10]"]]:::plan + First297{{"First[297∈8]"}}:::plan + PgSelectRows298[["PgSelectRows[298∈8]"]]:::plan PgSelectRows298 --> First297 PgSelect295 --> PgSelectRows298 - PgSelectSingle299{{"PgSelectSingle[299∈10]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle299{{"PgSelectSingle[299∈8]
ᐸrelational_dividersᐳ"}}:::plan First297 --> PgSelectSingle299 PgSelectSingle299 --> PgClassExpression301 - Lambda303{{"Lambda[303∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda303{{"Lambda[303∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan List302 --> Lambda303 - First306{{"First[306∈10]"}}:::plan - PgSelectRows307[["PgSelectRows[307∈10]"]]:::plan + First306{{"First[306∈8]"}}:::plan + PgSelectRows307[["PgSelectRows[307∈8]"]]:::plan PgSelectRows307 --> First306 PgSelect304 --> PgSelectRows307 - PgSelectSingle308{{"PgSelectSingle[308∈10]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle308{{"PgSelectSingle[308∈8]
ᐸrelational_checklistsᐳ"}}:::plan First306 --> PgSelectSingle308 PgSelectSingle308 --> PgClassExpression310 - Lambda312{{"Lambda[312∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda312{{"Lambda[312∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan List311 --> Lambda312 - First315{{"First[315∈10]"}}:::plan - PgSelectRows316[["PgSelectRows[316∈10]"]]:::plan + First315{{"First[315∈8]"}}:::plan + PgSelectRows316[["PgSelectRows[316∈8]"]]:::plan PgSelectRows316 --> First315 PgSelect313 --> PgSelectRows316 - PgSelectSingle317{{"PgSelectSingle[317∈10]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle317{{"PgSelectSingle[317∈8]
ᐸrelational_checklist_itemsᐳ"}}:::plan First315 --> PgSelectSingle317 PgSelectSingle317 --> PgClassExpression319 - Lambda321{{"Lambda[321∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda321{{"Lambda[321∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan List320 --> Lambda321 - PgSelect337[["PgSelect[337∈11]
ᐸrelational_topicsᐳ
ᐳRelationalChecklistᐳRelationalTopic"]]:::plan - Object12 & PgClassExpression336 --> PgSelect337 - List346{{"List[346∈11]
ᐸ137,345ᐳ
ᐳRelationalChecklistᐳRelationalTopic"}}:::plan - PgClassExpression345{{"PgClassExpression[345∈11]
ᐸ__relation...c_item_id”ᐳ"}}:::plan + PgSelect337[["PgSelect[337∈9]
ᐸrelational_topicsᐳ
ᐳRelationalChecklistᐳRelationalTopic"]]:::plan + Object11 & PgClassExpression336 --> PgSelect337 + List346{{"List[346∈9]
ᐸ137,345ᐳ
ᐳRelationalChecklistᐳRelationalTopic"}}:::plan + PgClassExpression345{{"PgClassExpression[345∈9]
ᐸ__relation...c_item_id”ᐳ"}}:::plan Constant137 & PgClassExpression345 --> List346 - PgSelect349[["PgSelect[349∈11]
ᐸrelational_postsᐳ
ᐳRelationalChecklistᐳRelationalPost"]]:::plan - Object12 & PgClassExpression336 --> PgSelect349 - List356{{"List[356∈11]
ᐸ165,355ᐳ
ᐳRelationalChecklistᐳRelationalPost"}}:::plan - PgClassExpression355{{"PgClassExpression[355∈11]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + PgSelect349[["PgSelect[349∈9]
ᐸrelational_postsᐳ
ᐳRelationalChecklistᐳRelationalPost"]]:::plan + Object11 & PgClassExpression336 --> PgSelect349 + List356{{"List[356∈9]
ᐸ165,355ᐳ
ᐳRelationalChecklistᐳRelationalPost"}}:::plan + PgClassExpression355{{"PgClassExpression[355∈9]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant165 & PgClassExpression355 --> List356 - PgSelect358[["PgSelect[358∈11]
ᐸrelational_dividersᐳ
ᐳRelationalChecklistᐳRelationalDivider"]]:::plan - Object12 & PgClassExpression336 --> PgSelect358 - List365{{"List[365∈11]
ᐸ174,364ᐳ
ᐳRelationalChecklistᐳRelationalDivider"}}:::plan - PgClassExpression364{{"PgClassExpression[364∈11]
ᐸ__relation...r_item_id”ᐳ"}}:::plan + PgSelect358[["PgSelect[358∈9]
ᐸrelational_dividersᐳ
ᐳRelationalChecklistᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression336 --> PgSelect358 + List365{{"List[365∈9]
ᐸ174,364ᐳ
ᐳRelationalChecklistᐳRelationalDivider"}}:::plan + PgClassExpression364{{"PgClassExpression[364∈9]
ᐸ__relation...r_item_id”ᐳ"}}:::plan Constant174 & PgClassExpression364 --> List365 - PgSelect367[["PgSelect[367∈11]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklistᐳRelationalChecklist"]]:::plan - Object12 & PgClassExpression336 --> PgSelect367 - List374{{"List[374∈11]
ᐸ183,373ᐳ
ᐳRelationalChecklistᐳRelationalChecklist"}}:::plan - PgClassExpression373{{"PgClassExpression[373∈11]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + PgSelect367[["PgSelect[367∈9]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklistᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression336 --> PgSelect367 + List374{{"List[374∈9]
ᐸ183,373ᐳ
ᐳRelationalChecklistᐳRelationalChecklist"}}:::plan + PgClassExpression373{{"PgClassExpression[373∈9]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant183 & PgClassExpression373 --> List374 - PgSelect376[["PgSelect[376∈11]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistᐳRelationalChecklistItem"]]:::plan - Object12 & PgClassExpression336 --> PgSelect376 - List383{{"List[383∈11]
ᐸ192,382ᐳ
ᐳRelationalChecklistᐳRelationalChecklistItem"}}:::plan - PgClassExpression382{{"PgClassExpression[382∈11]
ᐸ__relation...m_item_id”ᐳ"}}:::plan + PgSelect376[["PgSelect[376∈9]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression336 --> PgSelect376 + List383{{"List[383∈9]
ᐸ192,382ᐳ
ᐳRelationalChecklistᐳRelationalChecklistItem"}}:::plan + PgClassExpression382{{"PgClassExpression[382∈9]
ᐸ__relation...m_item_id”ᐳ"}}:::plan Constant192 & PgClassExpression382 --> List383 - First341{{"First[341∈11]"}}:::plan - PgSelectRows342[["PgSelectRows[342∈11]"]]:::plan + First341{{"First[341∈9]"}}:::plan + PgSelectRows342[["PgSelectRows[342∈9]"]]:::plan PgSelectRows342 --> First341 PgSelect337 --> PgSelectRows342 - PgSelectSingle343{{"PgSelectSingle[343∈11]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle343{{"PgSelectSingle[343∈9]
ᐸrelational_topicsᐳ"}}:::plan First341 --> PgSelectSingle343 PgSelectSingle343 --> PgClassExpression345 - Lambda347{{"Lambda[347∈11]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda347{{"Lambda[347∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan List346 --> Lambda347 - First351{{"First[351∈11]"}}:::plan - PgSelectRows352[["PgSelectRows[352∈11]"]]:::plan + First351{{"First[351∈9]"}}:::plan + PgSelectRows352[["PgSelectRows[352∈9]"]]:::plan PgSelectRows352 --> First351 PgSelect349 --> PgSelectRows352 - PgSelectSingle353{{"PgSelectSingle[353∈11]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle353{{"PgSelectSingle[353∈9]
ᐸrelational_postsᐳ"}}:::plan First351 --> PgSelectSingle353 PgSelectSingle353 --> PgClassExpression355 - Lambda357{{"Lambda[357∈11]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda357{{"Lambda[357∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan List356 --> Lambda357 - First360{{"First[360∈11]"}}:::plan - PgSelectRows361[["PgSelectRows[361∈11]"]]:::plan + First360{{"First[360∈9]"}}:::plan + PgSelectRows361[["PgSelectRows[361∈9]"]]:::plan PgSelectRows361 --> First360 PgSelect358 --> PgSelectRows361 - PgSelectSingle362{{"PgSelectSingle[362∈11]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle362{{"PgSelectSingle[362∈9]
ᐸrelational_dividersᐳ"}}:::plan First360 --> PgSelectSingle362 PgSelectSingle362 --> PgClassExpression364 - Lambda366{{"Lambda[366∈11]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda366{{"Lambda[366∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan List365 --> Lambda366 - First369{{"First[369∈11]"}}:::plan - PgSelectRows370[["PgSelectRows[370∈11]"]]:::plan + First369{{"First[369∈9]"}}:::plan + PgSelectRows370[["PgSelectRows[370∈9]"]]:::plan PgSelectRows370 --> First369 PgSelect367 --> PgSelectRows370 - PgSelectSingle371{{"PgSelectSingle[371∈11]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle371{{"PgSelectSingle[371∈9]
ᐸrelational_checklistsᐳ"}}:::plan First369 --> PgSelectSingle371 PgSelectSingle371 --> PgClassExpression373 - Lambda375{{"Lambda[375∈11]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda375{{"Lambda[375∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan List374 --> Lambda375 - First378{{"First[378∈11]"}}:::plan - PgSelectRows379[["PgSelectRows[379∈11]"]]:::plan + First378{{"First[378∈9]"}}:::plan + PgSelectRows379[["PgSelectRows[379∈9]"]]:::plan PgSelectRows379 --> First378 PgSelect376 --> PgSelectRows379 - PgSelectSingle380{{"PgSelectSingle[380∈11]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle380{{"PgSelectSingle[380∈9]
ᐸrelational_checklist_itemsᐳ"}}:::plan First378 --> PgSelectSingle380 PgSelectSingle380 --> PgClassExpression382 - Lambda384{{"Lambda[384∈11]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda384{{"Lambda[384∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan List383 --> Lambda384 - PgSelect400[["PgSelect[400∈12]
ᐸrelational_topicsᐳ
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan - Object12 & PgClassExpression399 --> PgSelect400 - List409{{"List[409∈12]
ᐸ137,408ᐳ
ᐳRelationalChecklistItemᐳRelationalTopic"}}:::plan - PgClassExpression408{{"PgClassExpression[408∈12]
ᐸ__relation...c_item_id”ᐳ"}}:::plan + PgSelect400[["PgSelect[400∈10]
ᐸrelational_topicsᐳ
ᐳRelationalChecklistItemᐳRelationalTopic"]]:::plan + Object11 & PgClassExpression399 --> PgSelect400 + List409{{"List[409∈10]
ᐸ137,408ᐳ
ᐳRelationalChecklistItemᐳRelationalTopic"}}:::plan + PgClassExpression408{{"PgClassExpression[408∈10]
ᐸ__relation...c_item_id”ᐳ"}}:::plan Constant137 & PgClassExpression408 --> List409 - PgSelect412[["PgSelect[412∈12]
ᐸrelational_postsᐳ
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan - Object12 & PgClassExpression399 --> PgSelect412 - List419{{"List[419∈12]
ᐸ165,418ᐳ
ᐳRelationalChecklistItemᐳRelationalPost"}}:::plan - PgClassExpression418{{"PgClassExpression[418∈12]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + PgSelect412[["PgSelect[412∈10]
ᐸrelational_postsᐳ
ᐳRelationalChecklistItemᐳRelationalPost"]]:::plan + Object11 & PgClassExpression399 --> PgSelect412 + List419{{"List[419∈10]
ᐸ165,418ᐳ
ᐳRelationalChecklistItemᐳRelationalPost"}}:::plan + PgClassExpression418{{"PgClassExpression[418∈10]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant165 & PgClassExpression418 --> List419 - PgSelect421[["PgSelect[421∈12]
ᐸrelational_dividersᐳ
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan - Object12 & PgClassExpression399 --> PgSelect421 - List428{{"List[428∈12]
ᐸ174,427ᐳ
ᐳRelationalChecklistItemᐳRelationalDivider"}}:::plan - PgClassExpression427{{"PgClassExpression[427∈12]
ᐸ__relation...r_item_id”ᐳ"}}:::plan + PgSelect421[["PgSelect[421∈10]
ᐸrelational_dividersᐳ
ᐳRelationalChecklistItemᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression399 --> PgSelect421 + List428{{"List[428∈10]
ᐸ174,427ᐳ
ᐳRelationalChecklistItemᐳRelationalDivider"}}:::plan + PgClassExpression427{{"PgClassExpression[427∈10]
ᐸ__relation...r_item_id”ᐳ"}}:::plan Constant174 & PgClassExpression427 --> List428 - PgSelect430[["PgSelect[430∈12]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan - Object12 & PgClassExpression399 --> PgSelect430 - List437{{"List[437∈12]
ᐸ183,436ᐳ
ᐳRelationalChecklistItemᐳRelationalChecklist"}}:::plan - PgClassExpression436{{"PgClassExpression[436∈12]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + PgSelect430[["PgSelect[430∈10]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklistItemᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression399 --> PgSelect430 + List437{{"List[437∈10]
ᐸ183,436ᐳ
ᐳRelationalChecklistItemᐳRelationalChecklist"}}:::plan + PgClassExpression436{{"PgClassExpression[436∈10]
ᐸ__relation...t_item_id”ᐳ"}}:::plan Constant183 & PgClassExpression436 --> List437 - PgSelect439[["PgSelect[439∈12]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan - Object12 & PgClassExpression399 --> PgSelect439 - List446{{"List[446∈12]
ᐸ192,445ᐳ
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan - PgClassExpression445{{"PgClassExpression[445∈12]
ᐸ__relation...m_item_id”ᐳ"}}:::plan + PgSelect439[["PgSelect[439∈10]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItemᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression399 --> PgSelect439 + List446{{"List[446∈10]
ᐸ192,445ᐳ
ᐳRelationalChecklistItemᐳRelationalChecklistItem"}}:::plan + PgClassExpression445{{"PgClassExpression[445∈10]
ᐸ__relation...m_item_id”ᐳ"}}:::plan Constant192 & PgClassExpression445 --> List446 - First404{{"First[404∈12]"}}:::plan - PgSelectRows405[["PgSelectRows[405∈12]"]]:::plan + First404{{"First[404∈10]"}}:::plan + PgSelectRows405[["PgSelectRows[405∈10]"]]:::plan PgSelectRows405 --> First404 PgSelect400 --> PgSelectRows405 - PgSelectSingle406{{"PgSelectSingle[406∈12]
ᐸrelational_topicsᐳ"}}:::plan + PgSelectSingle406{{"PgSelectSingle[406∈10]
ᐸrelational_topicsᐳ"}}:::plan First404 --> PgSelectSingle406 PgSelectSingle406 --> PgClassExpression408 - Lambda410{{"Lambda[410∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda410{{"Lambda[410∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan List409 --> Lambda410 - First414{{"First[414∈12]"}}:::plan - PgSelectRows415[["PgSelectRows[415∈12]"]]:::plan + First414{{"First[414∈10]"}}:::plan + PgSelectRows415[["PgSelectRows[415∈10]"]]:::plan PgSelectRows415 --> First414 PgSelect412 --> PgSelectRows415 - PgSelectSingle416{{"PgSelectSingle[416∈12]
ᐸrelational_postsᐳ"}}:::plan + PgSelectSingle416{{"PgSelectSingle[416∈10]
ᐸrelational_postsᐳ"}}:::plan First414 --> PgSelectSingle416 PgSelectSingle416 --> PgClassExpression418 - Lambda420{{"Lambda[420∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda420{{"Lambda[420∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan List419 --> Lambda420 - First423{{"First[423∈12]"}}:::plan - PgSelectRows424[["PgSelectRows[424∈12]"]]:::plan + First423{{"First[423∈10]"}}:::plan + PgSelectRows424[["PgSelectRows[424∈10]"]]:::plan PgSelectRows424 --> First423 PgSelect421 --> PgSelectRows424 - PgSelectSingle425{{"PgSelectSingle[425∈12]
ᐸrelational_dividersᐳ"}}:::plan + PgSelectSingle425{{"PgSelectSingle[425∈10]
ᐸrelational_dividersᐳ"}}:::plan First423 --> PgSelectSingle425 PgSelectSingle425 --> PgClassExpression427 - Lambda429{{"Lambda[429∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda429{{"Lambda[429∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan List428 --> Lambda429 - First432{{"First[432∈12]"}}:::plan - PgSelectRows433[["PgSelectRows[433∈12]"]]:::plan + First432{{"First[432∈10]"}}:::plan + PgSelectRows433[["PgSelectRows[433∈10]"]]:::plan PgSelectRows433 --> First432 PgSelect430 --> PgSelectRows433 - PgSelectSingle434{{"PgSelectSingle[434∈12]
ᐸrelational_checklistsᐳ"}}:::plan + PgSelectSingle434{{"PgSelectSingle[434∈10]
ᐸrelational_checklistsᐳ"}}:::plan First432 --> PgSelectSingle434 PgSelectSingle434 --> PgClassExpression436 - Lambda438{{"Lambda[438∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda438{{"Lambda[438∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan List437 --> Lambda438 - First441{{"First[441∈12]"}}:::plan - PgSelectRows442[["PgSelectRows[442∈12]"]]:::plan + First441{{"First[441∈10]"}}:::plan + PgSelectRows442[["PgSelectRows[442∈10]"]]:::plan PgSelectRows442 --> First441 PgSelect439 --> PgSelectRows442 - PgSelectSingle443{{"PgSelectSingle[443∈12]
ᐸrelational_checklist_itemsᐳ"}}:::plan + PgSelectSingle443{{"PgSelectSingle[443∈10]
ᐸrelational_checklist_itemsᐳ"}}:::plan First441 --> PgSelectSingle443 PgSelectSingle443 --> PgClassExpression445 - Lambda447{{"Lambda[447∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda447{{"Lambda[447∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan List446 --> Lambda447 - PgSelect484[["PgSelect[484∈13] ➊
ᐸsingle_table_item_relationsᐳ"]]:::plan - Object12 & __Flag483 & Connection454 --> PgSelect484 - PgSelectRows485[["PgSelectRows[485∈13] ➊"]]:::plan - PgSelect484 --> PgSelectRows485 - __Item486[/"__Item[486∈14]
ᐸ485ᐳ"\]:::itemplan - PgSelectRows485 ==> __Item486 - PgSelectSingle487{{"PgSelectSingle[487∈14]
ᐸsingle_table_item_relationsᐳ"}}:::plan - __Item486 --> PgSelectSingle487 - List490{{"List[490∈15]
ᐸ488,489ᐳ"}}:::plan - PgClassExpression489{{"PgClassExpression[489∈15]
ᐸ__single_t...ons__.”id”ᐳ"}}:::plan - Constant488 & PgClassExpression489 --> List490 - PgSelect493[["PgSelect[493∈15]
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression492{{"PgClassExpression[492∈15]
ᐸ__single_t...”child_id”ᐳ"}}:::plan - Object12 & PgClassExpression492 --> PgSelect493 - PgSelect518[["PgSelect[518∈15]
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression517{{"PgClassExpression[517∈15]
ᐸ__single_t...parent_id”ᐳ"}}:::plan - Object12 & PgClassExpression517 --> PgSelect518 - PgSelectSingle487 --> PgClassExpression489 - Lambda491{{"Lambda[491∈15]
ᐸbase64JSONEncodeᐳ"}}:::plan - List490 --> Lambda491 - PgSelectSingle487 --> PgClassExpression492 - First497{{"First[497∈15]"}}:::plan - PgSelectRows498[["PgSelectRows[498∈15]"]]:::plan - PgSelectRows498 --> First497 - PgSelect493 --> PgSelectRows498 - PgSelectSingle499{{"PgSelectSingle[499∈15]
ᐸsingle_table_itemsᐳ"}}:::plan - First497 --> PgSelectSingle499 - PgClassExpression501{{"PgClassExpression[501∈15]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan - PgSelectSingle499 --> PgClassExpression501 - PgClassExpression504{{"PgClassExpression[504∈15]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan - PgSelectSingle499 --> PgClassExpression504 - PgSelectSingle487 --> PgClassExpression517 - First520{{"First[520∈15]"}}:::plan - PgSelectRows521[["PgSelectRows[521∈15]"]]:::plan - PgSelectRows521 --> First520 - PgSelect518 --> PgSelectRows521 - PgSelectSingle522{{"PgSelectSingle[522∈15]
ᐸsingle_table_itemsᐳ"}}:::plan - First520 --> PgSelectSingle522 - PgClassExpression524{{"PgClassExpression[524∈15]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan - PgSelectSingle522 --> PgClassExpression524 - PgClassExpression527{{"PgClassExpression[527∈15]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan - PgSelectSingle522 --> PgClassExpression527 - List502{{"List[502∈16]
ᐸ18,501ᐳ
ᐳSingleTableTopic"}}:::plan - Constant18 & PgClassExpression501 --> List502 - List506{{"List[506∈16]
ᐸ36,501ᐳ
ᐳSingleTablePost"}}:::plan - Constant36 & PgClassExpression501 --> List506 - List509{{"List[509∈16]
ᐸ39,501ᐳ
ᐳSingleTableDivider"}}:::plan - Constant39 & PgClassExpression501 --> List509 - List512{{"List[512∈16]
ᐸ42,501ᐳ
ᐳSingleTableChecklist"}}:::plan - Constant42 & PgClassExpression501 --> List512 - List515{{"List[515∈16]
ᐸ45,501ᐳ
ᐳSingleTableChecklistItem"}}:::plan - Constant45 & PgClassExpression501 --> List515 - Lambda503{{"Lambda[503∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan - List502 --> Lambda503 - Lambda507{{"Lambda[507∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan - List506 --> Lambda507 - Lambda510{{"Lambda[510∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan - List509 --> Lambda510 - Lambda513{{"Lambda[513∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan - List512 --> Lambda513 - Lambda516{{"Lambda[516∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan - List515 --> Lambda516 - List525{{"List[525∈17]
ᐸ18,524ᐳ
ᐳSingleTableTopic"}}:::plan - Constant18 & PgClassExpression524 --> List525 - List529{{"List[529∈17]
ᐸ36,524ᐳ
ᐳSingleTablePost"}}:::plan - Constant36 & PgClassExpression524 --> List529 - List532{{"List[532∈17]
ᐸ39,524ᐳ
ᐳSingleTableDivider"}}:::plan - Constant39 & PgClassExpression524 --> List532 - List535{{"List[535∈17]
ᐸ42,524ᐳ
ᐳSingleTableChecklist"}}:::plan - Constant42 & PgClassExpression524 --> List535 - List538{{"List[538∈17]
ᐸ45,524ᐳ
ᐳSingleTableChecklistItem"}}:::plan - Constant45 & PgClassExpression524 --> List538 - Lambda526{{"Lambda[526∈17]
ᐸbase64JSONEncodeᐳ"}}:::plan - List525 --> Lambda526 - Lambda530{{"Lambda[530∈17]
ᐸbase64JSONEncodeᐳ"}}:::plan - List529 --> Lambda530 - Lambda533{{"Lambda[533∈17]
ᐸbase64JSONEncodeᐳ"}}:::plan - List532 --> Lambda533 - Lambda536{{"Lambda[536∈17]
ᐸbase64JSONEncodeᐳ"}}:::plan - List535 --> Lambda536 - Lambda539{{"Lambda[539∈17]
ᐸbase64JSONEncodeᐳ"}}:::plan - List538 --> Lambda539 - PgSelect576[["PgSelect[576∈18] ➊
ᐸrelational_item_relationsᐳ"]]:::plan - Object12 & __Flag575 & Connection546 --> PgSelect576 - PgSelectRows577[["PgSelectRows[577∈18] ➊"]]:::plan - PgSelect576 --> PgSelectRows577 - __Item578[/"__Item[578∈19]
ᐸ577ᐳ"\]:::itemplan - PgSelectRows577 ==> __Item578 - PgSelectSingle579{{"PgSelectSingle[579∈19]
ᐸrelational_item_relationsᐳ"}}:::plan - __Item578 --> PgSelectSingle579 - List582{{"List[582∈20]
ᐸ580,581ᐳ"}}:::plan - PgClassExpression581{{"PgClassExpression[581∈20]
ᐸ__relation...ons__.”id”ᐳ"}}:::plan - Constant580 & PgClassExpression581 --> List582 - PgSelect585[["PgSelect[585∈20]
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression584{{"PgClassExpression[584∈20]
ᐸ__relation...”child_id”ᐳ"}}:::plan - Object12 & PgClassExpression584 --> PgSelect585 - PgSelect642[["PgSelect[642∈20]
ᐸrelational_itemsᐳ"]]:::plan - PgClassExpression641{{"PgClassExpression[641∈20]
ᐸ__relation...parent_id”ᐳ"}}:::plan - Object12 & PgClassExpression641 --> PgSelect642 - PgSelectSingle579 --> PgClassExpression581 - Lambda583{{"Lambda[583∈20]
ᐸbase64JSONEncodeᐳ"}}:::plan - List582 --> Lambda583 - PgSelectSingle579 --> PgClassExpression584 - First589{{"First[589∈20]"}}:::plan - PgSelectRows590[["PgSelectRows[590∈20]"]]:::plan - PgSelectRows590 --> First589 - PgSelect585 --> PgSelectRows590 - PgSelectSingle591{{"PgSelectSingle[591∈20]
ᐸrelational_itemsᐳ"}}:::plan - First589 --> PgSelectSingle591 - PgClassExpression592{{"PgClassExpression[592∈20]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle591 --> PgClassExpression592 - PgClassExpression604{{"PgClassExpression[604∈20]
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle591 --> PgClassExpression604 - PgSelectSingle579 --> PgClassExpression641 - First644{{"First[644∈20]"}}:::plan - PgSelectRows645[["PgSelectRows[645∈20]"]]:::plan - PgSelectRows645 --> First644 - PgSelect642 --> PgSelectRows645 - PgSelectSingle646{{"PgSelectSingle[646∈20]
ᐸrelational_itemsᐳ"}}:::plan - First644 --> PgSelectSingle646 - PgClassExpression647{{"PgClassExpression[647∈20]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle646 --> PgClassExpression647 - PgClassExpression659{{"PgClassExpression[659∈20]
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle646 --> PgClassExpression659 - PgSelect593[["PgSelect[593∈21]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object12 & PgClassExpression592 --> PgSelect593 - List602{{"List[602∈21]
ᐸ137,601ᐳ
ᐳRelationalTopic"}}:::plan - PgClassExpression601{{"PgClassExpression[601∈21]
ᐸ__relation...c_item_id”ᐳ"}}:::plan - Constant137 & PgClassExpression601 --> List602 - PgSelect605[["PgSelect[605∈21]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object12 & PgClassExpression592 --> PgSelect605 - List612{{"List[612∈21]
ᐸ165,611ᐳ
ᐳRelationalPost"}}:::plan - PgClassExpression611{{"PgClassExpression[611∈21]
ᐸ__relation...t_item_id”ᐳ"}}:::plan - Constant165 & PgClassExpression611 --> List612 - PgSelect614[["PgSelect[614∈21]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object12 & PgClassExpression592 --> PgSelect614 - List621{{"List[621∈21]
ᐸ174,620ᐳ
ᐳRelationalDivider"}}:::plan - PgClassExpression620{{"PgClassExpression[620∈21]
ᐸ__relation...r_item_id”ᐳ"}}:::plan - Constant174 & PgClassExpression620 --> List621 - PgSelect623[["PgSelect[623∈21]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object12 & PgClassExpression592 --> PgSelect623 - List630{{"List[630∈21]
ᐸ183,629ᐳ
ᐳRelationalChecklist"}}:::plan - PgClassExpression629{{"PgClassExpression[629∈21]
ᐸ__relation...t_item_id”ᐳ"}}:::plan - Constant183 & PgClassExpression629 --> List630 - PgSelect632[["PgSelect[632∈21]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object12 & PgClassExpression592 --> PgSelect632 - List639{{"List[639∈21]
ᐸ192,638ᐳ
ᐳRelationalChecklistItem"}}:::plan - PgClassExpression638{{"PgClassExpression[638∈21]
ᐸ__relation...m_item_id”ᐳ"}}:::plan - Constant192 & PgClassExpression638 --> List639 - First597{{"First[597∈21]"}}:::plan - PgSelectRows598[["PgSelectRows[598∈21]"]]:::plan - PgSelectRows598 --> First597 - PgSelect593 --> PgSelectRows598 - PgSelectSingle599{{"PgSelectSingle[599∈21]
ᐸrelational_topicsᐳ"}}:::plan - First597 --> PgSelectSingle599 - PgSelectSingle599 --> PgClassExpression601 - Lambda603{{"Lambda[603∈21]
ᐸbase64JSONEncodeᐳ"}}:::plan - List602 --> Lambda603 - First607{{"First[607∈21]"}}:::plan - PgSelectRows608[["PgSelectRows[608∈21]"]]:::plan - PgSelectRows608 --> First607 - PgSelect605 --> PgSelectRows608 - PgSelectSingle609{{"PgSelectSingle[609∈21]
ᐸrelational_postsᐳ"}}:::plan - First607 --> PgSelectSingle609 - PgSelectSingle609 --> PgClassExpression611 - Lambda613{{"Lambda[613∈21]
ᐸbase64JSONEncodeᐳ"}}:::plan - List612 --> Lambda613 - First616{{"First[616∈21]"}}:::plan - PgSelectRows617[["PgSelectRows[617∈21]"]]:::plan - PgSelectRows617 --> First616 - PgSelect614 --> PgSelectRows617 - PgSelectSingle618{{"PgSelectSingle[618∈21]
ᐸrelational_dividersᐳ"}}:::plan - First616 --> PgSelectSingle618 - PgSelectSingle618 --> PgClassExpression620 - Lambda622{{"Lambda[622∈21]
ᐸbase64JSONEncodeᐳ"}}:::plan - List621 --> Lambda622 - First625{{"First[625∈21]"}}:::plan - PgSelectRows626[["PgSelectRows[626∈21]"]]:::plan - PgSelectRows626 --> First625 - PgSelect623 --> PgSelectRows626 - PgSelectSingle627{{"PgSelectSingle[627∈21]
ᐸrelational_checklistsᐳ"}}:::plan - First625 --> PgSelectSingle627 - PgSelectSingle627 --> PgClassExpression629 - Lambda631{{"Lambda[631∈21]
ᐸbase64JSONEncodeᐳ"}}:::plan - List630 --> Lambda631 - First634{{"First[634∈21]"}}:::plan - PgSelectRows635[["PgSelectRows[635∈21]"]]:::plan - PgSelectRows635 --> First634 - PgSelect632 --> PgSelectRows635 - PgSelectSingle636{{"PgSelectSingle[636∈21]
ᐸrelational_checklist_itemsᐳ"}}:::plan - First634 --> PgSelectSingle636 - PgSelectSingle636 --> PgClassExpression638 - Lambda640{{"Lambda[640∈21]
ᐸbase64JSONEncodeᐳ"}}:::plan - List639 --> Lambda640 - PgSelect648[["PgSelect[648∈22]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object12 & PgClassExpression647 --> PgSelect648 - List657{{"List[657∈22]
ᐸ137,656ᐳ
ᐳRelationalTopic"}}:::plan - PgClassExpression656{{"PgClassExpression[656∈22]
ᐸ__relation...c_item_id”ᐳ"}}:::plan - Constant137 & PgClassExpression656 --> List657 - PgSelect660[["PgSelect[660∈22]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object12 & PgClassExpression647 --> PgSelect660 - List667{{"List[667∈22]
ᐸ165,666ᐳ
ᐳRelationalPost"}}:::plan - PgClassExpression666{{"PgClassExpression[666∈22]
ᐸ__relation...t_item_id”ᐳ"}}:::plan - Constant165 & PgClassExpression666 --> List667 - PgSelect669[["PgSelect[669∈22]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object12 & PgClassExpression647 --> PgSelect669 - List676{{"List[676∈22]
ᐸ174,675ᐳ
ᐳRelationalDivider"}}:::plan - PgClassExpression675{{"PgClassExpression[675∈22]
ᐸ__relation...r_item_id”ᐳ"}}:::plan - Constant174 & PgClassExpression675 --> List676 - PgSelect678[["PgSelect[678∈22]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object12 & PgClassExpression647 --> PgSelect678 - List685{{"List[685∈22]
ᐸ183,684ᐳ
ᐳRelationalChecklist"}}:::plan - PgClassExpression684{{"PgClassExpression[684∈22]
ᐸ__relation...t_item_id”ᐳ"}}:::plan - Constant183 & PgClassExpression684 --> List685 - PgSelect687[["PgSelect[687∈22]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object12 & PgClassExpression647 --> PgSelect687 - List694{{"List[694∈22]
ᐸ192,693ᐳ
ᐳRelationalChecklistItem"}}:::plan - PgClassExpression693{{"PgClassExpression[693∈22]
ᐸ__relation...m_item_id”ᐳ"}}:::plan - Constant192 & PgClassExpression693 --> List694 - First652{{"First[652∈22]"}}:::plan - PgSelectRows653[["PgSelectRows[653∈22]"]]:::plan - PgSelectRows653 --> First652 - PgSelect648 --> PgSelectRows653 - PgSelectSingle654{{"PgSelectSingle[654∈22]
ᐸrelational_topicsᐳ"}}:::plan - First652 --> PgSelectSingle654 - PgSelectSingle654 --> PgClassExpression656 - Lambda658{{"Lambda[658∈22]
ᐸbase64JSONEncodeᐳ"}}:::plan - List657 --> Lambda658 - First662{{"First[662∈22]"}}:::plan - PgSelectRows663[["PgSelectRows[663∈22]"]]:::plan - PgSelectRows663 --> First662 - PgSelect660 --> PgSelectRows663 - PgSelectSingle664{{"PgSelectSingle[664∈22]
ᐸrelational_postsᐳ"}}:::plan - First662 --> PgSelectSingle664 - PgSelectSingle664 --> PgClassExpression666 - Lambda668{{"Lambda[668∈22]
ᐸbase64JSONEncodeᐳ"}}:::plan - List667 --> Lambda668 - First671{{"First[671∈22]"}}:::plan - PgSelectRows672[["PgSelectRows[672∈22]"]]:::plan - PgSelectRows672 --> First671 - PgSelect669 --> PgSelectRows672 - PgSelectSingle673{{"PgSelectSingle[673∈22]
ᐸrelational_dividersᐳ"}}:::plan - First671 --> PgSelectSingle673 - PgSelectSingle673 --> PgClassExpression675 - Lambda677{{"Lambda[677∈22]
ᐸbase64JSONEncodeᐳ"}}:::plan - List676 --> Lambda677 - First680{{"First[680∈22]"}}:::plan - PgSelectRows681[["PgSelectRows[681∈22]"]]:::plan - PgSelectRows681 --> First680 - PgSelect678 --> PgSelectRows681 - PgSelectSingle682{{"PgSelectSingle[682∈22]
ᐸrelational_checklistsᐳ"}}:::plan - First680 --> PgSelectSingle682 - PgSelectSingle682 --> PgClassExpression684 - Lambda686{{"Lambda[686∈22]
ᐸbase64JSONEncodeᐳ"}}:::plan - List685 --> Lambda686 - First689{{"First[689∈22]"}}:::plan - PgSelectRows690[["PgSelectRows[690∈22]"]]:::plan - PgSelectRows690 --> First689 - PgSelect687 --> PgSelectRows690 - PgSelectSingle691{{"PgSelectSingle[691∈22]
ᐸrelational_checklist_itemsᐳ"}}:::plan - First689 --> PgSelectSingle691 - PgSelectSingle691 --> PgClassExpression693 - Lambda695{{"Lambda[695∈22]
ᐸbase64JSONEncodeᐳ"}}:::plan - List694 --> Lambda695 + List462{{"List[462∈11]
ᐸ460,461ᐳ"}}:::plan + PgClassExpression461{{"PgClassExpression[461∈11]
ᐸ__single_t...ons__.”id”ᐳ"}}:::plan + Constant460 & PgClassExpression461 --> List462 + PgSelect465[["PgSelect[465∈11]
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression464{{"PgClassExpression[464∈11]
ᐸ__single_t...”child_id”ᐳ"}}:::plan + Object11 & PgClassExpression464 --> PgSelect465 + PgSelect490[["PgSelect[490∈11]
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression489{{"PgClassExpression[489∈11]
ᐸ__single_t...parent_id”ᐳ"}}:::plan + Object11 & PgClassExpression489 --> PgSelect490 + __Item458[/"__Item[458∈11]
ᐸ457ᐳ"\]:::itemplan + PgSelectRows457 ==> __Item458 + PgSelectSingle459{{"PgSelectSingle[459∈11]
ᐸsingle_table_item_relationsᐳ"}}:::plan + __Item458 --> PgSelectSingle459 + PgSelectSingle459 --> PgClassExpression461 + Lambda463{{"Lambda[463∈11]
ᐸbase64JSONEncodeᐳ"}}:::plan + List462 --> Lambda463 + PgSelectSingle459 --> PgClassExpression464 + First469{{"First[469∈11]"}}:::plan + PgSelectRows470[["PgSelectRows[470∈11]"]]:::plan + PgSelectRows470 --> First469 + PgSelect465 --> PgSelectRows470 + PgSelectSingle471{{"PgSelectSingle[471∈11]
ᐸsingle_table_itemsᐳ"}}:::plan + First469 --> PgSelectSingle471 + PgClassExpression473{{"PgClassExpression[473∈11]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgSelectSingle471 --> PgClassExpression473 + PgClassExpression476{{"PgClassExpression[476∈11]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgSelectSingle471 --> PgClassExpression476 + PgSelectSingle459 --> PgClassExpression489 + First492{{"First[492∈11]"}}:::plan + PgSelectRows493[["PgSelectRows[493∈11]"]]:::plan + PgSelectRows493 --> First492 + PgSelect490 --> PgSelectRows493 + PgSelectSingle494{{"PgSelectSingle[494∈11]
ᐸsingle_table_itemsᐳ"}}:::plan + First492 --> PgSelectSingle494 + PgClassExpression496{{"PgClassExpression[496∈11]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgSelectSingle494 --> PgClassExpression496 + PgClassExpression499{{"PgClassExpression[499∈11]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgSelectSingle494 --> PgClassExpression499 + List474{{"List[474∈12]
ᐸ18,473ᐳ
ᐳSingleTableTopic"}}:::plan + Constant18 & PgClassExpression473 --> List474 + List478{{"List[478∈12]
ᐸ36,473ᐳ
ᐳSingleTablePost"}}:::plan + Constant36 & PgClassExpression473 --> List478 + List481{{"List[481∈12]
ᐸ39,473ᐳ
ᐳSingleTableDivider"}}:::plan + Constant39 & PgClassExpression473 --> List481 + List484{{"List[484∈12]
ᐸ42,473ᐳ
ᐳSingleTableChecklist"}}:::plan + Constant42 & PgClassExpression473 --> List484 + List487{{"List[487∈12]
ᐸ45,473ᐳ
ᐳSingleTableChecklistItem"}}:::plan + Constant45 & PgClassExpression473 --> List487 + Lambda475{{"Lambda[475∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan + List474 --> Lambda475 + Lambda479{{"Lambda[479∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan + List478 --> Lambda479 + Lambda482{{"Lambda[482∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan + List481 --> Lambda482 + Lambda485{{"Lambda[485∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan + List484 --> Lambda485 + Lambda488{{"Lambda[488∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan + List487 --> Lambda488 + List497{{"List[497∈13]
ᐸ18,496ᐳ
ᐳSingleTableTopic"}}:::plan + Constant18 & PgClassExpression496 --> List497 + List501{{"List[501∈13]
ᐸ36,496ᐳ
ᐳSingleTablePost"}}:::plan + Constant36 & PgClassExpression496 --> List501 + List504{{"List[504∈13]
ᐸ39,496ᐳ
ᐳSingleTableDivider"}}:::plan + Constant39 & PgClassExpression496 --> List504 + List507{{"List[507∈13]
ᐸ42,496ᐳ
ᐳSingleTableChecklist"}}:::plan + Constant42 & PgClassExpression496 --> List507 + List510{{"List[510∈13]
ᐸ45,496ᐳ
ᐳSingleTableChecklistItem"}}:::plan + Constant45 & PgClassExpression496 --> List510 + Lambda498{{"Lambda[498∈13]
ᐸbase64JSONEncodeᐳ"}}:::plan + List497 --> Lambda498 + Lambda502{{"Lambda[502∈13]
ᐸbase64JSONEncodeᐳ"}}:::plan + List501 --> Lambda502 + Lambda505{{"Lambda[505∈13]
ᐸbase64JSONEncodeᐳ"}}:::plan + List504 --> Lambda505 + Lambda508{{"Lambda[508∈13]
ᐸbase64JSONEncodeᐳ"}}:::plan + List507 --> Lambda508 + Lambda511{{"Lambda[511∈13]
ᐸbase64JSONEncodeᐳ"}}:::plan + List510 --> Lambda511 + List526{{"List[526∈14]
ᐸ524,525ᐳ"}}:::plan + PgClassExpression525{{"PgClassExpression[525∈14]
ᐸ__relation...ons__.”id”ᐳ"}}:::plan + Constant524 & PgClassExpression525 --> List526 + PgSelect529[["PgSelect[529∈14]
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression528{{"PgClassExpression[528∈14]
ᐸ__relation...”child_id”ᐳ"}}:::plan + Object11 & PgClassExpression528 --> PgSelect529 + PgSelect586[["PgSelect[586∈14]
ᐸrelational_itemsᐳ"]]:::plan + PgClassExpression585{{"PgClassExpression[585∈14]
ᐸ__relation...parent_id”ᐳ"}}:::plan + Object11 & PgClassExpression585 --> PgSelect586 + __Item522[/"__Item[522∈14]
ᐸ521ᐳ"\]:::itemplan + PgSelectRows521 ==> __Item522 + PgSelectSingle523{{"PgSelectSingle[523∈14]
ᐸrelational_item_relationsᐳ"}}:::plan + __Item522 --> PgSelectSingle523 + PgSelectSingle523 --> PgClassExpression525 + Lambda527{{"Lambda[527∈14]
ᐸbase64JSONEncodeᐳ"}}:::plan + List526 --> Lambda527 + PgSelectSingle523 --> PgClassExpression528 + First533{{"First[533∈14]"}}:::plan + PgSelectRows534[["PgSelectRows[534∈14]"]]:::plan + PgSelectRows534 --> First533 + PgSelect529 --> PgSelectRows534 + PgSelectSingle535{{"PgSelectSingle[535∈14]
ᐸrelational_itemsᐳ"}}:::plan + First533 --> PgSelectSingle535 + PgClassExpression536{{"PgClassExpression[536∈14]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgSelectSingle535 --> PgClassExpression536 + PgClassExpression548{{"PgClassExpression[548∈14]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle535 --> PgClassExpression548 + PgSelectSingle523 --> PgClassExpression585 + First588{{"First[588∈14]"}}:::plan + PgSelectRows589[["PgSelectRows[589∈14]"]]:::plan + PgSelectRows589 --> First588 + PgSelect586 --> PgSelectRows589 + PgSelectSingle590{{"PgSelectSingle[590∈14]
ᐸrelational_itemsᐳ"}}:::plan + First588 --> PgSelectSingle590 + PgClassExpression591{{"PgClassExpression[591∈14]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgSelectSingle590 --> PgClassExpression591 + PgClassExpression603{{"PgClassExpression[603∈14]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle590 --> PgClassExpression603 + PgSelect537[["PgSelect[537∈15]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + Object11 & PgClassExpression536 --> PgSelect537 + List546{{"List[546∈15]
ᐸ137,545ᐳ
ᐳRelationalTopic"}}:::plan + PgClassExpression545{{"PgClassExpression[545∈15]
ᐸ__relation...c_item_id”ᐳ"}}:::plan + Constant137 & PgClassExpression545 --> List546 + PgSelect549[["PgSelect[549∈15]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression536 --> PgSelect549 + List556{{"List[556∈15]
ᐸ165,555ᐳ
ᐳRelationalPost"}}:::plan + PgClassExpression555{{"PgClassExpression[555∈15]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + Constant165 & PgClassExpression555 --> List556 + PgSelect558[["PgSelect[558∈15]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression536 --> PgSelect558 + List565{{"List[565∈15]
ᐸ174,564ᐳ
ᐳRelationalDivider"}}:::plan + PgClassExpression564{{"PgClassExpression[564∈15]
ᐸ__relation...r_item_id”ᐳ"}}:::plan + Constant174 & PgClassExpression564 --> List565 + PgSelect567[["PgSelect[567∈15]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression536 --> PgSelect567 + List574{{"List[574∈15]
ᐸ183,573ᐳ
ᐳRelationalChecklist"}}:::plan + PgClassExpression573{{"PgClassExpression[573∈15]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + Constant183 & PgClassExpression573 --> List574 + PgSelect576[["PgSelect[576∈15]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression536 --> PgSelect576 + List583{{"List[583∈15]
ᐸ192,582ᐳ
ᐳRelationalChecklistItem"}}:::plan + PgClassExpression582{{"PgClassExpression[582∈15]
ᐸ__relation...m_item_id”ᐳ"}}:::plan + Constant192 & PgClassExpression582 --> List583 + First541{{"First[541∈15]"}}:::plan + PgSelectRows542[["PgSelectRows[542∈15]"]]:::plan + PgSelectRows542 --> First541 + PgSelect537 --> PgSelectRows542 + PgSelectSingle543{{"PgSelectSingle[543∈15]
ᐸrelational_topicsᐳ"}}:::plan + First541 --> PgSelectSingle543 + PgSelectSingle543 --> PgClassExpression545 + Lambda547{{"Lambda[547∈15]
ᐸbase64JSONEncodeᐳ"}}:::plan + List546 --> Lambda547 + First551{{"First[551∈15]"}}:::plan + PgSelectRows552[["PgSelectRows[552∈15]"]]:::plan + PgSelectRows552 --> First551 + PgSelect549 --> PgSelectRows552 + PgSelectSingle553{{"PgSelectSingle[553∈15]
ᐸrelational_postsᐳ"}}:::plan + First551 --> PgSelectSingle553 + PgSelectSingle553 --> PgClassExpression555 + Lambda557{{"Lambda[557∈15]
ᐸbase64JSONEncodeᐳ"}}:::plan + List556 --> Lambda557 + First560{{"First[560∈15]"}}:::plan + PgSelectRows561[["PgSelectRows[561∈15]"]]:::plan + PgSelectRows561 --> First560 + PgSelect558 --> PgSelectRows561 + PgSelectSingle562{{"PgSelectSingle[562∈15]
ᐸrelational_dividersᐳ"}}:::plan + First560 --> PgSelectSingle562 + PgSelectSingle562 --> PgClassExpression564 + Lambda566{{"Lambda[566∈15]
ᐸbase64JSONEncodeᐳ"}}:::plan + List565 --> Lambda566 + First569{{"First[569∈15]"}}:::plan + PgSelectRows570[["PgSelectRows[570∈15]"]]:::plan + PgSelectRows570 --> First569 + PgSelect567 --> PgSelectRows570 + PgSelectSingle571{{"PgSelectSingle[571∈15]
ᐸrelational_checklistsᐳ"}}:::plan + First569 --> PgSelectSingle571 + PgSelectSingle571 --> PgClassExpression573 + Lambda575{{"Lambda[575∈15]
ᐸbase64JSONEncodeᐳ"}}:::plan + List574 --> Lambda575 + First578{{"First[578∈15]"}}:::plan + PgSelectRows579[["PgSelectRows[579∈15]"]]:::plan + PgSelectRows579 --> First578 + PgSelect576 --> PgSelectRows579 + PgSelectSingle580{{"PgSelectSingle[580∈15]
ᐸrelational_checklist_itemsᐳ"}}:::plan + First578 --> PgSelectSingle580 + PgSelectSingle580 --> PgClassExpression582 + Lambda584{{"Lambda[584∈15]
ᐸbase64JSONEncodeᐳ"}}:::plan + List583 --> Lambda584 + PgSelect592[["PgSelect[592∈16]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + Object11 & PgClassExpression591 --> PgSelect592 + List601{{"List[601∈16]
ᐸ137,600ᐳ
ᐳRelationalTopic"}}:::plan + PgClassExpression600{{"PgClassExpression[600∈16]
ᐸ__relation...c_item_id”ᐳ"}}:::plan + Constant137 & PgClassExpression600 --> List601 + PgSelect604[["PgSelect[604∈16]
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 & PgClassExpression591 --> PgSelect604 + List611{{"List[611∈16]
ᐸ165,610ᐳ
ᐳRelationalPost"}}:::plan + PgClassExpression610{{"PgClassExpression[610∈16]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + Constant165 & PgClassExpression610 --> List611 + PgSelect613[["PgSelect[613∈16]
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 & PgClassExpression591 --> PgSelect613 + List620{{"List[620∈16]
ᐸ174,619ᐳ
ᐳRelationalDivider"}}:::plan + PgClassExpression619{{"PgClassExpression[619∈16]
ᐸ__relation...r_item_id”ᐳ"}}:::plan + Constant174 & PgClassExpression619 --> List620 + PgSelect622[["PgSelect[622∈16]
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 & PgClassExpression591 --> PgSelect622 + List629{{"List[629∈16]
ᐸ183,628ᐳ
ᐳRelationalChecklist"}}:::plan + PgClassExpression628{{"PgClassExpression[628∈16]
ᐸ__relation...t_item_id”ᐳ"}}:::plan + Constant183 & PgClassExpression628 --> List629 + PgSelect631[["PgSelect[631∈16]
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 & PgClassExpression591 --> PgSelect631 + List638{{"List[638∈16]
ᐸ192,637ᐳ
ᐳRelationalChecklistItem"}}:::plan + PgClassExpression637{{"PgClassExpression[637∈16]
ᐸ__relation...m_item_id”ᐳ"}}:::plan + Constant192 & PgClassExpression637 --> List638 + First596{{"First[596∈16]"}}:::plan + PgSelectRows597[["PgSelectRows[597∈16]"]]:::plan + PgSelectRows597 --> First596 + PgSelect592 --> PgSelectRows597 + PgSelectSingle598{{"PgSelectSingle[598∈16]
ᐸrelational_topicsᐳ"}}:::plan + First596 --> PgSelectSingle598 + PgSelectSingle598 --> PgClassExpression600 + Lambda602{{"Lambda[602∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan + List601 --> Lambda602 + First606{{"First[606∈16]"}}:::plan + PgSelectRows607[["PgSelectRows[607∈16]"]]:::plan + PgSelectRows607 --> First606 + PgSelect604 --> PgSelectRows607 + PgSelectSingle608{{"PgSelectSingle[608∈16]
ᐸrelational_postsᐳ"}}:::plan + First606 --> PgSelectSingle608 + PgSelectSingle608 --> PgClassExpression610 + Lambda612{{"Lambda[612∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan + List611 --> Lambda612 + First615{{"First[615∈16]"}}:::plan + PgSelectRows616[["PgSelectRows[616∈16]"]]:::plan + PgSelectRows616 --> First615 + PgSelect613 --> PgSelectRows616 + PgSelectSingle617{{"PgSelectSingle[617∈16]
ᐸrelational_dividersᐳ"}}:::plan + First615 --> PgSelectSingle617 + PgSelectSingle617 --> PgClassExpression619 + Lambda621{{"Lambda[621∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan + List620 --> Lambda621 + First624{{"First[624∈16]"}}:::plan + PgSelectRows625[["PgSelectRows[625∈16]"]]:::plan + PgSelectRows625 --> First624 + PgSelect622 --> PgSelectRows625 + PgSelectSingle626{{"PgSelectSingle[626∈16]
ᐸrelational_checklistsᐳ"}}:::plan + First624 --> PgSelectSingle626 + PgSelectSingle626 --> PgClassExpression628 + Lambda630{{"Lambda[630∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan + List629 --> Lambda630 + First633{{"First[633∈16]"}}:::plan + PgSelectRows634[["PgSelectRows[634∈16]"]]:::plan + PgSelectRows634 --> First633 + PgSelect631 --> PgSelectRows634 + PgSelectSingle635{{"PgSelectSingle[635∈16]
ᐸrelational_checklist_itemsᐳ"}}:::plan + First633 --> PgSelectSingle635 + PgSelectSingle635 --> PgClassExpression637 + Lambda639{{"Lambda[639∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan + List638 --> Lambda639 %% define steps subgraph "Buckets for queries/polymorphic/relay.polyroot_with_related_poly" - Bucket0("Bucket 0 (root)

1:
ᐳ: 10, 11, 13, 18, 36, 39, 42, 45, 124, 137, 165, 174, 183, 192, 454, 488, 546, 580, 697, 699, 12, 455, 456, 547, 548, 696, 698, 461, 553
2: 460, 464, 468, 472, 476, 552, 556, 560, 564, 568
ᐳ: 462, 466, 470, 474, 478, 479, 480, 481, 554, 558, 562, 566, 570, 571, 572, 573
3: __Flag[482], __Flag[574]
4: __Flag[483], __Flag[575]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 18, 36, 39, 42, 45, 137, 165, 174, 183, 192, 460, 524, 640, 641, 11, 12, 123, 449, 453, 455, 513, 517, 519
2: 14, 125, 456, 520
3: 15, 126, 457, 521"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Constant18,Constant36,Constant39,Constant42,Constant45,Connection124,Constant137,Constant165,Constant174,Constant183,Constant192,Connection454,Condition455,Lambda456,Lambda460,List461,Object462,Lambda464,Object466,Lambda468,Object470,Lambda472,Object474,Lambda476,Object478,List479,Lambda480,Access481,__Flag482,__Flag483,Constant488,Connection546,Condition547,Lambda548,Lambda552,List553,Object554,Lambda556,Object558,Lambda560,Object562,Lambda564,Object566,Lambda568,Object570,List571,Lambda572,Access573,__Flag574,__Flag575,Constant580,Access696,Constant697,Access698,Constant699 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 18, 36, 39, 42, 45

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Constant18,Constant36,Constant39,Constant42,Constant45,Connection123,PgSelect125,PgSelectRows126,Constant137,Constant165,Constant174,Constant183,Constant192,__InputObject449,Connection453,ApplyInput455,PgSelect456,PgSelectRows457,Constant460,__InputObject513,Connection517,ApplyInput519,PgSelect520,PgSelectRows521,Constant524,Constant640,Constant641 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 18, 11, 36, 39, 42, 45

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 18, 12, 36, 39, 42, 45

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression19,PgClassExpression22,PgClassExpression23 bucket1 + Bucket2("Bucket 2 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 18, 19, 11, 23, 36, 39, 42, 45, 17, 22
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[24]
ᐳ: 20, 49, 67, 85, 103, 21, 50, 68, 86, 104
2: PgSelectRows[29]
ᐳ: 28, 30, 32, 35"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17,PgClassExpression19,PgClassExpression22,PgClassExpression23 bucket2 - Bucket3("Bucket 3 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 18, 19, 12, 23, 36, 39, 42, 45, 17, 22
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[24]
ᐳ: 20, 49, 67, 85, 103, 21, 50, 68, 86, 104
2: PgSelectRows[29]
ᐳ: 28, 30, 32, 35"):::bucket + class Bucket2,List20,Lambda21,PgSelect24,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression32,PgClassExpression35,List49,Lambda50,List67,Lambda68,List85,Lambda86,List103,Lambda104 bucket2 + Bucket3("Bucket 3 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 18, 32, 36, 39, 42, 45, 30, 35
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,List20,Lambda21,PgSelect24,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression32,PgClassExpression35,List49,Lambda50,List67,Lambda68,List85,Lambda86,List103,Lambda104 bucket3 - Bucket4("Bucket 4 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 18, 32, 36, 39, 42, 45, 30, 35
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"):::bucket + class Bucket3,List33,Lambda34,List37,Lambda38,List40,Lambda41,List43,Lambda44,List46,Lambda47 bucket3 + Bucket4("Bucket 4 (listItem)
Deps: 11, 137, 165, 174, 183, 192

ROOT __Item{4}ᐸ126ᐳ[127]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,List33,Lambda34,List37,Lambda38,List40,Lambda41,List43,Lambda44,List46,Lambda47 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 12, 124, 137, 165, 174, 183, 192

ROOT Connectionᐸ122ᐳ[124]
1: PgSelect[125]
2: PgSelectRows[126]"):::bucket + class Bucket4,__Item127,PgSelectSingle128,PgClassExpression129,PgClassExpression141 bucket4 + Bucket5("Bucket 5 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 129, 137, 165, 174, 183, 192, 128, 141
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 130, 196, 259, 322, 385
2: 135, 199, 262, 325, 388
ᐳ: 134, 136, 138, 139, 140, 198, 200, 202, 203, 204, 261, 263, 265, 266, 267, 324, 326, 328, 329, 330, 387, 389, 391, 392, 393
3: 142, 205, 268, 331, 394
4: 145, 208, 271, 334, 397
ᐳ: 144, 146, 147, 159, 207, 209, 210, 222, 270, 272, 273, 285, 333, 335, 336, 348, 396, 398, 399, 411"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect125,PgSelectRows126 bucket5 - Bucket6("Bucket 6 (listItem)
Deps: 12, 137, 165, 174, 183, 192

ROOT __Item{6}ᐸ126ᐳ[127]"):::bucket + class Bucket5,PgSelect130,First134,PgSelectRows135,PgSelectSingle136,PgClassExpression138,List139,Lambda140,PgSelect142,First144,PgSelectRows145,PgSelectSingle146,PgClassExpression147,PgClassExpression159,PgSelect196,First198,PgSelectRows199,PgSelectSingle200,PgClassExpression202,List203,Lambda204,PgSelect205,First207,PgSelectRows208,PgSelectSingle209,PgClassExpression210,PgClassExpression222,PgSelect259,First261,PgSelectRows262,PgSelectSingle263,PgClassExpression265,List266,Lambda267,PgSelect268,First270,PgSelectRows271,PgSelectSingle272,PgClassExpression273,PgClassExpression285,PgSelect322,First324,PgSelectRows325,PgSelectSingle326,PgClassExpression328,List329,Lambda330,PgSelect331,First333,PgSelectRows334,PgSelectSingle335,PgClassExpression336,PgClassExpression348,PgSelect385,First387,PgSelectRows388,PgSelectSingle389,PgClassExpression391,List392,Lambda393,PgSelect394,First396,PgSelectRows397,PgSelectSingle398,PgClassExpression399,PgClassExpression411 bucket5 + Bucket6("Bucket 6 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 147, 137, 165, 174, 183, 192, 146, 159
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem

1: 148, 160, 169, 178, 187
2: 153, 163, 172, 181, 190
ᐳ: 152, 154, 156, 157, 158, 162, 164, 166, 167, 168, 171, 173, 175, 176, 177, 180, 182, 184, 185, 186, 189, 191, 193, 194, 195"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,__Item127,PgSelectSingle128,PgClassExpression129,PgClassExpression141 bucket6 - Bucket7("Bucket 7 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 12, 129, 137, 165, 174, 183, 192, 128, 141
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 130, 196, 259, 322, 385
2: 135, 199, 262, 325, 388
ᐳ: 134, 136, 138, 139, 140, 198, 200, 202, 203, 204, 261, 263, 265, 266, 267, 324, 326, 328, 329, 330, 387, 389, 391, 392, 393
3: 142, 205, 268, 331, 394
4: 145, 208, 271, 334, 397
ᐳ: 144, 146, 147, 159, 207, 209, 210, 222, 270, 272, 273, 285, 333, 335, 336, 348, 396, 398, 399, 411"):::bucket + class Bucket6,PgSelect148,First152,PgSelectRows153,PgSelectSingle154,PgClassExpression156,List157,Lambda158,PgSelect160,First162,PgSelectRows163,PgSelectSingle164,PgClassExpression166,List167,Lambda168,PgSelect169,First171,PgSelectRows172,PgSelectSingle173,PgClassExpression175,List176,Lambda177,PgSelect178,First180,PgSelectRows181,PgSelectSingle182,PgClassExpression184,List185,Lambda186,PgSelect187,First189,PgSelectRows190,PgSelectSingle191,PgClassExpression193,List194,Lambda195 bucket6 + Bucket7("Bucket 7 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 210, 137, 165, 174, 183, 192, 209, 222
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem

1: 211, 223, 232, 241, 250
2: 216, 226, 235, 244, 253
ᐳ: 215, 217, 219, 220, 221, 225, 227, 229, 230, 231, 234, 236, 238, 239, 240, 243, 245, 247, 248, 249, 252, 254, 256, 257, 258"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgSelect130,First134,PgSelectRows135,PgSelectSingle136,PgClassExpression138,List139,Lambda140,PgSelect142,First144,PgSelectRows145,PgSelectSingle146,PgClassExpression147,PgClassExpression159,PgSelect196,First198,PgSelectRows199,PgSelectSingle200,PgClassExpression202,List203,Lambda204,PgSelect205,First207,PgSelectRows208,PgSelectSingle209,PgClassExpression210,PgClassExpression222,PgSelect259,First261,PgSelectRows262,PgSelectSingle263,PgClassExpression265,List266,Lambda267,PgSelect268,First270,PgSelectRows271,PgSelectSingle272,PgClassExpression273,PgClassExpression285,PgSelect322,First324,PgSelectRows325,PgSelectSingle326,PgClassExpression328,List329,Lambda330,PgSelect331,First333,PgSelectRows334,PgSelectSingle335,PgClassExpression336,PgClassExpression348,PgSelect385,First387,PgSelectRows388,PgSelectSingle389,PgClassExpression391,List392,Lambda393,PgSelect394,First396,PgSelectRows397,PgSelectSingle398,PgClassExpression399,PgClassExpression411 bucket7 - Bucket8("Bucket 8 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 12, 147, 137, 165, 174, 183, 192, 146, 159
ᐳRelationalTopicᐳRelationalTopic
ᐳRelationalTopicᐳRelationalPost
ᐳRelationalTopicᐳRelationalDivider
ᐳRelationalTopicᐳRelationalChecklist
ᐳRelationalTopicᐳRelationalChecklistItem

1: 148, 160, 169, 178, 187
2: 153, 163, 172, 181, 190
ᐳ: 152, 154, 156, 157, 158, 162, 164, 166, 167, 168, 171, 173, 175, 176, 177, 180, 182, 184, 185, 186, 189, 191, 193, 194, 195"):::bucket + class Bucket7,PgSelect211,First215,PgSelectRows216,PgSelectSingle217,PgClassExpression219,List220,Lambda221,PgSelect223,First225,PgSelectRows226,PgSelectSingle227,PgClassExpression229,List230,Lambda231,PgSelect232,First234,PgSelectRows235,PgSelectSingle236,PgClassExpression238,List239,Lambda240,PgSelect241,First243,PgSelectRows244,PgSelectSingle245,PgClassExpression247,List248,Lambda249,PgSelect250,First252,PgSelectRows253,PgSelectSingle254,PgClassExpression256,List257,Lambda258 bucket7 + Bucket8("Bucket 8 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 273, 137, 165, 174, 183, 192, 272, 285
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem

1: 274, 286, 295, 304, 313
2: 279, 289, 298, 307, 316
ᐳ: 278, 280, 282, 283, 284, 288, 290, 292, 293, 294, 297, 299, 301, 302, 303, 306, 308, 310, 311, 312, 315, 317, 319, 320, 321"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,PgSelect148,First152,PgSelectRows153,PgSelectSingle154,PgClassExpression156,List157,Lambda158,PgSelect160,First162,PgSelectRows163,PgSelectSingle164,PgClassExpression166,List167,Lambda168,PgSelect169,First171,PgSelectRows172,PgSelectSingle173,PgClassExpression175,List176,Lambda177,PgSelect178,First180,PgSelectRows181,PgSelectSingle182,PgClassExpression184,List185,Lambda186,PgSelect187,First189,PgSelectRows190,PgSelectSingle191,PgClassExpression193,List194,Lambda195 bucket8 - Bucket9("Bucket 9 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 12, 210, 137, 165, 174, 183, 192, 209, 222
ᐳRelationalPostᐳRelationalTopic
ᐳRelationalPostᐳRelationalPost
ᐳRelationalPostᐳRelationalDivider
ᐳRelationalPostᐳRelationalChecklist
ᐳRelationalPostᐳRelationalChecklistItem

1: 211, 223, 232, 241, 250
2: 216, 226, 235, 244, 253
ᐳ: 215, 217, 219, 220, 221, 225, 227, 229, 230, 231, 234, 236, 238, 239, 240, 243, 245, 247, 248, 249, 252, 254, 256, 257, 258"):::bucket + class Bucket8,PgSelect274,First278,PgSelectRows279,PgSelectSingle280,PgClassExpression282,List283,Lambda284,PgSelect286,First288,PgSelectRows289,PgSelectSingle290,PgClassExpression292,List293,Lambda294,PgSelect295,First297,PgSelectRows298,PgSelectSingle299,PgClassExpression301,List302,Lambda303,PgSelect304,First306,PgSelectRows307,PgSelectSingle308,PgClassExpression310,List311,Lambda312,PgSelect313,First315,PgSelectRows316,PgSelectSingle317,PgClassExpression319,List320,Lambda321 bucket8 + Bucket9("Bucket 9 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 336, 137, 165, 174, 183, 192, 335, 348
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem

1: 337, 349, 358, 367, 376
2: 342, 352, 361, 370, 379
ᐳ: 341, 343, 345, 346, 347, 351, 353, 355, 356, 357, 360, 362, 364, 365, 366, 369, 371, 373, 374, 375, 378, 380, 382, 383, 384"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,PgSelect211,First215,PgSelectRows216,PgSelectSingle217,PgClassExpression219,List220,Lambda221,PgSelect223,First225,PgSelectRows226,PgSelectSingle227,PgClassExpression229,List230,Lambda231,PgSelect232,First234,PgSelectRows235,PgSelectSingle236,PgClassExpression238,List239,Lambda240,PgSelect241,First243,PgSelectRows244,PgSelectSingle245,PgClassExpression247,List248,Lambda249,PgSelect250,First252,PgSelectRows253,PgSelectSingle254,PgClassExpression256,List257,Lambda258 bucket9 - Bucket10("Bucket 10 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 12, 273, 137, 165, 174, 183, 192, 272, 285
ᐳRelationalDividerᐳRelationalTopic
ᐳRelationalDividerᐳRelationalPost
ᐳRelationalDividerᐳRelationalDivider
ᐳRelationalDividerᐳRelationalChecklist
ᐳRelationalDividerᐳRelationalChecklistItem

1: 274, 286, 295, 304, 313
2: 279, 289, 298, 307, 316
ᐳ: 278, 280, 282, 283, 284, 288, 290, 292, 293, 294, 297, 299, 301, 302, 303, 306, 308, 310, 311, 312, 315, 317, 319, 320, 321"):::bucket + class Bucket9,PgSelect337,First341,PgSelectRows342,PgSelectSingle343,PgClassExpression345,List346,Lambda347,PgSelect349,First351,PgSelectRows352,PgSelectSingle353,PgClassExpression355,List356,Lambda357,PgSelect358,First360,PgSelectRows361,PgSelectSingle362,PgClassExpression364,List365,Lambda366,PgSelect367,First369,PgSelectRows370,PgSelectSingle371,PgClassExpression373,List374,Lambda375,PgSelect376,First378,PgSelectRows379,PgSelectSingle380,PgClassExpression382,List383,Lambda384 bucket9 + Bucket10("Bucket 10 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 399, 137, 165, 174, 183, 192, 398, 411
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 400, 412, 421, 430, 439
2: 405, 415, 424, 433, 442
ᐳ: 404, 406, 408, 409, 410, 414, 416, 418, 419, 420, 423, 425, 427, 428, 429, 432, 434, 436, 437, 438, 441, 443, 445, 446, 447"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,PgSelect274,First278,PgSelectRows279,PgSelectSingle280,PgClassExpression282,List283,Lambda284,PgSelect286,First288,PgSelectRows289,PgSelectSingle290,PgClassExpression292,List293,Lambda294,PgSelect295,First297,PgSelectRows298,PgSelectSingle299,PgClassExpression301,List302,Lambda303,PgSelect304,First306,PgSelectRows307,PgSelectSingle308,PgClassExpression310,List311,Lambda312,PgSelect313,First315,PgSelectRows316,PgSelectSingle317,PgClassExpression319,List320,Lambda321 bucket10 - Bucket11("Bucket 11 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 12, 336, 137, 165, 174, 183, 192, 335, 348
ᐳRelationalChecklistᐳRelationalTopic
ᐳRelationalChecklistᐳRelationalPost
ᐳRelationalChecklistᐳRelationalDivider
ᐳRelationalChecklistᐳRelationalChecklist
ᐳRelationalChecklistᐳRelationalChecklistItem

1: 337, 349, 358, 367, 376
2: 342, 352, 361, 370, 379
ᐳ: 341, 343, 345, 346, 347, 351, 353, 355, 356, 357, 360, 362, 364, 365, 366, 369, 371, 373, 374, 375, 378, 380, 382, 383, 384"):::bucket + class Bucket10,PgSelect400,First404,PgSelectRows405,PgSelectSingle406,PgClassExpression408,List409,Lambda410,PgSelect412,First414,PgSelectRows415,PgSelectSingle416,PgClassExpression418,List419,Lambda420,PgSelect421,First423,PgSelectRows424,PgSelectSingle425,PgClassExpression427,List428,Lambda429,PgSelect430,First432,PgSelectRows433,PgSelectSingle434,PgClassExpression436,List437,Lambda438,PgSelect439,First441,PgSelectRows442,PgSelectSingle443,PgClassExpression445,List446,Lambda447 bucket10 + Bucket11("Bucket 11 (listItem)
Deps: 460, 11, 18, 36, 39, 42, 45

ROOT __Item{11}ᐸ457ᐳ[458]
1:
ᐳ: 459, 461, 462, 463, 464, 489
2: PgSelect[465], PgSelect[490]
3: PgSelectRows[470], PgSelectRows[493]
ᐳ: 469, 471, 473, 476, 492, 494, 496, 499"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11,PgSelect337,First341,PgSelectRows342,PgSelectSingle343,PgClassExpression345,List346,Lambda347,PgSelect349,First351,PgSelectRows352,PgSelectSingle353,PgClassExpression355,List356,Lambda357,PgSelect358,First360,PgSelectRows361,PgSelectSingle362,PgClassExpression364,List365,Lambda366,PgSelect367,First369,PgSelectRows370,PgSelectSingle371,PgClassExpression373,List374,Lambda375,PgSelect376,First378,PgSelectRows379,PgSelectSingle380,PgClassExpression382,List383,Lambda384 bucket11 - Bucket12("Bucket 12 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 12, 399, 137, 165, 174, 183, 192, 398, 411
ᐳRelationalChecklistItemᐳRelationalTopic
ᐳRelationalChecklistItemᐳRelationalPost
ᐳRelationalChecklistItemᐳRelationalDivider
ᐳRelationalChecklistItemᐳRelationalChecklist
ᐳRelationalChecklistItemᐳRelationalChecklistItem

1: 400, 412, 421, 430, 439
2: 405, 415, 424, 433, 442
ᐳ: 404, 406, 408, 409, 410, 414, 416, 418, 419, 420, 423, 425, 427, 428, 429, 432, 434, 436, 437, 438, 441, 443, 445, 446, 447"):::bucket + class Bucket11,__Item458,PgSelectSingle459,PgClassExpression461,List462,Lambda463,PgClassExpression464,PgSelect465,First469,PgSelectRows470,PgSelectSingle471,PgClassExpression473,PgClassExpression476,PgClassExpression489,PgSelect490,First492,PgSelectRows493,PgSelectSingle494,PgClassExpression496,PgClassExpression499 bucket11 + Bucket12("Bucket 12 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 18, 473, 36, 39, 42, 45, 471, 476
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12,PgSelect400,First404,PgSelectRows405,PgSelectSingle406,PgClassExpression408,List409,Lambda410,PgSelect412,First414,PgSelectRows415,PgSelectSingle416,PgClassExpression418,List419,Lambda420,PgSelect421,First423,PgSelectRows424,PgSelectSingle425,PgClassExpression427,List428,Lambda429,PgSelect430,First432,PgSelectRows433,PgSelectSingle434,PgClassExpression436,List437,Lambda438,PgSelect439,First441,PgSelectRows442,PgSelectSingle443,PgClassExpression445,List446,Lambda447 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 12, 483, 454, 488, 18, 36, 39, 42, 45

ROOT Connectionᐸ452ᐳ[454]
1: PgSelect[484]
2: PgSelectRows[485]"):::bucket + class Bucket12,List474,Lambda475,List478,Lambda479,List481,Lambda482,List484,Lambda485,List487,Lambda488 bucket12 + Bucket13("Bucket 13 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 18, 496, 36, 39, 42, 45, 494, 499
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13,PgSelect484,PgSelectRows485 bucket13 - Bucket14("Bucket 14 (listItem)
Deps: 488, 12, 18, 36, 39, 42, 45

ROOT __Item{14}ᐸ485ᐳ[486]"):::bucket + class Bucket13,List497,Lambda498,List501,Lambda502,List504,Lambda505,List507,Lambda508,List510,Lambda511 bucket13 + Bucket14("Bucket 14 (listItem)
Deps: 524, 11, 137, 165, 174, 183, 192

ROOT __Item{14}ᐸ521ᐳ[522]
1:
ᐳ: 523, 525, 526, 527, 528, 585
2: PgSelect[529], PgSelect[586]
3: PgSelectRows[534], PgSelectRows[589]
ᐳ: 533, 535, 536, 548, 588, 590, 591, 603"):::bucket classDef bucket14 stroke:#a52a2a - class Bucket14,__Item486,PgSelectSingle487 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 487, 488, 12, 18, 36, 39, 42, 45

ROOT PgSelectSingle{14}ᐸsingle_table_item_relationsᐳ[487]
1:
ᐳ: 489, 492, 517, 490, 491
2: PgSelect[493], PgSelect[518]
3: PgSelectRows[498], PgSelectRows[521]
ᐳ: 497, 499, 501, 504, 520, 522, 524, 527"):::bucket + class Bucket14,__Item522,PgSelectSingle523,PgClassExpression525,List526,Lambda527,PgClassExpression528,PgSelect529,First533,PgSelectRows534,PgSelectSingle535,PgClassExpression536,PgClassExpression548,PgClassExpression585,PgSelect586,First588,PgSelectRows589,PgSelectSingle590,PgClassExpression591,PgClassExpression603 bucket14 + Bucket15("Bucket 15 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 536, 137, 165, 174, 183, 192, 535, 548
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 537, 549, 558, 567, 576
2: 542, 552, 561, 570, 579
ᐳ: 541, 543, 545, 546, 547, 551, 553, 555, 556, 557, 560, 562, 564, 565, 566, 569, 571, 573, 574, 575, 578, 580, 582, 583, 584"):::bucket classDef bucket15 stroke:#ff00ff - class Bucket15,PgClassExpression489,List490,Lambda491,PgClassExpression492,PgSelect493,First497,PgSelectRows498,PgSelectSingle499,PgClassExpression501,PgClassExpression504,PgClassExpression517,PgSelect518,First520,PgSelectRows521,PgSelectSingle522,PgClassExpression524,PgClassExpression527 bucket15 - Bucket16("Bucket 16 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 18, 501, 36, 39, 42, 45, 499, 504
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket + class Bucket15,PgSelect537,First541,PgSelectRows542,PgSelectSingle543,PgClassExpression545,List546,Lambda547,PgSelect549,First551,PgSelectRows552,PgSelectSingle553,PgClassExpression555,List556,Lambda557,PgSelect558,First560,PgSelectRows561,PgSelectSingle562,PgClassExpression564,List565,Lambda566,PgSelect567,First569,PgSelectRows570,PgSelectSingle571,PgClassExpression573,List574,Lambda575,PgSelect576,First578,PgSelectRows579,PgSelectSingle580,PgClassExpression582,List583,Lambda584 bucket15 + Bucket16("Bucket 16 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 11, 591, 137, 165, 174, 183, 192, 590, 603
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 592, 604, 613, 622, 631
2: 597, 607, 616, 625, 634
ᐳ: 596, 598, 600, 601, 602, 606, 608, 610, 611, 612, 615, 617, 619, 620, 621, 624, 626, 628, 629, 630, 633, 635, 637, 638, 639"):::bucket classDef bucket16 stroke:#f5deb3 - class Bucket16,List502,Lambda503,List506,Lambda507,List509,Lambda510,List512,Lambda513,List515,Lambda516 bucket16 - Bucket17("Bucket 17 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 18, 524, 36, 39, 42, 45, 522, 527
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"):::bucket - classDef bucket17 stroke:#696969 - class Bucket17,List525,Lambda526,List529,Lambda530,List532,Lambda533,List535,Lambda536,List538,Lambda539 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 12, 575, 546, 580, 137, 165, 174, 183, 192

ROOT Connectionᐸ544ᐳ[546]
1: PgSelect[576]
2: PgSelectRows[577]"):::bucket - classDef bucket18 stroke:#00bfff - class Bucket18,PgSelect576,PgSelectRows577 bucket18 - Bucket19("Bucket 19 (listItem)
Deps: 580, 12, 137, 165, 174, 183, 192

ROOT __Item{19}ᐸ577ᐳ[578]"):::bucket - classDef bucket19 stroke:#7f007f - class Bucket19,__Item578,PgSelectSingle579 bucket19 - Bucket20("Bucket 20 (nullableBoundary)
Deps: 579, 580, 12, 137, 165, 174, 183, 192

ROOT PgSelectSingle{19}ᐸrelational_item_relationsᐳ[579]
1:
ᐳ: 581, 584, 641, 582, 583
2: PgSelect[585], PgSelect[642]
3: PgSelectRows[590], PgSelectRows[645]
ᐳ: 589, 591, 592, 604, 644, 646, 647, 659"):::bucket - classDef bucket20 stroke:#ffa500 - class Bucket20,PgClassExpression581,List582,Lambda583,PgClassExpression584,PgSelect585,First589,PgSelectRows590,PgSelectSingle591,PgClassExpression592,PgClassExpression604,PgClassExpression641,PgSelect642,First644,PgSelectRows645,PgSelectSingle646,PgClassExpression647,PgClassExpression659 bucket20 - Bucket21("Bucket 21 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 12, 592, 137, 165, 174, 183, 192, 591, 604
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 593, 605, 614, 623, 632
2: 598, 608, 617, 626, 635
ᐳ: 597, 599, 601, 602, 603, 607, 609, 611, 612, 613, 616, 618, 620, 621, 622, 625, 627, 629, 630, 631, 634, 636, 638, 639, 640"):::bucket - classDef bucket21 stroke:#0000ff - class Bucket21,PgSelect593,First597,PgSelectRows598,PgSelectSingle599,PgClassExpression601,List602,Lambda603,PgSelect605,First607,PgSelectRows608,PgSelectSingle609,PgClassExpression611,List612,Lambda613,PgSelect614,First616,PgSelectRows617,PgSelectSingle618,PgClassExpression620,List621,Lambda622,PgSelect623,First625,PgSelectRows626,PgSelectSingle627,PgClassExpression629,List630,Lambda631,PgSelect632,First634,PgSelectRows635,PgSelectSingle636,PgClassExpression638,List639,Lambda640 bucket21 - Bucket22("Bucket 22 (polymorphic)
RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem
Deps: 12, 647, 137, 165, 174, 183, 192, 646, 659
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem

1: 648, 660, 669, 678, 687
2: 653, 663, 672, 681, 690
ᐳ: 652, 654, 656, 657, 658, 662, 664, 666, 667, 668, 671, 673, 675, 676, 677, 680, 682, 684, 685, 686, 689, 691, 693, 694, 695"):::bucket - classDef bucket22 stroke:#7fff00 - class Bucket22,PgSelect648,First652,PgSelectRows653,PgSelectSingle654,PgClassExpression656,List657,Lambda658,PgSelect660,First662,PgSelectRows663,PgSelectSingle664,PgClassExpression666,List667,Lambda668,PgSelect669,First671,PgSelectRows672,PgSelectSingle673,PgClassExpression675,List676,Lambda677,PgSelect678,First680,PgSelectRows681,PgSelectSingle682,PgClassExpression684,List685,Lambda686,PgSelect687,First689,PgSelectRows690,PgSelectSingle691,PgClassExpression693,List694,Lambda695 bucket22 - Bucket0 --> Bucket1 & Bucket5 & Bucket13 & Bucket18 + class Bucket16,PgSelect592,First596,PgSelectRows597,PgSelectSingle598,PgClassExpression600,List601,Lambda602,PgSelect604,First606,PgSelectRows607,PgSelectSingle608,PgClassExpression610,List611,Lambda612,PgSelect613,First615,PgSelectRows616,PgSelectSingle617,PgClassExpression619,List620,Lambda621,PgSelect622,First624,PgSelectRows625,PgSelectSingle626,PgClassExpression628,List629,Lambda630,PgSelect631,First633,PgSelectRows634,PgSelectSingle635,PgClassExpression637,List638,Lambda639 bucket16 + Bucket0 --> Bucket1 & Bucket4 & Bucket11 & Bucket14 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 & Bucket9 & Bucket10 & Bucket11 & Bucket12 - Bucket13 --> Bucket14 - Bucket14 --> Bucket15 - Bucket15 --> Bucket16 & Bucket17 - Bucket18 --> Bucket19 - Bucket19 --> Bucket20 - Bucket20 --> Bucket21 & Bucket22 + Bucket4 --> Bucket5 + Bucket5 --> Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 + Bucket11 --> Bucket12 & Bucket13 + Bucket14 --> Bucket15 & Bucket16 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/relay.polyroot_with_related_poly.sql b/postgraphile/postgraphile/__tests__/queries/polymorphic/relay.polyroot_with_related_poly.sql index 087fc15cbc..b8e5715dcc 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/relay.polyroot_with_related_poly.sql +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/relay.polyroot_with_related_poly.sql @@ -17,7 +17,7 @@ select __single_table_item_relations__."parent_id"::text as "2" from "polymorphic"."single_table_item_relations" as __single_table_item_relations__ where ( - (($1::"int4" is null and __single_table_item_relations__."child_id" is null) or ($1::"int4" is not null and __single_table_item_relations__."child_id" = $1::"int4")) + __single_table_item_relations__."child_id" = $1::"int4" ) order by __single_table_item_relations__."id" asc; @@ -27,7 +27,7 @@ select __relational_item_relations__."parent_id"::text as "2" from "polymorphic"."relational_item_relations" as __relational_item_relations__ where ( - (($1::"int4" is null and __relational_item_relations__."child_id" is null) or ($1::"int4" is not null and __relational_item_relations__."child_id" = $1::"int4")) + __relational_item_relations__."child_id" = $1::"int4" ) order by __relational_item_relations__."id" asc; diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/returns-setof.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/returns-setof.mermaid index 9a82bb4319..d81f4cb4d5 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/returns-setof.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/returns-setof.mermaid @@ -9,34 +9,31 @@ graph TD %% plan dependencies + Connection11{{"Connection[11∈0] ➊
ᐸ7ᐳ"}}:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect12[["PgSelect[12∈0] ➊
ᐸall_single_tables(aggregate)ᐳ"]]:::plan + Object10 -->|rejectNull| PgSelect12 + Connection11 --> PgSelect12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection11{{"Connection[11∈0] ➊
ᐸ7ᐳ"}}:::plan - PgSelect12[["PgSelect[12∈1] ➊
ᐸall_single_tables(aggregate)ᐳ"]]:::plan - Object10 & Connection11 --> PgSelect12 - First13{{"First[13∈1] ➊"}}:::plan - PgSelectRows14[["PgSelectRows[14∈1] ➊"]]:::plan + First13{{"First[13∈0] ➊"}}:::plan + PgSelectRows14[["PgSelectRows[14∈0] ➊"]]:::plan PgSelectRows14 --> First13 PgSelect12 --> PgSelectRows14 - PgSelectSingle15{{"PgSelectSingle[15∈1] ➊
ᐸall_single_tablesᐳ"}}:::plan + PgSelectSingle15{{"PgSelectSingle[15∈0] ➊
ᐸall_single_tablesᐳ"}}:::plan First13 --> PgSelectSingle15 - PgClassExpression16{{"PgClassExpression[16∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle15 --> PgClassExpression16 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/polymorphic/returns-setof" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 10, 11
2: PgSelect[12]
3: PgSelectRows[14]
ᐳ: 13, 15, 16"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access8,Access9,Object10,Connection11 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 10, 11

ROOT Connectionᐸ7ᐳ[11]
1: PgSelect[12]
2: PgSelectRows[14]
ᐳ: 13, 15, 16"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect12,First13,PgSelectRows14,PgSelectSingle15,PgClassExpression16 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,Access8,Access9,Object10,Connection11,PgSelect12,First13,PgSelectRows14,PgSelectSingle15,PgClassExpression16 bucket0 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/simple-log-entries.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/simple-log-entries.mermaid index 53e4387eba..2163541d5f 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/simple-log-entries.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/simple-log-entries.mermaid @@ -9,88 +9,81 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸlog_entriesᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸlog_entriesᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgUnionAll21[["PgUnionAll[21∈1]"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__log_entr...person_id”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__log_entr...zation_id”ᐳ"}}:::plan + Object11 & PgClassExpression19 & PgClassExpression20 --> PgUnionAll21 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸlog_entriesᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸlog_entriesᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgUnionAll21[["PgUnionAll[21∈3]"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__log_entr...person_id”ᐳ"}}:::plan - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__log_entr...zation_id”ᐳ"}}:::plan - Object12 & PgClassExpression19 & PgClassExpression20 --> PgUnionAll21 - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__log_entries__.”id”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__log_entries__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 PgSelectSingle17 --> PgClassExpression19 PgSelectSingle17 --> PgClassExpression20 - First25{{"First[25∈3]"}}:::plan - Access47{{"Access[47∈3]
ᐸ21.itemsᐳ"}}:::plan + First25{{"First[25∈1]"}}:::plan + Access47{{"Access[47∈1]
ᐸ21.itemsᐳ"}}:::plan Access47 --> First25 - PgUnionAllSingle27["PgUnionAllSingle[27∈3]"]:::plan + PgUnionAllSingle27["PgUnionAllSingle[27∈1]"]:::plan First25 --> PgUnionAllSingle27 - Access28{{"Access[28∈3]
ᐸ27.1ᐳ"}}:::plan + Access28{{"Access[28∈1]
ᐸ27.1ᐳ"}}:::plan PgUnionAllSingle27 --> Access28 PgUnionAll21 --> Access47 - PgSelect31[["PgSelect[31∈4]
ᐸorganizationsᐳ
ᐳOrganization"]]:::plan - Access30{{"Access[30∈4]
ᐸ29.0ᐳ"}}:::plan - Object12 & Access30 --> PgSelect31 - PgSelect41[["PgSelect[41∈4]
ᐸpeopleᐳ
ᐳPerson"]]:::plan - Access40{{"Access[40∈4]
ᐸ39.0ᐳ"}}:::plan - Object12 & Access40 --> PgSelect41 - JSONParse29[["JSONParse[29∈4]
ᐸ28ᐳ
ᐳOrganization"]]:::plan + PgSelect31[["PgSelect[31∈2]
ᐸorganizationsᐳ
ᐳOrganization"]]:::plan + Access30{{"Access[30∈2]
ᐸ29.0ᐳ"}}:::plan + Object11 & Access30 --> PgSelect31 + PgSelect41[["PgSelect[41∈2]
ᐸpeopleᐳ
ᐳPerson"]]:::plan + Access40{{"Access[40∈2]
ᐸ39.0ᐳ"}}:::plan + Object11 & Access40 --> PgSelect41 + JSONParse29[["JSONParse[29∈2]
ᐸ28ᐳ
ᐳOrganization"]]:::plan Access28 --> JSONParse29 JSONParse29 --> Access30 - First35{{"First[35∈4]"}}:::plan - PgSelectRows36[["PgSelectRows[36∈4]"]]:::plan + First35{{"First[35∈2]"}}:::plan + PgSelectRows36[["PgSelectRows[36∈2]"]]:::plan PgSelectRows36 --> First35 PgSelect31 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈4]
ᐸorganizationsᐳ"}}:::plan + PgSelectSingle37{{"PgSelectSingle[37∈2]
ᐸorganizationsᐳ"}}:::plan First35 --> PgSelectSingle37 - PgClassExpression38{{"PgClassExpression[38∈4]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgClassExpression38{{"PgClassExpression[38∈2]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan PgSelectSingle37 --> PgClassExpression38 - JSONParse39[["JSONParse[39∈4]
ᐸ28ᐳ
ᐳPerson"]]:::plan + JSONParse39[["JSONParse[39∈2]
ᐸ28ᐳ
ᐳPerson"]]:::plan Access28 --> JSONParse39 JSONParse39 --> Access40 - First43{{"First[43∈4]"}}:::plan - PgSelectRows44[["PgSelectRows[44∈4]"]]:::plan + First43{{"First[43∈2]"}}:::plan + PgSelectRows44[["PgSelectRows[44∈2]"]]:::plan PgSelectRows44 --> First43 PgSelect41 --> PgSelectRows44 - PgSelectSingle45{{"PgSelectSingle[45∈4]
ᐸpeopleᐳ"}}:::plan + PgSelectSingle45{{"PgSelectSingle[45∈2]
ᐸpeopleᐳ"}}:::plan First43 --> PgSelectSingle45 - PgClassExpression46{{"PgClassExpression[46∈4]
ᐸ__people__.”username”ᐳ"}}:::plan + PgClassExpression46{{"PgClassExpression[46∈2]
ᐸ__people__.”username”ᐳ"}}:::plan PgSelectSingle45 --> PgClassExpression46 %% define steps subgraph "Buckets for queries/polymorphic/simple-log-entries" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 11, 12
2: PgSelect[14]
3: PgSelectRows[15]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 18, 19, 20
2: PgUnionAll[21]
ᐳ: Access[47], First[25]
3: PgUnionAllSingle[27]
ᐳ: Access[28]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 12

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgUnionAll21,First25,PgUnionAllSingle27,Access28,Access47 bucket1 + Bucket2("Bucket 2 (polymorphic)
Organization,Person
Deps: 28, 11, 27
ᐳOrganization
ᐳPerson

1: JSONParse[29], JSONParse[39]
ᐳ: Access[30], Access[40]
2: PgSelect[31], PgSelect[41]
3: PgSelectRows[36], PgSelectRows[44]
ᐳ: 35, 37, 38, 43, 45, 46"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 12

ROOT PgSelectSingle{2}ᐸlog_entriesᐳ[17]
1:
ᐳ: 18, 19, 20
2: PgUnionAll[21]
ᐳ: Access[47], First[25]
3: PgUnionAllSingle[27]
ᐳ: Access[28]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgUnionAll21,First25,PgUnionAllSingle27,Access28,Access47 bucket3 - Bucket4("Bucket 4 (polymorphic)
Organization,Person
Deps: 28, 12, 27
ᐳOrganization
ᐳPerson

1: JSONParse[29], JSONParse[39]
ᐳ: Access[30], Access[40]
2: PgSelect[31], PgSelect[41]
3: PgSelectRows[36], PgSelectRows[44]
ᐳ: 35, 37, 38, 43, 45, 46"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,JSONParse29,Access30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression38,JSONParse39,Access40,PgSelect41,First43,PgSelectRows44,PgSelectSingle45,PgClassExpression46 bucket4 + class Bucket2,JSONParse29,Access30,PgSelect31,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression38,JSONParse39,Access40,PgSelect41,First43,PgSelectRows44,PgSelectSingle45,PgClassExpression46 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/simple-single-table-items-root-topic.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/simple-single-table-items-root-topic.mermaid index ef91dbe374..f95d2a3760 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/simple-single-table-items-root-topic.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/simple-single-table-items-root-topic.mermaid @@ -9,20 +9,33 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸsingle_table_itemsᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 PgSelect69[["PgSelect[69∈0] ➊
ᐸsingle_table_itemsᐳ"]]:::plan Access67{{"Access[67∈0] ➊
ᐸ66.1ᐳ"}}:::plan - Object12 -->|rejectNull| PgSelect69 + Object11 -->|rejectNull| PgSelect69 Access67 --> PgSelect69 + List76{{"List[76∈0] ➊
ᐸ41,74ᐳ"}}:::plan + Constant41{{"Constant[41∈0] ➊
ᐸ'SingleTableDivider'ᐳ"}}:::plan + PgClassExpression74{{"PgClassExpression[74∈0] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + Constant41 & PgClassExpression74 --> List76 + PgSelect80[["PgSelect[80∈0] ➊
ᐸsingle_table_itemsᐳ"]]:::plan + PgClassExpression79{{"PgClassExpression[79∈0] ➊
ᐸ__single_t..._topic_id”ᐳ"}}:::plan + Object11 & PgClassExpression79 --> PgSelect80 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan + PgSelect14 --> PgSelectRows15 Lambda66{{"Lambda[66∈0] ➊
ᐸspecifier_SingleTableDivider_base64JSONᐳ"}}:::plan - Constant246{{"Constant[246∈0] ➊
ᐸ'WyJTaW5nbGVUYWJsZURpdmlkZXIiLDNd'ᐳ"}}:::plan - Constant246 --> Lambda66 + Constant244{{"Constant[244∈0] ➊
ᐸ'WyJTaW5nbGVUYWJsZURpdmlkZXIiLDNd'ᐳ"}}:::plan + Constant244 --> Lambda66 Lambda66 --> Access67 First71{{"First[71∈0] ➊"}}:::plan PgSelectRows72[["PgSelectRows[72∈0] ➊"]]:::plan @@ -30,310 +43,279 @@ graph TD PgSelect69 --> PgSelectRows72 PgSelectSingle73{{"PgSelectSingle[73∈0] ➊
ᐸsingle_table_itemsᐳ"}}:::plan First71 --> PgSelectSingle73 - Node90{{"Node[90∈0] ➊"}}:::plan - Lambda91{{"Lambda[91∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Lambda91 --> Node90 - Constant246 --> Lambda91 + PgSelectSingle73 --> PgClassExpression74 + Lambda77{{"Lambda[77∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List76 --> Lambda77 + PgClassExpression78{{"PgClassExpression[78∈0] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgSelectSingle73 --> PgClassExpression78 + PgSelectSingle73 --> PgClassExpression79 + First82{{"First[82∈0] ➊"}}:::plan + PgSelectRows83[["PgSelectRows[83∈0] ➊"]]:::plan + PgSelectRows83 --> First82 + PgSelect80 --> PgSelectRows83 + PgSelectSingle84{{"PgSelectSingle[84∈0] ➊
ᐸsingle_table_itemsᐳ"}}:::plan + First82 --> PgSelectSingle84 + PgClassExpression85{{"PgClassExpression[85∈0] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgSelectSingle84 --> PgClassExpression85 + PgClassExpression86{{"PgClassExpression[86∈0] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan + PgSelectSingle84 --> PgClassExpression86 + Node88{{"Node[88∈0] ➊"}}:::plan + Lambda89{{"Lambda[89∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan + Lambda89 --> Node88 + Constant244 --> Lambda89 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan Constant19{{"Constant[19∈0] ➊
ᐸ'SingleTableTopic'ᐳ"}}:::plan Constant33{{"Constant[33∈0] ➊
ᐸ'SingleTablePost'ᐳ"}}:::plan - Constant41{{"Constant[41∈0] ➊
ᐸ'SingleTableDivider'ᐳ"}}:::plan Constant49{{"Constant[49∈0] ➊
ᐸ'SingleTableChecklist'ᐳ"}}:::plan Constant57{{"Constant[57∈0] ➊
ᐸ'SingleTableChecklistItem'ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸsingle_table_itemsᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan - PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸsingle_table_itemsᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 - PgClassExpression22{{"PgClassExpression[22∈2]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈2]
ᐸ__single_t..._topic_id”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__single_t..._topic_id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression23 - List20{{"List[20∈3]
ᐸ19,18ᐳ
ᐳSingleTableTopic"}}:::plan + List20{{"List[20∈2]
ᐸ19,18ᐳ
ᐳSingleTableTopic"}}:::plan Constant19 & PgClassExpression18 --> List20 - PgSelect24[["PgSelect[24∈3]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan - Object12 & PgClassExpression23 --> PgSelect24 - List34{{"List[34∈3]
ᐸ33,18ᐳ
ᐳSingleTablePost"}}:::plan + PgSelect24[["PgSelect[24∈2]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + Object11 & PgClassExpression23 --> PgSelect24 + List34{{"List[34∈2]
ᐸ33,18ᐳ
ᐳSingleTablePost"}}:::plan Constant33 & PgClassExpression18 --> List34 - List42{{"List[42∈3]
ᐸ41,18ᐳ
ᐳSingleTableDivider"}}:::plan + List42{{"List[42∈2]
ᐸ41,18ᐳ
ᐳSingleTableDivider"}}:::plan Constant41 & PgClassExpression18 --> List42 - List50{{"List[50∈3]
ᐸ49,18ᐳ
ᐳSingleTableChecklist"}}:::plan + List50{{"List[50∈2]
ᐸ49,18ᐳ
ᐳSingleTableChecklist"}}:::plan Constant49 & PgClassExpression18 --> List50 - List58{{"List[58∈3]
ᐸ57,18ᐳ
ᐳSingleTableChecklistItem"}}:::plan + List58{{"List[58∈2]
ᐸ57,18ᐳ
ᐳSingleTableChecklistItem"}}:::plan Constant57 & PgClassExpression18 --> List58 - Lambda21{{"Lambda[21∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda21{{"Lambda[21∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan List20 --> Lambda21 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan + First28{{"First[28∈2]"}}:::plan + PgSelectRows29[["PgSelectRows[29∈2]"]]:::plan PgSelectRows29 --> First28 PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle30{{"PgSelectSingle[30∈2]
ᐸsingle_table_itemsᐳ"}}:::plan First28 --> PgSelectSingle30 - Lambda35{{"Lambda[35∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__single_t...__.”title”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression32 + Lambda35{{"Lambda[35∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan List34 --> Lambda35 - Lambda43{{"Lambda[43∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda43{{"Lambda[43∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan List42 --> Lambda43 - Lambda51{{"Lambda[51∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda51{{"Lambda[51∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan List50 --> Lambda51 - Lambda59{{"Lambda[59∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda59{{"Lambda[59∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan List58 --> Lambda59 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__single_t...__.”title”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 - List76{{"List[76∈5] ➊
ᐸ41,74ᐳ"}}:::plan - PgClassExpression74{{"PgClassExpression[74∈5] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan - Constant41 & PgClassExpression74 --> List76 - PgSelect80[["PgSelect[80∈5] ➊
ᐸsingle_table_itemsᐳ"]]:::plan - PgClassExpression79{{"PgClassExpression[79∈5] ➊
ᐸ__single_t..._topic_id”ᐳ"}}:::plan - Object12 & PgClassExpression79 --> PgSelect80 - PgSelectSingle73 --> PgClassExpression74 - Lambda77{{"Lambda[77∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List76 --> Lambda77 - PgClassExpression78{{"PgClassExpression[78∈5] ➊
ᐸ__single_t...s__.”type”ᐳ"}}:::plan - PgSelectSingle73 --> PgClassExpression78 - PgSelectSingle73 --> PgClassExpression79 - First84{{"First[84∈5] ➊"}}:::plan - PgSelectRows85[["PgSelectRows[85∈5] ➊"]]:::plan - PgSelectRows85 --> First84 - PgSelect80 --> PgSelectRows85 - PgSelectSingle86{{"PgSelectSingle[86∈5] ➊
ᐸsingle_table_itemsᐳ"}}:::plan - First84 --> PgSelectSingle86 - PgClassExpression87{{"PgClassExpression[87∈6] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan - PgSelectSingle86 --> PgClassExpression87 - PgClassExpression88{{"PgClassExpression[88∈6] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan - PgSelectSingle86 --> PgClassExpression88 - PgSelect141[["PgSelect[141∈7] ➊
ᐸrelational_item_relation_composite_pksᐳ
ᐳRelationalItemRelationCompositePk"]]:::plan - Access247{{"Access[247∈7] ➊
ᐸ91.base64JSON.1ᐳ
ᐳSingleTableTopic
ᐳPerson
ᐳLogEntry
ᐳOrganization
ᐳAwsApplication
ᐳGcpApplication
ᐳRelationalItemRelation
ᐳRelationalItemRelationCompositePk
ᐳSingleTableItemRelation
ᐳSingleTableItemRelationCompositePk
ᐳSingleTablePost
ᐳPriority
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability"}}:::plan - Access248{{"Access[248∈7] ➊
ᐸ91.base64JSON.2ᐳ
ᐳRelationalItemRelationCompositePk
ᐳSingleTableItemRelationCompositePk"}}:::plan - Object12 -->|rejectNull| PgSelect141 - Access247 -->|rejectNull| PgSelect141 - Access248 --> PgSelect141 - PgSelect154[["PgSelect[154∈7] ➊
ᐸsingle_table_item_relation_composite_pksᐳ
ᐳSingleTableItemRelationCompositePk"]]:::plan - Object12 -->|rejectNull| PgSelect154 - Access247 -->|rejectNull| PgSelect154 - Access248 --> PgSelect154 - PgSelect95[["PgSelect[95∈7] ➊
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan - Object12 -->|rejectNull| PgSelect95 - Access247 --> PgSelect95 - PgSelect103[["PgSelect[103∈7] ➊
ᐸpeopleᐳ
ᐳPerson"]]:::plan - Object12 -->|rejectNull| PgSelect103 - Access247 --> PgSelect103 - PgSelect109[["PgSelect[109∈7] ➊
ᐸlog_entriesᐳ
ᐳLogEntry"]]:::plan - Object12 -->|rejectNull| PgSelect109 - Access247 --> PgSelect109 - PgSelect115[["PgSelect[115∈7] ➊
ᐸorganizationsᐳ
ᐳOrganization"]]:::plan - Object12 -->|rejectNull| PgSelect115 - Access247 --> PgSelect115 - PgSelect121[["PgSelect[121∈7] ➊
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan - Object12 -->|rejectNull| PgSelect121 - Access247 --> PgSelect121 - PgSelect127[["PgSelect[127∈7] ➊
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan - Object12 -->|rejectNull| PgSelect127 - Access247 --> PgSelect127 - PgSelect133[["PgSelect[133∈7] ➊
ᐸrelational_item_relationsᐳ
ᐳRelationalItemRelation"]]:::plan - Object12 -->|rejectNull| PgSelect133 - Access247 --> PgSelect133 - PgSelect147[["PgSelect[147∈7] ➊
ᐸsingle_table_item_relationsᐳ
ᐳSingleTableItemRelation"]]:::plan - Object12 -->|rejectNull| PgSelect147 - Access247 --> PgSelect147 - PgSelect166[["PgSelect[166∈7] ➊
ᐸprioritiesᐳ
ᐳPriority"]]:::plan - Object12 -->|rejectNull| PgSelect166 - Access247 --> PgSelect166 - List180{{"List[180∈7] ➊
ᐸ41,177ᐳ
ᐳSingleTableDivider"}}:::plan - PgClassExpression177{{"PgClassExpression[177∈7] ➊
ᐸ__single_t...ems__.”id”ᐳ
ᐳSingleTableDivider"}}:::plan - Constant41 & PgClassExpression177 --> List180 - PgSelect184[["PgSelect[184∈7] ➊
ᐸsingle_table_itemsᐳ
ᐳSingleTableDivider"]]:::plan - PgClassExpression183{{"PgClassExpression[183∈7] ➊
ᐸ__single_t..._topic_id”ᐳ
ᐳSingleTableDivider"}}:::plan - Object12 & PgClassExpression183 --> PgSelect184 - PgSelect204[["PgSelect[204∈7] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object12 -->|rejectNull| PgSelect204 - Access247 --> PgSelect204 - PgSelect210[["PgSelect[210∈7] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan - Object12 -->|rejectNull| PgSelect210 - Access247 --> PgSelect210 - PgSelect216[["PgSelect[216∈7] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan - Object12 -->|rejectNull| PgSelect216 - Access247 --> PgSelect216 - PgSelect222[["PgSelect[222∈7] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan - Object12 -->|rejectNull| PgSelect222 - Access247 --> PgSelect222 - PgSelect228[["PgSelect[228∈7] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan - Object12 -->|rejectNull| PgSelect228 - Access247 --> PgSelect228 - PgSelect235[["PgSelect[235∈7] ➊
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Object12 -->|rejectNull| PgSelect235 - Access247 --> PgSelect235 - PgSelect241[["PgSelect[241∈7] ➊
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Object12 -->|rejectNull| PgSelect241 - Access247 --> PgSelect241 - First99{{"First[99∈7] ➊"}}:::plan - PgSelectRows100[["PgSelectRows[100∈7] ➊"]]:::plan - PgSelectRows100 --> First99 - PgSelect95 --> PgSelectRows100 - PgSelectSingle101{{"PgSelectSingle[101∈7] ➊
ᐸsingle_table_itemsᐳ"}}:::plan - First99 --> PgSelectSingle101 - First105{{"First[105∈7] ➊"}}:::plan - PgSelectRows106[["PgSelectRows[106∈7] ➊"]]:::plan - PgSelectRows106 --> First105 - PgSelect103 --> PgSelectRows106 - PgSelectSingle107{{"PgSelectSingle[107∈7] ➊
ᐸpeopleᐳ"}}:::plan - First105 --> PgSelectSingle107 - First111{{"First[111∈7] ➊"}}:::plan - PgSelectRows112[["PgSelectRows[112∈7] ➊"]]:::plan - PgSelectRows112 --> First111 - PgSelect109 --> PgSelectRows112 - PgSelectSingle113{{"PgSelectSingle[113∈7] ➊
ᐸlog_entriesᐳ"}}:::plan - First111 --> PgSelectSingle113 - First117{{"First[117∈7] ➊"}}:::plan - PgSelectRows118[["PgSelectRows[118∈7] ➊"]]:::plan - PgSelectRows118 --> First117 - PgSelect115 --> PgSelectRows118 - PgSelectSingle119{{"PgSelectSingle[119∈7] ➊
ᐸorganizationsᐳ"}}:::plan - First117 --> PgSelectSingle119 - First123{{"First[123∈7] ➊"}}:::plan - PgSelectRows124[["PgSelectRows[124∈7] ➊"]]:::plan - PgSelectRows124 --> First123 - PgSelect121 --> PgSelectRows124 - PgSelectSingle125{{"PgSelectSingle[125∈7] ➊
ᐸaws_applicationsᐳ"}}:::plan - First123 --> PgSelectSingle125 - First129{{"First[129∈7] ➊"}}:::plan - PgSelectRows130[["PgSelectRows[130∈7] ➊"]]:::plan - PgSelectRows130 --> First129 - PgSelect127 --> PgSelectRows130 - PgSelectSingle131{{"PgSelectSingle[131∈7] ➊
ᐸgcp_applicationsᐳ"}}:::plan - First129 --> PgSelectSingle131 - First135{{"First[135∈7] ➊"}}:::plan - PgSelectRows136[["PgSelectRows[136∈7] ➊"]]:::plan - PgSelectRows136 --> First135 - PgSelect133 --> PgSelectRows136 - PgSelectSingle137{{"PgSelectSingle[137∈7] ➊
ᐸrelational_item_relationsᐳ"}}:::plan - First135 --> PgSelectSingle137 - First143{{"First[143∈7] ➊"}}:::plan - PgSelectRows144[["PgSelectRows[144∈7] ➊"]]:::plan - PgSelectRows144 --> First143 - PgSelect141 --> PgSelectRows144 - PgSelectSingle145{{"PgSelectSingle[145∈7] ➊
ᐸrelational_item_relation_composite_pksᐳ"}}:::plan - First143 --> PgSelectSingle145 - First149{{"First[149∈7] ➊"}}:::plan - PgSelectRows150[["PgSelectRows[150∈7] ➊"]]:::plan - PgSelectRows150 --> First149 - PgSelect147 --> PgSelectRows150 - PgSelectSingle151{{"PgSelectSingle[151∈7] ➊
ᐸsingle_table_item_relationsᐳ"}}:::plan - First149 --> PgSelectSingle151 - First156{{"First[156∈7] ➊"}}:::plan - PgSelectRows157[["PgSelectRows[157∈7] ➊"]]:::plan - PgSelectRows157 --> First156 - PgSelect154 --> PgSelectRows157 - PgSelectSingle158{{"PgSelectSingle[158∈7] ➊
ᐸsingle_table_item_relation_composite_pksᐳ"}}:::plan - First156 --> PgSelectSingle158 - First168{{"First[168∈7] ➊"}}:::plan - PgSelectRows169[["PgSelectRows[169∈7] ➊"]]:::plan - PgSelectRows169 --> First168 - PgSelect166 --> PgSelectRows169 - PgSelectSingle170{{"PgSelectSingle[170∈7] ➊
ᐸprioritiesᐳ"}}:::plan - First168 --> PgSelectSingle170 - PgSelectSingle101 --> PgClassExpression177 - Lambda181{{"Lambda[181∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List180 --> Lambda181 - PgClassExpression182{{"PgClassExpression[182∈7] ➊
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableDivider"}}:::plan - PgSelectSingle101 --> PgClassExpression182 - PgSelectSingle101 --> PgClassExpression183 - First186{{"First[186∈7] ➊"}}:::plan - PgSelectRows187[["PgSelectRows[187∈7] ➊"]]:::plan - PgSelectRows187 --> First186 - PgSelect184 --> PgSelectRows187 - PgSelectSingle188{{"PgSelectSingle[188∈7] ➊
ᐸsingle_table_itemsᐳ"}}:::plan - First186 --> PgSelectSingle188 - First206{{"First[206∈7] ➊"}}:::plan - PgSelectRows207[["PgSelectRows[207∈7] ➊"]]:::plan - PgSelectRows207 --> First206 - PgSelect204 --> PgSelectRows207 - PgSelectSingle208{{"PgSelectSingle[208∈7] ➊
ᐸrelational_topicsᐳ"}}:::plan - First206 --> PgSelectSingle208 - First212{{"First[212∈7] ➊"}}:::plan - PgSelectRows213[["PgSelectRows[213∈7] ➊"]]:::plan - PgSelectRows213 --> First212 - PgSelect210 --> PgSelectRows213 - PgSelectSingle214{{"PgSelectSingle[214∈7] ➊
ᐸrelational_postsᐳ"}}:::plan - First212 --> PgSelectSingle214 - First218{{"First[218∈7] ➊"}}:::plan - PgSelectRows219[["PgSelectRows[219∈7] ➊"]]:::plan - PgSelectRows219 --> First218 - PgSelect216 --> PgSelectRows219 - PgSelectSingle220{{"PgSelectSingle[220∈7] ➊
ᐸrelational_dividersᐳ"}}:::plan - First218 --> PgSelectSingle220 - First224{{"First[224∈7] ➊"}}:::plan - PgSelectRows225[["PgSelectRows[225∈7] ➊"]]:::plan - PgSelectRows225 --> First224 - PgSelect222 --> PgSelectRows225 - PgSelectSingle226{{"PgSelectSingle[226∈7] ➊
ᐸrelational_checklistsᐳ"}}:::plan - First224 --> PgSelectSingle226 - First230{{"First[230∈7] ➊"}}:::plan - PgSelectRows231[["PgSelectRows[231∈7] ➊"]]:::plan - PgSelectRows231 --> First230 - PgSelect228 --> PgSelectRows231 - PgSelectSingle232{{"PgSelectSingle[232∈7] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan - First230 --> PgSelectSingle232 - First237{{"First[237∈7] ➊"}}:::plan - PgSelectRows238[["PgSelectRows[238∈7] ➊"]]:::plan - PgSelectRows238 --> First237 - PgSelect235 --> PgSelectRows238 - PgSelectSingle239{{"PgSelectSingle[239∈7] ➊
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan - First237 --> PgSelectSingle239 - First243{{"First[243∈7] ➊"}}:::plan - PgSelectRows244[["PgSelectRows[244∈7] ➊"]]:::plan - PgSelectRows244 --> First243 - PgSelect241 --> PgSelectRows244 - PgSelectSingle245{{"PgSelectSingle[245∈7] ➊
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan - First243 --> PgSelectSingle245 - Lambda91 --> Access247 - Lambda91 --> Access248 - PgClassExpression189{{"PgClassExpression[189∈8] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan - PgSelectSingle188 --> PgClassExpression189 - PgClassExpression190{{"PgClassExpression[190∈8] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan - PgSelectSingle188 --> PgClassExpression190 + PgSelect139[["PgSelect[139∈3] ➊
ᐸrelational_item_relation_composite_pksᐳ
ᐳRelationalItemRelationCompositePk"]]:::plan + Access245{{"Access[245∈3] ➊
ᐸ89.base64JSON.1ᐳ
ᐳSingleTableTopic
ᐳPerson
ᐳLogEntry
ᐳOrganization
ᐳAwsApplication
ᐳGcpApplication
ᐳRelationalItemRelation
ᐳRelationalItemRelationCompositePk
ᐳSingleTableItemRelation
ᐳSingleTableItemRelationCompositePk
ᐳSingleTablePost
ᐳPriority
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability"}}:::plan + Access246{{"Access[246∈3] ➊
ᐸ89.base64JSON.2ᐳ
ᐳRelationalItemRelationCompositePk
ᐳSingleTableItemRelationCompositePk"}}:::plan + Object11 -->|rejectNull| PgSelect139 + Access245 -->|rejectNull| PgSelect139 + Access246 --> PgSelect139 + PgSelect152[["PgSelect[152∈3] ➊
ᐸsingle_table_item_relation_composite_pksᐳ
ᐳSingleTableItemRelationCompositePk"]]:::plan + Object11 -->|rejectNull| PgSelect152 + Access245 -->|rejectNull| PgSelect152 + Access246 --> PgSelect152 + PgSelect93[["PgSelect[93∈3] ➊
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + Object11 -->|rejectNull| PgSelect93 + Access245 --> PgSelect93 + PgSelect101[["PgSelect[101∈3] ➊
ᐸpeopleᐳ
ᐳPerson"]]:::plan + Object11 -->|rejectNull| PgSelect101 + Access245 --> PgSelect101 + PgSelect107[["PgSelect[107∈3] ➊
ᐸlog_entriesᐳ
ᐳLogEntry"]]:::plan + Object11 -->|rejectNull| PgSelect107 + Access245 --> PgSelect107 + PgSelect113[["PgSelect[113∈3] ➊
ᐸorganizationsᐳ
ᐳOrganization"]]:::plan + Object11 -->|rejectNull| PgSelect113 + Access245 --> PgSelect113 + PgSelect119[["PgSelect[119∈3] ➊
ᐸaws_applicationsᐳ
ᐳAwsApplication"]]:::plan + Object11 -->|rejectNull| PgSelect119 + Access245 --> PgSelect119 + PgSelect125[["PgSelect[125∈3] ➊
ᐸgcp_applicationsᐳ
ᐳGcpApplication"]]:::plan + Object11 -->|rejectNull| PgSelect125 + Access245 --> PgSelect125 + PgSelect131[["PgSelect[131∈3] ➊
ᐸrelational_item_relationsᐳ
ᐳRelationalItemRelation"]]:::plan + Object11 -->|rejectNull| PgSelect131 + Access245 --> PgSelect131 + PgSelect145[["PgSelect[145∈3] ➊
ᐸsingle_table_item_relationsᐳ
ᐳSingleTableItemRelation"]]:::plan + Object11 -->|rejectNull| PgSelect145 + Access245 --> PgSelect145 + PgSelect164[["PgSelect[164∈3] ➊
ᐸprioritiesᐳ
ᐳPriority"]]:::plan + Object11 -->|rejectNull| PgSelect164 + Access245 --> PgSelect164 + List178{{"List[178∈3] ➊
ᐸ41,175ᐳ
ᐳSingleTableDivider"}}:::plan + PgClassExpression175{{"PgClassExpression[175∈3] ➊
ᐸ__single_t...ems__.”id”ᐳ
ᐳSingleTableDivider"}}:::plan + Constant41 & PgClassExpression175 --> List178 + PgSelect182[["PgSelect[182∈3] ➊
ᐸsingle_table_itemsᐳ
ᐳSingleTableDivider"]]:::plan + PgClassExpression181{{"PgClassExpression[181∈3] ➊
ᐸ__single_t..._topic_id”ᐳ
ᐳSingleTableDivider"}}:::plan + Object11 & PgClassExpression181 --> PgSelect182 + PgSelect202[["PgSelect[202∈3] ➊
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + Object11 -->|rejectNull| PgSelect202 + Access245 --> PgSelect202 + PgSelect208[["PgSelect[208∈3] ➊
ᐸrelational_postsᐳ
ᐳRelationalPost"]]:::plan + Object11 -->|rejectNull| PgSelect208 + Access245 --> PgSelect208 + PgSelect214[["PgSelect[214∈3] ➊
ᐸrelational_dividersᐳ
ᐳRelationalDivider"]]:::plan + Object11 -->|rejectNull| PgSelect214 + Access245 --> PgSelect214 + PgSelect220[["PgSelect[220∈3] ➊
ᐸrelational_checklistsᐳ
ᐳRelationalChecklist"]]:::plan + Object11 -->|rejectNull| PgSelect220 + Access245 --> PgSelect220 + PgSelect226[["PgSelect[226∈3] ➊
ᐸrelational_checklist_itemsᐳ
ᐳRelationalChecklistItem"]]:::plan + Object11 -->|rejectNull| PgSelect226 + Access245 --> PgSelect226 + PgSelect233[["PgSelect[233∈3] ➊
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Object11 -->|rejectNull| PgSelect233 + Access245 --> PgSelect233 + PgSelect239[["PgSelect[239∈3] ➊
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Object11 -->|rejectNull| PgSelect239 + Access245 --> PgSelect239 + First97{{"First[97∈3] ➊"}}:::plan + PgSelectRows98[["PgSelectRows[98∈3] ➊"]]:::plan + PgSelectRows98 --> First97 + PgSelect93 --> PgSelectRows98 + PgSelectSingle99{{"PgSelectSingle[99∈3] ➊
ᐸsingle_table_itemsᐳ"}}:::plan + First97 --> PgSelectSingle99 + First103{{"First[103∈3] ➊"}}:::plan + PgSelectRows104[["PgSelectRows[104∈3] ➊"]]:::plan + PgSelectRows104 --> First103 + PgSelect101 --> PgSelectRows104 + PgSelectSingle105{{"PgSelectSingle[105∈3] ➊
ᐸpeopleᐳ"}}:::plan + First103 --> PgSelectSingle105 + First109{{"First[109∈3] ➊"}}:::plan + PgSelectRows110[["PgSelectRows[110∈3] ➊"]]:::plan + PgSelectRows110 --> First109 + PgSelect107 --> PgSelectRows110 + PgSelectSingle111{{"PgSelectSingle[111∈3] ➊
ᐸlog_entriesᐳ"}}:::plan + First109 --> PgSelectSingle111 + First115{{"First[115∈3] ➊"}}:::plan + PgSelectRows116[["PgSelectRows[116∈3] ➊"]]:::plan + PgSelectRows116 --> First115 + PgSelect113 --> PgSelectRows116 + PgSelectSingle117{{"PgSelectSingle[117∈3] ➊
ᐸorganizationsᐳ"}}:::plan + First115 --> PgSelectSingle117 + First121{{"First[121∈3] ➊"}}:::plan + PgSelectRows122[["PgSelectRows[122∈3] ➊"]]:::plan + PgSelectRows122 --> First121 + PgSelect119 --> PgSelectRows122 + PgSelectSingle123{{"PgSelectSingle[123∈3] ➊
ᐸaws_applicationsᐳ"}}:::plan + First121 --> PgSelectSingle123 + First127{{"First[127∈3] ➊"}}:::plan + PgSelectRows128[["PgSelectRows[128∈3] ➊"]]:::plan + PgSelectRows128 --> First127 + PgSelect125 --> PgSelectRows128 + PgSelectSingle129{{"PgSelectSingle[129∈3] ➊
ᐸgcp_applicationsᐳ"}}:::plan + First127 --> PgSelectSingle129 + First133{{"First[133∈3] ➊"}}:::plan + PgSelectRows134[["PgSelectRows[134∈3] ➊"]]:::plan + PgSelectRows134 --> First133 + PgSelect131 --> PgSelectRows134 + PgSelectSingle135{{"PgSelectSingle[135∈3] ➊
ᐸrelational_item_relationsᐳ"}}:::plan + First133 --> PgSelectSingle135 + First141{{"First[141∈3] ➊"}}:::plan + PgSelectRows142[["PgSelectRows[142∈3] ➊"]]:::plan + PgSelectRows142 --> First141 + PgSelect139 --> PgSelectRows142 + PgSelectSingle143{{"PgSelectSingle[143∈3] ➊
ᐸrelational_item_relation_composite_pksᐳ"}}:::plan + First141 --> PgSelectSingle143 + First147{{"First[147∈3] ➊"}}:::plan + PgSelectRows148[["PgSelectRows[148∈3] ➊"]]:::plan + PgSelectRows148 --> First147 + PgSelect145 --> PgSelectRows148 + PgSelectSingle149{{"PgSelectSingle[149∈3] ➊
ᐸsingle_table_item_relationsᐳ"}}:::plan + First147 --> PgSelectSingle149 + First154{{"First[154∈3] ➊"}}:::plan + PgSelectRows155[["PgSelectRows[155∈3] ➊"]]:::plan + PgSelectRows155 --> First154 + PgSelect152 --> PgSelectRows155 + PgSelectSingle156{{"PgSelectSingle[156∈3] ➊
ᐸsingle_table_item_relation_composite_pksᐳ"}}:::plan + First154 --> PgSelectSingle156 + First166{{"First[166∈3] ➊"}}:::plan + PgSelectRows167[["PgSelectRows[167∈3] ➊"]]:::plan + PgSelectRows167 --> First166 + PgSelect164 --> PgSelectRows167 + PgSelectSingle168{{"PgSelectSingle[168∈3] ➊
ᐸprioritiesᐳ"}}:::plan + First166 --> PgSelectSingle168 + PgSelectSingle99 --> PgClassExpression175 + Lambda179{{"Lambda[179∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List178 --> Lambda179 + PgClassExpression180{{"PgClassExpression[180∈3] ➊
ᐸ__single_t...s__.”type”ᐳ
ᐳSingleTableDivider"}}:::plan + PgSelectSingle99 --> PgClassExpression180 + PgSelectSingle99 --> PgClassExpression181 + First184{{"First[184∈3] ➊"}}:::plan + PgSelectRows185[["PgSelectRows[185∈3] ➊"]]:::plan + PgSelectRows185 --> First184 + PgSelect182 --> PgSelectRows185 + PgSelectSingle186{{"PgSelectSingle[186∈3] ➊
ᐸsingle_table_itemsᐳ"}}:::plan + First184 --> PgSelectSingle186 + PgClassExpression187{{"PgClassExpression[187∈3] ➊
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgSelectSingle186 --> PgClassExpression187 + PgClassExpression188{{"PgClassExpression[188∈3] ➊
ᐸ__single_t...__.”title”ᐳ"}}:::plan + PgSelectSingle186 --> PgClassExpression188 + First204{{"First[204∈3] ➊"}}:::plan + PgSelectRows205[["PgSelectRows[205∈3] ➊"]]:::plan + PgSelectRows205 --> First204 + PgSelect202 --> PgSelectRows205 + PgSelectSingle206{{"PgSelectSingle[206∈3] ➊
ᐸrelational_topicsᐳ"}}:::plan + First204 --> PgSelectSingle206 + First210{{"First[210∈3] ➊"}}:::plan + PgSelectRows211[["PgSelectRows[211∈3] ➊"]]:::plan + PgSelectRows211 --> First210 + PgSelect208 --> PgSelectRows211 + PgSelectSingle212{{"PgSelectSingle[212∈3] ➊
ᐸrelational_postsᐳ"}}:::plan + First210 --> PgSelectSingle212 + First216{{"First[216∈3] ➊"}}:::plan + PgSelectRows217[["PgSelectRows[217∈3] ➊"]]:::plan + PgSelectRows217 --> First216 + PgSelect214 --> PgSelectRows217 + PgSelectSingle218{{"PgSelectSingle[218∈3] ➊
ᐸrelational_dividersᐳ"}}:::plan + First216 --> PgSelectSingle218 + First222{{"First[222∈3] ➊"}}:::plan + PgSelectRows223[["PgSelectRows[223∈3] ➊"]]:::plan + PgSelectRows223 --> First222 + PgSelect220 --> PgSelectRows223 + PgSelectSingle224{{"PgSelectSingle[224∈3] ➊
ᐸrelational_checklistsᐳ"}}:::plan + First222 --> PgSelectSingle224 + First228{{"First[228∈3] ➊"}}:::plan + PgSelectRows229[["PgSelectRows[229∈3] ➊"]]:::plan + PgSelectRows229 --> First228 + PgSelect226 --> PgSelectRows229 + PgSelectSingle230{{"PgSelectSingle[230∈3] ➊
ᐸrelational_checklist_itemsᐳ"}}:::plan + First228 --> PgSelectSingle230 + First235{{"First[235∈3] ➊"}}:::plan + PgSelectRows236[["PgSelectRows[236∈3] ➊"]]:::plan + PgSelectRows236 --> First235 + PgSelect233 --> PgSelectRows236 + PgSelectSingle237{{"PgSelectSingle[237∈3] ➊
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + First235 --> PgSelectSingle237 + First241{{"First[241∈3] ➊"}}:::plan + PgSelectRows242[["PgSelectRows[242∈3] ➊"]]:::plan + PgSelectRows242 --> First241 + PgSelect239 --> PgSelectRows242 + PgSelectSingle243{{"PgSelectSingle[243∈3] ➊
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + First241 --> PgSelectSingle243 + Lambda89 --> Access245 + Lambda89 --> Access246 %% define steps subgraph "Buckets for queries/polymorphic/simple-single-table-items-root-topic" - Bucket0("Bucket 0 (root)

1:
ᐳ: 10, 11, 13, 19, 33, 41, 49, 57, 246, 12, 66, 67, 91, 90
2: PgSelect[69]
3: PgSelectRows[72]
ᐳ: First[71], PgSelectSingle[73]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 19, 33, 41, 49, 57, 244, 11, 12, 66, 67, 89, 88
2: PgSelect[14], PgSelect[69]
3: PgSelectRows[15], PgSelectRows[72]
ᐳ: 71, 73, 74, 76, 77, 78, 79
4: PgSelect[80]
5: PgSelectRows[83]
ᐳ: 82, 84, 85, 86"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Constant19,Constant33,Constant41,Constant49,Constant57,Lambda66,Access67,PgSelect69,First71,PgSelectRows72,PgSelectSingle73,Node90,Lambda91,Constant246 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 19, 33, 41, 49, 57

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Constant19,Constant33,Constant41,Constant49,Constant57,Lambda66,Access67,PgSelect69,First71,PgSelectRows72,PgSelectSingle73,PgClassExpression74,List76,Lambda77,PgClassExpression78,PgClassExpression79,PgSelect80,First82,PgSelectRows83,PgSelectSingle84,PgClassExpression85,PgClassExpression86,Node88,Lambda89,Constant244 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 19, 11, 33, 41, 49, 57

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 19, 12, 33, 41, 49, 57

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression22,PgClassExpression23 bucket1 + Bucket2("Bucket 2 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 19, 18, 11, 23, 33, 41, 49, 57, 17, 22
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[24]
ᐳ: 20, 34, 42, 50, 58, 21, 35, 43, 51, 59
2: PgSelectRows[29]
ᐳ: 28, 30, 31, 32"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression22,PgClassExpression23 bucket2 - Bucket3("Bucket 3 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 19, 18, 12, 23, 33, 41, 49, 57, 17, 22
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[24]
ᐳ: 20, 34, 42, 50, 58, 21, 35, 43, 51, 59
2: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket + class Bucket2,List20,Lambda21,PgSelect24,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,PgClassExpression32,List34,Lambda35,List42,Lambda43,List50,Lambda51,List58,Lambda59 bucket2 + Bucket3("Bucket 3 (polymorphic)
SingleTableTopic,Person,LogEntry,Organization,AwsApplication,GcpApplication,RelationalItemRelation,RelationalItemRelationCompositePk,SingleTableItemRelation,SingleTableItemRelationCompositePk,SingleTablePost,Priority,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem,RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem,Query,FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 11, 41, 89, 88, 4
ᐳSingleTableTopic
ᐳPerson
ᐳLogEntry
ᐳOrganization
ᐳAwsApplication
ᐳGcpApplication
ᐳRelationalItemRelation
ᐳRelationalItemRelationCompositePk
ᐳSingleTableItemRelation
ᐳSingleTableItemRelationCompositePk
ᐳSingleTablePost
ᐳPriority
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem
ᐳQuery
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1:
ᐳ: Access[245], Access[246]
2: 93, 101, 107, 113, 119, 125, 131, 139, 145, 152, 164, 202, 208, 214, 220, 226, 233, 239
3: 98, 104, 110, 116, 122, 128, 134, 142, 148, 155, 167, 205, 211, 217, 223, 229, 236, 242
ᐳ: 97, 99, 103, 105, 109, 111, 115, 117, 121, 123, 127, 129, 133, 135, 141, 143, 147, 149, 154, 156, 166, 168, 175, 178, 179, 180, 181, 204, 206, 210, 212, 216, 218, 222, 224, 228, 230, 235, 237, 241, 243
4: PgSelect[182]
5: PgSelectRows[185]
ᐳ: 184, 186, 187, 188"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,List20,Lambda21,PgSelect24,First28,PgSelectRows29,PgSelectSingle30,List34,Lambda35,List42,Lambda43,List50,Lambda51,List58,Lambda59 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸsingle_table_itemsᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression31,PgClassExpression32 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 73, 41, 12

ROOT PgSelectSingleᐸsingle_table_itemsᐳ[73]
1:
ᐳ: 74, 78, 79, 76, 77
2: PgSelect[80]
3: PgSelectRows[85]
ᐳ: First[84], PgSelectSingle[86]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression74,List76,Lambda77,PgClassExpression78,PgClassExpression79,PgSelect80,First84,PgSelectRows85,PgSelectSingle86 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 86

ROOT PgSelectSingle{5}ᐸsingle_table_itemsᐳ[86]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression87,PgClassExpression88 bucket6 - Bucket7("Bucket 7 (polymorphic)
SingleTableTopic,Person,LogEntry,Organization,AwsApplication,GcpApplication,RelationalItemRelation,RelationalItemRelationCompositePk,SingleTableItemRelation,SingleTableItemRelationCompositePk,SingleTablePost,Priority,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem,RelationalTopic,RelationalPost,RelationalDivider,RelationalChecklist,RelationalChecklistItem,Query,FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 12, 41, 91, 90, 4
ᐳSingleTableTopic
ᐳPerson
ᐳLogEntry
ᐳOrganization
ᐳAwsApplication
ᐳGcpApplication
ᐳRelationalItemRelation
ᐳRelationalItemRelationCompositePk
ᐳSingleTableItemRelation
ᐳSingleTableItemRelationCompositePk
ᐳSingleTablePost
ᐳPriority
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem
ᐳRelationalTopic
ᐳRelationalPost
ᐳRelationalDivider
ᐳRelationalChecklist
ᐳRelationalChecklistItem
ᐳQuery
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1:
ᐳ: Access[247], Access[248]
2: 95, 103, 109, 115, 121, 127, 133, 141, 147, 154, 166, 204, 210, 216, 222, 228, 235, 241
3: 100, 106, 112, 118, 124, 130, 136, 144, 150, 157, 169, 207, 213, 219, 225, 231, 238, 244
ᐳ: 99, 101, 105, 107, 111, 113, 117, 119, 123, 125, 129, 131, 135, 137, 143, 145, 149, 151, 156, 158, 168, 170, 177, 180, 181, 182, 183, 206, 208, 212, 214, 218, 220, 224, 226, 230, 232, 237, 239, 243, 245
4: PgSelect[184]
5: PgSelectRows[187]
ᐳ: First[186], PgSelectSingle[188]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgSelect95,First99,PgSelectRows100,PgSelectSingle101,PgSelect103,First105,PgSelectRows106,PgSelectSingle107,PgSelect109,First111,PgSelectRows112,PgSelectSingle113,PgSelect115,First117,PgSelectRows118,PgSelectSingle119,PgSelect121,First123,PgSelectRows124,PgSelectSingle125,PgSelect127,First129,PgSelectRows130,PgSelectSingle131,PgSelect133,First135,PgSelectRows136,PgSelectSingle137,PgSelect141,First143,PgSelectRows144,PgSelectSingle145,PgSelect147,First149,PgSelectRows150,PgSelectSingle151,PgSelect154,First156,PgSelectRows157,PgSelectSingle158,PgSelect166,First168,PgSelectRows169,PgSelectSingle170,PgClassExpression177,List180,Lambda181,PgClassExpression182,PgClassExpression183,PgSelect184,First186,PgSelectRows187,PgSelectSingle188,PgSelect204,First206,PgSelectRows207,PgSelectSingle208,PgSelect210,First212,PgSelectRows213,PgSelectSingle214,PgSelect216,First218,PgSelectRows219,PgSelectSingle220,PgSelect222,First224,PgSelectRows225,PgSelectSingle226,PgSelect228,First230,PgSelectRows231,PgSelectSingle232,PgSelect235,First237,PgSelectRows238,PgSelectSingle239,PgSelect241,First243,PgSelectRows244,PgSelectSingle245,Access247,Access248 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 188

ROOT PgSelectSingle{7}ᐸsingle_table_itemsᐳ[188]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression189,PgClassExpression190 bucket8 - Bucket0 --> Bucket1 & Bucket5 & Bucket7 + class Bucket3,PgSelect93,First97,PgSelectRows98,PgSelectSingle99,PgSelect101,First103,PgSelectRows104,PgSelectSingle105,PgSelect107,First109,PgSelectRows110,PgSelectSingle111,PgSelect113,First115,PgSelectRows116,PgSelectSingle117,PgSelect119,First121,PgSelectRows122,PgSelectSingle123,PgSelect125,First127,PgSelectRows128,PgSelectSingle129,PgSelect131,First133,PgSelectRows134,PgSelectSingle135,PgSelect139,First141,PgSelectRows142,PgSelectSingle143,PgSelect145,First147,PgSelectRows148,PgSelectSingle149,PgSelect152,First154,PgSelectRows155,PgSelectSingle156,PgSelect164,First166,PgSelectRows167,PgSelectSingle168,PgClassExpression175,List178,Lambda179,PgClassExpression180,PgClassExpression181,PgSelect182,First184,PgSelectRows185,PgSelectSingle186,PgClassExpression187,PgClassExpression188,PgSelect202,First204,PgSelectRows205,PgSelectSingle206,PgSelect208,First210,PgSelectRows211,PgSelectSingle212,PgSelect214,First216,PgSelectRows217,PgSelectSingle218,PgSelect220,First222,PgSelectRows223,PgSelectSingle224,PgSelect226,First228,PgSelectRows229,PgSelectSingle230,PgSelect233,First235,PgSelectRows236,PgSelectSingle237,PgSelect239,First241,PgSelectRows242,PgSelectSingle243,Access245,Access246 bucket3 + Bucket0 --> Bucket1 & Bucket3 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/simple-single-table-items-root-topic.sql b/postgraphile/postgraphile/__tests__/queries/polymorphic/simple-single-table-items-root-topic.sql index bb39a7842a..718c6bc5aa 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/simple-single-table-items-root-topic.sql +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/simple-single-table-items-root-topic.sql @@ -3,16 +3,16 @@ select __single_table_items__."type"::text as "1", __single_table_items__."root_topic_id"::text as "2" from "polymorphic"."single_table_items" as __single_table_items__ -where ( - __single_table_items__."id" = $1::"int4" -); +order by __single_table_items__."id" asc; select __single_table_items__."id"::text as "0", __single_table_items__."type"::text as "1", __single_table_items__."root_topic_id"::text as "2" from "polymorphic"."single_table_items" as __single_table_items__ -order by __single_table_items__."id" asc; +where ( + __single_table_items__."id" = $1::"int4" +); select __single_table_items__."id"::text as "0", diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/single-table-items-and-children.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/single-table-items-and-children.mermaid index 38eb9eb95e..2866a21ed7 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/single-table-items-and-children.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/single-table-items-and-children.mermaid @@ -9,76 +9,73 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸsingle_table_itemsᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸsingle_table_itemsᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸsingle_table_itemsᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__single_t...ems__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈2]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__single_t...s__.”type”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression19 - PgSelect20[["PgSelect[20∈3]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan - Object12 & PgClassExpression18 --> PgSelect20 - PgSelectRows24[["PgSelectRows[24∈3]"]]:::plan + PgSelect20[["PgSelect[20∈2]
ᐸsingle_table_itemsᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"]]:::plan + Object11 & PgClassExpression18 --> PgSelect20 + PgSelectRows24[["PgSelectRows[24∈2]"]]:::plan PgSelect20 --> PgSelectRows24 - __Item25[/"__Item[25∈4]
ᐸ24ᐳ
ᐳSingleTableTopic"\]:::itemplan + __Item25[/"__Item[25∈3]
ᐸ24ᐳ
ᐳSingleTableTopic"\]:::itemplan PgSelectRows24 ==> __Item25 - PgSelectSingle26{{"PgSelectSingle[26∈4]
ᐸsingle_table_itemsᐳ"}}:::plan + PgSelectSingle26{{"PgSelectSingle[26∈3]
ᐸsingle_table_itemsᐳ"}}:::plan __Item25 --> PgSelectSingle26 - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__single_t...ems__.”id”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__single_t...ems__.”id”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan PgSelectSingle26 --> PgClassExpression27 - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__single_t...”position”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan + PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ__single_t...”position”ᐳ
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem"}}:::plan PgSelectSingle26 --> PgClassExpression28 %% define steps subgraph "Buckets for queries/polymorphic/single-table-items-and-children" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 11, 12
2: PgSelect[14]
3: PgSelectRows[15]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 6

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 12

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19 bucket1 + Bucket2("Bucket 2 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 11, 18, 6, 17, 19
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[20]
2: PgSelectRows[24]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19 bucket2 - Bucket3("Bucket 3 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 12, 18, 17, 19
ᐳSingleTableTopic
ᐳSingleTablePost
ᐳSingleTableDivider
ᐳSingleTableChecklist
ᐳSingleTableChecklistItem

1: PgSelect[20]
2: PgSelectRows[24]"):::bucket + class Bucket2,PgSelect20,PgSelectRows24 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ24ᐳ[25]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgSelect20,PgSelectRows24 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ24ᐳ[25]"):::bucket + class Bucket3,__Item25,PgSelectSingle26,PgClassExpression27,PgClassExpression28 bucket3 + Bucket4("Bucket 4 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 26, 27, 28
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item25,PgSelectSingle26,PgClassExpression27,PgClassExpression28 bucket4 - Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 26, 27, 28
ᐳSingleTableTopicᐳSingleTableTopic
ᐳSingleTableTopicᐳSingleTablePost
ᐳSingleTableTopicᐳSingleTableDivider
ᐳSingleTableTopicᐳSingleTableChecklist
ᐳSingleTableTopicᐳSingleTableChecklistItem"):::bucket + class Bucket4 bucket4 + Bucket5("Bucket 5 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 26, 27, 28
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem"):::bucket classDef bucket5 stroke:#7fff00 class Bucket5 bucket5 - Bucket6("Bucket 6 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 26, 27, 28
ᐳSingleTablePostᐳSingleTableTopic
ᐳSingleTablePostᐳSingleTablePost
ᐳSingleTablePostᐳSingleTableDivider
ᐳSingleTablePostᐳSingleTableChecklist
ᐳSingleTablePostᐳSingleTableChecklistItem"):::bucket + Bucket6("Bucket 6 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 26, 27, 28
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem"):::bucket classDef bucket6 stroke:#ff1493 class Bucket6 bucket6 - Bucket7("Bucket 7 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 26, 27, 28
ᐳSingleTableDividerᐳSingleTableTopic
ᐳSingleTableDividerᐳSingleTablePost
ᐳSingleTableDividerᐳSingleTableDivider
ᐳSingleTableDividerᐳSingleTableChecklist
ᐳSingleTableDividerᐳSingleTableChecklistItem"):::bucket + Bucket7("Bucket 7 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 26, 27, 28
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem"):::bucket classDef bucket7 stroke:#808000 class Bucket7 bucket7 - Bucket8("Bucket 8 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 26, 27, 28
ᐳSingleTableChecklistᐳSingleTableTopic
ᐳSingleTableChecklistᐳSingleTablePost
ᐳSingleTableChecklistᐳSingleTableDivider
ᐳSingleTableChecklistᐳSingleTableChecklist
ᐳSingleTableChecklistᐳSingleTableChecklistItem"):::bucket + Bucket8("Bucket 8 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 26, 27, 28
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"):::bucket classDef bucket8 stroke:#dda0dd class Bucket8 bucket8 - Bucket9("Bucket 9 (polymorphic)
SingleTableTopic,SingleTablePost,SingleTableDivider,SingleTableChecklist,SingleTableChecklistItem
Deps: 26, 27, 28
ᐳSingleTableChecklistItemᐳSingleTableTopic
ᐳSingleTableChecklistItemᐳSingleTablePost
ᐳSingleTableChecklistItemᐳSingleTableDivider
ᐳSingleTableChecklistItemᐳSingleTableChecklist
ᐳSingleTableChecklistItemᐳSingleTableChecklistItem"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9 bucket9 Bucket0 --> Bucket1 Bucket1 --> Bucket2 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 + Bucket3 --> Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns-ordering.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns-ordering.mermaid index 5b9db4c295..0453a58055 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns-ordering.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns-ordering.mermaid @@ -9,82 +9,81 @@ graph TD %% plan dependencies - Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access11 & Access12 --> Object13 + PgUnionAll15[["PgUnionAll[15∈0] ➊"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Constant13{{"Constant[13∈0] ➊
ᐸ[Function: applyInputConstant]ᐳ"}}:::plan + Lambda14[["Lambda[14∈0] ➊
ᐸlimitToTypesᐳ"]]:::unbatchedplan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Lambda14 -->|rejectNull| PgUnionAll15 + Object11 & Constant13 & Connection12 --> PgUnionAll15 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access11 - __Value2 --> Access12 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - PgUnionAll15[["PgUnionAll[15∈1] ➊"]]:::plan - Object13 & Connection14 --> PgUnionAll15 - Access45{{"Access[45∈1] ➊
ᐸ15.itemsᐳ"}}:::plan + __Value2 --> Access9 + __Value2 --> Access10 + Access45{{"Access[45∈0] ➊
ᐸ15.itemsᐳ"}}:::plan PgUnionAll15 --> Access45 - __Item17[/"__Item[17∈2]
ᐸ45ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item17[/"__Item[17∈1]
ᐸ45ᐳ"\]:::itemplan Access45 ==> __Item17 - PgUnionAllSingle18["PgUnionAllSingle[18∈2]"]:::plan + PgUnionAllSingle18["PgUnionAllSingle[18∈1]"]:::plan __Item17 --> PgUnionAllSingle18 - Access19{{"Access[19∈2]
ᐸ18.1ᐳ"}}:::plan + Access19{{"Access[19∈1]
ᐸ18.1ᐳ"}}:::plan PgUnionAllSingle18 --> Access19 - PgSelect22[["PgSelect[22∈3]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access21{{"Access[21∈3]
ᐸ20.0ᐳ"}}:::plan - Object13 & Access21 --> PgSelect22 - PgSelect34[["PgSelect[34∈3]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access33{{"Access[33∈3]
ᐸ32.0ᐳ"}}:::plan - Object13 & Access33 --> PgSelect34 - JSONParse20[["JSONParse[20∈3]
ᐸ19ᐳ
ᐳFirstPartyVulnerability"]]:::plan + PgSelect22[["PgSelect[22∈2]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access21{{"Access[21∈2]
ᐸ20.0ᐳ"}}:::plan + Object11 & Access21 --> PgSelect22 + PgSelect34[["PgSelect[34∈2]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access33{{"Access[33∈2]
ᐸ32.0ᐳ"}}:::plan + Object11 & Access33 --> PgSelect34 + JSONParse20[["JSONParse[20∈2]
ᐸ19ᐳ
ᐳFirstPartyVulnerability"]]:::plan Access19 --> JSONParse20 JSONParse20 --> Access21 - First26{{"First[26∈3]"}}:::plan - PgSelectRows27[["PgSelectRows[27∈3]"]]:::plan + First26{{"First[26∈2]"}}:::plan + PgSelectRows27[["PgSelectRows[27∈2]"]]:::plan PgSelectRows27 --> First26 PgSelect22 --> PgSelectRows27 - PgSelectSingle28{{"PgSelectSingle[28∈3]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle28{{"PgSelectSingle[28∈2]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan First26 --> PgSelectSingle28 - PgClassExpression29{{"PgClassExpression[29∈3]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression29{{"PgClassExpression[29∈2]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle28 --> PgClassExpression29 - PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle28 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan PgSelectSingle28 --> PgClassExpression31 - JSONParse32[["JSONParse[32∈3]
ᐸ19ᐳ
ᐳThirdPartyVulnerability"]]:::plan + JSONParse32[["JSONParse[32∈2]
ᐸ19ᐳ
ᐳThirdPartyVulnerability"]]:::plan Access19 --> JSONParse32 JSONParse32 --> Access33 - First36{{"First[36∈3]"}}:::plan - PgSelectRows37[["PgSelectRows[37∈3]"]]:::plan + First36{{"First[36∈2]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈2]"]]:::plan PgSelectRows37 --> First36 PgSelect34 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈3]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + PgSelectSingle38{{"PgSelectSingle[38∈2]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈3]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgClassExpression39{{"PgClassExpression[39∈2]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgClassExpression40{{"PgClassExpression[40∈2]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan PgSelectSingle38 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈3]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan PgSelectSingle38 --> PgClassExpression41 - PgClassExpression42{{"PgClassExpression[42∈3]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan PgSelectSingle38 --> PgClassExpression42 - PgClassExpression44{{"PgClassExpression[44∈3]
ᐸ”polymorph...ilities__)ᐳ"}}:::plan + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ”polymorph...ilities__)ᐳ"}}:::plan PgSelectSingle38 --> PgClassExpression44 %% define steps subgraph "Buckets for queries/polymorphic/vulns-ordering" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 13, 11, 12
2: Lambda[14]
3: PgUnionAll[15]
ᐳ: Access[45]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14

ROOT Connectionᐸ10ᐳ[14]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,Constant13,Lambda14,PgUnionAll15,Access45 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11

ROOT __Item{1}ᐸ45ᐳ[17]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUnionAll15,Access45 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 13

ROOT __Item{2}ᐸ45ᐳ[17]"):::bucket + class Bucket1,__Item17,PgUnionAllSingle18,Access19 bucket1 + Bucket2("Bucket 2 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 19, 11, 18
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[20], JSONParse[32]
ᐳ: Access[21], Access[33]
2: PgSelect[22], PgSelect[34]
3: PgSelectRows[27], PgSelectRows[37]
ᐳ: 26, 28, 29, 30, 31, 36, 38, 39, 40, 41, 42, 44"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item17,PgUnionAllSingle18,Access19 bucket2 - Bucket3("Bucket 3 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 19, 13, 18
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[20], JSONParse[32]
ᐳ: Access[21], Access[33]
2: PgSelect[22], PgSelect[34]
3: PgSelectRows[27], PgSelectRows[37]
ᐳ: 26, 28, 29, 30, 31, 36, 38, 39, 40, 41, 42, 44"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,JSONParse20,Access21,PgSelect22,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression29,PgClassExpression30,PgClassExpression31,JSONParse32,Access33,PgSelect34,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40,PgClassExpression41,PgClassExpression42,PgClassExpression44 bucket3 + class Bucket2,JSONParse20,Access21,PgSelect22,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression29,PgClassExpression30,PgClassExpression31,JSONParse32,Access33,PgSelect34,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40,PgClassExpression41,PgClassExpression42,PgClassExpression44 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.mermaid index b44aa15c5e..12be014f74 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.mermaid @@ -9,202 +9,202 @@ graph TD %% plan dependencies - PgUnionAll79[["PgUnionAll[79∈0] ➊"]]:::plan - Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant113{{"Constant[113∈0] ➊
ᐸ3ᐳ"}}:::plan - Constant115{{"Constant[115∈0] ➊
ᐸ1ᐳ"}}:::plan - Object14 & Constant113 & Constant115 --> PgUnionAll79 - Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant113 & Lambda16 --> Connection15 + PgUnionAll18[["PgUnionAll[18∈0] ➊"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Constant16{{"Constant[16∈0] ➊
ᐸ[Function: applyInputConstant]ᐳ"}}:::plan + Lambda17[["Lambda[17∈0] ➊
ᐸlimitToTypesᐳ"]]:::unbatchedplan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant114{{"Constant[114∈0] ➊
ᐸ3ᐳ"}}:::plan + Lambda17 -->|rejectNull| PgUnionAll18 + Object13 & Constant16 & Connection14 & Lambda15 & Constant114 --> PgUnionAll18 + PgUnionAll55[["PgUnionAll[55∈0] ➊"]]:::plan + Lambda17 -->|rejectNull| PgUnionAll55 + Object13 & Constant16 & Connection14 & Lambda15 & Constant114 --> PgUnionAll55 + PgUnionAll61[["PgUnionAll[61∈0] ➊"]]:::plan + Lambda17 -->|rejectNull| PgUnionAll61 + Object13 & Constant16 & Connection14 & Lambda15 & Constant114 --> PgUnionAll61 + PgUnionAll67[["PgUnionAll[67∈0] ➊"]]:::plan + Lambda17 -->|rejectNull| PgUnionAll67 + Object13 & Constant16 & Connection14 & Lambda15 & Constant114 --> PgUnionAll67 + PgUnionAll71[["PgUnionAll[71∈0] ➊"]]:::plan + Lambda17 -->|rejectNull| PgUnionAll71 + Object13 & Constant16 & Connection14 & Lambda15 & Constant114 --> PgUnionAll71 + PgUnionAll78[["PgUnionAll[78∈0] ➊"]]:::plan + Constant116{{"Constant[116∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant80{{"Constant[80∈0] ➊
ᐸ[Function: applyInputConstant]ᐳ"}}:::plan + Object13 & Constant114 & Constant116 & Constant80 & Lambda17 --> PgUnionAll78 + Constant114 & Lambda15 --> Connection14 + PgUnionAll48[["PgUnionAll[48∈0] ➊"]]:::plan + Lambda17 -->|rejectNull| PgUnionAll48 + Object13 & Constant16 & Connection14 --> PgUnionAll48 + Object73{{"Object[73∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access72{{"Access[72∈0] ➊
ᐸ71.hasMoreᐳ"}}:::plan + Constant114 & Access72 --> Object73 + Object69{{"Object[69∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access68{{"Access[68∈0] ➊
ᐸ67.hasMoreᐳ"}}:::plan + Constant114 & Access68 --> Object69 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 + PgCursor60{{"PgCursor[60∈0] ➊"}}:::plan + PgUnionAllSingle58["PgUnionAllSingle[58∈0] ➊"]:::plan + Access59{{"Access[59∈0] ➊
ᐸ55.cursorDetailsᐳ"}}:::plan + PgUnionAllSingle58 & Access59 --> PgCursor60 + PgCursor66{{"PgCursor[66∈0] ➊"}}:::plan + PgUnionAllSingle64["PgUnionAllSingle[64∈0] ➊"]:::plan + Access65{{"Access[65∈0] ➊
ᐸ61.cursorDetailsᐳ"}}:::plan + PgUnionAllSingle64 & Access65 --> PgCursor66 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access11 __Value2 --> Access12 - __Value2 --> Access13 - Constant114{{"Constant[114∈0] ➊
ᐸ'WyJkNGRlODQ2NjQ3IiwiMTAiLCJUaGlyZFBhcnR5VnVsbmVyYWJpbGl0eSIᐳ"}}:::plan - Constant114 --> Lambda16 - Access112{{"Access[112∈0] ➊
ᐸ79.itemsᐳ"}}:::plan - PgUnionAll79 --> Access112 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant7{{"Constant[7∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgUnionAll17[["PgUnionAll[17∈1] ➊"]]:::plan - Object14 & Connection15 & Lambda16 & Constant113 --> PgUnionAll17 - PgUnionAll54[["PgUnionAll[54∈1] ➊"]]:::plan - Object14 & Connection15 & Lambda16 & Constant113 --> PgUnionAll54 - PgUnionAll60[["PgUnionAll[60∈1] ➊"]]:::plan - Object14 & Connection15 & Lambda16 & Constant113 --> PgUnionAll60 - PgUnionAll67[["PgUnionAll[67∈1] ➊"]]:::plan - Object14 & Connection15 & Lambda16 & Constant113 --> PgUnionAll67 - PgUnionAll71[["PgUnionAll[71∈1] ➊"]]:::plan - Object14 & Connection15 & Lambda16 & Constant113 --> PgUnionAll71 - Object73{{"Object[73∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access72{{"Access[72∈1] ➊
ᐸ71.hasMoreᐳ"}}:::plan - Constant113 & Constant7 & Constant7 & Access72 --> Object73 - Object69{{"Object[69∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Access68{{"Access[68∈1] ➊
ᐸ67.hasMoreᐳ"}}:::plan - Constant113 & Constant7 & Access68 --> Object69 - PgUnionAll47[["PgUnionAll[47∈1] ➊"]]:::plan - Object14 & Connection15 --> PgUnionAll47 - PgCursor59{{"PgCursor[59∈1] ➊"}}:::plan - PgUnionAllSingle57["PgUnionAllSingle[57∈1] ➊"]:::plan - Access58{{"Access[58∈1] ➊
ᐸ54.cursorDetailsᐳ"}}:::plan - PgUnionAllSingle57 & Access58 --> PgCursor59 - PgCursor65{{"PgCursor[65∈1] ➊"}}:::plan - PgUnionAllSingle63["PgUnionAllSingle[63∈1] ➊"]:::plan - Access64{{"Access[64∈1] ➊
ᐸ60.cursorDetailsᐳ"}}:::plan - PgUnionAllSingle63 & Access64 --> PgCursor65 - Access21{{"Access[21∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan - PgUnionAll17 --> Access21 - First48{{"First[48∈1] ➊"}}:::plan - Access109{{"Access[109∈1] ➊
ᐸ47.itemsᐳ"}}:::plan - Access109 --> First48 - PgUnionAllSingle50["PgUnionAllSingle[50∈1] ➊"]:::plan - First48 --> PgUnionAllSingle50 - PgClassExpression51{{"PgClassExpression[51∈1] ➊
ᐸcount(*)ᐳ"}}:::plan - PgUnionAllSingle50 --> PgClassExpression51 - PgPageInfo53{{"PgPageInfo[53∈1] ➊"}}:::plan - Connection15 --> PgPageInfo53 - First55{{"First[55∈1] ➊"}}:::plan - Access110{{"Access[110∈1] ➊
ᐸ54.itemsᐳ"}}:::plan - Access110 --> First55 - First55 --> PgUnionAllSingle57 - PgUnionAll54 --> Access58 - Last61{{"Last[61∈1] ➊"}}:::plan - Access111{{"Access[111∈1] ➊
ᐸ60.itemsᐳ"}}:::plan - Access111 --> Last61 - Last61 --> PgUnionAllSingle63 - PgUnionAll60 --> Access64 + Constant115{{"Constant[115∈0] ➊
ᐸ'WyJkNGRlODQ2NjQ3IiwiMTAiLCJUaGlyZFBhcnR5VnVsbmVyYWJpbGl0eSIᐳ"}}:::plan + Constant115 --> Lambda15 + Access22{{"Access[22∈0] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan + PgUnionAll18 --> Access22 + First49{{"First[49∈0] ➊"}}:::plan + Access110{{"Access[110∈0] ➊
ᐸ48.itemsᐳ"}}:::plan + Access110 --> First49 + PgUnionAllSingle51["PgUnionAllSingle[51∈0] ➊"]:::plan + First49 --> PgUnionAllSingle51 + PgClassExpression52{{"PgClassExpression[52∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgUnionAllSingle51 --> PgClassExpression52 + PgPageInfo54{{"PgPageInfo[54∈0] ➊"}}:::plan + Connection14 --> PgPageInfo54 + First56{{"First[56∈0] ➊"}}:::plan + Access111{{"Access[111∈0] ➊
ᐸ55.itemsᐳ"}}:::plan + Access111 --> First56 + First56 --> PgUnionAllSingle58 + PgUnionAll55 --> Access59 + Last62{{"Last[62∈0] ➊"}}:::plan + Access112{{"Access[112∈0] ➊
ᐸ61.itemsᐳ"}}:::plan + Access112 --> Last62 + Last62 --> PgUnionAllSingle64 + PgUnionAll61 --> Access65 PgUnionAll67 --> Access68 - Lambda70{{"Lambda[70∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Lambda70{{"Lambda[70∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object69 --> Lambda70 PgUnionAll71 --> Access72 - Lambda74{{"Lambda[74∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda74{{"Lambda[74∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object73 --> Lambda74 - Access108{{"Access[108∈1] ➊
ᐸ17.itemsᐳ"}}:::plan - PgUnionAll17 --> Access108 - PgUnionAll47 --> Access109 - PgUnionAll54 --> Access110 - PgUnionAll60 --> Access111 - __Item19[/"__Item[19∈2]
ᐸ108ᐳ"\]:::itemplan - Access108 ==> __Item19 - PgUnionAllSingle20["PgUnionAllSingle[20∈2]"]:::plan - __Item19 --> PgUnionAllSingle20 - PgCursor22{{"PgCursor[22∈3]"}}:::plan - PgUnionAllSingle20 & Access21 --> PgCursor22 - Access23{{"Access[23∈3]
ᐸ20.1ᐳ"}}:::plan - PgUnionAllSingle20 --> Access23 - PgSelect26[["PgSelect[26∈4]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access25{{"Access[25∈4]
ᐸ24.0ᐳ"}}:::plan - Object14 & Access25 --> PgSelect26 - PgSelect38[["PgSelect[38∈4]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access37{{"Access[37∈4]
ᐸ36.0ᐳ"}}:::plan - Object14 & Access37 --> PgSelect38 - JSONParse24[["JSONParse[24∈4]
ᐸ23ᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access23 --> JSONParse24 - JSONParse24 --> Access25 - First30{{"First[30∈4]"}}:::plan - PgSelectRows31[["PgSelectRows[31∈4]"]]:::plan - PgSelectRows31 --> First30 - PgSelect26 --> PgSelectRows31 - PgSelectSingle32{{"PgSelectSingle[32∈4]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan - First30 --> PgSelectSingle32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle32 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle32 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan - PgSelectSingle32 --> PgClassExpression35 - JSONParse36[["JSONParse[36∈4]
ᐸ23ᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access23 --> JSONParse36 - JSONParse36 --> Access37 - First40{{"First[40∈4]"}}:::plan - PgSelectRows41[["PgSelectRows[41∈4]"]]:::plan - PgSelectRows41 --> First40 - PgSelect38 --> PgSelectRows41 - PgSelectSingle42{{"PgSelectSingle[42∈4]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan - First40 --> PgSelectSingle42 - PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle42 --> PgClassExpression43 - PgClassExpression44{{"PgClassExpression[44∈4]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle42 --> PgClassExpression44 - PgClassExpression45{{"PgClassExpression[45∈4]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan - PgSelectSingle42 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈4]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan - PgSelectSingle42 --> PgClassExpression46 - __Item82[/"__Item[82∈5]
ᐸ112ᐳ"\]:::itemplan - Access112 ==> __Item82 - PgUnionAllSingle83["PgUnionAllSingle[83∈5]"]:::plan - __Item82 --> PgUnionAllSingle83 - Access84{{"Access[84∈5]
ᐸ83.1ᐳ"}}:::plan - PgUnionAllSingle83 --> Access84 - PgSelect87[["PgSelect[87∈6]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access86{{"Access[86∈6]
ᐸ85.0ᐳ"}}:::plan - Object14 & Access86 --> PgSelect87 - PgSelect99[["PgSelect[99∈6]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access98{{"Access[98∈6]
ᐸ97.0ᐳ"}}:::plan - Object14 & Access98 --> PgSelect99 - JSONParse85[["JSONParse[85∈6]
ᐸ84ᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access84 --> JSONParse85 - JSONParse85 --> Access86 - First91{{"First[91∈6]"}}:::plan - PgSelectRows92[["PgSelectRows[92∈6]"]]:::plan - PgSelectRows92 --> First91 - PgSelect87 --> PgSelectRows92 - PgSelectSingle93{{"PgSelectSingle[93∈6]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan - First91 --> PgSelectSingle93 - PgClassExpression94{{"PgClassExpression[94∈6]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression94 - PgClassExpression95{{"PgClassExpression[95∈6]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression95 - PgClassExpression96{{"PgClassExpression[96∈6]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression96 - JSONParse97[["JSONParse[97∈6]
ᐸ84ᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access84 --> JSONParse97 - JSONParse97 --> Access98 - First101{{"First[101∈6]"}}:::plan - PgSelectRows102[["PgSelectRows[102∈6]"]]:::plan - PgSelectRows102 --> First101 - PgSelect99 --> PgSelectRows102 - PgSelectSingle103{{"PgSelectSingle[103∈6]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan - First101 --> PgSelectSingle103 - PgClassExpression104{{"PgClassExpression[104∈6]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan - PgSelectSingle103 --> PgClassExpression104 - PgClassExpression105{{"PgClassExpression[105∈6]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle103 --> PgClassExpression105 - PgClassExpression106{{"PgClassExpression[106∈6]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan - PgSelectSingle103 --> PgClassExpression106 - PgClassExpression107{{"PgClassExpression[107∈6]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan - PgSelectSingle103 --> PgClassExpression107 + Access109{{"Access[109∈0] ➊
ᐸ18.itemsᐳ"}}:::plan + PgUnionAll18 --> Access109 + PgUnionAll48 --> Access110 + PgUnionAll55 --> Access111 + PgUnionAll61 --> Access112 + Access113{{"Access[113∈0] ➊
ᐸ78.itemsᐳ"}}:::plan + PgUnionAll78 --> Access113 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor23{{"PgCursor[23∈1]"}}:::plan + PgUnionAllSingle21["PgUnionAllSingle[21∈1]"]:::plan + PgUnionAllSingle21 & Access22 --> PgCursor23 + __Item20[/"__Item[20∈1]
ᐸ109ᐳ"\]:::itemplan + Access109 ==> __Item20 + __Item20 --> PgUnionAllSingle21 + Access24{{"Access[24∈1]
ᐸ21.1ᐳ"}}:::plan + PgUnionAllSingle21 --> Access24 + PgSelect27[["PgSelect[27∈2]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access26{{"Access[26∈2]
ᐸ25.0ᐳ"}}:::plan + Object13 & Access26 --> PgSelect27 + PgSelect39[["PgSelect[39∈2]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access38{{"Access[38∈2]
ᐸ37.0ᐳ"}}:::plan + Object13 & Access38 --> PgSelect39 + JSONParse25[["JSONParse[25∈2]
ᐸ24ᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access24 --> JSONParse25 + JSONParse25 --> Access26 + First31{{"First[31∈2]"}}:::plan + PgSelectRows32[["PgSelectRows[32∈2]"]]:::plan + PgSelectRows32 --> First31 + PgSelect27 --> PgSelectRows32 + PgSelectSingle33{{"PgSelectSingle[33∈2]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + First31 --> PgSelectSingle33 + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression34 + PgClassExpression35{{"PgClassExpression[35∈2]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression35 + PgClassExpression36{{"PgClassExpression[36∈2]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression36 + JSONParse37[["JSONParse[37∈2]
ᐸ24ᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access24 --> JSONParse37 + JSONParse37 --> Access38 + First41{{"First[41∈2]"}}:::plan + PgSelectRows42[["PgSelectRows[42∈2]"]]:::plan + PgSelectRows42 --> First41 + PgSelect39 --> PgSelectRows42 + PgSelectSingle43{{"PgSelectSingle[43∈2]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + First41 --> PgSelectSingle43 + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression44 + PgClassExpression45{{"PgClassExpression[45∈2]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression45 + PgClassExpression46{{"PgClassExpression[46∈2]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression46 + PgClassExpression47{{"PgClassExpression[47∈2]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression47 + __Item83[/"__Item[83∈3]
ᐸ113ᐳ"\]:::itemplan + Access113 ==> __Item83 + PgUnionAllSingle84["PgUnionAllSingle[84∈3]"]:::plan + __Item83 --> PgUnionAllSingle84 + Access85{{"Access[85∈3]
ᐸ84.1ᐳ"}}:::plan + PgUnionAllSingle84 --> Access85 + PgSelect88[["PgSelect[88∈4]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access87{{"Access[87∈4]
ᐸ86.0ᐳ"}}:::plan + Object13 & Access87 --> PgSelect88 + PgSelect100[["PgSelect[100∈4]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access99{{"Access[99∈4]
ᐸ98.0ᐳ"}}:::plan + Object13 & Access99 --> PgSelect100 + JSONParse86[["JSONParse[86∈4]
ᐸ85ᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access85 --> JSONParse86 + JSONParse86 --> Access87 + First92{{"First[92∈4]"}}:::plan + PgSelectRows93[["PgSelectRows[93∈4]"]]:::plan + PgSelectRows93 --> First92 + PgSelect88 --> PgSelectRows93 + PgSelectSingle94{{"PgSelectSingle[94∈4]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + First92 --> PgSelectSingle94 + PgClassExpression95{{"PgClassExpression[95∈4]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle94 --> PgClassExpression95 + PgClassExpression96{{"PgClassExpression[96∈4]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle94 --> PgClassExpression96 + PgClassExpression97{{"PgClassExpression[97∈4]
ᐸ__first_pa...vss_score”ᐳ"}}:::plan + PgSelectSingle94 --> PgClassExpression97 + JSONParse98[["JSONParse[98∈4]
ᐸ85ᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access85 --> JSONParse98 + JSONParse98 --> Access99 + First102{{"First[102∈4]"}}:::plan + PgSelectRows103[["PgSelectRows[103∈4]"]]:::plan + PgSelectRows103 --> First102 + PgSelect100 --> PgSelectRows103 + PgSelectSingle104{{"PgSelectSingle[104∈4]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + First102 --> PgSelectSingle104 + PgClassExpression105{{"PgClassExpression[105∈4]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + PgSelectSingle104 --> PgClassExpression105 + PgClassExpression106{{"PgClassExpression[106∈4]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle104 --> PgClassExpression106 + PgClassExpression107{{"PgClassExpression[107∈4]
ᐸ__third_pa...vss_score”ᐳ"}}:::plan + PgSelectSingle104 --> PgClassExpression107 + PgClassExpression108{{"PgClassExpression[108∈4]
ᐸ__third_pa...ndor_name”ᐳ"}}:::plan + PgSelectSingle104 --> PgClassExpression108 %% define steps subgraph "Buckets for queries/polymorphic/vulns" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 12, 13, 113, 114, 115, 14, 16, 15
2: PgUnionAll[79]
ᐳ: Access[112]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 11, 12, 16, 80, 114, 115, 116, 13, 15, 14, 54
2: Lambda[17]
3: 18, 48, 55, 61, 67, 71, 78
ᐳ: 22, 59, 65, 68, 69, 70, 72, 73, 74, 109, 110, 111, 112, 113, 49, 56, 62
4: 51, 58, 64
ᐳ: 52, 60, 66"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant7,Access12,Access13,Object14,Connection15,Lambda16,PgUnionAll79,Access112,Constant113,Constant114,Constant115 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 113, 7

ROOT Connectionᐸ11ᐳ[15]
1: 17, 47, 54, 60, 67, 71
ᐳ: 53, 21, 58, 64, 68, 69, 70, 72, 73, 74, 108, 109, 110, 111, 48, 55, 61
2: 50, 57, 63
ᐳ: 51, 59, 65"):::bucket + class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14,Lambda15,Constant16,Lambda17,PgUnionAll18,Access22,PgUnionAll48,First49,PgUnionAllSingle51,PgClassExpression52,PgPageInfo54,PgUnionAll55,First56,PgUnionAllSingle58,Access59,PgCursor60,PgUnionAll61,Last62,PgUnionAllSingle64,Access65,PgCursor66,PgUnionAll67,Access68,Object69,Lambda70,PgUnionAll71,Access72,Object73,Lambda74,PgUnionAll78,Constant80,Access109,Access110,Access111,Access112,Access113,Constant114,Constant115,Constant116 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 22, 13

ROOT __Item{1}ᐸ109ᐳ[20]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUnionAll17,Access21,PgUnionAll47,First48,PgUnionAllSingle50,PgClassExpression51,PgPageInfo53,PgUnionAll54,First55,PgUnionAllSingle57,Access58,PgCursor59,PgUnionAll60,Last61,PgUnionAllSingle63,Access64,PgCursor65,PgUnionAll67,Access68,Object69,Lambda70,PgUnionAll71,Access72,Object73,Lambda74,Access108,Access109,Access110,Access111 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 21, 14

ROOT __Item{2}ᐸ108ᐳ[19]"):::bucket + class Bucket1,__Item20,PgUnionAllSingle21,PgCursor23,Access24 bucket1 + Bucket2("Bucket 2 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 24, 13, 21
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[25], JSONParse[37]
ᐳ: Access[26], Access[38]
2: PgSelect[27], PgSelect[39]
3: PgSelectRows[32], PgSelectRows[42]
ᐳ: 31, 33, 34, 35, 36, 41, 43, 44, 45, 46, 47"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgUnionAllSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 21, 14

ROOT PgUnionAllSingle{2}[20]"):::bucket + class Bucket2,JSONParse25,Access26,PgSelect27,First31,PgSelectRows32,PgSelectSingle33,PgClassExpression34,PgClassExpression35,PgClassExpression36,JSONParse37,Access38,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgClassExpression46,PgClassExpression47 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 13

ROOT __Item{3}ᐸ113ᐳ[83]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor22,Access23 bucket3 - Bucket4("Bucket 4 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 23, 14, 20
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[24], JSONParse[36]
ᐳ: Access[25], Access[37]
2: PgSelect[26], PgSelect[38]
3: PgSelectRows[31], PgSelectRows[41]
ᐳ: 30, 32, 33, 34, 35, 40, 42, 43, 44, 45, 46"):::bucket + class Bucket3,__Item83,PgUnionAllSingle84,Access85 bucket3 + Bucket4("Bucket 4 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 85, 13, 84
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[86], JSONParse[98]
ᐳ: Access[87], Access[99]
2: PgSelect[88], PgSelect[100]
3: PgSelectRows[93], PgSelectRows[103]
ᐳ: 92, 94, 95, 96, 97, 102, 104, 105, 106, 107, 108"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,JSONParse24,Access25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,JSONParse36,Access37,PgSelect38,First40,PgSelectRows41,PgSelectSingle42,PgClassExpression43,PgClassExpression44,PgClassExpression45,PgClassExpression46 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 14

ROOT __Item{5}ᐸ112ᐳ[82]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item82,PgUnionAllSingle83,Access84 bucket5 - Bucket6("Bucket 6 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 84, 14, 83
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[85], JSONParse[97]
ᐳ: Access[86], Access[98]
2: PgSelect[87], PgSelect[99]
3: PgSelectRows[92], PgSelectRows[102]
ᐳ: 91, 93, 94, 95, 96, 101, 103, 104, 105, 106, 107"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,JSONParse85,Access86,PgSelect87,First91,PgSelectRows92,PgSelectSingle93,PgClassExpression94,PgClassExpression95,PgClassExpression96,JSONParse97,Access98,PgSelect99,First101,PgSelectRows102,PgSelectSingle103,PgClassExpression104,PgClassExpression105,PgClassExpression106,PgClassExpression107 bucket6 - Bucket0 --> Bucket1 & Bucket5 + class Bucket4,JSONParse86,Access87,PgSelect88,First92,PgSelectRows93,PgSelectSingle94,PgClassExpression95,PgClassExpression96,PgClassExpression97,JSONParse98,Access99,PgSelect100,First102,PgSelectRows103,PgSelectSingle104,PgClassExpression105,PgClassExpression106,PgClassExpression107,PgClassExpression108 bucket4 + Bucket0 --> Bucket1 & Bucket3 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 Bucket3 --> Bucket4 - Bucket5 --> Bucket6 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.sql b/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.sql index 42b9a82e3c..df44652e86 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.sql +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.sql @@ -1,60 +1,3 @@ -select - __vulnerability__."0" as "0", - __vulnerability__."1"::text as "1", - __vulnerability__."2"::text as "2" -from ( - select - __first_party_vulnerabilities__."0", - __first_party_vulnerabilities__."1", - __first_party_vulnerabilities__."2", - "n" - from ( - select - 'FirstPartyVulnerability' as "0", - json_build_array((__first_party_vulnerabilities__."id")::text) as "1", - __first_party_vulnerabilities__."cvss_score" as "2", - row_number() over ( - order by - __first_party_vulnerabilities__."cvss_score" desc, - __first_party_vulnerabilities__."id" asc - ) as "n" - from "polymorphic"."first_party_vulnerabilities" as __first_party_vulnerabilities__ - order by - __first_party_vulnerabilities__."cvss_score" desc, - __first_party_vulnerabilities__."id" asc - limit 4 - ) as __first_party_vulnerabilities__ - union all - select - __third_party_vulnerabilities__."0", - __third_party_vulnerabilities__."1", - __third_party_vulnerabilities__."2", - "n" - from ( - select - 'ThirdPartyVulnerability' as "0", - json_build_array((__third_party_vulnerabilities__."id")::text) as "1", - __third_party_vulnerabilities__."cvss_score" as "2", - row_number() over ( - order by - __third_party_vulnerabilities__."cvss_score" desc, - __third_party_vulnerabilities__."id" asc - ) as "n" - from "polymorphic"."third_party_vulnerabilities" as __third_party_vulnerabilities__ - order by - __third_party_vulnerabilities__."cvss_score" desc, - __third_party_vulnerabilities__."id" asc - limit 4 - ) as __third_party_vulnerabilities__ - order by - "2" desc, - "0" asc, - "n" asc - limit 3 - offset 1 -) __vulnerability__ - - select __vulnerability__."0" as "0", __vulnerability__."1"::text as "1", @@ -268,6 +211,63 @@ from ( ) __vulnerability__ +select + __vulnerability__."0" as "0", + __vulnerability__."1"::text as "1", + __vulnerability__."2"::text as "2" +from ( + select + __first_party_vulnerabilities__."0", + __first_party_vulnerabilities__."1", + __first_party_vulnerabilities__."2", + "n" + from ( + select + 'FirstPartyVulnerability' as "0", + json_build_array((__first_party_vulnerabilities__."id")::text) as "1", + __first_party_vulnerabilities__."cvss_score" as "2", + row_number() over ( + order by + __first_party_vulnerabilities__."cvss_score" desc, + __first_party_vulnerabilities__."id" asc + ) as "n" + from "polymorphic"."first_party_vulnerabilities" as __first_party_vulnerabilities__ + order by + __first_party_vulnerabilities__."cvss_score" desc, + __first_party_vulnerabilities__."id" asc + limit 4 + ) as __first_party_vulnerabilities__ + union all + select + __third_party_vulnerabilities__."0", + __third_party_vulnerabilities__."1", + __third_party_vulnerabilities__."2", + "n" + from ( + select + 'ThirdPartyVulnerability' as "0", + json_build_array((__third_party_vulnerabilities__."id")::text) as "1", + __third_party_vulnerabilities__."cvss_score" as "2", + row_number() over ( + order by + __third_party_vulnerabilities__."cvss_score" desc, + __third_party_vulnerabilities__."id" asc + ) as "n" + from "polymorphic"."third_party_vulnerabilities" as __third_party_vulnerabilities__ + order by + __third_party_vulnerabilities__."cvss_score" desc, + __third_party_vulnerabilities__."id" asc + limit 4 + ) as __third_party_vulnerabilities__ + order by + "2" desc, + "0" asc, + "n" asc + limit 3 + offset 1 +) __vulnerability__ + + select __first_party_vulnerabilities__."id"::text as "0", __first_party_vulnerabilities__."name" as "1", diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.union_owners.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.union_owners.mermaid index 3d5e13fe57..46eebfb75b 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.union_owners.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.union_owners.mermaid @@ -9,1011 +9,1009 @@ graph TD %% plan dependencies + PgUnionAll14[["PgUnionAll[14∈0] ➊"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda13[["Lambda[13∈0] ➊
ᐸlimitToTypesᐳ"]]:::unbatchedplan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Constant602{{"Constant[602∈0] ➊
ᐸ2ᐳ"}}:::plan + Lambda13 -->|rejectNull| PgUnionAll14 + Object11 & Connection12 & Constant602 --> PgUnionAll14 + Constant602 --> Connection12 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan - Constant597{{"Constant[597∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant597 --> Connection12 + Access601{{"Access[601∈0] ➊
ᐸ14.itemsᐳ"}}:::plan + PgUnionAll14 --> Access601 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant27{{"Constant[27∈0] ➊
ᐸ'first_party_vulnerabilities'ᐳ"}}:::plan - Constant49{{"Constant[49∈0] ➊
ᐸ'aws_applications'ᐳ"}}:::plan - Constant71{{"Constant[71∈0] ➊
ᐸ'organizations'ᐳ"}}:::plan - Constant83{{"Constant[83∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant95{{"Constant[95∈0] ➊
ᐸ'gcp_applications'ᐳ"}}:::plan - Constant307{{"Constant[307∈0] ➊
ᐸ'third_party_vulnerabilities'ᐳ"}}:::plan - PgUnionAll13[["PgUnionAll[13∈1] ➊"]]:::plan - Object11 & Connection12 & Constant597 --> PgUnionAll13 - Access596{{"Access[596∈1] ➊
ᐸ13.itemsᐳ"}}:::plan - PgUnionAll13 --> Access596 - __Item15[/"__Item[15∈2]
ᐸ596ᐳ"\]:::itemplan - Access596 ==> __Item15 - PgUnionAllSingle16["PgUnionAllSingle[16∈2]"]:::plan - __Item15 --> PgUnionAllSingle16 - Access17{{"Access[17∈2]
ᐸ16.1ᐳ"}}:::plan - PgUnionAllSingle16 --> Access17 - PgUnionAll35[["PgUnionAll[35∈3]
ᐳFirstPartyVulnerability"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan - Connection34{{"Connection[34∈3] ➊
ᐸ32ᐳ
ᐳFirstPartyVulnerability"}}:::plan - Object11 & PgClassExpression28 & Connection34 --> PgUnionAll35 - PgUnionAll237[["PgUnionAll[237∈3]
ᐳFirstPartyVulnerability"]]:::plan - Connection236{{"Connection[236∈3] ➊
ᐸ234ᐳ
ᐳFirstPartyVulnerability"}}:::plan - Object11 & PgClassExpression28 & Connection236 --> PgUnionAll237 - PgUnionAll315[["PgUnionAll[315∈3]
ᐳThirdPartyVulnerability"]]:::plan - PgClassExpression308{{"PgClassExpression[308∈3]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan - Connection314{{"Connection[314∈3] ➊
ᐸ312ᐳ
ᐳThirdPartyVulnerability"}}:::plan - Object11 & PgClassExpression308 & Connection314 --> PgUnionAll315 - PgUnionAll517[["PgUnionAll[517∈3]
ᐳThirdPartyVulnerability"]]:::plan - Connection516{{"Connection[516∈3] ➊
ᐸ514ᐳ
ᐳThirdPartyVulnerability"}}:::plan - Object11 & PgClassExpression308 & Connection516 --> PgUnionAll517 - PgSelect20[["PgSelect[20∈3]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access19{{"Access[19∈3]
ᐸ18.0ᐳ"}}:::plan - Object11 & Access19 --> PgSelect20 - List29{{"List[29∈3]
ᐸ27,28ᐳ
ᐳFirstPartyVulnerability"}}:::plan - Constant27 & PgClassExpression28 --> List29 - PgUnionAll134[["PgUnionAll[134∈3]
ᐳFirstPartyVulnerability"]]:::plan - Object11 & PgClassExpression28 --> PgUnionAll134 - PgUnionAll268[["PgUnionAll[268∈3]
ᐳFirstPartyVulnerability"]]:::plan - Object11 & PgClassExpression28 --> PgUnionAll268 - PgSelect302[["PgSelect[302∈3]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access301{{"Access[301∈3]
ᐸ300.0ᐳ"}}:::plan - Object11 & Access301 --> PgSelect302 - List309{{"List[309∈3]
ᐸ307,308ᐳ
ᐳThirdPartyVulnerability"}}:::plan - Constant307 & PgClassExpression308 --> List309 - PgUnionAll414[["PgUnionAll[414∈3]
ᐳThirdPartyVulnerability"]]:::plan - Object11 & PgClassExpression308 --> PgUnionAll414 - PgUnionAll548[["PgUnionAll[548∈3]
ᐳThirdPartyVulnerability"]]:::plan - Object11 & PgClassExpression308 --> PgUnionAll548 - JSONParse18[["JSONParse[18∈3]
ᐸ17ᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access17 --> JSONParse18 - JSONParse18 --> Access19 - First24{{"First[24∈3]"}}:::plan - PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan - PgSelectRows25 --> First24 - PgSelect20 --> PgSelectRows25 - PgSelectSingle26{{"PgSelectSingle[26∈3]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan - First24 --> PgSelectSingle26 - PgSelectSingle26 --> PgClassExpression28 - Lambda30{{"Lambda[30∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan - List29 --> Lambda30 - PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression31 - JSONParse300[["JSONParse[300∈3]
ᐸ17ᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access17 --> JSONParse300 - JSONParse300 --> Access301 - First304{{"First[304∈3]"}}:::plan - PgSelectRows305[["PgSelectRows[305∈3]"]]:::plan - PgSelectRows305 --> First304 - PgSelect302 --> PgSelectRows305 - PgSelectSingle306{{"PgSelectSingle[306∈3]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan - First304 --> PgSelectSingle306 - PgSelectSingle306 --> PgClassExpression308 - Lambda310{{"Lambda[310∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan - List309 --> Lambda310 - PgClassExpression311{{"PgClassExpression[311∈3]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle306 --> PgClassExpression311 - Access582{{"Access[582∈3]
ᐸ35.itemsᐳ"}}:::plan - PgUnionAll35 --> Access582 - Access585{{"Access[585∈3]
ᐸ134.itemsᐳ"}}:::plan - PgUnionAll134 --> Access585 - Access586{{"Access[586∈3]
ᐸ237.itemsᐳ"}}:::plan - PgUnionAll237 --> Access586 - Access587{{"Access[587∈3]
ᐸ268.itemsᐳ"}}:::plan - PgUnionAll268 --> Access587 - Access590{{"Access[590∈3]
ᐸ315.itemsᐳ"}}:::plan - PgUnionAll315 --> Access590 - Access593{{"Access[593∈3]
ᐸ414.itemsᐳ"}}:::plan - PgUnionAll414 --> Access593 - Access594{{"Access[594∈3]
ᐸ517.itemsᐳ"}}:::plan - PgUnionAll517 --> Access594 - Access595{{"Access[595∈3]
ᐸ548.itemsᐳ"}}:::plan - PgUnionAll548 --> Access595 - __Item37[/"__Item[37∈4]
ᐸ582ᐳ"\]:::itemplan - Access582 ==> __Item37 - PgUnionAllSingle38["PgUnionAllSingle[38∈4]"]:::plan - __Item37 --> PgUnionAllSingle38 - Access39{{"Access[39∈4]
ᐸ38.1ᐳ"}}:::plan - PgUnionAllSingle38 --> Access39 - PgUnionAll56[["PgUnionAll[56∈5]
ᐳFirstPartyVulnerabilityᐳAwsApplication"]]:::plan - PgClassExpression54{{"PgClassExpression[54∈5]
ᐸ__aws_appl...person_id”ᐳ"}}:::plan - PgClassExpression55{{"PgClassExpression[55∈5]
ᐸ__aws_appl...zation_id”ᐳ"}}:::plan - Object11 & PgClassExpression54 & PgClassExpression55 --> PgUnionAll56 - PgUnionAll102[["PgUnionAll[102∈5]
ᐳFirstPartyVulnerabilityᐳGcpApplication"]]:::plan - PgClassExpression100{{"PgClassExpression[100∈5]
ᐸ__gcp_appl...person_id”ᐳ"}}:::plan - PgClassExpression101{{"PgClassExpression[101∈5]
ᐸ__gcp_appl...zation_id”ᐳ"}}:::plan - Object11 & PgClassExpression100 & PgClassExpression101 --> PgUnionAll102 - PgSelect42[["PgSelect[42∈5]
ᐸaws_applicationsᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplication"]]:::plan - Access41{{"Access[41∈5]
ᐸ40.0ᐳ"}}:::plan - Object11 & Access41 --> PgSelect42 - List51{{"List[51∈5]
ᐸ49,50ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplication"}}:::plan - PgClassExpression50{{"PgClassExpression[50∈5]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan - Constant49 & PgClassExpression50 --> List51 - PgSelect90[["PgSelect[90∈5]
ᐸgcp_applicationsᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplication"]]:::plan - Access89{{"Access[89∈5]
ᐸ88.0ᐳ"}}:::plan - Object11 & Access89 --> PgSelect90 - List97{{"List[97∈5]
ᐸ95,96ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplication"}}:::plan - PgClassExpression96{{"PgClassExpression[96∈5]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan - Constant95 & PgClassExpression96 --> List97 - JSONParse40[["JSONParse[40∈5]
ᐸ39ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplication"]]:::plan - Access39 --> JSONParse40 - JSONParse40 --> Access41 - First46{{"First[46∈5]"}}:::plan - PgSelectRows47[["PgSelectRows[47∈5]"]]:::plan - PgSelectRows47 --> First46 - PgSelect42 --> PgSelectRows47 - PgSelectSingle48{{"PgSelectSingle[48∈5]
ᐸaws_applicationsᐳ"}}:::plan - First46 --> PgSelectSingle48 - PgSelectSingle48 --> PgClassExpression50 - Lambda52{{"Lambda[52∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan - List51 --> Lambda52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan - PgSelectSingle48 --> PgClassExpression53 - PgSelectSingle48 --> PgClassExpression54 - PgSelectSingle48 --> PgClassExpression55 - First58{{"First[58∈5]"}}:::plan - Access580{{"Access[580∈5]
ᐸ56.itemsᐳ"}}:::plan - Access580 --> First58 - PgUnionAllSingle60["PgUnionAllSingle[60∈5]"]:::plan - First58 --> PgUnionAllSingle60 - Access61{{"Access[61∈5]
ᐸ60.1ᐳ"}}:::plan - PgUnionAllSingle60 --> Access61 - JSONParse88[["JSONParse[88∈5]
ᐸ39ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplication"]]:::plan - Access39 --> JSONParse88 - JSONParse88 --> Access89 - First92{{"First[92∈5]"}}:::plan - PgSelectRows93[["PgSelectRows[93∈5]"]]:::plan - PgSelectRows93 --> First92 - PgSelect90 --> PgSelectRows93 - PgSelectSingle94{{"PgSelectSingle[94∈5]
ᐸgcp_applicationsᐳ"}}:::plan - First92 --> PgSelectSingle94 - PgSelectSingle94 --> PgClassExpression96 - Lambda98{{"Lambda[98∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan - List97 --> Lambda98 - PgClassExpression99{{"PgClassExpression[99∈5]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan - PgSelectSingle94 --> PgClassExpression99 - PgSelectSingle94 --> PgClassExpression100 - PgSelectSingle94 --> PgClassExpression101 - First104{{"First[104∈5]"}}:::plan - Access581{{"Access[581∈5]
ᐸ102.itemsᐳ"}}:::plan - Access581 --> First104 - PgUnionAllSingle106["PgUnionAllSingle[106∈5]"]:::plan - First104 --> PgUnionAllSingle106 - Access107{{"Access[107∈5]
ᐸ106.1ᐳ"}}:::plan - PgUnionAllSingle106 --> Access107 - PgUnionAll56 --> Access580 - PgUnionAll102 --> Access581 - PgSelect64[["PgSelect[64∈6]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan - Access63{{"Access[63∈6]
ᐸ62.0ᐳ"}}:::plan - Object11 & Access63 --> PgSelect64 - List73{{"List[73∈6]
ᐸ71,72ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization"}}:::plan - PgClassExpression72{{"PgClassExpression[72∈6]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant71 & PgClassExpression72 --> List73 - PgSelect78[["PgSelect[78∈6]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan - Access77{{"Access[77∈6]
ᐸ76.0ᐳ"}}:::plan - Object11 & Access77 --> PgSelect78 - List85{{"List[85∈6]
ᐸ83,84ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson"}}:::plan - PgClassExpression84{{"PgClassExpression[84∈6]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant83 & PgClassExpression84 --> List85 - JSONParse62[["JSONParse[62∈6]
ᐸ61ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan - Access61 --> JSONParse62 - JSONParse62 --> Access63 - First68{{"First[68∈6]"}}:::plan - PgSelectRows69[["PgSelectRows[69∈6]"]]:::plan - PgSelectRows69 --> First68 - PgSelect64 --> PgSelectRows69 - PgSelectSingle70{{"PgSelectSingle[70∈6]
ᐸorganizationsᐳ"}}:::plan - First68 --> PgSelectSingle70 - PgSelectSingle70 --> PgClassExpression72 - Lambda74{{"Lambda[74∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan - List73 --> Lambda74 - PgClassExpression75{{"PgClassExpression[75∈6]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle70 --> PgClassExpression75 - JSONParse76[["JSONParse[76∈6]
ᐸ61ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan - Access61 --> JSONParse76 - JSONParse76 --> Access77 - First80{{"First[80∈6]"}}:::plan - PgSelectRows81[["PgSelectRows[81∈6]"]]:::plan - PgSelectRows81 --> First80 - PgSelect78 --> PgSelectRows81 - PgSelectSingle82{{"PgSelectSingle[82∈6]
ᐸpeopleᐳ"}}:::plan - First80 --> PgSelectSingle82 - PgSelectSingle82 --> PgClassExpression84 - Lambda86{{"Lambda[86∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan - List85 --> Lambda86 - PgClassExpression87{{"PgClassExpression[87∈6]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle82 --> PgClassExpression87 - PgSelect110[["PgSelect[110∈7]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan - Access109{{"Access[109∈7]
ᐸ108.0ᐳ"}}:::plan - Object11 & Access109 --> PgSelect110 - List119{{"List[119∈7]
ᐸ71,118ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization"}}:::plan - PgClassExpression118{{"PgClassExpression[118∈7]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant71 & PgClassExpression118 --> List119 - PgSelect124[["PgSelect[124∈7]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan - Access123{{"Access[123∈7]
ᐸ122.0ᐳ"}}:::plan - Object11 & Access123 --> PgSelect124 - List131{{"List[131∈7]
ᐸ83,130ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson"}}:::plan - PgClassExpression130{{"PgClassExpression[130∈7]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant83 & PgClassExpression130 --> List131 - JSONParse108[["JSONParse[108∈7]
ᐸ107ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan - Access107 --> JSONParse108 - JSONParse108 --> Access109 - First114{{"First[114∈7]"}}:::plan - PgSelectRows115[["PgSelectRows[115∈7]"]]:::plan - PgSelectRows115 --> First114 - PgSelect110 --> PgSelectRows115 - PgSelectSingle116{{"PgSelectSingle[116∈7]
ᐸorganizationsᐳ"}}:::plan - First114 --> PgSelectSingle116 - PgSelectSingle116 --> PgClassExpression118 - Lambda120{{"Lambda[120∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan - List119 --> Lambda120 - PgClassExpression121{{"PgClassExpression[121∈7]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle116 --> PgClassExpression121 - JSONParse122[["JSONParse[122∈7]
ᐸ107ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan - Access107 --> JSONParse122 - JSONParse122 --> Access123 - First126{{"First[126∈7]"}}:::plan - PgSelectRows127[["PgSelectRows[127∈7]"]]:::plan - PgSelectRows127 --> First126 - PgSelect124 --> PgSelectRows127 - PgSelectSingle128{{"PgSelectSingle[128∈7]
ᐸpeopleᐳ"}}:::plan - First126 --> PgSelectSingle128 - PgSelectSingle128 --> PgClassExpression130 - Lambda132{{"Lambda[132∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan - List131 --> Lambda132 - PgClassExpression133{{"PgClassExpression[133∈7]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle128 --> PgClassExpression133 - __Item137[/"__Item[137∈8]
ᐸ585ᐳ"\]:::itemplan - Access585 ==> __Item137 - PgUnionAllSingle138["PgUnionAllSingle[138∈8]"]:::plan - __Item137 --> PgUnionAllSingle138 - Access139{{"Access[139∈8]
ᐸ138.1ᐳ"}}:::plan - PgUnionAllSingle138 --> Access139 - PgUnionAll156[["PgUnionAll[156∈9]
ᐳFirstPartyVulnerabilityᐳAwsApplication"]]:::plan - PgClassExpression154{{"PgClassExpression[154∈9]
ᐸ__aws_appl...person_id”ᐳ"}}:::plan - PgClassExpression155{{"PgClassExpression[155∈9]
ᐸ__aws_appl...zation_id”ᐳ"}}:::plan - Object11 & PgClassExpression154 & PgClassExpression155 --> PgUnionAll156 - PgUnionAll202[["PgUnionAll[202∈9]
ᐳFirstPartyVulnerabilityᐳGcpApplication"]]:::plan - PgClassExpression200{{"PgClassExpression[200∈9]
ᐸ__gcp_appl...person_id”ᐳ"}}:::plan - PgClassExpression201{{"PgClassExpression[201∈9]
ᐸ__gcp_appl...zation_id”ᐳ"}}:::plan - Object11 & PgClassExpression200 & PgClassExpression201 --> PgUnionAll202 - PgSelect142[["PgSelect[142∈9]
ᐸaws_applicationsᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplication"]]:::plan - Access141{{"Access[141∈9]
ᐸ140.0ᐳ"}}:::plan - Object11 & Access141 --> PgSelect142 - List151{{"List[151∈9]
ᐸ49,150ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplication"}}:::plan - PgClassExpression150{{"PgClassExpression[150∈9]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan - Constant49 & PgClassExpression150 --> List151 - PgSelect190[["PgSelect[190∈9]
ᐸgcp_applicationsᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplication"]]:::plan - Access189{{"Access[189∈9]
ᐸ188.0ᐳ"}}:::plan - Object11 & Access189 --> PgSelect190 - List197{{"List[197∈9]
ᐸ95,196ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplication"}}:::plan - PgClassExpression196{{"PgClassExpression[196∈9]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan - Constant95 & PgClassExpression196 --> List197 - JSONParse140[["JSONParse[140∈9]
ᐸ139ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplication"]]:::plan - Access139 --> JSONParse140 - JSONParse140 --> Access141 - First146{{"First[146∈9]"}}:::plan - PgSelectRows147[["PgSelectRows[147∈9]"]]:::plan - PgSelectRows147 --> First146 - PgSelect142 --> PgSelectRows147 - PgSelectSingle148{{"PgSelectSingle[148∈9]
ᐸaws_applicationsᐳ"}}:::plan - First146 --> PgSelectSingle148 - PgSelectSingle148 --> PgClassExpression150 - Lambda152{{"Lambda[152∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan - List151 --> Lambda152 - PgClassExpression153{{"PgClassExpression[153∈9]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan - PgSelectSingle148 --> PgClassExpression153 - PgSelectSingle148 --> PgClassExpression154 - PgSelectSingle148 --> PgClassExpression155 - First158{{"First[158∈9]"}}:::plan - Access583{{"Access[583∈9]
ᐸ156.itemsᐳ"}}:::plan - Access583 --> First158 - PgUnionAllSingle160["PgUnionAllSingle[160∈9]"]:::plan - First158 --> PgUnionAllSingle160 - Access161{{"Access[161∈9]
ᐸ160.1ᐳ"}}:::plan - PgUnionAllSingle160 --> Access161 - JSONParse188[["JSONParse[188∈9]
ᐸ139ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplication"]]:::plan - Access139 --> JSONParse188 - JSONParse188 --> Access189 - First192{{"First[192∈9]"}}:::plan - PgSelectRows193[["PgSelectRows[193∈9]"]]:::plan - PgSelectRows193 --> First192 - PgSelect190 --> PgSelectRows193 - PgSelectSingle194{{"PgSelectSingle[194∈9]
ᐸgcp_applicationsᐳ"}}:::plan - First192 --> PgSelectSingle194 - PgSelectSingle194 --> PgClassExpression196 - Lambda198{{"Lambda[198∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan - List197 --> Lambda198 - PgClassExpression199{{"PgClassExpression[199∈9]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan - PgSelectSingle194 --> PgClassExpression199 - PgSelectSingle194 --> PgClassExpression200 - PgSelectSingle194 --> PgClassExpression201 - First204{{"First[204∈9]"}}:::plan - Access584{{"Access[584∈9]
ᐸ202.itemsᐳ"}}:::plan - Access584 --> First204 - PgUnionAllSingle206["PgUnionAllSingle[206∈9]"]:::plan - First204 --> PgUnionAllSingle206 - Access207{{"Access[207∈9]
ᐸ206.1ᐳ"}}:::plan - PgUnionAllSingle206 --> Access207 - PgUnionAll156 --> Access583 - PgUnionAll202 --> Access584 - PgSelect164[["PgSelect[164∈10]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan - Access163{{"Access[163∈10]
ᐸ162.0ᐳ"}}:::plan - Object11 & Access163 --> PgSelect164 - List173{{"List[173∈10]
ᐸ71,172ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization"}}:::plan - PgClassExpression172{{"PgClassExpression[172∈10]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant71 & PgClassExpression172 --> List173 - PgSelect178[["PgSelect[178∈10]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan - Access177{{"Access[177∈10]
ᐸ176.0ᐳ"}}:::plan - Object11 & Access177 --> PgSelect178 - List185{{"List[185∈10]
ᐸ83,184ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson"}}:::plan - PgClassExpression184{{"PgClassExpression[184∈10]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant83 & PgClassExpression184 --> List185 - JSONParse162[["JSONParse[162∈10]
ᐸ161ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan - Access161 --> JSONParse162 - JSONParse162 --> Access163 - First168{{"First[168∈10]"}}:::plan - PgSelectRows169[["PgSelectRows[169∈10]"]]:::plan - PgSelectRows169 --> First168 - PgSelect164 --> PgSelectRows169 - PgSelectSingle170{{"PgSelectSingle[170∈10]
ᐸorganizationsᐳ"}}:::plan - First168 --> PgSelectSingle170 - PgSelectSingle170 --> PgClassExpression172 - Lambda174{{"Lambda[174∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan - List173 --> Lambda174 - PgClassExpression175{{"PgClassExpression[175∈10]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle170 --> PgClassExpression175 - JSONParse176[["JSONParse[176∈10]
ᐸ161ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan - Access161 --> JSONParse176 - JSONParse176 --> Access177 - First180{{"First[180∈10]"}}:::plan - PgSelectRows181[["PgSelectRows[181∈10]"]]:::plan - PgSelectRows181 --> First180 - PgSelect178 --> PgSelectRows181 - PgSelectSingle182{{"PgSelectSingle[182∈10]
ᐸpeopleᐳ"}}:::plan - First180 --> PgSelectSingle182 - PgSelectSingle182 --> PgClassExpression184 - Lambda186{{"Lambda[186∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan - List185 --> Lambda186 - PgClassExpression187{{"PgClassExpression[187∈10]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle182 --> PgClassExpression187 - PgSelect210[["PgSelect[210∈11]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan - Access209{{"Access[209∈11]
ᐸ208.0ᐳ"}}:::plan - Object11 & Access209 --> PgSelect210 - List219{{"List[219∈11]
ᐸ71,218ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization"}}:::plan - PgClassExpression218{{"PgClassExpression[218∈11]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant71 & PgClassExpression218 --> List219 - PgSelect224[["PgSelect[224∈11]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan - Access223{{"Access[223∈11]
ᐸ222.0ᐳ"}}:::plan - Object11 & Access223 --> PgSelect224 - List231{{"List[231∈11]
ᐸ83,230ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson"}}:::plan - PgClassExpression230{{"PgClassExpression[230∈11]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant83 & PgClassExpression230 --> List231 - JSONParse208[["JSONParse[208∈11]
ᐸ207ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan - Access207 --> JSONParse208 - JSONParse208 --> Access209 - First214{{"First[214∈11]"}}:::plan - PgSelectRows215[["PgSelectRows[215∈11]"]]:::plan - PgSelectRows215 --> First214 - PgSelect210 --> PgSelectRows215 - PgSelectSingle216{{"PgSelectSingle[216∈11]
ᐸorganizationsᐳ"}}:::plan - First214 --> PgSelectSingle216 - PgSelectSingle216 --> PgClassExpression218 - Lambda220{{"Lambda[220∈11]
ᐸbase64JSONEncodeᐳ"}}:::plan - List219 --> Lambda220 - PgClassExpression221{{"PgClassExpression[221∈11]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle216 --> PgClassExpression221 - JSONParse222[["JSONParse[222∈11]
ᐸ207ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan - Access207 --> JSONParse222 - JSONParse222 --> Access223 - First226{{"First[226∈11]"}}:::plan - PgSelectRows227[["PgSelectRows[227∈11]"]]:::plan - PgSelectRows227 --> First226 - PgSelect224 --> PgSelectRows227 - PgSelectSingle228{{"PgSelectSingle[228∈11]
ᐸpeopleᐳ"}}:::plan - First226 --> PgSelectSingle228 - PgSelectSingle228 --> PgClassExpression230 - Lambda232{{"Lambda[232∈11]
ᐸbase64JSONEncodeᐳ"}}:::plan - List231 --> Lambda232 - PgClassExpression233{{"PgClassExpression[233∈11]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle228 --> PgClassExpression233 - __Item239[/"__Item[239∈12]
ᐸ586ᐳ"\]:::itemplan - Access586 ==> __Item239 - PgUnionAllSingle240["PgUnionAllSingle[240∈12]"]:::plan - __Item239 --> PgUnionAllSingle240 - Access241{{"Access[241∈12]
ᐸ240.1ᐳ"}}:::plan - PgUnionAllSingle240 --> Access241 - PgSelect244[["PgSelect[244∈13]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"]]:::plan - Access243{{"Access[243∈13]
ᐸ242.0ᐳ"}}:::plan - Object11 & Access243 --> PgSelect244 - List253{{"List[253∈13]
ᐸ71,252ᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"}}:::plan - PgClassExpression252{{"PgClassExpression[252∈13]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant71 & PgClassExpression252 --> List253 - PgSelect258[["PgSelect[258∈13]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳPerson"]]:::plan - Access257{{"Access[257∈13]
ᐸ256.0ᐳ"}}:::plan - Object11 & Access257 --> PgSelect258 - List265{{"List[265∈13]
ᐸ83,264ᐳ
ᐳFirstPartyVulnerabilityᐳPerson"}}:::plan - PgClassExpression264{{"PgClassExpression[264∈13]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant83 & PgClassExpression264 --> List265 - JSONParse242[["JSONParse[242∈13]
ᐸ241ᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"]]:::plan - Access241 --> JSONParse242 - JSONParse242 --> Access243 - First248{{"First[248∈13]"}}:::plan - PgSelectRows249[["PgSelectRows[249∈13]"]]:::plan - PgSelectRows249 --> First248 - PgSelect244 --> PgSelectRows249 - PgSelectSingle250{{"PgSelectSingle[250∈13]
ᐸorganizationsᐳ"}}:::plan - First248 --> PgSelectSingle250 - PgSelectSingle250 --> PgClassExpression252 - Lambda254{{"Lambda[254∈13]
ᐸbase64JSONEncodeᐳ"}}:::plan - List253 --> Lambda254 - PgClassExpression255{{"PgClassExpression[255∈13]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle250 --> PgClassExpression255 - JSONParse256[["JSONParse[256∈13]
ᐸ241ᐳ
ᐳFirstPartyVulnerabilityᐳPerson"]]:::plan - Access241 --> JSONParse256 - JSONParse256 --> Access257 - First260{{"First[260∈13]"}}:::plan - PgSelectRows261[["PgSelectRows[261∈13]"]]:::plan - PgSelectRows261 --> First260 - PgSelect258 --> PgSelectRows261 - PgSelectSingle262{{"PgSelectSingle[262∈13]
ᐸpeopleᐳ"}}:::plan - First260 --> PgSelectSingle262 - PgSelectSingle262 --> PgClassExpression264 - Lambda266{{"Lambda[266∈13]
ᐸbase64JSONEncodeᐳ"}}:::plan - List265 --> Lambda266 - PgClassExpression267{{"PgClassExpression[267∈13]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle262 --> PgClassExpression267 - __Item271[/"__Item[271∈14]
ᐸ587ᐳ"\]:::itemplan - Access587 ==> __Item271 - PgUnionAllSingle272["PgUnionAllSingle[272∈14]"]:::plan - __Item271 --> PgUnionAllSingle272 - Access273{{"Access[273∈14]
ᐸ272.1ᐳ"}}:::plan - PgUnionAllSingle272 --> Access273 - PgSelect276[["PgSelect[276∈15]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"]]:::plan - Access275{{"Access[275∈15]
ᐸ274.0ᐳ"}}:::plan - Object11 & Access275 --> PgSelect276 - List285{{"List[285∈15]
ᐸ71,284ᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"}}:::plan - PgClassExpression284{{"PgClassExpression[284∈15]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant71 & PgClassExpression284 --> List285 - PgSelect290[["PgSelect[290∈15]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳPerson"]]:::plan - Access289{{"Access[289∈15]
ᐸ288.0ᐳ"}}:::plan - Object11 & Access289 --> PgSelect290 - List297{{"List[297∈15]
ᐸ83,296ᐳ
ᐳFirstPartyVulnerabilityᐳPerson"}}:::plan - PgClassExpression296{{"PgClassExpression[296∈15]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant83 & PgClassExpression296 --> List297 - JSONParse274[["JSONParse[274∈15]
ᐸ273ᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"]]:::plan - Access273 --> JSONParse274 - JSONParse274 --> Access275 - First280{{"First[280∈15]"}}:::plan - PgSelectRows281[["PgSelectRows[281∈15]"]]:::plan - PgSelectRows281 --> First280 - PgSelect276 --> PgSelectRows281 - PgSelectSingle282{{"PgSelectSingle[282∈15]
ᐸorganizationsᐳ"}}:::plan - First280 --> PgSelectSingle282 - PgSelectSingle282 --> PgClassExpression284 - Lambda286{{"Lambda[286∈15]
ᐸbase64JSONEncodeᐳ"}}:::plan - List285 --> Lambda286 - PgClassExpression287{{"PgClassExpression[287∈15]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle282 --> PgClassExpression287 - JSONParse288[["JSONParse[288∈15]
ᐸ273ᐳ
ᐳFirstPartyVulnerabilityᐳPerson"]]:::plan - Access273 --> JSONParse288 - JSONParse288 --> Access289 - First292{{"First[292∈15]"}}:::plan - PgSelectRows293[["PgSelectRows[293∈15]"]]:::plan - PgSelectRows293 --> First292 - PgSelect290 --> PgSelectRows293 - PgSelectSingle294{{"PgSelectSingle[294∈15]
ᐸpeopleᐳ"}}:::plan - First292 --> PgSelectSingle294 - PgSelectSingle294 --> PgClassExpression296 - Lambda298{{"Lambda[298∈15]
ᐸbase64JSONEncodeᐳ"}}:::plan - List297 --> Lambda298 - PgClassExpression299{{"PgClassExpression[299∈15]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle294 --> PgClassExpression299 - __Item317[/"__Item[317∈16]
ᐸ590ᐳ"\]:::itemplan - Access590 ==> __Item317 - PgUnionAllSingle318["PgUnionAllSingle[318∈16]"]:::plan - __Item317 --> PgUnionAllSingle318 - Access319{{"Access[319∈16]
ᐸ318.1ᐳ"}}:::plan - PgUnionAllSingle318 --> Access319 - PgUnionAll336[["PgUnionAll[336∈17]
ᐳThirdPartyVulnerabilityᐳAwsApplication"]]:::plan - PgClassExpression334{{"PgClassExpression[334∈17]
ᐸ__aws_appl...person_id”ᐳ"}}:::plan - PgClassExpression335{{"PgClassExpression[335∈17]
ᐸ__aws_appl...zation_id”ᐳ"}}:::plan - Object11 & PgClassExpression334 & PgClassExpression335 --> PgUnionAll336 - PgUnionAll382[["PgUnionAll[382∈17]
ᐳThirdPartyVulnerabilityᐳGcpApplication"]]:::plan - PgClassExpression380{{"PgClassExpression[380∈17]
ᐸ__gcp_appl...person_id”ᐳ"}}:::plan - PgClassExpression381{{"PgClassExpression[381∈17]
ᐸ__gcp_appl...zation_id”ᐳ"}}:::plan - Object11 & PgClassExpression380 & PgClassExpression381 --> PgUnionAll382 - PgSelect322[["PgSelect[322∈17]
ᐸaws_applicationsᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplication"]]:::plan - Access321{{"Access[321∈17]
ᐸ320.0ᐳ"}}:::plan - Object11 & Access321 --> PgSelect322 - List331{{"List[331∈17]
ᐸ49,330ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplication"}}:::plan - PgClassExpression330{{"PgClassExpression[330∈17]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan - Constant49 & PgClassExpression330 --> List331 - PgSelect370[["PgSelect[370∈17]
ᐸgcp_applicationsᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplication"]]:::plan - Access369{{"Access[369∈17]
ᐸ368.0ᐳ"}}:::plan - Object11 & Access369 --> PgSelect370 - List377{{"List[377∈17]
ᐸ95,376ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplication"}}:::plan - PgClassExpression376{{"PgClassExpression[376∈17]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan - Constant95 & PgClassExpression376 --> List377 - JSONParse320[["JSONParse[320∈17]
ᐸ319ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplication"]]:::plan - Access319 --> JSONParse320 - JSONParse320 --> Access321 - First326{{"First[326∈17]"}}:::plan - PgSelectRows327[["PgSelectRows[327∈17]"]]:::plan - PgSelectRows327 --> First326 - PgSelect322 --> PgSelectRows327 - PgSelectSingle328{{"PgSelectSingle[328∈17]
ᐸaws_applicationsᐳ"}}:::plan - First326 --> PgSelectSingle328 - PgSelectSingle328 --> PgClassExpression330 - Lambda332{{"Lambda[332∈17]
ᐸbase64JSONEncodeᐳ"}}:::plan - List331 --> Lambda332 - PgClassExpression333{{"PgClassExpression[333∈17]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan - PgSelectSingle328 --> PgClassExpression333 - PgSelectSingle328 --> PgClassExpression334 - PgSelectSingle328 --> PgClassExpression335 - First338{{"First[338∈17]"}}:::plan - Access588{{"Access[588∈17]
ᐸ336.itemsᐳ"}}:::plan - Access588 --> First338 - PgUnionAllSingle340["PgUnionAllSingle[340∈17]"]:::plan - First338 --> PgUnionAllSingle340 - Access341{{"Access[341∈17]
ᐸ340.1ᐳ"}}:::plan - PgUnionAllSingle340 --> Access341 - JSONParse368[["JSONParse[368∈17]
ᐸ319ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplication"]]:::plan - Access319 --> JSONParse368 - JSONParse368 --> Access369 - First372{{"First[372∈17]"}}:::plan - PgSelectRows373[["PgSelectRows[373∈17]"]]:::plan - PgSelectRows373 --> First372 - PgSelect370 --> PgSelectRows373 - PgSelectSingle374{{"PgSelectSingle[374∈17]
ᐸgcp_applicationsᐳ"}}:::plan - First372 --> PgSelectSingle374 - PgSelectSingle374 --> PgClassExpression376 - Lambda378{{"Lambda[378∈17]
ᐸbase64JSONEncodeᐳ"}}:::plan - List377 --> Lambda378 - PgClassExpression379{{"PgClassExpression[379∈17]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan - PgSelectSingle374 --> PgClassExpression379 - PgSelectSingle374 --> PgClassExpression380 - PgSelectSingle374 --> PgClassExpression381 - First384{{"First[384∈17]"}}:::plan - Access589{{"Access[589∈17]
ᐸ382.itemsᐳ"}}:::plan - Access589 --> First384 - PgUnionAllSingle386["PgUnionAllSingle[386∈17]"]:::plan - First384 --> PgUnionAllSingle386 - Access387{{"Access[387∈17]
ᐸ386.1ᐳ"}}:::plan - PgUnionAllSingle386 --> Access387 - PgUnionAll336 --> Access588 - PgUnionAll382 --> Access589 - PgSelect344[["PgSelect[344∈18]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan - Access343{{"Access[343∈18]
ᐸ342.0ᐳ"}}:::plan - Object11 & Access343 --> PgSelect344 - List353{{"List[353∈18]
ᐸ71,352ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization"}}:::plan - PgClassExpression352{{"PgClassExpression[352∈18]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant71 & PgClassExpression352 --> List353 - PgSelect358[["PgSelect[358∈18]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan - Access357{{"Access[357∈18]
ᐸ356.0ᐳ"}}:::plan - Object11 & Access357 --> PgSelect358 - List365{{"List[365∈18]
ᐸ83,364ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson"}}:::plan - PgClassExpression364{{"PgClassExpression[364∈18]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant83 & PgClassExpression364 --> List365 - JSONParse342[["JSONParse[342∈18]
ᐸ341ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan - Access341 --> JSONParse342 - JSONParse342 --> Access343 - First348{{"First[348∈18]"}}:::plan - PgSelectRows349[["PgSelectRows[349∈18]"]]:::plan - PgSelectRows349 --> First348 - PgSelect344 --> PgSelectRows349 - PgSelectSingle350{{"PgSelectSingle[350∈18]
ᐸorganizationsᐳ"}}:::plan - First348 --> PgSelectSingle350 - PgSelectSingle350 --> PgClassExpression352 - Lambda354{{"Lambda[354∈18]
ᐸbase64JSONEncodeᐳ"}}:::plan - List353 --> Lambda354 - PgClassExpression355{{"PgClassExpression[355∈18]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle350 --> PgClassExpression355 - JSONParse356[["JSONParse[356∈18]
ᐸ341ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan - Access341 --> JSONParse356 - JSONParse356 --> Access357 - First360{{"First[360∈18]"}}:::plan - PgSelectRows361[["PgSelectRows[361∈18]"]]:::plan - PgSelectRows361 --> First360 - PgSelect358 --> PgSelectRows361 - PgSelectSingle362{{"PgSelectSingle[362∈18]
ᐸpeopleᐳ"}}:::plan - First360 --> PgSelectSingle362 - PgSelectSingle362 --> PgClassExpression364 - Lambda366{{"Lambda[366∈18]
ᐸbase64JSONEncodeᐳ"}}:::plan - List365 --> Lambda366 - PgClassExpression367{{"PgClassExpression[367∈18]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle362 --> PgClassExpression367 - PgSelect390[["PgSelect[390∈19]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan - Access389{{"Access[389∈19]
ᐸ388.0ᐳ"}}:::plan - Object11 & Access389 --> PgSelect390 - List399{{"List[399∈19]
ᐸ71,398ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization"}}:::plan - PgClassExpression398{{"PgClassExpression[398∈19]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant71 & PgClassExpression398 --> List399 - PgSelect404[["PgSelect[404∈19]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan - Access403{{"Access[403∈19]
ᐸ402.0ᐳ"}}:::plan - Object11 & Access403 --> PgSelect404 - List411{{"List[411∈19]
ᐸ83,410ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson"}}:::plan - PgClassExpression410{{"PgClassExpression[410∈19]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant83 & PgClassExpression410 --> List411 - JSONParse388[["JSONParse[388∈19]
ᐸ387ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan - Access387 --> JSONParse388 - JSONParse388 --> Access389 - First394{{"First[394∈19]"}}:::plan - PgSelectRows395[["PgSelectRows[395∈19]"]]:::plan - PgSelectRows395 --> First394 - PgSelect390 --> PgSelectRows395 - PgSelectSingle396{{"PgSelectSingle[396∈19]
ᐸorganizationsᐳ"}}:::plan - First394 --> PgSelectSingle396 - PgSelectSingle396 --> PgClassExpression398 - Lambda400{{"Lambda[400∈19]
ᐸbase64JSONEncodeᐳ"}}:::plan - List399 --> Lambda400 - PgClassExpression401{{"PgClassExpression[401∈19]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle396 --> PgClassExpression401 - JSONParse402[["JSONParse[402∈19]
ᐸ387ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan - Access387 --> JSONParse402 - JSONParse402 --> Access403 - First406{{"First[406∈19]"}}:::plan - PgSelectRows407[["PgSelectRows[407∈19]"]]:::plan - PgSelectRows407 --> First406 - PgSelect404 --> PgSelectRows407 - PgSelectSingle408{{"PgSelectSingle[408∈19]
ᐸpeopleᐳ"}}:::plan - First406 --> PgSelectSingle408 - PgSelectSingle408 --> PgClassExpression410 - Lambda412{{"Lambda[412∈19]
ᐸbase64JSONEncodeᐳ"}}:::plan - List411 --> Lambda412 - PgClassExpression413{{"PgClassExpression[413∈19]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle408 --> PgClassExpression413 - __Item417[/"__Item[417∈20]
ᐸ593ᐳ"\]:::itemplan - Access593 ==> __Item417 - PgUnionAllSingle418["PgUnionAllSingle[418∈20]"]:::plan - __Item417 --> PgUnionAllSingle418 - Access419{{"Access[419∈20]
ᐸ418.1ᐳ"}}:::plan - PgUnionAllSingle418 --> Access419 - PgUnionAll436[["PgUnionAll[436∈21]
ᐳThirdPartyVulnerabilityᐳAwsApplication"]]:::plan - PgClassExpression434{{"PgClassExpression[434∈21]
ᐸ__aws_appl...person_id”ᐳ"}}:::plan - PgClassExpression435{{"PgClassExpression[435∈21]
ᐸ__aws_appl...zation_id”ᐳ"}}:::plan - Object11 & PgClassExpression434 & PgClassExpression435 --> PgUnionAll436 - PgUnionAll482[["PgUnionAll[482∈21]
ᐳThirdPartyVulnerabilityᐳGcpApplication"]]:::plan - PgClassExpression480{{"PgClassExpression[480∈21]
ᐸ__gcp_appl...person_id”ᐳ"}}:::plan - PgClassExpression481{{"PgClassExpression[481∈21]
ᐸ__gcp_appl...zation_id”ᐳ"}}:::plan - Object11 & PgClassExpression480 & PgClassExpression481 --> PgUnionAll482 - PgSelect422[["PgSelect[422∈21]
ᐸaws_applicationsᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplication"]]:::plan - Access421{{"Access[421∈21]
ᐸ420.0ᐳ"}}:::plan - Object11 & Access421 --> PgSelect422 - List431{{"List[431∈21]
ᐸ49,430ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplication"}}:::plan - PgClassExpression430{{"PgClassExpression[430∈21]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan - Constant49 & PgClassExpression430 --> List431 - PgSelect470[["PgSelect[470∈21]
ᐸgcp_applicationsᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplication"]]:::plan - Access469{{"Access[469∈21]
ᐸ468.0ᐳ"}}:::plan - Object11 & Access469 --> PgSelect470 - List477{{"List[477∈21]
ᐸ95,476ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplication"}}:::plan - PgClassExpression476{{"PgClassExpression[476∈21]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan - Constant95 & PgClassExpression476 --> List477 - JSONParse420[["JSONParse[420∈21]
ᐸ419ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplication"]]:::plan - Access419 --> JSONParse420 - JSONParse420 --> Access421 - First426{{"First[426∈21]"}}:::plan - PgSelectRows427[["PgSelectRows[427∈21]"]]:::plan - PgSelectRows427 --> First426 - PgSelect422 --> PgSelectRows427 - PgSelectSingle428{{"PgSelectSingle[428∈21]
ᐸaws_applicationsᐳ"}}:::plan - First426 --> PgSelectSingle428 - PgSelectSingle428 --> PgClassExpression430 - Lambda432{{"Lambda[432∈21]
ᐸbase64JSONEncodeᐳ"}}:::plan - List431 --> Lambda432 - PgClassExpression433{{"PgClassExpression[433∈21]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan - PgSelectSingle428 --> PgClassExpression433 - PgSelectSingle428 --> PgClassExpression434 - PgSelectSingle428 --> PgClassExpression435 - First438{{"First[438∈21]"}}:::plan - Access591{{"Access[591∈21]
ᐸ436.itemsᐳ"}}:::plan - Access591 --> First438 - PgUnionAllSingle440["PgUnionAllSingle[440∈21]"]:::plan - First438 --> PgUnionAllSingle440 - Access441{{"Access[441∈21]
ᐸ440.1ᐳ"}}:::plan - PgUnionAllSingle440 --> Access441 - JSONParse468[["JSONParse[468∈21]
ᐸ419ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplication"]]:::plan - Access419 --> JSONParse468 - JSONParse468 --> Access469 - First472{{"First[472∈21]"}}:::plan - PgSelectRows473[["PgSelectRows[473∈21]"]]:::plan - PgSelectRows473 --> First472 - PgSelect470 --> PgSelectRows473 - PgSelectSingle474{{"PgSelectSingle[474∈21]
ᐸgcp_applicationsᐳ"}}:::plan - First472 --> PgSelectSingle474 - PgSelectSingle474 --> PgClassExpression476 - Lambda478{{"Lambda[478∈21]
ᐸbase64JSONEncodeᐳ"}}:::plan - List477 --> Lambda478 - PgClassExpression479{{"PgClassExpression[479∈21]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan - PgSelectSingle474 --> PgClassExpression479 - PgSelectSingle474 --> PgClassExpression480 - PgSelectSingle474 --> PgClassExpression481 - First484{{"First[484∈21]"}}:::plan - Access592{{"Access[592∈21]
ᐸ482.itemsᐳ"}}:::plan - Access592 --> First484 - PgUnionAllSingle486["PgUnionAllSingle[486∈21]"]:::plan - First484 --> PgUnionAllSingle486 - Access487{{"Access[487∈21]
ᐸ486.1ᐳ"}}:::plan - PgUnionAllSingle486 --> Access487 - PgUnionAll436 --> Access591 - PgUnionAll482 --> Access592 - PgSelect444[["PgSelect[444∈22]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan - Access443{{"Access[443∈22]
ᐸ442.0ᐳ"}}:::plan - Object11 & Access443 --> PgSelect444 - List453{{"List[453∈22]
ᐸ71,452ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization"}}:::plan - PgClassExpression452{{"PgClassExpression[452∈22]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant71 & PgClassExpression452 --> List453 - PgSelect458[["PgSelect[458∈22]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan - Access457{{"Access[457∈22]
ᐸ456.0ᐳ"}}:::plan - Object11 & Access457 --> PgSelect458 - List465{{"List[465∈22]
ᐸ83,464ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson"}}:::plan - PgClassExpression464{{"PgClassExpression[464∈22]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant83 & PgClassExpression464 --> List465 - JSONParse442[["JSONParse[442∈22]
ᐸ441ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan - Access441 --> JSONParse442 - JSONParse442 --> Access443 - First448{{"First[448∈22]"}}:::plan - PgSelectRows449[["PgSelectRows[449∈22]"]]:::plan - PgSelectRows449 --> First448 - PgSelect444 --> PgSelectRows449 - PgSelectSingle450{{"PgSelectSingle[450∈22]
ᐸorganizationsᐳ"}}:::plan - First448 --> PgSelectSingle450 - PgSelectSingle450 --> PgClassExpression452 - Lambda454{{"Lambda[454∈22]
ᐸbase64JSONEncodeᐳ"}}:::plan - List453 --> Lambda454 - PgClassExpression455{{"PgClassExpression[455∈22]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle450 --> PgClassExpression455 - JSONParse456[["JSONParse[456∈22]
ᐸ441ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan - Access441 --> JSONParse456 - JSONParse456 --> Access457 - First460{{"First[460∈22]"}}:::plan - PgSelectRows461[["PgSelectRows[461∈22]"]]:::plan - PgSelectRows461 --> First460 - PgSelect458 --> PgSelectRows461 - PgSelectSingle462{{"PgSelectSingle[462∈22]
ᐸpeopleᐳ"}}:::plan - First460 --> PgSelectSingle462 - PgSelectSingle462 --> PgClassExpression464 - Lambda466{{"Lambda[466∈22]
ᐸbase64JSONEncodeᐳ"}}:::plan - List465 --> Lambda466 - PgClassExpression467{{"PgClassExpression[467∈22]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle462 --> PgClassExpression467 - PgSelect490[["PgSelect[490∈23]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan - Access489{{"Access[489∈23]
ᐸ488.0ᐳ"}}:::plan - Object11 & Access489 --> PgSelect490 - List499{{"List[499∈23]
ᐸ71,498ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization"}}:::plan - PgClassExpression498{{"PgClassExpression[498∈23]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant71 & PgClassExpression498 --> List499 - PgSelect504[["PgSelect[504∈23]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan - Access503{{"Access[503∈23]
ᐸ502.0ᐳ"}}:::plan - Object11 & Access503 --> PgSelect504 - List511{{"List[511∈23]
ᐸ83,510ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson"}}:::plan - PgClassExpression510{{"PgClassExpression[510∈23]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant83 & PgClassExpression510 --> List511 - JSONParse488[["JSONParse[488∈23]
ᐸ487ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan - Access487 --> JSONParse488 - JSONParse488 --> Access489 - First494{{"First[494∈23]"}}:::plan - PgSelectRows495[["PgSelectRows[495∈23]"]]:::plan - PgSelectRows495 --> First494 - PgSelect490 --> PgSelectRows495 - PgSelectSingle496{{"PgSelectSingle[496∈23]
ᐸorganizationsᐳ"}}:::plan - First494 --> PgSelectSingle496 - PgSelectSingle496 --> PgClassExpression498 - Lambda500{{"Lambda[500∈23]
ᐸbase64JSONEncodeᐳ"}}:::plan - List499 --> Lambda500 - PgClassExpression501{{"PgClassExpression[501∈23]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle496 --> PgClassExpression501 - JSONParse502[["JSONParse[502∈23]
ᐸ487ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan - Access487 --> JSONParse502 - JSONParse502 --> Access503 - First506{{"First[506∈23]"}}:::plan - PgSelectRows507[["PgSelectRows[507∈23]"]]:::plan - PgSelectRows507 --> First506 - PgSelect504 --> PgSelectRows507 - PgSelectSingle508{{"PgSelectSingle[508∈23]
ᐸpeopleᐳ"}}:::plan - First506 --> PgSelectSingle508 - PgSelectSingle508 --> PgClassExpression510 - Lambda512{{"Lambda[512∈23]
ᐸbase64JSONEncodeᐳ"}}:::plan - List511 --> Lambda512 - PgClassExpression513{{"PgClassExpression[513∈23]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle508 --> PgClassExpression513 - __Item519[/"__Item[519∈24]
ᐸ594ᐳ"\]:::itemplan - Access594 ==> __Item519 - PgUnionAllSingle520["PgUnionAllSingle[520∈24]"]:::plan - __Item519 --> PgUnionAllSingle520 - Access521{{"Access[521∈24]
ᐸ520.1ᐳ"}}:::plan - PgUnionAllSingle520 --> Access521 - PgSelect524[["PgSelect[524∈25]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"]]:::plan - Access523{{"Access[523∈25]
ᐸ522.0ᐳ"}}:::plan - Object11 & Access523 --> PgSelect524 - List533{{"List[533∈25]
ᐸ71,532ᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"}}:::plan - PgClassExpression532{{"PgClassExpression[532∈25]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant71 & PgClassExpression532 --> List533 - PgSelect538[["PgSelect[538∈25]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳPerson"]]:::plan - Access537{{"Access[537∈25]
ᐸ536.0ᐳ"}}:::plan - Object11 & Access537 --> PgSelect538 - List545{{"List[545∈25]
ᐸ83,544ᐳ
ᐳThirdPartyVulnerabilityᐳPerson"}}:::plan - PgClassExpression544{{"PgClassExpression[544∈25]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant83 & PgClassExpression544 --> List545 - JSONParse522[["JSONParse[522∈25]
ᐸ521ᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"]]:::plan - Access521 --> JSONParse522 - JSONParse522 --> Access523 - First528{{"First[528∈25]"}}:::plan - PgSelectRows529[["PgSelectRows[529∈25]"]]:::plan - PgSelectRows529 --> First528 - PgSelect524 --> PgSelectRows529 - PgSelectSingle530{{"PgSelectSingle[530∈25]
ᐸorganizationsᐳ"}}:::plan - First528 --> PgSelectSingle530 - PgSelectSingle530 --> PgClassExpression532 - Lambda534{{"Lambda[534∈25]
ᐸbase64JSONEncodeᐳ"}}:::plan - List533 --> Lambda534 - PgClassExpression535{{"PgClassExpression[535∈25]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle530 --> PgClassExpression535 - JSONParse536[["JSONParse[536∈25]
ᐸ521ᐳ
ᐳThirdPartyVulnerabilityᐳPerson"]]:::plan - Access521 --> JSONParse536 - JSONParse536 --> Access537 - First540{{"First[540∈25]"}}:::plan - PgSelectRows541[["PgSelectRows[541∈25]"]]:::plan - PgSelectRows541 --> First540 - PgSelect538 --> PgSelectRows541 - PgSelectSingle542{{"PgSelectSingle[542∈25]
ᐸpeopleᐳ"}}:::plan - First540 --> PgSelectSingle542 - PgSelectSingle542 --> PgClassExpression544 - Lambda546{{"Lambda[546∈25]
ᐸbase64JSONEncodeᐳ"}}:::plan - List545 --> Lambda546 - PgClassExpression547{{"PgClassExpression[547∈25]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle542 --> PgClassExpression547 - __Item551[/"__Item[551∈26]
ᐸ595ᐳ"\]:::itemplan - Access595 ==> __Item551 - PgUnionAllSingle552["PgUnionAllSingle[552∈26]"]:::plan - __Item551 --> PgUnionAllSingle552 - Access553{{"Access[553∈26]
ᐸ552.1ᐳ"}}:::plan - PgUnionAllSingle552 --> Access553 - PgSelect556[["PgSelect[556∈27]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"]]:::plan - Access555{{"Access[555∈27]
ᐸ554.0ᐳ"}}:::plan - Object11 & Access555 --> PgSelect556 - List565{{"List[565∈27]
ᐸ71,564ᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"}}:::plan - PgClassExpression564{{"PgClassExpression[564∈27]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant71 & PgClassExpression564 --> List565 - PgSelect570[["PgSelect[570∈27]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳPerson"]]:::plan - Access569{{"Access[569∈27]
ᐸ568.0ᐳ"}}:::plan - Object11 & Access569 --> PgSelect570 - List577{{"List[577∈27]
ᐸ83,576ᐳ
ᐳThirdPartyVulnerabilityᐳPerson"}}:::plan - PgClassExpression576{{"PgClassExpression[576∈27]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant83 & PgClassExpression576 --> List577 - JSONParse554[["JSONParse[554∈27]
ᐸ553ᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"]]:::plan - Access553 --> JSONParse554 - JSONParse554 --> Access555 - First560{{"First[560∈27]"}}:::plan - PgSelectRows561[["PgSelectRows[561∈27]"]]:::plan - PgSelectRows561 --> First560 - PgSelect556 --> PgSelectRows561 - PgSelectSingle562{{"PgSelectSingle[562∈27]
ᐸorganizationsᐳ"}}:::plan - First560 --> PgSelectSingle562 - PgSelectSingle562 --> PgClassExpression564 - Lambda566{{"Lambda[566∈27]
ᐸbase64JSONEncodeᐳ"}}:::plan - List565 --> Lambda566 - PgClassExpression567{{"PgClassExpression[567∈27]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle562 --> PgClassExpression567 - JSONParse568[["JSONParse[568∈27]
ᐸ553ᐳ
ᐳThirdPartyVulnerabilityᐳPerson"]]:::plan - Access553 --> JSONParse568 - JSONParse568 --> Access569 - First572{{"First[572∈27]"}}:::plan - PgSelectRows573[["PgSelectRows[573∈27]"]]:::plan - PgSelectRows573 --> First572 - PgSelect570 --> PgSelectRows573 - PgSelectSingle574{{"PgSelectSingle[574∈27]
ᐸpeopleᐳ"}}:::plan - First572 --> PgSelectSingle574 - PgSelectSingle574 --> PgClassExpression576 - Lambda578{{"Lambda[578∈27]
ᐸbase64JSONEncodeᐳ"}}:::plan - List577 --> Lambda578 - PgClassExpression579{{"PgClassExpression[579∈27]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle574 --> PgClassExpression579 + Constant28{{"Constant[28∈0] ➊
ᐸ'first_party_vulnerabilities'ᐳ"}}:::plan + Constant51{{"Constant[51∈0] ➊
ᐸ'aws_applications'ᐳ"}}:::plan + Constant73{{"Constant[73∈0] ➊
ᐸ'organizations'ᐳ"}}:::plan + Constant85{{"Constant[85∈0] ➊
ᐸ'people'ᐳ"}}:::plan + Constant97{{"Constant[97∈0] ➊
ᐸ'gcp_applications'ᐳ"}}:::plan + Constant310{{"Constant[310∈0] ➊
ᐸ'third_party_vulnerabilities'ᐳ"}}:::plan + __Item16[/"__Item[16∈1]
ᐸ601ᐳ"\]:::itemplan + Access601 ==> __Item16 + PgUnionAllSingle17["PgUnionAllSingle[17∈1]"]:::plan + __Item16 --> PgUnionAllSingle17 + Access18{{"Access[18∈1]
ᐸ17.1ᐳ"}}:::plan + PgUnionAllSingle17 --> Access18 + PgUnionAll37[["PgUnionAll[37∈2]
ᐳFirstPartyVulnerability"]]:::plan + PgClassExpression29{{"PgClassExpression[29∈2]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + Connection35{{"Connection[35∈2] ➊
ᐸ33ᐳ
ᐳFirstPartyVulnerability"}}:::plan + Object11 & PgClassExpression29 & Lambda13 & Connection35 --> PgUnionAll37 + PgUnionAll319[["PgUnionAll[319∈2]
ᐳThirdPartyVulnerability"]]:::plan + PgClassExpression311{{"PgClassExpression[311∈2]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + Connection317{{"Connection[317∈2] ➊
ᐸ315ᐳ
ᐳThirdPartyVulnerability"}}:::plan + Object11 & PgClassExpression311 & Lambda13 & Connection317 --> PgUnionAll319 + PgUnionAll136[["PgUnionAll[136∈2]
ᐳFirstPartyVulnerability"]]:::plan + Object11 & PgClassExpression29 & Lambda13 --> PgUnionAll136 + PgUnionAll418[["PgUnionAll[418∈2]
ᐳThirdPartyVulnerability"]]:::plan + Object11 & PgClassExpression311 & Lambda13 --> PgUnionAll418 + PgUnionAll240[["PgUnionAll[240∈2]
ᐳFirstPartyVulnerability"]]:::plan + Connection239{{"Connection[239∈2] ➊
ᐸ237ᐳ
ᐳFirstPartyVulnerability"}}:::plan + Object11 & PgClassExpression29 & Connection239 --> PgUnionAll240 + PgUnionAll522[["PgUnionAll[522∈2]
ᐳThirdPartyVulnerability"]]:::plan + Connection521{{"Connection[521∈2] ➊
ᐸ519ᐳ
ᐳThirdPartyVulnerability"}}:::plan + Object11 & PgClassExpression311 & Connection521 --> PgUnionAll522 + PgSelect21[["PgSelect[21∈2]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access20{{"Access[20∈2]
ᐸ19.0ᐳ"}}:::plan + Object11 & Access20 --> PgSelect21 + List30{{"List[30∈2]
ᐸ28,29ᐳ
ᐳFirstPartyVulnerability"}}:::plan + Constant28 & PgClassExpression29 --> List30 + PgUnionAll271[["PgUnionAll[271∈2]
ᐳFirstPartyVulnerability"]]:::plan + Object11 & PgClassExpression29 --> PgUnionAll271 + PgSelect305[["PgSelect[305∈2]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access304{{"Access[304∈2]
ᐸ303.0ᐳ"}}:::plan + Object11 & Access304 --> PgSelect305 + List312{{"List[312∈2]
ᐸ310,311ᐳ
ᐳThirdPartyVulnerability"}}:::plan + Constant310 & PgClassExpression311 --> List312 + PgUnionAll553[["PgUnionAll[553∈2]
ᐳThirdPartyVulnerability"]]:::plan + Object11 & PgClassExpression311 --> PgUnionAll553 + JSONParse19[["JSONParse[19∈2]
ᐸ18ᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access18 --> JSONParse19 + JSONParse19 --> Access20 + First25{{"First[25∈2]"}}:::plan + PgSelectRows26[["PgSelectRows[26∈2]"]]:::plan + PgSelectRows26 --> First25 + PgSelect21 --> PgSelectRows26 + PgSelectSingle27{{"PgSelectSingle[27∈2]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + First25 --> PgSelectSingle27 + PgSelectSingle27 --> PgClassExpression29 + Lambda31{{"Lambda[31∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan + List30 --> Lambda31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle27 --> PgClassExpression32 + JSONParse303[["JSONParse[303∈2]
ᐸ18ᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access18 --> JSONParse303 + JSONParse303 --> Access304 + First307{{"First[307∈2]"}}:::plan + PgSelectRows308[["PgSelectRows[308∈2]"]]:::plan + PgSelectRows308 --> First307 + PgSelect305 --> PgSelectRows308 + PgSelectSingle309{{"PgSelectSingle[309∈2]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + First307 --> PgSelectSingle309 + PgSelectSingle309 --> PgClassExpression311 + Lambda313{{"Lambda[313∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan + List312 --> Lambda313 + PgClassExpression314{{"PgClassExpression[314∈2]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle309 --> PgClassExpression314 + Access587{{"Access[587∈2]
ᐸ37.itemsᐳ"}}:::plan + PgUnionAll37 --> Access587 + Access590{{"Access[590∈2]
ᐸ136.itemsᐳ"}}:::plan + PgUnionAll136 --> Access590 + Access591{{"Access[591∈2]
ᐸ240.itemsᐳ"}}:::plan + PgUnionAll240 --> Access591 + Access592{{"Access[592∈2]
ᐸ271.itemsᐳ"}}:::plan + PgUnionAll271 --> Access592 + Access595{{"Access[595∈2]
ᐸ319.itemsᐳ"}}:::plan + PgUnionAll319 --> Access595 + Access598{{"Access[598∈2]
ᐸ418.itemsᐳ"}}:::plan + PgUnionAll418 --> Access598 + Access599{{"Access[599∈2]
ᐸ522.itemsᐳ"}}:::plan + PgUnionAll522 --> Access599 + Access600{{"Access[600∈2]
ᐸ553.itemsᐳ"}}:::plan + PgUnionAll553 --> Access600 + __Item39[/"__Item[39∈3]
ᐸ587ᐳ"\]:::itemplan + Access587 ==> __Item39 + PgUnionAllSingle40["PgUnionAllSingle[40∈3]"]:::plan + __Item39 --> PgUnionAllSingle40 + Access41{{"Access[41∈3]
ᐸ40.1ᐳ"}}:::plan + PgUnionAllSingle40 --> Access41 + PgUnionAll58[["PgUnionAll[58∈4]
ᐳFirstPartyVulnerabilityᐳAwsApplication"]]:::plan + PgClassExpression56{{"PgClassExpression[56∈4]
ᐸ__aws_appl...person_id”ᐳ"}}:::plan + PgClassExpression57{{"PgClassExpression[57∈4]
ᐸ__aws_appl...zation_id”ᐳ"}}:::plan + Object11 & PgClassExpression56 & PgClassExpression57 --> PgUnionAll58 + PgUnionAll104[["PgUnionAll[104∈4]
ᐳFirstPartyVulnerabilityᐳGcpApplication"]]:::plan + PgClassExpression102{{"PgClassExpression[102∈4]
ᐸ__gcp_appl...person_id”ᐳ"}}:::plan + PgClassExpression103{{"PgClassExpression[103∈4]
ᐸ__gcp_appl...zation_id”ᐳ"}}:::plan + Object11 & PgClassExpression102 & PgClassExpression103 --> PgUnionAll104 + PgSelect44[["PgSelect[44∈4]
ᐸaws_applicationsᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplication"]]:::plan + Access43{{"Access[43∈4]
ᐸ42.0ᐳ"}}:::plan + Object11 & Access43 --> PgSelect44 + List53{{"List[53∈4]
ᐸ51,52ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplication"}}:::plan + PgClassExpression52{{"PgClassExpression[52∈4]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan + Constant51 & PgClassExpression52 --> List53 + PgSelect92[["PgSelect[92∈4]
ᐸgcp_applicationsᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplication"]]:::plan + Access91{{"Access[91∈4]
ᐸ90.0ᐳ"}}:::plan + Object11 & Access91 --> PgSelect92 + List99{{"List[99∈4]
ᐸ97,98ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplication"}}:::plan + PgClassExpression98{{"PgClassExpression[98∈4]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan + Constant97 & PgClassExpression98 --> List99 + JSONParse42[["JSONParse[42∈4]
ᐸ41ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplication"]]:::plan + Access41 --> JSONParse42 + JSONParse42 --> Access43 + First48{{"First[48∈4]"}}:::plan + PgSelectRows49[["PgSelectRows[49∈4]"]]:::plan + PgSelectRows49 --> First48 + PgSelect44 --> PgSelectRows49 + PgSelectSingle50{{"PgSelectSingle[50∈4]
ᐸaws_applicationsᐳ"}}:::plan + First48 --> PgSelectSingle50 + PgSelectSingle50 --> PgClassExpression52 + Lambda54{{"Lambda[54∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + List53 --> Lambda54 + PgClassExpression55{{"PgClassExpression[55∈4]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression55 + PgSelectSingle50 --> PgClassExpression56 + PgSelectSingle50 --> PgClassExpression57 + First60{{"First[60∈4]"}}:::plan + Access585{{"Access[585∈4]
ᐸ58.itemsᐳ"}}:::plan + Access585 --> First60 + PgUnionAllSingle62["PgUnionAllSingle[62∈4]"]:::plan + First60 --> PgUnionAllSingle62 + Access63{{"Access[63∈4]
ᐸ62.1ᐳ"}}:::plan + PgUnionAllSingle62 --> Access63 + JSONParse90[["JSONParse[90∈4]
ᐸ41ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplication"]]:::plan + Access41 --> JSONParse90 + JSONParse90 --> Access91 + First94{{"First[94∈4]"}}:::plan + PgSelectRows95[["PgSelectRows[95∈4]"]]:::plan + PgSelectRows95 --> First94 + PgSelect92 --> PgSelectRows95 + PgSelectSingle96{{"PgSelectSingle[96∈4]
ᐸgcp_applicationsᐳ"}}:::plan + First94 --> PgSelectSingle96 + PgSelectSingle96 --> PgClassExpression98 + Lambda100{{"Lambda[100∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + List99 --> Lambda100 + PgClassExpression101{{"PgClassExpression[101∈4]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan + PgSelectSingle96 --> PgClassExpression101 + PgSelectSingle96 --> PgClassExpression102 + PgSelectSingle96 --> PgClassExpression103 + First106{{"First[106∈4]"}}:::plan + Access586{{"Access[586∈4]
ᐸ104.itemsᐳ"}}:::plan + Access586 --> First106 + PgUnionAllSingle108["PgUnionAllSingle[108∈4]"]:::plan + First106 --> PgUnionAllSingle108 + Access109{{"Access[109∈4]
ᐸ108.1ᐳ"}}:::plan + PgUnionAllSingle108 --> Access109 + PgUnionAll58 --> Access585 + PgUnionAll104 --> Access586 + PgSelect66[["PgSelect[66∈5]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan + Access65{{"Access[65∈5]
ᐸ64.0ᐳ"}}:::plan + Object11 & Access65 --> PgSelect66 + List75{{"List[75∈5]
ᐸ73,74ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization"}}:::plan + PgClassExpression74{{"PgClassExpression[74∈5]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant73 & PgClassExpression74 --> List75 + PgSelect80[["PgSelect[80∈5]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan + Access79{{"Access[79∈5]
ᐸ78.0ᐳ"}}:::plan + Object11 & Access79 --> PgSelect80 + List87{{"List[87∈5]
ᐸ85,86ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson"}}:::plan + PgClassExpression86{{"PgClassExpression[86∈5]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant85 & PgClassExpression86 --> List87 + JSONParse64[["JSONParse[64∈5]
ᐸ63ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan + Access63 --> JSONParse64 + JSONParse64 --> Access65 + First70{{"First[70∈5]"}}:::plan + PgSelectRows71[["PgSelectRows[71∈5]"]]:::plan + PgSelectRows71 --> First70 + PgSelect66 --> PgSelectRows71 + PgSelectSingle72{{"PgSelectSingle[72∈5]
ᐸorganizationsᐳ"}}:::plan + First70 --> PgSelectSingle72 + PgSelectSingle72 --> PgClassExpression74 + Lambda76{{"Lambda[76∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan + List75 --> Lambda76 + PgClassExpression77{{"PgClassExpression[77∈5]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle72 --> PgClassExpression77 + JSONParse78[["JSONParse[78∈5]
ᐸ63ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan + Access63 --> JSONParse78 + JSONParse78 --> Access79 + First82{{"First[82∈5]"}}:::plan + PgSelectRows83[["PgSelectRows[83∈5]"]]:::plan + PgSelectRows83 --> First82 + PgSelect80 --> PgSelectRows83 + PgSelectSingle84{{"PgSelectSingle[84∈5]
ᐸpeopleᐳ"}}:::plan + First82 --> PgSelectSingle84 + PgSelectSingle84 --> PgClassExpression86 + Lambda88{{"Lambda[88∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan + List87 --> Lambda88 + PgClassExpression89{{"PgClassExpression[89∈5]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle84 --> PgClassExpression89 + PgSelect112[["PgSelect[112∈6]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan + Access111{{"Access[111∈6]
ᐸ110.0ᐳ"}}:::plan + Object11 & Access111 --> PgSelect112 + List121{{"List[121∈6]
ᐸ73,120ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization"}}:::plan + PgClassExpression120{{"PgClassExpression[120∈6]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant73 & PgClassExpression120 --> List121 + PgSelect126[["PgSelect[126∈6]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan + Access125{{"Access[125∈6]
ᐸ124.0ᐳ"}}:::plan + Object11 & Access125 --> PgSelect126 + List133{{"List[133∈6]
ᐸ85,132ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson"}}:::plan + PgClassExpression132{{"PgClassExpression[132∈6]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant85 & PgClassExpression132 --> List133 + JSONParse110[["JSONParse[110∈6]
ᐸ109ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan + Access109 --> JSONParse110 + JSONParse110 --> Access111 + First116{{"First[116∈6]"}}:::plan + PgSelectRows117[["PgSelectRows[117∈6]"]]:::plan + PgSelectRows117 --> First116 + PgSelect112 --> PgSelectRows117 + PgSelectSingle118{{"PgSelectSingle[118∈6]
ᐸorganizationsᐳ"}}:::plan + First116 --> PgSelectSingle118 + PgSelectSingle118 --> PgClassExpression120 + Lambda122{{"Lambda[122∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan + List121 --> Lambda122 + PgClassExpression123{{"PgClassExpression[123∈6]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle118 --> PgClassExpression123 + JSONParse124[["JSONParse[124∈6]
ᐸ109ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan + Access109 --> JSONParse124 + JSONParse124 --> Access125 + First128{{"First[128∈6]"}}:::plan + PgSelectRows129[["PgSelectRows[129∈6]"]]:::plan + PgSelectRows129 --> First128 + PgSelect126 --> PgSelectRows129 + PgSelectSingle130{{"PgSelectSingle[130∈6]
ᐸpeopleᐳ"}}:::plan + First128 --> PgSelectSingle130 + PgSelectSingle130 --> PgClassExpression132 + Lambda134{{"Lambda[134∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan + List133 --> Lambda134 + PgClassExpression135{{"PgClassExpression[135∈6]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle130 --> PgClassExpression135 + __Item140[/"__Item[140∈7]
ᐸ590ᐳ"\]:::itemplan + Access590 ==> __Item140 + PgUnionAllSingle141["PgUnionAllSingle[141∈7]"]:::plan + __Item140 --> PgUnionAllSingle141 + Access142{{"Access[142∈7]
ᐸ141.1ᐳ"}}:::plan + PgUnionAllSingle141 --> Access142 + PgUnionAll159[["PgUnionAll[159∈8]
ᐳFirstPartyVulnerabilityᐳAwsApplication"]]:::plan + PgClassExpression157{{"PgClassExpression[157∈8]
ᐸ__aws_appl...person_id”ᐳ"}}:::plan + PgClassExpression158{{"PgClassExpression[158∈8]
ᐸ__aws_appl...zation_id”ᐳ"}}:::plan + Object11 & PgClassExpression157 & PgClassExpression158 --> PgUnionAll159 + PgUnionAll205[["PgUnionAll[205∈8]
ᐳFirstPartyVulnerabilityᐳGcpApplication"]]:::plan + PgClassExpression203{{"PgClassExpression[203∈8]
ᐸ__gcp_appl...person_id”ᐳ"}}:::plan + PgClassExpression204{{"PgClassExpression[204∈8]
ᐸ__gcp_appl...zation_id”ᐳ"}}:::plan + Object11 & PgClassExpression203 & PgClassExpression204 --> PgUnionAll205 + PgSelect145[["PgSelect[145∈8]
ᐸaws_applicationsᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplication"]]:::plan + Access144{{"Access[144∈8]
ᐸ143.0ᐳ"}}:::plan + Object11 & Access144 --> PgSelect145 + List154{{"List[154∈8]
ᐸ51,153ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplication"}}:::plan + PgClassExpression153{{"PgClassExpression[153∈8]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan + Constant51 & PgClassExpression153 --> List154 + PgSelect193[["PgSelect[193∈8]
ᐸgcp_applicationsᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplication"]]:::plan + Access192{{"Access[192∈8]
ᐸ191.0ᐳ"}}:::plan + Object11 & Access192 --> PgSelect193 + List200{{"List[200∈8]
ᐸ97,199ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplication"}}:::plan + PgClassExpression199{{"PgClassExpression[199∈8]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan + Constant97 & PgClassExpression199 --> List200 + JSONParse143[["JSONParse[143∈8]
ᐸ142ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplication"]]:::plan + Access142 --> JSONParse143 + JSONParse143 --> Access144 + First149{{"First[149∈8]"}}:::plan + PgSelectRows150[["PgSelectRows[150∈8]"]]:::plan + PgSelectRows150 --> First149 + PgSelect145 --> PgSelectRows150 + PgSelectSingle151{{"PgSelectSingle[151∈8]
ᐸaws_applicationsᐳ"}}:::plan + First149 --> PgSelectSingle151 + PgSelectSingle151 --> PgClassExpression153 + Lambda155{{"Lambda[155∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan + List154 --> Lambda155 + PgClassExpression156{{"PgClassExpression[156∈8]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan + PgSelectSingle151 --> PgClassExpression156 + PgSelectSingle151 --> PgClassExpression157 + PgSelectSingle151 --> PgClassExpression158 + First161{{"First[161∈8]"}}:::plan + Access588{{"Access[588∈8]
ᐸ159.itemsᐳ"}}:::plan + Access588 --> First161 + PgUnionAllSingle163["PgUnionAllSingle[163∈8]"]:::plan + First161 --> PgUnionAllSingle163 + Access164{{"Access[164∈8]
ᐸ163.1ᐳ"}}:::plan + PgUnionAllSingle163 --> Access164 + JSONParse191[["JSONParse[191∈8]
ᐸ142ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplication"]]:::plan + Access142 --> JSONParse191 + JSONParse191 --> Access192 + First195{{"First[195∈8]"}}:::plan + PgSelectRows196[["PgSelectRows[196∈8]"]]:::plan + PgSelectRows196 --> First195 + PgSelect193 --> PgSelectRows196 + PgSelectSingle197{{"PgSelectSingle[197∈8]
ᐸgcp_applicationsᐳ"}}:::plan + First195 --> PgSelectSingle197 + PgSelectSingle197 --> PgClassExpression199 + Lambda201{{"Lambda[201∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan + List200 --> Lambda201 + PgClassExpression202{{"PgClassExpression[202∈8]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan + PgSelectSingle197 --> PgClassExpression202 + PgSelectSingle197 --> PgClassExpression203 + PgSelectSingle197 --> PgClassExpression204 + First207{{"First[207∈8]"}}:::plan + Access589{{"Access[589∈8]
ᐸ205.itemsᐳ"}}:::plan + Access589 --> First207 + PgUnionAllSingle209["PgUnionAllSingle[209∈8]"]:::plan + First207 --> PgUnionAllSingle209 + Access210{{"Access[210∈8]
ᐸ209.1ᐳ"}}:::plan + PgUnionAllSingle209 --> Access210 + PgUnionAll159 --> Access588 + PgUnionAll205 --> Access589 + PgSelect167[["PgSelect[167∈9]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan + Access166{{"Access[166∈9]
ᐸ165.0ᐳ"}}:::plan + Object11 & Access166 --> PgSelect167 + List176{{"List[176∈9]
ᐸ73,175ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization"}}:::plan + PgClassExpression175{{"PgClassExpression[175∈9]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant73 & PgClassExpression175 --> List176 + PgSelect181[["PgSelect[181∈9]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan + Access180{{"Access[180∈9]
ᐸ179.0ᐳ"}}:::plan + Object11 & Access180 --> PgSelect181 + List188{{"List[188∈9]
ᐸ85,187ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson"}}:::plan + PgClassExpression187{{"PgClassExpression[187∈9]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant85 & PgClassExpression187 --> List188 + JSONParse165[["JSONParse[165∈9]
ᐸ164ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan + Access164 --> JSONParse165 + JSONParse165 --> Access166 + First171{{"First[171∈9]"}}:::plan + PgSelectRows172[["PgSelectRows[172∈9]"]]:::plan + PgSelectRows172 --> First171 + PgSelect167 --> PgSelectRows172 + PgSelectSingle173{{"PgSelectSingle[173∈9]
ᐸorganizationsᐳ"}}:::plan + First171 --> PgSelectSingle173 + PgSelectSingle173 --> PgClassExpression175 + Lambda177{{"Lambda[177∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan + List176 --> Lambda177 + PgClassExpression178{{"PgClassExpression[178∈9]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle173 --> PgClassExpression178 + JSONParse179[["JSONParse[179∈9]
ᐸ164ᐳ
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan + Access164 --> JSONParse179 + JSONParse179 --> Access180 + First183{{"First[183∈9]"}}:::plan + PgSelectRows184[["PgSelectRows[184∈9]"]]:::plan + PgSelectRows184 --> First183 + PgSelect181 --> PgSelectRows184 + PgSelectSingle185{{"PgSelectSingle[185∈9]
ᐸpeopleᐳ"}}:::plan + First183 --> PgSelectSingle185 + PgSelectSingle185 --> PgClassExpression187 + Lambda189{{"Lambda[189∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan + List188 --> Lambda189 + PgClassExpression190{{"PgClassExpression[190∈9]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle185 --> PgClassExpression190 + PgSelect213[["PgSelect[213∈10]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan + Access212{{"Access[212∈10]
ᐸ211.0ᐳ"}}:::plan + Object11 & Access212 --> PgSelect213 + List222{{"List[222∈10]
ᐸ73,221ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization"}}:::plan + PgClassExpression221{{"PgClassExpression[221∈10]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant73 & PgClassExpression221 --> List222 + PgSelect227[["PgSelect[227∈10]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan + Access226{{"Access[226∈10]
ᐸ225.0ᐳ"}}:::plan + Object11 & Access226 --> PgSelect227 + List234{{"List[234∈10]
ᐸ85,233ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson"}}:::plan + PgClassExpression233{{"PgClassExpression[233∈10]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant85 & PgClassExpression233 --> List234 + JSONParse211[["JSONParse[211∈10]
ᐸ210ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan + Access210 --> JSONParse211 + JSONParse211 --> Access212 + First217{{"First[217∈10]"}}:::plan + PgSelectRows218[["PgSelectRows[218∈10]"]]:::plan + PgSelectRows218 --> First217 + PgSelect213 --> PgSelectRows218 + PgSelectSingle219{{"PgSelectSingle[219∈10]
ᐸorganizationsᐳ"}}:::plan + First217 --> PgSelectSingle219 + PgSelectSingle219 --> PgClassExpression221 + Lambda223{{"Lambda[223∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan + List222 --> Lambda223 + PgClassExpression224{{"PgClassExpression[224∈10]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle219 --> PgClassExpression224 + JSONParse225[["JSONParse[225∈10]
ᐸ210ᐳ
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan + Access210 --> JSONParse225 + JSONParse225 --> Access226 + First229{{"First[229∈10]"}}:::plan + PgSelectRows230[["PgSelectRows[230∈10]"]]:::plan + PgSelectRows230 --> First229 + PgSelect227 --> PgSelectRows230 + PgSelectSingle231{{"PgSelectSingle[231∈10]
ᐸpeopleᐳ"}}:::plan + First229 --> PgSelectSingle231 + PgSelectSingle231 --> PgClassExpression233 + Lambda235{{"Lambda[235∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan + List234 --> Lambda235 + PgClassExpression236{{"PgClassExpression[236∈10]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle231 --> PgClassExpression236 + __Item242[/"__Item[242∈11]
ᐸ591ᐳ"\]:::itemplan + Access591 ==> __Item242 + PgUnionAllSingle243["PgUnionAllSingle[243∈11]"]:::plan + __Item242 --> PgUnionAllSingle243 + Access244{{"Access[244∈11]
ᐸ243.1ᐳ"}}:::plan + PgUnionAllSingle243 --> Access244 + PgSelect247[["PgSelect[247∈12]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"]]:::plan + Access246{{"Access[246∈12]
ᐸ245.0ᐳ"}}:::plan + Object11 & Access246 --> PgSelect247 + List256{{"List[256∈12]
ᐸ73,255ᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"}}:::plan + PgClassExpression255{{"PgClassExpression[255∈12]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant73 & PgClassExpression255 --> List256 + PgSelect261[["PgSelect[261∈12]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳPerson"]]:::plan + Access260{{"Access[260∈12]
ᐸ259.0ᐳ"}}:::plan + Object11 & Access260 --> PgSelect261 + List268{{"List[268∈12]
ᐸ85,267ᐳ
ᐳFirstPartyVulnerabilityᐳPerson"}}:::plan + PgClassExpression267{{"PgClassExpression[267∈12]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant85 & PgClassExpression267 --> List268 + JSONParse245[["JSONParse[245∈12]
ᐸ244ᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"]]:::plan + Access244 --> JSONParse245 + JSONParse245 --> Access246 + First251{{"First[251∈12]"}}:::plan + PgSelectRows252[["PgSelectRows[252∈12]"]]:::plan + PgSelectRows252 --> First251 + PgSelect247 --> PgSelectRows252 + PgSelectSingle253{{"PgSelectSingle[253∈12]
ᐸorganizationsᐳ"}}:::plan + First251 --> PgSelectSingle253 + PgSelectSingle253 --> PgClassExpression255 + Lambda257{{"Lambda[257∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan + List256 --> Lambda257 + PgClassExpression258{{"PgClassExpression[258∈12]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle253 --> PgClassExpression258 + JSONParse259[["JSONParse[259∈12]
ᐸ244ᐳ
ᐳFirstPartyVulnerabilityᐳPerson"]]:::plan + Access244 --> JSONParse259 + JSONParse259 --> Access260 + First263{{"First[263∈12]"}}:::plan + PgSelectRows264[["PgSelectRows[264∈12]"]]:::plan + PgSelectRows264 --> First263 + PgSelect261 --> PgSelectRows264 + PgSelectSingle265{{"PgSelectSingle[265∈12]
ᐸpeopleᐳ"}}:::plan + First263 --> PgSelectSingle265 + PgSelectSingle265 --> PgClassExpression267 + Lambda269{{"Lambda[269∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan + List268 --> Lambda269 + PgClassExpression270{{"PgClassExpression[270∈12]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle265 --> PgClassExpression270 + __Item274[/"__Item[274∈13]
ᐸ592ᐳ"\]:::itemplan + Access592 ==> __Item274 + PgUnionAllSingle275["PgUnionAllSingle[275∈13]"]:::plan + __Item274 --> PgUnionAllSingle275 + Access276{{"Access[276∈13]
ᐸ275.1ᐳ"}}:::plan + PgUnionAllSingle275 --> Access276 + PgSelect279[["PgSelect[279∈14]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"]]:::plan + Access278{{"Access[278∈14]
ᐸ277.0ᐳ"}}:::plan + Object11 & Access278 --> PgSelect279 + List288{{"List[288∈14]
ᐸ73,287ᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"}}:::plan + PgClassExpression287{{"PgClassExpression[287∈14]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant73 & PgClassExpression287 --> List288 + PgSelect293[["PgSelect[293∈14]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳPerson"]]:::plan + Access292{{"Access[292∈14]
ᐸ291.0ᐳ"}}:::plan + Object11 & Access292 --> PgSelect293 + List300{{"List[300∈14]
ᐸ85,299ᐳ
ᐳFirstPartyVulnerabilityᐳPerson"}}:::plan + PgClassExpression299{{"PgClassExpression[299∈14]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant85 & PgClassExpression299 --> List300 + JSONParse277[["JSONParse[277∈14]
ᐸ276ᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"]]:::plan + Access276 --> JSONParse277 + JSONParse277 --> Access278 + First283{{"First[283∈14]"}}:::plan + PgSelectRows284[["PgSelectRows[284∈14]"]]:::plan + PgSelectRows284 --> First283 + PgSelect279 --> PgSelectRows284 + PgSelectSingle285{{"PgSelectSingle[285∈14]
ᐸorganizationsᐳ"}}:::plan + First283 --> PgSelectSingle285 + PgSelectSingle285 --> PgClassExpression287 + Lambda289{{"Lambda[289∈14]
ᐸbase64JSONEncodeᐳ"}}:::plan + List288 --> Lambda289 + PgClassExpression290{{"PgClassExpression[290∈14]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle285 --> PgClassExpression290 + JSONParse291[["JSONParse[291∈14]
ᐸ276ᐳ
ᐳFirstPartyVulnerabilityᐳPerson"]]:::plan + Access276 --> JSONParse291 + JSONParse291 --> Access292 + First295{{"First[295∈14]"}}:::plan + PgSelectRows296[["PgSelectRows[296∈14]"]]:::plan + PgSelectRows296 --> First295 + PgSelect293 --> PgSelectRows296 + PgSelectSingle297{{"PgSelectSingle[297∈14]
ᐸpeopleᐳ"}}:::plan + First295 --> PgSelectSingle297 + PgSelectSingle297 --> PgClassExpression299 + Lambda301{{"Lambda[301∈14]
ᐸbase64JSONEncodeᐳ"}}:::plan + List300 --> Lambda301 + PgClassExpression302{{"PgClassExpression[302∈14]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle297 --> PgClassExpression302 + __Item321[/"__Item[321∈15]
ᐸ595ᐳ"\]:::itemplan + Access595 ==> __Item321 + PgUnionAllSingle322["PgUnionAllSingle[322∈15]"]:::plan + __Item321 --> PgUnionAllSingle322 + Access323{{"Access[323∈15]
ᐸ322.1ᐳ"}}:::plan + PgUnionAllSingle322 --> Access323 + PgUnionAll340[["PgUnionAll[340∈16]
ᐳThirdPartyVulnerabilityᐳAwsApplication"]]:::plan + PgClassExpression338{{"PgClassExpression[338∈16]
ᐸ__aws_appl...person_id”ᐳ"}}:::plan + PgClassExpression339{{"PgClassExpression[339∈16]
ᐸ__aws_appl...zation_id”ᐳ"}}:::plan + Object11 & PgClassExpression338 & PgClassExpression339 --> PgUnionAll340 + PgUnionAll386[["PgUnionAll[386∈16]
ᐳThirdPartyVulnerabilityᐳGcpApplication"]]:::plan + PgClassExpression384{{"PgClassExpression[384∈16]
ᐸ__gcp_appl...person_id”ᐳ"}}:::plan + PgClassExpression385{{"PgClassExpression[385∈16]
ᐸ__gcp_appl...zation_id”ᐳ"}}:::plan + Object11 & PgClassExpression384 & PgClassExpression385 --> PgUnionAll386 + PgSelect326[["PgSelect[326∈16]
ᐸaws_applicationsᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplication"]]:::plan + Access325{{"Access[325∈16]
ᐸ324.0ᐳ"}}:::plan + Object11 & Access325 --> PgSelect326 + List335{{"List[335∈16]
ᐸ51,334ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplication"}}:::plan + PgClassExpression334{{"PgClassExpression[334∈16]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan + Constant51 & PgClassExpression334 --> List335 + PgSelect374[["PgSelect[374∈16]
ᐸgcp_applicationsᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplication"]]:::plan + Access373{{"Access[373∈16]
ᐸ372.0ᐳ"}}:::plan + Object11 & Access373 --> PgSelect374 + List381{{"List[381∈16]
ᐸ97,380ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplication"}}:::plan + PgClassExpression380{{"PgClassExpression[380∈16]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan + Constant97 & PgClassExpression380 --> List381 + JSONParse324[["JSONParse[324∈16]
ᐸ323ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplication"]]:::plan + Access323 --> JSONParse324 + JSONParse324 --> Access325 + First330{{"First[330∈16]"}}:::plan + PgSelectRows331[["PgSelectRows[331∈16]"]]:::plan + PgSelectRows331 --> First330 + PgSelect326 --> PgSelectRows331 + PgSelectSingle332{{"PgSelectSingle[332∈16]
ᐸaws_applicationsᐳ"}}:::plan + First330 --> PgSelectSingle332 + PgSelectSingle332 --> PgClassExpression334 + Lambda336{{"Lambda[336∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan + List335 --> Lambda336 + PgClassExpression337{{"PgClassExpression[337∈16]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan + PgSelectSingle332 --> PgClassExpression337 + PgSelectSingle332 --> PgClassExpression338 + PgSelectSingle332 --> PgClassExpression339 + First342{{"First[342∈16]"}}:::plan + Access593{{"Access[593∈16]
ᐸ340.itemsᐳ"}}:::plan + Access593 --> First342 + PgUnionAllSingle344["PgUnionAllSingle[344∈16]"]:::plan + First342 --> PgUnionAllSingle344 + Access345{{"Access[345∈16]
ᐸ344.1ᐳ"}}:::plan + PgUnionAllSingle344 --> Access345 + JSONParse372[["JSONParse[372∈16]
ᐸ323ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplication"]]:::plan + Access323 --> JSONParse372 + JSONParse372 --> Access373 + First376{{"First[376∈16]"}}:::plan + PgSelectRows377[["PgSelectRows[377∈16]"]]:::plan + PgSelectRows377 --> First376 + PgSelect374 --> PgSelectRows377 + PgSelectSingle378{{"PgSelectSingle[378∈16]
ᐸgcp_applicationsᐳ"}}:::plan + First376 --> PgSelectSingle378 + PgSelectSingle378 --> PgClassExpression380 + Lambda382{{"Lambda[382∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan + List381 --> Lambda382 + PgClassExpression383{{"PgClassExpression[383∈16]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan + PgSelectSingle378 --> PgClassExpression383 + PgSelectSingle378 --> PgClassExpression384 + PgSelectSingle378 --> PgClassExpression385 + First388{{"First[388∈16]"}}:::plan + Access594{{"Access[594∈16]
ᐸ386.itemsᐳ"}}:::plan + Access594 --> First388 + PgUnionAllSingle390["PgUnionAllSingle[390∈16]"]:::plan + First388 --> PgUnionAllSingle390 + Access391{{"Access[391∈16]
ᐸ390.1ᐳ"}}:::plan + PgUnionAllSingle390 --> Access391 + PgUnionAll340 --> Access593 + PgUnionAll386 --> Access594 + PgSelect348[["PgSelect[348∈17]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan + Access347{{"Access[347∈17]
ᐸ346.0ᐳ"}}:::plan + Object11 & Access347 --> PgSelect348 + List357{{"List[357∈17]
ᐸ73,356ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization"}}:::plan + PgClassExpression356{{"PgClassExpression[356∈17]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant73 & PgClassExpression356 --> List357 + PgSelect362[["PgSelect[362∈17]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan + Access361{{"Access[361∈17]
ᐸ360.0ᐳ"}}:::plan + Object11 & Access361 --> PgSelect362 + List369{{"List[369∈17]
ᐸ85,368ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson"}}:::plan + PgClassExpression368{{"PgClassExpression[368∈17]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant85 & PgClassExpression368 --> List369 + JSONParse346[["JSONParse[346∈17]
ᐸ345ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan + Access345 --> JSONParse346 + JSONParse346 --> Access347 + First352{{"First[352∈17]"}}:::plan + PgSelectRows353[["PgSelectRows[353∈17]"]]:::plan + PgSelectRows353 --> First352 + PgSelect348 --> PgSelectRows353 + PgSelectSingle354{{"PgSelectSingle[354∈17]
ᐸorganizationsᐳ"}}:::plan + First352 --> PgSelectSingle354 + PgSelectSingle354 --> PgClassExpression356 + Lambda358{{"Lambda[358∈17]
ᐸbase64JSONEncodeᐳ"}}:::plan + List357 --> Lambda358 + PgClassExpression359{{"PgClassExpression[359∈17]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle354 --> PgClassExpression359 + JSONParse360[["JSONParse[360∈17]
ᐸ345ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan + Access345 --> JSONParse360 + JSONParse360 --> Access361 + First364{{"First[364∈17]"}}:::plan + PgSelectRows365[["PgSelectRows[365∈17]"]]:::plan + PgSelectRows365 --> First364 + PgSelect362 --> PgSelectRows365 + PgSelectSingle366{{"PgSelectSingle[366∈17]
ᐸpeopleᐳ"}}:::plan + First364 --> PgSelectSingle366 + PgSelectSingle366 --> PgClassExpression368 + Lambda370{{"Lambda[370∈17]
ᐸbase64JSONEncodeᐳ"}}:::plan + List369 --> Lambda370 + PgClassExpression371{{"PgClassExpression[371∈17]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle366 --> PgClassExpression371 + PgSelect394[["PgSelect[394∈18]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan + Access393{{"Access[393∈18]
ᐸ392.0ᐳ"}}:::plan + Object11 & Access393 --> PgSelect394 + List403{{"List[403∈18]
ᐸ73,402ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization"}}:::plan + PgClassExpression402{{"PgClassExpression[402∈18]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant73 & PgClassExpression402 --> List403 + PgSelect408[["PgSelect[408∈18]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan + Access407{{"Access[407∈18]
ᐸ406.0ᐳ"}}:::plan + Object11 & Access407 --> PgSelect408 + List415{{"List[415∈18]
ᐸ85,414ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson"}}:::plan + PgClassExpression414{{"PgClassExpression[414∈18]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant85 & PgClassExpression414 --> List415 + JSONParse392[["JSONParse[392∈18]
ᐸ391ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan + Access391 --> JSONParse392 + JSONParse392 --> Access393 + First398{{"First[398∈18]"}}:::plan + PgSelectRows399[["PgSelectRows[399∈18]"]]:::plan + PgSelectRows399 --> First398 + PgSelect394 --> PgSelectRows399 + PgSelectSingle400{{"PgSelectSingle[400∈18]
ᐸorganizationsᐳ"}}:::plan + First398 --> PgSelectSingle400 + PgSelectSingle400 --> PgClassExpression402 + Lambda404{{"Lambda[404∈18]
ᐸbase64JSONEncodeᐳ"}}:::plan + List403 --> Lambda404 + PgClassExpression405{{"PgClassExpression[405∈18]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle400 --> PgClassExpression405 + JSONParse406[["JSONParse[406∈18]
ᐸ391ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan + Access391 --> JSONParse406 + JSONParse406 --> Access407 + First410{{"First[410∈18]"}}:::plan + PgSelectRows411[["PgSelectRows[411∈18]"]]:::plan + PgSelectRows411 --> First410 + PgSelect408 --> PgSelectRows411 + PgSelectSingle412{{"PgSelectSingle[412∈18]
ᐸpeopleᐳ"}}:::plan + First410 --> PgSelectSingle412 + PgSelectSingle412 --> PgClassExpression414 + Lambda416{{"Lambda[416∈18]
ᐸbase64JSONEncodeᐳ"}}:::plan + List415 --> Lambda416 + PgClassExpression417{{"PgClassExpression[417∈18]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle412 --> PgClassExpression417 + __Item422[/"__Item[422∈19]
ᐸ598ᐳ"\]:::itemplan + Access598 ==> __Item422 + PgUnionAllSingle423["PgUnionAllSingle[423∈19]"]:::plan + __Item422 --> PgUnionAllSingle423 + Access424{{"Access[424∈19]
ᐸ423.1ᐳ"}}:::plan + PgUnionAllSingle423 --> Access424 + PgUnionAll441[["PgUnionAll[441∈20]
ᐳThirdPartyVulnerabilityᐳAwsApplication"]]:::plan + PgClassExpression439{{"PgClassExpression[439∈20]
ᐸ__aws_appl...person_id”ᐳ"}}:::plan + PgClassExpression440{{"PgClassExpression[440∈20]
ᐸ__aws_appl...zation_id”ᐳ"}}:::plan + Object11 & PgClassExpression439 & PgClassExpression440 --> PgUnionAll441 + PgUnionAll487[["PgUnionAll[487∈20]
ᐳThirdPartyVulnerabilityᐳGcpApplication"]]:::plan + PgClassExpression485{{"PgClassExpression[485∈20]
ᐸ__gcp_appl...person_id”ᐳ"}}:::plan + PgClassExpression486{{"PgClassExpression[486∈20]
ᐸ__gcp_appl...zation_id”ᐳ"}}:::plan + Object11 & PgClassExpression485 & PgClassExpression486 --> PgUnionAll487 + PgSelect427[["PgSelect[427∈20]
ᐸaws_applicationsᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplication"]]:::plan + Access426{{"Access[426∈20]
ᐸ425.0ᐳ"}}:::plan + Object11 & Access426 --> PgSelect427 + List436{{"List[436∈20]
ᐸ51,435ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplication"}}:::plan + PgClassExpression435{{"PgClassExpression[435∈20]
ᐸ__aws_appl...ons__.”id”ᐳ"}}:::plan + Constant51 & PgClassExpression435 --> List436 + PgSelect475[["PgSelect[475∈20]
ᐸgcp_applicationsᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplication"]]:::plan + Access474{{"Access[474∈20]
ᐸ473.0ᐳ"}}:::plan + Object11 & Access474 --> PgSelect475 + List482{{"List[482∈20]
ᐸ97,481ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplication"}}:::plan + PgClassExpression481{{"PgClassExpression[481∈20]
ᐸ__gcp_appl...ons__.”id”ᐳ"}}:::plan + Constant97 & PgClassExpression481 --> List482 + JSONParse425[["JSONParse[425∈20]
ᐸ424ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplication"]]:::plan + Access424 --> JSONParse425 + JSONParse425 --> Access426 + First431{{"First[431∈20]"}}:::plan + PgSelectRows432[["PgSelectRows[432∈20]"]]:::plan + PgSelectRows432 --> First431 + PgSelect427 --> PgSelectRows432 + PgSelectSingle433{{"PgSelectSingle[433∈20]
ᐸaws_applicationsᐳ"}}:::plan + First431 --> PgSelectSingle433 + PgSelectSingle433 --> PgClassExpression435 + Lambda437{{"Lambda[437∈20]
ᐸbase64JSONEncodeᐳ"}}:::plan + List436 --> Lambda437 + PgClassExpression438{{"PgClassExpression[438∈20]
ᐸ__aws_appl...s__.”name”ᐳ"}}:::plan + PgSelectSingle433 --> PgClassExpression438 + PgSelectSingle433 --> PgClassExpression439 + PgSelectSingle433 --> PgClassExpression440 + First443{{"First[443∈20]"}}:::plan + Access596{{"Access[596∈20]
ᐸ441.itemsᐳ"}}:::plan + Access596 --> First443 + PgUnionAllSingle445["PgUnionAllSingle[445∈20]"]:::plan + First443 --> PgUnionAllSingle445 + Access446{{"Access[446∈20]
ᐸ445.1ᐳ"}}:::plan + PgUnionAllSingle445 --> Access446 + JSONParse473[["JSONParse[473∈20]
ᐸ424ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplication"]]:::plan + Access424 --> JSONParse473 + JSONParse473 --> Access474 + First477{{"First[477∈20]"}}:::plan + PgSelectRows478[["PgSelectRows[478∈20]"]]:::plan + PgSelectRows478 --> First477 + PgSelect475 --> PgSelectRows478 + PgSelectSingle479{{"PgSelectSingle[479∈20]
ᐸgcp_applicationsᐳ"}}:::plan + First477 --> PgSelectSingle479 + PgSelectSingle479 --> PgClassExpression481 + Lambda483{{"Lambda[483∈20]
ᐸbase64JSONEncodeᐳ"}}:::plan + List482 --> Lambda483 + PgClassExpression484{{"PgClassExpression[484∈20]
ᐸ__gcp_appl...s__.”name”ᐳ"}}:::plan + PgSelectSingle479 --> PgClassExpression484 + PgSelectSingle479 --> PgClassExpression485 + PgSelectSingle479 --> PgClassExpression486 + First489{{"First[489∈20]"}}:::plan + Access597{{"Access[597∈20]
ᐸ487.itemsᐳ"}}:::plan + Access597 --> First489 + PgUnionAllSingle491["PgUnionAllSingle[491∈20]"]:::plan + First489 --> PgUnionAllSingle491 + Access492{{"Access[492∈20]
ᐸ491.1ᐳ"}}:::plan + PgUnionAllSingle491 --> Access492 + PgUnionAll441 --> Access596 + PgUnionAll487 --> Access597 + PgSelect449[["PgSelect[449∈21]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan + Access448{{"Access[448∈21]
ᐸ447.0ᐳ"}}:::plan + Object11 & Access448 --> PgSelect449 + List458{{"List[458∈21]
ᐸ73,457ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization"}}:::plan + PgClassExpression457{{"PgClassExpression[457∈21]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant73 & PgClassExpression457 --> List458 + PgSelect463[["PgSelect[463∈21]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan + Access462{{"Access[462∈21]
ᐸ461.0ᐳ"}}:::plan + Object11 & Access462 --> PgSelect463 + List470{{"List[470∈21]
ᐸ85,469ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson"}}:::plan + PgClassExpression469{{"PgClassExpression[469∈21]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant85 & PgClassExpression469 --> List470 + JSONParse447[["JSONParse[447∈21]
ᐸ446ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization"]]:::plan + Access446 --> JSONParse447 + JSONParse447 --> Access448 + First453{{"First[453∈21]"}}:::plan + PgSelectRows454[["PgSelectRows[454∈21]"]]:::plan + PgSelectRows454 --> First453 + PgSelect449 --> PgSelectRows454 + PgSelectSingle455{{"PgSelectSingle[455∈21]
ᐸorganizationsᐳ"}}:::plan + First453 --> PgSelectSingle455 + PgSelectSingle455 --> PgClassExpression457 + Lambda459{{"Lambda[459∈21]
ᐸbase64JSONEncodeᐳ"}}:::plan + List458 --> Lambda459 + PgClassExpression460{{"PgClassExpression[460∈21]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle455 --> PgClassExpression460 + JSONParse461[["JSONParse[461∈21]
ᐸ446ᐳ
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson"]]:::plan + Access446 --> JSONParse461 + JSONParse461 --> Access462 + First465{{"First[465∈21]"}}:::plan + PgSelectRows466[["PgSelectRows[466∈21]"]]:::plan + PgSelectRows466 --> First465 + PgSelect463 --> PgSelectRows466 + PgSelectSingle467{{"PgSelectSingle[467∈21]
ᐸpeopleᐳ"}}:::plan + First465 --> PgSelectSingle467 + PgSelectSingle467 --> PgClassExpression469 + Lambda471{{"Lambda[471∈21]
ᐸbase64JSONEncodeᐳ"}}:::plan + List470 --> Lambda471 + PgClassExpression472{{"PgClassExpression[472∈21]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle467 --> PgClassExpression472 + PgSelect495[["PgSelect[495∈22]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan + Access494{{"Access[494∈22]
ᐸ493.0ᐳ"}}:::plan + Object11 & Access494 --> PgSelect495 + List504{{"List[504∈22]
ᐸ73,503ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization"}}:::plan + PgClassExpression503{{"PgClassExpression[503∈22]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant73 & PgClassExpression503 --> List504 + PgSelect509[["PgSelect[509∈22]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan + Access508{{"Access[508∈22]
ᐸ507.0ᐳ"}}:::plan + Object11 & Access508 --> PgSelect509 + List516{{"List[516∈22]
ᐸ85,515ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson"}}:::plan + PgClassExpression515{{"PgClassExpression[515∈22]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant85 & PgClassExpression515 --> List516 + JSONParse493[["JSONParse[493∈22]
ᐸ492ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization"]]:::plan + Access492 --> JSONParse493 + JSONParse493 --> Access494 + First499{{"First[499∈22]"}}:::plan + PgSelectRows500[["PgSelectRows[500∈22]"]]:::plan + PgSelectRows500 --> First499 + PgSelect495 --> PgSelectRows500 + PgSelectSingle501{{"PgSelectSingle[501∈22]
ᐸorganizationsᐳ"}}:::plan + First499 --> PgSelectSingle501 + PgSelectSingle501 --> PgClassExpression503 + Lambda505{{"Lambda[505∈22]
ᐸbase64JSONEncodeᐳ"}}:::plan + List504 --> Lambda505 + PgClassExpression506{{"PgClassExpression[506∈22]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle501 --> PgClassExpression506 + JSONParse507[["JSONParse[507∈22]
ᐸ492ᐳ
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson"]]:::plan + Access492 --> JSONParse507 + JSONParse507 --> Access508 + First511{{"First[511∈22]"}}:::plan + PgSelectRows512[["PgSelectRows[512∈22]"]]:::plan + PgSelectRows512 --> First511 + PgSelect509 --> PgSelectRows512 + PgSelectSingle513{{"PgSelectSingle[513∈22]
ᐸpeopleᐳ"}}:::plan + First511 --> PgSelectSingle513 + PgSelectSingle513 --> PgClassExpression515 + Lambda517{{"Lambda[517∈22]
ᐸbase64JSONEncodeᐳ"}}:::plan + List516 --> Lambda517 + PgClassExpression518{{"PgClassExpression[518∈22]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle513 --> PgClassExpression518 + __Item524[/"__Item[524∈23]
ᐸ599ᐳ"\]:::itemplan + Access599 ==> __Item524 + PgUnionAllSingle525["PgUnionAllSingle[525∈23]"]:::plan + __Item524 --> PgUnionAllSingle525 + Access526{{"Access[526∈23]
ᐸ525.1ᐳ"}}:::plan + PgUnionAllSingle525 --> Access526 + PgSelect529[["PgSelect[529∈24]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"]]:::plan + Access528{{"Access[528∈24]
ᐸ527.0ᐳ"}}:::plan + Object11 & Access528 --> PgSelect529 + List538{{"List[538∈24]
ᐸ73,537ᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"}}:::plan + PgClassExpression537{{"PgClassExpression[537∈24]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant73 & PgClassExpression537 --> List538 + PgSelect543[["PgSelect[543∈24]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳPerson"]]:::plan + Access542{{"Access[542∈24]
ᐸ541.0ᐳ"}}:::plan + Object11 & Access542 --> PgSelect543 + List550{{"List[550∈24]
ᐸ85,549ᐳ
ᐳThirdPartyVulnerabilityᐳPerson"}}:::plan + PgClassExpression549{{"PgClassExpression[549∈24]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant85 & PgClassExpression549 --> List550 + JSONParse527[["JSONParse[527∈24]
ᐸ526ᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"]]:::plan + Access526 --> JSONParse527 + JSONParse527 --> Access528 + First533{{"First[533∈24]"}}:::plan + PgSelectRows534[["PgSelectRows[534∈24]"]]:::plan + PgSelectRows534 --> First533 + PgSelect529 --> PgSelectRows534 + PgSelectSingle535{{"PgSelectSingle[535∈24]
ᐸorganizationsᐳ"}}:::plan + First533 --> PgSelectSingle535 + PgSelectSingle535 --> PgClassExpression537 + Lambda539{{"Lambda[539∈24]
ᐸbase64JSONEncodeᐳ"}}:::plan + List538 --> Lambda539 + PgClassExpression540{{"PgClassExpression[540∈24]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle535 --> PgClassExpression540 + JSONParse541[["JSONParse[541∈24]
ᐸ526ᐳ
ᐳThirdPartyVulnerabilityᐳPerson"]]:::plan + Access526 --> JSONParse541 + JSONParse541 --> Access542 + First545{{"First[545∈24]"}}:::plan + PgSelectRows546[["PgSelectRows[546∈24]"]]:::plan + PgSelectRows546 --> First545 + PgSelect543 --> PgSelectRows546 + PgSelectSingle547{{"PgSelectSingle[547∈24]
ᐸpeopleᐳ"}}:::plan + First545 --> PgSelectSingle547 + PgSelectSingle547 --> PgClassExpression549 + Lambda551{{"Lambda[551∈24]
ᐸbase64JSONEncodeᐳ"}}:::plan + List550 --> Lambda551 + PgClassExpression552{{"PgClassExpression[552∈24]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle547 --> PgClassExpression552 + __Item556[/"__Item[556∈25]
ᐸ600ᐳ"\]:::itemplan + Access600 ==> __Item556 + PgUnionAllSingle557["PgUnionAllSingle[557∈25]"]:::plan + __Item556 --> PgUnionAllSingle557 + Access558{{"Access[558∈25]
ᐸ557.1ᐳ"}}:::plan + PgUnionAllSingle557 --> Access558 + PgSelect561[["PgSelect[561∈26]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"]]:::plan + Access560{{"Access[560∈26]
ᐸ559.0ᐳ"}}:::plan + Object11 & Access560 --> PgSelect561 + List570{{"List[570∈26]
ᐸ73,569ᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"}}:::plan + PgClassExpression569{{"PgClassExpression[569∈26]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant73 & PgClassExpression569 --> List570 + PgSelect575[["PgSelect[575∈26]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳPerson"]]:::plan + Access574{{"Access[574∈26]
ᐸ573.0ᐳ"}}:::plan + Object11 & Access574 --> PgSelect575 + List582{{"List[582∈26]
ᐸ85,581ᐳ
ᐳThirdPartyVulnerabilityᐳPerson"}}:::plan + PgClassExpression581{{"PgClassExpression[581∈26]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant85 & PgClassExpression581 --> List582 + JSONParse559[["JSONParse[559∈26]
ᐸ558ᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"]]:::plan + Access558 --> JSONParse559 + JSONParse559 --> Access560 + First565{{"First[565∈26]"}}:::plan + PgSelectRows566[["PgSelectRows[566∈26]"]]:::plan + PgSelectRows566 --> First565 + PgSelect561 --> PgSelectRows566 + PgSelectSingle567{{"PgSelectSingle[567∈26]
ᐸorganizationsᐳ"}}:::plan + First565 --> PgSelectSingle567 + PgSelectSingle567 --> PgClassExpression569 + Lambda571{{"Lambda[571∈26]
ᐸbase64JSONEncodeᐳ"}}:::plan + List570 --> Lambda571 + PgClassExpression572{{"PgClassExpression[572∈26]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle567 --> PgClassExpression572 + JSONParse573[["JSONParse[573∈26]
ᐸ558ᐳ
ᐳThirdPartyVulnerabilityᐳPerson"]]:::plan + Access558 --> JSONParse573 + JSONParse573 --> Access574 + First577{{"First[577∈26]"}}:::plan + PgSelectRows578[["PgSelectRows[578∈26]"]]:::plan + PgSelectRows578 --> First577 + PgSelect575 --> PgSelectRows578 + PgSelectSingle579{{"PgSelectSingle[579∈26]
ᐸpeopleᐳ"}}:::plan + First577 --> PgSelectSingle579 + PgSelectSingle579 --> PgClassExpression581 + Lambda583{{"Lambda[583∈26]
ᐸbase64JSONEncodeᐳ"}}:::plan + List582 --> Lambda583 + PgClassExpression584{{"PgClassExpression[584∈26]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression584 %% define steps subgraph "Buckets for queries/polymorphic/vulns.union_owners" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 28, 51, 73, 85, 97, 310, 602, 11, 12
2: Lambda[13]
3: PgUnionAll[14]
ᐳ: Access[601]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,Constant27,Constant49,Constant71,Constant83,Constant95,Constant307,Constant597 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 11, 12, 597, 27, 307, 49, 95, 71, 83

ROOT Connectionᐸ8ᐳ[12]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,Lambda13,PgUnionAll14,Constant28,Constant51,Constant73,Constant85,Constant97,Constant310,Access601,Constant602 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 28, 7, 13, 310, 51, 97, 73, 85

ROOT __Item{1}ᐸ601ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUnionAll13,Access596 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 11, 27, 307, 49, 95, 71, 83

ROOT __Item{2}ᐸ596ᐳ[15]"):::bucket + class Bucket1,__Item16,PgUnionAllSingle17,Access18 bucket1 + Bucket2("Bucket 2 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 18, 11, 28, 7, 13, 310, 17, 51, 97, 73, 85
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[19], JSONParse[303]
ᐳ: 35, 239, 317, 521, 20, 304
2: PgSelect[21], PgSelect[305]
3: PgSelectRows[26], PgSelectRows[308]
ᐳ: 25, 27, 29, 30, 31, 32, 307, 309, 311, 312, 313, 314
4: 37, 136, 240, 271, 319, 418, 522, 553
ᐳ: 587, 590, 591, 592, 595, 598, 599, 600"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item15,PgUnionAllSingle16,Access17 bucket2 - Bucket3("Bucket 3 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 17, 11, 27, 307, 16, 49, 95, 71, 83
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[18], JSONParse[300]
ᐳ: 34, 236, 314, 516, 19, 301
2: PgSelect[20], PgSelect[302]
3: PgSelectRows[25], PgSelectRows[305]
ᐳ: 24, 26, 28, 29, 30, 31, 304, 306, 308, 309, 310, 311
4: 35, 134, 237, 268, 315, 414, 517, 548
ᐳ: 582, 585, 586, 587, 590, 593, 594, 595"):::bucket + class Bucket2,JSONParse19,Access20,PgSelect21,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression29,List30,Lambda31,PgClassExpression32,Connection35,PgUnionAll37,PgUnionAll136,Connection239,PgUnionAll240,PgUnionAll271,JSONParse303,Access304,PgSelect305,First307,PgSelectRows308,PgSelectSingle309,PgClassExpression311,List312,Lambda313,PgClassExpression314,Connection317,PgUnionAll319,PgUnionAll418,Connection521,PgUnionAll522,PgUnionAll553,Access587,Access590,Access591,Access592,Access595,Access598,Access599,Access600 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 11, 51, 97, 73, 85

ROOT __Item{3}ᐸ587ᐳ[39]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,JSONParse18,Access19,PgSelect20,First24,PgSelectRows25,PgSelectSingle26,PgClassExpression28,List29,Lambda30,PgClassExpression31,Connection34,PgUnionAll35,PgUnionAll134,Connection236,PgUnionAll237,PgUnionAll268,JSONParse300,Access301,PgSelect302,First304,PgSelectRows305,PgSelectSingle306,PgClassExpression308,List309,Lambda310,PgClassExpression311,Connection314,PgUnionAll315,PgUnionAll414,Connection516,PgUnionAll517,PgUnionAll548,Access582,Access585,Access586,Access587,Access590,Access593,Access594,Access595 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11, 49, 95, 71, 83

ROOT __Item{4}ᐸ582ᐳ[37]"):::bucket + class Bucket3,__Item39,PgUnionAllSingle40,Access41 bucket3 + Bucket4("Bucket 4 (polymorphic)
AwsApplication,GcpApplication
Deps: 41, 11, 51, 97, 40, 73, 85
ᐳFirstPartyVulnerabilityᐳAwsApplication
ᐳFirstPartyVulnerabilityᐳGcpApplication

1: JSONParse[42], JSONParse[90]
ᐳ: Access[43], Access[91]
2: PgSelect[44], PgSelect[92]
3: PgSelectRows[49], PgSelectRows[95]
ᐳ: 48, 50, 52, 53, 54, 55, 56, 57, 94, 96, 98, 99, 100, 101, 102, 103
4: PgUnionAll[58], PgUnionAll[104]
ᐳ: 585, 586, 60, 106
5: 62, 108
ᐳ: Access[63], Access[109]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item37,PgUnionAllSingle38,Access39 bucket4 - Bucket5("Bucket 5 (polymorphic)
AwsApplication,GcpApplication
Deps: 39, 11, 49, 95, 38, 71, 83
ᐳFirstPartyVulnerabilityᐳAwsApplication
ᐳFirstPartyVulnerabilityᐳGcpApplication

1: JSONParse[40], JSONParse[88]
ᐳ: Access[41], Access[89]
2: PgSelect[42], PgSelect[90]
3: PgSelectRows[47], PgSelectRows[93]
ᐳ: 46, 48, 50, 51, 52, 53, 54, 55, 92, 94, 96, 97, 98, 99, 100, 101
4: PgUnionAll[56], PgUnionAll[102]
ᐳ: 580, 581, 58, 104
5: 60, 106
ᐳ: Access[61], Access[107]"):::bucket + class Bucket4,JSONParse42,Access43,PgSelect44,First48,PgSelectRows49,PgSelectSingle50,PgClassExpression52,List53,Lambda54,PgClassExpression55,PgClassExpression56,PgClassExpression57,PgUnionAll58,First60,PgUnionAllSingle62,Access63,JSONParse90,Access91,PgSelect92,First94,PgSelectRows95,PgSelectSingle96,PgClassExpression98,List99,Lambda100,PgClassExpression101,PgClassExpression102,PgClassExpression103,PgUnionAll104,First106,PgUnionAllSingle108,Access109,Access585,Access586 bucket4 + Bucket5("Bucket 5 (polymorphic)
Organization,Person
Deps: 63, 11, 73, 85, 62
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson

1: JSONParse[64], JSONParse[78]
ᐳ: Access[65], Access[79]
2: PgSelect[66], PgSelect[80]
3: PgSelectRows[71], PgSelectRows[83]
ᐳ: 70, 72, 74, 75, 76, 77, 82, 84, 86, 87, 88, 89"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,JSONParse40,Access41,PgSelect42,First46,PgSelectRows47,PgSelectSingle48,PgClassExpression50,List51,Lambda52,PgClassExpression53,PgClassExpression54,PgClassExpression55,PgUnionAll56,First58,PgUnionAllSingle60,Access61,JSONParse88,Access89,PgSelect90,First92,PgSelectRows93,PgSelectSingle94,PgClassExpression96,List97,Lambda98,PgClassExpression99,PgClassExpression100,PgClassExpression101,PgUnionAll102,First104,PgUnionAllSingle106,Access107,Access580,Access581 bucket5 - Bucket6("Bucket 6 (polymorphic)
Organization,Person
Deps: 61, 11, 71, 83, 60
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson

1: JSONParse[62], JSONParse[76]
ᐳ: Access[63], Access[77]
2: PgSelect[64], PgSelect[78]
3: PgSelectRows[69], PgSelectRows[81]
ᐳ: 68, 70, 72, 73, 74, 75, 80, 82, 84, 85, 86, 87"):::bucket + class Bucket5,JSONParse64,Access65,PgSelect66,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression74,List75,Lambda76,PgClassExpression77,JSONParse78,Access79,PgSelect80,First82,PgSelectRows83,PgSelectSingle84,PgClassExpression86,List87,Lambda88,PgClassExpression89 bucket5 + Bucket6("Bucket 6 (polymorphic)
Organization,Person
Deps: 109, 11, 73, 85, 108
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson

1: JSONParse[110], JSONParse[124]
ᐳ: Access[111], Access[125]
2: PgSelect[112], PgSelect[126]
3: PgSelectRows[117], PgSelectRows[129]
ᐳ: 116, 118, 120, 121, 122, 123, 128, 130, 132, 133, 134, 135"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,JSONParse62,Access63,PgSelect64,First68,PgSelectRows69,PgSelectSingle70,PgClassExpression72,List73,Lambda74,PgClassExpression75,JSONParse76,Access77,PgSelect78,First80,PgSelectRows81,PgSelectSingle82,PgClassExpression84,List85,Lambda86,PgClassExpression87 bucket6 - Bucket7("Bucket 7 (polymorphic)
Organization,Person
Deps: 107, 11, 71, 83, 106
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson

1: JSONParse[108], JSONParse[122]
ᐳ: Access[109], Access[123]
2: PgSelect[110], PgSelect[124]
3: PgSelectRows[115], PgSelectRows[127]
ᐳ: 114, 116, 118, 119, 120, 121, 126, 128, 130, 131, 132, 133"):::bucket + class Bucket6,JSONParse110,Access111,PgSelect112,First116,PgSelectRows117,PgSelectSingle118,PgClassExpression120,List121,Lambda122,PgClassExpression123,JSONParse124,Access125,PgSelect126,First128,PgSelectRows129,PgSelectSingle130,PgClassExpression132,List133,Lambda134,PgClassExpression135 bucket6 + Bucket7("Bucket 7 (listItem)
Deps: 11, 51, 97, 73, 85

ROOT __Item{7}ᐸ590ᐳ[140]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,JSONParse108,Access109,PgSelect110,First114,PgSelectRows115,PgSelectSingle116,PgClassExpression118,List119,Lambda120,PgClassExpression121,JSONParse122,Access123,PgSelect124,First126,PgSelectRows127,PgSelectSingle128,PgClassExpression130,List131,Lambda132,PgClassExpression133 bucket7 - Bucket8("Bucket 8 (listItem)
Deps: 11, 49, 95, 71, 83

ROOT __Item{8}ᐸ585ᐳ[137]"):::bucket + class Bucket7,__Item140,PgUnionAllSingle141,Access142 bucket7 + Bucket8("Bucket 8 (polymorphic)
AwsApplication,GcpApplication
Deps: 142, 11, 51, 97, 141, 73, 85
ᐳFirstPartyVulnerabilityᐳAwsApplication
ᐳFirstPartyVulnerabilityᐳGcpApplication

1: JSONParse[143], JSONParse[191]
ᐳ: Access[144], Access[192]
2: PgSelect[145], PgSelect[193]
3: PgSelectRows[150], PgSelectRows[196]
ᐳ: 149, 151, 153, 154, 155, 156, 157, 158, 195, 197, 199, 200, 201, 202, 203, 204
4: PgUnionAll[159], PgUnionAll[205]
ᐳ: 588, 589, 161, 207
5: 163, 209
ᐳ: Access[164], Access[210]"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,__Item137,PgUnionAllSingle138,Access139 bucket8 - Bucket9("Bucket 9 (polymorphic)
AwsApplication,GcpApplication
Deps: 139, 11, 49, 95, 138, 71, 83
ᐳFirstPartyVulnerabilityᐳAwsApplication
ᐳFirstPartyVulnerabilityᐳGcpApplication

1: JSONParse[140], JSONParse[188]
ᐳ: Access[141], Access[189]
2: PgSelect[142], PgSelect[190]
3: PgSelectRows[147], PgSelectRows[193]
ᐳ: 146, 148, 150, 151, 152, 153, 154, 155, 192, 194, 196, 197, 198, 199, 200, 201
4: PgUnionAll[156], PgUnionAll[202]
ᐳ: 583, 584, 158, 204
5: 160, 206
ᐳ: Access[161], Access[207]"):::bucket + class Bucket8,JSONParse143,Access144,PgSelect145,First149,PgSelectRows150,PgSelectSingle151,PgClassExpression153,List154,Lambda155,PgClassExpression156,PgClassExpression157,PgClassExpression158,PgUnionAll159,First161,PgUnionAllSingle163,Access164,JSONParse191,Access192,PgSelect193,First195,PgSelectRows196,PgSelectSingle197,PgClassExpression199,List200,Lambda201,PgClassExpression202,PgClassExpression203,PgClassExpression204,PgUnionAll205,First207,PgUnionAllSingle209,Access210,Access588,Access589 bucket8 + Bucket9("Bucket 9 (polymorphic)
Organization,Person
Deps: 164, 11, 73, 85, 163
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson

1: JSONParse[165], JSONParse[179]
ᐳ: Access[166], Access[180]
2: PgSelect[167], PgSelect[181]
3: PgSelectRows[172], PgSelectRows[184]
ᐳ: 171, 173, 175, 176, 177, 178, 183, 185, 187, 188, 189, 190"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,JSONParse140,Access141,PgSelect142,First146,PgSelectRows147,PgSelectSingle148,PgClassExpression150,List151,Lambda152,PgClassExpression153,PgClassExpression154,PgClassExpression155,PgUnionAll156,First158,PgUnionAllSingle160,Access161,JSONParse188,Access189,PgSelect190,First192,PgSelectRows193,PgSelectSingle194,PgClassExpression196,List197,Lambda198,PgClassExpression199,PgClassExpression200,PgClassExpression201,PgUnionAll202,First204,PgUnionAllSingle206,Access207,Access583,Access584 bucket9 - Bucket10("Bucket 10 (polymorphic)
Organization,Person
Deps: 161, 11, 71, 83, 160
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳOrganization
ᐳFirstPartyVulnerabilityᐳAwsApplicationᐳPerson

1: JSONParse[162], JSONParse[176]
ᐳ: Access[163], Access[177]
2: PgSelect[164], PgSelect[178]
3: PgSelectRows[169], PgSelectRows[181]
ᐳ: 168, 170, 172, 173, 174, 175, 180, 182, 184, 185, 186, 187"):::bucket + class Bucket9,JSONParse165,Access166,PgSelect167,First171,PgSelectRows172,PgSelectSingle173,PgClassExpression175,List176,Lambda177,PgClassExpression178,JSONParse179,Access180,PgSelect181,First183,PgSelectRows184,PgSelectSingle185,PgClassExpression187,List188,Lambda189,PgClassExpression190 bucket9 + Bucket10("Bucket 10 (polymorphic)
Organization,Person
Deps: 210, 11, 73, 85, 209
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson

1: JSONParse[211], JSONParse[225]
ᐳ: Access[212], Access[226]
2: PgSelect[213], PgSelect[227]
3: PgSelectRows[218], PgSelectRows[230]
ᐳ: 217, 219, 221, 222, 223, 224, 229, 231, 233, 234, 235, 236"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,JSONParse162,Access163,PgSelect164,First168,PgSelectRows169,PgSelectSingle170,PgClassExpression172,List173,Lambda174,PgClassExpression175,JSONParse176,Access177,PgSelect178,First180,PgSelectRows181,PgSelectSingle182,PgClassExpression184,List185,Lambda186,PgClassExpression187 bucket10 - Bucket11("Bucket 11 (polymorphic)
Organization,Person
Deps: 207, 11, 71, 83, 206
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳOrganization
ᐳFirstPartyVulnerabilityᐳGcpApplicationᐳPerson

1: JSONParse[208], JSONParse[222]
ᐳ: Access[209], Access[223]
2: PgSelect[210], PgSelect[224]
3: PgSelectRows[215], PgSelectRows[227]
ᐳ: 214, 216, 218, 219, 220, 221, 226, 228, 230, 231, 232, 233"):::bucket + class Bucket10,JSONParse211,Access212,PgSelect213,First217,PgSelectRows218,PgSelectSingle219,PgClassExpression221,List222,Lambda223,PgClassExpression224,JSONParse225,Access226,PgSelect227,First229,PgSelectRows230,PgSelectSingle231,PgClassExpression233,List234,Lambda235,PgClassExpression236 bucket10 + Bucket11("Bucket 11 (listItem)
Deps: 11, 73, 85

ROOT __Item{11}ᐸ591ᐳ[242]"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11,JSONParse208,Access209,PgSelect210,First214,PgSelectRows215,PgSelectSingle216,PgClassExpression218,List219,Lambda220,PgClassExpression221,JSONParse222,Access223,PgSelect224,First226,PgSelectRows227,PgSelectSingle228,PgClassExpression230,List231,Lambda232,PgClassExpression233 bucket11 - Bucket12("Bucket 12 (listItem)
Deps: 11, 71, 83

ROOT __Item{12}ᐸ586ᐳ[239]"):::bucket + class Bucket11,__Item242,PgUnionAllSingle243,Access244 bucket11 + Bucket12("Bucket 12 (polymorphic)
Organization,Person
Deps: 244, 11, 73, 85, 243
ᐳFirstPartyVulnerabilityᐳOrganization
ᐳFirstPartyVulnerabilityᐳPerson

1: JSONParse[245], JSONParse[259]
ᐳ: Access[246], Access[260]
2: PgSelect[247], PgSelect[261]
3: PgSelectRows[252], PgSelectRows[264]
ᐳ: 251, 253, 255, 256, 257, 258, 263, 265, 267, 268, 269, 270"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12,__Item239,PgUnionAllSingle240,Access241 bucket12 - Bucket13("Bucket 13 (polymorphic)
Organization,Person
Deps: 241, 11, 71, 83, 240
ᐳFirstPartyVulnerabilityᐳOrganization
ᐳFirstPartyVulnerabilityᐳPerson

1: JSONParse[242], JSONParse[256]
ᐳ: Access[243], Access[257]
2: PgSelect[244], PgSelect[258]
3: PgSelectRows[249], PgSelectRows[261]
ᐳ: 248, 250, 252, 253, 254, 255, 260, 262, 264, 265, 266, 267"):::bucket + class Bucket12,JSONParse245,Access246,PgSelect247,First251,PgSelectRows252,PgSelectSingle253,PgClassExpression255,List256,Lambda257,PgClassExpression258,JSONParse259,Access260,PgSelect261,First263,PgSelectRows264,PgSelectSingle265,PgClassExpression267,List268,Lambda269,PgClassExpression270 bucket12 + Bucket13("Bucket 13 (listItem)
Deps: 11, 73, 85

ROOT __Item{13}ᐸ592ᐳ[274]"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13,JSONParse242,Access243,PgSelect244,First248,PgSelectRows249,PgSelectSingle250,PgClassExpression252,List253,Lambda254,PgClassExpression255,JSONParse256,Access257,PgSelect258,First260,PgSelectRows261,PgSelectSingle262,PgClassExpression264,List265,Lambda266,PgClassExpression267 bucket13 - Bucket14("Bucket 14 (listItem)
Deps: 11, 71, 83

ROOT __Item{14}ᐸ587ᐳ[271]"):::bucket + class Bucket13,__Item274,PgUnionAllSingle275,Access276 bucket13 + Bucket14("Bucket 14 (polymorphic)
Organization,Person
Deps: 276, 11, 73, 85, 275
ᐳFirstPartyVulnerabilityᐳOrganization
ᐳFirstPartyVulnerabilityᐳPerson

1: JSONParse[277], JSONParse[291]
ᐳ: Access[278], Access[292]
2: PgSelect[279], PgSelect[293]
3: PgSelectRows[284], PgSelectRows[296]
ᐳ: 283, 285, 287, 288, 289, 290, 295, 297, 299, 300, 301, 302"):::bucket classDef bucket14 stroke:#a52a2a - class Bucket14,__Item271,PgUnionAllSingle272,Access273 bucket14 - Bucket15("Bucket 15 (polymorphic)
Organization,Person
Deps: 273, 11, 71, 83, 272
ᐳFirstPartyVulnerabilityᐳOrganization
ᐳFirstPartyVulnerabilityᐳPerson

1: JSONParse[274], JSONParse[288]
ᐳ: Access[275], Access[289]
2: PgSelect[276], PgSelect[290]
3: PgSelectRows[281], PgSelectRows[293]
ᐳ: 280, 282, 284, 285, 286, 287, 292, 294, 296, 297, 298, 299"):::bucket + class Bucket14,JSONParse277,Access278,PgSelect279,First283,PgSelectRows284,PgSelectSingle285,PgClassExpression287,List288,Lambda289,PgClassExpression290,JSONParse291,Access292,PgSelect293,First295,PgSelectRows296,PgSelectSingle297,PgClassExpression299,List300,Lambda301,PgClassExpression302 bucket14 + Bucket15("Bucket 15 (listItem)
Deps: 11, 51, 97, 73, 85

ROOT __Item{15}ᐸ595ᐳ[321]"):::bucket classDef bucket15 stroke:#ff00ff - class Bucket15,JSONParse274,Access275,PgSelect276,First280,PgSelectRows281,PgSelectSingle282,PgClassExpression284,List285,Lambda286,PgClassExpression287,JSONParse288,Access289,PgSelect290,First292,PgSelectRows293,PgSelectSingle294,PgClassExpression296,List297,Lambda298,PgClassExpression299 bucket15 - Bucket16("Bucket 16 (listItem)
Deps: 11, 49, 95, 71, 83

ROOT __Item{16}ᐸ590ᐳ[317]"):::bucket + class Bucket15,__Item321,PgUnionAllSingle322,Access323 bucket15 + Bucket16("Bucket 16 (polymorphic)
AwsApplication,GcpApplication
Deps: 323, 11, 51, 97, 322, 73, 85
ᐳThirdPartyVulnerabilityᐳAwsApplication
ᐳThirdPartyVulnerabilityᐳGcpApplication

1: JSONParse[324], JSONParse[372]
ᐳ: Access[325], Access[373]
2: PgSelect[326], PgSelect[374]
3: PgSelectRows[331], PgSelectRows[377]
ᐳ: 330, 332, 334, 335, 336, 337, 338, 339, 376, 378, 380, 381, 382, 383, 384, 385
4: PgUnionAll[340], PgUnionAll[386]
ᐳ: 593, 594, 342, 388
5: 344, 390
ᐳ: Access[345], Access[391]"):::bucket classDef bucket16 stroke:#f5deb3 - class Bucket16,__Item317,PgUnionAllSingle318,Access319 bucket16 - Bucket17("Bucket 17 (polymorphic)
AwsApplication,GcpApplication
Deps: 319, 11, 49, 95, 318, 71, 83
ᐳThirdPartyVulnerabilityᐳAwsApplication
ᐳThirdPartyVulnerabilityᐳGcpApplication

1: JSONParse[320], JSONParse[368]
ᐳ: Access[321], Access[369]
2: PgSelect[322], PgSelect[370]
3: PgSelectRows[327], PgSelectRows[373]
ᐳ: 326, 328, 330, 331, 332, 333, 334, 335, 372, 374, 376, 377, 378, 379, 380, 381
4: PgUnionAll[336], PgUnionAll[382]
ᐳ: 588, 589, 338, 384
5: 340, 386
ᐳ: Access[341], Access[387]"):::bucket + class Bucket16,JSONParse324,Access325,PgSelect326,First330,PgSelectRows331,PgSelectSingle332,PgClassExpression334,List335,Lambda336,PgClassExpression337,PgClassExpression338,PgClassExpression339,PgUnionAll340,First342,PgUnionAllSingle344,Access345,JSONParse372,Access373,PgSelect374,First376,PgSelectRows377,PgSelectSingle378,PgClassExpression380,List381,Lambda382,PgClassExpression383,PgClassExpression384,PgClassExpression385,PgUnionAll386,First388,PgUnionAllSingle390,Access391,Access593,Access594 bucket16 + Bucket17("Bucket 17 (polymorphic)
Organization,Person
Deps: 345, 11, 73, 85, 344
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson

1: JSONParse[346], JSONParse[360]
ᐳ: Access[347], Access[361]
2: PgSelect[348], PgSelect[362]
3: PgSelectRows[353], PgSelectRows[365]
ᐳ: 352, 354, 356, 357, 358, 359, 364, 366, 368, 369, 370, 371"):::bucket classDef bucket17 stroke:#696969 - class Bucket17,JSONParse320,Access321,PgSelect322,First326,PgSelectRows327,PgSelectSingle328,PgClassExpression330,List331,Lambda332,PgClassExpression333,PgClassExpression334,PgClassExpression335,PgUnionAll336,First338,PgUnionAllSingle340,Access341,JSONParse368,Access369,PgSelect370,First372,PgSelectRows373,PgSelectSingle374,PgClassExpression376,List377,Lambda378,PgClassExpression379,PgClassExpression380,PgClassExpression381,PgUnionAll382,First384,PgUnionAllSingle386,Access387,Access588,Access589 bucket17 - Bucket18("Bucket 18 (polymorphic)
Organization,Person
Deps: 341, 11, 71, 83, 340
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson

1: JSONParse[342], JSONParse[356]
ᐳ: Access[343], Access[357]
2: PgSelect[344], PgSelect[358]
3: PgSelectRows[349], PgSelectRows[361]
ᐳ: 348, 350, 352, 353, 354, 355, 360, 362, 364, 365, 366, 367"):::bucket + class Bucket17,JSONParse346,Access347,PgSelect348,First352,PgSelectRows353,PgSelectSingle354,PgClassExpression356,List357,Lambda358,PgClassExpression359,JSONParse360,Access361,PgSelect362,First364,PgSelectRows365,PgSelectSingle366,PgClassExpression368,List369,Lambda370,PgClassExpression371 bucket17 + Bucket18("Bucket 18 (polymorphic)
Organization,Person
Deps: 391, 11, 73, 85, 390
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson

1: JSONParse[392], JSONParse[406]
ᐳ: Access[393], Access[407]
2: PgSelect[394], PgSelect[408]
3: PgSelectRows[399], PgSelectRows[411]
ᐳ: 398, 400, 402, 403, 404, 405, 410, 412, 414, 415, 416, 417"):::bucket classDef bucket18 stroke:#00bfff - class Bucket18,JSONParse342,Access343,PgSelect344,First348,PgSelectRows349,PgSelectSingle350,PgClassExpression352,List353,Lambda354,PgClassExpression355,JSONParse356,Access357,PgSelect358,First360,PgSelectRows361,PgSelectSingle362,PgClassExpression364,List365,Lambda366,PgClassExpression367 bucket18 - Bucket19("Bucket 19 (polymorphic)
Organization,Person
Deps: 387, 11, 71, 83, 386
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson

1: JSONParse[388], JSONParse[402]
ᐳ: Access[389], Access[403]
2: PgSelect[390], PgSelect[404]
3: PgSelectRows[395], PgSelectRows[407]
ᐳ: 394, 396, 398, 399, 400, 401, 406, 408, 410, 411, 412, 413"):::bucket + class Bucket18,JSONParse392,Access393,PgSelect394,First398,PgSelectRows399,PgSelectSingle400,PgClassExpression402,List403,Lambda404,PgClassExpression405,JSONParse406,Access407,PgSelect408,First410,PgSelectRows411,PgSelectSingle412,PgClassExpression414,List415,Lambda416,PgClassExpression417 bucket18 + Bucket19("Bucket 19 (listItem)
Deps: 11, 51, 97, 73, 85

ROOT __Item{19}ᐸ598ᐳ[422]"):::bucket classDef bucket19 stroke:#7f007f - class Bucket19,JSONParse388,Access389,PgSelect390,First394,PgSelectRows395,PgSelectSingle396,PgClassExpression398,List399,Lambda400,PgClassExpression401,JSONParse402,Access403,PgSelect404,First406,PgSelectRows407,PgSelectSingle408,PgClassExpression410,List411,Lambda412,PgClassExpression413 bucket19 - Bucket20("Bucket 20 (listItem)
Deps: 11, 49, 95, 71, 83

ROOT __Item{20}ᐸ593ᐳ[417]"):::bucket + class Bucket19,__Item422,PgUnionAllSingle423,Access424 bucket19 + Bucket20("Bucket 20 (polymorphic)
AwsApplication,GcpApplication
Deps: 424, 11, 51, 97, 423, 73, 85
ᐳThirdPartyVulnerabilityᐳAwsApplication
ᐳThirdPartyVulnerabilityᐳGcpApplication

1: JSONParse[425], JSONParse[473]
ᐳ: Access[426], Access[474]
2: PgSelect[427], PgSelect[475]
3: PgSelectRows[432], PgSelectRows[478]
ᐳ: 431, 433, 435, 436, 437, 438, 439, 440, 477, 479, 481, 482, 483, 484, 485, 486
4: PgUnionAll[441], PgUnionAll[487]
ᐳ: 596, 597, 443, 489
5: 445, 491
ᐳ: Access[446], Access[492]"):::bucket classDef bucket20 stroke:#ffa500 - class Bucket20,__Item417,PgUnionAllSingle418,Access419 bucket20 - Bucket21("Bucket 21 (polymorphic)
AwsApplication,GcpApplication
Deps: 419, 11, 49, 95, 418, 71, 83
ᐳThirdPartyVulnerabilityᐳAwsApplication
ᐳThirdPartyVulnerabilityᐳGcpApplication

1: JSONParse[420], JSONParse[468]
ᐳ: Access[421], Access[469]
2: PgSelect[422], PgSelect[470]
3: PgSelectRows[427], PgSelectRows[473]
ᐳ: 426, 428, 430, 431, 432, 433, 434, 435, 472, 474, 476, 477, 478, 479, 480, 481
4: PgUnionAll[436], PgUnionAll[482]
ᐳ: 591, 592, 438, 484
5: 440, 486
ᐳ: Access[441], Access[487]"):::bucket + class Bucket20,JSONParse425,Access426,PgSelect427,First431,PgSelectRows432,PgSelectSingle433,PgClassExpression435,List436,Lambda437,PgClassExpression438,PgClassExpression439,PgClassExpression440,PgUnionAll441,First443,PgUnionAllSingle445,Access446,JSONParse473,Access474,PgSelect475,First477,PgSelectRows478,PgSelectSingle479,PgClassExpression481,List482,Lambda483,PgClassExpression484,PgClassExpression485,PgClassExpression486,PgUnionAll487,First489,PgUnionAllSingle491,Access492,Access596,Access597 bucket20 + Bucket21("Bucket 21 (polymorphic)
Organization,Person
Deps: 446, 11, 73, 85, 445
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson

1: JSONParse[447], JSONParse[461]
ᐳ: Access[448], Access[462]
2: PgSelect[449], PgSelect[463]
3: PgSelectRows[454], PgSelectRows[466]
ᐳ: 453, 455, 457, 458, 459, 460, 465, 467, 469, 470, 471, 472"):::bucket classDef bucket21 stroke:#0000ff - class Bucket21,JSONParse420,Access421,PgSelect422,First426,PgSelectRows427,PgSelectSingle428,PgClassExpression430,List431,Lambda432,PgClassExpression433,PgClassExpression434,PgClassExpression435,PgUnionAll436,First438,PgUnionAllSingle440,Access441,JSONParse468,Access469,PgSelect470,First472,PgSelectRows473,PgSelectSingle474,PgClassExpression476,List477,Lambda478,PgClassExpression479,PgClassExpression480,PgClassExpression481,PgUnionAll482,First484,PgUnionAllSingle486,Access487,Access591,Access592 bucket21 - Bucket22("Bucket 22 (polymorphic)
Organization,Person
Deps: 441, 11, 71, 83, 440
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳOrganization
ᐳThirdPartyVulnerabilityᐳAwsApplicationᐳPerson

1: JSONParse[442], JSONParse[456]
ᐳ: Access[443], Access[457]
2: PgSelect[444], PgSelect[458]
3: PgSelectRows[449], PgSelectRows[461]
ᐳ: 448, 450, 452, 453, 454, 455, 460, 462, 464, 465, 466, 467"):::bucket + class Bucket21,JSONParse447,Access448,PgSelect449,First453,PgSelectRows454,PgSelectSingle455,PgClassExpression457,List458,Lambda459,PgClassExpression460,JSONParse461,Access462,PgSelect463,First465,PgSelectRows466,PgSelectSingle467,PgClassExpression469,List470,Lambda471,PgClassExpression472 bucket21 + Bucket22("Bucket 22 (polymorphic)
Organization,Person
Deps: 492, 11, 73, 85, 491
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson

1: JSONParse[493], JSONParse[507]
ᐳ: Access[494], Access[508]
2: PgSelect[495], PgSelect[509]
3: PgSelectRows[500], PgSelectRows[512]
ᐳ: 499, 501, 503, 504, 505, 506, 511, 513, 515, 516, 517, 518"):::bucket classDef bucket22 stroke:#7fff00 - class Bucket22,JSONParse442,Access443,PgSelect444,First448,PgSelectRows449,PgSelectSingle450,PgClassExpression452,List453,Lambda454,PgClassExpression455,JSONParse456,Access457,PgSelect458,First460,PgSelectRows461,PgSelectSingle462,PgClassExpression464,List465,Lambda466,PgClassExpression467 bucket22 - Bucket23("Bucket 23 (polymorphic)
Organization,Person
Deps: 487, 11, 71, 83, 486
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳOrganization
ᐳThirdPartyVulnerabilityᐳGcpApplicationᐳPerson

1: JSONParse[488], JSONParse[502]
ᐳ: Access[489], Access[503]
2: PgSelect[490], PgSelect[504]
3: PgSelectRows[495], PgSelectRows[507]
ᐳ: 494, 496, 498, 499, 500, 501, 506, 508, 510, 511, 512, 513"):::bucket + class Bucket22,JSONParse493,Access494,PgSelect495,First499,PgSelectRows500,PgSelectSingle501,PgClassExpression503,List504,Lambda505,PgClassExpression506,JSONParse507,Access508,PgSelect509,First511,PgSelectRows512,PgSelectSingle513,PgClassExpression515,List516,Lambda517,PgClassExpression518 bucket22 + Bucket23("Bucket 23 (listItem)
Deps: 11, 73, 85

ROOT __Item{23}ᐸ599ᐳ[524]"):::bucket classDef bucket23 stroke:#ff1493 - class Bucket23,JSONParse488,Access489,PgSelect490,First494,PgSelectRows495,PgSelectSingle496,PgClassExpression498,List499,Lambda500,PgClassExpression501,JSONParse502,Access503,PgSelect504,First506,PgSelectRows507,PgSelectSingle508,PgClassExpression510,List511,Lambda512,PgClassExpression513 bucket23 - Bucket24("Bucket 24 (listItem)
Deps: 11, 71, 83

ROOT __Item{24}ᐸ594ᐳ[519]"):::bucket + class Bucket23,__Item524,PgUnionAllSingle525,Access526 bucket23 + Bucket24("Bucket 24 (polymorphic)
Organization,Person
Deps: 526, 11, 73, 85, 525
ᐳThirdPartyVulnerabilityᐳOrganization
ᐳThirdPartyVulnerabilityᐳPerson

1: JSONParse[527], JSONParse[541]
ᐳ: Access[528], Access[542]
2: PgSelect[529], PgSelect[543]
3: PgSelectRows[534], PgSelectRows[546]
ᐳ: 533, 535, 537, 538, 539, 540, 545, 547, 549, 550, 551, 552"):::bucket classDef bucket24 stroke:#808000 - class Bucket24,__Item519,PgUnionAllSingle520,Access521 bucket24 - Bucket25("Bucket 25 (polymorphic)
Organization,Person
Deps: 521, 11, 71, 83, 520
ᐳThirdPartyVulnerabilityᐳOrganization
ᐳThirdPartyVulnerabilityᐳPerson

1: JSONParse[522], JSONParse[536]
ᐳ: Access[523], Access[537]
2: PgSelect[524], PgSelect[538]
3: PgSelectRows[529], PgSelectRows[541]
ᐳ: 528, 530, 532, 533, 534, 535, 540, 542, 544, 545, 546, 547"):::bucket + class Bucket24,JSONParse527,Access528,PgSelect529,First533,PgSelectRows534,PgSelectSingle535,PgClassExpression537,List538,Lambda539,PgClassExpression540,JSONParse541,Access542,PgSelect543,First545,PgSelectRows546,PgSelectSingle547,PgClassExpression549,List550,Lambda551,PgClassExpression552 bucket24 + Bucket25("Bucket 25 (listItem)
Deps: 11, 73, 85

ROOT __Item{25}ᐸ600ᐳ[556]"):::bucket classDef bucket25 stroke:#dda0dd - class Bucket25,JSONParse522,Access523,PgSelect524,First528,PgSelectRows529,PgSelectSingle530,PgClassExpression532,List533,Lambda534,PgClassExpression535,JSONParse536,Access537,PgSelect538,First540,PgSelectRows541,PgSelectSingle542,PgClassExpression544,List545,Lambda546,PgClassExpression547 bucket25 - Bucket26("Bucket 26 (listItem)
Deps: 11, 71, 83

ROOT __Item{26}ᐸ595ᐳ[551]"):::bucket + class Bucket25,__Item556,PgUnionAllSingle557,Access558 bucket25 + Bucket26("Bucket 26 (polymorphic)
Organization,Person
Deps: 558, 11, 73, 85, 557
ᐳThirdPartyVulnerabilityᐳOrganization
ᐳThirdPartyVulnerabilityᐳPerson

1: JSONParse[559], JSONParse[573]
ᐳ: Access[560], Access[574]
2: PgSelect[561], PgSelect[575]
3: PgSelectRows[566], PgSelectRows[578]
ᐳ: 565, 567, 569, 570, 571, 572, 577, 579, 581, 582, 583, 584"):::bucket classDef bucket26 stroke:#ff0000 - class Bucket26,__Item551,PgUnionAllSingle552,Access553 bucket26 - Bucket27("Bucket 27 (polymorphic)
Organization,Person
Deps: 553, 11, 71, 83, 552
ᐳThirdPartyVulnerabilityᐳOrganization
ᐳThirdPartyVulnerabilityᐳPerson

1: JSONParse[554], JSONParse[568]
ᐳ: Access[555], Access[569]
2: PgSelect[556], PgSelect[570]
3: PgSelectRows[561], PgSelectRows[573]
ᐳ: 560, 562, 564, 565, 566, 567, 572, 574, 576, 577, 578, 579"):::bucket - classDef bucket27 stroke:#ffff00 - class Bucket27,JSONParse554,Access555,PgSelect556,First560,PgSelectRows561,PgSelectSingle562,PgClassExpression564,List565,Lambda566,PgClassExpression567,JSONParse568,Access569,PgSelect570,First572,PgSelectRows573,PgSelectSingle574,PgClassExpression576,List577,Lambda578,PgClassExpression579 bucket27 + class Bucket26,JSONParse559,Access560,PgSelect561,First565,PgSelectRows566,PgSelectSingle567,PgClassExpression569,List570,Lambda571,PgClassExpression572,JSONParse573,Access574,PgSelect575,First577,PgSelectRows578,PgSelectSingle579,PgClassExpression581,List582,Lambda583,PgClassExpression584 bucket26 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket8 & Bucket12 & Bucket14 & Bucket16 & Bucket20 & Bucket24 & Bucket26 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 & Bucket7 - Bucket8 --> Bucket9 - Bucket9 --> Bucket10 & Bucket11 - Bucket12 --> Bucket13 - Bucket14 --> Bucket15 - Bucket16 --> Bucket17 - Bucket17 --> Bucket18 & Bucket19 - Bucket20 --> Bucket21 - Bucket21 --> Bucket22 & Bucket23 - Bucket24 --> Bucket25 - Bucket26 --> Bucket27 + Bucket2 --> Bucket3 & Bucket7 & Bucket11 & Bucket13 & Bucket15 & Bucket19 & Bucket23 & Bucket25 + Bucket3 --> Bucket4 + Bucket4 --> Bucket5 & Bucket6 + Bucket7 --> Bucket8 + Bucket8 --> Bucket9 & Bucket10 + Bucket11 --> Bucket12 + Bucket13 --> Bucket14 + Bucket15 --> Bucket16 + Bucket16 --> Bucket17 & Bucket18 + Bucket19 --> Bucket20 + Bucket20 --> Bucket21 & Bucket22 + Bucket23 --> Bucket24 + Bucket25 --> Bucket26 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.union_owners.simple.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.union_owners.simple.mermaid index 6e69f3d85e..b3f4626414 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.union_owners.simple.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/vulns.union_owners.simple.mermaid @@ -9,205 +9,203 @@ graph TD %% plan dependencies + PgUnionAll14[["PgUnionAll[14∈0] ➊"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Lambda13[["Lambda[13∈0] ➊
ᐸlimitToTypesᐳ"]]:::unbatchedplan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Constant116{{"Constant[116∈0] ➊
ᐸ2ᐳ"}}:::plan + Lambda13 -->|rejectNull| PgUnionAll14 + Object11 & Connection12 & Constant116 --> PgUnionAll14 + Constant116 --> Connection12 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan - Constant115{{"Constant[115∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant115 --> Connection12 + Access115{{"Access[115∈0] ➊
ᐸ14.itemsᐳ"}}:::plan + PgUnionAll14 --> Access115 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant27{{"Constant[27∈0] ➊
ᐸ'first_party_vulnerabilities'ᐳ"}}:::plan - Constant49{{"Constant[49∈0] ➊
ᐸ'organizations'ᐳ"}}:::plan - Constant61{{"Constant[61∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant73{{"Constant[73∈0] ➊
ᐸ'third_party_vulnerabilities'ᐳ"}}:::plan - PgUnionAll13[["PgUnionAll[13∈1] ➊"]]:::plan - Object11 & Connection12 & Constant115 --> PgUnionAll13 - Access114{{"Access[114∈1] ➊
ᐸ13.itemsᐳ"}}:::plan - PgUnionAll13 --> Access114 - __Item15[/"__Item[15∈2]
ᐸ114ᐳ"\]:::itemplan - Access114 ==> __Item15 - PgUnionAllSingle16["PgUnionAllSingle[16∈2]"]:::plan - __Item15 --> PgUnionAllSingle16 - Access17{{"Access[17∈2]
ᐸ16.1ᐳ"}}:::plan - PgUnionAllSingle16 --> Access17 - PgUnionAll35[["PgUnionAll[35∈3]
ᐳFirstPartyVulnerability"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan - Connection34{{"Connection[34∈3] ➊
ᐸ32ᐳ
ᐳFirstPartyVulnerability"}}:::plan - Object11 & PgClassExpression28 & Connection34 --> PgUnionAll35 - PgUnionAll81[["PgUnionAll[81∈3]
ᐳThirdPartyVulnerability"]]:::plan - PgClassExpression74{{"PgClassExpression[74∈3]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan - Connection80{{"Connection[80∈3] ➊
ᐸ78ᐳ
ᐳThirdPartyVulnerability"}}:::plan - Object11 & PgClassExpression74 & Connection80 --> PgUnionAll81 - PgSelect20[["PgSelect[20∈3]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access19{{"Access[19∈3]
ᐸ18.0ᐳ"}}:::plan - Object11 & Access19 --> PgSelect20 - List29{{"List[29∈3]
ᐸ27,28ᐳ
ᐳFirstPartyVulnerability"}}:::plan - Constant27 & PgClassExpression28 --> List29 - PgSelect68[["PgSelect[68∈3]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access67{{"Access[67∈3]
ᐸ66.0ᐳ"}}:::plan - Object11 & Access67 --> PgSelect68 - List75{{"List[75∈3]
ᐸ73,74ᐳ
ᐳThirdPartyVulnerability"}}:::plan - Constant73 & PgClassExpression74 --> List75 - JSONParse18[["JSONParse[18∈3]
ᐸ17ᐳ
ᐳFirstPartyVulnerability"]]:::plan - Access17 --> JSONParse18 - JSONParse18 --> Access19 - First24{{"First[24∈3]"}}:::plan - PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan - PgSelectRows25 --> First24 - PgSelect20 --> PgSelectRows25 - PgSelectSingle26{{"PgSelectSingle[26∈3]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan - First24 --> PgSelectSingle26 - PgSelectSingle26 --> PgClassExpression28 - Lambda30{{"Lambda[30∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan - List29 --> Lambda30 - PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression31 - JSONParse66[["JSONParse[66∈3]
ᐸ17ᐳ
ᐳThirdPartyVulnerability"]]:::plan - Access17 --> JSONParse66 - JSONParse66 --> Access67 - First70{{"First[70∈3]"}}:::plan - PgSelectRows71[["PgSelectRows[71∈3]"]]:::plan - PgSelectRows71 --> First70 - PgSelect68 --> PgSelectRows71 - PgSelectSingle72{{"PgSelectSingle[72∈3]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan - First70 --> PgSelectSingle72 - PgSelectSingle72 --> PgClassExpression74 - Lambda76{{"Lambda[76∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan - List75 --> Lambda76 - PgClassExpression77{{"PgClassExpression[77∈3]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan - PgSelectSingle72 --> PgClassExpression77 - Access112{{"Access[112∈3]
ᐸ35.itemsᐳ"}}:::plan - PgUnionAll35 --> Access112 - Access113{{"Access[113∈3]
ᐸ81.itemsᐳ"}}:::plan - PgUnionAll81 --> Access113 - __Item37[/"__Item[37∈4]
ᐸ112ᐳ"\]:::itemplan - Access112 ==> __Item37 - PgUnionAllSingle38["PgUnionAllSingle[38∈4]"]:::plan - __Item37 --> PgUnionAllSingle38 - Access39{{"Access[39∈4]
ᐸ38.1ᐳ"}}:::plan - PgUnionAllSingle38 --> Access39 - PgSelect42[["PgSelect[42∈5]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"]]:::plan - Access41{{"Access[41∈5]
ᐸ40.0ᐳ"}}:::plan - Object11 & Access41 --> PgSelect42 - List51{{"List[51∈5]
ᐸ49,50ᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"}}:::plan - PgClassExpression50{{"PgClassExpression[50∈5]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant49 & PgClassExpression50 --> List51 - PgSelect56[["PgSelect[56∈5]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳPerson"]]:::plan - Access55{{"Access[55∈5]
ᐸ54.0ᐳ"}}:::plan - Object11 & Access55 --> PgSelect56 - List63{{"List[63∈5]
ᐸ61,62ᐳ
ᐳFirstPartyVulnerabilityᐳPerson"}}:::plan - PgClassExpression62{{"PgClassExpression[62∈5]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant61 & PgClassExpression62 --> List63 - JSONParse40[["JSONParse[40∈5]
ᐸ39ᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"]]:::plan - Access39 --> JSONParse40 - JSONParse40 --> Access41 - First46{{"First[46∈5]"}}:::plan - PgSelectRows47[["PgSelectRows[47∈5]"]]:::plan - PgSelectRows47 --> First46 - PgSelect42 --> PgSelectRows47 - PgSelectSingle48{{"PgSelectSingle[48∈5]
ᐸorganizationsᐳ"}}:::plan - First46 --> PgSelectSingle48 - PgSelectSingle48 --> PgClassExpression50 - Lambda52{{"Lambda[52∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan - List51 --> Lambda52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle48 --> PgClassExpression53 - JSONParse54[["JSONParse[54∈5]
ᐸ39ᐳ
ᐳFirstPartyVulnerabilityᐳPerson"]]:::plan - Access39 --> JSONParse54 - JSONParse54 --> Access55 - First58{{"First[58∈5]"}}:::plan - PgSelectRows59[["PgSelectRows[59∈5]"]]:::plan - PgSelectRows59 --> First58 - PgSelect56 --> PgSelectRows59 - PgSelectSingle60{{"PgSelectSingle[60∈5]
ᐸpeopleᐳ"}}:::plan - First58 --> PgSelectSingle60 - PgSelectSingle60 --> PgClassExpression62 - Lambda64{{"Lambda[64∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan - List63 --> Lambda64 - PgClassExpression65{{"PgClassExpression[65∈5]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle60 --> PgClassExpression65 - __Item83[/"__Item[83∈6]
ᐸ113ᐳ"\]:::itemplan - Access113 ==> __Item83 - PgUnionAllSingle84["PgUnionAllSingle[84∈6]"]:::plan - __Item83 --> PgUnionAllSingle84 - Access85{{"Access[85∈6]
ᐸ84.1ᐳ"}}:::plan - PgUnionAllSingle84 --> Access85 - PgSelect88[["PgSelect[88∈7]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"]]:::plan - Access87{{"Access[87∈7]
ᐸ86.0ᐳ"}}:::plan - Object11 & Access87 --> PgSelect88 - List97{{"List[97∈7]
ᐸ49,96ᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"}}:::plan - PgClassExpression96{{"PgClassExpression[96∈7]
ᐸ__organiza...zation_id”ᐳ"}}:::plan - Constant49 & PgClassExpression96 --> List97 - PgSelect102[["PgSelect[102∈7]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳPerson"]]:::plan - Access101{{"Access[101∈7]
ᐸ100.0ᐳ"}}:::plan - Object11 & Access101 --> PgSelect102 - List109{{"List[109∈7]
ᐸ61,108ᐳ
ᐳThirdPartyVulnerabilityᐳPerson"}}:::plan - PgClassExpression108{{"PgClassExpression[108∈7]
ᐸ__people__.”person_id”ᐳ"}}:::plan - Constant61 & PgClassExpression108 --> List109 - JSONParse86[["JSONParse[86∈7]
ᐸ85ᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"]]:::plan - Access85 --> JSONParse86 - JSONParse86 --> Access87 - First92{{"First[92∈7]"}}:::plan - PgSelectRows93[["PgSelectRows[93∈7]"]]:::plan - PgSelectRows93 --> First92 - PgSelect88 --> PgSelectRows93 - PgSelectSingle94{{"PgSelectSingle[94∈7]
ᐸorganizationsᐳ"}}:::plan - First92 --> PgSelectSingle94 - PgSelectSingle94 --> PgClassExpression96 - Lambda98{{"Lambda[98∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan - List97 --> Lambda98 - PgClassExpression99{{"PgClassExpression[99∈7]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan - PgSelectSingle94 --> PgClassExpression99 - JSONParse100[["JSONParse[100∈7]
ᐸ85ᐳ
ᐳThirdPartyVulnerabilityᐳPerson"]]:::plan - Access85 --> JSONParse100 - JSONParse100 --> Access101 - First104{{"First[104∈7]"}}:::plan - PgSelectRows105[["PgSelectRows[105∈7]"]]:::plan - PgSelectRows105 --> First104 - PgSelect102 --> PgSelectRows105 - PgSelectSingle106{{"PgSelectSingle[106∈7]
ᐸpeopleᐳ"}}:::plan - First104 --> PgSelectSingle106 - PgSelectSingle106 --> PgClassExpression108 - Lambda110{{"Lambda[110∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan - List109 --> Lambda110 - PgClassExpression111{{"PgClassExpression[111∈7]
ᐸ__people__.”username”ᐳ"}}:::plan - PgSelectSingle106 --> PgClassExpression111 + Constant28{{"Constant[28∈0] ➊
ᐸ'first_party_vulnerabilities'ᐳ"}}:::plan + Constant50{{"Constant[50∈0] ➊
ᐸ'organizations'ᐳ"}}:::plan + Constant62{{"Constant[62∈0] ➊
ᐸ'people'ᐳ"}}:::plan + Constant74{{"Constant[74∈0] ➊
ᐸ'third_party_vulnerabilities'ᐳ"}}:::plan + __Item16[/"__Item[16∈1]
ᐸ115ᐳ"\]:::itemplan + Access115 ==> __Item16 + PgUnionAllSingle17["PgUnionAllSingle[17∈1]"]:::plan + __Item16 --> PgUnionAllSingle17 + Access18{{"Access[18∈1]
ᐸ17.1ᐳ"}}:::plan + PgUnionAllSingle17 --> Access18 + PgUnionAll36[["PgUnionAll[36∈2]
ᐳFirstPartyVulnerability"]]:::plan + PgClassExpression29{{"PgClassExpression[29∈2]
ᐸ__first_pa...ies__.”id”ᐳ"}}:::plan + Connection35{{"Connection[35∈2] ➊
ᐸ33ᐳ
ᐳFirstPartyVulnerability"}}:::plan + Object11 & PgClassExpression29 & Connection35 --> PgUnionAll36 + PgUnionAll82[["PgUnionAll[82∈2]
ᐳThirdPartyVulnerability"]]:::plan + PgClassExpression75{{"PgClassExpression[75∈2]
ᐸ__third_pa...ies__.”id”ᐳ"}}:::plan + Connection81{{"Connection[81∈2] ➊
ᐸ79ᐳ
ᐳThirdPartyVulnerability"}}:::plan + Object11 & PgClassExpression75 & Connection81 --> PgUnionAll82 + PgSelect21[["PgSelect[21∈2]
ᐸfirst_party_vulnerabilitiesᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access20{{"Access[20∈2]
ᐸ19.0ᐳ"}}:::plan + Object11 & Access20 --> PgSelect21 + List30{{"List[30∈2]
ᐸ28,29ᐳ
ᐳFirstPartyVulnerability"}}:::plan + Constant28 & PgClassExpression29 --> List30 + PgSelect69[["PgSelect[69∈2]
ᐸthird_party_vulnerabilitiesᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access68{{"Access[68∈2]
ᐸ67.0ᐳ"}}:::plan + Object11 & Access68 --> PgSelect69 + List76{{"List[76∈2]
ᐸ74,75ᐳ
ᐳThirdPartyVulnerability"}}:::plan + Constant74 & PgClassExpression75 --> List76 + JSONParse19[["JSONParse[19∈2]
ᐸ18ᐳ
ᐳFirstPartyVulnerability"]]:::plan + Access18 --> JSONParse19 + JSONParse19 --> Access20 + First25{{"First[25∈2]"}}:::plan + PgSelectRows26[["PgSelectRows[26∈2]"]]:::plan + PgSelectRows26 --> First25 + PgSelect21 --> PgSelectRows26 + PgSelectSingle27{{"PgSelectSingle[27∈2]
ᐸfirst_party_vulnerabilitiesᐳ"}}:::plan + First25 --> PgSelectSingle27 + PgSelectSingle27 --> PgClassExpression29 + Lambda31{{"Lambda[31∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan + List30 --> Lambda31 + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__first_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle27 --> PgClassExpression32 + JSONParse67[["JSONParse[67∈2]
ᐸ18ᐳ
ᐳThirdPartyVulnerability"]]:::plan + Access18 --> JSONParse67 + JSONParse67 --> Access68 + First71{{"First[71∈2]"}}:::plan + PgSelectRows72[["PgSelectRows[72∈2]"]]:::plan + PgSelectRows72 --> First71 + PgSelect69 --> PgSelectRows72 + PgSelectSingle73{{"PgSelectSingle[73∈2]
ᐸthird_party_vulnerabilitiesᐳ"}}:::plan + First71 --> PgSelectSingle73 + PgSelectSingle73 --> PgClassExpression75 + Lambda77{{"Lambda[77∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan + List76 --> Lambda77 + PgClassExpression78{{"PgClassExpression[78∈2]
ᐸ__third_pa...s__.”name”ᐳ"}}:::plan + PgSelectSingle73 --> PgClassExpression78 + Access113{{"Access[113∈2]
ᐸ36.itemsᐳ"}}:::plan + PgUnionAll36 --> Access113 + Access114{{"Access[114∈2]
ᐸ82.itemsᐳ"}}:::plan + PgUnionAll82 --> Access114 + __Item38[/"__Item[38∈3]
ᐸ113ᐳ"\]:::itemplan + Access113 ==> __Item38 + PgUnionAllSingle39["PgUnionAllSingle[39∈3]"]:::plan + __Item38 --> PgUnionAllSingle39 + Access40{{"Access[40∈3]
ᐸ39.1ᐳ"}}:::plan + PgUnionAllSingle39 --> Access40 + PgSelect43[["PgSelect[43∈4]
ᐸorganizationsᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"]]:::plan + Access42{{"Access[42∈4]
ᐸ41.0ᐳ"}}:::plan + Object11 & Access42 --> PgSelect43 + List52{{"List[52∈4]
ᐸ50,51ᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"}}:::plan + PgClassExpression51{{"PgClassExpression[51∈4]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant50 & PgClassExpression51 --> List52 + PgSelect57[["PgSelect[57∈4]
ᐸpeopleᐳ
ᐳFirstPartyVulnerabilityᐳPerson"]]:::plan + Access56{{"Access[56∈4]
ᐸ55.0ᐳ"}}:::plan + Object11 & Access56 --> PgSelect57 + List64{{"List[64∈4]
ᐸ62,63ᐳ
ᐳFirstPartyVulnerabilityᐳPerson"}}:::plan + PgClassExpression63{{"PgClassExpression[63∈4]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant62 & PgClassExpression63 --> List64 + JSONParse41[["JSONParse[41∈4]
ᐸ40ᐳ
ᐳFirstPartyVulnerabilityᐳOrganization"]]:::plan + Access40 --> JSONParse41 + JSONParse41 --> Access42 + First47{{"First[47∈4]"}}:::plan + PgSelectRows48[["PgSelectRows[48∈4]"]]:::plan + PgSelectRows48 --> First47 + PgSelect43 --> PgSelectRows48 + PgSelectSingle49{{"PgSelectSingle[49∈4]
ᐸorganizationsᐳ"}}:::plan + First47 --> PgSelectSingle49 + PgSelectSingle49 --> PgClassExpression51 + Lambda53{{"Lambda[53∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + List52 --> Lambda53 + PgClassExpression54{{"PgClassExpression[54∈4]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle49 --> PgClassExpression54 + JSONParse55[["JSONParse[55∈4]
ᐸ40ᐳ
ᐳFirstPartyVulnerabilityᐳPerson"]]:::plan + Access40 --> JSONParse55 + JSONParse55 --> Access56 + First59{{"First[59∈4]"}}:::plan + PgSelectRows60[["PgSelectRows[60∈4]"]]:::plan + PgSelectRows60 --> First59 + PgSelect57 --> PgSelectRows60 + PgSelectSingle61{{"PgSelectSingle[61∈4]
ᐸpeopleᐳ"}}:::plan + First59 --> PgSelectSingle61 + PgSelectSingle61 --> PgClassExpression63 + Lambda65{{"Lambda[65∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + List64 --> Lambda65 + PgClassExpression66{{"PgClassExpression[66∈4]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle61 --> PgClassExpression66 + __Item84[/"__Item[84∈5]
ᐸ114ᐳ"\]:::itemplan + Access114 ==> __Item84 + PgUnionAllSingle85["PgUnionAllSingle[85∈5]"]:::plan + __Item84 --> PgUnionAllSingle85 + Access86{{"Access[86∈5]
ᐸ85.1ᐳ"}}:::plan + PgUnionAllSingle85 --> Access86 + PgSelect89[["PgSelect[89∈6]
ᐸorganizationsᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"]]:::plan + Access88{{"Access[88∈6]
ᐸ87.0ᐳ"}}:::plan + Object11 & Access88 --> PgSelect89 + List98{{"List[98∈6]
ᐸ50,97ᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"}}:::plan + PgClassExpression97{{"PgClassExpression[97∈6]
ᐸ__organiza...zation_id”ᐳ"}}:::plan + Constant50 & PgClassExpression97 --> List98 + PgSelect103[["PgSelect[103∈6]
ᐸpeopleᐳ
ᐳThirdPartyVulnerabilityᐳPerson"]]:::plan + Access102{{"Access[102∈6]
ᐸ101.0ᐳ"}}:::plan + Object11 & Access102 --> PgSelect103 + List110{{"List[110∈6]
ᐸ62,109ᐳ
ᐳThirdPartyVulnerabilityᐳPerson"}}:::plan + PgClassExpression109{{"PgClassExpression[109∈6]
ᐸ__people__.”person_id”ᐳ"}}:::plan + Constant62 & PgClassExpression109 --> List110 + JSONParse87[["JSONParse[87∈6]
ᐸ86ᐳ
ᐳThirdPartyVulnerabilityᐳOrganization"]]:::plan + Access86 --> JSONParse87 + JSONParse87 --> Access88 + First93{{"First[93∈6]"}}:::plan + PgSelectRows94[["PgSelectRows[94∈6]"]]:::plan + PgSelectRows94 --> First93 + PgSelect89 --> PgSelectRows94 + PgSelectSingle95{{"PgSelectSingle[95∈6]
ᐸorganizationsᐳ"}}:::plan + First93 --> PgSelectSingle95 + PgSelectSingle95 --> PgClassExpression97 + Lambda99{{"Lambda[99∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan + List98 --> Lambda99 + PgClassExpression100{{"PgClassExpression[100∈6]
ᐸ__organiza...s__.”name”ᐳ"}}:::plan + PgSelectSingle95 --> PgClassExpression100 + JSONParse101[["JSONParse[101∈6]
ᐸ86ᐳ
ᐳThirdPartyVulnerabilityᐳPerson"]]:::plan + Access86 --> JSONParse101 + JSONParse101 --> Access102 + First105{{"First[105∈6]"}}:::plan + PgSelectRows106[["PgSelectRows[106∈6]"]]:::plan + PgSelectRows106 --> First105 + PgSelect103 --> PgSelectRows106 + PgSelectSingle107{{"PgSelectSingle[107∈6]
ᐸpeopleᐳ"}}:::plan + First105 --> PgSelectSingle107 + PgSelectSingle107 --> PgClassExpression109 + Lambda111{{"Lambda[111∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan + List110 --> Lambda111 + PgClassExpression112{{"PgClassExpression[112∈6]
ᐸ__people__.”username”ᐳ"}}:::plan + PgSelectSingle107 --> PgClassExpression112 %% define steps subgraph "Buckets for queries/polymorphic/vulns.union_owners.simple" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 28, 50, 62, 74, 116, 11, 12
2: Lambda[13]
3: PgUnionAll[14]
ᐳ: Access[115]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,Constant27,Constant49,Constant61,Constant73,Constant115 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 11, 12, 115, 27, 73, 49, 61

ROOT Connectionᐸ8ᐳ[12]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,Lambda13,PgUnionAll14,Constant28,Constant50,Constant62,Constant74,Access115,Constant116 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 28, 74, 50, 62

ROOT __Item{1}ᐸ115ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgUnionAll13,Access114 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 11, 27, 73, 49, 61

ROOT __Item{2}ᐸ114ᐳ[15]"):::bucket + class Bucket1,__Item16,PgUnionAllSingle17,Access18 bucket1 + Bucket2("Bucket 2 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 18, 11, 28, 74, 17, 50, 62
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[19], JSONParse[67]
ᐳ: 35, 81, 20, 68
2: PgSelect[21], PgSelect[69]
3: PgSelectRows[26], PgSelectRows[72]
ᐳ: 25, 27, 29, 30, 31, 32, 71, 73, 75, 76, 77, 78
4: PgUnionAll[36], PgUnionAll[82]
ᐳ: Access[113], Access[114]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item15,PgUnionAllSingle16,Access17 bucket2 - Bucket3("Bucket 3 (polymorphic)
FirstPartyVulnerability,ThirdPartyVulnerability
Deps: 17, 11, 27, 73, 16, 49, 61
ᐳFirstPartyVulnerability
ᐳThirdPartyVulnerability

1: JSONParse[18], JSONParse[66]
ᐳ: 34, 80, 19, 67
2: PgSelect[20], PgSelect[68]
3: PgSelectRows[25], PgSelectRows[71]
ᐳ: 24, 26, 28, 29, 30, 31, 70, 72, 74, 75, 76, 77
4: PgUnionAll[35], PgUnionAll[81]
ᐳ: Access[112], Access[113]"):::bucket + class Bucket2,JSONParse19,Access20,PgSelect21,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression29,List30,Lambda31,PgClassExpression32,Connection35,PgUnionAll36,JSONParse67,Access68,PgSelect69,First71,PgSelectRows72,PgSelectSingle73,PgClassExpression75,List76,Lambda77,PgClassExpression78,Connection81,PgUnionAll82,Access113,Access114 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 11, 50, 62

ROOT __Item{3}ᐸ113ᐳ[38]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,JSONParse18,Access19,PgSelect20,First24,PgSelectRows25,PgSelectSingle26,PgClassExpression28,List29,Lambda30,PgClassExpression31,Connection34,PgUnionAll35,JSONParse66,Access67,PgSelect68,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression74,List75,Lambda76,PgClassExpression77,Connection80,PgUnionAll81,Access112,Access113 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 11, 49, 61

ROOT __Item{4}ᐸ112ᐳ[37]"):::bucket + class Bucket3,__Item38,PgUnionAllSingle39,Access40 bucket3 + Bucket4("Bucket 4 (polymorphic)
Organization,Person
Deps: 40, 11, 50, 62, 39
ᐳFirstPartyVulnerabilityᐳOrganization
ᐳFirstPartyVulnerabilityᐳPerson

1: JSONParse[41], JSONParse[55]
ᐳ: Access[42], Access[56]
2: PgSelect[43], PgSelect[57]
3: PgSelectRows[48], PgSelectRows[60]
ᐳ: 47, 49, 51, 52, 53, 54, 59, 61, 63, 64, 65, 66"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item37,PgUnionAllSingle38,Access39 bucket4 - Bucket5("Bucket 5 (polymorphic)
Organization,Person
Deps: 39, 11, 49, 61, 38
ᐳFirstPartyVulnerabilityᐳOrganization
ᐳFirstPartyVulnerabilityᐳPerson

1: JSONParse[40], JSONParse[54]
ᐳ: Access[41], Access[55]
2: PgSelect[42], PgSelect[56]
3: PgSelectRows[47], PgSelectRows[59]
ᐳ: 46, 48, 50, 51, 52, 53, 58, 60, 62, 63, 64, 65"):::bucket + class Bucket4,JSONParse41,Access42,PgSelect43,First47,PgSelectRows48,PgSelectSingle49,PgClassExpression51,List52,Lambda53,PgClassExpression54,JSONParse55,Access56,PgSelect57,First59,PgSelectRows60,PgSelectSingle61,PgClassExpression63,List64,Lambda65,PgClassExpression66 bucket4 + Bucket5("Bucket 5 (listItem)
Deps: 11, 50, 62

ROOT __Item{5}ᐸ114ᐳ[84]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,JSONParse40,Access41,PgSelect42,First46,PgSelectRows47,PgSelectSingle48,PgClassExpression50,List51,Lambda52,PgClassExpression53,JSONParse54,Access55,PgSelect56,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression62,List63,Lambda64,PgClassExpression65 bucket5 - Bucket6("Bucket 6 (listItem)
Deps: 11, 49, 61

ROOT __Item{6}ᐸ113ᐳ[83]"):::bucket + class Bucket5,__Item84,PgUnionAllSingle85,Access86 bucket5 + Bucket6("Bucket 6 (polymorphic)
Organization,Person
Deps: 86, 11, 50, 62, 85
ᐳThirdPartyVulnerabilityᐳOrganization
ᐳThirdPartyVulnerabilityᐳPerson

1: JSONParse[87], JSONParse[101]
ᐳ: Access[88], Access[102]
2: PgSelect[89], PgSelect[103]
3: PgSelectRows[94], PgSelectRows[106]
ᐳ: 93, 95, 97, 98, 99, 100, 105, 107, 109, 110, 111, 112"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,__Item83,PgUnionAllSingle84,Access85 bucket6 - Bucket7("Bucket 7 (polymorphic)
Organization,Person
Deps: 85, 11, 49, 61, 84
ᐳThirdPartyVulnerabilityᐳOrganization
ᐳThirdPartyVulnerabilityᐳPerson

1: JSONParse[86], JSONParse[100]
ᐳ: Access[87], Access[101]
2: PgSelect[88], PgSelect[102]
3: PgSelectRows[93], PgSelectRows[105]
ᐳ: 92, 94, 96, 97, 98, 99, 104, 106, 108, 109, 110, 111"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,JSONParse86,Access87,PgSelect88,First92,PgSelectRows93,PgSelectSingle94,PgClassExpression96,List97,Lambda98,PgClassExpression99,JSONParse100,Access101,PgSelect102,First104,PgSelectRows105,PgSelectSingle106,PgClassExpression108,List109,Lambda110,PgClassExpression111 bucket7 + class Bucket6,JSONParse87,Access88,PgSelect89,First93,PgSelectRows94,PgSelectSingle95,PgClassExpression97,List98,Lambda99,PgClassExpression100,JSONParse101,Access102,PgSelect103,First105,PgSelectRows106,PgSelectSingle107,PgClassExpression109,List110,Lambda111,PgClassExpression112 bucket6 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket6 - Bucket4 --> Bucket5 - Bucket6 --> Bucket7 + Bucket2 --> Bucket3 & Bucket5 + Bucket3 --> Bucket4 + Bucket5 --> Bucket6 end diff --git a/postgraphile/postgraphile/__tests__/queries/polymorphic/zero-implementations.mermaid b/postgraphile/postgraphile/__tests__/queries/polymorphic/zero-implementations.mermaid index 2dd7b2c187..2040c204c9 100644 --- a/postgraphile/postgraphile/__tests__/queries/polymorphic/zero-implementations.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/polymorphic/zero-implementations.mermaid @@ -9,28 +9,25 @@ graph TD %% plan dependencies - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgUnionAll9[["PgUnionAll[9∈0] ➊"]]:::plan Connection8{{"Connection[8∈0] ➊
ᐸ7ᐳ"}}:::plan - Constant14{{"Constant[14∈0] ➊
ᐸ{ hasMore: false, items: [] }ᐳ"}}:::plan - Access13{{"Access[13∈1] ➊
ᐸ14.itemsᐳ"}}:::plan - Constant14 --> Access13 - __Item11[/"__Item[11∈2]
ᐸ13ᐳ"\]:::itemplan + Connection8 --> PgUnionAll9 + Access13{{"Access[13∈0] ➊
ᐸ9.itemsᐳ"}}:::plan + PgUnionAll9 --> Access13 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item11[/"__Item[11∈1]
ᐸ13ᐳ"\]:::itemplan Access13 ==> __Item11 - PgUnionAllSingle12["PgUnionAllSingle[12∈2]"]:::plan + PgUnionAllSingle12["PgUnionAllSingle[12∈1]"]:::plan __Item11 --> PgUnionAllSingle12 %% define steps subgraph "Buckets for queries/polymorphic/zero-implementations" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: Constant[6], Connection[8]
2: PgUnionAll[9]
ᐳ: Access[13]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value4,Connection8,Constant14 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 8

ROOT Connectionᐸ7ᐳ[8]"):::bucket + class Bucket0,__Value4,Connection8,PgUnionAll9,Access13 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ13ᐳ[11]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,Access13 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ13ᐳ[11]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item11,PgUnionAllSingle12 bucket2 + class Bucket1,__Item11,PgUnionAllSingle12 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/queries/relay/conditionNodeId.mermaid b/postgraphile/postgraphile/__tests__/queries/relay/conditionNodeId.mermaid index 793f964148..1f5583acf7 100644 --- a/postgraphile/postgraphile/__tests__/queries/relay/conditionNodeId.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/relay/conditionNodeId.mermaid @@ -9,231 +9,169 @@ graph TD %% plan dependencies - Object15{{"Object[15∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access14{{"Access[14∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access13 & Access14 --> Object15 - __Flag47[["__Flag[47∈0] ➊
ᐸ46, if(42), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - __Flag46[["__Flag[46∈0] ➊
ᐸ45, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition42{{"Condition[42∈0] ➊
ᐸexistsᐳ"}}:::plan - __Flag46 & Condition42 --> __Flag47 - __Flag77[["__Flag[77∈0] ➊
ᐸ76, if(72), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - __Flag76[["__Flag[76∈0] ➊
ᐸ75, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition72{{"Condition[72∈0] ➊
ᐸexistsᐳ"}}:::plan - __Flag76 & Condition72 --> __Flag77 - __Flag108[["__Flag[108∈0] ➊
ᐸ107, if(103), rejectNull, onReject: Error: Invali…ᐳ"]]:::plan - __Flag107[["__Flag[107∈0] ➊
ᐸ106, trapInhibited, onReject: INHIBITᐳ"]]:::plan - Condition103{{"Condition[103∈0] ➊
ᐸexistsᐳ"}}:::plan - __Flag107 & Condition103 --> __Flag108 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access13 - __Value2 --> Access14 + PgSelect18[["PgSelect[18∈0] ➊
ᐸpostᐳ"]]:::plan + Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + ApplyInput17{{"ApplyInput[17∈0] ➊"}}:::plan + Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan + ApplyInput17 -->|rejectNull| PgSelect18 + Object14 & Connection15 --> PgSelect18 + PgSelect44[["PgSelect[44∈0] ➊
ᐸpostᐳ"]]:::plan + ApplyInput43{{"ApplyInput[43∈0] ➊"}}:::plan + Connection41{{"Connection[41∈0] ➊
ᐸ39ᐳ"}}:::plan + ApplyInput43 -->|rejectNull| PgSelect44 + Object14 & Connection41 --> PgSelect44 + PgSelect69[["PgSelect[69∈0] ➊
ᐸpostᐳ"]]:::plan + ApplyInput68{{"ApplyInput[68∈0] ➊"}}:::plan + Connection66{{"Connection[66∈0] ➊
ᐸ64ᐳ"}}:::plan + ApplyInput68 -->|rejectNull| PgSelect69 + Object14 & Connection66 --> PgSelect69 + PgSelect95[["PgSelect[95∈0] ➊
ᐸpostᐳ"]]:::plan + ApplyInput94{{"ApplyInput[94∈0] ➊"}}:::plan + Connection92{{"Connection[92∈0] ➊
ᐸ90ᐳ"}}:::plan + ApplyInput94 -->|rejectNull| PgSelect95 + Object14 & Connection92 --> PgSelect95 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Access9{{"Access[9∈0] ➊
ᐸ0.undefinedᐳ"}}:::plan + Access9 --> __InputObject8 + Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access12 & Access13 --> Object14 + __InputObject36{{"__InputObject[36∈0] ➊"}}:::plan Access37{{"Access[37∈0] ➊
ᐸ0.aliceᐳ"}}:::plan + Access37 --> __InputObject36 + __InputObject62{{"__InputObject[62∈0] ➊"}}:::plan + Constant63{{"Constant[63∈0] ➊
ᐸnullᐳ"}}:::plan + Constant63 --> __InputObject62 + __InputObject87{{"__InputObject[87∈0] ➊"}}:::plan + Access88{{"Access[88∈0] ➊
ᐸ0.post3ᐳ"}}:::plan + Access88 --> __InputObject87 __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value0 --> Access9 + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access12 + __Value2 --> Access13 + __InputObject8 --> ApplyInput17 + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelect18 --> PgSelectRows19 __Value0 --> Access37 - Access37 --> Condition42 - Lambda43{{"Lambda[43∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Access37 --> Lambda43 - Access44{{"Access[44∈0] ➊
ᐸ43.1ᐳ"}}:::plan - Lambda43 --> Access44 - __Flag45[["__Flag[45∈0] ➊
ᐸ44, rejectNull, onReject: INHIBITᐳ"]]:::plan - Access44 --> __Flag45 - __Flag45 --> __Flag46 - Constant126{{"Constant[126∈0] ➊
ᐸnullᐳ"}}:::plan - Constant126 --> Condition72 - Lambda73{{"Lambda[73∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Constant126 --> Lambda73 - Access74{{"Access[74∈0] ➊
ᐸ73.1ᐳ"}}:::plan - Lambda73 --> Access74 - __Flag75[["__Flag[75∈0] ➊
ᐸ74, rejectNull, onReject: INHIBITᐳ"]]:::plan - Access74 --> __Flag75 - __Flag75 --> __Flag76 - Access98{{"Access[98∈0] ➊
ᐸ0.post3ᐳ"}}:::plan - __Value0 --> Access98 - Access98 --> Condition103 - Lambda104{{"Lambda[104∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Access98 --> Lambda104 - Access105{{"Access[105∈0] ➊
ᐸ104.1ᐳ"}}:::plan - Lambda104 --> Access105 - __Flag106[["__Flag[106∈0] ➊
ᐸ105, rejectNull, onReject: INHIBITᐳ"]]:::plan - Access105 --> __Flag106 - __Flag106 --> __Flag107 + __InputObject36 --> ApplyInput43 + PgSelectRows45[["PgSelectRows[45∈0] ➊"]]:::plan + PgSelect44 --> PgSelectRows45 + __InputObject62 --> ApplyInput68 + PgSelectRows70[["PgSelectRows[70∈0] ➊"]]:::plan + PgSelect69 --> PgSelectRows70 + __Value0 --> Access88 + __InputObject87 --> ApplyInput94 + PgSelectRows96[["PgSelectRows[96∈0] ➊"]]:::plan + PgSelect95 --> PgSelectRows96 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection16{{"Connection[16∈0] ➊
ᐸ12ᐳ"}}:::plan - Constant29{{"Constant[29∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Connection41{{"Connection[41∈0] ➊
ᐸ39ᐳ"}}:::plan - Connection71{{"Connection[71∈0] ➊
ᐸ69ᐳ"}}:::plan - Connection102{{"Connection[102∈0] ➊
ᐸ100ᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸpostᐳ"]]:::plan - Object15 & Connection16 --> PgSelect17 - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan - PgSelect17 --> PgSelectRows18 - __Item19[/"__Item[19∈2]
ᐸ18ᐳ"\]:::itemplan - PgSelectRows18 ==> __Item19 - PgSelectSingle20{{"PgSelectSingle[20∈2]
ᐸpostᐳ"}}:::plan - __Item19 --> PgSelectSingle20 - PgSelect22[["PgSelect[22∈3]
ᐸpersonᐳ"]]:::plan - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__post__.”author_id”ᐳ"}}:::plan - Object15 & PgClassExpression21 --> PgSelect22 - PgSelectSingle20 --> PgClassExpression21 - First26{{"First[26∈3]"}}:::plan - PgSelectRows27[["PgSelectRows[27∈3]"]]:::plan - PgSelectRows27 --> First26 - PgSelect22 --> PgSelectRows27 - PgSelectSingle28{{"PgSelectSingle[28∈3]
ᐸpersonᐳ"}}:::plan - First26 --> PgSelectSingle28 - PgClassExpression33{{"PgClassExpression[33∈3]
ᐸ__post__.”body”ᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression33 - List31{{"List[31∈4]
ᐸ29,30ᐳ"}}:::plan - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__person__.”id”ᐳ"}}:::plan - Constant29 & PgClassExpression30 --> List31 - PgSelectSingle28 --> PgClassExpression30 - Lambda32{{"Lambda[32∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan - List31 --> Lambda32 - PgSelect48[["PgSelect[48∈5] ➊
ᐸpostᐳ"]]:::plan - Object15 & __Flag47 & Connection41 --> PgSelect48 - PgSelectRows49[["PgSelectRows[49∈5] ➊"]]:::plan - PgSelect48 --> PgSelectRows49 - __Item50[/"__Item[50∈6]
ᐸ49ᐳ"\]:::itemplan - PgSelectRows49 ==> __Item50 - PgSelectSingle51{{"PgSelectSingle[51∈6]
ᐸpostᐳ"}}:::plan - __Item50 --> PgSelectSingle51 - PgSelect53[["PgSelect[53∈7]
ᐸpersonᐳ"]]:::plan - PgClassExpression52{{"PgClassExpression[52∈7]
ᐸ__post__.”author_id”ᐳ"}}:::plan - Object15 & PgClassExpression52 --> PgSelect53 - PgSelectSingle51 --> PgClassExpression52 - First57{{"First[57∈7]"}}:::plan - PgSelectRows58[["PgSelectRows[58∈7]"]]:::plan - PgSelectRows58 --> First57 - PgSelect53 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈7]
ᐸpersonᐳ"}}:::plan - First57 --> PgSelectSingle59 - PgClassExpression64{{"PgClassExpression[64∈7]
ᐸ__post__.”body”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression64 - List62{{"List[62∈8]
ᐸ29,61ᐳ"}}:::plan - PgClassExpression61{{"PgClassExpression[61∈8]
ᐸ__person__.”id”ᐳ"}}:::plan - Constant29 & PgClassExpression61 --> List62 - PgSelectSingle59 --> PgClassExpression61 - Lambda63{{"Lambda[63∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan - List62 --> Lambda63 - PgSelect78[["PgSelect[78∈9] ➊
ᐸpostᐳ"]]:::plan - Object15 & __Flag77 & Connection71 --> PgSelect78 - PgSelectRows79[["PgSelectRows[79∈9] ➊"]]:::plan - PgSelect78 --> PgSelectRows79 - __Item80[/"__Item[80∈10]
ᐸ79ᐳ"\]:::itemplan - PgSelectRows79 ==> __Item80 - PgSelectSingle81{{"PgSelectSingle[81∈10]
ᐸpostᐳ"}}:::plan - __Item80 --> PgSelectSingle81 - PgSelect83[["PgSelect[83∈11]
ᐸpersonᐳ"]]:::plan - PgClassExpression82{{"PgClassExpression[82∈11]
ᐸ__post__.”author_id”ᐳ"}}:::plan - Object15 & PgClassExpression82 --> PgSelect83 - PgSelectSingle81 --> PgClassExpression82 - First87{{"First[87∈11]"}}:::plan - PgSelectRows88[["PgSelectRows[88∈11]"]]:::plan - PgSelectRows88 --> First87 - PgSelect83 --> PgSelectRows88 - PgSelectSingle89{{"PgSelectSingle[89∈11]
ᐸpersonᐳ"}}:::plan - First87 --> PgSelectSingle89 - PgClassExpression94{{"PgClassExpression[94∈11]
ᐸ__post__.”body”ᐳ"}}:::plan - PgSelectSingle81 --> PgClassExpression94 - List92{{"List[92∈12]
ᐸ29,91ᐳ"}}:::plan - PgClassExpression91{{"PgClassExpression[91∈12]
ᐸ__person__.”id”ᐳ"}}:::plan - Constant29 & PgClassExpression91 --> List92 - PgSelectSingle89 --> PgClassExpression91 - Lambda93{{"Lambda[93∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan - List92 --> Lambda93 - PgSelect109[["PgSelect[109∈13] ➊
ᐸpostᐳ"]]:::plan - Object15 & __Flag108 & Connection102 --> PgSelect109 - PgSelectRows110[["PgSelectRows[110∈13] ➊"]]:::plan - PgSelect109 --> PgSelectRows110 - __Item111[/"__Item[111∈14]
ᐸ110ᐳ"\]:::itemplan - PgSelectRows110 ==> __Item111 - PgSelectSingle112{{"PgSelectSingle[112∈14]
ᐸpostᐳ"}}:::plan - __Item111 --> PgSelectSingle112 - PgSelect114[["PgSelect[114∈15]
ᐸpersonᐳ"]]:::plan - PgClassExpression113{{"PgClassExpression[113∈15]
ᐸ__post__.”author_id”ᐳ"}}:::plan - Object15 & PgClassExpression113 --> PgSelect114 - PgSelectSingle112 --> PgClassExpression113 - First118{{"First[118∈15]"}}:::plan - PgSelectRows119[["PgSelectRows[119∈15]"]]:::plan - PgSelectRows119 --> First118 - PgSelect114 --> PgSelectRows119 - PgSelectSingle120{{"PgSelectSingle[120∈15]
ᐸpersonᐳ"}}:::plan - First118 --> PgSelectSingle120 - PgClassExpression125{{"PgClassExpression[125∈15]
ᐸ__post__.”body”ᐳ"}}:::plan - PgSelectSingle112 --> PgClassExpression125 - List123{{"List[123∈16]
ᐸ29,122ᐳ"}}:::plan - PgClassExpression122{{"PgClassExpression[122∈16]
ᐸ__person__.”id”ᐳ"}}:::plan - Constant29 & PgClassExpression122 --> List123 - PgSelectSingle120 --> PgClassExpression122 - Lambda124{{"Lambda[124∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan - List123 --> Lambda124 + Constant30{{"Constant[30∈0] ➊
ᐸ'people'ᐳ"}}:::plan + PgSelect23[["PgSelect[23∈1]
ᐸpersonᐳ"]]:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__post__.”author_id”ᐳ"}}:::plan + Object14 & PgClassExpression22 --> PgSelect23 + List32{{"List[32∈1]
ᐸ30,31ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + Constant30 & PgClassExpression31 --> List32 + __Item20[/"__Item[20∈1]
ᐸ19ᐳ"\]:::itemplan + PgSelectRows19 ==> __Item20 + PgSelectSingle21{{"PgSelectSingle[21∈1]
ᐸpostᐳ"}}:::plan + __Item20 --> PgSelectSingle21 + PgSelectSingle21 --> PgClassExpression22 + First27{{"First[27∈1]"}}:::plan + PgSelectRows28[["PgSelectRows[28∈1]"]]:::plan + PgSelectRows28 --> First27 + PgSelect23 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈1]
ᐸpersonᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgSelectSingle29 --> PgClassExpression31 + Lambda33{{"Lambda[33∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List32 --> Lambda33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__post__.”body”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression34 + PgSelect49[["PgSelect[49∈2]
ᐸpersonᐳ"]]:::plan + PgClassExpression48{{"PgClassExpression[48∈2]
ᐸ__post__.”author_id”ᐳ"}}:::plan + Object14 & PgClassExpression48 --> PgSelect49 + List58{{"List[58∈2]
ᐸ30,57ᐳ"}}:::plan + PgClassExpression57{{"PgClassExpression[57∈2]
ᐸ__person__.”id”ᐳ"}}:::plan + Constant30 & PgClassExpression57 --> List58 + __Item46[/"__Item[46∈2]
ᐸ45ᐳ"\]:::itemplan + PgSelectRows45 ==> __Item46 + PgSelectSingle47{{"PgSelectSingle[47∈2]
ᐸpostᐳ"}}:::plan + __Item46 --> PgSelectSingle47 + PgSelectSingle47 --> PgClassExpression48 + First53{{"First[53∈2]"}}:::plan + PgSelectRows54[["PgSelectRows[54∈2]"]]:::plan + PgSelectRows54 --> First53 + PgSelect49 --> PgSelectRows54 + PgSelectSingle55{{"PgSelectSingle[55∈2]
ᐸpersonᐳ"}}:::plan + First53 --> PgSelectSingle55 + PgSelectSingle55 --> PgClassExpression57 + Lambda59{{"Lambda[59∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan + List58 --> Lambda59 + PgClassExpression60{{"PgClassExpression[60∈2]
ᐸ__post__.”body”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression60 + PgSelect74[["PgSelect[74∈3]
ᐸpersonᐳ"]]:::plan + PgClassExpression73{{"PgClassExpression[73∈3]
ᐸ__post__.”author_id”ᐳ"}}:::plan + Object14 & PgClassExpression73 --> PgSelect74 + List83{{"List[83∈3]
ᐸ30,82ᐳ"}}:::plan + PgClassExpression82{{"PgClassExpression[82∈3]
ᐸ__person__.”id”ᐳ"}}:::plan + Constant30 & PgClassExpression82 --> List83 + __Item71[/"__Item[71∈3]
ᐸ70ᐳ"\]:::itemplan + PgSelectRows70 ==> __Item71 + PgSelectSingle72{{"PgSelectSingle[72∈3]
ᐸpostᐳ"}}:::plan + __Item71 --> PgSelectSingle72 + PgSelectSingle72 --> PgClassExpression73 + First78{{"First[78∈3]"}}:::plan + PgSelectRows79[["PgSelectRows[79∈3]"]]:::plan + PgSelectRows79 --> First78 + PgSelect74 --> PgSelectRows79 + PgSelectSingle80{{"PgSelectSingle[80∈3]
ᐸpersonᐳ"}}:::plan + First78 --> PgSelectSingle80 + PgSelectSingle80 --> PgClassExpression82 + Lambda84{{"Lambda[84∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + List83 --> Lambda84 + PgClassExpression85{{"PgClassExpression[85∈3]
ᐸ__post__.”body”ᐳ"}}:::plan + PgSelectSingle72 --> PgClassExpression85 + PgSelect100[["PgSelect[100∈4]
ᐸpersonᐳ"]]:::plan + PgClassExpression99{{"PgClassExpression[99∈4]
ᐸ__post__.”author_id”ᐳ"}}:::plan + Object14 & PgClassExpression99 --> PgSelect100 + List109{{"List[109∈4]
ᐸ30,108ᐳ"}}:::plan + PgClassExpression108{{"PgClassExpression[108∈4]
ᐸ__person__.”id”ᐳ"}}:::plan + Constant30 & PgClassExpression108 --> List109 + __Item97[/"__Item[97∈4]
ᐸ96ᐳ"\]:::itemplan + PgSelectRows96 ==> __Item97 + PgSelectSingle98{{"PgSelectSingle[98∈4]
ᐸpostᐳ"}}:::plan + __Item97 --> PgSelectSingle98 + PgSelectSingle98 --> PgClassExpression99 + First104{{"First[104∈4]"}}:::plan + PgSelectRows105[["PgSelectRows[105∈4]"]]:::plan + PgSelectRows105 --> First104 + PgSelect100 --> PgSelectRows105 + PgSelectSingle106{{"PgSelectSingle[106∈4]
ᐸpersonᐳ"}}:::plan + First104 --> PgSelectSingle106 + PgSelectSingle106 --> PgClassExpression108 + Lambda110{{"Lambda[110∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + List109 --> Lambda110 + PgClassExpression111{{"PgClassExpression[111∈4]
ᐸ__post__.”body”ᐳ"}}:::plan + PgSelectSingle98 --> PgClassExpression111 %% define steps subgraph "Buckets for queries/relay/conditionNodeId" - Bucket0("Bucket 0 (root)

1:
ᐳ: 13, 14, 16, 29, 37, 41, 71, 98, 102, 126, 15, 42, 43, 44, 72, 73, 74, 103, 104, 105
2: __Flag[45], __Flag[75], __Flag[106]
3: __Flag[46], __Flag[76], __Flag[107]
4: __Flag[47], __Flag[77], __Flag[108]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 12, 13, 30, 37, 63, 88, 8, 14, 15, 17, 36, 41, 43, 62, 66, 68, 87, 92, 94
2: 18, 44, 69, 95
3: 19, 45, 70, 96"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Access13,Access14,Object15,Connection16,Constant29,Access37,Connection41,Condition42,Lambda43,Access44,__Flag45,__Flag46,__Flag47,Connection71,Condition72,Lambda73,Access74,__Flag75,__Flag76,__Flag77,Access98,Connection102,Condition103,Lambda104,Access105,__Flag106,__Flag107,__Flag108,Constant126 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 15, 16, 29

ROOT Connectionᐸ12ᐳ[16]
1: PgSelect[17]
2: PgSelectRows[18]"):::bucket + class Bucket0,__Value0,__Value2,__Value4,__InputObject8,Access9,Access12,Access13,Object14,Connection15,ApplyInput17,PgSelect18,PgSelectRows19,Constant30,__InputObject36,Access37,Connection41,ApplyInput43,PgSelect44,PgSelectRows45,__InputObject62,Constant63,Connection66,ApplyInput68,PgSelect69,PgSelectRows70,__InputObject87,Access88,Connection92,ApplyInput94,PgSelect95,PgSelectRows96 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 14, 30

ROOT __Item{1}ᐸ19ᐳ[20]
1:
ᐳ: 21, 22, 34
2: PgSelect[23]
3: PgSelectRows[28]
ᐳ: 27, 29, 31, 32, 33"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgSelectRows18 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 15, 29

ROOT __Item{2}ᐸ18ᐳ[19]"):::bucket + class Bucket1,__Item20,PgSelectSingle21,PgClassExpression22,PgSelect23,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression31,List32,Lambda33,PgClassExpression34 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 14, 30

ROOT __Item{2}ᐸ45ᐳ[46]
1:
ᐳ: 47, 48, 60
2: PgSelect[49]
3: PgSelectRows[54]
ᐳ: 53, 55, 57, 58, 59"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item19,PgSelectSingle20 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 20, 15, 29

ROOT PgSelectSingle{2}ᐸpostᐳ[20]
1:
ᐳ: 21, 33
2: PgSelect[22]
3: PgSelectRows[27]
ᐳ: First[26], PgSelectSingle[28]"):::bucket + class Bucket2,__Item46,PgSelectSingle47,PgClassExpression48,PgSelect49,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression57,List58,Lambda59,PgClassExpression60 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 14, 30

ROOT __Item{3}ᐸ70ᐳ[71]
1:
ᐳ: 72, 73, 85
2: PgSelect[74]
3: PgSelectRows[79]
ᐳ: 78, 80, 82, 83, 84"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression21,PgSelect22,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression33 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 28, 29

ROOT PgSelectSingle{3}ᐸpersonᐳ[28]"):::bucket + class Bucket3,__Item71,PgSelectSingle72,PgClassExpression73,PgSelect74,First78,PgSelectRows79,PgSelectSingle80,PgClassExpression82,List83,Lambda84,PgClassExpression85 bucket3 + Bucket4("Bucket 4 (listItem)
Deps: 14, 30

ROOT __Item{4}ᐸ96ᐳ[97]
1:
ᐳ: 98, 99, 111
2: PgSelect[100]
3: PgSelectRows[105]
ᐳ: 104, 106, 108, 109, 110"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression30,List31,Lambda32 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 15, 47, 41, 29

ROOT Connectionᐸ39ᐳ[41]
1: PgSelect[48]
2: PgSelectRows[49]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect48,PgSelectRows49 bucket5 - Bucket6("Bucket 6 (listItem)
Deps: 15, 29

ROOT __Item{6}ᐸ49ᐳ[50]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,__Item50,PgSelectSingle51 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 51, 15, 29

ROOT PgSelectSingle{6}ᐸpostᐳ[51]
1:
ᐳ: 52, 64
2: PgSelect[53]
3: PgSelectRows[58]
ᐳ: First[57], PgSelectSingle[59]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression52,PgSelect53,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression64 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 59, 29

ROOT PgSelectSingle{7}ᐸpersonᐳ[59]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression61,List62,Lambda63 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 15, 77, 71, 29

ROOT Connectionᐸ69ᐳ[71]
1: PgSelect[78]
2: PgSelectRows[79]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgSelect78,PgSelectRows79 bucket9 - Bucket10("Bucket 10 (listItem)
Deps: 15, 29

ROOT __Item{10}ᐸ79ᐳ[80]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,__Item80,PgSelectSingle81 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 81, 15, 29

ROOT PgSelectSingle{10}ᐸpostᐳ[81]
1:
ᐳ: 82, 94
2: PgSelect[83]
3: PgSelectRows[88]
ᐳ: First[87], PgSelectSingle[89]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression82,PgSelect83,First87,PgSelectRows88,PgSelectSingle89,PgClassExpression94 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 89, 29

ROOT PgSelectSingle{11}ᐸpersonᐳ[89]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgClassExpression91,List92,Lambda93 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 15, 108, 102, 29

ROOT Connectionᐸ100ᐳ[102]
1: PgSelect[109]
2: PgSelectRows[110]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,PgSelect109,PgSelectRows110 bucket13 - Bucket14("Bucket 14 (listItem)
Deps: 15, 29

ROOT __Item{14}ᐸ110ᐳ[111]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,__Item111,PgSelectSingle112 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 112, 15, 29

ROOT PgSelectSingle{14}ᐸpostᐳ[112]
1:
ᐳ: 113, 125
2: PgSelect[114]
3: PgSelectRows[119]
ᐳ: First[118], PgSelectSingle[120]"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15,PgClassExpression113,PgSelect114,First118,PgSelectRows119,PgSelectSingle120,PgClassExpression125 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 120, 29

ROOT PgSelectSingle{15}ᐸpersonᐳ[120]"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16,PgClassExpression122,List123,Lambda124 bucket16 - Bucket0 --> Bucket1 & Bucket5 & Bucket9 & Bucket13 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 - Bucket9 --> Bucket10 - Bucket10 --> Bucket11 - Bucket11 --> Bucket12 - Bucket13 --> Bucket14 - Bucket14 --> Bucket15 - Bucket15 --> Bucket16 + class Bucket4,__Item97,PgSelectSingle98,PgClassExpression99,PgSelect100,First104,PgSelectRows105,PgSelectSingle106,PgClassExpression108,List109,Lambda110,PgClassExpression111 bucket4 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/relay/conditionNodeId.sql b/postgraphile/postgraphile/__tests__/queries/relay/conditionNodeId.sql index bcfda2f0fb..1ba81d1ef2 100644 --- a/postgraphile/postgraphile/__tests__/queries/relay/conditionNodeId.sql +++ b/postgraphile/postgraphile/__tests__/queries/relay/conditionNodeId.sql @@ -11,7 +11,7 @@ select __post__."id"::text as "2" from "d"."post" as __post__ where ( - (($1::"int4" is null and __post__."author_id" is null) or ($1::"int4" is not null and __post__."author_id" = $1::"int4")) + __post__."author_id" = $1::"int4" ) order by __post__."id" asc; @@ -21,7 +21,7 @@ select __post__."id"::text as "2" from "d"."post" as __post__ where ( - (($1::"int4" is null and __post__."author_id" is null) or ($1::"int4" is not null and __post__."author_id" = $1::"int4")) + __post__."author_id" is null ) order by __post__."id" asc; diff --git a/postgraphile/postgraphile/__tests__/queries/v4/arrays.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/arrays.mermaid index e68a6b93c9..b789987292 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/arrays.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/arrays.mermaid @@ -9,24 +9,26 @@ graph TD %% plan dependencies + PgSelect7[["PgSelect[7∈0] ➊
ᐸlistsᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object10 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 - PgSelect7[["PgSelect[7∈0] ➊
ᐸlistsᐳ"]]:::plan - Object10 --> PgSelect7 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 PgSelectRows11[["PgSelectRows[11∈0] ➊"]]:::plan PgSelect7 --> PgSelectRows11 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgFromExpression36{{"PgFromExpression[36∈0] ➊"}}:::plan + PgFromExpression50{{"PgFromExpression[50∈0] ➊"}}:::plan PgSelect32[["PgSelect[32∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan PgClassExpression31{{"PgClassExpression[31∈1]
ᐸ__lists__....ype_array”ᐳ"}}:::plan - Object10 & PgClassExpression31 --> PgSelect32 - PgSelect47[["PgSelect[47∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression46{{"PgClassExpression[46∈1]
ᐸ__lists__...._array_nn”ᐳ"}}:::plan - Object10 & PgClassExpression46 --> PgSelect47 + Object10 & PgClassExpression31 & PgFromExpression36 --> PgSelect32 + PgSelect48[["PgSelect[48∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression47{{"PgClassExpression[47∈1]
ᐸ__lists__...._array_nn”ᐳ"}}:::plan + Object10 & PgClassExpression47 & PgFromExpression50 --> PgSelect48 __Item12[/"__Item[12∈1]
ᐸ11ᐳ"\]:::itemplan PgSelectRows11 ==> __Item12 PgSelectSingle13{{"PgSelectSingle[13∈1]
ᐸlistsᐳ"}}:::plan @@ -50,15 +52,15 @@ graph TD PgClassExpression29{{"PgClassExpression[29∈1]
ᐸ__lists__...._array_nn”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression29 PgSelectSingle13 --> PgClassExpression31 - PgSelectRows36[["PgSelectRows[36∈1]"]]:::plan - PgSelect32 --> PgSelectRows36 - PgSelectSingle13 --> PgClassExpression46 - PgSelectRows49[["PgSelectRows[49∈1]"]]:::plan - PgSelect47 --> PgSelectRows49 - PgClassExpression59{{"PgClassExpression[59∈1]
ᐸ__lists__.”bytea_array”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression59 - PgClassExpression61{{"PgClassExpression[61∈1]
ᐸ__lists__...._array_nn”ᐳ"}}:::plan + PgSelectRows37[["PgSelectRows[37∈1]"]]:::plan + PgSelect32 --> PgSelectRows37 + PgSelectSingle13 --> PgClassExpression47 + PgSelectRows51[["PgSelectRows[51∈1]"]]:::plan + PgSelect48 --> PgSelectRows51 + PgClassExpression61{{"PgClassExpression[61∈1]
ᐸ__lists__.”bytea_array”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression61 + PgClassExpression63{{"PgClassExpression[63∈1]
ᐸ__lists__...._array_nn”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression63 __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan PgClassExpression15 ==> __Item16 __Item18[/"__Item[18∈3]
ᐸ17ᐳ"\]:::itemplan @@ -75,56 +77,56 @@ graph TD PgClassExpression27 ==> __Item28 __Item30[/"__Item[30∈9]
ᐸ29ᐳ"\]:::itemplan PgClassExpression29 ==> __Item30 - __Item37[/"__Item[37∈10]
ᐸ36ᐳ"\]:::itemplan - PgSelectRows36 ==> __Item37 - PgSelectSingle38{{"PgSelectSingle[38∈10]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - __Item37 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈11]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈11]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈11]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression41 - PgClassExpression42{{"PgClassExpression[42∈11]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression42 - PgClassExpression43{{"PgClassExpression[43∈11]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression43 - PgClassExpression44{{"PgClassExpression[44∈11]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression44 - PgClassExpression45{{"PgClassExpression[45∈11]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression45 - __Item50[/"__Item[50∈12]
ᐸ49ᐳ"\]:::itemplan - PgSelectRows49 ==> __Item50 - PgSelectSingle51{{"PgSelectSingle[51∈12]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - __Item50 --> PgSelectSingle51 - PgClassExpression52{{"PgClassExpression[52∈13]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈13]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈13]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression54 - PgClassExpression55{{"PgClassExpression[55∈13]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression55 - PgClassExpression56{{"PgClassExpression[56∈13]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈13]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression57 - PgClassExpression58{{"PgClassExpression[58∈13]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression58 - __Item60[/"__Item[60∈14]
ᐸ59ᐳ"\]:::itemplan - PgClassExpression59 ==> __Item60 - __Item62[/"__Item[62∈15]
ᐸ61ᐳ"\]:::itemplan + __Item38[/"__Item[38∈10]
ᐸ37ᐳ"\]:::itemplan + PgSelectRows37 ==> __Item38 + PgSelectSingle39{{"PgSelectSingle[39∈10]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + __Item38 --> PgSelectSingle39 + PgClassExpression40{{"PgClassExpression[40∈10]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression40 + PgClassExpression41{{"PgClassExpression[41∈10]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈10]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression42 + PgClassExpression43{{"PgClassExpression[43∈10]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression43 + PgClassExpression44{{"PgClassExpression[44∈10]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression44 + PgClassExpression45{{"PgClassExpression[45∈10]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression45 + PgClassExpression46{{"PgClassExpression[46∈10]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression46 + __Item52[/"__Item[52∈11]
ᐸ51ᐳ"\]:::itemplan + PgSelectRows51 ==> __Item52 + PgSelectSingle53{{"PgSelectSingle[53∈11]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + __Item52 --> PgSelectSingle53 + PgClassExpression54{{"PgClassExpression[54∈11]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression54 + PgClassExpression55{{"PgClassExpression[55∈11]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression55 + PgClassExpression56{{"PgClassExpression[56∈11]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression56 + PgClassExpression57{{"PgClassExpression[57∈11]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression57 + PgClassExpression58{{"PgClassExpression[58∈11]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression58 + PgClassExpression59{{"PgClassExpression[59∈11]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression59 + PgClassExpression60{{"PgClassExpression[60∈11]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression60 + __Item62[/"__Item[62∈12]
ᐸ61ᐳ"\]:::itemplan PgClassExpression61 ==> __Item62 + __Item64[/"__Item[64∈13]
ᐸ63ᐳ"\]:::itemplan + PgClassExpression63 ==> __Item64 %% define steps subgraph "Buckets for queries/v4/arrays" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[8], Access[9], Object[10]
2: PgSelect[7]
3: PgSelectRows[11]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 36, 50, 10
2: PgSelect[7]
3: PgSelectRows[11]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 10

ROOT __Item{1}ᐸ11ᐳ[12]
1:
ᐳ: 13, 14, 15, 17, 19, 21, 23, 25, 27, 29, 31, 46, 59, 61
2: PgSelect[32], PgSelect[47]
3: PgSelectRows[36], PgSelectRows[49]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11,PgFromExpression36,PgFromExpression50 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 10, 36, 50

ROOT __Item{1}ᐸ11ᐳ[12]
1:
ᐳ: 13, 14, 15, 17, 19, 21, 23, 25, 27, 29, 31, 47, 61, 63
2: PgSelect[32], PgSelect[48]
3: PgSelectRows[37], PgSelectRows[51]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgClassExpression17,PgClassExpression19,PgClassExpression21,PgClassExpression23,PgClassExpression25,PgClassExpression27,PgClassExpression29,PgClassExpression31,PgSelect32,PgSelectRows36,PgClassExpression46,PgSelect47,PgSelectRows49,PgClassExpression59,PgClassExpression61 bucket1 + class Bucket1,__Item12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgClassExpression17,PgClassExpression19,PgClassExpression21,PgClassExpression23,PgClassExpression25,PgClassExpression27,PgClassExpression29,PgClassExpression31,PgSelect32,PgSelectRows37,PgClassExpression47,PgSelect48,PgSelectRows51,PgClassExpression61,PgClassExpression63 bucket1 Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket classDef bucket2 stroke:#7f007f class Bucket2,__Item16 bucket2 @@ -149,26 +151,18 @@ graph TD Bucket9("Bucket 9 (listItem)

ROOT __Item{9}ᐸ29ᐳ[30]"):::bucket classDef bucket9 stroke:#ff0000 class Bucket9,__Item30 bucket9 - Bucket10("Bucket 10 (listItem)

ROOT __Item{10}ᐸ36ᐳ[37]"):::bucket + Bucket10("Bucket 10 (listItem)

ROOT __Item{10}ᐸ37ᐳ[38]"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,__Item37,PgSelectSingle38 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 38

ROOT PgSelectSingle{10}ᐸfrmcdc_compoundTypeᐳ[38]"):::bucket + class Bucket10,__Item38,PgSelectSingle39,PgClassExpression40,PgClassExpression41,PgClassExpression42,PgClassExpression43,PgClassExpression44,PgClassExpression45,PgClassExpression46 bucket10 + Bucket11("Bucket 11 (listItem)

ROOT __Item{11}ᐸ51ᐳ[52]"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression39,PgClassExpression40,PgClassExpression41,PgClassExpression42,PgClassExpression43,PgClassExpression44,PgClassExpression45 bucket11 - Bucket12("Bucket 12 (listItem)

ROOT __Item{12}ᐸ49ᐳ[50]"):::bucket + class Bucket11,__Item52,PgSelectSingle53,PgClassExpression54,PgClassExpression55,PgClassExpression56,PgClassExpression57,PgClassExpression58,PgClassExpression59,PgClassExpression60 bucket11 + Bucket12("Bucket 12 (listItem)

ROOT __Item{12}ᐸ61ᐳ[62]"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12,__Item50,PgSelectSingle51 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{12}ᐸfrmcdc_compoundTypeᐳ[51]"):::bucket + class Bucket12,__Item62 bucket12 + Bucket13("Bucket 13 (listItem)

ROOT __Item{13}ᐸ63ᐳ[64]"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13,PgClassExpression52,PgClassExpression53,PgClassExpression54,PgClassExpression55,PgClassExpression56,PgClassExpression57,PgClassExpression58 bucket13 - Bucket14("Bucket 14 (listItem)

ROOT __Item{14}ᐸ59ᐳ[60]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,__Item60 bucket14 - Bucket15("Bucket 15 (listItem)

ROOT __Item{15}ᐸ61ᐳ[62]"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15,__Item62 bucket15 + class Bucket13,__Item64 bucket13 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 & Bucket12 & Bucket14 & Bucket15 - Bucket10 --> Bucket11 - Bucket12 --> Bucket13 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 & Bucket11 & Bucket12 & Bucket13 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/badlyBehavedFunction.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/badlyBehavedFunction.mermaid index 0199b77086..ec339063fc 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/badlyBehavedFunction.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/badlyBehavedFunction.mermaid @@ -9,87 +9,73 @@ graph TD %% plan dependencies + PgSelect12[["PgSelect[12∈0] ➊
ᐸbadly_behaved_functionᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection11{{"Connection[11∈0] ➊
ᐸ7ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect12 + Connection11 --> PgSelect12 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + __ListTransform23[["__ListTransform[23∈0] ➊
ᐸeach:22ᐳ"]]:::plan + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelectRows13 & PgSelect12 --> __ListTransform23 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection11{{"Connection[11∈0] ➊
ᐸ7ᐳ"}}:::plan - Constant16{{"Constant[16∈0] ➊
ᐸ'people'ᐳ"}}:::plan - PgSelect12[["PgSelect[12∈1] ➊
ᐸbadly_behaved_functionᐳ"]]:::plan - Object10 & Connection11 --> PgSelect12 - __ListTransform23[["__ListTransform[23∈1] ➊
ᐸeach:22ᐳ"]]:::plan - PgSelectRows13[["PgSelectRows[13∈1] ➊"]]:::plan - PgSelectRows13 & PgSelect12 --> __ListTransform23 PgSelect12 --> PgSelectRows13 - Access30{{"Access[30∈1] ➊
ᐸ12.cursorDetailsᐳ"}}:::plan + Access30{{"Access[30∈0] ➊
ᐸ12.cursorDetailsᐳ"}}:::plan PgSelect12 --> Access30 - __Item14[/"__Item[14∈2]
ᐸ13ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + Constant16{{"Constant[16∈0] ➊
ᐸ'people'ᐳ"}}:::plan + List18{{"List[18∈1]
ᐸ16,17ᐳ"}}:::plan + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__badly_be...ion__.”id”ᐳ"}}:::plan + Constant16 & PgClassExpression17 --> List18 + __Item14[/"__Item[14∈1]
ᐸ13ᐳ"\]:::itemplan PgSelectRows13 ==> __Item14 - PgSelectSingle15{{"PgSelectSingle[15∈2]
ᐸbadly_behaved_functionᐳ"}}:::plan + PgSelectSingle15{{"PgSelectSingle[15∈1]
ᐸbadly_behaved_functionᐳ"}}:::plan __Item14 --> PgSelectSingle15 - List18{{"List[18∈3]
ᐸ16,17ᐳ"}}:::plan - PgClassExpression17{{"PgClassExpression[17∈3]
ᐸ__badly_be...ion__.”id”ᐳ"}}:::plan - Constant16 & PgClassExpression17 --> List18 PgSelectSingle15 --> PgClassExpression17 - Lambda19{{"Lambda[19∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda19{{"Lambda[19∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan List18 --> Lambda19 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ”c”.”perso...unction__)ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ”c”.”perso...unction__)ᐳ"}}:::plan PgSelectSingle15 --> PgClassExpression21 - __Item25[/"__Item[25∈4]
ᐸ13ᐳ"\]:::itemplan + __Item25[/"__Item[25∈2]
ᐸ13ᐳ"\]:::itemplan PgSelectRows13 -.-> __Item25 - PgSelectSingle26{{"PgSelectSingle[26∈4]
ᐸbadly_behaved_functionᐳ"}}:::plan + PgSelectSingle26{{"PgSelectSingle[26∈2]
ᐸbadly_behaved_functionᐳ"}}:::plan __Item25 --> PgSelectSingle26 - Edge29{{"Edge[29∈5]"}}:::plan - PgSelectSingle28{{"PgSelectSingle[28∈5]
ᐸbadly_behaved_functionᐳ"}}:::plan - PgCursor31{{"PgCursor[31∈5]"}}:::plan - PgSelectSingle28 & PgCursor31 & Connection11 --> Edge29 + Edge29{{"Edge[29∈3]"}}:::plan + PgSelectSingle28{{"PgSelectSingle[28∈3]
ᐸbadly_behaved_functionᐳ"}}:::plan + PgCursor31{{"PgCursor[31∈3]"}}:::plan + PgCursor31 -->|rejectNull| Edge29 + PgSelectSingle28 & Connection11 --> Edge29 PgSelectSingle28 & Access30 --> PgCursor31 - __Item27[/"__Item[27∈5]
ᐸ23ᐳ"\]:::itemplan + List34{{"List[34∈3]
ᐸ16,33ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈3]
ᐸ__badly_be...ion__.”id”ᐳ"}}:::plan + Constant16 & PgClassExpression33 --> List34 + __Item27[/"__Item[27∈3]
ᐸ23ᐳ"\]:::itemplan __ListTransform23 ==> __Item27 __Item27 --> PgSelectSingle28 - List34{{"List[34∈7]
ᐸ16,33ᐳ"}}:::plan - PgClassExpression33{{"PgClassExpression[33∈7]
ᐸ__badly_be...ion__.”id”ᐳ"}}:::plan - Constant16 & PgClassExpression33 --> List34 PgSelectSingle28 --> PgClassExpression33 - Lambda35{{"Lambda[35∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda35{{"Lambda[35∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan List34 --> Lambda35 - PgClassExpression37{{"PgClassExpression[37∈7]
ᐸ”c”.”perso...unction__)ᐳ"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈3]
ᐸ”c”.”perso...unction__)ᐳ"}}:::plan PgSelectSingle28 --> PgClassExpression37 %% define steps subgraph "Buckets for queries/v4/badlyBehavedFunction" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 16, 10, 11
2: PgSelect[12]
ᐳ: Access[30]
3: PgSelectRows[13]
4: __ListTransform[23]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access8,Access9,Object10,Connection11,Constant16 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 10, 11, 16

ROOT Connectionᐸ7ᐳ[11]
1: PgSelect[12]
ᐳ: Access[30]
2: PgSelectRows[13]
3: __ListTransform[23]"):::bucket + class Bucket0,__Value2,__Value4,Access8,Access9,Object10,Connection11,PgSelect12,PgSelectRows13,Constant16,__ListTransform23,Access30 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 16

ROOT __Item{1}ᐸ13ᐳ[14]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect12,PgSelectRows13,__ListTransform23,Access30 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 16

ROOT __Item{2}ᐸ13ᐳ[14]"):::bucket + class Bucket1,__Item14,PgSelectSingle15,PgClassExpression17,List18,Lambda19,PgClassExpression21 bucket1 + Bucket2("Bucket 2 (subroutine)

ROOT PgSelectSingle{2}ᐸbadly_behaved_functionᐳ[26]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item14,PgSelectSingle15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 16

ROOT PgSelectSingle{2}ᐸbadly_behaved_functionᐳ[15]"):::bucket + class Bucket2,__Item25,PgSelectSingle26 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 11, 30, 16

ROOT __Item{3}ᐸ23ᐳ[27]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression17,List18,Lambda19,PgClassExpression21 bucket3 - Bucket4("Bucket 4 (subroutine)

ROOT PgSelectSingle{4}ᐸbadly_behaved_functionᐳ[26]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item25,PgSelectSingle26 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 11, 30, 16

ROOT __Item{5}ᐸ23ᐳ[27]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item27,PgSelectSingle28,Edge29,PgCursor31 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 29, 28, 16, 31

ROOT Edge{5}[29]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 28, 16

ROOT PgSelectSingle{5}ᐸbadly_behaved_functionᐳ[28]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression33,List34,Lambda35,PgClassExpression37 bucket7 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 & Bucket4 & Bucket5 - Bucket2 --> Bucket3 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 + class Bucket3,__Item27,PgSelectSingle28,Edge29,PgCursor31,PgClassExpression33,List34,Lambda35,PgClassExpression37 bucket3 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/bigint.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/bigint.mermaid index e98fa2c94a..ed610bad9e 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/bigint.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/bigint.mermaid @@ -25,33 +25,14 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸrange_testᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__range_test__.”int8”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__range_test__.”int8”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - Access15{{"Access[15∈2] ➊
ᐸ14.startᐳ"}}:::plan - PgClassExpression14 --> Access15 - Access18{{"Access[18∈2] ➊
ᐸ14.endᐳ"}}:::plan - PgClassExpression14 --> Access18 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/v4/bigint" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 21, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 21, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant21 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13

ROOT PgSelectSingleᐸrange_testᐳ[13]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgClassExpression{1}ᐸ__range_test__.”int8”ᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,Access15,Access18 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 14

ROOT Access{2}ᐸ14.startᐳ[15]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 18, 14

ROOT Access{2}ᐸ14.endᐳ[18]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4 bucket4 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,Constant21 bucket0 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/classic-ids.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/classic-ids.mermaid index 06f7707684..ff7e226ccd 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/classic-ids.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/classic-ids.mermaid @@ -9,73 +9,67 @@ graph TD %% plan dependencies - Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access12 & Access13 --> Object14 + PgSelect17[["PgSelect[17∈0] ➊
ᐸpostᐳ"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + ApplyInput16{{"ApplyInput[16∈0] ➊"}}:::plan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + ApplyInput16 -->|rejectNull| PgSelect17 + Object13 & Connection14 --> PgSelect17 + PgSelect34[["PgSelect[34∈0] ➊
ᐸedge_caseᐳ"]]:::plan + ApplyInput33{{"ApplyInput[33∈0] ➊"}}:::plan + Connection31{{"Connection[31∈0] ➊
ᐸ29ᐳ"}}:::plan + ApplyInput33 -->|rejectNull| PgSelect34 + Object13 & Connection31 --> PgSelect34 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant39{{"Constant[39∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant39 --> __InputObject8 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 + __InputObject27{{"__InputObject[27∈0] ➊"}}:::plan + Constant40{{"Constant[40∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant40 --> __InputObject27 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access11 __Value2 --> Access12 - __Value2 --> Access13 + __InputObject8 --> ApplyInput16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 + __InputObject27 --> ApplyInput33 + PgSelectRows35[["PgSelectRows[35∈0] ➊"]]:::plan + PgSelect34 --> PgSelectRows35 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant20{{"Constant[20∈0] ➊
ᐸ'posts'ᐳ"}}:::plan - Connection31{{"Connection[31∈0] ➊
ᐸ29ᐳ"}}:::plan - Constant37{{"Constant[37∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant38{{"Constant[38∈0] ➊
ᐸ2ᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸpostᐳ"]]:::plan - Object14 & Constant37 & Connection15 --> PgSelect16 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸpostᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - List22{{"List[22∈3]
ᐸ20,21ᐳ"}}:::plan - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__post__.”id”ᐳ"}}:::plan - Constant20 & PgClassExpression21 --> List22 - PgSelectSingle19 --> PgClassExpression21 - Lambda23{{"Lambda[23∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan - List22 --> Lambda23 - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression24 - PgSelect32[["PgSelect[32∈4] ➊
ᐸedge_caseᐳ"]]:::plan - Object14 & Constant38 & Connection31 --> PgSelect32 - PgSelectRows33[["PgSelectRows[33∈4] ➊"]]:::plan - PgSelect32 --> PgSelectRows33 - __Item34[/"__Item[34∈5]
ᐸ33ᐳ"\]:::itemplan - PgSelectRows33 ==> __Item34 - PgSelectSingle35{{"PgSelectSingle[35∈5]
ᐸedge_caseᐳ"}}:::plan - __Item34 --> PgSelectSingle35 - PgClassExpression36{{"PgClassExpression[36∈6]
ᐸ__edge_case__.”row_id”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression36 + Constant21{{"Constant[21∈0] ➊
ᐸ'posts'ᐳ"}}:::plan + List23{{"List[23∈1]
ᐸ21,22ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__post__.”id”ᐳ"}}:::plan + Constant21 & PgClassExpression22 --> List23 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸpostᐳ"}}:::plan + __Item19 --> PgSelectSingle20 + PgSelectSingle20 --> PgClassExpression22 + Lambda24{{"Lambda[24∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List23 --> Lambda24 + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression25 + __Item36[/"__Item[36∈2]
ᐸ35ᐳ"\]:::itemplan + PgSelectRows35 ==> __Item36 + PgSelectSingle37{{"PgSelectSingle[37∈2]
ᐸedge_caseᐳ"}}:::plan + __Item36 --> PgSelectSingle37 + PgClassExpression38{{"PgClassExpression[38∈2]
ᐸ__edge_case__.”row_id”ᐳ"}}:::plan + PgSelectSingle37 --> PgClassExpression38 %% define steps subgraph "Buckets for queries/v4/classic-ids" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 11, 12, 21, 39, 40, 8, 13, 14, 16, 27, 31, 33
2: PgSelect[17], PgSelect[34]
3: PgSelectRows[18], PgSelectRows[35]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Connection15,Constant20,Connection31,Constant37,Constant38 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 37, 15, 20

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[16]
2: PgSelectRows[17]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject8,Access11,Access12,Object13,Connection14,ApplyInput16,PgSelect17,PgSelectRows18,Constant21,__InputObject27,Connection31,ApplyInput33,PgSelect34,PgSelectRows35,Constant39,Constant40 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21

ROOT __Item{1}ᐸ18ᐳ[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 20

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket + class Bucket1,__Item19,PgSelectSingle20,PgClassExpression22,List23,Lambda24,PgClassExpression25 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ35ᐳ[36]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19, 20

ROOT PgSelectSingle{2}ᐸpostᐳ[19]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression21,List22,Lambda23,PgClassExpression24 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 14, 38, 31

ROOT Connectionᐸ29ᐳ[31]
1: PgSelect[32]
2: PgSelectRows[33]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect32,PgSelectRows33 bucket4 - Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ33ᐳ[34]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item34,PgSelectSingle35 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 35

ROOT PgSelectSingle{5}ᐸedge_caseᐳ[35]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression36 bucket6 - Bucket0 --> Bucket1 & Bucket4 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 + class Bucket2,__Item36,PgSelectSingle37,PgClassExpression38 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/composite_domains.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/composite_domains.mermaid index 6f45d9e564..97f1ca8d0c 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/composite_domains.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/composite_domains.mermaid @@ -9,121 +9,118 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸpostsᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸpostsᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgFromExpression25{{"PgFromExpression[25∈0] ➊"}}:::plan + PgFromExpression38{{"PgFromExpression[38∈0] ➊"}}:::plan + PgFromExpression47{{"PgFromExpression[47∈0] ➊"}}:::plan + PgFromExpression60{{"PgFromExpression[60∈0] ➊"}}:::plan + PgSelect21[["PgSelect[21∈1]
ᐸfrmcdc_userUpdateContentᐳ"]]:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__posts__.”content”ᐳ"}}:::plan + Object11 & PgClassExpression20 & PgFromExpression25 --> PgSelect21 + PgSelect45[["PgSelect[45∈1]
ᐸfrmcdc_userUpdateContentᐳ"]]:::plan + PgClassExpression44{{"PgClassExpression[44∈1]
ᐸ__posts__....d_content”ᐳ"}}:::plan + Object11 & PgClassExpression44 & PgFromExpression47 --> PgSelect45 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸpostsᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸpostsᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgSelect21[["PgSelect[21∈3]
ᐸfrmcdc_userUpdateContentᐳ"]]:::plan - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__posts__.”content”ᐳ"}}:::plan - Object12 & PgClassExpression20 --> PgSelect21 - PgSelect43[["PgSelect[43∈3]
ᐸfrmcdc_userUpdateContentᐳ"]]:::plan - PgClassExpression42{{"PgClassExpression[42∈3]
ᐸ__posts__....d_content”ᐳ"}}:::plan - Object12 & PgClassExpression42 --> PgSelect43 - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__posts__.”id”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__posts__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__posts__.”user_id”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__posts__.”user_id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression19 PgSelectSingle17 --> PgClassExpression20 - First25{{"First[25∈3]"}}:::plan - PgSelectRows26[["PgSelectRows[26∈3]"]]:::plan - PgSelectRows26 --> First25 - PgSelect21 --> PgSelectRows26 - PgSelectSingle27{{"PgSelectSingle[27∈3]
ᐸfrmcdc_userUpdateContentᐳ"}}:::plan - First25 --> PgSelectSingle27 - PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ__frmcdc_u....”img_url”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgClassExpression29{{"PgClassExpression[29∈3]
ᐸ__frmcdc_u...__.”lines”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression29 - PgSelectSingle17 --> PgClassExpression42 - PgSelectRows45[["PgSelectRows[45∈3]"]]:::plan - PgSelect43 --> PgSelectRows45 - PgClassExpression62{{"PgClassExpression[62∈3]
ᐸ__posts__.”created_at”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression62 - PgSelect33[["PgSelect[33∈5]
ᐸfrmcdc_userUpdateContentLineNodeᐳ"]]:::plan - __Item32[/"__Item[32∈5]
ᐸ29ᐳ"\]:::itemplan - Object12 & __Item32 --> PgSelect33 - PgClassExpression29 ==> __Item32 - PgSelectRows37[["PgSelectRows[37∈5]"]]:::plan - PgSelect33 --> PgSelectRows37 - __Item38[/"__Item[38∈6]
ᐸ37ᐳ"\]:::itemplan - PgSelectRows37 ==> __Item38 - PgSelectSingle39{{"PgSelectSingle[39∈6]
ᐸfrmcdc_userUpdateContentLineNodeᐳ"}}:::plan - __Item38 --> PgSelectSingle39 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__frmcdc_u...node_type”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈6]
ᐸ__frmcdc_u...node_text”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression41 - __Item46[/"__Item[46∈7]
ᐸ45ᐳ"\]:::itemplan - PgSelectRows45 ==> __Item46 - PgSelectSingle47{{"PgSelectSingle[47∈7]
ᐸfrmcdc_userUpdateContentᐳ"}}:::plan - __Item46 --> PgSelectSingle47 - PgClassExpression48{{"PgClassExpression[48∈7]
ᐸ__frmcdc_u....”img_url”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression48 - PgClassExpression49{{"PgClassExpression[49∈7]
ᐸ__frmcdc_u...__.”lines”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression49 - PgSelect53[["PgSelect[53∈9]
ᐸfrmcdc_userUpdateContentLineNodeᐳ"]]:::plan - __Item52[/"__Item[52∈9]
ᐸ49ᐳ"\]:::itemplan - Object12 & __Item52 --> PgSelect53 - PgClassExpression49 ==> __Item52 - PgSelectRows57[["PgSelectRows[57∈9]"]]:::plan - PgSelect53 --> PgSelectRows57 - __Item58[/"__Item[58∈10]
ᐸ57ᐳ"\]:::itemplan - PgSelectRows57 ==> __Item58 - PgSelectSingle59{{"PgSelectSingle[59∈10]
ᐸfrmcdc_userUpdateContentLineNodeᐳ"}}:::plan - __Item58 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈10]
ᐸ__frmcdc_u...node_type”ᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression60 - PgClassExpression61{{"PgClassExpression[61∈10]
ᐸ__frmcdc_u...node_text”ᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression61 + First26{{"First[26∈1]"}}:::plan + PgSelectRows27[["PgSelectRows[27∈1]"]]:::plan + PgSelectRows27 --> First26 + PgSelect21 --> PgSelectRows27 + PgSelectSingle28{{"PgSelectSingle[28∈1]
ᐸfrmcdc_userUpdateContentᐳ"}}:::plan + First26 --> PgSelectSingle28 + PgClassExpression29{{"PgClassExpression[29∈1]
ᐸ__frmcdc_u....”img_url”ᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression29 + PgClassExpression30{{"PgClassExpression[30∈1]
ᐸ__frmcdc_u...__.”lines”ᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression30 + PgSelectSingle17 --> PgClassExpression44 + PgSelectRows48[["PgSelectRows[48∈1]"]]:::plan + PgSelect45 --> PgSelectRows48 + PgClassExpression66{{"PgClassExpression[66∈1]
ᐸ__posts__.”created_at”ᐳ"}}:::plan + PgSelectSingle17 --> PgClassExpression66 + PgSelect34[["PgSelect[34∈3]
ᐸfrmcdc_userUpdateContentLineNodeᐳ"]]:::plan + __Item33[/"__Item[33∈3]
ᐸ30ᐳ"\]:::itemplan + Object11 & __Item33 & PgFromExpression38 --> PgSelect34 + PgClassExpression30 ==> __Item33 + PgSelectRows39[["PgSelectRows[39∈3]"]]:::plan + PgSelect34 --> PgSelectRows39 + __Item40[/"__Item[40∈4]
ᐸ39ᐳ"\]:::itemplan + PgSelectRows39 ==> __Item40 + PgSelectSingle41{{"PgSelectSingle[41∈4]
ᐸfrmcdc_userUpdateContentLineNodeᐳ"}}:::plan + __Item40 --> PgSelectSingle41 + PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__frmcdc_u...node_type”ᐳ"}}:::plan + PgSelectSingle41 --> PgClassExpression42 + PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__frmcdc_u...node_text”ᐳ"}}:::plan + PgSelectSingle41 --> PgClassExpression43 + __Item49[/"__Item[49∈5]
ᐸ48ᐳ"\]:::itemplan + PgSelectRows48 ==> __Item49 + PgSelectSingle50{{"PgSelectSingle[50∈5]
ᐸfrmcdc_userUpdateContentᐳ"}}:::plan + __Item49 --> PgSelectSingle50 + PgClassExpression51{{"PgClassExpression[51∈5]
ᐸ__frmcdc_u....”img_url”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression51 + PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__frmcdc_u...__.”lines”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression52 + PgSelect56[["PgSelect[56∈7]
ᐸfrmcdc_userUpdateContentLineNodeᐳ"]]:::plan + __Item55[/"__Item[55∈7]
ᐸ52ᐳ"\]:::itemplan + Object11 & __Item55 & PgFromExpression60 --> PgSelect56 + PgClassExpression52 ==> __Item55 + PgSelectRows61[["PgSelectRows[61∈7]"]]:::plan + PgSelect56 --> PgSelectRows61 + __Item62[/"__Item[62∈8]
ᐸ61ᐳ"\]:::itemplan + PgSelectRows61 ==> __Item62 + PgSelectSingle63{{"PgSelectSingle[63∈8]
ᐸfrmcdc_userUpdateContentLineNodeᐳ"}}:::plan + __Item62 --> PgSelectSingle63 + PgClassExpression64{{"PgClassExpression[64∈8]
ᐸ__frmcdc_u...node_type”ᐳ"}}:::plan + PgSelectSingle63 --> PgClassExpression64 + PgClassExpression65{{"PgClassExpression[65∈8]
ᐸ__frmcdc_u...node_text”ᐳ"}}:::plan + PgSelectSingle63 --> PgClassExpression65 %% define steps subgraph "Buckets for queries/v4/composite_domains" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 25, 38, 47, 60, 11, 12
2: PgSelect[14]
3: PgSelectRows[15]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,PgFromExpression25,PgFromExpression38,PgFromExpression47,PgFromExpression60 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 25, 47, 38, 60

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 18, 19, 20, 44, 66
2: PgSelect[21], PgSelect[45]
3: PgSelectRows[27], PgSelectRows[48]
ᐳ: 26, 28, 29, 30"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 12

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 12

ROOT PgSelectSingle{2}ᐸpostsᐳ[17]
1:
ᐳ: 18, 19, 20, 42, 62
2: PgSelect[21], PgSelect[43]
3: PgSelectRows[26], PgSelectRows[45]
ᐳ: 25, 27, 28, 29"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgSelect21,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression29,PgClassExpression30,PgClassExpression44,PgSelect45,PgSelectRows48,PgClassExpression66 bucket1 + Bucket3("Bucket 3 (listItem)
Deps: 11, 38

ROOT __Item{3}ᐸ30ᐳ[33]
1: PgSelect[34]
2: PgSelectRows[39]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgSelect21,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression28,PgClassExpression29,PgClassExpression42,PgSelect43,PgSelectRows45,PgClassExpression62 bucket3 - Bucket5("Bucket 5 (listItem)
Deps: 12

ROOT __Item{5}ᐸ29ᐳ[32]
1: PgSelect[33]
2: PgSelectRows[37]"):::bucket + class Bucket3,__Item33,PgSelect34,PgSelectRows39 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ39ᐳ[40]"):::bucket + classDef bucket4 stroke:#0000ff + class Bucket4,__Item40,PgSelectSingle41,PgClassExpression42,PgClassExpression43 bucket4 + Bucket5("Bucket 5 (listItem)
Deps: 11, 60

ROOT __Item{5}ᐸ48ᐳ[49]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item32,PgSelect33,PgSelectRows37 bucket5 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ37ᐳ[38]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,__Item38,PgSelectSingle39,PgClassExpression40,PgClassExpression41 bucket6 - Bucket7("Bucket 7 (listItem)
Deps: 12

ROOT __Item{7}ᐸ45ᐳ[46]"):::bucket + class Bucket5,__Item49,PgSelectSingle50,PgClassExpression51,PgClassExpression52 bucket5 + Bucket7("Bucket 7 (listItem)
Deps: 11, 60

ROOT __Item{7}ᐸ52ᐳ[55]
1: PgSelect[56]
2: PgSelectRows[61]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,__Item46,PgSelectSingle47,PgClassExpression48,PgClassExpression49 bucket7 - Bucket9("Bucket 9 (listItem)
Deps: 12

ROOT __Item{9}ᐸ49ᐳ[52]
1: PgSelect[53]
2: PgSelectRows[57]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,__Item52,PgSelect53,PgSelectRows57 bucket9 - Bucket10("Bucket 10 (listItem)

ROOT __Item{10}ᐸ57ᐳ[58]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,__Item58,PgSelectSingle59,PgClassExpression60,PgClassExpression61 bucket10 + class Bucket7,__Item55,PgSelect56,PgSelectRows61 bucket7 + Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ61ᐳ[62]"):::bucket + classDef bucket8 stroke:#dda0dd + class Bucket8,__Item62,PgSelectSingle63,PgClassExpression64,PgClassExpression65 bucket8 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket9 - Bucket9 --> Bucket10 + Bucket1 --> Bucket3 & Bucket5 + Bucket3 --> Bucket4 + Bucket5 --> Bucket7 + Bucket7 --> Bucket8 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/connections-blankcursor.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/connections-blankcursor.mermaid index df3dd08f05..7f0c8bd5a4 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/connections-blankcursor.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/connections-blankcursor.mermaid @@ -9,166 +9,153 @@ graph TD %% plan dependencies - Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access12 & Access13 --> Object14 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant103{{"Constant[103∈0] ➊
ᐸ2ᐳ"}}:::plan - Lambda16{{"Lambda[16∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant103 & Lambda16 --> Connection15 - Connection62{{"Connection[62∈0] ➊
ᐸ60ᐳ"}}:::plan - Lambda63{{"Lambda[63∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant103 & Lambda63 --> Connection62 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access12 - __Value2 --> Access13 - Constant104{{"Constant[104∈0] ➊
ᐸ''ᐳ"}}:::plan - Constant104 --> Lambda16 - Constant105{{"Constant[105∈0] ➊
ᐸ'27'ᐳ"}}:::plan - Constant105 --> Lambda63 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant7{{"Constant[7∈0] ➊
ᐸundefinedᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1] ➊
ᐸperson+1ᐳ"]]:::plan - Object14 & Connection15 & Lambda16 & Constant103 --> PgSelect17 - Object38{{"Object[38∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access33{{"Access[33∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant103 & Constant7 & Constant7 & Access33 --> Object38 - Object34{{"Object[34∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant103 & Constant7 & Access33 --> Object34 - PgCursor24{{"PgCursor[24∈1] ➊"}}:::plan - PgSelectSingle22{{"PgSelectSingle[22∈1] ➊
ᐸpersonᐳ"}}:::plan - Access23{{"Access[23∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelect17[["PgSelect[17∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + Lambda15{{"Lambda[15∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant101{{"Constant[101∈0] ➊
ᐸ2ᐳ"}}:::plan + Object13 -->|rejectNull| PgSelect17 + Connection14 & Lambda15 & Constant101 --> PgSelect17 + PgSelect63[["PgSelect[63∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection60{{"Connection[60∈0] ➊
ᐸ58ᐳ"}}:::plan + Lambda61{{"Lambda[61∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Object13 -->|rejectNull| PgSelect63 + Connection60 & Lambda61 & Constant101 --> PgSelect63 + Constant101 & Lambda15 --> Connection14 + Object37{{"Object[37∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access32{{"Access[32∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Constant101 & Access32 --> Object37 + Constant101 & Lambda61 --> Connection60 + Object83{{"Object[83∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access78{{"Access[78∈0] ➊
ᐸ63.hasMoreᐳ"}}:::plan + Constant101 & Access78 --> Object83 + Object33{{"Object[33∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant101 & Access32 --> Object33 + Object79{{"Object[79∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant101 & Access78 --> Object79 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 + PgCursor24{{"PgCursor[24∈0] ➊"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈0] ➊
ᐸpersonᐳ"}}:::plan + Access23{{"Access[23∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan PgSelectSingle22 & Access23 --> PgCursor24 - PgCursor30{{"PgCursor[30∈1] ➊"}}:::plan - PgSelectSingle28{{"PgSelectSingle[28∈1] ➊
ᐸpersonᐳ"}}:::plan + PgCursor30{{"PgCursor[30∈0] ➊"}}:::plan + PgSelectSingle28{{"PgSelectSingle[28∈0] ➊
ᐸpersonᐳ"}}:::plan PgSelectSingle28 & Access23 --> PgCursor30 - PgSelect40[["PgSelect[40∈1] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object14 & Connection15 --> PgSelect40 - PgPageInfo18{{"PgPageInfo[18∈1] ➊"}}:::plan - Connection15 --> PgPageInfo18 - First20{{"First[20∈1] ➊"}}:::plan - PgSelectRows21[["PgSelectRows[21∈1] ➊"]]:::plan + PgSelect39[["PgSelect[39∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object13 -->|rejectNull| PgSelect39 + Connection14 --> PgSelect39 + PgCursor70{{"PgCursor[70∈0] ➊"}}:::plan + PgSelectSingle68{{"PgSelectSingle[68∈0] ➊
ᐸpersonᐳ"}}:::plan + Access69{{"Access[69∈0] ➊
ᐸ63.cursorDetailsᐳ"}}:::plan + PgSelectSingle68 & Access69 --> PgCursor70 + PgCursor76{{"PgCursor[76∈0] ➊"}}:::plan + PgSelectSingle74{{"PgSelectSingle[74∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle74 & Access69 --> PgCursor76 + PgSelect85[["PgSelect[85∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object13 -->|rejectNull| PgSelect85 + Connection60 --> PgSelect85 + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access11 + __Value2 --> Access12 + Constant102{{"Constant[102∈0] ➊
ᐸ''ᐳ"}}:::plan + Constant102 --> Lambda15 + PgPageInfo18{{"PgPageInfo[18∈0] ➊"}}:::plan + Connection14 --> PgPageInfo18 + First20{{"First[20∈0] ➊"}}:::plan + PgSelectRows21[["PgSelectRows[21∈0] ➊"]]:::plan PgSelectRows21 --> First20 PgSelect17 --> PgSelectRows21 First20 --> PgSelectSingle22 PgSelect17 --> Access23 - Last26{{"Last[26∈1] ➊"}}:::plan + Last26{{"Last[26∈0] ➊"}}:::plan PgSelectRows21 --> Last26 Last26 --> PgSelectSingle28 - PgSelect17 --> Access33 - Lambda35{{"Lambda[35∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object34 --> Lambda35 - Lambda39{{"Lambda[39∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object38 --> Lambda39 - First41{{"First[41∈1] ➊"}}:::plan - PgSelectRows42[["PgSelectRows[42∈1] ➊"]]:::plan - PgSelectRows42 --> First41 - PgSelect40 --> PgSelectRows42 - PgSelectSingle43{{"PgSelectSingle[43∈1] ➊
ᐸpersonᐳ"}}:::plan - First41 --> PgSelectSingle43 - PgClassExpression44{{"PgClassExpression[44∈1] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression44 - __Item47[/"__Item[47∈2]
ᐸ21ᐳ"\]:::itemplan - PgSelectRows21 ==> __Item47 - PgSelectSingle48{{"PgSelectSingle[48∈2]
ᐸpersonᐳ"}}:::plan - __Item47 --> PgSelectSingle48 - PgCursor50{{"PgCursor[50∈3]"}}:::plan - PgSelectSingle48 & Access23 --> PgCursor50 - PgClassExpression51{{"PgClassExpression[51∈3]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle48 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈3]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle48 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈3]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle48 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈3]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle48 --> PgClassExpression54 - PgClassExpression55{{"PgClassExpression[55∈3]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle48 --> PgClassExpression55 - PgSelect64[["PgSelect[64∈4] ➊
ᐸperson+1ᐳ"]]:::plan - Object14 & Connection62 & Lambda63 & Constant103 --> PgSelect64 - Object85{{"Object[85∈4] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access80{{"Access[80∈4] ➊
ᐸ64.hasMoreᐳ"}}:::plan - Constant103 & Constant7 & Constant7 & Access80 --> Object85 - Object81{{"Object[81∈4] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant103 & Constant7 & Access80 --> Object81 - PgCursor71{{"PgCursor[71∈4] ➊"}}:::plan - PgSelectSingle69{{"PgSelectSingle[69∈4] ➊
ᐸpersonᐳ"}}:::plan - Access70{{"Access[70∈4] ➊
ᐸ64.cursorDetailsᐳ"}}:::plan - PgSelectSingle69 & Access70 --> PgCursor71 - PgCursor77{{"PgCursor[77∈4] ➊"}}:::plan - PgSelectSingle75{{"PgSelectSingle[75∈4] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle75 & Access70 --> PgCursor77 - PgSelect87[["PgSelect[87∈4] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object14 & Connection62 --> PgSelect87 - PgPageInfo65{{"PgPageInfo[65∈4] ➊"}}:::plan - Connection62 --> PgPageInfo65 - First67{{"First[67∈4] ➊"}}:::plan - PgSelectRows68[["PgSelectRows[68∈4] ➊"]]:::plan - PgSelectRows68 --> First67 - PgSelect64 --> PgSelectRows68 - First67 --> PgSelectSingle69 - PgSelect64 --> Access70 - Last73{{"Last[73∈4] ➊"}}:::plan - PgSelectRows68 --> Last73 - Last73 --> PgSelectSingle75 - PgSelect64 --> Access80 - Lambda82{{"Lambda[82∈4] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object81 --> Lambda82 - Lambda86{{"Lambda[86∈4] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object85 --> Lambda86 - First88{{"First[88∈4] ➊"}}:::plan - PgSelectRows89[["PgSelectRows[89∈4] ➊"]]:::plan - PgSelectRows89 --> First88 - PgSelect87 --> PgSelectRows89 - PgSelectSingle90{{"PgSelectSingle[90∈4] ➊
ᐸpersonᐳ"}}:::plan - First88 --> PgSelectSingle90 - PgClassExpression91{{"PgClassExpression[91∈4] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression91 - __Item94[/"__Item[94∈5]
ᐸ68ᐳ"\]:::itemplan - PgSelectRows68 ==> __Item94 - PgSelectSingle95{{"PgSelectSingle[95∈5]
ᐸpersonᐳ"}}:::plan - __Item94 --> PgSelectSingle95 - PgCursor97{{"PgCursor[97∈6]"}}:::plan - PgSelectSingle95 & Access70 --> PgCursor97 - PgClassExpression98{{"PgClassExpression[98∈6]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle95 --> PgClassExpression98 - PgClassExpression99{{"PgClassExpression[99∈6]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle95 --> PgClassExpression99 - PgClassExpression100{{"PgClassExpression[100∈6]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle95 --> PgClassExpression100 - PgClassExpression101{{"PgClassExpression[101∈6]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle95 --> PgClassExpression101 - PgClassExpression102{{"PgClassExpression[102∈6]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle95 --> PgClassExpression102 + PgSelect17 --> Access32 + Lambda34{{"Lambda[34∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object33 --> Lambda34 + Lambda38{{"Lambda[38∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object37 --> Lambda38 + First40{{"First[40∈0] ➊"}}:::plan + PgSelectRows41[["PgSelectRows[41∈0] ➊"]]:::plan + PgSelectRows41 --> First40 + PgSelect39 --> PgSelectRows41 + PgSelectSingle42{{"PgSelectSingle[42∈0] ➊
ᐸpersonᐳ"}}:::plan + First40 --> PgSelectSingle42 + PgClassExpression43{{"PgClassExpression[43∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle42 --> PgClassExpression43 + Constant103{{"Constant[103∈0] ➊
ᐸ'27'ᐳ"}}:::plan + Constant103 --> Lambda61 + PgPageInfo64{{"PgPageInfo[64∈0] ➊"}}:::plan + Connection60 --> PgPageInfo64 + First66{{"First[66∈0] ➊"}}:::plan + PgSelectRows67[["PgSelectRows[67∈0] ➊"]]:::plan + PgSelectRows67 --> First66 + PgSelect63 --> PgSelectRows67 + First66 --> PgSelectSingle68 + PgSelect63 --> Access69 + Last72{{"Last[72∈0] ➊"}}:::plan + PgSelectRows67 --> Last72 + Last72 --> PgSelectSingle74 + PgSelect63 --> Access78 + Lambda80{{"Lambda[80∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object79 --> Lambda80 + Lambda84{{"Lambda[84∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object83 --> Lambda84 + First86{{"First[86∈0] ➊"}}:::plan + PgSelectRows87[["PgSelectRows[87∈0] ➊"]]:::plan + PgSelectRows87 --> First86 + PgSelect85 --> PgSelectRows87 + PgSelectSingle88{{"PgSelectSingle[88∈0] ➊
ᐸpersonᐳ"}}:::plan + First86 --> PgSelectSingle88 + PgClassExpression89{{"PgClassExpression[89∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle88 --> PgClassExpression89 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor49{{"PgCursor[49∈1]"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈1]
ᐸpersonᐳ"}}:::plan + PgSelectSingle47 & Access23 --> PgCursor49 + __Item46[/"__Item[46∈1]
ᐸ21ᐳ"\]:::itemplan + PgSelectRows21 ==> __Item46 + __Item46 --> PgSelectSingle47 + PgClassExpression50{{"PgClassExpression[50∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression50 + PgClassExpression51{{"PgClassExpression[51∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression51 + PgClassExpression52{{"PgClassExpression[52∈1]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression52 + PgClassExpression53{{"PgClassExpression[53∈1]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression53 + PgClassExpression54{{"PgClassExpression[54∈1]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression54 + PgCursor95{{"PgCursor[95∈2]"}}:::plan + PgSelectSingle93{{"PgSelectSingle[93∈2]
ᐸpersonᐳ"}}:::plan + PgSelectSingle93 & Access69 --> PgCursor95 + __Item92[/"__Item[92∈2]
ᐸ67ᐳ"\]:::itemplan + PgSelectRows67 ==> __Item92 + __Item92 --> PgSelectSingle93 + PgClassExpression96{{"PgClassExpression[96∈2]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle93 --> PgClassExpression96 + PgClassExpression97{{"PgClassExpression[97∈2]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle93 --> PgClassExpression97 + PgClassExpression98{{"PgClassExpression[98∈2]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle93 --> PgClassExpression98 + PgClassExpression99{{"PgClassExpression[99∈2]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle93 --> PgClassExpression99 + PgClassExpression100{{"PgClassExpression[100∈2]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle93 --> PgClassExpression100 %% define steps subgraph "Buckets for queries/v4/connections-blankcursor" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 11, 12, 101, 102, 103, 13, 15, 61, 14, 18, 60, 64
2: 17, 39, 63, 85
ᐳ: 23, 32, 33, 34, 37, 38, 69, 78, 79, 80, 83, 84
3: 21, 41, 67, 87
ᐳ: 20, 22, 24, 26, 28, 30, 40, 42, 43, 66, 68, 70, 72, 74, 76, 86, 88, 89"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant7,Access12,Access13,Object14,Connection15,Lambda16,Connection62,Lambda63,Constant103,Constant104,Constant105 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 15, 16, 103, 7

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[17], PgSelect[40]
ᐳ: 18, 23, 33, 34, 35, 38, 39
2: PgSelectRows[21], PgSelectRows[42]
ᐳ: 20, 22, 24, 26, 28, 30, 41, 43, 44"):::bucket + class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14,Lambda15,PgSelect17,PgPageInfo18,First20,PgSelectRows21,PgSelectSingle22,Access23,PgCursor24,Last26,PgSelectSingle28,PgCursor30,Access32,Object33,Lambda34,Object37,Lambda38,PgSelect39,First40,PgSelectRows41,PgSelectSingle42,PgClassExpression43,Connection60,Lambda61,PgSelect63,PgPageInfo64,First66,PgSelectRows67,PgSelectSingle68,Access69,PgCursor70,Last72,PgSelectSingle74,PgCursor76,Access78,Object79,Lambda80,Object83,Lambda84,PgSelect85,First86,PgSelectRows87,PgSelectSingle88,PgClassExpression89,Constant101,Constant102,Constant103 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 23

ROOT __Item{1}ᐸ21ᐳ[46]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgPageInfo18,First20,PgSelectRows21,PgSelectSingle22,Access23,PgCursor24,Last26,PgSelectSingle28,PgCursor30,Access33,Object34,Lambda35,Object38,Lambda39,PgSelect40,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 23

ROOT __Item{2}ᐸ21ᐳ[47]"):::bucket + class Bucket1,__Item46,PgSelectSingle47,PgCursor49,PgClassExpression50,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 69

ROOT __Item{2}ᐸ67ᐳ[92]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item47,PgSelectSingle48 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 48, 23

ROOT PgSelectSingle{2}ᐸpersonᐳ[48]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor50,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54,PgClassExpression55 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 14, 62, 63, 103, 7

ROOT Connectionᐸ60ᐳ[62]
1: PgSelect[64], PgSelect[87]
ᐳ: 65, 70, 80, 81, 82, 85, 86
2: PgSelectRows[68], PgSelectRows[89]
ᐳ: 67, 69, 71, 73, 75, 77, 88, 90, 91"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect64,PgPageInfo65,First67,PgSelectRows68,PgSelectSingle69,Access70,PgCursor71,Last73,PgSelectSingle75,PgCursor77,Access80,Object81,Lambda82,Object85,Lambda86,PgSelect87,First88,PgSelectRows89,PgSelectSingle90,PgClassExpression91 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 70

ROOT __Item{5}ᐸ68ᐳ[94]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item94,PgSelectSingle95 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 95, 70

ROOT PgSelectSingle{5}ᐸpersonᐳ[95]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgCursor97,PgClassExpression98,PgClassExpression99,PgClassExpression100,PgClassExpression101,PgClassExpression102 bucket6 - Bucket0 --> Bucket1 & Bucket4 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 + class Bucket2,__Item92,PgSelectSingle93,PgCursor95,PgClassExpression96,PgClassExpression97,PgClassExpression98,PgClassExpression99,PgClassExpression100 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/connections-condition-computed-column.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/connections-condition-computed-column.mermaid index 75c245d66c..a369d1914b 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/connections-condition-computed-column.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/connections-condition-computed-column.mermaid @@ -9,45 +9,42 @@ graph TD %% plan dependencies - Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access12 & Access13 --> Object14 + PgSelect17[["PgSelect[17∈0] ➊
ᐸpersonᐳ"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + ApplyInput16{{"ApplyInput[16∈0] ➊"}}:::plan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + ApplyInput16 -->|rejectNull| PgSelect17 + Object13 & Connection14 --> PgSelect17 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant23{{"Constant[23∈0] ➊
ᐸ'o1 Budd Deey'ᐳ"}}:::plan + Constant23 --> __InputObject8 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access11 __Value2 --> Access12 - __Value2 --> Access13 + __InputObject8 --> ApplyInput16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant22{{"Constant[22∈0] ➊
ᐸ'o1 Budd Deey'ᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸpersonᐳ"]]:::plan - Object14 & Constant22 & Connection15 --> PgSelect16 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸpersonᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression21 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸpersonᐳ"}}:::plan + __Item19 --> PgSelectSingle20 + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression21 + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression22 %% define steps subgraph "Buckets for queries/v4/connections-condition-computed-column" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 11, 12, 23, 8, 13, 14, 16
2: PgSelect[17]
3: PgSelectRows[18]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Connection15,Constant22 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 22, 15

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[16]
2: PgSelectRows[17]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject8,Access11,Access12,Object13,Connection14,ApplyInput16,PgSelect17,PgSelectRows18,Constant23 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ18ᐳ[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19

ROOT PgSelectSingle{2}ᐸpersonᐳ[19]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression20,PgClassExpression21 bucket3 + class Bucket1,__Item19,PgSelectSingle20,PgClassExpression21,PgClassExpression22 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/connections-order-computed-column.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/connections-order-computed-column.mermaid index 3192d98687..68318086a0 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/connections-order-computed-column.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/connections-order-computed-column.mermaid @@ -9,68 +9,54 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸpersonᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect25[["PgSelect[25∈0] ➊
ᐸpersonᐳ"]]:::plan + Connection23{{"Connection[23∈0] ➊
ᐸ21ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect25 + Connection23 --> PgSelect25 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Connection24{{"Connection[24∈0] ➊
ᐸ22ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸpersonᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + PgSelectRows26[["PgSelectRows[26∈0] ➊"]]:::plan + PgSelect25 --> PgSelectRows26 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸpersonᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸpersonᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__person__.”id”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__person__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression19 - PgSelect25[["PgSelect[25∈4] ➊
ᐸpersonᐳ"]]:::plan - Object12 & Connection24 --> PgSelect25 - PgSelectRows26[["PgSelectRows[26∈4] ➊"]]:::plan - PgSelect25 --> PgSelectRows26 - __Item27[/"__Item[27∈5]
ᐸ26ᐳ"\]:::itemplan + __Item27[/"__Item[27∈2]
ᐸ26ᐳ"\]:::itemplan PgSelectRows26 ==> __Item27 - PgSelectSingle28{{"PgSelectSingle[28∈5]
ᐸpersonᐳ"}}:::plan + PgSelectSingle28{{"PgSelectSingle[28∈2]
ᐸpersonᐳ"}}:::plan __Item27 --> PgSelectSingle28 - PgClassExpression29{{"PgClassExpression[29∈6]
ᐸ__person__.”id”ᐳ"}}:::plan + PgClassExpression29{{"PgClassExpression[29∈2]
ᐸ__person__.”id”ᐳ"}}:::plan PgSelectSingle28 --> PgClassExpression29 - PgClassExpression30{{"PgClassExpression[30∈6]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle28 --> PgClassExpression30 %% define steps subgraph "Buckets for queries/v4/connections-order-computed-column" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 11, 12, 23
2: PgSelect[14], PgSelect[25]
3: PgSelectRows[15], PgSelectRows[26]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Connection24 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Connection23,PgSelect25,PgSelectRows26 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ26ᐳ[27]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17

ROOT PgSelectSingle{2}ᐸpersonᐳ[17]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 12, 24

ROOT Connectionᐸ22ᐳ[24]
1: PgSelect[25]
2: PgSelectRows[26]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect25,PgSelectRows26 bucket4 - Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ26ᐳ[27]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item27,PgSelectSingle28 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 28

ROOT PgSelectSingle{5}ᐸpersonᐳ[28]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression29,PgClassExpression30 bucket6 - Bucket0 --> Bucket1 & Bucket4 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 + class Bucket2,__Item27,PgSelectSingle28,PgClassExpression29,PgClassExpression30 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/connections-totalCount.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/connections-totalCount.mermaid index 1a07bb8bb4..87b292a955 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/connections-totalCount.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/connections-totalCount.mermaid @@ -9,81 +9,71 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect24[["PgSelect[24∈0] ➊
ᐸpersonᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection22{{"Connection[22∈0] ➊
ᐸ20ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect24 + Connection22 --> PgSelect24 + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Connection34{{"Connection[34∈0] ➊
ᐸ29ᐳ"}}:::plan + Connection42{{"Connection[42∈0] ➊
ᐸ40ᐳ"}}:::plan + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 + PgSelect14[["PgSelect[14∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect43[["PgSelect[43∈0] ➊
ᐸtable_set_query(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect43 + Connection42 --> PgSelect43 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Connection23{{"Connection[23∈0] ➊
ᐸ21ᐳ"}}:::plan - Connection33{{"Connection[33∈0] ➊
ᐸ29ᐳ"}}:::plan - Connection41{{"Connection[41∈0] ➊
ᐸ39ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - First15{{"First[15∈1] ➊"}}:::plan - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan + First15{{"First[15∈0] ➊"}}:::plan + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan PgSelectRows16 --> First15 PgSelect14 --> PgSelectRows16 - PgSelectSingle17{{"PgSelectSingle[17∈1] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈0] ➊
ᐸpersonᐳ"}}:::plan First15 --> PgSelectSingle17 - PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 - PgSelect24[["PgSelect[24∈2] ➊
ᐸpersonᐳ"]]:::plan - Object12 & Connection23 --> PgSelect24 - PgSelectRows25[["PgSelectRows[25∈2] ➊"]]:::plan + PgSelectRows25[["PgSelectRows[25∈0] ➊"]]:::plan PgSelect24 --> PgSelectRows25 - __Item26[/"__Item[26∈3]
ᐸ25ᐳ"\]:::itemplan + First44{{"First[44∈0] ➊"}}:::plan + PgSelectRows45[["PgSelectRows[45∈0] ➊"]]:::plan + PgSelectRows45 --> First44 + PgSelect43 --> PgSelectRows45 + PgSelectSingle46{{"PgSelectSingle[46∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + First44 --> PgSelectSingle46 + PgClassExpression47{{"PgClassExpression[47∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression47 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgFromExpression33{{"PgFromExpression[33∈0] ➊"}}:::plan + PgSelect35[["PgSelect[35∈1]
ᐸperson_friends(aggregate)ᐳ"]]:::plan + PgClassExpression28{{"PgClassExpression[28∈1]
ᐸ__person__ᐳ"}}:::plan + Object11 & PgClassExpression28 & PgFromExpression33 & Connection34 --> PgSelect35 + __Item26[/"__Item[26∈1]
ᐸ25ᐳ"\]:::itemplan PgSelectRows25 ==> __Item26 - PgSelectSingle27{{"PgSelectSingle[27∈3]
ᐸpersonᐳ"}}:::plan + PgSelectSingle27{{"PgSelectSingle[27∈1]
ᐸpersonᐳ"}}:::plan __Item26 --> PgSelectSingle27 - PgSelect34[["PgSelect[34∈4]
ᐸperson_friends(aggregate)ᐳ"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__person__ᐳ"}}:::plan - Object12 & PgClassExpression28 & Connection33 --> PgSelect34 PgSelectSingle27 --> PgClassExpression28 - First35{{"First[35∈4]"}}:::plan - PgSelectRows36[["PgSelectRows[36∈4]"]]:::plan - PgSelectRows36 --> First35 - PgSelect34 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈4]
ᐸperson_friendsᐳ"}}:::plan - First35 --> PgSelectSingle37 - PgClassExpression38{{"PgClassExpression[38∈4]
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression38 - PgSelect42[["PgSelect[42∈5] ➊
ᐸtable_set_query(aggregate)ᐳ"]]:::plan - Object12 & Connection41 --> PgSelect42 - First43{{"First[43∈5] ➊"}}:::plan - PgSelectRows44[["PgSelectRows[44∈5] ➊"]]:::plan - PgSelectRows44 --> First43 - PgSelect42 --> PgSelectRows44 - PgSelectSingle45{{"PgSelectSingle[45∈5] ➊
ᐸtable_set_queryᐳ"}}:::plan - First43 --> PgSelectSingle45 - PgClassExpression46{{"PgClassExpression[46∈5] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression46 + First36{{"First[36∈1]"}}:::plan + PgSelectRows37[["PgSelectRows[37∈1]"]]:::plan + PgSelectRows37 --> First36 + PgSelect35 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈1]
ᐸperson_friendsᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈1]
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 %% define steps subgraph "Buckets for queries/v4/connections-totalCount" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 33, 11, 12, 22, 34, 42
2: 14, 24, 43
3: 16, 25, 45
ᐳ: 15, 17, 18, 44, 46, 47"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Connection23,Connection33,Connection41 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[16]
ᐳ: 15, 17, 18"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,First15,PgSelectRows16,PgSelectSingle17,PgClassExpression18,Connection22,PgSelect24,PgSelectRows25,PgFromExpression33,Connection34,Connection42,PgSelect43,First44,PgSelectRows45,PgSelectSingle46,PgClassExpression47 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 33, 34

ROOT __Item{1}ᐸ25ᐳ[26]
1:
ᐳ: 27, 28
2: PgSelect[35]
3: PgSelectRows[37]
ᐳ: 36, 38, 39"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,First15,PgSelectRows16,PgSelectSingle17,PgClassExpression18 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 12, 23, 33

ROOT Connectionᐸ21ᐳ[23]
1: PgSelect[24]
2: PgSelectRows[25]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgSelect24,PgSelectRows25 bucket2 - Bucket3("Bucket 3 (listItem)
Deps: 12, 33

ROOT __Item{3}ᐸ25ᐳ[26]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,__Item26,PgSelectSingle27 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 27, 12, 33

ROOT PgSelectSingle{3}ᐸpersonᐳ[27]
1:
ᐳ: PgClassExpression[28]
2: PgSelect[34]
3: PgSelectRows[36]
ᐳ: 35, 37, 38"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression28,PgSelect34,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression38 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 12, 41

ROOT Connectionᐸ39ᐳ[41]
1: PgSelect[42]
2: PgSelectRows[44]
ᐳ: 43, 45, 46"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect42,First43,PgSelectRows44,PgSelectSingle45,PgClassExpression46 bucket5 - Bucket0 --> Bucket1 & Bucket2 & Bucket5 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 + class Bucket1,__Item26,PgSelectSingle27,PgClassExpression28,PgSelect35,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39 bucket1 + Bucket0 --> Bucket1 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/connections.boolean.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/connections.boolean.mermaid index 2e4c6bcd56..f5ee98c2c6 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/connections.boolean.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/connections.boolean.mermaid @@ -9,155 +9,142 @@ graph TD %% plan dependencies - Object15{{"Object[15∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access14{{"Access[14∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access13 & Access14 --> Object15 - Connection62{{"Connection[62∈0] ➊
ᐸ60ᐳ"}}:::plan - Constant101{{"Constant[101∈0] ➊
ᐸ1ᐳ"}}:::plan - Lambda63{{"Lambda[63∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant101 & Lambda63 --> Connection62 + PgSelect59[["PgSelect[59∈0] ➊
ᐸcompound_key+1ᐳ"]]:::plan + Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection56{{"Connection[56∈0] ➊
ᐸ54ᐳ"}}:::plan + Lambda57{{"Lambda[57∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant95{{"Constant[95∈0] ➊
ᐸ1ᐳ"}}:::plan + Object12 -->|rejectNull| PgSelect59 + Connection56 & Lambda57 & Constant95 --> PgSelect59 + PgSelect15[["PgSelect[15∈0] ➊
ᐸcompound_key+1ᐳ"]]:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Object12 -->|rejectNull| PgSelect15 + Connection13 & Constant95 --> PgSelect15 + Object35{{"Object[35∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access30{{"Access[30∈0] ➊
ᐸ15.hasMoreᐳ"}}:::plan + Constant95 & Access30 --> Object35 + Constant95 & Lambda57 --> Connection56 + Object79{{"Object[79∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access74{{"Access[74∈0] ➊
ᐸ59.hasMoreᐳ"}}:::plan + Constant95 & Access74 --> Object79 + Constant95 --> Connection13 + Object31{{"Object[31∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant95 & Access30 --> Object31 + Object75{{"Object[75∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant95 & Access74 --> Object75 + Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access10 & Access11 --> Object12 + PgCursor22{{"PgCursor[22∈0] ➊"}}:::plan + PgSelectSingle20{{"PgSelectSingle[20∈0] ➊
ᐸcompound_keyᐳ"}}:::plan + Access21{{"Access[21∈0] ➊
ᐸ15.cursorDetailsᐳ"}}:::plan + PgSelectSingle20 & Access21 --> PgCursor22 + PgCursor28{{"PgCursor[28∈0] ➊"}}:::plan + PgSelectSingle26{{"PgSelectSingle[26∈0] ➊
ᐸcompound_keyᐳ"}}:::plan + PgSelectSingle26 & Access21 --> PgCursor28 + PgSelect37[["PgSelect[37∈0] ➊
ᐸcompound_key(aggregate)ᐳ"]]:::plan + Object12 -->|rejectNull| PgSelect37 + Connection13 --> PgSelect37 + PgCursor66{{"PgCursor[66∈0] ➊"}}:::plan + PgSelectSingle64{{"PgSelectSingle[64∈0] ➊
ᐸcompound_keyᐳ"}}:::plan + Access65{{"Access[65∈0] ➊
ᐸ59.cursorDetailsᐳ"}}:::plan + PgSelectSingle64 & Access65 --> PgCursor66 + PgCursor72{{"PgCursor[72∈0] ➊"}}:::plan + PgSelectSingle70{{"PgSelectSingle[70∈0] ➊
ᐸcompound_keyᐳ"}}:::plan + PgSelectSingle70 & Access65 --> PgCursor72 + PgSelect81[["PgSelect[81∈0] ➊
ᐸcompound_key(aggregate)ᐳ"]]:::plan + Object12 -->|rejectNull| PgSelect81 + Connection56 --> PgSelect81 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access13 - __Value2 --> Access14 - Connection16{{"Connection[16∈0] ➊
ᐸ12ᐳ"}}:::plan - Constant101 --> Connection16 - Constant102{{"Constant[102∈0] ➊
ᐸ'WyIzNjY0MzE3ZDgwIixmYWxzZSwyLDFd'ᐳ"}}:::plan - Constant102 --> Lambda63 + __Value2 --> Access10 + __Value2 --> Access11 + PgPageInfo16{{"PgPageInfo[16∈0] ➊"}}:::plan + Connection13 --> PgPageInfo16 + First18{{"First[18∈0] ➊"}}:::plan + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelectRows19 --> First18 + PgSelect15 --> PgSelectRows19 + First18 --> PgSelectSingle20 + PgSelect15 --> Access21 + Last24{{"Last[24∈0] ➊"}}:::plan + PgSelectRows19 --> Last24 + Last24 --> PgSelectSingle26 + PgSelect15 --> Access30 + Lambda32{{"Lambda[32∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object31 --> Lambda32 + Lambda36{{"Lambda[36∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object35 --> Lambda36 + First38{{"First[38∈0] ➊"}}:::plan + PgSelectRows39[["PgSelectRows[39∈0] ➊"]]:::plan + PgSelectRows39 --> First38 + PgSelect37 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈0] ➊
ᐸcompound_keyᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + Constant96{{"Constant[96∈0] ➊
ᐸ'WyIzNjY0MzE3ZDgwIixmYWxzZSwyLDFd'ᐳ"}}:::plan + Constant96 --> Lambda57 + PgPageInfo60{{"PgPageInfo[60∈0] ➊"}}:::plan + Connection56 --> PgPageInfo60 + First62{{"First[62∈0] ➊"}}:::plan + PgSelectRows63[["PgSelectRows[63∈0] ➊"]]:::plan + PgSelectRows63 --> First62 + PgSelect59 --> PgSelectRows63 + First62 --> PgSelectSingle64 + PgSelect59 --> Access65 + Last68{{"Last[68∈0] ➊"}}:::plan + PgSelectRows63 --> Last68 + Last68 --> PgSelectSingle70 + PgSelect59 --> Access74 + Lambda76{{"Lambda[76∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object75 --> Lambda76 + Lambda80{{"Lambda[80∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object79 --> Lambda80 + First82{{"First[82∈0] ➊"}}:::plan + PgSelectRows83[["PgSelectRows[83∈0] ➊"]]:::plan + PgSelectRows83 --> First82 + PgSelect81 --> PgSelectRows83 + PgSelectSingle84{{"PgSelectSingle[84∈0] ➊
ᐸcompound_keyᐳ"}}:::plan + First82 --> PgSelectSingle84 + PgClassExpression85{{"PgClassExpression[85∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle84 --> PgClassExpression85 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant7{{"Constant[7∈0] ➊
ᐸundefinedᐳ"}}:::plan - Object38{{"Object[38∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access33{{"Access[33∈1] ➊
ᐸ17.hasMoreᐳ"}}:::plan - Constant101 & Constant7 & Constant7 & Access33 --> Object38 - PgSelect17[["PgSelect[17∈1] ➊
ᐸcompound_key+1ᐳ"]]:::plan - Object15 & Connection16 & Constant101 --> PgSelect17 - Object34{{"Object[34∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant101 & Constant7 & Access33 --> Object34 - PgCursor24{{"PgCursor[24∈1] ➊"}}:::plan - PgSelectSingle22{{"PgSelectSingle[22∈1] ➊
ᐸcompound_keyᐳ"}}:::plan - Access23{{"Access[23∈1] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan - PgSelectSingle22 & Access23 --> PgCursor24 - PgCursor30{{"PgCursor[30∈1] ➊"}}:::plan - PgSelectSingle28{{"PgSelectSingle[28∈1] ➊
ᐸcompound_keyᐳ"}}:::plan - PgSelectSingle28 & Access23 --> PgCursor30 - PgSelect40[["PgSelect[40∈1] ➊
ᐸcompound_key(aggregate)ᐳ"]]:::plan - Object15 & Connection16 --> PgSelect40 - PgPageInfo18{{"PgPageInfo[18∈1] ➊"}}:::plan - Connection16 --> PgPageInfo18 - First20{{"First[20∈1] ➊"}}:::plan - PgSelectRows21[["PgSelectRows[21∈1] ➊"]]:::plan - PgSelectRows21 --> First20 - PgSelect17 --> PgSelectRows21 - First20 --> PgSelectSingle22 - PgSelect17 --> Access23 - Last26{{"Last[26∈1] ➊"}}:::plan - PgSelectRows21 --> Last26 - Last26 --> PgSelectSingle28 - PgSelect17 --> Access33 - Lambda35{{"Lambda[35∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object34 --> Lambda35 - Lambda39{{"Lambda[39∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object38 --> Lambda39 - First41{{"First[41∈1] ➊"}}:::plan - PgSelectRows42[["PgSelectRows[42∈1] ➊"]]:::plan - PgSelectRows42 --> First41 - PgSelect40 --> PgSelectRows42 - PgSelectSingle43{{"PgSelectSingle[43∈1] ➊
ᐸcompound_keyᐳ"}}:::plan - First41 --> PgSelectSingle43 - PgClassExpression44{{"PgClassExpression[44∈1] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression44 - __Item47[/"__Item[47∈2]
ᐸ21ᐳ"\]:::itemplan - PgSelectRows21 ==> __Item47 - PgSelectSingle48{{"PgSelectSingle[48∈2]
ᐸcompound_keyᐳ"}}:::plan - __Item47 --> PgSelectSingle48 - PgCursor50{{"PgCursor[50∈3]"}}:::plan - PgSelectSingle48 & Access23 --> PgCursor50 - PgClassExpression51{{"PgClassExpression[51∈3]
ᐸ__compound...__.”extra”ᐳ"}}:::plan - PgSelectSingle48 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈3]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle48 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈3]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle48 --> PgClassExpression53 - PgSelect64[["PgSelect[64∈4] ➊
ᐸcompound_key+1ᐳ"]]:::plan - Object15 & Connection62 & Lambda63 & Constant101 --> PgSelect64 - Object85{{"Object[85∈4] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access80{{"Access[80∈4] ➊
ᐸ64.hasMoreᐳ"}}:::plan - Constant101 & Constant7 & Constant7 & Access80 --> Object85 - Object81{{"Object[81∈4] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant101 & Constant7 & Access80 --> Object81 - PgCursor71{{"PgCursor[71∈4] ➊"}}:::plan - PgSelectSingle69{{"PgSelectSingle[69∈4] ➊
ᐸcompound_keyᐳ"}}:::plan - Access70{{"Access[70∈4] ➊
ᐸ64.cursorDetailsᐳ"}}:::plan - PgSelectSingle69 & Access70 --> PgCursor71 - PgCursor77{{"PgCursor[77∈4] ➊"}}:::plan - PgSelectSingle75{{"PgSelectSingle[75∈4] ➊
ᐸcompound_keyᐳ"}}:::plan - PgSelectSingle75 & Access70 --> PgCursor77 - PgSelect87[["PgSelect[87∈4] ➊
ᐸcompound_key(aggregate)ᐳ"]]:::plan - Object15 & Connection62 --> PgSelect87 - PgPageInfo65{{"PgPageInfo[65∈4] ➊"}}:::plan - Connection62 --> PgPageInfo65 - First67{{"First[67∈4] ➊"}}:::plan - PgSelectRows68[["PgSelectRows[68∈4] ➊"]]:::plan - PgSelectRows68 --> First67 - PgSelect64 --> PgSelectRows68 - First67 --> PgSelectSingle69 - PgSelect64 --> Access70 - Last73{{"Last[73∈4] ➊"}}:::plan - PgSelectRows68 --> Last73 - Last73 --> PgSelectSingle75 - PgSelect64 --> Access80 - Lambda82{{"Lambda[82∈4] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object81 --> Lambda82 - Lambda86{{"Lambda[86∈4] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object85 --> Lambda86 - First88{{"First[88∈4] ➊"}}:::plan - PgSelectRows89[["PgSelectRows[89∈4] ➊"]]:::plan - PgSelectRows89 --> First88 - PgSelect87 --> PgSelectRows89 - PgSelectSingle90{{"PgSelectSingle[90∈4] ➊
ᐸcompound_keyᐳ"}}:::plan - First88 --> PgSelectSingle90 - PgClassExpression91{{"PgClassExpression[91∈4] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression91 - __Item94[/"__Item[94∈5]
ᐸ68ᐳ"\]:::itemplan - PgSelectRows68 ==> __Item94 - PgSelectSingle95{{"PgSelectSingle[95∈5]
ᐸcompound_keyᐳ"}}:::plan - __Item94 --> PgSelectSingle95 - PgCursor97{{"PgCursor[97∈6]"}}:::plan - PgSelectSingle95 & Access70 --> PgCursor97 - PgClassExpression98{{"PgClassExpression[98∈6]
ᐸ__compound...__.”extra”ᐳ"}}:::plan - PgSelectSingle95 --> PgClassExpression98 - PgClassExpression99{{"PgClassExpression[99∈6]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle95 --> PgClassExpression99 - PgClassExpression100{{"PgClassExpression[100∈6]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle95 --> PgClassExpression100 + PgCursor47{{"PgCursor[47∈1]"}}:::plan + PgSelectSingle45{{"PgSelectSingle[45∈1]
ᐸcompound_keyᐳ"}}:::plan + PgSelectSingle45 & Access21 --> PgCursor47 + __Item44[/"__Item[44∈1]
ᐸ19ᐳ"\]:::itemplan + PgSelectRows19 ==> __Item44 + __Item44 --> PgSelectSingle45 + PgClassExpression48{{"PgClassExpression[48∈1]
ᐸ__compound...__.”extra”ᐳ"}}:::plan + PgSelectSingle45 --> PgClassExpression48 + PgClassExpression49{{"PgClassExpression[49∈1]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle45 --> PgClassExpression49 + PgClassExpression50{{"PgClassExpression[50∈1]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle45 --> PgClassExpression50 + PgCursor91{{"PgCursor[91∈2]"}}:::plan + PgSelectSingle89{{"PgSelectSingle[89∈2]
ᐸcompound_keyᐳ"}}:::plan + PgSelectSingle89 & Access65 --> PgCursor91 + __Item88[/"__Item[88∈2]
ᐸ63ᐳ"\]:::itemplan + PgSelectRows63 ==> __Item88 + __Item88 --> PgSelectSingle89 + PgClassExpression92{{"PgClassExpression[92∈2]
ᐸ__compound...__.”extra”ᐳ"}}:::plan + PgSelectSingle89 --> PgClassExpression92 + PgClassExpression93{{"PgClassExpression[93∈2]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle89 --> PgClassExpression93 + PgClassExpression94{{"PgClassExpression[94∈2]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle89 --> PgClassExpression94 %% define steps subgraph "Buckets for queries/v4/connections.boolean" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 10, 11, 95, 96, 12, 13, 16, 57, 56, 60
2: 15, 37, 59, 81
ᐳ: 21, 30, 31, 32, 35, 36, 65, 74, 75, 76, 79, 80
3: 19, 39, 63, 83
ᐳ: 18, 20, 22, 24, 26, 28, 38, 40, 41, 62, 64, 66, 68, 70, 72, 82, 84, 85"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant7,Access13,Access14,Object15,Connection16,Connection62,Lambda63,Constant101,Constant102 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 15, 16, 101, 7

ROOT Connectionᐸ12ᐳ[16]
1: PgSelect[17], PgSelect[40]
ᐳ: 18, 23, 33, 34, 35, 38, 39
2: PgSelectRows[21], PgSelectRows[42]
ᐳ: 20, 22, 24, 26, 28, 30, 41, 43, 44"):::bucket + class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,PgSelect15,PgPageInfo16,First18,PgSelectRows19,PgSelectSingle20,Access21,PgCursor22,Last24,PgSelectSingle26,PgCursor28,Access30,Object31,Lambda32,Object35,Lambda36,PgSelect37,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,Connection56,Lambda57,PgSelect59,PgPageInfo60,First62,PgSelectRows63,PgSelectSingle64,Access65,PgCursor66,Last68,PgSelectSingle70,PgCursor72,Access74,Object75,Lambda76,Object79,Lambda80,PgSelect81,First82,PgSelectRows83,PgSelectSingle84,PgClassExpression85,Constant95,Constant96 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 21

ROOT __Item{1}ᐸ19ᐳ[44]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect17,PgPageInfo18,First20,PgSelectRows21,PgSelectSingle22,Access23,PgCursor24,Last26,PgSelectSingle28,PgCursor30,Access33,Object34,Lambda35,Object38,Lambda39,PgSelect40,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 23

ROOT __Item{2}ᐸ21ᐳ[47]"):::bucket + class Bucket1,__Item44,PgSelectSingle45,PgCursor47,PgClassExpression48,PgClassExpression49,PgClassExpression50 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 65

ROOT __Item{2}ᐸ63ᐳ[88]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item47,PgSelectSingle48 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 48, 23

ROOT PgSelectSingle{2}ᐸcompound_keyᐳ[48]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor50,PgClassExpression51,PgClassExpression52,PgClassExpression53 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 15, 62, 63, 101, 7

ROOT Connectionᐸ60ᐳ[62]
1: PgSelect[64], PgSelect[87]
ᐳ: 65, 70, 80, 81, 82, 85, 86
2: PgSelectRows[68], PgSelectRows[89]
ᐳ: 67, 69, 71, 73, 75, 77, 88, 90, 91"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect64,PgPageInfo65,First67,PgSelectRows68,PgSelectSingle69,Access70,PgCursor71,Last73,PgSelectSingle75,PgCursor77,Access80,Object81,Lambda82,Object85,Lambda86,PgSelect87,First88,PgSelectRows89,PgSelectSingle90,PgClassExpression91 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 70

ROOT __Item{5}ᐸ68ᐳ[94]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item94,PgSelectSingle95 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 95, 70

ROOT PgSelectSingle{5}ᐸcompound_keyᐳ[95]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgCursor97,PgClassExpression98,PgClassExpression99,PgClassExpression100 bucket6 - Bucket0 --> Bucket1 & Bucket4 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 + class Bucket2,__Item88,PgSelectSingle89,PgCursor91,PgClassExpression92,PgClassExpression93,PgClassExpression94 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/connections.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/connections.mermaid index 406a95d354..69f7bacd9a 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/connections.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/connections.mermaid @@ -9,1606 +9,1473 @@ graph TD %% plan dependencies - Connection611{{"Connection[611∈0] ➊
ᐸ609ᐳ"}}:::plan - Constant1036{{"Constant[1036∈0] ➊
ᐸnullᐳ"}}:::plan - Constant1031{{"Constant[1031∈0] ➊
ᐸ2ᐳ"}}:::plan - Lambda612{{"Lambda[612∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant1036 & Constant1031 & Lambda612 --> Connection611 - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 - Connection502{{"Connection[502∈0] ➊
ᐸ500ᐳ"}}:::plan - Constant1034{{"Constant[1034∈0] ➊
ᐸ3ᐳ"}}:::plan - Constant1033{{"Constant[1033∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant1034 & Constant1033 --> Connection502 - Connection660{{"Connection[660∈0] ➊
ᐸ658ᐳ"}}:::plan - Lambda247{{"Lambda[247∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant1033 & Lambda247 --> Connection660 - Connection709{{"Connection[709∈0] ➊
ᐸ707ᐳ"}}:::plan - Constant1033 & Lambda247 --> Connection709 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access10 - __Value2 --> Access11 - Connection60{{"Connection[60∈0] ➊
ᐸ58ᐳ"}}:::plan - Constant1031 --> Connection60 - Connection107{{"Connection[107∈0] ➊
ᐸ105ᐳ"}}:::plan - Constant1031 --> Connection107 - Connection246{{"Connection[246∈0] ➊
ᐸ244ᐳ"}}:::plan - Lambda247 --> Connection246 - Constant1032{{"Constant[1032∈0] ➊
ᐸ'WyIwOGUwZDM0MmRlIiwyXQ=='ᐳ"}}:::plan - Constant1032 --> Lambda247 - Connection294{{"Connection[294∈0] ➊
ᐸ292ᐳ"}}:::plan - Lambda247 --> Connection294 - Connection415{{"Connection[415∈0] ➊
ᐸ413ᐳ"}}:::plan - Constant1031 --> Connection415 - Connection459{{"Connection[459∈0] ➊
ᐸ457ᐳ"}}:::plan - Constant1033 --> Connection459 - Connection549{{"Connection[549∈0] ➊
ᐸ547ᐳ"}}:::plan - Constant1035{{"Constant[1035∈0] ➊
ᐸ0ᐳ"}}:::plan - Constant1035 --> Connection549 - Constant1037{{"Constant[1037∈0] ➊
ᐸ'WyIwOGUwZDM0MmRlIiw2XQ=='ᐳ"}}:::plan - Constant1037 --> Lambda612 - Connection806{{"Connection[806∈0] ➊
ᐸ804ᐳ"}}:::plan - Constant1034 --> Connection806 - Connection896{{"Connection[896∈0] ➊
ᐸ894ᐳ"}}:::plan - Constant1031 --> Connection896 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Connection153{{"Connection[153∈0] ➊
ᐸ151ᐳ"}}:::plan - Connection199{{"Connection[199∈0] ➊
ᐸ197ᐳ"}}:::plan - Connection341{{"Connection[341∈0] ➊
ᐸ339ᐳ"}}:::plan - Connection355{{"Connection[355∈0] ➊
ᐸ353ᐳ"}}:::plan - Connection371{{"Connection[371∈0] ➊
ᐸ369ᐳ"}}:::plan - Connection597{{"Connection[597∈0] ➊
ᐸ595ᐳ"}}:::plan - Connection758{{"Connection[758∈0] ➊
ᐸ756ᐳ"}}:::plan - Connection849{{"Connection[849∈0] ➊
ᐸ847ᐳ"}}:::plan - Constant920{{"Constant[920∈0] ➊
ᐸ'posts'ᐳ"}}:::plan - Connection930{{"Connection[930∈0] ➊
ᐸ928ᐳ"}}:::plan - Connection978{{"Connection[978∈0] ➊
ᐸ976ᐳ"}}:::plan - Connection1024{{"Connection[1024∈0] ➊
ᐸ1022ᐳ"}}:::plan - Constant1038{{"Constant[1038∈0] ➊
ᐸ'192.168.0.1'ᐳ"}}:::plan - Constant1039{{"Constant[1039∈0] ➊
ᐸ'192.168.0.0/24'ᐳ"}}:::plan - Constant1040{{"Constant[1040∈0] ➊
ᐸ'0000.0000.0000'ᐳ"}}:::plan - Object35{{"Object[35∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access30{{"Access[30∈1] ➊
ᐸ14.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access30 --> Object35 - Object31{{"Object[31∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access30 --> Object31 - PgSelect14[["PgSelect[14∈1] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgCursor21{{"PgCursor[21∈1] ➊"}}:::plan - PgSelectSingle19{{"PgSelectSingle[19∈1] ➊
ᐸpersonᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan + PgSelect243[["PgSelect[243∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection240{{"Connection[240∈0] ➊
ᐸ238ᐳ"}}:::plan + Lambda241{{"Lambda[241∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect243 + Connection240 & Lambda241 --> PgSelect243 + PgSelect290[["PgSelect[290∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection287{{"Connection[287∈0] ➊
ᐸ285ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect290 + Connection287 & Lambda241 --> PgSelect290 + PgSelect366[["PgSelect[366∈0] ➊
ᐸpost+1ᐳ"]]:::plan + ApplyInput365{{"ApplyInput[365∈0] ➊"}}:::plan + Connection363{{"Connection[363∈0] ➊
ᐸ361ᐳ"}}:::plan + ApplyInput365 -->|rejectNull| PgSelect366 + Object11 & Connection363 --> PgSelect366 + PgSelect410[["PgSelect[410∈0] ➊
ᐸpost+1ᐳ"]]:::plan + ApplyInput409{{"ApplyInput[409∈0] ➊"}}:::plan + Connection407{{"Connection[407∈0] ➊
ᐸ405ᐳ"}}:::plan + Constant1015{{"Constant[1015∈0] ➊
ᐸ2ᐳ"}}:::plan + ApplyInput409 -->|rejectNull| PgSelect410 + Object11 & Connection407 & Constant1015 --> PgSelect410 + PgSelect454[["PgSelect[454∈0] ➊
ᐸpost+1ᐳ"]]:::plan + ApplyInput453{{"ApplyInput[453∈0] ➊"}}:::plan + Connection451{{"Connection[451∈0] ➊
ᐸ449ᐳ"}}:::plan + Constant1017{{"Constant[1017∈0] ➊
ᐸ1ᐳ"}}:::plan + ApplyInput453 -->|rejectNull| PgSelect454 + Object11 & Connection451 & Constant1017 --> PgSelect454 + PgSelect590[["PgSelect[590∈0] ➊
ᐸedge_caseᐳ"]]:::plan + ApplyInput589{{"ApplyInput[589∈0] ➊"}}:::plan + Connection587{{"Connection[587∈0] ➊
ᐸ585ᐳ"}}:::plan + ApplyInput589 -->|rejectNull| PgSelect590 + Object11 & Connection587 --> PgSelect590 + PgSelect604[["PgSelect[604∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection601{{"Connection[601∈0] ➊
ᐸ599ᐳ"}}:::plan + Lambda602{{"Lambda[602∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant595{{"Constant[595∈0] ➊
ᐸnullᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect604 + Connection601 & Lambda602 & Constant595 & Constant1015 --> PgSelect604 + PgSelect652[["PgSelect[652∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection649{{"Connection[649∈0] ➊
ᐸ647ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect652 + Connection649 & Lambda241 & Constant1017 --> PgSelect652 + PgSelect700[["PgSelect[700∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection697{{"Connection[697∈0] ➊
ᐸ695ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect700 + Connection697 & Lambda241 & Constant1017 --> PgSelect700 + PgSelect747[["PgSelect[747∈0] ➊
ᐸperson+1ᐳ"]]:::plan + ApplyInput746{{"ApplyInput[746∈0] ➊"}}:::plan + Connection744{{"Connection[744∈0] ➊
ᐸ742ᐳ"}}:::plan + ApplyInput746 -->|rejectNull| PgSelect747 + Object11 & Connection744 --> PgSelect747 + PgSelect836[["PgSelect[836∈0] ➊
ᐸperson+1ᐳ"]]:::plan + ApplyInput835{{"ApplyInput[835∈0] ➊"}}:::plan + Connection833{{"Connection[833∈0] ➊
ᐸ831ᐳ"}}:::plan + ApplyInput835 -->|rejectNull| PgSelect836 + Object11 & Connection833 --> PgSelect836 + PgSelect916[["PgSelect[916∈0] ➊
ᐸperson+1ᐳ"]]:::plan + ApplyInput915{{"ApplyInput[915∈0] ➊"}}:::plan + Connection913{{"Connection[913∈0] ➊
ᐸ911ᐳ"}}:::plan + ApplyInput915 -->|rejectNull| PgSelect916 + Object11 & Connection913 --> PgSelect916 + PgSelect964[["PgSelect[964∈0] ➊
ᐸperson+1ᐳ"]]:::plan + ApplyInput963{{"ApplyInput[963∈0] ➊"}}:::plan + Connection961{{"Connection[961∈0] ➊
ᐸ959ᐳ"}}:::plan + ApplyInput963 -->|rejectNull| PgSelect964 + Object11 & Connection961 --> PgSelect964 + PgSelect14[["PgSelect[14∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect60[["PgSelect[60∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection58{{"Connection[58∈0] ➊
ᐸ56ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect60 + Connection58 & Constant1015 --> PgSelect60 + PgSelect106[["PgSelect[106∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection104{{"Connection[104∈0] ➊
ᐸ102ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect106 + Connection104 & Constant1015 --> PgSelect106 + PgSelect151[["PgSelect[151∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection149{{"Connection[149∈0] ➊
ᐸ147ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect151 + Connection149 --> PgSelect151 + PgSelect196[["PgSelect[196∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection194{{"Connection[194∈0] ➊
ᐸ192ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect196 + Connection194 --> PgSelect196 + PgSelect335[["PgSelect[335∈0] ➊
ᐸupdatable_viewᐳ"]]:::plan + Connection333{{"Connection[333∈0] ➊
ᐸ331ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect335 + Connection333 --> PgSelect335 + PgSelect349[["PgSelect[349∈0] ➊
ᐸupdatable_viewᐳ"]]:::plan + Connection347{{"Connection[347∈0] ➊
ᐸ345ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect349 + Connection347 --> PgSelect349 + PgSelect496[["PgSelect[496∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection494{{"Connection[494∈0] ➊
ᐸ492ᐳ"}}:::plan + Constant1018{{"Constant[1018∈0] ➊
ᐸ3ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect496 + Connection494 & Constant1018 & Constant1017 --> PgSelect496 + PgSelect542[["PgSelect[542∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection540{{"Connection[540∈0] ➊
ᐸ538ᐳ"}}:::plan + Constant1019{{"Constant[1019∈0] ➊
ᐸ0ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect542 + Connection540 & Constant1019 --> PgSelect542 + PgSelect793[["PgSelect[793∈0] ➊
ᐸpost+1ᐳ"]]:::plan + Connection791{{"Connection[791∈0] ➊
ᐸ789ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect793 + Connection791 & Constant1018 --> PgSelect793 + PgSelect882[["PgSelect[882∈0] ➊
ᐸpostᐳ"]]:::plan + Connection880{{"Connection[880∈0] ➊
ᐸ878ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect882 + Connection880 & Constant1015 --> PgSelect882 + PgSelect1009[["PgSelect[1009∈0] ➊
ᐸnull_test_recordᐳ"]]:::plan + Connection1007{{"Connection[1007∈0] ➊
ᐸ1005ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect1009 + Connection1007 --> PgSelect1009 + Object34{{"Object[34∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access29{{"Access[29∈0] ➊
ᐸ14.hasMoreᐳ"}}:::plan + Access29 --> Object34 + Object80{{"Object[80∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access75{{"Access[75∈0] ➊
ᐸ60.hasMoreᐳ"}}:::plan + Constant1015 & Access75 --> Object80 + Object126{{"Object[126∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access121{{"Access[121∈0] ➊
ᐸ106.hasMoreᐳ"}}:::plan + Constant1015 & Access121 --> Object126 + Object171{{"Object[171∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access166{{"Access[166∈0] ➊
ᐸ151.hasMoreᐳ"}}:::plan + Access166 --> Object171 + Object216{{"Object[216∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access211{{"Access[211∈0] ➊
ᐸ196.hasMoreᐳ"}}:::plan + Access211 --> Object216 + Lambda241 --> Connection240 + Object263{{"Object[263∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access258{{"Access[258∈0] ➊
ᐸ243.hasMoreᐳ"}}:::plan + Access258 --> Object263 + Lambda241 --> Connection287 + Object310{{"Object[310∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access305{{"Access[305∈0] ➊
ᐸ290.hasMoreᐳ"}}:::plan + Access305 --> Object310 + Object386{{"Object[386∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access381{{"Access[381∈0] ➊
ᐸ366.hasMoreᐳ"}}:::plan + Access381 --> Object386 + Object430{{"Object[430∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access425{{"Access[425∈0] ➊
ᐸ410.hasMoreᐳ"}}:::plan + Constant1015 & Access425 --> Object430 + Object474{{"Object[474∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access469{{"Access[469∈0] ➊
ᐸ454.hasMoreᐳ"}}:::plan + Constant1017 & Access469 --> Object474 + Object516{{"Object[516∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access511{{"Access[511∈0] ➊
ᐸ496.hasMoreᐳ"}}:::plan + Constant1018 & Constant1017 & Access511 --> Object516 + Object562{{"Object[562∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access557{{"Access[557∈0] ➊
ᐸ542.hasMoreᐳ"}}:::plan + Constant1019 & Access557 --> Object562 + Constant595 & Constant1015 & Lambda602 --> Connection601 + Object624{{"Object[624∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access619{{"Access[619∈0] ➊
ᐸ604.hasMoreᐳ"}}:::plan + Constant595 & Constant1015 & Access619 --> Object624 + Constant1017 & Lambda241 --> Connection649 + Object672{{"Object[672∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access667{{"Access[667∈0] ➊
ᐸ652.hasMoreᐳ"}}:::plan + Constant1017 & Access667 --> Object672 + Constant1017 & Lambda241 --> Connection697 + Object720{{"Object[720∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access715{{"Access[715∈0] ➊
ᐸ700.hasMoreᐳ"}}:::plan + Constant1017 & Access715 --> Object720 + Object767{{"Object[767∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access762{{"Access[762∈0] ➊
ᐸ747.hasMoreᐳ"}}:::plan + Access762 --> Object767 + Object813{{"Object[813∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access808{{"Access[808∈0] ➊
ᐸ793.hasMoreᐳ"}}:::plan + Constant1018 & Access808 --> Object813 + Object856{{"Object[856∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access851{{"Access[851∈0] ➊
ᐸ836.hasMoreᐳ"}}:::plan + Access851 --> Object856 + Object936{{"Object[936∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access931{{"Access[931∈0] ➊
ᐸ916.hasMoreᐳ"}}:::plan + Access931 --> Object936 + Object984{{"Object[984∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access979{{"Access[979∈0] ➊
ᐸ964.hasMoreᐳ"}}:::plan + Access979 --> Object984 + Object30{{"Object[30∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access29 --> Object30 + Constant1015 --> Connection58 + Object76{{"Object[76∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1015 & Access75 --> Object76 + Constant1015 --> Connection104 + Object122{{"Object[122∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1015 & Access121 --> Object122 + Object167{{"Object[167∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access166 --> Object167 + Object212{{"Object[212∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access211 --> Object212 + Object259{{"Object[259∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access258 --> Object259 + Object306{{"Object[306∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access305 --> Object306 + Object382{{"Object[382∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access381 --> Object382 + PgSelect388[["PgSelect[388∈0] ➊
ᐸpost(aggregate)ᐳ"]]:::plan + ApplyInput365 -->|rejectNull| PgSelect388 + Object11 & Connection363 --> PgSelect388 + Constant1015 --> Connection407 + Object426{{"Object[426∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1015 & Access425 --> Object426 + PgSelect432[["PgSelect[432∈0] ➊
ᐸpost(aggregate)ᐳ"]]:::plan + ApplyInput409 -->|rejectNull| PgSelect432 + Object11 & Connection407 --> PgSelect432 + Constant1017 --> Connection451 + Object470{{"Object[470∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1017 & Access469 --> Object470 + PgSelect476[["PgSelect[476∈0] ➊
ᐸpost(aggregate)ᐳ"]]:::plan + ApplyInput453 -->|rejectNull| PgSelect476 + Object11 & Connection451 --> PgSelect476 + Constant1018 & Constant1017 --> Connection494 + Object512{{"Object[512∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1018 & Access511 --> Object512 + Constant1019 --> Connection540 + Object558{{"Object[558∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1019 & Access557 --> Object558 + Object620{{"Object[620∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant595 & Constant1015 & Access619 --> Object620 + Object668{{"Object[668∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1017 & Access667 --> Object668 + Object716{{"Object[716∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1017 & Access715 --> Object716 + Object763{{"Object[763∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access762 --> Object763 + PgSelect769[["PgSelect[769∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + ApplyInput746 -->|rejectNull| PgSelect769 + Object11 & Connection744 --> PgSelect769 + Constant1018 --> Connection791 + Object809{{"Object[809∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1018 & Access808 --> Object809 + Object852{{"Object[852∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access851 --> Object852 + PgSelect858[["PgSelect[858∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + ApplyInput835 -->|rejectNull| PgSelect858 + Object11 & Connection833 --> PgSelect858 + Constant1015 --> Connection880 + Object932{{"Object[932∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access931 --> Object932 + PgSelect938[["PgSelect[938∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + ApplyInput915 -->|rejectNull| PgSelect938 + Object11 & Connection913 --> PgSelect938 + Object980{{"Object[980∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access979 --> Object980 + PgSelect986[["PgSelect[986∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + ApplyInput963 -->|rejectNull| PgSelect986 + Object11 & Connection961 --> PgSelect986 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 + PgCursor21{{"PgCursor[21∈0] ➊"}}:::plan + PgSelectSingle19{{"PgSelectSingle[19∈0] ➊
ᐸpersonᐳ"}}:::plan + Access20{{"Access[20∈0] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan PgSelectSingle19 & Access20 --> PgCursor21 - PgCursor27{{"PgCursor[27∈1] ➊"}}:::plan - PgSelectSingle25{{"PgSelectSingle[25∈1] ➊
ᐸpersonᐳ"}}:::plan + PgCursor27{{"PgCursor[27∈0] ➊"}}:::plan + PgSelectSingle25{{"PgSelectSingle[25∈0] ➊
ᐸpersonᐳ"}}:::plan PgSelectSingle25 & Access20 --> PgCursor27 - PgSelect37[["PgSelect[37∈1] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect37 - PgPageInfo15{{"PgPageInfo[15∈1] ➊"}}:::plan - Connection13 --> PgPageInfo15 - First17{{"First[17∈1] ➊"}}:::plan - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan + PgSelect36[["PgSelect[36∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect36 + Connection12 --> PgSelect36 + PgCursor67{{"PgCursor[67∈0] ➊"}}:::plan + PgSelectSingle65{{"PgSelectSingle[65∈0] ➊
ᐸpersonᐳ"}}:::plan + Access66{{"Access[66∈0] ➊
ᐸ60.cursorDetailsᐳ"}}:::plan + PgSelectSingle65 & Access66 --> PgCursor67 + PgCursor73{{"PgCursor[73∈0] ➊"}}:::plan + PgSelectSingle71{{"PgSelectSingle[71∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle71 & Access66 --> PgCursor73 + PgSelect82[["PgSelect[82∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect82 + Connection58 --> PgSelect82 + PgCursor113{{"PgCursor[113∈0] ➊"}}:::plan + PgSelectSingle111{{"PgSelectSingle[111∈0] ➊
ᐸpersonᐳ"}}:::plan + Access112{{"Access[112∈0] ➊
ᐸ106.cursorDetailsᐳ"}}:::plan + PgSelectSingle111 & Access112 --> PgCursor113 + PgCursor119{{"PgCursor[119∈0] ➊"}}:::plan + PgSelectSingle117{{"PgSelectSingle[117∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle117 & Access112 --> PgCursor119 + PgSelect128[["PgSelect[128∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect128 + Connection104 --> PgSelect128 + PgCursor158{{"PgCursor[158∈0] ➊"}}:::plan + PgSelectSingle156{{"PgSelectSingle[156∈0] ➊
ᐸpersonᐳ"}}:::plan + Access157{{"Access[157∈0] ➊
ᐸ151.cursorDetailsᐳ"}}:::plan + PgSelectSingle156 & Access157 --> PgCursor158 + PgCursor164{{"PgCursor[164∈0] ➊"}}:::plan + PgSelectSingle162{{"PgSelectSingle[162∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle162 & Access157 --> PgCursor164 + PgSelect173[["PgSelect[173∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect173 + Connection149 --> PgSelect173 + PgCursor203{{"PgCursor[203∈0] ➊"}}:::plan + PgSelectSingle201{{"PgSelectSingle[201∈0] ➊
ᐸpersonᐳ"}}:::plan + Access202{{"Access[202∈0] ➊
ᐸ196.cursorDetailsᐳ"}}:::plan + PgSelectSingle201 & Access202 --> PgCursor203 + PgCursor209{{"PgCursor[209∈0] ➊"}}:::plan + PgSelectSingle207{{"PgSelectSingle[207∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle207 & Access202 --> PgCursor209 + PgSelect218[["PgSelect[218∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect218 + Connection194 --> PgSelect218 + PgCursor250{{"PgCursor[250∈0] ➊"}}:::plan + PgSelectSingle248{{"PgSelectSingle[248∈0] ➊
ᐸpersonᐳ"}}:::plan + Access249{{"Access[249∈0] ➊
ᐸ243.cursorDetailsᐳ"}}:::plan + PgSelectSingle248 & Access249 --> PgCursor250 + PgCursor256{{"PgCursor[256∈0] ➊"}}:::plan + PgSelectSingle254{{"PgSelectSingle[254∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle254 & Access249 --> PgCursor256 + PgSelect265[["PgSelect[265∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect265 + Connection240 --> PgSelect265 + PgCursor297{{"PgCursor[297∈0] ➊"}}:::plan + PgSelectSingle295{{"PgSelectSingle[295∈0] ➊
ᐸpersonᐳ"}}:::plan + Access296{{"Access[296∈0] ➊
ᐸ290.cursorDetailsᐳ"}}:::plan + PgSelectSingle295 & Access296 --> PgCursor297 + PgCursor303{{"PgCursor[303∈0] ➊"}}:::plan + PgSelectSingle301{{"PgSelectSingle[301∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle301 & Access296 --> PgCursor303 + PgSelect312[["PgSelect[312∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect312 + Connection287 --> PgSelect312 + __InputObject359{{"__InputObject[359∈0] ➊"}}:::plan + Constant1015 --> __InputObject359 + PgCursor373{{"PgCursor[373∈0] ➊"}}:::plan + PgSelectSingle371{{"PgSelectSingle[371∈0] ➊
ᐸpostᐳ"}}:::plan + Access372{{"Access[372∈0] ➊
ᐸ366.cursorDetailsᐳ"}}:::plan + PgSelectSingle371 & Access372 --> PgCursor373 + PgCursor379{{"PgCursor[379∈0] ➊"}}:::plan + PgSelectSingle377{{"PgSelectSingle[377∈0] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle377 & Access372 --> PgCursor379 + __InputObject403{{"__InputObject[403∈0] ➊"}}:::plan + Constant1015 --> __InputObject403 + PgCursor417{{"PgCursor[417∈0] ➊"}}:::plan + PgSelectSingle415{{"PgSelectSingle[415∈0] ➊
ᐸpostᐳ"}}:::plan + Access416{{"Access[416∈0] ➊
ᐸ410.cursorDetailsᐳ"}}:::plan + PgSelectSingle415 & Access416 --> PgCursor417 + PgCursor423{{"PgCursor[423∈0] ➊"}}:::plan + PgSelectSingle421{{"PgSelectSingle[421∈0] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle421 & Access416 --> PgCursor423 + __InputObject447{{"__InputObject[447∈0] ➊"}}:::plan + Constant1017 --> __InputObject447 + PgCursor461{{"PgCursor[461∈0] ➊"}}:::plan + PgSelectSingle459{{"PgSelectSingle[459∈0] ➊
ᐸpostᐳ"}}:::plan + Access460{{"Access[460∈0] ➊
ᐸ454.cursorDetailsᐳ"}}:::plan + PgSelectSingle459 & Access460 --> PgCursor461 + PgCursor467{{"PgCursor[467∈0] ➊"}}:::plan + PgSelectSingle465{{"PgSelectSingle[465∈0] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle465 & Access460 --> PgCursor467 + PgCursor503{{"PgCursor[503∈0] ➊"}}:::plan + PgSelectSingle501{{"PgSelectSingle[501∈0] ➊
ᐸpersonᐳ"}}:::plan + Access502{{"Access[502∈0] ➊
ᐸ496.cursorDetailsᐳ"}}:::plan + PgSelectSingle501 & Access502 --> PgCursor503 + PgCursor509{{"PgCursor[509∈0] ➊"}}:::plan + PgSelectSingle507{{"PgSelectSingle[507∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle507 & Access502 --> PgCursor509 + PgSelect518[["PgSelect[518∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect518 + Connection494 --> PgSelect518 + PgCursor549{{"PgCursor[549∈0] ➊"}}:::plan + PgSelectSingle547{{"PgSelectSingle[547∈0] ➊
ᐸpersonᐳ"}}:::plan + Access548{{"Access[548∈0] ➊
ᐸ542.cursorDetailsᐳ"}}:::plan + PgSelectSingle547 & Access548 --> PgCursor549 + PgCursor555{{"PgCursor[555∈0] ➊"}}:::plan + PgSelectSingle553{{"PgSelectSingle[553∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle553 & Access548 --> PgCursor555 + PgSelect564[["PgSelect[564∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect564 + Connection540 --> PgSelect564 + __InputObject583{{"__InputObject[583∈0] ➊"}}:::plan + Constant1015 --> __InputObject583 + PgCursor611{{"PgCursor[611∈0] ➊"}}:::plan + PgSelectSingle609{{"PgSelectSingle[609∈0] ➊
ᐸpersonᐳ"}}:::plan + Access610{{"Access[610∈0] ➊
ᐸ604.cursorDetailsᐳ"}}:::plan + PgSelectSingle609 & Access610 --> PgCursor611 + PgCursor617{{"PgCursor[617∈0] ➊"}}:::plan + PgSelectSingle615{{"PgSelectSingle[615∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle615 & Access610 --> PgCursor617 + PgSelect626[["PgSelect[626∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect626 + Connection601 --> PgSelect626 + PgCursor659{{"PgCursor[659∈0] ➊"}}:::plan + PgSelectSingle657{{"PgSelectSingle[657∈0] ➊
ᐸpersonᐳ"}}:::plan + Access658{{"Access[658∈0] ➊
ᐸ652.cursorDetailsᐳ"}}:::plan + PgSelectSingle657 & Access658 --> PgCursor659 + PgCursor665{{"PgCursor[665∈0] ➊"}}:::plan + PgSelectSingle663{{"PgSelectSingle[663∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle663 & Access658 --> PgCursor665 + PgSelect674[["PgSelect[674∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect674 + Connection649 --> PgSelect674 + PgCursor707{{"PgCursor[707∈0] ➊"}}:::plan + PgSelectSingle705{{"PgSelectSingle[705∈0] ➊
ᐸpersonᐳ"}}:::plan + Access706{{"Access[706∈0] ➊
ᐸ700.cursorDetailsᐳ"}}:::plan + PgSelectSingle705 & Access706 --> PgCursor707 + PgCursor713{{"PgCursor[713∈0] ➊"}}:::plan + PgSelectSingle711{{"PgSelectSingle[711∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle711 & Access706 --> PgCursor713 + PgSelect722[["PgSelect[722∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect722 + Connection697 --> PgSelect722 + __InputObject741{{"__InputObject[741∈0] ➊"}}:::plan + Constant595 --> __InputObject741 + PgCursor754{{"PgCursor[754∈0] ➊"}}:::plan + PgSelectSingle752{{"PgSelectSingle[752∈0] ➊
ᐸpersonᐳ"}}:::plan + Access753{{"Access[753∈0] ➊
ᐸ747.cursorDetailsᐳ"}}:::plan + PgSelectSingle752 & Access753 --> PgCursor754 + PgCursor760{{"PgCursor[760∈0] ➊"}}:::plan + PgSelectSingle758{{"PgSelectSingle[758∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle758 & Access753 --> PgCursor760 + PgCursor800{{"PgCursor[800∈0] ➊"}}:::plan + PgSelectSingle798{{"PgSelectSingle[798∈0] ➊
ᐸpostᐳ"}}:::plan + Access799{{"Access[799∈0] ➊
ᐸ793.cursorDetailsᐳ"}}:::plan + PgSelectSingle798 & Access799 --> PgCursor800 + PgCursor806{{"PgCursor[806∈0] ➊"}}:::plan + PgSelectSingle804{{"PgSelectSingle[804∈0] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle804 & Access799 --> PgCursor806 + PgSelect815[["PgSelect[815∈0] ➊
ᐸpost(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect815 + Connection791 --> PgSelect815 + __InputObject829{{"__InputObject[829∈0] ➊"}}:::plan + Constant1021{{"Constant[1021∈0] ➊
ᐸ'192.168.0.1'ᐳ"}}:::plan + Constant1021 --> __InputObject829 + PgCursor843{{"PgCursor[843∈0] ➊"}}:::plan + PgSelectSingle841{{"PgSelectSingle[841∈0] ➊
ᐸpersonᐳ"}}:::plan + Access842{{"Access[842∈0] ➊
ᐸ836.cursorDetailsᐳ"}}:::plan + PgSelectSingle841 & Access842 --> PgCursor843 + PgCursor849{{"PgCursor[849∈0] ➊"}}:::plan + PgSelectSingle847{{"PgSelectSingle[847∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle847 & Access842 --> PgCursor849 + __InputObject909{{"__InputObject[909∈0] ➊"}}:::plan + Constant1022{{"Constant[1022∈0] ➊
ᐸ'192.168.0.0/24'ᐳ"}}:::plan + Constant1022 --> __InputObject909 + PgCursor923{{"PgCursor[923∈0] ➊"}}:::plan + PgSelectSingle921{{"PgSelectSingle[921∈0] ➊
ᐸpersonᐳ"}}:::plan + Access922{{"Access[922∈0] ➊
ᐸ916.cursorDetailsᐳ"}}:::plan + PgSelectSingle921 & Access922 --> PgCursor923 + PgCursor929{{"PgCursor[929∈0] ➊"}}:::plan + PgSelectSingle927{{"PgSelectSingle[927∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle927 & Access922 --> PgCursor929 + __InputObject957{{"__InputObject[957∈0] ➊"}}:::plan + Constant1023{{"Constant[1023∈0] ➊
ᐸ'0000.0000.0000'ᐳ"}}:::plan + Constant1023 --> __InputObject957 + PgCursor971{{"PgCursor[971∈0] ➊"}}:::plan + PgSelectSingle969{{"PgSelectSingle[969∈0] ➊
ᐸpersonᐳ"}}:::plan + Access970{{"Access[970∈0] ➊
ᐸ964.cursorDetailsᐳ"}}:::plan + PgSelectSingle969 & Access970 --> PgCursor971 + PgCursor977{{"PgCursor[977∈0] ➊"}}:::plan + PgSelectSingle975{{"PgSelectSingle[975∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle975 & Access970 --> PgCursor977 + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 + __Value2 --> Access10 + PgPageInfo15{{"PgPageInfo[15∈0] ➊"}}:::plan + Connection12 --> PgPageInfo15 + First17{{"First[17∈0] ➊"}}:::plan + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan PgSelectRows18 --> First17 PgSelect14 --> PgSelectRows18 First17 --> PgSelectSingle19 PgSelect14 --> Access20 - Last23{{"Last[23∈1] ➊"}}:::plan + Last23{{"Last[23∈0] ➊"}}:::plan PgSelectRows18 --> Last23 Last23 --> PgSelectSingle25 - PgSelect14 --> Access30 - Lambda32{{"Lambda[32∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object31 --> Lambda32 - Lambda36{{"Lambda[36∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object35 --> Lambda36 - First38{{"First[38∈1] ➊"}}:::plan - PgSelectRows39[["PgSelectRows[39∈1] ➊"]]:::plan - PgSelectRows39 --> First38 - PgSelect37 --> PgSelectRows39 - PgSelectSingle40{{"PgSelectSingle[40∈1] ➊
ᐸpersonᐳ"}}:::plan - First38 --> PgSelectSingle40 - PgClassExpression41{{"PgClassExpression[41∈1] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle40 --> PgClassExpression41 - __Item44[/"__Item[44∈2]
ᐸ18ᐳ"\]:::itemplan - PgSelectRows18 ==> __Item44 - PgSelectSingle45{{"PgSelectSingle[45∈2]
ᐸpersonᐳ"}}:::plan - __Item44 --> PgSelectSingle45 - PgCursor47{{"PgCursor[47∈3]"}}:::plan - PgSelectSingle45 & Access20 --> PgCursor47 - PgClassExpression48{{"PgClassExpression[48∈3]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression48 - PgClassExpression49{{"PgClassExpression[49∈3]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression49 - PgClassExpression50{{"PgClassExpression[50∈3]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression50 - PgClassExpression51{{"PgClassExpression[51∈3]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈3]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈3]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈3]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression54 - Object82{{"Object[82∈4] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access77{{"Access[77∈4] ➊
ᐸ61.hasMoreᐳ"}}:::plan - Constant1031 & Constant6 & Constant6 & Access77 --> Object82 - PgSelect61[["PgSelect[61∈4] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection60 & Constant1031 --> PgSelect61 - Object78{{"Object[78∈4] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1031 & Constant6 & Access77 --> Object78 - PgCursor68{{"PgCursor[68∈4] ➊"}}:::plan - PgSelectSingle66{{"PgSelectSingle[66∈4] ➊
ᐸpersonᐳ"}}:::plan - Access67{{"Access[67∈4] ➊
ᐸ61.cursorDetailsᐳ"}}:::plan - PgSelectSingle66 & Access67 --> PgCursor68 - PgCursor74{{"PgCursor[74∈4] ➊"}}:::plan - PgSelectSingle72{{"PgSelectSingle[72∈4] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle72 & Access67 --> PgCursor74 - PgSelect84[["PgSelect[84∈4] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection60 --> PgSelect84 - PgPageInfo62{{"PgPageInfo[62∈4] ➊"}}:::plan - Connection60 --> PgPageInfo62 - First64{{"First[64∈4] ➊"}}:::plan - PgSelectRows65[["PgSelectRows[65∈4] ➊"]]:::plan - PgSelectRows65 --> First64 - PgSelect61 --> PgSelectRows65 - First64 --> PgSelectSingle66 - PgSelect61 --> Access67 - Last70{{"Last[70∈4] ➊"}}:::plan - PgSelectRows65 --> Last70 - Last70 --> PgSelectSingle72 - PgSelect61 --> Access77 - Lambda79{{"Lambda[79∈4] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object78 --> Lambda79 - Lambda83{{"Lambda[83∈4] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object82 --> Lambda83 - First85{{"First[85∈4] ➊"}}:::plan - PgSelectRows86[["PgSelectRows[86∈4] ➊"]]:::plan - PgSelectRows86 --> First85 - PgSelect84 --> PgSelectRows86 - PgSelectSingle87{{"PgSelectSingle[87∈4] ➊
ᐸpersonᐳ"}}:::plan - First85 --> PgSelectSingle87 - PgClassExpression88{{"PgClassExpression[88∈4] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle87 --> PgClassExpression88 - __Item91[/"__Item[91∈5]
ᐸ65ᐳ"\]:::itemplan - PgSelectRows65 ==> __Item91 - PgSelectSingle92{{"PgSelectSingle[92∈5]
ᐸpersonᐳ"}}:::plan - __Item91 --> PgSelectSingle92 - PgCursor94{{"PgCursor[94∈6]"}}:::plan - PgSelectSingle92 & Access67 --> PgCursor94 - PgClassExpression95{{"PgClassExpression[95∈6]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression95 - PgClassExpression96{{"PgClassExpression[96∈6]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression96 - PgClassExpression97{{"PgClassExpression[97∈6]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression97 - PgClassExpression98{{"PgClassExpression[98∈6]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression98 - PgClassExpression99{{"PgClassExpression[99∈6]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression99 - PgClassExpression100{{"PgClassExpression[100∈6]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression100 - PgClassExpression101{{"PgClassExpression[101∈6]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression101 - Object129{{"Object[129∈7] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access124{{"Access[124∈7] ➊
ᐸ108.hasMoreᐳ"}}:::plan - Constant6 & Constant1031 & Constant6 & Access124 --> Object129 - PgSelect108[["PgSelect[108∈7] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection107 & Constant1031 --> PgSelect108 - Object125{{"Object[125∈7] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant1031 & Access124 --> Object125 - PgCursor115{{"PgCursor[115∈7] ➊"}}:::plan - PgSelectSingle113{{"PgSelectSingle[113∈7] ➊
ᐸpersonᐳ"}}:::plan - Access114{{"Access[114∈7] ➊
ᐸ108.cursorDetailsᐳ"}}:::plan - PgSelectSingle113 & Access114 --> PgCursor115 - PgCursor121{{"PgCursor[121∈7] ➊"}}:::plan - PgSelectSingle119{{"PgSelectSingle[119∈7] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle119 & Access114 --> PgCursor121 - PgSelect131[["PgSelect[131∈7] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection107 --> PgSelect131 - PgPageInfo109{{"PgPageInfo[109∈7] ➊"}}:::plan - Connection107 --> PgPageInfo109 - First111{{"First[111∈7] ➊"}}:::plan - PgSelectRows112[["PgSelectRows[112∈7] ➊"]]:::plan - PgSelectRows112 --> First111 - PgSelect108 --> PgSelectRows112 - First111 --> PgSelectSingle113 - PgSelect108 --> Access114 - Last117{{"Last[117∈7] ➊"}}:::plan - PgSelectRows112 --> Last117 - Last117 --> PgSelectSingle119 - PgSelect108 --> Access124 - Lambda126{{"Lambda[126∈7] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object125 --> Lambda126 - Lambda130{{"Lambda[130∈7] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object129 --> Lambda130 - First132{{"First[132∈7] ➊"}}:::plan - PgSelectRows133[["PgSelectRows[133∈7] ➊"]]:::plan - PgSelectRows133 --> First132 - PgSelect131 --> PgSelectRows133 - PgSelectSingle134{{"PgSelectSingle[134∈7] ➊
ᐸpersonᐳ"}}:::plan - First132 --> PgSelectSingle134 - PgClassExpression135{{"PgClassExpression[135∈7] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle134 --> PgClassExpression135 - __Item138[/"__Item[138∈8]
ᐸ112ᐳ"\]:::itemplan - PgSelectRows112 ==> __Item138 - PgSelectSingle139{{"PgSelectSingle[139∈8]
ᐸpersonᐳ"}}:::plan - __Item138 --> PgSelectSingle139 - PgCursor141{{"PgCursor[141∈9]"}}:::plan - PgSelectSingle139 & Access114 --> PgCursor141 - PgClassExpression142{{"PgClassExpression[142∈9]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression142 - PgClassExpression143{{"PgClassExpression[143∈9]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression143 - PgClassExpression144{{"PgClassExpression[144∈9]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression144 - PgClassExpression145{{"PgClassExpression[145∈9]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression145 - PgClassExpression146{{"PgClassExpression[146∈9]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression146 - PgClassExpression147{{"PgClassExpression[147∈9]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression147 - PgClassExpression148{{"PgClassExpression[148∈9]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression148 - Object175{{"Object[175∈10] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access170{{"Access[170∈10] ➊
ᐸ154.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access170 --> Object175 - Object171{{"Object[171∈10] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access170 --> Object171 - PgSelect154[["PgSelect[154∈10] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection153 --> PgSelect154 - PgCursor161{{"PgCursor[161∈10] ➊"}}:::plan - PgSelectSingle159{{"PgSelectSingle[159∈10] ➊
ᐸpersonᐳ"}}:::plan - Access160{{"Access[160∈10] ➊
ᐸ154.cursorDetailsᐳ"}}:::plan - PgSelectSingle159 & Access160 --> PgCursor161 - PgCursor167{{"PgCursor[167∈10] ➊"}}:::plan - PgSelectSingle165{{"PgSelectSingle[165∈10] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle165 & Access160 --> PgCursor167 - PgSelect177[["PgSelect[177∈10] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection153 --> PgSelect177 - PgPageInfo155{{"PgPageInfo[155∈10] ➊"}}:::plan - Connection153 --> PgPageInfo155 - First157{{"First[157∈10] ➊"}}:::plan - PgSelectRows158[["PgSelectRows[158∈10] ➊"]]:::plan - PgSelectRows158 --> First157 - PgSelect154 --> PgSelectRows158 - First157 --> PgSelectSingle159 - PgSelect154 --> Access160 - Last163{{"Last[163∈10] ➊"}}:::plan - PgSelectRows158 --> Last163 - Last163 --> PgSelectSingle165 - PgSelect154 --> Access170 - Lambda172{{"Lambda[172∈10] ➊
ᐸhasNextPageCbᐳ"}}:::plan + PgSelect14 --> Access29 + Lambda31{{"Lambda[31∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object30 --> Lambda31 + Lambda35{{"Lambda[35∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object34 --> Lambda35 + First37{{"First[37∈0] ➊"}}:::plan + PgSelectRows38[["PgSelectRows[38∈0] ➊"]]:::plan + PgSelectRows38 --> First37 + PgSelect36 --> PgSelectRows38 + PgSelectSingle39{{"PgSelectSingle[39∈0] ➊
ᐸpersonᐳ"}}:::plan + First37 --> PgSelectSingle39 + PgClassExpression40{{"PgClassExpression[40∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression40 + PgPageInfo61{{"PgPageInfo[61∈0] ➊"}}:::plan + Connection58 --> PgPageInfo61 + First63{{"First[63∈0] ➊"}}:::plan + PgSelectRows64[["PgSelectRows[64∈0] ➊"]]:::plan + PgSelectRows64 --> First63 + PgSelect60 --> PgSelectRows64 + First63 --> PgSelectSingle65 + PgSelect60 --> Access66 + Last69{{"Last[69∈0] ➊"}}:::plan + PgSelectRows64 --> Last69 + Last69 --> PgSelectSingle71 + PgSelect60 --> Access75 + Lambda77{{"Lambda[77∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object76 --> Lambda77 + Lambda81{{"Lambda[81∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object80 --> Lambda81 + First83{{"First[83∈0] ➊"}}:::plan + PgSelectRows84[["PgSelectRows[84∈0] ➊"]]:::plan + PgSelectRows84 --> First83 + PgSelect82 --> PgSelectRows84 + PgSelectSingle85{{"PgSelectSingle[85∈0] ➊
ᐸpersonᐳ"}}:::plan + First83 --> PgSelectSingle85 + PgClassExpression86{{"PgClassExpression[86∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle85 --> PgClassExpression86 + PgPageInfo107{{"PgPageInfo[107∈0] ➊"}}:::plan + Connection104 --> PgPageInfo107 + First109{{"First[109∈0] ➊"}}:::plan + PgSelectRows110[["PgSelectRows[110∈0] ➊"]]:::plan + PgSelectRows110 --> First109 + PgSelect106 --> PgSelectRows110 + First109 --> PgSelectSingle111 + PgSelect106 --> Access112 + Last115{{"Last[115∈0] ➊"}}:::plan + PgSelectRows110 --> Last115 + Last115 --> PgSelectSingle117 + PgSelect106 --> Access121 + Lambda123{{"Lambda[123∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object122 --> Lambda123 + Lambda127{{"Lambda[127∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object126 --> Lambda127 + First129{{"First[129∈0] ➊"}}:::plan + PgSelectRows130[["PgSelectRows[130∈0] ➊"]]:::plan + PgSelectRows130 --> First129 + PgSelect128 --> PgSelectRows130 + PgSelectSingle131{{"PgSelectSingle[131∈0] ➊
ᐸpersonᐳ"}}:::plan + First129 --> PgSelectSingle131 + PgClassExpression132{{"PgClassExpression[132∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle131 --> PgClassExpression132 + PgPageInfo152{{"PgPageInfo[152∈0] ➊"}}:::plan + Connection149 --> PgPageInfo152 + First154{{"First[154∈0] ➊"}}:::plan + PgSelectRows155[["PgSelectRows[155∈0] ➊"]]:::plan + PgSelectRows155 --> First154 + PgSelect151 --> PgSelectRows155 + First154 --> PgSelectSingle156 + PgSelect151 --> Access157 + Last160{{"Last[160∈0] ➊"}}:::plan + PgSelectRows155 --> Last160 + Last160 --> PgSelectSingle162 + PgSelect151 --> Access166 + Lambda168{{"Lambda[168∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object167 --> Lambda168 + Lambda172{{"Lambda[172∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object171 --> Lambda172 - Lambda176{{"Lambda[176∈10] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object175 --> Lambda176 - First178{{"First[178∈10] ➊"}}:::plan - PgSelectRows179[["PgSelectRows[179∈10] ➊"]]:::plan - PgSelectRows179 --> First178 - PgSelect177 --> PgSelectRows179 - PgSelectSingle180{{"PgSelectSingle[180∈10] ➊
ᐸpersonᐳ"}}:::plan - First178 --> PgSelectSingle180 - PgClassExpression181{{"PgClassExpression[181∈10] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle180 --> PgClassExpression181 - __Item184[/"__Item[184∈11]
ᐸ158ᐳ"\]:::itemplan - PgSelectRows158 ==> __Item184 - PgSelectSingle185{{"PgSelectSingle[185∈11]
ᐸpersonᐳ"}}:::plan - __Item184 --> PgSelectSingle185 - PgCursor187{{"PgCursor[187∈12]"}}:::plan - PgSelectSingle185 & Access160 --> PgCursor187 - PgClassExpression188{{"PgClassExpression[188∈12]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle185 --> PgClassExpression188 - PgClassExpression189{{"PgClassExpression[189∈12]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle185 --> PgClassExpression189 - PgClassExpression190{{"PgClassExpression[190∈12]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle185 --> PgClassExpression190 - PgClassExpression191{{"PgClassExpression[191∈12]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle185 --> PgClassExpression191 - PgClassExpression192{{"PgClassExpression[192∈12]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle185 --> PgClassExpression192 - PgClassExpression193{{"PgClassExpression[193∈12]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle185 --> PgClassExpression193 - PgClassExpression194{{"PgClassExpression[194∈12]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle185 --> PgClassExpression194 - Object221{{"Object[221∈13] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access216{{"Access[216∈13] ➊
ᐸ200.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access216 --> Object221 - Object217{{"Object[217∈13] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access216 --> Object217 - PgSelect200[["PgSelect[200∈13] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection199 --> PgSelect200 - PgCursor207{{"PgCursor[207∈13] ➊"}}:::plan - PgSelectSingle205{{"PgSelectSingle[205∈13] ➊
ᐸpersonᐳ"}}:::plan - Access206{{"Access[206∈13] ➊
ᐸ200.cursorDetailsᐳ"}}:::plan - PgSelectSingle205 & Access206 --> PgCursor207 - PgCursor213{{"PgCursor[213∈13] ➊"}}:::plan - PgSelectSingle211{{"PgSelectSingle[211∈13] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle211 & Access206 --> PgCursor213 - PgSelect223[["PgSelect[223∈13] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection199 --> PgSelect223 - PgPageInfo201{{"PgPageInfo[201∈13] ➊"}}:::plan - Connection199 --> PgPageInfo201 - First203{{"First[203∈13] ➊"}}:::plan - PgSelectRows204[["PgSelectRows[204∈13] ➊"]]:::plan - PgSelectRows204 --> First203 - PgSelect200 --> PgSelectRows204 - First203 --> PgSelectSingle205 - PgSelect200 --> Access206 - Last209{{"Last[209∈13] ➊"}}:::plan - PgSelectRows204 --> Last209 - Last209 --> PgSelectSingle211 - PgSelect200 --> Access216 - Lambda218{{"Lambda[218∈13] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object217 --> Lambda218 - Lambda222{{"Lambda[222∈13] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object221 --> Lambda222 - First224{{"First[224∈13] ➊"}}:::plan - PgSelectRows225[["PgSelectRows[225∈13] ➊"]]:::plan - PgSelectRows225 --> First224 - PgSelect223 --> PgSelectRows225 - PgSelectSingle226{{"PgSelectSingle[226∈13] ➊
ᐸpersonᐳ"}}:::plan - First224 --> PgSelectSingle226 - PgClassExpression227{{"PgClassExpression[227∈13] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle226 --> PgClassExpression227 - __Item230[/"__Item[230∈14]
ᐸ204ᐳ"\]:::itemplan - PgSelectRows204 ==> __Item230 - PgSelectSingle231{{"PgSelectSingle[231∈14]
ᐸpersonᐳ"}}:::plan - __Item230 --> PgSelectSingle231 - PgCursor233{{"PgCursor[233∈15]"}}:::plan - PgSelectSingle231 & Access206 --> PgCursor233 - PgClassExpression234{{"PgClassExpression[234∈15]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle231 --> PgClassExpression234 - PgClassExpression235{{"PgClassExpression[235∈15]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle231 --> PgClassExpression235 - PgClassExpression236{{"PgClassExpression[236∈15]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle231 --> PgClassExpression236 - PgClassExpression237{{"PgClassExpression[237∈15]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle231 --> PgClassExpression237 - PgClassExpression238{{"PgClassExpression[238∈15]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle231 --> PgClassExpression238 - PgClassExpression239{{"PgClassExpression[239∈15]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle231 --> PgClassExpression239 - PgClassExpression240{{"PgClassExpression[240∈15]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle231 --> PgClassExpression240 - Object269{{"Object[269∈16] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access264{{"Access[264∈16] ➊
ᐸ248.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access264 --> Object269 - PgSelect248[["PgSelect[248∈16] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection246 & Lambda247 --> PgSelect248 - Object265{{"Object[265∈16] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access264 --> Object265 - PgCursor255{{"PgCursor[255∈16] ➊"}}:::plan - PgSelectSingle253{{"PgSelectSingle[253∈16] ➊
ᐸpersonᐳ"}}:::plan - Access254{{"Access[254∈16] ➊
ᐸ248.cursorDetailsᐳ"}}:::plan - PgSelectSingle253 & Access254 --> PgCursor255 - PgCursor261{{"PgCursor[261∈16] ➊"}}:::plan - PgSelectSingle259{{"PgSelectSingle[259∈16] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle259 & Access254 --> PgCursor261 - PgSelect271[["PgSelect[271∈16] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection246 --> PgSelect271 - PgPageInfo249{{"PgPageInfo[249∈16] ➊"}}:::plan - Connection246 --> PgPageInfo249 - First251{{"First[251∈16] ➊"}}:::plan - PgSelectRows252[["PgSelectRows[252∈16] ➊"]]:::plan - PgSelectRows252 --> First251 - PgSelect248 --> PgSelectRows252 - First251 --> PgSelectSingle253 - PgSelect248 --> Access254 - Last257{{"Last[257∈16] ➊"}}:::plan - PgSelectRows252 --> Last257 - Last257 --> PgSelectSingle259 - PgSelect248 --> Access264 - Lambda266{{"Lambda[266∈16] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object265 --> Lambda266 - Lambda270{{"Lambda[270∈16] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object269 --> Lambda270 - First272{{"First[272∈16] ➊"}}:::plan - PgSelectRows273[["PgSelectRows[273∈16] ➊"]]:::plan - PgSelectRows273 --> First272 - PgSelect271 --> PgSelectRows273 - PgSelectSingle274{{"PgSelectSingle[274∈16] ➊
ᐸpersonᐳ"}}:::plan - First272 --> PgSelectSingle274 - PgClassExpression275{{"PgClassExpression[275∈16] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle274 --> PgClassExpression275 - __Item278[/"__Item[278∈17]
ᐸ252ᐳ"\]:::itemplan - PgSelectRows252 ==> __Item278 - PgSelectSingle279{{"PgSelectSingle[279∈17]
ᐸpersonᐳ"}}:::plan - __Item278 --> PgSelectSingle279 - PgCursor281{{"PgCursor[281∈18]"}}:::plan - PgSelectSingle279 & Access254 --> PgCursor281 - PgClassExpression282{{"PgClassExpression[282∈18]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle279 --> PgClassExpression282 - PgClassExpression283{{"PgClassExpression[283∈18]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle279 --> PgClassExpression283 - PgClassExpression284{{"PgClassExpression[284∈18]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle279 --> PgClassExpression284 - PgClassExpression285{{"PgClassExpression[285∈18]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle279 --> PgClassExpression285 - PgClassExpression286{{"PgClassExpression[286∈18]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle279 --> PgClassExpression286 - PgClassExpression287{{"PgClassExpression[287∈18]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle279 --> PgClassExpression287 - PgClassExpression288{{"PgClassExpression[288∈18]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle279 --> PgClassExpression288 - Object317{{"Object[317∈19] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access312{{"Access[312∈19] ➊
ᐸ296.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access312 --> Object317 - PgSelect296[["PgSelect[296∈19] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection294 & Lambda247 --> PgSelect296 - Object313{{"Object[313∈19] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access312 --> Object313 - PgCursor303{{"PgCursor[303∈19] ➊"}}:::plan - PgSelectSingle301{{"PgSelectSingle[301∈19] ➊
ᐸpersonᐳ"}}:::plan - Access302{{"Access[302∈19] ➊
ᐸ296.cursorDetailsᐳ"}}:::plan - PgSelectSingle301 & Access302 --> PgCursor303 - PgCursor309{{"PgCursor[309∈19] ➊"}}:::plan - PgSelectSingle307{{"PgSelectSingle[307∈19] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle307 & Access302 --> PgCursor309 - PgSelect319[["PgSelect[319∈19] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection294 --> PgSelect319 - PgPageInfo297{{"PgPageInfo[297∈19] ➊"}}:::plan - Connection294 --> PgPageInfo297 - First299{{"First[299∈19] ➊"}}:::plan - PgSelectRows300[["PgSelectRows[300∈19] ➊"]]:::plan - PgSelectRows300 --> First299 - PgSelect296 --> PgSelectRows300 - First299 --> PgSelectSingle301 - PgSelect296 --> Access302 - Last305{{"Last[305∈19] ➊"}}:::plan - PgSelectRows300 --> Last305 - Last305 --> PgSelectSingle307 - PgSelect296 --> Access312 - Lambda314{{"Lambda[314∈19] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object313 --> Lambda314 - Lambda318{{"Lambda[318∈19] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object317 --> Lambda318 - First320{{"First[320∈19] ➊"}}:::plan - PgSelectRows321[["PgSelectRows[321∈19] ➊"]]:::plan - PgSelectRows321 --> First320 - PgSelect319 --> PgSelectRows321 - PgSelectSingle322{{"PgSelectSingle[322∈19] ➊
ᐸpersonᐳ"}}:::plan - First320 --> PgSelectSingle322 - PgClassExpression323{{"PgClassExpression[323∈19] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle322 --> PgClassExpression323 - __Item326[/"__Item[326∈20]
ᐸ300ᐳ"\]:::itemplan - PgSelectRows300 ==> __Item326 - PgSelectSingle327{{"PgSelectSingle[327∈20]
ᐸpersonᐳ"}}:::plan - __Item326 --> PgSelectSingle327 - PgCursor329{{"PgCursor[329∈21]"}}:::plan - PgSelectSingle327 & Access302 --> PgCursor329 - PgClassExpression330{{"PgClassExpression[330∈21]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle327 --> PgClassExpression330 - PgClassExpression331{{"PgClassExpression[331∈21]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle327 --> PgClassExpression331 - PgClassExpression332{{"PgClassExpression[332∈21]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle327 --> PgClassExpression332 - PgClassExpression333{{"PgClassExpression[333∈21]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle327 --> PgClassExpression333 - PgClassExpression334{{"PgClassExpression[334∈21]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle327 --> PgClassExpression334 - PgClassExpression335{{"PgClassExpression[335∈21]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle327 --> PgClassExpression335 - PgClassExpression336{{"PgClassExpression[336∈21]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle327 --> PgClassExpression336 - PgSelect342[["PgSelect[342∈22] ➊
ᐸupdatable_viewᐳ"]]:::plan - Object12 & Connection341 --> PgSelect342 - PgSelectRows343[["PgSelectRows[343∈22] ➊"]]:::plan - PgSelect342 --> PgSelectRows343 - Access346{{"Access[346∈22] ➊
ᐸ342.cursorDetailsᐳ"}}:::plan - PgSelect342 --> Access346 - __Item344[/"__Item[344∈23]
ᐸ343ᐳ"\]:::itemplan - PgSelectRows343 ==> __Item344 - PgSelectSingle345{{"PgSelectSingle[345∈23]
ᐸupdatable_viewᐳ"}}:::plan - __Item344 --> PgSelectSingle345 - PgCursor347{{"PgCursor[347∈24]"}}:::plan - PgSelectSingle345 & Access346 --> PgCursor347 - PgClassExpression348{{"PgClassExpression[348∈24]
ᐸ__updatable_view__.”x”ᐳ"}}:::plan - PgSelectSingle345 --> PgClassExpression348 - PgClassExpression349{{"PgClassExpression[349∈24]
ᐸ__updatabl...w__.”name”ᐳ"}}:::plan - PgSelectSingle345 --> PgClassExpression349 - PgClassExpression350{{"PgClassExpression[350∈24]
ᐸ__updatabl...”constant”ᐳ"}}:::plan - PgSelectSingle345 --> PgClassExpression350 - PgSelect356[["PgSelect[356∈25] ➊
ᐸupdatable_viewᐳ"]]:::plan - Object12 & Connection355 --> PgSelect356 - PgSelectRows357[["PgSelectRows[357∈25] ➊"]]:::plan - PgSelect356 --> PgSelectRows357 - Access360{{"Access[360∈25] ➊
ᐸ356.cursorDetailsᐳ"}}:::plan - PgSelect356 --> Access360 - __Item358[/"__Item[358∈26]
ᐸ357ᐳ"\]:::itemplan - PgSelectRows357 ==> __Item358 - PgSelectSingle359{{"PgSelectSingle[359∈26]
ᐸupdatable_viewᐳ"}}:::plan - __Item358 --> PgSelectSingle359 - PgCursor361{{"PgCursor[361∈27]"}}:::plan - PgSelectSingle359 & Access360 --> PgCursor361 - PgClassExpression362{{"PgClassExpression[362∈27]
ᐸ__updatable_view__.”x”ᐳ"}}:::plan - PgSelectSingle359 --> PgClassExpression362 - PgClassExpression363{{"PgClassExpression[363∈27]
ᐸ__updatabl...w__.”name”ᐳ"}}:::plan - PgSelectSingle359 --> PgClassExpression363 - PgClassExpression364{{"PgClassExpression[364∈27]
ᐸ__updatabl...”constant”ᐳ"}}:::plan - PgSelectSingle359 --> PgClassExpression364 - Object393{{"Object[393∈28] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access388{{"Access[388∈28] ➊
ᐸ372.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access388 --> Object393 - PgSelect372[["PgSelect[372∈28] ➊
ᐸpost+1ᐳ"]]:::plan - Object12 & Constant1031 & Connection371 --> PgSelect372 - Object389{{"Object[389∈28] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access388 --> Object389 - PgSelect395[["PgSelect[395∈28] ➊
ᐸpost(aggregate)ᐳ"]]:::plan - Object12 & Constant1031 & Connection371 --> PgSelect395 - PgCursor379{{"PgCursor[379∈28] ➊"}}:::plan - PgSelectSingle377{{"PgSelectSingle[377∈28] ➊
ᐸpostᐳ"}}:::plan - Access378{{"Access[378∈28] ➊
ᐸ372.cursorDetailsᐳ"}}:::plan - PgSelectSingle377 & Access378 --> PgCursor379 - PgCursor385{{"PgCursor[385∈28] ➊"}}:::plan - PgSelectSingle383{{"PgSelectSingle[383∈28] ➊
ᐸpostᐳ"}}:::plan - PgSelectSingle383 & Access378 --> PgCursor385 - PgPageInfo373{{"PgPageInfo[373∈28] ➊"}}:::plan - Connection371 --> PgPageInfo373 - First375{{"First[375∈28] ➊"}}:::plan - PgSelectRows376[["PgSelectRows[376∈28] ➊"]]:::plan - PgSelectRows376 --> First375 - PgSelect372 --> PgSelectRows376 - First375 --> PgSelectSingle377 - PgSelect372 --> Access378 - Last381{{"Last[381∈28] ➊"}}:::plan - PgSelectRows376 --> Last381 - Last381 --> PgSelectSingle383 - PgSelect372 --> Access388 - Lambda390{{"Lambda[390∈28] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object389 --> Lambda390 - Lambda394{{"Lambda[394∈28] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object393 --> Lambda394 - First396{{"First[396∈28] ➊"}}:::plan - PgSelectRows397[["PgSelectRows[397∈28] ➊"]]:::plan - PgSelectRows397 --> First396 - PgSelect395 --> PgSelectRows397 - PgSelectSingle398{{"PgSelectSingle[398∈28] ➊
ᐸpostᐳ"}}:::plan - First396 --> PgSelectSingle398 - PgClassExpression399{{"PgClassExpression[399∈28] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle398 --> PgClassExpression399 - __Item402[/"__Item[402∈29]
ᐸ376ᐳ"\]:::itemplan - PgSelectRows376 ==> __Item402 - PgSelectSingle403{{"PgSelectSingle[403∈29]
ᐸpostᐳ"}}:::plan - __Item402 --> PgSelectSingle403 - PgCursor405{{"PgCursor[405∈30]"}}:::plan - PgSelectSingle403 & Access378 --> PgCursor405 - PgClassExpression406{{"PgClassExpression[406∈30]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle403 --> PgClassExpression406 - PgClassExpression407{{"PgClassExpression[407∈30]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle403 --> PgClassExpression407 - PgSelect416[["PgSelect[416∈31] ➊
ᐸpost+1ᐳ"]]:::plan - Object12 & Constant1031 & Connection415 & Constant1031 --> PgSelect416 - Object437{{"Object[437∈31] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access432{{"Access[432∈31] ➊
ᐸ416.hasMoreᐳ"}}:::plan - Constant1031 & Constant6 & Constant6 & Access432 --> Object437 - Object433{{"Object[433∈31] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1031 & Constant6 & Access432 --> Object433 - PgSelect439[["PgSelect[439∈31] ➊
ᐸpost(aggregate)ᐳ"]]:::plan - Object12 & Constant1031 & Connection415 --> PgSelect439 - PgCursor423{{"PgCursor[423∈31] ➊"}}:::plan - PgSelectSingle421{{"PgSelectSingle[421∈31] ➊
ᐸpostᐳ"}}:::plan - Access422{{"Access[422∈31] ➊
ᐸ416.cursorDetailsᐳ"}}:::plan - PgSelectSingle421 & Access422 --> PgCursor423 - PgCursor429{{"PgCursor[429∈31] ➊"}}:::plan - PgSelectSingle427{{"PgSelectSingle[427∈31] ➊
ᐸpostᐳ"}}:::plan - PgSelectSingle427 & Access422 --> PgCursor429 - PgPageInfo417{{"PgPageInfo[417∈31] ➊"}}:::plan - Connection415 --> PgPageInfo417 - First419{{"First[419∈31] ➊"}}:::plan - PgSelectRows420[["PgSelectRows[420∈31] ➊"]]:::plan - PgSelectRows420 --> First419 - PgSelect416 --> PgSelectRows420 - First419 --> PgSelectSingle421 - PgSelect416 --> Access422 - Last425{{"Last[425∈31] ➊"}}:::plan - PgSelectRows420 --> Last425 - Last425 --> PgSelectSingle427 - PgSelect416 --> Access432 - Lambda434{{"Lambda[434∈31] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object433 --> Lambda434 - Lambda438{{"Lambda[438∈31] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object437 --> Lambda438 - First440{{"First[440∈31] ➊"}}:::plan - PgSelectRows441[["PgSelectRows[441∈31] ➊"]]:::plan - PgSelectRows441 --> First440 - PgSelect439 --> PgSelectRows441 - PgSelectSingle442{{"PgSelectSingle[442∈31] ➊
ᐸpostᐳ"}}:::plan - First440 --> PgSelectSingle442 - PgClassExpression443{{"PgClassExpression[443∈31] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle442 --> PgClassExpression443 - __Item446[/"__Item[446∈32]
ᐸ420ᐳ"\]:::itemplan - PgSelectRows420 ==> __Item446 - PgSelectSingle447{{"PgSelectSingle[447∈32]
ᐸpostᐳ"}}:::plan - __Item446 --> PgSelectSingle447 - PgCursor449{{"PgCursor[449∈33]"}}:::plan - PgSelectSingle447 & Access422 --> PgCursor449 - PgClassExpression450{{"PgClassExpression[450∈33]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle447 --> PgClassExpression450 - PgClassExpression451{{"PgClassExpression[451∈33]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle447 --> PgClassExpression451 - PgSelect460[["PgSelect[460∈34] ➊
ᐸpost+1ᐳ"]]:::plan - Object12 & Constant1033 & Connection459 & Constant1033 --> PgSelect460 - Object481{{"Object[481∈34] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access476{{"Access[476∈34] ➊
ᐸ460.hasMoreᐳ"}}:::plan - Constant6 & Constant1033 & Constant6 & Access476 --> Object481 - Object477{{"Object[477∈34] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant1033 & Access476 --> Object477 - PgSelect483[["PgSelect[483∈34] ➊
ᐸpost(aggregate)ᐳ"]]:::plan - Object12 & Constant1033 & Connection459 --> PgSelect483 - PgCursor467{{"PgCursor[467∈34] ➊"}}:::plan - PgSelectSingle465{{"PgSelectSingle[465∈34] ➊
ᐸpostᐳ"}}:::plan - Access466{{"Access[466∈34] ➊
ᐸ460.cursorDetailsᐳ"}}:::plan - PgSelectSingle465 & Access466 --> PgCursor467 - PgCursor473{{"PgCursor[473∈34] ➊"}}:::plan - PgSelectSingle471{{"PgSelectSingle[471∈34] ➊
ᐸpostᐳ"}}:::plan - PgSelectSingle471 & Access466 --> PgCursor473 - PgPageInfo461{{"PgPageInfo[461∈34] ➊"}}:::plan - Connection459 --> PgPageInfo461 - First463{{"First[463∈34] ➊"}}:::plan - PgSelectRows464[["PgSelectRows[464∈34] ➊"]]:::plan - PgSelectRows464 --> First463 - PgSelect460 --> PgSelectRows464 - First463 --> PgSelectSingle465 - PgSelect460 --> Access466 - Last469{{"Last[469∈34] ➊"}}:::plan - PgSelectRows464 --> Last469 - Last469 --> PgSelectSingle471 - PgSelect460 --> Access476 - Lambda478{{"Lambda[478∈34] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object477 --> Lambda478 - Lambda482{{"Lambda[482∈34] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object481 --> Lambda482 - First484{{"First[484∈34] ➊"}}:::plan - PgSelectRows485[["PgSelectRows[485∈34] ➊"]]:::plan - PgSelectRows485 --> First484 - PgSelect483 --> PgSelectRows485 - PgSelectSingle486{{"PgSelectSingle[486∈34] ➊
ᐸpostᐳ"}}:::plan - First484 --> PgSelectSingle486 - PgClassExpression487{{"PgClassExpression[487∈34] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle486 --> PgClassExpression487 - __Item490[/"__Item[490∈35]
ᐸ464ᐳ"\]:::itemplan - PgSelectRows464 ==> __Item490 - PgSelectSingle491{{"PgSelectSingle[491∈35]
ᐸpostᐳ"}}:::plan - __Item490 --> PgSelectSingle491 - PgCursor493{{"PgCursor[493∈36]"}}:::plan - PgSelectSingle491 & Access466 --> PgCursor493 - PgClassExpression494{{"PgClassExpression[494∈36]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle491 --> PgClassExpression494 - PgClassExpression495{{"PgClassExpression[495∈36]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle491 --> PgClassExpression495 - PgSelect503[["PgSelect[503∈37] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection502 & Constant1034 & Constant1033 --> PgSelect503 - Object524{{"Object[524∈37] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access519{{"Access[519∈37] ➊
ᐸ503.hasMoreᐳ"}}:::plan - Constant1034 & Constant6 & Constant1033 & Access519 --> Object524 - Object520{{"Object[520∈37] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1034 & Constant6 & Access519 --> Object520 - PgCursor510{{"PgCursor[510∈37] ➊"}}:::plan - PgSelectSingle508{{"PgSelectSingle[508∈37] ➊
ᐸpersonᐳ"}}:::plan - Access509{{"Access[509∈37] ➊
ᐸ503.cursorDetailsᐳ"}}:::plan - PgSelectSingle508 & Access509 --> PgCursor510 - PgCursor516{{"PgCursor[516∈37] ➊"}}:::plan - PgSelectSingle514{{"PgSelectSingle[514∈37] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle514 & Access509 --> PgCursor516 - PgSelect526[["PgSelect[526∈37] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection502 --> PgSelect526 - PgPageInfo504{{"PgPageInfo[504∈37] ➊"}}:::plan - Connection502 --> PgPageInfo504 - First506{{"First[506∈37] ➊"}}:::plan - PgSelectRows507[["PgSelectRows[507∈37] ➊"]]:::plan - PgSelectRows507 --> First506 - PgSelect503 --> PgSelectRows507 - First506 --> PgSelectSingle508 - PgSelect503 --> Access509 - Last512{{"Last[512∈37] ➊"}}:::plan - PgSelectRows507 --> Last512 - Last512 --> PgSelectSingle514 - PgSelect503 --> Access519 - Lambda521{{"Lambda[521∈37] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object520 --> Lambda521 - Lambda525{{"Lambda[525∈37] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object524 --> Lambda525 - First527{{"First[527∈37] ➊"}}:::plan - PgSelectRows528[["PgSelectRows[528∈37] ➊"]]:::plan - PgSelectRows528 --> First527 - PgSelect526 --> PgSelectRows528 - PgSelectSingle529{{"PgSelectSingle[529∈37] ➊
ᐸpersonᐳ"}}:::plan - First527 --> PgSelectSingle529 - PgClassExpression530{{"PgClassExpression[530∈37] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle529 --> PgClassExpression530 - __Item533[/"__Item[533∈38]
ᐸ507ᐳ"\]:::itemplan - PgSelectRows507 ==> __Item533 - PgSelectSingle534{{"PgSelectSingle[534∈38]
ᐸpersonᐳ"}}:::plan - __Item533 --> PgSelectSingle534 - PgCursor536{{"PgCursor[536∈39]"}}:::plan - PgSelectSingle534 & Access509 --> PgCursor536 - PgClassExpression537{{"PgClassExpression[537∈39]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle534 --> PgClassExpression537 - PgClassExpression538{{"PgClassExpression[538∈39]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle534 --> PgClassExpression538 - PgClassExpression539{{"PgClassExpression[539∈39]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle534 --> PgClassExpression539 - PgClassExpression540{{"PgClassExpression[540∈39]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle534 --> PgClassExpression540 - PgClassExpression541{{"PgClassExpression[541∈39]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle534 --> PgClassExpression541 - PgClassExpression542{{"PgClassExpression[542∈39]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle534 --> PgClassExpression542 - PgClassExpression543{{"PgClassExpression[543∈39]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle534 --> PgClassExpression543 - Object571{{"Object[571∈40] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access566{{"Access[566∈40] ➊
ᐸ550.hasMoreᐳ"}}:::plan - Constant1035 & Constant6 & Constant6 & Access566 --> Object571 - PgSelect550[["PgSelect[550∈40] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection549 & Constant1035 --> PgSelect550 - Object567{{"Object[567∈40] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1035 & Constant6 & Access566 --> Object567 - PgCursor557{{"PgCursor[557∈40] ➊"}}:::plan - PgSelectSingle555{{"PgSelectSingle[555∈40] ➊
ᐸpersonᐳ"}}:::plan - Access556{{"Access[556∈40] ➊
ᐸ550.cursorDetailsᐳ"}}:::plan - PgSelectSingle555 & Access556 --> PgCursor557 - PgCursor563{{"PgCursor[563∈40] ➊"}}:::plan - PgSelectSingle561{{"PgSelectSingle[561∈40] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle561 & Access556 --> PgCursor563 - PgSelect573[["PgSelect[573∈40] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection549 --> PgSelect573 - PgPageInfo551{{"PgPageInfo[551∈40] ➊"}}:::plan - Connection549 --> PgPageInfo551 - First553{{"First[553∈40] ➊"}}:::plan - PgSelectRows554[["PgSelectRows[554∈40] ➊"]]:::plan - PgSelectRows554 --> First553 - PgSelect550 --> PgSelectRows554 - First553 --> PgSelectSingle555 - PgSelect550 --> Access556 - Last559{{"Last[559∈40] ➊"}}:::plan - PgSelectRows554 --> Last559 - Last559 --> PgSelectSingle561 - PgSelect550 --> Access566 - Lambda568{{"Lambda[568∈40] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object567 --> Lambda568 - Lambda572{{"Lambda[572∈40] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object571 --> Lambda572 - First574{{"First[574∈40] ➊"}}:::plan - PgSelectRows575[["PgSelectRows[575∈40] ➊"]]:::plan - PgSelectRows575 --> First574 - PgSelect573 --> PgSelectRows575 - PgSelectSingle576{{"PgSelectSingle[576∈40] ➊
ᐸpersonᐳ"}}:::plan - First574 --> PgSelectSingle576 - PgClassExpression577{{"PgClassExpression[577∈40] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle576 --> PgClassExpression577 - __Item580[/"__Item[580∈41]
ᐸ554ᐳ"\]:::itemplan - PgSelectRows554 ==> __Item580 - PgSelectSingle581{{"PgSelectSingle[581∈41]
ᐸpersonᐳ"}}:::plan - __Item580 --> PgSelectSingle581 - PgCursor583{{"PgCursor[583∈42]"}}:::plan - PgSelectSingle581 & Access556 --> PgCursor583 - PgClassExpression584{{"PgClassExpression[584∈42]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle581 --> PgClassExpression584 - PgClassExpression585{{"PgClassExpression[585∈42]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle581 --> PgClassExpression585 - PgClassExpression586{{"PgClassExpression[586∈42]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle581 --> PgClassExpression586 - PgClassExpression587{{"PgClassExpression[587∈42]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle581 --> PgClassExpression587 - PgClassExpression588{{"PgClassExpression[588∈42]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle581 --> PgClassExpression588 - PgClassExpression589{{"PgClassExpression[589∈42]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle581 --> PgClassExpression589 - PgClassExpression590{{"PgClassExpression[590∈42]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle581 --> PgClassExpression590 - PgSelect598[["PgSelect[598∈43] ➊
ᐸedge_caseᐳ"]]:::plan - Object12 & Constant1031 & Connection597 --> PgSelect598 - PgSelectRows599[["PgSelectRows[599∈43] ➊"]]:::plan - PgSelect598 --> PgSelectRows599 - __Item600[/"__Item[600∈44]
ᐸ599ᐳ"\]:::itemplan - PgSelectRows599 ==> __Item600 - PgSelectSingle601{{"PgSelectSingle[601∈44]
ᐸedge_caseᐳ"}}:::plan - __Item600 --> PgSelectSingle601 - PgClassExpression602{{"PgClassExpression[602∈45]
ᐸ__edge_case__.”row_id”ᐳ"}}:::plan - PgSelectSingle601 --> PgClassExpression602 - PgSelect613[["PgSelect[613∈46] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection611 & Lambda612 & Constant1036 & Constant1031 --> PgSelect613 - Object634{{"Object[634∈46] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access628{{"Access[628∈46] ➊
ᐸ613.hasMoreᐳ"}}:::plan - Constant1036 & Constant1031 & Constant6 & Access628 --> Object634 - Object629{{"Object[629∈46] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1036 & Constant1031 & Access628 --> Object629 - PgCursor620{{"PgCursor[620∈46] ➊"}}:::plan - PgSelectSingle618{{"PgSelectSingle[618∈46] ➊
ᐸpersonᐳ"}}:::plan - Access619{{"Access[619∈46] ➊
ᐸ613.cursorDetailsᐳ"}}:::plan - PgSelectSingle618 & Access619 --> PgCursor620 - PgCursor626{{"PgCursor[626∈46] ➊"}}:::plan - PgSelectSingle624{{"PgSelectSingle[624∈46] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle624 & Access619 --> PgCursor626 - PgSelect636[["PgSelect[636∈46] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection611 --> PgSelect636 - PgPageInfo614{{"PgPageInfo[614∈46] ➊"}}:::plan - Connection611 --> PgPageInfo614 - First616{{"First[616∈46] ➊"}}:::plan - PgSelectRows617[["PgSelectRows[617∈46] ➊"]]:::plan - PgSelectRows617 --> First616 - PgSelect613 --> PgSelectRows617 - First616 --> PgSelectSingle618 - PgSelect613 --> Access619 - Last622{{"Last[622∈46] ➊"}}:::plan - PgSelectRows617 --> Last622 - Last622 --> PgSelectSingle624 - PgSelect613 --> Access628 - Lambda630{{"Lambda[630∈46] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object629 --> Lambda630 - Lambda635{{"Lambda[635∈46] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object634 --> Lambda635 - First637{{"First[637∈46] ➊"}}:::plan - PgSelectRows638[["PgSelectRows[638∈46] ➊"]]:::plan - PgSelectRows638 --> First637 - PgSelect636 --> PgSelectRows638 - PgSelectSingle639{{"PgSelectSingle[639∈46] ➊
ᐸpersonᐳ"}}:::plan - First637 --> PgSelectSingle639 - PgClassExpression640{{"PgClassExpression[640∈46] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle639 --> PgClassExpression640 - __Item643[/"__Item[643∈47]
ᐸ617ᐳ"\]:::itemplan - PgSelectRows617 ==> __Item643 - PgSelectSingle644{{"PgSelectSingle[644∈47]
ᐸpersonᐳ"}}:::plan - __Item643 --> PgSelectSingle644 - PgCursor646{{"PgCursor[646∈48]"}}:::plan - PgSelectSingle644 & Access619 --> PgCursor646 - PgClassExpression647{{"PgClassExpression[647∈48]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle644 --> PgClassExpression647 - PgClassExpression648{{"PgClassExpression[648∈48]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle644 --> PgClassExpression648 - PgClassExpression649{{"PgClassExpression[649∈48]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle644 --> PgClassExpression649 - PgClassExpression650{{"PgClassExpression[650∈48]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle644 --> PgClassExpression650 - PgClassExpression651{{"PgClassExpression[651∈48]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle644 --> PgClassExpression651 - PgClassExpression652{{"PgClassExpression[652∈48]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle644 --> PgClassExpression652 - PgClassExpression653{{"PgClassExpression[653∈48]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle644 --> PgClassExpression653 - PgSelect662[["PgSelect[662∈49] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection660 & Lambda247 & Constant1033 --> PgSelect662 - Object683{{"Object[683∈49] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access678{{"Access[678∈49] ➊
ᐸ662.hasMoreᐳ"}}:::plan - Constant1033 & Constant6 & Constant6 & Access678 --> Object683 - Object679{{"Object[679∈49] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1033 & Constant6 & Access678 --> Object679 - PgCursor669{{"PgCursor[669∈49] ➊"}}:::plan - PgSelectSingle667{{"PgSelectSingle[667∈49] ➊
ᐸpersonᐳ"}}:::plan - Access668{{"Access[668∈49] ➊
ᐸ662.cursorDetailsᐳ"}}:::plan - PgSelectSingle667 & Access668 --> PgCursor669 - PgCursor675{{"PgCursor[675∈49] ➊"}}:::plan - PgSelectSingle673{{"PgSelectSingle[673∈49] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle673 & Access668 --> PgCursor675 - PgSelect685[["PgSelect[685∈49] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection660 --> PgSelect685 - PgPageInfo663{{"PgPageInfo[663∈49] ➊"}}:::plan - Connection660 --> PgPageInfo663 - First665{{"First[665∈49] ➊"}}:::plan - PgSelectRows666[["PgSelectRows[666∈49] ➊"]]:::plan - PgSelectRows666 --> First665 - PgSelect662 --> PgSelectRows666 - First665 --> PgSelectSingle667 - PgSelect662 --> Access668 - Last671{{"Last[671∈49] ➊"}}:::plan - PgSelectRows666 --> Last671 - Last671 --> PgSelectSingle673 - PgSelect662 --> Access678 - Lambda680{{"Lambda[680∈49] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object679 --> Lambda680 - Lambda684{{"Lambda[684∈49] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object683 --> Lambda684 - First686{{"First[686∈49] ➊"}}:::plan - PgSelectRows687[["PgSelectRows[687∈49] ➊"]]:::plan - PgSelectRows687 --> First686 - PgSelect685 --> PgSelectRows687 - PgSelectSingle688{{"PgSelectSingle[688∈49] ➊
ᐸpersonᐳ"}}:::plan - First686 --> PgSelectSingle688 - PgClassExpression689{{"PgClassExpression[689∈49] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle688 --> PgClassExpression689 - __Item692[/"__Item[692∈50]
ᐸ666ᐳ"\]:::itemplan - PgSelectRows666 ==> __Item692 - PgSelectSingle693{{"PgSelectSingle[693∈50]
ᐸpersonᐳ"}}:::plan - __Item692 --> PgSelectSingle693 - PgCursor695{{"PgCursor[695∈51]"}}:::plan - PgSelectSingle693 & Access668 --> PgCursor695 - PgClassExpression696{{"PgClassExpression[696∈51]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle693 --> PgClassExpression696 - PgClassExpression697{{"PgClassExpression[697∈51]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle693 --> PgClassExpression697 - PgClassExpression698{{"PgClassExpression[698∈51]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle693 --> PgClassExpression698 - PgClassExpression699{{"PgClassExpression[699∈51]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle693 --> PgClassExpression699 - PgClassExpression700{{"PgClassExpression[700∈51]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle693 --> PgClassExpression700 - PgClassExpression701{{"PgClassExpression[701∈51]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle693 --> PgClassExpression701 - PgClassExpression702{{"PgClassExpression[702∈51]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle693 --> PgClassExpression702 - PgSelect711[["PgSelect[711∈52] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection709 & Lambda247 & Constant1033 --> PgSelect711 - Object732{{"Object[732∈52] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access727{{"Access[727∈52] ➊
ᐸ711.hasMoreᐳ"}}:::plan - Constant6 & Constant1033 & Constant6 & Access727 --> Object732 - Object728{{"Object[728∈52] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant1033 & Access727 --> Object728 - PgCursor718{{"PgCursor[718∈52] ➊"}}:::plan - PgSelectSingle716{{"PgSelectSingle[716∈52] ➊
ᐸpersonᐳ"}}:::plan - Access717{{"Access[717∈52] ➊
ᐸ711.cursorDetailsᐳ"}}:::plan - PgSelectSingle716 & Access717 --> PgCursor718 - PgCursor724{{"PgCursor[724∈52] ➊"}}:::plan - PgSelectSingle722{{"PgSelectSingle[722∈52] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle722 & Access717 --> PgCursor724 - PgSelect734[["PgSelect[734∈52] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection709 --> PgSelect734 - PgPageInfo712{{"PgPageInfo[712∈52] ➊"}}:::plan - Connection709 --> PgPageInfo712 - First714{{"First[714∈52] ➊"}}:::plan - PgSelectRows715[["PgSelectRows[715∈52] ➊"]]:::plan - PgSelectRows715 --> First714 - PgSelect711 --> PgSelectRows715 - First714 --> PgSelectSingle716 - PgSelect711 --> Access717 - Last720{{"Last[720∈52] ➊"}}:::plan - PgSelectRows715 --> Last720 - Last720 --> PgSelectSingle722 - PgSelect711 --> Access727 - Lambda729{{"Lambda[729∈52] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object728 --> Lambda729 - Lambda733{{"Lambda[733∈52] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object732 --> Lambda733 - First735{{"First[735∈52] ➊"}}:::plan - PgSelectRows736[["PgSelectRows[736∈52] ➊"]]:::plan - PgSelectRows736 --> First735 - PgSelect734 --> PgSelectRows736 - PgSelectSingle737{{"PgSelectSingle[737∈52] ➊
ᐸpersonᐳ"}}:::plan - First735 --> PgSelectSingle737 - PgClassExpression738{{"PgClassExpression[738∈52] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle737 --> PgClassExpression738 - __Item741[/"__Item[741∈53]
ᐸ715ᐳ"\]:::itemplan - PgSelectRows715 ==> __Item741 - PgSelectSingle742{{"PgSelectSingle[742∈53]
ᐸpersonᐳ"}}:::plan - __Item741 --> PgSelectSingle742 - PgCursor744{{"PgCursor[744∈54]"}}:::plan - PgSelectSingle742 & Access717 --> PgCursor744 - PgClassExpression745{{"PgClassExpression[745∈54]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle742 --> PgClassExpression745 - PgClassExpression746{{"PgClassExpression[746∈54]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle742 --> PgClassExpression746 - PgClassExpression747{{"PgClassExpression[747∈54]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle742 --> PgClassExpression747 - PgClassExpression748{{"PgClassExpression[748∈54]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle742 --> PgClassExpression748 - PgClassExpression749{{"PgClassExpression[749∈54]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle742 --> PgClassExpression749 - PgClassExpression750{{"PgClassExpression[750∈54]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle742 --> PgClassExpression750 - PgClassExpression751{{"PgClassExpression[751∈54]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle742 --> PgClassExpression751 - Object780{{"Object[780∈55] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access775{{"Access[775∈55] ➊
ᐸ759.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access775 --> Object780 - Object776{{"Object[776∈55] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access775 --> Object776 - PgSelect759[["PgSelect[759∈55] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection758 --> PgSelect759 - PgCursor766{{"PgCursor[766∈55] ➊"}}:::plan - PgSelectSingle764{{"PgSelectSingle[764∈55] ➊
ᐸpersonᐳ"}}:::plan - Access765{{"Access[765∈55] ➊
ᐸ759.cursorDetailsᐳ"}}:::plan - PgSelectSingle764 & Access765 --> PgCursor766 - PgCursor772{{"PgCursor[772∈55] ➊"}}:::plan - PgSelectSingle770{{"PgSelectSingle[770∈55] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle770 & Access765 --> PgCursor772 - PgSelect782[["PgSelect[782∈55] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection758 --> PgSelect782 - PgPageInfo760{{"PgPageInfo[760∈55] ➊"}}:::plan - Connection758 --> PgPageInfo760 - First762{{"First[762∈55] ➊"}}:::plan - PgSelectRows763[["PgSelectRows[763∈55] ➊"]]:::plan - PgSelectRows763 --> First762 - PgSelect759 --> PgSelectRows763 - First762 --> PgSelectSingle764 - PgSelect759 --> Access765 - Last768{{"Last[768∈55] ➊"}}:::plan - PgSelectRows763 --> Last768 - Last768 --> PgSelectSingle770 - PgSelect759 --> Access775 - Lambda777{{"Lambda[777∈55] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object776 --> Lambda777 - Lambda781{{"Lambda[781∈55] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object780 --> Lambda781 - First783{{"First[783∈55] ➊"}}:::plan - PgSelectRows784[["PgSelectRows[784∈55] ➊"]]:::plan - PgSelectRows784 --> First783 - PgSelect782 --> PgSelectRows784 - PgSelectSingle785{{"PgSelectSingle[785∈55] ➊
ᐸpersonᐳ"}}:::plan - First783 --> PgSelectSingle785 - PgClassExpression786{{"PgClassExpression[786∈55] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle785 --> PgClassExpression786 - __Item789[/"__Item[789∈56]
ᐸ763ᐳ"\]:::itemplan - PgSelectRows763 ==> __Item789 - PgSelectSingle790{{"PgSelectSingle[790∈56]
ᐸpersonᐳ"}}:::plan - __Item789 --> PgSelectSingle790 - PgCursor792{{"PgCursor[792∈57]"}}:::plan - PgSelectSingle790 & Access765 --> PgCursor792 - PgClassExpression793{{"PgClassExpression[793∈57]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle790 --> PgClassExpression793 - PgClassExpression794{{"PgClassExpression[794∈57]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle790 --> PgClassExpression794 - PgClassExpression795{{"PgClassExpression[795∈57]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle790 --> PgClassExpression795 - PgClassExpression796{{"PgClassExpression[796∈57]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle790 --> PgClassExpression796 - PgClassExpression797{{"PgClassExpression[797∈57]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle790 --> PgClassExpression797 - PgClassExpression798{{"PgClassExpression[798∈57]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle790 --> PgClassExpression798 - PgClassExpression799{{"PgClassExpression[799∈57]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle790 --> PgClassExpression799 - Object828{{"Object[828∈58] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access823{{"Access[823∈58] ➊
ᐸ807.hasMoreᐳ"}}:::plan - Constant1034 & Constant6 & Constant6 & Access823 --> Object828 - PgSelect807[["PgSelect[807∈58] ➊
ᐸpost+1ᐳ"]]:::plan - Object12 & Connection806 & Constant1034 --> PgSelect807 - Object824{{"Object[824∈58] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1034 & Constant6 & Access823 --> Object824 - PgCursor814{{"PgCursor[814∈58] ➊"}}:::plan - PgSelectSingle812{{"PgSelectSingle[812∈58] ➊
ᐸpostᐳ"}}:::plan - Access813{{"Access[813∈58] ➊
ᐸ807.cursorDetailsᐳ"}}:::plan - PgSelectSingle812 & Access813 --> PgCursor814 - PgCursor820{{"PgCursor[820∈58] ➊"}}:::plan - PgSelectSingle818{{"PgSelectSingle[818∈58] ➊
ᐸpostᐳ"}}:::plan - PgSelectSingle818 & Access813 --> PgCursor820 - PgSelect830[["PgSelect[830∈58] ➊
ᐸpost(aggregate)ᐳ"]]:::plan - Object12 & Connection806 --> PgSelect830 - PgPageInfo808{{"PgPageInfo[808∈58] ➊"}}:::plan - Connection806 --> PgPageInfo808 - First810{{"First[810∈58] ➊"}}:::plan - PgSelectRows811[["PgSelectRows[811∈58] ➊"]]:::plan - PgSelectRows811 --> First810 - PgSelect807 --> PgSelectRows811 - First810 --> PgSelectSingle812 - PgSelect807 --> Access813 - Last816{{"Last[816∈58] ➊"}}:::plan - PgSelectRows811 --> Last816 - Last816 --> PgSelectSingle818 - PgSelect807 --> Access823 - Lambda825{{"Lambda[825∈58] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object824 --> Lambda825 - Lambda829{{"Lambda[829∈58] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object828 --> Lambda829 - First831{{"First[831∈58] ➊"}}:::plan - PgSelectRows832[["PgSelectRows[832∈58] ➊"]]:::plan - PgSelectRows832 --> First831 - PgSelect830 --> PgSelectRows832 - PgSelectSingle833{{"PgSelectSingle[833∈58] ➊
ᐸpostᐳ"}}:::plan - First831 --> PgSelectSingle833 - PgClassExpression834{{"PgClassExpression[834∈58] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle833 --> PgClassExpression834 - __Item837[/"__Item[837∈59]
ᐸ811ᐳ"\]:::itemplan - PgSelectRows811 ==> __Item837 - PgSelectSingle838{{"PgSelectSingle[838∈59]
ᐸpostᐳ"}}:::plan - __Item837 --> PgSelectSingle838 - PgCursor840{{"PgCursor[840∈60]"}}:::plan - PgSelectSingle838 & Access813 --> PgCursor840 - PgClassExpression841{{"PgClassExpression[841∈60]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle838 --> PgClassExpression841 - PgClassExpression842{{"PgClassExpression[842∈60]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle838 --> PgClassExpression842 - Object871{{"Object[871∈61] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access866{{"Access[866∈61] ➊
ᐸ850.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access866 --> Object871 - PgSelect850[["PgSelect[850∈61] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Constant1038 & Connection849 --> PgSelect850 - Object867{{"Object[867∈61] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access866 --> Object867 - PgSelect873[["PgSelect[873∈61] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Constant1038 & Connection849 --> PgSelect873 - PgCursor857{{"PgCursor[857∈61] ➊"}}:::plan - PgSelectSingle855{{"PgSelectSingle[855∈61] ➊
ᐸpersonᐳ"}}:::plan - Access856{{"Access[856∈61] ➊
ᐸ850.cursorDetailsᐳ"}}:::plan - PgSelectSingle855 & Access856 --> PgCursor857 - PgCursor863{{"PgCursor[863∈61] ➊"}}:::plan - PgSelectSingle861{{"PgSelectSingle[861∈61] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle861 & Access856 --> PgCursor863 - PgPageInfo851{{"PgPageInfo[851∈61] ➊"}}:::plan - Connection849 --> PgPageInfo851 - First853{{"First[853∈61] ➊"}}:::plan - PgSelectRows854[["PgSelectRows[854∈61] ➊"]]:::plan - PgSelectRows854 --> First853 - PgSelect850 --> PgSelectRows854 - First853 --> PgSelectSingle855 - PgSelect850 --> Access856 - Last859{{"Last[859∈61] ➊"}}:::plan - PgSelectRows854 --> Last859 - Last859 --> PgSelectSingle861 - PgSelect850 --> Access866 - Lambda868{{"Lambda[868∈61] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object867 --> Lambda868 - Lambda872{{"Lambda[872∈61] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object871 --> Lambda872 - First874{{"First[874∈61] ➊"}}:::plan - PgSelectRows875[["PgSelectRows[875∈61] ➊"]]:::plan - PgSelectRows875 --> First874 - PgSelect873 --> PgSelectRows875 - PgSelectSingle876{{"PgSelectSingle[876∈61] ➊
ᐸpersonᐳ"}}:::plan - First874 --> PgSelectSingle876 - PgClassExpression877{{"PgClassExpression[877∈61] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle876 --> PgClassExpression877 - __Item880[/"__Item[880∈62]
ᐸ854ᐳ"\]:::itemplan - PgSelectRows854 ==> __Item880 - PgSelectSingle881{{"PgSelectSingle[881∈62]
ᐸpersonᐳ"}}:::plan - __Item880 --> PgSelectSingle881 - PgCursor883{{"PgCursor[883∈63]"}}:::plan - PgSelectSingle881 & Access856 --> PgCursor883 - PgClassExpression884{{"PgClassExpression[884∈63]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle881 --> PgClassExpression884 - PgClassExpression885{{"PgClassExpression[885∈63]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle881 --> PgClassExpression885 - PgClassExpression886{{"PgClassExpression[886∈63]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle881 --> PgClassExpression886 - PgClassExpression887{{"PgClassExpression[887∈63]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle881 --> PgClassExpression887 - PgClassExpression888{{"PgClassExpression[888∈63]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle881 --> PgClassExpression888 - PgClassExpression889{{"PgClassExpression[889∈63]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle881 --> PgClassExpression889 - PgClassExpression890{{"PgClassExpression[890∈63]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle881 --> PgClassExpression890 - PgSelect897[["PgSelect[897∈64] ➊
ᐸpostᐳ"]]:::plan - Object12 & Connection896 & Constant1031 --> PgSelect897 - PgSelectRows898[["PgSelectRows[898∈64] ➊"]]:::plan - PgSelect897 --> PgSelectRows898 - __Item899[/"__Item[899∈65]
ᐸ898ᐳ"\]:::itemplan - PgSelectRows898 ==> __Item899 - PgSelectSingle900{{"PgSelectSingle[900∈65]
ᐸpostᐳ"}}:::plan - __Item899 --> PgSelectSingle900 - PgSelect903[["PgSelect[903∈66]
ᐸpersonᐳ"]]:::plan - PgClassExpression902{{"PgClassExpression[902∈66]
ᐸ__post__.”author_id”ᐳ"}}:::plan - Object12 & PgClassExpression902 --> PgSelect903 - PgClassExpression901{{"PgClassExpression[901∈66]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle900 --> PgClassExpression901 - PgSelectSingle900 --> PgClassExpression902 - First907{{"First[907∈66]"}}:::plan - PgSelectRows908[["PgSelectRows[908∈66]"]]:::plan - PgSelectRows908 --> First907 - PgSelect903 --> PgSelectRows908 - PgSelectSingle909{{"PgSelectSingle[909∈66]
ᐸpersonᐳ"}}:::plan - First907 --> PgSelectSingle909 - PgClassExpression911{{"PgClassExpression[911∈66]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle900 --> PgClassExpression911 - PgClassExpression910{{"PgClassExpression[910∈67]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle909 --> PgClassExpression910 - PgClassExpression917{{"PgClassExpression[917∈67]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle909 --> PgClassExpression917 - List922{{"List[922∈68]
ᐸ920,921ᐳ"}}:::plan - PgClassExpression921{{"PgClassExpression[921∈68]
ᐸ__post__.”id”ᐳ"}}:::plan - Constant920 & PgClassExpression921 --> List922 - PgSelectSingle900 --> PgClassExpression921 - Lambda923{{"Lambda[923∈68]
ᐸbase64JSONEncodeᐳ"}}:::plan - List922 --> Lambda923 - Object952{{"Object[952∈69] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access947{{"Access[947∈69] ➊
ᐸ931.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access947 --> Object952 - PgSelect931[["PgSelect[931∈69] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Constant1039 & Connection930 --> PgSelect931 - Object948{{"Object[948∈69] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access947 --> Object948 - PgSelect954[["PgSelect[954∈69] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Constant1039 & Connection930 --> PgSelect954 - PgCursor938{{"PgCursor[938∈69] ➊"}}:::plan - PgSelectSingle936{{"PgSelectSingle[936∈69] ➊
ᐸpersonᐳ"}}:::plan - Access937{{"Access[937∈69] ➊
ᐸ931.cursorDetailsᐳ"}}:::plan - PgSelectSingle936 & Access937 --> PgCursor938 - PgCursor944{{"PgCursor[944∈69] ➊"}}:::plan - PgSelectSingle942{{"PgSelectSingle[942∈69] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle942 & Access937 --> PgCursor944 - PgPageInfo932{{"PgPageInfo[932∈69] ➊"}}:::plan - Connection930 --> PgPageInfo932 - First934{{"First[934∈69] ➊"}}:::plan - PgSelectRows935[["PgSelectRows[935∈69] ➊"]]:::plan - PgSelectRows935 --> First934 - PgSelect931 --> PgSelectRows935 - First934 --> PgSelectSingle936 - PgSelect931 --> Access937 - Last940{{"Last[940∈69] ➊"}}:::plan - PgSelectRows935 --> Last940 - Last940 --> PgSelectSingle942 - PgSelect931 --> Access947 - Lambda949{{"Lambda[949∈69] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object948 --> Lambda949 - Lambda953{{"Lambda[953∈69] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object952 --> Lambda953 - First955{{"First[955∈69] ➊"}}:::plan - PgSelectRows956[["PgSelectRows[956∈69] ➊"]]:::plan - PgSelectRows956 --> First955 - PgSelect954 --> PgSelectRows956 - PgSelectSingle957{{"PgSelectSingle[957∈69] ➊
ᐸpersonᐳ"}}:::plan - First955 --> PgSelectSingle957 - PgClassExpression958{{"PgClassExpression[958∈69] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle957 --> PgClassExpression958 - __Item961[/"__Item[961∈70]
ᐸ935ᐳ"\]:::itemplan - PgSelectRows935 ==> __Item961 - PgSelectSingle962{{"PgSelectSingle[962∈70]
ᐸpersonᐳ"}}:::plan - __Item961 --> PgSelectSingle962 - PgCursor964{{"PgCursor[964∈71]"}}:::plan - PgSelectSingle962 & Access937 --> PgCursor964 - PgClassExpression965{{"PgClassExpression[965∈71]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle962 --> PgClassExpression965 - PgClassExpression966{{"PgClassExpression[966∈71]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle962 --> PgClassExpression966 - PgClassExpression967{{"PgClassExpression[967∈71]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle962 --> PgClassExpression967 - PgClassExpression968{{"PgClassExpression[968∈71]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle962 --> PgClassExpression968 - PgClassExpression969{{"PgClassExpression[969∈71]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle962 --> PgClassExpression969 - PgClassExpression970{{"PgClassExpression[970∈71]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle962 --> PgClassExpression970 - PgClassExpression971{{"PgClassExpression[971∈71]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle962 --> PgClassExpression971 - Object1000{{"Object[1000∈72] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access995{{"Access[995∈72] ➊
ᐸ979.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access995 --> Object1000 - PgSelect979[["PgSelect[979∈72] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Constant1040 & Connection978 --> PgSelect979 - Object996{{"Object[996∈72] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access995 --> Object996 - PgSelect1002[["PgSelect[1002∈72] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Constant1040 & Connection978 --> PgSelect1002 - PgCursor986{{"PgCursor[986∈72] ➊"}}:::plan - PgSelectSingle984{{"PgSelectSingle[984∈72] ➊
ᐸpersonᐳ"}}:::plan - Access985{{"Access[985∈72] ➊
ᐸ979.cursorDetailsᐳ"}}:::plan - PgSelectSingle984 & Access985 --> PgCursor986 - PgCursor992{{"PgCursor[992∈72] ➊"}}:::plan - PgSelectSingle990{{"PgSelectSingle[990∈72] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle990 & Access985 --> PgCursor992 - PgPageInfo980{{"PgPageInfo[980∈72] ➊"}}:::plan - Connection978 --> PgPageInfo980 - First982{{"First[982∈72] ➊"}}:::plan - PgSelectRows983[["PgSelectRows[983∈72] ➊"]]:::plan - PgSelectRows983 --> First982 - PgSelect979 --> PgSelectRows983 - First982 --> PgSelectSingle984 - PgSelect979 --> Access985 - Last988{{"Last[988∈72] ➊"}}:::plan - PgSelectRows983 --> Last988 - Last988 --> PgSelectSingle990 - PgSelect979 --> Access995 - Lambda997{{"Lambda[997∈72] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object996 --> Lambda997 - Lambda1001{{"Lambda[1001∈72] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object1000 --> Lambda1001 - First1003{{"First[1003∈72] ➊"}}:::plan - PgSelectRows1004[["PgSelectRows[1004∈72] ➊"]]:::plan - PgSelectRows1004 --> First1003 - PgSelect1002 --> PgSelectRows1004 - PgSelectSingle1005{{"PgSelectSingle[1005∈72] ➊
ᐸpersonᐳ"}}:::plan - First1003 --> PgSelectSingle1005 - PgClassExpression1006{{"PgClassExpression[1006∈72] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle1005 --> PgClassExpression1006 - __Item1009[/"__Item[1009∈73]
ᐸ983ᐳ"\]:::itemplan - PgSelectRows983 ==> __Item1009 - PgSelectSingle1010{{"PgSelectSingle[1010∈73]
ᐸpersonᐳ"}}:::plan - __Item1009 --> PgSelectSingle1010 - PgCursor1012{{"PgCursor[1012∈74]"}}:::plan - PgSelectSingle1010 & Access985 --> PgCursor1012 - PgClassExpression1013{{"PgClassExpression[1013∈74]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle1010 --> PgClassExpression1013 - PgClassExpression1014{{"PgClassExpression[1014∈74]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle1010 --> PgClassExpression1014 - PgClassExpression1015{{"PgClassExpression[1015∈74]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle1010 --> PgClassExpression1015 - PgClassExpression1016{{"PgClassExpression[1016∈74]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle1010 --> PgClassExpression1016 - PgClassExpression1017{{"PgClassExpression[1017∈74]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle1010 --> PgClassExpression1017 - PgClassExpression1018{{"PgClassExpression[1018∈74]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle1010 --> PgClassExpression1018 - PgClassExpression1019{{"PgClassExpression[1019∈74]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle1010 --> PgClassExpression1019 - PgSelect1025[["PgSelect[1025∈75] ➊
ᐸnull_test_recordᐳ"]]:::plan - Object12 & Connection1024 --> PgSelect1025 - PgSelectRows1026[["PgSelectRows[1026∈75] ➊"]]:::plan - PgSelect1025 --> PgSelectRows1026 - __Item1027[/"__Item[1027∈76]
ᐸ1026ᐳ"\]:::itemplan - PgSelectRows1026 ==> __Item1027 - PgSelectSingle1028{{"PgSelectSingle[1028∈76]
ᐸnull_test_recordᐳ"}}:::plan - __Item1027 --> PgSelectSingle1028 - PgClassExpression1029{{"PgClassExpression[1029∈77]
ᐸ__null_tes...able_text”ᐳ"}}:::plan - PgSelectSingle1028 --> PgClassExpression1029 - PgClassExpression1030{{"PgClassExpression[1030∈77]
ᐸ__null_tes...lable_int”ᐳ"}}:::plan - PgSelectSingle1028 --> PgClassExpression1030 + First174{{"First[174∈0] ➊"}}:::plan + PgSelectRows175[["PgSelectRows[175∈0] ➊"]]:::plan + PgSelectRows175 --> First174 + PgSelect173 --> PgSelectRows175 + PgSelectSingle176{{"PgSelectSingle[176∈0] ➊
ᐸpersonᐳ"}}:::plan + First174 --> PgSelectSingle176 + PgClassExpression177{{"PgClassExpression[177∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle176 --> PgClassExpression177 + PgPageInfo197{{"PgPageInfo[197∈0] ➊"}}:::plan + Connection194 --> PgPageInfo197 + First199{{"First[199∈0] ➊"}}:::plan + PgSelectRows200[["PgSelectRows[200∈0] ➊"]]:::plan + PgSelectRows200 --> First199 + PgSelect196 --> PgSelectRows200 + First199 --> PgSelectSingle201 + PgSelect196 --> Access202 + Last205{{"Last[205∈0] ➊"}}:::plan + PgSelectRows200 --> Last205 + Last205 --> PgSelectSingle207 + PgSelect196 --> Access211 + Lambda213{{"Lambda[213∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object212 --> Lambda213 + Lambda217{{"Lambda[217∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object216 --> Lambda217 + First219{{"First[219∈0] ➊"}}:::plan + PgSelectRows220[["PgSelectRows[220∈0] ➊"]]:::plan + PgSelectRows220 --> First219 + PgSelect218 --> PgSelectRows220 + PgSelectSingle221{{"PgSelectSingle[221∈0] ➊
ᐸpersonᐳ"}}:::plan + First219 --> PgSelectSingle221 + PgClassExpression222{{"PgClassExpression[222∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle221 --> PgClassExpression222 + Constant1016{{"Constant[1016∈0] ➊
ᐸ'WyIwOGUwZDM0MmRlIiwyXQ=='ᐳ"}}:::plan + Constant1016 --> Lambda241 + PgPageInfo244{{"PgPageInfo[244∈0] ➊"}}:::plan + Connection240 --> PgPageInfo244 + First246{{"First[246∈0] ➊"}}:::plan + PgSelectRows247[["PgSelectRows[247∈0] ➊"]]:::plan + PgSelectRows247 --> First246 + PgSelect243 --> PgSelectRows247 + First246 --> PgSelectSingle248 + PgSelect243 --> Access249 + Last252{{"Last[252∈0] ➊"}}:::plan + PgSelectRows247 --> Last252 + Last252 --> PgSelectSingle254 + PgSelect243 --> Access258 + Lambda260{{"Lambda[260∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object259 --> Lambda260 + Lambda264{{"Lambda[264∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object263 --> Lambda264 + First266{{"First[266∈0] ➊"}}:::plan + PgSelectRows267[["PgSelectRows[267∈0] ➊"]]:::plan + PgSelectRows267 --> First266 + PgSelect265 --> PgSelectRows267 + PgSelectSingle268{{"PgSelectSingle[268∈0] ➊
ᐸpersonᐳ"}}:::plan + First266 --> PgSelectSingle268 + PgClassExpression269{{"PgClassExpression[269∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle268 --> PgClassExpression269 + PgPageInfo291{{"PgPageInfo[291∈0] ➊"}}:::plan + Connection287 --> PgPageInfo291 + First293{{"First[293∈0] ➊"}}:::plan + PgSelectRows294[["PgSelectRows[294∈0] ➊"]]:::plan + PgSelectRows294 --> First293 + PgSelect290 --> PgSelectRows294 + First293 --> PgSelectSingle295 + PgSelect290 --> Access296 + Last299{{"Last[299∈0] ➊"}}:::plan + PgSelectRows294 --> Last299 + Last299 --> PgSelectSingle301 + PgSelect290 --> Access305 + Lambda307{{"Lambda[307∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object306 --> Lambda307 + Lambda311{{"Lambda[311∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object310 --> Lambda311 + First313{{"First[313∈0] ➊"}}:::plan + PgSelectRows314[["PgSelectRows[314∈0] ➊"]]:::plan + PgSelectRows314 --> First313 + PgSelect312 --> PgSelectRows314 + PgSelectSingle315{{"PgSelectSingle[315∈0] ➊
ᐸpersonᐳ"}}:::plan + First313 --> PgSelectSingle315 + PgClassExpression316{{"PgClassExpression[316∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle315 --> PgClassExpression316 + PgSelectRows336[["PgSelectRows[336∈0] ➊"]]:::plan + PgSelect335 --> PgSelectRows336 + Access339{{"Access[339∈0] ➊
ᐸ335.cursorDetailsᐳ"}}:::plan + PgSelect335 --> Access339 + PgSelectRows350[["PgSelectRows[350∈0] ➊"]]:::plan + PgSelect349 --> PgSelectRows350 + Access353{{"Access[353∈0] ➊
ᐸ349.cursorDetailsᐳ"}}:::plan + PgSelect349 --> Access353 + __InputObject359 --> ApplyInput365 + PgPageInfo367{{"PgPageInfo[367∈0] ➊"}}:::plan + Connection363 --> PgPageInfo367 + First369{{"First[369∈0] ➊"}}:::plan + PgSelectRows370[["PgSelectRows[370∈0] ➊"]]:::plan + PgSelectRows370 --> First369 + PgSelect366 --> PgSelectRows370 + First369 --> PgSelectSingle371 + PgSelect366 --> Access372 + Last375{{"Last[375∈0] ➊"}}:::plan + PgSelectRows370 --> Last375 + Last375 --> PgSelectSingle377 + PgSelect366 --> Access381 + Lambda383{{"Lambda[383∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object382 --> Lambda383 + Lambda387{{"Lambda[387∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object386 --> Lambda387 + First389{{"First[389∈0] ➊"}}:::plan + PgSelectRows390[["PgSelectRows[390∈0] ➊"]]:::plan + PgSelectRows390 --> First389 + PgSelect388 --> PgSelectRows390 + PgSelectSingle391{{"PgSelectSingle[391∈0] ➊
ᐸpostᐳ"}}:::plan + First389 --> PgSelectSingle391 + PgClassExpression392{{"PgClassExpression[392∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle391 --> PgClassExpression392 + __InputObject403 --> ApplyInput409 + PgPageInfo411{{"PgPageInfo[411∈0] ➊"}}:::plan + Connection407 --> PgPageInfo411 + First413{{"First[413∈0] ➊"}}:::plan + PgSelectRows414[["PgSelectRows[414∈0] ➊"]]:::plan + PgSelectRows414 --> First413 + PgSelect410 --> PgSelectRows414 + First413 --> PgSelectSingle415 + PgSelect410 --> Access416 + Last419{{"Last[419∈0] ➊"}}:::plan + PgSelectRows414 --> Last419 + Last419 --> PgSelectSingle421 + PgSelect410 --> Access425 + Lambda427{{"Lambda[427∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object426 --> Lambda427 + Lambda431{{"Lambda[431∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object430 --> Lambda431 + First433{{"First[433∈0] ➊"}}:::plan + PgSelectRows434[["PgSelectRows[434∈0] ➊"]]:::plan + PgSelectRows434 --> First433 + PgSelect432 --> PgSelectRows434 + PgSelectSingle435{{"PgSelectSingle[435∈0] ➊
ᐸpostᐳ"}}:::plan + First433 --> PgSelectSingle435 + PgClassExpression436{{"PgClassExpression[436∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle435 --> PgClassExpression436 + __InputObject447 --> ApplyInput453 + PgPageInfo455{{"PgPageInfo[455∈0] ➊"}}:::plan + Connection451 --> PgPageInfo455 + First457{{"First[457∈0] ➊"}}:::plan + PgSelectRows458[["PgSelectRows[458∈0] ➊"]]:::plan + PgSelectRows458 --> First457 + PgSelect454 --> PgSelectRows458 + First457 --> PgSelectSingle459 + PgSelect454 --> Access460 + Last463{{"Last[463∈0] ➊"}}:::plan + PgSelectRows458 --> Last463 + Last463 --> PgSelectSingle465 + PgSelect454 --> Access469 + Lambda471{{"Lambda[471∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object470 --> Lambda471 + Lambda475{{"Lambda[475∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object474 --> Lambda475 + First477{{"First[477∈0] ➊"}}:::plan + PgSelectRows478[["PgSelectRows[478∈0] ➊"]]:::plan + PgSelectRows478 --> First477 + PgSelect476 --> PgSelectRows478 + PgSelectSingle479{{"PgSelectSingle[479∈0] ➊
ᐸpostᐳ"}}:::plan + First477 --> PgSelectSingle479 + PgClassExpression480{{"PgClassExpression[480∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle479 --> PgClassExpression480 + PgPageInfo497{{"PgPageInfo[497∈0] ➊"}}:::plan + Connection494 --> PgPageInfo497 + First499{{"First[499∈0] ➊"}}:::plan + PgSelectRows500[["PgSelectRows[500∈0] ➊"]]:::plan + PgSelectRows500 --> First499 + PgSelect496 --> PgSelectRows500 + First499 --> PgSelectSingle501 + PgSelect496 --> Access502 + Last505{{"Last[505∈0] ➊"}}:::plan + PgSelectRows500 --> Last505 + Last505 --> PgSelectSingle507 + PgSelect496 --> Access511 + Lambda513{{"Lambda[513∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object512 --> Lambda513 + Lambda517{{"Lambda[517∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object516 --> Lambda517 + First519{{"First[519∈0] ➊"}}:::plan + PgSelectRows520[["PgSelectRows[520∈0] ➊"]]:::plan + PgSelectRows520 --> First519 + PgSelect518 --> PgSelectRows520 + PgSelectSingle521{{"PgSelectSingle[521∈0] ➊
ᐸpersonᐳ"}}:::plan + First519 --> PgSelectSingle521 + PgClassExpression522{{"PgClassExpression[522∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle521 --> PgClassExpression522 + PgPageInfo543{{"PgPageInfo[543∈0] ➊"}}:::plan + Connection540 --> PgPageInfo543 + First545{{"First[545∈0] ➊"}}:::plan + PgSelectRows546[["PgSelectRows[546∈0] ➊"]]:::plan + PgSelectRows546 --> First545 + PgSelect542 --> PgSelectRows546 + First545 --> PgSelectSingle547 + PgSelect542 --> Access548 + Last551{{"Last[551∈0] ➊"}}:::plan + PgSelectRows546 --> Last551 + Last551 --> PgSelectSingle553 + PgSelect542 --> Access557 + Lambda559{{"Lambda[559∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object558 --> Lambda559 + Lambda563{{"Lambda[563∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object562 --> Lambda563 + First565{{"First[565∈0] ➊"}}:::plan + PgSelectRows566[["PgSelectRows[566∈0] ➊"]]:::plan + PgSelectRows566 --> First565 + PgSelect564 --> PgSelectRows566 + PgSelectSingle567{{"PgSelectSingle[567∈0] ➊
ᐸpersonᐳ"}}:::plan + First565 --> PgSelectSingle567 + PgClassExpression568{{"PgClassExpression[568∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle567 --> PgClassExpression568 + __InputObject583 --> ApplyInput589 + PgSelectRows591[["PgSelectRows[591∈0] ➊"]]:::plan + PgSelect590 --> PgSelectRows591 + Constant1020{{"Constant[1020∈0] ➊
ᐸ'WyIwOGUwZDM0MmRlIiw2XQ=='ᐳ"}}:::plan + Constant1020 --> Lambda602 + PgPageInfo605{{"PgPageInfo[605∈0] ➊"}}:::plan + Connection601 --> PgPageInfo605 + First607{{"First[607∈0] ➊"}}:::plan + PgSelectRows608[["PgSelectRows[608∈0] ➊"]]:::plan + PgSelectRows608 --> First607 + PgSelect604 --> PgSelectRows608 + First607 --> PgSelectSingle609 + PgSelect604 --> Access610 + Last613{{"Last[613∈0] ➊"}}:::plan + PgSelectRows608 --> Last613 + Last613 --> PgSelectSingle615 + PgSelect604 --> Access619 + Lambda621{{"Lambda[621∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object620 --> Lambda621 + Lambda625{{"Lambda[625∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object624 --> Lambda625 + First627{{"First[627∈0] ➊"}}:::plan + PgSelectRows628[["PgSelectRows[628∈0] ➊"]]:::plan + PgSelectRows628 --> First627 + PgSelect626 --> PgSelectRows628 + PgSelectSingle629{{"PgSelectSingle[629∈0] ➊
ᐸpersonᐳ"}}:::plan + First627 --> PgSelectSingle629 + PgClassExpression630{{"PgClassExpression[630∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle629 --> PgClassExpression630 + PgPageInfo653{{"PgPageInfo[653∈0] ➊"}}:::plan + Connection649 --> PgPageInfo653 + First655{{"First[655∈0] ➊"}}:::plan + PgSelectRows656[["PgSelectRows[656∈0] ➊"]]:::plan + PgSelectRows656 --> First655 + PgSelect652 --> PgSelectRows656 + First655 --> PgSelectSingle657 + PgSelect652 --> Access658 + Last661{{"Last[661∈0] ➊"}}:::plan + PgSelectRows656 --> Last661 + Last661 --> PgSelectSingle663 + PgSelect652 --> Access667 + Lambda669{{"Lambda[669∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object668 --> Lambda669 + Lambda673{{"Lambda[673∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object672 --> Lambda673 + First675{{"First[675∈0] ➊"}}:::plan + PgSelectRows676[["PgSelectRows[676∈0] ➊"]]:::plan + PgSelectRows676 --> First675 + PgSelect674 --> PgSelectRows676 + PgSelectSingle677{{"PgSelectSingle[677∈0] ➊
ᐸpersonᐳ"}}:::plan + First675 --> PgSelectSingle677 + PgClassExpression678{{"PgClassExpression[678∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle677 --> PgClassExpression678 + PgPageInfo701{{"PgPageInfo[701∈0] ➊"}}:::plan + Connection697 --> PgPageInfo701 + First703{{"First[703∈0] ➊"}}:::plan + PgSelectRows704[["PgSelectRows[704∈0] ➊"]]:::plan + PgSelectRows704 --> First703 + PgSelect700 --> PgSelectRows704 + First703 --> PgSelectSingle705 + PgSelect700 --> Access706 + Last709{{"Last[709∈0] ➊"}}:::plan + PgSelectRows704 --> Last709 + Last709 --> PgSelectSingle711 + PgSelect700 --> Access715 + Lambda717{{"Lambda[717∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object716 --> Lambda717 + Lambda721{{"Lambda[721∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object720 --> Lambda721 + First723{{"First[723∈0] ➊"}}:::plan + PgSelectRows724[["PgSelectRows[724∈0] ➊"]]:::plan + PgSelectRows724 --> First723 + PgSelect722 --> PgSelectRows724 + PgSelectSingle725{{"PgSelectSingle[725∈0] ➊
ᐸpersonᐳ"}}:::plan + First723 --> PgSelectSingle725 + PgClassExpression726{{"PgClassExpression[726∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle725 --> PgClassExpression726 + __InputObject741 --> ApplyInput746 + PgPageInfo748{{"PgPageInfo[748∈0] ➊"}}:::plan + Connection744 --> PgPageInfo748 + First750{{"First[750∈0] ➊"}}:::plan + PgSelectRows751[["PgSelectRows[751∈0] ➊"]]:::plan + PgSelectRows751 --> First750 + PgSelect747 --> PgSelectRows751 + First750 --> PgSelectSingle752 + PgSelect747 --> Access753 + Last756{{"Last[756∈0] ➊"}}:::plan + PgSelectRows751 --> Last756 + Last756 --> PgSelectSingle758 + PgSelect747 --> Access762 + Lambda764{{"Lambda[764∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object763 --> Lambda764 + Lambda768{{"Lambda[768∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object767 --> Lambda768 + First770{{"First[770∈0] ➊"}}:::plan + PgSelectRows771[["PgSelectRows[771∈0] ➊"]]:::plan + PgSelectRows771 --> First770 + PgSelect769 --> PgSelectRows771 + PgSelectSingle772{{"PgSelectSingle[772∈0] ➊
ᐸpersonᐳ"}}:::plan + First770 --> PgSelectSingle772 + PgClassExpression773{{"PgClassExpression[773∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle772 --> PgClassExpression773 + PgPageInfo794{{"PgPageInfo[794∈0] ➊"}}:::plan + Connection791 --> PgPageInfo794 + First796{{"First[796∈0] ➊"}}:::plan + PgSelectRows797[["PgSelectRows[797∈0] ➊"]]:::plan + PgSelectRows797 --> First796 + PgSelect793 --> PgSelectRows797 + First796 --> PgSelectSingle798 + PgSelect793 --> Access799 + Last802{{"Last[802∈0] ➊"}}:::plan + PgSelectRows797 --> Last802 + Last802 --> PgSelectSingle804 + PgSelect793 --> Access808 + Lambda810{{"Lambda[810∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object809 --> Lambda810 + Lambda814{{"Lambda[814∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object813 --> Lambda814 + First816{{"First[816∈0] ➊"}}:::plan + PgSelectRows817[["PgSelectRows[817∈0] ➊"]]:::plan + PgSelectRows817 --> First816 + PgSelect815 --> PgSelectRows817 + PgSelectSingle818{{"PgSelectSingle[818∈0] ➊
ᐸpostᐳ"}}:::plan + First816 --> PgSelectSingle818 + PgClassExpression819{{"PgClassExpression[819∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle818 --> PgClassExpression819 + __InputObject829 --> ApplyInput835 + PgPageInfo837{{"PgPageInfo[837∈0] ➊"}}:::plan + Connection833 --> PgPageInfo837 + First839{{"First[839∈0] ➊"}}:::plan + PgSelectRows840[["PgSelectRows[840∈0] ➊"]]:::plan + PgSelectRows840 --> First839 + PgSelect836 --> PgSelectRows840 + First839 --> PgSelectSingle841 + PgSelect836 --> Access842 + Last845{{"Last[845∈0] ➊"}}:::plan + PgSelectRows840 --> Last845 + Last845 --> PgSelectSingle847 + PgSelect836 --> Access851 + Lambda853{{"Lambda[853∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object852 --> Lambda853 + Lambda857{{"Lambda[857∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object856 --> Lambda857 + First859{{"First[859∈0] ➊"}}:::plan + PgSelectRows860[["PgSelectRows[860∈0] ➊"]]:::plan + PgSelectRows860 --> First859 + PgSelect858 --> PgSelectRows860 + PgSelectSingle861{{"PgSelectSingle[861∈0] ➊
ᐸpersonᐳ"}}:::plan + First859 --> PgSelectSingle861 + PgClassExpression862{{"PgClassExpression[862∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle861 --> PgClassExpression862 + PgSelectRows883[["PgSelectRows[883∈0] ➊"]]:::plan + PgSelect882 --> PgSelectRows883 + __InputObject909 --> ApplyInput915 + PgPageInfo917{{"PgPageInfo[917∈0] ➊"}}:::plan + Connection913 --> PgPageInfo917 + First919{{"First[919∈0] ➊"}}:::plan + PgSelectRows920[["PgSelectRows[920∈0] ➊"]]:::plan + PgSelectRows920 --> First919 + PgSelect916 --> PgSelectRows920 + First919 --> PgSelectSingle921 + PgSelect916 --> Access922 + Last925{{"Last[925∈0] ➊"}}:::plan + PgSelectRows920 --> Last925 + Last925 --> PgSelectSingle927 + PgSelect916 --> Access931 + Lambda933{{"Lambda[933∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object932 --> Lambda933 + Lambda937{{"Lambda[937∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object936 --> Lambda937 + First939{{"First[939∈0] ➊"}}:::plan + PgSelectRows940[["PgSelectRows[940∈0] ➊"]]:::plan + PgSelectRows940 --> First939 + PgSelect938 --> PgSelectRows940 + PgSelectSingle941{{"PgSelectSingle[941∈0] ➊
ᐸpersonᐳ"}}:::plan + First939 --> PgSelectSingle941 + PgClassExpression942{{"PgClassExpression[942∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle941 --> PgClassExpression942 + __InputObject957 --> ApplyInput963 + PgPageInfo965{{"PgPageInfo[965∈0] ➊"}}:::plan + Connection961 --> PgPageInfo965 + First967{{"First[967∈0] ➊"}}:::plan + PgSelectRows968[["PgSelectRows[968∈0] ➊"]]:::plan + PgSelectRows968 --> First967 + PgSelect964 --> PgSelectRows968 + First967 --> PgSelectSingle969 + PgSelect964 --> Access970 + Last973{{"Last[973∈0] ➊"}}:::plan + PgSelectRows968 --> Last973 + Last973 --> PgSelectSingle975 + PgSelect964 --> Access979 + Lambda981{{"Lambda[981∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object980 --> Lambda981 + Lambda985{{"Lambda[985∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object984 --> Lambda985 + First987{{"First[987∈0] ➊"}}:::plan + PgSelectRows988[["PgSelectRows[988∈0] ➊"]]:::plan + PgSelectRows988 --> First987 + PgSelect986 --> PgSelectRows988 + PgSelectSingle989{{"PgSelectSingle[989∈0] ➊
ᐸpersonᐳ"}}:::plan + First987 --> PgSelectSingle989 + PgClassExpression990{{"PgClassExpression[990∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle989 --> PgClassExpression990 + PgSelectRows1010[["PgSelectRows[1010∈0] ➊"]]:::plan + PgSelect1009 --> PgSelectRows1010 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + Constant905{{"Constant[905∈0] ➊
ᐸ'posts'ᐳ"}}:::plan + PgCursor46{{"PgCursor[46∈1]"}}:::plan + PgSelectSingle44{{"PgSelectSingle[44∈1]
ᐸpersonᐳ"}}:::plan + PgSelectSingle44 & Access20 --> PgCursor46 + __Item43[/"__Item[43∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item43 + __Item43 --> PgSelectSingle44 + PgClassExpression47{{"PgClassExpression[47∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression47 + PgClassExpression48{{"PgClassExpression[48∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression48 + PgClassExpression49{{"PgClassExpression[49∈1]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression49 + PgClassExpression50{{"PgClassExpression[50∈1]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression50 + PgClassExpression51{{"PgClassExpression[51∈1]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression51 + PgClassExpression52{{"PgClassExpression[52∈1]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression52 + PgClassExpression53{{"PgClassExpression[53∈1]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression53 + PgCursor92{{"PgCursor[92∈2]"}}:::plan + PgSelectSingle90{{"PgSelectSingle[90∈2]
ᐸpersonᐳ"}}:::plan + PgSelectSingle90 & Access66 --> PgCursor92 + __Item89[/"__Item[89∈2]
ᐸ64ᐳ"\]:::itemplan + PgSelectRows64 ==> __Item89 + __Item89 --> PgSelectSingle90 + PgClassExpression93{{"PgClassExpression[93∈2]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression93 + PgClassExpression94{{"PgClassExpression[94∈2]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression94 + PgClassExpression95{{"PgClassExpression[95∈2]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression95 + PgClassExpression96{{"PgClassExpression[96∈2]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression96 + PgClassExpression97{{"PgClassExpression[97∈2]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression97 + PgClassExpression98{{"PgClassExpression[98∈2]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression98 + PgClassExpression99{{"PgClassExpression[99∈2]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression99 + PgCursor138{{"PgCursor[138∈3]"}}:::plan + PgSelectSingle136{{"PgSelectSingle[136∈3]
ᐸpersonᐳ"}}:::plan + PgSelectSingle136 & Access112 --> PgCursor138 + __Item135[/"__Item[135∈3]
ᐸ110ᐳ"\]:::itemplan + PgSelectRows110 ==> __Item135 + __Item135 --> PgSelectSingle136 + PgClassExpression139{{"PgClassExpression[139∈3]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle136 --> PgClassExpression139 + PgClassExpression140{{"PgClassExpression[140∈3]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle136 --> PgClassExpression140 + PgClassExpression141{{"PgClassExpression[141∈3]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle136 --> PgClassExpression141 + PgClassExpression142{{"PgClassExpression[142∈3]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle136 --> PgClassExpression142 + PgClassExpression143{{"PgClassExpression[143∈3]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle136 --> PgClassExpression143 + PgClassExpression144{{"PgClassExpression[144∈3]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle136 --> PgClassExpression144 + PgClassExpression145{{"PgClassExpression[145∈3]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle136 --> PgClassExpression145 + PgCursor183{{"PgCursor[183∈4]"}}:::plan + PgSelectSingle181{{"PgSelectSingle[181∈4]
ᐸpersonᐳ"}}:::plan + PgSelectSingle181 & Access157 --> PgCursor183 + __Item180[/"__Item[180∈4]
ᐸ155ᐳ"\]:::itemplan + PgSelectRows155 ==> __Item180 + __Item180 --> PgSelectSingle181 + PgClassExpression184{{"PgClassExpression[184∈4]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle181 --> PgClassExpression184 + PgClassExpression185{{"PgClassExpression[185∈4]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle181 --> PgClassExpression185 + PgClassExpression186{{"PgClassExpression[186∈4]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle181 --> PgClassExpression186 + PgClassExpression187{{"PgClassExpression[187∈4]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle181 --> PgClassExpression187 + PgClassExpression188{{"PgClassExpression[188∈4]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle181 --> PgClassExpression188 + PgClassExpression189{{"PgClassExpression[189∈4]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle181 --> PgClassExpression189 + PgClassExpression190{{"PgClassExpression[190∈4]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle181 --> PgClassExpression190 + PgCursor228{{"PgCursor[228∈5]"}}:::plan + PgSelectSingle226{{"PgSelectSingle[226∈5]
ᐸpersonᐳ"}}:::plan + PgSelectSingle226 & Access202 --> PgCursor228 + __Item225[/"__Item[225∈5]
ᐸ200ᐳ"\]:::itemplan + PgSelectRows200 ==> __Item225 + __Item225 --> PgSelectSingle226 + PgClassExpression229{{"PgClassExpression[229∈5]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle226 --> PgClassExpression229 + PgClassExpression230{{"PgClassExpression[230∈5]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle226 --> PgClassExpression230 + PgClassExpression231{{"PgClassExpression[231∈5]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle226 --> PgClassExpression231 + PgClassExpression232{{"PgClassExpression[232∈5]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle226 --> PgClassExpression232 + PgClassExpression233{{"PgClassExpression[233∈5]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle226 --> PgClassExpression233 + PgClassExpression234{{"PgClassExpression[234∈5]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle226 --> PgClassExpression234 + PgClassExpression235{{"PgClassExpression[235∈5]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle226 --> PgClassExpression235 + PgCursor275{{"PgCursor[275∈6]"}}:::plan + PgSelectSingle273{{"PgSelectSingle[273∈6]
ᐸpersonᐳ"}}:::plan + PgSelectSingle273 & Access249 --> PgCursor275 + __Item272[/"__Item[272∈6]
ᐸ247ᐳ"\]:::itemplan + PgSelectRows247 ==> __Item272 + __Item272 --> PgSelectSingle273 + PgClassExpression276{{"PgClassExpression[276∈6]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle273 --> PgClassExpression276 + PgClassExpression277{{"PgClassExpression[277∈6]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle273 --> PgClassExpression277 + PgClassExpression278{{"PgClassExpression[278∈6]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle273 --> PgClassExpression278 + PgClassExpression279{{"PgClassExpression[279∈6]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle273 --> PgClassExpression279 + PgClassExpression280{{"PgClassExpression[280∈6]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle273 --> PgClassExpression280 + PgClassExpression281{{"PgClassExpression[281∈6]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle273 --> PgClassExpression281 + PgClassExpression282{{"PgClassExpression[282∈6]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle273 --> PgClassExpression282 + PgCursor322{{"PgCursor[322∈7]"}}:::plan + PgSelectSingle320{{"PgSelectSingle[320∈7]
ᐸpersonᐳ"}}:::plan + PgSelectSingle320 & Access296 --> PgCursor322 + __Item319[/"__Item[319∈7]
ᐸ294ᐳ"\]:::itemplan + PgSelectRows294 ==> __Item319 + __Item319 --> PgSelectSingle320 + PgClassExpression323{{"PgClassExpression[323∈7]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle320 --> PgClassExpression323 + PgClassExpression324{{"PgClassExpression[324∈7]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle320 --> PgClassExpression324 + PgClassExpression325{{"PgClassExpression[325∈7]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle320 --> PgClassExpression325 + PgClassExpression326{{"PgClassExpression[326∈7]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle320 --> PgClassExpression326 + PgClassExpression327{{"PgClassExpression[327∈7]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle320 --> PgClassExpression327 + PgClassExpression328{{"PgClassExpression[328∈7]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle320 --> PgClassExpression328 + PgClassExpression329{{"PgClassExpression[329∈7]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle320 --> PgClassExpression329 + PgCursor340{{"PgCursor[340∈8]"}}:::plan + PgSelectSingle338{{"PgSelectSingle[338∈8]
ᐸupdatable_viewᐳ"}}:::plan + PgSelectSingle338 & Access339 --> PgCursor340 + __Item337[/"__Item[337∈8]
ᐸ336ᐳ"\]:::itemplan + PgSelectRows336 ==> __Item337 + __Item337 --> PgSelectSingle338 + PgClassExpression341{{"PgClassExpression[341∈8]
ᐸ__updatable_view__.”x”ᐳ"}}:::plan + PgSelectSingle338 --> PgClassExpression341 + PgClassExpression342{{"PgClassExpression[342∈8]
ᐸ__updatabl...w__.”name”ᐳ"}}:::plan + PgSelectSingle338 --> PgClassExpression342 + PgClassExpression343{{"PgClassExpression[343∈8]
ᐸ__updatabl...”constant”ᐳ"}}:::plan + PgSelectSingle338 --> PgClassExpression343 + PgCursor354{{"PgCursor[354∈9]"}}:::plan + PgSelectSingle352{{"PgSelectSingle[352∈9]
ᐸupdatable_viewᐳ"}}:::plan + PgSelectSingle352 & Access353 --> PgCursor354 + __Item351[/"__Item[351∈9]
ᐸ350ᐳ"\]:::itemplan + PgSelectRows350 ==> __Item351 + __Item351 --> PgSelectSingle352 + PgClassExpression355{{"PgClassExpression[355∈9]
ᐸ__updatable_view__.”x”ᐳ"}}:::plan + PgSelectSingle352 --> PgClassExpression355 + PgClassExpression356{{"PgClassExpression[356∈9]
ᐸ__updatabl...w__.”name”ᐳ"}}:::plan + PgSelectSingle352 --> PgClassExpression356 + PgClassExpression357{{"PgClassExpression[357∈9]
ᐸ__updatabl...”constant”ᐳ"}}:::plan + PgSelectSingle352 --> PgClassExpression357 + PgCursor398{{"PgCursor[398∈10]"}}:::plan + PgSelectSingle396{{"PgSelectSingle[396∈10]
ᐸpostᐳ"}}:::plan + PgSelectSingle396 & Access372 --> PgCursor398 + __Item395[/"__Item[395∈10]
ᐸ370ᐳ"\]:::itemplan + PgSelectRows370 ==> __Item395 + __Item395 --> PgSelectSingle396 + PgClassExpression399{{"PgClassExpression[399∈10]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle396 --> PgClassExpression399 + PgClassExpression400{{"PgClassExpression[400∈10]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle396 --> PgClassExpression400 + PgCursor442{{"PgCursor[442∈11]"}}:::plan + PgSelectSingle440{{"PgSelectSingle[440∈11]
ᐸpostᐳ"}}:::plan + PgSelectSingle440 & Access416 --> PgCursor442 + __Item439[/"__Item[439∈11]
ᐸ414ᐳ"\]:::itemplan + PgSelectRows414 ==> __Item439 + __Item439 --> PgSelectSingle440 + PgClassExpression443{{"PgClassExpression[443∈11]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle440 --> PgClassExpression443 + PgClassExpression444{{"PgClassExpression[444∈11]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle440 --> PgClassExpression444 + PgCursor486{{"PgCursor[486∈12]"}}:::plan + PgSelectSingle484{{"PgSelectSingle[484∈12]
ᐸpostᐳ"}}:::plan + PgSelectSingle484 & Access460 --> PgCursor486 + __Item483[/"__Item[483∈12]
ᐸ458ᐳ"\]:::itemplan + PgSelectRows458 ==> __Item483 + __Item483 --> PgSelectSingle484 + PgClassExpression487{{"PgClassExpression[487∈12]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle484 --> PgClassExpression487 + PgClassExpression488{{"PgClassExpression[488∈12]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle484 --> PgClassExpression488 + PgCursor528{{"PgCursor[528∈13]"}}:::plan + PgSelectSingle526{{"PgSelectSingle[526∈13]
ᐸpersonᐳ"}}:::plan + PgSelectSingle526 & Access502 --> PgCursor528 + __Item525[/"__Item[525∈13]
ᐸ500ᐳ"\]:::itemplan + PgSelectRows500 ==> __Item525 + __Item525 --> PgSelectSingle526 + PgClassExpression529{{"PgClassExpression[529∈13]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle526 --> PgClassExpression529 + PgClassExpression530{{"PgClassExpression[530∈13]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle526 --> PgClassExpression530 + PgClassExpression531{{"PgClassExpression[531∈13]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle526 --> PgClassExpression531 + PgClassExpression532{{"PgClassExpression[532∈13]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle526 --> PgClassExpression532 + PgClassExpression533{{"PgClassExpression[533∈13]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle526 --> PgClassExpression533 + PgClassExpression534{{"PgClassExpression[534∈13]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle526 --> PgClassExpression534 + PgClassExpression535{{"PgClassExpression[535∈13]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle526 --> PgClassExpression535 + PgCursor574{{"PgCursor[574∈14]"}}:::plan + PgSelectSingle572{{"PgSelectSingle[572∈14]
ᐸpersonᐳ"}}:::plan + PgSelectSingle572 & Access548 --> PgCursor574 + __Item571[/"__Item[571∈14]
ᐸ546ᐳ"\]:::itemplan + PgSelectRows546 ==> __Item571 + __Item571 --> PgSelectSingle572 + PgClassExpression575{{"PgClassExpression[575∈14]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle572 --> PgClassExpression575 + PgClassExpression576{{"PgClassExpression[576∈14]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle572 --> PgClassExpression576 + PgClassExpression577{{"PgClassExpression[577∈14]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle572 --> PgClassExpression577 + PgClassExpression578{{"PgClassExpression[578∈14]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle572 --> PgClassExpression578 + PgClassExpression579{{"PgClassExpression[579∈14]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle572 --> PgClassExpression579 + PgClassExpression580{{"PgClassExpression[580∈14]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle572 --> PgClassExpression580 + PgClassExpression581{{"PgClassExpression[581∈14]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle572 --> PgClassExpression581 + __Item592[/"__Item[592∈15]
ᐸ591ᐳ"\]:::itemplan + PgSelectRows591 ==> __Item592 + PgSelectSingle593{{"PgSelectSingle[593∈15]
ᐸedge_caseᐳ"}}:::plan + __Item592 --> PgSelectSingle593 + PgClassExpression594{{"PgClassExpression[594∈15]
ᐸ__edge_case__.”row_id”ᐳ"}}:::plan + PgSelectSingle593 --> PgClassExpression594 + PgCursor636{{"PgCursor[636∈16]"}}:::plan + PgSelectSingle634{{"PgSelectSingle[634∈16]
ᐸpersonᐳ"}}:::plan + PgSelectSingle634 & Access610 --> PgCursor636 + __Item633[/"__Item[633∈16]
ᐸ608ᐳ"\]:::itemplan + PgSelectRows608 ==> __Item633 + __Item633 --> PgSelectSingle634 + PgClassExpression637{{"PgClassExpression[637∈16]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle634 --> PgClassExpression637 + PgClassExpression638{{"PgClassExpression[638∈16]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle634 --> PgClassExpression638 + PgClassExpression639{{"PgClassExpression[639∈16]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle634 --> PgClassExpression639 + PgClassExpression640{{"PgClassExpression[640∈16]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle634 --> PgClassExpression640 + PgClassExpression641{{"PgClassExpression[641∈16]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle634 --> PgClassExpression641 + PgClassExpression642{{"PgClassExpression[642∈16]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle634 --> PgClassExpression642 + PgClassExpression643{{"PgClassExpression[643∈16]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle634 --> PgClassExpression643 + PgCursor684{{"PgCursor[684∈17]"}}:::plan + PgSelectSingle682{{"PgSelectSingle[682∈17]
ᐸpersonᐳ"}}:::plan + PgSelectSingle682 & Access658 --> PgCursor684 + __Item681[/"__Item[681∈17]
ᐸ656ᐳ"\]:::itemplan + PgSelectRows656 ==> __Item681 + __Item681 --> PgSelectSingle682 + PgClassExpression685{{"PgClassExpression[685∈17]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle682 --> PgClassExpression685 + PgClassExpression686{{"PgClassExpression[686∈17]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle682 --> PgClassExpression686 + PgClassExpression687{{"PgClassExpression[687∈17]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle682 --> PgClassExpression687 + PgClassExpression688{{"PgClassExpression[688∈17]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle682 --> PgClassExpression688 + PgClassExpression689{{"PgClassExpression[689∈17]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle682 --> PgClassExpression689 + PgClassExpression690{{"PgClassExpression[690∈17]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle682 --> PgClassExpression690 + PgClassExpression691{{"PgClassExpression[691∈17]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle682 --> PgClassExpression691 + PgCursor732{{"PgCursor[732∈18]"}}:::plan + PgSelectSingle730{{"PgSelectSingle[730∈18]
ᐸpersonᐳ"}}:::plan + PgSelectSingle730 & Access706 --> PgCursor732 + __Item729[/"__Item[729∈18]
ᐸ704ᐳ"\]:::itemplan + PgSelectRows704 ==> __Item729 + __Item729 --> PgSelectSingle730 + PgClassExpression733{{"PgClassExpression[733∈18]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle730 --> PgClassExpression733 + PgClassExpression734{{"PgClassExpression[734∈18]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle730 --> PgClassExpression734 + PgClassExpression735{{"PgClassExpression[735∈18]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle730 --> PgClassExpression735 + PgClassExpression736{{"PgClassExpression[736∈18]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle730 --> PgClassExpression736 + PgClassExpression737{{"PgClassExpression[737∈18]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle730 --> PgClassExpression737 + PgClassExpression738{{"PgClassExpression[738∈18]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle730 --> PgClassExpression738 + PgClassExpression739{{"PgClassExpression[739∈18]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle730 --> PgClassExpression739 + PgCursor779{{"PgCursor[779∈19]"}}:::plan + PgSelectSingle777{{"PgSelectSingle[777∈19]
ᐸpersonᐳ"}}:::plan + PgSelectSingle777 & Access753 --> PgCursor779 + __Item776[/"__Item[776∈19]
ᐸ751ᐳ"\]:::itemplan + PgSelectRows751 ==> __Item776 + __Item776 --> PgSelectSingle777 + PgClassExpression780{{"PgClassExpression[780∈19]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle777 --> PgClassExpression780 + PgClassExpression781{{"PgClassExpression[781∈19]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle777 --> PgClassExpression781 + PgClassExpression782{{"PgClassExpression[782∈19]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle777 --> PgClassExpression782 + PgClassExpression783{{"PgClassExpression[783∈19]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle777 --> PgClassExpression783 + PgClassExpression784{{"PgClassExpression[784∈19]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle777 --> PgClassExpression784 + PgClassExpression785{{"PgClassExpression[785∈19]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle777 --> PgClassExpression785 + PgClassExpression786{{"PgClassExpression[786∈19]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle777 --> PgClassExpression786 + PgCursor825{{"PgCursor[825∈20]"}}:::plan + PgSelectSingle823{{"PgSelectSingle[823∈20]
ᐸpostᐳ"}}:::plan + PgSelectSingle823 & Access799 --> PgCursor825 + __Item822[/"__Item[822∈20]
ᐸ797ᐳ"\]:::itemplan + PgSelectRows797 ==> __Item822 + __Item822 --> PgSelectSingle823 + PgClassExpression826{{"PgClassExpression[826∈20]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle823 --> PgClassExpression826 + PgClassExpression827{{"PgClassExpression[827∈20]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle823 --> PgClassExpression827 + PgCursor868{{"PgCursor[868∈21]"}}:::plan + PgSelectSingle866{{"PgSelectSingle[866∈21]
ᐸpersonᐳ"}}:::plan + PgSelectSingle866 & Access842 --> PgCursor868 + __Item865[/"__Item[865∈21]
ᐸ840ᐳ"\]:::itemplan + PgSelectRows840 ==> __Item865 + __Item865 --> PgSelectSingle866 + PgClassExpression869{{"PgClassExpression[869∈21]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression869 + PgClassExpression870{{"PgClassExpression[870∈21]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression870 + PgClassExpression871{{"PgClassExpression[871∈21]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression871 + PgClassExpression872{{"PgClassExpression[872∈21]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression872 + PgClassExpression873{{"PgClassExpression[873∈21]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression873 + PgClassExpression874{{"PgClassExpression[874∈21]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression874 + PgClassExpression875{{"PgClassExpression[875∈21]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression875 + PgSelect888[["PgSelect[888∈22]
ᐸpersonᐳ"]]:::plan + PgClassExpression887{{"PgClassExpression[887∈22]
ᐸ__post__.”author_id”ᐳ"}}:::plan + Object11 & PgClassExpression887 --> PgSelect888 + List906{{"List[906∈22]
ᐸ905,886ᐳ"}}:::plan + PgClassExpression886{{"PgClassExpression[886∈22]
ᐸ__post__.”id”ᐳ"}}:::plan + Constant905 & PgClassExpression886 --> List906 + __Item884[/"__Item[884∈22]
ᐸ883ᐳ"\]:::itemplan + PgSelectRows883 ==> __Item884 + PgSelectSingle885{{"PgSelectSingle[885∈22]
ᐸpostᐳ"}}:::plan + __Item884 --> PgSelectSingle885 + PgSelectSingle885 --> PgClassExpression886 + PgSelectSingle885 --> PgClassExpression887 + First892{{"First[892∈22]"}}:::plan + PgSelectRows893[["PgSelectRows[893∈22]"]]:::plan + PgSelectRows893 --> First892 + PgSelect888 --> PgSelectRows893 + PgSelectSingle894{{"PgSelectSingle[894∈22]
ᐸpersonᐳ"}}:::plan + First892 --> PgSelectSingle894 + PgClassExpression895{{"PgClassExpression[895∈22]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle894 --> PgClassExpression895 + PgClassExpression896{{"PgClassExpression[896∈22]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle885 --> PgClassExpression896 + PgClassExpression902{{"PgClassExpression[902∈22]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle894 --> PgClassExpression902 + Lambda907{{"Lambda[907∈22]
ᐸbase64JSONEncodeᐳ"}}:::plan + List906 --> Lambda907 + PgCursor948{{"PgCursor[948∈23]"}}:::plan + PgSelectSingle946{{"PgSelectSingle[946∈23]
ᐸpersonᐳ"}}:::plan + PgSelectSingle946 & Access922 --> PgCursor948 + __Item945[/"__Item[945∈23]
ᐸ920ᐳ"\]:::itemplan + PgSelectRows920 ==> __Item945 + __Item945 --> PgSelectSingle946 + PgClassExpression949{{"PgClassExpression[949∈23]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle946 --> PgClassExpression949 + PgClassExpression950{{"PgClassExpression[950∈23]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle946 --> PgClassExpression950 + PgClassExpression951{{"PgClassExpression[951∈23]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle946 --> PgClassExpression951 + PgClassExpression952{{"PgClassExpression[952∈23]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle946 --> PgClassExpression952 + PgClassExpression953{{"PgClassExpression[953∈23]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle946 --> PgClassExpression953 + PgClassExpression954{{"PgClassExpression[954∈23]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle946 --> PgClassExpression954 + PgClassExpression955{{"PgClassExpression[955∈23]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle946 --> PgClassExpression955 + PgCursor996{{"PgCursor[996∈24]"}}:::plan + PgSelectSingle994{{"PgSelectSingle[994∈24]
ᐸpersonᐳ"}}:::plan + PgSelectSingle994 & Access970 --> PgCursor996 + __Item993[/"__Item[993∈24]
ᐸ968ᐳ"\]:::itemplan + PgSelectRows968 ==> __Item993 + __Item993 --> PgSelectSingle994 + PgClassExpression997{{"PgClassExpression[997∈24]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle994 --> PgClassExpression997 + PgClassExpression998{{"PgClassExpression[998∈24]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle994 --> PgClassExpression998 + PgClassExpression999{{"PgClassExpression[999∈24]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle994 --> PgClassExpression999 + PgClassExpression1000{{"PgClassExpression[1000∈24]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle994 --> PgClassExpression1000 + PgClassExpression1001{{"PgClassExpression[1001∈24]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle994 --> PgClassExpression1001 + PgClassExpression1002{{"PgClassExpression[1002∈24]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle994 --> PgClassExpression1002 + PgClassExpression1003{{"PgClassExpression[1003∈24]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle994 --> PgClassExpression1003 + __Item1011[/"__Item[1011∈25]
ᐸ1010ᐳ"\]:::itemplan + PgSelectRows1010 ==> __Item1011 + PgSelectSingle1012{{"PgSelectSingle[1012∈25]
ᐸnull_test_recordᐳ"}}:::plan + __Item1011 --> PgSelectSingle1012 + PgClassExpression1013{{"PgClassExpression[1013∈25]
ᐸ__null_tes...able_text”ᐳ"}}:::plan + PgSelectSingle1012 --> PgClassExpression1013 + PgClassExpression1014{{"PgClassExpression[1014∈25]
ᐸ__null_tes...lable_int”ᐳ"}}:::plan + PgSelectSingle1012 --> PgClassExpression1014 %% define steps subgraph "Buckets for queries/v4/connections" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 595, 905, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 11, 12, 15, 58, 61, 104, 107, 149, 152, 194, 197, 241, 287, 291, 333, 347, 359, 363, 365, 367, 403, 407, 409, 411, 447, 451, 453, 455, 494, 497, 540, 543, 583, 587, 589, 602, 649, 653, 697, 701, 741, 744, 746, 748, 791, 794, 829, 833, 835, 837, 880, 909, 913, 915, 917, 957, 961, 963, 965, 1007, 240, 244, 601, 605
2: 14, 36, 60, 82, 106, 128, 151, 173, 196, 218, 243, 265, 290, 312, 335, 349, 366, 388, 410, 432, 454, 476, 496, 518, 542, 564, 590, 604, 626, 652, 674, 700, 722, 747, 769, 793, 815, 836, 858, 882, 916, 938, 964, 986, 1009
ᐳ: 20, 29, 30, 31, 34, 35, 66, 75, 76, 77, 80, 81, 112, 121, 122, 123, 126, 127, 157, 166, 167, 168, 171, 172, 202, 211, 212, 213, 216, 217, 249, 258, 259, 260, 263, 264, 296, 305, 306, 307, 310, 311, 339, 353, 372, 381, 382, 383, 386, 387, 416, 425, 426, 427, 430, 431, 460, 469, 470, 471, 474, 475, 502, 511, 512, 513, 516, 517, 548, 557, 558, 559, 562, 563, 610, 619, 620, 621, 624, 625, 658, 667, 668, 669, 672, 673, 706, 715, 716, 717, 720, 721, 753, 762, 763, 764, 767, 768, 799, 808, 809, 810, 813, 814, 842, 851, 852, 853, 856, 857, 922, 931, 932, 933, 936, 937, 970, 979, 980, 981, 984, 985
3: 18, 38, 64, 84, 110, 130, 155, 175, 200, 220, 247, 267, 294, 314, 336, 350, 370, 390, 414, 434, 458, 478, 500, 520, 546, 566, 591, 608, 628, 656, 676, 704, 724, 751, 771, 797, 817, 840, 860, 883, 920, 940, 968, 988, 1010
ᐳ: 17, 19, 21, 23, 25, 27, 37, 39, 40, 63, 65, 67, 69, 71, 73, 83, 85, 86, 109, 111, 113, 115, 117, 119, 129, 131, 132, 154, 156, 158, 160, 162, 164, 174, 176, 177, 199, 201, 203, 205, 207, 209, 219, 221, 222, 246, 248, 250, 252, 254, 256, 266, 268, 269, 293, 295, 297, 299, 301, 303, 313, 315, 316, 369, 371, 373, 375, 377, 379, 389, 391, 392, 413, 415, 417, 419, 421, 423, 433, 435, 436, 457, 459, 461, 463, 465, 467, 477, 479, 480, 499, 501, 503, 505, 507, 509, 519, 521, 522, 545, 547, 549, 551, 553, 555, 565, 567, 568, 607, 609, 611, 613, 615, 617, 627, 629, 630, 655, 657, 659, 661, 663, 665, 675, 677, 678, 703, 705, 707, 709, 711, 713, 723, 725, 726, 750, 752, 754, 756, 758, 760, 770, 772, 773, 796, 798, 800, 802, 804, 806, 816, 818, 819, 839, 841, 843, 845, 847, 849, 859, 861, 862, 919, 921, 923, 925, 927, 929, 939, 941, 942, 967, 969, 971, 973, 975, 977, 987, 989, 990"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access10,Access11,Object12,Connection13,Connection60,Connection107,Connection153,Connection199,Connection246,Lambda247,Connection294,Connection341,Connection355,Connection371,Connection415,Connection459,Connection502,Connection549,Connection597,Connection611,Lambda612,Connection660,Connection709,Connection758,Connection806,Connection849,Connection896,Constant920,Connection930,Connection978,Connection1024,Constant1031,Constant1032,Constant1033,Constant1034,Constant1035,Constant1036,Constant1037,Constant1038,Constant1039,Constant1040 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 6

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14], PgSelect[37]
ᐳ: 15, 20, 30, 31, 32, 35, 36
2: PgSelectRows[18], PgSelectRows[39]
ᐳ: 17, 19, 21, 23, 25, 27, 38, 40, 41"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgPageInfo15,First17,PgSelectRows18,PgSelectSingle19,Access20,PgCursor21,Last23,PgSelectSingle25,PgCursor27,Access29,Object30,Lambda31,Object34,Lambda35,PgSelect36,First37,PgSelectRows38,PgSelectSingle39,PgClassExpression40,Connection58,PgSelect60,PgPageInfo61,First63,PgSelectRows64,PgSelectSingle65,Access66,PgCursor67,Last69,PgSelectSingle71,PgCursor73,Access75,Object76,Lambda77,Object80,Lambda81,PgSelect82,First83,PgSelectRows84,PgSelectSingle85,PgClassExpression86,Connection104,PgSelect106,PgPageInfo107,First109,PgSelectRows110,PgSelectSingle111,Access112,PgCursor113,Last115,PgSelectSingle117,PgCursor119,Access121,Object122,Lambda123,Object126,Lambda127,PgSelect128,First129,PgSelectRows130,PgSelectSingle131,PgClassExpression132,Connection149,PgSelect151,PgPageInfo152,First154,PgSelectRows155,PgSelectSingle156,Access157,PgCursor158,Last160,PgSelectSingle162,PgCursor164,Access166,Object167,Lambda168,Object171,Lambda172,PgSelect173,First174,PgSelectRows175,PgSelectSingle176,PgClassExpression177,Connection194,PgSelect196,PgPageInfo197,First199,PgSelectRows200,PgSelectSingle201,Access202,PgCursor203,Last205,PgSelectSingle207,PgCursor209,Access211,Object212,Lambda213,Object216,Lambda217,PgSelect218,First219,PgSelectRows220,PgSelectSingle221,PgClassExpression222,Connection240,Lambda241,PgSelect243,PgPageInfo244,First246,PgSelectRows247,PgSelectSingle248,Access249,PgCursor250,Last252,PgSelectSingle254,PgCursor256,Access258,Object259,Lambda260,Object263,Lambda264,PgSelect265,First266,PgSelectRows267,PgSelectSingle268,PgClassExpression269,Connection287,PgSelect290,PgPageInfo291,First293,PgSelectRows294,PgSelectSingle295,Access296,PgCursor297,Last299,PgSelectSingle301,PgCursor303,Access305,Object306,Lambda307,Object310,Lambda311,PgSelect312,First313,PgSelectRows314,PgSelectSingle315,PgClassExpression316,Connection333,PgSelect335,PgSelectRows336,Access339,Connection347,PgSelect349,PgSelectRows350,Access353,__InputObject359,Connection363,ApplyInput365,PgSelect366,PgPageInfo367,First369,PgSelectRows370,PgSelectSingle371,Access372,PgCursor373,Last375,PgSelectSingle377,PgCursor379,Access381,Object382,Lambda383,Object386,Lambda387,PgSelect388,First389,PgSelectRows390,PgSelectSingle391,PgClassExpression392,__InputObject403,Connection407,ApplyInput409,PgSelect410,PgPageInfo411,First413,PgSelectRows414,PgSelectSingle415,Access416,PgCursor417,Last419,PgSelectSingle421,PgCursor423,Access425,Object426,Lambda427,Object430,Lambda431,PgSelect432,First433,PgSelectRows434,PgSelectSingle435,PgClassExpression436,__InputObject447,Connection451,ApplyInput453,PgSelect454,PgPageInfo455,First457,PgSelectRows458,PgSelectSingle459,Access460,PgCursor461,Last463,PgSelectSingle465,PgCursor467,Access469,Object470,Lambda471,Object474,Lambda475,PgSelect476,First477,PgSelectRows478,PgSelectSingle479,PgClassExpression480,Connection494,PgSelect496,PgPageInfo497,First499,PgSelectRows500,PgSelectSingle501,Access502,PgCursor503,Last505,PgSelectSingle507,PgCursor509,Access511,Object512,Lambda513,Object516,Lambda517,PgSelect518,First519,PgSelectRows520,PgSelectSingle521,PgClassExpression522,Connection540,PgSelect542,PgPageInfo543,First545,PgSelectRows546,PgSelectSingle547,Access548,PgCursor549,Last551,PgSelectSingle553,PgCursor555,Access557,Object558,Lambda559,Object562,Lambda563,PgSelect564,First565,PgSelectRows566,PgSelectSingle567,PgClassExpression568,__InputObject583,Connection587,ApplyInput589,PgSelect590,PgSelectRows591,Constant595,Connection601,Lambda602,PgSelect604,PgPageInfo605,First607,PgSelectRows608,PgSelectSingle609,Access610,PgCursor611,Last613,PgSelectSingle615,PgCursor617,Access619,Object620,Lambda621,Object624,Lambda625,PgSelect626,First627,PgSelectRows628,PgSelectSingle629,PgClassExpression630,Connection649,PgSelect652,PgPageInfo653,First655,PgSelectRows656,PgSelectSingle657,Access658,PgCursor659,Last661,PgSelectSingle663,PgCursor665,Access667,Object668,Lambda669,Object672,Lambda673,PgSelect674,First675,PgSelectRows676,PgSelectSingle677,PgClassExpression678,Connection697,PgSelect700,PgPageInfo701,First703,PgSelectRows704,PgSelectSingle705,Access706,PgCursor707,Last709,PgSelectSingle711,PgCursor713,Access715,Object716,Lambda717,Object720,Lambda721,PgSelect722,First723,PgSelectRows724,PgSelectSingle725,PgClassExpression726,__InputObject741,Connection744,ApplyInput746,PgSelect747,PgPageInfo748,First750,PgSelectRows751,PgSelectSingle752,Access753,PgCursor754,Last756,PgSelectSingle758,PgCursor760,Access762,Object763,Lambda764,Object767,Lambda768,PgSelect769,First770,PgSelectRows771,PgSelectSingle772,PgClassExpression773,Connection791,PgSelect793,PgPageInfo794,First796,PgSelectRows797,PgSelectSingle798,Access799,PgCursor800,Last802,PgSelectSingle804,PgCursor806,Access808,Object809,Lambda810,Object813,Lambda814,PgSelect815,First816,PgSelectRows817,PgSelectSingle818,PgClassExpression819,__InputObject829,Connection833,ApplyInput835,PgSelect836,PgPageInfo837,First839,PgSelectRows840,PgSelectSingle841,Access842,PgCursor843,Last845,PgSelectSingle847,PgCursor849,Access851,Object852,Lambda853,Object856,Lambda857,PgSelect858,First859,PgSelectRows860,PgSelectSingle861,PgClassExpression862,Connection880,PgSelect882,PgSelectRows883,Constant905,__InputObject909,Connection913,ApplyInput915,PgSelect916,PgPageInfo917,First919,PgSelectRows920,PgSelectSingle921,Access922,PgCursor923,Last925,PgSelectSingle927,PgCursor929,Access931,Object932,Lambda933,Object936,Lambda937,PgSelect938,First939,PgSelectRows940,PgSelectSingle941,PgClassExpression942,__InputObject957,Connection961,ApplyInput963,PgSelect964,PgPageInfo965,First967,PgSelectRows968,PgSelectSingle969,Access970,PgCursor971,Last973,PgSelectSingle975,PgCursor977,Access979,Object980,Lambda981,Object984,Lambda985,PgSelect986,First987,PgSelectRows988,PgSelectSingle989,PgClassExpression990,Connection1007,PgSelect1009,PgSelectRows1010,Constant1015,Constant1016,Constant1017,Constant1018,Constant1019,Constant1020,Constant1021,Constant1022,Constant1023 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 20

ROOT __Item{1}ᐸ18ᐳ[43]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgPageInfo15,First17,PgSelectRows18,PgSelectSingle19,Access20,PgCursor21,Last23,PgSelectSingle25,PgCursor27,Access30,Object31,Lambda32,Object35,Lambda36,PgSelect37,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 20

ROOT __Item{2}ᐸ18ᐳ[44]"):::bucket + class Bucket1,__Item43,PgSelectSingle44,PgCursor46,PgClassExpression47,PgClassExpression48,PgClassExpression49,PgClassExpression50,PgClassExpression51,PgClassExpression52,PgClassExpression53 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 66

ROOT __Item{2}ᐸ64ᐳ[89]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item44,PgSelectSingle45 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 45, 20

ROOT PgSelectSingle{2}ᐸpersonᐳ[45]"):::bucket + class Bucket2,__Item89,PgSelectSingle90,PgCursor92,PgClassExpression93,PgClassExpression94,PgClassExpression95,PgClassExpression96,PgClassExpression97,PgClassExpression98,PgClassExpression99 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 112

ROOT __Item{3}ᐸ110ᐳ[135]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor47,PgClassExpression48,PgClassExpression49,PgClassExpression50,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 12, 60, 1031, 6

ROOT Connectionᐸ58ᐳ[60]
1: PgSelect[61], PgSelect[84]
ᐳ: 62, 67, 77, 78, 79, 82, 83
2: PgSelectRows[65], PgSelectRows[86]
ᐳ: 64, 66, 68, 70, 72, 74, 85, 87, 88"):::bucket + class Bucket3,__Item135,PgSelectSingle136,PgCursor138,PgClassExpression139,PgClassExpression140,PgClassExpression141,PgClassExpression142,PgClassExpression143,PgClassExpression144,PgClassExpression145 bucket3 + Bucket4("Bucket 4 (listItem)
Deps: 157

ROOT __Item{4}ᐸ155ᐳ[180]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect61,PgPageInfo62,First64,PgSelectRows65,PgSelectSingle66,Access67,PgCursor68,Last70,PgSelectSingle72,PgCursor74,Access77,Object78,Lambda79,Object82,Lambda83,PgSelect84,First85,PgSelectRows86,PgSelectSingle87,PgClassExpression88 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 67

ROOT __Item{5}ᐸ65ᐳ[91]"):::bucket + class Bucket4,__Item180,PgSelectSingle181,PgCursor183,PgClassExpression184,PgClassExpression185,PgClassExpression186,PgClassExpression187,PgClassExpression188,PgClassExpression189,PgClassExpression190 bucket4 + Bucket5("Bucket 5 (listItem)
Deps: 202

ROOT __Item{5}ᐸ200ᐳ[225]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item91,PgSelectSingle92 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 92, 67

ROOT PgSelectSingle{5}ᐸpersonᐳ[92]"):::bucket + class Bucket5,__Item225,PgSelectSingle226,PgCursor228,PgClassExpression229,PgClassExpression230,PgClassExpression231,PgClassExpression232,PgClassExpression233,PgClassExpression234,PgClassExpression235 bucket5 + Bucket6("Bucket 6 (listItem)
Deps: 249

ROOT __Item{6}ᐸ247ᐳ[272]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,PgCursor94,PgClassExpression95,PgClassExpression96,PgClassExpression97,PgClassExpression98,PgClassExpression99,PgClassExpression100,PgClassExpression101 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 12, 107, 1031, 6

ROOT Connectionᐸ105ᐳ[107]
1: PgSelect[108], PgSelect[131]
ᐳ: 109, 114, 124, 125, 126, 129, 130
2: PgSelectRows[112], PgSelectRows[133]
ᐳ: 111, 113, 115, 117, 119, 121, 132, 134, 135"):::bucket + class Bucket6,__Item272,PgSelectSingle273,PgCursor275,PgClassExpression276,PgClassExpression277,PgClassExpression278,PgClassExpression279,PgClassExpression280,PgClassExpression281,PgClassExpression282 bucket6 + Bucket7("Bucket 7 (listItem)
Deps: 296

ROOT __Item{7}ᐸ294ᐳ[319]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgSelect108,PgPageInfo109,First111,PgSelectRows112,PgSelectSingle113,Access114,PgCursor115,Last117,PgSelectSingle119,PgCursor121,Access124,Object125,Lambda126,Object129,Lambda130,PgSelect131,First132,PgSelectRows133,PgSelectSingle134,PgClassExpression135 bucket7 - Bucket8("Bucket 8 (listItem)
Deps: 114

ROOT __Item{8}ᐸ112ᐳ[138]"):::bucket + class Bucket7,__Item319,PgSelectSingle320,PgCursor322,PgClassExpression323,PgClassExpression324,PgClassExpression325,PgClassExpression326,PgClassExpression327,PgClassExpression328,PgClassExpression329 bucket7 + Bucket8("Bucket 8 (listItem)
Deps: 339

ROOT __Item{8}ᐸ336ᐳ[337]"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,__Item138,PgSelectSingle139 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 139, 114

ROOT PgSelectSingle{8}ᐸpersonᐳ[139]"):::bucket + class Bucket8,__Item337,PgSelectSingle338,PgCursor340,PgClassExpression341,PgClassExpression342,PgClassExpression343 bucket8 + Bucket9("Bucket 9 (listItem)
Deps: 353

ROOT __Item{9}ᐸ350ᐳ[351]"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,PgCursor141,PgClassExpression142,PgClassExpression143,PgClassExpression144,PgClassExpression145,PgClassExpression146,PgClassExpression147,PgClassExpression148 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 12, 153, 6

ROOT Connectionᐸ151ᐳ[153]
1: PgSelect[154], PgSelect[177]
ᐳ: 155, 160, 170, 171, 172, 175, 176
2: PgSelectRows[158], PgSelectRows[179]
ᐳ: 157, 159, 161, 163, 165, 167, 178, 180, 181"):::bucket + class Bucket9,__Item351,PgSelectSingle352,PgCursor354,PgClassExpression355,PgClassExpression356,PgClassExpression357 bucket9 + Bucket10("Bucket 10 (listItem)
Deps: 372

ROOT __Item{10}ᐸ370ᐳ[395]"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,PgSelect154,PgPageInfo155,First157,PgSelectRows158,PgSelectSingle159,Access160,PgCursor161,Last163,PgSelectSingle165,PgCursor167,Access170,Object171,Lambda172,Object175,Lambda176,PgSelect177,First178,PgSelectRows179,PgSelectSingle180,PgClassExpression181 bucket10 - Bucket11("Bucket 11 (listItem)
Deps: 160

ROOT __Item{11}ᐸ158ᐳ[184]"):::bucket + class Bucket10,__Item395,PgSelectSingle396,PgCursor398,PgClassExpression399,PgClassExpression400 bucket10 + Bucket11("Bucket 11 (listItem)
Deps: 416

ROOT __Item{11}ᐸ414ᐳ[439]"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11,__Item184,PgSelectSingle185 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 185, 160

ROOT PgSelectSingle{11}ᐸpersonᐳ[185]"):::bucket + class Bucket11,__Item439,PgSelectSingle440,PgCursor442,PgClassExpression443,PgClassExpression444 bucket11 + Bucket12("Bucket 12 (listItem)
Deps: 460

ROOT __Item{12}ᐸ458ᐳ[483]"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12,PgCursor187,PgClassExpression188,PgClassExpression189,PgClassExpression190,PgClassExpression191,PgClassExpression192,PgClassExpression193,PgClassExpression194 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 12, 199, 6

ROOT Connectionᐸ197ᐳ[199]
1: PgSelect[200], PgSelect[223]
ᐳ: 201, 206, 216, 217, 218, 221, 222
2: PgSelectRows[204], PgSelectRows[225]
ᐳ: 203, 205, 207, 209, 211, 213, 224, 226, 227"):::bucket + class Bucket12,__Item483,PgSelectSingle484,PgCursor486,PgClassExpression487,PgClassExpression488 bucket12 + Bucket13("Bucket 13 (listItem)
Deps: 502

ROOT __Item{13}ᐸ500ᐳ[525]"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13,PgSelect200,PgPageInfo201,First203,PgSelectRows204,PgSelectSingle205,Access206,PgCursor207,Last209,PgSelectSingle211,PgCursor213,Access216,Object217,Lambda218,Object221,Lambda222,PgSelect223,First224,PgSelectRows225,PgSelectSingle226,PgClassExpression227 bucket13 - Bucket14("Bucket 14 (listItem)
Deps: 206

ROOT __Item{14}ᐸ204ᐳ[230]"):::bucket + class Bucket13,__Item525,PgSelectSingle526,PgCursor528,PgClassExpression529,PgClassExpression530,PgClassExpression531,PgClassExpression532,PgClassExpression533,PgClassExpression534,PgClassExpression535 bucket13 + Bucket14("Bucket 14 (listItem)
Deps: 548

ROOT __Item{14}ᐸ546ᐳ[571]"):::bucket classDef bucket14 stroke:#a52a2a - class Bucket14,__Item230,PgSelectSingle231 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 231, 206

ROOT PgSelectSingle{14}ᐸpersonᐳ[231]"):::bucket + class Bucket14,__Item571,PgSelectSingle572,PgCursor574,PgClassExpression575,PgClassExpression576,PgClassExpression577,PgClassExpression578,PgClassExpression579,PgClassExpression580,PgClassExpression581 bucket14 + Bucket15("Bucket 15 (listItem)

ROOT __Item{15}ᐸ591ᐳ[592]"):::bucket classDef bucket15 stroke:#ff00ff - class Bucket15,PgCursor233,PgClassExpression234,PgClassExpression235,PgClassExpression236,PgClassExpression237,PgClassExpression238,PgClassExpression239,PgClassExpression240 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 12, 246, 247, 6

ROOT Connectionᐸ244ᐳ[246]
1: PgSelect[248], PgSelect[271]
ᐳ: 249, 254, 264, 265, 266, 269, 270
2: PgSelectRows[252], PgSelectRows[273]
ᐳ: 251, 253, 255, 257, 259, 261, 272, 274, 275"):::bucket + class Bucket15,__Item592,PgSelectSingle593,PgClassExpression594 bucket15 + Bucket16("Bucket 16 (listItem)
Deps: 610

ROOT __Item{16}ᐸ608ᐳ[633]"):::bucket classDef bucket16 stroke:#f5deb3 - class Bucket16,PgSelect248,PgPageInfo249,First251,PgSelectRows252,PgSelectSingle253,Access254,PgCursor255,Last257,PgSelectSingle259,PgCursor261,Access264,Object265,Lambda266,Object269,Lambda270,PgSelect271,First272,PgSelectRows273,PgSelectSingle274,PgClassExpression275 bucket16 - Bucket17("Bucket 17 (listItem)
Deps: 254

ROOT __Item{17}ᐸ252ᐳ[278]"):::bucket + class Bucket16,__Item633,PgSelectSingle634,PgCursor636,PgClassExpression637,PgClassExpression638,PgClassExpression639,PgClassExpression640,PgClassExpression641,PgClassExpression642,PgClassExpression643 bucket16 + Bucket17("Bucket 17 (listItem)
Deps: 658

ROOT __Item{17}ᐸ656ᐳ[681]"):::bucket classDef bucket17 stroke:#696969 - class Bucket17,__Item278,PgSelectSingle279 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 279, 254

ROOT PgSelectSingle{17}ᐸpersonᐳ[279]"):::bucket + class Bucket17,__Item681,PgSelectSingle682,PgCursor684,PgClassExpression685,PgClassExpression686,PgClassExpression687,PgClassExpression688,PgClassExpression689,PgClassExpression690,PgClassExpression691 bucket17 + Bucket18("Bucket 18 (listItem)
Deps: 706

ROOT __Item{18}ᐸ704ᐳ[729]"):::bucket classDef bucket18 stroke:#00bfff - class Bucket18,PgCursor281,PgClassExpression282,PgClassExpression283,PgClassExpression284,PgClassExpression285,PgClassExpression286,PgClassExpression287,PgClassExpression288 bucket18 - Bucket19("Bucket 19 (nullableBoundary)
Deps: 12, 294, 247, 6

ROOT Connectionᐸ292ᐳ[294]
1: PgSelect[296], PgSelect[319]
ᐳ: 297, 302, 312, 313, 314, 317, 318
2: PgSelectRows[300], PgSelectRows[321]
ᐳ: 299, 301, 303, 305, 307, 309, 320, 322, 323"):::bucket + class Bucket18,__Item729,PgSelectSingle730,PgCursor732,PgClassExpression733,PgClassExpression734,PgClassExpression735,PgClassExpression736,PgClassExpression737,PgClassExpression738,PgClassExpression739 bucket18 + Bucket19("Bucket 19 (listItem)
Deps: 753

ROOT __Item{19}ᐸ751ᐳ[776]"):::bucket classDef bucket19 stroke:#7f007f - class Bucket19,PgSelect296,PgPageInfo297,First299,PgSelectRows300,PgSelectSingle301,Access302,PgCursor303,Last305,PgSelectSingle307,PgCursor309,Access312,Object313,Lambda314,Object317,Lambda318,PgSelect319,First320,PgSelectRows321,PgSelectSingle322,PgClassExpression323 bucket19 - Bucket20("Bucket 20 (listItem)
Deps: 302

ROOT __Item{20}ᐸ300ᐳ[326]"):::bucket + class Bucket19,__Item776,PgSelectSingle777,PgCursor779,PgClassExpression780,PgClassExpression781,PgClassExpression782,PgClassExpression783,PgClassExpression784,PgClassExpression785,PgClassExpression786 bucket19 + Bucket20("Bucket 20 (listItem)
Deps: 799

ROOT __Item{20}ᐸ797ᐳ[822]"):::bucket classDef bucket20 stroke:#ffa500 - class Bucket20,__Item326,PgSelectSingle327 bucket20 - Bucket21("Bucket 21 (nullableBoundary)
Deps: 327, 302

ROOT PgSelectSingle{20}ᐸpersonᐳ[327]"):::bucket + class Bucket20,__Item822,PgSelectSingle823,PgCursor825,PgClassExpression826,PgClassExpression827 bucket20 + Bucket21("Bucket 21 (listItem)
Deps: 842

ROOT __Item{21}ᐸ840ᐳ[865]"):::bucket classDef bucket21 stroke:#0000ff - class Bucket21,PgCursor329,PgClassExpression330,PgClassExpression331,PgClassExpression332,PgClassExpression333,PgClassExpression334,PgClassExpression335,PgClassExpression336 bucket21 - Bucket22("Bucket 22 (nullableBoundary)
Deps: 12, 341

ROOT Connectionᐸ339ᐳ[341]
1: PgSelect[342]
ᐳ: Access[346]
2: PgSelectRows[343]"):::bucket + class Bucket21,__Item865,PgSelectSingle866,PgCursor868,PgClassExpression869,PgClassExpression870,PgClassExpression871,PgClassExpression872,PgClassExpression873,PgClassExpression874,PgClassExpression875 bucket21 + Bucket22("Bucket 22 (listItem)
Deps: 11, 905

ROOT __Item{22}ᐸ883ᐳ[884]
1:
ᐳ: 885, 886, 887, 896, 906, 907
2: PgSelect[888]
3: PgSelectRows[893]
ᐳ: 892, 894, 895, 902"):::bucket classDef bucket22 stroke:#7fff00 - class Bucket22,PgSelect342,PgSelectRows343,Access346 bucket22 - Bucket23("Bucket 23 (listItem)
Deps: 346

ROOT __Item{23}ᐸ343ᐳ[344]"):::bucket + class Bucket22,__Item884,PgSelectSingle885,PgClassExpression886,PgClassExpression887,PgSelect888,First892,PgSelectRows893,PgSelectSingle894,PgClassExpression895,PgClassExpression896,PgClassExpression902,List906,Lambda907 bucket22 + Bucket23("Bucket 23 (listItem)
Deps: 922

ROOT __Item{23}ᐸ920ᐳ[945]"):::bucket classDef bucket23 stroke:#ff1493 - class Bucket23,__Item344,PgSelectSingle345 bucket23 - Bucket24("Bucket 24 (nullableBoundary)
Deps: 345, 346

ROOT PgSelectSingle{23}ᐸupdatable_viewᐳ[345]"):::bucket + class Bucket23,__Item945,PgSelectSingle946,PgCursor948,PgClassExpression949,PgClassExpression950,PgClassExpression951,PgClassExpression952,PgClassExpression953,PgClassExpression954,PgClassExpression955 bucket23 + Bucket24("Bucket 24 (listItem)
Deps: 970

ROOT __Item{24}ᐸ968ᐳ[993]"):::bucket classDef bucket24 stroke:#808000 - class Bucket24,PgCursor347,PgClassExpression348,PgClassExpression349,PgClassExpression350 bucket24 - Bucket25("Bucket 25 (nullableBoundary)
Deps: 12, 355

ROOT Connectionᐸ353ᐳ[355]
1: PgSelect[356]
ᐳ: Access[360]
2: PgSelectRows[357]"):::bucket + class Bucket24,__Item993,PgSelectSingle994,PgCursor996,PgClassExpression997,PgClassExpression998,PgClassExpression999,PgClassExpression1000,PgClassExpression1001,PgClassExpression1002,PgClassExpression1003 bucket24 + Bucket25("Bucket 25 (listItem)

ROOT __Item{25}ᐸ1010ᐳ[1011]"):::bucket classDef bucket25 stroke:#dda0dd - class Bucket25,PgSelect356,PgSelectRows357,Access360 bucket25 - Bucket26("Bucket 26 (listItem)
Deps: 360

ROOT __Item{26}ᐸ357ᐳ[358]"):::bucket - classDef bucket26 stroke:#ff0000 - class Bucket26,__Item358,PgSelectSingle359 bucket26 - Bucket27("Bucket 27 (nullableBoundary)
Deps: 359, 360

ROOT PgSelectSingle{26}ᐸupdatable_viewᐳ[359]"):::bucket - classDef bucket27 stroke:#ffff00 - class Bucket27,PgCursor361,PgClassExpression362,PgClassExpression363,PgClassExpression364 bucket27 - Bucket28("Bucket 28 (nullableBoundary)
Deps: 12, 1031, 371, 6

ROOT Connectionᐸ369ᐳ[371]
1: PgSelect[372], PgSelect[395]
ᐳ: 373, 378, 388, 389, 390, 393, 394
2: PgSelectRows[376], PgSelectRows[397]
ᐳ: 375, 377, 379, 381, 383, 385, 396, 398, 399"):::bucket - classDef bucket28 stroke:#00ffff - class Bucket28,PgSelect372,PgPageInfo373,First375,PgSelectRows376,PgSelectSingle377,Access378,PgCursor379,Last381,PgSelectSingle383,PgCursor385,Access388,Object389,Lambda390,Object393,Lambda394,PgSelect395,First396,PgSelectRows397,PgSelectSingle398,PgClassExpression399 bucket28 - Bucket29("Bucket 29 (listItem)
Deps: 378

ROOT __Item{29}ᐸ376ᐳ[402]"):::bucket - classDef bucket29 stroke:#4169e1 - class Bucket29,__Item402,PgSelectSingle403 bucket29 - Bucket30("Bucket 30 (nullableBoundary)
Deps: 403, 378

ROOT PgSelectSingle{29}ᐸpostᐳ[403]"):::bucket - classDef bucket30 stroke:#3cb371 - class Bucket30,PgCursor405,PgClassExpression406,PgClassExpression407 bucket30 - Bucket31("Bucket 31 (nullableBoundary)
Deps: 12, 1031, 415, 6

ROOT Connectionᐸ413ᐳ[415]
1: PgSelect[416], PgSelect[439]
ᐳ: 417, 422, 432, 433, 434, 437, 438
2: PgSelectRows[420], PgSelectRows[441]
ᐳ: 419, 421, 423, 425, 427, 429, 440, 442, 443"):::bucket - classDef bucket31 stroke:#a52a2a - class Bucket31,PgSelect416,PgPageInfo417,First419,PgSelectRows420,PgSelectSingle421,Access422,PgCursor423,Last425,PgSelectSingle427,PgCursor429,Access432,Object433,Lambda434,Object437,Lambda438,PgSelect439,First440,PgSelectRows441,PgSelectSingle442,PgClassExpression443 bucket31 - Bucket32("Bucket 32 (listItem)
Deps: 422

ROOT __Item{32}ᐸ420ᐳ[446]"):::bucket - classDef bucket32 stroke:#ff00ff - class Bucket32,__Item446,PgSelectSingle447 bucket32 - Bucket33("Bucket 33 (nullableBoundary)
Deps: 447, 422

ROOT PgSelectSingle{32}ᐸpostᐳ[447]"):::bucket - classDef bucket33 stroke:#f5deb3 - class Bucket33,PgCursor449,PgClassExpression450,PgClassExpression451 bucket33 - Bucket34("Bucket 34 (nullableBoundary)
Deps: 12, 1033, 459, 6

ROOT Connectionᐸ457ᐳ[459]
1: PgSelect[460], PgSelect[483]
ᐳ: 461, 466, 476, 477, 478, 481, 482
2: PgSelectRows[464], PgSelectRows[485]
ᐳ: 463, 465, 467, 469, 471, 473, 484, 486, 487"):::bucket - classDef bucket34 stroke:#696969 - class Bucket34,PgSelect460,PgPageInfo461,First463,PgSelectRows464,PgSelectSingle465,Access466,PgCursor467,Last469,PgSelectSingle471,PgCursor473,Access476,Object477,Lambda478,Object481,Lambda482,PgSelect483,First484,PgSelectRows485,PgSelectSingle486,PgClassExpression487 bucket34 - Bucket35("Bucket 35 (listItem)
Deps: 466

ROOT __Item{35}ᐸ464ᐳ[490]"):::bucket - classDef bucket35 stroke:#00bfff - class Bucket35,__Item490,PgSelectSingle491 bucket35 - Bucket36("Bucket 36 (nullableBoundary)
Deps: 491, 466

ROOT PgSelectSingle{35}ᐸpostᐳ[491]"):::bucket - classDef bucket36 stroke:#7f007f - class Bucket36,PgCursor493,PgClassExpression494,PgClassExpression495 bucket36 - Bucket37("Bucket 37 (nullableBoundary)
Deps: 12, 502, 1034, 1033, 6

ROOT Connectionᐸ500ᐳ[502]
1: PgSelect[503], PgSelect[526]
ᐳ: 504, 509, 519, 520, 521, 524, 525
2: PgSelectRows[507], PgSelectRows[528]
ᐳ: 506, 508, 510, 512, 514, 516, 527, 529, 530"):::bucket - classDef bucket37 stroke:#ffa500 - class Bucket37,PgSelect503,PgPageInfo504,First506,PgSelectRows507,PgSelectSingle508,Access509,PgCursor510,Last512,PgSelectSingle514,PgCursor516,Access519,Object520,Lambda521,Object524,Lambda525,PgSelect526,First527,PgSelectRows528,PgSelectSingle529,PgClassExpression530 bucket37 - Bucket38("Bucket 38 (listItem)
Deps: 509

ROOT __Item{38}ᐸ507ᐳ[533]"):::bucket - classDef bucket38 stroke:#0000ff - class Bucket38,__Item533,PgSelectSingle534 bucket38 - Bucket39("Bucket 39 (nullableBoundary)
Deps: 534, 509

ROOT PgSelectSingle{38}ᐸpersonᐳ[534]"):::bucket - classDef bucket39 stroke:#7fff00 - class Bucket39,PgCursor536,PgClassExpression537,PgClassExpression538,PgClassExpression539,PgClassExpression540,PgClassExpression541,PgClassExpression542,PgClassExpression543 bucket39 - Bucket40("Bucket 40 (nullableBoundary)
Deps: 12, 549, 1035, 6

ROOT Connectionᐸ547ᐳ[549]
1: PgSelect[550], PgSelect[573]
ᐳ: 551, 556, 566, 567, 568, 571, 572
2: PgSelectRows[554], PgSelectRows[575]
ᐳ: 553, 555, 557, 559, 561, 563, 574, 576, 577"):::bucket - classDef bucket40 stroke:#ff1493 - class Bucket40,PgSelect550,PgPageInfo551,First553,PgSelectRows554,PgSelectSingle555,Access556,PgCursor557,Last559,PgSelectSingle561,PgCursor563,Access566,Object567,Lambda568,Object571,Lambda572,PgSelect573,First574,PgSelectRows575,PgSelectSingle576,PgClassExpression577 bucket40 - Bucket41("Bucket 41 (listItem)
Deps: 556

ROOT __Item{41}ᐸ554ᐳ[580]"):::bucket - classDef bucket41 stroke:#808000 - class Bucket41,__Item580,PgSelectSingle581 bucket41 - Bucket42("Bucket 42 (nullableBoundary)
Deps: 581, 556

ROOT PgSelectSingle{41}ᐸpersonᐳ[581]"):::bucket - classDef bucket42 stroke:#dda0dd - class Bucket42,PgCursor583,PgClassExpression584,PgClassExpression585,PgClassExpression586,PgClassExpression587,PgClassExpression588,PgClassExpression589,PgClassExpression590 bucket42 - Bucket43("Bucket 43 (nullableBoundary)
Deps: 12, 1031, 597

ROOT Connectionᐸ595ᐳ[597]
1: PgSelect[598]
2: PgSelectRows[599]"):::bucket - classDef bucket43 stroke:#ff0000 - class Bucket43,PgSelect598,PgSelectRows599 bucket43 - Bucket44("Bucket 44 (listItem)

ROOT __Item{44}ᐸ599ᐳ[600]"):::bucket - classDef bucket44 stroke:#ffff00 - class Bucket44,__Item600,PgSelectSingle601 bucket44 - Bucket45("Bucket 45 (nullableBoundary)
Deps: 601

ROOT PgSelectSingle{44}ᐸedge_caseᐳ[601]"):::bucket - classDef bucket45 stroke:#00ffff - class Bucket45,PgClassExpression602 bucket45 - Bucket46("Bucket 46 (nullableBoundary)
Deps: 12, 611, 612, 1036, 1031, 6

ROOT Connectionᐸ609ᐳ[611]
1: PgSelect[613], PgSelect[636]
ᐳ: 614, 619, 628, 629, 630, 634, 635
2: PgSelectRows[617], PgSelectRows[638]
ᐳ: 616, 618, 620, 622, 624, 626, 637, 639, 640"):::bucket - classDef bucket46 stroke:#4169e1 - class Bucket46,PgSelect613,PgPageInfo614,First616,PgSelectRows617,PgSelectSingle618,Access619,PgCursor620,Last622,PgSelectSingle624,PgCursor626,Access628,Object629,Lambda630,Object634,Lambda635,PgSelect636,First637,PgSelectRows638,PgSelectSingle639,PgClassExpression640 bucket46 - Bucket47("Bucket 47 (listItem)
Deps: 619

ROOT __Item{47}ᐸ617ᐳ[643]"):::bucket - classDef bucket47 stroke:#3cb371 - class Bucket47,__Item643,PgSelectSingle644 bucket47 - Bucket48("Bucket 48 (nullableBoundary)
Deps: 644, 619

ROOT PgSelectSingle{47}ᐸpersonᐳ[644]"):::bucket - classDef bucket48 stroke:#a52a2a - class Bucket48,PgCursor646,PgClassExpression647,PgClassExpression648,PgClassExpression649,PgClassExpression650,PgClassExpression651,PgClassExpression652,PgClassExpression653 bucket48 - Bucket49("Bucket 49 (nullableBoundary)
Deps: 12, 660, 247, 1033, 6

ROOT Connectionᐸ658ᐳ[660]
1: PgSelect[662], PgSelect[685]
ᐳ: 663, 668, 678, 679, 680, 683, 684
2: PgSelectRows[666], PgSelectRows[687]
ᐳ: 665, 667, 669, 671, 673, 675, 686, 688, 689"):::bucket - classDef bucket49 stroke:#ff00ff - class Bucket49,PgSelect662,PgPageInfo663,First665,PgSelectRows666,PgSelectSingle667,Access668,PgCursor669,Last671,PgSelectSingle673,PgCursor675,Access678,Object679,Lambda680,Object683,Lambda684,PgSelect685,First686,PgSelectRows687,PgSelectSingle688,PgClassExpression689 bucket49 - Bucket50("Bucket 50 (listItem)
Deps: 668

ROOT __Item{50}ᐸ666ᐳ[692]"):::bucket - classDef bucket50 stroke:#f5deb3 - class Bucket50,__Item692,PgSelectSingle693 bucket50 - Bucket51("Bucket 51 (nullableBoundary)
Deps: 693, 668

ROOT PgSelectSingle{50}ᐸpersonᐳ[693]"):::bucket - classDef bucket51 stroke:#696969 - class Bucket51,PgCursor695,PgClassExpression696,PgClassExpression697,PgClassExpression698,PgClassExpression699,PgClassExpression700,PgClassExpression701,PgClassExpression702 bucket51 - Bucket52("Bucket 52 (nullableBoundary)
Deps: 12, 709, 247, 1033, 6

ROOT Connectionᐸ707ᐳ[709]
1: PgSelect[711], PgSelect[734]
ᐳ: 712, 717, 727, 728, 729, 732, 733
2: PgSelectRows[715], PgSelectRows[736]
ᐳ: 714, 716, 718, 720, 722, 724, 735, 737, 738"):::bucket - classDef bucket52 stroke:#00bfff - class Bucket52,PgSelect711,PgPageInfo712,First714,PgSelectRows715,PgSelectSingle716,Access717,PgCursor718,Last720,PgSelectSingle722,PgCursor724,Access727,Object728,Lambda729,Object732,Lambda733,PgSelect734,First735,PgSelectRows736,PgSelectSingle737,PgClassExpression738 bucket52 - Bucket53("Bucket 53 (listItem)
Deps: 717

ROOT __Item{53}ᐸ715ᐳ[741]"):::bucket - classDef bucket53 stroke:#7f007f - class Bucket53,__Item741,PgSelectSingle742 bucket53 - Bucket54("Bucket 54 (nullableBoundary)
Deps: 742, 717

ROOT PgSelectSingle{53}ᐸpersonᐳ[742]"):::bucket - classDef bucket54 stroke:#ffa500 - class Bucket54,PgCursor744,PgClassExpression745,PgClassExpression746,PgClassExpression747,PgClassExpression748,PgClassExpression749,PgClassExpression750,PgClassExpression751 bucket54 - Bucket55("Bucket 55 (nullableBoundary)
Deps: 12, 758, 6

ROOT Connectionᐸ756ᐳ[758]
1: PgSelect[759], PgSelect[782]
ᐳ: 760, 765, 775, 776, 777, 780, 781
2: PgSelectRows[763], PgSelectRows[784]
ᐳ: 762, 764, 766, 768, 770, 772, 783, 785, 786"):::bucket - classDef bucket55 stroke:#0000ff - class Bucket55,PgSelect759,PgPageInfo760,First762,PgSelectRows763,PgSelectSingle764,Access765,PgCursor766,Last768,PgSelectSingle770,PgCursor772,Access775,Object776,Lambda777,Object780,Lambda781,PgSelect782,First783,PgSelectRows784,PgSelectSingle785,PgClassExpression786 bucket55 - Bucket56("Bucket 56 (listItem)
Deps: 765

ROOT __Item{56}ᐸ763ᐳ[789]"):::bucket - classDef bucket56 stroke:#7fff00 - class Bucket56,__Item789,PgSelectSingle790 bucket56 - Bucket57("Bucket 57 (nullableBoundary)
Deps: 790, 765

ROOT PgSelectSingle{56}ᐸpersonᐳ[790]"):::bucket - classDef bucket57 stroke:#ff1493 - class Bucket57,PgCursor792,PgClassExpression793,PgClassExpression794,PgClassExpression795,PgClassExpression796,PgClassExpression797,PgClassExpression798,PgClassExpression799 bucket57 - Bucket58("Bucket 58 (nullableBoundary)
Deps: 12, 806, 1034, 6

ROOT Connectionᐸ804ᐳ[806]
1: PgSelect[807], PgSelect[830]
ᐳ: 808, 813, 823, 824, 825, 828, 829
2: PgSelectRows[811], PgSelectRows[832]
ᐳ: 810, 812, 814, 816, 818, 820, 831, 833, 834"):::bucket - classDef bucket58 stroke:#808000 - class Bucket58,PgSelect807,PgPageInfo808,First810,PgSelectRows811,PgSelectSingle812,Access813,PgCursor814,Last816,PgSelectSingle818,PgCursor820,Access823,Object824,Lambda825,Object828,Lambda829,PgSelect830,First831,PgSelectRows832,PgSelectSingle833,PgClassExpression834 bucket58 - Bucket59("Bucket 59 (listItem)
Deps: 813

ROOT __Item{59}ᐸ811ᐳ[837]"):::bucket - classDef bucket59 stroke:#dda0dd - class Bucket59,__Item837,PgSelectSingle838 bucket59 - Bucket60("Bucket 60 (nullableBoundary)
Deps: 838, 813

ROOT PgSelectSingle{59}ᐸpostᐳ[838]"):::bucket - classDef bucket60 stroke:#ff0000 - class Bucket60,PgCursor840,PgClassExpression841,PgClassExpression842 bucket60 - Bucket61("Bucket 61 (nullableBoundary)
Deps: 12, 1038, 849, 6

ROOT Connectionᐸ847ᐳ[849]
1: PgSelect[850], PgSelect[873]
ᐳ: 851, 856, 866, 867, 868, 871, 872
2: PgSelectRows[854], PgSelectRows[875]
ᐳ: 853, 855, 857, 859, 861, 863, 874, 876, 877"):::bucket - classDef bucket61 stroke:#ffff00 - class Bucket61,PgSelect850,PgPageInfo851,First853,PgSelectRows854,PgSelectSingle855,Access856,PgCursor857,Last859,PgSelectSingle861,PgCursor863,Access866,Object867,Lambda868,Object871,Lambda872,PgSelect873,First874,PgSelectRows875,PgSelectSingle876,PgClassExpression877 bucket61 - Bucket62("Bucket 62 (listItem)
Deps: 856

ROOT __Item{62}ᐸ854ᐳ[880]"):::bucket - classDef bucket62 stroke:#00ffff - class Bucket62,__Item880,PgSelectSingle881 bucket62 - Bucket63("Bucket 63 (nullableBoundary)
Deps: 881, 856

ROOT PgSelectSingle{62}ᐸpersonᐳ[881]"):::bucket - classDef bucket63 stroke:#4169e1 - class Bucket63,PgCursor883,PgClassExpression884,PgClassExpression885,PgClassExpression886,PgClassExpression887,PgClassExpression888,PgClassExpression889,PgClassExpression890 bucket63 - Bucket64("Bucket 64 (nullableBoundary)
Deps: 12, 896, 1031, 920

ROOT Connectionᐸ894ᐳ[896]
1: PgSelect[897]
2: PgSelectRows[898]"):::bucket - classDef bucket64 stroke:#3cb371 - class Bucket64,PgSelect897,PgSelectRows898 bucket64 - Bucket65("Bucket 65 (listItem)
Deps: 12, 920

ROOT __Item{65}ᐸ898ᐳ[899]"):::bucket - classDef bucket65 stroke:#a52a2a - class Bucket65,__Item899,PgSelectSingle900 bucket65 - Bucket66("Bucket 66 (nullableBoundary)
Deps: 900, 12

ROOT PgSelectSingle{65}ᐸpostᐳ[900]
1:
ᐳ: 901, 902, 911
2: PgSelect[903]
3: PgSelectRows[908]
ᐳ: First[907], PgSelectSingle[909]"):::bucket - classDef bucket66 stroke:#ff00ff - class Bucket66,PgClassExpression901,PgClassExpression902,PgSelect903,First907,PgSelectRows908,PgSelectSingle909,PgClassExpression911 bucket66 - Bucket67("Bucket 67 (nullableBoundary)
Deps: 909

ROOT PgSelectSingle{66}ᐸpersonᐳ[909]"):::bucket - classDef bucket67 stroke:#f5deb3 - class Bucket67,PgClassExpression910,PgClassExpression917 bucket67 - Bucket68("Bucket 68 (nullableBoundary)
Deps: 900, 920

ROOT PgSelectSingle{65}ᐸpostᐳ[900]"):::bucket - classDef bucket68 stroke:#696969 - class Bucket68,PgClassExpression921,List922,Lambda923 bucket68 - Bucket69("Bucket 69 (nullableBoundary)
Deps: 12, 1039, 930, 6

ROOT Connectionᐸ928ᐳ[930]
1: PgSelect[931], PgSelect[954]
ᐳ: 932, 937, 947, 948, 949, 952, 953
2: PgSelectRows[935], PgSelectRows[956]
ᐳ: 934, 936, 938, 940, 942, 944, 955, 957, 958"):::bucket - classDef bucket69 stroke:#00bfff - class Bucket69,PgSelect931,PgPageInfo932,First934,PgSelectRows935,PgSelectSingle936,Access937,PgCursor938,Last940,PgSelectSingle942,PgCursor944,Access947,Object948,Lambda949,Object952,Lambda953,PgSelect954,First955,PgSelectRows956,PgSelectSingle957,PgClassExpression958 bucket69 - Bucket70("Bucket 70 (listItem)
Deps: 937

ROOT __Item{70}ᐸ935ᐳ[961]"):::bucket - classDef bucket70 stroke:#7f007f - class Bucket70,__Item961,PgSelectSingle962 bucket70 - Bucket71("Bucket 71 (nullableBoundary)
Deps: 962, 937

ROOT PgSelectSingle{70}ᐸpersonᐳ[962]"):::bucket - classDef bucket71 stroke:#ffa500 - class Bucket71,PgCursor964,PgClassExpression965,PgClassExpression966,PgClassExpression967,PgClassExpression968,PgClassExpression969,PgClassExpression970,PgClassExpression971 bucket71 - Bucket72("Bucket 72 (nullableBoundary)
Deps: 12, 1040, 978, 6

ROOT Connectionᐸ976ᐳ[978]
1: PgSelect[979], PgSelect[1002]
ᐳ: 980, 985, 995, 996, 997, 1000, 1001
2: PgSelectRows[983], PgSelectRows[1004]
ᐳ: 982, 984, 986, 988, 990, 992, 1003, 1005, 1006"):::bucket - classDef bucket72 stroke:#0000ff - class Bucket72,PgSelect979,PgPageInfo980,First982,PgSelectRows983,PgSelectSingle984,Access985,PgCursor986,Last988,PgSelectSingle990,PgCursor992,Access995,Object996,Lambda997,Object1000,Lambda1001,PgSelect1002,First1003,PgSelectRows1004,PgSelectSingle1005,PgClassExpression1006 bucket72 - Bucket73("Bucket 73 (listItem)
Deps: 985

ROOT __Item{73}ᐸ983ᐳ[1009]"):::bucket - classDef bucket73 stroke:#7fff00 - class Bucket73,__Item1009,PgSelectSingle1010 bucket73 - Bucket74("Bucket 74 (nullableBoundary)
Deps: 1010, 985

ROOT PgSelectSingle{73}ᐸpersonᐳ[1010]"):::bucket - classDef bucket74 stroke:#ff1493 - class Bucket74,PgCursor1012,PgClassExpression1013,PgClassExpression1014,PgClassExpression1015,PgClassExpression1016,PgClassExpression1017,PgClassExpression1018,PgClassExpression1019 bucket74 - Bucket75("Bucket 75 (nullableBoundary)
Deps: 12, 1024

ROOT Connectionᐸ1022ᐳ[1024]
1: PgSelect[1025]
2: PgSelectRows[1026]"):::bucket - classDef bucket75 stroke:#808000 - class Bucket75,PgSelect1025,PgSelectRows1026 bucket75 - Bucket76("Bucket 76 (listItem)

ROOT __Item{76}ᐸ1026ᐳ[1027]"):::bucket - classDef bucket76 stroke:#dda0dd - class Bucket76,__Item1027,PgSelectSingle1028 bucket76 - Bucket77("Bucket 77 (nullableBoundary)
Deps: 1028

ROOT PgSelectSingle{76}ᐸnull_test_recordᐳ[1028]"):::bucket - classDef bucket77 stroke:#ff0000 - class Bucket77,PgClassExpression1029,PgClassExpression1030 bucket77 - Bucket0 --> Bucket1 & Bucket4 & Bucket7 & Bucket10 & Bucket13 & Bucket16 & Bucket19 & Bucket22 & Bucket25 & Bucket28 & Bucket31 & Bucket34 & Bucket37 & Bucket40 & Bucket43 & Bucket46 & Bucket49 & Bucket52 & Bucket55 & Bucket58 & Bucket61 & Bucket64 & Bucket69 & Bucket72 & Bucket75 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 - Bucket10 --> Bucket11 - Bucket11 --> Bucket12 - Bucket13 --> Bucket14 - Bucket14 --> Bucket15 - Bucket16 --> Bucket17 - Bucket17 --> Bucket18 - Bucket19 --> Bucket20 - Bucket20 --> Bucket21 - Bucket22 --> Bucket23 - Bucket23 --> Bucket24 - Bucket25 --> Bucket26 - Bucket26 --> Bucket27 - Bucket28 --> Bucket29 - Bucket29 --> Bucket30 - Bucket31 --> Bucket32 - Bucket32 --> Bucket33 - Bucket34 --> Bucket35 - Bucket35 --> Bucket36 - Bucket37 --> Bucket38 - Bucket38 --> Bucket39 - Bucket40 --> Bucket41 - Bucket41 --> Bucket42 - Bucket43 --> Bucket44 - Bucket44 --> Bucket45 - Bucket46 --> Bucket47 - Bucket47 --> Bucket48 - Bucket49 --> Bucket50 - Bucket50 --> Bucket51 - Bucket52 --> Bucket53 - Bucket53 --> Bucket54 - Bucket55 --> Bucket56 - Bucket56 --> Bucket57 - Bucket58 --> Bucket59 - Bucket59 --> Bucket60 - Bucket61 --> Bucket62 - Bucket62 --> Bucket63 - Bucket64 --> Bucket65 - Bucket65 --> Bucket66 & Bucket68 - Bucket66 --> Bucket67 - Bucket69 --> Bucket70 - Bucket70 --> Bucket71 - Bucket72 --> Bucket73 - Bucket73 --> Bucket74 - Bucket75 --> Bucket76 - Bucket76 --> Bucket77 + class Bucket25,__Item1011,PgSelectSingle1012,PgClassExpression1013,PgClassExpression1014 bucket25 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 & Bucket11 & Bucket12 & Bucket13 & Bucket14 & Bucket15 & Bucket16 & Bucket17 & Bucket18 & Bucket19 & Bucket20 & Bucket21 & Bucket22 & Bucket23 & Bucket24 & Bucket25 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/connections.variables.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/connections.variables.mermaid index 95c4f7ca70..2ae5ba64b1 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/connections.variables.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/connections.variables.mermaid @@ -9,1611 +9,1489 @@ graph TD %% plan dependencies - Connection619{{"Connection[619∈0] ➊
ᐸ617ᐳ"}}:::plan - Constant1043{{"Constant[1043∈0] ➊
ᐸnullᐳ"}}:::plan - Constant1042{{"Constant[1042∈0] ➊
ᐸ2ᐳ"}}:::plan - Lambda620{{"Lambda[620∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant1043 & Constant1042 & Lambda620 --> Connection619 - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 - Connection509{{"Connection[509∈0] ➊
ᐸ507ᐳ"}}:::plan - Constant1040{{"Constant[1040∈0] ➊
ᐸ3ᐳ"}}:::plan - Constant1039{{"Constant[1039∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant1040 & Constant1039 --> Connection509 - Connection668{{"Connection[668∈0] ➊
ᐸ666ᐳ"}}:::plan - Lambda254{{"Lambda[254∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant1039 & Lambda254 --> Connection668 - Connection717{{"Connection[717∈0] ➊
ᐸ715ᐳ"}}:::plan - Constant1039 & Lambda254 --> Connection717 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access10 - __Value2 --> Access11 - Access55{{"Access[55∈0] ➊
ᐸ0.twoᐳ"}}:::plan - __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value0 --> Access55 - Connection61{{"Connection[61∈0] ➊
ᐸ59ᐳ"}}:::plan - Access55 --> Connection61 - Connection108{{"Connection[108∈0] ➊
ᐸ106ᐳ"}}:::plan - Access55 --> Connection108 - Access247{{"Access[247∈0] ➊
ᐸ0.cursor2ᐳ"}}:::plan - __Value0 --> Access247 - Connection253{{"Connection[253∈0] ➊
ᐸ251ᐳ"}}:::plan - Lambda254 --> Connection253 - Access247 --> Lambda254 - Connection301{{"Connection[301∈0] ➊
ᐸ299ᐳ"}}:::plan - Lambda254 --> Connection301 - Connection422{{"Connection[422∈0] ➊
ᐸ420ᐳ"}}:::plan - Access55 --> Connection422 - Connection466{{"Connection[466∈0] ➊
ᐸ464ᐳ"}}:::plan - Constant1039 --> Connection466 - Connection556{{"Connection[556∈0] ➊
ᐸ554ᐳ"}}:::plan - Constant1041{{"Constant[1041∈0] ➊
ᐸ0ᐳ"}}:::plan - Constant1041 --> Connection556 - Access612{{"Access[612∈0] ➊
ᐸ0.cursor6ᐳ"}}:::plan - __Value0 --> Access612 - Access612 --> Lambda620 - Connection814{{"Connection[814∈0] ➊
ᐸ812ᐳ"}}:::plan - Constant1040 --> Connection814 - Connection904{{"Connection[904∈0] ➊
ᐸ902ᐳ"}}:::plan - Constant1042 --> Connection904 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Connection157{{"Connection[157∈0] ➊
ᐸ155ᐳ"}}:::plan - Connection205{{"Connection[205∈0] ➊
ᐸ203ᐳ"}}:::plan - Connection348{{"Connection[348∈0] ➊
ᐸ346ᐳ"}}:::plan - Connection362{{"Connection[362∈0] ➊
ᐸ360ᐳ"}}:::plan - Connection378{{"Connection[378∈0] ➊
ᐸ376ᐳ"}}:::plan - Connection604{{"Connection[604∈0] ➊
ᐸ602ᐳ"}}:::plan - Connection766{{"Connection[766∈0] ➊
ᐸ764ᐳ"}}:::plan - Connection857{{"Connection[857∈0] ➊
ᐸ855ᐳ"}}:::plan - Constant928{{"Constant[928∈0] ➊
ᐸ'posts'ᐳ"}}:::plan - Connection938{{"Connection[938∈0] ➊
ᐸ936ᐳ"}}:::plan - Connection986{{"Connection[986∈0] ➊
ᐸ984ᐳ"}}:::plan - Connection1032{{"Connection[1032∈0] ➊
ᐸ1030ᐳ"}}:::plan - Constant1044{{"Constant[1044∈0] ➊
ᐸ'192.168.0.1'ᐳ"}}:::plan - Constant1045{{"Constant[1045∈0] ➊
ᐸ'192.168.0.0/24'ᐳ"}}:::plan - Constant1046{{"Constant[1046∈0] ➊
ᐸ'0000.0000.0000'ᐳ"}}:::plan - Object35{{"Object[35∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access30{{"Access[30∈1] ➊
ᐸ14.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access30 --> Object35 - Object31{{"Object[31∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access30 --> Object31 - PgSelect14[["PgSelect[14∈1] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgCursor21{{"PgCursor[21∈1] ➊"}}:::plan - PgSelectSingle19{{"PgSelectSingle[19∈1] ➊
ᐸpersonᐳ"}}:::plan - Access20{{"Access[20∈1] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan + PgSelect157[["PgSelect[157∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection153{{"Connection[153∈0] ➊
ᐸ151ᐳ"}}:::plan + Lambda154{{"Lambda[154∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect157 + Connection153 --> PgSelect157 + Lambda154 -- 2 --> PgSelect157 + PgSelect205[["PgSelect[205∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection202{{"Connection[202∈0] ➊
ᐸ200ᐳ"}}:::plan + Lambda203{{"Lambda[203∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect205 + Connection202 & Lambda203 --> PgSelect205 + PgSelect253[["PgSelect[253∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection250{{"Connection[250∈0] ➊
ᐸ248ᐳ"}}:::plan + Lambda251{{"Lambda[251∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect253 + Connection250 & Lambda251 --> PgSelect253 + PgSelect300[["PgSelect[300∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection297{{"Connection[297∈0] ➊
ᐸ295ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect300 + Connection297 & Lambda251 --> PgSelect300 + PgSelect376[["PgSelect[376∈0] ➊
ᐸpost+1ᐳ"]]:::plan + ApplyInput375{{"ApplyInput[375∈0] ➊"}}:::plan + Connection373{{"Connection[373∈0] ➊
ᐸ371ᐳ"}}:::plan + ApplyInput375 -->|rejectNull| PgSelect376 + Object11 & Connection373 --> PgSelect376 + PgSelect420[["PgSelect[420∈0] ➊
ᐸpost+1ᐳ"]]:::plan + ApplyInput419{{"ApplyInput[419∈0] ➊"}}:::plan + Connection417{{"Connection[417∈0] ➊
ᐸ415ᐳ"}}:::plan + Access54{{"Access[54∈0] ➊
ᐸ0.twoᐳ"}}:::plan + ApplyInput419 -->|rejectNull| PgSelect420 + Object11 & Connection417 & Access54 --> PgSelect420 + PgSelect464[["PgSelect[464∈0] ➊
ᐸpost+1ᐳ"]]:::plan + ApplyInput463{{"ApplyInput[463∈0] ➊"}}:::plan + Connection461{{"Connection[461∈0] ➊
ᐸ459ᐳ"}}:::plan + Constant1026{{"Constant[1026∈0] ➊
ᐸ1ᐳ"}}:::plan + ApplyInput463 -->|rejectNull| PgSelect464 + Object11 & Connection461 & Constant1026 --> PgSelect464 + PgSelect600[["PgSelect[600∈0] ➊
ᐸedge_caseᐳ"]]:::plan + ApplyInput599{{"ApplyInput[599∈0] ➊"}}:::plan + Connection597{{"Connection[597∈0] ➊
ᐸ595ᐳ"}}:::plan + ApplyInput599 -->|rejectNull| PgSelect600 + Object11 & Connection597 --> PgSelect600 + PgSelect615[["PgSelect[615∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection612{{"Connection[612∈0] ➊
ᐸ610ᐳ"}}:::plan + Lambda613{{"Lambda[613∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant605{{"Constant[605∈0] ➊
ᐸnullᐳ"}}:::plan + Constant1029{{"Constant[1029∈0] ➊
ᐸ2ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect615 + Connection612 & Lambda613 & Constant605 & Constant1029 --> PgSelect615 + PgSelect663[["PgSelect[663∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection660{{"Connection[660∈0] ➊
ᐸ658ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect663 + Connection660 & Lambda251 & Constant1026 --> PgSelect663 + PgSelect711[["PgSelect[711∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection708{{"Connection[708∈0] ➊
ᐸ706ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect711 + Connection708 & Lambda251 & Constant1026 --> PgSelect711 + PgSelect758[["PgSelect[758∈0] ➊
ᐸperson+1ᐳ"]]:::plan + ApplyInput757{{"ApplyInput[757∈0] ➊"}}:::plan + Connection755{{"Connection[755∈0] ➊
ᐸ753ᐳ"}}:::plan + ApplyInput757 -->|rejectNull| PgSelect758 + Object11 & Connection755 --> PgSelect758 + PgSelect847[["PgSelect[847∈0] ➊
ᐸperson+1ᐳ"]]:::plan + ApplyInput846{{"ApplyInput[846∈0] ➊"}}:::plan + Connection844{{"Connection[844∈0] ➊
ᐸ842ᐳ"}}:::plan + ApplyInput846 -->|rejectNull| PgSelect847 + Object11 & Connection844 --> PgSelect847 + PgSelect927[["PgSelect[927∈0] ➊
ᐸperson+1ᐳ"]]:::plan + ApplyInput926{{"ApplyInput[926∈0] ➊"}}:::plan + Connection924{{"Connection[924∈0] ➊
ᐸ922ᐳ"}}:::plan + ApplyInput926 -->|rejectNull| PgSelect927 + Object11 & Connection924 --> PgSelect927 + PgSelect975[["PgSelect[975∈0] ➊
ᐸperson+1ᐳ"]]:::plan + ApplyInput974{{"ApplyInput[974∈0] ➊"}}:::plan + Connection972{{"Connection[972∈0] ➊
ᐸ970ᐳ"}}:::plan + ApplyInput974 -->|rejectNull| PgSelect975 + Object11 & Connection972 --> PgSelect975 + PgSelect14[["PgSelect[14∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect61[["PgSelect[61∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection59{{"Connection[59∈0] ➊
ᐸ57ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect61 + Connection59 & Access54 --> PgSelect61 + PgSelect107[["PgSelect[107∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection105{{"Connection[105∈0] ➊
ᐸ103ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect107 + Connection105 & Access54 --> PgSelect107 + Lambda154 -- 2 --> Connection153 + PgSelect345[["PgSelect[345∈0] ➊
ᐸupdatable_viewᐳ"]]:::plan + Connection343{{"Connection[343∈0] ➊
ᐸ341ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect345 + Connection343 --> PgSelect345 + PgSelect359[["PgSelect[359∈0] ➊
ᐸupdatable_viewᐳ"]]:::plan + Connection357{{"Connection[357∈0] ➊
ᐸ355ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect359 + Connection357 --> PgSelect359 + PgSelect506[["PgSelect[506∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection504{{"Connection[504∈0] ➊
ᐸ502ᐳ"}}:::plan + Constant1027{{"Constant[1027∈0] ➊
ᐸ3ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect506 + Connection504 & Constant1027 & Constant1026 --> PgSelect506 + PgSelect552[["PgSelect[552∈0] ➊
ᐸperson+1ᐳ"]]:::plan + Connection550{{"Connection[550∈0] ➊
ᐸ548ᐳ"}}:::plan + Constant1028{{"Constant[1028∈0] ➊
ᐸ0ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect552 + Connection550 & Constant1028 --> PgSelect552 + PgSelect804[["PgSelect[804∈0] ➊
ᐸpost+1ᐳ"]]:::plan + Connection802{{"Connection[802∈0] ➊
ᐸ800ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect804 + Connection802 & Constant1027 --> PgSelect804 + PgSelect893[["PgSelect[893∈0] ➊
ᐸpostᐳ"]]:::plan + Connection891{{"Connection[891∈0] ➊
ᐸ889ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect893 + Connection891 & Constant1029 --> PgSelect893 + PgSelect1020[["PgSelect[1020∈0] ➊
ᐸnull_test_recordᐳ"]]:::plan + Connection1018{{"Connection[1018∈0] ➊
ᐸ1016ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect1020 + Connection1018 --> PgSelect1020 + Object34{{"Object[34∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access29{{"Access[29∈0] ➊
ᐸ14.hasMoreᐳ"}}:::plan + Access29 --> Object34 + Object81{{"Object[81∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access76{{"Access[76∈0] ➊
ᐸ61.hasMoreᐳ"}}:::plan + Access54 & Access76 --> Object81 + Object127{{"Object[127∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access122{{"Access[122∈0] ➊
ᐸ107.hasMoreᐳ"}}:::plan + Access54 & Access122 --> Object127 + Object177{{"Object[177∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access172{{"Access[172∈0] ➊
ᐸ157.hasMoreᐳ"}}:::plan + Access172 --> Object177 + Lambda203 --> Connection202 + Object225{{"Object[225∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access220{{"Access[220∈0] ➊
ᐸ205.hasMoreᐳ"}}:::plan + Access220 --> Object225 + Lambda251 --> Connection250 + Object273{{"Object[273∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access268{{"Access[268∈0] ➊
ᐸ253.hasMoreᐳ"}}:::plan + Access268 --> Object273 + Lambda251 --> Connection297 + Object320{{"Object[320∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access315{{"Access[315∈0] ➊
ᐸ300.hasMoreᐳ"}}:::plan + Access315 --> Object320 + Object396{{"Object[396∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access391{{"Access[391∈0] ➊
ᐸ376.hasMoreᐳ"}}:::plan + Access391 --> Object396 + Object440{{"Object[440∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access435{{"Access[435∈0] ➊
ᐸ420.hasMoreᐳ"}}:::plan + Access54 & Access435 --> Object440 + Object484{{"Object[484∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access479{{"Access[479∈0] ➊
ᐸ464.hasMoreᐳ"}}:::plan + Constant1026 & Access479 --> Object484 + Object526{{"Object[526∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access521{{"Access[521∈0] ➊
ᐸ506.hasMoreᐳ"}}:::plan + Constant1027 & Constant1026 & Access521 --> Object526 + Object572{{"Object[572∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access567{{"Access[567∈0] ➊
ᐸ552.hasMoreᐳ"}}:::plan + Constant1028 & Access567 --> Object572 + Constant605 & Constant1029 & Lambda613 --> Connection612 + Object635{{"Object[635∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access630{{"Access[630∈0] ➊
ᐸ615.hasMoreᐳ"}}:::plan + Constant605 & Constant1029 & Access630 --> Object635 + Constant1026 & Lambda251 --> Connection660 + Object683{{"Object[683∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access678{{"Access[678∈0] ➊
ᐸ663.hasMoreᐳ"}}:::plan + Constant1026 & Access678 --> Object683 + Constant1026 & Lambda251 --> Connection708 + Object731{{"Object[731∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access726{{"Access[726∈0] ➊
ᐸ711.hasMoreᐳ"}}:::plan + Constant1026 & Access726 --> Object731 + Object778{{"Object[778∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access773{{"Access[773∈0] ➊
ᐸ758.hasMoreᐳ"}}:::plan + Access773 --> Object778 + Object824{{"Object[824∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access819{{"Access[819∈0] ➊
ᐸ804.hasMoreᐳ"}}:::plan + Constant1027 & Access819 --> Object824 + Object867{{"Object[867∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access862{{"Access[862∈0] ➊
ᐸ847.hasMoreᐳ"}}:::plan + Access862 --> Object867 + Object947{{"Object[947∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access942{{"Access[942∈0] ➊
ᐸ927.hasMoreᐳ"}}:::plan + Access942 --> Object947 + Object995{{"Object[995∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access990{{"Access[990∈0] ➊
ᐸ975.hasMoreᐳ"}}:::plan + Access990 --> Object995 + Object30{{"Object[30∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access29 --> Object30 + Access54 --> Connection59 + Object77{{"Object[77∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access54 & Access76 --> Object77 + Access54 --> Connection105 + Object123{{"Object[123∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access54 & Access122 --> Object123 + Object173{{"Object[173∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access172 --> Object173 + Object221{{"Object[221∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access220 --> Object221 + Object269{{"Object[269∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access268 --> Object269 + Object316{{"Object[316∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access315 --> Object316 + Object392{{"Object[392∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access391 --> Object392 + PgSelect398[["PgSelect[398∈0] ➊
ᐸpost(aggregate)ᐳ"]]:::plan + ApplyInput375 -->|rejectNull| PgSelect398 + Object11 & Connection373 --> PgSelect398 + Access54 --> Connection417 + Object436{{"Object[436∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access54 & Access435 --> Object436 + PgSelect442[["PgSelect[442∈0] ➊
ᐸpost(aggregate)ᐳ"]]:::plan + ApplyInput419 -->|rejectNull| PgSelect442 + Object11 & Connection417 --> PgSelect442 + Constant1026 --> Connection461 + Object480{{"Object[480∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1026 & Access479 --> Object480 + PgSelect486[["PgSelect[486∈0] ➊
ᐸpost(aggregate)ᐳ"]]:::plan + ApplyInput463 -->|rejectNull| PgSelect486 + Object11 & Connection461 --> PgSelect486 + Constant1027 & Constant1026 --> Connection504 + Object522{{"Object[522∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1027 & Access521 --> Object522 + Constant1028 --> Connection550 + Object568{{"Object[568∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1028 & Access567 --> Object568 + Object631{{"Object[631∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant605 & Constant1029 & Access630 --> Object631 + Object679{{"Object[679∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1026 & Access678 --> Object679 + Object727{{"Object[727∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1026 & Access726 --> Object727 + Object774{{"Object[774∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access773 --> Object774 + PgSelect780[["PgSelect[780∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + ApplyInput757 -->|rejectNull| PgSelect780 + Object11 & Connection755 --> PgSelect780 + Constant1027 --> Connection802 + Object820{{"Object[820∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1027 & Access819 --> Object820 + Object863{{"Object[863∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access862 --> Object863 + PgSelect869[["PgSelect[869∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + ApplyInput846 -->|rejectNull| PgSelect869 + Object11 & Connection844 --> PgSelect869 + Constant1029 --> Connection891 + Object943{{"Object[943∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access942 --> Object943 + PgSelect949[["PgSelect[949∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + ApplyInput926 -->|rejectNull| PgSelect949 + Object11 & Connection924 --> PgSelect949 + Object991{{"Object[991∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access990 --> Object991 + PgSelect997[["PgSelect[997∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + ApplyInput974 -->|rejectNull| PgSelect997 + Object11 & Connection972 --> PgSelect997 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 + PgCursor21{{"PgCursor[21∈0] ➊"}}:::plan + PgSelectSingle19{{"PgSelectSingle[19∈0] ➊
ᐸpersonᐳ"}}:::plan + Access20{{"Access[20∈0] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan PgSelectSingle19 & Access20 --> PgCursor21 - PgCursor27{{"PgCursor[27∈1] ➊"}}:::plan - PgSelectSingle25{{"PgSelectSingle[25∈1] ➊
ᐸpersonᐳ"}}:::plan + PgCursor27{{"PgCursor[27∈0] ➊"}}:::plan + PgSelectSingle25{{"PgSelectSingle[25∈0] ➊
ᐸpersonᐳ"}}:::plan PgSelectSingle25 & Access20 --> PgCursor27 - PgSelect37[["PgSelect[37∈1] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect37 - PgPageInfo15{{"PgPageInfo[15∈1] ➊"}}:::plan - Connection13 --> PgPageInfo15 - First17{{"First[17∈1] ➊"}}:::plan - PgSelectRows18[["PgSelectRows[18∈1] ➊"]]:::plan + PgSelect36[["PgSelect[36∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect36 + Connection12 --> PgSelect36 + PgCursor68{{"PgCursor[68∈0] ➊"}}:::plan + PgSelectSingle66{{"PgSelectSingle[66∈0] ➊
ᐸpersonᐳ"}}:::plan + Access67{{"Access[67∈0] ➊
ᐸ61.cursorDetailsᐳ"}}:::plan + PgSelectSingle66 & Access67 --> PgCursor68 + PgCursor74{{"PgCursor[74∈0] ➊"}}:::plan + PgSelectSingle72{{"PgSelectSingle[72∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle72 & Access67 --> PgCursor74 + PgSelect83[["PgSelect[83∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect83 + Connection59 --> PgSelect83 + PgCursor114{{"PgCursor[114∈0] ➊"}}:::plan + PgSelectSingle112{{"PgSelectSingle[112∈0] ➊
ᐸpersonᐳ"}}:::plan + Access113{{"Access[113∈0] ➊
ᐸ107.cursorDetailsᐳ"}}:::plan + PgSelectSingle112 & Access113 --> PgCursor114 + PgCursor120{{"PgCursor[120∈0] ➊"}}:::plan + PgSelectSingle118{{"PgSelectSingle[118∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle118 & Access113 --> PgCursor120 + PgSelect129[["PgSelect[129∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect129 + Connection105 --> PgSelect129 + PgCursor164{{"PgCursor[164∈0] ➊"}}:::plan + PgSelectSingle162{{"PgSelectSingle[162∈0] ➊
ᐸpersonᐳ"}}:::plan + Access163{{"Access[163∈0] ➊
ᐸ157.cursorDetailsᐳ"}}:::plan + PgSelectSingle162 & Access163 --> PgCursor164 + PgCursor170{{"PgCursor[170∈0] ➊"}}:::plan + PgSelectSingle168{{"PgSelectSingle[168∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle168 & Access163 --> PgCursor170 + PgSelect179[["PgSelect[179∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect179 + Connection153 --> PgSelect179 + PgCursor212{{"PgCursor[212∈0] ➊"}}:::plan + PgSelectSingle210{{"PgSelectSingle[210∈0] ➊
ᐸpersonᐳ"}}:::plan + Access211{{"Access[211∈0] ➊
ᐸ205.cursorDetailsᐳ"}}:::plan + PgSelectSingle210 & Access211 --> PgCursor212 + PgCursor218{{"PgCursor[218∈0] ➊"}}:::plan + PgSelectSingle216{{"PgSelectSingle[216∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle216 & Access211 --> PgCursor218 + PgSelect227[["PgSelect[227∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect227 + Connection202 --> PgSelect227 + PgCursor260{{"PgCursor[260∈0] ➊"}}:::plan + PgSelectSingle258{{"PgSelectSingle[258∈0] ➊
ᐸpersonᐳ"}}:::plan + Access259{{"Access[259∈0] ➊
ᐸ253.cursorDetailsᐳ"}}:::plan + PgSelectSingle258 & Access259 --> PgCursor260 + PgCursor266{{"PgCursor[266∈0] ➊"}}:::plan + PgSelectSingle264{{"PgSelectSingle[264∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle264 & Access259 --> PgCursor266 + PgSelect275[["PgSelect[275∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect275 + Connection250 --> PgSelect275 + PgCursor307{{"PgCursor[307∈0] ➊"}}:::plan + PgSelectSingle305{{"PgSelectSingle[305∈0] ➊
ᐸpersonᐳ"}}:::plan + Access306{{"Access[306∈0] ➊
ᐸ300.cursorDetailsᐳ"}}:::plan + PgSelectSingle305 & Access306 --> PgCursor307 + PgCursor313{{"PgCursor[313∈0] ➊"}}:::plan + PgSelectSingle311{{"PgSelectSingle[311∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle311 & Access306 --> PgCursor313 + PgSelect322[["PgSelect[322∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect322 + Connection297 --> PgSelect322 + __InputObject369{{"__InputObject[369∈0] ➊"}}:::plan + Access54 --> __InputObject369 + PgCursor383{{"PgCursor[383∈0] ➊"}}:::plan + PgSelectSingle381{{"PgSelectSingle[381∈0] ➊
ᐸpostᐳ"}}:::plan + Access382{{"Access[382∈0] ➊
ᐸ376.cursorDetailsᐳ"}}:::plan + PgSelectSingle381 & Access382 --> PgCursor383 + PgCursor389{{"PgCursor[389∈0] ➊"}}:::plan + PgSelectSingle387{{"PgSelectSingle[387∈0] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle387 & Access382 --> PgCursor389 + __InputObject413{{"__InputObject[413∈0] ➊"}}:::plan + Access54 --> __InputObject413 + PgCursor427{{"PgCursor[427∈0] ➊"}}:::plan + PgSelectSingle425{{"PgSelectSingle[425∈0] ➊
ᐸpostᐳ"}}:::plan + Access426{{"Access[426∈0] ➊
ᐸ420.cursorDetailsᐳ"}}:::plan + PgSelectSingle425 & Access426 --> PgCursor427 + PgCursor433{{"PgCursor[433∈0] ➊"}}:::plan + PgSelectSingle431{{"PgSelectSingle[431∈0] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle431 & Access426 --> PgCursor433 + __InputObject457{{"__InputObject[457∈0] ➊"}}:::plan + Constant1026 --> __InputObject457 + PgCursor471{{"PgCursor[471∈0] ➊"}}:::plan + PgSelectSingle469{{"PgSelectSingle[469∈0] ➊
ᐸpostᐳ"}}:::plan + Access470{{"Access[470∈0] ➊
ᐸ464.cursorDetailsᐳ"}}:::plan + PgSelectSingle469 & Access470 --> PgCursor471 + PgCursor477{{"PgCursor[477∈0] ➊"}}:::plan + PgSelectSingle475{{"PgSelectSingle[475∈0] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle475 & Access470 --> PgCursor477 + PgCursor513{{"PgCursor[513∈0] ➊"}}:::plan + PgSelectSingle511{{"PgSelectSingle[511∈0] ➊
ᐸpersonᐳ"}}:::plan + Access512{{"Access[512∈0] ➊
ᐸ506.cursorDetailsᐳ"}}:::plan + PgSelectSingle511 & Access512 --> PgCursor513 + PgCursor519{{"PgCursor[519∈0] ➊"}}:::plan + PgSelectSingle517{{"PgSelectSingle[517∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle517 & Access512 --> PgCursor519 + PgSelect528[["PgSelect[528∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect528 + Connection504 --> PgSelect528 + PgCursor559{{"PgCursor[559∈0] ➊"}}:::plan + PgSelectSingle557{{"PgSelectSingle[557∈0] ➊
ᐸpersonᐳ"}}:::plan + Access558{{"Access[558∈0] ➊
ᐸ552.cursorDetailsᐳ"}}:::plan + PgSelectSingle557 & Access558 --> PgCursor559 + PgCursor565{{"PgCursor[565∈0] ➊"}}:::plan + PgSelectSingle563{{"PgSelectSingle[563∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle563 & Access558 --> PgCursor565 + PgSelect574[["PgSelect[574∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect574 + Connection550 --> PgSelect574 + __InputObject593{{"__InputObject[593∈0] ➊"}}:::plan + Constant1029 --> __InputObject593 + PgCursor622{{"PgCursor[622∈0] ➊"}}:::plan + PgSelectSingle620{{"PgSelectSingle[620∈0] ➊
ᐸpersonᐳ"}}:::plan + Access621{{"Access[621∈0] ➊
ᐸ615.cursorDetailsᐳ"}}:::plan + PgSelectSingle620 & Access621 --> PgCursor622 + PgCursor628{{"PgCursor[628∈0] ➊"}}:::plan + PgSelectSingle626{{"PgSelectSingle[626∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle626 & Access621 --> PgCursor628 + PgSelect637[["PgSelect[637∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect637 + Connection612 --> PgSelect637 + PgCursor670{{"PgCursor[670∈0] ➊"}}:::plan + PgSelectSingle668{{"PgSelectSingle[668∈0] ➊
ᐸpersonᐳ"}}:::plan + Access669{{"Access[669∈0] ➊
ᐸ663.cursorDetailsᐳ"}}:::plan + PgSelectSingle668 & Access669 --> PgCursor670 + PgCursor676{{"PgCursor[676∈0] ➊"}}:::plan + PgSelectSingle674{{"PgSelectSingle[674∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle674 & Access669 --> PgCursor676 + PgSelect685[["PgSelect[685∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect685 + Connection660 --> PgSelect685 + PgCursor718{{"PgCursor[718∈0] ➊"}}:::plan + PgSelectSingle716{{"PgSelectSingle[716∈0] ➊
ᐸpersonᐳ"}}:::plan + Access717{{"Access[717∈0] ➊
ᐸ711.cursorDetailsᐳ"}}:::plan + PgSelectSingle716 & Access717 --> PgCursor718 + PgCursor724{{"PgCursor[724∈0] ➊"}}:::plan + PgSelectSingle722{{"PgSelectSingle[722∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle722 & Access717 --> PgCursor724 + PgSelect733[["PgSelect[733∈0] ➊
ᐸperson(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect733 + Connection708 --> PgSelect733 + __InputObject752{{"__InputObject[752∈0] ➊"}}:::plan + Constant605 --> __InputObject752 + PgCursor765{{"PgCursor[765∈0] ➊"}}:::plan + PgSelectSingle763{{"PgSelectSingle[763∈0] ➊
ᐸpersonᐳ"}}:::plan + Access764{{"Access[764∈0] ➊
ᐸ758.cursorDetailsᐳ"}}:::plan + PgSelectSingle763 & Access764 --> PgCursor765 + PgCursor771{{"PgCursor[771∈0] ➊"}}:::plan + PgSelectSingle769{{"PgSelectSingle[769∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle769 & Access764 --> PgCursor771 + PgCursor811{{"PgCursor[811∈0] ➊"}}:::plan + PgSelectSingle809{{"PgSelectSingle[809∈0] ➊
ᐸpostᐳ"}}:::plan + Access810{{"Access[810∈0] ➊
ᐸ804.cursorDetailsᐳ"}}:::plan + PgSelectSingle809 & Access810 --> PgCursor811 + PgCursor817{{"PgCursor[817∈0] ➊"}}:::plan + PgSelectSingle815{{"PgSelectSingle[815∈0] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle815 & Access810 --> PgCursor817 + PgSelect826[["PgSelect[826∈0] ➊
ᐸpost(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect826 + Connection802 --> PgSelect826 + __InputObject840{{"__InputObject[840∈0] ➊"}}:::plan + Constant1030{{"Constant[1030∈0] ➊
ᐸ'192.168.0.1'ᐳ"}}:::plan + Constant1030 --> __InputObject840 + PgCursor854{{"PgCursor[854∈0] ➊"}}:::plan + PgSelectSingle852{{"PgSelectSingle[852∈0] ➊
ᐸpersonᐳ"}}:::plan + Access853{{"Access[853∈0] ➊
ᐸ847.cursorDetailsᐳ"}}:::plan + PgSelectSingle852 & Access853 --> PgCursor854 + PgCursor860{{"PgCursor[860∈0] ➊"}}:::plan + PgSelectSingle858{{"PgSelectSingle[858∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle858 & Access853 --> PgCursor860 + __InputObject920{{"__InputObject[920∈0] ➊"}}:::plan + Constant1031{{"Constant[1031∈0] ➊
ᐸ'192.168.0.0/24'ᐳ"}}:::plan + Constant1031 --> __InputObject920 + PgCursor934{{"PgCursor[934∈0] ➊"}}:::plan + PgSelectSingle932{{"PgSelectSingle[932∈0] ➊
ᐸpersonᐳ"}}:::plan + Access933{{"Access[933∈0] ➊
ᐸ927.cursorDetailsᐳ"}}:::plan + PgSelectSingle932 & Access933 --> PgCursor934 + PgCursor940{{"PgCursor[940∈0] ➊"}}:::plan + PgSelectSingle938{{"PgSelectSingle[938∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle938 & Access933 --> PgCursor940 + __InputObject968{{"__InputObject[968∈0] ➊"}}:::plan + Constant1032{{"Constant[1032∈0] ➊
ᐸ'0000.0000.0000'ᐳ"}}:::plan + Constant1032 --> __InputObject968 + PgCursor982{{"PgCursor[982∈0] ➊"}}:::plan + PgSelectSingle980{{"PgSelectSingle[980∈0] ➊
ᐸpersonᐳ"}}:::plan + Access981{{"Access[981∈0] ➊
ᐸ975.cursorDetailsᐳ"}}:::plan + PgSelectSingle980 & Access981 --> PgCursor982 + PgCursor988{{"PgCursor[988∈0] ➊"}}:::plan + PgSelectSingle986{{"PgSelectSingle[986∈0] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle986 & Access981 --> PgCursor988 + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 + __Value2 --> Access10 + PgPageInfo15{{"PgPageInfo[15∈0] ➊"}}:::plan + Connection12 --> PgPageInfo15 + First17{{"First[17∈0] ➊"}}:::plan + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan PgSelectRows18 --> First17 PgSelect14 --> PgSelectRows18 First17 --> PgSelectSingle19 PgSelect14 --> Access20 - Last23{{"Last[23∈1] ➊"}}:::plan + Last23{{"Last[23∈0] ➊"}}:::plan PgSelectRows18 --> Last23 Last23 --> PgSelectSingle25 - PgSelect14 --> Access30 - Lambda32{{"Lambda[32∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object31 --> Lambda32 - Lambda36{{"Lambda[36∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object35 --> Lambda36 - First38{{"First[38∈1] ➊"}}:::plan - PgSelectRows39[["PgSelectRows[39∈1] ➊"]]:::plan - PgSelectRows39 --> First38 - PgSelect37 --> PgSelectRows39 - PgSelectSingle40{{"PgSelectSingle[40∈1] ➊
ᐸpersonᐳ"}}:::plan - First38 --> PgSelectSingle40 - PgClassExpression41{{"PgClassExpression[41∈1] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle40 --> PgClassExpression41 - __Item44[/"__Item[44∈2]
ᐸ18ᐳ"\]:::itemplan - PgSelectRows18 ==> __Item44 - PgSelectSingle45{{"PgSelectSingle[45∈2]
ᐸpersonᐳ"}}:::plan - __Item44 --> PgSelectSingle45 - PgCursor47{{"PgCursor[47∈3]"}}:::plan - PgSelectSingle45 & Access20 --> PgCursor47 - PgClassExpression48{{"PgClassExpression[48∈3]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression48 - PgClassExpression49{{"PgClassExpression[49∈3]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression49 - PgClassExpression50{{"PgClassExpression[50∈3]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression50 - PgClassExpression51{{"PgClassExpression[51∈3]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈3]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈3]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈3]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression54 - Object83{{"Object[83∈4] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access78{{"Access[78∈4] ➊
ᐸ62.hasMoreᐳ"}}:::plan - Access55 & Constant6 & Constant6 & Access78 --> Object83 - PgSelect62[["PgSelect[62∈4] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection61 & Access55 --> PgSelect62 - Object79{{"Object[79∈4] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Access55 & Constant6 & Access78 --> Object79 - PgCursor69{{"PgCursor[69∈4] ➊"}}:::plan - PgSelectSingle67{{"PgSelectSingle[67∈4] ➊
ᐸpersonᐳ"}}:::plan - Access68{{"Access[68∈4] ➊
ᐸ62.cursorDetailsᐳ"}}:::plan - PgSelectSingle67 & Access68 --> PgCursor69 - PgCursor75{{"PgCursor[75∈4] ➊"}}:::plan - PgSelectSingle73{{"PgSelectSingle[73∈4] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle73 & Access68 --> PgCursor75 - PgSelect85[["PgSelect[85∈4] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection61 --> PgSelect85 - PgPageInfo63{{"PgPageInfo[63∈4] ➊"}}:::plan - Connection61 --> PgPageInfo63 - First65{{"First[65∈4] ➊"}}:::plan - PgSelectRows66[["PgSelectRows[66∈4] ➊"]]:::plan - PgSelectRows66 --> First65 - PgSelect62 --> PgSelectRows66 - First65 --> PgSelectSingle67 - PgSelect62 --> Access68 - Last71{{"Last[71∈4] ➊"}}:::plan - PgSelectRows66 --> Last71 - Last71 --> PgSelectSingle73 - PgSelect62 --> Access78 - Lambda80{{"Lambda[80∈4] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object79 --> Lambda80 - Lambda84{{"Lambda[84∈4] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object83 --> Lambda84 - First86{{"First[86∈4] ➊"}}:::plan - PgSelectRows87[["PgSelectRows[87∈4] ➊"]]:::plan - PgSelectRows87 --> First86 - PgSelect85 --> PgSelectRows87 - PgSelectSingle88{{"PgSelectSingle[88∈4] ➊
ᐸpersonᐳ"}}:::plan - First86 --> PgSelectSingle88 - PgClassExpression89{{"PgClassExpression[89∈4] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle88 --> PgClassExpression89 - __Item92[/"__Item[92∈5]
ᐸ66ᐳ"\]:::itemplan - PgSelectRows66 ==> __Item92 - PgSelectSingle93{{"PgSelectSingle[93∈5]
ᐸpersonᐳ"}}:::plan - __Item92 --> PgSelectSingle93 - PgCursor95{{"PgCursor[95∈6]"}}:::plan - PgSelectSingle93 & Access68 --> PgCursor95 - PgClassExpression96{{"PgClassExpression[96∈6]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression96 - PgClassExpression97{{"PgClassExpression[97∈6]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression97 - PgClassExpression98{{"PgClassExpression[98∈6]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression98 - PgClassExpression99{{"PgClassExpression[99∈6]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression99 - PgClassExpression100{{"PgClassExpression[100∈6]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression100 - PgClassExpression101{{"PgClassExpression[101∈6]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression101 - PgClassExpression102{{"PgClassExpression[102∈6]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression102 - Object130{{"Object[130∈7] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access125{{"Access[125∈7] ➊
ᐸ109.hasMoreᐳ"}}:::plan - Constant6 & Access55 & Constant6 & Access125 --> Object130 - PgSelect109[["PgSelect[109∈7] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection108 & Access55 --> PgSelect109 - Object126{{"Object[126∈7] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Access55 & Access125 --> Object126 - PgCursor116{{"PgCursor[116∈7] ➊"}}:::plan - PgSelectSingle114{{"PgSelectSingle[114∈7] ➊
ᐸpersonᐳ"}}:::plan - Access115{{"Access[115∈7] ➊
ᐸ109.cursorDetailsᐳ"}}:::plan - PgSelectSingle114 & Access115 --> PgCursor116 - PgCursor122{{"PgCursor[122∈7] ➊"}}:::plan - PgSelectSingle120{{"PgSelectSingle[120∈7] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle120 & Access115 --> PgCursor122 - PgSelect132[["PgSelect[132∈7] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection108 --> PgSelect132 - PgPageInfo110{{"PgPageInfo[110∈7] ➊"}}:::plan - Connection108 --> PgPageInfo110 - First112{{"First[112∈7] ➊"}}:::plan - PgSelectRows113[["PgSelectRows[113∈7] ➊"]]:::plan - PgSelectRows113 --> First112 - PgSelect109 --> PgSelectRows113 - First112 --> PgSelectSingle114 - PgSelect109 --> Access115 - Last118{{"Last[118∈7] ➊"}}:::plan - PgSelectRows113 --> Last118 - Last118 --> PgSelectSingle120 - PgSelect109 --> Access125 - Lambda127{{"Lambda[127∈7] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object126 --> Lambda127 - Lambda131{{"Lambda[131∈7] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object130 --> Lambda131 - First133{{"First[133∈7] ➊"}}:::plan - PgSelectRows134[["PgSelectRows[134∈7] ➊"]]:::plan - PgSelectRows134 --> First133 - PgSelect132 --> PgSelectRows134 - PgSelectSingle135{{"PgSelectSingle[135∈7] ➊
ᐸpersonᐳ"}}:::plan - First133 --> PgSelectSingle135 - PgClassExpression136{{"PgClassExpression[136∈7] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle135 --> PgClassExpression136 - __Item139[/"__Item[139∈8]
ᐸ113ᐳ"\]:::itemplan - PgSelectRows113 ==> __Item139 - PgSelectSingle140{{"PgSelectSingle[140∈8]
ᐸpersonᐳ"}}:::plan - __Item139 --> PgSelectSingle140 - PgCursor142{{"PgCursor[142∈9]"}}:::plan - PgSelectSingle140 & Access115 --> PgCursor142 - PgClassExpression143{{"PgClassExpression[143∈9]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle140 --> PgClassExpression143 - PgClassExpression144{{"PgClassExpression[144∈9]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle140 --> PgClassExpression144 - PgClassExpression145{{"PgClassExpression[145∈9]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle140 --> PgClassExpression145 - PgClassExpression146{{"PgClassExpression[146∈9]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle140 --> PgClassExpression146 - PgClassExpression147{{"PgClassExpression[147∈9]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle140 --> PgClassExpression147 - PgClassExpression148{{"PgClassExpression[148∈9]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle140 --> PgClassExpression148 - PgClassExpression149{{"PgClassExpression[149∈9]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle140 --> PgClassExpression149 - Object179{{"Object[179∈10] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access174{{"Access[174∈10] ➊
ᐸ158.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access174 --> Object179 - Object175{{"Object[175∈10] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access174 --> Object175 - PgSelect158[["PgSelect[158∈10] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection157 --> PgSelect158 - PgCursor165{{"PgCursor[165∈10] ➊"}}:::plan - PgSelectSingle163{{"PgSelectSingle[163∈10] ➊
ᐸpersonᐳ"}}:::plan - Access164{{"Access[164∈10] ➊
ᐸ158.cursorDetailsᐳ"}}:::plan - PgSelectSingle163 & Access164 --> PgCursor165 - PgCursor171{{"PgCursor[171∈10] ➊"}}:::plan - PgSelectSingle169{{"PgSelectSingle[169∈10] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle169 & Access164 --> PgCursor171 - PgSelect181[["PgSelect[181∈10] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection157 --> PgSelect181 - PgPageInfo159{{"PgPageInfo[159∈10] ➊"}}:::plan - Connection157 --> PgPageInfo159 - First161{{"First[161∈10] ➊"}}:::plan - PgSelectRows162[["PgSelectRows[162∈10] ➊"]]:::plan - PgSelectRows162 --> First161 - PgSelect158 --> PgSelectRows162 - First161 --> PgSelectSingle163 - PgSelect158 --> Access164 - Last167{{"Last[167∈10] ➊"}}:::plan - PgSelectRows162 --> Last167 - Last167 --> PgSelectSingle169 - PgSelect158 --> Access174 - Lambda176{{"Lambda[176∈10] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object175 --> Lambda176 - Lambda180{{"Lambda[180∈10] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object179 --> Lambda180 - First182{{"First[182∈10] ➊"}}:::plan - PgSelectRows183[["PgSelectRows[183∈10] ➊"]]:::plan - PgSelectRows183 --> First182 - PgSelect181 --> PgSelectRows183 - PgSelectSingle184{{"PgSelectSingle[184∈10] ➊
ᐸpersonᐳ"}}:::plan - First182 --> PgSelectSingle184 - PgClassExpression185{{"PgClassExpression[185∈10] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle184 --> PgClassExpression185 - __Item188[/"__Item[188∈11]
ᐸ162ᐳ"\]:::itemplan - PgSelectRows162 ==> __Item188 - PgSelectSingle189{{"PgSelectSingle[189∈11]
ᐸpersonᐳ"}}:::plan - __Item188 --> PgSelectSingle189 - PgCursor191{{"PgCursor[191∈12]"}}:::plan - PgSelectSingle189 & Access164 --> PgCursor191 - PgClassExpression192{{"PgClassExpression[192∈12]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle189 --> PgClassExpression192 - PgClassExpression193{{"PgClassExpression[193∈12]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle189 --> PgClassExpression193 - PgClassExpression194{{"PgClassExpression[194∈12]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle189 --> PgClassExpression194 - PgClassExpression195{{"PgClassExpression[195∈12]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle189 --> PgClassExpression195 - PgClassExpression196{{"PgClassExpression[196∈12]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle189 --> PgClassExpression196 - PgClassExpression197{{"PgClassExpression[197∈12]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle189 --> PgClassExpression197 - PgClassExpression198{{"PgClassExpression[198∈12]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle189 --> PgClassExpression198 - Object227{{"Object[227∈13] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access222{{"Access[222∈13] ➊
ᐸ206.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access222 --> Object227 - Object223{{"Object[223∈13] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access222 --> Object223 - PgSelect206[["PgSelect[206∈13] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection205 --> PgSelect206 - PgCursor213{{"PgCursor[213∈13] ➊"}}:::plan - PgSelectSingle211{{"PgSelectSingle[211∈13] ➊
ᐸpersonᐳ"}}:::plan - Access212{{"Access[212∈13] ➊
ᐸ206.cursorDetailsᐳ"}}:::plan - PgSelectSingle211 & Access212 --> PgCursor213 - PgCursor219{{"PgCursor[219∈13] ➊"}}:::plan - PgSelectSingle217{{"PgSelectSingle[217∈13] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle217 & Access212 --> PgCursor219 - PgSelect229[["PgSelect[229∈13] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection205 --> PgSelect229 - PgPageInfo207{{"PgPageInfo[207∈13] ➊"}}:::plan - Connection205 --> PgPageInfo207 - First209{{"First[209∈13] ➊"}}:::plan - PgSelectRows210[["PgSelectRows[210∈13] ➊"]]:::plan - PgSelectRows210 --> First209 - PgSelect206 --> PgSelectRows210 - First209 --> PgSelectSingle211 - PgSelect206 --> Access212 - Last215{{"Last[215∈13] ➊"}}:::plan - PgSelectRows210 --> Last215 - Last215 --> PgSelectSingle217 - PgSelect206 --> Access222 - Lambda224{{"Lambda[224∈13] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object223 --> Lambda224 - Lambda228{{"Lambda[228∈13] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object227 --> Lambda228 - First230{{"First[230∈13] ➊"}}:::plan - PgSelectRows231[["PgSelectRows[231∈13] ➊"]]:::plan - PgSelectRows231 --> First230 - PgSelect229 --> PgSelectRows231 - PgSelectSingle232{{"PgSelectSingle[232∈13] ➊
ᐸpersonᐳ"}}:::plan - First230 --> PgSelectSingle232 - PgClassExpression233{{"PgClassExpression[233∈13] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle232 --> PgClassExpression233 - __Item236[/"__Item[236∈14]
ᐸ210ᐳ"\]:::itemplan - PgSelectRows210 ==> __Item236 - PgSelectSingle237{{"PgSelectSingle[237∈14]
ᐸpersonᐳ"}}:::plan - __Item236 --> PgSelectSingle237 - PgCursor239{{"PgCursor[239∈15]"}}:::plan - PgSelectSingle237 & Access212 --> PgCursor239 - PgClassExpression240{{"PgClassExpression[240∈15]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle237 --> PgClassExpression240 - PgClassExpression241{{"PgClassExpression[241∈15]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle237 --> PgClassExpression241 - PgClassExpression242{{"PgClassExpression[242∈15]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle237 --> PgClassExpression242 - PgClassExpression243{{"PgClassExpression[243∈15]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle237 --> PgClassExpression243 - PgClassExpression244{{"PgClassExpression[244∈15]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle237 --> PgClassExpression244 - PgClassExpression245{{"PgClassExpression[245∈15]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle237 --> PgClassExpression245 - PgClassExpression246{{"PgClassExpression[246∈15]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle237 --> PgClassExpression246 - Object276{{"Object[276∈16] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access271{{"Access[271∈16] ➊
ᐸ255.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access271 --> Object276 - PgSelect255[["PgSelect[255∈16] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection253 & Lambda254 --> PgSelect255 - Object272{{"Object[272∈16] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access271 --> Object272 - PgCursor262{{"PgCursor[262∈16] ➊"}}:::plan - PgSelectSingle260{{"PgSelectSingle[260∈16] ➊
ᐸpersonᐳ"}}:::plan - Access261{{"Access[261∈16] ➊
ᐸ255.cursorDetailsᐳ"}}:::plan - PgSelectSingle260 & Access261 --> PgCursor262 - PgCursor268{{"PgCursor[268∈16] ➊"}}:::plan - PgSelectSingle266{{"PgSelectSingle[266∈16] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle266 & Access261 --> PgCursor268 - PgSelect278[["PgSelect[278∈16] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection253 --> PgSelect278 - PgPageInfo256{{"PgPageInfo[256∈16] ➊"}}:::plan - Connection253 --> PgPageInfo256 - First258{{"First[258∈16] ➊"}}:::plan - PgSelectRows259[["PgSelectRows[259∈16] ➊"]]:::plan - PgSelectRows259 --> First258 - PgSelect255 --> PgSelectRows259 - First258 --> PgSelectSingle260 - PgSelect255 --> Access261 - Last264{{"Last[264∈16] ➊"}}:::plan - PgSelectRows259 --> Last264 - Last264 --> PgSelectSingle266 - PgSelect255 --> Access271 - Lambda273{{"Lambda[273∈16] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object272 --> Lambda273 - Lambda277{{"Lambda[277∈16] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object276 --> Lambda277 - First279{{"First[279∈16] ➊"}}:::plan - PgSelectRows280[["PgSelectRows[280∈16] ➊"]]:::plan - PgSelectRows280 --> First279 - PgSelect278 --> PgSelectRows280 - PgSelectSingle281{{"PgSelectSingle[281∈16] ➊
ᐸpersonᐳ"}}:::plan - First279 --> PgSelectSingle281 - PgClassExpression282{{"PgClassExpression[282∈16] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle281 --> PgClassExpression282 - __Item285[/"__Item[285∈17]
ᐸ259ᐳ"\]:::itemplan - PgSelectRows259 ==> __Item285 - PgSelectSingle286{{"PgSelectSingle[286∈17]
ᐸpersonᐳ"}}:::plan - __Item285 --> PgSelectSingle286 - PgCursor288{{"PgCursor[288∈18]"}}:::plan - PgSelectSingle286 & Access261 --> PgCursor288 - PgClassExpression289{{"PgClassExpression[289∈18]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle286 --> PgClassExpression289 - PgClassExpression290{{"PgClassExpression[290∈18]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle286 --> PgClassExpression290 - PgClassExpression291{{"PgClassExpression[291∈18]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle286 --> PgClassExpression291 - PgClassExpression292{{"PgClassExpression[292∈18]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle286 --> PgClassExpression292 - PgClassExpression293{{"PgClassExpression[293∈18]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle286 --> PgClassExpression293 - PgClassExpression294{{"PgClassExpression[294∈18]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle286 --> PgClassExpression294 - PgClassExpression295{{"PgClassExpression[295∈18]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle286 --> PgClassExpression295 - Object324{{"Object[324∈19] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access319{{"Access[319∈19] ➊
ᐸ303.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access319 --> Object324 - PgSelect303[["PgSelect[303∈19] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection301 & Lambda254 --> PgSelect303 - Object320{{"Object[320∈19] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access319 --> Object320 - PgCursor310{{"PgCursor[310∈19] ➊"}}:::plan - PgSelectSingle308{{"PgSelectSingle[308∈19] ➊
ᐸpersonᐳ"}}:::plan - Access309{{"Access[309∈19] ➊
ᐸ303.cursorDetailsᐳ"}}:::plan - PgSelectSingle308 & Access309 --> PgCursor310 - PgCursor316{{"PgCursor[316∈19] ➊"}}:::plan - PgSelectSingle314{{"PgSelectSingle[314∈19] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle314 & Access309 --> PgCursor316 - PgSelect326[["PgSelect[326∈19] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection301 --> PgSelect326 - PgPageInfo304{{"PgPageInfo[304∈19] ➊"}}:::plan - Connection301 --> PgPageInfo304 - First306{{"First[306∈19] ➊"}}:::plan - PgSelectRows307[["PgSelectRows[307∈19] ➊"]]:::plan - PgSelectRows307 --> First306 - PgSelect303 --> PgSelectRows307 - First306 --> PgSelectSingle308 - PgSelect303 --> Access309 - Last312{{"Last[312∈19] ➊"}}:::plan - PgSelectRows307 --> Last312 - Last312 --> PgSelectSingle314 - PgSelect303 --> Access319 - Lambda321{{"Lambda[321∈19] ➊
ᐸhasNextPageCbᐳ"}}:::plan + PgSelect14 --> Access29 + Lambda31{{"Lambda[31∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object30 --> Lambda31 + Lambda35{{"Lambda[35∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object34 --> Lambda35 + First37{{"First[37∈0] ➊"}}:::plan + PgSelectRows38[["PgSelectRows[38∈0] ➊"]]:::plan + PgSelectRows38 --> First37 + PgSelect36 --> PgSelectRows38 + PgSelectSingle39{{"PgSelectSingle[39∈0] ➊
ᐸpersonᐳ"}}:::plan + First37 --> PgSelectSingle39 + PgClassExpression40{{"PgClassExpression[40∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression40 + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value0 --> Access54 + PgPageInfo62{{"PgPageInfo[62∈0] ➊"}}:::plan + Connection59 --> PgPageInfo62 + First64{{"First[64∈0] ➊"}}:::plan + PgSelectRows65[["PgSelectRows[65∈0] ➊"]]:::plan + PgSelectRows65 --> First64 + PgSelect61 --> PgSelectRows65 + First64 --> PgSelectSingle66 + PgSelect61 --> Access67 + Last70{{"Last[70∈0] ➊"}}:::plan + PgSelectRows65 --> Last70 + Last70 --> PgSelectSingle72 + PgSelect61 --> Access76 + Lambda78{{"Lambda[78∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object77 --> Lambda78 + Lambda82{{"Lambda[82∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object81 --> Lambda82 + First84{{"First[84∈0] ➊"}}:::plan + PgSelectRows85[["PgSelectRows[85∈0] ➊"]]:::plan + PgSelectRows85 --> First84 + PgSelect83 --> PgSelectRows85 + PgSelectSingle86{{"PgSelectSingle[86∈0] ➊
ᐸpersonᐳ"}}:::plan + First84 --> PgSelectSingle86 + PgClassExpression87{{"PgClassExpression[87∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle86 --> PgClassExpression87 + PgPageInfo108{{"PgPageInfo[108∈0] ➊"}}:::plan + Connection105 --> PgPageInfo108 + First110{{"First[110∈0] ➊"}}:::plan + PgSelectRows111[["PgSelectRows[111∈0] ➊"]]:::plan + PgSelectRows111 --> First110 + PgSelect107 --> PgSelectRows111 + First110 --> PgSelectSingle112 + PgSelect107 --> Access113 + Last116{{"Last[116∈0] ➊"}}:::plan + PgSelectRows111 --> Last116 + Last116 --> PgSelectSingle118 + PgSelect107 --> Access122 + Lambda124{{"Lambda[124∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object123 --> Lambda124 + Lambda128{{"Lambda[128∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object127 --> Lambda128 + First130{{"First[130∈0] ➊"}}:::plan + PgSelectRows131[["PgSelectRows[131∈0] ➊"]]:::plan + PgSelectRows131 --> First130 + PgSelect129 --> PgSelectRows131 + PgSelectSingle132{{"PgSelectSingle[132∈0] ➊
ᐸpersonᐳ"}}:::plan + First130 --> PgSelectSingle132 + PgClassExpression133{{"PgClassExpression[133∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle132 --> PgClassExpression133 + Access147{{"Access[147∈0] ➊
ᐸ0.unsetᐳ"}}:::plan + __Value0 --> Access147 + Access147 --> Lambda154 + PgPageInfo158{{"PgPageInfo[158∈0] ➊"}}:::plan + Connection153 --> PgPageInfo158 + First160{{"First[160∈0] ➊"}}:::plan + PgSelectRows161[["PgSelectRows[161∈0] ➊"]]:::plan + PgSelectRows161 --> First160 + PgSelect157 --> PgSelectRows161 + First160 --> PgSelectSingle162 + PgSelect157 --> Access163 + Last166{{"Last[166∈0] ➊"}}:::plan + PgSelectRows161 --> Last166 + Last166 --> PgSelectSingle168 + PgSelect157 --> Access172 + Lambda174{{"Lambda[174∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object173 --> Lambda174 + Lambda178{{"Lambda[178∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object177 --> Lambda178 + First180{{"First[180∈0] ➊"}}:::plan + PgSelectRows181[["PgSelectRows[181∈0] ➊"]]:::plan + PgSelectRows181 --> First180 + PgSelect179 --> PgSelectRows181 + PgSelectSingle182{{"PgSelectSingle[182∈0] ➊
ᐸpersonᐳ"}}:::plan + First180 --> PgSelectSingle182 + PgClassExpression183{{"PgClassExpression[183∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression183 + Access197{{"Access[197∈0] ➊
ᐸ0.nullᐳ"}}:::plan + __Value0 --> Access197 + Access197 --> Lambda203 + PgPageInfo206{{"PgPageInfo[206∈0] ➊"}}:::plan + Connection202 --> PgPageInfo206 + First208{{"First[208∈0] ➊"}}:::plan + PgSelectRows209[["PgSelectRows[209∈0] ➊"]]:::plan + PgSelectRows209 --> First208 + PgSelect205 --> PgSelectRows209 + First208 --> PgSelectSingle210 + PgSelect205 --> Access211 + Last214{{"Last[214∈0] ➊"}}:::plan + PgSelectRows209 --> Last214 + Last214 --> PgSelectSingle216 + PgSelect205 --> Access220 + Lambda222{{"Lambda[222∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object221 --> Lambda222 + Lambda226{{"Lambda[226∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object225 --> Lambda226 + First228{{"First[228∈0] ➊"}}:::plan + PgSelectRows229[["PgSelectRows[229∈0] ➊"]]:::plan + PgSelectRows229 --> First228 + PgSelect227 --> PgSelectRows229 + PgSelectSingle230{{"PgSelectSingle[230∈0] ➊
ᐸpersonᐳ"}}:::plan + First228 --> PgSelectSingle230 + PgClassExpression231{{"PgClassExpression[231∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle230 --> PgClassExpression231 + Access245{{"Access[245∈0] ➊
ᐸ0.cursor2ᐳ"}}:::plan + __Value0 --> Access245 + Access245 --> Lambda251 + PgPageInfo254{{"PgPageInfo[254∈0] ➊"}}:::plan + Connection250 --> PgPageInfo254 + First256{{"First[256∈0] ➊"}}:::plan + PgSelectRows257[["PgSelectRows[257∈0] ➊"]]:::plan + PgSelectRows257 --> First256 + PgSelect253 --> PgSelectRows257 + First256 --> PgSelectSingle258 + PgSelect253 --> Access259 + Last262{{"Last[262∈0] ➊"}}:::plan + PgSelectRows257 --> Last262 + Last262 --> PgSelectSingle264 + PgSelect253 --> Access268 + Lambda270{{"Lambda[270∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object269 --> Lambda270 + Lambda274{{"Lambda[274∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object273 --> Lambda274 + First276{{"First[276∈0] ➊"}}:::plan + PgSelectRows277[["PgSelectRows[277∈0] ➊"]]:::plan + PgSelectRows277 --> First276 + PgSelect275 --> PgSelectRows277 + PgSelectSingle278{{"PgSelectSingle[278∈0] ➊
ᐸpersonᐳ"}}:::plan + First276 --> PgSelectSingle278 + PgClassExpression279{{"PgClassExpression[279∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle278 --> PgClassExpression279 + PgPageInfo301{{"PgPageInfo[301∈0] ➊"}}:::plan + Connection297 --> PgPageInfo301 + First303{{"First[303∈0] ➊"}}:::plan + PgSelectRows304[["PgSelectRows[304∈0] ➊"]]:::plan + PgSelectRows304 --> First303 + PgSelect300 --> PgSelectRows304 + First303 --> PgSelectSingle305 + PgSelect300 --> Access306 + Last309{{"Last[309∈0] ➊"}}:::plan + PgSelectRows304 --> Last309 + Last309 --> PgSelectSingle311 + PgSelect300 --> Access315 + Lambda317{{"Lambda[317∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object316 --> Lambda317 + Lambda321{{"Lambda[321∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object320 --> Lambda321 - Lambda325{{"Lambda[325∈19] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object324 --> Lambda325 - First327{{"First[327∈19] ➊"}}:::plan - PgSelectRows328[["PgSelectRows[328∈19] ➊"]]:::plan - PgSelectRows328 --> First327 - PgSelect326 --> PgSelectRows328 - PgSelectSingle329{{"PgSelectSingle[329∈19] ➊
ᐸpersonᐳ"}}:::plan - First327 --> PgSelectSingle329 - PgClassExpression330{{"PgClassExpression[330∈19] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle329 --> PgClassExpression330 - __Item333[/"__Item[333∈20]
ᐸ307ᐳ"\]:::itemplan - PgSelectRows307 ==> __Item333 - PgSelectSingle334{{"PgSelectSingle[334∈20]
ᐸpersonᐳ"}}:::plan - __Item333 --> PgSelectSingle334 - PgCursor336{{"PgCursor[336∈21]"}}:::plan - PgSelectSingle334 & Access309 --> PgCursor336 - PgClassExpression337{{"PgClassExpression[337∈21]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle334 --> PgClassExpression337 - PgClassExpression338{{"PgClassExpression[338∈21]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle334 --> PgClassExpression338 - PgClassExpression339{{"PgClassExpression[339∈21]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle334 --> PgClassExpression339 - PgClassExpression340{{"PgClassExpression[340∈21]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle334 --> PgClassExpression340 - PgClassExpression341{{"PgClassExpression[341∈21]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle334 --> PgClassExpression341 - PgClassExpression342{{"PgClassExpression[342∈21]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle334 --> PgClassExpression342 - PgClassExpression343{{"PgClassExpression[343∈21]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle334 --> PgClassExpression343 - PgSelect349[["PgSelect[349∈22] ➊
ᐸupdatable_viewᐳ"]]:::plan - Object12 & Connection348 --> PgSelect349 - PgSelectRows350[["PgSelectRows[350∈22] ➊"]]:::plan - PgSelect349 --> PgSelectRows350 - Access353{{"Access[353∈22] ➊
ᐸ349.cursorDetailsᐳ"}}:::plan - PgSelect349 --> Access353 - __Item351[/"__Item[351∈23]
ᐸ350ᐳ"\]:::itemplan - PgSelectRows350 ==> __Item351 - PgSelectSingle352{{"PgSelectSingle[352∈23]
ᐸupdatable_viewᐳ"}}:::plan - __Item351 --> PgSelectSingle352 - PgCursor354{{"PgCursor[354∈24]"}}:::plan - PgSelectSingle352 & Access353 --> PgCursor354 - PgClassExpression355{{"PgClassExpression[355∈24]
ᐸ__updatable_view__.”x”ᐳ"}}:::plan - PgSelectSingle352 --> PgClassExpression355 - PgClassExpression356{{"PgClassExpression[356∈24]
ᐸ__updatabl...w__.”name”ᐳ"}}:::plan - PgSelectSingle352 --> PgClassExpression356 - PgClassExpression357{{"PgClassExpression[357∈24]
ᐸ__updatabl...”constant”ᐳ"}}:::plan - PgSelectSingle352 --> PgClassExpression357 - PgSelect363[["PgSelect[363∈25] ➊
ᐸupdatable_viewᐳ"]]:::plan - Object12 & Connection362 --> PgSelect363 - PgSelectRows364[["PgSelectRows[364∈25] ➊"]]:::plan - PgSelect363 --> PgSelectRows364 - Access367{{"Access[367∈25] ➊
ᐸ363.cursorDetailsᐳ"}}:::plan - PgSelect363 --> Access367 - __Item365[/"__Item[365∈26]
ᐸ364ᐳ"\]:::itemplan - PgSelectRows364 ==> __Item365 - PgSelectSingle366{{"PgSelectSingle[366∈26]
ᐸupdatable_viewᐳ"}}:::plan - __Item365 --> PgSelectSingle366 - PgCursor368{{"PgCursor[368∈27]"}}:::plan - PgSelectSingle366 & Access367 --> PgCursor368 - PgClassExpression369{{"PgClassExpression[369∈27]
ᐸ__updatable_view__.”x”ᐳ"}}:::plan - PgSelectSingle366 --> PgClassExpression369 - PgClassExpression370{{"PgClassExpression[370∈27]
ᐸ__updatabl...w__.”name”ᐳ"}}:::plan - PgSelectSingle366 --> PgClassExpression370 - PgClassExpression371{{"PgClassExpression[371∈27]
ᐸ__updatabl...”constant”ᐳ"}}:::plan - PgSelectSingle366 --> PgClassExpression371 - Object400{{"Object[400∈28] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access395{{"Access[395∈28] ➊
ᐸ379.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access395 --> Object400 - PgSelect379[["PgSelect[379∈28] ➊
ᐸpost+1ᐳ"]]:::plan - Object12 & Access55 & Connection378 --> PgSelect379 - Object396{{"Object[396∈28] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access395 --> Object396 - PgSelect402[["PgSelect[402∈28] ➊
ᐸpost(aggregate)ᐳ"]]:::plan - Object12 & Access55 & Connection378 --> PgSelect402 - PgCursor386{{"PgCursor[386∈28] ➊"}}:::plan - PgSelectSingle384{{"PgSelectSingle[384∈28] ➊
ᐸpostᐳ"}}:::plan - Access385{{"Access[385∈28] ➊
ᐸ379.cursorDetailsᐳ"}}:::plan - PgSelectSingle384 & Access385 --> PgCursor386 - PgCursor392{{"PgCursor[392∈28] ➊"}}:::plan - PgSelectSingle390{{"PgSelectSingle[390∈28] ➊
ᐸpostᐳ"}}:::plan - PgSelectSingle390 & Access385 --> PgCursor392 - PgPageInfo380{{"PgPageInfo[380∈28] ➊"}}:::plan - Connection378 --> PgPageInfo380 - First382{{"First[382∈28] ➊"}}:::plan - PgSelectRows383[["PgSelectRows[383∈28] ➊"]]:::plan - PgSelectRows383 --> First382 - PgSelect379 --> PgSelectRows383 - First382 --> PgSelectSingle384 - PgSelect379 --> Access385 - Last388{{"Last[388∈28] ➊"}}:::plan - PgSelectRows383 --> Last388 - Last388 --> PgSelectSingle390 - PgSelect379 --> Access395 - Lambda397{{"Lambda[397∈28] ➊
ᐸhasNextPageCbᐳ"}}:::plan + First323{{"First[323∈0] ➊"}}:::plan + PgSelectRows324[["PgSelectRows[324∈0] ➊"]]:::plan + PgSelectRows324 --> First323 + PgSelect322 --> PgSelectRows324 + PgSelectSingle325{{"PgSelectSingle[325∈0] ➊
ᐸpersonᐳ"}}:::plan + First323 --> PgSelectSingle325 + PgClassExpression326{{"PgClassExpression[326∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle325 --> PgClassExpression326 + PgSelectRows346[["PgSelectRows[346∈0] ➊"]]:::plan + PgSelect345 --> PgSelectRows346 + Access349{{"Access[349∈0] ➊
ᐸ345.cursorDetailsᐳ"}}:::plan + PgSelect345 --> Access349 + PgSelectRows360[["PgSelectRows[360∈0] ➊"]]:::plan + PgSelect359 --> PgSelectRows360 + Access363{{"Access[363∈0] ➊
ᐸ359.cursorDetailsᐳ"}}:::plan + PgSelect359 --> Access363 + __InputObject369 --> ApplyInput375 + PgPageInfo377{{"PgPageInfo[377∈0] ➊"}}:::plan + Connection373 --> PgPageInfo377 + First379{{"First[379∈0] ➊"}}:::plan + PgSelectRows380[["PgSelectRows[380∈0] ➊"]]:::plan + PgSelectRows380 --> First379 + PgSelect376 --> PgSelectRows380 + First379 --> PgSelectSingle381 + PgSelect376 --> Access382 + Last385{{"Last[385∈0] ➊"}}:::plan + PgSelectRows380 --> Last385 + Last385 --> PgSelectSingle387 + PgSelect376 --> Access391 + Lambda393{{"Lambda[393∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object392 --> Lambda393 + Lambda397{{"Lambda[397∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object396 --> Lambda397 - Lambda401{{"Lambda[401∈28] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object400 --> Lambda401 - First403{{"First[403∈28] ➊"}}:::plan - PgSelectRows404[["PgSelectRows[404∈28] ➊"]]:::plan - PgSelectRows404 --> First403 - PgSelect402 --> PgSelectRows404 - PgSelectSingle405{{"PgSelectSingle[405∈28] ➊
ᐸpostᐳ"}}:::plan - First403 --> PgSelectSingle405 - PgClassExpression406{{"PgClassExpression[406∈28] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle405 --> PgClassExpression406 - __Item409[/"__Item[409∈29]
ᐸ383ᐳ"\]:::itemplan - PgSelectRows383 ==> __Item409 - PgSelectSingle410{{"PgSelectSingle[410∈29]
ᐸpostᐳ"}}:::plan - __Item409 --> PgSelectSingle410 - PgCursor412{{"PgCursor[412∈30]"}}:::plan - PgSelectSingle410 & Access385 --> PgCursor412 - PgClassExpression413{{"PgClassExpression[413∈30]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle410 --> PgClassExpression413 - PgClassExpression414{{"PgClassExpression[414∈30]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle410 --> PgClassExpression414 - PgSelect423[["PgSelect[423∈31] ➊
ᐸpost+1ᐳ"]]:::plan - Object12 & Access55 & Connection422 & Access55 --> PgSelect423 - Object444{{"Object[444∈31] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access439{{"Access[439∈31] ➊
ᐸ423.hasMoreᐳ"}}:::plan - Access55 & Constant6 & Constant6 & Access439 --> Object444 - Object440{{"Object[440∈31] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Access55 & Constant6 & Access439 --> Object440 - PgSelect446[["PgSelect[446∈31] ➊
ᐸpost(aggregate)ᐳ"]]:::plan - Object12 & Access55 & Connection422 --> PgSelect446 - PgCursor430{{"PgCursor[430∈31] ➊"}}:::plan - PgSelectSingle428{{"PgSelectSingle[428∈31] ➊
ᐸpostᐳ"}}:::plan - Access429{{"Access[429∈31] ➊
ᐸ423.cursorDetailsᐳ"}}:::plan - PgSelectSingle428 & Access429 --> PgCursor430 - PgCursor436{{"PgCursor[436∈31] ➊"}}:::plan - PgSelectSingle434{{"PgSelectSingle[434∈31] ➊
ᐸpostᐳ"}}:::plan - PgSelectSingle434 & Access429 --> PgCursor436 - PgPageInfo424{{"PgPageInfo[424∈31] ➊"}}:::plan - Connection422 --> PgPageInfo424 - First426{{"First[426∈31] ➊"}}:::plan - PgSelectRows427[["PgSelectRows[427∈31] ➊"]]:::plan - PgSelectRows427 --> First426 - PgSelect423 --> PgSelectRows427 - First426 --> PgSelectSingle428 - PgSelect423 --> Access429 - Last432{{"Last[432∈31] ➊"}}:::plan - PgSelectRows427 --> Last432 - Last432 --> PgSelectSingle434 - PgSelect423 --> Access439 - Lambda441{{"Lambda[441∈31] ➊
ᐸhasNextPageCbᐳ"}}:::plan + First399{{"First[399∈0] ➊"}}:::plan + PgSelectRows400[["PgSelectRows[400∈0] ➊"]]:::plan + PgSelectRows400 --> First399 + PgSelect398 --> PgSelectRows400 + PgSelectSingle401{{"PgSelectSingle[401∈0] ➊
ᐸpostᐳ"}}:::plan + First399 --> PgSelectSingle401 + PgClassExpression402{{"PgClassExpression[402∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle401 --> PgClassExpression402 + __InputObject413 --> ApplyInput419 + PgPageInfo421{{"PgPageInfo[421∈0] ➊"}}:::plan + Connection417 --> PgPageInfo421 + First423{{"First[423∈0] ➊"}}:::plan + PgSelectRows424[["PgSelectRows[424∈0] ➊"]]:::plan + PgSelectRows424 --> First423 + PgSelect420 --> PgSelectRows424 + First423 --> PgSelectSingle425 + PgSelect420 --> Access426 + Last429{{"Last[429∈0] ➊"}}:::plan + PgSelectRows424 --> Last429 + Last429 --> PgSelectSingle431 + PgSelect420 --> Access435 + Lambda437{{"Lambda[437∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object436 --> Lambda437 + Lambda441{{"Lambda[441∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object440 --> Lambda441 - Lambda445{{"Lambda[445∈31] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object444 --> Lambda445 - First447{{"First[447∈31] ➊"}}:::plan - PgSelectRows448[["PgSelectRows[448∈31] ➊"]]:::plan - PgSelectRows448 --> First447 - PgSelect446 --> PgSelectRows448 - PgSelectSingle449{{"PgSelectSingle[449∈31] ➊
ᐸpostᐳ"}}:::plan - First447 --> PgSelectSingle449 - PgClassExpression450{{"PgClassExpression[450∈31] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle449 --> PgClassExpression450 - __Item453[/"__Item[453∈32]
ᐸ427ᐳ"\]:::itemplan - PgSelectRows427 ==> __Item453 - PgSelectSingle454{{"PgSelectSingle[454∈32]
ᐸpostᐳ"}}:::plan - __Item453 --> PgSelectSingle454 - PgCursor456{{"PgCursor[456∈33]"}}:::plan - PgSelectSingle454 & Access429 --> PgCursor456 - PgClassExpression457{{"PgClassExpression[457∈33]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle454 --> PgClassExpression457 - PgClassExpression458{{"PgClassExpression[458∈33]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle454 --> PgClassExpression458 - PgSelect467[["PgSelect[467∈34] ➊
ᐸpost+1ᐳ"]]:::plan - Object12 & Constant1039 & Connection466 & Constant1039 --> PgSelect467 - Object488{{"Object[488∈34] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access483{{"Access[483∈34] ➊
ᐸ467.hasMoreᐳ"}}:::plan - Constant6 & Constant1039 & Constant6 & Access483 --> Object488 - Object484{{"Object[484∈34] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant1039 & Access483 --> Object484 - PgSelect490[["PgSelect[490∈34] ➊
ᐸpost(aggregate)ᐳ"]]:::plan - Object12 & Constant1039 & Connection466 --> PgSelect490 - PgCursor474{{"PgCursor[474∈34] ➊"}}:::plan - PgSelectSingle472{{"PgSelectSingle[472∈34] ➊
ᐸpostᐳ"}}:::plan - Access473{{"Access[473∈34] ➊
ᐸ467.cursorDetailsᐳ"}}:::plan - PgSelectSingle472 & Access473 --> PgCursor474 - PgCursor480{{"PgCursor[480∈34] ➊"}}:::plan - PgSelectSingle478{{"PgSelectSingle[478∈34] ➊
ᐸpostᐳ"}}:::plan - PgSelectSingle478 & Access473 --> PgCursor480 - PgPageInfo468{{"PgPageInfo[468∈34] ➊"}}:::plan - Connection466 --> PgPageInfo468 - First470{{"First[470∈34] ➊"}}:::plan - PgSelectRows471[["PgSelectRows[471∈34] ➊"]]:::plan - PgSelectRows471 --> First470 - PgSelect467 --> PgSelectRows471 - First470 --> PgSelectSingle472 - PgSelect467 --> Access473 - Last476{{"Last[476∈34] ➊"}}:::plan - PgSelectRows471 --> Last476 - Last476 --> PgSelectSingle478 - PgSelect467 --> Access483 - Lambda485{{"Lambda[485∈34] ➊
ᐸhasNextPageCbᐳ"}}:::plan + First443{{"First[443∈0] ➊"}}:::plan + PgSelectRows444[["PgSelectRows[444∈0] ➊"]]:::plan + PgSelectRows444 --> First443 + PgSelect442 --> PgSelectRows444 + PgSelectSingle445{{"PgSelectSingle[445∈0] ➊
ᐸpostᐳ"}}:::plan + First443 --> PgSelectSingle445 + PgClassExpression446{{"PgClassExpression[446∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle445 --> PgClassExpression446 + __InputObject457 --> ApplyInput463 + PgPageInfo465{{"PgPageInfo[465∈0] ➊"}}:::plan + Connection461 --> PgPageInfo465 + First467{{"First[467∈0] ➊"}}:::plan + PgSelectRows468[["PgSelectRows[468∈0] ➊"]]:::plan + PgSelectRows468 --> First467 + PgSelect464 --> PgSelectRows468 + First467 --> PgSelectSingle469 + PgSelect464 --> Access470 + Last473{{"Last[473∈0] ➊"}}:::plan + PgSelectRows468 --> Last473 + Last473 --> PgSelectSingle475 + PgSelect464 --> Access479 + Lambda481{{"Lambda[481∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object480 --> Lambda481 + Lambda485{{"Lambda[485∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object484 --> Lambda485 - Lambda489{{"Lambda[489∈34] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object488 --> Lambda489 - First491{{"First[491∈34] ➊"}}:::plan - PgSelectRows492[["PgSelectRows[492∈34] ➊"]]:::plan - PgSelectRows492 --> First491 - PgSelect490 --> PgSelectRows492 - PgSelectSingle493{{"PgSelectSingle[493∈34] ➊
ᐸpostᐳ"}}:::plan - First491 --> PgSelectSingle493 - PgClassExpression494{{"PgClassExpression[494∈34] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle493 --> PgClassExpression494 - __Item497[/"__Item[497∈35]
ᐸ471ᐳ"\]:::itemplan - PgSelectRows471 ==> __Item497 - PgSelectSingle498{{"PgSelectSingle[498∈35]
ᐸpostᐳ"}}:::plan - __Item497 --> PgSelectSingle498 - PgCursor500{{"PgCursor[500∈36]"}}:::plan - PgSelectSingle498 & Access473 --> PgCursor500 - PgClassExpression501{{"PgClassExpression[501∈36]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle498 --> PgClassExpression501 - PgClassExpression502{{"PgClassExpression[502∈36]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle498 --> PgClassExpression502 - PgSelect510[["PgSelect[510∈37] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection509 & Constant1040 & Constant1039 --> PgSelect510 - Object531{{"Object[531∈37] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access526{{"Access[526∈37] ➊
ᐸ510.hasMoreᐳ"}}:::plan - Constant1040 & Constant6 & Constant1039 & Access526 --> Object531 - Object527{{"Object[527∈37] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1040 & Constant6 & Access526 --> Object527 - PgCursor517{{"PgCursor[517∈37] ➊"}}:::plan - PgSelectSingle515{{"PgSelectSingle[515∈37] ➊
ᐸpersonᐳ"}}:::plan - Access516{{"Access[516∈37] ➊
ᐸ510.cursorDetailsᐳ"}}:::plan - PgSelectSingle515 & Access516 --> PgCursor517 - PgCursor523{{"PgCursor[523∈37] ➊"}}:::plan - PgSelectSingle521{{"PgSelectSingle[521∈37] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle521 & Access516 --> PgCursor523 - PgSelect533[["PgSelect[533∈37] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection509 --> PgSelect533 - PgPageInfo511{{"PgPageInfo[511∈37] ➊"}}:::plan - Connection509 --> PgPageInfo511 - First513{{"First[513∈37] ➊"}}:::plan - PgSelectRows514[["PgSelectRows[514∈37] ➊"]]:::plan - PgSelectRows514 --> First513 - PgSelect510 --> PgSelectRows514 - First513 --> PgSelectSingle515 - PgSelect510 --> Access516 - Last519{{"Last[519∈37] ➊"}}:::plan - PgSelectRows514 --> Last519 - Last519 --> PgSelectSingle521 - PgSelect510 --> Access526 - Lambda528{{"Lambda[528∈37] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object527 --> Lambda528 - Lambda532{{"Lambda[532∈37] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object531 --> Lambda532 - First534{{"First[534∈37] ➊"}}:::plan - PgSelectRows535[["PgSelectRows[535∈37] ➊"]]:::plan - PgSelectRows535 --> First534 - PgSelect533 --> PgSelectRows535 - PgSelectSingle536{{"PgSelectSingle[536∈37] ➊
ᐸpersonᐳ"}}:::plan - First534 --> PgSelectSingle536 - PgClassExpression537{{"PgClassExpression[537∈37] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle536 --> PgClassExpression537 - __Item540[/"__Item[540∈38]
ᐸ514ᐳ"\]:::itemplan - PgSelectRows514 ==> __Item540 - PgSelectSingle541{{"PgSelectSingle[541∈38]
ᐸpersonᐳ"}}:::plan - __Item540 --> PgSelectSingle541 - PgCursor543{{"PgCursor[543∈39]"}}:::plan - PgSelectSingle541 & Access516 --> PgCursor543 - PgClassExpression544{{"PgClassExpression[544∈39]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle541 --> PgClassExpression544 - PgClassExpression545{{"PgClassExpression[545∈39]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle541 --> PgClassExpression545 - PgClassExpression546{{"PgClassExpression[546∈39]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle541 --> PgClassExpression546 - PgClassExpression547{{"PgClassExpression[547∈39]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle541 --> PgClassExpression547 - PgClassExpression548{{"PgClassExpression[548∈39]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle541 --> PgClassExpression548 - PgClassExpression549{{"PgClassExpression[549∈39]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle541 --> PgClassExpression549 - PgClassExpression550{{"PgClassExpression[550∈39]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle541 --> PgClassExpression550 - Object578{{"Object[578∈40] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access573{{"Access[573∈40] ➊
ᐸ557.hasMoreᐳ"}}:::plan - Constant1041 & Constant6 & Constant6 & Access573 --> Object578 - PgSelect557[["PgSelect[557∈40] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection556 & Constant1041 --> PgSelect557 - Object574{{"Object[574∈40] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1041 & Constant6 & Access573 --> Object574 - PgCursor564{{"PgCursor[564∈40] ➊"}}:::plan - PgSelectSingle562{{"PgSelectSingle[562∈40] ➊
ᐸpersonᐳ"}}:::plan - Access563{{"Access[563∈40] ➊
ᐸ557.cursorDetailsᐳ"}}:::plan - PgSelectSingle562 & Access563 --> PgCursor564 - PgCursor570{{"PgCursor[570∈40] ➊"}}:::plan - PgSelectSingle568{{"PgSelectSingle[568∈40] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle568 & Access563 --> PgCursor570 - PgSelect580[["PgSelect[580∈40] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection556 --> PgSelect580 - PgPageInfo558{{"PgPageInfo[558∈40] ➊"}}:::plan - Connection556 --> PgPageInfo558 - First560{{"First[560∈40] ➊"}}:::plan - PgSelectRows561[["PgSelectRows[561∈40] ➊"]]:::plan - PgSelectRows561 --> First560 - PgSelect557 --> PgSelectRows561 - First560 --> PgSelectSingle562 - PgSelect557 --> Access563 - Last566{{"Last[566∈40] ➊"}}:::plan - PgSelectRows561 --> Last566 - Last566 --> PgSelectSingle568 - PgSelect557 --> Access573 - Lambda575{{"Lambda[575∈40] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object574 --> Lambda575 - Lambda579{{"Lambda[579∈40] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object578 --> Lambda579 - First581{{"First[581∈40] ➊"}}:::plan - PgSelectRows582[["PgSelectRows[582∈40] ➊"]]:::plan - PgSelectRows582 --> First581 - PgSelect580 --> PgSelectRows582 - PgSelectSingle583{{"PgSelectSingle[583∈40] ➊
ᐸpersonᐳ"}}:::plan - First581 --> PgSelectSingle583 - PgClassExpression584{{"PgClassExpression[584∈40] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle583 --> PgClassExpression584 - __Item587[/"__Item[587∈41]
ᐸ561ᐳ"\]:::itemplan - PgSelectRows561 ==> __Item587 - PgSelectSingle588{{"PgSelectSingle[588∈41]
ᐸpersonᐳ"}}:::plan - __Item587 --> PgSelectSingle588 - PgCursor590{{"PgCursor[590∈42]"}}:::plan - PgSelectSingle588 & Access563 --> PgCursor590 - PgClassExpression591{{"PgClassExpression[591∈42]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle588 --> PgClassExpression591 - PgClassExpression592{{"PgClassExpression[592∈42]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle588 --> PgClassExpression592 - PgClassExpression593{{"PgClassExpression[593∈42]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle588 --> PgClassExpression593 - PgClassExpression594{{"PgClassExpression[594∈42]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle588 --> PgClassExpression594 - PgClassExpression595{{"PgClassExpression[595∈42]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle588 --> PgClassExpression595 - PgClassExpression596{{"PgClassExpression[596∈42]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle588 --> PgClassExpression596 - PgClassExpression597{{"PgClassExpression[597∈42]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle588 --> PgClassExpression597 - PgSelect605[["PgSelect[605∈43] ➊
ᐸedge_caseᐳ"]]:::plan - Object12 & Constant1042 & Connection604 --> PgSelect605 - PgSelectRows606[["PgSelectRows[606∈43] ➊"]]:::plan - PgSelect605 --> PgSelectRows606 - __Item607[/"__Item[607∈44]
ᐸ606ᐳ"\]:::itemplan - PgSelectRows606 ==> __Item607 - PgSelectSingle608{{"PgSelectSingle[608∈44]
ᐸedge_caseᐳ"}}:::plan - __Item607 --> PgSelectSingle608 - PgClassExpression609{{"PgClassExpression[609∈45]
ᐸ__edge_case__.”row_id”ᐳ"}}:::plan - PgSelectSingle608 --> PgClassExpression609 - PgSelect621[["PgSelect[621∈46] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection619 & Lambda620 & Constant1043 & Constant1042 --> PgSelect621 - Object642{{"Object[642∈46] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access636{{"Access[636∈46] ➊
ᐸ621.hasMoreᐳ"}}:::plan - Constant1043 & Constant1042 & Constant6 & Access636 --> Object642 - Object637{{"Object[637∈46] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1043 & Constant1042 & Access636 --> Object637 - PgCursor628{{"PgCursor[628∈46] ➊"}}:::plan - PgSelectSingle626{{"PgSelectSingle[626∈46] ➊
ᐸpersonᐳ"}}:::plan - Access627{{"Access[627∈46] ➊
ᐸ621.cursorDetailsᐳ"}}:::plan - PgSelectSingle626 & Access627 --> PgCursor628 - PgCursor634{{"PgCursor[634∈46] ➊"}}:::plan - PgSelectSingle632{{"PgSelectSingle[632∈46] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle632 & Access627 --> PgCursor634 - PgSelect644[["PgSelect[644∈46] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection619 --> PgSelect644 - PgPageInfo622{{"PgPageInfo[622∈46] ➊"}}:::plan - Connection619 --> PgPageInfo622 - First624{{"First[624∈46] ➊"}}:::plan - PgSelectRows625[["PgSelectRows[625∈46] ➊"]]:::plan - PgSelectRows625 --> First624 - PgSelect621 --> PgSelectRows625 - First624 --> PgSelectSingle626 - PgSelect621 --> Access627 - Last630{{"Last[630∈46] ➊"}}:::plan - PgSelectRows625 --> Last630 - Last630 --> PgSelectSingle632 - PgSelect621 --> Access636 - Lambda638{{"Lambda[638∈46] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object637 --> Lambda638 - Lambda643{{"Lambda[643∈46] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object642 --> Lambda643 - First645{{"First[645∈46] ➊"}}:::plan - PgSelectRows646[["PgSelectRows[646∈46] ➊"]]:::plan - PgSelectRows646 --> First645 - PgSelect644 --> PgSelectRows646 - PgSelectSingle647{{"PgSelectSingle[647∈46] ➊
ᐸpersonᐳ"}}:::plan - First645 --> PgSelectSingle647 - PgClassExpression648{{"PgClassExpression[648∈46] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle647 --> PgClassExpression648 - __Item651[/"__Item[651∈47]
ᐸ625ᐳ"\]:::itemplan - PgSelectRows625 ==> __Item651 - PgSelectSingle652{{"PgSelectSingle[652∈47]
ᐸpersonᐳ"}}:::plan - __Item651 --> PgSelectSingle652 - PgCursor654{{"PgCursor[654∈48]"}}:::plan - PgSelectSingle652 & Access627 --> PgCursor654 - PgClassExpression655{{"PgClassExpression[655∈48]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle652 --> PgClassExpression655 - PgClassExpression656{{"PgClassExpression[656∈48]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle652 --> PgClassExpression656 - PgClassExpression657{{"PgClassExpression[657∈48]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle652 --> PgClassExpression657 - PgClassExpression658{{"PgClassExpression[658∈48]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle652 --> PgClassExpression658 - PgClassExpression659{{"PgClassExpression[659∈48]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle652 --> PgClassExpression659 - PgClassExpression660{{"PgClassExpression[660∈48]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle652 --> PgClassExpression660 - PgClassExpression661{{"PgClassExpression[661∈48]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle652 --> PgClassExpression661 - PgSelect670[["PgSelect[670∈49] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection668 & Lambda254 & Constant1039 --> PgSelect670 - Object691{{"Object[691∈49] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access686{{"Access[686∈49] ➊
ᐸ670.hasMoreᐳ"}}:::plan - Constant1039 & Constant6 & Constant6 & Access686 --> Object691 - Object687{{"Object[687∈49] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1039 & Constant6 & Access686 --> Object687 - PgCursor677{{"PgCursor[677∈49] ➊"}}:::plan - PgSelectSingle675{{"PgSelectSingle[675∈49] ➊
ᐸpersonᐳ"}}:::plan - Access676{{"Access[676∈49] ➊
ᐸ670.cursorDetailsᐳ"}}:::plan - PgSelectSingle675 & Access676 --> PgCursor677 - PgCursor683{{"PgCursor[683∈49] ➊"}}:::plan - PgSelectSingle681{{"PgSelectSingle[681∈49] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle681 & Access676 --> PgCursor683 - PgSelect693[["PgSelect[693∈49] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection668 --> PgSelect693 - PgPageInfo671{{"PgPageInfo[671∈49] ➊"}}:::plan - Connection668 --> PgPageInfo671 - First673{{"First[673∈49] ➊"}}:::plan - PgSelectRows674[["PgSelectRows[674∈49] ➊"]]:::plan - PgSelectRows674 --> First673 - PgSelect670 --> PgSelectRows674 - First673 --> PgSelectSingle675 - PgSelect670 --> Access676 - Last679{{"Last[679∈49] ➊"}}:::plan - PgSelectRows674 --> Last679 - Last679 --> PgSelectSingle681 - PgSelect670 --> Access686 - Lambda688{{"Lambda[688∈49] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object687 --> Lambda688 - Lambda692{{"Lambda[692∈49] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object691 --> Lambda692 - First694{{"First[694∈49] ➊"}}:::plan - PgSelectRows695[["PgSelectRows[695∈49] ➊"]]:::plan - PgSelectRows695 --> First694 - PgSelect693 --> PgSelectRows695 - PgSelectSingle696{{"PgSelectSingle[696∈49] ➊
ᐸpersonᐳ"}}:::plan - First694 --> PgSelectSingle696 - PgClassExpression697{{"PgClassExpression[697∈49] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle696 --> PgClassExpression697 - __Item700[/"__Item[700∈50]
ᐸ674ᐳ"\]:::itemplan - PgSelectRows674 ==> __Item700 - PgSelectSingle701{{"PgSelectSingle[701∈50]
ᐸpersonᐳ"}}:::plan - __Item700 --> PgSelectSingle701 - PgCursor703{{"PgCursor[703∈51]"}}:::plan - PgSelectSingle701 & Access676 --> PgCursor703 - PgClassExpression704{{"PgClassExpression[704∈51]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle701 --> PgClassExpression704 - PgClassExpression705{{"PgClassExpression[705∈51]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle701 --> PgClassExpression705 - PgClassExpression706{{"PgClassExpression[706∈51]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle701 --> PgClassExpression706 - PgClassExpression707{{"PgClassExpression[707∈51]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle701 --> PgClassExpression707 - PgClassExpression708{{"PgClassExpression[708∈51]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle701 --> PgClassExpression708 - PgClassExpression709{{"PgClassExpression[709∈51]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle701 --> PgClassExpression709 - PgClassExpression710{{"PgClassExpression[710∈51]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle701 --> PgClassExpression710 - PgSelect719[["PgSelect[719∈52] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection717 & Lambda254 & Constant1039 --> PgSelect719 - Object740{{"Object[740∈52] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access735{{"Access[735∈52] ➊
ᐸ719.hasMoreᐳ"}}:::plan - Constant6 & Constant1039 & Constant6 & Access735 --> Object740 - Object736{{"Object[736∈52] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant1039 & Access735 --> Object736 - PgCursor726{{"PgCursor[726∈52] ➊"}}:::plan - PgSelectSingle724{{"PgSelectSingle[724∈52] ➊
ᐸpersonᐳ"}}:::plan - Access725{{"Access[725∈52] ➊
ᐸ719.cursorDetailsᐳ"}}:::plan - PgSelectSingle724 & Access725 --> PgCursor726 - PgCursor732{{"PgCursor[732∈52] ➊"}}:::plan - PgSelectSingle730{{"PgSelectSingle[730∈52] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle730 & Access725 --> PgCursor732 - PgSelect742[["PgSelect[742∈52] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection717 --> PgSelect742 - PgPageInfo720{{"PgPageInfo[720∈52] ➊"}}:::plan - Connection717 --> PgPageInfo720 - First722{{"First[722∈52] ➊"}}:::plan - PgSelectRows723[["PgSelectRows[723∈52] ➊"]]:::plan - PgSelectRows723 --> First722 - PgSelect719 --> PgSelectRows723 - First722 --> PgSelectSingle724 - PgSelect719 --> Access725 - Last728{{"Last[728∈52] ➊"}}:::plan - PgSelectRows723 --> Last728 - Last728 --> PgSelectSingle730 - PgSelect719 --> Access735 - Lambda737{{"Lambda[737∈52] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object736 --> Lambda737 - Lambda741{{"Lambda[741∈52] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object740 --> Lambda741 - First743{{"First[743∈52] ➊"}}:::plan - PgSelectRows744[["PgSelectRows[744∈52] ➊"]]:::plan - PgSelectRows744 --> First743 - PgSelect742 --> PgSelectRows744 - PgSelectSingle745{{"PgSelectSingle[745∈52] ➊
ᐸpersonᐳ"}}:::plan - First743 --> PgSelectSingle745 - PgClassExpression746{{"PgClassExpression[746∈52] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle745 --> PgClassExpression746 - __Item749[/"__Item[749∈53]
ᐸ723ᐳ"\]:::itemplan - PgSelectRows723 ==> __Item749 - PgSelectSingle750{{"PgSelectSingle[750∈53]
ᐸpersonᐳ"}}:::plan - __Item749 --> PgSelectSingle750 - PgCursor752{{"PgCursor[752∈54]"}}:::plan - PgSelectSingle750 & Access725 --> PgCursor752 - PgClassExpression753{{"PgClassExpression[753∈54]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle750 --> PgClassExpression753 - PgClassExpression754{{"PgClassExpression[754∈54]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle750 --> PgClassExpression754 - PgClassExpression755{{"PgClassExpression[755∈54]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle750 --> PgClassExpression755 - PgClassExpression756{{"PgClassExpression[756∈54]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle750 --> PgClassExpression756 - PgClassExpression757{{"PgClassExpression[757∈54]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle750 --> PgClassExpression757 - PgClassExpression758{{"PgClassExpression[758∈54]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle750 --> PgClassExpression758 - PgClassExpression759{{"PgClassExpression[759∈54]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle750 --> PgClassExpression759 - Object788{{"Object[788∈55] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access783{{"Access[783∈55] ➊
ᐸ767.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access783 --> Object788 - Object784{{"Object[784∈55] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access783 --> Object784 - PgSelect767[["PgSelect[767∈55] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Connection766 --> PgSelect767 - PgCursor774{{"PgCursor[774∈55] ➊"}}:::plan - PgSelectSingle772{{"PgSelectSingle[772∈55] ➊
ᐸpersonᐳ"}}:::plan - Access773{{"Access[773∈55] ➊
ᐸ767.cursorDetailsᐳ"}}:::plan - PgSelectSingle772 & Access773 --> PgCursor774 - PgCursor780{{"PgCursor[780∈55] ➊"}}:::plan - PgSelectSingle778{{"PgSelectSingle[778∈55] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle778 & Access773 --> PgCursor780 - PgSelect790[["PgSelect[790∈55] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Connection766 --> PgSelect790 - PgPageInfo768{{"PgPageInfo[768∈55] ➊"}}:::plan - Connection766 --> PgPageInfo768 - First770{{"First[770∈55] ➊"}}:::plan - PgSelectRows771[["PgSelectRows[771∈55] ➊"]]:::plan - PgSelectRows771 --> First770 - PgSelect767 --> PgSelectRows771 - First770 --> PgSelectSingle772 - PgSelect767 --> Access773 - Last776{{"Last[776∈55] ➊"}}:::plan - PgSelectRows771 --> Last776 - Last776 --> PgSelectSingle778 - PgSelect767 --> Access783 - Lambda785{{"Lambda[785∈55] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object784 --> Lambda785 - Lambda789{{"Lambda[789∈55] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object788 --> Lambda789 - First791{{"First[791∈55] ➊"}}:::plan - PgSelectRows792[["PgSelectRows[792∈55] ➊"]]:::plan - PgSelectRows792 --> First791 - PgSelect790 --> PgSelectRows792 - PgSelectSingle793{{"PgSelectSingle[793∈55] ➊
ᐸpersonᐳ"}}:::plan - First791 --> PgSelectSingle793 - PgClassExpression794{{"PgClassExpression[794∈55] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle793 --> PgClassExpression794 - __Item797[/"__Item[797∈56]
ᐸ771ᐳ"\]:::itemplan - PgSelectRows771 ==> __Item797 - PgSelectSingle798{{"PgSelectSingle[798∈56]
ᐸpersonᐳ"}}:::plan - __Item797 --> PgSelectSingle798 - PgCursor800{{"PgCursor[800∈57]"}}:::plan - PgSelectSingle798 & Access773 --> PgCursor800 - PgClassExpression801{{"PgClassExpression[801∈57]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle798 --> PgClassExpression801 - PgClassExpression802{{"PgClassExpression[802∈57]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle798 --> PgClassExpression802 - PgClassExpression803{{"PgClassExpression[803∈57]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle798 --> PgClassExpression803 - PgClassExpression804{{"PgClassExpression[804∈57]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle798 --> PgClassExpression804 - PgClassExpression805{{"PgClassExpression[805∈57]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle798 --> PgClassExpression805 - PgClassExpression806{{"PgClassExpression[806∈57]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle798 --> PgClassExpression806 - PgClassExpression807{{"PgClassExpression[807∈57]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle798 --> PgClassExpression807 - Object836{{"Object[836∈58] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access831{{"Access[831∈58] ➊
ᐸ815.hasMoreᐳ"}}:::plan - Constant1040 & Constant6 & Constant6 & Access831 --> Object836 - PgSelect815[["PgSelect[815∈58] ➊
ᐸpost+1ᐳ"]]:::plan - Object12 & Connection814 & Constant1040 --> PgSelect815 - Object832{{"Object[832∈58] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1040 & Constant6 & Access831 --> Object832 - PgCursor822{{"PgCursor[822∈58] ➊"}}:::plan - PgSelectSingle820{{"PgSelectSingle[820∈58] ➊
ᐸpostᐳ"}}:::plan - Access821{{"Access[821∈58] ➊
ᐸ815.cursorDetailsᐳ"}}:::plan - PgSelectSingle820 & Access821 --> PgCursor822 - PgCursor828{{"PgCursor[828∈58] ➊"}}:::plan - PgSelectSingle826{{"PgSelectSingle[826∈58] ➊
ᐸpostᐳ"}}:::plan - PgSelectSingle826 & Access821 --> PgCursor828 - PgSelect838[["PgSelect[838∈58] ➊
ᐸpost(aggregate)ᐳ"]]:::plan - Object12 & Connection814 --> PgSelect838 - PgPageInfo816{{"PgPageInfo[816∈58] ➊"}}:::plan - Connection814 --> PgPageInfo816 - First818{{"First[818∈58] ➊"}}:::plan - PgSelectRows819[["PgSelectRows[819∈58] ➊"]]:::plan - PgSelectRows819 --> First818 - PgSelect815 --> PgSelectRows819 - First818 --> PgSelectSingle820 - PgSelect815 --> Access821 - Last824{{"Last[824∈58] ➊"}}:::plan - PgSelectRows819 --> Last824 - Last824 --> PgSelectSingle826 - PgSelect815 --> Access831 - Lambda833{{"Lambda[833∈58] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object832 --> Lambda833 - Lambda837{{"Lambda[837∈58] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object836 --> Lambda837 - First839{{"First[839∈58] ➊"}}:::plan - PgSelectRows840[["PgSelectRows[840∈58] ➊"]]:::plan - PgSelectRows840 --> First839 - PgSelect838 --> PgSelectRows840 - PgSelectSingle841{{"PgSelectSingle[841∈58] ➊
ᐸpostᐳ"}}:::plan - First839 --> PgSelectSingle841 - PgClassExpression842{{"PgClassExpression[842∈58] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle841 --> PgClassExpression842 - __Item845[/"__Item[845∈59]
ᐸ819ᐳ"\]:::itemplan - PgSelectRows819 ==> __Item845 - PgSelectSingle846{{"PgSelectSingle[846∈59]
ᐸpostᐳ"}}:::plan - __Item845 --> PgSelectSingle846 - PgCursor848{{"PgCursor[848∈60]"}}:::plan - PgSelectSingle846 & Access821 --> PgCursor848 - PgClassExpression849{{"PgClassExpression[849∈60]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle846 --> PgClassExpression849 - PgClassExpression850{{"PgClassExpression[850∈60]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle846 --> PgClassExpression850 - Object879{{"Object[879∈61] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access874{{"Access[874∈61] ➊
ᐸ858.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access874 --> Object879 - PgSelect858[["PgSelect[858∈61] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Constant1044 & Connection857 --> PgSelect858 - Object875{{"Object[875∈61] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access874 --> Object875 - PgSelect881[["PgSelect[881∈61] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Constant1044 & Connection857 --> PgSelect881 - PgCursor865{{"PgCursor[865∈61] ➊"}}:::plan - PgSelectSingle863{{"PgSelectSingle[863∈61] ➊
ᐸpersonᐳ"}}:::plan - Access864{{"Access[864∈61] ➊
ᐸ858.cursorDetailsᐳ"}}:::plan - PgSelectSingle863 & Access864 --> PgCursor865 - PgCursor871{{"PgCursor[871∈61] ➊"}}:::plan - PgSelectSingle869{{"PgSelectSingle[869∈61] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle869 & Access864 --> PgCursor871 - PgPageInfo859{{"PgPageInfo[859∈61] ➊"}}:::plan - Connection857 --> PgPageInfo859 - First861{{"First[861∈61] ➊"}}:::plan - PgSelectRows862[["PgSelectRows[862∈61] ➊"]]:::plan - PgSelectRows862 --> First861 - PgSelect858 --> PgSelectRows862 - First861 --> PgSelectSingle863 - PgSelect858 --> Access864 - Last867{{"Last[867∈61] ➊"}}:::plan - PgSelectRows862 --> Last867 - Last867 --> PgSelectSingle869 - PgSelect858 --> Access874 - Lambda876{{"Lambda[876∈61] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object875 --> Lambda876 - Lambda880{{"Lambda[880∈61] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object879 --> Lambda880 - First882{{"First[882∈61] ➊"}}:::plan - PgSelectRows883[["PgSelectRows[883∈61] ➊"]]:::plan - PgSelectRows883 --> First882 - PgSelect881 --> PgSelectRows883 - PgSelectSingle884{{"PgSelectSingle[884∈61] ➊
ᐸpersonᐳ"}}:::plan - First882 --> PgSelectSingle884 - PgClassExpression885{{"PgClassExpression[885∈61] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle884 --> PgClassExpression885 - __Item888[/"__Item[888∈62]
ᐸ862ᐳ"\]:::itemplan - PgSelectRows862 ==> __Item888 - PgSelectSingle889{{"PgSelectSingle[889∈62]
ᐸpersonᐳ"}}:::plan - __Item888 --> PgSelectSingle889 - PgCursor891{{"PgCursor[891∈63]"}}:::plan - PgSelectSingle889 & Access864 --> PgCursor891 - PgClassExpression892{{"PgClassExpression[892∈63]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle889 --> PgClassExpression892 - PgClassExpression893{{"PgClassExpression[893∈63]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle889 --> PgClassExpression893 - PgClassExpression894{{"PgClassExpression[894∈63]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle889 --> PgClassExpression894 - PgClassExpression895{{"PgClassExpression[895∈63]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle889 --> PgClassExpression895 - PgClassExpression896{{"PgClassExpression[896∈63]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle889 --> PgClassExpression896 - PgClassExpression897{{"PgClassExpression[897∈63]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle889 --> PgClassExpression897 - PgClassExpression898{{"PgClassExpression[898∈63]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle889 --> PgClassExpression898 - PgSelect905[["PgSelect[905∈64] ➊
ᐸpostᐳ"]]:::plan - Object12 & Connection904 & Constant1042 --> PgSelect905 - PgSelectRows906[["PgSelectRows[906∈64] ➊"]]:::plan - PgSelect905 --> PgSelectRows906 - __Item907[/"__Item[907∈65]
ᐸ906ᐳ"\]:::itemplan - PgSelectRows906 ==> __Item907 - PgSelectSingle908{{"PgSelectSingle[908∈65]
ᐸpostᐳ"}}:::plan - __Item907 --> PgSelectSingle908 - PgSelect911[["PgSelect[911∈66]
ᐸpersonᐳ"]]:::plan - PgClassExpression910{{"PgClassExpression[910∈66]
ᐸ__post__.”author_id”ᐳ"}}:::plan - Object12 & PgClassExpression910 --> PgSelect911 - PgClassExpression909{{"PgClassExpression[909∈66]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle908 --> PgClassExpression909 - PgSelectSingle908 --> PgClassExpression910 - First915{{"First[915∈66]"}}:::plan - PgSelectRows916[["PgSelectRows[916∈66]"]]:::plan - PgSelectRows916 --> First915 - PgSelect911 --> PgSelectRows916 - PgSelectSingle917{{"PgSelectSingle[917∈66]
ᐸpersonᐳ"}}:::plan - First915 --> PgSelectSingle917 - PgClassExpression919{{"PgClassExpression[919∈66]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle908 --> PgClassExpression919 - PgClassExpression918{{"PgClassExpression[918∈67]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle917 --> PgClassExpression918 - PgClassExpression925{{"PgClassExpression[925∈67]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle917 --> PgClassExpression925 - List930{{"List[930∈68]
ᐸ928,929ᐳ"}}:::plan - PgClassExpression929{{"PgClassExpression[929∈68]
ᐸ__post__.”id”ᐳ"}}:::plan - Constant928 & PgClassExpression929 --> List930 - PgSelectSingle908 --> PgClassExpression929 - Lambda931{{"Lambda[931∈68]
ᐸbase64JSONEncodeᐳ"}}:::plan - List930 --> Lambda931 - Object960{{"Object[960∈69] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access955{{"Access[955∈69] ➊
ᐸ939.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access955 --> Object960 - PgSelect939[["PgSelect[939∈69] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Constant1045 & Connection938 --> PgSelect939 - Object956{{"Object[956∈69] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access955 --> Object956 - PgSelect962[["PgSelect[962∈69] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Constant1045 & Connection938 --> PgSelect962 - PgCursor946{{"PgCursor[946∈69] ➊"}}:::plan - PgSelectSingle944{{"PgSelectSingle[944∈69] ➊
ᐸpersonᐳ"}}:::plan - Access945{{"Access[945∈69] ➊
ᐸ939.cursorDetailsᐳ"}}:::plan - PgSelectSingle944 & Access945 --> PgCursor946 - PgCursor952{{"PgCursor[952∈69] ➊"}}:::plan - PgSelectSingle950{{"PgSelectSingle[950∈69] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle950 & Access945 --> PgCursor952 - PgPageInfo940{{"PgPageInfo[940∈69] ➊"}}:::plan - Connection938 --> PgPageInfo940 - First942{{"First[942∈69] ➊"}}:::plan - PgSelectRows943[["PgSelectRows[943∈69] ➊"]]:::plan - PgSelectRows943 --> First942 - PgSelect939 --> PgSelectRows943 - First942 --> PgSelectSingle944 - PgSelect939 --> Access945 - Last948{{"Last[948∈69] ➊"}}:::plan - PgSelectRows943 --> Last948 - Last948 --> PgSelectSingle950 - PgSelect939 --> Access955 - Lambda957{{"Lambda[957∈69] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object956 --> Lambda957 - Lambda961{{"Lambda[961∈69] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object960 --> Lambda961 - First963{{"First[963∈69] ➊"}}:::plan - PgSelectRows964[["PgSelectRows[964∈69] ➊"]]:::plan - PgSelectRows964 --> First963 - PgSelect962 --> PgSelectRows964 - PgSelectSingle965{{"PgSelectSingle[965∈69] ➊
ᐸpersonᐳ"}}:::plan - First963 --> PgSelectSingle965 - PgClassExpression966{{"PgClassExpression[966∈69] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle965 --> PgClassExpression966 - __Item969[/"__Item[969∈70]
ᐸ943ᐳ"\]:::itemplan - PgSelectRows943 ==> __Item969 - PgSelectSingle970{{"PgSelectSingle[970∈70]
ᐸpersonᐳ"}}:::plan - __Item969 --> PgSelectSingle970 - PgCursor972{{"PgCursor[972∈71]"}}:::plan - PgSelectSingle970 & Access945 --> PgCursor972 - PgClassExpression973{{"PgClassExpression[973∈71]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle970 --> PgClassExpression973 - PgClassExpression974{{"PgClassExpression[974∈71]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle970 --> PgClassExpression974 - PgClassExpression975{{"PgClassExpression[975∈71]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle970 --> PgClassExpression975 - PgClassExpression976{{"PgClassExpression[976∈71]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle970 --> PgClassExpression976 - PgClassExpression977{{"PgClassExpression[977∈71]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle970 --> PgClassExpression977 - PgClassExpression978{{"PgClassExpression[978∈71]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle970 --> PgClassExpression978 - PgClassExpression979{{"PgClassExpression[979∈71]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle970 --> PgClassExpression979 - Object1008{{"Object[1008∈72] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access1003{{"Access[1003∈72] ➊
ᐸ987.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access1003 --> Object1008 - PgSelect987[["PgSelect[987∈72] ➊
ᐸperson+1ᐳ"]]:::plan - Object12 & Constant1046 & Connection986 --> PgSelect987 - Object1004{{"Object[1004∈72] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access1003 --> Object1004 - PgSelect1010[["PgSelect[1010∈72] ➊
ᐸperson(aggregate)ᐳ"]]:::plan - Object12 & Constant1046 & Connection986 --> PgSelect1010 - PgCursor994{{"PgCursor[994∈72] ➊"}}:::plan - PgSelectSingle992{{"PgSelectSingle[992∈72] ➊
ᐸpersonᐳ"}}:::plan - Access993{{"Access[993∈72] ➊
ᐸ987.cursorDetailsᐳ"}}:::plan - PgSelectSingle992 & Access993 --> PgCursor994 - PgCursor1000{{"PgCursor[1000∈72] ➊"}}:::plan - PgSelectSingle998{{"PgSelectSingle[998∈72] ➊
ᐸpersonᐳ"}}:::plan - PgSelectSingle998 & Access993 --> PgCursor1000 - PgPageInfo988{{"PgPageInfo[988∈72] ➊"}}:::plan - Connection986 --> PgPageInfo988 - First990{{"First[990∈72] ➊"}}:::plan - PgSelectRows991[["PgSelectRows[991∈72] ➊"]]:::plan - PgSelectRows991 --> First990 - PgSelect987 --> PgSelectRows991 - First990 --> PgSelectSingle992 - PgSelect987 --> Access993 - Last996{{"Last[996∈72] ➊"}}:::plan - PgSelectRows991 --> Last996 - Last996 --> PgSelectSingle998 - PgSelect987 --> Access1003 - Lambda1005{{"Lambda[1005∈72] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object1004 --> Lambda1005 - Lambda1009{{"Lambda[1009∈72] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object1008 --> Lambda1009 - First1011{{"First[1011∈72] ➊"}}:::plan - PgSelectRows1012[["PgSelectRows[1012∈72] ➊"]]:::plan - PgSelectRows1012 --> First1011 - PgSelect1010 --> PgSelectRows1012 - PgSelectSingle1013{{"PgSelectSingle[1013∈72] ➊
ᐸpersonᐳ"}}:::plan - First1011 --> PgSelectSingle1013 - PgClassExpression1014{{"PgClassExpression[1014∈72] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle1013 --> PgClassExpression1014 - __Item1017[/"__Item[1017∈73]
ᐸ991ᐳ"\]:::itemplan - PgSelectRows991 ==> __Item1017 - PgSelectSingle1018{{"PgSelectSingle[1018∈73]
ᐸpersonᐳ"}}:::plan - __Item1017 --> PgSelectSingle1018 - PgCursor1020{{"PgCursor[1020∈74]"}}:::plan - PgSelectSingle1018 & Access993 --> PgCursor1020 - PgClassExpression1021{{"PgClassExpression[1021∈74]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle1018 --> PgClassExpression1021 - PgClassExpression1022{{"PgClassExpression[1022∈74]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle1018 --> PgClassExpression1022 - PgClassExpression1023{{"PgClassExpression[1023∈74]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle1018 --> PgClassExpression1023 - PgClassExpression1024{{"PgClassExpression[1024∈74]
ᐸ__person__.”config”ᐳ"}}:::plan - PgSelectSingle1018 --> PgClassExpression1024 - PgClassExpression1025{{"PgClassExpression[1025∈74]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan - PgSelectSingle1018 --> PgClassExpression1025 - PgClassExpression1026{{"PgClassExpression[1026∈74]
ᐸ__person__...om_subnet”ᐳ"}}:::plan - PgSelectSingle1018 --> PgClassExpression1026 - PgClassExpression1027{{"PgClassExpression[1027∈74]
ᐸ__person__.”user_mac”ᐳ"}}:::plan - PgSelectSingle1018 --> PgClassExpression1027 - PgSelect1033[["PgSelect[1033∈75] ➊
ᐸnull_test_recordᐳ"]]:::plan - Object12 & Connection1032 --> PgSelect1033 - PgSelectRows1034[["PgSelectRows[1034∈75] ➊"]]:::plan - PgSelect1033 --> PgSelectRows1034 - __Item1035[/"__Item[1035∈76]
ᐸ1034ᐳ"\]:::itemplan - PgSelectRows1034 ==> __Item1035 - PgSelectSingle1036{{"PgSelectSingle[1036∈76]
ᐸnull_test_recordᐳ"}}:::plan - __Item1035 --> PgSelectSingle1036 - PgClassExpression1037{{"PgClassExpression[1037∈77]
ᐸ__null_tes...able_text”ᐳ"}}:::plan - PgSelectSingle1036 --> PgClassExpression1037 - PgClassExpression1038{{"PgClassExpression[1038∈77]
ᐸ__null_tes...lable_int”ᐳ"}}:::plan - PgSelectSingle1036 --> PgClassExpression1038 + First487{{"First[487∈0] ➊"}}:::plan + PgSelectRows488[["PgSelectRows[488∈0] ➊"]]:::plan + PgSelectRows488 --> First487 + PgSelect486 --> PgSelectRows488 + PgSelectSingle489{{"PgSelectSingle[489∈0] ➊
ᐸpostᐳ"}}:::plan + First487 --> PgSelectSingle489 + PgClassExpression490{{"PgClassExpression[490∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle489 --> PgClassExpression490 + PgPageInfo507{{"PgPageInfo[507∈0] ➊"}}:::plan + Connection504 --> PgPageInfo507 + First509{{"First[509∈0] ➊"}}:::plan + PgSelectRows510[["PgSelectRows[510∈0] ➊"]]:::plan + PgSelectRows510 --> First509 + PgSelect506 --> PgSelectRows510 + First509 --> PgSelectSingle511 + PgSelect506 --> Access512 + Last515{{"Last[515∈0] ➊"}}:::plan + PgSelectRows510 --> Last515 + Last515 --> PgSelectSingle517 + PgSelect506 --> Access521 + Lambda523{{"Lambda[523∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object522 --> Lambda523 + Lambda527{{"Lambda[527∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object526 --> Lambda527 + First529{{"First[529∈0] ➊"}}:::plan + PgSelectRows530[["PgSelectRows[530∈0] ➊"]]:::plan + PgSelectRows530 --> First529 + PgSelect528 --> PgSelectRows530 + PgSelectSingle531{{"PgSelectSingle[531∈0] ➊
ᐸpersonᐳ"}}:::plan + First529 --> PgSelectSingle531 + PgClassExpression532{{"PgClassExpression[532∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle531 --> PgClassExpression532 + PgPageInfo553{{"PgPageInfo[553∈0] ➊"}}:::plan + Connection550 --> PgPageInfo553 + First555{{"First[555∈0] ➊"}}:::plan + PgSelectRows556[["PgSelectRows[556∈0] ➊"]]:::plan + PgSelectRows556 --> First555 + PgSelect552 --> PgSelectRows556 + First555 --> PgSelectSingle557 + PgSelect552 --> Access558 + Last561{{"Last[561∈0] ➊"}}:::plan + PgSelectRows556 --> Last561 + Last561 --> PgSelectSingle563 + PgSelect552 --> Access567 + Lambda569{{"Lambda[569∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object568 --> Lambda569 + Lambda573{{"Lambda[573∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object572 --> Lambda573 + First575{{"First[575∈0] ➊"}}:::plan + PgSelectRows576[["PgSelectRows[576∈0] ➊"]]:::plan + PgSelectRows576 --> First575 + PgSelect574 --> PgSelectRows576 + PgSelectSingle577{{"PgSelectSingle[577∈0] ➊
ᐸpersonᐳ"}}:::plan + First575 --> PgSelectSingle577 + PgClassExpression578{{"PgClassExpression[578∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle577 --> PgClassExpression578 + __InputObject593 --> ApplyInput599 + PgSelectRows601[["PgSelectRows[601∈0] ➊"]]:::plan + PgSelect600 --> PgSelectRows601 + Access607{{"Access[607∈0] ➊
ᐸ0.cursor6ᐳ"}}:::plan + __Value0 --> Access607 + Access607 --> Lambda613 + PgPageInfo616{{"PgPageInfo[616∈0] ➊"}}:::plan + Connection612 --> PgPageInfo616 + First618{{"First[618∈0] ➊"}}:::plan + PgSelectRows619[["PgSelectRows[619∈0] ➊"]]:::plan + PgSelectRows619 --> First618 + PgSelect615 --> PgSelectRows619 + First618 --> PgSelectSingle620 + PgSelect615 --> Access621 + Last624{{"Last[624∈0] ➊"}}:::plan + PgSelectRows619 --> Last624 + Last624 --> PgSelectSingle626 + PgSelect615 --> Access630 + Lambda632{{"Lambda[632∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object631 --> Lambda632 + Lambda636{{"Lambda[636∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object635 --> Lambda636 + First638{{"First[638∈0] ➊"}}:::plan + PgSelectRows639[["PgSelectRows[639∈0] ➊"]]:::plan + PgSelectRows639 --> First638 + PgSelect637 --> PgSelectRows639 + PgSelectSingle640{{"PgSelectSingle[640∈0] ➊
ᐸpersonᐳ"}}:::plan + First638 --> PgSelectSingle640 + PgClassExpression641{{"PgClassExpression[641∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle640 --> PgClassExpression641 + PgPageInfo664{{"PgPageInfo[664∈0] ➊"}}:::plan + Connection660 --> PgPageInfo664 + First666{{"First[666∈0] ➊"}}:::plan + PgSelectRows667[["PgSelectRows[667∈0] ➊"]]:::plan + PgSelectRows667 --> First666 + PgSelect663 --> PgSelectRows667 + First666 --> PgSelectSingle668 + PgSelect663 --> Access669 + Last672{{"Last[672∈0] ➊"}}:::plan + PgSelectRows667 --> Last672 + Last672 --> PgSelectSingle674 + PgSelect663 --> Access678 + Lambda680{{"Lambda[680∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object679 --> Lambda680 + Lambda684{{"Lambda[684∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object683 --> Lambda684 + First686{{"First[686∈0] ➊"}}:::plan + PgSelectRows687[["PgSelectRows[687∈0] ➊"]]:::plan + PgSelectRows687 --> First686 + PgSelect685 --> PgSelectRows687 + PgSelectSingle688{{"PgSelectSingle[688∈0] ➊
ᐸpersonᐳ"}}:::plan + First686 --> PgSelectSingle688 + PgClassExpression689{{"PgClassExpression[689∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle688 --> PgClassExpression689 + PgPageInfo712{{"PgPageInfo[712∈0] ➊"}}:::plan + Connection708 --> PgPageInfo712 + First714{{"First[714∈0] ➊"}}:::plan + PgSelectRows715[["PgSelectRows[715∈0] ➊"]]:::plan + PgSelectRows715 --> First714 + PgSelect711 --> PgSelectRows715 + First714 --> PgSelectSingle716 + PgSelect711 --> Access717 + Last720{{"Last[720∈0] ➊"}}:::plan + PgSelectRows715 --> Last720 + Last720 --> PgSelectSingle722 + PgSelect711 --> Access726 + Lambda728{{"Lambda[728∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object727 --> Lambda728 + Lambda732{{"Lambda[732∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object731 --> Lambda732 + First734{{"First[734∈0] ➊"}}:::plan + PgSelectRows735[["PgSelectRows[735∈0] ➊"]]:::plan + PgSelectRows735 --> First734 + PgSelect733 --> PgSelectRows735 + PgSelectSingle736{{"PgSelectSingle[736∈0] ➊
ᐸpersonᐳ"}}:::plan + First734 --> PgSelectSingle736 + PgClassExpression737{{"PgClassExpression[737∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle736 --> PgClassExpression737 + __InputObject752 --> ApplyInput757 + PgPageInfo759{{"PgPageInfo[759∈0] ➊"}}:::plan + Connection755 --> PgPageInfo759 + First761{{"First[761∈0] ➊"}}:::plan + PgSelectRows762[["PgSelectRows[762∈0] ➊"]]:::plan + PgSelectRows762 --> First761 + PgSelect758 --> PgSelectRows762 + First761 --> PgSelectSingle763 + PgSelect758 --> Access764 + Last767{{"Last[767∈0] ➊"}}:::plan + PgSelectRows762 --> Last767 + Last767 --> PgSelectSingle769 + PgSelect758 --> Access773 + Lambda775{{"Lambda[775∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object774 --> Lambda775 + Lambda779{{"Lambda[779∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object778 --> Lambda779 + First781{{"First[781∈0] ➊"}}:::plan + PgSelectRows782[["PgSelectRows[782∈0] ➊"]]:::plan + PgSelectRows782 --> First781 + PgSelect780 --> PgSelectRows782 + PgSelectSingle783{{"PgSelectSingle[783∈0] ➊
ᐸpersonᐳ"}}:::plan + First781 --> PgSelectSingle783 + PgClassExpression784{{"PgClassExpression[784∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle783 --> PgClassExpression784 + PgPageInfo805{{"PgPageInfo[805∈0] ➊"}}:::plan + Connection802 --> PgPageInfo805 + First807{{"First[807∈0] ➊"}}:::plan + PgSelectRows808[["PgSelectRows[808∈0] ➊"]]:::plan + PgSelectRows808 --> First807 + PgSelect804 --> PgSelectRows808 + First807 --> PgSelectSingle809 + PgSelect804 --> Access810 + Last813{{"Last[813∈0] ➊"}}:::plan + PgSelectRows808 --> Last813 + Last813 --> PgSelectSingle815 + PgSelect804 --> Access819 + Lambda821{{"Lambda[821∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object820 --> Lambda821 + Lambda825{{"Lambda[825∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object824 --> Lambda825 + First827{{"First[827∈0] ➊"}}:::plan + PgSelectRows828[["PgSelectRows[828∈0] ➊"]]:::plan + PgSelectRows828 --> First827 + PgSelect826 --> PgSelectRows828 + PgSelectSingle829{{"PgSelectSingle[829∈0] ➊
ᐸpostᐳ"}}:::plan + First827 --> PgSelectSingle829 + PgClassExpression830{{"PgClassExpression[830∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle829 --> PgClassExpression830 + __InputObject840 --> ApplyInput846 + PgPageInfo848{{"PgPageInfo[848∈0] ➊"}}:::plan + Connection844 --> PgPageInfo848 + First850{{"First[850∈0] ➊"}}:::plan + PgSelectRows851[["PgSelectRows[851∈0] ➊"]]:::plan + PgSelectRows851 --> First850 + PgSelect847 --> PgSelectRows851 + First850 --> PgSelectSingle852 + PgSelect847 --> Access853 + Last856{{"Last[856∈0] ➊"}}:::plan + PgSelectRows851 --> Last856 + Last856 --> PgSelectSingle858 + PgSelect847 --> Access862 + Lambda864{{"Lambda[864∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object863 --> Lambda864 + Lambda868{{"Lambda[868∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object867 --> Lambda868 + First870{{"First[870∈0] ➊"}}:::plan + PgSelectRows871[["PgSelectRows[871∈0] ➊"]]:::plan + PgSelectRows871 --> First870 + PgSelect869 --> PgSelectRows871 + PgSelectSingle872{{"PgSelectSingle[872∈0] ➊
ᐸpersonᐳ"}}:::plan + First870 --> PgSelectSingle872 + PgClassExpression873{{"PgClassExpression[873∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle872 --> PgClassExpression873 + PgSelectRows894[["PgSelectRows[894∈0] ➊"]]:::plan + PgSelect893 --> PgSelectRows894 + __InputObject920 --> ApplyInput926 + PgPageInfo928{{"PgPageInfo[928∈0] ➊"}}:::plan + Connection924 --> PgPageInfo928 + First930{{"First[930∈0] ➊"}}:::plan + PgSelectRows931[["PgSelectRows[931∈0] ➊"]]:::plan + PgSelectRows931 --> First930 + PgSelect927 --> PgSelectRows931 + First930 --> PgSelectSingle932 + PgSelect927 --> Access933 + Last936{{"Last[936∈0] ➊"}}:::plan + PgSelectRows931 --> Last936 + Last936 --> PgSelectSingle938 + PgSelect927 --> Access942 + Lambda944{{"Lambda[944∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object943 --> Lambda944 + Lambda948{{"Lambda[948∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object947 --> Lambda948 + First950{{"First[950∈0] ➊"}}:::plan + PgSelectRows951[["PgSelectRows[951∈0] ➊"]]:::plan + PgSelectRows951 --> First950 + PgSelect949 --> PgSelectRows951 + PgSelectSingle952{{"PgSelectSingle[952∈0] ➊
ᐸpersonᐳ"}}:::plan + First950 --> PgSelectSingle952 + PgClassExpression953{{"PgClassExpression[953∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle952 --> PgClassExpression953 + __InputObject968 --> ApplyInput974 + PgPageInfo976{{"PgPageInfo[976∈0] ➊"}}:::plan + Connection972 --> PgPageInfo976 + First978{{"First[978∈0] ➊"}}:::plan + PgSelectRows979[["PgSelectRows[979∈0] ➊"]]:::plan + PgSelectRows979 --> First978 + PgSelect975 --> PgSelectRows979 + First978 --> PgSelectSingle980 + PgSelect975 --> Access981 + Last984{{"Last[984∈0] ➊"}}:::plan + PgSelectRows979 --> Last984 + Last984 --> PgSelectSingle986 + PgSelect975 --> Access990 + Lambda992{{"Lambda[992∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object991 --> Lambda992 + Lambda996{{"Lambda[996∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object995 --> Lambda996 + First998{{"First[998∈0] ➊"}}:::plan + PgSelectRows999[["PgSelectRows[999∈0] ➊"]]:::plan + PgSelectRows999 --> First998 + PgSelect997 --> PgSelectRows999 + PgSelectSingle1000{{"PgSelectSingle[1000∈0] ➊
ᐸpersonᐳ"}}:::plan + First998 --> PgSelectSingle1000 + PgClassExpression1001{{"PgClassExpression[1001∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle1000 --> PgClassExpression1001 + PgSelectRows1021[["PgSelectRows[1021∈0] ➊"]]:::plan + PgSelect1020 --> PgSelectRows1021 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + Constant916{{"Constant[916∈0] ➊
ᐸ'posts'ᐳ"}}:::plan + PgCursor46{{"PgCursor[46∈1]"}}:::plan + PgSelectSingle44{{"PgSelectSingle[44∈1]
ᐸpersonᐳ"}}:::plan + PgSelectSingle44 & Access20 --> PgCursor46 + __Item43[/"__Item[43∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item43 + __Item43 --> PgSelectSingle44 + PgClassExpression47{{"PgClassExpression[47∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression47 + PgClassExpression48{{"PgClassExpression[48∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression48 + PgClassExpression49{{"PgClassExpression[49∈1]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression49 + PgClassExpression50{{"PgClassExpression[50∈1]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression50 + PgClassExpression51{{"PgClassExpression[51∈1]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression51 + PgClassExpression52{{"PgClassExpression[52∈1]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression52 + PgClassExpression53{{"PgClassExpression[53∈1]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression53 + PgCursor93{{"PgCursor[93∈2]"}}:::plan + PgSelectSingle91{{"PgSelectSingle[91∈2]
ᐸpersonᐳ"}}:::plan + PgSelectSingle91 & Access67 --> PgCursor93 + __Item90[/"__Item[90∈2]
ᐸ65ᐳ"\]:::itemplan + PgSelectRows65 ==> __Item90 + __Item90 --> PgSelectSingle91 + PgClassExpression94{{"PgClassExpression[94∈2]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression94 + PgClassExpression95{{"PgClassExpression[95∈2]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression95 + PgClassExpression96{{"PgClassExpression[96∈2]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression96 + PgClassExpression97{{"PgClassExpression[97∈2]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression97 + PgClassExpression98{{"PgClassExpression[98∈2]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression98 + PgClassExpression99{{"PgClassExpression[99∈2]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression99 + PgClassExpression100{{"PgClassExpression[100∈2]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression100 + PgCursor139{{"PgCursor[139∈3]"}}:::plan + PgSelectSingle137{{"PgSelectSingle[137∈3]
ᐸpersonᐳ"}}:::plan + PgSelectSingle137 & Access113 --> PgCursor139 + __Item136[/"__Item[136∈3]
ᐸ111ᐳ"\]:::itemplan + PgSelectRows111 ==> __Item136 + __Item136 --> PgSelectSingle137 + PgClassExpression140{{"PgClassExpression[140∈3]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle137 --> PgClassExpression140 + PgClassExpression141{{"PgClassExpression[141∈3]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle137 --> PgClassExpression141 + PgClassExpression142{{"PgClassExpression[142∈3]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle137 --> PgClassExpression142 + PgClassExpression143{{"PgClassExpression[143∈3]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle137 --> PgClassExpression143 + PgClassExpression144{{"PgClassExpression[144∈3]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle137 --> PgClassExpression144 + PgClassExpression145{{"PgClassExpression[145∈3]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle137 --> PgClassExpression145 + PgClassExpression146{{"PgClassExpression[146∈3]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle137 --> PgClassExpression146 + PgCursor189{{"PgCursor[189∈4]"}}:::plan + PgSelectSingle187{{"PgSelectSingle[187∈4]
ᐸpersonᐳ"}}:::plan + PgSelectSingle187 & Access163 --> PgCursor189 + __Item186[/"__Item[186∈4]
ᐸ161ᐳ"\]:::itemplan + PgSelectRows161 ==> __Item186 + __Item186 --> PgSelectSingle187 + PgClassExpression190{{"PgClassExpression[190∈4]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle187 --> PgClassExpression190 + PgClassExpression191{{"PgClassExpression[191∈4]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle187 --> PgClassExpression191 + PgClassExpression192{{"PgClassExpression[192∈4]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle187 --> PgClassExpression192 + PgClassExpression193{{"PgClassExpression[193∈4]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle187 --> PgClassExpression193 + PgClassExpression194{{"PgClassExpression[194∈4]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle187 --> PgClassExpression194 + PgClassExpression195{{"PgClassExpression[195∈4]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle187 --> PgClassExpression195 + PgClassExpression196{{"PgClassExpression[196∈4]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle187 --> PgClassExpression196 + PgCursor237{{"PgCursor[237∈5]"}}:::plan + PgSelectSingle235{{"PgSelectSingle[235∈5]
ᐸpersonᐳ"}}:::plan + PgSelectSingle235 & Access211 --> PgCursor237 + __Item234[/"__Item[234∈5]
ᐸ209ᐳ"\]:::itemplan + PgSelectRows209 ==> __Item234 + __Item234 --> PgSelectSingle235 + PgClassExpression238{{"PgClassExpression[238∈5]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression238 + PgClassExpression239{{"PgClassExpression[239∈5]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression239 + PgClassExpression240{{"PgClassExpression[240∈5]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression240 + PgClassExpression241{{"PgClassExpression[241∈5]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression241 + PgClassExpression242{{"PgClassExpression[242∈5]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression242 + PgClassExpression243{{"PgClassExpression[243∈5]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression243 + PgClassExpression244{{"PgClassExpression[244∈5]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle235 --> PgClassExpression244 + PgCursor285{{"PgCursor[285∈6]"}}:::plan + PgSelectSingle283{{"PgSelectSingle[283∈6]
ᐸpersonᐳ"}}:::plan + PgSelectSingle283 & Access259 --> PgCursor285 + __Item282[/"__Item[282∈6]
ᐸ257ᐳ"\]:::itemplan + PgSelectRows257 ==> __Item282 + __Item282 --> PgSelectSingle283 + PgClassExpression286{{"PgClassExpression[286∈6]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle283 --> PgClassExpression286 + PgClassExpression287{{"PgClassExpression[287∈6]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle283 --> PgClassExpression287 + PgClassExpression288{{"PgClassExpression[288∈6]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle283 --> PgClassExpression288 + PgClassExpression289{{"PgClassExpression[289∈6]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle283 --> PgClassExpression289 + PgClassExpression290{{"PgClassExpression[290∈6]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle283 --> PgClassExpression290 + PgClassExpression291{{"PgClassExpression[291∈6]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle283 --> PgClassExpression291 + PgClassExpression292{{"PgClassExpression[292∈6]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle283 --> PgClassExpression292 + PgCursor332{{"PgCursor[332∈7]"}}:::plan + PgSelectSingle330{{"PgSelectSingle[330∈7]
ᐸpersonᐳ"}}:::plan + PgSelectSingle330 & Access306 --> PgCursor332 + __Item329[/"__Item[329∈7]
ᐸ304ᐳ"\]:::itemplan + PgSelectRows304 ==> __Item329 + __Item329 --> PgSelectSingle330 + PgClassExpression333{{"PgClassExpression[333∈7]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression333 + PgClassExpression334{{"PgClassExpression[334∈7]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression334 + PgClassExpression335{{"PgClassExpression[335∈7]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression335 + PgClassExpression336{{"PgClassExpression[336∈7]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression336 + PgClassExpression337{{"PgClassExpression[337∈7]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression337 + PgClassExpression338{{"PgClassExpression[338∈7]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression338 + PgClassExpression339{{"PgClassExpression[339∈7]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression339 + PgCursor350{{"PgCursor[350∈8]"}}:::plan + PgSelectSingle348{{"PgSelectSingle[348∈8]
ᐸupdatable_viewᐳ"}}:::plan + PgSelectSingle348 & Access349 --> PgCursor350 + __Item347[/"__Item[347∈8]
ᐸ346ᐳ"\]:::itemplan + PgSelectRows346 ==> __Item347 + __Item347 --> PgSelectSingle348 + PgClassExpression351{{"PgClassExpression[351∈8]
ᐸ__updatable_view__.”x”ᐳ"}}:::plan + PgSelectSingle348 --> PgClassExpression351 + PgClassExpression352{{"PgClassExpression[352∈8]
ᐸ__updatabl...w__.”name”ᐳ"}}:::plan + PgSelectSingle348 --> PgClassExpression352 + PgClassExpression353{{"PgClassExpression[353∈8]
ᐸ__updatabl...”constant”ᐳ"}}:::plan + PgSelectSingle348 --> PgClassExpression353 + PgCursor364{{"PgCursor[364∈9]"}}:::plan + PgSelectSingle362{{"PgSelectSingle[362∈9]
ᐸupdatable_viewᐳ"}}:::plan + PgSelectSingle362 & Access363 --> PgCursor364 + __Item361[/"__Item[361∈9]
ᐸ360ᐳ"\]:::itemplan + PgSelectRows360 ==> __Item361 + __Item361 --> PgSelectSingle362 + PgClassExpression365{{"PgClassExpression[365∈9]
ᐸ__updatable_view__.”x”ᐳ"}}:::plan + PgSelectSingle362 --> PgClassExpression365 + PgClassExpression366{{"PgClassExpression[366∈9]
ᐸ__updatabl...w__.”name”ᐳ"}}:::plan + PgSelectSingle362 --> PgClassExpression366 + PgClassExpression367{{"PgClassExpression[367∈9]
ᐸ__updatabl...”constant”ᐳ"}}:::plan + PgSelectSingle362 --> PgClassExpression367 + PgCursor408{{"PgCursor[408∈10]"}}:::plan + PgSelectSingle406{{"PgSelectSingle[406∈10]
ᐸpostᐳ"}}:::plan + PgSelectSingle406 & Access382 --> PgCursor408 + __Item405[/"__Item[405∈10]
ᐸ380ᐳ"\]:::itemplan + PgSelectRows380 ==> __Item405 + __Item405 --> PgSelectSingle406 + PgClassExpression409{{"PgClassExpression[409∈10]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle406 --> PgClassExpression409 + PgClassExpression410{{"PgClassExpression[410∈10]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle406 --> PgClassExpression410 + PgCursor452{{"PgCursor[452∈11]"}}:::plan + PgSelectSingle450{{"PgSelectSingle[450∈11]
ᐸpostᐳ"}}:::plan + PgSelectSingle450 & Access426 --> PgCursor452 + __Item449[/"__Item[449∈11]
ᐸ424ᐳ"\]:::itemplan + PgSelectRows424 ==> __Item449 + __Item449 --> PgSelectSingle450 + PgClassExpression453{{"PgClassExpression[453∈11]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle450 --> PgClassExpression453 + PgClassExpression454{{"PgClassExpression[454∈11]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle450 --> PgClassExpression454 + PgCursor496{{"PgCursor[496∈12]"}}:::plan + PgSelectSingle494{{"PgSelectSingle[494∈12]
ᐸpostᐳ"}}:::plan + PgSelectSingle494 & Access470 --> PgCursor496 + __Item493[/"__Item[493∈12]
ᐸ468ᐳ"\]:::itemplan + PgSelectRows468 ==> __Item493 + __Item493 --> PgSelectSingle494 + PgClassExpression497{{"PgClassExpression[497∈12]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle494 --> PgClassExpression497 + PgClassExpression498{{"PgClassExpression[498∈12]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle494 --> PgClassExpression498 + PgCursor538{{"PgCursor[538∈13]"}}:::plan + PgSelectSingle536{{"PgSelectSingle[536∈13]
ᐸpersonᐳ"}}:::plan + PgSelectSingle536 & Access512 --> PgCursor538 + __Item535[/"__Item[535∈13]
ᐸ510ᐳ"\]:::itemplan + PgSelectRows510 ==> __Item535 + __Item535 --> PgSelectSingle536 + PgClassExpression539{{"PgClassExpression[539∈13]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle536 --> PgClassExpression539 + PgClassExpression540{{"PgClassExpression[540∈13]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle536 --> PgClassExpression540 + PgClassExpression541{{"PgClassExpression[541∈13]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle536 --> PgClassExpression541 + PgClassExpression542{{"PgClassExpression[542∈13]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle536 --> PgClassExpression542 + PgClassExpression543{{"PgClassExpression[543∈13]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle536 --> PgClassExpression543 + PgClassExpression544{{"PgClassExpression[544∈13]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle536 --> PgClassExpression544 + PgClassExpression545{{"PgClassExpression[545∈13]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle536 --> PgClassExpression545 + PgCursor584{{"PgCursor[584∈14]"}}:::plan + PgSelectSingle582{{"PgSelectSingle[582∈14]
ᐸpersonᐳ"}}:::plan + PgSelectSingle582 & Access558 --> PgCursor584 + __Item581[/"__Item[581∈14]
ᐸ556ᐳ"\]:::itemplan + PgSelectRows556 ==> __Item581 + __Item581 --> PgSelectSingle582 + PgClassExpression585{{"PgClassExpression[585∈14]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle582 --> PgClassExpression585 + PgClassExpression586{{"PgClassExpression[586∈14]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle582 --> PgClassExpression586 + PgClassExpression587{{"PgClassExpression[587∈14]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle582 --> PgClassExpression587 + PgClassExpression588{{"PgClassExpression[588∈14]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle582 --> PgClassExpression588 + PgClassExpression589{{"PgClassExpression[589∈14]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle582 --> PgClassExpression589 + PgClassExpression590{{"PgClassExpression[590∈14]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle582 --> PgClassExpression590 + PgClassExpression591{{"PgClassExpression[591∈14]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle582 --> PgClassExpression591 + __Item602[/"__Item[602∈15]
ᐸ601ᐳ"\]:::itemplan + PgSelectRows601 ==> __Item602 + PgSelectSingle603{{"PgSelectSingle[603∈15]
ᐸedge_caseᐳ"}}:::plan + __Item602 --> PgSelectSingle603 + PgClassExpression604{{"PgClassExpression[604∈15]
ᐸ__edge_case__.”row_id”ᐳ"}}:::plan + PgSelectSingle603 --> PgClassExpression604 + PgCursor647{{"PgCursor[647∈16]"}}:::plan + PgSelectSingle645{{"PgSelectSingle[645∈16]
ᐸpersonᐳ"}}:::plan + PgSelectSingle645 & Access621 --> PgCursor647 + __Item644[/"__Item[644∈16]
ᐸ619ᐳ"\]:::itemplan + PgSelectRows619 ==> __Item644 + __Item644 --> PgSelectSingle645 + PgClassExpression648{{"PgClassExpression[648∈16]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle645 --> PgClassExpression648 + PgClassExpression649{{"PgClassExpression[649∈16]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle645 --> PgClassExpression649 + PgClassExpression650{{"PgClassExpression[650∈16]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle645 --> PgClassExpression650 + PgClassExpression651{{"PgClassExpression[651∈16]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle645 --> PgClassExpression651 + PgClassExpression652{{"PgClassExpression[652∈16]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle645 --> PgClassExpression652 + PgClassExpression653{{"PgClassExpression[653∈16]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle645 --> PgClassExpression653 + PgClassExpression654{{"PgClassExpression[654∈16]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle645 --> PgClassExpression654 + PgCursor695{{"PgCursor[695∈17]"}}:::plan + PgSelectSingle693{{"PgSelectSingle[693∈17]
ᐸpersonᐳ"}}:::plan + PgSelectSingle693 & Access669 --> PgCursor695 + __Item692[/"__Item[692∈17]
ᐸ667ᐳ"\]:::itemplan + PgSelectRows667 ==> __Item692 + __Item692 --> PgSelectSingle693 + PgClassExpression696{{"PgClassExpression[696∈17]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle693 --> PgClassExpression696 + PgClassExpression697{{"PgClassExpression[697∈17]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle693 --> PgClassExpression697 + PgClassExpression698{{"PgClassExpression[698∈17]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle693 --> PgClassExpression698 + PgClassExpression699{{"PgClassExpression[699∈17]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle693 --> PgClassExpression699 + PgClassExpression700{{"PgClassExpression[700∈17]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle693 --> PgClassExpression700 + PgClassExpression701{{"PgClassExpression[701∈17]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle693 --> PgClassExpression701 + PgClassExpression702{{"PgClassExpression[702∈17]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle693 --> PgClassExpression702 + PgCursor743{{"PgCursor[743∈18]"}}:::plan + PgSelectSingle741{{"PgSelectSingle[741∈18]
ᐸpersonᐳ"}}:::plan + PgSelectSingle741 & Access717 --> PgCursor743 + __Item740[/"__Item[740∈18]
ᐸ715ᐳ"\]:::itemplan + PgSelectRows715 ==> __Item740 + __Item740 --> PgSelectSingle741 + PgClassExpression744{{"PgClassExpression[744∈18]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle741 --> PgClassExpression744 + PgClassExpression745{{"PgClassExpression[745∈18]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle741 --> PgClassExpression745 + PgClassExpression746{{"PgClassExpression[746∈18]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle741 --> PgClassExpression746 + PgClassExpression747{{"PgClassExpression[747∈18]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle741 --> PgClassExpression747 + PgClassExpression748{{"PgClassExpression[748∈18]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle741 --> PgClassExpression748 + PgClassExpression749{{"PgClassExpression[749∈18]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle741 --> PgClassExpression749 + PgClassExpression750{{"PgClassExpression[750∈18]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle741 --> PgClassExpression750 + PgCursor790{{"PgCursor[790∈19]"}}:::plan + PgSelectSingle788{{"PgSelectSingle[788∈19]
ᐸpersonᐳ"}}:::plan + PgSelectSingle788 & Access764 --> PgCursor790 + __Item787[/"__Item[787∈19]
ᐸ762ᐳ"\]:::itemplan + PgSelectRows762 ==> __Item787 + __Item787 --> PgSelectSingle788 + PgClassExpression791{{"PgClassExpression[791∈19]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle788 --> PgClassExpression791 + PgClassExpression792{{"PgClassExpression[792∈19]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle788 --> PgClassExpression792 + PgClassExpression793{{"PgClassExpression[793∈19]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle788 --> PgClassExpression793 + PgClassExpression794{{"PgClassExpression[794∈19]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle788 --> PgClassExpression794 + PgClassExpression795{{"PgClassExpression[795∈19]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle788 --> PgClassExpression795 + PgClassExpression796{{"PgClassExpression[796∈19]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle788 --> PgClassExpression796 + PgClassExpression797{{"PgClassExpression[797∈19]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle788 --> PgClassExpression797 + PgCursor836{{"PgCursor[836∈20]"}}:::plan + PgSelectSingle834{{"PgSelectSingle[834∈20]
ᐸpostᐳ"}}:::plan + PgSelectSingle834 & Access810 --> PgCursor836 + __Item833[/"__Item[833∈20]
ᐸ808ᐳ"\]:::itemplan + PgSelectRows808 ==> __Item833 + __Item833 --> PgSelectSingle834 + PgClassExpression837{{"PgClassExpression[837∈20]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle834 --> PgClassExpression837 + PgClassExpression838{{"PgClassExpression[838∈20]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle834 --> PgClassExpression838 + PgCursor879{{"PgCursor[879∈21]"}}:::plan + PgSelectSingle877{{"PgSelectSingle[877∈21]
ᐸpersonᐳ"}}:::plan + PgSelectSingle877 & Access853 --> PgCursor879 + __Item876[/"__Item[876∈21]
ᐸ851ᐳ"\]:::itemplan + PgSelectRows851 ==> __Item876 + __Item876 --> PgSelectSingle877 + PgClassExpression880{{"PgClassExpression[880∈21]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle877 --> PgClassExpression880 + PgClassExpression881{{"PgClassExpression[881∈21]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle877 --> PgClassExpression881 + PgClassExpression882{{"PgClassExpression[882∈21]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle877 --> PgClassExpression882 + PgClassExpression883{{"PgClassExpression[883∈21]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle877 --> PgClassExpression883 + PgClassExpression884{{"PgClassExpression[884∈21]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle877 --> PgClassExpression884 + PgClassExpression885{{"PgClassExpression[885∈21]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle877 --> PgClassExpression885 + PgClassExpression886{{"PgClassExpression[886∈21]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle877 --> PgClassExpression886 + PgSelect899[["PgSelect[899∈22]
ᐸpersonᐳ"]]:::plan + PgClassExpression898{{"PgClassExpression[898∈22]
ᐸ__post__.”author_id”ᐳ"}}:::plan + Object11 & PgClassExpression898 --> PgSelect899 + List917{{"List[917∈22]
ᐸ916,897ᐳ"}}:::plan + PgClassExpression897{{"PgClassExpression[897∈22]
ᐸ__post__.”id”ᐳ"}}:::plan + Constant916 & PgClassExpression897 --> List917 + __Item895[/"__Item[895∈22]
ᐸ894ᐳ"\]:::itemplan + PgSelectRows894 ==> __Item895 + PgSelectSingle896{{"PgSelectSingle[896∈22]
ᐸpostᐳ"}}:::plan + __Item895 --> PgSelectSingle896 + PgSelectSingle896 --> PgClassExpression897 + PgSelectSingle896 --> PgClassExpression898 + First903{{"First[903∈22]"}}:::plan + PgSelectRows904[["PgSelectRows[904∈22]"]]:::plan + PgSelectRows904 --> First903 + PgSelect899 --> PgSelectRows904 + PgSelectSingle905{{"PgSelectSingle[905∈22]
ᐸpersonᐳ"}}:::plan + First903 --> PgSelectSingle905 + PgClassExpression906{{"PgClassExpression[906∈22]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle905 --> PgClassExpression906 + PgClassExpression907{{"PgClassExpression[907∈22]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle896 --> PgClassExpression907 + PgClassExpression913{{"PgClassExpression[913∈22]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle905 --> PgClassExpression913 + Lambda918{{"Lambda[918∈22]
ᐸbase64JSONEncodeᐳ"}}:::plan + List917 --> Lambda918 + PgCursor959{{"PgCursor[959∈23]"}}:::plan + PgSelectSingle957{{"PgSelectSingle[957∈23]
ᐸpersonᐳ"}}:::plan + PgSelectSingle957 & Access933 --> PgCursor959 + __Item956[/"__Item[956∈23]
ᐸ931ᐳ"\]:::itemplan + PgSelectRows931 ==> __Item956 + __Item956 --> PgSelectSingle957 + PgClassExpression960{{"PgClassExpression[960∈23]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle957 --> PgClassExpression960 + PgClassExpression961{{"PgClassExpression[961∈23]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle957 --> PgClassExpression961 + PgClassExpression962{{"PgClassExpression[962∈23]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle957 --> PgClassExpression962 + PgClassExpression963{{"PgClassExpression[963∈23]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle957 --> PgClassExpression963 + PgClassExpression964{{"PgClassExpression[964∈23]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle957 --> PgClassExpression964 + PgClassExpression965{{"PgClassExpression[965∈23]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle957 --> PgClassExpression965 + PgClassExpression966{{"PgClassExpression[966∈23]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle957 --> PgClassExpression966 + PgCursor1007{{"PgCursor[1007∈24]"}}:::plan + PgSelectSingle1005{{"PgSelectSingle[1005∈24]
ᐸpersonᐳ"}}:::plan + PgSelectSingle1005 & Access981 --> PgCursor1007 + __Item1004[/"__Item[1004∈24]
ᐸ979ᐳ"\]:::itemplan + PgSelectRows979 ==> __Item1004 + __Item1004 --> PgSelectSingle1005 + PgClassExpression1008{{"PgClassExpression[1008∈24]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle1005 --> PgClassExpression1008 + PgClassExpression1009{{"PgClassExpression[1009∈24]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle1005 --> PgClassExpression1009 + PgClassExpression1010{{"PgClassExpression[1010∈24]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle1005 --> PgClassExpression1010 + PgClassExpression1011{{"PgClassExpression[1011∈24]
ᐸ__person__.”config”ᐳ"}}:::plan + PgSelectSingle1005 --> PgClassExpression1011 + PgClassExpression1012{{"PgClassExpression[1012∈24]
ᐸ__person__...n_from_ip”ᐳ"}}:::plan + PgSelectSingle1005 --> PgClassExpression1012 + PgClassExpression1013{{"PgClassExpression[1013∈24]
ᐸ__person__...om_subnet”ᐳ"}}:::plan + PgSelectSingle1005 --> PgClassExpression1013 + PgClassExpression1014{{"PgClassExpression[1014∈24]
ᐸ__person__.”user_mac”ᐳ"}}:::plan + PgSelectSingle1005 --> PgClassExpression1014 + __Item1022[/"__Item[1022∈25]
ᐸ1021ᐳ"\]:::itemplan + PgSelectRows1021 ==> __Item1022 + PgSelectSingle1023{{"PgSelectSingle[1023∈25]
ᐸnull_test_recordᐳ"}}:::plan + __Item1022 --> PgSelectSingle1023 + PgClassExpression1024{{"PgClassExpression[1024∈25]
ᐸ__null_tes...able_text”ᐳ"}}:::plan + PgSelectSingle1023 --> PgClassExpression1024 + PgClassExpression1025{{"PgClassExpression[1025∈25]
ᐸ__null_tes...lable_int”ᐳ"}}:::plan + PgSelectSingle1023 --> PgClassExpression1025 %% define steps subgraph "Buckets for queries/v4/connections.variables" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 54, 147, 197, 245, 605, 607, 916, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 11, 12, 15, 59, 62, 105, 108, 154, 203, 251, 297, 301, 343, 357, 369, 373, 375, 377, 413, 417, 419, 421, 457, 461, 463, 465, 504, 507, 550, 553, 593, 597, 599, 613, 660, 664, 708, 712, 752, 755, 757, 759, 802, 805, 840, 844, 846, 848, 891, 920, 924, 926, 928, 968, 972, 974, 976, 1018, 153, 158, 202, 206, 250, 254, 612, 616
2: 14, 36, 61, 83, 107, 129, 157, 179, 205, 227, 253, 275, 300, 322, 345, 359, 376, 398, 420, 442, 464, 486, 506, 528, 552, 574, 600, 615, 637, 663, 685, 711, 733, 758, 780, 804, 826, 847, 869, 893, 927, 949, 975, 997, 1020
ᐳ: 20, 29, 30, 31, 34, 35, 67, 76, 77, 78, 81, 82, 113, 122, 123, 124, 127, 128, 163, 172, 173, 174, 177, 178, 211, 220, 221, 222, 225, 226, 259, 268, 269, 270, 273, 274, 306, 315, 316, 317, 320, 321, 349, 363, 382, 391, 392, 393, 396, 397, 426, 435, 436, 437, 440, 441, 470, 479, 480, 481, 484, 485, 512, 521, 522, 523, 526, 527, 558, 567, 568, 569, 572, 573, 621, 630, 631, 632, 635, 636, 669, 678, 679, 680, 683, 684, 717, 726, 727, 728, 731, 732, 764, 773, 774, 775, 778, 779, 810, 819, 820, 821, 824, 825, 853, 862, 863, 864, 867, 868, 933, 942, 943, 944, 947, 948, 981, 990, 991, 992, 995, 996
3: 18, 38, 65, 85, 111, 131, 161, 181, 209, 229, 257, 277, 304, 324, 346, 360, 380, 400, 424, 444, 468, 488, 510, 530, 556, 576, 601, 619, 639, 667, 687, 715, 735, 762, 782, 808, 828, 851, 871, 894, 931, 951, 979, 999, 1021
ᐳ: 17, 19, 21, 23, 25, 27, 37, 39, 40, 64, 66, 68, 70, 72, 74, 84, 86, 87, 110, 112, 114, 116, 118, 120, 130, 132, 133, 160, 162, 164, 166, 168, 170, 180, 182, 183, 208, 210, 212, 214, 216, 218, 228, 230, 231, 256, 258, 260, 262, 264, 266, 276, 278, 279, 303, 305, 307, 309, 311, 313, 323, 325, 326, 379, 381, 383, 385, 387, 389, 399, 401, 402, 423, 425, 427, 429, 431, 433, 443, 445, 446, 467, 469, 471, 473, 475, 477, 487, 489, 490, 509, 511, 513, 515, 517, 519, 529, 531, 532, 555, 557, 559, 561, 563, 565, 575, 577, 578, 618, 620, 622, 624, 626, 628, 638, 640, 641, 666, 668, 670, 672, 674, 676, 686, 688, 689, 714, 716, 718, 720, 722, 724, 734, 736, 737, 761, 763, 765, 767, 769, 771, 781, 783, 784, 807, 809, 811, 813, 815, 817, 827, 829, 830, 850, 852, 854, 856, 858, 860, 870, 872, 873, 930, 932, 934, 936, 938, 940, 950, 952, 953, 978, 980, 982, 984, 986, 988, 998, 1000, 1001"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,Constant6,Access10,Access11,Object12,Connection13,Access55,Connection61,Connection108,Connection157,Connection205,Access247,Connection253,Lambda254,Connection301,Connection348,Connection362,Connection378,Connection422,Connection466,Connection509,Connection556,Connection604,Access612,Connection619,Lambda620,Connection668,Connection717,Connection766,Connection814,Connection857,Connection904,Constant928,Connection938,Connection986,Connection1032,Constant1039,Constant1040,Constant1041,Constant1042,Constant1043,Constant1044,Constant1045,Constant1046 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 6

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14], PgSelect[37]
ᐳ: 15, 20, 30, 31, 32, 35, 36
2: PgSelectRows[18], PgSelectRows[39]
ᐳ: 17, 19, 21, 23, 25, 27, 38, 40, 41"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgPageInfo15,First17,PgSelectRows18,PgSelectSingle19,Access20,PgCursor21,Last23,PgSelectSingle25,PgCursor27,Access29,Object30,Lambda31,Object34,Lambda35,PgSelect36,First37,PgSelectRows38,PgSelectSingle39,PgClassExpression40,Access54,Connection59,PgSelect61,PgPageInfo62,First64,PgSelectRows65,PgSelectSingle66,Access67,PgCursor68,Last70,PgSelectSingle72,PgCursor74,Access76,Object77,Lambda78,Object81,Lambda82,PgSelect83,First84,PgSelectRows85,PgSelectSingle86,PgClassExpression87,Connection105,PgSelect107,PgPageInfo108,First110,PgSelectRows111,PgSelectSingle112,Access113,PgCursor114,Last116,PgSelectSingle118,PgCursor120,Access122,Object123,Lambda124,Object127,Lambda128,PgSelect129,First130,PgSelectRows131,PgSelectSingle132,PgClassExpression133,Access147,Connection153,Lambda154,PgSelect157,PgPageInfo158,First160,PgSelectRows161,PgSelectSingle162,Access163,PgCursor164,Last166,PgSelectSingle168,PgCursor170,Access172,Object173,Lambda174,Object177,Lambda178,PgSelect179,First180,PgSelectRows181,PgSelectSingle182,PgClassExpression183,Access197,Connection202,Lambda203,PgSelect205,PgPageInfo206,First208,PgSelectRows209,PgSelectSingle210,Access211,PgCursor212,Last214,PgSelectSingle216,PgCursor218,Access220,Object221,Lambda222,Object225,Lambda226,PgSelect227,First228,PgSelectRows229,PgSelectSingle230,PgClassExpression231,Access245,Connection250,Lambda251,PgSelect253,PgPageInfo254,First256,PgSelectRows257,PgSelectSingle258,Access259,PgCursor260,Last262,PgSelectSingle264,PgCursor266,Access268,Object269,Lambda270,Object273,Lambda274,PgSelect275,First276,PgSelectRows277,PgSelectSingle278,PgClassExpression279,Connection297,PgSelect300,PgPageInfo301,First303,PgSelectRows304,PgSelectSingle305,Access306,PgCursor307,Last309,PgSelectSingle311,PgCursor313,Access315,Object316,Lambda317,Object320,Lambda321,PgSelect322,First323,PgSelectRows324,PgSelectSingle325,PgClassExpression326,Connection343,PgSelect345,PgSelectRows346,Access349,Connection357,PgSelect359,PgSelectRows360,Access363,__InputObject369,Connection373,ApplyInput375,PgSelect376,PgPageInfo377,First379,PgSelectRows380,PgSelectSingle381,Access382,PgCursor383,Last385,PgSelectSingle387,PgCursor389,Access391,Object392,Lambda393,Object396,Lambda397,PgSelect398,First399,PgSelectRows400,PgSelectSingle401,PgClassExpression402,__InputObject413,Connection417,ApplyInput419,PgSelect420,PgPageInfo421,First423,PgSelectRows424,PgSelectSingle425,Access426,PgCursor427,Last429,PgSelectSingle431,PgCursor433,Access435,Object436,Lambda437,Object440,Lambda441,PgSelect442,First443,PgSelectRows444,PgSelectSingle445,PgClassExpression446,__InputObject457,Connection461,ApplyInput463,PgSelect464,PgPageInfo465,First467,PgSelectRows468,PgSelectSingle469,Access470,PgCursor471,Last473,PgSelectSingle475,PgCursor477,Access479,Object480,Lambda481,Object484,Lambda485,PgSelect486,First487,PgSelectRows488,PgSelectSingle489,PgClassExpression490,Connection504,PgSelect506,PgPageInfo507,First509,PgSelectRows510,PgSelectSingle511,Access512,PgCursor513,Last515,PgSelectSingle517,PgCursor519,Access521,Object522,Lambda523,Object526,Lambda527,PgSelect528,First529,PgSelectRows530,PgSelectSingle531,PgClassExpression532,Connection550,PgSelect552,PgPageInfo553,First555,PgSelectRows556,PgSelectSingle557,Access558,PgCursor559,Last561,PgSelectSingle563,PgCursor565,Access567,Object568,Lambda569,Object572,Lambda573,PgSelect574,First575,PgSelectRows576,PgSelectSingle577,PgClassExpression578,__InputObject593,Connection597,ApplyInput599,PgSelect600,PgSelectRows601,Constant605,Access607,Connection612,Lambda613,PgSelect615,PgPageInfo616,First618,PgSelectRows619,PgSelectSingle620,Access621,PgCursor622,Last624,PgSelectSingle626,PgCursor628,Access630,Object631,Lambda632,Object635,Lambda636,PgSelect637,First638,PgSelectRows639,PgSelectSingle640,PgClassExpression641,Connection660,PgSelect663,PgPageInfo664,First666,PgSelectRows667,PgSelectSingle668,Access669,PgCursor670,Last672,PgSelectSingle674,PgCursor676,Access678,Object679,Lambda680,Object683,Lambda684,PgSelect685,First686,PgSelectRows687,PgSelectSingle688,PgClassExpression689,Connection708,PgSelect711,PgPageInfo712,First714,PgSelectRows715,PgSelectSingle716,Access717,PgCursor718,Last720,PgSelectSingle722,PgCursor724,Access726,Object727,Lambda728,Object731,Lambda732,PgSelect733,First734,PgSelectRows735,PgSelectSingle736,PgClassExpression737,__InputObject752,Connection755,ApplyInput757,PgSelect758,PgPageInfo759,First761,PgSelectRows762,PgSelectSingle763,Access764,PgCursor765,Last767,PgSelectSingle769,PgCursor771,Access773,Object774,Lambda775,Object778,Lambda779,PgSelect780,First781,PgSelectRows782,PgSelectSingle783,PgClassExpression784,Connection802,PgSelect804,PgPageInfo805,First807,PgSelectRows808,PgSelectSingle809,Access810,PgCursor811,Last813,PgSelectSingle815,PgCursor817,Access819,Object820,Lambda821,Object824,Lambda825,PgSelect826,First827,PgSelectRows828,PgSelectSingle829,PgClassExpression830,__InputObject840,Connection844,ApplyInput846,PgSelect847,PgPageInfo848,First850,PgSelectRows851,PgSelectSingle852,Access853,PgCursor854,Last856,PgSelectSingle858,PgCursor860,Access862,Object863,Lambda864,Object867,Lambda868,PgSelect869,First870,PgSelectRows871,PgSelectSingle872,PgClassExpression873,Connection891,PgSelect893,PgSelectRows894,Constant916,__InputObject920,Connection924,ApplyInput926,PgSelect927,PgPageInfo928,First930,PgSelectRows931,PgSelectSingle932,Access933,PgCursor934,Last936,PgSelectSingle938,PgCursor940,Access942,Object943,Lambda944,Object947,Lambda948,PgSelect949,First950,PgSelectRows951,PgSelectSingle952,PgClassExpression953,__InputObject968,Connection972,ApplyInput974,PgSelect975,PgPageInfo976,First978,PgSelectRows979,PgSelectSingle980,Access981,PgCursor982,Last984,PgSelectSingle986,PgCursor988,Access990,Object991,Lambda992,Object995,Lambda996,PgSelect997,First998,PgSelectRows999,PgSelectSingle1000,PgClassExpression1001,Connection1018,PgSelect1020,PgSelectRows1021,Constant1026,Constant1027,Constant1028,Constant1029,Constant1030,Constant1031,Constant1032 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 20

ROOT __Item{1}ᐸ18ᐳ[43]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgPageInfo15,First17,PgSelectRows18,PgSelectSingle19,Access20,PgCursor21,Last23,PgSelectSingle25,PgCursor27,Access30,Object31,Lambda32,Object35,Lambda36,PgSelect37,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 20

ROOT __Item{2}ᐸ18ᐳ[44]"):::bucket + class Bucket1,__Item43,PgSelectSingle44,PgCursor46,PgClassExpression47,PgClassExpression48,PgClassExpression49,PgClassExpression50,PgClassExpression51,PgClassExpression52,PgClassExpression53 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 67

ROOT __Item{2}ᐸ65ᐳ[90]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item44,PgSelectSingle45 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 45, 20

ROOT PgSelectSingle{2}ᐸpersonᐳ[45]"):::bucket + class Bucket2,__Item90,PgSelectSingle91,PgCursor93,PgClassExpression94,PgClassExpression95,PgClassExpression96,PgClassExpression97,PgClassExpression98,PgClassExpression99,PgClassExpression100 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 113

ROOT __Item{3}ᐸ111ᐳ[136]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor47,PgClassExpression48,PgClassExpression49,PgClassExpression50,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 12, 61, 55, 6

ROOT Connectionᐸ59ᐳ[61]
1: PgSelect[62], PgSelect[85]
ᐳ: 63, 68, 78, 79, 80, 83, 84
2: PgSelectRows[66], PgSelectRows[87]
ᐳ: 65, 67, 69, 71, 73, 75, 86, 88, 89"):::bucket + class Bucket3,__Item136,PgSelectSingle137,PgCursor139,PgClassExpression140,PgClassExpression141,PgClassExpression142,PgClassExpression143,PgClassExpression144,PgClassExpression145,PgClassExpression146 bucket3 + Bucket4("Bucket 4 (listItem)
Deps: 163

ROOT __Item{4}ᐸ161ᐳ[186]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect62,PgPageInfo63,First65,PgSelectRows66,PgSelectSingle67,Access68,PgCursor69,Last71,PgSelectSingle73,PgCursor75,Access78,Object79,Lambda80,Object83,Lambda84,PgSelect85,First86,PgSelectRows87,PgSelectSingle88,PgClassExpression89 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 68

ROOT __Item{5}ᐸ66ᐳ[92]"):::bucket + class Bucket4,__Item186,PgSelectSingle187,PgCursor189,PgClassExpression190,PgClassExpression191,PgClassExpression192,PgClassExpression193,PgClassExpression194,PgClassExpression195,PgClassExpression196 bucket4 + Bucket5("Bucket 5 (listItem)
Deps: 211

ROOT __Item{5}ᐸ209ᐳ[234]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item92,PgSelectSingle93 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 93, 68

ROOT PgSelectSingle{5}ᐸpersonᐳ[93]"):::bucket + class Bucket5,__Item234,PgSelectSingle235,PgCursor237,PgClassExpression238,PgClassExpression239,PgClassExpression240,PgClassExpression241,PgClassExpression242,PgClassExpression243,PgClassExpression244 bucket5 + Bucket6("Bucket 6 (listItem)
Deps: 259

ROOT __Item{6}ᐸ257ᐳ[282]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,PgCursor95,PgClassExpression96,PgClassExpression97,PgClassExpression98,PgClassExpression99,PgClassExpression100,PgClassExpression101,PgClassExpression102 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 12, 108, 55, 6

ROOT Connectionᐸ106ᐳ[108]
1: PgSelect[109], PgSelect[132]
ᐳ: 110, 115, 125, 126, 127, 130, 131
2: PgSelectRows[113], PgSelectRows[134]
ᐳ: 112, 114, 116, 118, 120, 122, 133, 135, 136"):::bucket + class Bucket6,__Item282,PgSelectSingle283,PgCursor285,PgClassExpression286,PgClassExpression287,PgClassExpression288,PgClassExpression289,PgClassExpression290,PgClassExpression291,PgClassExpression292 bucket6 + Bucket7("Bucket 7 (listItem)
Deps: 306

ROOT __Item{7}ᐸ304ᐳ[329]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgSelect109,PgPageInfo110,First112,PgSelectRows113,PgSelectSingle114,Access115,PgCursor116,Last118,PgSelectSingle120,PgCursor122,Access125,Object126,Lambda127,Object130,Lambda131,PgSelect132,First133,PgSelectRows134,PgSelectSingle135,PgClassExpression136 bucket7 - Bucket8("Bucket 8 (listItem)
Deps: 115

ROOT __Item{8}ᐸ113ᐳ[139]"):::bucket + class Bucket7,__Item329,PgSelectSingle330,PgCursor332,PgClassExpression333,PgClassExpression334,PgClassExpression335,PgClassExpression336,PgClassExpression337,PgClassExpression338,PgClassExpression339 bucket7 + Bucket8("Bucket 8 (listItem)
Deps: 349

ROOT __Item{8}ᐸ346ᐳ[347]"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,__Item139,PgSelectSingle140 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 140, 115

ROOT PgSelectSingle{8}ᐸpersonᐳ[140]"):::bucket + class Bucket8,__Item347,PgSelectSingle348,PgCursor350,PgClassExpression351,PgClassExpression352,PgClassExpression353 bucket8 + Bucket9("Bucket 9 (listItem)
Deps: 363

ROOT __Item{9}ᐸ360ᐳ[361]"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,PgCursor142,PgClassExpression143,PgClassExpression144,PgClassExpression145,PgClassExpression146,PgClassExpression147,PgClassExpression148,PgClassExpression149 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 12, 157, 6

ROOT Connectionᐸ155ᐳ[157]
1: PgSelect[158], PgSelect[181]
ᐳ: 159, 164, 174, 175, 176, 179, 180
2: PgSelectRows[162], PgSelectRows[183]
ᐳ: 161, 163, 165, 167, 169, 171, 182, 184, 185"):::bucket + class Bucket9,__Item361,PgSelectSingle362,PgCursor364,PgClassExpression365,PgClassExpression366,PgClassExpression367 bucket9 + Bucket10("Bucket 10 (listItem)
Deps: 382

ROOT __Item{10}ᐸ380ᐳ[405]"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,PgSelect158,PgPageInfo159,First161,PgSelectRows162,PgSelectSingle163,Access164,PgCursor165,Last167,PgSelectSingle169,PgCursor171,Access174,Object175,Lambda176,Object179,Lambda180,PgSelect181,First182,PgSelectRows183,PgSelectSingle184,PgClassExpression185 bucket10 - Bucket11("Bucket 11 (listItem)
Deps: 164

ROOT __Item{11}ᐸ162ᐳ[188]"):::bucket + class Bucket10,__Item405,PgSelectSingle406,PgCursor408,PgClassExpression409,PgClassExpression410 bucket10 + Bucket11("Bucket 11 (listItem)
Deps: 426

ROOT __Item{11}ᐸ424ᐳ[449]"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11,__Item188,PgSelectSingle189 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 189, 164

ROOT PgSelectSingle{11}ᐸpersonᐳ[189]"):::bucket + class Bucket11,__Item449,PgSelectSingle450,PgCursor452,PgClassExpression453,PgClassExpression454 bucket11 + Bucket12("Bucket 12 (listItem)
Deps: 470

ROOT __Item{12}ᐸ468ᐳ[493]"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12,PgCursor191,PgClassExpression192,PgClassExpression193,PgClassExpression194,PgClassExpression195,PgClassExpression196,PgClassExpression197,PgClassExpression198 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 12, 205, 6

ROOT Connectionᐸ203ᐳ[205]
1: PgSelect[206], PgSelect[229]
ᐳ: 207, 212, 222, 223, 224, 227, 228
2: PgSelectRows[210], PgSelectRows[231]
ᐳ: 209, 211, 213, 215, 217, 219, 230, 232, 233"):::bucket + class Bucket12,__Item493,PgSelectSingle494,PgCursor496,PgClassExpression497,PgClassExpression498 bucket12 + Bucket13("Bucket 13 (listItem)
Deps: 512

ROOT __Item{13}ᐸ510ᐳ[535]"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13,PgSelect206,PgPageInfo207,First209,PgSelectRows210,PgSelectSingle211,Access212,PgCursor213,Last215,PgSelectSingle217,PgCursor219,Access222,Object223,Lambda224,Object227,Lambda228,PgSelect229,First230,PgSelectRows231,PgSelectSingle232,PgClassExpression233 bucket13 - Bucket14("Bucket 14 (listItem)
Deps: 212

ROOT __Item{14}ᐸ210ᐳ[236]"):::bucket + class Bucket13,__Item535,PgSelectSingle536,PgCursor538,PgClassExpression539,PgClassExpression540,PgClassExpression541,PgClassExpression542,PgClassExpression543,PgClassExpression544,PgClassExpression545 bucket13 + Bucket14("Bucket 14 (listItem)
Deps: 558

ROOT __Item{14}ᐸ556ᐳ[581]"):::bucket classDef bucket14 stroke:#a52a2a - class Bucket14,__Item236,PgSelectSingle237 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 237, 212

ROOT PgSelectSingle{14}ᐸpersonᐳ[237]"):::bucket + class Bucket14,__Item581,PgSelectSingle582,PgCursor584,PgClassExpression585,PgClassExpression586,PgClassExpression587,PgClassExpression588,PgClassExpression589,PgClassExpression590,PgClassExpression591 bucket14 + Bucket15("Bucket 15 (listItem)

ROOT __Item{15}ᐸ601ᐳ[602]"):::bucket classDef bucket15 stroke:#ff00ff - class Bucket15,PgCursor239,PgClassExpression240,PgClassExpression241,PgClassExpression242,PgClassExpression243,PgClassExpression244,PgClassExpression245,PgClassExpression246 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 12, 253, 254, 6

ROOT Connectionᐸ251ᐳ[253]
1: PgSelect[255], PgSelect[278]
ᐳ: 256, 261, 271, 272, 273, 276, 277
2: PgSelectRows[259], PgSelectRows[280]
ᐳ: 258, 260, 262, 264, 266, 268, 279, 281, 282"):::bucket + class Bucket15,__Item602,PgSelectSingle603,PgClassExpression604 bucket15 + Bucket16("Bucket 16 (listItem)
Deps: 621

ROOT __Item{16}ᐸ619ᐳ[644]"):::bucket classDef bucket16 stroke:#f5deb3 - class Bucket16,PgSelect255,PgPageInfo256,First258,PgSelectRows259,PgSelectSingle260,Access261,PgCursor262,Last264,PgSelectSingle266,PgCursor268,Access271,Object272,Lambda273,Object276,Lambda277,PgSelect278,First279,PgSelectRows280,PgSelectSingle281,PgClassExpression282 bucket16 - Bucket17("Bucket 17 (listItem)
Deps: 261

ROOT __Item{17}ᐸ259ᐳ[285]"):::bucket + class Bucket16,__Item644,PgSelectSingle645,PgCursor647,PgClassExpression648,PgClassExpression649,PgClassExpression650,PgClassExpression651,PgClassExpression652,PgClassExpression653,PgClassExpression654 bucket16 + Bucket17("Bucket 17 (listItem)
Deps: 669

ROOT __Item{17}ᐸ667ᐳ[692]"):::bucket classDef bucket17 stroke:#696969 - class Bucket17,__Item285,PgSelectSingle286 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 286, 261

ROOT PgSelectSingle{17}ᐸpersonᐳ[286]"):::bucket + class Bucket17,__Item692,PgSelectSingle693,PgCursor695,PgClassExpression696,PgClassExpression697,PgClassExpression698,PgClassExpression699,PgClassExpression700,PgClassExpression701,PgClassExpression702 bucket17 + Bucket18("Bucket 18 (listItem)
Deps: 717

ROOT __Item{18}ᐸ715ᐳ[740]"):::bucket classDef bucket18 stroke:#00bfff - class Bucket18,PgCursor288,PgClassExpression289,PgClassExpression290,PgClassExpression291,PgClassExpression292,PgClassExpression293,PgClassExpression294,PgClassExpression295 bucket18 - Bucket19("Bucket 19 (nullableBoundary)
Deps: 12, 301, 254, 6

ROOT Connectionᐸ299ᐳ[301]
1: PgSelect[303], PgSelect[326]
ᐳ: 304, 309, 319, 320, 321, 324, 325
2: PgSelectRows[307], PgSelectRows[328]
ᐳ: 306, 308, 310, 312, 314, 316, 327, 329, 330"):::bucket + class Bucket18,__Item740,PgSelectSingle741,PgCursor743,PgClassExpression744,PgClassExpression745,PgClassExpression746,PgClassExpression747,PgClassExpression748,PgClassExpression749,PgClassExpression750 bucket18 + Bucket19("Bucket 19 (listItem)
Deps: 764

ROOT __Item{19}ᐸ762ᐳ[787]"):::bucket classDef bucket19 stroke:#7f007f - class Bucket19,PgSelect303,PgPageInfo304,First306,PgSelectRows307,PgSelectSingle308,Access309,PgCursor310,Last312,PgSelectSingle314,PgCursor316,Access319,Object320,Lambda321,Object324,Lambda325,PgSelect326,First327,PgSelectRows328,PgSelectSingle329,PgClassExpression330 bucket19 - Bucket20("Bucket 20 (listItem)
Deps: 309

ROOT __Item{20}ᐸ307ᐳ[333]"):::bucket + class Bucket19,__Item787,PgSelectSingle788,PgCursor790,PgClassExpression791,PgClassExpression792,PgClassExpression793,PgClassExpression794,PgClassExpression795,PgClassExpression796,PgClassExpression797 bucket19 + Bucket20("Bucket 20 (listItem)
Deps: 810

ROOT __Item{20}ᐸ808ᐳ[833]"):::bucket classDef bucket20 stroke:#ffa500 - class Bucket20,__Item333,PgSelectSingle334 bucket20 - Bucket21("Bucket 21 (nullableBoundary)
Deps: 334, 309

ROOT PgSelectSingle{20}ᐸpersonᐳ[334]"):::bucket + class Bucket20,__Item833,PgSelectSingle834,PgCursor836,PgClassExpression837,PgClassExpression838 bucket20 + Bucket21("Bucket 21 (listItem)
Deps: 853

ROOT __Item{21}ᐸ851ᐳ[876]"):::bucket classDef bucket21 stroke:#0000ff - class Bucket21,PgCursor336,PgClassExpression337,PgClassExpression338,PgClassExpression339,PgClassExpression340,PgClassExpression341,PgClassExpression342,PgClassExpression343 bucket21 - Bucket22("Bucket 22 (nullableBoundary)
Deps: 12, 348

ROOT Connectionᐸ346ᐳ[348]
1: PgSelect[349]
ᐳ: Access[353]
2: PgSelectRows[350]"):::bucket + class Bucket21,__Item876,PgSelectSingle877,PgCursor879,PgClassExpression880,PgClassExpression881,PgClassExpression882,PgClassExpression883,PgClassExpression884,PgClassExpression885,PgClassExpression886 bucket21 + Bucket22("Bucket 22 (listItem)
Deps: 11, 916

ROOT __Item{22}ᐸ894ᐳ[895]
1:
ᐳ: 896, 897, 898, 907, 917, 918
2: PgSelect[899]
3: PgSelectRows[904]
ᐳ: 903, 905, 906, 913"):::bucket classDef bucket22 stroke:#7fff00 - class Bucket22,PgSelect349,PgSelectRows350,Access353 bucket22 - Bucket23("Bucket 23 (listItem)
Deps: 353

ROOT __Item{23}ᐸ350ᐳ[351]"):::bucket + class Bucket22,__Item895,PgSelectSingle896,PgClassExpression897,PgClassExpression898,PgSelect899,First903,PgSelectRows904,PgSelectSingle905,PgClassExpression906,PgClassExpression907,PgClassExpression913,List917,Lambda918 bucket22 + Bucket23("Bucket 23 (listItem)
Deps: 933

ROOT __Item{23}ᐸ931ᐳ[956]"):::bucket classDef bucket23 stroke:#ff1493 - class Bucket23,__Item351,PgSelectSingle352 bucket23 - Bucket24("Bucket 24 (nullableBoundary)
Deps: 352, 353

ROOT PgSelectSingle{23}ᐸupdatable_viewᐳ[352]"):::bucket + class Bucket23,__Item956,PgSelectSingle957,PgCursor959,PgClassExpression960,PgClassExpression961,PgClassExpression962,PgClassExpression963,PgClassExpression964,PgClassExpression965,PgClassExpression966 bucket23 + Bucket24("Bucket 24 (listItem)
Deps: 981

ROOT __Item{24}ᐸ979ᐳ[1004]"):::bucket classDef bucket24 stroke:#808000 - class Bucket24,PgCursor354,PgClassExpression355,PgClassExpression356,PgClassExpression357 bucket24 - Bucket25("Bucket 25 (nullableBoundary)
Deps: 12, 362

ROOT Connectionᐸ360ᐳ[362]
1: PgSelect[363]
ᐳ: Access[367]
2: PgSelectRows[364]"):::bucket + class Bucket24,__Item1004,PgSelectSingle1005,PgCursor1007,PgClassExpression1008,PgClassExpression1009,PgClassExpression1010,PgClassExpression1011,PgClassExpression1012,PgClassExpression1013,PgClassExpression1014 bucket24 + Bucket25("Bucket 25 (listItem)

ROOT __Item{25}ᐸ1021ᐳ[1022]"):::bucket classDef bucket25 stroke:#dda0dd - class Bucket25,PgSelect363,PgSelectRows364,Access367 bucket25 - Bucket26("Bucket 26 (listItem)
Deps: 367

ROOT __Item{26}ᐸ364ᐳ[365]"):::bucket - classDef bucket26 stroke:#ff0000 - class Bucket26,__Item365,PgSelectSingle366 bucket26 - Bucket27("Bucket 27 (nullableBoundary)
Deps: 366, 367

ROOT PgSelectSingle{26}ᐸupdatable_viewᐳ[366]"):::bucket - classDef bucket27 stroke:#ffff00 - class Bucket27,PgCursor368,PgClassExpression369,PgClassExpression370,PgClassExpression371 bucket27 - Bucket28("Bucket 28 (nullableBoundary)
Deps: 12, 55, 378, 6

ROOT Connectionᐸ376ᐳ[378]
1: PgSelect[379], PgSelect[402]
ᐳ: 380, 385, 395, 396, 397, 400, 401
2: PgSelectRows[383], PgSelectRows[404]
ᐳ: 382, 384, 386, 388, 390, 392, 403, 405, 406"):::bucket - classDef bucket28 stroke:#00ffff - class Bucket28,PgSelect379,PgPageInfo380,First382,PgSelectRows383,PgSelectSingle384,Access385,PgCursor386,Last388,PgSelectSingle390,PgCursor392,Access395,Object396,Lambda397,Object400,Lambda401,PgSelect402,First403,PgSelectRows404,PgSelectSingle405,PgClassExpression406 bucket28 - Bucket29("Bucket 29 (listItem)
Deps: 385

ROOT __Item{29}ᐸ383ᐳ[409]"):::bucket - classDef bucket29 stroke:#4169e1 - class Bucket29,__Item409,PgSelectSingle410 bucket29 - Bucket30("Bucket 30 (nullableBoundary)
Deps: 410, 385

ROOT PgSelectSingle{29}ᐸpostᐳ[410]"):::bucket - classDef bucket30 stroke:#3cb371 - class Bucket30,PgCursor412,PgClassExpression413,PgClassExpression414 bucket30 - Bucket31("Bucket 31 (nullableBoundary)
Deps: 12, 55, 422, 6

ROOT Connectionᐸ420ᐳ[422]
1: PgSelect[423], PgSelect[446]
ᐳ: 424, 429, 439, 440, 441, 444, 445
2: PgSelectRows[427], PgSelectRows[448]
ᐳ: 426, 428, 430, 432, 434, 436, 447, 449, 450"):::bucket - classDef bucket31 stroke:#a52a2a - class Bucket31,PgSelect423,PgPageInfo424,First426,PgSelectRows427,PgSelectSingle428,Access429,PgCursor430,Last432,PgSelectSingle434,PgCursor436,Access439,Object440,Lambda441,Object444,Lambda445,PgSelect446,First447,PgSelectRows448,PgSelectSingle449,PgClassExpression450 bucket31 - Bucket32("Bucket 32 (listItem)
Deps: 429

ROOT __Item{32}ᐸ427ᐳ[453]"):::bucket - classDef bucket32 stroke:#ff00ff - class Bucket32,__Item453,PgSelectSingle454 bucket32 - Bucket33("Bucket 33 (nullableBoundary)
Deps: 454, 429

ROOT PgSelectSingle{32}ᐸpostᐳ[454]"):::bucket - classDef bucket33 stroke:#f5deb3 - class Bucket33,PgCursor456,PgClassExpression457,PgClassExpression458 bucket33 - Bucket34("Bucket 34 (nullableBoundary)
Deps: 12, 1039, 466, 6

ROOT Connectionᐸ464ᐳ[466]
1: PgSelect[467], PgSelect[490]
ᐳ: 468, 473, 483, 484, 485, 488, 489
2: PgSelectRows[471], PgSelectRows[492]
ᐳ: 470, 472, 474, 476, 478, 480, 491, 493, 494"):::bucket - classDef bucket34 stroke:#696969 - class Bucket34,PgSelect467,PgPageInfo468,First470,PgSelectRows471,PgSelectSingle472,Access473,PgCursor474,Last476,PgSelectSingle478,PgCursor480,Access483,Object484,Lambda485,Object488,Lambda489,PgSelect490,First491,PgSelectRows492,PgSelectSingle493,PgClassExpression494 bucket34 - Bucket35("Bucket 35 (listItem)
Deps: 473

ROOT __Item{35}ᐸ471ᐳ[497]"):::bucket - classDef bucket35 stroke:#00bfff - class Bucket35,__Item497,PgSelectSingle498 bucket35 - Bucket36("Bucket 36 (nullableBoundary)
Deps: 498, 473

ROOT PgSelectSingle{35}ᐸpostᐳ[498]"):::bucket - classDef bucket36 stroke:#7f007f - class Bucket36,PgCursor500,PgClassExpression501,PgClassExpression502 bucket36 - Bucket37("Bucket 37 (nullableBoundary)
Deps: 12, 509, 1040, 1039, 6

ROOT Connectionᐸ507ᐳ[509]
1: PgSelect[510], PgSelect[533]
ᐳ: 511, 516, 526, 527, 528, 531, 532
2: PgSelectRows[514], PgSelectRows[535]
ᐳ: 513, 515, 517, 519, 521, 523, 534, 536, 537"):::bucket - classDef bucket37 stroke:#ffa500 - class Bucket37,PgSelect510,PgPageInfo511,First513,PgSelectRows514,PgSelectSingle515,Access516,PgCursor517,Last519,PgSelectSingle521,PgCursor523,Access526,Object527,Lambda528,Object531,Lambda532,PgSelect533,First534,PgSelectRows535,PgSelectSingle536,PgClassExpression537 bucket37 - Bucket38("Bucket 38 (listItem)
Deps: 516

ROOT __Item{38}ᐸ514ᐳ[540]"):::bucket - classDef bucket38 stroke:#0000ff - class Bucket38,__Item540,PgSelectSingle541 bucket38 - Bucket39("Bucket 39 (nullableBoundary)
Deps: 541, 516

ROOT PgSelectSingle{38}ᐸpersonᐳ[541]"):::bucket - classDef bucket39 stroke:#7fff00 - class Bucket39,PgCursor543,PgClassExpression544,PgClassExpression545,PgClassExpression546,PgClassExpression547,PgClassExpression548,PgClassExpression549,PgClassExpression550 bucket39 - Bucket40("Bucket 40 (nullableBoundary)
Deps: 12, 556, 1041, 6

ROOT Connectionᐸ554ᐳ[556]
1: PgSelect[557], PgSelect[580]
ᐳ: 558, 563, 573, 574, 575, 578, 579
2: PgSelectRows[561], PgSelectRows[582]
ᐳ: 560, 562, 564, 566, 568, 570, 581, 583, 584"):::bucket - classDef bucket40 stroke:#ff1493 - class Bucket40,PgSelect557,PgPageInfo558,First560,PgSelectRows561,PgSelectSingle562,Access563,PgCursor564,Last566,PgSelectSingle568,PgCursor570,Access573,Object574,Lambda575,Object578,Lambda579,PgSelect580,First581,PgSelectRows582,PgSelectSingle583,PgClassExpression584 bucket40 - Bucket41("Bucket 41 (listItem)
Deps: 563

ROOT __Item{41}ᐸ561ᐳ[587]"):::bucket - classDef bucket41 stroke:#808000 - class Bucket41,__Item587,PgSelectSingle588 bucket41 - Bucket42("Bucket 42 (nullableBoundary)
Deps: 588, 563

ROOT PgSelectSingle{41}ᐸpersonᐳ[588]"):::bucket - classDef bucket42 stroke:#dda0dd - class Bucket42,PgCursor590,PgClassExpression591,PgClassExpression592,PgClassExpression593,PgClassExpression594,PgClassExpression595,PgClassExpression596,PgClassExpression597 bucket42 - Bucket43("Bucket 43 (nullableBoundary)
Deps: 12, 1042, 604

ROOT Connectionᐸ602ᐳ[604]
1: PgSelect[605]
2: PgSelectRows[606]"):::bucket - classDef bucket43 stroke:#ff0000 - class Bucket43,PgSelect605,PgSelectRows606 bucket43 - Bucket44("Bucket 44 (listItem)

ROOT __Item{44}ᐸ606ᐳ[607]"):::bucket - classDef bucket44 stroke:#ffff00 - class Bucket44,__Item607,PgSelectSingle608 bucket44 - Bucket45("Bucket 45 (nullableBoundary)
Deps: 608

ROOT PgSelectSingle{44}ᐸedge_caseᐳ[608]"):::bucket - classDef bucket45 stroke:#00ffff - class Bucket45,PgClassExpression609 bucket45 - Bucket46("Bucket 46 (nullableBoundary)
Deps: 12, 619, 620, 1043, 1042, 6

ROOT Connectionᐸ617ᐳ[619]
1: PgSelect[621], PgSelect[644]
ᐳ: 622, 627, 636, 637, 638, 642, 643
2: PgSelectRows[625], PgSelectRows[646]
ᐳ: 624, 626, 628, 630, 632, 634, 645, 647, 648"):::bucket - classDef bucket46 stroke:#4169e1 - class Bucket46,PgSelect621,PgPageInfo622,First624,PgSelectRows625,PgSelectSingle626,Access627,PgCursor628,Last630,PgSelectSingle632,PgCursor634,Access636,Object637,Lambda638,Object642,Lambda643,PgSelect644,First645,PgSelectRows646,PgSelectSingle647,PgClassExpression648 bucket46 - Bucket47("Bucket 47 (listItem)
Deps: 627

ROOT __Item{47}ᐸ625ᐳ[651]"):::bucket - classDef bucket47 stroke:#3cb371 - class Bucket47,__Item651,PgSelectSingle652 bucket47 - Bucket48("Bucket 48 (nullableBoundary)
Deps: 652, 627

ROOT PgSelectSingle{47}ᐸpersonᐳ[652]"):::bucket - classDef bucket48 stroke:#a52a2a - class Bucket48,PgCursor654,PgClassExpression655,PgClassExpression656,PgClassExpression657,PgClassExpression658,PgClassExpression659,PgClassExpression660,PgClassExpression661 bucket48 - Bucket49("Bucket 49 (nullableBoundary)
Deps: 12, 668, 254, 1039, 6

ROOT Connectionᐸ666ᐳ[668]
1: PgSelect[670], PgSelect[693]
ᐳ: 671, 676, 686, 687, 688, 691, 692
2: PgSelectRows[674], PgSelectRows[695]
ᐳ: 673, 675, 677, 679, 681, 683, 694, 696, 697"):::bucket - classDef bucket49 stroke:#ff00ff - class Bucket49,PgSelect670,PgPageInfo671,First673,PgSelectRows674,PgSelectSingle675,Access676,PgCursor677,Last679,PgSelectSingle681,PgCursor683,Access686,Object687,Lambda688,Object691,Lambda692,PgSelect693,First694,PgSelectRows695,PgSelectSingle696,PgClassExpression697 bucket49 - Bucket50("Bucket 50 (listItem)
Deps: 676

ROOT __Item{50}ᐸ674ᐳ[700]"):::bucket - classDef bucket50 stroke:#f5deb3 - class Bucket50,__Item700,PgSelectSingle701 bucket50 - Bucket51("Bucket 51 (nullableBoundary)
Deps: 701, 676

ROOT PgSelectSingle{50}ᐸpersonᐳ[701]"):::bucket - classDef bucket51 stroke:#696969 - class Bucket51,PgCursor703,PgClassExpression704,PgClassExpression705,PgClassExpression706,PgClassExpression707,PgClassExpression708,PgClassExpression709,PgClassExpression710 bucket51 - Bucket52("Bucket 52 (nullableBoundary)
Deps: 12, 717, 254, 1039, 6

ROOT Connectionᐸ715ᐳ[717]
1: PgSelect[719], PgSelect[742]
ᐳ: 720, 725, 735, 736, 737, 740, 741
2: PgSelectRows[723], PgSelectRows[744]
ᐳ: 722, 724, 726, 728, 730, 732, 743, 745, 746"):::bucket - classDef bucket52 stroke:#00bfff - class Bucket52,PgSelect719,PgPageInfo720,First722,PgSelectRows723,PgSelectSingle724,Access725,PgCursor726,Last728,PgSelectSingle730,PgCursor732,Access735,Object736,Lambda737,Object740,Lambda741,PgSelect742,First743,PgSelectRows744,PgSelectSingle745,PgClassExpression746 bucket52 - Bucket53("Bucket 53 (listItem)
Deps: 725

ROOT __Item{53}ᐸ723ᐳ[749]"):::bucket - classDef bucket53 stroke:#7f007f - class Bucket53,__Item749,PgSelectSingle750 bucket53 - Bucket54("Bucket 54 (nullableBoundary)
Deps: 750, 725

ROOT PgSelectSingle{53}ᐸpersonᐳ[750]"):::bucket - classDef bucket54 stroke:#ffa500 - class Bucket54,PgCursor752,PgClassExpression753,PgClassExpression754,PgClassExpression755,PgClassExpression756,PgClassExpression757,PgClassExpression758,PgClassExpression759 bucket54 - Bucket55("Bucket 55 (nullableBoundary)
Deps: 12, 766, 6

ROOT Connectionᐸ764ᐳ[766]
1: PgSelect[767], PgSelect[790]
ᐳ: 768, 773, 783, 784, 785, 788, 789
2: PgSelectRows[771], PgSelectRows[792]
ᐳ: 770, 772, 774, 776, 778, 780, 791, 793, 794"):::bucket - classDef bucket55 stroke:#0000ff - class Bucket55,PgSelect767,PgPageInfo768,First770,PgSelectRows771,PgSelectSingle772,Access773,PgCursor774,Last776,PgSelectSingle778,PgCursor780,Access783,Object784,Lambda785,Object788,Lambda789,PgSelect790,First791,PgSelectRows792,PgSelectSingle793,PgClassExpression794 bucket55 - Bucket56("Bucket 56 (listItem)
Deps: 773

ROOT __Item{56}ᐸ771ᐳ[797]"):::bucket - classDef bucket56 stroke:#7fff00 - class Bucket56,__Item797,PgSelectSingle798 bucket56 - Bucket57("Bucket 57 (nullableBoundary)
Deps: 798, 773

ROOT PgSelectSingle{56}ᐸpersonᐳ[798]"):::bucket - classDef bucket57 stroke:#ff1493 - class Bucket57,PgCursor800,PgClassExpression801,PgClassExpression802,PgClassExpression803,PgClassExpression804,PgClassExpression805,PgClassExpression806,PgClassExpression807 bucket57 - Bucket58("Bucket 58 (nullableBoundary)
Deps: 12, 814, 1040, 6

ROOT Connectionᐸ812ᐳ[814]
1: PgSelect[815], PgSelect[838]
ᐳ: 816, 821, 831, 832, 833, 836, 837
2: PgSelectRows[819], PgSelectRows[840]
ᐳ: 818, 820, 822, 824, 826, 828, 839, 841, 842"):::bucket - classDef bucket58 stroke:#808000 - class Bucket58,PgSelect815,PgPageInfo816,First818,PgSelectRows819,PgSelectSingle820,Access821,PgCursor822,Last824,PgSelectSingle826,PgCursor828,Access831,Object832,Lambda833,Object836,Lambda837,PgSelect838,First839,PgSelectRows840,PgSelectSingle841,PgClassExpression842 bucket58 - Bucket59("Bucket 59 (listItem)
Deps: 821

ROOT __Item{59}ᐸ819ᐳ[845]"):::bucket - classDef bucket59 stroke:#dda0dd - class Bucket59,__Item845,PgSelectSingle846 bucket59 - Bucket60("Bucket 60 (nullableBoundary)
Deps: 846, 821

ROOT PgSelectSingle{59}ᐸpostᐳ[846]"):::bucket - classDef bucket60 stroke:#ff0000 - class Bucket60,PgCursor848,PgClassExpression849,PgClassExpression850 bucket60 - Bucket61("Bucket 61 (nullableBoundary)
Deps: 12, 1044, 857, 6

ROOT Connectionᐸ855ᐳ[857]
1: PgSelect[858], PgSelect[881]
ᐳ: 859, 864, 874, 875, 876, 879, 880
2: PgSelectRows[862], PgSelectRows[883]
ᐳ: 861, 863, 865, 867, 869, 871, 882, 884, 885"):::bucket - classDef bucket61 stroke:#ffff00 - class Bucket61,PgSelect858,PgPageInfo859,First861,PgSelectRows862,PgSelectSingle863,Access864,PgCursor865,Last867,PgSelectSingle869,PgCursor871,Access874,Object875,Lambda876,Object879,Lambda880,PgSelect881,First882,PgSelectRows883,PgSelectSingle884,PgClassExpression885 bucket61 - Bucket62("Bucket 62 (listItem)
Deps: 864

ROOT __Item{62}ᐸ862ᐳ[888]"):::bucket - classDef bucket62 stroke:#00ffff - class Bucket62,__Item888,PgSelectSingle889 bucket62 - Bucket63("Bucket 63 (nullableBoundary)
Deps: 889, 864

ROOT PgSelectSingle{62}ᐸpersonᐳ[889]"):::bucket - classDef bucket63 stroke:#4169e1 - class Bucket63,PgCursor891,PgClassExpression892,PgClassExpression893,PgClassExpression894,PgClassExpression895,PgClassExpression896,PgClassExpression897,PgClassExpression898 bucket63 - Bucket64("Bucket 64 (nullableBoundary)
Deps: 12, 904, 1042, 928

ROOT Connectionᐸ902ᐳ[904]
1: PgSelect[905]
2: PgSelectRows[906]"):::bucket - classDef bucket64 stroke:#3cb371 - class Bucket64,PgSelect905,PgSelectRows906 bucket64 - Bucket65("Bucket 65 (listItem)
Deps: 12, 928

ROOT __Item{65}ᐸ906ᐳ[907]"):::bucket - classDef bucket65 stroke:#a52a2a - class Bucket65,__Item907,PgSelectSingle908 bucket65 - Bucket66("Bucket 66 (nullableBoundary)
Deps: 908, 12

ROOT PgSelectSingle{65}ᐸpostᐳ[908]
1:
ᐳ: 909, 910, 919
2: PgSelect[911]
3: PgSelectRows[916]
ᐳ: First[915], PgSelectSingle[917]"):::bucket - classDef bucket66 stroke:#ff00ff - class Bucket66,PgClassExpression909,PgClassExpression910,PgSelect911,First915,PgSelectRows916,PgSelectSingle917,PgClassExpression919 bucket66 - Bucket67("Bucket 67 (nullableBoundary)
Deps: 917

ROOT PgSelectSingle{66}ᐸpersonᐳ[917]"):::bucket - classDef bucket67 stroke:#f5deb3 - class Bucket67,PgClassExpression918,PgClassExpression925 bucket67 - Bucket68("Bucket 68 (nullableBoundary)
Deps: 908, 928

ROOT PgSelectSingle{65}ᐸpostᐳ[908]"):::bucket - classDef bucket68 stroke:#696969 - class Bucket68,PgClassExpression929,List930,Lambda931 bucket68 - Bucket69("Bucket 69 (nullableBoundary)
Deps: 12, 1045, 938, 6

ROOT Connectionᐸ936ᐳ[938]
1: PgSelect[939], PgSelect[962]
ᐳ: 940, 945, 955, 956, 957, 960, 961
2: PgSelectRows[943], PgSelectRows[964]
ᐳ: 942, 944, 946, 948, 950, 952, 963, 965, 966"):::bucket - classDef bucket69 stroke:#00bfff - class Bucket69,PgSelect939,PgPageInfo940,First942,PgSelectRows943,PgSelectSingle944,Access945,PgCursor946,Last948,PgSelectSingle950,PgCursor952,Access955,Object956,Lambda957,Object960,Lambda961,PgSelect962,First963,PgSelectRows964,PgSelectSingle965,PgClassExpression966 bucket69 - Bucket70("Bucket 70 (listItem)
Deps: 945

ROOT __Item{70}ᐸ943ᐳ[969]"):::bucket - classDef bucket70 stroke:#7f007f - class Bucket70,__Item969,PgSelectSingle970 bucket70 - Bucket71("Bucket 71 (nullableBoundary)
Deps: 970, 945

ROOT PgSelectSingle{70}ᐸpersonᐳ[970]"):::bucket - classDef bucket71 stroke:#ffa500 - class Bucket71,PgCursor972,PgClassExpression973,PgClassExpression974,PgClassExpression975,PgClassExpression976,PgClassExpression977,PgClassExpression978,PgClassExpression979 bucket71 - Bucket72("Bucket 72 (nullableBoundary)
Deps: 12, 1046, 986, 6

ROOT Connectionᐸ984ᐳ[986]
1: PgSelect[987], PgSelect[1010]
ᐳ: 988, 993, 1003, 1004, 1005, 1008, 1009
2: PgSelectRows[991], PgSelectRows[1012]
ᐳ: 990, 992, 994, 996, 998, 1000, 1011, 1013, 1014"):::bucket - classDef bucket72 stroke:#0000ff - class Bucket72,PgSelect987,PgPageInfo988,First990,PgSelectRows991,PgSelectSingle992,Access993,PgCursor994,Last996,PgSelectSingle998,PgCursor1000,Access1003,Object1004,Lambda1005,Object1008,Lambda1009,PgSelect1010,First1011,PgSelectRows1012,PgSelectSingle1013,PgClassExpression1014 bucket72 - Bucket73("Bucket 73 (listItem)
Deps: 993

ROOT __Item{73}ᐸ991ᐳ[1017]"):::bucket - classDef bucket73 stroke:#7fff00 - class Bucket73,__Item1017,PgSelectSingle1018 bucket73 - Bucket74("Bucket 74 (nullableBoundary)
Deps: 1018, 993

ROOT PgSelectSingle{73}ᐸpersonᐳ[1018]"):::bucket - classDef bucket74 stroke:#ff1493 - class Bucket74,PgCursor1020,PgClassExpression1021,PgClassExpression1022,PgClassExpression1023,PgClassExpression1024,PgClassExpression1025,PgClassExpression1026,PgClassExpression1027 bucket74 - Bucket75("Bucket 75 (nullableBoundary)
Deps: 12, 1032

ROOT Connectionᐸ1030ᐳ[1032]
1: PgSelect[1033]
2: PgSelectRows[1034]"):::bucket - classDef bucket75 stroke:#808000 - class Bucket75,PgSelect1033,PgSelectRows1034 bucket75 - Bucket76("Bucket 76 (listItem)

ROOT __Item{76}ᐸ1034ᐳ[1035]"):::bucket - classDef bucket76 stroke:#dda0dd - class Bucket76,__Item1035,PgSelectSingle1036 bucket76 - Bucket77("Bucket 77 (nullableBoundary)
Deps: 1036

ROOT PgSelectSingle{76}ᐸnull_test_recordᐳ[1036]"):::bucket - classDef bucket77 stroke:#ff0000 - class Bucket77,PgClassExpression1037,PgClassExpression1038 bucket77 - Bucket0 --> Bucket1 & Bucket4 & Bucket7 & Bucket10 & Bucket13 & Bucket16 & Bucket19 & Bucket22 & Bucket25 & Bucket28 & Bucket31 & Bucket34 & Bucket37 & Bucket40 & Bucket43 & Bucket46 & Bucket49 & Bucket52 & Bucket55 & Bucket58 & Bucket61 & Bucket64 & Bucket69 & Bucket72 & Bucket75 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 - Bucket10 --> Bucket11 - Bucket11 --> Bucket12 - Bucket13 --> Bucket14 - Bucket14 --> Bucket15 - Bucket16 --> Bucket17 - Bucket17 --> Bucket18 - Bucket19 --> Bucket20 - Bucket20 --> Bucket21 - Bucket22 --> Bucket23 - Bucket23 --> Bucket24 - Bucket25 --> Bucket26 - Bucket26 --> Bucket27 - Bucket28 --> Bucket29 - Bucket29 --> Bucket30 - Bucket31 --> Bucket32 - Bucket32 --> Bucket33 - Bucket34 --> Bucket35 - Bucket35 --> Bucket36 - Bucket37 --> Bucket38 - Bucket38 --> Bucket39 - Bucket40 --> Bucket41 - Bucket41 --> Bucket42 - Bucket43 --> Bucket44 - Bucket44 --> Bucket45 - Bucket46 --> Bucket47 - Bucket47 --> Bucket48 - Bucket49 --> Bucket50 - Bucket50 --> Bucket51 - Bucket52 --> Bucket53 - Bucket53 --> Bucket54 - Bucket55 --> Bucket56 - Bucket56 --> Bucket57 - Bucket58 --> Bucket59 - Bucket59 --> Bucket60 - Bucket61 --> Bucket62 - Bucket62 --> Bucket63 - Bucket64 --> Bucket65 - Bucket65 --> Bucket66 & Bucket68 - Bucket66 --> Bucket67 - Bucket69 --> Bucket70 - Bucket70 --> Bucket71 - Bucket72 --> Bucket73 - Bucket73 --> Bucket74 - Bucket75 --> Bucket76 - Bucket76 --> Bucket77 + class Bucket25,__Item1022,PgSelectSingle1023,PgClassExpression1024,PgClassExpression1025 bucket25 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 & Bucket11 & Bucket12 & Bucket13 & Bucket14 & Bucket15 & Bucket16 & Bucket17 & Bucket18 & Bucket19 & Bucket20 & Bucket21 & Bucket22 & Bucket23 & Bucket24 & Bucket25 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/d.filter.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/d.filter.mermaid index 2290fdb2bc..2cb1767892 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/d.filter.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/d.filter.mermaid @@ -9,59 +9,56 @@ graph TD %% plan dependencies - Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access12 & Access13 --> Object14 + PgSelect17[["PgSelect[17∈0] ➊
ᐸpersonᐳ"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + ApplyInput16{{"ApplyInput[16∈0] ➊"}}:::plan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + ApplyInput16 -->|rejectNull| PgSelect17 + Object13 & Connection14 --> PgSelect17 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + Constant30{{"Constant[30∈0] ➊
ᐸ'col_no_create1'ᐳ"}}:::plan + Constant30 --> __InputObject8 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access11 __Value2 --> Access12 - __Value2 --> Access13 + __InputObject8 --> ApplyInput16 + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelect17 --> PgSelectRows18 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant29{{"Constant[29∈0] ➊
ᐸ'col_no_create1'ᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸpersonᐳ"]]:::plan - Object14 & Constant29 & Connection15 --> PgSelect16 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸpersonᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__person__.”first_name”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__person__.”last_name”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__person__...no_create”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__person__...no_update”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__person__..._no_order”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3]
ᐸ__person__...no_filter”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression26 - PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__person__...te_update”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression27 - PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ__person__...er_filter”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression28 + __Item19[/"__Item[19∈1]
ᐸ18ᐳ"\]:::itemplan + PgSelectRows18 ==> __Item19 + PgSelectSingle20{{"PgSelectSingle[20∈1]
ᐸpersonᐳ"}}:::plan + __Item19 --> PgSelectSingle20 + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression21 + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__person__.”first_name”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression22 + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__person__.”last_name”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__person__...no_create”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__person__...no_update”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression25 + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__person__..._no_order”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression26 + PgClassExpression27{{"PgClassExpression[27∈1]
ᐸ__person__...no_filter”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression27 + PgClassExpression28{{"PgClassExpression[28∈1]
ᐸ__person__...te_update”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression28 + PgClassExpression29{{"PgClassExpression[29∈1]
ᐸ__person__...er_filter”ᐳ"}}:::plan + PgSelectSingle20 --> PgClassExpression29 %% define steps subgraph "Buckets for queries/v4/d.filter" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 11, 12, 30, 8, 13, 14, 16
2: PgSelect[17]
3: PgSelectRows[18]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access12,Access13,Object14,Connection15,Constant29 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 29, 15

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[16]
2: PgSelectRows[17]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject8,Access11,Access12,Object13,Connection14,ApplyInput16,PgSelect17,PgSelectRows18,Constant30 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ18ᐳ[19]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19

ROOT PgSelectSingle{2}ᐸpersonᐳ[19]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgClassExpression28 bucket3 + class Bucket1,__Item19,PgSelectSingle20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression27,PgClassExpression28,PgClassExpression29 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/d.order.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/d.order.mermaid index 9484d44219..76d74421df 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/d.order.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/d.order.mermaid @@ -9,58 +9,51 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸpersonᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸpersonᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸpersonᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸpersonᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__person__.”id”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__person__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__person__.”first_name”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__person__.”first_name”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__person__.”last_name”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__person__.”last_name”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__person__...no_create”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__person__...no_create”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__person__...no_update”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__person__...no_update”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__person__..._no_order”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__person__..._no_order”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__person__...no_filter”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__person__...no_filter”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__person__...te_update”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__person__...te_update”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3]
ᐸ__person__...er_filter”ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__person__...er_filter”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression26 %% define steps subgraph "Buckets for queries/v4/d.order" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 11, 12
2: PgSelect[14]
3: PgSelectRows[15]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17

ROOT PgSelectSingle{2}ᐸpersonᐳ[17]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26 bucket3 + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/dynamic-json.condition-json-field-variable.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/dynamic-json.condition-json-field-variable.mermaid index fb7777e58a..1cd998290f 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/dynamic-json.condition-json-field-variable.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/dynamic-json.condition-json-field-variable.mermaid @@ -9,100 +9,91 @@ graph TD %% plan dependencies - Object16{{"Object[16∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access14{{"Access[14∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access15{{"Access[15∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access14 & Access15 --> Object16 - __InputDynamicScalar10{{"__InputDynamicScalar[10∈0] ➊"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ0.myValᐳ"}}:::plan - Access11 --> __InputDynamicScalar10 + PgSelect19[["PgSelect[19∈0] ➊
ᐸmy_tableᐳ"]]:::plan + Object15{{"Object[15∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + ApplyInput18{{"ApplyInput[18∈0] ➊"}}:::plan + Connection16{{"Connection[16∈0] ➊
ᐸ12ᐳ"}}:::plan + ApplyInput18 -->|rejectNull| PgSelect19 + Object15 & Connection16 --> PgSelect19 + PgSelect33[["PgSelect[33∈0] ➊
ᐸmy_tableᐳ"]]:::plan + ApplyInput32{{"ApplyInput[32∈0] ➊"}}:::plan + Connection30{{"Connection[30∈0] ➊
ᐸ28ᐳ"}}:::plan + ApplyInput32 -->|rejectNull| PgSelect33 + Object15 & Connection30 --> PgSelect33 + PgSelect48[["PgSelect[48∈0] ➊
ᐸmy_tableᐳ"]]:::plan + ApplyInput47{{"ApplyInput[47∈0] ➊"}}:::plan + Connection45{{"Connection[45∈0] ➊
ᐸ43ᐳ"}}:::plan + ApplyInput47 -->|rejectNull| PgSelect48 + Object15 & Connection45 --> PgSelect48 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan + __InputDynamicScalar9{{"__InputDynamicScalar[9∈0] ➊"}}:::plan + __InputDynamicScalar9 --> __InputObject8 + Access13{{"Access[13∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access14{{"Access[14∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access13 & Access14 --> Object15 + __InputObject26{{"__InputObject[26∈0] ➊"}}:::plan + __InputDynamicScalar27{{"__InputDynamicScalar[27∈0] ➊"}}:::plan + __InputDynamicScalar27 --> __InputObject26 + __InputObject40{{"__InputObject[40∈0] ➊"}}:::plan + Access41{{"Access[41∈0] ➊
ᐸ0.myVal2ᐳ"}}:::plan + Access41 --> __InputObject40 + Access10{{"Access[10∈0] ➊
ᐸ0.myValᐳ"}}:::plan + Access10 --> __InputDynamicScalar9 __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan - __Value0 --> Access11 + __Value0 --> Access10 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access13 __Value2 --> Access14 - __Value2 --> Access15 - Access40{{"Access[40∈0] ➊
ᐸ0.myVal2ᐳ"}}:::plan - __Value0 --> Access40 + __InputObject8 --> ApplyInput18 + PgSelectRows20[["PgSelectRows[20∈0] ➊"]]:::plan + PgSelect19 --> PgSelectRows20 + __InputObject26 --> ApplyInput32 + PgSelectRows34[["PgSelectRows[34∈0] ➊"]]:::plan + PgSelect33 --> PgSelectRows34 + __Value0 --> Access41 + __InputObject40 --> ApplyInput47 + PgSelectRows49[["PgSelectRows[49∈0] ➊"]]:::plan + PgSelect48 --> PgSelectRows49 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection17{{"Connection[17∈0] ➊
ᐸ13ᐳ"}}:::plan - __InputDynamicScalar27{{"__InputDynamicScalar[27∈0] ➊"}}:::plan - Connection30{{"Connection[30∈0] ➊
ᐸ28ᐳ"}}:::plan - Connection44{{"Connection[44∈0] ➊
ᐸ42ᐳ"}}:::plan - PgSelect18[["PgSelect[18∈1] ➊
ᐸmy_tableᐳ"]]:::plan - Object16 & __InputDynamicScalar10 & Connection17 --> PgSelect18 - PgSelectRows19[["PgSelectRows[19∈1] ➊"]]:::plan - PgSelect18 --> PgSelectRows19 - __Item20[/"__Item[20∈2]
ᐸ19ᐳ"\]:::itemplan - PgSelectRows19 ==> __Item20 - PgSelectSingle21{{"PgSelectSingle[21∈2]
ᐸmy_tableᐳ"}}:::plan - __Item20 --> PgSelectSingle21 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__my_table__.”id”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__my_table...json_data”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression23 - PgSelect31[["PgSelect[31∈4] ➊
ᐸmy_tableᐳ"]]:::plan - Object16 & __InputDynamicScalar27 & Connection30 --> PgSelect31 - PgSelectRows32[["PgSelectRows[32∈4] ➊"]]:::plan - PgSelect31 --> PgSelectRows32 - __Item33[/"__Item[33∈5]
ᐸ32ᐳ"\]:::itemplan - PgSelectRows32 ==> __Item33 - PgSelectSingle34{{"PgSelectSingle[34∈5]
ᐸmy_tableᐳ"}}:::plan - __Item33 --> PgSelectSingle34 - PgClassExpression35{{"PgClassExpression[35∈6]
ᐸ__my_table__.”id”ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈6]
ᐸ__my_table...json_data”ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression36 - PgSelect45[["PgSelect[45∈7] ➊
ᐸmy_tableᐳ"]]:::plan - Object16 & Access40 & Connection44 --> PgSelect45 - PgSelectRows46[["PgSelectRows[46∈7] ➊"]]:::plan - PgSelect45 --> PgSelectRows46 - __Item47[/"__Item[47∈8]
ᐸ46ᐳ"\]:::itemplan - PgSelectRows46 ==> __Item47 - PgSelectSingle48{{"PgSelectSingle[48∈8]
ᐸmy_tableᐳ"}}:::plan - __Item47 --> PgSelectSingle48 - PgClassExpression49{{"PgClassExpression[49∈9]
ᐸ__my_table__.”id”ᐳ"}}:::plan - PgSelectSingle48 --> PgClassExpression49 - PgClassExpression50{{"PgClassExpression[50∈9]
ᐸ__my_table...json_data”ᐳ"}}:::plan - PgSelectSingle48 --> PgClassExpression50 + __Item21[/"__Item[21∈1]
ᐸ20ᐳ"\]:::itemplan + PgSelectRows20 ==> __Item21 + PgSelectSingle22{{"PgSelectSingle[22∈1]
ᐸmy_tableᐳ"}}:::plan + __Item21 --> PgSelectSingle22 + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__my_table__.”id”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__my_table...json_data”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression24 + __Item35[/"__Item[35∈2]
ᐸ34ᐳ"\]:::itemplan + PgSelectRows34 ==> __Item35 + PgSelectSingle36{{"PgSelectSingle[36∈2]
ᐸmy_tableᐳ"}}:::plan + __Item35 --> PgSelectSingle36 + PgClassExpression37{{"PgClassExpression[37∈2]
ᐸ__my_table__.”id”ᐳ"}}:::plan + PgSelectSingle36 --> PgClassExpression37 + PgClassExpression38{{"PgClassExpression[38∈2]
ᐸ__my_table...json_data”ᐳ"}}:::plan + PgSelectSingle36 --> PgClassExpression38 + __Item50[/"__Item[50∈3]
ᐸ49ᐳ"\]:::itemplan + PgSelectRows49 ==> __Item50 + PgSelectSingle51{{"PgSelectSingle[51∈3]
ᐸmy_tableᐳ"}}:::plan + __Item50 --> PgSelectSingle51 + PgClassExpression52{{"PgClassExpression[52∈3]
ᐸ__my_table__.”id”ᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression52 + PgClassExpression53{{"PgClassExpression[53∈3]
ᐸ__my_table...json_data”ᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression53 %% define steps subgraph "Buckets for queries/v4/dynamic-json.condition-json-field-variable" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 10, 13, 14, 27, 41, 9, 15, 16, 26, 30, 32, 40, 45, 47, 8, 18
2: 19, 33, 48
3: 20, 34, 49"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,__InputDynamicScalar10,Access11,Access14,Access15,Object16,Connection17,__InputDynamicScalar27,Connection30,Access40,Connection44 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 16, 10, 17

ROOT Connectionᐸ13ᐳ[17]
1: PgSelect[18]
2: PgSelectRows[19]"):::bucket + class Bucket0,__Value0,__Value2,__Value4,__InputObject8,__InputDynamicScalar9,Access10,Access13,Access14,Object15,Connection16,ApplyInput18,PgSelect19,PgSelectRows20,__InputObject26,__InputDynamicScalar27,Connection30,ApplyInput32,PgSelect33,PgSelectRows34,__InputObject40,Access41,Connection45,ApplyInput47,PgSelect48,PgSelectRows49 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ20ᐳ[21]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect18,PgSelectRows19 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ19ᐳ[20]"):::bucket + class Bucket1,__Item21,PgSelectSingle22,PgClassExpression23,PgClassExpression24 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ34ᐳ[35]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item20,PgSelectSingle21 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 21

ROOT PgSelectSingle{2}ᐸmy_tableᐳ[21]"):::bucket + class Bucket2,__Item35,PgSelectSingle36,PgClassExpression37,PgClassExpression38 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ49ᐳ[50]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression22,PgClassExpression23 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 16, 27, 30

ROOT Connectionᐸ28ᐳ[30]
1: PgSelect[31]
2: PgSelectRows[32]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect31,PgSelectRows32 bucket4 - Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ32ᐳ[33]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item33,PgSelectSingle34 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 34

ROOT PgSelectSingle{5}ᐸmy_tableᐳ[34]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression35,PgClassExpression36 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 16, 40, 44

ROOT Connectionᐸ42ᐳ[44]
1: PgSelect[45]
2: PgSelectRows[46]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgSelect45,PgSelectRows46 bucket7 - Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ46ᐳ[47]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,__Item47,PgSelectSingle48 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 48

ROOT PgSelectSingle{8}ᐸmy_tableᐳ[48]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression49,PgClassExpression50 bucket9 - Bucket0 --> Bucket1 & Bucket4 & Bucket7 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 + class Bucket3,__Item50,PgSelectSingle51,PgClassExpression52,PgClassExpression53 bucket3 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/dynamic-json.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/dynamic-json.mermaid index 14cdf5364f..a80c152685 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/dynamic-json.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/dynamic-json.mermaid @@ -9,176 +9,193 @@ graph TD %% plan dependencies - PgSelect7[["PgSelect[7∈0] ➊
ᐸjson_identityᐳ"]]:::plan + PgSelect110[["PgSelect[110∈0] ➊
ᐸtypesᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant104{{"Constant[104∈0] ➊
ᐸtrueᐳ"}}:::plan - Object10 & Constant104 --> PgSelect7 + Connection108{{"Connection[108∈0] ➊
ᐸ106ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect110 + Connection108 --> PgSelect110 + PgSelect7[["PgSelect[7∈0] ➊
ᐸjson_identityᐳ"]]:::plan + PgFromExpression11{{"PgFromExpression[11∈0] ➊"}}:::plan + Object10 & PgFromExpression11 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 - PgSelect16[["PgSelect[16∈0] ➊
ᐸjson_identityᐳ"]]:::plan - Constant105{{"Constant[105∈0] ➊
ᐸfalseᐳ"}}:::plan - Object10 & Constant105 --> PgSelect16 - PgSelect23[["PgSelect[23∈0] ➊
ᐸjson_identityᐳ"]]:::plan - Constant106{{"Constant[106∈0] ➊
ᐸ42ᐳ"}}:::plan - Object10 & Constant106 --> PgSelect23 - PgSelect30[["PgSelect[30∈0] ➊
ᐸjson_identityᐳ"]]:::plan - Constant107{{"Constant[107∈0] ➊
ᐸ3.1415ᐳ"}}:::plan - Object10 & Constant107 --> PgSelect30 - PgSelect37[["PgSelect[37∈0] ➊
ᐸjson_identityᐳ"]]:::plan - Constant108{{"Constant[108∈0] ➊
ᐸ'hello, world!'ᐳ"}}:::plan - Object10 & Constant108 --> PgSelect37 - PgSelect44[["PgSelect[44∈0] ➊
ᐸjson_identityᐳ"]]:::plan - __InputDynamicScalar43{{"__InputDynamicScalar[43∈0] ➊"}}:::plan - Object10 & __InputDynamicScalar43 --> PgSelect44 - PgSelect51[["PgSelect[51∈0] ➊
ᐸjson_identityᐳ"]]:::plan - __InputDynamicScalar50{{"__InputDynamicScalar[50∈0] ➊"}}:::plan - Object10 & __InputDynamicScalar50 --> PgSelect51 - PgSelect58[["PgSelect[58∈0] ➊
ᐸjson_identityᐳ"]]:::plan - __InputDynamicScalar57{{"__InputDynamicScalar[57∈0] ➊"}}:::plan - Object10 & __InputDynamicScalar57 --> PgSelect58 + PgSelect17[["PgSelect[17∈0] ➊
ᐸjson_identityᐳ"]]:::plan + PgFromExpression19{{"PgFromExpression[19∈0] ➊"}}:::plan + Object10 & PgFromExpression19 --> PgSelect17 + PgSelect25[["PgSelect[25∈0] ➊
ᐸjson_identityᐳ"]]:::plan + PgFromExpression27{{"PgFromExpression[27∈0] ➊"}}:::plan + Object10 & PgFromExpression27 --> PgSelect25 + PgSelect33[["PgSelect[33∈0] ➊
ᐸjson_identityᐳ"]]:::plan + PgFromExpression35{{"PgFromExpression[35∈0] ➊"}}:::plan + Object10 & PgFromExpression35 --> PgSelect33 + PgSelect41[["PgSelect[41∈0] ➊
ᐸjson_identityᐳ"]]:::plan + PgFromExpression43{{"PgFromExpression[43∈0] ➊"}}:::plan + Object10 & PgFromExpression43 --> PgSelect41 + PgSelect49[["PgSelect[49∈0] ➊
ᐸjson_identityᐳ"]]:::plan + PgFromExpression51{{"PgFromExpression[51∈0] ➊"}}:::plan + Object10 & PgFromExpression51 --> PgSelect49 + PgSelect57[["PgSelect[57∈0] ➊
ᐸjson_identityᐳ"]]:::plan + PgFromExpression59{{"PgFromExpression[59∈0] ➊"}}:::plan + Object10 & PgFromExpression59 --> PgSelect57 PgSelect65[["PgSelect[65∈0] ➊
ᐸjson_identityᐳ"]]:::plan - __InputDynamicScalar64{{"__InputDynamicScalar[64∈0] ➊"}}:::plan - Object10 & __InputDynamicScalar64 --> PgSelect65 - PgSelect72[["PgSelect[72∈0] ➊
ᐸjson_identityᐳ"]]:::plan - __InputDynamicScalar71{{"__InputDynamicScalar[71∈0] ➊"}}:::plan - Object10 & __InputDynamicScalar71 --> PgSelect72 - PgSelect79[["PgSelect[79∈0] ➊
ᐸjsonb_identityᐳ"]]:::plan - __InputDynamicScalar78{{"__InputDynamicScalar[78∈0] ➊"}}:::plan - Object10 & __InputDynamicScalar78 --> PgSelect79 - PgSelect86[["PgSelect[86∈0] ➊
ᐸjsonb_identityᐳ"]]:::plan - __InputDynamicScalar85{{"__InputDynamicScalar[85∈0] ➊"}}:::plan - Object10 & __InputDynamicScalar85 --> PgSelect86 + PgFromExpression67{{"PgFromExpression[67∈0] ➊"}}:::plan + Object10 & PgFromExpression67 --> PgSelect65 + PgSelect73[["PgSelect[73∈0] ➊
ᐸjson_identityᐳ"]]:::plan + PgFromExpression75{{"PgFromExpression[75∈0] ➊"}}:::plan + Object10 & PgFromExpression75 --> PgSelect73 + PgSelect81[["PgSelect[81∈0] ➊
ᐸjson_identityᐳ"]]:::plan + PgFromExpression83{{"PgFromExpression[83∈0] ➊"}}:::plan + Object10 & PgFromExpression83 --> PgSelect81 + PgSelect89[["PgSelect[89∈0] ➊
ᐸjsonb_identityᐳ"]]:::plan + PgFromExpression91{{"PgFromExpression[91∈0] ➊"}}:::plan + Object10 & PgFromExpression91 --> PgSelect89 + PgSelect97[["PgSelect[97∈0] ➊
ᐸjsonb_identityᐳ"]]:::plan + PgFromExpression99{{"PgFromExpression[99∈0] ➊"}}:::plan + Object10 & PgFromExpression99 --> PgSelect97 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 - First11{{"First[11∈0] ➊"}}:::plan - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelectRows12 --> First11 - PgSelect7 --> PgSelectRows12 - PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸjson_identityᐳ"}}:::plan - First11 --> PgSelectSingle13 - PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression14 - First18{{"First[18∈0] ➊"}}:::plan - PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan - PgSelectRows19 --> First18 - PgSelect16 --> PgSelectRows19 - PgSelectSingle20{{"PgSelectSingle[20∈0] ➊
ᐸjson_identityᐳ"}}:::plan - First18 --> PgSelectSingle20 - PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression21 - First25{{"First[25∈0] ➊"}}:::plan - PgSelectRows26[["PgSelectRows[26∈0] ➊"]]:::plan - PgSelectRows26 --> First25 - PgSelect23 --> PgSelectRows26 - PgSelectSingle27{{"PgSelectSingle[27∈0] ➊
ᐸjson_identityᐳ"}}:::plan - First25 --> PgSelectSingle27 - PgClassExpression28{{"PgClassExpression[28∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - First32{{"First[32∈0] ➊"}}:::plan - PgSelectRows33[["PgSelectRows[33∈0] ➊"]]:::plan - PgSelectRows33 --> First32 - PgSelect30 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈0] ➊
ᐸjson_identityᐳ"}}:::plan - First32 --> PgSelectSingle34 - PgClassExpression35{{"PgClassExpression[35∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression35 - First39{{"First[39∈0] ➊"}}:::plan - PgSelectRows40[["PgSelectRows[40∈0] ➊"]]:::plan - PgSelectRows40 --> First39 - PgSelect37 --> PgSelectRows40 - PgSelectSingle41{{"PgSelectSingle[41∈0] ➊
ᐸjson_identityᐳ"}}:::plan - First39 --> PgSelectSingle41 - PgClassExpression42{{"PgClassExpression[42∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan - PgSelectSingle41 --> PgClassExpression42 - First46{{"First[46∈0] ➊"}}:::plan - PgSelectRows47[["PgSelectRows[47∈0] ➊"]]:::plan - PgSelectRows47 --> First46 - PgSelect44 --> PgSelectRows47 - PgSelectSingle48{{"PgSelectSingle[48∈0] ➊
ᐸjson_identityᐳ"}}:::plan - First46 --> PgSelectSingle48 - PgClassExpression49{{"PgClassExpression[49∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan - PgSelectSingle48 --> PgClassExpression49 - First53{{"First[53∈0] ➊"}}:::plan - PgSelectRows54[["PgSelectRows[54∈0] ➊"]]:::plan - PgSelectRows54 --> First53 - PgSelect51 --> PgSelectRows54 - PgSelectSingle55{{"PgSelectSingle[55∈0] ➊
ᐸjson_identityᐳ"}}:::plan - First53 --> PgSelectSingle55 - PgClassExpression56{{"PgClassExpression[56∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression56 + Constant116{{"Constant[116∈0] ➊
ᐸtrueᐳ"}}:::plan + Constant116 --> PgFromExpression11 + First12{{"First[12∈0] ➊"}}:::plan + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelectRows13 --> First12 + PgSelect7 --> PgSelectRows13 + PgSelectSingle14{{"PgSelectSingle[14∈0] ➊
ᐸjson_identityᐳ"}}:::plan + First12 --> PgSelectSingle14 + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan + PgSelectSingle14 --> PgClassExpression15 + Constant117{{"Constant[117∈0] ➊
ᐸfalseᐳ"}}:::plan + Constant117 --> PgFromExpression19 + First20{{"First[20∈0] ➊"}}:::plan + PgSelectRows21[["PgSelectRows[21∈0] ➊"]]:::plan + PgSelectRows21 --> First20 + PgSelect17 --> PgSelectRows21 + PgSelectSingle22{{"PgSelectSingle[22∈0] ➊
ᐸjson_identityᐳ"}}:::plan + First20 --> PgSelectSingle22 + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression23 + Constant118{{"Constant[118∈0] ➊
ᐸ42ᐳ"}}:::plan + Constant118 --> PgFromExpression27 + First28{{"First[28∈0] ➊"}}:::plan + PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan + PgSelectRows29 --> First28 + PgSelect25 --> PgSelectRows29 + PgSelectSingle30{{"PgSelectSingle[30∈0] ➊
ᐸjson_identityᐳ"}}:::plan + First28 --> PgSelectSingle30 + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression31 + Constant119{{"Constant[119∈0] ➊
ᐸ3.1415ᐳ"}}:::plan + Constant119 --> PgFromExpression35 + First36{{"First[36∈0] ➊"}}:::plan + PgSelectRows37[["PgSelectRows[37∈0] ➊"]]:::plan + PgSelectRows37 --> First36 + PgSelect33 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈0] ➊
ᐸjson_identityᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + Constant120{{"Constant[120∈0] ➊
ᐸ'hello, world!'ᐳ"}}:::plan + Constant120 --> PgFromExpression43 + First44{{"First[44∈0] ➊"}}:::plan + PgSelectRows45[["PgSelectRows[45∈0] ➊"]]:::plan + PgSelectRows45 --> First44 + PgSelect41 --> PgSelectRows45 + PgSelectSingle46{{"PgSelectSingle[46∈0] ➊
ᐸjson_identityᐳ"}}:::plan + First44 --> PgSelectSingle46 + PgClassExpression47{{"PgClassExpression[47∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression47 + __InputDynamicScalar48{{"__InputDynamicScalar[48∈0] ➊"}}:::plan + __InputDynamicScalar48 --> PgFromExpression51 + First52{{"First[52∈0] ➊"}}:::plan + PgSelectRows53[["PgSelectRows[53∈0] ➊"]]:::plan + PgSelectRows53 --> First52 + PgSelect49 --> PgSelectRows53 + PgSelectSingle54{{"PgSelectSingle[54∈0] ➊
ᐸjson_identityᐳ"}}:::plan + First52 --> PgSelectSingle54 + PgClassExpression55{{"PgClassExpression[55∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan + PgSelectSingle54 --> PgClassExpression55 + __InputDynamicScalar56{{"__InputDynamicScalar[56∈0] ➊"}}:::plan + __InputDynamicScalar56 --> PgFromExpression59 First60{{"First[60∈0] ➊"}}:::plan PgSelectRows61[["PgSelectRows[61∈0] ➊"]]:::plan PgSelectRows61 --> First60 - PgSelect58 --> PgSelectRows61 + PgSelect57 --> PgSelectRows61 PgSelectSingle62{{"PgSelectSingle[62∈0] ➊
ᐸjson_identityᐳ"}}:::plan First60 --> PgSelectSingle62 PgClassExpression63{{"PgClassExpression[63∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan PgSelectSingle62 --> PgClassExpression63 - First67{{"First[67∈0] ➊"}}:::plan - PgSelectRows68[["PgSelectRows[68∈0] ➊"]]:::plan - PgSelectRows68 --> First67 - PgSelect65 --> PgSelectRows68 - PgSelectSingle69{{"PgSelectSingle[69∈0] ➊
ᐸjson_identityᐳ"}}:::plan - First67 --> PgSelectSingle69 - PgClassExpression70{{"PgClassExpression[70∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan - PgSelectSingle69 --> PgClassExpression70 - First74{{"First[74∈0] ➊"}}:::plan - PgSelectRows75[["PgSelectRows[75∈0] ➊"]]:::plan - PgSelectRows75 --> First74 - PgSelect72 --> PgSelectRows75 - PgSelectSingle76{{"PgSelectSingle[76∈0] ➊
ᐸjson_identityᐳ"}}:::plan - First74 --> PgSelectSingle76 - PgClassExpression77{{"PgClassExpression[77∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan - PgSelectSingle76 --> PgClassExpression77 - First81{{"First[81∈0] ➊"}}:::plan - PgSelectRows82[["PgSelectRows[82∈0] ➊"]]:::plan - PgSelectRows82 --> First81 - PgSelect79 --> PgSelectRows82 - PgSelectSingle83{{"PgSelectSingle[83∈0] ➊
ᐸjsonb_identityᐳ"}}:::plan - First81 --> PgSelectSingle83 - PgClassExpression84{{"PgClassExpression[84∈0] ➊
ᐸ__jsonb_identity__.vᐳ"}}:::plan - PgSelectSingle83 --> PgClassExpression84 - First88{{"First[88∈0] ➊"}}:::plan - PgSelectRows89[["PgSelectRows[89∈0] ➊"]]:::plan - PgSelectRows89 --> First88 - PgSelect86 --> PgSelectRows89 - PgSelectSingle90{{"PgSelectSingle[90∈0] ➊
ᐸjsonb_identityᐳ"}}:::plan - First88 --> PgSelectSingle90 - PgClassExpression91{{"PgClassExpression[91∈0] ➊
ᐸ__jsonb_identity__.vᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression91 + __InputDynamicScalar64{{"__InputDynamicScalar[64∈0] ➊"}}:::plan + __InputDynamicScalar64 --> PgFromExpression67 + First68{{"First[68∈0] ➊"}}:::plan + PgSelectRows69[["PgSelectRows[69∈0] ➊"]]:::plan + PgSelectRows69 --> First68 + PgSelect65 --> PgSelectRows69 + PgSelectSingle70{{"PgSelectSingle[70∈0] ➊
ᐸjson_identityᐳ"}}:::plan + First68 --> PgSelectSingle70 + PgClassExpression71{{"PgClassExpression[71∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan + PgSelectSingle70 --> PgClassExpression71 + __InputDynamicScalar72{{"__InputDynamicScalar[72∈0] ➊"}}:::plan + __InputDynamicScalar72 --> PgFromExpression75 + First76{{"First[76∈0] ➊"}}:::plan + PgSelectRows77[["PgSelectRows[77∈0] ➊"]]:::plan + PgSelectRows77 --> First76 + PgSelect73 --> PgSelectRows77 + PgSelectSingle78{{"PgSelectSingle[78∈0] ➊
ᐸjson_identityᐳ"}}:::plan + First76 --> PgSelectSingle78 + PgClassExpression79{{"PgClassExpression[79∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan + PgSelectSingle78 --> PgClassExpression79 + __InputDynamicScalar80{{"__InputDynamicScalar[80∈0] ➊"}}:::plan + __InputDynamicScalar80 --> PgFromExpression83 + First84{{"First[84∈0] ➊"}}:::plan + PgSelectRows85[["PgSelectRows[85∈0] ➊"]]:::plan + PgSelectRows85 --> First84 + PgSelect81 --> PgSelectRows85 + PgSelectSingle86{{"PgSelectSingle[86∈0] ➊
ᐸjson_identityᐳ"}}:::plan + First84 --> PgSelectSingle86 + PgClassExpression87{{"PgClassExpression[87∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan + PgSelectSingle86 --> PgClassExpression87 + __InputDynamicScalar88{{"__InputDynamicScalar[88∈0] ➊"}}:::plan + __InputDynamicScalar88 --> PgFromExpression91 + First92{{"First[92∈0] ➊"}}:::plan + PgSelectRows93[["PgSelectRows[93∈0] ➊"]]:::plan + PgSelectRows93 --> First92 + PgSelect89 --> PgSelectRows93 + PgSelectSingle94{{"PgSelectSingle[94∈0] ➊
ᐸjsonb_identityᐳ"}}:::plan + First92 --> PgSelectSingle94 + PgClassExpression95{{"PgClassExpression[95∈0] ➊
ᐸ__jsonb_identity__.vᐳ"}}:::plan + PgSelectSingle94 --> PgClassExpression95 + __InputDynamicScalar96{{"__InputDynamicScalar[96∈0] ➊"}}:::plan + __InputDynamicScalar96 --> PgFromExpression99 + First100{{"First[100∈0] ➊"}}:::plan + PgSelectRows101[["PgSelectRows[101∈0] ➊"]]:::plan + PgSelectRows101 --> First100 + PgSelect97 --> PgSelectRows101 + PgSelectSingle102{{"PgSelectSingle[102∈0] ➊
ᐸjsonb_identityᐳ"}}:::plan + First100 --> PgSelectSingle102 + PgClassExpression103{{"PgClassExpression[103∈0] ➊
ᐸ__jsonb_identity__.vᐳ"}}:::plan + PgSelectSingle102 --> PgClassExpression103 + PgSelectRows111[["PgSelectRows[111∈0] ➊"]]:::plan + PgSelect110 --> PgSelectRows111 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection97{{"Connection[97∈0] ➊
ᐸ95ᐳ"}}:::plan - PgSelect98[["PgSelect[98∈1] ➊
ᐸtypesᐳ"]]:::plan - Object10 & Connection97 --> PgSelect98 - PgSelectRows99[["PgSelectRows[99∈1] ➊"]]:::plan - PgSelect98 --> PgSelectRows99 - __Item100[/"__Item[100∈2]
ᐸ99ᐳ"\]:::itemplan - PgSelectRows99 ==> __Item100 - PgSelectSingle101{{"PgSelectSingle[101∈2]
ᐸtypesᐳ"}}:::plan - __Item100 --> PgSelectSingle101 - PgClassExpression102{{"PgClassExpression[102∈3]
ᐸ__types__.”json”ᐳ"}}:::plan - PgSelectSingle101 --> PgClassExpression102 - PgClassExpression103{{"PgClassExpression[103∈3]
ᐸ__types__.”jsonb”ᐳ"}}:::plan - PgSelectSingle101 --> PgClassExpression103 + __Item112[/"__Item[112∈1]
ᐸ111ᐳ"\]:::itemplan + PgSelectRows111 ==> __Item112 + PgSelectSingle113{{"PgSelectSingle[113∈1]
ᐸtypesᐳ"}}:::plan + __Item112 --> PgSelectSingle113 + PgClassExpression114{{"PgClassExpression[114∈1]
ᐸ__types__.”json”ᐳ"}}:::plan + PgSelectSingle113 --> PgClassExpression114 + PgClassExpression115{{"PgClassExpression[115∈1]
ᐸ__types__.”jsonb”ᐳ"}}:::plan + PgSelectSingle113 --> PgClassExpression115 %% define steps subgraph "Buckets for queries/v4/dynamic-json" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 43, 50, 57, 64, 71, 78, 85, 97, 104, 105, 106, 107, 108, 10
2: 7, 16, 23, 30, 37, 44, 51, 58, 65, 72, 79, 86
3: 12, 19, 26, 33, 40, 47, 54, 61, 68, 75, 82, 89
ᐳ: 11, 13, 14, 18, 20, 21, 25, 27, 28, 32, 34, 35, 39, 41, 42, 46, 48, 49, 53, 55, 56, 60, 62, 63, 67, 69, 70, 74, 76, 77, 81, 83, 84, 88, 90, 91"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 48, 56, 64, 72, 80, 88, 96, 104, 116, 117, 118, 119, 120, 10, 11, 19, 27, 35, 43, 51, 59, 67, 75, 83, 91, 99, 108
2: 7, 17, 25, 33, 41, 49, 57, 65, 73, 81, 89, 97, 110
3: 13, 21, 29, 37, 45, 53, 61, 69, 77, 85, 93, 101, 111
ᐳ: 12, 14, 15, 20, 22, 23, 28, 30, 31, 36, 38, 39, 44, 46, 47, 52, 54, 55, 60, 62, 63, 68, 70, 71, 76, 78, 79, 84, 86, 87, 92, 94, 95, 100, 102, 103"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect16,First18,PgSelectRows19,PgSelectSingle20,PgClassExpression21,PgSelect23,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression28,PgSelect30,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression35,PgSelect37,First39,PgSelectRows40,PgSelectSingle41,PgClassExpression42,__InputDynamicScalar43,PgSelect44,First46,PgSelectRows47,PgSelectSingle48,PgClassExpression49,__InputDynamicScalar50,PgSelect51,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression56,__InputDynamicScalar57,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgClassExpression63,__InputDynamicScalar64,PgSelect65,First67,PgSelectRows68,PgSelectSingle69,PgClassExpression70,__InputDynamicScalar71,PgSelect72,First74,PgSelectRows75,PgSelectSingle76,PgClassExpression77,__InputDynamicScalar78,PgSelect79,First81,PgSelectRows82,PgSelectSingle83,PgClassExpression84,__InputDynamicScalar85,PgSelect86,First88,PgSelectRows89,PgSelectSingle90,PgClassExpression91,Connection97,Constant104,Constant105,Constant106,Constant107,Constant108 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 10, 97

ROOT Connectionᐸ95ᐳ[97]
1: PgSelect[98]
2: PgSelectRows[99]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgFromExpression11,First12,PgSelectRows13,PgSelectSingle14,PgClassExpression15,PgSelect17,PgFromExpression19,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgSelect25,PgFromExpression27,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,PgSelect33,PgFromExpression35,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgSelect41,PgFromExpression43,First44,PgSelectRows45,PgSelectSingle46,PgClassExpression47,__InputDynamicScalar48,PgSelect49,PgFromExpression51,First52,PgSelectRows53,PgSelectSingle54,PgClassExpression55,__InputDynamicScalar56,PgSelect57,PgFromExpression59,First60,PgSelectRows61,PgSelectSingle62,PgClassExpression63,__InputDynamicScalar64,PgSelect65,PgFromExpression67,First68,PgSelectRows69,PgSelectSingle70,PgClassExpression71,__InputDynamicScalar72,PgSelect73,PgFromExpression75,First76,PgSelectRows77,PgSelectSingle78,PgClassExpression79,__InputDynamicScalar80,PgSelect81,PgFromExpression83,First84,PgSelectRows85,PgSelectSingle86,PgClassExpression87,__InputDynamicScalar88,PgSelect89,PgFromExpression91,First92,PgSelectRows93,PgSelectSingle94,PgClassExpression95,__InputDynamicScalar96,PgSelect97,PgFromExpression99,First100,PgSelectRows101,PgSelectSingle102,PgClassExpression103,Connection108,PgSelect110,PgSelectRows111,Constant116,Constant117,Constant118,Constant119,Constant120 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ111ᐳ[112]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect98,PgSelectRows99 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ99ᐳ[100]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item100,PgSelectSingle101 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 101

ROOT PgSelectSingle{2}ᐸtypesᐳ[101]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression102,PgClassExpression103 bucket3 + class Bucket1,__Item112,PgSelectSingle113,PgClassExpression114,PgClassExpression115 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/empty-array.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/empty-array.mermaid index 6f577ace80..3a6bfe3de6 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/empty-array.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/empty-array.mermaid @@ -9,54 +9,47 @@ graph TD %% plan dependencies - Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access11 & Access12 --> Object13 + PgSelect15[["PgSelect[15∈0] ➊
ᐸpersonᐳ"]]:::plan + Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant23{{"Constant[23∈0] ➊
ᐸ1ᐳ"}}:::plan + Object12 -->|rejectNull| PgSelect15 + Connection13 & Constant23 --> PgSelect15 + Constant23 --> Connection13 + Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access10 & Access11 --> Object12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access10 __Value2 --> Access11 - __Value2 --> Access12 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant23{{"Constant[23∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant23 --> Connection14 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸpersonᐳ"]]:::plan - Object13 & Connection14 & Constant23 --> PgSelect15 - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan PgSelect15 --> PgSelectRows16 - __Item17[/"__Item[17∈2]
ᐸ16ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan PgSelectRows16 ==> __Item17 - PgSelectSingle18{{"PgSelectSingle[18∈2]
ᐸpersonᐳ"}}:::plan + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸpersonᐳ"}}:::plan __Item17 --> PgSelectSingle18 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__person__.”id”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__person__.”id”ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__person__.”aliases”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__person__.”aliases”ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression21 - __Item22[/"__Item[22∈4]
ᐸ21ᐳ"\]:::itemplan + __Item22[/"__Item[22∈2]
ᐸ21ᐳ"\]:::itemplan PgClassExpression21 ==> __Item22 %% define steps subgraph "Buckets for queries/v4/empty-array" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 10, 11, 23, 12, 13
2: PgSelect[15]
3: PgSelectRows[16]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14,Constant23 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 23

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[15]
2: PgSelectRows[16]"):::bucket + class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,PgSelect15,PgSelectRows16,Constant23 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ16ᐳ[17]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect15,PgSelectRows16 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ16ᐳ[17]"):::bucket + class Bucket1,__Item17,PgSelectSingle18,PgClassExpression19,PgClassExpression20,PgClassExpression21 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ21ᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item17,PgSelectSingle18 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 18

ROOT PgSelectSingle{2}ᐸpersonᐳ[18]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgClassExpression20,PgClassExpression21 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ21ᐳ[22]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item22 bucket4 + class Bucket2,__Item22 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/enum_tables.queries.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/enum_tables.queries.mermaid index 96e9e5e2c3..540ac422a2 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/enum_tables.queries.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/enum_tables.queries.mermaid @@ -9,200 +9,167 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect76[["PgSelect[76∈0] ➊
ᐸletter_descriptionsᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + ApplyInput75{{"ApplyInput[75∈0] ➊"}}:::plan + Connection73{{"Connection[73∈0] ➊
ᐸ71ᐳ"}}:::plan + ApplyInput75 -->|rejectNull| PgSelect76 + Object11 & Connection73 --> PgSelect76 + PgSelect92[["PgSelect[92∈0] ➊
ᐸletter_descriptionsᐳ"]]:::plan + ApplyInput91{{"ApplyInput[91∈0] ➊"}}:::plan + Connection89{{"Connection[89∈0] ➊
ᐸ87ᐳ"}}:::plan + ApplyInput91 -->|rejectNull| PgSelect92 + Object11 & Connection89 --> PgSelect92 + PgSelect14[["PgSelect[14∈0] ➊
ᐸletter_descriptionsᐳ"]]:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect27[["PgSelect[27∈0] ➊
ᐸletter_descriptionsᐳ"]]:::plan + Connection25{{"Connection[25∈0] ➊
ᐸ23ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect27 + Connection25 --> PgSelect27 + PgSelect40[["PgSelect[40∈0] ➊
ᐸletter_descriptionsᐳ"]]:::plan + Connection38{{"Connection[38∈0] ➊
ᐸ36ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect40 + Connection38 --> PgSelect40 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 PgSelect49[["PgSelect[49∈0] ➊
ᐸletter_descriptionsᐳ"]]:::plan - Constant98{{"Constant[98∈0] ➊
ᐸ'B'ᐳ"}}:::plan - Object12 & Constant98 --> PgSelect49 + Constant100{{"Constant[100∈0] ➊
ᐸ'B'ᐳ"}}:::plan + Object11 & Constant100 --> PgSelect49 PgSelect59[["PgSelect[59∈0] ➊
ᐸletter_descriptionsᐳ"]]:::plan - Object12 & Constant98 --> PgSelect59 + Object11 & Constant100 --> PgSelect59 + __InputObject69{{"__InputObject[69∈0] ➊"}}:::plan + Constant101{{"Constant[101∈0] ➊
ᐸ'C'ᐳ"}}:::plan + Constant101 --> __InputObject69 + __InputObject85{{"__InputObject[85∈0] ➊"}}:::plan + Constant101 --> __InputObject85 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan + PgSelect14 --> PgSelectRows15 + PgSelectRows28[["PgSelectRows[28∈0] ➊"]]:::plan + PgSelect27 --> PgSelectRows28 + PgSelectRows41[["PgSelectRows[41∈0] ➊"]]:::plan + PgSelect40 --> PgSelectRows41 First51{{"First[51∈0] ➊"}}:::plan PgSelectRows52[["PgSelectRows[52∈0] ➊"]]:::plan PgSelectRows52 --> First51 PgSelect49 --> PgSelectRows52 PgSelectSingle53{{"PgSelectSingle[53∈0] ➊
ᐸletter_descriptionsᐳ"}}:::plan First51 --> PgSelectSingle53 + PgClassExpression54{{"PgClassExpression[54∈0] ➊
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression54 + PgClassExpression55{{"PgClassExpression[55∈0] ➊
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression55 + PgClassExpression56{{"PgClassExpression[56∈0] ➊
ᐸ__letter_d..._via_view”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression56 + PgClassExpression57{{"PgClassExpression[57∈0] ➊
ᐸ__letter_d...scription”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression57 First61{{"First[61∈0] ➊"}}:::plan PgSelectRows62[["PgSelectRows[62∈0] ➊"]]:::plan PgSelectRows62 --> First61 PgSelect59 --> PgSelectRows62 PgSelectSingle63{{"PgSelectSingle[63∈0] ➊
ᐸletter_descriptionsᐳ"}}:::plan First61 --> PgSelectSingle63 + PgClassExpression64{{"PgClassExpression[64∈0] ➊
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan + PgSelectSingle63 --> PgClassExpression64 + PgClassExpression65{{"PgClassExpression[65∈0] ➊
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan + PgSelectSingle63 --> PgClassExpression65 + PgClassExpression66{{"PgClassExpression[66∈0] ➊
ᐸ__letter_d..._via_view”ᐳ"}}:::plan + PgSelectSingle63 --> PgClassExpression66 + PgClassExpression67{{"PgClassExpression[67∈0] ➊
ᐸ__letter_d...scription”ᐳ"}}:::plan + PgSelectSingle63 --> PgClassExpression67 + __InputObject69 --> ApplyInput75 + PgSelectRows77[["PgSelectRows[77∈0] ➊"]]:::plan + PgSelect76 --> PgSelectRows77 + __InputObject85 --> ApplyInput91 + PgSelectRows93[["PgSelectRows[93∈0] ➊"]]:::plan + PgSelect92 --> PgSelectRows93 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Connection26{{"Connection[26∈0] ➊
ᐸ24ᐳ"}}:::plan - Connection39{{"Connection[39∈0] ➊
ᐸ37ᐳ"}}:::plan - Connection74{{"Connection[74∈0] ➊
ᐸ72ᐳ"}}:::plan - Connection89{{"Connection[89∈0] ➊
ᐸ87ᐳ"}}:::plan - Constant99{{"Constant[99∈0] ➊
ᐸ'C'ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸletter_descriptionsᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan - PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸletter_descriptionsᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸletter_descriptionsᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__letter_d..._via_view”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__letter_d..._via_view”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__letter_d...scription”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__letter_d...scription”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression21 - PgSelect27[["PgSelect[27∈4] ➊
ᐸletter_descriptionsᐳ"]]:::plan - Object12 & Connection26 --> PgSelect27 - PgSelectRows28[["PgSelectRows[28∈4] ➊"]]:::plan - PgSelect27 --> PgSelectRows28 - __Item29[/"__Item[29∈5]
ᐸ28ᐳ"\]:::itemplan + __Item29[/"__Item[29∈2]
ᐸ28ᐳ"\]:::itemplan PgSelectRows28 ==> __Item29 - PgSelectSingle30{{"PgSelectSingle[30∈5]
ᐸletter_descriptionsᐳ"}}:::plan + PgSelectSingle30{{"PgSelectSingle[30∈2]
ᐸletter_descriptionsᐳ"}}:::plan __Item29 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈6]
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈2]
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈6]
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈6]
ᐸ__letter_d..._via_view”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__letter_d..._via_view”ᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈6]
ᐸ__letter_d...scription”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__letter_d...scription”ᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression34 - PgSelect40[["PgSelect[40∈7] ➊
ᐸletter_descriptionsᐳ"]]:::plan - Object12 & Connection39 --> PgSelect40 - PgSelectRows41[["PgSelectRows[41∈7] ➊"]]:::plan - PgSelect40 --> PgSelectRows41 - __Item42[/"__Item[42∈8]
ᐸ41ᐳ"\]:::itemplan + __Item42[/"__Item[42∈3]
ᐸ41ᐳ"\]:::itemplan PgSelectRows41 ==> __Item42 - PgSelectSingle43{{"PgSelectSingle[43∈8]
ᐸletter_descriptionsᐳ"}}:::plan + PgSelectSingle43{{"PgSelectSingle[43∈3]
ᐸletter_descriptionsᐳ"}}:::plan __Item42 --> PgSelectSingle43 - PgClassExpression44{{"PgClassExpression[44∈9]
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan + PgClassExpression44{{"PgClassExpression[44∈3]
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression44 - PgClassExpression45{{"PgClassExpression[45∈9]
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan + PgClassExpression45{{"PgClassExpression[45∈3]
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈9]
ᐸ__letter_d..._via_view”ᐳ"}}:::plan + PgClassExpression46{{"PgClassExpression[46∈3]
ᐸ__letter_d..._via_view”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈9]
ᐸ__letter_d...scription”ᐳ"}}:::plan + PgClassExpression47{{"PgClassExpression[47∈3]
ᐸ__letter_d...scription”ᐳ"}}:::plan PgSelectSingle43 --> PgClassExpression47 - PgClassExpression54{{"PgClassExpression[54∈10] ➊
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression54 - PgClassExpression55{{"PgClassExpression[55∈10] ➊
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression55 - PgClassExpression56{{"PgClassExpression[56∈10] ➊
ᐸ__letter_d..._via_view”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈10] ➊
ᐸ__letter_d...scription”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression57 - PgClassExpression64{{"PgClassExpression[64∈11] ➊
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression64 - PgClassExpression65{{"PgClassExpression[65∈11] ➊
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression65 - PgClassExpression66{{"PgClassExpression[66∈11] ➊
ᐸ__letter_d..._via_view”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression66 - PgClassExpression67{{"PgClassExpression[67∈11] ➊
ᐸ__letter_d...scription”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression67 - PgSelect75[["PgSelect[75∈12] ➊
ᐸletter_descriptionsᐳ"]]:::plan - Object12 & Constant99 & Connection74 --> PgSelect75 - PgSelectRows76[["PgSelectRows[76∈12] ➊"]]:::plan - PgSelect75 --> PgSelectRows76 - __Item77[/"__Item[77∈13]
ᐸ76ᐳ"\]:::itemplan - PgSelectRows76 ==> __Item77 - PgSelectSingle78{{"PgSelectSingle[78∈13]
ᐸletter_descriptionsᐳ"}}:::plan - __Item77 --> PgSelectSingle78 - PgClassExpression79{{"PgClassExpression[79∈14]
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan - PgSelectSingle78 --> PgClassExpression79 - PgClassExpression80{{"PgClassExpression[80∈14]
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan - PgSelectSingle78 --> PgClassExpression80 - PgClassExpression81{{"PgClassExpression[81∈14]
ᐸ__letter_d..._via_view”ᐳ"}}:::plan - PgSelectSingle78 --> PgClassExpression81 - PgClassExpression82{{"PgClassExpression[82∈14]
ᐸ__letter_d...scription”ᐳ"}}:::plan - PgSelectSingle78 --> PgClassExpression82 - PgSelect90[["PgSelect[90∈15] ➊
ᐸletter_descriptionsᐳ"]]:::plan - Object12 & Constant99 & Connection89 --> PgSelect90 - PgSelectRows91[["PgSelectRows[91∈15] ➊"]]:::plan - PgSelect90 --> PgSelectRows91 - __Item92[/"__Item[92∈16]
ᐸ91ᐳ"\]:::itemplan - PgSelectRows91 ==> __Item92 - PgSelectSingle93{{"PgSelectSingle[93∈16]
ᐸletter_descriptionsᐳ"}}:::plan - __Item92 --> PgSelectSingle93 - PgClassExpression94{{"PgClassExpression[94∈17]
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression94 - PgClassExpression95{{"PgClassExpression[95∈17]
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression95 - PgClassExpression96{{"PgClassExpression[96∈17]
ᐸ__letter_d..._via_view”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression96 - PgClassExpression97{{"PgClassExpression[97∈17]
ᐸ__letter_d...scription”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression97 + __Item78[/"__Item[78∈4]
ᐸ77ᐳ"\]:::itemplan + PgSelectRows77 ==> __Item78 + PgSelectSingle79{{"PgSelectSingle[79∈4]
ᐸletter_descriptionsᐳ"}}:::plan + __Item78 --> PgSelectSingle79 + PgClassExpression80{{"PgClassExpression[80∈4]
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan + PgSelectSingle79 --> PgClassExpression80 + PgClassExpression81{{"PgClassExpression[81∈4]
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan + PgSelectSingle79 --> PgClassExpression81 + PgClassExpression82{{"PgClassExpression[82∈4]
ᐸ__letter_d..._via_view”ᐳ"}}:::plan + PgSelectSingle79 --> PgClassExpression82 + PgClassExpression83{{"PgClassExpression[83∈4]
ᐸ__letter_d...scription”ᐳ"}}:::plan + PgSelectSingle79 --> PgClassExpression83 + __Item94[/"__Item[94∈5]
ᐸ93ᐳ"\]:::itemplan + PgSelectRows93 ==> __Item94 + PgSelectSingle95{{"PgSelectSingle[95∈5]
ᐸletter_descriptionsᐳ"}}:::plan + __Item94 --> PgSelectSingle95 + PgClassExpression96{{"PgClassExpression[96∈5]
ᐸ__letter_d...ons__.”id”ᐳ"}}:::plan + PgSelectSingle95 --> PgClassExpression96 + PgClassExpression97{{"PgClassExpression[97∈5]
ᐸ__letter_d..._.”letter”ᐳ"}}:::plan + PgSelectSingle95 --> PgClassExpression97 + PgClassExpression98{{"PgClassExpression[98∈5]
ᐸ__letter_d..._via_view”ᐳ"}}:::plan + PgSelectSingle95 --> PgClassExpression98 + PgClassExpression99{{"PgClassExpression[99∈5]
ᐸ__letter_d...scription”ᐳ"}}:::plan + PgSelectSingle95 --> PgClassExpression99 %% define steps subgraph "Buckets for queries/v4/enum_tables.queries" - Bucket0("Bucket 0 (root)

1:
ᐳ: 10, 11, 13, 26, 39, 74, 89, 98, 99, 12
2: PgSelect[49], PgSelect[59]
3: PgSelectRows[52], PgSelectRows[62]
ᐳ: 51, 53, 61, 63"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 100, 101, 11, 12, 25, 38, 69, 73, 75, 85, 89, 91
2: 14, 27, 40, 49, 59, 76, 92
3: 15, 28, 41, 52, 62, 77, 93
ᐳ: 51, 53, 54, 55, 56, 57, 61, 63, 64, 65, 66, 67"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Connection26,Connection39,PgSelect49,First51,PgSelectRows52,PgSelectSingle53,PgSelect59,First61,PgSelectRows62,PgSelectSingle63,Connection74,Connection89,Constant98,Constant99 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Connection25,PgSelect27,PgSelectRows28,Connection38,PgSelect40,PgSelectRows41,PgSelect49,First51,PgSelectRows52,PgSelectSingle53,PgClassExpression54,PgClassExpression55,PgClassExpression56,PgClassExpression57,PgSelect59,First61,PgSelectRows62,PgSelectSingle63,PgClassExpression64,PgClassExpression65,PgClassExpression66,PgClassExpression67,__InputObject69,Connection73,ApplyInput75,PgSelect76,PgSelectRows77,__InputObject85,Connection89,ApplyInput91,PgSelect92,PgSelectRows93,Constant100,Constant101 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ28ᐳ[29]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17

ROOT PgSelectSingle{2}ᐸletter_descriptionsᐳ[17]"):::bucket + class Bucket2,__Item29,PgSelectSingle30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ41ᐳ[42]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 12, 26

ROOT Connectionᐸ24ᐳ[26]
1: PgSelect[27]
2: PgSelectRows[28]"):::bucket + class Bucket3,__Item42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgClassExpression46,PgClassExpression47 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ77ᐳ[78]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect27,PgSelectRows28 bucket4 - Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ28ᐳ[29]"):::bucket + class Bucket4,__Item78,PgSelectSingle79,PgClassExpression80,PgClassExpression81,PgClassExpression82,PgClassExpression83 bucket4 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ93ᐳ[94]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item29,PgSelectSingle30 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{5}ᐸletter_descriptionsᐳ[30]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 12, 39

ROOT Connectionᐸ37ᐳ[39]
1: PgSelect[40]
2: PgSelectRows[41]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgSelect40,PgSelectRows41 bucket7 - Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ41ᐳ[42]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,__Item42,PgSelectSingle43 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 43

ROOT PgSelectSingle{8}ᐸletter_descriptionsᐳ[43]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression44,PgClassExpression45,PgClassExpression46,PgClassExpression47 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 53

ROOT PgSelectSingleᐸletter_descriptionsᐳ[53]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression54,PgClassExpression55,PgClassExpression56,PgClassExpression57 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 63

ROOT PgSelectSingleᐸletter_descriptionsᐳ[63]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression64,PgClassExpression65,PgClassExpression66,PgClassExpression67 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 12, 99, 74

ROOT Connectionᐸ72ᐳ[74]
1: PgSelect[75]
2: PgSelectRows[76]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgSelect75,PgSelectRows76 bucket12 - Bucket13("Bucket 13 (listItem)

ROOT __Item{13}ᐸ76ᐳ[77]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,__Item77,PgSelectSingle78 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 78

ROOT PgSelectSingle{13}ᐸletter_descriptionsᐳ[78]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,PgClassExpression79,PgClassExpression80,PgClassExpression81,PgClassExpression82 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 12, 99, 89

ROOT Connectionᐸ87ᐳ[89]
1: PgSelect[90]
2: PgSelectRows[91]"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15,PgSelect90,PgSelectRows91 bucket15 - Bucket16("Bucket 16 (listItem)

ROOT __Item{16}ᐸ91ᐳ[92]"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16,__Item92,PgSelectSingle93 bucket16 - Bucket17("Bucket 17 (nullableBoundary)
Deps: 93

ROOT PgSelectSingle{16}ᐸletter_descriptionsᐳ[93]"):::bucket - classDef bucket17 stroke:#696969 - class Bucket17,PgClassExpression94,PgClassExpression95,PgClassExpression96,PgClassExpression97 bucket17 - Bucket0 --> Bucket1 & Bucket4 & Bucket7 & Bucket10 & Bucket11 & Bucket12 & Bucket15 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 - Bucket12 --> Bucket13 - Bucket13 --> Bucket14 - Bucket15 --> Bucket16 - Bucket16 --> Bucket17 + class Bucket5,__Item94,PgSelectSingle95,PgClassExpression96,PgClassExpression97,PgClassExpression98,PgClassExpression99 bucket5 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket5 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/enum_tables.queries.sql b/postgraphile/postgraphile/__tests__/queries/v4/enum_tables.queries.sql index 6b5e3f693c..9e9b7ddf18 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/enum_tables.queries.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/enum_tables.queries.sql @@ -4,9 +4,7 @@ select __letter_descriptions__."letter_via_view"::text as "2", __letter_descriptions__."description" as "3" from "enum_tables"."letter_descriptions" as __letter_descriptions__ -where ( - __letter_descriptions__."letter" = $1::"text" -); +order by __letter_descriptions__."id" asc; select __letter_descriptions__."id"::text as "0", @@ -14,9 +12,7 @@ select __letter_descriptions__."letter_via_view"::text as "2", __letter_descriptions__."description" as "3" from "enum_tables"."letter_descriptions" as __letter_descriptions__ -where ( - __letter_descriptions__."letter_via_view" = $1::"text" -); +order by __letter_descriptions__."letter" desc; select __letter_descriptions__."id"::text as "0", @@ -24,7 +20,7 @@ select __letter_descriptions__."letter_via_view"::text as "2", __letter_descriptions__."description" as "3" from "enum_tables"."letter_descriptions" as __letter_descriptions__ -order by __letter_descriptions__."id" asc; +order by __letter_descriptions__."letter_via_view" desc; select __letter_descriptions__."id"::text as "0", @@ -32,7 +28,9 @@ select __letter_descriptions__."letter_via_view"::text as "2", __letter_descriptions__."description" as "3" from "enum_tables"."letter_descriptions" as __letter_descriptions__ -order by __letter_descriptions__."letter" desc; +where ( + __letter_descriptions__."letter" = $1::"text" +); select __letter_descriptions__."id"::text as "0", @@ -40,7 +38,9 @@ select __letter_descriptions__."letter_via_view"::text as "2", __letter_descriptions__."description" as "3" from "enum_tables"."letter_descriptions" as __letter_descriptions__ -order by __letter_descriptions__."letter_via_view" desc; +where ( + __letter_descriptions__."letter_via_view" = $1::"text" +); select __letter_descriptions__."id"::text as "0", diff --git a/postgraphile/postgraphile/__tests__/queries/v4/enum_tables.queries2.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/enum_tables.queries2.mermaid index e16918177f..65d9083510 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/enum_tables.queries2.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/enum_tables.queries2.mermaid @@ -9,50 +9,43 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸreferencing_tableᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸreferencing_tableᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸreferencing_tableᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸreferencing_tableᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__referenc...ble__.”id”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__referenc...ble__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__referenc..._.”enum_1”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__referenc..._.”enum_1”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__referenc..._.”enum_2”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__referenc..._.”enum_2”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__referenc..._.”enum_3”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__referenc..._.”enum_3”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__referenc...mple_enum”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__referenc...mple_enum”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression22 %% define steps subgraph "Buckets for queries/v4/enum_tables.queries2" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 11, 12
2: PgSelect[14]
3: PgSelectRows[15]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17

ROOT PgSelectSingle{2}ᐸreferencing_tableᐳ[17]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22 bucket3 + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/function-return-types.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/function-return-types.mermaid index e44a27e1d2..40f8d0bc71 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/function-return-types.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/function-return-types.mermaid @@ -9,931 +9,816 @@ graph TD %% plan dependencies - PgSelect363[["PgSelect[363∈0] ➊
ᐸquery_output_two_rowsᐳ"]]:::plan + PgSelect68[["PgSelect[68∈0] ➊
ᐸpostᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant512{{"Constant[512∈0] ➊
ᐸ42ᐳ"}}:::plan - Constant509{{"Constant[509∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant513{{"Constant[513∈0] ➊
ᐸ'Hi'ᐳ"}}:::plan - Object11 & Constant512 & Constant509 & Constant513 --> PgSelect363 - PgSelect432[["PgSelect[432∈0] ➊
ᐸquery_output_two_rowsᐳ"]]:::plan - Constant514{{"Constant[514∈0] ➊
ᐸ999999999ᐳ"}}:::plan - Constant515{{"Constant[515∈0] ➊
ᐸ”Don't fail me now...”ᐳ"}}:::plan - Object11 & Constant514 & Constant514 & Constant515 --> PgSelect432 + PgClassExpression58{{"PgClassExpression[58∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Connection66{{"Connection[66∈0] ➊
ᐸ64ᐳ"}}:::plan + Object11 & PgClassExpression58 & Connection66 --> PgSelect68 + PgSelect82[["PgSelect[82∈0] ➊
ᐸfunc_out_complex_setofᐳ"]]:::plan + PgFromExpression80{{"PgFromExpression[80∈0] ➊"}}:::plan + Connection81{{"Connection[81∈0] ➊
ᐸ78ᐳ"}}:::plan + PgFromExpression80 -->|rejectNull| PgSelect82 + Object11 & Connection81 --> PgSelect82 + PgSelect231[["PgSelect[231∈0] ➊
ᐸfunc_returns_table_multi_colᐳ"]]:::plan + PgFromExpression229{{"PgFromExpression[229∈0] ➊"}}:::plan + Connection230{{"Connection[230∈0] ➊
ᐸ227ᐳ"}}:::plan + PgFromExpression229 -->|rejectNull| PgSelect231 + Object11 & Connection230 --> PgSelect231 + PgSelect247[["PgSelect[247∈0] ➊
ᐸfunc_returns_table_one_colᐳ"]]:::plan + PgFromExpression245{{"PgFromExpression[245∈0] ➊"}}:::plan + Connection246{{"Connection[246∈0] ➊
ᐸ243ᐳ"}}:::plan + PgFromExpression245 -->|rejectNull| PgSelect247 + Object11 & Connection246 --> PgSelect247 + PgSelect303[["PgSelect[303∈0] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression294{{"PgClassExpression[294∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Connection301{{"Connection[301∈0] ➊
ᐸ299ᐳ"}}:::plan + Object11 & PgClassExpression294 & Connection301 --> PgSelect303 + PgSelect157[["PgSelect[157∈0] ➊
ᐸfunc_out_out_setofᐳ"]]:::plan + Connection156{{"Connection[156∈0] ➊
ᐸ154ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect157 + Connection156 --> PgSelect157 + PgSelect178[["PgSelect[178∈0] ➊
ᐸfunc_out_setofᐳ"]]:::plan + Connection177{{"Connection[177∈0] ➊
ᐸ175ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect178 + Connection177 --> PgSelect178 + PgSelect199[["PgSelect[199∈0] ➊
ᐸfunc_out_table_setofᐳ"]]:::plan + Connection198{{"Connection[198∈0] ➊
ᐸ196ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect199 + Connection198 --> PgSelect199 + Connection114{{"Connection[114∈0] ➊
ᐸ112ᐳ"}}:::plan + PgSelect124[["PgSelect[124∈0] ➊
ᐸfunc_out_complex_setof(aggregate)ᐳ"]]:::plan + PgFromExpression80 -->|rejectNull| PgSelect124 + Object11 & Connection81 --> PgSelect124 + PgSelect237[["PgSelect[237∈0] ➊
ᐸfunc_returns_table_multi_col(aggregate)ᐳ"]]:::plan + PgFromExpression229 -->|rejectNull| PgSelect237 + Object11 & Connection230 --> PgSelect237 + PgSelect252[["PgSelect[252∈0] ➊
ᐸfunc_returns_table_one_col(aggregate)ᐳ"]]:::plan + PgFromExpression245 -->|rejectNull| PgSelect252 + Object11 & Connection246 --> PgSelect252 + PgSelect258[["PgSelect[258∈0] ➊
ᐸpersonᐳ"]]:::plan + Constant499{{"Constant[499∈0] ➊
ᐸ1ᐳ"}}:::plan + PgFromExpression339{{"PgFromExpression[339∈0] ➊"}}:::plan + Object11 & Constant499 & PgFromExpression339 --> PgSelect258 + PgFromExpression272{{"PgFromExpression[272∈0] ➊"}}:::plan + PgClassExpression269{{"PgClassExpression[269∈0] ➊
ᐸ__person__ᐳ"}}:::plan + Constant500{{"Constant[500∈0] ➊
ᐸ'test'ᐳ"}}:::plan + PgClassExpression269 & Constant499 & Constant500 --> PgFromExpression272 + PgFromExpression367{{"PgFromExpression[367∈0] ➊"}}:::plan + Constant502{{"Constant[502∈0] ➊
ᐸ42ᐳ"}}:::plan + Constant503{{"Constant[503∈0] ➊
ᐸ'Hi'ᐳ"}}:::plan + Constant502 & Constant499 & Constant503 --> PgFromExpression367 + PgFromExpression430{{"PgFromExpression[430∈0] ➊"}}:::plan + Constant504{{"Constant[504∈0] ➊
ᐸ999999999ᐳ"}}:::plan + Constant505{{"Constant[505∈0] ➊
ᐸ”Don't fail me now...”ᐳ"}}:::plan + Constant505 --> PgFromExpression430 + Constant504 -- 2 --> PgFromExpression430 + PgSelect488[["PgSelect[488∈0] ➊
ᐸsearch_test_summariesᐳ"]]:::plan + Object11 --> PgSelect488 PgSelect8[["PgSelect[8∈0] ➊
ᐸfunc_in_inoutᐳ"]]:::plan - Constant507{{"Constant[507∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant508{{"Constant[508∈0] ➊
ᐸ5ᐳ"}}:::plan - Object11 & Constant507 & Constant508 --> PgSelect8 - PgSelect31[["PgSelect[31∈0] ➊
ᐸfunc_out_complexᐳ"]]:::plan - Constant510{{"Constant[510∈0] ➊
ᐸ'test'ᐳ"}}:::plan - Object11 & Constant509 & Constant510 --> PgSelect31 - PgSelect255[["PgSelect[255∈0] ➊
ᐸpersonᐳ"]]:::plan - Object11 & Constant509 & Constant510 --> PgSelect255 + PgFromExpression12{{"PgFromExpression[12∈0] ➊"}}:::plan + Object11 & PgFromExpression12 --> PgSelect8 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect17[["PgSelect[17∈0] ➊
ᐸfunc_in_outᐳ"]]:::plan - Object11 & Constant507 --> PgSelect17 - PgSelect135[["PgSelect[135∈0] ➊
ᐸfunc_out_out_compound_typeᐳ"]]:::plan - Object11 & Constant507 --> PgSelect135 + Constant497{{"Constant[497∈0] ➊
ᐸ10ᐳ"}}:::plan + Constant498{{"Constant[498∈0] ➊
ᐸ5ᐳ"}}:::plan + Constant497 & Constant498 --> PgFromExpression12 + PgSelect18[["PgSelect[18∈0] ➊
ᐸfunc_in_outᐳ"]]:::plan + PgFromExpression20{{"PgFromExpression[20∈0] ➊"}}:::plan + Object11 & PgFromExpression20 --> PgSelect18 + PgSelect33[["PgSelect[33∈0] ➊
ᐸfunc_out_complexᐳ"]]:::plan + PgFromExpression35{{"PgFromExpression[35∈0] ➊"}}:::plan + Object11 & PgFromExpression35 --> PgSelect33 + Constant499 & Constant500 --> PgFromExpression35 + PgSelect41[["PgSelect[41∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression43{{"PgFromExpression[43∈0] ➊"}}:::plan + Object11 & PgFromExpression43 --> PgSelect41 + PgSelect51[["PgSelect[51∈0] ➊
ᐸpersonᐳ"]]:::plan + PgFromExpression53{{"PgFromExpression[53∈0] ➊"}}:::plan + Object11 & PgFromExpression53 --> PgSelect51 + List59{{"List[59∈0] ➊
ᐸ57,58ᐳ"}}:::plan + Constant57{{"Constant[57∈0] ➊
ᐸ'people'ᐳ"}}:::plan + Constant57 & PgClassExpression58 --> List59 + Constant499 & Constant500 --> PgFromExpression80 + PgSelect137[["PgSelect[137∈0] ➊
ᐸfunc_out_out_compound_typeᐳ"]]:::plan + PgFromExpression139{{"PgFromExpression[139∈0] ➊"}}:::plan + Object11 & PgFromExpression139 --> PgSelect137 + PgSelect145[["PgSelect[145∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression147{{"PgFromExpression[147∈0] ➊"}}:::plan + Object11 & PgFromExpression147 --> PgSelect145 + PgSelect163[["PgSelect[163∈0] ➊
ᐸfunc_out_out_setof(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect163 + Connection156 --> PgSelect163 + PgSelect183[["PgSelect[183∈0] ➊
ᐸfunc_out_setof(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect183 + Connection177 --> PgSelect183 + List194{{"List[194∈0] ➊
ᐸ57,193ᐳ"}}:::plan + PgClassExpression193{{"PgClassExpression[193∈0] ➊
ᐸ__func_out_table__.”id”ᐳ"}}:::plan + Constant57 & PgClassExpression193 --> List194 + PgSelect207[["PgSelect[207∈0] ➊
ᐸfunc_out_table_setof(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect207 + Connection198 --> PgSelect207 + Constant501{{"Constant[501∈0] ➊
ᐸ20ᐳ"}}:::plan + Constant501 --> PgFromExpression229 + List264{{"List[264∈0] ➊
ᐸ57,263ᐳ"}}:::plan + PgClassExpression263{{"PgClassExpression[263∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant57 & PgClassExpression263 --> List264 + PgSelect270[["PgSelect[270∈0] ➊
ᐸperson_computed_complexᐳ"]]:::plan + Object11 & PgFromExpression272 --> PgSelect270 + PgSelect278[["PgSelect[278∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression280{{"PgFromExpression[280∈0] ➊"}}:::plan + Object11 & PgFromExpression280 --> PgSelect278 + PgSelect288[["PgSelect[288∈0] ➊
ᐸpersonᐳ"]]:::plan + PgFromExpression290{{"PgFromExpression[290∈0] ➊"}}:::plan + Object11 & PgFromExpression290 --> PgSelect288 + List295{{"List[295∈0] ➊
ᐸ57,294ᐳ"}}:::plan + Constant57 & PgClassExpression294 --> List295 + PgSelect312[["PgSelect[312∈0] ➊
ᐸperson_computed_first_arg_inoutᐳ"]]:::plan + PgFromExpression314{{"PgFromExpression[314∈0] ➊"}}:::plan + Object11 & PgFromExpression314 --> PgSelect312 + PgSelect321[["PgSelect[321∈0] ➊
ᐸperson_computed_first_arg_inout_outᐳ"]]:::plan + PgFromExpression323{{"PgFromExpression[323∈0] ➊"}}:::plan + Object11 & PgFromExpression323 --> PgSelect321 + PgSelect328[["PgSelect[328∈0] ➊
ᐸpersonᐳ"]]:::plan + PgFromExpression330{{"PgFromExpression[330∈0] ➊"}}:::plan + Object11 & PgFromExpression330 --> PgSelect328 + PgSelect343[["PgSelect[343∈0] ➊
ᐸperson_computed_inout_outᐳ"]]:::plan + PgFromExpression345{{"PgFromExpression[345∈0] ➊"}}:::plan + Object11 & PgFromExpression345 --> PgSelect343 + PgClassExpression269 & Constant500 --> PgFromExpression345 + PgSelect354[["PgSelect[354∈0] ➊
ᐸperson_computed_out_outᐳ"]]:::plan + PgFromExpression356{{"PgFromExpression[356∈0] ➊"}}:::plan + Object11 & PgFromExpression356 --> PgSelect354 + PgSelect365[["PgSelect[365∈0] ➊
ᐸquery_output_two_rowsᐳ"]]:::plan + Object11 & PgFromExpression367 --> PgSelect365 + PgSelect372[["PgSelect[372∈0] ➊
ᐸleft_armᐳ"]]:::plan + PgFromExpression374{{"PgFromExpression[374∈0] ➊"}}:::plan + Object11 & PgFromExpression374 --> PgSelect372 + PgSelect382[["PgSelect[382∈0] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression381{{"PgClassExpression[381∈0] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan + Object11 & PgClassExpression381 --> PgSelect382 + PgSelect389[["PgSelect[389∈0] ➊
ᐸperson_secretᐳ"]]:::plan + PgClassExpression388{{"PgClassExpression[388∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression388 --> PgSelect389 + PgSelect402[["PgSelect[402∈0] ➊
ᐸpostᐳ"]]:::plan + PgFromExpression404{{"PgFromExpression[404∈0] ➊"}}:::plan + Object11 & PgFromExpression404 --> PgSelect402 + PgSelect411[["PgSelect[411∈0] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression410{{"PgClassExpression[410∈0] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan + Object11 & PgClassExpression410 --> PgSelect411 + PgSelect418[["PgSelect[418∈0] ➊
ᐸperson_secretᐳ"]]:::plan + PgClassExpression417{{"PgClassExpression[417∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression417 --> PgSelect418 + PgSelect428[["PgSelect[428∈0] ➊
ᐸquery_output_two_rowsᐳ"]]:::plan + Object11 & PgFromExpression430 --> PgSelect428 + PgSelect435[["PgSelect[435∈0] ➊
ᐸleft_armᐳ"]]:::plan + PgFromExpression437{{"PgFromExpression[437∈0] ➊"}}:::plan + Object11 & PgFromExpression437 --> PgSelect435 + PgSelect445[["PgSelect[445∈0] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression444{{"PgClassExpression[444∈0] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan + Object11 & PgClassExpression444 --> PgSelect445 + PgSelect452[["PgSelect[452∈0] ➊
ᐸperson_secretᐳ"]]:::plan + PgClassExpression451{{"PgClassExpression[451∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression451 --> PgSelect452 + PgSelect465[["PgSelect[465∈0] ➊
ᐸpostᐳ"]]:::plan + PgFromExpression467{{"PgFromExpression[467∈0] ➊"}}:::plan + Object11 & PgFromExpression467 --> PgSelect465 + PgSelect474[["PgSelect[474∈0] ➊
ᐸpersonᐳ"]]:::plan + PgClassExpression473{{"PgClassExpression[473∈0] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan + Object11 & PgClassExpression473 --> PgSelect474 + PgSelect481[["PgSelect[481∈0] ➊
ᐸperson_secretᐳ"]]:::plan + PgClassExpression480{{"PgClassExpression[480∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression480 --> PgSelect481 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 - First12{{"First[12∈0] ➊"}}:::plan - PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan - PgSelectRows13 --> First12 - PgSelect8 --> PgSelectRows13 - PgSelectSingle14{{"PgSelectSingle[14∈0] ➊
ᐸfunc_in_inoutᐳ"}}:::plan - First12 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__func_in_inout__.vᐳ"}}:::plan - PgSelectSingle14 --> PgClassExpression15 - First19{{"First[19∈0] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈0] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect17 --> PgSelectRows20 - PgSelectSingle21{{"PgSelectSingle[21∈0] ➊
ᐸfunc_in_outᐳ"}}:::plan - First19 --> PgSelectSingle21 - PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__func_in_out__.vᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgSelect23[["PgSelect[23∈0] ➊
ᐸfunc_outᐳ"]]:::plan - Object11 --> PgSelect23 - First25{{"First[25∈0] ➊"}}:::plan - PgSelectRows26[["PgSelectRows[26∈0] ➊"]]:::plan - PgSelectRows26 --> First25 - PgSelect23 --> PgSelectRows26 - PgSelectSingle27{{"PgSelectSingle[27∈0] ➊
ᐸfunc_outᐳ"}}:::plan - First25 --> PgSelectSingle27 - PgClassExpression28{{"PgClassExpression[28∈0] ➊
ᐸ__func_out__.vᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - First33{{"First[33∈0] ➊"}}:::plan - PgSelectRows34[["PgSelectRows[34∈0] ➊"]]:::plan - PgSelectRows34 --> First33 - PgSelect31 --> PgSelectRows34 - PgSelectSingle35{{"PgSelectSingle[35∈0] ➊
ᐸfunc_out_complexᐳ"}}:::plan - First33 --> PgSelectSingle35 - PgSelect127[["PgSelect[127∈0] ➊
ᐸfunc_out_outᐳ"]]:::plan - Object11 --> PgSelect127 - First129{{"First[129∈0] ➊"}}:::plan - PgSelectRows130[["PgSelectRows[130∈0] ➊"]]:::plan - PgSelectRows130 --> First129 - PgSelect127 --> PgSelectRows130 - PgSelectSingle131{{"PgSelectSingle[131∈0] ➊
ᐸfunc_out_outᐳ"}}:::plan - First129 --> PgSelectSingle131 - First137{{"First[137∈0] ➊"}}:::plan - PgSelectRows138[["PgSelectRows[138∈0] ➊"]]:::plan - PgSelectRows138 --> First137 - PgSelect135 --> PgSelectRows138 - PgSelectSingle139{{"PgSelectSingle[139∈0] ➊
ᐸfunc_out_out_compound_typeᐳ"}}:::plan - First137 --> PgSelectSingle139 - PgSelect166[["PgSelect[166∈0] ➊
ᐸfunc_out_out_unnamedᐳ"]]:::plan - Object11 --> PgSelect166 - First168{{"First[168∈0] ➊"}}:::plan - PgSelectRows169[["PgSelectRows[169∈0] ➊"]]:::plan - PgSelectRows169 --> First168 - PgSelect166 --> PgSelectRows169 - PgSelectSingle170{{"PgSelectSingle[170∈0] ➊
ᐸfunc_out_out_unnamedᐳ"}}:::plan - First168 --> PgSelectSingle170 - PgSelect186[["PgSelect[186∈0] ➊
ᐸfunc_out_tableᐳ"]]:::plan - Object11 --> PgSelect186 - First188{{"First[188∈0] ➊"}}:::plan - PgSelectRows189[["PgSelectRows[189∈0] ➊"]]:::plan - PgSelectRows189 --> First188 - PgSelect186 --> PgSelectRows189 - PgSelectSingle190{{"PgSelectSingle[190∈0] ➊
ᐸfunc_out_tableᐳ"}}:::plan - First188 --> PgSelectSingle190 - PgSelect211[["PgSelect[211∈0] ➊
ᐸfunc_out_unnamedᐳ"]]:::plan - Object11 --> PgSelect211 - First213{{"First[213∈0] ➊"}}:::plan - PgSelectRows214[["PgSelectRows[214∈0] ➊"]]:::plan - PgSelectRows214 --> First213 - PgSelect211 --> PgSelectRows214 - PgSelectSingle215{{"PgSelectSingle[215∈0] ➊
ᐸfunc_out_unnamedᐳ"}}:::plan - First213 --> PgSelectSingle215 - PgClassExpression216{{"PgClassExpression[216∈0] ➊
ᐸ__func_out_unnamed__.vᐳ"}}:::plan - PgSelectSingle215 --> PgClassExpression216 - PgSelect217[["PgSelect[217∈0] ➊
ᐸfunc_out_unnamed_out_out_unnamedᐳ"]]:::plan - Object11 --> PgSelect217 - First219{{"First[219∈0] ➊"}}:::plan - PgSelectRows220[["PgSelectRows[220∈0] ➊"]]:::plan - PgSelectRows220 --> First219 - PgSelect217 --> PgSelectRows220 - PgSelectSingle221{{"PgSelectSingle[221∈0] ➊
ᐸfunc_out_unnamed_out_out_unnamedᐳ"}}:::plan - First219 --> PgSelectSingle221 - First257{{"First[257∈0] ➊"}}:::plan - PgSelectRows258[["PgSelectRows[258∈0] ➊"]]:::plan - PgSelectRows258 --> First257 - PgSelect255 --> PgSelectRows258 - PgSelectSingle259{{"PgSelectSingle[259∈0] ➊
ᐸpersonᐳ"}}:::plan - First257 --> PgSelectSingle259 - First365{{"First[365∈0] ➊"}}:::plan - PgSelectRows366[["PgSelectRows[366∈0] ➊"]]:::plan - PgSelectRows366 --> First365 - PgSelect363 --> PgSelectRows366 - PgSelectSingle367{{"PgSelectSingle[367∈0] ➊
ᐸquery_output_two_rowsᐳ"}}:::plan - First365 --> PgSelectSingle367 - First434{{"First[434∈0] ➊"}}:::plan - PgSelectRows435[["PgSelectRows[435∈0] ➊"]]:::plan - PgSelectRows435 --> First434 - PgSelect432 --> PgSelectRows435 - PgSelectSingle436{{"PgSelectSingle[436∈0] ➊
ᐸquery_output_two_rowsᐳ"}}:::plan - First434 --> PgSelectSingle436 - PgSelect498[["PgSelect[498∈0] ➊
ᐸsearch_test_summariesᐳ"]]:::plan - Object11 --> PgSelect498 - PgSelectRows500[["PgSelectRows[500∈0] ➊"]]:::plan - PgSelect498 --> PgSelectRows500 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant54{{"Constant[54∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Connection66{{"Connection[66∈0] ➊
ᐸ62ᐳ"}}:::plan - Constant71{{"Constant[71∈0] ➊
ᐸ'posts'ᐳ"}}:::plan - Connection79{{"Connection[79∈0] ➊
ᐸ77ᐳ"}}:::plan - Connection113{{"Connection[113∈0] ➊
ᐸ109ᐳ"}}:::plan - Connection154{{"Connection[154∈0] ➊
ᐸ152ᐳ"}}:::plan - Connection175{{"Connection[175∈0] ➊
ᐸ173ᐳ"}}:::plan - Connection197{{"Connection[197∈0] ➊
ᐸ195ᐳ"}}:::plan - Connection228{{"Connection[228∈0] ➊
ᐸ226ᐳ"}}:::plan - Connection243{{"Connection[243∈0] ➊
ᐸ241ᐳ"}}:::plan - Connection304{{"Connection[304∈0] ➊
ᐸ300ᐳ"}}:::plan - Constant511{{"Constant[511∈0] ➊
ᐸ20ᐳ"}}:::plan - PgSelect38[["PgSelect[38∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression37{{"PgClassExpression[37∈1] ➊
ᐸ__func_out...plex__.”y”ᐳ"}}:::plan - Object11 & PgClassExpression37 --> PgSelect38 - PgSelect49[["PgSelect[49∈1] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression48{{"PgClassExpression[48∈1] ➊
ᐸ__func_out...plex__.”z”ᐳ"}}:::plan - Object11 & PgClassExpression48 --> PgSelect49 - PgClassExpression36{{"PgClassExpression[36∈1] ➊
ᐸ__func_out...plex__.”x”ᐳ"}}:::plan - PgSelectSingle35 --> PgClassExpression36 - PgSelectSingle35 --> PgClassExpression37 - First42{{"First[42∈1] ➊"}}:::plan - PgSelectRows43[["PgSelectRows[43∈1] ➊"]]:::plan - PgSelectRows43 --> First42 - PgSelect38 --> PgSelectRows43 - PgSelectSingle44{{"PgSelectSingle[44∈1] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First42 --> PgSelectSingle44 - PgSelectSingle35 --> PgClassExpression48 - First51{{"First[51∈1] ➊"}}:::plan - PgSelectRows52[["PgSelectRows[52∈1] ➊"]]:::plan - PgSelectRows52 --> First51 - PgSelect49 --> PgSelectRows52 - PgSelectSingle53{{"PgSelectSingle[53∈1] ➊
ᐸpersonᐳ"}}:::plan - First51 --> PgSelectSingle53 - PgClassExpression45{{"PgClassExpression[45∈2] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈2] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈2] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression47 - PgSelect67[["PgSelect[67∈3] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression55{{"PgClassExpression[55∈3] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression55 & Connection66 --> PgSelect67 - List56{{"List[56∈3] ➊
ᐸ54,55ᐳ"}}:::plan - Constant54 & PgClassExpression55 --> List56 - PgSelectSingle53 --> PgClassExpression55 - Lambda57{{"Lambda[57∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List56 --> Lambda57 - PgClassExpression58{{"PgClassExpression[58∈3] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression58 - PgSelectRows68[["PgSelectRows[68∈3] ➊"]]:::plan - PgSelect67 --> PgSelectRows68 - __Item69[/"__Item[69∈4]
ᐸ68ᐳ"\]:::itemplan - PgSelectRows68 ==> __Item69 - PgSelectSingle70{{"PgSelectSingle[70∈4]
ᐸpostᐳ"}}:::plan - __Item69 --> PgSelectSingle70 - List73{{"List[73∈5]
ᐸ71,72ᐳ"}}:::plan - PgClassExpression72{{"PgClassExpression[72∈5]
ᐸ__post__.”id”ᐳ"}}:::plan - Constant71 & PgClassExpression72 --> List73 - PgSelectSingle70 --> PgClassExpression72 - Lambda74{{"Lambda[74∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan - List73 --> Lambda74 - PgSelect80[["PgSelect[80∈6] ➊
ᐸfunc_out_complex_setofᐳ"]]:::plan - Object11 & Constant509 & Constant510 & Connection79 --> PgSelect80 - PgSelect122[["PgSelect[122∈6] ➊
ᐸfunc_out_complex_setof(aggregate)ᐳ"]]:::plan - Object11 & Constant509 & Constant510 & Connection79 --> PgSelect122 - PgSelectRows81[["PgSelectRows[81∈6] ➊"]]:::plan - PgSelect80 --> PgSelectRows81 - First123{{"First[123∈6] ➊"}}:::plan - PgSelectRows124[["PgSelectRows[124∈6] ➊"]]:::plan - PgSelectRows124 --> First123 - PgSelect122 --> PgSelectRows124 - PgSelectSingle125{{"PgSelectSingle[125∈6] ➊
ᐸfunc_out_complex_setofᐳ"}}:::plan - First123 --> PgSelectSingle125 - PgClassExpression126{{"PgClassExpression[126∈6] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle125 --> PgClassExpression126 - __Item82[/"__Item[82∈7]
ᐸ81ᐳ"\]:::itemplan - PgSelectRows81 ==> __Item82 - PgSelectSingle83{{"PgSelectSingle[83∈7]
ᐸfunc_out_complex_setofᐳ"}}:::plan - __Item82 --> PgSelectSingle83 - PgSelect86[["PgSelect[86∈8]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression85{{"PgClassExpression[85∈8]
ᐸ__func_out...etof__.”y”ᐳ"}}:::plan - Object11 & PgClassExpression85 --> PgSelect86 - PgSelect97[["PgSelect[97∈8]
ᐸpersonᐳ"]]:::plan - PgClassExpression96{{"PgClassExpression[96∈8]
ᐸ__func_out...etof__.”z”ᐳ"}}:::plan - Object11 & PgClassExpression96 --> PgSelect97 - PgClassExpression84{{"PgClassExpression[84∈8]
ᐸ__func_out...etof__.”x”ᐳ"}}:::plan - PgSelectSingle83 --> PgClassExpression84 - PgSelectSingle83 --> PgClassExpression85 - First90{{"First[90∈8]"}}:::plan - PgSelectRows91[["PgSelectRows[91∈8]"]]:::plan - PgSelectRows91 --> First90 - PgSelect86 --> PgSelectRows91 - PgSelectSingle92{{"PgSelectSingle[92∈8]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First90 --> PgSelectSingle92 - PgSelectSingle83 --> PgClassExpression96 - First99{{"First[99∈8]"}}:::plan - PgSelectRows100[["PgSelectRows[100∈8]"]]:::plan - PgSelectRows100 --> First99 - PgSelect97 --> PgSelectRows100 - PgSelectSingle101{{"PgSelectSingle[101∈8]
ᐸpersonᐳ"}}:::plan - First99 --> PgSelectSingle101 - PgClassExpression93{{"PgClassExpression[93∈9]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression93 - PgClassExpression94{{"PgClassExpression[94∈9]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression94 - PgClassExpression95{{"PgClassExpression[95∈9]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression95 - PgSelect114[["PgSelect[114∈10]
ᐸpostᐳ"]]:::plan - PgClassExpression103{{"PgClassExpression[103∈10]
ᐸ__person__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression103 & Connection113 --> PgSelect114 - List104{{"List[104∈10]
ᐸ54,103ᐳ"}}:::plan - Constant54 & PgClassExpression103 --> List104 - PgSelectSingle101 --> PgClassExpression103 - Lambda105{{"Lambda[105∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan - List104 --> Lambda105 - PgClassExpression106{{"PgClassExpression[106∈10]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle101 --> PgClassExpression106 - PgSelectRows115[["PgSelectRows[115∈10]"]]:::plan - PgSelect114 --> PgSelectRows115 - __Item116[/"__Item[116∈11]
ᐸ115ᐳ"\]:::itemplan - PgSelectRows115 ==> __Item116 - PgSelectSingle117{{"PgSelectSingle[117∈11]
ᐸpostᐳ"}}:::plan - __Item116 --> PgSelectSingle117 - List120{{"List[120∈12]
ᐸ71,119ᐳ"}}:::plan - PgClassExpression119{{"PgClassExpression[119∈12]
ᐸ__post__.”id”ᐳ"}}:::plan - Constant71 & PgClassExpression119 --> List120 - PgSelectSingle117 --> PgClassExpression119 - Lambda121{{"Lambda[121∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan - List120 --> Lambda121 - PgClassExpression132{{"PgClassExpression[132∈13] ➊
ᐸ__func_out...first_out”ᐳ"}}:::plan - PgSelectSingle131 --> PgClassExpression132 - PgClassExpression133{{"PgClassExpression[133∈13] ➊
ᐸ__func_out...econd_out”ᐳ"}}:::plan - PgSelectSingle131 --> PgClassExpression133 - PgSelect142[["PgSelect[142∈14] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression141{{"PgClassExpression[141∈14] ➊
ᐸ__func_out...ype__.”o2”ᐳ"}}:::plan - Object11 & PgClassExpression141 --> PgSelect142 - PgClassExpression140{{"PgClassExpression[140∈14] ➊
ᐸ__func_out...ype__.”o1”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression140 - PgSelectSingle139 --> PgClassExpression141 - First146{{"First[146∈14] ➊"}}:::plan - PgSelectRows147[["PgSelectRows[147∈14] ➊"]]:::plan - PgSelectRows147 --> First146 - PgSelect142 --> PgSelectRows147 - PgSelectSingle148{{"PgSelectSingle[148∈14] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First146 --> PgSelectSingle148 - PgClassExpression149{{"PgClassExpression[149∈15] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle148 --> PgClassExpression149 - PgClassExpression150{{"PgClassExpression[150∈15] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle148 --> PgClassExpression150 - PgClassExpression151{{"PgClassExpression[151∈15] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle148 --> PgClassExpression151 - PgSelect155[["PgSelect[155∈16] ➊
ᐸfunc_out_out_setofᐳ"]]:::plan - Object11 & Connection154 --> PgSelect155 - PgSelect161[["PgSelect[161∈16] ➊
ᐸfunc_out_out_setof(aggregate)ᐳ"]]:::plan - Object11 & Connection154 --> PgSelect161 - PgSelectRows156[["PgSelectRows[156∈16] ➊"]]:::plan - PgSelect155 --> PgSelectRows156 - First162{{"First[162∈16] ➊"}}:::plan - PgSelectRows163[["PgSelectRows[163∈16] ➊"]]:::plan - PgSelectRows163 --> First162 - PgSelect161 --> PgSelectRows163 - PgSelectSingle164{{"PgSelectSingle[164∈16] ➊
ᐸfunc_out_out_setofᐳ"}}:::plan - First162 --> PgSelectSingle164 - PgClassExpression165{{"PgClassExpression[165∈16] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle164 --> PgClassExpression165 - __Item157[/"__Item[157∈17]
ᐸ156ᐳ"\]:::itemplan - PgSelectRows156 ==> __Item157 - PgSelectSingle158{{"PgSelectSingle[158∈17]
ᐸfunc_out_out_setofᐳ"}}:::plan - __Item157 --> PgSelectSingle158 - PgClassExpression159{{"PgClassExpression[159∈18]
ᐸ__func_out...tof__.”o1”ᐳ"}}:::plan - PgSelectSingle158 --> PgClassExpression159 - PgClassExpression160{{"PgClassExpression[160∈18]
ᐸ__func_out...tof__.”o2”ᐳ"}}:::plan - PgSelectSingle158 --> PgClassExpression160 - PgClassExpression171{{"PgClassExpression[171∈19] ➊
ᐸ__func_out....”column1”ᐳ"}}:::plan - PgSelectSingle170 --> PgClassExpression171 - PgClassExpression172{{"PgClassExpression[172∈19] ➊
ᐸ__func_out....”column2”ᐳ"}}:::plan - PgSelectSingle170 --> PgClassExpression172 - PgSelect176[["PgSelect[176∈20] ➊
ᐸfunc_out_setofᐳ"]]:::plan - Object11 & Connection175 --> PgSelect176 - PgSelect181[["PgSelect[181∈20] ➊
ᐸfunc_out_setof(aggregate)ᐳ"]]:::plan - Object11 & Connection175 --> PgSelect181 - PgSelectRows177[["PgSelectRows[177∈20] ➊"]]:::plan - PgSelect176 --> PgSelectRows177 - First182{{"First[182∈20] ➊"}}:::plan - PgSelectRows183[["PgSelectRows[183∈20] ➊"]]:::plan - PgSelectRows183 --> First182 - PgSelect181 --> PgSelectRows183 - PgSelectSingle184{{"PgSelectSingle[184∈20] ➊
ᐸfunc_out_setofᐳ"}}:::plan - First182 --> PgSelectSingle184 - PgClassExpression185{{"PgClassExpression[185∈20] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle184 --> PgClassExpression185 - __Item178[/"__Item[178∈21]
ᐸ177ᐳ"\]:::itemplan - PgSelectRows177 ==> __Item178 - PgSelectSingle179{{"PgSelectSingle[179∈21]
ᐸfunc_out_setofᐳ"}}:::plan - __Item178 --> PgSelectSingle179 - PgClassExpression180{{"PgClassExpression[180∈21]
ᐸ__func_out_setof__.vᐳ"}}:::plan - PgSelectSingle179 --> PgClassExpression180 - List193{{"List[193∈22] ➊
ᐸ54,192ᐳ"}}:::plan - PgClassExpression192{{"PgClassExpression[192∈22] ➊
ᐸ__func_out_table__.”id”ᐳ"}}:::plan - Constant54 & PgClassExpression192 --> List193 - PgSelectSingle190 --> PgClassExpression192 - Lambda194{{"Lambda[194∈22] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List193 --> Lambda194 - PgSelect198[["PgSelect[198∈23] ➊
ᐸfunc_out_table_setofᐳ"]]:::plan - Object11 & Connection197 --> PgSelect198 - PgSelect206[["PgSelect[206∈23] ➊
ᐸfunc_out_table_setof(aggregate)ᐳ"]]:::plan - Object11 & Connection197 --> PgSelect206 - PgSelectRows199[["PgSelectRows[199∈23] ➊"]]:::plan - PgSelect198 --> PgSelectRows199 - First207{{"First[207∈23] ➊"}}:::plan - PgSelectRows208[["PgSelectRows[208∈23] ➊"]]:::plan - PgSelectRows208 --> First207 - PgSelect206 --> PgSelectRows208 - PgSelectSingle209{{"PgSelectSingle[209∈23] ➊
ᐸfunc_out_table_setofᐳ"}}:::plan - First207 --> PgSelectSingle209 - PgClassExpression210{{"PgClassExpression[210∈23] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle209 --> PgClassExpression210 - __Item200[/"__Item[200∈24]
ᐸ199ᐳ"\]:::itemplan - PgSelectRows199 ==> __Item200 - PgSelectSingle201{{"PgSelectSingle[201∈24]
ᐸfunc_out_table_setofᐳ"}}:::plan - __Item200 --> PgSelectSingle201 - List204{{"List[204∈25]
ᐸ54,203ᐳ"}}:::plan - PgClassExpression203{{"PgClassExpression[203∈25]
ᐸ__func_out...tof__.”id”ᐳ"}}:::plan - Constant54 & PgClassExpression203 --> List204 - PgSelectSingle201 --> PgClassExpression203 - Lambda205{{"Lambda[205∈25]
ᐸbase64JSONEncodeᐳ"}}:::plan - List204 --> Lambda205 - PgClassExpression222{{"PgClassExpression[222∈26] ➊
ᐸ__func_out....”column1”ᐳ"}}:::plan - PgSelectSingle221 --> PgClassExpression222 - PgClassExpression223{{"PgClassExpression[223∈26] ➊
ᐸ__func_out....”column3”ᐳ"}}:::plan - PgSelectSingle221 --> PgClassExpression223 - PgClassExpression224{{"PgClassExpression[224∈26] ➊
ᐸ__func_out...med__.”o2”ᐳ"}}:::plan - PgSelectSingle221 --> PgClassExpression224 - PgSelect229[["PgSelect[229∈27] ➊
ᐸfunc_returns_table_multi_colᐳ"]]:::plan - Object11 & Constant511 & Connection228 --> PgSelect229 - PgSelect235[["PgSelect[235∈27] ➊
ᐸfunc_returns_table_multi_col(aggregate)ᐳ"]]:::plan - Object11 & Constant511 & Connection228 --> PgSelect235 - PgSelectRows230[["PgSelectRows[230∈27] ➊"]]:::plan - PgSelect229 --> PgSelectRows230 - First236{{"First[236∈27] ➊"}}:::plan - PgSelectRows237[["PgSelectRows[237∈27] ➊"]]:::plan - PgSelectRows237 --> First236 - PgSelect235 --> PgSelectRows237 - PgSelectSingle238{{"PgSelectSingle[238∈27] ➊
ᐸfunc_returns_table_multi_colᐳ"}}:::plan - First236 --> PgSelectSingle238 - PgClassExpression239{{"PgClassExpression[239∈27] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle238 --> PgClassExpression239 - __Item231[/"__Item[231∈28]
ᐸ230ᐳ"\]:::itemplan - PgSelectRows230 ==> __Item231 - PgSelectSingle232{{"PgSelectSingle[232∈28]
ᐸfunc_returns_table_multi_colᐳ"}}:::plan - __Item231 --> PgSelectSingle232 - PgClassExpression233{{"PgClassExpression[233∈29]
ᐸ__func_ret...l__.”col1”ᐳ"}}:::plan - PgSelectSingle232 --> PgClassExpression233 - PgClassExpression234{{"PgClassExpression[234∈29]
ᐸ__func_ret...l__.”col2”ᐳ"}}:::plan - PgSelectSingle232 --> PgClassExpression234 - PgSelect244[["PgSelect[244∈30] ➊
ᐸfunc_returns_table_one_colᐳ"]]:::plan - Object11 & Constant511 & Connection243 --> PgSelect244 - PgSelect249[["PgSelect[249∈30] ➊
ᐸfunc_returns_table_one_col(aggregate)ᐳ"]]:::plan - Object11 & Constant511 & Connection243 --> PgSelect249 - PgSelectRows245[["PgSelectRows[245∈30] ➊"]]:::plan - PgSelect244 --> PgSelectRows245 - First250{{"First[250∈30] ➊"}}:::plan - PgSelectRows251[["PgSelectRows[251∈30] ➊"]]:::plan - PgSelectRows251 --> First250 - PgSelect249 --> PgSelectRows251 - PgSelectSingle252{{"PgSelectSingle[252∈30] ➊
ᐸfunc_returns_table_one_colᐳ"}}:::plan - First250 --> PgSelectSingle252 - PgClassExpression253{{"PgClassExpression[253∈30] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle252 --> PgClassExpression253 - __Item246[/"__Item[246∈31]
ᐸ245ᐳ"\]:::itemplan - PgSelectRows245 ==> __Item246 - PgSelectSingle247{{"PgSelectSingle[247∈31]
ᐸfunc_returns_table_one_colᐳ"}}:::plan - __Item246 --> PgSelectSingle247 - PgClassExpression248{{"PgClassExpression[248∈31]
ᐸ__func_ret...ne_col__.vᐳ"}}:::plan - PgSelectSingle247 --> PgClassExpression248 - PgSelect268[["PgSelect[268∈32] ➊
ᐸperson_computed_complexᐳ"]]:::plan - PgClassExpression267{{"PgClassExpression[267∈32] ➊
ᐸ__person__ᐳ"}}:::plan - Object11 & PgClassExpression267 & Constant509 & Constant510 --> PgSelect268 - PgSelect343[["PgSelect[343∈32] ➊
ᐸperson_computed_inout_outᐳ"]]:::plan - Object11 & PgClassExpression267 & Constant510 --> PgSelect343 - List262{{"List[262∈32] ➊
ᐸ54,261ᐳ"}}:::plan - PgClassExpression261{{"PgClassExpression[261∈32] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant54 & PgClassExpression261 --> List262 - PgSelect314[["PgSelect[314∈32] ➊
ᐸperson_computed_first_arg_inoutᐳ"]]:::plan - Object11 & PgClassExpression267 --> PgSelect314 - PgSelect322[["PgSelect[322∈32] ➊
ᐸperson_computed_first_arg_inout_outᐳ"]]:::plan - Object11 & PgClassExpression267 --> PgSelect322 - PgSelect353[["PgSelect[353∈32] ➊
ᐸperson_computed_out_outᐳ"]]:::plan - Object11 & PgClassExpression267 --> PgSelect353 - PgSelectSingle259 --> PgClassExpression261 - Lambda263{{"Lambda[263∈32] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List262 --> Lambda263 - PgClassExpression264{{"PgClassExpression[264∈32] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle259 --> PgClassExpression264 - PgSelectSingle259 --> PgClassExpression267 - First272{{"First[272∈32] ➊"}}:::plan - PgSelectRows273[["PgSelectRows[273∈32] ➊"]]:::plan - PgSelectRows273 --> First272 - PgSelect268 --> PgSelectRows273 - PgSelectSingle274{{"PgSelectSingle[274∈32] ➊
ᐸperson_computed_complexᐳ"}}:::plan - First272 --> PgSelectSingle274 - First316{{"First[316∈32] ➊"}}:::plan - PgSelectRows317[["PgSelectRows[317∈32] ➊"]]:::plan - PgSelectRows317 --> First316 - PgSelect314 --> PgSelectRows317 - PgSelectSingle318{{"PgSelectSingle[318∈32] ➊
ᐸperson_computed_first_arg_inoutᐳ"}}:::plan - First316 --> PgSelectSingle318 - First324{{"First[324∈32] ➊"}}:::plan - PgSelectRows325[["PgSelectRows[325∈32] ➊"]]:::plan - PgSelectRows325 --> First324 - PgSelect322 --> PgSelectRows325 - PgSelectSingle326{{"PgSelectSingle[326∈32] ➊
ᐸperson_computed_first_arg_inout_outᐳ"}}:::plan - First324 --> PgSelectSingle326 - PgClassExpression340{{"PgClassExpression[340∈32] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle259 --> PgClassExpression340 - First345{{"First[345∈32] ➊"}}:::plan - PgSelectRows346[["PgSelectRows[346∈32] ➊"]]:::plan - PgSelectRows346 --> First345 - PgSelect343 --> PgSelectRows346 - PgSelectSingle347{{"PgSelectSingle[347∈32] ➊
ᐸperson_computed_inout_outᐳ"}}:::plan - First345 --> PgSelectSingle347 - PgClassExpression351{{"PgClassExpression[351∈32] ➊
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan - PgSelectSingle259 --> PgClassExpression351 - First355{{"First[355∈32] ➊"}}:::plan - PgSelectRows356[["PgSelectRows[356∈32] ➊"]]:::plan - PgSelectRows356 --> First355 - PgSelect353 --> PgSelectRows356 - PgSelectSingle357{{"PgSelectSingle[357∈32] ➊
ᐸperson_computed_out_outᐳ"}}:::plan - First355 --> PgSelectSingle357 - PgSelect277[["PgSelect[277∈33] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression276{{"PgClassExpression[276∈33] ➊
ᐸ__person_c...plex__.”y”ᐳ"}}:::plan - Object11 & PgClassExpression276 --> PgSelect277 - PgSelect288[["PgSelect[288∈33] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression287{{"PgClassExpression[287∈33] ➊
ᐸ__person_c...plex__.”z”ᐳ"}}:::plan - Object11 & PgClassExpression287 --> PgSelect288 - PgClassExpression275{{"PgClassExpression[275∈33] ➊
ᐸ__person_c...plex__.”x”ᐳ"}}:::plan - PgSelectSingle274 --> PgClassExpression275 - PgSelectSingle274 --> PgClassExpression276 - First281{{"First[281∈33] ➊"}}:::plan - PgSelectRows282[["PgSelectRows[282∈33] ➊"]]:::plan + First13{{"First[13∈0] ➊"}}:::plan + PgSelectRows14[["PgSelectRows[14∈0] ➊"]]:::plan + PgSelectRows14 --> First13 + PgSelect8 --> PgSelectRows14 + PgSelectSingle15{{"PgSelectSingle[15∈0] ➊
ᐸfunc_in_inoutᐳ"}}:::plan + First13 --> PgSelectSingle15 + PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸ__func_in_inout__.vᐳ"}}:::plan + PgSelectSingle15 --> PgClassExpression16 + Constant497 --> PgFromExpression20 + First21{{"First[21∈0] ➊"}}:::plan + PgSelectRows22[["PgSelectRows[22∈0] ➊"]]:::plan + PgSelectRows22 --> First21 + PgSelect18 --> PgSelectRows22 + PgSelectSingle23{{"PgSelectSingle[23∈0] ➊
ᐸfunc_in_outᐳ"}}:::plan + First21 --> PgSelectSingle23 + PgClassExpression24{{"PgClassExpression[24∈0] ➊
ᐸ__func_in_out__.vᐳ"}}:::plan + PgSelectSingle23 --> PgClassExpression24 + PgSelect25[["PgSelect[25∈0] ➊
ᐸfunc_outᐳ"]]:::plan + Object11 --> PgSelect25 + First27{{"First[27∈0] ➊"}}:::plan + PgSelectRows28[["PgSelectRows[28∈0] ➊"]]:::plan + PgSelectRows28 --> First27 + PgSelect25 --> PgSelectRows28 + PgSelectSingle29{{"PgSelectSingle[29∈0] ➊
ᐸfunc_outᐳ"}}:::plan + First27 --> PgSelectSingle29 + PgClassExpression30{{"PgClassExpression[30∈0] ➊
ᐸ__func_out__.vᐳ"}}:::plan + PgSelectSingle29 --> PgClassExpression30 + First36{{"First[36∈0] ➊"}}:::plan + PgSelectRows37[["PgSelectRows[37∈0] ➊"]]:::plan + PgSelectRows37 --> First36 + PgSelect33 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈0] ➊
ᐸfunc_out_complexᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈0] ➊
ᐸ__func_out...plex__.”x”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈0] ➊
ᐸ__func_out...plex__.”y”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 + PgClassExpression40 --> PgFromExpression43 + First44{{"First[44∈0] ➊"}}:::plan + PgSelectRows45[["PgSelectRows[45∈0] ➊"]]:::plan + PgSelectRows45 --> First44 + PgSelect41 --> PgSelectRows45 + PgSelectSingle46{{"PgSelectSingle[46∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First44 --> PgSelectSingle46 + PgClassExpression47{{"PgClassExpression[47∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression47 + PgClassExpression48{{"PgClassExpression[48∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression48 + PgClassExpression49{{"PgClassExpression[49∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression49 + PgClassExpression50{{"PgClassExpression[50∈0] ➊
ᐸ__func_out...plex__.”z”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression50 + PgClassExpression50 --> PgFromExpression53 + First54{{"First[54∈0] ➊"}}:::plan + PgSelectRows55[["PgSelectRows[55∈0] ➊"]]:::plan + PgSelectRows55 --> First54 + PgSelect51 --> PgSelectRows55 + PgSelectSingle56{{"PgSelectSingle[56∈0] ➊
ᐸpersonᐳ"}}:::plan + First54 --> PgSelectSingle56 + PgSelectSingle56 --> PgClassExpression58 + Lambda60{{"Lambda[60∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List59 --> Lambda60 + PgClassExpression61{{"PgClassExpression[61∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle56 --> PgClassExpression61 + PgSelectRows69[["PgSelectRows[69∈0] ➊"]]:::plan + PgSelect68 --> PgSelectRows69 + PgSelectRows83[["PgSelectRows[83∈0] ➊"]]:::plan + PgSelect82 --> PgSelectRows83 + First125{{"First[125∈0] ➊"}}:::plan + PgSelectRows126[["PgSelectRows[126∈0] ➊"]]:::plan + PgSelectRows126 --> First125 + PgSelect124 --> PgSelectRows126 + PgSelectSingle127{{"PgSelectSingle[127∈0] ➊
ᐸfunc_out_complex_setofᐳ"}}:::plan + First125 --> PgSelectSingle127 + PgClassExpression128{{"PgClassExpression[128∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle127 --> PgClassExpression128 + PgSelect129[["PgSelect[129∈0] ➊
ᐸfunc_out_outᐳ"]]:::plan + Object11 --> PgSelect129 + First131{{"First[131∈0] ➊"}}:::plan + PgSelectRows132[["PgSelectRows[132∈0] ➊"]]:::plan + PgSelectRows132 --> First131 + PgSelect129 --> PgSelectRows132 + PgSelectSingle133{{"PgSelectSingle[133∈0] ➊
ᐸfunc_out_outᐳ"}}:::plan + First131 --> PgSelectSingle133 + PgClassExpression134{{"PgClassExpression[134∈0] ➊
ᐸ__func_out...first_out”ᐳ"}}:::plan + PgSelectSingle133 --> PgClassExpression134 + PgClassExpression135{{"PgClassExpression[135∈0] ➊
ᐸ__func_out...econd_out”ᐳ"}}:::plan + PgSelectSingle133 --> PgClassExpression135 + Constant497 --> PgFromExpression139 + First140{{"First[140∈0] ➊"}}:::plan + PgSelectRows141[["PgSelectRows[141∈0] ➊"]]:::plan + PgSelectRows141 --> First140 + PgSelect137 --> PgSelectRows141 + PgSelectSingle142{{"PgSelectSingle[142∈0] ➊
ᐸfunc_out_out_compound_typeᐳ"}}:::plan + First140 --> PgSelectSingle142 + PgClassExpression143{{"PgClassExpression[143∈0] ➊
ᐸ__func_out...ype__.”o1”ᐳ"}}:::plan + PgSelectSingle142 --> PgClassExpression143 + PgClassExpression144{{"PgClassExpression[144∈0] ➊
ᐸ__func_out...ype__.”o2”ᐳ"}}:::plan + PgSelectSingle142 --> PgClassExpression144 + PgClassExpression144 --> PgFromExpression147 + First148{{"First[148∈0] ➊"}}:::plan + PgSelectRows149[["PgSelectRows[149∈0] ➊"]]:::plan + PgSelectRows149 --> First148 + PgSelect145 --> PgSelectRows149 + PgSelectSingle150{{"PgSelectSingle[150∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First148 --> PgSelectSingle150 + PgClassExpression151{{"PgClassExpression[151∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle150 --> PgClassExpression151 + PgClassExpression152{{"PgClassExpression[152∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle150 --> PgClassExpression152 + PgClassExpression153{{"PgClassExpression[153∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle150 --> PgClassExpression153 + PgSelectRows158[["PgSelectRows[158∈0] ➊"]]:::plan + PgSelect157 --> PgSelectRows158 + First164{{"First[164∈0] ➊"}}:::plan + PgSelectRows165[["PgSelectRows[165∈0] ➊"]]:::plan + PgSelectRows165 --> First164 + PgSelect163 --> PgSelectRows165 + PgSelectSingle166{{"PgSelectSingle[166∈0] ➊
ᐸfunc_out_out_setofᐳ"}}:::plan + First164 --> PgSelectSingle166 + PgClassExpression167{{"PgClassExpression[167∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle166 --> PgClassExpression167 + PgSelect168[["PgSelect[168∈0] ➊
ᐸfunc_out_out_unnamedᐳ"]]:::plan + Object11 --> PgSelect168 + First170{{"First[170∈0] ➊"}}:::plan + PgSelectRows171[["PgSelectRows[171∈0] ➊"]]:::plan + PgSelectRows171 --> First170 + PgSelect168 --> PgSelectRows171 + PgSelectSingle172{{"PgSelectSingle[172∈0] ➊
ᐸfunc_out_out_unnamedᐳ"}}:::plan + First170 --> PgSelectSingle172 + PgClassExpression173{{"PgClassExpression[173∈0] ➊
ᐸ__func_out....”column1”ᐳ"}}:::plan + PgSelectSingle172 --> PgClassExpression173 + PgClassExpression174{{"PgClassExpression[174∈0] ➊
ᐸ__func_out....”column2”ᐳ"}}:::plan + PgSelectSingle172 --> PgClassExpression174 + PgSelectRows179[["PgSelectRows[179∈0] ➊"]]:::plan + PgSelect178 --> PgSelectRows179 + First184{{"First[184∈0] ➊"}}:::plan + PgSelectRows185[["PgSelectRows[185∈0] ➊"]]:::plan + PgSelectRows185 --> First184 + PgSelect183 --> PgSelectRows185 + PgSelectSingle186{{"PgSelectSingle[186∈0] ➊
ᐸfunc_out_setofᐳ"}}:::plan + First184 --> PgSelectSingle186 + PgClassExpression187{{"PgClassExpression[187∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle186 --> PgClassExpression187 + PgSelect188[["PgSelect[188∈0] ➊
ᐸfunc_out_tableᐳ"]]:::plan + Object11 --> PgSelect188 + First190{{"First[190∈0] ➊"}}:::plan + PgSelectRows191[["PgSelectRows[191∈0] ➊"]]:::plan + PgSelectRows191 --> First190 + PgSelect188 --> PgSelectRows191 + PgSelectSingle192{{"PgSelectSingle[192∈0] ➊
ᐸfunc_out_tableᐳ"}}:::plan + First190 --> PgSelectSingle192 + PgSelectSingle192 --> PgClassExpression193 + Lambda195{{"Lambda[195∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List194 --> Lambda195 + PgSelectRows200[["PgSelectRows[200∈0] ➊"]]:::plan + PgSelect199 --> PgSelectRows200 + First208{{"First[208∈0] ➊"}}:::plan + PgSelectRows209[["PgSelectRows[209∈0] ➊"]]:::plan + PgSelectRows209 --> First208 + PgSelect207 --> PgSelectRows209 + PgSelectSingle210{{"PgSelectSingle[210∈0] ➊
ᐸfunc_out_table_setofᐳ"}}:::plan + First208 --> PgSelectSingle210 + PgClassExpression211{{"PgClassExpression[211∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle210 --> PgClassExpression211 + PgSelect212[["PgSelect[212∈0] ➊
ᐸfunc_out_unnamedᐳ"]]:::plan + Object11 --> PgSelect212 + First214{{"First[214∈0] ➊"}}:::plan + PgSelectRows215[["PgSelectRows[215∈0] ➊"]]:::plan + PgSelectRows215 --> First214 + PgSelect212 --> PgSelectRows215 + PgSelectSingle216{{"PgSelectSingle[216∈0] ➊
ᐸfunc_out_unnamedᐳ"}}:::plan + First214 --> PgSelectSingle216 + PgClassExpression217{{"PgClassExpression[217∈0] ➊
ᐸ__func_out_unnamed__.vᐳ"}}:::plan + PgSelectSingle216 --> PgClassExpression217 + PgSelect218[["PgSelect[218∈0] ➊
ᐸfunc_out_unnamed_out_out_unnamedᐳ"]]:::plan + Object11 --> PgSelect218 + First220{{"First[220∈0] ➊"}}:::plan + PgSelectRows221[["PgSelectRows[221∈0] ➊"]]:::plan + PgSelectRows221 --> First220 + PgSelect218 --> PgSelectRows221 + PgSelectSingle222{{"PgSelectSingle[222∈0] ➊
ᐸfunc_out_unnamed_out_out_unnamedᐳ"}}:::plan + First220 --> PgSelectSingle222 + PgClassExpression223{{"PgClassExpression[223∈0] ➊
ᐸ__func_out....”column1”ᐳ"}}:::plan + PgSelectSingle222 --> PgClassExpression223 + PgClassExpression224{{"PgClassExpression[224∈0] ➊
ᐸ__func_out....”column3”ᐳ"}}:::plan + PgSelectSingle222 --> PgClassExpression224 + PgClassExpression225{{"PgClassExpression[225∈0] ➊
ᐸ__func_out...med__.”o2”ᐳ"}}:::plan + PgSelectSingle222 --> PgClassExpression225 + PgSelectRows232[["PgSelectRows[232∈0] ➊"]]:::plan + PgSelect231 --> PgSelectRows232 + First238{{"First[238∈0] ➊"}}:::plan + PgSelectRows239[["PgSelectRows[239∈0] ➊"]]:::plan + PgSelectRows239 --> First238 + PgSelect237 --> PgSelectRows239 + PgSelectSingle240{{"PgSelectSingle[240∈0] ➊
ᐸfunc_returns_table_multi_colᐳ"}}:::plan + First238 --> PgSelectSingle240 + PgClassExpression241{{"PgClassExpression[241∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle240 --> PgClassExpression241 + Constant501 --> PgFromExpression245 + PgSelectRows248[["PgSelectRows[248∈0] ➊"]]:::plan + PgSelect247 --> PgSelectRows248 + First253{{"First[253∈0] ➊"}}:::plan + PgSelectRows254[["PgSelectRows[254∈0] ➊"]]:::plan + PgSelectRows254 --> First253 + PgSelect252 --> PgSelectRows254 + PgSelectSingle255{{"PgSelectSingle[255∈0] ➊
ᐸfunc_returns_table_one_colᐳ"}}:::plan + First253 --> PgSelectSingle255 + PgClassExpression256{{"PgClassExpression[256∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle255 --> PgClassExpression256 + First260{{"First[260∈0] ➊"}}:::plan + PgSelectRows261[["PgSelectRows[261∈0] ➊"]]:::plan + PgSelectRows261 --> First260 + PgSelect258 --> PgSelectRows261 + PgSelectSingle262{{"PgSelectSingle[262∈0] ➊
ᐸpersonᐳ"}}:::plan + First260 --> PgSelectSingle262 + PgSelectSingle262 --> PgClassExpression263 + Lambda265{{"Lambda[265∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List264 --> Lambda265 + PgClassExpression266{{"PgClassExpression[266∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle262 --> PgClassExpression266 + PgSelectSingle262 --> PgClassExpression269 + First273{{"First[273∈0] ➊"}}:::plan + PgSelectRows274[["PgSelectRows[274∈0] ➊"]]:::plan + PgSelectRows274 --> First273 + PgSelect270 --> PgSelectRows274 + PgSelectSingle275{{"PgSelectSingle[275∈0] ➊
ᐸperson_computed_complexᐳ"}}:::plan + First273 --> PgSelectSingle275 + PgClassExpression276{{"PgClassExpression[276∈0] ➊
ᐸ__person_c...plex__.”x”ᐳ"}}:::plan + PgSelectSingle275 --> PgClassExpression276 + PgClassExpression277{{"PgClassExpression[277∈0] ➊
ᐸ__person_c...plex__.”y”ᐳ"}}:::plan + PgSelectSingle275 --> PgClassExpression277 + PgClassExpression277 --> PgFromExpression280 + First281{{"First[281∈0] ➊"}}:::plan + PgSelectRows282[["PgSelectRows[282∈0] ➊"]]:::plan PgSelectRows282 --> First281 - PgSelect277 --> PgSelectRows282 - PgSelectSingle283{{"PgSelectSingle[283∈33] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + PgSelect278 --> PgSelectRows282 + PgSelectSingle283{{"PgSelectSingle[283∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan First281 --> PgSelectSingle283 - PgSelectSingle274 --> PgClassExpression287 - First290{{"First[290∈33] ➊"}}:::plan - PgSelectRows291[["PgSelectRows[291∈33] ➊"]]:::plan - PgSelectRows291 --> First290 - PgSelect288 --> PgSelectRows291 - PgSelectSingle292{{"PgSelectSingle[292∈33] ➊
ᐸpersonᐳ"}}:::plan - First290 --> PgSelectSingle292 - PgClassExpression284{{"PgClassExpression[284∈34] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgClassExpression284{{"PgClassExpression[284∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan PgSelectSingle283 --> PgClassExpression284 - PgClassExpression285{{"PgClassExpression[285∈34] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgClassExpression285{{"PgClassExpression[285∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan PgSelectSingle283 --> PgClassExpression285 - PgClassExpression286{{"PgClassExpression[286∈34] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgClassExpression286{{"PgClassExpression[286∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan PgSelectSingle283 --> PgClassExpression286 - PgSelect305[["PgSelect[305∈35] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression294{{"PgClassExpression[294∈35] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression294 & Connection304 --> PgSelect305 - List295{{"List[295∈35] ➊
ᐸ54,294ᐳ"}}:::plan - Constant54 & PgClassExpression294 --> List295 - PgSelectSingle292 --> PgClassExpression294 - Lambda296{{"Lambda[296∈35] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + PgClassExpression287{{"PgClassExpression[287∈0] ➊
ᐸ__person_c...plex__.”z”ᐳ"}}:::plan + PgSelectSingle275 --> PgClassExpression287 + PgClassExpression287 --> PgFromExpression290 + First291{{"First[291∈0] ➊"}}:::plan + PgSelectRows292[["PgSelectRows[292∈0] ➊"]]:::plan + PgSelectRows292 --> First291 + PgSelect288 --> PgSelectRows292 + PgSelectSingle293{{"PgSelectSingle[293∈0] ➊
ᐸpersonᐳ"}}:::plan + First291 --> PgSelectSingle293 + PgSelectSingle293 --> PgClassExpression294 + Lambda296{{"Lambda[296∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List295 --> Lambda296 - PgClassExpression297{{"PgClassExpression[297∈35] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle292 --> PgClassExpression297 - PgSelectRows306[["PgSelectRows[306∈35] ➊"]]:::plan - PgSelect305 --> PgSelectRows306 - __Item307[/"__Item[307∈36]
ᐸ306ᐳ"\]:::itemplan - PgSelectRows306 ==> __Item307 - PgSelectSingle308{{"PgSelectSingle[308∈36]
ᐸpostᐳ"}}:::plan - __Item307 --> PgSelectSingle308 - List311{{"List[311∈37]
ᐸ71,310ᐳ"}}:::plan - PgClassExpression310{{"PgClassExpression[310∈37]
ᐸ__post__.”id”ᐳ"}}:::plan - Constant71 & PgClassExpression310 --> List311 - PgSelectSingle308 --> PgClassExpression310 - Lambda312{{"Lambda[312∈37]
ᐸbase64JSONEncodeᐳ"}}:::plan - List311 --> Lambda312 - PgClassExpression319{{"PgClassExpression[319∈38] ➊
ᐸ__person_c...out__.”id”ᐳ"}}:::plan - PgSelectSingle318 --> PgClassExpression319 - PgClassExpression320{{"PgClassExpression[320∈38] ➊
ᐸ__person_c...full_name”ᐳ"}}:::plan - PgSelectSingle318 --> PgClassExpression320 - PgSelect328[["PgSelect[328∈39] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression327{{"PgClassExpression[327∈39] ➊
ᐸ__person_c..._.”person”ᐳ"}}:::plan - Object11 & PgClassExpression327 --> PgSelect328 + PgClassExpression297{{"PgClassExpression[297∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle293 --> PgClassExpression297 + PgSelectRows304[["PgSelectRows[304∈0] ➊"]]:::plan + PgSelect303 --> PgSelectRows304 + PgClassExpression269 --> PgFromExpression314 + First315{{"First[315∈0] ➊"}}:::plan + PgSelectRows316[["PgSelectRows[316∈0] ➊"]]:::plan + PgSelectRows316 --> First315 + PgSelect312 --> PgSelectRows316 + PgSelectSingle317{{"PgSelectSingle[317∈0] ➊
ᐸperson_computed_first_arg_inoutᐳ"}}:::plan + First315 --> PgSelectSingle317 + PgClassExpression318{{"PgClassExpression[318∈0] ➊
ᐸ__person_c...out__.”id”ᐳ"}}:::plan + PgSelectSingle317 --> PgClassExpression318 + PgClassExpression319{{"PgClassExpression[319∈0] ➊
ᐸ__person_c...full_name”ᐳ"}}:::plan + PgSelectSingle317 --> PgClassExpression319 + PgClassExpression269 --> PgFromExpression323 + First324{{"First[324∈0] ➊"}}:::plan + PgSelectRows325[["PgSelectRows[325∈0] ➊"]]:::plan + PgSelectRows325 --> First324 + PgSelect321 --> PgSelectRows325 + PgSelectSingle326{{"PgSelectSingle[326∈0] ➊
ᐸperson_computed_first_arg_inout_outᐳ"}}:::plan + First324 --> PgSelectSingle326 + PgClassExpression327{{"PgClassExpression[327∈0] ➊
ᐸ__person_c..._.”person”ᐳ"}}:::plan PgSelectSingle326 --> PgClassExpression327 - First332{{"First[332∈39] ➊"}}:::plan - PgSelectRows333[["PgSelectRows[333∈39] ➊"]]:::plan - PgSelectRows333 --> First332 - PgSelect328 --> PgSelectRows333 - PgSelectSingle334{{"PgSelectSingle[334∈39] ➊
ᐸpersonᐳ"}}:::plan - First332 --> PgSelectSingle334 - PgClassExpression337{{"PgClassExpression[337∈39] ➊
ᐸ__person_c..._out__.”o”ᐳ"}}:::plan - PgSelectSingle326 --> PgClassExpression337 - PgClassExpression335{{"PgClassExpression[335∈40] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle334 --> PgClassExpression335 - PgClassExpression336{{"PgClassExpression[336∈40] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle334 --> PgClassExpression336 - PgClassExpression348{{"PgClassExpression[348∈41] ➊
ᐸ__person_c...ut__.”ino”ᐳ"}}:::plan - PgSelectSingle347 --> PgClassExpression348 - PgClassExpression349{{"PgClassExpression[349∈41] ➊
ᐸ__person_c..._out__.”o”ᐳ"}}:::plan - PgSelectSingle347 --> PgClassExpression349 - PgClassExpression358{{"PgClassExpression[358∈42] ➊
ᐸ__person_c...out__.”o1”ᐳ"}}:::plan - PgSelectSingle357 --> PgClassExpression358 - PgClassExpression359{{"PgClassExpression[359∈42] ➊
ᐸ__person_c...out__.”o2”ᐳ"}}:::plan - PgSelectSingle357 --> PgClassExpression359 - PgSelect369[["PgSelect[369∈43] ➊
ᐸleft_armᐳ"]]:::plan - PgClassExpression368{{"PgClassExpression[368∈43] ➊
ᐸ__query_ou...”left_arm”ᐳ"}}:::plan - Object11 & PgClassExpression368 --> PgSelect369 - PgSelect403[["PgSelect[403∈43] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression402{{"PgClassExpression[402∈43] ➊
ᐸ__query_ou...s__.”post”ᐳ"}}:::plan - Object11 & PgClassExpression402 --> PgSelect403 - PgSelectSingle367 --> PgClassExpression368 - First373{{"First[373∈43] ➊"}}:::plan - PgSelectRows374[["PgSelectRows[374∈43] ➊"]]:::plan - PgSelectRows374 --> First373 - PgSelect369 --> PgSelectRows374 - PgSelectSingle375{{"PgSelectSingle[375∈43] ➊
ᐸleft_armᐳ"}}:::plan - First373 --> PgSelectSingle375 - PgSelectSingle367 --> PgClassExpression402 - First405{{"First[405∈43] ➊"}}:::plan - PgSelectRows406[["PgSelectRows[406∈43] ➊"]]:::plan - PgSelectRows406 --> First405 - PgSelect403 --> PgSelectRows406 - PgSelectSingle407{{"PgSelectSingle[407∈43] ➊
ᐸpostᐳ"}}:::plan - First405 --> PgSelectSingle407 - PgClassExpression428{{"PgClassExpression[428∈43] ➊
ᐸ__query_ou...ws__.”txt”ᐳ"}}:::plan - PgSelectSingle367 --> PgClassExpression428 - PgSelect380[["PgSelect[380∈44] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression379{{"PgClassExpression[379∈44] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan - Object11 & PgClassExpression379 --> PgSelect380 - PgClassExpression376{{"PgClassExpression[376∈44] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan - PgSelectSingle375 --> PgClassExpression376 - PgClassExpression377{{"PgClassExpression[377∈44] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgSelectSingle375 --> PgClassExpression377 - PgClassExpression378{{"PgClassExpression[378∈44] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan - PgSelectSingle375 --> PgClassExpression378 - PgSelectSingle375 --> PgClassExpression379 - First384{{"First[384∈44] ➊"}}:::plan - PgSelectRows385[["PgSelectRows[385∈44] ➊"]]:::plan + PgClassExpression327 --> PgFromExpression330 + First331{{"First[331∈0] ➊"}}:::plan + PgSelectRows332[["PgSelectRows[332∈0] ➊"]]:::plan + PgSelectRows332 --> First331 + PgSelect328 --> PgSelectRows332 + PgSelectSingle333{{"PgSelectSingle[333∈0] ➊
ᐸpersonᐳ"}}:::plan + First331 --> PgSelectSingle333 + PgClassExpression334{{"PgClassExpression[334∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle333 --> PgClassExpression334 + PgClassExpression335{{"PgClassExpression[335∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle333 --> PgClassExpression335 + PgClassExpression336{{"PgClassExpression[336∈0] ➊
ᐸ__person_c..._out__.”o”ᐳ"}}:::plan + PgSelectSingle326 --> PgClassExpression336 + Constant500 --> PgFromExpression339 + PgClassExpression340{{"PgClassExpression[340∈0] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle262 --> PgClassExpression340 + First346{{"First[346∈0] ➊"}}:::plan + PgSelectRows347[["PgSelectRows[347∈0] ➊"]]:::plan + PgSelectRows347 --> First346 + PgSelect343 --> PgSelectRows347 + PgSelectSingle348{{"PgSelectSingle[348∈0] ➊
ᐸperson_computed_inout_outᐳ"}}:::plan + First346 --> PgSelectSingle348 + PgClassExpression349{{"PgClassExpression[349∈0] ➊
ᐸ__person_c...ut__.”ino”ᐳ"}}:::plan + PgSelectSingle348 --> PgClassExpression349 + PgClassExpression350{{"PgClassExpression[350∈0] ➊
ᐸ__person_c..._out__.”o”ᐳ"}}:::plan + PgSelectSingle348 --> PgClassExpression350 + PgClassExpression352{{"PgClassExpression[352∈0] ➊
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan + PgSelectSingle262 --> PgClassExpression352 + PgClassExpression269 --> PgFromExpression356 + First357{{"First[357∈0] ➊"}}:::plan + PgSelectRows358[["PgSelectRows[358∈0] ➊"]]:::plan + PgSelectRows358 --> First357 + PgSelect354 --> PgSelectRows358 + PgSelectSingle359{{"PgSelectSingle[359∈0] ➊
ᐸperson_computed_out_outᐳ"}}:::plan + First357 --> PgSelectSingle359 + PgClassExpression360{{"PgClassExpression[360∈0] ➊
ᐸ__person_c...out__.”o1”ᐳ"}}:::plan + PgSelectSingle359 --> PgClassExpression360 + PgClassExpression361{{"PgClassExpression[361∈0] ➊
ᐸ__person_c...out__.”o2”ᐳ"}}:::plan + PgSelectSingle359 --> PgClassExpression361 + First368{{"First[368∈0] ➊"}}:::plan + PgSelectRows369[["PgSelectRows[369∈0] ➊"]]:::plan + PgSelectRows369 --> First368 + PgSelect365 --> PgSelectRows369 + PgSelectSingle370{{"PgSelectSingle[370∈0] ➊
ᐸquery_output_two_rowsᐳ"}}:::plan + First368 --> PgSelectSingle370 + PgClassExpression371{{"PgClassExpression[371∈0] ➊
ᐸ__query_ou...”left_arm”ᐳ"}}:::plan + PgSelectSingle370 --> PgClassExpression371 + PgClassExpression371 --> PgFromExpression374 + First375{{"First[375∈0] ➊"}}:::plan + PgSelectRows376[["PgSelectRows[376∈0] ➊"]]:::plan + PgSelectRows376 --> First375 + PgSelect372 --> PgSelectRows376 + PgSelectSingle377{{"PgSelectSingle[377∈0] ➊
ᐸleft_armᐳ"}}:::plan + First375 --> PgSelectSingle377 + PgClassExpression378{{"PgClassExpression[378∈0] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + PgSelectSingle377 --> PgClassExpression378 + PgClassExpression379{{"PgClassExpression[379∈0] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + PgSelectSingle377 --> PgClassExpression379 + PgClassExpression380{{"PgClassExpression[380∈0] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan + PgSelectSingle377 --> PgClassExpression380 + PgSelectSingle377 --> PgClassExpression381 + First384{{"First[384∈0] ➊"}}:::plan + PgSelectRows385[["PgSelectRows[385∈0] ➊"]]:::plan PgSelectRows385 --> First384 - PgSelect380 --> PgSelectRows385 - PgSelectSingle386{{"PgSelectSingle[386∈44] ➊
ᐸpersonᐳ"}}:::plan + PgSelect382 --> PgSelectRows385 + PgSelectSingle386{{"PgSelectSingle[386∈0] ➊
ᐸpersonᐳ"}}:::plan First384 --> PgSelectSingle386 - PgSelect389[["PgSelect[389∈45] ➊
ᐸperson_secretᐳ"]]:::plan - PgClassExpression388{{"PgClassExpression[388∈45] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression388 --> PgSelect389 - PgClassExpression387{{"PgClassExpression[387∈45] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression387{{"PgClassExpression[387∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle386 --> PgClassExpression387 PgSelectSingle386 --> PgClassExpression388 - First393{{"First[393∈45] ➊"}}:::plan - PgSelectRows394[["PgSelectRows[394∈45] ➊"]]:::plan - PgSelectRows394 --> First393 - PgSelect389 --> PgSelectRows394 - PgSelectSingle395{{"PgSelectSingle[395∈45] ➊
ᐸperson_secretᐳ"}}:::plan - First393 --> PgSelectSingle395 - PgClassExpression396{{"PgClassExpression[396∈46] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan - PgSelectSingle395 --> PgClassExpression396 - PgSelect411[["PgSelect[411∈47] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression410{{"PgClassExpression[410∈47] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan - Object11 & PgClassExpression410 --> PgSelect411 - PgClassExpression408{{"PgClassExpression[408∈47] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + First391{{"First[391∈0] ➊"}}:::plan + PgSelectRows392[["PgSelectRows[392∈0] ➊"]]:::plan + PgSelectRows392 --> First391 + PgSelect389 --> PgSelectRows392 + PgSelectSingle393{{"PgSelectSingle[393∈0] ➊
ᐸperson_secretᐳ"}}:::plan + First391 --> PgSelectSingle393 + PgClassExpression394{{"PgClassExpression[394∈0] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan + PgSelectSingle393 --> PgClassExpression394 + PgClassExpression401{{"PgClassExpression[401∈0] ➊
ᐸ__query_ou...s__.”post”ᐳ"}}:::plan + PgSelectSingle370 --> PgClassExpression401 + PgClassExpression401 --> PgFromExpression404 + First405{{"First[405∈0] ➊"}}:::plan + PgSelectRows406[["PgSelectRows[406∈0] ➊"]]:::plan + PgSelectRows406 --> First405 + PgSelect402 --> PgSelectRows406 + PgSelectSingle407{{"PgSelectSingle[407∈0] ➊
ᐸpostᐳ"}}:::plan + First405 --> PgSelectSingle407 + PgClassExpression408{{"PgClassExpression[408∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan PgSelectSingle407 --> PgClassExpression408 - PgClassExpression409{{"PgClassExpression[409∈47] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgClassExpression409{{"PgClassExpression[409∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan PgSelectSingle407 --> PgClassExpression409 PgSelectSingle407 --> PgClassExpression410 - First415{{"First[415∈47] ➊"}}:::plan - PgSelectRows416[["PgSelectRows[416∈47] ➊"]]:::plan - PgSelectRows416 --> First415 - PgSelect411 --> PgSelectRows416 - PgSelectSingle417{{"PgSelectSingle[417∈47] ➊
ᐸpersonᐳ"}}:::plan - First415 --> PgSelectSingle417 - PgSelect420[["PgSelect[420∈48] ➊
ᐸperson_secretᐳ"]]:::plan - PgClassExpression419{{"PgClassExpression[419∈48] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression419 --> PgSelect420 - PgClassExpression418{{"PgClassExpression[418∈48] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle417 --> PgClassExpression418 - PgSelectSingle417 --> PgClassExpression419 - First424{{"First[424∈48] ➊"}}:::plan - PgSelectRows425[["PgSelectRows[425∈48] ➊"]]:::plan - PgSelectRows425 --> First424 - PgSelect420 --> PgSelectRows425 - PgSelectSingle426{{"PgSelectSingle[426∈48] ➊
ᐸperson_secretᐳ"}}:::plan - First424 --> PgSelectSingle426 - PgClassExpression427{{"PgClassExpression[427∈49] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan - PgSelectSingle426 --> PgClassExpression427 - PgSelect438[["PgSelect[438∈50] ➊
ᐸleft_armᐳ"]]:::plan - PgClassExpression437{{"PgClassExpression[437∈50] ➊
ᐸ__query_ou...”left_arm”ᐳ"}}:::plan - Object11 & PgClassExpression437 --> PgSelect438 - PgSelect472[["PgSelect[472∈50] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression471{{"PgClassExpression[471∈50] ➊
ᐸ__query_ou...s__.”post”ᐳ"}}:::plan - Object11 & PgClassExpression471 --> PgSelect472 - PgSelectSingle436 --> PgClassExpression437 - First442{{"First[442∈50] ➊"}}:::plan - PgSelectRows443[["PgSelectRows[443∈50] ➊"]]:::plan - PgSelectRows443 --> First442 - PgSelect438 --> PgSelectRows443 - PgSelectSingle444{{"PgSelectSingle[444∈50] ➊
ᐸleft_armᐳ"}}:::plan - First442 --> PgSelectSingle444 - PgSelectSingle436 --> PgClassExpression471 - First474{{"First[474∈50] ➊"}}:::plan - PgSelectRows475[["PgSelectRows[475∈50] ➊"]]:::plan - PgSelectRows475 --> First474 - PgSelect472 --> PgSelectRows475 - PgSelectSingle476{{"PgSelectSingle[476∈50] ➊
ᐸpostᐳ"}}:::plan - First474 --> PgSelectSingle476 - PgClassExpression497{{"PgClassExpression[497∈50] ➊
ᐸ__query_ou...ws__.”txt”ᐳ"}}:::plan - PgSelectSingle436 --> PgClassExpression497 - PgSelect449[["PgSelect[449∈51] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression448{{"PgClassExpression[448∈51] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan - Object11 & PgClassExpression448 --> PgSelect449 - PgClassExpression445{{"PgClassExpression[445∈51] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan - PgSelectSingle444 --> PgClassExpression445 - PgClassExpression446{{"PgClassExpression[446∈51] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgSelectSingle444 --> PgClassExpression446 - PgClassExpression447{{"PgClassExpression[447∈51] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan - PgSelectSingle444 --> PgClassExpression447 - PgSelectSingle444 --> PgClassExpression448 - First453{{"First[453∈51] ➊"}}:::plan - PgSelectRows454[["PgSelectRows[454∈51] ➊"]]:::plan - PgSelectRows454 --> First453 - PgSelect449 --> PgSelectRows454 - PgSelectSingle455{{"PgSelectSingle[455∈51] ➊
ᐸpersonᐳ"}}:::plan - First453 --> PgSelectSingle455 - PgSelect458[["PgSelect[458∈52] ➊
ᐸperson_secretᐳ"]]:::plan - PgClassExpression457{{"PgClassExpression[457∈52] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression457 --> PgSelect458 - PgClassExpression456{{"PgClassExpression[456∈52] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle455 --> PgClassExpression456 - PgSelectSingle455 --> PgClassExpression457 - First462{{"First[462∈52] ➊"}}:::plan - PgSelectRows463[["PgSelectRows[463∈52] ➊"]]:::plan - PgSelectRows463 --> First462 - PgSelect458 --> PgSelectRows463 - PgSelectSingle464{{"PgSelectSingle[464∈52] ➊
ᐸperson_secretᐳ"}}:::plan - First462 --> PgSelectSingle464 - PgClassExpression465{{"PgClassExpression[465∈53] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan - PgSelectSingle464 --> PgClassExpression465 - PgSelect480[["PgSelect[480∈54] ➊
ᐸpersonᐳ"]]:::plan - PgClassExpression479{{"PgClassExpression[479∈54] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan - Object11 & PgClassExpression479 --> PgSelect480 - PgClassExpression477{{"PgClassExpression[477∈54] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle476 --> PgClassExpression477 - PgClassExpression478{{"PgClassExpression[478∈54] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle476 --> PgClassExpression478 - PgSelectSingle476 --> PgClassExpression479 - First484{{"First[484∈54] ➊"}}:::plan - PgSelectRows485[["PgSelectRows[485∈54] ➊"]]:::plan - PgSelectRows485 --> First484 - PgSelect480 --> PgSelectRows485 - PgSelectSingle486{{"PgSelectSingle[486∈54] ➊
ᐸpersonᐳ"}}:::plan - First484 --> PgSelectSingle486 - PgSelect489[["PgSelect[489∈55] ➊
ᐸperson_secretᐳ"]]:::plan - PgClassExpression488{{"PgClassExpression[488∈55] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Object11 & PgClassExpression488 --> PgSelect489 - PgClassExpression487{{"PgClassExpression[487∈55] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle486 --> PgClassExpression487 - PgSelectSingle486 --> PgClassExpression488 - First493{{"First[493∈55] ➊"}}:::plan - PgSelectRows494[["PgSelectRows[494∈55] ➊"]]:::plan - PgSelectRows494 --> First493 - PgSelect489 --> PgSelectRows494 - PgSelectSingle495{{"PgSelectSingle[495∈55] ➊
ᐸperson_secretᐳ"}}:::plan - First493 --> PgSelectSingle495 - PgClassExpression496{{"PgClassExpression[496∈56] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan - PgSelectSingle495 --> PgClassExpression496 - __Item501[/"__Item[501∈57]
ᐸ500ᐳ"\]:::itemplan - PgSelectRows500 ==> __Item501 - PgSelectSingle502{{"PgSelectSingle[502∈57]
ᐸsearch_test_summariesᐳ"}}:::plan - __Item501 --> PgSelectSingle502 - PgClassExpression503{{"PgClassExpression[503∈58]
ᐸ__search_t...ies__.”id”ᐳ"}}:::plan - PgSelectSingle502 --> PgClassExpression503 - PgClassExpression504{{"PgClassExpression[504∈58]
ᐸ__search_t..._duration”ᐳ"}}:::plan - PgSelectSingle502 --> PgClassExpression504 + First413{{"First[413∈0] ➊"}}:::plan + PgSelectRows414[["PgSelectRows[414∈0] ➊"]]:::plan + PgSelectRows414 --> First413 + PgSelect411 --> PgSelectRows414 + PgSelectSingle415{{"PgSelectSingle[415∈0] ➊
ᐸpersonᐳ"}}:::plan + First413 --> PgSelectSingle415 + PgClassExpression416{{"PgClassExpression[416∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle415 --> PgClassExpression416 + PgSelectSingle415 --> PgClassExpression417 + First420{{"First[420∈0] ➊"}}:::plan + PgSelectRows421[["PgSelectRows[421∈0] ➊"]]:::plan + PgSelectRows421 --> First420 + PgSelect418 --> PgSelectRows421 + PgSelectSingle422{{"PgSelectSingle[422∈0] ➊
ᐸperson_secretᐳ"}}:::plan + First420 --> PgSelectSingle422 + PgClassExpression423{{"PgClassExpression[423∈0] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan + PgSelectSingle422 --> PgClassExpression423 + PgClassExpression424{{"PgClassExpression[424∈0] ➊
ᐸ__query_ou...ws__.”txt”ᐳ"}}:::plan + PgSelectSingle370 --> PgClassExpression424 + First431{{"First[431∈0] ➊"}}:::plan + PgSelectRows432[["PgSelectRows[432∈0] ➊"]]:::plan + PgSelectRows432 --> First431 + PgSelect428 --> PgSelectRows432 + PgSelectSingle433{{"PgSelectSingle[433∈0] ➊
ᐸquery_output_two_rowsᐳ"}}:::plan + First431 --> PgSelectSingle433 + PgClassExpression434{{"PgClassExpression[434∈0] ➊
ᐸ__query_ou...”left_arm”ᐳ"}}:::plan + PgSelectSingle433 --> PgClassExpression434 + PgClassExpression434 --> PgFromExpression437 + First438{{"First[438∈0] ➊"}}:::plan + PgSelectRows439[["PgSelectRows[439∈0] ➊"]]:::plan + PgSelectRows439 --> First438 + PgSelect435 --> PgSelectRows439 + PgSelectSingle440{{"PgSelectSingle[440∈0] ➊
ᐸleft_armᐳ"}}:::plan + First438 --> PgSelectSingle440 + PgClassExpression441{{"PgClassExpression[441∈0] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + PgSelectSingle440 --> PgClassExpression441 + PgClassExpression442{{"PgClassExpression[442∈0] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + PgSelectSingle440 --> PgClassExpression442 + PgClassExpression443{{"PgClassExpression[443∈0] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan + PgSelectSingle440 --> PgClassExpression443 + PgSelectSingle440 --> PgClassExpression444 + First447{{"First[447∈0] ➊"}}:::plan + PgSelectRows448[["PgSelectRows[448∈0] ➊"]]:::plan + PgSelectRows448 --> First447 + PgSelect445 --> PgSelectRows448 + PgSelectSingle449{{"PgSelectSingle[449∈0] ➊
ᐸpersonᐳ"}}:::plan + First447 --> PgSelectSingle449 + PgClassExpression450{{"PgClassExpression[450∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle449 --> PgClassExpression450 + PgSelectSingle449 --> PgClassExpression451 + First454{{"First[454∈0] ➊"}}:::plan + PgSelectRows455[["PgSelectRows[455∈0] ➊"]]:::plan + PgSelectRows455 --> First454 + PgSelect452 --> PgSelectRows455 + PgSelectSingle456{{"PgSelectSingle[456∈0] ➊
ᐸperson_secretᐳ"}}:::plan + First454 --> PgSelectSingle456 + PgClassExpression457{{"PgClassExpression[457∈0] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan + PgSelectSingle456 --> PgClassExpression457 + PgClassExpression464{{"PgClassExpression[464∈0] ➊
ᐸ__query_ou...s__.”post”ᐳ"}}:::plan + PgSelectSingle433 --> PgClassExpression464 + PgClassExpression464 --> PgFromExpression467 + First468{{"First[468∈0] ➊"}}:::plan + PgSelectRows469[["PgSelectRows[469∈0] ➊"]]:::plan + PgSelectRows469 --> First468 + PgSelect465 --> PgSelectRows469 + PgSelectSingle470{{"PgSelectSingle[470∈0] ➊
ᐸpostᐳ"}}:::plan + First468 --> PgSelectSingle470 + PgClassExpression471{{"PgClassExpression[471∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle470 --> PgClassExpression471 + PgClassExpression472{{"PgClassExpression[472∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle470 --> PgClassExpression472 + PgSelectSingle470 --> PgClassExpression473 + First476{{"First[476∈0] ➊"}}:::plan + PgSelectRows477[["PgSelectRows[477∈0] ➊"]]:::plan + PgSelectRows477 --> First476 + PgSelect474 --> PgSelectRows477 + PgSelectSingle478{{"PgSelectSingle[478∈0] ➊
ᐸpersonᐳ"}}:::plan + First476 --> PgSelectSingle478 + PgClassExpression479{{"PgClassExpression[479∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle478 --> PgClassExpression479 + PgSelectSingle478 --> PgClassExpression480 + First483{{"First[483∈0] ➊"}}:::plan + PgSelectRows484[["PgSelectRows[484∈0] ➊"]]:::plan + PgSelectRows484 --> First483 + PgSelect481 --> PgSelectRows484 + PgSelectSingle485{{"PgSelectSingle[485∈0] ➊
ᐸperson_secretᐳ"}}:::plan + First483 --> PgSelectSingle485 + PgClassExpression486{{"PgClassExpression[486∈0] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan + PgSelectSingle485 --> PgClassExpression486 + PgClassExpression487{{"PgClassExpression[487∈0] ➊
ᐸ__query_ou...ws__.”txt”ᐳ"}}:::plan + PgSelectSingle433 --> PgClassExpression487 + PgSelectRows490[["PgSelectRows[490∈0] ➊"]]:::plan + PgSelect488 --> PgSelectRows490 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + Constant72{{"Constant[72∈0] ➊
ᐸ'posts'ᐳ"}}:::plan + PgFromExpression92{{"PgFromExpression[92∈0] ➊"}}:::plan + PgFromExpression102{{"PgFromExpression[102∈0] ➊"}}:::plan + List74{{"List[74∈1]
ᐸ72,73ᐳ"}}:::plan + PgClassExpression73{{"PgClassExpression[73∈1]
ᐸ__post__.”id”ᐳ"}}:::plan + Constant72 & PgClassExpression73 --> List74 + __Item70[/"__Item[70∈1]
ᐸ69ᐳ"\]:::itemplan + PgSelectRows69 ==> __Item70 + PgSelectSingle71{{"PgSelectSingle[71∈1]
ᐸpostᐳ"}}:::plan + __Item70 --> PgSelectSingle71 + PgSelectSingle71 --> PgClassExpression73 + Lambda75{{"Lambda[75∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List74 --> Lambda75 + PgSelect116[["PgSelect[116∈2]
ᐸpostᐳ"]]:::plan + PgClassExpression107{{"PgClassExpression[107∈2]
ᐸ__person__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression107 & Connection114 --> PgSelect116 + PgSelect88[["PgSelect[88∈2]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression87{{"PgClassExpression[87∈2]
ᐸ__func_out...etof__.”y”ᐳ"}}:::plan + Object11 & PgClassExpression87 & PgFromExpression92 --> PgSelect88 + PgSelect100[["PgSelect[100∈2]
ᐸpersonᐳ"]]:::plan + PgClassExpression99{{"PgClassExpression[99∈2]
ᐸ__func_out...etof__.”z”ᐳ"}}:::plan + Object11 & PgClassExpression99 & PgFromExpression102 --> PgSelect100 + List108{{"List[108∈2]
ᐸ57,107ᐳ"}}:::plan + Constant57 & PgClassExpression107 --> List108 + __Item84[/"__Item[84∈2]
ᐸ83ᐳ"\]:::itemplan + PgSelectRows83 ==> __Item84 + PgSelectSingle85{{"PgSelectSingle[85∈2]
ᐸfunc_out_complex_setofᐳ"}}:::plan + __Item84 --> PgSelectSingle85 + PgClassExpression86{{"PgClassExpression[86∈2]
ᐸ__func_out...etof__.”x”ᐳ"}}:::plan + PgSelectSingle85 --> PgClassExpression86 + PgSelectSingle85 --> PgClassExpression87 + First93{{"First[93∈2]"}}:::plan + PgSelectRows94[["PgSelectRows[94∈2]"]]:::plan + PgSelectRows94 --> First93 + PgSelect88 --> PgSelectRows94 + PgSelectSingle95{{"PgSelectSingle[95∈2]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First93 --> PgSelectSingle95 + PgClassExpression96{{"PgClassExpression[96∈2]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle95 --> PgClassExpression96 + PgClassExpression97{{"PgClassExpression[97∈2]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle95 --> PgClassExpression97 + PgClassExpression98{{"PgClassExpression[98∈2]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle95 --> PgClassExpression98 + PgSelectSingle85 --> PgClassExpression99 + First103{{"First[103∈2]"}}:::plan + PgSelectRows104[["PgSelectRows[104∈2]"]]:::plan + PgSelectRows104 --> First103 + PgSelect100 --> PgSelectRows104 + PgSelectSingle105{{"PgSelectSingle[105∈2]
ᐸpersonᐳ"}}:::plan + First103 --> PgSelectSingle105 + PgSelectSingle105 --> PgClassExpression107 + Lambda109{{"Lambda[109∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan + List108 --> Lambda109 + PgClassExpression110{{"PgClassExpression[110∈2]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle105 --> PgClassExpression110 + PgSelectRows117[["PgSelectRows[117∈2]"]]:::plan + PgSelect116 --> PgSelectRows117 + List122{{"List[122∈3]
ᐸ72,121ᐳ"}}:::plan + PgClassExpression121{{"PgClassExpression[121∈3]
ᐸ__post__.”id”ᐳ"}}:::plan + Constant72 & PgClassExpression121 --> List122 + __Item118[/"__Item[118∈3]
ᐸ117ᐳ"\]:::itemplan + PgSelectRows117 ==> __Item118 + PgSelectSingle119{{"PgSelectSingle[119∈3]
ᐸpostᐳ"}}:::plan + __Item118 --> PgSelectSingle119 + PgSelectSingle119 --> PgClassExpression121 + Lambda123{{"Lambda[123∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + List122 --> Lambda123 + __Item159[/"__Item[159∈4]
ᐸ158ᐳ"\]:::itemplan + PgSelectRows158 ==> __Item159 + PgSelectSingle160{{"PgSelectSingle[160∈4]
ᐸfunc_out_out_setofᐳ"}}:::plan + __Item159 --> PgSelectSingle160 + PgClassExpression161{{"PgClassExpression[161∈4]
ᐸ__func_out...tof__.”o1”ᐳ"}}:::plan + PgSelectSingle160 --> PgClassExpression161 + PgClassExpression162{{"PgClassExpression[162∈4]
ᐸ__func_out...tof__.”o2”ᐳ"}}:::plan + PgSelectSingle160 --> PgClassExpression162 + __Item180[/"__Item[180∈5]
ᐸ179ᐳ"\]:::itemplan + PgSelectRows179 ==> __Item180 + PgSelectSingle181{{"PgSelectSingle[181∈5]
ᐸfunc_out_setofᐳ"}}:::plan + __Item180 --> PgSelectSingle181 + PgClassExpression182{{"PgClassExpression[182∈5]
ᐸ__func_out_setof__.vᐳ"}}:::plan + PgSelectSingle181 --> PgClassExpression182 + List205{{"List[205∈6]
ᐸ57,204ᐳ"}}:::plan + PgClassExpression204{{"PgClassExpression[204∈6]
ᐸ__func_out...tof__.”id”ᐳ"}}:::plan + Constant57 & PgClassExpression204 --> List205 + __Item201[/"__Item[201∈6]
ᐸ200ᐳ"\]:::itemplan + PgSelectRows200 ==> __Item201 + PgSelectSingle202{{"PgSelectSingle[202∈6]
ᐸfunc_out_table_setofᐳ"}}:::plan + __Item201 --> PgSelectSingle202 + PgSelectSingle202 --> PgClassExpression204 + Lambda206{{"Lambda[206∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan + List205 --> Lambda206 + __Item233[/"__Item[233∈7]
ᐸ232ᐳ"\]:::itemplan + PgSelectRows232 ==> __Item233 + PgSelectSingle234{{"PgSelectSingle[234∈7]
ᐸfunc_returns_table_multi_colᐳ"}}:::plan + __Item233 --> PgSelectSingle234 + PgClassExpression235{{"PgClassExpression[235∈7]
ᐸ__func_ret...l__.”col1”ᐳ"}}:::plan + PgSelectSingle234 --> PgClassExpression235 + PgClassExpression236{{"PgClassExpression[236∈7]
ᐸ__func_ret...l__.”col2”ᐳ"}}:::plan + PgSelectSingle234 --> PgClassExpression236 + __Item249[/"__Item[249∈8]
ᐸ248ᐳ"\]:::itemplan + PgSelectRows248 ==> __Item249 + PgSelectSingle250{{"PgSelectSingle[250∈8]
ᐸfunc_returns_table_one_colᐳ"}}:::plan + __Item249 --> PgSelectSingle250 + PgClassExpression251{{"PgClassExpression[251∈8]
ᐸ__func_ret...ne_col__.vᐳ"}}:::plan + PgSelectSingle250 --> PgClassExpression251 + List309{{"List[309∈9]
ᐸ72,308ᐳ"}}:::plan + PgClassExpression308{{"PgClassExpression[308∈9]
ᐸ__post__.”id”ᐳ"}}:::plan + Constant72 & PgClassExpression308 --> List309 + __Item305[/"__Item[305∈9]
ᐸ304ᐳ"\]:::itemplan + PgSelectRows304 ==> __Item305 + PgSelectSingle306{{"PgSelectSingle[306∈9]
ᐸpostᐳ"}}:::plan + __Item305 --> PgSelectSingle306 + PgSelectSingle306 --> PgClassExpression308 + Lambda310{{"Lambda[310∈9]
ᐸbase64JSONEncodeᐳ"}}:::plan + List309 --> Lambda310 + __Item491[/"__Item[491∈10]
ᐸ490ᐳ"\]:::itemplan + PgSelectRows490 ==> __Item491 + PgSelectSingle492{{"PgSelectSingle[492∈10]
ᐸsearch_test_summariesᐳ"}}:::plan + __Item491 --> PgSelectSingle492 + PgClassExpression493{{"PgClassExpression[493∈10]
ᐸ__search_t...ies__.”id”ᐳ"}}:::plan + PgSelectSingle492 --> PgClassExpression493 + PgClassExpression494{{"PgClassExpression[494∈10]
ᐸ__search_t..._duration”ᐳ"}}:::plan + PgSelectSingle492 --> PgClassExpression494 %% define steps subgraph "Buckets for queries/v4/function-return-types" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 54, 66, 71, 79, 113, 154, 175, 197, 228, 243, 304, 507, 508, 509, 510, 511, 512, 513, 514, 515, 11
2: 8, 17, 23, 31, 127, 135, 166, 186, 211, 217, 255, 363, 432, 498
3: 13, 20, 26, 34, 130, 138, 169, 189, 214, 220, 258, 366, 435, 500
ᐳ: 12, 14, 15, 19, 21, 22, 25, 27, 28, 33, 35, 129, 131, 137, 139, 168, 170, 188, 190, 213, 215, 216, 219, 221, 257, 259, 365, 367, 434, 436"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 57, 62, 72, 92, 102, 497, 498, 499, 500, 501, 502, 503, 504, 505, 11, 12, 20, 35, 66, 80, 81, 114, 139, 156, 177, 198, 229, 230, 245, 246, 301, 339, 367, 430
2: 8, 18, 25, 33, 82, 124, 129, 137, 157, 163, 168, 178, 183, 188, 199, 207, 212, 218, 231, 237, 247, 252, 258, 365, 428, 488
3: 14, 22, 28, 37, 83, 126, 132, 141, 158, 165, 171, 179, 185, 191, 200, 209, 215, 221, 232, 239, 248, 254, 261, 369, 432, 490
ᐳ: 13, 15, 16, 21, 23, 24, 27, 29, 30, 36, 38, 39, 40, 43, 50, 53, 125, 127, 128, 131, 133, 134, 135, 140, 142, 143, 144, 147, 164, 166, 167, 170, 172, 173, 174, 184, 186, 187, 190, 192, 193, 194, 195, 208, 210, 211, 214, 216, 217, 220, 222, 223, 224, 225, 238, 240, 241, 253, 255, 256, 260, 262, 263, 264, 265, 266, 269, 272, 314, 323, 340, 345, 352, 356, 368, 370, 371, 374, 401, 404, 424, 431, 433, 434, 437, 464, 467, 487
4: 41, 51, 145, 270, 312, 321, 343, 354, 372, 402, 435, 465
5: 45, 55, 149, 274, 316, 325, 347, 358, 376, 406, 439, 469
ᐳ: 44, 46, 47, 48, 49, 54, 56, 58, 59, 60, 61, 148, 150, 151, 152, 153, 273, 275, 276, 277, 280, 287, 290, 315, 317, 318, 319, 324, 326, 327, 330, 336, 346, 348, 349, 350, 357, 359, 360, 361, 375, 377, 378, 379, 380, 381, 405, 407, 408, 409, 410, 438, 440, 441, 442, 443, 444, 468, 470, 471, 472, 473
6: 68, 278, 288, 328, 382, 411, 445, 474
7: 69, 282, 292, 332, 385, 414, 448, 477
ᐳ: 281, 283, 284, 285, 286, 291, 293, 294, 295, 296, 297, 331, 333, 334, 335, 384, 386, 387, 388, 413, 415, 416, 417, 447, 449, 450, 451, 476, 478, 479, 480
8: 303, 389, 418, 452, 481
9: 304, 392, 421, 455, 484
ᐳ: 391, 393, 394, 420, 422, 423, 454, 456, 457, 483, 485, 486"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,First12,PgSelectRows13,PgSelectSingle14,PgClassExpression15,PgSelect17,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression22,PgSelect23,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression28,PgSelect31,First33,PgSelectRows34,PgSelectSingle35,Constant54,Connection66,Constant71,Connection79,Connection113,PgSelect127,First129,PgSelectRows130,PgSelectSingle131,PgSelect135,First137,PgSelectRows138,PgSelectSingle139,Connection154,PgSelect166,First168,PgSelectRows169,PgSelectSingle170,Connection175,PgSelect186,First188,PgSelectRows189,PgSelectSingle190,Connection197,PgSelect211,First213,PgSelectRows214,PgSelectSingle215,PgClassExpression216,PgSelect217,First219,PgSelectRows220,PgSelectSingle221,Connection228,Connection243,PgSelect255,First257,PgSelectRows258,PgSelectSingle259,Connection304,PgSelect363,First365,PgSelectRows366,PgSelectSingle367,PgSelect432,First434,PgSelectRows435,PgSelectSingle436,PgSelect498,PgSelectRows500,Constant507,Constant508,Constant509,Constant510,Constant511,Constant512,Constant513,Constant514,Constant515 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 35, 11, 54, 66, 71

ROOT PgSelectSingleᐸfunc_out_complexᐳ[35]
1:
ᐳ: 36, 37, 48
2: PgSelect[38], PgSelect[49]
3: PgSelectRows[43], PgSelectRows[52]
ᐳ: 42, 44, 51, 53"):::bucket + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgFromExpression12,First13,PgSelectRows14,PgSelectSingle15,PgClassExpression16,PgSelect18,PgFromExpression20,First21,PgSelectRows22,PgSelectSingle23,PgClassExpression24,PgSelect25,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgSelect33,PgFromExpression35,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40,PgSelect41,PgFromExpression43,First44,PgSelectRows45,PgSelectSingle46,PgClassExpression47,PgClassExpression48,PgClassExpression49,PgClassExpression50,PgSelect51,PgFromExpression53,First54,PgSelectRows55,PgSelectSingle56,Constant57,PgClassExpression58,List59,Lambda60,PgClassExpression61,Connection66,PgSelect68,PgSelectRows69,Constant72,PgFromExpression80,Connection81,PgSelect82,PgSelectRows83,PgFromExpression92,PgFromExpression102,Connection114,PgSelect124,First125,PgSelectRows126,PgSelectSingle127,PgClassExpression128,PgSelect129,First131,PgSelectRows132,PgSelectSingle133,PgClassExpression134,PgClassExpression135,PgSelect137,PgFromExpression139,First140,PgSelectRows141,PgSelectSingle142,PgClassExpression143,PgClassExpression144,PgSelect145,PgFromExpression147,First148,PgSelectRows149,PgSelectSingle150,PgClassExpression151,PgClassExpression152,PgClassExpression153,Connection156,PgSelect157,PgSelectRows158,PgSelect163,First164,PgSelectRows165,PgSelectSingle166,PgClassExpression167,PgSelect168,First170,PgSelectRows171,PgSelectSingle172,PgClassExpression173,PgClassExpression174,Connection177,PgSelect178,PgSelectRows179,PgSelect183,First184,PgSelectRows185,PgSelectSingle186,PgClassExpression187,PgSelect188,First190,PgSelectRows191,PgSelectSingle192,PgClassExpression193,List194,Lambda195,Connection198,PgSelect199,PgSelectRows200,PgSelect207,First208,PgSelectRows209,PgSelectSingle210,PgClassExpression211,PgSelect212,First214,PgSelectRows215,PgSelectSingle216,PgClassExpression217,PgSelect218,First220,PgSelectRows221,PgSelectSingle222,PgClassExpression223,PgClassExpression224,PgClassExpression225,PgFromExpression229,Connection230,PgSelect231,PgSelectRows232,PgSelect237,First238,PgSelectRows239,PgSelectSingle240,PgClassExpression241,PgFromExpression245,Connection246,PgSelect247,PgSelectRows248,PgSelect252,First253,PgSelectRows254,PgSelectSingle255,PgClassExpression256,PgSelect258,First260,PgSelectRows261,PgSelectSingle262,PgClassExpression263,List264,Lambda265,PgClassExpression266,PgClassExpression269,PgSelect270,PgFromExpression272,First273,PgSelectRows274,PgSelectSingle275,PgClassExpression276,PgClassExpression277,PgSelect278,PgFromExpression280,First281,PgSelectRows282,PgSelectSingle283,PgClassExpression284,PgClassExpression285,PgClassExpression286,PgClassExpression287,PgSelect288,PgFromExpression290,First291,PgSelectRows292,PgSelectSingle293,PgClassExpression294,List295,Lambda296,PgClassExpression297,Connection301,PgSelect303,PgSelectRows304,PgSelect312,PgFromExpression314,First315,PgSelectRows316,PgSelectSingle317,PgClassExpression318,PgClassExpression319,PgSelect321,PgFromExpression323,First324,PgSelectRows325,PgSelectSingle326,PgClassExpression327,PgSelect328,PgFromExpression330,First331,PgSelectRows332,PgSelectSingle333,PgClassExpression334,PgClassExpression335,PgClassExpression336,PgFromExpression339,PgClassExpression340,PgSelect343,PgFromExpression345,First346,PgSelectRows347,PgSelectSingle348,PgClassExpression349,PgClassExpression350,PgClassExpression352,PgSelect354,PgFromExpression356,First357,PgSelectRows358,PgSelectSingle359,PgClassExpression360,PgClassExpression361,PgSelect365,PgFromExpression367,First368,PgSelectRows369,PgSelectSingle370,PgClassExpression371,PgSelect372,PgFromExpression374,First375,PgSelectRows376,PgSelectSingle377,PgClassExpression378,PgClassExpression379,PgClassExpression380,PgClassExpression381,PgSelect382,First384,PgSelectRows385,PgSelectSingle386,PgClassExpression387,PgClassExpression388,PgSelect389,First391,PgSelectRows392,PgSelectSingle393,PgClassExpression394,PgClassExpression401,PgSelect402,PgFromExpression404,First405,PgSelectRows406,PgSelectSingle407,PgClassExpression408,PgClassExpression409,PgClassExpression410,PgSelect411,First413,PgSelectRows414,PgSelectSingle415,PgClassExpression416,PgClassExpression417,PgSelect418,First420,PgSelectRows421,PgSelectSingle422,PgClassExpression423,PgClassExpression424,PgSelect428,PgFromExpression430,First431,PgSelectRows432,PgSelectSingle433,PgClassExpression434,PgSelect435,PgFromExpression437,First438,PgSelectRows439,PgSelectSingle440,PgClassExpression441,PgClassExpression442,PgClassExpression443,PgClassExpression444,PgSelect445,First447,PgSelectRows448,PgSelectSingle449,PgClassExpression450,PgClassExpression451,PgSelect452,First454,PgSelectRows455,PgSelectSingle456,PgClassExpression457,PgClassExpression464,PgSelect465,PgFromExpression467,First468,PgSelectRows469,PgSelectSingle470,PgClassExpression471,PgClassExpression472,PgClassExpression473,PgSelect474,First476,PgSelectRows477,PgSelectSingle478,PgClassExpression479,PgClassExpression480,PgSelect481,First483,PgSelectRows484,PgSelectSingle485,PgClassExpression486,PgClassExpression487,PgSelect488,PgSelectRows490,Constant497,Constant498,Constant499,Constant500,Constant501,Constant502,Constant503,Constant504,Constant505 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 72

ROOT __Item{1}ᐸ69ᐳ[70]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression36,PgClassExpression37,PgSelect38,First42,PgSelectRows43,PgSelectSingle44,PgClassExpression48,PgSelect49,First51,PgSelectRows52,PgSelectSingle53 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 44

ROOT PgSelectSingle{1}ᐸfrmcdc_compoundTypeᐳ[44]"):::bucket + class Bucket1,__Item70,PgSelectSingle71,PgClassExpression73,List74,Lambda75 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11, 92, 102, 57, 114, 62, 72

ROOT __Item{2}ᐸ83ᐳ[84]
1:
ᐳ: 85, 86, 87, 99
2: PgSelect[88], PgSelect[100]
3: PgSelectRows[94], PgSelectRows[104]
ᐳ: 93, 95, 96, 97, 98, 103, 105, 107, 108, 109, 110
4: PgSelect[116]
5: PgSelectRows[117]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression45,PgClassExpression46,PgClassExpression47 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 53, 54, 11, 66, 71

ROOT PgSelectSingle{1}ᐸpersonᐳ[53]
1:
ᐳ: 55, 58, 56, 57
2: PgSelect[67]
3: PgSelectRows[68]"):::bucket + class Bucket2,__Item84,PgSelectSingle85,PgClassExpression86,PgClassExpression87,PgSelect88,First93,PgSelectRows94,PgSelectSingle95,PgClassExpression96,PgClassExpression97,PgClassExpression98,PgClassExpression99,PgSelect100,First103,PgSelectRows104,PgSelectSingle105,PgClassExpression107,List108,Lambda109,PgClassExpression110,PgSelect116,PgSelectRows117 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 72

ROOT __Item{3}ᐸ117ᐳ[118]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression55,List56,Lambda57,PgClassExpression58,PgSelect67,PgSelectRows68 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 71

ROOT __Item{4}ᐸ68ᐳ[69]"):::bucket + class Bucket3,__Item118,PgSelectSingle119,PgClassExpression121,List122,Lambda123 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ158ᐳ[159]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item69,PgSelectSingle70 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 70, 71

ROOT PgSelectSingle{4}ᐸpostᐳ[70]"):::bucket + class Bucket4,__Item159,PgSelectSingle160,PgClassExpression161,PgClassExpression162 bucket4 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ179ᐳ[180]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression72,List73,Lambda74 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 11, 509, 510, 79, 54, 113, 71

ROOT Connectionᐸ77ᐳ[79]
1: PgSelect[80], PgSelect[122]
2: PgSelectRows[81], PgSelectRows[124]
ᐳ: 123, 125, 126"):::bucket + class Bucket5,__Item180,PgSelectSingle181,PgClassExpression182 bucket5 + Bucket6("Bucket 6 (listItem)
Deps: 57

ROOT __Item{6}ᐸ200ᐳ[201]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect80,PgSelectRows81,PgSelect122,First123,PgSelectRows124,PgSelectSingle125,PgClassExpression126 bucket6 - Bucket7("Bucket 7 (listItem)
Deps: 11, 54, 113, 71

ROOT __Item{7}ᐸ81ᐳ[82]"):::bucket + class Bucket6,__Item201,PgSelectSingle202,PgClassExpression204,List205,Lambda206 bucket6 + Bucket7("Bucket 7 (listItem)

ROOT __Item{7}ᐸ232ᐳ[233]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,__Item82,PgSelectSingle83 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 83, 11, 54, 113, 71

ROOT PgSelectSingle{7}ᐸfunc_out_complex_setofᐳ[83]
1:
ᐳ: 84, 85, 96
2: PgSelect[86], PgSelect[97]
3: PgSelectRows[91], PgSelectRows[100]
ᐳ: 90, 92, 99, 101"):::bucket + class Bucket7,__Item233,PgSelectSingle234,PgClassExpression235,PgClassExpression236 bucket7 + Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ248ᐳ[249]"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression84,PgClassExpression85,PgSelect86,First90,PgSelectRows91,PgSelectSingle92,PgClassExpression96,PgSelect97,First99,PgSelectRows100,PgSelectSingle101 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 92

ROOT PgSelectSingle{8}ᐸfrmcdc_compoundTypeᐳ[92]"):::bucket + class Bucket8,__Item249,PgSelectSingle250,PgClassExpression251 bucket8 + Bucket9("Bucket 9 (listItem)
Deps: 72

ROOT __Item{9}ᐸ304ᐳ[305]"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression93,PgClassExpression94,PgClassExpression95 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 101, 54, 11, 113, 71

ROOT PgSelectSingle{8}ᐸpersonᐳ[101]
1:
ᐳ: 103, 106, 104, 105
2: PgSelect[114]
3: PgSelectRows[115]"):::bucket + class Bucket9,__Item305,PgSelectSingle306,PgClassExpression308,List309,Lambda310 bucket9 + Bucket10("Bucket 10 (listItem)

ROOT __Item{10}ᐸ490ᐳ[491]"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression103,List104,Lambda105,PgClassExpression106,PgSelect114,PgSelectRows115 bucket10 - Bucket11("Bucket 11 (listItem)
Deps: 71

ROOT __Item{11}ᐸ115ᐳ[116]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,__Item116,PgSelectSingle117 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 117, 71

ROOT PgSelectSingle{11}ᐸpostᐳ[117]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgClassExpression119,List120,Lambda121 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 131

ROOT PgSelectSingleᐸfunc_out_outᐳ[131]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,PgClassExpression132,PgClassExpression133 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 139, 11

ROOT PgSelectSingleᐸfunc_out_out_compound_typeᐳ[139]
1:
ᐳ: 140, 141
2: PgSelect[142]
3: PgSelectRows[147]
ᐳ: First[146], PgSelectSingle[148]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,PgClassExpression140,PgClassExpression141,PgSelect142,First146,PgSelectRows147,PgSelectSingle148 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 148

ROOT PgSelectSingle{14}ᐸfrmcdc_compoundTypeᐳ[148]"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15,PgClassExpression149,PgClassExpression150,PgClassExpression151 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 11, 154

ROOT Connectionᐸ152ᐳ[154]
1: PgSelect[155], PgSelect[161]
2: PgSelectRows[156], PgSelectRows[163]
ᐳ: 162, 164, 165"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16,PgSelect155,PgSelectRows156,PgSelect161,First162,PgSelectRows163,PgSelectSingle164,PgClassExpression165 bucket16 - Bucket17("Bucket 17 (listItem)

ROOT __Item{17}ᐸ156ᐳ[157]"):::bucket - classDef bucket17 stroke:#696969 - class Bucket17,__Item157,PgSelectSingle158 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 158

ROOT PgSelectSingle{17}ᐸfunc_out_out_setofᐳ[158]"):::bucket - classDef bucket18 stroke:#00bfff - class Bucket18,PgClassExpression159,PgClassExpression160 bucket18 - Bucket19("Bucket 19 (nullableBoundary)
Deps: 170

ROOT PgSelectSingleᐸfunc_out_out_unnamedᐳ[170]"):::bucket - classDef bucket19 stroke:#7f007f - class Bucket19,PgClassExpression171,PgClassExpression172 bucket19 - Bucket20("Bucket 20 (nullableBoundary)
Deps: 11, 175

ROOT Connectionᐸ173ᐳ[175]
1: PgSelect[176], PgSelect[181]
2: PgSelectRows[177], PgSelectRows[183]
ᐳ: 182, 184, 185"):::bucket - classDef bucket20 stroke:#ffa500 - class Bucket20,PgSelect176,PgSelectRows177,PgSelect181,First182,PgSelectRows183,PgSelectSingle184,PgClassExpression185 bucket20 - Bucket21("Bucket 21 (listItem)

ROOT __Item{21}ᐸ177ᐳ[178]"):::bucket - classDef bucket21 stroke:#0000ff - class Bucket21,__Item178,PgSelectSingle179,PgClassExpression180 bucket21 - Bucket22("Bucket 22 (nullableBoundary)
Deps: 190, 54

ROOT PgSelectSingleᐸfunc_out_tableᐳ[190]"):::bucket - classDef bucket22 stroke:#7fff00 - class Bucket22,PgClassExpression192,List193,Lambda194 bucket22 - Bucket23("Bucket 23 (nullableBoundary)
Deps: 11, 197, 54

ROOT Connectionᐸ195ᐳ[197]
1: PgSelect[198], PgSelect[206]
2: PgSelectRows[199], PgSelectRows[208]
ᐳ: 207, 209, 210"):::bucket - classDef bucket23 stroke:#ff1493 - class Bucket23,PgSelect198,PgSelectRows199,PgSelect206,First207,PgSelectRows208,PgSelectSingle209,PgClassExpression210 bucket23 - Bucket24("Bucket 24 (listItem)
Deps: 54

ROOT __Item{24}ᐸ199ᐳ[200]"):::bucket - classDef bucket24 stroke:#808000 - class Bucket24,__Item200,PgSelectSingle201 bucket24 - Bucket25("Bucket 25 (nullableBoundary)
Deps: 201, 54

ROOT PgSelectSingle{24}ᐸfunc_out_table_setofᐳ[201]"):::bucket - classDef bucket25 stroke:#dda0dd - class Bucket25,PgClassExpression203,List204,Lambda205 bucket25 - Bucket26("Bucket 26 (nullableBoundary)
Deps: 221

ROOT PgSelectSingleᐸfunc_out_unnamed_out_out_unnamedᐳ[221]"):::bucket - classDef bucket26 stroke:#ff0000 - class Bucket26,PgClassExpression222,PgClassExpression223,PgClassExpression224 bucket26 - Bucket27("Bucket 27 (nullableBoundary)
Deps: 11, 511, 228

ROOT Connectionᐸ226ᐳ[228]
1: PgSelect[229], PgSelect[235]
2: PgSelectRows[230], PgSelectRows[237]
ᐳ: 236, 238, 239"):::bucket - classDef bucket27 stroke:#ffff00 - class Bucket27,PgSelect229,PgSelectRows230,PgSelect235,First236,PgSelectRows237,PgSelectSingle238,PgClassExpression239 bucket27 - Bucket28("Bucket 28 (listItem)

ROOT __Item{28}ᐸ230ᐳ[231]"):::bucket - classDef bucket28 stroke:#00ffff - class Bucket28,__Item231,PgSelectSingle232 bucket28 - Bucket29("Bucket 29 (nullableBoundary)
Deps: 232

ROOT PgSelectSingle{28}ᐸfunc_returns_table_multi_colᐳ[232]"):::bucket - classDef bucket29 stroke:#4169e1 - class Bucket29,PgClassExpression233,PgClassExpression234 bucket29 - Bucket30("Bucket 30 (nullableBoundary)
Deps: 11, 511, 243

ROOT Connectionᐸ241ᐳ[243]
1: PgSelect[244], PgSelect[249]
2: PgSelectRows[245], PgSelectRows[251]
ᐳ: 250, 252, 253"):::bucket - classDef bucket30 stroke:#3cb371 - class Bucket30,PgSelect244,PgSelectRows245,PgSelect249,First250,PgSelectRows251,PgSelectSingle252,PgClassExpression253 bucket30 - Bucket31("Bucket 31 (listItem)

ROOT __Item{31}ᐸ245ᐳ[246]"):::bucket - classDef bucket31 stroke:#a52a2a - class Bucket31,__Item246,PgSelectSingle247,PgClassExpression248 bucket31 - Bucket32("Bucket 32 (nullableBoundary)
Deps: 259, 54, 11, 509, 510, 304, 71

ROOT PgSelectSingleᐸpersonᐳ[259]
1:
ᐳ: 261, 264, 267, 340, 351, 262, 263
2: 268, 314, 322, 343, 353
3: 273, 317, 325, 346, 356
ᐳ: 272, 274, 316, 318, 324, 326, 345, 347, 355, 357"):::bucket - classDef bucket32 stroke:#ff00ff - class Bucket32,PgClassExpression261,List262,Lambda263,PgClassExpression264,PgClassExpression267,PgSelect268,First272,PgSelectRows273,PgSelectSingle274,PgSelect314,First316,PgSelectRows317,PgSelectSingle318,PgSelect322,First324,PgSelectRows325,PgSelectSingle326,PgClassExpression340,PgSelect343,First345,PgSelectRows346,PgSelectSingle347,PgClassExpression351,PgSelect353,First355,PgSelectRows356,PgSelectSingle357 bucket32 - Bucket33("Bucket 33 (nullableBoundary)
Deps: 274, 11, 54, 304, 71

ROOT PgSelectSingle{32}ᐸperson_computed_complexᐳ[274]
1:
ᐳ: 275, 276, 287
2: PgSelect[277], PgSelect[288]
3: PgSelectRows[282], PgSelectRows[291]
ᐳ: 281, 283, 290, 292"):::bucket - classDef bucket33 stroke:#f5deb3 - class Bucket33,PgClassExpression275,PgClassExpression276,PgSelect277,First281,PgSelectRows282,PgSelectSingle283,PgClassExpression287,PgSelect288,First290,PgSelectRows291,PgSelectSingle292 bucket33 - Bucket34("Bucket 34 (nullableBoundary)
Deps: 283

ROOT PgSelectSingle{33}ᐸfrmcdc_compoundTypeᐳ[283]"):::bucket - classDef bucket34 stroke:#696969 - class Bucket34,PgClassExpression284,PgClassExpression285,PgClassExpression286 bucket34 - Bucket35("Bucket 35 (nullableBoundary)
Deps: 292, 54, 11, 304, 71

ROOT PgSelectSingle{33}ᐸpersonᐳ[292]
1:
ᐳ: 294, 297, 295, 296
2: PgSelect[305]
3: PgSelectRows[306]"):::bucket - classDef bucket35 stroke:#00bfff - class Bucket35,PgClassExpression294,List295,Lambda296,PgClassExpression297,PgSelect305,PgSelectRows306 bucket35 - Bucket36("Bucket 36 (listItem)
Deps: 71

ROOT __Item{36}ᐸ306ᐳ[307]"):::bucket - classDef bucket36 stroke:#7f007f - class Bucket36,__Item307,PgSelectSingle308 bucket36 - Bucket37("Bucket 37 (nullableBoundary)
Deps: 308, 71

ROOT PgSelectSingle{36}ᐸpostᐳ[308]"):::bucket - classDef bucket37 stroke:#ffa500 - class Bucket37,PgClassExpression310,List311,Lambda312 bucket37 - Bucket38("Bucket 38 (nullableBoundary)
Deps: 318

ROOT PgSelectSingle{32}ᐸperson_computed_first_arg_inoutᐳ[318]"):::bucket - classDef bucket38 stroke:#0000ff - class Bucket38,PgClassExpression319,PgClassExpression320 bucket38 - Bucket39("Bucket 39 (nullableBoundary)
Deps: 326, 11

ROOT PgSelectSingle{32}ᐸperson_computed_first_arg_inout_outᐳ[326]
1:
ᐳ: 327, 337
2: PgSelect[328]
3: PgSelectRows[333]
ᐳ: First[332], PgSelectSingle[334]"):::bucket - classDef bucket39 stroke:#7fff00 - class Bucket39,PgClassExpression327,PgSelect328,First332,PgSelectRows333,PgSelectSingle334,PgClassExpression337 bucket39 - Bucket40("Bucket 40 (nullableBoundary)
Deps: 334

ROOT PgSelectSingle{39}ᐸpersonᐳ[334]"):::bucket - classDef bucket40 stroke:#ff1493 - class Bucket40,PgClassExpression335,PgClassExpression336 bucket40 - Bucket41("Bucket 41 (nullableBoundary)
Deps: 347

ROOT PgSelectSingle{32}ᐸperson_computed_inout_outᐳ[347]"):::bucket - classDef bucket41 stroke:#808000 - class Bucket41,PgClassExpression348,PgClassExpression349 bucket41 - Bucket42("Bucket 42 (nullableBoundary)
Deps: 357

ROOT PgSelectSingle{32}ᐸperson_computed_out_outᐳ[357]"):::bucket - classDef bucket42 stroke:#dda0dd - class Bucket42,PgClassExpression358,PgClassExpression359 bucket42 - Bucket43("Bucket 43 (nullableBoundary)
Deps: 367, 11

ROOT PgSelectSingleᐸquery_output_two_rowsᐳ[367]
1:
ᐳ: 368, 402, 428
2: PgSelect[369], PgSelect[403]
3: PgSelectRows[374], PgSelectRows[406]
ᐳ: 373, 375, 405, 407"):::bucket - classDef bucket43 stroke:#ff0000 - class Bucket43,PgClassExpression368,PgSelect369,First373,PgSelectRows374,PgSelectSingle375,PgClassExpression402,PgSelect403,First405,PgSelectRows406,PgSelectSingle407,PgClassExpression428 bucket43 - Bucket44("Bucket 44 (nullableBoundary)
Deps: 375, 11

ROOT PgSelectSingle{43}ᐸleft_armᐳ[375]
1:
ᐳ: 376, 377, 378, 379
2: PgSelect[380]
3: PgSelectRows[385]
ᐳ: First[384], PgSelectSingle[386]"):::bucket - classDef bucket44 stroke:#ffff00 - class Bucket44,PgClassExpression376,PgClassExpression377,PgClassExpression378,PgClassExpression379,PgSelect380,First384,PgSelectRows385,PgSelectSingle386 bucket44 - Bucket45("Bucket 45 (nullableBoundary)
Deps: 386, 11

ROOT PgSelectSingle{44}ᐸpersonᐳ[386]
1:
ᐳ: 387, 388
2: PgSelect[389]
3: PgSelectRows[394]
ᐳ: First[393], PgSelectSingle[395]"):::bucket - classDef bucket45 stroke:#00ffff - class Bucket45,PgClassExpression387,PgClassExpression388,PgSelect389,First393,PgSelectRows394,PgSelectSingle395 bucket45 - Bucket46("Bucket 46 (nullableBoundary)
Deps: 395

ROOT PgSelectSingle{45}ᐸperson_secretᐳ[395]"):::bucket - classDef bucket46 stroke:#4169e1 - class Bucket46,PgClassExpression396 bucket46 - Bucket47("Bucket 47 (nullableBoundary)
Deps: 407, 11

ROOT PgSelectSingle{43}ᐸpostᐳ[407]
1:
ᐳ: 408, 409, 410
2: PgSelect[411]
3: PgSelectRows[416]
ᐳ: First[415], PgSelectSingle[417]"):::bucket - classDef bucket47 stroke:#3cb371 - class Bucket47,PgClassExpression408,PgClassExpression409,PgClassExpression410,PgSelect411,First415,PgSelectRows416,PgSelectSingle417 bucket47 - Bucket48("Bucket 48 (nullableBoundary)
Deps: 417, 11

ROOT PgSelectSingle{47}ᐸpersonᐳ[417]
1:
ᐳ: 418, 419
2: PgSelect[420]
3: PgSelectRows[425]
ᐳ: First[424], PgSelectSingle[426]"):::bucket - classDef bucket48 stroke:#a52a2a - class Bucket48,PgClassExpression418,PgClassExpression419,PgSelect420,First424,PgSelectRows425,PgSelectSingle426 bucket48 - Bucket49("Bucket 49 (nullableBoundary)
Deps: 426

ROOT PgSelectSingle{48}ᐸperson_secretᐳ[426]"):::bucket - classDef bucket49 stroke:#ff00ff - class Bucket49,PgClassExpression427 bucket49 - Bucket50("Bucket 50 (nullableBoundary)
Deps: 436, 11

ROOT PgSelectSingleᐸquery_output_two_rowsᐳ[436]
1:
ᐳ: 437, 471, 497
2: PgSelect[438], PgSelect[472]
3: PgSelectRows[443], PgSelectRows[475]
ᐳ: 442, 444, 474, 476"):::bucket - classDef bucket50 stroke:#f5deb3 - class Bucket50,PgClassExpression437,PgSelect438,First442,PgSelectRows443,PgSelectSingle444,PgClassExpression471,PgSelect472,First474,PgSelectRows475,PgSelectSingle476,PgClassExpression497 bucket50 - Bucket51("Bucket 51 (nullableBoundary)
Deps: 444, 11

ROOT PgSelectSingle{50}ᐸleft_armᐳ[444]
1:
ᐳ: 445, 446, 447, 448
2: PgSelect[449]
3: PgSelectRows[454]
ᐳ: First[453], PgSelectSingle[455]"):::bucket - classDef bucket51 stroke:#696969 - class Bucket51,PgClassExpression445,PgClassExpression446,PgClassExpression447,PgClassExpression448,PgSelect449,First453,PgSelectRows454,PgSelectSingle455 bucket51 - Bucket52("Bucket 52 (nullableBoundary)
Deps: 455, 11

ROOT PgSelectSingle{51}ᐸpersonᐳ[455]
1:
ᐳ: 456, 457
2: PgSelect[458]
3: PgSelectRows[463]
ᐳ: First[462], PgSelectSingle[464]"):::bucket - classDef bucket52 stroke:#00bfff - class Bucket52,PgClassExpression456,PgClassExpression457,PgSelect458,First462,PgSelectRows463,PgSelectSingle464 bucket52 - Bucket53("Bucket 53 (nullableBoundary)
Deps: 464

ROOT PgSelectSingle{52}ᐸperson_secretᐳ[464]"):::bucket - classDef bucket53 stroke:#7f007f - class Bucket53,PgClassExpression465 bucket53 - Bucket54("Bucket 54 (nullableBoundary)
Deps: 476, 11

ROOT PgSelectSingle{50}ᐸpostᐳ[476]
1:
ᐳ: 477, 478, 479
2: PgSelect[480]
3: PgSelectRows[485]
ᐳ: First[484], PgSelectSingle[486]"):::bucket - classDef bucket54 stroke:#ffa500 - class Bucket54,PgClassExpression477,PgClassExpression478,PgClassExpression479,PgSelect480,First484,PgSelectRows485,PgSelectSingle486 bucket54 - Bucket55("Bucket 55 (nullableBoundary)
Deps: 486, 11

ROOT PgSelectSingle{54}ᐸpersonᐳ[486]
1:
ᐳ: 487, 488
2: PgSelect[489]
3: PgSelectRows[494]
ᐳ: First[493], PgSelectSingle[495]"):::bucket - classDef bucket55 stroke:#0000ff - class Bucket55,PgClassExpression487,PgClassExpression488,PgSelect489,First493,PgSelectRows494,PgSelectSingle495 bucket55 - Bucket56("Bucket 56 (nullableBoundary)
Deps: 495

ROOT PgSelectSingle{55}ᐸperson_secretᐳ[495]"):::bucket - classDef bucket56 stroke:#7fff00 - class Bucket56,PgClassExpression496 bucket56 - Bucket57("Bucket 57 (listItem)

ROOT __Item{57}ᐸ500ᐳ[501]"):::bucket - classDef bucket57 stroke:#ff1493 - class Bucket57,__Item501,PgSelectSingle502 bucket57 - Bucket58("Bucket 58 (nullableBoundary)
Deps: 502

ROOT PgSelectSingle{57}ᐸsearch_test_summariesᐳ[502]"):::bucket - classDef bucket58 stroke:#808000 - class Bucket58,PgClassExpression503,PgClassExpression504 bucket58 - Bucket59("Bucket 59 (nullableBoundary)
Deps: 504

ROOT PgClassExpression{58}ᐸ__search_t..._duration”ᐳ[504]"):::bucket - classDef bucket59 stroke:#dda0dd - class Bucket59 bucket59 - Bucket0 --> Bucket1 & Bucket6 & Bucket13 & Bucket14 & Bucket16 & Bucket19 & Bucket20 & Bucket22 & Bucket23 & Bucket26 & Bucket27 & Bucket30 & Bucket32 & Bucket43 & Bucket50 & Bucket57 - Bucket1 --> Bucket2 & Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 & Bucket10 - Bucket10 --> Bucket11 - Bucket11 --> Bucket12 - Bucket14 --> Bucket15 - Bucket16 --> Bucket17 - Bucket17 --> Bucket18 - Bucket20 --> Bucket21 - Bucket23 --> Bucket24 - Bucket24 --> Bucket25 - Bucket27 --> Bucket28 - Bucket28 --> Bucket29 - Bucket30 --> Bucket31 - Bucket32 --> Bucket33 & Bucket38 & Bucket39 & Bucket41 & Bucket42 - Bucket33 --> Bucket34 & Bucket35 - Bucket35 --> Bucket36 - Bucket36 --> Bucket37 - Bucket39 --> Bucket40 - Bucket43 --> Bucket44 & Bucket47 - Bucket44 --> Bucket45 - Bucket45 --> Bucket46 - Bucket47 --> Bucket48 - Bucket48 --> Bucket49 - Bucket50 --> Bucket51 & Bucket54 - Bucket51 --> Bucket52 - Bucket52 --> Bucket53 - Bucket54 --> Bucket55 - Bucket55 --> Bucket56 - Bucket57 --> Bucket58 - Bucket58 --> Bucket59 + class Bucket10,__Item491,PgSelectSingle492,PgClassExpression493,PgClassExpression494 bucket10 + Bucket0 --> Bucket1 & Bucket2 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 + Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/function-return-types.sql b/postgraphile/postgraphile/__tests__/queries/v4/function-return-types.sql index b6ea85985c..5d6b2ef035 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/function-return-types.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/function-return-types.sql @@ -23,6 +23,23 @@ from "c"."func_out_complex"( $2::"text" ) as __func_out_complex__; +select + __func_out_complex_setof__."x"::text as "0", + case when (__func_out_complex_setof__."y") is not distinct from null then null::text else json_build_array((((__func_out_complex_setof__."y")."a"))::text, ((__func_out_complex_setof__."y")."b"), (((__func_out_complex_setof__."y")."c"))::text, ((__func_out_complex_setof__."y")."d"), (((__func_out_complex_setof__."y")."e"))::text, (((__func_out_complex_setof__."y")."f"))::text, to_char(((__func_out_complex_setof__."y")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__func_out_complex_setof__."y")."foo_bar"))::text)::text end as "1", + case when (__func_out_complex_setof__."z") is not distinct from null then null::text else json_build_array((((__func_out_complex_setof__."z")."id"))::text, ((__func_out_complex_setof__."z")."person_full_name"), (((__func_out_complex_setof__."z")."aliases"))::text, ((__func_out_complex_setof__."z")."about"), ((__func_out_complex_setof__."z")."email"), case when (((__func_out_complex_setof__."z")."site")) is not distinct from null then null::text else json_build_array(((((__func_out_complex_setof__."z")."site"))."url"))::text end, (((__func_out_complex_setof__."z")."config"))::text, (((__func_out_complex_setof__."z")."last_login_from_ip"))::text, (((__func_out_complex_setof__."z")."last_login_from_subnet"))::text, (((__func_out_complex_setof__."z")."user_mac"))::text, to_char(((__func_out_complex_setof__."z")."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "2", + (not (__func_out_complex_setof__ is null))::text as "3" +from "c"."func_out_complex_setof"( + $1::"int4", + $2::"text" +) as __func_out_complex_setof__; + +select + (count(*))::text as "0" +from "c"."func_out_complex_setof"( + $1::"int4", + $2::"text" +) as __func_out_complex_setof__; + select __func_out_out__."first_out"::text as "0", __func_out_out__."second_out" as "1", @@ -35,16 +52,42 @@ select (not (__func_out_out_compound_type__ is null))::text as "2" from "c"."func_out_out_compound_type"($1::"int4") as __func_out_out_compound_type__; +select + __func_out_out_setof__."o1"::text as "0", + __func_out_out_setof__."o2" as "1", + (not (__func_out_out_setof__ is null))::text as "2" +from "c"."func_out_out_setof"() as __func_out_out_setof__; + +select + (count(*))::text as "0" +from "c"."func_out_out_setof"() as __func_out_out_setof__; + select __func_out_out_unnamed__."column1"::text as "0", __func_out_out_unnamed__."column2" as "1", (not (__func_out_out_unnamed__ is null))::text as "2" from "c"."func_out_out_unnamed"() as __func_out_out_unnamed__; +select + __func_out_setof__.v::text as "0" +from "c"."func_out_setof"() as __func_out_setof__(v); + +select + (count(*))::text as "0" +from "c"."func_out_setof"() as __func_out_setof__(v); + select __func_out_table__."id"::text as "0" from "c"."func_out_table"() as __func_out_table__; +select + __func_out_table_setof__."id"::text as "0" +from "c"."func_out_table_setof"() as __func_out_table_setof__; + +select + (count(*))::text as "0" +from "c"."func_out_table_setof"() as __func_out_table_setof__; + select __func_out_unnamed__.v::text as "0" from "c"."func_out_unnamed"() as __func_out_unnamed__(v); @@ -56,6 +99,24 @@ select (not (__func_out_unnamed_out_out_unnamed__ is null))::text as "3" from "c"."func_out_unnamed_out_out_unnamed"() as __func_out_unnamed_out_out_unnamed__; +select + __func_returns_table_multi_col__."col1"::text as "0", + __func_returns_table_multi_col__."col2" as "1", + (not (__func_returns_table_multi_col__ is null))::text as "2" +from "c"."func_returns_table_multi_col"($1::"int4") as __func_returns_table_multi_col__; + +select + (count(*))::text as "0" +from "c"."func_returns_table_multi_col"($1::"int4") as __func_returns_table_multi_col__; + +select + __func_returns_table_one_col__.v::text as "0" +from "c"."func_returns_table_one_col"($1::"int4") as __func_returns_table_one_col__(v); + +select + (count(*))::text as "0" +from "c"."func_returns_table_one_col"($1::"int4") as __func_returns_table_one_col__(v); + select __person__."id"::text as "0", __person__."person_full_name" as "1", @@ -116,67 +177,6 @@ select __person__."person_full_name" as "1" from (select ($1::"c"."person").*) as __person__; -select - __func_out_complex_setof__."x"::text as "0", - case when (__func_out_complex_setof__."y") is not distinct from null then null::text else json_build_array((((__func_out_complex_setof__."y")."a"))::text, ((__func_out_complex_setof__."y")."b"), (((__func_out_complex_setof__."y")."c"))::text, ((__func_out_complex_setof__."y")."d"), (((__func_out_complex_setof__."y")."e"))::text, (((__func_out_complex_setof__."y")."f"))::text, to_char(((__func_out_complex_setof__."y")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__func_out_complex_setof__."y")."foo_bar"))::text)::text end as "1", - case when (__func_out_complex_setof__."z") is not distinct from null then null::text else json_build_array((((__func_out_complex_setof__."z")."id"))::text, ((__func_out_complex_setof__."z")."person_full_name"), (((__func_out_complex_setof__."z")."aliases"))::text, ((__func_out_complex_setof__."z")."about"), ((__func_out_complex_setof__."z")."email"), case when (((__func_out_complex_setof__."z")."site")) is not distinct from null then null::text else json_build_array(((((__func_out_complex_setof__."z")."site"))."url"))::text end, (((__func_out_complex_setof__."z")."config"))::text, (((__func_out_complex_setof__."z")."last_login_from_ip"))::text, (((__func_out_complex_setof__."z")."last_login_from_subnet"))::text, (((__func_out_complex_setof__."z")."user_mac"))::text, to_char(((__func_out_complex_setof__."z")."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "2", - (not (__func_out_complex_setof__ is null))::text as "3" -from "c"."func_out_complex_setof"( - $1::"int4", - $2::"text" -) as __func_out_complex_setof__; - -select - (count(*))::text as "0" -from "c"."func_out_complex_setof"( - $1::"int4", - $2::"text" -) as __func_out_complex_setof__; - -select - __func_out_out_setof__."o1"::text as "0", - __func_out_out_setof__."o2" as "1", - (not (__func_out_out_setof__ is null))::text as "2" -from "c"."func_out_out_setof"() as __func_out_out_setof__; - -select - (count(*))::text as "0" -from "c"."func_out_out_setof"() as __func_out_out_setof__; - -select - __func_out_setof__.v::text as "0" -from "c"."func_out_setof"() as __func_out_setof__(v); - -select - (count(*))::text as "0" -from "c"."func_out_setof"() as __func_out_setof__(v); - -select - __func_out_table_setof__."id"::text as "0" -from "c"."func_out_table_setof"() as __func_out_table_setof__; - -select - (count(*))::text as "0" -from "c"."func_out_table_setof"() as __func_out_table_setof__; - -select - __func_returns_table_multi_col__."col1"::text as "0", - __func_returns_table_multi_col__."col2" as "1", - (not (__func_returns_table_multi_col__ is null))::text as "2" -from "c"."func_returns_table_multi_col"($1::"int4") as __func_returns_table_multi_col__; - -select - (count(*))::text as "0" -from "c"."func_returns_table_multi_col"($1::"int4") as __func_returns_table_multi_col__; - -select - __func_returns_table_one_col__.v::text as "0" -from "c"."func_returns_table_one_col"($1::"int4") as __func_returns_table_one_col__(v); - -select - (count(*))::text as "0" -from "c"."func_returns_table_one_col"($1::"int4") as __func_returns_table_one_col__(v); - select __person_computed_complex__."x"::text as "0", case when (__person_computed_complex__."y") is not distinct from null then null::text else json_build_array((((__person_computed_complex__."y")."a"))::text, ((__person_computed_complex__."y")."b"), (((__person_computed_complex__."y")."c"))::text, ((__person_computed_complex__."y")."d"), (((__person_computed_complex__."y")."e"))::text, (((__person_computed_complex__."y")."f"))::text, to_char(((__person_computed_complex__."y")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__person_computed_complex__."y")."foo_bar"))::text)::text end as "1", diff --git a/postgraphile/postgraphile/__tests__/queries/v4/geometry.queries.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/geometry.queries.mermaid index 0b70c6fbbd..ccf3872672 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/geometry.queries.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/geometry.queries.mermaid @@ -9,107 +9,73 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸgeomᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸgeomᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸgeomᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸgeomᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__geom__.”id”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__geom__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__geom__.”point”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__geom__.”point”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression19 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__geom__.”line”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__geom__.”line”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression22 - PgClassExpression29{{"PgClassExpression[29∈3]
ᐸ__geom__.”lseg”ᐳ"}}:::plan + PgClassExpression29{{"PgClassExpression[29∈1]
ᐸ__geom__.”lseg”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression29 - PgClassExpression36{{"PgClassExpression[36∈3]
ᐸ__geom__.”box”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈1]
ᐸ__geom__.”box”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression36 - PgClassExpression43{{"PgClassExpression[43∈3]
ᐸ__geom__.”open_path”ᐳ"}}:::plan + PgClassExpression43{{"PgClassExpression[43∈1]
ᐸ__geom__.”open_path”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression43 - PgClassExpression49{{"PgClassExpression[49∈3]
ᐸ__geom__.”closed_path”ᐳ"}}:::plan + Access45{{"Access[45∈1]
ᐸ43.pointsᐳ"}}:::plan + PgClassExpression43 --> Access45 + PgClassExpression49{{"PgClassExpression[49∈1]
ᐸ__geom__.”closed_path”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression49 - PgClassExpression55{{"PgClassExpression[55∈3]
ᐸ__geom__.”polygon”ᐳ"}}:::plan + Access51{{"Access[51∈1]
ᐸ49.pointsᐳ"}}:::plan + PgClassExpression49 --> Access51 + PgClassExpression55{{"PgClassExpression[55∈1]
ᐸ__geom__.”polygon”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression55 - PgClassExpression60{{"PgClassExpression[60∈3]
ᐸ__geom__.”circle”ᐳ"}}:::plan + Access56{{"Access[56∈1]
ᐸ55.pointsᐳ"}}:::plan + PgClassExpression55 --> Access56 + PgClassExpression60{{"PgClassExpression[60∈1]
ᐸ__geom__.”circle”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression60 - Access45{{"Access[45∈8]
ᐸ43.pointsᐳ"}}:::plan - PgClassExpression43 --> Access45 - __Item46[/"__Item[46∈9]
ᐸ45ᐳ"\]:::itemplan + __Item46[/"__Item[46∈2]
ᐸ45ᐳ"\]:::itemplan Access45 ==> __Item46 - Access51{{"Access[51∈10]
ᐸ49.pointsᐳ"}}:::plan - PgClassExpression49 --> Access51 - __Item52[/"__Item[52∈11]
ᐸ51ᐳ"\]:::itemplan + __Item52[/"__Item[52∈3]
ᐸ51ᐳ"\]:::itemplan Access51 ==> __Item52 - Access56{{"Access[56∈12]
ᐸ55.pointsᐳ"}}:::plan - PgClassExpression55 --> Access56 - __Item57[/"__Item[57∈13]
ᐸ56ᐳ"\]:::itemplan + __Item57[/"__Item[57∈4]
ᐸ56ᐳ"\]:::itemplan Access56 ==> __Item57 %% define steps subgraph "Buckets for queries/v4/geometry.queries" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 11, 12
2: PgSelect[14]
3: PgSelectRows[15]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgClassExpression22,PgClassExpression29,PgClassExpression36,PgClassExpression43,Access45,PgClassExpression49,Access51,PgClassExpression55,Access56,PgClassExpression60 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ45ᐳ[46]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17

ROOT PgSelectSingle{2}ᐸgeomᐳ[17]"):::bucket + class Bucket2,__Item46 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ51ᐳ[52]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgClassExpression22,PgClassExpression29,PgClassExpression36,PgClassExpression43,PgClassExpression49,PgClassExpression55,PgClassExpression60 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 19

ROOT PgClassExpression{3}ᐸ__geom__.”point”ᐳ[19]"):::bucket + class Bucket3,__Item52 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ56ᐳ[57]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 22

ROOT PgClassExpression{3}ᐸ__geom__.”line”ᐳ[22]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 29

ROOT PgClassExpression{3}ᐸ__geom__.”lseg”ᐳ[29]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 36

ROOT PgClassExpression{3}ᐸ__geom__.”box”ᐳ[36]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 43

ROOT PgClassExpression{3}ᐸ__geom__.”open_path”ᐳ[43]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,Access45 bucket8 - Bucket9("Bucket 9 (listItem)

ROOT __Item{9}ᐸ45ᐳ[46]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,__Item46 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 49

ROOT PgClassExpression{3}ᐸ__geom__.”closed_path”ᐳ[49]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,Access51 bucket10 - Bucket11("Bucket 11 (listItem)

ROOT __Item{11}ᐸ51ᐳ[52]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,__Item52 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 55

ROOT PgClassExpression{3}ᐸ__geom__.”polygon”ᐳ[55]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,Access56 bucket12 - Bucket13("Bucket 13 (listItem)

ROOT __Item{13}ᐸ56ᐳ[57]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,__Item57 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 60

ROOT PgClassExpression{3}ᐸ__geom__.”circle”ᐳ[60]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14 bucket14 + class Bucket4,__Item57 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket10 & Bucket12 & Bucket14 - Bucket8 --> Bucket9 - Bucket10 --> Bucket11 - Bucket12 --> Bucket13 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/issue2210.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/issue2210.mermaid index 526311df4b..7273d2d358 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/issue2210.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/issue2210.mermaid @@ -9,84 +9,79 @@ graph TD %% plan dependencies + PgSelect18[["PgSelect[18∈0] ➊
ᐸsome_messages+1ᐳ"]]:::plan Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression15{{"PgFromExpression[15∈0] ➊"}}:::plan + Connection16{{"Connection[16∈0] ➊
ᐸ11ᐳ"}}:::plan + Lambda17{{"Lambda[17∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Constant48{{"Constant[48∈0] ➊
ᐸ50ᐳ"}}:::plan + PgFromExpression15 -->|rejectNull| PgSelect18 + Object14 & Connection16 & Lambda17 & Constant48 --> PgSelect18 + Constant48 & Lambda17 --> Connection16 + Object39{{"Object[39∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access38{{"Access[38∈0] ➊
ᐸ18.hasMoreᐳ"}}:::plan + Constant48 & Access38 --> Object39 Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access12 & Access13 --> Object14 + PgCursor46{{"PgCursor[46∈0] ➊"}}:::plan + PgSelectSingle44{{"PgSelectSingle[44∈0] ➊
ᐸsome_messagesᐳ"}}:::plan + Access45{{"Access[45∈0] ➊
ᐸ18.cursorDetailsᐳ"}}:::plan + PgSelectSingle44 & Access45 --> PgCursor46 + Access9{{"Access[9∈0] ➊
ᐸ0.afterᐳ"}}:::plan + __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan + __Value0 --> Access9 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access12 __Value2 --> Access13 - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant47{{"Constant[47∈0] ➊
ᐸ50ᐳ"}}:::plan - Constant47 --> Connection15 + Constant47{{"Constant[47∈0] ➊
ᐸ'0d126c0c-9710-478c-9aee-0be34b250573'ᐳ"}}:::plan + Constant47 --> PgFromExpression15 + Access9 --> Lambda17 + PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan + PgSelect18 --> PgSelectRows19 + PgPageInfo36{{"PgPageInfo[36∈0] ➊"}}:::plan + Connection16 --> PgPageInfo36 + PgSelect18 --> Access38 + Lambda40{{"Lambda[40∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object39 --> Lambda40 + Last42{{"Last[42∈0] ➊"}}:::plan + PgSelectRows19 --> Last42 + Last42 --> PgSelectSingle44 + PgSelect18 --> Access45 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant8{{"Constant[8∈0] ➊
ᐸundefinedᐳ"}}:::plan - Constant46{{"Constant[46∈0] ➊
ᐸ'0d126c0c-9710-478c-9aee-0be34b250573'ᐳ"}}:::plan - PgSelect16[["PgSelect[16∈1] ➊
ᐸsome_messages+1ᐳ"]]:::plan - Object14 & Constant46 & Connection15 & Constant47 --> PgSelect16 - Object38{{"Object[38∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Access37{{"Access[37∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant47 & Constant8 & Access37 --> Object38 - PgCursor45{{"PgCursor[45∈1] ➊"}}:::plan - PgSelectSingle43{{"PgSelectSingle[43∈1] ➊
ᐸsome_messagesᐳ"}}:::plan - Access44{{"Access[44∈1] ➊
ᐸ16.cursorDetailsᐳ"}}:::plan - PgSelectSingle43 & Access44 --> PgCursor45 - PgSelectRows17[["PgSelectRows[17∈1] ➊"]]:::plan - PgSelect16 --> PgSelectRows17 - PgPageInfo34{{"PgPageInfo[34∈1] ➊"}}:::plan - Connection15 --> PgPageInfo34 - PgSelect16 --> Access37 - Lambda39{{"Lambda[39∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object38 --> Lambda39 - Last41{{"Last[41∈1] ➊"}}:::plan - PgSelectRows17 --> Last41 - Last41 --> PgSelectSingle43 - PgSelect16 --> Access44 - __Item18[/"__Item[18∈2]
ᐸ17ᐳ"\]:::itemplan - PgSelectRows17 ==> __Item18 - PgSelectSingle19{{"PgSelectSingle[19∈2]
ᐸsome_messagesᐳ"}}:::plan - __Item18 --> PgSelectSingle19 - PgSelect24[["PgSelect[24∈3]
ᐸtest_userᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__some_mes...t_user_id”ᐳ"}}:::plan - Object14 & PgClassExpression23 --> PgSelect24 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__some_messages__.”id”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__some_mes....”message”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__some_mes...reated_at”ᐳ"}}:::plan - PgSelectSingle19 --> PgClassExpression22 - PgSelectSingle19 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan - PgSelectRows29 --> First28 - PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸtest_userᐳ"}}:::plan - First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__test_user__.”id”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__test_user__.”name”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 + PgSelect26[["PgSelect[26∈1]
ᐸtest_userᐳ"]]:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__some_mes...t_user_id”ᐳ"}}:::plan + Object14 & PgClassExpression25 --> PgSelect26 + __Item20[/"__Item[20∈1]
ᐸ19ᐳ"\]:::itemplan + PgSelectRows19 ==> __Item20 + PgSelectSingle21{{"PgSelectSingle[21∈1]
ᐸsome_messagesᐳ"}}:::plan + __Item20 --> PgSelectSingle21 + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__some_messages__.”id”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression22 + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__some_mes....”message”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__some_mes...reated_at”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression24 + PgSelectSingle21 --> PgClassExpression25 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect26 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸtest_userᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__test_user__.”id”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__test_user__.”name”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 %% define steps subgraph "Buckets for queries/v4/issue2210" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 12, 13, 47, 48, 14, 15, 17, 16, 36
2: PgSelect[18]
ᐳ: 38, 39, 40, 45
3: PgSelectRows[19]
ᐳ: 42, 44, 46"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant8,Access12,Access13,Object14,Connection15,Constant46,Constant47 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 46, 15, 47, 8

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[16]
ᐳ: 34, 37, 38, 39, 44
2: PgSelectRows[17]
ᐳ: 41, 43, 45"):::bucket + class Bucket0,__Value0,__Value2,__Value4,Access9,Access12,Access13,Object14,PgFromExpression15,Connection16,Lambda17,PgSelect18,PgSelectRows19,PgPageInfo36,Access38,Object39,Lambda40,Last42,PgSelectSingle44,Access45,PgCursor46,Constant47,Constant48 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 14

ROOT __Item{1}ᐸ19ᐳ[20]
1:
ᐳ: 21, 22, 23, 24, 25
2: PgSelect[26]
3: PgSelectRows[31]
ᐳ: 30, 32, 33, 34"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgSelectRows17,PgPageInfo34,Access37,Object38,Lambda39,Last41,PgSelectSingle43,Access44,PgCursor45 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 14

ROOT __Item{2}ᐸ17ᐳ[18]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item18,PgSelectSingle19 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 19, 14

ROOT PgSelectSingle{2}ᐸsome_messagesᐳ[19]
1:
ᐳ: 20, 21, 22, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸtest_userᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression31,PgClassExpression32 bucket4 + class Bucket1,__Item20,PgSelectSingle21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-function-names.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-function-names.mermaid index 752105e520..c8a49944e0 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-function-names.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-function-names.mermaid @@ -9,72 +9,76 @@ graph TD %% plan dependencies - PgSelect39[["PgSelect[39∈0] ➊
ᐸnullᐳ"]]:::plan + PgFromExpression14{{"PgFromExpression[14∈0] ➊"}}:::plan + Constant55{{"Constant[55∈0] ➊
ᐸ4ᐳ"}}:::plan + Constant56{{"Constant[56∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant57{{"Constant[57∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant58{{"Constant[58∈0] ➊
ᐸ3ᐳ"}}:::plan + Constant55 & Constant56 & Constant57 & Constant58 --> PgFromExpression14 + PgFromExpression25{{"PgFromExpression[25∈0] ➊"}}:::plan + Constant59{{"Constant[59∈0] ➊
ᐸ10ᐳ"}}:::plan + Constant59 -- 4 --> PgFromExpression25 + PgFromExpression36{{"PgFromExpression[36∈0] ➊"}}:::plan + Constant60{{"Constant[60∈0] ➊
ᐸ8ᐳ"}}:::plan + Constant61{{"Constant[61∈0] ➊
ᐸ6ᐳ"}}:::plan + Constant60 & Constant57 & Constant55 & Constant61 --> PgFromExpression36 + PgFromExpression52{{"PgFromExpression[52∈0] ➊"}}:::plan + Constant55 & Constant56 & Constant57 & Constant58 --> PgFromExpression52 + PgSelect42[["PgSelect[42∈0] ➊
ᐸnullᐳ"]]:::plan Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant52{{"Constant[52∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant51{{"Constant[51∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant53{{"Constant[53∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant54{{"Constant[54∈0] ➊
ᐸ3ᐳ"}}:::plan - Object13 & Constant52 & Constant51 & Constant52 & Constant53 & Constant54 --> PgSelect39 + Object13 & Constant56 & PgFromExpression52 --> PgSelect42 PgSelect10[["PgSelect[10∈0] ➊
ᐸawaitᐳ"]]:::plan - Object13 & Constant51 & Constant52 & Constant53 & Constant54 --> PgSelect10 - PgSelect22[["PgSelect[22∈0] ➊
ᐸcaseᐳ"]]:::plan - Constant55{{"Constant[55∈0] ➊
ᐸ10ᐳ"}}:::plan - Object13 & Constant55 & Constant55 & Constant55 & Constant55 --> PgSelect22 - PgSelect32[["PgSelect[32∈0] ➊
ᐸvalueOfᐳ"]]:::plan - Constant56{{"Constant[56∈0] ➊
ᐸ8ᐳ"}}:::plan - Constant57{{"Constant[57∈0] ➊
ᐸ6ᐳ"}}:::plan - Object13 & Constant56 & Constant53 & Constant51 & Constant57 --> PgSelect32 + Object13 & PgFromExpression14 --> PgSelect10 Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access11 & Access12 --> Object13 + PgSelect23[["PgSelect[23∈0] ➊
ᐸcaseᐳ"]]:::plan + Object13 & PgFromExpression25 --> PgSelect23 + PgSelect34[["PgSelect[34∈0] ➊
ᐸvalueOfᐳ"]]:::plan + Object13 & PgFromExpression36 --> PgSelect34 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access11 __Value2 --> Access12 - First14{{"First[14∈0] ➊"}}:::plan - PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan - PgSelectRows15 --> First14 - PgSelect10 --> PgSelectRows15 - PgSelectSingle16{{"PgSelectSingle[16∈0] ➊
ᐸawaitᐳ"}}:::plan - First14 --> PgSelectSingle16 - PgClassExpression17{{"PgClassExpression[17∈0] ➊
ᐸ__await__.vᐳ"}}:::plan - PgSelectSingle16 --> PgClassExpression17 - First24{{"First[24∈0] ➊"}}:::plan - PgSelectRows25[["PgSelectRows[25∈0] ➊"]]:::plan - PgSelectRows25 --> First24 - PgSelect22 --> PgSelectRows25 - PgSelectSingle26{{"PgSelectSingle[26∈0] ➊
ᐸcaseᐳ"}}:::plan - First24 --> PgSelectSingle26 - PgClassExpression27{{"PgClassExpression[27∈0] ➊
ᐸ__case__.vᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 - First34{{"First[34∈0] ➊"}}:::plan - PgSelectRows35[["PgSelectRows[35∈0] ➊"]]:::plan - PgSelectRows35 --> First34 - PgSelect32 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈0] ➊
ᐸvalueOfᐳ"}}:::plan - First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈0] ➊
ᐸ__value_of__.vᐳ"}}:::plan - PgSelectSingle36 --> PgClassExpression37 - First41{{"First[41∈0] ➊"}}:::plan - PgSelectRows42[["PgSelectRows[42∈0] ➊"]]:::plan - PgSelectRows42 --> First41 - PgSelect39 --> PgSelectRows42 - PgSelectSingle43{{"PgSelectSingle[43∈0] ➊
ᐸnullᐳ"}}:::plan - First41 --> PgSelectSingle43 + First15{{"First[15∈0] ➊"}}:::plan + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan + PgSelectRows16 --> First15 + PgSelect10 --> PgSelectRows16 + PgSelectSingle17{{"PgSelectSingle[17∈0] ➊
ᐸawaitᐳ"}}:::plan + First15 --> PgSelectSingle17 + PgClassExpression18{{"PgClassExpression[18∈0] ➊
ᐸ__await__.vᐳ"}}:::plan + PgSelectSingle17 --> PgClassExpression18 + First26{{"First[26∈0] ➊"}}:::plan + PgSelectRows27[["PgSelectRows[27∈0] ➊"]]:::plan + PgSelectRows27 --> First26 + PgSelect23 --> PgSelectRows27 + PgSelectSingle28{{"PgSelectSingle[28∈0] ➊
ᐸcaseᐳ"}}:::plan + First26 --> PgSelectSingle28 + PgClassExpression29{{"PgClassExpression[29∈0] ➊
ᐸ__case__.vᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression29 + First37{{"First[37∈0] ➊"}}:::plan + PgSelectRows38[["PgSelectRows[38∈0] ➊"]]:::plan + PgSelectRows38 --> First37 + PgSelect34 --> PgSelectRows38 + PgSelectSingle39{{"PgSelectSingle[39∈0] ➊
ᐸvalueOfᐳ"}}:::plan + First37 --> PgSelectSingle39 + PgClassExpression40{{"PgClassExpression[40∈0] ➊
ᐸ__value_of__.vᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression40 + First44{{"First[44∈0] ➊"}}:::plan + PgSelectRows45[["PgSelectRows[45∈0] ➊"]]:::plan + PgSelectRows45 --> First44 + PgSelect42 --> PgSelectRows45 + PgSelectSingle46{{"PgSelectSingle[46∈0] ➊
ᐸnullᐳ"}}:::plan + First44 --> PgSelectSingle46 + PgClassExpression53{{"PgClassExpression[53∈0] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression53 + PgClassExpression54{{"PgClassExpression[54∈0] ➊
ᐸ__null__.”break”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression54 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression49{{"PgClassExpression[49∈1] ➊
ᐸ”js_reserv...lder! */
)ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression49 - PgClassExpression50{{"PgClassExpression[50∈1] ➊
ᐸ__null__.”break”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression50 %% define steps subgraph "Buckets for queries/v4/js-reserved-function-names" - Bucket0("Bucket 0 (root)

1:
ᐳ: 11, 12, 51, 52, 53, 54, 55, 56, 57, 13
2: 10, 22, 32, 39
3: 15, 25, 35, 42
ᐳ: 14, 16, 17, 24, 26, 27, 34, 36, 37, 41, 43"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 11, 12, 55, 56, 57, 58, 59, 60, 61, 13, 14, 25, 36, 52
2: 10, 23, 34, 42
3: 16, 27, 38, 45
ᐳ: 15, 17, 18, 26, 28, 29, 37, 39, 40, 44, 46, 53, 54"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect10,Access11,Access12,Object13,First14,PgSelectRows15,PgSelectSingle16,PgClassExpression17,PgSelect22,First24,PgSelectRows25,PgSelectSingle26,PgClassExpression27,PgSelect32,First34,PgSelectRows35,PgSelectSingle36,PgClassExpression37,PgSelect39,First41,PgSelectRows42,PgSelectSingle43,Constant51,Constant52,Constant53,Constant54,Constant55,Constant56,Constant57 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 43

ROOT PgSelectSingleᐸnullᐳ[43]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression49,PgClassExpression50 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect10,Access11,Access12,Object13,PgFromExpression14,First15,PgSelectRows16,PgSelectSingle17,PgClassExpression18,PgSelect23,PgFromExpression25,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression29,PgSelect34,PgFromExpression36,First37,PgSelectRows38,PgSelectSingle39,PgClassExpression40,PgSelect42,First44,PgSelectRows45,PgSelectSingle46,PgFromExpression52,PgClassExpression53,PgClassExpression54,Constant55,Constant56,Constant57,Constant58,Constant59,Constant60,Constant61 bucket0 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords-as-columns.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords-as-columns.mermaid index dfb9ca8688..c99f8a4871 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords-as-columns.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords-as-columns.mermaid @@ -9,39 +9,53 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸmaterialᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect37[["PgSelect[37∈0] ➊
ᐸcropᐳ"]]:::plan + Object11 --> PgSelect37 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 PgSelect22[["PgSelect[22∈0] ➊
ᐸmaterialᐳ"]]:::plan Constant61{{"Constant[61∈0] ➊
ᐸ'concrete'ᐳ"}}:::plan - Object12 & Constant61 --> PgSelect22 + Object11 & Constant61 --> PgSelect22 PgSelect30[["PgSelect[30∈0] ➊
ᐸmaterialᐳ"]]:::plan Constant62{{"Constant[62∈0] ➊
ᐸ'spongy'ᐳ"}}:::plan - Object12 & Constant62 --> PgSelect30 + Object11 & Constant62 --> PgSelect30 PgSelect46[["PgSelect[46∈0] ➊
ᐸcropᐳ"]]:::plan Constant63{{"Constant[63∈0] ➊
ᐸ1ᐳ"}}:::plan - Object12 & Constant63 --> PgSelect46 + Object11 & Constant63 --> PgSelect46 PgSelect54[["PgSelect[54∈0] ➊
ᐸcropᐳ"]]:::plan Constant64{{"Constant[64∈0] ➊
ᐸ'corn'ᐳ"}}:::plan - Object12 & Constant64 --> PgSelect54 + Object11 & Constant64 --> PgSelect54 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan + PgSelect14 --> PgSelectRows15 First24{{"First[24∈0] ➊"}}:::plan PgSelectRows25[["PgSelectRows[25∈0] ➊"]]:::plan PgSelectRows25 --> First24 PgSelect22 --> PgSelectRows25 PgSelectSingle26{{"PgSelectSingle[26∈0] ➊
ᐸmaterialᐳ"}}:::plan First24 --> PgSelectSingle26 + PgClassExpression27{{"PgClassExpression[27∈0] ➊
ᐸ__material__.”class”ᐳ"}}:::plan + PgSelectSingle26 --> PgClassExpression27 + PgClassExpression28{{"PgClassExpression[28∈0] ➊
ᐸ__material__.”id”ᐳ"}}:::plan + PgSelectSingle26 --> PgClassExpression28 First32{{"First[32∈0] ➊"}}:::plan PgSelectRows33[["PgSelectRows[33∈0] ➊"]]:::plan PgSelectRows33 --> First32 PgSelect30 --> PgSelectRows33 PgSelectSingle34{{"PgSelectSingle[34∈0] ➊
ᐸmaterialᐳ"}}:::plan First32 --> PgSelectSingle34 - PgSelect37[["PgSelect[37∈0] ➊
ᐸcropᐳ"]]:::plan - Object12 --> PgSelect37 + PgClassExpression35{{"PgClassExpression[35∈0] ➊
ᐸ__material__.”class”ᐳ"}}:::plan + PgSelectSingle34 --> PgClassExpression35 + PgClassExpression36{{"PgClassExpression[36∈0] ➊
ᐸ__material__.”id”ᐳ"}}:::plan + PgSelectSingle34 --> PgClassExpression36 PgSelectRows39[["PgSelectRows[39∈0] ➊"]]:::plan PgSelect37 --> PgSelectRows39 First48{{"First[48∈0] ➊"}}:::plan @@ -50,86 +64,53 @@ graph TD PgSelect46 --> PgSelectRows49 PgSelectSingle50{{"PgSelectSingle[50∈0] ➊
ᐸcropᐳ"}}:::plan First48 --> PgSelectSingle50 + PgClassExpression51{{"PgClassExpression[51∈0] ➊
ᐸ__crop__.”yield”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression51 + PgClassExpression52{{"PgClassExpression[52∈0] ➊
ᐸ__crop__.”amount”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression52 First56{{"First[56∈0] ➊"}}:::plan PgSelectRows57[["PgSelectRows[57∈0] ➊"]]:::plan PgSelectRows57 --> First56 PgSelect54 --> PgSelectRows57 PgSelectSingle58{{"PgSelectSingle[58∈0] ➊
ᐸcropᐳ"}}:::plan First56 --> PgSelectSingle58 + PgClassExpression59{{"PgClassExpression[59∈0] ➊
ᐸ__crop__.”amount”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression59 + PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸ__crop__.”id”ᐳ"}}:::plan + PgSelectSingle58 --> PgClassExpression60 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸmaterialᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan - PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸmaterialᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸmaterialᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__material__.”valueOf”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__material__.”valueOf”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__material__.”class”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__material__.”class”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__material__.”id”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__material__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression20 - PgClassExpression27{{"PgClassExpression[27∈4] ➊
ᐸ__material__.”class”ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 - PgClassExpression28{{"PgClassExpression[28∈4] ➊
ᐸ__material__.”id”ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression28 - PgClassExpression35{{"PgClassExpression[35∈5] ➊
ᐸ__material__.”class”ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈5] ➊
ᐸ__material__.”id”ᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression36 - __Item40[/"__Item[40∈6]
ᐸ39ᐳ"\]:::itemplan + __Item40[/"__Item[40∈2]
ᐸ39ᐳ"\]:::itemplan PgSelectRows39 ==> __Item40 - PgSelectSingle41{{"PgSelectSingle[41∈6]
ᐸcropᐳ"}}:::plan + PgSelectSingle41{{"PgSelectSingle[41∈2]
ᐸcropᐳ"}}:::plan __Item40 --> PgSelectSingle41 - PgClassExpression42{{"PgClassExpression[42∈6]
ᐸ__crop__.”id”ᐳ"}}:::plan + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__crop__.”id”ᐳ"}}:::plan PgSelectSingle41 --> PgClassExpression42 - PgClassExpression43{{"PgClassExpression[43∈6]
ᐸ__crop__.”amount”ᐳ"}}:::plan + PgClassExpression43{{"PgClassExpression[43∈2]
ᐸ__crop__.”amount”ᐳ"}}:::plan PgSelectSingle41 --> PgClassExpression43 - PgClassExpression44{{"PgClassExpression[44∈6]
ᐸ__crop__.”yield”ᐳ"}}:::plan + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ__crop__.”yield”ᐳ"}}:::plan PgSelectSingle41 --> PgClassExpression44 - PgClassExpression51{{"PgClassExpression[51∈7] ➊
ᐸ__crop__.”yield”ᐳ"}}:::plan - PgSelectSingle50 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈7] ➊
ᐸ__crop__.”amount”ᐳ"}}:::plan - PgSelectSingle50 --> PgClassExpression52 - PgClassExpression59{{"PgClassExpression[59∈8] ➊
ᐸ__crop__.”amount”ᐳ"}}:::plan - PgSelectSingle58 --> PgClassExpression59 - PgClassExpression60{{"PgClassExpression[60∈8] ➊
ᐸ__crop__.”id”ᐳ"}}:::plan - PgSelectSingle58 --> PgClassExpression60 %% define steps subgraph "Buckets for queries/v4/js-reserved-keywords-as-columns" - Bucket0("Bucket 0 (root)

1:
ᐳ: 10, 11, 13, 61, 62, 63, 64, 12
2: 22, 30, 37, 46, 54
3: 25, 33, 39, 49, 57
ᐳ: 24, 26, 32, 34, 48, 50, 56, 58"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 61, 62, 63, 64, 11, 12
2: 14, 22, 30, 37, 46, 54
3: 15, 25, 33, 39, 49, 57
ᐳ: 24, 26, 27, 28, 32, 34, 35, 36, 48, 50, 51, 52, 56, 58, 59, 60"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,PgSelect22,First24,PgSelectRows25,PgSelectSingle26,PgSelect30,First32,PgSelectRows33,PgSelectSingle34,PgSelect37,PgSelectRows39,PgSelect46,First48,PgSelectRows49,PgSelectSingle50,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,Constant61,Constant62,Constant63,Constant64 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,PgSelect22,First24,PgSelectRows25,PgSelectSingle26,PgClassExpression27,PgClassExpression28,PgSelect30,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression35,PgClassExpression36,PgSelect37,PgSelectRows39,PgSelect46,First48,PgSelectRows49,PgSelectSingle50,PgClassExpression51,PgClassExpression52,PgSelect54,First56,PgSelectRows57,PgSelectSingle58,PgClassExpression59,PgClassExpression60,Constant61,Constant62,Constant63,Constant64 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgClassExpression20 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ39ᐳ[40]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17

ROOT PgSelectSingle{2}ᐸmaterialᐳ[17]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgClassExpression20 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 26

ROOT PgSelectSingleᐸmaterialᐳ[26]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression27,PgClassExpression28 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 34

ROOT PgSelectSingleᐸmaterialᐳ[34]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression35,PgClassExpression36 bucket5 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ39ᐳ[40]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,__Item40,PgSelectSingle41,PgClassExpression42,PgClassExpression43,PgClassExpression44 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 50

ROOT PgSelectSingleᐸcropᐳ[50]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression51,PgClassExpression52 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 58

ROOT PgSelectSingleᐸcropᐳ[58]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression59,PgClassExpression60 bucket8 - Bucket0 --> Bucket1 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 + class Bucket2,__Item40,PgSelectSingle41,PgClassExpression42,PgClassExpression43,PgClassExpression44 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords-as-columns.sql b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords-as-columns.sql index 33fec3b715..9abc0fe04b 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords-as-columns.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords-as-columns.sql @@ -1,3 +1,10 @@ +select + __material__."valueOf" as "0", + __material__."class" as "1", + __material__."id"::text as "2" +from "js_reserved"."material" as __material__ +order by __material__."id" asc; + select __material__."class" as "0", __material__."id"::text as "1" @@ -36,11 +43,4 @@ select from "js_reserved"."crop" as __crop__ where ( __crop__."yield" = $1::"text" -); - -select - __material__."valueOf" as "0", - __material__."class" as "1", - __material__."id"::text as "2" -from "js_reserved"."material" as __material__ -order by __material__."id" asc; \ No newline at end of file +); \ No newline at end of file diff --git a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords.mermaid index 6f2855e3cf..1acd2f62e7 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords.mermaid @@ -9,16 +9,27 @@ graph TD %% plan dependencies - PgSelect7[["PgSelect[7∈0] ➊
ᐸmachineᐳ"]]:::plan + PgSelect36[["PgSelect[36∈0] ➊
ᐸmachineᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant74{{"Constant[74∈0] ➊
ᐸ1ᐳ"}}:::plan - Object10 & Constant74 --> PgSelect7 + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸ__building...nstructor”ᐳ"}}:::plan + Connection34{{"Connection[34∈0] ➊
ᐸ32ᐳ"}}:::plan + Object10 & PgClassExpression31 & Connection34 --> PgSelect36 + PgSelect49[["PgSelect[49∈0] ➊
ᐸrelational_itemsᐳ"]]:::plan + Connection47{{"Connection[47∈0] ➊
ᐸ45ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect49 + Connection47 --> PgSelect49 + PgSelect7[["PgSelect[7∈0] ➊
ᐸmachineᐳ"]]:::plan + Constant70{{"Constant[70∈0] ➊
ᐸ1ᐳ"}}:::plan + Object10 & Constant70 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 - PgSelect26[["PgSelect[26∈0] ➊
ᐸbuildingᐳ"]]:::plan - Constant75{{"Constant[75∈0] ➊
ᐸ2ᐳ"}}:::plan - Object10 & Constant75 --> PgSelect26 + PgSelect15[["PgSelect[15∈0] ➊
ᐸbuildingᐳ"]]:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__machine_...nstructor”ᐳ"}}:::plan + Object10 & PgClassExpression14 --> PgSelect15 + PgSelect24[["PgSelect[24∈0] ➊
ᐸbuildingᐳ"]]:::plan + Constant71{{"Constant[71∈0] ➊
ᐸ2ᐳ"}}:::plan + Object10 & Constant71 --> PgSelect24 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -28,118 +39,89 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸmachineᐳ"}}:::plan First11 --> PgSelectSingle13 - First28{{"First[28∈0] ➊"}}:::plan - PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan - PgSelectRows29 --> First28 - PgSelect26 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈0] ➊
ᐸbuildingᐳ"}}:::plan - First28 --> PgSelectSingle30 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection39{{"Connection[39∈0] ➊
ᐸ35ᐳ"}}:::plan - Connection52{{"Connection[52∈0] ➊
ᐸ50ᐳ"}}:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸbuildingᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__machine_...nstructor”ᐳ"}}:::plan - Object10 & PgClassExpression14 --> PgSelect15 PgSelectSingle13 --> PgClassExpression14 - First19{{"First[19∈1] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect15 --> PgSelectRows20 - PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸbuildingᐳ"}}:::plan - First19 --> PgSelectSingle21 - PgClassExpression24{{"PgClassExpression[24∈1] ➊
ᐸ__machine__.”input”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression24 - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ__building__.”id”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈2] ➊
ᐸ__building...nstructor”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression23 - PgSelect40[["PgSelect[40∈3] ➊
ᐸmachineᐳ"]]:::plan - PgClassExpression34{{"PgClassExpression[34∈3] ➊
ᐸ__building...nstructor”ᐳ"}}:::plan - Object10 & PgClassExpression34 & Connection39 --> PgSelect40 - PgSelectSingle30 --> PgClassExpression34 - PgSelectRows41[["PgSelectRows[41∈3] ➊"]]:::plan - PgSelect40 --> PgSelectRows41 - PgClassExpression47{{"PgClassExpression[47∈3] ➊
ᐸ__building__.”name”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression47 - __Item42[/"__Item[42∈4]
ᐸ41ᐳ"\]:::itemplan - PgSelectRows41 ==> __Item42 - PgSelectSingle43{{"PgSelectSingle[43∈4]
ᐸmachineᐳ"}}:::plan - __Item42 --> PgSelectSingle43 - PgClassExpression44{{"PgClassExpression[44∈5]
ᐸ__machine__.”id”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression44 - PgClassExpression45{{"PgClassExpression[45∈5]
ᐸ__machine_...nstructor”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈5]
ᐸ__machine__.”input”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression46 - PgSelect53[["PgSelect[53∈6] ➊
ᐸrelational_itemsᐳ"]]:::plan - Object10 & Connection52 --> PgSelect53 - PgSelectRows54[["PgSelectRows[54∈6] ➊"]]:::plan - PgSelect53 --> PgSelectRows54 - __Item55[/"__Item[55∈7]
ᐸ54ᐳ"\]:::itemplan - PgSelectRows54 ==> __Item55 - PgSelectSingle56{{"PgSelectSingle[56∈7]
ᐸrelational_itemsᐳ"}}:::plan - __Item55 --> PgSelectSingle56 - PgClassExpression57{{"PgClassExpression[57∈7]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan - PgSelectSingle56 --> PgClassExpression57 - PgClassExpression65{{"PgClassExpression[65∈7]
ᐸ__relation...nstructor”ᐳ"}}:::plan - PgSelectSingle56 --> PgClassExpression65 - PgClassExpression66{{"PgClassExpression[66∈7]
ᐸ__relation...s__.”type”ᐳ"}}:::plan - PgSelectSingle56 --> PgClassExpression66 - PgSelect58[["PgSelect[58∈8]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan - Object10 & PgClassExpression57 --> PgSelect58 - PgSelect68[["PgSelect[68∈8]
ᐸrelational_statusᐳ
ᐳRelationalStatus"]]:::plan - Object10 & PgClassExpression57 --> PgSelect68 - First62{{"First[62∈8]"}}:::plan - PgSelectRows63[["PgSelectRows[63∈8]"]]:::plan - PgSelectRows63 --> First62 - PgSelect58 --> PgSelectRows63 - PgSelectSingle64{{"PgSelectSingle[64∈8]
ᐸrelational_topicsᐳ"}}:::plan - First62 --> PgSelectSingle64 - PgClassExpression67{{"PgClassExpression[67∈8]
ᐸ__relation...__.”title”ᐳ"}}:::plan - PgSelectSingle64 --> PgClassExpression67 - First70{{"First[70∈8]"}}:::plan - PgSelectRows71[["PgSelectRows[71∈8]"]]:::plan - PgSelectRows71 --> First70 - PgSelect68 --> PgSelectRows71 - PgSelectSingle72{{"PgSelectSingle[72∈8]
ᐸrelational_statusᐳ"}}:::plan - First70 --> PgSelectSingle72 - PgClassExpression73{{"PgClassExpression[73∈8]
ᐸ__relation...s__.”note”ᐳ"}}:::plan - PgSelectSingle72 --> PgClassExpression73 + First17{{"First[17∈0] ➊"}}:::plan + PgSelectRows18[["PgSelectRows[18∈0] ➊"]]:::plan + PgSelectRows18 --> First17 + PgSelect15 --> PgSelectRows18 + PgSelectSingle19{{"PgSelectSingle[19∈0] ➊
ᐸbuildingᐳ"}}:::plan + First17 --> PgSelectSingle19 + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__building__.”id”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression20 + PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__building...nstructor”ᐳ"}}:::plan + PgSelectSingle19 --> PgClassExpression21 + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__machine__.”input”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression22 + First26{{"First[26∈0] ➊"}}:::plan + PgSelectRows27[["PgSelectRows[27∈0] ➊"]]:::plan + PgSelectRows27 --> First26 + PgSelect24 --> PgSelectRows27 + PgSelectSingle28{{"PgSelectSingle[28∈0] ➊
ᐸbuildingᐳ"}}:::plan + First26 --> PgSelectSingle28 + PgSelectSingle28 --> PgClassExpression31 + PgSelectRows37[["PgSelectRows[37∈0] ➊"]]:::plan + PgSelect36 --> PgSelectRows37 + PgClassExpression43{{"PgClassExpression[43∈0] ➊
ᐸ__building__.”name”ᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression43 + PgSelectRows50[["PgSelectRows[50∈0] ➊"]]:::plan + PgSelect49 --> PgSelectRows50 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item38[/"__Item[38∈1]
ᐸ37ᐳ"\]:::itemplan + PgSelectRows37 ==> __Item38 + PgSelectSingle39{{"PgSelectSingle[39∈1]
ᐸmachineᐳ"}}:::plan + __Item38 --> PgSelectSingle39 + PgClassExpression40{{"PgClassExpression[40∈1]
ᐸ__machine__.”id”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression40 + PgClassExpression41{{"PgClassExpression[41∈1]
ᐸ__machine_...nstructor”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈1]
ᐸ__machine__.”input”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression42 + __Item51[/"__Item[51∈2]
ᐸ50ᐳ"\]:::itemplan + PgSelectRows50 ==> __Item51 + PgSelectSingle52{{"PgSelectSingle[52∈2]
ᐸrelational_itemsᐳ"}}:::plan + __Item51 --> PgSelectSingle52 + PgClassExpression53{{"PgClassExpression[53∈2]
ᐸ__relation...ems__.”id”ᐳ"}}:::plan + PgSelectSingle52 --> PgClassExpression53 + PgClassExpression61{{"PgClassExpression[61∈2]
ᐸ__relation...nstructor”ᐳ"}}:::plan + PgSelectSingle52 --> PgClassExpression61 + PgClassExpression62{{"PgClassExpression[62∈2]
ᐸ__relation...s__.”type”ᐳ"}}:::plan + PgSelectSingle52 --> PgClassExpression62 + PgSelect54[["PgSelect[54∈3]
ᐸrelational_topicsᐳ
ᐳRelationalTopic"]]:::plan + Object10 & PgClassExpression53 --> PgSelect54 + PgSelect64[["PgSelect[64∈3]
ᐸrelational_statusᐳ
ᐳRelationalStatus"]]:::plan + Object10 & PgClassExpression53 --> PgSelect64 + First58{{"First[58∈3]"}}:::plan + PgSelectRows59[["PgSelectRows[59∈3]"]]:::plan + PgSelectRows59 --> First58 + PgSelect54 --> PgSelectRows59 + PgSelectSingle60{{"PgSelectSingle[60∈3]
ᐸrelational_topicsᐳ"}}:::plan + First58 --> PgSelectSingle60 + PgClassExpression63{{"PgClassExpression[63∈3]
ᐸ__relation...__.”title”ᐳ"}}:::plan + PgSelectSingle60 --> PgClassExpression63 + First66{{"First[66∈3]"}}:::plan + PgSelectRows67[["PgSelectRows[67∈3]"]]:::plan + PgSelectRows67 --> First66 + PgSelect64 --> PgSelectRows67 + PgSelectSingle68{{"PgSelectSingle[68∈3]
ᐸrelational_statusᐳ"}}:::plan + First66 --> PgSelectSingle68 + PgClassExpression69{{"PgClassExpression[69∈3]
ᐸ__relation...s__.”note”ᐳ"}}:::plan + PgSelectSingle68 --> PgClassExpression69 %% define steps subgraph "Buckets for queries/v4/js-reserved-keywords" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 39, 52, 74, 75, 10
2: PgSelect[7], PgSelect[26]
3: PgSelectRows[12], PgSelectRows[29]
ᐳ: 11, 13, 28, 30"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 29, 70, 71, 10, 34, 47
2: PgSelect[7], PgSelect[24], PgSelect[49]
3: 12, 27, 50
ᐳ: 11, 13, 14, 22, 26, 28, 31, 43
4: PgSelect[15], PgSelect[36]
5: PgSelectRows[18], PgSelectRows[37]
ᐳ: 17, 19, 20, 21"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgSelect26,First28,PgSelectRows29,PgSelectSingle30,Connection39,Connection52,Constant74,Constant75 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10

ROOT PgSelectSingleᐸmachineᐳ[13]
1:
ᐳ: 14, 24
2: PgSelect[15]
3: PgSelectRows[20]
ᐳ: First[19], PgSelectSingle[21]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect15,First17,PgSelectRows18,PgSelectSingle19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgSelect24,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression31,Connection34,PgSelect36,PgSelectRows37,PgClassExpression43,Connection47,PgSelect49,PgSelectRows50,Constant70,Constant71 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ37ᐳ[38]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgSelect15,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression24 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 21

ROOT PgSelectSingle{1}ᐸbuildingᐳ[21]"):::bucket + class Bucket1,__Item38,PgSelectSingle39,PgClassExpression40,PgClassExpression41,PgClassExpression42 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 10

ROOT __Item{2}ᐸ50ᐳ[51]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgClassExpression23 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 30, 10, 39

ROOT PgSelectSingleᐸbuildingᐳ[30]
1:
ᐳ: 34, 47
2: PgSelect[40]
3: PgSelectRows[41]"):::bucket + class Bucket2,__Item51,PgSelectSingle52,PgClassExpression53,PgClassExpression61,PgClassExpression62 bucket2 + Bucket3("Bucket 3 (polymorphic)
RelationalTopic,RelationalStatus
Deps: 10, 53, 52, 61, 62
ᐳRelationalTopic
ᐳRelationalStatus

1: PgSelect[54], PgSelect[64]
2: PgSelectRows[59], PgSelectRows[67]
ᐳ: 58, 60, 63, 66, 68, 69"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression34,PgSelect40,PgSelectRows41,PgClassExpression47 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ41ᐳ[42]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item42,PgSelectSingle43 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 43

ROOT PgSelectSingle{4}ᐸmachineᐳ[43]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression44,PgClassExpression45,PgClassExpression46 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 10, 52

ROOT Connectionᐸ50ᐳ[52]
1: PgSelect[53]
2: PgSelectRows[54]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect53,PgSelectRows54 bucket6 - Bucket7("Bucket 7 (listItem)
Deps: 10

ROOT __Item{7}ᐸ54ᐳ[55]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,__Item55,PgSelectSingle56,PgClassExpression57,PgClassExpression65,PgClassExpression66 bucket7 - Bucket8("Bucket 8 (polymorphic)
RelationalTopic,RelationalStatus
Deps: 10, 57, 56, 65, 66
ᐳRelationalTopic
ᐳRelationalStatus

1: PgSelect[58], PgSelect[68]
2: PgSelectRows[63], PgSelectRows[71]
ᐳ: 62, 64, 67, 70, 72, 73"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgSelect58,First62,PgSelectRows63,PgSelectSingle64,PgClassExpression67,PgSelect68,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression73 bucket8 - Bucket0 --> Bucket1 & Bucket3 & Bucket6 - Bucket1 --> Bucket2 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 + class Bucket3,PgSelect54,First58,PgSelectRows59,PgSelectSingle60,PgClassExpression63,PgSelect64,First66,PgSelectRows67,PgSelectSingle68,PgClassExpression69 bucket3 + Bucket0 --> Bucket1 & Bucket2 + Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords.sql b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords.sql index 13815a7b00..7972837142 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-keywords.sql @@ -16,6 +16,13 @@ where ( __building__."id" = $1::"int4" ); +select + __relational_items__."id"::text as "0", + __relational_items__."constructor" as "1", + __relational_items__."type"::text as "2" +from "js_reserved"."relational_items" as __relational_items__ +order by __relational_items__."id" asc; + select __building__."id"::text as "0", __building__."constructor" as "1" @@ -34,13 +41,6 @@ where ( ) order by __machine__."id" asc; -select - __relational_items__."id"::text as "0", - __relational_items__."constructor" as "1", - __relational_items__."type"::text as "2" -from "js_reserved"."relational_items" as __relational_items__ -order by __relational_items__."id" asc; - select __relational_topics_result__.* from (select ids.ordinality - 1 as idx, (ids.value->>0)::"int4" as "id0" from json_array_elements($1::json) with ordinality as ids) as __relational_topics_identifiers__, lateral ( diff --git a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-pgreserved.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-pgreserved.mermaid index 60c7228649..595cc65189 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-pgreserved.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-pgreserved.mermaid @@ -9,7 +9,9 @@ graph TD %% plan dependencies + PgSelect7[["PgSelect[7∈0] ➊
ᐸreservedᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object10 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 @@ -25,8 +27,6 @@ graph TD PgSelect46[["PgSelect[46∈0] ➊
ᐸreservedᐳ"]]:::plan Constant56{{"Constant[56∈0] ➊
ᐸ'No Limit'ᐳ"}}:::plan Object10 & Constant56 --> PgSelect46 - PgSelect7[["PgSelect[7∈0] ➊
ᐸreservedᐳ"]]:::plan - Object10 --> PgSelect7 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -38,24 +38,46 @@ graph TD PgSelect19 --> PgSelectRows22 PgSelectSingle23{{"PgSelectSingle[23∈0] ➊
ᐸreservedᐳ"}}:::plan First21 --> PgSelectSingle23 + PgClassExpression24{{"PgClassExpression[24∈0] ➊
ᐸ__reserved__.”do”ᐳ"}}:::plan + PgSelectSingle23 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈0] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan + PgSelectSingle23 --> PgClassExpression25 + PgClassExpression26{{"PgClassExpression[26∈0] ➊
ᐸ__reserved__.”null”ᐳ"}}:::plan + PgSelectSingle23 --> PgClassExpression26 First30{{"First[30∈0] ➊"}}:::plan PgSelectRows31[["PgSelectRows[31∈0] ➊"]]:::plan PgSelectRows31 --> First30 PgSelect28 --> PgSelectRows31 PgSelectSingle32{{"PgSelectSingle[32∈0] ➊
ᐸreservedᐳ"}}:::plan First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈0] ➊
ᐸ__reserved__.”case”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈0] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 + PgClassExpression35{{"PgClassExpression[35∈0] ➊
ᐸ__reserved__.”null”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression35 First39{{"First[39∈0] ➊"}}:::plan PgSelectRows40[["PgSelectRows[40∈0] ➊"]]:::plan PgSelectRows40 --> First39 PgSelect37 --> PgSelectRows40 PgSelectSingle41{{"PgSelectSingle[41∈0] ➊
ᐸreservedᐳ"}}:::plan First39 --> PgSelectSingle41 + PgClassExpression42{{"PgClassExpression[42∈0] ➊
ᐸ__reserved__.”case”ᐳ"}}:::plan + PgSelectSingle41 --> PgClassExpression42 + PgClassExpression43{{"PgClassExpression[43∈0] ➊
ᐸ__reserved__.”do”ᐳ"}}:::plan + PgSelectSingle41 --> PgClassExpression43 + PgClassExpression44{{"PgClassExpression[44∈0] ➊
ᐸ__reserved__.”null”ᐳ"}}:::plan + PgSelectSingle41 --> PgClassExpression44 First48{{"First[48∈0] ➊"}}:::plan PgSelectRows49[["PgSelectRows[49∈0] ➊"]]:::plan PgSelectRows49 --> First48 PgSelect46 --> PgSelectRows49 PgSelectSingle50{{"PgSelectSingle[50∈0] ➊
ᐸreservedᐳ"}}:::plan First48 --> PgSelectSingle50 + PgClassExpression51{{"PgClassExpression[51∈0] ➊
ᐸ__reserved__.”case”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression51 + PgClassExpression52{{"PgClassExpression[52∈0] ➊
ᐸ__reserved__.”do”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression52 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan __Item12[/"__Item[12∈1]
ᐸ11ᐳ"\]:::itemplan PgSelectRows11 ==> __Item12 @@ -69,49 +91,15 @@ graph TD PgSelectSingle13 --> PgClassExpression16 PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__reserved__.”null”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression17 - PgClassExpression24{{"PgClassExpression[24∈2] ➊
ᐸ__reserved__.”do”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈2] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈2] ➊
ᐸ__reserved__.”null”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression26 - PgClassExpression33{{"PgClassExpression[33∈3] ➊
ᐸ__reserved__.”case”ᐳ"}}:::plan - PgSelectSingle32 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈3] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan - PgSelectSingle32 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈3] ➊
ᐸ__reserved__.”null”ᐳ"}}:::plan - PgSelectSingle32 --> PgClassExpression35 - PgClassExpression42{{"PgClassExpression[42∈4] ➊
ᐸ__reserved__.”case”ᐳ"}}:::plan - PgSelectSingle41 --> PgClassExpression42 - PgClassExpression43{{"PgClassExpression[43∈4] ➊
ᐸ__reserved__.”do”ᐳ"}}:::plan - PgSelectSingle41 --> PgClassExpression43 - PgClassExpression44{{"PgClassExpression[44∈4] ➊
ᐸ__reserved__.”null”ᐳ"}}:::plan - PgSelectSingle41 --> PgClassExpression44 - PgClassExpression51{{"PgClassExpression[51∈5] ➊
ᐸ__reserved__.”case”ᐳ"}}:::plan - PgSelectSingle50 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈5] ➊
ᐸ__reserved__.”do”ᐳ"}}:::plan - PgSelectSingle50 --> PgClassExpression52 %% define steps subgraph "Buckets for queries/v4/js-reserved-pgreserved" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 53, 54, 55, 56, 10
2: 7, 19, 28, 37, 46
3: 11, 22, 31, 40, 49
ᐳ: 21, 23, 30, 32, 39, 41, 48, 50"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 53, 54, 55, 56, 10
2: 7, 19, 28, 37, 46
3: 11, 22, 31, 40, 49
ᐳ: 21, 23, 24, 25, 26, 30, 32, 33, 34, 35, 39, 41, 42, 43, 44, 48, 50, 51, 52"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11,PgSelect19,First21,PgSelectRows22,PgSelectSingle23,PgSelect28,First30,PgSelectRows31,PgSelectSingle32,PgSelect37,First39,PgSelectRows40,PgSelectSingle41,PgSelect46,First48,PgSelectRows49,PgSelectSingle50,Constant53,Constant54,Constant55,Constant56 bucket0 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11,PgSelect19,First21,PgSelectRows22,PgSelectSingle23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgSelect28,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgSelect37,First39,PgSelectRows40,PgSelectSingle41,PgClassExpression42,PgClassExpression43,PgClassExpression44,PgSelect46,First48,PgSelectRows49,PgSelectSingle50,PgClassExpression51,PgClassExpression52,Constant53,Constant54,Constant55,Constant56 bucket0 Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ11ᐳ[12]"):::bucket classDef bucket1 stroke:#00bfff class Bucket1,__Item12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgClassExpression17 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 23

ROOT PgSelectSingleᐸreservedᐳ[23]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression24,PgClassExpression25,PgClassExpression26 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 32

ROOT PgSelectSingleᐸreservedᐳ[32]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression33,PgClassExpression34,PgClassExpression35 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 41

ROOT PgSelectSingleᐸreservedᐳ[41]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression42,PgClassExpression43,PgClassExpression44 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 50

ROOT PgSelectSingleᐸreservedᐳ[50]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression51,PgClassExpression52 bucket5 - Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket5 + Bucket0 --> Bucket1 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-proto.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-proto.mermaid index eb5a79cbdf..b6ad1b14a8 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-proto.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-proto.mermaid @@ -9,8 +9,12 @@ graph TD %% plan dependencies - PgSelect7[["PgSelect[7∈0] ➊
ᐸprojectᐳ"]]:::plan + PgSelect30[["PgSelect[30∈0] ➊
ᐸprojectᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection28{{"Connection[28∈0] ➊
ᐸ26ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect30 + Connection28 --> PgSelect30 + PgSelect7[["PgSelect[7∈0] ➊
ᐸprojectᐳ"]]:::plan Constant37{{"Constant[37∈0] ➊
ᐸ'DynaTAC'ᐳ"}}:::plan Object10 & Constant37 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan @@ -28,59 +32,42 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸprojectᐳ"}}:::plan First11 --> PgSelectSingle13 + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__project__.”brand”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression14 + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__project__.”id”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression15 First19{{"First[19∈0] ➊"}}:::plan PgSelectRows20[["PgSelectRows[20∈0] ➊"]]:::plan PgSelectRows20 --> First19 PgSelect17 --> PgSelectRows20 PgSelectSingle21{{"PgSelectSingle[21∈0] ➊
ᐸprojectᐳ"}}:::plan First19 --> PgSelectSingle21 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection29{{"Connection[29∈0] ➊
ᐸ27ᐳ"}}:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__project__.”brand”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression14 - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__project__.”id”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression15 - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ__project__.”brand”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__project__.”brand”ᐳ"}}:::plan PgSelectSingle21 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈2] ➊
ᐸ__project__.”__proto__”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__project__.”__proto__”ᐳ"}}:::plan PgSelectSingle21 --> PgClassExpression23 - PgSelect30[["PgSelect[30∈3] ➊
ᐸprojectᐳ"]]:::plan - Object10 & Connection29 --> PgSelect30 - PgSelectRows31[["PgSelectRows[31∈3] ➊"]]:::plan + PgSelectRows31[["PgSelectRows[31∈0] ➊"]]:::plan PgSelect30 --> PgSelectRows31 - __Item32[/"__Item[32∈4]
ᐸ31ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item32[/"__Item[32∈1]
ᐸ31ᐳ"\]:::itemplan PgSelectRows31 ==> __Item32 - PgSelectSingle33{{"PgSelectSingle[33∈4]
ᐸprojectᐳ"}}:::plan + PgSelectSingle33{{"PgSelectSingle[33∈1]
ᐸprojectᐳ"}}:::plan __Item32 --> PgSelectSingle33 - PgClassExpression34{{"PgClassExpression[34∈5]
ᐸ__project__.”__proto__”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__project__.”__proto__”ᐳ"}}:::plan PgSelectSingle33 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈5]
ᐸ__project__.”brand”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈1]
ᐸ__project__.”brand”ᐳ"}}:::plan PgSelectSingle33 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__project__.”id”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈1]
ᐸ__project__.”id”ᐳ"}}:::plan PgSelectSingle33 --> PgClassExpression36 %% define steps subgraph "Buckets for queries/v4/js-reserved-proto" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 29, 37, 38, 10
2: PgSelect[7], PgSelect[17]
3: PgSelectRows[12], PgSelectRows[20]
ᐳ: 11, 13, 19, 21"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 24, 37, 38, 10, 28
2: PgSelect[7], PgSelect[17], PgSelect[30]
3: 12, 20, 31
ᐳ: 11, 13, 14, 15, 19, 21, 22, 23"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgSelect17,First19,PgSelectRows20,PgSelectSingle21,Connection29,Constant37,Constant38 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13

ROOT PgSelectSingleᐸprojectᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgSelect17,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression22,PgClassExpression23,Connection28,PgSelect30,PgSelectRows31,Constant37,Constant38 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ31ᐳ[32]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 21

ROOT PgSelectSingleᐸprojectᐳ[21]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgClassExpression23 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 10, 29

ROOT Connectionᐸ27ᐳ[29]
1: PgSelect[30]
2: PgSelectRows[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgSelect30,PgSelectRows31 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ31ᐳ[32]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item32,PgSelectSingle33 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 33

ROOT PgSelectSingle{4}ᐸprojectᐳ[33]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression34,PgClassExpression35,PgClassExpression36 bucket5 - Bucket0 --> Bucket1 & Bucket2 & Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 + class Bucket1,__Item32,PgSelectSingle33,PgClassExpression34,PgClassExpression35,PgClassExpression36 bucket1 + Bucket0 --> Bucket1 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-table-names.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-table-names.mermaid index 4df14789a0..d6e3d2a8df 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-table-names.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/js-reserved-table-names.mermaid @@ -9,7 +9,15 @@ graph TD %% plan dependencies + PgSelect7[["PgSelect[7∈0] ➊
ᐸconstructorᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object10 --> PgSelect7 + PgSelect41[["PgSelect[41∈0] ➊
ᐸyieldᐳ"]]:::plan + Object10 --> PgSelect41 + PgSelect65[["PgSelect[65∈0] ➊
ᐸ__proto__ᐳ"]]:::plan + Object10 --> PgSelect65 + PgSelect89[["PgSelect[89∈0] ➊
ᐸnullᐳ"]]:::plan + Object10 --> PgSelect89 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 @@ -42,8 +50,6 @@ graph TD PgSelect114[["PgSelect[114∈0] ➊
ᐸnullᐳ"]]:::plan Constant129{{"Constant[129∈0] ➊
ᐸ3ᐳ"}}:::plan Object10 & Constant129 --> PgSelect114 - PgSelect7[["PgSelect[7∈0] ➊
ᐸconstructorᐳ"]]:::plan - Object10 --> PgSelect7 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -55,20 +61,30 @@ graph TD PgSelect18 --> PgSelectRows21 PgSelectSingle22{{"PgSelectSingle[22∈0] ➊
ᐸconstructorᐳ"}}:::plan First20 --> PgSelectSingle22 + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__constructor__.”name”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈0] ➊
ᐸ__constructor__.”id”ᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression24 First28{{"First[28∈0] ➊"}}:::plan PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan PgSelectRows29 --> First28 PgSelect26 --> PgSelectRows29 PgSelectSingle30{{"PgSelectSingle[30∈0] ➊
ᐸconstructorᐳ"}}:::plan First28 --> PgSelectSingle30 + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸ__construc..._.”export”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression31 + PgClassExpression32{{"PgClassExpression[32∈0] ➊
ᐸ__constructor__.”name”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression32 First36{{"First[36∈0] ➊"}}:::plan PgSelectRows37[["PgSelectRows[37∈0] ➊"]]:::plan PgSelectRows37 --> First36 PgSelect34 --> PgSelectRows37 PgSelectSingle38{{"PgSelectSingle[38∈0] ➊
ᐸconstructorᐳ"}}:::plan First36 --> PgSelectSingle38 - PgSelect41[["PgSelect[41∈0] ➊
ᐸyieldᐳ"]]:::plan - Object10 --> PgSelect41 + PgClassExpression39{{"PgClassExpression[39∈0] ➊
ᐸ__construc..._.”export”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + PgClassExpression40{{"PgClassExpression[40∈0] ➊
ᐸ__constructor__.”id”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression40 PgSelectRows43[["PgSelectRows[43∈0] ➊"]]:::plan PgSelect41 --> PgSelectRows43 First52{{"First[52∈0] ➊"}}:::plan @@ -77,14 +93,20 @@ graph TD PgSelect50 --> PgSelectRows53 PgSelectSingle54{{"PgSelectSingle[54∈0] ➊
ᐸyieldᐳ"}}:::plan First52 --> PgSelectSingle54 + PgClassExpression55{{"PgClassExpression[55∈0] ➊
ᐸ__yield__.”crop”ᐳ"}}:::plan + PgSelectSingle54 --> PgClassExpression55 + PgClassExpression56{{"PgClassExpression[56∈0] ➊
ᐸ__yield__.”id”ᐳ"}}:::plan + PgSelectSingle54 --> PgClassExpression56 First60{{"First[60∈0] ➊"}}:::plan PgSelectRows61[["PgSelectRows[61∈0] ➊"]]:::plan PgSelectRows61 --> First60 PgSelect58 --> PgSelectRows61 PgSelectSingle62{{"PgSelectSingle[62∈0] ➊
ᐸyieldᐳ"}}:::plan First60 --> PgSelectSingle62 - PgSelect65[["PgSelect[65∈0] ➊
ᐸ__proto__ᐳ"]]:::plan - Object10 --> PgSelect65 + PgClassExpression63{{"PgClassExpression[63∈0] ➊
ᐸ__yield__.”crop”ᐳ"}}:::plan + PgSelectSingle62 --> PgClassExpression63 + PgClassExpression64{{"PgClassExpression[64∈0] ➊
ᐸ__yield__.”export”ᐳ"}}:::plan + PgSelectSingle62 --> PgClassExpression64 PgSelectRows67[["PgSelectRows[67∈0] ➊"]]:::plan PgSelect65 --> PgSelectRows67 First76{{"First[76∈0] ➊"}}:::plan @@ -93,14 +115,20 @@ graph TD PgSelect74 --> PgSelectRows77 PgSelectSingle78{{"PgSelectSingle[78∈0] ➊
ᐸ__proto__ᐳ"}}:::plan First76 --> PgSelectSingle78 + PgClassExpression79{{"PgClassExpression[79∈0] ➊
ᐸ__proto__.”brand”ᐳ"}}:::plan + PgSelectSingle78 --> PgClassExpression79 + PgClassExpression80{{"PgClassExpression[80∈0] ➊
ᐸ__proto__.”name”ᐳ"}}:::plan + PgSelectSingle78 --> PgClassExpression80 First84{{"First[84∈0] ➊"}}:::plan PgSelectRows85[["PgSelectRows[85∈0] ➊"]]:::plan PgSelectRows85 --> First84 PgSelect82 --> PgSelectRows85 PgSelectSingle86{{"PgSelectSingle[86∈0] ➊
ᐸ__proto__ᐳ"}}:::plan First84 --> PgSelectSingle86 - PgSelect89[["PgSelect[89∈0] ➊
ᐸnullᐳ"]]:::plan - Object10 --> PgSelect89 + PgClassExpression87{{"PgClassExpression[87∈0] ➊
ᐸ__proto__.”brand”ᐳ"}}:::plan + PgSelectSingle86 --> PgClassExpression87 + PgClassExpression88{{"PgClassExpression[88∈0] ➊
ᐸ__proto__.”id”ᐳ"}}:::plan + PgSelectSingle86 --> PgClassExpression88 PgSelectRows91[["PgSelectRows[91∈0] ➊"]]:::plan PgSelect89 --> PgSelectRows91 First100{{"First[100∈0] ➊"}}:::plan @@ -109,18 +137,30 @@ graph TD PgSelect98 --> PgSelectRows101 PgSelectSingle102{{"PgSelectSingle[102∈0] ➊
ᐸnullᐳ"}}:::plan First100 --> PgSelectSingle102 + PgClassExpression103{{"PgClassExpression[103∈0] ➊
ᐸ__null__.”...nProperty”ᐳ"}}:::plan + PgSelectSingle102 --> PgClassExpression103 + PgClassExpression104{{"PgClassExpression[104∈0] ➊
ᐸ__null__.”id”ᐳ"}}:::plan + PgSelectSingle102 --> PgClassExpression104 First108{{"First[108∈0] ➊"}}:::plan PgSelectRows109[["PgSelectRows[109∈0] ➊"]]:::plan PgSelectRows109 --> First108 PgSelect106 --> PgSelectRows109 PgSelectSingle110{{"PgSelectSingle[110∈0] ➊
ᐸnullᐳ"}}:::plan First108 --> PgSelectSingle110 + PgClassExpression111{{"PgClassExpression[111∈0] ➊
ᐸ__null__.”break”ᐳ"}}:::plan + PgSelectSingle110 --> PgClassExpression111 + PgClassExpression112{{"PgClassExpression[112∈0] ➊
ᐸ__null__.”id”ᐳ"}}:::plan + PgSelectSingle110 --> PgClassExpression112 First116{{"First[116∈0] ➊"}}:::plan PgSelectRows117[["PgSelectRows[117∈0] ➊"]]:::plan PgSelectRows117 --> First116 PgSelect114 --> PgSelectRows117 PgSelectSingle118{{"PgSelectSingle[118∈0] ➊
ᐸnullᐳ"}}:::plan First116 --> PgSelectSingle118 + PgClassExpression119{{"PgClassExpression[119∈0] ➊
ᐸ__null__.”break”ᐳ"}}:::plan + PgSelectSingle118 --> PgClassExpression119 + PgClassExpression120{{"PgClassExpression[120∈0] ➊
ᐸ__null__.”...nProperty”ᐳ"}}:::plan + PgSelectSingle118 --> PgClassExpression120 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan __Item12[/"__Item[12∈1]
ᐸ11ᐳ"\]:::itemplan PgSelectRows11 ==> __Item12 @@ -132,124 +172,54 @@ graph TD PgSelectSingle13 --> PgClassExpression15 PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__constructor__.”id”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression16 - PgClassExpression23{{"PgClassExpression[23∈2] ➊
ᐸ__constructor__.”name”ᐳ"}}:::plan - PgSelectSingle22 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈2] ➊
ᐸ__constructor__.”id”ᐳ"}}:::plan - PgSelectSingle22 --> PgClassExpression24 - PgClassExpression31{{"PgClassExpression[31∈3] ➊
ᐸ__construc..._.”export”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__constructor__.”name”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 - PgClassExpression39{{"PgClassExpression[39∈4] ➊
ᐸ__construc..._.”export”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression39 - PgClassExpression40{{"PgClassExpression[40∈4] ➊
ᐸ__constructor__.”id”ᐳ"}}:::plan - PgSelectSingle38 --> PgClassExpression40 - __Item44[/"__Item[44∈5]
ᐸ43ᐳ"\]:::itemplan + __Item44[/"__Item[44∈2]
ᐸ43ᐳ"\]:::itemplan PgSelectRows43 ==> __Item44 - PgSelectSingle45{{"PgSelectSingle[45∈5]
ᐸyieldᐳ"}}:::plan + PgSelectSingle45{{"PgSelectSingle[45∈2]
ᐸyieldᐳ"}}:::plan __Item44 --> PgSelectSingle45 - PgClassExpression46{{"PgClassExpression[46∈5]
ᐸ__yield__.”crop”ᐳ"}}:::plan + PgClassExpression46{{"PgClassExpression[46∈2]
ᐸ__yield__.”crop”ᐳ"}}:::plan PgSelectSingle45 --> PgClassExpression46 - PgClassExpression47{{"PgClassExpression[47∈5]
ᐸ__yield__.”export”ᐳ"}}:::plan + PgClassExpression47{{"PgClassExpression[47∈2]
ᐸ__yield__.”export”ᐳ"}}:::plan PgSelectSingle45 --> PgClassExpression47 - PgClassExpression48{{"PgClassExpression[48∈5]
ᐸ__yield__.”id”ᐳ"}}:::plan + PgClassExpression48{{"PgClassExpression[48∈2]
ᐸ__yield__.”id”ᐳ"}}:::plan PgSelectSingle45 --> PgClassExpression48 - PgClassExpression55{{"PgClassExpression[55∈6] ➊
ᐸ__yield__.”crop”ᐳ"}}:::plan - PgSelectSingle54 --> PgClassExpression55 - PgClassExpression56{{"PgClassExpression[56∈6] ➊
ᐸ__yield__.”id”ᐳ"}}:::plan - PgSelectSingle54 --> PgClassExpression56 - PgClassExpression63{{"PgClassExpression[63∈7] ➊
ᐸ__yield__.”crop”ᐳ"}}:::plan - PgSelectSingle62 --> PgClassExpression63 - PgClassExpression64{{"PgClassExpression[64∈7] ➊
ᐸ__yield__.”export”ᐳ"}}:::plan - PgSelectSingle62 --> PgClassExpression64 - __Item68[/"__Item[68∈8]
ᐸ67ᐳ"\]:::itemplan + __Item68[/"__Item[68∈3]
ᐸ67ᐳ"\]:::itemplan PgSelectRows67 ==> __Item68 - PgSelectSingle69{{"PgSelectSingle[69∈8]
ᐸ__proto__ᐳ"}}:::plan + PgSelectSingle69{{"PgSelectSingle[69∈3]
ᐸ__proto__ᐳ"}}:::plan __Item68 --> PgSelectSingle69 - PgClassExpression70{{"PgClassExpression[70∈8]
ᐸ__proto__.”id”ᐳ"}}:::plan + PgClassExpression70{{"PgClassExpression[70∈3]
ᐸ__proto__.”id”ᐳ"}}:::plan PgSelectSingle69 --> PgClassExpression70 - PgClassExpression71{{"PgClassExpression[71∈8]
ᐸ__proto__.”name”ᐳ"}}:::plan + PgClassExpression71{{"PgClassExpression[71∈3]
ᐸ__proto__.”name”ᐳ"}}:::plan PgSelectSingle69 --> PgClassExpression71 - PgClassExpression72{{"PgClassExpression[72∈8]
ᐸ__proto__.”brand”ᐳ"}}:::plan + PgClassExpression72{{"PgClassExpression[72∈3]
ᐸ__proto__.”brand”ᐳ"}}:::plan PgSelectSingle69 --> PgClassExpression72 - PgClassExpression79{{"PgClassExpression[79∈9] ➊
ᐸ__proto__.”brand”ᐳ"}}:::plan - PgSelectSingle78 --> PgClassExpression79 - PgClassExpression80{{"PgClassExpression[80∈9] ➊
ᐸ__proto__.”name”ᐳ"}}:::plan - PgSelectSingle78 --> PgClassExpression80 - PgClassExpression87{{"PgClassExpression[87∈10] ➊
ᐸ__proto__.”brand”ᐳ"}}:::plan - PgSelectSingle86 --> PgClassExpression87 - PgClassExpression88{{"PgClassExpression[88∈10] ➊
ᐸ__proto__.”id”ᐳ"}}:::plan - PgSelectSingle86 --> PgClassExpression88 - __Item92[/"__Item[92∈11]
ᐸ91ᐳ"\]:::itemplan + __Item92[/"__Item[92∈4]
ᐸ91ᐳ"\]:::itemplan PgSelectRows91 ==> __Item92 - PgSelectSingle93{{"PgSelectSingle[93∈11]
ᐸnullᐳ"}}:::plan + PgSelectSingle93{{"PgSelectSingle[93∈4]
ᐸnullᐳ"}}:::plan __Item92 --> PgSelectSingle93 - PgClassExpression94{{"PgClassExpression[94∈11]
ᐸ__null__.”break”ᐳ"}}:::plan + PgClassExpression94{{"PgClassExpression[94∈4]
ᐸ__null__.”break”ᐳ"}}:::plan PgSelectSingle93 --> PgClassExpression94 - PgClassExpression95{{"PgClassExpression[95∈11]
ᐸ__null__.”...nProperty”ᐳ"}}:::plan + PgClassExpression95{{"PgClassExpression[95∈4]
ᐸ__null__.”...nProperty”ᐳ"}}:::plan PgSelectSingle93 --> PgClassExpression95 - PgClassExpression96{{"PgClassExpression[96∈11]
ᐸ__null__.”id”ᐳ"}}:::plan + PgClassExpression96{{"PgClassExpression[96∈4]
ᐸ__null__.”id”ᐳ"}}:::plan PgSelectSingle93 --> PgClassExpression96 - PgClassExpression103{{"PgClassExpression[103∈12] ➊
ᐸ__null__.”...nProperty”ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression103 - PgClassExpression104{{"PgClassExpression[104∈12] ➊
ᐸ__null__.”id”ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression104 - PgClassExpression111{{"PgClassExpression[111∈13] ➊
ᐸ__null__.”break”ᐳ"}}:::plan - PgSelectSingle110 --> PgClassExpression111 - PgClassExpression112{{"PgClassExpression[112∈13] ➊
ᐸ__null__.”id”ᐳ"}}:::plan - PgSelectSingle110 --> PgClassExpression112 - PgClassExpression119{{"PgClassExpression[119∈14] ➊
ᐸ__null__.”break”ᐳ"}}:::plan - PgSelectSingle118 --> PgClassExpression119 - PgClassExpression120{{"PgClassExpression[120∈14] ➊
ᐸ__null__.”...nProperty”ᐳ"}}:::plan - PgSelectSingle118 --> PgClassExpression120 %% define steps subgraph "Buckets for queries/v4/js-reserved-table-names" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 121, 122, 123, 124, 125, 126, 127, 128, 129, 10
2: 7, 18, 26, 34, 41, 50, 58, 65, 74, 82, 89, 98, 106, 114
3: 11, 21, 29, 37, 43, 53, 61, 67, 77, 85, 91, 101, 109, 117
ᐳ: 20, 22, 28, 30, 36, 38, 52, 54, 60, 62, 76, 78, 84, 86, 100, 102, 108, 110, 116, 118"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 121, 122, 123, 124, 125, 126, 127, 128, 129, 10
2: 7, 18, 26, 34, 41, 50, 58, 65, 74, 82, 89, 98, 106, 114
3: 11, 21, 29, 37, 43, 53, 61, 67, 77, 85, 91, 101, 109, 117
ᐳ: 20, 22, 23, 24, 28, 30, 31, 32, 36, 38, 39, 40, 52, 54, 55, 56, 60, 62, 63, 64, 76, 78, 79, 80, 84, 86, 87, 88, 100, 102, 103, 104, 108, 110, 111, 112, 116, 118, 119, 120"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11,PgSelect18,First20,PgSelectRows21,PgSelectSingle22,PgSelect26,First28,PgSelectRows29,PgSelectSingle30,PgSelect34,First36,PgSelectRows37,PgSelectSingle38,PgSelect41,PgSelectRows43,PgSelect50,First52,PgSelectRows53,PgSelectSingle54,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgSelect65,PgSelectRows67,PgSelect74,First76,PgSelectRows77,PgSelectSingle78,PgSelect82,First84,PgSelectRows85,PgSelectSingle86,PgSelect89,PgSelectRows91,PgSelect98,First100,PgSelectRows101,PgSelectSingle102,PgSelect106,First108,PgSelectRows109,PgSelectSingle110,PgSelect114,First116,PgSelectRows117,PgSelectSingle118,Constant121,Constant122,Constant123,Constant124,Constant125,Constant126,Constant127,Constant128,Constant129 bucket0 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11,PgSelect18,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgClassExpression24,PgSelect26,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,PgClassExpression32,PgSelect34,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgClassExpression40,PgSelect41,PgSelectRows43,PgSelect50,First52,PgSelectRows53,PgSelectSingle54,PgClassExpression55,PgClassExpression56,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgClassExpression63,PgClassExpression64,PgSelect65,PgSelectRows67,PgSelect74,First76,PgSelectRows77,PgSelectSingle78,PgClassExpression79,PgClassExpression80,PgSelect82,First84,PgSelectRows85,PgSelectSingle86,PgClassExpression87,PgClassExpression88,PgSelect89,PgSelectRows91,PgSelect98,First100,PgSelectRows101,PgSelectSingle102,PgClassExpression103,PgClassExpression104,PgSelect106,First108,PgSelectRows109,PgSelectSingle110,PgClassExpression111,PgClassExpression112,PgSelect114,First116,PgSelectRows117,PgSelectSingle118,PgClassExpression119,PgClassExpression120,Constant121,Constant122,Constant123,Constant124,Constant125,Constant126,Constant127,Constant128,Constant129 bucket0 Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ11ᐳ[12]"):::bucket classDef bucket1 stroke:#00bfff class Bucket1,__Item12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgClassExpression16 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 22

ROOT PgSelectSingleᐸconstructorᐳ[22]"):::bucket + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ43ᐳ[44]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression23,PgClassExpression24 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 30

ROOT PgSelectSingleᐸconstructorᐳ[30]"):::bucket + class Bucket2,__Item44,PgSelectSingle45,PgClassExpression46,PgClassExpression47,PgClassExpression48 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ67ᐳ[68]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression31,PgClassExpression32 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 38

ROOT PgSelectSingleᐸconstructorᐳ[38]"):::bucket + class Bucket3,__Item68,PgSelectSingle69,PgClassExpression70,PgClassExpression71,PgClassExpression72 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ91ᐳ[92]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression39,PgClassExpression40 bucket4 - Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ43ᐳ[44]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item44,PgSelectSingle45,PgClassExpression46,PgClassExpression47,PgClassExpression48 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 54

ROOT PgSelectSingleᐸyieldᐳ[54]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression55,PgClassExpression56 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 62

ROOT PgSelectSingleᐸyieldᐳ[62]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression63,PgClassExpression64 bucket7 - Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ67ᐳ[68]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,__Item68,PgSelectSingle69,PgClassExpression70,PgClassExpression71,PgClassExpression72 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 78

ROOT PgSelectSingleᐸ__proto__ᐳ[78]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression79,PgClassExpression80 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 86

ROOT PgSelectSingleᐸ__proto__ᐳ[86]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression87,PgClassExpression88 bucket10 - Bucket11("Bucket 11 (listItem)

ROOT __Item{11}ᐸ91ᐳ[92]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,__Item92,PgSelectSingle93,PgClassExpression94,PgClassExpression95,PgClassExpression96 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 102

ROOT PgSelectSingleᐸnullᐳ[102]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgClassExpression103,PgClassExpression104 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 110

ROOT PgSelectSingleᐸnullᐳ[110]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,PgClassExpression111,PgClassExpression112 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 118

ROOT PgSelectSingleᐸnullᐳ[118]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,PgClassExpression119,PgClassExpression120 bucket14 - Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 & Bucket11 & Bucket12 & Bucket13 & Bucket14 + class Bucket4,__Item92,PgSelectSingle93,PgClassExpression94,PgClassExpression95,PgClassExpression96 bucket4 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/json-nested-query.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/json-nested-query.mermaid index 5ecc8f840b..be158f268a 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/json-nested-query.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/json-nested-query.mermaid @@ -11,11 +11,12 @@ graph TD %% plan dependencies PgSelect9[["PgSelect[9∈0] ➊
ᐸjson_identityᐳ"]]:::plan Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - __InputDynamicScalar6{{"__InputDynamicScalar[6∈0] ➊"}}:::plan - Object12 & __InputDynamicScalar6 --> PgSelect9 + PgFromExpression13{{"PgFromExpression[13∈0] ➊"}}:::plan + Object12 & PgFromExpression13 --> PgSelect9 Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access10 & Access11 --> Object12 + __InputDynamicScalar6{{"__InputDynamicScalar[6∈0] ➊"}}:::plan Access7{{"Access[7∈0] ➊
ᐸ0.valueᐳ"}}:::plan Access7 --> __InputDynamicScalar6 __Value0["__Value[0∈0] ➊
ᐸvariableValuesᐳ"]:::plan @@ -23,20 +24,21 @@ graph TD __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access10 __Value2 --> Access11 - First13{{"First[13∈0] ➊"}}:::plan - PgSelectRows14[["PgSelectRows[14∈0] ➊"]]:::plan - PgSelectRows14 --> First13 - PgSelect9 --> PgSelectRows14 - PgSelectSingle15{{"PgSelectSingle[15∈0] ➊
ᐸjson_identityᐳ"}}:::plan - First13 --> PgSelectSingle15 - PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan - PgSelectSingle15 --> PgClassExpression16 + __InputDynamicScalar6 --> PgFromExpression13 + First14{{"First[14∈0] ➊"}}:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan + PgSelectRows15 --> First14 + PgSelect9 --> PgSelectRows15 + PgSelectSingle16{{"PgSelectSingle[16∈0] ➊
ᐸjson_identityᐳ"}}:::plan + First14 --> PgSelectSingle16 + PgClassExpression17{{"PgClassExpression[17∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan + PgSelectSingle16 --> PgClassExpression17 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/v4/json-nested-query" - Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 10, 11, 6, 12
2: PgSelect[9]
3: PgSelectRows[14]
ᐳ: 13, 15, 16"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 10, 11, 6, 12, 13
2: PgSelect[9]
3: PgSelectRows[15]
ᐳ: 14, 16, 17"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value0,__Value2,__Value4,__InputDynamicScalar6,Access7,PgSelect9,Access10,Access11,Object12,First13,PgSelectRows14,PgSelectSingle15,PgClassExpression16 bucket0 + class Bucket0,__Value0,__Value2,__Value4,__InputDynamicScalar6,Access7,PgSelect9,Access10,Access11,Object12,PgFromExpression13,First14,PgSelectRows15,PgSelectSingle16,PgClassExpression17 bucket0 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/json-overflow-nested.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/json-overflow-nested.mermaid index f34c90f841..c8be0cc0cf 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/json-overflow-nested.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/json-overflow-nested.mermaid @@ -9,372 +9,567 @@ graph TD %% plan dependencies - Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access11 & Access12 --> Object13 + PgSelect15[["PgSelect[15∈0] ➊
ᐸpersonᐳ"]]:::plan + Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant445{{"Constant[445∈0] ➊
ᐸ1ᐳ"}}:::plan + Object12 -->|rejectNull| PgSelect15 + Connection13 & Constant445 --> PgSelect15 + Constant445 --> Connection13 + Connection26{{"Connection[26∈0] ➊
ᐸ22ᐳ"}}:::plan + Constant445 --> Connection26 + Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access10 & Access11 --> Object12 + PgFromExpression35{{"PgFromExpression[35∈0] ➊"}}:::plan + Constant445 --> PgFromExpression35 + PgFromExpression39{{"PgFromExpression[39∈0] ➊"}}:::plan + Constant446{{"Constant[446∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant446 --> PgFromExpression39 + PgFromExpression43{{"PgFromExpression[43∈0] ➊"}}:::plan + Constant447{{"Constant[447∈0] ➊
ᐸ3ᐳ"}}:::plan + Constant447 --> PgFromExpression43 + PgFromExpression47{{"PgFromExpression[47∈0] ➊"}}:::plan + Constant448{{"Constant[448∈0] ➊
ᐸ4ᐳ"}}:::plan + Constant448 --> PgFromExpression47 + PgFromExpression51{{"PgFromExpression[51∈0] ➊"}}:::plan + Constant449{{"Constant[449∈0] ➊
ᐸ5ᐳ"}}:::plan + Constant449 --> PgFromExpression51 + PgFromExpression55{{"PgFromExpression[55∈0] ➊"}}:::plan + Constant450{{"Constant[450∈0] ➊
ᐸ6ᐳ"}}:::plan + Constant450 --> PgFromExpression55 + PgFromExpression59{{"PgFromExpression[59∈0] ➊"}}:::plan + Constant451{{"Constant[451∈0] ➊
ᐸ7ᐳ"}}:::plan + Constant451 --> PgFromExpression59 + PgFromExpression63{{"PgFromExpression[63∈0] ➊"}}:::plan + Constant452{{"Constant[452∈0] ➊
ᐸ8ᐳ"}}:::plan + Constant452 --> PgFromExpression63 + PgFromExpression67{{"PgFromExpression[67∈0] ➊"}}:::plan + Constant453{{"Constant[453∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant453 --> PgFromExpression67 + PgFromExpression71{{"PgFromExpression[71∈0] ➊"}}:::plan + Constant454{{"Constant[454∈0] ➊
ᐸ10ᐳ"}}:::plan + Constant454 --> PgFromExpression71 + PgFromExpression75{{"PgFromExpression[75∈0] ➊"}}:::plan + Constant455{{"Constant[455∈0] ➊
ᐸ11ᐳ"}}:::plan + Constant455 --> PgFromExpression75 + PgFromExpression79{{"PgFromExpression[79∈0] ➊"}}:::plan + Constant456{{"Constant[456∈0] ➊
ᐸ12ᐳ"}}:::plan + Constant456 --> PgFromExpression79 + PgFromExpression83{{"PgFromExpression[83∈0] ➊"}}:::plan + Constant457{{"Constant[457∈0] ➊
ᐸ13ᐳ"}}:::plan + Constant457 --> PgFromExpression83 + PgFromExpression87{{"PgFromExpression[87∈0] ➊"}}:::plan + Constant458{{"Constant[458∈0] ➊
ᐸ14ᐳ"}}:::plan + Constant458 --> PgFromExpression87 + PgFromExpression91{{"PgFromExpression[91∈0] ➊"}}:::plan + Constant459{{"Constant[459∈0] ➊
ᐸ15ᐳ"}}:::plan + Constant459 --> PgFromExpression91 + PgFromExpression95{{"PgFromExpression[95∈0] ➊"}}:::plan + Constant460{{"Constant[460∈0] ➊
ᐸ16ᐳ"}}:::plan + Constant460 --> PgFromExpression95 + PgFromExpression99{{"PgFromExpression[99∈0] ➊"}}:::plan + Constant461{{"Constant[461∈0] ➊
ᐸ17ᐳ"}}:::plan + Constant461 --> PgFromExpression99 + PgFromExpression103{{"PgFromExpression[103∈0] ➊"}}:::plan + Constant462{{"Constant[462∈0] ➊
ᐸ18ᐳ"}}:::plan + Constant462 --> PgFromExpression103 + PgFromExpression107{{"PgFromExpression[107∈0] ➊"}}:::plan + Constant463{{"Constant[463∈0] ➊
ᐸ19ᐳ"}}:::plan + Constant463 --> PgFromExpression107 + PgFromExpression111{{"PgFromExpression[111∈0] ➊"}}:::plan + Constant464{{"Constant[464∈0] ➊
ᐸ20ᐳ"}}:::plan + Constant464 --> PgFromExpression111 + PgFromExpression115{{"PgFromExpression[115∈0] ➊"}}:::plan + Constant465{{"Constant[465∈0] ➊
ᐸ21ᐳ"}}:::plan + Constant465 --> PgFromExpression115 + PgFromExpression119{{"PgFromExpression[119∈0] ➊"}}:::plan + Constant466{{"Constant[466∈0] ➊
ᐸ22ᐳ"}}:::plan + Constant466 --> PgFromExpression119 + PgFromExpression123{{"PgFromExpression[123∈0] ➊"}}:::plan + Constant467{{"Constant[467∈0] ➊
ᐸ23ᐳ"}}:::plan + Constant467 --> PgFromExpression123 + PgFromExpression127{{"PgFromExpression[127∈0] ➊"}}:::plan + Constant468{{"Constant[468∈0] ➊
ᐸ24ᐳ"}}:::plan + Constant468 --> PgFromExpression127 + PgFromExpression131{{"PgFromExpression[131∈0] ➊"}}:::plan + Constant469{{"Constant[469∈0] ➊
ᐸ25ᐳ"}}:::plan + Constant469 --> PgFromExpression131 + PgFromExpression135{{"PgFromExpression[135∈0] ➊"}}:::plan + Constant470{{"Constant[470∈0] ➊
ᐸ26ᐳ"}}:::plan + Constant470 --> PgFromExpression135 + PgFromExpression139{{"PgFromExpression[139∈0] ➊"}}:::plan + Constant471{{"Constant[471∈0] ➊
ᐸ27ᐳ"}}:::plan + Constant471 --> PgFromExpression139 + PgFromExpression143{{"PgFromExpression[143∈0] ➊"}}:::plan + Constant472{{"Constant[472∈0] ➊
ᐸ28ᐳ"}}:::plan + Constant472 --> PgFromExpression143 + PgFromExpression147{{"PgFromExpression[147∈0] ➊"}}:::plan + Constant473{{"Constant[473∈0] ➊
ᐸ29ᐳ"}}:::plan + Constant473 --> PgFromExpression147 + PgFromExpression151{{"PgFromExpression[151∈0] ➊"}}:::plan + Constant474{{"Constant[474∈0] ➊
ᐸ30ᐳ"}}:::plan + Constant474 --> PgFromExpression151 + PgFromExpression155{{"PgFromExpression[155∈0] ➊"}}:::plan + Constant475{{"Constant[475∈0] ➊
ᐸ31ᐳ"}}:::plan + Constant475 --> PgFromExpression155 + PgFromExpression159{{"PgFromExpression[159∈0] ➊"}}:::plan + Constant476{{"Constant[476∈0] ➊
ᐸ32ᐳ"}}:::plan + Constant476 --> PgFromExpression159 + PgFromExpression163{{"PgFromExpression[163∈0] ➊"}}:::plan + Constant477{{"Constant[477∈0] ➊
ᐸ33ᐳ"}}:::plan + Constant477 --> PgFromExpression163 + PgFromExpression167{{"PgFromExpression[167∈0] ➊"}}:::plan + Constant478{{"Constant[478∈0] ➊
ᐸ34ᐳ"}}:::plan + Constant478 --> PgFromExpression167 + PgFromExpression171{{"PgFromExpression[171∈0] ➊"}}:::plan + Constant479{{"Constant[479∈0] ➊
ᐸ35ᐳ"}}:::plan + Constant479 --> PgFromExpression171 + PgFromExpression175{{"PgFromExpression[175∈0] ➊"}}:::plan + Constant480{{"Constant[480∈0] ➊
ᐸ36ᐳ"}}:::plan + Constant480 --> PgFromExpression175 + PgFromExpression179{{"PgFromExpression[179∈0] ➊"}}:::plan + Constant481{{"Constant[481∈0] ➊
ᐸ37ᐳ"}}:::plan + Constant481 --> PgFromExpression179 + PgFromExpression183{{"PgFromExpression[183∈0] ➊"}}:::plan + Constant482{{"Constant[482∈0] ➊
ᐸ38ᐳ"}}:::plan + Constant482 --> PgFromExpression183 + PgFromExpression187{{"PgFromExpression[187∈0] ➊"}}:::plan + Constant483{{"Constant[483∈0] ➊
ᐸ39ᐳ"}}:::plan + Constant483 --> PgFromExpression187 + PgFromExpression191{{"PgFromExpression[191∈0] ➊"}}:::plan + Constant484{{"Constant[484∈0] ➊
ᐸ40ᐳ"}}:::plan + Constant484 --> PgFromExpression191 + PgFromExpression195{{"PgFromExpression[195∈0] ➊"}}:::plan + Constant485{{"Constant[485∈0] ➊
ᐸ41ᐳ"}}:::plan + Constant485 --> PgFromExpression195 + PgFromExpression199{{"PgFromExpression[199∈0] ➊"}}:::plan + Constant486{{"Constant[486∈0] ➊
ᐸ42ᐳ"}}:::plan + Constant486 --> PgFromExpression199 + PgFromExpression203{{"PgFromExpression[203∈0] ➊"}}:::plan + Constant487{{"Constant[487∈0] ➊
ᐸ43ᐳ"}}:::plan + Constant487 --> PgFromExpression203 + PgFromExpression207{{"PgFromExpression[207∈0] ➊"}}:::plan + Constant488{{"Constant[488∈0] ➊
ᐸ44ᐳ"}}:::plan + Constant488 --> PgFromExpression207 + PgFromExpression211{{"PgFromExpression[211∈0] ➊"}}:::plan + Constant489{{"Constant[489∈0] ➊
ᐸ45ᐳ"}}:::plan + Constant489 --> PgFromExpression211 + PgFromExpression215{{"PgFromExpression[215∈0] ➊"}}:::plan + Constant490{{"Constant[490∈0] ➊
ᐸ46ᐳ"}}:::plan + Constant490 --> PgFromExpression215 + PgFromExpression219{{"PgFromExpression[219∈0] ➊"}}:::plan + Constant491{{"Constant[491∈0] ➊
ᐸ47ᐳ"}}:::plan + Constant491 --> PgFromExpression219 + PgFromExpression223{{"PgFromExpression[223∈0] ➊"}}:::plan + Constant492{{"Constant[492∈0] ➊
ᐸ48ᐳ"}}:::plan + Constant492 --> PgFromExpression223 + PgFromExpression227{{"PgFromExpression[227∈0] ➊"}}:::plan + Constant493{{"Constant[493∈0] ➊
ᐸ49ᐳ"}}:::plan + Constant493 --> PgFromExpression227 + PgFromExpression231{{"PgFromExpression[231∈0] ➊"}}:::plan + Constant494{{"Constant[494∈0] ➊
ᐸ50ᐳ"}}:::plan + Constant494 --> PgFromExpression231 + PgFromExpression235{{"PgFromExpression[235∈0] ➊"}}:::plan + Constant495{{"Constant[495∈0] ➊
ᐸ51ᐳ"}}:::plan + Constant495 --> PgFromExpression235 + PgFromExpression239{{"PgFromExpression[239∈0] ➊"}}:::plan + Constant496{{"Constant[496∈0] ➊
ᐸ52ᐳ"}}:::plan + Constant496 --> PgFromExpression239 + PgFromExpression243{{"PgFromExpression[243∈0] ➊"}}:::plan + Constant497{{"Constant[497∈0] ➊
ᐸ53ᐳ"}}:::plan + Constant497 --> PgFromExpression243 + PgFromExpression247{{"PgFromExpression[247∈0] ➊"}}:::plan + Constant498{{"Constant[498∈0] ➊
ᐸ54ᐳ"}}:::plan + Constant498 --> PgFromExpression247 + PgFromExpression251{{"PgFromExpression[251∈0] ➊"}}:::plan + Constant499{{"Constant[499∈0] ➊
ᐸ55ᐳ"}}:::plan + Constant499 --> PgFromExpression251 + PgFromExpression255{{"PgFromExpression[255∈0] ➊"}}:::plan + Constant500{{"Constant[500∈0] ➊
ᐸ56ᐳ"}}:::plan + Constant500 --> PgFromExpression255 + PgFromExpression259{{"PgFromExpression[259∈0] ➊"}}:::plan + Constant501{{"Constant[501∈0] ➊
ᐸ57ᐳ"}}:::plan + Constant501 --> PgFromExpression259 + PgFromExpression263{{"PgFromExpression[263∈0] ➊"}}:::plan + Constant502{{"Constant[502∈0] ➊
ᐸ58ᐳ"}}:::plan + Constant502 --> PgFromExpression263 + PgFromExpression267{{"PgFromExpression[267∈0] ➊"}}:::plan + Constant503{{"Constant[503∈0] ➊
ᐸ59ᐳ"}}:::plan + Constant503 --> PgFromExpression267 + PgFromExpression271{{"PgFromExpression[271∈0] ➊"}}:::plan + Constant504{{"Constant[504∈0] ➊
ᐸ60ᐳ"}}:::plan + Constant504 --> PgFromExpression271 + PgFromExpression275{{"PgFromExpression[275∈0] ➊"}}:::plan + Constant505{{"Constant[505∈0] ➊
ᐸ61ᐳ"}}:::plan + Constant505 --> PgFromExpression275 + PgFromExpression279{{"PgFromExpression[279∈0] ➊"}}:::plan + Constant506{{"Constant[506∈0] ➊
ᐸ62ᐳ"}}:::plan + Constant506 --> PgFromExpression279 + PgFromExpression283{{"PgFromExpression[283∈0] ➊"}}:::plan + Constant507{{"Constant[507∈0] ➊
ᐸ63ᐳ"}}:::plan + Constant507 --> PgFromExpression283 + PgFromExpression287{{"PgFromExpression[287∈0] ➊"}}:::plan + Constant508{{"Constant[508∈0] ➊
ᐸ64ᐳ"}}:::plan + Constant508 --> PgFromExpression287 + PgFromExpression291{{"PgFromExpression[291∈0] ➊"}}:::plan + Constant509{{"Constant[509∈0] ➊
ᐸ65ᐳ"}}:::plan + Constant509 --> PgFromExpression291 + PgFromExpression295{{"PgFromExpression[295∈0] ➊"}}:::plan + Constant510{{"Constant[510∈0] ➊
ᐸ66ᐳ"}}:::plan + Constant510 --> PgFromExpression295 + PgFromExpression299{{"PgFromExpression[299∈0] ➊"}}:::plan + Constant511{{"Constant[511∈0] ➊
ᐸ67ᐳ"}}:::plan + Constant511 --> PgFromExpression299 + PgFromExpression303{{"PgFromExpression[303∈0] ➊"}}:::plan + Constant512{{"Constant[512∈0] ➊
ᐸ68ᐳ"}}:::plan + Constant512 --> PgFromExpression303 + PgFromExpression307{{"PgFromExpression[307∈0] ➊"}}:::plan + Constant513{{"Constant[513∈0] ➊
ᐸ69ᐳ"}}:::plan + Constant513 --> PgFromExpression307 + PgFromExpression311{{"PgFromExpression[311∈0] ➊"}}:::plan + Constant514{{"Constant[514∈0] ➊
ᐸ70ᐳ"}}:::plan + Constant514 --> PgFromExpression311 + PgFromExpression315{{"PgFromExpression[315∈0] ➊"}}:::plan + Constant515{{"Constant[515∈0] ➊
ᐸ71ᐳ"}}:::plan + Constant515 --> PgFromExpression315 + PgFromExpression319{{"PgFromExpression[319∈0] ➊"}}:::plan + Constant516{{"Constant[516∈0] ➊
ᐸ72ᐳ"}}:::plan + Constant516 --> PgFromExpression319 + PgFromExpression323{{"PgFromExpression[323∈0] ➊"}}:::plan + Constant517{{"Constant[517∈0] ➊
ᐸ73ᐳ"}}:::plan + Constant517 --> PgFromExpression323 + PgFromExpression327{{"PgFromExpression[327∈0] ➊"}}:::plan + Constant518{{"Constant[518∈0] ➊
ᐸ74ᐳ"}}:::plan + Constant518 --> PgFromExpression327 + PgFromExpression331{{"PgFromExpression[331∈0] ➊"}}:::plan + Constant519{{"Constant[519∈0] ➊
ᐸ75ᐳ"}}:::plan + Constant519 --> PgFromExpression331 + PgFromExpression335{{"PgFromExpression[335∈0] ➊"}}:::plan + Constant520{{"Constant[520∈0] ➊
ᐸ76ᐳ"}}:::plan + Constant520 --> PgFromExpression335 + PgFromExpression339{{"PgFromExpression[339∈0] ➊"}}:::plan + Constant521{{"Constant[521∈0] ➊
ᐸ77ᐳ"}}:::plan + Constant521 --> PgFromExpression339 + PgFromExpression343{{"PgFromExpression[343∈0] ➊"}}:::plan + Constant522{{"Constant[522∈0] ➊
ᐸ78ᐳ"}}:::plan + Constant522 --> PgFromExpression343 + PgFromExpression347{{"PgFromExpression[347∈0] ➊"}}:::plan + Constant523{{"Constant[523∈0] ➊
ᐸ79ᐳ"}}:::plan + Constant523 --> PgFromExpression347 + PgFromExpression351{{"PgFromExpression[351∈0] ➊"}}:::plan + Constant524{{"Constant[524∈0] ➊
ᐸ80ᐳ"}}:::plan + Constant524 --> PgFromExpression351 + PgFromExpression355{{"PgFromExpression[355∈0] ➊"}}:::plan + Constant525{{"Constant[525∈0] ➊
ᐸ81ᐳ"}}:::plan + Constant525 --> PgFromExpression355 + PgFromExpression359{{"PgFromExpression[359∈0] ➊"}}:::plan + Constant526{{"Constant[526∈0] ➊
ᐸ82ᐳ"}}:::plan + Constant526 --> PgFromExpression359 + PgFromExpression363{{"PgFromExpression[363∈0] ➊"}}:::plan + Constant527{{"Constant[527∈0] ➊
ᐸ83ᐳ"}}:::plan + Constant527 --> PgFromExpression363 + PgFromExpression367{{"PgFromExpression[367∈0] ➊"}}:::plan + Constant528{{"Constant[528∈0] ➊
ᐸ84ᐳ"}}:::plan + Constant528 --> PgFromExpression367 + PgFromExpression371{{"PgFromExpression[371∈0] ➊"}}:::plan + Constant529{{"Constant[529∈0] ➊
ᐸ85ᐳ"}}:::plan + Constant529 --> PgFromExpression371 + PgFromExpression375{{"PgFromExpression[375∈0] ➊"}}:::plan + Constant530{{"Constant[530∈0] ➊
ᐸ86ᐳ"}}:::plan + Constant530 --> PgFromExpression375 + PgFromExpression379{{"PgFromExpression[379∈0] ➊"}}:::plan + Constant531{{"Constant[531∈0] ➊
ᐸ87ᐳ"}}:::plan + Constant531 --> PgFromExpression379 + PgFromExpression383{{"PgFromExpression[383∈0] ➊"}}:::plan + Constant532{{"Constant[532∈0] ➊
ᐸ88ᐳ"}}:::plan + Constant532 --> PgFromExpression383 + PgFromExpression387{{"PgFromExpression[387∈0] ➊"}}:::plan + Constant533{{"Constant[533∈0] ➊
ᐸ89ᐳ"}}:::plan + Constant533 --> PgFromExpression387 + PgFromExpression391{{"PgFromExpression[391∈0] ➊"}}:::plan + Constant534{{"Constant[534∈0] ➊
ᐸ90ᐳ"}}:::plan + Constant534 --> PgFromExpression391 + PgFromExpression395{{"PgFromExpression[395∈0] ➊"}}:::plan + Constant535{{"Constant[535∈0] ➊
ᐸ91ᐳ"}}:::plan + Constant535 --> PgFromExpression395 + PgFromExpression399{{"PgFromExpression[399∈0] ➊"}}:::plan + Constant536{{"Constant[536∈0] ➊
ᐸ92ᐳ"}}:::plan + Constant536 --> PgFromExpression399 + PgFromExpression403{{"PgFromExpression[403∈0] ➊"}}:::plan + Constant537{{"Constant[537∈0] ➊
ᐸ93ᐳ"}}:::plan + Constant537 --> PgFromExpression403 + PgFromExpression407{{"PgFromExpression[407∈0] ➊"}}:::plan + Constant538{{"Constant[538∈0] ➊
ᐸ94ᐳ"}}:::plan + Constant538 --> PgFromExpression407 + PgFromExpression411{{"PgFromExpression[411∈0] ➊"}}:::plan + Constant539{{"Constant[539∈0] ➊
ᐸ95ᐳ"}}:::plan + Constant539 --> PgFromExpression411 + PgFromExpression415{{"PgFromExpression[415∈0] ➊"}}:::plan + Constant540{{"Constant[540∈0] ➊
ᐸ96ᐳ"}}:::plan + Constant540 --> PgFromExpression415 + PgFromExpression419{{"PgFromExpression[419∈0] ➊"}}:::plan + Constant541{{"Constant[541∈0] ➊
ᐸ97ᐳ"}}:::plan + Constant541 --> PgFromExpression419 + PgFromExpression423{{"PgFromExpression[423∈0] ➊"}}:::plan + Constant542{{"Constant[542∈0] ➊
ᐸ98ᐳ"}}:::plan + Constant542 --> PgFromExpression423 + PgFromExpression427{{"PgFromExpression[427∈0] ➊"}}:::plan + Constant543{{"Constant[543∈0] ➊
ᐸ99ᐳ"}}:::plan + Constant543 --> PgFromExpression427 + PgFromExpression431{{"PgFromExpression[431∈0] ➊"}}:::plan + Constant544{{"Constant[544∈0] ➊
ᐸ100ᐳ"}}:::plan + Constant544 --> PgFromExpression431 + PgFromExpression435{{"PgFromExpression[435∈0] ➊"}}:::plan + Constant545{{"Constant[545∈0] ➊
ᐸ101ᐳ"}}:::plan + Constant545 --> PgFromExpression435 + PgFromExpression439{{"PgFromExpression[439∈0] ➊"}}:::plan + Constant546{{"Constant[546∈0] ➊
ᐸ102ᐳ"}}:::plan + Constant546 --> PgFromExpression439 + PgFromExpression443{{"PgFromExpression[443∈0] ➊"}}:::plan + Constant547{{"Constant[547∈0] ➊
ᐸ103ᐳ"}}:::plan + Constant547 --> PgFromExpression443 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access10 __Value2 --> Access11 - __Value2 --> Access12 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant342{{"Constant[342∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant342 --> Connection14 - Connection27{{"Connection[27∈0] ➊
ᐸ23ᐳ"}}:::plan - Constant342 --> Connection27 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant343{{"Constant[343∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant344{{"Constant[344∈0] ➊
ᐸ3ᐳ"}}:::plan - Constant345{{"Constant[345∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant346{{"Constant[346∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant347{{"Constant[347∈0] ➊
ᐸ6ᐳ"}}:::plan - Constant348{{"Constant[348∈0] ➊
ᐸ7ᐳ"}}:::plan - Constant349{{"Constant[349∈0] ➊
ᐸ8ᐳ"}}:::plan - Constant350{{"Constant[350∈0] ➊
ᐸ9ᐳ"}}:::plan - Constant351{{"Constant[351∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant352{{"Constant[352∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant353{{"Constant[353∈0] ➊
ᐸ12ᐳ"}}:::plan - Constant354{{"Constant[354∈0] ➊
ᐸ13ᐳ"}}:::plan - Constant355{{"Constant[355∈0] ➊
ᐸ14ᐳ"}}:::plan - Constant356{{"Constant[356∈0] ➊
ᐸ15ᐳ"}}:::plan - Constant357{{"Constant[357∈0] ➊
ᐸ16ᐳ"}}:::plan - Constant358{{"Constant[358∈0] ➊
ᐸ17ᐳ"}}:::plan - Constant359{{"Constant[359∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant360{{"Constant[360∈0] ➊
ᐸ19ᐳ"}}:::plan - Constant361{{"Constant[361∈0] ➊
ᐸ20ᐳ"}}:::plan - Constant362{{"Constant[362∈0] ➊
ᐸ21ᐳ"}}:::plan - Constant363{{"Constant[363∈0] ➊
ᐸ22ᐳ"}}:::plan - Constant364{{"Constant[364∈0] ➊
ᐸ23ᐳ"}}:::plan - Constant365{{"Constant[365∈0] ➊
ᐸ24ᐳ"}}:::plan - Constant366{{"Constant[366∈0] ➊
ᐸ25ᐳ"}}:::plan - Constant367{{"Constant[367∈0] ➊
ᐸ26ᐳ"}}:::plan - Constant368{{"Constant[368∈0] ➊
ᐸ27ᐳ"}}:::plan - Constant369{{"Constant[369∈0] ➊
ᐸ28ᐳ"}}:::plan - Constant370{{"Constant[370∈0] ➊
ᐸ29ᐳ"}}:::plan - Constant371{{"Constant[371∈0] ➊
ᐸ30ᐳ"}}:::plan - Constant372{{"Constant[372∈0] ➊
ᐸ31ᐳ"}}:::plan - Constant373{{"Constant[373∈0] ➊
ᐸ32ᐳ"}}:::plan - Constant374{{"Constant[374∈0] ➊
ᐸ33ᐳ"}}:::plan - Constant375{{"Constant[375∈0] ➊
ᐸ34ᐳ"}}:::plan - Constant376{{"Constant[376∈0] ➊
ᐸ35ᐳ"}}:::plan - Constant377{{"Constant[377∈0] ➊
ᐸ36ᐳ"}}:::plan - Constant378{{"Constant[378∈0] ➊
ᐸ37ᐳ"}}:::plan - Constant379{{"Constant[379∈0] ➊
ᐸ38ᐳ"}}:::plan - Constant380{{"Constant[380∈0] ➊
ᐸ39ᐳ"}}:::plan - Constant381{{"Constant[381∈0] ➊
ᐸ40ᐳ"}}:::plan - Constant382{{"Constant[382∈0] ➊
ᐸ41ᐳ"}}:::plan - Constant383{{"Constant[383∈0] ➊
ᐸ42ᐳ"}}:::plan - Constant384{{"Constant[384∈0] ➊
ᐸ43ᐳ"}}:::plan - Constant385{{"Constant[385∈0] ➊
ᐸ44ᐳ"}}:::plan - Constant386{{"Constant[386∈0] ➊
ᐸ45ᐳ"}}:::plan - Constant387{{"Constant[387∈0] ➊
ᐸ46ᐳ"}}:::plan - Constant388{{"Constant[388∈0] ➊
ᐸ47ᐳ"}}:::plan - Constant389{{"Constant[389∈0] ➊
ᐸ48ᐳ"}}:::plan - Constant390{{"Constant[390∈0] ➊
ᐸ49ᐳ"}}:::plan - Constant391{{"Constant[391∈0] ➊
ᐸ50ᐳ"}}:::plan - Constant392{{"Constant[392∈0] ➊
ᐸ51ᐳ"}}:::plan - Constant393{{"Constant[393∈0] ➊
ᐸ52ᐳ"}}:::plan - Constant394{{"Constant[394∈0] ➊
ᐸ53ᐳ"}}:::plan - Constant395{{"Constant[395∈0] ➊
ᐸ54ᐳ"}}:::plan - Constant396{{"Constant[396∈0] ➊
ᐸ55ᐳ"}}:::plan - Constant397{{"Constant[397∈0] ➊
ᐸ56ᐳ"}}:::plan - Constant398{{"Constant[398∈0] ➊
ᐸ57ᐳ"}}:::plan - Constant399{{"Constant[399∈0] ➊
ᐸ58ᐳ"}}:::plan - Constant400{{"Constant[400∈0] ➊
ᐸ59ᐳ"}}:::plan - Constant401{{"Constant[401∈0] ➊
ᐸ60ᐳ"}}:::plan - Constant402{{"Constant[402∈0] ➊
ᐸ61ᐳ"}}:::plan - Constant403{{"Constant[403∈0] ➊
ᐸ62ᐳ"}}:::plan - Constant404{{"Constant[404∈0] ➊
ᐸ63ᐳ"}}:::plan - Constant405{{"Constant[405∈0] ➊
ᐸ64ᐳ"}}:::plan - Constant406{{"Constant[406∈0] ➊
ᐸ65ᐳ"}}:::plan - Constant407{{"Constant[407∈0] ➊
ᐸ66ᐳ"}}:::plan - Constant408{{"Constant[408∈0] ➊
ᐸ67ᐳ"}}:::plan - Constant409{{"Constant[409∈0] ➊
ᐸ68ᐳ"}}:::plan - Constant410{{"Constant[410∈0] ➊
ᐸ69ᐳ"}}:::plan - Constant411{{"Constant[411∈0] ➊
ᐸ70ᐳ"}}:::plan - Constant412{{"Constant[412∈0] ➊
ᐸ71ᐳ"}}:::plan - Constant413{{"Constant[413∈0] ➊
ᐸ72ᐳ"}}:::plan - Constant414{{"Constant[414∈0] ➊
ᐸ73ᐳ"}}:::plan - Constant415{{"Constant[415∈0] ➊
ᐸ74ᐳ"}}:::plan - Constant416{{"Constant[416∈0] ➊
ᐸ75ᐳ"}}:::plan - Constant417{{"Constant[417∈0] ➊
ᐸ76ᐳ"}}:::plan - Constant418{{"Constant[418∈0] ➊
ᐸ77ᐳ"}}:::plan - Constant419{{"Constant[419∈0] ➊
ᐸ78ᐳ"}}:::plan - Constant420{{"Constant[420∈0] ➊
ᐸ79ᐳ"}}:::plan - Constant421{{"Constant[421∈0] ➊
ᐸ80ᐳ"}}:::plan - Constant422{{"Constant[422∈0] ➊
ᐸ81ᐳ"}}:::plan - Constant423{{"Constant[423∈0] ➊
ᐸ82ᐳ"}}:::plan - Constant424{{"Constant[424∈0] ➊
ᐸ83ᐳ"}}:::plan - Constant425{{"Constant[425∈0] ➊
ᐸ84ᐳ"}}:::plan - Constant426{{"Constant[426∈0] ➊
ᐸ85ᐳ"}}:::plan - Constant427{{"Constant[427∈0] ➊
ᐸ86ᐳ"}}:::plan - Constant428{{"Constant[428∈0] ➊
ᐸ87ᐳ"}}:::plan - Constant429{{"Constant[429∈0] ➊
ᐸ88ᐳ"}}:::plan - Constant430{{"Constant[430∈0] ➊
ᐸ89ᐳ"}}:::plan - Constant431{{"Constant[431∈0] ➊
ᐸ90ᐳ"}}:::plan - Constant432{{"Constant[432∈0] ➊
ᐸ91ᐳ"}}:::plan - Constant433{{"Constant[433∈0] ➊
ᐸ92ᐳ"}}:::plan - Constant434{{"Constant[434∈0] ➊
ᐸ93ᐳ"}}:::plan - Constant435{{"Constant[435∈0] ➊
ᐸ94ᐳ"}}:::plan - Constant436{{"Constant[436∈0] ➊
ᐸ95ᐳ"}}:::plan - Constant437{{"Constant[437∈0] ➊
ᐸ96ᐳ"}}:::plan - Constant438{{"Constant[438∈0] ➊
ᐸ97ᐳ"}}:::plan - Constant439{{"Constant[439∈0] ➊
ᐸ98ᐳ"}}:::plan - Constant440{{"Constant[440∈0] ➊
ᐸ99ᐳ"}}:::plan - Constant441{{"Constant[441∈0] ➊
ᐸ100ᐳ"}}:::plan - Constant442{{"Constant[442∈0] ➊
ᐸ101ᐳ"}}:::plan - Constant443{{"Constant[443∈0] ➊
ᐸ102ᐳ"}}:::plan - Constant444{{"Constant[444∈0] ➊
ᐸ103ᐳ"}}:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸpersonᐳ"]]:::plan - Object13 & Connection14 & Constant342 --> PgSelect15 - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan PgSelect15 --> PgSelectRows16 - __Item17[/"__Item[17∈2]
ᐸ16ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect28[["PgSelect[28∈1]
ᐸpostᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + Object12 & PgClassExpression19 & Connection26 & Constant445 & PgFromExpression35 & PgFromExpression39 & PgFromExpression43 & PgFromExpression47 & PgFromExpression51 & PgFromExpression55 & PgFromExpression59 & PgFromExpression63 & PgFromExpression67 & PgFromExpression71 & PgFromExpression75 & PgFromExpression79 & PgFromExpression83 & PgFromExpression87 & PgFromExpression91 & PgFromExpression95 & PgFromExpression99 & PgFromExpression103 & PgFromExpression107 & PgFromExpression111 & PgFromExpression115 & PgFromExpression119 & PgFromExpression123 & PgFromExpression127 & PgFromExpression131 & PgFromExpression135 & PgFromExpression139 & PgFromExpression143 & PgFromExpression147 & PgFromExpression151 & PgFromExpression155 & PgFromExpression159 & PgFromExpression163 & PgFromExpression167 & PgFromExpression171 & PgFromExpression175 & PgFromExpression179 & PgFromExpression183 & PgFromExpression187 & PgFromExpression191 & PgFromExpression195 & PgFromExpression199 & PgFromExpression203 & PgFromExpression207 & PgFromExpression211 & PgFromExpression215 & PgFromExpression219 & PgFromExpression223 & PgFromExpression227 & PgFromExpression231 & PgFromExpression235 & PgFromExpression239 & PgFromExpression243 & PgFromExpression247 & PgFromExpression251 & PgFromExpression255 & PgFromExpression259 & PgFromExpression263 & PgFromExpression267 & PgFromExpression271 & PgFromExpression275 & PgFromExpression279 & PgFromExpression283 & PgFromExpression287 & PgFromExpression291 & PgFromExpression295 & PgFromExpression299 & PgFromExpression303 & PgFromExpression307 & PgFromExpression311 & PgFromExpression315 & PgFromExpression319 & PgFromExpression323 & PgFromExpression327 & PgFromExpression331 & PgFromExpression335 & PgFromExpression339 & PgFromExpression343 & PgFromExpression347 & PgFromExpression351 & PgFromExpression355 & PgFromExpression359 & PgFromExpression363 & PgFromExpression367 & PgFromExpression371 & PgFromExpression375 & PgFromExpression379 & PgFromExpression383 & PgFromExpression387 & PgFromExpression391 & PgFromExpression395 & PgFromExpression399 & PgFromExpression403 & PgFromExpression407 & PgFromExpression411 & PgFromExpression415 & PgFromExpression419 & PgFromExpression423 & PgFromExpression427 & PgFromExpression431 & PgFromExpression435 & PgFromExpression439 & PgFromExpression443 --> PgSelect28 + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan PgSelectRows16 ==> __Item17 - PgSelectSingle18{{"PgSelectSingle[18∈2]
ᐸpersonᐳ"}}:::plan + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸpersonᐳ"}}:::plan __Item17 --> PgSelectSingle18 - PgSelect28[["PgSelect[28∈3]
ᐸpostᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__person__.”id”ᐳ"}}:::plan - Object13 & PgClassExpression19 & Connection27 & Constant342 & Constant342 & Constant343 & Constant344 & Constant345 & Constant346 & Constant347 & Constant348 & Constant349 & Constant350 & Constant351 & Constant352 & Constant353 & Constant354 & Constant355 & Constant356 & Constant357 & Constant358 & Constant359 & Constant360 & Constant361 & Constant362 & Constant363 & Constant364 & Constant365 & Constant366 & Constant367 & Constant368 & Constant369 & Constant370 & Constant371 & Constant372 & Constant373 & Constant374 & Constant375 & Constant376 & Constant377 & Constant378 & Constant379 & Constant380 & Constant381 & Constant382 & Constant383 & Constant384 & Constant385 & Constant386 & Constant387 & Constant388 & Constant389 & Constant390 & Constant391 & Constant392 & Constant393 & Constant394 & Constant395 & Constant396 & Constant397 & Constant398 & Constant399 & Constant400 & Constant401 & Constant402 & Constant403 & Constant404 & Constant405 & Constant406 & Constant407 & Constant408 & Constant409 & Constant410 & Constant411 & Constant412 & Constant413 & Constant414 & Constant415 & Constant416 & Constant417 & Constant418 & Constant419 & Constant420 & Constant421 & Constant422 & Constant423 & Constant424 & Constant425 & Constant426 & Constant427 & Constant428 & Constant429 & Constant430 & Constant431 & Constant432 & Constant433 & Constant434 & Constant435 & Constant436 & Constant437 & Constant438 & Constant439 & Constant440 & Constant441 & Constant442 & Constant443 & Constant444 --> PgSelect28 PgSelectSingle18 --> PgClassExpression19 - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan + PgSelectRows29[["PgSelectRows[29∈1]"]]:::plan PgSelect28 --> PgSelectRows29 - __Item30[/"__Item[30∈4]
ᐸ29ᐳ"\]:::itemplan + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan PgSelectRows29 ==> __Item30 - PgSelectSingle31{{"PgSelectSingle[31∈4]
ᐸpostᐳ"}}:::plan + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸpostᐳ"}}:::plan __Item30 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈5]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__post__.”headline”ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression32 - PgClassExpression35{{"PgClassExpression[35∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression35 - PgClassExpression38{{"PgClassExpression[38∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression38 - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression41 - PgClassExpression44{{"PgClassExpression[44∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression36 + PgClassExpression40{{"PgClassExpression[40∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression40 + PgClassExpression44{{"PgClassExpression[44∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression44 - PgClassExpression47{{"PgClassExpression[47∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression47 - PgClassExpression50{{"PgClassExpression[50∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression50 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression53 - PgClassExpression56{{"PgClassExpression[56∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression48{{"PgClassExpression[48∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression48 + PgClassExpression52{{"PgClassExpression[52∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression52 + PgClassExpression56{{"PgClassExpression[56∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression56 - PgClassExpression59{{"PgClassExpression[59∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression59 - PgClassExpression62{{"PgClassExpression[62∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression62 - PgClassExpression65{{"PgClassExpression[65∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression65 - PgClassExpression68{{"PgClassExpression[68∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression60{{"PgClassExpression[60∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression60 + PgClassExpression64{{"PgClassExpression[64∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression64 + PgClassExpression68{{"PgClassExpression[68∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression68 - PgClassExpression71{{"PgClassExpression[71∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression71 - PgClassExpression74{{"PgClassExpression[74∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression74 - PgClassExpression77{{"PgClassExpression[77∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression77 - PgClassExpression80{{"PgClassExpression[80∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression72{{"PgClassExpression[72∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression72 + PgClassExpression76{{"PgClassExpression[76∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression76 + PgClassExpression80{{"PgClassExpression[80∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression80 - PgClassExpression83{{"PgClassExpression[83∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression83 - PgClassExpression86{{"PgClassExpression[86∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression86 - PgClassExpression89{{"PgClassExpression[89∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression89 - PgClassExpression92{{"PgClassExpression[92∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression84{{"PgClassExpression[84∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression84 + PgClassExpression88{{"PgClassExpression[88∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression88 + PgClassExpression92{{"PgClassExpression[92∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression92 - PgClassExpression95{{"PgClassExpression[95∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression95 - PgClassExpression98{{"PgClassExpression[98∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression98 - PgClassExpression101{{"PgClassExpression[101∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression101 - PgClassExpression104{{"PgClassExpression[104∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression96{{"PgClassExpression[96∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression96 + PgClassExpression100{{"PgClassExpression[100∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression100 + PgClassExpression104{{"PgClassExpression[104∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression104 - PgClassExpression107{{"PgClassExpression[107∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression107 - PgClassExpression110{{"PgClassExpression[110∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression110 - PgClassExpression113{{"PgClassExpression[113∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression113 - PgClassExpression116{{"PgClassExpression[116∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression108{{"PgClassExpression[108∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression108 + PgClassExpression112{{"PgClassExpression[112∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression112 + PgClassExpression116{{"PgClassExpression[116∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression116 - PgClassExpression119{{"PgClassExpression[119∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression119 - PgClassExpression122{{"PgClassExpression[122∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression122 - PgClassExpression125{{"PgClassExpression[125∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression125 - PgClassExpression128{{"PgClassExpression[128∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression120{{"PgClassExpression[120∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression120 + PgClassExpression124{{"PgClassExpression[124∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression124 + PgClassExpression128{{"PgClassExpression[128∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression128 - PgClassExpression131{{"PgClassExpression[131∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression131 - PgClassExpression134{{"PgClassExpression[134∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression134 - PgClassExpression137{{"PgClassExpression[137∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression137 - PgClassExpression140{{"PgClassExpression[140∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression132{{"PgClassExpression[132∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression132 + PgClassExpression136{{"PgClassExpression[136∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression136 + PgClassExpression140{{"PgClassExpression[140∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression140 - PgClassExpression143{{"PgClassExpression[143∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression143 - PgClassExpression146{{"PgClassExpression[146∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression146 - PgClassExpression149{{"PgClassExpression[149∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression149 - PgClassExpression152{{"PgClassExpression[152∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression144{{"PgClassExpression[144∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression144 + PgClassExpression148{{"PgClassExpression[148∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression148 + PgClassExpression152{{"PgClassExpression[152∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression152 - PgClassExpression155{{"PgClassExpression[155∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression155 - PgClassExpression158{{"PgClassExpression[158∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression158 - PgClassExpression161{{"PgClassExpression[161∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression161 - PgClassExpression164{{"PgClassExpression[164∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression156{{"PgClassExpression[156∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression156 + PgClassExpression160{{"PgClassExpression[160∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression160 + PgClassExpression164{{"PgClassExpression[164∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression164 - PgClassExpression167{{"PgClassExpression[167∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression167 - PgClassExpression170{{"PgClassExpression[170∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression170 - PgClassExpression173{{"PgClassExpression[173∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression173 - PgClassExpression176{{"PgClassExpression[176∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression168{{"PgClassExpression[168∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression168 + PgClassExpression172{{"PgClassExpression[172∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression172 + PgClassExpression176{{"PgClassExpression[176∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression176 - PgClassExpression179{{"PgClassExpression[179∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression179 - PgClassExpression182{{"PgClassExpression[182∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression182 - PgClassExpression185{{"PgClassExpression[185∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression185 - PgClassExpression188{{"PgClassExpression[188∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression180{{"PgClassExpression[180∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression180 + PgClassExpression184{{"PgClassExpression[184∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression184 + PgClassExpression188{{"PgClassExpression[188∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression188 - PgClassExpression191{{"PgClassExpression[191∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression191 - PgClassExpression194{{"PgClassExpression[194∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression194 - PgClassExpression197{{"PgClassExpression[197∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression197 - PgClassExpression200{{"PgClassExpression[200∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression192{{"PgClassExpression[192∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression192 + PgClassExpression196{{"PgClassExpression[196∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression196 + PgClassExpression200{{"PgClassExpression[200∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression200 - PgClassExpression203{{"PgClassExpression[203∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression203 - PgClassExpression206{{"PgClassExpression[206∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression206 - PgClassExpression209{{"PgClassExpression[209∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression209 - PgClassExpression212{{"PgClassExpression[212∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression204{{"PgClassExpression[204∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression204 + PgClassExpression208{{"PgClassExpression[208∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression208 + PgClassExpression212{{"PgClassExpression[212∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression212 - PgClassExpression215{{"PgClassExpression[215∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression215 - PgClassExpression218{{"PgClassExpression[218∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression218 - PgClassExpression221{{"PgClassExpression[221∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression221 - PgClassExpression224{{"PgClassExpression[224∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression216{{"PgClassExpression[216∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression216 + PgClassExpression220{{"PgClassExpression[220∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression220 + PgClassExpression224{{"PgClassExpression[224∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression224 - PgClassExpression227{{"PgClassExpression[227∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression227 - PgClassExpression230{{"PgClassExpression[230∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression230 - PgClassExpression233{{"PgClassExpression[233∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression233 - PgClassExpression236{{"PgClassExpression[236∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression228{{"PgClassExpression[228∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression228 + PgClassExpression232{{"PgClassExpression[232∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression232 + PgClassExpression236{{"PgClassExpression[236∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression236 - PgClassExpression239{{"PgClassExpression[239∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression239 - PgClassExpression242{{"PgClassExpression[242∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression242 - PgClassExpression245{{"PgClassExpression[245∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression245 - PgClassExpression248{{"PgClassExpression[248∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression240{{"PgClassExpression[240∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression240 + PgClassExpression244{{"PgClassExpression[244∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression244 + PgClassExpression248{{"PgClassExpression[248∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression248 - PgClassExpression251{{"PgClassExpression[251∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression251 - PgClassExpression254{{"PgClassExpression[254∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression254 - PgClassExpression257{{"PgClassExpression[257∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression257 - PgClassExpression260{{"PgClassExpression[260∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression252{{"PgClassExpression[252∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression252 + PgClassExpression256{{"PgClassExpression[256∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression256 + PgClassExpression260{{"PgClassExpression[260∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression260 - PgClassExpression263{{"PgClassExpression[263∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression263 - PgClassExpression266{{"PgClassExpression[266∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression266 - PgClassExpression269{{"PgClassExpression[269∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression269 - PgClassExpression272{{"PgClassExpression[272∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression264{{"PgClassExpression[264∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression264 + PgClassExpression268{{"PgClassExpression[268∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression268 + PgClassExpression272{{"PgClassExpression[272∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression272 - PgClassExpression275{{"PgClassExpression[275∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression275 - PgClassExpression278{{"PgClassExpression[278∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression278 - PgClassExpression281{{"PgClassExpression[281∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression281 - PgClassExpression284{{"PgClassExpression[284∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression276{{"PgClassExpression[276∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression276 + PgClassExpression280{{"PgClassExpression[280∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression280 + PgClassExpression284{{"PgClassExpression[284∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression284 - PgClassExpression287{{"PgClassExpression[287∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression287 - PgClassExpression290{{"PgClassExpression[290∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression290 - PgClassExpression293{{"PgClassExpression[293∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression293 - PgClassExpression296{{"PgClassExpression[296∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression288{{"PgClassExpression[288∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression288 + PgClassExpression292{{"PgClassExpression[292∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression292 + PgClassExpression296{{"PgClassExpression[296∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression296 - PgClassExpression299{{"PgClassExpression[299∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression299 - PgClassExpression302{{"PgClassExpression[302∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression302 - PgClassExpression305{{"PgClassExpression[305∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression305 - PgClassExpression308{{"PgClassExpression[308∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression300{{"PgClassExpression[300∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression300 + PgClassExpression304{{"PgClassExpression[304∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression304 + PgClassExpression308{{"PgClassExpression[308∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression308 - PgClassExpression311{{"PgClassExpression[311∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression311 - PgClassExpression314{{"PgClassExpression[314∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression314 - PgClassExpression317{{"PgClassExpression[317∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression317 - PgClassExpression320{{"PgClassExpression[320∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression312{{"PgClassExpression[312∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression312 + PgClassExpression316{{"PgClassExpression[316∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression316 + PgClassExpression320{{"PgClassExpression[320∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression320 - PgClassExpression323{{"PgClassExpression[323∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression323 - PgClassExpression326{{"PgClassExpression[326∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression326 - PgClassExpression329{{"PgClassExpression[329∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression329 - PgClassExpression332{{"PgClassExpression[332∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression324{{"PgClassExpression[324∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression324 + PgClassExpression328{{"PgClassExpression[328∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression328 + PgClassExpression332{{"PgClassExpression[332∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression332 - PgClassExpression335{{"PgClassExpression[335∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression335 - PgClassExpression338{{"PgClassExpression[338∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression338 - PgClassExpression341{{"PgClassExpression[341∈5]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression341 + PgClassExpression336{{"PgClassExpression[336∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression336 + PgClassExpression340{{"PgClassExpression[340∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression340 + PgClassExpression344{{"PgClassExpression[344∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression344 + PgClassExpression348{{"PgClassExpression[348∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression348 + PgClassExpression352{{"PgClassExpression[352∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression352 + PgClassExpression356{{"PgClassExpression[356∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression356 + PgClassExpression360{{"PgClassExpression[360∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression360 + PgClassExpression364{{"PgClassExpression[364∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression364 + PgClassExpression368{{"PgClassExpression[368∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression368 + PgClassExpression372{{"PgClassExpression[372∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression372 + PgClassExpression376{{"PgClassExpression[376∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression376 + PgClassExpression380{{"PgClassExpression[380∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression380 + PgClassExpression384{{"PgClassExpression[384∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression384 + PgClassExpression388{{"PgClassExpression[388∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression388 + PgClassExpression392{{"PgClassExpression[392∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression392 + PgClassExpression396{{"PgClassExpression[396∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression396 + PgClassExpression400{{"PgClassExpression[400∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression400 + PgClassExpression404{{"PgClassExpression[404∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression404 + PgClassExpression408{{"PgClassExpression[408∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression408 + PgClassExpression412{{"PgClassExpression[412∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression412 + PgClassExpression416{{"PgClassExpression[416∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression416 + PgClassExpression420{{"PgClassExpression[420∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression420 + PgClassExpression424{{"PgClassExpression[424∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression424 + PgClassExpression428{{"PgClassExpression[428∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression428 + PgClassExpression432{{"PgClassExpression[432∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression432 + PgClassExpression436{{"PgClassExpression[436∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression436 + PgClassExpression440{{"PgClassExpression[440∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression440 + PgClassExpression444{{"PgClassExpression[444∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression444 %% define steps subgraph "Buckets for queries/v4/json-overflow-nested" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 10, 11, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 12, 13, 26, 35, 39, 43, 47, 51, 55, 59, 63, 67, 71, 75, 79, 83, 87, 91, 95, 99, 103, 107, 111, 115, 119, 123, 127, 131, 135, 139, 143, 147, 151, 155, 159, 163, 167, 171, 175, 179, 183, 187, 191, 195, 199, 203, 207, 211, 215, 219, 223, 227, 231, 235, 239, 243, 247, 251, 255, 259, 263, 267, 271, 275, 279, 283, 287, 291, 295, 299, 303, 307, 311, 315, 319, 323, 327, 331, 335, 339, 343, 347, 351, 355, 359, 363, 367, 371, 375, 379, 383, 387, 391, 395, 399, 403, 407, 411, 415, 419, 423, 427, 431, 435, 439, 443
2: PgSelect[15]
3: PgSelectRows[16]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14,Connection27,Constant342,Constant343,Constant344,Constant345,Constant346,Constant347,Constant348,Constant349,Constant350,Constant351,Constant352,Constant353,Constant354,Constant355,Constant356,Constant357,Constant358,Constant359,Constant360,Constant361,Constant362,Constant363,Constant364,Constant365,Constant366,Constant367,Constant368,Constant369,Constant370,Constant371,Constant372,Constant373,Constant374,Constant375,Constant376,Constant377,Constant378,Constant379,Constant380,Constant381,Constant382,Constant383,Constant384,Constant385,Constant386,Constant387,Constant388,Constant389,Constant390,Constant391,Constant392,Constant393,Constant394,Constant395,Constant396,Constant397,Constant398,Constant399,Constant400,Constant401,Constant402,Constant403,Constant404,Constant405,Constant406,Constant407,Constant408,Constant409,Constant410,Constant411,Constant412,Constant413,Constant414,Constant415,Constant416,Constant417,Constant418,Constant419,Constant420,Constant421,Constant422,Constant423,Constant424,Constant425,Constant426,Constant427,Constant428,Constant429,Constant430,Constant431,Constant432,Constant433,Constant434,Constant435,Constant436,Constant437,Constant438,Constant439,Constant440,Constant441,Constant442,Constant443,Constant444 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 342, 27, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[15]
2: PgSelectRows[16]"):::bucket + class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,PgSelect15,PgSelectRows16,Connection26,PgFromExpression35,PgFromExpression39,PgFromExpression43,PgFromExpression47,PgFromExpression51,PgFromExpression55,PgFromExpression59,PgFromExpression63,PgFromExpression67,PgFromExpression71,PgFromExpression75,PgFromExpression79,PgFromExpression83,PgFromExpression87,PgFromExpression91,PgFromExpression95,PgFromExpression99,PgFromExpression103,PgFromExpression107,PgFromExpression111,PgFromExpression115,PgFromExpression119,PgFromExpression123,PgFromExpression127,PgFromExpression131,PgFromExpression135,PgFromExpression139,PgFromExpression143,PgFromExpression147,PgFromExpression151,PgFromExpression155,PgFromExpression159,PgFromExpression163,PgFromExpression167,PgFromExpression171,PgFromExpression175,PgFromExpression179,PgFromExpression183,PgFromExpression187,PgFromExpression191,PgFromExpression195,PgFromExpression199,PgFromExpression203,PgFromExpression207,PgFromExpression211,PgFromExpression215,PgFromExpression219,PgFromExpression223,PgFromExpression227,PgFromExpression231,PgFromExpression235,PgFromExpression239,PgFromExpression243,PgFromExpression247,PgFromExpression251,PgFromExpression255,PgFromExpression259,PgFromExpression263,PgFromExpression267,PgFromExpression271,PgFromExpression275,PgFromExpression279,PgFromExpression283,PgFromExpression287,PgFromExpression291,PgFromExpression295,PgFromExpression299,PgFromExpression303,PgFromExpression307,PgFromExpression311,PgFromExpression315,PgFromExpression319,PgFromExpression323,PgFromExpression327,PgFromExpression331,PgFromExpression335,PgFromExpression339,PgFromExpression343,PgFromExpression347,PgFromExpression351,PgFromExpression355,PgFromExpression359,PgFromExpression363,PgFromExpression367,PgFromExpression371,PgFromExpression375,PgFromExpression379,PgFromExpression383,PgFromExpression387,PgFromExpression391,PgFromExpression395,PgFromExpression399,PgFromExpression403,PgFromExpression407,PgFromExpression411,PgFromExpression415,PgFromExpression419,PgFromExpression423,PgFromExpression427,PgFromExpression431,PgFromExpression435,PgFromExpression439,PgFromExpression443,Constant445,Constant446,Constant447,Constant448,Constant449,Constant450,Constant451,Constant452,Constant453,Constant454,Constant455,Constant456,Constant457,Constant458,Constant459,Constant460,Constant461,Constant462,Constant463,Constant464,Constant465,Constant466,Constant467,Constant468,Constant469,Constant470,Constant471,Constant472,Constant473,Constant474,Constant475,Constant476,Constant477,Constant478,Constant479,Constant480,Constant481,Constant482,Constant483,Constant484,Constant485,Constant486,Constant487,Constant488,Constant489,Constant490,Constant491,Constant492,Constant493,Constant494,Constant495,Constant496,Constant497,Constant498,Constant499,Constant500,Constant501,Constant502,Constant503,Constant504,Constant505,Constant506,Constant507,Constant508,Constant509,Constant510,Constant511,Constant512,Constant513,Constant514,Constant515,Constant516,Constant517,Constant518,Constant519,Constant520,Constant521,Constant522,Constant523,Constant524,Constant525,Constant526,Constant527,Constant528,Constant529,Constant530,Constant531,Constant532,Constant533,Constant534,Constant535,Constant536,Constant537,Constant538,Constant539,Constant540,Constant541,Constant542,Constant543,Constant544,Constant545,Constant546,Constant547 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 26, 445, 7, 35, 39, 43, 47, 51, 55, 59, 63, 67, 71, 75, 79, 83, 87, 91, 95, 99, 103, 107, 111, 115, 119, 123, 127, 131, 135, 139, 143, 147, 151, 155, 159, 163, 167, 171, 175, 179, 183, 187, 191, 195, 199, 203, 207, 211, 215, 219, 223, 227, 231, 235, 239, 243, 247, 251, 255, 259, 263, 267, 271, 275, 279, 283, 287, 291, 295, 299, 303, 307, 311, 315, 319, 323, 327, 331, 335, 339, 343, 347, 351, 355, 359, 363, 367, 371, 375, 379, 383, 387, 391, 395, 399, 403, 407, 411, 415, 419, 423, 427, 431, 435, 439, 443

ROOT __Item{1}ᐸ16ᐳ[17]
1:
ᐳ: 18, 19
2: PgSelect[28]
3: PgSelectRows[29]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect15,PgSelectRows16 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 13, 27, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444

ROOT __Item{2}ᐸ16ᐳ[17]"):::bucket + class Bucket1,__Item17,PgSelectSingle18,PgClassExpression19,PgSelect28,PgSelectRows29 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ29ᐳ[30]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item17,PgSelectSingle18 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 18, 13, 27, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444

ROOT PgSelectSingle{2}ᐸpersonᐳ[18]
1:
ᐳ: PgClassExpression[19]
2: PgSelect[28]
3: PgSelectRows[29]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgSelect28,PgSelectRows29 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ29ᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item30,PgSelectSingle31 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{4}ᐸpostᐳ[31]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression32,PgClassExpression35,PgClassExpression38,PgClassExpression41,PgClassExpression44,PgClassExpression47,PgClassExpression50,PgClassExpression53,PgClassExpression56,PgClassExpression59,PgClassExpression62,PgClassExpression65,PgClassExpression68,PgClassExpression71,PgClassExpression74,PgClassExpression77,PgClassExpression80,PgClassExpression83,PgClassExpression86,PgClassExpression89,PgClassExpression92,PgClassExpression95,PgClassExpression98,PgClassExpression101,PgClassExpression104,PgClassExpression107,PgClassExpression110,PgClassExpression113,PgClassExpression116,PgClassExpression119,PgClassExpression122,PgClassExpression125,PgClassExpression128,PgClassExpression131,PgClassExpression134,PgClassExpression137,PgClassExpression140,PgClassExpression143,PgClassExpression146,PgClassExpression149,PgClassExpression152,PgClassExpression155,PgClassExpression158,PgClassExpression161,PgClassExpression164,PgClassExpression167,PgClassExpression170,PgClassExpression173,PgClassExpression176,PgClassExpression179,PgClassExpression182,PgClassExpression185,PgClassExpression188,PgClassExpression191,PgClassExpression194,PgClassExpression197,PgClassExpression200,PgClassExpression203,PgClassExpression206,PgClassExpression209,PgClassExpression212,PgClassExpression215,PgClassExpression218,PgClassExpression221,PgClassExpression224,PgClassExpression227,PgClassExpression230,PgClassExpression233,PgClassExpression236,PgClassExpression239,PgClassExpression242,PgClassExpression245,PgClassExpression248,PgClassExpression251,PgClassExpression254,PgClassExpression257,PgClassExpression260,PgClassExpression263,PgClassExpression266,PgClassExpression269,PgClassExpression272,PgClassExpression275,PgClassExpression278,PgClassExpression281,PgClassExpression284,PgClassExpression287,PgClassExpression290,PgClassExpression293,PgClassExpression296,PgClassExpression299,PgClassExpression302,PgClassExpression305,PgClassExpression308,PgClassExpression311,PgClassExpression314,PgClassExpression317,PgClassExpression320,PgClassExpression323,PgClassExpression326,PgClassExpression329,PgClassExpression332,PgClassExpression335,PgClassExpression338,PgClassExpression341 bucket5 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression36,PgClassExpression40,PgClassExpression44,PgClassExpression48,PgClassExpression52,PgClassExpression56,PgClassExpression60,PgClassExpression64,PgClassExpression68,PgClassExpression72,PgClassExpression76,PgClassExpression80,PgClassExpression84,PgClassExpression88,PgClassExpression92,PgClassExpression96,PgClassExpression100,PgClassExpression104,PgClassExpression108,PgClassExpression112,PgClassExpression116,PgClassExpression120,PgClassExpression124,PgClassExpression128,PgClassExpression132,PgClassExpression136,PgClassExpression140,PgClassExpression144,PgClassExpression148,PgClassExpression152,PgClassExpression156,PgClassExpression160,PgClassExpression164,PgClassExpression168,PgClassExpression172,PgClassExpression176,PgClassExpression180,PgClassExpression184,PgClassExpression188,PgClassExpression192,PgClassExpression196,PgClassExpression200,PgClassExpression204,PgClassExpression208,PgClassExpression212,PgClassExpression216,PgClassExpression220,PgClassExpression224,PgClassExpression228,PgClassExpression232,PgClassExpression236,PgClassExpression240,PgClassExpression244,PgClassExpression248,PgClassExpression252,PgClassExpression256,PgClassExpression260,PgClassExpression264,PgClassExpression268,PgClassExpression272,PgClassExpression276,PgClassExpression280,PgClassExpression284,PgClassExpression288,PgClassExpression292,PgClassExpression296,PgClassExpression300,PgClassExpression304,PgClassExpression308,PgClassExpression312,PgClassExpression316,PgClassExpression320,PgClassExpression324,PgClassExpression328,PgClassExpression332,PgClassExpression336,PgClassExpression340,PgClassExpression344,PgClassExpression348,PgClassExpression352,PgClassExpression356,PgClassExpression360,PgClassExpression364,PgClassExpression368,PgClassExpression372,PgClassExpression376,PgClassExpression380,PgClassExpression384,PgClassExpression388,PgClassExpression392,PgClassExpression396,PgClassExpression400,PgClassExpression404,PgClassExpression408,PgClassExpression412,PgClassExpression416,PgClassExpression420,PgClassExpression424,PgClassExpression428,PgClassExpression432,PgClassExpression436,PgClassExpression440,PgClassExpression444 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/json-overflow.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/json-overflow.mermaid index 2fb1915d51..72692feba6 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/json-overflow.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/json-overflow.mermaid @@ -9,352 +9,551 @@ graph TD %% plan dependencies - Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access11 & Access12 --> Object13 + PgSelect15[["PgSelect[15∈0] ➊
ᐸpostᐳ"]]:::plan + Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant432{{"Constant[432∈0] ➊
ᐸ1ᐳ"}}:::plan + PgFromExpression22{{"PgFromExpression[22∈0] ➊"}}:::plan + PgFromExpression26{{"PgFromExpression[26∈0] ➊"}}:::plan + PgFromExpression30{{"PgFromExpression[30∈0] ➊"}}:::plan + PgFromExpression34{{"PgFromExpression[34∈0] ➊"}}:::plan + PgFromExpression38{{"PgFromExpression[38∈0] ➊"}}:::plan + PgFromExpression42{{"PgFromExpression[42∈0] ➊"}}:::plan + PgFromExpression46{{"PgFromExpression[46∈0] ➊"}}:::plan + PgFromExpression50{{"PgFromExpression[50∈0] ➊"}}:::plan + PgFromExpression54{{"PgFromExpression[54∈0] ➊"}}:::plan + PgFromExpression58{{"PgFromExpression[58∈0] ➊"}}:::plan + PgFromExpression62{{"PgFromExpression[62∈0] ➊"}}:::plan + PgFromExpression66{{"PgFromExpression[66∈0] ➊"}}:::plan + PgFromExpression70{{"PgFromExpression[70∈0] ➊"}}:::plan + PgFromExpression74{{"PgFromExpression[74∈0] ➊"}}:::plan + PgFromExpression78{{"PgFromExpression[78∈0] ➊"}}:::plan + PgFromExpression82{{"PgFromExpression[82∈0] ➊"}}:::plan + PgFromExpression86{{"PgFromExpression[86∈0] ➊"}}:::plan + PgFromExpression90{{"PgFromExpression[90∈0] ➊"}}:::plan + PgFromExpression94{{"PgFromExpression[94∈0] ➊"}}:::plan + PgFromExpression98{{"PgFromExpression[98∈0] ➊"}}:::plan + PgFromExpression102{{"PgFromExpression[102∈0] ➊"}}:::plan + PgFromExpression106{{"PgFromExpression[106∈0] ➊"}}:::plan + PgFromExpression110{{"PgFromExpression[110∈0] ➊"}}:::plan + PgFromExpression114{{"PgFromExpression[114∈0] ➊"}}:::plan + PgFromExpression118{{"PgFromExpression[118∈0] ➊"}}:::plan + PgFromExpression122{{"PgFromExpression[122∈0] ➊"}}:::plan + PgFromExpression126{{"PgFromExpression[126∈0] ➊"}}:::plan + PgFromExpression130{{"PgFromExpression[130∈0] ➊"}}:::plan + PgFromExpression134{{"PgFromExpression[134∈0] ➊"}}:::plan + PgFromExpression138{{"PgFromExpression[138∈0] ➊"}}:::plan + PgFromExpression142{{"PgFromExpression[142∈0] ➊"}}:::plan + PgFromExpression146{{"PgFromExpression[146∈0] ➊"}}:::plan + PgFromExpression150{{"PgFromExpression[150∈0] ➊"}}:::plan + PgFromExpression154{{"PgFromExpression[154∈0] ➊"}}:::plan + PgFromExpression158{{"PgFromExpression[158∈0] ➊"}}:::plan + PgFromExpression162{{"PgFromExpression[162∈0] ➊"}}:::plan + PgFromExpression166{{"PgFromExpression[166∈0] ➊"}}:::plan + PgFromExpression170{{"PgFromExpression[170∈0] ➊"}}:::plan + PgFromExpression174{{"PgFromExpression[174∈0] ➊"}}:::plan + PgFromExpression178{{"PgFromExpression[178∈0] ➊"}}:::plan + PgFromExpression182{{"PgFromExpression[182∈0] ➊"}}:::plan + PgFromExpression186{{"PgFromExpression[186∈0] ➊"}}:::plan + PgFromExpression190{{"PgFromExpression[190∈0] ➊"}}:::plan + PgFromExpression194{{"PgFromExpression[194∈0] ➊"}}:::plan + PgFromExpression198{{"PgFromExpression[198∈0] ➊"}}:::plan + PgFromExpression202{{"PgFromExpression[202∈0] ➊"}}:::plan + PgFromExpression206{{"PgFromExpression[206∈0] ➊"}}:::plan + PgFromExpression210{{"PgFromExpression[210∈0] ➊"}}:::plan + PgFromExpression214{{"PgFromExpression[214∈0] ➊"}}:::plan + PgFromExpression218{{"PgFromExpression[218∈0] ➊"}}:::plan + PgFromExpression222{{"PgFromExpression[222∈0] ➊"}}:::plan + PgFromExpression226{{"PgFromExpression[226∈0] ➊"}}:::plan + PgFromExpression230{{"PgFromExpression[230∈0] ➊"}}:::plan + PgFromExpression234{{"PgFromExpression[234∈0] ➊"}}:::plan + PgFromExpression238{{"PgFromExpression[238∈0] ➊"}}:::plan + PgFromExpression242{{"PgFromExpression[242∈0] ➊"}}:::plan + PgFromExpression246{{"PgFromExpression[246∈0] ➊"}}:::plan + PgFromExpression250{{"PgFromExpression[250∈0] ➊"}}:::plan + PgFromExpression254{{"PgFromExpression[254∈0] ➊"}}:::plan + PgFromExpression258{{"PgFromExpression[258∈0] ➊"}}:::plan + PgFromExpression262{{"PgFromExpression[262∈0] ➊"}}:::plan + PgFromExpression266{{"PgFromExpression[266∈0] ➊"}}:::plan + PgFromExpression270{{"PgFromExpression[270∈0] ➊"}}:::plan + PgFromExpression274{{"PgFromExpression[274∈0] ➊"}}:::plan + PgFromExpression278{{"PgFromExpression[278∈0] ➊"}}:::plan + PgFromExpression282{{"PgFromExpression[282∈0] ➊"}}:::plan + PgFromExpression286{{"PgFromExpression[286∈0] ➊"}}:::plan + PgFromExpression290{{"PgFromExpression[290∈0] ➊"}}:::plan + PgFromExpression294{{"PgFromExpression[294∈0] ➊"}}:::plan + PgFromExpression298{{"PgFromExpression[298∈0] ➊"}}:::plan + PgFromExpression302{{"PgFromExpression[302∈0] ➊"}}:::plan + PgFromExpression306{{"PgFromExpression[306∈0] ➊"}}:::plan + PgFromExpression310{{"PgFromExpression[310∈0] ➊"}}:::plan + PgFromExpression314{{"PgFromExpression[314∈0] ➊"}}:::plan + PgFromExpression318{{"PgFromExpression[318∈0] ➊"}}:::plan + PgFromExpression322{{"PgFromExpression[322∈0] ➊"}}:::plan + PgFromExpression326{{"PgFromExpression[326∈0] ➊"}}:::plan + PgFromExpression330{{"PgFromExpression[330∈0] ➊"}}:::plan + PgFromExpression334{{"PgFromExpression[334∈0] ➊"}}:::plan + PgFromExpression338{{"PgFromExpression[338∈0] ➊"}}:::plan + PgFromExpression342{{"PgFromExpression[342∈0] ➊"}}:::plan + PgFromExpression346{{"PgFromExpression[346∈0] ➊"}}:::plan + PgFromExpression350{{"PgFromExpression[350∈0] ➊"}}:::plan + PgFromExpression354{{"PgFromExpression[354∈0] ➊"}}:::plan + PgFromExpression358{{"PgFromExpression[358∈0] ➊"}}:::plan + PgFromExpression362{{"PgFromExpression[362∈0] ➊"}}:::plan + PgFromExpression366{{"PgFromExpression[366∈0] ➊"}}:::plan + PgFromExpression370{{"PgFromExpression[370∈0] ➊"}}:::plan + PgFromExpression374{{"PgFromExpression[374∈0] ➊"}}:::plan + PgFromExpression378{{"PgFromExpression[378∈0] ➊"}}:::plan + PgFromExpression382{{"PgFromExpression[382∈0] ➊"}}:::plan + PgFromExpression386{{"PgFromExpression[386∈0] ➊"}}:::plan + PgFromExpression390{{"PgFromExpression[390∈0] ➊"}}:::plan + PgFromExpression394{{"PgFromExpression[394∈0] ➊"}}:::plan + PgFromExpression398{{"PgFromExpression[398∈0] ➊"}}:::plan + PgFromExpression402{{"PgFromExpression[402∈0] ➊"}}:::plan + PgFromExpression406{{"PgFromExpression[406∈0] ➊"}}:::plan + PgFromExpression410{{"PgFromExpression[410∈0] ➊"}}:::plan + PgFromExpression414{{"PgFromExpression[414∈0] ➊"}}:::plan + PgFromExpression418{{"PgFromExpression[418∈0] ➊"}}:::plan + PgFromExpression422{{"PgFromExpression[422∈0] ➊"}}:::plan + PgFromExpression426{{"PgFromExpression[426∈0] ➊"}}:::plan + PgFromExpression430{{"PgFromExpression[430∈0] ➊"}}:::plan + Object12 -->|rejectNull| PgSelect15 + Connection13 & Constant432 & PgFromExpression22 & PgFromExpression26 & PgFromExpression30 & PgFromExpression34 & PgFromExpression38 & PgFromExpression42 & PgFromExpression46 & PgFromExpression50 & PgFromExpression54 & PgFromExpression58 & PgFromExpression62 & PgFromExpression66 & PgFromExpression70 & PgFromExpression74 & PgFromExpression78 & PgFromExpression82 & PgFromExpression86 & PgFromExpression90 & PgFromExpression94 & PgFromExpression98 & PgFromExpression102 & PgFromExpression106 & PgFromExpression110 & PgFromExpression114 & PgFromExpression118 & PgFromExpression122 & PgFromExpression126 & PgFromExpression130 & PgFromExpression134 & PgFromExpression138 & PgFromExpression142 & PgFromExpression146 & PgFromExpression150 & PgFromExpression154 & PgFromExpression158 & PgFromExpression162 & PgFromExpression166 & PgFromExpression170 & PgFromExpression174 & PgFromExpression178 & PgFromExpression182 & PgFromExpression186 & PgFromExpression190 & PgFromExpression194 & PgFromExpression198 & PgFromExpression202 & PgFromExpression206 & PgFromExpression210 & PgFromExpression214 & PgFromExpression218 & PgFromExpression222 & PgFromExpression226 & PgFromExpression230 & PgFromExpression234 & PgFromExpression238 & PgFromExpression242 & PgFromExpression246 & PgFromExpression250 & PgFromExpression254 & PgFromExpression258 & PgFromExpression262 & PgFromExpression266 & PgFromExpression270 & PgFromExpression274 & PgFromExpression278 & PgFromExpression282 & PgFromExpression286 & PgFromExpression290 & PgFromExpression294 & PgFromExpression298 & PgFromExpression302 & PgFromExpression306 & PgFromExpression310 & PgFromExpression314 & PgFromExpression318 & PgFromExpression322 & PgFromExpression326 & PgFromExpression330 & PgFromExpression334 & PgFromExpression338 & PgFromExpression342 & PgFromExpression346 & PgFromExpression350 & PgFromExpression354 & PgFromExpression358 & PgFromExpression362 & PgFromExpression366 & PgFromExpression370 & PgFromExpression374 & PgFromExpression378 & PgFromExpression382 & PgFromExpression386 & PgFromExpression390 & PgFromExpression394 & PgFromExpression398 & PgFromExpression402 & PgFromExpression406 & PgFromExpression410 & PgFromExpression414 & PgFromExpression418 & PgFromExpression422 & PgFromExpression426 & PgFromExpression430 --> PgSelect15 + Constant432 --> Connection13 + Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access10 & Access11 --> Object12 + Constant432 --> PgFromExpression22 + Constant433{{"Constant[433∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant433 --> PgFromExpression26 + Constant434{{"Constant[434∈0] ➊
ᐸ3ᐳ"}}:::plan + Constant434 --> PgFromExpression30 + Constant435{{"Constant[435∈0] ➊
ᐸ4ᐳ"}}:::plan + Constant435 --> PgFromExpression34 + Constant436{{"Constant[436∈0] ➊
ᐸ5ᐳ"}}:::plan + Constant436 --> PgFromExpression38 + Constant437{{"Constant[437∈0] ➊
ᐸ6ᐳ"}}:::plan + Constant437 --> PgFromExpression42 + Constant438{{"Constant[438∈0] ➊
ᐸ7ᐳ"}}:::plan + Constant438 --> PgFromExpression46 + Constant439{{"Constant[439∈0] ➊
ᐸ8ᐳ"}}:::plan + Constant439 --> PgFromExpression50 + Constant440{{"Constant[440∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant440 --> PgFromExpression54 + Constant441{{"Constant[441∈0] ➊
ᐸ10ᐳ"}}:::plan + Constant441 --> PgFromExpression58 + Constant442{{"Constant[442∈0] ➊
ᐸ11ᐳ"}}:::plan + Constant442 --> PgFromExpression62 + Constant443{{"Constant[443∈0] ➊
ᐸ12ᐳ"}}:::plan + Constant443 --> PgFromExpression66 + Constant444{{"Constant[444∈0] ➊
ᐸ13ᐳ"}}:::plan + Constant444 --> PgFromExpression70 + Constant445{{"Constant[445∈0] ➊
ᐸ14ᐳ"}}:::plan + Constant445 --> PgFromExpression74 + Constant446{{"Constant[446∈0] ➊
ᐸ15ᐳ"}}:::plan + Constant446 --> PgFromExpression78 + Constant447{{"Constant[447∈0] ➊
ᐸ16ᐳ"}}:::plan + Constant447 --> PgFromExpression82 + Constant448{{"Constant[448∈0] ➊
ᐸ17ᐳ"}}:::plan + Constant448 --> PgFromExpression86 + Constant449{{"Constant[449∈0] ➊
ᐸ18ᐳ"}}:::plan + Constant449 --> PgFromExpression90 + Constant450{{"Constant[450∈0] ➊
ᐸ19ᐳ"}}:::plan + Constant450 --> PgFromExpression94 + Constant451{{"Constant[451∈0] ➊
ᐸ20ᐳ"}}:::plan + Constant451 --> PgFromExpression98 + Constant452{{"Constant[452∈0] ➊
ᐸ21ᐳ"}}:::plan + Constant452 --> PgFromExpression102 + Constant453{{"Constant[453∈0] ➊
ᐸ22ᐳ"}}:::plan + Constant453 --> PgFromExpression106 + Constant454{{"Constant[454∈0] ➊
ᐸ23ᐳ"}}:::plan + Constant454 --> PgFromExpression110 + Constant455{{"Constant[455∈0] ➊
ᐸ24ᐳ"}}:::plan + Constant455 --> PgFromExpression114 + Constant456{{"Constant[456∈0] ➊
ᐸ25ᐳ"}}:::plan + Constant456 --> PgFromExpression118 + Constant457{{"Constant[457∈0] ➊
ᐸ26ᐳ"}}:::plan + Constant457 --> PgFromExpression122 + Constant458{{"Constant[458∈0] ➊
ᐸ27ᐳ"}}:::plan + Constant458 --> PgFromExpression126 + Constant459{{"Constant[459∈0] ➊
ᐸ28ᐳ"}}:::plan + Constant459 --> PgFromExpression130 + Constant460{{"Constant[460∈0] ➊
ᐸ29ᐳ"}}:::plan + Constant460 --> PgFromExpression134 + Constant461{{"Constant[461∈0] ➊
ᐸ30ᐳ"}}:::plan + Constant461 --> PgFromExpression138 + Constant462{{"Constant[462∈0] ➊
ᐸ31ᐳ"}}:::plan + Constant462 --> PgFromExpression142 + Constant463{{"Constant[463∈0] ➊
ᐸ32ᐳ"}}:::plan + Constant463 --> PgFromExpression146 + Constant464{{"Constant[464∈0] ➊
ᐸ33ᐳ"}}:::plan + Constant464 --> PgFromExpression150 + Constant465{{"Constant[465∈0] ➊
ᐸ34ᐳ"}}:::plan + Constant465 --> PgFromExpression154 + Constant466{{"Constant[466∈0] ➊
ᐸ35ᐳ"}}:::plan + Constant466 --> PgFromExpression158 + Constant467{{"Constant[467∈0] ➊
ᐸ36ᐳ"}}:::plan + Constant467 --> PgFromExpression162 + Constant468{{"Constant[468∈0] ➊
ᐸ37ᐳ"}}:::plan + Constant468 --> PgFromExpression166 + Constant469{{"Constant[469∈0] ➊
ᐸ38ᐳ"}}:::plan + Constant469 --> PgFromExpression170 + Constant470{{"Constant[470∈0] ➊
ᐸ39ᐳ"}}:::plan + Constant470 --> PgFromExpression174 + Constant471{{"Constant[471∈0] ➊
ᐸ40ᐳ"}}:::plan + Constant471 --> PgFromExpression178 + Constant472{{"Constant[472∈0] ➊
ᐸ41ᐳ"}}:::plan + Constant472 --> PgFromExpression182 + Constant473{{"Constant[473∈0] ➊
ᐸ42ᐳ"}}:::plan + Constant473 --> PgFromExpression186 + Constant474{{"Constant[474∈0] ➊
ᐸ43ᐳ"}}:::plan + Constant474 --> PgFromExpression190 + Constant475{{"Constant[475∈0] ➊
ᐸ44ᐳ"}}:::plan + Constant475 --> PgFromExpression194 + Constant476{{"Constant[476∈0] ➊
ᐸ45ᐳ"}}:::plan + Constant476 --> PgFromExpression198 + Constant477{{"Constant[477∈0] ➊
ᐸ46ᐳ"}}:::plan + Constant477 --> PgFromExpression202 + Constant478{{"Constant[478∈0] ➊
ᐸ47ᐳ"}}:::plan + Constant478 --> PgFromExpression206 + Constant479{{"Constant[479∈0] ➊
ᐸ48ᐳ"}}:::plan + Constant479 --> PgFromExpression210 + Constant480{{"Constant[480∈0] ➊
ᐸ49ᐳ"}}:::plan + Constant480 --> PgFromExpression214 + Constant481{{"Constant[481∈0] ➊
ᐸ50ᐳ"}}:::plan + Constant481 --> PgFromExpression218 + Constant482{{"Constant[482∈0] ➊
ᐸ51ᐳ"}}:::plan + Constant482 --> PgFromExpression222 + Constant483{{"Constant[483∈0] ➊
ᐸ52ᐳ"}}:::plan + Constant483 --> PgFromExpression226 + Constant484{{"Constant[484∈0] ➊
ᐸ53ᐳ"}}:::plan + Constant484 --> PgFromExpression230 + Constant485{{"Constant[485∈0] ➊
ᐸ54ᐳ"}}:::plan + Constant485 --> PgFromExpression234 + Constant486{{"Constant[486∈0] ➊
ᐸ55ᐳ"}}:::plan + Constant486 --> PgFromExpression238 + Constant487{{"Constant[487∈0] ➊
ᐸ56ᐳ"}}:::plan + Constant487 --> PgFromExpression242 + Constant488{{"Constant[488∈0] ➊
ᐸ57ᐳ"}}:::plan + Constant488 --> PgFromExpression246 + Constant489{{"Constant[489∈0] ➊
ᐸ58ᐳ"}}:::plan + Constant489 --> PgFromExpression250 + Constant490{{"Constant[490∈0] ➊
ᐸ59ᐳ"}}:::plan + Constant490 --> PgFromExpression254 + Constant491{{"Constant[491∈0] ➊
ᐸ60ᐳ"}}:::plan + Constant491 --> PgFromExpression258 + Constant492{{"Constant[492∈0] ➊
ᐸ61ᐳ"}}:::plan + Constant492 --> PgFromExpression262 + Constant493{{"Constant[493∈0] ➊
ᐸ62ᐳ"}}:::plan + Constant493 --> PgFromExpression266 + Constant494{{"Constant[494∈0] ➊
ᐸ63ᐳ"}}:::plan + Constant494 --> PgFromExpression270 + Constant495{{"Constant[495∈0] ➊
ᐸ64ᐳ"}}:::plan + Constant495 --> PgFromExpression274 + Constant496{{"Constant[496∈0] ➊
ᐸ65ᐳ"}}:::plan + Constant496 --> PgFromExpression278 + Constant497{{"Constant[497∈0] ➊
ᐸ66ᐳ"}}:::plan + Constant497 --> PgFromExpression282 + Constant498{{"Constant[498∈0] ➊
ᐸ67ᐳ"}}:::plan + Constant498 --> PgFromExpression286 + Constant499{{"Constant[499∈0] ➊
ᐸ68ᐳ"}}:::plan + Constant499 --> PgFromExpression290 + Constant500{{"Constant[500∈0] ➊
ᐸ69ᐳ"}}:::plan + Constant500 --> PgFromExpression294 + Constant501{{"Constant[501∈0] ➊
ᐸ70ᐳ"}}:::plan + Constant501 --> PgFromExpression298 + Constant502{{"Constant[502∈0] ➊
ᐸ71ᐳ"}}:::plan + Constant502 --> PgFromExpression302 + Constant503{{"Constant[503∈0] ➊
ᐸ72ᐳ"}}:::plan + Constant503 --> PgFromExpression306 + Constant504{{"Constant[504∈0] ➊
ᐸ73ᐳ"}}:::plan + Constant504 --> PgFromExpression310 + Constant505{{"Constant[505∈0] ➊
ᐸ74ᐳ"}}:::plan + Constant505 --> PgFromExpression314 + Constant506{{"Constant[506∈0] ➊
ᐸ75ᐳ"}}:::plan + Constant506 --> PgFromExpression318 + Constant507{{"Constant[507∈0] ➊
ᐸ76ᐳ"}}:::plan + Constant507 --> PgFromExpression322 + Constant508{{"Constant[508∈0] ➊
ᐸ77ᐳ"}}:::plan + Constant508 --> PgFromExpression326 + Constant509{{"Constant[509∈0] ➊
ᐸ78ᐳ"}}:::plan + Constant509 --> PgFromExpression330 + Constant510{{"Constant[510∈0] ➊
ᐸ79ᐳ"}}:::plan + Constant510 --> PgFromExpression334 + Constant511{{"Constant[511∈0] ➊
ᐸ80ᐳ"}}:::plan + Constant511 --> PgFromExpression338 + Constant512{{"Constant[512∈0] ➊
ᐸ81ᐳ"}}:::plan + Constant512 --> PgFromExpression342 + Constant513{{"Constant[513∈0] ➊
ᐸ82ᐳ"}}:::plan + Constant513 --> PgFromExpression346 + Constant514{{"Constant[514∈0] ➊
ᐸ83ᐳ"}}:::plan + Constant514 --> PgFromExpression350 + Constant515{{"Constant[515∈0] ➊
ᐸ84ᐳ"}}:::plan + Constant515 --> PgFromExpression354 + Constant516{{"Constant[516∈0] ➊
ᐸ85ᐳ"}}:::plan + Constant516 --> PgFromExpression358 + Constant517{{"Constant[517∈0] ➊
ᐸ86ᐳ"}}:::plan + Constant517 --> PgFromExpression362 + Constant518{{"Constant[518∈0] ➊
ᐸ87ᐳ"}}:::plan + Constant518 --> PgFromExpression366 + Constant519{{"Constant[519∈0] ➊
ᐸ88ᐳ"}}:::plan + Constant519 --> PgFromExpression370 + Constant520{{"Constant[520∈0] ➊
ᐸ89ᐳ"}}:::plan + Constant520 --> PgFromExpression374 + Constant521{{"Constant[521∈0] ➊
ᐸ90ᐳ"}}:::plan + Constant521 --> PgFromExpression378 + Constant522{{"Constant[522∈0] ➊
ᐸ91ᐳ"}}:::plan + Constant522 --> PgFromExpression382 + Constant523{{"Constant[523∈0] ➊
ᐸ92ᐳ"}}:::plan + Constant523 --> PgFromExpression386 + Constant524{{"Constant[524∈0] ➊
ᐸ93ᐳ"}}:::plan + Constant524 --> PgFromExpression390 + Constant525{{"Constant[525∈0] ➊
ᐸ94ᐳ"}}:::plan + Constant525 --> PgFromExpression394 + Constant526{{"Constant[526∈0] ➊
ᐸ95ᐳ"}}:::plan + Constant526 --> PgFromExpression398 + Constant527{{"Constant[527∈0] ➊
ᐸ96ᐳ"}}:::plan + Constant527 --> PgFromExpression402 + Constant528{{"Constant[528∈0] ➊
ᐸ97ᐳ"}}:::plan + Constant528 --> PgFromExpression406 + Constant529{{"Constant[529∈0] ➊
ᐸ98ᐳ"}}:::plan + Constant529 --> PgFromExpression410 + Constant530{{"Constant[530∈0] ➊
ᐸ99ᐳ"}}:::plan + Constant530 --> PgFromExpression414 + Constant531{{"Constant[531∈0] ➊
ᐸ100ᐳ"}}:::plan + Constant531 --> PgFromExpression418 + Constant532{{"Constant[532∈0] ➊
ᐸ101ᐳ"}}:::plan + Constant532 --> PgFromExpression422 + Constant533{{"Constant[533∈0] ➊
ᐸ102ᐳ"}}:::plan + Constant533 --> PgFromExpression426 + Constant534{{"Constant[534∈0] ➊
ᐸ103ᐳ"}}:::plan + Constant534 --> PgFromExpression430 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access10 __Value2 --> Access11 - __Value2 --> Access12 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant329{{"Constant[329∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant329 --> Connection14 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant330{{"Constant[330∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant331{{"Constant[331∈0] ➊
ᐸ3ᐳ"}}:::plan - Constant332{{"Constant[332∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant333{{"Constant[333∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant334{{"Constant[334∈0] ➊
ᐸ6ᐳ"}}:::plan - Constant335{{"Constant[335∈0] ➊
ᐸ7ᐳ"}}:::plan - Constant336{{"Constant[336∈0] ➊
ᐸ8ᐳ"}}:::plan - Constant337{{"Constant[337∈0] ➊
ᐸ9ᐳ"}}:::plan - Constant338{{"Constant[338∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant339{{"Constant[339∈0] ➊
ᐸ11ᐳ"}}:::plan - Constant340{{"Constant[340∈0] ➊
ᐸ12ᐳ"}}:::plan - Constant341{{"Constant[341∈0] ➊
ᐸ13ᐳ"}}:::plan - Constant342{{"Constant[342∈0] ➊
ᐸ14ᐳ"}}:::plan - Constant343{{"Constant[343∈0] ➊
ᐸ15ᐳ"}}:::plan - Constant344{{"Constant[344∈0] ➊
ᐸ16ᐳ"}}:::plan - Constant345{{"Constant[345∈0] ➊
ᐸ17ᐳ"}}:::plan - Constant346{{"Constant[346∈0] ➊
ᐸ18ᐳ"}}:::plan - Constant347{{"Constant[347∈0] ➊
ᐸ19ᐳ"}}:::plan - Constant348{{"Constant[348∈0] ➊
ᐸ20ᐳ"}}:::plan - Constant349{{"Constant[349∈0] ➊
ᐸ21ᐳ"}}:::plan - Constant350{{"Constant[350∈0] ➊
ᐸ22ᐳ"}}:::plan - Constant351{{"Constant[351∈0] ➊
ᐸ23ᐳ"}}:::plan - Constant352{{"Constant[352∈0] ➊
ᐸ24ᐳ"}}:::plan - Constant353{{"Constant[353∈0] ➊
ᐸ25ᐳ"}}:::plan - Constant354{{"Constant[354∈0] ➊
ᐸ26ᐳ"}}:::plan - Constant355{{"Constant[355∈0] ➊
ᐸ27ᐳ"}}:::plan - Constant356{{"Constant[356∈0] ➊
ᐸ28ᐳ"}}:::plan - Constant357{{"Constant[357∈0] ➊
ᐸ29ᐳ"}}:::plan - Constant358{{"Constant[358∈0] ➊
ᐸ30ᐳ"}}:::plan - Constant359{{"Constant[359∈0] ➊
ᐸ31ᐳ"}}:::plan - Constant360{{"Constant[360∈0] ➊
ᐸ32ᐳ"}}:::plan - Constant361{{"Constant[361∈0] ➊
ᐸ33ᐳ"}}:::plan - Constant362{{"Constant[362∈0] ➊
ᐸ34ᐳ"}}:::plan - Constant363{{"Constant[363∈0] ➊
ᐸ35ᐳ"}}:::plan - Constant364{{"Constant[364∈0] ➊
ᐸ36ᐳ"}}:::plan - Constant365{{"Constant[365∈0] ➊
ᐸ37ᐳ"}}:::plan - Constant366{{"Constant[366∈0] ➊
ᐸ38ᐳ"}}:::plan - Constant367{{"Constant[367∈0] ➊
ᐸ39ᐳ"}}:::plan - Constant368{{"Constant[368∈0] ➊
ᐸ40ᐳ"}}:::plan - Constant369{{"Constant[369∈0] ➊
ᐸ41ᐳ"}}:::plan - Constant370{{"Constant[370∈0] ➊
ᐸ42ᐳ"}}:::plan - Constant371{{"Constant[371∈0] ➊
ᐸ43ᐳ"}}:::plan - Constant372{{"Constant[372∈0] ➊
ᐸ44ᐳ"}}:::plan - Constant373{{"Constant[373∈0] ➊
ᐸ45ᐳ"}}:::plan - Constant374{{"Constant[374∈0] ➊
ᐸ46ᐳ"}}:::plan - Constant375{{"Constant[375∈0] ➊
ᐸ47ᐳ"}}:::plan - Constant376{{"Constant[376∈0] ➊
ᐸ48ᐳ"}}:::plan - Constant377{{"Constant[377∈0] ➊
ᐸ49ᐳ"}}:::plan - Constant378{{"Constant[378∈0] ➊
ᐸ50ᐳ"}}:::plan - Constant379{{"Constant[379∈0] ➊
ᐸ51ᐳ"}}:::plan - Constant380{{"Constant[380∈0] ➊
ᐸ52ᐳ"}}:::plan - Constant381{{"Constant[381∈0] ➊
ᐸ53ᐳ"}}:::plan - Constant382{{"Constant[382∈0] ➊
ᐸ54ᐳ"}}:::plan - Constant383{{"Constant[383∈0] ➊
ᐸ55ᐳ"}}:::plan - Constant384{{"Constant[384∈0] ➊
ᐸ56ᐳ"}}:::plan - Constant385{{"Constant[385∈0] ➊
ᐸ57ᐳ"}}:::plan - Constant386{{"Constant[386∈0] ➊
ᐸ58ᐳ"}}:::plan - Constant387{{"Constant[387∈0] ➊
ᐸ59ᐳ"}}:::plan - Constant388{{"Constant[388∈0] ➊
ᐸ60ᐳ"}}:::plan - Constant389{{"Constant[389∈0] ➊
ᐸ61ᐳ"}}:::plan - Constant390{{"Constant[390∈0] ➊
ᐸ62ᐳ"}}:::plan - Constant391{{"Constant[391∈0] ➊
ᐸ63ᐳ"}}:::plan - Constant392{{"Constant[392∈0] ➊
ᐸ64ᐳ"}}:::plan - Constant393{{"Constant[393∈0] ➊
ᐸ65ᐳ"}}:::plan - Constant394{{"Constant[394∈0] ➊
ᐸ66ᐳ"}}:::plan - Constant395{{"Constant[395∈0] ➊
ᐸ67ᐳ"}}:::plan - Constant396{{"Constant[396∈0] ➊
ᐸ68ᐳ"}}:::plan - Constant397{{"Constant[397∈0] ➊
ᐸ69ᐳ"}}:::plan - Constant398{{"Constant[398∈0] ➊
ᐸ70ᐳ"}}:::plan - Constant399{{"Constant[399∈0] ➊
ᐸ71ᐳ"}}:::plan - Constant400{{"Constant[400∈0] ➊
ᐸ72ᐳ"}}:::plan - Constant401{{"Constant[401∈0] ➊
ᐸ73ᐳ"}}:::plan - Constant402{{"Constant[402∈0] ➊
ᐸ74ᐳ"}}:::plan - Constant403{{"Constant[403∈0] ➊
ᐸ75ᐳ"}}:::plan - Constant404{{"Constant[404∈0] ➊
ᐸ76ᐳ"}}:::plan - Constant405{{"Constant[405∈0] ➊
ᐸ77ᐳ"}}:::plan - Constant406{{"Constant[406∈0] ➊
ᐸ78ᐳ"}}:::plan - Constant407{{"Constant[407∈0] ➊
ᐸ79ᐳ"}}:::plan - Constant408{{"Constant[408∈0] ➊
ᐸ80ᐳ"}}:::plan - Constant409{{"Constant[409∈0] ➊
ᐸ81ᐳ"}}:::plan - Constant410{{"Constant[410∈0] ➊
ᐸ82ᐳ"}}:::plan - Constant411{{"Constant[411∈0] ➊
ᐸ83ᐳ"}}:::plan - Constant412{{"Constant[412∈0] ➊
ᐸ84ᐳ"}}:::plan - Constant413{{"Constant[413∈0] ➊
ᐸ85ᐳ"}}:::plan - Constant414{{"Constant[414∈0] ➊
ᐸ86ᐳ"}}:::plan - Constant415{{"Constant[415∈0] ➊
ᐸ87ᐳ"}}:::plan - Constant416{{"Constant[416∈0] ➊
ᐸ88ᐳ"}}:::plan - Constant417{{"Constant[417∈0] ➊
ᐸ89ᐳ"}}:::plan - Constant418{{"Constant[418∈0] ➊
ᐸ90ᐳ"}}:::plan - Constant419{{"Constant[419∈0] ➊
ᐸ91ᐳ"}}:::plan - Constant420{{"Constant[420∈0] ➊
ᐸ92ᐳ"}}:::plan - Constant421{{"Constant[421∈0] ➊
ᐸ93ᐳ"}}:::plan - Constant422{{"Constant[422∈0] ➊
ᐸ94ᐳ"}}:::plan - Constant423{{"Constant[423∈0] ➊
ᐸ95ᐳ"}}:::plan - Constant424{{"Constant[424∈0] ➊
ᐸ96ᐳ"}}:::plan - Constant425{{"Constant[425∈0] ➊
ᐸ97ᐳ"}}:::plan - Constant426{{"Constant[426∈0] ➊
ᐸ98ᐳ"}}:::plan - Constant427{{"Constant[427∈0] ➊
ᐸ99ᐳ"}}:::plan - Constant428{{"Constant[428∈0] ➊
ᐸ100ᐳ"}}:::plan - Constant429{{"Constant[429∈0] ➊
ᐸ101ᐳ"}}:::plan - Constant430{{"Constant[430∈0] ➊
ᐸ102ᐳ"}}:::plan - Constant431{{"Constant[431∈0] ➊
ᐸ103ᐳ"}}:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸpostᐳ"]]:::plan - Object13 & Connection14 & Constant329 & Constant329 & Constant330 & Constant331 & Constant332 & Constant333 & Constant334 & Constant335 & Constant336 & Constant337 & Constant338 & Constant339 & Constant340 & Constant341 & Constant342 & Constant343 & Constant344 & Constant345 & Constant346 & Constant347 & Constant348 & Constant349 & Constant350 & Constant351 & Constant352 & Constant353 & Constant354 & Constant355 & Constant356 & Constant357 & Constant358 & Constant359 & Constant360 & Constant361 & Constant362 & Constant363 & Constant364 & Constant365 & Constant366 & Constant367 & Constant368 & Constant369 & Constant370 & Constant371 & Constant372 & Constant373 & Constant374 & Constant375 & Constant376 & Constant377 & Constant378 & Constant379 & Constant380 & Constant381 & Constant382 & Constant383 & Constant384 & Constant385 & Constant386 & Constant387 & Constant388 & Constant389 & Constant390 & Constant391 & Constant392 & Constant393 & Constant394 & Constant395 & Constant396 & Constant397 & Constant398 & Constant399 & Constant400 & Constant401 & Constant402 & Constant403 & Constant404 & Constant405 & Constant406 & Constant407 & Constant408 & Constant409 & Constant410 & Constant411 & Constant412 & Constant413 & Constant414 & Constant415 & Constant416 & Constant417 & Constant418 & Constant419 & Constant420 & Constant421 & Constant422 & Constant423 & Constant424 & Constant425 & Constant426 & Constant427 & Constant428 & Constant429 & Constant430 & Constant431 --> PgSelect15 - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan PgSelect15 --> PgSelectRows16 - __Item17[/"__Item[17∈2]
ᐸ16ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan PgSelectRows16 ==> __Item17 - PgSelectSingle18{{"PgSelectSingle[18∈2]
ᐸpostᐳ"}}:::plan + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸpostᐳ"}}:::plan __Item17 --> PgSelectSingle18 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__post__.”headline”ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression19 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression22 - PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression25 - PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression28 - PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression23 + PgClassExpression27{{"PgClassExpression[27∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression27 + PgClassExpression31{{"PgClassExpression[31∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression31 - PgClassExpression34{{"PgClassExpression[34∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression34 - PgClassExpression37{{"PgClassExpression[37∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression37 - PgClassExpression40{{"PgClassExpression[40∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression40 - PgClassExpression43{{"PgClassExpression[43∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression35 + PgClassExpression39{{"PgClassExpression[39∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression39 + PgClassExpression43{{"PgClassExpression[43∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression43 - PgClassExpression46{{"PgClassExpression[46∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression46 - PgClassExpression49{{"PgClassExpression[49∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression49 - PgClassExpression52{{"PgClassExpression[52∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression52 - PgClassExpression55{{"PgClassExpression[55∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression47{{"PgClassExpression[47∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression47 + PgClassExpression51{{"PgClassExpression[51∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression51 + PgClassExpression55{{"PgClassExpression[55∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression55 - PgClassExpression58{{"PgClassExpression[58∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression58 - PgClassExpression61{{"PgClassExpression[61∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression61 - PgClassExpression64{{"PgClassExpression[64∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression64 - PgClassExpression67{{"PgClassExpression[67∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression59{{"PgClassExpression[59∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression59 + PgClassExpression63{{"PgClassExpression[63∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression63 + PgClassExpression67{{"PgClassExpression[67∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression67 - PgClassExpression70{{"PgClassExpression[70∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression70 - PgClassExpression73{{"PgClassExpression[73∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression73 - PgClassExpression76{{"PgClassExpression[76∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression76 - PgClassExpression79{{"PgClassExpression[79∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression71{{"PgClassExpression[71∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression71 + PgClassExpression75{{"PgClassExpression[75∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression75 + PgClassExpression79{{"PgClassExpression[79∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression79 - PgClassExpression82{{"PgClassExpression[82∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression82 - PgClassExpression85{{"PgClassExpression[85∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression85 - PgClassExpression88{{"PgClassExpression[88∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression88 - PgClassExpression91{{"PgClassExpression[91∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression83{{"PgClassExpression[83∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression83 + PgClassExpression87{{"PgClassExpression[87∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression87 + PgClassExpression91{{"PgClassExpression[91∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression91 - PgClassExpression94{{"PgClassExpression[94∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression94 - PgClassExpression97{{"PgClassExpression[97∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression97 - PgClassExpression100{{"PgClassExpression[100∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression100 - PgClassExpression103{{"PgClassExpression[103∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression95{{"PgClassExpression[95∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression95 + PgClassExpression99{{"PgClassExpression[99∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression99 + PgClassExpression103{{"PgClassExpression[103∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression103 - PgClassExpression106{{"PgClassExpression[106∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression106 - PgClassExpression109{{"PgClassExpression[109∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression109 - PgClassExpression112{{"PgClassExpression[112∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression112 - PgClassExpression115{{"PgClassExpression[115∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression107{{"PgClassExpression[107∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression107 + PgClassExpression111{{"PgClassExpression[111∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression111 + PgClassExpression115{{"PgClassExpression[115∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression115 - PgClassExpression118{{"PgClassExpression[118∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression118 - PgClassExpression121{{"PgClassExpression[121∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression121 - PgClassExpression124{{"PgClassExpression[124∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression124 - PgClassExpression127{{"PgClassExpression[127∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression119{{"PgClassExpression[119∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression119 + PgClassExpression123{{"PgClassExpression[123∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression123 + PgClassExpression127{{"PgClassExpression[127∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression127 - PgClassExpression130{{"PgClassExpression[130∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression130 - PgClassExpression133{{"PgClassExpression[133∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression133 - PgClassExpression136{{"PgClassExpression[136∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression136 - PgClassExpression139{{"PgClassExpression[139∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression131{{"PgClassExpression[131∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression131 + PgClassExpression135{{"PgClassExpression[135∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression135 + PgClassExpression139{{"PgClassExpression[139∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression139 - PgClassExpression142{{"PgClassExpression[142∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression142 - PgClassExpression145{{"PgClassExpression[145∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression145 - PgClassExpression148{{"PgClassExpression[148∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression148 - PgClassExpression151{{"PgClassExpression[151∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression143{{"PgClassExpression[143∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression143 + PgClassExpression147{{"PgClassExpression[147∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression147 + PgClassExpression151{{"PgClassExpression[151∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression151 - PgClassExpression154{{"PgClassExpression[154∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression154 - PgClassExpression157{{"PgClassExpression[157∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression157 - PgClassExpression160{{"PgClassExpression[160∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression160 - PgClassExpression163{{"PgClassExpression[163∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression155{{"PgClassExpression[155∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression155 + PgClassExpression159{{"PgClassExpression[159∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression159 + PgClassExpression163{{"PgClassExpression[163∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression163 - PgClassExpression166{{"PgClassExpression[166∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression166 - PgClassExpression169{{"PgClassExpression[169∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression169 - PgClassExpression172{{"PgClassExpression[172∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression172 - PgClassExpression175{{"PgClassExpression[175∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression167{{"PgClassExpression[167∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression167 + PgClassExpression171{{"PgClassExpression[171∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression171 + PgClassExpression175{{"PgClassExpression[175∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression175 - PgClassExpression178{{"PgClassExpression[178∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression178 - PgClassExpression181{{"PgClassExpression[181∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression181 - PgClassExpression184{{"PgClassExpression[184∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression184 - PgClassExpression187{{"PgClassExpression[187∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression179{{"PgClassExpression[179∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression179 + PgClassExpression183{{"PgClassExpression[183∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression183 + PgClassExpression187{{"PgClassExpression[187∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression187 - PgClassExpression190{{"PgClassExpression[190∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression190 - PgClassExpression193{{"PgClassExpression[193∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression193 - PgClassExpression196{{"PgClassExpression[196∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression196 - PgClassExpression199{{"PgClassExpression[199∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression191{{"PgClassExpression[191∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression191 + PgClassExpression195{{"PgClassExpression[195∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression195 + PgClassExpression199{{"PgClassExpression[199∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression199 - PgClassExpression202{{"PgClassExpression[202∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression202 - PgClassExpression205{{"PgClassExpression[205∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression205 - PgClassExpression208{{"PgClassExpression[208∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression208 - PgClassExpression211{{"PgClassExpression[211∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression203{{"PgClassExpression[203∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression203 + PgClassExpression207{{"PgClassExpression[207∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression207 + PgClassExpression211{{"PgClassExpression[211∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression211 - PgClassExpression214{{"PgClassExpression[214∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression214 - PgClassExpression217{{"PgClassExpression[217∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression217 - PgClassExpression220{{"PgClassExpression[220∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression220 - PgClassExpression223{{"PgClassExpression[223∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression215{{"PgClassExpression[215∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression215 + PgClassExpression219{{"PgClassExpression[219∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression219 + PgClassExpression223{{"PgClassExpression[223∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression223 - PgClassExpression226{{"PgClassExpression[226∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression226 - PgClassExpression229{{"PgClassExpression[229∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression229 - PgClassExpression232{{"PgClassExpression[232∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression232 - PgClassExpression235{{"PgClassExpression[235∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression227{{"PgClassExpression[227∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression227 + PgClassExpression231{{"PgClassExpression[231∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression231 + PgClassExpression235{{"PgClassExpression[235∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression235 - PgClassExpression238{{"PgClassExpression[238∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression238 - PgClassExpression241{{"PgClassExpression[241∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression241 - PgClassExpression244{{"PgClassExpression[244∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression244 - PgClassExpression247{{"PgClassExpression[247∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression239{{"PgClassExpression[239∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression239 + PgClassExpression243{{"PgClassExpression[243∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression243 + PgClassExpression247{{"PgClassExpression[247∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression247 - PgClassExpression250{{"PgClassExpression[250∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression250 - PgClassExpression253{{"PgClassExpression[253∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression253 - PgClassExpression256{{"PgClassExpression[256∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression256 - PgClassExpression259{{"PgClassExpression[259∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression251{{"PgClassExpression[251∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression251 + PgClassExpression255{{"PgClassExpression[255∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression255 + PgClassExpression259{{"PgClassExpression[259∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression259 - PgClassExpression262{{"PgClassExpression[262∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression262 - PgClassExpression265{{"PgClassExpression[265∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression265 - PgClassExpression268{{"PgClassExpression[268∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression268 - PgClassExpression271{{"PgClassExpression[271∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression263{{"PgClassExpression[263∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression263 + PgClassExpression267{{"PgClassExpression[267∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression267 + PgClassExpression271{{"PgClassExpression[271∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression271 - PgClassExpression274{{"PgClassExpression[274∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression274 - PgClassExpression277{{"PgClassExpression[277∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression277 - PgClassExpression280{{"PgClassExpression[280∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression280 - PgClassExpression283{{"PgClassExpression[283∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression275{{"PgClassExpression[275∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression275 + PgClassExpression279{{"PgClassExpression[279∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression279 + PgClassExpression283{{"PgClassExpression[283∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression283 - PgClassExpression286{{"PgClassExpression[286∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression286 - PgClassExpression289{{"PgClassExpression[289∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression289 - PgClassExpression292{{"PgClassExpression[292∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression292 - PgClassExpression295{{"PgClassExpression[295∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression287{{"PgClassExpression[287∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression287 + PgClassExpression291{{"PgClassExpression[291∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression291 + PgClassExpression295{{"PgClassExpression[295∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression295 - PgClassExpression298{{"PgClassExpression[298∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression298 - PgClassExpression301{{"PgClassExpression[301∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression301 - PgClassExpression304{{"PgClassExpression[304∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression304 - PgClassExpression307{{"PgClassExpression[307∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression299{{"PgClassExpression[299∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression299 + PgClassExpression303{{"PgClassExpression[303∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression303 + PgClassExpression307{{"PgClassExpression[307∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression307 - PgClassExpression310{{"PgClassExpression[310∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression310 - PgClassExpression313{{"PgClassExpression[313∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression313 - PgClassExpression316{{"PgClassExpression[316∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression316 - PgClassExpression319{{"PgClassExpression[319∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan + PgClassExpression311{{"PgClassExpression[311∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression311 + PgClassExpression315{{"PgClassExpression[315∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression315 + PgClassExpression319{{"PgClassExpression[319∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle18 --> PgClassExpression319 - PgClassExpression322{{"PgClassExpression[322∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression322 - PgClassExpression325{{"PgClassExpression[325∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression325 - PgClassExpression328{{"PgClassExpression[328∈3]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle18 --> PgClassExpression328 + PgClassExpression323{{"PgClassExpression[323∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression323 + PgClassExpression327{{"PgClassExpression[327∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression327 + PgClassExpression331{{"PgClassExpression[331∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression331 + PgClassExpression335{{"PgClassExpression[335∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression335 + PgClassExpression339{{"PgClassExpression[339∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression339 + PgClassExpression343{{"PgClassExpression[343∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression343 + PgClassExpression347{{"PgClassExpression[347∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression347 + PgClassExpression351{{"PgClassExpression[351∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression351 + PgClassExpression355{{"PgClassExpression[355∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression355 + PgClassExpression359{{"PgClassExpression[359∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression359 + PgClassExpression363{{"PgClassExpression[363∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression363 + PgClassExpression367{{"PgClassExpression[367∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression367 + PgClassExpression371{{"PgClassExpression[371∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression371 + PgClassExpression375{{"PgClassExpression[375∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression375 + PgClassExpression379{{"PgClassExpression[379∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression379 + PgClassExpression383{{"PgClassExpression[383∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression383 + PgClassExpression387{{"PgClassExpression[387∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression387 + PgClassExpression391{{"PgClassExpression[391∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression391 + PgClassExpression395{{"PgClassExpression[395∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression395 + PgClassExpression399{{"PgClassExpression[399∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression399 + PgClassExpression403{{"PgClassExpression[403∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression403 + PgClassExpression407{{"PgClassExpression[407∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression407 + PgClassExpression411{{"PgClassExpression[411∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression411 + PgClassExpression415{{"PgClassExpression[415∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression415 + PgClassExpression419{{"PgClassExpression[419∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression419 + PgClassExpression423{{"PgClassExpression[423∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression423 + PgClassExpression427{{"PgClassExpression[427∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression427 + PgClassExpression431{{"PgClassExpression[431∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle18 --> PgClassExpression431 %% define steps subgraph "Buckets for queries/v4/json-overflow" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 10, 11, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 12, 13, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62, 66, 70, 74, 78, 82, 86, 90, 94, 98, 102, 106, 110, 114, 118, 122, 126, 130, 134, 138, 142, 146, 150, 154, 158, 162, 166, 170, 174, 178, 182, 186, 190, 194, 198, 202, 206, 210, 214, 218, 222, 226, 230, 234, 238, 242, 246, 250, 254, 258, 262, 266, 270, 274, 278, 282, 286, 290, 294, 298, 302, 306, 310, 314, 318, 322, 326, 330, 334, 338, 342, 346, 350, 354, 358, 362, 366, 370, 374, 378, 382, 386, 390, 394, 398, 402, 406, 410, 414, 418, 422, 426, 430
2: PgSelect[15]
3: PgSelectRows[16]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access11,Access12,Object13,Connection14,Constant329,Constant330,Constant331,Constant332,Constant333,Constant334,Constant335,Constant336,Constant337,Constant338,Constant339,Constant340,Constant341,Constant342,Constant343,Constant344,Constant345,Constant346,Constant347,Constant348,Constant349,Constant350,Constant351,Constant352,Constant353,Constant354,Constant355,Constant356,Constant357,Constant358,Constant359,Constant360,Constant361,Constant362,Constant363,Constant364,Constant365,Constant366,Constant367,Constant368,Constant369,Constant370,Constant371,Constant372,Constant373,Constant374,Constant375,Constant376,Constant377,Constant378,Constant379,Constant380,Constant381,Constant382,Constant383,Constant384,Constant385,Constant386,Constant387,Constant388,Constant389,Constant390,Constant391,Constant392,Constant393,Constant394,Constant395,Constant396,Constant397,Constant398,Constant399,Constant400,Constant401,Constant402,Constant403,Constant404,Constant405,Constant406,Constant407,Constant408,Constant409,Constant410,Constant411,Constant412,Constant413,Constant414,Constant415,Constant416,Constant417,Constant418,Constant419,Constant420,Constant421,Constant422,Constant423,Constant424,Constant425,Constant426,Constant427,Constant428,Constant429,Constant430,Constant431 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[15]
2: PgSelectRows[16]"):::bucket + class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,PgSelect15,PgSelectRows16,PgFromExpression22,PgFromExpression26,PgFromExpression30,PgFromExpression34,PgFromExpression38,PgFromExpression42,PgFromExpression46,PgFromExpression50,PgFromExpression54,PgFromExpression58,PgFromExpression62,PgFromExpression66,PgFromExpression70,PgFromExpression74,PgFromExpression78,PgFromExpression82,PgFromExpression86,PgFromExpression90,PgFromExpression94,PgFromExpression98,PgFromExpression102,PgFromExpression106,PgFromExpression110,PgFromExpression114,PgFromExpression118,PgFromExpression122,PgFromExpression126,PgFromExpression130,PgFromExpression134,PgFromExpression138,PgFromExpression142,PgFromExpression146,PgFromExpression150,PgFromExpression154,PgFromExpression158,PgFromExpression162,PgFromExpression166,PgFromExpression170,PgFromExpression174,PgFromExpression178,PgFromExpression182,PgFromExpression186,PgFromExpression190,PgFromExpression194,PgFromExpression198,PgFromExpression202,PgFromExpression206,PgFromExpression210,PgFromExpression214,PgFromExpression218,PgFromExpression222,PgFromExpression226,PgFromExpression230,PgFromExpression234,PgFromExpression238,PgFromExpression242,PgFromExpression246,PgFromExpression250,PgFromExpression254,PgFromExpression258,PgFromExpression262,PgFromExpression266,PgFromExpression270,PgFromExpression274,PgFromExpression278,PgFromExpression282,PgFromExpression286,PgFromExpression290,PgFromExpression294,PgFromExpression298,PgFromExpression302,PgFromExpression306,PgFromExpression310,PgFromExpression314,PgFromExpression318,PgFromExpression322,PgFromExpression326,PgFromExpression330,PgFromExpression334,PgFromExpression338,PgFromExpression342,PgFromExpression346,PgFromExpression350,PgFromExpression354,PgFromExpression358,PgFromExpression362,PgFromExpression366,PgFromExpression370,PgFromExpression374,PgFromExpression378,PgFromExpression382,PgFromExpression386,PgFromExpression390,PgFromExpression394,PgFromExpression398,PgFromExpression402,PgFromExpression406,PgFromExpression410,PgFromExpression414,PgFromExpression418,PgFromExpression422,PgFromExpression426,PgFromExpression430,Constant432,Constant433,Constant434,Constant435,Constant436,Constant437,Constant438,Constant439,Constant440,Constant441,Constant442,Constant443,Constant444,Constant445,Constant446,Constant447,Constant448,Constant449,Constant450,Constant451,Constant452,Constant453,Constant454,Constant455,Constant456,Constant457,Constant458,Constant459,Constant460,Constant461,Constant462,Constant463,Constant464,Constant465,Constant466,Constant467,Constant468,Constant469,Constant470,Constant471,Constant472,Constant473,Constant474,Constant475,Constant476,Constant477,Constant478,Constant479,Constant480,Constant481,Constant482,Constant483,Constant484,Constant485,Constant486,Constant487,Constant488,Constant489,Constant490,Constant491,Constant492,Constant493,Constant494,Constant495,Constant496,Constant497,Constant498,Constant499,Constant500,Constant501,Constant502,Constant503,Constant504,Constant505,Constant506,Constant507,Constant508,Constant509,Constant510,Constant511,Constant512,Constant513,Constant514,Constant515,Constant516,Constant517,Constant518,Constant519,Constant520,Constant521,Constant522,Constant523,Constant524,Constant525,Constant526,Constant527,Constant528,Constant529,Constant530,Constant531,Constant532,Constant533,Constant534 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ16ᐳ[17]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect15,PgSelectRows16 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ16ᐳ[17]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item17,PgSelectSingle18 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 18

ROOT PgSelectSingle{2}ᐸpostᐳ[18]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgClassExpression22,PgClassExpression25,PgClassExpression28,PgClassExpression31,PgClassExpression34,PgClassExpression37,PgClassExpression40,PgClassExpression43,PgClassExpression46,PgClassExpression49,PgClassExpression52,PgClassExpression55,PgClassExpression58,PgClassExpression61,PgClassExpression64,PgClassExpression67,PgClassExpression70,PgClassExpression73,PgClassExpression76,PgClassExpression79,PgClassExpression82,PgClassExpression85,PgClassExpression88,PgClassExpression91,PgClassExpression94,PgClassExpression97,PgClassExpression100,PgClassExpression103,PgClassExpression106,PgClassExpression109,PgClassExpression112,PgClassExpression115,PgClassExpression118,PgClassExpression121,PgClassExpression124,PgClassExpression127,PgClassExpression130,PgClassExpression133,PgClassExpression136,PgClassExpression139,PgClassExpression142,PgClassExpression145,PgClassExpression148,PgClassExpression151,PgClassExpression154,PgClassExpression157,PgClassExpression160,PgClassExpression163,PgClassExpression166,PgClassExpression169,PgClassExpression172,PgClassExpression175,PgClassExpression178,PgClassExpression181,PgClassExpression184,PgClassExpression187,PgClassExpression190,PgClassExpression193,PgClassExpression196,PgClassExpression199,PgClassExpression202,PgClassExpression205,PgClassExpression208,PgClassExpression211,PgClassExpression214,PgClassExpression217,PgClassExpression220,PgClassExpression223,PgClassExpression226,PgClassExpression229,PgClassExpression232,PgClassExpression235,PgClassExpression238,PgClassExpression241,PgClassExpression244,PgClassExpression247,PgClassExpression250,PgClassExpression253,PgClassExpression256,PgClassExpression259,PgClassExpression262,PgClassExpression265,PgClassExpression268,PgClassExpression271,PgClassExpression274,PgClassExpression277,PgClassExpression280,PgClassExpression283,PgClassExpression286,PgClassExpression289,PgClassExpression292,PgClassExpression295,PgClassExpression298,PgClassExpression301,PgClassExpression304,PgClassExpression307,PgClassExpression310,PgClassExpression313,PgClassExpression316,PgClassExpression319,PgClassExpression322,PgClassExpression325,PgClassExpression328 bucket3 + class Bucket1,__Item17,PgSelectSingle18,PgClassExpression19,PgClassExpression23,PgClassExpression27,PgClassExpression31,PgClassExpression35,PgClassExpression39,PgClassExpression43,PgClassExpression47,PgClassExpression51,PgClassExpression55,PgClassExpression59,PgClassExpression63,PgClassExpression67,PgClassExpression71,PgClassExpression75,PgClassExpression79,PgClassExpression83,PgClassExpression87,PgClassExpression91,PgClassExpression95,PgClassExpression99,PgClassExpression103,PgClassExpression107,PgClassExpression111,PgClassExpression115,PgClassExpression119,PgClassExpression123,PgClassExpression127,PgClassExpression131,PgClassExpression135,PgClassExpression139,PgClassExpression143,PgClassExpression147,PgClassExpression151,PgClassExpression155,PgClassExpression159,PgClassExpression163,PgClassExpression167,PgClassExpression171,PgClassExpression175,PgClassExpression179,PgClassExpression183,PgClassExpression187,PgClassExpression191,PgClassExpression195,PgClassExpression199,PgClassExpression203,PgClassExpression207,PgClassExpression211,PgClassExpression215,PgClassExpression219,PgClassExpression223,PgClassExpression227,PgClassExpression231,PgClassExpression235,PgClassExpression239,PgClassExpression243,PgClassExpression247,PgClassExpression251,PgClassExpression255,PgClassExpression259,PgClassExpression263,PgClassExpression267,PgClassExpression271,PgClassExpression275,PgClassExpression279,PgClassExpression283,PgClassExpression287,PgClassExpression291,PgClassExpression295,PgClassExpression299,PgClassExpression303,PgClassExpression307,PgClassExpression311,PgClassExpression315,PgClassExpression319,PgClassExpression323,PgClassExpression327,PgClassExpression331,PgClassExpression335,PgClassExpression339,PgClassExpression343,PgClassExpression347,PgClassExpression351,PgClassExpression355,PgClassExpression359,PgClassExpression363,PgClassExpression367,PgClassExpression371,PgClassExpression375,PgClassExpression379,PgClassExpression383,PgClassExpression387,PgClassExpression391,PgClassExpression395,PgClassExpression399,PgClassExpression403,PgClassExpression407,PgClassExpression411,PgClassExpression415,PgClassExpression419,PgClassExpression423,PgClassExpression427,PgClassExpression431 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/large_bigint.issue491.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/large_bigint.issue491.mermaid index 4f5db8fcf7..b9f9192d9e 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/large_bigint.issue491.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/large_bigint.issue491.mermaid @@ -9,24 +9,37 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸlarge_node_idᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 PgSelect27[["PgSelect[27∈0] ➊
ᐸlarge_node_idᐳ"]]:::plan Access25{{"Access[25∈0] ➊
ᐸ24.1ᐳ"}}:::plan - Object12 -->|rejectNull| PgSelect27 + Object11 -->|rejectNull| PgSelect27 Access25 --> PgSelect27 + List34{{"List[34∈0] ➊
ᐸ18,33ᐳ"}}:::plan + Constant18{{"Constant[18∈0] ➊
ᐸ'large_node_ids'ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈0] ➊
ᐸ__large_node_id__.”id”ᐳ"}}:::plan + Constant18 & PgClassExpression33 --> List34 PgSelect41[["PgSelect[41∈0] ➊
ᐸlarge_node_idᐳ"]]:::plan Access39{{"Access[39∈0] ➊
ᐸ38.1ᐳ"}}:::plan - Object12 -->|rejectNull| PgSelect41 + Object11 -->|rejectNull| PgSelect41 Access39 --> PgSelect41 + List47{{"List[47∈0] ➊
ᐸ18,46ᐳ"}}:::plan + PgClassExpression46{{"PgClassExpression[46∈0] ➊
ᐸ__large_node_id__.”id”ᐳ"}}:::plan + Constant18 & PgClassExpression46 --> List47 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan + PgSelect14 --> PgSelectRows15 Lambda24{{"Lambda[24∈0] ➊
ᐸspecifier_LargeNodeId_base64JSONᐳ"}}:::plan - Constant51{{"Constant[51∈0] ➊
ᐸ'WyJsYXJnZV9ub2RlX2lkcyIsOTAwNzE5OTI1NDc0MDk5MF0='ᐳ"}}:::plan - Constant51 --> Lambda24 + Constant50{{"Constant[50∈0] ➊
ᐸ'WyJsYXJnZV9ub2RlX2lkcyIsOTAwNzE5OTI1NDc0MDk5MF0='ᐳ"}}:::plan + Constant50 --> Lambda24 Lambda24 --> Access25 First29{{"First[29∈0] ➊"}}:::plan PgSelectRows30[["PgSelectRows[30∈0] ➊"]]:::plan @@ -34,9 +47,14 @@ graph TD PgSelect27 --> PgSelectRows30 PgSelectSingle31{{"PgSelectSingle[31∈0] ➊
ᐸlarge_node_idᐳ"}}:::plan First29 --> PgSelectSingle31 + PgSelectSingle31 --> PgClassExpression33 + Lambda35{{"Lambda[35∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List34 --> Lambda35 + PgClassExpression36{{"PgClassExpression[36∈0] ➊
ᐸ__large_no...d__.”text”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression36 Lambda38{{"Lambda[38∈0] ➊
ᐸspecifier_LargeNodeId_base64JSONᐳ"}}:::plan - Constant52{{"Constant[52∈0] ➊
ᐸ'WyJsYXJnZV9ub2RlX2lkcyIsIjIwOTgyODg2NjkyMTg1NzE3NjAiXQ=='ᐳ"}}:::plan - Constant52 --> Lambda38 + Constant51{{"Constant[51∈0] ➊
ᐸ'WyJsYXJnZV9ub2RlX2lkcyIsIjIwOTgyODg2NjkyMTg1NzE3NjAiXQ=='ᐳ"}}:::plan + Constant51 --> Lambda38 Lambda38 --> Access39 First43{{"First[43∈0] ➊"}}:::plan PgSelectRows44[["PgSelectRows[44∈0] ➊"]]:::plan @@ -44,64 +62,33 @@ graph TD PgSelect41 --> PgSelectRows44 PgSelectSingle45{{"PgSelectSingle[45∈0] ➊
ᐸlarge_node_idᐳ"}}:::plan First43 --> PgSelectSingle45 + PgSelectSingle45 --> PgClassExpression46 + Lambda48{{"Lambda[48∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List47 --> Lambda48 + PgClassExpression49{{"PgClassExpression[49∈0] ➊
ᐸ__large_no...d__.”text”ᐳ"}}:::plan + PgSelectSingle45 --> PgClassExpression49 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Constant18{{"Constant[18∈0] ➊
ᐸ'large_node_ids'ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸlarge_node_idᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan - PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + List20{{"List[20∈1]
ᐸ18,19ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__large_node_id__.”id”ᐳ"}}:::plan + Constant18 & PgClassExpression19 --> List20 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸlarge_node_idᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸlarge_node_idᐳ"}}:::plan __Item16 --> PgSelectSingle17 - List20{{"List[20∈3]
ᐸ18,19ᐳ"}}:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__large_node_id__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression19 --> List20 PgSelectSingle17 --> PgClassExpression19 - Lambda21{{"Lambda[21∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda21{{"Lambda[21∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan List20 --> Lambda21 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__large_no...d__.”text”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__large_no...d__.”text”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression22 - List34{{"List[34∈4] ➊
ᐸ18,33ᐳ"}}:::plan - PgClassExpression33{{"PgClassExpression[33∈4] ➊
ᐸ__large_node_id__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression33 --> List34 - PgSelectSingle31 --> PgClassExpression33 - Lambda35{{"Lambda[35∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List34 --> Lambda35 - PgClassExpression36{{"PgClassExpression[36∈4] ➊
ᐸ__large_no...d__.”text”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression36 - List48{{"List[48∈5] ➊
ᐸ18,47ᐳ"}}:::plan - PgClassExpression47{{"PgClassExpression[47∈5] ➊
ᐸ__large_node_id__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression47 --> List48 - PgSelectSingle45 --> PgClassExpression47 - Lambda49{{"Lambda[49∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List48 --> Lambda49 - PgClassExpression50{{"PgClassExpression[50∈5] ➊
ᐸ__large_no...d__.”text”ᐳ"}}:::plan - PgSelectSingle45 --> PgClassExpression50 %% define steps subgraph "Buckets for queries/v4/large_bigint.issue491" - Bucket0("Bucket 0 (root)

1:
ᐳ: 10, 11, 13, 18, 51, 52, 12, 24, 25, 38, 39
2: PgSelect[27], PgSelect[41]
3: PgSelectRows[30], PgSelectRows[44]
ᐳ: 29, 31, 43, 45"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 18, 50, 51, 11, 12, 24, 25, 38, 39
2: 14, 27, 41
3: 15, 30, 44
ᐳ: 29, 31, 33, 34, 35, 36, 43, 45, 46, 47, 48, 49"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Constant18,Lambda24,Access25,PgSelect27,First29,PgSelectRows30,PgSelectSingle31,Lambda38,Access39,PgSelect41,First43,PgSelectRows44,PgSelectSingle45,Constant51,Constant52 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 18

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Constant18,Lambda24,Access25,PgSelect27,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression33,List34,Lambda35,PgClassExpression36,Lambda38,Access39,PgSelect41,First43,PgSelectRows44,PgSelectSingle45,PgClassExpression46,List47,Lambda48,PgClassExpression49,Constant50,Constant51 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 18

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 18

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 18

ROOT PgSelectSingle{2}ᐸlarge_node_idᐳ[17]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,List20,Lambda21,PgClassExpression22 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31, 18

ROOT PgSelectSingleᐸlarge_node_idᐳ[31]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression33,List34,Lambda35,PgClassExpression36 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 45, 18

ROOT PgSelectSingleᐸlarge_node_idᐳ[45]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression47,List48,Lambda49,PgClassExpression50 bucket5 - Bucket0 --> Bucket1 & Bucket4 & Bucket5 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression19,List20,Lambda21,PgClassExpression22 bucket1 + Bucket0 --> Bucket1 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/large_bigint.issue491.sql b/postgraphile/postgraphile/__tests__/queries/v4/large_bigint.issue491.sql index 5ecfb1e1a6..0d39f04e93 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/large_bigint.issue491.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/large_bigint.issue491.sql @@ -2,9 +2,7 @@ select __large_node_id__."id"::text as "0", __large_node_id__."text" as "1" from "large_bigint"."large_node_id" as __large_node_id__ -where ( - __large_node_id__."id" = $1::"int8" -); +order by __large_node_id__."id" asc; select __large_node_id__."id"::text as "0", @@ -18,4 +16,6 @@ select __large_node_id__."id"::text as "0", __large_node_id__."text" as "1" from "large_bigint"."large_node_id" as __large_node_id__ -order by __large_node_id__."id" asc; \ No newline at end of file +where ( + __large_node_id__."id" = $1::"int8" +); \ No newline at end of file diff --git a/postgraphile/postgraphile/__tests__/queries/v4/longAliases.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/longAliases.mermaid index 9e785afee7..3f4547421f 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/longAliases.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/longAliases.mermaid @@ -9,13 +9,24 @@ graph TD %% plan dependencies - PgSelect7[["PgSelect[7∈0] ➊
ᐸpersonᐳ"]]:::plan + Connection24{{"Connection[24∈0] ➊
ᐸ21ᐳ"}}:::plan + PgSelect25[["PgSelect[25∈0] ➊
ᐸperson_friends(aggregate)ᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression23{{"PgFromExpression[23∈0] ➊"}}:::plan + Object10 & PgFromExpression23 & Connection24 --> PgSelect25 + Connection34{{"Connection[34∈0] ➊
ᐸ31ᐳ"}}:::plan + PgSelect35[["PgSelect[35∈0] ➊
ᐸperson_friends(aggregate)ᐳ"]]:::plan + Object10 & PgFromExpression23 & Connection34 --> PgSelect35 + PgSelect7[["PgSelect[7∈0] ➊
ᐸpersonᐳ"]]:::plan Constant40{{"Constant[40∈0] ➊
ᐸ'sara.smith@email.com'ᐳ"}}:::plan Object10 & Constant40 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + List16{{"List[16∈0] ➊
ᐸ14,15ᐳ"}}:::plan + Constant14{{"Constant[14∈0] ➊
ᐸ'people'ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant14 & PgClassExpression15 --> List16 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,49 +36,36 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸpersonᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant14{{"Constant[14∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Connection25{{"Connection[25∈0] ➊
ᐸ21ᐳ"}}:::plan - Connection34{{"Connection[34∈0] ➊
ᐸ32ᐳ"}}:::plan - PgSelect26[["PgSelect[26∈1] ➊
ᐸperson_friends(aggregate)ᐳ"]]:::plan - PgClassExpression20{{"PgClassExpression[20∈1] ➊
ᐸ__person__ᐳ"}}:::plan - Object10 & PgClassExpression20 & Connection25 --> PgSelect26 - PgSelect35[["PgSelect[35∈1] ➊
ᐸperson_friends(aggregate)ᐳ"]]:::plan - Object10 & PgClassExpression20 & Connection34 --> PgSelect35 - List16{{"List[16∈1] ➊
ᐸ14,15ᐳ"}}:::plan - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant14 & PgClassExpression15 --> List16 PgSelectSingle13 --> PgClassExpression15 - Lambda17{{"Lambda[17∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda17{{"Lambda[17∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List16 --> Lambda17 - PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈0] ➊
ᐸ__person__.”email”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression18 + PgClassExpression20{{"PgClassExpression[20∈0] ➊
ᐸ__person__ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression20 - First27{{"First[27∈1] ➊"}}:::plan - PgSelectRows28[["PgSelectRows[28∈1] ➊"]]:::plan - PgSelectRows28 --> First27 - PgSelect26 --> PgSelectRows28 - PgSelectSingle29{{"PgSelectSingle[29∈1] ➊
ᐸperson_friendsᐳ"}}:::plan - First27 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈1] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - First36{{"First[36∈1] ➊"}}:::plan - PgSelectRows37[["PgSelectRows[37∈1] ➊"]]:::plan + PgClassExpression20 --> PgFromExpression23 + First26{{"First[26∈0] ➊"}}:::plan + PgSelectRows27[["PgSelectRows[27∈0] ➊"]]:::plan + PgSelectRows27 --> First26 + PgSelect25 --> PgSelectRows27 + PgSelectSingle28{{"PgSelectSingle[28∈0] ➊
ᐸperson_friendsᐳ"}}:::plan + First26 --> PgSelectSingle28 + PgClassExpression29{{"PgClassExpression[29∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression29 + First36{{"First[36∈0] ➊"}}:::plan + PgSelectRows37[["PgSelectRows[37∈0] ➊"]]:::plan PgSelectRows37 --> First36 PgSelect35 --> PgSelectRows37 - PgSelectSingle38{{"PgSelectSingle[38∈1] ➊
ᐸperson_friendsᐳ"}}:::plan + PgSelectSingle38{{"PgSelectSingle[38∈0] ➊
ᐸperson_friendsᐳ"}}:::plan First36 --> PgSelectSingle38 - PgClassExpression39{{"PgClassExpression[39∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression39{{"PgClassExpression[39∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle38 --> PgClassExpression39 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/v4/longAliases" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 14, 25, 34, 40, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 14, 19, 40, 10, 24, 34
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 15, 16, 17, 18, 20, 23
4: PgSelect[25], PgSelect[35]
5: PgSelectRows[27], PgSelectRows[37]
ᐳ: 26, 28, 29, 36, 38, 39"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant14,Connection25,Connection34,Constant40 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 10, 25, 34

ROOT PgSelectSingleᐸpersonᐳ[13]
1:
ᐳ: 15, 18, 20, 16, 17
2: PgSelect[26], PgSelect[35]
3: PgSelectRows[28], PgSelectRows[37]
ᐳ: 27, 29, 30, 36, 38, 39"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression15,List16,Lambda17,PgClassExpression18,PgClassExpression20,PgSelect26,First27,PgSelectRows28,PgSelectSingle29,PgClassExpression30,PgSelect35,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant14,PgClassExpression15,List16,Lambda17,PgClassExpression18,PgClassExpression20,PgFromExpression23,Connection24,PgSelect25,First26,PgSelectRows27,PgSelectSingle28,PgClassExpression29,Connection34,PgSelect35,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,Constant40 bucket0 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/nested_arrays.select.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/nested_arrays.select.mermaid index 9a5618e80f..c16b8f904c 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/nested_arrays.select.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/nested_arrays.select.mermaid @@ -9,70 +9,64 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸtᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸtᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgFromExpression27{{"PgFromExpression[27∈0] ➊"}}:::plan + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸtᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸtᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__t__.”k”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__t__.”k”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__t__.”v”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__t__.”v”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression19 - PgSelect23[["PgSelect[23∈5]
ᐸfrmcdc_workHourᐳ"]]:::plan - __Item22[/"__Item[22∈5]
ᐸ19ᐳ"\]:::itemplan - Object12 & __Item22 --> PgSelect23 + PgSelect23[["PgSelect[23∈3]
ᐸfrmcdc_workHourᐳ"]]:::plan + __Item22[/"__Item[22∈3]
ᐸ19ᐳ"\]:::itemplan + Object11 & __Item22 & PgFromExpression27 --> PgSelect23 PgClassExpression19 ==> __Item22 - PgSelectRows27[["PgSelectRows[27∈5]"]]:::plan - PgSelect23 --> PgSelectRows27 - __Item28[/"__Item[28∈6]
ᐸ27ᐳ"\]:::itemplan - PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈6]
ᐸfrmcdc_workHourᐳ"}}:::plan - __Item28 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈6]
ᐸ__frmcdc_w...rom_hours”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression30 - PgClassExpression31{{"PgClassExpression[31∈6]
ᐸ__frmcdc_w...m_minutes”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈6]
ᐸ__frmcdc_w...”to_hours”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈6]
ᐸ__frmcdc_w...o_minutes”ᐳ"}}:::plan - PgSelectSingle29 --> PgClassExpression33 + PgSelectRows28[["PgSelectRows[28∈3]"]]:::plan + PgSelect23 --> PgSelectRows28 + __Item29[/"__Item[29∈4]
ᐸ28ᐳ"\]:::itemplan + PgSelectRows28 ==> __Item29 + PgSelectSingle30{{"PgSelectSingle[30∈4]
ᐸfrmcdc_workHourᐳ"}}:::plan + __Item29 --> PgSelectSingle30 + PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__frmcdc_w...rom_hours”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression31 + PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__frmcdc_w...m_minutes”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__frmcdc_w...”to_hours”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__frmcdc_w...o_minutes”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression34 %% define steps subgraph "Buckets for queries/v4/nested_arrays.select" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 27, 11, 12
2: PgSelect[14]
3: PgSelectRows[15]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,PgFromExpression27 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 27

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 12

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 12

ROOT PgSelectSingle{2}ᐸtᐳ[17]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19 bucket1 + Bucket3("Bucket 3 (listItem)
Deps: 11, 27

ROOT __Item{3}ᐸ19ᐳ[22]
1: PgSelect[23]
2: PgSelectRows[28]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19 bucket3 - Bucket5("Bucket 5 (listItem)
Deps: 12

ROOT __Item{5}ᐸ19ᐳ[22]
1: PgSelect[23]
2: PgSelectRows[27]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item22,PgSelect23,PgSelectRows27 bucket5 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ27ᐳ[28]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,__Item28,PgSelectSingle29,PgClassExpression30,PgClassExpression31,PgClassExpression32,PgClassExpression33 bucket6 + class Bucket3,__Item22,PgSelect23,PgSelectRows28 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ28ᐳ[29]"):::bucket + classDef bucket4 stroke:#0000ff + class Bucket4,__Item29,PgSelectSingle30,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34 bucket4 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket5 - Bucket5 --> Bucket6 + Bucket1 --> Bucket3 + Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/network_types.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/network_types.mermaid index 7f7c01c3df..b7b3ff0e6c 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/network_types.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/network_types.mermaid @@ -9,222 +9,215 @@ graph TD %% plan dependencies - Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access12 & Access13 --> Object14 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access12 - __Value2 --> Access13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Connection60{{"Connection[60∈0] ➊
ᐸ58ᐳ"}}:::plan - Connection105{{"Connection[105∈0] ➊
ᐸ103ᐳ"}}:::plan + PgSelect17[["PgSelect[17∈0] ➊
ᐸnetwork+1ᐳ"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + ApplyInput16{{"ApplyInput[16∈0] ➊"}}:::plan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + ApplyInput16 -->|rejectNull| PgSelect17 + Object13 & Connection14 --> PgSelect17 + PgSelect62[["PgSelect[62∈0] ➊
ᐸnetwork+1ᐳ"]]:::plan + ApplyInput61{{"ApplyInput[61∈0] ➊"}}:::plan + Connection59{{"Connection[59∈0] ➊
ᐸ57ᐳ"}}:::plan + ApplyInput61 -->|rejectNull| PgSelect62 + Object13 & Connection59 --> PgSelect62 + PgSelect107[["PgSelect[107∈0] ➊
ᐸnetwork+1ᐳ"]]:::plan + ApplyInput106{{"ApplyInput[106∈0] ➊"}}:::plan + Connection104{{"Connection[104∈0] ➊
ᐸ102ᐳ"}}:::plan + ApplyInput106 -->|rejectNull| PgSelect107 + Object13 & Connection104 --> PgSelect107 + Object37{{"Object[37∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access32{{"Access[32∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Access32 --> Object37 + Object82{{"Object[82∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access77{{"Access[77∈0] ➊
ᐸ62.hasMoreᐳ"}}:::plan + Access77 --> Object82 + Object127{{"Object[127∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access122{{"Access[122∈0] ➊
ᐸ107.hasMoreᐳ"}}:::plan + Access122 --> Object127 + Object33{{"Object[33∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access32 --> Object33 + PgSelect39[["PgSelect[39∈0] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan + ApplyInput16 -->|rejectNull| PgSelect39 + Object13 & Connection14 --> PgSelect39 + Object78{{"Object[78∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access77 --> Object78 + PgSelect84[["PgSelect[84∈0] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan + ApplyInput61 -->|rejectNull| PgSelect84 + Object13 & Connection59 --> PgSelect84 + Object123{{"Object[123∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access122 --> Object123 + PgSelect129[["PgSelect[129∈0] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan + ApplyInput106 -->|rejectNull| PgSelect129 + Object13 & Connection104 --> PgSelect129 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan Constant144{{"Constant[144∈0] ➊
ᐸ'192.168.0.0'ᐳ"}}:::plan + Constant144 --> __InputObject8 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 + PgCursor24{{"PgCursor[24∈0] ➊"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈0] ➊
ᐸnetworkᐳ"}}:::plan + Access23{{"Access[23∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle22 & Access23 --> PgCursor24 + PgCursor30{{"PgCursor[30∈0] ➊"}}:::plan + PgSelectSingle28{{"PgSelectSingle[28∈0] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle28 & Access23 --> PgCursor30 + __InputObject55{{"__InputObject[55∈0] ➊"}}:::plan Constant145{{"Constant[145∈0] ➊
ᐸ'192.168.0.0/16'ᐳ"}}:::plan + Constant145 --> __InputObject55 + PgCursor69{{"PgCursor[69∈0] ➊"}}:::plan + PgSelectSingle67{{"PgSelectSingle[67∈0] ➊
ᐸnetworkᐳ"}}:::plan + Access68{{"Access[68∈0] ➊
ᐸ62.cursorDetailsᐳ"}}:::plan + PgSelectSingle67 & Access68 --> PgCursor69 + PgCursor75{{"PgCursor[75∈0] ➊"}}:::plan + PgSelectSingle73{{"PgSelectSingle[73∈0] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle73 & Access68 --> PgCursor75 + __InputObject100{{"__InputObject[100∈0] ➊"}}:::plan Constant146{{"Constant[146∈0] ➊
ᐸ'08:00:2b:01:02:03'ᐳ"}}:::plan - Object37{{"Object[37∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access32{{"Access[32∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access32 --> Object37 - PgSelect16[["PgSelect[16∈1] ➊
ᐸnetwork+1ᐳ"]]:::plan - Object14 & Constant144 & Connection15 --> PgSelect16 - Object33{{"Object[33∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access32 --> Object33 - PgSelect39[["PgSelect[39∈1] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan - Object14 & Constant144 & Connection15 --> PgSelect39 - PgCursor23{{"PgCursor[23∈1] ➊"}}:::plan - PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸnetworkᐳ"}}:::plan - Access22{{"Access[22∈1] ➊
ᐸ16.cursorDetailsᐳ"}}:::plan - PgSelectSingle21 & Access22 --> PgCursor23 - PgCursor29{{"PgCursor[29∈1] ➊"}}:::plan - PgSelectSingle27{{"PgSelectSingle[27∈1] ➊
ᐸnetworkᐳ"}}:::plan - PgSelectSingle27 & Access22 --> PgCursor29 - PgPageInfo17{{"PgPageInfo[17∈1] ➊"}}:::plan - Connection15 --> PgPageInfo17 - First19{{"First[19∈1] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect16 --> PgSelectRows20 - First19 --> PgSelectSingle21 - PgSelect16 --> Access22 - Last25{{"Last[25∈1] ➊"}}:::plan - PgSelectRows20 --> Last25 - Last25 --> PgSelectSingle27 - PgSelect16 --> Access32 - Lambda34{{"Lambda[34∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant146 --> __InputObject100 + PgCursor114{{"PgCursor[114∈0] ➊"}}:::plan + PgSelectSingle112{{"PgSelectSingle[112∈0] ➊
ᐸnetworkᐳ"}}:::plan + Access113{{"Access[113∈0] ➊
ᐸ107.cursorDetailsᐳ"}}:::plan + PgSelectSingle112 & Access113 --> PgCursor114 + PgCursor120{{"PgCursor[120∈0] ➊"}}:::plan + PgSelectSingle118{{"PgSelectSingle[118∈0] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle118 & Access113 --> PgCursor120 + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access11 + __Value2 --> Access12 + __InputObject8 --> ApplyInput16 + PgPageInfo18{{"PgPageInfo[18∈0] ➊"}}:::plan + Connection14 --> PgPageInfo18 + First20{{"First[20∈0] ➊"}}:::plan + PgSelectRows21[["PgSelectRows[21∈0] ➊"]]:::plan + PgSelectRows21 --> First20 + PgSelect17 --> PgSelectRows21 + First20 --> PgSelectSingle22 + PgSelect17 --> Access23 + Last26{{"Last[26∈0] ➊"}}:::plan + PgSelectRows21 --> Last26 + Last26 --> PgSelectSingle28 + PgSelect17 --> Access32 + Lambda34{{"Lambda[34∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object33 --> Lambda34 - Lambda38{{"Lambda[38∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda38{{"Lambda[38∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object37 --> Lambda38 - First40{{"First[40∈1] ➊"}}:::plan - PgSelectRows41[["PgSelectRows[41∈1] ➊"]]:::plan + First40{{"First[40∈0] ➊"}}:::plan + PgSelectRows41[["PgSelectRows[41∈0] ➊"]]:::plan PgSelectRows41 --> First40 PgSelect39 --> PgSelectRows41 - PgSelectSingle42{{"PgSelectSingle[42∈1] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle42{{"PgSelectSingle[42∈0] ➊
ᐸnetworkᐳ"}}:::plan First40 --> PgSelectSingle42 - PgClassExpression43{{"PgClassExpression[43∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression43{{"PgClassExpression[43∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle42 --> PgClassExpression43 - __Item46[/"__Item[46∈2]
ᐸ20ᐳ"\]:::itemplan - PgSelectRows20 ==> __Item46 - PgSelectSingle47{{"PgSelectSingle[47∈2]
ᐸnetworkᐳ"}}:::plan - __Item46 --> PgSelectSingle47 - PgCursor49{{"PgCursor[49∈3]"}}:::plan - PgSelectSingle47 & Access22 --> PgCursor49 - PgClassExpression50{{"PgClassExpression[50∈3]
ᐸ__network__.”id”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression50 - PgClassExpression51{{"PgClassExpression[51∈3]
ᐸ__network__.”inet”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈3]
ᐸ__network__.”cidr”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈3]
ᐸ__network__.”macaddr”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression53 - Object82{{"Object[82∈4] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access77{{"Access[77∈4] ➊
ᐸ61.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access77 --> Object82 - PgSelect61[["PgSelect[61∈4] ➊
ᐸnetwork+1ᐳ"]]:::plan - Object14 & Constant145 & Connection60 --> PgSelect61 - Object78{{"Object[78∈4] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access77 --> Object78 - PgSelect84[["PgSelect[84∈4] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan - Object14 & Constant145 & Connection60 --> PgSelect84 - PgCursor68{{"PgCursor[68∈4] ➊"}}:::plan - PgSelectSingle66{{"PgSelectSingle[66∈4] ➊
ᐸnetworkᐳ"}}:::plan - Access67{{"Access[67∈4] ➊
ᐸ61.cursorDetailsᐳ"}}:::plan - PgSelectSingle66 & Access67 --> PgCursor68 - PgCursor74{{"PgCursor[74∈4] ➊"}}:::plan - PgSelectSingle72{{"PgSelectSingle[72∈4] ➊
ᐸnetworkᐳ"}}:::plan - PgSelectSingle72 & Access67 --> PgCursor74 - PgPageInfo62{{"PgPageInfo[62∈4] ➊"}}:::plan - Connection60 --> PgPageInfo62 - First64{{"First[64∈4] ➊"}}:::plan - PgSelectRows65[["PgSelectRows[65∈4] ➊"]]:::plan - PgSelectRows65 --> First64 - PgSelect61 --> PgSelectRows65 - First64 --> PgSelectSingle66 - PgSelect61 --> Access67 - Last70{{"Last[70∈4] ➊"}}:::plan - PgSelectRows65 --> Last70 - Last70 --> PgSelectSingle72 - PgSelect61 --> Access77 - Lambda79{{"Lambda[79∈4] ➊
ᐸhasNextPageCbᐳ"}}:::plan + __InputObject55 --> ApplyInput61 + PgPageInfo63{{"PgPageInfo[63∈0] ➊"}}:::plan + Connection59 --> PgPageInfo63 + First65{{"First[65∈0] ➊"}}:::plan + PgSelectRows66[["PgSelectRows[66∈0] ➊"]]:::plan + PgSelectRows66 --> First65 + PgSelect62 --> PgSelectRows66 + First65 --> PgSelectSingle67 + PgSelect62 --> Access68 + Last71{{"Last[71∈0] ➊"}}:::plan + PgSelectRows66 --> Last71 + Last71 --> PgSelectSingle73 + PgSelect62 --> Access77 + Lambda79{{"Lambda[79∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object78 --> Lambda79 - Lambda83{{"Lambda[83∈4] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda83{{"Lambda[83∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object82 --> Lambda83 - First85{{"First[85∈4] ➊"}}:::plan - PgSelectRows86[["PgSelectRows[86∈4] ➊"]]:::plan + First85{{"First[85∈0] ➊"}}:::plan + PgSelectRows86[["PgSelectRows[86∈0] ➊"]]:::plan PgSelectRows86 --> First85 PgSelect84 --> PgSelectRows86 - PgSelectSingle87{{"PgSelectSingle[87∈4] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle87{{"PgSelectSingle[87∈0] ➊
ᐸnetworkᐳ"}}:::plan First85 --> PgSelectSingle87 - PgClassExpression88{{"PgClassExpression[88∈4] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression88{{"PgClassExpression[88∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle87 --> PgClassExpression88 - __Item91[/"__Item[91∈5]
ᐸ65ᐳ"\]:::itemplan - PgSelectRows65 ==> __Item91 - PgSelectSingle92{{"PgSelectSingle[92∈5]
ᐸnetworkᐳ"}}:::plan - __Item91 --> PgSelectSingle92 - PgCursor94{{"PgCursor[94∈6]"}}:::plan - PgSelectSingle92 & Access67 --> PgCursor94 - PgClassExpression95{{"PgClassExpression[95∈6]
ᐸ__network__.”id”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression95 - PgClassExpression96{{"PgClassExpression[96∈6]
ᐸ__network__.”inet”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression96 - PgClassExpression97{{"PgClassExpression[97∈6]
ᐸ__network__.”cidr”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression97 - PgClassExpression98{{"PgClassExpression[98∈6]
ᐸ__network__.”macaddr”ᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression98 - Object127{{"Object[127∈7] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access122{{"Access[122∈7] ➊
ᐸ106.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access122 --> Object127 - PgSelect106[["PgSelect[106∈7] ➊
ᐸnetwork+1ᐳ"]]:::plan - Object14 & Constant146 & Connection105 --> PgSelect106 - Object123{{"Object[123∈7] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access122 --> Object123 - PgSelect129[["PgSelect[129∈7] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan - Object14 & Constant146 & Connection105 --> PgSelect129 - PgCursor113{{"PgCursor[113∈7] ➊"}}:::plan - PgSelectSingle111{{"PgSelectSingle[111∈7] ➊
ᐸnetworkᐳ"}}:::plan - Access112{{"Access[112∈7] ➊
ᐸ106.cursorDetailsᐳ"}}:::plan - PgSelectSingle111 & Access112 --> PgCursor113 - PgCursor119{{"PgCursor[119∈7] ➊"}}:::plan - PgSelectSingle117{{"PgSelectSingle[117∈7] ➊
ᐸnetworkᐳ"}}:::plan - PgSelectSingle117 & Access112 --> PgCursor119 - PgPageInfo107{{"PgPageInfo[107∈7] ➊"}}:::plan - Connection105 --> PgPageInfo107 - First109{{"First[109∈7] ➊"}}:::plan - PgSelectRows110[["PgSelectRows[110∈7] ➊"]]:::plan - PgSelectRows110 --> First109 - PgSelect106 --> PgSelectRows110 - First109 --> PgSelectSingle111 - PgSelect106 --> Access112 - Last115{{"Last[115∈7] ➊"}}:::plan - PgSelectRows110 --> Last115 - Last115 --> PgSelectSingle117 - PgSelect106 --> Access122 - Lambda124{{"Lambda[124∈7] ➊
ᐸhasNextPageCbᐳ"}}:::plan + __InputObject100 --> ApplyInput106 + PgPageInfo108{{"PgPageInfo[108∈0] ➊"}}:::plan + Connection104 --> PgPageInfo108 + First110{{"First[110∈0] ➊"}}:::plan + PgSelectRows111[["PgSelectRows[111∈0] ➊"]]:::plan + PgSelectRows111 --> First110 + PgSelect107 --> PgSelectRows111 + First110 --> PgSelectSingle112 + PgSelect107 --> Access113 + Last116{{"Last[116∈0] ➊"}}:::plan + PgSelectRows111 --> Last116 + Last116 --> PgSelectSingle118 + PgSelect107 --> Access122 + Lambda124{{"Lambda[124∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object123 --> Lambda124 - Lambda128{{"Lambda[128∈7] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda128{{"Lambda[128∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object127 --> Lambda128 - First130{{"First[130∈7] ➊"}}:::plan - PgSelectRows131[["PgSelectRows[131∈7] ➊"]]:::plan + First130{{"First[130∈0] ➊"}}:::plan + PgSelectRows131[["PgSelectRows[131∈0] ➊"]]:::plan PgSelectRows131 --> First130 PgSelect129 --> PgSelectRows131 - PgSelectSingle132{{"PgSelectSingle[132∈7] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle132{{"PgSelectSingle[132∈0] ➊
ᐸnetworkᐳ"}}:::plan First130 --> PgSelectSingle132 - PgClassExpression133{{"PgClassExpression[133∈7] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression133{{"PgClassExpression[133∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle132 --> PgClassExpression133 - __Item136[/"__Item[136∈8]
ᐸ110ᐳ"\]:::itemplan - PgSelectRows110 ==> __Item136 - PgSelectSingle137{{"PgSelectSingle[137∈8]
ᐸnetworkᐳ"}}:::plan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor49{{"PgCursor[49∈1]"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈1]
ᐸnetworkᐳ"}}:::plan + PgSelectSingle47 & Access23 --> PgCursor49 + __Item46[/"__Item[46∈1]
ᐸ21ᐳ"\]:::itemplan + PgSelectRows21 ==> __Item46 + __Item46 --> PgSelectSingle47 + PgClassExpression50{{"PgClassExpression[50∈1]
ᐸ__network__.”id”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression50 + PgClassExpression51{{"PgClassExpression[51∈1]
ᐸ__network__.”inet”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression51 + PgClassExpression52{{"PgClassExpression[52∈1]
ᐸ__network__.”cidr”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression52 + PgClassExpression53{{"PgClassExpression[53∈1]
ᐸ__network__.”macaddr”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression53 + PgCursor94{{"PgCursor[94∈2]"}}:::plan + PgSelectSingle92{{"PgSelectSingle[92∈2]
ᐸnetworkᐳ"}}:::plan + PgSelectSingle92 & Access68 --> PgCursor94 + __Item91[/"__Item[91∈2]
ᐸ66ᐳ"\]:::itemplan + PgSelectRows66 ==> __Item91 + __Item91 --> PgSelectSingle92 + PgClassExpression95{{"PgClassExpression[95∈2]
ᐸ__network__.”id”ᐳ"}}:::plan + PgSelectSingle92 --> PgClassExpression95 + PgClassExpression96{{"PgClassExpression[96∈2]
ᐸ__network__.”inet”ᐳ"}}:::plan + PgSelectSingle92 --> PgClassExpression96 + PgClassExpression97{{"PgClassExpression[97∈2]
ᐸ__network__.”cidr”ᐳ"}}:::plan + PgSelectSingle92 --> PgClassExpression97 + PgClassExpression98{{"PgClassExpression[98∈2]
ᐸ__network__.”macaddr”ᐳ"}}:::plan + PgSelectSingle92 --> PgClassExpression98 + PgCursor139{{"PgCursor[139∈3]"}}:::plan + PgSelectSingle137{{"PgSelectSingle[137∈3]
ᐸnetworkᐳ"}}:::plan + PgSelectSingle137 & Access113 --> PgCursor139 + __Item136[/"__Item[136∈3]
ᐸ111ᐳ"\]:::itemplan + PgSelectRows111 ==> __Item136 __Item136 --> PgSelectSingle137 - PgCursor139{{"PgCursor[139∈9]"}}:::plan - PgSelectSingle137 & Access112 --> PgCursor139 - PgClassExpression140{{"PgClassExpression[140∈9]
ᐸ__network__.”id”ᐳ"}}:::plan + PgClassExpression140{{"PgClassExpression[140∈3]
ᐸ__network__.”id”ᐳ"}}:::plan PgSelectSingle137 --> PgClassExpression140 - PgClassExpression141{{"PgClassExpression[141∈9]
ᐸ__network__.”inet”ᐳ"}}:::plan + PgClassExpression141{{"PgClassExpression[141∈3]
ᐸ__network__.”inet”ᐳ"}}:::plan PgSelectSingle137 --> PgClassExpression141 - PgClassExpression142{{"PgClassExpression[142∈9]
ᐸ__network__.”cidr”ᐳ"}}:::plan + PgClassExpression142{{"PgClassExpression[142∈3]
ᐸ__network__.”cidr”ᐳ"}}:::plan PgSelectSingle137 --> PgClassExpression142 - PgClassExpression143{{"PgClassExpression[143∈9]
ᐸ__network__.”macaddr”ᐳ"}}:::plan + PgClassExpression143{{"PgClassExpression[143∈3]
ᐸ__network__.”macaddr”ᐳ"}}:::plan PgSelectSingle137 --> PgClassExpression143 %% define steps subgraph "Buckets for queries/v4/network_types" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 11, 12, 144, 145, 146, 8, 13, 14, 16, 18, 55, 59, 61, 63, 100, 104, 106, 108
2: 17, 39, 62, 84, 107, 129
ᐳ: 23, 32, 33, 34, 37, 38, 68, 77, 78, 79, 82, 83, 113, 122, 123, 124, 127, 128
3: 21, 41, 66, 86, 111, 131
ᐳ: 20, 22, 24, 26, 28, 30, 40, 42, 43, 65, 67, 69, 71, 73, 75, 85, 87, 88, 110, 112, 114, 116, 118, 120, 130, 132, 133"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access12,Access13,Object14,Connection15,Connection60,Connection105,Constant144,Constant145,Constant146 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 144, 15, 6

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[16], PgSelect[39]
ᐳ: 17, 22, 32, 33, 34, 37, 38
2: PgSelectRows[20], PgSelectRows[41]
ᐳ: 19, 21, 23, 25, 27, 29, 40, 42, 43"):::bucket + class Bucket0,__Value2,__Value4,__InputObject8,Access11,Access12,Object13,Connection14,ApplyInput16,PgSelect17,PgPageInfo18,First20,PgSelectRows21,PgSelectSingle22,Access23,PgCursor24,Last26,PgSelectSingle28,PgCursor30,Access32,Object33,Lambda34,Object37,Lambda38,PgSelect39,First40,PgSelectRows41,PgSelectSingle42,PgClassExpression43,__InputObject55,Connection59,ApplyInput61,PgSelect62,PgPageInfo63,First65,PgSelectRows66,PgSelectSingle67,Access68,PgCursor69,Last71,PgSelectSingle73,PgCursor75,Access77,Object78,Lambda79,Object82,Lambda83,PgSelect84,First85,PgSelectRows86,PgSelectSingle87,PgClassExpression88,__InputObject100,Connection104,ApplyInput106,PgSelect107,PgPageInfo108,First110,PgSelectRows111,PgSelectSingle112,Access113,PgCursor114,Last116,PgSelectSingle118,PgCursor120,Access122,Object123,Lambda124,Object127,Lambda128,PgSelect129,First130,PgSelectRows131,PgSelectSingle132,PgClassExpression133,Constant144,Constant145,Constant146 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 23

ROOT __Item{1}ᐸ21ᐳ[46]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgPageInfo17,First19,PgSelectRows20,PgSelectSingle21,Access22,PgCursor23,Last25,PgSelectSingle27,PgCursor29,Access32,Object33,Lambda34,Object37,Lambda38,PgSelect39,First40,PgSelectRows41,PgSelectSingle42,PgClassExpression43 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 22

ROOT __Item{2}ᐸ20ᐳ[46]"):::bucket + class Bucket1,__Item46,PgSelectSingle47,PgCursor49,PgClassExpression50,PgClassExpression51,PgClassExpression52,PgClassExpression53 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 68

ROOT __Item{2}ᐸ66ᐳ[91]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item46,PgSelectSingle47 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 47, 22

ROOT PgSelectSingle{2}ᐸnetworkᐳ[47]"):::bucket + class Bucket2,__Item91,PgSelectSingle92,PgCursor94,PgClassExpression95,PgClassExpression96,PgClassExpression97,PgClassExpression98 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 113

ROOT __Item{3}ᐸ111ᐳ[136]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor49,PgClassExpression50,PgClassExpression51,PgClassExpression52,PgClassExpression53 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 14, 145, 60, 6

ROOT Connectionᐸ58ᐳ[60]
1: PgSelect[61], PgSelect[84]
ᐳ: 62, 67, 77, 78, 79, 82, 83
2: PgSelectRows[65], PgSelectRows[86]
ᐳ: 64, 66, 68, 70, 72, 74, 85, 87, 88"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect61,PgPageInfo62,First64,PgSelectRows65,PgSelectSingle66,Access67,PgCursor68,Last70,PgSelectSingle72,PgCursor74,Access77,Object78,Lambda79,Object82,Lambda83,PgSelect84,First85,PgSelectRows86,PgSelectSingle87,PgClassExpression88 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 67

ROOT __Item{5}ᐸ65ᐳ[91]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item91,PgSelectSingle92 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 92, 67

ROOT PgSelectSingle{5}ᐸnetworkᐳ[92]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgCursor94,PgClassExpression95,PgClassExpression96,PgClassExpression97,PgClassExpression98 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 14, 146, 105, 6

ROOT Connectionᐸ103ᐳ[105]
1: PgSelect[106], PgSelect[129]
ᐳ: 107, 112, 122, 123, 124, 127, 128
2: PgSelectRows[110], PgSelectRows[131]
ᐳ: 109, 111, 113, 115, 117, 119, 130, 132, 133"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgSelect106,PgPageInfo107,First109,PgSelectRows110,PgSelectSingle111,Access112,PgCursor113,Last115,PgSelectSingle117,PgCursor119,Access122,Object123,Lambda124,Object127,Lambda128,PgSelect129,First130,PgSelectRows131,PgSelectSingle132,PgClassExpression133 bucket7 - Bucket8("Bucket 8 (listItem)
Deps: 112

ROOT __Item{8}ᐸ110ᐳ[136]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,__Item136,PgSelectSingle137 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 137, 112

ROOT PgSelectSingle{8}ᐸnetworkᐳ[137]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgCursor139,PgClassExpression140,PgClassExpression141,PgClassExpression142,PgClassExpression143 bucket9 - Bucket0 --> Bucket1 & Bucket4 & Bucket7 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 + class Bucket3,__Item136,PgSelectSingle137,PgCursor139,PgClassExpression140,PgClassExpression141,PgClassExpression142,PgClassExpression143 bucket3 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/node.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/node.mermaid index 14df43bfe1..e0a7e2bf05 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/node.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/node.mermaid @@ -9,83 +9,126 @@ graph TD %% plan dependencies - PgSelect1345[["PgSelect[1345∈0] ➊
ᐸcompound_keyᐳ"]]:::plan - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access1341{{"Access[1341∈0] ➊
ᐸ1340.1ᐳ"}}:::plan - Access1343{{"Access[1343∈0] ➊
ᐸ1340.2ᐳ"}}:::plan - Object12 -->|rejectNull| PgSelect1345 - Access1341 -->|rejectNull| PgSelect1345 - Access1343 --> PgSelect1345 - PgSelect1361[["PgSelect[1361∈0] ➊
ᐸcompound_keyᐳ"]]:::plan - Access1357{{"Access[1357∈0] ➊
ᐸ1356.1ᐳ"}}:::plan - Access1359{{"Access[1359∈0] ➊
ᐸ1356.2ᐳ"}}:::plan - Object12 -->|rejectNull| PgSelect1361 - Access1357 -->|rejectNull| PgSelect1361 - Access1359 --> PgSelect1361 - PgSelect1377[["PgSelect[1377∈0] ➊
ᐸcompound_keyᐳ"]]:::plan - Access1373{{"Access[1373∈0] ➊
ᐸ1372.1ᐳ"}}:::plan - Access1375{{"Access[1375∈0] ➊
ᐸ1372.2ᐳ"}}:::plan - Object12 -->|rejectNull| PgSelect1377 - Access1373 -->|rejectNull| PgSelect1377 - Access1375 --> PgSelect1377 - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸpersonᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect28[["PgSelect[28∈0] ➊
ᐸcompound_keyᐳ"]]:::plan + Connection26{{"Connection[26∈0] ➊
ᐸ24ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect28 + Connection26 --> PgSelect28 + PgSelect1343[["PgSelect[1343∈0] ➊
ᐸcompound_keyᐳ"]]:::plan + Access1339{{"Access[1339∈0] ➊
ᐸ1338.1ᐳ"}}:::plan + Access1341{{"Access[1341∈0] ➊
ᐸ1338.2ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect1343 + Access1339 -->|rejectNull| PgSelect1343 + Access1341 --> PgSelect1343 + List1351{{"List[1351∈0] ➊
ᐸ32,1349,1350ᐳ"}}:::plan + Constant32{{"Constant[32∈0] ➊
ᐸ'compound_keys'ᐳ"}}:::plan + PgClassExpression1349{{"PgClassExpression[1349∈0] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression1350{{"PgClassExpression[1350∈0] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Constant32 & PgClassExpression1349 & PgClassExpression1350 --> List1351 + PgSelect1359[["PgSelect[1359∈0] ➊
ᐸcompound_keyᐳ"]]:::plan + Access1355{{"Access[1355∈0] ➊
ᐸ1354.1ᐳ"}}:::plan + Access1357{{"Access[1357∈0] ➊
ᐸ1354.2ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect1359 + Access1355 -->|rejectNull| PgSelect1359 + Access1357 --> PgSelect1359 + List1366{{"List[1366∈0] ➊
ᐸ32,1364,1365ᐳ"}}:::plan + PgClassExpression1364{{"PgClassExpression[1364∈0] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression1365{{"PgClassExpression[1365∈0] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Constant32 & PgClassExpression1364 & PgClassExpression1365 --> List1366 + PgSelect1374[["PgSelect[1374∈0] ➊
ᐸcompound_keyᐳ"]]:::plan + Access1370{{"Access[1370∈0] ➊
ᐸ1369.1ᐳ"}}:::plan + Access1372{{"Access[1372∈0] ➊
ᐸ1369.2ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect1374 + Access1370 -->|rejectNull| PgSelect1374 + Access1372 --> PgSelect1374 + List1381{{"List[1381∈0] ➊
ᐸ32,1379,1380ᐳ"}}:::plan + PgClassExpression1379{{"PgClassExpression[1379∈0] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression1380{{"PgClassExpression[1380∈0] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Constant32 & PgClassExpression1379 & PgClassExpression1380 --> List1381 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 PgSelect1301[["PgSelect[1301∈0] ➊
ᐸpersonᐳ"]]:::plan Access1299{{"Access[1299∈0] ➊
ᐸ1298.1ᐳ"}}:::plan - Object12 -->|rejectNull| PgSelect1301 + Object11 -->|rejectNull| PgSelect1301 Access1299 --> PgSelect1301 + List1308{{"List[1308∈0] ➊
ᐸ18,1307ᐳ"}}:::plan + Constant18{{"Constant[18∈0] ➊
ᐸ'people'ᐳ"}}:::plan + PgClassExpression1307{{"PgClassExpression[1307∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant18 & PgClassExpression1307 --> List1308 PgSelect1315[["PgSelect[1315∈0] ➊
ᐸpersonᐳ"]]:::plan Access1313{{"Access[1313∈0] ➊
ᐸ1312.1ᐳ"}}:::plan - Object12 -->|rejectNull| PgSelect1315 + Object11 -->|rejectNull| PgSelect1315 Access1313 --> PgSelect1315 - PgSelect1329[["PgSelect[1329∈0] ➊
ᐸpersonᐳ"]]:::plan - Access1327{{"Access[1327∈0] ➊
ᐸ1326.1ᐳ"}}:::plan - Object12 -->|rejectNull| PgSelect1329 - Access1327 --> PgSelect1329 - PgSelect1811[["PgSelect[1811∈0] ➊
ᐸsimilar_table_1ᐳ"]]:::plan - Access1809{{"Access[1809∈0] ➊
ᐸ1808.1ᐳ"}}:::plan - Object12 -->|rejectNull| PgSelect1811 - Access1809 --> PgSelect1811 - PgSelect1827[["PgSelect[1827∈0] ➊
ᐸsimilar_table_2ᐳ"]]:::plan - Access1825{{"Access[1825∈0] ➊
ᐸ1824.1ᐳ"}}:::plan - Object12 -->|rejectNull| PgSelect1827 - Access1825 --> PgSelect1827 + List1321{{"List[1321∈0] ➊
ᐸ18,1320ᐳ"}}:::plan + PgClassExpression1320{{"PgClassExpression[1320∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant18 & PgClassExpression1320 --> List1321 + PgSelect1328[["PgSelect[1328∈0] ➊
ᐸpersonᐳ"]]:::plan + Access1326{{"Access[1326∈0] ➊
ᐸ1325.1ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect1328 + Access1326 --> PgSelect1328 + List1334{{"List[1334∈0] ➊
ᐸ18,1333ᐳ"}}:::plan + PgClassExpression1333{{"PgClassExpression[1333∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant18 & PgClassExpression1333 --> List1334 + PgSelect1807[["PgSelect[1807∈0] ➊
ᐸsimilar_table_1ᐳ"]]:::plan + Access1805{{"Access[1805∈0] ➊
ᐸ1804.1ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect1807 + Access1805 --> PgSelect1807 + List1814{{"List[1814∈0] ➊
ᐸ197,1813ᐳ"}}:::plan + Constant197{{"Constant[197∈0] ➊
ᐸ'similar_table_1S'ᐳ"}}:::plan + PgClassExpression1813{{"PgClassExpression[1813∈0] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan + Constant197 & PgClassExpression1813 --> List1814 + PgSelect1823[["PgSelect[1823∈0] ➊
ᐸsimilar_table_2ᐳ"]]:::plan + Access1821{{"Access[1821∈0] ➊
ᐸ1820.1ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect1823 + Access1821 --> PgSelect1823 + List1830{{"List[1830∈0] ➊
ᐸ210,1829ᐳ"}}:::plan + Constant210{{"Constant[210∈0] ➊
ᐸ'similar_table_2S'ᐳ"}}:::plan + PgClassExpression1829{{"PgClassExpression[1829∈0] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan + Constant210 & PgClassExpression1829 --> List1830 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan + PgSelect14 --> PgSelectRows15 + PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan + PgSelect28 --> PgSelectRows29 Node38{{"Node[38∈0] ➊"}}:::plan Lambda39{{"Lambda[39∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan Lambda39 --> Node38 - Constant1841{{"Constant[1841∈0] ➊
ᐸ'WyJjb21wb3VuZF9rZXlzIiwyLDNd'ᐳ"}}:::plan - Constant1841 --> Lambda39 + Constant1837{{"Constant[1837∈0] ➊
ᐸ'WyJjb21wb3VuZF9rZXlzIiwyLDNd'ᐳ"}}:::plan + Constant1837 --> Lambda39 Node248{{"Node[248∈0] ➊"}}:::plan Lambda249{{"Lambda[249∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan Lambda249 --> Node248 - Constant1844{{"Constant[1844∈0] ➊
ᐸ'WyJwZW9wbGUiLDJd'ᐳ"}}:::plan - Constant1844 --> Lambda249 + Constant1840{{"Constant[1840∈0] ➊
ᐸ'WyJwZW9wbGUiLDJd'ᐳ"}}:::plan + Constant1840 --> Lambda249 Node458{{"Node[458∈0] ➊"}}:::plan Lambda459{{"Lambda[459∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan Lambda459 --> Node458 - Constant1847{{"Constant[1847∈0] ➊
ᐸ'WyJjb21wb3VuZF9rZXlzIiwxLDJd'ᐳ"}}:::plan - Constant1847 --> Lambda459 + Constant1843{{"Constant[1843∈0] ➊
ᐸ'WyJjb21wb3VuZF9rZXlzIiwxLDJd'ᐳ"}}:::plan + Constant1843 --> Lambda459 Node668{{"Node[668∈0] ➊"}}:::plan Lambda669{{"Lambda[669∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan Lambda669 --> Node668 - Constant1850{{"Constant[1850∈0] ➊
ᐸ'WyJwZW9wbGUiLDVd'ᐳ"}}:::plan - Constant1850 --> Lambda669 + Constant1846{{"Constant[1846∈0] ➊
ᐸ'WyJwZW9wbGUiLDVd'ᐳ"}}:::plan + Constant1846 --> Lambda669 Node878{{"Node[878∈0] ➊"}}:::plan Lambda879{{"Lambda[879∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan Lambda879 --> Node878 - Constant1853{{"Constant[1853∈0] ➊
ᐸ'WyJwZW9wbGUiLDUwMF0='ᐳ"}}:::plan - Constant1853 --> Lambda879 + Constant1849{{"Constant[1849∈0] ➊
ᐸ'WyJwZW9wbGUiLDUwMF0='ᐳ"}}:::plan + Constant1849 --> Lambda879 Node1088{{"Node[1088∈0] ➊"}}:::plan Lambda1089{{"Lambda[1089∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan Lambda1089 --> Node1088 - Constant1856{{"Constant[1856∈0] ➊
ᐸ'WyJjb21wb3VuZF9rZXlzIiwxMDAsMjAwXQ=='ᐳ"}}:::plan - Constant1856 --> Lambda1089 + Constant1852{{"Constant[1852∈0] ➊
ᐸ'WyJjb21wb3VuZF9rZXlzIiwxMDAsMjAwXQ=='ᐳ"}}:::plan + Constant1852 --> Lambda1089 Lambda1298{{"Lambda[1298∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Constant1844 --> Lambda1298 + Constant1840 --> Lambda1298 Lambda1298 --> Access1299 First1303{{"First[1303∈0] ➊"}}:::plan PgSelectRows1304[["PgSelectRows[1304∈0] ➊"]]:::plan @@ -93,8 +136,13 @@ graph TD PgSelect1301 --> PgSelectRows1304 PgSelectSingle1305{{"PgSelectSingle[1305∈0] ➊
ᐸpersonᐳ"}}:::plan First1303 --> PgSelectSingle1305 + PgSelectSingle1305 --> PgClassExpression1307 + Lambda1309{{"Lambda[1309∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1308 --> Lambda1309 + PgClassExpression1310{{"PgClassExpression[1310∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle1305 --> PgClassExpression1310 Lambda1312{{"Lambda[1312∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Constant1850 --> Lambda1312 + Constant1846 --> Lambda1312 Lambda1312 --> Access1313 First1317{{"First[1317∈0] ➊"}}:::plan PgSelectRows1318[["PgSelectRows[1318∈0] ➊"]]:::plan @@ -102,78 +150,114 @@ graph TD PgSelect1315 --> PgSelectRows1318 PgSelectSingle1319{{"PgSelectSingle[1319∈0] ➊
ᐸpersonᐳ"}}:::plan First1317 --> PgSelectSingle1319 - Lambda1326{{"Lambda[1326∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Constant1853 --> Lambda1326 - Lambda1326 --> Access1327 - First1331{{"First[1331∈0] ➊"}}:::plan - PgSelectRows1332[["PgSelectRows[1332∈0] ➊"]]:::plan - PgSelectRows1332 --> First1331 - PgSelect1329 --> PgSelectRows1332 - PgSelectSingle1333{{"PgSelectSingle[1333∈0] ➊
ᐸpersonᐳ"}}:::plan - First1331 --> PgSelectSingle1333 - Lambda1340{{"Lambda[1340∈0] ➊
ᐸspecifier_CompoundKey_base64JSONᐳ"}}:::plan - Constant1841 --> Lambda1340 - Lambda1340 --> Access1341 - Lambda1340 --> Access1343 - First1347{{"First[1347∈0] ➊"}}:::plan - PgSelectRows1348[["PgSelectRows[1348∈0] ➊"]]:::plan - PgSelectRows1348 --> First1347 - PgSelect1345 --> PgSelectRows1348 - PgSelectSingle1349{{"PgSelectSingle[1349∈0] ➊
ᐸcompound_keyᐳ"}}:::plan - First1347 --> PgSelectSingle1349 - Lambda1356{{"Lambda[1356∈0] ➊
ᐸspecifier_CompoundKey_base64JSONᐳ"}}:::plan - Constant1847 --> Lambda1356 - Lambda1356 --> Access1357 - Lambda1356 --> Access1359 - First1363{{"First[1363∈0] ➊"}}:::plan - PgSelectRows1364[["PgSelectRows[1364∈0] ➊"]]:::plan - PgSelectRows1364 --> First1363 - PgSelect1361 --> PgSelectRows1364 - PgSelectSingle1365{{"PgSelectSingle[1365∈0] ➊
ᐸcompound_keyᐳ"}}:::plan - First1363 --> PgSelectSingle1365 - Lambda1372{{"Lambda[1372∈0] ➊
ᐸspecifier_CompoundKey_base64JSONᐳ"}}:::plan - Constant1856 --> Lambda1372 - Lambda1372 --> Access1373 - Lambda1372 --> Access1375 - First1379{{"First[1379∈0] ➊"}}:::plan - PgSelectRows1380[["PgSelectRows[1380∈0] ➊"]]:::plan - PgSelectRows1380 --> First1379 - PgSelect1377 --> PgSelectRows1380 - PgSelectSingle1381{{"PgSelectSingle[1381∈0] ➊
ᐸcompound_keyᐳ"}}:::plan - First1379 --> PgSelectSingle1381 - Node1388{{"Node[1388∈0] ➊"}}:::plan - Lambda1389{{"Lambda[1389∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Lambda1389 --> Node1388 - Constant1859{{"Constant[1859∈0] ➊
ᐸ'WyJzaW1pbGFyX3RhYmxlXzFTIiwyXQ=='ᐳ"}}:::plan - Constant1859 --> Lambda1389 - Node1598{{"Node[1598∈0] ➊"}}:::plan - Lambda1599{{"Lambda[1599∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Lambda1599 --> Node1598 - Constant1862{{"Constant[1862∈0] ➊
ᐸ'WyJzaW1pbGFyX3RhYmxlXzJTIiwyXQ=='ᐳ"}}:::plan - Constant1862 --> Lambda1599 - Lambda1808{{"Lambda[1808∈0] ➊
ᐸspecifier_SimilarTable1_base64JSONᐳ"}}:::plan - Constant1859 --> Lambda1808 - Lambda1808 --> Access1809 - First1813{{"First[1813∈0] ➊"}}:::plan - PgSelectRows1814[["PgSelectRows[1814∈0] ➊"]]:::plan - PgSelectRows1814 --> First1813 - PgSelect1811 --> PgSelectRows1814 - PgSelectSingle1815{{"PgSelectSingle[1815∈0] ➊
ᐸsimilar_table_1ᐳ"}}:::plan - First1813 --> PgSelectSingle1815 - Lambda1824{{"Lambda[1824∈0] ➊
ᐸspecifier_SimilarTable2_base64JSONᐳ"}}:::plan - Constant1862 --> Lambda1824 - Lambda1824 --> Access1825 - First1829{{"First[1829∈0] ➊"}}:::plan - PgSelectRows1830[["PgSelectRows[1830∈0] ➊"]]:::plan - PgSelectRows1830 --> First1829 - PgSelect1827 --> PgSelectRows1830 - PgSelectSingle1831{{"PgSelectSingle[1831∈0] ➊
ᐸsimilar_table_2ᐳ"}}:::plan - First1829 --> PgSelectSingle1831 + PgSelectSingle1319 --> PgClassExpression1320 + Lambda1322{{"Lambda[1322∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1321 --> Lambda1322 + PgClassExpression1323{{"PgClassExpression[1323∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle1319 --> PgClassExpression1323 + Lambda1325{{"Lambda[1325∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan + Constant1849 --> Lambda1325 + Lambda1325 --> Access1326 + First1330{{"First[1330∈0] ➊"}}:::plan + PgSelectRows1331[["PgSelectRows[1331∈0] ➊"]]:::plan + PgSelectRows1331 --> First1330 + PgSelect1328 --> PgSelectRows1331 + PgSelectSingle1332{{"PgSelectSingle[1332∈0] ➊
ᐸpersonᐳ"}}:::plan + First1330 --> PgSelectSingle1332 + PgSelectSingle1332 --> PgClassExpression1333 + Lambda1335{{"Lambda[1335∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1334 --> Lambda1335 + PgClassExpression1336{{"PgClassExpression[1336∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle1332 --> PgClassExpression1336 + Lambda1338{{"Lambda[1338∈0] ➊
ᐸspecifier_CompoundKey_base64JSONᐳ"}}:::plan + Constant1837 --> Lambda1338 + Lambda1338 --> Access1339 + Lambda1338 --> Access1341 + First1345{{"First[1345∈0] ➊"}}:::plan + PgSelectRows1346[["PgSelectRows[1346∈0] ➊"]]:::plan + PgSelectRows1346 --> First1345 + PgSelect1343 --> PgSelectRows1346 + PgSelectSingle1347{{"PgSelectSingle[1347∈0] ➊
ᐸcompound_keyᐳ"}}:::plan + First1345 --> PgSelectSingle1347 + PgSelectSingle1347 --> PgClassExpression1349 + PgSelectSingle1347 --> PgClassExpression1350 + Lambda1352{{"Lambda[1352∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1351 --> Lambda1352 + Lambda1354{{"Lambda[1354∈0] ➊
ᐸspecifier_CompoundKey_base64JSONᐳ"}}:::plan + Constant1843 --> Lambda1354 + Lambda1354 --> Access1355 + Lambda1354 --> Access1357 + First1361{{"First[1361∈0] ➊"}}:::plan + PgSelectRows1362[["PgSelectRows[1362∈0] ➊"]]:::plan + PgSelectRows1362 --> First1361 + PgSelect1359 --> PgSelectRows1362 + PgSelectSingle1363{{"PgSelectSingle[1363∈0] ➊
ᐸcompound_keyᐳ"}}:::plan + First1361 --> PgSelectSingle1363 + PgSelectSingle1363 --> PgClassExpression1364 + PgSelectSingle1363 --> PgClassExpression1365 + Lambda1367{{"Lambda[1367∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1366 --> Lambda1367 + Lambda1369{{"Lambda[1369∈0] ➊
ᐸspecifier_CompoundKey_base64JSONᐳ"}}:::plan + Constant1852 --> Lambda1369 + Lambda1369 --> Access1370 + Lambda1369 --> Access1372 + First1376{{"First[1376∈0] ➊"}}:::plan + PgSelectRows1377[["PgSelectRows[1377∈0] ➊"]]:::plan + PgSelectRows1377 --> First1376 + PgSelect1374 --> PgSelectRows1377 + PgSelectSingle1378{{"PgSelectSingle[1378∈0] ➊
ᐸcompound_keyᐳ"}}:::plan + First1376 --> PgSelectSingle1378 + PgSelectSingle1378 --> PgClassExpression1379 + PgSelectSingle1378 --> PgClassExpression1380 + Lambda1382{{"Lambda[1382∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1381 --> Lambda1382 + Node1384{{"Node[1384∈0] ➊"}}:::plan + Lambda1385{{"Lambda[1385∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan + Lambda1385 --> Node1384 + Constant1855{{"Constant[1855∈0] ➊
ᐸ'WyJzaW1pbGFyX3RhYmxlXzFTIiwyXQ=='ᐳ"}}:::plan + Constant1855 --> Lambda1385 + Node1594{{"Node[1594∈0] ➊"}}:::plan + Lambda1595{{"Lambda[1595∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan + Lambda1595 --> Node1594 + Constant1858{{"Constant[1858∈0] ➊
ᐸ'WyJzaW1pbGFyX3RhYmxlXzJTIiwyXQ=='ᐳ"}}:::plan + Constant1858 --> Lambda1595 + Lambda1804{{"Lambda[1804∈0] ➊
ᐸspecifier_SimilarTable1_base64JSONᐳ"}}:::plan + Constant1855 --> Lambda1804 + Lambda1804 --> Access1805 + First1809{{"First[1809∈0] ➊"}}:::plan + PgSelectRows1810[["PgSelectRows[1810∈0] ➊"]]:::plan + PgSelectRows1810 --> First1809 + PgSelect1807 --> PgSelectRows1810 + PgSelectSingle1811{{"PgSelectSingle[1811∈0] ➊
ᐸsimilar_table_1ᐳ"}}:::plan + First1809 --> PgSelectSingle1811 + PgSelectSingle1811 --> PgClassExpression1813 + Lambda1815{{"Lambda[1815∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1814 --> Lambda1815 + PgClassExpression1816{{"PgClassExpression[1816∈0] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan + PgSelectSingle1811 --> PgClassExpression1816 + PgClassExpression1817{{"PgClassExpression[1817∈0] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan + PgSelectSingle1811 --> PgClassExpression1817 + PgClassExpression1818{{"PgClassExpression[1818∈0] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan + PgSelectSingle1811 --> PgClassExpression1818 + Lambda1820{{"Lambda[1820∈0] ➊
ᐸspecifier_SimilarTable2_base64JSONᐳ"}}:::plan + Constant1858 --> Lambda1820 + Lambda1820 --> Access1821 + First1825{{"First[1825∈0] ➊"}}:::plan + PgSelectRows1826[["PgSelectRows[1826∈0] ➊"]]:::plan + PgSelectRows1826 --> First1825 + PgSelect1823 --> PgSelectRows1826 + PgSelectSingle1827{{"PgSelectSingle[1827∈0] ➊
ᐸsimilar_table_2ᐳ"}}:::plan + First1825 --> PgSelectSingle1827 + PgSelectSingle1827 --> PgClassExpression1829 + Lambda1831{{"Lambda[1831∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1830 --> Lambda1831 + PgClassExpression1832{{"PgClassExpression[1832∈0] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan + PgSelectSingle1827 --> PgClassExpression1832 + PgClassExpression1833{{"PgClassExpression[1833∈0] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan + PgSelectSingle1827 --> PgClassExpression1833 + PgClassExpression1834{{"PgClassExpression[1834∈0] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan + PgSelectSingle1827 --> PgClassExpression1834 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Constant18{{"Constant[18∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Connection27{{"Connection[27∈0] ➊
ᐸ25ᐳ"}}:::plan - Constant32{{"Constant[32∈0] ➊
ᐸ'compound_keys'ᐳ"}}:::plan Constant41{{"Constant[41∈0] ➊
ᐸ'query'ᐳ"}}:::plan Constant53{{"Constant[53∈0] ➊
ᐸ'inputs'ᐳ"}}:::plan Constant63{{"Constant[63∈0] ➊
ᐸ'patchs'ᐳ"}}:::plan @@ -187,2655 +271,2533 @@ graph TD Constant167{{"Constant[167∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan Constant177{{"Constant[177∈0] ➊
ᐸ'my_tables'ᐳ"}}:::plan Constant187{{"Constant[187∈0] ➊
ᐸ'view_tables'ᐳ"}}:::plan - Constant197{{"Constant[197∈0] ➊
ᐸ'similar_table_1S'ᐳ"}}:::plan - Constant210{{"Constant[210∈0] ➊
ᐸ'similar_table_2S'ᐳ"}}:::plan Constant223{{"Constant[223∈0] ➊
ᐸ'null_test_records'ᐳ"}}:::plan Constant233{{"Constant[233∈0] ➊
ᐸ'issue756S'ᐳ"}}:::plan Constant243{{"Constant[243∈0] ➊
ᐸ'lists'ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸpersonᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan - PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + List20{{"List[20∈1]
ᐸ18,19ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + Constant18 & PgClassExpression19 --> List20 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸpersonᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸpersonᐳ"}}:::plan __Item16 --> PgSelectSingle17 - List20{{"List[20∈3]
ᐸ18,19ᐳ"}}:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__person__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression19 --> List20 PgSelectSingle17 --> PgClassExpression19 - Lambda21{{"Lambda[21∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda21{{"Lambda[21∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan List20 --> Lambda21 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression22 - PgSelect28[["PgSelect[28∈4] ➊
ᐸcompound_keyᐳ"]]:::plan - Object12 & Connection27 --> PgSelect28 - PgSelectRows29[["PgSelectRows[29∈4] ➊"]]:::plan - PgSelect28 --> PgSelectRows29 - __Item30[/"__Item[30∈5]
ᐸ29ᐳ"\]:::itemplan + List35{{"List[35∈2]
ᐸ32,33,34ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Constant32 & PgClassExpression33 & PgClassExpression34 --> List35 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan PgSelectRows29 ==> __Item30 - PgSelectSingle31{{"PgSelectSingle[31∈5]
ᐸcompound_keyᐳ"}}:::plan + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸcompound_keyᐳ"}}:::plan __Item30 --> PgSelectSingle31 - List35{{"List[35∈6]
ᐸ32,33,34ᐳ"}}:::plan - PgClassExpression33{{"PgClassExpression[33∈6]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression34{{"PgClassExpression[34∈6]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Constant32 & PgClassExpression33 & PgClassExpression34 --> List35 PgSelectSingle31 --> PgClassExpression33 PgSelectSingle31 --> PgClassExpression34 - Lambda36{{"Lambda[36∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda36{{"Lambda[36∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan List35 --> Lambda36 - PgSelect110[["PgSelect[110∈7] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan - Access1839{{"Access[1839∈7] ➊
ᐸ39.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan - Access1840{{"Access[1840∈7] ➊
ᐸ39.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan - Object12 -->|rejectNull| PgSelect110 - Access1839 -->|rejectNull| PgSelect110 - Access1840 --> PgSelect110 - List118{{"List[118∈7] ➊
ᐸ32,116,117ᐳ
ᐳCompoundKey"}}:::plan - PgClassExpression116{{"PgClassExpression[116∈7] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression117{{"PgClassExpression[117∈7] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelect110[["PgSelect[110∈3] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan + Access1835{{"Access[1835∈3] ➊
ᐸ39.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan + Access1836{{"Access[1836∈3] ➊
ᐸ39.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan + Object11 -->|rejectNull| PgSelect110 + Access1835 -->|rejectNull| PgSelect110 + Access1836 --> PgSelect110 + List118{{"List[118∈3] ➊
ᐸ32,116,117ᐳ
ᐳCompoundKey"}}:::plan + PgClassExpression116{{"PgClassExpression[116∈3] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression117{{"PgClassExpression[117∈3] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan Constant32 & PgClassExpression116 & PgClassExpression117 --> List118 - PgSelect46[["PgSelect[46∈7] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan - Object12 -->|rejectNull| PgSelect46 - Access1839 --> PgSelect46 - List55{{"List[55∈7] ➊
ᐸ53,54ᐳ
ᐳInput"}}:::plan - PgClassExpression54{{"PgClassExpression[54∈7] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan + PgSelect46[["PgSelect[46∈3] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan + Object11 -->|rejectNull| PgSelect46 + Access1835 --> PgSelect46 + List55{{"List[55∈3] ➊
ᐸ53,54ᐳ
ᐳInput"}}:::plan + PgClassExpression54{{"PgClassExpression[54∈3] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan Constant53 & PgClassExpression54 --> List55 - PgSelect58[["PgSelect[58∈7] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan - Object12 -->|rejectNull| PgSelect58 - Access1839 --> PgSelect58 - List65{{"List[65∈7] ➊
ᐸ63,64ᐳ
ᐳPatch"}}:::plan - PgClassExpression64{{"PgClassExpression[64∈7] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan + PgSelect58[["PgSelect[58∈3] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan + Object11 -->|rejectNull| PgSelect58 + Access1835 --> PgSelect58 + List65{{"List[65∈3] ➊
ᐸ63,64ᐳ
ᐳPatch"}}:::plan + PgClassExpression64{{"PgClassExpression[64∈3] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan Constant63 & PgClassExpression64 --> List65 - PgSelect68[["PgSelect[68∈7] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan - Object12 -->|rejectNull| PgSelect68 - Access1839 --> PgSelect68 - List75{{"List[75∈7] ➊
ᐸ73,74ᐳ
ᐳReserved"}}:::plan - PgClassExpression74{{"PgClassExpression[74∈7] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan + PgSelect68[["PgSelect[68∈3] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan + Object11 -->|rejectNull| PgSelect68 + Access1835 --> PgSelect68 + List75{{"List[75∈3] ➊
ᐸ73,74ᐳ
ᐳReserved"}}:::plan + PgClassExpression74{{"PgClassExpression[74∈3] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan Constant73 & PgClassExpression74 --> List75 - PgSelect78[["PgSelect[78∈7] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan - Object12 -->|rejectNull| PgSelect78 - Access1839 --> PgSelect78 - List85{{"List[85∈7] ➊
ᐸ83,84ᐳ
ᐳReservedPatchRecord"}}:::plan - PgClassExpression84{{"PgClassExpression[84∈7] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan + PgSelect78[["PgSelect[78∈3] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan + Object11 -->|rejectNull| PgSelect78 + Access1835 --> PgSelect78 + List85{{"List[85∈3] ➊
ᐸ83,84ᐳ
ᐳReservedPatchRecord"}}:::plan + PgClassExpression84{{"PgClassExpression[84∈3] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan Constant83 & PgClassExpression84 --> List85 - PgSelect88[["PgSelect[88∈7] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan - Object12 -->|rejectNull| PgSelect88 - Access1839 --> PgSelect88 - List95{{"List[95∈7] ➊
ᐸ93,94ᐳ
ᐳReservedInputRecord"}}:::plan - PgClassExpression94{{"PgClassExpression[94∈7] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan + PgSelect88[["PgSelect[88∈3] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan + Object11 -->|rejectNull| PgSelect88 + Access1835 --> PgSelect88 + List95{{"List[95∈3] ➊
ᐸ93,94ᐳ
ᐳReservedInputRecord"}}:::plan + PgClassExpression94{{"PgClassExpression[94∈3] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan Constant93 & PgClassExpression94 --> List95 - PgSelect98[["PgSelect[98∈7] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan - Object12 -->|rejectNull| PgSelect98 - Access1839 --> PgSelect98 - List105{{"List[105∈7] ➊
ᐸ103,104ᐳ
ᐳDefaultValue"}}:::plan - PgClassExpression104{{"PgClassExpression[104∈7] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan + PgSelect98[["PgSelect[98∈3] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan + Object11 -->|rejectNull| PgSelect98 + Access1835 --> PgSelect98 + List105{{"List[105∈3] ➊
ᐸ103,104ᐳ
ᐳDefaultValue"}}:::plan + PgClassExpression104{{"PgClassExpression[104∈3] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan Constant103 & PgClassExpression104 --> List105 - PgSelect121[["PgSelect[121∈7] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan - Object12 -->|rejectNull| PgSelect121 - Access1839 --> PgSelect121 - List128{{"List[128∈7] ➊
ᐸ18,127ᐳ
ᐳPerson"}}:::plan - PgClassExpression127{{"PgClassExpression[127∈7] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelect121[["PgSelect[121∈3] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan + Object11 -->|rejectNull| PgSelect121 + Access1835 --> PgSelect121 + List128{{"List[128∈3] ➊
ᐸ18,127ᐳ
ᐳPerson"}}:::plan + PgClassExpression127{{"PgClassExpression[127∈3] ➊
ᐸ__person__.”id”ᐳ"}}:::plan Constant18 & PgClassExpression127 --> List128 - PgSelect132[["PgSelect[132∈7] ➊
ᐸpostᐳ
ᐳPost"]]:::plan - Object12 -->|rejectNull| PgSelect132 - Access1839 --> PgSelect132 - List139{{"List[139∈7] ➊
ᐸ137,138ᐳ
ᐳPost"}}:::plan - PgClassExpression138{{"PgClassExpression[138∈7] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelect132[["PgSelect[132∈3] ➊
ᐸpostᐳ
ᐳPost"]]:::plan + Object11 -->|rejectNull| PgSelect132 + Access1835 --> PgSelect132 + List139{{"List[139∈3] ➊
ᐸ137,138ᐳ
ᐳPost"}}:::plan + PgClassExpression138{{"PgClassExpression[138∈3] ➊
ᐸ__post__.”id”ᐳ"}}:::plan Constant137 & PgClassExpression138 --> List139 - PgSelect142[["PgSelect[142∈7] ➊
ᐸtypesᐳ
ᐳType"]]:::plan - Object12 -->|rejectNull| PgSelect142 - Access1839 --> PgSelect142 - List149{{"List[149∈7] ➊
ᐸ147,148ᐳ
ᐳType"}}:::plan - PgClassExpression148{{"PgClassExpression[148∈7] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + PgSelect142[["PgSelect[142∈3] ➊
ᐸtypesᐳ
ᐳType"]]:::plan + Object11 -->|rejectNull| PgSelect142 + Access1835 --> PgSelect142 + List149{{"List[149∈3] ➊
ᐸ147,148ᐳ
ᐳType"}}:::plan + PgClassExpression148{{"PgClassExpression[148∈3] ➊
ᐸ__types__.”id”ᐳ"}}:::plan Constant147 & PgClassExpression148 --> List149 - PgSelect152[["PgSelect[152∈7] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan - Object12 -->|rejectNull| PgSelect152 - Access1839 --> PgSelect152 - List159{{"List[159∈7] ➊
ᐸ157,158ᐳ
ᐳPersonSecret"}}:::plan - PgClassExpression158{{"PgClassExpression[158∈7] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan + PgSelect152[["PgSelect[152∈3] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan + Object11 -->|rejectNull| PgSelect152 + Access1835 --> PgSelect152 + List159{{"List[159∈3] ➊
ᐸ157,158ᐳ
ᐳPersonSecret"}}:::plan + PgClassExpression158{{"PgClassExpression[158∈3] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan Constant157 & PgClassExpression158 --> List159 - PgSelect162[["PgSelect[162∈7] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan - Object12 -->|rejectNull| PgSelect162 - Access1839 --> PgSelect162 - List169{{"List[169∈7] ➊
ᐸ167,168ᐳ
ᐳLeftArm"}}:::plan - PgClassExpression168{{"PgClassExpression[168∈7] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + PgSelect162[["PgSelect[162∈3] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan + Object11 -->|rejectNull| PgSelect162 + Access1835 --> PgSelect162 + List169{{"List[169∈3] ➊
ᐸ167,168ᐳ
ᐳLeftArm"}}:::plan + PgClassExpression168{{"PgClassExpression[168∈3] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan Constant167 & PgClassExpression168 --> List169 - PgSelect172[["PgSelect[172∈7] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan - Object12 -->|rejectNull| PgSelect172 - Access1839 --> PgSelect172 - List179{{"List[179∈7] ➊
ᐸ177,178ᐳ
ᐳMyTable"}}:::plan - PgClassExpression178{{"PgClassExpression[178∈7] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan + PgSelect172[["PgSelect[172∈3] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan + Object11 -->|rejectNull| PgSelect172 + Access1835 --> PgSelect172 + List179{{"List[179∈3] ➊
ᐸ177,178ᐳ
ᐳMyTable"}}:::plan + PgClassExpression178{{"PgClassExpression[178∈3] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan Constant177 & PgClassExpression178 --> List179 - PgSelect182[["PgSelect[182∈7] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan - Object12 -->|rejectNull| PgSelect182 - Access1839 --> PgSelect182 - List189{{"List[189∈7] ➊
ᐸ187,188ᐳ
ᐳViewTable"}}:::plan - PgClassExpression188{{"PgClassExpression[188∈7] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan + PgSelect182[["PgSelect[182∈3] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan + Object11 -->|rejectNull| PgSelect182 + Access1835 --> PgSelect182 + List189{{"List[189∈3] ➊
ᐸ187,188ᐳ
ᐳViewTable"}}:::plan + PgClassExpression188{{"PgClassExpression[188∈3] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan Constant187 & PgClassExpression188 --> List189 - PgSelect192[["PgSelect[192∈7] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan - Object12 -->|rejectNull| PgSelect192 - Access1839 --> PgSelect192 - List199{{"List[199∈7] ➊
ᐸ197,198ᐳ
ᐳSimilarTable1"}}:::plan - PgClassExpression198{{"PgClassExpression[198∈7] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan + PgSelect192[["PgSelect[192∈3] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan + Object11 -->|rejectNull| PgSelect192 + Access1835 --> PgSelect192 + List199{{"List[199∈3] ➊
ᐸ197,198ᐳ
ᐳSimilarTable1"}}:::plan + PgClassExpression198{{"PgClassExpression[198∈3] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan Constant197 & PgClassExpression198 --> List199 - PgSelect205[["PgSelect[205∈7] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan - Object12 -->|rejectNull| PgSelect205 - Access1839 --> PgSelect205 - List212{{"List[212∈7] ➊
ᐸ210,211ᐳ
ᐳSimilarTable2"}}:::plan - PgClassExpression211{{"PgClassExpression[211∈7] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan + PgSelect205[["PgSelect[205∈3] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan + Object11 -->|rejectNull| PgSelect205 + Access1835 --> PgSelect205 + List212{{"List[212∈3] ➊
ᐸ210,211ᐳ
ᐳSimilarTable2"}}:::plan + PgClassExpression211{{"PgClassExpression[211∈3] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan Constant210 & PgClassExpression211 --> List212 - PgSelect218[["PgSelect[218∈7] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan - Object12 -->|rejectNull| PgSelect218 - Access1839 --> PgSelect218 - List225{{"List[225∈7] ➊
ᐸ223,224ᐳ
ᐳNullTestRecord"}}:::plan - PgClassExpression224{{"PgClassExpression[224∈7] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan + PgSelect218[["PgSelect[218∈3] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan + Object11 -->|rejectNull| PgSelect218 + Access1835 --> PgSelect218 + List225{{"List[225∈3] ➊
ᐸ223,224ᐳ
ᐳNullTestRecord"}}:::plan + PgClassExpression224{{"PgClassExpression[224∈3] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan Constant223 & PgClassExpression224 --> List225 - PgSelect228[["PgSelect[228∈7] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan - Object12 -->|rejectNull| PgSelect228 - Access1839 --> PgSelect228 - List235{{"List[235∈7] ➊
ᐸ233,234ᐳ
ᐳIssue756"}}:::plan - PgClassExpression234{{"PgClassExpression[234∈7] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan + PgSelect228[["PgSelect[228∈3] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan + Object11 -->|rejectNull| PgSelect228 + Access1835 --> PgSelect228 + List235{{"List[235∈3] ➊
ᐸ233,234ᐳ
ᐳIssue756"}}:::plan + PgClassExpression234{{"PgClassExpression[234∈3] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan Constant233 & PgClassExpression234 --> List235 - PgSelect238[["PgSelect[238∈7] ➊
ᐸlistsᐳ
ᐳList"]]:::plan - Object12 -->|rejectNull| PgSelect238 - Access1839 --> PgSelect238 - List245{{"List[245∈7] ➊
ᐸ243,244ᐳ
ᐳList"}}:::plan - PgClassExpression244{{"PgClassExpression[244∈7] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan + PgSelect238[["PgSelect[238∈3] ➊
ᐸlistsᐳ
ᐳList"]]:::plan + Object11 -->|rejectNull| PgSelect238 + Access1835 --> PgSelect238 + List245{{"List[245∈3] ➊
ᐸ243,244ᐳ
ᐳList"}}:::plan + PgClassExpression244{{"PgClassExpression[244∈3] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan Constant243 & PgClassExpression244 --> List245 - Lambda42{{"Lambda[42∈7] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan + Lambda42{{"Lambda[42∈3] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan Constant41 --> Lambda42 - First50{{"First[50∈7] ➊"}}:::plan - PgSelectRows51[["PgSelectRows[51∈7] ➊"]]:::plan + First50{{"First[50∈3] ➊"}}:::plan + PgSelectRows51[["PgSelectRows[51∈3] ➊"]]:::plan PgSelectRows51 --> First50 PgSelect46 --> PgSelectRows51 - PgSelectSingle52{{"PgSelectSingle[52∈7] ➊
ᐸinputsᐳ"}}:::plan + PgSelectSingle52{{"PgSelectSingle[52∈3] ➊
ᐸinputsᐳ"}}:::plan First50 --> PgSelectSingle52 PgSelectSingle52 --> PgClassExpression54 - Lambda56{{"Lambda[56∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda56{{"Lambda[56∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List55 --> Lambda56 - First60{{"First[60∈7] ➊"}}:::plan - PgSelectRows61[["PgSelectRows[61∈7] ➊"]]:::plan + First60{{"First[60∈3] ➊"}}:::plan + PgSelectRows61[["PgSelectRows[61∈3] ➊"]]:::plan PgSelectRows61 --> First60 PgSelect58 --> PgSelectRows61 - PgSelectSingle62{{"PgSelectSingle[62∈7] ➊
ᐸpatchsᐳ"}}:::plan + PgSelectSingle62{{"PgSelectSingle[62∈3] ➊
ᐸpatchsᐳ"}}:::plan First60 --> PgSelectSingle62 PgSelectSingle62 --> PgClassExpression64 - Lambda66{{"Lambda[66∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda66{{"Lambda[66∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List65 --> Lambda66 - First70{{"First[70∈7] ➊"}}:::plan - PgSelectRows71[["PgSelectRows[71∈7] ➊"]]:::plan + First70{{"First[70∈3] ➊"}}:::plan + PgSelectRows71[["PgSelectRows[71∈3] ➊"]]:::plan PgSelectRows71 --> First70 PgSelect68 --> PgSelectRows71 - PgSelectSingle72{{"PgSelectSingle[72∈7] ➊
ᐸreservedᐳ"}}:::plan + PgSelectSingle72{{"PgSelectSingle[72∈3] ➊
ᐸreservedᐳ"}}:::plan First70 --> PgSelectSingle72 PgSelectSingle72 --> PgClassExpression74 - Lambda76{{"Lambda[76∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda76{{"Lambda[76∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List75 --> Lambda76 - First80{{"First[80∈7] ➊"}}:::plan - PgSelectRows81[["PgSelectRows[81∈7] ➊"]]:::plan + First80{{"First[80∈3] ➊"}}:::plan + PgSelectRows81[["PgSelectRows[81∈3] ➊"]]:::plan PgSelectRows81 --> First80 PgSelect78 --> PgSelectRows81 - PgSelectSingle82{{"PgSelectSingle[82∈7] ➊
ᐸreservedPatchsᐳ"}}:::plan + PgSelectSingle82{{"PgSelectSingle[82∈3] ➊
ᐸreservedPatchsᐳ"}}:::plan First80 --> PgSelectSingle82 PgSelectSingle82 --> PgClassExpression84 - Lambda86{{"Lambda[86∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda86{{"Lambda[86∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List85 --> Lambda86 - First90{{"First[90∈7] ➊"}}:::plan - PgSelectRows91[["PgSelectRows[91∈7] ➊"]]:::plan + First90{{"First[90∈3] ➊"}}:::plan + PgSelectRows91[["PgSelectRows[91∈3] ➊"]]:::plan PgSelectRows91 --> First90 PgSelect88 --> PgSelectRows91 - PgSelectSingle92{{"PgSelectSingle[92∈7] ➊
ᐸreserved_inputᐳ"}}:::plan + PgSelectSingle92{{"PgSelectSingle[92∈3] ➊
ᐸreserved_inputᐳ"}}:::plan First90 --> PgSelectSingle92 PgSelectSingle92 --> PgClassExpression94 - Lambda96{{"Lambda[96∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda96{{"Lambda[96∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List95 --> Lambda96 - First100{{"First[100∈7] ➊"}}:::plan - PgSelectRows101[["PgSelectRows[101∈7] ➊"]]:::plan + First100{{"First[100∈3] ➊"}}:::plan + PgSelectRows101[["PgSelectRows[101∈3] ➊"]]:::plan PgSelectRows101 --> First100 PgSelect98 --> PgSelectRows101 - PgSelectSingle102{{"PgSelectSingle[102∈7] ➊
ᐸdefault_valueᐳ"}}:::plan + PgSelectSingle102{{"PgSelectSingle[102∈3] ➊
ᐸdefault_valueᐳ"}}:::plan First100 --> PgSelectSingle102 PgSelectSingle102 --> PgClassExpression104 - Lambda106{{"Lambda[106∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda106{{"Lambda[106∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List105 --> Lambda106 - First112{{"First[112∈7] ➊"}}:::plan - PgSelectRows113[["PgSelectRows[113∈7] ➊"]]:::plan + First112{{"First[112∈3] ➊"}}:::plan + PgSelectRows113[["PgSelectRows[113∈3] ➊"]]:::plan PgSelectRows113 --> First112 PgSelect110 --> PgSelectRows113 - PgSelectSingle114{{"PgSelectSingle[114∈7] ➊
ᐸcompound_keyᐳ"}}:::plan + PgSelectSingle114{{"PgSelectSingle[114∈3] ➊
ᐸcompound_keyᐳ"}}:::plan First112 --> PgSelectSingle114 PgSelectSingle114 --> PgClassExpression116 PgSelectSingle114 --> PgClassExpression117 - Lambda119{{"Lambda[119∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda119{{"Lambda[119∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List118 --> Lambda119 - First123{{"First[123∈7] ➊"}}:::plan - PgSelectRows124[["PgSelectRows[124∈7] ➊"]]:::plan + First123{{"First[123∈3] ➊"}}:::plan + PgSelectRows124[["PgSelectRows[124∈3] ➊"]]:::plan PgSelectRows124 --> First123 PgSelect121 --> PgSelectRows124 - PgSelectSingle125{{"PgSelectSingle[125∈7] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle125{{"PgSelectSingle[125∈3] ➊
ᐸpersonᐳ"}}:::plan First123 --> PgSelectSingle125 PgSelectSingle125 --> PgClassExpression127 - Lambda129{{"Lambda[129∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda129{{"Lambda[129∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List128 --> Lambda129 - PgClassExpression130{{"PgClassExpression[130∈7] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression130{{"PgClassExpression[130∈3] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle125 --> PgClassExpression130 - First134{{"First[134∈7] ➊"}}:::plan - PgSelectRows135[["PgSelectRows[135∈7] ➊"]]:::plan + First134{{"First[134∈3] ➊"}}:::plan + PgSelectRows135[["PgSelectRows[135∈3] ➊"]]:::plan PgSelectRows135 --> First134 PgSelect132 --> PgSelectRows135 - PgSelectSingle136{{"PgSelectSingle[136∈7] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle136{{"PgSelectSingle[136∈3] ➊
ᐸpostᐳ"}}:::plan First134 --> PgSelectSingle136 PgSelectSingle136 --> PgClassExpression138 - Lambda140{{"Lambda[140∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda140{{"Lambda[140∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List139 --> Lambda140 - First144{{"First[144∈7] ➊"}}:::plan - PgSelectRows145[["PgSelectRows[145∈7] ➊"]]:::plan + First144{{"First[144∈3] ➊"}}:::plan + PgSelectRows145[["PgSelectRows[145∈3] ➊"]]:::plan PgSelectRows145 --> First144 PgSelect142 --> PgSelectRows145 - PgSelectSingle146{{"PgSelectSingle[146∈7] ➊
ᐸtypesᐳ"}}:::plan + PgSelectSingle146{{"PgSelectSingle[146∈3] ➊
ᐸtypesᐳ"}}:::plan First144 --> PgSelectSingle146 PgSelectSingle146 --> PgClassExpression148 - Lambda150{{"Lambda[150∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda150{{"Lambda[150∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List149 --> Lambda150 - First154{{"First[154∈7] ➊"}}:::plan - PgSelectRows155[["PgSelectRows[155∈7] ➊"]]:::plan + First154{{"First[154∈3] ➊"}}:::plan + PgSelectRows155[["PgSelectRows[155∈3] ➊"]]:::plan PgSelectRows155 --> First154 PgSelect152 --> PgSelectRows155 - PgSelectSingle156{{"PgSelectSingle[156∈7] ➊
ᐸperson_secretᐳ"}}:::plan + PgSelectSingle156{{"PgSelectSingle[156∈3] ➊
ᐸperson_secretᐳ"}}:::plan First154 --> PgSelectSingle156 PgSelectSingle156 --> PgClassExpression158 - Lambda160{{"Lambda[160∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda160{{"Lambda[160∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List159 --> Lambda160 - First164{{"First[164∈7] ➊"}}:::plan - PgSelectRows165[["PgSelectRows[165∈7] ➊"]]:::plan + First164{{"First[164∈3] ➊"}}:::plan + PgSelectRows165[["PgSelectRows[165∈3] ➊"]]:::plan PgSelectRows165 --> First164 PgSelect162 --> PgSelectRows165 - PgSelectSingle166{{"PgSelectSingle[166∈7] ➊
ᐸleft_armᐳ"}}:::plan + PgSelectSingle166{{"PgSelectSingle[166∈3] ➊
ᐸleft_armᐳ"}}:::plan First164 --> PgSelectSingle166 PgSelectSingle166 --> PgClassExpression168 - Lambda170{{"Lambda[170∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda170{{"Lambda[170∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List169 --> Lambda170 - First174{{"First[174∈7] ➊"}}:::plan - PgSelectRows175[["PgSelectRows[175∈7] ➊"]]:::plan + First174{{"First[174∈3] ➊"}}:::plan + PgSelectRows175[["PgSelectRows[175∈3] ➊"]]:::plan PgSelectRows175 --> First174 PgSelect172 --> PgSelectRows175 - PgSelectSingle176{{"PgSelectSingle[176∈7] ➊
ᐸmy_tableᐳ"}}:::plan + PgSelectSingle176{{"PgSelectSingle[176∈3] ➊
ᐸmy_tableᐳ"}}:::plan First174 --> PgSelectSingle176 PgSelectSingle176 --> PgClassExpression178 - Lambda180{{"Lambda[180∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda180{{"Lambda[180∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List179 --> Lambda180 - First184{{"First[184∈7] ➊"}}:::plan - PgSelectRows185[["PgSelectRows[185∈7] ➊"]]:::plan + First184{{"First[184∈3] ➊"}}:::plan + PgSelectRows185[["PgSelectRows[185∈3] ➊"]]:::plan PgSelectRows185 --> First184 PgSelect182 --> PgSelectRows185 - PgSelectSingle186{{"PgSelectSingle[186∈7] ➊
ᐸview_tableᐳ"}}:::plan + PgSelectSingle186{{"PgSelectSingle[186∈3] ➊
ᐸview_tableᐳ"}}:::plan First184 --> PgSelectSingle186 PgSelectSingle186 --> PgClassExpression188 - Lambda190{{"Lambda[190∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda190{{"Lambda[190∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List189 --> Lambda190 - First194{{"First[194∈7] ➊"}}:::plan - PgSelectRows195[["PgSelectRows[195∈7] ➊"]]:::plan + First194{{"First[194∈3] ➊"}}:::plan + PgSelectRows195[["PgSelectRows[195∈3] ➊"]]:::plan PgSelectRows195 --> First194 PgSelect192 --> PgSelectRows195 - PgSelectSingle196{{"PgSelectSingle[196∈7] ➊
ᐸsimilar_table_1ᐳ"}}:::plan + PgSelectSingle196{{"PgSelectSingle[196∈3] ➊
ᐸsimilar_table_1ᐳ"}}:::plan First194 --> PgSelectSingle196 PgSelectSingle196 --> PgClassExpression198 - Lambda200{{"Lambda[200∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda200{{"Lambda[200∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List199 --> Lambda200 - PgClassExpression201{{"PgClassExpression[201∈7] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan + PgClassExpression201{{"PgClassExpression[201∈3] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan PgSelectSingle196 --> PgClassExpression201 - PgClassExpression202{{"PgClassExpression[202∈7] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan + PgClassExpression202{{"PgClassExpression[202∈3] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan PgSelectSingle196 --> PgClassExpression202 - PgClassExpression203{{"PgClassExpression[203∈7] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan + PgClassExpression203{{"PgClassExpression[203∈3] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan PgSelectSingle196 --> PgClassExpression203 - First207{{"First[207∈7] ➊"}}:::plan - PgSelectRows208[["PgSelectRows[208∈7] ➊"]]:::plan + First207{{"First[207∈3] ➊"}}:::plan + PgSelectRows208[["PgSelectRows[208∈3] ➊"]]:::plan PgSelectRows208 --> First207 PgSelect205 --> PgSelectRows208 - PgSelectSingle209{{"PgSelectSingle[209∈7] ➊
ᐸsimilar_table_2ᐳ"}}:::plan + PgSelectSingle209{{"PgSelectSingle[209∈3] ➊
ᐸsimilar_table_2ᐳ"}}:::plan First207 --> PgSelectSingle209 PgSelectSingle209 --> PgClassExpression211 - Lambda213{{"Lambda[213∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda213{{"Lambda[213∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List212 --> Lambda213 - PgClassExpression214{{"PgClassExpression[214∈7] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan + PgClassExpression214{{"PgClassExpression[214∈3] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan PgSelectSingle209 --> PgClassExpression214 - PgClassExpression215{{"PgClassExpression[215∈7] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan + PgClassExpression215{{"PgClassExpression[215∈3] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan PgSelectSingle209 --> PgClassExpression215 - PgClassExpression216{{"PgClassExpression[216∈7] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan + PgClassExpression216{{"PgClassExpression[216∈3] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan PgSelectSingle209 --> PgClassExpression216 - First220{{"First[220∈7] ➊"}}:::plan - PgSelectRows221[["PgSelectRows[221∈7] ➊"]]:::plan + First220{{"First[220∈3] ➊"}}:::plan + PgSelectRows221[["PgSelectRows[221∈3] ➊"]]:::plan PgSelectRows221 --> First220 PgSelect218 --> PgSelectRows221 - PgSelectSingle222{{"PgSelectSingle[222∈7] ➊
ᐸnull_test_recordᐳ"}}:::plan + PgSelectSingle222{{"PgSelectSingle[222∈3] ➊
ᐸnull_test_recordᐳ"}}:::plan First220 --> PgSelectSingle222 PgSelectSingle222 --> PgClassExpression224 - Lambda226{{"Lambda[226∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda226{{"Lambda[226∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List225 --> Lambda226 - First230{{"First[230∈7] ➊"}}:::plan - PgSelectRows231[["PgSelectRows[231∈7] ➊"]]:::plan + First230{{"First[230∈3] ➊"}}:::plan + PgSelectRows231[["PgSelectRows[231∈3] ➊"]]:::plan PgSelectRows231 --> First230 PgSelect228 --> PgSelectRows231 - PgSelectSingle232{{"PgSelectSingle[232∈7] ➊
ᐸissue756ᐳ"}}:::plan + PgSelectSingle232{{"PgSelectSingle[232∈3] ➊
ᐸissue756ᐳ"}}:::plan First230 --> PgSelectSingle232 PgSelectSingle232 --> PgClassExpression234 - Lambda236{{"Lambda[236∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda236{{"Lambda[236∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List235 --> Lambda236 - First240{{"First[240∈7] ➊"}}:::plan - PgSelectRows241[["PgSelectRows[241∈7] ➊"]]:::plan + First240{{"First[240∈3] ➊"}}:::plan + PgSelectRows241[["PgSelectRows[241∈3] ➊"]]:::plan PgSelectRows241 --> First240 PgSelect238 --> PgSelectRows241 - PgSelectSingle242{{"PgSelectSingle[242∈7] ➊
ᐸlistsᐳ"}}:::plan + PgSelectSingle242{{"PgSelectSingle[242∈3] ➊
ᐸlistsᐳ"}}:::plan First240 --> PgSelectSingle242 PgSelectSingle242 --> PgClassExpression244 - Lambda246{{"Lambda[246∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda246{{"Lambda[246∈3] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List245 --> Lambda246 - Lambda39 --> Access1839 - Lambda39 --> Access1840 - PgSelect320[["PgSelect[320∈8] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan - Access1842{{"Access[1842∈8] ➊
ᐸ249.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan - Access1843{{"Access[1843∈8] ➊
ᐸ249.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan - Object12 -->|rejectNull| PgSelect320 - Access1842 -->|rejectNull| PgSelect320 - Access1843 --> PgSelect320 - List328{{"List[328∈8] ➊
ᐸ32,326,327ᐳ
ᐳCompoundKey"}}:::plan - PgClassExpression326{{"PgClassExpression[326∈8] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression327{{"PgClassExpression[327∈8] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Lambda39 --> Access1835 + Lambda39 --> Access1836 + PgSelect320[["PgSelect[320∈4] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan + Access1838{{"Access[1838∈4] ➊
ᐸ249.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan + Access1839{{"Access[1839∈4] ➊
ᐸ249.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan + Object11 -->|rejectNull| PgSelect320 + Access1838 -->|rejectNull| PgSelect320 + Access1839 --> PgSelect320 + List328{{"List[328∈4] ➊
ᐸ32,326,327ᐳ
ᐳCompoundKey"}}:::plan + PgClassExpression326{{"PgClassExpression[326∈4] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression327{{"PgClassExpression[327∈4] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan Constant32 & PgClassExpression326 & PgClassExpression327 --> List328 - PgSelect256[["PgSelect[256∈8] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan - Object12 -->|rejectNull| PgSelect256 - Access1842 --> PgSelect256 - List265{{"List[265∈8] ➊
ᐸ53,264ᐳ
ᐳInput"}}:::plan - PgClassExpression264{{"PgClassExpression[264∈8] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan + PgSelect256[["PgSelect[256∈4] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan + Object11 -->|rejectNull| PgSelect256 + Access1838 --> PgSelect256 + List265{{"List[265∈4] ➊
ᐸ53,264ᐳ
ᐳInput"}}:::plan + PgClassExpression264{{"PgClassExpression[264∈4] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan Constant53 & PgClassExpression264 --> List265 - PgSelect268[["PgSelect[268∈8] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan - Object12 -->|rejectNull| PgSelect268 - Access1842 --> PgSelect268 - List275{{"List[275∈8] ➊
ᐸ63,274ᐳ
ᐳPatch"}}:::plan - PgClassExpression274{{"PgClassExpression[274∈8] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan + PgSelect268[["PgSelect[268∈4] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan + Object11 -->|rejectNull| PgSelect268 + Access1838 --> PgSelect268 + List275{{"List[275∈4] ➊
ᐸ63,274ᐳ
ᐳPatch"}}:::plan + PgClassExpression274{{"PgClassExpression[274∈4] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan Constant63 & PgClassExpression274 --> List275 - PgSelect278[["PgSelect[278∈8] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan - Object12 -->|rejectNull| PgSelect278 - Access1842 --> PgSelect278 - List285{{"List[285∈8] ➊
ᐸ73,284ᐳ
ᐳReserved"}}:::plan - PgClassExpression284{{"PgClassExpression[284∈8] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan + PgSelect278[["PgSelect[278∈4] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan + Object11 -->|rejectNull| PgSelect278 + Access1838 --> PgSelect278 + List285{{"List[285∈4] ➊
ᐸ73,284ᐳ
ᐳReserved"}}:::plan + PgClassExpression284{{"PgClassExpression[284∈4] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan Constant73 & PgClassExpression284 --> List285 - PgSelect288[["PgSelect[288∈8] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan - Object12 -->|rejectNull| PgSelect288 - Access1842 --> PgSelect288 - List295{{"List[295∈8] ➊
ᐸ83,294ᐳ
ᐳReservedPatchRecord"}}:::plan - PgClassExpression294{{"PgClassExpression[294∈8] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan + PgSelect288[["PgSelect[288∈4] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan + Object11 -->|rejectNull| PgSelect288 + Access1838 --> PgSelect288 + List295{{"List[295∈4] ➊
ᐸ83,294ᐳ
ᐳReservedPatchRecord"}}:::plan + PgClassExpression294{{"PgClassExpression[294∈4] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan Constant83 & PgClassExpression294 --> List295 - PgSelect298[["PgSelect[298∈8] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan - Object12 -->|rejectNull| PgSelect298 - Access1842 --> PgSelect298 - List305{{"List[305∈8] ➊
ᐸ93,304ᐳ
ᐳReservedInputRecord"}}:::plan - PgClassExpression304{{"PgClassExpression[304∈8] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan + PgSelect298[["PgSelect[298∈4] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan + Object11 -->|rejectNull| PgSelect298 + Access1838 --> PgSelect298 + List305{{"List[305∈4] ➊
ᐸ93,304ᐳ
ᐳReservedInputRecord"}}:::plan + PgClassExpression304{{"PgClassExpression[304∈4] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan Constant93 & PgClassExpression304 --> List305 - PgSelect308[["PgSelect[308∈8] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan - Object12 -->|rejectNull| PgSelect308 - Access1842 --> PgSelect308 - List315{{"List[315∈8] ➊
ᐸ103,314ᐳ
ᐳDefaultValue"}}:::plan - PgClassExpression314{{"PgClassExpression[314∈8] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan + PgSelect308[["PgSelect[308∈4] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan + Object11 -->|rejectNull| PgSelect308 + Access1838 --> PgSelect308 + List315{{"List[315∈4] ➊
ᐸ103,314ᐳ
ᐳDefaultValue"}}:::plan + PgClassExpression314{{"PgClassExpression[314∈4] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan Constant103 & PgClassExpression314 --> List315 - PgSelect331[["PgSelect[331∈8] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan - Object12 -->|rejectNull| PgSelect331 - Access1842 --> PgSelect331 - List338{{"List[338∈8] ➊
ᐸ18,337ᐳ
ᐳPerson"}}:::plan - PgClassExpression337{{"PgClassExpression[337∈8] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelect331[["PgSelect[331∈4] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan + Object11 -->|rejectNull| PgSelect331 + Access1838 --> PgSelect331 + List338{{"List[338∈4] ➊
ᐸ18,337ᐳ
ᐳPerson"}}:::plan + PgClassExpression337{{"PgClassExpression[337∈4] ➊
ᐸ__person__.”id”ᐳ"}}:::plan Constant18 & PgClassExpression337 --> List338 - PgSelect342[["PgSelect[342∈8] ➊
ᐸpostᐳ
ᐳPost"]]:::plan - Object12 -->|rejectNull| PgSelect342 - Access1842 --> PgSelect342 - List349{{"List[349∈8] ➊
ᐸ137,348ᐳ
ᐳPost"}}:::plan - PgClassExpression348{{"PgClassExpression[348∈8] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelect342[["PgSelect[342∈4] ➊
ᐸpostᐳ
ᐳPost"]]:::plan + Object11 -->|rejectNull| PgSelect342 + Access1838 --> PgSelect342 + List349{{"List[349∈4] ➊
ᐸ137,348ᐳ
ᐳPost"}}:::plan + PgClassExpression348{{"PgClassExpression[348∈4] ➊
ᐸ__post__.”id”ᐳ"}}:::plan Constant137 & PgClassExpression348 --> List349 - PgSelect352[["PgSelect[352∈8] ➊
ᐸtypesᐳ
ᐳType"]]:::plan - Object12 -->|rejectNull| PgSelect352 - Access1842 --> PgSelect352 - List359{{"List[359∈8] ➊
ᐸ147,358ᐳ
ᐳType"}}:::plan - PgClassExpression358{{"PgClassExpression[358∈8] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + PgSelect352[["PgSelect[352∈4] ➊
ᐸtypesᐳ
ᐳType"]]:::plan + Object11 -->|rejectNull| PgSelect352 + Access1838 --> PgSelect352 + List359{{"List[359∈4] ➊
ᐸ147,358ᐳ
ᐳType"}}:::plan + PgClassExpression358{{"PgClassExpression[358∈4] ➊
ᐸ__types__.”id”ᐳ"}}:::plan Constant147 & PgClassExpression358 --> List359 - PgSelect362[["PgSelect[362∈8] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan - Object12 -->|rejectNull| PgSelect362 - Access1842 --> PgSelect362 - List369{{"List[369∈8] ➊
ᐸ157,368ᐳ
ᐳPersonSecret"}}:::plan - PgClassExpression368{{"PgClassExpression[368∈8] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan + PgSelect362[["PgSelect[362∈4] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan + Object11 -->|rejectNull| PgSelect362 + Access1838 --> PgSelect362 + List369{{"List[369∈4] ➊
ᐸ157,368ᐳ
ᐳPersonSecret"}}:::plan + PgClassExpression368{{"PgClassExpression[368∈4] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan Constant157 & PgClassExpression368 --> List369 - PgSelect372[["PgSelect[372∈8] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan - Object12 -->|rejectNull| PgSelect372 - Access1842 --> PgSelect372 - List379{{"List[379∈8] ➊
ᐸ167,378ᐳ
ᐳLeftArm"}}:::plan - PgClassExpression378{{"PgClassExpression[378∈8] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + PgSelect372[["PgSelect[372∈4] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan + Object11 -->|rejectNull| PgSelect372 + Access1838 --> PgSelect372 + List379{{"List[379∈4] ➊
ᐸ167,378ᐳ
ᐳLeftArm"}}:::plan + PgClassExpression378{{"PgClassExpression[378∈4] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan Constant167 & PgClassExpression378 --> List379 - PgSelect382[["PgSelect[382∈8] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan - Object12 -->|rejectNull| PgSelect382 - Access1842 --> PgSelect382 - List389{{"List[389∈8] ➊
ᐸ177,388ᐳ
ᐳMyTable"}}:::plan - PgClassExpression388{{"PgClassExpression[388∈8] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan + PgSelect382[["PgSelect[382∈4] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan + Object11 -->|rejectNull| PgSelect382 + Access1838 --> PgSelect382 + List389{{"List[389∈4] ➊
ᐸ177,388ᐳ
ᐳMyTable"}}:::plan + PgClassExpression388{{"PgClassExpression[388∈4] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan Constant177 & PgClassExpression388 --> List389 - PgSelect392[["PgSelect[392∈8] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan - Object12 -->|rejectNull| PgSelect392 - Access1842 --> PgSelect392 - List399{{"List[399∈8] ➊
ᐸ187,398ᐳ
ᐳViewTable"}}:::plan - PgClassExpression398{{"PgClassExpression[398∈8] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan + PgSelect392[["PgSelect[392∈4] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan + Object11 -->|rejectNull| PgSelect392 + Access1838 --> PgSelect392 + List399{{"List[399∈4] ➊
ᐸ187,398ᐳ
ᐳViewTable"}}:::plan + PgClassExpression398{{"PgClassExpression[398∈4] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan Constant187 & PgClassExpression398 --> List399 - PgSelect402[["PgSelect[402∈8] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan - Object12 -->|rejectNull| PgSelect402 - Access1842 --> PgSelect402 - List409{{"List[409∈8] ➊
ᐸ197,408ᐳ
ᐳSimilarTable1"}}:::plan - PgClassExpression408{{"PgClassExpression[408∈8] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan + PgSelect402[["PgSelect[402∈4] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan + Object11 -->|rejectNull| PgSelect402 + Access1838 --> PgSelect402 + List409{{"List[409∈4] ➊
ᐸ197,408ᐳ
ᐳSimilarTable1"}}:::plan + PgClassExpression408{{"PgClassExpression[408∈4] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan Constant197 & PgClassExpression408 --> List409 - PgSelect415[["PgSelect[415∈8] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan - Object12 -->|rejectNull| PgSelect415 - Access1842 --> PgSelect415 - List422{{"List[422∈8] ➊
ᐸ210,421ᐳ
ᐳSimilarTable2"}}:::plan - PgClassExpression421{{"PgClassExpression[421∈8] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan + PgSelect415[["PgSelect[415∈4] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan + Object11 -->|rejectNull| PgSelect415 + Access1838 --> PgSelect415 + List422{{"List[422∈4] ➊
ᐸ210,421ᐳ
ᐳSimilarTable2"}}:::plan + PgClassExpression421{{"PgClassExpression[421∈4] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan Constant210 & PgClassExpression421 --> List422 - PgSelect428[["PgSelect[428∈8] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan - Object12 -->|rejectNull| PgSelect428 - Access1842 --> PgSelect428 - List435{{"List[435∈8] ➊
ᐸ223,434ᐳ
ᐳNullTestRecord"}}:::plan - PgClassExpression434{{"PgClassExpression[434∈8] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan + PgSelect428[["PgSelect[428∈4] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan + Object11 -->|rejectNull| PgSelect428 + Access1838 --> PgSelect428 + List435{{"List[435∈4] ➊
ᐸ223,434ᐳ
ᐳNullTestRecord"}}:::plan + PgClassExpression434{{"PgClassExpression[434∈4] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan Constant223 & PgClassExpression434 --> List435 - PgSelect438[["PgSelect[438∈8] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan - Object12 -->|rejectNull| PgSelect438 - Access1842 --> PgSelect438 - List445{{"List[445∈8] ➊
ᐸ233,444ᐳ
ᐳIssue756"}}:::plan - PgClassExpression444{{"PgClassExpression[444∈8] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan + PgSelect438[["PgSelect[438∈4] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan + Object11 -->|rejectNull| PgSelect438 + Access1838 --> PgSelect438 + List445{{"List[445∈4] ➊
ᐸ233,444ᐳ
ᐳIssue756"}}:::plan + PgClassExpression444{{"PgClassExpression[444∈4] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan Constant233 & PgClassExpression444 --> List445 - PgSelect448[["PgSelect[448∈8] ➊
ᐸlistsᐳ
ᐳList"]]:::plan - Object12 -->|rejectNull| PgSelect448 - Access1842 --> PgSelect448 - List455{{"List[455∈8] ➊
ᐸ243,454ᐳ
ᐳList"}}:::plan - PgClassExpression454{{"PgClassExpression[454∈8] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan + PgSelect448[["PgSelect[448∈4] ➊
ᐸlistsᐳ
ᐳList"]]:::plan + Object11 -->|rejectNull| PgSelect448 + Access1838 --> PgSelect448 + List455{{"List[455∈4] ➊
ᐸ243,454ᐳ
ᐳList"}}:::plan + PgClassExpression454{{"PgClassExpression[454∈4] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan Constant243 & PgClassExpression454 --> List455 - Lambda252{{"Lambda[252∈8] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan + Lambda252{{"Lambda[252∈4] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan Constant41 --> Lambda252 - First260{{"First[260∈8] ➊"}}:::plan - PgSelectRows261[["PgSelectRows[261∈8] ➊"]]:::plan + First260{{"First[260∈4] ➊"}}:::plan + PgSelectRows261[["PgSelectRows[261∈4] ➊"]]:::plan PgSelectRows261 --> First260 PgSelect256 --> PgSelectRows261 - PgSelectSingle262{{"PgSelectSingle[262∈8] ➊
ᐸinputsᐳ"}}:::plan + PgSelectSingle262{{"PgSelectSingle[262∈4] ➊
ᐸinputsᐳ"}}:::plan First260 --> PgSelectSingle262 PgSelectSingle262 --> PgClassExpression264 - Lambda266{{"Lambda[266∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda266{{"Lambda[266∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List265 --> Lambda266 - First270{{"First[270∈8] ➊"}}:::plan - PgSelectRows271[["PgSelectRows[271∈8] ➊"]]:::plan + First270{{"First[270∈4] ➊"}}:::plan + PgSelectRows271[["PgSelectRows[271∈4] ➊"]]:::plan PgSelectRows271 --> First270 PgSelect268 --> PgSelectRows271 - PgSelectSingle272{{"PgSelectSingle[272∈8] ➊
ᐸpatchsᐳ"}}:::plan + PgSelectSingle272{{"PgSelectSingle[272∈4] ➊
ᐸpatchsᐳ"}}:::plan First270 --> PgSelectSingle272 PgSelectSingle272 --> PgClassExpression274 - Lambda276{{"Lambda[276∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda276{{"Lambda[276∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List275 --> Lambda276 - First280{{"First[280∈8] ➊"}}:::plan - PgSelectRows281[["PgSelectRows[281∈8] ➊"]]:::plan + First280{{"First[280∈4] ➊"}}:::plan + PgSelectRows281[["PgSelectRows[281∈4] ➊"]]:::plan PgSelectRows281 --> First280 PgSelect278 --> PgSelectRows281 - PgSelectSingle282{{"PgSelectSingle[282∈8] ➊
ᐸreservedᐳ"}}:::plan + PgSelectSingle282{{"PgSelectSingle[282∈4] ➊
ᐸreservedᐳ"}}:::plan First280 --> PgSelectSingle282 PgSelectSingle282 --> PgClassExpression284 - Lambda286{{"Lambda[286∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda286{{"Lambda[286∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List285 --> Lambda286 - First290{{"First[290∈8] ➊"}}:::plan - PgSelectRows291[["PgSelectRows[291∈8] ➊"]]:::plan + First290{{"First[290∈4] ➊"}}:::plan + PgSelectRows291[["PgSelectRows[291∈4] ➊"]]:::plan PgSelectRows291 --> First290 PgSelect288 --> PgSelectRows291 - PgSelectSingle292{{"PgSelectSingle[292∈8] ➊
ᐸreservedPatchsᐳ"}}:::plan + PgSelectSingle292{{"PgSelectSingle[292∈4] ➊
ᐸreservedPatchsᐳ"}}:::plan First290 --> PgSelectSingle292 PgSelectSingle292 --> PgClassExpression294 - Lambda296{{"Lambda[296∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda296{{"Lambda[296∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List295 --> Lambda296 - First300{{"First[300∈8] ➊"}}:::plan - PgSelectRows301[["PgSelectRows[301∈8] ➊"]]:::plan + First300{{"First[300∈4] ➊"}}:::plan + PgSelectRows301[["PgSelectRows[301∈4] ➊"]]:::plan PgSelectRows301 --> First300 PgSelect298 --> PgSelectRows301 - PgSelectSingle302{{"PgSelectSingle[302∈8] ➊
ᐸreserved_inputᐳ"}}:::plan + PgSelectSingle302{{"PgSelectSingle[302∈4] ➊
ᐸreserved_inputᐳ"}}:::plan First300 --> PgSelectSingle302 PgSelectSingle302 --> PgClassExpression304 - Lambda306{{"Lambda[306∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda306{{"Lambda[306∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List305 --> Lambda306 - First310{{"First[310∈8] ➊"}}:::plan - PgSelectRows311[["PgSelectRows[311∈8] ➊"]]:::plan + First310{{"First[310∈4] ➊"}}:::plan + PgSelectRows311[["PgSelectRows[311∈4] ➊"]]:::plan PgSelectRows311 --> First310 PgSelect308 --> PgSelectRows311 - PgSelectSingle312{{"PgSelectSingle[312∈8] ➊
ᐸdefault_valueᐳ"}}:::plan + PgSelectSingle312{{"PgSelectSingle[312∈4] ➊
ᐸdefault_valueᐳ"}}:::plan First310 --> PgSelectSingle312 PgSelectSingle312 --> PgClassExpression314 - Lambda316{{"Lambda[316∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda316{{"Lambda[316∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List315 --> Lambda316 - First322{{"First[322∈8] ➊"}}:::plan - PgSelectRows323[["PgSelectRows[323∈8] ➊"]]:::plan + First322{{"First[322∈4] ➊"}}:::plan + PgSelectRows323[["PgSelectRows[323∈4] ➊"]]:::plan PgSelectRows323 --> First322 PgSelect320 --> PgSelectRows323 - PgSelectSingle324{{"PgSelectSingle[324∈8] ➊
ᐸcompound_keyᐳ"}}:::plan + PgSelectSingle324{{"PgSelectSingle[324∈4] ➊
ᐸcompound_keyᐳ"}}:::plan First322 --> PgSelectSingle324 PgSelectSingle324 --> PgClassExpression326 PgSelectSingle324 --> PgClassExpression327 - Lambda329{{"Lambda[329∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda329{{"Lambda[329∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List328 --> Lambda329 - First333{{"First[333∈8] ➊"}}:::plan - PgSelectRows334[["PgSelectRows[334∈8] ➊"]]:::plan + First333{{"First[333∈4] ➊"}}:::plan + PgSelectRows334[["PgSelectRows[334∈4] ➊"]]:::plan PgSelectRows334 --> First333 PgSelect331 --> PgSelectRows334 - PgSelectSingle335{{"PgSelectSingle[335∈8] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle335{{"PgSelectSingle[335∈4] ➊
ᐸpersonᐳ"}}:::plan First333 --> PgSelectSingle335 PgSelectSingle335 --> PgClassExpression337 - Lambda339{{"Lambda[339∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda339{{"Lambda[339∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List338 --> Lambda339 - PgClassExpression340{{"PgClassExpression[340∈8] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression340{{"PgClassExpression[340∈4] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle335 --> PgClassExpression340 - First344{{"First[344∈8] ➊"}}:::plan - PgSelectRows345[["PgSelectRows[345∈8] ➊"]]:::plan + First344{{"First[344∈4] ➊"}}:::plan + PgSelectRows345[["PgSelectRows[345∈4] ➊"]]:::plan PgSelectRows345 --> First344 PgSelect342 --> PgSelectRows345 - PgSelectSingle346{{"PgSelectSingle[346∈8] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle346{{"PgSelectSingle[346∈4] ➊
ᐸpostᐳ"}}:::plan First344 --> PgSelectSingle346 PgSelectSingle346 --> PgClassExpression348 - Lambda350{{"Lambda[350∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda350{{"Lambda[350∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List349 --> Lambda350 - First354{{"First[354∈8] ➊"}}:::plan - PgSelectRows355[["PgSelectRows[355∈8] ➊"]]:::plan + First354{{"First[354∈4] ➊"}}:::plan + PgSelectRows355[["PgSelectRows[355∈4] ➊"]]:::plan PgSelectRows355 --> First354 PgSelect352 --> PgSelectRows355 - PgSelectSingle356{{"PgSelectSingle[356∈8] ➊
ᐸtypesᐳ"}}:::plan + PgSelectSingle356{{"PgSelectSingle[356∈4] ➊
ᐸtypesᐳ"}}:::plan First354 --> PgSelectSingle356 PgSelectSingle356 --> PgClassExpression358 - Lambda360{{"Lambda[360∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda360{{"Lambda[360∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List359 --> Lambda360 - First364{{"First[364∈8] ➊"}}:::plan - PgSelectRows365[["PgSelectRows[365∈8] ➊"]]:::plan + First364{{"First[364∈4] ➊"}}:::plan + PgSelectRows365[["PgSelectRows[365∈4] ➊"]]:::plan PgSelectRows365 --> First364 PgSelect362 --> PgSelectRows365 - PgSelectSingle366{{"PgSelectSingle[366∈8] ➊
ᐸperson_secretᐳ"}}:::plan + PgSelectSingle366{{"PgSelectSingle[366∈4] ➊
ᐸperson_secretᐳ"}}:::plan First364 --> PgSelectSingle366 PgSelectSingle366 --> PgClassExpression368 - Lambda370{{"Lambda[370∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda370{{"Lambda[370∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List369 --> Lambda370 - First374{{"First[374∈8] ➊"}}:::plan - PgSelectRows375[["PgSelectRows[375∈8] ➊"]]:::plan + First374{{"First[374∈4] ➊"}}:::plan + PgSelectRows375[["PgSelectRows[375∈4] ➊"]]:::plan PgSelectRows375 --> First374 PgSelect372 --> PgSelectRows375 - PgSelectSingle376{{"PgSelectSingle[376∈8] ➊
ᐸleft_armᐳ"}}:::plan + PgSelectSingle376{{"PgSelectSingle[376∈4] ➊
ᐸleft_armᐳ"}}:::plan First374 --> PgSelectSingle376 PgSelectSingle376 --> PgClassExpression378 - Lambda380{{"Lambda[380∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda380{{"Lambda[380∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List379 --> Lambda380 - First384{{"First[384∈8] ➊"}}:::plan - PgSelectRows385[["PgSelectRows[385∈8] ➊"]]:::plan + First384{{"First[384∈4] ➊"}}:::plan + PgSelectRows385[["PgSelectRows[385∈4] ➊"]]:::plan PgSelectRows385 --> First384 PgSelect382 --> PgSelectRows385 - PgSelectSingle386{{"PgSelectSingle[386∈8] ➊
ᐸmy_tableᐳ"}}:::plan + PgSelectSingle386{{"PgSelectSingle[386∈4] ➊
ᐸmy_tableᐳ"}}:::plan First384 --> PgSelectSingle386 PgSelectSingle386 --> PgClassExpression388 - Lambda390{{"Lambda[390∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda390{{"Lambda[390∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List389 --> Lambda390 - First394{{"First[394∈8] ➊"}}:::plan - PgSelectRows395[["PgSelectRows[395∈8] ➊"]]:::plan + First394{{"First[394∈4] ➊"}}:::plan + PgSelectRows395[["PgSelectRows[395∈4] ➊"]]:::plan PgSelectRows395 --> First394 PgSelect392 --> PgSelectRows395 - PgSelectSingle396{{"PgSelectSingle[396∈8] ➊
ᐸview_tableᐳ"}}:::plan + PgSelectSingle396{{"PgSelectSingle[396∈4] ➊
ᐸview_tableᐳ"}}:::plan First394 --> PgSelectSingle396 PgSelectSingle396 --> PgClassExpression398 - Lambda400{{"Lambda[400∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda400{{"Lambda[400∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List399 --> Lambda400 - First404{{"First[404∈8] ➊"}}:::plan - PgSelectRows405[["PgSelectRows[405∈8] ➊"]]:::plan + First404{{"First[404∈4] ➊"}}:::plan + PgSelectRows405[["PgSelectRows[405∈4] ➊"]]:::plan PgSelectRows405 --> First404 PgSelect402 --> PgSelectRows405 - PgSelectSingle406{{"PgSelectSingle[406∈8] ➊
ᐸsimilar_table_1ᐳ"}}:::plan + PgSelectSingle406{{"PgSelectSingle[406∈4] ➊
ᐸsimilar_table_1ᐳ"}}:::plan First404 --> PgSelectSingle406 PgSelectSingle406 --> PgClassExpression408 - Lambda410{{"Lambda[410∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda410{{"Lambda[410∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List409 --> Lambda410 - PgClassExpression411{{"PgClassExpression[411∈8] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan + PgClassExpression411{{"PgClassExpression[411∈4] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan PgSelectSingle406 --> PgClassExpression411 - PgClassExpression412{{"PgClassExpression[412∈8] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan + PgClassExpression412{{"PgClassExpression[412∈4] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan PgSelectSingle406 --> PgClassExpression412 - PgClassExpression413{{"PgClassExpression[413∈8] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan + PgClassExpression413{{"PgClassExpression[413∈4] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan PgSelectSingle406 --> PgClassExpression413 - First417{{"First[417∈8] ➊"}}:::plan - PgSelectRows418[["PgSelectRows[418∈8] ➊"]]:::plan + First417{{"First[417∈4] ➊"}}:::plan + PgSelectRows418[["PgSelectRows[418∈4] ➊"]]:::plan PgSelectRows418 --> First417 PgSelect415 --> PgSelectRows418 - PgSelectSingle419{{"PgSelectSingle[419∈8] ➊
ᐸsimilar_table_2ᐳ"}}:::plan + PgSelectSingle419{{"PgSelectSingle[419∈4] ➊
ᐸsimilar_table_2ᐳ"}}:::plan First417 --> PgSelectSingle419 PgSelectSingle419 --> PgClassExpression421 - Lambda423{{"Lambda[423∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda423{{"Lambda[423∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List422 --> Lambda423 - PgClassExpression424{{"PgClassExpression[424∈8] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan + PgClassExpression424{{"PgClassExpression[424∈4] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan PgSelectSingle419 --> PgClassExpression424 - PgClassExpression425{{"PgClassExpression[425∈8] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan + PgClassExpression425{{"PgClassExpression[425∈4] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan PgSelectSingle419 --> PgClassExpression425 - PgClassExpression426{{"PgClassExpression[426∈8] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan + PgClassExpression426{{"PgClassExpression[426∈4] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan PgSelectSingle419 --> PgClassExpression426 - First430{{"First[430∈8] ➊"}}:::plan - PgSelectRows431[["PgSelectRows[431∈8] ➊"]]:::plan + First430{{"First[430∈4] ➊"}}:::plan + PgSelectRows431[["PgSelectRows[431∈4] ➊"]]:::plan PgSelectRows431 --> First430 PgSelect428 --> PgSelectRows431 - PgSelectSingle432{{"PgSelectSingle[432∈8] ➊
ᐸnull_test_recordᐳ"}}:::plan + PgSelectSingle432{{"PgSelectSingle[432∈4] ➊
ᐸnull_test_recordᐳ"}}:::plan First430 --> PgSelectSingle432 PgSelectSingle432 --> PgClassExpression434 - Lambda436{{"Lambda[436∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda436{{"Lambda[436∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List435 --> Lambda436 - First440{{"First[440∈8] ➊"}}:::plan - PgSelectRows441[["PgSelectRows[441∈8] ➊"]]:::plan + First440{{"First[440∈4] ➊"}}:::plan + PgSelectRows441[["PgSelectRows[441∈4] ➊"]]:::plan PgSelectRows441 --> First440 PgSelect438 --> PgSelectRows441 - PgSelectSingle442{{"PgSelectSingle[442∈8] ➊
ᐸissue756ᐳ"}}:::plan + PgSelectSingle442{{"PgSelectSingle[442∈4] ➊
ᐸissue756ᐳ"}}:::plan First440 --> PgSelectSingle442 PgSelectSingle442 --> PgClassExpression444 - Lambda446{{"Lambda[446∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda446{{"Lambda[446∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List445 --> Lambda446 - First450{{"First[450∈8] ➊"}}:::plan - PgSelectRows451[["PgSelectRows[451∈8] ➊"]]:::plan + First450{{"First[450∈4] ➊"}}:::plan + PgSelectRows451[["PgSelectRows[451∈4] ➊"]]:::plan PgSelectRows451 --> First450 PgSelect448 --> PgSelectRows451 - PgSelectSingle452{{"PgSelectSingle[452∈8] ➊
ᐸlistsᐳ"}}:::plan + PgSelectSingle452{{"PgSelectSingle[452∈4] ➊
ᐸlistsᐳ"}}:::plan First450 --> PgSelectSingle452 PgSelectSingle452 --> PgClassExpression454 - Lambda456{{"Lambda[456∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda456{{"Lambda[456∈4] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List455 --> Lambda456 - Lambda249 --> Access1842 - Lambda249 --> Access1843 - PgSelect530[["PgSelect[530∈9] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan - Access1845{{"Access[1845∈9] ➊
ᐸ459.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan - Access1846{{"Access[1846∈9] ➊
ᐸ459.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan - Object12 -->|rejectNull| PgSelect530 - Access1845 -->|rejectNull| PgSelect530 - Access1846 --> PgSelect530 - List538{{"List[538∈9] ➊
ᐸ32,536,537ᐳ
ᐳCompoundKey"}}:::plan - PgClassExpression536{{"PgClassExpression[536∈9] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression537{{"PgClassExpression[537∈9] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Lambda249 --> Access1838 + Lambda249 --> Access1839 + PgSelect530[["PgSelect[530∈5] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan + Access1841{{"Access[1841∈5] ➊
ᐸ459.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan + Access1842{{"Access[1842∈5] ➊
ᐸ459.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan + Object11 -->|rejectNull| PgSelect530 + Access1841 -->|rejectNull| PgSelect530 + Access1842 --> PgSelect530 + List538{{"List[538∈5] ➊
ᐸ32,536,537ᐳ
ᐳCompoundKey"}}:::plan + PgClassExpression536{{"PgClassExpression[536∈5] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression537{{"PgClassExpression[537∈5] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan Constant32 & PgClassExpression536 & PgClassExpression537 --> List538 - PgSelect466[["PgSelect[466∈9] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan - Object12 -->|rejectNull| PgSelect466 - Access1845 --> PgSelect466 - List475{{"List[475∈9] ➊
ᐸ53,474ᐳ
ᐳInput"}}:::plan - PgClassExpression474{{"PgClassExpression[474∈9] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan + PgSelect466[["PgSelect[466∈5] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan + Object11 -->|rejectNull| PgSelect466 + Access1841 --> PgSelect466 + List475{{"List[475∈5] ➊
ᐸ53,474ᐳ
ᐳInput"}}:::plan + PgClassExpression474{{"PgClassExpression[474∈5] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan Constant53 & PgClassExpression474 --> List475 - PgSelect478[["PgSelect[478∈9] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan - Object12 -->|rejectNull| PgSelect478 - Access1845 --> PgSelect478 - List485{{"List[485∈9] ➊
ᐸ63,484ᐳ
ᐳPatch"}}:::plan - PgClassExpression484{{"PgClassExpression[484∈9] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan + PgSelect478[["PgSelect[478∈5] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan + Object11 -->|rejectNull| PgSelect478 + Access1841 --> PgSelect478 + List485{{"List[485∈5] ➊
ᐸ63,484ᐳ
ᐳPatch"}}:::plan + PgClassExpression484{{"PgClassExpression[484∈5] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan Constant63 & PgClassExpression484 --> List485 - PgSelect488[["PgSelect[488∈9] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan - Object12 -->|rejectNull| PgSelect488 - Access1845 --> PgSelect488 - List495{{"List[495∈9] ➊
ᐸ73,494ᐳ
ᐳReserved"}}:::plan - PgClassExpression494{{"PgClassExpression[494∈9] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan + PgSelect488[["PgSelect[488∈5] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan + Object11 -->|rejectNull| PgSelect488 + Access1841 --> PgSelect488 + List495{{"List[495∈5] ➊
ᐸ73,494ᐳ
ᐳReserved"}}:::plan + PgClassExpression494{{"PgClassExpression[494∈5] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan Constant73 & PgClassExpression494 --> List495 - PgSelect498[["PgSelect[498∈9] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan - Object12 -->|rejectNull| PgSelect498 - Access1845 --> PgSelect498 - List505{{"List[505∈9] ➊
ᐸ83,504ᐳ
ᐳReservedPatchRecord"}}:::plan - PgClassExpression504{{"PgClassExpression[504∈9] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan + PgSelect498[["PgSelect[498∈5] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan + Object11 -->|rejectNull| PgSelect498 + Access1841 --> PgSelect498 + List505{{"List[505∈5] ➊
ᐸ83,504ᐳ
ᐳReservedPatchRecord"}}:::plan + PgClassExpression504{{"PgClassExpression[504∈5] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan Constant83 & PgClassExpression504 --> List505 - PgSelect508[["PgSelect[508∈9] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan - Object12 -->|rejectNull| PgSelect508 - Access1845 --> PgSelect508 - List515{{"List[515∈9] ➊
ᐸ93,514ᐳ
ᐳReservedInputRecord"}}:::plan - PgClassExpression514{{"PgClassExpression[514∈9] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan + PgSelect508[["PgSelect[508∈5] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan + Object11 -->|rejectNull| PgSelect508 + Access1841 --> PgSelect508 + List515{{"List[515∈5] ➊
ᐸ93,514ᐳ
ᐳReservedInputRecord"}}:::plan + PgClassExpression514{{"PgClassExpression[514∈5] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan Constant93 & PgClassExpression514 --> List515 - PgSelect518[["PgSelect[518∈9] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan - Object12 -->|rejectNull| PgSelect518 - Access1845 --> PgSelect518 - List525{{"List[525∈9] ➊
ᐸ103,524ᐳ
ᐳDefaultValue"}}:::plan - PgClassExpression524{{"PgClassExpression[524∈9] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan + PgSelect518[["PgSelect[518∈5] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan + Object11 -->|rejectNull| PgSelect518 + Access1841 --> PgSelect518 + List525{{"List[525∈5] ➊
ᐸ103,524ᐳ
ᐳDefaultValue"}}:::plan + PgClassExpression524{{"PgClassExpression[524∈5] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan Constant103 & PgClassExpression524 --> List525 - PgSelect541[["PgSelect[541∈9] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan - Object12 -->|rejectNull| PgSelect541 - Access1845 --> PgSelect541 - List548{{"List[548∈9] ➊
ᐸ18,547ᐳ
ᐳPerson"}}:::plan - PgClassExpression547{{"PgClassExpression[547∈9] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelect541[["PgSelect[541∈5] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan + Object11 -->|rejectNull| PgSelect541 + Access1841 --> PgSelect541 + List548{{"List[548∈5] ➊
ᐸ18,547ᐳ
ᐳPerson"}}:::plan + PgClassExpression547{{"PgClassExpression[547∈5] ➊
ᐸ__person__.”id”ᐳ"}}:::plan Constant18 & PgClassExpression547 --> List548 - PgSelect552[["PgSelect[552∈9] ➊
ᐸpostᐳ
ᐳPost"]]:::plan - Object12 -->|rejectNull| PgSelect552 - Access1845 --> PgSelect552 - List559{{"List[559∈9] ➊
ᐸ137,558ᐳ
ᐳPost"}}:::plan - PgClassExpression558{{"PgClassExpression[558∈9] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelect552[["PgSelect[552∈5] ➊
ᐸpostᐳ
ᐳPost"]]:::plan + Object11 -->|rejectNull| PgSelect552 + Access1841 --> PgSelect552 + List559{{"List[559∈5] ➊
ᐸ137,558ᐳ
ᐳPost"}}:::plan + PgClassExpression558{{"PgClassExpression[558∈5] ➊
ᐸ__post__.”id”ᐳ"}}:::plan Constant137 & PgClassExpression558 --> List559 - PgSelect562[["PgSelect[562∈9] ➊
ᐸtypesᐳ
ᐳType"]]:::plan - Object12 -->|rejectNull| PgSelect562 - Access1845 --> PgSelect562 - List569{{"List[569∈9] ➊
ᐸ147,568ᐳ
ᐳType"}}:::plan - PgClassExpression568{{"PgClassExpression[568∈9] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + PgSelect562[["PgSelect[562∈5] ➊
ᐸtypesᐳ
ᐳType"]]:::plan + Object11 -->|rejectNull| PgSelect562 + Access1841 --> PgSelect562 + List569{{"List[569∈5] ➊
ᐸ147,568ᐳ
ᐳType"}}:::plan + PgClassExpression568{{"PgClassExpression[568∈5] ➊
ᐸ__types__.”id”ᐳ"}}:::plan Constant147 & PgClassExpression568 --> List569 - PgSelect572[["PgSelect[572∈9] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan - Object12 -->|rejectNull| PgSelect572 - Access1845 --> PgSelect572 - List579{{"List[579∈9] ➊
ᐸ157,578ᐳ
ᐳPersonSecret"}}:::plan - PgClassExpression578{{"PgClassExpression[578∈9] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan + PgSelect572[["PgSelect[572∈5] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan + Object11 -->|rejectNull| PgSelect572 + Access1841 --> PgSelect572 + List579{{"List[579∈5] ➊
ᐸ157,578ᐳ
ᐳPersonSecret"}}:::plan + PgClassExpression578{{"PgClassExpression[578∈5] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan Constant157 & PgClassExpression578 --> List579 - PgSelect582[["PgSelect[582∈9] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan - Object12 -->|rejectNull| PgSelect582 - Access1845 --> PgSelect582 - List589{{"List[589∈9] ➊
ᐸ167,588ᐳ
ᐳLeftArm"}}:::plan - PgClassExpression588{{"PgClassExpression[588∈9] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + PgSelect582[["PgSelect[582∈5] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan + Object11 -->|rejectNull| PgSelect582 + Access1841 --> PgSelect582 + List589{{"List[589∈5] ➊
ᐸ167,588ᐳ
ᐳLeftArm"}}:::plan + PgClassExpression588{{"PgClassExpression[588∈5] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan Constant167 & PgClassExpression588 --> List589 - PgSelect592[["PgSelect[592∈9] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan - Object12 -->|rejectNull| PgSelect592 - Access1845 --> PgSelect592 - List599{{"List[599∈9] ➊
ᐸ177,598ᐳ
ᐳMyTable"}}:::plan - PgClassExpression598{{"PgClassExpression[598∈9] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan + PgSelect592[["PgSelect[592∈5] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan + Object11 -->|rejectNull| PgSelect592 + Access1841 --> PgSelect592 + List599{{"List[599∈5] ➊
ᐸ177,598ᐳ
ᐳMyTable"}}:::plan + PgClassExpression598{{"PgClassExpression[598∈5] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan Constant177 & PgClassExpression598 --> List599 - PgSelect602[["PgSelect[602∈9] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan - Object12 -->|rejectNull| PgSelect602 - Access1845 --> PgSelect602 - List609{{"List[609∈9] ➊
ᐸ187,608ᐳ
ᐳViewTable"}}:::plan - PgClassExpression608{{"PgClassExpression[608∈9] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan + PgSelect602[["PgSelect[602∈5] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan + Object11 -->|rejectNull| PgSelect602 + Access1841 --> PgSelect602 + List609{{"List[609∈5] ➊
ᐸ187,608ᐳ
ᐳViewTable"}}:::plan + PgClassExpression608{{"PgClassExpression[608∈5] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan Constant187 & PgClassExpression608 --> List609 - PgSelect612[["PgSelect[612∈9] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan - Object12 -->|rejectNull| PgSelect612 - Access1845 --> PgSelect612 - List619{{"List[619∈9] ➊
ᐸ197,618ᐳ
ᐳSimilarTable1"}}:::plan - PgClassExpression618{{"PgClassExpression[618∈9] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan + PgSelect612[["PgSelect[612∈5] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan + Object11 -->|rejectNull| PgSelect612 + Access1841 --> PgSelect612 + List619{{"List[619∈5] ➊
ᐸ197,618ᐳ
ᐳSimilarTable1"}}:::plan + PgClassExpression618{{"PgClassExpression[618∈5] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan Constant197 & PgClassExpression618 --> List619 - PgSelect625[["PgSelect[625∈9] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan - Object12 -->|rejectNull| PgSelect625 - Access1845 --> PgSelect625 - List632{{"List[632∈9] ➊
ᐸ210,631ᐳ
ᐳSimilarTable2"}}:::plan - PgClassExpression631{{"PgClassExpression[631∈9] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan + PgSelect625[["PgSelect[625∈5] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan + Object11 -->|rejectNull| PgSelect625 + Access1841 --> PgSelect625 + List632{{"List[632∈5] ➊
ᐸ210,631ᐳ
ᐳSimilarTable2"}}:::plan + PgClassExpression631{{"PgClassExpression[631∈5] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan Constant210 & PgClassExpression631 --> List632 - PgSelect638[["PgSelect[638∈9] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan - Object12 -->|rejectNull| PgSelect638 - Access1845 --> PgSelect638 - List645{{"List[645∈9] ➊
ᐸ223,644ᐳ
ᐳNullTestRecord"}}:::plan - PgClassExpression644{{"PgClassExpression[644∈9] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan + PgSelect638[["PgSelect[638∈5] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan + Object11 -->|rejectNull| PgSelect638 + Access1841 --> PgSelect638 + List645{{"List[645∈5] ➊
ᐸ223,644ᐳ
ᐳNullTestRecord"}}:::plan + PgClassExpression644{{"PgClassExpression[644∈5] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan Constant223 & PgClassExpression644 --> List645 - PgSelect648[["PgSelect[648∈9] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan - Object12 -->|rejectNull| PgSelect648 - Access1845 --> PgSelect648 - List655{{"List[655∈9] ➊
ᐸ233,654ᐳ
ᐳIssue756"}}:::plan - PgClassExpression654{{"PgClassExpression[654∈9] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan + PgSelect648[["PgSelect[648∈5] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan + Object11 -->|rejectNull| PgSelect648 + Access1841 --> PgSelect648 + List655{{"List[655∈5] ➊
ᐸ233,654ᐳ
ᐳIssue756"}}:::plan + PgClassExpression654{{"PgClassExpression[654∈5] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan Constant233 & PgClassExpression654 --> List655 - PgSelect658[["PgSelect[658∈9] ➊
ᐸlistsᐳ
ᐳList"]]:::plan - Object12 -->|rejectNull| PgSelect658 - Access1845 --> PgSelect658 - List665{{"List[665∈9] ➊
ᐸ243,664ᐳ
ᐳList"}}:::plan - PgClassExpression664{{"PgClassExpression[664∈9] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan + PgSelect658[["PgSelect[658∈5] ➊
ᐸlistsᐳ
ᐳList"]]:::plan + Object11 -->|rejectNull| PgSelect658 + Access1841 --> PgSelect658 + List665{{"List[665∈5] ➊
ᐸ243,664ᐳ
ᐳList"}}:::plan + PgClassExpression664{{"PgClassExpression[664∈5] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan Constant243 & PgClassExpression664 --> List665 - Lambda462{{"Lambda[462∈9] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan + Lambda462{{"Lambda[462∈5] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan Constant41 --> Lambda462 - First470{{"First[470∈9] ➊"}}:::plan - PgSelectRows471[["PgSelectRows[471∈9] ➊"]]:::plan + First470{{"First[470∈5] ➊"}}:::plan + PgSelectRows471[["PgSelectRows[471∈5] ➊"]]:::plan PgSelectRows471 --> First470 PgSelect466 --> PgSelectRows471 - PgSelectSingle472{{"PgSelectSingle[472∈9] ➊
ᐸinputsᐳ"}}:::plan + PgSelectSingle472{{"PgSelectSingle[472∈5] ➊
ᐸinputsᐳ"}}:::plan First470 --> PgSelectSingle472 PgSelectSingle472 --> PgClassExpression474 - Lambda476{{"Lambda[476∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda476{{"Lambda[476∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List475 --> Lambda476 - First480{{"First[480∈9] ➊"}}:::plan - PgSelectRows481[["PgSelectRows[481∈9] ➊"]]:::plan + First480{{"First[480∈5] ➊"}}:::plan + PgSelectRows481[["PgSelectRows[481∈5] ➊"]]:::plan PgSelectRows481 --> First480 PgSelect478 --> PgSelectRows481 - PgSelectSingle482{{"PgSelectSingle[482∈9] ➊
ᐸpatchsᐳ"}}:::plan + PgSelectSingle482{{"PgSelectSingle[482∈5] ➊
ᐸpatchsᐳ"}}:::plan First480 --> PgSelectSingle482 PgSelectSingle482 --> PgClassExpression484 - Lambda486{{"Lambda[486∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda486{{"Lambda[486∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List485 --> Lambda486 - First490{{"First[490∈9] ➊"}}:::plan - PgSelectRows491[["PgSelectRows[491∈9] ➊"]]:::plan + First490{{"First[490∈5] ➊"}}:::plan + PgSelectRows491[["PgSelectRows[491∈5] ➊"]]:::plan PgSelectRows491 --> First490 PgSelect488 --> PgSelectRows491 - PgSelectSingle492{{"PgSelectSingle[492∈9] ➊
ᐸreservedᐳ"}}:::plan + PgSelectSingle492{{"PgSelectSingle[492∈5] ➊
ᐸreservedᐳ"}}:::plan First490 --> PgSelectSingle492 PgSelectSingle492 --> PgClassExpression494 - Lambda496{{"Lambda[496∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda496{{"Lambda[496∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List495 --> Lambda496 - First500{{"First[500∈9] ➊"}}:::plan - PgSelectRows501[["PgSelectRows[501∈9] ➊"]]:::plan + First500{{"First[500∈5] ➊"}}:::plan + PgSelectRows501[["PgSelectRows[501∈5] ➊"]]:::plan PgSelectRows501 --> First500 PgSelect498 --> PgSelectRows501 - PgSelectSingle502{{"PgSelectSingle[502∈9] ➊
ᐸreservedPatchsᐳ"}}:::plan + PgSelectSingle502{{"PgSelectSingle[502∈5] ➊
ᐸreservedPatchsᐳ"}}:::plan First500 --> PgSelectSingle502 PgSelectSingle502 --> PgClassExpression504 - Lambda506{{"Lambda[506∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda506{{"Lambda[506∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List505 --> Lambda506 - First510{{"First[510∈9] ➊"}}:::plan - PgSelectRows511[["PgSelectRows[511∈9] ➊"]]:::plan + First510{{"First[510∈5] ➊"}}:::plan + PgSelectRows511[["PgSelectRows[511∈5] ➊"]]:::plan PgSelectRows511 --> First510 PgSelect508 --> PgSelectRows511 - PgSelectSingle512{{"PgSelectSingle[512∈9] ➊
ᐸreserved_inputᐳ"}}:::plan + PgSelectSingle512{{"PgSelectSingle[512∈5] ➊
ᐸreserved_inputᐳ"}}:::plan First510 --> PgSelectSingle512 PgSelectSingle512 --> PgClassExpression514 - Lambda516{{"Lambda[516∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda516{{"Lambda[516∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List515 --> Lambda516 - First520{{"First[520∈9] ➊"}}:::plan - PgSelectRows521[["PgSelectRows[521∈9] ➊"]]:::plan + First520{{"First[520∈5] ➊"}}:::plan + PgSelectRows521[["PgSelectRows[521∈5] ➊"]]:::plan PgSelectRows521 --> First520 PgSelect518 --> PgSelectRows521 - PgSelectSingle522{{"PgSelectSingle[522∈9] ➊
ᐸdefault_valueᐳ"}}:::plan + PgSelectSingle522{{"PgSelectSingle[522∈5] ➊
ᐸdefault_valueᐳ"}}:::plan First520 --> PgSelectSingle522 PgSelectSingle522 --> PgClassExpression524 - Lambda526{{"Lambda[526∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda526{{"Lambda[526∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List525 --> Lambda526 - First532{{"First[532∈9] ➊"}}:::plan - PgSelectRows533[["PgSelectRows[533∈9] ➊"]]:::plan + First532{{"First[532∈5] ➊"}}:::plan + PgSelectRows533[["PgSelectRows[533∈5] ➊"]]:::plan PgSelectRows533 --> First532 PgSelect530 --> PgSelectRows533 - PgSelectSingle534{{"PgSelectSingle[534∈9] ➊
ᐸcompound_keyᐳ"}}:::plan + PgSelectSingle534{{"PgSelectSingle[534∈5] ➊
ᐸcompound_keyᐳ"}}:::plan First532 --> PgSelectSingle534 PgSelectSingle534 --> PgClassExpression536 PgSelectSingle534 --> PgClassExpression537 - Lambda539{{"Lambda[539∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda539{{"Lambda[539∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List538 --> Lambda539 - First543{{"First[543∈9] ➊"}}:::plan - PgSelectRows544[["PgSelectRows[544∈9] ➊"]]:::plan + First543{{"First[543∈5] ➊"}}:::plan + PgSelectRows544[["PgSelectRows[544∈5] ➊"]]:::plan PgSelectRows544 --> First543 PgSelect541 --> PgSelectRows544 - PgSelectSingle545{{"PgSelectSingle[545∈9] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle545{{"PgSelectSingle[545∈5] ➊
ᐸpersonᐳ"}}:::plan First543 --> PgSelectSingle545 PgSelectSingle545 --> PgClassExpression547 - Lambda549{{"Lambda[549∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda549{{"Lambda[549∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List548 --> Lambda549 - PgClassExpression550{{"PgClassExpression[550∈9] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression550{{"PgClassExpression[550∈5] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle545 --> PgClassExpression550 - First554{{"First[554∈9] ➊"}}:::plan - PgSelectRows555[["PgSelectRows[555∈9] ➊"]]:::plan + First554{{"First[554∈5] ➊"}}:::plan + PgSelectRows555[["PgSelectRows[555∈5] ➊"]]:::plan PgSelectRows555 --> First554 PgSelect552 --> PgSelectRows555 - PgSelectSingle556{{"PgSelectSingle[556∈9] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle556{{"PgSelectSingle[556∈5] ➊
ᐸpostᐳ"}}:::plan First554 --> PgSelectSingle556 PgSelectSingle556 --> PgClassExpression558 - Lambda560{{"Lambda[560∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda560{{"Lambda[560∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List559 --> Lambda560 - First564{{"First[564∈9] ➊"}}:::plan - PgSelectRows565[["PgSelectRows[565∈9] ➊"]]:::plan + First564{{"First[564∈5] ➊"}}:::plan + PgSelectRows565[["PgSelectRows[565∈5] ➊"]]:::plan PgSelectRows565 --> First564 PgSelect562 --> PgSelectRows565 - PgSelectSingle566{{"PgSelectSingle[566∈9] ➊
ᐸtypesᐳ"}}:::plan + PgSelectSingle566{{"PgSelectSingle[566∈5] ➊
ᐸtypesᐳ"}}:::plan First564 --> PgSelectSingle566 PgSelectSingle566 --> PgClassExpression568 - Lambda570{{"Lambda[570∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda570{{"Lambda[570∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List569 --> Lambda570 - First574{{"First[574∈9] ➊"}}:::plan - PgSelectRows575[["PgSelectRows[575∈9] ➊"]]:::plan + First574{{"First[574∈5] ➊"}}:::plan + PgSelectRows575[["PgSelectRows[575∈5] ➊"]]:::plan PgSelectRows575 --> First574 PgSelect572 --> PgSelectRows575 - PgSelectSingle576{{"PgSelectSingle[576∈9] ➊
ᐸperson_secretᐳ"}}:::plan + PgSelectSingle576{{"PgSelectSingle[576∈5] ➊
ᐸperson_secretᐳ"}}:::plan First574 --> PgSelectSingle576 PgSelectSingle576 --> PgClassExpression578 - Lambda580{{"Lambda[580∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda580{{"Lambda[580∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List579 --> Lambda580 - First584{{"First[584∈9] ➊"}}:::plan - PgSelectRows585[["PgSelectRows[585∈9] ➊"]]:::plan + First584{{"First[584∈5] ➊"}}:::plan + PgSelectRows585[["PgSelectRows[585∈5] ➊"]]:::plan PgSelectRows585 --> First584 PgSelect582 --> PgSelectRows585 - PgSelectSingle586{{"PgSelectSingle[586∈9] ➊
ᐸleft_armᐳ"}}:::plan + PgSelectSingle586{{"PgSelectSingle[586∈5] ➊
ᐸleft_armᐳ"}}:::plan First584 --> PgSelectSingle586 PgSelectSingle586 --> PgClassExpression588 - Lambda590{{"Lambda[590∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda590{{"Lambda[590∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List589 --> Lambda590 - First594{{"First[594∈9] ➊"}}:::plan - PgSelectRows595[["PgSelectRows[595∈9] ➊"]]:::plan + First594{{"First[594∈5] ➊"}}:::plan + PgSelectRows595[["PgSelectRows[595∈5] ➊"]]:::plan PgSelectRows595 --> First594 PgSelect592 --> PgSelectRows595 - PgSelectSingle596{{"PgSelectSingle[596∈9] ➊
ᐸmy_tableᐳ"}}:::plan + PgSelectSingle596{{"PgSelectSingle[596∈5] ➊
ᐸmy_tableᐳ"}}:::plan First594 --> PgSelectSingle596 PgSelectSingle596 --> PgClassExpression598 - Lambda600{{"Lambda[600∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda600{{"Lambda[600∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List599 --> Lambda600 - First604{{"First[604∈9] ➊"}}:::plan - PgSelectRows605[["PgSelectRows[605∈9] ➊"]]:::plan + First604{{"First[604∈5] ➊"}}:::plan + PgSelectRows605[["PgSelectRows[605∈5] ➊"]]:::plan PgSelectRows605 --> First604 PgSelect602 --> PgSelectRows605 - PgSelectSingle606{{"PgSelectSingle[606∈9] ➊
ᐸview_tableᐳ"}}:::plan + PgSelectSingle606{{"PgSelectSingle[606∈5] ➊
ᐸview_tableᐳ"}}:::plan First604 --> PgSelectSingle606 PgSelectSingle606 --> PgClassExpression608 - Lambda610{{"Lambda[610∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda610{{"Lambda[610∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List609 --> Lambda610 - First614{{"First[614∈9] ➊"}}:::plan - PgSelectRows615[["PgSelectRows[615∈9] ➊"]]:::plan + First614{{"First[614∈5] ➊"}}:::plan + PgSelectRows615[["PgSelectRows[615∈5] ➊"]]:::plan PgSelectRows615 --> First614 PgSelect612 --> PgSelectRows615 - PgSelectSingle616{{"PgSelectSingle[616∈9] ➊
ᐸsimilar_table_1ᐳ"}}:::plan + PgSelectSingle616{{"PgSelectSingle[616∈5] ➊
ᐸsimilar_table_1ᐳ"}}:::plan First614 --> PgSelectSingle616 PgSelectSingle616 --> PgClassExpression618 - Lambda620{{"Lambda[620∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda620{{"Lambda[620∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List619 --> Lambda620 - PgClassExpression621{{"PgClassExpression[621∈9] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan + PgClassExpression621{{"PgClassExpression[621∈5] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan PgSelectSingle616 --> PgClassExpression621 - PgClassExpression622{{"PgClassExpression[622∈9] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan + PgClassExpression622{{"PgClassExpression[622∈5] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan PgSelectSingle616 --> PgClassExpression622 - PgClassExpression623{{"PgClassExpression[623∈9] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan + PgClassExpression623{{"PgClassExpression[623∈5] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan PgSelectSingle616 --> PgClassExpression623 - First627{{"First[627∈9] ➊"}}:::plan - PgSelectRows628[["PgSelectRows[628∈9] ➊"]]:::plan + First627{{"First[627∈5] ➊"}}:::plan + PgSelectRows628[["PgSelectRows[628∈5] ➊"]]:::plan PgSelectRows628 --> First627 PgSelect625 --> PgSelectRows628 - PgSelectSingle629{{"PgSelectSingle[629∈9] ➊
ᐸsimilar_table_2ᐳ"}}:::plan + PgSelectSingle629{{"PgSelectSingle[629∈5] ➊
ᐸsimilar_table_2ᐳ"}}:::plan First627 --> PgSelectSingle629 PgSelectSingle629 --> PgClassExpression631 - Lambda633{{"Lambda[633∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda633{{"Lambda[633∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List632 --> Lambda633 - PgClassExpression634{{"PgClassExpression[634∈9] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan + PgClassExpression634{{"PgClassExpression[634∈5] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan PgSelectSingle629 --> PgClassExpression634 - PgClassExpression635{{"PgClassExpression[635∈9] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan + PgClassExpression635{{"PgClassExpression[635∈5] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan PgSelectSingle629 --> PgClassExpression635 - PgClassExpression636{{"PgClassExpression[636∈9] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan + PgClassExpression636{{"PgClassExpression[636∈5] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan PgSelectSingle629 --> PgClassExpression636 - First640{{"First[640∈9] ➊"}}:::plan - PgSelectRows641[["PgSelectRows[641∈9] ➊"]]:::plan + First640{{"First[640∈5] ➊"}}:::plan + PgSelectRows641[["PgSelectRows[641∈5] ➊"]]:::plan PgSelectRows641 --> First640 PgSelect638 --> PgSelectRows641 - PgSelectSingle642{{"PgSelectSingle[642∈9] ➊
ᐸnull_test_recordᐳ"}}:::plan + PgSelectSingle642{{"PgSelectSingle[642∈5] ➊
ᐸnull_test_recordᐳ"}}:::plan First640 --> PgSelectSingle642 PgSelectSingle642 --> PgClassExpression644 - Lambda646{{"Lambda[646∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda646{{"Lambda[646∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List645 --> Lambda646 - First650{{"First[650∈9] ➊"}}:::plan - PgSelectRows651[["PgSelectRows[651∈9] ➊"]]:::plan + First650{{"First[650∈5] ➊"}}:::plan + PgSelectRows651[["PgSelectRows[651∈5] ➊"]]:::plan PgSelectRows651 --> First650 PgSelect648 --> PgSelectRows651 - PgSelectSingle652{{"PgSelectSingle[652∈9] ➊
ᐸissue756ᐳ"}}:::plan + PgSelectSingle652{{"PgSelectSingle[652∈5] ➊
ᐸissue756ᐳ"}}:::plan First650 --> PgSelectSingle652 PgSelectSingle652 --> PgClassExpression654 - Lambda656{{"Lambda[656∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda656{{"Lambda[656∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List655 --> Lambda656 - First660{{"First[660∈9] ➊"}}:::plan - PgSelectRows661[["PgSelectRows[661∈9] ➊"]]:::plan + First660{{"First[660∈5] ➊"}}:::plan + PgSelectRows661[["PgSelectRows[661∈5] ➊"]]:::plan PgSelectRows661 --> First660 PgSelect658 --> PgSelectRows661 - PgSelectSingle662{{"PgSelectSingle[662∈9] ➊
ᐸlistsᐳ"}}:::plan + PgSelectSingle662{{"PgSelectSingle[662∈5] ➊
ᐸlistsᐳ"}}:::plan First660 --> PgSelectSingle662 PgSelectSingle662 --> PgClassExpression664 - Lambda666{{"Lambda[666∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda666{{"Lambda[666∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List665 --> Lambda666 - Lambda459 --> Access1845 - Lambda459 --> Access1846 - PgSelect740[["PgSelect[740∈10] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan - Access1848{{"Access[1848∈10] ➊
ᐸ669.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan - Access1849{{"Access[1849∈10] ➊
ᐸ669.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan - Object12 -->|rejectNull| PgSelect740 - Access1848 -->|rejectNull| PgSelect740 - Access1849 --> PgSelect740 - List748{{"List[748∈10] ➊
ᐸ32,746,747ᐳ
ᐳCompoundKey"}}:::plan - PgClassExpression746{{"PgClassExpression[746∈10] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression747{{"PgClassExpression[747∈10] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Lambda459 --> Access1841 + Lambda459 --> Access1842 + PgSelect740[["PgSelect[740∈6] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan + Access1844{{"Access[1844∈6] ➊
ᐸ669.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan + Access1845{{"Access[1845∈6] ➊
ᐸ669.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan + Object11 -->|rejectNull| PgSelect740 + Access1844 -->|rejectNull| PgSelect740 + Access1845 --> PgSelect740 + List748{{"List[748∈6] ➊
ᐸ32,746,747ᐳ
ᐳCompoundKey"}}:::plan + PgClassExpression746{{"PgClassExpression[746∈6] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression747{{"PgClassExpression[747∈6] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan Constant32 & PgClassExpression746 & PgClassExpression747 --> List748 - PgSelect676[["PgSelect[676∈10] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan - Object12 -->|rejectNull| PgSelect676 - Access1848 --> PgSelect676 - List685{{"List[685∈10] ➊
ᐸ53,684ᐳ
ᐳInput"}}:::plan - PgClassExpression684{{"PgClassExpression[684∈10] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan + PgSelect676[["PgSelect[676∈6] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan + Object11 -->|rejectNull| PgSelect676 + Access1844 --> PgSelect676 + List685{{"List[685∈6] ➊
ᐸ53,684ᐳ
ᐳInput"}}:::plan + PgClassExpression684{{"PgClassExpression[684∈6] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan Constant53 & PgClassExpression684 --> List685 - PgSelect688[["PgSelect[688∈10] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan - Object12 -->|rejectNull| PgSelect688 - Access1848 --> PgSelect688 - List695{{"List[695∈10] ➊
ᐸ63,694ᐳ
ᐳPatch"}}:::plan - PgClassExpression694{{"PgClassExpression[694∈10] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan + PgSelect688[["PgSelect[688∈6] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan + Object11 -->|rejectNull| PgSelect688 + Access1844 --> PgSelect688 + List695{{"List[695∈6] ➊
ᐸ63,694ᐳ
ᐳPatch"}}:::plan + PgClassExpression694{{"PgClassExpression[694∈6] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan Constant63 & PgClassExpression694 --> List695 - PgSelect698[["PgSelect[698∈10] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan - Object12 -->|rejectNull| PgSelect698 - Access1848 --> PgSelect698 - List705{{"List[705∈10] ➊
ᐸ73,704ᐳ
ᐳReserved"}}:::plan - PgClassExpression704{{"PgClassExpression[704∈10] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan + PgSelect698[["PgSelect[698∈6] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan + Object11 -->|rejectNull| PgSelect698 + Access1844 --> PgSelect698 + List705{{"List[705∈6] ➊
ᐸ73,704ᐳ
ᐳReserved"}}:::plan + PgClassExpression704{{"PgClassExpression[704∈6] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan Constant73 & PgClassExpression704 --> List705 - PgSelect708[["PgSelect[708∈10] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan - Object12 -->|rejectNull| PgSelect708 - Access1848 --> PgSelect708 - List715{{"List[715∈10] ➊
ᐸ83,714ᐳ
ᐳReservedPatchRecord"}}:::plan - PgClassExpression714{{"PgClassExpression[714∈10] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan + PgSelect708[["PgSelect[708∈6] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan + Object11 -->|rejectNull| PgSelect708 + Access1844 --> PgSelect708 + List715{{"List[715∈6] ➊
ᐸ83,714ᐳ
ᐳReservedPatchRecord"}}:::plan + PgClassExpression714{{"PgClassExpression[714∈6] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan Constant83 & PgClassExpression714 --> List715 - PgSelect718[["PgSelect[718∈10] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan - Object12 -->|rejectNull| PgSelect718 - Access1848 --> PgSelect718 - List725{{"List[725∈10] ➊
ᐸ93,724ᐳ
ᐳReservedInputRecord"}}:::plan - PgClassExpression724{{"PgClassExpression[724∈10] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan + PgSelect718[["PgSelect[718∈6] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan + Object11 -->|rejectNull| PgSelect718 + Access1844 --> PgSelect718 + List725{{"List[725∈6] ➊
ᐸ93,724ᐳ
ᐳReservedInputRecord"}}:::plan + PgClassExpression724{{"PgClassExpression[724∈6] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan Constant93 & PgClassExpression724 --> List725 - PgSelect728[["PgSelect[728∈10] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan - Object12 -->|rejectNull| PgSelect728 - Access1848 --> PgSelect728 - List735{{"List[735∈10] ➊
ᐸ103,734ᐳ
ᐳDefaultValue"}}:::plan - PgClassExpression734{{"PgClassExpression[734∈10] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan + PgSelect728[["PgSelect[728∈6] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan + Object11 -->|rejectNull| PgSelect728 + Access1844 --> PgSelect728 + List735{{"List[735∈6] ➊
ᐸ103,734ᐳ
ᐳDefaultValue"}}:::plan + PgClassExpression734{{"PgClassExpression[734∈6] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan Constant103 & PgClassExpression734 --> List735 - PgSelect751[["PgSelect[751∈10] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan - Object12 -->|rejectNull| PgSelect751 - Access1848 --> PgSelect751 - List758{{"List[758∈10] ➊
ᐸ18,757ᐳ
ᐳPerson"}}:::plan - PgClassExpression757{{"PgClassExpression[757∈10] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelect751[["PgSelect[751∈6] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan + Object11 -->|rejectNull| PgSelect751 + Access1844 --> PgSelect751 + List758{{"List[758∈6] ➊
ᐸ18,757ᐳ
ᐳPerson"}}:::plan + PgClassExpression757{{"PgClassExpression[757∈6] ➊
ᐸ__person__.”id”ᐳ"}}:::plan Constant18 & PgClassExpression757 --> List758 - PgSelect762[["PgSelect[762∈10] ➊
ᐸpostᐳ
ᐳPost"]]:::plan - Object12 -->|rejectNull| PgSelect762 - Access1848 --> PgSelect762 - List769{{"List[769∈10] ➊
ᐸ137,768ᐳ
ᐳPost"}}:::plan - PgClassExpression768{{"PgClassExpression[768∈10] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelect762[["PgSelect[762∈6] ➊
ᐸpostᐳ
ᐳPost"]]:::plan + Object11 -->|rejectNull| PgSelect762 + Access1844 --> PgSelect762 + List769{{"List[769∈6] ➊
ᐸ137,768ᐳ
ᐳPost"}}:::plan + PgClassExpression768{{"PgClassExpression[768∈6] ➊
ᐸ__post__.”id”ᐳ"}}:::plan Constant137 & PgClassExpression768 --> List769 - PgSelect772[["PgSelect[772∈10] ➊
ᐸtypesᐳ
ᐳType"]]:::plan - Object12 -->|rejectNull| PgSelect772 - Access1848 --> PgSelect772 - List779{{"List[779∈10] ➊
ᐸ147,778ᐳ
ᐳType"}}:::plan - PgClassExpression778{{"PgClassExpression[778∈10] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + PgSelect772[["PgSelect[772∈6] ➊
ᐸtypesᐳ
ᐳType"]]:::plan + Object11 -->|rejectNull| PgSelect772 + Access1844 --> PgSelect772 + List779{{"List[779∈6] ➊
ᐸ147,778ᐳ
ᐳType"}}:::plan + PgClassExpression778{{"PgClassExpression[778∈6] ➊
ᐸ__types__.”id”ᐳ"}}:::plan Constant147 & PgClassExpression778 --> List779 - PgSelect782[["PgSelect[782∈10] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan - Object12 -->|rejectNull| PgSelect782 - Access1848 --> PgSelect782 - List789{{"List[789∈10] ➊
ᐸ157,788ᐳ
ᐳPersonSecret"}}:::plan - PgClassExpression788{{"PgClassExpression[788∈10] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan + PgSelect782[["PgSelect[782∈6] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan + Object11 -->|rejectNull| PgSelect782 + Access1844 --> PgSelect782 + List789{{"List[789∈6] ➊
ᐸ157,788ᐳ
ᐳPersonSecret"}}:::plan + PgClassExpression788{{"PgClassExpression[788∈6] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan Constant157 & PgClassExpression788 --> List789 - PgSelect792[["PgSelect[792∈10] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan - Object12 -->|rejectNull| PgSelect792 - Access1848 --> PgSelect792 - List799{{"List[799∈10] ➊
ᐸ167,798ᐳ
ᐳLeftArm"}}:::plan - PgClassExpression798{{"PgClassExpression[798∈10] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + PgSelect792[["PgSelect[792∈6] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan + Object11 -->|rejectNull| PgSelect792 + Access1844 --> PgSelect792 + List799{{"List[799∈6] ➊
ᐸ167,798ᐳ
ᐳLeftArm"}}:::plan + PgClassExpression798{{"PgClassExpression[798∈6] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan Constant167 & PgClassExpression798 --> List799 - PgSelect802[["PgSelect[802∈10] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan - Object12 -->|rejectNull| PgSelect802 - Access1848 --> PgSelect802 - List809{{"List[809∈10] ➊
ᐸ177,808ᐳ
ᐳMyTable"}}:::plan - PgClassExpression808{{"PgClassExpression[808∈10] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan + PgSelect802[["PgSelect[802∈6] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan + Object11 -->|rejectNull| PgSelect802 + Access1844 --> PgSelect802 + List809{{"List[809∈6] ➊
ᐸ177,808ᐳ
ᐳMyTable"}}:::plan + PgClassExpression808{{"PgClassExpression[808∈6] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan Constant177 & PgClassExpression808 --> List809 - PgSelect812[["PgSelect[812∈10] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan - Object12 -->|rejectNull| PgSelect812 - Access1848 --> PgSelect812 - List819{{"List[819∈10] ➊
ᐸ187,818ᐳ
ᐳViewTable"}}:::plan - PgClassExpression818{{"PgClassExpression[818∈10] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan + PgSelect812[["PgSelect[812∈6] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan + Object11 -->|rejectNull| PgSelect812 + Access1844 --> PgSelect812 + List819{{"List[819∈6] ➊
ᐸ187,818ᐳ
ᐳViewTable"}}:::plan + PgClassExpression818{{"PgClassExpression[818∈6] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan Constant187 & PgClassExpression818 --> List819 - PgSelect822[["PgSelect[822∈10] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan - Object12 -->|rejectNull| PgSelect822 - Access1848 --> PgSelect822 - List829{{"List[829∈10] ➊
ᐸ197,828ᐳ
ᐳSimilarTable1"}}:::plan - PgClassExpression828{{"PgClassExpression[828∈10] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan + PgSelect822[["PgSelect[822∈6] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan + Object11 -->|rejectNull| PgSelect822 + Access1844 --> PgSelect822 + List829{{"List[829∈6] ➊
ᐸ197,828ᐳ
ᐳSimilarTable1"}}:::plan + PgClassExpression828{{"PgClassExpression[828∈6] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan Constant197 & PgClassExpression828 --> List829 - PgSelect835[["PgSelect[835∈10] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan - Object12 -->|rejectNull| PgSelect835 - Access1848 --> PgSelect835 - List842{{"List[842∈10] ➊
ᐸ210,841ᐳ
ᐳSimilarTable2"}}:::plan - PgClassExpression841{{"PgClassExpression[841∈10] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan + PgSelect835[["PgSelect[835∈6] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan + Object11 -->|rejectNull| PgSelect835 + Access1844 --> PgSelect835 + List842{{"List[842∈6] ➊
ᐸ210,841ᐳ
ᐳSimilarTable2"}}:::plan + PgClassExpression841{{"PgClassExpression[841∈6] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan Constant210 & PgClassExpression841 --> List842 - PgSelect848[["PgSelect[848∈10] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan - Object12 -->|rejectNull| PgSelect848 - Access1848 --> PgSelect848 - List855{{"List[855∈10] ➊
ᐸ223,854ᐳ
ᐳNullTestRecord"}}:::plan - PgClassExpression854{{"PgClassExpression[854∈10] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan + PgSelect848[["PgSelect[848∈6] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan + Object11 -->|rejectNull| PgSelect848 + Access1844 --> PgSelect848 + List855{{"List[855∈6] ➊
ᐸ223,854ᐳ
ᐳNullTestRecord"}}:::plan + PgClassExpression854{{"PgClassExpression[854∈6] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan Constant223 & PgClassExpression854 --> List855 - PgSelect858[["PgSelect[858∈10] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan - Object12 -->|rejectNull| PgSelect858 - Access1848 --> PgSelect858 - List865{{"List[865∈10] ➊
ᐸ233,864ᐳ
ᐳIssue756"}}:::plan - PgClassExpression864{{"PgClassExpression[864∈10] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan + PgSelect858[["PgSelect[858∈6] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan + Object11 -->|rejectNull| PgSelect858 + Access1844 --> PgSelect858 + List865{{"List[865∈6] ➊
ᐸ233,864ᐳ
ᐳIssue756"}}:::plan + PgClassExpression864{{"PgClassExpression[864∈6] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan Constant233 & PgClassExpression864 --> List865 - PgSelect868[["PgSelect[868∈10] ➊
ᐸlistsᐳ
ᐳList"]]:::plan - Object12 -->|rejectNull| PgSelect868 - Access1848 --> PgSelect868 - List875{{"List[875∈10] ➊
ᐸ243,874ᐳ
ᐳList"}}:::plan - PgClassExpression874{{"PgClassExpression[874∈10] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan + PgSelect868[["PgSelect[868∈6] ➊
ᐸlistsᐳ
ᐳList"]]:::plan + Object11 -->|rejectNull| PgSelect868 + Access1844 --> PgSelect868 + List875{{"List[875∈6] ➊
ᐸ243,874ᐳ
ᐳList"}}:::plan + PgClassExpression874{{"PgClassExpression[874∈6] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan Constant243 & PgClassExpression874 --> List875 - Lambda672{{"Lambda[672∈10] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan + Lambda672{{"Lambda[672∈6] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan Constant41 --> Lambda672 - First680{{"First[680∈10] ➊"}}:::plan - PgSelectRows681[["PgSelectRows[681∈10] ➊"]]:::plan + First680{{"First[680∈6] ➊"}}:::plan + PgSelectRows681[["PgSelectRows[681∈6] ➊"]]:::plan PgSelectRows681 --> First680 PgSelect676 --> PgSelectRows681 - PgSelectSingle682{{"PgSelectSingle[682∈10] ➊
ᐸinputsᐳ"}}:::plan + PgSelectSingle682{{"PgSelectSingle[682∈6] ➊
ᐸinputsᐳ"}}:::plan First680 --> PgSelectSingle682 PgSelectSingle682 --> PgClassExpression684 - Lambda686{{"Lambda[686∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda686{{"Lambda[686∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List685 --> Lambda686 - First690{{"First[690∈10] ➊"}}:::plan - PgSelectRows691[["PgSelectRows[691∈10] ➊"]]:::plan + First690{{"First[690∈6] ➊"}}:::plan + PgSelectRows691[["PgSelectRows[691∈6] ➊"]]:::plan PgSelectRows691 --> First690 PgSelect688 --> PgSelectRows691 - PgSelectSingle692{{"PgSelectSingle[692∈10] ➊
ᐸpatchsᐳ"}}:::plan + PgSelectSingle692{{"PgSelectSingle[692∈6] ➊
ᐸpatchsᐳ"}}:::plan First690 --> PgSelectSingle692 PgSelectSingle692 --> PgClassExpression694 - Lambda696{{"Lambda[696∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda696{{"Lambda[696∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List695 --> Lambda696 - First700{{"First[700∈10] ➊"}}:::plan - PgSelectRows701[["PgSelectRows[701∈10] ➊"]]:::plan + First700{{"First[700∈6] ➊"}}:::plan + PgSelectRows701[["PgSelectRows[701∈6] ➊"]]:::plan PgSelectRows701 --> First700 PgSelect698 --> PgSelectRows701 - PgSelectSingle702{{"PgSelectSingle[702∈10] ➊
ᐸreservedᐳ"}}:::plan + PgSelectSingle702{{"PgSelectSingle[702∈6] ➊
ᐸreservedᐳ"}}:::plan First700 --> PgSelectSingle702 PgSelectSingle702 --> PgClassExpression704 - Lambda706{{"Lambda[706∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda706{{"Lambda[706∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List705 --> Lambda706 - First710{{"First[710∈10] ➊"}}:::plan - PgSelectRows711[["PgSelectRows[711∈10] ➊"]]:::plan + First710{{"First[710∈6] ➊"}}:::plan + PgSelectRows711[["PgSelectRows[711∈6] ➊"]]:::plan PgSelectRows711 --> First710 PgSelect708 --> PgSelectRows711 - PgSelectSingle712{{"PgSelectSingle[712∈10] ➊
ᐸreservedPatchsᐳ"}}:::plan + PgSelectSingle712{{"PgSelectSingle[712∈6] ➊
ᐸreservedPatchsᐳ"}}:::plan First710 --> PgSelectSingle712 PgSelectSingle712 --> PgClassExpression714 - Lambda716{{"Lambda[716∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda716{{"Lambda[716∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List715 --> Lambda716 - First720{{"First[720∈10] ➊"}}:::plan - PgSelectRows721[["PgSelectRows[721∈10] ➊"]]:::plan + First720{{"First[720∈6] ➊"}}:::plan + PgSelectRows721[["PgSelectRows[721∈6] ➊"]]:::plan PgSelectRows721 --> First720 PgSelect718 --> PgSelectRows721 - PgSelectSingle722{{"PgSelectSingle[722∈10] ➊
ᐸreserved_inputᐳ"}}:::plan + PgSelectSingle722{{"PgSelectSingle[722∈6] ➊
ᐸreserved_inputᐳ"}}:::plan First720 --> PgSelectSingle722 PgSelectSingle722 --> PgClassExpression724 - Lambda726{{"Lambda[726∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda726{{"Lambda[726∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List725 --> Lambda726 - First730{{"First[730∈10] ➊"}}:::plan - PgSelectRows731[["PgSelectRows[731∈10] ➊"]]:::plan + First730{{"First[730∈6] ➊"}}:::plan + PgSelectRows731[["PgSelectRows[731∈6] ➊"]]:::plan PgSelectRows731 --> First730 PgSelect728 --> PgSelectRows731 - PgSelectSingle732{{"PgSelectSingle[732∈10] ➊
ᐸdefault_valueᐳ"}}:::plan + PgSelectSingle732{{"PgSelectSingle[732∈6] ➊
ᐸdefault_valueᐳ"}}:::plan First730 --> PgSelectSingle732 PgSelectSingle732 --> PgClassExpression734 - Lambda736{{"Lambda[736∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda736{{"Lambda[736∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List735 --> Lambda736 - First742{{"First[742∈10] ➊"}}:::plan - PgSelectRows743[["PgSelectRows[743∈10] ➊"]]:::plan + First742{{"First[742∈6] ➊"}}:::plan + PgSelectRows743[["PgSelectRows[743∈6] ➊"]]:::plan PgSelectRows743 --> First742 PgSelect740 --> PgSelectRows743 - PgSelectSingle744{{"PgSelectSingle[744∈10] ➊
ᐸcompound_keyᐳ"}}:::plan + PgSelectSingle744{{"PgSelectSingle[744∈6] ➊
ᐸcompound_keyᐳ"}}:::plan First742 --> PgSelectSingle744 PgSelectSingle744 --> PgClassExpression746 PgSelectSingle744 --> PgClassExpression747 - Lambda749{{"Lambda[749∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda749{{"Lambda[749∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List748 --> Lambda749 - First753{{"First[753∈10] ➊"}}:::plan - PgSelectRows754[["PgSelectRows[754∈10] ➊"]]:::plan + First753{{"First[753∈6] ➊"}}:::plan + PgSelectRows754[["PgSelectRows[754∈6] ➊"]]:::plan PgSelectRows754 --> First753 PgSelect751 --> PgSelectRows754 - PgSelectSingle755{{"PgSelectSingle[755∈10] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle755{{"PgSelectSingle[755∈6] ➊
ᐸpersonᐳ"}}:::plan First753 --> PgSelectSingle755 PgSelectSingle755 --> PgClassExpression757 - Lambda759{{"Lambda[759∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda759{{"Lambda[759∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List758 --> Lambda759 - PgClassExpression760{{"PgClassExpression[760∈10] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression760{{"PgClassExpression[760∈6] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle755 --> PgClassExpression760 - First764{{"First[764∈10] ➊"}}:::plan - PgSelectRows765[["PgSelectRows[765∈10] ➊"]]:::plan + First764{{"First[764∈6] ➊"}}:::plan + PgSelectRows765[["PgSelectRows[765∈6] ➊"]]:::plan PgSelectRows765 --> First764 PgSelect762 --> PgSelectRows765 - PgSelectSingle766{{"PgSelectSingle[766∈10] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle766{{"PgSelectSingle[766∈6] ➊
ᐸpostᐳ"}}:::plan First764 --> PgSelectSingle766 PgSelectSingle766 --> PgClassExpression768 - Lambda770{{"Lambda[770∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda770{{"Lambda[770∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List769 --> Lambda770 - First774{{"First[774∈10] ➊"}}:::plan - PgSelectRows775[["PgSelectRows[775∈10] ➊"]]:::plan + First774{{"First[774∈6] ➊"}}:::plan + PgSelectRows775[["PgSelectRows[775∈6] ➊"]]:::plan PgSelectRows775 --> First774 PgSelect772 --> PgSelectRows775 - PgSelectSingle776{{"PgSelectSingle[776∈10] ➊
ᐸtypesᐳ"}}:::plan + PgSelectSingle776{{"PgSelectSingle[776∈6] ➊
ᐸtypesᐳ"}}:::plan First774 --> PgSelectSingle776 PgSelectSingle776 --> PgClassExpression778 - Lambda780{{"Lambda[780∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda780{{"Lambda[780∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List779 --> Lambda780 - First784{{"First[784∈10] ➊"}}:::plan - PgSelectRows785[["PgSelectRows[785∈10] ➊"]]:::plan + First784{{"First[784∈6] ➊"}}:::plan + PgSelectRows785[["PgSelectRows[785∈6] ➊"]]:::plan PgSelectRows785 --> First784 PgSelect782 --> PgSelectRows785 - PgSelectSingle786{{"PgSelectSingle[786∈10] ➊
ᐸperson_secretᐳ"}}:::plan + PgSelectSingle786{{"PgSelectSingle[786∈6] ➊
ᐸperson_secretᐳ"}}:::plan First784 --> PgSelectSingle786 PgSelectSingle786 --> PgClassExpression788 - Lambda790{{"Lambda[790∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda790{{"Lambda[790∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List789 --> Lambda790 - First794{{"First[794∈10] ➊"}}:::plan - PgSelectRows795[["PgSelectRows[795∈10] ➊"]]:::plan + First794{{"First[794∈6] ➊"}}:::plan + PgSelectRows795[["PgSelectRows[795∈6] ➊"]]:::plan PgSelectRows795 --> First794 PgSelect792 --> PgSelectRows795 - PgSelectSingle796{{"PgSelectSingle[796∈10] ➊
ᐸleft_armᐳ"}}:::plan + PgSelectSingle796{{"PgSelectSingle[796∈6] ➊
ᐸleft_armᐳ"}}:::plan First794 --> PgSelectSingle796 PgSelectSingle796 --> PgClassExpression798 - Lambda800{{"Lambda[800∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda800{{"Lambda[800∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List799 --> Lambda800 - First804{{"First[804∈10] ➊"}}:::plan - PgSelectRows805[["PgSelectRows[805∈10] ➊"]]:::plan + First804{{"First[804∈6] ➊"}}:::plan + PgSelectRows805[["PgSelectRows[805∈6] ➊"]]:::plan PgSelectRows805 --> First804 PgSelect802 --> PgSelectRows805 - PgSelectSingle806{{"PgSelectSingle[806∈10] ➊
ᐸmy_tableᐳ"}}:::plan + PgSelectSingle806{{"PgSelectSingle[806∈6] ➊
ᐸmy_tableᐳ"}}:::plan First804 --> PgSelectSingle806 PgSelectSingle806 --> PgClassExpression808 - Lambda810{{"Lambda[810∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda810{{"Lambda[810∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List809 --> Lambda810 - First814{{"First[814∈10] ➊"}}:::plan - PgSelectRows815[["PgSelectRows[815∈10] ➊"]]:::plan + First814{{"First[814∈6] ➊"}}:::plan + PgSelectRows815[["PgSelectRows[815∈6] ➊"]]:::plan PgSelectRows815 --> First814 PgSelect812 --> PgSelectRows815 - PgSelectSingle816{{"PgSelectSingle[816∈10] ➊
ᐸview_tableᐳ"}}:::plan + PgSelectSingle816{{"PgSelectSingle[816∈6] ➊
ᐸview_tableᐳ"}}:::plan First814 --> PgSelectSingle816 PgSelectSingle816 --> PgClassExpression818 - Lambda820{{"Lambda[820∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda820{{"Lambda[820∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List819 --> Lambda820 - First824{{"First[824∈10] ➊"}}:::plan - PgSelectRows825[["PgSelectRows[825∈10] ➊"]]:::plan + First824{{"First[824∈6] ➊"}}:::plan + PgSelectRows825[["PgSelectRows[825∈6] ➊"]]:::plan PgSelectRows825 --> First824 PgSelect822 --> PgSelectRows825 - PgSelectSingle826{{"PgSelectSingle[826∈10] ➊
ᐸsimilar_table_1ᐳ"}}:::plan + PgSelectSingle826{{"PgSelectSingle[826∈6] ➊
ᐸsimilar_table_1ᐳ"}}:::plan First824 --> PgSelectSingle826 PgSelectSingle826 --> PgClassExpression828 - Lambda830{{"Lambda[830∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda830{{"Lambda[830∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List829 --> Lambda830 - PgClassExpression831{{"PgClassExpression[831∈10] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan + PgClassExpression831{{"PgClassExpression[831∈6] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan PgSelectSingle826 --> PgClassExpression831 - PgClassExpression832{{"PgClassExpression[832∈10] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan + PgClassExpression832{{"PgClassExpression[832∈6] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan PgSelectSingle826 --> PgClassExpression832 - PgClassExpression833{{"PgClassExpression[833∈10] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan + PgClassExpression833{{"PgClassExpression[833∈6] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan PgSelectSingle826 --> PgClassExpression833 - First837{{"First[837∈10] ➊"}}:::plan - PgSelectRows838[["PgSelectRows[838∈10] ➊"]]:::plan + First837{{"First[837∈6] ➊"}}:::plan + PgSelectRows838[["PgSelectRows[838∈6] ➊"]]:::plan PgSelectRows838 --> First837 PgSelect835 --> PgSelectRows838 - PgSelectSingle839{{"PgSelectSingle[839∈10] ➊
ᐸsimilar_table_2ᐳ"}}:::plan + PgSelectSingle839{{"PgSelectSingle[839∈6] ➊
ᐸsimilar_table_2ᐳ"}}:::plan First837 --> PgSelectSingle839 PgSelectSingle839 --> PgClassExpression841 - Lambda843{{"Lambda[843∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda843{{"Lambda[843∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List842 --> Lambda843 - PgClassExpression844{{"PgClassExpression[844∈10] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan + PgClassExpression844{{"PgClassExpression[844∈6] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan PgSelectSingle839 --> PgClassExpression844 - PgClassExpression845{{"PgClassExpression[845∈10] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan + PgClassExpression845{{"PgClassExpression[845∈6] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan PgSelectSingle839 --> PgClassExpression845 - PgClassExpression846{{"PgClassExpression[846∈10] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan + PgClassExpression846{{"PgClassExpression[846∈6] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan PgSelectSingle839 --> PgClassExpression846 - First850{{"First[850∈10] ➊"}}:::plan - PgSelectRows851[["PgSelectRows[851∈10] ➊"]]:::plan + First850{{"First[850∈6] ➊"}}:::plan + PgSelectRows851[["PgSelectRows[851∈6] ➊"]]:::plan PgSelectRows851 --> First850 PgSelect848 --> PgSelectRows851 - PgSelectSingle852{{"PgSelectSingle[852∈10] ➊
ᐸnull_test_recordᐳ"}}:::plan + PgSelectSingle852{{"PgSelectSingle[852∈6] ➊
ᐸnull_test_recordᐳ"}}:::plan First850 --> PgSelectSingle852 PgSelectSingle852 --> PgClassExpression854 - Lambda856{{"Lambda[856∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda856{{"Lambda[856∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List855 --> Lambda856 - First860{{"First[860∈10] ➊"}}:::plan - PgSelectRows861[["PgSelectRows[861∈10] ➊"]]:::plan + First860{{"First[860∈6] ➊"}}:::plan + PgSelectRows861[["PgSelectRows[861∈6] ➊"]]:::plan PgSelectRows861 --> First860 PgSelect858 --> PgSelectRows861 - PgSelectSingle862{{"PgSelectSingle[862∈10] ➊
ᐸissue756ᐳ"}}:::plan + PgSelectSingle862{{"PgSelectSingle[862∈6] ➊
ᐸissue756ᐳ"}}:::plan First860 --> PgSelectSingle862 PgSelectSingle862 --> PgClassExpression864 - Lambda866{{"Lambda[866∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda866{{"Lambda[866∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List865 --> Lambda866 - First870{{"First[870∈10] ➊"}}:::plan - PgSelectRows871[["PgSelectRows[871∈10] ➊"]]:::plan + First870{{"First[870∈6] ➊"}}:::plan + PgSelectRows871[["PgSelectRows[871∈6] ➊"]]:::plan PgSelectRows871 --> First870 PgSelect868 --> PgSelectRows871 - PgSelectSingle872{{"PgSelectSingle[872∈10] ➊
ᐸlistsᐳ"}}:::plan + PgSelectSingle872{{"PgSelectSingle[872∈6] ➊
ᐸlistsᐳ"}}:::plan First870 --> PgSelectSingle872 PgSelectSingle872 --> PgClassExpression874 - Lambda876{{"Lambda[876∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda876{{"Lambda[876∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List875 --> Lambda876 - Lambda669 --> Access1848 - Lambda669 --> Access1849 - PgSelect950[["PgSelect[950∈11] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan - Access1851{{"Access[1851∈11] ➊
ᐸ879.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan - Access1852{{"Access[1852∈11] ➊
ᐸ879.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan - Object12 -->|rejectNull| PgSelect950 - Access1851 -->|rejectNull| PgSelect950 - Access1852 --> PgSelect950 - List958{{"List[958∈11] ➊
ᐸ32,956,957ᐳ
ᐳCompoundKey"}}:::plan - PgClassExpression956{{"PgClassExpression[956∈11] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression957{{"PgClassExpression[957∈11] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Lambda669 --> Access1844 + Lambda669 --> Access1845 + PgSelect950[["PgSelect[950∈7] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan + Access1847{{"Access[1847∈7] ➊
ᐸ879.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan + Access1848{{"Access[1848∈7] ➊
ᐸ879.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan + Object11 -->|rejectNull| PgSelect950 + Access1847 -->|rejectNull| PgSelect950 + Access1848 --> PgSelect950 + List958{{"List[958∈7] ➊
ᐸ32,956,957ᐳ
ᐳCompoundKey"}}:::plan + PgClassExpression956{{"PgClassExpression[956∈7] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression957{{"PgClassExpression[957∈7] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan Constant32 & PgClassExpression956 & PgClassExpression957 --> List958 - PgSelect886[["PgSelect[886∈11] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan - Object12 -->|rejectNull| PgSelect886 - Access1851 --> PgSelect886 - List895{{"List[895∈11] ➊
ᐸ53,894ᐳ
ᐳInput"}}:::plan - PgClassExpression894{{"PgClassExpression[894∈11] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan + PgSelect886[["PgSelect[886∈7] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan + Object11 -->|rejectNull| PgSelect886 + Access1847 --> PgSelect886 + List895{{"List[895∈7] ➊
ᐸ53,894ᐳ
ᐳInput"}}:::plan + PgClassExpression894{{"PgClassExpression[894∈7] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan Constant53 & PgClassExpression894 --> List895 - PgSelect898[["PgSelect[898∈11] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan - Object12 -->|rejectNull| PgSelect898 - Access1851 --> PgSelect898 - List905{{"List[905∈11] ➊
ᐸ63,904ᐳ
ᐳPatch"}}:::plan - PgClassExpression904{{"PgClassExpression[904∈11] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan + PgSelect898[["PgSelect[898∈7] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan + Object11 -->|rejectNull| PgSelect898 + Access1847 --> PgSelect898 + List905{{"List[905∈7] ➊
ᐸ63,904ᐳ
ᐳPatch"}}:::plan + PgClassExpression904{{"PgClassExpression[904∈7] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan Constant63 & PgClassExpression904 --> List905 - PgSelect908[["PgSelect[908∈11] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan - Object12 -->|rejectNull| PgSelect908 - Access1851 --> PgSelect908 - List915{{"List[915∈11] ➊
ᐸ73,914ᐳ
ᐳReserved"}}:::plan - PgClassExpression914{{"PgClassExpression[914∈11] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan + PgSelect908[["PgSelect[908∈7] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan + Object11 -->|rejectNull| PgSelect908 + Access1847 --> PgSelect908 + List915{{"List[915∈7] ➊
ᐸ73,914ᐳ
ᐳReserved"}}:::plan + PgClassExpression914{{"PgClassExpression[914∈7] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan Constant73 & PgClassExpression914 --> List915 - PgSelect918[["PgSelect[918∈11] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan - Object12 -->|rejectNull| PgSelect918 - Access1851 --> PgSelect918 - List925{{"List[925∈11] ➊
ᐸ83,924ᐳ
ᐳReservedPatchRecord"}}:::plan - PgClassExpression924{{"PgClassExpression[924∈11] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan + PgSelect918[["PgSelect[918∈7] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan + Object11 -->|rejectNull| PgSelect918 + Access1847 --> PgSelect918 + List925{{"List[925∈7] ➊
ᐸ83,924ᐳ
ᐳReservedPatchRecord"}}:::plan + PgClassExpression924{{"PgClassExpression[924∈7] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan Constant83 & PgClassExpression924 --> List925 - PgSelect928[["PgSelect[928∈11] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan - Object12 -->|rejectNull| PgSelect928 - Access1851 --> PgSelect928 - List935{{"List[935∈11] ➊
ᐸ93,934ᐳ
ᐳReservedInputRecord"}}:::plan - PgClassExpression934{{"PgClassExpression[934∈11] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan + PgSelect928[["PgSelect[928∈7] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan + Object11 -->|rejectNull| PgSelect928 + Access1847 --> PgSelect928 + List935{{"List[935∈7] ➊
ᐸ93,934ᐳ
ᐳReservedInputRecord"}}:::plan + PgClassExpression934{{"PgClassExpression[934∈7] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan Constant93 & PgClassExpression934 --> List935 - PgSelect938[["PgSelect[938∈11] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan - Object12 -->|rejectNull| PgSelect938 - Access1851 --> PgSelect938 - List945{{"List[945∈11] ➊
ᐸ103,944ᐳ
ᐳDefaultValue"}}:::plan - PgClassExpression944{{"PgClassExpression[944∈11] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan + PgSelect938[["PgSelect[938∈7] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan + Object11 -->|rejectNull| PgSelect938 + Access1847 --> PgSelect938 + List945{{"List[945∈7] ➊
ᐸ103,944ᐳ
ᐳDefaultValue"}}:::plan + PgClassExpression944{{"PgClassExpression[944∈7] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan Constant103 & PgClassExpression944 --> List945 - PgSelect961[["PgSelect[961∈11] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan - Object12 -->|rejectNull| PgSelect961 - Access1851 --> PgSelect961 - List968{{"List[968∈11] ➊
ᐸ18,967ᐳ
ᐳPerson"}}:::plan - PgClassExpression967{{"PgClassExpression[967∈11] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelect961[["PgSelect[961∈7] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan + Object11 -->|rejectNull| PgSelect961 + Access1847 --> PgSelect961 + List968{{"List[968∈7] ➊
ᐸ18,967ᐳ
ᐳPerson"}}:::plan + PgClassExpression967{{"PgClassExpression[967∈7] ➊
ᐸ__person__.”id”ᐳ"}}:::plan Constant18 & PgClassExpression967 --> List968 - PgSelect972[["PgSelect[972∈11] ➊
ᐸpostᐳ
ᐳPost"]]:::plan - Object12 -->|rejectNull| PgSelect972 - Access1851 --> PgSelect972 - List979{{"List[979∈11] ➊
ᐸ137,978ᐳ
ᐳPost"}}:::plan - PgClassExpression978{{"PgClassExpression[978∈11] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelect972[["PgSelect[972∈7] ➊
ᐸpostᐳ
ᐳPost"]]:::plan + Object11 -->|rejectNull| PgSelect972 + Access1847 --> PgSelect972 + List979{{"List[979∈7] ➊
ᐸ137,978ᐳ
ᐳPost"}}:::plan + PgClassExpression978{{"PgClassExpression[978∈7] ➊
ᐸ__post__.”id”ᐳ"}}:::plan Constant137 & PgClassExpression978 --> List979 - PgSelect982[["PgSelect[982∈11] ➊
ᐸtypesᐳ
ᐳType"]]:::plan - Object12 -->|rejectNull| PgSelect982 - Access1851 --> PgSelect982 - List989{{"List[989∈11] ➊
ᐸ147,988ᐳ
ᐳType"}}:::plan - PgClassExpression988{{"PgClassExpression[988∈11] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + PgSelect982[["PgSelect[982∈7] ➊
ᐸtypesᐳ
ᐳType"]]:::plan + Object11 -->|rejectNull| PgSelect982 + Access1847 --> PgSelect982 + List989{{"List[989∈7] ➊
ᐸ147,988ᐳ
ᐳType"}}:::plan + PgClassExpression988{{"PgClassExpression[988∈7] ➊
ᐸ__types__.”id”ᐳ"}}:::plan Constant147 & PgClassExpression988 --> List989 - PgSelect992[["PgSelect[992∈11] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan - Object12 -->|rejectNull| PgSelect992 - Access1851 --> PgSelect992 - List999{{"List[999∈11] ➊
ᐸ157,998ᐳ
ᐳPersonSecret"}}:::plan - PgClassExpression998{{"PgClassExpression[998∈11] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan + PgSelect992[["PgSelect[992∈7] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan + Object11 -->|rejectNull| PgSelect992 + Access1847 --> PgSelect992 + List999{{"List[999∈7] ➊
ᐸ157,998ᐳ
ᐳPersonSecret"}}:::plan + PgClassExpression998{{"PgClassExpression[998∈7] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan Constant157 & PgClassExpression998 --> List999 - PgSelect1002[["PgSelect[1002∈11] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan - Object12 -->|rejectNull| PgSelect1002 - Access1851 --> PgSelect1002 - List1009{{"List[1009∈11] ➊
ᐸ167,1008ᐳ
ᐳLeftArm"}}:::plan - PgClassExpression1008{{"PgClassExpression[1008∈11] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + PgSelect1002[["PgSelect[1002∈7] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan + Object11 -->|rejectNull| PgSelect1002 + Access1847 --> PgSelect1002 + List1009{{"List[1009∈7] ➊
ᐸ167,1008ᐳ
ᐳLeftArm"}}:::plan + PgClassExpression1008{{"PgClassExpression[1008∈7] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan Constant167 & PgClassExpression1008 --> List1009 - PgSelect1012[["PgSelect[1012∈11] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan - Object12 -->|rejectNull| PgSelect1012 - Access1851 --> PgSelect1012 - List1019{{"List[1019∈11] ➊
ᐸ177,1018ᐳ
ᐳMyTable"}}:::plan - PgClassExpression1018{{"PgClassExpression[1018∈11] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan + PgSelect1012[["PgSelect[1012∈7] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan + Object11 -->|rejectNull| PgSelect1012 + Access1847 --> PgSelect1012 + List1019{{"List[1019∈7] ➊
ᐸ177,1018ᐳ
ᐳMyTable"}}:::plan + PgClassExpression1018{{"PgClassExpression[1018∈7] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan Constant177 & PgClassExpression1018 --> List1019 - PgSelect1022[["PgSelect[1022∈11] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan - Object12 -->|rejectNull| PgSelect1022 - Access1851 --> PgSelect1022 - List1029{{"List[1029∈11] ➊
ᐸ187,1028ᐳ
ᐳViewTable"}}:::plan - PgClassExpression1028{{"PgClassExpression[1028∈11] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan + PgSelect1022[["PgSelect[1022∈7] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan + Object11 -->|rejectNull| PgSelect1022 + Access1847 --> PgSelect1022 + List1029{{"List[1029∈7] ➊
ᐸ187,1028ᐳ
ᐳViewTable"}}:::plan + PgClassExpression1028{{"PgClassExpression[1028∈7] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan Constant187 & PgClassExpression1028 --> List1029 - PgSelect1032[["PgSelect[1032∈11] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan - Object12 -->|rejectNull| PgSelect1032 - Access1851 --> PgSelect1032 - List1039{{"List[1039∈11] ➊
ᐸ197,1038ᐳ
ᐳSimilarTable1"}}:::plan - PgClassExpression1038{{"PgClassExpression[1038∈11] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan + PgSelect1032[["PgSelect[1032∈7] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan + Object11 -->|rejectNull| PgSelect1032 + Access1847 --> PgSelect1032 + List1039{{"List[1039∈7] ➊
ᐸ197,1038ᐳ
ᐳSimilarTable1"}}:::plan + PgClassExpression1038{{"PgClassExpression[1038∈7] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan Constant197 & PgClassExpression1038 --> List1039 - PgSelect1045[["PgSelect[1045∈11] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan - Object12 -->|rejectNull| PgSelect1045 - Access1851 --> PgSelect1045 - List1052{{"List[1052∈11] ➊
ᐸ210,1051ᐳ
ᐳSimilarTable2"}}:::plan - PgClassExpression1051{{"PgClassExpression[1051∈11] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan + PgSelect1045[["PgSelect[1045∈7] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan + Object11 -->|rejectNull| PgSelect1045 + Access1847 --> PgSelect1045 + List1052{{"List[1052∈7] ➊
ᐸ210,1051ᐳ
ᐳSimilarTable2"}}:::plan + PgClassExpression1051{{"PgClassExpression[1051∈7] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan Constant210 & PgClassExpression1051 --> List1052 - PgSelect1058[["PgSelect[1058∈11] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan - Object12 -->|rejectNull| PgSelect1058 - Access1851 --> PgSelect1058 - List1065{{"List[1065∈11] ➊
ᐸ223,1064ᐳ
ᐳNullTestRecord"}}:::plan - PgClassExpression1064{{"PgClassExpression[1064∈11] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan + PgSelect1058[["PgSelect[1058∈7] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan + Object11 -->|rejectNull| PgSelect1058 + Access1847 --> PgSelect1058 + List1065{{"List[1065∈7] ➊
ᐸ223,1064ᐳ
ᐳNullTestRecord"}}:::plan + PgClassExpression1064{{"PgClassExpression[1064∈7] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan Constant223 & PgClassExpression1064 --> List1065 - PgSelect1068[["PgSelect[1068∈11] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan - Object12 -->|rejectNull| PgSelect1068 - Access1851 --> PgSelect1068 - List1075{{"List[1075∈11] ➊
ᐸ233,1074ᐳ
ᐳIssue756"}}:::plan - PgClassExpression1074{{"PgClassExpression[1074∈11] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan + PgSelect1068[["PgSelect[1068∈7] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan + Object11 -->|rejectNull| PgSelect1068 + Access1847 --> PgSelect1068 + List1075{{"List[1075∈7] ➊
ᐸ233,1074ᐳ
ᐳIssue756"}}:::plan + PgClassExpression1074{{"PgClassExpression[1074∈7] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan Constant233 & PgClassExpression1074 --> List1075 - PgSelect1078[["PgSelect[1078∈11] ➊
ᐸlistsᐳ
ᐳList"]]:::plan - Object12 -->|rejectNull| PgSelect1078 - Access1851 --> PgSelect1078 - List1085{{"List[1085∈11] ➊
ᐸ243,1084ᐳ
ᐳList"}}:::plan - PgClassExpression1084{{"PgClassExpression[1084∈11] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan + PgSelect1078[["PgSelect[1078∈7] ➊
ᐸlistsᐳ
ᐳList"]]:::plan + Object11 -->|rejectNull| PgSelect1078 + Access1847 --> PgSelect1078 + List1085{{"List[1085∈7] ➊
ᐸ243,1084ᐳ
ᐳList"}}:::plan + PgClassExpression1084{{"PgClassExpression[1084∈7] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan Constant243 & PgClassExpression1084 --> List1085 - Lambda882{{"Lambda[882∈11] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan + Lambda882{{"Lambda[882∈7] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan Constant41 --> Lambda882 - First890{{"First[890∈11] ➊"}}:::plan - PgSelectRows891[["PgSelectRows[891∈11] ➊"]]:::plan + First890{{"First[890∈7] ➊"}}:::plan + PgSelectRows891[["PgSelectRows[891∈7] ➊"]]:::plan PgSelectRows891 --> First890 PgSelect886 --> PgSelectRows891 - PgSelectSingle892{{"PgSelectSingle[892∈11] ➊
ᐸinputsᐳ"}}:::plan + PgSelectSingle892{{"PgSelectSingle[892∈7] ➊
ᐸinputsᐳ"}}:::plan First890 --> PgSelectSingle892 PgSelectSingle892 --> PgClassExpression894 - Lambda896{{"Lambda[896∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda896{{"Lambda[896∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List895 --> Lambda896 - First900{{"First[900∈11] ➊"}}:::plan - PgSelectRows901[["PgSelectRows[901∈11] ➊"]]:::plan + First900{{"First[900∈7] ➊"}}:::plan + PgSelectRows901[["PgSelectRows[901∈7] ➊"]]:::plan PgSelectRows901 --> First900 PgSelect898 --> PgSelectRows901 - PgSelectSingle902{{"PgSelectSingle[902∈11] ➊
ᐸpatchsᐳ"}}:::plan + PgSelectSingle902{{"PgSelectSingle[902∈7] ➊
ᐸpatchsᐳ"}}:::plan First900 --> PgSelectSingle902 PgSelectSingle902 --> PgClassExpression904 - Lambda906{{"Lambda[906∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda906{{"Lambda[906∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List905 --> Lambda906 - First910{{"First[910∈11] ➊"}}:::plan - PgSelectRows911[["PgSelectRows[911∈11] ➊"]]:::plan + First910{{"First[910∈7] ➊"}}:::plan + PgSelectRows911[["PgSelectRows[911∈7] ➊"]]:::plan PgSelectRows911 --> First910 PgSelect908 --> PgSelectRows911 - PgSelectSingle912{{"PgSelectSingle[912∈11] ➊
ᐸreservedᐳ"}}:::plan + PgSelectSingle912{{"PgSelectSingle[912∈7] ➊
ᐸreservedᐳ"}}:::plan First910 --> PgSelectSingle912 PgSelectSingle912 --> PgClassExpression914 - Lambda916{{"Lambda[916∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda916{{"Lambda[916∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List915 --> Lambda916 - First920{{"First[920∈11] ➊"}}:::plan - PgSelectRows921[["PgSelectRows[921∈11] ➊"]]:::plan + First920{{"First[920∈7] ➊"}}:::plan + PgSelectRows921[["PgSelectRows[921∈7] ➊"]]:::plan PgSelectRows921 --> First920 PgSelect918 --> PgSelectRows921 - PgSelectSingle922{{"PgSelectSingle[922∈11] ➊
ᐸreservedPatchsᐳ"}}:::plan + PgSelectSingle922{{"PgSelectSingle[922∈7] ➊
ᐸreservedPatchsᐳ"}}:::plan First920 --> PgSelectSingle922 PgSelectSingle922 --> PgClassExpression924 - Lambda926{{"Lambda[926∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda926{{"Lambda[926∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List925 --> Lambda926 - First930{{"First[930∈11] ➊"}}:::plan - PgSelectRows931[["PgSelectRows[931∈11] ➊"]]:::plan + First930{{"First[930∈7] ➊"}}:::plan + PgSelectRows931[["PgSelectRows[931∈7] ➊"]]:::plan PgSelectRows931 --> First930 PgSelect928 --> PgSelectRows931 - PgSelectSingle932{{"PgSelectSingle[932∈11] ➊
ᐸreserved_inputᐳ"}}:::plan + PgSelectSingle932{{"PgSelectSingle[932∈7] ➊
ᐸreserved_inputᐳ"}}:::plan First930 --> PgSelectSingle932 PgSelectSingle932 --> PgClassExpression934 - Lambda936{{"Lambda[936∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda936{{"Lambda[936∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List935 --> Lambda936 - First940{{"First[940∈11] ➊"}}:::plan - PgSelectRows941[["PgSelectRows[941∈11] ➊"]]:::plan + First940{{"First[940∈7] ➊"}}:::plan + PgSelectRows941[["PgSelectRows[941∈7] ➊"]]:::plan PgSelectRows941 --> First940 PgSelect938 --> PgSelectRows941 - PgSelectSingle942{{"PgSelectSingle[942∈11] ➊
ᐸdefault_valueᐳ"}}:::plan + PgSelectSingle942{{"PgSelectSingle[942∈7] ➊
ᐸdefault_valueᐳ"}}:::plan First940 --> PgSelectSingle942 PgSelectSingle942 --> PgClassExpression944 - Lambda946{{"Lambda[946∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda946{{"Lambda[946∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List945 --> Lambda946 - First952{{"First[952∈11] ➊"}}:::plan - PgSelectRows953[["PgSelectRows[953∈11] ➊"]]:::plan + First952{{"First[952∈7] ➊"}}:::plan + PgSelectRows953[["PgSelectRows[953∈7] ➊"]]:::plan PgSelectRows953 --> First952 PgSelect950 --> PgSelectRows953 - PgSelectSingle954{{"PgSelectSingle[954∈11] ➊
ᐸcompound_keyᐳ"}}:::plan + PgSelectSingle954{{"PgSelectSingle[954∈7] ➊
ᐸcompound_keyᐳ"}}:::plan First952 --> PgSelectSingle954 PgSelectSingle954 --> PgClassExpression956 PgSelectSingle954 --> PgClassExpression957 - Lambda959{{"Lambda[959∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda959{{"Lambda[959∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List958 --> Lambda959 - First963{{"First[963∈11] ➊"}}:::plan - PgSelectRows964[["PgSelectRows[964∈11] ➊"]]:::plan + First963{{"First[963∈7] ➊"}}:::plan + PgSelectRows964[["PgSelectRows[964∈7] ➊"]]:::plan PgSelectRows964 --> First963 PgSelect961 --> PgSelectRows964 - PgSelectSingle965{{"PgSelectSingle[965∈11] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle965{{"PgSelectSingle[965∈7] ➊
ᐸpersonᐳ"}}:::plan First963 --> PgSelectSingle965 PgSelectSingle965 --> PgClassExpression967 - Lambda969{{"Lambda[969∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda969{{"Lambda[969∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List968 --> Lambda969 - PgClassExpression970{{"PgClassExpression[970∈11] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression970{{"PgClassExpression[970∈7] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle965 --> PgClassExpression970 - First974{{"First[974∈11] ➊"}}:::plan - PgSelectRows975[["PgSelectRows[975∈11] ➊"]]:::plan + First974{{"First[974∈7] ➊"}}:::plan + PgSelectRows975[["PgSelectRows[975∈7] ➊"]]:::plan PgSelectRows975 --> First974 PgSelect972 --> PgSelectRows975 - PgSelectSingle976{{"PgSelectSingle[976∈11] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle976{{"PgSelectSingle[976∈7] ➊
ᐸpostᐳ"}}:::plan First974 --> PgSelectSingle976 PgSelectSingle976 --> PgClassExpression978 - Lambda980{{"Lambda[980∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda980{{"Lambda[980∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List979 --> Lambda980 - First984{{"First[984∈11] ➊"}}:::plan - PgSelectRows985[["PgSelectRows[985∈11] ➊"]]:::plan + First984{{"First[984∈7] ➊"}}:::plan + PgSelectRows985[["PgSelectRows[985∈7] ➊"]]:::plan PgSelectRows985 --> First984 PgSelect982 --> PgSelectRows985 - PgSelectSingle986{{"PgSelectSingle[986∈11] ➊
ᐸtypesᐳ"}}:::plan + PgSelectSingle986{{"PgSelectSingle[986∈7] ➊
ᐸtypesᐳ"}}:::plan First984 --> PgSelectSingle986 PgSelectSingle986 --> PgClassExpression988 - Lambda990{{"Lambda[990∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda990{{"Lambda[990∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List989 --> Lambda990 - First994{{"First[994∈11] ➊"}}:::plan - PgSelectRows995[["PgSelectRows[995∈11] ➊"]]:::plan + First994{{"First[994∈7] ➊"}}:::plan + PgSelectRows995[["PgSelectRows[995∈7] ➊"]]:::plan PgSelectRows995 --> First994 PgSelect992 --> PgSelectRows995 - PgSelectSingle996{{"PgSelectSingle[996∈11] ➊
ᐸperson_secretᐳ"}}:::plan + PgSelectSingle996{{"PgSelectSingle[996∈7] ➊
ᐸperson_secretᐳ"}}:::plan First994 --> PgSelectSingle996 PgSelectSingle996 --> PgClassExpression998 - Lambda1000{{"Lambda[1000∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1000{{"Lambda[1000∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List999 --> Lambda1000 - First1004{{"First[1004∈11] ➊"}}:::plan - PgSelectRows1005[["PgSelectRows[1005∈11] ➊"]]:::plan + First1004{{"First[1004∈7] ➊"}}:::plan + PgSelectRows1005[["PgSelectRows[1005∈7] ➊"]]:::plan PgSelectRows1005 --> First1004 PgSelect1002 --> PgSelectRows1005 - PgSelectSingle1006{{"PgSelectSingle[1006∈11] ➊
ᐸleft_armᐳ"}}:::plan + PgSelectSingle1006{{"PgSelectSingle[1006∈7] ➊
ᐸleft_armᐳ"}}:::plan First1004 --> PgSelectSingle1006 PgSelectSingle1006 --> PgClassExpression1008 - Lambda1010{{"Lambda[1010∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1010{{"Lambda[1010∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1009 --> Lambda1010 - First1014{{"First[1014∈11] ➊"}}:::plan - PgSelectRows1015[["PgSelectRows[1015∈11] ➊"]]:::plan + First1014{{"First[1014∈7] ➊"}}:::plan + PgSelectRows1015[["PgSelectRows[1015∈7] ➊"]]:::plan PgSelectRows1015 --> First1014 PgSelect1012 --> PgSelectRows1015 - PgSelectSingle1016{{"PgSelectSingle[1016∈11] ➊
ᐸmy_tableᐳ"}}:::plan + PgSelectSingle1016{{"PgSelectSingle[1016∈7] ➊
ᐸmy_tableᐳ"}}:::plan First1014 --> PgSelectSingle1016 PgSelectSingle1016 --> PgClassExpression1018 - Lambda1020{{"Lambda[1020∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1020{{"Lambda[1020∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1019 --> Lambda1020 - First1024{{"First[1024∈11] ➊"}}:::plan - PgSelectRows1025[["PgSelectRows[1025∈11] ➊"]]:::plan + First1024{{"First[1024∈7] ➊"}}:::plan + PgSelectRows1025[["PgSelectRows[1025∈7] ➊"]]:::plan PgSelectRows1025 --> First1024 PgSelect1022 --> PgSelectRows1025 - PgSelectSingle1026{{"PgSelectSingle[1026∈11] ➊
ᐸview_tableᐳ"}}:::plan + PgSelectSingle1026{{"PgSelectSingle[1026∈7] ➊
ᐸview_tableᐳ"}}:::plan First1024 --> PgSelectSingle1026 PgSelectSingle1026 --> PgClassExpression1028 - Lambda1030{{"Lambda[1030∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1030{{"Lambda[1030∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1029 --> Lambda1030 - First1034{{"First[1034∈11] ➊"}}:::plan - PgSelectRows1035[["PgSelectRows[1035∈11] ➊"]]:::plan + First1034{{"First[1034∈7] ➊"}}:::plan + PgSelectRows1035[["PgSelectRows[1035∈7] ➊"]]:::plan PgSelectRows1035 --> First1034 PgSelect1032 --> PgSelectRows1035 - PgSelectSingle1036{{"PgSelectSingle[1036∈11] ➊
ᐸsimilar_table_1ᐳ"}}:::plan + PgSelectSingle1036{{"PgSelectSingle[1036∈7] ➊
ᐸsimilar_table_1ᐳ"}}:::plan First1034 --> PgSelectSingle1036 PgSelectSingle1036 --> PgClassExpression1038 - Lambda1040{{"Lambda[1040∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1040{{"Lambda[1040∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1039 --> Lambda1040 - PgClassExpression1041{{"PgClassExpression[1041∈11] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan + PgClassExpression1041{{"PgClassExpression[1041∈7] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan PgSelectSingle1036 --> PgClassExpression1041 - PgClassExpression1042{{"PgClassExpression[1042∈11] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan + PgClassExpression1042{{"PgClassExpression[1042∈7] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan PgSelectSingle1036 --> PgClassExpression1042 - PgClassExpression1043{{"PgClassExpression[1043∈11] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan + PgClassExpression1043{{"PgClassExpression[1043∈7] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan PgSelectSingle1036 --> PgClassExpression1043 - First1047{{"First[1047∈11] ➊"}}:::plan - PgSelectRows1048[["PgSelectRows[1048∈11] ➊"]]:::plan + First1047{{"First[1047∈7] ➊"}}:::plan + PgSelectRows1048[["PgSelectRows[1048∈7] ➊"]]:::plan PgSelectRows1048 --> First1047 PgSelect1045 --> PgSelectRows1048 - PgSelectSingle1049{{"PgSelectSingle[1049∈11] ➊
ᐸsimilar_table_2ᐳ"}}:::plan + PgSelectSingle1049{{"PgSelectSingle[1049∈7] ➊
ᐸsimilar_table_2ᐳ"}}:::plan First1047 --> PgSelectSingle1049 PgSelectSingle1049 --> PgClassExpression1051 - Lambda1053{{"Lambda[1053∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1053{{"Lambda[1053∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1052 --> Lambda1053 - PgClassExpression1054{{"PgClassExpression[1054∈11] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan + PgClassExpression1054{{"PgClassExpression[1054∈7] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan PgSelectSingle1049 --> PgClassExpression1054 - PgClassExpression1055{{"PgClassExpression[1055∈11] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan + PgClassExpression1055{{"PgClassExpression[1055∈7] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan PgSelectSingle1049 --> PgClassExpression1055 - PgClassExpression1056{{"PgClassExpression[1056∈11] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan + PgClassExpression1056{{"PgClassExpression[1056∈7] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan PgSelectSingle1049 --> PgClassExpression1056 - First1060{{"First[1060∈11] ➊"}}:::plan - PgSelectRows1061[["PgSelectRows[1061∈11] ➊"]]:::plan + First1060{{"First[1060∈7] ➊"}}:::plan + PgSelectRows1061[["PgSelectRows[1061∈7] ➊"]]:::plan PgSelectRows1061 --> First1060 PgSelect1058 --> PgSelectRows1061 - PgSelectSingle1062{{"PgSelectSingle[1062∈11] ➊
ᐸnull_test_recordᐳ"}}:::plan + PgSelectSingle1062{{"PgSelectSingle[1062∈7] ➊
ᐸnull_test_recordᐳ"}}:::plan First1060 --> PgSelectSingle1062 PgSelectSingle1062 --> PgClassExpression1064 - Lambda1066{{"Lambda[1066∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1066{{"Lambda[1066∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1065 --> Lambda1066 - First1070{{"First[1070∈11] ➊"}}:::plan - PgSelectRows1071[["PgSelectRows[1071∈11] ➊"]]:::plan + First1070{{"First[1070∈7] ➊"}}:::plan + PgSelectRows1071[["PgSelectRows[1071∈7] ➊"]]:::plan PgSelectRows1071 --> First1070 PgSelect1068 --> PgSelectRows1071 - PgSelectSingle1072{{"PgSelectSingle[1072∈11] ➊
ᐸissue756ᐳ"}}:::plan + PgSelectSingle1072{{"PgSelectSingle[1072∈7] ➊
ᐸissue756ᐳ"}}:::plan First1070 --> PgSelectSingle1072 PgSelectSingle1072 --> PgClassExpression1074 - Lambda1076{{"Lambda[1076∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1076{{"Lambda[1076∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1075 --> Lambda1076 - First1080{{"First[1080∈11] ➊"}}:::plan - PgSelectRows1081[["PgSelectRows[1081∈11] ➊"]]:::plan + First1080{{"First[1080∈7] ➊"}}:::plan + PgSelectRows1081[["PgSelectRows[1081∈7] ➊"]]:::plan PgSelectRows1081 --> First1080 PgSelect1078 --> PgSelectRows1081 - PgSelectSingle1082{{"PgSelectSingle[1082∈11] ➊
ᐸlistsᐳ"}}:::plan + PgSelectSingle1082{{"PgSelectSingle[1082∈7] ➊
ᐸlistsᐳ"}}:::plan First1080 --> PgSelectSingle1082 PgSelectSingle1082 --> PgClassExpression1084 - Lambda1086{{"Lambda[1086∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1086{{"Lambda[1086∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1085 --> Lambda1086 - Lambda879 --> Access1851 - Lambda879 --> Access1852 - PgSelect1160[["PgSelect[1160∈12] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan - Access1854{{"Access[1854∈12] ➊
ᐸ1089.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan - Access1855{{"Access[1855∈12] ➊
ᐸ1089.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan - Object12 -->|rejectNull| PgSelect1160 - Access1854 -->|rejectNull| PgSelect1160 - Access1855 --> PgSelect1160 - List1168{{"List[1168∈12] ➊
ᐸ32,1166,1167ᐳ
ᐳCompoundKey"}}:::plan - PgClassExpression1166{{"PgClassExpression[1166∈12] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression1167{{"PgClassExpression[1167∈12] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Lambda879 --> Access1847 + Lambda879 --> Access1848 + PgSelect1160[["PgSelect[1160∈8] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan + Access1850{{"Access[1850∈8] ➊
ᐸ1089.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan + Access1851{{"Access[1851∈8] ➊
ᐸ1089.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan + Object11 -->|rejectNull| PgSelect1160 + Access1850 -->|rejectNull| PgSelect1160 + Access1851 --> PgSelect1160 + List1168{{"List[1168∈8] ➊
ᐸ32,1166,1167ᐳ
ᐳCompoundKey"}}:::plan + PgClassExpression1166{{"PgClassExpression[1166∈8] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression1167{{"PgClassExpression[1167∈8] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan Constant32 & PgClassExpression1166 & PgClassExpression1167 --> List1168 - PgSelect1096[["PgSelect[1096∈12] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan - Object12 -->|rejectNull| PgSelect1096 - Access1854 --> PgSelect1096 - List1105{{"List[1105∈12] ➊
ᐸ53,1104ᐳ
ᐳInput"}}:::plan - PgClassExpression1104{{"PgClassExpression[1104∈12] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan + PgSelect1096[["PgSelect[1096∈8] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan + Object11 -->|rejectNull| PgSelect1096 + Access1850 --> PgSelect1096 + List1105{{"List[1105∈8] ➊
ᐸ53,1104ᐳ
ᐳInput"}}:::plan + PgClassExpression1104{{"PgClassExpression[1104∈8] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan Constant53 & PgClassExpression1104 --> List1105 - PgSelect1108[["PgSelect[1108∈12] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan - Object12 -->|rejectNull| PgSelect1108 - Access1854 --> PgSelect1108 - List1115{{"List[1115∈12] ➊
ᐸ63,1114ᐳ
ᐳPatch"}}:::plan - PgClassExpression1114{{"PgClassExpression[1114∈12] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan + PgSelect1108[["PgSelect[1108∈8] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan + Object11 -->|rejectNull| PgSelect1108 + Access1850 --> PgSelect1108 + List1115{{"List[1115∈8] ➊
ᐸ63,1114ᐳ
ᐳPatch"}}:::plan + PgClassExpression1114{{"PgClassExpression[1114∈8] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan Constant63 & PgClassExpression1114 --> List1115 - PgSelect1118[["PgSelect[1118∈12] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan - Object12 -->|rejectNull| PgSelect1118 - Access1854 --> PgSelect1118 - List1125{{"List[1125∈12] ➊
ᐸ73,1124ᐳ
ᐳReserved"}}:::plan - PgClassExpression1124{{"PgClassExpression[1124∈12] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan + PgSelect1118[["PgSelect[1118∈8] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan + Object11 -->|rejectNull| PgSelect1118 + Access1850 --> PgSelect1118 + List1125{{"List[1125∈8] ➊
ᐸ73,1124ᐳ
ᐳReserved"}}:::plan + PgClassExpression1124{{"PgClassExpression[1124∈8] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan Constant73 & PgClassExpression1124 --> List1125 - PgSelect1128[["PgSelect[1128∈12] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan - Object12 -->|rejectNull| PgSelect1128 - Access1854 --> PgSelect1128 - List1135{{"List[1135∈12] ➊
ᐸ83,1134ᐳ
ᐳReservedPatchRecord"}}:::plan - PgClassExpression1134{{"PgClassExpression[1134∈12] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan + PgSelect1128[["PgSelect[1128∈8] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan + Object11 -->|rejectNull| PgSelect1128 + Access1850 --> PgSelect1128 + List1135{{"List[1135∈8] ➊
ᐸ83,1134ᐳ
ᐳReservedPatchRecord"}}:::plan + PgClassExpression1134{{"PgClassExpression[1134∈8] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan Constant83 & PgClassExpression1134 --> List1135 - PgSelect1138[["PgSelect[1138∈12] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan - Object12 -->|rejectNull| PgSelect1138 - Access1854 --> PgSelect1138 - List1145{{"List[1145∈12] ➊
ᐸ93,1144ᐳ
ᐳReservedInputRecord"}}:::plan - PgClassExpression1144{{"PgClassExpression[1144∈12] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan + PgSelect1138[["PgSelect[1138∈8] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan + Object11 -->|rejectNull| PgSelect1138 + Access1850 --> PgSelect1138 + List1145{{"List[1145∈8] ➊
ᐸ93,1144ᐳ
ᐳReservedInputRecord"}}:::plan + PgClassExpression1144{{"PgClassExpression[1144∈8] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan Constant93 & PgClassExpression1144 --> List1145 - PgSelect1148[["PgSelect[1148∈12] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan - Object12 -->|rejectNull| PgSelect1148 - Access1854 --> PgSelect1148 - List1155{{"List[1155∈12] ➊
ᐸ103,1154ᐳ
ᐳDefaultValue"}}:::plan - PgClassExpression1154{{"PgClassExpression[1154∈12] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan + PgSelect1148[["PgSelect[1148∈8] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan + Object11 -->|rejectNull| PgSelect1148 + Access1850 --> PgSelect1148 + List1155{{"List[1155∈8] ➊
ᐸ103,1154ᐳ
ᐳDefaultValue"}}:::plan + PgClassExpression1154{{"PgClassExpression[1154∈8] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan Constant103 & PgClassExpression1154 --> List1155 - PgSelect1171[["PgSelect[1171∈12] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan - Object12 -->|rejectNull| PgSelect1171 - Access1854 --> PgSelect1171 - List1178{{"List[1178∈12] ➊
ᐸ18,1177ᐳ
ᐳPerson"}}:::plan - PgClassExpression1177{{"PgClassExpression[1177∈12] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelect1171[["PgSelect[1171∈8] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan + Object11 -->|rejectNull| PgSelect1171 + Access1850 --> PgSelect1171 + List1178{{"List[1178∈8] ➊
ᐸ18,1177ᐳ
ᐳPerson"}}:::plan + PgClassExpression1177{{"PgClassExpression[1177∈8] ➊
ᐸ__person__.”id”ᐳ"}}:::plan Constant18 & PgClassExpression1177 --> List1178 - PgSelect1182[["PgSelect[1182∈12] ➊
ᐸpostᐳ
ᐳPost"]]:::plan - Object12 -->|rejectNull| PgSelect1182 - Access1854 --> PgSelect1182 - List1189{{"List[1189∈12] ➊
ᐸ137,1188ᐳ
ᐳPost"}}:::plan - PgClassExpression1188{{"PgClassExpression[1188∈12] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelect1182[["PgSelect[1182∈8] ➊
ᐸpostᐳ
ᐳPost"]]:::plan + Object11 -->|rejectNull| PgSelect1182 + Access1850 --> PgSelect1182 + List1189{{"List[1189∈8] ➊
ᐸ137,1188ᐳ
ᐳPost"}}:::plan + PgClassExpression1188{{"PgClassExpression[1188∈8] ➊
ᐸ__post__.”id”ᐳ"}}:::plan Constant137 & PgClassExpression1188 --> List1189 - PgSelect1192[["PgSelect[1192∈12] ➊
ᐸtypesᐳ
ᐳType"]]:::plan - Object12 -->|rejectNull| PgSelect1192 - Access1854 --> PgSelect1192 - List1199{{"List[1199∈12] ➊
ᐸ147,1198ᐳ
ᐳType"}}:::plan - PgClassExpression1198{{"PgClassExpression[1198∈12] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + PgSelect1192[["PgSelect[1192∈8] ➊
ᐸtypesᐳ
ᐳType"]]:::plan + Object11 -->|rejectNull| PgSelect1192 + Access1850 --> PgSelect1192 + List1199{{"List[1199∈8] ➊
ᐸ147,1198ᐳ
ᐳType"}}:::plan + PgClassExpression1198{{"PgClassExpression[1198∈8] ➊
ᐸ__types__.”id”ᐳ"}}:::plan Constant147 & PgClassExpression1198 --> List1199 - PgSelect1202[["PgSelect[1202∈12] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan - Object12 -->|rejectNull| PgSelect1202 - Access1854 --> PgSelect1202 - List1209{{"List[1209∈12] ➊
ᐸ157,1208ᐳ
ᐳPersonSecret"}}:::plan - PgClassExpression1208{{"PgClassExpression[1208∈12] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan + PgSelect1202[["PgSelect[1202∈8] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan + Object11 -->|rejectNull| PgSelect1202 + Access1850 --> PgSelect1202 + List1209{{"List[1209∈8] ➊
ᐸ157,1208ᐳ
ᐳPersonSecret"}}:::plan + PgClassExpression1208{{"PgClassExpression[1208∈8] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan Constant157 & PgClassExpression1208 --> List1209 - PgSelect1212[["PgSelect[1212∈12] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan - Object12 -->|rejectNull| PgSelect1212 - Access1854 --> PgSelect1212 - List1219{{"List[1219∈12] ➊
ᐸ167,1218ᐳ
ᐳLeftArm"}}:::plan - PgClassExpression1218{{"PgClassExpression[1218∈12] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + PgSelect1212[["PgSelect[1212∈8] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan + Object11 -->|rejectNull| PgSelect1212 + Access1850 --> PgSelect1212 + List1219{{"List[1219∈8] ➊
ᐸ167,1218ᐳ
ᐳLeftArm"}}:::plan + PgClassExpression1218{{"PgClassExpression[1218∈8] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan Constant167 & PgClassExpression1218 --> List1219 - PgSelect1222[["PgSelect[1222∈12] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan - Object12 -->|rejectNull| PgSelect1222 - Access1854 --> PgSelect1222 - List1229{{"List[1229∈12] ➊
ᐸ177,1228ᐳ
ᐳMyTable"}}:::plan - PgClassExpression1228{{"PgClassExpression[1228∈12] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan + PgSelect1222[["PgSelect[1222∈8] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan + Object11 -->|rejectNull| PgSelect1222 + Access1850 --> PgSelect1222 + List1229{{"List[1229∈8] ➊
ᐸ177,1228ᐳ
ᐳMyTable"}}:::plan + PgClassExpression1228{{"PgClassExpression[1228∈8] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan Constant177 & PgClassExpression1228 --> List1229 - PgSelect1232[["PgSelect[1232∈12] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan - Object12 -->|rejectNull| PgSelect1232 - Access1854 --> PgSelect1232 - List1239{{"List[1239∈12] ➊
ᐸ187,1238ᐳ
ᐳViewTable"}}:::plan - PgClassExpression1238{{"PgClassExpression[1238∈12] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan + PgSelect1232[["PgSelect[1232∈8] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan + Object11 -->|rejectNull| PgSelect1232 + Access1850 --> PgSelect1232 + List1239{{"List[1239∈8] ➊
ᐸ187,1238ᐳ
ᐳViewTable"}}:::plan + PgClassExpression1238{{"PgClassExpression[1238∈8] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan Constant187 & PgClassExpression1238 --> List1239 - PgSelect1242[["PgSelect[1242∈12] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan - Object12 -->|rejectNull| PgSelect1242 - Access1854 --> PgSelect1242 - List1249{{"List[1249∈12] ➊
ᐸ197,1248ᐳ
ᐳSimilarTable1"}}:::plan - PgClassExpression1248{{"PgClassExpression[1248∈12] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan + PgSelect1242[["PgSelect[1242∈8] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan + Object11 -->|rejectNull| PgSelect1242 + Access1850 --> PgSelect1242 + List1249{{"List[1249∈8] ➊
ᐸ197,1248ᐳ
ᐳSimilarTable1"}}:::plan + PgClassExpression1248{{"PgClassExpression[1248∈8] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan Constant197 & PgClassExpression1248 --> List1249 - PgSelect1255[["PgSelect[1255∈12] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan - Object12 -->|rejectNull| PgSelect1255 - Access1854 --> PgSelect1255 - List1262{{"List[1262∈12] ➊
ᐸ210,1261ᐳ
ᐳSimilarTable2"}}:::plan - PgClassExpression1261{{"PgClassExpression[1261∈12] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan + PgSelect1255[["PgSelect[1255∈8] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan + Object11 -->|rejectNull| PgSelect1255 + Access1850 --> PgSelect1255 + List1262{{"List[1262∈8] ➊
ᐸ210,1261ᐳ
ᐳSimilarTable2"}}:::plan + PgClassExpression1261{{"PgClassExpression[1261∈8] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan Constant210 & PgClassExpression1261 --> List1262 - PgSelect1268[["PgSelect[1268∈12] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan - Object12 -->|rejectNull| PgSelect1268 - Access1854 --> PgSelect1268 - List1275{{"List[1275∈12] ➊
ᐸ223,1274ᐳ
ᐳNullTestRecord"}}:::plan - PgClassExpression1274{{"PgClassExpression[1274∈12] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan + PgSelect1268[["PgSelect[1268∈8] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan + Object11 -->|rejectNull| PgSelect1268 + Access1850 --> PgSelect1268 + List1275{{"List[1275∈8] ➊
ᐸ223,1274ᐳ
ᐳNullTestRecord"}}:::plan + PgClassExpression1274{{"PgClassExpression[1274∈8] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan Constant223 & PgClassExpression1274 --> List1275 - PgSelect1278[["PgSelect[1278∈12] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan - Object12 -->|rejectNull| PgSelect1278 - Access1854 --> PgSelect1278 - List1285{{"List[1285∈12] ➊
ᐸ233,1284ᐳ
ᐳIssue756"}}:::plan - PgClassExpression1284{{"PgClassExpression[1284∈12] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan + PgSelect1278[["PgSelect[1278∈8] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan + Object11 -->|rejectNull| PgSelect1278 + Access1850 --> PgSelect1278 + List1285{{"List[1285∈8] ➊
ᐸ233,1284ᐳ
ᐳIssue756"}}:::plan + PgClassExpression1284{{"PgClassExpression[1284∈8] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan Constant233 & PgClassExpression1284 --> List1285 - PgSelect1288[["PgSelect[1288∈12] ➊
ᐸlistsᐳ
ᐳList"]]:::plan - Object12 -->|rejectNull| PgSelect1288 - Access1854 --> PgSelect1288 - List1295{{"List[1295∈12] ➊
ᐸ243,1294ᐳ
ᐳList"}}:::plan - PgClassExpression1294{{"PgClassExpression[1294∈12] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan + PgSelect1288[["PgSelect[1288∈8] ➊
ᐸlistsᐳ
ᐳList"]]:::plan + Object11 -->|rejectNull| PgSelect1288 + Access1850 --> PgSelect1288 + List1295{{"List[1295∈8] ➊
ᐸ243,1294ᐳ
ᐳList"}}:::plan + PgClassExpression1294{{"PgClassExpression[1294∈8] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan Constant243 & PgClassExpression1294 --> List1295 - Lambda1092{{"Lambda[1092∈12] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan + Lambda1092{{"Lambda[1092∈8] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan Constant41 --> Lambda1092 - First1100{{"First[1100∈12] ➊"}}:::plan - PgSelectRows1101[["PgSelectRows[1101∈12] ➊"]]:::plan + First1100{{"First[1100∈8] ➊"}}:::plan + PgSelectRows1101[["PgSelectRows[1101∈8] ➊"]]:::plan PgSelectRows1101 --> First1100 PgSelect1096 --> PgSelectRows1101 - PgSelectSingle1102{{"PgSelectSingle[1102∈12] ➊
ᐸinputsᐳ"}}:::plan + PgSelectSingle1102{{"PgSelectSingle[1102∈8] ➊
ᐸinputsᐳ"}}:::plan First1100 --> PgSelectSingle1102 PgSelectSingle1102 --> PgClassExpression1104 - Lambda1106{{"Lambda[1106∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1106{{"Lambda[1106∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1105 --> Lambda1106 - First1110{{"First[1110∈12] ➊"}}:::plan - PgSelectRows1111[["PgSelectRows[1111∈12] ➊"]]:::plan + First1110{{"First[1110∈8] ➊"}}:::plan + PgSelectRows1111[["PgSelectRows[1111∈8] ➊"]]:::plan PgSelectRows1111 --> First1110 PgSelect1108 --> PgSelectRows1111 - PgSelectSingle1112{{"PgSelectSingle[1112∈12] ➊
ᐸpatchsᐳ"}}:::plan + PgSelectSingle1112{{"PgSelectSingle[1112∈8] ➊
ᐸpatchsᐳ"}}:::plan First1110 --> PgSelectSingle1112 PgSelectSingle1112 --> PgClassExpression1114 - Lambda1116{{"Lambda[1116∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1116{{"Lambda[1116∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1115 --> Lambda1116 - First1120{{"First[1120∈12] ➊"}}:::plan - PgSelectRows1121[["PgSelectRows[1121∈12] ➊"]]:::plan + First1120{{"First[1120∈8] ➊"}}:::plan + PgSelectRows1121[["PgSelectRows[1121∈8] ➊"]]:::plan PgSelectRows1121 --> First1120 PgSelect1118 --> PgSelectRows1121 - PgSelectSingle1122{{"PgSelectSingle[1122∈12] ➊
ᐸreservedᐳ"}}:::plan + PgSelectSingle1122{{"PgSelectSingle[1122∈8] ➊
ᐸreservedᐳ"}}:::plan First1120 --> PgSelectSingle1122 PgSelectSingle1122 --> PgClassExpression1124 - Lambda1126{{"Lambda[1126∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1126{{"Lambda[1126∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1125 --> Lambda1126 - First1130{{"First[1130∈12] ➊"}}:::plan - PgSelectRows1131[["PgSelectRows[1131∈12] ➊"]]:::plan + First1130{{"First[1130∈8] ➊"}}:::plan + PgSelectRows1131[["PgSelectRows[1131∈8] ➊"]]:::plan PgSelectRows1131 --> First1130 PgSelect1128 --> PgSelectRows1131 - PgSelectSingle1132{{"PgSelectSingle[1132∈12] ➊
ᐸreservedPatchsᐳ"}}:::plan + PgSelectSingle1132{{"PgSelectSingle[1132∈8] ➊
ᐸreservedPatchsᐳ"}}:::plan First1130 --> PgSelectSingle1132 PgSelectSingle1132 --> PgClassExpression1134 - Lambda1136{{"Lambda[1136∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1136{{"Lambda[1136∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1135 --> Lambda1136 - First1140{{"First[1140∈12] ➊"}}:::plan - PgSelectRows1141[["PgSelectRows[1141∈12] ➊"]]:::plan + First1140{{"First[1140∈8] ➊"}}:::plan + PgSelectRows1141[["PgSelectRows[1141∈8] ➊"]]:::plan PgSelectRows1141 --> First1140 PgSelect1138 --> PgSelectRows1141 - PgSelectSingle1142{{"PgSelectSingle[1142∈12] ➊
ᐸreserved_inputᐳ"}}:::plan + PgSelectSingle1142{{"PgSelectSingle[1142∈8] ➊
ᐸreserved_inputᐳ"}}:::plan First1140 --> PgSelectSingle1142 PgSelectSingle1142 --> PgClassExpression1144 - Lambda1146{{"Lambda[1146∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1146{{"Lambda[1146∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1145 --> Lambda1146 - First1150{{"First[1150∈12] ➊"}}:::plan - PgSelectRows1151[["PgSelectRows[1151∈12] ➊"]]:::plan + First1150{{"First[1150∈8] ➊"}}:::plan + PgSelectRows1151[["PgSelectRows[1151∈8] ➊"]]:::plan PgSelectRows1151 --> First1150 PgSelect1148 --> PgSelectRows1151 - PgSelectSingle1152{{"PgSelectSingle[1152∈12] ➊
ᐸdefault_valueᐳ"}}:::plan + PgSelectSingle1152{{"PgSelectSingle[1152∈8] ➊
ᐸdefault_valueᐳ"}}:::plan First1150 --> PgSelectSingle1152 PgSelectSingle1152 --> PgClassExpression1154 - Lambda1156{{"Lambda[1156∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1156{{"Lambda[1156∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1155 --> Lambda1156 - First1162{{"First[1162∈12] ➊"}}:::plan - PgSelectRows1163[["PgSelectRows[1163∈12] ➊"]]:::plan + First1162{{"First[1162∈8] ➊"}}:::plan + PgSelectRows1163[["PgSelectRows[1163∈8] ➊"]]:::plan PgSelectRows1163 --> First1162 PgSelect1160 --> PgSelectRows1163 - PgSelectSingle1164{{"PgSelectSingle[1164∈12] ➊
ᐸcompound_keyᐳ"}}:::plan + PgSelectSingle1164{{"PgSelectSingle[1164∈8] ➊
ᐸcompound_keyᐳ"}}:::plan First1162 --> PgSelectSingle1164 PgSelectSingle1164 --> PgClassExpression1166 PgSelectSingle1164 --> PgClassExpression1167 - Lambda1169{{"Lambda[1169∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1169{{"Lambda[1169∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1168 --> Lambda1169 - First1173{{"First[1173∈12] ➊"}}:::plan - PgSelectRows1174[["PgSelectRows[1174∈12] ➊"]]:::plan + First1173{{"First[1173∈8] ➊"}}:::plan + PgSelectRows1174[["PgSelectRows[1174∈8] ➊"]]:::plan PgSelectRows1174 --> First1173 PgSelect1171 --> PgSelectRows1174 - PgSelectSingle1175{{"PgSelectSingle[1175∈12] ➊
ᐸpersonᐳ"}}:::plan + PgSelectSingle1175{{"PgSelectSingle[1175∈8] ➊
ᐸpersonᐳ"}}:::plan First1173 --> PgSelectSingle1175 PgSelectSingle1175 --> PgClassExpression1177 - Lambda1179{{"Lambda[1179∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1179{{"Lambda[1179∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1178 --> Lambda1179 - PgClassExpression1180{{"PgClassExpression[1180∈12] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression1180{{"PgClassExpression[1180∈8] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle1175 --> PgClassExpression1180 - First1184{{"First[1184∈12] ➊"}}:::plan - PgSelectRows1185[["PgSelectRows[1185∈12] ➊"]]:::plan + First1184{{"First[1184∈8] ➊"}}:::plan + PgSelectRows1185[["PgSelectRows[1185∈8] ➊"]]:::plan PgSelectRows1185 --> First1184 PgSelect1182 --> PgSelectRows1185 - PgSelectSingle1186{{"PgSelectSingle[1186∈12] ➊
ᐸpostᐳ"}}:::plan + PgSelectSingle1186{{"PgSelectSingle[1186∈8] ➊
ᐸpostᐳ"}}:::plan First1184 --> PgSelectSingle1186 PgSelectSingle1186 --> PgClassExpression1188 - Lambda1190{{"Lambda[1190∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1190{{"Lambda[1190∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1189 --> Lambda1190 - First1194{{"First[1194∈12] ➊"}}:::plan - PgSelectRows1195[["PgSelectRows[1195∈12] ➊"]]:::plan + First1194{{"First[1194∈8] ➊"}}:::plan + PgSelectRows1195[["PgSelectRows[1195∈8] ➊"]]:::plan PgSelectRows1195 --> First1194 PgSelect1192 --> PgSelectRows1195 - PgSelectSingle1196{{"PgSelectSingle[1196∈12] ➊
ᐸtypesᐳ"}}:::plan + PgSelectSingle1196{{"PgSelectSingle[1196∈8] ➊
ᐸtypesᐳ"}}:::plan First1194 --> PgSelectSingle1196 PgSelectSingle1196 --> PgClassExpression1198 - Lambda1200{{"Lambda[1200∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1200{{"Lambda[1200∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1199 --> Lambda1200 - First1204{{"First[1204∈12] ➊"}}:::plan - PgSelectRows1205[["PgSelectRows[1205∈12] ➊"]]:::plan + First1204{{"First[1204∈8] ➊"}}:::plan + PgSelectRows1205[["PgSelectRows[1205∈8] ➊"]]:::plan PgSelectRows1205 --> First1204 PgSelect1202 --> PgSelectRows1205 - PgSelectSingle1206{{"PgSelectSingle[1206∈12] ➊
ᐸperson_secretᐳ"}}:::plan + PgSelectSingle1206{{"PgSelectSingle[1206∈8] ➊
ᐸperson_secretᐳ"}}:::plan First1204 --> PgSelectSingle1206 PgSelectSingle1206 --> PgClassExpression1208 - Lambda1210{{"Lambda[1210∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1210{{"Lambda[1210∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1209 --> Lambda1210 - First1214{{"First[1214∈12] ➊"}}:::plan - PgSelectRows1215[["PgSelectRows[1215∈12] ➊"]]:::plan + First1214{{"First[1214∈8] ➊"}}:::plan + PgSelectRows1215[["PgSelectRows[1215∈8] ➊"]]:::plan PgSelectRows1215 --> First1214 PgSelect1212 --> PgSelectRows1215 - PgSelectSingle1216{{"PgSelectSingle[1216∈12] ➊
ᐸleft_armᐳ"}}:::plan + PgSelectSingle1216{{"PgSelectSingle[1216∈8] ➊
ᐸleft_armᐳ"}}:::plan First1214 --> PgSelectSingle1216 PgSelectSingle1216 --> PgClassExpression1218 - Lambda1220{{"Lambda[1220∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1220{{"Lambda[1220∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1219 --> Lambda1220 - First1224{{"First[1224∈12] ➊"}}:::plan - PgSelectRows1225[["PgSelectRows[1225∈12] ➊"]]:::plan + First1224{{"First[1224∈8] ➊"}}:::plan + PgSelectRows1225[["PgSelectRows[1225∈8] ➊"]]:::plan PgSelectRows1225 --> First1224 PgSelect1222 --> PgSelectRows1225 - PgSelectSingle1226{{"PgSelectSingle[1226∈12] ➊
ᐸmy_tableᐳ"}}:::plan + PgSelectSingle1226{{"PgSelectSingle[1226∈8] ➊
ᐸmy_tableᐳ"}}:::plan First1224 --> PgSelectSingle1226 PgSelectSingle1226 --> PgClassExpression1228 - Lambda1230{{"Lambda[1230∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1230{{"Lambda[1230∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1229 --> Lambda1230 - First1234{{"First[1234∈12] ➊"}}:::plan - PgSelectRows1235[["PgSelectRows[1235∈12] ➊"]]:::plan + First1234{{"First[1234∈8] ➊"}}:::plan + PgSelectRows1235[["PgSelectRows[1235∈8] ➊"]]:::plan PgSelectRows1235 --> First1234 PgSelect1232 --> PgSelectRows1235 - PgSelectSingle1236{{"PgSelectSingle[1236∈12] ➊
ᐸview_tableᐳ"}}:::plan + PgSelectSingle1236{{"PgSelectSingle[1236∈8] ➊
ᐸview_tableᐳ"}}:::plan First1234 --> PgSelectSingle1236 PgSelectSingle1236 --> PgClassExpression1238 - Lambda1240{{"Lambda[1240∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1240{{"Lambda[1240∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1239 --> Lambda1240 - First1244{{"First[1244∈12] ➊"}}:::plan - PgSelectRows1245[["PgSelectRows[1245∈12] ➊"]]:::plan + First1244{{"First[1244∈8] ➊"}}:::plan + PgSelectRows1245[["PgSelectRows[1245∈8] ➊"]]:::plan PgSelectRows1245 --> First1244 PgSelect1242 --> PgSelectRows1245 - PgSelectSingle1246{{"PgSelectSingle[1246∈12] ➊
ᐸsimilar_table_1ᐳ"}}:::plan + PgSelectSingle1246{{"PgSelectSingle[1246∈8] ➊
ᐸsimilar_table_1ᐳ"}}:::plan First1244 --> PgSelectSingle1246 PgSelectSingle1246 --> PgClassExpression1248 - Lambda1250{{"Lambda[1250∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1250{{"Lambda[1250∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1249 --> Lambda1250 - PgClassExpression1251{{"PgClassExpression[1251∈12] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan + PgClassExpression1251{{"PgClassExpression[1251∈8] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan PgSelectSingle1246 --> PgClassExpression1251 - PgClassExpression1252{{"PgClassExpression[1252∈12] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan + PgClassExpression1252{{"PgClassExpression[1252∈8] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan PgSelectSingle1246 --> PgClassExpression1252 - PgClassExpression1253{{"PgClassExpression[1253∈12] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan + PgClassExpression1253{{"PgClassExpression[1253∈8] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan PgSelectSingle1246 --> PgClassExpression1253 - First1257{{"First[1257∈12] ➊"}}:::plan - PgSelectRows1258[["PgSelectRows[1258∈12] ➊"]]:::plan + First1257{{"First[1257∈8] ➊"}}:::plan + PgSelectRows1258[["PgSelectRows[1258∈8] ➊"]]:::plan PgSelectRows1258 --> First1257 PgSelect1255 --> PgSelectRows1258 - PgSelectSingle1259{{"PgSelectSingle[1259∈12] ➊
ᐸsimilar_table_2ᐳ"}}:::plan + PgSelectSingle1259{{"PgSelectSingle[1259∈8] ➊
ᐸsimilar_table_2ᐳ"}}:::plan First1257 --> PgSelectSingle1259 PgSelectSingle1259 --> PgClassExpression1261 - Lambda1263{{"Lambda[1263∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1263{{"Lambda[1263∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1262 --> Lambda1263 - PgClassExpression1264{{"PgClassExpression[1264∈12] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan + PgClassExpression1264{{"PgClassExpression[1264∈8] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan PgSelectSingle1259 --> PgClassExpression1264 - PgClassExpression1265{{"PgClassExpression[1265∈12] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan + PgClassExpression1265{{"PgClassExpression[1265∈8] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan PgSelectSingle1259 --> PgClassExpression1265 - PgClassExpression1266{{"PgClassExpression[1266∈12] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan + PgClassExpression1266{{"PgClassExpression[1266∈8] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan PgSelectSingle1259 --> PgClassExpression1266 - First1270{{"First[1270∈12] ➊"}}:::plan - PgSelectRows1271[["PgSelectRows[1271∈12] ➊"]]:::plan + First1270{{"First[1270∈8] ➊"}}:::plan + PgSelectRows1271[["PgSelectRows[1271∈8] ➊"]]:::plan PgSelectRows1271 --> First1270 PgSelect1268 --> PgSelectRows1271 - PgSelectSingle1272{{"PgSelectSingle[1272∈12] ➊
ᐸnull_test_recordᐳ"}}:::plan + PgSelectSingle1272{{"PgSelectSingle[1272∈8] ➊
ᐸnull_test_recordᐳ"}}:::plan First1270 --> PgSelectSingle1272 PgSelectSingle1272 --> PgClassExpression1274 - Lambda1276{{"Lambda[1276∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1276{{"Lambda[1276∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1275 --> Lambda1276 - First1280{{"First[1280∈12] ➊"}}:::plan - PgSelectRows1281[["PgSelectRows[1281∈12] ➊"]]:::plan + First1280{{"First[1280∈8] ➊"}}:::plan + PgSelectRows1281[["PgSelectRows[1281∈8] ➊"]]:::plan PgSelectRows1281 --> First1280 PgSelect1278 --> PgSelectRows1281 - PgSelectSingle1282{{"PgSelectSingle[1282∈12] ➊
ᐸissue756ᐳ"}}:::plan + PgSelectSingle1282{{"PgSelectSingle[1282∈8] ➊
ᐸissue756ᐳ"}}:::plan First1280 --> PgSelectSingle1282 PgSelectSingle1282 --> PgClassExpression1284 - Lambda1286{{"Lambda[1286∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1286{{"Lambda[1286∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1285 --> Lambda1286 - First1290{{"First[1290∈12] ➊"}}:::plan - PgSelectRows1291[["PgSelectRows[1291∈12] ➊"]]:::plan + First1290{{"First[1290∈8] ➊"}}:::plan + PgSelectRows1291[["PgSelectRows[1291∈8] ➊"]]:::plan PgSelectRows1291 --> First1290 PgSelect1288 --> PgSelectRows1291 - PgSelectSingle1292{{"PgSelectSingle[1292∈12] ➊
ᐸlistsᐳ"}}:::plan + PgSelectSingle1292{{"PgSelectSingle[1292∈8] ➊
ᐸlistsᐳ"}}:::plan First1290 --> PgSelectSingle1292 PgSelectSingle1292 --> PgClassExpression1294 - Lambda1296{{"Lambda[1296∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda1296{{"Lambda[1296∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List1295 --> Lambda1296 - Lambda1089 --> Access1854 - Lambda1089 --> Access1855 - List1308{{"List[1308∈13] ➊
ᐸ18,1307ᐳ"}}:::plan - PgClassExpression1307{{"PgClassExpression[1307∈13] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression1307 --> List1308 - PgSelectSingle1305 --> PgClassExpression1307 - Lambda1309{{"Lambda[1309∈13] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1308 --> Lambda1309 - PgClassExpression1310{{"PgClassExpression[1310∈13] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle1305 --> PgClassExpression1310 - List1322{{"List[1322∈14] ➊
ᐸ18,1321ᐳ"}}:::plan - PgClassExpression1321{{"PgClassExpression[1321∈14] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression1321 --> List1322 - PgSelectSingle1319 --> PgClassExpression1321 - Lambda1323{{"Lambda[1323∈14] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1322 --> Lambda1323 - PgClassExpression1324{{"PgClassExpression[1324∈14] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle1319 --> PgClassExpression1324 - List1336{{"List[1336∈15] ➊
ᐸ18,1335ᐳ"}}:::plan - PgClassExpression1335{{"PgClassExpression[1335∈15] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression1335 --> List1336 - PgSelectSingle1333 --> PgClassExpression1335 - Lambda1337{{"Lambda[1337∈15] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1336 --> Lambda1337 - PgClassExpression1338{{"PgClassExpression[1338∈15] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle1333 --> PgClassExpression1338 - List1353{{"List[1353∈16] ➊
ᐸ32,1351,1352ᐳ"}}:::plan - PgClassExpression1351{{"PgClassExpression[1351∈16] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression1352{{"PgClassExpression[1352∈16] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Constant32 & PgClassExpression1351 & PgClassExpression1352 --> List1353 - PgSelectSingle1349 --> PgClassExpression1351 - PgSelectSingle1349 --> PgClassExpression1352 - Lambda1354{{"Lambda[1354∈16] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1353 --> Lambda1354 - List1369{{"List[1369∈17] ➊
ᐸ32,1367,1368ᐳ"}}:::plan - PgClassExpression1367{{"PgClassExpression[1367∈17] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression1368{{"PgClassExpression[1368∈17] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Constant32 & PgClassExpression1367 & PgClassExpression1368 --> List1369 - PgSelectSingle1365 --> PgClassExpression1367 - PgSelectSingle1365 --> PgClassExpression1368 - Lambda1370{{"Lambda[1370∈17] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1369 --> Lambda1370 - List1385{{"List[1385∈18] ➊
ᐸ32,1383,1384ᐳ"}}:::plan - PgClassExpression1383{{"PgClassExpression[1383∈18] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression1384{{"PgClassExpression[1384∈18] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Constant32 & PgClassExpression1383 & PgClassExpression1384 --> List1385 - PgSelectSingle1381 --> PgClassExpression1383 - PgSelectSingle1381 --> PgClassExpression1384 - Lambda1386{{"Lambda[1386∈18] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1385 --> Lambda1386 - PgSelect1460[["PgSelect[1460∈19] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan - Access1857{{"Access[1857∈19] ➊
ᐸ1389.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan - Access1858{{"Access[1858∈19] ➊
ᐸ1389.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan - Object12 -->|rejectNull| PgSelect1460 - Access1857 -->|rejectNull| PgSelect1460 - Access1858 --> PgSelect1460 - List1468{{"List[1468∈19] ➊
ᐸ32,1466,1467ᐳ
ᐳCompoundKey"}}:::plan - PgClassExpression1466{{"PgClassExpression[1466∈19] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression1467{{"PgClassExpression[1467∈19] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Constant32 & PgClassExpression1466 & PgClassExpression1467 --> List1468 - PgSelect1396[["PgSelect[1396∈19] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan - Object12 -->|rejectNull| PgSelect1396 - Access1857 --> PgSelect1396 - List1405{{"List[1405∈19] ➊
ᐸ53,1404ᐳ
ᐳInput"}}:::plan - PgClassExpression1404{{"PgClassExpression[1404∈19] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan - Constant53 & PgClassExpression1404 --> List1405 - PgSelect1408[["PgSelect[1408∈19] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan - Object12 -->|rejectNull| PgSelect1408 - Access1857 --> PgSelect1408 - List1415{{"List[1415∈19] ➊
ᐸ63,1414ᐳ
ᐳPatch"}}:::plan - PgClassExpression1414{{"PgClassExpression[1414∈19] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan - Constant63 & PgClassExpression1414 --> List1415 - PgSelect1418[["PgSelect[1418∈19] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan - Object12 -->|rejectNull| PgSelect1418 - Access1857 --> PgSelect1418 - List1425{{"List[1425∈19] ➊
ᐸ73,1424ᐳ
ᐳReserved"}}:::plan - PgClassExpression1424{{"PgClassExpression[1424∈19] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan - Constant73 & PgClassExpression1424 --> List1425 - PgSelect1428[["PgSelect[1428∈19] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan - Object12 -->|rejectNull| PgSelect1428 - Access1857 --> PgSelect1428 - List1435{{"List[1435∈19] ➊
ᐸ83,1434ᐳ
ᐳReservedPatchRecord"}}:::plan - PgClassExpression1434{{"PgClassExpression[1434∈19] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan - Constant83 & PgClassExpression1434 --> List1435 - PgSelect1438[["PgSelect[1438∈19] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan - Object12 -->|rejectNull| PgSelect1438 - Access1857 --> PgSelect1438 - List1445{{"List[1445∈19] ➊
ᐸ93,1444ᐳ
ᐳReservedInputRecord"}}:::plan - PgClassExpression1444{{"PgClassExpression[1444∈19] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan - Constant93 & PgClassExpression1444 --> List1445 - PgSelect1448[["PgSelect[1448∈19] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan - Object12 -->|rejectNull| PgSelect1448 - Access1857 --> PgSelect1448 - List1455{{"List[1455∈19] ➊
ᐸ103,1454ᐳ
ᐳDefaultValue"}}:::plan - PgClassExpression1454{{"PgClassExpression[1454∈19] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan - Constant103 & PgClassExpression1454 --> List1455 - PgSelect1471[["PgSelect[1471∈19] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan - Object12 -->|rejectNull| PgSelect1471 - Access1857 --> PgSelect1471 - List1478{{"List[1478∈19] ➊
ᐸ18,1477ᐳ
ᐳPerson"}}:::plan - PgClassExpression1477{{"PgClassExpression[1477∈19] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression1477 --> List1478 - PgSelect1482[["PgSelect[1482∈19] ➊
ᐸpostᐳ
ᐳPost"]]:::plan - Object12 -->|rejectNull| PgSelect1482 - Access1857 --> PgSelect1482 - List1489{{"List[1489∈19] ➊
ᐸ137,1488ᐳ
ᐳPost"}}:::plan - PgClassExpression1488{{"PgClassExpression[1488∈19] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - Constant137 & PgClassExpression1488 --> List1489 - PgSelect1492[["PgSelect[1492∈19] ➊
ᐸtypesᐳ
ᐳType"]]:::plan - Object12 -->|rejectNull| PgSelect1492 - Access1857 --> PgSelect1492 - List1499{{"List[1499∈19] ➊
ᐸ147,1498ᐳ
ᐳType"}}:::plan - PgClassExpression1498{{"PgClassExpression[1498∈19] ➊
ᐸ__types__.”id”ᐳ"}}:::plan - Constant147 & PgClassExpression1498 --> List1499 - PgSelect1502[["PgSelect[1502∈19] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan - Object12 -->|rejectNull| PgSelect1502 - Access1857 --> PgSelect1502 - List1509{{"List[1509∈19] ➊
ᐸ157,1508ᐳ
ᐳPersonSecret"}}:::plan - PgClassExpression1508{{"PgClassExpression[1508∈19] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan - Constant157 & PgClassExpression1508 --> List1509 - PgSelect1512[["PgSelect[1512∈19] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan - Object12 -->|rejectNull| PgSelect1512 - Access1857 --> PgSelect1512 - List1519{{"List[1519∈19] ➊
ᐸ167,1518ᐳ
ᐳLeftArm"}}:::plan - PgClassExpression1518{{"PgClassExpression[1518∈19] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan - Constant167 & PgClassExpression1518 --> List1519 - PgSelect1522[["PgSelect[1522∈19] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan - Object12 -->|rejectNull| PgSelect1522 - Access1857 --> PgSelect1522 - List1529{{"List[1529∈19] ➊
ᐸ177,1528ᐳ
ᐳMyTable"}}:::plan - PgClassExpression1528{{"PgClassExpression[1528∈19] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan - Constant177 & PgClassExpression1528 --> List1529 - PgSelect1532[["PgSelect[1532∈19] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan - Object12 -->|rejectNull| PgSelect1532 - Access1857 --> PgSelect1532 - List1539{{"List[1539∈19] ➊
ᐸ187,1538ᐳ
ᐳViewTable"}}:::plan - PgClassExpression1538{{"PgClassExpression[1538∈19] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan - Constant187 & PgClassExpression1538 --> List1539 - PgSelect1542[["PgSelect[1542∈19] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan - Object12 -->|rejectNull| PgSelect1542 - Access1857 --> PgSelect1542 - List1549{{"List[1549∈19] ➊
ᐸ197,1548ᐳ
ᐳSimilarTable1"}}:::plan - PgClassExpression1548{{"PgClassExpression[1548∈19] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan - Constant197 & PgClassExpression1548 --> List1549 - PgSelect1555[["PgSelect[1555∈19] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan - Object12 -->|rejectNull| PgSelect1555 - Access1857 --> PgSelect1555 - List1562{{"List[1562∈19] ➊
ᐸ210,1561ᐳ
ᐳSimilarTable2"}}:::plan - PgClassExpression1561{{"PgClassExpression[1561∈19] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan - Constant210 & PgClassExpression1561 --> List1562 - PgSelect1568[["PgSelect[1568∈19] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan - Object12 -->|rejectNull| PgSelect1568 - Access1857 --> PgSelect1568 - List1575{{"List[1575∈19] ➊
ᐸ223,1574ᐳ
ᐳNullTestRecord"}}:::plan - PgClassExpression1574{{"PgClassExpression[1574∈19] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan - Constant223 & PgClassExpression1574 --> List1575 - PgSelect1578[["PgSelect[1578∈19] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan - Object12 -->|rejectNull| PgSelect1578 - Access1857 --> PgSelect1578 - List1585{{"List[1585∈19] ➊
ᐸ233,1584ᐳ
ᐳIssue756"}}:::plan - PgClassExpression1584{{"PgClassExpression[1584∈19] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan - Constant233 & PgClassExpression1584 --> List1585 - PgSelect1588[["PgSelect[1588∈19] ➊
ᐸlistsᐳ
ᐳList"]]:::plan - Object12 -->|rejectNull| PgSelect1588 - Access1857 --> PgSelect1588 - List1595{{"List[1595∈19] ➊
ᐸ243,1594ᐳ
ᐳList"}}:::plan - PgClassExpression1594{{"PgClassExpression[1594∈19] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan - Constant243 & PgClassExpression1594 --> List1595 - Lambda1392{{"Lambda[1392∈19] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan - Constant41 --> Lambda1392 - First1400{{"First[1400∈19] ➊"}}:::plan - PgSelectRows1401[["PgSelectRows[1401∈19] ➊"]]:::plan - PgSelectRows1401 --> First1400 - PgSelect1396 --> PgSelectRows1401 - PgSelectSingle1402{{"PgSelectSingle[1402∈19] ➊
ᐸinputsᐳ"}}:::plan - First1400 --> PgSelectSingle1402 - PgSelectSingle1402 --> PgClassExpression1404 - Lambda1406{{"Lambda[1406∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1405 --> Lambda1406 - First1410{{"First[1410∈19] ➊"}}:::plan - PgSelectRows1411[["PgSelectRows[1411∈19] ➊"]]:::plan - PgSelectRows1411 --> First1410 - PgSelect1408 --> PgSelectRows1411 - PgSelectSingle1412{{"PgSelectSingle[1412∈19] ➊
ᐸpatchsᐳ"}}:::plan - First1410 --> PgSelectSingle1412 - PgSelectSingle1412 --> PgClassExpression1414 - Lambda1416{{"Lambda[1416∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1415 --> Lambda1416 - First1420{{"First[1420∈19] ➊"}}:::plan - PgSelectRows1421[["PgSelectRows[1421∈19] ➊"]]:::plan - PgSelectRows1421 --> First1420 - PgSelect1418 --> PgSelectRows1421 - PgSelectSingle1422{{"PgSelectSingle[1422∈19] ➊
ᐸreservedᐳ"}}:::plan - First1420 --> PgSelectSingle1422 - PgSelectSingle1422 --> PgClassExpression1424 - Lambda1426{{"Lambda[1426∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1425 --> Lambda1426 - First1430{{"First[1430∈19] ➊"}}:::plan - PgSelectRows1431[["PgSelectRows[1431∈19] ➊"]]:::plan - PgSelectRows1431 --> First1430 - PgSelect1428 --> PgSelectRows1431 - PgSelectSingle1432{{"PgSelectSingle[1432∈19] ➊
ᐸreservedPatchsᐳ"}}:::plan - First1430 --> PgSelectSingle1432 - PgSelectSingle1432 --> PgClassExpression1434 - Lambda1436{{"Lambda[1436∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1435 --> Lambda1436 - First1440{{"First[1440∈19] ➊"}}:::plan - PgSelectRows1441[["PgSelectRows[1441∈19] ➊"]]:::plan - PgSelectRows1441 --> First1440 - PgSelect1438 --> PgSelectRows1441 - PgSelectSingle1442{{"PgSelectSingle[1442∈19] ➊
ᐸreserved_inputᐳ"}}:::plan - First1440 --> PgSelectSingle1442 - PgSelectSingle1442 --> PgClassExpression1444 - Lambda1446{{"Lambda[1446∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1445 --> Lambda1446 - First1450{{"First[1450∈19] ➊"}}:::plan - PgSelectRows1451[["PgSelectRows[1451∈19] ➊"]]:::plan - PgSelectRows1451 --> First1450 - PgSelect1448 --> PgSelectRows1451 - PgSelectSingle1452{{"PgSelectSingle[1452∈19] ➊
ᐸdefault_valueᐳ"}}:::plan - First1450 --> PgSelectSingle1452 - PgSelectSingle1452 --> PgClassExpression1454 - Lambda1456{{"Lambda[1456∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1455 --> Lambda1456 - First1462{{"First[1462∈19] ➊"}}:::plan - PgSelectRows1463[["PgSelectRows[1463∈19] ➊"]]:::plan - PgSelectRows1463 --> First1462 - PgSelect1460 --> PgSelectRows1463 - PgSelectSingle1464{{"PgSelectSingle[1464∈19] ➊
ᐸcompound_keyᐳ"}}:::plan - First1462 --> PgSelectSingle1464 - PgSelectSingle1464 --> PgClassExpression1466 - PgSelectSingle1464 --> PgClassExpression1467 - Lambda1469{{"Lambda[1469∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1468 --> Lambda1469 - First1473{{"First[1473∈19] ➊"}}:::plan - PgSelectRows1474[["PgSelectRows[1474∈19] ➊"]]:::plan - PgSelectRows1474 --> First1473 - PgSelect1471 --> PgSelectRows1474 - PgSelectSingle1475{{"PgSelectSingle[1475∈19] ➊
ᐸpersonᐳ"}}:::plan - First1473 --> PgSelectSingle1475 - PgSelectSingle1475 --> PgClassExpression1477 - Lambda1479{{"Lambda[1479∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1478 --> Lambda1479 - PgClassExpression1480{{"PgClassExpression[1480∈19] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle1475 --> PgClassExpression1480 - First1484{{"First[1484∈19] ➊"}}:::plan - PgSelectRows1485[["PgSelectRows[1485∈19] ➊"]]:::plan - PgSelectRows1485 --> First1484 - PgSelect1482 --> PgSelectRows1485 - PgSelectSingle1486{{"PgSelectSingle[1486∈19] ➊
ᐸpostᐳ"}}:::plan - First1484 --> PgSelectSingle1486 - PgSelectSingle1486 --> PgClassExpression1488 - Lambda1490{{"Lambda[1490∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1489 --> Lambda1490 - First1494{{"First[1494∈19] ➊"}}:::plan - PgSelectRows1495[["PgSelectRows[1495∈19] ➊"]]:::plan - PgSelectRows1495 --> First1494 - PgSelect1492 --> PgSelectRows1495 - PgSelectSingle1496{{"PgSelectSingle[1496∈19] ➊
ᐸtypesᐳ"}}:::plan - First1494 --> PgSelectSingle1496 - PgSelectSingle1496 --> PgClassExpression1498 - Lambda1500{{"Lambda[1500∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1499 --> Lambda1500 - First1504{{"First[1504∈19] ➊"}}:::plan - PgSelectRows1505[["PgSelectRows[1505∈19] ➊"]]:::plan - PgSelectRows1505 --> First1504 - PgSelect1502 --> PgSelectRows1505 - PgSelectSingle1506{{"PgSelectSingle[1506∈19] ➊
ᐸperson_secretᐳ"}}:::plan - First1504 --> PgSelectSingle1506 - PgSelectSingle1506 --> PgClassExpression1508 - Lambda1510{{"Lambda[1510∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1509 --> Lambda1510 - First1514{{"First[1514∈19] ➊"}}:::plan - PgSelectRows1515[["PgSelectRows[1515∈19] ➊"]]:::plan - PgSelectRows1515 --> First1514 - PgSelect1512 --> PgSelectRows1515 - PgSelectSingle1516{{"PgSelectSingle[1516∈19] ➊
ᐸleft_armᐳ"}}:::plan - First1514 --> PgSelectSingle1516 - PgSelectSingle1516 --> PgClassExpression1518 - Lambda1520{{"Lambda[1520∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1519 --> Lambda1520 - First1524{{"First[1524∈19] ➊"}}:::plan - PgSelectRows1525[["PgSelectRows[1525∈19] ➊"]]:::plan - PgSelectRows1525 --> First1524 - PgSelect1522 --> PgSelectRows1525 - PgSelectSingle1526{{"PgSelectSingle[1526∈19] ➊
ᐸmy_tableᐳ"}}:::plan - First1524 --> PgSelectSingle1526 - PgSelectSingle1526 --> PgClassExpression1528 - Lambda1530{{"Lambda[1530∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1529 --> Lambda1530 - First1534{{"First[1534∈19] ➊"}}:::plan - PgSelectRows1535[["PgSelectRows[1535∈19] ➊"]]:::plan - PgSelectRows1535 --> First1534 - PgSelect1532 --> PgSelectRows1535 - PgSelectSingle1536{{"PgSelectSingle[1536∈19] ➊
ᐸview_tableᐳ"}}:::plan - First1534 --> PgSelectSingle1536 - PgSelectSingle1536 --> PgClassExpression1538 - Lambda1540{{"Lambda[1540∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1539 --> Lambda1540 - First1544{{"First[1544∈19] ➊"}}:::plan - PgSelectRows1545[["PgSelectRows[1545∈19] ➊"]]:::plan - PgSelectRows1545 --> First1544 - PgSelect1542 --> PgSelectRows1545 - PgSelectSingle1546{{"PgSelectSingle[1546∈19] ➊
ᐸsimilar_table_1ᐳ"}}:::plan - First1544 --> PgSelectSingle1546 - PgSelectSingle1546 --> PgClassExpression1548 - Lambda1550{{"Lambda[1550∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1549 --> Lambda1550 - PgClassExpression1551{{"PgClassExpression[1551∈19] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan - PgSelectSingle1546 --> PgClassExpression1551 - PgClassExpression1552{{"PgClassExpression[1552∈19] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan - PgSelectSingle1546 --> PgClassExpression1552 - PgClassExpression1553{{"PgClassExpression[1553∈19] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan - PgSelectSingle1546 --> PgClassExpression1553 - First1557{{"First[1557∈19] ➊"}}:::plan - PgSelectRows1558[["PgSelectRows[1558∈19] ➊"]]:::plan - PgSelectRows1558 --> First1557 - PgSelect1555 --> PgSelectRows1558 - PgSelectSingle1559{{"PgSelectSingle[1559∈19] ➊
ᐸsimilar_table_2ᐳ"}}:::plan - First1557 --> PgSelectSingle1559 - PgSelectSingle1559 --> PgClassExpression1561 - Lambda1563{{"Lambda[1563∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1562 --> Lambda1563 - PgClassExpression1564{{"PgClassExpression[1564∈19] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan - PgSelectSingle1559 --> PgClassExpression1564 - PgClassExpression1565{{"PgClassExpression[1565∈19] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan - PgSelectSingle1559 --> PgClassExpression1565 - PgClassExpression1566{{"PgClassExpression[1566∈19] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan - PgSelectSingle1559 --> PgClassExpression1566 - First1570{{"First[1570∈19] ➊"}}:::plan - PgSelectRows1571[["PgSelectRows[1571∈19] ➊"]]:::plan - PgSelectRows1571 --> First1570 - PgSelect1568 --> PgSelectRows1571 - PgSelectSingle1572{{"PgSelectSingle[1572∈19] ➊
ᐸnull_test_recordᐳ"}}:::plan - First1570 --> PgSelectSingle1572 - PgSelectSingle1572 --> PgClassExpression1574 - Lambda1576{{"Lambda[1576∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1575 --> Lambda1576 - First1580{{"First[1580∈19] ➊"}}:::plan - PgSelectRows1581[["PgSelectRows[1581∈19] ➊"]]:::plan - PgSelectRows1581 --> First1580 - PgSelect1578 --> PgSelectRows1581 - PgSelectSingle1582{{"PgSelectSingle[1582∈19] ➊
ᐸissue756ᐳ"}}:::plan - First1580 --> PgSelectSingle1582 - PgSelectSingle1582 --> PgClassExpression1584 - Lambda1586{{"Lambda[1586∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1585 --> Lambda1586 - First1590{{"First[1590∈19] ➊"}}:::plan - PgSelectRows1591[["PgSelectRows[1591∈19] ➊"]]:::plan - PgSelectRows1591 --> First1590 - PgSelect1588 --> PgSelectRows1591 - PgSelectSingle1592{{"PgSelectSingle[1592∈19] ➊
ᐸlistsᐳ"}}:::plan - First1590 --> PgSelectSingle1592 - PgSelectSingle1592 --> PgClassExpression1594 - Lambda1596{{"Lambda[1596∈19] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1595 --> Lambda1596 - Lambda1389 --> Access1857 - Lambda1389 --> Access1858 - PgSelect1670[["PgSelect[1670∈20] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan - Access1860{{"Access[1860∈20] ➊
ᐸ1599.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan - Access1861{{"Access[1861∈20] ➊
ᐸ1599.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan - Object12 -->|rejectNull| PgSelect1670 - Access1860 -->|rejectNull| PgSelect1670 - Access1861 --> PgSelect1670 - List1678{{"List[1678∈20] ➊
ᐸ32,1676,1677ᐳ
ᐳCompoundKey"}}:::plan - PgClassExpression1676{{"PgClassExpression[1676∈20] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression1677{{"PgClassExpression[1677∈20] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Constant32 & PgClassExpression1676 & PgClassExpression1677 --> List1678 - PgSelect1606[["PgSelect[1606∈20] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan - Object12 -->|rejectNull| PgSelect1606 - Access1860 --> PgSelect1606 - List1615{{"List[1615∈20] ➊
ᐸ53,1614ᐳ
ᐳInput"}}:::plan - PgClassExpression1614{{"PgClassExpression[1614∈20] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan - Constant53 & PgClassExpression1614 --> List1615 - PgSelect1618[["PgSelect[1618∈20] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan - Object12 -->|rejectNull| PgSelect1618 - Access1860 --> PgSelect1618 - List1625{{"List[1625∈20] ➊
ᐸ63,1624ᐳ
ᐳPatch"}}:::plan - PgClassExpression1624{{"PgClassExpression[1624∈20] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan - Constant63 & PgClassExpression1624 --> List1625 - PgSelect1628[["PgSelect[1628∈20] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan - Object12 -->|rejectNull| PgSelect1628 - Access1860 --> PgSelect1628 - List1635{{"List[1635∈20] ➊
ᐸ73,1634ᐳ
ᐳReserved"}}:::plan - PgClassExpression1634{{"PgClassExpression[1634∈20] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan - Constant73 & PgClassExpression1634 --> List1635 - PgSelect1638[["PgSelect[1638∈20] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan - Object12 -->|rejectNull| PgSelect1638 - Access1860 --> PgSelect1638 - List1645{{"List[1645∈20] ➊
ᐸ83,1644ᐳ
ᐳReservedPatchRecord"}}:::plan - PgClassExpression1644{{"PgClassExpression[1644∈20] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan - Constant83 & PgClassExpression1644 --> List1645 - PgSelect1648[["PgSelect[1648∈20] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan - Object12 -->|rejectNull| PgSelect1648 - Access1860 --> PgSelect1648 - List1655{{"List[1655∈20] ➊
ᐸ93,1654ᐳ
ᐳReservedInputRecord"}}:::plan - PgClassExpression1654{{"PgClassExpression[1654∈20] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan - Constant93 & PgClassExpression1654 --> List1655 - PgSelect1658[["PgSelect[1658∈20] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan - Object12 -->|rejectNull| PgSelect1658 - Access1860 --> PgSelect1658 - List1665{{"List[1665∈20] ➊
ᐸ103,1664ᐳ
ᐳDefaultValue"}}:::plan - PgClassExpression1664{{"PgClassExpression[1664∈20] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan - Constant103 & PgClassExpression1664 --> List1665 - PgSelect1681[["PgSelect[1681∈20] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan - Object12 -->|rejectNull| PgSelect1681 - Access1860 --> PgSelect1681 - List1688{{"List[1688∈20] ➊
ᐸ18,1687ᐳ
ᐳPerson"}}:::plan - PgClassExpression1687{{"PgClassExpression[1687∈20] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression1687 --> List1688 - PgSelect1692[["PgSelect[1692∈20] ➊
ᐸpostᐳ
ᐳPost"]]:::plan - Object12 -->|rejectNull| PgSelect1692 - Access1860 --> PgSelect1692 - List1699{{"List[1699∈20] ➊
ᐸ137,1698ᐳ
ᐳPost"}}:::plan - PgClassExpression1698{{"PgClassExpression[1698∈20] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - Constant137 & PgClassExpression1698 --> List1699 - PgSelect1702[["PgSelect[1702∈20] ➊
ᐸtypesᐳ
ᐳType"]]:::plan - Object12 -->|rejectNull| PgSelect1702 - Access1860 --> PgSelect1702 - List1709{{"List[1709∈20] ➊
ᐸ147,1708ᐳ
ᐳType"}}:::plan - PgClassExpression1708{{"PgClassExpression[1708∈20] ➊
ᐸ__types__.”id”ᐳ"}}:::plan - Constant147 & PgClassExpression1708 --> List1709 - PgSelect1712[["PgSelect[1712∈20] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan - Object12 -->|rejectNull| PgSelect1712 - Access1860 --> PgSelect1712 - List1719{{"List[1719∈20] ➊
ᐸ157,1718ᐳ
ᐳPersonSecret"}}:::plan - PgClassExpression1718{{"PgClassExpression[1718∈20] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan - Constant157 & PgClassExpression1718 --> List1719 - PgSelect1722[["PgSelect[1722∈20] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan - Object12 -->|rejectNull| PgSelect1722 - Access1860 --> PgSelect1722 - List1729{{"List[1729∈20] ➊
ᐸ167,1728ᐳ
ᐳLeftArm"}}:::plan - PgClassExpression1728{{"PgClassExpression[1728∈20] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan - Constant167 & PgClassExpression1728 --> List1729 - PgSelect1732[["PgSelect[1732∈20] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan - Object12 -->|rejectNull| PgSelect1732 - Access1860 --> PgSelect1732 - List1739{{"List[1739∈20] ➊
ᐸ177,1738ᐳ
ᐳMyTable"}}:::plan - PgClassExpression1738{{"PgClassExpression[1738∈20] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan - Constant177 & PgClassExpression1738 --> List1739 - PgSelect1742[["PgSelect[1742∈20] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan - Object12 -->|rejectNull| PgSelect1742 - Access1860 --> PgSelect1742 - List1749{{"List[1749∈20] ➊
ᐸ187,1748ᐳ
ᐳViewTable"}}:::plan - PgClassExpression1748{{"PgClassExpression[1748∈20] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan - Constant187 & PgClassExpression1748 --> List1749 - PgSelect1752[["PgSelect[1752∈20] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan - Object12 -->|rejectNull| PgSelect1752 - Access1860 --> PgSelect1752 - List1759{{"List[1759∈20] ➊
ᐸ197,1758ᐳ
ᐳSimilarTable1"}}:::plan - PgClassExpression1758{{"PgClassExpression[1758∈20] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan - Constant197 & PgClassExpression1758 --> List1759 - PgSelect1765[["PgSelect[1765∈20] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan - Object12 -->|rejectNull| PgSelect1765 - Access1860 --> PgSelect1765 - List1772{{"List[1772∈20] ➊
ᐸ210,1771ᐳ
ᐳSimilarTable2"}}:::plan - PgClassExpression1771{{"PgClassExpression[1771∈20] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan - Constant210 & PgClassExpression1771 --> List1772 - PgSelect1778[["PgSelect[1778∈20] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan - Object12 -->|rejectNull| PgSelect1778 - Access1860 --> PgSelect1778 - List1785{{"List[1785∈20] ➊
ᐸ223,1784ᐳ
ᐳNullTestRecord"}}:::plan - PgClassExpression1784{{"PgClassExpression[1784∈20] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan - Constant223 & PgClassExpression1784 --> List1785 - PgSelect1788[["PgSelect[1788∈20] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan - Object12 -->|rejectNull| PgSelect1788 - Access1860 --> PgSelect1788 - List1795{{"List[1795∈20] ➊
ᐸ233,1794ᐳ
ᐳIssue756"}}:::plan - PgClassExpression1794{{"PgClassExpression[1794∈20] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan - Constant233 & PgClassExpression1794 --> List1795 - PgSelect1798[["PgSelect[1798∈20] ➊
ᐸlistsᐳ
ᐳList"]]:::plan - Object12 -->|rejectNull| PgSelect1798 - Access1860 --> PgSelect1798 - List1805{{"List[1805∈20] ➊
ᐸ243,1804ᐳ
ᐳList"}}:::plan - PgClassExpression1804{{"PgClassExpression[1804∈20] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan - Constant243 & PgClassExpression1804 --> List1805 - Lambda1602{{"Lambda[1602∈20] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan - Constant41 --> Lambda1602 - First1610{{"First[1610∈20] ➊"}}:::plan - PgSelectRows1611[["PgSelectRows[1611∈20] ➊"]]:::plan - PgSelectRows1611 --> First1610 - PgSelect1606 --> PgSelectRows1611 - PgSelectSingle1612{{"PgSelectSingle[1612∈20] ➊
ᐸinputsᐳ"}}:::plan - First1610 --> PgSelectSingle1612 - PgSelectSingle1612 --> PgClassExpression1614 - Lambda1616{{"Lambda[1616∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1615 --> Lambda1616 - First1620{{"First[1620∈20] ➊"}}:::plan - PgSelectRows1621[["PgSelectRows[1621∈20] ➊"]]:::plan - PgSelectRows1621 --> First1620 - PgSelect1618 --> PgSelectRows1621 - PgSelectSingle1622{{"PgSelectSingle[1622∈20] ➊
ᐸpatchsᐳ"}}:::plan - First1620 --> PgSelectSingle1622 - PgSelectSingle1622 --> PgClassExpression1624 - Lambda1626{{"Lambda[1626∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1625 --> Lambda1626 - First1630{{"First[1630∈20] ➊"}}:::plan - PgSelectRows1631[["PgSelectRows[1631∈20] ➊"]]:::plan - PgSelectRows1631 --> First1630 - PgSelect1628 --> PgSelectRows1631 - PgSelectSingle1632{{"PgSelectSingle[1632∈20] ➊
ᐸreservedᐳ"}}:::plan - First1630 --> PgSelectSingle1632 - PgSelectSingle1632 --> PgClassExpression1634 - Lambda1636{{"Lambda[1636∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1635 --> Lambda1636 - First1640{{"First[1640∈20] ➊"}}:::plan - PgSelectRows1641[["PgSelectRows[1641∈20] ➊"]]:::plan - PgSelectRows1641 --> First1640 - PgSelect1638 --> PgSelectRows1641 - PgSelectSingle1642{{"PgSelectSingle[1642∈20] ➊
ᐸreservedPatchsᐳ"}}:::plan - First1640 --> PgSelectSingle1642 - PgSelectSingle1642 --> PgClassExpression1644 - Lambda1646{{"Lambda[1646∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1645 --> Lambda1646 - First1650{{"First[1650∈20] ➊"}}:::plan - PgSelectRows1651[["PgSelectRows[1651∈20] ➊"]]:::plan - PgSelectRows1651 --> First1650 - PgSelect1648 --> PgSelectRows1651 - PgSelectSingle1652{{"PgSelectSingle[1652∈20] ➊
ᐸreserved_inputᐳ"}}:::plan - First1650 --> PgSelectSingle1652 - PgSelectSingle1652 --> PgClassExpression1654 - Lambda1656{{"Lambda[1656∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1655 --> Lambda1656 - First1660{{"First[1660∈20] ➊"}}:::plan - PgSelectRows1661[["PgSelectRows[1661∈20] ➊"]]:::plan - PgSelectRows1661 --> First1660 - PgSelect1658 --> PgSelectRows1661 - PgSelectSingle1662{{"PgSelectSingle[1662∈20] ➊
ᐸdefault_valueᐳ"}}:::plan - First1660 --> PgSelectSingle1662 - PgSelectSingle1662 --> PgClassExpression1664 - Lambda1666{{"Lambda[1666∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1665 --> Lambda1666 - First1672{{"First[1672∈20] ➊"}}:::plan - PgSelectRows1673[["PgSelectRows[1673∈20] ➊"]]:::plan - PgSelectRows1673 --> First1672 - PgSelect1670 --> PgSelectRows1673 - PgSelectSingle1674{{"PgSelectSingle[1674∈20] ➊
ᐸcompound_keyᐳ"}}:::plan - First1672 --> PgSelectSingle1674 - PgSelectSingle1674 --> PgClassExpression1676 - PgSelectSingle1674 --> PgClassExpression1677 - Lambda1679{{"Lambda[1679∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1678 --> Lambda1679 - First1683{{"First[1683∈20] ➊"}}:::plan - PgSelectRows1684[["PgSelectRows[1684∈20] ➊"]]:::plan - PgSelectRows1684 --> First1683 - PgSelect1681 --> PgSelectRows1684 - PgSelectSingle1685{{"PgSelectSingle[1685∈20] ➊
ᐸpersonᐳ"}}:::plan - First1683 --> PgSelectSingle1685 - PgSelectSingle1685 --> PgClassExpression1687 - Lambda1689{{"Lambda[1689∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1688 --> Lambda1689 - PgClassExpression1690{{"PgClassExpression[1690∈20] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle1685 --> PgClassExpression1690 - First1694{{"First[1694∈20] ➊"}}:::plan - PgSelectRows1695[["PgSelectRows[1695∈20] ➊"]]:::plan - PgSelectRows1695 --> First1694 - PgSelect1692 --> PgSelectRows1695 - PgSelectSingle1696{{"PgSelectSingle[1696∈20] ➊
ᐸpostᐳ"}}:::plan - First1694 --> PgSelectSingle1696 - PgSelectSingle1696 --> PgClassExpression1698 - Lambda1700{{"Lambda[1700∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1699 --> Lambda1700 - First1704{{"First[1704∈20] ➊"}}:::plan - PgSelectRows1705[["PgSelectRows[1705∈20] ➊"]]:::plan - PgSelectRows1705 --> First1704 - PgSelect1702 --> PgSelectRows1705 - PgSelectSingle1706{{"PgSelectSingle[1706∈20] ➊
ᐸtypesᐳ"}}:::plan - First1704 --> PgSelectSingle1706 - PgSelectSingle1706 --> PgClassExpression1708 - Lambda1710{{"Lambda[1710∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1709 --> Lambda1710 - First1714{{"First[1714∈20] ➊"}}:::plan - PgSelectRows1715[["PgSelectRows[1715∈20] ➊"]]:::plan - PgSelectRows1715 --> First1714 - PgSelect1712 --> PgSelectRows1715 - PgSelectSingle1716{{"PgSelectSingle[1716∈20] ➊
ᐸperson_secretᐳ"}}:::plan - First1714 --> PgSelectSingle1716 - PgSelectSingle1716 --> PgClassExpression1718 - Lambda1720{{"Lambda[1720∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1719 --> Lambda1720 - First1724{{"First[1724∈20] ➊"}}:::plan - PgSelectRows1725[["PgSelectRows[1725∈20] ➊"]]:::plan - PgSelectRows1725 --> First1724 - PgSelect1722 --> PgSelectRows1725 - PgSelectSingle1726{{"PgSelectSingle[1726∈20] ➊
ᐸleft_armᐳ"}}:::plan - First1724 --> PgSelectSingle1726 - PgSelectSingle1726 --> PgClassExpression1728 - Lambda1730{{"Lambda[1730∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1729 --> Lambda1730 - First1734{{"First[1734∈20] ➊"}}:::plan - PgSelectRows1735[["PgSelectRows[1735∈20] ➊"]]:::plan - PgSelectRows1735 --> First1734 - PgSelect1732 --> PgSelectRows1735 - PgSelectSingle1736{{"PgSelectSingle[1736∈20] ➊
ᐸmy_tableᐳ"}}:::plan - First1734 --> PgSelectSingle1736 - PgSelectSingle1736 --> PgClassExpression1738 - Lambda1740{{"Lambda[1740∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1739 --> Lambda1740 - First1744{{"First[1744∈20] ➊"}}:::plan - PgSelectRows1745[["PgSelectRows[1745∈20] ➊"]]:::plan - PgSelectRows1745 --> First1744 - PgSelect1742 --> PgSelectRows1745 - PgSelectSingle1746{{"PgSelectSingle[1746∈20] ➊
ᐸview_tableᐳ"}}:::plan - First1744 --> PgSelectSingle1746 - PgSelectSingle1746 --> PgClassExpression1748 - Lambda1750{{"Lambda[1750∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1749 --> Lambda1750 - First1754{{"First[1754∈20] ➊"}}:::plan - PgSelectRows1755[["PgSelectRows[1755∈20] ➊"]]:::plan - PgSelectRows1755 --> First1754 - PgSelect1752 --> PgSelectRows1755 - PgSelectSingle1756{{"PgSelectSingle[1756∈20] ➊
ᐸsimilar_table_1ᐳ"}}:::plan - First1754 --> PgSelectSingle1756 - PgSelectSingle1756 --> PgClassExpression1758 - Lambda1760{{"Lambda[1760∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1759 --> Lambda1760 - PgClassExpression1761{{"PgClassExpression[1761∈20] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan - PgSelectSingle1756 --> PgClassExpression1761 - PgClassExpression1762{{"PgClassExpression[1762∈20] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan - PgSelectSingle1756 --> PgClassExpression1762 - PgClassExpression1763{{"PgClassExpression[1763∈20] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan - PgSelectSingle1756 --> PgClassExpression1763 - First1767{{"First[1767∈20] ➊"}}:::plan - PgSelectRows1768[["PgSelectRows[1768∈20] ➊"]]:::plan - PgSelectRows1768 --> First1767 - PgSelect1765 --> PgSelectRows1768 - PgSelectSingle1769{{"PgSelectSingle[1769∈20] ➊
ᐸsimilar_table_2ᐳ"}}:::plan - First1767 --> PgSelectSingle1769 - PgSelectSingle1769 --> PgClassExpression1771 - Lambda1773{{"Lambda[1773∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1772 --> Lambda1773 - PgClassExpression1774{{"PgClassExpression[1774∈20] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan - PgSelectSingle1769 --> PgClassExpression1774 - PgClassExpression1775{{"PgClassExpression[1775∈20] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan - PgSelectSingle1769 --> PgClassExpression1775 - PgClassExpression1776{{"PgClassExpression[1776∈20] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan - PgSelectSingle1769 --> PgClassExpression1776 - First1780{{"First[1780∈20] ➊"}}:::plan - PgSelectRows1781[["PgSelectRows[1781∈20] ➊"]]:::plan - PgSelectRows1781 --> First1780 - PgSelect1778 --> PgSelectRows1781 - PgSelectSingle1782{{"PgSelectSingle[1782∈20] ➊
ᐸnull_test_recordᐳ"}}:::plan - First1780 --> PgSelectSingle1782 - PgSelectSingle1782 --> PgClassExpression1784 - Lambda1786{{"Lambda[1786∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1785 --> Lambda1786 - First1790{{"First[1790∈20] ➊"}}:::plan - PgSelectRows1791[["PgSelectRows[1791∈20] ➊"]]:::plan - PgSelectRows1791 --> First1790 - PgSelect1788 --> PgSelectRows1791 - PgSelectSingle1792{{"PgSelectSingle[1792∈20] ➊
ᐸissue756ᐳ"}}:::plan - First1790 --> PgSelectSingle1792 - PgSelectSingle1792 --> PgClassExpression1794 - Lambda1796{{"Lambda[1796∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1795 --> Lambda1796 - First1800{{"First[1800∈20] ➊"}}:::plan - PgSelectRows1801[["PgSelectRows[1801∈20] ➊"]]:::plan - PgSelectRows1801 --> First1800 - PgSelect1798 --> PgSelectRows1801 - PgSelectSingle1802{{"PgSelectSingle[1802∈20] ➊
ᐸlistsᐳ"}}:::plan - First1800 --> PgSelectSingle1802 - PgSelectSingle1802 --> PgClassExpression1804 - Lambda1806{{"Lambda[1806∈20] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1805 --> Lambda1806 - Lambda1599 --> Access1860 - Lambda1599 --> Access1861 - List1818{{"List[1818∈21] ➊
ᐸ197,1817ᐳ"}}:::plan - PgClassExpression1817{{"PgClassExpression[1817∈21] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan - Constant197 & PgClassExpression1817 --> List1818 - PgSelectSingle1815 --> PgClassExpression1817 - Lambda1819{{"Lambda[1819∈21] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1818 --> Lambda1819 - PgClassExpression1820{{"PgClassExpression[1820∈21] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan - PgSelectSingle1815 --> PgClassExpression1820 - PgClassExpression1821{{"PgClassExpression[1821∈21] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan - PgSelectSingle1815 --> PgClassExpression1821 - PgClassExpression1822{{"PgClassExpression[1822∈21] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan - PgSelectSingle1815 --> PgClassExpression1822 - List1834{{"List[1834∈22] ➊
ᐸ210,1833ᐳ"}}:::plan - PgClassExpression1833{{"PgClassExpression[1833∈22] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan - Constant210 & PgClassExpression1833 --> List1834 - PgSelectSingle1831 --> PgClassExpression1833 - Lambda1835{{"Lambda[1835∈22] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List1834 --> Lambda1835 - PgClassExpression1836{{"PgClassExpression[1836∈22] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan - PgSelectSingle1831 --> PgClassExpression1836 - PgClassExpression1837{{"PgClassExpression[1837∈22] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan - PgSelectSingle1831 --> PgClassExpression1837 - PgClassExpression1838{{"PgClassExpression[1838∈22] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan - PgSelectSingle1831 --> PgClassExpression1838 + Lambda1089 --> Access1850 + Lambda1089 --> Access1851 + PgSelect1456[["PgSelect[1456∈9] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan + Access1853{{"Access[1853∈9] ➊
ᐸ1385.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan + Access1854{{"Access[1854∈9] ➊
ᐸ1385.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan + Object11 -->|rejectNull| PgSelect1456 + Access1853 -->|rejectNull| PgSelect1456 + Access1854 --> PgSelect1456 + List1464{{"List[1464∈9] ➊
ᐸ32,1462,1463ᐳ
ᐳCompoundKey"}}:::plan + PgClassExpression1462{{"PgClassExpression[1462∈9] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression1463{{"PgClassExpression[1463∈9] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Constant32 & PgClassExpression1462 & PgClassExpression1463 --> List1464 + PgSelect1392[["PgSelect[1392∈9] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan + Object11 -->|rejectNull| PgSelect1392 + Access1853 --> PgSelect1392 + List1401{{"List[1401∈9] ➊
ᐸ53,1400ᐳ
ᐳInput"}}:::plan + PgClassExpression1400{{"PgClassExpression[1400∈9] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan + Constant53 & PgClassExpression1400 --> List1401 + PgSelect1404[["PgSelect[1404∈9] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan + Object11 -->|rejectNull| PgSelect1404 + Access1853 --> PgSelect1404 + List1411{{"List[1411∈9] ➊
ᐸ63,1410ᐳ
ᐳPatch"}}:::plan + PgClassExpression1410{{"PgClassExpression[1410∈9] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan + Constant63 & PgClassExpression1410 --> List1411 + PgSelect1414[["PgSelect[1414∈9] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan + Object11 -->|rejectNull| PgSelect1414 + Access1853 --> PgSelect1414 + List1421{{"List[1421∈9] ➊
ᐸ73,1420ᐳ
ᐳReserved"}}:::plan + PgClassExpression1420{{"PgClassExpression[1420∈9] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan + Constant73 & PgClassExpression1420 --> List1421 + PgSelect1424[["PgSelect[1424∈9] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan + Object11 -->|rejectNull| PgSelect1424 + Access1853 --> PgSelect1424 + List1431{{"List[1431∈9] ➊
ᐸ83,1430ᐳ
ᐳReservedPatchRecord"}}:::plan + PgClassExpression1430{{"PgClassExpression[1430∈9] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan + Constant83 & PgClassExpression1430 --> List1431 + PgSelect1434[["PgSelect[1434∈9] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan + Object11 -->|rejectNull| PgSelect1434 + Access1853 --> PgSelect1434 + List1441{{"List[1441∈9] ➊
ᐸ93,1440ᐳ
ᐳReservedInputRecord"}}:::plan + PgClassExpression1440{{"PgClassExpression[1440∈9] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan + Constant93 & PgClassExpression1440 --> List1441 + PgSelect1444[["PgSelect[1444∈9] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan + Object11 -->|rejectNull| PgSelect1444 + Access1853 --> PgSelect1444 + List1451{{"List[1451∈9] ➊
ᐸ103,1450ᐳ
ᐳDefaultValue"}}:::plan + PgClassExpression1450{{"PgClassExpression[1450∈9] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan + Constant103 & PgClassExpression1450 --> List1451 + PgSelect1467[["PgSelect[1467∈9] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan + Object11 -->|rejectNull| PgSelect1467 + Access1853 --> PgSelect1467 + List1474{{"List[1474∈9] ➊
ᐸ18,1473ᐳ
ᐳPerson"}}:::plan + PgClassExpression1473{{"PgClassExpression[1473∈9] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant18 & PgClassExpression1473 --> List1474 + PgSelect1478[["PgSelect[1478∈9] ➊
ᐸpostᐳ
ᐳPost"]]:::plan + Object11 -->|rejectNull| PgSelect1478 + Access1853 --> PgSelect1478 + List1485{{"List[1485∈9] ➊
ᐸ137,1484ᐳ
ᐳPost"}}:::plan + PgClassExpression1484{{"PgClassExpression[1484∈9] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Constant137 & PgClassExpression1484 --> List1485 + PgSelect1488[["PgSelect[1488∈9] ➊
ᐸtypesᐳ
ᐳType"]]:::plan + Object11 -->|rejectNull| PgSelect1488 + Access1853 --> PgSelect1488 + List1495{{"List[1495∈9] ➊
ᐸ147,1494ᐳ
ᐳType"}}:::plan + PgClassExpression1494{{"PgClassExpression[1494∈9] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + Constant147 & PgClassExpression1494 --> List1495 + PgSelect1498[["PgSelect[1498∈9] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan + Object11 -->|rejectNull| PgSelect1498 + Access1853 --> PgSelect1498 + List1505{{"List[1505∈9] ➊
ᐸ157,1504ᐳ
ᐳPersonSecret"}}:::plan + PgClassExpression1504{{"PgClassExpression[1504∈9] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan + Constant157 & PgClassExpression1504 --> List1505 + PgSelect1508[["PgSelect[1508∈9] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan + Object11 -->|rejectNull| PgSelect1508 + Access1853 --> PgSelect1508 + List1515{{"List[1515∈9] ➊
ᐸ167,1514ᐳ
ᐳLeftArm"}}:::plan + PgClassExpression1514{{"PgClassExpression[1514∈9] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + Constant167 & PgClassExpression1514 --> List1515 + PgSelect1518[["PgSelect[1518∈9] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan + Object11 -->|rejectNull| PgSelect1518 + Access1853 --> PgSelect1518 + List1525{{"List[1525∈9] ➊
ᐸ177,1524ᐳ
ᐳMyTable"}}:::plan + PgClassExpression1524{{"PgClassExpression[1524∈9] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan + Constant177 & PgClassExpression1524 --> List1525 + PgSelect1528[["PgSelect[1528∈9] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan + Object11 -->|rejectNull| PgSelect1528 + Access1853 --> PgSelect1528 + List1535{{"List[1535∈9] ➊
ᐸ187,1534ᐳ
ᐳViewTable"}}:::plan + PgClassExpression1534{{"PgClassExpression[1534∈9] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan + Constant187 & PgClassExpression1534 --> List1535 + PgSelect1538[["PgSelect[1538∈9] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan + Object11 -->|rejectNull| PgSelect1538 + Access1853 --> PgSelect1538 + List1545{{"List[1545∈9] ➊
ᐸ197,1544ᐳ
ᐳSimilarTable1"}}:::plan + PgClassExpression1544{{"PgClassExpression[1544∈9] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan + Constant197 & PgClassExpression1544 --> List1545 + PgSelect1551[["PgSelect[1551∈9] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan + Object11 -->|rejectNull| PgSelect1551 + Access1853 --> PgSelect1551 + List1558{{"List[1558∈9] ➊
ᐸ210,1557ᐳ
ᐳSimilarTable2"}}:::plan + PgClassExpression1557{{"PgClassExpression[1557∈9] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan + Constant210 & PgClassExpression1557 --> List1558 + PgSelect1564[["PgSelect[1564∈9] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan + Object11 -->|rejectNull| PgSelect1564 + Access1853 --> PgSelect1564 + List1571{{"List[1571∈9] ➊
ᐸ223,1570ᐳ
ᐳNullTestRecord"}}:::plan + PgClassExpression1570{{"PgClassExpression[1570∈9] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan + Constant223 & PgClassExpression1570 --> List1571 + PgSelect1574[["PgSelect[1574∈9] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan + Object11 -->|rejectNull| PgSelect1574 + Access1853 --> PgSelect1574 + List1581{{"List[1581∈9] ➊
ᐸ233,1580ᐳ
ᐳIssue756"}}:::plan + PgClassExpression1580{{"PgClassExpression[1580∈9] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan + Constant233 & PgClassExpression1580 --> List1581 + PgSelect1584[["PgSelect[1584∈9] ➊
ᐸlistsᐳ
ᐳList"]]:::plan + Object11 -->|rejectNull| PgSelect1584 + Access1853 --> PgSelect1584 + List1591{{"List[1591∈9] ➊
ᐸ243,1590ᐳ
ᐳList"}}:::plan + PgClassExpression1590{{"PgClassExpression[1590∈9] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan + Constant243 & PgClassExpression1590 --> List1591 + Lambda1388{{"Lambda[1388∈9] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan + Constant41 --> Lambda1388 + First1396{{"First[1396∈9] ➊"}}:::plan + PgSelectRows1397[["PgSelectRows[1397∈9] ➊"]]:::plan + PgSelectRows1397 --> First1396 + PgSelect1392 --> PgSelectRows1397 + PgSelectSingle1398{{"PgSelectSingle[1398∈9] ➊
ᐸinputsᐳ"}}:::plan + First1396 --> PgSelectSingle1398 + PgSelectSingle1398 --> PgClassExpression1400 + Lambda1402{{"Lambda[1402∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1401 --> Lambda1402 + First1406{{"First[1406∈9] ➊"}}:::plan + PgSelectRows1407[["PgSelectRows[1407∈9] ➊"]]:::plan + PgSelectRows1407 --> First1406 + PgSelect1404 --> PgSelectRows1407 + PgSelectSingle1408{{"PgSelectSingle[1408∈9] ➊
ᐸpatchsᐳ"}}:::plan + First1406 --> PgSelectSingle1408 + PgSelectSingle1408 --> PgClassExpression1410 + Lambda1412{{"Lambda[1412∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1411 --> Lambda1412 + First1416{{"First[1416∈9] ➊"}}:::plan + PgSelectRows1417[["PgSelectRows[1417∈9] ➊"]]:::plan + PgSelectRows1417 --> First1416 + PgSelect1414 --> PgSelectRows1417 + PgSelectSingle1418{{"PgSelectSingle[1418∈9] ➊
ᐸreservedᐳ"}}:::plan + First1416 --> PgSelectSingle1418 + PgSelectSingle1418 --> PgClassExpression1420 + Lambda1422{{"Lambda[1422∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1421 --> Lambda1422 + First1426{{"First[1426∈9] ➊"}}:::plan + PgSelectRows1427[["PgSelectRows[1427∈9] ➊"]]:::plan + PgSelectRows1427 --> First1426 + PgSelect1424 --> PgSelectRows1427 + PgSelectSingle1428{{"PgSelectSingle[1428∈9] ➊
ᐸreservedPatchsᐳ"}}:::plan + First1426 --> PgSelectSingle1428 + PgSelectSingle1428 --> PgClassExpression1430 + Lambda1432{{"Lambda[1432∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1431 --> Lambda1432 + First1436{{"First[1436∈9] ➊"}}:::plan + PgSelectRows1437[["PgSelectRows[1437∈9] ➊"]]:::plan + PgSelectRows1437 --> First1436 + PgSelect1434 --> PgSelectRows1437 + PgSelectSingle1438{{"PgSelectSingle[1438∈9] ➊
ᐸreserved_inputᐳ"}}:::plan + First1436 --> PgSelectSingle1438 + PgSelectSingle1438 --> PgClassExpression1440 + Lambda1442{{"Lambda[1442∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1441 --> Lambda1442 + First1446{{"First[1446∈9] ➊"}}:::plan + PgSelectRows1447[["PgSelectRows[1447∈9] ➊"]]:::plan + PgSelectRows1447 --> First1446 + PgSelect1444 --> PgSelectRows1447 + PgSelectSingle1448{{"PgSelectSingle[1448∈9] ➊
ᐸdefault_valueᐳ"}}:::plan + First1446 --> PgSelectSingle1448 + PgSelectSingle1448 --> PgClassExpression1450 + Lambda1452{{"Lambda[1452∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1451 --> Lambda1452 + First1458{{"First[1458∈9] ➊"}}:::plan + PgSelectRows1459[["PgSelectRows[1459∈9] ➊"]]:::plan + PgSelectRows1459 --> First1458 + PgSelect1456 --> PgSelectRows1459 + PgSelectSingle1460{{"PgSelectSingle[1460∈9] ➊
ᐸcompound_keyᐳ"}}:::plan + First1458 --> PgSelectSingle1460 + PgSelectSingle1460 --> PgClassExpression1462 + PgSelectSingle1460 --> PgClassExpression1463 + Lambda1465{{"Lambda[1465∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1464 --> Lambda1465 + First1469{{"First[1469∈9] ➊"}}:::plan + PgSelectRows1470[["PgSelectRows[1470∈9] ➊"]]:::plan + PgSelectRows1470 --> First1469 + PgSelect1467 --> PgSelectRows1470 + PgSelectSingle1471{{"PgSelectSingle[1471∈9] ➊
ᐸpersonᐳ"}}:::plan + First1469 --> PgSelectSingle1471 + PgSelectSingle1471 --> PgClassExpression1473 + Lambda1475{{"Lambda[1475∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1474 --> Lambda1475 + PgClassExpression1476{{"PgClassExpression[1476∈9] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle1471 --> PgClassExpression1476 + First1480{{"First[1480∈9] ➊"}}:::plan + PgSelectRows1481[["PgSelectRows[1481∈9] ➊"]]:::plan + PgSelectRows1481 --> First1480 + PgSelect1478 --> PgSelectRows1481 + PgSelectSingle1482{{"PgSelectSingle[1482∈9] ➊
ᐸpostᐳ"}}:::plan + First1480 --> PgSelectSingle1482 + PgSelectSingle1482 --> PgClassExpression1484 + Lambda1486{{"Lambda[1486∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1485 --> Lambda1486 + First1490{{"First[1490∈9] ➊"}}:::plan + PgSelectRows1491[["PgSelectRows[1491∈9] ➊"]]:::plan + PgSelectRows1491 --> First1490 + PgSelect1488 --> PgSelectRows1491 + PgSelectSingle1492{{"PgSelectSingle[1492∈9] ➊
ᐸtypesᐳ"}}:::plan + First1490 --> PgSelectSingle1492 + PgSelectSingle1492 --> PgClassExpression1494 + Lambda1496{{"Lambda[1496∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1495 --> Lambda1496 + First1500{{"First[1500∈9] ➊"}}:::plan + PgSelectRows1501[["PgSelectRows[1501∈9] ➊"]]:::plan + PgSelectRows1501 --> First1500 + PgSelect1498 --> PgSelectRows1501 + PgSelectSingle1502{{"PgSelectSingle[1502∈9] ➊
ᐸperson_secretᐳ"}}:::plan + First1500 --> PgSelectSingle1502 + PgSelectSingle1502 --> PgClassExpression1504 + Lambda1506{{"Lambda[1506∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1505 --> Lambda1506 + First1510{{"First[1510∈9] ➊"}}:::plan + PgSelectRows1511[["PgSelectRows[1511∈9] ➊"]]:::plan + PgSelectRows1511 --> First1510 + PgSelect1508 --> PgSelectRows1511 + PgSelectSingle1512{{"PgSelectSingle[1512∈9] ➊
ᐸleft_armᐳ"}}:::plan + First1510 --> PgSelectSingle1512 + PgSelectSingle1512 --> PgClassExpression1514 + Lambda1516{{"Lambda[1516∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1515 --> Lambda1516 + First1520{{"First[1520∈9] ➊"}}:::plan + PgSelectRows1521[["PgSelectRows[1521∈9] ➊"]]:::plan + PgSelectRows1521 --> First1520 + PgSelect1518 --> PgSelectRows1521 + PgSelectSingle1522{{"PgSelectSingle[1522∈9] ➊
ᐸmy_tableᐳ"}}:::plan + First1520 --> PgSelectSingle1522 + PgSelectSingle1522 --> PgClassExpression1524 + Lambda1526{{"Lambda[1526∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1525 --> Lambda1526 + First1530{{"First[1530∈9] ➊"}}:::plan + PgSelectRows1531[["PgSelectRows[1531∈9] ➊"]]:::plan + PgSelectRows1531 --> First1530 + PgSelect1528 --> PgSelectRows1531 + PgSelectSingle1532{{"PgSelectSingle[1532∈9] ➊
ᐸview_tableᐳ"}}:::plan + First1530 --> PgSelectSingle1532 + PgSelectSingle1532 --> PgClassExpression1534 + Lambda1536{{"Lambda[1536∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1535 --> Lambda1536 + First1540{{"First[1540∈9] ➊"}}:::plan + PgSelectRows1541[["PgSelectRows[1541∈9] ➊"]]:::plan + PgSelectRows1541 --> First1540 + PgSelect1538 --> PgSelectRows1541 + PgSelectSingle1542{{"PgSelectSingle[1542∈9] ➊
ᐸsimilar_table_1ᐳ"}}:::plan + First1540 --> PgSelectSingle1542 + PgSelectSingle1542 --> PgClassExpression1544 + Lambda1546{{"Lambda[1546∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1545 --> Lambda1546 + PgClassExpression1547{{"PgClassExpression[1547∈9] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan + PgSelectSingle1542 --> PgClassExpression1547 + PgClassExpression1548{{"PgClassExpression[1548∈9] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan + PgSelectSingle1542 --> PgClassExpression1548 + PgClassExpression1549{{"PgClassExpression[1549∈9] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan + PgSelectSingle1542 --> PgClassExpression1549 + First1553{{"First[1553∈9] ➊"}}:::plan + PgSelectRows1554[["PgSelectRows[1554∈9] ➊"]]:::plan + PgSelectRows1554 --> First1553 + PgSelect1551 --> PgSelectRows1554 + PgSelectSingle1555{{"PgSelectSingle[1555∈9] ➊
ᐸsimilar_table_2ᐳ"}}:::plan + First1553 --> PgSelectSingle1555 + PgSelectSingle1555 --> PgClassExpression1557 + Lambda1559{{"Lambda[1559∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1558 --> Lambda1559 + PgClassExpression1560{{"PgClassExpression[1560∈9] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan + PgSelectSingle1555 --> PgClassExpression1560 + PgClassExpression1561{{"PgClassExpression[1561∈9] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan + PgSelectSingle1555 --> PgClassExpression1561 + PgClassExpression1562{{"PgClassExpression[1562∈9] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan + PgSelectSingle1555 --> PgClassExpression1562 + First1566{{"First[1566∈9] ➊"}}:::plan + PgSelectRows1567[["PgSelectRows[1567∈9] ➊"]]:::plan + PgSelectRows1567 --> First1566 + PgSelect1564 --> PgSelectRows1567 + PgSelectSingle1568{{"PgSelectSingle[1568∈9] ➊
ᐸnull_test_recordᐳ"}}:::plan + First1566 --> PgSelectSingle1568 + PgSelectSingle1568 --> PgClassExpression1570 + Lambda1572{{"Lambda[1572∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1571 --> Lambda1572 + First1576{{"First[1576∈9] ➊"}}:::plan + PgSelectRows1577[["PgSelectRows[1577∈9] ➊"]]:::plan + PgSelectRows1577 --> First1576 + PgSelect1574 --> PgSelectRows1577 + PgSelectSingle1578{{"PgSelectSingle[1578∈9] ➊
ᐸissue756ᐳ"}}:::plan + First1576 --> PgSelectSingle1578 + PgSelectSingle1578 --> PgClassExpression1580 + Lambda1582{{"Lambda[1582∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1581 --> Lambda1582 + First1586{{"First[1586∈9] ➊"}}:::plan + PgSelectRows1587[["PgSelectRows[1587∈9] ➊"]]:::plan + PgSelectRows1587 --> First1586 + PgSelect1584 --> PgSelectRows1587 + PgSelectSingle1588{{"PgSelectSingle[1588∈9] ➊
ᐸlistsᐳ"}}:::plan + First1586 --> PgSelectSingle1588 + PgSelectSingle1588 --> PgClassExpression1590 + Lambda1592{{"Lambda[1592∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1591 --> Lambda1592 + Lambda1385 --> Access1853 + Lambda1385 --> Access1854 + PgSelect1666[["PgSelect[1666∈10] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan + Access1856{{"Access[1856∈10] ➊
ᐸ1595.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan + Access1857{{"Access[1857∈10] ➊
ᐸ1595.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan + Object11 -->|rejectNull| PgSelect1666 + Access1856 -->|rejectNull| PgSelect1666 + Access1857 --> PgSelect1666 + List1674{{"List[1674∈10] ➊
ᐸ32,1672,1673ᐳ
ᐳCompoundKey"}}:::plan + PgClassExpression1672{{"PgClassExpression[1672∈10] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression1673{{"PgClassExpression[1673∈10] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Constant32 & PgClassExpression1672 & PgClassExpression1673 --> List1674 + PgSelect1602[["PgSelect[1602∈10] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan + Object11 -->|rejectNull| PgSelect1602 + Access1856 --> PgSelect1602 + List1611{{"List[1611∈10] ➊
ᐸ53,1610ᐳ
ᐳInput"}}:::plan + PgClassExpression1610{{"PgClassExpression[1610∈10] ➊
ᐸ__inputs__.”id”ᐳ"}}:::plan + Constant53 & PgClassExpression1610 --> List1611 + PgSelect1614[["PgSelect[1614∈10] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan + Object11 -->|rejectNull| PgSelect1614 + Access1856 --> PgSelect1614 + List1621{{"List[1621∈10] ➊
ᐸ63,1620ᐳ
ᐳPatch"}}:::plan + PgClassExpression1620{{"PgClassExpression[1620∈10] ➊
ᐸ__patchs__.”id”ᐳ"}}:::plan + Constant63 & PgClassExpression1620 --> List1621 + PgSelect1624[["PgSelect[1624∈10] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan + Object11 -->|rejectNull| PgSelect1624 + Access1856 --> PgSelect1624 + List1631{{"List[1631∈10] ➊
ᐸ73,1630ᐳ
ᐳReserved"}}:::plan + PgClassExpression1630{{"PgClassExpression[1630∈10] ➊
ᐸ__reserved__.”id”ᐳ"}}:::plan + Constant73 & PgClassExpression1630 --> List1631 + PgSelect1634[["PgSelect[1634∈10] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan + Object11 -->|rejectNull| PgSelect1634 + Access1856 --> PgSelect1634 + List1641{{"List[1641∈10] ➊
ᐸ83,1640ᐳ
ᐳReservedPatchRecord"}}:::plan + PgClassExpression1640{{"PgClassExpression[1640∈10] ➊
ᐸ__reserved...chs__.”id”ᐳ"}}:::plan + Constant83 & PgClassExpression1640 --> List1641 + PgSelect1644[["PgSelect[1644∈10] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan + Object11 -->|rejectNull| PgSelect1644 + Access1856 --> PgSelect1644 + List1651{{"List[1651∈10] ➊
ᐸ93,1650ᐳ
ᐳReservedInputRecord"}}:::plan + PgClassExpression1650{{"PgClassExpression[1650∈10] ➊
ᐸ__reserved_input__.”id”ᐳ"}}:::plan + Constant93 & PgClassExpression1650 --> List1651 + PgSelect1654[["PgSelect[1654∈10] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan + Object11 -->|rejectNull| PgSelect1654 + Access1856 --> PgSelect1654 + List1661{{"List[1661∈10] ➊
ᐸ103,1660ᐳ
ᐳDefaultValue"}}:::plan + PgClassExpression1660{{"PgClassExpression[1660∈10] ➊
ᐸ__default_value__.”id”ᐳ"}}:::plan + Constant103 & PgClassExpression1660 --> List1661 + PgSelect1677[["PgSelect[1677∈10] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan + Object11 -->|rejectNull| PgSelect1677 + Access1856 --> PgSelect1677 + List1684{{"List[1684∈10] ➊
ᐸ18,1683ᐳ
ᐳPerson"}}:::plan + PgClassExpression1683{{"PgClassExpression[1683∈10] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant18 & PgClassExpression1683 --> List1684 + PgSelect1688[["PgSelect[1688∈10] ➊
ᐸpostᐳ
ᐳPost"]]:::plan + Object11 -->|rejectNull| PgSelect1688 + Access1856 --> PgSelect1688 + List1695{{"List[1695∈10] ➊
ᐸ137,1694ᐳ
ᐳPost"}}:::plan + PgClassExpression1694{{"PgClassExpression[1694∈10] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Constant137 & PgClassExpression1694 --> List1695 + PgSelect1698[["PgSelect[1698∈10] ➊
ᐸtypesᐳ
ᐳType"]]:::plan + Object11 -->|rejectNull| PgSelect1698 + Access1856 --> PgSelect1698 + List1705{{"List[1705∈10] ➊
ᐸ147,1704ᐳ
ᐳType"}}:::plan + PgClassExpression1704{{"PgClassExpression[1704∈10] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + Constant147 & PgClassExpression1704 --> List1705 + PgSelect1708[["PgSelect[1708∈10] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan + Object11 -->|rejectNull| PgSelect1708 + Access1856 --> PgSelect1708 + List1715{{"List[1715∈10] ➊
ᐸ157,1714ᐳ
ᐳPersonSecret"}}:::plan + PgClassExpression1714{{"PgClassExpression[1714∈10] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan + Constant157 & PgClassExpression1714 --> List1715 + PgSelect1718[["PgSelect[1718∈10] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan + Object11 -->|rejectNull| PgSelect1718 + Access1856 --> PgSelect1718 + List1725{{"List[1725∈10] ➊
ᐸ167,1724ᐳ
ᐳLeftArm"}}:::plan + PgClassExpression1724{{"PgClassExpression[1724∈10] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + Constant167 & PgClassExpression1724 --> List1725 + PgSelect1728[["PgSelect[1728∈10] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan + Object11 -->|rejectNull| PgSelect1728 + Access1856 --> PgSelect1728 + List1735{{"List[1735∈10] ➊
ᐸ177,1734ᐳ
ᐳMyTable"}}:::plan + PgClassExpression1734{{"PgClassExpression[1734∈10] ➊
ᐸ__my_table__.”id”ᐳ"}}:::plan + Constant177 & PgClassExpression1734 --> List1735 + PgSelect1738[["PgSelect[1738∈10] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan + Object11 -->|rejectNull| PgSelect1738 + Access1856 --> PgSelect1738 + List1745{{"List[1745∈10] ➊
ᐸ187,1744ᐳ
ᐳViewTable"}}:::plan + PgClassExpression1744{{"PgClassExpression[1744∈10] ➊
ᐸ__view_table__.”id”ᐳ"}}:::plan + Constant187 & PgClassExpression1744 --> List1745 + PgSelect1748[["PgSelect[1748∈10] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan + Object11 -->|rejectNull| PgSelect1748 + Access1856 --> PgSelect1748 + List1755{{"List[1755∈10] ➊
ᐸ197,1754ᐳ
ᐳSimilarTable1"}}:::plan + PgClassExpression1754{{"PgClassExpression[1754∈10] ➊
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan + Constant197 & PgClassExpression1754 --> List1755 + PgSelect1761[["PgSelect[1761∈10] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan + Object11 -->|rejectNull| PgSelect1761 + Access1856 --> PgSelect1761 + List1768{{"List[1768∈10] ➊
ᐸ210,1767ᐳ
ᐳSimilarTable2"}}:::plan + PgClassExpression1767{{"PgClassExpression[1767∈10] ➊
ᐸ__similar_...e_2__.”id”ᐳ"}}:::plan + Constant210 & PgClassExpression1767 --> List1768 + PgSelect1774[["PgSelect[1774∈10] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan + Object11 -->|rejectNull| PgSelect1774 + Access1856 --> PgSelect1774 + List1781{{"List[1781∈10] ➊
ᐸ223,1780ᐳ
ᐳNullTestRecord"}}:::plan + PgClassExpression1780{{"PgClassExpression[1780∈10] ➊
ᐸ__null_tes...ord__.”id”ᐳ"}}:::plan + Constant223 & PgClassExpression1780 --> List1781 + PgSelect1784[["PgSelect[1784∈10] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan + Object11 -->|rejectNull| PgSelect1784 + Access1856 --> PgSelect1784 + List1791{{"List[1791∈10] ➊
ᐸ233,1790ᐳ
ᐳIssue756"}}:::plan + PgClassExpression1790{{"PgClassExpression[1790∈10] ➊
ᐸ__issue756__.”id”ᐳ"}}:::plan + Constant233 & PgClassExpression1790 --> List1791 + PgSelect1794[["PgSelect[1794∈10] ➊
ᐸlistsᐳ
ᐳList"]]:::plan + Object11 -->|rejectNull| PgSelect1794 + Access1856 --> PgSelect1794 + List1801{{"List[1801∈10] ➊
ᐸ243,1800ᐳ
ᐳList"}}:::plan + PgClassExpression1800{{"PgClassExpression[1800∈10] ➊
ᐸ__lists__.”id”ᐳ"}}:::plan + Constant243 & PgClassExpression1800 --> List1801 + Lambda1598{{"Lambda[1598∈10] ➊
ᐸrawEncodeᐳ
ᐳQuery"}}:::plan + Constant41 --> Lambda1598 + First1606{{"First[1606∈10] ➊"}}:::plan + PgSelectRows1607[["PgSelectRows[1607∈10] ➊"]]:::plan + PgSelectRows1607 --> First1606 + PgSelect1602 --> PgSelectRows1607 + PgSelectSingle1608{{"PgSelectSingle[1608∈10] ➊
ᐸinputsᐳ"}}:::plan + First1606 --> PgSelectSingle1608 + PgSelectSingle1608 --> PgClassExpression1610 + Lambda1612{{"Lambda[1612∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1611 --> Lambda1612 + First1616{{"First[1616∈10] ➊"}}:::plan + PgSelectRows1617[["PgSelectRows[1617∈10] ➊"]]:::plan + PgSelectRows1617 --> First1616 + PgSelect1614 --> PgSelectRows1617 + PgSelectSingle1618{{"PgSelectSingle[1618∈10] ➊
ᐸpatchsᐳ"}}:::plan + First1616 --> PgSelectSingle1618 + PgSelectSingle1618 --> PgClassExpression1620 + Lambda1622{{"Lambda[1622∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1621 --> Lambda1622 + First1626{{"First[1626∈10] ➊"}}:::plan + PgSelectRows1627[["PgSelectRows[1627∈10] ➊"]]:::plan + PgSelectRows1627 --> First1626 + PgSelect1624 --> PgSelectRows1627 + PgSelectSingle1628{{"PgSelectSingle[1628∈10] ➊
ᐸreservedᐳ"}}:::plan + First1626 --> PgSelectSingle1628 + PgSelectSingle1628 --> PgClassExpression1630 + Lambda1632{{"Lambda[1632∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1631 --> Lambda1632 + First1636{{"First[1636∈10] ➊"}}:::plan + PgSelectRows1637[["PgSelectRows[1637∈10] ➊"]]:::plan + PgSelectRows1637 --> First1636 + PgSelect1634 --> PgSelectRows1637 + PgSelectSingle1638{{"PgSelectSingle[1638∈10] ➊
ᐸreservedPatchsᐳ"}}:::plan + First1636 --> PgSelectSingle1638 + PgSelectSingle1638 --> PgClassExpression1640 + Lambda1642{{"Lambda[1642∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1641 --> Lambda1642 + First1646{{"First[1646∈10] ➊"}}:::plan + PgSelectRows1647[["PgSelectRows[1647∈10] ➊"]]:::plan + PgSelectRows1647 --> First1646 + PgSelect1644 --> PgSelectRows1647 + PgSelectSingle1648{{"PgSelectSingle[1648∈10] ➊
ᐸreserved_inputᐳ"}}:::plan + First1646 --> PgSelectSingle1648 + PgSelectSingle1648 --> PgClassExpression1650 + Lambda1652{{"Lambda[1652∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1651 --> Lambda1652 + First1656{{"First[1656∈10] ➊"}}:::plan + PgSelectRows1657[["PgSelectRows[1657∈10] ➊"]]:::plan + PgSelectRows1657 --> First1656 + PgSelect1654 --> PgSelectRows1657 + PgSelectSingle1658{{"PgSelectSingle[1658∈10] ➊
ᐸdefault_valueᐳ"}}:::plan + First1656 --> PgSelectSingle1658 + PgSelectSingle1658 --> PgClassExpression1660 + Lambda1662{{"Lambda[1662∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1661 --> Lambda1662 + First1668{{"First[1668∈10] ➊"}}:::plan + PgSelectRows1669[["PgSelectRows[1669∈10] ➊"]]:::plan + PgSelectRows1669 --> First1668 + PgSelect1666 --> PgSelectRows1669 + PgSelectSingle1670{{"PgSelectSingle[1670∈10] ➊
ᐸcompound_keyᐳ"}}:::plan + First1668 --> PgSelectSingle1670 + PgSelectSingle1670 --> PgClassExpression1672 + PgSelectSingle1670 --> PgClassExpression1673 + Lambda1675{{"Lambda[1675∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1674 --> Lambda1675 + First1679{{"First[1679∈10] ➊"}}:::plan + PgSelectRows1680[["PgSelectRows[1680∈10] ➊"]]:::plan + PgSelectRows1680 --> First1679 + PgSelect1677 --> PgSelectRows1680 + PgSelectSingle1681{{"PgSelectSingle[1681∈10] ➊
ᐸpersonᐳ"}}:::plan + First1679 --> PgSelectSingle1681 + PgSelectSingle1681 --> PgClassExpression1683 + Lambda1685{{"Lambda[1685∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1684 --> Lambda1685 + PgClassExpression1686{{"PgClassExpression[1686∈10] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle1681 --> PgClassExpression1686 + First1690{{"First[1690∈10] ➊"}}:::plan + PgSelectRows1691[["PgSelectRows[1691∈10] ➊"]]:::plan + PgSelectRows1691 --> First1690 + PgSelect1688 --> PgSelectRows1691 + PgSelectSingle1692{{"PgSelectSingle[1692∈10] ➊
ᐸpostᐳ"}}:::plan + First1690 --> PgSelectSingle1692 + PgSelectSingle1692 --> PgClassExpression1694 + Lambda1696{{"Lambda[1696∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1695 --> Lambda1696 + First1700{{"First[1700∈10] ➊"}}:::plan + PgSelectRows1701[["PgSelectRows[1701∈10] ➊"]]:::plan + PgSelectRows1701 --> First1700 + PgSelect1698 --> PgSelectRows1701 + PgSelectSingle1702{{"PgSelectSingle[1702∈10] ➊
ᐸtypesᐳ"}}:::plan + First1700 --> PgSelectSingle1702 + PgSelectSingle1702 --> PgClassExpression1704 + Lambda1706{{"Lambda[1706∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1705 --> Lambda1706 + First1710{{"First[1710∈10] ➊"}}:::plan + PgSelectRows1711[["PgSelectRows[1711∈10] ➊"]]:::plan + PgSelectRows1711 --> First1710 + PgSelect1708 --> PgSelectRows1711 + PgSelectSingle1712{{"PgSelectSingle[1712∈10] ➊
ᐸperson_secretᐳ"}}:::plan + First1710 --> PgSelectSingle1712 + PgSelectSingle1712 --> PgClassExpression1714 + Lambda1716{{"Lambda[1716∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1715 --> Lambda1716 + First1720{{"First[1720∈10] ➊"}}:::plan + PgSelectRows1721[["PgSelectRows[1721∈10] ➊"]]:::plan + PgSelectRows1721 --> First1720 + PgSelect1718 --> PgSelectRows1721 + PgSelectSingle1722{{"PgSelectSingle[1722∈10] ➊
ᐸleft_armᐳ"}}:::plan + First1720 --> PgSelectSingle1722 + PgSelectSingle1722 --> PgClassExpression1724 + Lambda1726{{"Lambda[1726∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1725 --> Lambda1726 + First1730{{"First[1730∈10] ➊"}}:::plan + PgSelectRows1731[["PgSelectRows[1731∈10] ➊"]]:::plan + PgSelectRows1731 --> First1730 + PgSelect1728 --> PgSelectRows1731 + PgSelectSingle1732{{"PgSelectSingle[1732∈10] ➊
ᐸmy_tableᐳ"}}:::plan + First1730 --> PgSelectSingle1732 + PgSelectSingle1732 --> PgClassExpression1734 + Lambda1736{{"Lambda[1736∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1735 --> Lambda1736 + First1740{{"First[1740∈10] ➊"}}:::plan + PgSelectRows1741[["PgSelectRows[1741∈10] ➊"]]:::plan + PgSelectRows1741 --> First1740 + PgSelect1738 --> PgSelectRows1741 + PgSelectSingle1742{{"PgSelectSingle[1742∈10] ➊
ᐸview_tableᐳ"}}:::plan + First1740 --> PgSelectSingle1742 + PgSelectSingle1742 --> PgClassExpression1744 + Lambda1746{{"Lambda[1746∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1745 --> Lambda1746 + First1750{{"First[1750∈10] ➊"}}:::plan + PgSelectRows1751[["PgSelectRows[1751∈10] ➊"]]:::plan + PgSelectRows1751 --> First1750 + PgSelect1748 --> PgSelectRows1751 + PgSelectSingle1752{{"PgSelectSingle[1752∈10] ➊
ᐸsimilar_table_1ᐳ"}}:::plan + First1750 --> PgSelectSingle1752 + PgSelectSingle1752 --> PgClassExpression1754 + Lambda1756{{"Lambda[1756∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1755 --> Lambda1756 + PgClassExpression1757{{"PgClassExpression[1757∈10] ➊
ᐸ__similar_...1__.”col1”ᐳ"}}:::plan + PgSelectSingle1752 --> PgClassExpression1757 + PgClassExpression1758{{"PgClassExpression[1758∈10] ➊
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan + PgSelectSingle1752 --> PgClassExpression1758 + PgClassExpression1759{{"PgClassExpression[1759∈10] ➊
ᐸ__similar_...1__.”col3”ᐳ"}}:::plan + PgSelectSingle1752 --> PgClassExpression1759 + First1763{{"First[1763∈10] ➊"}}:::plan + PgSelectRows1764[["PgSelectRows[1764∈10] ➊"]]:::plan + PgSelectRows1764 --> First1763 + PgSelect1761 --> PgSelectRows1764 + PgSelectSingle1765{{"PgSelectSingle[1765∈10] ➊
ᐸsimilar_table_2ᐳ"}}:::plan + First1763 --> PgSelectSingle1765 + PgSelectSingle1765 --> PgClassExpression1767 + Lambda1769{{"Lambda[1769∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1768 --> Lambda1769 + PgClassExpression1770{{"PgClassExpression[1770∈10] ➊
ᐸ__similar_...2__.”col3”ᐳ"}}:::plan + PgSelectSingle1765 --> PgClassExpression1770 + PgClassExpression1771{{"PgClassExpression[1771∈10] ➊
ᐸ__similar_...2__.”col4”ᐳ"}}:::plan + PgSelectSingle1765 --> PgClassExpression1771 + PgClassExpression1772{{"PgClassExpression[1772∈10] ➊
ᐸ__similar_...2__.”col5”ᐳ"}}:::plan + PgSelectSingle1765 --> PgClassExpression1772 + First1776{{"First[1776∈10] ➊"}}:::plan + PgSelectRows1777[["PgSelectRows[1777∈10] ➊"]]:::plan + PgSelectRows1777 --> First1776 + PgSelect1774 --> PgSelectRows1777 + PgSelectSingle1778{{"PgSelectSingle[1778∈10] ➊
ᐸnull_test_recordᐳ"}}:::plan + First1776 --> PgSelectSingle1778 + PgSelectSingle1778 --> PgClassExpression1780 + Lambda1782{{"Lambda[1782∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1781 --> Lambda1782 + First1786{{"First[1786∈10] ➊"}}:::plan + PgSelectRows1787[["PgSelectRows[1787∈10] ➊"]]:::plan + PgSelectRows1787 --> First1786 + PgSelect1784 --> PgSelectRows1787 + PgSelectSingle1788{{"PgSelectSingle[1788∈10] ➊
ᐸissue756ᐳ"}}:::plan + First1786 --> PgSelectSingle1788 + PgSelectSingle1788 --> PgClassExpression1790 + Lambda1792{{"Lambda[1792∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1791 --> Lambda1792 + First1796{{"First[1796∈10] ➊"}}:::plan + PgSelectRows1797[["PgSelectRows[1797∈10] ➊"]]:::plan + PgSelectRows1797 --> First1796 + PgSelect1794 --> PgSelectRows1797 + PgSelectSingle1798{{"PgSelectSingle[1798∈10] ➊
ᐸlistsᐳ"}}:::plan + First1796 --> PgSelectSingle1798 + PgSelectSingle1798 --> PgClassExpression1800 + Lambda1802{{"Lambda[1802∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List1801 --> Lambda1802 + Lambda1595 --> Access1856 + Lambda1595 --> Access1857 %% define steps subgraph "Buckets for queries/v4/node" - Bucket0("Bucket 0 (root)

1:
ᐳ: 10, 11, 13, 18, 27, 32, 41, 53, 63, 73, 83, 93, 103, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 1841, 1844, 1847, 1850, 1853, 1856, 1859, 1862, 12, 39, 249, 459, 669, 879, 1089, 1298, 1299, 1312, 1313, 1326, 1327, 1340, 1341, 1343, 1356, 1357, 1359, 1372, 1373, 1375, 1389, 1599, 1808, 1809, 1824, 1825, 38, 248, 458, 668, 878, 1088, 1388, 1598
2: 1301, 1315, 1329, 1345, 1361, 1377, 1811, 1827
3: 1304, 1318, 1332, 1348, 1364, 1380, 1814, 1830
ᐳ: 1303, 1305, 1317, 1319, 1331, 1333, 1347, 1349, 1363, 1365, 1379, 1381, 1813, 1815, 1829, 1831"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 18, 32, 41, 53, 63, 73, 83, 93, 103, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 1837, 1840, 1843, 1846, 1849, 1852, 1855, 1858, 11, 12, 26, 39, 249, 459, 669, 879, 1089, 1298, 1299, 1312, 1313, 1325, 1326, 1338, 1339, 1341, 1354, 1355, 1357, 1369, 1370, 1372, 1385, 1595, 1804, 1805, 1820, 1821, 38, 248, 458, 668, 878, 1088, 1384, 1594
2: 14, 28, 1301, 1315, 1328, 1343, 1359, 1374, 1807, 1823
3: 15, 29, 1304, 1318, 1331, 1346, 1362, 1377, 1810, 1826
ᐳ: 1303, 1305, 1307, 1308, 1309, 1310, 1317, 1319, 1320, 1321, 1322, 1323, 1330, 1332, 1333, 1334, 1335, 1336, 1345, 1347, 1349, 1350, 1351, 1352, 1361, 1363, 1364, 1365, 1366, 1367, 1376, 1378, 1379, 1380, 1381, 1382, 1809, 1811, 1813, 1814, 1815, 1816, 1817, 1818, 1825, 1827, 1829, 1830, 1831, 1832, 1833, 1834"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Constant18,Connection27,Constant32,Node38,Lambda39,Constant41,Constant53,Constant63,Constant73,Constant83,Constant93,Constant103,Constant137,Constant147,Constant157,Constant167,Constant177,Constant187,Constant197,Constant210,Constant223,Constant233,Constant243,Node248,Lambda249,Node458,Lambda459,Node668,Lambda669,Node878,Lambda879,Node1088,Lambda1089,Lambda1298,Access1299,PgSelect1301,First1303,PgSelectRows1304,PgSelectSingle1305,Lambda1312,Access1313,PgSelect1315,First1317,PgSelectRows1318,PgSelectSingle1319,Lambda1326,Access1327,PgSelect1329,First1331,PgSelectRows1332,PgSelectSingle1333,Lambda1340,Access1341,Access1343,PgSelect1345,First1347,PgSelectRows1348,PgSelectSingle1349,Lambda1356,Access1357,Access1359,PgSelect1361,First1363,PgSelectRows1364,PgSelectSingle1365,Lambda1372,Access1373,Access1375,PgSelect1377,First1379,PgSelectRows1380,PgSelectSingle1381,Node1388,Lambda1389,Node1598,Lambda1599,Lambda1808,Access1809,PgSelect1811,First1813,PgSelectRows1814,PgSelectSingle1815,Lambda1824,Access1825,PgSelect1827,First1829,PgSelectRows1830,PgSelectSingle1831,Constant1841,Constant1844,Constant1847,Constant1850,Constant1853,Constant1856,Constant1859,Constant1862 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 18

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Constant18,Connection26,PgSelect28,PgSelectRows29,Constant32,Node38,Lambda39,Constant41,Constant53,Constant63,Constant73,Constant83,Constant93,Constant103,Constant137,Constant147,Constant157,Constant167,Constant177,Constant187,Constant197,Constant210,Constant223,Constant233,Constant243,Node248,Lambda249,Node458,Lambda459,Node668,Lambda669,Node878,Lambda879,Node1088,Lambda1089,Lambda1298,Access1299,PgSelect1301,First1303,PgSelectRows1304,PgSelectSingle1305,PgClassExpression1307,List1308,Lambda1309,PgClassExpression1310,Lambda1312,Access1313,PgSelect1315,First1317,PgSelectRows1318,PgSelectSingle1319,PgClassExpression1320,List1321,Lambda1322,PgClassExpression1323,Lambda1325,Access1326,PgSelect1328,First1330,PgSelectRows1331,PgSelectSingle1332,PgClassExpression1333,List1334,Lambda1335,PgClassExpression1336,Lambda1338,Access1339,Access1341,PgSelect1343,First1345,PgSelectRows1346,PgSelectSingle1347,PgClassExpression1349,PgClassExpression1350,List1351,Lambda1352,Lambda1354,Access1355,Access1357,PgSelect1359,First1361,PgSelectRows1362,PgSelectSingle1363,PgClassExpression1364,PgClassExpression1365,List1366,Lambda1367,Lambda1369,Access1370,Access1372,PgSelect1374,First1376,PgSelectRows1377,PgSelectSingle1378,PgClassExpression1379,PgClassExpression1380,List1381,Lambda1382,Node1384,Lambda1385,Node1594,Lambda1595,Lambda1804,Access1805,PgSelect1807,First1809,PgSelectRows1810,PgSelectSingle1811,PgClassExpression1813,List1814,Lambda1815,PgClassExpression1816,PgClassExpression1817,PgClassExpression1818,Lambda1820,Access1821,PgSelect1823,First1825,PgSelectRows1826,PgSelectSingle1827,PgClassExpression1829,List1830,Lambda1831,PgClassExpression1832,PgClassExpression1833,PgClassExpression1834,Constant1837,Constant1840,Constant1843,Constant1846,Constant1849,Constant1852,Constant1855,Constant1858 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 18

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 18

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression19,List20,Lambda21,PgClassExpression22 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 32

ROOT __Item{2}ᐸ29ᐳ[30]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 18

ROOT PgSelectSingle{2}ᐸpersonᐳ[17]"):::bucket + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression33,PgClassExpression34,List35,Lambda36 bucket2 + Bucket3("Bucket 3 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 11, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 39, 38, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: Lambda[42], Access[1835], Access[1836]
2: 46, 58, 68, 78, 88, 98, 110, 121, 132, 142, 152, 162, 172, 182, 192, 205, 218, 228, 238
3: 51, 61, 71, 81, 91, 101, 113, 124, 135, 145, 155, 165, 175, 185, 195, 208, 221, 231, 241
ᐳ: 50, 52, 54, 55, 56, 60, 62, 64, 65, 66, 70, 72, 74, 75, 76, 80, 82, 84, 85, 86, 90, 92, 94, 95, 96, 100, 102, 104, 105, 106, 112, 114, 116, 117, 118, 119, 123, 125, 127, 128, 129, 130, 134, 136, 138, 139, 140, 144, 146, 148, 149, 150, 154, 156, 158, 159, 160, 164, 166, 168, 169, 170, 174, 176, 178, 179, 180, 184, 186, 188, 189, 190, 194, 196, 198, 199, 200, 201, 202, 203, 207, 209, 211, 212, 213, 214, 215, 216, 220, 222, 224, 225, 226, 230, 232, 234, 235, 236, 240, 242, 244, 245, 246"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,List20,Lambda21,PgClassExpression22 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 12, 27, 32

ROOT Connectionᐸ25ᐳ[27]
1: PgSelect[28]
2: PgSelectRows[29]"):::bucket + class Bucket3,Lambda42,PgSelect46,First50,PgSelectRows51,PgSelectSingle52,PgClassExpression54,List55,Lambda56,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgClassExpression64,List65,Lambda66,PgSelect68,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression74,List75,Lambda76,PgSelect78,First80,PgSelectRows81,PgSelectSingle82,PgClassExpression84,List85,Lambda86,PgSelect88,First90,PgSelectRows91,PgSelectSingle92,PgClassExpression94,List95,Lambda96,PgSelect98,First100,PgSelectRows101,PgSelectSingle102,PgClassExpression104,List105,Lambda106,PgSelect110,First112,PgSelectRows113,PgSelectSingle114,PgClassExpression116,PgClassExpression117,List118,Lambda119,PgSelect121,First123,PgSelectRows124,PgSelectSingle125,PgClassExpression127,List128,Lambda129,PgClassExpression130,PgSelect132,First134,PgSelectRows135,PgSelectSingle136,PgClassExpression138,List139,Lambda140,PgSelect142,First144,PgSelectRows145,PgSelectSingle146,PgClassExpression148,List149,Lambda150,PgSelect152,First154,PgSelectRows155,PgSelectSingle156,PgClassExpression158,List159,Lambda160,PgSelect162,First164,PgSelectRows165,PgSelectSingle166,PgClassExpression168,List169,Lambda170,PgSelect172,First174,PgSelectRows175,PgSelectSingle176,PgClassExpression178,List179,Lambda180,PgSelect182,First184,PgSelectRows185,PgSelectSingle186,PgClassExpression188,List189,Lambda190,PgSelect192,First194,PgSelectRows195,PgSelectSingle196,PgClassExpression198,List199,Lambda200,PgClassExpression201,PgClassExpression202,PgClassExpression203,PgSelect205,First207,PgSelectRows208,PgSelectSingle209,PgClassExpression211,List212,Lambda213,PgClassExpression214,PgClassExpression215,PgClassExpression216,PgSelect218,First220,PgSelectRows221,PgSelectSingle222,PgClassExpression224,List225,Lambda226,PgSelect228,First230,PgSelectRows231,PgSelectSingle232,PgClassExpression234,List235,Lambda236,PgSelect238,First240,PgSelectRows241,PgSelectSingle242,PgClassExpression244,List245,Lambda246,Access1835,Access1836 bucket3 + Bucket4("Bucket 4 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 11, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 249, 248, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: Lambda[252], Access[1838], Access[1839]
2: 256, 268, 278, 288, 298, 308, 320, 331, 342, 352, 362, 372, 382, 392, 402, 415, 428, 438, 448
3: 261, 271, 281, 291, 301, 311, 323, 334, 345, 355, 365, 375, 385, 395, 405, 418, 431, 441, 451
ᐳ: 260, 262, 264, 265, 266, 270, 272, 274, 275, 276, 280, 282, 284, 285, 286, 290, 292, 294, 295, 296, 300, 302, 304, 305, 306, 310, 312, 314, 315, 316, 322, 324, 326, 327, 328, 329, 333, 335, 337, 338, 339, 340, 344, 346, 348, 349, 350, 354, 356, 358, 359, 360, 364, 366, 368, 369, 370, 374, 376, 378, 379, 380, 384, 386, 388, 389, 390, 394, 396, 398, 399, 400, 404, 406, 408, 409, 410, 411, 412, 413, 417, 419, 421, 422, 423, 424, 425, 426, 430, 432, 434, 435, 436, 440, 442, 444, 445, 446, 450, 452, 454, 455, 456"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect28,PgSelectRows29 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 32

ROOT __Item{5}ᐸ29ᐳ[30]"):::bucket + class Bucket4,Lambda252,PgSelect256,First260,PgSelectRows261,PgSelectSingle262,PgClassExpression264,List265,Lambda266,PgSelect268,First270,PgSelectRows271,PgSelectSingle272,PgClassExpression274,List275,Lambda276,PgSelect278,First280,PgSelectRows281,PgSelectSingle282,PgClassExpression284,List285,Lambda286,PgSelect288,First290,PgSelectRows291,PgSelectSingle292,PgClassExpression294,List295,Lambda296,PgSelect298,First300,PgSelectRows301,PgSelectSingle302,PgClassExpression304,List305,Lambda306,PgSelect308,First310,PgSelectRows311,PgSelectSingle312,PgClassExpression314,List315,Lambda316,PgSelect320,First322,PgSelectRows323,PgSelectSingle324,PgClassExpression326,PgClassExpression327,List328,Lambda329,PgSelect331,First333,PgSelectRows334,PgSelectSingle335,PgClassExpression337,List338,Lambda339,PgClassExpression340,PgSelect342,First344,PgSelectRows345,PgSelectSingle346,PgClassExpression348,List349,Lambda350,PgSelect352,First354,PgSelectRows355,PgSelectSingle356,PgClassExpression358,List359,Lambda360,PgSelect362,First364,PgSelectRows365,PgSelectSingle366,PgClassExpression368,List369,Lambda370,PgSelect372,First374,PgSelectRows375,PgSelectSingle376,PgClassExpression378,List379,Lambda380,PgSelect382,First384,PgSelectRows385,PgSelectSingle386,PgClassExpression388,List389,Lambda390,PgSelect392,First394,PgSelectRows395,PgSelectSingle396,PgClassExpression398,List399,Lambda400,PgSelect402,First404,PgSelectRows405,PgSelectSingle406,PgClassExpression408,List409,Lambda410,PgClassExpression411,PgClassExpression412,PgClassExpression413,PgSelect415,First417,PgSelectRows418,PgSelectSingle419,PgClassExpression421,List422,Lambda423,PgClassExpression424,PgClassExpression425,PgClassExpression426,PgSelect428,First430,PgSelectRows431,PgSelectSingle432,PgClassExpression434,List435,Lambda436,PgSelect438,First440,PgSelectRows441,PgSelectSingle442,PgClassExpression444,List445,Lambda446,PgSelect448,First450,PgSelectRows451,PgSelectSingle452,PgClassExpression454,List455,Lambda456,Access1838,Access1839 bucket4 + Bucket5("Bucket 5 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 11, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 459, 458, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: Lambda[462], Access[1841], Access[1842]
2: 466, 478, 488, 498, 508, 518, 530, 541, 552, 562, 572, 582, 592, 602, 612, 625, 638, 648, 658
3: 471, 481, 491, 501, 511, 521, 533, 544, 555, 565, 575, 585, 595, 605, 615, 628, 641, 651, 661
ᐳ: 470, 472, 474, 475, 476, 480, 482, 484, 485, 486, 490, 492, 494, 495, 496, 500, 502, 504, 505, 506, 510, 512, 514, 515, 516, 520, 522, 524, 525, 526, 532, 534, 536, 537, 538, 539, 543, 545, 547, 548, 549, 550, 554, 556, 558, 559, 560, 564, 566, 568, 569, 570, 574, 576, 578, 579, 580, 584, 586, 588, 589, 590, 594, 596, 598, 599, 600, 604, 606, 608, 609, 610, 614, 616, 618, 619, 620, 621, 622, 623, 627, 629, 631, 632, 633, 634, 635, 636, 640, 642, 644, 645, 646, 650, 652, 654, 655, 656, 660, 662, 664, 665, 666"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item30,PgSelectSingle31 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 31, 32

ROOT PgSelectSingle{5}ᐸcompound_keyᐳ[31]"):::bucket + class Bucket5,Lambda462,PgSelect466,First470,PgSelectRows471,PgSelectSingle472,PgClassExpression474,List475,Lambda476,PgSelect478,First480,PgSelectRows481,PgSelectSingle482,PgClassExpression484,List485,Lambda486,PgSelect488,First490,PgSelectRows491,PgSelectSingle492,PgClassExpression494,List495,Lambda496,PgSelect498,First500,PgSelectRows501,PgSelectSingle502,PgClassExpression504,List505,Lambda506,PgSelect508,First510,PgSelectRows511,PgSelectSingle512,PgClassExpression514,List515,Lambda516,PgSelect518,First520,PgSelectRows521,PgSelectSingle522,PgClassExpression524,List525,Lambda526,PgSelect530,First532,PgSelectRows533,PgSelectSingle534,PgClassExpression536,PgClassExpression537,List538,Lambda539,PgSelect541,First543,PgSelectRows544,PgSelectSingle545,PgClassExpression547,List548,Lambda549,PgClassExpression550,PgSelect552,First554,PgSelectRows555,PgSelectSingle556,PgClassExpression558,List559,Lambda560,PgSelect562,First564,PgSelectRows565,PgSelectSingle566,PgClassExpression568,List569,Lambda570,PgSelect572,First574,PgSelectRows575,PgSelectSingle576,PgClassExpression578,List579,Lambda580,PgSelect582,First584,PgSelectRows585,PgSelectSingle586,PgClassExpression588,List589,Lambda590,PgSelect592,First594,PgSelectRows595,PgSelectSingle596,PgClassExpression598,List599,Lambda600,PgSelect602,First604,PgSelectRows605,PgSelectSingle606,PgClassExpression608,List609,Lambda610,PgSelect612,First614,PgSelectRows615,PgSelectSingle616,PgClassExpression618,List619,Lambda620,PgClassExpression621,PgClassExpression622,PgClassExpression623,PgSelect625,First627,PgSelectRows628,PgSelectSingle629,PgClassExpression631,List632,Lambda633,PgClassExpression634,PgClassExpression635,PgClassExpression636,PgSelect638,First640,PgSelectRows641,PgSelectSingle642,PgClassExpression644,List645,Lambda646,PgSelect648,First650,PgSelectRows651,PgSelectSingle652,PgClassExpression654,List655,Lambda656,PgSelect658,First660,PgSelectRows661,PgSelectSingle662,PgClassExpression664,List665,Lambda666,Access1841,Access1842 bucket5 + Bucket6("Bucket 6 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 11, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 669, 668, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: Lambda[672], Access[1844], Access[1845]
2: 676, 688, 698, 708, 718, 728, 740, 751, 762, 772, 782, 792, 802, 812, 822, 835, 848, 858, 868
3: 681, 691, 701, 711, 721, 731, 743, 754, 765, 775, 785, 795, 805, 815, 825, 838, 851, 861, 871
ᐳ: 680, 682, 684, 685, 686, 690, 692, 694, 695, 696, 700, 702, 704, 705, 706, 710, 712, 714, 715, 716, 720, 722, 724, 725, 726, 730, 732, 734, 735, 736, 742, 744, 746, 747, 748, 749, 753, 755, 757, 758, 759, 760, 764, 766, 768, 769, 770, 774, 776, 778, 779, 780, 784, 786, 788, 789, 790, 794, 796, 798, 799, 800, 804, 806, 808, 809, 810, 814, 816, 818, 819, 820, 824, 826, 828, 829, 830, 831, 832, 833, 837, 839, 841, 842, 843, 844, 845, 846, 850, 852, 854, 855, 856, 860, 862, 864, 865, 866, 870, 872, 874, 875, 876"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression33,PgClassExpression34,List35,Lambda36 bucket6 - Bucket7("Bucket 7 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 12, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 39, 38, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: Lambda[42], Access[1839], Access[1840]
2: 46, 58, 68, 78, 88, 98, 110, 121, 132, 142, 152, 162, 172, 182, 192, 205, 218, 228, 238
3: 51, 61, 71, 81, 91, 101, 113, 124, 135, 145, 155, 165, 175, 185, 195, 208, 221, 231, 241
ᐳ: 50, 52, 54, 55, 56, 60, 62, 64, 65, 66, 70, 72, 74, 75, 76, 80, 82, 84, 85, 86, 90, 92, 94, 95, 96, 100, 102, 104, 105, 106, 112, 114, 116, 117, 118, 119, 123, 125, 127, 128, 129, 130, 134, 136, 138, 139, 140, 144, 146, 148, 149, 150, 154, 156, 158, 159, 160, 164, 166, 168, 169, 170, 174, 176, 178, 179, 180, 184, 186, 188, 189, 190, 194, 196, 198, 199, 200, 201, 202, 203, 207, 209, 211, 212, 213, 214, 215, 216, 220, 222, 224, 225, 226, 230, 232, 234, 235, 236, 240, 242, 244, 245, 246"):::bucket + class Bucket6,Lambda672,PgSelect676,First680,PgSelectRows681,PgSelectSingle682,PgClassExpression684,List685,Lambda686,PgSelect688,First690,PgSelectRows691,PgSelectSingle692,PgClassExpression694,List695,Lambda696,PgSelect698,First700,PgSelectRows701,PgSelectSingle702,PgClassExpression704,List705,Lambda706,PgSelect708,First710,PgSelectRows711,PgSelectSingle712,PgClassExpression714,List715,Lambda716,PgSelect718,First720,PgSelectRows721,PgSelectSingle722,PgClassExpression724,List725,Lambda726,PgSelect728,First730,PgSelectRows731,PgSelectSingle732,PgClassExpression734,List735,Lambda736,PgSelect740,First742,PgSelectRows743,PgSelectSingle744,PgClassExpression746,PgClassExpression747,List748,Lambda749,PgSelect751,First753,PgSelectRows754,PgSelectSingle755,PgClassExpression757,List758,Lambda759,PgClassExpression760,PgSelect762,First764,PgSelectRows765,PgSelectSingle766,PgClassExpression768,List769,Lambda770,PgSelect772,First774,PgSelectRows775,PgSelectSingle776,PgClassExpression778,List779,Lambda780,PgSelect782,First784,PgSelectRows785,PgSelectSingle786,PgClassExpression788,List789,Lambda790,PgSelect792,First794,PgSelectRows795,PgSelectSingle796,PgClassExpression798,List799,Lambda800,PgSelect802,First804,PgSelectRows805,PgSelectSingle806,PgClassExpression808,List809,Lambda810,PgSelect812,First814,PgSelectRows815,PgSelectSingle816,PgClassExpression818,List819,Lambda820,PgSelect822,First824,PgSelectRows825,PgSelectSingle826,PgClassExpression828,List829,Lambda830,PgClassExpression831,PgClassExpression832,PgClassExpression833,PgSelect835,First837,PgSelectRows838,PgSelectSingle839,PgClassExpression841,List842,Lambda843,PgClassExpression844,PgClassExpression845,PgClassExpression846,PgSelect848,First850,PgSelectRows851,PgSelectSingle852,PgClassExpression854,List855,Lambda856,PgSelect858,First860,PgSelectRows861,PgSelectSingle862,PgClassExpression864,List865,Lambda866,PgSelect868,First870,PgSelectRows871,PgSelectSingle872,PgClassExpression874,List875,Lambda876,Access1844,Access1845 bucket6 + Bucket7("Bucket 7 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 11, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 879, 878, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: Lambda[882], Access[1847], Access[1848]
2: 886, 898, 908, 918, 928, 938, 950, 961, 972, 982, 992, 1002, 1012, 1022, 1032, 1045, 1058, 1068, 1078
3: 891, 901, 911, 921, 931, 941, 953, 964, 975, 985, 995, 1005, 1015, 1025, 1035, 1048, 1061, 1071, 1081
ᐳ: 890, 892, 894, 895, 896, 900, 902, 904, 905, 906, 910, 912, 914, 915, 916, 920, 922, 924, 925, 926, 930, 932, 934, 935, 936, 940, 942, 944, 945, 946, 952, 954, 956, 957, 958, 959, 963, 965, 967, 968, 969, 970, 974, 976, 978, 979, 980, 984, 986, 988, 989, 990, 994, 996, 998, 999, 1000, 1004, 1006, 1008, 1009, 1010, 1014, 1016, 1018, 1019, 1020, 1024, 1026, 1028, 1029, 1030, 1034, 1036, 1038, 1039, 1040, 1041, 1042, 1043, 1047, 1049, 1051, 1052, 1053, 1054, 1055, 1056, 1060, 1062, 1064, 1065, 1066, 1070, 1072, 1074, 1075, 1076, 1080, 1082, 1084, 1085, 1086"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,Lambda42,PgSelect46,First50,PgSelectRows51,PgSelectSingle52,PgClassExpression54,List55,Lambda56,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgClassExpression64,List65,Lambda66,PgSelect68,First70,PgSelectRows71,PgSelectSingle72,PgClassExpression74,List75,Lambda76,PgSelect78,First80,PgSelectRows81,PgSelectSingle82,PgClassExpression84,List85,Lambda86,PgSelect88,First90,PgSelectRows91,PgSelectSingle92,PgClassExpression94,List95,Lambda96,PgSelect98,First100,PgSelectRows101,PgSelectSingle102,PgClassExpression104,List105,Lambda106,PgSelect110,First112,PgSelectRows113,PgSelectSingle114,PgClassExpression116,PgClassExpression117,List118,Lambda119,PgSelect121,First123,PgSelectRows124,PgSelectSingle125,PgClassExpression127,List128,Lambda129,PgClassExpression130,PgSelect132,First134,PgSelectRows135,PgSelectSingle136,PgClassExpression138,List139,Lambda140,PgSelect142,First144,PgSelectRows145,PgSelectSingle146,PgClassExpression148,List149,Lambda150,PgSelect152,First154,PgSelectRows155,PgSelectSingle156,PgClassExpression158,List159,Lambda160,PgSelect162,First164,PgSelectRows165,PgSelectSingle166,PgClassExpression168,List169,Lambda170,PgSelect172,First174,PgSelectRows175,PgSelectSingle176,PgClassExpression178,List179,Lambda180,PgSelect182,First184,PgSelectRows185,PgSelectSingle186,PgClassExpression188,List189,Lambda190,PgSelect192,First194,PgSelectRows195,PgSelectSingle196,PgClassExpression198,List199,Lambda200,PgClassExpression201,PgClassExpression202,PgClassExpression203,PgSelect205,First207,PgSelectRows208,PgSelectSingle209,PgClassExpression211,List212,Lambda213,PgClassExpression214,PgClassExpression215,PgClassExpression216,PgSelect218,First220,PgSelectRows221,PgSelectSingle222,PgClassExpression224,List225,Lambda226,PgSelect228,First230,PgSelectRows231,PgSelectSingle232,PgClassExpression234,List235,Lambda236,PgSelect238,First240,PgSelectRows241,PgSelectSingle242,PgClassExpression244,List245,Lambda246,Access1839,Access1840 bucket7 - Bucket8("Bucket 8 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 12, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 249, 248, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: Lambda[252], Access[1842], Access[1843]
2: 256, 268, 278, 288, 298, 308, 320, 331, 342, 352, 362, 372, 382, 392, 402, 415, 428, 438, 448
3: 261, 271, 281, 291, 301, 311, 323, 334, 345, 355, 365, 375, 385, 395, 405, 418, 431, 441, 451
ᐳ: 260, 262, 264, 265, 266, 270, 272, 274, 275, 276, 280, 282, 284, 285, 286, 290, 292, 294, 295, 296, 300, 302, 304, 305, 306, 310, 312, 314, 315, 316, 322, 324, 326, 327, 328, 329, 333, 335, 337, 338, 339, 340, 344, 346, 348, 349, 350, 354, 356, 358, 359, 360, 364, 366, 368, 369, 370, 374, 376, 378, 379, 380, 384, 386, 388, 389, 390, 394, 396, 398, 399, 400, 404, 406, 408, 409, 410, 411, 412, 413, 417, 419, 421, 422, 423, 424, 425, 426, 430, 432, 434, 435, 436, 440, 442, 444, 445, 446, 450, 452, 454, 455, 456"):::bucket + class Bucket7,Lambda882,PgSelect886,First890,PgSelectRows891,PgSelectSingle892,PgClassExpression894,List895,Lambda896,PgSelect898,First900,PgSelectRows901,PgSelectSingle902,PgClassExpression904,List905,Lambda906,PgSelect908,First910,PgSelectRows911,PgSelectSingle912,PgClassExpression914,List915,Lambda916,PgSelect918,First920,PgSelectRows921,PgSelectSingle922,PgClassExpression924,List925,Lambda926,PgSelect928,First930,PgSelectRows931,PgSelectSingle932,PgClassExpression934,List935,Lambda936,PgSelect938,First940,PgSelectRows941,PgSelectSingle942,PgClassExpression944,List945,Lambda946,PgSelect950,First952,PgSelectRows953,PgSelectSingle954,PgClassExpression956,PgClassExpression957,List958,Lambda959,PgSelect961,First963,PgSelectRows964,PgSelectSingle965,PgClassExpression967,List968,Lambda969,PgClassExpression970,PgSelect972,First974,PgSelectRows975,PgSelectSingle976,PgClassExpression978,List979,Lambda980,PgSelect982,First984,PgSelectRows985,PgSelectSingle986,PgClassExpression988,List989,Lambda990,PgSelect992,First994,PgSelectRows995,PgSelectSingle996,PgClassExpression998,List999,Lambda1000,PgSelect1002,First1004,PgSelectRows1005,PgSelectSingle1006,PgClassExpression1008,List1009,Lambda1010,PgSelect1012,First1014,PgSelectRows1015,PgSelectSingle1016,PgClassExpression1018,List1019,Lambda1020,PgSelect1022,First1024,PgSelectRows1025,PgSelectSingle1026,PgClassExpression1028,List1029,Lambda1030,PgSelect1032,First1034,PgSelectRows1035,PgSelectSingle1036,PgClassExpression1038,List1039,Lambda1040,PgClassExpression1041,PgClassExpression1042,PgClassExpression1043,PgSelect1045,First1047,PgSelectRows1048,PgSelectSingle1049,PgClassExpression1051,List1052,Lambda1053,PgClassExpression1054,PgClassExpression1055,PgClassExpression1056,PgSelect1058,First1060,PgSelectRows1061,PgSelectSingle1062,PgClassExpression1064,List1065,Lambda1066,PgSelect1068,First1070,PgSelectRows1071,PgSelectSingle1072,PgClassExpression1074,List1075,Lambda1076,PgSelect1078,First1080,PgSelectRows1081,PgSelectSingle1082,PgClassExpression1084,List1085,Lambda1086,Access1847,Access1848 bucket7 + Bucket8("Bucket 8 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 11, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 1089, 1088, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: 1092, 1850, 1851
2: 1096, 1108, 1118, 1128, 1138, 1148, 1160, 1171, 1182, 1192, 1202, 1212, 1222, 1232, 1242, 1255, 1268, 1278, 1288
3: 1101, 1111, 1121, 1131, 1141, 1151, 1163, 1174, 1185, 1195, 1205, 1215, 1225, 1235, 1245, 1258, 1271, 1281, 1291
ᐳ: 1100, 1102, 1104, 1105, 1106, 1110, 1112, 1114, 1115, 1116, 1120, 1122, 1124, 1125, 1126, 1130, 1132, 1134, 1135, 1136, 1140, 1142, 1144, 1145, 1146, 1150, 1152, 1154, 1155, 1156, 1162, 1164, 1166, 1167, 1168, 1169, 1173, 1175, 1177, 1178, 1179, 1180, 1184, 1186, 1188, 1189, 1190, 1194, 1196, 1198, 1199, 1200, 1204, 1206, 1208, 1209, 1210, 1214, 1216, 1218, 1219, 1220, 1224, 1226, 1228, 1229, 1230, 1234, 1236, 1238, 1239, 1240, 1244, 1246, 1248, 1249, 1250, 1251, 1252, 1253, 1257, 1259, 1261, 1262, 1263, 1264, 1265, 1266, 1270, 1272, 1274, 1275, 1276, 1280, 1282, 1284, 1285, 1286, 1290, 1292, 1294, 1295, 1296"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,Lambda252,PgSelect256,First260,PgSelectRows261,PgSelectSingle262,PgClassExpression264,List265,Lambda266,PgSelect268,First270,PgSelectRows271,PgSelectSingle272,PgClassExpression274,List275,Lambda276,PgSelect278,First280,PgSelectRows281,PgSelectSingle282,PgClassExpression284,List285,Lambda286,PgSelect288,First290,PgSelectRows291,PgSelectSingle292,PgClassExpression294,List295,Lambda296,PgSelect298,First300,PgSelectRows301,PgSelectSingle302,PgClassExpression304,List305,Lambda306,PgSelect308,First310,PgSelectRows311,PgSelectSingle312,PgClassExpression314,List315,Lambda316,PgSelect320,First322,PgSelectRows323,PgSelectSingle324,PgClassExpression326,PgClassExpression327,List328,Lambda329,PgSelect331,First333,PgSelectRows334,PgSelectSingle335,PgClassExpression337,List338,Lambda339,PgClassExpression340,PgSelect342,First344,PgSelectRows345,PgSelectSingle346,PgClassExpression348,List349,Lambda350,PgSelect352,First354,PgSelectRows355,PgSelectSingle356,PgClassExpression358,List359,Lambda360,PgSelect362,First364,PgSelectRows365,PgSelectSingle366,PgClassExpression368,List369,Lambda370,PgSelect372,First374,PgSelectRows375,PgSelectSingle376,PgClassExpression378,List379,Lambda380,PgSelect382,First384,PgSelectRows385,PgSelectSingle386,PgClassExpression388,List389,Lambda390,PgSelect392,First394,PgSelectRows395,PgSelectSingle396,PgClassExpression398,List399,Lambda400,PgSelect402,First404,PgSelectRows405,PgSelectSingle406,PgClassExpression408,List409,Lambda410,PgClassExpression411,PgClassExpression412,PgClassExpression413,PgSelect415,First417,PgSelectRows418,PgSelectSingle419,PgClassExpression421,List422,Lambda423,PgClassExpression424,PgClassExpression425,PgClassExpression426,PgSelect428,First430,PgSelectRows431,PgSelectSingle432,PgClassExpression434,List435,Lambda436,PgSelect438,First440,PgSelectRows441,PgSelectSingle442,PgClassExpression444,List445,Lambda446,PgSelect448,First450,PgSelectRows451,PgSelectSingle452,PgClassExpression454,List455,Lambda456,Access1842,Access1843 bucket8 - Bucket9("Bucket 9 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 12, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 459, 458, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: Lambda[462], Access[1845], Access[1846]
2: 466, 478, 488, 498, 508, 518, 530, 541, 552, 562, 572, 582, 592, 602, 612, 625, 638, 648, 658
3: 471, 481, 491, 501, 511, 521, 533, 544, 555, 565, 575, 585, 595, 605, 615, 628, 641, 651, 661
ᐳ: 470, 472, 474, 475, 476, 480, 482, 484, 485, 486, 490, 492, 494, 495, 496, 500, 502, 504, 505, 506, 510, 512, 514, 515, 516, 520, 522, 524, 525, 526, 532, 534, 536, 537, 538, 539, 543, 545, 547, 548, 549, 550, 554, 556, 558, 559, 560, 564, 566, 568, 569, 570, 574, 576, 578, 579, 580, 584, 586, 588, 589, 590, 594, 596, 598, 599, 600, 604, 606, 608, 609, 610, 614, 616, 618, 619, 620, 621, 622, 623, 627, 629, 631, 632, 633, 634, 635, 636, 640, 642, 644, 645, 646, 650, 652, 654, 655, 656, 660, 662, 664, 665, 666"):::bucket + class Bucket8,Lambda1092,PgSelect1096,First1100,PgSelectRows1101,PgSelectSingle1102,PgClassExpression1104,List1105,Lambda1106,PgSelect1108,First1110,PgSelectRows1111,PgSelectSingle1112,PgClassExpression1114,List1115,Lambda1116,PgSelect1118,First1120,PgSelectRows1121,PgSelectSingle1122,PgClassExpression1124,List1125,Lambda1126,PgSelect1128,First1130,PgSelectRows1131,PgSelectSingle1132,PgClassExpression1134,List1135,Lambda1136,PgSelect1138,First1140,PgSelectRows1141,PgSelectSingle1142,PgClassExpression1144,List1145,Lambda1146,PgSelect1148,First1150,PgSelectRows1151,PgSelectSingle1152,PgClassExpression1154,List1155,Lambda1156,PgSelect1160,First1162,PgSelectRows1163,PgSelectSingle1164,PgClassExpression1166,PgClassExpression1167,List1168,Lambda1169,PgSelect1171,First1173,PgSelectRows1174,PgSelectSingle1175,PgClassExpression1177,List1178,Lambda1179,PgClassExpression1180,PgSelect1182,First1184,PgSelectRows1185,PgSelectSingle1186,PgClassExpression1188,List1189,Lambda1190,PgSelect1192,First1194,PgSelectRows1195,PgSelectSingle1196,PgClassExpression1198,List1199,Lambda1200,PgSelect1202,First1204,PgSelectRows1205,PgSelectSingle1206,PgClassExpression1208,List1209,Lambda1210,PgSelect1212,First1214,PgSelectRows1215,PgSelectSingle1216,PgClassExpression1218,List1219,Lambda1220,PgSelect1222,First1224,PgSelectRows1225,PgSelectSingle1226,PgClassExpression1228,List1229,Lambda1230,PgSelect1232,First1234,PgSelectRows1235,PgSelectSingle1236,PgClassExpression1238,List1239,Lambda1240,PgSelect1242,First1244,PgSelectRows1245,PgSelectSingle1246,PgClassExpression1248,List1249,Lambda1250,PgClassExpression1251,PgClassExpression1252,PgClassExpression1253,PgSelect1255,First1257,PgSelectRows1258,PgSelectSingle1259,PgClassExpression1261,List1262,Lambda1263,PgClassExpression1264,PgClassExpression1265,PgClassExpression1266,PgSelect1268,First1270,PgSelectRows1271,PgSelectSingle1272,PgClassExpression1274,List1275,Lambda1276,PgSelect1278,First1280,PgSelectRows1281,PgSelectSingle1282,PgClassExpression1284,List1285,Lambda1286,PgSelect1288,First1290,PgSelectRows1291,PgSelectSingle1292,PgClassExpression1294,List1295,Lambda1296,Access1850,Access1851 bucket8 + Bucket9("Bucket 9 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 11, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 1385, 1384, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: 1388, 1853, 1854
2: 1392, 1404, 1414, 1424, 1434, 1444, 1456, 1467, 1478, 1488, 1498, 1508, 1518, 1528, 1538, 1551, 1564, 1574, 1584
3: 1397, 1407, 1417, 1427, 1437, 1447, 1459, 1470, 1481, 1491, 1501, 1511, 1521, 1531, 1541, 1554, 1567, 1577, 1587
ᐳ: 1396, 1398, 1400, 1401, 1402, 1406, 1408, 1410, 1411, 1412, 1416, 1418, 1420, 1421, 1422, 1426, 1428, 1430, 1431, 1432, 1436, 1438, 1440, 1441, 1442, 1446, 1448, 1450, 1451, 1452, 1458, 1460, 1462, 1463, 1464, 1465, 1469, 1471, 1473, 1474, 1475, 1476, 1480, 1482, 1484, 1485, 1486, 1490, 1492, 1494, 1495, 1496, 1500, 1502, 1504, 1505, 1506, 1510, 1512, 1514, 1515, 1516, 1520, 1522, 1524, 1525, 1526, 1530, 1532, 1534, 1535, 1536, 1540, 1542, 1544, 1545, 1546, 1547, 1548, 1549, 1553, 1555, 1557, 1558, 1559, 1560, 1561, 1562, 1566, 1568, 1570, 1571, 1572, 1576, 1578, 1580, 1581, 1582, 1586, 1588, 1590, 1591, 1592"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,Lambda462,PgSelect466,First470,PgSelectRows471,PgSelectSingle472,PgClassExpression474,List475,Lambda476,PgSelect478,First480,PgSelectRows481,PgSelectSingle482,PgClassExpression484,List485,Lambda486,PgSelect488,First490,PgSelectRows491,PgSelectSingle492,PgClassExpression494,List495,Lambda496,PgSelect498,First500,PgSelectRows501,PgSelectSingle502,PgClassExpression504,List505,Lambda506,PgSelect508,First510,PgSelectRows511,PgSelectSingle512,PgClassExpression514,List515,Lambda516,PgSelect518,First520,PgSelectRows521,PgSelectSingle522,PgClassExpression524,List525,Lambda526,PgSelect530,First532,PgSelectRows533,PgSelectSingle534,PgClassExpression536,PgClassExpression537,List538,Lambda539,PgSelect541,First543,PgSelectRows544,PgSelectSingle545,PgClassExpression547,List548,Lambda549,PgClassExpression550,PgSelect552,First554,PgSelectRows555,PgSelectSingle556,PgClassExpression558,List559,Lambda560,PgSelect562,First564,PgSelectRows565,PgSelectSingle566,PgClassExpression568,List569,Lambda570,PgSelect572,First574,PgSelectRows575,PgSelectSingle576,PgClassExpression578,List579,Lambda580,PgSelect582,First584,PgSelectRows585,PgSelectSingle586,PgClassExpression588,List589,Lambda590,PgSelect592,First594,PgSelectRows595,PgSelectSingle596,PgClassExpression598,List599,Lambda600,PgSelect602,First604,PgSelectRows605,PgSelectSingle606,PgClassExpression608,List609,Lambda610,PgSelect612,First614,PgSelectRows615,PgSelectSingle616,PgClassExpression618,List619,Lambda620,PgClassExpression621,PgClassExpression622,PgClassExpression623,PgSelect625,First627,PgSelectRows628,PgSelectSingle629,PgClassExpression631,List632,Lambda633,PgClassExpression634,PgClassExpression635,PgClassExpression636,PgSelect638,First640,PgSelectRows641,PgSelectSingle642,PgClassExpression644,List645,Lambda646,PgSelect648,First650,PgSelectRows651,PgSelectSingle652,PgClassExpression654,List655,Lambda656,PgSelect658,First660,PgSelectRows661,PgSelectSingle662,PgClassExpression664,List665,Lambda666,Access1845,Access1846 bucket9 - Bucket10("Bucket 10 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 12, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 669, 668, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: Lambda[672], Access[1848], Access[1849]
2: 676, 688, 698, 708, 718, 728, 740, 751, 762, 772, 782, 792, 802, 812, 822, 835, 848, 858, 868
3: 681, 691, 701, 711, 721, 731, 743, 754, 765, 775, 785, 795, 805, 815, 825, 838, 851, 861, 871
ᐳ: 680, 682, 684, 685, 686, 690, 692, 694, 695, 696, 700, 702, 704, 705, 706, 710, 712, 714, 715, 716, 720, 722, 724, 725, 726, 730, 732, 734, 735, 736, 742, 744, 746, 747, 748, 749, 753, 755, 757, 758, 759, 760, 764, 766, 768, 769, 770, 774, 776, 778, 779, 780, 784, 786, 788, 789, 790, 794, 796, 798, 799, 800, 804, 806, 808, 809, 810, 814, 816, 818, 819, 820, 824, 826, 828, 829, 830, 831, 832, 833, 837, 839, 841, 842, 843, 844, 845, 846, 850, 852, 854, 855, 856, 860, 862, 864, 865, 866, 870, 872, 874, 875, 876"):::bucket + class Bucket9,Lambda1388,PgSelect1392,First1396,PgSelectRows1397,PgSelectSingle1398,PgClassExpression1400,List1401,Lambda1402,PgSelect1404,First1406,PgSelectRows1407,PgSelectSingle1408,PgClassExpression1410,List1411,Lambda1412,PgSelect1414,First1416,PgSelectRows1417,PgSelectSingle1418,PgClassExpression1420,List1421,Lambda1422,PgSelect1424,First1426,PgSelectRows1427,PgSelectSingle1428,PgClassExpression1430,List1431,Lambda1432,PgSelect1434,First1436,PgSelectRows1437,PgSelectSingle1438,PgClassExpression1440,List1441,Lambda1442,PgSelect1444,First1446,PgSelectRows1447,PgSelectSingle1448,PgClassExpression1450,List1451,Lambda1452,PgSelect1456,First1458,PgSelectRows1459,PgSelectSingle1460,PgClassExpression1462,PgClassExpression1463,List1464,Lambda1465,PgSelect1467,First1469,PgSelectRows1470,PgSelectSingle1471,PgClassExpression1473,List1474,Lambda1475,PgClassExpression1476,PgSelect1478,First1480,PgSelectRows1481,PgSelectSingle1482,PgClassExpression1484,List1485,Lambda1486,PgSelect1488,First1490,PgSelectRows1491,PgSelectSingle1492,PgClassExpression1494,List1495,Lambda1496,PgSelect1498,First1500,PgSelectRows1501,PgSelectSingle1502,PgClassExpression1504,List1505,Lambda1506,PgSelect1508,First1510,PgSelectRows1511,PgSelectSingle1512,PgClassExpression1514,List1515,Lambda1516,PgSelect1518,First1520,PgSelectRows1521,PgSelectSingle1522,PgClassExpression1524,List1525,Lambda1526,PgSelect1528,First1530,PgSelectRows1531,PgSelectSingle1532,PgClassExpression1534,List1535,Lambda1536,PgSelect1538,First1540,PgSelectRows1541,PgSelectSingle1542,PgClassExpression1544,List1545,Lambda1546,PgClassExpression1547,PgClassExpression1548,PgClassExpression1549,PgSelect1551,First1553,PgSelectRows1554,PgSelectSingle1555,PgClassExpression1557,List1558,Lambda1559,PgClassExpression1560,PgClassExpression1561,PgClassExpression1562,PgSelect1564,First1566,PgSelectRows1567,PgSelectSingle1568,PgClassExpression1570,List1571,Lambda1572,PgSelect1574,First1576,PgSelectRows1577,PgSelectSingle1578,PgClassExpression1580,List1581,Lambda1582,PgSelect1584,First1586,PgSelectRows1587,PgSelectSingle1588,PgClassExpression1590,List1591,Lambda1592,Access1853,Access1854 bucket9 + Bucket10("Bucket 10 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 11, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 1595, 1594, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: 1598, 1856, 1857
2: 1602, 1614, 1624, 1634, 1644, 1654, 1666, 1677, 1688, 1698, 1708, 1718, 1728, 1738, 1748, 1761, 1774, 1784, 1794
3: 1607, 1617, 1627, 1637, 1647, 1657, 1669, 1680, 1691, 1701, 1711, 1721, 1731, 1741, 1751, 1764, 1777, 1787, 1797
ᐳ: 1606, 1608, 1610, 1611, 1612, 1616, 1618, 1620, 1621, 1622, 1626, 1628, 1630, 1631, 1632, 1636, 1638, 1640, 1641, 1642, 1646, 1648, 1650, 1651, 1652, 1656, 1658, 1660, 1661, 1662, 1668, 1670, 1672, 1673, 1674, 1675, 1679, 1681, 1683, 1684, 1685, 1686, 1690, 1692, 1694, 1695, 1696, 1700, 1702, 1704, 1705, 1706, 1710, 1712, 1714, 1715, 1716, 1720, 1722, 1724, 1725, 1726, 1730, 1732, 1734, 1735, 1736, 1740, 1742, 1744, 1745, 1746, 1750, 1752, 1754, 1755, 1756, 1757, 1758, 1759, 1763, 1765, 1767, 1768, 1769, 1770, 1771, 1772, 1776, 1778, 1780, 1781, 1782, 1786, 1788, 1790, 1791, 1792, 1796, 1798, 1800, 1801, 1802"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,Lambda672,PgSelect676,First680,PgSelectRows681,PgSelectSingle682,PgClassExpression684,List685,Lambda686,PgSelect688,First690,PgSelectRows691,PgSelectSingle692,PgClassExpression694,List695,Lambda696,PgSelect698,First700,PgSelectRows701,PgSelectSingle702,PgClassExpression704,List705,Lambda706,PgSelect708,First710,PgSelectRows711,PgSelectSingle712,PgClassExpression714,List715,Lambda716,PgSelect718,First720,PgSelectRows721,PgSelectSingle722,PgClassExpression724,List725,Lambda726,PgSelect728,First730,PgSelectRows731,PgSelectSingle732,PgClassExpression734,List735,Lambda736,PgSelect740,First742,PgSelectRows743,PgSelectSingle744,PgClassExpression746,PgClassExpression747,List748,Lambda749,PgSelect751,First753,PgSelectRows754,PgSelectSingle755,PgClassExpression757,List758,Lambda759,PgClassExpression760,PgSelect762,First764,PgSelectRows765,PgSelectSingle766,PgClassExpression768,List769,Lambda770,PgSelect772,First774,PgSelectRows775,PgSelectSingle776,PgClassExpression778,List779,Lambda780,PgSelect782,First784,PgSelectRows785,PgSelectSingle786,PgClassExpression788,List789,Lambda790,PgSelect792,First794,PgSelectRows795,PgSelectSingle796,PgClassExpression798,List799,Lambda800,PgSelect802,First804,PgSelectRows805,PgSelectSingle806,PgClassExpression808,List809,Lambda810,PgSelect812,First814,PgSelectRows815,PgSelectSingle816,PgClassExpression818,List819,Lambda820,PgSelect822,First824,PgSelectRows825,PgSelectSingle826,PgClassExpression828,List829,Lambda830,PgClassExpression831,PgClassExpression832,PgClassExpression833,PgSelect835,First837,PgSelectRows838,PgSelectSingle839,PgClassExpression841,List842,Lambda843,PgClassExpression844,PgClassExpression845,PgClassExpression846,PgSelect848,First850,PgSelectRows851,PgSelectSingle852,PgClassExpression854,List855,Lambda856,PgSelect858,First860,PgSelectRows861,PgSelectSingle862,PgClassExpression864,List865,Lambda866,PgSelect868,First870,PgSelectRows871,PgSelectSingle872,PgClassExpression874,List875,Lambda876,Access1848,Access1849 bucket10 - Bucket11("Bucket 11 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 12, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 879, 878, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: Lambda[882], Access[1851], Access[1852]
2: 886, 898, 908, 918, 928, 938, 950, 961, 972, 982, 992, 1002, 1012, 1022, 1032, 1045, 1058, 1068, 1078
3: 891, 901, 911, 921, 931, 941, 953, 964, 975, 985, 995, 1005, 1015, 1025, 1035, 1048, 1061, 1071, 1081
ᐳ: 890, 892, 894, 895, 896, 900, 902, 904, 905, 906, 910, 912, 914, 915, 916, 920, 922, 924, 925, 926, 930, 932, 934, 935, 936, 940, 942, 944, 945, 946, 952, 954, 956, 957, 958, 959, 963, 965, 967, 968, 969, 970, 974, 976, 978, 979, 980, 984, 986, 988, 989, 990, 994, 996, 998, 999, 1000, 1004, 1006, 1008, 1009, 1010, 1014, 1016, 1018, 1019, 1020, 1024, 1026, 1028, 1029, 1030, 1034, 1036, 1038, 1039, 1040, 1041, 1042, 1043, 1047, 1049, 1051, 1052, 1053, 1054, 1055, 1056, 1060, 1062, 1064, 1065, 1066, 1070, 1072, 1074, 1075, 1076, 1080, 1082, 1084, 1085, 1086"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,Lambda882,PgSelect886,First890,PgSelectRows891,PgSelectSingle892,PgClassExpression894,List895,Lambda896,PgSelect898,First900,PgSelectRows901,PgSelectSingle902,PgClassExpression904,List905,Lambda906,PgSelect908,First910,PgSelectRows911,PgSelectSingle912,PgClassExpression914,List915,Lambda916,PgSelect918,First920,PgSelectRows921,PgSelectSingle922,PgClassExpression924,List925,Lambda926,PgSelect928,First930,PgSelectRows931,PgSelectSingle932,PgClassExpression934,List935,Lambda936,PgSelect938,First940,PgSelectRows941,PgSelectSingle942,PgClassExpression944,List945,Lambda946,PgSelect950,First952,PgSelectRows953,PgSelectSingle954,PgClassExpression956,PgClassExpression957,List958,Lambda959,PgSelect961,First963,PgSelectRows964,PgSelectSingle965,PgClassExpression967,List968,Lambda969,PgClassExpression970,PgSelect972,First974,PgSelectRows975,PgSelectSingle976,PgClassExpression978,List979,Lambda980,PgSelect982,First984,PgSelectRows985,PgSelectSingle986,PgClassExpression988,List989,Lambda990,PgSelect992,First994,PgSelectRows995,PgSelectSingle996,PgClassExpression998,List999,Lambda1000,PgSelect1002,First1004,PgSelectRows1005,PgSelectSingle1006,PgClassExpression1008,List1009,Lambda1010,PgSelect1012,First1014,PgSelectRows1015,PgSelectSingle1016,PgClassExpression1018,List1019,Lambda1020,PgSelect1022,First1024,PgSelectRows1025,PgSelectSingle1026,PgClassExpression1028,List1029,Lambda1030,PgSelect1032,First1034,PgSelectRows1035,PgSelectSingle1036,PgClassExpression1038,List1039,Lambda1040,PgClassExpression1041,PgClassExpression1042,PgClassExpression1043,PgSelect1045,First1047,PgSelectRows1048,PgSelectSingle1049,PgClassExpression1051,List1052,Lambda1053,PgClassExpression1054,PgClassExpression1055,PgClassExpression1056,PgSelect1058,First1060,PgSelectRows1061,PgSelectSingle1062,PgClassExpression1064,List1065,Lambda1066,PgSelect1068,First1070,PgSelectRows1071,PgSelectSingle1072,PgClassExpression1074,List1075,Lambda1076,PgSelect1078,First1080,PgSelectRows1081,PgSelectSingle1082,PgClassExpression1084,List1085,Lambda1086,Access1851,Access1852 bucket11 - Bucket12("Bucket 12 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 12, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 1089, 1088, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: 1092, 1854, 1855
2: 1096, 1108, 1118, 1128, 1138, 1148, 1160, 1171, 1182, 1192, 1202, 1212, 1222, 1232, 1242, 1255, 1268, 1278, 1288
3: 1101, 1111, 1121, 1131, 1141, 1151, 1163, 1174, 1185, 1195, 1205, 1215, 1225, 1235, 1245, 1258, 1271, 1281, 1291
ᐳ: 1100, 1102, 1104, 1105, 1106, 1110, 1112, 1114, 1115, 1116, 1120, 1122, 1124, 1125, 1126, 1130, 1132, 1134, 1135, 1136, 1140, 1142, 1144, 1145, 1146, 1150, 1152, 1154, 1155, 1156, 1162, 1164, 1166, 1167, 1168, 1169, 1173, 1175, 1177, 1178, 1179, 1180, 1184, 1186, 1188, 1189, 1190, 1194, 1196, 1198, 1199, 1200, 1204, 1206, 1208, 1209, 1210, 1214, 1216, 1218, 1219, 1220, 1224, 1226, 1228, 1229, 1230, 1234, 1236, 1238, 1239, 1240, 1244, 1246, 1248, 1249, 1250, 1251, 1252, 1253, 1257, 1259, 1261, 1262, 1263, 1264, 1265, 1266, 1270, 1272, 1274, 1275, 1276, 1280, 1282, 1284, 1285, 1286, 1290, 1292, 1294, 1295, 1296"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,Lambda1092,PgSelect1096,First1100,PgSelectRows1101,PgSelectSingle1102,PgClassExpression1104,List1105,Lambda1106,PgSelect1108,First1110,PgSelectRows1111,PgSelectSingle1112,PgClassExpression1114,List1115,Lambda1116,PgSelect1118,First1120,PgSelectRows1121,PgSelectSingle1122,PgClassExpression1124,List1125,Lambda1126,PgSelect1128,First1130,PgSelectRows1131,PgSelectSingle1132,PgClassExpression1134,List1135,Lambda1136,PgSelect1138,First1140,PgSelectRows1141,PgSelectSingle1142,PgClassExpression1144,List1145,Lambda1146,PgSelect1148,First1150,PgSelectRows1151,PgSelectSingle1152,PgClassExpression1154,List1155,Lambda1156,PgSelect1160,First1162,PgSelectRows1163,PgSelectSingle1164,PgClassExpression1166,PgClassExpression1167,List1168,Lambda1169,PgSelect1171,First1173,PgSelectRows1174,PgSelectSingle1175,PgClassExpression1177,List1178,Lambda1179,PgClassExpression1180,PgSelect1182,First1184,PgSelectRows1185,PgSelectSingle1186,PgClassExpression1188,List1189,Lambda1190,PgSelect1192,First1194,PgSelectRows1195,PgSelectSingle1196,PgClassExpression1198,List1199,Lambda1200,PgSelect1202,First1204,PgSelectRows1205,PgSelectSingle1206,PgClassExpression1208,List1209,Lambda1210,PgSelect1212,First1214,PgSelectRows1215,PgSelectSingle1216,PgClassExpression1218,List1219,Lambda1220,PgSelect1222,First1224,PgSelectRows1225,PgSelectSingle1226,PgClassExpression1228,List1229,Lambda1230,PgSelect1232,First1234,PgSelectRows1235,PgSelectSingle1236,PgClassExpression1238,List1239,Lambda1240,PgSelect1242,First1244,PgSelectRows1245,PgSelectSingle1246,PgClassExpression1248,List1249,Lambda1250,PgClassExpression1251,PgClassExpression1252,PgClassExpression1253,PgSelect1255,First1257,PgSelectRows1258,PgSelectSingle1259,PgClassExpression1261,List1262,Lambda1263,PgClassExpression1264,PgClassExpression1265,PgClassExpression1266,PgSelect1268,First1270,PgSelectRows1271,PgSelectSingle1272,PgClassExpression1274,List1275,Lambda1276,PgSelect1278,First1280,PgSelectRows1281,PgSelectSingle1282,PgClassExpression1284,List1285,Lambda1286,PgSelect1288,First1290,PgSelectRows1291,PgSelectSingle1292,PgClassExpression1294,List1295,Lambda1296,Access1854,Access1855 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 1305, 18

ROOT PgSelectSingleᐸpersonᐳ[1305]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,PgClassExpression1307,List1308,Lambda1309,PgClassExpression1310 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 1319, 18

ROOT PgSelectSingleᐸpersonᐳ[1319]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,PgClassExpression1321,List1322,Lambda1323,PgClassExpression1324 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 1333, 18

ROOT PgSelectSingleᐸpersonᐳ[1333]"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15,PgClassExpression1335,List1336,Lambda1337,PgClassExpression1338 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 1349, 32

ROOT PgSelectSingleᐸcompound_keyᐳ[1349]"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16,PgClassExpression1351,PgClassExpression1352,List1353,Lambda1354 bucket16 - Bucket17("Bucket 17 (nullableBoundary)
Deps: 1365, 32

ROOT PgSelectSingleᐸcompound_keyᐳ[1365]"):::bucket - classDef bucket17 stroke:#696969 - class Bucket17,PgClassExpression1367,PgClassExpression1368,List1369,Lambda1370 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 1381, 32

ROOT PgSelectSingleᐸcompound_keyᐳ[1381]"):::bucket - classDef bucket18 stroke:#00bfff - class Bucket18,PgClassExpression1383,PgClassExpression1384,List1385,Lambda1386 bucket18 - Bucket19("Bucket 19 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 12, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 1389, 1388, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: 1392, 1857, 1858
2: 1396, 1408, 1418, 1428, 1438, 1448, 1460, 1471, 1482, 1492, 1502, 1512, 1522, 1532, 1542, 1555, 1568, 1578, 1588
3: 1401, 1411, 1421, 1431, 1441, 1451, 1463, 1474, 1485, 1495, 1505, 1515, 1525, 1535, 1545, 1558, 1571, 1581, 1591
ᐳ: 1400, 1402, 1404, 1405, 1406, 1410, 1412, 1414, 1415, 1416, 1420, 1422, 1424, 1425, 1426, 1430, 1432, 1434, 1435, 1436, 1440, 1442, 1444, 1445, 1446, 1450, 1452, 1454, 1455, 1456, 1462, 1464, 1466, 1467, 1468, 1469, 1473, 1475, 1477, 1478, 1479, 1480, 1484, 1486, 1488, 1489, 1490, 1494, 1496, 1498, 1499, 1500, 1504, 1506, 1508, 1509, 1510, 1514, 1516, 1518, 1519, 1520, 1524, 1526, 1528, 1529, 1530, 1534, 1536, 1538, 1539, 1540, 1544, 1546, 1548, 1549, 1550, 1551, 1552, 1553, 1557, 1559, 1561, 1562, 1563, 1564, 1565, 1566, 1570, 1572, 1574, 1575, 1576, 1580, 1582, 1584, 1585, 1586, 1590, 1592, 1594, 1595, 1596"):::bucket - classDef bucket19 stroke:#7f007f - class Bucket19,Lambda1392,PgSelect1396,First1400,PgSelectRows1401,PgSelectSingle1402,PgClassExpression1404,List1405,Lambda1406,PgSelect1408,First1410,PgSelectRows1411,PgSelectSingle1412,PgClassExpression1414,List1415,Lambda1416,PgSelect1418,First1420,PgSelectRows1421,PgSelectSingle1422,PgClassExpression1424,List1425,Lambda1426,PgSelect1428,First1430,PgSelectRows1431,PgSelectSingle1432,PgClassExpression1434,List1435,Lambda1436,PgSelect1438,First1440,PgSelectRows1441,PgSelectSingle1442,PgClassExpression1444,List1445,Lambda1446,PgSelect1448,First1450,PgSelectRows1451,PgSelectSingle1452,PgClassExpression1454,List1455,Lambda1456,PgSelect1460,First1462,PgSelectRows1463,PgSelectSingle1464,PgClassExpression1466,PgClassExpression1467,List1468,Lambda1469,PgSelect1471,First1473,PgSelectRows1474,PgSelectSingle1475,PgClassExpression1477,List1478,Lambda1479,PgClassExpression1480,PgSelect1482,First1484,PgSelectRows1485,PgSelectSingle1486,PgClassExpression1488,List1489,Lambda1490,PgSelect1492,First1494,PgSelectRows1495,PgSelectSingle1496,PgClassExpression1498,List1499,Lambda1500,PgSelect1502,First1504,PgSelectRows1505,PgSelectSingle1506,PgClassExpression1508,List1509,Lambda1510,PgSelect1512,First1514,PgSelectRows1515,PgSelectSingle1516,PgClassExpression1518,List1519,Lambda1520,PgSelect1522,First1524,PgSelectRows1525,PgSelectSingle1526,PgClassExpression1528,List1529,Lambda1530,PgSelect1532,First1534,PgSelectRows1535,PgSelectSingle1536,PgClassExpression1538,List1539,Lambda1540,PgSelect1542,First1544,PgSelectRows1545,PgSelectSingle1546,PgClassExpression1548,List1549,Lambda1550,PgClassExpression1551,PgClassExpression1552,PgClassExpression1553,PgSelect1555,First1557,PgSelectRows1558,PgSelectSingle1559,PgClassExpression1561,List1562,Lambda1563,PgClassExpression1564,PgClassExpression1565,PgClassExpression1566,PgSelect1568,First1570,PgSelectRows1571,PgSelectSingle1572,PgClassExpression1574,List1575,Lambda1576,PgSelect1578,First1580,PgSelectRows1581,PgSelectSingle1582,PgClassExpression1584,List1585,Lambda1586,PgSelect1588,First1590,PgSelectRows1591,PgSelectSingle1592,PgClassExpression1594,List1595,Lambda1596,Access1857,Access1858 bucket19 - Bucket20("Bucket 20 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 41, 12, 53, 63, 73, 83, 93, 103, 32, 18, 137, 147, 157, 167, 177, 187, 197, 210, 223, 233, 243, 1599, 1598, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: 1602, 1860, 1861
2: 1606, 1618, 1628, 1638, 1648, 1658, 1670, 1681, 1692, 1702, 1712, 1722, 1732, 1742, 1752, 1765, 1778, 1788, 1798
3: 1611, 1621, 1631, 1641, 1651, 1661, 1673, 1684, 1695, 1705, 1715, 1725, 1735, 1745, 1755, 1768, 1781, 1791, 1801
ᐳ: 1610, 1612, 1614, 1615, 1616, 1620, 1622, 1624, 1625, 1626, 1630, 1632, 1634, 1635, 1636, 1640, 1642, 1644, 1645, 1646, 1650, 1652, 1654, 1655, 1656, 1660, 1662, 1664, 1665, 1666, 1672, 1674, 1676, 1677, 1678, 1679, 1683, 1685, 1687, 1688, 1689, 1690, 1694, 1696, 1698, 1699, 1700, 1704, 1706, 1708, 1709, 1710, 1714, 1716, 1718, 1719, 1720, 1724, 1726, 1728, 1729, 1730, 1734, 1736, 1738, 1739, 1740, 1744, 1746, 1748, 1749, 1750, 1754, 1756, 1758, 1759, 1760, 1761, 1762, 1763, 1767, 1769, 1771, 1772, 1773, 1774, 1775, 1776, 1780, 1782, 1784, 1785, 1786, 1790, 1792, 1794, 1795, 1796, 1800, 1802, 1804, 1805, 1806"):::bucket - classDef bucket20 stroke:#ffa500 - class Bucket20,Lambda1602,PgSelect1606,First1610,PgSelectRows1611,PgSelectSingle1612,PgClassExpression1614,List1615,Lambda1616,PgSelect1618,First1620,PgSelectRows1621,PgSelectSingle1622,PgClassExpression1624,List1625,Lambda1626,PgSelect1628,First1630,PgSelectRows1631,PgSelectSingle1632,PgClassExpression1634,List1635,Lambda1636,PgSelect1638,First1640,PgSelectRows1641,PgSelectSingle1642,PgClassExpression1644,List1645,Lambda1646,PgSelect1648,First1650,PgSelectRows1651,PgSelectSingle1652,PgClassExpression1654,List1655,Lambda1656,PgSelect1658,First1660,PgSelectRows1661,PgSelectSingle1662,PgClassExpression1664,List1665,Lambda1666,PgSelect1670,First1672,PgSelectRows1673,PgSelectSingle1674,PgClassExpression1676,PgClassExpression1677,List1678,Lambda1679,PgSelect1681,First1683,PgSelectRows1684,PgSelectSingle1685,PgClassExpression1687,List1688,Lambda1689,PgClassExpression1690,PgSelect1692,First1694,PgSelectRows1695,PgSelectSingle1696,PgClassExpression1698,List1699,Lambda1700,PgSelect1702,First1704,PgSelectRows1705,PgSelectSingle1706,PgClassExpression1708,List1709,Lambda1710,PgSelect1712,First1714,PgSelectRows1715,PgSelectSingle1716,PgClassExpression1718,List1719,Lambda1720,PgSelect1722,First1724,PgSelectRows1725,PgSelectSingle1726,PgClassExpression1728,List1729,Lambda1730,PgSelect1732,First1734,PgSelectRows1735,PgSelectSingle1736,PgClassExpression1738,List1739,Lambda1740,PgSelect1742,First1744,PgSelectRows1745,PgSelectSingle1746,PgClassExpression1748,List1749,Lambda1750,PgSelect1752,First1754,PgSelectRows1755,PgSelectSingle1756,PgClassExpression1758,List1759,Lambda1760,PgClassExpression1761,PgClassExpression1762,PgClassExpression1763,PgSelect1765,First1767,PgSelectRows1768,PgSelectSingle1769,PgClassExpression1771,List1772,Lambda1773,PgClassExpression1774,PgClassExpression1775,PgClassExpression1776,PgSelect1778,First1780,PgSelectRows1781,PgSelectSingle1782,PgClassExpression1784,List1785,Lambda1786,PgSelect1788,First1790,PgSelectRows1791,PgSelectSingle1792,PgClassExpression1794,List1795,Lambda1796,PgSelect1798,First1800,PgSelectRows1801,PgSelectSingle1802,PgClassExpression1804,List1805,Lambda1806,Access1860,Access1861 bucket20 - Bucket21("Bucket 21 (nullableBoundary)
Deps: 1815, 197

ROOT PgSelectSingleᐸsimilar_table_1ᐳ[1815]"):::bucket - classDef bucket21 stroke:#0000ff - class Bucket21,PgClassExpression1817,List1818,Lambda1819,PgClassExpression1820,PgClassExpression1821,PgClassExpression1822 bucket21 - Bucket22("Bucket 22 (nullableBoundary)
Deps: 1831, 210

ROOT PgSelectSingleᐸsimilar_table_2ᐳ[1831]"):::bucket - classDef bucket22 stroke:#7fff00 - class Bucket22,PgClassExpression1833,List1834,Lambda1835,PgClassExpression1836,PgClassExpression1837,PgClassExpression1838 bucket22 - Bucket0 --> Bucket1 & Bucket4 & Bucket7 & Bucket8 & Bucket9 & Bucket10 & Bucket11 & Bucket12 & Bucket13 & Bucket14 & Bucket15 & Bucket16 & Bucket17 & Bucket18 & Bucket19 & Bucket20 & Bucket21 & Bucket22 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 + class Bucket10,Lambda1598,PgSelect1602,First1606,PgSelectRows1607,PgSelectSingle1608,PgClassExpression1610,List1611,Lambda1612,PgSelect1614,First1616,PgSelectRows1617,PgSelectSingle1618,PgClassExpression1620,List1621,Lambda1622,PgSelect1624,First1626,PgSelectRows1627,PgSelectSingle1628,PgClassExpression1630,List1631,Lambda1632,PgSelect1634,First1636,PgSelectRows1637,PgSelectSingle1638,PgClassExpression1640,List1641,Lambda1642,PgSelect1644,First1646,PgSelectRows1647,PgSelectSingle1648,PgClassExpression1650,List1651,Lambda1652,PgSelect1654,First1656,PgSelectRows1657,PgSelectSingle1658,PgClassExpression1660,List1661,Lambda1662,PgSelect1666,First1668,PgSelectRows1669,PgSelectSingle1670,PgClassExpression1672,PgClassExpression1673,List1674,Lambda1675,PgSelect1677,First1679,PgSelectRows1680,PgSelectSingle1681,PgClassExpression1683,List1684,Lambda1685,PgClassExpression1686,PgSelect1688,First1690,PgSelectRows1691,PgSelectSingle1692,PgClassExpression1694,List1695,Lambda1696,PgSelect1698,First1700,PgSelectRows1701,PgSelectSingle1702,PgClassExpression1704,List1705,Lambda1706,PgSelect1708,First1710,PgSelectRows1711,PgSelectSingle1712,PgClassExpression1714,List1715,Lambda1716,PgSelect1718,First1720,PgSelectRows1721,PgSelectSingle1722,PgClassExpression1724,List1725,Lambda1726,PgSelect1728,First1730,PgSelectRows1731,PgSelectSingle1732,PgClassExpression1734,List1735,Lambda1736,PgSelect1738,First1740,PgSelectRows1741,PgSelectSingle1742,PgClassExpression1744,List1745,Lambda1746,PgSelect1748,First1750,PgSelectRows1751,PgSelectSingle1752,PgClassExpression1754,List1755,Lambda1756,PgClassExpression1757,PgClassExpression1758,PgClassExpression1759,PgSelect1761,First1763,PgSelectRows1764,PgSelectSingle1765,PgClassExpression1767,List1768,Lambda1769,PgClassExpression1770,PgClassExpression1771,PgClassExpression1772,PgSelect1774,First1776,PgSelectRows1777,PgSelectSingle1778,PgClassExpression1780,List1781,Lambda1782,PgSelect1784,First1786,PgSelectRows1787,PgSelectSingle1788,PgClassExpression1790,List1791,Lambda1792,PgSelect1794,First1796,PgSelectRows1797,PgSelectSingle1798,PgClassExpression1800,List1801,Lambda1802,Access1856,Access1857 bucket10 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/node.sql b/postgraphile/postgraphile/__tests__/queries/v4/node.sql index 8681b16762..23d8e29560 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/node.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/node.sql @@ -1,3 +1,15 @@ +select + __person__."id"::text as "0", + __person__."person_full_name" as "1" +from "c"."person" as __person__ +order by __person__."id" asc; + +select + __compound_key__."person_id_1"::text as "0", + __compound_key__."person_id_2"::text as "1" +from "c"."compound_key" as __compound_key__ +order by __compound_key__."person_id_1" asc, __compound_key__."person_id_2" asc; + select __person__."id"::text as "0", __person__."person_full_name" as "1" @@ -73,16 +85,4 @@ select from "a"."similar_table_2" as __similar_table_2__ where ( __similar_table_2__."id" = $1::"int4" -); - -select - __person__."id"::text as "0", - __person__."person_full_name" as "1" -from "c"."person" as __person__ -order by __person__."id" asc; - -select - __compound_key__."person_id_1"::text as "0", - __compound_key__."person_id_2"::text as "1" -from "c"."compound_key" as __compound_key__ -order by __compound_key__."person_id_1" asc, __compound_key__."person_id_2" asc; \ No newline at end of file +); \ No newline at end of file diff --git a/postgraphile/postgraphile/__tests__/queries/v4/nodeId-earlyExit.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/nodeId-earlyExit.mermaid index 026bb74b01..110310ab7b 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/nodeId-earlyExit.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/nodeId-earlyExit.mermaid @@ -9,118 +9,106 @@ graph TD %% plan dependencies - Object18{{"Object[18∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access16{{"Access[16∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access17{{"Access[17∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access16 & Access17 --> Object18 - PgSelect33[["PgSelect[33∈0] ➊
ᐸpersonᐳ"]]:::plan - Access31{{"Access[31∈0] ➊
ᐸ30.1ᐳ"}}:::plan - Object18 -->|rejectNull| PgSelect33 - Access31 --> PgSelect33 - PgSelect59[["PgSelect[59∈0] ➊
ᐸpersonᐳ"]]:::plan - Access57{{"Access[57∈0] ➊
ᐸ56.1ᐳ"}}:::plan - Object18 -->|rejectNull| PgSelect59 - Access57 --> PgSelect59 + PgSelect21[["PgSelect[21∈0] ➊
ᐸpersonᐳ"]]:::plan + Object17{{"Object[17∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + ApplyInput20{{"ApplyInput[20∈0] ➊"}}:::plan + Connection18{{"Connection[18∈0] ➊
ᐸ14ᐳ"}}:::plan + ApplyInput20 -->|rejectNull| PgSelect21 + Object17 & Connection18 --> PgSelect21 + PgSelect48[["PgSelect[48∈0] ➊
ᐸpostᐳ"]]:::plan + ApplyInput47{{"ApplyInput[47∈0] ➊"}}:::plan + Connection45{{"Connection[45∈0] ➊
ᐸ43ᐳ"}}:::plan + ApplyInput47 -->|rejectNull| PgSelect48 + Object17 & Connection45 --> PgSelect48 + __InputObject12{{"__InputObject[12∈0] ➊"}}:::plan + Constant67{{"Constant[67∈0] ➊
ᐸ'Twenty Seventwo'ᐳ"}}:::plan + Constant67 --> __InputObject12 + Access15{{"Access[15∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access16{{"Access[16∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access15 & Access16 --> Object17 + PgSelect34[["PgSelect[34∈0] ➊
ᐸpersonᐳ"]]:::plan + Access32{{"Access[32∈0] ➊
ᐸ31.1ᐳ"}}:::plan + Object17 -->|rejectNull| PgSelect34 + Access32 --> PgSelect34 + __InputObject41{{"__InputObject[41∈0] ➊"}}:::plan + Constant69{{"Constant[69∈0] ➊
ᐸ'Is that a cooking show?'ᐳ"}}:::plan + Constant69 --> __InputObject41 + PgSelect61[["PgSelect[61∈0] ➊
ᐸpersonᐳ"]]:::plan + Access59{{"Access[59∈0] ➊
ᐸ58.1ᐳ"}}:::plan + Object17 -->|rejectNull| PgSelect61 + Access59 --> PgSelect61 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access15 __Value2 --> Access16 - __Value2 --> Access17 - Lambda30{{"Lambda[30∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Constant66{{"Constant[66∈0] ➊
ᐸ'WyJwZW9wbGUiLDZd'ᐳ"}}:::plan - Constant66 --> Lambda30 - Lambda30 --> Access31 - First35{{"First[35∈0] ➊"}}:::plan - PgSelectRows36[["PgSelectRows[36∈0] ➊"]]:::plan - PgSelectRows36 --> First35 - PgSelect33 --> PgSelectRows36 - PgSelectSingle37{{"PgSelectSingle[37∈0] ➊
ᐸpersonᐳ"}}:::plan - First35 --> PgSelectSingle37 - Lambda56{{"Lambda[56∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Constant68{{"Constant[68∈0] ➊
ᐸ'WyJwb3N0cyIsM10='ᐳ"}}:::plan - Constant68 --> Lambda56 - Lambda56 --> Access57 - First61{{"First[61∈0] ➊"}}:::plan - PgSelectRows62[["PgSelectRows[62∈0] ➊"]]:::plan - PgSelectRows62 --> First61 - PgSelect59 --> PgSelectRows62 - PgSelectSingle63{{"PgSelectSingle[63∈0] ➊
ᐸpersonᐳ"}}:::plan - First61 --> PgSelectSingle63 + __InputObject12 --> ApplyInput20 + PgSelectRows22[["PgSelectRows[22∈0] ➊"]]:::plan + PgSelect21 --> PgSelectRows22 + Lambda31{{"Lambda[31∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan + Constant68{{"Constant[68∈0] ➊
ᐸ'WyJwZW9wbGUiLDZd'ᐳ"}}:::plan + Constant68 --> Lambda31 + Lambda31 --> Access32 + First36{{"First[36∈0] ➊"}}:::plan + PgSelectRows37[["PgSelectRows[37∈0] ➊"]]:::plan + PgSelectRows37 --> First36 + PgSelect34 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈0] ➊
ᐸpersonᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + __InputObject41 --> ApplyInput47 + PgSelectRows49[["PgSelectRows[49∈0] ➊"]]:::plan + PgSelect48 --> PgSelectRows49 + Lambda58{{"Lambda[58∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan + Constant70{{"Constant[70∈0] ➊
ᐸ'WyJwb3N0cyIsM10='ᐳ"}}:::plan + Constant70 --> Lambda58 + Lambda58 --> Access59 + First63{{"First[63∈0] ➊"}}:::plan + PgSelectRows64[["PgSelectRows[64∈0] ➊"]]:::plan + PgSelectRows64 --> First63 + PgSelect61 --> PgSelectRows64 + PgSelectSingle65{{"PgSelectSingle[65∈0] ➊
ᐸpersonᐳ"}}:::plan + First63 --> PgSelectSingle65 + PgClassExpression66{{"PgClassExpression[66∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle65 --> PgClassExpression66 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection19{{"Connection[19∈0] ➊
ᐸ15ᐳ"}}:::plan - Constant24{{"Constant[24∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Connection45{{"Connection[45∈0] ➊
ᐸ43ᐳ"}}:::plan - Constant50{{"Constant[50∈0] ➊
ᐸ'posts'ᐳ"}}:::plan - Constant65{{"Constant[65∈0] ➊
ᐸ'Twenty Seventwo'ᐳ"}}:::plan - Constant67{{"Constant[67∈0] ➊
ᐸ'Is that a cooking show?'ᐳ"}}:::plan - PgSelect20[["PgSelect[20∈1] ➊
ᐸpersonᐳ"]]:::plan - Object18 & Constant65 & Connection19 --> PgSelect20 - PgSelectRows21[["PgSelectRows[21∈1] ➊"]]:::plan - PgSelect20 --> PgSelectRows21 - __Item22[/"__Item[22∈2]
ᐸ21ᐳ"\]:::itemplan - PgSelectRows21 ==> __Item22 - PgSelectSingle23{{"PgSelectSingle[23∈2]
ᐸpersonᐳ"}}:::plan - __Item22 --> PgSelectSingle23 - List26{{"List[26∈3]
ᐸ24,25ᐳ"}}:::plan - PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__person__.”id”ᐳ"}}:::plan - Constant24 & PgClassExpression25 --> List26 - PgSelectSingle23 --> PgClassExpression25 - Lambda27{{"Lambda[27∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan - List26 --> Lambda27 - PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression28 - PgClassExpression38{{"PgClassExpression[38∈4] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle37 --> PgClassExpression38 - PgSelect46[["PgSelect[46∈5] ➊
ᐸpostᐳ"]]:::plan - Object18 & Constant67 & Connection45 --> PgSelect46 - PgSelectRows47[["PgSelectRows[47∈5] ➊"]]:::plan - PgSelect46 --> PgSelectRows47 - __Item48[/"__Item[48∈6]
ᐸ47ᐳ"\]:::itemplan - PgSelectRows47 ==> __Item48 - PgSelectSingle49{{"PgSelectSingle[49∈6]
ᐸpostᐳ"}}:::plan - __Item48 --> PgSelectSingle49 - List52{{"List[52∈7]
ᐸ50,51ᐳ"}}:::plan - PgClassExpression51{{"PgClassExpression[51∈7]
ᐸ__post__.”id”ᐳ"}}:::plan - Constant50 & PgClassExpression51 --> List52 - PgSelectSingle49 --> PgClassExpression51 - Lambda53{{"Lambda[53∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan - List52 --> Lambda53 - PgClassExpression54{{"PgClassExpression[54∈7]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression54 - PgClassExpression64{{"PgClassExpression[64∈8] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression64 + Constant25{{"Constant[25∈0] ➊
ᐸ'people'ᐳ"}}:::plan + Constant52{{"Constant[52∈0] ➊
ᐸ'posts'ᐳ"}}:::plan + List27{{"List[27∈1]
ᐸ25,26ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + Constant25 & PgClassExpression26 --> List27 + __Item23[/"__Item[23∈1]
ᐸ22ᐳ"\]:::itemplan + PgSelectRows22 ==> __Item23 + PgSelectSingle24{{"PgSelectSingle[24∈1]
ᐸpersonᐳ"}}:::plan + __Item23 --> PgSelectSingle24 + PgSelectSingle24 --> PgClassExpression26 + Lambda28{{"Lambda[28∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List27 --> Lambda28 + PgClassExpression29{{"PgClassExpression[29∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle24 --> PgClassExpression29 + List54{{"List[54∈2]
ᐸ52,53ᐳ"}}:::plan + PgClassExpression53{{"PgClassExpression[53∈2]
ᐸ__post__.”id”ᐳ"}}:::plan + Constant52 & PgClassExpression53 --> List54 + __Item50[/"__Item[50∈2]
ᐸ49ᐳ"\]:::itemplan + PgSelectRows49 ==> __Item50 + PgSelectSingle51{{"PgSelectSingle[51∈2]
ᐸpostᐳ"}}:::plan + __Item50 --> PgSelectSingle51 + PgSelectSingle51 --> PgClassExpression53 + Lambda55{{"Lambda[55∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan + List54 --> Lambda55 + PgClassExpression56{{"PgClassExpression[56∈2]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle51 --> PgClassExpression56 %% define steps subgraph "Buckets for queries/v4/nodeId-earlyExit" - Bucket0("Bucket 0 (root)

1:
ᐳ: 16, 17, 19, 24, 45, 50, 65, 66, 67, 68, 18, 30, 31, 56, 57
2: PgSelect[33], PgSelect[59]
3: PgSelectRows[36], PgSelectRows[62]
ᐳ: 35, 37, 61, 63"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 10, 15, 16, 25, 52, 67, 68, 69, 70, 12, 17, 18, 20, 31, 32, 41, 45, 47, 58, 59
2: 21, 34, 48, 61
3: 22, 37, 49, 64
ᐳ: 36, 38, 39, 63, 65, 66"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access16,Access17,Object18,Connection19,Constant24,Lambda30,Access31,PgSelect33,First35,PgSelectRows36,PgSelectSingle37,Connection45,Constant50,Lambda56,Access57,PgSelect59,First61,PgSelectRows62,PgSelectSingle63,Constant65,Constant66,Constant67,Constant68 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 18, 65, 19, 24

ROOT Connectionᐸ15ᐳ[19]
1: PgSelect[20]
2: PgSelectRows[21]"):::bucket + class Bucket0,__Value2,__Value4,__InputObject12,Access15,Access16,Object17,Connection18,ApplyInput20,PgSelect21,PgSelectRows22,Constant25,Lambda31,Access32,PgSelect34,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,__InputObject41,Connection45,ApplyInput47,PgSelect48,PgSelectRows49,Constant52,Lambda58,Access59,PgSelect61,First63,PgSelectRows64,PgSelectSingle65,PgClassExpression66,Constant67,Constant68,Constant69,Constant70 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 25

ROOT __Item{1}ᐸ22ᐳ[23]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect20,PgSelectRows21 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 24

ROOT __Item{2}ᐸ21ᐳ[22]"):::bucket + class Bucket1,__Item23,PgSelectSingle24,PgClassExpression26,List27,Lambda28,PgClassExpression29 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 52

ROOT __Item{2}ᐸ49ᐳ[50]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item22,PgSelectSingle23 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 23, 24

ROOT PgSelectSingle{2}ᐸpersonᐳ[23]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression25,List26,Lambda27,PgClassExpression28 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 37

ROOT PgSelectSingleᐸpersonᐳ[37]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression38 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 18, 67, 45, 50

ROOT Connectionᐸ43ᐳ[45]
1: PgSelect[46]
2: PgSelectRows[47]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgSelect46,PgSelectRows47 bucket5 - Bucket6("Bucket 6 (listItem)
Deps: 50

ROOT __Item{6}ᐸ47ᐳ[48]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,__Item48,PgSelectSingle49 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 49, 50

ROOT PgSelectSingle{6}ᐸpostᐳ[49]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression51,List52,Lambda53,PgClassExpression54 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 63

ROOT PgSelectSingleᐸpersonᐳ[63]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression64 bucket8 - Bucket0 --> Bucket1 & Bucket4 & Bucket5 & Bucket8 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 + class Bucket2,__Item50,PgSelectSingle51,PgClassExpression53,List54,Lambda55,PgClassExpression56 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/nodeId-earlyExit.sql b/postgraphile/postgraphile/__tests__/queries/v4/nodeId-earlyExit.sql index a81839081c..8dc5f83d14 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/nodeId-earlyExit.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/nodeId-earlyExit.sql @@ -1,10 +1,3 @@ -select - __person__."person_full_name" as "0" -from "c"."person" as __person__ -where ( - __person__."id" = $1::"int4" -); - select __person__."id"::text as "0", __person__."person_full_name" as "1" @@ -14,6 +7,13 @@ where ( ) order by __person__."id" asc; +select + __person__."person_full_name" as "0" +from "c"."person" as __person__ +where ( + __person__."id" = $1::"int4" +); + select __post__."id"::text as "0", __post__."headline" as "1" diff --git a/postgraphile/postgraphile/__tests__/queries/v4/nonexistant-record-from-function.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/nonexistant-record-from-function.mermaid index 5b88d0170f..80a06a55a7 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/nonexistant-record-from-function.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/nonexistant-record-from-function.mermaid @@ -11,34 +11,32 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸtable_queryᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant16{{"Constant[16∈0] ➊
ᐸ13373475ᐳ"}}:::plan - Object10 & Constant16 --> PgSelect7 + PgFromExpression11{{"PgFromExpression[11∈0] ➊"}}:::plan + Object10 & PgFromExpression11 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 - First11{{"First[11∈0] ➊"}}:::plan - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelectRows12 --> First11 - PgSelect7 --> PgSelectRows12 - PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸtable_queryᐳ"}}:::plan - First11 --> PgSelectSingle13 + Constant17{{"Constant[17∈0] ➊
ᐸ13373475ᐳ"}}:::plan + Constant17 --> PgFromExpression11 + First12{{"First[12∈0] ➊"}}:::plan + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelectRows13 --> First12 + PgSelect7 --> PgSelectRows13 + PgSelectSingle14{{"PgSelectSingle[14∈0] ➊
ᐸtable_queryᐳ"}}:::plan + First12 --> PgSelectSingle14 + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__table_query__.”id”ᐳ"}}:::plan + PgSelectSingle14 --> PgClassExpression15 + PgClassExpression16{{"PgClassExpression[16∈0] ➊
ᐸ__table_qu...”headline”ᐳ"}}:::plan + PgSelectSingle14 --> PgClassExpression16 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__table_query__.”id”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression14 - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__table_qu...”headline”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression15 %% define steps subgraph "Buckets for queries/v4/nonexistant-record-from-function" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 16, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 17, 10, 11
2: PgSelect[7]
3: PgSelectRows[13]
ᐳ: 12, 14, 15, 16"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant16 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13

ROOT PgSelectSingleᐸtable_queryᐳ[13]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression15 bucket1 - Bucket0 --> Bucket1 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgFromExpression11,First12,PgSelectRows13,PgSelectSingle14,PgClassExpression15,PgClassExpression16,Constant17 bucket0 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/numeric.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/numeric.mermaid index 422e93ccfb..49a4b30576 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/numeric.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/numeric.mermaid @@ -25,33 +25,14 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸrange_testᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__range_test__.”num”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__range_test__.”num”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - Access15{{"Access[15∈2] ➊
ᐸ14.startᐳ"}}:::plan - PgClassExpression14 --> Access15 - Access18{{"Access[18∈2] ➊
ᐸ14.endᐳ"}}:::plan - PgClassExpression14 --> Access18 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/v4/numeric" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 21, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 21, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant21 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13

ROOT PgSelectSingleᐸrange_testᐳ[13]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgClassExpression{1}ᐸ__range_test__.”num”ᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,Access15,Access18 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 14

ROOT Access{2}ᐸ14.startᐳ[15]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 18, 14

ROOT Access{2}ᐸ14.endᐳ[18]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4 bucket4 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket4 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,Constant21 bucket0 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/one-to-one-backward.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/one-to-one-backward.mermaid index 98a15c75e9..3332cff49b 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/one-to-one-backward.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/one-to-one-backward.mermaid @@ -9,129 +9,107 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸpersonᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Constant31{{"Constant[31∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan - Constant53{{"Constant[53∈0] ➊
ᐸ'person_secrets'ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸpersonᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - Access18{{"Access[18∈1] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan + Access18{{"Access[18∈0] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan PgSelect14 --> Access18 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + Constant31{{"Constant[31∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan + Constant51{{"Constant[51∈0] ➊
ᐸ'person_secrets'ᐳ"}}:::plan + PgCursor19{{"PgCursor[19∈1]"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸpersonᐳ"}}:::plan + PgSelectSingle17 & Access18 --> PgCursor19 + PgSelect24[["PgSelect[24∈1]
ᐸleft_armᐳ"]]:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression20 --> PgSelect24 + List33{{"List[33∈1]
ᐸ31,32ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__left_arm__.”id”ᐳ"}}:::plan + Constant31 & PgClassExpression32 --> List33 + PgSelect36[["PgSelect[36∈1]
ᐸpersonᐳ"]]:::plan + PgClassExpression35{{"PgClassExpression[35∈1]
ᐸ__left_arm...person_id”ᐳ"}}:::plan + Object11 & PgClassExpression35 --> PgSelect36 + PgSelect46[["PgSelect[46∈1]
ᐸperson_secretᐳ"]]:::plan + Object11 & PgClassExpression20 --> PgSelect46 + List53{{"List[53∈1]
ᐸ51,52ᐳ"}}:::plan + PgClassExpression52{{"PgClassExpression[52∈1]
ᐸ__person_s...person_id”ᐳ"}}:::plan + Constant51 & PgClassExpression52 --> List53 + PgSelect55[["PgSelect[55∈1]
ᐸpersonᐳ"]]:::plan + Object11 & PgClassExpression52 --> PgSelect55 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸpersonᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgCursor19{{"PgCursor[19∈3]"}}:::plan - PgSelectSingle17 & Access18 --> PgCursor19 - PgSelect24[["PgSelect[24∈3]
ᐸleft_armᐳ"]]:::plan - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__person__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression20 --> PgSelect24 - PgSelect48[["PgSelect[48∈3]
ᐸperson_secretᐳ"]]:::plan - Object12 & PgClassExpression20 --> PgSelect48 PgSelectSingle17 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression21 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan + First28{{"First[28∈1]"}}:::plan + PgSelectRows29[["PgSelectRows[29∈1]"]]:::plan PgSelectRows29 --> First28 PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸleft_armᐳ"}}:::plan + PgSelectSingle30{{"PgSelectSingle[30∈1]
ᐸleft_armᐳ"}}:::plan First28 --> PgSelectSingle30 - First50{{"First[50∈3]"}}:::plan - PgSelectRows51[["PgSelectRows[51∈3]"]]:::plan - PgSelectRows51 --> First50 - PgSelect48 --> PgSelectRows51 - PgSelectSingle52{{"PgSelectSingle[52∈3]
ᐸperson_secretᐳ"}}:::plan - First50 --> PgSelectSingle52 - List33{{"List[33∈4]
ᐸ31,32ᐳ"}}:::plan - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__left_arm__.”id”ᐳ"}}:::plan - Constant31 & PgClassExpression32 --> List33 - PgSelect36[["PgSelect[36∈4]
ᐸpersonᐳ"]]:::plan - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__left_arm...person_id”ᐳ"}}:::plan - Object12 & PgClassExpression35 --> PgSelect36 PgSelectSingle30 --> PgClassExpression32 - Lambda34{{"Lambda[34∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda34{{"Lambda[34∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan List33 --> Lambda34 PgSelectSingle30 --> PgClassExpression35 - First40{{"First[40∈4]"}}:::plan - PgSelectRows41[["PgSelectRows[41∈4]"]]:::plan - PgSelectRows41 --> First40 - PgSelect36 --> PgSelectRows41 - PgSelectSingle42{{"PgSelectSingle[42∈4]
ᐸpersonᐳ"}}:::plan - First40 --> PgSelectSingle42 - PgClassExpression47{{"PgClassExpression[47∈4]
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression47 - PgClassExpression43{{"PgClassExpression[43∈5]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle42 --> PgClassExpression43 - PgClassExpression44{{"PgClassExpression[44∈5]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle42 --> PgClassExpression44 - PgClassExpression46{{"PgClassExpression[46∈5]
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan - PgSelectSingle42 --> PgClassExpression46 - List55{{"List[55∈6]
ᐸ53,54ᐳ"}}:::plan - PgClassExpression54{{"PgClassExpression[54∈6]
ᐸ__person_s...person_id”ᐳ"}}:::plan - Constant53 & PgClassExpression54 --> List55 - PgSelect57[["PgSelect[57∈6]
ᐸpersonᐳ"]]:::plan - Object12 & PgClassExpression54 --> PgSelect57 - PgSelectSingle52 --> PgClassExpression54 - Lambda56{{"Lambda[56∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan - List55 --> Lambda56 - First61{{"First[61∈6]"}}:::plan - PgSelectRows62[["PgSelectRows[62∈6]"]]:::plan - PgSelectRows62 --> First61 - PgSelect57 --> PgSelectRows62 - PgSelectSingle63{{"PgSelectSingle[63∈6]
ᐸpersonᐳ"}}:::plan - First61 --> PgSelectSingle63 - PgClassExpression68{{"PgClassExpression[68∈6]
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression68 - PgClassExpression64{{"PgClassExpression[64∈7]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression64 - PgClassExpression65{{"PgClassExpression[65∈7]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression65 - PgClassExpression67{{"PgClassExpression[67∈7]
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression67 + First38{{"First[38∈1]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈1]"]]:::plan + PgSelectRows39 --> First38 + PgSelect36 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈1]
ᐸpersonᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 + PgClassExpression44{{"PgClassExpression[44∈1]
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression44 + PgClassExpression45{{"PgClassExpression[45∈1]
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression45 + First48{{"First[48∈1]"}}:::plan + PgSelectRows49[["PgSelectRows[49∈1]"]]:::plan + PgSelectRows49 --> First48 + PgSelect46 --> PgSelectRows49 + PgSelectSingle50{{"PgSelectSingle[50∈1]
ᐸperson_secretᐳ"}}:::plan + First48 --> PgSelectSingle50 + PgSelectSingle50 --> PgClassExpression52 + Lambda54{{"Lambda[54∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List53 --> Lambda54 + First57{{"First[57∈1]"}}:::plan + PgSelectRows58[["PgSelectRows[58∈1]"]]:::plan + PgSelectRows58 --> First57 + PgSelect55 --> PgSelectRows58 + PgSelectSingle59{{"PgSelectSingle[59∈1]
ᐸpersonᐳ"}}:::plan + First57 --> PgSelectSingle59 + PgClassExpression60{{"PgClassExpression[60∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle59 --> PgClassExpression60 + PgClassExpression61{{"PgClassExpression[61∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle59 --> PgClassExpression61 + PgClassExpression63{{"PgClassExpression[63∈1]
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan + PgSelectSingle59 --> PgClassExpression63 + PgClassExpression64{{"PgClassExpression[64∈1]
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan + PgSelectSingle50 --> PgClassExpression64 %% define steps subgraph "Buckets for queries/v4/one-to-one-backward" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 31, 51, 11, 12
2: PgSelect[14]
ᐳ: Access[18]
3: PgSelectRows[15]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Constant31,Constant53 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 31, 53

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
ᐳ: Access[18]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Access18,Constant31,Constant51 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 18, 11, 31, 51

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 19, 20, 21, 23
2: PgSelect[24], PgSelect[46]
3: PgSelectRows[29], PgSelectRows[49]
ᐳ: 28, 30, 32, 33, 34, 35, 45, 48, 50, 52, 53, 54, 64
4: PgSelect[36], PgSelect[55]
5: PgSelectRows[39], PgSelectRows[58]
ᐳ: 38, 40, 41, 42, 44, 57, 59, 60, 61, 63"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15,Access18 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 18, 12, 31, 53

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 18, 12, 31, 53

ROOT PgSelectSingle{2}ᐸpersonᐳ[17]
1:
ᐳ: 19, 20, 21, 23
2: PgSelect[24], PgSelect[48]
3: PgSelectRows[29], PgSelectRows[51]
ᐳ: 28, 30, 50, 52"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor19,PgClassExpression20,PgClassExpression21,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30,PgSelect48,First50,PgSelectRows51,PgSelectSingle52 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30, 31, 12

ROOT PgSelectSingle{3}ᐸleft_armᐳ[30]
1:
ᐳ: 32, 35, 47, 33, 34
2: PgSelect[36]
3: PgSelectRows[41]
ᐳ: First[40], PgSelectSingle[42]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32,List33,Lambda34,PgClassExpression35,PgSelect36,First40,PgSelectRows41,PgSelectSingle42,PgClassExpression47 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 42

ROOT PgSelectSingle{4}ᐸpersonᐳ[42]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression43,PgClassExpression44,PgClassExpression46 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 52, 53, 12

ROOT PgSelectSingle{3}ᐸperson_secretᐳ[52]
1:
ᐳ: 54, 68, 55, 56
2: PgSelect[57]
3: PgSelectRows[62]
ᐳ: First[61], PgSelectSingle[63]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression54,List55,Lambda56,PgSelect57,First61,PgSelectRows62,PgSelectSingle63,PgClassExpression68 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 63

ROOT PgSelectSingle{6}ᐸpersonᐳ[63]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression64,PgClassExpression65,PgClassExpression67 bucket7 + class Bucket1,__Item16,PgSelectSingle17,PgCursor19,PgClassExpression20,PgClassExpression21,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression32,List33,Lambda34,PgClassExpression35,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42,PgClassExpression44,PgClassExpression45,PgSelect46,First48,PgSelectRows49,PgSelectSingle50,PgClassExpression52,List53,Lambda54,PgSelect55,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,PgClassExpression61,PgClassExpression63,PgClassExpression64 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket6 - Bucket4 --> Bucket5 - Bucket6 --> Bucket7 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/orderByNullsLast.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/orderByNullsLast.mermaid index 337b9195d5..fbaaa73b63 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/orderByNullsLast.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/orderByNullsLast.mermaid @@ -9,77 +9,63 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸsimilar_table_1ᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect28[["PgSelect[28∈0] ➊
ᐸsimilar_table_1ᐳ"]]:::plan + Connection26{{"Connection[26∈0] ➊
ᐸ24ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect28 + Connection26 --> PgSelect28 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan + PgSelect14 --> PgSelectRows15 + PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan + PgSelect28 --> PgSelectRows29 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan Constant18{{"Constant[18∈0] ➊
ᐸ'similar_table_1S'ᐳ"}}:::plan - Connection27{{"Connection[27∈0] ➊
ᐸ25ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸsimilar_table_1ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan - PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + List20{{"List[20∈1]
ᐸ18,19ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan + Constant18 & PgClassExpression19 --> List20 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸsimilar_table_1ᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸsimilar_table_1ᐳ"}}:::plan __Item16 --> PgSelectSingle17 - List20{{"List[20∈3]
ᐸ18,19ᐳ"}}:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression19 --> List20 PgSelectSingle17 --> PgClassExpression19 - Lambda21{{"Lambda[21∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda21{{"Lambda[21∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan List20 --> Lambda21 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression22 - PgSelect28[["PgSelect[28∈4] ➊
ᐸsimilar_table_1ᐳ"]]:::plan - Object12 & Connection27 --> PgSelect28 - PgSelectRows29[["PgSelectRows[29∈4] ➊"]]:::plan - PgSelect28 --> PgSelectRows29 - __Item30[/"__Item[30∈5]
ᐸ29ᐳ"\]:::itemplan + List34{{"List[34∈2]
ᐸ18,33ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan + Constant18 & PgClassExpression33 --> List34 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan PgSelectRows29 ==> __Item30 - PgSelectSingle31{{"PgSelectSingle[31∈5]
ᐸsimilar_table_1ᐳ"}}:::plan + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸsimilar_table_1ᐳ"}}:::plan __Item30 --> PgSelectSingle31 - List34{{"List[34∈6]
ᐸ18,33ᐳ"}}:::plan - PgClassExpression33{{"PgClassExpression[33∈6]
ᐸ__similar_...e_1__.”id”ᐳ"}}:::plan - Constant18 & PgClassExpression33 --> List34 PgSelectSingle31 --> PgClassExpression33 - Lambda35{{"Lambda[35∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda35{{"Lambda[35∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan List34 --> Lambda35 - PgClassExpression36{{"PgClassExpression[36∈6]
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈2]
ᐸ__similar_...1__.”col2”ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression36 %% define steps subgraph "Buckets for queries/v4/orderByNullsLast" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 18, 11, 12, 26
2: PgSelect[14], PgSelect[28]
3: PgSelectRows[15], PgSelectRows[29]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Constant18,Connection27 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 18

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Constant18,Connection26,PgSelect28,PgSelectRows29 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 18

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 18

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression19,List20,Lambda21,PgClassExpression22 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 18

ROOT __Item{2}ᐸ29ᐳ[30]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 18

ROOT PgSelectSingle{2}ᐸsimilar_table_1ᐳ[17]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,List20,Lambda21,PgClassExpression22 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 12, 27, 18

ROOT Connectionᐸ25ᐳ[27]
1: PgSelect[28]
2: PgSelectRows[29]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect28,PgSelectRows29 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 18

ROOT __Item{5}ᐸ29ᐳ[30]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item30,PgSelectSingle31 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 31, 18

ROOT PgSelectSingle{5}ᐸsimilar_table_1ᐳ[31]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression33,List34,Lambda35,PgClassExpression36 bucket6 - Bucket0 --> Bucket1 & Bucket4 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression33,List34,Lambda35,PgClassExpression36 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/partitions.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/partitions.mermaid index 13dffe7cf8..c5bf92e492 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/partitions.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/partitions.mermaid @@ -9,103 +9,92 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Object59{{"Object[59∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access54{{"Access[54∈1] ➊
ᐸ14.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access54 --> Object59 - Object55{{"Object[55∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access54 --> Object55 - PgSelect14[["PgSelect[14∈1] ➊
ᐸmeasurements+1ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelect33[["PgSelect[33∈1] ➊
ᐸmeasurements(aggregate)ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect33 - PgCursor45{{"PgCursor[45∈1] ➊"}}:::plan - PgSelectSingle43{{"PgSelectSingle[43∈1] ➊
ᐸmeasurementsᐳ"}}:::plan - Access18{{"Access[18∈1] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan + PgSelect14[["PgSelect[14∈0] ➊
ᐸmeasurements+1ᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Object58{{"Object[58∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access53{{"Access[53∈0] ➊
ᐸ14.hasMoreᐳ"}}:::plan + Access53 --> Object58 + Object54{{"Object[54∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access53 --> Object54 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 + PgSelect33[["PgSelect[33∈0] ➊
ᐸmeasurements(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect33 + Connection12 --> PgSelect33 + PgCursor45{{"PgCursor[45∈0] ➊"}}:::plan + PgSelectSingle43{{"PgSelectSingle[43∈0] ➊
ᐸmeasurementsᐳ"}}:::plan + Access18{{"Access[18∈0] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan PgSelectSingle43 & Access18 --> PgCursor45 - PgCursor51{{"PgCursor[51∈1] ➊"}}:::plan - PgSelectSingle49{{"PgSelectSingle[49∈1] ➊
ᐸmeasurementsᐳ"}}:::plan + PgCursor51{{"PgCursor[51∈0] ➊"}}:::plan + PgSelectSingle49{{"PgSelectSingle[49∈0] ➊
ᐸmeasurementsᐳ"}}:::plan PgSelectSingle49 & Access18 --> PgCursor51 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 + __Value2 --> Access10 + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 PgSelect14 --> Access18 - First34{{"First[34∈1] ➊"}}:::plan - PgSelectRows35[["PgSelectRows[35∈1] ➊"]]:::plan + First34{{"First[34∈0] ➊"}}:::plan + PgSelectRows35[["PgSelectRows[35∈0] ➊"]]:::plan PgSelectRows35 --> First34 PgSelect33 --> PgSelectRows35 - PgSelectSingle36{{"PgSelectSingle[36∈1] ➊
ᐸmeasurementsᐳ"}}:::plan + PgSelectSingle36{{"PgSelectSingle[36∈0] ➊
ᐸmeasurementsᐳ"}}:::plan First34 --> PgSelectSingle36 - PgClassExpression37{{"PgClassExpression[37∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression37{{"PgClassExpression[37∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle36 --> PgClassExpression37 - PgPageInfo39{{"PgPageInfo[39∈1] ➊"}}:::plan - Connection13 --> PgPageInfo39 - First41{{"First[41∈1] ➊"}}:::plan + PgPageInfo39{{"PgPageInfo[39∈0] ➊"}}:::plan + Connection12 --> PgPageInfo39 + First41{{"First[41∈0] ➊"}}:::plan PgSelectRows15 --> First41 First41 --> PgSelectSingle43 - Last47{{"Last[47∈1] ➊"}}:::plan + Last47{{"Last[47∈0] ➊"}}:::plan PgSelectRows15 --> Last47 Last47 --> PgSelectSingle49 - PgSelect14 --> Access54 - Lambda56{{"Lambda[56∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object55 --> Lambda56 - Lambda60{{"Lambda[60∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object59 --> Lambda60 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + PgSelect14 --> Access53 + Lambda55{{"Lambda[55∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object54 --> Lambda55 + Lambda59{{"Lambda[59∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object58 --> Lambda59 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor19{{"PgCursor[19∈1]"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸmeasurementsᐳ"}}:::plan + PgSelectSingle17 & Access18 --> PgCursor19 + PgSelect24[["PgSelect[24∈1]
ᐸusersᐳ"]]:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__measurem....”user_id”ᐳ"}}:::plan + Object11 & PgClassExpression23 --> PgSelect24 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸmeasurementsᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgCursor19{{"PgCursor[19∈3]"}}:::plan - PgSelectSingle17 & Access18 --> PgCursor19 - PgSelect24[["PgSelect[24∈3]
ᐸusersᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__measurem....”user_id”ᐳ"}}:::plan - Object12 & PgClassExpression23 --> PgSelect24 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__measurem...timestamp”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__measurem...timestamp”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__measurements__.”key”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__measurements__.”key”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__measurem...__.”value”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__measurem...__.”value”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression22 PgSelectSingle17 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan + First28{{"First[28∈1]"}}:::plan + PgSelectRows29[["PgSelectRows[29∈1]"]]:::plan PgSelectRows29 --> First28 PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸusersᐳ"}}:::plan + PgSelectSingle30{{"PgSelectSingle[30∈1]
ᐸusersᐳ"}}:::plan First28 --> PgSelectSingle30 - PgClassExpression31{{"PgClassExpression[31∈4]
ᐸ__users__.”id”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈1]
ᐸ__users__.”id”ᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__users__.”name”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__users__.”name”ᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression32 %% define steps subgraph "Buckets for queries/v4/partitions" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 11, 12, 39
2: PgSelect[14], PgSelect[33]
ᐳ: 18, 53, 54, 55, 58, 59
3: PgSelectRows[15], PgSelectRows[35]
ᐳ: 34, 36, 37, 41, 43, 45, 47, 49, 51"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access10,Access11,Object12,Connection13 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 6

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14], PgSelect[33]
ᐳ: 39, 18, 54, 55, 56, 59, 60
2: PgSelectRows[15], PgSelectRows[35]
ᐳ: 34, 36, 37, 41, 43, 45, 47, 49, 51"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Access18,PgSelect33,First34,PgSelectRows35,PgSelectSingle36,PgClassExpression37,PgPageInfo39,First41,PgSelectSingle43,PgCursor45,Last47,PgSelectSingle49,PgCursor51,Access53,Object54,Lambda55,Object58,Lambda59 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 18, 11

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 19, 20, 21, 22, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: 28, 30, 31, 32"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15,Access18,PgSelect33,First34,PgSelectRows35,PgSelectSingle36,PgClassExpression37,PgPageInfo39,First41,PgSelectSingle43,PgCursor45,Last47,PgSelectSingle49,PgCursor51,Access54,Object55,Lambda56,Object59,Lambda60 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 18, 12

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 18, 12

ROOT PgSelectSingle{2}ᐸmeasurementsᐳ[17]
1:
ᐳ: 19, 20, 21, 22, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸusersᐳ[30]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression31,PgClassExpression32 bucket4 + class Bucket1,__Item16,PgSelectSingle17,PgCursor19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,PgClassExpression32 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/pg11.network_types.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/pg11.network_types.mermaid index 7d5190c12e..2da2756fb0 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/pg11.network_types.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/pg11.network_types.mermaid @@ -9,297 +9,288 @@ graph TD %% plan dependencies - Object14{{"Object[14∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access13{{"Access[13∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access12 & Access13 --> Object14 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access12 - __Value2 --> Access13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection15{{"Connection[15∈0] ➊
ᐸ11ᐳ"}}:::plan - Connection61{{"Connection[61∈0] ➊
ᐸ59ᐳ"}}:::plan - Connection107{{"Connection[107∈0] ➊
ᐸ105ᐳ"}}:::plan - Connection153{{"Connection[153∈0] ➊
ᐸ151ᐳ"}}:::plan + PgSelect17[["PgSelect[17∈0] ➊
ᐸnetwork+1ᐳ"]]:::plan + Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + ApplyInput16{{"ApplyInput[16∈0] ➊"}}:::plan + Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan + ApplyInput16 -->|rejectNull| PgSelect17 + Object13 & Connection14 --> PgSelect17 + PgSelect63[["PgSelect[63∈0] ➊
ᐸnetwork+1ᐳ"]]:::plan + ApplyInput62{{"ApplyInput[62∈0] ➊"}}:::plan + Connection60{{"Connection[60∈0] ➊
ᐸ58ᐳ"}}:::plan + ApplyInput62 -->|rejectNull| PgSelect63 + Object13 & Connection60 --> PgSelect63 + PgSelect109[["PgSelect[109∈0] ➊
ᐸnetwork+1ᐳ"]]:::plan + ApplyInput108{{"ApplyInput[108∈0] ➊"}}:::plan + Connection106{{"Connection[106∈0] ➊
ᐸ104ᐳ"}}:::plan + ApplyInput108 -->|rejectNull| PgSelect109 + Object13 & Connection106 --> PgSelect109 + PgSelect155[["PgSelect[155∈0] ➊
ᐸnetwork+1ᐳ"]]:::plan + ApplyInput154{{"ApplyInput[154∈0] ➊"}}:::plan + Connection152{{"Connection[152∈0] ➊
ᐸ150ᐳ"}}:::plan + ApplyInput154 -->|rejectNull| PgSelect155 + Object13 & Connection152 --> PgSelect155 + Object37{{"Object[37∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access32{{"Access[32∈0] ➊
ᐸ17.hasMoreᐳ"}}:::plan + Access32 --> Object37 + Object83{{"Object[83∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access78{{"Access[78∈0] ➊
ᐸ63.hasMoreᐳ"}}:::plan + Access78 --> Object83 + Object129{{"Object[129∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access124{{"Access[124∈0] ➊
ᐸ109.hasMoreᐳ"}}:::plan + Access124 --> Object129 + Object175{{"Object[175∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access170{{"Access[170∈0] ➊
ᐸ155.hasMoreᐳ"}}:::plan + Access170 --> Object175 + Object33{{"Object[33∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access32 --> Object33 + PgSelect39[["PgSelect[39∈0] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan + ApplyInput16 -->|rejectNull| PgSelect39 + Object13 & Connection14 --> PgSelect39 + Object79{{"Object[79∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access78 --> Object79 + PgSelect85[["PgSelect[85∈0] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan + ApplyInput62 -->|rejectNull| PgSelect85 + Object13 & Connection60 --> PgSelect85 + Object125{{"Object[125∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access124 --> Object125 + PgSelect131[["PgSelect[131∈0] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan + ApplyInput108 -->|rejectNull| PgSelect131 + Object13 & Connection106 --> PgSelect131 + Object171{{"Object[171∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access170 --> Object171 + PgSelect177[["PgSelect[177∈0] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan + ApplyInput154 -->|rejectNull| PgSelect177 + Object13 & Connection152 --> PgSelect177 + __InputObject8{{"__InputObject[8∈0] ➊"}}:::plan Constant193{{"Constant[193∈0] ➊
ᐸ'192.168.0.0'ᐳ"}}:::plan + Constant193 --> __InputObject8 + Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access11 & Access12 --> Object13 + PgCursor24{{"PgCursor[24∈0] ➊"}}:::plan + PgSelectSingle22{{"PgSelectSingle[22∈0] ➊
ᐸnetworkᐳ"}}:::plan + Access23{{"Access[23∈0] ➊
ᐸ17.cursorDetailsᐳ"}}:::plan + PgSelectSingle22 & Access23 --> PgCursor24 + PgCursor30{{"PgCursor[30∈0] ➊"}}:::plan + PgSelectSingle28{{"PgSelectSingle[28∈0] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle28 & Access23 --> PgCursor30 + __InputObject56{{"__InputObject[56∈0] ➊"}}:::plan Constant194{{"Constant[194∈0] ➊
ᐸ'192.168.0.0/16'ᐳ"}}:::plan + Constant194 --> __InputObject56 + PgCursor70{{"PgCursor[70∈0] ➊"}}:::plan + PgSelectSingle68{{"PgSelectSingle[68∈0] ➊
ᐸnetworkᐳ"}}:::plan + Access69{{"Access[69∈0] ➊
ᐸ63.cursorDetailsᐳ"}}:::plan + PgSelectSingle68 & Access69 --> PgCursor70 + PgCursor76{{"PgCursor[76∈0] ➊"}}:::plan + PgSelectSingle74{{"PgSelectSingle[74∈0] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle74 & Access69 --> PgCursor76 + __InputObject102{{"__InputObject[102∈0] ➊"}}:::plan Constant195{{"Constant[195∈0] ➊
ᐸ'08:00:2b:01:02:03'ᐳ"}}:::plan + Constant195 --> __InputObject102 + PgCursor116{{"PgCursor[116∈0] ➊"}}:::plan + PgSelectSingle114{{"PgSelectSingle[114∈0] ➊
ᐸnetworkᐳ"}}:::plan + Access115{{"Access[115∈0] ➊
ᐸ109.cursorDetailsᐳ"}}:::plan + PgSelectSingle114 & Access115 --> PgCursor116 + PgCursor122{{"PgCursor[122∈0] ➊"}}:::plan + PgSelectSingle120{{"PgSelectSingle[120∈0] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle120 & Access115 --> PgCursor122 + __InputObject148{{"__InputObject[148∈0] ➊"}}:::plan Constant196{{"Constant[196∈0] ➊
ᐸ'08:00:2b:01:02:03:04:05'ᐳ"}}:::plan - Object37{{"Object[37∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access32{{"Access[32∈1] ➊
ᐸ16.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access32 --> Object37 - PgSelect16[["PgSelect[16∈1] ➊
ᐸnetwork+1ᐳ"]]:::plan - Object14 & Constant193 & Connection15 --> PgSelect16 - Object33{{"Object[33∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access32 --> Object33 - PgSelect39[["PgSelect[39∈1] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan - Object14 & Constant193 & Connection15 --> PgSelect39 - PgCursor23{{"PgCursor[23∈1] ➊"}}:::plan - PgSelectSingle21{{"PgSelectSingle[21∈1] ➊
ᐸnetworkᐳ"}}:::plan - Access22{{"Access[22∈1] ➊
ᐸ16.cursorDetailsᐳ"}}:::plan - PgSelectSingle21 & Access22 --> PgCursor23 - PgCursor29{{"PgCursor[29∈1] ➊"}}:::plan - PgSelectSingle27{{"PgSelectSingle[27∈1] ➊
ᐸnetworkᐳ"}}:::plan - PgSelectSingle27 & Access22 --> PgCursor29 - PgPageInfo17{{"PgPageInfo[17∈1] ➊"}}:::plan - Connection15 --> PgPageInfo17 - First19{{"First[19∈1] ➊"}}:::plan - PgSelectRows20[["PgSelectRows[20∈1] ➊"]]:::plan - PgSelectRows20 --> First19 - PgSelect16 --> PgSelectRows20 - First19 --> PgSelectSingle21 - PgSelect16 --> Access22 - Last25{{"Last[25∈1] ➊"}}:::plan - PgSelectRows20 --> Last25 - Last25 --> PgSelectSingle27 - PgSelect16 --> Access32 - Lambda34{{"Lambda[34∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Constant196 --> __InputObject148 + PgCursor162{{"PgCursor[162∈0] ➊"}}:::plan + PgSelectSingle160{{"PgSelectSingle[160∈0] ➊
ᐸnetworkᐳ"}}:::plan + Access161{{"Access[161∈0] ➊
ᐸ155.cursorDetailsᐳ"}}:::plan + PgSelectSingle160 & Access161 --> PgCursor162 + PgCursor168{{"PgCursor[168∈0] ➊"}}:::plan + PgSelectSingle166{{"PgSelectSingle[166∈0] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle166 & Access161 --> PgCursor168 + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access11 + __Value2 --> Access12 + __InputObject8 --> ApplyInput16 + PgPageInfo18{{"PgPageInfo[18∈0] ➊"}}:::plan + Connection14 --> PgPageInfo18 + First20{{"First[20∈0] ➊"}}:::plan + PgSelectRows21[["PgSelectRows[21∈0] ➊"]]:::plan + PgSelectRows21 --> First20 + PgSelect17 --> PgSelectRows21 + First20 --> PgSelectSingle22 + PgSelect17 --> Access23 + Last26{{"Last[26∈0] ➊"}}:::plan + PgSelectRows21 --> Last26 + Last26 --> PgSelectSingle28 + PgSelect17 --> Access32 + Lambda34{{"Lambda[34∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object33 --> Lambda34 - Lambda38{{"Lambda[38∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda38{{"Lambda[38∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object37 --> Lambda38 - First40{{"First[40∈1] ➊"}}:::plan - PgSelectRows41[["PgSelectRows[41∈1] ➊"]]:::plan + First40{{"First[40∈0] ➊"}}:::plan + PgSelectRows41[["PgSelectRows[41∈0] ➊"]]:::plan PgSelectRows41 --> First40 PgSelect39 --> PgSelectRows41 - PgSelectSingle42{{"PgSelectSingle[42∈1] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle42{{"PgSelectSingle[42∈0] ➊
ᐸnetworkᐳ"}}:::plan First40 --> PgSelectSingle42 - PgClassExpression43{{"PgClassExpression[43∈1] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression43{{"PgClassExpression[43∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle42 --> PgClassExpression43 - __Item46[/"__Item[46∈2]
ᐸ20ᐳ"\]:::itemplan - PgSelectRows20 ==> __Item46 - PgSelectSingle47{{"PgSelectSingle[47∈2]
ᐸnetworkᐳ"}}:::plan - __Item46 --> PgSelectSingle47 - PgCursor49{{"PgCursor[49∈3]"}}:::plan - PgSelectSingle47 & Access22 --> PgCursor49 - PgClassExpression50{{"PgClassExpression[50∈3]
ᐸ__network__.”id”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression50 - PgClassExpression51{{"PgClassExpression[51∈3]
ᐸ__network__.”inet”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression51 - PgClassExpression52{{"PgClassExpression[52∈3]
ᐸ__network__.”cidr”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈3]
ᐸ__network__.”macaddr”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈3]
ᐸ__network__.”macaddr8”ᐳ"}}:::plan - PgSelectSingle47 --> PgClassExpression54 - Object83{{"Object[83∈4] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access78{{"Access[78∈4] ➊
ᐸ62.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access78 --> Object83 - PgSelect62[["PgSelect[62∈4] ➊
ᐸnetwork+1ᐳ"]]:::plan - Object14 & Constant194 & Connection61 --> PgSelect62 - Object79{{"Object[79∈4] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access78 --> Object79 - PgSelect85[["PgSelect[85∈4] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan - Object14 & Constant194 & Connection61 --> PgSelect85 - PgCursor69{{"PgCursor[69∈4] ➊"}}:::plan - PgSelectSingle67{{"PgSelectSingle[67∈4] ➊
ᐸnetworkᐳ"}}:::plan - Access68{{"Access[68∈4] ➊
ᐸ62.cursorDetailsᐳ"}}:::plan - PgSelectSingle67 & Access68 --> PgCursor69 - PgCursor75{{"PgCursor[75∈4] ➊"}}:::plan - PgSelectSingle73{{"PgSelectSingle[73∈4] ➊
ᐸnetworkᐳ"}}:::plan - PgSelectSingle73 & Access68 --> PgCursor75 - PgPageInfo63{{"PgPageInfo[63∈4] ➊"}}:::plan - Connection61 --> PgPageInfo63 - First65{{"First[65∈4] ➊"}}:::plan - PgSelectRows66[["PgSelectRows[66∈4] ➊"]]:::plan - PgSelectRows66 --> First65 - PgSelect62 --> PgSelectRows66 - First65 --> PgSelectSingle67 - PgSelect62 --> Access68 - Last71{{"Last[71∈4] ➊"}}:::plan - PgSelectRows66 --> Last71 - Last71 --> PgSelectSingle73 - PgSelect62 --> Access78 - Lambda80{{"Lambda[80∈4] ➊
ᐸhasNextPageCbᐳ"}}:::plan + __InputObject56 --> ApplyInput62 + PgPageInfo64{{"PgPageInfo[64∈0] ➊"}}:::plan + Connection60 --> PgPageInfo64 + First66{{"First[66∈0] ➊"}}:::plan + PgSelectRows67[["PgSelectRows[67∈0] ➊"]]:::plan + PgSelectRows67 --> First66 + PgSelect63 --> PgSelectRows67 + First66 --> PgSelectSingle68 + PgSelect63 --> Access69 + Last72{{"Last[72∈0] ➊"}}:::plan + PgSelectRows67 --> Last72 + Last72 --> PgSelectSingle74 + PgSelect63 --> Access78 + Lambda80{{"Lambda[80∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object79 --> Lambda80 - Lambda84{{"Lambda[84∈4] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda84{{"Lambda[84∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object83 --> Lambda84 - First86{{"First[86∈4] ➊"}}:::plan - PgSelectRows87[["PgSelectRows[87∈4] ➊"]]:::plan + First86{{"First[86∈0] ➊"}}:::plan + PgSelectRows87[["PgSelectRows[87∈0] ➊"]]:::plan PgSelectRows87 --> First86 PgSelect85 --> PgSelectRows87 - PgSelectSingle88{{"PgSelectSingle[88∈4] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle88{{"PgSelectSingle[88∈0] ➊
ᐸnetworkᐳ"}}:::plan First86 --> PgSelectSingle88 - PgClassExpression89{{"PgClassExpression[89∈4] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression89{{"PgClassExpression[89∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle88 --> PgClassExpression89 - __Item92[/"__Item[92∈5]
ᐸ66ᐳ"\]:::itemplan - PgSelectRows66 ==> __Item92 - PgSelectSingle93{{"PgSelectSingle[93∈5]
ᐸnetworkᐳ"}}:::plan - __Item92 --> PgSelectSingle93 - PgCursor95{{"PgCursor[95∈6]"}}:::plan - PgSelectSingle93 & Access68 --> PgCursor95 - PgClassExpression96{{"PgClassExpression[96∈6]
ᐸ__network__.”id”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression96 - PgClassExpression97{{"PgClassExpression[97∈6]
ᐸ__network__.”inet”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression97 - PgClassExpression98{{"PgClassExpression[98∈6]
ᐸ__network__.”cidr”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression98 - PgClassExpression99{{"PgClassExpression[99∈6]
ᐸ__network__.”macaddr”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression99 - PgClassExpression100{{"PgClassExpression[100∈6]
ᐸ__network__.”macaddr8”ᐳ"}}:::plan - PgSelectSingle93 --> PgClassExpression100 - Object129{{"Object[129∈7] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access124{{"Access[124∈7] ➊
ᐸ108.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access124 --> Object129 - PgSelect108[["PgSelect[108∈7] ➊
ᐸnetwork+1ᐳ"]]:::plan - Object14 & Constant195 & Connection107 --> PgSelect108 - Object125{{"Object[125∈7] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access124 --> Object125 - PgSelect131[["PgSelect[131∈7] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan - Object14 & Constant195 & Connection107 --> PgSelect131 - PgCursor115{{"PgCursor[115∈7] ➊"}}:::plan - PgSelectSingle113{{"PgSelectSingle[113∈7] ➊
ᐸnetworkᐳ"}}:::plan - Access114{{"Access[114∈7] ➊
ᐸ108.cursorDetailsᐳ"}}:::plan - PgSelectSingle113 & Access114 --> PgCursor115 - PgCursor121{{"PgCursor[121∈7] ➊"}}:::plan - PgSelectSingle119{{"PgSelectSingle[119∈7] ➊
ᐸnetworkᐳ"}}:::plan - PgSelectSingle119 & Access114 --> PgCursor121 - PgPageInfo109{{"PgPageInfo[109∈7] ➊"}}:::plan - Connection107 --> PgPageInfo109 - First111{{"First[111∈7] ➊"}}:::plan - PgSelectRows112[["PgSelectRows[112∈7] ➊"]]:::plan - PgSelectRows112 --> First111 - PgSelect108 --> PgSelectRows112 - First111 --> PgSelectSingle113 - PgSelect108 --> Access114 - Last117{{"Last[117∈7] ➊"}}:::plan - PgSelectRows112 --> Last117 - Last117 --> PgSelectSingle119 - PgSelect108 --> Access124 - Lambda126{{"Lambda[126∈7] ➊
ᐸhasNextPageCbᐳ"}}:::plan + __InputObject102 --> ApplyInput108 + PgPageInfo110{{"PgPageInfo[110∈0] ➊"}}:::plan + Connection106 --> PgPageInfo110 + First112{{"First[112∈0] ➊"}}:::plan + PgSelectRows113[["PgSelectRows[113∈0] ➊"]]:::plan + PgSelectRows113 --> First112 + PgSelect109 --> PgSelectRows113 + First112 --> PgSelectSingle114 + PgSelect109 --> Access115 + Last118{{"Last[118∈0] ➊"}}:::plan + PgSelectRows113 --> Last118 + Last118 --> PgSelectSingle120 + PgSelect109 --> Access124 + Lambda126{{"Lambda[126∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object125 --> Lambda126 - Lambda130{{"Lambda[130∈7] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda130{{"Lambda[130∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object129 --> Lambda130 - First132{{"First[132∈7] ➊"}}:::plan - PgSelectRows133[["PgSelectRows[133∈7] ➊"]]:::plan + First132{{"First[132∈0] ➊"}}:::plan + PgSelectRows133[["PgSelectRows[133∈0] ➊"]]:::plan PgSelectRows133 --> First132 PgSelect131 --> PgSelectRows133 - PgSelectSingle134{{"PgSelectSingle[134∈7] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle134{{"PgSelectSingle[134∈0] ➊
ᐸnetworkᐳ"}}:::plan First132 --> PgSelectSingle134 - PgClassExpression135{{"PgClassExpression[135∈7] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression135{{"PgClassExpression[135∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle134 --> PgClassExpression135 - __Item138[/"__Item[138∈8]
ᐸ112ᐳ"\]:::itemplan - PgSelectRows112 ==> __Item138 - PgSelectSingle139{{"PgSelectSingle[139∈8]
ᐸnetworkᐳ"}}:::plan - __Item138 --> PgSelectSingle139 - PgCursor141{{"PgCursor[141∈9]"}}:::plan - PgSelectSingle139 & Access114 --> PgCursor141 - PgClassExpression142{{"PgClassExpression[142∈9]
ᐸ__network__.”id”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression142 - PgClassExpression143{{"PgClassExpression[143∈9]
ᐸ__network__.”inet”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression143 - PgClassExpression144{{"PgClassExpression[144∈9]
ᐸ__network__.”cidr”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression144 - PgClassExpression145{{"PgClassExpression[145∈9]
ᐸ__network__.”macaddr”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression145 - PgClassExpression146{{"PgClassExpression[146∈9]
ᐸ__network__.”macaddr8”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression146 - Object175{{"Object[175∈10] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access170{{"Access[170∈10] ➊
ᐸ154.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access170 --> Object175 - PgSelect154[["PgSelect[154∈10] ➊
ᐸnetwork+1ᐳ"]]:::plan - Object14 & Constant196 & Connection153 --> PgSelect154 - Object171{{"Object[171∈10] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access170 --> Object171 - PgSelect177[["PgSelect[177∈10] ➊
ᐸnetwork(aggregate)ᐳ"]]:::plan - Object14 & Constant196 & Connection153 --> PgSelect177 - PgCursor161{{"PgCursor[161∈10] ➊"}}:::plan - PgSelectSingle159{{"PgSelectSingle[159∈10] ➊
ᐸnetworkᐳ"}}:::plan - Access160{{"Access[160∈10] ➊
ᐸ154.cursorDetailsᐳ"}}:::plan - PgSelectSingle159 & Access160 --> PgCursor161 - PgCursor167{{"PgCursor[167∈10] ➊"}}:::plan - PgSelectSingle165{{"PgSelectSingle[165∈10] ➊
ᐸnetworkᐳ"}}:::plan - PgSelectSingle165 & Access160 --> PgCursor167 - PgPageInfo155{{"PgPageInfo[155∈10] ➊"}}:::plan - Connection153 --> PgPageInfo155 - First157{{"First[157∈10] ➊"}}:::plan - PgSelectRows158[["PgSelectRows[158∈10] ➊"]]:::plan - PgSelectRows158 --> First157 - PgSelect154 --> PgSelectRows158 - First157 --> PgSelectSingle159 - PgSelect154 --> Access160 - Last163{{"Last[163∈10] ➊"}}:::plan - PgSelectRows158 --> Last163 - Last163 --> PgSelectSingle165 - PgSelect154 --> Access170 - Lambda172{{"Lambda[172∈10] ➊
ᐸhasNextPageCbᐳ"}}:::plan + __InputObject148 --> ApplyInput154 + PgPageInfo156{{"PgPageInfo[156∈0] ➊"}}:::plan + Connection152 --> PgPageInfo156 + First158{{"First[158∈0] ➊"}}:::plan + PgSelectRows159[["PgSelectRows[159∈0] ➊"]]:::plan + PgSelectRows159 --> First158 + PgSelect155 --> PgSelectRows159 + First158 --> PgSelectSingle160 + PgSelect155 --> Access161 + Last164{{"Last[164∈0] ➊"}}:::plan + PgSelectRows159 --> Last164 + Last164 --> PgSelectSingle166 + PgSelect155 --> Access170 + Lambda172{{"Lambda[172∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object171 --> Lambda172 - Lambda176{{"Lambda[176∈10] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda176{{"Lambda[176∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object175 --> Lambda176 - First178{{"First[178∈10] ➊"}}:::plan - PgSelectRows179[["PgSelectRows[179∈10] ➊"]]:::plan + First178{{"First[178∈0] ➊"}}:::plan + PgSelectRows179[["PgSelectRows[179∈0] ➊"]]:::plan PgSelectRows179 --> First178 PgSelect177 --> PgSelectRows179 - PgSelectSingle180{{"PgSelectSingle[180∈10] ➊
ᐸnetworkᐳ"}}:::plan + PgSelectSingle180{{"PgSelectSingle[180∈0] ➊
ᐸnetworkᐳ"}}:::plan First178 --> PgSelectSingle180 - PgClassExpression181{{"PgClassExpression[181∈10] ➊
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression181{{"PgClassExpression[181∈0] ➊
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle180 --> PgClassExpression181 - __Item184[/"__Item[184∈11]
ᐸ158ᐳ"\]:::itemplan - PgSelectRows158 ==> __Item184 - PgSelectSingle185{{"PgSelectSingle[185∈11]
ᐸnetworkᐳ"}}:::plan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor49{{"PgCursor[49∈1]"}}:::plan + PgSelectSingle47{{"PgSelectSingle[47∈1]
ᐸnetworkᐳ"}}:::plan + PgSelectSingle47 & Access23 --> PgCursor49 + __Item46[/"__Item[46∈1]
ᐸ21ᐳ"\]:::itemplan + PgSelectRows21 ==> __Item46 + __Item46 --> PgSelectSingle47 + PgClassExpression50{{"PgClassExpression[50∈1]
ᐸ__network__.”id”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression50 + PgClassExpression51{{"PgClassExpression[51∈1]
ᐸ__network__.”inet”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression51 + PgClassExpression52{{"PgClassExpression[52∈1]
ᐸ__network__.”cidr”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression52 + PgClassExpression53{{"PgClassExpression[53∈1]
ᐸ__network__.”macaddr”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression53 + PgClassExpression54{{"PgClassExpression[54∈1]
ᐸ__network__.”macaddr8”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression54 + PgCursor95{{"PgCursor[95∈2]"}}:::plan + PgSelectSingle93{{"PgSelectSingle[93∈2]
ᐸnetworkᐳ"}}:::plan + PgSelectSingle93 & Access69 --> PgCursor95 + __Item92[/"__Item[92∈2]
ᐸ67ᐳ"\]:::itemplan + PgSelectRows67 ==> __Item92 + __Item92 --> PgSelectSingle93 + PgClassExpression96{{"PgClassExpression[96∈2]
ᐸ__network__.”id”ᐳ"}}:::plan + PgSelectSingle93 --> PgClassExpression96 + PgClassExpression97{{"PgClassExpression[97∈2]
ᐸ__network__.”inet”ᐳ"}}:::plan + PgSelectSingle93 --> PgClassExpression97 + PgClassExpression98{{"PgClassExpression[98∈2]
ᐸ__network__.”cidr”ᐳ"}}:::plan + PgSelectSingle93 --> PgClassExpression98 + PgClassExpression99{{"PgClassExpression[99∈2]
ᐸ__network__.”macaddr”ᐳ"}}:::plan + PgSelectSingle93 --> PgClassExpression99 + PgClassExpression100{{"PgClassExpression[100∈2]
ᐸ__network__.”macaddr8”ᐳ"}}:::plan + PgSelectSingle93 --> PgClassExpression100 + PgCursor141{{"PgCursor[141∈3]"}}:::plan + PgSelectSingle139{{"PgSelectSingle[139∈3]
ᐸnetworkᐳ"}}:::plan + PgSelectSingle139 & Access115 --> PgCursor141 + __Item138[/"__Item[138∈3]
ᐸ113ᐳ"\]:::itemplan + PgSelectRows113 ==> __Item138 + __Item138 --> PgSelectSingle139 + PgClassExpression142{{"PgClassExpression[142∈3]
ᐸ__network__.”id”ᐳ"}}:::plan + PgSelectSingle139 --> PgClassExpression142 + PgClassExpression143{{"PgClassExpression[143∈3]
ᐸ__network__.”inet”ᐳ"}}:::plan + PgSelectSingle139 --> PgClassExpression143 + PgClassExpression144{{"PgClassExpression[144∈3]
ᐸ__network__.”cidr”ᐳ"}}:::plan + PgSelectSingle139 --> PgClassExpression144 + PgClassExpression145{{"PgClassExpression[145∈3]
ᐸ__network__.”macaddr”ᐳ"}}:::plan + PgSelectSingle139 --> PgClassExpression145 + PgClassExpression146{{"PgClassExpression[146∈3]
ᐸ__network__.”macaddr8”ᐳ"}}:::plan + PgSelectSingle139 --> PgClassExpression146 + PgCursor187{{"PgCursor[187∈4]"}}:::plan + PgSelectSingle185{{"PgSelectSingle[185∈4]
ᐸnetworkᐳ"}}:::plan + PgSelectSingle185 & Access161 --> PgCursor187 + __Item184[/"__Item[184∈4]
ᐸ159ᐳ"\]:::itemplan + PgSelectRows159 ==> __Item184 __Item184 --> PgSelectSingle185 - PgCursor187{{"PgCursor[187∈12]"}}:::plan - PgSelectSingle185 & Access160 --> PgCursor187 - PgClassExpression188{{"PgClassExpression[188∈12]
ᐸ__network__.”id”ᐳ"}}:::plan + PgClassExpression188{{"PgClassExpression[188∈4]
ᐸ__network__.”id”ᐳ"}}:::plan PgSelectSingle185 --> PgClassExpression188 - PgClassExpression189{{"PgClassExpression[189∈12]
ᐸ__network__.”inet”ᐳ"}}:::plan + PgClassExpression189{{"PgClassExpression[189∈4]
ᐸ__network__.”inet”ᐳ"}}:::plan PgSelectSingle185 --> PgClassExpression189 - PgClassExpression190{{"PgClassExpression[190∈12]
ᐸ__network__.”cidr”ᐳ"}}:::plan + PgClassExpression190{{"PgClassExpression[190∈4]
ᐸ__network__.”cidr”ᐳ"}}:::plan PgSelectSingle185 --> PgClassExpression190 - PgClassExpression191{{"PgClassExpression[191∈12]
ᐸ__network__.”macaddr”ᐳ"}}:::plan + PgClassExpression191{{"PgClassExpression[191∈4]
ᐸ__network__.”macaddr”ᐳ"}}:::plan PgSelectSingle185 --> PgClassExpression191 - PgClassExpression192{{"PgClassExpression[192∈12]
ᐸ__network__.”macaddr8”ᐳ"}}:::plan + PgClassExpression192{{"PgClassExpression[192∈4]
ᐸ__network__.”macaddr8”ᐳ"}}:::plan PgSelectSingle185 --> PgClassExpression192 %% define steps subgraph "Buckets for queries/v4/pg11.network_types" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 11, 12, 193, 194, 195, 196, 8, 13, 14, 16, 18, 56, 60, 62, 64, 102, 106, 108, 110, 148, 152, 154, 156
2: 17, 39, 63, 85, 109, 131, 155, 177
ᐳ: 23, 32, 33, 34, 37, 38, 69, 78, 79, 80, 83, 84, 115, 124, 125, 126, 129, 130, 161, 170, 171, 172, 175, 176
3: 21, 41, 67, 87, 113, 133, 159, 179
ᐳ: 20, 22, 24, 26, 28, 30, 40, 42, 43, 66, 68, 70, 72, 74, 76, 86, 88, 89, 112, 114, 116, 118, 120, 122, 132, 134, 135, 158, 160, 162, 164, 166, 168, 178, 180, 181"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access12,Access13,Object14,Connection15,Connection61,Connection107,Connection153,Constant193,Constant194,Constant195,Constant196 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 14, 193, 15, 6

ROOT Connectionᐸ11ᐳ[15]
1: PgSelect[16], PgSelect[39]
ᐳ: 17, 22, 32, 33, 34, 37, 38
2: PgSelectRows[20], PgSelectRows[41]
ᐳ: 19, 21, 23, 25, 27, 29, 40, 42, 43"):::bucket + class Bucket0,__Value2,__Value4,__InputObject8,Access11,Access12,Object13,Connection14,ApplyInput16,PgSelect17,PgPageInfo18,First20,PgSelectRows21,PgSelectSingle22,Access23,PgCursor24,Last26,PgSelectSingle28,PgCursor30,Access32,Object33,Lambda34,Object37,Lambda38,PgSelect39,First40,PgSelectRows41,PgSelectSingle42,PgClassExpression43,__InputObject56,Connection60,ApplyInput62,PgSelect63,PgPageInfo64,First66,PgSelectRows67,PgSelectSingle68,Access69,PgCursor70,Last72,PgSelectSingle74,PgCursor76,Access78,Object79,Lambda80,Object83,Lambda84,PgSelect85,First86,PgSelectRows87,PgSelectSingle88,PgClassExpression89,__InputObject102,Connection106,ApplyInput108,PgSelect109,PgPageInfo110,First112,PgSelectRows113,PgSelectSingle114,Access115,PgCursor116,Last118,PgSelectSingle120,PgCursor122,Access124,Object125,Lambda126,Object129,Lambda130,PgSelect131,First132,PgSelectRows133,PgSelectSingle134,PgClassExpression135,__InputObject148,Connection152,ApplyInput154,PgSelect155,PgPageInfo156,First158,PgSelectRows159,PgSelectSingle160,Access161,PgCursor162,Last164,PgSelectSingle166,PgCursor168,Access170,Object171,Lambda172,Object175,Lambda176,PgSelect177,First178,PgSelectRows179,PgSelectSingle180,PgClassExpression181,Constant193,Constant194,Constant195,Constant196 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 23

ROOT __Item{1}ᐸ21ᐳ[46]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect16,PgPageInfo17,First19,PgSelectRows20,PgSelectSingle21,Access22,PgCursor23,Last25,PgSelectSingle27,PgCursor29,Access32,Object33,Lambda34,Object37,Lambda38,PgSelect39,First40,PgSelectRows41,PgSelectSingle42,PgClassExpression43 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 22

ROOT __Item{2}ᐸ20ᐳ[46]"):::bucket + class Bucket1,__Item46,PgSelectSingle47,PgCursor49,PgClassExpression50,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 69

ROOT __Item{2}ᐸ67ᐳ[92]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item46,PgSelectSingle47 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 47, 22

ROOT PgSelectSingle{2}ᐸnetworkᐳ[47]"):::bucket + class Bucket2,__Item92,PgSelectSingle93,PgCursor95,PgClassExpression96,PgClassExpression97,PgClassExpression98,PgClassExpression99,PgClassExpression100 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 115

ROOT __Item{3}ᐸ113ᐳ[138]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor49,PgClassExpression50,PgClassExpression51,PgClassExpression52,PgClassExpression53,PgClassExpression54 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 14, 194, 61, 6

ROOT Connectionᐸ59ᐳ[61]
1: PgSelect[62], PgSelect[85]
ᐳ: 63, 68, 78, 79, 80, 83, 84
2: PgSelectRows[66], PgSelectRows[87]
ᐳ: 65, 67, 69, 71, 73, 75, 86, 88, 89"):::bucket + class Bucket3,__Item138,PgSelectSingle139,PgCursor141,PgClassExpression142,PgClassExpression143,PgClassExpression144,PgClassExpression145,PgClassExpression146 bucket3 + Bucket4("Bucket 4 (listItem)
Deps: 161

ROOT __Item{4}ᐸ159ᐳ[184]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect62,PgPageInfo63,First65,PgSelectRows66,PgSelectSingle67,Access68,PgCursor69,Last71,PgSelectSingle73,PgCursor75,Access78,Object79,Lambda80,Object83,Lambda84,PgSelect85,First86,PgSelectRows87,PgSelectSingle88,PgClassExpression89 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 68

ROOT __Item{5}ᐸ66ᐳ[92]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item92,PgSelectSingle93 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 93, 68

ROOT PgSelectSingle{5}ᐸnetworkᐳ[93]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgCursor95,PgClassExpression96,PgClassExpression97,PgClassExpression98,PgClassExpression99,PgClassExpression100 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 14, 195, 107, 6

ROOT Connectionᐸ105ᐳ[107]
1: PgSelect[108], PgSelect[131]
ᐳ: 109, 114, 124, 125, 126, 129, 130
2: PgSelectRows[112], PgSelectRows[133]
ᐳ: 111, 113, 115, 117, 119, 121, 132, 134, 135"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgSelect108,PgPageInfo109,First111,PgSelectRows112,PgSelectSingle113,Access114,PgCursor115,Last117,PgSelectSingle119,PgCursor121,Access124,Object125,Lambda126,Object129,Lambda130,PgSelect131,First132,PgSelectRows133,PgSelectSingle134,PgClassExpression135 bucket7 - Bucket8("Bucket 8 (listItem)
Deps: 114

ROOT __Item{8}ᐸ112ᐳ[138]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,__Item138,PgSelectSingle139 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 139, 114

ROOT PgSelectSingle{8}ᐸnetworkᐳ[139]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgCursor141,PgClassExpression142,PgClassExpression143,PgClassExpression144,PgClassExpression145,PgClassExpression146 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 14, 196, 153, 6

ROOT Connectionᐸ151ᐳ[153]
1: PgSelect[154], PgSelect[177]
ᐳ: 155, 160, 170, 171, 172, 175, 176
2: PgSelectRows[158], PgSelectRows[179]
ᐳ: 157, 159, 161, 163, 165, 167, 178, 180, 181"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgSelect154,PgPageInfo155,First157,PgSelectRows158,PgSelectSingle159,Access160,PgCursor161,Last163,PgSelectSingle165,PgCursor167,Access170,Object171,Lambda172,Object175,Lambda176,PgSelect177,First178,PgSelectRows179,PgSelectSingle180,PgClassExpression181 bucket10 - Bucket11("Bucket 11 (listItem)
Deps: 160

ROOT __Item{11}ᐸ158ᐳ[184]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,__Item184,PgSelectSingle185 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 185, 160

ROOT PgSelectSingle{11}ᐸnetworkᐳ[185]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgCursor187,PgClassExpression188,PgClassExpression189,PgClassExpression190,PgClassExpression191,PgClassExpression192 bucket12 - Bucket0 --> Bucket1 & Bucket4 & Bucket7 & Bucket10 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 - Bucket10 --> Bucket11 - Bucket11 --> Bucket12 + class Bucket4,__Item184,PgSelectSingle185,PgCursor187,PgClassExpression188,PgClassExpression189,PgClassExpression190,PgClassExpression191,PgClassExpression192 bucket4 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/pg11.types.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/pg11.types.mermaid index 3d340c3210..5b271c7125 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/pg11.types.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/pg11.types.mermaid @@ -9,162 +9,132 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸtypes+1ᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Object67{{"Object[67∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access62{{"Access[62∈0] ➊
ᐸ14.hasMoreᐳ"}}:::plan + Access62 --> Object67 + Object63{{"Object[63∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access62 --> Object63 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 + PgSelect54[["PgSelect[54∈0] ➊
ᐸtypes(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect54 + Connection12 --> PgSelect54 + PgCursor74{{"PgCursor[74∈0] ➊"}}:::plan + PgSelectSingle72{{"PgSelectSingle[72∈0] ➊
ᐸtypesᐳ"}}:::plan + Access73{{"Access[73∈0] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan + PgSelectSingle72 & Access73 --> PgCursor74 + PgCursor80{{"PgCursor[80∈0] ➊"}}:::plan + PgSelectSingle78{{"PgSelectSingle[78∈0] ➊
ᐸtypesᐳ"}}:::plan + PgSelectSingle78 & Access73 --> PgCursor80 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Object74{{"Object[74∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access69{{"Access[69∈1] ➊
ᐸ14.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access69 --> Object74 - Object70{{"Object[70∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access69 --> Object70 - PgSelect14[["PgSelect[14∈1] ➊
ᐸtypes+1ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelect60[["PgSelect[60∈1] ➊
ᐸtypes(aggregate)ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect60 - PgCursor81{{"PgCursor[81∈1] ➊"}}:::plan - PgSelectSingle79{{"PgSelectSingle[79∈1] ➊
ᐸtypesᐳ"}}:::plan - Access80{{"Access[80∈1] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan - PgSelectSingle79 & Access80 --> PgCursor81 - PgCursor87{{"PgCursor[87∈1] ➊"}}:::plan - PgSelectSingle85{{"PgSelectSingle[85∈1] ➊
ᐸtypesᐳ"}}:::plan - PgSelectSingle85 & Access80 --> PgCursor87 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - First61{{"First[61∈1] ➊"}}:::plan - PgSelectRows62[["PgSelectRows[62∈1] ➊"]]:::plan - PgSelectRows62 --> First61 - PgSelect60 --> PgSelectRows62 - PgSelectSingle63{{"PgSelectSingle[63∈1] ➊
ᐸtypesᐳ"}}:::plan - First61 --> PgSelectSingle63 - PgClassExpression64{{"PgClassExpression[64∈1] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle63 --> PgClassExpression64 - PgPageInfo66{{"PgPageInfo[66∈1] ➊"}}:::plan - Connection13 --> PgPageInfo66 - PgSelect14 --> Access69 - Lambda71{{"Lambda[71∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object70 --> Lambda71 - Lambda75{{"Lambda[75∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object74 --> Lambda75 - First77{{"First[77∈1] ➊"}}:::plan - PgSelectRows15 --> First77 - First77 --> PgSelectSingle79 - PgSelect14 --> Access80 - Last83{{"Last[83∈1] ➊"}}:::plan - PgSelectRows15 --> Last83 - Last83 --> PgSelectSingle85 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + First55{{"First[55∈0] ➊"}}:::plan + PgSelectRows56[["PgSelectRows[56∈0] ➊"]]:::plan + PgSelectRows56 --> First55 + PgSelect54 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈0] ➊
ᐸtypesᐳ"}}:::plan + First55 --> PgSelectSingle57 + PgClassExpression58{{"PgClassExpression[58∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression58 + PgPageInfo60{{"PgPageInfo[60∈0] ➊"}}:::plan + Connection12 --> PgPageInfo60 + PgSelect14 --> Access62 + Lambda64{{"Lambda[64∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object63 --> Lambda64 + Lambda68{{"Lambda[68∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object67 --> Lambda68 + First70{{"First[70∈0] ➊"}}:::plan + PgSelectRows15 --> First70 + First70 --> PgSelectSingle72 + PgSelect14 --> Access73 + Last76{{"Last[76∈0] ➊"}}:::plan + PgSelectRows15 --> Last76 + Last76 --> PgSelectSingle78 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgFromExpression28{{"PgFromExpression[28∈0] ➊"}}:::plan + PgFromExpression43{{"PgFromExpression[43∈0] ➊"}}:::plan + PgSelect24[["PgSelect[24∈1]
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"]]:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression23 & PgFromExpression28 --> PgSelect24 + PgSelect41[["PgSelect[41∈1]
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"]]:::plan + Object11 & PgClassExpression23 & PgFromExpression43 --> PgSelect41 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸtypesᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸtypesᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgSelect24[["PgSelect[24∈3]
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"]]:::plan - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression23 --> PgSelect24 - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__types__.”id”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__types__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__types__.”regrole”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__types__.”regrole”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__types__....namespace”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__types__....namespace”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__types__....ay_domain”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression21 PgSelectSingle17 --> PgClassExpression23 - First28{{"First[28∈3]"}}:::plan - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan - PgSelectRows29 --> First28 - PgSelect24 --> PgSelectRows29 - PgSelectSingle30{{"PgSelectSingle[30∈3]
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"}}:::plan - First28 --> PgSelectSingle30 - __Item22[/"__Item[22∈4]
ᐸ21ᐳ"\]:::itemplan + First29{{"First[29∈1]"}}:::plan + PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan + PgSelectRows30 --> First29 + PgSelect24 --> PgSelectRows30 + PgSelectSingle31{{"PgSelectSingle[31∈1]
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"}}:::plan + First29 --> PgSelectSingle31 + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__frmcdc_d...type__.”a”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__frmcdc_d...type__.”b”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__frmcdc_d...type__.”c”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression34 + PgClassExpression35{{"PgClassExpression[35∈1]
ᐸ__frmcdc_d...type__.”d”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression35 + PgClassExpression36{{"PgClassExpression[36∈1]
ᐸ__frmcdc_d...type__.”e”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression36 + PgClassExpression37{{"PgClassExpression[37∈1]
ᐸ__frmcdc_d...type__.”f”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression37 + PgClassExpression38{{"PgClassExpression[38∈1]
ᐸ__frmcdc_d....”foo_bar”ᐳ"}}:::plan + PgSelectSingle31 --> PgClassExpression38 + First44{{"First[44∈1]"}}:::plan + PgSelectRows45[["PgSelectRows[45∈1]"]]:::plan + PgSelectRows45 --> First44 + PgSelect41 --> PgSelectRows45 + PgSelectSingle46{{"PgSelectSingle[46∈1]
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"}}:::plan + First44 --> PgSelectSingle46 + PgClassExpression47{{"PgClassExpression[47∈1]
ᐸ__frmcdc_d...type__.”a”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression47 + PgClassExpression48{{"PgClassExpression[48∈1]
ᐸ__frmcdc_d...type__.”b”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression48 + PgClassExpression49{{"PgClassExpression[49∈1]
ᐸ__frmcdc_d...type__.”c”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression49 + PgClassExpression50{{"PgClassExpression[50∈1]
ᐸ__frmcdc_d...type__.”d”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression50 + PgClassExpression51{{"PgClassExpression[51∈1]
ᐸ__frmcdc_d...type__.”e”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression51 + PgClassExpression52{{"PgClassExpression[52∈1]
ᐸ__frmcdc_d...type__.”f”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression52 + PgClassExpression53{{"PgClassExpression[53∈1]
ᐸ__frmcdc_d....”foo_bar”ᐳ"}}:::plan + PgSelectSingle46 --> PgClassExpression53 + __Item22[/"__Item[22∈2]
ᐸ21ᐳ"\]:::itemplan PgClassExpression21 ==> __Item22 - PgClassExpression31{{"PgClassExpression[31∈5]
ᐸ__frmcdc_d...type__.”a”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈5]
ᐸ__frmcdc_d...type__.”b”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈5]
ᐸ__frmcdc_d...type__.”c”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈5]
ᐸ__frmcdc_d...type__.”d”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈5]
ᐸ__frmcdc_d...type__.”e”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__frmcdc_d...type__.”f”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression36 - PgClassExpression37{{"PgClassExpression[37∈5]
ᐸ__frmcdc_d....”foo_bar”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression37 - PgSelect46[["PgSelect[46∈6]
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"]]:::plan - PgClassExpression45{{"PgClassExpression[45∈6]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression45 --> PgSelect46 - PgClassExpression40{{"PgClassExpression[40∈6]
ᐸ__types__.”id”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈6]
ᐸ__types__.”regrole”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression41 - PgClassExpression42{{"PgClassExpression[42∈6]
ᐸ__types__....namespace”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression42 - PgClassExpression43{{"PgClassExpression[43∈6]
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression43 - PgSelectSingle17 --> PgClassExpression45 - First50{{"First[50∈6]"}}:::plan - PgSelectRows51[["PgSelectRows[51∈6]"]]:::plan - PgSelectRows51 --> First50 - PgSelect46 --> PgSelectRows51 - PgSelectSingle52{{"PgSelectSingle[52∈6]
ᐸfrmcdc_domainConstrainedCompoundTypeᐳ"}}:::plan - First50 --> PgSelectSingle52 - __Item44[/"__Item[44∈7]
ᐸ43ᐳ"\]:::itemplan - PgClassExpression43 ==> __Item44 - PgClassExpression53{{"PgClassExpression[53∈8]
ᐸ__frmcdc_d...type__.”a”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈8]
ᐸ__frmcdc_d...type__.”b”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression54 - PgClassExpression55{{"PgClassExpression[55∈8]
ᐸ__frmcdc_d...type__.”c”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression55 - PgClassExpression56{{"PgClassExpression[56∈8]
ᐸ__frmcdc_d...type__.”d”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈8]
ᐸ__frmcdc_d...type__.”e”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression57 - PgClassExpression58{{"PgClassExpression[58∈8]
ᐸ__frmcdc_d...type__.”f”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression58 - PgClassExpression59{{"PgClassExpression[59∈8]
ᐸ__frmcdc_d....”foo_bar”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression59 %% define steps subgraph "Buckets for queries/v4/pg11.types" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 28, 43, 11, 12, 60
2: PgSelect[14], PgSelect[54]
ᐳ: 62, 63, 64, 67, 68, 73
3: PgSelectRows[15], PgSelectRows[56]
ᐳ: 55, 57, 58, 70, 72, 74, 76, 78, 80"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access10,Access11,Object12,Connection13 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 6

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14], PgSelect[60]
ᐳ: 66, 69, 70, 71, 74, 75, 80
2: PgSelectRows[15], PgSelectRows[62]
ᐳ: 61, 63, 64, 77, 79, 81, 83, 85, 87"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,PgFromExpression28,PgFromExpression43,PgSelect54,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression58,PgPageInfo60,Access62,Object63,Lambda64,Object67,Lambda68,First70,PgSelectSingle72,Access73,PgCursor74,Last76,PgSelectSingle78,PgCursor80 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 28, 43

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 18, 19, 20, 21, 23
2: PgSelect[24], PgSelect[41]
3: PgSelectRows[30], PgSelectRows[45]
ᐳ: 29, 31, 32, 33, 34, 35, 36, 37, 38, 44, 46, 47, 48, 49, 50, 51, 52, 53"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15,PgSelect60,First61,PgSelectRows62,PgSelectSingle63,PgClassExpression64,PgPageInfo66,Access69,Object70,Lambda71,Object74,Lambda75,First77,PgSelectSingle79,Access80,PgCursor81,Last83,PgSelectSingle85,PgCursor87 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 12

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression23,PgSelect24,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36,PgClassExpression37,PgClassExpression38,PgSelect41,First44,PgSelectRows45,PgSelectSingle46,PgClassExpression47,PgClassExpression48,PgClassExpression49,PgClassExpression50,PgClassExpression51,PgClassExpression52,PgClassExpression53 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ21ᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 12

ROOT PgSelectSingle{2}ᐸtypesᐳ[17]
1:
ᐳ: 18, 19, 20, 21, 23
2: PgSelect[24]
3: PgSelectRows[29]
ᐳ: First[28], PgSelectSingle[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression23,PgSelect24,First28,PgSelectRows29,PgSelectSingle30 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ21ᐳ[22]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item22 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{3}ᐸfrmcdc_domainConstrainedCompoundTypeᐳ[30]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression31,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36,PgClassExpression37 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 17, 12

ROOT PgSelectSingle{2}ᐸtypesᐳ[17]
1:
ᐳ: 40, 41, 42, 43, 45
2: PgSelect[46]
3: PgSelectRows[51]
ᐳ: First[50], PgSelectSingle[52]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression40,PgClassExpression41,PgClassExpression42,PgClassExpression43,PgClassExpression45,PgSelect46,First50,PgSelectRows51,PgSelectSingle52 bucket6 - Bucket7("Bucket 7 (listItem)

ROOT __Item{7}ᐸ43ᐳ[44]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,__Item44 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 52

ROOT PgSelectSingle{6}ᐸfrmcdc_domainConstrainedCompoundTypeᐳ[52]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression53,PgClassExpression54,PgClassExpression55,PgClassExpression56,PgClassExpression57,PgClassExpression58,PgClassExpression59 bucket8 + class Bucket2,__Item22 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket6 - Bucket3 --> Bucket4 & Bucket5 - Bucket6 --> Bucket7 & Bucket8 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/posts.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/posts.mermaid index b6be939c83..dc072eabe4 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/posts.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/posts.mermaid @@ -9,152 +9,134 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸpostᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + PgFromExpression23{{"PgFromExpression[23∈0] ➊"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 & PgFromExpression23 --> PgSelect14 + Connection63{{"Connection[63∈0] ➊
ᐸ60ᐳ"}}:::plan + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan + PgSelect14 --> PgSelectRows15 + Access18{{"Access[18∈0] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan + PgSelect14 --> Access18 + PgFromExpression47{{"PgFromExpression[47∈0] ➊"}}:::plan PgPageInfo78{{"PgPageInfo[78∈0] ➊"}}:::plan - Connection63{{"Connection[63∈0] ➊
ᐸ61ᐳ"}}:::plan Connection63 --> PgPageInfo78 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸpostᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan - PgSelect14 --> PgSelectRows15 - Access18{{"Access[18∈1] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan - PgSelect14 --> Access18 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + PgFromExpression40{{"PgFromExpression[40∈0] ➊"}}:::plan + PgFromExpression62{{"PgFromExpression[62∈0] ➊"}}:::plan + PgSelect64[["PgSelect[64∈1]
ᐸperson_friendsᐳ"]]:::plan + PgClassExpression35{{"PgClassExpression[35∈1]
ᐸ__person__ᐳ"}}:::plan + Object11 & PgClassExpression35 & PgFromExpression62 & Connection63 --> PgSelect64 + PgSelect38[["PgSelect[38∈1]
ᐸperson_first_postᐳ"]]:::plan + Object11 & PgClassExpression35 & PgFromExpression40 & PgFromExpression47 --> PgSelect38 + PgSelect72[["PgSelect[72∈1]
ᐸperson_friends(aggregate)ᐳ"]]:::plan + Object11 & PgClassExpression35 & PgFromExpression62 & Connection63 --> PgSelect72 + PgCursor19{{"PgCursor[19∈1]"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸpostᐳ"}}:::plan + PgSelectSingle17 & Access18 --> PgCursor19 + PgSelect26[["PgSelect[26∈1]
ᐸpersonᐳ"]]:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__post__.”author_id”ᐳ"}}:::plan + Object11 & PgClassExpression25 --> PgSelect26 + PgSelect50[["PgSelect[50∈1]
ᐸpersonᐳ"]]:::plan + PgClassExpression49{{"PgClassExpression[49∈1]
ᐸ__person_f...author_id”ᐳ"}}:::plan + Object11 & PgClassExpression49 --> PgSelect50 + PgCursor84{{"PgCursor[84∈1]"}}:::plan + PgSelectSingle82{{"PgSelectSingle[82∈1]
ᐸperson_friendsᐳ"}}:::plan + Access83{{"Access[83∈1]
ᐸ64.cursorDetailsᐳ"}}:::plan + PgSelectSingle82 & Access83 --> PgCursor84 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸpostᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgCursor19{{"PgCursor[19∈3]"}}:::plan - PgSelectSingle17 & Access18 --> PgCursor19 - PgSelect25[["PgSelect[25∈3]
ᐸpersonᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__post__.”author_id”ᐳ"}}:::plan - Object12 & PgClassExpression24 --> PgSelect25 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__post__.”id”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__post__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__post__.”headline”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression21 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression23 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸpersonᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgSelect64[["PgSelect[64∈4]
ᐸperson_friendsᐳ"]]:::plan - PgClassExpression34{{"PgClassExpression[34∈4]
ᐸ__person__ᐳ"}}:::plan - Object12 & PgClassExpression34 & Connection63 --> PgSelect64 - PgSelect72[["PgSelect[72∈4]
ᐸperson_friends(aggregate)ᐳ"]]:::plan - Object12 & PgClassExpression34 & Connection63 --> PgSelect72 - PgSelect37[["PgSelect[37∈4]
ᐸperson_first_postᐳ"]]:::plan - Object12 & PgClassExpression34 --> PgSelect37 - PgCursor84{{"PgCursor[84∈4]"}}:::plan - PgSelectSingle82{{"PgSelectSingle[82∈4]
ᐸperson_friendsᐳ"}}:::plan - Access83{{"Access[83∈4]
ᐸ64.cursorDetailsᐳ"}}:::plan - PgSelectSingle82 & Access83 --> PgCursor84 - PgClassExpression32{{"PgClassExpression[32∈4]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression33 - PgSelectSingle31 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression35 - First41{{"First[41∈4]"}}:::plan - PgSelectRows42[["PgSelectRows[42∈4]"]]:::plan + PgSelectSingle17 --> PgClassExpression25 + First30{{"First[30∈1]"}}:::plan + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelectRows31 --> First30 + PgSelect26 --> PgSelectRows31 + PgSelectSingle32{{"PgSelectSingle[32∈1]
ᐸpersonᐳ"}}:::plan + First30 --> PgSelectSingle32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression33 + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression34 + PgSelectSingle32 --> PgClassExpression35 + PgClassExpression36{{"PgClassExpression[36∈1]
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan + PgSelectSingle32 --> PgClassExpression36 + First41{{"First[41∈1]"}}:::plan + PgSelectRows42[["PgSelectRows[42∈1]"]]:::plan PgSelectRows42 --> First41 - PgSelect37 --> PgSelectRows42 - PgSelectSingle43{{"PgSelectSingle[43∈4]
ᐸperson_first_postᐳ"}}:::plan + PgSelect38 --> PgSelectRows42 + PgSelectSingle43{{"PgSelectSingle[43∈1]
ᐸperson_first_postᐳ"}}:::plan First41 --> PgSelectSingle43 - PgSelectRows65[["PgSelectRows[65∈4]"]]:::plan + PgClassExpression44{{"PgClassExpression[44∈1]
ᐸ__person_f...ost__.”id”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression44 + PgClassExpression45{{"PgClassExpression[45∈1]
ᐸ__person_f...”headline”ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression45 + PgClassExpression48{{"PgClassExpression[48∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle43 --> PgClassExpression48 + PgSelectSingle43 --> PgClassExpression49 + First52{{"First[52∈1]"}}:::plan + PgSelectRows53[["PgSelectRows[53∈1]"]]:::plan + PgSelectRows53 --> First52 + PgSelect50 --> PgSelectRows53 + PgSelectSingle54{{"PgSelectSingle[54∈1]
ᐸpersonᐳ"}}:::plan + First52 --> PgSelectSingle54 + PgClassExpression55{{"PgClassExpression[55∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle54 --> PgClassExpression55 + PgClassExpression56{{"PgClassExpression[56∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle54 --> PgClassExpression56 + PgClassExpression58{{"PgClassExpression[58∈1]
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan + PgSelectSingle54 --> PgClassExpression58 + PgSelectRows65[["PgSelectRows[65∈1]"]]:::plan PgSelect64 --> PgSelectRows65 - First73{{"First[73∈4]"}}:::plan - PgSelectRows74[["PgSelectRows[74∈4]"]]:::plan + First73{{"First[73∈1]"}}:::plan + PgSelectRows74[["PgSelectRows[74∈1]"]]:::plan PgSelectRows74 --> First73 PgSelect72 --> PgSelectRows74 - PgSelectSingle75{{"PgSelectSingle[75∈4]
ᐸperson_friendsᐳ"}}:::plan + PgSelectSingle75{{"PgSelectSingle[75∈1]
ᐸperson_friendsᐳ"}}:::plan First73 --> PgSelectSingle75 - PgClassExpression76{{"PgClassExpression[76∈4]
ᐸcount(*)ᐳ"}}:::plan + PgClassExpression76{{"PgClassExpression[76∈1]
ᐸcount(*)ᐳ"}}:::plan PgSelectSingle75 --> PgClassExpression76 - First80{{"First[80∈4]"}}:::plan + First80{{"First[80∈1]"}}:::plan PgSelectRows65 --> First80 First80 --> PgSelectSingle82 PgSelect64 --> Access83 - PgSelect49[["PgSelect[49∈5]
ᐸpersonᐳ"]]:::plan - PgClassExpression48{{"PgClassExpression[48∈5]
ᐸ__person_f...author_id”ᐳ"}}:::plan - Object12 & PgClassExpression48 --> PgSelect49 - PgClassExpression44{{"PgClassExpression[44∈5]
ᐸ__person_f...ost__.”id”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression44 - PgClassExpression45{{"PgClassExpression[45∈5]
ᐸ__person_f...”headline”ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression45 - PgClassExpression47{{"PgClassExpression[47∈5]
ᐸ”a”.”post_...st_post__)ᐳ"}}:::plan - PgSelectSingle43 --> PgClassExpression47 - PgSelectSingle43 --> PgClassExpression48 - First53{{"First[53∈5]"}}:::plan - PgSelectRows54[["PgSelectRows[54∈5]"]]:::plan - PgSelectRows54 --> First53 - PgSelect49 --> PgSelectRows54 - PgSelectSingle55{{"PgSelectSingle[55∈5]
ᐸpersonᐳ"}}:::plan - First53 --> PgSelectSingle55 - PgClassExpression56{{"PgClassExpression[56∈6]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈6]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression57 - PgClassExpression59{{"PgClassExpression[59∈6]
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression59 - __Item66[/"__Item[66∈7]
ᐸ65ᐳ"\]:::itemplan + __Item66[/"__Item[66∈2]
ᐸ65ᐳ"\]:::itemplan PgSelectRows65 ==> __Item66 - PgSelectSingle67{{"PgSelectSingle[67∈7]
ᐸperson_friendsᐳ"}}:::plan + PgSelectSingle67{{"PgSelectSingle[67∈2]
ᐸperson_friendsᐳ"}}:::plan __Item66 --> PgSelectSingle67 - PgClassExpression68{{"PgClassExpression[68∈8]
ᐸ__person_friends__.”id”ᐳ"}}:::plan + PgClassExpression68{{"PgClassExpression[68∈2]
ᐸ__person_friends__.”id”ᐳ"}}:::plan PgSelectSingle67 --> PgClassExpression68 - PgClassExpression69{{"PgClassExpression[69∈8]
ᐸ__person_f...full_name”ᐳ"}}:::plan + PgClassExpression69{{"PgClassExpression[69∈2]
ᐸ__person_f...full_name”ᐳ"}}:::plan PgSelectSingle67 --> PgClassExpression69 - PgClassExpression71{{"PgClassExpression[71∈8]
ᐸ”c”.”perso...friends__)ᐳ"}}:::plan + PgClassExpression71{{"PgClassExpression[71∈2]
ᐸ”c”.”perso...friends__)ᐳ"}}:::plan PgSelectSingle67 --> PgClassExpression71 %% define steps subgraph "Buckets for queries/v4/posts" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 40, 62, 11, 12, 23, 47, 63, 78
2: PgSelect[14]
ᐳ: Access[18]
3: PgSelectRows[15]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Connection63,PgPageInfo78 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 63, 78

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
ᐳ: Access[18]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Access18,PgFromExpression23,PgFromExpression40,PgFromExpression47,PgFromExpression62,Connection63,PgPageInfo78 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 18, 11, 40, 47, 62, 63, 6, 78

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 19, 20, 21, 24, 25
2: PgSelect[26]
3: PgSelectRows[31]
ᐳ: 30, 32, 33, 34, 35, 36
4: 38, 64, 72
ᐳ: Access[83]
5: 42, 65, 74
ᐳ: 41, 43, 44, 45, 48, 49, 73, 75, 76, 80, 82, 84
6: PgSelect[50]
7: PgSelectRows[53]
ᐳ: 52, 54, 55, 56, 58"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15,Access18 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 18, 12, 63, 78

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgCursor19,PgClassExpression20,PgClassExpression21,PgClassExpression24,PgClassExpression25,PgSelect26,First30,PgSelectRows31,PgSelectSingle32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgClassExpression36,PgSelect38,First41,PgSelectRows42,PgSelectSingle43,PgClassExpression44,PgClassExpression45,PgClassExpression48,PgClassExpression49,PgSelect50,First52,PgSelectRows53,PgSelectSingle54,PgClassExpression55,PgClassExpression56,PgClassExpression58,PgSelect64,PgSelectRows65,PgSelect72,First73,PgSelectRows74,PgSelectSingle75,PgClassExpression76,First80,PgSelectSingle82,Access83,PgCursor84 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ65ᐳ[66]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 18, 12, 63, 78

ROOT PgSelectSingle{2}ᐸpostᐳ[17]
1:
ᐳ: 19, 20, 21, 23, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: First[29], PgSelectSingle[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor19,PgClassExpression20,PgClassExpression21,PgClassExpression23,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 31, 12, 63, 78

ROOT PgSelectSingle{3}ᐸpersonᐳ[31]
1:
ᐳ: 32, 33, 34, 35
2: 37, 64, 72
ᐳ: Access[83]
3: 42, 65, 74
ᐳ: 41, 43, 73, 75, 76, 80, 82, 84"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression35,PgSelect37,First41,PgSelectRows42,PgSelectSingle43,PgSelect64,PgSelectRows65,PgSelect72,First73,PgSelectRows74,PgSelectSingle75,PgClassExpression76,First80,PgSelectSingle82,Access83,PgCursor84 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 43, 12

ROOT PgSelectSingle{4}ᐸperson_first_postᐳ[43]
1:
ᐳ: 44, 45, 47, 48
2: PgSelect[49]
3: PgSelectRows[54]
ᐳ: First[53], PgSelectSingle[55]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression44,PgClassExpression45,PgClassExpression47,PgClassExpression48,PgSelect49,First53,PgSelectRows54,PgSelectSingle55 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 55

ROOT PgSelectSingle{5}ᐸpersonᐳ[55]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression56,PgClassExpression57,PgClassExpression59 bucket6 - Bucket7("Bucket 7 (listItem)

ROOT __Item{7}ᐸ65ᐳ[66]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,__Item66,PgSelectSingle67 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 67

ROOT PgSelectSingle{7}ᐸperson_friendsᐳ[67]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression68,PgClassExpression69,PgClassExpression71 bucket8 + class Bucket2,__Item66,PgSelectSingle67,PgClassExpression68,PgClassExpression69,PgClassExpression71 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket7 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields-cut-down-for-export.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields-cut-down-for-export.mermaid index b8e5cd3461..21d0cf2f11 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields-cut-down-for-export.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields-cut-down-for-export.mermaid @@ -11,11 +11,17 @@ graph TD %% plan dependencies PgSelect7[["PgSelect[7∈0] ➊
ᐸpostᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant32{{"Constant[32∈0] ➊
ᐸ1ᐳ"}}:::plan - Object10 & Constant32 --> PgSelect7 + Constant25{{"Constant[25∈0] ➊
ᐸ1ᐳ"}}:::plan + Object10 & Constant25 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + PgSelect19[["PgSelect[19∈0] ➊
ᐸpost_computed_compound_type_arrayᐳ"]]:::plan + PgFromExpression21{{"PgFromExpression[21∈0] ➊"}}:::plan + Object10 & PgFromExpression21 --> PgSelect19 + PgClassExpression18{{"PgClassExpression[18∈0] ➊
ᐸ__post__ᐳ"}}:::plan + BakedInput17{{"BakedInput[17∈0] ➊"}}:::plan + PgClassExpression18 & BakedInput17 --> PgFromExpression21 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -25,47 +31,27 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸpostᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant33{{"Constant[33∈0] ➊
ᐸ§{}ᐳ"}}:::plan - PgSelect27[["PgSelect[27∈1] ➊
ᐸpost_computed_compound_type_arrayᐳ"]]:::plan - PgClassExpression26{{"PgClassExpression[26∈1] ➊
ᐸ__post__ᐳ"}}:::plan - Object10 & PgClassExpression26 & Constant33 --> PgSelect27 - PgSelect19[["PgSelect[19∈1] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__post__ᐳ"}}:::plan - Object10 & PgClassExpression18 --> PgSelect19 - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 + __InputObject15{{"__InputObject[15∈0] ➊"}}:::plan + __InputObject15 --> BakedInput17 PgSelectSingle13 --> PgClassExpression18 - First23{{"First[23∈1] ➊"}}:::plan - PgSelectRows24[["PgSelectRows[24∈1] ➊"]]:::plan - PgSelectRows24 --> First23 - PgSelect19 --> PgSelectRows24 - PgSelectSingle25{{"PgSelectSingle[25∈1] ➊
ᐸpostᐳ"}}:::plan - First23 --> PgSelectSingle25 - PgSelectSingle25 --> PgClassExpression26 - PgSelectRows29[["PgSelectRows[29∈1] ➊"]]:::plan - PgSelect27 --> PgSelectRows29 - __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan - PgSelectRows29 ==> __Item30 - PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸpost_computed_compound_type_arrayᐳ"}}:::plan - __Item30 --> PgSelectSingle31 + PgSelectRows22[["PgSelectRows[22∈0] ➊"]]:::plan + PgSelect19 --> PgSelectRows22 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item23[/"__Item[23∈1]
ᐸ22ᐳ"\]:::itemplan + PgSelectRows22 ==> __Item23 + PgSelectSingle24{{"PgSelectSingle[24∈1]
ᐸpost_computed_compound_type_arrayᐳ"}}:::plan + __Item23 --> PgSelectSingle24 %% define steps subgraph "Buckets for queries/v4/procedure-computed-fields-cut-down-for-export" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 32, 33, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 16, 25, 10, 15, 17
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14, 18, 21
4: PgSelect[19]
5: PgSelectRows[22]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant32,Constant33 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 10, 33

ROOT PgSelectSingleᐸpostᐳ[13]
1:
ᐳ: 14, 18
2: PgSelect[19]
3: PgSelectRows[24]
ᐳ: 23, 25, 26
4: PgSelect[27]
5: PgSelectRows[29]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,__InputObject15,BakedInput17,PgClassExpression18,PgSelect19,PgFromExpression21,PgSelectRows22,Constant25 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ22ᐳ[23]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression18,PgSelect19,First23,PgSelectRows24,PgSelectSingle25,PgClassExpression26,PgSelect27,PgSelectRows29 bucket1 - Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ29ᐳ[30]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item30,PgSelectSingle31 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{2}ᐸpost_computed_compound_type_arrayᐳ[31]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 + class Bucket1,__Item23,PgSelectSingle24 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields-cut-down-for-export.sql b/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields-cut-down-for-export.sql index 22e4101d8a..43b7ec7c43 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields-cut-down-for-export.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields-cut-down-for-export.sql @@ -9,14 +9,6 @@ where ( __post__."id" = $1::"int4" ); -select - case when (__post__) is not distinct from null then null::text else json_build_array((((__post__)."id"))::text, ((__post__)."headline"), ((__post__)."body"), (((__post__)."author_id"))::text, (((__post__)."enums"))::text, (case when (((__post__)."comptypes")) is not distinct from null then null::text else array( - select case when (__comptype__) is not distinct from null then null::text else json_build_array(to_char(((__comptype__)."schedule"), 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text), (((__comptype__)."is_optimised"))::text)::text end - from unnest(((__post__)."comptypes")) __comptype__ - )::text end))::text end as "0", - __post__."id"::text as "1" -from (select ($1::"a"."post").*) as __post__; - select (not (__post_computed_compound_type_array__ is null))::text as "0" from unnest("a"."post_computed_compound_type_array"( diff --git a/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields.mermaid index 6dc93b5fe4..50b199a6bd 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields.mermaid @@ -9,475 +9,429 @@ graph TD %% plan dependencies - PgSelect269[["PgSelect[269∈0] ➊
ᐸpersonᐳ"]]:::plan - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant310{{"Constant[310∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant311{{"Constant[311∈0] ➊
ᐸ7ᐳ"}}:::plan - Constant309{{"Constant[309∈0] ➊
ᐸ8ᐳ"}}:::plan - Constant123{{"Constant[123∈0] ➊
ᐸnullᐳ"}}:::plan - Object12 & Constant310 & Constant310 & Constant311 & Constant310 & Constant309 & Constant311 & Constant310 & Constant311 & Constant310 & Constant311 & Constant310 & Constant123 & Constant311 & Constant310 & Constant311 --> PgSelect269 - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect105[["PgSelect[105∈0] ➊
ᐸpostᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection103{{"Connection[103∈0] ➊
ᐸ101ᐳ"}}:::plan + PgFromExpression111{{"PgFromExpression[111∈0] ➊"}}:::plan + PgFromExpression115{{"PgFromExpression[115∈0] ➊"}}:::plan + PgFromExpression120{{"PgFromExpression[120∈0] ➊"}}:::plan + PgFromExpression123{{"PgFromExpression[123∈0] ➊"}}:::plan + PgFromExpression127{{"PgFromExpression[127∈0] ➊"}}:::plan + PgFromExpression132{{"PgFromExpression[132∈0] ➊"}}:::plan + PgFromExpression136{{"PgFromExpression[136∈0] ➊"}}:::plan + PgFromExpression141{{"PgFromExpression[141∈0] ➊"}}:::plan + Object11 -->|rejectNull| PgSelect105 + Connection103 & PgFromExpression111 & PgFromExpression115 & PgFromExpression120 & PgFromExpression123 & PgFromExpression127 & PgFromExpression132 & PgFromExpression136 & PgFromExpression141 --> PgSelect105 + __InputObject143{{"__InputObject[143∈0] ➊"}}:::plan + Constant319{{"Constant[319∈0] ➊
ᐸ419ᐳ"}}:::plan + Constant320{{"Constant[320∈0] ➊
ᐸ'easy cheesy baked potatoes'ᐳ"}}:::plan + Constant321{{"Constant[321∈0] ➊
ᐸ'red'ᐳ"}}:::plan + Constant322{{"Constant[322∈0] ➊
ᐸ'BAR_FOO'ᐳ"}}:::plan + Constant323{{"Constant[323∈0] ➊
ᐸ''ᐳ"}}:::plan + __InputObject149{{"__InputObject[149∈0] ➊"}}:::plan + Constant325{{"Constant[325∈0] ➊
ᐸ8ᐳ"}}:::plan + Constant319 & Constant320 & Constant321 & Constant322 & Constant323 & __InputObject149 & Constant325 --> __InputObject143 + PgSelect280[["PgSelect[280∈0] ➊
ᐸpersonᐳ"]]:::plan + Constant326{{"Constant[326∈0] ➊
ᐸ1ᐳ"}}:::plan + PgFromExpression288{{"PgFromExpression[288∈0] ➊"}}:::plan + PgFromExpression294{{"PgFromExpression[294∈0] ➊"}}:::plan + PgFromExpression299{{"PgFromExpression[299∈0] ➊"}}:::plan + PgFromExpression304{{"PgFromExpression[304∈0] ➊"}}:::plan + PgFromExpression309{{"PgFromExpression[309∈0] ➊"}}:::plan + PgFromExpression314{{"PgFromExpression[314∈0] ➊"}}:::plan + Object11 & Constant326 & PgFromExpression288 & PgFromExpression294 & PgFromExpression299 & PgFromExpression304 & PgFromExpression309 & PgFromExpression314 --> PgSelect280 + PgSelect14[["PgSelect[14∈0] ➊
ᐸtypesᐳ"]]:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect221[["PgSelect[221∈0] ➊
ᐸpersonᐳ"]]:::plan + Connection219{{"Connection[219∈0] ➊
ᐸ217ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect221 + Connection219 --> PgSelect221 + PgSelect271[["PgSelect[271∈0] ➊
ᐸedge_caseᐳ"]]:::plan + Connection269{{"Connection[269∈0] ➊
ᐸ267ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect271 + Connection269 --> PgSelect271 + Connection189{{"Connection[189∈0] ➊
ᐸ186ᐳ"}}:::plan + Connection234{{"Connection[234∈0] ➊
ᐸ229ᐳ"}}:::plan + Connection249{{"Connection[249∈0] ➊
ᐸ244ᐳ"}}:::plan + Constant326 --> Connection249 + Constant327{{"Constant[327∈0] ➊
ᐸ7ᐳ"}}:::plan + Constant326 & Constant327 --> PgFromExpression288 + Constant326 & Constant325 & Constant327 --> PgFromExpression294 + Constant326 & Constant327 --> PgFromExpression299 + Constant326 & Constant327 --> PgFromExpression304 + Constant326 & Constant327 --> PgFromExpression309 + Constant326 & Constant327 --> PgFromExpression314 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 + Constant316{{"Constant[316∈0] ➊
ᐸ15ᐳ"}}:::plan + Constant316 --> PgFromExpression115 + Constant317{{"Constant[317∈0] ➊
ᐸ20ᐳ"}}:::plan + Constant318{{"Constant[318∈0] ➊
ᐸ'[...]'ᐳ"}}:::plan + Constant317 & Constant318 --> PgFromExpression120 + Constant316 --> PgFromExpression127 + Constant317 & Constant318 --> PgFromExpression132 + Constant316 --> PgFromExpression136 + Constant317 & Constant318 --> PgFromExpression141 + Constant324{{"Constant[324∈0] ➊
ᐸ5ᐳ"}}:::plan + Constant324 --> __InputObject149 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - Connection239{{"Connection[239∈0] ➊
ᐸ235ᐳ"}}:::plan - Constant310 --> Connection239 - First271{{"First[271∈0] ➊"}}:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan + PgSelect14 --> PgSelectRows15 + PgSelectRows106[["PgSelectRows[106∈0] ➊"]]:::plan + PgSelect105 --> PgSelectRows106 + BakedInput152{{"BakedInput[152∈0] ➊"}}:::plan + __InputObject143 --> BakedInput152 + PgFromExpression158{{"PgFromExpression[158∈0] ➊"}}:::plan + BakedInput152 --> PgFromExpression158 + PgSelectRows222[["PgSelectRows[222∈0] ➊"]]:::plan + PgSelect221 --> PgSelectRows222 PgSelectRows272[["PgSelectRows[272∈0] ➊"]]:::plan - PgSelectRows272 --> First271 - PgSelect269 --> PgSelectRows272 - PgSelectSingle273{{"PgSelectSingle[273∈0] ➊
ᐸpersonᐳ"}}:::plan - First271 --> PgSelectSingle273 + PgSelect271 --> PgSelectRows272 + First282{{"First[282∈0] ➊"}}:::plan + PgSelectRows283[["PgSelectRows[283∈0] ➊"]]:::plan + PgSelectRows283 --> First282 + PgSelect280 --> PgSelectRows283 + PgSelectSingle284{{"PgSelectSingle[284∈0] ➊
ᐸpersonᐳ"}}:::plan + First282 --> PgSelectSingle284 + PgClassExpression289{{"PgClassExpression[289∈0] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle284 --> PgClassExpression289 + PgClassExpression295{{"PgClassExpression[295∈0] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle284 --> PgClassExpression295 + PgClassExpression300{{"PgClassExpression[300∈0] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle284 --> PgClassExpression300 + PgClassExpression305{{"PgClassExpression[305∈0] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle284 --> PgClassExpression305 + PgClassExpression310{{"PgClassExpression[310∈0] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle284 --> PgClassExpression310 + PgClassExpression315{{"PgClassExpression[315∈0] ➊
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle284 --> PgClassExpression315 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Connection98{{"Connection[98∈0] ➊
ᐸ96ᐳ"}}:::plan - Connection181{{"Connection[181∈0] ➊
ᐸ179ᐳ"}}:::plan - Connection212{{"Connection[212∈0] ➊
ᐸ210ᐳ"}}:::plan - Connection225{{"Connection[225∈0] ➊
ᐸ221ᐳ"}}:::plan - Connection259{{"Connection[259∈0] ➊
ᐸ257ᐳ"}}:::plan - Constant300{{"Constant[300∈0] ➊
ᐸ15ᐳ"}}:::plan - Constant301{{"Constant[301∈0] ➊
ᐸ20ᐳ"}}:::plan - Constant302{{"Constant[302∈0] ➊
ᐸ'[...]'ᐳ"}}:::plan - Constant313{{"Constant[313∈0] ➊
ᐸ§{ a: 419, b: 'easy cheesy baked potatoes', c: 'red', e: 'BAᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸtypesᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan - PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + PgFromExpression23{{"PgFromExpression[23∈0] ➊"}}:::plan + PgFromExpression34{{"PgFromExpression[34∈0] ➊"}}:::plan + PgFromExpression41{{"PgFromExpression[41∈0] ➊"}}:::plan + PgFromExpression52{{"PgFromExpression[52∈0] ➊"}}:::plan + PgFromExpression63{{"PgFromExpression[63∈0] ➊"}}:::plan + PgFromExpression74{{"PgFromExpression[74∈0] ➊"}}:::plan + PgFromExpression81{{"PgFromExpression[81∈0] ➊"}}:::plan + PgFromExpression92{{"PgFromExpression[92∈0] ➊"}}:::plan + PgFromExpression188{{"PgFromExpression[188∈0] ➊"}}:::plan + PgFromExpression233{{"PgFromExpression[233∈0] ➊"}}:::plan + PgFromExpression248{{"PgFromExpression[248∈0] ➊"}}:::plan + PgFromExpression260{{"PgFromExpression[260∈0] ➊"}}:::plan + PgSelect19[["PgSelect[19∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression18 & PgFromExpression23 --> PgSelect19 + PgSelect32[["PgSelect[32∈1]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression31{{"PgClassExpression[31∈1]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression31 & PgFromExpression34 --> PgSelect32 + PgSelect39[["PgSelect[39∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression38{{"PgClassExpression[38∈1]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression38 & PgFromExpression41 --> PgSelect39 + PgSelect50[["PgSelect[50∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression49{{"PgClassExpression[49∈1]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression49 & PgFromExpression52 --> PgSelect50 + PgSelect61[["PgSelect[61∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression60{{"PgClassExpression[60∈1]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression60 & PgFromExpression63 --> PgSelect61 + PgSelect72[["PgSelect[72∈1]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression71{{"PgClassExpression[71∈1]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression71 & PgFromExpression74 --> PgSelect72 + PgSelect79[["PgSelect[79∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression78{{"PgClassExpression[78∈1]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression78 & PgFromExpression81 --> PgSelect79 + PgSelect90[["PgSelect[90∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression89{{"PgClassExpression[89∈1]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression89 & PgFromExpression92 --> PgSelect90 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸtypesᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸtypesᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgSelect19[["PgSelect[19∈3]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression18 --> PgSelect19 - PgSelect31[["PgSelect[31∈3]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression30 --> PgSelect31 - PgSelect37[["PgSelect[37∈3]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression36{{"PgClassExpression[36∈3]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression36 --> PgSelect37 - PgSelect47[["PgSelect[47∈3]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression46{{"PgClassExpression[46∈3]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression46 --> PgSelect47 - PgSelect57[["PgSelect[57∈3]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression56{{"PgClassExpression[56∈3]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression56 --> PgSelect57 - PgSelect67[["PgSelect[67∈3]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression66{{"PgClassExpression[66∈3]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression66 --> PgSelect67 PgSelectSingle17 --> PgClassExpression18 - First23{{"First[23∈3]"}}:::plan - PgSelectRows24[["PgSelectRows[24∈3]"]]:::plan - PgSelectRows24 --> First23 - PgSelect19 --> PgSelectRows24 - PgSelectSingle25{{"PgSelectSingle[25∈3]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First23 --> PgSelectSingle25 - PgClassExpression26{{"PgClassExpression[26∈3]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle25 --> PgClassExpression26 - PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle25 --> PgClassExpression27 - PgClassExpression29{{"PgClassExpression[29∈3]
ᐸ”c”.”compo...nd_type__)ᐳ"}}:::plan - PgSelectSingle25 --> PgClassExpression29 - PgSelectSingle17 --> PgClassExpression30 - First33{{"First[33∈3]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈3]"]]:::plan - PgSelectRows34 --> First33 - PgSelect31 --> PgSelectRows34 - PgSelectSingle35{{"PgSelectSingle[35∈3]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First33 --> PgSelectSingle35 - PgSelectSingle35 --> PgClassExpression36 - First39{{"First[39∈3]"}}:::plan - PgSelectRows40[["PgSelectRows[40∈3]"]]:::plan - PgSelectRows40 --> First39 - PgSelect37 --> PgSelectRows40 - PgSelectSingle41{{"PgSelectSingle[41∈3]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First39 --> PgSelectSingle41 - PgSelectSingle35 --> PgClassExpression46 - First49{{"First[49∈3]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈3]"]]:::plan - PgSelectRows50 --> First49 - PgSelect47 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈3]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First49 --> PgSelectSingle51 - PgSelectSingle17 --> PgClassExpression56 - First59{{"First[59∈3]"}}:::plan - PgSelectRows60[["PgSelectRows[60∈3]"]]:::plan - PgSelectRows60 --> First59 - PgSelect57 --> PgSelectRows60 - PgSelectSingle61{{"PgSelectSingle[61∈3]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First59 --> PgSelectSingle61 - PgSelectSingle17 --> PgClassExpression66 - First69{{"First[69∈3]"}}:::plan - PgSelectRows70[["PgSelectRows[70∈3]"]]:::plan - PgSelectRows70 --> First69 - PgSelect67 --> PgSelectRows70 - PgSelectSingle71{{"PgSelectSingle[71∈3]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First69 --> PgSelectSingle71 - PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle41 --> PgClassExpression42 - PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle41 --> PgClassExpression43 - PgClassExpression45{{"PgClassExpression[45∈4]
ᐸ”c”.”compo...nd_type__)ᐳ"}}:::plan - PgSelectSingle41 --> PgClassExpression45 - PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 - PgClassExpression55{{"PgClassExpression[55∈5]
ᐸ”c”.”compo...nd_type__)ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression55 - PgClassExpression62{{"PgClassExpression[62∈6]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle61 --> PgClassExpression62 - PgClassExpression63{{"PgClassExpression[63∈6]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle61 --> PgClassExpression63 - PgClassExpression65{{"PgClassExpression[65∈6]
ᐸ”c”.”compo...nd_type__)ᐳ"}}:::plan - PgSelectSingle61 --> PgClassExpression65 - PgSelect73[["PgSelect[73∈7]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression72{{"PgClassExpression[72∈7]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression72 --> PgSelect73 - PgSelect85[["PgSelect[85∈7]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression84{{"PgClassExpression[84∈7]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression84 --> PgSelect85 - PgSelectSingle71 --> PgClassExpression72 - First77{{"First[77∈7]"}}:::plan - PgSelectRows78[["PgSelectRows[78∈7]"]]:::plan - PgSelectRows78 --> First77 - PgSelect73 --> PgSelectRows78 - PgSelectSingle79{{"PgSelectSingle[79∈7]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First77 --> PgSelectSingle79 - PgSelectSingle71 --> PgClassExpression84 - First87{{"First[87∈7]"}}:::plan - PgSelectRows88[["PgSelectRows[88∈7]"]]:::plan - PgSelectRows88 --> First87 - PgSelect85 --> PgSelectRows88 - PgSelectSingle89{{"PgSelectSingle[89∈7]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First87 --> PgSelectSingle89 - PgClassExpression80{{"PgClassExpression[80∈8]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle79 --> PgClassExpression80 - PgClassExpression81{{"PgClassExpression[81∈8]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle79 --> PgClassExpression81 - PgClassExpression83{{"PgClassExpression[83∈8]
ᐸ”c”.”compo...nd_type__)ᐳ"}}:::plan - PgSelectSingle79 --> PgClassExpression83 - PgClassExpression90{{"PgClassExpression[90∈9]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression90 - PgClassExpression91{{"PgClassExpression[91∈9]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression91 - PgClassExpression93{{"PgClassExpression[93∈9]
ᐸ”c”.”compo...nd_type__)ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression93 - PgSelect99[["PgSelect[99∈10] ➊
ᐸpostᐳ"]]:::plan - Object12 & Connection98 & Constant300 & Constant301 & Constant302 & Constant300 & Constant301 & Constant302 & Constant300 & Constant123 & Constant301 & Constant302 --> PgSelect99 - PgSelectRows100[["PgSelectRows[100∈10] ➊"]]:::plan - PgSelect99 --> PgSelectRows100 - __Item101[/"__Item[101∈11]
ᐸ100ᐳ"\]:::itemplan - PgSelectRows100 ==> __Item101 - PgSelectSingle102{{"PgSelectSingle[102∈11]
ᐸpostᐳ"}}:::plan - __Item101 --> PgSelectSingle102 - PgSelect150[["PgSelect[150∈12]
ᐸpost_computed_compound_type_arrayᐳ"]]:::plan - PgClassExpression149{{"PgClassExpression[149∈12]
ᐸ__post__ᐳ"}}:::plan - Object12 & PgClassExpression149 & Constant313 --> PgSelect150 - PgSelect182[["PgSelect[182∈12]
ᐸpost_computed_interval_setᐳ"]]:::plan - PgClassExpression104{{"PgClassExpression[104∈12]
ᐸ__post__ᐳ"}}:::plan - Object12 & PgClassExpression104 & Connection181 --> PgSelect182 - PgSelect142[["PgSelect[142∈12]
ᐸpostᐳ"]]:::plan - Object12 & PgClassExpression104 --> PgSelect142 - __ListTransform194[["__ListTransform[194∈12]
ᐸeach:193ᐳ"]]:::plan - PgSelectRows183[["PgSelectRows[183∈12]"]]:::plan - PgSelectRows183 & PgSelect182 --> __ListTransform194 - PgClassExpression103{{"PgClassExpression[103∈12]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression103 - PgSelectSingle102 --> PgClassExpression104 - PgClassExpression105{{"PgClassExpression[105∈12]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression105 - PgClassExpression108{{"PgClassExpression[108∈12]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression108 - PgClassExpression112{{"PgClassExpression[112∈12]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression112 - PgClassExpression114{{"PgClassExpression[114∈12]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression114 - PgClassExpression117{{"PgClassExpression[117∈12]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression117 - PgClassExpression121{{"PgClassExpression[121∈12]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression121 - PgClassExpression125{{"PgClassExpression[125∈12]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression125 - PgClassExpression129{{"PgClassExpression[129∈12]
ᐸ”a”.”post_...lder! */
)ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression129 - First146{{"First[146∈12]"}}:::plan - PgSelectRows147[["PgSelectRows[147∈12]"]]:::plan - PgSelectRows147 --> First146 - PgSelect142 --> PgSelectRows147 - PgSelectSingle148{{"PgSelectSingle[148∈12]
ᐸpostᐳ"}}:::plan - First146 --> PgSelectSingle148 - PgSelectSingle148 --> PgClassExpression149 - PgSelectRows152[["PgSelectRows[152∈12]"]]:::plan - PgSelect150 --> PgSelectRows152 - PgClassExpression167{{"PgClassExpression[167∈12]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression167 - PgClassExpression170{{"PgClassExpression[170∈12]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan - PgSelectSingle102 --> PgClassExpression170 - PgSelect182 --> PgSelectRows183 - __Item153[/"__Item[153∈13]
ᐸ152ᐳ"\]:::itemplan - PgSelectRows152 ==> __Item153 - PgSelectSingle154{{"PgSelectSingle[154∈13]
ᐸpost_computed_compound_type_arrayᐳ"}}:::plan - __Item153 --> PgSelectSingle154 - PgClassExpression155{{"PgClassExpression[155∈14]
ᐸ__post_com...rray__.”a”ᐳ"}}:::plan - PgSelectSingle154 --> PgClassExpression155 - PgClassExpression156{{"PgClassExpression[156∈14]
ᐸ__post_com...rray__.”b”ᐳ"}}:::plan - PgSelectSingle154 --> PgClassExpression156 - PgClassExpression157{{"PgClassExpression[157∈14]
ᐸ__post_com...rray__.”c”ᐳ"}}:::plan - PgSelectSingle154 --> PgClassExpression157 - PgClassExpression158{{"PgClassExpression[158∈14]
ᐸ__post_com...rray__.”d”ᐳ"}}:::plan - PgSelectSingle154 --> PgClassExpression158 - PgClassExpression159{{"PgClassExpression[159∈14]
ᐸ__post_com...rray__.”e”ᐳ"}}:::plan - PgSelectSingle154 --> PgClassExpression159 - PgClassExpression160{{"PgClassExpression[160∈14]
ᐸ__post_com...rray__.”f”ᐳ"}}:::plan - PgSelectSingle154 --> PgClassExpression160 - PgClassExpression161{{"PgClassExpression[161∈14]
ᐸ__post_com...rray__.”g”ᐳ"}}:::plan - PgSelectSingle154 --> PgClassExpression161 - PgClassExpression165{{"PgClassExpression[165∈14]
ᐸ__post_com....”foo_bar”ᐳ"}}:::plan - PgSelectSingle154 --> PgClassExpression165 - __Item168[/"__Item[168∈16]
ᐸ167ᐳ"\]:::itemplan - PgClassExpression167 ==> __Item168 - __Item171[/"__Item[171∈17]
ᐸ170ᐳ"\]:::itemplan - PgClassExpression170 ==> __Item171 - __Item184[/"__Item[184∈19]
ᐸ183ᐳ"\]:::itemplan - PgSelectRows183 ==> __Item184 - PgSelectSingle185{{"PgSelectSingle[185∈19]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item184 --> PgSelectSingle185 - PgClassExpression186{{"PgClassExpression[186∈19]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle185 --> PgClassExpression186 - __Item196[/"__Item[196∈21]
ᐸ183ᐳ"\]:::itemplan - PgSelectRows183 -.-> __Item196 - PgSelectSingle197{{"PgSelectSingle[197∈21]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item196 --> PgSelectSingle197 - PgClassExpression198{{"PgClassExpression[198∈21]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle197 --> PgClassExpression198 - Edge202{{"Edge[202∈22]"}}:::plan - PgClassExpression201{{"PgClassExpression[201∈22]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgCursor204{{"PgCursor[204∈22]"}}:::plan - PgClassExpression201 & PgCursor204 & Connection181 --> Edge202 - PgSelectSingle200{{"PgSelectSingle[200∈22]
ᐸpost_computed_interval_setᐳ"}}:::plan - Access203{{"Access[203∈22]
ᐸ182.cursorDetailsᐳ"}}:::plan - PgSelectSingle200 & Access203 --> PgCursor204 - __Item199[/"__Item[199∈22]
ᐸ194ᐳ"\]:::itemplan - __ListTransform194 ==> __Item199 - __Item199 --> PgSelectSingle200 - PgSelectSingle200 --> PgClassExpression201 - PgSelect182 --> Access203 - PgSelect213[["PgSelect[213∈25] ➊
ᐸpersonᐳ"]]:::plan - Object12 & Connection212 --> PgSelect213 - PgSelectRows214[["PgSelectRows[214∈25] ➊"]]:::plan - PgSelect213 --> PgSelectRows214 - __Item215[/"__Item[215∈26]
ᐸ214ᐳ"\]:::itemplan - PgSelectRows214 ==> __Item215 - PgSelectSingle216{{"PgSelectSingle[216∈26]
ᐸpersonᐳ"}}:::plan - __Item215 --> PgSelectSingle216 - PgSelect226[["PgSelect[226∈27]
ᐸperson_friendsᐳ"]]:::plan - PgClassExpression218{{"PgClassExpression[218∈27]
ᐸ__person__ᐳ"}}:::plan - Object12 & PgClassExpression218 & Connection225 --> PgSelect226 - PgSelect248[["PgSelect[248∈27]
ᐸperson_first_postᐳ"]]:::plan - Object12 & PgClassExpression218 --> PgSelect248 - PgClassExpression217{{"PgClassExpression[217∈27]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle216 --> PgClassExpression217 - PgSelectSingle216 --> PgClassExpression218 - PgClassExpression219{{"PgClassExpression[219∈27]
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan - PgSelectSingle216 --> PgClassExpression219 - PgSelectRows227[["PgSelectRows[227∈27]"]]:::plan - PgSelect226 --> PgSelectRows227 - First250{{"First[250∈27]"}}:::plan - PgSelectRows251[["PgSelectRows[251∈27]"]]:::plan - PgSelectRows251 --> First250 - PgSelect248 --> PgSelectRows251 - PgSelectSingle252{{"PgSelectSingle[252∈27]
ᐸperson_first_postᐳ"}}:::plan - First250 --> PgSelectSingle252 - __Item228[/"__Item[228∈28]
ᐸ227ᐳ"\]:::itemplan - PgSelectRows227 ==> __Item228 - PgSelectSingle229{{"PgSelectSingle[229∈28]
ᐸperson_friendsᐳ"}}:::plan - __Item228 --> PgSelectSingle229 - PgSelect240[["PgSelect[240∈29]
ᐸperson_friendsᐳ"]]:::plan - PgClassExpression231{{"PgClassExpression[231∈29]
ᐸ__person_friends__ᐳ"}}:::plan - Object12 & PgClassExpression231 & Connection239 & Constant310 --> PgSelect240 - PgClassExpression230{{"PgClassExpression[230∈29]
ᐸ__person_f...full_name”ᐳ"}}:::plan - PgSelectSingle229 --> PgClassExpression230 - PgSelectSingle229 --> PgClassExpression231 - PgClassExpression232{{"PgClassExpression[232∈29]
ᐸ”c”.”perso...friends__)ᐳ"}}:::plan - PgSelectSingle229 --> PgClassExpression232 - PgSelectRows241[["PgSelectRows[241∈29]"]]:::plan - PgSelect240 --> PgSelectRows241 - __Item242[/"__Item[242∈30]
ᐸ241ᐳ"\]:::itemplan - PgSelectRows241 ==> __Item242 - PgSelectSingle243{{"PgSelectSingle[243∈30]
ᐸperson_friendsᐳ"}}:::plan - __Item242 --> PgSelectSingle243 - PgClassExpression244{{"PgClassExpression[244∈31]
ᐸ__person_f...full_name”ᐳ"}}:::plan - PgSelectSingle243 --> PgClassExpression244 - PgClassExpression246{{"PgClassExpression[246∈31]
ᐸ”c”.”perso...friends__)ᐳ"}}:::plan - PgSelectSingle243 --> PgClassExpression246 - PgClassExpression253{{"PgClassExpression[253∈32]
ᐸ__person_f...ost__.”id”ᐳ"}}:::plan - PgSelectSingle252 --> PgClassExpression253 - PgClassExpression254{{"PgClassExpression[254∈32]
ᐸ__person_f...”headline”ᐳ"}}:::plan - PgSelectSingle252 --> PgClassExpression254 - PgSelect260[["PgSelect[260∈33] ➊
ᐸedge_caseᐳ"]]:::plan - Object12 & Connection259 --> PgSelect260 - PgSelectRows261[["PgSelectRows[261∈33] ➊"]]:::plan - PgSelect260 --> PgSelectRows261 - __Item262[/"__Item[262∈34]
ᐸ261ᐳ"\]:::itemplan - PgSelectRows261 ==> __Item262 - PgSelectSingle263{{"PgSelectSingle[263∈34]
ᐸedge_caseᐳ"}}:::plan - __Item262 --> PgSelectSingle263 - PgClassExpression264{{"PgClassExpression[264∈35]
ᐸ__edge_cas...s_default”ᐳ"}}:::plan + First24{{"First[24∈1]"}}:::plan + PgSelectRows25[["PgSelectRows[25∈1]"]]:::plan + PgSelectRows25 --> First24 + PgSelect19 --> PgSelectRows25 + PgSelectSingle26{{"PgSelectSingle[26∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First24 --> PgSelectSingle26 + PgClassExpression27{{"PgClassExpression[27∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle26 --> PgClassExpression27 + PgClassExpression28{{"PgClassExpression[28∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle26 --> PgClassExpression28 + PgClassExpression30{{"PgClassExpression[30∈1]
ᐸ”c”.”compo...nd_type__)ᐳ"}}:::plan + PgSelectSingle26 --> PgClassExpression30 + PgSelectSingle17 --> PgClassExpression31 + First35{{"First[35∈1]"}}:::plan + PgSelectRows36[["PgSelectRows[36∈1]"]]:::plan + PgSelectRows36 --> First35 + PgSelect32 --> PgSelectRows36 + PgSelectSingle37{{"PgSelectSingle[37∈1]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First35 --> PgSelectSingle37 + PgSelectSingle37 --> PgClassExpression38 + First42{{"First[42∈1]"}}:::plan + PgSelectRows43[["PgSelectRows[43∈1]"]]:::plan + PgSelectRows43 --> First42 + PgSelect39 --> PgSelectRows43 + PgSelectSingle44{{"PgSelectSingle[44∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First42 --> PgSelectSingle44 + PgClassExpression45{{"PgClassExpression[45∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression45 + PgClassExpression46{{"PgClassExpression[46∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression46 + PgClassExpression48{{"PgClassExpression[48∈1]
ᐸ”c”.”compo...nd_type__)ᐳ"}}:::plan + PgSelectSingle44 --> PgClassExpression48 + PgSelectSingle37 --> PgClassExpression49 + First53{{"First[53∈1]"}}:::plan + PgSelectRows54[["PgSelectRows[54∈1]"]]:::plan + PgSelectRows54 --> First53 + PgSelect50 --> PgSelectRows54 + PgSelectSingle55{{"PgSelectSingle[55∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First53 --> PgSelectSingle55 + PgClassExpression56{{"PgClassExpression[56∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle55 --> PgClassExpression56 + PgClassExpression57{{"PgClassExpression[57∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle55 --> PgClassExpression57 + PgClassExpression59{{"PgClassExpression[59∈1]
ᐸ”c”.”compo...nd_type__)ᐳ"}}:::plan + PgSelectSingle55 --> PgClassExpression59 + PgSelectSingle17 --> PgClassExpression60 + First64{{"First[64∈1]"}}:::plan + PgSelectRows65[["PgSelectRows[65∈1]"]]:::plan + PgSelectRows65 --> First64 + PgSelect61 --> PgSelectRows65 + PgSelectSingle66{{"PgSelectSingle[66∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First64 --> PgSelectSingle66 + PgClassExpression67{{"PgClassExpression[67∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle66 --> PgClassExpression67 + PgClassExpression68{{"PgClassExpression[68∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle66 --> PgClassExpression68 + PgClassExpression70{{"PgClassExpression[70∈1]
ᐸ”c”.”compo...nd_type__)ᐳ"}}:::plan + PgSelectSingle66 --> PgClassExpression70 + PgSelectSingle17 --> PgClassExpression71 + First75{{"First[75∈1]"}}:::plan + PgSelectRows76[["PgSelectRows[76∈1]"]]:::plan + PgSelectRows76 --> First75 + PgSelect72 --> PgSelectRows76 + PgSelectSingle77{{"PgSelectSingle[77∈1]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First75 --> PgSelectSingle77 + PgSelectSingle77 --> PgClassExpression78 + First82{{"First[82∈1]"}}:::plan + PgSelectRows83[["PgSelectRows[83∈1]"]]:::plan + PgSelectRows83 --> First82 + PgSelect79 --> PgSelectRows83 + PgSelectSingle84{{"PgSelectSingle[84∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First82 --> PgSelectSingle84 + PgClassExpression85{{"PgClassExpression[85∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle84 --> PgClassExpression85 + PgClassExpression86{{"PgClassExpression[86∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle84 --> PgClassExpression86 + PgClassExpression88{{"PgClassExpression[88∈1]
ᐸ”c”.”compo...nd_type__)ᐳ"}}:::plan + PgSelectSingle84 --> PgClassExpression88 + PgSelectSingle77 --> PgClassExpression89 + First93{{"First[93∈1]"}}:::plan + PgSelectRows94[["PgSelectRows[94∈1]"]]:::plan + PgSelectRows94 --> First93 + PgSelect90 --> PgSelectRows94 + PgSelectSingle95{{"PgSelectSingle[95∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First93 --> PgSelectSingle95 + PgClassExpression96{{"PgClassExpression[96∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle95 --> PgClassExpression96 + PgClassExpression97{{"PgClassExpression[97∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle95 --> PgClassExpression97 + PgClassExpression99{{"PgClassExpression[99∈1]
ᐸ”c”.”compo...nd_type__)ᐳ"}}:::plan + PgSelectSingle95 --> PgClassExpression99 + PgSelect190[["PgSelect[190∈2]
ᐸpost_computed_interval_setᐳ"]]:::plan + PgClassExpression110{{"PgClassExpression[110∈2]
ᐸ__post__ᐳ"}}:::plan + Object11 & PgClassExpression110 & PgFromExpression188 & Connection189 --> PgSelect190 + PgSelect154[["PgSelect[154∈2]
ᐸpost_computed_compound_type_arrayᐳ"]]:::plan + Object11 & PgClassExpression110 & PgFromExpression158 --> PgSelect154 + __ListTransform202[["__ListTransform[202∈2]
ᐸeach:201ᐳ"]]:::plan + PgSelectRows191[["PgSelectRows[191∈2]"]]:::plan + PgSelectRows191 & PgSelect190 --> __ListTransform202 + __Item107[/"__Item[107∈2]
ᐸ106ᐳ"\]:::itemplan + PgSelectRows106 ==> __Item107 + PgSelectSingle108{{"PgSelectSingle[108∈2]
ᐸpostᐳ"}}:::plan + __Item107 --> PgSelectSingle108 + PgClassExpression109{{"PgClassExpression[109∈2]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle108 --> PgClassExpression109 + PgSelectSingle108 --> PgClassExpression110 + PgClassExpression112{{"PgClassExpression[112∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle108 --> PgClassExpression112 + PgClassExpression116{{"PgClassExpression[116∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle108 --> PgClassExpression116 + PgClassExpression121{{"PgClassExpression[121∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle108 --> PgClassExpression121 + PgClassExpression124{{"PgClassExpression[124∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle108 --> PgClassExpression124 + PgClassExpression128{{"PgClassExpression[128∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle108 --> PgClassExpression128 + PgClassExpression133{{"PgClassExpression[133∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle108 --> PgClassExpression133 + PgClassExpression137{{"PgClassExpression[137∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle108 --> PgClassExpression137 + PgClassExpression142{{"PgClassExpression[142∈2]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle108 --> PgClassExpression142 + PgSelectRows159[["PgSelectRows[159∈2]"]]:::plan + PgSelect154 --> PgSelectRows159 + PgClassExpression174{{"PgClassExpression[174∈2]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan + PgSelectSingle108 --> PgClassExpression174 + PgClassExpression177{{"PgClassExpression[177∈2]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan + PgSelectSingle108 --> PgClassExpression177 + PgSelect190 --> PgSelectRows191 + __Item160[/"__Item[160∈3]
ᐸ159ᐳ"\]:::itemplan + PgSelectRows159 ==> __Item160 + PgSelectSingle161{{"PgSelectSingle[161∈3]
ᐸpost_computed_compound_type_arrayᐳ"}}:::plan + __Item160 --> PgSelectSingle161 + PgClassExpression162{{"PgClassExpression[162∈3]
ᐸ__post_com...rray__.”a”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression162 + PgClassExpression163{{"PgClassExpression[163∈3]
ᐸ__post_com...rray__.”b”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression163 + PgClassExpression164{{"PgClassExpression[164∈3]
ᐸ__post_com...rray__.”c”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression164 + PgClassExpression165{{"PgClassExpression[165∈3]
ᐸ__post_com...rray__.”d”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression165 + PgClassExpression166{{"PgClassExpression[166∈3]
ᐸ__post_com...rray__.”e”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression166 + PgClassExpression167{{"PgClassExpression[167∈3]
ᐸ__post_com...rray__.”f”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression167 + PgClassExpression168{{"PgClassExpression[168∈3]
ᐸ__post_com...rray__.”g”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression168 + PgClassExpression172{{"PgClassExpression[172∈3]
ᐸ__post_com....”foo_bar”ᐳ"}}:::plan + PgSelectSingle161 --> PgClassExpression172 + __Item175[/"__Item[175∈4]
ᐸ174ᐳ"\]:::itemplan + PgClassExpression174 ==> __Item175 + __Item178[/"__Item[178∈5]
ᐸ177ᐳ"\]:::itemplan + PgClassExpression177 ==> __Item178 + __Item192[/"__Item[192∈6]
ᐸ191ᐳ"\]:::itemplan + PgSelectRows191 ==> __Item192 + PgSelectSingle193{{"PgSelectSingle[193∈6]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item192 --> PgSelectSingle193 + PgClassExpression194{{"PgClassExpression[194∈6]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle193 --> PgClassExpression194 + __Item204[/"__Item[204∈7]
ᐸ191ᐳ"\]:::itemplan + PgSelectRows191 -.-> __Item204 + PgSelectSingle205{{"PgSelectSingle[205∈7]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item204 --> PgSelectSingle205 + PgClassExpression206{{"PgClassExpression[206∈7]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle205 --> PgClassExpression206 + Edge210{{"Edge[210∈8]"}}:::plan + PgClassExpression209{{"PgClassExpression[209∈8]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgCursor212{{"PgCursor[212∈8]"}}:::plan + PgClassExpression209 & PgCursor212 & Connection189 --> Edge210 + PgSelectSingle208{{"PgSelectSingle[208∈8]
ᐸpost_computed_interval_setᐳ"}}:::plan + Access211{{"Access[211∈8]
ᐸ190.cursorDetailsᐳ"}}:::plan + PgSelectSingle208 & Access211 --> PgCursor212 + __Item207[/"__Item[207∈8]
ᐸ202ᐳ"\]:::itemplan + __ListTransform202 ==> __Item207 + __Item207 --> PgSelectSingle208 + PgSelectSingle208 --> PgClassExpression209 + PgSelect190 --> Access211 + PgSelect235[["PgSelect[235∈9]
ᐸperson_friendsᐳ"]]:::plan + PgClassExpression226{{"PgClassExpression[226∈9]
ᐸ__person__ᐳ"}}:::plan + Object11 & PgClassExpression226 & PgFromExpression233 & Connection234 --> PgSelect235 + PgSelect258[["PgSelect[258∈9]
ᐸperson_first_postᐳ"]]:::plan + Object11 & PgClassExpression226 & PgFromExpression260 --> PgSelect258 + __Item223[/"__Item[223∈9]
ᐸ222ᐳ"\]:::itemplan + PgSelectRows222 ==> __Item223 + PgSelectSingle224{{"PgSelectSingle[224∈9]
ᐸpersonᐳ"}}:::plan + __Item223 --> PgSelectSingle224 + PgClassExpression225{{"PgClassExpression[225∈9]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle224 --> PgClassExpression225 + PgSelectSingle224 --> PgClassExpression226 + PgClassExpression227{{"PgClassExpression[227∈9]
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan + PgSelectSingle224 --> PgClassExpression227 + PgSelectRows236[["PgSelectRows[236∈9]"]]:::plan + PgSelect235 --> PgSelectRows236 + First261{{"First[261∈9]"}}:::plan + PgSelectRows262[["PgSelectRows[262∈9]"]]:::plan + PgSelectRows262 --> First261 + PgSelect258 --> PgSelectRows262 + PgSelectSingle263{{"PgSelectSingle[263∈9]
ᐸperson_first_postᐳ"}}:::plan + First261 --> PgSelectSingle263 + PgClassExpression264{{"PgClassExpression[264∈9]
ᐸ__person_f...ost__.”id”ᐳ"}}:::plan PgSelectSingle263 --> PgClassExpression264 - PgClassExpression265{{"PgClassExpression[265∈35]
ᐸ__edge_cas...cast_easy”ᐳ"}}:::plan + PgClassExpression265{{"PgClassExpression[265∈9]
ᐸ__person_f...”headline”ᐳ"}}:::plan PgSelectSingle263 --> PgClassExpression265 - PgClassExpression267{{"PgClassExpression[267∈35]
ᐸ”c”.”edge_...ge_case__)ᐳ"}}:::plan - PgSelectSingle263 --> PgClassExpression267 - PgClassExpression277{{"PgClassExpression[277∈36] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression277 - PgClassExpression282{{"PgClassExpression[282∈36] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression282 - PgClassExpression286{{"PgClassExpression[286∈36] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression286 - PgClassExpression290{{"PgClassExpression[290∈36] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression290 - PgClassExpression295{{"PgClassExpression[295∈36] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression295 - PgClassExpression299{{"PgClassExpression[299∈36] ➊
ᐸ”c”.”perso...lder! */
)ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression299 + PgSelect250[["PgSelect[250∈10]
ᐸperson_friendsᐳ"]]:::plan + PgClassExpression240{{"PgClassExpression[240∈10]
ᐸ__person_friends__ᐳ"}}:::plan + Object11 & PgClassExpression240 & PgFromExpression248 & Connection249 & Constant326 --> PgSelect250 + __Item237[/"__Item[237∈10]
ᐸ236ᐳ"\]:::itemplan + PgSelectRows236 ==> __Item237 + PgSelectSingle238{{"PgSelectSingle[238∈10]
ᐸperson_friendsᐳ"}}:::plan + __Item237 --> PgSelectSingle238 + PgClassExpression239{{"PgClassExpression[239∈10]
ᐸ__person_f...full_name”ᐳ"}}:::plan + PgSelectSingle238 --> PgClassExpression239 + PgSelectSingle238 --> PgClassExpression240 + PgClassExpression241{{"PgClassExpression[241∈10]
ᐸ”c”.”perso...friends__)ᐳ"}}:::plan + PgSelectSingle238 --> PgClassExpression241 + PgSelectRows251[["PgSelectRows[251∈10]"]]:::plan + PgSelect250 --> PgSelectRows251 + __Item252[/"__Item[252∈11]
ᐸ251ᐳ"\]:::itemplan + PgSelectRows251 ==> __Item252 + PgSelectSingle253{{"PgSelectSingle[253∈11]
ᐸperson_friendsᐳ"}}:::plan + __Item252 --> PgSelectSingle253 + PgClassExpression254{{"PgClassExpression[254∈11]
ᐸ__person_f...full_name”ᐳ"}}:::plan + PgSelectSingle253 --> PgClassExpression254 + PgClassExpression256{{"PgClassExpression[256∈11]
ᐸ”c”.”perso...friends__)ᐳ"}}:::plan + PgSelectSingle253 --> PgClassExpression256 + __Item273[/"__Item[273∈12]
ᐸ272ᐳ"\]:::itemplan + PgSelectRows272 ==> __Item273 + PgSelectSingle274{{"PgSelectSingle[274∈12]
ᐸedge_caseᐳ"}}:::plan + __Item273 --> PgSelectSingle274 + PgClassExpression275{{"PgClassExpression[275∈12]
ᐸ__edge_cas...s_default”ᐳ"}}:::plan + PgSelectSingle274 --> PgClassExpression275 + PgClassExpression276{{"PgClassExpression[276∈12]
ᐸ__edge_cas...cast_easy”ᐳ"}}:::plan + PgSelectSingle274 --> PgClassExpression276 + PgClassExpression278{{"PgClassExpression[278∈12]
ᐸ”c”.”edge_...ge_case__)ᐳ"}}:::plan + PgSelectSingle274 --> PgClassExpression278 %% define steps subgraph "Buckets for queries/v4/procedure-computed-fields" - Bucket0("Bucket 0 (root)

1:
ᐳ: 10, 11, 13, 98, 123, 181, 212, 225, 259, 300, 301, 302, 309, 310, 311, 313, 12, 239
2: PgSelect[269]
3: PgSelectRows[272]
ᐳ: First[271], PgSelectSingle[273]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 23, 34, 41, 52, 63, 74, 81, 92, 188, 233, 248, 260, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 11, 12, 103, 111, 115, 120, 123, 127, 132, 136, 141, 149, 189, 219, 234, 249, 269, 288, 294, 299, 304, 309, 314, 143, 152, 158
2: 14, 105, 221, 271, 280
3: 15, 106, 222, 272, 283
ᐳ: 282, 284, 289, 295, 300, 305, 310, 315"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Connection98,Constant123,Connection181,Connection212,Connection225,Connection239,Connection259,PgSelect269,First271,PgSelectRows272,PgSelectSingle273,Constant300,Constant301,Constant302,Constant309,Constant310,Constant311,Constant313 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,PgFromExpression23,PgFromExpression34,PgFromExpression41,PgFromExpression52,PgFromExpression63,PgFromExpression74,PgFromExpression81,PgFromExpression92,Connection103,PgSelect105,PgSelectRows106,PgFromExpression111,PgFromExpression115,PgFromExpression120,PgFromExpression123,PgFromExpression127,PgFromExpression132,PgFromExpression136,PgFromExpression141,__InputObject143,__InputObject149,BakedInput152,PgFromExpression158,PgFromExpression188,Connection189,Connection219,PgSelect221,PgSelectRows222,PgFromExpression233,Connection234,PgFromExpression248,Connection249,PgFromExpression260,Connection269,PgSelect271,PgSelectRows272,PgSelect280,First282,PgSelectRows283,PgSelectSingle284,PgFromExpression288,PgClassExpression289,PgFromExpression294,PgClassExpression295,PgFromExpression299,PgClassExpression300,PgFromExpression304,PgClassExpression305,PgFromExpression309,PgClassExpression310,PgFromExpression314,PgClassExpression315,Constant316,Constant317,Constant318,Constant319,Constant320,Constant321,Constant322,Constant323,Constant324,Constant325,Constant326,Constant327 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 23, 34, 41, 52, 63, 74, 81, 92

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 18, 31, 60, 71
2: 19, 32, 61, 72
3: 25, 36, 65, 76
ᐳ: 24, 26, 27, 28, 30, 35, 37, 38, 49, 64, 66, 67, 68, 70, 75, 77, 78, 89
4: 39, 50, 79, 90
5: 43, 54, 83, 94
ᐳ: 42, 44, 45, 46, 48, 53, 55, 56, 57, 59, 82, 84, 85, 86, 88, 93, 95, 96, 97, 99"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 12

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgSelect19,First24,PgSelectRows25,PgSelectSingle26,PgClassExpression27,PgClassExpression28,PgClassExpression30,PgClassExpression31,PgSelect32,First35,PgSelectRows36,PgSelectSingle37,PgClassExpression38,PgSelect39,First42,PgSelectRows43,PgSelectSingle44,PgClassExpression45,PgClassExpression46,PgClassExpression48,PgClassExpression49,PgSelect50,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression56,PgClassExpression57,PgClassExpression59,PgClassExpression60,PgSelect61,First64,PgSelectRows65,PgSelectSingle66,PgClassExpression67,PgClassExpression68,PgClassExpression70,PgClassExpression71,PgSelect72,First75,PgSelectRows76,PgSelectSingle77,PgClassExpression78,PgSelect79,First82,PgSelectRows83,PgSelectSingle84,PgClassExpression85,PgClassExpression86,PgClassExpression88,PgClassExpression89,PgSelect90,First93,PgSelectRows94,PgSelectSingle95,PgClassExpression96,PgClassExpression97,PgClassExpression99 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11, 158, 188, 189, 6

ROOT __Item{2}ᐸ106ᐳ[107]
1:
ᐳ: 108, 109, 110, 112, 116, 121, 124, 128, 133, 137, 142, 174, 177
2: PgSelect[154], PgSelect[190]
3: PgSelectRows[159], PgSelectRows[191]
4: __ListTransform[202]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 12

ROOT PgSelectSingle{2}ᐸtypesᐳ[17]
1:
ᐳ: 18, 30, 56, 66
2: 19, 31, 57, 67
3: 24, 34, 60, 70
ᐳ: 23, 25, 26, 27, 29, 33, 35, 36, 46, 59, 61, 69, 71
4: PgSelect[37], PgSelect[47]
5: PgSelectRows[40], PgSelectRows[50]
ᐳ: 39, 41, 49, 51"):::bucket + class Bucket2,__Item107,PgSelectSingle108,PgClassExpression109,PgClassExpression110,PgClassExpression112,PgClassExpression116,PgClassExpression121,PgClassExpression124,PgClassExpression128,PgClassExpression133,PgClassExpression137,PgClassExpression142,PgSelect154,PgSelectRows159,PgClassExpression174,PgClassExpression177,PgSelect190,PgSelectRows191,__ListTransform202 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ159ᐳ[160]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgSelect19,First23,PgSelectRows24,PgSelectSingle25,PgClassExpression26,PgClassExpression27,PgClassExpression29,PgClassExpression30,PgSelect31,First33,PgSelectRows34,PgSelectSingle35,PgClassExpression36,PgSelect37,First39,PgSelectRows40,PgSelectSingle41,PgClassExpression46,PgSelect47,First49,PgSelectRows50,PgSelectSingle51,PgClassExpression56,PgSelect57,First59,PgSelectRows60,PgSelectSingle61,PgClassExpression66,PgSelect67,First69,PgSelectRows70,PgSelectSingle71 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 41

ROOT PgSelectSingle{3}ᐸfrmcdc_compoundTypeᐳ[41]"):::bucket + class Bucket3,__Item160,PgSelectSingle161,PgClassExpression162,PgClassExpression163,PgClassExpression164,PgClassExpression165,PgClassExpression166,PgClassExpression167,PgClassExpression168,PgClassExpression172 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ174ᐳ[175]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression42,PgClassExpression43,PgClassExpression45 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{3}ᐸfrmcdc_compoundTypeᐳ[51]"):::bucket + class Bucket4,__Item175 bucket4 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ177ᐳ[178]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression52,PgClassExpression53,PgClassExpression55 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 61

ROOT PgSelectSingle{3}ᐸfrmcdc_compoundTypeᐳ[61]"):::bucket + class Bucket5,__Item178 bucket5 + Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ191ᐳ[192]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression62,PgClassExpression63,PgClassExpression65 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 71, 12

ROOT PgSelectSingle{3}ᐸfrmcdc_nestedCompoundTypeᐳ[71]
1:
ᐳ: 72, 84
2: PgSelect[73], PgSelect[85]
3: PgSelectRows[78], PgSelectRows[88]
ᐳ: 77, 79, 87, 89"):::bucket + class Bucket6,__Item192,PgSelectSingle193,PgClassExpression194 bucket6 + Bucket7("Bucket 7 (subroutine)

ROOT PgClassExpression{7}ᐸ__post_com...al_set__.vᐳ[206]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression72,PgSelect73,First77,PgSelectRows78,PgSelectSingle79,PgClassExpression84,PgSelect85,First87,PgSelectRows88,PgSelectSingle89 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 79

ROOT PgSelectSingle{7}ᐸfrmcdc_compoundTypeᐳ[79]"):::bucket + class Bucket7,__Item204,PgSelectSingle205,PgClassExpression206 bucket7 + Bucket8("Bucket 8 (listItem)
Deps: 189, 190

ROOT __Item{8}ᐸ202ᐳ[207]"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression80,PgClassExpression81,PgClassExpression83 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 89

ROOT PgSelectSingle{7}ᐸfrmcdc_compoundTypeᐳ[89]"):::bucket + class Bucket8,__Item207,PgSelectSingle208,PgClassExpression209,Edge210,Access211,PgCursor212 bucket8 + Bucket9("Bucket 9 (listItem)
Deps: 11, 233, 234, 6, 260, 248, 249, 326

ROOT __Item{9}ᐸ222ᐳ[223]
1:
ᐳ: 224, 225, 226, 227
2: PgSelect[235], PgSelect[258]
3: PgSelectRows[236], PgSelectRows[262]
ᐳ: 261, 263, 264, 265"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression90,PgClassExpression91,PgClassExpression93 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 12, 98, 300, 301, 302, 123, 313, 181

ROOT Connectionᐸ96ᐳ[98]
1: PgSelect[99]
2: PgSelectRows[100]"):::bucket + class Bucket9,__Item223,PgSelectSingle224,PgClassExpression225,PgClassExpression226,PgClassExpression227,PgSelect235,PgSelectRows236,PgSelect258,First261,PgSelectRows262,PgSelectSingle263,PgClassExpression264,PgClassExpression265 bucket9 + Bucket10("Bucket 10 (listItem)
Deps: 11, 248, 249, 326, 6

ROOT __Item{10}ᐸ236ᐳ[237]
1:
ᐳ: 238, 239, 240, 241
2: PgSelect[250]
3: PgSelectRows[251]"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,PgSelect99,PgSelectRows100 bucket10 - Bucket11("Bucket 11 (listItem)
Deps: 12, 313, 181

ROOT __Item{11}ᐸ100ᐳ[101]"):::bucket + class Bucket10,__Item237,PgSelectSingle238,PgClassExpression239,PgClassExpression240,PgClassExpression241,PgSelect250,PgSelectRows251 bucket10 + Bucket11("Bucket 11 (listItem)

ROOT __Item{11}ᐸ251ᐳ[252]"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11,__Item101,PgSelectSingle102 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 102, 12, 313, 181

ROOT PgSelectSingle{11}ᐸpostᐳ[102]
1:
ᐳ: 103, 104, 105, 108, 112, 114, 117, 121, 125, 129, 167, 170
2: PgSelect[142], PgSelect[182]
3: PgSelectRows[147], PgSelectRows[183]
ᐳ: 146, 148, 149
4: PgSelect[150], __ListTransform[194]
5: PgSelectRows[152]"):::bucket + class Bucket11,__Item252,PgSelectSingle253,PgClassExpression254,PgClassExpression256 bucket11 + Bucket12("Bucket 12 (listItem)

ROOT __Item{12}ᐸ272ᐳ[273]"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12,PgClassExpression103,PgClassExpression104,PgClassExpression105,PgClassExpression108,PgClassExpression112,PgClassExpression114,PgClassExpression117,PgClassExpression121,PgClassExpression125,PgClassExpression129,PgSelect142,First146,PgSelectRows147,PgSelectSingle148,PgClassExpression149,PgSelect150,PgSelectRows152,PgClassExpression167,PgClassExpression170,PgSelect182,PgSelectRows183,__ListTransform194 bucket12 - Bucket13("Bucket 13 (listItem)

ROOT __Item{13}ᐸ152ᐳ[153]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,__Item153,PgSelectSingle154 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 154

ROOT PgSelectSingle{13}ᐸpost_computed_compound_type_arrayᐳ[154]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,PgClassExpression155,PgClassExpression156,PgClassExpression157,PgClassExpression158,PgClassExpression159,PgClassExpression160,PgClassExpression161,PgClassExpression165 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 161

ROOT PgClassExpression{14}ᐸ__post_com...rray__.”g”ᐳ[161]"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15 bucket15 - Bucket16("Bucket 16 (listItem)

ROOT __Item{16}ᐸ167ᐳ[168]"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16,__Item168 bucket16 - Bucket17("Bucket 17 (listItem)

ROOT __Item{17}ᐸ170ᐳ[171]"):::bucket - classDef bucket17 stroke:#696969 - class Bucket17,__Item171 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 171

ROOT __Item{17}ᐸ170ᐳ[171]"):::bucket - classDef bucket18 stroke:#00bfff - class Bucket18 bucket18 - Bucket19("Bucket 19 (listItem)

ROOT __Item{19}ᐸ183ᐳ[184]"):::bucket - classDef bucket19 stroke:#7f007f - class Bucket19,__Item184,PgSelectSingle185,PgClassExpression186 bucket19 - Bucket20("Bucket 20 (nullableBoundary)
Deps: 186

ROOT PgClassExpression{19}ᐸ__post_com...al_set__.vᐳ[186]"):::bucket - classDef bucket20 stroke:#ffa500 - class Bucket20 bucket20 - Bucket21("Bucket 21 (subroutine)

ROOT PgClassExpression{21}ᐸ__post_com...al_set__.vᐳ[198]"):::bucket - classDef bucket21 stroke:#0000ff - class Bucket21,__Item196,PgSelectSingle197,PgClassExpression198 bucket21 - Bucket22("Bucket 22 (listItem)
Deps: 181, 182

ROOT __Item{22}ᐸ194ᐳ[199]"):::bucket - classDef bucket22 stroke:#7fff00 - class Bucket22,__Item199,PgSelectSingle200,PgClassExpression201,Edge202,Access203,PgCursor204 bucket22 - Bucket23("Bucket 23 (nullableBoundary)
Deps: 202, 201, 204

ROOT Edge{22}[202]"):::bucket - classDef bucket23 stroke:#ff1493 - class Bucket23 bucket23 - Bucket24("Bucket 24 (nullableBoundary)
Deps: 201

ROOT PgClassExpression{22}ᐸ__post_com...al_set__.vᐳ[201]"):::bucket - classDef bucket24 stroke:#808000 - class Bucket24 bucket24 - Bucket25("Bucket 25 (nullableBoundary)
Deps: 12, 212, 225, 239, 310

ROOT Connectionᐸ210ᐳ[212]
1: PgSelect[213]
2: PgSelectRows[214]"):::bucket - classDef bucket25 stroke:#dda0dd - class Bucket25,PgSelect213,PgSelectRows214 bucket25 - Bucket26("Bucket 26 (listItem)
Deps: 12, 225, 239, 310

ROOT __Item{26}ᐸ214ᐳ[215]"):::bucket - classDef bucket26 stroke:#ff0000 - class Bucket26,__Item215,PgSelectSingle216 bucket26 - Bucket27("Bucket 27 (nullableBoundary)
Deps: 216, 12, 225, 239, 310

ROOT PgSelectSingle{26}ᐸpersonᐳ[216]
1:
ᐳ: 217, 218, 219
2: PgSelect[226], PgSelect[248]
3: PgSelectRows[227], PgSelectRows[251]
ᐳ: First[250], PgSelectSingle[252]"):::bucket - classDef bucket27 stroke:#ffff00 - class Bucket27,PgClassExpression217,PgClassExpression218,PgClassExpression219,PgSelect226,PgSelectRows227,PgSelect248,First250,PgSelectRows251,PgSelectSingle252 bucket27 - Bucket28("Bucket 28 (listItem)
Deps: 12, 239, 310

ROOT __Item{28}ᐸ227ᐳ[228]"):::bucket - classDef bucket28 stroke:#00ffff - class Bucket28,__Item228,PgSelectSingle229 bucket28 - Bucket29("Bucket 29 (nullableBoundary)
Deps: 229, 12, 239, 310

ROOT PgSelectSingle{28}ᐸperson_friendsᐳ[229]
1:
ᐳ: 230, 231, 232
2: PgSelect[240]
3: PgSelectRows[241]"):::bucket - classDef bucket29 stroke:#4169e1 - class Bucket29,PgClassExpression230,PgClassExpression231,PgClassExpression232,PgSelect240,PgSelectRows241 bucket29 - Bucket30("Bucket 30 (listItem)

ROOT __Item{30}ᐸ241ᐳ[242]"):::bucket - classDef bucket30 stroke:#3cb371 - class Bucket30,__Item242,PgSelectSingle243 bucket30 - Bucket31("Bucket 31 (nullableBoundary)
Deps: 243

ROOT PgSelectSingle{30}ᐸperson_friendsᐳ[243]"):::bucket - classDef bucket31 stroke:#a52a2a - class Bucket31,PgClassExpression244,PgClassExpression246 bucket31 - Bucket32("Bucket 32 (nullableBoundary)
Deps: 252

ROOT PgSelectSingle{27}ᐸperson_first_postᐳ[252]"):::bucket - classDef bucket32 stroke:#ff00ff - class Bucket32,PgClassExpression253,PgClassExpression254 bucket32 - Bucket33("Bucket 33 (nullableBoundary)
Deps: 12, 259

ROOT Connectionᐸ257ᐳ[259]
1: PgSelect[260]
2: PgSelectRows[261]"):::bucket - classDef bucket33 stroke:#f5deb3 - class Bucket33,PgSelect260,PgSelectRows261 bucket33 - Bucket34("Bucket 34 (listItem)

ROOT __Item{34}ᐸ261ᐳ[262]"):::bucket - classDef bucket34 stroke:#696969 - class Bucket34,__Item262,PgSelectSingle263 bucket34 - Bucket35("Bucket 35 (nullableBoundary)
Deps: 263

ROOT PgSelectSingle{34}ᐸedge_caseᐳ[263]"):::bucket - classDef bucket35 stroke:#00bfff - class Bucket35,PgClassExpression264,PgClassExpression265,PgClassExpression267 bucket35 - Bucket36("Bucket 36 (nullableBoundary)
Deps: 273

ROOT PgSelectSingleᐸpersonᐳ[273]"):::bucket - classDef bucket36 stroke:#7f007f - class Bucket36,PgClassExpression277,PgClassExpression282,PgClassExpression286,PgClassExpression290,PgClassExpression295,PgClassExpression299 bucket36 - Bucket0 --> Bucket1 & Bucket10 & Bucket25 & Bucket33 & Bucket36 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 & Bucket6 & Bucket7 - Bucket7 --> Bucket8 & Bucket9 + class Bucket12,__Item273,PgSelectSingle274,PgClassExpression275,PgClassExpression276,PgClassExpression278 bucket12 + Bucket0 --> Bucket1 & Bucket2 & Bucket9 & Bucket12 + Bucket2 --> Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 + Bucket9 --> Bucket10 Bucket10 --> Bucket11 - Bucket11 --> Bucket12 - Bucket12 --> Bucket13 & Bucket16 & Bucket17 & Bucket19 & Bucket21 & Bucket22 - Bucket13 --> Bucket14 - Bucket14 --> Bucket15 - Bucket17 --> Bucket18 - Bucket19 --> Bucket20 - Bucket22 --> Bucket23 - Bucket23 --> Bucket24 - Bucket25 --> Bucket26 - Bucket26 --> Bucket27 - Bucket27 --> Bucket28 & Bucket32 - Bucket28 --> Bucket29 - Bucket29 --> Bucket30 - Bucket30 --> Bucket31 - Bucket33 --> Bucket34 - Bucket34 --> Bucket35 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields.sql b/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields.sql index d4a5b4fe23..0d5168679f 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/procedure-computed-fields.sql @@ -1,43 +1,3 @@ -select - ("c"."person_optional_missing_middle_1"( - __person__, - $1::"int4", - "c" := $2::"int4" - ))::text as "0", - ("c"."person_optional_missing_middle_1"( - __person__, - $3::"int4", - $4::"int4", - $5::"int4" - ))::text as "1", - ("c"."person_optional_missing_middle_2"( - __person__, - $6::"int4", - "c" := $7::"int4" - ))::text as "2", - ("c"."person_optional_missing_middle_3"( - __person__, - $8::"int4", - "c" := $9::"int4" - ))::text as "3", - ("c"."person_optional_missing_middle_4"( - __person__, - $10::"int4", - $11::"int4", - $12::"int4" - ))::text as "4", - ("c"."person_optional_missing_middle_5"( - __person__, - $13::"int4", - $14::"int4", - $15::"int4" - ))::text as "5", - __person__."id"::text as "6" -from "c"."person" as __person__ -where ( - __person__."id" = $16::"int4" -); - select case when (__types__."compound_type") is not distinct from null then null::text else json_build_array((((__types__."compound_type")."a"))::text, ((__types__."compound_type")."b"), (((__types__."compound_type")."c"))::text, ((__types__."compound_type")."d"), (((__types__."compound_type")."e"))::text, (((__types__."compound_type")."f"))::text, to_char(((__types__."compound_type")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__types__."compound_type")."foo_bar"))::text)::text end as "0", case when (__types__."nested_compound_type") is not distinct from null then null::text else json_build_array(case when (((__types__."nested_compound_type")."a")) is not distinct from null then null::text else json_build_array((((((__types__."nested_compound_type")."a"))."a"))::text, ((((__types__."nested_compound_type")."a"))."b"), (((((__types__."nested_compound_type")."a"))."c"))::text, ((((__types__."nested_compound_type")."a"))."d"), (((((__types__."nested_compound_type")."a"))."e"))::text, (((((__types__."nested_compound_type")."a"))."f"))::text, to_char(((((__types__."nested_compound_type")."a"))."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((((__types__."nested_compound_type")."a"))."foo_bar"))::text)::text end, case when (((__types__."nested_compound_type")."b")) is not distinct from null then null::text else json_build_array((((((__types__."nested_compound_type")."b"))."a"))::text, ((((__types__."nested_compound_type")."b"))."b"), (((((__types__."nested_compound_type")."b"))."c"))::text, ((((__types__."nested_compound_type")."b"))."d"), (((((__types__."nested_compound_type")."b"))."e"))::text, (((((__types__."nested_compound_type")."b"))."f"))::text, to_char(((((__types__."nested_compound_type")."b"))."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((((__types__."nested_compound_type")."b"))."foo_bar"))::text)::text end, (((__types__."nested_compound_type")."baz_buz"))::text)::text end as "1", @@ -103,6 +63,46 @@ select "c"."edge_case_computed"(__edge_case__) as "2" from "c"."edge_case" as __edge_case__; +select + ("c"."person_optional_missing_middle_1"( + __person__, + $1::"int4", + "c" := $2::"int4" + ))::text as "0", + ("c"."person_optional_missing_middle_1"( + __person__, + $3::"int4", + $4::"int4", + $5::"int4" + ))::text as "1", + ("c"."person_optional_missing_middle_2"( + __person__, + $6::"int4", + "c" := $7::"int4" + ))::text as "2", + ("c"."person_optional_missing_middle_3"( + __person__, + $8::"int4", + "c" := $9::"int4" + ))::text as "3", + ("c"."person_optional_missing_middle_4"( + __person__, + $10::"int4", + $11::"int4", + $12::"int4" + ))::text as "4", + ("c"."person_optional_missing_middle_5"( + __person__, + $13::"int4", + $14::"int4", + $15::"int4" + ))::text as "5", + __person__."id"::text as "6" +from "c"."person" as __person__ +where ( + __person__."id" = $16::"int4" +); + select __frmcdc_compound_type_result__.* from (select ids.ordinality - 1 as idx, (ids.value->>0)::"c"."compound_type" as "id0" from json_array_elements($1::json) with ordinality as ids) as __frmcdc_compound_type_identifiers__, lateral ( @@ -149,18 +149,25 @@ lateral ( from (select (__frmcdc_nested_compound_type_identifiers__."id0").*) as __frmcdc_nested_compound_type__ ) as __frmcdc_nested_compound_type_result__; -select __post_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"a"."post" as "id0" from json_array_elements($1::json) with ordinality as ids) as __post_identifiers__, +select __post_computed_compound_type_array_result__.* +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"a"."post" as "id0" from json_array_elements($2::json) with ordinality as ids) as __post_computed_compound_type_array_identifiers__, lateral ( select - case when (__post__) is not distinct from null then null::text else json_build_array((((__post__)."id"))::text, ((__post__)."headline"), ((__post__)."body"), (((__post__)."author_id"))::text, (((__post__)."enums"))::text, (case when (((__post__)."comptypes")) is not distinct from null then null::text else array( - select case when (__comptype__) is not distinct from null then null::text else json_build_array(to_char(((__comptype__)."schedule"), 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text), (((__comptype__)."is_optimised"))::text)::text end - from unnest(((__post__)."comptypes")) __comptype__ - )::text end))::text end as "0", - __post__."id"::text as "1", - __post_identifiers__.idx as "2" - from (select (__post_identifiers__."id0").*) as __post__ -) as __post_result__; + __post_computed_compound_type_array__."a"::text as "0", + __post_computed_compound_type_array__."b" as "1", + __post_computed_compound_type_array__."c"::text as "2", + __post_computed_compound_type_array__."d" as "3", + __post_computed_compound_type_array__."e"::text as "4", + __post_computed_compound_type_array__."f"::text as "5", + to_char(__post_computed_compound_type_array__."g", 'YYYY_MM_DD_HH24_MI_SS.US'::text) as "6", + __post_computed_compound_type_array__."foo_bar"::text as "7", + (not (__post_computed_compound_type_array__ is null))::text as "8", + __post_computed_compound_type_array_identifiers__.idx as "9" + from unnest("a"."post_computed_compound_type_array"( + __post_computed_compound_type_array_identifiers__."id0", + $1::"c"."compound_type" + )) as __post_computed_compound_type_array__ +) as __post_computed_compound_type_array_result__; select __post_computed_interval_set_result__.* from (select ids.ordinality - 1 as idx, (ids.value->>0)::"a"."post" as "id0" from json_array_elements($1::json) with ordinality as ids) as __post_computed_interval_set_identifiers__, @@ -217,26 +224,6 @@ lateral ( from (select (__frmcdc_compound_type_identifiers__."id0").*) as __frmcdc_compound_type__ ) as __frmcdc_compound_type_result__; -select __post_computed_compound_type_array_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"a"."post" as "id0" from json_array_elements($2::json) with ordinality as ids) as __post_computed_compound_type_array_identifiers__, -lateral ( - select - __post_computed_compound_type_array__."a"::text as "0", - __post_computed_compound_type_array__."b" as "1", - __post_computed_compound_type_array__."c"::text as "2", - __post_computed_compound_type_array__."d" as "3", - __post_computed_compound_type_array__."e"::text as "4", - __post_computed_compound_type_array__."f"::text as "5", - to_char(__post_computed_compound_type_array__."g", 'YYYY_MM_DD_HH24_MI_SS.US'::text) as "6", - __post_computed_compound_type_array__."foo_bar"::text as "7", - (not (__post_computed_compound_type_array__ is null))::text as "8", - __post_computed_compound_type_array_identifiers__.idx as "9" - from unnest("a"."post_computed_compound_type_array"( - __post_computed_compound_type_array_identifiers__."id0", - $1::"c"."compound_type" - )) as __post_computed_compound_type_array__ -) as __post_computed_compound_type_array_result__; - select __person_friends_result__.* from (select ids.ordinality - 1 as idx, (ids.value->>0)::"c"."person" as "id0" from json_array_elements($1::json) with ordinality as ids) as __person_friends_identifiers__, lateral ( diff --git a/postgraphile/postgraphile/__tests__/queries/v4/procedure-query.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/procedure-query.mermaid index 527d8993f6..ee79f22828 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/procedure-query.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/procedure-query.mermaid @@ -9,1684 +9,1533 @@ graph TD %% plan dependencies - PgSelect137[["PgSelect[137∈0] ➊
ᐸtypes_queryᐳ"]]:::plan + __InputObject165{{"__InputObject[165∈0] ➊"}}:::plan + Constant1047{{"Constant[1047∈0] ➊
ᐸ419ᐳ"}}:::plan + Constant1048{{"Constant[1048∈0] ➊
ᐸ'easy cheesy baked potatoes'ᐳ"}}:::plan + Constant1049{{"Constant[1049∈0] ➊
ᐸ'red'ᐳ"}}:::plan + Constant1050{{"Constant[1050∈0] ➊
ᐸ'BAR_FOO'ᐳ"}}:::plan + Constant1045{{"Constant[1045∈0] ➊
ᐸ''ᐳ"}}:::plan + __InputObject171{{"__InputObject[171∈0] ➊"}}:::plan + Constant1040{{"Constant[1040∈0] ➊
ᐸ8ᐳ"}}:::plan + Constant1047 & Constant1048 & Constant1049 & Constant1050 & Constant1045 & __InputObject171 & Constant1040 --> __InputObject165 + __InputObject241{{"__InputObject[241∈0] ➊"}}:::plan + __InputObject247{{"__InputObject[247∈0] ➊"}}:::plan + Constant1047 & Constant1048 & Constant1049 & Constant1050 & Constant1045 & __InputObject247 & Constant1040 --> __InputObject241 + __InputObject949{{"__InputObject[949∈0] ➊"}}:::plan + __InputObject955{{"__InputObject[955∈0] ➊"}}:::plan + Constant1047 & Constant1048 & Constant1049 & Constant1050 & Constant1045 & __InputObject955 & Constant1040 --> __InputObject949 + PgSelect403[["PgSelect[403∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant1050{{"Constant[1050∈0] ➊
ᐸ'50'ᐳ"}}:::plan - Constant1051{{"Constant[1051∈0] ➊
ᐸfalseᐳ"}}:::plan - Constant1052{{"Constant[1052∈0] ➊
ᐸ'xyz'ᐳ"}}:::plan - Constant1072{{"Constant[1072∈0] ➊
ᐸ[ 1, 2, 3 ]ᐳ"}}:::plan - Constant1053{{"Constant[1053∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan - Constant1077{{"Constant[1077∈0] ➊
ᐸ§{ start: §{ value: 1, inclusive: false }, end: §{ value: 5,ᐳ"}}:::plan - Object10 & Constant1050 & Constant1051 & Constant1052 & Constant1072 & Constant1053 & Constant1077 --> PgSelect137 - PgSelect153[["PgSelect[153∈0] ➊
ᐸtypes_queryᐳ"]]:::plan - Constant1054{{"Constant[1054∈0] ➊
ᐸ''ᐳ"}}:::plan - Constant1056{{"Constant[1056∈0] ➊
ᐸ[]ᐳ"}}:::plan - Constant1055{{"Constant[1055∈0] ➊
ᐸ{}ᐳ"}}:::plan - Constant1075{{"Constant[1075∈0] ➊
ᐸ§{ start: §{ value: undefined, inclusive: undefined }, end: ᐳ"}}:::plan - Object10 & Constant1050 & Constant1051 & Constant1054 & Constant1056 & Constant1055 & Constant1075 --> PgSelect153 - PgSelect80[["PgSelect[80∈0] ➊
ᐸoptional_missing_middle_1ᐳ"]]:::plan - Constant1043{{"Constant[1043∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant1049{{"Constant[1049∈0] ➊
ᐸ8ᐳ"}}:::plan - Constant1048{{"Constant[1048∈0] ➊
ᐸ7ᐳ"}}:::plan - Object10 & Constant1043 & Constant1049 & Constant1048 --> PgSelect80 - PgSelect104[["PgSelect[104∈0] ➊
ᐸoptional_missing_middle_4ᐳ"]]:::plan - Constant54{{"Constant[54∈0] ➊
ᐸnullᐳ"}}:::plan - Object10 & Constant1043 & Constant54 & Constant1048 --> PgSelect104 - PgSelect112[["PgSelect[112∈0] ➊
ᐸoptional_missing_middle_5ᐳ"]]:::plan - Object10 & Constant1043 & Constant54 & Constant1048 --> PgSelect112 - PgSelect38[["PgSelect[38∈0] ➊
ᐸadd_1_queryᐳ"]]:::plan - Constant1044{{"Constant[1044∈0] ➊
ᐸ2ᐳ"}}:::plan - Object10 & Constant1043 & Constant1044 --> PgSelect38 - PgSelect46[["PgSelect[46∈0] ➊
ᐸadd_2_queryᐳ"]]:::plan - Object10 & Constant1044 & Constant1044 --> PgSelect46 - PgSelect55[["PgSelect[55∈0] ➊
ᐸadd_3_queryᐳ"]]:::plan - Constant1046{{"Constant[1046∈0] ➊
ᐸ5ᐳ"}}:::plan - Object10 & Constant54 & Constant1046 --> PgSelect55 - PgSelect63[["PgSelect[63∈0] ➊
ᐸadd_4_queryᐳ"]]:::plan - Constant1047{{"Constant[1047∈0] ➊
ᐸ3ᐳ"}}:::plan - Object10 & Constant1043 & Constant1047 --> PgSelect63 - PgSelect71[["PgSelect[71∈0] ➊
ᐸoptional_missing_middle_1ᐳ"]]:::plan - Object10 & Constant1043 & Constant1048 --> PgSelect71 - PgSelect88[["PgSelect[88∈0] ➊
ᐸoptional_missing_middle_2ᐳ"]]:::plan - Object10 & Constant1043 & Constant1048 --> PgSelect88 - PgSelect96[["PgSelect[96∈0] ➊
ᐸoptional_missing_middle_3ᐳ"]]:::plan - Object10 & Constant1043 & Constant1048 --> PgSelect96 - Connection795{{"Connection[795∈0] ➊
ᐸ793ᐳ"}}:::plan - Lambda755{{"Lambda[755∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant1044 & Constant1043 & Lambda755 --> Connection795 + Connection400{{"Connection[400∈0] ➊
ᐸ398ᐳ"}}:::plan + Lambda401{{"Lambda[401∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Lambda402{{"Lambda[402∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect403 + Connection400 & Lambda401 & Lambda402 --> PgSelect403 + PgSelect443[["PgSelect[443∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan + Connection440{{"Connection[440∈0] ➊
ᐸ438ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect443 + Connection440 & Lambda401 & Lambda402 --> PgSelect443 + PgFromExpression146{{"PgFromExpression[146∈0] ➊"}}:::plan + Constant1041{{"Constant[1041∈0] ➊
ᐸ'50'ᐳ"}}:::plan + Constant1042{{"Constant[1042∈0] ➊
ᐸfalseᐳ"}}:::plan + Constant1043{{"Constant[1043∈0] ➊
ᐸ'xyz'ᐳ"}}:::plan + BakedInput143{{"BakedInput[143∈0] ➊"}}:::plan + Constant1044{{"Constant[1044∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan + __InputObject136{{"__InputObject[136∈0] ➊"}}:::plan + Constant1041 & Constant1042 & Constant1043 & BakedInput143 & Constant1044 & __InputObject136 --> PgFromExpression146 + PgFromExpression160{{"PgFromExpression[160∈0] ➊"}}:::plan + BakedInput157{{"BakedInput[157∈0] ➊"}}:::plan + Constant1046{{"Constant[1046∈0] ➊
ᐸ{}ᐳ"}}:::plan + __InputObject156{{"__InputObject[156∈0] ➊"}}:::plan + Constant1041 & Constant1042 & Constant1045 & BakedInput157 & Constant1046 & __InputObject156 --> PgFromExpression160 + PgSelect363[["PgSelect[363∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan + ApplyInput362{{"ApplyInput[362∈0] ➊"}}:::plan + Connection361{{"Connection[361∈0] ➊
ᐸ359ᐳ"}}:::plan + ApplyInput362 -->|rejectNull| PgSelect363 + Object10 & Connection361 --> PgSelect363 + PgSelect482[["PgSelect[482∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan + Connection480{{"Connection[480∈0] ➊
ᐸ478ᐳ"}}:::plan + Constant1036{{"Constant[1036∈0] ➊
ᐸ2ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect482 + Connection480 & Lambda401 & Constant1036 --> PgSelect482 + PgSelect521[["PgSelect[521∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan + Connection519{{"Connection[519∈0] ➊
ᐸ517ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect521 + Connection519 & Lambda401 & Constant1036 --> PgSelect521 + PgSelect560[["PgSelect[560∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan + Connection558{{"Connection[558∈0] ➊
ᐸ556ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect560 + Connection558 & Lambda402 & Constant1036 --> PgSelect560 + PgSelect751[["PgSelect[751∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan + Connection749{{"Connection[749∈0] ➊
ᐸ747ᐳ"}}:::plan + Lambda750{{"Lambda[750∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect751 + Connection749 & Lambda750 & Constant1036 --> PgSelect751 + PgSelect791[["PgSelect[791∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan + Connection789{{"Connection[789∈0] ➊
ᐸ787ᐳ"}}:::plan + Constant1035{{"Constant[1035∈0] ➊
ᐸ1ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect791 + Connection789 & Lambda750 & Constant1036 & Constant1035 --> PgSelect791 + PgSelect867[["PgSelect[867∈0] ➊
ᐸtable_set_query_plpgsql+1ᐳ"]]:::plan + Connection865{{"Connection[865∈0] ➊
ᐸ863ᐳ"}}:::plan + Lambda866{{"Lambda[866∈0] ➊
ᐸparseCursorᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect867 + Connection865 & Lambda866 & Constant1036 --> PgSelect867 + PgSelect906[["PgSelect[906∈0] ➊
ᐸint_set_queryᐳ"]]:::plan + PgFromExpression904{{"PgFromExpression[904∈0] ➊"}}:::plan + Connection905{{"Connection[905∈0] ➊
ᐸ902ᐳ"}}:::plan + PgFromExpression904 -->|rejectNull| PgSelect906 + Object10 & Connection905 --> PgSelect906 + PgSelect198[["PgSelect[198∈0] ➊
ᐸcompound_type_set_query+1ᐳ"]]:::plan + Connection197{{"Connection[197∈0] ➊
ᐸ195ᐳ"}}:::plan + Constant1037{{"Constant[1037∈0] ➊
ᐸ5ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect198 + Connection197 & Constant1037 --> PgSelect198 + PgSelect286[["PgSelect[286∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan + Connection285{{"Connection[285∈0] ➊
ᐸ283ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect286 + Connection285 --> PgSelect286 + PgSelect324[["PgSelect[324∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan + Connection322{{"Connection[322∈0] ➊
ᐸ320ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect324 + Connection322 --> PgSelect324 + Lambda401 & Lambda402 --> Connection400 + Lambda401 & Lambda402 --> Connection440 + PgSelect598[["PgSelect[598∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan + Connection597{{"Connection[597∈0] ➊
ᐸ595ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect598 + Connection597 --> PgSelect598 + Constant1036 -- 2 --> PgSelect598 + PgSelect636[["PgSelect[636∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan + Connection635{{"Connection[635∈0] ➊
ᐸ633ᐳ"}}:::plan + Constant1055{{"Constant[1055∈0] ➊
ᐸ4ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect636 + Connection635 & Constant1036 & Constant1055 --> PgSelect636 + PgSelect674[["PgSelect[674∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan + Connection673{{"Connection[673∈0] ➊
ᐸ671ᐳ"}}:::plan + Constant1056{{"Constant[1056∈0] ➊
ᐸ0ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect674 + Connection673 & Constant1036 & Constant1056 --> PgSelect674 + PgSelect712[["PgSelect[712∈0] ➊
ᐸtable_set_query+1ᐳ"]]:::plan + Connection711{{"Connection[711∈0] ➊
ᐸ709ᐳ"}}:::plan + Constant1057{{"Constant[1057∈0] ➊
ᐸ6ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect712 + Connection711 & Constant1057 & Constant1056 --> PgSelect712 + PgSelect828[["PgSelect[828∈0] ➊
ᐸtable_set_query_plpgsql+1ᐳ"]]:::plan + Connection827{{"Connection[827∈0] ➊
ᐸ825ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect828 + Connection827 & Constant1036 --> PgSelect828 + PgSelect932[["PgSelect[932∈0] ➊
ᐸstatic_big_integerᐳ"]]:::plan + Connection931{{"Connection[931∈0] ➊
ᐸ929ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect932 + Connection931 --> PgSelect932 + PgSelect999[["PgSelect[999∈0] ➊
ᐸquery_interval_setᐳ"]]:::plan + Connection998{{"Connection[998∈0] ➊
ᐸ996ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect999 + Connection998 --> PgSelect999 + Constant1051{{"Constant[1051∈0] ➊
ᐸ12ᐳ"}}:::plan + Constant1038{{"Constant[1038∈0] ➊
ᐸ3ᐳ"}}:::plan + Constant1051 & Constant1038 & Constant1036 --> __InputObject171 + Object239{{"Object[239∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access234{{"Access[234∈0] ➊
ᐸ198.hasMoreᐳ"}}:::plan + Constant1037 & Access234 --> Object239 + Constant1051 & Constant1038 & Constant1036 --> __InputObject247 + Object317{{"Object[317∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access312{{"Access[312∈0] ➊
ᐸ286.hasMoreᐳ"}}:::plan + Access312 --> Object317 + Object355{{"Object[355∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access350{{"Access[350∈0] ➊
ᐸ324.hasMoreᐳ"}}:::plan + Access350 --> Object355 + Object394{{"Object[394∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access389{{"Access[389∈0] ➊
ᐸ363.hasMoreᐳ"}}:::plan + Access389 --> Object394 + Object434{{"Object[434∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access429{{"Access[429∈0] ➊
ᐸ403.hasMoreᐳ"}}:::plan + Access429 --> Object434 + Object474{{"Object[474∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access469{{"Access[469∈0] ➊
ᐸ443.hasMoreᐳ"}}:::plan + Access469 --> Object474 + Constant1036 & Lambda401 --> Connection480 + Object513{{"Object[513∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access508{{"Access[508∈0] ➊
ᐸ482.hasMoreᐳ"}}:::plan + Constant1036 & Access508 --> Object513 + Constant1036 & Lambda401 --> Connection519 + Object552{{"Object[552∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access547{{"Access[547∈0] ➊
ᐸ521.hasMoreᐳ"}}:::plan + Constant1036 & Access547 --> Object552 + Constant1036 & Lambda402 --> Connection558 + Object591{{"Object[591∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access586{{"Access[586∈0] ➊
ᐸ560.hasMoreᐳ"}}:::plan + Constant1036 & Access586 --> Object591 + Object629{{"Object[629∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access624{{"Access[624∈0] ➊
ᐸ598.hasMoreᐳ"}}:::plan + Access624 --> Object629 + Constant1036 -- 2 --> Object629 + Object667{{"Object[667∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access662{{"Access[662∈0] ➊
ᐸ636.hasMoreᐳ"}}:::plan + Constant1036 & Constant1055 & Access662 --> Object667 + Object705{{"Object[705∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access700{{"Access[700∈0] ➊
ᐸ674.hasMoreᐳ"}}:::plan + Constant1036 & Constant1056 & Access700 --> Object705 + Object743{{"Object[743∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access738{{"Access[738∈0] ➊
ᐸ712.hasMoreᐳ"}}:::plan + Constant1057 & Constant1056 & Access738 --> Object743 + Constant1036 & Lambda750 --> Connection749 + Object782{{"Object[782∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access777{{"Access[777∈0] ➊
ᐸ751.hasMoreᐳ"}}:::plan + Constant1036 & Access777 --> Object782 + Constant1036 & Constant1035 & Lambda750 --> Connection789 + Object822{{"Object[822∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access817{{"Access[817∈0] ➊
ᐸ791.hasMoreᐳ"}}:::plan + Constant1036 & Constant1035 & Access817 --> Object822 + Object859{{"Object[859∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access854{{"Access[854∈0] ➊
ᐸ828.hasMoreᐳ"}}:::plan + Constant1036 & Access854 --> Object859 + Constant1036 & Lambda866 --> Connection865 + Object898{{"Object[898∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access893{{"Access[893∈0] ➊
ᐸ867.hasMoreᐳ"}}:::plan + Constant1036 & Access893 --> Object898 + PgFromExpression80{{"PgFromExpression[80∈0] ➊"}}:::plan + Constant1039{{"Constant[1039∈0] ➊
ᐸ7ᐳ"}}:::plan + Constant1035 & Constant1039 --> PgFromExpression80 + PgFromExpression90{{"PgFromExpression[90∈0] ➊"}}:::plan + Constant1035 & Constant1040 & Constant1039 --> PgFromExpression90 + PgFromExpression99{{"PgFromExpression[99∈0] ➊"}}:::plan + Constant1035 & Constant1039 --> PgFromExpression99 + PgFromExpression108{{"PgFromExpression[108∈0] ➊"}}:::plan + Constant1035 & Constant1039 --> PgFromExpression108 + PgFromExpression117{{"PgFromExpression[117∈0] ➊"}}:::plan + Constant1035 & Constant1039 --> PgFromExpression117 + PgFromExpression126{{"PgFromExpression[126∈0] ➊"}}:::plan + Constant1035 & Constant1039 --> PgFromExpression126 + Constant1037 --> Connection197 + Object235{{"Object[235∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1037 & Access234 --> Object235 + Object313{{"Object[313∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access312 --> Object313 + Object351{{"Object[351∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access350 --> Object351 + Object390{{"Object[390∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access389 --> Object390 + Object430{{"Object[430∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access429 --> Object430 + Object470{{"Object[470∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access469 --> Object470 + Object509{{"Object[509∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1036 & Access508 --> Object509 + Object548{{"Object[548∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1036 & Access547 --> Object548 + Object587{{"Object[587∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1036 & Access586 --> Object587 + Constant1036 -- 2 --> Connection597 + Object625{{"Object[625∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1036 & Access624 --> Object625 + Constant1036 & Constant1055 --> Connection635 + Object663{{"Object[663∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1036 & Access662 --> Object663 + Constant1036 & Constant1056 --> Connection673 + Object701{{"Object[701∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1036 & Access700 --> Object701 + Constant1057 & Constant1056 --> Connection711 + Object739{{"Object[739∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1057 & Access738 --> Object739 + Object778{{"Object[778∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1036 & Access777 --> Object778 + Object818{{"Object[818∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1036 & Access817 --> Object818 + Constant1036 --> Connection827 + Object855{{"Object[855∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1036 & Access854 --> Object855 + Object894{{"Object[894∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Constant1036 & Access893 --> Object894 + Constant1037 & Constant1057 --> PgFromExpression904 + PgSelect918[["PgSelect[918∈0] ➊
ᐸint_set_query(aggregate)ᐳ"]]:::plan + PgFromExpression904 -->|rejectNull| PgSelect918 + Object10 & Connection905 --> PgSelect918 PgSelect7[["PgSelect[7∈0] ➊
ᐸjson_identityᐳ"]]:::plan - Constant1039{{"Constant[1039∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan - Object10 & Constant1039 --> PgSelect7 + PgFromExpression11{{"PgFromExpression[11∈0] ➊"}}:::plan + Object10 & PgFromExpression11 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 - PgSelect16[["PgSelect[16∈0] ➊
ᐸjsonb_identityᐳ"]]:::plan - Constant1040{{"Constant[1040∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan - Object10 & Constant1040 --> PgSelect16 - PgSelect23[["PgSelect[23∈0] ➊
ᐸjson_identityᐳ"]]:::plan - Constant1041{{"Constant[1041∈0] ➊
ᐸ[ { amount: '44' }, { amount: null } ]ᐳ"}}:::plan - Object10 & Constant1041 --> PgSelect23 - PgSelect30[["PgSelect[30∈0] ➊
ᐸjsonb_identityᐳ"]]:::plan - Constant1042{{"Constant[1042∈0] ➊
ᐸ[ { amount: '44' }, { amount: null } ]ᐳ"}}:::plan - Object10 & Constant1042 --> PgSelect30 - PgSelect172[["PgSelect[172∈0] ➊
ᐸcompound_type_queryᐳ"]]:::plan - Constant1076{{"Constant[1076∈0] ➊
ᐸ§{ a: 419, b: 'easy cheesy baked potatoes', c: 'red', e: 'BAᐳ"}}:::plan - Object10 & Constant1076 --> PgSelect172 - PgSelect249[["PgSelect[249∈0] ➊
ᐸcompound_type_array_queryᐳ"]]:::plan - Object10 & Constant1076 --> PgSelect249 - PgSelect266[["PgSelect[266∈0] ➊
ᐸtable_queryᐳ"]]:::plan - Object10 & Constant1046 --> PgSelect266 - Connection396{{"Connection[396∈0] ➊
ᐸ394ᐳ"}}:::plan - Lambda397{{"Lambda[397∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Lambda398{{"Lambda[398∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Lambda397 & Lambda398 --> Connection396 - Connection437{{"Connection[437∈0] ➊
ᐸ435ᐳ"}}:::plan - Lambda397 & Lambda398 --> Connection437 - Connection478{{"Connection[478∈0] ➊
ᐸ476ᐳ"}}:::plan - Constant1044 & Lambda397 --> Connection478 - Connection518{{"Connection[518∈0] ➊
ᐸ516ᐳ"}}:::plan - Constant1044 & Lambda397 --> Connection518 - Connection558{{"Connection[558∈0] ➊
ᐸ556ᐳ"}}:::plan - Constant1044 & Lambda398 --> Connection558 - Connection598{{"Connection[598∈0] ➊
ᐸ596ᐳ"}}:::plan - Constant1044 & Constant1044 --> Connection598 - Connection637{{"Connection[637∈0] ➊
ᐸ635ᐳ"}}:::plan - Constant1065{{"Constant[1065∈0] ➊
ᐸ4ᐳ"}}:::plan - Constant1044 & Constant1065 --> Connection637 - Connection676{{"Connection[676∈0] ➊
ᐸ674ᐳ"}}:::plan - Constant1066{{"Constant[1066∈0] ➊
ᐸ0ᐳ"}}:::plan - Constant1044 & Constant1066 --> Connection676 - Connection715{{"Connection[715∈0] ➊
ᐸ713ᐳ"}}:::plan - Constant1067{{"Constant[1067∈0] ➊
ᐸ6ᐳ"}}:::plan - Constant1067 & Constant1066 --> Connection715 - Connection754{{"Connection[754∈0] ➊
ᐸ752ᐳ"}}:::plan - Constant1044 & Lambda755 --> Connection754 - Connection873{{"Connection[873∈0] ➊
ᐸ871ᐳ"}}:::plan - Lambda874{{"Lambda[874∈0] ➊
ᐸparseCursorᐳ"}}:::plan - Constant1044 & Lambda874 --> Connection873 - PgSelect968[["PgSelect[968∈0] ➊
ᐸquery_compound_type_arrayᐳ"]]:::plan - Constant1079{{"Constant[1079∈0] ➊
ᐸ§{ a: 419, b: 'easy cheesy baked potatoes', c: 'red', e: 'BAᐳ"}}:::plan - Object10 & Constant1079 --> PgSelect968 + PgSelect17[["PgSelect[17∈0] ➊
ᐸjsonb_identityᐳ"]]:::plan + PgFromExpression19{{"PgFromExpression[19∈0] ➊"}}:::plan + Object10 & PgFromExpression19 --> PgSelect17 + PgSelect25[["PgSelect[25∈0] ➊
ᐸjson_identityᐳ"]]:::plan + PgFromExpression27{{"PgFromExpression[27∈0] ➊"}}:::plan + Object10 & PgFromExpression27 --> PgSelect25 + PgSelect33[["PgSelect[33∈0] ➊
ᐸjsonb_identityᐳ"]]:::plan + PgFromExpression35{{"PgFromExpression[35∈0] ➊"}}:::plan + Object10 & PgFromExpression35 --> PgSelect33 + PgSelect42[["PgSelect[42∈0] ➊
ᐸadd_1_queryᐳ"]]:::plan + PgFromExpression44{{"PgFromExpression[44∈0] ➊"}}:::plan + Object10 & PgFromExpression44 --> PgSelect42 + Constant1035 & Constant1036 --> PgFromExpression44 + PgSelect51[["PgSelect[51∈0] ➊
ᐸadd_2_queryᐳ"]]:::plan + PgFromExpression53{{"PgFromExpression[53∈0] ➊"}}:::plan + Object10 & PgFromExpression53 --> PgSelect51 + Constant1036 -- 2 --> PgFromExpression53 + PgSelect60[["PgSelect[60∈0] ➊
ᐸadd_3_queryᐳ"]]:::plan + PgFromExpression62{{"PgFromExpression[62∈0] ➊"}}:::plan + Object10 & PgFromExpression62 --> PgSelect60 + Constant1037 --> PgFromExpression62 + PgSelect69[["PgSelect[69∈0] ➊
ᐸadd_4_queryᐳ"]]:::plan + PgFromExpression71{{"PgFromExpression[71∈0] ➊"}}:::plan + Object10 & PgFromExpression71 --> PgSelect69 + Constant1035 & Constant1038 --> PgFromExpression71 + PgSelect78[["PgSelect[78∈0] ➊
ᐸoptional_missing_middle_1ᐳ"]]:::plan + Object10 & PgFromExpression80 --> PgSelect78 + PgSelect88[["PgSelect[88∈0] ➊
ᐸoptional_missing_middle_1ᐳ"]]:::plan + Object10 & PgFromExpression90 --> PgSelect88 + PgSelect97[["PgSelect[97∈0] ➊
ᐸoptional_missing_middle_2ᐳ"]]:::plan + Object10 & PgFromExpression99 --> PgSelect97 + PgSelect106[["PgSelect[106∈0] ➊
ᐸoptional_missing_middle_3ᐳ"]]:::plan + Object10 & PgFromExpression108 --> PgSelect106 + PgSelect115[["PgSelect[115∈0] ➊
ᐸoptional_missing_middle_4ᐳ"]]:::plan + Object10 & PgFromExpression117 --> PgSelect115 + PgSelect124[["PgSelect[124∈0] ➊
ᐸoptional_missing_middle_5ᐳ"]]:::plan + Object10 & PgFromExpression126 --> PgSelect124 + __InputObject137{{"__InputObject[137∈0] ➊"}}:::plan + __InputObject140{{"__InputObject[140∈0] ➊"}}:::plan + __InputObject137 & __InputObject140 --> __InputObject136 + Constant1035 & Constant1042 --> __InputObject137 + Constant1037 & Constant1042 --> __InputObject140 + PgSelect144[["PgSelect[144∈0] ➊
ᐸtypes_queryᐳ"]]:::plan + Object10 & PgFromExpression146 --> PgSelect144 + PgSelect158[["PgSelect[158∈0] ➊
ᐸtypes_queryᐳ"]]:::plan + Object10 & PgFromExpression160 --> PgSelect158 + PgSelect177[["PgSelect[177∈0] ➊
ᐸcompound_type_queryᐳ"]]:::plan + PgFromExpression179{{"PgFromExpression[179∈0] ➊"}}:::plan + Object10 & PgFromExpression179 --> PgSelect177 + __ListTransform199[["__ListTransform[199∈0] ➊
ᐸeach:198ᐳ"]]:::plan + PgSelectRows200[["PgSelectRows[200∈0] ➊"]]:::plan + PgSelectRows200 & PgSelect198 --> __ListTransform199 + PgCursor226{{"PgCursor[226∈0] ➊"}}:::plan + PgSelectSingle224{{"PgSelectSingle[224∈0] ➊
ᐸcompound_type_set_queryᐳ"}}:::plan + Access206{{"Access[206∈0] ➊
ᐸ198.cursorDetailsᐳ"}}:::plan + PgSelectSingle224 & Access206 --> PgCursor226 + PgCursor232{{"PgCursor[232∈0] ➊"}}:::plan + PgSelectSingle230{{"PgSelectSingle[230∈0] ➊
ᐸcompound_type_set_queryᐳ"}}:::plan + PgSelectSingle230 & Access206 --> PgCursor232 + PgSelect253[["PgSelect[253∈0] ➊
ᐸcompound_type_array_queryᐳ"]]:::plan + PgFromExpression255{{"PgFromExpression[255∈0] ➊"}}:::plan + Object10 & PgFromExpression255 --> PgSelect253 + PgSelect271[["PgSelect[271∈0] ➊
ᐸtable_queryᐳ"]]:::plan + PgFromExpression273{{"PgFromExpression[273∈0] ➊"}}:::plan + Object10 & PgFromExpression273 --> PgSelect271 + List279{{"List[279∈0] ➊
ᐸ277,278ᐳ"}}:::plan + Constant277{{"Constant[277∈0] ➊
ᐸ'posts'ᐳ"}}:::plan + PgClassExpression278{{"PgClassExpression[278∈0] ➊
ᐸ__table_query__.”id”ᐳ"}}:::plan + Constant277 & PgClassExpression278 --> List279 + __ListTransform287[["__ListTransform[287∈0] ➊
ᐸeach:286ᐳ"]]:::plan + PgSelectRows288[["PgSelectRows[288∈0] ➊"]]:::plan + PgSelectRows288 & PgSelect286 --> __ListTransform287 + PgCursor304{{"PgCursor[304∈0] ➊"}}:::plan + PgSelectSingle302{{"PgSelectSingle[302∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access294{{"Access[294∈0] ➊
ᐸ286.cursorDetailsᐳ"}}:::plan + PgSelectSingle302 & Access294 --> PgCursor304 + PgCursor310{{"PgCursor[310∈0] ➊"}}:::plan + PgSelectSingle308{{"PgSelectSingle[308∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle308 & Access294 --> PgCursor310 + __ListTransform325[["__ListTransform[325∈0] ➊
ᐸeach:324ᐳ"]]:::plan + PgSelectRows326[["PgSelectRows[326∈0] ➊"]]:::plan + PgSelectRows326 & PgSelect324 --> __ListTransform325 + PgCursor342{{"PgCursor[342∈0] ➊"}}:::plan + PgSelectSingle340{{"PgSelectSingle[340∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access332{{"Access[332∈0] ➊
ᐸ324.cursorDetailsᐳ"}}:::plan + PgSelectSingle340 & Access332 --> PgCursor342 + PgCursor348{{"PgCursor[348∈0] ➊"}}:::plan + PgSelectSingle346{{"PgSelectSingle[346∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle346 & Access332 --> PgCursor348 + __InputObject357{{"__InputObject[357∈0] ➊"}}:::plan + Constant1052{{"Constant[1052∈0] ➊
ᐸ'Budd Deey'ᐳ"}}:::plan + Constant1052 --> __InputObject357 + __ListTransform364[["__ListTransform[364∈0] ➊
ᐸeach:363ᐳ"]]:::plan + PgSelectRows365[["PgSelectRows[365∈0] ➊"]]:::plan + PgSelectRows365 & PgSelect363 --> __ListTransform364 + PgCursor381{{"PgCursor[381∈0] ➊"}}:::plan + PgSelectSingle379{{"PgSelectSingle[379∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access371{{"Access[371∈0] ➊
ᐸ363.cursorDetailsᐳ"}}:::plan + PgSelectSingle379 & Access371 --> PgCursor381 + PgCursor387{{"PgCursor[387∈0] ➊"}}:::plan + PgSelectSingle385{{"PgSelectSingle[385∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle385 & Access371 --> PgCursor387 + __ListTransform404[["__ListTransform[404∈0] ➊
ᐸeach:403ᐳ"]]:::plan + PgSelectRows405[["PgSelectRows[405∈0] ➊"]]:::plan + PgSelectRows405 & PgSelect403 --> __ListTransform404 + PgCursor421{{"PgCursor[421∈0] ➊"}}:::plan + PgSelectSingle419{{"PgSelectSingle[419∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access411{{"Access[411∈0] ➊
ᐸ403.cursorDetailsᐳ"}}:::plan + PgSelectSingle419 & Access411 --> PgCursor421 + PgCursor427{{"PgCursor[427∈0] ➊"}}:::plan + PgSelectSingle425{{"PgSelectSingle[425∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle425 & Access411 --> PgCursor427 + __ListTransform444[["__ListTransform[444∈0] ➊
ᐸeach:443ᐳ"]]:::plan + PgSelectRows445[["PgSelectRows[445∈0] ➊"]]:::plan + PgSelectRows445 & PgSelect443 --> __ListTransform444 + PgCursor461{{"PgCursor[461∈0] ➊"}}:::plan + PgSelectSingle459{{"PgSelectSingle[459∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access451{{"Access[451∈0] ➊
ᐸ443.cursorDetailsᐳ"}}:::plan + PgSelectSingle459 & Access451 --> PgCursor461 + PgCursor467{{"PgCursor[467∈0] ➊"}}:::plan + PgSelectSingle465{{"PgSelectSingle[465∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle465 & Access451 --> PgCursor467 + __ListTransform483[["__ListTransform[483∈0] ➊
ᐸeach:482ᐳ"]]:::plan + PgSelectRows484[["PgSelectRows[484∈0] ➊"]]:::plan + PgSelectRows484 & PgSelect482 --> __ListTransform483 + PgCursor500{{"PgCursor[500∈0] ➊"}}:::plan + PgSelectSingle498{{"PgSelectSingle[498∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access490{{"Access[490∈0] ➊
ᐸ482.cursorDetailsᐳ"}}:::plan + PgSelectSingle498 & Access490 --> PgCursor500 + PgCursor506{{"PgCursor[506∈0] ➊"}}:::plan + PgSelectSingle504{{"PgSelectSingle[504∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle504 & Access490 --> PgCursor506 + __ListTransform522[["__ListTransform[522∈0] ➊
ᐸeach:521ᐳ"]]:::plan + PgSelectRows523[["PgSelectRows[523∈0] ➊"]]:::plan + PgSelectRows523 & PgSelect521 --> __ListTransform522 + PgCursor539{{"PgCursor[539∈0] ➊"}}:::plan + PgSelectSingle537{{"PgSelectSingle[537∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access529{{"Access[529∈0] ➊
ᐸ521.cursorDetailsᐳ"}}:::plan + PgSelectSingle537 & Access529 --> PgCursor539 + PgCursor545{{"PgCursor[545∈0] ➊"}}:::plan + PgSelectSingle543{{"PgSelectSingle[543∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle543 & Access529 --> PgCursor545 + __ListTransform561[["__ListTransform[561∈0] ➊
ᐸeach:560ᐳ"]]:::plan + PgSelectRows562[["PgSelectRows[562∈0] ➊"]]:::plan + PgSelectRows562 & PgSelect560 --> __ListTransform561 + PgCursor578{{"PgCursor[578∈0] ➊"}}:::plan + PgSelectSingle576{{"PgSelectSingle[576∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access568{{"Access[568∈0] ➊
ᐸ560.cursorDetailsᐳ"}}:::plan + PgSelectSingle576 & Access568 --> PgCursor578 + PgCursor584{{"PgCursor[584∈0] ➊"}}:::plan + PgSelectSingle582{{"PgSelectSingle[582∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle582 & Access568 --> PgCursor584 + __ListTransform599[["__ListTransform[599∈0] ➊
ᐸeach:598ᐳ"]]:::plan + PgSelectRows600[["PgSelectRows[600∈0] ➊"]]:::plan + PgSelectRows600 & PgSelect598 --> __ListTransform599 + PgCursor616{{"PgCursor[616∈0] ➊"}}:::plan + PgSelectSingle614{{"PgSelectSingle[614∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access606{{"Access[606∈0] ➊
ᐸ598.cursorDetailsᐳ"}}:::plan + PgSelectSingle614 & Access606 --> PgCursor616 + PgCursor622{{"PgCursor[622∈0] ➊"}}:::plan + PgSelectSingle620{{"PgSelectSingle[620∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle620 & Access606 --> PgCursor622 + __ListTransform637[["__ListTransform[637∈0] ➊
ᐸeach:636ᐳ"]]:::plan + PgSelectRows638[["PgSelectRows[638∈0] ➊"]]:::plan + PgSelectRows638 & PgSelect636 --> __ListTransform637 + PgCursor654{{"PgCursor[654∈0] ➊"}}:::plan + PgSelectSingle652{{"PgSelectSingle[652∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access644{{"Access[644∈0] ➊
ᐸ636.cursorDetailsᐳ"}}:::plan + PgSelectSingle652 & Access644 --> PgCursor654 + PgCursor660{{"PgCursor[660∈0] ➊"}}:::plan + PgSelectSingle658{{"PgSelectSingle[658∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle658 & Access644 --> PgCursor660 + __ListTransform675[["__ListTransform[675∈0] ➊
ᐸeach:674ᐳ"]]:::plan + PgSelectRows676[["PgSelectRows[676∈0] ➊"]]:::plan + PgSelectRows676 & PgSelect674 --> __ListTransform675 + PgCursor692{{"PgCursor[692∈0] ➊"}}:::plan + PgSelectSingle690{{"PgSelectSingle[690∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access682{{"Access[682∈0] ➊
ᐸ674.cursorDetailsᐳ"}}:::plan + PgSelectSingle690 & Access682 --> PgCursor692 + PgCursor698{{"PgCursor[698∈0] ➊"}}:::plan + PgSelectSingle696{{"PgSelectSingle[696∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle696 & Access682 --> PgCursor698 + __ListTransform713[["__ListTransform[713∈0] ➊
ᐸeach:712ᐳ"]]:::plan + PgSelectRows714[["PgSelectRows[714∈0] ➊"]]:::plan + PgSelectRows714 & PgSelect712 --> __ListTransform713 + PgCursor730{{"PgCursor[730∈0] ➊"}}:::plan + PgSelectSingle728{{"PgSelectSingle[728∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access720{{"Access[720∈0] ➊
ᐸ712.cursorDetailsᐳ"}}:::plan + PgSelectSingle728 & Access720 --> PgCursor730 + PgCursor736{{"PgCursor[736∈0] ➊"}}:::plan + PgSelectSingle734{{"PgSelectSingle[734∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle734 & Access720 --> PgCursor736 + __ListTransform752[["__ListTransform[752∈0] ➊
ᐸeach:751ᐳ"]]:::plan + PgSelectRows753[["PgSelectRows[753∈0] ➊"]]:::plan + PgSelectRows753 & PgSelect751 --> __ListTransform752 + PgCursor769{{"PgCursor[769∈0] ➊"}}:::plan + PgSelectSingle767{{"PgSelectSingle[767∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access759{{"Access[759∈0] ➊
ᐸ751.cursorDetailsᐳ"}}:::plan + PgSelectSingle767 & Access759 --> PgCursor769 + PgCursor775{{"PgCursor[775∈0] ➊"}}:::plan + PgSelectSingle773{{"PgSelectSingle[773∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle773 & Access759 --> PgCursor775 + __ListTransform792[["__ListTransform[792∈0] ➊
ᐸeach:791ᐳ"]]:::plan + PgSelectRows793[["PgSelectRows[793∈0] ➊"]]:::plan + PgSelectRows793 & PgSelect791 --> __ListTransform792 + PgCursor809{{"PgCursor[809∈0] ➊"}}:::plan + PgSelectSingle807{{"PgSelectSingle[807∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + Access799{{"Access[799∈0] ➊
ᐸ791.cursorDetailsᐳ"}}:::plan + PgSelectSingle807 & Access799 --> PgCursor809 + PgCursor815{{"PgCursor[815∈0] ➊"}}:::plan + PgSelectSingle813{{"PgSelectSingle[813∈0] ➊
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle813 & Access799 --> PgCursor815 + __ListTransform829[["__ListTransform[829∈0] ➊
ᐸeach:828ᐳ"]]:::plan + PgSelectRows830[["PgSelectRows[830∈0] ➊"]]:::plan + PgSelectRows830 & PgSelect828 --> __ListTransform829 + PgCursor846{{"PgCursor[846∈0] ➊"}}:::plan + PgSelectSingle844{{"PgSelectSingle[844∈0] ➊
ᐸtable_set_query_plpgsqlᐳ"}}:::plan + Access836{{"Access[836∈0] ➊
ᐸ828.cursorDetailsᐳ"}}:::plan + PgSelectSingle844 & Access836 --> PgCursor846 + PgCursor852{{"PgCursor[852∈0] ➊"}}:::plan + PgSelectSingle850{{"PgSelectSingle[850∈0] ➊
ᐸtable_set_query_plpgsqlᐳ"}}:::plan + PgSelectSingle850 & Access836 --> PgCursor852 + __ListTransform868[["__ListTransform[868∈0] ➊
ᐸeach:867ᐳ"]]:::plan + PgSelectRows869[["PgSelectRows[869∈0] ➊"]]:::plan + PgSelectRows869 & PgSelect867 --> __ListTransform868 + PgCursor885{{"PgCursor[885∈0] ➊"}}:::plan + PgSelectSingle883{{"PgSelectSingle[883∈0] ➊
ᐸtable_set_query_plpgsqlᐳ"}}:::plan + Access875{{"Access[875∈0] ➊
ᐸ867.cursorDetailsᐳ"}}:::plan + PgSelectSingle883 & Access875 --> PgCursor885 + PgCursor891{{"PgCursor[891∈0] ➊"}}:::plan + PgSelectSingle889{{"PgSelectSingle[889∈0] ➊
ᐸtable_set_query_plpgsqlᐳ"}}:::plan + PgSelectSingle889 & Access875 --> PgCursor891 + __ListTransform907[["__ListTransform[907∈0] ➊
ᐸeach:906ᐳ"]]:::plan + PgSelectRows908[["PgSelectRows[908∈0] ➊"]]:::plan + PgSelectRows908 & PgSelect906 --> __ListTransform907 + __ListTransform933[["__ListTransform[933∈0] ➊
ᐸeach:932ᐳ"]]:::plan + PgSelectRows934[["PgSelectRows[934∈0] ➊"]]:::plan + PgSelectRows934 & PgSelect932 --> __ListTransform933 + PgSelect944[["PgSelect[944∈0] ➊
ᐸstatic_big_integer(aggregate)ᐳ"]]:::plan + Object10 -->|rejectNull| PgSelect944 + Connection931 --> PgSelect944 + Constant1037 --> __InputObject955 + PgSelect959[["PgSelect[959∈0] ➊
ᐸquery_compound_type_arrayᐳ"]]:::plan + PgFromExpression961{{"PgFromExpression[961∈0] ➊"}}:::plan + Object10 & PgFromExpression961 --> PgSelect959 + __ListTransform1011[["__ListTransform[1011∈0] ➊
ᐸeach:1010ᐳ"]]:::plan + PgSelectRows1000[["PgSelectRows[1000∈0] ➊"]]:::plan + PgSelectRows1000 & PgSelect999 --> __ListTransform1011 + PgSelect1025[["PgSelect[1025∈0] ➊
ᐸquery_interval_set(aggregate)ᐳ"]]:::plan + Object10 -->|rejectNull| PgSelect1025 + Connection998 --> PgSelect1025 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 - First11{{"First[11∈0] ➊"}}:::plan - PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan - PgSelectRows12 --> First11 - PgSelect7 --> PgSelectRows12 - PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸjson_identityᐳ"}}:::plan - First11 --> PgSelectSingle13 - PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression14 - First18{{"First[18∈0] ➊"}}:::plan - PgSelectRows19[["PgSelectRows[19∈0] ➊"]]:::plan - PgSelectRows19 --> First18 - PgSelect16 --> PgSelectRows19 - PgSelectSingle20{{"PgSelectSingle[20∈0] ➊
ᐸjsonb_identityᐳ"}}:::plan - First18 --> PgSelectSingle20 - PgClassExpression21{{"PgClassExpression[21∈0] ➊
ᐸ__jsonb_identity__.vᐳ"}}:::plan - PgSelectSingle20 --> PgClassExpression21 - First25{{"First[25∈0] ➊"}}:::plan - PgSelectRows26[["PgSelectRows[26∈0] ➊"]]:::plan - PgSelectRows26 --> First25 - PgSelect23 --> PgSelectRows26 - PgSelectSingle27{{"PgSelectSingle[27∈0] ➊
ᐸjson_identityᐳ"}}:::plan - First25 --> PgSelectSingle27 - PgClassExpression28{{"PgClassExpression[28∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - First32{{"First[32∈0] ➊"}}:::plan - PgSelectRows33[["PgSelectRows[33∈0] ➊"]]:::plan - PgSelectRows33 --> First32 - PgSelect30 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈0] ➊
ᐸjsonb_identityᐳ"}}:::plan - First32 --> PgSelectSingle34 - PgClassExpression35{{"PgClassExpression[35∈0] ➊
ᐸ__jsonb_identity__.vᐳ"}}:::plan - PgSelectSingle34 --> PgClassExpression35 - First40{{"First[40∈0] ➊"}}:::plan - PgSelectRows41[["PgSelectRows[41∈0] ➊"]]:::plan - PgSelectRows41 --> First40 - PgSelect38 --> PgSelectRows41 - PgSelectSingle42{{"PgSelectSingle[42∈0] ➊
ᐸadd_1_queryᐳ"}}:::plan - First40 --> PgSelectSingle42 - PgClassExpression43{{"PgClassExpression[43∈0] ➊
ᐸ__add_1_query__.vᐳ"}}:::plan - PgSelectSingle42 --> PgClassExpression43 - First48{{"First[48∈0] ➊"}}:::plan - PgSelectRows49[["PgSelectRows[49∈0] ➊"]]:::plan - PgSelectRows49 --> First48 - PgSelect46 --> PgSelectRows49 - PgSelectSingle50{{"PgSelectSingle[50∈0] ➊
ᐸadd_2_queryᐳ"}}:::plan - First48 --> PgSelectSingle50 - PgClassExpression51{{"PgClassExpression[51∈0] ➊
ᐸ__add_2_query__.vᐳ"}}:::plan - PgSelectSingle50 --> PgClassExpression51 - First57{{"First[57∈0] ➊"}}:::plan - PgSelectRows58[["PgSelectRows[58∈0] ➊"]]:::plan - PgSelectRows58 --> First57 - PgSelect55 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈0] ➊
ᐸadd_3_queryᐳ"}}:::plan - First57 --> PgSelectSingle59 - PgClassExpression60{{"PgClassExpression[60∈0] ➊
ᐸ__add_3_query__.vᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression60 - First65{{"First[65∈0] ➊"}}:::plan - PgSelectRows66[["PgSelectRows[66∈0] ➊"]]:::plan - PgSelectRows66 --> First65 - PgSelect63 --> PgSelectRows66 - PgSelectSingle67{{"PgSelectSingle[67∈0] ➊
ᐸadd_4_queryᐳ"}}:::plan - First65 --> PgSelectSingle67 - PgClassExpression68{{"PgClassExpression[68∈0] ➊
ᐸ__add_4_query__.vᐳ"}}:::plan - PgSelectSingle67 --> PgClassExpression68 - First73{{"First[73∈0] ➊"}}:::plan - PgSelectRows74[["PgSelectRows[74∈0] ➊"]]:::plan - PgSelectRows74 --> First73 - PgSelect71 --> PgSelectRows74 - PgSelectSingle75{{"PgSelectSingle[75∈0] ➊
ᐸoptional_missing_middle_1ᐳ"}}:::plan - First73 --> PgSelectSingle75 - PgClassExpression76{{"PgClassExpression[76∈0] ➊
ᐸ__optional...ddle_1__.vᐳ"}}:::plan - PgSelectSingle75 --> PgClassExpression76 - First82{{"First[82∈0] ➊"}}:::plan - PgSelectRows83[["PgSelectRows[83∈0] ➊"]]:::plan - PgSelectRows83 --> First82 - PgSelect80 --> PgSelectRows83 - PgSelectSingle84{{"PgSelectSingle[84∈0] ➊
ᐸoptional_missing_middle_1ᐳ"}}:::plan - First82 --> PgSelectSingle84 - PgClassExpression85{{"PgClassExpression[85∈0] ➊
ᐸ__optional...ddle_1__.vᐳ"}}:::plan - PgSelectSingle84 --> PgClassExpression85 - First90{{"First[90∈0] ➊"}}:::plan - PgSelectRows91[["PgSelectRows[91∈0] ➊"]]:::plan - PgSelectRows91 --> First90 - PgSelect88 --> PgSelectRows91 - PgSelectSingle92{{"PgSelectSingle[92∈0] ➊
ᐸoptional_missing_middle_2ᐳ"}}:::plan - First90 --> PgSelectSingle92 - PgClassExpression93{{"PgClassExpression[93∈0] ➊
ᐸ__optional...ddle_2__.vᐳ"}}:::plan - PgSelectSingle92 --> PgClassExpression93 - First98{{"First[98∈0] ➊"}}:::plan - PgSelectRows99[["PgSelectRows[99∈0] ➊"]]:::plan - PgSelectRows99 --> First98 - PgSelect96 --> PgSelectRows99 - PgSelectSingle100{{"PgSelectSingle[100∈0] ➊
ᐸoptional_missing_middle_3ᐳ"}}:::plan - First98 --> PgSelectSingle100 - PgClassExpression101{{"PgClassExpression[101∈0] ➊
ᐸ__optional...ddle_3__.vᐳ"}}:::plan - PgSelectSingle100 --> PgClassExpression101 - First106{{"First[106∈0] ➊"}}:::plan - PgSelectRows107[["PgSelectRows[107∈0] ➊"]]:::plan - PgSelectRows107 --> First106 - PgSelect104 --> PgSelectRows107 - PgSelectSingle108{{"PgSelectSingle[108∈0] ➊
ᐸoptional_missing_middle_4ᐳ"}}:::plan - First106 --> PgSelectSingle108 - PgClassExpression109{{"PgClassExpression[109∈0] ➊
ᐸ__optional...ddle_4__.vᐳ"}}:::plan - PgSelectSingle108 --> PgClassExpression109 - First114{{"First[114∈0] ➊"}}:::plan - PgSelectRows115[["PgSelectRows[115∈0] ➊"]]:::plan - PgSelectRows115 --> First114 - PgSelect112 --> PgSelectRows115 - PgSelectSingle116{{"PgSelectSingle[116∈0] ➊
ᐸoptional_missing_middle_5ᐳ"}}:::plan - First114 --> PgSelectSingle116 - PgClassExpression117{{"PgClassExpression[117∈0] ➊
ᐸ__optional...ddle_5__.vᐳ"}}:::plan - PgSelectSingle116 --> PgClassExpression117 - First139{{"First[139∈0] ➊"}}:::plan - PgSelectRows140[["PgSelectRows[140∈0] ➊"]]:::plan - PgSelectRows140 --> First139 - PgSelect137 --> PgSelectRows140 - PgSelectSingle141{{"PgSelectSingle[141∈0] ➊
ᐸtypes_queryᐳ"}}:::plan - First139 --> PgSelectSingle141 - PgClassExpression142{{"PgClassExpression[142∈0] ➊
ᐸ__types_query__.vᐳ"}}:::plan - PgSelectSingle141 --> PgClassExpression142 - First155{{"First[155∈0] ➊"}}:::plan - PgSelectRows156[["PgSelectRows[156∈0] ➊"]]:::plan - PgSelectRows156 --> First155 - PgSelect153 --> PgSelectRows156 - PgSelectSingle157{{"PgSelectSingle[157∈0] ➊
ᐸtypes_queryᐳ"}}:::plan - First155 --> PgSelectSingle157 - PgClassExpression158{{"PgClassExpression[158∈0] ➊
ᐸ__types_query__.vᐳ"}}:::plan - PgSelectSingle157 --> PgClassExpression158 - First174{{"First[174∈0] ➊"}}:::plan - PgSelectRows175[["PgSelectRows[175∈0] ➊"]]:::plan - PgSelectRows175 --> First174 - PgSelect172 --> PgSelectRows175 - PgSelectSingle176{{"PgSelectSingle[176∈0] ➊
ᐸcompound_type_queryᐳ"}}:::plan - First174 --> PgSelectSingle176 - Connection191{{"Connection[191∈0] ➊
ᐸ189ᐳ"}}:::plan - Constant1046 --> Connection191 - PgSelectRows251[["PgSelectRows[251∈0] ➊"]]:::plan - PgSelect249 --> PgSelectRows251 - First268{{"First[268∈0] ➊"}}:::plan - PgSelectRows269[["PgSelectRows[269∈0] ➊"]]:::plan - PgSelectRows269 --> First268 - PgSelect266 --> PgSelectRows269 - PgSelectSingle270{{"PgSelectSingle[270∈0] ➊
ᐸtable_queryᐳ"}}:::plan - First268 --> PgSelectSingle270 - Constant1063{{"Constant[1063∈0] ➊
ᐸ'WyJuYXR1cmFsIiw1XQ=='ᐳ"}}:::plan - Constant1063 --> Lambda397 - Constant1064{{"Constant[1064∈0] ➊
ᐸ'WyJuYXR1cmFsIiwzXQ=='ᐳ"}}:::plan - Constant1064 --> Lambda398 - Constant1068{{"Constant[1068∈0] ➊
ᐸ'WyJuYXR1cmFsIiwxXQ=='ᐳ"}}:::plan - Constant1068 --> Lambda755 - Connection834{{"Connection[834∈0] ➊
ᐸ832ᐳ"}}:::plan - Constant1044 --> Connection834 - Constant1069{{"Constant[1069∈0] ➊
ᐸ'WyJuYXR1cmFsIiwyXQ=='ᐳ"}}:::plan - Constant1069 --> Lambda874 - PgSelect931[["PgSelect[931∈0] ➊
ᐸno_args_queryᐳ"]]:::plan - Object10 --> PgSelect931 - First933{{"First[933∈0] ➊"}}:::plan - PgSelectRows934[["PgSelectRows[934∈0] ➊"]]:::plan - PgSelectRows934 --> First933 - PgSelect931 --> PgSelectRows934 - PgSelectSingle935{{"PgSelectSingle[935∈0] ➊
ᐸno_args_queryᐳ"}}:::plan - First933 --> PgSelectSingle935 - PgClassExpression936{{"PgClassExpression[936∈0] ➊
ᐸ__no_args_query__.vᐳ"}}:::plan - PgSelectSingle935 --> PgClassExpression936 - PgSelectRows970[["PgSelectRows[970∈0] ➊"]]:::plan - PgSelect968 --> PgSelectRows970 - PgSelect984[["PgSelect[984∈0] ➊
ᐸquery_text_arrayᐳ"]]:::plan - Object10 --> PgSelect984 - First986{{"First[986∈0] ➊"}}:::plan - PgSelectRows987[["PgSelectRows[987∈0] ➊"]]:::plan - PgSelectRows987 --> First986 - PgSelect984 --> PgSelectRows987 - PgSelectSingle988{{"PgSelectSingle[988∈0] ➊
ᐸquery_text_arrayᐳ"}}:::plan - First986 --> PgSelectSingle988 - PgClassExpression989{{"PgClassExpression[989∈0] ➊
ᐸ__query_text_array__.vᐳ"}}:::plan - PgSelectSingle988 --> PgClassExpression989 - PgSelect991[["PgSelect[991∈0] ➊
ᐸquery_interval_arrayᐳ"]]:::plan - Object10 --> PgSelect991 - First993{{"First[993∈0] ➊"}}:::plan - PgSelectRows994[["PgSelectRows[994∈0] ➊"]]:::plan - PgSelectRows994 --> First993 - PgSelect991 --> PgSelectRows994 - PgSelectSingle995{{"PgSelectSingle[995∈0] ➊
ᐸquery_interval_arrayᐳ"}}:::plan - First993 --> PgSelectSingle995 - PgClassExpression996{{"PgClassExpression[996∈0] ➊
ᐸ__query_in..._array__.vᐳ"}}:::plan - PgSelectSingle995 --> PgClassExpression996 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant52{{"Constant[52∈0] ➊
ᐸundefinedᐳ"}}:::plan - Constant271{{"Constant[271∈0] ➊
ᐸ'posts'ᐳ"}}:::plan - Connection279{{"Connection[279∈0] ➊
ᐸ277ᐳ"}}:::plan - Connection318{{"Connection[318∈0] ➊
ᐸ316ᐳ"}}:::plan - Connection357{{"Connection[357∈0] ➊
ᐸ355ᐳ"}}:::plan - Connection913{{"Connection[913∈0] ➊
ᐸ911ᐳ"}}:::plan - Connection939{{"Connection[939∈0] ➊
ᐸ937ᐳ"}}:::plan - Connection1006{{"Connection[1006∈0] ➊
ᐸ1004ᐳ"}}:::plan - Constant1062{{"Constant[1062∈0] ➊
ᐸ'Budd Deey'ᐳ"}}:::plan - PgClassExpression177{{"PgClassExpression[177∈1] ➊
ᐸ__compound...uery__.”a”ᐳ"}}:::plan - PgSelectSingle176 --> PgClassExpression177 - PgClassExpression178{{"PgClassExpression[178∈1] ➊
ᐸ__compound...uery__.”b”ᐳ"}}:::plan - PgSelectSingle176 --> PgClassExpression178 - PgClassExpression179{{"PgClassExpression[179∈1] ➊
ᐸ__compound...uery__.”c”ᐳ"}}:::plan - PgSelectSingle176 --> PgClassExpression179 - PgClassExpression180{{"PgClassExpression[180∈1] ➊
ᐸ__compound...uery__.”d”ᐳ"}}:::plan - PgSelectSingle176 --> PgClassExpression180 - PgClassExpression181{{"PgClassExpression[181∈1] ➊
ᐸ__compound...uery__.”e”ᐳ"}}:::plan - PgSelectSingle176 --> PgClassExpression181 - PgClassExpression182{{"PgClassExpression[182∈1] ➊
ᐸ__compound...uery__.”f”ᐳ"}}:::plan - PgSelectSingle176 --> PgClassExpression182 - PgClassExpression183{{"PgClassExpression[183∈1] ➊
ᐸ__compound...uery__.”g”ᐳ"}}:::plan - PgSelectSingle176 --> PgClassExpression183 - PgClassExpression187{{"PgClassExpression[187∈1] ➊
ᐸ__compound....”foo_bar”ᐳ"}}:::plan - PgSelectSingle176 --> PgClassExpression187 - Object234{{"Object[234∈3] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access229{{"Access[229∈3] ➊
ᐸ192.hasMoreᐳ"}}:::plan - Constant1046 & Constant52 & Constant52 & Access229 --> Object234 - PgSelect192[["PgSelect[192∈3] ➊
ᐸcompound_type_set_query+1ᐳ"]]:::plan - Object10 & Connection191 & Constant1046 --> PgSelect192 - Object230{{"Object[230∈3] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1046 & Constant52 & Access229 --> Object230 - __ListTransform193[["__ListTransform[193∈3] ➊
ᐸeach:192ᐳ"]]:::plan - PgSelectRows194[["PgSelectRows[194∈3] ➊"]]:::plan - PgSelectRows194 & PgSelect192 --> __ListTransform193 - PgCursor220{{"PgCursor[220∈3] ➊"}}:::plan - PgSelectSingle218{{"PgSelectSingle[218∈3] ➊
ᐸcompound_type_set_queryᐳ"}}:::plan - Access200{{"Access[200∈3] ➊
ᐸ192.cursorDetailsᐳ"}}:::plan - PgSelectSingle218 & Access200 --> PgCursor220 - PgCursor226{{"PgCursor[226∈3] ➊"}}:::plan - PgSelectSingle224{{"PgSelectSingle[224∈3] ➊
ᐸcompound_type_set_queryᐳ"}}:::plan - PgSelectSingle224 & Access200 --> PgCursor226 - PgSelect192 --> PgSelectRows194 - PgSelect192 --> Access200 - PgPageInfo214{{"PgPageInfo[214∈3] ➊"}}:::plan - Connection191 --> PgPageInfo214 - First216{{"First[216∈3] ➊"}}:::plan - PgSelectRows194 --> First216 - First216 --> PgSelectSingle218 - Last222{{"Last[222∈3] ➊"}}:::plan - PgSelectRows194 --> Last222 - Last222 --> PgSelectSingle224 - PgSelect192 --> Access229 - Lambda231{{"Lambda[231∈3] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object230 --> Lambda231 - Lambda235{{"Lambda[235∈3] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object234 --> Lambda235 - __Item195[/"__Item[195∈4]
ᐸ194ᐳ"\]:::itemplan - PgSelectRows194 -.-> __Item195 - PgSelectSingle196{{"PgSelectSingle[196∈4]
ᐸcompound_type_set_queryᐳ"}}:::plan - __Item195 --> PgSelectSingle196 - Edge199{{"Edge[199∈5]"}}:::plan - PgSelectSingle198{{"PgSelectSingle[198∈5]
ᐸcompound_type_set_queryᐳ"}}:::plan - PgCursor201{{"PgCursor[201∈5]"}}:::plan - PgSelectSingle198 & PgCursor201 & Connection191 --> Edge199 - PgSelectSingle198 & Access200 --> PgCursor201 - __Item197[/"__Item[197∈5]
ᐸ193ᐳ"\]:::itemplan - __ListTransform193 ==> __Item197 - __Item197 --> PgSelectSingle198 - PgClassExpression202{{"PgClassExpression[202∈7]
ᐸ__compound...uery__.”a”ᐳ"}}:::plan - PgSelectSingle198 --> PgClassExpression202 - PgClassExpression203{{"PgClassExpression[203∈7]
ᐸ__compound...uery__.”b”ᐳ"}}:::plan - PgSelectSingle198 --> PgClassExpression203 - PgClassExpression204{{"PgClassExpression[204∈7]
ᐸ__compound...uery__.”c”ᐳ"}}:::plan - PgSelectSingle198 --> PgClassExpression204 - PgClassExpression205{{"PgClassExpression[205∈7]
ᐸ__compound...uery__.”d”ᐳ"}}:::plan - PgSelectSingle198 --> PgClassExpression205 - PgClassExpression206{{"PgClassExpression[206∈7]
ᐸ__compound...uery__.”e”ᐳ"}}:::plan - PgSelectSingle198 --> PgClassExpression206 - PgClassExpression207{{"PgClassExpression[207∈7]
ᐸ__compound...uery__.”f”ᐳ"}}:::plan - PgSelectSingle198 --> PgClassExpression207 - PgClassExpression208{{"PgClassExpression[208∈7]
ᐸ__compound...uery__.”g”ᐳ"}}:::plan - PgSelectSingle198 --> PgClassExpression208 - PgClassExpression212{{"PgClassExpression[212∈7]
ᐸ__compound....”foo_bar”ᐳ"}}:::plan - PgSelectSingle198 --> PgClassExpression212 - __Item252[/"__Item[252∈9]
ᐸ251ᐳ"\]:::itemplan - PgSelectRows251 ==> __Item252 - PgSelectSingle253{{"PgSelectSingle[253∈9]
ᐸcompound_type_array_queryᐳ"}}:::plan - __Item252 --> PgSelectSingle253 - PgClassExpression254{{"PgClassExpression[254∈10]
ᐸ__compound...uery__.”a”ᐳ"}}:::plan - PgSelectSingle253 --> PgClassExpression254 - PgClassExpression255{{"PgClassExpression[255∈10]
ᐸ__compound...uery__.”b”ᐳ"}}:::plan - PgSelectSingle253 --> PgClassExpression255 - PgClassExpression256{{"PgClassExpression[256∈10]
ᐸ__compound...uery__.”c”ᐳ"}}:::plan - PgSelectSingle253 --> PgClassExpression256 - PgClassExpression257{{"PgClassExpression[257∈10]
ᐸ__compound...uery__.”d”ᐳ"}}:::plan - PgSelectSingle253 --> PgClassExpression257 - PgClassExpression258{{"PgClassExpression[258∈10]
ᐸ__compound...uery__.”e”ᐳ"}}:::plan - PgSelectSingle253 --> PgClassExpression258 - PgClassExpression259{{"PgClassExpression[259∈10]
ᐸ__compound...uery__.”f”ᐳ"}}:::plan - PgSelectSingle253 --> PgClassExpression259 - PgClassExpression260{{"PgClassExpression[260∈10]
ᐸ__compound...uery__.”g”ᐳ"}}:::plan - PgSelectSingle253 --> PgClassExpression260 - PgClassExpression264{{"PgClassExpression[264∈10]
ᐸ__compound....”foo_bar”ᐳ"}}:::plan - PgSelectSingle253 --> PgClassExpression264 - List273{{"List[273∈12] ➊
ᐸ271,272ᐳ"}}:::plan - PgClassExpression272{{"PgClassExpression[272∈12] ➊
ᐸ__table_query__.”id”ᐳ"}}:::plan - Constant271 & PgClassExpression272 --> List273 - PgSelectSingle270 --> PgClassExpression272 - Lambda274{{"Lambda[274∈12] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List273 --> Lambda274 - PgClassExpression275{{"PgClassExpression[275∈12] ➊
ᐸ__table_qu...”headline”ᐳ"}}:::plan - PgSelectSingle270 --> PgClassExpression275 - PgClassExpression276{{"PgClassExpression[276∈12] ➊
ᐸ__table_qu...author_id”ᐳ"}}:::plan - PgSelectSingle270 --> PgClassExpression276 - Object312{{"Object[312∈13] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access307{{"Access[307∈13] ➊
ᐸ280.hasMoreᐳ"}}:::plan - Constant52 & Constant52 & Constant52 & Access307 --> Object312 - Object308{{"Object[308∈13] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant52 & Constant52 & Access307 --> Object308 - PgSelect280[["PgSelect[280∈13] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Connection279 --> PgSelect280 - __ListTransform281[["__ListTransform[281∈13] ➊
ᐸeach:280ᐳ"]]:::plan - PgSelectRows282[["PgSelectRows[282∈13] ➊"]]:::plan - PgSelectRows282 & PgSelect280 --> __ListTransform281 - PgCursor298{{"PgCursor[298∈13] ➊"}}:::plan - PgSelectSingle296{{"PgSelectSingle[296∈13] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access288{{"Access[288∈13] ➊
ᐸ280.cursorDetailsᐳ"}}:::plan - PgSelectSingle296 & Access288 --> PgCursor298 - PgCursor304{{"PgCursor[304∈13] ➊"}}:::plan - PgSelectSingle302{{"PgSelectSingle[302∈13] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle302 & Access288 --> PgCursor304 - PgSelect280 --> PgSelectRows282 - PgSelect280 --> Access288 - PgPageInfo292{{"PgPageInfo[292∈13] ➊"}}:::plan - Connection279 --> PgPageInfo292 - First294{{"First[294∈13] ➊"}}:::plan - PgSelectRows282 --> First294 - First294 --> PgSelectSingle296 - Last300{{"Last[300∈13] ➊"}}:::plan - PgSelectRows282 --> Last300 - Last300 --> PgSelectSingle302 - PgSelect280 --> Access307 - Lambda309{{"Lambda[309∈13] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object308 --> Lambda309 - Lambda313{{"Lambda[313∈13] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object312 --> Lambda313 - __Item283[/"__Item[283∈14]
ᐸ282ᐳ"\]:::itemplan - PgSelectRows282 -.-> __Item283 - PgSelectSingle284{{"PgSelectSingle[284∈14]
ᐸtable_set_queryᐳ"}}:::plan - __Item283 --> PgSelectSingle284 - Edge287{{"Edge[287∈15]"}}:::plan - PgSelectSingle286{{"PgSelectSingle[286∈15]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor289{{"PgCursor[289∈15]"}}:::plan - PgSelectSingle286 & PgCursor289 & Connection279 --> Edge287 - PgSelectSingle286 & Access288 --> PgCursor289 - __Item285[/"__Item[285∈15]
ᐸ281ᐳ"\]:::itemplan - __ListTransform281 ==> __Item285 - __Item285 --> PgSelectSingle286 - PgClassExpression290{{"PgClassExpression[290∈17]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle286 --> PgClassExpression290 - Object351{{"Object[351∈18] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access346{{"Access[346∈18] ➊
ᐸ319.hasMoreᐳ"}}:::plan - Constant52 & Constant52 & Constant52 & Access346 --> Object351 - Object347{{"Object[347∈18] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant52 & Constant52 & Access346 --> Object347 - PgSelect319[["PgSelect[319∈18] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Connection318 --> PgSelect319 - __ListTransform320[["__ListTransform[320∈18] ➊
ᐸeach:319ᐳ"]]:::plan - PgSelectRows321[["PgSelectRows[321∈18] ➊"]]:::plan - PgSelectRows321 & PgSelect319 --> __ListTransform320 - PgCursor337{{"PgCursor[337∈18] ➊"}}:::plan - PgSelectSingle335{{"PgSelectSingle[335∈18] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access327{{"Access[327∈18] ➊
ᐸ319.cursorDetailsᐳ"}}:::plan - PgSelectSingle335 & Access327 --> PgCursor337 - PgCursor343{{"PgCursor[343∈18] ➊"}}:::plan - PgSelectSingle341{{"PgSelectSingle[341∈18] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle341 & Access327 --> PgCursor343 - PgSelect319 --> PgSelectRows321 - PgSelect319 --> Access327 - PgPageInfo331{{"PgPageInfo[331∈18] ➊"}}:::plan - Connection318 --> PgPageInfo331 - First333{{"First[333∈18] ➊"}}:::plan - PgSelectRows321 --> First333 - First333 --> PgSelectSingle335 - Last339{{"Last[339∈18] ➊"}}:::plan - PgSelectRows321 --> Last339 - Last339 --> PgSelectSingle341 - PgSelect319 --> Access346 - Lambda348{{"Lambda[348∈18] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object347 --> Lambda348 - Lambda352{{"Lambda[352∈18] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Constant1031{{"Constant[1031∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan + Constant1031 --> PgFromExpression11 + First12{{"First[12∈0] ➊"}}:::plan + PgSelectRows13[["PgSelectRows[13∈0] ➊"]]:::plan + PgSelectRows13 --> First12 + PgSelect7 --> PgSelectRows13 + PgSelectSingle14{{"PgSelectSingle[14∈0] ➊
ᐸjson_identityᐳ"}}:::plan + First12 --> PgSelectSingle14 + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan + PgSelectSingle14 --> PgClassExpression15 + Constant1032{{"Constant[1032∈0] ➊
ᐸ{ a: 1, b: 2, c: 3 }ᐳ"}}:::plan + Constant1032 --> PgFromExpression19 + First20{{"First[20∈0] ➊"}}:::plan + PgSelectRows21[["PgSelectRows[21∈0] ➊"]]:::plan + PgSelectRows21 --> First20 + PgSelect17 --> PgSelectRows21 + PgSelectSingle22{{"PgSelectSingle[22∈0] ➊
ᐸjsonb_identityᐳ"}}:::plan + First20 --> PgSelectSingle22 + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__jsonb_identity__.vᐳ"}}:::plan + PgSelectSingle22 --> PgClassExpression23 + Constant1033{{"Constant[1033∈0] ➊
ᐸ[ { amount: '44' }, { amount: null } ]ᐳ"}}:::plan + Constant1033 --> PgFromExpression27 + First28{{"First[28∈0] ➊"}}:::plan + PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan + PgSelectRows29 --> First28 + PgSelect25 --> PgSelectRows29 + PgSelectSingle30{{"PgSelectSingle[30∈0] ➊
ᐸjson_identityᐳ"}}:::plan + First28 --> PgSelectSingle30 + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸ__json_identity__.vᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression31 + Constant1034{{"Constant[1034∈0] ➊
ᐸ[ { amount: '44' }, { amount: null } ]ᐳ"}}:::plan + Constant1034 --> PgFromExpression35 + First36{{"First[36∈0] ➊"}}:::plan + PgSelectRows37[["PgSelectRows[37∈0] ➊"]]:::plan + PgSelectRows37 --> First36 + PgSelect33 --> PgSelectRows37 + PgSelectSingle38{{"PgSelectSingle[38∈0] ➊
ᐸjsonb_identityᐳ"}}:::plan + First36 --> PgSelectSingle38 + PgClassExpression39{{"PgClassExpression[39∈0] ➊
ᐸ__jsonb_identity__.vᐳ"}}:::plan + PgSelectSingle38 --> PgClassExpression39 + First45{{"First[45∈0] ➊"}}:::plan + PgSelectRows46[["PgSelectRows[46∈0] ➊"]]:::plan + PgSelectRows46 --> First45 + PgSelect42 --> PgSelectRows46 + PgSelectSingle47{{"PgSelectSingle[47∈0] ➊
ᐸadd_1_queryᐳ"}}:::plan + First45 --> PgSelectSingle47 + PgClassExpression48{{"PgClassExpression[48∈0] ➊
ᐸ__add_1_query__.vᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression48 + First54{{"First[54∈0] ➊"}}:::plan + PgSelectRows55[["PgSelectRows[55∈0] ➊"]]:::plan + PgSelectRows55 --> First54 + PgSelect51 --> PgSelectRows55 + PgSelectSingle56{{"PgSelectSingle[56∈0] ➊
ᐸadd_2_queryᐳ"}}:::plan + First54 --> PgSelectSingle56 + PgClassExpression57{{"PgClassExpression[57∈0] ➊
ᐸ__add_2_query__.vᐳ"}}:::plan + PgSelectSingle56 --> PgClassExpression57 + First63{{"First[63∈0] ➊"}}:::plan + PgSelectRows64[["PgSelectRows[64∈0] ➊"]]:::plan + PgSelectRows64 --> First63 + PgSelect60 --> PgSelectRows64 + PgSelectSingle65{{"PgSelectSingle[65∈0] ➊
ᐸadd_3_queryᐳ"}}:::plan + First63 --> PgSelectSingle65 + PgClassExpression66{{"PgClassExpression[66∈0] ➊
ᐸ__add_3_query__.vᐳ"}}:::plan + PgSelectSingle65 --> PgClassExpression66 + First72{{"First[72∈0] ➊"}}:::plan + PgSelectRows73[["PgSelectRows[73∈0] ➊"]]:::plan + PgSelectRows73 --> First72 + PgSelect69 --> PgSelectRows73 + PgSelectSingle74{{"PgSelectSingle[74∈0] ➊
ᐸadd_4_queryᐳ"}}:::plan + First72 --> PgSelectSingle74 + PgClassExpression75{{"PgClassExpression[75∈0] ➊
ᐸ__add_4_query__.vᐳ"}}:::plan + PgSelectSingle74 --> PgClassExpression75 + First81{{"First[81∈0] ➊"}}:::plan + PgSelectRows82[["PgSelectRows[82∈0] ➊"]]:::plan + PgSelectRows82 --> First81 + PgSelect78 --> PgSelectRows82 + PgSelectSingle83{{"PgSelectSingle[83∈0] ➊
ᐸoptional_missing_middle_1ᐳ"}}:::plan + First81 --> PgSelectSingle83 + PgClassExpression84{{"PgClassExpression[84∈0] ➊
ᐸ__optional...ddle_1__.vᐳ"}}:::plan + PgSelectSingle83 --> PgClassExpression84 + First91{{"First[91∈0] ➊"}}:::plan + PgSelectRows92[["PgSelectRows[92∈0] ➊"]]:::plan + PgSelectRows92 --> First91 + PgSelect88 --> PgSelectRows92 + PgSelectSingle93{{"PgSelectSingle[93∈0] ➊
ᐸoptional_missing_middle_1ᐳ"}}:::plan + First91 --> PgSelectSingle93 + PgClassExpression94{{"PgClassExpression[94∈0] ➊
ᐸ__optional...ddle_1__.vᐳ"}}:::plan + PgSelectSingle93 --> PgClassExpression94 + First100{{"First[100∈0] ➊"}}:::plan + PgSelectRows101[["PgSelectRows[101∈0] ➊"]]:::plan + PgSelectRows101 --> First100 + PgSelect97 --> PgSelectRows101 + PgSelectSingle102{{"PgSelectSingle[102∈0] ➊
ᐸoptional_missing_middle_2ᐳ"}}:::plan + First100 --> PgSelectSingle102 + PgClassExpression103{{"PgClassExpression[103∈0] ➊
ᐸ__optional...ddle_2__.vᐳ"}}:::plan + PgSelectSingle102 --> PgClassExpression103 + First109{{"First[109∈0] ➊"}}:::plan + PgSelectRows110[["PgSelectRows[110∈0] ➊"]]:::plan + PgSelectRows110 --> First109 + PgSelect106 --> PgSelectRows110 + PgSelectSingle111{{"PgSelectSingle[111∈0] ➊
ᐸoptional_missing_middle_3ᐳ"}}:::plan + First109 --> PgSelectSingle111 + PgClassExpression112{{"PgClassExpression[112∈0] ➊
ᐸ__optional...ddle_3__.vᐳ"}}:::plan + PgSelectSingle111 --> PgClassExpression112 + First118{{"First[118∈0] ➊"}}:::plan + PgSelectRows119[["PgSelectRows[119∈0] ➊"]]:::plan + PgSelectRows119 --> First118 + PgSelect115 --> PgSelectRows119 + PgSelectSingle120{{"PgSelectSingle[120∈0] ➊
ᐸoptional_missing_middle_4ᐳ"}}:::plan + First118 --> PgSelectSingle120 + PgClassExpression121{{"PgClassExpression[121∈0] ➊
ᐸ__optional...ddle_4__.vᐳ"}}:::plan + PgSelectSingle120 --> PgClassExpression121 + First127{{"First[127∈0] ➊"}}:::plan + PgSelectRows128[["PgSelectRows[128∈0] ➊"]]:::plan + PgSelectRows128 --> First127 + PgSelect124 --> PgSelectRows128 + PgSelectSingle129{{"PgSelectSingle[129∈0] ➊
ᐸoptional_missing_middle_5ᐳ"}}:::plan + First127 --> PgSelectSingle129 + PgClassExpression130{{"PgClassExpression[130∈0] ➊
ᐸ__optional...ddle_5__.vᐳ"}}:::plan + PgSelectSingle129 --> PgClassExpression130 + Constant134{{"Constant[134∈0] ➊
ᐸ[ 1, 2, 3 ]ᐳ"}}:::plan + Constant134 --> BakedInput143 + First147{{"First[147∈0] ➊"}}:::plan + PgSelectRows148[["PgSelectRows[148∈0] ➊"]]:::plan + PgSelectRows148 --> First147 + PgSelect144 --> PgSelectRows148 + PgSelectSingle149{{"PgSelectSingle[149∈0] ➊
ᐸtypes_queryᐳ"}}:::plan + First147 --> PgSelectSingle149 + PgClassExpression150{{"PgClassExpression[150∈0] ➊
ᐸ__types_query__.vᐳ"}}:::plan + PgSelectSingle149 --> PgClassExpression150 + Constant154{{"Constant[154∈0] ➊
ᐸ[]ᐳ"}}:::plan + Constant154 --> BakedInput157 + First161{{"First[161∈0] ➊"}}:::plan + PgSelectRows162[["PgSelectRows[162∈0] ➊"]]:::plan + PgSelectRows162 --> First161 + PgSelect158 --> PgSelectRows162 + PgSelectSingle163{{"PgSelectSingle[163∈0] ➊
ᐸtypes_queryᐳ"}}:::plan + First161 --> PgSelectSingle163 + PgClassExpression164{{"PgClassExpression[164∈0] ➊
ᐸ__types_query__.vᐳ"}}:::plan + PgSelectSingle163 --> PgClassExpression164 + BakedInput176{{"BakedInput[176∈0] ➊"}}:::plan + __InputObject165 --> BakedInput176 + BakedInput176 --> PgFromExpression179 + First180{{"First[180∈0] ➊"}}:::plan + PgSelectRows181[["PgSelectRows[181∈0] ➊"]]:::plan + PgSelectRows181 --> First180 + PgSelect177 --> PgSelectRows181 + PgSelectSingle182{{"PgSelectSingle[182∈0] ➊
ᐸcompound_type_queryᐳ"}}:::plan + First180 --> PgSelectSingle182 + PgClassExpression183{{"PgClassExpression[183∈0] ➊
ᐸ__compound...uery__.”a”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression183 + PgClassExpression184{{"PgClassExpression[184∈0] ➊
ᐸ__compound...uery__.”b”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression184 + PgClassExpression185{{"PgClassExpression[185∈0] ➊
ᐸ__compound...uery__.”c”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression185 + PgClassExpression186{{"PgClassExpression[186∈0] ➊
ᐸ__compound...uery__.”d”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression186 + PgClassExpression187{{"PgClassExpression[187∈0] ➊
ᐸ__compound...uery__.”e”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression187 + PgClassExpression188{{"PgClassExpression[188∈0] ➊
ᐸ__compound...uery__.”f”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression188 + PgClassExpression189{{"PgClassExpression[189∈0] ➊
ᐸ__compound...uery__.”g”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression189 + PgClassExpression193{{"PgClassExpression[193∈0] ➊
ᐸ__compound....”foo_bar”ᐳ"}}:::plan + PgSelectSingle182 --> PgClassExpression193 + PgSelect198 --> PgSelectRows200 + PgSelect198 --> Access206 + PgPageInfo220{{"PgPageInfo[220∈0] ➊"}}:::plan + Connection197 --> PgPageInfo220 + First222{{"First[222∈0] ➊"}}:::plan + PgSelectRows200 --> First222 + First222 --> PgSelectSingle224 + Last228{{"Last[228∈0] ➊"}}:::plan + PgSelectRows200 --> Last228 + Last228 --> PgSelectSingle230 + PgSelect198 --> Access234 + Lambda236{{"Lambda[236∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object235 --> Lambda236 + Lambda240{{"Lambda[240∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object239 --> Lambda240 + BakedInput252{{"BakedInput[252∈0] ➊"}}:::plan + __InputObject241 --> BakedInput252 + BakedInput252 --> PgFromExpression255 + PgSelectRows256[["PgSelectRows[256∈0] ➊"]]:::plan + PgSelect253 --> PgSelectRows256 + Constant1037 --> PgFromExpression273 + First274{{"First[274∈0] ➊"}}:::plan + PgSelectRows275[["PgSelectRows[275∈0] ➊"]]:::plan + PgSelectRows275 --> First274 + PgSelect271 --> PgSelectRows275 + PgSelectSingle276{{"PgSelectSingle[276∈0] ➊
ᐸtable_queryᐳ"}}:::plan + First274 --> PgSelectSingle276 + PgSelectSingle276 --> PgClassExpression278 + Lambda280{{"Lambda[280∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List279 --> Lambda280 + PgClassExpression281{{"PgClassExpression[281∈0] ➊
ᐸ__table_qu...”headline”ᐳ"}}:::plan + PgSelectSingle276 --> PgClassExpression281 + PgClassExpression282{{"PgClassExpression[282∈0] ➊
ᐸ__table_qu...author_id”ᐳ"}}:::plan + PgSelectSingle276 --> PgClassExpression282 + PgSelect286 --> PgSelectRows288 + PgSelect286 --> Access294 + PgPageInfo298{{"PgPageInfo[298∈0] ➊"}}:::plan + Connection285 --> PgPageInfo298 + First300{{"First[300∈0] ➊"}}:::plan + PgSelectRows288 --> First300 + First300 --> PgSelectSingle302 + Last306{{"Last[306∈0] ➊"}}:::plan + PgSelectRows288 --> Last306 + Last306 --> PgSelectSingle308 + PgSelect286 --> Access312 + Lambda314{{"Lambda[314∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object313 --> Lambda314 + Lambda318{{"Lambda[318∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object317 --> Lambda318 + PgSelect324 --> PgSelectRows326 + PgSelect324 --> Access332 + PgPageInfo336{{"PgPageInfo[336∈0] ➊"}}:::plan + Connection322 --> PgPageInfo336 + First338{{"First[338∈0] ➊"}}:::plan + PgSelectRows326 --> First338 + First338 --> PgSelectSingle340 + Last344{{"Last[344∈0] ➊"}}:::plan + PgSelectRows326 --> Last344 + Last344 --> PgSelectSingle346 + PgSelect324 --> Access350 + Lambda352{{"Lambda[352∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object351 --> Lambda352 - __Item322[/"__Item[322∈19]
ᐸ321ᐳ"\]:::itemplan - PgSelectRows321 -.-> __Item322 - PgSelectSingle323{{"PgSelectSingle[323∈19]
ᐸtable_set_queryᐳ"}}:::plan - __Item322 --> PgSelectSingle323 - Edge326{{"Edge[326∈20]"}}:::plan - PgSelectSingle325{{"PgSelectSingle[325∈20]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor328{{"PgCursor[328∈20]"}}:::plan - PgSelectSingle325 & PgCursor328 & Connection318 --> Edge326 - PgSelectSingle325 & Access327 --> PgCursor328 - __Item324[/"__Item[324∈20]
ᐸ320ᐳ"\]:::itemplan - __ListTransform320 ==> __Item324 - __Item324 --> PgSelectSingle325 - PgClassExpression329{{"PgClassExpression[329∈22]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle325 --> PgClassExpression329 - Object390{{"Object[390∈23] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access385{{"Access[385∈23] ➊
ᐸ358.hasMoreᐳ"}}:::plan - Constant52 & Constant52 & Constant52 & Access385 --> Object390 - PgSelect358[["PgSelect[358∈23] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Constant1062 & Connection357 --> PgSelect358 - Object386{{"Object[386∈23] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant52 & Constant52 & Access385 --> Object386 - __ListTransform359[["__ListTransform[359∈23] ➊
ᐸeach:358ᐳ"]]:::plan - PgSelectRows360[["PgSelectRows[360∈23] ➊"]]:::plan - PgSelectRows360 & PgSelect358 --> __ListTransform359 - PgCursor376{{"PgCursor[376∈23] ➊"}}:::plan - PgSelectSingle374{{"PgSelectSingle[374∈23] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access366{{"Access[366∈23] ➊
ᐸ358.cursorDetailsᐳ"}}:::plan - PgSelectSingle374 & Access366 --> PgCursor376 - PgCursor382{{"PgCursor[382∈23] ➊"}}:::plan - PgSelectSingle380{{"PgSelectSingle[380∈23] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle380 & Access366 --> PgCursor382 - PgSelect358 --> PgSelectRows360 - PgSelect358 --> Access366 - PgPageInfo370{{"PgPageInfo[370∈23] ➊"}}:::plan - Connection357 --> PgPageInfo370 - First372{{"First[372∈23] ➊"}}:::plan - PgSelectRows360 --> First372 - First372 --> PgSelectSingle374 - Last378{{"Last[378∈23] ➊"}}:::plan - PgSelectRows360 --> Last378 - Last378 --> PgSelectSingle380 - PgSelect358 --> Access385 - Lambda387{{"Lambda[387∈23] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object386 --> Lambda387 - Lambda391{{"Lambda[391∈23] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda356{{"Lambda[356∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object355 --> Lambda356 + __InputObject357 --> ApplyInput362 + PgSelect363 --> PgSelectRows365 + PgSelect363 --> Access371 + PgPageInfo375{{"PgPageInfo[375∈0] ➊"}}:::plan + Connection361 --> PgPageInfo375 + First377{{"First[377∈0] ➊"}}:::plan + PgSelectRows365 --> First377 + First377 --> PgSelectSingle379 + Last383{{"Last[383∈0] ➊"}}:::plan + PgSelectRows365 --> Last383 + Last383 --> PgSelectSingle385 + PgSelect363 --> Access389 + Lambda391{{"Lambda[391∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object390 --> Lambda391 - __Item361[/"__Item[361∈24]
ᐸ360ᐳ"\]:::itemplan - PgSelectRows360 -.-> __Item361 - PgSelectSingle362{{"PgSelectSingle[362∈24]
ᐸtable_set_queryᐳ"}}:::plan - __Item361 --> PgSelectSingle362 - Edge365{{"Edge[365∈25]"}}:::plan - PgSelectSingle364{{"PgSelectSingle[364∈25]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor367{{"PgCursor[367∈25]"}}:::plan - PgSelectSingle364 & PgCursor367 & Connection357 --> Edge365 - PgSelectSingle364 & Access366 --> PgCursor367 - __Item363[/"__Item[363∈25]
ᐸ359ᐳ"\]:::itemplan - __ListTransform359 ==> __Item363 - __Item363 --> PgSelectSingle364 - PgClassExpression368{{"PgClassExpression[368∈27]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle364 --> PgClassExpression368 - PgSelect399[["PgSelect[399∈28] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Connection396 & Lambda397 & Lambda398 --> PgSelect399 - Object431{{"Object[431∈28] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access426{{"Access[426∈28] ➊
ᐸ399.hasMoreᐳ"}}:::plan - Constant52 & Constant52 & Constant52 & Access426 --> Object431 - Object427{{"Object[427∈28] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant52 & Constant52 & Access426 --> Object427 - __ListTransform400[["__ListTransform[400∈28] ➊
ᐸeach:399ᐳ"]]:::plan - PgSelectRows401[["PgSelectRows[401∈28] ➊"]]:::plan - PgSelectRows401 & PgSelect399 --> __ListTransform400 - PgCursor417{{"PgCursor[417∈28] ➊"}}:::plan - PgSelectSingle415{{"PgSelectSingle[415∈28] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access407{{"Access[407∈28] ➊
ᐸ399.cursorDetailsᐳ"}}:::plan - PgSelectSingle415 & Access407 --> PgCursor417 - PgCursor423{{"PgCursor[423∈28] ➊"}}:::plan - PgSelectSingle421{{"PgSelectSingle[421∈28] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle421 & Access407 --> PgCursor423 - PgSelect399 --> PgSelectRows401 - PgSelect399 --> Access407 - PgPageInfo411{{"PgPageInfo[411∈28] ➊"}}:::plan - Connection396 --> PgPageInfo411 - First413{{"First[413∈28] ➊"}}:::plan - PgSelectRows401 --> First413 - First413 --> PgSelectSingle415 - Last419{{"Last[419∈28] ➊"}}:::plan - PgSelectRows401 --> Last419 - Last419 --> PgSelectSingle421 - PgSelect399 --> Access426 - Lambda428{{"Lambda[428∈28] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object427 --> Lambda428 - Lambda432{{"Lambda[432∈28] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object431 --> Lambda432 - __Item402[/"__Item[402∈29]
ᐸ401ᐳ"\]:::itemplan - PgSelectRows401 -.-> __Item402 - PgSelectSingle403{{"PgSelectSingle[403∈29]
ᐸtable_set_queryᐳ"}}:::plan - __Item402 --> PgSelectSingle403 - Edge406{{"Edge[406∈30]"}}:::plan - PgSelectSingle405{{"PgSelectSingle[405∈30]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor408{{"PgCursor[408∈30]"}}:::plan - PgSelectSingle405 & PgCursor408 & Connection396 --> Edge406 - PgSelectSingle405 & Access407 --> PgCursor408 - __Item404[/"__Item[404∈30]
ᐸ400ᐳ"\]:::itemplan - __ListTransform400 ==> __Item404 - __Item404 --> PgSelectSingle405 - PgClassExpression409{{"PgClassExpression[409∈32]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle405 --> PgClassExpression409 - PgSelect440[["PgSelect[440∈33] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Connection437 & Lambda397 & Lambda398 --> PgSelect440 - Object472{{"Object[472∈33] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access467{{"Access[467∈33] ➊
ᐸ440.hasMoreᐳ"}}:::plan - Constant52 & Constant52 & Constant52 & Access467 --> Object472 - Object468{{"Object[468∈33] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant52 & Constant52 & Access467 --> Object468 - __ListTransform441[["__ListTransform[441∈33] ➊
ᐸeach:440ᐳ"]]:::plan - PgSelectRows442[["PgSelectRows[442∈33] ➊"]]:::plan - PgSelectRows442 & PgSelect440 --> __ListTransform441 - PgCursor458{{"PgCursor[458∈33] ➊"}}:::plan - PgSelectSingle456{{"PgSelectSingle[456∈33] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access448{{"Access[448∈33] ➊
ᐸ440.cursorDetailsᐳ"}}:::plan - PgSelectSingle456 & Access448 --> PgCursor458 - PgCursor464{{"PgCursor[464∈33] ➊"}}:::plan - PgSelectSingle462{{"PgSelectSingle[462∈33] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle462 & Access448 --> PgCursor464 - PgSelect440 --> PgSelectRows442 - PgSelect440 --> Access448 - PgPageInfo452{{"PgPageInfo[452∈33] ➊"}}:::plan - Connection437 --> PgPageInfo452 - First454{{"First[454∈33] ➊"}}:::plan - PgSelectRows442 --> First454 - First454 --> PgSelectSingle456 - Last460{{"Last[460∈33] ➊"}}:::plan - PgSelectRows442 --> Last460 - Last460 --> PgSelectSingle462 - PgSelect440 --> Access467 - Lambda469{{"Lambda[469∈33] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object468 --> Lambda469 - Lambda473{{"Lambda[473∈33] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object472 --> Lambda473 - __Item443[/"__Item[443∈34]
ᐸ442ᐳ"\]:::itemplan - PgSelectRows442 -.-> __Item443 - PgSelectSingle444{{"PgSelectSingle[444∈34]
ᐸtable_set_queryᐳ"}}:::plan - __Item443 --> PgSelectSingle444 - Edge447{{"Edge[447∈35]"}}:::plan - PgSelectSingle446{{"PgSelectSingle[446∈35]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor449{{"PgCursor[449∈35]"}}:::plan - PgSelectSingle446 & PgCursor449 & Connection437 --> Edge447 - PgSelectSingle446 & Access448 --> PgCursor449 - __Item445[/"__Item[445∈35]
ᐸ441ᐳ"\]:::itemplan - __ListTransform441 ==> __Item445 - __Item445 --> PgSelectSingle446 - PgClassExpression450{{"PgClassExpression[450∈37]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle446 --> PgClassExpression450 - PgSelect480[["PgSelect[480∈38] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Connection478 & Lambda397 & Constant1044 --> PgSelect480 - Object512{{"Object[512∈38] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access507{{"Access[507∈38] ➊
ᐸ480.hasMoreᐳ"}}:::plan - Constant52 & Constant1044 & Constant52 & Access507 --> Object512 - Object508{{"Object[508∈38] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant52 & Constant1044 & Access507 --> Object508 - __ListTransform481[["__ListTransform[481∈38] ➊
ᐸeach:480ᐳ"]]:::plan - PgSelectRows482[["PgSelectRows[482∈38] ➊"]]:::plan - PgSelectRows482 & PgSelect480 --> __ListTransform481 - PgCursor498{{"PgCursor[498∈38] ➊"}}:::plan - PgSelectSingle496{{"PgSelectSingle[496∈38] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access488{{"Access[488∈38] ➊
ᐸ480.cursorDetailsᐳ"}}:::plan - PgSelectSingle496 & Access488 --> PgCursor498 - PgCursor504{{"PgCursor[504∈38] ➊"}}:::plan - PgSelectSingle502{{"PgSelectSingle[502∈38] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle502 & Access488 --> PgCursor504 - PgSelect480 --> PgSelectRows482 - PgSelect480 --> Access488 - PgPageInfo492{{"PgPageInfo[492∈38] ➊"}}:::plan - Connection478 --> PgPageInfo492 - First494{{"First[494∈38] ➊"}}:::plan - PgSelectRows482 --> First494 - First494 --> PgSelectSingle496 - Last500{{"Last[500∈38] ➊"}}:::plan - PgSelectRows482 --> Last500 - Last500 --> PgSelectSingle502 - PgSelect480 --> Access507 - Lambda509{{"Lambda[509∈38] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object508 --> Lambda509 - Lambda513{{"Lambda[513∈38] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object512 --> Lambda513 - __Item483[/"__Item[483∈39]
ᐸ482ᐳ"\]:::itemplan - PgSelectRows482 -.-> __Item483 - PgSelectSingle484{{"PgSelectSingle[484∈39]
ᐸtable_set_queryᐳ"}}:::plan - __Item483 --> PgSelectSingle484 - Edge487{{"Edge[487∈40]"}}:::plan - PgSelectSingle486{{"PgSelectSingle[486∈40]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor489{{"PgCursor[489∈40]"}}:::plan - PgSelectSingle486 & PgCursor489 & Connection478 --> Edge487 - PgSelectSingle486 & Access488 --> PgCursor489 - __Item485[/"__Item[485∈40]
ᐸ481ᐳ"\]:::itemplan - __ListTransform481 ==> __Item485 - __Item485 --> PgSelectSingle486 - PgClassExpression490{{"PgClassExpression[490∈42]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle486 --> PgClassExpression490 - PgSelect520[["PgSelect[520∈43] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Connection518 & Lambda397 & Constant1044 --> PgSelect520 - Object552{{"Object[552∈43] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access547{{"Access[547∈43] ➊
ᐸ520.hasMoreᐳ"}}:::plan - Constant1044 & Constant52 & Constant52 & Access547 --> Object552 - Object548{{"Object[548∈43] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1044 & Constant52 & Access547 --> Object548 - __ListTransform521[["__ListTransform[521∈43] ➊
ᐸeach:520ᐳ"]]:::plan - PgSelectRows522[["PgSelectRows[522∈43] ➊"]]:::plan - PgSelectRows522 & PgSelect520 --> __ListTransform521 - PgCursor538{{"PgCursor[538∈43] ➊"}}:::plan - PgSelectSingle536{{"PgSelectSingle[536∈43] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access528{{"Access[528∈43] ➊
ᐸ520.cursorDetailsᐳ"}}:::plan - PgSelectSingle536 & Access528 --> PgCursor538 - PgCursor544{{"PgCursor[544∈43] ➊"}}:::plan - PgSelectSingle542{{"PgSelectSingle[542∈43] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle542 & Access528 --> PgCursor544 - PgSelect520 --> PgSelectRows522 - PgSelect520 --> Access528 - PgPageInfo532{{"PgPageInfo[532∈43] ➊"}}:::plan - Connection518 --> PgPageInfo532 - First534{{"First[534∈43] ➊"}}:::plan - PgSelectRows522 --> First534 - First534 --> PgSelectSingle536 - Last540{{"Last[540∈43] ➊"}}:::plan - PgSelectRows522 --> Last540 - Last540 --> PgSelectSingle542 - PgSelect520 --> Access547 - Lambda549{{"Lambda[549∈43] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Lambda395{{"Lambda[395∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object394 --> Lambda395 + Constant1053{{"Constant[1053∈0] ➊
ᐸ'WyJuYXR1cmFsIiw1XQ=='ᐳ"}}:::plan + Constant1053 --> Lambda401 + Constant1054{{"Constant[1054∈0] ➊
ᐸ'WyJuYXR1cmFsIiwzXQ=='ᐳ"}}:::plan + Constant1054 --> Lambda402 + PgSelect403 --> PgSelectRows405 + PgSelect403 --> Access411 + PgPageInfo415{{"PgPageInfo[415∈0] ➊"}}:::plan + Connection400 --> PgPageInfo415 + First417{{"First[417∈0] ➊"}}:::plan + PgSelectRows405 --> First417 + First417 --> PgSelectSingle419 + Last423{{"Last[423∈0] ➊"}}:::plan + PgSelectRows405 --> Last423 + Last423 --> PgSelectSingle425 + PgSelect403 --> Access429 + Lambda431{{"Lambda[431∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object430 --> Lambda431 + Lambda435{{"Lambda[435∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object434 --> Lambda435 + PgSelect443 --> PgSelectRows445 + PgSelect443 --> Access451 + PgPageInfo455{{"PgPageInfo[455∈0] ➊"}}:::plan + Connection440 --> PgPageInfo455 + First457{{"First[457∈0] ➊"}}:::plan + PgSelectRows445 --> First457 + First457 --> PgSelectSingle459 + Last463{{"Last[463∈0] ➊"}}:::plan + PgSelectRows445 --> Last463 + Last463 --> PgSelectSingle465 + PgSelect443 --> Access469 + Lambda471{{"Lambda[471∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object470 --> Lambda471 + Lambda475{{"Lambda[475∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object474 --> Lambda475 + PgSelect482 --> PgSelectRows484 + PgSelect482 --> Access490 + PgPageInfo494{{"PgPageInfo[494∈0] ➊"}}:::plan + Connection480 --> PgPageInfo494 + First496{{"First[496∈0] ➊"}}:::plan + PgSelectRows484 --> First496 + First496 --> PgSelectSingle498 + Last502{{"Last[502∈0] ➊"}}:::plan + PgSelectRows484 --> Last502 + Last502 --> PgSelectSingle504 + PgSelect482 --> Access508 + Lambda510{{"Lambda[510∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object509 --> Lambda510 + Lambda514{{"Lambda[514∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object513 --> Lambda514 + PgSelect521 --> PgSelectRows523 + PgSelect521 --> Access529 + PgPageInfo533{{"PgPageInfo[533∈0] ➊"}}:::plan + Connection519 --> PgPageInfo533 + First535{{"First[535∈0] ➊"}}:::plan + PgSelectRows523 --> First535 + First535 --> PgSelectSingle537 + Last541{{"Last[541∈0] ➊"}}:::plan + PgSelectRows523 --> Last541 + Last541 --> PgSelectSingle543 + PgSelect521 --> Access547 + Lambda549{{"Lambda[549∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan Object548 --> Lambda549 - Lambda553{{"Lambda[553∈43] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Lambda553{{"Lambda[553∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan Object552 --> Lambda553 - __Item523[/"__Item[523∈44]
ᐸ522ᐳ"\]:::itemplan - PgSelectRows522 -.-> __Item523 - PgSelectSingle524{{"PgSelectSingle[524∈44]
ᐸtable_set_queryᐳ"}}:::plan - __Item523 --> PgSelectSingle524 - Edge527{{"Edge[527∈45]"}}:::plan - PgSelectSingle526{{"PgSelectSingle[526∈45]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor529{{"PgCursor[529∈45]"}}:::plan - PgSelectSingle526 & PgCursor529 & Connection518 --> Edge527 - PgSelectSingle526 & Access528 --> PgCursor529 - __Item525[/"__Item[525∈45]
ᐸ521ᐳ"\]:::itemplan - __ListTransform521 ==> __Item525 - __Item525 --> PgSelectSingle526 - PgClassExpression530{{"PgClassExpression[530∈47]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle526 --> PgClassExpression530 - PgSelect560[["PgSelect[560∈48] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Connection558 & Lambda398 & Constant1044 --> PgSelect560 - Object592{{"Object[592∈48] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access587{{"Access[587∈48] ➊
ᐸ560.hasMoreᐳ"}}:::plan - Constant1044 & Constant52 & Constant52 & Access587 --> Object592 - Object588{{"Object[588∈48] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1044 & Constant52 & Access587 --> Object588 - __ListTransform561[["__ListTransform[561∈48] ➊
ᐸeach:560ᐳ"]]:::plan - PgSelectRows562[["PgSelectRows[562∈48] ➊"]]:::plan - PgSelectRows562 & PgSelect560 --> __ListTransform561 - PgCursor578{{"PgCursor[578∈48] ➊"}}:::plan - PgSelectSingle576{{"PgSelectSingle[576∈48] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access568{{"Access[568∈48] ➊
ᐸ560.cursorDetailsᐳ"}}:::plan - PgSelectSingle576 & Access568 --> PgCursor578 - PgCursor584{{"PgCursor[584∈48] ➊"}}:::plan - PgSelectSingle582{{"PgSelectSingle[582∈48] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle582 & Access568 --> PgCursor584 PgSelect560 --> PgSelectRows562 PgSelect560 --> Access568 - PgPageInfo572{{"PgPageInfo[572∈48] ➊"}}:::plan + PgPageInfo572{{"PgPageInfo[572∈0] ➊"}}:::plan Connection558 --> PgPageInfo572 - First574{{"First[574∈48] ➊"}}:::plan + First574{{"First[574∈0] ➊"}}:::plan PgSelectRows562 --> First574 First574 --> PgSelectSingle576 - Last580{{"Last[580∈48] ➊"}}:::plan + Last580{{"Last[580∈0] ➊"}}:::plan PgSelectRows562 --> Last580 Last580 --> PgSelectSingle582 - PgSelect560 --> Access587 - Lambda589{{"Lambda[589∈48] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object588 --> Lambda589 - Lambda593{{"Lambda[593∈48] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object592 --> Lambda593 - __Item563[/"__Item[563∈49]
ᐸ562ᐳ"\]:::itemplan + PgSelect560 --> Access586 + Lambda588{{"Lambda[588∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object587 --> Lambda588 + Lambda592{{"Lambda[592∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object591 --> Lambda592 + PgSelect598 --> PgSelectRows600 + PgSelect598 --> Access606 + PgPageInfo610{{"PgPageInfo[610∈0] ➊"}}:::plan + Connection597 --> PgPageInfo610 + First612{{"First[612∈0] ➊"}}:::plan + PgSelectRows600 --> First612 + First612 --> PgSelectSingle614 + Last618{{"Last[618∈0] ➊"}}:::plan + PgSelectRows600 --> Last618 + Last618 --> PgSelectSingle620 + PgSelect598 --> Access624 + Lambda626{{"Lambda[626∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object625 --> Lambda626 + Lambda630{{"Lambda[630∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object629 --> Lambda630 + PgSelect636 --> PgSelectRows638 + PgSelect636 --> Access644 + PgPageInfo648{{"PgPageInfo[648∈0] ➊"}}:::plan + Connection635 --> PgPageInfo648 + First650{{"First[650∈0] ➊"}}:::plan + PgSelectRows638 --> First650 + First650 --> PgSelectSingle652 + Last656{{"Last[656∈0] ➊"}}:::plan + PgSelectRows638 --> Last656 + Last656 --> PgSelectSingle658 + PgSelect636 --> Access662 + Lambda664{{"Lambda[664∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object663 --> Lambda664 + Lambda668{{"Lambda[668∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object667 --> Lambda668 + PgSelect674 --> PgSelectRows676 + PgSelect674 --> Access682 + PgPageInfo686{{"PgPageInfo[686∈0] ➊"}}:::plan + Connection673 --> PgPageInfo686 + First688{{"First[688∈0] ➊"}}:::plan + PgSelectRows676 --> First688 + First688 --> PgSelectSingle690 + Last694{{"Last[694∈0] ➊"}}:::plan + PgSelectRows676 --> Last694 + Last694 --> PgSelectSingle696 + PgSelect674 --> Access700 + Lambda702{{"Lambda[702∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object701 --> Lambda702 + Lambda706{{"Lambda[706∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object705 --> Lambda706 + PgSelect712 --> PgSelectRows714 + PgSelect712 --> Access720 + PgPageInfo724{{"PgPageInfo[724∈0] ➊"}}:::plan + Connection711 --> PgPageInfo724 + First726{{"First[726∈0] ➊"}}:::plan + PgSelectRows714 --> First726 + First726 --> PgSelectSingle728 + Last732{{"Last[732∈0] ➊"}}:::plan + PgSelectRows714 --> Last732 + Last732 --> PgSelectSingle734 + PgSelect712 --> Access738 + Lambda740{{"Lambda[740∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object739 --> Lambda740 + Lambda744{{"Lambda[744∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object743 --> Lambda744 + Constant1058{{"Constant[1058∈0] ➊
ᐸ'WyJuYXR1cmFsIiwxXQ=='ᐳ"}}:::plan + Constant1058 --> Lambda750 + PgSelect751 --> PgSelectRows753 + PgSelect751 --> Access759 + PgPageInfo763{{"PgPageInfo[763∈0] ➊"}}:::plan + Connection749 --> PgPageInfo763 + First765{{"First[765∈0] ➊"}}:::plan + PgSelectRows753 --> First765 + First765 --> PgSelectSingle767 + Last771{{"Last[771∈0] ➊"}}:::plan + PgSelectRows753 --> Last771 + Last771 --> PgSelectSingle773 + PgSelect751 --> Access777 + Lambda779{{"Lambda[779∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object778 --> Lambda779 + Lambda783{{"Lambda[783∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object782 --> Lambda783 + PgSelect791 --> PgSelectRows793 + PgSelect791 --> Access799 + PgPageInfo803{{"PgPageInfo[803∈0] ➊"}}:::plan + Connection789 --> PgPageInfo803 + First805{{"First[805∈0] ➊"}}:::plan + PgSelectRows793 --> First805 + First805 --> PgSelectSingle807 + Last811{{"Last[811∈0] ➊"}}:::plan + PgSelectRows793 --> Last811 + Last811 --> PgSelectSingle813 + PgSelect791 --> Access817 + Lambda819{{"Lambda[819∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object818 --> Lambda819 + Lambda823{{"Lambda[823∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object822 --> Lambda823 + PgSelect828 --> PgSelectRows830 + PgSelect828 --> Access836 + PgPageInfo840{{"PgPageInfo[840∈0] ➊"}}:::plan + Connection827 --> PgPageInfo840 + First842{{"First[842∈0] ➊"}}:::plan + PgSelectRows830 --> First842 + First842 --> PgSelectSingle844 + Last848{{"Last[848∈0] ➊"}}:::plan + PgSelectRows830 --> Last848 + Last848 --> PgSelectSingle850 + PgSelect828 --> Access854 + Lambda856{{"Lambda[856∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object855 --> Lambda856 + Lambda860{{"Lambda[860∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object859 --> Lambda860 + Constant1059{{"Constant[1059∈0] ➊
ᐸ'WyJuYXR1cmFsIiwyXQ=='ᐳ"}}:::plan + Constant1059 --> Lambda866 + PgSelect867 --> PgSelectRows869 + PgSelect867 --> Access875 + PgPageInfo879{{"PgPageInfo[879∈0] ➊"}}:::plan + Connection865 --> PgPageInfo879 + First881{{"First[881∈0] ➊"}}:::plan + PgSelectRows869 --> First881 + First881 --> PgSelectSingle883 + Last887{{"Last[887∈0] ➊"}}:::plan + PgSelectRows869 --> Last887 + Last887 --> PgSelectSingle889 + PgSelect867 --> Access893 + Lambda895{{"Lambda[895∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object894 --> Lambda895 + Lambda899{{"Lambda[899∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object898 --> Lambda899 + PgSelect906 --> PgSelectRows908 + Access916{{"Access[916∈0] ➊
ᐸ906.cursorDetailsᐳ"}}:::plan + PgSelect906 --> Access916 + First919{{"First[919∈0] ➊"}}:::plan + PgSelectRows920[["PgSelectRows[920∈0] ➊"]]:::plan + PgSelectRows920 --> First919 + PgSelect918 --> PgSelectRows920 + PgSelectSingle921{{"PgSelectSingle[921∈0] ➊
ᐸint_set_queryᐳ"}}:::plan + First919 --> PgSelectSingle921 + PgClassExpression922{{"PgClassExpression[922∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle921 --> PgClassExpression922 + PgSelect923[["PgSelect[923∈0] ➊
ᐸno_args_queryᐳ"]]:::plan + Object10 --> PgSelect923 + First925{{"First[925∈0] ➊"}}:::plan + PgSelectRows926[["PgSelectRows[926∈0] ➊"]]:::plan + PgSelectRows926 --> First925 + PgSelect923 --> PgSelectRows926 + PgSelectSingle927{{"PgSelectSingle[927∈0] ➊
ᐸno_args_queryᐳ"}}:::plan + First925 --> PgSelectSingle927 + PgClassExpression928{{"PgClassExpression[928∈0] ➊
ᐸ__no_args_query__.vᐳ"}}:::plan + PgSelectSingle927 --> PgClassExpression928 + PgSelect932 --> PgSelectRows934 + First945{{"First[945∈0] ➊"}}:::plan + PgSelectRows946[["PgSelectRows[946∈0] ➊"]]:::plan + PgSelectRows946 --> First945 + PgSelect944 --> PgSelectRows946 + PgSelectSingle947{{"PgSelectSingle[947∈0] ➊
ᐸstatic_big_integerᐳ"}}:::plan + First945 --> PgSelectSingle947 + PgClassExpression948{{"PgClassExpression[948∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle947 --> PgClassExpression948 + BakedInput958{{"BakedInput[958∈0] ➊"}}:::plan + __InputObject949 --> BakedInput958 + BakedInput958 --> PgFromExpression961 + PgSelectRows962[["PgSelectRows[962∈0] ➊"]]:::plan + PgSelect959 --> PgSelectRows962 + PgSelect976[["PgSelect[976∈0] ➊
ᐸquery_text_arrayᐳ"]]:::plan + Object10 --> PgSelect976 + First978{{"First[978∈0] ➊"}}:::plan + PgSelectRows979[["PgSelectRows[979∈0] ➊"]]:::plan + PgSelectRows979 --> First978 + PgSelect976 --> PgSelectRows979 + PgSelectSingle980{{"PgSelectSingle[980∈0] ➊
ᐸquery_text_arrayᐳ"}}:::plan + First978 --> PgSelectSingle980 + PgClassExpression981{{"PgClassExpression[981∈0] ➊
ᐸ__query_text_array__.vᐳ"}}:::plan + PgSelectSingle980 --> PgClassExpression981 + PgSelect983[["PgSelect[983∈0] ➊
ᐸquery_interval_arrayᐳ"]]:::plan + Object10 --> PgSelect983 + First985{{"First[985∈0] ➊"}}:::plan + PgSelectRows986[["PgSelectRows[986∈0] ➊"]]:::plan + PgSelectRows986 --> First985 + PgSelect983 --> PgSelectRows986 + PgSelectSingle987{{"PgSelectSingle[987∈0] ➊
ᐸquery_interval_arrayᐳ"}}:::plan + First985 --> PgSelectSingle987 + PgClassExpression988{{"PgClassExpression[988∈0] ➊
ᐸ__query_in..._array__.vᐳ"}}:::plan + PgSelectSingle987 --> PgClassExpression988 + PgSelect999 --> PgSelectRows1000 + Access1020{{"Access[1020∈0] ➊
ᐸ999.cursorDetailsᐳ"}}:::plan + PgSelect999 --> Access1020 + First1026{{"First[1026∈0] ➊"}}:::plan + PgSelectRows1027[["PgSelectRows[1027∈0] ➊"]]:::plan + PgSelectRows1027 --> First1026 + PgSelect1025 --> PgSelectRows1027 + PgSelectSingle1028{{"PgSelectSingle[1028∈0] ➊
ᐸquery_interval_setᐳ"}}:::plan + First1026 --> PgSelectSingle1028 + PgClassExpression1029{{"PgClassExpression[1029∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle1028 --> PgClassExpression1029 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item201[/"__Item[201∈1]
ᐸ200ᐳ"\]:::itemplan + PgSelectRows200 -.-> __Item201 + PgSelectSingle202{{"PgSelectSingle[202∈1]
ᐸcompound_type_set_queryᐳ"}}:::plan + __Item201 --> PgSelectSingle202 + Edge205{{"Edge[205∈2]"}}:::plan + PgSelectSingle204{{"PgSelectSingle[204∈2]
ᐸcompound_type_set_queryᐳ"}}:::plan + PgCursor207{{"PgCursor[207∈2]"}}:::plan + PgCursor207 -->|rejectNull| Edge205 + PgSelectSingle204 & Connection197 --> Edge205 + PgSelectSingle204 & Access206 --> PgCursor207 + __Item203[/"__Item[203∈2]
ᐸ199ᐳ"\]:::itemplan + __ListTransform199 ==> __Item203 + __Item203 --> PgSelectSingle204 + PgClassExpression208{{"PgClassExpression[208∈2]
ᐸ__compound...uery__.”a”ᐳ"}}:::plan + PgSelectSingle204 --> PgClassExpression208 + PgClassExpression209{{"PgClassExpression[209∈2]
ᐸ__compound...uery__.”b”ᐳ"}}:::plan + PgSelectSingle204 --> PgClassExpression209 + PgClassExpression210{{"PgClassExpression[210∈2]
ᐸ__compound...uery__.”c”ᐳ"}}:::plan + PgSelectSingle204 --> PgClassExpression210 + PgClassExpression211{{"PgClassExpression[211∈2]
ᐸ__compound...uery__.”d”ᐳ"}}:::plan + PgSelectSingle204 --> PgClassExpression211 + PgClassExpression212{{"PgClassExpression[212∈2]
ᐸ__compound...uery__.”e”ᐳ"}}:::plan + PgSelectSingle204 --> PgClassExpression212 + PgClassExpression213{{"PgClassExpression[213∈2]
ᐸ__compound...uery__.”f”ᐳ"}}:::plan + PgSelectSingle204 --> PgClassExpression213 + PgClassExpression214{{"PgClassExpression[214∈2]
ᐸ__compound...uery__.”g”ᐳ"}}:::plan + PgSelectSingle204 --> PgClassExpression214 + PgClassExpression218{{"PgClassExpression[218∈2]
ᐸ__compound....”foo_bar”ᐳ"}}:::plan + PgSelectSingle204 --> PgClassExpression218 + __Item257[/"__Item[257∈3]
ᐸ256ᐳ"\]:::itemplan + PgSelectRows256 ==> __Item257 + PgSelectSingle258{{"PgSelectSingle[258∈3]
ᐸcompound_type_array_queryᐳ"}}:::plan + __Item257 --> PgSelectSingle258 + PgClassExpression259{{"PgClassExpression[259∈3]
ᐸ__compound...uery__.”a”ᐳ"}}:::plan + PgSelectSingle258 --> PgClassExpression259 + PgClassExpression260{{"PgClassExpression[260∈3]
ᐸ__compound...uery__.”b”ᐳ"}}:::plan + PgSelectSingle258 --> PgClassExpression260 + PgClassExpression261{{"PgClassExpression[261∈3]
ᐸ__compound...uery__.”c”ᐳ"}}:::plan + PgSelectSingle258 --> PgClassExpression261 + PgClassExpression262{{"PgClassExpression[262∈3]
ᐸ__compound...uery__.”d”ᐳ"}}:::plan + PgSelectSingle258 --> PgClassExpression262 + PgClassExpression263{{"PgClassExpression[263∈3]
ᐸ__compound...uery__.”e”ᐳ"}}:::plan + PgSelectSingle258 --> PgClassExpression263 + PgClassExpression264{{"PgClassExpression[264∈3]
ᐸ__compound...uery__.”f”ᐳ"}}:::plan + PgSelectSingle258 --> PgClassExpression264 + PgClassExpression265{{"PgClassExpression[265∈3]
ᐸ__compound...uery__.”g”ᐳ"}}:::plan + PgSelectSingle258 --> PgClassExpression265 + PgClassExpression269{{"PgClassExpression[269∈3]
ᐸ__compound....”foo_bar”ᐳ"}}:::plan + PgSelectSingle258 --> PgClassExpression269 + __Item289[/"__Item[289∈4]
ᐸ288ᐳ"\]:::itemplan + PgSelectRows288 -.-> __Item289 + PgSelectSingle290{{"PgSelectSingle[290∈4]
ᐸtable_set_queryᐳ"}}:::plan + __Item289 --> PgSelectSingle290 + Edge293{{"Edge[293∈5]"}}:::plan + PgSelectSingle292{{"PgSelectSingle[292∈5]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor295{{"PgCursor[295∈5]"}}:::plan + PgCursor295 -->|rejectNull| Edge293 + PgSelectSingle292 & Connection285 --> Edge293 + PgSelectSingle292 & Access294 --> PgCursor295 + __Item291[/"__Item[291∈5]
ᐸ287ᐳ"\]:::itemplan + __ListTransform287 ==> __Item291 + __Item291 --> PgSelectSingle292 + PgClassExpression296{{"PgClassExpression[296∈5]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle292 --> PgClassExpression296 + __Item327[/"__Item[327∈6]
ᐸ326ᐳ"\]:::itemplan + PgSelectRows326 -.-> __Item327 + PgSelectSingle328{{"PgSelectSingle[328∈6]
ᐸtable_set_queryᐳ"}}:::plan + __Item327 --> PgSelectSingle328 + Edge331{{"Edge[331∈7]"}}:::plan + PgSelectSingle330{{"PgSelectSingle[330∈7]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor333{{"PgCursor[333∈7]"}}:::plan + PgCursor333 -->|rejectNull| Edge331 + PgSelectSingle330 & Connection322 --> Edge331 + PgSelectSingle330 & Access332 --> PgCursor333 + __Item329[/"__Item[329∈7]
ᐸ325ᐳ"\]:::itemplan + __ListTransform325 ==> __Item329 + __Item329 --> PgSelectSingle330 + PgClassExpression334{{"PgClassExpression[334∈7]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle330 --> PgClassExpression334 + __Item366[/"__Item[366∈8]
ᐸ365ᐳ"\]:::itemplan + PgSelectRows365 -.-> __Item366 + PgSelectSingle367{{"PgSelectSingle[367∈8]
ᐸtable_set_queryᐳ"}}:::plan + __Item366 --> PgSelectSingle367 + Edge370{{"Edge[370∈9]"}}:::plan + PgSelectSingle369{{"PgSelectSingle[369∈9]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor372{{"PgCursor[372∈9]"}}:::plan + PgCursor372 -->|rejectNull| Edge370 + PgSelectSingle369 & Connection361 --> Edge370 + PgSelectSingle369 & Access371 --> PgCursor372 + __Item368[/"__Item[368∈9]
ᐸ364ᐳ"\]:::itemplan + __ListTransform364 ==> __Item368 + __Item368 --> PgSelectSingle369 + PgClassExpression373{{"PgClassExpression[373∈9]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle369 --> PgClassExpression373 + __Item406[/"__Item[406∈10]
ᐸ405ᐳ"\]:::itemplan + PgSelectRows405 -.-> __Item406 + PgSelectSingle407{{"PgSelectSingle[407∈10]
ᐸtable_set_queryᐳ"}}:::plan + __Item406 --> PgSelectSingle407 + Edge410{{"Edge[410∈11]"}}:::plan + PgSelectSingle409{{"PgSelectSingle[409∈11]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor412{{"PgCursor[412∈11]"}}:::plan + PgCursor412 -->|rejectNull| Edge410 + PgSelectSingle409 & Connection400 --> Edge410 + PgSelectSingle409 & Access411 --> PgCursor412 + __Item408[/"__Item[408∈11]
ᐸ404ᐳ"\]:::itemplan + __ListTransform404 ==> __Item408 + __Item408 --> PgSelectSingle409 + PgClassExpression413{{"PgClassExpression[413∈11]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle409 --> PgClassExpression413 + __Item446[/"__Item[446∈12]
ᐸ445ᐳ"\]:::itemplan + PgSelectRows445 -.-> __Item446 + PgSelectSingle447{{"PgSelectSingle[447∈12]
ᐸtable_set_queryᐳ"}}:::plan + __Item446 --> PgSelectSingle447 + Edge450{{"Edge[450∈13]"}}:::plan + PgSelectSingle449{{"PgSelectSingle[449∈13]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor452{{"PgCursor[452∈13]"}}:::plan + PgCursor452 -->|rejectNull| Edge450 + PgSelectSingle449 & Connection440 --> Edge450 + PgSelectSingle449 & Access451 --> PgCursor452 + __Item448[/"__Item[448∈13]
ᐸ444ᐳ"\]:::itemplan + __ListTransform444 ==> __Item448 + __Item448 --> PgSelectSingle449 + PgClassExpression453{{"PgClassExpression[453∈13]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle449 --> PgClassExpression453 + __Item485[/"__Item[485∈14]
ᐸ484ᐳ"\]:::itemplan + PgSelectRows484 -.-> __Item485 + PgSelectSingle486{{"PgSelectSingle[486∈14]
ᐸtable_set_queryᐳ"}}:::plan + __Item485 --> PgSelectSingle486 + Edge489{{"Edge[489∈15]"}}:::plan + PgSelectSingle488{{"PgSelectSingle[488∈15]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor491{{"PgCursor[491∈15]"}}:::plan + PgCursor491 -->|rejectNull| Edge489 + PgSelectSingle488 & Connection480 --> Edge489 + PgSelectSingle488 & Access490 --> PgCursor491 + __Item487[/"__Item[487∈15]
ᐸ483ᐳ"\]:::itemplan + __ListTransform483 ==> __Item487 + __Item487 --> PgSelectSingle488 + PgClassExpression492{{"PgClassExpression[492∈15]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle488 --> PgClassExpression492 + __Item524[/"__Item[524∈16]
ᐸ523ᐳ"\]:::itemplan + PgSelectRows523 -.-> __Item524 + PgSelectSingle525{{"PgSelectSingle[525∈16]
ᐸtable_set_queryᐳ"}}:::plan + __Item524 --> PgSelectSingle525 + Edge528{{"Edge[528∈17]"}}:::plan + PgSelectSingle527{{"PgSelectSingle[527∈17]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor530{{"PgCursor[530∈17]"}}:::plan + PgCursor530 -->|rejectNull| Edge528 + PgSelectSingle527 & Connection519 --> Edge528 + PgSelectSingle527 & Access529 --> PgCursor530 + __Item526[/"__Item[526∈17]
ᐸ522ᐳ"\]:::itemplan + __ListTransform522 ==> __Item526 + __Item526 --> PgSelectSingle527 + PgClassExpression531{{"PgClassExpression[531∈17]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle527 --> PgClassExpression531 + __Item563[/"__Item[563∈18]
ᐸ562ᐳ"\]:::itemplan PgSelectRows562 -.-> __Item563 - PgSelectSingle564{{"PgSelectSingle[564∈49]
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle564{{"PgSelectSingle[564∈18]
ᐸtable_set_queryᐳ"}}:::plan __Item563 --> PgSelectSingle564 - Edge567{{"Edge[567∈50]"}}:::plan - PgSelectSingle566{{"PgSelectSingle[566∈50]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor569{{"PgCursor[569∈50]"}}:::plan - PgSelectSingle566 & PgCursor569 & Connection558 --> Edge567 + Edge567{{"Edge[567∈19]"}}:::plan + PgSelectSingle566{{"PgSelectSingle[566∈19]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor569{{"PgCursor[569∈19]"}}:::plan + PgCursor569 -->|rejectNull| Edge567 + PgSelectSingle566 & Connection558 --> Edge567 PgSelectSingle566 & Access568 --> PgCursor569 - __Item565[/"__Item[565∈50]
ᐸ561ᐳ"\]:::itemplan + __Item565[/"__Item[565∈19]
ᐸ561ᐳ"\]:::itemplan __ListTransform561 ==> __Item565 __Item565 --> PgSelectSingle566 - PgClassExpression570{{"PgClassExpression[570∈52]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgClassExpression570{{"PgClassExpression[570∈19]
ᐸ__table_se...full_name”ᐳ"}}:::plan PgSelectSingle566 --> PgClassExpression570 - PgSelect599[["PgSelect[599∈53] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Connection598 & Constant1044 & Constant1044 --> PgSelect599 - Object631{{"Object[631∈53] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access626{{"Access[626∈53] ➊
ᐸ599.hasMoreᐳ"}}:::plan - Constant1044 & Constant52 & Constant1044 & Access626 --> Object631 - Object627{{"Object[627∈53] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1044 & Constant52 & Access626 --> Object627 - __ListTransform600[["__ListTransform[600∈53] ➊
ᐸeach:599ᐳ"]]:::plan - PgSelectRows601[["PgSelectRows[601∈53] ➊"]]:::plan - PgSelectRows601 & PgSelect599 --> __ListTransform600 - PgCursor617{{"PgCursor[617∈53] ➊"}}:::plan - PgSelectSingle615{{"PgSelectSingle[615∈53] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access607{{"Access[607∈53] ➊
ᐸ599.cursorDetailsᐳ"}}:::plan - PgSelectSingle615 & Access607 --> PgCursor617 - PgCursor623{{"PgCursor[623∈53] ➊"}}:::plan - PgSelectSingle621{{"PgSelectSingle[621∈53] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle621 & Access607 --> PgCursor623 - PgSelect599 --> PgSelectRows601 - PgSelect599 --> Access607 - PgPageInfo611{{"PgPageInfo[611∈53] ➊"}}:::plan - Connection598 --> PgPageInfo611 - First613{{"First[613∈53] ➊"}}:::plan - PgSelectRows601 --> First613 - First613 --> PgSelectSingle615 - Last619{{"Last[619∈53] ➊"}}:::plan - PgSelectRows601 --> Last619 - Last619 --> PgSelectSingle621 - PgSelect599 --> Access626 - Lambda628{{"Lambda[628∈53] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object627 --> Lambda628 - Lambda632{{"Lambda[632∈53] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object631 --> Lambda632 - __Item602[/"__Item[602∈54]
ᐸ601ᐳ"\]:::itemplan - PgSelectRows601 -.-> __Item602 - PgSelectSingle603{{"PgSelectSingle[603∈54]
ᐸtable_set_queryᐳ"}}:::plan - __Item602 --> PgSelectSingle603 - Edge606{{"Edge[606∈55]"}}:::plan - PgSelectSingle605{{"PgSelectSingle[605∈55]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor608{{"PgCursor[608∈55]"}}:::plan - PgSelectSingle605 & PgCursor608 & Connection598 --> Edge606 - PgSelectSingle605 & Access607 --> PgCursor608 - __Item604[/"__Item[604∈55]
ᐸ600ᐳ"\]:::itemplan - __ListTransform600 ==> __Item604 - __Item604 --> PgSelectSingle605 - PgClassExpression609{{"PgClassExpression[609∈57]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle605 --> PgClassExpression609 - PgSelect638[["PgSelect[638∈58] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Connection637 & Constant1044 & Constant1065 --> PgSelect638 - Object670{{"Object[670∈58] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access665{{"Access[665∈58] ➊
ᐸ638.hasMoreᐳ"}}:::plan - Constant1044 & Constant52 & Constant1065 & Access665 --> Object670 - Object666{{"Object[666∈58] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1044 & Constant52 & Access665 --> Object666 - __ListTransform639[["__ListTransform[639∈58] ➊
ᐸeach:638ᐳ"]]:::plan - PgSelectRows640[["PgSelectRows[640∈58] ➊"]]:::plan - PgSelectRows640 & PgSelect638 --> __ListTransform639 - PgCursor656{{"PgCursor[656∈58] ➊"}}:::plan - PgSelectSingle654{{"PgSelectSingle[654∈58] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access646{{"Access[646∈58] ➊
ᐸ638.cursorDetailsᐳ"}}:::plan - PgSelectSingle654 & Access646 --> PgCursor656 - PgCursor662{{"PgCursor[662∈58] ➊"}}:::plan - PgSelectSingle660{{"PgSelectSingle[660∈58] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle660 & Access646 --> PgCursor662 - PgSelect638 --> PgSelectRows640 - PgSelect638 --> Access646 - PgPageInfo650{{"PgPageInfo[650∈58] ➊"}}:::plan - Connection637 --> PgPageInfo650 - First652{{"First[652∈58] ➊"}}:::plan - PgSelectRows640 --> First652 - First652 --> PgSelectSingle654 - Last658{{"Last[658∈58] ➊"}}:::plan - PgSelectRows640 --> Last658 - Last658 --> PgSelectSingle660 - PgSelect638 --> Access665 - Lambda667{{"Lambda[667∈58] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object666 --> Lambda667 - Lambda671{{"Lambda[671∈58] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object670 --> Lambda671 - __Item641[/"__Item[641∈59]
ᐸ640ᐳ"\]:::itemplan - PgSelectRows640 -.-> __Item641 - PgSelectSingle642{{"PgSelectSingle[642∈59]
ᐸtable_set_queryᐳ"}}:::plan + __Item601[/"__Item[601∈20]
ᐸ600ᐳ"\]:::itemplan + PgSelectRows600 -.-> __Item601 + PgSelectSingle602{{"PgSelectSingle[602∈20]
ᐸtable_set_queryᐳ"}}:::plan + __Item601 --> PgSelectSingle602 + Edge605{{"Edge[605∈21]"}}:::plan + PgSelectSingle604{{"PgSelectSingle[604∈21]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor607{{"PgCursor[607∈21]"}}:::plan + PgCursor607 -->|rejectNull| Edge605 + PgSelectSingle604 & Connection597 --> Edge605 + PgSelectSingle604 & Access606 --> PgCursor607 + __Item603[/"__Item[603∈21]
ᐸ599ᐳ"\]:::itemplan + __ListTransform599 ==> __Item603 + __Item603 --> PgSelectSingle604 + PgClassExpression608{{"PgClassExpression[608∈21]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle604 --> PgClassExpression608 + __Item639[/"__Item[639∈22]
ᐸ638ᐳ"\]:::itemplan + PgSelectRows638 -.-> __Item639 + PgSelectSingle640{{"PgSelectSingle[640∈22]
ᐸtable_set_queryᐳ"}}:::plan + __Item639 --> PgSelectSingle640 + Edge643{{"Edge[643∈23]"}}:::plan + PgSelectSingle642{{"PgSelectSingle[642∈23]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor645{{"PgCursor[645∈23]"}}:::plan + PgCursor645 -->|rejectNull| Edge643 + PgSelectSingle642 & Connection635 --> Edge643 + PgSelectSingle642 & Access644 --> PgCursor645 + __Item641[/"__Item[641∈23]
ᐸ637ᐳ"\]:::itemplan + __ListTransform637 ==> __Item641 __Item641 --> PgSelectSingle642 - Edge645{{"Edge[645∈60]"}}:::plan - PgSelectSingle644{{"PgSelectSingle[644∈60]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor647{{"PgCursor[647∈60]"}}:::plan - PgSelectSingle644 & PgCursor647 & Connection637 --> Edge645 - PgSelectSingle644 & Access646 --> PgCursor647 - __Item643[/"__Item[643∈60]
ᐸ639ᐳ"\]:::itemplan - __ListTransform639 ==> __Item643 - __Item643 --> PgSelectSingle644 - PgClassExpression648{{"PgClassExpression[648∈62]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle644 --> PgClassExpression648 - PgSelect677[["PgSelect[677∈63] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Connection676 & Constant1044 & Constant1066 --> PgSelect677 - Object709{{"Object[709∈63] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access704{{"Access[704∈63] ➊
ᐸ677.hasMoreᐳ"}}:::plan - Constant1044 & Constant52 & Constant1066 & Access704 --> Object709 - Object705{{"Object[705∈63] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1044 & Constant52 & Access704 --> Object705 - __ListTransform678[["__ListTransform[678∈63] ➊
ᐸeach:677ᐳ"]]:::plan - PgSelectRows679[["PgSelectRows[679∈63] ➊"]]:::plan - PgSelectRows679 & PgSelect677 --> __ListTransform678 - PgCursor695{{"PgCursor[695∈63] ➊"}}:::plan - PgSelectSingle693{{"PgSelectSingle[693∈63] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access685{{"Access[685∈63] ➊
ᐸ677.cursorDetailsᐳ"}}:::plan - PgSelectSingle693 & Access685 --> PgCursor695 - PgCursor701{{"PgCursor[701∈63] ➊"}}:::plan - PgSelectSingle699{{"PgSelectSingle[699∈63] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle699 & Access685 --> PgCursor701 - PgSelect677 --> PgSelectRows679 - PgSelect677 --> Access685 - PgPageInfo689{{"PgPageInfo[689∈63] ➊"}}:::plan - Connection676 --> PgPageInfo689 - First691{{"First[691∈63] ➊"}}:::plan - PgSelectRows679 --> First691 - First691 --> PgSelectSingle693 - Last697{{"Last[697∈63] ➊"}}:::plan - PgSelectRows679 --> Last697 - Last697 --> PgSelectSingle699 - PgSelect677 --> Access704 - Lambda706{{"Lambda[706∈63] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object705 --> Lambda706 - Lambda710{{"Lambda[710∈63] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object709 --> Lambda710 - __Item680[/"__Item[680∈64]
ᐸ679ᐳ"\]:::itemplan - PgSelectRows679 -.-> __Item680 - PgSelectSingle681{{"PgSelectSingle[681∈64]
ᐸtable_set_queryᐳ"}}:::plan - __Item680 --> PgSelectSingle681 - Edge684{{"Edge[684∈65]"}}:::plan - PgSelectSingle683{{"PgSelectSingle[683∈65]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor686{{"PgCursor[686∈65]"}}:::plan - PgSelectSingle683 & PgCursor686 & Connection676 --> Edge684 - PgSelectSingle683 & Access685 --> PgCursor686 - __Item682[/"__Item[682∈65]
ᐸ678ᐳ"\]:::itemplan - __ListTransform678 ==> __Item682 - __Item682 --> PgSelectSingle683 - PgClassExpression687{{"PgClassExpression[687∈67]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle683 --> PgClassExpression687 - PgSelect716[["PgSelect[716∈68] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Connection715 & Constant1067 & Constant1066 --> PgSelect716 - Object748{{"Object[748∈68] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access743{{"Access[743∈68] ➊
ᐸ716.hasMoreᐳ"}}:::plan - Constant1067 & Constant52 & Constant1066 & Access743 --> Object748 - Object744{{"Object[744∈68] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1067 & Constant52 & Access743 --> Object744 - __ListTransform717[["__ListTransform[717∈68] ➊
ᐸeach:716ᐳ"]]:::plan - PgSelectRows718[["PgSelectRows[718∈68] ➊"]]:::plan - PgSelectRows718 & PgSelect716 --> __ListTransform717 - PgCursor734{{"PgCursor[734∈68] ➊"}}:::plan - PgSelectSingle732{{"PgSelectSingle[732∈68] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access724{{"Access[724∈68] ➊
ᐸ716.cursorDetailsᐳ"}}:::plan - PgSelectSingle732 & Access724 --> PgCursor734 - PgCursor740{{"PgCursor[740∈68] ➊"}}:::plan - PgSelectSingle738{{"PgSelectSingle[738∈68] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle738 & Access724 --> PgCursor740 - PgSelect716 --> PgSelectRows718 - PgSelect716 --> Access724 - PgPageInfo728{{"PgPageInfo[728∈68] ➊"}}:::plan - Connection715 --> PgPageInfo728 - First730{{"First[730∈68] ➊"}}:::plan - PgSelectRows718 --> First730 - First730 --> PgSelectSingle732 - Last736{{"Last[736∈68] ➊"}}:::plan - PgSelectRows718 --> Last736 - Last736 --> PgSelectSingle738 - PgSelect716 --> Access743 - Lambda745{{"Lambda[745∈68] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object744 --> Lambda745 - Lambda749{{"Lambda[749∈68] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object748 --> Lambda749 - __Item719[/"__Item[719∈69]
ᐸ718ᐳ"\]:::itemplan - PgSelectRows718 -.-> __Item719 - PgSelectSingle720{{"PgSelectSingle[720∈69]
ᐸtable_set_queryᐳ"}}:::plan - __Item719 --> PgSelectSingle720 - Edge723{{"Edge[723∈70]"}}:::plan - PgSelectSingle722{{"PgSelectSingle[722∈70]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor725{{"PgCursor[725∈70]"}}:::plan - PgSelectSingle722 & PgCursor725 & Connection715 --> Edge723 - PgSelectSingle722 & Access724 --> PgCursor725 - __Item721[/"__Item[721∈70]
ᐸ717ᐳ"\]:::itemplan - __ListTransform717 ==> __Item721 - __Item721 --> PgSelectSingle722 - PgClassExpression726{{"PgClassExpression[726∈72]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle722 --> PgClassExpression726 - PgSelect756[["PgSelect[756∈73] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Connection754 & Lambda755 & Constant1044 --> PgSelect756 - Object788{{"Object[788∈73] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access783{{"Access[783∈73] ➊
ᐸ756.hasMoreᐳ"}}:::plan - Constant52 & Constant1044 & Constant52 & Access783 --> Object788 - Object784{{"Object[784∈73] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant52 & Constant1044 & Access783 --> Object784 - __ListTransform757[["__ListTransform[757∈73] ➊
ᐸeach:756ᐳ"]]:::plan - PgSelectRows758[["PgSelectRows[758∈73] ➊"]]:::plan - PgSelectRows758 & PgSelect756 --> __ListTransform757 - PgCursor774{{"PgCursor[774∈73] ➊"}}:::plan - PgSelectSingle772{{"PgSelectSingle[772∈73] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access764{{"Access[764∈73] ➊
ᐸ756.cursorDetailsᐳ"}}:::plan - PgSelectSingle772 & Access764 --> PgCursor774 - PgCursor780{{"PgCursor[780∈73] ➊"}}:::plan - PgSelectSingle778{{"PgSelectSingle[778∈73] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle778 & Access764 --> PgCursor780 - PgSelect756 --> PgSelectRows758 - PgSelect756 --> Access764 - PgPageInfo768{{"PgPageInfo[768∈73] ➊"}}:::plan - Connection754 --> PgPageInfo768 - First770{{"First[770∈73] ➊"}}:::plan - PgSelectRows758 --> First770 - First770 --> PgSelectSingle772 - Last776{{"Last[776∈73] ➊"}}:::plan - PgSelectRows758 --> Last776 - Last776 --> PgSelectSingle778 - PgSelect756 --> Access783 - Lambda785{{"Lambda[785∈73] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object784 --> Lambda785 - Lambda789{{"Lambda[789∈73] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object788 --> Lambda789 - __Item759[/"__Item[759∈74]
ᐸ758ᐳ"\]:::itemplan - PgSelectRows758 -.-> __Item759 - PgSelectSingle760{{"PgSelectSingle[760∈74]
ᐸtable_set_queryᐳ"}}:::plan - __Item759 --> PgSelectSingle760 - Edge763{{"Edge[763∈75]"}}:::plan - PgSelectSingle762{{"PgSelectSingle[762∈75]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor765{{"PgCursor[765∈75]"}}:::plan - PgSelectSingle762 & PgCursor765 & Connection754 --> Edge763 - PgSelectSingle762 & Access764 --> PgCursor765 - __Item761[/"__Item[761∈75]
ᐸ757ᐳ"\]:::itemplan - __ListTransform757 ==> __Item761 - __Item761 --> PgSelectSingle762 - PgClassExpression766{{"PgClassExpression[766∈77]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle762 --> PgClassExpression766 - PgSelect797[["PgSelect[797∈78] ➊
ᐸtable_set_query+1ᐳ"]]:::plan - Object10 & Connection795 & Lambda755 & Constant1044 & Constant1043 --> PgSelect797 - Object829{{"Object[829∈78] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access824{{"Access[824∈78] ➊
ᐸ797.hasMoreᐳ"}}:::plan - Constant1044 & Constant52 & Constant1043 & Access824 --> Object829 - Object825{{"Object[825∈78] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1044 & Constant52 & Access824 --> Object825 - __ListTransform798[["__ListTransform[798∈78] ➊
ᐸeach:797ᐳ"]]:::plan - PgSelectRows799[["PgSelectRows[799∈78] ➊"]]:::plan - PgSelectRows799 & PgSelect797 --> __ListTransform798 - PgCursor815{{"PgCursor[815∈78] ➊"}}:::plan - PgSelectSingle813{{"PgSelectSingle[813∈78] ➊
ᐸtable_set_queryᐳ"}}:::plan - Access805{{"Access[805∈78] ➊
ᐸ797.cursorDetailsᐳ"}}:::plan - PgSelectSingle813 & Access805 --> PgCursor815 - PgCursor821{{"PgCursor[821∈78] ➊"}}:::plan - PgSelectSingle819{{"PgSelectSingle[819∈78] ➊
ᐸtable_set_queryᐳ"}}:::plan - PgSelectSingle819 & Access805 --> PgCursor821 - PgSelect797 --> PgSelectRows799 - PgSelect797 --> Access805 - PgPageInfo809{{"PgPageInfo[809∈78] ➊"}}:::plan - Connection795 --> PgPageInfo809 - First811{{"First[811∈78] ➊"}}:::plan - PgSelectRows799 --> First811 - First811 --> PgSelectSingle813 - Last817{{"Last[817∈78] ➊"}}:::plan - PgSelectRows799 --> Last817 - Last817 --> PgSelectSingle819 - PgSelect797 --> Access824 - Lambda826{{"Lambda[826∈78] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object825 --> Lambda826 - Lambda830{{"Lambda[830∈78] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object829 --> Lambda830 - __Item800[/"__Item[800∈79]
ᐸ799ᐳ"\]:::itemplan - PgSelectRows799 -.-> __Item800 - PgSelectSingle801{{"PgSelectSingle[801∈79]
ᐸtable_set_queryᐳ"}}:::plan - __Item800 --> PgSelectSingle801 - Edge804{{"Edge[804∈80]"}}:::plan - PgSelectSingle803{{"PgSelectSingle[803∈80]
ᐸtable_set_queryᐳ"}}:::plan - PgCursor806{{"PgCursor[806∈80]"}}:::plan - PgSelectSingle803 & PgCursor806 & Connection795 --> Edge804 - PgSelectSingle803 & Access805 --> PgCursor806 - __Item802[/"__Item[802∈80]
ᐸ798ᐳ"\]:::itemplan - __ListTransform798 ==> __Item802 - __Item802 --> PgSelectSingle803 - PgClassExpression807{{"PgClassExpression[807∈82]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle803 --> PgClassExpression807 - Object867{{"Object[867∈83] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access862{{"Access[862∈83] ➊
ᐸ835.hasMoreᐳ"}}:::plan - Constant1044 & Constant52 & Constant52 & Access862 --> Object867 - PgSelect835[["PgSelect[835∈83] ➊
ᐸtable_set_query_plpgsql+1ᐳ"]]:::plan - Object10 & Connection834 & Constant1044 --> PgSelect835 - Object863{{"Object[863∈83] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1044 & Constant52 & Access862 --> Object863 - __ListTransform836[["__ListTransform[836∈83] ➊
ᐸeach:835ᐳ"]]:::plan - PgSelectRows837[["PgSelectRows[837∈83] ➊"]]:::plan - PgSelectRows837 & PgSelect835 --> __ListTransform836 - PgCursor853{{"PgCursor[853∈83] ➊"}}:::plan - PgSelectSingle851{{"PgSelectSingle[851∈83] ➊
ᐸtable_set_query_plpgsqlᐳ"}}:::plan - Access843{{"Access[843∈83] ➊
ᐸ835.cursorDetailsᐳ"}}:::plan - PgSelectSingle851 & Access843 --> PgCursor853 - PgCursor859{{"PgCursor[859∈83] ➊"}}:::plan - PgSelectSingle857{{"PgSelectSingle[857∈83] ➊
ᐸtable_set_query_plpgsqlᐳ"}}:::plan - PgSelectSingle857 & Access843 --> PgCursor859 - PgSelect835 --> PgSelectRows837 - PgSelect835 --> Access843 - PgPageInfo847{{"PgPageInfo[847∈83] ➊"}}:::plan - Connection834 --> PgPageInfo847 - First849{{"First[849∈83] ➊"}}:::plan - PgSelectRows837 --> First849 - First849 --> PgSelectSingle851 - Last855{{"Last[855∈83] ➊"}}:::plan - PgSelectRows837 --> Last855 - Last855 --> PgSelectSingle857 - PgSelect835 --> Access862 - Lambda864{{"Lambda[864∈83] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object863 --> Lambda864 - Lambda868{{"Lambda[868∈83] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object867 --> Lambda868 - __Item838[/"__Item[838∈84]
ᐸ837ᐳ"\]:::itemplan - PgSelectRows837 -.-> __Item838 - PgSelectSingle839{{"PgSelectSingle[839∈84]
ᐸtable_set_query_plpgsqlᐳ"}}:::plan - __Item838 --> PgSelectSingle839 - Edge842{{"Edge[842∈85]"}}:::plan - PgSelectSingle841{{"PgSelectSingle[841∈85]
ᐸtable_set_query_plpgsqlᐳ"}}:::plan - PgCursor844{{"PgCursor[844∈85]"}}:::plan - PgSelectSingle841 & PgCursor844 & Connection834 --> Edge842 - PgSelectSingle841 & Access843 --> PgCursor844 - __Item840[/"__Item[840∈85]
ᐸ836ᐳ"\]:::itemplan - __ListTransform836 ==> __Item840 - __Item840 --> PgSelectSingle841 - PgClassExpression845{{"PgClassExpression[845∈87]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle841 --> PgClassExpression845 - PgSelect875[["PgSelect[875∈88] ➊
ᐸtable_set_query_plpgsql+1ᐳ"]]:::plan - Object10 & Connection873 & Lambda874 & Constant1044 --> PgSelect875 - Object907{{"Object[907∈88] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access902{{"Access[902∈88] ➊
ᐸ875.hasMoreᐳ"}}:::plan - Constant1044 & Constant52 & Constant52 & Access902 --> Object907 - Object903{{"Object[903∈88] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant1044 & Constant52 & Access902 --> Object903 - __ListTransform876[["__ListTransform[876∈88] ➊
ᐸeach:875ᐳ"]]:::plan - PgSelectRows877[["PgSelectRows[877∈88] ➊"]]:::plan - PgSelectRows877 & PgSelect875 --> __ListTransform876 - PgCursor893{{"PgCursor[893∈88] ➊"}}:::plan - PgSelectSingle891{{"PgSelectSingle[891∈88] ➊
ᐸtable_set_query_plpgsqlᐳ"}}:::plan - Access883{{"Access[883∈88] ➊
ᐸ875.cursorDetailsᐳ"}}:::plan - PgSelectSingle891 & Access883 --> PgCursor893 - PgCursor899{{"PgCursor[899∈88] ➊"}}:::plan - PgSelectSingle897{{"PgSelectSingle[897∈88] ➊
ᐸtable_set_query_plpgsqlᐳ"}}:::plan - PgSelectSingle897 & Access883 --> PgCursor899 - PgSelect875 --> PgSelectRows877 - PgSelect875 --> Access883 - PgPageInfo887{{"PgPageInfo[887∈88] ➊"}}:::plan - Connection873 --> PgPageInfo887 - First889{{"First[889∈88] ➊"}}:::plan - PgSelectRows877 --> First889 - First889 --> PgSelectSingle891 - Last895{{"Last[895∈88] ➊"}}:::plan - PgSelectRows877 --> Last895 - Last895 --> PgSelectSingle897 - PgSelect875 --> Access902 - Lambda904{{"Lambda[904∈88] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object903 --> Lambda904 - Lambda908{{"Lambda[908∈88] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object907 --> Lambda908 - __Item878[/"__Item[878∈89]
ᐸ877ᐳ"\]:::itemplan - PgSelectRows877 -.-> __Item878 - PgSelectSingle879{{"PgSelectSingle[879∈89]
ᐸtable_set_query_plpgsqlᐳ"}}:::plan - __Item878 --> PgSelectSingle879 - Edge882{{"Edge[882∈90]"}}:::plan - PgSelectSingle881{{"PgSelectSingle[881∈90]
ᐸtable_set_query_plpgsqlᐳ"}}:::plan - PgCursor884{{"PgCursor[884∈90]"}}:::plan - PgSelectSingle881 & PgCursor884 & Connection873 --> Edge882 - PgSelectSingle881 & Access883 --> PgCursor884 - __Item880[/"__Item[880∈90]
ᐸ876ᐳ"\]:::itemplan - __ListTransform876 ==> __Item880 - __Item880 --> PgSelectSingle881 - PgClassExpression885{{"PgClassExpression[885∈92]
ᐸ__table_se...full_name”ᐳ"}}:::plan - PgSelectSingle881 --> PgClassExpression885 - PgSelect914[["PgSelect[914∈93] ➊
ᐸint_set_queryᐳ"]]:::plan - Object10 & Constant1046 & Constant54 & Constant1067 & Connection913 --> PgSelect914 - PgSelect926[["PgSelect[926∈93] ➊
ᐸint_set_query(aggregate)ᐳ"]]:::plan - Object10 & Constant1046 & Constant54 & Constant1067 & Connection913 --> PgSelect926 - __ListTransform915[["__ListTransform[915∈93] ➊
ᐸeach:914ᐳ"]]:::plan - PgSelectRows916[["PgSelectRows[916∈93] ➊"]]:::plan - PgSelectRows916 & PgSelect914 --> __ListTransform915 - PgSelect914 --> PgSelectRows916 - Access924{{"Access[924∈93] ➊
ᐸ914.cursorDetailsᐳ"}}:::plan - PgSelect914 --> Access924 - First927{{"First[927∈93] ➊"}}:::plan - PgSelectRows928[["PgSelectRows[928∈93] ➊"]]:::plan - PgSelectRows928 --> First927 - PgSelect926 --> PgSelectRows928 - PgSelectSingle929{{"PgSelectSingle[929∈93] ➊
ᐸint_set_queryᐳ"}}:::plan - First927 --> PgSelectSingle929 - PgClassExpression930{{"PgClassExpression[930∈93] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle929 --> PgClassExpression930 - __Item917[/"__Item[917∈94]
ᐸ916ᐳ"\]:::itemplan - PgSelectRows916 -.-> __Item917 - PgSelectSingle918{{"PgSelectSingle[918∈94]
ᐸint_set_queryᐳ"}}:::plan - __Item917 --> PgSelectSingle918 - PgClassExpression919{{"PgClassExpression[919∈94]
ᐸ__int_set_query__.vᐳ"}}:::plan - PgSelectSingle918 --> PgClassExpression919 - Edge923{{"Edge[923∈95]"}}:::plan - PgClassExpression922{{"PgClassExpression[922∈95]
ᐸ__int_set_query__.vᐳ"}}:::plan - PgCursor925{{"PgCursor[925∈95]"}}:::plan - PgClassExpression922 & PgCursor925 & Connection913 --> Edge923 - PgSelectSingle921{{"PgSelectSingle[921∈95]
ᐸint_set_queryᐳ"}}:::plan - PgSelectSingle921 & Access924 --> PgCursor925 - __Item920[/"__Item[920∈95]
ᐸ915ᐳ"\]:::itemplan - __ListTransform915 ==> __Item920 - __Item920 --> PgSelectSingle921 - PgSelectSingle921 --> PgClassExpression922 - PgSelect940[["PgSelect[940∈97] ➊
ᐸstatic_big_integerᐳ"]]:::plan - Object10 & Connection939 --> PgSelect940 - __ListTransform941[["__ListTransform[941∈97] ➊
ᐸeach:940ᐳ"]]:::plan - PgSelectRows942[["PgSelectRows[942∈97] ➊"]]:::plan - PgSelectRows942 & PgSelect940 --> __ListTransform941 - PgSelect952[["PgSelect[952∈97] ➊
ᐸstatic_big_integer(aggregate)ᐳ"]]:::plan - Object10 & Connection939 --> PgSelect952 - PgSelect940 --> PgSelectRows942 - First953{{"First[953∈97] ➊"}}:::plan - PgSelectRows954[["PgSelectRows[954∈97] ➊"]]:::plan - PgSelectRows954 --> First953 - PgSelect952 --> PgSelectRows954 - PgSelectSingle955{{"PgSelectSingle[955∈97] ➊
ᐸstatic_big_integerᐳ"}}:::plan - First953 --> PgSelectSingle955 - PgClassExpression956{{"PgClassExpression[956∈97] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle955 --> PgClassExpression956 - __Item943[/"__Item[943∈98]
ᐸ942ᐳ"\]:::itemplan - PgSelectRows942 -.-> __Item943 - PgSelectSingle944{{"PgSelectSingle[944∈98]
ᐸstatic_big_integerᐳ"}}:::plan - __Item943 --> PgSelectSingle944 - PgClassExpression945{{"PgClassExpression[945∈98]
ᐸ__static_b...nteger__.vᐳ"}}:::plan - PgSelectSingle944 --> PgClassExpression945 - Edge1038{{"Edge[1038∈99]"}}:::plan - PgClassExpression948{{"PgClassExpression[948∈99]
ᐸ__static_b...nteger__.vᐳ"}}:::plan - PgClassExpression948 & Connection939 --> Edge1038 - __Item946[/"__Item[946∈99]
ᐸ941ᐳ"\]:::itemplan - __ListTransform941 ==> __Item946 - PgSelectSingle947{{"PgSelectSingle[947∈99]
ᐸstatic_big_integerᐳ"}}:::plan - __Item946 --> PgSelectSingle947 - PgSelectSingle947 --> PgClassExpression948 - __Item971[/"__Item[971∈101]
ᐸ970ᐳ"\]:::itemplan - PgSelectRows970 ==> __Item971 - PgSelectSingle972{{"PgSelectSingle[972∈101]
ᐸquery_compound_type_arrayᐳ"}}:::plan - __Item971 --> PgSelectSingle972 - PgClassExpression973{{"PgClassExpression[973∈102]
ᐸ__query_co...rray__.”a”ᐳ"}}:::plan - PgSelectSingle972 --> PgClassExpression973 - PgClassExpression974{{"PgClassExpression[974∈102]
ᐸ__query_co...rray__.”b”ᐳ"}}:::plan - PgSelectSingle972 --> PgClassExpression974 - PgClassExpression975{{"PgClassExpression[975∈102]
ᐸ__query_co...rray__.”c”ᐳ"}}:::plan - PgSelectSingle972 --> PgClassExpression975 - PgClassExpression976{{"PgClassExpression[976∈102]
ᐸ__query_co...rray__.”d”ᐳ"}}:::plan - PgSelectSingle972 --> PgClassExpression976 - PgClassExpression977{{"PgClassExpression[977∈102]
ᐸ__query_co...rray__.”e”ᐳ"}}:::plan - PgSelectSingle972 --> PgClassExpression977 - PgClassExpression978{{"PgClassExpression[978∈102]
ᐸ__query_co...rray__.”f”ᐳ"}}:::plan - PgSelectSingle972 --> PgClassExpression978 - PgClassExpression979{{"PgClassExpression[979∈102]
ᐸ__query_co...rray__.”g”ᐳ"}}:::plan - PgSelectSingle972 --> PgClassExpression979 - PgClassExpression983{{"PgClassExpression[983∈102]
ᐸ__query_co....”foo_bar”ᐳ"}}:::plan - PgSelectSingle972 --> PgClassExpression983 - __Item990[/"__Item[990∈104]
ᐸ989ᐳ"\]:::itemplan - PgClassExpression989 ==> __Item990 - __Item997[/"__Item[997∈105]
ᐸ996ᐳ"\]:::itemplan - PgClassExpression996 ==> __Item997 - PgSelect1007[["PgSelect[1007∈107] ➊
ᐸquery_interval_setᐳ"]]:::plan - Object10 & Connection1006 --> PgSelect1007 - __ListTransform1019[["__ListTransform[1019∈107] ➊
ᐸeach:1018ᐳ"]]:::plan - PgSelectRows1008[["PgSelectRows[1008∈107] ➊"]]:::plan - PgSelectRows1008 & PgSelect1007 --> __ListTransform1019 - PgSelect1033[["PgSelect[1033∈107] ➊
ᐸquery_interval_set(aggregate)ᐳ"]]:::plan - Object10 & Connection1006 --> PgSelect1033 - PgSelect1007 --> PgSelectRows1008 - Access1028{{"Access[1028∈107] ➊
ᐸ1007.cursorDetailsᐳ"}}:::plan - PgSelect1007 --> Access1028 - First1034{{"First[1034∈107] ➊"}}:::plan - PgSelectRows1035[["PgSelectRows[1035∈107] ➊"]]:::plan - PgSelectRows1035 --> First1034 - PgSelect1033 --> PgSelectRows1035 - PgSelectSingle1036{{"PgSelectSingle[1036∈107] ➊
ᐸquery_interval_setᐳ"}}:::plan - First1034 --> PgSelectSingle1036 - PgClassExpression1037{{"PgClassExpression[1037∈107] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle1036 --> PgClassExpression1037 - __Item1009[/"__Item[1009∈108]
ᐸ1008ᐳ"\]:::itemplan - PgSelectRows1008 ==> __Item1009 - PgSelectSingle1010{{"PgSelectSingle[1010∈108]
ᐸquery_interval_setᐳ"}}:::plan - __Item1009 --> PgSelectSingle1010 - PgClassExpression1011{{"PgClassExpression[1011∈108]
ᐸ__query_in...al_set__.vᐳ"}}:::plan - PgSelectSingle1010 --> PgClassExpression1011 - __Item1021[/"__Item[1021∈110]
ᐸ1008ᐳ"\]:::itemplan - PgSelectRows1008 -.-> __Item1021 - PgSelectSingle1022{{"PgSelectSingle[1022∈110]
ᐸquery_interval_setᐳ"}}:::plan - __Item1021 --> PgSelectSingle1022 - PgClassExpression1023{{"PgClassExpression[1023∈110]
ᐸ__query_in...al_set__.vᐳ"}}:::plan - PgSelectSingle1022 --> PgClassExpression1023 - Edge1027{{"Edge[1027∈111]"}}:::plan - PgClassExpression1026{{"PgClassExpression[1026∈111]
ᐸ__query_in...al_set__.vᐳ"}}:::plan - PgCursor1029{{"PgCursor[1029∈111]"}}:::plan - PgClassExpression1026 & PgCursor1029 & Connection1006 --> Edge1027 - PgSelectSingle1025{{"PgSelectSingle[1025∈111]
ᐸquery_interval_setᐳ"}}:::plan - PgSelectSingle1025 & Access1028 --> PgCursor1029 - __Item1024[/"__Item[1024∈111]
ᐸ1019ᐳ"\]:::itemplan - __ListTransform1019 ==> __Item1024 - __Item1024 --> PgSelectSingle1025 - PgSelectSingle1025 --> PgClassExpression1026 + PgClassExpression646{{"PgClassExpression[646∈23]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle642 --> PgClassExpression646 + __Item677[/"__Item[677∈24]
ᐸ676ᐳ"\]:::itemplan + PgSelectRows676 -.-> __Item677 + PgSelectSingle678{{"PgSelectSingle[678∈24]
ᐸtable_set_queryᐳ"}}:::plan + __Item677 --> PgSelectSingle678 + Edge681{{"Edge[681∈25]"}}:::plan + PgSelectSingle680{{"PgSelectSingle[680∈25]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor683{{"PgCursor[683∈25]"}}:::plan + PgCursor683 -->|rejectNull| Edge681 + PgSelectSingle680 & Connection673 --> Edge681 + PgSelectSingle680 & Access682 --> PgCursor683 + __Item679[/"__Item[679∈25]
ᐸ675ᐳ"\]:::itemplan + __ListTransform675 ==> __Item679 + __Item679 --> PgSelectSingle680 + PgClassExpression684{{"PgClassExpression[684∈25]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle680 --> PgClassExpression684 + __Item715[/"__Item[715∈26]
ᐸ714ᐳ"\]:::itemplan + PgSelectRows714 -.-> __Item715 + PgSelectSingle716{{"PgSelectSingle[716∈26]
ᐸtable_set_queryᐳ"}}:::plan + __Item715 --> PgSelectSingle716 + Edge719{{"Edge[719∈27]"}}:::plan + PgSelectSingle718{{"PgSelectSingle[718∈27]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor721{{"PgCursor[721∈27]"}}:::plan + PgCursor721 -->|rejectNull| Edge719 + PgSelectSingle718 & Connection711 --> Edge719 + PgSelectSingle718 & Access720 --> PgCursor721 + __Item717[/"__Item[717∈27]
ᐸ713ᐳ"\]:::itemplan + __ListTransform713 ==> __Item717 + __Item717 --> PgSelectSingle718 + PgClassExpression722{{"PgClassExpression[722∈27]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle718 --> PgClassExpression722 + __Item754[/"__Item[754∈28]
ᐸ753ᐳ"\]:::itemplan + PgSelectRows753 -.-> __Item754 + PgSelectSingle755{{"PgSelectSingle[755∈28]
ᐸtable_set_queryᐳ"}}:::plan + __Item754 --> PgSelectSingle755 + Edge758{{"Edge[758∈29]"}}:::plan + PgSelectSingle757{{"PgSelectSingle[757∈29]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor760{{"PgCursor[760∈29]"}}:::plan + PgCursor760 -->|rejectNull| Edge758 + PgSelectSingle757 & Connection749 --> Edge758 + PgSelectSingle757 & Access759 --> PgCursor760 + __Item756[/"__Item[756∈29]
ᐸ752ᐳ"\]:::itemplan + __ListTransform752 ==> __Item756 + __Item756 --> PgSelectSingle757 + PgClassExpression761{{"PgClassExpression[761∈29]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle757 --> PgClassExpression761 + __Item794[/"__Item[794∈30]
ᐸ793ᐳ"\]:::itemplan + PgSelectRows793 -.-> __Item794 + PgSelectSingle795{{"PgSelectSingle[795∈30]
ᐸtable_set_queryᐳ"}}:::plan + __Item794 --> PgSelectSingle795 + Edge798{{"Edge[798∈31]"}}:::plan + PgSelectSingle797{{"PgSelectSingle[797∈31]
ᐸtable_set_queryᐳ"}}:::plan + PgCursor800{{"PgCursor[800∈31]"}}:::plan + PgCursor800 -->|rejectNull| Edge798 + PgSelectSingle797 & Connection789 --> Edge798 + PgSelectSingle797 & Access799 --> PgCursor800 + __Item796[/"__Item[796∈31]
ᐸ792ᐳ"\]:::itemplan + __ListTransform792 ==> __Item796 + __Item796 --> PgSelectSingle797 + PgClassExpression801{{"PgClassExpression[801∈31]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle797 --> PgClassExpression801 + __Item831[/"__Item[831∈32]
ᐸ830ᐳ"\]:::itemplan + PgSelectRows830 -.-> __Item831 + PgSelectSingle832{{"PgSelectSingle[832∈32]
ᐸtable_set_query_plpgsqlᐳ"}}:::plan + __Item831 --> PgSelectSingle832 + Edge835{{"Edge[835∈33]"}}:::plan + PgSelectSingle834{{"PgSelectSingle[834∈33]
ᐸtable_set_query_plpgsqlᐳ"}}:::plan + PgCursor837{{"PgCursor[837∈33]"}}:::plan + PgCursor837 -->|rejectNull| Edge835 + PgSelectSingle834 & Connection827 --> Edge835 + PgSelectSingle834 & Access836 --> PgCursor837 + __Item833[/"__Item[833∈33]
ᐸ829ᐳ"\]:::itemplan + __ListTransform829 ==> __Item833 + __Item833 --> PgSelectSingle834 + PgClassExpression838{{"PgClassExpression[838∈33]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle834 --> PgClassExpression838 + __Item870[/"__Item[870∈34]
ᐸ869ᐳ"\]:::itemplan + PgSelectRows869 -.-> __Item870 + PgSelectSingle871{{"PgSelectSingle[871∈34]
ᐸtable_set_query_plpgsqlᐳ"}}:::plan + __Item870 --> PgSelectSingle871 + Edge874{{"Edge[874∈35]"}}:::plan + PgSelectSingle873{{"PgSelectSingle[873∈35]
ᐸtable_set_query_plpgsqlᐳ"}}:::plan + PgCursor876{{"PgCursor[876∈35]"}}:::plan + PgCursor876 -->|rejectNull| Edge874 + PgSelectSingle873 & Connection865 --> Edge874 + PgSelectSingle873 & Access875 --> PgCursor876 + __Item872[/"__Item[872∈35]
ᐸ868ᐳ"\]:::itemplan + __ListTransform868 ==> __Item872 + __Item872 --> PgSelectSingle873 + PgClassExpression877{{"PgClassExpression[877∈35]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgSelectSingle873 --> PgClassExpression877 + __Item909[/"__Item[909∈36]
ᐸ908ᐳ"\]:::itemplan + PgSelectRows908 -.-> __Item909 + PgSelectSingle910{{"PgSelectSingle[910∈36]
ᐸint_set_queryᐳ"}}:::plan + __Item909 --> PgSelectSingle910 + PgClassExpression911{{"PgClassExpression[911∈36]
ᐸ__int_set_query__.vᐳ"}}:::plan + PgSelectSingle910 --> PgClassExpression911 + Edge915{{"Edge[915∈37]"}}:::plan + PgClassExpression914{{"PgClassExpression[914∈37]
ᐸ__int_set_query__.vᐳ"}}:::plan + PgCursor917{{"PgCursor[917∈37]"}}:::plan + PgCursor917 -->|rejectNull| Edge915 + PgClassExpression914 & Connection905 --> Edge915 + PgSelectSingle913{{"PgSelectSingle[913∈37]
ᐸint_set_queryᐳ"}}:::plan + PgSelectSingle913 & Access916 --> PgCursor917 + __Item912[/"__Item[912∈37]
ᐸ907ᐳ"\]:::itemplan + __ListTransform907 ==> __Item912 + __Item912 --> PgSelectSingle913 + PgSelectSingle913 --> PgClassExpression914 + __Item935[/"__Item[935∈38]
ᐸ934ᐳ"\]:::itemplan + PgSelectRows934 -.-> __Item935 + PgSelectSingle936{{"PgSelectSingle[936∈38]
ᐸstatic_big_integerᐳ"}}:::plan + __Item935 --> PgSelectSingle936 + PgClassExpression937{{"PgClassExpression[937∈38]
ᐸ__static_b...nteger__.vᐳ"}}:::plan + PgSelectSingle936 --> PgClassExpression937 + Edge1030{{"Edge[1030∈39]"}}:::plan + PgClassExpression940{{"PgClassExpression[940∈39]
ᐸ__static_b...nteger__.vᐳ"}}:::plan + PgClassExpression940 -->|rejectNull| Edge1030 + Connection931 --> Edge1030 + __Item938[/"__Item[938∈39]
ᐸ933ᐳ"\]:::itemplan + __ListTransform933 ==> __Item938 + PgSelectSingle939{{"PgSelectSingle[939∈39]
ᐸstatic_big_integerᐳ"}}:::plan + __Item938 --> PgSelectSingle939 + PgSelectSingle939 --> PgClassExpression940 + __Item963[/"__Item[963∈40]
ᐸ962ᐳ"\]:::itemplan + PgSelectRows962 ==> __Item963 + PgSelectSingle964{{"PgSelectSingle[964∈40]
ᐸquery_compound_type_arrayᐳ"}}:::plan + __Item963 --> PgSelectSingle964 + PgClassExpression965{{"PgClassExpression[965∈40]
ᐸ__query_co...rray__.”a”ᐳ"}}:::plan + PgSelectSingle964 --> PgClassExpression965 + PgClassExpression966{{"PgClassExpression[966∈40]
ᐸ__query_co...rray__.”b”ᐳ"}}:::plan + PgSelectSingle964 --> PgClassExpression966 + PgClassExpression967{{"PgClassExpression[967∈40]
ᐸ__query_co...rray__.”c”ᐳ"}}:::plan + PgSelectSingle964 --> PgClassExpression967 + PgClassExpression968{{"PgClassExpression[968∈40]
ᐸ__query_co...rray__.”d”ᐳ"}}:::plan + PgSelectSingle964 --> PgClassExpression968 + PgClassExpression969{{"PgClassExpression[969∈40]
ᐸ__query_co...rray__.”e”ᐳ"}}:::plan + PgSelectSingle964 --> PgClassExpression969 + PgClassExpression970{{"PgClassExpression[970∈40]
ᐸ__query_co...rray__.”f”ᐳ"}}:::plan + PgSelectSingle964 --> PgClassExpression970 + PgClassExpression971{{"PgClassExpression[971∈40]
ᐸ__query_co...rray__.”g”ᐳ"}}:::plan + PgSelectSingle964 --> PgClassExpression971 + PgClassExpression975{{"PgClassExpression[975∈40]
ᐸ__query_co....”foo_bar”ᐳ"}}:::plan + PgSelectSingle964 --> PgClassExpression975 + __Item982[/"__Item[982∈41]
ᐸ981ᐳ"\]:::itemplan + PgClassExpression981 ==> __Item982 + __Item989[/"__Item[989∈42]
ᐸ988ᐳ"\]:::itemplan + PgClassExpression988 ==> __Item989 + __Item1001[/"__Item[1001∈43]
ᐸ1000ᐳ"\]:::itemplan + PgSelectRows1000 ==> __Item1001 + PgSelectSingle1002{{"PgSelectSingle[1002∈43]
ᐸquery_interval_setᐳ"}}:::plan + __Item1001 --> PgSelectSingle1002 + PgClassExpression1003{{"PgClassExpression[1003∈43]
ᐸ__query_in...al_set__.vᐳ"}}:::plan + PgSelectSingle1002 --> PgClassExpression1003 + __Item1013[/"__Item[1013∈44]
ᐸ1000ᐳ"\]:::itemplan + PgSelectRows1000 -.-> __Item1013 + PgSelectSingle1014{{"PgSelectSingle[1014∈44]
ᐸquery_interval_setᐳ"}}:::plan + __Item1013 --> PgSelectSingle1014 + PgClassExpression1015{{"PgClassExpression[1015∈44]
ᐸ__query_in...al_set__.vᐳ"}}:::plan + PgSelectSingle1014 --> PgClassExpression1015 + Edge1019{{"Edge[1019∈45]"}}:::plan + PgClassExpression1018{{"PgClassExpression[1018∈45]
ᐸ__query_in...al_set__.vᐳ"}}:::plan + PgCursor1021{{"PgCursor[1021∈45]"}}:::plan + PgCursor1021 -->|rejectNull| Edge1019 + PgClassExpression1018 & Connection998 --> Edge1019 + PgSelectSingle1017{{"PgSelectSingle[1017∈45]
ᐸquery_interval_setᐳ"}}:::plan + PgSelectSingle1017 & Access1020 --> PgCursor1021 + __Item1016[/"__Item[1016∈45]
ᐸ1011ᐳ"\]:::itemplan + __ListTransform1011 ==> __Item1016 + __Item1016 --> PgSelectSingle1017 + PgSelectSingle1017 --> PgClassExpression1018 %% define steps subgraph "Buckets for queries/v4/procedure-query" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 52, 54, 271, 279, 318, 357, 913, 939, 1006, 1039, 1040, 1041, 1042, 1043, 1044, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1072, 1075, 1076, 1077, 1079, 10, 191, 397, 398, 437, 478, 518, 558, 598, 637, 676, 715, 755, 795, 834, 874, 396, 754, 873
2: 7, 16, 23, 30, 38, 46, 55, 63, 71, 80, 88, 96, 104, 112, 137, 153, 172, 249, 266, 931, 968, 984, 991
3: 12, 19, 26, 33, 41, 49, 58, 66, 74, 83, 91, 99, 107, 115, 140, 156, 175, 251, 269, 934, 970, 987, 994
ᐳ: 11, 13, 14, 18, 20, 21, 25, 27, 28, 32, 34, 35, 40, 42, 43, 48, 50, 51, 57, 59, 60, 65, 67, 68, 73, 75, 76, 82, 84, 85, 90, 92, 93, 98, 100, 101, 106, 108, 109, 114, 116, 117, 139, 141, 142, 155, 157, 158, 174, 176, 268, 270, 933, 935, 936, 986, 988, 989, 993, 995, 996"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 58, 134, 154, 277, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 10, 11, 19, 27, 35, 44, 53, 62, 71, 80, 90, 99, 108, 117, 126, 137, 140, 143, 156, 157, 160, 171, 197, 220, 247, 273, 285, 298, 322, 336, 357, 361, 362, 375, 401, 402, 440, 455, 480, 494, 519, 533, 558, 572, 597, 610, 635, 648, 673, 686, 711, 724, 750, 789, 803, 827, 840, 866, 904, 905, 931, 955, 998, 136, 146, 165, 176, 179, 241, 252, 255, 400, 415, 749, 763, 865, 879, 949, 958, 961
2: 7, 17, 25, 33, 42, 51, 60, 69, 78, 88, 97, 106, 115, 124, 144, 158, 177, 198, 253, 271, 286, 324, 363, 403, 443, 482, 521, 560, 598, 636, 674, 712, 751, 791, 828, 867, 906, 918, 923, 932, 944, 959, 976, 983, 999, 1025
ᐳ: 206, 234, 235, 236, 239, 240, 294, 312, 313, 314, 317, 318, 332, 350, 351, 352, 355, 356, 371, 389, 390, 391, 394, 395, 411, 429, 430, 431, 434, 435, 451, 469, 470, 471, 474, 475, 490, 508, 509, 510, 513, 514, 529, 547, 548, 549, 552, 553, 568, 586, 587, 588, 591, 592, 606, 624, 625, 626, 629, 630, 644, 662, 663, 664, 667, 668, 682, 700, 701, 702, 705, 706, 720, 738, 739, 740, 743, 744, 759, 777, 778, 779, 782, 783, 799, 817, 818, 819, 822, 823, 836, 854, 855, 856, 859, 860, 875, 893, 894, 895, 898, 899, 916, 1020
3: 13, 21, 29, 37, 46, 55, 64, 73, 82, 92, 101, 110, 119, 128, 148, 162, 181, 200, 256, 275, 288, 326, 365, 405, 445, 484, 523, 562, 600, 638, 676, 714, 753, 793, 830, 869, 908, 920, 926, 934, 946, 962, 979, 986, 1000, 1027
ᐳ: 12, 14, 15, 20, 22, 23, 28, 30, 31, 36, 38, 39, 45, 47, 48, 54, 56, 57, 63, 65, 66, 72, 74, 75, 81, 83, 84, 91, 93, 94, 100, 102, 103, 109, 111, 112, 118, 120, 121, 127, 129, 130, 147, 149, 150, 161, 163, 164, 180, 182, 183, 184, 185, 186, 187, 188, 189, 193, 222, 224, 226, 228, 230, 232, 274, 276, 278, 279, 280, 281, 282, 300, 302, 304, 306, 308, 310, 338, 340, 342, 344, 346, 348, 377, 379, 381, 383, 385, 387, 417, 419, 421, 423, 425, 427, 457, 459, 461, 463, 465, 467, 496, 498, 500, 502, 504, 506, 535, 537, 539, 541, 543, 545, 574, 576, 578, 580, 582, 584, 612, 614, 616, 618, 620, 622, 650, 652, 654, 656, 658, 660, 688, 690, 692, 694, 696, 698, 726, 728, 730, 732, 734, 736, 765, 767, 769, 771, 773, 775, 805, 807, 809, 811, 813, 815, 842, 844, 846, 848, 850, 852, 881, 883, 885, 887, 889, 891, 919, 921, 922, 925, 927, 928, 945, 947, 948, 978, 980, 981, 985, 987, 988, 1026, 1028, 1029
4: 199, 287, 325, 364, 404, 444, 483, 522, 561, 599, 637, 675, 713, 752, 792, 829, 868, 907, 933, 1011"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgSelect16,First18,PgSelectRows19,PgSelectSingle20,PgClassExpression21,PgSelect23,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression28,PgSelect30,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression35,PgSelect38,First40,PgSelectRows41,PgSelectSingle42,PgClassExpression43,PgSelect46,First48,PgSelectRows49,PgSelectSingle50,PgClassExpression51,Constant52,Constant54,PgSelect55,First57,PgSelectRows58,PgSelectSingle59,PgClassExpression60,PgSelect63,First65,PgSelectRows66,PgSelectSingle67,PgClassExpression68,PgSelect71,First73,PgSelectRows74,PgSelectSingle75,PgClassExpression76,PgSelect80,First82,PgSelectRows83,PgSelectSingle84,PgClassExpression85,PgSelect88,First90,PgSelectRows91,PgSelectSingle92,PgClassExpression93,PgSelect96,First98,PgSelectRows99,PgSelectSingle100,PgClassExpression101,PgSelect104,First106,PgSelectRows107,PgSelectSingle108,PgClassExpression109,PgSelect112,First114,PgSelectRows115,PgSelectSingle116,PgClassExpression117,PgSelect137,First139,PgSelectRows140,PgSelectSingle141,PgClassExpression142,PgSelect153,First155,PgSelectRows156,PgSelectSingle157,PgClassExpression158,PgSelect172,First174,PgSelectRows175,PgSelectSingle176,Connection191,PgSelect249,PgSelectRows251,PgSelect266,First268,PgSelectRows269,PgSelectSingle270,Constant271,Connection279,Connection318,Connection357,Connection396,Lambda397,Lambda398,Connection437,Connection478,Connection518,Connection558,Connection598,Connection637,Connection676,Connection715,Connection754,Lambda755,Connection795,Connection834,Connection873,Lambda874,Connection913,PgSelect931,First933,PgSelectRows934,PgSelectSingle935,PgClassExpression936,Connection939,PgSelect968,PgSelectRows970,PgSelect984,First986,PgSelectRows987,PgSelectSingle988,PgClassExpression989,PgSelect991,First993,PgSelectRows994,PgSelectSingle995,PgClassExpression996,Connection1006,Constant1039,Constant1040,Constant1041,Constant1042,Constant1043,Constant1044,Constant1046,Constant1047,Constant1048,Constant1049,Constant1050,Constant1051,Constant1052,Constant1053,Constant1054,Constant1055,Constant1056,Constant1062,Constant1063,Constant1064,Constant1065,Constant1066,Constant1067,Constant1068,Constant1069,Constant1072,Constant1075,Constant1076,Constant1077,Constant1079 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 176

ROOT PgSelectSingleᐸcompound_type_queryᐳ[176]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgFromExpression11,First12,PgSelectRows13,PgSelectSingle14,PgClassExpression15,PgSelect17,PgFromExpression19,First20,PgSelectRows21,PgSelectSingle22,PgClassExpression23,PgSelect25,PgFromExpression27,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,PgSelect33,PgFromExpression35,First36,PgSelectRows37,PgSelectSingle38,PgClassExpression39,PgSelect42,PgFromExpression44,First45,PgSelectRows46,PgSelectSingle47,PgClassExpression48,PgSelect51,PgFromExpression53,First54,PgSelectRows55,PgSelectSingle56,PgClassExpression57,PgSelect60,PgFromExpression62,First63,PgSelectRows64,PgSelectSingle65,PgClassExpression66,PgSelect69,PgFromExpression71,First72,PgSelectRows73,PgSelectSingle74,PgClassExpression75,PgSelect78,PgFromExpression80,First81,PgSelectRows82,PgSelectSingle83,PgClassExpression84,PgSelect88,PgFromExpression90,First91,PgSelectRows92,PgSelectSingle93,PgClassExpression94,PgSelect97,PgFromExpression99,First100,PgSelectRows101,PgSelectSingle102,PgClassExpression103,PgSelect106,PgFromExpression108,First109,PgSelectRows110,PgSelectSingle111,PgClassExpression112,PgSelect115,PgFromExpression117,First118,PgSelectRows119,PgSelectSingle120,PgClassExpression121,PgSelect124,PgFromExpression126,First127,PgSelectRows128,PgSelectSingle129,PgClassExpression130,Constant134,__InputObject136,__InputObject137,__InputObject140,BakedInput143,PgSelect144,PgFromExpression146,First147,PgSelectRows148,PgSelectSingle149,PgClassExpression150,Constant154,__InputObject156,BakedInput157,PgSelect158,PgFromExpression160,First161,PgSelectRows162,PgSelectSingle163,PgClassExpression164,__InputObject165,__InputObject171,BakedInput176,PgSelect177,PgFromExpression179,First180,PgSelectRows181,PgSelectSingle182,PgClassExpression183,PgClassExpression184,PgClassExpression185,PgClassExpression186,PgClassExpression187,PgClassExpression188,PgClassExpression189,PgClassExpression193,Connection197,PgSelect198,__ListTransform199,PgSelectRows200,Access206,PgPageInfo220,First222,PgSelectSingle224,PgCursor226,Last228,PgSelectSingle230,PgCursor232,Access234,Object235,Lambda236,Object239,Lambda240,__InputObject241,__InputObject247,BakedInput252,PgSelect253,PgFromExpression255,PgSelectRows256,PgSelect271,PgFromExpression273,First274,PgSelectRows275,PgSelectSingle276,Constant277,PgClassExpression278,List279,Lambda280,PgClassExpression281,PgClassExpression282,Connection285,PgSelect286,__ListTransform287,PgSelectRows288,Access294,PgPageInfo298,First300,PgSelectSingle302,PgCursor304,Last306,PgSelectSingle308,PgCursor310,Access312,Object313,Lambda314,Object317,Lambda318,Connection322,PgSelect324,__ListTransform325,PgSelectRows326,Access332,PgPageInfo336,First338,PgSelectSingle340,PgCursor342,Last344,PgSelectSingle346,PgCursor348,Access350,Object351,Lambda352,Object355,Lambda356,__InputObject357,Connection361,ApplyInput362,PgSelect363,__ListTransform364,PgSelectRows365,Access371,PgPageInfo375,First377,PgSelectSingle379,PgCursor381,Last383,PgSelectSingle385,PgCursor387,Access389,Object390,Lambda391,Object394,Lambda395,Connection400,Lambda401,Lambda402,PgSelect403,__ListTransform404,PgSelectRows405,Access411,PgPageInfo415,First417,PgSelectSingle419,PgCursor421,Last423,PgSelectSingle425,PgCursor427,Access429,Object430,Lambda431,Object434,Lambda435,Connection440,PgSelect443,__ListTransform444,PgSelectRows445,Access451,PgPageInfo455,First457,PgSelectSingle459,PgCursor461,Last463,PgSelectSingle465,PgCursor467,Access469,Object470,Lambda471,Object474,Lambda475,Connection480,PgSelect482,__ListTransform483,PgSelectRows484,Access490,PgPageInfo494,First496,PgSelectSingle498,PgCursor500,Last502,PgSelectSingle504,PgCursor506,Access508,Object509,Lambda510,Object513,Lambda514,Connection519,PgSelect521,__ListTransform522,PgSelectRows523,Access529,PgPageInfo533,First535,PgSelectSingle537,PgCursor539,Last541,PgSelectSingle543,PgCursor545,Access547,Object548,Lambda549,Object552,Lambda553,Connection558,PgSelect560,__ListTransform561,PgSelectRows562,Access568,PgPageInfo572,First574,PgSelectSingle576,PgCursor578,Last580,PgSelectSingle582,PgCursor584,Access586,Object587,Lambda588,Object591,Lambda592,Connection597,PgSelect598,__ListTransform599,PgSelectRows600,Access606,PgPageInfo610,First612,PgSelectSingle614,PgCursor616,Last618,PgSelectSingle620,PgCursor622,Access624,Object625,Lambda626,Object629,Lambda630,Connection635,PgSelect636,__ListTransform637,PgSelectRows638,Access644,PgPageInfo648,First650,PgSelectSingle652,PgCursor654,Last656,PgSelectSingle658,PgCursor660,Access662,Object663,Lambda664,Object667,Lambda668,Connection673,PgSelect674,__ListTransform675,PgSelectRows676,Access682,PgPageInfo686,First688,PgSelectSingle690,PgCursor692,Last694,PgSelectSingle696,PgCursor698,Access700,Object701,Lambda702,Object705,Lambda706,Connection711,PgSelect712,__ListTransform713,PgSelectRows714,Access720,PgPageInfo724,First726,PgSelectSingle728,PgCursor730,Last732,PgSelectSingle734,PgCursor736,Access738,Object739,Lambda740,Object743,Lambda744,Connection749,Lambda750,PgSelect751,__ListTransform752,PgSelectRows753,Access759,PgPageInfo763,First765,PgSelectSingle767,PgCursor769,Last771,PgSelectSingle773,PgCursor775,Access777,Object778,Lambda779,Object782,Lambda783,Connection789,PgSelect791,__ListTransform792,PgSelectRows793,Access799,PgPageInfo803,First805,PgSelectSingle807,PgCursor809,Last811,PgSelectSingle813,PgCursor815,Access817,Object818,Lambda819,Object822,Lambda823,Connection827,PgSelect828,__ListTransform829,PgSelectRows830,Access836,PgPageInfo840,First842,PgSelectSingle844,PgCursor846,Last848,PgSelectSingle850,PgCursor852,Access854,Object855,Lambda856,Object859,Lambda860,Connection865,Lambda866,PgSelect867,__ListTransform868,PgSelectRows869,Access875,PgPageInfo879,First881,PgSelectSingle883,PgCursor885,Last887,PgSelectSingle889,PgCursor891,Access893,Object894,Lambda895,Object898,Lambda899,PgFromExpression904,Connection905,PgSelect906,__ListTransform907,PgSelectRows908,Access916,PgSelect918,First919,PgSelectRows920,PgSelectSingle921,PgClassExpression922,PgSelect923,First925,PgSelectRows926,PgSelectSingle927,PgClassExpression928,Connection931,PgSelect932,__ListTransform933,PgSelectRows934,PgSelect944,First945,PgSelectRows946,PgSelectSingle947,PgClassExpression948,__InputObject949,__InputObject955,BakedInput958,PgSelect959,PgFromExpression961,PgSelectRows962,PgSelect976,First978,PgSelectRows979,PgSelectSingle980,PgClassExpression981,PgSelect983,First985,PgSelectRows986,PgSelectSingle987,PgClassExpression988,Connection998,PgSelect999,PgSelectRows1000,__ListTransform1011,Access1020,PgSelect1025,First1026,PgSelectRows1027,PgSelectSingle1028,PgClassExpression1029,Constant1031,Constant1032,Constant1033,Constant1034,Constant1035,Constant1036,Constant1037,Constant1038,Constant1039,Constant1040,Constant1041,Constant1042,Constant1043,Constant1044,Constant1045,Constant1046,Constant1047,Constant1048,Constant1049,Constant1050,Constant1051,Constant1052,Constant1053,Constant1054,Constant1055,Constant1056,Constant1057,Constant1058,Constant1059 bucket0 + Bucket1("Bucket 1 (subroutine)

ROOT PgSelectSingle{1}ᐸcompound_type_set_queryᐳ[202]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression177,PgClassExpression178,PgClassExpression179,PgClassExpression180,PgClassExpression181,PgClassExpression182,PgClassExpression183,PgClassExpression187 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 183

ROOT PgClassExpression{1}ᐸ__compound...uery__.”g”ᐳ[183]"):::bucket + class Bucket1,__Item201,PgSelectSingle202 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 197, 206

ROOT __Item{2}ᐸ199ᐳ[203]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 10, 191, 1046, 52

ROOT Connectionᐸ189ᐳ[191]
1: PgSelect[192]
ᐳ: 214, 200, 229, 230, 231, 234, 235
2: PgSelectRows[194]
ᐳ: 216, 218, 220, 222, 224, 226
3: __ListTransform[193]"):::bucket + class Bucket2,__Item203,PgSelectSingle204,Edge205,PgCursor207,PgClassExpression208,PgClassExpression209,PgClassExpression210,PgClassExpression211,PgClassExpression212,PgClassExpression213,PgClassExpression214,PgClassExpression218 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ256ᐳ[257]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgSelect192,__ListTransform193,PgSelectRows194,Access200,PgPageInfo214,First216,PgSelectSingle218,PgCursor220,Last222,PgSelectSingle224,PgCursor226,Access229,Object230,Lambda231,Object234,Lambda235 bucket3 - Bucket4("Bucket 4 (subroutine)

ROOT PgSelectSingle{4}ᐸcompound_type_set_queryᐳ[196]"):::bucket + class Bucket3,__Item257,PgSelectSingle258,PgClassExpression259,PgClassExpression260,PgClassExpression261,PgClassExpression262,PgClassExpression263,PgClassExpression264,PgClassExpression265,PgClassExpression269 bucket3 + Bucket4("Bucket 4 (subroutine)

ROOT PgSelectSingle{4}ᐸtable_set_queryᐳ[290]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item195,PgSelectSingle196 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 191, 200

ROOT __Item{5}ᐸ193ᐳ[197]"):::bucket + class Bucket4,__Item289,PgSelectSingle290 bucket4 + Bucket5("Bucket 5 (listItem)
Deps: 285, 294

ROOT __Item{5}ᐸ287ᐳ[291]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item197,PgSelectSingle198,Edge199,PgCursor201 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 199, 198, 201

ROOT Edge{5}[199]"):::bucket + class Bucket5,__Item291,PgSelectSingle292,Edge293,PgCursor295,PgClassExpression296 bucket5 + Bucket6("Bucket 6 (subroutine)

ROOT PgSelectSingle{6}ᐸtable_set_queryᐳ[328]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 198

ROOT PgSelectSingle{5}ᐸcompound_type_set_queryᐳ[198]"):::bucket + class Bucket6,__Item327,PgSelectSingle328 bucket6 + Bucket7("Bucket 7 (listItem)
Deps: 322, 332

ROOT __Item{7}ᐸ325ᐳ[329]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression202,PgClassExpression203,PgClassExpression204,PgClassExpression205,PgClassExpression206,PgClassExpression207,PgClassExpression208,PgClassExpression212 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 208

ROOT PgClassExpression{7}ᐸ__compound...uery__.”g”ᐳ[208]"):::bucket + class Bucket7,__Item329,PgSelectSingle330,Edge331,PgCursor333,PgClassExpression334 bucket7 + Bucket8("Bucket 8 (subroutine)

ROOT PgSelectSingle{8}ᐸtable_set_queryᐳ[367]"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8 bucket8 - Bucket9("Bucket 9 (listItem)

ROOT __Item{9}ᐸ251ᐳ[252]"):::bucket + class Bucket8,__Item366,PgSelectSingle367 bucket8 + Bucket9("Bucket 9 (listItem)
Deps: 361, 371

ROOT __Item{9}ᐸ364ᐳ[368]"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,__Item252,PgSelectSingle253 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 253

ROOT PgSelectSingle{9}ᐸcompound_type_array_queryᐳ[253]"):::bucket + class Bucket9,__Item368,PgSelectSingle369,Edge370,PgCursor372,PgClassExpression373 bucket9 + Bucket10("Bucket 10 (subroutine)

ROOT PgSelectSingle{10}ᐸtable_set_queryᐳ[407]"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression254,PgClassExpression255,PgClassExpression256,PgClassExpression257,PgClassExpression258,PgClassExpression259,PgClassExpression260,PgClassExpression264 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 260

ROOT PgClassExpression{10}ᐸ__compound...uery__.”g”ᐳ[260]"):::bucket + class Bucket10,__Item406,PgSelectSingle407 bucket10 + Bucket11("Bucket 11 (listItem)
Deps: 400, 411

ROOT __Item{11}ᐸ404ᐳ[408]"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 270, 271

ROOT PgSelectSingleᐸtable_queryᐳ[270]"):::bucket + class Bucket11,__Item408,PgSelectSingle409,Edge410,PgCursor412,PgClassExpression413 bucket11 + Bucket12("Bucket 12 (subroutine)

ROOT PgSelectSingle{12}ᐸtable_set_queryᐳ[447]"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12,PgClassExpression272,List273,Lambda274,PgClassExpression275,PgClassExpression276 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 10, 279, 52

ROOT Connectionᐸ277ᐳ[279]
1: PgSelect[280]
ᐳ: 292, 288, 307, 308, 309, 312, 313
2: PgSelectRows[282]
ᐳ: 294, 296, 298, 300, 302, 304
3: __ListTransform[281]"):::bucket + class Bucket12,__Item446,PgSelectSingle447 bucket12 + Bucket13("Bucket 13 (listItem)
Deps: 440, 451

ROOT __Item{13}ᐸ444ᐳ[448]"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13,PgSelect280,__ListTransform281,PgSelectRows282,Access288,PgPageInfo292,First294,PgSelectSingle296,PgCursor298,Last300,PgSelectSingle302,PgCursor304,Access307,Object308,Lambda309,Object312,Lambda313 bucket13 - Bucket14("Bucket 14 (subroutine)

ROOT PgSelectSingle{14}ᐸtable_set_queryᐳ[284]"):::bucket + class Bucket13,__Item448,PgSelectSingle449,Edge450,PgCursor452,PgClassExpression453 bucket13 + Bucket14("Bucket 14 (subroutine)

ROOT PgSelectSingle{14}ᐸtable_set_queryᐳ[486]"):::bucket classDef bucket14 stroke:#a52a2a - class Bucket14,__Item283,PgSelectSingle284 bucket14 - Bucket15("Bucket 15 (listItem)
Deps: 279, 288

ROOT __Item{15}ᐸ281ᐳ[285]"):::bucket + class Bucket14,__Item485,PgSelectSingle486 bucket14 + Bucket15("Bucket 15 (listItem)
Deps: 480, 490

ROOT __Item{15}ᐸ483ᐳ[487]"):::bucket classDef bucket15 stroke:#ff00ff - class Bucket15,__Item285,PgSelectSingle286,Edge287,PgCursor289 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 287, 286, 289

ROOT Edge{15}[287]"):::bucket + class Bucket15,__Item487,PgSelectSingle488,Edge489,PgCursor491,PgClassExpression492 bucket15 + Bucket16("Bucket 16 (subroutine)

ROOT PgSelectSingle{16}ᐸtable_set_queryᐳ[525]"):::bucket classDef bucket16 stroke:#f5deb3 - class Bucket16 bucket16 - Bucket17("Bucket 17 (nullableBoundary)
Deps: 286

ROOT PgSelectSingle{15}ᐸtable_set_queryᐳ[286]"):::bucket + class Bucket16,__Item524,PgSelectSingle525 bucket16 + Bucket17("Bucket 17 (listItem)
Deps: 519, 529

ROOT __Item{17}ᐸ522ᐳ[526]"):::bucket classDef bucket17 stroke:#696969 - class Bucket17,PgClassExpression290 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 10, 318, 52

ROOT Connectionᐸ316ᐳ[318]
1: PgSelect[319]
ᐳ: 331, 327, 346, 347, 348, 351, 352
2: PgSelectRows[321]
ᐳ: 333, 335, 337, 339, 341, 343
3: __ListTransform[320]"):::bucket + class Bucket17,__Item526,PgSelectSingle527,Edge528,PgCursor530,PgClassExpression531 bucket17 + Bucket18("Bucket 18 (subroutine)

ROOT PgSelectSingle{18}ᐸtable_set_queryᐳ[564]"):::bucket classDef bucket18 stroke:#00bfff - class Bucket18,PgSelect319,__ListTransform320,PgSelectRows321,Access327,PgPageInfo331,First333,PgSelectSingle335,PgCursor337,Last339,PgSelectSingle341,PgCursor343,Access346,Object347,Lambda348,Object351,Lambda352 bucket18 - Bucket19("Bucket 19 (subroutine)

ROOT PgSelectSingle{19}ᐸtable_set_queryᐳ[323]"):::bucket + class Bucket18,__Item563,PgSelectSingle564 bucket18 + Bucket19("Bucket 19 (listItem)
Deps: 558, 568

ROOT __Item{19}ᐸ561ᐳ[565]"):::bucket classDef bucket19 stroke:#7f007f - class Bucket19,__Item322,PgSelectSingle323 bucket19 - Bucket20("Bucket 20 (listItem)
Deps: 318, 327

ROOT __Item{20}ᐸ320ᐳ[324]"):::bucket + class Bucket19,__Item565,PgSelectSingle566,Edge567,PgCursor569,PgClassExpression570 bucket19 + Bucket20("Bucket 20 (subroutine)

ROOT PgSelectSingle{20}ᐸtable_set_queryᐳ[602]"):::bucket classDef bucket20 stroke:#ffa500 - class Bucket20,__Item324,PgSelectSingle325,Edge326,PgCursor328 bucket20 - Bucket21("Bucket 21 (nullableBoundary)
Deps: 326, 325, 328

ROOT Edge{20}[326]"):::bucket + class Bucket20,__Item601,PgSelectSingle602 bucket20 + Bucket21("Bucket 21 (listItem)
Deps: 597, 606

ROOT __Item{21}ᐸ599ᐳ[603]"):::bucket classDef bucket21 stroke:#0000ff - class Bucket21 bucket21 - Bucket22("Bucket 22 (nullableBoundary)
Deps: 325

ROOT PgSelectSingle{20}ᐸtable_set_queryᐳ[325]"):::bucket + class Bucket21,__Item603,PgSelectSingle604,Edge605,PgCursor607,PgClassExpression608 bucket21 + Bucket22("Bucket 22 (subroutine)

ROOT PgSelectSingle{22}ᐸtable_set_queryᐳ[640]"):::bucket classDef bucket22 stroke:#7fff00 - class Bucket22,PgClassExpression329 bucket22 - Bucket23("Bucket 23 (nullableBoundary)
Deps: 10, 1062, 357, 52

ROOT Connectionᐸ355ᐳ[357]
1: PgSelect[358]
ᐳ: 370, 366, 385, 386, 387, 390, 391
2: PgSelectRows[360]
ᐳ: 372, 374, 376, 378, 380, 382
3: __ListTransform[359]"):::bucket + class Bucket22,__Item639,PgSelectSingle640 bucket22 + Bucket23("Bucket 23 (listItem)
Deps: 635, 644

ROOT __Item{23}ᐸ637ᐳ[641]"):::bucket classDef bucket23 stroke:#ff1493 - class Bucket23,PgSelect358,__ListTransform359,PgSelectRows360,Access366,PgPageInfo370,First372,PgSelectSingle374,PgCursor376,Last378,PgSelectSingle380,PgCursor382,Access385,Object386,Lambda387,Object390,Lambda391 bucket23 - Bucket24("Bucket 24 (subroutine)

ROOT PgSelectSingle{24}ᐸtable_set_queryᐳ[362]"):::bucket + class Bucket23,__Item641,PgSelectSingle642,Edge643,PgCursor645,PgClassExpression646 bucket23 + Bucket24("Bucket 24 (subroutine)

ROOT PgSelectSingle{24}ᐸtable_set_queryᐳ[678]"):::bucket classDef bucket24 stroke:#808000 - class Bucket24,__Item361,PgSelectSingle362 bucket24 - Bucket25("Bucket 25 (listItem)
Deps: 357, 366

ROOT __Item{25}ᐸ359ᐳ[363]"):::bucket + class Bucket24,__Item677,PgSelectSingle678 bucket24 + Bucket25("Bucket 25 (listItem)
Deps: 673, 682

ROOT __Item{25}ᐸ675ᐳ[679]"):::bucket classDef bucket25 stroke:#dda0dd - class Bucket25,__Item363,PgSelectSingle364,Edge365,PgCursor367 bucket25 - Bucket26("Bucket 26 (nullableBoundary)
Deps: 365, 364, 367

ROOT Edge{25}[365]"):::bucket + class Bucket25,__Item679,PgSelectSingle680,Edge681,PgCursor683,PgClassExpression684 bucket25 + Bucket26("Bucket 26 (subroutine)

ROOT PgSelectSingle{26}ᐸtable_set_queryᐳ[716]"):::bucket classDef bucket26 stroke:#ff0000 - class Bucket26 bucket26 - Bucket27("Bucket 27 (nullableBoundary)
Deps: 364

ROOT PgSelectSingle{25}ᐸtable_set_queryᐳ[364]"):::bucket + class Bucket26,__Item715,PgSelectSingle716 bucket26 + Bucket27("Bucket 27 (listItem)
Deps: 711, 720

ROOT __Item{27}ᐸ713ᐳ[717]"):::bucket classDef bucket27 stroke:#ffff00 - class Bucket27,PgClassExpression368 bucket27 - Bucket28("Bucket 28 (nullableBoundary)
Deps: 10, 396, 397, 398, 52

ROOT Connectionᐸ394ᐳ[396]
1: PgSelect[399]
ᐳ: 411, 407, 426, 427, 428, 431, 432
2: PgSelectRows[401]
ᐳ: 413, 415, 417, 419, 421, 423
3: __ListTransform[400]"):::bucket + class Bucket27,__Item717,PgSelectSingle718,Edge719,PgCursor721,PgClassExpression722 bucket27 + Bucket28("Bucket 28 (subroutine)

ROOT PgSelectSingle{28}ᐸtable_set_queryᐳ[755]"):::bucket classDef bucket28 stroke:#00ffff - class Bucket28,PgSelect399,__ListTransform400,PgSelectRows401,Access407,PgPageInfo411,First413,PgSelectSingle415,PgCursor417,Last419,PgSelectSingle421,PgCursor423,Access426,Object427,Lambda428,Object431,Lambda432 bucket28 - Bucket29("Bucket 29 (subroutine)

ROOT PgSelectSingle{29}ᐸtable_set_queryᐳ[403]"):::bucket + class Bucket28,__Item754,PgSelectSingle755 bucket28 + Bucket29("Bucket 29 (listItem)
Deps: 749, 759

ROOT __Item{29}ᐸ752ᐳ[756]"):::bucket classDef bucket29 stroke:#4169e1 - class Bucket29,__Item402,PgSelectSingle403 bucket29 - Bucket30("Bucket 30 (listItem)
Deps: 396, 407

ROOT __Item{30}ᐸ400ᐳ[404]"):::bucket + class Bucket29,__Item756,PgSelectSingle757,Edge758,PgCursor760,PgClassExpression761 bucket29 + Bucket30("Bucket 30 (subroutine)

ROOT PgSelectSingle{30}ᐸtable_set_queryᐳ[795]"):::bucket classDef bucket30 stroke:#3cb371 - class Bucket30,__Item404,PgSelectSingle405,Edge406,PgCursor408 bucket30 - Bucket31("Bucket 31 (nullableBoundary)
Deps: 406, 405, 408

ROOT Edge{30}[406]"):::bucket + class Bucket30,__Item794,PgSelectSingle795 bucket30 + Bucket31("Bucket 31 (listItem)
Deps: 789, 799

ROOT __Item{31}ᐸ792ᐳ[796]"):::bucket classDef bucket31 stroke:#a52a2a - class Bucket31 bucket31 - Bucket32("Bucket 32 (nullableBoundary)
Deps: 405

ROOT PgSelectSingle{30}ᐸtable_set_queryᐳ[405]"):::bucket + class Bucket31,__Item796,PgSelectSingle797,Edge798,PgCursor800,PgClassExpression801 bucket31 + Bucket32("Bucket 32 (subroutine)

ROOT PgSelectSingle{32}ᐸtable_set_query_plpgsqlᐳ[832]"):::bucket classDef bucket32 stroke:#ff00ff - class Bucket32,PgClassExpression409 bucket32 - Bucket33("Bucket 33 (nullableBoundary)
Deps: 10, 437, 397, 398, 52

ROOT Connectionᐸ435ᐳ[437]
1: PgSelect[440]
ᐳ: 452, 448, 467, 468, 469, 472, 473
2: PgSelectRows[442]
ᐳ: 454, 456, 458, 460, 462, 464
3: __ListTransform[441]"):::bucket + class Bucket32,__Item831,PgSelectSingle832 bucket32 + Bucket33("Bucket 33 (listItem)
Deps: 827, 836

ROOT __Item{33}ᐸ829ᐳ[833]"):::bucket classDef bucket33 stroke:#f5deb3 - class Bucket33,PgSelect440,__ListTransform441,PgSelectRows442,Access448,PgPageInfo452,First454,PgSelectSingle456,PgCursor458,Last460,PgSelectSingle462,PgCursor464,Access467,Object468,Lambda469,Object472,Lambda473 bucket33 - Bucket34("Bucket 34 (subroutine)

ROOT PgSelectSingle{34}ᐸtable_set_queryᐳ[444]"):::bucket + class Bucket33,__Item833,PgSelectSingle834,Edge835,PgCursor837,PgClassExpression838 bucket33 + Bucket34("Bucket 34 (subroutine)

ROOT PgSelectSingle{34}ᐸtable_set_query_plpgsqlᐳ[871]"):::bucket classDef bucket34 stroke:#696969 - class Bucket34,__Item443,PgSelectSingle444 bucket34 - Bucket35("Bucket 35 (listItem)
Deps: 437, 448

ROOT __Item{35}ᐸ441ᐳ[445]"):::bucket + class Bucket34,__Item870,PgSelectSingle871 bucket34 + Bucket35("Bucket 35 (listItem)
Deps: 865, 875

ROOT __Item{35}ᐸ868ᐳ[872]"):::bucket classDef bucket35 stroke:#00bfff - class Bucket35,__Item445,PgSelectSingle446,Edge447,PgCursor449 bucket35 - Bucket36("Bucket 36 (nullableBoundary)
Deps: 447, 446, 449

ROOT Edge{35}[447]"):::bucket + class Bucket35,__Item872,PgSelectSingle873,Edge874,PgCursor876,PgClassExpression877 bucket35 + Bucket36("Bucket 36 (subroutine)

ROOT PgClassExpression{36}ᐸ__int_set_query__.vᐳ[911]"):::bucket classDef bucket36 stroke:#7f007f - class Bucket36 bucket36 - Bucket37("Bucket 37 (nullableBoundary)
Deps: 446

ROOT PgSelectSingle{35}ᐸtable_set_queryᐳ[446]"):::bucket + class Bucket36,__Item909,PgSelectSingle910,PgClassExpression911 bucket36 + Bucket37("Bucket 37 (listItem)
Deps: 905, 916

ROOT __Item{37}ᐸ907ᐳ[912]"):::bucket classDef bucket37 stroke:#ffa500 - class Bucket37,PgClassExpression450 bucket37 - Bucket38("Bucket 38 (nullableBoundary)
Deps: 10, 478, 397, 1044, 52

ROOT Connectionᐸ476ᐳ[478]
1: PgSelect[480]
ᐳ: 492, 488, 507, 508, 509, 512, 513
2: PgSelectRows[482]
ᐳ: 494, 496, 498, 500, 502, 504
3: __ListTransform[481]"):::bucket + class Bucket37,__Item912,PgSelectSingle913,PgClassExpression914,Edge915,PgCursor917 bucket37 + Bucket38("Bucket 38 (subroutine)

ROOT PgClassExpression{38}ᐸ__static_b...nteger__.vᐳ[937]"):::bucket classDef bucket38 stroke:#0000ff - class Bucket38,PgSelect480,__ListTransform481,PgSelectRows482,Access488,PgPageInfo492,First494,PgSelectSingle496,PgCursor498,Last500,PgSelectSingle502,PgCursor504,Access507,Object508,Lambda509,Object512,Lambda513 bucket38 - Bucket39("Bucket 39 (subroutine)

ROOT PgSelectSingle{39}ᐸtable_set_queryᐳ[484]"):::bucket + class Bucket38,__Item935,PgSelectSingle936,PgClassExpression937 bucket38 + Bucket39("Bucket 39 (listItem)
Deps: 931

ROOT __Item{39}ᐸ933ᐳ[938]"):::bucket classDef bucket39 stroke:#7fff00 - class Bucket39,__Item483,PgSelectSingle484 bucket39 - Bucket40("Bucket 40 (listItem)
Deps: 478, 488

ROOT __Item{40}ᐸ481ᐳ[485]"):::bucket + class Bucket39,__Item938,PgSelectSingle939,PgClassExpression940,Edge1030 bucket39 + Bucket40("Bucket 40 (listItem)

ROOT __Item{40}ᐸ962ᐳ[963]"):::bucket classDef bucket40 stroke:#ff1493 - class Bucket40,__Item485,PgSelectSingle486,Edge487,PgCursor489 bucket40 - Bucket41("Bucket 41 (nullableBoundary)
Deps: 487, 486, 489

ROOT Edge{40}[487]"):::bucket + class Bucket40,__Item963,PgSelectSingle964,PgClassExpression965,PgClassExpression966,PgClassExpression967,PgClassExpression968,PgClassExpression969,PgClassExpression970,PgClassExpression971,PgClassExpression975 bucket40 + Bucket41("Bucket 41 (listItem)

ROOT __Item{41}ᐸ981ᐳ[982]"):::bucket classDef bucket41 stroke:#808000 - class Bucket41 bucket41 - Bucket42("Bucket 42 (nullableBoundary)
Deps: 486

ROOT PgSelectSingle{40}ᐸtable_set_queryᐳ[486]"):::bucket + class Bucket41,__Item982 bucket41 + Bucket42("Bucket 42 (listItem)

ROOT __Item{42}ᐸ988ᐳ[989]"):::bucket classDef bucket42 stroke:#dda0dd - class Bucket42,PgClassExpression490 bucket42 - Bucket43("Bucket 43 (nullableBoundary)
Deps: 10, 518, 397, 1044, 52

ROOT Connectionᐸ516ᐳ[518]
1: PgSelect[520]
ᐳ: 532, 528, 547, 548, 549, 552, 553
2: PgSelectRows[522]
ᐳ: 534, 536, 538, 540, 542, 544
3: __ListTransform[521]"):::bucket + class Bucket42,__Item989 bucket42 + Bucket43("Bucket 43 (listItem)

ROOT __Item{43}ᐸ1000ᐳ[1001]"):::bucket classDef bucket43 stroke:#ff0000 - class Bucket43,PgSelect520,__ListTransform521,PgSelectRows522,Access528,PgPageInfo532,First534,PgSelectSingle536,PgCursor538,Last540,PgSelectSingle542,PgCursor544,Access547,Object548,Lambda549,Object552,Lambda553 bucket43 - Bucket44("Bucket 44 (subroutine)

ROOT PgSelectSingle{44}ᐸtable_set_queryᐳ[524]"):::bucket + class Bucket43,__Item1001,PgSelectSingle1002,PgClassExpression1003 bucket43 + Bucket44("Bucket 44 (subroutine)

ROOT PgClassExpression{44}ᐸ__query_in...al_set__.vᐳ[1015]"):::bucket classDef bucket44 stroke:#ffff00 - class Bucket44,__Item523,PgSelectSingle524 bucket44 - Bucket45("Bucket 45 (listItem)
Deps: 518, 528

ROOT __Item{45}ᐸ521ᐳ[525]"):::bucket + class Bucket44,__Item1013,PgSelectSingle1014,PgClassExpression1015 bucket44 + Bucket45("Bucket 45 (listItem)
Deps: 998, 1020

ROOT __Item{45}ᐸ1011ᐳ[1016]"):::bucket classDef bucket45 stroke:#00ffff - class Bucket45,__Item525,PgSelectSingle526,Edge527,PgCursor529 bucket45 - Bucket46("Bucket 46 (nullableBoundary)
Deps: 527, 526, 529

ROOT Edge{45}[527]"):::bucket - classDef bucket46 stroke:#4169e1 - class Bucket46 bucket46 - Bucket47("Bucket 47 (nullableBoundary)
Deps: 526

ROOT PgSelectSingle{45}ᐸtable_set_queryᐳ[526]"):::bucket - classDef bucket47 stroke:#3cb371 - class Bucket47,PgClassExpression530 bucket47 - Bucket48("Bucket 48 (nullableBoundary)
Deps: 10, 558, 398, 1044, 52

ROOT Connectionᐸ556ᐳ[558]
1: PgSelect[560]
ᐳ: 572, 568, 587, 588, 589, 592, 593
2: PgSelectRows[562]
ᐳ: 574, 576, 578, 580, 582, 584
3: __ListTransform[561]"):::bucket - classDef bucket48 stroke:#a52a2a - class Bucket48,PgSelect560,__ListTransform561,PgSelectRows562,Access568,PgPageInfo572,First574,PgSelectSingle576,PgCursor578,Last580,PgSelectSingle582,PgCursor584,Access587,Object588,Lambda589,Object592,Lambda593 bucket48 - Bucket49("Bucket 49 (subroutine)

ROOT PgSelectSingle{49}ᐸtable_set_queryᐳ[564]"):::bucket - classDef bucket49 stroke:#ff00ff - class Bucket49,__Item563,PgSelectSingle564 bucket49 - Bucket50("Bucket 50 (listItem)
Deps: 558, 568

ROOT __Item{50}ᐸ561ᐳ[565]"):::bucket - classDef bucket50 stroke:#f5deb3 - class Bucket50,__Item565,PgSelectSingle566,Edge567,PgCursor569 bucket50 - Bucket51("Bucket 51 (nullableBoundary)
Deps: 567, 566, 569

ROOT Edge{50}[567]"):::bucket - classDef bucket51 stroke:#696969 - class Bucket51 bucket51 - Bucket52("Bucket 52 (nullableBoundary)
Deps: 566

ROOT PgSelectSingle{50}ᐸtable_set_queryᐳ[566]"):::bucket - classDef bucket52 stroke:#00bfff - class Bucket52,PgClassExpression570 bucket52 - Bucket53("Bucket 53 (nullableBoundary)
Deps: 10, 598, 1044, 52

ROOT Connectionᐸ596ᐳ[598]
1: PgSelect[599]
ᐳ: 611, 607, 626, 627, 628, 631, 632
2: PgSelectRows[601]
ᐳ: 613, 615, 617, 619, 621, 623
3: __ListTransform[600]"):::bucket - classDef bucket53 stroke:#7f007f - class Bucket53,PgSelect599,__ListTransform600,PgSelectRows601,Access607,PgPageInfo611,First613,PgSelectSingle615,PgCursor617,Last619,PgSelectSingle621,PgCursor623,Access626,Object627,Lambda628,Object631,Lambda632 bucket53 - Bucket54("Bucket 54 (subroutine)

ROOT PgSelectSingle{54}ᐸtable_set_queryᐳ[603]"):::bucket - classDef bucket54 stroke:#ffa500 - class Bucket54,__Item602,PgSelectSingle603 bucket54 - Bucket55("Bucket 55 (listItem)
Deps: 598, 607

ROOT __Item{55}ᐸ600ᐳ[604]"):::bucket - classDef bucket55 stroke:#0000ff - class Bucket55,__Item604,PgSelectSingle605,Edge606,PgCursor608 bucket55 - Bucket56("Bucket 56 (nullableBoundary)
Deps: 606, 605, 608

ROOT Edge{55}[606]"):::bucket - classDef bucket56 stroke:#7fff00 - class Bucket56 bucket56 - Bucket57("Bucket 57 (nullableBoundary)
Deps: 605

ROOT PgSelectSingle{55}ᐸtable_set_queryᐳ[605]"):::bucket - classDef bucket57 stroke:#ff1493 - class Bucket57,PgClassExpression609 bucket57 - Bucket58("Bucket 58 (nullableBoundary)
Deps: 10, 637, 1044, 1065, 52

ROOT Connectionᐸ635ᐳ[637]
1: PgSelect[638]
ᐳ: 650, 646, 665, 666, 667, 670, 671
2: PgSelectRows[640]
ᐳ: 652, 654, 656, 658, 660, 662
3: __ListTransform[639]"):::bucket - classDef bucket58 stroke:#808000 - class Bucket58,PgSelect638,__ListTransform639,PgSelectRows640,Access646,PgPageInfo650,First652,PgSelectSingle654,PgCursor656,Last658,PgSelectSingle660,PgCursor662,Access665,Object666,Lambda667,Object670,Lambda671 bucket58 - Bucket59("Bucket 59 (subroutine)

ROOT PgSelectSingle{59}ᐸtable_set_queryᐳ[642]"):::bucket - classDef bucket59 stroke:#dda0dd - class Bucket59,__Item641,PgSelectSingle642 bucket59 - Bucket60("Bucket 60 (listItem)
Deps: 637, 646

ROOT __Item{60}ᐸ639ᐳ[643]"):::bucket - classDef bucket60 stroke:#ff0000 - class Bucket60,__Item643,PgSelectSingle644,Edge645,PgCursor647 bucket60 - Bucket61("Bucket 61 (nullableBoundary)
Deps: 645, 644, 647

ROOT Edge{60}[645]"):::bucket - classDef bucket61 stroke:#ffff00 - class Bucket61 bucket61 - Bucket62("Bucket 62 (nullableBoundary)
Deps: 644

ROOT PgSelectSingle{60}ᐸtable_set_queryᐳ[644]"):::bucket - classDef bucket62 stroke:#00ffff - class Bucket62,PgClassExpression648 bucket62 - Bucket63("Bucket 63 (nullableBoundary)
Deps: 10, 676, 1044, 1066, 52

ROOT Connectionᐸ674ᐳ[676]
1: PgSelect[677]
ᐳ: 689, 685, 704, 705, 706, 709, 710
2: PgSelectRows[679]
ᐳ: 691, 693, 695, 697, 699, 701
3: __ListTransform[678]"):::bucket - classDef bucket63 stroke:#4169e1 - class Bucket63,PgSelect677,__ListTransform678,PgSelectRows679,Access685,PgPageInfo689,First691,PgSelectSingle693,PgCursor695,Last697,PgSelectSingle699,PgCursor701,Access704,Object705,Lambda706,Object709,Lambda710 bucket63 - Bucket64("Bucket 64 (subroutine)

ROOT PgSelectSingle{64}ᐸtable_set_queryᐳ[681]"):::bucket - classDef bucket64 stroke:#3cb371 - class Bucket64,__Item680,PgSelectSingle681 bucket64 - Bucket65("Bucket 65 (listItem)
Deps: 676, 685

ROOT __Item{65}ᐸ678ᐳ[682]"):::bucket - classDef bucket65 stroke:#a52a2a - class Bucket65,__Item682,PgSelectSingle683,Edge684,PgCursor686 bucket65 - Bucket66("Bucket 66 (nullableBoundary)
Deps: 684, 683, 686

ROOT Edge{65}[684]"):::bucket - classDef bucket66 stroke:#ff00ff - class Bucket66 bucket66 - Bucket67("Bucket 67 (nullableBoundary)
Deps: 683

ROOT PgSelectSingle{65}ᐸtable_set_queryᐳ[683]"):::bucket - classDef bucket67 stroke:#f5deb3 - class Bucket67,PgClassExpression687 bucket67 - Bucket68("Bucket 68 (nullableBoundary)
Deps: 10, 715, 1067, 1066, 52

ROOT Connectionᐸ713ᐳ[715]
1: PgSelect[716]
ᐳ: 728, 724, 743, 744, 745, 748, 749
2: PgSelectRows[718]
ᐳ: 730, 732, 734, 736, 738, 740
3: __ListTransform[717]"):::bucket - classDef bucket68 stroke:#696969 - class Bucket68,PgSelect716,__ListTransform717,PgSelectRows718,Access724,PgPageInfo728,First730,PgSelectSingle732,PgCursor734,Last736,PgSelectSingle738,PgCursor740,Access743,Object744,Lambda745,Object748,Lambda749 bucket68 - Bucket69("Bucket 69 (subroutine)

ROOT PgSelectSingle{69}ᐸtable_set_queryᐳ[720]"):::bucket - classDef bucket69 stroke:#00bfff - class Bucket69,__Item719,PgSelectSingle720 bucket69 - Bucket70("Bucket 70 (listItem)
Deps: 715, 724

ROOT __Item{70}ᐸ717ᐳ[721]"):::bucket - classDef bucket70 stroke:#7f007f - class Bucket70,__Item721,PgSelectSingle722,Edge723,PgCursor725 bucket70 - Bucket71("Bucket 71 (nullableBoundary)
Deps: 723, 722, 725

ROOT Edge{70}[723]"):::bucket - classDef bucket71 stroke:#ffa500 - class Bucket71 bucket71 - Bucket72("Bucket 72 (nullableBoundary)
Deps: 722

ROOT PgSelectSingle{70}ᐸtable_set_queryᐳ[722]"):::bucket - classDef bucket72 stroke:#0000ff - class Bucket72,PgClassExpression726 bucket72 - Bucket73("Bucket 73 (nullableBoundary)
Deps: 10, 754, 755, 1044, 52

ROOT Connectionᐸ752ᐳ[754]
1: PgSelect[756]
ᐳ: 768, 764, 783, 784, 785, 788, 789
2: PgSelectRows[758]
ᐳ: 770, 772, 774, 776, 778, 780
3: __ListTransform[757]"):::bucket - classDef bucket73 stroke:#7fff00 - class Bucket73,PgSelect756,__ListTransform757,PgSelectRows758,Access764,PgPageInfo768,First770,PgSelectSingle772,PgCursor774,Last776,PgSelectSingle778,PgCursor780,Access783,Object784,Lambda785,Object788,Lambda789 bucket73 - Bucket74("Bucket 74 (subroutine)

ROOT PgSelectSingle{74}ᐸtable_set_queryᐳ[760]"):::bucket - classDef bucket74 stroke:#ff1493 - class Bucket74,__Item759,PgSelectSingle760 bucket74 - Bucket75("Bucket 75 (listItem)
Deps: 754, 764

ROOT __Item{75}ᐸ757ᐳ[761]"):::bucket - classDef bucket75 stroke:#808000 - class Bucket75,__Item761,PgSelectSingle762,Edge763,PgCursor765 bucket75 - Bucket76("Bucket 76 (nullableBoundary)
Deps: 763, 762, 765

ROOT Edge{75}[763]"):::bucket - classDef bucket76 stroke:#dda0dd - class Bucket76 bucket76 - Bucket77("Bucket 77 (nullableBoundary)
Deps: 762

ROOT PgSelectSingle{75}ᐸtable_set_queryᐳ[762]"):::bucket - classDef bucket77 stroke:#ff0000 - class Bucket77,PgClassExpression766 bucket77 - Bucket78("Bucket 78 (nullableBoundary)
Deps: 10, 795, 755, 1044, 1043, 52

ROOT Connectionᐸ793ᐳ[795]
1: PgSelect[797]
ᐳ: 809, 805, 824, 825, 826, 829, 830
2: PgSelectRows[799]
ᐳ: 811, 813, 815, 817, 819, 821
3: __ListTransform[798]"):::bucket - classDef bucket78 stroke:#ffff00 - class Bucket78,PgSelect797,__ListTransform798,PgSelectRows799,Access805,PgPageInfo809,First811,PgSelectSingle813,PgCursor815,Last817,PgSelectSingle819,PgCursor821,Access824,Object825,Lambda826,Object829,Lambda830 bucket78 - Bucket79("Bucket 79 (subroutine)

ROOT PgSelectSingle{79}ᐸtable_set_queryᐳ[801]"):::bucket - classDef bucket79 stroke:#00ffff - class Bucket79,__Item800,PgSelectSingle801 bucket79 - Bucket80("Bucket 80 (listItem)
Deps: 795, 805

ROOT __Item{80}ᐸ798ᐳ[802]"):::bucket - classDef bucket80 stroke:#4169e1 - class Bucket80,__Item802,PgSelectSingle803,Edge804,PgCursor806 bucket80 - Bucket81("Bucket 81 (nullableBoundary)
Deps: 804, 803, 806

ROOT Edge{80}[804]"):::bucket - classDef bucket81 stroke:#3cb371 - class Bucket81 bucket81 - Bucket82("Bucket 82 (nullableBoundary)
Deps: 803

ROOT PgSelectSingle{80}ᐸtable_set_queryᐳ[803]"):::bucket - classDef bucket82 stroke:#a52a2a - class Bucket82,PgClassExpression807 bucket82 - Bucket83("Bucket 83 (nullableBoundary)
Deps: 10, 834, 1044, 52

ROOT Connectionᐸ832ᐳ[834]
1: PgSelect[835]
ᐳ: 847, 843, 862, 863, 864, 867, 868
2: PgSelectRows[837]
ᐳ: 849, 851, 853, 855, 857, 859
3: __ListTransform[836]"):::bucket - classDef bucket83 stroke:#ff00ff - class Bucket83,PgSelect835,__ListTransform836,PgSelectRows837,Access843,PgPageInfo847,First849,PgSelectSingle851,PgCursor853,Last855,PgSelectSingle857,PgCursor859,Access862,Object863,Lambda864,Object867,Lambda868 bucket83 - Bucket84("Bucket 84 (subroutine)

ROOT PgSelectSingle{84}ᐸtable_set_query_plpgsqlᐳ[839]"):::bucket - classDef bucket84 stroke:#f5deb3 - class Bucket84,__Item838,PgSelectSingle839 bucket84 - Bucket85("Bucket 85 (listItem)
Deps: 834, 843

ROOT __Item{85}ᐸ836ᐳ[840]"):::bucket - classDef bucket85 stroke:#696969 - class Bucket85,__Item840,PgSelectSingle841,Edge842,PgCursor844 bucket85 - Bucket86("Bucket 86 (nullableBoundary)
Deps: 842, 841, 844

ROOT Edge{85}[842]"):::bucket - classDef bucket86 stroke:#00bfff - class Bucket86 bucket86 - Bucket87("Bucket 87 (nullableBoundary)
Deps: 841

ROOT PgSelectSingle{85}ᐸtable_set_query_plpgsqlᐳ[841]"):::bucket - classDef bucket87 stroke:#7f007f - class Bucket87,PgClassExpression845 bucket87 - Bucket88("Bucket 88 (nullableBoundary)
Deps: 10, 873, 874, 1044, 52

ROOT Connectionᐸ871ᐳ[873]
1: PgSelect[875]
ᐳ: 887, 883, 902, 903, 904, 907, 908
2: PgSelectRows[877]
ᐳ: 889, 891, 893, 895, 897, 899
3: __ListTransform[876]"):::bucket - classDef bucket88 stroke:#ffa500 - class Bucket88,PgSelect875,__ListTransform876,PgSelectRows877,Access883,PgPageInfo887,First889,PgSelectSingle891,PgCursor893,Last895,PgSelectSingle897,PgCursor899,Access902,Object903,Lambda904,Object907,Lambda908 bucket88 - Bucket89("Bucket 89 (subroutine)

ROOT PgSelectSingle{89}ᐸtable_set_query_plpgsqlᐳ[879]"):::bucket - classDef bucket89 stroke:#0000ff - class Bucket89,__Item878,PgSelectSingle879 bucket89 - Bucket90("Bucket 90 (listItem)
Deps: 873, 883

ROOT __Item{90}ᐸ876ᐳ[880]"):::bucket - classDef bucket90 stroke:#7fff00 - class Bucket90,__Item880,PgSelectSingle881,Edge882,PgCursor884 bucket90 - Bucket91("Bucket 91 (nullableBoundary)
Deps: 882, 881, 884

ROOT Edge{90}[882]"):::bucket - classDef bucket91 stroke:#ff1493 - class Bucket91 bucket91 - Bucket92("Bucket 92 (nullableBoundary)
Deps: 881

ROOT PgSelectSingle{90}ᐸtable_set_query_plpgsqlᐳ[881]"):::bucket - classDef bucket92 stroke:#808000 - class Bucket92,PgClassExpression885 bucket92 - Bucket93("Bucket 93 (nullableBoundary)
Deps: 10, 1046, 54, 1067, 913

ROOT Connectionᐸ911ᐳ[913]
1: PgSelect[914], PgSelect[926]
ᐳ: Access[924]
2: PgSelectRows[916], PgSelectRows[928]
ᐳ: 927, 929, 930
3: __ListTransform[915]"):::bucket - classDef bucket93 stroke:#dda0dd - class Bucket93,PgSelect914,__ListTransform915,PgSelectRows916,Access924,PgSelect926,First927,PgSelectRows928,PgSelectSingle929,PgClassExpression930 bucket93 - Bucket94("Bucket 94 (subroutine)

ROOT PgClassExpression{94}ᐸ__int_set_query__.vᐳ[919]"):::bucket - classDef bucket94 stroke:#ff0000 - class Bucket94,__Item917,PgSelectSingle918,PgClassExpression919 bucket94 - Bucket95("Bucket 95 (listItem)
Deps: 913, 924

ROOT __Item{95}ᐸ915ᐳ[920]"):::bucket - classDef bucket95 stroke:#ffff00 - class Bucket95,__Item920,PgSelectSingle921,PgClassExpression922,Edge923,PgCursor925 bucket95 - Bucket96("Bucket 96 (nullableBoundary)
Deps: 923, 925, 922

ROOT Edge{95}[923]"):::bucket - classDef bucket96 stroke:#00ffff - class Bucket96 bucket96 - Bucket97("Bucket 97 (nullableBoundary)
Deps: 10, 939

ROOT Connectionᐸ937ᐳ[939]
1: PgSelect[940], PgSelect[952]
2: PgSelectRows[942], PgSelectRows[954]
ᐳ: 953, 955, 956
3: __ListTransform[941]"):::bucket - classDef bucket97 stroke:#4169e1 - class Bucket97,PgSelect940,__ListTransform941,PgSelectRows942,PgSelect952,First953,PgSelectRows954,PgSelectSingle955,PgClassExpression956 bucket97 - Bucket98("Bucket 98 (subroutine)

ROOT PgClassExpression{98}ᐸ__static_b...nteger__.vᐳ[945]"):::bucket - classDef bucket98 stroke:#3cb371 - class Bucket98,__Item943,PgSelectSingle944,PgClassExpression945 bucket98 - Bucket99("Bucket 99 (listItem)
Deps: 939

ROOT __Item{99}ᐸ941ᐳ[946]"):::bucket - classDef bucket99 stroke:#a52a2a - class Bucket99,__Item946,PgSelectSingle947,PgClassExpression948,Edge1038 bucket99 - Bucket100("Bucket 100 (nullableBoundary)
Deps: 1038, 948

ROOT Edge{99}[1038]"):::bucket - classDef bucket100 stroke:#ff00ff - class Bucket100 bucket100 - Bucket101("Bucket 101 (listItem)

ROOT __Item{101}ᐸ970ᐳ[971]"):::bucket - classDef bucket101 stroke:#f5deb3 - class Bucket101,__Item971,PgSelectSingle972 bucket101 - Bucket102("Bucket 102 (nullableBoundary)
Deps: 972

ROOT PgSelectSingle{101}ᐸquery_compound_type_arrayᐳ[972]"):::bucket - classDef bucket102 stroke:#696969 - class Bucket102,PgClassExpression973,PgClassExpression974,PgClassExpression975,PgClassExpression976,PgClassExpression977,PgClassExpression978,PgClassExpression979,PgClassExpression983 bucket102 - Bucket103("Bucket 103 (nullableBoundary)
Deps: 979

ROOT PgClassExpression{102}ᐸ__query_co...rray__.”g”ᐳ[979]"):::bucket - classDef bucket103 stroke:#00bfff - class Bucket103 bucket103 - Bucket104("Bucket 104 (listItem)

ROOT __Item{104}ᐸ989ᐳ[990]"):::bucket - classDef bucket104 stroke:#7f007f - class Bucket104,__Item990 bucket104 - Bucket105("Bucket 105 (listItem)

ROOT __Item{105}ᐸ996ᐳ[997]"):::bucket - classDef bucket105 stroke:#ffa500 - class Bucket105,__Item997 bucket105 - Bucket106("Bucket 106 (nullableBoundary)
Deps: 997

ROOT __Item{105}ᐸ996ᐳ[997]"):::bucket - classDef bucket106 stroke:#0000ff - class Bucket106 bucket106 - Bucket107("Bucket 107 (nullableBoundary)
Deps: 10, 1006

ROOT Connectionᐸ1004ᐳ[1006]
1: PgSelect[1007], PgSelect[1033]
ᐳ: Access[1028]
2: PgSelectRows[1008], PgSelectRows[1035]
ᐳ: 1034, 1036, 1037
3: __ListTransform[1019]"):::bucket - classDef bucket107 stroke:#7fff00 - class Bucket107,PgSelect1007,PgSelectRows1008,__ListTransform1019,Access1028,PgSelect1033,First1034,PgSelectRows1035,PgSelectSingle1036,PgClassExpression1037 bucket107 - Bucket108("Bucket 108 (listItem)

ROOT __Item{108}ᐸ1008ᐳ[1009]"):::bucket - classDef bucket108 stroke:#ff1493 - class Bucket108,__Item1009,PgSelectSingle1010,PgClassExpression1011 bucket108 - Bucket109("Bucket 109 (nullableBoundary)
Deps: 1011

ROOT PgClassExpression{108}ᐸ__query_in...al_set__.vᐳ[1011]"):::bucket - classDef bucket109 stroke:#808000 - class Bucket109 bucket109 - Bucket110("Bucket 110 (subroutine)

ROOT PgClassExpression{110}ᐸ__query_in...al_set__.vᐳ[1023]"):::bucket - classDef bucket110 stroke:#dda0dd - class Bucket110,__Item1021,PgSelectSingle1022,PgClassExpression1023 bucket110 - Bucket111("Bucket 111 (listItem)
Deps: 1006, 1028

ROOT __Item{111}ᐸ1019ᐳ[1024]"):::bucket - classDef bucket111 stroke:#ff0000 - class Bucket111,__Item1024,PgSelectSingle1025,PgClassExpression1026,Edge1027,PgCursor1029 bucket111 - Bucket112("Bucket 112 (nullableBoundary)
Deps: 1027, 1026, 1029

ROOT Edge{111}[1027]"):::bucket - classDef bucket112 stroke:#ffff00 - class Bucket112 bucket112 - Bucket113("Bucket 113 (nullableBoundary)
Deps: 1026

ROOT PgClassExpression{111}ᐸ__query_in...al_set__.vᐳ[1026]"):::bucket - classDef bucket113 stroke:#00ffff - class Bucket113 bucket113 - Bucket0 --> Bucket1 & Bucket3 & Bucket9 & Bucket12 & Bucket13 & Bucket18 & Bucket23 & Bucket28 & Bucket33 & Bucket38 & Bucket43 & Bucket48 & Bucket53 & Bucket58 & Bucket63 & Bucket68 & Bucket73 & Bucket78 & Bucket83 & Bucket88 & Bucket93 & Bucket97 & Bucket101 & Bucket104 & Bucket105 & Bucket107 - Bucket1 --> Bucket2 - Bucket3 --> Bucket4 & Bucket5 - Bucket5 --> Bucket6 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 - Bucket9 --> Bucket10 - Bucket10 --> Bucket11 - Bucket13 --> Bucket14 & Bucket15 - Bucket15 --> Bucket16 - Bucket16 --> Bucket17 - Bucket18 --> Bucket19 & Bucket20 - Bucket20 --> Bucket21 - Bucket21 --> Bucket22 - Bucket23 --> Bucket24 & Bucket25 - Bucket25 --> Bucket26 - Bucket26 --> Bucket27 - Bucket28 --> Bucket29 & Bucket30 - Bucket30 --> Bucket31 - Bucket31 --> Bucket32 - Bucket33 --> Bucket34 & Bucket35 - Bucket35 --> Bucket36 - Bucket36 --> Bucket37 - Bucket38 --> Bucket39 & Bucket40 - Bucket40 --> Bucket41 - Bucket41 --> Bucket42 - Bucket43 --> Bucket44 & Bucket45 - Bucket45 --> Bucket46 - Bucket46 --> Bucket47 - Bucket48 --> Bucket49 & Bucket50 - Bucket50 --> Bucket51 - Bucket51 --> Bucket52 - Bucket53 --> Bucket54 & Bucket55 - Bucket55 --> Bucket56 - Bucket56 --> Bucket57 - Bucket58 --> Bucket59 & Bucket60 - Bucket60 --> Bucket61 - Bucket61 --> Bucket62 - Bucket63 --> Bucket64 & Bucket65 - Bucket65 --> Bucket66 - Bucket66 --> Bucket67 - Bucket68 --> Bucket69 & Bucket70 - Bucket70 --> Bucket71 - Bucket71 --> Bucket72 - Bucket73 --> Bucket74 & Bucket75 - Bucket75 --> Bucket76 - Bucket76 --> Bucket77 - Bucket78 --> Bucket79 & Bucket80 - Bucket80 --> Bucket81 - Bucket81 --> Bucket82 - Bucket83 --> Bucket84 & Bucket85 - Bucket85 --> Bucket86 - Bucket86 --> Bucket87 - Bucket88 --> Bucket89 & Bucket90 - Bucket90 --> Bucket91 - Bucket91 --> Bucket92 - Bucket93 --> Bucket94 & Bucket95 - Bucket95 --> Bucket96 - Bucket97 --> Bucket98 & Bucket99 - Bucket99 --> Bucket100 - Bucket101 --> Bucket102 - Bucket102 --> Bucket103 - Bucket105 --> Bucket106 - Bucket107 --> Bucket108 & Bucket110 & Bucket111 - Bucket108 --> Bucket109 - Bucket111 --> Bucket112 - Bucket112 --> Bucket113 + class Bucket45,__Item1016,PgSelectSingle1017,PgClassExpression1018,Edge1019,PgCursor1021 bucket45 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 & Bucket11 & Bucket12 & Bucket13 & Bucket14 & Bucket15 & Bucket16 & Bucket17 & Bucket18 & Bucket19 & Bucket20 & Bucket21 & Bucket22 & Bucket23 & Bucket24 & Bucket25 & Bucket26 & Bucket27 & Bucket28 & Bucket29 & Bucket30 & Bucket31 & Bucket32 & Bucket33 & Bucket34 & Bucket35 & Bucket36 & Bucket37 & Bucket38 & Bucket39 & Bucket40 & Bucket41 & Bucket42 & Bucket43 & Bucket44 & Bucket45 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/procedure-query.sql b/postgraphile/postgraphile/__tests__/queries/v4/procedure-query.sql index f98167f19d..3c1482b53b 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/procedure-query.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/procedure-query.sql @@ -121,6 +121,20 @@ select (not (__compound_type_query__ is null))::text as "8" from "b"."compound_type_query"($1::"c"."compound_type") as __compound_type_query__; +select + __compound_type_set_query__."a"::text as "0", + __compound_type_set_query__."b" as "1", + __compound_type_set_query__."c"::text as "2", + __compound_type_set_query__."d" as "3", + __compound_type_set_query__."e"::text as "4", + __compound_type_set_query__."f"::text as "5", + to_char(__compound_type_set_query__."g", 'YYYY_MM_DD_HH24_MI_SS.US'::text) as "6", + __compound_type_set_query__."foo_bar"::text as "7", + (not (__compound_type_set_query__ is null))::text as "8", + (row_number() over (partition by 1))::text as "9" +from "c"."compound_type_set_query"() as __compound_type_set_query__ +limit 6; + select __compound_type_array_query__."a"::text as "0", __compound_type_array_query__."b" as "1", @@ -139,47 +153,6 @@ select __table_query__."author_id"::text as "2" from "c"."table_query"($1::"int4") as __table_query__; -select - __no_args_query__.v::text as "0" -from "c"."no_args_query"() as __no_args_query__(v); - -select - __query_compound_type_array__."a"::text as "0", - __query_compound_type_array__."b" as "1", - __query_compound_type_array__."c"::text as "2", - __query_compound_type_array__."d" as "3", - __query_compound_type_array__."e"::text as "4", - __query_compound_type_array__."f"::text as "5", - to_char(__query_compound_type_array__."g", 'YYYY_MM_DD_HH24_MI_SS.US'::text) as "6", - __query_compound_type_array__."foo_bar"::text as "7", - (not (__query_compound_type_array__ is null))::text as "8" -from unnest("a"."query_compound_type_array"($1::"c"."compound_type")) as __query_compound_type_array__; - -select - __query_text_array__.v::text as "0" -from "a"."query_text_array"() as __query_text_array__(v); - -select - (case when (__query_interval_array__.v) is not distinct from null then null::text else array( - select to_char(__entry__, 'YYYY_MM_DD_HH24_MI_SS.US'::text) - from unnest(__query_interval_array__.v) __entry__ - )::text end) as "0" -from "a"."query_interval_array"() as __query_interval_array__(v); - -select - __compound_type_set_query__."a"::text as "0", - __compound_type_set_query__."b" as "1", - __compound_type_set_query__."c"::text as "2", - __compound_type_set_query__."d" as "3", - __compound_type_set_query__."e"::text as "4", - __compound_type_set_query__."f"::text as "5", - to_char(__compound_type_set_query__."g", 'YYYY_MM_DD_HH24_MI_SS.US'::text) as "6", - __compound_type_set_query__."foo_bar"::text as "7", - (not (__compound_type_set_query__ is null))::text as "8", - (row_number() over (partition by 1))::text as "9" -from "c"."compound_type_set_query"() as __compound_type_set_query__ -limit 6; - select __table_set_query__."person_full_name" as "0", __table_set_query__."id"::text as "1", @@ -294,6 +267,10 @@ from "c"."int_set_query"( $3::"int4" ) as __int_set_query__(v); +select + __no_args_query__.v::text as "0" +from "c"."no_args_query"() as __no_args_query__(v); + select __static_big_integer__.v::text as "0", (row_number() over (partition by 1))::text as "1" @@ -303,6 +280,29 @@ select (count(*))::text as "0" from "a"."static_big_integer"() as __static_big_integer__(v); +select + __query_compound_type_array__."a"::text as "0", + __query_compound_type_array__."b" as "1", + __query_compound_type_array__."c"::text as "2", + __query_compound_type_array__."d" as "3", + __query_compound_type_array__."e"::text as "4", + __query_compound_type_array__."f"::text as "5", + to_char(__query_compound_type_array__."g", 'YYYY_MM_DD_HH24_MI_SS.US'::text) as "6", + __query_compound_type_array__."foo_bar"::text as "7", + (not (__query_compound_type_array__ is null))::text as "8" +from unnest("a"."query_compound_type_array"($1::"c"."compound_type")) as __query_compound_type_array__; + +select + __query_text_array__.v::text as "0" +from "a"."query_text_array"() as __query_text_array__(v); + +select + (case when (__query_interval_array__.v) is not distinct from null then null::text else array( + select to_char(__entry__, 'YYYY_MM_DD_HH24_MI_SS.US'::text) + from unnest(__query_interval_array__.v) __entry__ + )::text end) as "0" +from "a"."query_interval_array"() as __query_interval_array__(v); + select to_char(__query_interval_set__.v, 'YYYY_MM_DD_HH24_MI_SS.US'::text) as "0", (row_number() over (partition by 1))::text as "1" diff --git a/postgraphile/postgraphile/__tests__/queries/v4/rbac.basic.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/rbac.basic.mermaid index d3b50348fc..c296506c2e 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/rbac.basic.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/rbac.basic.mermaid @@ -9,35 +9,98 @@ graph TD %% plan dependencies - PgSelect7[["PgSelect[7∈0] ➊
ᐸperson_secretᐳ"]]:::plan + PgSelect187[["PgSelect[187∈0] ➊
ᐸpostᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant223{{"Constant[223∈0] ➊
ᐸ3ᐳ"}}:::plan - Object10 & Constant223 --> PgSelect7 + PgClassExpression179{{"PgClassExpression[179∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Connection185{{"Connection[185∈0] ➊
ᐸ183ᐳ"}}:::plan + Object10 & PgClassExpression179 & Connection185 --> PgSelect187 + PgSelect25[["PgSelect[25∈0] ➊
ᐸperson_secretᐳ"]]:::plan + Connection23{{"Connection[23∈0] ➊
ᐸ21ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect25 + Connection23 --> PgSelect25 + PgSelect113[["PgSelect[113∈0] ➊
ᐸleft_armᐳ"]]:::plan + Connection111{{"Connection[111∈0] ➊
ᐸ109ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect113 + Connection111 --> PgSelect113 + PgSelect162[["PgSelect[162∈0] ➊
ᐸpostᐳ"]]:::plan + Connection160{{"Connection[160∈0] ➊
ᐸ158ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect162 + Connection160 --> PgSelect162 + PgSelect7[["PgSelect[7∈0] ➊
ᐸperson_secretᐳ"]]:::plan + Constant205{{"Constant[205∈0] ➊
ᐸ3ᐳ"}}:::plan + Object10 & Constant205 --> PgSelect7 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 + List16{{"List[16∈0] ➊
ᐸ14,15ᐳ"}}:::plan + Constant14{{"Constant[14∈0] ➊
ᐸ'person_secrets'ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan + Constant14 & PgClassExpression15 --> List16 PgSelect35[["PgSelect[35∈0] ➊
ᐸpersonᐳ"]]:::plan - Constant224{{"Constant[224∈0] ➊
ᐸ1ᐳ"}}:::plan - Object10 & Constant224 --> PgSelect35 - PgSelect60[["PgSelect[60∈0] ➊
ᐸpersonᐳ"]]:::plan - Access58{{"Access[58∈0] ➊
ᐸ57.1ᐳ"}}:::plan - Object10 -->|rejectNull| PgSelect60 - Access58 --> PgSelect60 - PgSelect85[["PgSelect[85∈0] ➊
ᐸpersonᐳ"]]:::plan - Access83{{"Access[83∈0] ➊
ᐸ82.1ᐳ"}}:::plan - Object10 -->|rejectNull| PgSelect85 - Access83 --> PgSelect85 - PgSelect107[["PgSelect[107∈0] ➊
ᐸleft_armᐳ"]]:::plan - Constant227{{"Constant[227∈0] ➊
ᐸ42ᐳ"}}:::plan - Object10 & Constant227 --> PgSelect107 - PgSelect136[["PgSelect[136∈0] ➊
ᐸpersonᐳ"]]:::plan - Constant228{{"Constant[228∈0] ➊
ᐸ2ᐳ"}}:::plan - Object10 & Constant228 --> PgSelect136 - PgSelect160[["PgSelect[160∈0] ➊
ᐸpostᐳ"]]:::plan - Constant229{{"Constant[229∈0] ➊
ᐸ7ᐳ"}}:::plan - Object10 & Constant229 --> PgSelect160 - PgSelect189[["PgSelect[189∈0] ➊
ᐸpersonᐳ"]]:::plan - Object10 & Constant223 --> PgSelect189 + Constant206{{"Constant[206∈0] ➊
ᐸ1ᐳ"}}:::plan + Object10 & Constant206 --> PgSelect35 + List42{{"List[42∈0] ➊
ᐸ40,41ᐳ"}}:::plan + Constant40{{"Constant[40∈0] ➊
ᐸ'people'ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant40 & PgClassExpression41 --> List42 + PgSelect44[["PgSelect[44∈0] ➊
ᐸperson_secretᐳ"]]:::plan + Object10 & PgClassExpression41 --> PgSelect44 + List50{{"List[50∈0] ➊
ᐸ14,49ᐳ"}}:::plan + PgClassExpression49{{"PgClassExpression[49∈0] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan + Constant14 & PgClassExpression49 --> List50 + PgSelect57[["PgSelect[57∈0] ➊
ᐸpersonᐳ"]]:::plan + Access55{{"Access[55∈0] ➊
ᐸ54.1ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect57 + Access55 --> PgSelect57 + List63{{"List[63∈0] ➊
ᐸ40,62ᐳ"}}:::plan + PgClassExpression62{{"PgClassExpression[62∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant40 & PgClassExpression62 --> List63 + PgSelect65[["PgSelect[65∈0] ➊
ᐸperson_secretᐳ"]]:::plan + Object10 & PgClassExpression62 --> PgSelect65 + List71{{"List[71∈0] ➊
ᐸ14,70ᐳ"}}:::plan + PgClassExpression70{{"PgClassExpression[70∈0] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan + Constant14 & PgClassExpression70 --> List71 + PgSelect78[["PgSelect[78∈0] ➊
ᐸpersonᐳ"]]:::plan + Access76{{"Access[76∈0] ➊
ᐸ75.1ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect78 + Access76 --> PgSelect78 + List84{{"List[84∈0] ➊
ᐸ40,83ᐳ"}}:::plan + PgClassExpression83{{"PgClassExpression[83∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant40 & PgClassExpression83 --> List84 + PgSelect86[["PgSelect[86∈0] ➊
ᐸperson_secretᐳ"]]:::plan + Object10 & PgClassExpression83 --> PgSelect86 + List92{{"List[92∈0] ➊
ᐸ14,91ᐳ"}}:::plan + PgClassExpression91{{"PgClassExpression[91∈0] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan + Constant14 & PgClassExpression91 --> List92 + PgSelect96[["PgSelect[96∈0] ➊
ᐸleft_armᐳ"]]:::plan + Constant209{{"Constant[209∈0] ➊
ᐸ42ᐳ"}}:::plan + Object10 & Constant209 --> PgSelect96 + List103{{"List[103∈0] ➊
ᐸ101,102ᐳ"}}:::plan + Constant101{{"Constant[101∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan + PgClassExpression102{{"PgClassExpression[102∈0] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + Constant101 & PgClassExpression102 --> List103 + PgSelect125[["PgSelect[125∈0] ➊
ᐸpersonᐳ"]]:::plan + Constant210{{"Constant[210∈0] ➊
ᐸ2ᐳ"}}:::plan + Object10 & Constant210 --> PgSelect125 + List131{{"List[131∈0] ➊
ᐸ40,130ᐳ"}}:::plan + PgClassExpression130{{"PgClassExpression[130∈0] ➊
ᐸ__person__.”id”ᐳ"}}:::plan + Constant40 & PgClassExpression130 --> List131 + PgSelect133[["PgSelect[133∈0] ➊
ᐸleft_armᐳ"]]:::plan + Object10 & PgClassExpression130 --> PgSelect133 + List139{{"List[139∈0] ➊
ᐸ101,138ᐳ"}}:::plan + PgClassExpression138{{"PgClassExpression[138∈0] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan + Constant101 & PgClassExpression138 --> List139 + PgSelect145[["PgSelect[145∈0] ➊
ᐸpostᐳ"]]:::plan + Constant211{{"Constant[211∈0] ➊
ᐸ7ᐳ"}}:::plan + Object10 & Constant211 --> PgSelect145 + List152{{"List[152∈0] ➊
ᐸ150,151ᐳ"}}:::plan + Constant150{{"Constant[150∈0] ➊
ᐸ'posts'ᐳ"}}:::plan + PgClassExpression151{{"PgClassExpression[151∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Constant150 & PgClassExpression151 --> List152 + PgSelect174[["PgSelect[174∈0] ➊
ᐸpersonᐳ"]]:::plan + Object10 & Constant205 --> PgSelect174 + List180{{"List[180∈0] ➊
ᐸ40,179ᐳ"}}:::plan + Constant40 & PgClassExpression179 --> List180 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -47,373 +110,241 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸperson_secretᐳ"}}:::plan First11 --> PgSelectSingle13 + PgSelectSingle13 --> PgClassExpression15 + Lambda17{{"Lambda[17∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List16 --> Lambda17 + PgClassExpression18{{"PgClassExpression[18∈0] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression18 + PgSelectRows26[["PgSelectRows[26∈0] ➊"]]:::plan + PgSelect25 --> PgSelectRows26 First37{{"First[37∈0] ➊"}}:::plan PgSelectRows38[["PgSelectRows[38∈0] ➊"]]:::plan PgSelectRows38 --> First37 PgSelect35 --> PgSelectRows38 PgSelectSingle39{{"PgSelectSingle[39∈0] ➊
ᐸpersonᐳ"}}:::plan First37 --> PgSelectSingle39 - Lambda57{{"Lambda[57∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Constant225{{"Constant[225∈0] ➊
ᐸ'fa4f3e13-456c-4a9e-8c1e-37a6e3177d0b'ᐳ"}}:::plan - Constant225 --> Lambda57 - Lambda57 --> Access58 - First62{{"First[62∈0] ➊"}}:::plan - PgSelectRows63[["PgSelectRows[63∈0] ➊"]]:::plan - PgSelectRows63 --> First62 - PgSelect60 --> PgSelectRows63 - PgSelectSingle64{{"PgSelectSingle[64∈0] ➊
ᐸpersonᐳ"}}:::plan - First62 --> PgSelectSingle64 - Lambda82{{"Lambda[82∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan - Constant226{{"Constant[226∈0] ➊
ᐸ'WyJwZW9wbGUiLDBd'ᐳ"}}:::plan - Constant226 --> Lambda82 - Lambda82 --> Access83 - First87{{"First[87∈0] ➊"}}:::plan - PgSelectRows88[["PgSelectRows[88∈0] ➊"]]:::plan - PgSelectRows88 --> First87 - PgSelect85 --> PgSelectRows88 - PgSelectSingle89{{"PgSelectSingle[89∈0] ➊
ᐸpersonᐳ"}}:::plan - First87 --> PgSelectSingle89 - First109{{"First[109∈0] ➊"}}:::plan - PgSelectRows110[["PgSelectRows[110∈0] ➊"]]:::plan - PgSelectRows110 --> First109 - PgSelect107 --> PgSelectRows110 - PgSelectSingle111{{"PgSelectSingle[111∈0] ➊
ᐸleft_armᐳ"}}:::plan - First109 --> PgSelectSingle111 - First138{{"First[138∈0] ➊"}}:::plan - PgSelectRows139[["PgSelectRows[139∈0] ➊"]]:::plan - PgSelectRows139 --> First138 - PgSelect136 --> PgSelectRows139 - PgSelectSingle140{{"PgSelectSingle[140∈0] ➊
ᐸpersonᐳ"}}:::plan - First138 --> PgSelectSingle140 - First162{{"First[162∈0] ➊"}}:::plan - PgSelectRows163[["PgSelectRows[163∈0] ➊"]]:::plan - PgSelectRows163 --> First162 - PgSelect160 --> PgSelectRows163 - PgSelectSingle164{{"PgSelectSingle[164∈0] ➊
ᐸpostᐳ"}}:::plan - First162 --> PgSelectSingle164 - First191{{"First[191∈0] ➊"}}:::plan - PgSelectRows192[["PgSelectRows[192∈0] ➊"]]:::plan - PgSelectRows192 --> First191 - PgSelect189 --> PgSelectRows192 - PgSelectSingle193{{"PgSelectSingle[193∈0] ➊
ᐸpersonᐳ"}}:::plan - First191 --> PgSelectSingle193 - PgSelect216[["PgSelect[216∈0] ➊
ᐸreturn_table_without_grantsᐳ"]]:::plan - Object10 --> PgSelect216 - First218{{"First[218∈0] ➊"}}:::plan - PgSelectRows219[["PgSelectRows[219∈0] ➊"]]:::plan - PgSelectRows219 --> First218 - PgSelect216 --> PgSelectRows219 - PgSelectSingle220{{"PgSelectSingle[220∈0] ➊
ᐸreturn_table_without_grantsᐳ"}}:::plan - First218 --> PgSelectSingle220 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant14{{"Constant[14∈0] ➊
ᐸ'person_secrets'ᐳ"}}:::plan - Connection24{{"Connection[24∈0] ➊
ᐸ22ᐳ"}}:::plan - Constant40{{"Constant[40∈0] ➊
ᐸ'people'ᐳ"}}:::plan - Constant112{{"Constant[112∈0] ➊
ᐸ'left_arms'ᐳ"}}:::plan - Connection123{{"Connection[123∈0] ➊
ᐸ121ᐳ"}}:::plan - Constant165{{"Constant[165∈0] ➊
ᐸ'posts'ᐳ"}}:::plan - Connection176{{"Connection[176∈0] ➊
ᐸ174ᐳ"}}:::plan - Connection204{{"Connection[204∈0] ➊
ᐸ200ᐳ"}}:::plan - List16{{"List[16∈1] ➊
ᐸ14,15ᐳ"}}:::plan - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan - Constant14 & PgClassExpression15 --> List16 - PgSelectSingle13 --> PgClassExpression15 - Lambda17{{"Lambda[17∈1] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List16 --> Lambda17 - PgClassExpression18{{"PgClassExpression[18∈1] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression18 - PgSelect25[["PgSelect[25∈2] ➊
ᐸperson_secretᐳ"]]:::plan - Object10 & Connection24 --> PgSelect25 - PgSelectRows26[["PgSelectRows[26∈2] ➊"]]:::plan - PgSelect25 --> PgSelectRows26 - __Item27[/"__Item[27∈3]
ᐸ26ᐳ"\]:::itemplan - PgSelectRows26 ==> __Item27 - PgSelectSingle28{{"PgSelectSingle[28∈3]
ᐸperson_secretᐳ"}}:::plan - __Item27 --> PgSelectSingle28 - List31{{"List[31∈4]
ᐸ14,30ᐳ"}}:::plan - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__person_s...person_id”ᐳ"}}:::plan - Constant14 & PgClassExpression30 --> List31 - PgSelectSingle28 --> PgClassExpression30 - Lambda32{{"Lambda[32∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan - List31 --> Lambda32 - PgClassExpression33{{"PgClassExpression[33∈4]
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan - PgSelectSingle28 --> PgClassExpression33 - List42{{"List[42∈5] ➊
ᐸ40,41ᐳ"}}:::plan - PgClassExpression41{{"PgClassExpression[41∈5] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant40 & PgClassExpression41 --> List42 - PgSelect44[["PgSelect[44∈5] ➊
ᐸperson_secretᐳ"]]:::plan - Object10 & PgClassExpression41 --> PgSelect44 PgSelectSingle39 --> PgClassExpression41 - Lambda43{{"Lambda[43∈5] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda43{{"Lambda[43∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List42 --> Lambda43 - First48{{"First[48∈5] ➊"}}:::plan - PgSelectRows49[["PgSelectRows[49∈5] ➊"]]:::plan - PgSelectRows49 --> First48 - PgSelect44 --> PgSelectRows49 - PgSelectSingle50{{"PgSelectSingle[50∈5] ➊
ᐸperson_secretᐳ"}}:::plan - First48 --> PgSelectSingle50 - List53{{"List[53∈6] ➊
ᐸ14,52ᐳ"}}:::plan - PgClassExpression52{{"PgClassExpression[52∈6] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan - Constant14 & PgClassExpression52 --> List53 - PgSelectSingle50 --> PgClassExpression52 - Lambda54{{"Lambda[54∈6] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List53 --> Lambda54 - PgClassExpression55{{"PgClassExpression[55∈6] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan - PgSelectSingle50 --> PgClassExpression55 - List67{{"List[67∈7] ➊
ᐸ40,66ᐳ"}}:::plan - PgClassExpression66{{"PgClassExpression[66∈7] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant40 & PgClassExpression66 --> List67 - PgSelect69[["PgSelect[69∈7] ➊
ᐸperson_secretᐳ"]]:::plan - Object10 & PgClassExpression66 --> PgSelect69 - PgSelectSingle64 --> PgClassExpression66 - Lambda68{{"Lambda[68∈7] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List67 --> Lambda68 - First73{{"First[73∈7] ➊"}}:::plan - PgSelectRows74[["PgSelectRows[74∈7] ➊"]]:::plan - PgSelectRows74 --> First73 - PgSelect69 --> PgSelectRows74 - PgSelectSingle75{{"PgSelectSingle[75∈7] ➊
ᐸperson_secretᐳ"}}:::plan - First73 --> PgSelectSingle75 - List78{{"List[78∈8] ➊
ᐸ14,77ᐳ"}}:::plan - PgClassExpression77{{"PgClassExpression[77∈8] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan - Constant14 & PgClassExpression77 --> List78 - PgSelectSingle75 --> PgClassExpression77 - Lambda79{{"Lambda[79∈8] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List78 --> Lambda79 - PgClassExpression80{{"PgClassExpression[80∈8] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan - PgSelectSingle75 --> PgClassExpression80 - List92{{"List[92∈9] ➊
ᐸ40,91ᐳ"}}:::plan - PgClassExpression91{{"PgClassExpression[91∈9] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant40 & PgClassExpression91 --> List92 - PgSelect94[["PgSelect[94∈9] ➊
ᐸperson_secretᐳ"]]:::plan - Object10 & PgClassExpression91 --> PgSelect94 - PgSelectSingle89 --> PgClassExpression91 - Lambda93{{"Lambda[93∈9] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + First46{{"First[46∈0] ➊"}}:::plan + PgSelectRows47[["PgSelectRows[47∈0] ➊"]]:::plan + PgSelectRows47 --> First46 + PgSelect44 --> PgSelectRows47 + PgSelectSingle48{{"PgSelectSingle[48∈0] ➊
ᐸperson_secretᐳ"}}:::plan + First46 --> PgSelectSingle48 + PgSelectSingle48 --> PgClassExpression49 + Lambda51{{"Lambda[51∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List50 --> Lambda51 + PgClassExpression52{{"PgClassExpression[52∈0] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan + PgSelectSingle48 --> PgClassExpression52 + Lambda54{{"Lambda[54∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan + Constant207{{"Constant[207∈0] ➊
ᐸ'fa4f3e13-456c-4a9e-8c1e-37a6e3177d0b'ᐳ"}}:::plan + Constant207 --> Lambda54 + Lambda54 --> Access55 + First59{{"First[59∈0] ➊"}}:::plan + PgSelectRows60[["PgSelectRows[60∈0] ➊"]]:::plan + PgSelectRows60 --> First59 + PgSelect57 --> PgSelectRows60 + PgSelectSingle61{{"PgSelectSingle[61∈0] ➊
ᐸpersonᐳ"}}:::plan + First59 --> PgSelectSingle61 + PgSelectSingle61 --> PgClassExpression62 + Lambda64{{"Lambda[64∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List63 --> Lambda64 + First67{{"First[67∈0] ➊"}}:::plan + PgSelectRows68[["PgSelectRows[68∈0] ➊"]]:::plan + PgSelectRows68 --> First67 + PgSelect65 --> PgSelectRows68 + PgSelectSingle69{{"PgSelectSingle[69∈0] ➊
ᐸperson_secretᐳ"}}:::plan + First67 --> PgSelectSingle69 + PgSelectSingle69 --> PgClassExpression70 + Lambda72{{"Lambda[72∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List71 --> Lambda72 + PgClassExpression73{{"PgClassExpression[73∈0] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan + PgSelectSingle69 --> PgClassExpression73 + Lambda75{{"Lambda[75∈0] ➊
ᐸspecifier_Person_base64JSONᐳ"}}:::plan + Constant208{{"Constant[208∈0] ➊
ᐸ'WyJwZW9wbGUiLDBd'ᐳ"}}:::plan + Constant208 --> Lambda75 + Lambda75 --> Access76 + First80{{"First[80∈0] ➊"}}:::plan + PgSelectRows81[["PgSelectRows[81∈0] ➊"]]:::plan + PgSelectRows81 --> First80 + PgSelect78 --> PgSelectRows81 + PgSelectSingle82{{"PgSelectSingle[82∈0] ➊
ᐸpersonᐳ"}}:::plan + First80 --> PgSelectSingle82 + PgSelectSingle82 --> PgClassExpression83 + Lambda85{{"Lambda[85∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List84 --> Lambda85 + First88{{"First[88∈0] ➊"}}:::plan + PgSelectRows89[["PgSelectRows[89∈0] ➊"]]:::plan + PgSelectRows89 --> First88 + PgSelect86 --> PgSelectRows89 + PgSelectSingle90{{"PgSelectSingle[90∈0] ➊
ᐸperson_secretᐳ"}}:::plan + First88 --> PgSelectSingle90 + PgSelectSingle90 --> PgClassExpression91 + Lambda93{{"Lambda[93∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List92 --> Lambda93 - First98{{"First[98∈9] ➊"}}:::plan - PgSelectRows99[["PgSelectRows[99∈9] ➊"]]:::plan + PgClassExpression94{{"PgClassExpression[94∈0] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan + PgSelectSingle90 --> PgClassExpression94 + First98{{"First[98∈0] ➊"}}:::plan + PgSelectRows99[["PgSelectRows[99∈0] ➊"]]:::plan PgSelectRows99 --> First98 - PgSelect94 --> PgSelectRows99 - PgSelectSingle100{{"PgSelectSingle[100∈9] ➊
ᐸperson_secretᐳ"}}:::plan + PgSelect96 --> PgSelectRows99 + PgSelectSingle100{{"PgSelectSingle[100∈0] ➊
ᐸleft_armᐳ"}}:::plan First98 --> PgSelectSingle100 - List103{{"List[103∈10] ➊
ᐸ14,102ᐳ"}}:::plan - PgClassExpression102{{"PgClassExpression[102∈10] ➊
ᐸ__person_s...person_id”ᐳ"}}:::plan - Constant14 & PgClassExpression102 --> List103 PgSelectSingle100 --> PgClassExpression102 - Lambda104{{"Lambda[104∈10] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda104{{"Lambda[104∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan List103 --> Lambda104 - PgClassExpression105{{"PgClassExpression[105∈10] ➊
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan + PgClassExpression105{{"PgClassExpression[105∈0] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan PgSelectSingle100 --> PgClassExpression105 - List114{{"List[114∈11] ➊
ᐸ112,113ᐳ"}}:::plan - PgClassExpression113{{"PgClassExpression[113∈11] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan - Constant112 & PgClassExpression113 --> List114 - PgSelectSingle111 --> PgClassExpression113 - Lambda115{{"Lambda[115∈11] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List114 --> Lambda115 - PgClassExpression116{{"PgClassExpression[116∈11] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan - PgSelectSingle111 --> PgClassExpression116 - PgClassExpression117{{"PgClassExpression[117∈11] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgSelectSingle111 --> PgClassExpression117 - PgClassExpression118{{"PgClassExpression[118∈11] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan - PgSelectSingle111 --> PgClassExpression118 - PgSelect124[["PgSelect[124∈12] ➊
ᐸleft_armᐳ"]]:::plan - Object10 & Connection123 --> PgSelect124 - PgSelectRows125[["PgSelectRows[125∈12] ➊"]]:::plan - PgSelect124 --> PgSelectRows125 - __Item126[/"__Item[126∈13]
ᐸ125ᐳ"\]:::itemplan - PgSelectRows125 ==> __Item126 - PgSelectSingle127{{"PgSelectSingle[127∈13]
ᐸleft_armᐳ"}}:::plan - __Item126 --> PgSelectSingle127 - List130{{"List[130∈14]
ᐸ112,129ᐳ"}}:::plan - PgClassExpression129{{"PgClassExpression[129∈14]
ᐸ__left_arm__.”id”ᐳ"}}:::plan - Constant112 & PgClassExpression129 --> List130 - PgSelectSingle127 --> PgClassExpression129 - Lambda131{{"Lambda[131∈14]
ᐸbase64JSONEncodeᐳ"}}:::plan - List130 --> Lambda131 - PgClassExpression132{{"PgClassExpression[132∈14]
ᐸ__left_arm...person_id”ᐳ"}}:::plan - PgSelectSingle127 --> PgClassExpression132 - PgClassExpression133{{"PgClassExpression[133∈14]
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgSelectSingle127 --> PgClassExpression133 - PgClassExpression134{{"PgClassExpression[134∈14]
ᐸ__left_arm__.”mood”ᐳ"}}:::plan - PgSelectSingle127 --> PgClassExpression134 - List143{{"List[143∈15] ➊
ᐸ40,142ᐳ"}}:::plan - PgClassExpression142{{"PgClassExpression[142∈15] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Constant40 & PgClassExpression142 --> List143 - PgSelect145[["PgSelect[145∈15] ➊
ᐸleft_armᐳ"]]:::plan - Object10 & PgClassExpression142 --> PgSelect145 - PgSelectSingle140 --> PgClassExpression142 - Lambda144{{"Lambda[144∈15] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List143 --> Lambda144 - First149{{"First[149∈15] ➊"}}:::plan - PgSelectRows150[["PgSelectRows[150∈15] ➊"]]:::plan - PgSelectRows150 --> First149 - PgSelect145 --> PgSelectRows150 - PgSelectSingle151{{"PgSelectSingle[151∈15] ➊
ᐸleft_armᐳ"}}:::plan - First149 --> PgSelectSingle151 - List154{{"List[154∈16] ➊
ᐸ112,153ᐳ"}}:::plan - PgClassExpression153{{"PgClassExpression[153∈16] ➊
ᐸ__left_arm__.”id”ᐳ"}}:::plan - Constant112 & PgClassExpression153 --> List154 - PgSelectSingle151 --> PgClassExpression153 - Lambda155{{"Lambda[155∈16] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List154 --> Lambda155 - PgClassExpression156{{"PgClassExpression[156∈16] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan - PgSelectSingle151 --> PgClassExpression156 - PgClassExpression157{{"PgClassExpression[157∈16] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan - PgSelectSingle151 --> PgClassExpression157 - PgClassExpression158{{"PgClassExpression[158∈16] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan - PgSelectSingle151 --> PgClassExpression158 - List167{{"List[167∈17] ➊
ᐸ165,166ᐳ"}}:::plan - PgClassExpression166{{"PgClassExpression[166∈17] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - Constant165 & PgClassExpression166 --> List167 - PgSelectSingle164 --> PgClassExpression166 - Lambda168{{"Lambda[168∈17] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List167 --> Lambda168 - PgClassExpression169{{"PgClassExpression[169∈17] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle164 --> PgClassExpression169 - PgClassExpression170{{"PgClassExpression[170∈17] ➊
ᐸ__post__.”body”ᐳ"}}:::plan - PgSelectSingle164 --> PgClassExpression170 - PgClassExpression171{{"PgClassExpression[171∈17] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle164 --> PgClassExpression171 - PgSelect177[["PgSelect[177∈18] ➊
ᐸpostᐳ"]]:::plan - Object10 & Connection176 --> PgSelect177 - PgSelectRows178[["PgSelectRows[178∈18] ➊"]]:::plan - PgSelect177 --> PgSelectRows178 - __Item179[/"__Item[179∈19]
ᐸ178ᐳ"\]:::itemplan - PgSelectRows178 ==> __Item179 - PgSelectSingle180{{"PgSelectSingle[180∈19]
ᐸpostᐳ"}}:::plan - __Item179 --> PgSelectSingle180 - List183{{"List[183∈20]
ᐸ165,182ᐳ"}}:::plan - PgClassExpression182{{"PgClassExpression[182∈20]
ᐸ__post__.”id”ᐳ"}}:::plan - Constant165 & PgClassExpression182 --> List183 - PgSelectSingle180 --> PgClassExpression182 - Lambda184{{"Lambda[184∈20]
ᐸbase64JSONEncodeᐳ"}}:::plan - List183 --> Lambda184 - PgClassExpression185{{"PgClassExpression[185∈20]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle180 --> PgClassExpression185 - PgClassExpression186{{"PgClassExpression[186∈20]
ᐸ__post__.”body”ᐳ"}}:::plan - PgSelectSingle180 --> PgClassExpression186 - PgClassExpression187{{"PgClassExpression[187∈20]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle180 --> PgClassExpression187 - PgSelect205[["PgSelect[205∈21] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression195{{"PgClassExpression[195∈21] ➊
ᐸ__person__.”id”ᐳ"}}:::plan - Object10 & PgClassExpression195 & Connection204 --> PgSelect205 - List196{{"List[196∈21] ➊
ᐸ40,195ᐳ"}}:::plan - Constant40 & PgClassExpression195 --> List196 - PgSelectSingle193 --> PgClassExpression195 - Lambda197{{"Lambda[197∈21] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List196 --> Lambda197 - PgSelectRows206[["PgSelectRows[206∈21] ➊"]]:::plan - PgSelect205 --> PgSelectRows206 - __Item207[/"__Item[207∈22]
ᐸ206ᐳ"\]:::itemplan - PgSelectRows206 ==> __Item207 - PgSelectSingle208{{"PgSelectSingle[208∈22]
ᐸpostᐳ"}}:::plan - __Item207 --> PgSelectSingle208 - List211{{"List[211∈23]
ᐸ165,210ᐳ"}}:::plan - PgClassExpression210{{"PgClassExpression[210∈23]
ᐸ__post__.”id”ᐳ"}}:::plan - Constant165 & PgClassExpression210 --> List211 - PgSelectSingle208 --> PgClassExpression210 - Lambda212{{"Lambda[212∈23]
ᐸbase64JSONEncodeᐳ"}}:::plan - List211 --> Lambda212 - PgClassExpression213{{"PgClassExpression[213∈23]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle208 --> PgClassExpression213 - PgClassExpression214{{"PgClassExpression[214∈23]
ᐸ__post__.”body”ᐳ"}}:::plan - PgSelectSingle208 --> PgClassExpression214 - PgClassExpression215{{"PgClassExpression[215∈23]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle208 --> PgClassExpression215 - PgClassExpression221{{"PgClassExpression[221∈24] ➊
ᐸ__return_t...rson_id_1”ᐳ"}}:::plan - PgSelectSingle220 --> PgClassExpression221 - PgClassExpression222{{"PgClassExpression[222∈24] ➊
ᐸ__return_t...rson_id_2”ᐳ"}}:::plan - PgSelectSingle220 --> PgClassExpression222 + PgClassExpression106{{"PgClassExpression[106∈0] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + PgSelectSingle100 --> PgClassExpression106 + PgClassExpression107{{"PgClassExpression[107∈0] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan + PgSelectSingle100 --> PgClassExpression107 + PgSelectRows114[["PgSelectRows[114∈0] ➊"]]:::plan + PgSelect113 --> PgSelectRows114 + First127{{"First[127∈0] ➊"}}:::plan + PgSelectRows128[["PgSelectRows[128∈0] ➊"]]:::plan + PgSelectRows128 --> First127 + PgSelect125 --> PgSelectRows128 + PgSelectSingle129{{"PgSelectSingle[129∈0] ➊
ᐸpersonᐳ"}}:::plan + First127 --> PgSelectSingle129 + PgSelectSingle129 --> PgClassExpression130 + Lambda132{{"Lambda[132∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List131 --> Lambda132 + First135{{"First[135∈0] ➊"}}:::plan + PgSelectRows136[["PgSelectRows[136∈0] ➊"]]:::plan + PgSelectRows136 --> First135 + PgSelect133 --> PgSelectRows136 + PgSelectSingle137{{"PgSelectSingle[137∈0] ➊
ᐸleft_armᐳ"}}:::plan + First135 --> PgSelectSingle137 + PgSelectSingle137 --> PgClassExpression138 + Lambda140{{"Lambda[140∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List139 --> Lambda140 + PgClassExpression141{{"PgClassExpression[141∈0] ➊
ᐸ__left_arm...person_id”ᐳ"}}:::plan + PgSelectSingle137 --> PgClassExpression141 + PgClassExpression142{{"PgClassExpression[142∈0] ➊
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + PgSelectSingle137 --> PgClassExpression142 + PgClassExpression143{{"PgClassExpression[143∈0] ➊
ᐸ__left_arm__.”mood”ᐳ"}}:::plan + PgSelectSingle137 --> PgClassExpression143 + First147{{"First[147∈0] ➊"}}:::plan + PgSelectRows148[["PgSelectRows[148∈0] ➊"]]:::plan + PgSelectRows148 --> First147 + PgSelect145 --> PgSelectRows148 + PgSelectSingle149{{"PgSelectSingle[149∈0] ➊
ᐸpostᐳ"}}:::plan + First147 --> PgSelectSingle149 + PgSelectSingle149 --> PgClassExpression151 + Lambda153{{"Lambda[153∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List152 --> Lambda153 + PgClassExpression154{{"PgClassExpression[154∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle149 --> PgClassExpression154 + PgClassExpression155{{"PgClassExpression[155∈0] ➊
ᐸ__post__.”body”ᐳ"}}:::plan + PgSelectSingle149 --> PgClassExpression155 + PgClassExpression156{{"PgClassExpression[156∈0] ➊
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle149 --> PgClassExpression156 + PgSelectRows163[["PgSelectRows[163∈0] ➊"]]:::plan + PgSelect162 --> PgSelectRows163 + First176{{"First[176∈0] ➊"}}:::plan + PgSelectRows177[["PgSelectRows[177∈0] ➊"]]:::plan + PgSelectRows177 --> First176 + PgSelect174 --> PgSelectRows177 + PgSelectSingle178{{"PgSelectSingle[178∈0] ➊
ᐸpersonᐳ"}}:::plan + First176 --> PgSelectSingle178 + PgSelectSingle178 --> PgClassExpression179 + Lambda181{{"Lambda[181∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List180 --> Lambda181 + PgSelectRows188[["PgSelectRows[188∈0] ➊"]]:::plan + PgSelect187 --> PgSelectRows188 + PgSelect198[["PgSelect[198∈0] ➊
ᐸreturn_table_without_grantsᐳ"]]:::plan + Object10 --> PgSelect198 + First200{{"First[200∈0] ➊"}}:::plan + PgSelectRows201[["PgSelectRows[201∈0] ➊"]]:::plan + PgSelectRows201 --> First200 + PgSelect198 --> PgSelectRows201 + PgSelectSingle202{{"PgSelectSingle[202∈0] ➊
ᐸreturn_table_without_grantsᐳ"}}:::plan + First200 --> PgSelectSingle202 + PgClassExpression203{{"PgClassExpression[203∈0] ➊
ᐸ__return_t...rson_id_1”ᐳ"}}:::plan + PgSelectSingle202 --> PgClassExpression203 + PgClassExpression204{{"PgClassExpression[204∈0] ➊
ᐸ__return_t...rson_id_2”ᐳ"}}:::plan + PgSelectSingle202 --> PgClassExpression204 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + List31{{"List[31∈1]
ᐸ14,30ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈1]
ᐸ__person_s...person_id”ᐳ"}}:::plan + Constant14 & PgClassExpression30 --> List31 + __Item27[/"__Item[27∈1]
ᐸ26ᐳ"\]:::itemplan + PgSelectRows26 ==> __Item27 + PgSelectSingle28{{"PgSelectSingle[28∈1]
ᐸperson_secretᐳ"}}:::plan + __Item27 --> PgSelectSingle28 + PgSelectSingle28 --> PgClassExpression30 + Lambda32{{"Lambda[32∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List31 --> Lambda32 + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__person_s..._.”sekrit”ᐳ"}}:::plan + PgSelectSingle28 --> PgClassExpression33 + List119{{"List[119∈2]
ᐸ101,118ᐳ"}}:::plan + PgClassExpression118{{"PgClassExpression[118∈2]
ᐸ__left_arm__.”id”ᐳ"}}:::plan + Constant101 & PgClassExpression118 --> List119 + __Item115[/"__Item[115∈2]
ᐸ114ᐳ"\]:::itemplan + PgSelectRows114 ==> __Item115 + PgSelectSingle116{{"PgSelectSingle[116∈2]
ᐸleft_armᐳ"}}:::plan + __Item115 --> PgSelectSingle116 + PgSelectSingle116 --> PgClassExpression118 + Lambda120{{"Lambda[120∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan + List119 --> Lambda120 + PgClassExpression121{{"PgClassExpression[121∈2]
ᐸ__left_arm...person_id”ᐳ"}}:::plan + PgSelectSingle116 --> PgClassExpression121 + PgClassExpression122{{"PgClassExpression[122∈2]
ᐸ__left_arm...in_metres”ᐳ"}}:::plan + PgSelectSingle116 --> PgClassExpression122 + PgClassExpression123{{"PgClassExpression[123∈2]
ᐸ__left_arm__.”mood”ᐳ"}}:::plan + PgSelectSingle116 --> PgClassExpression123 + List168{{"List[168∈3]
ᐸ150,167ᐳ"}}:::plan + PgClassExpression167{{"PgClassExpression[167∈3]
ᐸ__post__.”id”ᐳ"}}:::plan + Constant150 & PgClassExpression167 --> List168 + __Item164[/"__Item[164∈3]
ᐸ163ᐳ"\]:::itemplan + PgSelectRows163 ==> __Item164 + PgSelectSingle165{{"PgSelectSingle[165∈3]
ᐸpostᐳ"}}:::plan + __Item164 --> PgSelectSingle165 + PgSelectSingle165 --> PgClassExpression167 + Lambda169{{"Lambda[169∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + List168 --> Lambda169 + PgClassExpression170{{"PgClassExpression[170∈3]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle165 --> PgClassExpression170 + PgClassExpression171{{"PgClassExpression[171∈3]
ᐸ__post__.”body”ᐳ"}}:::plan + PgSelectSingle165 --> PgClassExpression171 + PgClassExpression172{{"PgClassExpression[172∈3]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle165 --> PgClassExpression172 + List193{{"List[193∈4]
ᐸ150,192ᐳ"}}:::plan + PgClassExpression192{{"PgClassExpression[192∈4]
ᐸ__post__.”id”ᐳ"}}:::plan + Constant150 & PgClassExpression192 --> List193 + __Item189[/"__Item[189∈4]
ᐸ188ᐳ"\]:::itemplan + PgSelectRows188 ==> __Item189 + PgSelectSingle190{{"PgSelectSingle[190∈4]
ᐸpostᐳ"}}:::plan + __Item189 --> PgSelectSingle190 + PgSelectSingle190 --> PgClassExpression192 + Lambda194{{"Lambda[194∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + List193 --> Lambda194 + PgClassExpression195{{"PgClassExpression[195∈4]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle190 --> PgClassExpression195 + PgClassExpression196{{"PgClassExpression[196∈4]
ᐸ__post__.”body”ᐳ"}}:::plan + PgSelectSingle190 --> PgClassExpression196 + PgClassExpression197{{"PgClassExpression[197∈4]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle190 --> PgClassExpression197 %% define steps subgraph "Buckets for queries/v4/rbac.basic" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 14, 24, 40, 112, 123, 165, 176, 204, 223, 224, 225, 226, 227, 228, 229, 10, 57, 58, 82, 83
2: 7, 35, 60, 85, 107, 136, 160, 189, 216
3: 12, 38, 63, 88, 110, 139, 163, 192, 219
ᐳ: 11, 13, 37, 39, 62, 64, 87, 89, 109, 111, 138, 140, 162, 164, 191, 193, 218, 220"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 14, 19, 40, 101, 150, 205, 206, 207, 208, 209, 210, 211, 10, 23, 54, 55, 75, 76, 111, 160, 185
2: 7, 25, 35, 57, 78, 96, 113, 125, 145, 162, 174, 198
3: 12, 26, 38, 60, 81, 99, 114, 128, 148, 163, 177, 201
ᐳ: 11, 13, 15, 16, 17, 18, 37, 39, 41, 42, 43, 59, 61, 62, 63, 64, 80, 82, 83, 84, 85, 98, 100, 102, 103, 104, 105, 106, 107, 127, 129, 130, 131, 132, 147, 149, 151, 152, 153, 154, 155, 156, 176, 178, 179, 180, 181, 200, 202, 203, 204
4: 44, 65, 86, 133, 187
5: 47, 68, 89, 136, 188
ᐳ: 46, 48, 49, 50, 51, 52, 67, 69, 70, 71, 72, 73, 88, 90, 91, 92, 93, 94, 135, 137, 138, 139, 140, 141, 142, 143"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant14,Connection24,PgSelect35,First37,PgSelectRows38,PgSelectSingle39,Constant40,Lambda57,Access58,PgSelect60,First62,PgSelectRows63,PgSelectSingle64,Lambda82,Access83,PgSelect85,First87,PgSelectRows88,PgSelectSingle89,PgSelect107,First109,PgSelectRows110,PgSelectSingle111,Constant112,Connection123,PgSelect136,First138,PgSelectRows139,PgSelectSingle140,PgSelect160,First162,PgSelectRows163,PgSelectSingle164,Constant165,Connection176,PgSelect189,First191,PgSelectRows192,PgSelectSingle193,Connection204,PgSelect216,First218,PgSelectRows219,PgSelectSingle220,Constant223,Constant224,Constant225,Constant226,Constant227,Constant228,Constant229 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14

ROOT PgSelectSingleᐸperson_secretᐳ[13]"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant14,PgClassExpression15,List16,Lambda17,PgClassExpression18,Connection23,PgSelect25,PgSelectRows26,PgSelect35,First37,PgSelectRows38,PgSelectSingle39,Constant40,PgClassExpression41,List42,Lambda43,PgSelect44,First46,PgSelectRows47,PgSelectSingle48,PgClassExpression49,List50,Lambda51,PgClassExpression52,Lambda54,Access55,PgSelect57,First59,PgSelectRows60,PgSelectSingle61,PgClassExpression62,List63,Lambda64,PgSelect65,First67,PgSelectRows68,PgSelectSingle69,PgClassExpression70,List71,Lambda72,PgClassExpression73,Lambda75,Access76,PgSelect78,First80,PgSelectRows81,PgSelectSingle82,PgClassExpression83,List84,Lambda85,PgSelect86,First88,PgSelectRows89,PgSelectSingle90,PgClassExpression91,List92,Lambda93,PgClassExpression94,PgSelect96,First98,PgSelectRows99,PgSelectSingle100,Constant101,PgClassExpression102,List103,Lambda104,PgClassExpression105,PgClassExpression106,PgClassExpression107,Connection111,PgSelect113,PgSelectRows114,PgSelect125,First127,PgSelectRows128,PgSelectSingle129,PgClassExpression130,List131,Lambda132,PgSelect133,First135,PgSelectRows136,PgSelectSingle137,PgClassExpression138,List139,Lambda140,PgClassExpression141,PgClassExpression142,PgClassExpression143,PgSelect145,First147,PgSelectRows148,PgSelectSingle149,Constant150,PgClassExpression151,List152,Lambda153,PgClassExpression154,PgClassExpression155,PgClassExpression156,Connection160,PgSelect162,PgSelectRows163,PgSelect174,First176,PgSelectRows177,PgSelectSingle178,PgClassExpression179,List180,Lambda181,Connection185,PgSelect187,PgSelectRows188,PgSelect198,First200,PgSelectRows201,PgSelectSingle202,PgClassExpression203,PgClassExpression204,Constant205,Constant206,Constant207,Constant208,Constant209,Constant210,Constant211 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 14

ROOT __Item{1}ᐸ26ᐳ[27]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression15,List16,Lambda17,PgClassExpression18 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 10, 24, 14

ROOT Connectionᐸ22ᐳ[24]
1: PgSelect[25]
2: PgSelectRows[26]"):::bucket + class Bucket1,__Item27,PgSelectSingle28,PgClassExpression30,List31,Lambda32,PgClassExpression33 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 101

ROOT __Item{2}ᐸ114ᐳ[115]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgSelect25,PgSelectRows26 bucket2 - Bucket3("Bucket 3 (listItem)
Deps: 14

ROOT __Item{3}ᐸ26ᐳ[27]"):::bucket + class Bucket2,__Item115,PgSelectSingle116,PgClassExpression118,List119,Lambda120,PgClassExpression121,PgClassExpression122,PgClassExpression123 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 150

ROOT __Item{3}ᐸ163ᐳ[164]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item27,PgSelectSingle28 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 28, 14

ROOT PgSelectSingle{3}ᐸperson_secretᐳ[28]"):::bucket + class Bucket3,__Item164,PgSelectSingle165,PgClassExpression167,List168,Lambda169,PgClassExpression170,PgClassExpression171,PgClassExpression172 bucket3 + Bucket4("Bucket 4 (listItem)
Deps: 150

ROOT __Item{4}ᐸ188ᐳ[189]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression30,List31,Lambda32,PgClassExpression33 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 39, 40, 10, 14

ROOT PgSelectSingleᐸpersonᐳ[39]
1:
ᐳ: 41, 42, 43
2: PgSelect[44]
3: PgSelectRows[49]
ᐳ: First[48], PgSelectSingle[50]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression41,List42,Lambda43,PgSelect44,First48,PgSelectRows49,PgSelectSingle50 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 50, 14

ROOT PgSelectSingle{5}ᐸperson_secretᐳ[50]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression52,List53,Lambda54,PgClassExpression55 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 64, 40, 10, 14

ROOT PgSelectSingleᐸpersonᐳ[64]
1:
ᐳ: 66, 67, 68
2: PgSelect[69]
3: PgSelectRows[74]
ᐳ: First[73], PgSelectSingle[75]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression66,List67,Lambda68,PgSelect69,First73,PgSelectRows74,PgSelectSingle75 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 75, 14

ROOT PgSelectSingle{7}ᐸperson_secretᐳ[75]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression77,List78,Lambda79,PgClassExpression80 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 89, 40, 10, 14

ROOT PgSelectSingleᐸpersonᐳ[89]
1:
ᐳ: 91, 92, 93
2: PgSelect[94]
3: PgSelectRows[99]
ᐳ: First[98], PgSelectSingle[100]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression91,List92,Lambda93,PgSelect94,First98,PgSelectRows99,PgSelectSingle100 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 100, 14

ROOT PgSelectSingle{9}ᐸperson_secretᐳ[100]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression102,List103,Lambda104,PgClassExpression105 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 111, 112

ROOT PgSelectSingleᐸleft_armᐳ[111]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression113,List114,Lambda115,PgClassExpression116,PgClassExpression117,PgClassExpression118 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 10, 123, 112

ROOT Connectionᐸ121ᐳ[123]
1: PgSelect[124]
2: PgSelectRows[125]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgSelect124,PgSelectRows125 bucket12 - Bucket13("Bucket 13 (listItem)
Deps: 112

ROOT __Item{13}ᐸ125ᐳ[126]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,__Item126,PgSelectSingle127 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 127, 112

ROOT PgSelectSingle{13}ᐸleft_armᐳ[127]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,PgClassExpression129,List130,Lambda131,PgClassExpression132,PgClassExpression133,PgClassExpression134 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 140, 40, 10, 112

ROOT PgSelectSingleᐸpersonᐳ[140]
1:
ᐳ: 142, 143, 144
2: PgSelect[145]
3: PgSelectRows[150]
ᐳ: First[149], PgSelectSingle[151]"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15,PgClassExpression142,List143,Lambda144,PgSelect145,First149,PgSelectRows150,PgSelectSingle151 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 151, 112

ROOT PgSelectSingle{15}ᐸleft_armᐳ[151]"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16,PgClassExpression153,List154,Lambda155,PgClassExpression156,PgClassExpression157,PgClassExpression158 bucket16 - Bucket17("Bucket 17 (nullableBoundary)
Deps: 164, 165

ROOT PgSelectSingleᐸpostᐳ[164]"):::bucket - classDef bucket17 stroke:#696969 - class Bucket17,PgClassExpression166,List167,Lambda168,PgClassExpression169,PgClassExpression170,PgClassExpression171 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 10, 176, 165

ROOT Connectionᐸ174ᐳ[176]
1: PgSelect[177]
2: PgSelectRows[178]"):::bucket - classDef bucket18 stroke:#00bfff - class Bucket18,PgSelect177,PgSelectRows178 bucket18 - Bucket19("Bucket 19 (listItem)
Deps: 165

ROOT __Item{19}ᐸ178ᐳ[179]"):::bucket - classDef bucket19 stroke:#7f007f - class Bucket19,__Item179,PgSelectSingle180 bucket19 - Bucket20("Bucket 20 (nullableBoundary)
Deps: 180, 165

ROOT PgSelectSingle{19}ᐸpostᐳ[180]"):::bucket - classDef bucket20 stroke:#ffa500 - class Bucket20,PgClassExpression182,List183,Lambda184,PgClassExpression185,PgClassExpression186,PgClassExpression187 bucket20 - Bucket21("Bucket 21 (nullableBoundary)
Deps: 193, 40, 10, 204, 165

ROOT PgSelectSingleᐸpersonᐳ[193]
1:
ᐳ: 195, 196, 197
2: PgSelect[205]
3: PgSelectRows[206]"):::bucket - classDef bucket21 stroke:#0000ff - class Bucket21,PgClassExpression195,List196,Lambda197,PgSelect205,PgSelectRows206 bucket21 - Bucket22("Bucket 22 (listItem)
Deps: 165

ROOT __Item{22}ᐸ206ᐳ[207]"):::bucket - classDef bucket22 stroke:#7fff00 - class Bucket22,__Item207,PgSelectSingle208 bucket22 - Bucket23("Bucket 23 (nullableBoundary)
Deps: 208, 165

ROOT PgSelectSingle{22}ᐸpostᐳ[208]"):::bucket - classDef bucket23 stroke:#ff1493 - class Bucket23,PgClassExpression210,List211,Lambda212,PgClassExpression213,PgClassExpression214,PgClassExpression215 bucket23 - Bucket24("Bucket 24 (nullableBoundary)
Deps: 220

ROOT PgSelectSingleᐸreturn_table_without_grantsᐳ[220]"):::bucket - classDef bucket24 stroke:#808000 - class Bucket24,PgClassExpression221,PgClassExpression222 bucket24 - Bucket0 --> Bucket1 & Bucket2 & Bucket5 & Bucket7 & Bucket9 & Bucket11 & Bucket12 & Bucket15 & Bucket17 & Bucket18 & Bucket21 & Bucket24 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 - Bucket9 --> Bucket10 - Bucket12 --> Bucket13 - Bucket13 --> Bucket14 - Bucket15 --> Bucket16 - Bucket18 --> Bucket19 - Bucket19 --> Bucket20 - Bucket21 --> Bucket22 - Bucket22 --> Bucket23 + class Bucket4,__Item189,PgSelectSingle190,PgClassExpression192,List193,Lambda194,PgClassExpression195,PgClassExpression196,PgClassExpression197 bucket4 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/rbac.basic.sql b/postgraphile/postgraphile/__tests__/queries/v4/rbac.basic.sql index 1d9ddced0d..8ecd937bec 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/rbac.basic.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/rbac.basic.sql @@ -16,6 +16,18 @@ begin; /*fake*/ select set_config(el->>0, el->>1, true) from json_array_elements($1::json) el +select + __person_secret__."person_id"::text as "0", + __person_secret__."sekrit" as "1" +from "c"."person_secret" as __person_secret__ +order by __person_secret__."person_id" asc; + +commit; /*fake*/ + +begin; /*fake*/ + +select set_config(el->>0, el->>1, true) from json_array_elements($1::json) el + select __person__."id"::text as "0" from "c"."person" as __person__ @@ -58,6 +70,20 @@ begin; /*fake*/ select set_config(el->>0, el->>1, true) from json_array_elements($1::json) el +select + __left_arm__."id"::text as "0", + __left_arm__."person_id"::text as "1", + __left_arm__."length_in_metres"::text as "2", + __left_arm__."mood" as "3" +from "c"."left_arm" as __left_arm__ +order by __left_arm__."id" asc; + +commit; /*fake*/ + +begin; /*fake*/ + +select set_config(el->>0, el->>1, true) from json_array_elements($1::json) el + select __person__."id"::text as "0" from "c"."person" as __person__ @@ -88,11 +114,12 @@ begin; /*fake*/ select set_config(el->>0, el->>1, true) from json_array_elements($1::json) el select - __person__."id"::text as "0" -from "c"."person" as __person__ -where ( - __person__."id" = $1::"int4" -); + __post__."id"::text as "0", + __post__."headline" as "1", + __post__."body" as "2", + __post__."author_id"::text as "3" +from "a"."post" as __post__ +order by __post__."id" asc; commit; /*fake*/ @@ -101,9 +128,11 @@ begin; /*fake*/ select set_config(el->>0, el->>1, true) from json_array_elements($1::json) el select - __return_table_without_grants__."person_id_1"::text as "0", - __return_table_without_grants__."person_id_2"::text as "1" -from "c"."return_table_without_grants"() as __return_table_without_grants__; + __person__."id"::text as "0" +from "c"."person" as __person__ +where ( + __person__."id" = $1::"int4" +); commit; /*fake*/ @@ -112,10 +141,9 @@ begin; /*fake*/ select set_config(el->>0, el->>1, true) from json_array_elements($1::json) el select - __person_secret__."person_id"::text as "0", - __person_secret__."sekrit" as "1" -from "c"."person_secret" as __person_secret__ -order by __person_secret__."person_id" asc; + __return_table_without_grants__."person_id_1"::text as "0", + __return_table_without_grants__."person_id_2"::text as "1" +from "c"."return_table_without_grants"() as __return_table_without_grants__; commit; /*fake*/ @@ -137,20 +165,6 @@ begin; /*fake*/ select set_config(el->>0, el->>1, true) from json_array_elements($1::json) el -select - __left_arm__."id"::text as "0", - __left_arm__."person_id"::text as "1", - __left_arm__."length_in_metres"::text as "2", - __left_arm__."mood" as "3" -from "c"."left_arm" as __left_arm__ -order by __left_arm__."id" asc; - -commit; /*fake*/ - -begin; /*fake*/ - -select set_config(el->>0, el->>1, true) from json_array_elements($1::json) el - select __left_arm__."id"::text as "0", __left_arm__."person_id"::text as "1", @@ -167,20 +181,6 @@ begin; /*fake*/ select set_config(el->>0, el->>1, true) from json_array_elements($1::json) el -select - __post__."id"::text as "0", - __post__."headline" as "1", - __post__."body" as "2", - __post__."author_id"::text as "3" -from "a"."post" as __post__ -order by __post__."id" asc; - -commit; /*fake*/ - -begin; /*fake*/ - -select set_config(el->>0, el->>1, true) from json_array_elements($1::json) el - select __post__."id"::text as "0", __post__."headline" as "1", diff --git a/postgraphile/postgraphile/__tests__/queries/v4/relation-head-tail.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/relation-head-tail.mermaid index 6000fb1e7c..b9491314d5 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/relation-head-tail.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/relation-head-tail.mermaid @@ -9,175 +9,145 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 - __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan - __Value2 --> Access10 - __Value2 --> Access11 - Connection27{{"Connection[27∈0] ➊
ᐸ23ᐳ"}}:::plan - Constant94{{"Constant[94∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant94 --> Connection27 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Connection40{{"Connection[40∈0] ➊
ᐸ38ᐳ"}}:::plan + PgSelect14[["PgSelect[14∈0] ➊
ᐸpersonᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect75[["PgSelect[75∈0] ➊
ᐸcompound_keyᐳ"]]:::plan + Connection73{{"Connection[73∈0] ➊
ᐸ71ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect75 + Connection73 --> PgSelect75 + Connection26{{"Connection[26∈0] ➊
ᐸ22ᐳ"}}:::plan + Constant95{{"Constant[95∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant95 --> Connection26 + Connection39{{"Connection[39∈0] ➊
ᐸ37ᐳ"}}:::plan Connection51{{"Connection[51∈0] ➊
ᐸ49ᐳ"}}:::plan Connection62{{"Connection[62∈0] ➊
ᐸ60ᐳ"}}:::plan - Connection73{{"Connection[73∈0] ➊
ᐸ71ᐳ"}}:::plan Connection86{{"Connection[86∈0] ➊
ᐸ82ᐳ"}}:::plan - Constant95{{"Constant[95∈0] ➊
ᐸ'Large bet on myself in round one.'ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸpersonᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 + __InputObject35{{"__InputObject[35∈0] ➊"}}:::plan + Constant96{{"Constant[96∈0] ➊
ᐸ'Large bet on myself in round one.'ᐳ"}}:::plan + Constant96 --> __InputObject35 + __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 + __Value2 --> Access10 + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + ApplyInput41{{"ApplyInput[41∈0] ➊"}}:::plan + __InputObject35 --> ApplyInput41 + PgSelectRows76[["PgSelectRows[76∈0] ➊"]]:::plan + PgSelect75 --> PgSelectRows76 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect42[["PgSelect[42∈1]
ᐸpostᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression18 & ApplyInput41 & Connection39 --> PgSelect42 + PgSelect28[["PgSelect[28∈1]
ᐸpostᐳ"]]:::plan + Object11 & PgClassExpression18 & Connection26 & Constant95 --> PgSelect28 + PgSelect53[["PgSelect[53∈1]
ᐸcompound_keyᐳ"]]:::plan + Object11 & PgClassExpression18 & Connection51 --> PgSelect53 + PgSelect64[["PgSelect[64∈1]
ᐸcompound_keyᐳ"]]:::plan + Object11 & PgClassExpression18 & Connection62 --> PgSelect64 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸpersonᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸpersonᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgSelect28[["PgSelect[28∈3]
ᐸpostᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__person__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression18 & Connection27 & Constant94 --> PgSelect28 - PgSelect41[["PgSelect[41∈3]
ᐸpostᐳ"]]:::plan - Object12 & PgClassExpression18 & Constant95 & Connection40 --> PgSelect41 - PgSelect52[["PgSelect[52∈3]
ᐸcompound_keyᐳ"]]:::plan - Object12 & PgClassExpression18 & Connection51 --> PgSelect52 - PgSelect63[["PgSelect[63∈3]
ᐸcompound_keyᐳ"]]:::plan - Object12 & PgClassExpression18 & Connection62 --> PgSelect63 PgSelectSingle17 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression19 - PgSelectRows29[["PgSelectRows[29∈3]"]]:::plan + PgSelectRows29[["PgSelectRows[29∈1]"]]:::plan PgSelect28 --> PgSelectRows29 - PgSelectRows42[["PgSelectRows[42∈3]"]]:::plan - PgSelect41 --> PgSelectRows42 - PgSelectRows53[["PgSelectRows[53∈3]"]]:::plan - PgSelect52 --> PgSelectRows53 - PgSelectRows64[["PgSelectRows[64∈3]"]]:::plan - PgSelect63 --> PgSelectRows64 - __Item30[/"__Item[30∈4]
ᐸ29ᐳ"\]:::itemplan + PgSelectRows43[["PgSelectRows[43∈1]"]]:::plan + PgSelect42 --> PgSelectRows43 + PgSelectRows54[["PgSelectRows[54∈1]"]]:::plan + PgSelect53 --> PgSelectRows54 + PgSelectRows65[["PgSelectRows[65∈1]"]]:::plan + PgSelect64 --> PgSelectRows65 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan PgSelectRows29 ==> __Item30 - PgSelectSingle31{{"PgSelectSingle[31∈4]
ᐸpostᐳ"}}:::plan + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸpostᐳ"}}:::plan __Item30 --> PgSelectSingle31 - PgClassExpression32{{"PgClassExpression[32∈5]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈2]
ᐸ__post__.”headline”ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈5]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈2]
ᐸ__post__.”author_id”ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression33 - __Item43[/"__Item[43∈6]
ᐸ42ᐳ"\]:::itemplan - PgSelectRows42 ==> __Item43 - PgSelectSingle44{{"PgSelectSingle[44∈6]
ᐸpostᐳ"}}:::plan - __Item43 --> PgSelectSingle44 - PgClassExpression45{{"PgClassExpression[45∈7]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈7]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression46 - __Item54[/"__Item[54∈8]
ᐸ53ᐳ"\]:::itemplan - PgSelectRows53 ==> __Item54 - PgSelectSingle55{{"PgSelectSingle[55∈8]
ᐸcompound_keyᐳ"}}:::plan - __Item54 --> PgSelectSingle55 - PgClassExpression56{{"PgClassExpression[56∈9]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈9]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle55 --> PgClassExpression57 - __Item65[/"__Item[65∈10]
ᐸ64ᐳ"\]:::itemplan - PgSelectRows64 ==> __Item65 - PgSelectSingle66{{"PgSelectSingle[66∈10]
ᐸcompound_keyᐳ"}}:::plan - __Item65 --> PgSelectSingle66 - PgClassExpression67{{"PgClassExpression[67∈11]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle66 --> PgClassExpression67 - PgClassExpression68{{"PgClassExpression[68∈11]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle66 --> PgClassExpression68 - PgSelect74[["PgSelect[74∈12] ➊
ᐸcompound_keyᐳ"]]:::plan - Object12 & Connection73 --> PgSelect74 - PgSelectRows75[["PgSelectRows[75∈12] ➊"]]:::plan - PgSelect74 --> PgSelectRows75 - __Item76[/"__Item[76∈13]
ᐸ75ᐳ"\]:::itemplan - PgSelectRows75 ==> __Item76 - PgSelectSingle77{{"PgSelectSingle[77∈13]
ᐸcompound_keyᐳ"}}:::plan - __Item76 --> PgSelectSingle77 - PgSelect87[["PgSelect[87∈14]
ᐸforeign_keyᐳ"]]:::plan - PgClassExpression78{{"PgClassExpression[78∈14]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression79{{"PgClassExpression[79∈14]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Object12 & PgClassExpression78 & PgClassExpression79 & Connection86 --> PgSelect87 - PgSelectSingle77 --> PgClassExpression78 - PgSelectSingle77 --> PgClassExpression79 - PgSelectRows88[["PgSelectRows[88∈14]"]]:::plan - PgSelect87 --> PgSelectRows88 - __Item89[/"__Item[89∈15]
ᐸ88ᐳ"\]:::itemplan - PgSelectRows88 ==> __Item89 - PgSelectSingle90{{"PgSelectSingle[90∈15]
ᐸforeign_keyᐳ"}}:::plan - __Item89 --> PgSelectSingle90 - PgClassExpression91{{"PgClassExpression[91∈16]
ᐸ__foreign_...person_id”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression91 - PgClassExpression92{{"PgClassExpression[92∈16]
ᐸ__foreign_...und_key_1”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression92 - PgClassExpression93{{"PgClassExpression[93∈16]
ᐸ__foreign_...und_key_2”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression93 + __Item44[/"__Item[44∈3]
ᐸ43ᐳ"\]:::itemplan + PgSelectRows43 ==> __Item44 + PgSelectSingle45{{"PgSelectSingle[45∈3]
ᐸpostᐳ"}}:::plan + __Item44 --> PgSelectSingle45 + PgClassExpression46{{"PgClassExpression[46∈3]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle45 --> PgClassExpression46 + PgClassExpression47{{"PgClassExpression[47∈3]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle45 --> PgClassExpression47 + __Item55[/"__Item[55∈4]
ᐸ54ᐳ"\]:::itemplan + PgSelectRows54 ==> __Item55 + PgSelectSingle56{{"PgSelectSingle[56∈4]
ᐸcompound_keyᐳ"}}:::plan + __Item55 --> PgSelectSingle56 + PgClassExpression57{{"PgClassExpression[57∈4]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle56 --> PgClassExpression57 + PgClassExpression58{{"PgClassExpression[58∈4]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle56 --> PgClassExpression58 + __Item66[/"__Item[66∈5]
ᐸ65ᐳ"\]:::itemplan + PgSelectRows65 ==> __Item66 + PgSelectSingle67{{"PgSelectSingle[67∈5]
ᐸcompound_keyᐳ"}}:::plan + __Item66 --> PgSelectSingle67 + PgClassExpression68{{"PgClassExpression[68∈5]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle67 --> PgClassExpression68 + PgClassExpression69{{"PgClassExpression[69∈5]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle67 --> PgClassExpression69 + PgSelect88[["PgSelect[88∈6]
ᐸforeign_keyᐳ"]]:::plan + PgClassExpression79{{"PgClassExpression[79∈6]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression80{{"PgClassExpression[80∈6]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Object11 & PgClassExpression79 & PgClassExpression80 & Connection86 --> PgSelect88 + __Item77[/"__Item[77∈6]
ᐸ76ᐳ"\]:::itemplan + PgSelectRows76 ==> __Item77 + PgSelectSingle78{{"PgSelectSingle[78∈6]
ᐸcompound_keyᐳ"}}:::plan + __Item77 --> PgSelectSingle78 + PgSelectSingle78 --> PgClassExpression79 + PgSelectSingle78 --> PgClassExpression80 + PgSelectRows89[["PgSelectRows[89∈6]"]]:::plan + PgSelect88 --> PgSelectRows89 + __Item90[/"__Item[90∈7]
ᐸ89ᐳ"\]:::itemplan + PgSelectRows89 ==> __Item90 + PgSelectSingle91{{"PgSelectSingle[91∈7]
ᐸforeign_keyᐳ"}}:::plan + __Item90 --> PgSelectSingle91 + PgClassExpression92{{"PgClassExpression[92∈7]
ᐸ__foreign_...person_id”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression92 + PgClassExpression93{{"PgClassExpression[93∈7]
ᐸ__foreign_...und_key_1”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression93 + PgClassExpression94{{"PgClassExpression[94∈7]
ᐸ__foreign_...und_key_2”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression94 %% define steps subgraph "Buckets for queries/v4/relation-head-tail" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 95, 96, 11, 12, 26, 35, 39, 41, 51, 62, 73, 86
2: PgSelect[14], PgSelect[75]
3: PgSelectRows[15], PgSelectRows[76]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Connection27,Connection40,Connection51,Connection62,Connection73,Connection86,Constant94,Constant95 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 27, 94, 95, 40, 51, 62

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Connection26,__InputObject35,Connection39,ApplyInput41,Connection51,Connection62,Connection73,PgSelect75,PgSelectRows76,Connection86,Constant95,Constant96 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 26, 6, 95, 41, 39, 51, 62

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 18, 19
2: 28, 42, 53, 64
3: 29, 43, 54, 65"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 12, 27, 94, 95, 40, 51, 62

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgSelect28,PgSelectRows29,PgSelect42,PgSelectRows43,PgSelect53,PgSelectRows54,PgSelect64,PgSelectRows65 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ29ᐳ[30]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 12, 27, 94, 95, 40, 51, 62

ROOT PgSelectSingle{2}ᐸpersonᐳ[17]
1:
ᐳ: 18, 19
2: 28, 41, 52, 63
3: 29, 42, 53, 64"):::bucket + class Bucket2,__Item30,PgSelectSingle31,PgClassExpression32,PgClassExpression33 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ43ᐳ[44]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgSelect28,PgSelectRows29,PgSelect41,PgSelectRows42,PgSelect52,PgSelectRows53,PgSelect63,PgSelectRows64 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ29ᐳ[30]"):::bucket + class Bucket3,__Item44,PgSelectSingle45,PgClassExpression46,PgClassExpression47 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ54ᐳ[55]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item30,PgSelectSingle31 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 31

ROOT PgSelectSingle{4}ᐸpostᐳ[31]"):::bucket + class Bucket4,__Item55,PgSelectSingle56,PgClassExpression57,PgClassExpression58 bucket4 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ65ᐳ[66]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression32,PgClassExpression33 bucket5 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ42ᐳ[43]"):::bucket + class Bucket5,__Item66,PgSelectSingle67,PgClassExpression68,PgClassExpression69 bucket5 + Bucket6("Bucket 6 (listItem)
Deps: 11, 86, 6

ROOT __Item{6}ᐸ76ᐳ[77]
1:
ᐳ: 78, 79, 80
2: PgSelect[88]
3: PgSelectRows[89]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,__Item43,PgSelectSingle44 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 44

ROOT PgSelectSingle{6}ᐸpostᐳ[44]"):::bucket + class Bucket6,__Item77,PgSelectSingle78,PgClassExpression79,PgClassExpression80,PgSelect88,PgSelectRows89 bucket6 + Bucket7("Bucket 7 (listItem)

ROOT __Item{7}ᐸ89ᐳ[90]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression45,PgClassExpression46 bucket7 - Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ53ᐳ[54]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,__Item54,PgSelectSingle55 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 55

ROOT PgSelectSingle{8}ᐸcompound_keyᐳ[55]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression56,PgClassExpression57 bucket9 - Bucket10("Bucket 10 (listItem)

ROOT __Item{10}ᐸ64ᐳ[65]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,__Item65,PgSelectSingle66 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 66

ROOT PgSelectSingle{10}ᐸcompound_keyᐳ[66]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression67,PgClassExpression68 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 12, 73, 86

ROOT Connectionᐸ71ᐳ[73]
1: PgSelect[74]
2: PgSelectRows[75]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgSelect74,PgSelectRows75 bucket12 - Bucket13("Bucket 13 (listItem)
Deps: 12, 86

ROOT __Item{13}ᐸ75ᐳ[76]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,__Item76,PgSelectSingle77 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 77, 12, 86

ROOT PgSelectSingle{13}ᐸcompound_keyᐳ[77]
1:
ᐳ: 78, 79
2: PgSelect[87]
3: PgSelectRows[88]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,PgClassExpression78,PgClassExpression79,PgSelect87,PgSelectRows88 bucket14 - Bucket15("Bucket 15 (listItem)

ROOT __Item{15}ᐸ88ᐳ[89]"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15,__Item89,PgSelectSingle90 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 90

ROOT PgSelectSingle{15}ᐸforeign_keyᐳ[90]"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16,PgClassExpression91,PgClassExpression92,PgClassExpression93 bucket16 - Bucket0 --> Bucket1 & Bucket12 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket6 & Bucket8 & Bucket10 - Bucket4 --> Bucket5 + class Bucket7,__Item90,PgSelectSingle91,PgClassExpression92,PgClassExpression93,PgClassExpression94 bucket7 + Bucket0 --> Bucket1 & Bucket6 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 & Bucket5 Bucket6 --> Bucket7 - Bucket8 --> Bucket9 - Bucket10 --> Bucket11 - Bucket12 --> Bucket13 - Bucket13 --> Bucket14 - Bucket14 --> Bucket15 - Bucket15 --> Bucket16 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/relation-tail-head.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/relation-tail-head.mermaid index 6c88ff58ff..0dc0e560c3 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/relation-tail-head.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/relation-tail-head.mermaid @@ -9,136 +9,108 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸcompound_keyᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect42[["PgSelect[42∈0] ➊
ᐸforeign_keyᐳ"]]:::plan + Connection40{{"Connection[40∈0] ➊
ᐸ38ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect42 + Connection40 --> PgSelect42 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Connection43{{"Connection[43∈0] ➊
ᐸ41ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸcompound_keyᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + PgSelectRows43[["PgSelectRows[43∈0] ➊"]]:::plan + PgSelect42 --> PgSelectRows43 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect21[["PgSelect[21∈1]
ᐸpersonᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + Object11 & PgClassExpression18 --> PgSelect21 + PgSelect30[["PgSelect[30∈1]
ᐸpersonᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Object11 & PgClassExpression19 --> PgSelect30 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸcompound_keyᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸcompound_keyᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgSelect21[["PgSelect[21∈3]
ᐸpersonᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - Object12 & PgClassExpression18 --> PgSelect21 - PgSelect30[["PgSelect[30∈3]
ᐸpersonᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Object12 & PgClassExpression19 --> PgSelect30 PgSelectSingle17 --> PgClassExpression18 PgSelectSingle17 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__compound...__.”extra”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__compound...__.”extra”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression20 - First25{{"First[25∈3]"}}:::plan - PgSelectRows26[["PgSelectRows[26∈3]"]]:::plan + First25{{"First[25∈1]"}}:::plan + PgSelectRows26[["PgSelectRows[26∈1]"]]:::plan PgSelectRows26 --> First25 PgSelect21 --> PgSelectRows26 - PgSelectSingle27{{"PgSelectSingle[27∈3]
ᐸpersonᐳ"}}:::plan + PgSelectSingle27{{"PgSelectSingle[27∈1]
ᐸpersonᐳ"}}:::plan First25 --> PgSelectSingle27 - First32{{"First[32∈3]"}}:::plan - PgSelectRows33[["PgSelectRows[33∈3]"]]:::plan + PgClassExpression28{{"PgClassExpression[28∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle27 --> PgClassExpression28 + PgClassExpression29{{"PgClassExpression[29∈1]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle27 --> PgClassExpression29 + First32{{"First[32∈1]"}}:::plan + PgSelectRows33[["PgSelectRows[33∈1]"]]:::plan PgSelectRows33 --> First32 PgSelect30 --> PgSelectRows33 - PgSelectSingle34{{"PgSelectSingle[34∈3]
ᐸpersonᐳ"}}:::plan + PgSelectSingle34{{"PgSelectSingle[34∈1]
ᐸpersonᐳ"}}:::plan First32 --> PgSelectSingle34 - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression28 - PgClassExpression29{{"PgClassExpression[29∈4]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle27 --> PgClassExpression29 - PgClassExpression35{{"PgClassExpression[35∈5]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle34 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__person__.”email”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈1]
ᐸ__person__.”email”ᐳ"}}:::plan PgSelectSingle34 --> PgClassExpression36 - PgSelect44[["PgSelect[44∈6] ➊
ᐸforeign_keyᐳ"]]:::plan - Object12 & Connection43 --> PgSelect44 - PgSelectRows45[["PgSelectRows[45∈6] ➊"]]:::plan - PgSelect44 --> PgSelectRows45 - __Item46[/"__Item[46∈7]
ᐸ45ᐳ"\]:::itemplan - PgSelectRows45 ==> __Item46 - PgSelectSingle47{{"PgSelectSingle[47∈7]
ᐸforeign_keyᐳ"}}:::plan - __Item46 --> PgSelectSingle47 - PgSelect60[["PgSelect[60∈8]
ᐸcompound_keyᐳ"]]:::plan - PgClassExpression49{{"PgClassExpression[49∈8]
ᐸ__foreign_...und_key_1”ᐳ"}}:::plan - PgClassExpression50{{"PgClassExpression[50∈8]
ᐸ__foreign_...und_key_2”ᐳ"}}:::plan - Object12 & PgClassExpression49 & PgClassExpression50 --> PgSelect60 - PgSelect51[["PgSelect[51∈8]
ᐸpersonᐳ"]]:::plan - PgClassExpression48{{"PgClassExpression[48∈8]
ᐸ__foreign_...person_id”ᐳ"}}:::plan - Object12 & PgClassExpression48 --> PgSelect51 - PgSelectSingle47 --> PgClassExpression48 - PgSelectSingle47 --> PgClassExpression49 - PgSelectSingle47 --> PgClassExpression50 - First55{{"First[55∈8]"}}:::plan - PgSelectRows56[["PgSelectRows[56∈8]"]]:::plan - PgSelectRows56 --> First55 - PgSelect51 --> PgSelectRows56 - PgSelectSingle57{{"PgSelectSingle[57∈8]
ᐸpersonᐳ"}}:::plan - First55 --> PgSelectSingle57 - First62{{"First[62∈8]"}}:::plan - PgSelectRows63[["PgSelectRows[63∈8]"]]:::plan - PgSelectRows63 --> First62 - PgSelect60 --> PgSelectRows63 - PgSelectSingle64{{"PgSelectSingle[64∈8]
ᐸcompound_keyᐳ"}}:::plan - First62 --> PgSelectSingle64 - PgClassExpression58{{"PgClassExpression[58∈9]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle57 --> PgClassExpression58 - PgClassExpression59{{"PgClassExpression[59∈9]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle57 --> PgClassExpression59 - PgClassExpression65{{"PgClassExpression[65∈10]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle64 --> PgClassExpression65 - PgClassExpression66{{"PgClassExpression[66∈10]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle64 --> PgClassExpression66 - PgClassExpression67{{"PgClassExpression[67∈10]
ᐸ__compound...__.”extra”ᐳ"}}:::plan - PgSelectSingle64 --> PgClassExpression67 + PgSelect58[["PgSelect[58∈2]
ᐸcompound_keyᐳ"]]:::plan + PgClassExpression47{{"PgClassExpression[47∈2]
ᐸ__foreign_...und_key_1”ᐳ"}}:::plan + PgClassExpression48{{"PgClassExpression[48∈2]
ᐸ__foreign_...und_key_2”ᐳ"}}:::plan + Object11 & PgClassExpression47 & PgClassExpression48 --> PgSelect58 + PgSelect49[["PgSelect[49∈2]
ᐸpersonᐳ"]]:::plan + PgClassExpression46{{"PgClassExpression[46∈2]
ᐸ__foreign_...person_id”ᐳ"}}:::plan + Object11 & PgClassExpression46 --> PgSelect49 + __Item44[/"__Item[44∈2]
ᐸ43ᐳ"\]:::itemplan + PgSelectRows43 ==> __Item44 + PgSelectSingle45{{"PgSelectSingle[45∈2]
ᐸforeign_keyᐳ"}}:::plan + __Item44 --> PgSelectSingle45 + PgSelectSingle45 --> PgClassExpression46 + PgSelectSingle45 --> PgClassExpression47 + PgSelectSingle45 --> PgClassExpression48 + First53{{"First[53∈2]"}}:::plan + PgSelectRows54[["PgSelectRows[54∈2]"]]:::plan + PgSelectRows54 --> First53 + PgSelect49 --> PgSelectRows54 + PgSelectSingle55{{"PgSelectSingle[55∈2]
ᐸpersonᐳ"}}:::plan + First53 --> PgSelectSingle55 + PgClassExpression56{{"PgClassExpression[56∈2]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle55 --> PgClassExpression56 + PgClassExpression57{{"PgClassExpression[57∈2]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle55 --> PgClassExpression57 + First60{{"First[60∈2]"}}:::plan + PgSelectRows61[["PgSelectRows[61∈2]"]]:::plan + PgSelectRows61 --> First60 + PgSelect58 --> PgSelectRows61 + PgSelectSingle62{{"PgSelectSingle[62∈2]
ᐸcompound_keyᐳ"}}:::plan + First60 --> PgSelectSingle62 + PgClassExpression63{{"PgClassExpression[63∈2]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle62 --> PgClassExpression63 + PgClassExpression64{{"PgClassExpression[64∈2]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle62 --> PgClassExpression64 + PgClassExpression65{{"PgClassExpression[65∈2]
ᐸ__compound...__.”extra”ᐳ"}}:::plan + PgSelectSingle62 --> PgClassExpression65 %% define steps subgraph "Buckets for queries/v4/relation-tail-head" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 11, 12, 40
2: PgSelect[14], PgSelect[42]
3: PgSelectRows[15], PgSelectRows[43]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Connection43 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Connection40,PgSelect42,PgSelectRows43 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 18, 19, 20
2: PgSelect[21], PgSelect[30]
3: PgSelectRows[26], PgSelectRows[33]
ᐳ: 25, 27, 28, 29, 32, 34, 35, 36"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 12

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgSelect21,First25,PgSelectRows26,PgSelectSingle27,PgClassExpression28,PgClassExpression29,PgSelect30,First32,PgSelectRows33,PgSelectSingle34,PgClassExpression35,PgClassExpression36 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 11

ROOT __Item{2}ᐸ43ᐳ[44]
1:
ᐳ: 45, 46, 47, 48
2: PgSelect[49], PgSelect[58]
3: PgSelectRows[54], PgSelectRows[61]
ᐳ: 53, 55, 56, 57, 60, 62, 63, 64, 65"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 12

ROOT PgSelectSingle{2}ᐸcompound_keyᐳ[17]
1:
ᐳ: 18, 19, 20
2: PgSelect[21], PgSelect[30]
3: PgSelectRows[26], PgSelectRows[33]
ᐳ: 25, 27, 32, 34"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgSelect21,First25,PgSelectRows26,PgSelectSingle27,PgSelect30,First32,PgSelectRows33,PgSelectSingle34 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 27

ROOT PgSelectSingle{3}ᐸpersonᐳ[27]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression28,PgClassExpression29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 34

ROOT PgSelectSingle{3}ᐸpersonᐳ[34]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression35,PgClassExpression36 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 12, 43

ROOT Connectionᐸ41ᐳ[43]
1: PgSelect[44]
2: PgSelectRows[45]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgSelect44,PgSelectRows45 bucket6 - Bucket7("Bucket 7 (listItem)
Deps: 12

ROOT __Item{7}ᐸ45ᐳ[46]"):::bucket - classDef bucket7 stroke:#808000 - class Bucket7,__Item46,PgSelectSingle47 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 47, 12

ROOT PgSelectSingle{7}ᐸforeign_keyᐳ[47]
1:
ᐳ: 48, 49, 50
2: PgSelect[51], PgSelect[60]
3: PgSelectRows[56], PgSelectRows[63]
ᐳ: 55, 57, 62, 64"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression48,PgClassExpression49,PgClassExpression50,PgSelect51,First55,PgSelectRows56,PgSelectSingle57,PgSelect60,First62,PgSelectRows63,PgSelectSingle64 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 57

ROOT PgSelectSingle{8}ᐸpersonᐳ[57]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,PgClassExpression58,PgClassExpression59 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 64

ROOT PgSelectSingle{8}ᐸcompound_keyᐳ[64]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression65,PgClassExpression66,PgClassExpression67 bucket10 - Bucket0 --> Bucket1 & Bucket6 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket5 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 - Bucket8 --> Bucket9 & Bucket10 + class Bucket2,__Item44,PgSelectSingle45,PgClassExpression46,PgClassExpression47,PgClassExpression48,PgSelect49,First53,PgSelectRows54,PgSelectSingle55,PgClassExpression56,PgClassExpression57,PgSelect58,First60,PgSelectRows61,PgSelectSingle62,PgClassExpression63,PgClassExpression64,PgClassExpression65 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/simple-collections.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/simple-collections.mermaid index ab9871ac60..a56922bc55 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/simple-collections.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/simple-collections.mermaid @@ -9,28 +9,46 @@ graph TD %% plan dependencies - PgSelect58[["PgSelect[58∈0] ➊
ᐸpostᐳ"]]:::plan + PgSelect48[["PgSelect[48∈0] ➊
ᐸpostᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant115{{"Constant[115∈0] ➊
ᐸ2ᐳ"}}:::plan - Object10 & Constant115 & Constant115 --> PgSelect58 - PgSelect67[["PgSelect[67∈0] ➊
ᐸpersonᐳ"]]:::plan - Constant116{{"Constant[116∈0] ➊
ᐸ3ᐳ"}}:::plan - Constant117{{"Constant[117∈0] ➊
ᐸ1ᐳ"}}:::plan - Object10 & Constant116 & Constant117 --> PgSelect67 + ApplyInput50{{"ApplyInput[50∈0] ➊"}}:::plan + Object10 & ApplyInput50 --> PgSelect48 + PgSelect59[["PgSelect[59∈0] ➊
ᐸpostᐳ"]]:::plan + Constant117{{"Constant[117∈0] ➊
ᐸ2ᐳ"}}:::plan + ApplyInput61{{"ApplyInput[61∈0] ➊"}}:::plan + Object10 & Constant117 & ApplyInput61 --> PgSelect59 + PgSelect98[["PgSelect[98∈0] ➊
ᐸpersonᐳ"]]:::plan + ApplyInput100{{"ApplyInput[100∈0] ➊"}}:::plan + Object10 & ApplyInput100 --> PgSelect98 + PgSelect7[["PgSelect[7∈0] ➊
ᐸpersonᐳ"]]:::plan + Object10 --> PgSelect7 + PgSelect18[["PgSelect[18∈0] ➊
ᐸpersonᐳ"]]:::plan + Object10 & Constant117 --> PgSelect18 + PgSelect27[["PgSelect[27∈0] ➊
ᐸpersonᐳ"]]:::plan + Object10 --> PgSelect27 + PgSelect37[["PgSelect[37∈0] ➊
ᐸpersonᐳ"]]:::plan + Object10 --> PgSelect37 + PgSelect69[["PgSelect[69∈0] ➊
ᐸpersonᐳ"]]:::plan + Constant118{{"Constant[118∈0] ➊
ᐸ3ᐳ"}}:::plan + Constant119{{"Constant[119∈0] ➊
ᐸ1ᐳ"}}:::plan + Object10 & Constant118 & Constant119 --> PgSelect69 + PgSelect78[["PgSelect[78∈0] ➊
ᐸpersonᐳ"]]:::plan + Constant120{{"Constant[120∈0] ➊
ᐸ0ᐳ"}}:::plan + Object10 & Constant120 --> PgSelect78 + PgSelect87[["PgSelect[87∈0] ➊
ᐸpersonᐳ"]]:::plan + Object10 --> PgSelect87 + PgSelect109[["PgSelect[109∈0] ➊
ᐸpostᐳ"]]:::plan + Object10 & Constant118 --> PgSelect109 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 - PgSelect18[["PgSelect[18∈0] ➊
ᐸpersonᐳ"]]:::plan - Object10 & Constant115 --> PgSelect18 - PgSelect48[["PgSelect[48∈0] ➊
ᐸpostᐳ"]]:::plan - Object10 & Constant115 --> PgSelect48 - PgSelect76[["PgSelect[76∈0] ➊
ᐸpersonᐳ"]]:::plan - Constant118{{"Constant[118∈0] ➊
ᐸ0ᐳ"}}:::plan - Object10 & Constant118 --> PgSelect76 - PgSelect108[["PgSelect[108∈0] ➊
ᐸpostᐳ"]]:::plan - Object10 & Constant116 --> PgSelect108 - PgSelect7[["PgSelect[7∈0] ➊
ᐸpersonᐳ"]]:::plan - Object10 --> PgSelect7 + __InputObject46{{"__InputObject[46∈0] ➊"}}:::plan + Constant117 --> __InputObject46 + __InputObject57{{"__InputObject[57∈0] ➊"}}:::plan + Constant117 --> __InputObject57 + __InputObject96{{"__InputObject[96∈0] ➊"}}:::plan + Constant97{{"Constant[97∈0] ➊
ᐸnullᐳ"}}:::plan + Constant97 --> __InputObject96 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 @@ -38,32 +56,27 @@ graph TD PgSelect7 --> PgSelectRows11 PgSelectRows20[["PgSelectRows[20∈0] ➊"]]:::plan PgSelect18 --> PgSelectRows20 - PgSelect28[["PgSelect[28∈0] ➊
ᐸpersonᐳ"]]:::plan - Object10 --> PgSelect28 PgSelectRows30[["PgSelectRows[30∈0] ➊"]]:::plan - PgSelect28 --> PgSelectRows30 - PgSelect38[["PgSelect[38∈0] ➊
ᐸpersonᐳ"]]:::plan - Object10 --> PgSelect38 + PgSelect27 --> PgSelectRows30 PgSelectRows40[["PgSelectRows[40∈0] ➊"]]:::plan - PgSelect38 --> PgSelectRows40 - PgSelectRows50[["PgSelectRows[50∈0] ➊"]]:::plan - PgSelect48 --> PgSelectRows50 - PgSelectRows60[["PgSelectRows[60∈0] ➊"]]:::plan - PgSelect58 --> PgSelectRows60 - PgSelectRows69[["PgSelectRows[69∈0] ➊"]]:::plan - PgSelect67 --> PgSelectRows69 - PgSelectRows78[["PgSelectRows[78∈0] ➊"]]:::plan - PgSelect76 --> PgSelectRows78 - PgSelect86[["PgSelect[86∈0] ➊
ᐸpersonᐳ"]]:::plan - Object10 --> PgSelect86 - PgSelectRows88[["PgSelectRows[88∈0] ➊"]]:::plan - PgSelect86 --> PgSelectRows88 - PgSelect96[["PgSelect[96∈0] ➊
ᐸpersonᐳ"]]:::plan - Object10 --> PgSelect96 - PgSelectRows98[["PgSelectRows[98∈0] ➊"]]:::plan - PgSelect96 --> PgSelectRows98 - PgSelectRows110[["PgSelectRows[110∈0] ➊"]]:::plan - PgSelect108 --> PgSelectRows110 + PgSelect37 --> PgSelectRows40 + __InputObject46 --> ApplyInput50 + PgSelectRows51[["PgSelectRows[51∈0] ➊"]]:::plan + PgSelect48 --> PgSelectRows51 + __InputObject57 --> ApplyInput61 + PgSelectRows62[["PgSelectRows[62∈0] ➊"]]:::plan + PgSelect59 --> PgSelectRows62 + PgSelectRows71[["PgSelectRows[71∈0] ➊"]]:::plan + PgSelect69 --> PgSelectRows71 + PgSelectRows80[["PgSelectRows[80∈0] ➊"]]:::plan + PgSelect78 --> PgSelectRows80 + PgSelectRows90[["PgSelectRows[90∈0] ➊"]]:::plan + PgSelect87 --> PgSelectRows90 + __InputObject96 --> ApplyInput100 + PgSelectRows101[["PgSelectRows[101∈0] ➊"]]:::plan + PgSelect98 --> PgSelectRows101 + PgSelectRows112[["PgSelectRows[112∈0] ➊"]]:::plan + PgSelect109 --> PgSelectRows112 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan __Item12[/"__Item[12∈1]
ᐸ11ᐳ"\]:::itemplan PgSelectRows11 ==> __Item12 @@ -105,77 +118,77 @@ graph TD PgSelectSingle42 --> PgClassExpression44 PgClassExpression45{{"PgClassExpression[45∈4]
ᐸ__person__.”email”ᐳ"}}:::plan PgSelectSingle42 --> PgClassExpression45 - __Item51[/"__Item[51∈5]
ᐸ50ᐳ"\]:::itemplan - PgSelectRows50 ==> __Item51 - PgSelectSingle52{{"PgSelectSingle[52∈5]
ᐸpostᐳ"}}:::plan - __Item51 --> PgSelectSingle52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression53 - PgClassExpression54{{"PgClassExpression[54∈5]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle52 --> PgClassExpression54 - __Item61[/"__Item[61∈6]
ᐸ60ᐳ"\]:::itemplan - PgSelectRows60 ==> __Item61 - PgSelectSingle62{{"PgSelectSingle[62∈6]
ᐸpostᐳ"}}:::plan - __Item61 --> PgSelectSingle62 - PgClassExpression63{{"PgClassExpression[63∈6]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle62 --> PgClassExpression63 - PgClassExpression64{{"PgClassExpression[64∈6]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle62 --> PgClassExpression64 - __Item70[/"__Item[70∈7]
ᐸ69ᐳ"\]:::itemplan - PgSelectRows69 ==> __Item70 - PgSelectSingle71{{"PgSelectSingle[71∈7]
ᐸpersonᐳ"}}:::plan - __Item70 --> PgSelectSingle71 - PgClassExpression72{{"PgClassExpression[72∈7]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle71 --> PgClassExpression72 - PgClassExpression73{{"PgClassExpression[73∈7]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle71 --> PgClassExpression73 - PgClassExpression74{{"PgClassExpression[74∈7]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle71 --> PgClassExpression74 - __Item79[/"__Item[79∈8]
ᐸ78ᐳ"\]:::itemplan - PgSelectRows78 ==> __Item79 - PgSelectSingle80{{"PgSelectSingle[80∈8]
ᐸpersonᐳ"}}:::plan - __Item79 --> PgSelectSingle80 - PgClassExpression81{{"PgClassExpression[81∈8]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle80 --> PgClassExpression81 - PgClassExpression82{{"PgClassExpression[82∈8]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle80 --> PgClassExpression82 - PgClassExpression83{{"PgClassExpression[83∈8]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle80 --> PgClassExpression83 - __Item89[/"__Item[89∈9]
ᐸ88ᐳ"\]:::itemplan - PgSelectRows88 ==> __Item89 - PgSelectSingle90{{"PgSelectSingle[90∈9]
ᐸpersonᐳ"}}:::plan - __Item89 --> PgSelectSingle90 - PgClassExpression91{{"PgClassExpression[91∈9]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression91 - PgClassExpression92{{"PgClassExpression[92∈9]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression92 - PgClassExpression93{{"PgClassExpression[93∈9]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression93 - __Item99[/"__Item[99∈10]
ᐸ98ᐳ"\]:::itemplan - PgSelectRows98 ==> __Item99 - PgSelectSingle100{{"PgSelectSingle[100∈10]
ᐸpersonᐳ"}}:::plan - __Item99 --> PgSelectSingle100 - PgClassExpression101{{"PgClassExpression[101∈10]
ᐸ__person__.”id”ᐳ"}}:::plan - PgSelectSingle100 --> PgClassExpression101 - PgClassExpression102{{"PgClassExpression[102∈10]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle100 --> PgClassExpression102 - PgClassExpression103{{"PgClassExpression[103∈10]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle100 --> PgClassExpression103 - __Item111[/"__Item[111∈11]
ᐸ110ᐳ"\]:::itemplan - PgSelectRows110 ==> __Item111 - PgSelectSingle112{{"PgSelectSingle[112∈11]
ᐸpostᐳ"}}:::plan - __Item111 --> PgSelectSingle112 - PgClassExpression113{{"PgClassExpression[113∈11]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle112 --> PgClassExpression113 - PgClassExpression114{{"PgClassExpression[114∈11]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle112 --> PgClassExpression114 + __Item52[/"__Item[52∈5]
ᐸ51ᐳ"\]:::itemplan + PgSelectRows51 ==> __Item52 + PgSelectSingle53{{"PgSelectSingle[53∈5]
ᐸpostᐳ"}}:::plan + __Item52 --> PgSelectSingle53 + PgClassExpression54{{"PgClassExpression[54∈5]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression54 + PgClassExpression55{{"PgClassExpression[55∈5]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle53 --> PgClassExpression55 + __Item63[/"__Item[63∈6]
ᐸ62ᐳ"\]:::itemplan + PgSelectRows62 ==> __Item63 + PgSelectSingle64{{"PgSelectSingle[64∈6]
ᐸpostᐳ"}}:::plan + __Item63 --> PgSelectSingle64 + PgClassExpression65{{"PgClassExpression[65∈6]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle64 --> PgClassExpression65 + PgClassExpression66{{"PgClassExpression[66∈6]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle64 --> PgClassExpression66 + __Item72[/"__Item[72∈7]
ᐸ71ᐳ"\]:::itemplan + PgSelectRows71 ==> __Item72 + PgSelectSingle73{{"PgSelectSingle[73∈7]
ᐸpersonᐳ"}}:::plan + __Item72 --> PgSelectSingle73 + PgClassExpression74{{"PgClassExpression[74∈7]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle73 --> PgClassExpression74 + PgClassExpression75{{"PgClassExpression[75∈7]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle73 --> PgClassExpression75 + PgClassExpression76{{"PgClassExpression[76∈7]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle73 --> PgClassExpression76 + __Item81[/"__Item[81∈8]
ᐸ80ᐳ"\]:::itemplan + PgSelectRows80 ==> __Item81 + PgSelectSingle82{{"PgSelectSingle[82∈8]
ᐸpersonᐳ"}}:::plan + __Item81 --> PgSelectSingle82 + PgClassExpression83{{"PgClassExpression[83∈8]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle82 --> PgClassExpression83 + PgClassExpression84{{"PgClassExpression[84∈8]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle82 --> PgClassExpression84 + PgClassExpression85{{"PgClassExpression[85∈8]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle82 --> PgClassExpression85 + __Item91[/"__Item[91∈9]
ᐸ90ᐳ"\]:::itemplan + PgSelectRows90 ==> __Item91 + PgSelectSingle92{{"PgSelectSingle[92∈9]
ᐸpersonᐳ"}}:::plan + __Item91 --> PgSelectSingle92 + PgClassExpression93{{"PgClassExpression[93∈9]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle92 --> PgClassExpression93 + PgClassExpression94{{"PgClassExpression[94∈9]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle92 --> PgClassExpression94 + PgClassExpression95{{"PgClassExpression[95∈9]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle92 --> PgClassExpression95 + __Item102[/"__Item[102∈10]
ᐸ101ᐳ"\]:::itemplan + PgSelectRows101 ==> __Item102 + PgSelectSingle103{{"PgSelectSingle[103∈10]
ᐸpersonᐳ"}}:::plan + __Item102 --> PgSelectSingle103 + PgClassExpression104{{"PgClassExpression[104∈10]
ᐸ__person__.”id”ᐳ"}}:::plan + PgSelectSingle103 --> PgClassExpression104 + PgClassExpression105{{"PgClassExpression[105∈10]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle103 --> PgClassExpression105 + PgClassExpression106{{"PgClassExpression[106∈10]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle103 --> PgClassExpression106 + __Item113[/"__Item[113∈11]
ᐸ112ᐳ"\]:::itemplan + PgSelectRows112 ==> __Item113 + PgSelectSingle114{{"PgSelectSingle[114∈11]
ᐸpostᐳ"}}:::plan + __Item113 --> PgSelectSingle114 + PgClassExpression115{{"PgClassExpression[115∈11]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle114 --> PgClassExpression115 + PgClassExpression116{{"PgClassExpression[116∈11]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle114 --> PgClassExpression116 %% define steps subgraph "Buckets for queries/v4/simple-collections" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 115, 116, 117, 118, 10
2: 7, 18, 28, 38, 48, 58, 67, 76, 86, 96, 108
3: 11, 20, 30, 40, 50, 60, 69, 78, 88, 98, 110"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 97, 117, 118, 119, 120, 10, 46, 50, 57, 61, 96, 100
2: 7, 18, 27, 37, 48, 59, 69, 78, 87, 98, 109
3: 11, 20, 30, 40, 51, 62, 71, 80, 90, 101, 112"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11,PgSelect18,PgSelectRows20,PgSelect28,PgSelectRows30,PgSelect38,PgSelectRows40,PgSelect48,PgSelectRows50,PgSelect58,PgSelectRows60,PgSelect67,PgSelectRows69,PgSelect76,PgSelectRows78,PgSelect86,PgSelectRows88,PgSelect96,PgSelectRows98,PgSelect108,PgSelectRows110,Constant115,Constant116,Constant117,Constant118 bucket0 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11,PgSelect18,PgSelectRows20,PgSelect27,PgSelectRows30,PgSelect37,PgSelectRows40,__InputObject46,PgSelect48,ApplyInput50,PgSelectRows51,__InputObject57,PgSelect59,ApplyInput61,PgSelectRows62,PgSelect69,PgSelectRows71,PgSelect78,PgSelectRows80,PgSelect87,PgSelectRows90,__InputObject96,Constant97,PgSelect98,ApplyInput100,PgSelectRows101,PgSelect109,PgSelectRows112,Constant117,Constant118,Constant119,Constant120 bucket0 Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ11ᐳ[12]"):::bucket classDef bucket1 stroke:#00bfff class Bucket1,__Item12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgClassExpression16 bucket1 @@ -188,26 +201,26 @@ graph TD Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ40ᐳ[41]"):::bucket classDef bucket4 stroke:#0000ff class Bucket4,__Item41,PgSelectSingle42,PgClassExpression43,PgClassExpression44,PgClassExpression45 bucket4 - Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ50ᐳ[51]"):::bucket + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ51ᐳ[52]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item51,PgSelectSingle52,PgClassExpression53,PgClassExpression54 bucket5 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ60ᐳ[61]"):::bucket + class Bucket5,__Item52,PgSelectSingle53,PgClassExpression54,PgClassExpression55 bucket5 + Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ62ᐳ[63]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,__Item61,PgSelectSingle62,PgClassExpression63,PgClassExpression64 bucket6 - Bucket7("Bucket 7 (listItem)

ROOT __Item{7}ᐸ69ᐳ[70]"):::bucket + class Bucket6,__Item63,PgSelectSingle64,PgClassExpression65,PgClassExpression66 bucket6 + Bucket7("Bucket 7 (listItem)

ROOT __Item{7}ᐸ71ᐳ[72]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,__Item70,PgSelectSingle71,PgClassExpression72,PgClassExpression73,PgClassExpression74 bucket7 - Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ78ᐳ[79]"):::bucket + class Bucket7,__Item72,PgSelectSingle73,PgClassExpression74,PgClassExpression75,PgClassExpression76 bucket7 + Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ80ᐳ[81]"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,__Item79,PgSelectSingle80,PgClassExpression81,PgClassExpression82,PgClassExpression83 bucket8 - Bucket9("Bucket 9 (listItem)

ROOT __Item{9}ᐸ88ᐳ[89]"):::bucket + class Bucket8,__Item81,PgSelectSingle82,PgClassExpression83,PgClassExpression84,PgClassExpression85 bucket8 + Bucket9("Bucket 9 (listItem)

ROOT __Item{9}ᐸ90ᐳ[91]"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9,__Item89,PgSelectSingle90,PgClassExpression91,PgClassExpression92,PgClassExpression93 bucket9 - Bucket10("Bucket 10 (listItem)

ROOT __Item{10}ᐸ98ᐳ[99]"):::bucket + class Bucket9,__Item91,PgSelectSingle92,PgClassExpression93,PgClassExpression94,PgClassExpression95 bucket9 + Bucket10("Bucket 10 (listItem)

ROOT __Item{10}ᐸ101ᐳ[102]"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,__Item99,PgSelectSingle100,PgClassExpression101,PgClassExpression102,PgClassExpression103 bucket10 - Bucket11("Bucket 11 (listItem)

ROOT __Item{11}ᐸ110ᐳ[111]"):::bucket + class Bucket10,__Item102,PgSelectSingle103,PgClassExpression104,PgClassExpression105,PgClassExpression106 bucket10 + Bucket11("Bucket 11 (listItem)

ROOT __Item{11}ᐸ112ᐳ[113]"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11,__Item111,PgSelectSingle112,PgClassExpression113,PgClassExpression114 bucket11 + class Bucket11,__Item113,PgSelectSingle114,PgClassExpression115,PgClassExpression116 bucket11 Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 & Bucket9 & Bucket10 & Bucket11 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/simple-procedure-computed-fields.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/simple-procedure-computed-fields.mermaid index 7b776fc30d..d0211aead4 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/simple-procedure-computed-fields.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/simple-procedure-computed-fields.mermaid @@ -9,71 +9,118 @@ graph TD %% plan dependencies + PgSelect240[["PgSelect[240∈0] ➊
ᐸpersonᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection238{{"Connection[238∈0] ➊
ᐸ236ᐳ"}}:::plan + Object10 -->|rejectNull| PgSelect240 + Connection238 --> PgSelect240 + PgSelect7[["PgSelect[7∈0] ➊
ᐸpersonᐳ"]]:::plan + Object10 --> PgSelect7 + Connection23{{"Connection[23∈0] ➊
ᐸ18ᐳ"}}:::plan + Connection38{{"Connection[38∈0] ➊
ᐸ33ᐳ"}}:::plan + Constant436{{"Constant[436∈0] ➊
ᐸ1ᐳ"}}:::plan + Constant436 --> Connection38 + Connection51{{"Connection[51∈0] ➊
ᐸ49ᐳ"}}:::plan + Constant437{{"Constant[437∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant437 --> Connection51 + Connection69{{"Connection[69∈0] ➊
ᐸ64ᐳ"}}:::plan + Constant436 --> Connection69 + Connection104{{"Connection[104∈0] ➊
ᐸ99ᐳ"}}:::plan + Constant436 --> Connection104 + Connection126{{"Connection[126∈0] ➊
ᐸ124ᐳ"}}:::plan + Connection145{{"Connection[145∈0] ➊
ᐸ140ᐳ"}}:::plan + Constant436 --> Connection145 + Connection182{{"Connection[182∈0] ➊
ᐸ177ᐳ"}}:::plan + Constant436 --> Connection182 + Connection202{{"Connection[202∈0] ➊
ᐸ200ᐳ"}}:::plan + Connection213{{"Connection[213∈0] ➊
ᐸ211ᐳ"}}:::plan + Connection252{{"Connection[252∈0] ➊
ᐸ248ᐳ"}}:::plan + Constant437 --> Connection252 + Connection270{{"Connection[270∈0] ➊
ᐸ265ᐳ"}}:::plan + Constant436 --> Connection270 + Connection305{{"Connection[305∈0] ➊
ᐸ300ᐳ"}}:::plan + Constant436 --> Connection305 + Connection327{{"Connection[327∈0] ➊
ᐸ325ᐳ"}}:::plan + Connection346{{"Connection[346∈0] ➊
ᐸ341ᐳ"}}:::plan + Constant436 --> Connection346 + Connection383{{"Connection[383∈0] ➊
ᐸ378ᐳ"}}:::plan + Constant436 --> Connection383 + Connection403{{"Connection[403∈0] ➊
ᐸ401ᐳ"}}:::plan + Connection414{{"Connection[414∈0] ➊
ᐸ412ᐳ"}}:::plan Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 - PgSelect7[["PgSelect[7∈0] ➊
ᐸpersonᐳ"]]:::plan - Object10 --> PgSelect7 + __InputObject122{{"__InputObject[122∈0] ➊"}}:::plan + Constant438{{"Constant[438∈0] ➊
ᐸ'Large bet on myself in round one.'ᐳ"}}:::plan + Constant438 --> __InputObject122 + __InputObject162{{"__InputObject[162∈0] ➊"}}:::plan + Constant438 --> __InputObject162 + __InputObject323{{"__InputObject[323∈0] ➊"}}:::plan + Constant438 --> __InputObject323 + __InputObject363{{"__InputObject[363∈0] ➊"}}:::plan + Constant438 --> __InputObject363 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 PgSelectRows11[["PgSelectRows[11∈0] ➊"]]:::plan PgSelect7 --> PgSelectRows11 - Connection36{{"Connection[36∈0] ➊
ᐸ32ᐳ"}}:::plan - Constant406{{"Constant[406∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant406 --> Connection36 - Connection50{{"Connection[50∈0] ➊
ᐸ48ᐳ"}}:::plan - Constant407{{"Constant[407∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant407 --> Connection50 - Connection65{{"Connection[65∈0] ➊
ᐸ61ᐳ"}}:::plan - Constant406 --> Connection65 - Connection97{{"Connection[97∈0] ➊
ᐸ93ᐳ"}}:::plan - Constant406 --> Connection97 - Connection134{{"Connection[134∈0] ➊
ᐸ130ᐳ"}}:::plan - Constant406 --> Connection134 - Connection167{{"Connection[167∈0] ➊
ᐸ163ᐳ"}}:::plan - Constant406 --> Connection167 - Connection237{{"Connection[237∈0] ➊
ᐸ233ᐳ"}}:::plan - Constant407 --> Connection237 - Connection252{{"Connection[252∈0] ➊
ᐸ248ᐳ"}}:::plan - Constant406 --> Connection252 - Connection284{{"Connection[284∈0] ➊
ᐸ280ᐳ"}}:::plan - Constant406 --> Connection284 - Connection321{{"Connection[321∈0] ➊
ᐸ317ᐳ"}}:::plan - Constant406 --> Connection321 - Connection354{{"Connection[354∈0] ➊
ᐸ350ᐳ"}}:::plan - Constant406 --> Connection354 + PgFromExpression59{{"PgFromExpression[59∈0] ➊"}}:::plan + PgFromExpression94{{"PgFromExpression[94∈0] ➊"}}:::plan + ApplyInput128{{"ApplyInput[128∈0] ➊"}}:::plan + __InputObject122 --> ApplyInput128 + PgFromExpression135{{"PgFromExpression[135∈0] ➊"}}:::plan + ApplyInput166{{"ApplyInput[166∈0] ➊"}}:::plan + __InputObject162 --> ApplyInput166 + PgFromExpression172{{"PgFromExpression[172∈0] ➊"}}:::plan + PgSelectRows241[["PgSelectRows[241∈0] ➊"]]:::plan + PgSelect240 --> PgSelectRows241 + PgFromExpression260{{"PgFromExpression[260∈0] ➊"}}:::plan + PgFromExpression295{{"PgFromExpression[295∈0] ➊"}}:::plan + ApplyInput329{{"ApplyInput[329∈0] ➊"}}:::plan + __InputObject323 --> ApplyInput329 + PgFromExpression336{{"PgFromExpression[336∈0] ➊"}}:::plan + ApplyInput367{{"ApplyInput[367∈0] ➊"}}:::plan + __InputObject363 --> ApplyInput367 + PgFromExpression373{{"PgFromExpression[373∈0] ➊"}}:::plan __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection22{{"Connection[22∈0] ➊
ᐸ18ᐳ"}}:::plan - Connection119{{"Connection[119∈0] ➊
ᐸ117ᐳ"}}:::plan - Connection187{{"Connection[187∈0] ➊
ᐸ185ᐳ"}}:::plan - Connection198{{"Connection[198∈0] ➊
ᐸ196ᐳ"}}:::plan - Connection223{{"Connection[223∈0] ➊
ᐸ221ᐳ"}}:::plan - Connection306{{"Connection[306∈0] ➊
ᐸ304ᐳ"}}:::plan - Connection374{{"Connection[374∈0] ➊
ᐸ372ᐳ"}}:::plan - Connection385{{"Connection[385∈0] ➊
ᐸ383ᐳ"}}:::plan - Constant408{{"Constant[408∈0] ➊
ᐸ'Large bet on myself in round one.'ᐳ"}}:::plan - PgSelect51[["PgSelect[51∈1]
ᐸpostᐳ"]]:::plan - PgClassExpression44{{"PgClassExpression[44∈1]
ᐸ__person__.”id”ᐳ"}}:::plan - Object10 & PgClassExpression44 & Connection50 & Constant407 --> PgSelect51 - PgSelect120[["PgSelect[120∈1]
ᐸpostᐳ"]]:::plan - Object10 & PgClassExpression44 & Constant408 & Connection119 --> PgSelect120 - PgSelect23[["PgSelect[23∈1]
ᐸperson_friendsᐳ"]]:::plan + PgFromExpression22{{"PgFromExpression[22∈0] ➊"}}:::plan + PgFromExpression37{{"PgFromExpression[37∈0] ➊"}}:::plan + PgFromExpression68{{"PgFromExpression[68∈0] ➊"}}:::plan + PgFromExpression80{{"PgFromExpression[80∈0] ➊"}}:::plan + PgFromExpression103{{"PgFromExpression[103∈0] ➊"}}:::plan + PgFromExpression115{{"PgFromExpression[115∈0] ➊"}}:::plan + PgFromExpression144{{"PgFromExpression[144∈0] ➊"}}:::plan + PgFromExpression156{{"PgFromExpression[156∈0] ➊"}}:::plan + PgFromExpression181{{"PgFromExpression[181∈0] ➊"}}:::plan + PgFromExpression193{{"PgFromExpression[193∈0] ➊"}}:::plan + PgFromExpression269{{"PgFromExpression[269∈0] ➊"}}:::plan + PgFromExpression281{{"PgFromExpression[281∈0] ➊"}}:::plan + PgFromExpression304{{"PgFromExpression[304∈0] ➊"}}:::plan + PgFromExpression316{{"PgFromExpression[316∈0] ➊"}}:::plan + PgFromExpression345{{"PgFromExpression[345∈0] ➊"}}:::plan + PgFromExpression357{{"PgFromExpression[357∈0] ➊"}}:::plan + PgFromExpression382{{"PgFromExpression[382∈0] ➊"}}:::plan + PgFromExpression394{{"PgFromExpression[394∈0] ➊"}}:::plan + PgSelect129[["PgSelect[129∈1]
ᐸpostᐳ"]]:::plan + PgClassExpression46{{"PgClassExpression[46∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + Object10 & PgClassExpression46 & ApplyInput128 & Connection126 & PgFromExpression135 --> PgSelect129 + PgSelect24[["PgSelect[24∈1]
ᐸperson_friendsᐳ"]]:::plan PgClassExpression15{{"PgClassExpression[15∈1]
ᐸ__person__ᐳ"}}:::plan - Object10 & PgClassExpression15 & Connection22 --> PgSelect23 - PgSelect82[["PgSelect[82∈1]
ᐸpostᐳ"]]:::plan - Object10 & PgClassExpression44 & Constant407 --> PgSelect82 - PgSelect152[["PgSelect[152∈1]
ᐸpostᐳ"]]:::plan - Object10 & PgClassExpression44 & Constant408 --> PgSelect152 - PgSelect188[["PgSelect[188∈1]
ᐸcompound_keyᐳ"]]:::plan - Object10 & PgClassExpression44 & Connection187 --> PgSelect188 - PgSelect199[["PgSelect[199∈1]
ᐸcompound_keyᐳ"]]:::plan - Object10 & PgClassExpression44 & Connection198 --> PgSelect199 - PgSelect205[["PgSelect[205∈1]
ᐸcompound_keyᐳ"]]:::plan - Object10 & PgClassExpression44 --> PgSelect205 - PgSelect212[["PgSelect[212∈1]
ᐸcompound_keyᐳ"]]:::plan - Object10 & PgClassExpression44 --> PgSelect212 + Object10 & PgClassExpression15 & PgFromExpression22 & Connection23 --> PgSelect24 + PgSelect53[["PgSelect[53∈1]
ᐸpostᐳ"]]:::plan + Object10 & PgClassExpression46 & Connection51 & Constant437 & PgFromExpression59 --> PgSelect53 + PgSelect164[["PgSelect[164∈1]
ᐸpostᐳ"]]:::plan + Object10 & PgClassExpression46 & ApplyInput166 & PgFromExpression172 --> PgSelect164 + PgSelect204[["PgSelect[204∈1]
ᐸcompound_keyᐳ"]]:::plan + Object10 & PgClassExpression46 & Connection202 --> PgSelect204 + PgSelect215[["PgSelect[215∈1]
ᐸcompound_keyᐳ"]]:::plan + Object10 & PgClassExpression46 & Connection213 --> PgSelect215 + PgSelect87[["PgSelect[87∈1]
ᐸpostᐳ"]]:::plan + Object10 & PgClassExpression46 & Constant437 & PgFromExpression94 --> PgSelect87 + PgSelect221[["PgSelect[221∈1]
ᐸcompound_keyᐳ"]]:::plan + Object10 & PgClassExpression46 --> PgSelect221 + PgSelect228[["PgSelect[228∈1]
ᐸcompound_keyᐳ"]]:::plan + Object10 & PgClassExpression46 --> PgSelect228 __Item12[/"__Item[12∈1]
ᐸ11ᐳ"\]:::itemplan PgSelectRows11 ==> __Item12 PgSelectSingle13{{"PgSelectSingle[13∈1]
ᐸpersonᐳ"}}:::plan @@ -83,648 +130,532 @@ graph TD PgSelectSingle13 --> PgClassExpression15 PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ”c”.”perso..._person__)ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression16 - PgSelectRows24[["PgSelectRows[24∈1]"]]:::plan - PgSelect23 --> PgSelectRows24 - PgSelectSingle13 --> PgClassExpression44 - PgSelectRows52[["PgSelectRows[52∈1]"]]:::plan - PgSelect51 --> PgSelectRows52 - PgSelectRows84[["PgSelectRows[84∈1]"]]:::plan - PgSelect82 --> PgSelectRows84 - PgSelectRows121[["PgSelectRows[121∈1]"]]:::plan - PgSelect120 --> PgSelectRows121 - PgSelectRows154[["PgSelectRows[154∈1]"]]:::plan - PgSelect152 --> PgSelectRows154 - PgSelectRows189[["PgSelectRows[189∈1]"]]:::plan - PgSelect188 --> PgSelectRows189 - PgSelectRows200[["PgSelectRows[200∈1]"]]:::plan - PgSelect199 --> PgSelectRows200 - PgSelectRows207[["PgSelectRows[207∈1]"]]:::plan - PgSelect205 --> PgSelectRows207 - PgSelectRows214[["PgSelectRows[214∈1]"]]:::plan - PgSelect212 --> PgSelectRows214 - __Item25[/"__Item[25∈2]
ᐸ24ᐳ"\]:::itemplan - PgSelectRows24 ==> __Item25 - PgSelectSingle26{{"PgSelectSingle[26∈2]
ᐸperson_friendsᐳ"}}:::plan - __Item25 --> PgSelectSingle26 - PgSelect37[["PgSelect[37∈3]
ᐸperson_friendsᐳ"]]:::plan - PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ__person_friends__ᐳ"}}:::plan - Object10 & PgClassExpression28 & Connection36 & Constant406 --> PgSelect37 - PgClassExpression27{{"PgClassExpression[27∈3]
ᐸ__person_f...full_name”ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression27 - PgSelectSingle26 --> PgClassExpression28 - PgClassExpression29{{"PgClassExpression[29∈3]
ᐸ”c”.”perso...friends__)ᐳ"}}:::plan - PgSelectSingle26 --> PgClassExpression29 - PgSelectRows38[["PgSelectRows[38∈3]"]]:::plan - PgSelect37 --> PgSelectRows38 - __Item39[/"__Item[39∈4]
ᐸ38ᐳ"\]:::itemplan - PgSelectRows38 ==> __Item39 - PgSelectSingle40{{"PgSelectSingle[40∈4]
ᐸperson_friendsᐳ"}}:::plan - __Item39 --> PgSelectSingle40 - PgClassExpression41{{"PgClassExpression[41∈5]
ᐸ__person_f...full_name”ᐳ"}}:::plan - PgSelectSingle40 --> PgClassExpression41 - PgClassExpression43{{"PgClassExpression[43∈5]
ᐸ”c”.”perso...friends__)ᐳ"}}:::plan - PgSelectSingle40 --> PgClassExpression43 - __Item53[/"__Item[53∈6]
ᐸ52ᐳ"\]:::itemplan - PgSelectRows52 ==> __Item53 - PgSelectSingle54{{"PgSelectSingle[54∈6]
ᐸpostᐳ"}}:::plan - __Item53 --> PgSelectSingle54 - PgSelect66[["PgSelect[66∈7]
ᐸpost_computed_interval_setᐳ"]]:::plan - PgClassExpression56{{"PgClassExpression[56∈7]
ᐸ__post__ᐳ"}}:::plan - Object10 & PgClassExpression56 & Connection65 & Constant406 --> PgSelect66 - PgSelect74[["PgSelect[74∈7]
ᐸpost_computed_interval_setᐳ"]]:::plan - Object10 & PgClassExpression56 & Constant406 --> PgSelect74 - PgClassExpression55{{"PgClassExpression[55∈7]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle54 --> PgClassExpression55 - PgSelectSingle54 --> PgClassExpression56 - PgClassExpression57{{"PgClassExpression[57∈7]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan - PgSelectSingle54 --> PgClassExpression57 - PgClassExpression58{{"PgClassExpression[58∈7]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle54 --> PgClassExpression58 - PgSelectRows67[["PgSelectRows[67∈7]"]]:::plan - PgSelect66 --> PgSelectRows67 - PgSelectRows76[["PgSelectRows[76∈7]"]]:::plan - PgSelect74 --> PgSelectRows76 - __Item68[/"__Item[68∈8]
ᐸ67ᐳ"\]:::itemplan - PgSelectRows67 ==> __Item68 - PgSelectSingle69{{"PgSelectSingle[69∈8]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item68 --> PgSelectSingle69 - PgClassExpression70{{"PgClassExpression[70∈8]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle69 --> PgClassExpression70 - __Item77[/"__Item[77∈10]
ᐸ76ᐳ"\]:::itemplan - PgSelectRows76 ==> __Item77 - PgSelectSingle78{{"PgSelectSingle[78∈10]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item77 --> PgSelectSingle78 - PgClassExpression79{{"PgClassExpression[79∈10]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle78 --> PgClassExpression79 - PgSelect98[["PgSelect[98∈12]
ᐸpost_computed_interval_setᐳ"]]:::plan - PgClassExpression88{{"PgClassExpression[88∈12]
ᐸ__post__ᐳ"}}:::plan - Object10 & PgClassExpression88 & Connection97 & Constant406 --> PgSelect98 - PgSelect106[["PgSelect[106∈12]
ᐸpost_computed_interval_setᐳ"]]:::plan - Object10 & PgClassExpression88 & Constant406 --> PgSelect106 - __Item85[/"__Item[85∈12]
ᐸ84ᐳ"\]:::itemplan - PgSelectRows84 ==> __Item85 - PgSelectSingle86{{"PgSelectSingle[86∈12]
ᐸpostᐳ"}}:::plan - __Item85 --> PgSelectSingle86 - PgClassExpression87{{"PgClassExpression[87∈12]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle86 --> PgClassExpression87 - PgSelectSingle86 --> PgClassExpression88 - PgClassExpression89{{"PgClassExpression[89∈12]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan - PgSelectSingle86 --> PgClassExpression89 - PgClassExpression90{{"PgClassExpression[90∈12]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle86 --> PgClassExpression90 - PgSelectRows99[["PgSelectRows[99∈12]"]]:::plan - PgSelect98 --> PgSelectRows99 - PgSelectRows108[["PgSelectRows[108∈12]"]]:::plan - PgSelect106 --> PgSelectRows108 - __Item100[/"__Item[100∈13]
ᐸ99ᐳ"\]:::itemplan - PgSelectRows99 ==> __Item100 - PgSelectSingle101{{"PgSelectSingle[101∈13]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item100 --> PgSelectSingle101 - PgClassExpression102{{"PgClassExpression[102∈13]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle101 --> PgClassExpression102 - __Item109[/"__Item[109∈15]
ᐸ108ᐳ"\]:::itemplan - PgSelectRows108 ==> __Item109 - PgSelectSingle110{{"PgSelectSingle[110∈15]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item109 --> PgSelectSingle110 - PgClassExpression111{{"PgClassExpression[111∈15]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle110 --> PgClassExpression111 - __Item122[/"__Item[122∈17]
ᐸ121ᐳ"\]:::itemplan - PgSelectRows121 ==> __Item122 - PgSelectSingle123{{"PgSelectSingle[123∈17]
ᐸpostᐳ"}}:::plan - __Item122 --> PgSelectSingle123 - PgSelect135[["PgSelect[135∈18]
ᐸpost_computed_interval_setᐳ"]]:::plan - PgClassExpression125{{"PgClassExpression[125∈18]
ᐸ__post__ᐳ"}}:::plan - Object10 & PgClassExpression125 & Connection134 & Constant406 --> PgSelect135 - PgSelect143[["PgSelect[143∈18]
ᐸpost_computed_interval_setᐳ"]]:::plan - Object10 & PgClassExpression125 & Constant406 --> PgSelect143 - PgClassExpression124{{"PgClassExpression[124∈18]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle123 --> PgClassExpression124 - PgSelectSingle123 --> PgClassExpression125 - PgClassExpression126{{"PgClassExpression[126∈18]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan - PgSelectSingle123 --> PgClassExpression126 - PgClassExpression127{{"PgClassExpression[127∈18]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle123 --> PgClassExpression127 - PgSelectRows136[["PgSelectRows[136∈18]"]]:::plan - PgSelect135 --> PgSelectRows136 - PgSelectRows145[["PgSelectRows[145∈18]"]]:::plan - PgSelect143 --> PgSelectRows145 - __Item137[/"__Item[137∈19]
ᐸ136ᐳ"\]:::itemplan - PgSelectRows136 ==> __Item137 - PgSelectSingle138{{"PgSelectSingle[138∈19]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item137 --> PgSelectSingle138 - PgClassExpression139{{"PgClassExpression[139∈19]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle138 --> PgClassExpression139 - __Item146[/"__Item[146∈21]
ᐸ145ᐳ"\]:::itemplan - PgSelectRows145 ==> __Item146 - PgSelectSingle147{{"PgSelectSingle[147∈21]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item146 --> PgSelectSingle147 - PgClassExpression148{{"PgClassExpression[148∈21]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle147 --> PgClassExpression148 - PgSelect168[["PgSelect[168∈23]
ᐸpost_computed_interval_setᐳ"]]:::plan - PgClassExpression158{{"PgClassExpression[158∈23]
ᐸ__post__ᐳ"}}:::plan - Object10 & PgClassExpression158 & Connection167 & Constant406 --> PgSelect168 - PgSelect176[["PgSelect[176∈23]
ᐸpost_computed_interval_setᐳ"]]:::plan - Object10 & PgClassExpression158 & Constant406 --> PgSelect176 - __Item155[/"__Item[155∈23]
ᐸ154ᐳ"\]:::itemplan - PgSelectRows154 ==> __Item155 - PgSelectSingle156{{"PgSelectSingle[156∈23]
ᐸpostᐳ"}}:::plan - __Item155 --> PgSelectSingle156 - PgClassExpression157{{"PgClassExpression[157∈23]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle156 --> PgClassExpression157 - PgSelectSingle156 --> PgClassExpression158 - PgClassExpression159{{"PgClassExpression[159∈23]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan - PgSelectSingle156 --> PgClassExpression159 - PgClassExpression160{{"PgClassExpression[160∈23]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle156 --> PgClassExpression160 - PgSelectRows169[["PgSelectRows[169∈23]"]]:::plan - PgSelect168 --> PgSelectRows169 - PgSelectRows178[["PgSelectRows[178∈23]"]]:::plan - PgSelect176 --> PgSelectRows178 - __Item170[/"__Item[170∈24]
ᐸ169ᐳ"\]:::itemplan - PgSelectRows169 ==> __Item170 - PgSelectSingle171{{"PgSelectSingle[171∈24]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item170 --> PgSelectSingle171 - PgClassExpression172{{"PgClassExpression[172∈24]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle171 --> PgClassExpression172 - __Item179[/"__Item[179∈26]
ᐸ178ᐳ"\]:::itemplan - PgSelectRows178 ==> __Item179 - PgSelectSingle180{{"PgSelectSingle[180∈26]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item179 --> PgSelectSingle180 - PgClassExpression181{{"PgClassExpression[181∈26]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle180 --> PgClassExpression181 - __Item190[/"__Item[190∈28]
ᐸ189ᐳ"\]:::itemplan - PgSelectRows189 ==> __Item190 - PgSelectSingle191{{"PgSelectSingle[191∈28]
ᐸcompound_keyᐳ"}}:::plan - __Item190 --> PgSelectSingle191 - PgClassExpression192{{"PgClassExpression[192∈29]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle191 --> PgClassExpression192 - PgClassExpression193{{"PgClassExpression[193∈29]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle191 --> PgClassExpression193 - __Item201[/"__Item[201∈30]
ᐸ200ᐳ"\]:::itemplan - PgSelectRows200 ==> __Item201 - PgSelectSingle202{{"PgSelectSingle[202∈30]
ᐸcompound_keyᐳ"}}:::plan - __Item201 --> PgSelectSingle202 - PgClassExpression203{{"PgClassExpression[203∈31]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle202 --> PgClassExpression203 - PgClassExpression204{{"PgClassExpression[204∈31]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle202 --> PgClassExpression204 - __Item208[/"__Item[208∈32]
ᐸ207ᐳ"\]:::itemplan - PgSelectRows207 ==> __Item208 - PgSelectSingle209{{"PgSelectSingle[209∈32]
ᐸcompound_keyᐳ"}}:::plan - __Item208 --> PgSelectSingle209 - PgClassExpression210{{"PgClassExpression[210∈32]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle209 --> PgClassExpression210 - PgClassExpression211{{"PgClassExpression[211∈32]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle209 --> PgClassExpression211 - __Item215[/"__Item[215∈33]
ᐸ214ᐳ"\]:::itemplan - PgSelectRows214 ==> __Item215 - PgSelectSingle216{{"PgSelectSingle[216∈33]
ᐸcompound_keyᐳ"}}:::plan - __Item215 --> PgSelectSingle216 - PgClassExpression217{{"PgClassExpression[217∈33]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle216 --> PgClassExpression217 - PgClassExpression218{{"PgClassExpression[218∈33]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle216 --> PgClassExpression218 - PgSelect224[["PgSelect[224∈34] ➊
ᐸpersonᐳ"]]:::plan - Object10 & Connection223 --> PgSelect224 - PgSelectRows225[["PgSelectRows[225∈34] ➊"]]:::plan - PgSelect224 --> PgSelectRows225 - __Item226[/"__Item[226∈35]
ᐸ225ᐳ"\]:::itemplan - PgSelectRows225 ==> __Item226 - PgSelectSingle227{{"PgSelectSingle[227∈35]
ᐸpersonᐳ"}}:::plan - __Item226 --> PgSelectSingle227 - PgSelect238[["PgSelect[238∈36]
ᐸpostᐳ"]]:::plan - PgClassExpression228{{"PgClassExpression[228∈36]
ᐸ__person__.”id”ᐳ"}}:::plan - Object10 & PgClassExpression228 & Connection237 & Constant407 --> PgSelect238 - PgSelect307[["PgSelect[307∈36]
ᐸpostᐳ"]]:::plan - Object10 & PgClassExpression228 & Constant408 & Connection306 --> PgSelect307 - PgSelect269[["PgSelect[269∈36]
ᐸpostᐳ"]]:::plan - Object10 & PgClassExpression228 & Constant407 --> PgSelect269 - PgSelect339[["PgSelect[339∈36]
ᐸpostᐳ"]]:::plan - Object10 & PgClassExpression228 & Constant408 --> PgSelect339 - PgSelect375[["PgSelect[375∈36]
ᐸcompound_keyᐳ"]]:::plan - Object10 & PgClassExpression228 & Connection374 --> PgSelect375 - PgSelect386[["PgSelect[386∈36]
ᐸcompound_keyᐳ"]]:::plan - Object10 & PgClassExpression228 & Connection385 --> PgSelect386 - PgSelect392[["PgSelect[392∈36]
ᐸcompound_keyᐳ"]]:::plan - Object10 & PgClassExpression228 --> PgSelect392 - PgSelect399[["PgSelect[399∈36]
ᐸcompound_keyᐳ"]]:::plan - Object10 & PgClassExpression228 --> PgSelect399 - PgSelectSingle227 --> PgClassExpression228 - PgClassExpression229{{"PgClassExpression[229∈36]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle227 --> PgClassExpression229 - PgSelectRows239[["PgSelectRows[239∈36]"]]:::plan - PgSelect238 --> PgSelectRows239 - PgSelectRows271[["PgSelectRows[271∈36]"]]:::plan - PgSelect269 --> PgSelectRows271 - PgSelectRows308[["PgSelectRows[308∈36]"]]:::plan - PgSelect307 --> PgSelectRows308 - PgSelectRows341[["PgSelectRows[341∈36]"]]:::plan - PgSelect339 --> PgSelectRows341 - PgSelectRows376[["PgSelectRows[376∈36]"]]:::plan - PgSelect375 --> PgSelectRows376 - PgSelectRows387[["PgSelectRows[387∈36]"]]:::plan - PgSelect386 --> PgSelectRows387 - PgSelectRows394[["PgSelectRows[394∈36]"]]:::plan - PgSelect392 --> PgSelectRows394 - PgSelectRows401[["PgSelectRows[401∈36]"]]:::plan - PgSelect399 --> PgSelectRows401 - __Item240[/"__Item[240∈37]
ᐸ239ᐳ"\]:::itemplan - PgSelectRows239 ==> __Item240 - PgSelectSingle241{{"PgSelectSingle[241∈37]
ᐸpostᐳ"}}:::plan - __Item240 --> PgSelectSingle241 - PgSelect253[["PgSelect[253∈38]
ᐸpost_computed_interval_setᐳ"]]:::plan - PgClassExpression243{{"PgClassExpression[243∈38]
ᐸ__post__ᐳ"}}:::plan - Object10 & PgClassExpression243 & Connection252 & Constant406 --> PgSelect253 - PgSelect261[["PgSelect[261∈38]
ᐸpost_computed_interval_setᐳ"]]:::plan - Object10 & PgClassExpression243 & Constant406 --> PgSelect261 - PgClassExpression242{{"PgClassExpression[242∈38]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle241 --> PgClassExpression242 - PgSelectSingle241 --> PgClassExpression243 - PgClassExpression244{{"PgClassExpression[244∈38]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan - PgSelectSingle241 --> PgClassExpression244 - PgClassExpression245{{"PgClassExpression[245∈38]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle241 --> PgClassExpression245 - PgSelectRows254[["PgSelectRows[254∈38]"]]:::plan - PgSelect253 --> PgSelectRows254 - PgSelectRows263[["PgSelectRows[263∈38]"]]:::plan - PgSelect261 --> PgSelectRows263 - __Item255[/"__Item[255∈39]
ᐸ254ᐳ"\]:::itemplan - PgSelectRows254 ==> __Item255 - PgSelectSingle256{{"PgSelectSingle[256∈39]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item255 --> PgSelectSingle256 - PgClassExpression257{{"PgClassExpression[257∈39]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle256 --> PgClassExpression257 - __Item264[/"__Item[264∈41]
ᐸ263ᐳ"\]:::itemplan - PgSelectRows263 ==> __Item264 - PgSelectSingle265{{"PgSelectSingle[265∈41]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item264 --> PgSelectSingle265 - PgClassExpression266{{"PgClassExpression[266∈41]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle265 --> PgClassExpression266 - PgSelect285[["PgSelect[285∈43]
ᐸpost_computed_interval_setᐳ"]]:::plan - PgClassExpression275{{"PgClassExpression[275∈43]
ᐸ__post__ᐳ"}}:::plan - Object10 & PgClassExpression275 & Connection284 & Constant406 --> PgSelect285 - PgSelect293[["PgSelect[293∈43]
ᐸpost_computed_interval_setᐳ"]]:::plan - Object10 & PgClassExpression275 & Constant406 --> PgSelect293 - __Item272[/"__Item[272∈43]
ᐸ271ᐳ"\]:::itemplan - PgSelectRows271 ==> __Item272 - PgSelectSingle273{{"PgSelectSingle[273∈43]
ᐸpostᐳ"}}:::plan - __Item272 --> PgSelectSingle273 - PgClassExpression274{{"PgClassExpression[274∈43]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression274 - PgSelectSingle273 --> PgClassExpression275 - PgClassExpression276{{"PgClassExpression[276∈43]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression276 - PgClassExpression277{{"PgClassExpression[277∈43]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle273 --> PgClassExpression277 - PgSelectRows286[["PgSelectRows[286∈43]"]]:::plan - PgSelect285 --> PgSelectRows286 - PgSelectRows295[["PgSelectRows[295∈43]"]]:::plan - PgSelect293 --> PgSelectRows295 - __Item287[/"__Item[287∈44]
ᐸ286ᐳ"\]:::itemplan - PgSelectRows286 ==> __Item287 - PgSelectSingle288{{"PgSelectSingle[288∈44]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item287 --> PgSelectSingle288 - PgClassExpression289{{"PgClassExpression[289∈44]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle288 --> PgClassExpression289 - __Item296[/"__Item[296∈46]
ᐸ295ᐳ"\]:::itemplan - PgSelectRows295 ==> __Item296 - PgSelectSingle297{{"PgSelectSingle[297∈46]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item296 --> PgSelectSingle297 - PgClassExpression298{{"PgClassExpression[298∈46]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle297 --> PgClassExpression298 - __Item309[/"__Item[309∈48]
ᐸ308ᐳ"\]:::itemplan - PgSelectRows308 ==> __Item309 - PgSelectSingle310{{"PgSelectSingle[310∈48]
ᐸpostᐳ"}}:::plan - __Item309 --> PgSelectSingle310 - PgSelect322[["PgSelect[322∈49]
ᐸpost_computed_interval_setᐳ"]]:::plan - PgClassExpression312{{"PgClassExpression[312∈49]
ᐸ__post__ᐳ"}}:::plan - Object10 & PgClassExpression312 & Connection321 & Constant406 --> PgSelect322 - PgSelect330[["PgSelect[330∈49]
ᐸpost_computed_interval_setᐳ"]]:::plan - Object10 & PgClassExpression312 & Constant406 --> PgSelect330 - PgClassExpression311{{"PgClassExpression[311∈49]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle310 --> PgClassExpression311 - PgSelectSingle310 --> PgClassExpression312 - PgClassExpression313{{"PgClassExpression[313∈49]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan - PgSelectSingle310 --> PgClassExpression313 - PgClassExpression314{{"PgClassExpression[314∈49]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle310 --> PgClassExpression314 - PgSelectRows323[["PgSelectRows[323∈49]"]]:::plan - PgSelect322 --> PgSelectRows323 - PgSelectRows332[["PgSelectRows[332∈49]"]]:::plan - PgSelect330 --> PgSelectRows332 - __Item324[/"__Item[324∈50]
ᐸ323ᐳ"\]:::itemplan - PgSelectRows323 ==> __Item324 - PgSelectSingle325{{"PgSelectSingle[325∈50]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item324 --> PgSelectSingle325 - PgClassExpression326{{"PgClassExpression[326∈50]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle325 --> PgClassExpression326 - __Item333[/"__Item[333∈52]
ᐸ332ᐳ"\]:::itemplan - PgSelectRows332 ==> __Item333 - PgSelectSingle334{{"PgSelectSingle[334∈52]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item333 --> PgSelectSingle334 - PgClassExpression335{{"PgClassExpression[335∈52]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle334 --> PgClassExpression335 - PgSelect355[["PgSelect[355∈54]
ᐸpost_computed_interval_setᐳ"]]:::plan - PgClassExpression345{{"PgClassExpression[345∈54]
ᐸ__post__ᐳ"}}:::plan - Object10 & PgClassExpression345 & Connection354 & Constant406 --> PgSelect355 - PgSelect363[["PgSelect[363∈54]
ᐸpost_computed_interval_setᐳ"]]:::plan - Object10 & PgClassExpression345 & Constant406 --> PgSelect363 - __Item342[/"__Item[342∈54]
ᐸ341ᐳ"\]:::itemplan - PgSelectRows341 ==> __Item342 - PgSelectSingle343{{"PgSelectSingle[343∈54]
ᐸpostᐳ"}}:::plan - __Item342 --> PgSelectSingle343 - PgClassExpression344{{"PgClassExpression[344∈54]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle343 --> PgClassExpression344 - PgSelectSingle343 --> PgClassExpression345 - PgClassExpression346{{"PgClassExpression[346∈54]
ᐸ”a”.”post_...(__post__)ᐳ"}}:::plan - PgSelectSingle343 --> PgClassExpression346 - PgClassExpression347{{"PgClassExpression[347∈54]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle343 --> PgClassExpression347 - PgSelectRows356[["PgSelectRows[356∈54]"]]:::plan - PgSelect355 --> PgSelectRows356 - PgSelectRows365[["PgSelectRows[365∈54]"]]:::plan - PgSelect363 --> PgSelectRows365 - __Item357[/"__Item[357∈55]
ᐸ356ᐳ"\]:::itemplan - PgSelectRows356 ==> __Item357 - PgSelectSingle358{{"PgSelectSingle[358∈55]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item357 --> PgSelectSingle358 - PgClassExpression359{{"PgClassExpression[359∈55]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle358 --> PgClassExpression359 - __Item366[/"__Item[366∈57]
ᐸ365ᐳ"\]:::itemplan - PgSelectRows365 ==> __Item366 - PgSelectSingle367{{"PgSelectSingle[367∈57]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item366 --> PgSelectSingle367 - PgClassExpression368{{"PgClassExpression[368∈57]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle367 --> PgClassExpression368 - __Item377[/"__Item[377∈59]
ᐸ376ᐳ"\]:::itemplan - PgSelectRows376 ==> __Item377 - PgSelectSingle378{{"PgSelectSingle[378∈59]
ᐸcompound_keyᐳ"}}:::plan - __Item377 --> PgSelectSingle378 - PgClassExpression379{{"PgClassExpression[379∈60]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle378 --> PgClassExpression379 - PgClassExpression380{{"PgClassExpression[380∈60]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle378 --> PgClassExpression380 - __Item388[/"__Item[388∈61]
ᐸ387ᐳ"\]:::itemplan - PgSelectRows387 ==> __Item388 - PgSelectSingle389{{"PgSelectSingle[389∈61]
ᐸcompound_keyᐳ"}}:::plan - __Item388 --> PgSelectSingle389 - PgClassExpression390{{"PgClassExpression[390∈62]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle389 --> PgClassExpression390 - PgClassExpression391{{"PgClassExpression[391∈62]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle389 --> PgClassExpression391 - __Item395[/"__Item[395∈63]
ᐸ394ᐳ"\]:::itemplan - PgSelectRows394 ==> __Item395 - PgSelectSingle396{{"PgSelectSingle[396∈63]
ᐸcompound_keyᐳ"}}:::plan - __Item395 --> PgSelectSingle396 - PgClassExpression397{{"PgClassExpression[397∈63]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle396 --> PgClassExpression397 - PgClassExpression398{{"PgClassExpression[398∈63]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle396 --> PgClassExpression398 - __Item402[/"__Item[402∈64]
ᐸ401ᐳ"\]:::itemplan - PgSelectRows401 ==> __Item402 - PgSelectSingle403{{"PgSelectSingle[403∈64]
ᐸcompound_keyᐳ"}}:::plan - __Item402 --> PgSelectSingle403 - PgClassExpression404{{"PgClassExpression[404∈64]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle403 --> PgClassExpression404 - PgClassExpression405{{"PgClassExpression[405∈64]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle403 --> PgClassExpression405 + PgSelectRows25[["PgSelectRows[25∈1]"]]:::plan + PgSelect24 --> PgSelectRows25 + PgSelectSingle13 --> PgClassExpression46 + PgSelectRows54[["PgSelectRows[54∈1]"]]:::plan + PgSelect53 --> PgSelectRows54 + PgSelectRows89[["PgSelectRows[89∈1]"]]:::plan + PgSelect87 --> PgSelectRows89 + PgSelectRows130[["PgSelectRows[130∈1]"]]:::plan + PgSelect129 --> PgSelectRows130 + PgSelectRows167[["PgSelectRows[167∈1]"]]:::plan + PgSelect164 --> PgSelectRows167 + PgSelectRows205[["PgSelectRows[205∈1]"]]:::plan + PgSelect204 --> PgSelectRows205 + PgSelectRows216[["PgSelectRows[216∈1]"]]:::plan + PgSelect215 --> PgSelectRows216 + PgSelectRows223[["PgSelectRows[223∈1]"]]:::plan + PgSelect221 --> PgSelectRows223 + PgSelectRows230[["PgSelectRows[230∈1]"]]:::plan + PgSelect228 --> PgSelectRows230 + PgSelect39[["PgSelect[39∈2]
ᐸperson_friendsᐳ"]]:::plan + PgClassExpression29{{"PgClassExpression[29∈2]
ᐸ__person_friends__ᐳ"}}:::plan + Object10 & PgClassExpression29 & PgFromExpression37 & Connection38 & Constant436 --> PgSelect39 + __Item26[/"__Item[26∈2]
ᐸ25ᐳ"\]:::itemplan + PgSelectRows25 ==> __Item26 + PgSelectSingle27{{"PgSelectSingle[27∈2]
ᐸperson_friendsᐳ"}}:::plan + __Item26 --> PgSelectSingle27 + PgClassExpression28{{"PgClassExpression[28∈2]
ᐸ__person_f...full_name”ᐳ"}}:::plan + PgSelectSingle27 --> PgClassExpression28 + PgSelectSingle27 --> PgClassExpression29 + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ”c”.”perso...friends__)ᐳ"}}:::plan + PgSelectSingle27 --> PgClassExpression30 + PgSelectRows40[["PgSelectRows[40∈2]"]]:::plan + PgSelect39 --> PgSelectRows40 + __Item41[/"__Item[41∈3]
ᐸ40ᐳ"\]:::itemplan + PgSelectRows40 ==> __Item41 + PgSelectSingle42{{"PgSelectSingle[42∈3]
ᐸperson_friendsᐳ"}}:::plan + __Item41 --> PgSelectSingle42 + PgClassExpression43{{"PgClassExpression[43∈3]
ᐸ__person_f...full_name”ᐳ"}}:::plan + PgSelectSingle42 --> PgClassExpression43 + PgClassExpression45{{"PgClassExpression[45∈3]
ᐸ”c”.”perso...friends__)ᐳ"}}:::plan + PgSelectSingle42 --> PgClassExpression45 + PgSelect70[["PgSelect[70∈4]
ᐸpost_computed_interval_setᐳ"]]:::plan + PgClassExpression58{{"PgClassExpression[58∈4]
ᐸ__post__ᐳ"}}:::plan + Object10 & PgClassExpression58 & PgFromExpression68 & Connection69 & Constant436 --> PgSelect70 + PgSelect78[["PgSelect[78∈4]
ᐸpost_computed_interval_setᐳ"]]:::plan + Object10 & PgClassExpression58 & PgFromExpression80 & Constant436 --> PgSelect78 + __Item55[/"__Item[55∈4]
ᐸ54ᐳ"\]:::itemplan + PgSelectRows54 ==> __Item55 + PgSelectSingle56{{"PgSelectSingle[56∈4]
ᐸpostᐳ"}}:::plan + __Item55 --> PgSelectSingle56 + PgClassExpression57{{"PgClassExpression[57∈4]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle56 --> PgClassExpression57 + PgSelectSingle56 --> PgClassExpression58 + PgClassExpression60{{"PgClassExpression[60∈4]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle56 --> PgClassExpression60 + PgClassExpression61{{"PgClassExpression[61∈4]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle56 --> PgClassExpression61 + PgSelectRows71[["PgSelectRows[71∈4]"]]:::plan + PgSelect70 --> PgSelectRows71 + PgSelectRows81[["PgSelectRows[81∈4]"]]:::plan + PgSelect78 --> PgSelectRows81 + __Item72[/"__Item[72∈5]
ᐸ71ᐳ"\]:::itemplan + PgSelectRows71 ==> __Item72 + PgSelectSingle73{{"PgSelectSingle[73∈5]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item72 --> PgSelectSingle73 + PgClassExpression74{{"PgClassExpression[74∈5]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle73 --> PgClassExpression74 + __Item82[/"__Item[82∈6]
ᐸ81ᐳ"\]:::itemplan + PgSelectRows81 ==> __Item82 + PgSelectSingle83{{"PgSelectSingle[83∈6]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item82 --> PgSelectSingle83 + PgClassExpression84{{"PgClassExpression[84∈6]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle83 --> PgClassExpression84 + PgSelect105[["PgSelect[105∈7]
ᐸpost_computed_interval_setᐳ"]]:::plan + PgClassExpression93{{"PgClassExpression[93∈7]
ᐸ__post__ᐳ"}}:::plan + Object10 & PgClassExpression93 & PgFromExpression103 & Connection104 & Constant436 --> PgSelect105 + PgSelect113[["PgSelect[113∈7]
ᐸpost_computed_interval_setᐳ"]]:::plan + Object10 & PgClassExpression93 & PgFromExpression115 & Constant436 --> PgSelect113 + __Item90[/"__Item[90∈7]
ᐸ89ᐳ"\]:::itemplan + PgSelectRows89 ==> __Item90 + PgSelectSingle91{{"PgSelectSingle[91∈7]
ᐸpostᐳ"}}:::plan + __Item90 --> PgSelectSingle91 + PgClassExpression92{{"PgClassExpression[92∈7]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression92 + PgSelectSingle91 --> PgClassExpression93 + PgClassExpression95{{"PgClassExpression[95∈7]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression95 + PgClassExpression96{{"PgClassExpression[96∈7]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression96 + PgSelectRows106[["PgSelectRows[106∈7]"]]:::plan + PgSelect105 --> PgSelectRows106 + PgSelectRows116[["PgSelectRows[116∈7]"]]:::plan + PgSelect113 --> PgSelectRows116 + __Item107[/"__Item[107∈8]
ᐸ106ᐳ"\]:::itemplan + PgSelectRows106 ==> __Item107 + PgSelectSingle108{{"PgSelectSingle[108∈8]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item107 --> PgSelectSingle108 + PgClassExpression109{{"PgClassExpression[109∈8]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle108 --> PgClassExpression109 + __Item117[/"__Item[117∈9]
ᐸ116ᐳ"\]:::itemplan + PgSelectRows116 ==> __Item117 + PgSelectSingle118{{"PgSelectSingle[118∈9]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item117 --> PgSelectSingle118 + PgClassExpression119{{"PgClassExpression[119∈9]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle118 --> PgClassExpression119 + PgSelect146[["PgSelect[146∈10]
ᐸpost_computed_interval_setᐳ"]]:::plan + PgClassExpression134{{"PgClassExpression[134∈10]
ᐸ__post__ᐳ"}}:::plan + Object10 & PgClassExpression134 & PgFromExpression144 & Connection145 & Constant436 --> PgSelect146 + PgSelect154[["PgSelect[154∈10]
ᐸpost_computed_interval_setᐳ"]]:::plan + Object10 & PgClassExpression134 & PgFromExpression156 & Constant436 --> PgSelect154 + __Item131[/"__Item[131∈10]
ᐸ130ᐳ"\]:::itemplan + PgSelectRows130 ==> __Item131 + PgSelectSingle132{{"PgSelectSingle[132∈10]
ᐸpostᐳ"}}:::plan + __Item131 --> PgSelectSingle132 + PgClassExpression133{{"PgClassExpression[133∈10]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle132 --> PgClassExpression133 + PgSelectSingle132 --> PgClassExpression134 + PgClassExpression136{{"PgClassExpression[136∈10]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle132 --> PgClassExpression136 + PgClassExpression137{{"PgClassExpression[137∈10]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle132 --> PgClassExpression137 + PgSelectRows147[["PgSelectRows[147∈10]"]]:::plan + PgSelect146 --> PgSelectRows147 + PgSelectRows157[["PgSelectRows[157∈10]"]]:::plan + PgSelect154 --> PgSelectRows157 + __Item148[/"__Item[148∈11]
ᐸ147ᐳ"\]:::itemplan + PgSelectRows147 ==> __Item148 + PgSelectSingle149{{"PgSelectSingle[149∈11]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item148 --> PgSelectSingle149 + PgClassExpression150{{"PgClassExpression[150∈11]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle149 --> PgClassExpression150 + __Item158[/"__Item[158∈12]
ᐸ157ᐳ"\]:::itemplan + PgSelectRows157 ==> __Item158 + PgSelectSingle159{{"PgSelectSingle[159∈12]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item158 --> PgSelectSingle159 + PgClassExpression160{{"PgClassExpression[160∈12]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle159 --> PgClassExpression160 + PgSelect183[["PgSelect[183∈13]
ᐸpost_computed_interval_setᐳ"]]:::plan + PgClassExpression171{{"PgClassExpression[171∈13]
ᐸ__post__ᐳ"}}:::plan + Object10 & PgClassExpression171 & PgFromExpression181 & Connection182 & Constant436 --> PgSelect183 + PgSelect191[["PgSelect[191∈13]
ᐸpost_computed_interval_setᐳ"]]:::plan + Object10 & PgClassExpression171 & PgFromExpression193 & Constant436 --> PgSelect191 + __Item168[/"__Item[168∈13]
ᐸ167ᐳ"\]:::itemplan + PgSelectRows167 ==> __Item168 + PgSelectSingle169{{"PgSelectSingle[169∈13]
ᐸpostᐳ"}}:::plan + __Item168 --> PgSelectSingle169 + PgClassExpression170{{"PgClassExpression[170∈13]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle169 --> PgClassExpression170 + PgSelectSingle169 --> PgClassExpression171 + PgClassExpression173{{"PgClassExpression[173∈13]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle169 --> PgClassExpression173 + PgClassExpression174{{"PgClassExpression[174∈13]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle169 --> PgClassExpression174 + PgSelectRows184[["PgSelectRows[184∈13]"]]:::plan + PgSelect183 --> PgSelectRows184 + PgSelectRows194[["PgSelectRows[194∈13]"]]:::plan + PgSelect191 --> PgSelectRows194 + __Item185[/"__Item[185∈14]
ᐸ184ᐳ"\]:::itemplan + PgSelectRows184 ==> __Item185 + PgSelectSingle186{{"PgSelectSingle[186∈14]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item185 --> PgSelectSingle186 + PgClassExpression187{{"PgClassExpression[187∈14]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle186 --> PgClassExpression187 + __Item195[/"__Item[195∈15]
ᐸ194ᐳ"\]:::itemplan + PgSelectRows194 ==> __Item195 + PgSelectSingle196{{"PgSelectSingle[196∈15]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item195 --> PgSelectSingle196 + PgClassExpression197{{"PgClassExpression[197∈15]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle196 --> PgClassExpression197 + __Item206[/"__Item[206∈16]
ᐸ205ᐳ"\]:::itemplan + PgSelectRows205 ==> __Item206 + PgSelectSingle207{{"PgSelectSingle[207∈16]
ᐸcompound_keyᐳ"}}:::plan + __Item206 --> PgSelectSingle207 + PgClassExpression208{{"PgClassExpression[208∈16]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle207 --> PgClassExpression208 + PgClassExpression209{{"PgClassExpression[209∈16]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle207 --> PgClassExpression209 + __Item217[/"__Item[217∈17]
ᐸ216ᐳ"\]:::itemplan + PgSelectRows216 ==> __Item217 + PgSelectSingle218{{"PgSelectSingle[218∈17]
ᐸcompound_keyᐳ"}}:::plan + __Item217 --> PgSelectSingle218 + PgClassExpression219{{"PgClassExpression[219∈17]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle218 --> PgClassExpression219 + PgClassExpression220{{"PgClassExpression[220∈17]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle218 --> PgClassExpression220 + __Item224[/"__Item[224∈18]
ᐸ223ᐳ"\]:::itemplan + PgSelectRows223 ==> __Item224 + PgSelectSingle225{{"PgSelectSingle[225∈18]
ᐸcompound_keyᐳ"}}:::plan + __Item224 --> PgSelectSingle225 + PgClassExpression226{{"PgClassExpression[226∈18]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle225 --> PgClassExpression226 + PgClassExpression227{{"PgClassExpression[227∈18]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle225 --> PgClassExpression227 + __Item231[/"__Item[231∈19]
ᐸ230ᐳ"\]:::itemplan + PgSelectRows230 ==> __Item231 + PgSelectSingle232{{"PgSelectSingle[232∈19]
ᐸcompound_keyᐳ"}}:::plan + __Item231 --> PgSelectSingle232 + PgClassExpression233{{"PgClassExpression[233∈19]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle232 --> PgClassExpression233 + PgClassExpression234{{"PgClassExpression[234∈19]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle232 --> PgClassExpression234 + PgSelect330[["PgSelect[330∈20]
ᐸpostᐳ"]]:::plan + PgClassExpression244{{"PgClassExpression[244∈20]
ᐸ__person__.”id”ᐳ"}}:::plan + Object10 & PgClassExpression244 & ApplyInput329 & Connection327 & PgFromExpression336 --> PgSelect330 + PgSelect254[["PgSelect[254∈20]
ᐸpostᐳ"]]:::plan + Object10 & PgClassExpression244 & Connection252 & Constant437 & PgFromExpression260 --> PgSelect254 + PgSelect365[["PgSelect[365∈20]
ᐸpostᐳ"]]:::plan + Object10 & PgClassExpression244 & ApplyInput367 & PgFromExpression373 --> PgSelect365 + PgSelect405[["PgSelect[405∈20]
ᐸcompound_keyᐳ"]]:::plan + Object10 & PgClassExpression244 & Connection403 --> PgSelect405 + PgSelect416[["PgSelect[416∈20]
ᐸcompound_keyᐳ"]]:::plan + Object10 & PgClassExpression244 & Connection414 --> PgSelect416 + PgSelect288[["PgSelect[288∈20]
ᐸpostᐳ"]]:::plan + Object10 & PgClassExpression244 & Constant437 & PgFromExpression295 --> PgSelect288 + PgSelect422[["PgSelect[422∈20]
ᐸcompound_keyᐳ"]]:::plan + Object10 & PgClassExpression244 --> PgSelect422 + PgSelect429[["PgSelect[429∈20]
ᐸcompound_keyᐳ"]]:::plan + Object10 & PgClassExpression244 --> PgSelect429 + __Item242[/"__Item[242∈20]
ᐸ241ᐳ"\]:::itemplan + PgSelectRows241 ==> __Item242 + PgSelectSingle243{{"PgSelectSingle[243∈20]
ᐸpersonᐳ"}}:::plan + __Item242 --> PgSelectSingle243 + PgSelectSingle243 --> PgClassExpression244 + PgClassExpression245{{"PgClassExpression[245∈20]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle243 --> PgClassExpression245 + PgSelectRows255[["PgSelectRows[255∈20]"]]:::plan + PgSelect254 --> PgSelectRows255 + PgSelectRows290[["PgSelectRows[290∈20]"]]:::plan + PgSelect288 --> PgSelectRows290 + PgSelectRows331[["PgSelectRows[331∈20]"]]:::plan + PgSelect330 --> PgSelectRows331 + PgSelectRows368[["PgSelectRows[368∈20]"]]:::plan + PgSelect365 --> PgSelectRows368 + PgSelectRows406[["PgSelectRows[406∈20]"]]:::plan + PgSelect405 --> PgSelectRows406 + PgSelectRows417[["PgSelectRows[417∈20]"]]:::plan + PgSelect416 --> PgSelectRows417 + PgSelectRows424[["PgSelectRows[424∈20]"]]:::plan + PgSelect422 --> PgSelectRows424 + PgSelectRows431[["PgSelectRows[431∈20]"]]:::plan + PgSelect429 --> PgSelectRows431 + PgSelect271[["PgSelect[271∈21]
ᐸpost_computed_interval_setᐳ"]]:::plan + PgClassExpression259{{"PgClassExpression[259∈21]
ᐸ__post__ᐳ"}}:::plan + Object10 & PgClassExpression259 & PgFromExpression269 & Connection270 & Constant436 --> PgSelect271 + PgSelect279[["PgSelect[279∈21]
ᐸpost_computed_interval_setᐳ"]]:::plan + Object10 & PgClassExpression259 & PgFromExpression281 & Constant436 --> PgSelect279 + __Item256[/"__Item[256∈21]
ᐸ255ᐳ"\]:::itemplan + PgSelectRows255 ==> __Item256 + PgSelectSingle257{{"PgSelectSingle[257∈21]
ᐸpostᐳ"}}:::plan + __Item256 --> PgSelectSingle257 + PgClassExpression258{{"PgClassExpression[258∈21]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle257 --> PgClassExpression258 + PgSelectSingle257 --> PgClassExpression259 + PgClassExpression261{{"PgClassExpression[261∈21]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle257 --> PgClassExpression261 + PgClassExpression262{{"PgClassExpression[262∈21]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle257 --> PgClassExpression262 + PgSelectRows272[["PgSelectRows[272∈21]"]]:::plan + PgSelect271 --> PgSelectRows272 + PgSelectRows282[["PgSelectRows[282∈21]"]]:::plan + PgSelect279 --> PgSelectRows282 + __Item273[/"__Item[273∈22]
ᐸ272ᐳ"\]:::itemplan + PgSelectRows272 ==> __Item273 + PgSelectSingle274{{"PgSelectSingle[274∈22]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item273 --> PgSelectSingle274 + PgClassExpression275{{"PgClassExpression[275∈22]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle274 --> PgClassExpression275 + __Item283[/"__Item[283∈23]
ᐸ282ᐳ"\]:::itemplan + PgSelectRows282 ==> __Item283 + PgSelectSingle284{{"PgSelectSingle[284∈23]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item283 --> PgSelectSingle284 + PgClassExpression285{{"PgClassExpression[285∈23]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle284 --> PgClassExpression285 + PgSelect306[["PgSelect[306∈24]
ᐸpost_computed_interval_setᐳ"]]:::plan + PgClassExpression294{{"PgClassExpression[294∈24]
ᐸ__post__ᐳ"}}:::plan + Object10 & PgClassExpression294 & PgFromExpression304 & Connection305 & Constant436 --> PgSelect306 + PgSelect314[["PgSelect[314∈24]
ᐸpost_computed_interval_setᐳ"]]:::plan + Object10 & PgClassExpression294 & PgFromExpression316 & Constant436 --> PgSelect314 + __Item291[/"__Item[291∈24]
ᐸ290ᐳ"\]:::itemplan + PgSelectRows290 ==> __Item291 + PgSelectSingle292{{"PgSelectSingle[292∈24]
ᐸpostᐳ"}}:::plan + __Item291 --> PgSelectSingle292 + PgClassExpression293{{"PgClassExpression[293∈24]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle292 --> PgClassExpression293 + PgSelectSingle292 --> PgClassExpression294 + PgClassExpression296{{"PgClassExpression[296∈24]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle292 --> PgClassExpression296 + PgClassExpression297{{"PgClassExpression[297∈24]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle292 --> PgClassExpression297 + PgSelectRows307[["PgSelectRows[307∈24]"]]:::plan + PgSelect306 --> PgSelectRows307 + PgSelectRows317[["PgSelectRows[317∈24]"]]:::plan + PgSelect314 --> PgSelectRows317 + __Item308[/"__Item[308∈25]
ᐸ307ᐳ"\]:::itemplan + PgSelectRows307 ==> __Item308 + PgSelectSingle309{{"PgSelectSingle[309∈25]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item308 --> PgSelectSingle309 + PgClassExpression310{{"PgClassExpression[310∈25]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle309 --> PgClassExpression310 + __Item318[/"__Item[318∈26]
ᐸ317ᐳ"\]:::itemplan + PgSelectRows317 ==> __Item318 + PgSelectSingle319{{"PgSelectSingle[319∈26]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item318 --> PgSelectSingle319 + PgClassExpression320{{"PgClassExpression[320∈26]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle319 --> PgClassExpression320 + PgSelect347[["PgSelect[347∈27]
ᐸpost_computed_interval_setᐳ"]]:::plan + PgClassExpression335{{"PgClassExpression[335∈27]
ᐸ__post__ᐳ"}}:::plan + Object10 & PgClassExpression335 & PgFromExpression345 & Connection346 & Constant436 --> PgSelect347 + PgSelect355[["PgSelect[355∈27]
ᐸpost_computed_interval_setᐳ"]]:::plan + Object10 & PgClassExpression335 & PgFromExpression357 & Constant436 --> PgSelect355 + __Item332[/"__Item[332∈27]
ᐸ331ᐳ"\]:::itemplan + PgSelectRows331 ==> __Item332 + PgSelectSingle333{{"PgSelectSingle[333∈27]
ᐸpostᐳ"}}:::plan + __Item332 --> PgSelectSingle333 + PgClassExpression334{{"PgClassExpression[334∈27]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle333 --> PgClassExpression334 + PgSelectSingle333 --> PgClassExpression335 + PgClassExpression337{{"PgClassExpression[337∈27]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle333 --> PgClassExpression337 + PgClassExpression338{{"PgClassExpression[338∈27]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle333 --> PgClassExpression338 + PgSelectRows348[["PgSelectRows[348∈27]"]]:::plan + PgSelect347 --> PgSelectRows348 + PgSelectRows358[["PgSelectRows[358∈27]"]]:::plan + PgSelect355 --> PgSelectRows358 + __Item349[/"__Item[349∈28]
ᐸ348ᐳ"\]:::itemplan + PgSelectRows348 ==> __Item349 + PgSelectSingle350{{"PgSelectSingle[350∈28]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item349 --> PgSelectSingle350 + PgClassExpression351{{"PgClassExpression[351∈28]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle350 --> PgClassExpression351 + __Item359[/"__Item[359∈29]
ᐸ358ᐳ"\]:::itemplan + PgSelectRows358 ==> __Item359 + PgSelectSingle360{{"PgSelectSingle[360∈29]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item359 --> PgSelectSingle360 + PgClassExpression361{{"PgClassExpression[361∈29]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle360 --> PgClassExpression361 + PgSelect384[["PgSelect[384∈30]
ᐸpost_computed_interval_setᐳ"]]:::plan + PgClassExpression372{{"PgClassExpression[372∈30]
ᐸ__post__ᐳ"}}:::plan + Object10 & PgClassExpression372 & PgFromExpression382 & Connection383 & Constant436 --> PgSelect384 + PgSelect392[["PgSelect[392∈30]
ᐸpost_computed_interval_setᐳ"]]:::plan + Object10 & PgClassExpression372 & PgFromExpression394 & Constant436 --> PgSelect392 + __Item369[/"__Item[369∈30]
ᐸ368ᐳ"\]:::itemplan + PgSelectRows368 ==> __Item369 + PgSelectSingle370{{"PgSelectSingle[370∈30]
ᐸpostᐳ"}}:::plan + __Item369 --> PgSelectSingle370 + PgClassExpression371{{"PgClassExpression[371∈30]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle370 --> PgClassExpression371 + PgSelectSingle370 --> PgClassExpression372 + PgClassExpression374{{"PgClassExpression[374∈30]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle370 --> PgClassExpression374 + PgClassExpression375{{"PgClassExpression[375∈30]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle370 --> PgClassExpression375 + PgSelectRows385[["PgSelectRows[385∈30]"]]:::plan + PgSelect384 --> PgSelectRows385 + PgSelectRows395[["PgSelectRows[395∈30]"]]:::plan + PgSelect392 --> PgSelectRows395 + __Item386[/"__Item[386∈31]
ᐸ385ᐳ"\]:::itemplan + PgSelectRows385 ==> __Item386 + PgSelectSingle387{{"PgSelectSingle[387∈31]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item386 --> PgSelectSingle387 + PgClassExpression388{{"PgClassExpression[388∈31]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle387 --> PgClassExpression388 + __Item396[/"__Item[396∈32]
ᐸ395ᐳ"\]:::itemplan + PgSelectRows395 ==> __Item396 + PgSelectSingle397{{"PgSelectSingle[397∈32]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item396 --> PgSelectSingle397 + PgClassExpression398{{"PgClassExpression[398∈32]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle397 --> PgClassExpression398 + __Item407[/"__Item[407∈33]
ᐸ406ᐳ"\]:::itemplan + PgSelectRows406 ==> __Item407 + PgSelectSingle408{{"PgSelectSingle[408∈33]
ᐸcompound_keyᐳ"}}:::plan + __Item407 --> PgSelectSingle408 + PgClassExpression409{{"PgClassExpression[409∈33]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle408 --> PgClassExpression409 + PgClassExpression410{{"PgClassExpression[410∈33]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle408 --> PgClassExpression410 + __Item418[/"__Item[418∈34]
ᐸ417ᐳ"\]:::itemplan + PgSelectRows417 ==> __Item418 + PgSelectSingle419{{"PgSelectSingle[419∈34]
ᐸcompound_keyᐳ"}}:::plan + __Item418 --> PgSelectSingle419 + PgClassExpression420{{"PgClassExpression[420∈34]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle419 --> PgClassExpression420 + PgClassExpression421{{"PgClassExpression[421∈34]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle419 --> PgClassExpression421 + __Item425[/"__Item[425∈35]
ᐸ424ᐳ"\]:::itemplan + PgSelectRows424 ==> __Item425 + PgSelectSingle426{{"PgSelectSingle[426∈35]
ᐸcompound_keyᐳ"}}:::plan + __Item425 --> PgSelectSingle426 + PgClassExpression427{{"PgClassExpression[427∈35]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle426 --> PgClassExpression427 + PgClassExpression428{{"PgClassExpression[428∈35]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle426 --> PgClassExpression428 + __Item432[/"__Item[432∈36]
ᐸ431ᐳ"\]:::itemplan + PgSelectRows431 ==> __Item432 + PgSelectSingle433{{"PgSelectSingle[433∈36]
ᐸcompound_keyᐳ"}}:::plan + __Item432 --> PgSelectSingle433 + PgClassExpression434{{"PgClassExpression[434∈36]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle433 --> PgClassExpression434 + PgClassExpression435{{"PgClassExpression[435∈36]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle433 --> PgClassExpression435 %% define steps subgraph "Buckets for queries/v4/simple-procedure-computed-fields" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 22, 119, 187, 198, 223, 306, 374, 385, 406, 407, 408, 10, 36, 50, 65, 97, 134, 167, 237, 252, 284, 321, 354
2: PgSelect[7]
3: PgSelectRows[11]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 22, 37, 68, 80, 103, 115, 144, 156, 181, 193, 269, 281, 304, 316, 345, 357, 382, 394, 436, 437, 438, 10, 23, 38, 51, 59, 69, 94, 104, 122, 126, 128, 135, 145, 162, 166, 172, 182, 202, 213, 238, 252, 260, 270, 295, 305, 323, 327, 329, 336, 346, 363, 367, 373, 383, 403, 414
2: PgSelect[7], PgSelect[240]
3: PgSelectRows[11], PgSelectRows[241]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11,Connection22,Connection36,Connection50,Connection65,Connection97,Connection119,Connection134,Connection167,Connection187,Connection198,Connection223,Connection237,Connection252,Connection284,Connection306,Connection321,Connection354,Connection374,Connection385,Constant406,Constant407,Constant408 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 10, 22, 50, 407, 408, 119, 187, 198, 36, 406, 65, 97, 134, 167

ROOT __Item{1}ᐸ11ᐳ[12]
1:
ᐳ: 13, 14, 15, 16, 44
2: 23, 51, 82, 120, 152, 188, 199, 205, 212
3: 24, 52, 84, 121, 154, 189, 200, 207, 214"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11,PgFromExpression22,Connection23,PgFromExpression37,Connection38,Connection51,PgFromExpression59,PgFromExpression68,Connection69,PgFromExpression80,PgFromExpression94,PgFromExpression103,Connection104,PgFromExpression115,__InputObject122,Connection126,ApplyInput128,PgFromExpression135,PgFromExpression144,Connection145,PgFromExpression156,__InputObject162,ApplyInput166,PgFromExpression172,PgFromExpression181,Connection182,PgFromExpression193,Connection202,Connection213,Connection238,PgSelect240,PgSelectRows241,Connection252,PgFromExpression260,PgFromExpression269,Connection270,PgFromExpression281,PgFromExpression295,PgFromExpression304,Connection305,PgFromExpression316,__InputObject323,Connection327,ApplyInput329,PgFromExpression336,PgFromExpression345,Connection346,PgFromExpression357,__InputObject363,ApplyInput367,PgFromExpression373,PgFromExpression382,Connection383,PgFromExpression394,Connection403,Connection414,Constant436,Constant437,Constant438 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 10, 22, 23, 6, 51, 437, 59, 94, 128, 126, 135, 166, 172, 202, 213, 37, 38, 436, 68, 69, 80, 103, 104, 115, 144, 145, 156, 181, 182, 193

ROOT __Item{1}ᐸ11ᐳ[12]
1:
ᐳ: 13, 14, 15, 16, 46
2: 24, 53, 87, 129, 164, 204, 215, 221, 228
3: 25, 54, 89, 130, 167, 205, 216, 223, 230"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgSelect23,PgSelectRows24,PgClassExpression44,PgSelect51,PgSelectRows52,PgSelect82,PgSelectRows84,PgSelect120,PgSelectRows121,PgSelect152,PgSelectRows154,PgSelect188,PgSelectRows189,PgSelect199,PgSelectRows200,PgSelect205,PgSelectRows207,PgSelect212,PgSelectRows214 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 10, 36, 406

ROOT __Item{2}ᐸ24ᐳ[25]"):::bucket + class Bucket1,__Item12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgSelect24,PgSelectRows25,PgClassExpression46,PgSelect53,PgSelectRows54,PgSelect87,PgSelectRows89,PgSelect129,PgSelectRows130,PgSelect164,PgSelectRows167,PgSelect204,PgSelectRows205,PgSelect215,PgSelectRows216,PgSelect221,PgSelectRows223,PgSelect228,PgSelectRows230 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 10, 37, 38, 436, 6

ROOT __Item{2}ᐸ25ᐳ[26]
1:
ᐳ: 27, 28, 29, 30
2: PgSelect[39]
3: PgSelectRows[40]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item25,PgSelectSingle26 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 26, 10, 36, 406

ROOT PgSelectSingle{2}ᐸperson_friendsᐳ[26]
1:
ᐳ: 27, 28, 29
2: PgSelect[37]
3: PgSelectRows[38]"):::bucket + class Bucket2,__Item26,PgSelectSingle27,PgClassExpression28,PgClassExpression29,PgClassExpression30,PgSelect39,PgSelectRows40 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ40ᐳ[41]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression27,PgClassExpression28,PgClassExpression29,PgSelect37,PgSelectRows38 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ38ᐳ[39]"):::bucket + class Bucket3,__Item41,PgSelectSingle42,PgClassExpression43,PgClassExpression45 bucket3 + Bucket4("Bucket 4 (listItem)
Deps: 10, 68, 69, 436, 6, 80

ROOT __Item{4}ᐸ54ᐳ[55]
1:
ᐳ: 56, 57, 58, 60, 61
2: PgSelect[70], PgSelect[78]
3: PgSelectRows[71], PgSelectRows[81]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item39,PgSelectSingle40 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 40

ROOT PgSelectSingle{4}ᐸperson_friendsᐳ[40]"):::bucket + class Bucket4,__Item55,PgSelectSingle56,PgClassExpression57,PgClassExpression58,PgClassExpression60,PgClassExpression61,PgSelect70,PgSelectRows71,PgSelect78,PgSelectRows81 bucket4 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ71ᐳ[72]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression41,PgClassExpression43 bucket5 - Bucket6("Bucket 6 (listItem)
Deps: 10, 65, 406

ROOT __Item{6}ᐸ52ᐳ[53]"):::bucket + class Bucket5,__Item72,PgSelectSingle73,PgClassExpression74 bucket5 + Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ81ᐳ[82]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,__Item53,PgSelectSingle54 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 54, 10, 65, 406

ROOT PgSelectSingle{6}ᐸpostᐳ[54]
1:
ᐳ: 55, 56, 57, 58
2: PgSelect[66], PgSelect[74]
3: PgSelectRows[67], PgSelectRows[76]"):::bucket + class Bucket6,__Item82,PgSelectSingle83,PgClassExpression84 bucket6 + Bucket7("Bucket 7 (listItem)
Deps: 10, 103, 104, 436, 6, 115

ROOT __Item{7}ᐸ89ᐳ[90]
1:
ᐳ: 91, 92, 93, 95, 96
2: PgSelect[105], PgSelect[113]
3: PgSelectRows[106], PgSelectRows[116]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression55,PgClassExpression56,PgClassExpression57,PgClassExpression58,PgSelect66,PgSelectRows67,PgSelect74,PgSelectRows76 bucket7 - Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ67ᐳ[68]"):::bucket + class Bucket7,__Item90,PgSelectSingle91,PgClassExpression92,PgClassExpression93,PgClassExpression95,PgClassExpression96,PgSelect105,PgSelectRows106,PgSelect113,PgSelectRows116 bucket7 + Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ106ᐳ[107]"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,__Item68,PgSelectSingle69,PgClassExpression70 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 70

ROOT PgClassExpression{8}ᐸ__post_com...al_set__.vᐳ[70]"):::bucket + class Bucket8,__Item107,PgSelectSingle108,PgClassExpression109 bucket8 + Bucket9("Bucket 9 (listItem)

ROOT __Item{9}ᐸ116ᐳ[117]"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9 bucket9 - Bucket10("Bucket 10 (listItem)

ROOT __Item{10}ᐸ76ᐳ[77]"):::bucket + class Bucket9,__Item117,PgSelectSingle118,PgClassExpression119 bucket9 + Bucket10("Bucket 10 (listItem)
Deps: 10, 144, 145, 436, 6, 156

ROOT __Item{10}ᐸ130ᐳ[131]
1:
ᐳ: 132, 133, 134, 136, 137
2: PgSelect[146], PgSelect[154]
3: PgSelectRows[147], PgSelectRows[157]"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10,__Item77,PgSelectSingle78,PgClassExpression79 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 79

ROOT PgClassExpression{10}ᐸ__post_com...al_set__.vᐳ[79]"):::bucket + class Bucket10,__Item131,PgSelectSingle132,PgClassExpression133,PgClassExpression134,PgClassExpression136,PgClassExpression137,PgSelect146,PgSelectRows147,PgSelect154,PgSelectRows157 bucket10 + Bucket11("Bucket 11 (listItem)

ROOT __Item{11}ᐸ147ᐳ[148]"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11 bucket11 - Bucket12("Bucket 12 (listItem)
Deps: 10, 97, 406

ROOT __Item{12}ᐸ84ᐳ[85]
1:
ᐳ: 86, 87, 88, 89, 90
2: PgSelect[98], PgSelect[106]
3: PgSelectRows[99], PgSelectRows[108]"):::bucket + class Bucket11,__Item148,PgSelectSingle149,PgClassExpression150 bucket11 + Bucket12("Bucket 12 (listItem)

ROOT __Item{12}ᐸ157ᐳ[158]"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12,__Item85,PgSelectSingle86,PgClassExpression87,PgClassExpression88,PgClassExpression89,PgClassExpression90,PgSelect98,PgSelectRows99,PgSelect106,PgSelectRows108 bucket12 - Bucket13("Bucket 13 (listItem)

ROOT __Item{13}ᐸ99ᐳ[100]"):::bucket + class Bucket12,__Item158,PgSelectSingle159,PgClassExpression160 bucket12 + Bucket13("Bucket 13 (listItem)
Deps: 10, 181, 182, 436, 6, 193

ROOT __Item{13}ᐸ167ᐳ[168]
1:
ᐳ: 169, 170, 171, 173, 174
2: PgSelect[183], PgSelect[191]
3: PgSelectRows[184], PgSelectRows[194]"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13,__Item100,PgSelectSingle101,PgClassExpression102 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 102

ROOT PgClassExpression{13}ᐸ__post_com...al_set__.vᐳ[102]"):::bucket + class Bucket13,__Item168,PgSelectSingle169,PgClassExpression170,PgClassExpression171,PgClassExpression173,PgClassExpression174,PgSelect183,PgSelectRows184,PgSelect191,PgSelectRows194 bucket13 + Bucket14("Bucket 14 (listItem)

ROOT __Item{14}ᐸ184ᐳ[185]"):::bucket classDef bucket14 stroke:#a52a2a - class Bucket14 bucket14 - Bucket15("Bucket 15 (listItem)

ROOT __Item{15}ᐸ108ᐳ[109]"):::bucket + class Bucket14,__Item185,PgSelectSingle186,PgClassExpression187 bucket14 + Bucket15("Bucket 15 (listItem)

ROOT __Item{15}ᐸ194ᐳ[195]"):::bucket classDef bucket15 stroke:#ff00ff - class Bucket15,__Item109,PgSelectSingle110,PgClassExpression111 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 111

ROOT PgClassExpression{15}ᐸ__post_com...al_set__.vᐳ[111]"):::bucket + class Bucket15,__Item195,PgSelectSingle196,PgClassExpression197 bucket15 + Bucket16("Bucket 16 (listItem)

ROOT __Item{16}ᐸ205ᐳ[206]"):::bucket classDef bucket16 stroke:#f5deb3 - class Bucket16 bucket16 - Bucket17("Bucket 17 (listItem)
Deps: 10, 134, 406

ROOT __Item{17}ᐸ121ᐳ[122]"):::bucket + class Bucket16,__Item206,PgSelectSingle207,PgClassExpression208,PgClassExpression209 bucket16 + Bucket17("Bucket 17 (listItem)

ROOT __Item{17}ᐸ216ᐳ[217]"):::bucket classDef bucket17 stroke:#696969 - class Bucket17,__Item122,PgSelectSingle123 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 123, 10, 134, 406

ROOT PgSelectSingle{17}ᐸpostᐳ[123]
1:
ᐳ: 124, 125, 126, 127
2: PgSelect[135], PgSelect[143]
3: PgSelectRows[136], PgSelectRows[145]"):::bucket + class Bucket17,__Item217,PgSelectSingle218,PgClassExpression219,PgClassExpression220 bucket17 + Bucket18("Bucket 18 (listItem)

ROOT __Item{18}ᐸ223ᐳ[224]"):::bucket classDef bucket18 stroke:#00bfff - class Bucket18,PgClassExpression124,PgClassExpression125,PgClassExpression126,PgClassExpression127,PgSelect135,PgSelectRows136,PgSelect143,PgSelectRows145 bucket18 - Bucket19("Bucket 19 (listItem)

ROOT __Item{19}ᐸ136ᐳ[137]"):::bucket + class Bucket18,__Item224,PgSelectSingle225,PgClassExpression226,PgClassExpression227 bucket18 + Bucket19("Bucket 19 (listItem)

ROOT __Item{19}ᐸ230ᐳ[231]"):::bucket classDef bucket19 stroke:#7f007f - class Bucket19,__Item137,PgSelectSingle138,PgClassExpression139 bucket19 - Bucket20("Bucket 20 (nullableBoundary)
Deps: 139

ROOT PgClassExpression{19}ᐸ__post_com...al_set__.vᐳ[139]"):::bucket + class Bucket19,__Item231,PgSelectSingle232,PgClassExpression233,PgClassExpression234 bucket19 + Bucket20("Bucket 20 (listItem)
Deps: 10, 252, 6, 437, 260, 295, 329, 327, 336, 367, 373, 403, 414, 269, 270, 436, 281, 304, 305, 316, 345, 346, 357, 382, 383, 394

ROOT __Item{20}ᐸ241ᐳ[242]
1:
ᐳ: 243, 244, 245
2: 254, 288, 330, 365, 405, 416, 422, 429
3: 255, 290, 331, 368, 406, 417, 424, 431"):::bucket classDef bucket20 stroke:#ffa500 - class Bucket20 bucket20 - Bucket21("Bucket 21 (listItem)

ROOT __Item{21}ᐸ145ᐳ[146]"):::bucket + class Bucket20,__Item242,PgSelectSingle243,PgClassExpression244,PgClassExpression245,PgSelect254,PgSelectRows255,PgSelect288,PgSelectRows290,PgSelect330,PgSelectRows331,PgSelect365,PgSelectRows368,PgSelect405,PgSelectRows406,PgSelect416,PgSelectRows417,PgSelect422,PgSelectRows424,PgSelect429,PgSelectRows431 bucket20 + Bucket21("Bucket 21 (listItem)
Deps: 10, 269, 270, 436, 6, 281

ROOT __Item{21}ᐸ255ᐳ[256]
1:
ᐳ: 257, 258, 259, 261, 262
2: PgSelect[271], PgSelect[279]
3: PgSelectRows[272], PgSelectRows[282]"):::bucket classDef bucket21 stroke:#0000ff - class Bucket21,__Item146,PgSelectSingle147,PgClassExpression148 bucket21 - Bucket22("Bucket 22 (nullableBoundary)
Deps: 148

ROOT PgClassExpression{21}ᐸ__post_com...al_set__.vᐳ[148]"):::bucket + class Bucket21,__Item256,PgSelectSingle257,PgClassExpression258,PgClassExpression259,PgClassExpression261,PgClassExpression262,PgSelect271,PgSelectRows272,PgSelect279,PgSelectRows282 bucket21 + Bucket22("Bucket 22 (listItem)

ROOT __Item{22}ᐸ272ᐳ[273]"):::bucket classDef bucket22 stroke:#7fff00 - class Bucket22 bucket22 - Bucket23("Bucket 23 (listItem)
Deps: 10, 167, 406

ROOT __Item{23}ᐸ154ᐳ[155]
1:
ᐳ: 156, 157, 158, 159, 160
2: PgSelect[168], PgSelect[176]
3: PgSelectRows[169], PgSelectRows[178]"):::bucket + class Bucket22,__Item273,PgSelectSingle274,PgClassExpression275 bucket22 + Bucket23("Bucket 23 (listItem)

ROOT __Item{23}ᐸ282ᐳ[283]"):::bucket classDef bucket23 stroke:#ff1493 - class Bucket23,__Item155,PgSelectSingle156,PgClassExpression157,PgClassExpression158,PgClassExpression159,PgClassExpression160,PgSelect168,PgSelectRows169,PgSelect176,PgSelectRows178 bucket23 - Bucket24("Bucket 24 (listItem)

ROOT __Item{24}ᐸ169ᐳ[170]"):::bucket + class Bucket23,__Item283,PgSelectSingle284,PgClassExpression285 bucket23 + Bucket24("Bucket 24 (listItem)
Deps: 10, 304, 305, 436, 6, 316

ROOT __Item{24}ᐸ290ᐳ[291]
1:
ᐳ: 292, 293, 294, 296, 297
2: PgSelect[306], PgSelect[314]
3: PgSelectRows[307], PgSelectRows[317]"):::bucket classDef bucket24 stroke:#808000 - class Bucket24,__Item170,PgSelectSingle171,PgClassExpression172 bucket24 - Bucket25("Bucket 25 (nullableBoundary)
Deps: 172

ROOT PgClassExpression{24}ᐸ__post_com...al_set__.vᐳ[172]"):::bucket + class Bucket24,__Item291,PgSelectSingle292,PgClassExpression293,PgClassExpression294,PgClassExpression296,PgClassExpression297,PgSelect306,PgSelectRows307,PgSelect314,PgSelectRows317 bucket24 + Bucket25("Bucket 25 (listItem)

ROOT __Item{25}ᐸ307ᐳ[308]"):::bucket classDef bucket25 stroke:#dda0dd - class Bucket25 bucket25 - Bucket26("Bucket 26 (listItem)

ROOT __Item{26}ᐸ178ᐳ[179]"):::bucket + class Bucket25,__Item308,PgSelectSingle309,PgClassExpression310 bucket25 + Bucket26("Bucket 26 (listItem)

ROOT __Item{26}ᐸ317ᐳ[318]"):::bucket classDef bucket26 stroke:#ff0000 - class Bucket26,__Item179,PgSelectSingle180,PgClassExpression181 bucket26 - Bucket27("Bucket 27 (nullableBoundary)
Deps: 181

ROOT PgClassExpression{26}ᐸ__post_com...al_set__.vᐳ[181]"):::bucket + class Bucket26,__Item318,PgSelectSingle319,PgClassExpression320 bucket26 + Bucket27("Bucket 27 (listItem)
Deps: 10, 345, 346, 436, 6, 357

ROOT __Item{27}ᐸ331ᐳ[332]
1:
ᐳ: 333, 334, 335, 337, 338
2: PgSelect[347], PgSelect[355]
3: PgSelectRows[348], PgSelectRows[358]"):::bucket classDef bucket27 stroke:#ffff00 - class Bucket27 bucket27 - Bucket28("Bucket 28 (listItem)

ROOT __Item{28}ᐸ189ᐳ[190]"):::bucket + class Bucket27,__Item332,PgSelectSingle333,PgClassExpression334,PgClassExpression335,PgClassExpression337,PgClassExpression338,PgSelect347,PgSelectRows348,PgSelect355,PgSelectRows358 bucket27 + Bucket28("Bucket 28 (listItem)

ROOT __Item{28}ᐸ348ᐳ[349]"):::bucket classDef bucket28 stroke:#00ffff - class Bucket28,__Item190,PgSelectSingle191 bucket28 - Bucket29("Bucket 29 (nullableBoundary)
Deps: 191

ROOT PgSelectSingle{28}ᐸcompound_keyᐳ[191]"):::bucket + class Bucket28,__Item349,PgSelectSingle350,PgClassExpression351 bucket28 + Bucket29("Bucket 29 (listItem)

ROOT __Item{29}ᐸ358ᐳ[359]"):::bucket classDef bucket29 stroke:#4169e1 - class Bucket29,PgClassExpression192,PgClassExpression193 bucket29 - Bucket30("Bucket 30 (listItem)

ROOT __Item{30}ᐸ200ᐳ[201]"):::bucket + class Bucket29,__Item359,PgSelectSingle360,PgClassExpression361 bucket29 + Bucket30("Bucket 30 (listItem)
Deps: 10, 382, 383, 436, 6, 394

ROOT __Item{30}ᐸ368ᐳ[369]
1:
ᐳ: 370, 371, 372, 374, 375
2: PgSelect[384], PgSelect[392]
3: PgSelectRows[385], PgSelectRows[395]"):::bucket classDef bucket30 stroke:#3cb371 - class Bucket30,__Item201,PgSelectSingle202 bucket30 - Bucket31("Bucket 31 (nullableBoundary)
Deps: 202

ROOT PgSelectSingle{30}ᐸcompound_keyᐳ[202]"):::bucket + class Bucket30,__Item369,PgSelectSingle370,PgClassExpression371,PgClassExpression372,PgClassExpression374,PgClassExpression375,PgSelect384,PgSelectRows385,PgSelect392,PgSelectRows395 bucket30 + Bucket31("Bucket 31 (listItem)

ROOT __Item{31}ᐸ385ᐳ[386]"):::bucket classDef bucket31 stroke:#a52a2a - class Bucket31,PgClassExpression203,PgClassExpression204 bucket31 - Bucket32("Bucket 32 (listItem)

ROOT __Item{32}ᐸ207ᐳ[208]"):::bucket + class Bucket31,__Item386,PgSelectSingle387,PgClassExpression388 bucket31 + Bucket32("Bucket 32 (listItem)

ROOT __Item{32}ᐸ395ᐳ[396]"):::bucket classDef bucket32 stroke:#ff00ff - class Bucket32,__Item208,PgSelectSingle209,PgClassExpression210,PgClassExpression211 bucket32 - Bucket33("Bucket 33 (listItem)

ROOT __Item{33}ᐸ214ᐳ[215]"):::bucket + class Bucket32,__Item396,PgSelectSingle397,PgClassExpression398 bucket32 + Bucket33("Bucket 33 (listItem)

ROOT __Item{33}ᐸ406ᐳ[407]"):::bucket classDef bucket33 stroke:#f5deb3 - class Bucket33,__Item215,PgSelectSingle216,PgClassExpression217,PgClassExpression218 bucket33 - Bucket34("Bucket 34 (nullableBoundary)
Deps: 10, 223, 237, 407, 408, 306, 374, 385, 252, 406, 284, 321, 354

ROOT Connectionᐸ221ᐳ[223]
1: PgSelect[224]
2: PgSelectRows[225]"):::bucket + class Bucket33,__Item407,PgSelectSingle408,PgClassExpression409,PgClassExpression410 bucket33 + Bucket34("Bucket 34 (listItem)

ROOT __Item{34}ᐸ417ᐳ[418]"):::bucket classDef bucket34 stroke:#696969 - class Bucket34,PgSelect224,PgSelectRows225 bucket34 - Bucket35("Bucket 35 (listItem)
Deps: 10, 237, 407, 408, 306, 374, 385, 252, 406, 284, 321, 354

ROOT __Item{35}ᐸ225ᐳ[226]"):::bucket + class Bucket34,__Item418,PgSelectSingle419,PgClassExpression420,PgClassExpression421 bucket34 + Bucket35("Bucket 35 (listItem)

ROOT __Item{35}ᐸ424ᐳ[425]"):::bucket classDef bucket35 stroke:#00bfff - class Bucket35,__Item226,PgSelectSingle227 bucket35 - Bucket36("Bucket 36 (nullableBoundary)
Deps: 227, 10, 237, 407, 408, 306, 374, 385, 252, 406, 284, 321, 354

ROOT PgSelectSingle{35}ᐸpersonᐳ[227]
1:
ᐳ: 228, 229
2: 238, 269, 307, 339, 375, 386, 392, 399
3: 239, 271, 308, 341, 376, 387, 394, 401"):::bucket + class Bucket35,__Item425,PgSelectSingle426,PgClassExpression427,PgClassExpression428 bucket35 + Bucket36("Bucket 36 (listItem)

ROOT __Item{36}ᐸ431ᐳ[432]"):::bucket classDef bucket36 stroke:#7f007f - class Bucket36,PgClassExpression228,PgClassExpression229,PgSelect238,PgSelectRows239,PgSelect269,PgSelectRows271,PgSelect307,PgSelectRows308,PgSelect339,PgSelectRows341,PgSelect375,PgSelectRows376,PgSelect386,PgSelectRows387,PgSelect392,PgSelectRows394,PgSelect399,PgSelectRows401 bucket36 - Bucket37("Bucket 37 (listItem)
Deps: 10, 252, 406

ROOT __Item{37}ᐸ239ᐳ[240]"):::bucket - classDef bucket37 stroke:#ffa500 - class Bucket37,__Item240,PgSelectSingle241 bucket37 - Bucket38("Bucket 38 (nullableBoundary)
Deps: 241, 10, 252, 406

ROOT PgSelectSingle{37}ᐸpostᐳ[241]
1:
ᐳ: 242, 243, 244, 245
2: PgSelect[253], PgSelect[261]
3: PgSelectRows[254], PgSelectRows[263]"):::bucket - classDef bucket38 stroke:#0000ff - class Bucket38,PgClassExpression242,PgClassExpression243,PgClassExpression244,PgClassExpression245,PgSelect253,PgSelectRows254,PgSelect261,PgSelectRows263 bucket38 - Bucket39("Bucket 39 (listItem)

ROOT __Item{39}ᐸ254ᐳ[255]"):::bucket - classDef bucket39 stroke:#7fff00 - class Bucket39,__Item255,PgSelectSingle256,PgClassExpression257 bucket39 - Bucket40("Bucket 40 (nullableBoundary)
Deps: 257

ROOT PgClassExpression{39}ᐸ__post_com...al_set__.vᐳ[257]"):::bucket - classDef bucket40 stroke:#ff1493 - class Bucket40 bucket40 - Bucket41("Bucket 41 (listItem)

ROOT __Item{41}ᐸ263ᐳ[264]"):::bucket - classDef bucket41 stroke:#808000 - class Bucket41,__Item264,PgSelectSingle265,PgClassExpression266 bucket41 - Bucket42("Bucket 42 (nullableBoundary)
Deps: 266

ROOT PgClassExpression{41}ᐸ__post_com...al_set__.vᐳ[266]"):::bucket - classDef bucket42 stroke:#dda0dd - class Bucket42 bucket42 - Bucket43("Bucket 43 (listItem)
Deps: 10, 284, 406

ROOT __Item{43}ᐸ271ᐳ[272]
1:
ᐳ: 273, 274, 275, 276, 277
2: PgSelect[285], PgSelect[293]
3: PgSelectRows[286], PgSelectRows[295]"):::bucket - classDef bucket43 stroke:#ff0000 - class Bucket43,__Item272,PgSelectSingle273,PgClassExpression274,PgClassExpression275,PgClassExpression276,PgClassExpression277,PgSelect285,PgSelectRows286,PgSelect293,PgSelectRows295 bucket43 - Bucket44("Bucket 44 (listItem)

ROOT __Item{44}ᐸ286ᐳ[287]"):::bucket - classDef bucket44 stroke:#ffff00 - class Bucket44,__Item287,PgSelectSingle288,PgClassExpression289 bucket44 - Bucket45("Bucket 45 (nullableBoundary)
Deps: 289

ROOT PgClassExpression{44}ᐸ__post_com...al_set__.vᐳ[289]"):::bucket - classDef bucket45 stroke:#00ffff - class Bucket45 bucket45 - Bucket46("Bucket 46 (listItem)

ROOT __Item{46}ᐸ295ᐳ[296]"):::bucket - classDef bucket46 stroke:#4169e1 - class Bucket46,__Item296,PgSelectSingle297,PgClassExpression298 bucket46 - Bucket47("Bucket 47 (nullableBoundary)
Deps: 298

ROOT PgClassExpression{46}ᐸ__post_com...al_set__.vᐳ[298]"):::bucket - classDef bucket47 stroke:#3cb371 - class Bucket47 bucket47 - Bucket48("Bucket 48 (listItem)
Deps: 10, 321, 406

ROOT __Item{48}ᐸ308ᐳ[309]"):::bucket - classDef bucket48 stroke:#a52a2a - class Bucket48,__Item309,PgSelectSingle310 bucket48 - Bucket49("Bucket 49 (nullableBoundary)
Deps: 310, 10, 321, 406

ROOT PgSelectSingle{48}ᐸpostᐳ[310]
1:
ᐳ: 311, 312, 313, 314
2: PgSelect[322], PgSelect[330]
3: PgSelectRows[323], PgSelectRows[332]"):::bucket - classDef bucket49 stroke:#ff00ff - class Bucket49,PgClassExpression311,PgClassExpression312,PgClassExpression313,PgClassExpression314,PgSelect322,PgSelectRows323,PgSelect330,PgSelectRows332 bucket49 - Bucket50("Bucket 50 (listItem)

ROOT __Item{50}ᐸ323ᐳ[324]"):::bucket - classDef bucket50 stroke:#f5deb3 - class Bucket50,__Item324,PgSelectSingle325,PgClassExpression326 bucket50 - Bucket51("Bucket 51 (nullableBoundary)
Deps: 326

ROOT PgClassExpression{50}ᐸ__post_com...al_set__.vᐳ[326]"):::bucket - classDef bucket51 stroke:#696969 - class Bucket51 bucket51 - Bucket52("Bucket 52 (listItem)

ROOT __Item{52}ᐸ332ᐳ[333]"):::bucket - classDef bucket52 stroke:#00bfff - class Bucket52,__Item333,PgSelectSingle334,PgClassExpression335 bucket52 - Bucket53("Bucket 53 (nullableBoundary)
Deps: 335

ROOT PgClassExpression{52}ᐸ__post_com...al_set__.vᐳ[335]"):::bucket - classDef bucket53 stroke:#7f007f - class Bucket53 bucket53 - Bucket54("Bucket 54 (listItem)
Deps: 10, 354, 406

ROOT __Item{54}ᐸ341ᐳ[342]
1:
ᐳ: 343, 344, 345, 346, 347
2: PgSelect[355], PgSelect[363]
3: PgSelectRows[356], PgSelectRows[365]"):::bucket - classDef bucket54 stroke:#ffa500 - class Bucket54,__Item342,PgSelectSingle343,PgClassExpression344,PgClassExpression345,PgClassExpression346,PgClassExpression347,PgSelect355,PgSelectRows356,PgSelect363,PgSelectRows365 bucket54 - Bucket55("Bucket 55 (listItem)

ROOT __Item{55}ᐸ356ᐳ[357]"):::bucket - classDef bucket55 stroke:#0000ff - class Bucket55,__Item357,PgSelectSingle358,PgClassExpression359 bucket55 - Bucket56("Bucket 56 (nullableBoundary)
Deps: 359

ROOT PgClassExpression{55}ᐸ__post_com...al_set__.vᐳ[359]"):::bucket - classDef bucket56 stroke:#7fff00 - class Bucket56 bucket56 - Bucket57("Bucket 57 (listItem)

ROOT __Item{57}ᐸ365ᐳ[366]"):::bucket - classDef bucket57 stroke:#ff1493 - class Bucket57,__Item366,PgSelectSingle367,PgClassExpression368 bucket57 - Bucket58("Bucket 58 (nullableBoundary)
Deps: 368

ROOT PgClassExpression{57}ᐸ__post_com...al_set__.vᐳ[368]"):::bucket - classDef bucket58 stroke:#808000 - class Bucket58 bucket58 - Bucket59("Bucket 59 (listItem)

ROOT __Item{59}ᐸ376ᐳ[377]"):::bucket - classDef bucket59 stroke:#dda0dd - class Bucket59,__Item377,PgSelectSingle378 bucket59 - Bucket60("Bucket 60 (nullableBoundary)
Deps: 378

ROOT PgSelectSingle{59}ᐸcompound_keyᐳ[378]"):::bucket - classDef bucket60 stroke:#ff0000 - class Bucket60,PgClassExpression379,PgClassExpression380 bucket60 - Bucket61("Bucket 61 (listItem)

ROOT __Item{61}ᐸ387ᐳ[388]"):::bucket - classDef bucket61 stroke:#ffff00 - class Bucket61,__Item388,PgSelectSingle389 bucket61 - Bucket62("Bucket 62 (nullableBoundary)
Deps: 389

ROOT PgSelectSingle{61}ᐸcompound_keyᐳ[389]"):::bucket - classDef bucket62 stroke:#00ffff - class Bucket62,PgClassExpression390,PgClassExpression391 bucket62 - Bucket63("Bucket 63 (listItem)

ROOT __Item{63}ᐸ394ᐳ[395]"):::bucket - classDef bucket63 stroke:#4169e1 - class Bucket63,__Item395,PgSelectSingle396,PgClassExpression397,PgClassExpression398 bucket63 - Bucket64("Bucket 64 (listItem)

ROOT __Item{64}ᐸ401ᐳ[402]"):::bucket - classDef bucket64 stroke:#3cb371 - class Bucket64,__Item402,PgSelectSingle403,PgClassExpression404,PgClassExpression405 bucket64 - Bucket0 --> Bucket1 & Bucket34 - Bucket1 --> Bucket2 & Bucket6 & Bucket12 & Bucket17 & Bucket23 & Bucket28 & Bucket30 & Bucket32 & Bucket33 + class Bucket36,__Item432,PgSelectSingle433,PgClassExpression434,PgClassExpression435 bucket36 + Bucket0 --> Bucket1 & Bucket20 + Bucket1 --> Bucket2 & Bucket4 & Bucket7 & Bucket10 & Bucket13 & Bucket16 & Bucket17 & Bucket18 & Bucket19 Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket6 --> Bucket7 - Bucket7 --> Bucket8 & Bucket10 - Bucket8 --> Bucket9 - Bucket10 --> Bucket11 - Bucket12 --> Bucket13 & Bucket15 - Bucket13 --> Bucket14 - Bucket15 --> Bucket16 - Bucket17 --> Bucket18 - Bucket18 --> Bucket19 & Bucket21 - Bucket19 --> Bucket20 - Bucket21 --> Bucket22 - Bucket23 --> Bucket24 & Bucket26 - Bucket24 --> Bucket25 - Bucket26 --> Bucket27 - Bucket28 --> Bucket29 - Bucket30 --> Bucket31 - Bucket34 --> Bucket35 - Bucket35 --> Bucket36 - Bucket36 --> Bucket37 & Bucket43 & Bucket48 & Bucket54 & Bucket59 & Bucket61 & Bucket63 & Bucket64 - Bucket37 --> Bucket38 - Bucket38 --> Bucket39 & Bucket41 - Bucket39 --> Bucket40 - Bucket41 --> Bucket42 - Bucket43 --> Bucket44 & Bucket46 - Bucket44 --> Bucket45 - Bucket46 --> Bucket47 - Bucket48 --> Bucket49 - Bucket49 --> Bucket50 & Bucket52 - Bucket50 --> Bucket51 - Bucket52 --> Bucket53 - Bucket54 --> Bucket55 & Bucket57 - Bucket55 --> Bucket56 - Bucket57 --> Bucket58 - Bucket59 --> Bucket60 - Bucket61 --> Bucket62 + Bucket4 --> Bucket5 & Bucket6 + Bucket7 --> Bucket8 & Bucket9 + Bucket10 --> Bucket11 & Bucket12 + Bucket13 --> Bucket14 & Bucket15 + Bucket20 --> Bucket21 & Bucket24 & Bucket27 & Bucket30 & Bucket33 & Bucket34 & Bucket35 & Bucket36 + Bucket21 --> Bucket22 & Bucket23 + Bucket24 --> Bucket25 & Bucket26 + Bucket27 --> Bucket28 & Bucket29 + Bucket30 --> Bucket31 & Bucket32 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/simple-procedure-computed-fields.sql b/postgraphile/postgraphile/__tests__/queries/v4/simple-procedure-computed-fields.sql index e3e77c1fd3..d38e2c9c2e 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/simple-procedure-computed-fields.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/simple-procedure-computed-fields.sql @@ -6,6 +6,12 @@ select from "c"."person" as __person__ order by __person__."id" asc; +select + __person__."id"::text as "0", + __person__."person_full_name" as "1" +from "c"."person" as __person__ +order by __person__."id" asc; + select __person_friends_result__.* from (select ids.ordinality - 1 as idx, (ids.value->>0)::"c"."person" as "id0" from json_array_elements($1::json) with ordinality as ids) as __person_friends_identifiers__, lateral ( @@ -107,23 +113,6 @@ lateral ( order by __compound_key__."person_id_1" asc, __compound_key__."person_id_2" asc ) as __compound_key_result__; -select - __person__."id"::text as "0", - __person__."person_full_name" as "1" -from "c"."person" as __person__ -order by __person__."id" asc; - -select __person_friends_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"c"."person" as "id0" from json_array_elements($1::json) with ordinality as ids) as __person_friends_identifiers__, -lateral ( - select - __person_friends__."person_full_name" as "0", - "c"."person_first_name"(__person_friends__) as "1", - __person_friends_identifiers__.idx as "2" - from "c"."person_friends"(__person_friends_identifiers__."id0") as __person_friends__ - limit 1 -) as __person_friends_result__; - select __post_computed_interval_set_result__.* from (select ids.ordinality - 1 as idx, (ids.value->>0)::"a"."post" as "id0" from json_array_elements($1::json) with ordinality as ids) as __post_computed_interval_set_identifiers__, lateral ( @@ -147,4 +136,15 @@ lateral ( select to_char(__post_computed_interval_set__.v, 'YYYY_MM_DD_HH24_MI_SS.US'::text) as "0" from "a"."post_computed_interval_set"($1::"a"."post") as __post_computed_interval_set__(v) -limit 1; \ No newline at end of file +limit 1; + +select __person_friends_result__.* +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"c"."person" as "id0" from json_array_elements($1::json) with ordinality as ids) as __person_friends_identifiers__, +lateral ( + select + __person_friends__."person_full_name" as "0", + "c"."person_first_name"(__person_friends__) as "1", + __person_friends_identifiers__.idx as "2" + from "c"."person_friends"(__person_friends_identifiers__."id0") as __person_friends__ + limit 1 +) as __person_friends_result__; \ No newline at end of file diff --git a/postgraphile/postgraphile/__tests__/queries/v4/simple-procedure-query.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/simple-procedure-query.mermaid index 4be79cc3d7..b9f376c34c 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/simple-procedure-query.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/simple-procedure-query.mermaid @@ -9,168 +9,147 @@ graph TD %% plan dependencies - PgSelect42[["PgSelect[42∈0] ➊
ᐸint_set_queryᐳ"]]:::plan + PgSelect41[["PgSelect[41∈0] ➊
ᐸint_set_queryᐳ"]]:::plan Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant84{{"Constant[84∈0] ➊
ᐸ5ᐳ"}}:::plan - Constant41{{"Constant[41∈0] ➊
ᐸnullᐳ"}}:::plan - Constant86{{"Constant[86∈0] ➊
ᐸ6ᐳ"}}:::plan - Object11 & Constant84 & Constant41 & Constant86 --> PgSelect42 - PgSelect33[["PgSelect[33∈0] ➊
ᐸtable_set_queryᐳ"]]:::plan - Constant85{{"Constant[85∈0] ➊
ᐸ2ᐳ"}}:::plan - Object11 & Constant85 & Constant85 --> PgSelect33 + PgFromExpression43{{"PgFromExpression[43∈0] ➊"}}:::plan + Object11 & PgFromExpression43 --> PgSelect41 PgSelect8[["PgSelect[8∈0] ➊
ᐸcompound_type_set_queryᐳ"]]:::plan - Object11 & Constant84 --> PgSelect8 + Constant85{{"Constant[85∈0] ➊
ᐸ5ᐳ"}}:::plan + Object11 & Constant85 --> PgSelect8 + PgSelect25[["PgSelect[25∈0] ➊
ᐸtable_set_queryᐳ"]]:::plan + Object11 --> PgSelect25 + PgSelect33[["PgSelect[33∈0] ➊
ᐸtable_set_queryᐳ"]]:::plan + Constant86{{"Constant[86∈0] ➊
ᐸ2ᐳ"}}:::plan + Object11 --> PgSelect33 + Constant86 -- 2 --> PgSelect33 + Constant87{{"Constant[87∈0] ➊
ᐸ6ᐳ"}}:::plan + Constant85 & Constant87 --> PgFromExpression43 + PgSelect48[["PgSelect[48∈0] ➊
ᐸstatic_big_integerᐳ"]]:::plan + Object11 --> PgSelect48 + PgSelect54[["PgSelect[54∈0] ➊
ᐸquery_interval_setᐳ"]]:::plan + Object11 --> PgSelect54 + PgSelect67[["PgSelect[67∈0] ➊
ᐸpostᐳ"]]:::plan + Constant88{{"Constant[88∈0] ➊
ᐸ1ᐳ"}}:::plan + Object11 & Constant88 --> PgSelect67 Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access9 & Access10 --> Object11 - PgSelect67[["PgSelect[67∈0] ➊
ᐸpostᐳ"]]:::plan - Constant87{{"Constant[87∈0] ➊
ᐸ1ᐳ"}}:::plan - Object11 & Constant87 --> PgSelect67 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access9 __Value2 --> Access10 PgSelectRows12[["PgSelectRows[12∈0] ➊"]]:::plan PgSelect8 --> PgSelectRows12 - PgSelect25[["PgSelect[25∈0] ➊
ᐸtable_set_queryᐳ"]]:::plan - Object11 --> PgSelect25 PgSelectRows27[["PgSelectRows[27∈0] ➊"]]:::plan PgSelect25 --> PgSelectRows27 PgSelectRows35[["PgSelectRows[35∈0] ➊"]]:::plan PgSelect33 --> PgSelectRows35 PgSelectRows44[["PgSelectRows[44∈0] ➊"]]:::plan - PgSelect42 --> PgSelectRows44 - PgSelect48[["PgSelect[48∈0] ➊
ᐸstatic_big_integerᐳ"]]:::plan - Object11 --> PgSelect48 + PgSelect41 --> PgSelectRows44 PgSelectRows50[["PgSelectRows[50∈0] ➊"]]:::plan PgSelect48 --> PgSelectRows50 - PgSelect54[["PgSelect[54∈0] ➊
ᐸquery_interval_setᐳ"]]:::plan - Object11 --> PgSelect54 PgSelectRows56[["PgSelectRows[56∈0] ➊"]]:::plan PgSelect54 --> PgSelectRows56 PgSelectRows69[["PgSelectRows[69∈0] ➊"]]:::plan PgSelect67 --> PgSelectRows69 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgFromExpression78{{"PgFromExpression[78∈0] ➊"}}:::plan __Item13[/"__Item[13∈1]
ᐸ12ᐳ"\]:::itemplan PgSelectRows12 ==> __Item13 PgSelectSingle14{{"PgSelectSingle[14∈1]
ᐸcompound_type_set_queryᐳ"}}:::plan __Item13 --> PgSelectSingle14 - PgClassExpression15{{"PgClassExpression[15∈2]
ᐸ__compound...uery__.”a”ᐳ"}}:::plan + PgClassExpression15{{"PgClassExpression[15∈1]
ᐸ__compound...uery__.”a”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression15 - PgClassExpression16{{"PgClassExpression[16∈2]
ᐸ__compound...uery__.”b”ᐳ"}}:::plan + PgClassExpression16{{"PgClassExpression[16∈1]
ᐸ__compound...uery__.”b”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression16 - PgClassExpression17{{"PgClassExpression[17∈2]
ᐸ__compound...uery__.”c”ᐳ"}}:::plan + PgClassExpression17{{"PgClassExpression[17∈1]
ᐸ__compound...uery__.”c”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression17 - PgClassExpression18{{"PgClassExpression[18∈2]
ᐸ__compound...uery__.”d”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__compound...uery__.”d”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈2]
ᐸ__compound...uery__.”e”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__compound...uery__.”e”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈2]
ᐸ__compound...uery__.”f”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__compound...uery__.”f”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈2]
ᐸ__compound...uery__.”g”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__compound...uery__.”g”ᐳ"}}:::plan PgSelectSingle14 --> PgClassExpression21 - __Item28[/"__Item[28∈4]
ᐸ27ᐳ"\]:::itemplan + __Item28[/"__Item[28∈2]
ᐸ27ᐳ"\]:::itemplan PgSelectRows27 ==> __Item28 - PgSelectSingle29{{"PgSelectSingle[29∈4]
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle29{{"PgSelectSingle[29∈2]
ᐸtable_set_queryᐳ"}}:::plan __Item28 --> PgSelectSingle29 - PgClassExpression30{{"PgClassExpression[30∈5]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__table_se...full_name”ᐳ"}}:::plan PgSelectSingle29 --> PgClassExpression30 - __Item36[/"__Item[36∈6]
ᐸ35ᐳ"\]:::itemplan + __Item36[/"__Item[36∈3]
ᐸ35ᐳ"\]:::itemplan PgSelectRows35 ==> __Item36 - PgSelectSingle37{{"PgSelectSingle[37∈6]
ᐸtable_set_queryᐳ"}}:::plan + PgSelectSingle37{{"PgSelectSingle[37∈3]
ᐸtable_set_queryᐳ"}}:::plan __Item36 --> PgSelectSingle37 - PgClassExpression38{{"PgClassExpression[38∈7]
ᐸ__table_se...full_name”ᐳ"}}:::plan + PgClassExpression38{{"PgClassExpression[38∈3]
ᐸ__table_se...full_name”ᐳ"}}:::plan PgSelectSingle37 --> PgClassExpression38 - __Item45[/"__Item[45∈8]
ᐸ44ᐳ"\]:::itemplan + __Item45[/"__Item[45∈4]
ᐸ44ᐳ"\]:::itemplan PgSelectRows44 ==> __Item45 - PgSelectSingle46{{"PgSelectSingle[46∈8]
ᐸint_set_queryᐳ"}}:::plan + PgSelectSingle46{{"PgSelectSingle[46∈4]
ᐸint_set_queryᐳ"}}:::plan __Item45 --> PgSelectSingle46 - PgClassExpression47{{"PgClassExpression[47∈8]
ᐸ__int_set_query__.vᐳ"}}:::plan + PgClassExpression47{{"PgClassExpression[47∈4]
ᐸ__int_set_query__.vᐳ"}}:::plan PgSelectSingle46 --> PgClassExpression47 - __Item51[/"__Item[51∈9]
ᐸ50ᐳ"\]:::itemplan + __Item51[/"__Item[51∈5]
ᐸ50ᐳ"\]:::itemplan PgSelectRows50 ==> __Item51 - PgSelectSingle52{{"PgSelectSingle[52∈9]
ᐸstatic_big_integerᐳ"}}:::plan + PgSelectSingle52{{"PgSelectSingle[52∈5]
ᐸstatic_big_integerᐳ"}}:::plan __Item51 --> PgSelectSingle52 - PgClassExpression53{{"PgClassExpression[53∈9]
ᐸ__static_b...nteger__.vᐳ"}}:::plan + PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__static_b...nteger__.vᐳ"}}:::plan PgSelectSingle52 --> PgClassExpression53 - __Item57[/"__Item[57∈10]
ᐸ56ᐳ"\]:::itemplan + __Item57[/"__Item[57∈6]
ᐸ56ᐳ"\]:::itemplan PgSelectRows56 ==> __Item57 - PgSelectSingle58{{"PgSelectSingle[58∈10]
ᐸquery_interval_setᐳ"}}:::plan + PgSelectSingle58{{"PgSelectSingle[58∈6]
ᐸquery_interval_setᐳ"}}:::plan __Item57 --> PgSelectSingle58 - PgClassExpression59{{"PgClassExpression[59∈10]
ᐸ__query_in...al_set__.vᐳ"}}:::plan + PgClassExpression59{{"PgClassExpression[59∈6]
ᐸ__query_in...al_set__.vᐳ"}}:::plan PgSelectSingle58 --> PgClassExpression59 - PgSelect74[["PgSelect[74∈12]
ᐸpost_computed_interval_setᐳ"]]:::plan - PgClassExpression73{{"PgClassExpression[73∈12]
ᐸ__post__ᐳ"}}:::plan - Object11 & PgClassExpression73 --> PgSelect74 - __Item70[/"__Item[70∈12]
ᐸ69ᐳ"\]:::itemplan + PgSelect74[["PgSelect[74∈7]
ᐸpost_computed_interval_setᐳ"]]:::plan + PgClassExpression73{{"PgClassExpression[73∈7]
ᐸ__post__ᐳ"}}:::plan + Object11 & PgClassExpression73 & PgFromExpression78 --> PgSelect74 + __Item70[/"__Item[70∈7]
ᐸ69ᐳ"\]:::itemplan PgSelectRows69 ==> __Item70 - PgSelectSingle71{{"PgSelectSingle[71∈12]
ᐸpostᐳ"}}:::plan + PgSelectSingle71{{"PgSelectSingle[71∈7]
ᐸpostᐳ"}}:::plan __Item70 --> PgSelectSingle71 - PgClassExpression72{{"PgClassExpression[72∈12]
ᐸ__post__.”id”ᐳ"}}:::plan + PgClassExpression72{{"PgClassExpression[72∈7]
ᐸ__post__.”id”ᐳ"}}:::plan PgSelectSingle71 --> PgClassExpression72 PgSelectSingle71 --> PgClassExpression73 - PgSelectRows78[["PgSelectRows[78∈12]"]]:::plan - PgSelect74 --> PgSelectRows78 - __Item79[/"__Item[79∈13]
ᐸ78ᐳ"\]:::itemplan - PgSelectRows78 ==> __Item79 - PgSelectSingle80{{"PgSelectSingle[80∈13]
ᐸpost_computed_interval_setᐳ"}}:::plan - __Item79 --> PgSelectSingle80 - PgClassExpression81{{"PgClassExpression[81∈13]
ᐸ__post_com...al_set__.vᐳ"}}:::plan - PgSelectSingle80 --> PgClassExpression81 + PgSelectRows79[["PgSelectRows[79∈7]"]]:::plan + PgSelect74 --> PgSelectRows79 + __Item80[/"__Item[80∈8]
ᐸ79ᐳ"\]:::itemplan + PgSelectRows79 ==> __Item80 + PgSelectSingle81{{"PgSelectSingle[81∈8]
ᐸpost_computed_interval_setᐳ"}}:::plan + __Item80 --> PgSelectSingle81 + PgClassExpression82{{"PgClassExpression[82∈8]
ᐸ__post_com...al_set__.vᐳ"}}:::plan + PgSelectSingle81 --> PgClassExpression82 %% define steps subgraph "Buckets for queries/v4/simple-procedure-query" - Bucket0("Bucket 0 (root)

1:
ᐳ: 9, 10, 41, 84, 85, 86, 87, 11
2: 8, 25, 33, 42, 48, 54, 67
3: 12, 27, 35, 44, 50, 56, 69"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 9, 10, 78, 85, 86, 87, 88, 11, 43
2: 8, 25, 33, 41, 48, 54, 67
3: 12, 27, 35, 44, 50, 56, 69"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,PgSelect25,PgSelectRows27,PgSelect33,PgSelectRows35,Constant41,PgSelect42,PgSelectRows44,PgSelect48,PgSelectRows50,PgSelect54,PgSelectRows56,PgSelect67,PgSelectRows69,Constant84,Constant85,Constant86,Constant87 bucket0 + class Bucket0,__Value2,__Value4,PgSelect8,Access9,Access10,Object11,PgSelectRows12,PgSelect25,PgSelectRows27,PgSelect33,PgSelectRows35,PgSelect41,PgFromExpression43,PgSelectRows44,PgSelect48,PgSelectRows50,PgSelect54,PgSelectRows56,PgSelect67,PgSelectRows69,PgFromExpression78,Constant85,Constant86,Constant87,Constant88 bucket0 Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ12ᐳ[13]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item13,PgSelectSingle14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgSelectSingle{1}ᐸcompound_type_set_queryᐳ[14]"):::bucket + class Bucket1,__Item13,PgSelectSingle14,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ27ᐳ[28]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression15,PgClassExpression16,PgClassExpression17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 21

ROOT PgClassExpression{2}ᐸ__compound...uery__.”g”ᐳ[21]"):::bucket + class Bucket2,__Item28,PgSelectSingle29,PgClassExpression30 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ35ᐳ[36]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ27ᐳ[28]"):::bucket + class Bucket3,__Item36,PgSelectSingle37,PgClassExpression38 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ44ᐳ[45]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item28,PgSelectSingle29 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 29

ROOT PgSelectSingle{4}ᐸtable_set_queryᐳ[29]"):::bucket + class Bucket4,__Item45,PgSelectSingle46,PgClassExpression47 bucket4 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ50ᐳ[51]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression30 bucket5 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ35ᐳ[36]"):::bucket + class Bucket5,__Item51,PgSelectSingle52,PgClassExpression53 bucket5 + Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ56ᐳ[57]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,__Item36,PgSelectSingle37 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 37

ROOT PgSelectSingle{6}ᐸtable_set_queryᐳ[37]"):::bucket + class Bucket6,__Item57,PgSelectSingle58,PgClassExpression59 bucket6 + Bucket7("Bucket 7 (listItem)
Deps: 11, 78, 7

ROOT __Item{7}ᐸ69ᐳ[70]
1:
ᐳ: 71, 72, 73
2: PgSelect[74]
3: PgSelectRows[79]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression38 bucket7 - Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ44ᐳ[45]"):::bucket + class Bucket7,__Item70,PgSelectSingle71,PgClassExpression72,PgClassExpression73,PgSelect74,PgSelectRows79 bucket7 + Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ79ᐳ[80]"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8,__Item45,PgSelectSingle46,PgClassExpression47 bucket8 - Bucket9("Bucket 9 (listItem)

ROOT __Item{9}ᐸ50ᐳ[51]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,__Item51,PgSelectSingle52,PgClassExpression53 bucket9 - Bucket10("Bucket 10 (listItem)

ROOT __Item{10}ᐸ56ᐳ[57]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,__Item57,PgSelectSingle58,PgClassExpression59 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 59

ROOT PgClassExpression{10}ᐸ__query_in...al_set__.vᐳ[59]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11 bucket11 - Bucket12("Bucket 12 (listItem)
Deps: 11

ROOT __Item{12}ᐸ69ᐳ[70]
1:
ᐳ: 71, 72, 73
2: PgSelect[74]
3: PgSelectRows[78]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,__Item70,PgSelectSingle71,PgClassExpression72,PgClassExpression73,PgSelect74,PgSelectRows78 bucket12 - Bucket13("Bucket 13 (listItem)

ROOT __Item{13}ᐸ78ᐳ[79]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,__Item79,PgSelectSingle80,PgClassExpression81 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 81

ROOT PgClassExpression{13}ᐸ__post_com...al_set__.vᐳ[81]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14 bucket14 - Bucket0 --> Bucket1 & Bucket4 & Bucket6 & Bucket8 & Bucket9 & Bucket10 & Bucket12 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket6 --> Bucket7 - Bucket10 --> Bucket11 - Bucket12 --> Bucket13 - Bucket13 --> Bucket14 + class Bucket8,__Item80,PgSelectSingle81,PgClassExpression82 bucket8 + Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 + Bucket7 --> Bucket8 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/simple-relations-head-tail.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/simple-relations-head-tail.mermaid index fbba5ee09d..926600aba5 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/simple-relations-head-tail.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/simple-relations-head-tail.mermaid @@ -9,33 +9,37 @@ graph TD %% plan dependencies + PgSelect7[["PgSelect[7∈0] ➊
ᐸpersonᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object10 --> PgSelect7 + PgSelect50[["PgSelect[50∈0] ➊
ᐸcompound_keyᐳ"]]:::plan + Object10 --> PgSelect50 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 - PgSelect7[["PgSelect[7∈0] ➊
ᐸpersonᐳ"]]:::plan - Object10 --> PgSelect7 + __InputObject26{{"__InputObject[26∈0] ➊"}}:::plan + Constant58{{"Constant[58∈0] ➊
ᐸ'Large bet on myself in round one.'ᐳ"}}:::plan + Constant58 --> __InputObject26 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 PgSelectRows11[["PgSelectRows[11∈0] ➊"]]:::plan PgSelect7 --> PgSelectRows11 - PgSelect49[["PgSelect[49∈0] ➊
ᐸcompound_keyᐳ"]]:::plan - Object10 --> PgSelect49 - PgSelectRows51[["PgSelectRows[51∈0] ➊"]]:::plan - PgSelect49 --> PgSelectRows51 + ApplyInput30{{"ApplyInput[30∈0] ➊"}}:::plan + __InputObject26 --> ApplyInput30 + PgSelectRows52[["PgSelectRows[52∈0] ➊"]]:::plan + PgSelect50 --> PgSelectRows52 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant56{{"Constant[56∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant57{{"Constant[57∈0] ➊
ᐸ'Large bet on myself in round one.'ᐳ"}}:::plan - PgSelect17[["PgSelect[17∈1]
ᐸpostᐳ"]]:::plan - PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__person__.”id”ᐳ"}}:::plan - Object10 & PgClassExpression14 & Constant56 --> PgSelect17 + Constant57{{"Constant[57∈0] ➊
ᐸ2ᐳ"}}:::plan PgSelect28[["PgSelect[28∈1]
ᐸpostᐳ"]]:::plan - Object10 & PgClassExpression14 & Constant57 --> PgSelect28 - PgSelect35[["PgSelect[35∈1]
ᐸcompound_keyᐳ"]]:::plan - Object10 & PgClassExpression14 --> PgSelect35 - PgSelect42[["PgSelect[42∈1]
ᐸcompound_keyᐳ"]]:::plan - Object10 & PgClassExpression14 --> PgSelect42 + PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + Object10 & PgClassExpression14 & ApplyInput30 --> PgSelect28 + PgSelect17[["PgSelect[17∈1]
ᐸpostᐳ"]]:::plan + Object10 & PgClassExpression14 & Constant57 --> PgSelect17 + PgSelect36[["PgSelect[36∈1]
ᐸcompound_keyᐳ"]]:::plan + Object10 & PgClassExpression14 --> PgSelect36 + PgSelect43[["PgSelect[43∈1]
ᐸcompound_keyᐳ"]]:::plan + Object10 & PgClassExpression14 --> PgSelect43 __Item12[/"__Item[12∈1]
ᐸ11ᐳ"\]:::itemplan PgSelectRows11 ==> __Item12 PgSelectSingle13{{"PgSelectSingle[13∈1]
ᐸpersonᐳ"}}:::plan @@ -45,12 +49,12 @@ graph TD PgSelectSingle13 --> PgClassExpression15 PgSelectRows21[["PgSelectRows[21∈1]"]]:::plan PgSelect17 --> PgSelectRows21 - PgSelectRows30[["PgSelectRows[30∈1]"]]:::plan - PgSelect28 --> PgSelectRows30 - PgSelectRows37[["PgSelectRows[37∈1]"]]:::plan - PgSelect35 --> PgSelectRows37 - PgSelectRows44[["PgSelectRows[44∈1]"]]:::plan - PgSelect42 --> PgSelectRows44 + PgSelectRows31[["PgSelectRows[31∈1]"]]:::plan + PgSelect28 --> PgSelectRows31 + PgSelectRows38[["PgSelectRows[38∈1]"]]:::plan + PgSelect36 --> PgSelectRows38 + PgSelectRows45[["PgSelectRows[45∈1]"]]:::plan + PgSelect43 --> PgSelectRows45 __Item22[/"__Item[22∈2]
ᐸ21ᐳ"\]:::itemplan PgSelectRows21 ==> __Item22 PgSelectSingle23{{"PgSelectSingle[23∈2]
ᐸpostᐳ"}}:::plan @@ -59,63 +63,63 @@ graph TD PgSelectSingle23 --> PgClassExpression24 PgClassExpression25{{"PgClassExpression[25∈2]
ᐸ__post__.”author_id”ᐳ"}}:::plan PgSelectSingle23 --> PgClassExpression25 - __Item31[/"__Item[31∈3]
ᐸ30ᐳ"\]:::itemplan - PgSelectRows30 ==> __Item31 - PgSelectSingle32{{"PgSelectSingle[32∈3]
ᐸpostᐳ"}}:::plan - __Item31 --> PgSelectSingle32 - PgClassExpression33{{"PgClassExpression[33∈3]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle32 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈3]
ᐸ__post__.”author_id”ᐳ"}}:::plan - PgSelectSingle32 --> PgClassExpression34 - __Item38[/"__Item[38∈4]
ᐸ37ᐳ"\]:::itemplan - PgSelectRows37 ==> __Item38 - PgSelectSingle39{{"PgSelectSingle[39∈4]
ᐸcompound_keyᐳ"}}:::plan - __Item38 --> PgSelectSingle39 - PgClassExpression40{{"PgClassExpression[40∈4]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression41 - __Item45[/"__Item[45∈5]
ᐸ44ᐳ"\]:::itemplan - PgSelectRows44 ==> __Item45 - PgSelectSingle46{{"PgSelectSingle[46∈5]
ᐸcompound_keyᐳ"}}:::plan - __Item45 --> PgSelectSingle46 - PgClassExpression47{{"PgClassExpression[47∈5]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle46 --> PgClassExpression47 - PgClassExpression48{{"PgClassExpression[48∈5]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle46 --> PgClassExpression48 - __Item52[/"__Item[52∈6]
ᐸ51ᐳ"\]:::itemplan - PgSelectRows51 ==> __Item52 - PgSelectSingle53{{"PgSelectSingle[53∈6]
ᐸcompound_keyᐳ"}}:::plan - __Item52 --> PgSelectSingle53 - PgClassExpression54{{"PgClassExpression[54∈6]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression54 - PgClassExpression55{{"PgClassExpression[55∈6]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle53 --> PgClassExpression55 + __Item32[/"__Item[32∈3]
ᐸ31ᐳ"\]:::itemplan + PgSelectRows31 ==> __Item32 + PgSelectSingle33{{"PgSelectSingle[33∈3]
ᐸpostᐳ"}}:::plan + __Item32 --> PgSelectSingle33 + PgClassExpression34{{"PgClassExpression[34∈3]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression34 + PgClassExpression35{{"PgClassExpression[35∈3]
ᐸ__post__.”author_id”ᐳ"}}:::plan + PgSelectSingle33 --> PgClassExpression35 + __Item39[/"__Item[39∈4]
ᐸ38ᐳ"\]:::itemplan + PgSelectRows38 ==> __Item39 + PgSelectSingle40{{"PgSelectSingle[40∈4]
ᐸcompound_keyᐳ"}}:::plan + __Item39 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈4]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 + __Item46[/"__Item[46∈5]
ᐸ45ᐳ"\]:::itemplan + PgSelectRows45 ==> __Item46 + PgSelectSingle47{{"PgSelectSingle[47∈5]
ᐸcompound_keyᐳ"}}:::plan + __Item46 --> PgSelectSingle47 + PgClassExpression48{{"PgClassExpression[48∈5]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression48 + PgClassExpression49{{"PgClassExpression[49∈5]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression49 + __Item53[/"__Item[53∈6]
ᐸ52ᐳ"\]:::itemplan + PgSelectRows52 ==> __Item53 + PgSelectSingle54{{"PgSelectSingle[54∈6]
ᐸcompound_keyᐳ"}}:::plan + __Item53 --> PgSelectSingle54 + PgClassExpression55{{"PgClassExpression[55∈6]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle54 --> PgClassExpression55 + PgClassExpression56{{"PgClassExpression[56∈6]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle54 --> PgClassExpression56 %% define steps subgraph "Buckets for queries/v4/simple-relations-head-tail" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 56, 57, 10
2: PgSelect[7], PgSelect[49]
3: PgSelectRows[11], PgSelectRows[51]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 57, 58, 10, 26, 30
2: PgSelect[7], PgSelect[50]
3: PgSelectRows[11], PgSelectRows[52]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11,PgSelect49,PgSelectRows51,Constant56,Constant57 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 10, 56, 57

ROOT __Item{1}ᐸ11ᐳ[12]
1:
ᐳ: 13, 14, 15
2: 17, 28, 35, 42
3: 21, 30, 37, 44"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11,__InputObject26,ApplyInput30,PgSelect50,PgSelectRows52,Constant57,Constant58 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 10, 57, 6, 30

ROOT __Item{1}ᐸ11ᐳ[12]
1:
ᐳ: 13, 14, 15
2: 17, 28, 36, 43
3: 21, 31, 38, 45"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgSelect17,PgSelectRows21,PgSelect28,PgSelectRows30,PgSelect35,PgSelectRows37,PgSelect42,PgSelectRows44 bucket1 + class Bucket1,__Item12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgSelect17,PgSelectRows21,PgSelect28,PgSelectRows31,PgSelect36,PgSelectRows38,PgSelect43,PgSelectRows45 bucket1 Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ21ᐳ[22]"):::bucket classDef bucket2 stroke:#7f007f class Bucket2,__Item22,PgSelectSingle23,PgClassExpression24,PgClassExpression25 bucket2 - Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ30ᐳ[31]"):::bucket + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ31ᐳ[32]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,__Item31,PgSelectSingle32,PgClassExpression33,PgClassExpression34 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ37ᐳ[38]"):::bucket + class Bucket3,__Item32,PgSelectSingle33,PgClassExpression34,PgClassExpression35 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ38ᐳ[39]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item38,PgSelectSingle39,PgClassExpression40,PgClassExpression41 bucket4 - Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ44ᐳ[45]"):::bucket + class Bucket4,__Item39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket4 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ45ᐳ[46]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item45,PgSelectSingle46,PgClassExpression47,PgClassExpression48 bucket5 - Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ51ᐳ[52]"):::bucket + class Bucket5,__Item46,PgSelectSingle47,PgClassExpression48,PgClassExpression49 bucket5 + Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ52ᐳ[53]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,__Item52,PgSelectSingle53,PgClassExpression54,PgClassExpression55 bucket6 + class Bucket6,__Item53,PgSelectSingle54,PgClassExpression55,PgClassExpression56 bucket6 Bucket0 --> Bucket1 & Bucket6 Bucket1 --> Bucket2 & Bucket3 & Bucket4 & Bucket5 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/simple-relations-tail-head.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/simple-relations-tail-head.mermaid index acdb3c63c8..d1cfc364ca 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/simple-relations-tail-head.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/simple-relations-tail-head.mermaid @@ -9,21 +9,21 @@ graph TD %% plan dependencies + PgSelect7[["PgSelect[7∈0] ➊
ᐸcompound_keyᐳ"]]:::plan Object10{{"Object[10∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Object10 --> PgSelect7 + PgSelect34[["PgSelect[34∈0] ➊
ᐸforeign_keyᐳ"]]:::plan + Object10 --> PgSelect34 Access8{{"Access[8∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan Access9{{"Access[9∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan Access8 & Access9 --> Object10 - PgSelect7[["PgSelect[7∈0] ➊
ᐸcompound_keyᐳ"]]:::plan - Object10 --> PgSelect7 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan __Value2 --> Access8 __Value2 --> Access9 PgSelectRows11[["PgSelectRows[11∈0] ➊"]]:::plan PgSelect7 --> PgSelectRows11 - PgSelect37[["PgSelect[37∈0] ➊
ᐸforeign_keyᐳ"]]:::plan - Object10 --> PgSelect37 - PgSelectRows39[["PgSelectRows[39∈0] ➊"]]:::plan - PgSelect37 --> PgSelectRows39 + PgSelectRows37[["PgSelectRows[37∈0] ➊"]]:::plan + PgSelect34 --> PgSelectRows37 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan PgSelect17[["PgSelect[17∈1]
ᐸpersonᐳ"]]:::plan PgClassExpression14{{"PgClassExpression[14∈1]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan @@ -45,82 +45,68 @@ graph TD PgSelect17 --> PgSelectRows22 PgSelectSingle23{{"PgSelectSingle[23∈1]
ᐸpersonᐳ"}}:::plan First21 --> PgSelectSingle23 + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle23 --> PgClassExpression24 + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle23 --> PgClassExpression25 First28{{"First[28∈1]"}}:::plan PgSelectRows29[["PgSelectRows[29∈1]"]]:::plan PgSelectRows29 --> First28 PgSelect26 --> PgSelectRows29 PgSelectSingle30{{"PgSelectSingle[30∈1]
ᐸpersonᐳ"}}:::plan First28 --> PgSelectSingle30 - PgClassExpression24{{"PgClassExpression[24∈2]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈2]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle23 --> PgClassExpression25 - PgClassExpression31{{"PgClassExpression[31∈3]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgClassExpression31{{"PgClassExpression[31∈1]
ᐸ__person__...full_name”ᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈3]
ᐸ__person__.”email”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__person__.”email”ᐳ"}}:::plan PgSelectSingle30 --> PgClassExpression32 - PgSelect54[["PgSelect[54∈4]
ᐸcompound_keyᐳ"]]:::plan - PgClassExpression43{{"PgClassExpression[43∈4]
ᐸ__foreign_...und_key_1”ᐳ"}}:::plan - PgClassExpression44{{"PgClassExpression[44∈4]
ᐸ__foreign_...und_key_2”ᐳ"}}:::plan - Object10 & PgClassExpression43 & PgClassExpression44 --> PgSelect54 - PgSelect45[["PgSelect[45∈4]
ᐸpersonᐳ"]]:::plan - PgClassExpression42{{"PgClassExpression[42∈4]
ᐸ__foreign_...person_id”ᐳ"}}:::plan - Object10 & PgClassExpression42 --> PgSelect45 - __Item40[/"__Item[40∈4]
ᐸ39ᐳ"\]:::itemplan - PgSelectRows39 ==> __Item40 - PgSelectSingle41{{"PgSelectSingle[41∈4]
ᐸforeign_keyᐳ"}}:::plan - __Item40 --> PgSelectSingle41 - PgSelectSingle41 --> PgClassExpression42 - PgSelectSingle41 --> PgClassExpression43 - PgSelectSingle41 --> PgClassExpression44 - First49{{"First[49∈4]"}}:::plan - PgSelectRows50[["PgSelectRows[50∈4]"]]:::plan - PgSelectRows50 --> First49 - PgSelect45 --> PgSelectRows50 - PgSelectSingle51{{"PgSelectSingle[51∈4]
ᐸpersonᐳ"}}:::plan - First49 --> PgSelectSingle51 - First56{{"First[56∈4]"}}:::plan - PgSelectRows57[["PgSelectRows[57∈4]"]]:::plan - PgSelectRows57 --> First56 - PgSelect54 --> PgSelectRows57 - PgSelectSingle58{{"PgSelectSingle[58∈4]
ᐸcompound_keyᐳ"}}:::plan - First56 --> PgSelectSingle58 - PgClassExpression52{{"PgClassExpression[52∈5]
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression52 - PgClassExpression53{{"PgClassExpression[53∈5]
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle51 --> PgClassExpression53 - PgClassExpression59{{"PgClassExpression[59∈6]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle58 --> PgClassExpression59 - PgClassExpression60{{"PgClassExpression[60∈6]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle58 --> PgClassExpression60 - PgClassExpression61{{"PgClassExpression[61∈6]
ᐸ__compound...__.”extra”ᐳ"}}:::plan - PgSelectSingle58 --> PgClassExpression61 + PgSelect52[["PgSelect[52∈2]
ᐸcompound_keyᐳ"]]:::plan + PgClassExpression41{{"PgClassExpression[41∈2]
ᐸ__foreign_...und_key_1”ᐳ"}}:::plan + PgClassExpression42{{"PgClassExpression[42∈2]
ᐸ__foreign_...und_key_2”ᐳ"}}:::plan + Object10 & PgClassExpression41 & PgClassExpression42 --> PgSelect52 + PgSelect43[["PgSelect[43∈2]
ᐸpersonᐳ"]]:::plan + PgClassExpression40{{"PgClassExpression[40∈2]
ᐸ__foreign_...person_id”ᐳ"}}:::plan + Object10 & PgClassExpression40 --> PgSelect43 + __Item38[/"__Item[38∈2]
ᐸ37ᐳ"\]:::itemplan + PgSelectRows37 ==> __Item38 + PgSelectSingle39{{"PgSelectSingle[39∈2]
ᐸforeign_keyᐳ"}}:::plan + __Item38 --> PgSelectSingle39 + PgSelectSingle39 --> PgClassExpression40 + PgSelectSingle39 --> PgClassExpression41 + PgSelectSingle39 --> PgClassExpression42 + First47{{"First[47∈2]"}}:::plan + PgSelectRows48[["PgSelectRows[48∈2]"]]:::plan + PgSelectRows48 --> First47 + PgSelect43 --> PgSelectRows48 + PgSelectSingle49{{"PgSelectSingle[49∈2]
ᐸpersonᐳ"}}:::plan + First47 --> PgSelectSingle49 + PgClassExpression50{{"PgClassExpression[50∈2]
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle49 --> PgClassExpression50 + PgClassExpression51{{"PgClassExpression[51∈2]
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle49 --> PgClassExpression51 + First54{{"First[54∈2]"}}:::plan + PgSelectRows55[["PgSelectRows[55∈2]"]]:::plan + PgSelectRows55 --> First54 + PgSelect52 --> PgSelectRows55 + PgSelectSingle56{{"PgSelectSingle[56∈2]
ᐸcompound_keyᐳ"}}:::plan + First54 --> PgSelectSingle56 + PgClassExpression57{{"PgClassExpression[57∈2]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle56 --> PgClassExpression57 + PgClassExpression58{{"PgClassExpression[58∈2]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle56 --> PgClassExpression58 + PgClassExpression59{{"PgClassExpression[59∈2]
ᐸ__compound...__.”extra”ᐳ"}}:::plan + PgSelectSingle56 --> PgClassExpression59 %% define steps subgraph "Buckets for queries/v4/simple-relations-tail-head" - Bucket0("Bucket 0 (root)

1:
ᐳ: Access[8], Access[9], Object[10]
2: PgSelect[7], PgSelect[37]
3: PgSelectRows[11], PgSelectRows[39]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 8, 9, 10
2: PgSelect[7], PgSelect[34]
3: PgSelectRows[11], PgSelectRows[37]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11,PgSelect37,PgSelectRows39 bucket0 - Bucket1("Bucket 1 (listItem)
Deps: 10

ROOT __Item{1}ᐸ11ᐳ[12]
1:
ᐳ: 13, 14, 15, 16
2: PgSelect[17], PgSelect[26]
3: PgSelectRows[22], PgSelectRows[29]
ᐳ: 21, 23, 28, 30"):::bucket + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,PgSelectRows11,PgSelect34,PgSelectRows37 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 10

ROOT __Item{1}ᐸ11ᐳ[12]
1:
ᐳ: 13, 14, 15, 16
2: PgSelect[17], PgSelect[26]
3: PgSelectRows[22], PgSelectRows[29]
ᐳ: 21, 23, 24, 25, 28, 30, 31, 32"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,__Item12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgSelect17,First21,PgSelectRows22,PgSelectSingle23,PgSelect26,First28,PgSelectRows29,PgSelectSingle30 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 23

ROOT PgSelectSingle{1}ᐸpersonᐳ[23]"):::bucket + class Bucket1,__Item12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgClassExpression16,PgSelect17,First21,PgSelectRows22,PgSelectSingle23,PgClassExpression24,PgClassExpression25,PgSelect26,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,PgClassExpression32 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 10

ROOT __Item{2}ᐸ37ᐳ[38]
1:
ᐳ: 39, 40, 41, 42
2: PgSelect[43], PgSelect[52]
3: PgSelectRows[48], PgSelectRows[55]
ᐳ: 47, 49, 50, 51, 54, 56, 57, 58, 59"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression24,PgClassExpression25 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 30

ROOT PgSelectSingle{1}ᐸpersonᐳ[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression31,PgClassExpression32 bucket3 - Bucket4("Bucket 4 (listItem)
Deps: 10

ROOT __Item{4}ᐸ39ᐳ[40]
1:
ᐳ: 41, 42, 43, 44
2: PgSelect[45], PgSelect[54]
3: PgSelectRows[50], PgSelectRows[57]
ᐳ: 49, 51, 56, 58"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item40,PgSelectSingle41,PgClassExpression42,PgClassExpression43,PgClassExpression44,PgSelect45,First49,PgSelectRows50,PgSelectSingle51,PgSelect54,First56,PgSelectRows57,PgSelectSingle58 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 51

ROOT PgSelectSingle{4}ᐸpersonᐳ[51]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression52,PgClassExpression53 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 58

ROOT PgSelectSingle{4}ᐸcompound_keyᐳ[58]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression59,PgClassExpression60,PgClassExpression61 bucket6 - Bucket0 --> Bucket1 & Bucket4 - Bucket1 --> Bucket2 & Bucket3 - Bucket4 --> Bucket5 & Bucket6 + class Bucket2,__Item38,PgSelectSingle39,PgClassExpression40,PgClassExpression41,PgClassExpression42,PgSelect43,First47,PgSelectRows48,PgSelectSingle49,PgClassExpression50,PgClassExpression51,PgSelect52,First54,PgSelectRows55,PgSelectSingle56,PgClassExpression57,PgClassExpression58,PgClassExpression59 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/smart_comment_relations.houses.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/smart_comment_relations.houses.mermaid index 64b9a1128c..e41aeb61a6 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/smart_comment_relations.houses.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/smart_comment_relations.houses.mermaid @@ -9,496 +9,415 @@ graph TD %% plan dependencies - PgSelect251[["PgSelect[251∈0] ➊
ᐸhousesᐳ"]]:::plan - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Constant283{{"Constant[283∈0] ➊
ᐸ2ᐳ"}}:::plan - Constant284{{"Constant[284∈0] ➊
ᐸ3ᐳ"}}:::plan - Object12 & Constant283 & Constant284 --> PgSelect251 - PgSelect270[["PgSelect[270∈0] ➊
ᐸhousesᐳ"]]:::plan - Access266{{"Access[266∈0] ➊
ᐸ265.1ᐳ"}}:::plan - Access268{{"Access[268∈0] ➊
ᐸ265.2ᐳ"}}:::plan - Object12 -->|rejectNull| PgSelect270 - Access266 -->|rejectNull| PgSelect270 - Access268 --> PgSelect270 - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸhousesᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Connection42{{"Connection[42∈0] ➊
ᐸ40ᐳ"}}:::plan + Connection77{{"Connection[77∈0] ➊
ᐸ75ᐳ"}}:::plan + Connection112{{"Connection[112∈0] ➊
ᐸ110ᐳ"}}:::plan + Connection145{{"Connection[145∈0] ➊
ᐸ143ᐳ"}}:::plan + Connection176{{"Connection[176∈0] ➊
ᐸ174ᐳ"}}:::plan + Connection209{{"Connection[209∈0] ➊
ᐸ207ᐳ"}}:::plan + PgSelect222[["PgSelect[222∈0] ➊
ᐸhousesᐳ"]]:::plan + Constant253{{"Constant[253∈0] ➊
ᐸ2ᐳ"}}:::plan + Constant254{{"Constant[254∈0] ➊
ᐸ3ᐳ"}}:::plan + Object11 & Constant253 & Constant254 --> PgSelect222 + List233{{"List[233∈0] ➊
ᐸ18,231,232ᐳ"}}:::plan + Constant18{{"Constant[18∈0] ➊
ᐸ'houses'ᐳ"}}:::plan + PgClassExpression231{{"PgClassExpression[231∈0] ➊
ᐸ__houses__.”street_id”ᐳ"}}:::plan + PgClassExpression232{{"PgClassExpression[232∈0] ➊
ᐸ__houses__...operty_id”ᐳ"}}:::plan + Constant18 & PgClassExpression231 & PgClassExpression232 --> List233 + PgSelect241[["PgSelect[241∈0] ➊
ᐸhousesᐳ"]]:::plan + Access237{{"Access[237∈0] ➊
ᐸ236.1ᐳ"}}:::plan + Access239{{"Access[239∈0] ➊
ᐸ236.2ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect241 + Access237 -->|rejectNull| PgSelect241 + Access239 --> PgSelect241 + List251{{"List[251∈0] ➊
ᐸ18,249,250ᐳ"}}:::plan + PgClassExpression249{{"PgClassExpression[249∈0] ➊
ᐸ__houses__.”street_id”ᐳ"}}:::plan + PgClassExpression250{{"PgClassExpression[250∈0] ➊
ᐸ__houses__...operty_id”ᐳ"}}:::plan + Constant18 & PgClassExpression249 & PgClassExpression250 --> List251 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - First253{{"First[253∈0] ➊"}}:::plan - PgSelectRows254[["PgSelectRows[254∈0] ➊"]]:::plan - PgSelectRows254 --> First253 - PgSelect251 --> PgSelectRows254 - PgSelectSingle255{{"PgSelectSingle[255∈0] ➊
ᐸhousesᐳ"}}:::plan - First253 --> PgSelectSingle255 - Lambda265{{"Lambda[265∈0] ➊
ᐸspecifier_House_base64JSONᐳ"}}:::plan - Constant285{{"Constant[285∈0] ➊
ᐸ'WyJob3VzZXMiLDIsM10='ᐳ"}}:::plan - Constant285 --> Lambda265 - Lambda265 --> Access266 - Lambda265 --> Access268 - First272{{"First[272∈0] ➊"}}:::plan - PgSelectRows273[["PgSelectRows[273∈0] ➊"]]:::plan - PgSelectRows273 --> First272 - PgSelect270 --> PgSelectRows273 - PgSelectSingle274{{"PgSelectSingle[274∈0] ➊
ᐸhousesᐳ"}}:::plan - First272 --> PgSelectSingle274 + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan + PgSelect14 --> PgSelectRows15 + First224{{"First[224∈0] ➊"}}:::plan + PgSelectRows225[["PgSelectRows[225∈0] ➊"]]:::plan + PgSelectRows225 --> First224 + PgSelect222 --> PgSelectRows225 + PgSelectSingle226{{"PgSelectSingle[226∈0] ➊
ᐸhousesᐳ"}}:::plan + First224 --> PgSelectSingle226 + PgClassExpression227{{"PgClassExpression[227∈0] ➊
ᐸ__houses__...ding_name”ᐳ"}}:::plan + PgSelectSingle226 --> PgClassExpression227 + PgClassExpression228{{"PgClassExpression[228∈0] ➊
ᐸ__houses__...or_number”ᐳ"}}:::plan + PgSelectSingle226 --> PgClassExpression228 + PgClassExpression229{{"PgClassExpression[229∈0] ➊
ᐸ__houses__...reet_name”ᐳ"}}:::plan + PgSelectSingle226 --> PgClassExpression229 + PgSelectSingle226 --> PgClassExpression231 + PgSelectSingle226 --> PgClassExpression232 + Lambda234{{"Lambda[234∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List233 --> Lambda234 + Lambda236{{"Lambda[236∈0] ➊
ᐸspecifier_House_base64JSONᐳ"}}:::plan + Constant255{{"Constant[255∈0] ➊
ᐸ'WyJob3VzZXMiLDIsM10='ᐳ"}}:::plan + Constant255 --> Lambda236 + Lambda236 --> Access237 + Lambda236 --> Access239 + First243{{"First[243∈0] ➊"}}:::plan + PgSelectRows244[["PgSelectRows[244∈0] ➊"]]:::plan + PgSelectRows244 --> First243 + PgSelect241 --> PgSelectRows244 + PgSelectSingle245{{"PgSelectSingle[245∈0] ➊
ᐸhousesᐳ"}}:::plan + First243 --> PgSelectSingle245 + PgClassExpression246{{"PgClassExpression[246∈0] ➊
ᐸ__houses__...ding_name”ᐳ"}}:::plan + PgSelectSingle245 --> PgClassExpression246 + PgClassExpression247{{"PgClassExpression[247∈0] ➊
ᐸ__houses__...or_number”ᐳ"}}:::plan + PgSelectSingle245 --> PgClassExpression247 + PgClassExpression248{{"PgClassExpression[248∈0] ➊
ᐸ__houses__...reet_name”ᐳ"}}:::plan + PgSelectSingle245 --> PgClassExpression248 + PgSelectSingle245 --> PgClassExpression249 + PgSelectSingle245 --> PgClassExpression250 + Lambda252{{"Lambda[252∈0] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan + List251 --> Lambda252 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Constant18{{"Constant[18∈0] ➊
ᐸ'houses'ᐳ"}}:::plan Constant34{{"Constant[34∈0] ➊
ᐸ'streets'ᐳ"}}:::plan - Connection45{{"Connection[45∈0] ➊
ᐸ41ᐳ"}}:::plan - Constant50{{"Constant[50∈0] ➊
ᐸ'buildings'ᐳ"}}:::plan - Connection85{{"Connection[85∈0] ➊
ᐸ81ᐳ"}}:::plan - Constant101{{"Constant[101∈0] ➊
ᐸ'properties'ᐳ"}}:::plan - Connection125{{"Connection[125∈0] ➊
ᐸ121ᐳ"}}:::plan - Connection164{{"Connection[164∈0] ➊
ᐸ160ᐳ"}}:::plan - Connection200{{"Connection[200∈0] ➊
ᐸ196ᐳ"}}:::plan - Connection239{{"Connection[239∈0] ➊
ᐸ235ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸhousesᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan - PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + Constant48{{"Constant[48∈0] ➊
ᐸ'buildings'ᐳ"}}:::plan + Constant94{{"Constant[94∈0] ➊
ᐸ'properties'ᐳ"}}:::plan + PgSelect44[["PgSelect[44∈1]
ᐸbuildingsᐳ"]]:::plan + PgClassExpression38{{"PgClassExpression[38∈1]
ᐸ__streets__.”name”ᐳ"}}:::plan + Object11 & PgClassExpression38 & Connection42 --> PgSelect44 + PgSelect79[["PgSelect[79∈1]
ᐸbuildingsᐳ"]]:::plan + PgClassExpression73{{"PgClassExpression[73∈1]
ᐸ__streets__.”name”ᐳ"}}:::plan + Object11 & PgClassExpression73 & Connection77 --> PgSelect79 + PgSelect114[["PgSelect[114∈1]
ᐸbuildingsᐳ"]]:::plan + PgClassExpression108{{"PgClassExpression[108∈1]
ᐸ__streets__.”name”ᐳ"}}:::plan + Object11 & PgClassExpression108 & Connection112 --> PgSelect114 + PgSelect147[["PgSelect[147∈1]
ᐸbuildingsᐳ"]]:::plan + PgClassExpression141{{"PgClassExpression[141∈1]
ᐸ__streets__.”name”ᐳ"}}:::plan + Object11 & PgClassExpression141 & Connection145 --> PgSelect147 + PgSelect178[["PgSelect[178∈1]
ᐸbuildingsᐳ"]]:::plan + PgClassExpression172{{"PgClassExpression[172∈1]
ᐸ__streets__.”name”ᐳ"}}:::plan + Object11 & PgClassExpression172 & Connection176 --> PgSelect178 + PgSelect211[["PgSelect[211∈1]
ᐸbuildingsᐳ"]]:::plan + PgClassExpression205{{"PgClassExpression[205∈1]
ᐸ__streets__.”name”ᐳ"}}:::plan + Object11 & PgClassExpression205 & Connection209 --> PgSelect211 + List21{{"List[21∈1]
ᐸ18,19,20ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__houses__.”street_id”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__houses__...operty_id”ᐳ"}}:::plan + Constant18 & PgClassExpression19 & PgClassExpression20 --> List21 + PgSelect156[["PgSelect[156∈1]
ᐸstreet_propertyᐳ"]]:::plan + Object11 & PgClassExpression19 & PgClassExpression20 --> PgSelect156 + PgSelect27[["PgSelect[27∈1]
ᐸstreetsᐳ"]]:::plan + Object11 & PgClassExpression19 --> PgSelect27 + List36{{"List[36∈1]
ᐸ34,35ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈1]
ᐸ__streets__.”id”ᐳ"}}:::plan + Constant34 & PgClassExpression35 --> List36 + PgSelect53[["PgSelect[53∈1]
ᐸbuildingsᐳ"]]:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__houses__...ilding_id”ᐳ"}}:::plan + Object11 & PgClassExpression26 --> PgSelect53 + List60{{"List[60∈1]
ᐸ48,59ᐳ"}}:::plan + PgClassExpression59{{"PgClassExpression[59∈1]
ᐸ__buildings__.”id”ᐳ"}}:::plan + Constant48 & PgClassExpression59 --> List60 + PgSelect65[["PgSelect[65∈1]
ᐸstreetsᐳ"]]:::plan + PgClassExpression62{{"PgClassExpression[62∈1]
ᐸ__buildings__.”name”ᐳ"}}:::plan + Object11 & PgClassExpression62 --> PgSelect65 + List71{{"List[71∈1]
ᐸ34,70ᐳ"}}:::plan + PgClassExpression70{{"PgClassExpression[70∈1]
ᐸ__streets__.”id”ᐳ"}}:::plan + Constant34 & PgClassExpression70 --> List71 + PgSelect89[["PgSelect[89∈1]
ᐸpropertiesᐳ"]]:::plan + PgClassExpression88{{"PgClassExpression[88∈1]
ᐸ__building...operty_id”ᐳ"}}:::plan + Object11 & PgClassExpression88 --> PgSelect89 + List96{{"List[96∈1]
ᐸ94,95ᐳ"}}:::plan + PgClassExpression95{{"PgClassExpression[95∈1]
ᐸ__properties__.”id”ᐳ"}}:::plan + Constant94 & PgClassExpression95 --> List96 + PgSelect100[["PgSelect[100∈1]
ᐸstreetsᐳ"]]:::plan + PgClassExpression98{{"PgClassExpression[98∈1]
ᐸ__properti...street_id”ᐳ"}}:::plan + Object11 & PgClassExpression98 --> PgSelect100 + List106{{"List[106∈1]
ᐸ34,105ᐳ"}}:::plan + PgClassExpression105{{"PgClassExpression[105∈1]
ᐸ__streets__.”id”ᐳ"}}:::plan + Constant34 & PgClassExpression105 --> List106 + PgSelect123[["PgSelect[123∈1]
ᐸpropertiesᐳ"]]:::plan + Object11 & PgClassExpression20 --> PgSelect123 + List129{{"List[129∈1]
ᐸ94,128ᐳ"}}:::plan + PgClassExpression128{{"PgClassExpression[128∈1]
ᐸ__properties__.”id”ᐳ"}}:::plan + Constant94 & PgClassExpression128 --> List129 + PgSelect133[["PgSelect[133∈1]
ᐸstreetsᐳ"]]:::plan + PgClassExpression131{{"PgClassExpression[131∈1]
ᐸ__properti...street_id”ᐳ"}}:::plan + Object11 & PgClassExpression131 --> PgSelect133 + List139{{"List[139∈1]
ᐸ34,138ᐳ"}}:::plan + PgClassExpression138{{"PgClassExpression[138∈1]
ᐸ__streets__.”id”ᐳ"}}:::plan + Constant34 & PgClassExpression138 --> List139 + PgSelect164[["PgSelect[164∈1]
ᐸstreetsᐳ"]]:::plan + PgClassExpression161{{"PgClassExpression[161∈1]
ᐸ__street_p..._.”str_id”ᐳ"}}:::plan + Object11 & PgClassExpression161 --> PgSelect164 + List170{{"List[170∈1]
ᐸ34,169ᐳ"}}:::plan + PgClassExpression169{{"PgClassExpression[169∈1]
ᐸ__streets__.”id”ᐳ"}}:::plan + Constant34 & PgClassExpression169 --> List170 + PgSelect187[["PgSelect[187∈1]
ᐸpropertiesᐳ"]]:::plan + PgClassExpression162{{"PgClassExpression[162∈1]
ᐸ__street_p....”prop_id”ᐳ"}}:::plan + Object11 & PgClassExpression162 --> PgSelect187 + List193{{"List[193∈1]
ᐸ94,192ᐳ"}}:::plan + PgClassExpression192{{"PgClassExpression[192∈1]
ᐸ__properties__.”id”ᐳ"}}:::plan + Constant94 & PgClassExpression192 --> List193 + PgSelect197[["PgSelect[197∈1]
ᐸstreetsᐳ"]]:::plan + PgClassExpression195{{"PgClassExpression[195∈1]
ᐸ__properti...street_id”ᐳ"}}:::plan + Object11 & PgClassExpression195 --> PgSelect197 + List203{{"List[203∈1]
ᐸ34,202ᐳ"}}:::plan + PgClassExpression202{{"PgClassExpression[202∈1]
ᐸ__streets__.”id”ᐳ"}}:::plan + Constant34 & PgClassExpression202 --> List203 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸhousesᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸhousesᐳ"}}:::plan __Item16 --> PgSelectSingle17 - List21{{"List[21∈3]
ᐸ18,19,20ᐳ"}}:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__houses__.”street_id”ᐳ"}}:::plan - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__houses__...operty_id”ᐳ"}}:::plan - Constant18 & PgClassExpression19 & PgClassExpression20 --> List21 - PgSelect174[["PgSelect[174∈3]
ᐸstreet_propertyᐳ"]]:::plan - Object12 & PgClassExpression19 & PgClassExpression20 --> PgSelect174 - PgSelect27[["PgSelect[27∈3]
ᐸstreetsᐳ"]]:::plan - Object12 & PgClassExpression19 --> PgSelect27 - PgSelect55[["PgSelect[55∈3]
ᐸbuildingsᐳ"]]:::plan - PgClassExpression26{{"PgClassExpression[26∈3]
ᐸ__houses__...ilding_id”ᐳ"}}:::plan - Object12 & PgClassExpression26 --> PgSelect55 - PgSelect135[["PgSelect[135∈3]
ᐸpropertiesᐳ"]]:::plan - Object12 & PgClassExpression20 --> PgSelect135 PgSelectSingle17 --> PgClassExpression19 PgSelectSingle17 --> PgClassExpression20 - Lambda22{{"Lambda[22∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda22{{"Lambda[22∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan List21 --> Lambda22 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__houses__...ding_name”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__houses__...ding_name”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__houses__...or_number”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__houses__...or_number”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__houses__...reet_name”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__houses__...reet_name”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression25 PgSelectSingle17 --> PgClassExpression26 - First31{{"First[31∈3]"}}:::plan - PgSelectRows32[["PgSelectRows[32∈3]"]]:::plan + First31{{"First[31∈1]"}}:::plan + PgSelectRows32[["PgSelectRows[32∈1]"]]:::plan PgSelectRows32 --> First31 PgSelect27 --> PgSelectRows32 - PgSelectSingle33{{"PgSelectSingle[33∈3]
ᐸstreetsᐳ"}}:::plan + PgSelectSingle33{{"PgSelectSingle[33∈1]
ᐸstreetsᐳ"}}:::plan First31 --> PgSelectSingle33 - First57{{"First[57∈3]"}}:::plan - PgSelectRows58[["PgSelectRows[58∈3]"]]:::plan - PgSelectRows58 --> First57 - PgSelect55 --> PgSelectRows58 - PgSelectSingle59{{"PgSelectSingle[59∈3]
ᐸbuildingsᐳ"}}:::plan - First57 --> PgSelectSingle59 - First137{{"First[137∈3]"}}:::plan - PgSelectRows138[["PgSelectRows[138∈3]"]]:::plan - PgSelectRows138 --> First137 - PgSelect135 --> PgSelectRows138 - PgSelectSingle139{{"PgSelectSingle[139∈3]
ᐸpropertiesᐳ"}}:::plan - First137 --> PgSelectSingle139 - First176{{"First[176∈3]"}}:::plan - PgSelectRows177[["PgSelectRows[177∈3]"]]:::plan - PgSelectRows177 --> First176 - PgSelect174 --> PgSelectRows177 - PgSelectSingle178{{"PgSelectSingle[178∈3]
ᐸstreet_propertyᐳ"}}:::plan - First176 --> PgSelectSingle178 - PgSelect46[["PgSelect[46∈4]
ᐸbuildingsᐳ"]]:::plan - PgClassExpression38{{"PgClassExpression[38∈4]
ᐸ__streets__.”name”ᐳ"}}:::plan - Object12 & PgClassExpression38 & Connection45 --> PgSelect46 - List36{{"List[36∈4]
ᐸ34,35ᐳ"}}:::plan - PgClassExpression35{{"PgClassExpression[35∈4]
ᐸ__streets__.”id”ᐳ"}}:::plan - Constant34 & PgClassExpression35 --> List36 PgSelectSingle33 --> PgClassExpression35 - Lambda37{{"Lambda[37∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda37{{"Lambda[37∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan List36 --> Lambda37 PgSelectSingle33 --> PgClassExpression38 - PgSelectRows47[["PgSelectRows[47∈4]"]]:::plan - PgSelect46 --> PgSelectRows47 - __Item48[/"__Item[48∈5]
ᐸ47ᐳ"\]:::itemplan - PgSelectRows47 ==> __Item48 - PgSelectSingle49{{"PgSelectSingle[49∈5]
ᐸbuildingsᐳ"}}:::plan - __Item48 --> PgSelectSingle49 - List52{{"List[52∈6]
ᐸ50,51ᐳ"}}:::plan - PgClassExpression51{{"PgClassExpression[51∈6]
ᐸ__buildings__.”id”ᐳ"}}:::plan - Constant50 & PgClassExpression51 --> List52 - PgSelectSingle49 --> PgClassExpression51 - Lambda53{{"Lambda[53∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan - List52 --> Lambda53 - PgClassExpression54{{"PgClassExpression[54∈6]
ᐸ__buildings__.”name”ᐳ"}}:::plan - PgSelectSingle49 --> PgClassExpression54 - List62{{"List[62∈7]
ᐸ50,61ᐳ"}}:::plan - PgClassExpression61{{"PgClassExpression[61∈7]
ᐸ__buildings__.”id”ᐳ"}}:::plan - Constant50 & PgClassExpression61 --> List62 - PgSelect67[["PgSelect[67∈7]
ᐸstreetsᐳ"]]:::plan - PgClassExpression64{{"PgClassExpression[64∈7]
ᐸ__buildings__.”name”ᐳ"}}:::plan - Object12 & PgClassExpression64 --> PgSelect67 - PgSelect96[["PgSelect[96∈7]
ᐸpropertiesᐳ"]]:::plan - PgClassExpression95{{"PgClassExpression[95∈7]
ᐸ__building...operty_id”ᐳ"}}:::plan - Object12 & PgClassExpression95 --> PgSelect96 - PgSelectSingle59 --> PgClassExpression61 - Lambda63{{"Lambda[63∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan - List62 --> Lambda63 - PgSelectSingle59 --> PgClassExpression64 - PgClassExpression65{{"PgClassExpression[65∈7]
ᐸ__buildings__.”floors”ᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression65 - PgClassExpression66{{"PgClassExpression[66∈7]
ᐸ__building...s_primary”ᐳ"}}:::plan - PgSelectSingle59 --> PgClassExpression66 - First71{{"First[71∈7]"}}:::plan - PgSelectRows72[["PgSelectRows[72∈7]"]]:::plan - PgSelectRows72 --> First71 - PgSelect67 --> PgSelectRows72 - PgSelectSingle73{{"PgSelectSingle[73∈7]
ᐸstreetsᐳ"}}:::plan - First71 --> PgSelectSingle73 - PgSelectSingle59 --> PgClassExpression95 - First98{{"First[98∈7]"}}:::plan - PgSelectRows99[["PgSelectRows[99∈7]"]]:::plan - PgSelectRows99 --> First98 - PgSelect96 --> PgSelectRows99 - PgSelectSingle100{{"PgSelectSingle[100∈7]
ᐸpropertiesᐳ"}}:::plan - First98 --> PgSelectSingle100 - PgSelect86[["PgSelect[86∈8]
ᐸbuildingsᐳ"]]:::plan - PgClassExpression78{{"PgClassExpression[78∈8]
ᐸ__streets__.”name”ᐳ"}}:::plan - Object12 & PgClassExpression78 & Connection85 --> PgSelect86 - List76{{"List[76∈8]
ᐸ34,75ᐳ"}}:::plan - PgClassExpression75{{"PgClassExpression[75∈8]
ᐸ__streets__.”id”ᐳ"}}:::plan - Constant34 & PgClassExpression75 --> List76 - PgSelectSingle73 --> PgClassExpression75 - Lambda77{{"Lambda[77∈8]
ᐸbase64JSONEncodeᐳ"}}:::plan - List76 --> Lambda77 - PgSelectSingle73 --> PgClassExpression78 - PgSelectRows87[["PgSelectRows[87∈8]"]]:::plan - PgSelect86 --> PgSelectRows87 - __Item88[/"__Item[88∈9]
ᐸ87ᐳ"\]:::itemplan - PgSelectRows87 ==> __Item88 - PgSelectSingle89{{"PgSelectSingle[89∈9]
ᐸbuildingsᐳ"}}:::plan - __Item88 --> PgSelectSingle89 - List92{{"List[92∈10]
ᐸ50,91ᐳ"}}:::plan - PgClassExpression91{{"PgClassExpression[91∈10]
ᐸ__buildings__.”id”ᐳ"}}:::plan - Constant50 & PgClassExpression91 --> List92 - PgSelectSingle89 --> PgClassExpression91 - Lambda93{{"Lambda[93∈10]
ᐸbase64JSONEncodeᐳ"}}:::plan - List92 --> Lambda93 - PgClassExpression94{{"PgClassExpression[94∈10]
ᐸ__buildings__.”name”ᐳ"}}:::plan - PgSelectSingle89 --> PgClassExpression94 - List103{{"List[103∈11]
ᐸ101,102ᐳ"}}:::plan - PgClassExpression102{{"PgClassExpression[102∈11]
ᐸ__properties__.”id”ᐳ"}}:::plan - Constant101 & PgClassExpression102 --> List103 - PgSelect107[["PgSelect[107∈11]
ᐸstreetsᐳ"]]:::plan - PgClassExpression105{{"PgClassExpression[105∈11]
ᐸ__properti...street_id”ᐳ"}}:::plan - Object12 & PgClassExpression105 --> PgSelect107 - PgSelectSingle100 --> PgClassExpression102 - Lambda104{{"Lambda[104∈11]
ᐸbase64JSONEncodeᐳ"}}:::plan - List103 --> Lambda104 - PgSelectSingle100 --> PgClassExpression105 - PgClassExpression106{{"PgClassExpression[106∈11]
ᐸ__properti...or_number”ᐳ"}}:::plan - PgSelectSingle100 --> PgClassExpression106 - First111{{"First[111∈11]"}}:::plan - PgSelectRows112[["PgSelectRows[112∈11]"]]:::plan - PgSelectRows112 --> First111 - PgSelect107 --> PgSelectRows112 - PgSelectSingle113{{"PgSelectSingle[113∈11]
ᐸstreetsᐳ"}}:::plan - First111 --> PgSelectSingle113 - PgSelect126[["PgSelect[126∈12]
ᐸbuildingsᐳ"]]:::plan - PgClassExpression118{{"PgClassExpression[118∈12]
ᐸ__streets__.”name”ᐳ"}}:::plan - Object12 & PgClassExpression118 & Connection125 --> PgSelect126 - List116{{"List[116∈12]
ᐸ34,115ᐳ"}}:::plan - PgClassExpression115{{"PgClassExpression[115∈12]
ᐸ__streets__.”id”ᐳ"}}:::plan - Constant34 & PgClassExpression115 --> List116 - PgSelectSingle113 --> PgClassExpression115 - Lambda117{{"Lambda[117∈12]
ᐸbase64JSONEncodeᐳ"}}:::plan - List116 --> Lambda117 - PgSelectSingle113 --> PgClassExpression118 - PgSelectRows127[["PgSelectRows[127∈12]"]]:::plan - PgSelect126 --> PgSelectRows127 - __Item128[/"__Item[128∈13]
ᐸ127ᐳ"\]:::itemplan - PgSelectRows127 ==> __Item128 - PgSelectSingle129{{"PgSelectSingle[129∈13]
ᐸbuildingsᐳ"}}:::plan - __Item128 --> PgSelectSingle129 - List132{{"List[132∈14]
ᐸ50,131ᐳ"}}:::plan - PgClassExpression131{{"PgClassExpression[131∈14]
ᐸ__buildings__.”id”ᐳ"}}:::plan - Constant50 & PgClassExpression131 --> List132 - PgSelectSingle129 --> PgClassExpression131 - Lambda133{{"Lambda[133∈14]
ᐸbase64JSONEncodeᐳ"}}:::plan - List132 --> Lambda133 - PgClassExpression134{{"PgClassExpression[134∈14]
ᐸ__buildings__.”name”ᐳ"}}:::plan - PgSelectSingle129 --> PgClassExpression134 - List142{{"List[142∈15]
ᐸ101,141ᐳ"}}:::plan - PgClassExpression141{{"PgClassExpression[141∈15]
ᐸ__properties__.”id”ᐳ"}}:::plan - Constant101 & PgClassExpression141 --> List142 - PgSelect146[["PgSelect[146∈15]
ᐸstreetsᐳ"]]:::plan - PgClassExpression144{{"PgClassExpression[144∈15]
ᐸ__properti...street_id”ᐳ"}}:::plan - Object12 & PgClassExpression144 --> PgSelect146 - PgSelectSingle139 --> PgClassExpression141 - Lambda143{{"Lambda[143∈15]
ᐸbase64JSONEncodeᐳ"}}:::plan - List142 --> Lambda143 - PgSelectSingle139 --> PgClassExpression144 - PgClassExpression145{{"PgClassExpression[145∈15]
ᐸ__properti...or_number”ᐳ"}}:::plan - PgSelectSingle139 --> PgClassExpression145 - First150{{"First[150∈15]"}}:::plan - PgSelectRows151[["PgSelectRows[151∈15]"]]:::plan - PgSelectRows151 --> First150 - PgSelect146 --> PgSelectRows151 - PgSelectSingle152{{"PgSelectSingle[152∈15]
ᐸstreetsᐳ"}}:::plan - First150 --> PgSelectSingle152 - PgSelect165[["PgSelect[165∈16]
ᐸbuildingsᐳ"]]:::plan - PgClassExpression157{{"PgClassExpression[157∈16]
ᐸ__streets__.”name”ᐳ"}}:::plan - Object12 & PgClassExpression157 & Connection164 --> PgSelect165 - List155{{"List[155∈16]
ᐸ34,154ᐳ"}}:::plan - PgClassExpression154{{"PgClassExpression[154∈16]
ᐸ__streets__.”id”ᐳ"}}:::plan - Constant34 & PgClassExpression154 --> List155 - PgSelectSingle152 --> PgClassExpression154 - Lambda156{{"Lambda[156∈16]
ᐸbase64JSONEncodeᐳ"}}:::plan - List155 --> Lambda156 - PgSelectSingle152 --> PgClassExpression157 - PgSelectRows166[["PgSelectRows[166∈16]"]]:::plan - PgSelect165 --> PgSelectRows166 - __Item167[/"__Item[167∈17]
ᐸ166ᐳ"\]:::itemplan - PgSelectRows166 ==> __Item167 - PgSelectSingle168{{"PgSelectSingle[168∈17]
ᐸbuildingsᐳ"}}:::plan - __Item167 --> PgSelectSingle168 - List171{{"List[171∈18]
ᐸ50,170ᐳ"}}:::plan - PgClassExpression170{{"PgClassExpression[170∈18]
ᐸ__buildings__.”id”ᐳ"}}:::plan - Constant50 & PgClassExpression170 --> List171 - PgSelectSingle168 --> PgClassExpression170 - Lambda172{{"Lambda[172∈18]
ᐸbase64JSONEncodeᐳ"}}:::plan - List171 --> Lambda172 - PgClassExpression173{{"PgClassExpression[173∈18]
ᐸ__buildings__.”name”ᐳ"}}:::plan - PgSelectSingle168 --> PgClassExpression173 - PgSelect182[["PgSelect[182∈19]
ᐸstreetsᐳ"]]:::plan - PgClassExpression179{{"PgClassExpression[179∈19]
ᐸ__street_p..._.”str_id”ᐳ"}}:::plan - Object12 & PgClassExpression179 --> PgSelect182 - PgSelect210[["PgSelect[210∈19]
ᐸpropertiesᐳ"]]:::plan - PgClassExpression180{{"PgClassExpression[180∈19]
ᐸ__street_p....”prop_id”ᐳ"}}:::plan - Object12 & PgClassExpression180 --> PgSelect210 - PgSelectSingle178 --> PgClassExpression179 - PgSelectSingle178 --> PgClassExpression180 - PgClassExpression181{{"PgClassExpression[181∈19]
ᐸ__street_p...ent_owner”ᐳ"}}:::plan - PgSelectSingle178 --> PgClassExpression181 - First186{{"First[186∈19]"}}:::plan - PgSelectRows187[["PgSelectRows[187∈19]"]]:::plan - PgSelectRows187 --> First186 - PgSelect182 --> PgSelectRows187 - PgSelectSingle188{{"PgSelectSingle[188∈19]
ᐸstreetsᐳ"}}:::plan - First186 --> PgSelectSingle188 - First212{{"First[212∈19]"}}:::plan - PgSelectRows213[["PgSelectRows[213∈19]"]]:::plan - PgSelectRows213 --> First212 - PgSelect210 --> PgSelectRows213 - PgSelectSingle214{{"PgSelectSingle[214∈19]
ᐸpropertiesᐳ"}}:::plan - First212 --> PgSelectSingle214 - PgSelect201[["PgSelect[201∈20]
ᐸbuildingsᐳ"]]:::plan - PgClassExpression193{{"PgClassExpression[193∈20]
ᐸ__streets__.”name”ᐳ"}}:::plan - Object12 & PgClassExpression193 & Connection200 --> PgSelect201 - List191{{"List[191∈20]
ᐸ34,190ᐳ"}}:::plan - PgClassExpression190{{"PgClassExpression[190∈20]
ᐸ__streets__.”id”ᐳ"}}:::plan - Constant34 & PgClassExpression190 --> List191 - PgSelectSingle188 --> PgClassExpression190 - Lambda192{{"Lambda[192∈20]
ᐸbase64JSONEncodeᐳ"}}:::plan - List191 --> Lambda192 - PgSelectSingle188 --> PgClassExpression193 - PgSelectRows202[["PgSelectRows[202∈20]"]]:::plan - PgSelect201 --> PgSelectRows202 - __Item203[/"__Item[203∈21]
ᐸ202ᐳ"\]:::itemplan - PgSelectRows202 ==> __Item203 - PgSelectSingle204{{"PgSelectSingle[204∈21]
ᐸbuildingsᐳ"}}:::plan - __Item203 --> PgSelectSingle204 - List207{{"List[207∈22]
ᐸ50,206ᐳ"}}:::plan - PgClassExpression206{{"PgClassExpression[206∈22]
ᐸ__buildings__.”id”ᐳ"}}:::plan - Constant50 & PgClassExpression206 --> List207 - PgSelectSingle204 --> PgClassExpression206 - Lambda208{{"Lambda[208∈22]
ᐸbase64JSONEncodeᐳ"}}:::plan - List207 --> Lambda208 - PgClassExpression209{{"PgClassExpression[209∈22]
ᐸ__buildings__.”name”ᐳ"}}:::plan - PgSelectSingle204 --> PgClassExpression209 - List217{{"List[217∈23]
ᐸ101,216ᐳ"}}:::plan - PgClassExpression216{{"PgClassExpression[216∈23]
ᐸ__properties__.”id”ᐳ"}}:::plan - Constant101 & PgClassExpression216 --> List217 - PgSelect221[["PgSelect[221∈23]
ᐸstreetsᐳ"]]:::plan - PgClassExpression219{{"PgClassExpression[219∈23]
ᐸ__properti...street_id”ᐳ"}}:::plan - Object12 & PgClassExpression219 --> PgSelect221 + PgSelectRows45[["PgSelectRows[45∈1]"]]:::plan + PgSelect44 --> PgSelectRows45 + First55{{"First[55∈1]"}}:::plan + PgSelectRows56[["PgSelectRows[56∈1]"]]:::plan + PgSelectRows56 --> First55 + PgSelect53 --> PgSelectRows56 + PgSelectSingle57{{"PgSelectSingle[57∈1]
ᐸbuildingsᐳ"}}:::plan + First55 --> PgSelectSingle57 + PgSelectSingle57 --> PgClassExpression59 + Lambda61{{"Lambda[61∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List60 --> Lambda61 + PgSelectSingle57 --> PgClassExpression62 + PgClassExpression63{{"PgClassExpression[63∈1]
ᐸ__buildings__.”floors”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression63 + PgClassExpression64{{"PgClassExpression[64∈1]
ᐸ__building...s_primary”ᐳ"}}:::plan + PgSelectSingle57 --> PgClassExpression64 + First67{{"First[67∈1]"}}:::plan + PgSelectRows68[["PgSelectRows[68∈1]"]]:::plan + PgSelectRows68 --> First67 + PgSelect65 --> PgSelectRows68 + PgSelectSingle69{{"PgSelectSingle[69∈1]
ᐸstreetsᐳ"}}:::plan + First67 --> PgSelectSingle69 + PgSelectSingle69 --> PgClassExpression70 + Lambda72{{"Lambda[72∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List71 --> Lambda72 + PgSelectSingle69 --> PgClassExpression73 + PgSelectRows80[["PgSelectRows[80∈1]"]]:::plan + PgSelect79 --> PgSelectRows80 + PgSelectSingle57 --> PgClassExpression88 + First91{{"First[91∈1]"}}:::plan + PgSelectRows92[["PgSelectRows[92∈1]"]]:::plan + PgSelectRows92 --> First91 + PgSelect89 --> PgSelectRows92 + PgSelectSingle93{{"PgSelectSingle[93∈1]
ᐸpropertiesᐳ"}}:::plan + First91 --> PgSelectSingle93 + PgSelectSingle93 --> PgClassExpression95 + Lambda97{{"Lambda[97∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List96 --> Lambda97 + PgSelectSingle93 --> PgClassExpression98 + PgClassExpression99{{"PgClassExpression[99∈1]
ᐸ__properti...or_number”ᐳ"}}:::plan + PgSelectSingle93 --> PgClassExpression99 + First102{{"First[102∈1]"}}:::plan + PgSelectRows103[["PgSelectRows[103∈1]"]]:::plan + PgSelectRows103 --> First102 + PgSelect100 --> PgSelectRows103 + PgSelectSingle104{{"PgSelectSingle[104∈1]
ᐸstreetsᐳ"}}:::plan + First102 --> PgSelectSingle104 + PgSelectSingle104 --> PgClassExpression105 + Lambda107{{"Lambda[107∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List106 --> Lambda107 + PgSelectSingle104 --> PgClassExpression108 + PgSelectRows115[["PgSelectRows[115∈1]"]]:::plan + PgSelect114 --> PgSelectRows115 + First125{{"First[125∈1]"}}:::plan + PgSelectRows126[["PgSelectRows[126∈1]"]]:::plan + PgSelectRows126 --> First125 + PgSelect123 --> PgSelectRows126 + PgSelectSingle127{{"PgSelectSingle[127∈1]
ᐸpropertiesᐳ"}}:::plan + First125 --> PgSelectSingle127 + PgSelectSingle127 --> PgClassExpression128 + Lambda130{{"Lambda[130∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List129 --> Lambda130 + PgSelectSingle127 --> PgClassExpression131 + PgClassExpression132{{"PgClassExpression[132∈1]
ᐸ__properti...or_number”ᐳ"}}:::plan + PgSelectSingle127 --> PgClassExpression132 + First135{{"First[135∈1]"}}:::plan + PgSelectRows136[["PgSelectRows[136∈1]"]]:::plan + PgSelectRows136 --> First135 + PgSelect133 --> PgSelectRows136 + PgSelectSingle137{{"PgSelectSingle[137∈1]
ᐸstreetsᐳ"}}:::plan + First135 --> PgSelectSingle137 + PgSelectSingle137 --> PgClassExpression138 + Lambda140{{"Lambda[140∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List139 --> Lambda140 + PgSelectSingle137 --> PgClassExpression141 + PgSelectRows148[["PgSelectRows[148∈1]"]]:::plan + PgSelect147 --> PgSelectRows148 + First158{{"First[158∈1]"}}:::plan + PgSelectRows159[["PgSelectRows[159∈1]"]]:::plan + PgSelectRows159 --> First158 + PgSelect156 --> PgSelectRows159 + PgSelectSingle160{{"PgSelectSingle[160∈1]
ᐸstreet_propertyᐳ"}}:::plan + First158 --> PgSelectSingle160 + PgSelectSingle160 --> PgClassExpression161 + PgSelectSingle160 --> PgClassExpression162 + PgClassExpression163{{"PgClassExpression[163∈1]
ᐸ__street_p...ent_owner”ᐳ"}}:::plan + PgSelectSingle160 --> PgClassExpression163 + First166{{"First[166∈1]"}}:::plan + PgSelectRows167[["PgSelectRows[167∈1]"]]:::plan + PgSelectRows167 --> First166 + PgSelect164 --> PgSelectRows167 + PgSelectSingle168{{"PgSelectSingle[168∈1]
ᐸstreetsᐳ"}}:::plan + First166 --> PgSelectSingle168 + PgSelectSingle168 --> PgClassExpression169 + Lambda171{{"Lambda[171∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List170 --> Lambda171 + PgSelectSingle168 --> PgClassExpression172 + PgSelectRows179[["PgSelectRows[179∈1]"]]:::plan + PgSelect178 --> PgSelectRows179 + First189{{"First[189∈1]"}}:::plan + PgSelectRows190[["PgSelectRows[190∈1]"]]:::plan + PgSelectRows190 --> First189 + PgSelect187 --> PgSelectRows190 + PgSelectSingle191{{"PgSelectSingle[191∈1]
ᐸpropertiesᐳ"}}:::plan + First189 --> PgSelectSingle191 + PgSelectSingle191 --> PgClassExpression192 + Lambda194{{"Lambda[194∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List193 --> Lambda194 + PgSelectSingle191 --> PgClassExpression195 + PgClassExpression196{{"PgClassExpression[196∈1]
ᐸ__properti...or_number”ᐳ"}}:::plan + PgSelectSingle191 --> PgClassExpression196 + First199{{"First[199∈1]"}}:::plan + PgSelectRows200[["PgSelectRows[200∈1]"]]:::plan + PgSelectRows200 --> First199 + PgSelect197 --> PgSelectRows200 + PgSelectSingle201{{"PgSelectSingle[201∈1]
ᐸstreetsᐳ"}}:::plan + First199 --> PgSelectSingle201 + PgSelectSingle201 --> PgClassExpression202 + Lambda204{{"Lambda[204∈1]
ᐸbase64JSONEncodeᐳ"}}:::plan + List203 --> Lambda204 + PgSelectSingle201 --> PgClassExpression205 + PgSelectRows212[["PgSelectRows[212∈1]"]]:::plan + PgSelect211 --> PgSelectRows212 + List50{{"List[50∈2]
ᐸ48,49ᐳ"}}:::plan + PgClassExpression49{{"PgClassExpression[49∈2]
ᐸ__buildings__.”id”ᐳ"}}:::plan + Constant48 & PgClassExpression49 --> List50 + __Item46[/"__Item[46∈2]
ᐸ45ᐳ"\]:::itemplan + PgSelectRows45 ==> __Item46 + PgSelectSingle47{{"PgSelectSingle[47∈2]
ᐸbuildingsᐳ"}}:::plan + __Item46 --> PgSelectSingle47 + PgSelectSingle47 --> PgClassExpression49 + Lambda51{{"Lambda[51∈2]
ᐸbase64JSONEncodeᐳ"}}:::plan + List50 --> Lambda51 + PgClassExpression52{{"PgClassExpression[52∈2]
ᐸ__buildings__.”name”ᐳ"}}:::plan + PgSelectSingle47 --> PgClassExpression52 + List85{{"List[85∈3]
ᐸ48,84ᐳ"}}:::plan + PgClassExpression84{{"PgClassExpression[84∈3]
ᐸ__buildings__.”id”ᐳ"}}:::plan + Constant48 & PgClassExpression84 --> List85 + __Item81[/"__Item[81∈3]
ᐸ80ᐳ"\]:::itemplan + PgSelectRows80 ==> __Item81 + PgSelectSingle82{{"PgSelectSingle[82∈3]
ᐸbuildingsᐳ"}}:::plan + __Item81 --> PgSelectSingle82 + PgSelectSingle82 --> PgClassExpression84 + Lambda86{{"Lambda[86∈3]
ᐸbase64JSONEncodeᐳ"}}:::plan + List85 --> Lambda86 + PgClassExpression87{{"PgClassExpression[87∈3]
ᐸ__buildings__.”name”ᐳ"}}:::plan + PgSelectSingle82 --> PgClassExpression87 + List120{{"List[120∈4]
ᐸ48,119ᐳ"}}:::plan + PgClassExpression119{{"PgClassExpression[119∈4]
ᐸ__buildings__.”id”ᐳ"}}:::plan + Constant48 & PgClassExpression119 --> List120 + __Item116[/"__Item[116∈4]
ᐸ115ᐳ"\]:::itemplan + PgSelectRows115 ==> __Item116 + PgSelectSingle117{{"PgSelectSingle[117∈4]
ᐸbuildingsᐳ"}}:::plan + __Item116 --> PgSelectSingle117 + PgSelectSingle117 --> PgClassExpression119 + Lambda121{{"Lambda[121∈4]
ᐸbase64JSONEncodeᐳ"}}:::plan + List120 --> Lambda121 + PgClassExpression122{{"PgClassExpression[122∈4]
ᐸ__buildings__.”name”ᐳ"}}:::plan + PgSelectSingle117 --> PgClassExpression122 + List153{{"List[153∈5]
ᐸ48,152ᐳ"}}:::plan + PgClassExpression152{{"PgClassExpression[152∈5]
ᐸ__buildings__.”id”ᐳ"}}:::plan + Constant48 & PgClassExpression152 --> List153 + __Item149[/"__Item[149∈5]
ᐸ148ᐳ"\]:::itemplan + PgSelectRows148 ==> __Item149 + PgSelectSingle150{{"PgSelectSingle[150∈5]
ᐸbuildingsᐳ"}}:::plan + __Item149 --> PgSelectSingle150 + PgSelectSingle150 --> PgClassExpression152 + Lambda154{{"Lambda[154∈5]
ᐸbase64JSONEncodeᐳ"}}:::plan + List153 --> Lambda154 + PgClassExpression155{{"PgClassExpression[155∈5]
ᐸ__buildings__.”name”ᐳ"}}:::plan + PgSelectSingle150 --> PgClassExpression155 + List184{{"List[184∈6]
ᐸ48,183ᐳ"}}:::plan + PgClassExpression183{{"PgClassExpression[183∈6]
ᐸ__buildings__.”id”ᐳ"}}:::plan + Constant48 & PgClassExpression183 --> List184 + __Item180[/"__Item[180∈6]
ᐸ179ᐳ"\]:::itemplan + PgSelectRows179 ==> __Item180 + PgSelectSingle181{{"PgSelectSingle[181∈6]
ᐸbuildingsᐳ"}}:::plan + __Item180 --> PgSelectSingle181 + PgSelectSingle181 --> PgClassExpression183 + Lambda185{{"Lambda[185∈6]
ᐸbase64JSONEncodeᐳ"}}:::plan + List184 --> Lambda185 + PgClassExpression186{{"PgClassExpression[186∈6]
ᐸ__buildings__.”name”ᐳ"}}:::plan + PgSelectSingle181 --> PgClassExpression186 + List217{{"List[217∈7]
ᐸ48,216ᐳ"}}:::plan + PgClassExpression216{{"PgClassExpression[216∈7]
ᐸ__buildings__.”id”ᐳ"}}:::plan + Constant48 & PgClassExpression216 --> List217 + __Item213[/"__Item[213∈7]
ᐸ212ᐳ"\]:::itemplan + PgSelectRows212 ==> __Item213 + PgSelectSingle214{{"PgSelectSingle[214∈7]
ᐸbuildingsᐳ"}}:::plan + __Item213 --> PgSelectSingle214 PgSelectSingle214 --> PgClassExpression216 - Lambda218{{"Lambda[218∈23]
ᐸbase64JSONEncodeᐳ"}}:::plan + Lambda218{{"Lambda[218∈7]
ᐸbase64JSONEncodeᐳ"}}:::plan List217 --> Lambda218 + PgClassExpression219{{"PgClassExpression[219∈7]
ᐸ__buildings__.”name”ᐳ"}}:::plan PgSelectSingle214 --> PgClassExpression219 - PgClassExpression220{{"PgClassExpression[220∈23]
ᐸ__properti...or_number”ᐳ"}}:::plan - PgSelectSingle214 --> PgClassExpression220 - First225{{"First[225∈23]"}}:::plan - PgSelectRows226[["PgSelectRows[226∈23]"]]:::plan - PgSelectRows226 --> First225 - PgSelect221 --> PgSelectRows226 - PgSelectSingle227{{"PgSelectSingle[227∈23]
ᐸstreetsᐳ"}}:::plan - First225 --> PgSelectSingle227 - PgSelect240[["PgSelect[240∈24]
ᐸbuildingsᐳ"]]:::plan - PgClassExpression232{{"PgClassExpression[232∈24]
ᐸ__streets__.”name”ᐳ"}}:::plan - Object12 & PgClassExpression232 & Connection239 --> PgSelect240 - List230{{"List[230∈24]
ᐸ34,229ᐳ"}}:::plan - PgClassExpression229{{"PgClassExpression[229∈24]
ᐸ__streets__.”id”ᐳ"}}:::plan - Constant34 & PgClassExpression229 --> List230 - PgSelectSingle227 --> PgClassExpression229 - Lambda231{{"Lambda[231∈24]
ᐸbase64JSONEncodeᐳ"}}:::plan - List230 --> Lambda231 - PgSelectSingle227 --> PgClassExpression232 - PgSelectRows241[["PgSelectRows[241∈24]"]]:::plan - PgSelect240 --> PgSelectRows241 - __Item242[/"__Item[242∈25]
ᐸ241ᐳ"\]:::itemplan - PgSelectRows241 ==> __Item242 - PgSelectSingle243{{"PgSelectSingle[243∈25]
ᐸbuildingsᐳ"}}:::plan - __Item242 --> PgSelectSingle243 - List246{{"List[246∈26]
ᐸ50,245ᐳ"}}:::plan - PgClassExpression245{{"PgClassExpression[245∈26]
ᐸ__buildings__.”id”ᐳ"}}:::plan - Constant50 & PgClassExpression245 --> List246 - PgSelectSingle243 --> PgClassExpression245 - Lambda247{{"Lambda[247∈26]
ᐸbase64JSONEncodeᐳ"}}:::plan - List246 --> Lambda247 - PgClassExpression248{{"PgClassExpression[248∈26]
ᐸ__buildings__.”name”ᐳ"}}:::plan - PgSelectSingle243 --> PgClassExpression248 - List262{{"List[262∈27] ➊
ᐸ18,260,261ᐳ"}}:::plan - PgClassExpression260{{"PgClassExpression[260∈27] ➊
ᐸ__houses__.”street_id”ᐳ"}}:::plan - PgClassExpression261{{"PgClassExpression[261∈27] ➊
ᐸ__houses__...operty_id”ᐳ"}}:::plan - Constant18 & PgClassExpression260 & PgClassExpression261 --> List262 - PgClassExpression256{{"PgClassExpression[256∈27] ➊
ᐸ__houses__...ding_name”ᐳ"}}:::plan - PgSelectSingle255 --> PgClassExpression256 - PgClassExpression257{{"PgClassExpression[257∈27] ➊
ᐸ__houses__...or_number”ᐳ"}}:::plan - PgSelectSingle255 --> PgClassExpression257 - PgClassExpression258{{"PgClassExpression[258∈27] ➊
ᐸ__houses__...reet_name”ᐳ"}}:::plan - PgSelectSingle255 --> PgClassExpression258 - PgSelectSingle255 --> PgClassExpression260 - PgSelectSingle255 --> PgClassExpression261 - Lambda263{{"Lambda[263∈27] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List262 --> Lambda263 - List281{{"List[281∈28] ➊
ᐸ18,279,280ᐳ"}}:::plan - PgClassExpression279{{"PgClassExpression[279∈28] ➊
ᐸ__houses__.”street_id”ᐳ"}}:::plan - PgClassExpression280{{"PgClassExpression[280∈28] ➊
ᐸ__houses__...operty_id”ᐳ"}}:::plan - Constant18 & PgClassExpression279 & PgClassExpression280 --> List281 - PgClassExpression275{{"PgClassExpression[275∈28] ➊
ᐸ__houses__...ding_name”ᐳ"}}:::plan - PgSelectSingle274 --> PgClassExpression275 - PgClassExpression276{{"PgClassExpression[276∈28] ➊
ᐸ__houses__...or_number”ᐳ"}}:::plan - PgSelectSingle274 --> PgClassExpression276 - PgClassExpression277{{"PgClassExpression[277∈28] ➊
ᐸ__houses__...reet_name”ᐳ"}}:::plan - PgSelectSingle274 --> PgClassExpression277 - PgSelectSingle274 --> PgClassExpression279 - PgSelectSingle274 --> PgClassExpression280 - Lambda282{{"Lambda[282∈28] ➊
ᐸbase64JSONEncodeᐳ"}}:::plan - List281 --> Lambda282 %% define steps subgraph "Buckets for queries/v4/smart_comment_relations.houses" - Bucket0("Bucket 0 (root)

1:
ᐳ: 10, 11, 13, 18, 34, 45, 50, 85, 101, 125, 164, 200, 239, 283, 284, 285, 12, 265, 266, 268
2: PgSelect[251], PgSelect[270]
3: PgSelectRows[254], PgSelectRows[273]
ᐳ: 253, 255, 272, 274"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 18, 34, 48, 94, 253, 254, 255, 11, 12, 42, 77, 112, 145, 176, 209, 236, 237, 239
2: 14, 222, 241
3: 15, 225, 244
ᐳ: 224, 226, 227, 228, 229, 231, 232, 233, 234, 243, 245, 246, 247, 248, 249, 250, 251, 252"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Constant18,Constant34,Connection45,Constant50,Connection85,Constant101,Connection125,Connection164,Connection200,Connection239,PgSelect251,First253,PgSelectRows254,PgSelectSingle255,Lambda265,Access266,Access268,PgSelect270,First272,PgSelectRows273,PgSelectSingle274,Constant283,Constant284,Constant285 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 18, 34, 45, 50, 85, 101, 125, 164, 200, 239

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Constant18,Constant34,Connection42,Constant48,Connection77,Constant94,Connection112,Connection145,Connection176,Connection209,PgSelect222,First224,PgSelectRows225,PgSelectSingle226,PgClassExpression227,PgClassExpression228,PgClassExpression229,PgClassExpression231,PgClassExpression232,List233,Lambda234,Lambda236,Access237,Access239,PgSelect241,First243,PgSelectRows244,PgSelectSingle245,PgClassExpression246,PgClassExpression247,PgClassExpression248,PgClassExpression249,PgClassExpression250,List251,Lambda252,Constant253,Constant254,Constant255 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 18, 11, 34, 42, 6, 48, 77, 94, 112, 145, 176, 209

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 19, 20, 21, 22, 23, 24, 25, 26
2: 27, 53, 123, 156
3: 32, 56, 126, 159
ᐳ: 31, 33, 35, 36, 37, 38, 55, 57, 59, 60, 61, 62, 63, 64, 88, 125, 127, 128, 129, 130, 131, 132, 158, 160, 161, 162, 163
4: 44, 65, 89, 133, 164, 187
5: 45, 68, 92, 136, 167, 190
ᐳ: 67, 69, 70, 71, 72, 73, 91, 93, 95, 96, 97, 98, 99, 135, 137, 138, 139, 140, 141, 166, 168, 169, 170, 171, 172, 189, 191, 192, 193, 194, 195, 196
6: 79, 100, 147, 178, 197
7: 80, 103, 148, 179, 200
ᐳ: 102, 104, 105, 106, 107, 108, 199, 201, 202, 203, 204, 205
8: PgSelect[114], PgSelect[211]
9: PgSelectRows[115], PgSelectRows[212]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 18, 12, 34, 45, 50, 85, 101, 125, 164, 200, 239

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression19,PgClassExpression20,List21,Lambda22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgSelect27,First31,PgSelectRows32,PgSelectSingle33,PgClassExpression35,List36,Lambda37,PgClassExpression38,PgSelect44,PgSelectRows45,PgSelect53,First55,PgSelectRows56,PgSelectSingle57,PgClassExpression59,List60,Lambda61,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgSelect65,First67,PgSelectRows68,PgSelectSingle69,PgClassExpression70,List71,Lambda72,PgClassExpression73,PgSelect79,PgSelectRows80,PgClassExpression88,PgSelect89,First91,PgSelectRows92,PgSelectSingle93,PgClassExpression95,List96,Lambda97,PgClassExpression98,PgClassExpression99,PgSelect100,First102,PgSelectRows103,PgSelectSingle104,PgClassExpression105,List106,Lambda107,PgClassExpression108,PgSelect114,PgSelectRows115,PgSelect123,First125,PgSelectRows126,PgSelectSingle127,PgClassExpression128,List129,Lambda130,PgClassExpression131,PgClassExpression132,PgSelect133,First135,PgSelectRows136,PgSelectSingle137,PgClassExpression138,List139,Lambda140,PgClassExpression141,PgSelect147,PgSelectRows148,PgSelect156,First158,PgSelectRows159,PgSelectSingle160,PgClassExpression161,PgClassExpression162,PgClassExpression163,PgSelect164,First166,PgSelectRows167,PgSelectSingle168,PgClassExpression169,List170,Lambda171,PgClassExpression172,PgSelect178,PgSelectRows179,PgSelect187,First189,PgSelectRows190,PgSelectSingle191,PgClassExpression192,List193,Lambda194,PgClassExpression195,PgClassExpression196,PgSelect197,First199,PgSelectRows200,PgSelectSingle201,PgClassExpression202,List203,Lambda204,PgClassExpression205,PgSelect211,PgSelectRows212 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 48

ROOT __Item{2}ᐸ45ᐳ[46]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 18, 12, 34, 45, 50, 85, 101, 125, 164, 200, 239

ROOT PgSelectSingle{2}ᐸhousesᐳ[17]
1:
ᐳ: 19, 20, 23, 24, 25, 26, 21, 22
2: 27, 55, 135, 174
3: 32, 58, 138, 177
ᐳ: 31, 33, 57, 59, 137, 139, 176, 178"):::bucket + class Bucket2,__Item46,PgSelectSingle47,PgClassExpression49,List50,Lambda51,PgClassExpression52 bucket2 + Bucket3("Bucket 3 (listItem)
Deps: 48

ROOT __Item{3}ᐸ80ᐳ[81]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgClassExpression20,List21,Lambda22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgSelect27,First31,PgSelectRows32,PgSelectSingle33,PgSelect55,First57,PgSelectRows58,PgSelectSingle59,PgSelect135,First137,PgSelectRows138,PgSelectSingle139,PgSelect174,First176,PgSelectRows177,PgSelectSingle178 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 33, 34, 12, 45, 50

ROOT PgSelectSingle{3}ᐸstreetsᐳ[33]
1:
ᐳ: 35, 38, 36, 37
2: PgSelect[46]
3: PgSelectRows[47]"):::bucket + class Bucket3,__Item81,PgSelectSingle82,PgClassExpression84,List85,Lambda86,PgClassExpression87 bucket3 + Bucket4("Bucket 4 (listItem)
Deps: 48

ROOT __Item{4}ᐸ115ᐳ[116]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression35,List36,Lambda37,PgClassExpression38,PgSelect46,PgSelectRows47 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 50

ROOT __Item{5}ᐸ47ᐳ[48]"):::bucket + class Bucket4,__Item116,PgSelectSingle117,PgClassExpression119,List120,Lambda121,PgClassExpression122 bucket4 + Bucket5("Bucket 5 (listItem)
Deps: 48

ROOT __Item{5}ᐸ148ᐳ[149]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item48,PgSelectSingle49 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 49, 50

ROOT PgSelectSingle{5}ᐸbuildingsᐳ[49]"):::bucket + class Bucket5,__Item149,PgSelectSingle150,PgClassExpression152,List153,Lambda154,PgClassExpression155 bucket5 + Bucket6("Bucket 6 (listItem)
Deps: 48

ROOT __Item{6}ᐸ179ᐳ[180]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression51,List52,Lambda53,PgClassExpression54 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 59, 50, 12, 34, 85, 101, 125

ROOT PgSelectSingle{3}ᐸbuildingsᐳ[59]
1:
ᐳ: 61, 64, 65, 66, 95, 62, 63
2: PgSelect[67], PgSelect[96]
3: PgSelectRows[72], PgSelectRows[99]
ᐳ: 71, 73, 98, 100"):::bucket + class Bucket6,__Item180,PgSelectSingle181,PgClassExpression183,List184,Lambda185,PgClassExpression186 bucket6 + Bucket7("Bucket 7 (listItem)
Deps: 48

ROOT __Item{7}ᐸ212ᐳ[213]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7,PgClassExpression61,List62,Lambda63,PgClassExpression64,PgClassExpression65,PgClassExpression66,PgSelect67,First71,PgSelectRows72,PgSelectSingle73,PgClassExpression95,PgSelect96,First98,PgSelectRows99,PgSelectSingle100 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 73, 34, 12, 85, 50

ROOT PgSelectSingle{7}ᐸstreetsᐳ[73]
1:
ᐳ: 75, 78, 76, 77
2: PgSelect[86]
3: PgSelectRows[87]"):::bucket - classDef bucket8 stroke:#dda0dd - class Bucket8,PgClassExpression75,List76,Lambda77,PgClassExpression78,PgSelect86,PgSelectRows87 bucket8 - Bucket9("Bucket 9 (listItem)
Deps: 50

ROOT __Item{9}ᐸ87ᐳ[88]"):::bucket - classDef bucket9 stroke:#ff0000 - class Bucket9,__Item88,PgSelectSingle89 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 89, 50

ROOT PgSelectSingle{9}ᐸbuildingsᐳ[89]"):::bucket - classDef bucket10 stroke:#ffff00 - class Bucket10,PgClassExpression91,List92,Lambda93,PgClassExpression94 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 100, 101, 12, 34, 125, 50

ROOT PgSelectSingle{7}ᐸpropertiesᐳ[100]
1:
ᐳ: 102, 105, 106, 103, 104
2: PgSelect[107]
3: PgSelectRows[112]
ᐳ: First[111], PgSelectSingle[113]"):::bucket - classDef bucket11 stroke:#00ffff - class Bucket11,PgClassExpression102,List103,Lambda104,PgClassExpression105,PgClassExpression106,PgSelect107,First111,PgSelectRows112,PgSelectSingle113 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 113, 34, 12, 125, 50

ROOT PgSelectSingle{11}ᐸstreetsᐳ[113]
1:
ᐳ: 115, 118, 116, 117
2: PgSelect[126]
3: PgSelectRows[127]"):::bucket - classDef bucket12 stroke:#4169e1 - class Bucket12,PgClassExpression115,List116,Lambda117,PgClassExpression118,PgSelect126,PgSelectRows127 bucket12 - Bucket13("Bucket 13 (listItem)
Deps: 50

ROOT __Item{13}ᐸ127ᐳ[128]"):::bucket - classDef bucket13 stroke:#3cb371 - class Bucket13,__Item128,PgSelectSingle129 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 129, 50

ROOT PgSelectSingle{13}ᐸbuildingsᐳ[129]"):::bucket - classDef bucket14 stroke:#a52a2a - class Bucket14,PgClassExpression131,List132,Lambda133,PgClassExpression134 bucket14 - Bucket15("Bucket 15 (nullableBoundary)
Deps: 139, 101, 12, 34, 164, 50

ROOT PgSelectSingle{3}ᐸpropertiesᐳ[139]
1:
ᐳ: 141, 144, 145, 142, 143
2: PgSelect[146]
3: PgSelectRows[151]
ᐳ: First[150], PgSelectSingle[152]"):::bucket - classDef bucket15 stroke:#ff00ff - class Bucket15,PgClassExpression141,List142,Lambda143,PgClassExpression144,PgClassExpression145,PgSelect146,First150,PgSelectRows151,PgSelectSingle152 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 152, 34, 12, 164, 50

ROOT PgSelectSingle{15}ᐸstreetsᐳ[152]
1:
ᐳ: 154, 157, 155, 156
2: PgSelect[165]
3: PgSelectRows[166]"):::bucket - classDef bucket16 stroke:#f5deb3 - class Bucket16,PgClassExpression154,List155,Lambda156,PgClassExpression157,PgSelect165,PgSelectRows166 bucket16 - Bucket17("Bucket 17 (listItem)
Deps: 50

ROOT __Item{17}ᐸ166ᐳ[167]"):::bucket - classDef bucket17 stroke:#696969 - class Bucket17,__Item167,PgSelectSingle168 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 168, 50

ROOT PgSelectSingle{17}ᐸbuildingsᐳ[168]"):::bucket - classDef bucket18 stroke:#00bfff - class Bucket18,PgClassExpression170,List171,Lambda172,PgClassExpression173 bucket18 - Bucket19("Bucket 19 (nullableBoundary)
Deps: 178, 12, 34, 200, 50, 101, 239

ROOT PgSelectSingle{3}ᐸstreet_propertyᐳ[178]
1:
ᐳ: 179, 180, 181
2: PgSelect[182], PgSelect[210]
3: PgSelectRows[187], PgSelectRows[213]
ᐳ: 186, 188, 212, 214"):::bucket - classDef bucket19 stroke:#7f007f - class Bucket19,PgClassExpression179,PgClassExpression180,PgClassExpression181,PgSelect182,First186,PgSelectRows187,PgSelectSingle188,PgSelect210,First212,PgSelectRows213,PgSelectSingle214 bucket19 - Bucket20("Bucket 20 (nullableBoundary)
Deps: 188, 34, 12, 200, 50

ROOT PgSelectSingle{19}ᐸstreetsᐳ[188]
1:
ᐳ: 190, 193, 191, 192
2: PgSelect[201]
3: PgSelectRows[202]"):::bucket - classDef bucket20 stroke:#ffa500 - class Bucket20,PgClassExpression190,List191,Lambda192,PgClassExpression193,PgSelect201,PgSelectRows202 bucket20 - Bucket21("Bucket 21 (listItem)
Deps: 50

ROOT __Item{21}ᐸ202ᐳ[203]"):::bucket - classDef bucket21 stroke:#0000ff - class Bucket21,__Item203,PgSelectSingle204 bucket21 - Bucket22("Bucket 22 (nullableBoundary)
Deps: 204, 50

ROOT PgSelectSingle{21}ᐸbuildingsᐳ[204]"):::bucket - classDef bucket22 stroke:#7fff00 - class Bucket22,PgClassExpression206,List207,Lambda208,PgClassExpression209 bucket22 - Bucket23("Bucket 23 (nullableBoundary)
Deps: 214, 101, 12, 34, 239, 50

ROOT PgSelectSingle{19}ᐸpropertiesᐳ[214]
1:
ᐳ: 216, 219, 220, 217, 218
2: PgSelect[221]
3: PgSelectRows[226]
ᐳ: First[225], PgSelectSingle[227]"):::bucket - classDef bucket23 stroke:#ff1493 - class Bucket23,PgClassExpression216,List217,Lambda218,PgClassExpression219,PgClassExpression220,PgSelect221,First225,PgSelectRows226,PgSelectSingle227 bucket23 - Bucket24("Bucket 24 (nullableBoundary)
Deps: 227, 34, 12, 239, 50

ROOT PgSelectSingle{23}ᐸstreetsᐳ[227]
1:
ᐳ: 229, 232, 230, 231
2: PgSelect[240]
3: PgSelectRows[241]"):::bucket - classDef bucket24 stroke:#808000 - class Bucket24,PgClassExpression229,List230,Lambda231,PgClassExpression232,PgSelect240,PgSelectRows241 bucket24 - Bucket25("Bucket 25 (listItem)
Deps: 50

ROOT __Item{25}ᐸ241ᐳ[242]"):::bucket - classDef bucket25 stroke:#dda0dd - class Bucket25,__Item242,PgSelectSingle243 bucket25 - Bucket26("Bucket 26 (nullableBoundary)
Deps: 243, 50

ROOT PgSelectSingle{25}ᐸbuildingsᐳ[243]"):::bucket - classDef bucket26 stroke:#ff0000 - class Bucket26,PgClassExpression245,List246,Lambda247,PgClassExpression248 bucket26 - Bucket27("Bucket 27 (nullableBoundary)
Deps: 255, 18

ROOT PgSelectSingleᐸhousesᐳ[255]"):::bucket - classDef bucket27 stroke:#ffff00 - class Bucket27,PgClassExpression256,PgClassExpression257,PgClassExpression258,PgClassExpression260,PgClassExpression261,List262,Lambda263 bucket27 - Bucket28("Bucket 28 (nullableBoundary)
Deps: 274, 18

ROOT PgSelectSingleᐸhousesᐳ[274]"):::bucket - classDef bucket28 stroke:#00ffff - class Bucket28,PgClassExpression275,PgClassExpression276,PgClassExpression277,PgClassExpression279,PgClassExpression280,List281,Lambda282 bucket28 - Bucket0 --> Bucket1 & Bucket27 & Bucket28 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 & Bucket7 & Bucket15 & Bucket19 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 - Bucket7 --> Bucket8 & Bucket11 - Bucket8 --> Bucket9 - Bucket9 --> Bucket10 - Bucket11 --> Bucket12 - Bucket12 --> Bucket13 - Bucket13 --> Bucket14 - Bucket15 --> Bucket16 - Bucket16 --> Bucket17 - Bucket17 --> Bucket18 - Bucket19 --> Bucket20 & Bucket23 - Bucket20 --> Bucket21 - Bucket21 --> Bucket22 - Bucket23 --> Bucket24 - Bucket24 --> Bucket25 - Bucket25 --> Bucket26 + class Bucket7,__Item213,PgSelectSingle214,PgClassExpression216,List217,Lambda218,PgClassExpression219 bucket7 + Bucket0 --> Bucket1 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/smart_comment_relations.houses.sql b/postgraphile/postgraphile/__tests__/queries/v4/smart_comment_relations.houses.sql index 590431f779..c6c09b5b7c 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/smart_comment_relations.houses.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/smart_comment_relations.houses.sql @@ -1,3 +1,13 @@ +select + __houses__."street_id"::text as "0", + __houses__."property_id"::text as "1", + __houses__."building_name" as "2", + __houses__."property_name_or_number" as "3", + __houses__."street_name" as "4", + __houses__."building_id"::text as "5" +from "smart_comment_relations"."houses" as __houses__ +order by __houses__."street_id" asc, __houses__."property_id" asc; + select __houses__."building_name" as "0", __houses__."property_name_or_number" as "1", @@ -12,16 +22,6 @@ where __houses__."property_id" = $2::"int4" ); -select - __houses__."street_id"::text as "0", - __houses__."property_id"::text as "1", - __houses__."building_name" as "2", - __houses__."property_name_or_number" as "3", - __houses__."street_name" as "4", - __houses__."building_id"::text as "5" -from "smart_comment_relations"."houses" as __houses__ -order by __houses__."street_id" asc, __houses__."property_id" asc; - select __streets_result__.* from (select ids.ordinality - 1 as idx, (ids.value->>0)::"int4" as "id0" from json_array_elements($1::json) with ordinality as ids) as __streets_identifiers__, lateral ( diff --git a/postgraphile/postgraphile/__tests__/queries/v4/space.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/space.mermaid index 4ea0993892..aff884a70e 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/space.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/space.mermaid @@ -9,72 +9,47 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸspacecraftᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + PgFromExpression25{{"PgFromExpression[25∈0] ➊"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 & PgFromExpression25 --> PgSelect14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 + __InputObject20{{"__InputObject[20∈0] ➊"}}:::plan + Constant33{{"Constant[33∈0] ➊
ᐸ'1'ᐳ"}}:::plan + Constant34{{"Constant[34∈0] ➊
ᐸ'MOBILE'ᐳ"}}:::plan + Constant33 & Constant34 --> __InputObject20 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Constant42{{"Constant[42∈0] ➊
ᐸ§{ id: '1', type: 'MOBILE' }ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸspacecraftᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + BakedInput23{{"BakedInput[23∈0] ➊"}}:::plan + __InputObject20 --> BakedInput23 + BakedInput23 --> PgFromExpression25 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸspacecraftᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸspacecraftᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgSelect25[["PgSelect[25∈3]
ᐸspacecraftᐳ"]]:::plan - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__spacecraft__ᐳ"}}:::plan - Object12 & PgClassExpression24 & Constant42 --> PgSelect25 - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__spacecraft__.”id”ᐳ"}}:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__spacecraft__.”id”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression18 - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__spacecraft__.”name”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__spacecraft__.”name”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression19 - PgSelectSingle17 --> PgClassExpression24 - First29{{"First[29∈3]"}}:::plan - PgSelectRows30[["PgSelectRows[30∈3]"]]:::plan - PgSelectRows30 --> First29 - PgSelect25 --> PgSelectRows30 - PgSelectSingle31{{"PgSelectSingle[31∈3]
ᐸspacecraftᐳ"}}:::plan - First29 --> PgSelectSingle31 - PgClassExpression33{{"PgClassExpression[33∈3]
ᐸ”space”.”s...lder! */
)ᐳ"}}:::plan - PgSelectSingle31 --> PgClassExpression33 - Access34{{"Access[34∈4]
ᐸ33.startᐳ"}}:::plan - PgClassExpression33 --> Access34 - Access37{{"Access[37∈4]
ᐸ33.endᐳ"}}:::plan - PgClassExpression33 --> Access37 + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ(1/0) /* E...ferred! */ᐳ"}}:::plan + PgSelectSingle17 --> PgClassExpression26 %% define steps subgraph "Buckets for queries/v4/space" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 33, 34, 11, 12, 20, 23, 25
2: PgSelect[14]
3: PgSelectRows[15]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Constant42 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 42

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,__InputObject20,BakedInput23,PgFromExpression25,Constant33,Constant34 bucket0 + Bucket1("Bucket 1 (listItem)

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 12, 42

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 12, 42

ROOT PgSelectSingle{2}ᐸspacecraftᐳ[17]
1:
ᐳ: 18, 19, 24
2: PgSelect[25]
3: PgSelectRows[30]
ᐳ: 29, 31, 33"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgClassExpression24,PgSelect25,First29,PgSelectRows30,PgSelectSingle31,PgClassExpression33 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 33

ROOT PgClassExpression{3}ᐸ”space”.”s...lder! */
)ᐳ[33]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,Access34,Access37 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 34, 33

ROOT Access{4}ᐸ33.startᐳ[34]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 37, 33

ROOT Access{4}ᐸ33.endᐳ[37]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6 bucket6 + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgClassExpression26 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 & Bucket6 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/space.sql b/postgraphile/postgraphile/__tests__/queries/v4/space.sql index 66a7622c92..ccd19c05ce 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/space.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/space.sql @@ -1,38 +1,23 @@ select __spacecraft__."id"::text as "0", __spacecraft__."name" as "1", - case when (__spacecraft__) is not distinct from null then null::text else json_build_array((((__spacecraft__)."id"))::text, ((__spacecraft__)."name"), json_build_array( - lower_inc(((__spacecraft__)."return_to_earth")), - to_char(lower(((__spacecraft__)."return_to_earth")), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text), - to_char(upper(((__spacecraft__)."return_to_earth")), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text), - upper_inc(((__spacecraft__)."return_to_earth")) - )::text)::text end as "2" + json_build_array( + lower_inc("space"."spacecraft_eta"( + __spacecraft__, + $1::"space"."launch_pad" + )), + to_char(lower("space"."spacecraft_eta"( + __spacecraft__, + $1::"space"."launch_pad" + )), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text), + to_char(upper("space"."spacecraft_eta"( + __spacecraft__, + $1::"space"."launch_pad" + )), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text), + upper_inc("space"."spacecraft_eta"( + __spacecraft__, + $1::"space"."launch_pad" + )) + )::text as "2" from "space"."spacecraft" as __spacecraft__ -order by __spacecraft__."id" asc; - -select __spacecraft_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"space"."spacecraft" as "id0" from json_array_elements($2::json) with ordinality as ids) as __spacecraft_identifiers__, -lateral ( - select - json_build_array( - lower_inc("space"."spacecraft_eta"( - __spacecraft__, - $1::"space"."launch_pad" - )), - to_char(lower("space"."spacecraft_eta"( - __spacecraft__, - $1::"space"."launch_pad" - )), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text), - to_char(upper("space"."spacecraft_eta"( - __spacecraft__, - $1::"space"."launch_pad" - )), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text), - upper_inc("space"."spacecraft_eta"( - __spacecraft__, - $1::"space"."launch_pad" - )) - )::text as "0", - __spacecraft__."id"::text as "1", - __spacecraft_identifiers__.idx as "2" - from (select (__spacecraft_identifiers__."id0").*) as __spacecraft__ -) as __spacecraft_result__; \ No newline at end of file +order by __spacecraft__."id" asc; \ No newline at end of file diff --git a/postgraphile/postgraphile/__tests__/queries/v4/streamLoads.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/streamLoads.mermaid index d1d18617d4..7ceb01a991 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/streamLoads.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/streamLoads.mermaid @@ -9,63 +9,55 @@ graph TD %% plan dependencies - Object13{{"Object[13∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access12{{"Access[12∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access11 & Access12 --> Object13 + PgSelect15[["PgSelect[15∈0] ➊
ᐸpersonᐳ"]]:::plan + Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan + Constant31{{"Constant[31∈0] ➊
ᐸ1ᐳ"}}:::plan + Object12 -->|rejectNull| PgSelect15 + Connection13 & Constant31 --> PgSelect15 + Constant31 --> Connection13 + Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access10 & Access11 --> Object12 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access10 __Value2 --> Access11 - __Value2 --> Access12 - Connection14{{"Connection[14∈0] ➊
ᐸ10ᐳ"}}:::plan - Constant31{{"Constant[31∈0] ➊
ᐸ1ᐳ"}}:::plan - Constant31 --> Connection14 + PgSelectRows16[["PgSelectRows[16∈0] ➊"]]:::plan + PgSelect15 --> PgSelectRows16 __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant7{{"Constant[7∈0] ➊
ᐸundefinedᐳ"}}:::plan Constant20{{"Constant[20∈0] ➊
ᐸ[HIDDEN]ᐳ"}}:::plan Constant21{{"Constant[21∈0] ➊
ᐸtrueᐳ"}}:::plan - PgSelect15[["PgSelect[15∈1] ➊
ᐸpersonᐳ"]]:::plan - Object13 & Connection14 & Constant31 --> PgSelect15 - PgSelectRows16[["PgSelectRows[16∈1] ➊"]]:::plan - PgSelect15 --> PgSelectRows16 - __Item17[/"__Item[17∈2]
ᐸ16ᐳ"\]:::itemplan + PgSelect22[["PgSelect[22∈1@s]
ᐸpostᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__person__.”id”ᐳ"}}:::plan + Object12 & PgClassExpression19 --> PgSelect22 + __Item17[/"__Item[17∈1]
ᐸ16ᐳ"\]:::itemplan PgSelectRows16 ==> __Item17 - PgSelectSingle18{{"PgSelectSingle[18∈2]
ᐸpersonᐳ"}}:::plan + PgSelectSingle18{{"PgSelectSingle[18∈1]
ᐸpersonᐳ"}}:::plan __Item17 --> PgSelectSingle18 - PgSelect22[["PgSelect[22∈3@s]
ᐸpostᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__person__.”id”ᐳ"}}:::plan - Object13 & PgClassExpression19 --> PgSelect22 PgSelectSingle18 --> PgClassExpression19 - PgSelectRows26[["PgSelectRows[26∈3@s]"]]:::plan + PgSelectRows26[["PgSelectRows[26∈1@s]"]]:::plan PgSelect22 --> PgSelectRows26 - __Item27[/"__Item[27∈4]
ᐸ26ᐳ"\]:::itemplan + __Item27[/"__Item[27∈2]
ᐸ26ᐳ"\]:::itemplan PgSelectRows26 ==> __Item27 - PgSelectSingle28{{"PgSelectSingle[28∈4]
ᐸpostᐳ"}}:::plan + PgSelectSingle28{{"PgSelectSingle[28∈2]
ᐸpostᐳ"}}:::plan __Item27 --> PgSelectSingle28 - PgClassExpression29{{"PgClassExpression[29∈4]
ᐸ__post__.”id”ᐳ"}}:::plan + PgClassExpression29{{"PgClassExpression[29∈2]
ᐸ__post__.”id”ᐳ"}}:::plan PgSelectSingle28 --> PgClassExpression29 - PgClassExpression30{{"PgClassExpression[30∈4]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈2]
ᐸ__post__.”headline”ᐳ"}}:::plan PgSelectSingle28 --> PgClassExpression30 %% define steps subgraph "Buckets for queries/v4/streamLoads" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 7, 10, 11, 20, 21, 31, 12, 13
2: PgSelect[15]
3: PgSelectRows[16]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant7,Access11,Access12,Object13,Connection14,Constant20,Constant21,Constant31 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13, 14, 31, 20, 21, 7

ROOT Connectionᐸ10ᐳ[14]
1: PgSelect[15]
2: PgSelectRows[16]"):::bucket + class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,PgSelect15,PgSelectRows16,Constant20,Constant21,Constant31 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 12, 7, 20, 21

ROOT __Item{1}ᐸ16ᐳ[17]
1:
ᐳ: 18, 19
2: PgSelect[22]
3: PgSelectRows[26]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect15,PgSelectRows16 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 13, 20, 21, 7

ROOT __Item{2}ᐸ16ᐳ[17]"):::bucket + class Bucket1,__Item17,PgSelectSingle18,PgClassExpression19,PgSelect22,PgSelectRows26 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ26ᐳ[27]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item17,PgSelectSingle18 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 18, 13, 20, 21, 7

ROOT PgSelectSingle{2}ᐸpersonᐳ[18]
1:
ᐳ: PgClassExpression[19]
2: PgSelect[22]
3: PgSelectRows[26]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression19,PgSelect22,PgSelectRows26 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ26ᐳ[27]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,__Item27,PgSelectSingle28,PgClassExpression29,PgClassExpression30 bucket4 + class Bucket2,__Item27,PgSelectSingle28,PgClassExpression29,PgClassExpression30 bucket2 Bucket0 --> Bucket1 Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/ts.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/ts.mermaid index a5a5987fcb..df37f5acb8 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/ts.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/ts.mermaid @@ -25,28 +25,14 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸrange_testᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__range_test__.”ts”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__range_test__.”ts”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - Access15{{"Access[15∈2] ➊
ᐸ14.startᐳ"}}:::plan - PgClassExpression14 --> Access15 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/v4/ts" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 18, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 18, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant18 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13

ROOT PgSelectSingleᐸrange_testᐳ[13]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgClassExpression{1}ᐸ__range_test__.”ts”ᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,Access15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 14

ROOT Access{2}ᐸ14.startᐳ[15]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,Constant18 bucket0 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/tstz.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/tstz.mermaid index 6fff1aeeb4..afceec6db1 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/tstz.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/tstz.mermaid @@ -25,28 +25,14 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸrange_testᐳ"}}:::plan First11 --> PgSelectSingle13 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__range_test__.”tstz”ᐳ"}}:::plan + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__range_test__.”tstz”ᐳ"}}:::plan PgSelectSingle13 --> PgClassExpression14 - Access15{{"Access[15∈2] ➊
ᐸ14.startᐳ"}}:::plan - PgClassExpression14 --> Access15 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/v4/tstz" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 18, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: First[11], PgSelectSingle[13]"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 18, 10
2: PgSelect[7]
3: PgSelectRows[12]
ᐳ: 11, 13, 14"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,Constant18 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13

ROOT PgSelectSingleᐸrange_testᐳ[13]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 14

ROOT PgClassExpression{1}ᐸ__range_test__.”tstz”ᐳ[14]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,Access15 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 15, 14

ROOT Access{2}ᐸ14.startᐳ[15]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3 bucket3 - Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,Constant18 bucket0 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/types.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/types.mermaid index 9389563b5f..926c70e5cc 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/types.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/types.mermaid @@ -9,7310 +9,5816 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 - PgSelect660[["PgSelect[660∈0] ➊
ᐸtypesᐳ"]]:::plan - Constant3803{{"Constant[3803∈0] ➊
ᐸ11ᐳ"}}:::plan - Object12 & Constant3803 --> PgSelect660 - PgSelect871[["PgSelect[871∈0] ➊
ᐸtypesᐳ"]]:::plan - Access869{{"Access[869∈0] ➊
ᐸ868.1ᐳ"}}:::plan - Object12 -->|rejectNull| PgSelect871 - Access869 --> PgSelect871 - PgSelect1403[["PgSelect[1403∈0] ➊
ᐸtype_functionᐳ"]]:::plan - Object12 & Constant3803 --> PgSelect1403 - PgSelect2267[["PgSelect[2267∈0] ➊
ᐸpersonᐳ"]]:::plan - Constant3807{{"Constant[3807∈0] ➊
ᐸ1ᐳ"}}:::plan - Object12 & Constant3807 --> PgSelect2267 - PgSelect3142[["PgSelect[3142∈0] ➊
ᐸpostᐳ"]]:::plan - Object12 & Constant3803 --> PgSelect3142 + PgSelect2657[["PgSelect[2657∈0] ➊
ᐸperson_type_function_connection+1ᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + PgFromExpression2655{{"PgFromExpression[2655∈0] ➊"}}:::plan + Connection2656{{"Connection[2656∈0] ➊
ᐸ2653ᐳ"}}:::plan + Object11 & PgFromExpression2655 & Connection2656 --> PgSelect2657 + PgSelect3338[["PgSelect[3338∈0] ➊
ᐸtypes+1ᐳ"]]:::plan + PgClassExpression3120{{"PgClassExpression[3120∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + Connection3336{{"Connection[3336∈0] ➊
ᐸ3334ᐳ"}}:::plan + Object11 & PgClassExpression3120 & Connection3336 --> PgSelect3338 + PgSelect14[["PgSelect[14∈0] ➊
ᐸtypes+1ᐳ"]]:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect1760[["PgSelect[1760∈0] ➊
ᐸtype_function_connection+1ᐳ"]]:::plan + Connection1759{{"Connection[1759∈0] ➊
ᐸ1757ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect1760 + Connection1759 --> PgSelect1760 + Object347{{"Object[347∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access342{{"Access[342∈0] ➊
ᐸ14.hasMoreᐳ"}}:::plan + Access342 --> Object347 + Object2203{{"Object[2203∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access2198{{"Access[2198∈0] ➊
ᐸ1760.hasMoreᐳ"}}:::plan + Access2198 --> Object2203 + Object3100{{"Object[3100∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access3095{{"Access[3095∈0] ➊
ᐸ2657.hasMoreᐳ"}}:::plan + Access3095 --> Object3100 + Object3671{{"Object[3671∈0] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan + Access3666{{"Access[3666∈0] ➊
ᐸ3338.hasMoreᐳ"}}:::plan + Access3666 --> Object3671 + Object343{{"Object[343∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access342 --> Object343 + PgSelect361[["PgSelect[361∈0] ➊
ᐸtypesᐳ"]]:::plan + Object11 --> PgSelect361 + Object2199{{"Object[2199∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access2198 --> Object2199 + PgSelect3087[["PgSelect[3087∈0] ➊
ᐸperson_type_function_connection(aggregate)ᐳ"]]:::plan + Object11 & PgFromExpression2655 & Connection2656 --> PgSelect3087 + Object3096{{"Object[3096∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access3095 --> Object3096 + PgSelect3658[["PgSelect[3658∈0] ➊
ᐸtypes(aggregate)ᐳ"]]:::plan + Object11 & PgClassExpression3120 & Connection3336 --> PgSelect3658 + Object3667{{"Object[3667∈0] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan + Access3666 --> Object3667 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 + PgSelect334[["PgSelect[334∈0] ➊
ᐸtypes(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect334 + Connection12 --> PgSelect334 + PgCursor354{{"PgCursor[354∈0] ➊"}}:::plan + PgSelectSingle352{{"PgSelectSingle[352∈0] ➊
ᐸtypesᐳ"}}:::plan + Access353{{"Access[353∈0] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan + PgSelectSingle352 & Access353 --> PgCursor354 + PgCursor360{{"PgCursor[360∈0] ➊"}}:::plan + PgSelectSingle358{{"PgSelectSingle[358∈0] ➊
ᐸtypesᐳ"}}:::plan + PgSelectSingle358 & Access353 --> PgCursor360 + PgSelect575[["PgSelect[575∈0] ➊
ᐸtypesᐳ"]]:::plan + Constant3687{{"Constant[3687∈0] ➊
ᐸ11ᐳ"}}:::plan + Object11 & Constant3687 --> PgSelect575 + PgSelect646[["PgSelect[646∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression648{{"PgFromExpression[648∈0] ➊"}}:::plan + Object11 & PgFromExpression648 --> PgSelect646 + PgSelect660[["PgSelect[660∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression662{{"PgFromExpression[662∈0] ➊"}}:::plan + Object11 & PgFromExpression662 --> PgSelect660 + PgSelect667[["PgSelect[667∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression669{{"PgFromExpression[669∈0] ➊"}}:::plan + Object11 & PgFromExpression669 --> PgSelect667 + PgSelect681[["PgSelect[681∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression683{{"PgFromExpression[683∈0] ➊"}}:::plan + Object11 & PgFromExpression683 --> PgSelect681 + PgSelect696[["PgSelect[696∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression698{{"PgFromExpression[698∈0] ➊"}}:::plan + Object11 & PgFromExpression698 --> PgSelect696 + PgSelect710[["PgSelect[710∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression712{{"PgFromExpression[712∈0] ➊"}}:::plan + Object11 & PgFromExpression712 --> PgSelect710 + PgSelect717[["PgSelect[717∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression719{{"PgFromExpression[719∈0] ➊"}}:::plan + Object11 & PgFromExpression719 --> PgSelect717 + PgSelect731[["PgSelect[731∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression733{{"PgFromExpression[733∈0] ➊"}}:::plan + Object11 & PgFromExpression733 --> PgSelect731 + PgSelect769[["PgSelect[769∈0] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression581{{"PgClassExpression[581∈0] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression581 --> PgSelect769 + PgSelect776[["PgSelect[776∈0] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression580{{"PgClassExpression[580∈0] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression580 --> PgSelect776 + PgSelect790[["PgSelect[790∈0] ➊
ᐸtypesᐳ"]]:::plan + Access788{{"Access[788∈0] ➊
ᐸ787.1ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect790 + Access788 --> PgSelect790 + PgSelect861[["PgSelect[861∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression863{{"PgFromExpression[863∈0] ➊"}}:::plan + Object11 & PgFromExpression863 --> PgSelect861 + PgSelect875[["PgSelect[875∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression877{{"PgFromExpression[877∈0] ➊"}}:::plan + Object11 & PgFromExpression877 --> PgSelect875 + PgSelect882[["PgSelect[882∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression884{{"PgFromExpression[884∈0] ➊"}}:::plan + Object11 & PgFromExpression884 --> PgSelect882 + PgSelect896[["PgSelect[896∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression898{{"PgFromExpression[898∈0] ➊"}}:::plan + Object11 & PgFromExpression898 --> PgSelect896 + PgSelect911[["PgSelect[911∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression913{{"PgFromExpression[913∈0] ➊"}}:::plan + Object11 & PgFromExpression913 --> PgSelect911 + PgSelect925[["PgSelect[925∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression927{{"PgFromExpression[927∈0] ➊"}}:::plan + Object11 & PgFromExpression927 --> PgSelect925 + PgSelect932[["PgSelect[932∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression934{{"PgFromExpression[934∈0] ➊"}}:::plan + Object11 & PgFromExpression934 --> PgSelect932 + PgSelect946[["PgSelect[946∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression948{{"PgFromExpression[948∈0] ➊"}}:::plan + Object11 & PgFromExpression948 --> PgSelect946 + PgSelect984[["PgSelect[984∈0] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression796{{"PgClassExpression[796∈0] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression796 --> PgSelect984 + PgSelect991[["PgSelect[991∈0] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression795{{"PgClassExpression[795∈0] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression795 --> PgSelect991 + PgSelect1332[["PgSelect[1332∈0] ➊
ᐸtype_functionᐳ"]]:::plan + PgFromExpression1334{{"PgFromExpression[1334∈0] ➊"}}:::plan + Object11 & PgFromExpression1334 --> PgSelect1332 + PgSelect1404[["PgSelect[1404∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression1406{{"PgFromExpression[1406∈0] ➊"}}:::plan + Object11 & PgFromExpression1406 --> PgSelect1404 + PgSelect1418[["PgSelect[1418∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression1420{{"PgFromExpression[1420∈0] ➊"}}:::plan + Object11 & PgFromExpression1420 --> PgSelect1418 + PgSelect1425[["PgSelect[1425∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression1427{{"PgFromExpression[1427∈0] ➊"}}:::plan + Object11 & PgFromExpression1427 --> PgSelect1425 + PgSelect1439[["PgSelect[1439∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression1441{{"PgFromExpression[1441∈0] ➊"}}:::plan + Object11 & PgFromExpression1441 --> PgSelect1439 + PgSelect1454[["PgSelect[1454∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression1456{{"PgFromExpression[1456∈0] ➊"}}:::plan + Object11 & PgFromExpression1456 --> PgSelect1454 + PgSelect1468[["PgSelect[1468∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression1470{{"PgFromExpression[1470∈0] ➊"}}:::plan + Object11 & PgFromExpression1470 --> PgSelect1468 + PgSelect1475[["PgSelect[1475∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression1477{{"PgFromExpression[1477∈0] ➊"}}:::plan + Object11 & PgFromExpression1477 --> PgSelect1475 + PgSelect1489[["PgSelect[1489∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression1491{{"PgFromExpression[1491∈0] ➊"}}:::plan + Object11 & PgFromExpression1491 --> PgSelect1489 + PgSelect1527[["PgSelect[1527∈0] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression1339{{"PgClassExpression[1339∈0] ➊
ᐸ__type_fun...”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression1339 --> PgSelect1527 + PgSelect1534[["PgSelect[1534∈0] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression1338{{"PgClassExpression[1338∈0] ➊
ᐸ__type_function__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression1338 --> PgSelect1534 + __ListTransform1973[["__ListTransform[1973∈0] ➊
ᐸeach:1972ᐳ"]]:::plan + PgSelectRows1761[["PgSelectRows[1761∈0] ➊"]]:::plan + PgSelectRows1761 & PgSelect1760 --> __ListTransform1973 + PgSelect2190[["PgSelect[2190∈0] ➊
ᐸtype_function_connection(aggregate)ᐳ"]]:::plan + Object11 -->|rejectNull| PgSelect2190 + Connection1759 --> PgSelect2190 + PgCursor2210{{"PgCursor[2210∈0] ➊"}}:::plan + PgSelectSingle2208{{"PgSelectSingle[2208∈0] ➊
ᐸtype_function_connectionᐳ"}}:::plan + Access1980{{"Access[1980∈0] ➊
ᐸ1760.cursorDetailsᐳ"}}:::plan + PgSelectSingle2208 & Access1980 --> PgCursor2210 + PgCursor2216{{"PgCursor[2216∈0] ➊"}}:::plan + PgSelectSingle2214{{"PgSelectSingle[2214∈0] ➊
ᐸtype_function_connectionᐳ"}}:::plan + PgSelectSingle2214 & Access1980 --> PgCursor2216 + PgSelect2218[["PgSelect[2218∈0] ➊
ᐸpersonᐳ"]]:::plan + Constant3691{{"Constant[3691∈0] ➊
ᐸ1ᐳ"}}:::plan + Object11 & Constant3691 --> PgSelect2218 + PgSelect2225[["PgSelect[2225∈0] ➊
ᐸperson_type_functionᐳ"]]:::plan + PgFromExpression2227{{"PgFromExpression[2227∈0] ➊"}}:::plan + Object11 & PgFromExpression2227 --> PgSelect2225 + PgClassExpression2224{{"PgClassExpression[2224∈0] ➊
ᐸ__person__ᐳ"}}:::plan + PgClassExpression2224 & Constant3687 --> PgFromExpression2227 + PgSelect2297[["PgSelect[2297∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression2299{{"PgFromExpression[2299∈0] ➊"}}:::plan + Object11 & PgFromExpression2299 --> PgSelect2297 + PgSelect2311[["PgSelect[2311∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression2313{{"PgFromExpression[2313∈0] ➊"}}:::plan + Object11 & PgFromExpression2313 --> PgSelect2311 + PgSelect2318[["PgSelect[2318∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression2320{{"PgFromExpression[2320∈0] ➊"}}:::plan + Object11 & PgFromExpression2320 --> PgSelect2318 + PgSelect2332[["PgSelect[2332∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression2334{{"PgFromExpression[2334∈0] ➊"}}:::plan + Object11 & PgFromExpression2334 --> PgSelect2332 + PgSelect2347[["PgSelect[2347∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression2349{{"PgFromExpression[2349∈0] ➊"}}:::plan + Object11 & PgFromExpression2349 --> PgSelect2347 + PgSelect2361[["PgSelect[2361∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression2363{{"PgFromExpression[2363∈0] ➊"}}:::plan + Object11 & PgFromExpression2363 --> PgSelect2361 + PgSelect2368[["PgSelect[2368∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression2370{{"PgFromExpression[2370∈0] ➊"}}:::plan + Object11 & PgFromExpression2370 --> PgSelect2368 + PgSelect2382[["PgSelect[2382∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression2384{{"PgFromExpression[2384∈0] ➊"}}:::plan + Object11 & PgFromExpression2384 --> PgSelect2382 + PgSelect2420[["PgSelect[2420∈0] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression2232{{"PgClassExpression[2232∈0] ➊
ᐸ__person_t...”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression2232 --> PgSelect2420 + PgSelect2427[["PgSelect[2427∈0] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression2231{{"PgClassExpression[2231∈0] ➊
ᐸ__person_t...ion__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression2231 --> PgSelect2427 + PgSelect2438[["PgSelect[2438∈0] ➊
ᐸperson_type_function_listᐳ"]]:::plan + PgFromExpression2440{{"PgFromExpression[2440∈0] ➊"}}:::plan + Object11 & PgFromExpression2440 --> PgSelect2438 + __ListTransform2870[["__ListTransform[2870∈0] ➊
ᐸeach:2869ᐳ"]]:::plan + PgSelectRows2658[["PgSelectRows[2658∈0] ➊"]]:::plan + PgSelectRows2658 & PgSelect2657 --> __ListTransform2870 + PgCursor3107{{"PgCursor[3107∈0] ➊"}}:::plan + PgSelectSingle3105{{"PgSelectSingle[3105∈0] ➊
ᐸperson_type_function_connectionᐳ"}}:::plan + Access2877{{"Access[2877∈0] ➊
ᐸ2657.cursorDetailsᐳ"}}:::plan + PgSelectSingle3105 & Access2877 --> PgCursor3107 + PgCursor3113{{"PgCursor[3113∈0] ➊"}}:::plan + PgSelectSingle3111{{"PgSelectSingle[3111∈0] ➊
ᐸperson_type_function_connectionᐳ"}}:::plan + PgSelectSingle3111 & Access2877 --> PgCursor3113 + PgSelect3115[["PgSelect[3115∈0] ➊
ᐸpostᐳ"]]:::plan + Object11 & Constant3687 --> PgSelect3115 + PgSelect3122[["PgSelect[3122∈0] ➊
ᐸtypesᐳ"]]:::plan + Object11 & PgClassExpression3120 --> PgSelect3122 + PgSelect3193[["PgSelect[3193∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression3195{{"PgFromExpression[3195∈0] ➊"}}:::plan + Object11 & PgFromExpression3195 --> PgSelect3193 + PgSelect3207[["PgSelect[3207∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression3209{{"PgFromExpression[3209∈0] ➊"}}:::plan + Object11 & PgFromExpression3209 --> PgSelect3207 + PgSelect3214[["PgSelect[3214∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression3216{{"PgFromExpression[3216∈0] ➊"}}:::plan + Object11 & PgFromExpression3216 --> PgSelect3214 + PgSelect3228[["PgSelect[3228∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression3230{{"PgFromExpression[3230∈0] ➊"}}:::plan + Object11 & PgFromExpression3230 --> PgSelect3228 + PgSelect3243[["PgSelect[3243∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression3245{{"PgFromExpression[3245∈0] ➊"}}:::plan + Object11 & PgFromExpression3245 --> PgSelect3243 + PgSelect3257[["PgSelect[3257∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgFromExpression3259{{"PgFromExpression[3259∈0] ➊"}}:::plan + Object11 & PgFromExpression3259 --> PgSelect3257 + PgSelect3264[["PgSelect[3264∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression3266{{"PgFromExpression[3266∈0] ➊"}}:::plan + Object11 & PgFromExpression3266 --> PgSelect3264 + PgSelect3278[["PgSelect[3278∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgFromExpression3280{{"PgFromExpression[3280∈0] ➊"}}:::plan + Object11 & PgFromExpression3280 --> PgSelect3278 + PgSelect3316[["PgSelect[3316∈0] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression3128{{"PgClassExpression[3128∈0] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression3128 --> PgSelect3316 + PgSelect3323[["PgSelect[3323∈0] ➊
ᐸpostᐳ"]]:::plan + PgClassExpression3127{{"PgClassExpression[3127∈0] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression3127 --> PgSelect3323 + PgCursor3678{{"PgCursor[3678∈0] ➊"}}:::plan + PgSelectSingle3676{{"PgSelectSingle[3676∈0] ➊
ᐸtypesᐳ"}}:::plan + Access3677{{"Access[3677∈0] ➊
ᐸ3338.cursorDetailsᐳ"}}:::plan + PgSelectSingle3676 & Access3677 --> PgCursor3678 + PgCursor3684{{"PgCursor[3684∈0] ➊"}}:::plan + PgSelectSingle3682{{"PgSelectSingle[3682∈0] ➊
ᐸtypesᐳ"}}:::plan + PgSelectSingle3682 & Access3677 --> PgCursor3684 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - PgSelect452[["PgSelect[452∈0] ➊
ᐸtypesᐳ"]]:::plan - Object12 --> PgSelect452 - PgSelectRows454[["PgSelectRows[454∈0] ➊"]]:::plan - PgSelect452 --> PgSelectRows454 - First662{{"First[662∈0] ➊"}}:::plan - PgSelectRows663[["PgSelectRows[663∈0] ➊"]]:::plan - PgSelectRows663 --> First662 - PgSelect660 --> PgSelectRows663 - PgSelectSingle664{{"PgSelectSingle[664∈0] ➊
ᐸtypesᐳ"}}:::plan - First662 --> PgSelectSingle664 - Lambda868{{"Lambda[868∈0] ➊
ᐸspecifier_Type_base64JSONᐳ"}}:::plan - Constant3804{{"Constant[3804∈0] ➊
ᐸ'WyJ0eXBlcyIsMTFd'ᐳ"}}:::plan - Constant3804 --> Lambda868 - Lambda868 --> Access869 - First873{{"First[873∈0] ➊"}}:::plan - PgSelectRows874[["PgSelectRows[874∈0] ➊"]]:::plan - PgSelectRows874 --> First873 - PgSelect871 --> PgSelectRows874 - PgSelectSingle875{{"PgSelectSingle[875∈0] ➊
ᐸtypesᐳ"}}:::plan - First873 --> PgSelectSingle875 - Node1079{{"Node[1079∈0] ➊"}}:::plan - Lambda1080{{"Lambda[1080∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan - Lambda1080 --> Node1079 - Constant3804 --> Lambda1080 - First1405{{"First[1405∈0] ➊"}}:::plan - PgSelectRows1406[["PgSelectRows[1406∈0] ➊"]]:::plan - PgSelectRows1406 --> First1405 - PgSelect1403 --> PgSelectRows1406 - PgSelectSingle1407{{"PgSelectSingle[1407∈0] ➊
ᐸtype_functionᐳ"}}:::plan - First1405 --> PgSelectSingle1407 - PgSelect1610[["PgSelect[1610∈0] ➊
ᐸtype_function_listᐳ"]]:::plan - Object12 --> PgSelect1610 - PgSelectRows1612[["PgSelectRows[1612∈0] ➊"]]:::plan - PgSelect1610 --> PgSelectRows1612 - First2269{{"First[2269∈0] ➊"}}:::plan - PgSelectRows2270[["PgSelectRows[2270∈0] ➊"]]:::plan - PgSelectRows2270 --> First2269 - PgSelect2267 --> PgSelectRows2270 - PgSelectSingle2271{{"PgSelectSingle[2271∈0] ➊
ᐸpersonᐳ"}}:::plan - First2269 --> PgSelectSingle2271 - PgPageInfo3119{{"PgPageInfo[3119∈0] ➊"}}:::plan - Connection2694{{"Connection[2694∈0] ➊
ᐸ2692ᐳ"}}:::plan - Connection2694 --> PgPageInfo3119 - First3144{{"First[3144∈0] ➊"}}:::plan - PgSelectRows3145[["PgSelectRows[3145∈0] ➊"]]:::plan - PgSelectRows3145 --> First3144 - PgSelect3142 --> PgSelectRows3145 - PgSelectSingle3146{{"PgSelectSingle[3146∈0] ➊
ᐸpostᐳ"}}:::plan - First3144 --> PgSelectSingle3146 - PgPageInfo3779{{"PgPageInfo[3779∈0] ➊"}}:::plan - Connection3362{{"Connection[3362∈0] ➊
ᐸ3360ᐳ"}}:::plan - Connection3362 --> PgPageInfo3779 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Constant6{{"Constant[6∈0] ➊
ᐸundefinedᐳ"}}:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Connection1819{{"Connection[1819∈0] ➊
ᐸ1817ᐳ"}}:::plan - Object438{{"Object[438∈1] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access433{{"Access[433∈1] ➊
ᐸ14.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access433 --> Object438 - Object434{{"Object[434∈1] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access433 --> Object434 - PgSelect14[["PgSelect[14∈1] ➊
ᐸtypes+1ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelect424[["PgSelect[424∈1] ➊
ᐸtypes(aggregate)ᐳ"]]:::plan - Object12 & Connection13 --> PgSelect424 - PgCursor445{{"PgCursor[445∈1] ➊"}}:::plan - PgSelectSingle443{{"PgSelectSingle[443∈1] ➊
ᐸtypesᐳ"}}:::plan - Access444{{"Access[444∈1] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan - PgSelectSingle443 & Access444 --> PgCursor445 - PgCursor451{{"PgCursor[451∈1] ➊"}}:::plan - PgSelectSingle449{{"PgSelectSingle[449∈1] ➊
ᐸtypesᐳ"}}:::plan - PgSelectSingle449 & Access444 --> PgCursor451 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - First425{{"First[425∈1] ➊"}}:::plan - PgSelectRows426[["PgSelectRows[426∈1] ➊"]]:::plan - PgSelectRows426 --> First425 - PgSelect424 --> PgSelectRows426 - PgSelectSingle427{{"PgSelectSingle[427∈1] ➊
ᐸtypesᐳ"}}:::plan - First425 --> PgSelectSingle427 - PgClassExpression428{{"PgClassExpression[428∈1] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle427 --> PgClassExpression428 - PgPageInfo430{{"PgPageInfo[430∈1] ➊"}}:::plan - Connection13 --> PgPageInfo430 - PgSelect14 --> Access433 - Lambda435{{"Lambda[435∈1] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object434 --> Lambda435 - Lambda439{{"Lambda[439∈1] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object438 --> Lambda439 - First441{{"First[441∈1] ➊"}}:::plan - PgSelectRows15 --> First441 - First441 --> PgSelectSingle443 - PgSelect14 --> Access444 - Last447{{"Last[447∈1] ➊"}}:::plan - PgSelectRows15 --> Last447 - Last447 --> PgSelectSingle449 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + First335{{"First[335∈0] ➊"}}:::plan + PgSelectRows336[["PgSelectRows[336∈0] ➊"]]:::plan + PgSelectRows336 --> First335 + PgSelect334 --> PgSelectRows336 + PgSelectSingle337{{"PgSelectSingle[337∈0] ➊
ᐸtypesᐳ"}}:::plan + First335 --> PgSelectSingle337 + PgClassExpression338{{"PgClassExpression[338∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle337 --> PgClassExpression338 + PgPageInfo340{{"PgPageInfo[340∈0] ➊"}}:::plan + Connection12 --> PgPageInfo340 + PgSelect14 --> Access342 + Lambda344{{"Lambda[344∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object343 --> Lambda344 + Lambda348{{"Lambda[348∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object347 --> Lambda348 + First350{{"First[350∈0] ➊"}}:::plan + PgSelectRows15 --> First350 + First350 --> PgSelectSingle352 + PgSelect14 --> Access353 + Last356{{"Last[356∈0] ➊"}}:::plan + PgSelectRows15 --> Last356 + Last356 --> PgSelectSingle358 + PgSelectRows363[["PgSelectRows[363∈0] ➊"]]:::plan + PgSelect361 --> PgSelectRows363 + First577{{"First[577∈0] ➊"}}:::plan + PgSelectRows578[["PgSelectRows[578∈0] ➊"]]:::plan + PgSelectRows578 --> First577 + PgSelect575 --> PgSelectRows578 + PgSelectSingle579{{"PgSelectSingle[579∈0] ➊
ᐸtypesᐳ"}}:::plan + First577 --> PgSelectSingle579 + PgSelectSingle579 --> PgClassExpression580 + PgSelectSingle579 --> PgClassExpression581 + PgClassExpression582{{"PgClassExpression[582∈0] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression582 + PgClassExpression583{{"PgClassExpression[583∈0] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression583 + PgClassExpression584{{"PgClassExpression[584∈0] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression584 + PgClassExpression585{{"PgClassExpression[585∈0] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression585 + PgClassExpression586{{"PgClassExpression[586∈0] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression586 + PgClassExpression587{{"PgClassExpression[587∈0] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression587 + PgClassExpression588{{"PgClassExpression[588∈0] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression588 + PgClassExpression590{{"PgClassExpression[590∈0] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression590 + PgClassExpression591{{"PgClassExpression[591∈0] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression591 + PgClassExpression592{{"PgClassExpression[592∈0] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression592 + PgClassExpression594{{"PgClassExpression[594∈0] ➊
ᐸ__types__.”json”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression594 + PgClassExpression595{{"PgClassExpression[595∈0] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression595 + PgClassExpression596{{"PgClassExpression[596∈0] ➊
ᐸ__types__....ble_range”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression596 + PgClassExpression603{{"PgClassExpression[603∈0] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression603 + PgClassExpression610{{"PgClassExpression[610∈0] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression610 + PgClassExpression617{{"PgClassExpression[617∈0] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression617 + PgClassExpression624{{"PgClassExpression[624∈0] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression624 + PgClassExpression625{{"PgClassExpression[625∈0] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression625 + PgClassExpression626{{"PgClassExpression[626∈0] ➊
ᐸ__types__.”date”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression626 + PgClassExpression627{{"PgClassExpression[627∈0] ➊
ᐸ__types__.”time”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression627 + PgClassExpression628{{"PgClassExpression[628∈0] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression628 + PgClassExpression629{{"PgClassExpression[629∈0] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression629 + PgClassExpression636{{"PgClassExpression[636∈0] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression636 + PgClassExpression644{{"PgClassExpression[644∈0] ➊
ᐸ__types__.”money”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression644 + PgClassExpression645{{"PgClassExpression[645∈0] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression645 + PgClassExpression645 --> PgFromExpression648 + First649{{"First[649∈0] ➊"}}:::plan + PgSelectRows650[["PgSelectRows[650∈0] ➊"]]:::plan + PgSelectRows650 --> First649 + PgSelect646 --> PgSelectRows650 + PgSelectSingle651{{"PgSelectSingle[651∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First649 --> PgSelectSingle651 + PgClassExpression652{{"PgClassExpression[652∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle651 --> PgClassExpression652 + PgClassExpression653{{"PgClassExpression[653∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle651 --> PgClassExpression653 + PgClassExpression654{{"PgClassExpression[654∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle651 --> PgClassExpression654 + PgClassExpression655{{"PgClassExpression[655∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle651 --> PgClassExpression655 + PgClassExpression656{{"PgClassExpression[656∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle651 --> PgClassExpression656 + PgClassExpression657{{"PgClassExpression[657∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle651 --> PgClassExpression657 + PgClassExpression658{{"PgClassExpression[658∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle651 --> PgClassExpression658 + PgClassExpression659{{"PgClassExpression[659∈0] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression659 + PgClassExpression659 --> PgFromExpression662 + First663{{"First[663∈0] ➊"}}:::plan + PgSelectRows664[["PgSelectRows[664∈0] ➊"]]:::plan + PgSelectRows664 --> First663 + PgSelect660 --> PgSelectRows664 + PgSelectSingle665{{"PgSelectSingle[665∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First663 --> PgSelectSingle665 + PgClassExpression666{{"PgClassExpression[666∈0] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle665 --> PgClassExpression666 + PgClassExpression666 --> PgFromExpression669 + First670{{"First[670∈0] ➊"}}:::plan + PgSelectRows671[["PgSelectRows[671∈0] ➊"]]:::plan + PgSelectRows671 --> First670 + PgSelect667 --> PgSelectRows671 + PgSelectSingle672{{"PgSelectSingle[672∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First670 --> PgSelectSingle672 + PgClassExpression673{{"PgClassExpression[673∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle672 --> PgClassExpression673 + PgClassExpression674{{"PgClassExpression[674∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle672 --> PgClassExpression674 + PgClassExpression675{{"PgClassExpression[675∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle672 --> PgClassExpression675 + PgClassExpression676{{"PgClassExpression[676∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle672 --> PgClassExpression676 + PgClassExpression677{{"PgClassExpression[677∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle672 --> PgClassExpression677 + PgClassExpression678{{"PgClassExpression[678∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle672 --> PgClassExpression678 + PgClassExpression679{{"PgClassExpression[679∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle672 --> PgClassExpression679 + PgClassExpression680{{"PgClassExpression[680∈0] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle665 --> PgClassExpression680 + PgClassExpression680 --> PgFromExpression683 + First684{{"First[684∈0] ➊"}}:::plan + PgSelectRows685[["PgSelectRows[685∈0] ➊"]]:::plan + PgSelectRows685 --> First684 + PgSelect681 --> PgSelectRows685 + PgSelectSingle686{{"PgSelectSingle[686∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First684 --> PgSelectSingle686 + PgClassExpression687{{"PgClassExpression[687∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle686 --> PgClassExpression687 + PgClassExpression688{{"PgClassExpression[688∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle686 --> PgClassExpression688 + PgClassExpression689{{"PgClassExpression[689∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle686 --> PgClassExpression689 + PgClassExpression690{{"PgClassExpression[690∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle686 --> PgClassExpression690 + PgClassExpression691{{"PgClassExpression[691∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle686 --> PgClassExpression691 + PgClassExpression692{{"PgClassExpression[692∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle686 --> PgClassExpression692 + PgClassExpression693{{"PgClassExpression[693∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle686 --> PgClassExpression693 + PgClassExpression694{{"PgClassExpression[694∈0] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle665 --> PgClassExpression694 + PgClassExpression695{{"PgClassExpression[695∈0] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression695 + PgClassExpression695 --> PgFromExpression698 + First699{{"First[699∈0] ➊"}}:::plan + PgSelectRows700[["PgSelectRows[700∈0] ➊"]]:::plan + PgSelectRows700 --> First699 + PgSelect696 --> PgSelectRows700 + PgSelectSingle701{{"PgSelectSingle[701∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First699 --> PgSelectSingle701 + PgClassExpression702{{"PgClassExpression[702∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle701 --> PgClassExpression702 + PgClassExpression703{{"PgClassExpression[703∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle701 --> PgClassExpression703 + PgClassExpression704{{"PgClassExpression[704∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle701 --> PgClassExpression704 + PgClassExpression705{{"PgClassExpression[705∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle701 --> PgClassExpression705 + PgClassExpression706{{"PgClassExpression[706∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle701 --> PgClassExpression706 + PgClassExpression707{{"PgClassExpression[707∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle701 --> PgClassExpression707 + PgClassExpression708{{"PgClassExpression[708∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle701 --> PgClassExpression708 + PgClassExpression709{{"PgClassExpression[709∈0] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression709 + PgClassExpression709 --> PgFromExpression712 + First713{{"First[713∈0] ➊"}}:::plan + PgSelectRows714[["PgSelectRows[714∈0] ➊"]]:::plan + PgSelectRows714 --> First713 + PgSelect710 --> PgSelectRows714 + PgSelectSingle715{{"PgSelectSingle[715∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First713 --> PgSelectSingle715 + PgClassExpression716{{"PgClassExpression[716∈0] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle715 --> PgClassExpression716 + PgClassExpression716 --> PgFromExpression719 + First720{{"First[720∈0] ➊"}}:::plan + PgSelectRows721[["PgSelectRows[721∈0] ➊"]]:::plan + PgSelectRows721 --> First720 + PgSelect717 --> PgSelectRows721 + PgSelectSingle722{{"PgSelectSingle[722∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First720 --> PgSelectSingle722 + PgClassExpression723{{"PgClassExpression[723∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle722 --> PgClassExpression723 + PgClassExpression724{{"PgClassExpression[724∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle722 --> PgClassExpression724 + PgClassExpression725{{"PgClassExpression[725∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle722 --> PgClassExpression725 + PgClassExpression726{{"PgClassExpression[726∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle722 --> PgClassExpression726 + PgClassExpression727{{"PgClassExpression[727∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle722 --> PgClassExpression727 + PgClassExpression728{{"PgClassExpression[728∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle722 --> PgClassExpression728 + PgClassExpression729{{"PgClassExpression[729∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle722 --> PgClassExpression729 + PgClassExpression730{{"PgClassExpression[730∈0] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle715 --> PgClassExpression730 + PgClassExpression730 --> PgFromExpression733 + First734{{"First[734∈0] ➊"}}:::plan + PgSelectRows735[["PgSelectRows[735∈0] ➊"]]:::plan + PgSelectRows735 --> First734 + PgSelect731 --> PgSelectRows735 + PgSelectSingle736{{"PgSelectSingle[736∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First734 --> PgSelectSingle736 + PgClassExpression737{{"PgClassExpression[737∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle736 --> PgClassExpression737 + PgClassExpression738{{"PgClassExpression[738∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle736 --> PgClassExpression738 + PgClassExpression739{{"PgClassExpression[739∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle736 --> PgClassExpression739 + PgClassExpression740{{"PgClassExpression[740∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle736 --> PgClassExpression740 + PgClassExpression741{{"PgClassExpression[741∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle736 --> PgClassExpression741 + PgClassExpression742{{"PgClassExpression[742∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle736 --> PgClassExpression742 + PgClassExpression743{{"PgClassExpression[743∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle736 --> PgClassExpression743 + PgClassExpression744{{"PgClassExpression[744∈0] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle715 --> PgClassExpression744 + PgClassExpression745{{"PgClassExpression[745∈0] ➊
ᐸ__types__.”point”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression745 + PgClassExpression748{{"PgClassExpression[748∈0] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression748 + PgClassExpression751{{"PgClassExpression[751∈0] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression751 + PgClassExpression752{{"PgClassExpression[752∈0] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression752 + PgClassExpression753{{"PgClassExpression[753∈0] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression753 + PgClassExpression754{{"PgClassExpression[754∈0] ➊
ᐸ__types__.”regproc”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression754 + PgClassExpression755{{"PgClassExpression[755∈0] ➊
ᐸ__types__....procedure”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression755 + PgClassExpression756{{"PgClassExpression[756∈0] ➊
ᐸ__types__.”regoper”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression756 + PgClassExpression757{{"PgClassExpression[757∈0] ➊
ᐸ__types__.”regoperator”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression757 + PgClassExpression758{{"PgClassExpression[758∈0] ➊
ᐸ__types__.”regclass”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression758 + PgClassExpression759{{"PgClassExpression[759∈0] ➊
ᐸ__types__.”regtype”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression759 + PgClassExpression760{{"PgClassExpression[760∈0] ➊
ᐸ__types__.”regconfig”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression760 + PgClassExpression761{{"PgClassExpression[761∈0] ➊
ᐸ__types__....ictionary”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression761 + PgClassExpression762{{"PgClassExpression[762∈0] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression762 + PgClassExpression764{{"PgClassExpression[764∈0] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression764 + PgClassExpression766{{"PgClassExpression[766∈0] ➊
ᐸ__types__.”bytea”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression766 + PgClassExpression767{{"PgClassExpression[767∈0] ➊
ᐸ__types__.”bytea_array”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression767 + First771{{"First[771∈0] ➊"}}:::plan + PgSelectRows772[["PgSelectRows[772∈0] ➊"]]:::plan + PgSelectRows772 --> First771 + PgSelect769 --> PgSelectRows772 + PgSelectSingle773{{"PgSelectSingle[773∈0] ➊
ᐸpostᐳ"}}:::plan + First771 --> PgSelectSingle773 + PgClassExpression774{{"PgClassExpression[774∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle773 --> PgClassExpression774 + PgClassExpression775{{"PgClassExpression[775∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle773 --> PgClassExpression775 + First778{{"First[778∈0] ➊"}}:::plan + PgSelectRows779[["PgSelectRows[779∈0] ➊"]]:::plan + PgSelectRows779 --> First778 + PgSelect776 --> PgSelectRows779 + PgSelectSingle780{{"PgSelectSingle[780∈0] ➊
ᐸpostᐳ"}}:::plan + First778 --> PgSelectSingle780 + PgClassExpression781{{"PgClassExpression[781∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle780 --> PgClassExpression781 + PgClassExpression782{{"PgClassExpression[782∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle780 --> PgClassExpression782 + PgClassExpression783{{"PgClassExpression[783∈0] ➊
ᐸ__types__.”ltree”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression783 + PgClassExpression784{{"PgClassExpression[784∈0] ➊
ᐸ__types__.”ltree_array”ᐳ"}}:::plan + PgSelectSingle579 --> PgClassExpression784 + Lambda787{{"Lambda[787∈0] ➊
ᐸspecifier_Type_base64JSONᐳ"}}:::plan + Constant3688{{"Constant[3688∈0] ➊
ᐸ'WyJ0eXBlcyIsMTFd'ᐳ"}}:::plan + Constant3688 --> Lambda787 + Lambda787 --> Access788 + First792{{"First[792∈0] ➊"}}:::plan + PgSelectRows793[["PgSelectRows[793∈0] ➊"]]:::plan + PgSelectRows793 --> First792 + PgSelect790 --> PgSelectRows793 + PgSelectSingle794{{"PgSelectSingle[794∈0] ➊
ᐸtypesᐳ"}}:::plan + First792 --> PgSelectSingle794 + PgSelectSingle794 --> PgClassExpression795 + PgSelectSingle794 --> PgClassExpression796 + PgClassExpression797{{"PgClassExpression[797∈0] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression797 + PgClassExpression798{{"PgClassExpression[798∈0] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression798 + PgClassExpression799{{"PgClassExpression[799∈0] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression799 + PgClassExpression800{{"PgClassExpression[800∈0] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression800 + PgClassExpression801{{"PgClassExpression[801∈0] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression801 + PgClassExpression802{{"PgClassExpression[802∈0] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression802 + PgClassExpression803{{"PgClassExpression[803∈0] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression803 + PgClassExpression805{{"PgClassExpression[805∈0] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression805 + PgClassExpression806{{"PgClassExpression[806∈0] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression806 + PgClassExpression807{{"PgClassExpression[807∈0] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression807 + PgClassExpression809{{"PgClassExpression[809∈0] ➊
ᐸ__types__.”json”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression809 + PgClassExpression810{{"PgClassExpression[810∈0] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression810 + PgClassExpression811{{"PgClassExpression[811∈0] ➊
ᐸ__types__....ble_range”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression811 + PgClassExpression818{{"PgClassExpression[818∈0] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression818 + PgClassExpression825{{"PgClassExpression[825∈0] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression825 + PgClassExpression832{{"PgClassExpression[832∈0] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression832 + PgClassExpression839{{"PgClassExpression[839∈0] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression839 + PgClassExpression840{{"PgClassExpression[840∈0] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression840 + PgClassExpression841{{"PgClassExpression[841∈0] ➊
ᐸ__types__.”date”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression841 + PgClassExpression842{{"PgClassExpression[842∈0] ➊
ᐸ__types__.”time”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression842 + PgClassExpression843{{"PgClassExpression[843∈0] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression843 + PgClassExpression844{{"PgClassExpression[844∈0] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression844 + PgClassExpression851{{"PgClassExpression[851∈0] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression851 + PgClassExpression859{{"PgClassExpression[859∈0] ➊
ᐸ__types__.”money”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression859 + PgClassExpression860{{"PgClassExpression[860∈0] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression860 + PgClassExpression860 --> PgFromExpression863 + First864{{"First[864∈0] ➊"}}:::plan + PgSelectRows865[["PgSelectRows[865∈0] ➊"]]:::plan + PgSelectRows865 --> First864 + PgSelect861 --> PgSelectRows865 + PgSelectSingle866{{"PgSelectSingle[866∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First864 --> PgSelectSingle866 + PgClassExpression867{{"PgClassExpression[867∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression867 + PgClassExpression868{{"PgClassExpression[868∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression868 + PgClassExpression869{{"PgClassExpression[869∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression869 + PgClassExpression870{{"PgClassExpression[870∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression870 + PgClassExpression871{{"PgClassExpression[871∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression871 + PgClassExpression872{{"PgClassExpression[872∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression872 + PgClassExpression873{{"PgClassExpression[873∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle866 --> PgClassExpression873 + PgClassExpression874{{"PgClassExpression[874∈0] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression874 + PgClassExpression874 --> PgFromExpression877 + First878{{"First[878∈0] ➊"}}:::plan + PgSelectRows879[["PgSelectRows[879∈0] ➊"]]:::plan + PgSelectRows879 --> First878 + PgSelect875 --> PgSelectRows879 + PgSelectSingle880{{"PgSelectSingle[880∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First878 --> PgSelectSingle880 + PgClassExpression881{{"PgClassExpression[881∈0] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle880 --> PgClassExpression881 + PgClassExpression881 --> PgFromExpression884 + First885{{"First[885∈0] ➊"}}:::plan + PgSelectRows886[["PgSelectRows[886∈0] ➊"]]:::plan + PgSelectRows886 --> First885 + PgSelect882 --> PgSelectRows886 + PgSelectSingle887{{"PgSelectSingle[887∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First885 --> PgSelectSingle887 + PgClassExpression888{{"PgClassExpression[888∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression888 + PgClassExpression889{{"PgClassExpression[889∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression889 + PgClassExpression890{{"PgClassExpression[890∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression890 + PgClassExpression891{{"PgClassExpression[891∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression891 + PgClassExpression892{{"PgClassExpression[892∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression892 + PgClassExpression893{{"PgClassExpression[893∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression893 + PgClassExpression894{{"PgClassExpression[894∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle887 --> PgClassExpression894 + PgClassExpression895{{"PgClassExpression[895∈0] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle880 --> PgClassExpression895 + PgClassExpression895 --> PgFromExpression898 + First899{{"First[899∈0] ➊"}}:::plan + PgSelectRows900[["PgSelectRows[900∈0] ➊"]]:::plan + PgSelectRows900 --> First899 + PgSelect896 --> PgSelectRows900 + PgSelectSingle901{{"PgSelectSingle[901∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First899 --> PgSelectSingle901 + PgClassExpression902{{"PgClassExpression[902∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle901 --> PgClassExpression902 + PgClassExpression903{{"PgClassExpression[903∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle901 --> PgClassExpression903 + PgClassExpression904{{"PgClassExpression[904∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle901 --> PgClassExpression904 + PgClassExpression905{{"PgClassExpression[905∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle901 --> PgClassExpression905 + PgClassExpression906{{"PgClassExpression[906∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle901 --> PgClassExpression906 + PgClassExpression907{{"PgClassExpression[907∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle901 --> PgClassExpression907 + PgClassExpression908{{"PgClassExpression[908∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle901 --> PgClassExpression908 + PgClassExpression909{{"PgClassExpression[909∈0] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle880 --> PgClassExpression909 + PgClassExpression910{{"PgClassExpression[910∈0] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression910 + PgClassExpression910 --> PgFromExpression913 + First914{{"First[914∈0] ➊"}}:::plan + PgSelectRows915[["PgSelectRows[915∈0] ➊"]]:::plan + PgSelectRows915 --> First914 + PgSelect911 --> PgSelectRows915 + PgSelectSingle916{{"PgSelectSingle[916∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First914 --> PgSelectSingle916 + PgClassExpression917{{"PgClassExpression[917∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle916 --> PgClassExpression917 + PgClassExpression918{{"PgClassExpression[918∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle916 --> PgClassExpression918 + PgClassExpression919{{"PgClassExpression[919∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle916 --> PgClassExpression919 + PgClassExpression920{{"PgClassExpression[920∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle916 --> PgClassExpression920 + PgClassExpression921{{"PgClassExpression[921∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle916 --> PgClassExpression921 + PgClassExpression922{{"PgClassExpression[922∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle916 --> PgClassExpression922 + PgClassExpression923{{"PgClassExpression[923∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle916 --> PgClassExpression923 + PgClassExpression924{{"PgClassExpression[924∈0] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression924 + PgClassExpression924 --> PgFromExpression927 + First928{{"First[928∈0] ➊"}}:::plan + PgSelectRows929[["PgSelectRows[929∈0] ➊"]]:::plan + PgSelectRows929 --> First928 + PgSelect925 --> PgSelectRows929 + PgSelectSingle930{{"PgSelectSingle[930∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First928 --> PgSelectSingle930 + PgClassExpression931{{"PgClassExpression[931∈0] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle930 --> PgClassExpression931 + PgClassExpression931 --> PgFromExpression934 + First935{{"First[935∈0] ➊"}}:::plan + PgSelectRows936[["PgSelectRows[936∈0] ➊"]]:::plan + PgSelectRows936 --> First935 + PgSelect932 --> PgSelectRows936 + PgSelectSingle937{{"PgSelectSingle[937∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First935 --> PgSelectSingle937 + PgClassExpression938{{"PgClassExpression[938∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle937 --> PgClassExpression938 + PgClassExpression939{{"PgClassExpression[939∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle937 --> PgClassExpression939 + PgClassExpression940{{"PgClassExpression[940∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle937 --> PgClassExpression940 + PgClassExpression941{{"PgClassExpression[941∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle937 --> PgClassExpression941 + PgClassExpression942{{"PgClassExpression[942∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle937 --> PgClassExpression942 + PgClassExpression943{{"PgClassExpression[943∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle937 --> PgClassExpression943 + PgClassExpression944{{"PgClassExpression[944∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle937 --> PgClassExpression944 + PgClassExpression945{{"PgClassExpression[945∈0] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle930 --> PgClassExpression945 + PgClassExpression945 --> PgFromExpression948 + First949{{"First[949∈0] ➊"}}:::plan + PgSelectRows950[["PgSelectRows[950∈0] ➊"]]:::plan + PgSelectRows950 --> First949 + PgSelect946 --> PgSelectRows950 + PgSelectSingle951{{"PgSelectSingle[951∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First949 --> PgSelectSingle951 + PgClassExpression952{{"PgClassExpression[952∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle951 --> PgClassExpression952 + PgClassExpression953{{"PgClassExpression[953∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle951 --> PgClassExpression953 + PgClassExpression954{{"PgClassExpression[954∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle951 --> PgClassExpression954 + PgClassExpression955{{"PgClassExpression[955∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle951 --> PgClassExpression955 + PgClassExpression956{{"PgClassExpression[956∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle951 --> PgClassExpression956 + PgClassExpression957{{"PgClassExpression[957∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle951 --> PgClassExpression957 + PgClassExpression958{{"PgClassExpression[958∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle951 --> PgClassExpression958 + PgClassExpression959{{"PgClassExpression[959∈0] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle930 --> PgClassExpression959 + PgClassExpression960{{"PgClassExpression[960∈0] ➊
ᐸ__types__.”point”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression960 + PgClassExpression963{{"PgClassExpression[963∈0] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression963 + PgClassExpression966{{"PgClassExpression[966∈0] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression966 + PgClassExpression967{{"PgClassExpression[967∈0] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression967 + PgClassExpression968{{"PgClassExpression[968∈0] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression968 + PgClassExpression969{{"PgClassExpression[969∈0] ➊
ᐸ__types__.”regproc”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression969 + PgClassExpression970{{"PgClassExpression[970∈0] ➊
ᐸ__types__....procedure”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression970 + PgClassExpression971{{"PgClassExpression[971∈0] ➊
ᐸ__types__.”regoper”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression971 + PgClassExpression972{{"PgClassExpression[972∈0] ➊
ᐸ__types__.”regoperator”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression972 + PgClassExpression973{{"PgClassExpression[973∈0] ➊
ᐸ__types__.”regclass”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression973 + PgClassExpression974{{"PgClassExpression[974∈0] ➊
ᐸ__types__.”regtype”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression974 + PgClassExpression975{{"PgClassExpression[975∈0] ➊
ᐸ__types__.”regconfig”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression975 + PgClassExpression976{{"PgClassExpression[976∈0] ➊
ᐸ__types__....ictionary”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression976 + PgClassExpression977{{"PgClassExpression[977∈0] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression977 + PgClassExpression979{{"PgClassExpression[979∈0] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression979 + PgClassExpression981{{"PgClassExpression[981∈0] ➊
ᐸ__types__.”bytea”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression981 + PgClassExpression982{{"PgClassExpression[982∈0] ➊
ᐸ__types__.”bytea_array”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression982 + First986{{"First[986∈0] ➊"}}:::plan + PgSelectRows987[["PgSelectRows[987∈0] ➊"]]:::plan + PgSelectRows987 --> First986 + PgSelect984 --> PgSelectRows987 + PgSelectSingle988{{"PgSelectSingle[988∈0] ➊
ᐸpostᐳ"}}:::plan + First986 --> PgSelectSingle988 + PgClassExpression989{{"PgClassExpression[989∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle988 --> PgClassExpression989 + PgClassExpression990{{"PgClassExpression[990∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle988 --> PgClassExpression990 + First993{{"First[993∈0] ➊"}}:::plan + PgSelectRows994[["PgSelectRows[994∈0] ➊"]]:::plan + PgSelectRows994 --> First993 + PgSelect991 --> PgSelectRows994 + PgSelectSingle995{{"PgSelectSingle[995∈0] ➊
ᐸpostᐳ"}}:::plan + First993 --> PgSelectSingle995 + PgClassExpression996{{"PgClassExpression[996∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle995 --> PgClassExpression996 + PgClassExpression997{{"PgClassExpression[997∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle995 --> PgClassExpression997 + PgClassExpression998{{"PgClassExpression[998∈0] ➊
ᐸ__types__.”ltree”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression998 + PgClassExpression999{{"PgClassExpression[999∈0] ➊
ᐸ__types__.”ltree_array”ᐳ"}}:::plan + PgSelectSingle794 --> PgClassExpression999 + Node1002{{"Node[1002∈0] ➊"}}:::plan + Lambda1003{{"Lambda[1003∈0] ➊
ᐸdecodeNodeIdWithCodecsᐳ"}}:::plan + Lambda1003 --> Node1002 + Constant3688 --> Lambda1003 + Constant3687 --> PgFromExpression1334 + First1335{{"First[1335∈0] ➊"}}:::plan + PgSelectRows1336[["PgSelectRows[1336∈0] ➊"]]:::plan + PgSelectRows1336 --> First1335 + PgSelect1332 --> PgSelectRows1336 + PgSelectSingle1337{{"PgSelectSingle[1337∈0] ➊
ᐸtype_functionᐳ"}}:::plan + First1335 --> PgSelectSingle1337 + PgSelectSingle1337 --> PgClassExpression1338 + PgSelectSingle1337 --> PgClassExpression1339 + PgClassExpression1340{{"PgClassExpression[1340∈0] ➊
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1340 + PgClassExpression1341{{"PgClassExpression[1341∈0] ➊
ᐸ__type_fun....”numeric”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1341 + PgClassExpression1342{{"PgClassExpression[1342∈0] ➊
ᐸ__type_fun....”decimal”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1342 + PgClassExpression1343{{"PgClassExpression[1343∈0] ➊
ᐸ__type_fun....”boolean”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1343 + PgClassExpression1344{{"PgClassExpression[1344∈0] ➊
ᐸ__type_fun....”varchar”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1344 + PgClassExpression1345{{"PgClassExpression[1345∈0] ➊
ᐸ__type_fun...n__.”enum”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1345 + PgClassExpression1346{{"PgClassExpression[1346∈0] ➊
ᐸ__type_fun...num_array”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1346 + PgClassExpression1348{{"PgClassExpression[1348∈0] ➊
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1348 + PgClassExpression1349{{"PgClassExpression[1349∈0] ➊
ᐸ__type_fun....”domain2”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1349 + PgClassExpression1350{{"PgClassExpression[1350∈0] ➊
ᐸ__type_fun...ext_array”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1350 + PgClassExpression1352{{"PgClassExpression[1352∈0] ➊
ᐸ__type_fun...n__.”json”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1352 + PgClassExpression1353{{"PgClassExpression[1353∈0] ➊
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1353 + PgClassExpression1354{{"PgClassExpression[1354∈0] ➊
ᐸ__type_fun...ble_range”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1354 + PgClassExpression1361{{"PgClassExpression[1361∈0] ➊
ᐸ__type_fun...”numrange”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1361 + PgClassExpression1368{{"PgClassExpression[1368∈0] ➊
ᐸ__type_fun...daterange”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1368 + PgClassExpression1375{{"PgClassExpression[1375∈0] ➊
ᐸ__type_fun...int_range”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1375 + PgClassExpression1382{{"PgClassExpression[1382∈0] ➊
ᐸ__type_fun...timestamp”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1382 + PgClassExpression1383{{"PgClassExpression[1383∈0] ➊
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1383 + PgClassExpression1384{{"PgClassExpression[1384∈0] ➊
ᐸ__type_fun...n__.”date”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1384 + PgClassExpression1385{{"PgClassExpression[1385∈0] ➊
ᐸ__type_fun...n__.”time”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1385 + PgClassExpression1386{{"PgClassExpression[1386∈0] ➊
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1386 + PgClassExpression1387{{"PgClassExpression[1387∈0] ➊
ᐸ__type_fun...”interval”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1387 + PgClassExpression1394{{"PgClassExpression[1394∈0] ➊
ᐸ__type_fun...val_array”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1394 + PgClassExpression1402{{"PgClassExpression[1402∈0] ➊
ᐸ__type_fun...__.”money”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1402 + PgClassExpression1403{{"PgClassExpression[1403∈0] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1403 + PgClassExpression1403 --> PgFromExpression1406 + First1407{{"First[1407∈0] ➊"}}:::plan + PgSelectRows1408[["PgSelectRows[1408∈0] ➊"]]:::plan + PgSelectRows1408 --> First1407 + PgSelect1404 --> PgSelectRows1408 + PgSelectSingle1409{{"PgSelectSingle[1409∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1407 --> PgSelectSingle1409 + PgClassExpression1410{{"PgClassExpression[1410∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1409 --> PgClassExpression1410 + PgClassExpression1411{{"PgClassExpression[1411∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1409 --> PgClassExpression1411 + PgClassExpression1412{{"PgClassExpression[1412∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1409 --> PgClassExpression1412 + PgClassExpression1413{{"PgClassExpression[1413∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1409 --> PgClassExpression1413 + PgClassExpression1414{{"PgClassExpression[1414∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1409 --> PgClassExpression1414 + PgClassExpression1415{{"PgClassExpression[1415∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1409 --> PgClassExpression1415 + PgClassExpression1416{{"PgClassExpression[1416∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1409 --> PgClassExpression1416 + PgClassExpression1417{{"PgClassExpression[1417∈0] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1417 + PgClassExpression1417 --> PgFromExpression1420 + First1421{{"First[1421∈0] ➊"}}:::plan + PgSelectRows1422[["PgSelectRows[1422∈0] ➊"]]:::plan + PgSelectRows1422 --> First1421 + PgSelect1418 --> PgSelectRows1422 + PgSelectSingle1423{{"PgSelectSingle[1423∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First1421 --> PgSelectSingle1423 + PgClassExpression1424{{"PgClassExpression[1424∈0] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle1423 --> PgClassExpression1424 + PgClassExpression1424 --> PgFromExpression1427 + First1428{{"First[1428∈0] ➊"}}:::plan + PgSelectRows1429[["PgSelectRows[1429∈0] ➊"]]:::plan + PgSelectRows1429 --> First1428 + PgSelect1425 --> PgSelectRows1429 + PgSelectSingle1430{{"PgSelectSingle[1430∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1428 --> PgSelectSingle1430 + PgClassExpression1431{{"PgClassExpression[1431∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1430 --> PgClassExpression1431 + PgClassExpression1432{{"PgClassExpression[1432∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1430 --> PgClassExpression1432 + PgClassExpression1433{{"PgClassExpression[1433∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1430 --> PgClassExpression1433 + PgClassExpression1434{{"PgClassExpression[1434∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1430 --> PgClassExpression1434 + PgClassExpression1435{{"PgClassExpression[1435∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1430 --> PgClassExpression1435 + PgClassExpression1436{{"PgClassExpression[1436∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1430 --> PgClassExpression1436 + PgClassExpression1437{{"PgClassExpression[1437∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1430 --> PgClassExpression1437 + PgClassExpression1438{{"PgClassExpression[1438∈0] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle1423 --> PgClassExpression1438 + PgClassExpression1438 --> PgFromExpression1441 + First1442{{"First[1442∈0] ➊"}}:::plan + PgSelectRows1443[["PgSelectRows[1443∈0] ➊"]]:::plan + PgSelectRows1443 --> First1442 + PgSelect1439 --> PgSelectRows1443 + PgSelectSingle1444{{"PgSelectSingle[1444∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1442 --> PgSelectSingle1444 + PgClassExpression1445{{"PgClassExpression[1445∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1444 --> PgClassExpression1445 + PgClassExpression1446{{"PgClassExpression[1446∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1444 --> PgClassExpression1446 + PgClassExpression1447{{"PgClassExpression[1447∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1444 --> PgClassExpression1447 + PgClassExpression1448{{"PgClassExpression[1448∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1444 --> PgClassExpression1448 + PgClassExpression1449{{"PgClassExpression[1449∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1444 --> PgClassExpression1449 + PgClassExpression1450{{"PgClassExpression[1450∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1444 --> PgClassExpression1450 + PgClassExpression1451{{"PgClassExpression[1451∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1444 --> PgClassExpression1451 + PgClassExpression1452{{"PgClassExpression[1452∈0] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle1423 --> PgClassExpression1452 + PgClassExpression1453{{"PgClassExpression[1453∈0] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1453 + PgClassExpression1453 --> PgFromExpression1456 + First1457{{"First[1457∈0] ➊"}}:::plan + PgSelectRows1458[["PgSelectRows[1458∈0] ➊"]]:::plan + PgSelectRows1458 --> First1457 + PgSelect1454 --> PgSelectRows1458 + PgSelectSingle1459{{"PgSelectSingle[1459∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1457 --> PgSelectSingle1459 + PgClassExpression1460{{"PgClassExpression[1460∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1459 --> PgClassExpression1460 + PgClassExpression1461{{"PgClassExpression[1461∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1459 --> PgClassExpression1461 + PgClassExpression1462{{"PgClassExpression[1462∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1459 --> PgClassExpression1462 + PgClassExpression1463{{"PgClassExpression[1463∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1459 --> PgClassExpression1463 + PgClassExpression1464{{"PgClassExpression[1464∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1459 --> PgClassExpression1464 + PgClassExpression1465{{"PgClassExpression[1465∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1459 --> PgClassExpression1465 + PgClassExpression1466{{"PgClassExpression[1466∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1459 --> PgClassExpression1466 + PgClassExpression1467{{"PgClassExpression[1467∈0] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1467 + PgClassExpression1467 --> PgFromExpression1470 + First1471{{"First[1471∈0] ➊"}}:::plan + PgSelectRows1472[["PgSelectRows[1472∈0] ➊"]]:::plan + PgSelectRows1472 --> First1471 + PgSelect1468 --> PgSelectRows1472 + PgSelectSingle1473{{"PgSelectSingle[1473∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First1471 --> PgSelectSingle1473 + PgClassExpression1474{{"PgClassExpression[1474∈0] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle1473 --> PgClassExpression1474 + PgClassExpression1474 --> PgFromExpression1477 + First1478{{"First[1478∈0] ➊"}}:::plan + PgSelectRows1479[["PgSelectRows[1479∈0] ➊"]]:::plan + PgSelectRows1479 --> First1478 + PgSelect1475 --> PgSelectRows1479 + PgSelectSingle1480{{"PgSelectSingle[1480∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1478 --> PgSelectSingle1480 + PgClassExpression1481{{"PgClassExpression[1481∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1480 --> PgClassExpression1481 + PgClassExpression1482{{"PgClassExpression[1482∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1480 --> PgClassExpression1482 + PgClassExpression1483{{"PgClassExpression[1483∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1480 --> PgClassExpression1483 + PgClassExpression1484{{"PgClassExpression[1484∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1480 --> PgClassExpression1484 + PgClassExpression1485{{"PgClassExpression[1485∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1480 --> PgClassExpression1485 + PgClassExpression1486{{"PgClassExpression[1486∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1480 --> PgClassExpression1486 + PgClassExpression1487{{"PgClassExpression[1487∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1480 --> PgClassExpression1487 + PgClassExpression1488{{"PgClassExpression[1488∈0] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle1473 --> PgClassExpression1488 + PgClassExpression1488 --> PgFromExpression1491 + First1492{{"First[1492∈0] ➊"}}:::plan + PgSelectRows1493[["PgSelectRows[1493∈0] ➊"]]:::plan + PgSelectRows1493 --> First1492 + PgSelect1489 --> PgSelectRows1493 + PgSelectSingle1494{{"PgSelectSingle[1494∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1492 --> PgSelectSingle1494 + PgClassExpression1495{{"PgClassExpression[1495∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1494 --> PgClassExpression1495 + PgClassExpression1496{{"PgClassExpression[1496∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1494 --> PgClassExpression1496 + PgClassExpression1497{{"PgClassExpression[1497∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1494 --> PgClassExpression1497 + PgClassExpression1498{{"PgClassExpression[1498∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1494 --> PgClassExpression1498 + PgClassExpression1499{{"PgClassExpression[1499∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1494 --> PgClassExpression1499 + PgClassExpression1500{{"PgClassExpression[1500∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1494 --> PgClassExpression1500 + PgClassExpression1501{{"PgClassExpression[1501∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1494 --> PgClassExpression1501 + PgClassExpression1502{{"PgClassExpression[1502∈0] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle1473 --> PgClassExpression1502 + PgClassExpression1503{{"PgClassExpression[1503∈0] ➊
ᐸ__type_fun...__.”point”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1503 + PgClassExpression1506{{"PgClassExpression[1506∈0] ➊
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1506 + PgClassExpression1509{{"PgClassExpression[1509∈0] ➊
ᐸ__type_fun...n__.”inet”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1509 + PgClassExpression1510{{"PgClassExpression[1510∈0] ➊
ᐸ__type_fun...n__.”cidr”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1510 + PgClassExpression1511{{"PgClassExpression[1511∈0] ➊
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1511 + PgClassExpression1512{{"PgClassExpression[1512∈0] ➊
ᐸ__type_fun....”regproc”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1512 + PgClassExpression1513{{"PgClassExpression[1513∈0] ➊
ᐸ__type_fun...procedure”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1513 + PgClassExpression1514{{"PgClassExpression[1514∈0] ➊
ᐸ__type_fun....”regoper”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1514 + PgClassExpression1515{{"PgClassExpression[1515∈0] ➊
ᐸ__type_fun...goperator”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1515 + PgClassExpression1516{{"PgClassExpression[1516∈0] ➊
ᐸ__type_fun...”regclass”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1516 + PgClassExpression1517{{"PgClassExpression[1517∈0] ➊
ᐸ__type_fun....”regtype”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1517 + PgClassExpression1518{{"PgClassExpression[1518∈0] ➊
ᐸ__type_fun...regconfig”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1518 + PgClassExpression1519{{"PgClassExpression[1519∈0] ➊
ᐸ__type_fun...ictionary”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1519 + PgClassExpression1520{{"PgClassExpression[1520∈0] ➊
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1520 + PgClassExpression1522{{"PgClassExpression[1522∈0] ➊
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1522 + PgClassExpression1524{{"PgClassExpression[1524∈0] ➊
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1524 + PgClassExpression1525{{"PgClassExpression[1525∈0] ➊
ᐸ__type_fun...tea_array”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1525 + First1529{{"First[1529∈0] ➊"}}:::plan + PgSelectRows1530[["PgSelectRows[1530∈0] ➊"]]:::plan + PgSelectRows1530 --> First1529 + PgSelect1527 --> PgSelectRows1530 + PgSelectSingle1531{{"PgSelectSingle[1531∈0] ➊
ᐸpostᐳ"}}:::plan + First1529 --> PgSelectSingle1531 + PgClassExpression1532{{"PgClassExpression[1532∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle1531 --> PgClassExpression1532 + PgClassExpression1533{{"PgClassExpression[1533∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle1531 --> PgClassExpression1533 + First1536{{"First[1536∈0] ➊"}}:::plan + PgSelectRows1537[["PgSelectRows[1537∈0] ➊"]]:::plan + PgSelectRows1537 --> First1536 + PgSelect1534 --> PgSelectRows1537 + PgSelectSingle1538{{"PgSelectSingle[1538∈0] ➊
ᐸpostᐳ"}}:::plan + First1536 --> PgSelectSingle1538 + PgClassExpression1539{{"PgClassExpression[1539∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle1538 --> PgClassExpression1539 + PgClassExpression1540{{"PgClassExpression[1540∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle1538 --> PgClassExpression1540 + PgClassExpression1541{{"PgClassExpression[1541∈0] ➊
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1541 + PgClassExpression1542{{"PgClassExpression[1542∈0] ➊
ᐸ__type_fun...ree_array”ᐳ"}}:::plan + PgSelectSingle1337 --> PgClassExpression1542 + PgSelect1544[["PgSelect[1544∈0] ➊
ᐸtype_function_listᐳ"]]:::plan + Object11 --> PgSelect1544 + PgSelectRows1546[["PgSelectRows[1546∈0] ➊"]]:::plan + PgSelect1544 --> PgSelectRows1546 + PgSelect1760 --> PgSelectRows1761 + PgSelect1760 --> Access1980 + First2191{{"First[2191∈0] ➊"}}:::plan + PgSelectRows2192[["PgSelectRows[2192∈0] ➊"]]:::plan + PgSelectRows2192 --> First2191 + PgSelect2190 --> PgSelectRows2192 + PgSelectSingle2193{{"PgSelectSingle[2193∈0] ➊
ᐸtype_function_connectionᐳ"}}:::plan + First2191 --> PgSelectSingle2193 + PgClassExpression2194{{"PgClassExpression[2194∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle2193 --> PgClassExpression2194 + PgPageInfo2196{{"PgPageInfo[2196∈0] ➊"}}:::plan + Connection1759 --> PgPageInfo2196 + PgSelect1760 --> Access2198 + Lambda2200{{"Lambda[2200∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object2199 --> Lambda2200 + Lambda2204{{"Lambda[2204∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object2203 --> Lambda2204 + First2206{{"First[2206∈0] ➊"}}:::plan + PgSelectRows1761 --> First2206 + First2206 --> PgSelectSingle2208 + Last2212{{"Last[2212∈0] ➊"}}:::plan + PgSelectRows1761 --> Last2212 + Last2212 --> PgSelectSingle2214 + First2220{{"First[2220∈0] ➊"}}:::plan + PgSelectRows2221[["PgSelectRows[2221∈0] ➊"]]:::plan + PgSelectRows2221 --> First2220 + PgSelect2218 --> PgSelectRows2221 + PgSelectSingle2222{{"PgSelectSingle[2222∈0] ➊
ᐸpersonᐳ"}}:::plan + First2220 --> PgSelectSingle2222 + PgSelectSingle2222 --> PgClassExpression2224 + First2228{{"First[2228∈0] ➊"}}:::plan + PgSelectRows2229[["PgSelectRows[2229∈0] ➊"]]:::plan + PgSelectRows2229 --> First2228 + PgSelect2225 --> PgSelectRows2229 + PgSelectSingle2230{{"PgSelectSingle[2230∈0] ➊
ᐸperson_type_functionᐳ"}}:::plan + First2228 --> PgSelectSingle2230 + PgSelectSingle2230 --> PgClassExpression2231 + PgSelectSingle2230 --> PgClassExpression2232 + PgClassExpression2233{{"PgClassExpression[2233∈0] ➊
ᐸ__person_t..._.”bigint”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2233 + PgClassExpression2234{{"PgClassExpression[2234∈0] ➊
ᐸ__person_t....”numeric”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2234 + PgClassExpression2235{{"PgClassExpression[2235∈0] ➊
ᐸ__person_t....”decimal”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2235 + PgClassExpression2236{{"PgClassExpression[2236∈0] ➊
ᐸ__person_t....”boolean”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2236 + PgClassExpression2237{{"PgClassExpression[2237∈0] ➊
ᐸ__person_t....”varchar”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2237 + PgClassExpression2238{{"PgClassExpression[2238∈0] ➊
ᐸ__person_t...n__.”enum”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2238 + PgClassExpression2239{{"PgClassExpression[2239∈0] ➊
ᐸ__person_t...num_array”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2239 + PgClassExpression2241{{"PgClassExpression[2241∈0] ➊
ᐸ__person_t..._.”domain”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2241 + PgClassExpression2242{{"PgClassExpression[2242∈0] ➊
ᐸ__person_t....”domain2”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2242 + PgClassExpression2243{{"PgClassExpression[2243∈0] ➊
ᐸ__person_t...ext_array”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2243 + PgClassExpression2245{{"PgClassExpression[2245∈0] ➊
ᐸ__person_t...n__.”json”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2245 + PgClassExpression2246{{"PgClassExpression[2246∈0] ➊
ᐸ__person_t...__.”jsonb”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2246 + PgClassExpression2247{{"PgClassExpression[2247∈0] ➊
ᐸ__person_t...ble_range”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2247 + PgClassExpression2254{{"PgClassExpression[2254∈0] ➊
ᐸ__person_t...”numrange”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2254 + PgClassExpression2261{{"PgClassExpression[2261∈0] ➊
ᐸ__person_t...daterange”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2261 + PgClassExpression2268{{"PgClassExpression[2268∈0] ➊
ᐸ__person_t...int_range”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2268 + PgClassExpression2275{{"PgClassExpression[2275∈0] ➊
ᐸ__person_t...timestamp”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2275 + PgClassExpression2276{{"PgClassExpression[2276∈0] ➊
ᐸ__person_t...mestamptz”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2276 + PgClassExpression2277{{"PgClassExpression[2277∈0] ➊
ᐸ__person_t...n__.”date”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2277 + PgClassExpression2278{{"PgClassExpression[2278∈0] ➊
ᐸ__person_t...n__.”time”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2278 + PgClassExpression2279{{"PgClassExpression[2279∈0] ➊
ᐸ__person_t..._.”timetz”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2279 + PgClassExpression2280{{"PgClassExpression[2280∈0] ➊
ᐸ__person_t...”interval”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2280 + PgClassExpression2287{{"PgClassExpression[2287∈0] ➊
ᐸ__person_t...val_array”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2287 + PgClassExpression2295{{"PgClassExpression[2295∈0] ➊
ᐸ__person_t...__.”money”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2295 + PgClassExpression2296{{"PgClassExpression[2296∈0] ➊
ᐸ__person_t...ound_type”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2296 + PgClassExpression2296 --> PgFromExpression2299 + First2300{{"First[2300∈0] ➊"}}:::plan + PgSelectRows2301[["PgSelectRows[2301∈0] ➊"]]:::plan + PgSelectRows2301 --> First2300 + PgSelect2297 --> PgSelectRows2301 + PgSelectSingle2302{{"PgSelectSingle[2302∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2300 --> PgSelectSingle2302 + PgClassExpression2303{{"PgClassExpression[2303∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2302 --> PgClassExpression2303 + PgClassExpression2304{{"PgClassExpression[2304∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2302 --> PgClassExpression2304 + PgClassExpression2305{{"PgClassExpression[2305∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2302 --> PgClassExpression2305 + PgClassExpression2306{{"PgClassExpression[2306∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2302 --> PgClassExpression2306 + PgClassExpression2307{{"PgClassExpression[2307∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2302 --> PgClassExpression2307 + PgClassExpression2308{{"PgClassExpression[2308∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2302 --> PgClassExpression2308 + PgClassExpression2309{{"PgClassExpression[2309∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2302 --> PgClassExpression2309 + PgClassExpression2310{{"PgClassExpression[2310∈0] ➊
ᐸ__person_t...ound_type”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2310 + PgClassExpression2310 --> PgFromExpression2313 + First2314{{"First[2314∈0] ➊"}}:::plan + PgSelectRows2315[["PgSelectRows[2315∈0] ➊"]]:::plan + PgSelectRows2315 --> First2314 + PgSelect2311 --> PgSelectRows2315 + PgSelectSingle2316{{"PgSelectSingle[2316∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First2314 --> PgSelectSingle2316 + PgClassExpression2317{{"PgClassExpression[2317∈0] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle2316 --> PgClassExpression2317 + PgClassExpression2317 --> PgFromExpression2320 + First2321{{"First[2321∈0] ➊"}}:::plan + PgSelectRows2322[["PgSelectRows[2322∈0] ➊"]]:::plan + PgSelectRows2322 --> First2321 + PgSelect2318 --> PgSelectRows2322 + PgSelectSingle2323{{"PgSelectSingle[2323∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2321 --> PgSelectSingle2323 + PgClassExpression2324{{"PgClassExpression[2324∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2323 --> PgClassExpression2324 + PgClassExpression2325{{"PgClassExpression[2325∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2323 --> PgClassExpression2325 + PgClassExpression2326{{"PgClassExpression[2326∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2323 --> PgClassExpression2326 + PgClassExpression2327{{"PgClassExpression[2327∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2323 --> PgClassExpression2327 + PgClassExpression2328{{"PgClassExpression[2328∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2323 --> PgClassExpression2328 + PgClassExpression2329{{"PgClassExpression[2329∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2323 --> PgClassExpression2329 + PgClassExpression2330{{"PgClassExpression[2330∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2323 --> PgClassExpression2330 + PgClassExpression2331{{"PgClassExpression[2331∈0] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle2316 --> PgClassExpression2331 + PgClassExpression2331 --> PgFromExpression2334 + First2335{{"First[2335∈0] ➊"}}:::plan + PgSelectRows2336[["PgSelectRows[2336∈0] ➊"]]:::plan + PgSelectRows2336 --> First2335 + PgSelect2332 --> PgSelectRows2336 + PgSelectSingle2337{{"PgSelectSingle[2337∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2335 --> PgSelectSingle2337 + PgClassExpression2338{{"PgClassExpression[2338∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2337 --> PgClassExpression2338 + PgClassExpression2339{{"PgClassExpression[2339∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2337 --> PgClassExpression2339 + PgClassExpression2340{{"PgClassExpression[2340∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2337 --> PgClassExpression2340 + PgClassExpression2341{{"PgClassExpression[2341∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2337 --> PgClassExpression2341 + PgClassExpression2342{{"PgClassExpression[2342∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2337 --> PgClassExpression2342 + PgClassExpression2343{{"PgClassExpression[2343∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2337 --> PgClassExpression2343 + PgClassExpression2344{{"PgClassExpression[2344∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2337 --> PgClassExpression2344 + PgClassExpression2345{{"PgClassExpression[2345∈0] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle2316 --> PgClassExpression2345 + PgClassExpression2346{{"PgClassExpression[2346∈0] ➊
ᐸ__person_t...ound_type”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2346 + PgClassExpression2346 --> PgFromExpression2349 + First2350{{"First[2350∈0] ➊"}}:::plan + PgSelectRows2351[["PgSelectRows[2351∈0] ➊"]]:::plan + PgSelectRows2351 --> First2350 + PgSelect2347 --> PgSelectRows2351 + PgSelectSingle2352{{"PgSelectSingle[2352∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2350 --> PgSelectSingle2352 + PgClassExpression2353{{"PgClassExpression[2353∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2352 --> PgClassExpression2353 + PgClassExpression2354{{"PgClassExpression[2354∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2352 --> PgClassExpression2354 + PgClassExpression2355{{"PgClassExpression[2355∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2352 --> PgClassExpression2355 + PgClassExpression2356{{"PgClassExpression[2356∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2352 --> PgClassExpression2356 + PgClassExpression2357{{"PgClassExpression[2357∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2352 --> PgClassExpression2357 + PgClassExpression2358{{"PgClassExpression[2358∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2352 --> PgClassExpression2358 + PgClassExpression2359{{"PgClassExpression[2359∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2352 --> PgClassExpression2359 + PgClassExpression2360{{"PgClassExpression[2360∈0] ➊
ᐸ__person_t...ound_type”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2360 + PgClassExpression2360 --> PgFromExpression2363 + First2364{{"First[2364∈0] ➊"}}:::plan + PgSelectRows2365[["PgSelectRows[2365∈0] ➊"]]:::plan + PgSelectRows2365 --> First2364 + PgSelect2361 --> PgSelectRows2365 + PgSelectSingle2366{{"PgSelectSingle[2366∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First2364 --> PgSelectSingle2366 + PgClassExpression2367{{"PgClassExpression[2367∈0] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle2366 --> PgClassExpression2367 + PgClassExpression2367 --> PgFromExpression2370 + First2371{{"First[2371∈0] ➊"}}:::plan + PgSelectRows2372[["PgSelectRows[2372∈0] ➊"]]:::plan + PgSelectRows2372 --> First2371 + PgSelect2368 --> PgSelectRows2372 + PgSelectSingle2373{{"PgSelectSingle[2373∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2371 --> PgSelectSingle2373 + PgClassExpression2374{{"PgClassExpression[2374∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2373 --> PgClassExpression2374 + PgClassExpression2375{{"PgClassExpression[2375∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2373 --> PgClassExpression2375 + PgClassExpression2376{{"PgClassExpression[2376∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2373 --> PgClassExpression2376 + PgClassExpression2377{{"PgClassExpression[2377∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2373 --> PgClassExpression2377 + PgClassExpression2378{{"PgClassExpression[2378∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2373 --> PgClassExpression2378 + PgClassExpression2379{{"PgClassExpression[2379∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2373 --> PgClassExpression2379 + PgClassExpression2380{{"PgClassExpression[2380∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2373 --> PgClassExpression2380 + PgClassExpression2381{{"PgClassExpression[2381∈0] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle2366 --> PgClassExpression2381 + PgClassExpression2381 --> PgFromExpression2384 + First2385{{"First[2385∈0] ➊"}}:::plan + PgSelectRows2386[["PgSelectRows[2386∈0] ➊"]]:::plan + PgSelectRows2386 --> First2385 + PgSelect2382 --> PgSelectRows2386 + PgSelectSingle2387{{"PgSelectSingle[2387∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2385 --> PgSelectSingle2387 + PgClassExpression2388{{"PgClassExpression[2388∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2387 --> PgClassExpression2388 + PgClassExpression2389{{"PgClassExpression[2389∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2387 --> PgClassExpression2389 + PgClassExpression2390{{"PgClassExpression[2390∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2387 --> PgClassExpression2390 + PgClassExpression2391{{"PgClassExpression[2391∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2387 --> PgClassExpression2391 + PgClassExpression2392{{"PgClassExpression[2392∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2387 --> PgClassExpression2392 + PgClassExpression2393{{"PgClassExpression[2393∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2387 --> PgClassExpression2393 + PgClassExpression2394{{"PgClassExpression[2394∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2387 --> PgClassExpression2394 + PgClassExpression2395{{"PgClassExpression[2395∈0] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle2366 --> PgClassExpression2395 + PgClassExpression2396{{"PgClassExpression[2396∈0] ➊
ᐸ__person_t...__.”point”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2396 + PgClassExpression2399{{"PgClassExpression[2399∈0] ➊
ᐸ__person_t...ablePoint”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2399 + PgClassExpression2402{{"PgClassExpression[2402∈0] ➊
ᐸ__person_t...n__.”inet”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2402 + PgClassExpression2403{{"PgClassExpression[2403∈0] ➊
ᐸ__person_t...n__.”cidr”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2403 + PgClassExpression2404{{"PgClassExpression[2404∈0] ➊
ᐸ__person_t....”macaddr”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2404 + PgClassExpression2405{{"PgClassExpression[2405∈0] ➊
ᐸ__person_t....”regproc”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2405 + PgClassExpression2406{{"PgClassExpression[2406∈0] ➊
ᐸ__person_t...procedure”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2406 + PgClassExpression2407{{"PgClassExpression[2407∈0] ➊
ᐸ__person_t....”regoper”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2407 + PgClassExpression2408{{"PgClassExpression[2408∈0] ➊
ᐸ__person_t...goperator”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2408 + PgClassExpression2409{{"PgClassExpression[2409∈0] ➊
ᐸ__person_t...”regclass”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2409 + PgClassExpression2410{{"PgClassExpression[2410∈0] ➊
ᐸ__person_t....”regtype”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2410 + PgClassExpression2411{{"PgClassExpression[2411∈0] ➊
ᐸ__person_t...regconfig”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2411 + PgClassExpression2412{{"PgClassExpression[2412∈0] ➊
ᐸ__person_t...ictionary”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2412 + PgClassExpression2413{{"PgClassExpression[2413∈0] ➊
ᐸ__person_t...ay_domain”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2413 + PgClassExpression2415{{"PgClassExpression[2415∈0] ➊
ᐸ__person_t...ay_domain”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2415 + PgClassExpression2417{{"PgClassExpression[2417∈0] ➊
ᐸ__person_t...__.”bytea”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2417 + PgClassExpression2418{{"PgClassExpression[2418∈0] ➊
ᐸ__person_t...tea_array”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2418 + First2422{{"First[2422∈0] ➊"}}:::plan + PgSelectRows2423[["PgSelectRows[2423∈0] ➊"]]:::plan + PgSelectRows2423 --> First2422 + PgSelect2420 --> PgSelectRows2423 + PgSelectSingle2424{{"PgSelectSingle[2424∈0] ➊
ᐸpostᐳ"}}:::plan + First2422 --> PgSelectSingle2424 + PgClassExpression2425{{"PgClassExpression[2425∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle2424 --> PgClassExpression2425 + PgClassExpression2426{{"PgClassExpression[2426∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle2424 --> PgClassExpression2426 + First2429{{"First[2429∈0] ➊"}}:::plan + PgSelectRows2430[["PgSelectRows[2430∈0] ➊"]]:::plan + PgSelectRows2430 --> First2429 + PgSelect2427 --> PgSelectRows2430 + PgSelectSingle2431{{"PgSelectSingle[2431∈0] ➊
ᐸpostᐳ"}}:::plan + First2429 --> PgSelectSingle2431 + PgClassExpression2432{{"PgClassExpression[2432∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle2431 --> PgClassExpression2432 + PgClassExpression2433{{"PgClassExpression[2433∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle2431 --> PgClassExpression2433 + PgClassExpression2434{{"PgClassExpression[2434∈0] ➊
ᐸ__person_t...__.”ltree”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2434 + PgClassExpression2435{{"PgClassExpression[2435∈0] ➊
ᐸ__person_t...ree_array”ᐳ"}}:::plan + PgSelectSingle2230 --> PgClassExpression2435 + PgClassExpression2224 --> PgFromExpression2440 + PgSelectRows2441[["PgSelectRows[2441∈0] ➊"]]:::plan + PgSelect2438 --> PgSelectRows2441 + PgClassExpression2224 --> PgFromExpression2655 + PgSelect2657 --> PgSelectRows2658 + PgSelect2657 --> Access2877 + First3088{{"First[3088∈0] ➊"}}:::plan + PgSelectRows3089[["PgSelectRows[3089∈0] ➊"]]:::plan + PgSelectRows3089 --> First3088 + PgSelect3087 --> PgSelectRows3089 + PgSelectSingle3090{{"PgSelectSingle[3090∈0] ➊
ᐸperson_type_function_connectionᐳ"}}:::plan + First3088 --> PgSelectSingle3090 + PgClassExpression3091{{"PgClassExpression[3091∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle3090 --> PgClassExpression3091 + PgPageInfo3093{{"PgPageInfo[3093∈0] ➊"}}:::plan + Connection2656 --> PgPageInfo3093 + PgSelect2657 --> Access3095 + Lambda3097{{"Lambda[3097∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object3096 --> Lambda3097 + Lambda3101{{"Lambda[3101∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object3100 --> Lambda3101 + First3103{{"First[3103∈0] ➊"}}:::plan + PgSelectRows2658 --> First3103 + First3103 --> PgSelectSingle3105 + Last3109{{"Last[3109∈0] ➊"}}:::plan + PgSelectRows2658 --> Last3109 + Last3109 --> PgSelectSingle3111 + First3117{{"First[3117∈0] ➊"}}:::plan + PgSelectRows3118[["PgSelectRows[3118∈0] ➊"]]:::plan + PgSelectRows3118 --> First3117 + PgSelect3115 --> PgSelectRows3118 + PgSelectSingle3119{{"PgSelectSingle[3119∈0] ➊
ᐸpostᐳ"}}:::plan + First3117 --> PgSelectSingle3119 + PgSelectSingle3119 --> PgClassExpression3120 + PgClassExpression3121{{"PgClassExpression[3121∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle3119 --> PgClassExpression3121 + First3124{{"First[3124∈0] ➊"}}:::plan + PgSelectRows3125[["PgSelectRows[3125∈0] ➊"]]:::plan + PgSelectRows3125 --> First3124 + PgSelect3122 --> PgSelectRows3125 + PgSelectSingle3126{{"PgSelectSingle[3126∈0] ➊
ᐸtypesᐳ"}}:::plan + First3124 --> PgSelectSingle3126 + PgSelectSingle3126 --> PgClassExpression3127 + PgSelectSingle3126 --> PgClassExpression3128 + PgClassExpression3129{{"PgClassExpression[3129∈0] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3129 + PgClassExpression3130{{"PgClassExpression[3130∈0] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3130 + PgClassExpression3131{{"PgClassExpression[3131∈0] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3131 + PgClassExpression3132{{"PgClassExpression[3132∈0] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3132 + PgClassExpression3133{{"PgClassExpression[3133∈0] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3133 + PgClassExpression3134{{"PgClassExpression[3134∈0] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3134 + PgClassExpression3135{{"PgClassExpression[3135∈0] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3135 + PgClassExpression3137{{"PgClassExpression[3137∈0] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3137 + PgClassExpression3138{{"PgClassExpression[3138∈0] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3138 + PgClassExpression3139{{"PgClassExpression[3139∈0] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3139 + PgClassExpression3141{{"PgClassExpression[3141∈0] ➊
ᐸ__types__.”json”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3141 + PgClassExpression3142{{"PgClassExpression[3142∈0] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3142 + PgClassExpression3143{{"PgClassExpression[3143∈0] ➊
ᐸ__types__....ble_range”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3143 + PgClassExpression3150{{"PgClassExpression[3150∈0] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3150 + PgClassExpression3157{{"PgClassExpression[3157∈0] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3157 + PgClassExpression3164{{"PgClassExpression[3164∈0] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3164 + PgClassExpression3171{{"PgClassExpression[3171∈0] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3171 + PgClassExpression3172{{"PgClassExpression[3172∈0] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3172 + PgClassExpression3173{{"PgClassExpression[3173∈0] ➊
ᐸ__types__.”date”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3173 + PgClassExpression3174{{"PgClassExpression[3174∈0] ➊
ᐸ__types__.”time”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3174 + PgClassExpression3175{{"PgClassExpression[3175∈0] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3175 + PgClassExpression3176{{"PgClassExpression[3176∈0] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3176 + PgClassExpression3183{{"PgClassExpression[3183∈0] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3183 + PgClassExpression3191{{"PgClassExpression[3191∈0] ➊
ᐸ__types__.”money”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3191 + PgClassExpression3192{{"PgClassExpression[3192∈0] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3192 + PgClassExpression3192 --> PgFromExpression3195 + First3196{{"First[3196∈0] ➊"}}:::plan + PgSelectRows3197[["PgSelectRows[3197∈0] ➊"]]:::plan + PgSelectRows3197 --> First3196 + PgSelect3193 --> PgSelectRows3197 + PgSelectSingle3198{{"PgSelectSingle[3198∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3196 --> PgSelectSingle3198 + PgClassExpression3199{{"PgClassExpression[3199∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3198 --> PgClassExpression3199 + PgClassExpression3200{{"PgClassExpression[3200∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3198 --> PgClassExpression3200 + PgClassExpression3201{{"PgClassExpression[3201∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3198 --> PgClassExpression3201 + PgClassExpression3202{{"PgClassExpression[3202∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3198 --> PgClassExpression3202 + PgClassExpression3203{{"PgClassExpression[3203∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3198 --> PgClassExpression3203 + PgClassExpression3204{{"PgClassExpression[3204∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3198 --> PgClassExpression3204 + PgClassExpression3205{{"PgClassExpression[3205∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3198 --> PgClassExpression3205 + PgClassExpression3206{{"PgClassExpression[3206∈0] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3206 + PgClassExpression3206 --> PgFromExpression3209 + First3210{{"First[3210∈0] ➊"}}:::plan + PgSelectRows3211[["PgSelectRows[3211∈0] ➊"]]:::plan + PgSelectRows3211 --> First3210 + PgSelect3207 --> PgSelectRows3211 + PgSelectSingle3212{{"PgSelectSingle[3212∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First3210 --> PgSelectSingle3212 + PgClassExpression3213{{"PgClassExpression[3213∈0] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle3212 --> PgClassExpression3213 + PgClassExpression3213 --> PgFromExpression3216 + First3217{{"First[3217∈0] ➊"}}:::plan + PgSelectRows3218[["PgSelectRows[3218∈0] ➊"]]:::plan + PgSelectRows3218 --> First3217 + PgSelect3214 --> PgSelectRows3218 + PgSelectSingle3219{{"PgSelectSingle[3219∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3217 --> PgSelectSingle3219 + PgClassExpression3220{{"PgClassExpression[3220∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3219 --> PgClassExpression3220 + PgClassExpression3221{{"PgClassExpression[3221∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3219 --> PgClassExpression3221 + PgClassExpression3222{{"PgClassExpression[3222∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3219 --> PgClassExpression3222 + PgClassExpression3223{{"PgClassExpression[3223∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3219 --> PgClassExpression3223 + PgClassExpression3224{{"PgClassExpression[3224∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3219 --> PgClassExpression3224 + PgClassExpression3225{{"PgClassExpression[3225∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3219 --> PgClassExpression3225 + PgClassExpression3226{{"PgClassExpression[3226∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3219 --> PgClassExpression3226 + PgClassExpression3227{{"PgClassExpression[3227∈0] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle3212 --> PgClassExpression3227 + PgClassExpression3227 --> PgFromExpression3230 + First3231{{"First[3231∈0] ➊"}}:::plan + PgSelectRows3232[["PgSelectRows[3232∈0] ➊"]]:::plan + PgSelectRows3232 --> First3231 + PgSelect3228 --> PgSelectRows3232 + PgSelectSingle3233{{"PgSelectSingle[3233∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3231 --> PgSelectSingle3233 + PgClassExpression3234{{"PgClassExpression[3234∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3233 --> PgClassExpression3234 + PgClassExpression3235{{"PgClassExpression[3235∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3233 --> PgClassExpression3235 + PgClassExpression3236{{"PgClassExpression[3236∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3233 --> PgClassExpression3236 + PgClassExpression3237{{"PgClassExpression[3237∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3233 --> PgClassExpression3237 + PgClassExpression3238{{"PgClassExpression[3238∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3233 --> PgClassExpression3238 + PgClassExpression3239{{"PgClassExpression[3239∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3233 --> PgClassExpression3239 + PgClassExpression3240{{"PgClassExpression[3240∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3233 --> PgClassExpression3240 + PgClassExpression3241{{"PgClassExpression[3241∈0] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle3212 --> PgClassExpression3241 + PgClassExpression3242{{"PgClassExpression[3242∈0] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3242 + PgClassExpression3242 --> PgFromExpression3245 + First3246{{"First[3246∈0] ➊"}}:::plan + PgSelectRows3247[["PgSelectRows[3247∈0] ➊"]]:::plan + PgSelectRows3247 --> First3246 + PgSelect3243 --> PgSelectRows3247 + PgSelectSingle3248{{"PgSelectSingle[3248∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3246 --> PgSelectSingle3248 + PgClassExpression3249{{"PgClassExpression[3249∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3248 --> PgClassExpression3249 + PgClassExpression3250{{"PgClassExpression[3250∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3248 --> PgClassExpression3250 + PgClassExpression3251{{"PgClassExpression[3251∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3248 --> PgClassExpression3251 + PgClassExpression3252{{"PgClassExpression[3252∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3248 --> PgClassExpression3252 + PgClassExpression3253{{"PgClassExpression[3253∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3248 --> PgClassExpression3253 + PgClassExpression3254{{"PgClassExpression[3254∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3248 --> PgClassExpression3254 + PgClassExpression3255{{"PgClassExpression[3255∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3248 --> PgClassExpression3255 + PgClassExpression3256{{"PgClassExpression[3256∈0] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3256 + PgClassExpression3256 --> PgFromExpression3259 + First3260{{"First[3260∈0] ➊"}}:::plan + PgSelectRows3261[["PgSelectRows[3261∈0] ➊"]]:::plan + PgSelectRows3261 --> First3260 + PgSelect3257 --> PgSelectRows3261 + PgSelectSingle3262{{"PgSelectSingle[3262∈0] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First3260 --> PgSelectSingle3262 + PgClassExpression3263{{"PgClassExpression[3263∈0] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle3262 --> PgClassExpression3263 + PgClassExpression3263 --> PgFromExpression3266 + First3267{{"First[3267∈0] ➊"}}:::plan + PgSelectRows3268[["PgSelectRows[3268∈0] ➊"]]:::plan + PgSelectRows3268 --> First3267 + PgSelect3264 --> PgSelectRows3268 + PgSelectSingle3269{{"PgSelectSingle[3269∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3267 --> PgSelectSingle3269 + PgClassExpression3270{{"PgClassExpression[3270∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3269 --> PgClassExpression3270 + PgClassExpression3271{{"PgClassExpression[3271∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3269 --> PgClassExpression3271 + PgClassExpression3272{{"PgClassExpression[3272∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3269 --> PgClassExpression3272 + PgClassExpression3273{{"PgClassExpression[3273∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3269 --> PgClassExpression3273 + PgClassExpression3274{{"PgClassExpression[3274∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3269 --> PgClassExpression3274 + PgClassExpression3275{{"PgClassExpression[3275∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3269 --> PgClassExpression3275 + PgClassExpression3276{{"PgClassExpression[3276∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3269 --> PgClassExpression3276 + PgClassExpression3277{{"PgClassExpression[3277∈0] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle3262 --> PgClassExpression3277 + PgClassExpression3277 --> PgFromExpression3280 + First3281{{"First[3281∈0] ➊"}}:::plan + PgSelectRows3282[["PgSelectRows[3282∈0] ➊"]]:::plan + PgSelectRows3282 --> First3281 + PgSelect3278 --> PgSelectRows3282 + PgSelectSingle3283{{"PgSelectSingle[3283∈0] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3281 --> PgSelectSingle3283 + PgClassExpression3284{{"PgClassExpression[3284∈0] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3283 --> PgClassExpression3284 + PgClassExpression3285{{"PgClassExpression[3285∈0] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3283 --> PgClassExpression3285 + PgClassExpression3286{{"PgClassExpression[3286∈0] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3283 --> PgClassExpression3286 + PgClassExpression3287{{"PgClassExpression[3287∈0] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3283 --> PgClassExpression3287 + PgClassExpression3288{{"PgClassExpression[3288∈0] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3283 --> PgClassExpression3288 + PgClassExpression3289{{"PgClassExpression[3289∈0] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3283 --> PgClassExpression3289 + PgClassExpression3290{{"PgClassExpression[3290∈0] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3283 --> PgClassExpression3290 + PgClassExpression3291{{"PgClassExpression[3291∈0] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle3262 --> PgClassExpression3291 + PgClassExpression3292{{"PgClassExpression[3292∈0] ➊
ᐸ__types__.”point”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3292 + PgClassExpression3295{{"PgClassExpression[3295∈0] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3295 + PgClassExpression3298{{"PgClassExpression[3298∈0] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3298 + PgClassExpression3299{{"PgClassExpression[3299∈0] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3299 + PgClassExpression3300{{"PgClassExpression[3300∈0] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3300 + PgClassExpression3301{{"PgClassExpression[3301∈0] ➊
ᐸ__types__.”regproc”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3301 + PgClassExpression3302{{"PgClassExpression[3302∈0] ➊
ᐸ__types__....procedure”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3302 + PgClassExpression3303{{"PgClassExpression[3303∈0] ➊
ᐸ__types__.”regoper”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3303 + PgClassExpression3304{{"PgClassExpression[3304∈0] ➊
ᐸ__types__.”regoperator”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3304 + PgClassExpression3305{{"PgClassExpression[3305∈0] ➊
ᐸ__types__.”regclass”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3305 + PgClassExpression3306{{"PgClassExpression[3306∈0] ➊
ᐸ__types__.”regtype”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3306 + PgClassExpression3307{{"PgClassExpression[3307∈0] ➊
ᐸ__types__.”regconfig”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3307 + PgClassExpression3308{{"PgClassExpression[3308∈0] ➊
ᐸ__types__....ictionary”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3308 + PgClassExpression3309{{"PgClassExpression[3309∈0] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3309 + PgClassExpression3311{{"PgClassExpression[3311∈0] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3311 + PgClassExpression3313{{"PgClassExpression[3313∈0] ➊
ᐸ__types__.”bytea”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3313 + PgClassExpression3314{{"PgClassExpression[3314∈0] ➊
ᐸ__types__.”bytea_array”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3314 + First3318{{"First[3318∈0] ➊"}}:::plan + PgSelectRows3319[["PgSelectRows[3319∈0] ➊"]]:::plan + PgSelectRows3319 --> First3318 + PgSelect3316 --> PgSelectRows3319 + PgSelectSingle3320{{"PgSelectSingle[3320∈0] ➊
ᐸpostᐳ"}}:::plan + First3318 --> PgSelectSingle3320 + PgClassExpression3321{{"PgClassExpression[3321∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle3320 --> PgClassExpression3321 + PgClassExpression3322{{"PgClassExpression[3322∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle3320 --> PgClassExpression3322 + First3325{{"First[3325∈0] ➊"}}:::plan + PgSelectRows3326[["PgSelectRows[3326∈0] ➊"]]:::plan + PgSelectRows3326 --> First3325 + PgSelect3323 --> PgSelectRows3326 + PgSelectSingle3327{{"PgSelectSingle[3327∈0] ➊
ᐸpostᐳ"}}:::plan + First3325 --> PgSelectSingle3327 + PgClassExpression3328{{"PgClassExpression[3328∈0] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle3327 --> PgClassExpression3328 + PgClassExpression3329{{"PgClassExpression[3329∈0] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle3327 --> PgClassExpression3329 + PgClassExpression3330{{"PgClassExpression[3330∈0] ➊
ᐸ__types__.”ltree”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3330 + PgClassExpression3331{{"PgClassExpression[3331∈0] ➊
ᐸ__types__.”ltree_array”ᐳ"}}:::plan + PgSelectSingle3126 --> PgClassExpression3331 + PgSelectRows3339[["PgSelectRows[3339∈0] ➊"]]:::plan + PgSelect3338 --> PgSelectRows3339 + First3659{{"First[3659∈0] ➊"}}:::plan + PgSelectRows3660[["PgSelectRows[3660∈0] ➊"]]:::plan + PgSelectRows3660 --> First3659 + PgSelect3658 --> PgSelectRows3660 + PgSelectSingle3661{{"PgSelectSingle[3661∈0] ➊
ᐸtypesᐳ"}}:::plan + First3659 --> PgSelectSingle3661 + PgClassExpression3662{{"PgClassExpression[3662∈0] ➊
ᐸcount(*)ᐳ"}}:::plan + PgSelectSingle3661 --> PgClassExpression3662 + PgPageInfo3664{{"PgPageInfo[3664∈0] ➊"}}:::plan + Connection3336 --> PgPageInfo3664 + PgSelect3338 --> Access3666 + Lambda3668{{"Lambda[3668∈0] ➊
ᐸhasNextPageCbᐳ"}}:::plan + Object3667 --> Lambda3668 + Lambda3672{{"Lambda[3672∈0] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan + Object3671 --> Lambda3672 + First3674{{"First[3674∈0] ➊"}}:::plan + PgSelectRows3339 --> First3674 + First3674 --> PgSelectSingle3676 + PgSelect3338 --> Access3677 + Last3680{{"Last[3680∈0] ➊"}}:::plan + PgSelectRows3339 --> Last3680 + Last3680 --> PgSelectSingle3682 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgFromExpression88{{"PgFromExpression[88∈0] ➊"}}:::plan + PgFromExpression102{{"PgFromExpression[102∈0] ➊"}}:::plan + PgFromExpression109{{"PgFromExpression[109∈0] ➊"}}:::plan + PgFromExpression123{{"PgFromExpression[123∈0] ➊"}}:::plan + PgFromExpression138{{"PgFromExpression[138∈0] ➊"}}:::plan + PgFromExpression152{{"PgFromExpression[152∈0] ➊"}}:::plan + PgFromExpression159{{"PgFromExpression[159∈0] ➊"}}:::plan + PgFromExpression173{{"PgFromExpression[173∈0] ➊"}}:::plan + PgFromExpression230{{"PgFromExpression[230∈0] ➊"}}:::plan + PgFromExpression243{{"PgFromExpression[243∈0] ➊"}}:::plan + PgFromExpression250{{"PgFromExpression[250∈0] ➊"}}:::plan + PgFromExpression264{{"PgFromExpression[264∈0] ➊"}}:::plan + PgFromExpression278{{"PgFromExpression[278∈0] ➊"}}:::plan + PgFromExpression291{{"PgFromExpression[291∈0] ➊"}}:::plan + PgFromExpression298{{"PgFromExpression[298∈0] ➊"}}:::plan + PgFromExpression312{{"PgFromExpression[312∈0] ➊"}}:::plan + PgFromExpression436{{"PgFromExpression[436∈0] ➊"}}:::plan + PgFromExpression450{{"PgFromExpression[450∈0] ➊"}}:::plan + PgFromExpression457{{"PgFromExpression[457∈0] ➊"}}:::plan + PgFromExpression471{{"PgFromExpression[471∈0] ➊"}}:::plan + PgFromExpression486{{"PgFromExpression[486∈0] ➊"}}:::plan + PgFromExpression500{{"PgFromExpression[500∈0] ➊"}}:::plan + PgFromExpression507{{"PgFromExpression[507∈0] ➊"}}:::plan + PgFromExpression521{{"PgFromExpression[521∈0] ➊"}}:::plan + PgFromExpression1619{{"PgFromExpression[1619∈0] ➊"}}:::plan + PgFromExpression1633{{"PgFromExpression[1633∈0] ➊"}}:::plan + PgFromExpression1640{{"PgFromExpression[1640∈0] ➊"}}:::plan + PgFromExpression1654{{"PgFromExpression[1654∈0] ➊"}}:::plan + PgFromExpression1669{{"PgFromExpression[1669∈0] ➊"}}:::plan + PgFromExpression1683{{"PgFromExpression[1683∈0] ➊"}}:::plan + PgFromExpression1690{{"PgFromExpression[1690∈0] ➊"}}:::plan + PgFromExpression1704{{"PgFromExpression[1704∈0] ➊"}}:::plan + PgFromExpression1834{{"PgFromExpression[1834∈0] ➊"}}:::plan + PgFromExpression1848{{"PgFromExpression[1848∈0] ➊"}}:::plan + PgFromExpression1855{{"PgFromExpression[1855∈0] ➊"}}:::plan + PgFromExpression1869{{"PgFromExpression[1869∈0] ➊"}}:::plan + PgFromExpression1884{{"PgFromExpression[1884∈0] ➊"}}:::plan + PgFromExpression1898{{"PgFromExpression[1898∈0] ➊"}}:::plan + PgFromExpression1905{{"PgFromExpression[1905∈0] ➊"}}:::plan + PgFromExpression1919{{"PgFromExpression[1919∈0] ➊"}}:::plan + PgFromExpression2052{{"PgFromExpression[2052∈0] ➊"}}:::plan + PgFromExpression2066{{"PgFromExpression[2066∈0] ➊"}}:::plan + PgFromExpression2073{{"PgFromExpression[2073∈0] ➊"}}:::plan + PgFromExpression2087{{"PgFromExpression[2087∈0] ➊"}}:::plan + PgFromExpression2102{{"PgFromExpression[2102∈0] ➊"}}:::plan + PgFromExpression2116{{"PgFromExpression[2116∈0] ➊"}}:::plan + PgFromExpression2123{{"PgFromExpression[2123∈0] ➊"}}:::plan + PgFromExpression2137{{"PgFromExpression[2137∈0] ➊"}}:::plan + PgFromExpression2514{{"PgFromExpression[2514∈0] ➊"}}:::plan + PgFromExpression2528{{"PgFromExpression[2528∈0] ➊"}}:::plan + PgFromExpression2535{{"PgFromExpression[2535∈0] ➊"}}:::plan + PgFromExpression2549{{"PgFromExpression[2549∈0] ➊"}}:::plan + PgFromExpression2564{{"PgFromExpression[2564∈0] ➊"}}:::plan + PgFromExpression2578{{"PgFromExpression[2578∈0] ➊"}}:::plan + PgFromExpression2585{{"PgFromExpression[2585∈0] ➊"}}:::plan + PgFromExpression2599{{"PgFromExpression[2599∈0] ➊"}}:::plan + PgFromExpression2731{{"PgFromExpression[2731∈0] ➊"}}:::plan + PgFromExpression2745{{"PgFromExpression[2745∈0] ➊"}}:::plan + PgFromExpression2752{{"PgFromExpression[2752∈0] ➊"}}:::plan + PgFromExpression2766{{"PgFromExpression[2766∈0] ➊"}}:::plan + PgFromExpression2781{{"PgFromExpression[2781∈0] ➊"}}:::plan + PgFromExpression2795{{"PgFromExpression[2795∈0] ➊"}}:::plan + PgFromExpression2802{{"PgFromExpression[2802∈0] ➊"}}:::plan + PgFromExpression2816{{"PgFromExpression[2816∈0] ➊"}}:::plan + PgFromExpression2949{{"PgFromExpression[2949∈0] ➊"}}:::plan + PgFromExpression2963{{"PgFromExpression[2963∈0] ➊"}}:::plan + PgFromExpression2970{{"PgFromExpression[2970∈0] ➊"}}:::plan + PgFromExpression2984{{"PgFromExpression[2984∈0] ➊"}}:::plan + PgFromExpression2999{{"PgFromExpression[2999∈0] ➊"}}:::plan + PgFromExpression3013{{"PgFromExpression[3013∈0] ➊"}}:::plan + PgFromExpression3020{{"PgFromExpression[3020∈0] ➊"}}:::plan + PgFromExpression3034{{"PgFromExpression[3034∈0] ➊"}}:::plan + PgFromExpression3412{{"PgFromExpression[3412∈0] ➊"}}:::plan + PgFromExpression3426{{"PgFromExpression[3426∈0] ➊"}}:::plan + PgFromExpression3433{{"PgFromExpression[3433∈0] ➊"}}:::plan + PgFromExpression3447{{"PgFromExpression[3447∈0] ➊"}}:::plan + PgFromExpression3462{{"PgFromExpression[3462∈0] ➊"}}:::plan + PgFromExpression3476{{"PgFromExpression[3476∈0] ➊"}}:::plan + PgFromExpression3483{{"PgFromExpression[3483∈0] ➊"}}:::plan + PgFromExpression3497{{"PgFromExpression[3497∈0] ➊"}}:::plan + PgFromExpression3554{{"PgFromExpression[3554∈0] ➊"}}:::plan + PgFromExpression3567{{"PgFromExpression[3567∈0] ➊"}}:::plan + PgFromExpression3574{{"PgFromExpression[3574∈0] ➊"}}:::plan + PgFromExpression3588{{"PgFromExpression[3588∈0] ➊"}}:::plan + PgFromExpression3602{{"PgFromExpression[3602∈0] ➊"}}:::plan + PgFromExpression3615{{"PgFromExpression[3615∈0] ➊"}}:::plan + PgFromExpression3622{{"PgFromExpression[3622∈0] ➊"}}:::plan + PgFromExpression3636{{"PgFromExpression[3636∈0] ➊"}}:::plan + PgSelect84[["PgSelect[84∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression83{{"PgClassExpression[83∈1]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression83 & PgFromExpression88 --> PgSelect84 + PgSelect100[["PgSelect[100∈1]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression99{{"PgClassExpression[99∈1]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression99 & PgFromExpression102 --> PgSelect100 + PgSelect107[["PgSelect[107∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression106{{"PgClassExpression[106∈1]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression106 & PgFromExpression109 --> PgSelect107 + PgSelect121[["PgSelect[121∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression120{{"PgClassExpression[120∈1]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression120 & PgFromExpression123 --> PgSelect121 + PgSelect136[["PgSelect[136∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression135{{"PgClassExpression[135∈1]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression135 & PgFromExpression138 --> PgSelect136 + PgSelect150[["PgSelect[150∈1]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression149{{"PgClassExpression[149∈1]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression149 & PgFromExpression152 --> PgSelect150 + PgSelect157[["PgSelect[157∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression156{{"PgClassExpression[156∈1]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression156 & PgFromExpression159 --> PgSelect157 + PgSelect171[["PgSelect[171∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression170{{"PgClassExpression[170∈1]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression170 & PgFromExpression173 --> PgSelect171 + PgSelect228[["PgSelect[228∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + Object11 & PgClassExpression83 & PgFromExpression230 --> PgSelect228 + PgSelect241[["PgSelect[241∈1]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + Object11 & PgClassExpression99 & PgFromExpression243 --> PgSelect241 + PgSelect248[["PgSelect[248∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression247{{"PgClassExpression[247∈1]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression247 & PgFromExpression250 --> PgSelect248 + PgSelect262[["PgSelect[262∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression261{{"PgClassExpression[261∈1]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression261 & PgFromExpression264 --> PgSelect262 + PgSelect276[["PgSelect[276∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + Object11 & PgClassExpression135 & PgFromExpression278 --> PgSelect276 + PgSelect289[["PgSelect[289∈1]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + Object11 & PgClassExpression149 & PgFromExpression291 --> PgSelect289 + PgSelect296[["PgSelect[296∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression295{{"PgClassExpression[295∈1]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression295 & PgFromExpression298 --> PgSelect296 + PgSelect310[["PgSelect[310∈1]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression309{{"PgClassExpression[309∈1]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression309 & PgFromExpression312 --> PgSelect310 + PgSelect209[["PgSelect[209∈1]
ᐸpostᐳ"]]:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__types__.”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression19 --> PgSelect209 + PgSelect216[["PgSelect[216∈1]
ᐸpostᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__types__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression18 --> PgSelect216 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸtypesᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸtypesᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgSelect84[["PgSelect[84∈3]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression83{{"PgClassExpression[83∈3]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression83 --> PgSelect84 - PgSelect99[["PgSelect[99∈3]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression98{{"PgClassExpression[98∈3]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression98 --> PgSelect99 - PgSelect105[["PgSelect[105∈3]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression104{{"PgClassExpression[104∈3]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression104 --> PgSelect105 - PgSelect118[["PgSelect[118∈3]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression117{{"PgClassExpression[117∈3]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression117 --> PgSelect118 - PgSelect132[["PgSelect[132∈3]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression131{{"PgClassExpression[131∈3]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression131 --> PgSelect132 - PgSelect145[["PgSelect[145∈3]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression144{{"PgClassExpression[144∈3]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression144 --> PgSelect145 - PgSelect203[["PgSelect[203∈3]
ᐸpostᐳ"]]:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__types__.”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression19 --> PgSelect203 - PgSelect210[["PgSelect[210∈3]
ᐸpostᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__types__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression18 --> PgSelect210 PgSelectSingle17 --> PgClassExpression18 PgSelectSingle17 --> PgClassExpression19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__types__.”bigint”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__types__.”bigint”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__types__.”numeric”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__types__.”numeric”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__types__.”decimal”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__types__.”decimal”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈3]
ᐸ__types__.”boolean”ᐳ"}}:::plan + PgClassExpression23{{"PgClassExpression[23∈1]
ᐸ__types__.”boolean”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression23 - PgClassExpression24{{"PgClassExpression[24∈3]
ᐸ__types__.”varchar”ᐳ"}}:::plan + PgClassExpression24{{"PgClassExpression[24∈1]
ᐸ__types__.”varchar”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression24 - PgClassExpression25{{"PgClassExpression[25∈3]
ᐸ__types__.”enum”ᐳ"}}:::plan + PgClassExpression25{{"PgClassExpression[25∈1]
ᐸ__types__.”enum”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression25 - PgClassExpression26{{"PgClassExpression[26∈3]
ᐸ__types__.”enum_array”ᐳ"}}:::plan + PgClassExpression26{{"PgClassExpression[26∈1]
ᐸ__types__.”enum_array”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression26 - PgClassExpression28{{"PgClassExpression[28∈3]
ᐸ__types__.”domain”ᐳ"}}:::plan + PgClassExpression28{{"PgClassExpression[28∈1]
ᐸ__types__.”domain”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression28 - PgClassExpression29{{"PgClassExpression[29∈3]
ᐸ__types__.”domain2”ᐳ"}}:::plan + PgClassExpression29{{"PgClassExpression[29∈1]
ᐸ__types__.”domain2”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression29 - PgClassExpression30{{"PgClassExpression[30∈3]
ᐸ__types__.”text_array”ᐳ"}}:::plan + PgClassExpression30{{"PgClassExpression[30∈1]
ᐸ__types__.”text_array”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression30 - PgClassExpression32{{"PgClassExpression[32∈3]
ᐸ__types__.”json”ᐳ"}}:::plan + PgClassExpression32{{"PgClassExpression[32∈1]
ᐸ__types__.”json”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression32 - PgClassExpression33{{"PgClassExpression[33∈3]
ᐸ__types__.”jsonb”ᐳ"}}:::plan + PgClassExpression33{{"PgClassExpression[33∈1]
ᐸ__types__.”jsonb”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression33 - PgClassExpression34{{"PgClassExpression[34∈3]
ᐸ__types__....ble_range”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__types__....ble_range”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression34 - PgClassExpression41{{"PgClassExpression[41∈3]
ᐸ__types__.”numrange”ᐳ"}}:::plan + PgClassExpression41{{"PgClassExpression[41∈1]
ᐸ__types__.”numrange”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression41 - Access42{{"Access[42∈3]
ᐸ41.startᐳ"}}:::plan - PgClassExpression41 --> Access42 - Access45{{"Access[45∈3]
ᐸ41.endᐳ"}}:::plan - PgClassExpression41 --> Access45 - PgClassExpression48{{"PgClassExpression[48∈3]
ᐸ__types__.”daterange”ᐳ"}}:::plan + PgClassExpression48{{"PgClassExpression[48∈1]
ᐸ__types__.”daterange”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression48 - Access49{{"Access[49∈3]
ᐸ48.startᐳ"}}:::plan - PgClassExpression48 --> Access49 - Access52{{"Access[52∈3]
ᐸ48.endᐳ"}}:::plan - PgClassExpression48 --> Access52 - PgClassExpression55{{"PgClassExpression[55∈3]
ᐸ__types__....int_range”ᐳ"}}:::plan + PgClassExpression55{{"PgClassExpression[55∈1]
ᐸ__types__....int_range”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression55 - Access56{{"Access[56∈3]
ᐸ55.startᐳ"}}:::plan - PgClassExpression55 --> Access56 - Access59{{"Access[59∈3]
ᐸ55.endᐳ"}}:::plan - PgClassExpression55 --> Access59 - PgClassExpression62{{"PgClassExpression[62∈3]
ᐸ__types__.”timestamp”ᐳ"}}:::plan + PgClassExpression62{{"PgClassExpression[62∈1]
ᐸ__types__.”timestamp”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression62 - PgClassExpression63{{"PgClassExpression[63∈3]
ᐸ__types__.”timestamptz”ᐳ"}}:::plan + PgClassExpression63{{"PgClassExpression[63∈1]
ᐸ__types__.”timestamptz”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression63 - PgClassExpression64{{"PgClassExpression[64∈3]
ᐸ__types__.”date”ᐳ"}}:::plan + PgClassExpression64{{"PgClassExpression[64∈1]
ᐸ__types__.”date”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression64 - PgClassExpression65{{"PgClassExpression[65∈3]
ᐸ__types__.”time”ᐳ"}}:::plan + PgClassExpression65{{"PgClassExpression[65∈1]
ᐸ__types__.”time”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression65 - PgClassExpression66{{"PgClassExpression[66∈3]
ᐸ__types__.”timetz”ᐳ"}}:::plan + PgClassExpression66{{"PgClassExpression[66∈1]
ᐸ__types__.”timetz”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression66 - PgClassExpression67{{"PgClassExpression[67∈3]
ᐸ__types__.”interval”ᐳ"}}:::plan + PgClassExpression67{{"PgClassExpression[67∈1]
ᐸ__types__.”interval”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression67 - PgClassExpression74{{"PgClassExpression[74∈3]
ᐸ__types__....val_array”ᐳ"}}:::plan + PgClassExpression74{{"PgClassExpression[74∈1]
ᐸ__types__....val_array”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression74 - PgClassExpression82{{"PgClassExpression[82∈3]
ᐸ__types__.”money”ᐳ"}}:::plan + PgClassExpression82{{"PgClassExpression[82∈1]
ᐸ__types__.”money”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression82 PgSelectSingle17 --> PgClassExpression83 - First88{{"First[88∈3]"}}:::plan - PgSelectRows89[["PgSelectRows[89∈3]"]]:::plan - PgSelectRows89 --> First88 - PgSelect84 --> PgSelectRows89 - PgSelectSingle90{{"PgSelectSingle[90∈3]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First88 --> PgSelectSingle90 - PgClassExpression91{{"PgClassExpression[91∈3]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression91 - PgClassExpression92{{"PgClassExpression[92∈3]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression92 - PgClassExpression93{{"PgClassExpression[93∈3]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression93 - PgClassExpression94{{"PgClassExpression[94∈3]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression94 - PgClassExpression95{{"PgClassExpression[95∈3]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression95 - PgClassExpression96{{"PgClassExpression[96∈3]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression96 - PgClassExpression97{{"PgClassExpression[97∈3]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle90 --> PgClassExpression97 - PgSelectSingle17 --> PgClassExpression98 - First101{{"First[101∈3]"}}:::plan - PgSelectRows102[["PgSelectRows[102∈3]"]]:::plan - PgSelectRows102 --> First101 - PgSelect99 --> PgSelectRows102 - PgSelectSingle103{{"PgSelectSingle[103∈3]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First101 --> PgSelectSingle103 - PgSelectSingle103 --> PgClassExpression104 - First107{{"First[107∈3]"}}:::plan - PgSelectRows108[["PgSelectRows[108∈3]"]]:::plan - PgSelectRows108 --> First107 - PgSelect105 --> PgSelectRows108 - PgSelectSingle109{{"PgSelectSingle[109∈3]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First107 --> PgSelectSingle109 - PgSelectSingle103 --> PgClassExpression117 - First120{{"First[120∈3]"}}:::plan - PgSelectRows121[["PgSelectRows[121∈3]"]]:::plan - PgSelectRows121 --> First120 - PgSelect118 --> PgSelectRows121 - PgSelectSingle122{{"PgSelectSingle[122∈3]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First120 --> PgSelectSingle122 - PgClassExpression130{{"PgClassExpression[130∈3]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle103 --> PgClassExpression130 - PgSelectSingle17 --> PgClassExpression131 - First134{{"First[134∈3]"}}:::plan - PgSelectRows135[["PgSelectRows[135∈3]"]]:::plan - PgSelectRows135 --> First134 - PgSelect132 --> PgSelectRows135 - PgSelectSingle136{{"PgSelectSingle[136∈3]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First134 --> PgSelectSingle136 - PgSelectSingle17 --> PgClassExpression144 - First147{{"First[147∈3]"}}:::plan - PgSelectRows148[["PgSelectRows[148∈3]"]]:::plan - PgSelectRows148 --> First147 - PgSelect145 --> PgSelectRows148 - PgSelectSingle149{{"PgSelectSingle[149∈3]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First147 --> PgSelectSingle149 - PgClassExpression179{{"PgClassExpression[179∈3]
ᐸ__types__.”point”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression179 - PgClassExpression182{{"PgClassExpression[182∈3]
ᐸ__types__....ablePoint”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression182 - PgClassExpression185{{"PgClassExpression[185∈3]
ᐸ__types__.”inet”ᐳ"}}:::plan + First89{{"First[89∈1]"}}:::plan + PgSelectRows90[["PgSelectRows[90∈1]"]]:::plan + PgSelectRows90 --> First89 + PgSelect84 --> PgSelectRows90 + PgSelectSingle91{{"PgSelectSingle[91∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First89 --> PgSelectSingle91 + PgClassExpression92{{"PgClassExpression[92∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression92 + PgClassExpression93{{"PgClassExpression[93∈1]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression93 + PgClassExpression94{{"PgClassExpression[94∈1]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression94 + PgClassExpression95{{"PgClassExpression[95∈1]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression95 + PgClassExpression96{{"PgClassExpression[96∈1]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression96 + PgClassExpression97{{"PgClassExpression[97∈1]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression97 + PgClassExpression98{{"PgClassExpression[98∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle91 --> PgClassExpression98 + PgSelectSingle17 --> PgClassExpression99 + First103{{"First[103∈1]"}}:::plan + PgSelectRows104[["PgSelectRows[104∈1]"]]:::plan + PgSelectRows104 --> First103 + PgSelect100 --> PgSelectRows104 + PgSelectSingle105{{"PgSelectSingle[105∈1]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First103 --> PgSelectSingle105 + PgSelectSingle105 --> PgClassExpression106 + First110{{"First[110∈1]"}}:::plan + PgSelectRows111[["PgSelectRows[111∈1]"]]:::plan + PgSelectRows111 --> First110 + PgSelect107 --> PgSelectRows111 + PgSelectSingle112{{"PgSelectSingle[112∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First110 --> PgSelectSingle112 + PgClassExpression113{{"PgClassExpression[113∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression113 + PgClassExpression114{{"PgClassExpression[114∈1]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression114 + PgClassExpression115{{"PgClassExpression[115∈1]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression115 + PgClassExpression116{{"PgClassExpression[116∈1]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression116 + PgClassExpression117{{"PgClassExpression[117∈1]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression117 + PgClassExpression118{{"PgClassExpression[118∈1]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression118 + PgClassExpression119{{"PgClassExpression[119∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle112 --> PgClassExpression119 + PgSelectSingle105 --> PgClassExpression120 + First124{{"First[124∈1]"}}:::plan + PgSelectRows125[["PgSelectRows[125∈1]"]]:::plan + PgSelectRows125 --> First124 + PgSelect121 --> PgSelectRows125 + PgSelectSingle126{{"PgSelectSingle[126∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First124 --> PgSelectSingle126 + PgClassExpression127{{"PgClassExpression[127∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle126 --> PgClassExpression127 + PgClassExpression128{{"PgClassExpression[128∈1]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle126 --> PgClassExpression128 + PgClassExpression129{{"PgClassExpression[129∈1]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle126 --> PgClassExpression129 + PgClassExpression130{{"PgClassExpression[130∈1]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle126 --> PgClassExpression130 + PgClassExpression131{{"PgClassExpression[131∈1]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle126 --> PgClassExpression131 + PgClassExpression132{{"PgClassExpression[132∈1]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle126 --> PgClassExpression132 + PgClassExpression133{{"PgClassExpression[133∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle126 --> PgClassExpression133 + PgClassExpression134{{"PgClassExpression[134∈1]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle105 --> PgClassExpression134 + PgSelectSingle17 --> PgClassExpression135 + First139{{"First[139∈1]"}}:::plan + PgSelectRows140[["PgSelectRows[140∈1]"]]:::plan + PgSelectRows140 --> First139 + PgSelect136 --> PgSelectRows140 + PgSelectSingle141{{"PgSelectSingle[141∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First139 --> PgSelectSingle141 + PgClassExpression142{{"PgClassExpression[142∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle141 --> PgClassExpression142 + PgClassExpression143{{"PgClassExpression[143∈1]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle141 --> PgClassExpression143 + PgClassExpression144{{"PgClassExpression[144∈1]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle141 --> PgClassExpression144 + PgClassExpression145{{"PgClassExpression[145∈1]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle141 --> PgClassExpression145 + PgClassExpression146{{"PgClassExpression[146∈1]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle141 --> PgClassExpression146 + PgClassExpression147{{"PgClassExpression[147∈1]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle141 --> PgClassExpression147 + PgClassExpression148{{"PgClassExpression[148∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle141 --> PgClassExpression148 + PgSelectSingle17 --> PgClassExpression149 + First153{{"First[153∈1]"}}:::plan + PgSelectRows154[["PgSelectRows[154∈1]"]]:::plan + PgSelectRows154 --> First153 + PgSelect150 --> PgSelectRows154 + PgSelectSingle155{{"PgSelectSingle[155∈1]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First153 --> PgSelectSingle155 + PgSelectSingle155 --> PgClassExpression156 + First160{{"First[160∈1]"}}:::plan + PgSelectRows161[["PgSelectRows[161∈1]"]]:::plan + PgSelectRows161 --> First160 + PgSelect157 --> PgSelectRows161 + PgSelectSingle162{{"PgSelectSingle[162∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First160 --> PgSelectSingle162 + PgClassExpression163{{"PgClassExpression[163∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle162 --> PgClassExpression163 + PgClassExpression164{{"PgClassExpression[164∈1]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle162 --> PgClassExpression164 + PgClassExpression165{{"PgClassExpression[165∈1]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle162 --> PgClassExpression165 + PgClassExpression166{{"PgClassExpression[166∈1]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle162 --> PgClassExpression166 + PgClassExpression167{{"PgClassExpression[167∈1]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle162 --> PgClassExpression167 + PgClassExpression168{{"PgClassExpression[168∈1]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle162 --> PgClassExpression168 + PgClassExpression169{{"PgClassExpression[169∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle162 --> PgClassExpression169 + PgSelectSingle155 --> PgClassExpression170 + First174{{"First[174∈1]"}}:::plan + PgSelectRows175[["PgSelectRows[175∈1]"]]:::plan + PgSelectRows175 --> First174 + PgSelect171 --> PgSelectRows175 + PgSelectSingle176{{"PgSelectSingle[176∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First174 --> PgSelectSingle176 + PgClassExpression177{{"PgClassExpression[177∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle176 --> PgClassExpression177 + PgClassExpression178{{"PgClassExpression[178∈1]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle176 --> PgClassExpression178 + PgClassExpression179{{"PgClassExpression[179∈1]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle176 --> PgClassExpression179 + PgClassExpression180{{"PgClassExpression[180∈1]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle176 --> PgClassExpression180 + PgClassExpression181{{"PgClassExpression[181∈1]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle176 --> PgClassExpression181 + PgClassExpression182{{"PgClassExpression[182∈1]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle176 --> PgClassExpression182 + PgClassExpression183{{"PgClassExpression[183∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle176 --> PgClassExpression183 + PgClassExpression184{{"PgClassExpression[184∈1]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle155 --> PgClassExpression184 + PgClassExpression185{{"PgClassExpression[185∈1]
ᐸ__types__.”point”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression185 - PgClassExpression186{{"PgClassExpression[186∈3]
ᐸ__types__.”cidr”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression186 - PgClassExpression187{{"PgClassExpression[187∈3]
ᐸ__types__.”macaddr”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression187 - PgClassExpression188{{"PgClassExpression[188∈3]
ᐸ__types__.”regproc”ᐳ"}}:::plan + PgClassExpression188{{"PgClassExpression[188∈1]
ᐸ__types__....ablePoint”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression188 - PgClassExpression189{{"PgClassExpression[189∈3]
ᐸ__types__....procedure”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression189 - PgClassExpression190{{"PgClassExpression[190∈3]
ᐸ__types__.”regoper”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression190 - PgClassExpression191{{"PgClassExpression[191∈3]
ᐸ__types__.”regoperator”ᐳ"}}:::plan + PgClassExpression191{{"PgClassExpression[191∈1]
ᐸ__types__.”inet”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression191 - PgClassExpression192{{"PgClassExpression[192∈3]
ᐸ__types__.”regclass”ᐳ"}}:::plan + PgClassExpression192{{"PgClassExpression[192∈1]
ᐸ__types__.”cidr”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression192 - PgClassExpression193{{"PgClassExpression[193∈3]
ᐸ__types__.”regtype”ᐳ"}}:::plan + PgClassExpression193{{"PgClassExpression[193∈1]
ᐸ__types__.”macaddr”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression193 - PgClassExpression194{{"PgClassExpression[194∈3]
ᐸ__types__.”regconfig”ᐳ"}}:::plan + PgClassExpression194{{"PgClassExpression[194∈1]
ᐸ__types__.”regproc”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression194 - PgClassExpression195{{"PgClassExpression[195∈3]
ᐸ__types__....ictionary”ᐳ"}}:::plan + PgClassExpression195{{"PgClassExpression[195∈1]
ᐸ__types__....procedure”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression195 - PgClassExpression196{{"PgClassExpression[196∈3]
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgClassExpression196{{"PgClassExpression[196∈1]
ᐸ__types__.”regoper”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression196 - PgClassExpression198{{"PgClassExpression[198∈3]
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgClassExpression197{{"PgClassExpression[197∈1]
ᐸ__types__.”regoperator”ᐳ"}}:::plan + PgSelectSingle17 --> PgClassExpression197 + PgClassExpression198{{"PgClassExpression[198∈1]
ᐸ__types__.”regclass”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression198 - PgClassExpression200{{"PgClassExpression[200∈3]
ᐸ__types__.”bytea”ᐳ"}}:::plan + PgClassExpression199{{"PgClassExpression[199∈1]
ᐸ__types__.”regtype”ᐳ"}}:::plan + PgSelectSingle17 --> PgClassExpression199 + PgClassExpression200{{"PgClassExpression[200∈1]
ᐸ__types__.”regconfig”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression200 - PgClassExpression201{{"PgClassExpression[201∈3]
ᐸ__types__.”bytea_array”ᐳ"}}:::plan + PgClassExpression201{{"PgClassExpression[201∈1]
ᐸ__types__....ictionary”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression201 - First205{{"First[205∈3]"}}:::plan - PgSelectRows206[["PgSelectRows[206∈3]"]]:::plan - PgSelectRows206 --> First205 - PgSelect203 --> PgSelectRows206 - PgSelectSingle207{{"PgSelectSingle[207∈3]
ᐸpostᐳ"}}:::plan - First205 --> PgSelectSingle207 - First212{{"First[212∈3]"}}:::plan - PgSelectRows213[["PgSelectRows[213∈3]"]]:::plan - PgSelectRows213 --> First212 - PgSelect210 --> PgSelectRows213 - PgSelectSingle214{{"PgSelectSingle[214∈3]
ᐸpostᐳ"}}:::plan - First212 --> PgSelectSingle214 - PgClassExpression217{{"PgClassExpression[217∈3]
ᐸ__types__.”ltree”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression217 - PgClassExpression218{{"PgClassExpression[218∈3]
ᐸ__types__.”ltree_array”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression218 - __Item27[/"__Item[27∈4]
ᐸ26ᐳ"\]:::itemplan - PgClassExpression26 ==> __Item27 - __Item31[/"__Item[31∈5]
ᐸ30ᐳ"\]:::itemplan - PgClassExpression30 ==> __Item31 - Access35{{"Access[35∈6]
ᐸ34.startᐳ"}}:::plan - PgClassExpression34 --> Access35 - Access38{{"Access[38∈6]
ᐸ34.endᐳ"}}:::plan - PgClassExpression34 --> Access38 - __Item75[/"__Item[75∈15]
ᐸ74ᐳ"\]:::itemplan - PgClassExpression74 ==> __Item75 - PgClassExpression110{{"PgClassExpression[110∈17]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle109 --> PgClassExpression110 - PgClassExpression111{{"PgClassExpression[111∈17]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle109 --> PgClassExpression111 - PgClassExpression112{{"PgClassExpression[112∈17]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle109 --> PgClassExpression112 - PgClassExpression113{{"PgClassExpression[113∈17]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle109 --> PgClassExpression113 - PgClassExpression114{{"PgClassExpression[114∈17]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle109 --> PgClassExpression114 - PgClassExpression115{{"PgClassExpression[115∈17]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle109 --> PgClassExpression115 - PgClassExpression116{{"PgClassExpression[116∈17]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle109 --> PgClassExpression116 - PgClassExpression123{{"PgClassExpression[123∈18]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle122 --> PgClassExpression123 - PgClassExpression124{{"PgClassExpression[124∈18]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle122 --> PgClassExpression124 - PgClassExpression125{{"PgClassExpression[125∈18]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle122 --> PgClassExpression125 - PgClassExpression126{{"PgClassExpression[126∈18]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle122 --> PgClassExpression126 - PgClassExpression127{{"PgClassExpression[127∈18]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle122 --> PgClassExpression127 - PgClassExpression128{{"PgClassExpression[128∈18]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle122 --> PgClassExpression128 - PgClassExpression129{{"PgClassExpression[129∈18]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle122 --> PgClassExpression129 - PgClassExpression137{{"PgClassExpression[137∈19]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle136 --> PgClassExpression137 - PgClassExpression138{{"PgClassExpression[138∈19]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle136 --> PgClassExpression138 - PgClassExpression139{{"PgClassExpression[139∈19]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle136 --> PgClassExpression139 - PgClassExpression140{{"PgClassExpression[140∈19]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle136 --> PgClassExpression140 - PgClassExpression141{{"PgClassExpression[141∈19]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle136 --> PgClassExpression141 - PgClassExpression142{{"PgClassExpression[142∈19]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle136 --> PgClassExpression142 - PgClassExpression143{{"PgClassExpression[143∈19]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle136 --> PgClassExpression143 - PgSelect151[["PgSelect[151∈20]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression150{{"PgClassExpression[150∈20]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression150 --> PgSelect151 - PgSelect166[["PgSelect[166∈20]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression165{{"PgClassExpression[165∈20]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression165 --> PgSelect166 - PgSelectSingle149 --> PgClassExpression150 - First155{{"First[155∈20]"}}:::plan - PgSelectRows156[["PgSelectRows[156∈20]"]]:::plan - PgSelectRows156 --> First155 - PgSelect151 --> PgSelectRows156 - PgSelectSingle157{{"PgSelectSingle[157∈20]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First155 --> PgSelectSingle157 - PgSelectSingle149 --> PgClassExpression165 - First168{{"First[168∈20]"}}:::plan - PgSelectRows169[["PgSelectRows[169∈20]"]]:::plan - PgSelectRows169 --> First168 - PgSelect166 --> PgSelectRows169 - PgSelectSingle170{{"PgSelectSingle[170∈20]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First168 --> PgSelectSingle170 - PgClassExpression178{{"PgClassExpression[178∈20]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle149 --> PgClassExpression178 - PgClassExpression158{{"PgClassExpression[158∈21]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle157 --> PgClassExpression158 - PgClassExpression159{{"PgClassExpression[159∈21]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle157 --> PgClassExpression159 - PgClassExpression160{{"PgClassExpression[160∈21]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle157 --> PgClassExpression160 - PgClassExpression161{{"PgClassExpression[161∈21]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle157 --> PgClassExpression161 - PgClassExpression162{{"PgClassExpression[162∈21]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle157 --> PgClassExpression162 - PgClassExpression163{{"PgClassExpression[163∈21]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle157 --> PgClassExpression163 - PgClassExpression164{{"PgClassExpression[164∈21]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle157 --> PgClassExpression164 - PgClassExpression171{{"PgClassExpression[171∈22]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle170 --> PgClassExpression171 - PgClassExpression172{{"PgClassExpression[172∈22]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle170 --> PgClassExpression172 - PgClassExpression173{{"PgClassExpression[173∈22]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle170 --> PgClassExpression173 - PgClassExpression174{{"PgClassExpression[174∈22]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle170 --> PgClassExpression174 - PgClassExpression175{{"PgClassExpression[175∈22]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle170 --> PgClassExpression175 - PgClassExpression176{{"PgClassExpression[176∈22]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle170 --> PgClassExpression176 - PgClassExpression177{{"PgClassExpression[177∈22]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle170 --> PgClassExpression177 - __Item197[/"__Item[197∈24]
ᐸ196ᐳ"\]:::itemplan - PgClassExpression196 ==> __Item197 - __Item199[/"__Item[199∈25]
ᐸ198ᐳ"\]:::itemplan - PgClassExpression198 ==> __Item199 - __Item202[/"__Item[202∈26]
ᐸ201ᐳ"\]:::itemplan - PgClassExpression201 ==> __Item202 - PgClassExpression208{{"PgClassExpression[208∈27]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle207 --> PgClassExpression208 - PgClassExpression209{{"PgClassExpression[209∈27]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle207 --> PgClassExpression209 - PgClassExpression215{{"PgClassExpression[215∈28]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle214 --> PgClassExpression215 - PgClassExpression216{{"PgClassExpression[216∈28]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle214 --> PgClassExpression216 - __Item219[/"__Item[219∈29]
ᐸ218ᐳ"\]:::itemplan - PgClassExpression218 ==> __Item219 - PgSelect288[["PgSelect[288∈30]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression287{{"PgClassExpression[287∈30]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression287 --> PgSelect288 - PgSelect303[["PgSelect[303∈30]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression302{{"PgClassExpression[302∈30]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression302 --> PgSelect303 - PgSelect309[["PgSelect[309∈30]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression308{{"PgClassExpression[308∈30]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression308 --> PgSelect309 - PgSelect322[["PgSelect[322∈30]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression321{{"PgClassExpression[321∈30]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression321 --> PgSelect322 - PgSelect336[["PgSelect[336∈30]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression335{{"PgClassExpression[335∈30]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression335 --> PgSelect336 - PgSelect349[["PgSelect[349∈30]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression348{{"PgClassExpression[348∈30]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression348 --> PgSelect349 - PgSelect407[["PgSelect[407∈30]
ᐸpostᐳ"]]:::plan - PgClassExpression223{{"PgClassExpression[223∈30]
ᐸ__types__.”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression223 --> PgSelect407 - PgSelect414[["PgSelect[414∈30]
ᐸpostᐳ"]]:::plan - PgClassExpression222{{"PgClassExpression[222∈30]
ᐸ__types__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression222 --> PgSelect414 - PgSelectSingle17 --> PgClassExpression222 + PgClassExpression202{{"PgClassExpression[202∈1]
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle17 --> PgClassExpression202 + PgClassExpression204{{"PgClassExpression[204∈1]
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle17 --> PgClassExpression204 + PgClassExpression206{{"PgClassExpression[206∈1]
ᐸ__types__.”bytea”ᐳ"}}:::plan + PgSelectSingle17 --> PgClassExpression206 + PgClassExpression207{{"PgClassExpression[207∈1]
ᐸ__types__.”bytea_array”ᐳ"}}:::plan + PgSelectSingle17 --> PgClassExpression207 + First211{{"First[211∈1]"}}:::plan + PgSelectRows212[["PgSelectRows[212∈1]"]]:::plan + PgSelectRows212 --> First211 + PgSelect209 --> PgSelectRows212 + PgSelectSingle213{{"PgSelectSingle[213∈1]
ᐸpostᐳ"}}:::plan + First211 --> PgSelectSingle213 + PgClassExpression214{{"PgClassExpression[214∈1]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle213 --> PgClassExpression214 + PgClassExpression215{{"PgClassExpression[215∈1]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle213 --> PgClassExpression215 + First218{{"First[218∈1]"}}:::plan + PgSelectRows219[["PgSelectRows[219∈1]"]]:::plan + PgSelectRows219 --> First218 + PgSelect216 --> PgSelectRows219 + PgSelectSingle220{{"PgSelectSingle[220∈1]
ᐸpostᐳ"}}:::plan + First218 --> PgSelectSingle220 + PgClassExpression221{{"PgClassExpression[221∈1]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle220 --> PgClassExpression221 + PgClassExpression222{{"PgClassExpression[222∈1]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle220 --> PgClassExpression222 + PgClassExpression223{{"PgClassExpression[223∈1]
ᐸ__types__.”ltree”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression223 - PgClassExpression224{{"PgClassExpression[224∈30]
ᐸ__types__.”bigint”ᐳ"}}:::plan + PgClassExpression224{{"PgClassExpression[224∈1]
ᐸ__types__.”ltree_array”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression224 - PgClassExpression225{{"PgClassExpression[225∈30]
ᐸ__types__.”numeric”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression225 - PgClassExpression226{{"PgClassExpression[226∈30]
ᐸ__types__.”decimal”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression226 - PgClassExpression227{{"PgClassExpression[227∈30]
ᐸ__types__.”boolean”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression227 - PgClassExpression228{{"PgClassExpression[228∈30]
ᐸ__types__.”varchar”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression228 - PgClassExpression229{{"PgClassExpression[229∈30]
ᐸ__types__.”enum”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression229 - PgClassExpression230{{"PgClassExpression[230∈30]
ᐸ__types__.”enum_array”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression230 - PgClassExpression232{{"PgClassExpression[232∈30]
ᐸ__types__.”domain”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression232 - PgClassExpression233{{"PgClassExpression[233∈30]
ᐸ__types__.”domain2”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression233 - PgClassExpression234{{"PgClassExpression[234∈30]
ᐸ__types__.”text_array”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression234 - PgClassExpression236{{"PgClassExpression[236∈30]
ᐸ__types__.”json”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression236 - PgClassExpression237{{"PgClassExpression[237∈30]
ᐸ__types__.”jsonb”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression237 - PgClassExpression238{{"PgClassExpression[238∈30]
ᐸ__types__....ble_range”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression238 - PgClassExpression245{{"PgClassExpression[245∈30]
ᐸ__types__.”numrange”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression245 - Access246{{"Access[246∈30]
ᐸ245.startᐳ"}}:::plan - PgClassExpression245 --> Access246 - Access249{{"Access[249∈30]
ᐸ245.endᐳ"}}:::plan - PgClassExpression245 --> Access249 - PgClassExpression252{{"PgClassExpression[252∈30]
ᐸ__types__.”daterange”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression252 - Access253{{"Access[253∈30]
ᐸ252.startᐳ"}}:::plan - PgClassExpression252 --> Access253 - Access256{{"Access[256∈30]
ᐸ252.endᐳ"}}:::plan - PgClassExpression252 --> Access256 - PgClassExpression259{{"PgClassExpression[259∈30]
ᐸ__types__....int_range”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression259 - Access260{{"Access[260∈30]
ᐸ259.startᐳ"}}:::plan - PgClassExpression259 --> Access260 - Access263{{"Access[263∈30]
ᐸ259.endᐳ"}}:::plan - PgClassExpression259 --> Access263 - PgClassExpression266{{"PgClassExpression[266∈30]
ᐸ__types__.”timestamp”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression266 - PgClassExpression267{{"PgClassExpression[267∈30]
ᐸ__types__.”timestamptz”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression267 - PgClassExpression268{{"PgClassExpression[268∈30]
ᐸ__types__.”date”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression268 - PgClassExpression269{{"PgClassExpression[269∈30]
ᐸ__types__.”time”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression269 - PgClassExpression270{{"PgClassExpression[270∈30]
ᐸ__types__.”timetz”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression270 - PgClassExpression271{{"PgClassExpression[271∈30]
ᐸ__types__.”interval”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression271 - PgClassExpression278{{"PgClassExpression[278∈30]
ᐸ__types__....val_array”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression278 - PgClassExpression286{{"PgClassExpression[286∈30]
ᐸ__types__.”money”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression286 - PgSelectSingle17 --> PgClassExpression287 - First292{{"First[292∈30]"}}:::plan - PgSelectRows293[["PgSelectRows[293∈30]"]]:::plan + First231{{"First[231∈1]"}}:::plan + PgSelectRows232[["PgSelectRows[232∈1]"]]:::plan + PgSelectRows232 --> First231 + PgSelect228 --> PgSelectRows232 + PgSelectSingle233{{"PgSelectSingle[233∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First231 --> PgSelectSingle233 + PgClassExpression234{{"PgClassExpression[234∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle233 --> PgClassExpression234 + PgClassExpression235{{"PgClassExpression[235∈1]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle233 --> PgClassExpression235 + PgClassExpression236{{"PgClassExpression[236∈1]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle233 --> PgClassExpression236 + PgClassExpression237{{"PgClassExpression[237∈1]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle233 --> PgClassExpression237 + PgClassExpression238{{"PgClassExpression[238∈1]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle233 --> PgClassExpression238 + PgClassExpression239{{"PgClassExpression[239∈1]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle233 --> PgClassExpression239 + PgClassExpression240{{"PgClassExpression[240∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle233 --> PgClassExpression240 + First244{{"First[244∈1]"}}:::plan + PgSelectRows245[["PgSelectRows[245∈1]"]]:::plan + PgSelectRows245 --> First244 + PgSelect241 --> PgSelectRows245 + PgSelectSingle246{{"PgSelectSingle[246∈1]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First244 --> PgSelectSingle246 + PgSelectSingle246 --> PgClassExpression247 + First251{{"First[251∈1]"}}:::plan + PgSelectRows252[["PgSelectRows[252∈1]"]]:::plan + PgSelectRows252 --> First251 + PgSelect248 --> PgSelectRows252 + PgSelectSingle253{{"PgSelectSingle[253∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First251 --> PgSelectSingle253 + PgClassExpression254{{"PgClassExpression[254∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle253 --> PgClassExpression254 + PgClassExpression255{{"PgClassExpression[255∈1]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle253 --> PgClassExpression255 + PgClassExpression256{{"PgClassExpression[256∈1]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle253 --> PgClassExpression256 + PgClassExpression257{{"PgClassExpression[257∈1]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle253 --> PgClassExpression257 + PgClassExpression258{{"PgClassExpression[258∈1]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle253 --> PgClassExpression258 + PgClassExpression259{{"PgClassExpression[259∈1]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle253 --> PgClassExpression259 + PgClassExpression260{{"PgClassExpression[260∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle253 --> PgClassExpression260 + PgSelectSingle246 --> PgClassExpression261 + First265{{"First[265∈1]"}}:::plan + PgSelectRows266[["PgSelectRows[266∈1]"]]:::plan + PgSelectRows266 --> First265 + PgSelect262 --> PgSelectRows266 + PgSelectSingle267{{"PgSelectSingle[267∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First265 --> PgSelectSingle267 + PgClassExpression268{{"PgClassExpression[268∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle267 --> PgClassExpression268 + PgClassExpression269{{"PgClassExpression[269∈1]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle267 --> PgClassExpression269 + PgClassExpression270{{"PgClassExpression[270∈1]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle267 --> PgClassExpression270 + PgClassExpression271{{"PgClassExpression[271∈1]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle267 --> PgClassExpression271 + PgClassExpression272{{"PgClassExpression[272∈1]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle267 --> PgClassExpression272 + PgClassExpression273{{"PgClassExpression[273∈1]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle267 --> PgClassExpression273 + PgClassExpression274{{"PgClassExpression[274∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle267 --> PgClassExpression274 + PgClassExpression275{{"PgClassExpression[275∈1]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle246 --> PgClassExpression275 + First279{{"First[279∈1]"}}:::plan + PgSelectRows280[["PgSelectRows[280∈1]"]]:::plan + PgSelectRows280 --> First279 + PgSelect276 --> PgSelectRows280 + PgSelectSingle281{{"PgSelectSingle[281∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First279 --> PgSelectSingle281 + PgClassExpression282{{"PgClassExpression[282∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle281 --> PgClassExpression282 + PgClassExpression283{{"PgClassExpression[283∈1]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle281 --> PgClassExpression283 + PgClassExpression284{{"PgClassExpression[284∈1]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle281 --> PgClassExpression284 + PgClassExpression285{{"PgClassExpression[285∈1]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle281 --> PgClassExpression285 + PgClassExpression286{{"PgClassExpression[286∈1]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle281 --> PgClassExpression286 + PgClassExpression287{{"PgClassExpression[287∈1]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle281 --> PgClassExpression287 + PgClassExpression288{{"PgClassExpression[288∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle281 --> PgClassExpression288 + First292{{"First[292∈1]"}}:::plan + PgSelectRows293[["PgSelectRows[293∈1]"]]:::plan PgSelectRows293 --> First292 - PgSelect288 --> PgSelectRows293 - PgSelectSingle294{{"PgSelectSingle[294∈30]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + PgSelect289 --> PgSelectRows293 + PgSelectSingle294{{"PgSelectSingle[294∈1]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan First292 --> PgSelectSingle294 - PgClassExpression295{{"PgClassExpression[295∈30]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan PgSelectSingle294 --> PgClassExpression295 - PgClassExpression296{{"PgClassExpression[296∈30]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle294 --> PgClassExpression296 - PgClassExpression297{{"PgClassExpression[297∈30]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle294 --> PgClassExpression297 - PgClassExpression298{{"PgClassExpression[298∈30]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle294 --> PgClassExpression298 - PgClassExpression299{{"PgClassExpression[299∈30]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle294 --> PgClassExpression299 - PgClassExpression300{{"PgClassExpression[300∈30]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle294 --> PgClassExpression300 - PgClassExpression301{{"PgClassExpression[301∈30]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle294 --> PgClassExpression301 - PgSelectSingle17 --> PgClassExpression302 - First305{{"First[305∈30]"}}:::plan - PgSelectRows306[["PgSelectRows[306∈30]"]]:::plan - PgSelectRows306 --> First305 - PgSelect303 --> PgSelectRows306 - PgSelectSingle307{{"PgSelectSingle[307∈30]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First305 --> PgSelectSingle307 - PgSelectSingle307 --> PgClassExpression308 - First311{{"First[311∈30]"}}:::plan - PgSelectRows312[["PgSelectRows[312∈30]"]]:::plan - PgSelectRows312 --> First311 - PgSelect309 --> PgSelectRows312 - PgSelectSingle313{{"PgSelectSingle[313∈30]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First311 --> PgSelectSingle313 - PgSelectSingle307 --> PgClassExpression321 - First324{{"First[324∈30]"}}:::plan - PgSelectRows325[["PgSelectRows[325∈30]"]]:::plan - PgSelectRows325 --> First324 - PgSelect322 --> PgSelectRows325 - PgSelectSingle326{{"PgSelectSingle[326∈30]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First324 --> PgSelectSingle326 - PgClassExpression334{{"PgClassExpression[334∈30]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle307 --> PgClassExpression334 - PgSelectSingle17 --> PgClassExpression335 - First338{{"First[338∈30]"}}:::plan - PgSelectRows339[["PgSelectRows[339∈30]"]]:::plan - PgSelectRows339 --> First338 - PgSelect336 --> PgSelectRows339 - PgSelectSingle340{{"PgSelectSingle[340∈30]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First338 --> PgSelectSingle340 - PgSelectSingle17 --> PgClassExpression348 - First351{{"First[351∈30]"}}:::plan - PgSelectRows352[["PgSelectRows[352∈30]"]]:::plan - PgSelectRows352 --> First351 - PgSelect349 --> PgSelectRows352 - PgSelectSingle353{{"PgSelectSingle[353∈30]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First351 --> PgSelectSingle353 - PgClassExpression383{{"PgClassExpression[383∈30]
ᐸ__types__.”point”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression383 - PgClassExpression386{{"PgClassExpression[386∈30]
ᐸ__types__....ablePoint”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression386 - PgClassExpression389{{"PgClassExpression[389∈30]
ᐸ__types__.”inet”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression389 - PgClassExpression390{{"PgClassExpression[390∈30]
ᐸ__types__.”cidr”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression390 - PgClassExpression391{{"PgClassExpression[391∈30]
ᐸ__types__.”macaddr”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression391 - PgClassExpression392{{"PgClassExpression[392∈30]
ᐸ__types__.”regproc”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression392 - PgClassExpression393{{"PgClassExpression[393∈30]
ᐸ__types__....procedure”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression393 - PgClassExpression394{{"PgClassExpression[394∈30]
ᐸ__types__.”regoper”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression394 - PgClassExpression395{{"PgClassExpression[395∈30]
ᐸ__types__.”regoperator”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression395 - PgClassExpression396{{"PgClassExpression[396∈30]
ᐸ__types__.”regclass”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression396 - PgClassExpression397{{"PgClassExpression[397∈30]
ᐸ__types__.”regtype”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression397 - PgClassExpression398{{"PgClassExpression[398∈30]
ᐸ__types__.”regconfig”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression398 - PgClassExpression399{{"PgClassExpression[399∈30]
ᐸ__types__....ictionary”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression399 - PgClassExpression400{{"PgClassExpression[400∈30]
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression400 - PgClassExpression402{{"PgClassExpression[402∈30]
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression402 - PgClassExpression404{{"PgClassExpression[404∈30]
ᐸ__types__.”bytea”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression404 - PgClassExpression405{{"PgClassExpression[405∈30]
ᐸ__types__.”bytea_array”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression405 - First409{{"First[409∈30]"}}:::plan - PgSelectRows410[["PgSelectRows[410∈30]"]]:::plan - PgSelectRows410 --> First409 - PgSelect407 --> PgSelectRows410 - PgSelectSingle411{{"PgSelectSingle[411∈30]
ᐸpostᐳ"}}:::plan - First409 --> PgSelectSingle411 - First416{{"First[416∈30]"}}:::plan - PgSelectRows417[["PgSelectRows[417∈30]"]]:::plan - PgSelectRows417 --> First416 - PgSelect414 --> PgSelectRows417 - PgSelectSingle418{{"PgSelectSingle[418∈30]
ᐸpostᐳ"}}:::plan - First416 --> PgSelectSingle418 - PgClassExpression421{{"PgClassExpression[421∈30]
ᐸ__types__.”ltree”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression421 - PgClassExpression422{{"PgClassExpression[422∈30]
ᐸ__types__.”ltree_array”ᐳ"}}:::plan - PgSelectSingle17 --> PgClassExpression422 - __Item231[/"__Item[231∈31]
ᐸ230ᐳ"\]:::itemplan - PgClassExpression230 ==> __Item231 - __Item235[/"__Item[235∈32]
ᐸ234ᐳ"\]:::itemplan - PgClassExpression234 ==> __Item235 - Access239{{"Access[239∈33]
ᐸ238.startᐳ"}}:::plan - PgClassExpression238 --> Access239 - Access242{{"Access[242∈33]
ᐸ238.endᐳ"}}:::plan - PgClassExpression238 --> Access242 - __Item279[/"__Item[279∈42]
ᐸ278ᐳ"\]:::itemplan - PgClassExpression278 ==> __Item279 - PgClassExpression314{{"PgClassExpression[314∈44]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle313 --> PgClassExpression314 - PgClassExpression315{{"PgClassExpression[315∈44]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle313 --> PgClassExpression315 - PgClassExpression316{{"PgClassExpression[316∈44]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle313 --> PgClassExpression316 - PgClassExpression317{{"PgClassExpression[317∈44]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle313 --> PgClassExpression317 - PgClassExpression318{{"PgClassExpression[318∈44]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle313 --> PgClassExpression318 - PgClassExpression319{{"PgClassExpression[319∈44]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle313 --> PgClassExpression319 - PgClassExpression320{{"PgClassExpression[320∈44]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle313 --> PgClassExpression320 - PgClassExpression327{{"PgClassExpression[327∈45]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle326 --> PgClassExpression327 - PgClassExpression328{{"PgClassExpression[328∈45]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle326 --> PgClassExpression328 - PgClassExpression329{{"PgClassExpression[329∈45]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle326 --> PgClassExpression329 - PgClassExpression330{{"PgClassExpression[330∈45]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle326 --> PgClassExpression330 - PgClassExpression331{{"PgClassExpression[331∈45]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle326 --> PgClassExpression331 - PgClassExpression332{{"PgClassExpression[332∈45]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle326 --> PgClassExpression332 - PgClassExpression333{{"PgClassExpression[333∈45]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle326 --> PgClassExpression333 - PgClassExpression341{{"PgClassExpression[341∈46]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle340 --> PgClassExpression341 - PgClassExpression342{{"PgClassExpression[342∈46]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle340 --> PgClassExpression342 - PgClassExpression343{{"PgClassExpression[343∈46]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle340 --> PgClassExpression343 - PgClassExpression344{{"PgClassExpression[344∈46]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle340 --> PgClassExpression344 - PgClassExpression345{{"PgClassExpression[345∈46]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle340 --> PgClassExpression345 - PgClassExpression346{{"PgClassExpression[346∈46]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle340 --> PgClassExpression346 - PgClassExpression347{{"PgClassExpression[347∈46]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle340 --> PgClassExpression347 - PgSelect355[["PgSelect[355∈47]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression354{{"PgClassExpression[354∈47]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression354 --> PgSelect355 - PgSelect370[["PgSelect[370∈47]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression369{{"PgClassExpression[369∈47]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression369 --> PgSelect370 - PgSelectSingle353 --> PgClassExpression354 - First359{{"First[359∈47]"}}:::plan - PgSelectRows360[["PgSelectRows[360∈47]"]]:::plan - PgSelectRows360 --> First359 - PgSelect355 --> PgSelectRows360 - PgSelectSingle361{{"PgSelectSingle[361∈47]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First359 --> PgSelectSingle361 - PgSelectSingle353 --> PgClassExpression369 - First372{{"First[372∈47]"}}:::plan - PgSelectRows373[["PgSelectRows[373∈47]"]]:::plan - PgSelectRows373 --> First372 - PgSelect370 --> PgSelectRows373 - PgSelectSingle374{{"PgSelectSingle[374∈47]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First372 --> PgSelectSingle374 - PgClassExpression382{{"PgClassExpression[382∈47]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle353 --> PgClassExpression382 - PgClassExpression362{{"PgClassExpression[362∈48]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle361 --> PgClassExpression362 - PgClassExpression363{{"PgClassExpression[363∈48]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle361 --> PgClassExpression363 - PgClassExpression364{{"PgClassExpression[364∈48]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle361 --> PgClassExpression364 - PgClassExpression365{{"PgClassExpression[365∈48]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle361 --> PgClassExpression365 - PgClassExpression366{{"PgClassExpression[366∈48]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle361 --> PgClassExpression366 - PgClassExpression367{{"PgClassExpression[367∈48]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle361 --> PgClassExpression367 - PgClassExpression368{{"PgClassExpression[368∈48]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle361 --> PgClassExpression368 - PgClassExpression375{{"PgClassExpression[375∈49]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle374 --> PgClassExpression375 - PgClassExpression376{{"PgClassExpression[376∈49]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle374 --> PgClassExpression376 - PgClassExpression377{{"PgClassExpression[377∈49]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle374 --> PgClassExpression377 - PgClassExpression378{{"PgClassExpression[378∈49]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle374 --> PgClassExpression378 - PgClassExpression379{{"PgClassExpression[379∈49]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle374 --> PgClassExpression379 - PgClassExpression380{{"PgClassExpression[380∈49]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle374 --> PgClassExpression380 - PgClassExpression381{{"PgClassExpression[381∈49]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle374 --> PgClassExpression381 - __Item401[/"__Item[401∈51]
ᐸ400ᐳ"\]:::itemplan - PgClassExpression400 ==> __Item401 - __Item403[/"__Item[403∈52]
ᐸ402ᐳ"\]:::itemplan - PgClassExpression402 ==> __Item403 - __Item406[/"__Item[406∈53]
ᐸ405ᐳ"\]:::itemplan - PgClassExpression405 ==> __Item406 - PgClassExpression412{{"PgClassExpression[412∈54]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle411 --> PgClassExpression412 - PgClassExpression413{{"PgClassExpression[413∈54]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle411 --> PgClassExpression413 - PgClassExpression419{{"PgClassExpression[419∈55]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle418 --> PgClassExpression419 - PgClassExpression420{{"PgClassExpression[420∈55]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle418 --> PgClassExpression420 - __Item423[/"__Item[423∈56]
ᐸ422ᐳ"\]:::itemplan - PgClassExpression422 ==> __Item423 - PgSelect523[["PgSelect[523∈57]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression522{{"PgClassExpression[522∈57]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression522 --> PgSelect523 - PgSelect538[["PgSelect[538∈57]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression537{{"PgClassExpression[537∈57]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression537 --> PgSelect538 - PgSelect544[["PgSelect[544∈57]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression543{{"PgClassExpression[543∈57]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression543 --> PgSelect544 - PgSelect557[["PgSelect[557∈57]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression556{{"PgClassExpression[556∈57]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression556 --> PgSelect557 - PgSelect571[["PgSelect[571∈57]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression570{{"PgClassExpression[570∈57]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression570 --> PgSelect571 - PgSelect584[["PgSelect[584∈57]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression583{{"PgClassExpression[583∈57]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression583 --> PgSelect584 - PgSelect642[["PgSelect[642∈57]
ᐸpostᐳ"]]:::plan - PgClassExpression458{{"PgClassExpression[458∈57]
ᐸ__types__.”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression458 --> PgSelect642 - PgSelect649[["PgSelect[649∈57]
ᐸpostᐳ"]]:::plan - PgClassExpression457{{"PgClassExpression[457∈57]
ᐸ__types__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression457 --> PgSelect649 - __Item455[/"__Item[455∈57]
ᐸ454ᐳ"\]:::itemplan - PgSelectRows454 ==> __Item455 - PgSelectSingle456{{"PgSelectSingle[456∈57]
ᐸtypesᐳ"}}:::plan - __Item455 --> PgSelectSingle456 - PgSelectSingle456 --> PgClassExpression457 - PgSelectSingle456 --> PgClassExpression458 - PgClassExpression459{{"PgClassExpression[459∈57]
ᐸ__types__.”bigint”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression459 - PgClassExpression460{{"PgClassExpression[460∈57]
ᐸ__types__.”numeric”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression460 - PgClassExpression461{{"PgClassExpression[461∈57]
ᐸ__types__.”decimal”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression461 - PgClassExpression462{{"PgClassExpression[462∈57]
ᐸ__types__.”boolean”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression462 - PgClassExpression463{{"PgClassExpression[463∈57]
ᐸ__types__.”varchar”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression463 - PgClassExpression464{{"PgClassExpression[464∈57]
ᐸ__types__.”enum”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression464 - PgClassExpression465{{"PgClassExpression[465∈57]
ᐸ__types__.”enum_array”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression465 - PgClassExpression467{{"PgClassExpression[467∈57]
ᐸ__types__.”domain”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression467 - PgClassExpression468{{"PgClassExpression[468∈57]
ᐸ__types__.”domain2”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression468 - PgClassExpression469{{"PgClassExpression[469∈57]
ᐸ__types__.”text_array”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression469 - PgClassExpression471{{"PgClassExpression[471∈57]
ᐸ__types__.”json”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression471 - PgClassExpression472{{"PgClassExpression[472∈57]
ᐸ__types__.”jsonb”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression472 - PgClassExpression473{{"PgClassExpression[473∈57]
ᐸ__types__....ble_range”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression473 - PgClassExpression480{{"PgClassExpression[480∈57]
ᐸ__types__.”numrange”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression480 - Access481{{"Access[481∈57]
ᐸ480.startᐳ"}}:::plan - PgClassExpression480 --> Access481 - Access484{{"Access[484∈57]
ᐸ480.endᐳ"}}:::plan - PgClassExpression480 --> Access484 - PgClassExpression487{{"PgClassExpression[487∈57]
ᐸ__types__.”daterange”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression487 - Access488{{"Access[488∈57]
ᐸ487.startᐳ"}}:::plan - PgClassExpression487 --> Access488 - Access491{{"Access[491∈57]
ᐸ487.endᐳ"}}:::plan - PgClassExpression487 --> Access491 - PgClassExpression494{{"PgClassExpression[494∈57]
ᐸ__types__....int_range”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression494 - Access495{{"Access[495∈57]
ᐸ494.startᐳ"}}:::plan - PgClassExpression494 --> Access495 - Access498{{"Access[498∈57]
ᐸ494.endᐳ"}}:::plan - PgClassExpression494 --> Access498 - PgClassExpression501{{"PgClassExpression[501∈57]
ᐸ__types__.”timestamp”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression501 - PgClassExpression502{{"PgClassExpression[502∈57]
ᐸ__types__.”timestamptz”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression502 - PgClassExpression503{{"PgClassExpression[503∈57]
ᐸ__types__.”date”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression503 - PgClassExpression504{{"PgClassExpression[504∈57]
ᐸ__types__.”time”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression504 - PgClassExpression505{{"PgClassExpression[505∈57]
ᐸ__types__.”timetz”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression505 - PgClassExpression506{{"PgClassExpression[506∈57]
ᐸ__types__.”interval”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression506 - PgClassExpression513{{"PgClassExpression[513∈57]
ᐸ__types__....val_array”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression513 - PgClassExpression521{{"PgClassExpression[521∈57]
ᐸ__types__.”money”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression521 - PgSelectSingle456 --> PgClassExpression522 - First527{{"First[527∈57]"}}:::plan - PgSelectRows528[["PgSelectRows[528∈57]"]]:::plan - PgSelectRows528 --> First527 - PgSelect523 --> PgSelectRows528 - PgSelectSingle529{{"PgSelectSingle[529∈57]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First527 --> PgSelectSingle529 - PgClassExpression530{{"PgClassExpression[530∈57]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle529 --> PgClassExpression530 - PgClassExpression531{{"PgClassExpression[531∈57]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle529 --> PgClassExpression531 - PgClassExpression532{{"PgClassExpression[532∈57]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle529 --> PgClassExpression532 - PgClassExpression533{{"PgClassExpression[533∈57]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle529 --> PgClassExpression533 - PgClassExpression534{{"PgClassExpression[534∈57]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle529 --> PgClassExpression534 - PgClassExpression535{{"PgClassExpression[535∈57]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle529 --> PgClassExpression535 - PgClassExpression536{{"PgClassExpression[536∈57]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle529 --> PgClassExpression536 - PgSelectSingle456 --> PgClassExpression537 - First540{{"First[540∈57]"}}:::plan - PgSelectRows541[["PgSelectRows[541∈57]"]]:::plan - PgSelectRows541 --> First540 - PgSelect538 --> PgSelectRows541 - PgSelectSingle542{{"PgSelectSingle[542∈57]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First540 --> PgSelectSingle542 - PgSelectSingle542 --> PgClassExpression543 - First546{{"First[546∈57]"}}:::plan - PgSelectRows547[["PgSelectRows[547∈57]"]]:::plan - PgSelectRows547 --> First546 - PgSelect544 --> PgSelectRows547 - PgSelectSingle548{{"PgSelectSingle[548∈57]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First546 --> PgSelectSingle548 - PgSelectSingle542 --> PgClassExpression556 - First559{{"First[559∈57]"}}:::plan - PgSelectRows560[["PgSelectRows[560∈57]"]]:::plan + First299{{"First[299∈1]"}}:::plan + PgSelectRows300[["PgSelectRows[300∈1]"]]:::plan + PgSelectRows300 --> First299 + PgSelect296 --> PgSelectRows300 + PgSelectSingle301{{"PgSelectSingle[301∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First299 --> PgSelectSingle301 + PgClassExpression302{{"PgClassExpression[302∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle301 --> PgClassExpression302 + PgClassExpression303{{"PgClassExpression[303∈1]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle301 --> PgClassExpression303 + PgClassExpression304{{"PgClassExpression[304∈1]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle301 --> PgClassExpression304 + PgClassExpression305{{"PgClassExpression[305∈1]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle301 --> PgClassExpression305 + PgClassExpression306{{"PgClassExpression[306∈1]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle301 --> PgClassExpression306 + PgClassExpression307{{"PgClassExpression[307∈1]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle301 --> PgClassExpression307 + PgClassExpression308{{"PgClassExpression[308∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle301 --> PgClassExpression308 + PgSelectSingle294 --> PgClassExpression309 + First313{{"First[313∈1]"}}:::plan + PgSelectRows314[["PgSelectRows[314∈1]"]]:::plan + PgSelectRows314 --> First313 + PgSelect310 --> PgSelectRows314 + PgSelectSingle315{{"PgSelectSingle[315∈1]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First313 --> PgSelectSingle315 + PgClassExpression316{{"PgClassExpression[316∈1]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle315 --> PgClassExpression316 + PgClassExpression317{{"PgClassExpression[317∈1]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle315 --> PgClassExpression317 + PgClassExpression318{{"PgClassExpression[318∈1]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle315 --> PgClassExpression318 + PgClassExpression319{{"PgClassExpression[319∈1]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle315 --> PgClassExpression319 + PgClassExpression320{{"PgClassExpression[320∈1]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle315 --> PgClassExpression320 + PgClassExpression321{{"PgClassExpression[321∈1]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle315 --> PgClassExpression321 + PgClassExpression322{{"PgClassExpression[322∈1]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle315 --> PgClassExpression322 + PgClassExpression323{{"PgClassExpression[323∈1]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle294 --> PgClassExpression323 + __Item27[/"__Item[27∈2]
ᐸ26ᐳ"\]:::itemplan + PgClassExpression26 ==> __Item27 + __Item31[/"__Item[31∈3]
ᐸ30ᐳ"\]:::itemplan + PgClassExpression30 ==> __Item31 + __Item75[/"__Item[75∈4]
ᐸ74ᐳ"\]:::itemplan + PgClassExpression74 ==> __Item75 + __Item203[/"__Item[203∈5]
ᐸ202ᐳ"\]:::itemplan + PgClassExpression202 ==> __Item203 + __Item205[/"__Item[205∈6]
ᐸ204ᐳ"\]:::itemplan + PgClassExpression204 ==> __Item205 + __Item208[/"__Item[208∈7]
ᐸ207ᐳ"\]:::itemplan + PgClassExpression207 ==> __Item208 + __Item225[/"__Item[225∈8]
ᐸ224ᐳ"\]:::itemplan + PgClassExpression224 ==> __Item225 + PgSelect432[["PgSelect[432∈9]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression431{{"PgClassExpression[431∈9]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression431 & PgFromExpression436 --> PgSelect432 + PgSelect448[["PgSelect[448∈9]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression447{{"PgClassExpression[447∈9]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression447 & PgFromExpression450 --> PgSelect448 + PgSelect455[["PgSelect[455∈9]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression454{{"PgClassExpression[454∈9]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression454 & PgFromExpression457 --> PgSelect455 + PgSelect469[["PgSelect[469∈9]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression468{{"PgClassExpression[468∈9]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression468 & PgFromExpression471 --> PgSelect469 + PgSelect484[["PgSelect[484∈9]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression483{{"PgClassExpression[483∈9]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression483 & PgFromExpression486 --> PgSelect484 + PgSelect498[["PgSelect[498∈9]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression497{{"PgClassExpression[497∈9]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression497 & PgFromExpression500 --> PgSelect498 + PgSelect505[["PgSelect[505∈9]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression504{{"PgClassExpression[504∈9]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression504 & PgFromExpression507 --> PgSelect505 + PgSelect519[["PgSelect[519∈9]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression518{{"PgClassExpression[518∈9]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression518 & PgFromExpression521 --> PgSelect519 + PgSelect557[["PgSelect[557∈9]
ᐸpostᐳ"]]:::plan + PgClassExpression367{{"PgClassExpression[367∈9]
ᐸ__types__.”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression367 --> PgSelect557 + PgSelect564[["PgSelect[564∈9]
ᐸpostᐳ"]]:::plan + PgClassExpression366{{"PgClassExpression[366∈9]
ᐸ__types__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression366 --> PgSelect564 + __Item364[/"__Item[364∈9]
ᐸ363ᐳ"\]:::itemplan + PgSelectRows363 ==> __Item364 + PgSelectSingle365{{"PgSelectSingle[365∈9]
ᐸtypesᐳ"}}:::plan + __Item364 --> PgSelectSingle365 + PgSelectSingle365 --> PgClassExpression366 + PgSelectSingle365 --> PgClassExpression367 + PgClassExpression368{{"PgClassExpression[368∈9]
ᐸ__types__.”bigint”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression368 + PgClassExpression369{{"PgClassExpression[369∈9]
ᐸ__types__.”numeric”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression369 + PgClassExpression370{{"PgClassExpression[370∈9]
ᐸ__types__.”decimal”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression370 + PgClassExpression371{{"PgClassExpression[371∈9]
ᐸ__types__.”boolean”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression371 + PgClassExpression372{{"PgClassExpression[372∈9]
ᐸ__types__.”varchar”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression372 + PgClassExpression373{{"PgClassExpression[373∈9]
ᐸ__types__.”enum”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression373 + PgClassExpression374{{"PgClassExpression[374∈9]
ᐸ__types__.”enum_array”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression374 + PgClassExpression376{{"PgClassExpression[376∈9]
ᐸ__types__.”domain”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression376 + PgClassExpression377{{"PgClassExpression[377∈9]
ᐸ__types__.”domain2”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression377 + PgClassExpression378{{"PgClassExpression[378∈9]
ᐸ__types__.”text_array”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression378 + PgClassExpression380{{"PgClassExpression[380∈9]
ᐸ__types__.”json”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression380 + PgClassExpression381{{"PgClassExpression[381∈9]
ᐸ__types__.”jsonb”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression381 + PgClassExpression382{{"PgClassExpression[382∈9]
ᐸ__types__....ble_range”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression382 + PgClassExpression389{{"PgClassExpression[389∈9]
ᐸ__types__.”numrange”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression389 + PgClassExpression396{{"PgClassExpression[396∈9]
ᐸ__types__.”daterange”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression396 + PgClassExpression403{{"PgClassExpression[403∈9]
ᐸ__types__....int_range”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression403 + PgClassExpression410{{"PgClassExpression[410∈9]
ᐸ__types__.”timestamp”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression410 + PgClassExpression411{{"PgClassExpression[411∈9]
ᐸ__types__.”timestamptz”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression411 + PgClassExpression412{{"PgClassExpression[412∈9]
ᐸ__types__.”date”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression412 + PgClassExpression413{{"PgClassExpression[413∈9]
ᐸ__types__.”time”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression413 + PgClassExpression414{{"PgClassExpression[414∈9]
ᐸ__types__.”timetz”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression414 + PgClassExpression415{{"PgClassExpression[415∈9]
ᐸ__types__.”interval”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression415 + PgClassExpression422{{"PgClassExpression[422∈9]
ᐸ__types__....val_array”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression422 + PgClassExpression430{{"PgClassExpression[430∈9]
ᐸ__types__.”money”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression430 + PgSelectSingle365 --> PgClassExpression431 + First437{{"First[437∈9]"}}:::plan + PgSelectRows438[["PgSelectRows[438∈9]"]]:::plan + PgSelectRows438 --> First437 + PgSelect432 --> PgSelectRows438 + PgSelectSingle439{{"PgSelectSingle[439∈9]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First437 --> PgSelectSingle439 + PgClassExpression440{{"PgClassExpression[440∈9]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle439 --> PgClassExpression440 + PgClassExpression441{{"PgClassExpression[441∈9]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle439 --> PgClassExpression441 + PgClassExpression442{{"PgClassExpression[442∈9]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle439 --> PgClassExpression442 + PgClassExpression443{{"PgClassExpression[443∈9]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle439 --> PgClassExpression443 + PgClassExpression444{{"PgClassExpression[444∈9]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle439 --> PgClassExpression444 + PgClassExpression445{{"PgClassExpression[445∈9]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle439 --> PgClassExpression445 + PgClassExpression446{{"PgClassExpression[446∈9]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle439 --> PgClassExpression446 + PgSelectSingle365 --> PgClassExpression447 + First451{{"First[451∈9]"}}:::plan + PgSelectRows452[["PgSelectRows[452∈9]"]]:::plan + PgSelectRows452 --> First451 + PgSelect448 --> PgSelectRows452 + PgSelectSingle453{{"PgSelectSingle[453∈9]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First451 --> PgSelectSingle453 + PgSelectSingle453 --> PgClassExpression454 + First458{{"First[458∈9]"}}:::plan + PgSelectRows459[["PgSelectRows[459∈9]"]]:::plan + PgSelectRows459 --> First458 + PgSelect455 --> PgSelectRows459 + PgSelectSingle460{{"PgSelectSingle[460∈9]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First458 --> PgSelectSingle460 + PgClassExpression461{{"PgClassExpression[461∈9]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle460 --> PgClassExpression461 + PgClassExpression462{{"PgClassExpression[462∈9]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle460 --> PgClassExpression462 + PgClassExpression463{{"PgClassExpression[463∈9]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle460 --> PgClassExpression463 + PgClassExpression464{{"PgClassExpression[464∈9]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle460 --> PgClassExpression464 + PgClassExpression465{{"PgClassExpression[465∈9]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle460 --> PgClassExpression465 + PgClassExpression466{{"PgClassExpression[466∈9]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle460 --> PgClassExpression466 + PgClassExpression467{{"PgClassExpression[467∈9]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle460 --> PgClassExpression467 + PgSelectSingle453 --> PgClassExpression468 + First472{{"First[472∈9]"}}:::plan + PgSelectRows473[["PgSelectRows[473∈9]"]]:::plan + PgSelectRows473 --> First472 + PgSelect469 --> PgSelectRows473 + PgSelectSingle474{{"PgSelectSingle[474∈9]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First472 --> PgSelectSingle474 + PgClassExpression475{{"PgClassExpression[475∈9]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle474 --> PgClassExpression475 + PgClassExpression476{{"PgClassExpression[476∈9]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle474 --> PgClassExpression476 + PgClassExpression477{{"PgClassExpression[477∈9]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle474 --> PgClassExpression477 + PgClassExpression478{{"PgClassExpression[478∈9]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle474 --> PgClassExpression478 + PgClassExpression479{{"PgClassExpression[479∈9]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle474 --> PgClassExpression479 + PgClassExpression480{{"PgClassExpression[480∈9]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle474 --> PgClassExpression480 + PgClassExpression481{{"PgClassExpression[481∈9]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle474 --> PgClassExpression481 + PgClassExpression482{{"PgClassExpression[482∈9]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle453 --> PgClassExpression482 + PgSelectSingle365 --> PgClassExpression483 + First487{{"First[487∈9]"}}:::plan + PgSelectRows488[["PgSelectRows[488∈9]"]]:::plan + PgSelectRows488 --> First487 + PgSelect484 --> PgSelectRows488 + PgSelectSingle489{{"PgSelectSingle[489∈9]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First487 --> PgSelectSingle489 + PgClassExpression490{{"PgClassExpression[490∈9]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle489 --> PgClassExpression490 + PgClassExpression491{{"PgClassExpression[491∈9]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle489 --> PgClassExpression491 + PgClassExpression492{{"PgClassExpression[492∈9]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle489 --> PgClassExpression492 + PgClassExpression493{{"PgClassExpression[493∈9]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle489 --> PgClassExpression493 + PgClassExpression494{{"PgClassExpression[494∈9]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle489 --> PgClassExpression494 + PgClassExpression495{{"PgClassExpression[495∈9]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle489 --> PgClassExpression495 + PgClassExpression496{{"PgClassExpression[496∈9]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle489 --> PgClassExpression496 + PgSelectSingle365 --> PgClassExpression497 + First501{{"First[501∈9]"}}:::plan + PgSelectRows502[["PgSelectRows[502∈9]"]]:::plan + PgSelectRows502 --> First501 + PgSelect498 --> PgSelectRows502 + PgSelectSingle503{{"PgSelectSingle[503∈9]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First501 --> PgSelectSingle503 + PgSelectSingle503 --> PgClassExpression504 + First508{{"First[508∈9]"}}:::plan + PgSelectRows509[["PgSelectRows[509∈9]"]]:::plan + PgSelectRows509 --> First508 + PgSelect505 --> PgSelectRows509 + PgSelectSingle510{{"PgSelectSingle[510∈9]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First508 --> PgSelectSingle510 + PgClassExpression511{{"PgClassExpression[511∈9]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle510 --> PgClassExpression511 + PgClassExpression512{{"PgClassExpression[512∈9]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle510 --> PgClassExpression512 + PgClassExpression513{{"PgClassExpression[513∈9]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle510 --> PgClassExpression513 + PgClassExpression514{{"PgClassExpression[514∈9]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle510 --> PgClassExpression514 + PgClassExpression515{{"PgClassExpression[515∈9]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle510 --> PgClassExpression515 + PgClassExpression516{{"PgClassExpression[516∈9]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle510 --> PgClassExpression516 + PgClassExpression517{{"PgClassExpression[517∈9]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle510 --> PgClassExpression517 + PgSelectSingle503 --> PgClassExpression518 + First522{{"First[522∈9]"}}:::plan + PgSelectRows523[["PgSelectRows[523∈9]"]]:::plan + PgSelectRows523 --> First522 + PgSelect519 --> PgSelectRows523 + PgSelectSingle524{{"PgSelectSingle[524∈9]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First522 --> PgSelectSingle524 + PgClassExpression525{{"PgClassExpression[525∈9]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle524 --> PgClassExpression525 + PgClassExpression526{{"PgClassExpression[526∈9]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle524 --> PgClassExpression526 + PgClassExpression527{{"PgClassExpression[527∈9]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle524 --> PgClassExpression527 + PgClassExpression528{{"PgClassExpression[528∈9]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle524 --> PgClassExpression528 + PgClassExpression529{{"PgClassExpression[529∈9]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle524 --> PgClassExpression529 + PgClassExpression530{{"PgClassExpression[530∈9]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle524 --> PgClassExpression530 + PgClassExpression531{{"PgClassExpression[531∈9]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle524 --> PgClassExpression531 + PgClassExpression532{{"PgClassExpression[532∈9]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle503 --> PgClassExpression532 + PgClassExpression533{{"PgClassExpression[533∈9]
ᐸ__types__.”point”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression533 + PgClassExpression536{{"PgClassExpression[536∈9]
ᐸ__types__....ablePoint”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression536 + PgClassExpression539{{"PgClassExpression[539∈9]
ᐸ__types__.”inet”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression539 + PgClassExpression540{{"PgClassExpression[540∈9]
ᐸ__types__.”cidr”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression540 + PgClassExpression541{{"PgClassExpression[541∈9]
ᐸ__types__.”macaddr”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression541 + PgClassExpression542{{"PgClassExpression[542∈9]
ᐸ__types__.”regproc”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression542 + PgClassExpression543{{"PgClassExpression[543∈9]
ᐸ__types__....procedure”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression543 + PgClassExpression544{{"PgClassExpression[544∈9]
ᐸ__types__.”regoper”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression544 + PgClassExpression545{{"PgClassExpression[545∈9]
ᐸ__types__.”regoperator”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression545 + PgClassExpression546{{"PgClassExpression[546∈9]
ᐸ__types__.”regclass”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression546 + PgClassExpression547{{"PgClassExpression[547∈9]
ᐸ__types__.”regtype”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression547 + PgClassExpression548{{"PgClassExpression[548∈9]
ᐸ__types__.”regconfig”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression548 + PgClassExpression549{{"PgClassExpression[549∈9]
ᐸ__types__....ictionary”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression549 + PgClassExpression550{{"PgClassExpression[550∈9]
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression550 + PgClassExpression552{{"PgClassExpression[552∈9]
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression552 + PgClassExpression554{{"PgClassExpression[554∈9]
ᐸ__types__.”bytea”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression554 + PgClassExpression555{{"PgClassExpression[555∈9]
ᐸ__types__.”bytea_array”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression555 + First559{{"First[559∈9]"}}:::plan + PgSelectRows560[["PgSelectRows[560∈9]"]]:::plan PgSelectRows560 --> First559 PgSelect557 --> PgSelectRows560 - PgSelectSingle561{{"PgSelectSingle[561∈57]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + PgSelectSingle561{{"PgSelectSingle[561∈9]
ᐸpostᐳ"}}:::plan First559 --> PgSelectSingle561 - PgClassExpression569{{"PgClassExpression[569∈57]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle542 --> PgClassExpression569 - PgSelectSingle456 --> PgClassExpression570 - First573{{"First[573∈57]"}}:::plan - PgSelectRows574[["PgSelectRows[574∈57]"]]:::plan - PgSelectRows574 --> First573 - PgSelect571 --> PgSelectRows574 - PgSelectSingle575{{"PgSelectSingle[575∈57]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First573 --> PgSelectSingle575 - PgSelectSingle456 --> PgClassExpression583 - First586{{"First[586∈57]"}}:::plan - PgSelectRows587[["PgSelectRows[587∈57]"]]:::plan - PgSelectRows587 --> First586 - PgSelect584 --> PgSelectRows587 - PgSelectSingle588{{"PgSelectSingle[588∈57]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First586 --> PgSelectSingle588 - PgClassExpression618{{"PgClassExpression[618∈57]
ᐸ__types__.”point”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression618 - PgClassExpression621{{"PgClassExpression[621∈57]
ᐸ__types__....ablePoint”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression621 - PgClassExpression624{{"PgClassExpression[624∈57]
ᐸ__types__.”inet”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression624 - PgClassExpression625{{"PgClassExpression[625∈57]
ᐸ__types__.”cidr”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression625 - PgClassExpression626{{"PgClassExpression[626∈57]
ᐸ__types__.”macaddr”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression626 - PgClassExpression627{{"PgClassExpression[627∈57]
ᐸ__types__.”regproc”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression627 - PgClassExpression628{{"PgClassExpression[628∈57]
ᐸ__types__....procedure”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression628 - PgClassExpression629{{"PgClassExpression[629∈57]
ᐸ__types__.”regoper”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression629 - PgClassExpression630{{"PgClassExpression[630∈57]
ᐸ__types__.”regoperator”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression630 - PgClassExpression631{{"PgClassExpression[631∈57]
ᐸ__types__.”regclass”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression631 - PgClassExpression632{{"PgClassExpression[632∈57]
ᐸ__types__.”regtype”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression632 - PgClassExpression633{{"PgClassExpression[633∈57]
ᐸ__types__.”regconfig”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression633 - PgClassExpression634{{"PgClassExpression[634∈57]
ᐸ__types__....ictionary”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression634 - PgClassExpression635{{"PgClassExpression[635∈57]
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression635 - PgClassExpression637{{"PgClassExpression[637∈57]
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression637 - PgClassExpression639{{"PgClassExpression[639∈57]
ᐸ__types__.”bytea”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression639 - PgClassExpression640{{"PgClassExpression[640∈57]
ᐸ__types__.”bytea_array”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression640 - First644{{"First[644∈57]"}}:::plan - PgSelectRows645[["PgSelectRows[645∈57]"]]:::plan - PgSelectRows645 --> First644 - PgSelect642 --> PgSelectRows645 - PgSelectSingle646{{"PgSelectSingle[646∈57]
ᐸpostᐳ"}}:::plan - First644 --> PgSelectSingle646 - First651{{"First[651∈57]"}}:::plan - PgSelectRows652[["PgSelectRows[652∈57]"]]:::plan - PgSelectRows652 --> First651 - PgSelect649 --> PgSelectRows652 - PgSelectSingle653{{"PgSelectSingle[653∈57]
ᐸpostᐳ"}}:::plan - First651 --> PgSelectSingle653 - PgClassExpression656{{"PgClassExpression[656∈57]
ᐸ__types__.”ltree”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression656 - PgClassExpression657{{"PgClassExpression[657∈57]
ᐸ__types__.”ltree_array”ᐳ"}}:::plan - PgSelectSingle456 --> PgClassExpression657 - __Item466[/"__Item[466∈58]
ᐸ465ᐳ"\]:::itemplan - PgClassExpression465 ==> __Item466 - __Item470[/"__Item[470∈59]
ᐸ469ᐳ"\]:::itemplan - PgClassExpression469 ==> __Item470 - Access474{{"Access[474∈60]
ᐸ473.startᐳ"}}:::plan - PgClassExpression473 --> Access474 - Access477{{"Access[477∈60]
ᐸ473.endᐳ"}}:::plan - PgClassExpression473 --> Access477 - __Item514[/"__Item[514∈69]
ᐸ513ᐳ"\]:::itemplan - PgClassExpression513 ==> __Item514 - PgClassExpression549{{"PgClassExpression[549∈71]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle548 --> PgClassExpression549 - PgClassExpression550{{"PgClassExpression[550∈71]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle548 --> PgClassExpression550 - PgClassExpression551{{"PgClassExpression[551∈71]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle548 --> PgClassExpression551 - PgClassExpression552{{"PgClassExpression[552∈71]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle548 --> PgClassExpression552 - PgClassExpression553{{"PgClassExpression[553∈71]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle548 --> PgClassExpression553 - PgClassExpression554{{"PgClassExpression[554∈71]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle548 --> PgClassExpression554 - PgClassExpression555{{"PgClassExpression[555∈71]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle548 --> PgClassExpression555 - PgClassExpression562{{"PgClassExpression[562∈72]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgClassExpression562{{"PgClassExpression[562∈9]
ᐸ__post__.”id”ᐳ"}}:::plan PgSelectSingle561 --> PgClassExpression562 - PgClassExpression563{{"PgClassExpression[563∈72]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgClassExpression563{{"PgClassExpression[563∈9]
ᐸ__post__.”headline”ᐳ"}}:::plan PgSelectSingle561 --> PgClassExpression563 - PgClassExpression564{{"PgClassExpression[564∈72]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle561 --> PgClassExpression564 - PgClassExpression565{{"PgClassExpression[565∈72]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle561 --> PgClassExpression565 - PgClassExpression566{{"PgClassExpression[566∈72]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle561 --> PgClassExpression566 - PgClassExpression567{{"PgClassExpression[567∈72]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle561 --> PgClassExpression567 - PgClassExpression568{{"PgClassExpression[568∈72]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle561 --> PgClassExpression568 - PgClassExpression576{{"PgClassExpression[576∈73]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle575 --> PgClassExpression576 - PgClassExpression577{{"PgClassExpression[577∈73]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle575 --> PgClassExpression577 - PgClassExpression578{{"PgClassExpression[578∈73]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle575 --> PgClassExpression578 - PgClassExpression579{{"PgClassExpression[579∈73]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle575 --> PgClassExpression579 - PgClassExpression580{{"PgClassExpression[580∈73]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle575 --> PgClassExpression580 - PgClassExpression581{{"PgClassExpression[581∈73]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle575 --> PgClassExpression581 - PgClassExpression582{{"PgClassExpression[582∈73]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle575 --> PgClassExpression582 - PgSelect590[["PgSelect[590∈74]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression589{{"PgClassExpression[589∈74]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression589 --> PgSelect590 - PgSelect605[["PgSelect[605∈74]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression604{{"PgClassExpression[604∈74]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression604 --> PgSelect605 - PgSelectSingle588 --> PgClassExpression589 - First594{{"First[594∈74]"}}:::plan - PgSelectRows595[["PgSelectRows[595∈74]"]]:::plan - PgSelectRows595 --> First594 - PgSelect590 --> PgSelectRows595 - PgSelectSingle596{{"PgSelectSingle[596∈74]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First594 --> PgSelectSingle596 - PgSelectSingle588 --> PgClassExpression604 - First607{{"First[607∈74]"}}:::plan - PgSelectRows608[["PgSelectRows[608∈74]"]]:::plan - PgSelectRows608 --> First607 - PgSelect605 --> PgSelectRows608 - PgSelectSingle609{{"PgSelectSingle[609∈74]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First607 --> PgSelectSingle609 - PgClassExpression617{{"PgClassExpression[617∈74]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle588 --> PgClassExpression617 - PgClassExpression597{{"PgClassExpression[597∈75]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle596 --> PgClassExpression597 - PgClassExpression598{{"PgClassExpression[598∈75]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle596 --> PgClassExpression598 - PgClassExpression599{{"PgClassExpression[599∈75]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle596 --> PgClassExpression599 - PgClassExpression600{{"PgClassExpression[600∈75]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle596 --> PgClassExpression600 - PgClassExpression601{{"PgClassExpression[601∈75]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle596 --> PgClassExpression601 - PgClassExpression602{{"PgClassExpression[602∈75]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle596 --> PgClassExpression602 - PgClassExpression603{{"PgClassExpression[603∈75]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle596 --> PgClassExpression603 - PgClassExpression610{{"PgClassExpression[610∈76]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle609 --> PgClassExpression610 - PgClassExpression611{{"PgClassExpression[611∈76]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle609 --> PgClassExpression611 - PgClassExpression612{{"PgClassExpression[612∈76]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle609 --> PgClassExpression612 - PgClassExpression613{{"PgClassExpression[613∈76]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle609 --> PgClassExpression613 - PgClassExpression614{{"PgClassExpression[614∈76]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle609 --> PgClassExpression614 - PgClassExpression615{{"PgClassExpression[615∈76]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle609 --> PgClassExpression615 - PgClassExpression616{{"PgClassExpression[616∈76]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle609 --> PgClassExpression616 - __Item636[/"__Item[636∈78]
ᐸ635ᐳ"\]:::itemplan - PgClassExpression635 ==> __Item636 - __Item638[/"__Item[638∈79]
ᐸ637ᐳ"\]:::itemplan - PgClassExpression637 ==> __Item638 - __Item641[/"__Item[641∈80]
ᐸ640ᐳ"\]:::itemplan - PgClassExpression640 ==> __Item641 - PgClassExpression647{{"PgClassExpression[647∈81]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle646 --> PgClassExpression647 - PgClassExpression648{{"PgClassExpression[648∈81]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle646 --> PgClassExpression648 - PgClassExpression654{{"PgClassExpression[654∈82]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle653 --> PgClassExpression654 - PgClassExpression655{{"PgClassExpression[655∈82]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle653 --> PgClassExpression655 - __Item658[/"__Item[658∈83]
ᐸ657ᐳ"\]:::itemplan - PgClassExpression657 ==> __Item658 - PgSelect731[["PgSelect[731∈84] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression730{{"PgClassExpression[730∈84] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression730 --> PgSelect731 - PgSelect746[["PgSelect[746∈84] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression745{{"PgClassExpression[745∈84] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression745 --> PgSelect746 - PgSelect752[["PgSelect[752∈84] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression751{{"PgClassExpression[751∈84] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression751 --> PgSelect752 - PgSelect765[["PgSelect[765∈84] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression764{{"PgClassExpression[764∈84] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression764 --> PgSelect765 - PgSelect779[["PgSelect[779∈84] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression778{{"PgClassExpression[778∈84] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression778 --> PgSelect779 - PgSelect792[["PgSelect[792∈84] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression791{{"PgClassExpression[791∈84] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression791 --> PgSelect792 - PgSelect850[["PgSelect[850∈84] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression666{{"PgClassExpression[666∈84] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression666 --> PgSelect850 - PgSelect857[["PgSelect[857∈84] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression665{{"PgClassExpression[665∈84] ➊
ᐸ__types__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression665 --> PgSelect857 - PgSelectSingle664 --> PgClassExpression665 - PgSelectSingle664 --> PgClassExpression666 - PgClassExpression667{{"PgClassExpression[667∈84] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression667 - PgClassExpression668{{"PgClassExpression[668∈84] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression668 - PgClassExpression669{{"PgClassExpression[669∈84] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression669 - PgClassExpression670{{"PgClassExpression[670∈84] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression670 - PgClassExpression671{{"PgClassExpression[671∈84] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression671 - PgClassExpression672{{"PgClassExpression[672∈84] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression672 - PgClassExpression673{{"PgClassExpression[673∈84] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression673 - PgClassExpression675{{"PgClassExpression[675∈84] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression675 - PgClassExpression676{{"PgClassExpression[676∈84] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression676 - PgClassExpression677{{"PgClassExpression[677∈84] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression677 - PgClassExpression679{{"PgClassExpression[679∈84] ➊
ᐸ__types__.”json”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression679 - PgClassExpression680{{"PgClassExpression[680∈84] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression680 - PgClassExpression681{{"PgClassExpression[681∈84] ➊
ᐸ__types__....ble_range”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression681 - PgClassExpression688{{"PgClassExpression[688∈84] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression688 - Access689{{"Access[689∈84] ➊
ᐸ688.startᐳ"}}:::plan - PgClassExpression688 --> Access689 - Access692{{"Access[692∈84] ➊
ᐸ688.endᐳ"}}:::plan - PgClassExpression688 --> Access692 - PgClassExpression695{{"PgClassExpression[695∈84] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression695 - Access696{{"Access[696∈84] ➊
ᐸ695.startᐳ"}}:::plan - PgClassExpression695 --> Access696 - Access699{{"Access[699∈84] ➊
ᐸ695.endᐳ"}}:::plan - PgClassExpression695 --> Access699 - PgClassExpression702{{"PgClassExpression[702∈84] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression702 - Access703{{"Access[703∈84] ➊
ᐸ702.startᐳ"}}:::plan - PgClassExpression702 --> Access703 - Access706{{"Access[706∈84] ➊
ᐸ702.endᐳ"}}:::plan - PgClassExpression702 --> Access706 - PgClassExpression709{{"PgClassExpression[709∈84] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression709 - PgClassExpression710{{"PgClassExpression[710∈84] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression710 - PgClassExpression711{{"PgClassExpression[711∈84] ➊
ᐸ__types__.”date”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression711 - PgClassExpression712{{"PgClassExpression[712∈84] ➊
ᐸ__types__.”time”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression712 - PgClassExpression713{{"PgClassExpression[713∈84] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression713 - PgClassExpression714{{"PgClassExpression[714∈84] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression714 - PgClassExpression721{{"PgClassExpression[721∈84] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression721 - PgClassExpression729{{"PgClassExpression[729∈84] ➊
ᐸ__types__.”money”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression729 - PgSelectSingle664 --> PgClassExpression730 - First735{{"First[735∈84] ➊"}}:::plan - PgSelectRows736[["PgSelectRows[736∈84] ➊"]]:::plan - PgSelectRows736 --> First735 - PgSelect731 --> PgSelectRows736 - PgSelectSingle737{{"PgSelectSingle[737∈84] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First735 --> PgSelectSingle737 - PgClassExpression738{{"PgClassExpression[738∈84] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle737 --> PgClassExpression738 - PgClassExpression739{{"PgClassExpression[739∈84] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle737 --> PgClassExpression739 - PgClassExpression740{{"PgClassExpression[740∈84] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle737 --> PgClassExpression740 - PgClassExpression741{{"PgClassExpression[741∈84] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle737 --> PgClassExpression741 - PgClassExpression742{{"PgClassExpression[742∈84] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle737 --> PgClassExpression742 - PgClassExpression743{{"PgClassExpression[743∈84] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle737 --> PgClassExpression743 - PgClassExpression744{{"PgClassExpression[744∈84] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle737 --> PgClassExpression744 - PgSelectSingle664 --> PgClassExpression745 - First748{{"First[748∈84] ➊"}}:::plan - PgSelectRows749[["PgSelectRows[749∈84] ➊"]]:::plan - PgSelectRows749 --> First748 - PgSelect746 --> PgSelectRows749 - PgSelectSingle750{{"PgSelectSingle[750∈84] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First748 --> PgSelectSingle750 - PgSelectSingle750 --> PgClassExpression751 - First754{{"First[754∈84] ➊"}}:::plan - PgSelectRows755[["PgSelectRows[755∈84] ➊"]]:::plan - PgSelectRows755 --> First754 - PgSelect752 --> PgSelectRows755 - PgSelectSingle756{{"PgSelectSingle[756∈84] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First754 --> PgSelectSingle756 - PgSelectSingle750 --> PgClassExpression764 - First767{{"First[767∈84] ➊"}}:::plan - PgSelectRows768[["PgSelectRows[768∈84] ➊"]]:::plan - PgSelectRows768 --> First767 - PgSelect765 --> PgSelectRows768 - PgSelectSingle769{{"PgSelectSingle[769∈84] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First767 --> PgSelectSingle769 - PgClassExpression777{{"PgClassExpression[777∈84] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle750 --> PgClassExpression777 - PgSelectSingle664 --> PgClassExpression778 - First781{{"First[781∈84] ➊"}}:::plan - PgSelectRows782[["PgSelectRows[782∈84] ➊"]]:::plan - PgSelectRows782 --> First781 - PgSelect779 --> PgSelectRows782 - PgSelectSingle783{{"PgSelectSingle[783∈84] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First781 --> PgSelectSingle783 - PgSelectSingle664 --> PgClassExpression791 - First794{{"First[794∈84] ➊"}}:::plan - PgSelectRows795[["PgSelectRows[795∈84] ➊"]]:::plan - PgSelectRows795 --> First794 - PgSelect792 --> PgSelectRows795 - PgSelectSingle796{{"PgSelectSingle[796∈84] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First794 --> PgSelectSingle796 - PgClassExpression826{{"PgClassExpression[826∈84] ➊
ᐸ__types__.”point”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression826 - PgClassExpression829{{"PgClassExpression[829∈84] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression829 - PgClassExpression832{{"PgClassExpression[832∈84] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression832 - PgClassExpression833{{"PgClassExpression[833∈84] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression833 - PgClassExpression834{{"PgClassExpression[834∈84] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression834 - PgClassExpression835{{"PgClassExpression[835∈84] ➊
ᐸ__types__.”regproc”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression835 - PgClassExpression836{{"PgClassExpression[836∈84] ➊
ᐸ__types__....procedure”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression836 - PgClassExpression837{{"PgClassExpression[837∈84] ➊
ᐸ__types__.”regoper”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression837 - PgClassExpression838{{"PgClassExpression[838∈84] ➊
ᐸ__types__.”regoperator”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression838 - PgClassExpression839{{"PgClassExpression[839∈84] ➊
ᐸ__types__.”regclass”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression839 - PgClassExpression840{{"PgClassExpression[840∈84] ➊
ᐸ__types__.”regtype”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression840 - PgClassExpression841{{"PgClassExpression[841∈84] ➊
ᐸ__types__.”regconfig”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression841 - PgClassExpression842{{"PgClassExpression[842∈84] ➊
ᐸ__types__....ictionary”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression842 - PgClassExpression843{{"PgClassExpression[843∈84] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression843 - PgClassExpression845{{"PgClassExpression[845∈84] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression845 - PgClassExpression847{{"PgClassExpression[847∈84] ➊
ᐸ__types__.”bytea”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression847 - PgClassExpression848{{"PgClassExpression[848∈84] ➊
ᐸ__types__.”bytea_array”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression848 - First852{{"First[852∈84] ➊"}}:::plan - PgSelectRows853[["PgSelectRows[853∈84] ➊"]]:::plan - PgSelectRows853 --> First852 - PgSelect850 --> PgSelectRows853 - PgSelectSingle854{{"PgSelectSingle[854∈84] ➊
ᐸpostᐳ"}}:::plan - First852 --> PgSelectSingle854 - First859{{"First[859∈84] ➊"}}:::plan - PgSelectRows860[["PgSelectRows[860∈84] ➊"]]:::plan - PgSelectRows860 --> First859 - PgSelect857 --> PgSelectRows860 - PgSelectSingle861{{"PgSelectSingle[861∈84] ➊
ᐸpostᐳ"}}:::plan - First859 --> PgSelectSingle861 - PgClassExpression864{{"PgClassExpression[864∈84] ➊
ᐸ__types__.”ltree”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression864 - PgClassExpression865{{"PgClassExpression[865∈84] ➊
ᐸ__types__.”ltree_array”ᐳ"}}:::plan - PgSelectSingle664 --> PgClassExpression865 - __Item674[/"__Item[674∈85]
ᐸ673ᐳ"\]:::itemplan - PgClassExpression673 ==> __Item674 - __Item678[/"__Item[678∈86]
ᐸ677ᐳ"\]:::itemplan - PgClassExpression677 ==> __Item678 - Access682{{"Access[682∈87] ➊
ᐸ681.startᐳ"}}:::plan - PgClassExpression681 --> Access682 - Access685{{"Access[685∈87] ➊
ᐸ681.endᐳ"}}:::plan - PgClassExpression681 --> Access685 - __Item722[/"__Item[722∈96]
ᐸ721ᐳ"\]:::itemplan - PgClassExpression721 ==> __Item722 - PgClassExpression757{{"PgClassExpression[757∈98] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle756 --> PgClassExpression757 - PgClassExpression758{{"PgClassExpression[758∈98] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle756 --> PgClassExpression758 - PgClassExpression759{{"PgClassExpression[759∈98] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle756 --> PgClassExpression759 - PgClassExpression760{{"PgClassExpression[760∈98] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle756 --> PgClassExpression760 - PgClassExpression761{{"PgClassExpression[761∈98] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle756 --> PgClassExpression761 - PgClassExpression762{{"PgClassExpression[762∈98] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle756 --> PgClassExpression762 - PgClassExpression763{{"PgClassExpression[763∈98] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle756 --> PgClassExpression763 - PgClassExpression770{{"PgClassExpression[770∈99] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle769 --> PgClassExpression770 - PgClassExpression771{{"PgClassExpression[771∈99] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle769 --> PgClassExpression771 - PgClassExpression772{{"PgClassExpression[772∈99] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle769 --> PgClassExpression772 - PgClassExpression773{{"PgClassExpression[773∈99] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle769 --> PgClassExpression773 - PgClassExpression774{{"PgClassExpression[774∈99] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle769 --> PgClassExpression774 - PgClassExpression775{{"PgClassExpression[775∈99] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle769 --> PgClassExpression775 - PgClassExpression776{{"PgClassExpression[776∈99] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle769 --> PgClassExpression776 - PgClassExpression784{{"PgClassExpression[784∈100] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle783 --> PgClassExpression784 - PgClassExpression785{{"PgClassExpression[785∈100] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle783 --> PgClassExpression785 - PgClassExpression786{{"PgClassExpression[786∈100] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle783 --> PgClassExpression786 - PgClassExpression787{{"PgClassExpression[787∈100] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle783 --> PgClassExpression787 - PgClassExpression788{{"PgClassExpression[788∈100] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle783 --> PgClassExpression788 - PgClassExpression789{{"PgClassExpression[789∈100] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle783 --> PgClassExpression789 - PgClassExpression790{{"PgClassExpression[790∈100] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle783 --> PgClassExpression790 - PgSelect798[["PgSelect[798∈101] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression797{{"PgClassExpression[797∈101] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression797 --> PgSelect798 - PgSelect813[["PgSelect[813∈101] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression812{{"PgClassExpression[812∈101] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression812 --> PgSelect813 - PgSelectSingle796 --> PgClassExpression797 - First802{{"First[802∈101] ➊"}}:::plan - PgSelectRows803[["PgSelectRows[803∈101] ➊"]]:::plan - PgSelectRows803 --> First802 - PgSelect798 --> PgSelectRows803 - PgSelectSingle804{{"PgSelectSingle[804∈101] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First802 --> PgSelectSingle804 - PgSelectSingle796 --> PgClassExpression812 - First815{{"First[815∈101] ➊"}}:::plan - PgSelectRows816[["PgSelectRows[816∈101] ➊"]]:::plan - PgSelectRows816 --> First815 - PgSelect813 --> PgSelectRows816 - PgSelectSingle817{{"PgSelectSingle[817∈101] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First815 --> PgSelectSingle817 - PgClassExpression825{{"PgClassExpression[825∈101] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle796 --> PgClassExpression825 - PgClassExpression805{{"PgClassExpression[805∈102] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle804 --> PgClassExpression805 - PgClassExpression806{{"PgClassExpression[806∈102] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle804 --> PgClassExpression806 - PgClassExpression807{{"PgClassExpression[807∈102] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle804 --> PgClassExpression807 - PgClassExpression808{{"PgClassExpression[808∈102] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle804 --> PgClassExpression808 - PgClassExpression809{{"PgClassExpression[809∈102] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle804 --> PgClassExpression809 - PgClassExpression810{{"PgClassExpression[810∈102] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle804 --> PgClassExpression810 - PgClassExpression811{{"PgClassExpression[811∈102] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle804 --> PgClassExpression811 - PgClassExpression818{{"PgClassExpression[818∈103] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle817 --> PgClassExpression818 - PgClassExpression819{{"PgClassExpression[819∈103] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle817 --> PgClassExpression819 - PgClassExpression820{{"PgClassExpression[820∈103] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle817 --> PgClassExpression820 - PgClassExpression821{{"PgClassExpression[821∈103] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle817 --> PgClassExpression821 - PgClassExpression822{{"PgClassExpression[822∈103] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle817 --> PgClassExpression822 - PgClassExpression823{{"PgClassExpression[823∈103] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle817 --> PgClassExpression823 - PgClassExpression824{{"PgClassExpression[824∈103] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle817 --> PgClassExpression824 - __Item844[/"__Item[844∈105]
ᐸ843ᐳ"\]:::itemplan - PgClassExpression843 ==> __Item844 - __Item846[/"__Item[846∈106]
ᐸ845ᐳ"\]:::itemplan - PgClassExpression845 ==> __Item846 - __Item849[/"__Item[849∈107]
ᐸ848ᐳ"\]:::itemplan - PgClassExpression848 ==> __Item849 - PgClassExpression855{{"PgClassExpression[855∈108] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle854 --> PgClassExpression855 - PgClassExpression856{{"PgClassExpression[856∈108] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle854 --> PgClassExpression856 - PgClassExpression862{{"PgClassExpression[862∈109] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle861 --> PgClassExpression862 - PgClassExpression863{{"PgClassExpression[863∈109] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle861 --> PgClassExpression863 - __Item866[/"__Item[866∈110]
ᐸ865ᐳ"\]:::itemplan - PgClassExpression865 ==> __Item866 - PgSelect942[["PgSelect[942∈111] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression941{{"PgClassExpression[941∈111] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression941 --> PgSelect942 - PgSelect957[["PgSelect[957∈111] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression956{{"PgClassExpression[956∈111] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression956 --> PgSelect957 - PgSelect963[["PgSelect[963∈111] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression962{{"PgClassExpression[962∈111] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression962 --> PgSelect963 - PgSelect976[["PgSelect[976∈111] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression975{{"PgClassExpression[975∈111] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression975 --> PgSelect976 - PgSelect990[["PgSelect[990∈111] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression989{{"PgClassExpression[989∈111] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression989 --> PgSelect990 - PgSelect1003[["PgSelect[1003∈111] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression1002{{"PgClassExpression[1002∈111] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1002 --> PgSelect1003 - PgSelect1061[["PgSelect[1061∈111] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression877{{"PgClassExpression[877∈111] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression877 --> PgSelect1061 - PgSelect1068[["PgSelect[1068∈111] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression876{{"PgClassExpression[876∈111] ➊
ᐸ__types__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression876 --> PgSelect1068 - PgSelectSingle875 --> PgClassExpression876 - PgSelectSingle875 --> PgClassExpression877 - PgClassExpression878{{"PgClassExpression[878∈111] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression878 - PgClassExpression879{{"PgClassExpression[879∈111] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression879 - PgClassExpression880{{"PgClassExpression[880∈111] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression880 - PgClassExpression881{{"PgClassExpression[881∈111] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression881 - PgClassExpression882{{"PgClassExpression[882∈111] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression882 - PgClassExpression883{{"PgClassExpression[883∈111] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression883 - PgClassExpression884{{"PgClassExpression[884∈111] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression884 - PgClassExpression886{{"PgClassExpression[886∈111] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression886 - PgClassExpression887{{"PgClassExpression[887∈111] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression887 - PgClassExpression888{{"PgClassExpression[888∈111] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression888 - PgClassExpression890{{"PgClassExpression[890∈111] ➊
ᐸ__types__.”json”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression890 - PgClassExpression891{{"PgClassExpression[891∈111] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression891 - PgClassExpression892{{"PgClassExpression[892∈111] ➊
ᐸ__types__....ble_range”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression892 - PgClassExpression899{{"PgClassExpression[899∈111] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression899 - Access900{{"Access[900∈111] ➊
ᐸ899.startᐳ"}}:::plan - PgClassExpression899 --> Access900 - Access903{{"Access[903∈111] ➊
ᐸ899.endᐳ"}}:::plan - PgClassExpression899 --> Access903 - PgClassExpression906{{"PgClassExpression[906∈111] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression906 - Access907{{"Access[907∈111] ➊
ᐸ906.startᐳ"}}:::plan - PgClassExpression906 --> Access907 - Access910{{"Access[910∈111] ➊
ᐸ906.endᐳ"}}:::plan - PgClassExpression906 --> Access910 - PgClassExpression913{{"PgClassExpression[913∈111] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression913 - Access914{{"Access[914∈111] ➊
ᐸ913.startᐳ"}}:::plan - PgClassExpression913 --> Access914 - Access917{{"Access[917∈111] ➊
ᐸ913.endᐳ"}}:::plan - PgClassExpression913 --> Access917 - PgClassExpression920{{"PgClassExpression[920∈111] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression920 - PgClassExpression921{{"PgClassExpression[921∈111] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression921 - PgClassExpression922{{"PgClassExpression[922∈111] ➊
ᐸ__types__.”date”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression922 - PgClassExpression923{{"PgClassExpression[923∈111] ➊
ᐸ__types__.”time”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression923 - PgClassExpression924{{"PgClassExpression[924∈111] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression924 - PgClassExpression925{{"PgClassExpression[925∈111] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression925 - PgClassExpression932{{"PgClassExpression[932∈111] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression932 - PgClassExpression940{{"PgClassExpression[940∈111] ➊
ᐸ__types__.”money”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression940 - PgSelectSingle875 --> PgClassExpression941 - First946{{"First[946∈111] ➊"}}:::plan - PgSelectRows947[["PgSelectRows[947∈111] ➊"]]:::plan - PgSelectRows947 --> First946 - PgSelect942 --> PgSelectRows947 - PgSelectSingle948{{"PgSelectSingle[948∈111] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First946 --> PgSelectSingle948 - PgClassExpression949{{"PgClassExpression[949∈111] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle948 --> PgClassExpression949 - PgClassExpression950{{"PgClassExpression[950∈111] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle948 --> PgClassExpression950 - PgClassExpression951{{"PgClassExpression[951∈111] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle948 --> PgClassExpression951 - PgClassExpression952{{"PgClassExpression[952∈111] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle948 --> PgClassExpression952 - PgClassExpression953{{"PgClassExpression[953∈111] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle948 --> PgClassExpression953 - PgClassExpression954{{"PgClassExpression[954∈111] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle948 --> PgClassExpression954 - PgClassExpression955{{"PgClassExpression[955∈111] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle948 --> PgClassExpression955 - PgSelectSingle875 --> PgClassExpression956 - First959{{"First[959∈111] ➊"}}:::plan - PgSelectRows960[["PgSelectRows[960∈111] ➊"]]:::plan - PgSelectRows960 --> First959 - PgSelect957 --> PgSelectRows960 - PgSelectSingle961{{"PgSelectSingle[961∈111] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First959 --> PgSelectSingle961 - PgSelectSingle961 --> PgClassExpression962 - First965{{"First[965∈111] ➊"}}:::plan - PgSelectRows966[["PgSelectRows[966∈111] ➊"]]:::plan - PgSelectRows966 --> First965 - PgSelect963 --> PgSelectRows966 - PgSelectSingle967{{"PgSelectSingle[967∈111] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First965 --> PgSelectSingle967 - PgSelectSingle961 --> PgClassExpression975 - First978{{"First[978∈111] ➊"}}:::plan - PgSelectRows979[["PgSelectRows[979∈111] ➊"]]:::plan - PgSelectRows979 --> First978 - PgSelect976 --> PgSelectRows979 - PgSelectSingle980{{"PgSelectSingle[980∈111] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First978 --> PgSelectSingle980 - PgClassExpression988{{"PgClassExpression[988∈111] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle961 --> PgClassExpression988 - PgSelectSingle875 --> PgClassExpression989 - First992{{"First[992∈111] ➊"}}:::plan - PgSelectRows993[["PgSelectRows[993∈111] ➊"]]:::plan - PgSelectRows993 --> First992 - PgSelect990 --> PgSelectRows993 - PgSelectSingle994{{"PgSelectSingle[994∈111] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First992 --> PgSelectSingle994 - PgSelectSingle875 --> PgClassExpression1002 - First1005{{"First[1005∈111] ➊"}}:::plan - PgSelectRows1006[["PgSelectRows[1006∈111] ➊"]]:::plan - PgSelectRows1006 --> First1005 - PgSelect1003 --> PgSelectRows1006 - PgSelectSingle1007{{"PgSelectSingle[1007∈111] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First1005 --> PgSelectSingle1007 - PgClassExpression1037{{"PgClassExpression[1037∈111] ➊
ᐸ__types__.”point”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1037 - PgClassExpression1040{{"PgClassExpression[1040∈111] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1040 - PgClassExpression1043{{"PgClassExpression[1043∈111] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1043 - PgClassExpression1044{{"PgClassExpression[1044∈111] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1044 - PgClassExpression1045{{"PgClassExpression[1045∈111] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1045 - PgClassExpression1046{{"PgClassExpression[1046∈111] ➊
ᐸ__types__.”regproc”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1046 - PgClassExpression1047{{"PgClassExpression[1047∈111] ➊
ᐸ__types__....procedure”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1047 - PgClassExpression1048{{"PgClassExpression[1048∈111] ➊
ᐸ__types__.”regoper”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1048 - PgClassExpression1049{{"PgClassExpression[1049∈111] ➊
ᐸ__types__.”regoperator”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1049 - PgClassExpression1050{{"PgClassExpression[1050∈111] ➊
ᐸ__types__.”regclass”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1050 - PgClassExpression1051{{"PgClassExpression[1051∈111] ➊
ᐸ__types__.”regtype”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1051 - PgClassExpression1052{{"PgClassExpression[1052∈111] ➊
ᐸ__types__.”regconfig”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1052 - PgClassExpression1053{{"PgClassExpression[1053∈111] ➊
ᐸ__types__....ictionary”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1053 - PgClassExpression1054{{"PgClassExpression[1054∈111] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1054 - PgClassExpression1056{{"PgClassExpression[1056∈111] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1056 - PgClassExpression1058{{"PgClassExpression[1058∈111] ➊
ᐸ__types__.”bytea”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1058 - PgClassExpression1059{{"PgClassExpression[1059∈111] ➊
ᐸ__types__.”bytea_array”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1059 - First1063{{"First[1063∈111] ➊"}}:::plan - PgSelectRows1064[["PgSelectRows[1064∈111] ➊"]]:::plan - PgSelectRows1064 --> First1063 - PgSelect1061 --> PgSelectRows1064 - PgSelectSingle1065{{"PgSelectSingle[1065∈111] ➊
ᐸpostᐳ"}}:::plan - First1063 --> PgSelectSingle1065 - First1070{{"First[1070∈111] ➊"}}:::plan - PgSelectRows1071[["PgSelectRows[1071∈111] ➊"]]:::plan - PgSelectRows1071 --> First1070 - PgSelect1068 --> PgSelectRows1071 - PgSelectSingle1072{{"PgSelectSingle[1072∈111] ➊
ᐸpostᐳ"}}:::plan - First1070 --> PgSelectSingle1072 - PgClassExpression1075{{"PgClassExpression[1075∈111] ➊
ᐸ__types__.”ltree”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1075 - PgClassExpression1076{{"PgClassExpression[1076∈111] ➊
ᐸ__types__.”ltree_array”ᐳ"}}:::plan - PgSelectSingle875 --> PgClassExpression1076 - __Item885[/"__Item[885∈112]
ᐸ884ᐳ"\]:::itemplan - PgClassExpression884 ==> __Item885 - __Item889[/"__Item[889∈113]
ᐸ888ᐳ"\]:::itemplan - PgClassExpression888 ==> __Item889 - Access893{{"Access[893∈114] ➊
ᐸ892.startᐳ"}}:::plan - PgClassExpression892 --> Access893 - Access896{{"Access[896∈114] ➊
ᐸ892.endᐳ"}}:::plan - PgClassExpression892 --> Access896 - __Item933[/"__Item[933∈123]
ᐸ932ᐳ"\]:::itemplan - PgClassExpression932 ==> __Item933 - PgClassExpression968{{"PgClassExpression[968∈125] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle967 --> PgClassExpression968 - PgClassExpression969{{"PgClassExpression[969∈125] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle967 --> PgClassExpression969 - PgClassExpression970{{"PgClassExpression[970∈125] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle967 --> PgClassExpression970 - PgClassExpression971{{"PgClassExpression[971∈125] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle967 --> PgClassExpression971 - PgClassExpression972{{"PgClassExpression[972∈125] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle967 --> PgClassExpression972 - PgClassExpression973{{"PgClassExpression[973∈125] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle967 --> PgClassExpression973 - PgClassExpression974{{"PgClassExpression[974∈125] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle967 --> PgClassExpression974 - PgClassExpression981{{"PgClassExpression[981∈126] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle980 --> PgClassExpression981 - PgClassExpression982{{"PgClassExpression[982∈126] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle980 --> PgClassExpression982 - PgClassExpression983{{"PgClassExpression[983∈126] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle980 --> PgClassExpression983 - PgClassExpression984{{"PgClassExpression[984∈126] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle980 --> PgClassExpression984 - PgClassExpression985{{"PgClassExpression[985∈126] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle980 --> PgClassExpression985 - PgClassExpression986{{"PgClassExpression[986∈126] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle980 --> PgClassExpression986 - PgClassExpression987{{"PgClassExpression[987∈126] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle980 --> PgClassExpression987 - PgClassExpression995{{"PgClassExpression[995∈127] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle994 --> PgClassExpression995 - PgClassExpression996{{"PgClassExpression[996∈127] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle994 --> PgClassExpression996 - PgClassExpression997{{"PgClassExpression[997∈127] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle994 --> PgClassExpression997 - PgClassExpression998{{"PgClassExpression[998∈127] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle994 --> PgClassExpression998 - PgClassExpression999{{"PgClassExpression[999∈127] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle994 --> PgClassExpression999 - PgClassExpression1000{{"PgClassExpression[1000∈127] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle994 --> PgClassExpression1000 - PgClassExpression1001{{"PgClassExpression[1001∈127] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle994 --> PgClassExpression1001 - PgSelect1009[["PgSelect[1009∈128] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1008{{"PgClassExpression[1008∈128] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression1008 --> PgSelect1009 - PgSelect1024[["PgSelect[1024∈128] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1023{{"PgClassExpression[1023∈128] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression1023 --> PgSelect1024 - PgSelectSingle1007 --> PgClassExpression1008 - First1013{{"First[1013∈128] ➊"}}:::plan - PgSelectRows1014[["PgSelectRows[1014∈128] ➊"]]:::plan - PgSelectRows1014 --> First1013 - PgSelect1009 --> PgSelectRows1014 - PgSelectSingle1015{{"PgSelectSingle[1015∈128] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1013 --> PgSelectSingle1015 - PgSelectSingle1007 --> PgClassExpression1023 - First1026{{"First[1026∈128] ➊"}}:::plan - PgSelectRows1027[["PgSelectRows[1027∈128] ➊"]]:::plan - PgSelectRows1027 --> First1026 - PgSelect1024 --> PgSelectRows1027 - PgSelectSingle1028{{"PgSelectSingle[1028∈128] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1026 --> PgSelectSingle1028 - PgClassExpression1036{{"PgClassExpression[1036∈128] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle1007 --> PgClassExpression1036 - PgClassExpression1016{{"PgClassExpression[1016∈129] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1015 --> PgClassExpression1016 - PgClassExpression1017{{"PgClassExpression[1017∈129] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1015 --> PgClassExpression1017 - PgClassExpression1018{{"PgClassExpression[1018∈129] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1015 --> PgClassExpression1018 - PgClassExpression1019{{"PgClassExpression[1019∈129] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1015 --> PgClassExpression1019 - PgClassExpression1020{{"PgClassExpression[1020∈129] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1015 --> PgClassExpression1020 - PgClassExpression1021{{"PgClassExpression[1021∈129] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1015 --> PgClassExpression1021 - PgClassExpression1022{{"PgClassExpression[1022∈129] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1015 --> PgClassExpression1022 - PgClassExpression1029{{"PgClassExpression[1029∈130] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1028 --> PgClassExpression1029 - PgClassExpression1030{{"PgClassExpression[1030∈130] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1028 --> PgClassExpression1030 - PgClassExpression1031{{"PgClassExpression[1031∈130] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1028 --> PgClassExpression1031 - PgClassExpression1032{{"PgClassExpression[1032∈130] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1028 --> PgClassExpression1032 - PgClassExpression1033{{"PgClassExpression[1033∈130] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1028 --> PgClassExpression1033 - PgClassExpression1034{{"PgClassExpression[1034∈130] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1028 --> PgClassExpression1034 - PgClassExpression1035{{"PgClassExpression[1035∈130] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1028 --> PgClassExpression1035 - __Item1055[/"__Item[1055∈132]
ᐸ1054ᐳ"\]:::itemplan - PgClassExpression1054 ==> __Item1055 - __Item1057[/"__Item[1057∈133]
ᐸ1056ᐳ"\]:::itemplan - PgClassExpression1056 ==> __Item1057 - __Item1060[/"__Item[1060∈134]
ᐸ1059ᐳ"\]:::itemplan - PgClassExpression1059 ==> __Item1060 - PgClassExpression1066{{"PgClassExpression[1066∈135] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle1065 --> PgClassExpression1066 - PgClassExpression1067{{"PgClassExpression[1067∈135] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle1065 --> PgClassExpression1067 - PgClassExpression1073{{"PgClassExpression[1073∈136] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle1072 --> PgClassExpression1073 - PgClassExpression1074{{"PgClassExpression[1074∈136] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle1072 --> PgClassExpression1074 - __Item1077[/"__Item[1077∈137]
ᐸ1076ᐳ"\]:::itemplan - PgClassExpression1076 ==> __Item1077 - PgSelect1125[["PgSelect[1125∈138] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan - Access3805{{"Access[3805∈138] ➊
ᐸ1080.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan - Access3806{{"Access[3806∈138] ➊
ᐸ1080.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan - Object12 -->|rejectNull| PgSelect1125 - Access3805 -->|rejectNull| PgSelect1125 - Access3806 --> PgSelect1125 - PgSelect1085[["PgSelect[1085∈138] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan - Object12 -->|rejectNull| PgSelect1085 - Access3805 --> PgSelect1085 - PgSelect1093[["PgSelect[1093∈138] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan - Object12 -->|rejectNull| PgSelect1093 - Access3805 --> PgSelect1093 - PgSelect1099[["PgSelect[1099∈138] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan - Object12 -->|rejectNull| PgSelect1099 - Access3805 --> PgSelect1099 - PgSelect1105[["PgSelect[1105∈138] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan - Object12 -->|rejectNull| PgSelect1105 - Access3805 --> PgSelect1105 - PgSelect1111[["PgSelect[1111∈138] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan - Object12 -->|rejectNull| PgSelect1111 - Access3805 --> PgSelect1111 - PgSelect1117[["PgSelect[1117∈138] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan - Object12 -->|rejectNull| PgSelect1117 - Access3805 --> PgSelect1117 - PgSelect1131[["PgSelect[1131∈138] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan - Object12 -->|rejectNull| PgSelect1131 - Access3805 --> PgSelect1131 - PgSelect1137[["PgSelect[1137∈138] ➊
ᐸpostᐳ
ᐳPost"]]:::plan - Object12 -->|rejectNull| PgSelect1137 - Access3805 --> PgSelect1137 - PgSelect1143[["PgSelect[1143∈138] ➊
ᐸtypesᐳ
ᐳType"]]:::plan - Object12 -->|rejectNull| PgSelect1143 - Access3805 --> PgSelect1143 - PgSelect1214[["PgSelect[1214∈138] ➊
ᐸfrmcdc_compoundTypeᐳ
ᐳType"]]:::plan - PgClassExpression1213{{"PgClassExpression[1213∈138] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1213 --> PgSelect1214 - PgSelect1227[["PgSelect[1227∈138] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ
ᐳType"]]:::plan - PgClassExpression1226{{"PgClassExpression[1226∈138] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1226 --> PgSelect1227 - PgSelect1233[["PgSelect[1233∈138] ➊
ᐸfrmcdc_compoundTypeᐳ
ᐳType"]]:::plan - PgClassExpression1232{{"PgClassExpression[1232∈138] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression1232 --> PgSelect1233 - PgSelect1246[["PgSelect[1246∈138] ➊
ᐸfrmcdc_compoundTypeᐳ
ᐳType"]]:::plan - PgClassExpression1245{{"PgClassExpression[1245∈138] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression1245 --> PgSelect1246 - PgSelect1260[["PgSelect[1260∈138] ➊
ᐸfrmcdc_compoundTypeᐳ
ᐳType"]]:::plan - PgClassExpression1259{{"PgClassExpression[1259∈138] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1259 --> PgSelect1260 - PgSelect1273[["PgSelect[1273∈138] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ
ᐳType"]]:::plan - PgClassExpression1272{{"PgClassExpression[1272∈138] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1272 --> PgSelect1273 - PgSelect1331[["PgSelect[1331∈138] ➊
ᐸpostᐳ
ᐳType"]]:::plan - PgClassExpression1149{{"PgClassExpression[1149∈138] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression1149 --> PgSelect1331 - PgSelect1338[["PgSelect[1338∈138] ➊
ᐸpostᐳ
ᐳType"]]:::plan - PgClassExpression1148{{"PgClassExpression[1148∈138] ➊
ᐸ__types__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression1148 --> PgSelect1338 - PgSelect1349[["PgSelect[1349∈138] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan - Object12 -->|rejectNull| PgSelect1349 - Access3805 --> PgSelect1349 - PgSelect1355[["PgSelect[1355∈138] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan - Object12 -->|rejectNull| PgSelect1355 - Access3805 --> PgSelect1355 - PgSelect1361[["PgSelect[1361∈138] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan - Object12 -->|rejectNull| PgSelect1361 - Access3805 --> PgSelect1361 - PgSelect1367[["PgSelect[1367∈138] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan - Object12 -->|rejectNull| PgSelect1367 - Access3805 --> PgSelect1367 - PgSelect1373[["PgSelect[1373∈138] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan - Object12 -->|rejectNull| PgSelect1373 - Access3805 --> PgSelect1373 - PgSelect1379[["PgSelect[1379∈138] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan - Object12 -->|rejectNull| PgSelect1379 - Access3805 --> PgSelect1379 - PgSelect1385[["PgSelect[1385∈138] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan - Object12 -->|rejectNull| PgSelect1385 - Access3805 --> PgSelect1385 - PgSelect1391[["PgSelect[1391∈138] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan - Object12 -->|rejectNull| PgSelect1391 - Access3805 --> PgSelect1391 - PgSelect1397[["PgSelect[1397∈138] ➊
ᐸlistsᐳ
ᐳList"]]:::plan - Object12 -->|rejectNull| PgSelect1397 - Access3805 --> PgSelect1397 - First1089{{"First[1089∈138] ➊"}}:::plan - PgSelectRows1090[["PgSelectRows[1090∈138] ➊"]]:::plan - PgSelectRows1090 --> First1089 - PgSelect1085 --> PgSelectRows1090 - PgSelectSingle1091{{"PgSelectSingle[1091∈138] ➊
ᐸinputsᐳ"}}:::plan - First1089 --> PgSelectSingle1091 - First1095{{"First[1095∈138] ➊"}}:::plan - PgSelectRows1096[["PgSelectRows[1096∈138] ➊"]]:::plan - PgSelectRows1096 --> First1095 - PgSelect1093 --> PgSelectRows1096 - PgSelectSingle1097{{"PgSelectSingle[1097∈138] ➊
ᐸpatchsᐳ"}}:::plan - First1095 --> PgSelectSingle1097 - First1101{{"First[1101∈138] ➊"}}:::plan - PgSelectRows1102[["PgSelectRows[1102∈138] ➊"]]:::plan - PgSelectRows1102 --> First1101 - PgSelect1099 --> PgSelectRows1102 - PgSelectSingle1103{{"PgSelectSingle[1103∈138] ➊
ᐸreservedᐳ"}}:::plan - First1101 --> PgSelectSingle1103 - First1107{{"First[1107∈138] ➊"}}:::plan - PgSelectRows1108[["PgSelectRows[1108∈138] ➊"]]:::plan - PgSelectRows1108 --> First1107 - PgSelect1105 --> PgSelectRows1108 - PgSelectSingle1109{{"PgSelectSingle[1109∈138] ➊
ᐸreservedPatchsᐳ"}}:::plan - First1107 --> PgSelectSingle1109 - First1113{{"First[1113∈138] ➊"}}:::plan - PgSelectRows1114[["PgSelectRows[1114∈138] ➊"]]:::plan - PgSelectRows1114 --> First1113 - PgSelect1111 --> PgSelectRows1114 - PgSelectSingle1115{{"PgSelectSingle[1115∈138] ➊
ᐸreserved_inputᐳ"}}:::plan - First1113 --> PgSelectSingle1115 - First1119{{"First[1119∈138] ➊"}}:::plan - PgSelectRows1120[["PgSelectRows[1120∈138] ➊"]]:::plan - PgSelectRows1120 --> First1119 - PgSelect1117 --> PgSelectRows1120 - PgSelectSingle1121{{"PgSelectSingle[1121∈138] ➊
ᐸdefault_valueᐳ"}}:::plan - First1119 --> PgSelectSingle1121 - First1127{{"First[1127∈138] ➊"}}:::plan - PgSelectRows1128[["PgSelectRows[1128∈138] ➊"]]:::plan - PgSelectRows1128 --> First1127 - PgSelect1125 --> PgSelectRows1128 - PgSelectSingle1129{{"PgSelectSingle[1129∈138] ➊
ᐸcompound_keyᐳ"}}:::plan - First1127 --> PgSelectSingle1129 - First1133{{"First[1133∈138] ➊"}}:::plan - PgSelectRows1134[["PgSelectRows[1134∈138] ➊"]]:::plan - PgSelectRows1134 --> First1133 - PgSelect1131 --> PgSelectRows1134 - PgSelectSingle1135{{"PgSelectSingle[1135∈138] ➊
ᐸpersonᐳ"}}:::plan - First1133 --> PgSelectSingle1135 - First1139{{"First[1139∈138] ➊"}}:::plan - PgSelectRows1140[["PgSelectRows[1140∈138] ➊"]]:::plan - PgSelectRows1140 --> First1139 - PgSelect1137 --> PgSelectRows1140 - PgSelectSingle1141{{"PgSelectSingle[1141∈138] ➊
ᐸpostᐳ"}}:::plan - First1139 --> PgSelectSingle1141 - First1145{{"First[1145∈138] ➊"}}:::plan - PgSelectRows1146[["PgSelectRows[1146∈138] ➊"]]:::plan - PgSelectRows1146 --> First1145 - PgSelect1143 --> PgSelectRows1146 - PgSelectSingle1147{{"PgSelectSingle[1147∈138] ➊
ᐸtypesᐳ"}}:::plan - First1145 --> PgSelectSingle1147 - PgSelectSingle1147 --> PgClassExpression1148 - PgSelectSingle1147 --> PgClassExpression1149 - PgClassExpression1150{{"PgClassExpression[1150∈138] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1150 - PgClassExpression1151{{"PgClassExpression[1151∈138] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1151 - PgClassExpression1152{{"PgClassExpression[1152∈138] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1152 - PgClassExpression1153{{"PgClassExpression[1153∈138] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1153 - PgClassExpression1154{{"PgClassExpression[1154∈138] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1154 - PgClassExpression1155{{"PgClassExpression[1155∈138] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1155 - PgClassExpression1156{{"PgClassExpression[1156∈138] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1156 - PgClassExpression1158{{"PgClassExpression[1158∈138] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1158 - PgClassExpression1159{{"PgClassExpression[1159∈138] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1159 - PgClassExpression1160{{"PgClassExpression[1160∈138] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1160 - PgClassExpression1162{{"PgClassExpression[1162∈138] ➊
ᐸ__types__.”json”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1162 - PgClassExpression1163{{"PgClassExpression[1163∈138] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1163 - PgClassExpression1164{{"PgClassExpression[1164∈138] ➊
ᐸ__types__....ble_range”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1164 - PgClassExpression1171{{"PgClassExpression[1171∈138] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1171 - Access1172{{"Access[1172∈138] ➊
ᐸ1171.startᐳ"}}:::plan - PgClassExpression1171 --> Access1172 - Access1175{{"Access[1175∈138] ➊
ᐸ1171.endᐳ"}}:::plan - PgClassExpression1171 --> Access1175 - PgClassExpression1178{{"PgClassExpression[1178∈138] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1178 - Access1179{{"Access[1179∈138] ➊
ᐸ1178.startᐳ"}}:::plan - PgClassExpression1178 --> Access1179 - Access1182{{"Access[1182∈138] ➊
ᐸ1178.endᐳ"}}:::plan - PgClassExpression1178 --> Access1182 - PgClassExpression1185{{"PgClassExpression[1185∈138] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1185 - Access1186{{"Access[1186∈138] ➊
ᐸ1185.startᐳ"}}:::plan - PgClassExpression1185 --> Access1186 - Access1189{{"Access[1189∈138] ➊
ᐸ1185.endᐳ"}}:::plan - PgClassExpression1185 --> Access1189 - PgClassExpression1192{{"PgClassExpression[1192∈138] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1192 - PgClassExpression1193{{"PgClassExpression[1193∈138] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1193 - PgClassExpression1194{{"PgClassExpression[1194∈138] ➊
ᐸ__types__.”date”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1194 - PgClassExpression1195{{"PgClassExpression[1195∈138] ➊
ᐸ__types__.”time”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1195 - PgClassExpression1196{{"PgClassExpression[1196∈138] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1196 - PgClassExpression1197{{"PgClassExpression[1197∈138] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1197 - PgClassExpression1204{{"PgClassExpression[1204∈138] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1204 - PgClassExpression1212{{"PgClassExpression[1212∈138] ➊
ᐸ__types__.”money”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1212 - PgSelectSingle1147 --> PgClassExpression1213 - First1216{{"First[1216∈138] ➊"}}:::plan - PgSelectRows1217[["PgSelectRows[1217∈138] ➊"]]:::plan - PgSelectRows1217 --> First1216 - PgSelect1214 --> PgSelectRows1217 - PgSelectSingle1218{{"PgSelectSingle[1218∈138] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1216 --> PgSelectSingle1218 - PgClassExpression1219{{"PgClassExpression[1219∈138] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1218 --> PgClassExpression1219 - PgClassExpression1220{{"PgClassExpression[1220∈138] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1218 --> PgClassExpression1220 - PgClassExpression1221{{"PgClassExpression[1221∈138] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1218 --> PgClassExpression1221 - PgClassExpression1222{{"PgClassExpression[1222∈138] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1218 --> PgClassExpression1222 - PgClassExpression1223{{"PgClassExpression[1223∈138] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1218 --> PgClassExpression1223 - PgClassExpression1224{{"PgClassExpression[1224∈138] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1218 --> PgClassExpression1224 - PgClassExpression1225{{"PgClassExpression[1225∈138] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1218 --> PgClassExpression1225 - PgSelectSingle1147 --> PgClassExpression1226 - First1229{{"First[1229∈138] ➊"}}:::plan - PgSelectRows1230[["PgSelectRows[1230∈138] ➊"]]:::plan - PgSelectRows1230 --> First1229 - PgSelect1227 --> PgSelectRows1230 - PgSelectSingle1231{{"PgSelectSingle[1231∈138] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First1229 --> PgSelectSingle1231 - PgSelectSingle1231 --> PgClassExpression1232 - First1235{{"First[1235∈138] ➊"}}:::plan - PgSelectRows1236[["PgSelectRows[1236∈138] ➊"]]:::plan - PgSelectRows1236 --> First1235 - PgSelect1233 --> PgSelectRows1236 - PgSelectSingle1237{{"PgSelectSingle[1237∈138] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1235 --> PgSelectSingle1237 - PgSelectSingle1231 --> PgClassExpression1245 - First1248{{"First[1248∈138] ➊"}}:::plan - PgSelectRows1249[["PgSelectRows[1249∈138] ➊"]]:::plan - PgSelectRows1249 --> First1248 - PgSelect1246 --> PgSelectRows1249 - PgSelectSingle1250{{"PgSelectSingle[1250∈138] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1248 --> PgSelectSingle1250 - PgClassExpression1258{{"PgClassExpression[1258∈138] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle1231 --> PgClassExpression1258 - PgSelectSingle1147 --> PgClassExpression1259 - First1262{{"First[1262∈138] ➊"}}:::plan - PgSelectRows1263[["PgSelectRows[1263∈138] ➊"]]:::plan + First566{{"First[566∈9]"}}:::plan + PgSelectRows567[["PgSelectRows[567∈9]"]]:::plan + PgSelectRows567 --> First566 + PgSelect564 --> PgSelectRows567 + PgSelectSingle568{{"PgSelectSingle[568∈9]
ᐸpostᐳ"}}:::plan + First566 --> PgSelectSingle568 + PgClassExpression569{{"PgClassExpression[569∈9]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle568 --> PgClassExpression569 + PgClassExpression570{{"PgClassExpression[570∈9]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle568 --> PgClassExpression570 + PgClassExpression571{{"PgClassExpression[571∈9]
ᐸ__types__.”ltree”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression571 + PgClassExpression572{{"PgClassExpression[572∈9]
ᐸ__types__.”ltree_array”ᐳ"}}:::plan + PgSelectSingle365 --> PgClassExpression572 + __Item375[/"__Item[375∈10]
ᐸ374ᐳ"\]:::itemplan + PgClassExpression374 ==> __Item375 + __Item379[/"__Item[379∈11]
ᐸ378ᐳ"\]:::itemplan + PgClassExpression378 ==> __Item379 + __Item423[/"__Item[423∈12]
ᐸ422ᐳ"\]:::itemplan + PgClassExpression422 ==> __Item423 + __Item551[/"__Item[551∈13]
ᐸ550ᐳ"\]:::itemplan + PgClassExpression550 ==> __Item551 + __Item553[/"__Item[553∈14]
ᐸ552ᐳ"\]:::itemplan + PgClassExpression552 ==> __Item553 + __Item556[/"__Item[556∈15]
ᐸ555ᐳ"\]:::itemplan + PgClassExpression555 ==> __Item556 + __Item573[/"__Item[573∈16]
ᐸ572ᐳ"\]:::itemplan + PgClassExpression572 ==> __Item573 + __Item589[/"__Item[589∈17]
ᐸ588ᐳ"\]:::itemplan + PgClassExpression588 ==> __Item589 + __Item593[/"__Item[593∈18]
ᐸ592ᐳ"\]:::itemplan + PgClassExpression592 ==> __Item593 + __Item637[/"__Item[637∈19]
ᐸ636ᐳ"\]:::itemplan + PgClassExpression636 ==> __Item637 + __Item763[/"__Item[763∈20]
ᐸ762ᐳ"\]:::itemplan + PgClassExpression762 ==> __Item763 + __Item765[/"__Item[765∈21]
ᐸ764ᐳ"\]:::itemplan + PgClassExpression764 ==> __Item765 + __Item768[/"__Item[768∈22]
ᐸ767ᐳ"\]:::itemplan + PgClassExpression767 ==> __Item768 + __Item785[/"__Item[785∈23]
ᐸ784ᐳ"\]:::itemplan + PgClassExpression784 ==> __Item785 + __Item804[/"__Item[804∈24]
ᐸ803ᐳ"\]:::itemplan + PgClassExpression803 ==> __Item804 + __Item808[/"__Item[808∈25]
ᐸ807ᐳ"\]:::itemplan + PgClassExpression807 ==> __Item808 + __Item852[/"__Item[852∈26]
ᐸ851ᐳ"\]:::itemplan + PgClassExpression851 ==> __Item852 + __Item978[/"__Item[978∈27]
ᐸ977ᐳ"\]:::itemplan + PgClassExpression977 ==> __Item978 + __Item980[/"__Item[980∈28]
ᐸ979ᐳ"\]:::itemplan + PgClassExpression979 ==> __Item980 + __Item983[/"__Item[983∈29]
ᐸ982ᐳ"\]:::itemplan + PgClassExpression982 ==> __Item983 + __Item1000[/"__Item[1000∈30]
ᐸ999ᐳ"\]:::itemplan + PgClassExpression999 ==> __Item1000 + PgSelect1048[["PgSelect[1048∈31] ➊
ᐸcompound_keyᐳ
ᐳCompoundKey"]]:::plan + Access3689{{"Access[3689∈31] ➊
ᐸ1003.base64JSON.1ᐳ
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList"}}:::plan + Access3690{{"Access[3690∈31] ➊
ᐸ1003.base64JSON.2ᐳ
ᐳCompoundKey"}}:::plan + Object11 -->|rejectNull| PgSelect1048 + Access3689 -->|rejectNull| PgSelect1048 + Access3690 --> PgSelect1048 + PgSelect1008[["PgSelect[1008∈31] ➊
ᐸinputsᐳ
ᐳInput"]]:::plan + Object11 -->|rejectNull| PgSelect1008 + Access3689 --> PgSelect1008 + PgSelect1016[["PgSelect[1016∈31] ➊
ᐸpatchsᐳ
ᐳPatch"]]:::plan + Object11 -->|rejectNull| PgSelect1016 + Access3689 --> PgSelect1016 + PgSelect1022[["PgSelect[1022∈31] ➊
ᐸreservedᐳ
ᐳReserved"]]:::plan + Object11 -->|rejectNull| PgSelect1022 + Access3689 --> PgSelect1022 + PgSelect1028[["PgSelect[1028∈31] ➊
ᐸreservedPatchsᐳ
ᐳReservedPatchRecord"]]:::plan + Object11 -->|rejectNull| PgSelect1028 + Access3689 --> PgSelect1028 + PgSelect1034[["PgSelect[1034∈31] ➊
ᐸreserved_inputᐳ
ᐳReservedInputRecord"]]:::plan + Object11 -->|rejectNull| PgSelect1034 + Access3689 --> PgSelect1034 + PgSelect1040[["PgSelect[1040∈31] ➊
ᐸdefault_valueᐳ
ᐳDefaultValue"]]:::plan + Object11 -->|rejectNull| PgSelect1040 + Access3689 --> PgSelect1040 + PgSelect1054[["PgSelect[1054∈31] ➊
ᐸpersonᐳ
ᐳPerson"]]:::plan + Object11 -->|rejectNull| PgSelect1054 + Access3689 --> PgSelect1054 + PgSelect1060[["PgSelect[1060∈31] ➊
ᐸpostᐳ
ᐳPost"]]:::plan + Object11 -->|rejectNull| PgSelect1060 + Access3689 --> PgSelect1060 + PgSelect1066[["PgSelect[1066∈31] ➊
ᐸtypesᐳ
ᐳType"]]:::plan + Object11 -->|rejectNull| PgSelect1066 + Access3689 --> PgSelect1066 + PgSelect1137[["PgSelect[1137∈31] ➊
ᐸfrmcdc_compoundTypeᐳ
ᐳType"]]:::plan + PgFromExpression1139{{"PgFromExpression[1139∈31] ➊"}}:::plan + Object11 & PgFromExpression1139 --> PgSelect1137 + PgSelect1151[["PgSelect[1151∈31] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ
ᐳType"]]:::plan + PgFromExpression1153{{"PgFromExpression[1153∈31] ➊"}}:::plan + Object11 & PgFromExpression1153 --> PgSelect1151 + PgSelect1158[["PgSelect[1158∈31] ➊
ᐸfrmcdc_compoundTypeᐳ
ᐳType"]]:::plan + PgFromExpression1160{{"PgFromExpression[1160∈31] ➊"}}:::plan + Object11 & PgFromExpression1160 --> PgSelect1158 + PgSelect1172[["PgSelect[1172∈31] ➊
ᐸfrmcdc_compoundTypeᐳ
ᐳType"]]:::plan + PgFromExpression1174{{"PgFromExpression[1174∈31] ➊"}}:::plan + Object11 & PgFromExpression1174 --> PgSelect1172 + PgSelect1187[["PgSelect[1187∈31] ➊
ᐸfrmcdc_compoundTypeᐳ
ᐳType"]]:::plan + PgFromExpression1189{{"PgFromExpression[1189∈31] ➊"}}:::plan + Object11 & PgFromExpression1189 --> PgSelect1187 + PgSelect1201[["PgSelect[1201∈31] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ
ᐳType"]]:::plan + PgFromExpression1203{{"PgFromExpression[1203∈31] ➊"}}:::plan + Object11 & PgFromExpression1203 --> PgSelect1201 + PgSelect1208[["PgSelect[1208∈31] ➊
ᐸfrmcdc_compoundTypeᐳ
ᐳType"]]:::plan + PgFromExpression1210{{"PgFromExpression[1210∈31] ➊"}}:::plan + Object11 & PgFromExpression1210 --> PgSelect1208 + PgSelect1222[["PgSelect[1222∈31] ➊
ᐸfrmcdc_compoundTypeᐳ
ᐳType"]]:::plan + PgFromExpression1224{{"PgFromExpression[1224∈31] ➊"}}:::plan + Object11 & PgFromExpression1224 --> PgSelect1222 + PgSelect1260[["PgSelect[1260∈31] ➊
ᐸpostᐳ
ᐳType"]]:::plan + PgClassExpression1072{{"PgClassExpression[1072∈31] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression1072 --> PgSelect1260 + PgSelect1267[["PgSelect[1267∈31] ➊
ᐸpostᐳ
ᐳType"]]:::plan + PgClassExpression1071{{"PgClassExpression[1071∈31] ➊
ᐸ__types__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression1071 --> PgSelect1267 + PgSelect1278[["PgSelect[1278∈31] ➊
ᐸperson_secretᐳ
ᐳPersonSecret"]]:::plan + Object11 -->|rejectNull| PgSelect1278 + Access3689 --> PgSelect1278 + PgSelect1284[["PgSelect[1284∈31] ➊
ᐸleft_armᐳ
ᐳLeftArm"]]:::plan + Object11 -->|rejectNull| PgSelect1284 + Access3689 --> PgSelect1284 + PgSelect1290[["PgSelect[1290∈31] ➊
ᐸmy_tableᐳ
ᐳMyTable"]]:::plan + Object11 -->|rejectNull| PgSelect1290 + Access3689 --> PgSelect1290 + PgSelect1296[["PgSelect[1296∈31] ➊
ᐸview_tableᐳ
ᐳViewTable"]]:::plan + Object11 -->|rejectNull| PgSelect1296 + Access3689 --> PgSelect1296 + PgSelect1302[["PgSelect[1302∈31] ➊
ᐸsimilar_table_1ᐳ
ᐳSimilarTable1"]]:::plan + Object11 -->|rejectNull| PgSelect1302 + Access3689 --> PgSelect1302 + PgSelect1308[["PgSelect[1308∈31] ➊
ᐸsimilar_table_2ᐳ
ᐳSimilarTable2"]]:::plan + Object11 -->|rejectNull| PgSelect1308 + Access3689 --> PgSelect1308 + PgSelect1314[["PgSelect[1314∈31] ➊
ᐸnull_test_recordᐳ
ᐳNullTestRecord"]]:::plan + Object11 -->|rejectNull| PgSelect1314 + Access3689 --> PgSelect1314 + PgSelect1320[["PgSelect[1320∈31] ➊
ᐸissue756ᐳ
ᐳIssue756"]]:::plan + Object11 -->|rejectNull| PgSelect1320 + Access3689 --> PgSelect1320 + PgSelect1326[["PgSelect[1326∈31] ➊
ᐸlistsᐳ
ᐳList"]]:::plan + Object11 -->|rejectNull| PgSelect1326 + Access3689 --> PgSelect1326 + First1012{{"First[1012∈31] ➊"}}:::plan + PgSelectRows1013[["PgSelectRows[1013∈31] ➊"]]:::plan + PgSelectRows1013 --> First1012 + PgSelect1008 --> PgSelectRows1013 + PgSelectSingle1014{{"PgSelectSingle[1014∈31] ➊
ᐸinputsᐳ"}}:::plan + First1012 --> PgSelectSingle1014 + First1018{{"First[1018∈31] ➊"}}:::plan + PgSelectRows1019[["PgSelectRows[1019∈31] ➊"]]:::plan + PgSelectRows1019 --> First1018 + PgSelect1016 --> PgSelectRows1019 + PgSelectSingle1020{{"PgSelectSingle[1020∈31] ➊
ᐸpatchsᐳ"}}:::plan + First1018 --> PgSelectSingle1020 + First1024{{"First[1024∈31] ➊"}}:::plan + PgSelectRows1025[["PgSelectRows[1025∈31] ➊"]]:::plan + PgSelectRows1025 --> First1024 + PgSelect1022 --> PgSelectRows1025 + PgSelectSingle1026{{"PgSelectSingle[1026∈31] ➊
ᐸreservedᐳ"}}:::plan + First1024 --> PgSelectSingle1026 + First1030{{"First[1030∈31] ➊"}}:::plan + PgSelectRows1031[["PgSelectRows[1031∈31] ➊"]]:::plan + PgSelectRows1031 --> First1030 + PgSelect1028 --> PgSelectRows1031 + PgSelectSingle1032{{"PgSelectSingle[1032∈31] ➊
ᐸreservedPatchsᐳ"}}:::plan + First1030 --> PgSelectSingle1032 + First1036{{"First[1036∈31] ➊"}}:::plan + PgSelectRows1037[["PgSelectRows[1037∈31] ➊"]]:::plan + PgSelectRows1037 --> First1036 + PgSelect1034 --> PgSelectRows1037 + PgSelectSingle1038{{"PgSelectSingle[1038∈31] ➊
ᐸreserved_inputᐳ"}}:::plan + First1036 --> PgSelectSingle1038 + First1042{{"First[1042∈31] ➊"}}:::plan + PgSelectRows1043[["PgSelectRows[1043∈31] ➊"]]:::plan + PgSelectRows1043 --> First1042 + PgSelect1040 --> PgSelectRows1043 + PgSelectSingle1044{{"PgSelectSingle[1044∈31] ➊
ᐸdefault_valueᐳ"}}:::plan + First1042 --> PgSelectSingle1044 + First1050{{"First[1050∈31] ➊"}}:::plan + PgSelectRows1051[["PgSelectRows[1051∈31] ➊"]]:::plan + PgSelectRows1051 --> First1050 + PgSelect1048 --> PgSelectRows1051 + PgSelectSingle1052{{"PgSelectSingle[1052∈31] ➊
ᐸcompound_keyᐳ"}}:::plan + First1050 --> PgSelectSingle1052 + First1056{{"First[1056∈31] ➊"}}:::plan + PgSelectRows1057[["PgSelectRows[1057∈31] ➊"]]:::plan + PgSelectRows1057 --> First1056 + PgSelect1054 --> PgSelectRows1057 + PgSelectSingle1058{{"PgSelectSingle[1058∈31] ➊
ᐸpersonᐳ"}}:::plan + First1056 --> PgSelectSingle1058 + First1062{{"First[1062∈31] ➊"}}:::plan + PgSelectRows1063[["PgSelectRows[1063∈31] ➊"]]:::plan + PgSelectRows1063 --> First1062 + PgSelect1060 --> PgSelectRows1063 + PgSelectSingle1064{{"PgSelectSingle[1064∈31] ➊
ᐸpostᐳ"}}:::plan + First1062 --> PgSelectSingle1064 + First1068{{"First[1068∈31] ➊"}}:::plan + PgSelectRows1069[["PgSelectRows[1069∈31] ➊"]]:::plan + PgSelectRows1069 --> First1068 + PgSelect1066 --> PgSelectRows1069 + PgSelectSingle1070{{"PgSelectSingle[1070∈31] ➊
ᐸtypesᐳ"}}:::plan + First1068 --> PgSelectSingle1070 + PgSelectSingle1070 --> PgClassExpression1071 + PgSelectSingle1070 --> PgClassExpression1072 + PgClassExpression1073{{"PgClassExpression[1073∈31] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1073 + PgClassExpression1074{{"PgClassExpression[1074∈31] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1074 + PgClassExpression1075{{"PgClassExpression[1075∈31] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1075 + PgClassExpression1076{{"PgClassExpression[1076∈31] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1076 + PgClassExpression1077{{"PgClassExpression[1077∈31] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1077 + PgClassExpression1078{{"PgClassExpression[1078∈31] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1078 + PgClassExpression1079{{"PgClassExpression[1079∈31] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1079 + PgClassExpression1081{{"PgClassExpression[1081∈31] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1081 + PgClassExpression1082{{"PgClassExpression[1082∈31] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1082 + PgClassExpression1083{{"PgClassExpression[1083∈31] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1083 + PgClassExpression1085{{"PgClassExpression[1085∈31] ➊
ᐸ__types__.”json”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1085 + PgClassExpression1086{{"PgClassExpression[1086∈31] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1086 + PgClassExpression1087{{"PgClassExpression[1087∈31] ➊
ᐸ__types__....ble_range”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1087 + PgClassExpression1094{{"PgClassExpression[1094∈31] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1094 + PgClassExpression1101{{"PgClassExpression[1101∈31] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1101 + PgClassExpression1108{{"PgClassExpression[1108∈31] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1108 + PgClassExpression1115{{"PgClassExpression[1115∈31] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1115 + PgClassExpression1116{{"PgClassExpression[1116∈31] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1116 + PgClassExpression1117{{"PgClassExpression[1117∈31] ➊
ᐸ__types__.”date”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1117 + PgClassExpression1118{{"PgClassExpression[1118∈31] ➊
ᐸ__types__.”time”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1118 + PgClassExpression1119{{"PgClassExpression[1119∈31] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1119 + PgClassExpression1120{{"PgClassExpression[1120∈31] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1120 + PgClassExpression1127{{"PgClassExpression[1127∈31] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1127 + PgClassExpression1135{{"PgClassExpression[1135∈31] ➊
ᐸ__types__.”money”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1135 + PgClassExpression1136{{"PgClassExpression[1136∈31] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1136 + PgClassExpression1136 --> PgFromExpression1139 + First1140{{"First[1140∈31] ➊"}}:::plan + PgSelectRows1141[["PgSelectRows[1141∈31] ➊"]]:::plan + PgSelectRows1141 --> First1140 + PgSelect1137 --> PgSelectRows1141 + PgSelectSingle1142{{"PgSelectSingle[1142∈31] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1140 --> PgSelectSingle1142 + PgClassExpression1143{{"PgClassExpression[1143∈31] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1142 --> PgClassExpression1143 + PgClassExpression1144{{"PgClassExpression[1144∈31] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1142 --> PgClassExpression1144 + PgClassExpression1145{{"PgClassExpression[1145∈31] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1142 --> PgClassExpression1145 + PgClassExpression1146{{"PgClassExpression[1146∈31] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1142 --> PgClassExpression1146 + PgClassExpression1147{{"PgClassExpression[1147∈31] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1142 --> PgClassExpression1147 + PgClassExpression1148{{"PgClassExpression[1148∈31] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1142 --> PgClassExpression1148 + PgClassExpression1149{{"PgClassExpression[1149∈31] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1142 --> PgClassExpression1149 + PgClassExpression1150{{"PgClassExpression[1150∈31] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1150 + PgClassExpression1150 --> PgFromExpression1153 + First1154{{"First[1154∈31] ➊"}}:::plan + PgSelectRows1155[["PgSelectRows[1155∈31] ➊"]]:::plan + PgSelectRows1155 --> First1154 + PgSelect1151 --> PgSelectRows1155 + PgSelectSingle1156{{"PgSelectSingle[1156∈31] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First1154 --> PgSelectSingle1156 + PgClassExpression1157{{"PgClassExpression[1157∈31] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle1156 --> PgClassExpression1157 + PgClassExpression1157 --> PgFromExpression1160 + First1161{{"First[1161∈31] ➊"}}:::plan + PgSelectRows1162[["PgSelectRows[1162∈31] ➊"]]:::plan + PgSelectRows1162 --> First1161 + PgSelect1158 --> PgSelectRows1162 + PgSelectSingle1163{{"PgSelectSingle[1163∈31] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1161 --> PgSelectSingle1163 + PgClassExpression1164{{"PgClassExpression[1164∈31] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1163 --> PgClassExpression1164 + PgClassExpression1165{{"PgClassExpression[1165∈31] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1163 --> PgClassExpression1165 + PgClassExpression1166{{"PgClassExpression[1166∈31] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1163 --> PgClassExpression1166 + PgClassExpression1167{{"PgClassExpression[1167∈31] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1163 --> PgClassExpression1167 + PgClassExpression1168{{"PgClassExpression[1168∈31] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1163 --> PgClassExpression1168 + PgClassExpression1169{{"PgClassExpression[1169∈31] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1163 --> PgClassExpression1169 + PgClassExpression1170{{"PgClassExpression[1170∈31] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1163 --> PgClassExpression1170 + PgClassExpression1171{{"PgClassExpression[1171∈31] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle1156 --> PgClassExpression1171 + PgClassExpression1171 --> PgFromExpression1174 + First1175{{"First[1175∈31] ➊"}}:::plan + PgSelectRows1176[["PgSelectRows[1176∈31] ➊"]]:::plan + PgSelectRows1176 --> First1175 + PgSelect1172 --> PgSelectRows1176 + PgSelectSingle1177{{"PgSelectSingle[1177∈31] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1175 --> PgSelectSingle1177 + PgClassExpression1178{{"PgClassExpression[1178∈31] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1177 --> PgClassExpression1178 + PgClassExpression1179{{"PgClassExpression[1179∈31] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1177 --> PgClassExpression1179 + PgClassExpression1180{{"PgClassExpression[1180∈31] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1177 --> PgClassExpression1180 + PgClassExpression1181{{"PgClassExpression[1181∈31] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1177 --> PgClassExpression1181 + PgClassExpression1182{{"PgClassExpression[1182∈31] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1177 --> PgClassExpression1182 + PgClassExpression1183{{"PgClassExpression[1183∈31] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1177 --> PgClassExpression1183 + PgClassExpression1184{{"PgClassExpression[1184∈31] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1177 --> PgClassExpression1184 + PgClassExpression1185{{"PgClassExpression[1185∈31] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle1156 --> PgClassExpression1185 + PgClassExpression1186{{"PgClassExpression[1186∈31] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1186 + PgClassExpression1186 --> PgFromExpression1189 + First1190{{"First[1190∈31] ➊"}}:::plan + PgSelectRows1191[["PgSelectRows[1191∈31] ➊"]]:::plan + PgSelectRows1191 --> First1190 + PgSelect1187 --> PgSelectRows1191 + PgSelectSingle1192{{"PgSelectSingle[1192∈31] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1190 --> PgSelectSingle1192 + PgClassExpression1193{{"PgClassExpression[1193∈31] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1192 --> PgClassExpression1193 + PgClassExpression1194{{"PgClassExpression[1194∈31] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1192 --> PgClassExpression1194 + PgClassExpression1195{{"PgClassExpression[1195∈31] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1192 --> PgClassExpression1195 + PgClassExpression1196{{"PgClassExpression[1196∈31] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1192 --> PgClassExpression1196 + PgClassExpression1197{{"PgClassExpression[1197∈31] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1192 --> PgClassExpression1197 + PgClassExpression1198{{"PgClassExpression[1198∈31] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1192 --> PgClassExpression1198 + PgClassExpression1199{{"PgClassExpression[1199∈31] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1192 --> PgClassExpression1199 + PgClassExpression1200{{"PgClassExpression[1200∈31] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1200 + PgClassExpression1200 --> PgFromExpression1203 + First1204{{"First[1204∈31] ➊"}}:::plan + PgSelectRows1205[["PgSelectRows[1205∈31] ➊"]]:::plan + PgSelectRows1205 --> First1204 + PgSelect1201 --> PgSelectRows1205 + PgSelectSingle1206{{"PgSelectSingle[1206∈31] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First1204 --> PgSelectSingle1206 + PgClassExpression1207{{"PgClassExpression[1207∈31] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + PgSelectSingle1206 --> PgClassExpression1207 + PgClassExpression1207 --> PgFromExpression1210 + First1211{{"First[1211∈31] ➊"}}:::plan + PgSelectRows1212[["PgSelectRows[1212∈31] ➊"]]:::plan + PgSelectRows1212 --> First1211 + PgSelect1208 --> PgSelectRows1212 + PgSelectSingle1213{{"PgSelectSingle[1213∈31] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1211 --> PgSelectSingle1213 + PgClassExpression1214{{"PgClassExpression[1214∈31] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1213 --> PgClassExpression1214 + PgClassExpression1215{{"PgClassExpression[1215∈31] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1213 --> PgClassExpression1215 + PgClassExpression1216{{"PgClassExpression[1216∈31] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1213 --> PgClassExpression1216 + PgClassExpression1217{{"PgClassExpression[1217∈31] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1213 --> PgClassExpression1217 + PgClassExpression1218{{"PgClassExpression[1218∈31] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1213 --> PgClassExpression1218 + PgClassExpression1219{{"PgClassExpression[1219∈31] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1213 --> PgClassExpression1219 + PgClassExpression1220{{"PgClassExpression[1220∈31] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1213 --> PgClassExpression1220 + PgClassExpression1221{{"PgClassExpression[1221∈31] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + PgSelectSingle1206 --> PgClassExpression1221 + PgClassExpression1221 --> PgFromExpression1224 + First1225{{"First[1225∈31] ➊"}}:::plan + PgSelectRows1226[["PgSelectRows[1226∈31] ➊"]]:::plan + PgSelectRows1226 --> First1225 + PgSelect1222 --> PgSelectRows1226 + PgSelectSingle1227{{"PgSelectSingle[1227∈31] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1225 --> PgSelectSingle1227 + PgClassExpression1228{{"PgClassExpression[1228∈31] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1227 --> PgClassExpression1228 + PgClassExpression1229{{"PgClassExpression[1229∈31] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1227 --> PgClassExpression1229 + PgClassExpression1230{{"PgClassExpression[1230∈31] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1227 --> PgClassExpression1230 + PgClassExpression1231{{"PgClassExpression[1231∈31] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1227 --> PgClassExpression1231 + PgClassExpression1232{{"PgClassExpression[1232∈31] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1227 --> PgClassExpression1232 + PgClassExpression1233{{"PgClassExpression[1233∈31] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1227 --> PgClassExpression1233 + PgClassExpression1234{{"PgClassExpression[1234∈31] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1227 --> PgClassExpression1234 + PgClassExpression1235{{"PgClassExpression[1235∈31] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle1206 --> PgClassExpression1235 + PgClassExpression1236{{"PgClassExpression[1236∈31] ➊
ᐸ__types__.”point”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1236 + PgClassExpression1239{{"PgClassExpression[1239∈31] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1239 + PgClassExpression1242{{"PgClassExpression[1242∈31] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1242 + PgClassExpression1243{{"PgClassExpression[1243∈31] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1243 + PgClassExpression1244{{"PgClassExpression[1244∈31] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1244 + PgClassExpression1245{{"PgClassExpression[1245∈31] ➊
ᐸ__types__.”regproc”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1245 + PgClassExpression1246{{"PgClassExpression[1246∈31] ➊
ᐸ__types__....procedure”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1246 + PgClassExpression1247{{"PgClassExpression[1247∈31] ➊
ᐸ__types__.”regoper”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1247 + PgClassExpression1248{{"PgClassExpression[1248∈31] ➊
ᐸ__types__.”regoperator”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1248 + PgClassExpression1249{{"PgClassExpression[1249∈31] ➊
ᐸ__types__.”regclass”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1249 + PgClassExpression1250{{"PgClassExpression[1250∈31] ➊
ᐸ__types__.”regtype”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1250 + PgClassExpression1251{{"PgClassExpression[1251∈31] ➊
ᐸ__types__.”regconfig”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1251 + PgClassExpression1252{{"PgClassExpression[1252∈31] ➊
ᐸ__types__....ictionary”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1252 + PgClassExpression1253{{"PgClassExpression[1253∈31] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1253 + PgClassExpression1255{{"PgClassExpression[1255∈31] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1255 + PgClassExpression1257{{"PgClassExpression[1257∈31] ➊
ᐸ__types__.”bytea”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1257 + PgClassExpression1258{{"PgClassExpression[1258∈31] ➊
ᐸ__types__.”bytea_array”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1258 + First1262{{"First[1262∈31] ➊"}}:::plan + PgSelectRows1263[["PgSelectRows[1263∈31] ➊"]]:::plan PgSelectRows1263 --> First1262 PgSelect1260 --> PgSelectRows1263 - PgSelectSingle1264{{"PgSelectSingle[1264∈138] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + PgSelectSingle1264{{"PgSelectSingle[1264∈31] ➊
ᐸpostᐳ"}}:::plan First1262 --> PgSelectSingle1264 - PgSelectSingle1147 --> PgClassExpression1272 - First1275{{"First[1275∈138] ➊"}}:::plan - PgSelectRows1276[["PgSelectRows[1276∈138] ➊"]]:::plan - PgSelectRows1276 --> First1275 - PgSelect1273 --> PgSelectRows1276 - PgSelectSingle1277{{"PgSelectSingle[1277∈138] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First1275 --> PgSelectSingle1277 - PgClassExpression1307{{"PgClassExpression[1307∈138] ➊
ᐸ__types__.”point”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1307 - PgClassExpression1310{{"PgClassExpression[1310∈138] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1310 - PgClassExpression1313{{"PgClassExpression[1313∈138] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1313 - PgClassExpression1314{{"PgClassExpression[1314∈138] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1314 - PgClassExpression1315{{"PgClassExpression[1315∈138] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1315 - PgClassExpression1316{{"PgClassExpression[1316∈138] ➊
ᐸ__types__.”regproc”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1316 - PgClassExpression1317{{"PgClassExpression[1317∈138] ➊
ᐸ__types__....procedure”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1317 - PgClassExpression1318{{"PgClassExpression[1318∈138] ➊
ᐸ__types__.”regoper”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1318 - PgClassExpression1319{{"PgClassExpression[1319∈138] ➊
ᐸ__types__.”regoperator”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1319 - PgClassExpression1320{{"PgClassExpression[1320∈138] ➊
ᐸ__types__.”regclass”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1320 - PgClassExpression1321{{"PgClassExpression[1321∈138] ➊
ᐸ__types__.”regtype”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1321 - PgClassExpression1322{{"PgClassExpression[1322∈138] ➊
ᐸ__types__.”regconfig”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1322 - PgClassExpression1323{{"PgClassExpression[1323∈138] ➊
ᐸ__types__....ictionary”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1323 - PgClassExpression1324{{"PgClassExpression[1324∈138] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1324 - PgClassExpression1326{{"PgClassExpression[1326∈138] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1326 - PgClassExpression1328{{"PgClassExpression[1328∈138] ➊
ᐸ__types__.”bytea”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1328 - PgClassExpression1329{{"PgClassExpression[1329∈138] ➊
ᐸ__types__.”bytea_array”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1329 - First1333{{"First[1333∈138] ➊"}}:::plan - PgSelectRows1334[["PgSelectRows[1334∈138] ➊"]]:::plan - PgSelectRows1334 --> First1333 - PgSelect1331 --> PgSelectRows1334 - PgSelectSingle1335{{"PgSelectSingle[1335∈138] ➊
ᐸpostᐳ"}}:::plan - First1333 --> PgSelectSingle1335 - First1340{{"First[1340∈138] ➊"}}:::plan - PgSelectRows1341[["PgSelectRows[1341∈138] ➊"]]:::plan - PgSelectRows1341 --> First1340 - PgSelect1338 --> PgSelectRows1341 - PgSelectSingle1342{{"PgSelectSingle[1342∈138] ➊
ᐸpostᐳ"}}:::plan - First1340 --> PgSelectSingle1342 - PgClassExpression1345{{"PgClassExpression[1345∈138] ➊
ᐸ__types__.”ltree”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1345 - PgClassExpression1346{{"PgClassExpression[1346∈138] ➊
ᐸ__types__.”ltree_array”ᐳ"}}:::plan - PgSelectSingle1147 --> PgClassExpression1346 - First1351{{"First[1351∈138] ➊"}}:::plan - PgSelectRows1352[["PgSelectRows[1352∈138] ➊"]]:::plan - PgSelectRows1352 --> First1351 - PgSelect1349 --> PgSelectRows1352 - PgSelectSingle1353{{"PgSelectSingle[1353∈138] ➊
ᐸperson_secretᐳ"}}:::plan - First1351 --> PgSelectSingle1353 - First1357{{"First[1357∈138] ➊"}}:::plan - PgSelectRows1358[["PgSelectRows[1358∈138] ➊"]]:::plan - PgSelectRows1358 --> First1357 - PgSelect1355 --> PgSelectRows1358 - PgSelectSingle1359{{"PgSelectSingle[1359∈138] ➊
ᐸleft_armᐳ"}}:::plan - First1357 --> PgSelectSingle1359 - First1363{{"First[1363∈138] ➊"}}:::plan - PgSelectRows1364[["PgSelectRows[1364∈138] ➊"]]:::plan - PgSelectRows1364 --> First1363 - PgSelect1361 --> PgSelectRows1364 - PgSelectSingle1365{{"PgSelectSingle[1365∈138] ➊
ᐸmy_tableᐳ"}}:::plan - First1363 --> PgSelectSingle1365 - First1369{{"First[1369∈138] ➊"}}:::plan - PgSelectRows1370[["PgSelectRows[1370∈138] ➊"]]:::plan - PgSelectRows1370 --> First1369 - PgSelect1367 --> PgSelectRows1370 - PgSelectSingle1371{{"PgSelectSingle[1371∈138] ➊
ᐸview_tableᐳ"}}:::plan - First1369 --> PgSelectSingle1371 - First1375{{"First[1375∈138] ➊"}}:::plan - PgSelectRows1376[["PgSelectRows[1376∈138] ➊"]]:::plan - PgSelectRows1376 --> First1375 - PgSelect1373 --> PgSelectRows1376 - PgSelectSingle1377{{"PgSelectSingle[1377∈138] ➊
ᐸsimilar_table_1ᐳ"}}:::plan - First1375 --> PgSelectSingle1377 - First1381{{"First[1381∈138] ➊"}}:::plan - PgSelectRows1382[["PgSelectRows[1382∈138] ➊"]]:::plan - PgSelectRows1382 --> First1381 - PgSelect1379 --> PgSelectRows1382 - PgSelectSingle1383{{"PgSelectSingle[1383∈138] ➊
ᐸsimilar_table_2ᐳ"}}:::plan - First1381 --> PgSelectSingle1383 - First1387{{"First[1387∈138] ➊"}}:::plan - PgSelectRows1388[["PgSelectRows[1388∈138] ➊"]]:::plan - PgSelectRows1388 --> First1387 - PgSelect1385 --> PgSelectRows1388 - PgSelectSingle1389{{"PgSelectSingle[1389∈138] ➊
ᐸnull_test_recordᐳ"}}:::plan - First1387 --> PgSelectSingle1389 - First1393{{"First[1393∈138] ➊"}}:::plan - PgSelectRows1394[["PgSelectRows[1394∈138] ➊"]]:::plan - PgSelectRows1394 --> First1393 - PgSelect1391 --> PgSelectRows1394 - PgSelectSingle1395{{"PgSelectSingle[1395∈138] ➊
ᐸissue756ᐳ"}}:::plan - First1393 --> PgSelectSingle1395 - First1399{{"First[1399∈138] ➊"}}:::plan - PgSelectRows1400[["PgSelectRows[1400∈138] ➊"]]:::plan - PgSelectRows1400 --> First1399 - PgSelect1397 --> PgSelectRows1400 - PgSelectSingle1401{{"PgSelectSingle[1401∈138] ➊
ᐸlistsᐳ"}}:::plan - First1399 --> PgSelectSingle1401 - Lambda1080 --> Access3805 - Lambda1080 --> Access3806 - __Item1157[/"__Item[1157∈139]
ᐸ1156ᐳ"\]:::itemplan - PgClassExpression1156 ==> __Item1157 - __Item1161[/"__Item[1161∈140]
ᐸ1160ᐳ"\]:::itemplan - PgClassExpression1160 ==> __Item1161 - Access1165{{"Access[1165∈141] ➊
ᐸ1164.startᐳ"}}:::plan - PgClassExpression1164 --> Access1165 - Access1168{{"Access[1168∈141] ➊
ᐸ1164.endᐳ"}}:::plan - PgClassExpression1164 --> Access1168 - __Item1205[/"__Item[1205∈150]
ᐸ1204ᐳ"\]:::itemplan - PgClassExpression1204 ==> __Item1205 - PgClassExpression1238{{"PgClassExpression[1238∈152] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1237 --> PgClassExpression1238 - PgClassExpression1239{{"PgClassExpression[1239∈152] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1237 --> PgClassExpression1239 - PgClassExpression1240{{"PgClassExpression[1240∈152] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1237 --> PgClassExpression1240 - PgClassExpression1241{{"PgClassExpression[1241∈152] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1237 --> PgClassExpression1241 - PgClassExpression1242{{"PgClassExpression[1242∈152] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1237 --> PgClassExpression1242 - PgClassExpression1243{{"PgClassExpression[1243∈152] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1237 --> PgClassExpression1243 - PgClassExpression1244{{"PgClassExpression[1244∈152] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1237 --> PgClassExpression1244 - PgClassExpression1251{{"PgClassExpression[1251∈153] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1250 --> PgClassExpression1251 - PgClassExpression1252{{"PgClassExpression[1252∈153] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1250 --> PgClassExpression1252 - PgClassExpression1253{{"PgClassExpression[1253∈153] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1250 --> PgClassExpression1253 - PgClassExpression1254{{"PgClassExpression[1254∈153] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1250 --> PgClassExpression1254 - PgClassExpression1255{{"PgClassExpression[1255∈153] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1250 --> PgClassExpression1255 - PgClassExpression1256{{"PgClassExpression[1256∈153] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1250 --> PgClassExpression1256 - PgClassExpression1257{{"PgClassExpression[1257∈153] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1250 --> PgClassExpression1257 - PgClassExpression1265{{"PgClassExpression[1265∈154] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgClassExpression1265{{"PgClassExpression[1265∈31] ➊
ᐸ__post__.”id”ᐳ"}}:::plan PgSelectSingle1264 --> PgClassExpression1265 - PgClassExpression1266{{"PgClassExpression[1266∈154] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgClassExpression1266{{"PgClassExpression[1266∈31] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan PgSelectSingle1264 --> PgClassExpression1266 - PgClassExpression1267{{"PgClassExpression[1267∈154] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1264 --> PgClassExpression1267 - PgClassExpression1268{{"PgClassExpression[1268∈154] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1264 --> PgClassExpression1268 - PgClassExpression1269{{"PgClassExpression[1269∈154] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1264 --> PgClassExpression1269 - PgClassExpression1270{{"PgClassExpression[1270∈154] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1264 --> PgClassExpression1270 - PgClassExpression1271{{"PgClassExpression[1271∈154] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1264 --> PgClassExpression1271 - PgSelect1279[["PgSelect[1279∈155] ➊
ᐸfrmcdc_compoundTypeᐳ
ᐳType"]]:::plan - PgClassExpression1278{{"PgClassExpression[1278∈155] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression1278 --> PgSelect1279 - PgSelect1294[["PgSelect[1294∈155] ➊
ᐸfrmcdc_compoundTypeᐳ
ᐳType"]]:::plan - PgClassExpression1293{{"PgClassExpression[1293∈155] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression1293 --> PgSelect1294 - PgSelectSingle1277 --> PgClassExpression1278 - First1283{{"First[1283∈155] ➊"}}:::plan - PgSelectRows1284[["PgSelectRows[1284∈155] ➊"]]:::plan - PgSelectRows1284 --> First1283 - PgSelect1279 --> PgSelectRows1284 - PgSelectSingle1285{{"PgSelectSingle[1285∈155] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1283 --> PgSelectSingle1285 - PgSelectSingle1277 --> PgClassExpression1293 - First1296{{"First[1296∈155] ➊"}}:::plan - PgSelectRows1297[["PgSelectRows[1297∈155] ➊"]]:::plan - PgSelectRows1297 --> First1296 - PgSelect1294 --> PgSelectRows1297 - PgSelectSingle1298{{"PgSelectSingle[1298∈155] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1296 --> PgSelectSingle1298 - PgClassExpression1306{{"PgClassExpression[1306∈155] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle1277 --> PgClassExpression1306 - PgClassExpression1286{{"PgClassExpression[1286∈156] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1285 --> PgClassExpression1286 - PgClassExpression1287{{"PgClassExpression[1287∈156] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1285 --> PgClassExpression1287 - PgClassExpression1288{{"PgClassExpression[1288∈156] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1285 --> PgClassExpression1288 - PgClassExpression1289{{"PgClassExpression[1289∈156] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1285 --> PgClassExpression1289 - PgClassExpression1290{{"PgClassExpression[1290∈156] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1285 --> PgClassExpression1290 - PgClassExpression1291{{"PgClassExpression[1291∈156] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1285 --> PgClassExpression1291 - PgClassExpression1292{{"PgClassExpression[1292∈156] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1285 --> PgClassExpression1292 - PgClassExpression1299{{"PgClassExpression[1299∈157] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1298 --> PgClassExpression1299 - PgClassExpression1300{{"PgClassExpression[1300∈157] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1298 --> PgClassExpression1300 - PgClassExpression1301{{"PgClassExpression[1301∈157] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1298 --> PgClassExpression1301 - PgClassExpression1302{{"PgClassExpression[1302∈157] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1298 --> PgClassExpression1302 - PgClassExpression1303{{"PgClassExpression[1303∈157] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1298 --> PgClassExpression1303 - PgClassExpression1304{{"PgClassExpression[1304∈157] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1298 --> PgClassExpression1304 - PgClassExpression1305{{"PgClassExpression[1305∈157] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1298 --> PgClassExpression1305 - __Item1325[/"__Item[1325∈159]
ᐸ1324ᐳ"\]:::itemplan - PgClassExpression1324 ==> __Item1325 - __Item1327[/"__Item[1327∈160]
ᐸ1326ᐳ"\]:::itemplan - PgClassExpression1326 ==> __Item1327 - __Item1330[/"__Item[1330∈161]
ᐸ1329ᐳ"\]:::itemplan - PgClassExpression1329 ==> __Item1330 - PgClassExpression1336{{"PgClassExpression[1336∈162] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle1335 --> PgClassExpression1336 - PgClassExpression1337{{"PgClassExpression[1337∈162] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle1335 --> PgClassExpression1337 - PgClassExpression1343{{"PgClassExpression[1343∈163] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle1342 --> PgClassExpression1343 - PgClassExpression1344{{"PgClassExpression[1344∈163] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle1342 --> PgClassExpression1344 - __Item1347[/"__Item[1347∈164]
ᐸ1346ᐳ"\]:::itemplan + First1269{{"First[1269∈31] ➊"}}:::plan + PgSelectRows1270[["PgSelectRows[1270∈31] ➊"]]:::plan + PgSelectRows1270 --> First1269 + PgSelect1267 --> PgSelectRows1270 + PgSelectSingle1271{{"PgSelectSingle[1271∈31] ➊
ᐸpostᐳ"}}:::plan + First1269 --> PgSelectSingle1271 + PgClassExpression1272{{"PgClassExpression[1272∈31] ➊
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle1271 --> PgClassExpression1272 + PgClassExpression1273{{"PgClassExpression[1273∈31] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle1271 --> PgClassExpression1273 + PgClassExpression1274{{"PgClassExpression[1274∈31] ➊
ᐸ__types__.”ltree”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1274 + PgClassExpression1275{{"PgClassExpression[1275∈31] ➊
ᐸ__types__.”ltree_array”ᐳ"}}:::plan + PgSelectSingle1070 --> PgClassExpression1275 + First1280{{"First[1280∈31] ➊"}}:::plan + PgSelectRows1281[["PgSelectRows[1281∈31] ➊"]]:::plan + PgSelectRows1281 --> First1280 + PgSelect1278 --> PgSelectRows1281 + PgSelectSingle1282{{"PgSelectSingle[1282∈31] ➊
ᐸperson_secretᐳ"}}:::plan + First1280 --> PgSelectSingle1282 + First1286{{"First[1286∈31] ➊"}}:::plan + PgSelectRows1287[["PgSelectRows[1287∈31] ➊"]]:::plan + PgSelectRows1287 --> First1286 + PgSelect1284 --> PgSelectRows1287 + PgSelectSingle1288{{"PgSelectSingle[1288∈31] ➊
ᐸleft_armᐳ"}}:::plan + First1286 --> PgSelectSingle1288 + First1292{{"First[1292∈31] ➊"}}:::plan + PgSelectRows1293[["PgSelectRows[1293∈31] ➊"]]:::plan + PgSelectRows1293 --> First1292 + PgSelect1290 --> PgSelectRows1293 + PgSelectSingle1294{{"PgSelectSingle[1294∈31] ➊
ᐸmy_tableᐳ"}}:::plan + First1292 --> PgSelectSingle1294 + First1298{{"First[1298∈31] ➊"}}:::plan + PgSelectRows1299[["PgSelectRows[1299∈31] ➊"]]:::plan + PgSelectRows1299 --> First1298 + PgSelect1296 --> PgSelectRows1299 + PgSelectSingle1300{{"PgSelectSingle[1300∈31] ➊
ᐸview_tableᐳ"}}:::plan + First1298 --> PgSelectSingle1300 + First1304{{"First[1304∈31] ➊"}}:::plan + PgSelectRows1305[["PgSelectRows[1305∈31] ➊"]]:::plan + PgSelectRows1305 --> First1304 + PgSelect1302 --> PgSelectRows1305 + PgSelectSingle1306{{"PgSelectSingle[1306∈31] ➊
ᐸsimilar_table_1ᐳ"}}:::plan + First1304 --> PgSelectSingle1306 + First1310{{"First[1310∈31] ➊"}}:::plan + PgSelectRows1311[["PgSelectRows[1311∈31] ➊"]]:::plan + PgSelectRows1311 --> First1310 + PgSelect1308 --> PgSelectRows1311 + PgSelectSingle1312{{"PgSelectSingle[1312∈31] ➊
ᐸsimilar_table_2ᐳ"}}:::plan + First1310 --> PgSelectSingle1312 + First1316{{"First[1316∈31] ➊"}}:::plan + PgSelectRows1317[["PgSelectRows[1317∈31] ➊"]]:::plan + PgSelectRows1317 --> First1316 + PgSelect1314 --> PgSelectRows1317 + PgSelectSingle1318{{"PgSelectSingle[1318∈31] ➊
ᐸnull_test_recordᐳ"}}:::plan + First1316 --> PgSelectSingle1318 + First1322{{"First[1322∈31] ➊"}}:::plan + PgSelectRows1323[["PgSelectRows[1323∈31] ➊"]]:::plan + PgSelectRows1323 --> First1322 + PgSelect1320 --> PgSelectRows1323 + PgSelectSingle1324{{"PgSelectSingle[1324∈31] ➊
ᐸissue756ᐳ"}}:::plan + First1322 --> PgSelectSingle1324 + First1328{{"First[1328∈31] ➊"}}:::plan + PgSelectRows1329[["PgSelectRows[1329∈31] ➊"]]:::plan + PgSelectRows1329 --> First1328 + PgSelect1326 --> PgSelectRows1329 + PgSelectSingle1330{{"PgSelectSingle[1330∈31] ➊
ᐸlistsᐳ"}}:::plan + First1328 --> PgSelectSingle1330 + Lambda1003 --> Access3689 + Lambda1003 --> Access3690 + __Item1080[/"__Item[1080∈32]
ᐸ1079ᐳ"\]:::itemplan + PgClassExpression1079 ==> __Item1080 + __Item1084[/"__Item[1084∈33]
ᐸ1083ᐳ"\]:::itemplan + PgClassExpression1083 ==> __Item1084 + __Item1128[/"__Item[1128∈34]
ᐸ1127ᐳ"\]:::itemplan + PgClassExpression1127 ==> __Item1128 + __Item1254[/"__Item[1254∈35]
ᐸ1253ᐳ"\]:::itemplan + PgClassExpression1253 ==> __Item1254 + __Item1256[/"__Item[1256∈36]
ᐸ1255ᐳ"\]:::itemplan + PgClassExpression1255 ==> __Item1256 + __Item1259[/"__Item[1259∈37]
ᐸ1258ᐳ"\]:::itemplan + PgClassExpression1258 ==> __Item1259 + __Item1276[/"__Item[1276∈38]
ᐸ1275ᐳ"\]:::itemplan + PgClassExpression1275 ==> __Item1276 + __Item1347[/"__Item[1347∈39]
ᐸ1346ᐳ"\]:::itemplan PgClassExpression1346 ==> __Item1347 - PgSelect1474[["PgSelect[1474∈165] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1473{{"PgClassExpression[1473∈165] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1473 --> PgSelect1474 - PgSelect1489[["PgSelect[1489∈165] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression1488{{"PgClassExpression[1488∈165] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1488 --> PgSelect1489 - PgSelect1495[["PgSelect[1495∈165] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1494{{"PgClassExpression[1494∈165] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression1494 --> PgSelect1495 - PgSelect1508[["PgSelect[1508∈165] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1507{{"PgClassExpression[1507∈165] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression1507 --> PgSelect1508 - PgSelect1522[["PgSelect[1522∈165] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1521{{"PgClassExpression[1521∈165] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1521 --> PgSelect1522 - PgSelect1535[["PgSelect[1535∈165] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression1534{{"PgClassExpression[1534∈165] ➊
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1534 --> PgSelect1535 - PgSelect1593[["PgSelect[1593∈165] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression1409{{"PgClassExpression[1409∈165] ➊
ᐸ__type_fun...”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression1409 --> PgSelect1593 - PgSelect1600[["PgSelect[1600∈165] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression1408{{"PgClassExpression[1408∈165] ➊
ᐸ__type_function__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression1408 --> PgSelect1600 - PgSelectSingle1407 --> PgClassExpression1408 - PgSelectSingle1407 --> PgClassExpression1409 - PgClassExpression1410{{"PgClassExpression[1410∈165] ➊
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1410 - PgClassExpression1411{{"PgClassExpression[1411∈165] ➊
ᐸ__type_fun....”numeric”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1411 - PgClassExpression1412{{"PgClassExpression[1412∈165] ➊
ᐸ__type_fun....”decimal”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1412 - PgClassExpression1413{{"PgClassExpression[1413∈165] ➊
ᐸ__type_fun....”boolean”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1413 - PgClassExpression1414{{"PgClassExpression[1414∈165] ➊
ᐸ__type_fun....”varchar”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1414 - PgClassExpression1415{{"PgClassExpression[1415∈165] ➊
ᐸ__type_fun...n__.”enum”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1415 - PgClassExpression1416{{"PgClassExpression[1416∈165] ➊
ᐸ__type_fun...num_array”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1416 - PgClassExpression1418{{"PgClassExpression[1418∈165] ➊
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1418 - PgClassExpression1419{{"PgClassExpression[1419∈165] ➊
ᐸ__type_fun....”domain2”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1419 - PgClassExpression1420{{"PgClassExpression[1420∈165] ➊
ᐸ__type_fun...ext_array”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1420 - PgClassExpression1422{{"PgClassExpression[1422∈165] ➊
ᐸ__type_fun...n__.”json”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1422 - PgClassExpression1423{{"PgClassExpression[1423∈165] ➊
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1423 - PgClassExpression1424{{"PgClassExpression[1424∈165] ➊
ᐸ__type_fun...ble_range”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1424 - PgClassExpression1431{{"PgClassExpression[1431∈165] ➊
ᐸ__type_fun...”numrange”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1431 - Access1432{{"Access[1432∈165] ➊
ᐸ1431.startᐳ"}}:::plan - PgClassExpression1431 --> Access1432 - Access1435{{"Access[1435∈165] ➊
ᐸ1431.endᐳ"}}:::plan - PgClassExpression1431 --> Access1435 - PgClassExpression1438{{"PgClassExpression[1438∈165] ➊
ᐸ__type_fun...daterange”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1438 - Access1439{{"Access[1439∈165] ➊
ᐸ1438.startᐳ"}}:::plan - PgClassExpression1438 --> Access1439 - Access1442{{"Access[1442∈165] ➊
ᐸ1438.endᐳ"}}:::plan - PgClassExpression1438 --> Access1442 - PgClassExpression1445{{"PgClassExpression[1445∈165] ➊
ᐸ__type_fun...int_range”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1445 - Access1446{{"Access[1446∈165] ➊
ᐸ1445.startᐳ"}}:::plan - PgClassExpression1445 --> Access1446 - Access1449{{"Access[1449∈165] ➊
ᐸ1445.endᐳ"}}:::plan - PgClassExpression1445 --> Access1449 - PgClassExpression1452{{"PgClassExpression[1452∈165] ➊
ᐸ__type_fun...timestamp”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1452 - PgClassExpression1453{{"PgClassExpression[1453∈165] ➊
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1453 - PgClassExpression1454{{"PgClassExpression[1454∈165] ➊
ᐸ__type_fun...n__.”date”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1454 - PgClassExpression1455{{"PgClassExpression[1455∈165] ➊
ᐸ__type_fun...n__.”time”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1455 - PgClassExpression1456{{"PgClassExpression[1456∈165] ➊
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1456 - PgClassExpression1457{{"PgClassExpression[1457∈165] ➊
ᐸ__type_fun...”interval”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1457 - PgClassExpression1464{{"PgClassExpression[1464∈165] ➊
ᐸ__type_fun...val_array”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1464 - PgClassExpression1472{{"PgClassExpression[1472∈165] ➊
ᐸ__type_fun...__.”money”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1472 - PgSelectSingle1407 --> PgClassExpression1473 - First1478{{"First[1478∈165] ➊"}}:::plan - PgSelectRows1479[["PgSelectRows[1479∈165] ➊"]]:::plan - PgSelectRows1479 --> First1478 - PgSelect1474 --> PgSelectRows1479 - PgSelectSingle1480{{"PgSelectSingle[1480∈165] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1478 --> PgSelectSingle1480 - PgClassExpression1481{{"PgClassExpression[1481∈165] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1480 --> PgClassExpression1481 - PgClassExpression1482{{"PgClassExpression[1482∈165] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1480 --> PgClassExpression1482 - PgClassExpression1483{{"PgClassExpression[1483∈165] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1480 --> PgClassExpression1483 - PgClassExpression1484{{"PgClassExpression[1484∈165] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1480 --> PgClassExpression1484 - PgClassExpression1485{{"PgClassExpression[1485∈165] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1480 --> PgClassExpression1485 - PgClassExpression1486{{"PgClassExpression[1486∈165] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1480 --> PgClassExpression1486 - PgClassExpression1487{{"PgClassExpression[1487∈165] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1480 --> PgClassExpression1487 - PgSelectSingle1407 --> PgClassExpression1488 - First1491{{"First[1491∈165] ➊"}}:::plan - PgSelectRows1492[["PgSelectRows[1492∈165] ➊"]]:::plan - PgSelectRows1492 --> First1491 - PgSelect1489 --> PgSelectRows1492 - PgSelectSingle1493{{"PgSelectSingle[1493∈165] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First1491 --> PgSelectSingle1493 - PgSelectSingle1493 --> PgClassExpression1494 - First1497{{"First[1497∈165] ➊"}}:::plan - PgSelectRows1498[["PgSelectRows[1498∈165] ➊"]]:::plan - PgSelectRows1498 --> First1497 - PgSelect1495 --> PgSelectRows1498 - PgSelectSingle1499{{"PgSelectSingle[1499∈165] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1497 --> PgSelectSingle1499 - PgSelectSingle1493 --> PgClassExpression1507 - First1510{{"First[1510∈165] ➊"}}:::plan - PgSelectRows1511[["PgSelectRows[1511∈165] ➊"]]:::plan - PgSelectRows1511 --> First1510 - PgSelect1508 --> PgSelectRows1511 - PgSelectSingle1512{{"PgSelectSingle[1512∈165] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1510 --> PgSelectSingle1512 - PgClassExpression1520{{"PgClassExpression[1520∈165] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle1493 --> PgClassExpression1520 - PgSelectSingle1407 --> PgClassExpression1521 - First1524{{"First[1524∈165] ➊"}}:::plan - PgSelectRows1525[["PgSelectRows[1525∈165] ➊"]]:::plan - PgSelectRows1525 --> First1524 - PgSelect1522 --> PgSelectRows1525 - PgSelectSingle1526{{"PgSelectSingle[1526∈165] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1524 --> PgSelectSingle1526 - PgSelectSingle1407 --> PgClassExpression1534 - First1537{{"First[1537∈165] ➊"}}:::plan - PgSelectRows1538[["PgSelectRows[1538∈165] ➊"]]:::plan - PgSelectRows1538 --> First1537 - PgSelect1535 --> PgSelectRows1538 - PgSelectSingle1539{{"PgSelectSingle[1539∈165] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First1537 --> PgSelectSingle1539 - PgClassExpression1569{{"PgClassExpression[1569∈165] ➊
ᐸ__type_fun...__.”point”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1569 - PgClassExpression1572{{"PgClassExpression[1572∈165] ➊
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1572 - PgClassExpression1575{{"PgClassExpression[1575∈165] ➊
ᐸ__type_fun...n__.”inet”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1575 - PgClassExpression1576{{"PgClassExpression[1576∈165] ➊
ᐸ__type_fun...n__.”cidr”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1576 - PgClassExpression1577{{"PgClassExpression[1577∈165] ➊
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1577 - PgClassExpression1578{{"PgClassExpression[1578∈165] ➊
ᐸ__type_fun....”regproc”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1578 - PgClassExpression1579{{"PgClassExpression[1579∈165] ➊
ᐸ__type_fun...procedure”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1579 - PgClassExpression1580{{"PgClassExpression[1580∈165] ➊
ᐸ__type_fun....”regoper”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1580 - PgClassExpression1581{{"PgClassExpression[1581∈165] ➊
ᐸ__type_fun...goperator”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1581 - PgClassExpression1582{{"PgClassExpression[1582∈165] ➊
ᐸ__type_fun...”regclass”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1582 - PgClassExpression1583{{"PgClassExpression[1583∈165] ➊
ᐸ__type_fun....”regtype”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1583 - PgClassExpression1584{{"PgClassExpression[1584∈165] ➊
ᐸ__type_fun...regconfig”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1584 - PgClassExpression1585{{"PgClassExpression[1585∈165] ➊
ᐸ__type_fun...ictionary”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1585 - PgClassExpression1586{{"PgClassExpression[1586∈165] ➊
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1586 - PgClassExpression1588{{"PgClassExpression[1588∈165] ➊
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1588 - PgClassExpression1590{{"PgClassExpression[1590∈165] ➊
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1590 - PgClassExpression1591{{"PgClassExpression[1591∈165] ➊
ᐸ__type_fun...tea_array”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1591 - First1595{{"First[1595∈165] ➊"}}:::plan - PgSelectRows1596[["PgSelectRows[1596∈165] ➊"]]:::plan - PgSelectRows1596 --> First1595 - PgSelect1593 --> PgSelectRows1596 - PgSelectSingle1597{{"PgSelectSingle[1597∈165] ➊
ᐸpostᐳ"}}:::plan - First1595 --> PgSelectSingle1597 - First1602{{"First[1602∈165] ➊"}}:::plan - PgSelectRows1603[["PgSelectRows[1603∈165] ➊"]]:::plan - PgSelectRows1603 --> First1602 - PgSelect1600 --> PgSelectRows1603 - PgSelectSingle1604{{"PgSelectSingle[1604∈165] ➊
ᐸpostᐳ"}}:::plan - First1602 --> PgSelectSingle1604 - PgClassExpression1607{{"PgClassExpression[1607∈165] ➊
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1607 - PgClassExpression1608{{"PgClassExpression[1608∈165] ➊
ᐸ__type_fun...ree_array”ᐳ"}}:::plan - PgSelectSingle1407 --> PgClassExpression1608 - __Item1417[/"__Item[1417∈166]
ᐸ1416ᐳ"\]:::itemplan - PgClassExpression1416 ==> __Item1417 - __Item1421[/"__Item[1421∈167]
ᐸ1420ᐳ"\]:::itemplan - PgClassExpression1420 ==> __Item1421 - Access1425{{"Access[1425∈168] ➊
ᐸ1424.startᐳ"}}:::plan - PgClassExpression1424 --> Access1425 - Access1428{{"Access[1428∈168] ➊
ᐸ1424.endᐳ"}}:::plan - PgClassExpression1424 --> Access1428 - __Item1465[/"__Item[1465∈177]
ᐸ1464ᐳ"\]:::itemplan - PgClassExpression1464 ==> __Item1465 - PgClassExpression1500{{"PgClassExpression[1500∈179] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1499 --> PgClassExpression1500 - PgClassExpression1501{{"PgClassExpression[1501∈179] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1499 --> PgClassExpression1501 - PgClassExpression1502{{"PgClassExpression[1502∈179] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1499 --> PgClassExpression1502 - PgClassExpression1503{{"PgClassExpression[1503∈179] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1499 --> PgClassExpression1503 - PgClassExpression1504{{"PgClassExpression[1504∈179] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1499 --> PgClassExpression1504 - PgClassExpression1505{{"PgClassExpression[1505∈179] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1499 --> PgClassExpression1505 - PgClassExpression1506{{"PgClassExpression[1506∈179] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1499 --> PgClassExpression1506 - PgClassExpression1513{{"PgClassExpression[1513∈180] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1512 --> PgClassExpression1513 - PgClassExpression1514{{"PgClassExpression[1514∈180] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1512 --> PgClassExpression1514 - PgClassExpression1515{{"PgClassExpression[1515∈180] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1512 --> PgClassExpression1515 - PgClassExpression1516{{"PgClassExpression[1516∈180] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1512 --> PgClassExpression1516 - PgClassExpression1517{{"PgClassExpression[1517∈180] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1512 --> PgClassExpression1517 - PgClassExpression1518{{"PgClassExpression[1518∈180] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1512 --> PgClassExpression1518 - PgClassExpression1519{{"PgClassExpression[1519∈180] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1512 --> PgClassExpression1519 - PgClassExpression1527{{"PgClassExpression[1527∈181] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1526 --> PgClassExpression1527 - PgClassExpression1528{{"PgClassExpression[1528∈181] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1526 --> PgClassExpression1528 - PgClassExpression1529{{"PgClassExpression[1529∈181] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1526 --> PgClassExpression1529 - PgClassExpression1530{{"PgClassExpression[1530∈181] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1526 --> PgClassExpression1530 - PgClassExpression1531{{"PgClassExpression[1531∈181] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1526 --> PgClassExpression1531 - PgClassExpression1532{{"PgClassExpression[1532∈181] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1526 --> PgClassExpression1532 - PgClassExpression1533{{"PgClassExpression[1533∈181] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1526 --> PgClassExpression1533 - PgSelect1541[["PgSelect[1541∈182] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1540{{"PgClassExpression[1540∈182] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression1540 --> PgSelect1541 - PgSelect1556[["PgSelect[1556∈182] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1555{{"PgClassExpression[1555∈182] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression1555 --> PgSelect1556 - PgSelectSingle1539 --> PgClassExpression1540 - First1545{{"First[1545∈182] ➊"}}:::plan - PgSelectRows1546[["PgSelectRows[1546∈182] ➊"]]:::plan - PgSelectRows1546 --> First1545 - PgSelect1541 --> PgSelectRows1546 - PgSelectSingle1547{{"PgSelectSingle[1547∈182] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1545 --> PgSelectSingle1547 - PgSelectSingle1539 --> PgClassExpression1555 - First1558{{"First[1558∈182] ➊"}}:::plan - PgSelectRows1559[["PgSelectRows[1559∈182] ➊"]]:::plan - PgSelectRows1559 --> First1558 - PgSelect1556 --> PgSelectRows1559 - PgSelectSingle1560{{"PgSelectSingle[1560∈182] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1558 --> PgSelectSingle1560 - PgClassExpression1568{{"PgClassExpression[1568∈182] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle1539 --> PgClassExpression1568 - PgClassExpression1548{{"PgClassExpression[1548∈183] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1547 --> PgClassExpression1548 - PgClassExpression1549{{"PgClassExpression[1549∈183] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1547 --> PgClassExpression1549 - PgClassExpression1550{{"PgClassExpression[1550∈183] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1547 --> PgClassExpression1550 - PgClassExpression1551{{"PgClassExpression[1551∈183] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1547 --> PgClassExpression1551 - PgClassExpression1552{{"PgClassExpression[1552∈183] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1547 --> PgClassExpression1552 - PgClassExpression1553{{"PgClassExpression[1553∈183] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1547 --> PgClassExpression1553 - PgClassExpression1554{{"PgClassExpression[1554∈183] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1547 --> PgClassExpression1554 - PgClassExpression1561{{"PgClassExpression[1561∈184] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1560 --> PgClassExpression1561 - PgClassExpression1562{{"PgClassExpression[1562∈184] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1560 --> PgClassExpression1562 - PgClassExpression1563{{"PgClassExpression[1563∈184] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1560 --> PgClassExpression1563 - PgClassExpression1564{{"PgClassExpression[1564∈184] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1560 --> PgClassExpression1564 - PgClassExpression1565{{"PgClassExpression[1565∈184] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1560 --> PgClassExpression1565 - PgClassExpression1566{{"PgClassExpression[1566∈184] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1560 --> PgClassExpression1566 - PgClassExpression1567{{"PgClassExpression[1567∈184] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1560 --> PgClassExpression1567 - __Item1587[/"__Item[1587∈186]
ᐸ1586ᐳ"\]:::itemplan - PgClassExpression1586 ==> __Item1587 - __Item1589[/"__Item[1589∈187]
ᐸ1588ᐳ"\]:::itemplan - PgClassExpression1588 ==> __Item1589 - __Item1592[/"__Item[1592∈188]
ᐸ1591ᐳ"\]:::itemplan - PgClassExpression1591 ==> __Item1592 - PgClassExpression1598{{"PgClassExpression[1598∈189] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle1597 --> PgClassExpression1598 - PgClassExpression1599{{"PgClassExpression[1599∈189] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle1597 --> PgClassExpression1599 - PgClassExpression1605{{"PgClassExpression[1605∈190] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle1604 --> PgClassExpression1605 - PgClassExpression1606{{"PgClassExpression[1606∈190] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle1604 --> PgClassExpression1606 - __Item1609[/"__Item[1609∈191]
ᐸ1608ᐳ"\]:::itemplan - PgClassExpression1608 ==> __Item1609 - __Item1613[/"__Item[1613∈192]
ᐸ1612ᐳ"\]:::itemplan - PgSelectRows1612 ==> __Item1613 - PgSelectSingle1614{{"PgSelectSingle[1614∈192]
ᐸtype_function_listᐳ"}}:::plan - __Item1613 --> PgSelectSingle1614 - PgSelect1681[["PgSelect[1681∈193]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1680{{"PgClassExpression[1680∈193]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1680 --> PgSelect1681 - PgSelect1696[["PgSelect[1696∈193]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression1695{{"PgClassExpression[1695∈193]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1695 --> PgSelect1696 - PgSelect1702[["PgSelect[1702∈193]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1701{{"PgClassExpression[1701∈193]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression1701 --> PgSelect1702 - PgSelect1715[["PgSelect[1715∈193]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1714{{"PgClassExpression[1714∈193]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression1714 --> PgSelect1715 - PgSelect1729[["PgSelect[1729∈193]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1728{{"PgClassExpression[1728∈193]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1728 --> PgSelect1729 - PgSelect1742[["PgSelect[1742∈193]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression1741{{"PgClassExpression[1741∈193]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1741 --> PgSelect1742 - PgSelect1800[["PgSelect[1800∈193]
ᐸpostᐳ"]]:::plan - PgClassExpression1616{{"PgClassExpression[1616∈193]
ᐸ__type_fun...”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression1616 --> PgSelect1800 - PgSelect1807[["PgSelect[1807∈193]
ᐸpostᐳ"]]:::plan - PgClassExpression1615{{"PgClassExpression[1615∈193]
ᐸ__type_fun...ist__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression1615 --> PgSelect1807 - PgSelectSingle1614 --> PgClassExpression1615 - PgSelectSingle1614 --> PgClassExpression1616 - PgClassExpression1617{{"PgClassExpression[1617∈193]
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1617 - PgClassExpression1618{{"PgClassExpression[1618∈193]
ᐸ__type_fun....”numeric”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1618 - PgClassExpression1619{{"PgClassExpression[1619∈193]
ᐸ__type_fun....”decimal”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1619 - PgClassExpression1620{{"PgClassExpression[1620∈193]
ᐸ__type_fun....”boolean”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1620 - PgClassExpression1621{{"PgClassExpression[1621∈193]
ᐸ__type_fun....”varchar”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1621 - PgClassExpression1622{{"PgClassExpression[1622∈193]
ᐸ__type_fun...t__.”enum”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1622 - PgClassExpression1623{{"PgClassExpression[1623∈193]
ᐸ__type_fun...num_array”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1623 - PgClassExpression1625{{"PgClassExpression[1625∈193]
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1625 - PgClassExpression1626{{"PgClassExpression[1626∈193]
ᐸ__type_fun....”domain2”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1626 - PgClassExpression1627{{"PgClassExpression[1627∈193]
ᐸ__type_fun...ext_array”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1627 - PgClassExpression1629{{"PgClassExpression[1629∈193]
ᐸ__type_fun...t__.”json”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1629 - PgClassExpression1630{{"PgClassExpression[1630∈193]
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1630 - PgClassExpression1631{{"PgClassExpression[1631∈193]
ᐸ__type_fun...ble_range”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1631 - PgClassExpression1638{{"PgClassExpression[1638∈193]
ᐸ__type_fun...”numrange”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1638 - Access1639{{"Access[1639∈193]
ᐸ1638.startᐳ"}}:::plan - PgClassExpression1638 --> Access1639 - Access1642{{"Access[1642∈193]
ᐸ1638.endᐳ"}}:::plan - PgClassExpression1638 --> Access1642 - PgClassExpression1645{{"PgClassExpression[1645∈193]
ᐸ__type_fun...daterange”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1645 - Access1646{{"Access[1646∈193]
ᐸ1645.startᐳ"}}:::plan - PgClassExpression1645 --> Access1646 - Access1649{{"Access[1649∈193]
ᐸ1645.endᐳ"}}:::plan - PgClassExpression1645 --> Access1649 - PgClassExpression1652{{"PgClassExpression[1652∈193]
ᐸ__type_fun...int_range”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1652 - Access1653{{"Access[1653∈193]
ᐸ1652.startᐳ"}}:::plan - PgClassExpression1652 --> Access1653 - Access1656{{"Access[1656∈193]
ᐸ1652.endᐳ"}}:::plan - PgClassExpression1652 --> Access1656 - PgClassExpression1659{{"PgClassExpression[1659∈193]
ᐸ__type_fun...timestamp”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1659 - PgClassExpression1660{{"PgClassExpression[1660∈193]
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1660 - PgClassExpression1661{{"PgClassExpression[1661∈193]
ᐸ__type_fun...t__.”date”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1661 - PgClassExpression1662{{"PgClassExpression[1662∈193]
ᐸ__type_fun...t__.”time”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1662 - PgClassExpression1663{{"PgClassExpression[1663∈193]
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1663 - PgClassExpression1664{{"PgClassExpression[1664∈193]
ᐸ__type_fun...”interval”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1664 - PgClassExpression1671{{"PgClassExpression[1671∈193]
ᐸ__type_fun...val_array”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1671 - PgClassExpression1679{{"PgClassExpression[1679∈193]
ᐸ__type_fun...__.”money”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1679 - PgSelectSingle1614 --> PgClassExpression1680 - First1685{{"First[1685∈193]"}}:::plan - PgSelectRows1686[["PgSelectRows[1686∈193]"]]:::plan - PgSelectRows1686 --> First1685 - PgSelect1681 --> PgSelectRows1686 - PgSelectSingle1687{{"PgSelectSingle[1687∈193]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1685 --> PgSelectSingle1687 - PgClassExpression1688{{"PgClassExpression[1688∈193]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1687 --> PgClassExpression1688 - PgClassExpression1689{{"PgClassExpression[1689∈193]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1687 --> PgClassExpression1689 - PgClassExpression1690{{"PgClassExpression[1690∈193]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1687 --> PgClassExpression1690 - PgClassExpression1691{{"PgClassExpression[1691∈193]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1687 --> PgClassExpression1691 - PgClassExpression1692{{"PgClassExpression[1692∈193]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1687 --> PgClassExpression1692 - PgClassExpression1693{{"PgClassExpression[1693∈193]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1687 --> PgClassExpression1693 - PgClassExpression1694{{"PgClassExpression[1694∈193]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1687 --> PgClassExpression1694 - PgSelectSingle1614 --> PgClassExpression1695 - First1698{{"First[1698∈193]"}}:::plan - PgSelectRows1699[["PgSelectRows[1699∈193]"]]:::plan - PgSelectRows1699 --> First1698 - PgSelect1696 --> PgSelectRows1699 - PgSelectSingle1700{{"PgSelectSingle[1700∈193]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First1698 --> PgSelectSingle1700 - PgSelectSingle1700 --> PgClassExpression1701 - First1704{{"First[1704∈193]"}}:::plan - PgSelectRows1705[["PgSelectRows[1705∈193]"]]:::plan - PgSelectRows1705 --> First1704 - PgSelect1702 --> PgSelectRows1705 - PgSelectSingle1706{{"PgSelectSingle[1706∈193]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1704 --> PgSelectSingle1706 - PgSelectSingle1700 --> PgClassExpression1714 - First1717{{"First[1717∈193]"}}:::plan - PgSelectRows1718[["PgSelectRows[1718∈193]"]]:::plan - PgSelectRows1718 --> First1717 - PgSelect1715 --> PgSelectRows1718 - PgSelectSingle1719{{"PgSelectSingle[1719∈193]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1717 --> PgSelectSingle1719 - PgClassExpression1727{{"PgClassExpression[1727∈193]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle1700 --> PgClassExpression1727 - PgSelectSingle1614 --> PgClassExpression1728 - First1731{{"First[1731∈193]"}}:::plan - PgSelectRows1732[["PgSelectRows[1732∈193]"]]:::plan - PgSelectRows1732 --> First1731 - PgSelect1729 --> PgSelectRows1732 - PgSelectSingle1733{{"PgSelectSingle[1733∈193]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1731 --> PgSelectSingle1733 - PgSelectSingle1614 --> PgClassExpression1741 - First1744{{"First[1744∈193]"}}:::plan - PgSelectRows1745[["PgSelectRows[1745∈193]"]]:::plan - PgSelectRows1745 --> First1744 - PgSelect1742 --> PgSelectRows1745 - PgSelectSingle1746{{"PgSelectSingle[1746∈193]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First1744 --> PgSelectSingle1746 - PgClassExpression1776{{"PgClassExpression[1776∈193]
ᐸ__type_fun...__.”point”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1776 - PgClassExpression1779{{"PgClassExpression[1779∈193]
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1779 - PgClassExpression1782{{"PgClassExpression[1782∈193]
ᐸ__type_fun...t__.”inet”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1782 - PgClassExpression1783{{"PgClassExpression[1783∈193]
ᐸ__type_fun...t__.”cidr”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1783 - PgClassExpression1784{{"PgClassExpression[1784∈193]
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1784 - PgClassExpression1785{{"PgClassExpression[1785∈193]
ᐸ__type_fun....”regproc”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1785 - PgClassExpression1786{{"PgClassExpression[1786∈193]
ᐸ__type_fun...procedure”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1786 - PgClassExpression1787{{"PgClassExpression[1787∈193]
ᐸ__type_fun....”regoper”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1787 - PgClassExpression1788{{"PgClassExpression[1788∈193]
ᐸ__type_fun...goperator”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1788 - PgClassExpression1789{{"PgClassExpression[1789∈193]
ᐸ__type_fun...”regclass”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1789 - PgClassExpression1790{{"PgClassExpression[1790∈193]
ᐸ__type_fun....”regtype”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1790 - PgClassExpression1791{{"PgClassExpression[1791∈193]
ᐸ__type_fun...regconfig”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1791 - PgClassExpression1792{{"PgClassExpression[1792∈193]
ᐸ__type_fun...ictionary”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1792 - PgClassExpression1793{{"PgClassExpression[1793∈193]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1793 - PgClassExpression1795{{"PgClassExpression[1795∈193]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1795 - PgClassExpression1797{{"PgClassExpression[1797∈193]
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1797 - PgClassExpression1798{{"PgClassExpression[1798∈193]
ᐸ__type_fun...tea_array”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1798 - First1802{{"First[1802∈193]"}}:::plan - PgSelectRows1803[["PgSelectRows[1803∈193]"]]:::plan - PgSelectRows1803 --> First1802 - PgSelect1800 --> PgSelectRows1803 - PgSelectSingle1804{{"PgSelectSingle[1804∈193]
ᐸpostᐳ"}}:::plan - First1802 --> PgSelectSingle1804 - First1809{{"First[1809∈193]"}}:::plan - PgSelectRows1810[["PgSelectRows[1810∈193]"]]:::plan - PgSelectRows1810 --> First1809 - PgSelect1807 --> PgSelectRows1810 - PgSelectSingle1811{{"PgSelectSingle[1811∈193]
ᐸpostᐳ"}}:::plan - First1809 --> PgSelectSingle1811 - PgClassExpression1814{{"PgClassExpression[1814∈193]
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1814 - PgClassExpression1815{{"PgClassExpression[1815∈193]
ᐸ__type_fun...ree_array”ᐳ"}}:::plan - PgSelectSingle1614 --> PgClassExpression1815 - __Item1624[/"__Item[1624∈194]
ᐸ1623ᐳ"\]:::itemplan - PgClassExpression1623 ==> __Item1624 - __Item1628[/"__Item[1628∈195]
ᐸ1627ᐳ"\]:::itemplan - PgClassExpression1627 ==> __Item1628 - Access1632{{"Access[1632∈196]
ᐸ1631.startᐳ"}}:::plan - PgClassExpression1631 --> Access1632 - Access1635{{"Access[1635∈196]
ᐸ1631.endᐳ"}}:::plan - PgClassExpression1631 --> Access1635 - __Item1672[/"__Item[1672∈205]
ᐸ1671ᐳ"\]:::itemplan - PgClassExpression1671 ==> __Item1672 - PgClassExpression1707{{"PgClassExpression[1707∈207]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1706 --> PgClassExpression1707 - PgClassExpression1708{{"PgClassExpression[1708∈207]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1706 --> PgClassExpression1708 - PgClassExpression1709{{"PgClassExpression[1709∈207]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1706 --> PgClassExpression1709 - PgClassExpression1710{{"PgClassExpression[1710∈207]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1706 --> PgClassExpression1710 - PgClassExpression1711{{"PgClassExpression[1711∈207]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1706 --> PgClassExpression1711 - PgClassExpression1712{{"PgClassExpression[1712∈207]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1706 --> PgClassExpression1712 - PgClassExpression1713{{"PgClassExpression[1713∈207]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1706 --> PgClassExpression1713 - PgClassExpression1720{{"PgClassExpression[1720∈208]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1719 --> PgClassExpression1720 - PgClassExpression1721{{"PgClassExpression[1721∈208]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1719 --> PgClassExpression1721 - PgClassExpression1722{{"PgClassExpression[1722∈208]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1719 --> PgClassExpression1722 - PgClassExpression1723{{"PgClassExpression[1723∈208]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1719 --> PgClassExpression1723 - PgClassExpression1724{{"PgClassExpression[1724∈208]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1719 --> PgClassExpression1724 - PgClassExpression1725{{"PgClassExpression[1725∈208]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1719 --> PgClassExpression1725 - PgClassExpression1726{{"PgClassExpression[1726∈208]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1719 --> PgClassExpression1726 - PgClassExpression1734{{"PgClassExpression[1734∈209]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1733 --> PgClassExpression1734 - PgClassExpression1735{{"PgClassExpression[1735∈209]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1733 --> PgClassExpression1735 - PgClassExpression1736{{"PgClassExpression[1736∈209]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1733 --> PgClassExpression1736 - PgClassExpression1737{{"PgClassExpression[1737∈209]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1733 --> PgClassExpression1737 - PgClassExpression1738{{"PgClassExpression[1738∈209]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1733 --> PgClassExpression1738 - PgClassExpression1739{{"PgClassExpression[1739∈209]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1733 --> PgClassExpression1739 - PgClassExpression1740{{"PgClassExpression[1740∈209]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1733 --> PgClassExpression1740 - PgSelect1748[["PgSelect[1748∈210]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1747{{"PgClassExpression[1747∈210]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression1747 --> PgSelect1748 - PgSelect1763[["PgSelect[1763∈210]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1762{{"PgClassExpression[1762∈210]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression1762 --> PgSelect1763 - PgSelectSingle1746 --> PgClassExpression1747 - First1752{{"First[1752∈210]"}}:::plan - PgSelectRows1753[["PgSelectRows[1753∈210]"]]:::plan - PgSelectRows1753 --> First1752 - PgSelect1748 --> PgSelectRows1753 - PgSelectSingle1754{{"PgSelectSingle[1754∈210]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1752 --> PgSelectSingle1754 - PgSelectSingle1746 --> PgClassExpression1762 - First1765{{"First[1765∈210]"}}:::plan - PgSelectRows1766[["PgSelectRows[1766∈210]"]]:::plan - PgSelectRows1766 --> First1765 - PgSelect1763 --> PgSelectRows1766 - PgSelectSingle1767{{"PgSelectSingle[1767∈210]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1765 --> PgSelectSingle1767 - PgClassExpression1775{{"PgClassExpression[1775∈210]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle1746 --> PgClassExpression1775 - PgClassExpression1755{{"PgClassExpression[1755∈211]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1754 --> PgClassExpression1755 - PgClassExpression1756{{"PgClassExpression[1756∈211]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1754 --> PgClassExpression1756 - PgClassExpression1757{{"PgClassExpression[1757∈211]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1754 --> PgClassExpression1757 - PgClassExpression1758{{"PgClassExpression[1758∈211]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1754 --> PgClassExpression1758 - PgClassExpression1759{{"PgClassExpression[1759∈211]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1754 --> PgClassExpression1759 - PgClassExpression1760{{"PgClassExpression[1760∈211]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1754 --> PgClassExpression1760 - PgClassExpression1761{{"PgClassExpression[1761∈211]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1754 --> PgClassExpression1761 - PgClassExpression1768{{"PgClassExpression[1768∈212]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1767 --> PgClassExpression1768 - PgClassExpression1769{{"PgClassExpression[1769∈212]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1767 --> PgClassExpression1769 - PgClassExpression1770{{"PgClassExpression[1770∈212]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1767 --> PgClassExpression1770 - PgClassExpression1771{{"PgClassExpression[1771∈212]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1767 --> PgClassExpression1771 - PgClassExpression1772{{"PgClassExpression[1772∈212]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1767 --> PgClassExpression1772 - PgClassExpression1773{{"PgClassExpression[1773∈212]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1767 --> PgClassExpression1773 - PgClassExpression1774{{"PgClassExpression[1774∈212]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1767 --> PgClassExpression1774 - __Item1794[/"__Item[1794∈214]
ᐸ1793ᐳ"\]:::itemplan - PgClassExpression1793 ==> __Item1794 - __Item1796[/"__Item[1796∈215]
ᐸ1795ᐳ"\]:::itemplan - PgClassExpression1795 ==> __Item1796 - __Item1799[/"__Item[1799∈216]
ᐸ1798ᐳ"\]:::itemplan - PgClassExpression1798 ==> __Item1799 - PgClassExpression1805{{"PgClassExpression[1805∈217]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle1804 --> PgClassExpression1805 - PgClassExpression1806{{"PgClassExpression[1806∈217]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle1804 --> PgClassExpression1806 - PgClassExpression1812{{"PgClassExpression[1812∈218]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle1811 --> PgClassExpression1812 - PgClassExpression1813{{"PgClassExpression[1813∈218]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle1811 --> PgClassExpression1813 - __Item1816[/"__Item[1816∈219]
ᐸ1815ᐳ"\]:::itemplan - PgClassExpression1815 ==> __Item1816 - Object2252{{"Object[2252∈220] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access2247{{"Access[2247∈220] ➊
ᐸ1820.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access2247 --> Object2252 - Object2248{{"Object[2248∈220] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access2247 --> Object2248 - PgSelect1820[["PgSelect[1820∈220] ➊
ᐸtype_function_connection+1ᐳ"]]:::plan - Object12 & Connection1819 --> PgSelect1820 - __ListTransform2027[["__ListTransform[2027∈220] ➊
ᐸeach:2026ᐳ"]]:::plan - PgSelectRows1821[["PgSelectRows[1821∈220] ➊"]]:::plan - PgSelectRows1821 & PgSelect1820 --> __ListTransform2027 - PgSelect2238[["PgSelect[2238∈220] ➊
ᐸtype_function_connection(aggregate)ᐳ"]]:::plan - Object12 & Connection1819 --> PgSelect2238 - PgCursor2259{{"PgCursor[2259∈220] ➊"}}:::plan - PgSelectSingle2257{{"PgSelectSingle[2257∈220] ➊
ᐸtype_function_connectionᐳ"}}:::plan - Access2034{{"Access[2034∈220] ➊
ᐸ1820.cursorDetailsᐳ"}}:::plan - PgSelectSingle2257 & Access2034 --> PgCursor2259 - PgCursor2265{{"PgCursor[2265∈220] ➊"}}:::plan - PgSelectSingle2263{{"PgSelectSingle[2263∈220] ➊
ᐸtype_function_connectionᐳ"}}:::plan - PgSelectSingle2263 & Access2034 --> PgCursor2265 - PgSelect1820 --> PgSelectRows1821 - PgSelect1820 --> Access2034 - First2239{{"First[2239∈220] ➊"}}:::plan - PgSelectRows2240[["PgSelectRows[2240∈220] ➊"]]:::plan - PgSelectRows2240 --> First2239 - PgSelect2238 --> PgSelectRows2240 - PgSelectSingle2241{{"PgSelectSingle[2241∈220] ➊
ᐸtype_function_connectionᐳ"}}:::plan - First2239 --> PgSelectSingle2241 - PgClassExpression2242{{"PgClassExpression[2242∈220] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle2241 --> PgClassExpression2242 - PgPageInfo2244{{"PgPageInfo[2244∈220] ➊"}}:::plan - Connection1819 --> PgPageInfo2244 - PgSelect1820 --> Access2247 - Lambda2249{{"Lambda[2249∈220] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object2248 --> Lambda2249 - Lambda2253{{"Lambda[2253∈220] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object2252 --> Lambda2253 - First2255{{"First[2255∈220] ➊"}}:::plan - PgSelectRows1821 --> First2255 - First2255 --> PgSelectSingle2257 - Last2261{{"Last[2261∈220] ➊"}}:::plan - PgSelectRows1821 --> Last2261 - Last2261 --> PgSelectSingle2263 - __Item1822[/"__Item[1822∈221]
ᐸ1821ᐳ"\]:::itemplan - PgSelectRows1821 ==> __Item1822 - PgSelectSingle1823{{"PgSelectSingle[1823∈221]
ᐸtype_function_connectionᐳ"}}:::plan - __Item1822 --> PgSelectSingle1823 - PgSelect1890[["PgSelect[1890∈222]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1889{{"PgClassExpression[1889∈222]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1889 --> PgSelect1890 - PgSelect1905[["PgSelect[1905∈222]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression1904{{"PgClassExpression[1904∈222]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1904 --> PgSelect1905 - PgSelect1911[["PgSelect[1911∈222]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1910{{"PgClassExpression[1910∈222]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression1910 --> PgSelect1911 - PgSelect1924[["PgSelect[1924∈222]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1923{{"PgClassExpression[1923∈222]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression1923 --> PgSelect1924 - PgSelect1938[["PgSelect[1938∈222]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1937{{"PgClassExpression[1937∈222]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1937 --> PgSelect1938 - PgSelect1951[["PgSelect[1951∈222]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression1950{{"PgClassExpression[1950∈222]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression1950 --> PgSelect1951 - PgSelect2009[["PgSelect[2009∈222]
ᐸpostᐳ"]]:::plan - PgClassExpression1825{{"PgClassExpression[1825∈222]
ᐸ__type_fun...”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression1825 --> PgSelect2009 - PgSelect2016[["PgSelect[2016∈222]
ᐸpostᐳ"]]:::plan - PgClassExpression1824{{"PgClassExpression[1824∈222]
ᐸ__type_fun...ion__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression1824 --> PgSelect2016 - PgSelectSingle1823 --> PgClassExpression1824 - PgSelectSingle1823 --> PgClassExpression1825 - PgClassExpression1826{{"PgClassExpression[1826∈222]
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1826 - PgClassExpression1827{{"PgClassExpression[1827∈222]
ᐸ__type_fun....”numeric”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1827 - PgClassExpression1828{{"PgClassExpression[1828∈222]
ᐸ__type_fun....”decimal”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1828 - PgClassExpression1829{{"PgClassExpression[1829∈222]
ᐸ__type_fun....”boolean”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1829 - PgClassExpression1830{{"PgClassExpression[1830∈222]
ᐸ__type_fun....”varchar”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1830 - PgClassExpression1831{{"PgClassExpression[1831∈222]
ᐸ__type_fun...n__.”enum”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1831 - PgClassExpression1832{{"PgClassExpression[1832∈222]
ᐸ__type_fun...num_array”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1832 - PgClassExpression1834{{"PgClassExpression[1834∈222]
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1834 - PgClassExpression1835{{"PgClassExpression[1835∈222]
ᐸ__type_fun....”domain2”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1835 - PgClassExpression1836{{"PgClassExpression[1836∈222]
ᐸ__type_fun...ext_array”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1836 - PgClassExpression1838{{"PgClassExpression[1838∈222]
ᐸ__type_fun...n__.”json”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1838 - PgClassExpression1839{{"PgClassExpression[1839∈222]
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1839 - PgClassExpression1840{{"PgClassExpression[1840∈222]
ᐸ__type_fun...ble_range”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1840 - PgClassExpression1847{{"PgClassExpression[1847∈222]
ᐸ__type_fun...”numrange”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1847 - Access1848{{"Access[1848∈222]
ᐸ1847.startᐳ"}}:::plan - PgClassExpression1847 --> Access1848 - Access1851{{"Access[1851∈222]
ᐸ1847.endᐳ"}}:::plan - PgClassExpression1847 --> Access1851 - PgClassExpression1854{{"PgClassExpression[1854∈222]
ᐸ__type_fun...daterange”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1854 - Access1855{{"Access[1855∈222]
ᐸ1854.startᐳ"}}:::plan - PgClassExpression1854 --> Access1855 - Access1858{{"Access[1858∈222]
ᐸ1854.endᐳ"}}:::plan - PgClassExpression1854 --> Access1858 - PgClassExpression1861{{"PgClassExpression[1861∈222]
ᐸ__type_fun...int_range”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1861 - Access1862{{"Access[1862∈222]
ᐸ1861.startᐳ"}}:::plan - PgClassExpression1861 --> Access1862 - Access1865{{"Access[1865∈222]
ᐸ1861.endᐳ"}}:::plan - PgClassExpression1861 --> Access1865 - PgClassExpression1868{{"PgClassExpression[1868∈222]
ᐸ__type_fun...timestamp”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1868 - PgClassExpression1869{{"PgClassExpression[1869∈222]
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1869 - PgClassExpression1870{{"PgClassExpression[1870∈222]
ᐸ__type_fun...n__.”date”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1870 - PgClassExpression1871{{"PgClassExpression[1871∈222]
ᐸ__type_fun...n__.”time”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1871 - PgClassExpression1872{{"PgClassExpression[1872∈222]
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1872 - PgClassExpression1873{{"PgClassExpression[1873∈222]
ᐸ__type_fun...”interval”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1873 - PgClassExpression1880{{"PgClassExpression[1880∈222]
ᐸ__type_fun...val_array”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1880 - PgClassExpression1888{{"PgClassExpression[1888∈222]
ᐸ__type_fun...__.”money”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1888 - PgSelectSingle1823 --> PgClassExpression1889 - First1894{{"First[1894∈222]"}}:::plan - PgSelectRows1895[["PgSelectRows[1895∈222]"]]:::plan - PgSelectRows1895 --> First1894 - PgSelect1890 --> PgSelectRows1895 - PgSelectSingle1896{{"PgSelectSingle[1896∈222]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1894 --> PgSelectSingle1896 - PgClassExpression1897{{"PgClassExpression[1897∈222]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1896 --> PgClassExpression1897 - PgClassExpression1898{{"PgClassExpression[1898∈222]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1896 --> PgClassExpression1898 - PgClassExpression1899{{"PgClassExpression[1899∈222]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1896 --> PgClassExpression1899 - PgClassExpression1900{{"PgClassExpression[1900∈222]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1896 --> PgClassExpression1900 - PgClassExpression1901{{"PgClassExpression[1901∈222]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1896 --> PgClassExpression1901 - PgClassExpression1902{{"PgClassExpression[1902∈222]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1896 --> PgClassExpression1902 - PgClassExpression1903{{"PgClassExpression[1903∈222]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1896 --> PgClassExpression1903 - PgSelectSingle1823 --> PgClassExpression1904 - First1907{{"First[1907∈222]"}}:::plan - PgSelectRows1908[["PgSelectRows[1908∈222]"]]:::plan - PgSelectRows1908 --> First1907 - PgSelect1905 --> PgSelectRows1908 - PgSelectSingle1909{{"PgSelectSingle[1909∈222]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First1907 --> PgSelectSingle1909 - PgSelectSingle1909 --> PgClassExpression1910 - First1913{{"First[1913∈222]"}}:::plan - PgSelectRows1914[["PgSelectRows[1914∈222]"]]:::plan - PgSelectRows1914 --> First1913 - PgSelect1911 --> PgSelectRows1914 - PgSelectSingle1915{{"PgSelectSingle[1915∈222]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1913 --> PgSelectSingle1915 - PgSelectSingle1909 --> PgClassExpression1923 - First1926{{"First[1926∈222]"}}:::plan - PgSelectRows1927[["PgSelectRows[1927∈222]"]]:::plan - PgSelectRows1927 --> First1926 - PgSelect1924 --> PgSelectRows1927 - PgSelectSingle1928{{"PgSelectSingle[1928∈222]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1926 --> PgSelectSingle1928 - PgClassExpression1936{{"PgClassExpression[1936∈222]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle1909 --> PgClassExpression1936 - PgSelectSingle1823 --> PgClassExpression1937 - First1940{{"First[1940∈222]"}}:::plan - PgSelectRows1941[["PgSelectRows[1941∈222]"]]:::plan - PgSelectRows1941 --> First1940 - PgSelect1938 --> PgSelectRows1941 - PgSelectSingle1942{{"PgSelectSingle[1942∈222]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1940 --> PgSelectSingle1942 - PgSelectSingle1823 --> PgClassExpression1950 - First1953{{"First[1953∈222]"}}:::plan - PgSelectRows1954[["PgSelectRows[1954∈222]"]]:::plan - PgSelectRows1954 --> First1953 - PgSelect1951 --> PgSelectRows1954 - PgSelectSingle1955{{"PgSelectSingle[1955∈222]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First1953 --> PgSelectSingle1955 - PgClassExpression1985{{"PgClassExpression[1985∈222]
ᐸ__type_fun...__.”point”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1985 - PgClassExpression1988{{"PgClassExpression[1988∈222]
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1988 - PgClassExpression1991{{"PgClassExpression[1991∈222]
ᐸ__type_fun...n__.”inet”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1991 - PgClassExpression1992{{"PgClassExpression[1992∈222]
ᐸ__type_fun...n__.”cidr”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1992 - PgClassExpression1993{{"PgClassExpression[1993∈222]
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1993 - PgClassExpression1994{{"PgClassExpression[1994∈222]
ᐸ__type_fun....”regproc”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1994 - PgClassExpression1995{{"PgClassExpression[1995∈222]
ᐸ__type_fun...procedure”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1995 - PgClassExpression1996{{"PgClassExpression[1996∈222]
ᐸ__type_fun....”regoper”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1996 - PgClassExpression1997{{"PgClassExpression[1997∈222]
ᐸ__type_fun...goperator”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1997 - PgClassExpression1998{{"PgClassExpression[1998∈222]
ᐸ__type_fun...”regclass”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1998 - PgClassExpression1999{{"PgClassExpression[1999∈222]
ᐸ__type_fun....”regtype”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression1999 - PgClassExpression2000{{"PgClassExpression[2000∈222]
ᐸ__type_fun...regconfig”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression2000 - PgClassExpression2001{{"PgClassExpression[2001∈222]
ᐸ__type_fun...ictionary”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression2001 - PgClassExpression2002{{"PgClassExpression[2002∈222]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression2002 - PgClassExpression2004{{"PgClassExpression[2004∈222]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression2004 - PgClassExpression2006{{"PgClassExpression[2006∈222]
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression2006 - PgClassExpression2007{{"PgClassExpression[2007∈222]
ᐸ__type_fun...tea_array”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression2007 - First2011{{"First[2011∈222]"}}:::plan - PgSelectRows2012[["PgSelectRows[2012∈222]"]]:::plan - PgSelectRows2012 --> First2011 - PgSelect2009 --> PgSelectRows2012 - PgSelectSingle2013{{"PgSelectSingle[2013∈222]
ᐸpostᐳ"}}:::plan - First2011 --> PgSelectSingle2013 - First2018{{"First[2018∈222]"}}:::plan - PgSelectRows2019[["PgSelectRows[2019∈222]"]]:::plan - PgSelectRows2019 --> First2018 - PgSelect2016 --> PgSelectRows2019 - PgSelectSingle2020{{"PgSelectSingle[2020∈222]
ᐸpostᐳ"}}:::plan - First2018 --> PgSelectSingle2020 - PgClassExpression2023{{"PgClassExpression[2023∈222]
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression2023 - PgClassExpression2024{{"PgClassExpression[2024∈222]
ᐸ__type_fun...ree_array”ᐳ"}}:::plan - PgSelectSingle1823 --> PgClassExpression2024 - __Item1833[/"__Item[1833∈223]
ᐸ1832ᐳ"\]:::itemplan - PgClassExpression1832 ==> __Item1833 - __Item1837[/"__Item[1837∈224]
ᐸ1836ᐳ"\]:::itemplan - PgClassExpression1836 ==> __Item1837 - Access1841{{"Access[1841∈225]
ᐸ1840.startᐳ"}}:::plan - PgClassExpression1840 --> Access1841 - Access1844{{"Access[1844∈225]
ᐸ1840.endᐳ"}}:::plan - PgClassExpression1840 --> Access1844 - __Item1881[/"__Item[1881∈234]
ᐸ1880ᐳ"\]:::itemplan - PgClassExpression1880 ==> __Item1881 - PgClassExpression1916{{"PgClassExpression[1916∈236]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1915 --> PgClassExpression1916 - PgClassExpression1917{{"PgClassExpression[1917∈236]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1915 --> PgClassExpression1917 - PgClassExpression1918{{"PgClassExpression[1918∈236]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1915 --> PgClassExpression1918 - PgClassExpression1919{{"PgClassExpression[1919∈236]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1915 --> PgClassExpression1919 - PgClassExpression1920{{"PgClassExpression[1920∈236]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1915 --> PgClassExpression1920 - PgClassExpression1921{{"PgClassExpression[1921∈236]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1915 --> PgClassExpression1921 - PgClassExpression1922{{"PgClassExpression[1922∈236]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1915 --> PgClassExpression1922 - PgClassExpression1929{{"PgClassExpression[1929∈237]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1928 --> PgClassExpression1929 - PgClassExpression1930{{"PgClassExpression[1930∈237]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1928 --> PgClassExpression1930 - PgClassExpression1931{{"PgClassExpression[1931∈237]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1928 --> PgClassExpression1931 - PgClassExpression1932{{"PgClassExpression[1932∈237]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1928 --> PgClassExpression1932 - PgClassExpression1933{{"PgClassExpression[1933∈237]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1928 --> PgClassExpression1933 - PgClassExpression1934{{"PgClassExpression[1934∈237]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1928 --> PgClassExpression1934 - PgClassExpression1935{{"PgClassExpression[1935∈237]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1928 --> PgClassExpression1935 - PgClassExpression1943{{"PgClassExpression[1943∈238]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1942 --> PgClassExpression1943 - PgClassExpression1944{{"PgClassExpression[1944∈238]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1942 --> PgClassExpression1944 - PgClassExpression1945{{"PgClassExpression[1945∈238]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1942 --> PgClassExpression1945 - PgClassExpression1946{{"PgClassExpression[1946∈238]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1942 --> PgClassExpression1946 - PgClassExpression1947{{"PgClassExpression[1947∈238]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1942 --> PgClassExpression1947 - PgClassExpression1948{{"PgClassExpression[1948∈238]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1942 --> PgClassExpression1948 - PgClassExpression1949{{"PgClassExpression[1949∈238]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1942 --> PgClassExpression1949 - PgSelect1957[["PgSelect[1957∈239]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1956{{"PgClassExpression[1956∈239]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression1956 --> PgSelect1957 - PgSelect1972[["PgSelect[1972∈239]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression1971{{"PgClassExpression[1971∈239]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression1971 --> PgSelect1972 - PgSelectSingle1955 --> PgClassExpression1956 - First1961{{"First[1961∈239]"}}:::plan - PgSelectRows1962[["PgSelectRows[1962∈239]"]]:::plan - PgSelectRows1962 --> First1961 - PgSelect1957 --> PgSelectRows1962 - PgSelectSingle1963{{"PgSelectSingle[1963∈239]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1961 --> PgSelectSingle1963 - PgSelectSingle1955 --> PgClassExpression1971 - First1974{{"First[1974∈239]"}}:::plan - PgSelectRows1975[["PgSelectRows[1975∈239]"]]:::plan - PgSelectRows1975 --> First1974 - PgSelect1972 --> PgSelectRows1975 - PgSelectSingle1976{{"PgSelectSingle[1976∈239]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First1974 --> PgSelectSingle1976 - PgClassExpression1984{{"PgClassExpression[1984∈239]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle1955 --> PgClassExpression1984 - PgClassExpression1964{{"PgClassExpression[1964∈240]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1963 --> PgClassExpression1964 - PgClassExpression1965{{"PgClassExpression[1965∈240]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1963 --> PgClassExpression1965 - PgClassExpression1966{{"PgClassExpression[1966∈240]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1963 --> PgClassExpression1966 - PgClassExpression1967{{"PgClassExpression[1967∈240]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1963 --> PgClassExpression1967 - PgClassExpression1968{{"PgClassExpression[1968∈240]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1963 --> PgClassExpression1968 - PgClassExpression1969{{"PgClassExpression[1969∈240]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1963 --> PgClassExpression1969 - PgClassExpression1970{{"PgClassExpression[1970∈240]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1963 --> PgClassExpression1970 - PgClassExpression1977{{"PgClassExpression[1977∈241]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle1976 --> PgClassExpression1977 - PgClassExpression1978{{"PgClassExpression[1978∈241]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle1976 --> PgClassExpression1978 - PgClassExpression1979{{"PgClassExpression[1979∈241]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle1976 --> PgClassExpression1979 - PgClassExpression1980{{"PgClassExpression[1980∈241]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle1976 --> PgClassExpression1980 - PgClassExpression1981{{"PgClassExpression[1981∈241]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle1976 --> PgClassExpression1981 - PgClassExpression1982{{"PgClassExpression[1982∈241]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle1976 --> PgClassExpression1982 - PgClassExpression1983{{"PgClassExpression[1983∈241]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle1976 --> PgClassExpression1983 - __Item2003[/"__Item[2003∈243]
ᐸ2002ᐳ"\]:::itemplan - PgClassExpression2002 ==> __Item2003 - __Item2005[/"__Item[2005∈244]
ᐸ2004ᐳ"\]:::itemplan - PgClassExpression2004 ==> __Item2005 - __Item2008[/"__Item[2008∈245]
ᐸ2007ᐳ"\]:::itemplan - PgClassExpression2007 ==> __Item2008 - PgClassExpression2014{{"PgClassExpression[2014∈246]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle2013 --> PgClassExpression2014 - PgClassExpression2015{{"PgClassExpression[2015∈246]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle2013 --> PgClassExpression2015 - PgClassExpression2021{{"PgClassExpression[2021∈247]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle2020 --> PgClassExpression2021 - PgClassExpression2022{{"PgClassExpression[2022∈247]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle2020 --> PgClassExpression2022 - __Item2025[/"__Item[2025∈248]
ᐸ2024ᐳ"\]:::itemplan - PgClassExpression2024 ==> __Item2025 - __Item2029[/"__Item[2029∈249]
ᐸ1821ᐳ"\]:::itemplan - PgSelectRows1821 -.-> __Item2029 - PgSelectSingle2030{{"PgSelectSingle[2030∈249]
ᐸtype_function_connectionᐳ"}}:::plan - __Item2029 --> PgSelectSingle2030 - Edge3801{{"Edge[3801∈250]"}}:::plan - PgSelectSingle2032{{"PgSelectSingle[2032∈250]
ᐸtype_function_connectionᐳ"}}:::plan - PgSelectSingle2032 & Connection1819 --> Edge3801 - __Item2031[/"__Item[2031∈250]
ᐸ2027ᐳ"\]:::itemplan - __ListTransform2027 ==> __Item2031 - __Item2031 --> PgSelectSingle2032 - PgSelect2102[["PgSelect[2102∈252]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2101{{"PgClassExpression[2101∈252]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2101 --> PgSelect2102 - PgSelect2117[["PgSelect[2117∈252]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression2116{{"PgClassExpression[2116∈252]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2116 --> PgSelect2117 - PgSelect2123[["PgSelect[2123∈252]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2122{{"PgClassExpression[2122∈252]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression2122 --> PgSelect2123 - PgSelect2136[["PgSelect[2136∈252]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2135{{"PgClassExpression[2135∈252]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression2135 --> PgSelect2136 - PgSelect2150[["PgSelect[2150∈252]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2149{{"PgClassExpression[2149∈252]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2149 --> PgSelect2150 - PgSelect2163[["PgSelect[2163∈252]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression2162{{"PgClassExpression[2162∈252]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2162 --> PgSelect2163 - PgSelect2221[["PgSelect[2221∈252]
ᐸpostᐳ"]]:::plan - PgClassExpression2037{{"PgClassExpression[2037∈252]
ᐸ__type_fun...”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression2037 --> PgSelect2221 - PgSelect2228[["PgSelect[2228∈252]
ᐸpostᐳ"]]:::plan - PgClassExpression2036{{"PgClassExpression[2036∈252]
ᐸ__type_fun...ion__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression2036 --> PgSelect2228 - PgSelectSingle2032 --> PgClassExpression2036 - PgSelectSingle2032 --> PgClassExpression2037 - PgClassExpression2038{{"PgClassExpression[2038∈252]
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2038 - PgClassExpression2039{{"PgClassExpression[2039∈252]
ᐸ__type_fun....”numeric”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2039 - PgClassExpression2040{{"PgClassExpression[2040∈252]
ᐸ__type_fun....”decimal”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2040 - PgClassExpression2041{{"PgClassExpression[2041∈252]
ᐸ__type_fun....”boolean”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2041 - PgClassExpression2042{{"PgClassExpression[2042∈252]
ᐸ__type_fun....”varchar”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2042 - PgClassExpression2043{{"PgClassExpression[2043∈252]
ᐸ__type_fun...n__.”enum”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2043 - PgClassExpression2044{{"PgClassExpression[2044∈252]
ᐸ__type_fun...num_array”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2044 - PgClassExpression2046{{"PgClassExpression[2046∈252]
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2046 - PgClassExpression2047{{"PgClassExpression[2047∈252]
ᐸ__type_fun....”domain2”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2047 - PgClassExpression2048{{"PgClassExpression[2048∈252]
ᐸ__type_fun...ext_array”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2048 - PgClassExpression2050{{"PgClassExpression[2050∈252]
ᐸ__type_fun...n__.”json”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2050 - PgClassExpression2051{{"PgClassExpression[2051∈252]
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2051 - PgClassExpression2052{{"PgClassExpression[2052∈252]
ᐸ__type_fun...ble_range”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2052 - PgClassExpression2059{{"PgClassExpression[2059∈252]
ᐸ__type_fun...”numrange”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2059 - Access2060{{"Access[2060∈252]
ᐸ2059.startᐳ"}}:::plan - PgClassExpression2059 --> Access2060 - Access2063{{"Access[2063∈252]
ᐸ2059.endᐳ"}}:::plan - PgClassExpression2059 --> Access2063 - PgClassExpression2066{{"PgClassExpression[2066∈252]
ᐸ__type_fun...daterange”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2066 - Access2067{{"Access[2067∈252]
ᐸ2066.startᐳ"}}:::plan - PgClassExpression2066 --> Access2067 - Access2070{{"Access[2070∈252]
ᐸ2066.endᐳ"}}:::plan - PgClassExpression2066 --> Access2070 - PgClassExpression2073{{"PgClassExpression[2073∈252]
ᐸ__type_fun...int_range”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2073 - Access2074{{"Access[2074∈252]
ᐸ2073.startᐳ"}}:::plan - PgClassExpression2073 --> Access2074 - Access2077{{"Access[2077∈252]
ᐸ2073.endᐳ"}}:::plan - PgClassExpression2073 --> Access2077 - PgClassExpression2080{{"PgClassExpression[2080∈252]
ᐸ__type_fun...timestamp”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2080 - PgClassExpression2081{{"PgClassExpression[2081∈252]
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2081 - PgClassExpression2082{{"PgClassExpression[2082∈252]
ᐸ__type_fun...n__.”date”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2082 - PgClassExpression2083{{"PgClassExpression[2083∈252]
ᐸ__type_fun...n__.”time”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2083 - PgClassExpression2084{{"PgClassExpression[2084∈252]
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2084 - PgClassExpression2085{{"PgClassExpression[2085∈252]
ᐸ__type_fun...”interval”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2085 - PgClassExpression2092{{"PgClassExpression[2092∈252]
ᐸ__type_fun...val_array”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2092 - PgClassExpression2100{{"PgClassExpression[2100∈252]
ᐸ__type_fun...__.”money”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2100 - PgSelectSingle2032 --> PgClassExpression2101 - First2106{{"First[2106∈252]"}}:::plan - PgSelectRows2107[["PgSelectRows[2107∈252]"]]:::plan - PgSelectRows2107 --> First2106 - PgSelect2102 --> PgSelectRows2107 - PgSelectSingle2108{{"PgSelectSingle[2108∈252]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2106 --> PgSelectSingle2108 - PgClassExpression2109{{"PgClassExpression[2109∈252]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2108 --> PgClassExpression2109 - PgClassExpression2110{{"PgClassExpression[2110∈252]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2108 --> PgClassExpression2110 - PgClassExpression2111{{"PgClassExpression[2111∈252]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2108 --> PgClassExpression2111 - PgClassExpression2112{{"PgClassExpression[2112∈252]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2108 --> PgClassExpression2112 - PgClassExpression2113{{"PgClassExpression[2113∈252]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2108 --> PgClassExpression2113 - PgClassExpression2114{{"PgClassExpression[2114∈252]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2108 --> PgClassExpression2114 - PgClassExpression2115{{"PgClassExpression[2115∈252]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2108 --> PgClassExpression2115 - PgSelectSingle2032 --> PgClassExpression2116 - First2119{{"First[2119∈252]"}}:::plan - PgSelectRows2120[["PgSelectRows[2120∈252]"]]:::plan - PgSelectRows2120 --> First2119 - PgSelect2117 --> PgSelectRows2120 - PgSelectSingle2121{{"PgSelectSingle[2121∈252]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First2119 --> PgSelectSingle2121 - PgSelectSingle2121 --> PgClassExpression2122 - First2125{{"First[2125∈252]"}}:::plan - PgSelectRows2126[["PgSelectRows[2126∈252]"]]:::plan - PgSelectRows2126 --> First2125 - PgSelect2123 --> PgSelectRows2126 - PgSelectSingle2127{{"PgSelectSingle[2127∈252]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2125 --> PgSelectSingle2127 - PgSelectSingle2121 --> PgClassExpression2135 - First2138{{"First[2138∈252]"}}:::plan - PgSelectRows2139[["PgSelectRows[2139∈252]"]]:::plan + __Item1351[/"__Item[1351∈40]
ᐸ1350ᐳ"\]:::itemplan + PgClassExpression1350 ==> __Item1351 + __Item1395[/"__Item[1395∈41]
ᐸ1394ᐳ"\]:::itemplan + PgClassExpression1394 ==> __Item1395 + __Item1521[/"__Item[1521∈42]
ᐸ1520ᐳ"\]:::itemplan + PgClassExpression1520 ==> __Item1521 + __Item1523[/"__Item[1523∈43]
ᐸ1522ᐳ"\]:::itemplan + PgClassExpression1522 ==> __Item1523 + __Item1526[/"__Item[1526∈44]
ᐸ1525ᐳ"\]:::itemplan + PgClassExpression1525 ==> __Item1526 + __Item1543[/"__Item[1543∈45]
ᐸ1542ᐳ"\]:::itemplan + PgClassExpression1542 ==> __Item1543 + PgSelect1615[["PgSelect[1615∈46]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression1614{{"PgClassExpression[1614∈46]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression1614 & PgFromExpression1619 --> PgSelect1615 + PgSelect1631[["PgSelect[1631∈46]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression1630{{"PgClassExpression[1630∈46]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression1630 & PgFromExpression1633 --> PgSelect1631 + PgSelect1638[["PgSelect[1638∈46]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression1637{{"PgClassExpression[1637∈46]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression1637 & PgFromExpression1640 --> PgSelect1638 + PgSelect1652[["PgSelect[1652∈46]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression1651{{"PgClassExpression[1651∈46]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression1651 & PgFromExpression1654 --> PgSelect1652 + PgSelect1667[["PgSelect[1667∈46]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression1666{{"PgClassExpression[1666∈46]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression1666 & PgFromExpression1669 --> PgSelect1667 + PgSelect1681[["PgSelect[1681∈46]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression1680{{"PgClassExpression[1680∈46]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression1680 & PgFromExpression1683 --> PgSelect1681 + PgSelect1688[["PgSelect[1688∈46]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression1687{{"PgClassExpression[1687∈46]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression1687 & PgFromExpression1690 --> PgSelect1688 + PgSelect1702[["PgSelect[1702∈46]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression1701{{"PgClassExpression[1701∈46]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression1701 & PgFromExpression1704 --> PgSelect1702 + PgSelect1740[["PgSelect[1740∈46]
ᐸpostᐳ"]]:::plan + PgClassExpression1550{{"PgClassExpression[1550∈46]
ᐸ__type_fun...”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression1550 --> PgSelect1740 + PgSelect1747[["PgSelect[1747∈46]
ᐸpostᐳ"]]:::plan + PgClassExpression1549{{"PgClassExpression[1549∈46]
ᐸ__type_fun...ist__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression1549 --> PgSelect1747 + __Item1547[/"__Item[1547∈46]
ᐸ1546ᐳ"\]:::itemplan + PgSelectRows1546 ==> __Item1547 + PgSelectSingle1548{{"PgSelectSingle[1548∈46]
ᐸtype_function_listᐳ"}}:::plan + __Item1547 --> PgSelectSingle1548 + PgSelectSingle1548 --> PgClassExpression1549 + PgSelectSingle1548 --> PgClassExpression1550 + PgClassExpression1551{{"PgClassExpression[1551∈46]
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1551 + PgClassExpression1552{{"PgClassExpression[1552∈46]
ᐸ__type_fun....”numeric”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1552 + PgClassExpression1553{{"PgClassExpression[1553∈46]
ᐸ__type_fun....”decimal”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1553 + PgClassExpression1554{{"PgClassExpression[1554∈46]
ᐸ__type_fun....”boolean”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1554 + PgClassExpression1555{{"PgClassExpression[1555∈46]
ᐸ__type_fun....”varchar”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1555 + PgClassExpression1556{{"PgClassExpression[1556∈46]
ᐸ__type_fun...t__.”enum”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1556 + PgClassExpression1557{{"PgClassExpression[1557∈46]
ᐸ__type_fun...num_array”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1557 + PgClassExpression1559{{"PgClassExpression[1559∈46]
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1559 + PgClassExpression1560{{"PgClassExpression[1560∈46]
ᐸ__type_fun....”domain2”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1560 + PgClassExpression1561{{"PgClassExpression[1561∈46]
ᐸ__type_fun...ext_array”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1561 + PgClassExpression1563{{"PgClassExpression[1563∈46]
ᐸ__type_fun...t__.”json”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1563 + PgClassExpression1564{{"PgClassExpression[1564∈46]
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1564 + PgClassExpression1565{{"PgClassExpression[1565∈46]
ᐸ__type_fun...ble_range”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1565 + PgClassExpression1572{{"PgClassExpression[1572∈46]
ᐸ__type_fun...”numrange”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1572 + PgClassExpression1579{{"PgClassExpression[1579∈46]
ᐸ__type_fun...daterange”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1579 + PgClassExpression1586{{"PgClassExpression[1586∈46]
ᐸ__type_fun...int_range”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1586 + PgClassExpression1593{{"PgClassExpression[1593∈46]
ᐸ__type_fun...timestamp”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1593 + PgClassExpression1594{{"PgClassExpression[1594∈46]
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1594 + PgClassExpression1595{{"PgClassExpression[1595∈46]
ᐸ__type_fun...t__.”date”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1595 + PgClassExpression1596{{"PgClassExpression[1596∈46]
ᐸ__type_fun...t__.”time”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1596 + PgClassExpression1597{{"PgClassExpression[1597∈46]
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1597 + PgClassExpression1598{{"PgClassExpression[1598∈46]
ᐸ__type_fun...”interval”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1598 + PgClassExpression1605{{"PgClassExpression[1605∈46]
ᐸ__type_fun...val_array”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1605 + PgClassExpression1613{{"PgClassExpression[1613∈46]
ᐸ__type_fun...__.”money”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1613 + PgSelectSingle1548 --> PgClassExpression1614 + First1620{{"First[1620∈46]"}}:::plan + PgSelectRows1621[["PgSelectRows[1621∈46]"]]:::plan + PgSelectRows1621 --> First1620 + PgSelect1615 --> PgSelectRows1621 + PgSelectSingle1622{{"PgSelectSingle[1622∈46]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1620 --> PgSelectSingle1622 + PgClassExpression1623{{"PgClassExpression[1623∈46]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1622 --> PgClassExpression1623 + PgClassExpression1624{{"PgClassExpression[1624∈46]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1622 --> PgClassExpression1624 + PgClassExpression1625{{"PgClassExpression[1625∈46]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1622 --> PgClassExpression1625 + PgClassExpression1626{{"PgClassExpression[1626∈46]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1622 --> PgClassExpression1626 + PgClassExpression1627{{"PgClassExpression[1627∈46]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1622 --> PgClassExpression1627 + PgClassExpression1628{{"PgClassExpression[1628∈46]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1622 --> PgClassExpression1628 + PgClassExpression1629{{"PgClassExpression[1629∈46]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1622 --> PgClassExpression1629 + PgSelectSingle1548 --> PgClassExpression1630 + First1634{{"First[1634∈46]"}}:::plan + PgSelectRows1635[["PgSelectRows[1635∈46]"]]:::plan + PgSelectRows1635 --> First1634 + PgSelect1631 --> PgSelectRows1635 + PgSelectSingle1636{{"PgSelectSingle[1636∈46]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First1634 --> PgSelectSingle1636 + PgSelectSingle1636 --> PgClassExpression1637 + First1641{{"First[1641∈46]"}}:::plan + PgSelectRows1642[["PgSelectRows[1642∈46]"]]:::plan + PgSelectRows1642 --> First1641 + PgSelect1638 --> PgSelectRows1642 + PgSelectSingle1643{{"PgSelectSingle[1643∈46]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1641 --> PgSelectSingle1643 + PgClassExpression1644{{"PgClassExpression[1644∈46]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1643 --> PgClassExpression1644 + PgClassExpression1645{{"PgClassExpression[1645∈46]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1643 --> PgClassExpression1645 + PgClassExpression1646{{"PgClassExpression[1646∈46]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1643 --> PgClassExpression1646 + PgClassExpression1647{{"PgClassExpression[1647∈46]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1643 --> PgClassExpression1647 + PgClassExpression1648{{"PgClassExpression[1648∈46]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1643 --> PgClassExpression1648 + PgClassExpression1649{{"PgClassExpression[1649∈46]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1643 --> PgClassExpression1649 + PgClassExpression1650{{"PgClassExpression[1650∈46]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1643 --> PgClassExpression1650 + PgSelectSingle1636 --> PgClassExpression1651 + First1655{{"First[1655∈46]"}}:::plan + PgSelectRows1656[["PgSelectRows[1656∈46]"]]:::plan + PgSelectRows1656 --> First1655 + PgSelect1652 --> PgSelectRows1656 + PgSelectSingle1657{{"PgSelectSingle[1657∈46]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1655 --> PgSelectSingle1657 + PgClassExpression1658{{"PgClassExpression[1658∈46]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1657 --> PgClassExpression1658 + PgClassExpression1659{{"PgClassExpression[1659∈46]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1657 --> PgClassExpression1659 + PgClassExpression1660{{"PgClassExpression[1660∈46]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1657 --> PgClassExpression1660 + PgClassExpression1661{{"PgClassExpression[1661∈46]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1657 --> PgClassExpression1661 + PgClassExpression1662{{"PgClassExpression[1662∈46]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1657 --> PgClassExpression1662 + PgClassExpression1663{{"PgClassExpression[1663∈46]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1657 --> PgClassExpression1663 + PgClassExpression1664{{"PgClassExpression[1664∈46]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1657 --> PgClassExpression1664 + PgClassExpression1665{{"PgClassExpression[1665∈46]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle1636 --> PgClassExpression1665 + PgSelectSingle1548 --> PgClassExpression1666 + First1670{{"First[1670∈46]"}}:::plan + PgSelectRows1671[["PgSelectRows[1671∈46]"]]:::plan + PgSelectRows1671 --> First1670 + PgSelect1667 --> PgSelectRows1671 + PgSelectSingle1672{{"PgSelectSingle[1672∈46]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1670 --> PgSelectSingle1672 + PgClassExpression1673{{"PgClassExpression[1673∈46]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1672 --> PgClassExpression1673 + PgClassExpression1674{{"PgClassExpression[1674∈46]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1672 --> PgClassExpression1674 + PgClassExpression1675{{"PgClassExpression[1675∈46]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1672 --> PgClassExpression1675 + PgClassExpression1676{{"PgClassExpression[1676∈46]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1672 --> PgClassExpression1676 + PgClassExpression1677{{"PgClassExpression[1677∈46]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1672 --> PgClassExpression1677 + PgClassExpression1678{{"PgClassExpression[1678∈46]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1672 --> PgClassExpression1678 + PgClassExpression1679{{"PgClassExpression[1679∈46]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1672 --> PgClassExpression1679 + PgSelectSingle1548 --> PgClassExpression1680 + First1684{{"First[1684∈46]"}}:::plan + PgSelectRows1685[["PgSelectRows[1685∈46]"]]:::plan + PgSelectRows1685 --> First1684 + PgSelect1681 --> PgSelectRows1685 + PgSelectSingle1686{{"PgSelectSingle[1686∈46]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First1684 --> PgSelectSingle1686 + PgSelectSingle1686 --> PgClassExpression1687 + First1691{{"First[1691∈46]"}}:::plan + PgSelectRows1692[["PgSelectRows[1692∈46]"]]:::plan + PgSelectRows1692 --> First1691 + PgSelect1688 --> PgSelectRows1692 + PgSelectSingle1693{{"PgSelectSingle[1693∈46]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1691 --> PgSelectSingle1693 + PgClassExpression1694{{"PgClassExpression[1694∈46]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1693 --> PgClassExpression1694 + PgClassExpression1695{{"PgClassExpression[1695∈46]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1693 --> PgClassExpression1695 + PgClassExpression1696{{"PgClassExpression[1696∈46]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1693 --> PgClassExpression1696 + PgClassExpression1697{{"PgClassExpression[1697∈46]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1693 --> PgClassExpression1697 + PgClassExpression1698{{"PgClassExpression[1698∈46]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1693 --> PgClassExpression1698 + PgClassExpression1699{{"PgClassExpression[1699∈46]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1693 --> PgClassExpression1699 + PgClassExpression1700{{"PgClassExpression[1700∈46]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1693 --> PgClassExpression1700 + PgSelectSingle1686 --> PgClassExpression1701 + First1705{{"First[1705∈46]"}}:::plan + PgSelectRows1706[["PgSelectRows[1706∈46]"]]:::plan + PgSelectRows1706 --> First1705 + PgSelect1702 --> PgSelectRows1706 + PgSelectSingle1707{{"PgSelectSingle[1707∈46]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1705 --> PgSelectSingle1707 + PgClassExpression1708{{"PgClassExpression[1708∈46]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1707 --> PgClassExpression1708 + PgClassExpression1709{{"PgClassExpression[1709∈46]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1707 --> PgClassExpression1709 + PgClassExpression1710{{"PgClassExpression[1710∈46]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1707 --> PgClassExpression1710 + PgClassExpression1711{{"PgClassExpression[1711∈46]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1707 --> PgClassExpression1711 + PgClassExpression1712{{"PgClassExpression[1712∈46]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1707 --> PgClassExpression1712 + PgClassExpression1713{{"PgClassExpression[1713∈46]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1707 --> PgClassExpression1713 + PgClassExpression1714{{"PgClassExpression[1714∈46]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1707 --> PgClassExpression1714 + PgClassExpression1715{{"PgClassExpression[1715∈46]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle1686 --> PgClassExpression1715 + PgClassExpression1716{{"PgClassExpression[1716∈46]
ᐸ__type_fun...__.”point”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1716 + PgClassExpression1719{{"PgClassExpression[1719∈46]
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1719 + PgClassExpression1722{{"PgClassExpression[1722∈46]
ᐸ__type_fun...t__.”inet”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1722 + PgClassExpression1723{{"PgClassExpression[1723∈46]
ᐸ__type_fun...t__.”cidr”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1723 + PgClassExpression1724{{"PgClassExpression[1724∈46]
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1724 + PgClassExpression1725{{"PgClassExpression[1725∈46]
ᐸ__type_fun....”regproc”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1725 + PgClassExpression1726{{"PgClassExpression[1726∈46]
ᐸ__type_fun...procedure”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1726 + PgClassExpression1727{{"PgClassExpression[1727∈46]
ᐸ__type_fun....”regoper”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1727 + PgClassExpression1728{{"PgClassExpression[1728∈46]
ᐸ__type_fun...goperator”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1728 + PgClassExpression1729{{"PgClassExpression[1729∈46]
ᐸ__type_fun...”regclass”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1729 + PgClassExpression1730{{"PgClassExpression[1730∈46]
ᐸ__type_fun....”regtype”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1730 + PgClassExpression1731{{"PgClassExpression[1731∈46]
ᐸ__type_fun...regconfig”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1731 + PgClassExpression1732{{"PgClassExpression[1732∈46]
ᐸ__type_fun...ictionary”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1732 + PgClassExpression1733{{"PgClassExpression[1733∈46]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1733 + PgClassExpression1735{{"PgClassExpression[1735∈46]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1735 + PgClassExpression1737{{"PgClassExpression[1737∈46]
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1737 + PgClassExpression1738{{"PgClassExpression[1738∈46]
ᐸ__type_fun...tea_array”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1738 + First1742{{"First[1742∈46]"}}:::plan + PgSelectRows1743[["PgSelectRows[1743∈46]"]]:::plan + PgSelectRows1743 --> First1742 + PgSelect1740 --> PgSelectRows1743 + PgSelectSingle1744{{"PgSelectSingle[1744∈46]
ᐸpostᐳ"}}:::plan + First1742 --> PgSelectSingle1744 + PgClassExpression1745{{"PgClassExpression[1745∈46]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle1744 --> PgClassExpression1745 + PgClassExpression1746{{"PgClassExpression[1746∈46]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle1744 --> PgClassExpression1746 + First1749{{"First[1749∈46]"}}:::plan + PgSelectRows1750[["PgSelectRows[1750∈46]"]]:::plan + PgSelectRows1750 --> First1749 + PgSelect1747 --> PgSelectRows1750 + PgSelectSingle1751{{"PgSelectSingle[1751∈46]
ᐸpostᐳ"}}:::plan + First1749 --> PgSelectSingle1751 + PgClassExpression1752{{"PgClassExpression[1752∈46]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle1751 --> PgClassExpression1752 + PgClassExpression1753{{"PgClassExpression[1753∈46]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle1751 --> PgClassExpression1753 + PgClassExpression1754{{"PgClassExpression[1754∈46]
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1754 + PgClassExpression1755{{"PgClassExpression[1755∈46]
ᐸ__type_fun...ree_array”ᐳ"}}:::plan + PgSelectSingle1548 --> PgClassExpression1755 + __Item1558[/"__Item[1558∈47]
ᐸ1557ᐳ"\]:::itemplan + PgClassExpression1557 ==> __Item1558 + __Item1562[/"__Item[1562∈48]
ᐸ1561ᐳ"\]:::itemplan + PgClassExpression1561 ==> __Item1562 + __Item1606[/"__Item[1606∈49]
ᐸ1605ᐳ"\]:::itemplan + PgClassExpression1605 ==> __Item1606 + __Item1734[/"__Item[1734∈50]
ᐸ1733ᐳ"\]:::itemplan + PgClassExpression1733 ==> __Item1734 + __Item1736[/"__Item[1736∈51]
ᐸ1735ᐳ"\]:::itemplan + PgClassExpression1735 ==> __Item1736 + __Item1739[/"__Item[1739∈52]
ᐸ1738ᐳ"\]:::itemplan + PgClassExpression1738 ==> __Item1739 + __Item1756[/"__Item[1756∈53]
ᐸ1755ᐳ"\]:::itemplan + PgClassExpression1755 ==> __Item1756 + PgSelect1830[["PgSelect[1830∈54]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression1829{{"PgClassExpression[1829∈54]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression1829 & PgFromExpression1834 --> PgSelect1830 + PgSelect1846[["PgSelect[1846∈54]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression1845{{"PgClassExpression[1845∈54]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression1845 & PgFromExpression1848 --> PgSelect1846 + PgSelect1853[["PgSelect[1853∈54]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression1852{{"PgClassExpression[1852∈54]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression1852 & PgFromExpression1855 --> PgSelect1853 + PgSelect1867[["PgSelect[1867∈54]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression1866{{"PgClassExpression[1866∈54]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression1866 & PgFromExpression1869 --> PgSelect1867 + PgSelect1882[["PgSelect[1882∈54]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression1881{{"PgClassExpression[1881∈54]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression1881 & PgFromExpression1884 --> PgSelect1882 + PgSelect1896[["PgSelect[1896∈54]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression1895{{"PgClassExpression[1895∈54]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression1895 & PgFromExpression1898 --> PgSelect1896 + PgSelect1903[["PgSelect[1903∈54]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression1902{{"PgClassExpression[1902∈54]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression1902 & PgFromExpression1905 --> PgSelect1903 + PgSelect1917[["PgSelect[1917∈54]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression1916{{"PgClassExpression[1916∈54]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression1916 & PgFromExpression1919 --> PgSelect1917 + PgSelect1955[["PgSelect[1955∈54]
ᐸpostᐳ"]]:::plan + PgClassExpression1765{{"PgClassExpression[1765∈54]
ᐸ__type_fun...”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression1765 --> PgSelect1955 + PgSelect1962[["PgSelect[1962∈54]
ᐸpostᐳ"]]:::plan + PgClassExpression1764{{"PgClassExpression[1764∈54]
ᐸ__type_fun...ion__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression1764 --> PgSelect1962 + __Item1762[/"__Item[1762∈54]
ᐸ1761ᐳ"\]:::itemplan + PgSelectRows1761 ==> __Item1762 + PgSelectSingle1763{{"PgSelectSingle[1763∈54]
ᐸtype_function_connectionᐳ"}}:::plan + __Item1762 --> PgSelectSingle1763 + PgSelectSingle1763 --> PgClassExpression1764 + PgSelectSingle1763 --> PgClassExpression1765 + PgClassExpression1766{{"PgClassExpression[1766∈54]
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1766 + PgClassExpression1767{{"PgClassExpression[1767∈54]
ᐸ__type_fun....”numeric”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1767 + PgClassExpression1768{{"PgClassExpression[1768∈54]
ᐸ__type_fun....”decimal”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1768 + PgClassExpression1769{{"PgClassExpression[1769∈54]
ᐸ__type_fun....”boolean”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1769 + PgClassExpression1770{{"PgClassExpression[1770∈54]
ᐸ__type_fun....”varchar”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1770 + PgClassExpression1771{{"PgClassExpression[1771∈54]
ᐸ__type_fun...n__.”enum”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1771 + PgClassExpression1772{{"PgClassExpression[1772∈54]
ᐸ__type_fun...num_array”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1772 + PgClassExpression1774{{"PgClassExpression[1774∈54]
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1774 + PgClassExpression1775{{"PgClassExpression[1775∈54]
ᐸ__type_fun....”domain2”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1775 + PgClassExpression1776{{"PgClassExpression[1776∈54]
ᐸ__type_fun...ext_array”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1776 + PgClassExpression1778{{"PgClassExpression[1778∈54]
ᐸ__type_fun...n__.”json”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1778 + PgClassExpression1779{{"PgClassExpression[1779∈54]
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1779 + PgClassExpression1780{{"PgClassExpression[1780∈54]
ᐸ__type_fun...ble_range”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1780 + PgClassExpression1787{{"PgClassExpression[1787∈54]
ᐸ__type_fun...”numrange”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1787 + PgClassExpression1794{{"PgClassExpression[1794∈54]
ᐸ__type_fun...daterange”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1794 + PgClassExpression1801{{"PgClassExpression[1801∈54]
ᐸ__type_fun...int_range”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1801 + PgClassExpression1808{{"PgClassExpression[1808∈54]
ᐸ__type_fun...timestamp”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1808 + PgClassExpression1809{{"PgClassExpression[1809∈54]
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1809 + PgClassExpression1810{{"PgClassExpression[1810∈54]
ᐸ__type_fun...n__.”date”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1810 + PgClassExpression1811{{"PgClassExpression[1811∈54]
ᐸ__type_fun...n__.”time”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1811 + PgClassExpression1812{{"PgClassExpression[1812∈54]
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1812 + PgClassExpression1813{{"PgClassExpression[1813∈54]
ᐸ__type_fun...”interval”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1813 + PgClassExpression1820{{"PgClassExpression[1820∈54]
ᐸ__type_fun...val_array”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1820 + PgClassExpression1828{{"PgClassExpression[1828∈54]
ᐸ__type_fun...__.”money”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1828 + PgSelectSingle1763 --> PgClassExpression1829 + First1835{{"First[1835∈54]"}}:::plan + PgSelectRows1836[["PgSelectRows[1836∈54]"]]:::plan + PgSelectRows1836 --> First1835 + PgSelect1830 --> PgSelectRows1836 + PgSelectSingle1837{{"PgSelectSingle[1837∈54]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1835 --> PgSelectSingle1837 + PgClassExpression1838{{"PgClassExpression[1838∈54]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1837 --> PgClassExpression1838 + PgClassExpression1839{{"PgClassExpression[1839∈54]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1837 --> PgClassExpression1839 + PgClassExpression1840{{"PgClassExpression[1840∈54]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1837 --> PgClassExpression1840 + PgClassExpression1841{{"PgClassExpression[1841∈54]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1837 --> PgClassExpression1841 + PgClassExpression1842{{"PgClassExpression[1842∈54]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1837 --> PgClassExpression1842 + PgClassExpression1843{{"PgClassExpression[1843∈54]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1837 --> PgClassExpression1843 + PgClassExpression1844{{"PgClassExpression[1844∈54]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1837 --> PgClassExpression1844 + PgSelectSingle1763 --> PgClassExpression1845 + First1849{{"First[1849∈54]"}}:::plan + PgSelectRows1850[["PgSelectRows[1850∈54]"]]:::plan + PgSelectRows1850 --> First1849 + PgSelect1846 --> PgSelectRows1850 + PgSelectSingle1851{{"PgSelectSingle[1851∈54]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First1849 --> PgSelectSingle1851 + PgSelectSingle1851 --> PgClassExpression1852 + First1856{{"First[1856∈54]"}}:::plan + PgSelectRows1857[["PgSelectRows[1857∈54]"]]:::plan + PgSelectRows1857 --> First1856 + PgSelect1853 --> PgSelectRows1857 + PgSelectSingle1858{{"PgSelectSingle[1858∈54]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1856 --> PgSelectSingle1858 + PgClassExpression1859{{"PgClassExpression[1859∈54]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1858 --> PgClassExpression1859 + PgClassExpression1860{{"PgClassExpression[1860∈54]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1858 --> PgClassExpression1860 + PgClassExpression1861{{"PgClassExpression[1861∈54]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1858 --> PgClassExpression1861 + PgClassExpression1862{{"PgClassExpression[1862∈54]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1858 --> PgClassExpression1862 + PgClassExpression1863{{"PgClassExpression[1863∈54]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1858 --> PgClassExpression1863 + PgClassExpression1864{{"PgClassExpression[1864∈54]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1858 --> PgClassExpression1864 + PgClassExpression1865{{"PgClassExpression[1865∈54]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1858 --> PgClassExpression1865 + PgSelectSingle1851 --> PgClassExpression1866 + First1870{{"First[1870∈54]"}}:::plan + PgSelectRows1871[["PgSelectRows[1871∈54]"]]:::plan + PgSelectRows1871 --> First1870 + PgSelect1867 --> PgSelectRows1871 + PgSelectSingle1872{{"PgSelectSingle[1872∈54]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1870 --> PgSelectSingle1872 + PgClassExpression1873{{"PgClassExpression[1873∈54]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1872 --> PgClassExpression1873 + PgClassExpression1874{{"PgClassExpression[1874∈54]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1872 --> PgClassExpression1874 + PgClassExpression1875{{"PgClassExpression[1875∈54]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1872 --> PgClassExpression1875 + PgClassExpression1876{{"PgClassExpression[1876∈54]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1872 --> PgClassExpression1876 + PgClassExpression1877{{"PgClassExpression[1877∈54]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1872 --> PgClassExpression1877 + PgClassExpression1878{{"PgClassExpression[1878∈54]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1872 --> PgClassExpression1878 + PgClassExpression1879{{"PgClassExpression[1879∈54]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1872 --> PgClassExpression1879 + PgClassExpression1880{{"PgClassExpression[1880∈54]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle1851 --> PgClassExpression1880 + PgSelectSingle1763 --> PgClassExpression1881 + First1885{{"First[1885∈54]"}}:::plan + PgSelectRows1886[["PgSelectRows[1886∈54]"]]:::plan + PgSelectRows1886 --> First1885 + PgSelect1882 --> PgSelectRows1886 + PgSelectSingle1887{{"PgSelectSingle[1887∈54]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1885 --> PgSelectSingle1887 + PgClassExpression1888{{"PgClassExpression[1888∈54]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1887 --> PgClassExpression1888 + PgClassExpression1889{{"PgClassExpression[1889∈54]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1887 --> PgClassExpression1889 + PgClassExpression1890{{"PgClassExpression[1890∈54]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1887 --> PgClassExpression1890 + PgClassExpression1891{{"PgClassExpression[1891∈54]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1887 --> PgClassExpression1891 + PgClassExpression1892{{"PgClassExpression[1892∈54]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1887 --> PgClassExpression1892 + PgClassExpression1893{{"PgClassExpression[1893∈54]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1887 --> PgClassExpression1893 + PgClassExpression1894{{"PgClassExpression[1894∈54]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1887 --> PgClassExpression1894 + PgSelectSingle1763 --> PgClassExpression1895 + First1899{{"First[1899∈54]"}}:::plan + PgSelectRows1900[["PgSelectRows[1900∈54]"]]:::plan + PgSelectRows1900 --> First1899 + PgSelect1896 --> PgSelectRows1900 + PgSelectSingle1901{{"PgSelectSingle[1901∈54]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First1899 --> PgSelectSingle1901 + PgSelectSingle1901 --> PgClassExpression1902 + First1906{{"First[1906∈54]"}}:::plan + PgSelectRows1907[["PgSelectRows[1907∈54]"]]:::plan + PgSelectRows1907 --> First1906 + PgSelect1903 --> PgSelectRows1907 + PgSelectSingle1908{{"PgSelectSingle[1908∈54]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1906 --> PgSelectSingle1908 + PgClassExpression1909{{"PgClassExpression[1909∈54]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1908 --> PgClassExpression1909 + PgClassExpression1910{{"PgClassExpression[1910∈54]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1908 --> PgClassExpression1910 + PgClassExpression1911{{"PgClassExpression[1911∈54]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1908 --> PgClassExpression1911 + PgClassExpression1912{{"PgClassExpression[1912∈54]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1908 --> PgClassExpression1912 + PgClassExpression1913{{"PgClassExpression[1913∈54]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1908 --> PgClassExpression1913 + PgClassExpression1914{{"PgClassExpression[1914∈54]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1908 --> PgClassExpression1914 + PgClassExpression1915{{"PgClassExpression[1915∈54]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1908 --> PgClassExpression1915 + PgSelectSingle1901 --> PgClassExpression1916 + First1920{{"First[1920∈54]"}}:::plan + PgSelectRows1921[["PgSelectRows[1921∈54]"]]:::plan + PgSelectRows1921 --> First1920 + PgSelect1917 --> PgSelectRows1921 + PgSelectSingle1922{{"PgSelectSingle[1922∈54]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First1920 --> PgSelectSingle1922 + PgClassExpression1923{{"PgClassExpression[1923∈54]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle1922 --> PgClassExpression1923 + PgClassExpression1924{{"PgClassExpression[1924∈54]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle1922 --> PgClassExpression1924 + PgClassExpression1925{{"PgClassExpression[1925∈54]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle1922 --> PgClassExpression1925 + PgClassExpression1926{{"PgClassExpression[1926∈54]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle1922 --> PgClassExpression1926 + PgClassExpression1927{{"PgClassExpression[1927∈54]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle1922 --> PgClassExpression1927 + PgClassExpression1928{{"PgClassExpression[1928∈54]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle1922 --> PgClassExpression1928 + PgClassExpression1929{{"PgClassExpression[1929∈54]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle1922 --> PgClassExpression1929 + PgClassExpression1930{{"PgClassExpression[1930∈54]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle1901 --> PgClassExpression1930 + PgClassExpression1931{{"PgClassExpression[1931∈54]
ᐸ__type_fun...__.”point”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1931 + PgClassExpression1934{{"PgClassExpression[1934∈54]
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1934 + PgClassExpression1937{{"PgClassExpression[1937∈54]
ᐸ__type_fun...n__.”inet”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1937 + PgClassExpression1938{{"PgClassExpression[1938∈54]
ᐸ__type_fun...n__.”cidr”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1938 + PgClassExpression1939{{"PgClassExpression[1939∈54]
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1939 + PgClassExpression1940{{"PgClassExpression[1940∈54]
ᐸ__type_fun....”regproc”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1940 + PgClassExpression1941{{"PgClassExpression[1941∈54]
ᐸ__type_fun...procedure”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1941 + PgClassExpression1942{{"PgClassExpression[1942∈54]
ᐸ__type_fun....”regoper”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1942 + PgClassExpression1943{{"PgClassExpression[1943∈54]
ᐸ__type_fun...goperator”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1943 + PgClassExpression1944{{"PgClassExpression[1944∈54]
ᐸ__type_fun...”regclass”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1944 + PgClassExpression1945{{"PgClassExpression[1945∈54]
ᐸ__type_fun....”regtype”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1945 + PgClassExpression1946{{"PgClassExpression[1946∈54]
ᐸ__type_fun...regconfig”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1946 + PgClassExpression1947{{"PgClassExpression[1947∈54]
ᐸ__type_fun...ictionary”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1947 + PgClassExpression1948{{"PgClassExpression[1948∈54]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1948 + PgClassExpression1950{{"PgClassExpression[1950∈54]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1950 + PgClassExpression1952{{"PgClassExpression[1952∈54]
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1952 + PgClassExpression1953{{"PgClassExpression[1953∈54]
ᐸ__type_fun...tea_array”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1953 + First1957{{"First[1957∈54]"}}:::plan + PgSelectRows1958[["PgSelectRows[1958∈54]"]]:::plan + PgSelectRows1958 --> First1957 + PgSelect1955 --> PgSelectRows1958 + PgSelectSingle1959{{"PgSelectSingle[1959∈54]
ᐸpostᐳ"}}:::plan + First1957 --> PgSelectSingle1959 + PgClassExpression1960{{"PgClassExpression[1960∈54]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle1959 --> PgClassExpression1960 + PgClassExpression1961{{"PgClassExpression[1961∈54]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle1959 --> PgClassExpression1961 + First1964{{"First[1964∈54]"}}:::plan + PgSelectRows1965[["PgSelectRows[1965∈54]"]]:::plan + PgSelectRows1965 --> First1964 + PgSelect1962 --> PgSelectRows1965 + PgSelectSingle1966{{"PgSelectSingle[1966∈54]
ᐸpostᐳ"}}:::plan + First1964 --> PgSelectSingle1966 + PgClassExpression1967{{"PgClassExpression[1967∈54]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle1966 --> PgClassExpression1967 + PgClassExpression1968{{"PgClassExpression[1968∈54]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle1966 --> PgClassExpression1968 + PgClassExpression1969{{"PgClassExpression[1969∈54]
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1969 + PgClassExpression1970{{"PgClassExpression[1970∈54]
ᐸ__type_fun...ree_array”ᐳ"}}:::plan + PgSelectSingle1763 --> PgClassExpression1970 + __Item1773[/"__Item[1773∈55]
ᐸ1772ᐳ"\]:::itemplan + PgClassExpression1772 ==> __Item1773 + __Item1777[/"__Item[1777∈56]
ᐸ1776ᐳ"\]:::itemplan + PgClassExpression1776 ==> __Item1777 + __Item1821[/"__Item[1821∈57]
ᐸ1820ᐳ"\]:::itemplan + PgClassExpression1820 ==> __Item1821 + __Item1949[/"__Item[1949∈58]
ᐸ1948ᐳ"\]:::itemplan + PgClassExpression1948 ==> __Item1949 + __Item1951[/"__Item[1951∈59]
ᐸ1950ᐳ"\]:::itemplan + PgClassExpression1950 ==> __Item1951 + __Item1954[/"__Item[1954∈60]
ᐸ1953ᐳ"\]:::itemplan + PgClassExpression1953 ==> __Item1954 + __Item1971[/"__Item[1971∈61]
ᐸ1970ᐳ"\]:::itemplan + PgClassExpression1970 ==> __Item1971 + __Item1975[/"__Item[1975∈62]
ᐸ1761ᐳ"\]:::itemplan + PgSelectRows1761 -.-> __Item1975 + PgSelectSingle1976{{"PgSelectSingle[1976∈62]
ᐸtype_function_connectionᐳ"}}:::plan + __Item1975 --> PgSelectSingle1976 + PgSelect2048[["PgSelect[2048∈63]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2047{{"PgClassExpression[2047∈63]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2047 & PgFromExpression2052 --> PgSelect2048 + PgSelect2064[["PgSelect[2064∈63]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression2063{{"PgClassExpression[2063∈63]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2063 & PgFromExpression2066 --> PgSelect2064 + PgSelect2071[["PgSelect[2071∈63]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2070{{"PgClassExpression[2070∈63]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression2070 & PgFromExpression2073 --> PgSelect2071 + PgSelect2085[["PgSelect[2085∈63]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2084{{"PgClassExpression[2084∈63]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression2084 & PgFromExpression2087 --> PgSelect2085 + PgSelect2100[["PgSelect[2100∈63]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2099{{"PgClassExpression[2099∈63]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2099 & PgFromExpression2102 --> PgSelect2100 + PgSelect2114[["PgSelect[2114∈63]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression2113{{"PgClassExpression[2113∈63]
ᐸ__type_fun...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2113 & PgFromExpression2116 --> PgSelect2114 + PgSelect2121[["PgSelect[2121∈63]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2120{{"PgClassExpression[2120∈63]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression2120 & PgFromExpression2123 --> PgSelect2121 + PgSelect2135[["PgSelect[2135∈63]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2134{{"PgClassExpression[2134∈63]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression2134 & PgFromExpression2137 --> PgSelect2135 + PgSelect2173[["PgSelect[2173∈63]
ᐸpostᐳ"]]:::plan + PgClassExpression1983{{"PgClassExpression[1983∈63]
ᐸ__type_fun...”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression1983 --> PgSelect2173 + PgSelect2180[["PgSelect[2180∈63]
ᐸpostᐳ"]]:::plan + PgClassExpression1982{{"PgClassExpression[1982∈63]
ᐸ__type_fun...ion__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression1982 --> PgSelect2180 + Edge3685{{"Edge[3685∈63]"}}:::plan + PgSelectSingle1978{{"PgSelectSingle[1978∈63]
ᐸtype_function_connectionᐳ"}}:::plan + PgSelectSingle1978 -->|rejectNull| Edge3685 + Connection1759 --> Edge3685 + __Item1977[/"__Item[1977∈63]
ᐸ1973ᐳ"\]:::itemplan + __ListTransform1973 ==> __Item1977 + __Item1977 --> PgSelectSingle1978 + PgSelectSingle1978 --> PgClassExpression1982 + PgSelectSingle1978 --> PgClassExpression1983 + PgClassExpression1984{{"PgClassExpression[1984∈63]
ᐸ__type_fun..._.”bigint”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression1984 + PgClassExpression1985{{"PgClassExpression[1985∈63]
ᐸ__type_fun....”numeric”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression1985 + PgClassExpression1986{{"PgClassExpression[1986∈63]
ᐸ__type_fun....”decimal”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression1986 + PgClassExpression1987{{"PgClassExpression[1987∈63]
ᐸ__type_fun....”boolean”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression1987 + PgClassExpression1988{{"PgClassExpression[1988∈63]
ᐸ__type_fun....”varchar”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression1988 + PgClassExpression1989{{"PgClassExpression[1989∈63]
ᐸ__type_fun...n__.”enum”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression1989 + PgClassExpression1990{{"PgClassExpression[1990∈63]
ᐸ__type_fun...num_array”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression1990 + PgClassExpression1992{{"PgClassExpression[1992∈63]
ᐸ__type_fun..._.”domain”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression1992 + PgClassExpression1993{{"PgClassExpression[1993∈63]
ᐸ__type_fun....”domain2”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression1993 + PgClassExpression1994{{"PgClassExpression[1994∈63]
ᐸ__type_fun...ext_array”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression1994 + PgClassExpression1996{{"PgClassExpression[1996∈63]
ᐸ__type_fun...n__.”json”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression1996 + PgClassExpression1997{{"PgClassExpression[1997∈63]
ᐸ__type_fun...__.”jsonb”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression1997 + PgClassExpression1998{{"PgClassExpression[1998∈63]
ᐸ__type_fun...ble_range”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression1998 + PgClassExpression2005{{"PgClassExpression[2005∈63]
ᐸ__type_fun...”numrange”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2005 + PgClassExpression2012{{"PgClassExpression[2012∈63]
ᐸ__type_fun...daterange”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2012 + PgClassExpression2019{{"PgClassExpression[2019∈63]
ᐸ__type_fun...int_range”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2019 + PgClassExpression2026{{"PgClassExpression[2026∈63]
ᐸ__type_fun...timestamp”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2026 + PgClassExpression2027{{"PgClassExpression[2027∈63]
ᐸ__type_fun...mestamptz”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2027 + PgClassExpression2028{{"PgClassExpression[2028∈63]
ᐸ__type_fun...n__.”date”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2028 + PgClassExpression2029{{"PgClassExpression[2029∈63]
ᐸ__type_fun...n__.”time”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2029 + PgClassExpression2030{{"PgClassExpression[2030∈63]
ᐸ__type_fun..._.”timetz”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2030 + PgClassExpression2031{{"PgClassExpression[2031∈63]
ᐸ__type_fun...”interval”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2031 + PgClassExpression2038{{"PgClassExpression[2038∈63]
ᐸ__type_fun...val_array”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2038 + PgClassExpression2046{{"PgClassExpression[2046∈63]
ᐸ__type_fun...__.”money”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2046 + PgSelectSingle1978 --> PgClassExpression2047 + First2053{{"First[2053∈63]"}}:::plan + PgSelectRows2054[["PgSelectRows[2054∈63]"]]:::plan + PgSelectRows2054 --> First2053 + PgSelect2048 --> PgSelectRows2054 + PgSelectSingle2055{{"PgSelectSingle[2055∈63]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2053 --> PgSelectSingle2055 + PgClassExpression2056{{"PgClassExpression[2056∈63]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2055 --> PgClassExpression2056 + PgClassExpression2057{{"PgClassExpression[2057∈63]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2055 --> PgClassExpression2057 + PgClassExpression2058{{"PgClassExpression[2058∈63]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2055 --> PgClassExpression2058 + PgClassExpression2059{{"PgClassExpression[2059∈63]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2055 --> PgClassExpression2059 + PgClassExpression2060{{"PgClassExpression[2060∈63]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2055 --> PgClassExpression2060 + PgClassExpression2061{{"PgClassExpression[2061∈63]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2055 --> PgClassExpression2061 + PgClassExpression2062{{"PgClassExpression[2062∈63]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2055 --> PgClassExpression2062 + PgSelectSingle1978 --> PgClassExpression2063 + First2067{{"First[2067∈63]"}}:::plan + PgSelectRows2068[["PgSelectRows[2068∈63]"]]:::plan + PgSelectRows2068 --> First2067 + PgSelect2064 --> PgSelectRows2068 + PgSelectSingle2069{{"PgSelectSingle[2069∈63]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First2067 --> PgSelectSingle2069 + PgSelectSingle2069 --> PgClassExpression2070 + First2074{{"First[2074∈63]"}}:::plan + PgSelectRows2075[["PgSelectRows[2075∈63]"]]:::plan + PgSelectRows2075 --> First2074 + PgSelect2071 --> PgSelectRows2075 + PgSelectSingle2076{{"PgSelectSingle[2076∈63]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2074 --> PgSelectSingle2076 + PgClassExpression2077{{"PgClassExpression[2077∈63]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2076 --> PgClassExpression2077 + PgClassExpression2078{{"PgClassExpression[2078∈63]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2076 --> PgClassExpression2078 + PgClassExpression2079{{"PgClassExpression[2079∈63]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2076 --> PgClassExpression2079 + PgClassExpression2080{{"PgClassExpression[2080∈63]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2076 --> PgClassExpression2080 + PgClassExpression2081{{"PgClassExpression[2081∈63]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2076 --> PgClassExpression2081 + PgClassExpression2082{{"PgClassExpression[2082∈63]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2076 --> PgClassExpression2082 + PgClassExpression2083{{"PgClassExpression[2083∈63]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2076 --> PgClassExpression2083 + PgSelectSingle2069 --> PgClassExpression2084 + First2088{{"First[2088∈63]"}}:::plan + PgSelectRows2089[["PgSelectRows[2089∈63]"]]:::plan + PgSelectRows2089 --> First2088 + PgSelect2085 --> PgSelectRows2089 + PgSelectSingle2090{{"PgSelectSingle[2090∈63]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2088 --> PgSelectSingle2090 + PgClassExpression2091{{"PgClassExpression[2091∈63]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2090 --> PgClassExpression2091 + PgClassExpression2092{{"PgClassExpression[2092∈63]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2090 --> PgClassExpression2092 + PgClassExpression2093{{"PgClassExpression[2093∈63]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2090 --> PgClassExpression2093 + PgClassExpression2094{{"PgClassExpression[2094∈63]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2090 --> PgClassExpression2094 + PgClassExpression2095{{"PgClassExpression[2095∈63]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2090 --> PgClassExpression2095 + PgClassExpression2096{{"PgClassExpression[2096∈63]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2090 --> PgClassExpression2096 + PgClassExpression2097{{"PgClassExpression[2097∈63]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2090 --> PgClassExpression2097 + PgClassExpression2098{{"PgClassExpression[2098∈63]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle2069 --> PgClassExpression2098 + PgSelectSingle1978 --> PgClassExpression2099 + First2103{{"First[2103∈63]"}}:::plan + PgSelectRows2104[["PgSelectRows[2104∈63]"]]:::plan + PgSelectRows2104 --> First2103 + PgSelect2100 --> PgSelectRows2104 + PgSelectSingle2105{{"PgSelectSingle[2105∈63]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2103 --> PgSelectSingle2105 + PgClassExpression2106{{"PgClassExpression[2106∈63]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2105 --> PgClassExpression2106 + PgClassExpression2107{{"PgClassExpression[2107∈63]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2105 --> PgClassExpression2107 + PgClassExpression2108{{"PgClassExpression[2108∈63]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2105 --> PgClassExpression2108 + PgClassExpression2109{{"PgClassExpression[2109∈63]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2105 --> PgClassExpression2109 + PgClassExpression2110{{"PgClassExpression[2110∈63]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2105 --> PgClassExpression2110 + PgClassExpression2111{{"PgClassExpression[2111∈63]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2105 --> PgClassExpression2111 + PgClassExpression2112{{"PgClassExpression[2112∈63]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2105 --> PgClassExpression2112 + PgSelectSingle1978 --> PgClassExpression2113 + First2117{{"First[2117∈63]"}}:::plan + PgSelectRows2118[["PgSelectRows[2118∈63]"]]:::plan + PgSelectRows2118 --> First2117 + PgSelect2114 --> PgSelectRows2118 + PgSelectSingle2119{{"PgSelectSingle[2119∈63]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First2117 --> PgSelectSingle2119 + PgSelectSingle2119 --> PgClassExpression2120 + First2124{{"First[2124∈63]"}}:::plan + PgSelectRows2125[["PgSelectRows[2125∈63]"]]:::plan + PgSelectRows2125 --> First2124 + PgSelect2121 --> PgSelectRows2125 + PgSelectSingle2126{{"PgSelectSingle[2126∈63]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2124 --> PgSelectSingle2126 + PgClassExpression2127{{"PgClassExpression[2127∈63]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2126 --> PgClassExpression2127 + PgClassExpression2128{{"PgClassExpression[2128∈63]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2126 --> PgClassExpression2128 + PgClassExpression2129{{"PgClassExpression[2129∈63]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2126 --> PgClassExpression2129 + PgClassExpression2130{{"PgClassExpression[2130∈63]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2126 --> PgClassExpression2130 + PgClassExpression2131{{"PgClassExpression[2131∈63]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2126 --> PgClassExpression2131 + PgClassExpression2132{{"PgClassExpression[2132∈63]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2126 --> PgClassExpression2132 + PgClassExpression2133{{"PgClassExpression[2133∈63]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2126 --> PgClassExpression2133 + PgSelectSingle2119 --> PgClassExpression2134 + First2138{{"First[2138∈63]"}}:::plan + PgSelectRows2139[["PgSelectRows[2139∈63]"]]:::plan PgSelectRows2139 --> First2138 - PgSelect2136 --> PgSelectRows2139 - PgSelectSingle2140{{"PgSelectSingle[2140∈252]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + PgSelect2135 --> PgSelectRows2139 + PgSelectSingle2140{{"PgSelectSingle[2140∈63]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan First2138 --> PgSelectSingle2140 - PgClassExpression2148{{"PgClassExpression[2148∈252]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle2121 --> PgClassExpression2148 - PgSelectSingle2032 --> PgClassExpression2149 - First2152{{"First[2152∈252]"}}:::plan - PgSelectRows2153[["PgSelectRows[2153∈252]"]]:::plan - PgSelectRows2153 --> First2152 - PgSelect2150 --> PgSelectRows2153 - PgSelectSingle2154{{"PgSelectSingle[2154∈252]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2152 --> PgSelectSingle2154 - PgSelectSingle2032 --> PgClassExpression2162 - First2165{{"First[2165∈252]"}}:::plan - PgSelectRows2166[["PgSelectRows[2166∈252]"]]:::plan - PgSelectRows2166 --> First2165 - PgSelect2163 --> PgSelectRows2166 - PgSelectSingle2167{{"PgSelectSingle[2167∈252]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First2165 --> PgSelectSingle2167 - PgClassExpression2197{{"PgClassExpression[2197∈252]
ᐸ__type_fun...__.”point”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2197 - PgClassExpression2200{{"PgClassExpression[2200∈252]
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2200 - PgClassExpression2203{{"PgClassExpression[2203∈252]
ᐸ__type_fun...n__.”inet”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2203 - PgClassExpression2204{{"PgClassExpression[2204∈252]
ᐸ__type_fun...n__.”cidr”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2204 - PgClassExpression2205{{"PgClassExpression[2205∈252]
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2205 - PgClassExpression2206{{"PgClassExpression[2206∈252]
ᐸ__type_fun....”regproc”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2206 - PgClassExpression2207{{"PgClassExpression[2207∈252]
ᐸ__type_fun...procedure”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2207 - PgClassExpression2208{{"PgClassExpression[2208∈252]
ᐸ__type_fun....”regoper”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2208 - PgClassExpression2209{{"PgClassExpression[2209∈252]
ᐸ__type_fun...goperator”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2209 - PgClassExpression2210{{"PgClassExpression[2210∈252]
ᐸ__type_fun...”regclass”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2210 - PgClassExpression2211{{"PgClassExpression[2211∈252]
ᐸ__type_fun....”regtype”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2211 - PgClassExpression2212{{"PgClassExpression[2212∈252]
ᐸ__type_fun...regconfig”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2212 - PgClassExpression2213{{"PgClassExpression[2213∈252]
ᐸ__type_fun...ictionary”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2213 - PgClassExpression2214{{"PgClassExpression[2214∈252]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2214 - PgClassExpression2216{{"PgClassExpression[2216∈252]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2216 - PgClassExpression2218{{"PgClassExpression[2218∈252]
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2218 - PgClassExpression2219{{"PgClassExpression[2219∈252]
ᐸ__type_fun...tea_array”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2219 - First2223{{"First[2223∈252]"}}:::plan - PgSelectRows2224[["PgSelectRows[2224∈252]"]]:::plan - PgSelectRows2224 --> First2223 - PgSelect2221 --> PgSelectRows2224 - PgSelectSingle2225{{"PgSelectSingle[2225∈252]
ᐸpostᐳ"}}:::plan - First2223 --> PgSelectSingle2225 - First2230{{"First[2230∈252]"}}:::plan - PgSelectRows2231[["PgSelectRows[2231∈252]"]]:::plan - PgSelectRows2231 --> First2230 - PgSelect2228 --> PgSelectRows2231 - PgSelectSingle2232{{"PgSelectSingle[2232∈252]
ᐸpostᐳ"}}:::plan - First2230 --> PgSelectSingle2232 - PgClassExpression2235{{"PgClassExpression[2235∈252]
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2235 - PgClassExpression2236{{"PgClassExpression[2236∈252]
ᐸ__type_fun...ree_array”ᐳ"}}:::plan - PgSelectSingle2032 --> PgClassExpression2236 - __Item2045[/"__Item[2045∈253]
ᐸ2044ᐳ"\]:::itemplan - PgClassExpression2044 ==> __Item2045 - __Item2049[/"__Item[2049∈254]
ᐸ2048ᐳ"\]:::itemplan - PgClassExpression2048 ==> __Item2049 - Access2053{{"Access[2053∈255]
ᐸ2052.startᐳ"}}:::plan - PgClassExpression2052 --> Access2053 - Access2056{{"Access[2056∈255]
ᐸ2052.endᐳ"}}:::plan - PgClassExpression2052 --> Access2056 - __Item2093[/"__Item[2093∈264]
ᐸ2092ᐳ"\]:::itemplan - PgClassExpression2092 ==> __Item2093 - PgClassExpression2128{{"PgClassExpression[2128∈266]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2127 --> PgClassExpression2128 - PgClassExpression2129{{"PgClassExpression[2129∈266]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2127 --> PgClassExpression2129 - PgClassExpression2130{{"PgClassExpression[2130∈266]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2127 --> PgClassExpression2130 - PgClassExpression2131{{"PgClassExpression[2131∈266]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2127 --> PgClassExpression2131 - PgClassExpression2132{{"PgClassExpression[2132∈266]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2127 --> PgClassExpression2132 - PgClassExpression2133{{"PgClassExpression[2133∈266]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2127 --> PgClassExpression2133 - PgClassExpression2134{{"PgClassExpression[2134∈266]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2127 --> PgClassExpression2134 - PgClassExpression2141{{"PgClassExpression[2141∈267]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgClassExpression2141{{"PgClassExpression[2141∈63]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan PgSelectSingle2140 --> PgClassExpression2141 - PgClassExpression2142{{"PgClassExpression[2142∈267]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgClassExpression2142{{"PgClassExpression[2142∈63]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan PgSelectSingle2140 --> PgClassExpression2142 - PgClassExpression2143{{"PgClassExpression[2143∈267]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgClassExpression2143{{"PgClassExpression[2143∈63]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan PgSelectSingle2140 --> PgClassExpression2143 - PgClassExpression2144{{"PgClassExpression[2144∈267]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgClassExpression2144{{"PgClassExpression[2144∈63]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan PgSelectSingle2140 --> PgClassExpression2144 - PgClassExpression2145{{"PgClassExpression[2145∈267]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgClassExpression2145{{"PgClassExpression[2145∈63]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan PgSelectSingle2140 --> PgClassExpression2145 - PgClassExpression2146{{"PgClassExpression[2146∈267]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgClassExpression2146{{"PgClassExpression[2146∈63]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan PgSelectSingle2140 --> PgClassExpression2146 - PgClassExpression2147{{"PgClassExpression[2147∈267]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgClassExpression2147{{"PgClassExpression[2147∈63]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan PgSelectSingle2140 --> PgClassExpression2147 - PgClassExpression2155{{"PgClassExpression[2155∈268]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2154 --> PgClassExpression2155 - PgClassExpression2156{{"PgClassExpression[2156∈268]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2154 --> PgClassExpression2156 - PgClassExpression2157{{"PgClassExpression[2157∈268]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2154 --> PgClassExpression2157 - PgClassExpression2158{{"PgClassExpression[2158∈268]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2154 --> PgClassExpression2158 - PgClassExpression2159{{"PgClassExpression[2159∈268]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2154 --> PgClassExpression2159 - PgClassExpression2160{{"PgClassExpression[2160∈268]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2154 --> PgClassExpression2160 - PgClassExpression2161{{"PgClassExpression[2161∈268]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2154 --> PgClassExpression2161 - PgSelect2169[["PgSelect[2169∈269]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2168{{"PgClassExpression[2168∈269]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression2168 --> PgSelect2169 - PgSelect2184[["PgSelect[2184∈269]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2183{{"PgClassExpression[2183∈269]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression2183 --> PgSelect2184 - PgSelectSingle2167 --> PgClassExpression2168 - First2173{{"First[2173∈269]"}}:::plan - PgSelectRows2174[["PgSelectRows[2174∈269]"]]:::plan - PgSelectRows2174 --> First2173 - PgSelect2169 --> PgSelectRows2174 - PgSelectSingle2175{{"PgSelectSingle[2175∈269]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2173 --> PgSelectSingle2175 - PgSelectSingle2167 --> PgClassExpression2183 - First2186{{"First[2186∈269]"}}:::plan - PgSelectRows2187[["PgSelectRows[2187∈269]"]]:::plan - PgSelectRows2187 --> First2186 - PgSelect2184 --> PgSelectRows2187 - PgSelectSingle2188{{"PgSelectSingle[2188∈269]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2186 --> PgSelectSingle2188 - PgClassExpression2196{{"PgClassExpression[2196∈269]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle2167 --> PgClassExpression2196 - PgClassExpression2176{{"PgClassExpression[2176∈270]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2175 --> PgClassExpression2176 - PgClassExpression2177{{"PgClassExpression[2177∈270]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2175 --> PgClassExpression2177 - PgClassExpression2178{{"PgClassExpression[2178∈270]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2175 --> PgClassExpression2178 - PgClassExpression2179{{"PgClassExpression[2179∈270]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2175 --> PgClassExpression2179 - PgClassExpression2180{{"PgClassExpression[2180∈270]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2175 --> PgClassExpression2180 - PgClassExpression2181{{"PgClassExpression[2181∈270]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2175 --> PgClassExpression2181 - PgClassExpression2182{{"PgClassExpression[2182∈270]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2175 --> PgClassExpression2182 - PgClassExpression2189{{"PgClassExpression[2189∈271]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2188 --> PgClassExpression2189 - PgClassExpression2190{{"PgClassExpression[2190∈271]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2188 --> PgClassExpression2190 - PgClassExpression2191{{"PgClassExpression[2191∈271]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2188 --> PgClassExpression2191 - PgClassExpression2192{{"PgClassExpression[2192∈271]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2188 --> PgClassExpression2192 - PgClassExpression2193{{"PgClassExpression[2193∈271]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2188 --> PgClassExpression2193 - PgClassExpression2194{{"PgClassExpression[2194∈271]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2188 --> PgClassExpression2194 - PgClassExpression2195{{"PgClassExpression[2195∈271]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2188 --> PgClassExpression2195 - __Item2215[/"__Item[2215∈273]
ᐸ2214ᐳ"\]:::itemplan - PgClassExpression2214 ==> __Item2215 - __Item2217[/"__Item[2217∈274]
ᐸ2216ᐳ"\]:::itemplan - PgClassExpression2216 ==> __Item2217 - __Item2220[/"__Item[2220∈275]
ᐸ2219ᐳ"\]:::itemplan - PgClassExpression2219 ==> __Item2220 - PgClassExpression2226{{"PgClassExpression[2226∈276]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle2225 --> PgClassExpression2226 - PgClassExpression2227{{"PgClassExpression[2227∈276]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle2225 --> PgClassExpression2227 - PgClassExpression2233{{"PgClassExpression[2233∈277]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle2232 --> PgClassExpression2233 - PgClassExpression2234{{"PgClassExpression[2234∈277]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle2232 --> PgClassExpression2234 - __Item2237[/"__Item[2237∈278]
ᐸ2236ᐳ"\]:::itemplan - PgClassExpression2236 ==> __Item2237 - Object3127{{"Object[3127∈279] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access3122{{"Access[3122∈279] ➊
ᐸ2695.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access3122 --> Object3127 - PgSelect2274[["PgSelect[2274∈279] ➊
ᐸperson_type_functionᐳ"]]:::plan - PgClassExpression2273{{"PgClassExpression[2273∈279] ➊
ᐸ__person__ᐳ"}}:::plan - Object12 & PgClassExpression2273 & Constant3803 --> PgSelect2274 - PgSelect2695[["PgSelect[2695∈279] ➊
ᐸperson_type_function_connection+1ᐳ"]]:::plan - Object12 & PgClassExpression2273 & Connection2694 --> PgSelect2695 - PgSelect3113[["PgSelect[3113∈279] ➊
ᐸperson_type_function_connection(aggregate)ᐳ"]]:::plan - Object12 & PgClassExpression2273 & Connection2694 --> PgSelect3113 - Object3123{{"Object[3123∈279] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access3122 --> Object3123 - PgSelect2484[["PgSelect[2484∈279] ➊
ᐸperson_type_function_listᐳ"]]:::plan - Object12 & PgClassExpression2273 --> PgSelect2484 - __ListTransform2902[["__ListTransform[2902∈279] ➊
ᐸeach:2901ᐳ"]]:::plan - PgSelectRows2696[["PgSelectRows[2696∈279] ➊"]]:::plan - PgSelectRows2696 & PgSelect2695 --> __ListTransform2902 - PgCursor3134{{"PgCursor[3134∈279] ➊"}}:::plan - PgSelectSingle3132{{"PgSelectSingle[3132∈279] ➊
ᐸperson_type_function_connectionᐳ"}}:::plan - Access2909{{"Access[2909∈279] ➊
ᐸ2695.cursorDetailsᐳ"}}:::plan - PgSelectSingle3132 & Access2909 --> PgCursor3134 - PgCursor3140{{"PgCursor[3140∈279] ➊"}}:::plan - PgSelectSingle3138{{"PgSelectSingle[3138∈279] ➊
ᐸperson_type_function_connectionᐳ"}}:::plan - PgSelectSingle3138 & Access2909 --> PgCursor3140 - PgSelectSingle2271 --> PgClassExpression2273 - First2278{{"First[2278∈279] ➊"}}:::plan - PgSelectRows2279[["PgSelectRows[2279∈279] ➊"]]:::plan - PgSelectRows2279 --> First2278 - PgSelect2274 --> PgSelectRows2279 - PgSelectSingle2280{{"PgSelectSingle[2280∈279] ➊
ᐸperson_type_functionᐳ"}}:::plan - First2278 --> PgSelectSingle2280 - PgSelectRows2486[["PgSelectRows[2486∈279] ➊"]]:::plan - PgSelect2484 --> PgSelectRows2486 - PgSelect2695 --> PgSelectRows2696 - PgSelect2695 --> Access2909 - First3114{{"First[3114∈279] ➊"}}:::plan - PgSelectRows3115[["PgSelectRows[3115∈279] ➊"]]:::plan - PgSelectRows3115 --> First3114 - PgSelect3113 --> PgSelectRows3115 - PgSelectSingle3116{{"PgSelectSingle[3116∈279] ➊
ᐸperson_type_function_connectionᐳ"}}:::plan - First3114 --> PgSelectSingle3116 - PgClassExpression3117{{"PgClassExpression[3117∈279] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle3116 --> PgClassExpression3117 - PgSelect2695 --> Access3122 - Lambda3124{{"Lambda[3124∈279] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object3123 --> Lambda3124 - Lambda3128{{"Lambda[3128∈279] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object3127 --> Lambda3128 - First3130{{"First[3130∈279] ➊"}}:::plan - PgSelectRows2696 --> First3130 - First3130 --> PgSelectSingle3132 - Last3136{{"Last[3136∈279] ➊"}}:::plan - PgSelectRows2696 --> Last3136 - Last3136 --> PgSelectSingle3138 - PgSelect2347[["PgSelect[2347∈280] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2346{{"PgClassExpression[2346∈280] ➊
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2346 --> PgSelect2347 - PgSelect2362[["PgSelect[2362∈280] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression2361{{"PgClassExpression[2361∈280] ➊
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2361 --> PgSelect2362 - PgSelect2368[["PgSelect[2368∈280] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2367{{"PgClassExpression[2367∈280] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression2367 --> PgSelect2368 - PgSelect2381[["PgSelect[2381∈280] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2380{{"PgClassExpression[2380∈280] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression2380 --> PgSelect2381 - PgSelect2395[["PgSelect[2395∈280] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2394{{"PgClassExpression[2394∈280] ➊
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2394 --> PgSelect2395 - PgSelect2408[["PgSelect[2408∈280] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression2407{{"PgClassExpression[2407∈280] ➊
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2407 --> PgSelect2408 - PgSelect2466[["PgSelect[2466∈280] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression2282{{"PgClassExpression[2282∈280] ➊
ᐸ__person_t...”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression2282 --> PgSelect2466 - PgSelect2473[["PgSelect[2473∈280] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression2281{{"PgClassExpression[2281∈280] ➊
ᐸ__person_t...ion__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression2281 --> PgSelect2473 - PgSelectSingle2280 --> PgClassExpression2281 - PgSelectSingle2280 --> PgClassExpression2282 - PgClassExpression2283{{"PgClassExpression[2283∈280] ➊
ᐸ__person_t..._.”bigint”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2283 - PgClassExpression2284{{"PgClassExpression[2284∈280] ➊
ᐸ__person_t....”numeric”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2284 - PgClassExpression2285{{"PgClassExpression[2285∈280] ➊
ᐸ__person_t....”decimal”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2285 - PgClassExpression2286{{"PgClassExpression[2286∈280] ➊
ᐸ__person_t....”boolean”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2286 - PgClassExpression2287{{"PgClassExpression[2287∈280] ➊
ᐸ__person_t....”varchar”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2287 - PgClassExpression2288{{"PgClassExpression[2288∈280] ➊
ᐸ__person_t...n__.”enum”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2288 - PgClassExpression2289{{"PgClassExpression[2289∈280] ➊
ᐸ__person_t...num_array”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2289 - PgClassExpression2291{{"PgClassExpression[2291∈280] ➊
ᐸ__person_t..._.”domain”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2291 - PgClassExpression2292{{"PgClassExpression[2292∈280] ➊
ᐸ__person_t....”domain2”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2292 - PgClassExpression2293{{"PgClassExpression[2293∈280] ➊
ᐸ__person_t...ext_array”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2293 - PgClassExpression2295{{"PgClassExpression[2295∈280] ➊
ᐸ__person_t...n__.”json”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2295 - PgClassExpression2296{{"PgClassExpression[2296∈280] ➊
ᐸ__person_t...__.”jsonb”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2296 - PgClassExpression2297{{"PgClassExpression[2297∈280] ➊
ᐸ__person_t...ble_range”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2297 - PgClassExpression2304{{"PgClassExpression[2304∈280] ➊
ᐸ__person_t...”numrange”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2304 - Access2305{{"Access[2305∈280] ➊
ᐸ2304.startᐳ"}}:::plan - PgClassExpression2304 --> Access2305 - Access2308{{"Access[2308∈280] ➊
ᐸ2304.endᐳ"}}:::plan - PgClassExpression2304 --> Access2308 - PgClassExpression2311{{"PgClassExpression[2311∈280] ➊
ᐸ__person_t...daterange”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2311 - Access2312{{"Access[2312∈280] ➊
ᐸ2311.startᐳ"}}:::plan - PgClassExpression2311 --> Access2312 - Access2315{{"Access[2315∈280] ➊
ᐸ2311.endᐳ"}}:::plan - PgClassExpression2311 --> Access2315 - PgClassExpression2318{{"PgClassExpression[2318∈280] ➊
ᐸ__person_t...int_range”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2318 - Access2319{{"Access[2319∈280] ➊
ᐸ2318.startᐳ"}}:::plan - PgClassExpression2318 --> Access2319 - Access2322{{"Access[2322∈280] ➊
ᐸ2318.endᐳ"}}:::plan - PgClassExpression2318 --> Access2322 - PgClassExpression2325{{"PgClassExpression[2325∈280] ➊
ᐸ__person_t...timestamp”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2325 - PgClassExpression2326{{"PgClassExpression[2326∈280] ➊
ᐸ__person_t...mestamptz”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2326 - PgClassExpression2327{{"PgClassExpression[2327∈280] ➊
ᐸ__person_t...n__.”date”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2327 - PgClassExpression2328{{"PgClassExpression[2328∈280] ➊
ᐸ__person_t...n__.”time”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2328 - PgClassExpression2329{{"PgClassExpression[2329∈280] ➊
ᐸ__person_t..._.”timetz”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2329 - PgClassExpression2330{{"PgClassExpression[2330∈280] ➊
ᐸ__person_t...”interval”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2330 - PgClassExpression2337{{"PgClassExpression[2337∈280] ➊
ᐸ__person_t...val_array”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2337 - PgClassExpression2345{{"PgClassExpression[2345∈280] ➊
ᐸ__person_t...__.”money”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2345 - PgSelectSingle2280 --> PgClassExpression2346 - First2351{{"First[2351∈280] ➊"}}:::plan - PgSelectRows2352[["PgSelectRows[2352∈280] ➊"]]:::plan - PgSelectRows2352 --> First2351 - PgSelect2347 --> PgSelectRows2352 - PgSelectSingle2353{{"PgSelectSingle[2353∈280] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2351 --> PgSelectSingle2353 - PgClassExpression2354{{"PgClassExpression[2354∈280] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2353 --> PgClassExpression2354 - PgClassExpression2355{{"PgClassExpression[2355∈280] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2353 --> PgClassExpression2355 - PgClassExpression2356{{"PgClassExpression[2356∈280] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2353 --> PgClassExpression2356 - PgClassExpression2357{{"PgClassExpression[2357∈280] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2353 --> PgClassExpression2357 - PgClassExpression2358{{"PgClassExpression[2358∈280] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2353 --> PgClassExpression2358 - PgClassExpression2359{{"PgClassExpression[2359∈280] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2353 --> PgClassExpression2359 - PgClassExpression2360{{"PgClassExpression[2360∈280] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2353 --> PgClassExpression2360 - PgSelectSingle2280 --> PgClassExpression2361 - First2364{{"First[2364∈280] ➊"}}:::plan - PgSelectRows2365[["PgSelectRows[2365∈280] ➊"]]:::plan - PgSelectRows2365 --> First2364 - PgSelect2362 --> PgSelectRows2365 - PgSelectSingle2366{{"PgSelectSingle[2366∈280] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First2364 --> PgSelectSingle2366 - PgSelectSingle2366 --> PgClassExpression2367 - First2370{{"First[2370∈280] ➊"}}:::plan - PgSelectRows2371[["PgSelectRows[2371∈280] ➊"]]:::plan - PgSelectRows2371 --> First2370 - PgSelect2368 --> PgSelectRows2371 - PgSelectSingle2372{{"PgSelectSingle[2372∈280] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2370 --> PgSelectSingle2372 - PgSelectSingle2366 --> PgClassExpression2380 - First2383{{"First[2383∈280] ➊"}}:::plan - PgSelectRows2384[["PgSelectRows[2384∈280] ➊"]]:::plan - PgSelectRows2384 --> First2383 - PgSelect2381 --> PgSelectRows2384 - PgSelectSingle2385{{"PgSelectSingle[2385∈280] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2383 --> PgSelectSingle2385 - PgClassExpression2393{{"PgClassExpression[2393∈280] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle2366 --> PgClassExpression2393 - PgSelectSingle2280 --> PgClassExpression2394 - First2397{{"First[2397∈280] ➊"}}:::plan - PgSelectRows2398[["PgSelectRows[2398∈280] ➊"]]:::plan - PgSelectRows2398 --> First2397 - PgSelect2395 --> PgSelectRows2398 - PgSelectSingle2399{{"PgSelectSingle[2399∈280] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2397 --> PgSelectSingle2399 - PgSelectSingle2280 --> PgClassExpression2407 - First2410{{"First[2410∈280] ➊"}}:::plan - PgSelectRows2411[["PgSelectRows[2411∈280] ➊"]]:::plan - PgSelectRows2411 --> First2410 - PgSelect2408 --> PgSelectRows2411 - PgSelectSingle2412{{"PgSelectSingle[2412∈280] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First2410 --> PgSelectSingle2412 - PgClassExpression2442{{"PgClassExpression[2442∈280] ➊
ᐸ__person_t...__.”point”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2442 - PgClassExpression2445{{"PgClassExpression[2445∈280] ➊
ᐸ__person_t...ablePoint”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2445 - PgClassExpression2448{{"PgClassExpression[2448∈280] ➊
ᐸ__person_t...n__.”inet”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2448 - PgClassExpression2449{{"PgClassExpression[2449∈280] ➊
ᐸ__person_t...n__.”cidr”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2449 - PgClassExpression2450{{"PgClassExpression[2450∈280] ➊
ᐸ__person_t....”macaddr”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2450 - PgClassExpression2451{{"PgClassExpression[2451∈280] ➊
ᐸ__person_t....”regproc”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2451 - PgClassExpression2452{{"PgClassExpression[2452∈280] ➊
ᐸ__person_t...procedure”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2452 - PgClassExpression2453{{"PgClassExpression[2453∈280] ➊
ᐸ__person_t....”regoper”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2453 - PgClassExpression2454{{"PgClassExpression[2454∈280] ➊
ᐸ__person_t...goperator”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2454 - PgClassExpression2455{{"PgClassExpression[2455∈280] ➊
ᐸ__person_t...”regclass”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2455 - PgClassExpression2456{{"PgClassExpression[2456∈280] ➊
ᐸ__person_t....”regtype”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2456 - PgClassExpression2457{{"PgClassExpression[2457∈280] ➊
ᐸ__person_t...regconfig”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2457 - PgClassExpression2458{{"PgClassExpression[2458∈280] ➊
ᐸ__person_t...ictionary”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2458 - PgClassExpression2459{{"PgClassExpression[2459∈280] ➊
ᐸ__person_t...ay_domain”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2459 - PgClassExpression2461{{"PgClassExpression[2461∈280] ➊
ᐸ__person_t...ay_domain”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2461 - PgClassExpression2463{{"PgClassExpression[2463∈280] ➊
ᐸ__person_t...__.”bytea”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2463 - PgClassExpression2464{{"PgClassExpression[2464∈280] ➊
ᐸ__person_t...tea_array”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2464 - First2468{{"First[2468∈280] ➊"}}:::plan - PgSelectRows2469[["PgSelectRows[2469∈280] ➊"]]:::plan - PgSelectRows2469 --> First2468 - PgSelect2466 --> PgSelectRows2469 - PgSelectSingle2470{{"PgSelectSingle[2470∈280] ➊
ᐸpostᐳ"}}:::plan - First2468 --> PgSelectSingle2470 - First2475{{"First[2475∈280] ➊"}}:::plan - PgSelectRows2476[["PgSelectRows[2476∈280] ➊"]]:::plan - PgSelectRows2476 --> First2475 - PgSelect2473 --> PgSelectRows2476 - PgSelectSingle2477{{"PgSelectSingle[2477∈280] ➊
ᐸpostᐳ"}}:::plan - First2475 --> PgSelectSingle2477 - PgClassExpression2480{{"PgClassExpression[2480∈280] ➊
ᐸ__person_t...__.”ltree”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2480 - PgClassExpression2481{{"PgClassExpression[2481∈280] ➊
ᐸ__person_t...ree_array”ᐳ"}}:::plan - PgSelectSingle2280 --> PgClassExpression2481 - __Item2290[/"__Item[2290∈281]
ᐸ2289ᐳ"\]:::itemplan - PgClassExpression2289 ==> __Item2290 - __Item2294[/"__Item[2294∈282]
ᐸ2293ᐳ"\]:::itemplan - PgClassExpression2293 ==> __Item2294 - Access2298{{"Access[2298∈283] ➊
ᐸ2297.startᐳ"}}:::plan - PgClassExpression2297 --> Access2298 - Access2301{{"Access[2301∈283] ➊
ᐸ2297.endᐳ"}}:::plan - PgClassExpression2297 --> Access2301 - __Item2338[/"__Item[2338∈292]
ᐸ2337ᐳ"\]:::itemplan - PgClassExpression2337 ==> __Item2338 - PgClassExpression2373{{"PgClassExpression[2373∈294] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2372 --> PgClassExpression2373 - PgClassExpression2374{{"PgClassExpression[2374∈294] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2372 --> PgClassExpression2374 - PgClassExpression2375{{"PgClassExpression[2375∈294] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2372 --> PgClassExpression2375 - PgClassExpression2376{{"PgClassExpression[2376∈294] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2372 --> PgClassExpression2376 - PgClassExpression2377{{"PgClassExpression[2377∈294] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2372 --> PgClassExpression2377 - PgClassExpression2378{{"PgClassExpression[2378∈294] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2372 --> PgClassExpression2378 - PgClassExpression2379{{"PgClassExpression[2379∈294] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2372 --> PgClassExpression2379 - PgClassExpression2386{{"PgClassExpression[2386∈295] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2385 --> PgClassExpression2386 - PgClassExpression2387{{"PgClassExpression[2387∈295] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2385 --> PgClassExpression2387 - PgClassExpression2388{{"PgClassExpression[2388∈295] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2385 --> PgClassExpression2388 - PgClassExpression2389{{"PgClassExpression[2389∈295] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2385 --> PgClassExpression2389 - PgClassExpression2390{{"PgClassExpression[2390∈295] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2385 --> PgClassExpression2390 - PgClassExpression2391{{"PgClassExpression[2391∈295] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2385 --> PgClassExpression2391 - PgClassExpression2392{{"PgClassExpression[2392∈295] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2385 --> PgClassExpression2392 - PgClassExpression2400{{"PgClassExpression[2400∈296] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2399 --> PgClassExpression2400 - PgClassExpression2401{{"PgClassExpression[2401∈296] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2399 --> PgClassExpression2401 - PgClassExpression2402{{"PgClassExpression[2402∈296] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2399 --> PgClassExpression2402 - PgClassExpression2403{{"PgClassExpression[2403∈296] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2399 --> PgClassExpression2403 - PgClassExpression2404{{"PgClassExpression[2404∈296] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2399 --> PgClassExpression2404 - PgClassExpression2405{{"PgClassExpression[2405∈296] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2399 --> PgClassExpression2405 - PgClassExpression2406{{"PgClassExpression[2406∈296] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2399 --> PgClassExpression2406 - PgSelect2414[["PgSelect[2414∈297] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2413{{"PgClassExpression[2413∈297] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression2413 --> PgSelect2414 - PgSelect2429[["PgSelect[2429∈297] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2428{{"PgClassExpression[2428∈297] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression2428 --> PgSelect2429 - PgSelectSingle2412 --> PgClassExpression2413 - First2418{{"First[2418∈297] ➊"}}:::plan - PgSelectRows2419[["PgSelectRows[2419∈297] ➊"]]:::plan - PgSelectRows2419 --> First2418 - PgSelect2414 --> PgSelectRows2419 - PgSelectSingle2420{{"PgSelectSingle[2420∈297] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2418 --> PgSelectSingle2420 - PgSelectSingle2412 --> PgClassExpression2428 - First2431{{"First[2431∈297] ➊"}}:::plan - PgSelectRows2432[["PgSelectRows[2432∈297] ➊"]]:::plan - PgSelectRows2432 --> First2431 - PgSelect2429 --> PgSelectRows2432 - PgSelectSingle2433{{"PgSelectSingle[2433∈297] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2431 --> PgSelectSingle2433 - PgClassExpression2441{{"PgClassExpression[2441∈297] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle2412 --> PgClassExpression2441 - PgClassExpression2421{{"PgClassExpression[2421∈298] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2420 --> PgClassExpression2421 - PgClassExpression2422{{"PgClassExpression[2422∈298] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2420 --> PgClassExpression2422 - PgClassExpression2423{{"PgClassExpression[2423∈298] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2420 --> PgClassExpression2423 - PgClassExpression2424{{"PgClassExpression[2424∈298] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2420 --> PgClassExpression2424 - PgClassExpression2425{{"PgClassExpression[2425∈298] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2420 --> PgClassExpression2425 - PgClassExpression2426{{"PgClassExpression[2426∈298] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2420 --> PgClassExpression2426 - PgClassExpression2427{{"PgClassExpression[2427∈298] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2420 --> PgClassExpression2427 - PgClassExpression2434{{"PgClassExpression[2434∈299] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2433 --> PgClassExpression2434 - PgClassExpression2435{{"PgClassExpression[2435∈299] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2433 --> PgClassExpression2435 - PgClassExpression2436{{"PgClassExpression[2436∈299] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2433 --> PgClassExpression2436 - PgClassExpression2437{{"PgClassExpression[2437∈299] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2433 --> PgClassExpression2437 - PgClassExpression2438{{"PgClassExpression[2438∈299] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2433 --> PgClassExpression2438 - PgClassExpression2439{{"PgClassExpression[2439∈299] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2433 --> PgClassExpression2439 - PgClassExpression2440{{"PgClassExpression[2440∈299] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2433 --> PgClassExpression2440 - __Item2460[/"__Item[2460∈301]
ᐸ2459ᐳ"\]:::itemplan - PgClassExpression2459 ==> __Item2460 - __Item2462[/"__Item[2462∈302]
ᐸ2461ᐳ"\]:::itemplan - PgClassExpression2461 ==> __Item2462 - __Item2465[/"__Item[2465∈303]
ᐸ2464ᐳ"\]:::itemplan - PgClassExpression2464 ==> __Item2465 - PgClassExpression2471{{"PgClassExpression[2471∈304] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle2470 --> PgClassExpression2471 - PgClassExpression2472{{"PgClassExpression[2472∈304] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle2470 --> PgClassExpression2472 - PgClassExpression2478{{"PgClassExpression[2478∈305] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle2477 --> PgClassExpression2478 - PgClassExpression2479{{"PgClassExpression[2479∈305] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle2477 --> PgClassExpression2479 - __Item2482[/"__Item[2482∈306]
ᐸ2481ᐳ"\]:::itemplan - PgClassExpression2481 ==> __Item2482 - __Item2487[/"__Item[2487∈307]
ᐸ2486ᐳ"\]:::itemplan - PgSelectRows2486 ==> __Item2487 - PgSelectSingle2488{{"PgSelectSingle[2488∈307]
ᐸperson_type_function_listᐳ"}}:::plan - __Item2487 --> PgSelectSingle2488 - PgSelect2555[["PgSelect[2555∈308]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2554{{"PgClassExpression[2554∈308]
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2554 --> PgSelect2555 - PgSelect2570[["PgSelect[2570∈308]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression2569{{"PgClassExpression[2569∈308]
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2569 --> PgSelect2570 - PgSelect2576[["PgSelect[2576∈308]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2575{{"PgClassExpression[2575∈308]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression2575 --> PgSelect2576 - PgSelect2589[["PgSelect[2589∈308]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2588{{"PgClassExpression[2588∈308]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression2588 --> PgSelect2589 - PgSelect2603[["PgSelect[2603∈308]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2602{{"PgClassExpression[2602∈308]
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2602 --> PgSelect2603 - PgSelect2616[["PgSelect[2616∈308]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression2615{{"PgClassExpression[2615∈308]
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2615 --> PgSelect2616 - PgSelect2674[["PgSelect[2674∈308]
ᐸpostᐳ"]]:::plan - PgClassExpression2490{{"PgClassExpression[2490∈308]
ᐸ__person_t...”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression2490 --> PgSelect2674 - PgSelect2681[["PgSelect[2681∈308]
ᐸpostᐳ"]]:::plan - PgClassExpression2489{{"PgClassExpression[2489∈308]
ᐸ__person_t...ist__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression2489 --> PgSelect2681 - PgSelectSingle2488 --> PgClassExpression2489 - PgSelectSingle2488 --> PgClassExpression2490 - PgClassExpression2491{{"PgClassExpression[2491∈308]
ᐸ__person_t..._.”bigint”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2491 - PgClassExpression2492{{"PgClassExpression[2492∈308]
ᐸ__person_t....”numeric”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2492 - PgClassExpression2493{{"PgClassExpression[2493∈308]
ᐸ__person_t....”decimal”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2493 - PgClassExpression2494{{"PgClassExpression[2494∈308]
ᐸ__person_t....”boolean”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2494 - PgClassExpression2495{{"PgClassExpression[2495∈308]
ᐸ__person_t....”varchar”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2495 - PgClassExpression2496{{"PgClassExpression[2496∈308]
ᐸ__person_t...t__.”enum”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2496 - PgClassExpression2497{{"PgClassExpression[2497∈308]
ᐸ__person_t...num_array”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2497 - PgClassExpression2499{{"PgClassExpression[2499∈308]
ᐸ__person_t..._.”domain”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2499 - PgClassExpression2500{{"PgClassExpression[2500∈308]
ᐸ__person_t....”domain2”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2500 - PgClassExpression2501{{"PgClassExpression[2501∈308]
ᐸ__person_t...ext_array”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2501 - PgClassExpression2503{{"PgClassExpression[2503∈308]
ᐸ__person_t...t__.”json”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2503 - PgClassExpression2504{{"PgClassExpression[2504∈308]
ᐸ__person_t...__.”jsonb”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2504 - PgClassExpression2505{{"PgClassExpression[2505∈308]
ᐸ__person_t...ble_range”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2505 - PgClassExpression2512{{"PgClassExpression[2512∈308]
ᐸ__person_t...”numrange”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2512 - Access2513{{"Access[2513∈308]
ᐸ2512.startᐳ"}}:::plan - PgClassExpression2512 --> Access2513 - Access2516{{"Access[2516∈308]
ᐸ2512.endᐳ"}}:::plan - PgClassExpression2512 --> Access2516 - PgClassExpression2519{{"PgClassExpression[2519∈308]
ᐸ__person_t...daterange”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2519 - Access2520{{"Access[2520∈308]
ᐸ2519.startᐳ"}}:::plan - PgClassExpression2519 --> Access2520 - Access2523{{"Access[2523∈308]
ᐸ2519.endᐳ"}}:::plan - PgClassExpression2519 --> Access2523 - PgClassExpression2526{{"PgClassExpression[2526∈308]
ᐸ__person_t...int_range”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2526 - Access2527{{"Access[2527∈308]
ᐸ2526.startᐳ"}}:::plan - PgClassExpression2526 --> Access2527 - Access2530{{"Access[2530∈308]
ᐸ2526.endᐳ"}}:::plan - PgClassExpression2526 --> Access2530 - PgClassExpression2533{{"PgClassExpression[2533∈308]
ᐸ__person_t...timestamp”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2533 - PgClassExpression2534{{"PgClassExpression[2534∈308]
ᐸ__person_t...mestamptz”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2534 - PgClassExpression2535{{"PgClassExpression[2535∈308]
ᐸ__person_t...t__.”date”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2535 - PgClassExpression2536{{"PgClassExpression[2536∈308]
ᐸ__person_t...t__.”time”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2536 - PgClassExpression2537{{"PgClassExpression[2537∈308]
ᐸ__person_t..._.”timetz”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2537 - PgClassExpression2538{{"PgClassExpression[2538∈308]
ᐸ__person_t...”interval”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2538 - PgClassExpression2545{{"PgClassExpression[2545∈308]
ᐸ__person_t...val_array”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2545 - PgClassExpression2553{{"PgClassExpression[2553∈308]
ᐸ__person_t...__.”money”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2553 - PgSelectSingle2488 --> PgClassExpression2554 - First2559{{"First[2559∈308]"}}:::plan - PgSelectRows2560[["PgSelectRows[2560∈308]"]]:::plan - PgSelectRows2560 --> First2559 - PgSelect2555 --> PgSelectRows2560 - PgSelectSingle2561{{"PgSelectSingle[2561∈308]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2559 --> PgSelectSingle2561 - PgClassExpression2562{{"PgClassExpression[2562∈308]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2561 --> PgClassExpression2562 - PgClassExpression2563{{"PgClassExpression[2563∈308]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2561 --> PgClassExpression2563 - PgClassExpression2564{{"PgClassExpression[2564∈308]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2561 --> PgClassExpression2564 - PgClassExpression2565{{"PgClassExpression[2565∈308]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2561 --> PgClassExpression2565 - PgClassExpression2566{{"PgClassExpression[2566∈308]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2561 --> PgClassExpression2566 - PgClassExpression2567{{"PgClassExpression[2567∈308]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2561 --> PgClassExpression2567 - PgClassExpression2568{{"PgClassExpression[2568∈308]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2561 --> PgClassExpression2568 - PgSelectSingle2488 --> PgClassExpression2569 - First2572{{"First[2572∈308]"}}:::plan - PgSelectRows2573[["PgSelectRows[2573∈308]"]]:::plan - PgSelectRows2573 --> First2572 - PgSelect2570 --> PgSelectRows2573 - PgSelectSingle2574{{"PgSelectSingle[2574∈308]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First2572 --> PgSelectSingle2574 - PgSelectSingle2574 --> PgClassExpression2575 - First2578{{"First[2578∈308]"}}:::plan - PgSelectRows2579[["PgSelectRows[2579∈308]"]]:::plan - PgSelectRows2579 --> First2578 - PgSelect2576 --> PgSelectRows2579 - PgSelectSingle2580{{"PgSelectSingle[2580∈308]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2578 --> PgSelectSingle2580 - PgSelectSingle2574 --> PgClassExpression2588 - First2591{{"First[2591∈308]"}}:::plan - PgSelectRows2592[["PgSelectRows[2592∈308]"]]:::plan - PgSelectRows2592 --> First2591 - PgSelect2589 --> PgSelectRows2592 - PgSelectSingle2593{{"PgSelectSingle[2593∈308]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2591 --> PgSelectSingle2593 - PgClassExpression2601{{"PgClassExpression[2601∈308]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle2574 --> PgClassExpression2601 - PgSelectSingle2488 --> PgClassExpression2602 - First2605{{"First[2605∈308]"}}:::plan - PgSelectRows2606[["PgSelectRows[2606∈308]"]]:::plan - PgSelectRows2606 --> First2605 - PgSelect2603 --> PgSelectRows2606 - PgSelectSingle2607{{"PgSelectSingle[2607∈308]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2605 --> PgSelectSingle2607 - PgSelectSingle2488 --> PgClassExpression2615 - First2618{{"First[2618∈308]"}}:::plan - PgSelectRows2619[["PgSelectRows[2619∈308]"]]:::plan - PgSelectRows2619 --> First2618 - PgSelect2616 --> PgSelectRows2619 - PgSelectSingle2620{{"PgSelectSingle[2620∈308]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First2618 --> PgSelectSingle2620 - PgClassExpression2650{{"PgClassExpression[2650∈308]
ᐸ__person_t...__.”point”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2650 - PgClassExpression2653{{"PgClassExpression[2653∈308]
ᐸ__person_t...ablePoint”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2653 - PgClassExpression2656{{"PgClassExpression[2656∈308]
ᐸ__person_t...t__.”inet”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2656 - PgClassExpression2657{{"PgClassExpression[2657∈308]
ᐸ__person_t...t__.”cidr”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2657 - PgClassExpression2658{{"PgClassExpression[2658∈308]
ᐸ__person_t....”macaddr”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2658 - PgClassExpression2659{{"PgClassExpression[2659∈308]
ᐸ__person_t....”regproc”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2659 - PgClassExpression2660{{"PgClassExpression[2660∈308]
ᐸ__person_t...procedure”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2660 - PgClassExpression2661{{"PgClassExpression[2661∈308]
ᐸ__person_t....”regoper”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2661 - PgClassExpression2662{{"PgClassExpression[2662∈308]
ᐸ__person_t...goperator”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2662 - PgClassExpression2663{{"PgClassExpression[2663∈308]
ᐸ__person_t...”regclass”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2663 - PgClassExpression2664{{"PgClassExpression[2664∈308]
ᐸ__person_t....”regtype”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2664 - PgClassExpression2665{{"PgClassExpression[2665∈308]
ᐸ__person_t...regconfig”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2665 - PgClassExpression2666{{"PgClassExpression[2666∈308]
ᐸ__person_t...ictionary”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2666 - PgClassExpression2667{{"PgClassExpression[2667∈308]
ᐸ__person_t...ay_domain”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2667 - PgClassExpression2669{{"PgClassExpression[2669∈308]
ᐸ__person_t...ay_domain”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2669 - PgClassExpression2671{{"PgClassExpression[2671∈308]
ᐸ__person_t...__.”bytea”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2671 - PgClassExpression2672{{"PgClassExpression[2672∈308]
ᐸ__person_t...tea_array”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2672 - First2676{{"First[2676∈308]"}}:::plan - PgSelectRows2677[["PgSelectRows[2677∈308]"]]:::plan - PgSelectRows2677 --> First2676 - PgSelect2674 --> PgSelectRows2677 - PgSelectSingle2678{{"PgSelectSingle[2678∈308]
ᐸpostᐳ"}}:::plan - First2676 --> PgSelectSingle2678 - First2683{{"First[2683∈308]"}}:::plan - PgSelectRows2684[["PgSelectRows[2684∈308]"]]:::plan - PgSelectRows2684 --> First2683 - PgSelect2681 --> PgSelectRows2684 - PgSelectSingle2685{{"PgSelectSingle[2685∈308]
ᐸpostᐳ"}}:::plan - First2683 --> PgSelectSingle2685 - PgClassExpression2688{{"PgClassExpression[2688∈308]
ᐸ__person_t...__.”ltree”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2688 - PgClassExpression2689{{"PgClassExpression[2689∈308]
ᐸ__person_t...ree_array”ᐳ"}}:::plan - PgSelectSingle2488 --> PgClassExpression2689 - __Item2498[/"__Item[2498∈309]
ᐸ2497ᐳ"\]:::itemplan - PgClassExpression2497 ==> __Item2498 - __Item2502[/"__Item[2502∈310]
ᐸ2501ᐳ"\]:::itemplan - PgClassExpression2501 ==> __Item2502 - Access2506{{"Access[2506∈311]
ᐸ2505.startᐳ"}}:::plan - PgClassExpression2505 --> Access2506 - Access2509{{"Access[2509∈311]
ᐸ2505.endᐳ"}}:::plan - PgClassExpression2505 --> Access2509 - __Item2546[/"__Item[2546∈320]
ᐸ2545ᐳ"\]:::itemplan - PgClassExpression2545 ==> __Item2546 - PgClassExpression2581{{"PgClassExpression[2581∈322]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2580 --> PgClassExpression2581 - PgClassExpression2582{{"PgClassExpression[2582∈322]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2580 --> PgClassExpression2582 - PgClassExpression2583{{"PgClassExpression[2583∈322]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2580 --> PgClassExpression2583 - PgClassExpression2584{{"PgClassExpression[2584∈322]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2580 --> PgClassExpression2584 - PgClassExpression2585{{"PgClassExpression[2585∈322]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2580 --> PgClassExpression2585 - PgClassExpression2586{{"PgClassExpression[2586∈322]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2580 --> PgClassExpression2586 - PgClassExpression2587{{"PgClassExpression[2587∈322]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2580 --> PgClassExpression2587 - PgClassExpression2594{{"PgClassExpression[2594∈323]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2593 --> PgClassExpression2594 - PgClassExpression2595{{"PgClassExpression[2595∈323]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2593 --> PgClassExpression2595 - PgClassExpression2596{{"PgClassExpression[2596∈323]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2593 --> PgClassExpression2596 - PgClassExpression2597{{"PgClassExpression[2597∈323]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2593 --> PgClassExpression2597 - PgClassExpression2598{{"PgClassExpression[2598∈323]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2593 --> PgClassExpression2598 - PgClassExpression2599{{"PgClassExpression[2599∈323]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2593 --> PgClassExpression2599 - PgClassExpression2600{{"PgClassExpression[2600∈323]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2593 --> PgClassExpression2600 - PgClassExpression2608{{"PgClassExpression[2608∈324]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2607 --> PgClassExpression2608 - PgClassExpression2609{{"PgClassExpression[2609∈324]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2607 --> PgClassExpression2609 - PgClassExpression2610{{"PgClassExpression[2610∈324]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2607 --> PgClassExpression2610 - PgClassExpression2611{{"PgClassExpression[2611∈324]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2607 --> PgClassExpression2611 - PgClassExpression2612{{"PgClassExpression[2612∈324]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2607 --> PgClassExpression2612 - PgClassExpression2613{{"PgClassExpression[2613∈324]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2607 --> PgClassExpression2613 - PgClassExpression2614{{"PgClassExpression[2614∈324]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2607 --> PgClassExpression2614 - PgSelect2622[["PgSelect[2622∈325]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2621{{"PgClassExpression[2621∈325]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression2621 --> PgSelect2622 - PgSelect2637[["PgSelect[2637∈325]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2636{{"PgClassExpression[2636∈325]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression2636 --> PgSelect2637 - PgSelectSingle2620 --> PgClassExpression2621 - First2626{{"First[2626∈325]"}}:::plan - PgSelectRows2627[["PgSelectRows[2627∈325]"]]:::plan - PgSelectRows2627 --> First2626 - PgSelect2622 --> PgSelectRows2627 - PgSelectSingle2628{{"PgSelectSingle[2628∈325]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2626 --> PgSelectSingle2628 - PgSelectSingle2620 --> PgClassExpression2636 - First2639{{"First[2639∈325]"}}:::plan - PgSelectRows2640[["PgSelectRows[2640∈325]"]]:::plan - PgSelectRows2640 --> First2639 - PgSelect2637 --> PgSelectRows2640 - PgSelectSingle2641{{"PgSelectSingle[2641∈325]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2639 --> PgSelectSingle2641 - PgClassExpression2649{{"PgClassExpression[2649∈325]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle2620 --> PgClassExpression2649 - PgClassExpression2629{{"PgClassExpression[2629∈326]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2628 --> PgClassExpression2629 - PgClassExpression2630{{"PgClassExpression[2630∈326]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2628 --> PgClassExpression2630 - PgClassExpression2631{{"PgClassExpression[2631∈326]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2628 --> PgClassExpression2631 - PgClassExpression2632{{"PgClassExpression[2632∈326]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2628 --> PgClassExpression2632 - PgClassExpression2633{{"PgClassExpression[2633∈326]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2628 --> PgClassExpression2633 - PgClassExpression2634{{"PgClassExpression[2634∈326]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2628 --> PgClassExpression2634 - PgClassExpression2635{{"PgClassExpression[2635∈326]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2628 --> PgClassExpression2635 - PgClassExpression2642{{"PgClassExpression[2642∈327]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2641 --> PgClassExpression2642 - PgClassExpression2643{{"PgClassExpression[2643∈327]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2641 --> PgClassExpression2643 - PgClassExpression2644{{"PgClassExpression[2644∈327]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2641 --> PgClassExpression2644 - PgClassExpression2645{{"PgClassExpression[2645∈327]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2641 --> PgClassExpression2645 - PgClassExpression2646{{"PgClassExpression[2646∈327]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2641 --> PgClassExpression2646 - PgClassExpression2647{{"PgClassExpression[2647∈327]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2641 --> PgClassExpression2647 - PgClassExpression2648{{"PgClassExpression[2648∈327]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2641 --> PgClassExpression2648 - __Item2668[/"__Item[2668∈329]
ᐸ2667ᐳ"\]:::itemplan - PgClassExpression2667 ==> __Item2668 - __Item2670[/"__Item[2670∈330]
ᐸ2669ᐳ"\]:::itemplan - PgClassExpression2669 ==> __Item2670 - __Item2673[/"__Item[2673∈331]
ᐸ2672ᐳ"\]:::itemplan - PgClassExpression2672 ==> __Item2673 - PgClassExpression2679{{"PgClassExpression[2679∈332]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle2678 --> PgClassExpression2679 - PgClassExpression2680{{"PgClassExpression[2680∈332]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle2678 --> PgClassExpression2680 - PgClassExpression2686{{"PgClassExpression[2686∈333]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle2685 --> PgClassExpression2686 - PgClassExpression2687{{"PgClassExpression[2687∈333]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle2685 --> PgClassExpression2687 - __Item2690[/"__Item[2690∈334]
ᐸ2689ᐳ"\]:::itemplan - PgClassExpression2689 ==> __Item2690 - __Item2697[/"__Item[2697∈335]
ᐸ2696ᐳ"\]:::itemplan - PgSelectRows2696 ==> __Item2697 - PgSelectSingle2698{{"PgSelectSingle[2698∈335]
ᐸperson_type_function_connectionᐳ"}}:::plan - __Item2697 --> PgSelectSingle2698 - PgSelect2765[["PgSelect[2765∈336]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2764{{"PgClassExpression[2764∈336]
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2764 --> PgSelect2765 - PgSelect2780[["PgSelect[2780∈336]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression2779{{"PgClassExpression[2779∈336]
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2779 --> PgSelect2780 - PgSelect2786[["PgSelect[2786∈336]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2785{{"PgClassExpression[2785∈336]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression2785 --> PgSelect2786 - PgSelect2799[["PgSelect[2799∈336]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2798{{"PgClassExpression[2798∈336]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression2798 --> PgSelect2799 - PgSelect2813[["PgSelect[2813∈336]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2812{{"PgClassExpression[2812∈336]
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2812 --> PgSelect2813 - PgSelect2826[["PgSelect[2826∈336]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression2825{{"PgClassExpression[2825∈336]
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2825 --> PgSelect2826 - PgSelect2884[["PgSelect[2884∈336]
ᐸpostᐳ"]]:::plan - PgClassExpression2700{{"PgClassExpression[2700∈336]
ᐸ__person_t...”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression2700 --> PgSelect2884 - PgSelect2891[["PgSelect[2891∈336]
ᐸpostᐳ"]]:::plan - PgClassExpression2699{{"PgClassExpression[2699∈336]
ᐸ__person_t...ion__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression2699 --> PgSelect2891 - PgSelectSingle2698 --> PgClassExpression2699 - PgSelectSingle2698 --> PgClassExpression2700 - PgClassExpression2701{{"PgClassExpression[2701∈336]
ᐸ__person_t..._.”bigint”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2701 - PgClassExpression2702{{"PgClassExpression[2702∈336]
ᐸ__person_t....”numeric”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2702 - PgClassExpression2703{{"PgClassExpression[2703∈336]
ᐸ__person_t....”decimal”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2703 - PgClassExpression2704{{"PgClassExpression[2704∈336]
ᐸ__person_t....”boolean”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2704 - PgClassExpression2705{{"PgClassExpression[2705∈336]
ᐸ__person_t....”varchar”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2705 - PgClassExpression2706{{"PgClassExpression[2706∈336]
ᐸ__person_t...n__.”enum”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2706 - PgClassExpression2707{{"PgClassExpression[2707∈336]
ᐸ__person_t...num_array”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2707 - PgClassExpression2709{{"PgClassExpression[2709∈336]
ᐸ__person_t..._.”domain”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2709 - PgClassExpression2710{{"PgClassExpression[2710∈336]
ᐸ__person_t....”domain2”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2710 - PgClassExpression2711{{"PgClassExpression[2711∈336]
ᐸ__person_t...ext_array”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2711 - PgClassExpression2713{{"PgClassExpression[2713∈336]
ᐸ__person_t...n__.”json”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2713 - PgClassExpression2714{{"PgClassExpression[2714∈336]
ᐸ__person_t...__.”jsonb”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2714 - PgClassExpression2715{{"PgClassExpression[2715∈336]
ᐸ__person_t...ble_range”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2715 - PgClassExpression2722{{"PgClassExpression[2722∈336]
ᐸ__person_t...”numrange”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2722 - Access2723{{"Access[2723∈336]
ᐸ2722.startᐳ"}}:::plan - PgClassExpression2722 --> Access2723 - Access2726{{"Access[2726∈336]
ᐸ2722.endᐳ"}}:::plan - PgClassExpression2722 --> Access2726 - PgClassExpression2729{{"PgClassExpression[2729∈336]
ᐸ__person_t...daterange”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2729 - Access2730{{"Access[2730∈336]
ᐸ2729.startᐳ"}}:::plan - PgClassExpression2729 --> Access2730 - Access2733{{"Access[2733∈336]
ᐸ2729.endᐳ"}}:::plan - PgClassExpression2729 --> Access2733 - PgClassExpression2736{{"PgClassExpression[2736∈336]
ᐸ__person_t...int_range”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2736 - Access2737{{"Access[2737∈336]
ᐸ2736.startᐳ"}}:::plan - PgClassExpression2736 --> Access2737 - Access2740{{"Access[2740∈336]
ᐸ2736.endᐳ"}}:::plan - PgClassExpression2736 --> Access2740 - PgClassExpression2743{{"PgClassExpression[2743∈336]
ᐸ__person_t...timestamp”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2743 - PgClassExpression2744{{"PgClassExpression[2744∈336]
ᐸ__person_t...mestamptz”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2744 - PgClassExpression2745{{"PgClassExpression[2745∈336]
ᐸ__person_t...n__.”date”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2745 - PgClassExpression2746{{"PgClassExpression[2746∈336]
ᐸ__person_t...n__.”time”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2746 - PgClassExpression2747{{"PgClassExpression[2747∈336]
ᐸ__person_t..._.”timetz”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2747 - PgClassExpression2748{{"PgClassExpression[2748∈336]
ᐸ__person_t...”interval”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2748 - PgClassExpression2755{{"PgClassExpression[2755∈336]
ᐸ__person_t...val_array”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2755 - PgClassExpression2763{{"PgClassExpression[2763∈336]
ᐸ__person_t...__.”money”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2763 - PgSelectSingle2698 --> PgClassExpression2764 - First2769{{"First[2769∈336]"}}:::plan - PgSelectRows2770[["PgSelectRows[2770∈336]"]]:::plan - PgSelectRows2770 --> First2769 - PgSelect2765 --> PgSelectRows2770 - PgSelectSingle2771{{"PgSelectSingle[2771∈336]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2769 --> PgSelectSingle2771 - PgClassExpression2772{{"PgClassExpression[2772∈336]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2771 --> PgClassExpression2772 - PgClassExpression2773{{"PgClassExpression[2773∈336]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2771 --> PgClassExpression2773 - PgClassExpression2774{{"PgClassExpression[2774∈336]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2771 --> PgClassExpression2774 - PgClassExpression2775{{"PgClassExpression[2775∈336]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2771 --> PgClassExpression2775 - PgClassExpression2776{{"PgClassExpression[2776∈336]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2771 --> PgClassExpression2776 - PgClassExpression2777{{"PgClassExpression[2777∈336]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2771 --> PgClassExpression2777 - PgClassExpression2778{{"PgClassExpression[2778∈336]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2771 --> PgClassExpression2778 - PgSelectSingle2698 --> PgClassExpression2779 - First2782{{"First[2782∈336]"}}:::plan - PgSelectRows2783[["PgSelectRows[2783∈336]"]]:::plan + PgClassExpression2148{{"PgClassExpression[2148∈63]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle2119 --> PgClassExpression2148 + PgClassExpression2149{{"PgClassExpression[2149∈63]
ᐸ__type_fun...__.”point”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2149 + PgClassExpression2152{{"PgClassExpression[2152∈63]
ᐸ__type_fun...ablePoint”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2152 + PgClassExpression2155{{"PgClassExpression[2155∈63]
ᐸ__type_fun...n__.”inet”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2155 + PgClassExpression2156{{"PgClassExpression[2156∈63]
ᐸ__type_fun...n__.”cidr”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2156 + PgClassExpression2157{{"PgClassExpression[2157∈63]
ᐸ__type_fun....”macaddr”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2157 + PgClassExpression2158{{"PgClassExpression[2158∈63]
ᐸ__type_fun....”regproc”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2158 + PgClassExpression2159{{"PgClassExpression[2159∈63]
ᐸ__type_fun...procedure”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2159 + PgClassExpression2160{{"PgClassExpression[2160∈63]
ᐸ__type_fun....”regoper”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2160 + PgClassExpression2161{{"PgClassExpression[2161∈63]
ᐸ__type_fun...goperator”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2161 + PgClassExpression2162{{"PgClassExpression[2162∈63]
ᐸ__type_fun...”regclass”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2162 + PgClassExpression2163{{"PgClassExpression[2163∈63]
ᐸ__type_fun....”regtype”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2163 + PgClassExpression2164{{"PgClassExpression[2164∈63]
ᐸ__type_fun...regconfig”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2164 + PgClassExpression2165{{"PgClassExpression[2165∈63]
ᐸ__type_fun...ictionary”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2165 + PgClassExpression2166{{"PgClassExpression[2166∈63]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2166 + PgClassExpression2168{{"PgClassExpression[2168∈63]
ᐸ__type_fun...ay_domain”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2168 + PgClassExpression2170{{"PgClassExpression[2170∈63]
ᐸ__type_fun...__.”bytea”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2170 + PgClassExpression2171{{"PgClassExpression[2171∈63]
ᐸ__type_fun...tea_array”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2171 + First2175{{"First[2175∈63]"}}:::plan + PgSelectRows2176[["PgSelectRows[2176∈63]"]]:::plan + PgSelectRows2176 --> First2175 + PgSelect2173 --> PgSelectRows2176 + PgSelectSingle2177{{"PgSelectSingle[2177∈63]
ᐸpostᐳ"}}:::plan + First2175 --> PgSelectSingle2177 + PgClassExpression2178{{"PgClassExpression[2178∈63]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle2177 --> PgClassExpression2178 + PgClassExpression2179{{"PgClassExpression[2179∈63]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle2177 --> PgClassExpression2179 + First2182{{"First[2182∈63]"}}:::plan + PgSelectRows2183[["PgSelectRows[2183∈63]"]]:::plan + PgSelectRows2183 --> First2182 + PgSelect2180 --> PgSelectRows2183 + PgSelectSingle2184{{"PgSelectSingle[2184∈63]
ᐸpostᐳ"}}:::plan + First2182 --> PgSelectSingle2184 + PgClassExpression2185{{"PgClassExpression[2185∈63]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle2184 --> PgClassExpression2185 + PgClassExpression2186{{"PgClassExpression[2186∈63]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle2184 --> PgClassExpression2186 + PgClassExpression2187{{"PgClassExpression[2187∈63]
ᐸ__type_fun...__.”ltree”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2187 + PgClassExpression2188{{"PgClassExpression[2188∈63]
ᐸ__type_fun...ree_array”ᐳ"}}:::plan + PgSelectSingle1978 --> PgClassExpression2188 + __Item1991[/"__Item[1991∈64]
ᐸ1990ᐳ"\]:::itemplan + PgClassExpression1990 ==> __Item1991 + __Item1995[/"__Item[1995∈65]
ᐸ1994ᐳ"\]:::itemplan + PgClassExpression1994 ==> __Item1995 + __Item2039[/"__Item[2039∈66]
ᐸ2038ᐳ"\]:::itemplan + PgClassExpression2038 ==> __Item2039 + __Item2167[/"__Item[2167∈67]
ᐸ2166ᐳ"\]:::itemplan + PgClassExpression2166 ==> __Item2167 + __Item2169[/"__Item[2169∈68]
ᐸ2168ᐳ"\]:::itemplan + PgClassExpression2168 ==> __Item2169 + __Item2172[/"__Item[2172∈69]
ᐸ2171ᐳ"\]:::itemplan + PgClassExpression2171 ==> __Item2172 + __Item2189[/"__Item[2189∈70]
ᐸ2188ᐳ"\]:::itemplan + PgClassExpression2188 ==> __Item2189 + __Item2240[/"__Item[2240∈71]
ᐸ2239ᐳ"\]:::itemplan + PgClassExpression2239 ==> __Item2240 + __Item2244[/"__Item[2244∈72]
ᐸ2243ᐳ"\]:::itemplan + PgClassExpression2243 ==> __Item2244 + __Item2288[/"__Item[2288∈73]
ᐸ2287ᐳ"\]:::itemplan + PgClassExpression2287 ==> __Item2288 + __Item2414[/"__Item[2414∈74]
ᐸ2413ᐳ"\]:::itemplan + PgClassExpression2413 ==> __Item2414 + __Item2416[/"__Item[2416∈75]
ᐸ2415ᐳ"\]:::itemplan + PgClassExpression2415 ==> __Item2416 + __Item2419[/"__Item[2419∈76]
ᐸ2418ᐳ"\]:::itemplan + PgClassExpression2418 ==> __Item2419 + __Item2436[/"__Item[2436∈77]
ᐸ2435ᐳ"\]:::itemplan + PgClassExpression2435 ==> __Item2436 + PgSelect2510[["PgSelect[2510∈78]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2509{{"PgClassExpression[2509∈78]
ᐸ__person_t...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2509 & PgFromExpression2514 --> PgSelect2510 + PgSelect2526[["PgSelect[2526∈78]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression2525{{"PgClassExpression[2525∈78]
ᐸ__person_t...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2525 & PgFromExpression2528 --> PgSelect2526 + PgSelect2533[["PgSelect[2533∈78]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2532{{"PgClassExpression[2532∈78]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression2532 & PgFromExpression2535 --> PgSelect2533 + PgSelect2547[["PgSelect[2547∈78]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2546{{"PgClassExpression[2546∈78]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression2546 & PgFromExpression2549 --> PgSelect2547 + PgSelect2562[["PgSelect[2562∈78]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2561{{"PgClassExpression[2561∈78]
ᐸ__person_t...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2561 & PgFromExpression2564 --> PgSelect2562 + PgSelect2576[["PgSelect[2576∈78]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression2575{{"PgClassExpression[2575∈78]
ᐸ__person_t...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2575 & PgFromExpression2578 --> PgSelect2576 + PgSelect2583[["PgSelect[2583∈78]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2582{{"PgClassExpression[2582∈78]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression2582 & PgFromExpression2585 --> PgSelect2583 + PgSelect2597[["PgSelect[2597∈78]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2596{{"PgClassExpression[2596∈78]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression2596 & PgFromExpression2599 --> PgSelect2597 + PgSelect2635[["PgSelect[2635∈78]
ᐸpostᐳ"]]:::plan + PgClassExpression2445{{"PgClassExpression[2445∈78]
ᐸ__person_t...”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression2445 --> PgSelect2635 + PgSelect2642[["PgSelect[2642∈78]
ᐸpostᐳ"]]:::plan + PgClassExpression2444{{"PgClassExpression[2444∈78]
ᐸ__person_t...ist__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression2444 --> PgSelect2642 + __Item2442[/"__Item[2442∈78]
ᐸ2441ᐳ"\]:::itemplan + PgSelectRows2441 ==> __Item2442 + PgSelectSingle2443{{"PgSelectSingle[2443∈78]
ᐸperson_type_function_listᐳ"}}:::plan + __Item2442 --> PgSelectSingle2443 + PgSelectSingle2443 --> PgClassExpression2444 + PgSelectSingle2443 --> PgClassExpression2445 + PgClassExpression2446{{"PgClassExpression[2446∈78]
ᐸ__person_t..._.”bigint”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2446 + PgClassExpression2447{{"PgClassExpression[2447∈78]
ᐸ__person_t....”numeric”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2447 + PgClassExpression2448{{"PgClassExpression[2448∈78]
ᐸ__person_t....”decimal”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2448 + PgClassExpression2449{{"PgClassExpression[2449∈78]
ᐸ__person_t....”boolean”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2449 + PgClassExpression2450{{"PgClassExpression[2450∈78]
ᐸ__person_t....”varchar”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2450 + PgClassExpression2451{{"PgClassExpression[2451∈78]
ᐸ__person_t...t__.”enum”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2451 + PgClassExpression2452{{"PgClassExpression[2452∈78]
ᐸ__person_t...num_array”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2452 + PgClassExpression2454{{"PgClassExpression[2454∈78]
ᐸ__person_t..._.”domain”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2454 + PgClassExpression2455{{"PgClassExpression[2455∈78]
ᐸ__person_t....”domain2”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2455 + PgClassExpression2456{{"PgClassExpression[2456∈78]
ᐸ__person_t...ext_array”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2456 + PgClassExpression2458{{"PgClassExpression[2458∈78]
ᐸ__person_t...t__.”json”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2458 + PgClassExpression2459{{"PgClassExpression[2459∈78]
ᐸ__person_t...__.”jsonb”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2459 + PgClassExpression2460{{"PgClassExpression[2460∈78]
ᐸ__person_t...ble_range”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2460 + PgClassExpression2467{{"PgClassExpression[2467∈78]
ᐸ__person_t...”numrange”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2467 + PgClassExpression2474{{"PgClassExpression[2474∈78]
ᐸ__person_t...daterange”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2474 + PgClassExpression2481{{"PgClassExpression[2481∈78]
ᐸ__person_t...int_range”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2481 + PgClassExpression2488{{"PgClassExpression[2488∈78]
ᐸ__person_t...timestamp”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2488 + PgClassExpression2489{{"PgClassExpression[2489∈78]
ᐸ__person_t...mestamptz”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2489 + PgClassExpression2490{{"PgClassExpression[2490∈78]
ᐸ__person_t...t__.”date”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2490 + PgClassExpression2491{{"PgClassExpression[2491∈78]
ᐸ__person_t...t__.”time”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2491 + PgClassExpression2492{{"PgClassExpression[2492∈78]
ᐸ__person_t..._.”timetz”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2492 + PgClassExpression2493{{"PgClassExpression[2493∈78]
ᐸ__person_t...”interval”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2493 + PgClassExpression2500{{"PgClassExpression[2500∈78]
ᐸ__person_t...val_array”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2500 + PgClassExpression2508{{"PgClassExpression[2508∈78]
ᐸ__person_t...__.”money”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2508 + PgSelectSingle2443 --> PgClassExpression2509 + First2515{{"First[2515∈78]"}}:::plan + PgSelectRows2516[["PgSelectRows[2516∈78]"]]:::plan + PgSelectRows2516 --> First2515 + PgSelect2510 --> PgSelectRows2516 + PgSelectSingle2517{{"PgSelectSingle[2517∈78]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2515 --> PgSelectSingle2517 + PgClassExpression2518{{"PgClassExpression[2518∈78]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2517 --> PgClassExpression2518 + PgClassExpression2519{{"PgClassExpression[2519∈78]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2517 --> PgClassExpression2519 + PgClassExpression2520{{"PgClassExpression[2520∈78]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2517 --> PgClassExpression2520 + PgClassExpression2521{{"PgClassExpression[2521∈78]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2517 --> PgClassExpression2521 + PgClassExpression2522{{"PgClassExpression[2522∈78]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2517 --> PgClassExpression2522 + PgClassExpression2523{{"PgClassExpression[2523∈78]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2517 --> PgClassExpression2523 + PgClassExpression2524{{"PgClassExpression[2524∈78]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2517 --> PgClassExpression2524 + PgSelectSingle2443 --> PgClassExpression2525 + First2529{{"First[2529∈78]"}}:::plan + PgSelectRows2530[["PgSelectRows[2530∈78]"]]:::plan + PgSelectRows2530 --> First2529 + PgSelect2526 --> PgSelectRows2530 + PgSelectSingle2531{{"PgSelectSingle[2531∈78]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First2529 --> PgSelectSingle2531 + PgSelectSingle2531 --> PgClassExpression2532 + First2536{{"First[2536∈78]"}}:::plan + PgSelectRows2537[["PgSelectRows[2537∈78]"]]:::plan + PgSelectRows2537 --> First2536 + PgSelect2533 --> PgSelectRows2537 + PgSelectSingle2538{{"PgSelectSingle[2538∈78]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2536 --> PgSelectSingle2538 + PgClassExpression2539{{"PgClassExpression[2539∈78]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2538 --> PgClassExpression2539 + PgClassExpression2540{{"PgClassExpression[2540∈78]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2538 --> PgClassExpression2540 + PgClassExpression2541{{"PgClassExpression[2541∈78]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2538 --> PgClassExpression2541 + PgClassExpression2542{{"PgClassExpression[2542∈78]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2538 --> PgClassExpression2542 + PgClassExpression2543{{"PgClassExpression[2543∈78]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2538 --> PgClassExpression2543 + PgClassExpression2544{{"PgClassExpression[2544∈78]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2538 --> PgClassExpression2544 + PgClassExpression2545{{"PgClassExpression[2545∈78]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2538 --> PgClassExpression2545 + PgSelectSingle2531 --> PgClassExpression2546 + First2550{{"First[2550∈78]"}}:::plan + PgSelectRows2551[["PgSelectRows[2551∈78]"]]:::plan + PgSelectRows2551 --> First2550 + PgSelect2547 --> PgSelectRows2551 + PgSelectSingle2552{{"PgSelectSingle[2552∈78]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2550 --> PgSelectSingle2552 + PgClassExpression2553{{"PgClassExpression[2553∈78]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2552 --> PgClassExpression2553 + PgClassExpression2554{{"PgClassExpression[2554∈78]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2552 --> PgClassExpression2554 + PgClassExpression2555{{"PgClassExpression[2555∈78]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2552 --> PgClassExpression2555 + PgClassExpression2556{{"PgClassExpression[2556∈78]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2552 --> PgClassExpression2556 + PgClassExpression2557{{"PgClassExpression[2557∈78]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2552 --> PgClassExpression2557 + PgClassExpression2558{{"PgClassExpression[2558∈78]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2552 --> PgClassExpression2558 + PgClassExpression2559{{"PgClassExpression[2559∈78]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2552 --> PgClassExpression2559 + PgClassExpression2560{{"PgClassExpression[2560∈78]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle2531 --> PgClassExpression2560 + PgSelectSingle2443 --> PgClassExpression2561 + First2565{{"First[2565∈78]"}}:::plan + PgSelectRows2566[["PgSelectRows[2566∈78]"]]:::plan + PgSelectRows2566 --> First2565 + PgSelect2562 --> PgSelectRows2566 + PgSelectSingle2567{{"PgSelectSingle[2567∈78]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2565 --> PgSelectSingle2567 + PgClassExpression2568{{"PgClassExpression[2568∈78]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2567 --> PgClassExpression2568 + PgClassExpression2569{{"PgClassExpression[2569∈78]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2567 --> PgClassExpression2569 + PgClassExpression2570{{"PgClassExpression[2570∈78]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2567 --> PgClassExpression2570 + PgClassExpression2571{{"PgClassExpression[2571∈78]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2567 --> PgClassExpression2571 + PgClassExpression2572{{"PgClassExpression[2572∈78]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2567 --> PgClassExpression2572 + PgClassExpression2573{{"PgClassExpression[2573∈78]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2567 --> PgClassExpression2573 + PgClassExpression2574{{"PgClassExpression[2574∈78]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2567 --> PgClassExpression2574 + PgSelectSingle2443 --> PgClassExpression2575 + First2579{{"First[2579∈78]"}}:::plan + PgSelectRows2580[["PgSelectRows[2580∈78]"]]:::plan + PgSelectRows2580 --> First2579 + PgSelect2576 --> PgSelectRows2580 + PgSelectSingle2581{{"PgSelectSingle[2581∈78]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First2579 --> PgSelectSingle2581 + PgSelectSingle2581 --> PgClassExpression2582 + First2586{{"First[2586∈78]"}}:::plan + PgSelectRows2587[["PgSelectRows[2587∈78]"]]:::plan + PgSelectRows2587 --> First2586 + PgSelect2583 --> PgSelectRows2587 + PgSelectSingle2588{{"PgSelectSingle[2588∈78]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2586 --> PgSelectSingle2588 + PgClassExpression2589{{"PgClassExpression[2589∈78]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2588 --> PgClassExpression2589 + PgClassExpression2590{{"PgClassExpression[2590∈78]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2588 --> PgClassExpression2590 + PgClassExpression2591{{"PgClassExpression[2591∈78]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2588 --> PgClassExpression2591 + PgClassExpression2592{{"PgClassExpression[2592∈78]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2588 --> PgClassExpression2592 + PgClassExpression2593{{"PgClassExpression[2593∈78]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2588 --> PgClassExpression2593 + PgClassExpression2594{{"PgClassExpression[2594∈78]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2588 --> PgClassExpression2594 + PgClassExpression2595{{"PgClassExpression[2595∈78]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2588 --> PgClassExpression2595 + PgSelectSingle2581 --> PgClassExpression2596 + First2600{{"First[2600∈78]"}}:::plan + PgSelectRows2601[["PgSelectRows[2601∈78]"]]:::plan + PgSelectRows2601 --> First2600 + PgSelect2597 --> PgSelectRows2601 + PgSelectSingle2602{{"PgSelectSingle[2602∈78]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2600 --> PgSelectSingle2602 + PgClassExpression2603{{"PgClassExpression[2603∈78]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2602 --> PgClassExpression2603 + PgClassExpression2604{{"PgClassExpression[2604∈78]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2602 --> PgClassExpression2604 + PgClassExpression2605{{"PgClassExpression[2605∈78]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2602 --> PgClassExpression2605 + PgClassExpression2606{{"PgClassExpression[2606∈78]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2602 --> PgClassExpression2606 + PgClassExpression2607{{"PgClassExpression[2607∈78]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2602 --> PgClassExpression2607 + PgClassExpression2608{{"PgClassExpression[2608∈78]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2602 --> PgClassExpression2608 + PgClassExpression2609{{"PgClassExpression[2609∈78]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2602 --> PgClassExpression2609 + PgClassExpression2610{{"PgClassExpression[2610∈78]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle2581 --> PgClassExpression2610 + PgClassExpression2611{{"PgClassExpression[2611∈78]
ᐸ__person_t...__.”point”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2611 + PgClassExpression2614{{"PgClassExpression[2614∈78]
ᐸ__person_t...ablePoint”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2614 + PgClassExpression2617{{"PgClassExpression[2617∈78]
ᐸ__person_t...t__.”inet”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2617 + PgClassExpression2618{{"PgClassExpression[2618∈78]
ᐸ__person_t...t__.”cidr”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2618 + PgClassExpression2619{{"PgClassExpression[2619∈78]
ᐸ__person_t....”macaddr”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2619 + PgClassExpression2620{{"PgClassExpression[2620∈78]
ᐸ__person_t....”regproc”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2620 + PgClassExpression2621{{"PgClassExpression[2621∈78]
ᐸ__person_t...procedure”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2621 + PgClassExpression2622{{"PgClassExpression[2622∈78]
ᐸ__person_t....”regoper”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2622 + PgClassExpression2623{{"PgClassExpression[2623∈78]
ᐸ__person_t...goperator”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2623 + PgClassExpression2624{{"PgClassExpression[2624∈78]
ᐸ__person_t...”regclass”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2624 + PgClassExpression2625{{"PgClassExpression[2625∈78]
ᐸ__person_t....”regtype”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2625 + PgClassExpression2626{{"PgClassExpression[2626∈78]
ᐸ__person_t...regconfig”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2626 + PgClassExpression2627{{"PgClassExpression[2627∈78]
ᐸ__person_t...ictionary”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2627 + PgClassExpression2628{{"PgClassExpression[2628∈78]
ᐸ__person_t...ay_domain”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2628 + PgClassExpression2630{{"PgClassExpression[2630∈78]
ᐸ__person_t...ay_domain”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2630 + PgClassExpression2632{{"PgClassExpression[2632∈78]
ᐸ__person_t...__.”bytea”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2632 + PgClassExpression2633{{"PgClassExpression[2633∈78]
ᐸ__person_t...tea_array”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2633 + First2637{{"First[2637∈78]"}}:::plan + PgSelectRows2638[["PgSelectRows[2638∈78]"]]:::plan + PgSelectRows2638 --> First2637 + PgSelect2635 --> PgSelectRows2638 + PgSelectSingle2639{{"PgSelectSingle[2639∈78]
ᐸpostᐳ"}}:::plan + First2637 --> PgSelectSingle2639 + PgClassExpression2640{{"PgClassExpression[2640∈78]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle2639 --> PgClassExpression2640 + PgClassExpression2641{{"PgClassExpression[2641∈78]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle2639 --> PgClassExpression2641 + First2644{{"First[2644∈78]"}}:::plan + PgSelectRows2645[["PgSelectRows[2645∈78]"]]:::plan + PgSelectRows2645 --> First2644 + PgSelect2642 --> PgSelectRows2645 + PgSelectSingle2646{{"PgSelectSingle[2646∈78]
ᐸpostᐳ"}}:::plan + First2644 --> PgSelectSingle2646 + PgClassExpression2647{{"PgClassExpression[2647∈78]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle2646 --> PgClassExpression2647 + PgClassExpression2648{{"PgClassExpression[2648∈78]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle2646 --> PgClassExpression2648 + PgClassExpression2649{{"PgClassExpression[2649∈78]
ᐸ__person_t...__.”ltree”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2649 + PgClassExpression2650{{"PgClassExpression[2650∈78]
ᐸ__person_t...ree_array”ᐳ"}}:::plan + PgSelectSingle2443 --> PgClassExpression2650 + __Item2453[/"__Item[2453∈79]
ᐸ2452ᐳ"\]:::itemplan + PgClassExpression2452 ==> __Item2453 + __Item2457[/"__Item[2457∈80]
ᐸ2456ᐳ"\]:::itemplan + PgClassExpression2456 ==> __Item2457 + __Item2501[/"__Item[2501∈81]
ᐸ2500ᐳ"\]:::itemplan + PgClassExpression2500 ==> __Item2501 + __Item2629[/"__Item[2629∈82]
ᐸ2628ᐳ"\]:::itemplan + PgClassExpression2628 ==> __Item2629 + __Item2631[/"__Item[2631∈83]
ᐸ2630ᐳ"\]:::itemplan + PgClassExpression2630 ==> __Item2631 + __Item2634[/"__Item[2634∈84]
ᐸ2633ᐳ"\]:::itemplan + PgClassExpression2633 ==> __Item2634 + __Item2651[/"__Item[2651∈85]
ᐸ2650ᐳ"\]:::itemplan + PgClassExpression2650 ==> __Item2651 + PgSelect2727[["PgSelect[2727∈86]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2726{{"PgClassExpression[2726∈86]
ᐸ__person_t...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2726 & PgFromExpression2731 --> PgSelect2727 + PgSelect2743[["PgSelect[2743∈86]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression2742{{"PgClassExpression[2742∈86]
ᐸ__person_t...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2742 & PgFromExpression2745 --> PgSelect2743 + PgSelect2750[["PgSelect[2750∈86]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2749{{"PgClassExpression[2749∈86]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression2749 & PgFromExpression2752 --> PgSelect2750 + PgSelect2764[["PgSelect[2764∈86]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2763{{"PgClassExpression[2763∈86]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression2763 & PgFromExpression2766 --> PgSelect2764 + PgSelect2779[["PgSelect[2779∈86]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2778{{"PgClassExpression[2778∈86]
ᐸ__person_t...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2778 & PgFromExpression2781 --> PgSelect2779 + PgSelect2793[["PgSelect[2793∈86]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression2792{{"PgClassExpression[2792∈86]
ᐸ__person_t...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2792 & PgFromExpression2795 --> PgSelect2793 + PgSelect2800[["PgSelect[2800∈86]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2799{{"PgClassExpression[2799∈86]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression2799 & PgFromExpression2802 --> PgSelect2800 + PgSelect2814[["PgSelect[2814∈86]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2813{{"PgClassExpression[2813∈86]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression2813 & PgFromExpression2816 --> PgSelect2814 + PgSelect2852[["PgSelect[2852∈86]
ᐸpostᐳ"]]:::plan + PgClassExpression2662{{"PgClassExpression[2662∈86]
ᐸ__person_t...”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression2662 --> PgSelect2852 + PgSelect2859[["PgSelect[2859∈86]
ᐸpostᐳ"]]:::plan + PgClassExpression2661{{"PgClassExpression[2661∈86]
ᐸ__person_t...ion__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression2661 --> PgSelect2859 + __Item2659[/"__Item[2659∈86]
ᐸ2658ᐳ"\]:::itemplan + PgSelectRows2658 ==> __Item2659 + PgSelectSingle2660{{"PgSelectSingle[2660∈86]
ᐸperson_type_function_connectionᐳ"}}:::plan + __Item2659 --> PgSelectSingle2660 + PgSelectSingle2660 --> PgClassExpression2661 + PgSelectSingle2660 --> PgClassExpression2662 + PgClassExpression2663{{"PgClassExpression[2663∈86]
ᐸ__person_t..._.”bigint”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2663 + PgClassExpression2664{{"PgClassExpression[2664∈86]
ᐸ__person_t....”numeric”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2664 + PgClassExpression2665{{"PgClassExpression[2665∈86]
ᐸ__person_t....”decimal”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2665 + PgClassExpression2666{{"PgClassExpression[2666∈86]
ᐸ__person_t....”boolean”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2666 + PgClassExpression2667{{"PgClassExpression[2667∈86]
ᐸ__person_t....”varchar”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2667 + PgClassExpression2668{{"PgClassExpression[2668∈86]
ᐸ__person_t...n__.”enum”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2668 + PgClassExpression2669{{"PgClassExpression[2669∈86]
ᐸ__person_t...num_array”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2669 + PgClassExpression2671{{"PgClassExpression[2671∈86]
ᐸ__person_t..._.”domain”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2671 + PgClassExpression2672{{"PgClassExpression[2672∈86]
ᐸ__person_t....”domain2”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2672 + PgClassExpression2673{{"PgClassExpression[2673∈86]
ᐸ__person_t...ext_array”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2673 + PgClassExpression2675{{"PgClassExpression[2675∈86]
ᐸ__person_t...n__.”json”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2675 + PgClassExpression2676{{"PgClassExpression[2676∈86]
ᐸ__person_t...__.”jsonb”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2676 + PgClassExpression2677{{"PgClassExpression[2677∈86]
ᐸ__person_t...ble_range”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2677 + PgClassExpression2684{{"PgClassExpression[2684∈86]
ᐸ__person_t...”numrange”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2684 + PgClassExpression2691{{"PgClassExpression[2691∈86]
ᐸ__person_t...daterange”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2691 + PgClassExpression2698{{"PgClassExpression[2698∈86]
ᐸ__person_t...int_range”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2698 + PgClassExpression2705{{"PgClassExpression[2705∈86]
ᐸ__person_t...timestamp”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2705 + PgClassExpression2706{{"PgClassExpression[2706∈86]
ᐸ__person_t...mestamptz”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2706 + PgClassExpression2707{{"PgClassExpression[2707∈86]
ᐸ__person_t...n__.”date”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2707 + PgClassExpression2708{{"PgClassExpression[2708∈86]
ᐸ__person_t...n__.”time”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2708 + PgClassExpression2709{{"PgClassExpression[2709∈86]
ᐸ__person_t..._.”timetz”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2709 + PgClassExpression2710{{"PgClassExpression[2710∈86]
ᐸ__person_t...”interval”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2710 + PgClassExpression2717{{"PgClassExpression[2717∈86]
ᐸ__person_t...val_array”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2717 + PgClassExpression2725{{"PgClassExpression[2725∈86]
ᐸ__person_t...__.”money”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2725 + PgSelectSingle2660 --> PgClassExpression2726 + First2732{{"First[2732∈86]"}}:::plan + PgSelectRows2733[["PgSelectRows[2733∈86]"]]:::plan + PgSelectRows2733 --> First2732 + PgSelect2727 --> PgSelectRows2733 + PgSelectSingle2734{{"PgSelectSingle[2734∈86]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2732 --> PgSelectSingle2734 + PgClassExpression2735{{"PgClassExpression[2735∈86]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2734 --> PgClassExpression2735 + PgClassExpression2736{{"PgClassExpression[2736∈86]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2734 --> PgClassExpression2736 + PgClassExpression2737{{"PgClassExpression[2737∈86]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2734 --> PgClassExpression2737 + PgClassExpression2738{{"PgClassExpression[2738∈86]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2734 --> PgClassExpression2738 + PgClassExpression2739{{"PgClassExpression[2739∈86]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2734 --> PgClassExpression2739 + PgClassExpression2740{{"PgClassExpression[2740∈86]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2734 --> PgClassExpression2740 + PgClassExpression2741{{"PgClassExpression[2741∈86]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2734 --> PgClassExpression2741 + PgSelectSingle2660 --> PgClassExpression2742 + First2746{{"First[2746∈86]"}}:::plan + PgSelectRows2747[["PgSelectRows[2747∈86]"]]:::plan + PgSelectRows2747 --> First2746 + PgSelect2743 --> PgSelectRows2747 + PgSelectSingle2748{{"PgSelectSingle[2748∈86]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First2746 --> PgSelectSingle2748 + PgSelectSingle2748 --> PgClassExpression2749 + First2753{{"First[2753∈86]"}}:::plan + PgSelectRows2754[["PgSelectRows[2754∈86]"]]:::plan + PgSelectRows2754 --> First2753 + PgSelect2750 --> PgSelectRows2754 + PgSelectSingle2755{{"PgSelectSingle[2755∈86]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2753 --> PgSelectSingle2755 + PgClassExpression2756{{"PgClassExpression[2756∈86]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2755 --> PgClassExpression2756 + PgClassExpression2757{{"PgClassExpression[2757∈86]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2755 --> PgClassExpression2757 + PgClassExpression2758{{"PgClassExpression[2758∈86]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2755 --> PgClassExpression2758 + PgClassExpression2759{{"PgClassExpression[2759∈86]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2755 --> PgClassExpression2759 + PgClassExpression2760{{"PgClassExpression[2760∈86]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2755 --> PgClassExpression2760 + PgClassExpression2761{{"PgClassExpression[2761∈86]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2755 --> PgClassExpression2761 + PgClassExpression2762{{"PgClassExpression[2762∈86]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2755 --> PgClassExpression2762 + PgSelectSingle2748 --> PgClassExpression2763 + First2767{{"First[2767∈86]"}}:::plan + PgSelectRows2768[["PgSelectRows[2768∈86]"]]:::plan + PgSelectRows2768 --> First2767 + PgSelect2764 --> PgSelectRows2768 + PgSelectSingle2769{{"PgSelectSingle[2769∈86]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2767 --> PgSelectSingle2769 + PgClassExpression2770{{"PgClassExpression[2770∈86]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2769 --> PgClassExpression2770 + PgClassExpression2771{{"PgClassExpression[2771∈86]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2769 --> PgClassExpression2771 + PgClassExpression2772{{"PgClassExpression[2772∈86]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2769 --> PgClassExpression2772 + PgClassExpression2773{{"PgClassExpression[2773∈86]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2769 --> PgClassExpression2773 + PgClassExpression2774{{"PgClassExpression[2774∈86]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2769 --> PgClassExpression2774 + PgClassExpression2775{{"PgClassExpression[2775∈86]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2769 --> PgClassExpression2775 + PgClassExpression2776{{"PgClassExpression[2776∈86]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2769 --> PgClassExpression2776 + PgClassExpression2777{{"PgClassExpression[2777∈86]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle2748 --> PgClassExpression2777 + PgSelectSingle2660 --> PgClassExpression2778 + First2782{{"First[2782∈86]"}}:::plan + PgSelectRows2783[["PgSelectRows[2783∈86]"]]:::plan PgSelectRows2783 --> First2782 - PgSelect2780 --> PgSelectRows2783 - PgSelectSingle2784{{"PgSelectSingle[2784∈336]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + PgSelect2779 --> PgSelectRows2783 + PgSelectSingle2784{{"PgSelectSingle[2784∈86]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan First2782 --> PgSelectSingle2784 + PgClassExpression2785{{"PgClassExpression[2785∈86]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan PgSelectSingle2784 --> PgClassExpression2785 - First2788{{"First[2788∈336]"}}:::plan - PgSelectRows2789[["PgSelectRows[2789∈336]"]]:::plan - PgSelectRows2789 --> First2788 - PgSelect2786 --> PgSelectRows2789 - PgSelectSingle2790{{"PgSelectSingle[2790∈336]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2788 --> PgSelectSingle2790 - PgSelectSingle2784 --> PgClassExpression2798 - First2801{{"First[2801∈336]"}}:::plan - PgSelectRows2802[["PgSelectRows[2802∈336]"]]:::plan - PgSelectRows2802 --> First2801 - PgSelect2799 --> PgSelectRows2802 - PgSelectSingle2803{{"PgSelectSingle[2803∈336]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2801 --> PgSelectSingle2803 - PgClassExpression2811{{"PgClassExpression[2811∈336]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle2784 --> PgClassExpression2811 - PgSelectSingle2698 --> PgClassExpression2812 - First2815{{"First[2815∈336]"}}:::plan - PgSelectRows2816[["PgSelectRows[2816∈336]"]]:::plan - PgSelectRows2816 --> First2815 - PgSelect2813 --> PgSelectRows2816 - PgSelectSingle2817{{"PgSelectSingle[2817∈336]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2815 --> PgSelectSingle2817 - PgSelectSingle2698 --> PgClassExpression2825 - First2828{{"First[2828∈336]"}}:::plan - PgSelectRows2829[["PgSelectRows[2829∈336]"]]:::plan - PgSelectRows2829 --> First2828 - PgSelect2826 --> PgSelectRows2829 - PgSelectSingle2830{{"PgSelectSingle[2830∈336]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First2828 --> PgSelectSingle2830 - PgClassExpression2860{{"PgClassExpression[2860∈336]
ᐸ__person_t...__.”point”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2860 - PgClassExpression2863{{"PgClassExpression[2863∈336]
ᐸ__person_t...ablePoint”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2863 - PgClassExpression2866{{"PgClassExpression[2866∈336]
ᐸ__person_t...n__.”inet”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2866 - PgClassExpression2867{{"PgClassExpression[2867∈336]
ᐸ__person_t...n__.”cidr”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2867 - PgClassExpression2868{{"PgClassExpression[2868∈336]
ᐸ__person_t....”macaddr”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2868 - PgClassExpression2869{{"PgClassExpression[2869∈336]
ᐸ__person_t....”regproc”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2869 - PgClassExpression2870{{"PgClassExpression[2870∈336]
ᐸ__person_t...procedure”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2870 - PgClassExpression2871{{"PgClassExpression[2871∈336]
ᐸ__person_t....”regoper”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2871 - PgClassExpression2872{{"PgClassExpression[2872∈336]
ᐸ__person_t...goperator”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2872 - PgClassExpression2873{{"PgClassExpression[2873∈336]
ᐸ__person_t...”regclass”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2873 - PgClassExpression2874{{"PgClassExpression[2874∈336]
ᐸ__person_t....”regtype”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2874 - PgClassExpression2875{{"PgClassExpression[2875∈336]
ᐸ__person_t...regconfig”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2875 - PgClassExpression2876{{"PgClassExpression[2876∈336]
ᐸ__person_t...ictionary”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2876 - PgClassExpression2877{{"PgClassExpression[2877∈336]
ᐸ__person_t...ay_domain”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2877 - PgClassExpression2879{{"PgClassExpression[2879∈336]
ᐸ__person_t...ay_domain”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2879 - PgClassExpression2881{{"PgClassExpression[2881∈336]
ᐸ__person_t...__.”bytea”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2881 - PgClassExpression2882{{"PgClassExpression[2882∈336]
ᐸ__person_t...tea_array”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2882 - First2886{{"First[2886∈336]"}}:::plan - PgSelectRows2887[["PgSelectRows[2887∈336]"]]:::plan - PgSelectRows2887 --> First2886 - PgSelect2884 --> PgSelectRows2887 - PgSelectSingle2888{{"PgSelectSingle[2888∈336]
ᐸpostᐳ"}}:::plan - First2886 --> PgSelectSingle2888 - First2893{{"First[2893∈336]"}}:::plan - PgSelectRows2894[["PgSelectRows[2894∈336]"]]:::plan - PgSelectRows2894 --> First2893 - PgSelect2891 --> PgSelectRows2894 - PgSelectSingle2895{{"PgSelectSingle[2895∈336]
ᐸpostᐳ"}}:::plan - First2893 --> PgSelectSingle2895 - PgClassExpression2898{{"PgClassExpression[2898∈336]
ᐸ__person_t...__.”ltree”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2898 - PgClassExpression2899{{"PgClassExpression[2899∈336]
ᐸ__person_t...ree_array”ᐳ"}}:::plan - PgSelectSingle2698 --> PgClassExpression2899 - __Item2708[/"__Item[2708∈337]
ᐸ2707ᐳ"\]:::itemplan - PgClassExpression2707 ==> __Item2708 - __Item2712[/"__Item[2712∈338]
ᐸ2711ᐳ"\]:::itemplan - PgClassExpression2711 ==> __Item2712 - Access2716{{"Access[2716∈339]
ᐸ2715.startᐳ"}}:::plan - PgClassExpression2715 --> Access2716 - Access2719{{"Access[2719∈339]
ᐸ2715.endᐳ"}}:::plan - PgClassExpression2715 --> Access2719 - __Item2756[/"__Item[2756∈348]
ᐸ2755ᐳ"\]:::itemplan - PgClassExpression2755 ==> __Item2756 - PgClassExpression2791{{"PgClassExpression[2791∈350]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2790 --> PgClassExpression2791 - PgClassExpression2792{{"PgClassExpression[2792∈350]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2790 --> PgClassExpression2792 - PgClassExpression2793{{"PgClassExpression[2793∈350]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2790 --> PgClassExpression2793 - PgClassExpression2794{{"PgClassExpression[2794∈350]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2790 --> PgClassExpression2794 - PgClassExpression2795{{"PgClassExpression[2795∈350]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2790 --> PgClassExpression2795 - PgClassExpression2796{{"PgClassExpression[2796∈350]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2790 --> PgClassExpression2796 - PgClassExpression2797{{"PgClassExpression[2797∈350]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2790 --> PgClassExpression2797 - PgClassExpression2804{{"PgClassExpression[2804∈351]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2803 --> PgClassExpression2804 - PgClassExpression2805{{"PgClassExpression[2805∈351]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2803 --> PgClassExpression2805 - PgClassExpression2806{{"PgClassExpression[2806∈351]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2803 --> PgClassExpression2806 - PgClassExpression2807{{"PgClassExpression[2807∈351]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2803 --> PgClassExpression2807 - PgClassExpression2808{{"PgClassExpression[2808∈351]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2803 --> PgClassExpression2808 - PgClassExpression2809{{"PgClassExpression[2809∈351]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2803 --> PgClassExpression2809 - PgClassExpression2810{{"PgClassExpression[2810∈351]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2803 --> PgClassExpression2810 - PgClassExpression2818{{"PgClassExpression[2818∈352]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2817 --> PgClassExpression2818 - PgClassExpression2819{{"PgClassExpression[2819∈352]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2817 --> PgClassExpression2819 - PgClassExpression2820{{"PgClassExpression[2820∈352]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2817 --> PgClassExpression2820 - PgClassExpression2821{{"PgClassExpression[2821∈352]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2817 --> PgClassExpression2821 - PgClassExpression2822{{"PgClassExpression[2822∈352]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2817 --> PgClassExpression2822 - PgClassExpression2823{{"PgClassExpression[2823∈352]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2817 --> PgClassExpression2823 - PgClassExpression2824{{"PgClassExpression[2824∈352]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2817 --> PgClassExpression2824 - PgSelect2832[["PgSelect[2832∈353]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2831{{"PgClassExpression[2831∈353]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression2831 --> PgSelect2832 - PgSelect2847[["PgSelect[2847∈353]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2846{{"PgClassExpression[2846∈353]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression2846 --> PgSelect2847 - PgSelectSingle2830 --> PgClassExpression2831 - First2836{{"First[2836∈353]"}}:::plan - PgSelectRows2837[["PgSelectRows[2837∈353]"]]:::plan - PgSelectRows2837 --> First2836 - PgSelect2832 --> PgSelectRows2837 - PgSelectSingle2838{{"PgSelectSingle[2838∈353]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2836 --> PgSelectSingle2838 - PgSelectSingle2830 --> PgClassExpression2846 - First2849{{"First[2849∈353]"}}:::plan - PgSelectRows2850[["PgSelectRows[2850∈353]"]]:::plan - PgSelectRows2850 --> First2849 - PgSelect2847 --> PgSelectRows2850 - PgSelectSingle2851{{"PgSelectSingle[2851∈353]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2849 --> PgSelectSingle2851 - PgClassExpression2859{{"PgClassExpression[2859∈353]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle2830 --> PgClassExpression2859 - PgClassExpression2839{{"PgClassExpression[2839∈354]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2838 --> PgClassExpression2839 - PgClassExpression2840{{"PgClassExpression[2840∈354]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2838 --> PgClassExpression2840 - PgClassExpression2841{{"PgClassExpression[2841∈354]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2838 --> PgClassExpression2841 - PgClassExpression2842{{"PgClassExpression[2842∈354]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2838 --> PgClassExpression2842 - PgClassExpression2843{{"PgClassExpression[2843∈354]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2838 --> PgClassExpression2843 - PgClassExpression2844{{"PgClassExpression[2844∈354]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2838 --> PgClassExpression2844 - PgClassExpression2845{{"PgClassExpression[2845∈354]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2838 --> PgClassExpression2845 - PgClassExpression2852{{"PgClassExpression[2852∈355]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2851 --> PgClassExpression2852 - PgClassExpression2853{{"PgClassExpression[2853∈355]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2851 --> PgClassExpression2853 - PgClassExpression2854{{"PgClassExpression[2854∈355]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2851 --> PgClassExpression2854 - PgClassExpression2855{{"PgClassExpression[2855∈355]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2851 --> PgClassExpression2855 - PgClassExpression2856{{"PgClassExpression[2856∈355]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2851 --> PgClassExpression2856 - PgClassExpression2857{{"PgClassExpression[2857∈355]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2851 --> PgClassExpression2857 - PgClassExpression2858{{"PgClassExpression[2858∈355]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2851 --> PgClassExpression2858 - __Item2878[/"__Item[2878∈357]
ᐸ2877ᐳ"\]:::itemplan - PgClassExpression2877 ==> __Item2878 - __Item2880[/"__Item[2880∈358]
ᐸ2879ᐳ"\]:::itemplan - PgClassExpression2879 ==> __Item2880 - __Item2883[/"__Item[2883∈359]
ᐸ2882ᐳ"\]:::itemplan - PgClassExpression2882 ==> __Item2883 - PgClassExpression2889{{"PgClassExpression[2889∈360]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle2888 --> PgClassExpression2889 - PgClassExpression2890{{"PgClassExpression[2890∈360]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle2888 --> PgClassExpression2890 - PgClassExpression2896{{"PgClassExpression[2896∈361]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle2895 --> PgClassExpression2896 - PgClassExpression2897{{"PgClassExpression[2897∈361]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle2895 --> PgClassExpression2897 - __Item2900[/"__Item[2900∈362]
ᐸ2899ᐳ"\]:::itemplan - PgClassExpression2899 ==> __Item2900 - __Item2904[/"__Item[2904∈363]
ᐸ2696ᐳ"\]:::itemplan - PgSelectRows2696 -.-> __Item2904 - PgSelectSingle2905{{"PgSelectSingle[2905∈363]
ᐸperson_type_function_connectionᐳ"}}:::plan - __Item2904 --> PgSelectSingle2905 - Edge3802{{"Edge[3802∈364]"}}:::plan - PgSelectSingle2907{{"PgSelectSingle[2907∈364]
ᐸperson_type_function_connectionᐳ"}}:::plan - PgSelectSingle2907 & Connection2694 --> Edge3802 - __Item2906[/"__Item[2906∈364]
ᐸ2902ᐳ"\]:::itemplan - __ListTransform2902 ==> __Item2906 - __Item2906 --> PgSelectSingle2907 - PgSelect2977[["PgSelect[2977∈366]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2976{{"PgClassExpression[2976∈366]
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2976 --> PgSelect2977 - PgSelect2992[["PgSelect[2992∈366]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression2991{{"PgClassExpression[2991∈366]
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression2991 --> PgSelect2992 - PgSelect2998[["PgSelect[2998∈366]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression2997{{"PgClassExpression[2997∈366]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression2997 --> PgSelect2998 - PgSelect3011[["PgSelect[3011∈366]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3010{{"PgClassExpression[3010∈366]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression3010 --> PgSelect3011 - PgSelect3025[["PgSelect[3025∈366]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3024{{"PgClassExpression[3024∈366]
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3024 --> PgSelect3025 - PgSelect3038[["PgSelect[3038∈366]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression3037{{"PgClassExpression[3037∈366]
ᐸ__person_t...ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3037 --> PgSelect3038 - PgSelect3096[["PgSelect[3096∈366]
ᐸpostᐳ"]]:::plan - PgClassExpression2912{{"PgClassExpression[2912∈366]
ᐸ__person_t...”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression2912 --> PgSelect3096 - PgSelect3103[["PgSelect[3103∈366]
ᐸpostᐳ"]]:::plan - PgClassExpression2911{{"PgClassExpression[2911∈366]
ᐸ__person_t...ion__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression2911 --> PgSelect3103 - PgSelectSingle2907 --> PgClassExpression2911 - PgSelectSingle2907 --> PgClassExpression2912 - PgClassExpression2913{{"PgClassExpression[2913∈366]
ᐸ__person_t..._.”bigint”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2913 - PgClassExpression2914{{"PgClassExpression[2914∈366]
ᐸ__person_t....”numeric”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2914 - PgClassExpression2915{{"PgClassExpression[2915∈366]
ᐸ__person_t....”decimal”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2915 - PgClassExpression2916{{"PgClassExpression[2916∈366]
ᐸ__person_t....”boolean”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2916 - PgClassExpression2917{{"PgClassExpression[2917∈366]
ᐸ__person_t....”varchar”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2917 - PgClassExpression2918{{"PgClassExpression[2918∈366]
ᐸ__person_t...n__.”enum”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2918 - PgClassExpression2919{{"PgClassExpression[2919∈366]
ᐸ__person_t...num_array”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2919 - PgClassExpression2921{{"PgClassExpression[2921∈366]
ᐸ__person_t..._.”domain”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2921 - PgClassExpression2922{{"PgClassExpression[2922∈366]
ᐸ__person_t....”domain2”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2922 - PgClassExpression2923{{"PgClassExpression[2923∈366]
ᐸ__person_t...ext_array”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2923 - PgClassExpression2925{{"PgClassExpression[2925∈366]
ᐸ__person_t...n__.”json”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2925 - PgClassExpression2926{{"PgClassExpression[2926∈366]
ᐸ__person_t...__.”jsonb”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2926 - PgClassExpression2927{{"PgClassExpression[2927∈366]
ᐸ__person_t...ble_range”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2927 - PgClassExpression2934{{"PgClassExpression[2934∈366]
ᐸ__person_t...”numrange”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2934 - Access2935{{"Access[2935∈366]
ᐸ2934.startᐳ"}}:::plan - PgClassExpression2934 --> Access2935 - Access2938{{"Access[2938∈366]
ᐸ2934.endᐳ"}}:::plan - PgClassExpression2934 --> Access2938 - PgClassExpression2941{{"PgClassExpression[2941∈366]
ᐸ__person_t...daterange”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2941 - Access2942{{"Access[2942∈366]
ᐸ2941.startᐳ"}}:::plan - PgClassExpression2941 --> Access2942 - Access2945{{"Access[2945∈366]
ᐸ2941.endᐳ"}}:::plan - PgClassExpression2941 --> Access2945 - PgClassExpression2948{{"PgClassExpression[2948∈366]
ᐸ__person_t...int_range”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2948 - Access2949{{"Access[2949∈366]
ᐸ2948.startᐳ"}}:::plan - PgClassExpression2948 --> Access2949 - Access2952{{"Access[2952∈366]
ᐸ2948.endᐳ"}}:::plan - PgClassExpression2948 --> Access2952 - PgClassExpression2955{{"PgClassExpression[2955∈366]
ᐸ__person_t...timestamp”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2955 - PgClassExpression2956{{"PgClassExpression[2956∈366]
ᐸ__person_t...mestamptz”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2956 - PgClassExpression2957{{"PgClassExpression[2957∈366]
ᐸ__person_t...n__.”date”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2957 - PgClassExpression2958{{"PgClassExpression[2958∈366]
ᐸ__person_t...n__.”time”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2958 - PgClassExpression2959{{"PgClassExpression[2959∈366]
ᐸ__person_t..._.”timetz”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2959 - PgClassExpression2960{{"PgClassExpression[2960∈366]
ᐸ__person_t...”interval”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2960 - PgClassExpression2967{{"PgClassExpression[2967∈366]
ᐸ__person_t...val_array”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2967 - PgClassExpression2975{{"PgClassExpression[2975∈366]
ᐸ__person_t...__.”money”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression2975 - PgSelectSingle2907 --> PgClassExpression2976 - First2981{{"First[2981∈366]"}}:::plan - PgSelectRows2982[["PgSelectRows[2982∈366]"]]:::plan - PgSelectRows2982 --> First2981 - PgSelect2977 --> PgSelectRows2982 - PgSelectSingle2983{{"PgSelectSingle[2983∈366]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First2981 --> PgSelectSingle2983 - PgClassExpression2984{{"PgClassExpression[2984∈366]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle2983 --> PgClassExpression2984 - PgClassExpression2985{{"PgClassExpression[2985∈366]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle2983 --> PgClassExpression2985 - PgClassExpression2986{{"PgClassExpression[2986∈366]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle2983 --> PgClassExpression2986 - PgClassExpression2987{{"PgClassExpression[2987∈366]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle2983 --> PgClassExpression2987 - PgClassExpression2988{{"PgClassExpression[2988∈366]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle2983 --> PgClassExpression2988 - PgClassExpression2989{{"PgClassExpression[2989∈366]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle2983 --> PgClassExpression2989 - PgClassExpression2990{{"PgClassExpression[2990∈366]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle2983 --> PgClassExpression2990 - PgSelectSingle2907 --> PgClassExpression2991 - First2994{{"First[2994∈366]"}}:::plan - PgSelectRows2995[["PgSelectRows[2995∈366]"]]:::plan - PgSelectRows2995 --> First2994 - PgSelect2992 --> PgSelectRows2995 - PgSelectSingle2996{{"PgSelectSingle[2996∈366]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First2994 --> PgSelectSingle2996 - PgSelectSingle2996 --> PgClassExpression2997 - First3000{{"First[3000∈366]"}}:::plan - PgSelectRows3001[["PgSelectRows[3001∈366]"]]:::plan + PgClassExpression2786{{"PgClassExpression[2786∈86]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2784 --> PgClassExpression2786 + PgClassExpression2787{{"PgClassExpression[2787∈86]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2784 --> PgClassExpression2787 + PgClassExpression2788{{"PgClassExpression[2788∈86]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2784 --> PgClassExpression2788 + PgClassExpression2789{{"PgClassExpression[2789∈86]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2784 --> PgClassExpression2789 + PgClassExpression2790{{"PgClassExpression[2790∈86]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2784 --> PgClassExpression2790 + PgClassExpression2791{{"PgClassExpression[2791∈86]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2784 --> PgClassExpression2791 + PgSelectSingle2660 --> PgClassExpression2792 + First2796{{"First[2796∈86]"}}:::plan + PgSelectRows2797[["PgSelectRows[2797∈86]"]]:::plan + PgSelectRows2797 --> First2796 + PgSelect2793 --> PgSelectRows2797 + PgSelectSingle2798{{"PgSelectSingle[2798∈86]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First2796 --> PgSelectSingle2798 + PgSelectSingle2798 --> PgClassExpression2799 + First2803{{"First[2803∈86]"}}:::plan + PgSelectRows2804[["PgSelectRows[2804∈86]"]]:::plan + PgSelectRows2804 --> First2803 + PgSelect2800 --> PgSelectRows2804 + PgSelectSingle2805{{"PgSelectSingle[2805∈86]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2803 --> PgSelectSingle2805 + PgClassExpression2806{{"PgClassExpression[2806∈86]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2805 --> PgClassExpression2806 + PgClassExpression2807{{"PgClassExpression[2807∈86]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2805 --> PgClassExpression2807 + PgClassExpression2808{{"PgClassExpression[2808∈86]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2805 --> PgClassExpression2808 + PgClassExpression2809{{"PgClassExpression[2809∈86]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2805 --> PgClassExpression2809 + PgClassExpression2810{{"PgClassExpression[2810∈86]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2805 --> PgClassExpression2810 + PgClassExpression2811{{"PgClassExpression[2811∈86]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2805 --> PgClassExpression2811 + PgClassExpression2812{{"PgClassExpression[2812∈86]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2805 --> PgClassExpression2812 + PgSelectSingle2798 --> PgClassExpression2813 + First2817{{"First[2817∈86]"}}:::plan + PgSelectRows2818[["PgSelectRows[2818∈86]"]]:::plan + PgSelectRows2818 --> First2817 + PgSelect2814 --> PgSelectRows2818 + PgSelectSingle2819{{"PgSelectSingle[2819∈86]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2817 --> PgSelectSingle2819 + PgClassExpression2820{{"PgClassExpression[2820∈86]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2819 --> PgClassExpression2820 + PgClassExpression2821{{"PgClassExpression[2821∈86]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2819 --> PgClassExpression2821 + PgClassExpression2822{{"PgClassExpression[2822∈86]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2819 --> PgClassExpression2822 + PgClassExpression2823{{"PgClassExpression[2823∈86]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2819 --> PgClassExpression2823 + PgClassExpression2824{{"PgClassExpression[2824∈86]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2819 --> PgClassExpression2824 + PgClassExpression2825{{"PgClassExpression[2825∈86]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2819 --> PgClassExpression2825 + PgClassExpression2826{{"PgClassExpression[2826∈86]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2819 --> PgClassExpression2826 + PgClassExpression2827{{"PgClassExpression[2827∈86]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle2798 --> PgClassExpression2827 + PgClassExpression2828{{"PgClassExpression[2828∈86]
ᐸ__person_t...__.”point”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2828 + PgClassExpression2831{{"PgClassExpression[2831∈86]
ᐸ__person_t...ablePoint”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2831 + PgClassExpression2834{{"PgClassExpression[2834∈86]
ᐸ__person_t...n__.”inet”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2834 + PgClassExpression2835{{"PgClassExpression[2835∈86]
ᐸ__person_t...n__.”cidr”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2835 + PgClassExpression2836{{"PgClassExpression[2836∈86]
ᐸ__person_t....”macaddr”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2836 + PgClassExpression2837{{"PgClassExpression[2837∈86]
ᐸ__person_t....”regproc”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2837 + PgClassExpression2838{{"PgClassExpression[2838∈86]
ᐸ__person_t...procedure”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2838 + PgClassExpression2839{{"PgClassExpression[2839∈86]
ᐸ__person_t....”regoper”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2839 + PgClassExpression2840{{"PgClassExpression[2840∈86]
ᐸ__person_t...goperator”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2840 + PgClassExpression2841{{"PgClassExpression[2841∈86]
ᐸ__person_t...”regclass”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2841 + PgClassExpression2842{{"PgClassExpression[2842∈86]
ᐸ__person_t....”regtype”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2842 + PgClassExpression2843{{"PgClassExpression[2843∈86]
ᐸ__person_t...regconfig”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2843 + PgClassExpression2844{{"PgClassExpression[2844∈86]
ᐸ__person_t...ictionary”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2844 + PgClassExpression2845{{"PgClassExpression[2845∈86]
ᐸ__person_t...ay_domain”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2845 + PgClassExpression2847{{"PgClassExpression[2847∈86]
ᐸ__person_t...ay_domain”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2847 + PgClassExpression2849{{"PgClassExpression[2849∈86]
ᐸ__person_t...__.”bytea”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2849 + PgClassExpression2850{{"PgClassExpression[2850∈86]
ᐸ__person_t...tea_array”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2850 + First2854{{"First[2854∈86]"}}:::plan + PgSelectRows2855[["PgSelectRows[2855∈86]"]]:::plan + PgSelectRows2855 --> First2854 + PgSelect2852 --> PgSelectRows2855 + PgSelectSingle2856{{"PgSelectSingle[2856∈86]
ᐸpostᐳ"}}:::plan + First2854 --> PgSelectSingle2856 + PgClassExpression2857{{"PgClassExpression[2857∈86]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle2856 --> PgClassExpression2857 + PgClassExpression2858{{"PgClassExpression[2858∈86]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle2856 --> PgClassExpression2858 + First2861{{"First[2861∈86]"}}:::plan + PgSelectRows2862[["PgSelectRows[2862∈86]"]]:::plan + PgSelectRows2862 --> First2861 + PgSelect2859 --> PgSelectRows2862 + PgSelectSingle2863{{"PgSelectSingle[2863∈86]
ᐸpostᐳ"}}:::plan + First2861 --> PgSelectSingle2863 + PgClassExpression2864{{"PgClassExpression[2864∈86]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle2863 --> PgClassExpression2864 + PgClassExpression2865{{"PgClassExpression[2865∈86]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle2863 --> PgClassExpression2865 + PgClassExpression2866{{"PgClassExpression[2866∈86]
ᐸ__person_t...__.”ltree”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2866 + PgClassExpression2867{{"PgClassExpression[2867∈86]
ᐸ__person_t...ree_array”ᐳ"}}:::plan + PgSelectSingle2660 --> PgClassExpression2867 + __Item2670[/"__Item[2670∈87]
ᐸ2669ᐳ"\]:::itemplan + PgClassExpression2669 ==> __Item2670 + __Item2674[/"__Item[2674∈88]
ᐸ2673ᐳ"\]:::itemplan + PgClassExpression2673 ==> __Item2674 + __Item2718[/"__Item[2718∈89]
ᐸ2717ᐳ"\]:::itemplan + PgClassExpression2717 ==> __Item2718 + __Item2846[/"__Item[2846∈90]
ᐸ2845ᐳ"\]:::itemplan + PgClassExpression2845 ==> __Item2846 + __Item2848[/"__Item[2848∈91]
ᐸ2847ᐳ"\]:::itemplan + PgClassExpression2847 ==> __Item2848 + __Item2851[/"__Item[2851∈92]
ᐸ2850ᐳ"\]:::itemplan + PgClassExpression2850 ==> __Item2851 + __Item2868[/"__Item[2868∈93]
ᐸ2867ᐳ"\]:::itemplan + PgClassExpression2867 ==> __Item2868 + __Item2872[/"__Item[2872∈94]
ᐸ2658ᐳ"\]:::itemplan + PgSelectRows2658 -.-> __Item2872 + PgSelectSingle2873{{"PgSelectSingle[2873∈94]
ᐸperson_type_function_connectionᐳ"}}:::plan + __Item2872 --> PgSelectSingle2873 + PgSelect2945[["PgSelect[2945∈95]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2944{{"PgClassExpression[2944∈95]
ᐸ__person_t...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2944 & PgFromExpression2949 --> PgSelect2945 + PgSelect2961[["PgSelect[2961∈95]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression2960{{"PgClassExpression[2960∈95]
ᐸ__person_t...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2960 & PgFromExpression2963 --> PgSelect2961 + PgSelect2968[["PgSelect[2968∈95]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2967{{"PgClassExpression[2967∈95]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression2967 & PgFromExpression2970 --> PgSelect2968 + PgSelect2982[["PgSelect[2982∈95]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2981{{"PgClassExpression[2981∈95]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression2981 & PgFromExpression2984 --> PgSelect2982 + PgSelect2997[["PgSelect[2997∈95]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression2996{{"PgClassExpression[2996∈95]
ᐸ__person_t...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression2996 & PgFromExpression2999 --> PgSelect2997 + PgSelect3011[["PgSelect[3011∈95]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression3010{{"PgClassExpression[3010∈95]
ᐸ__person_t...ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression3010 & PgFromExpression3013 --> PgSelect3011 + PgSelect3018[["PgSelect[3018∈95]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression3017{{"PgClassExpression[3017∈95]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression3017 & PgFromExpression3020 --> PgSelect3018 + PgSelect3032[["PgSelect[3032∈95]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression3031{{"PgClassExpression[3031∈95]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression3031 & PgFromExpression3034 --> PgSelect3032 + PgSelect3070[["PgSelect[3070∈95]
ᐸpostᐳ"]]:::plan + PgClassExpression2880{{"PgClassExpression[2880∈95]
ᐸ__person_t...”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression2880 --> PgSelect3070 + PgSelect3077[["PgSelect[3077∈95]
ᐸpostᐳ"]]:::plan + PgClassExpression2879{{"PgClassExpression[2879∈95]
ᐸ__person_t...ion__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression2879 --> PgSelect3077 + Edge3686{{"Edge[3686∈95]"}}:::plan + PgSelectSingle2875{{"PgSelectSingle[2875∈95]
ᐸperson_type_function_connectionᐳ"}}:::plan + PgSelectSingle2875 & Connection2656 --> Edge3686 + __Item2874[/"__Item[2874∈95]
ᐸ2870ᐳ"\]:::itemplan + __ListTransform2870 ==> __Item2874 + __Item2874 --> PgSelectSingle2875 + PgSelectSingle2875 --> PgClassExpression2879 + PgSelectSingle2875 --> PgClassExpression2880 + PgClassExpression2881{{"PgClassExpression[2881∈95]
ᐸ__person_t..._.”bigint”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2881 + PgClassExpression2882{{"PgClassExpression[2882∈95]
ᐸ__person_t....”numeric”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2882 + PgClassExpression2883{{"PgClassExpression[2883∈95]
ᐸ__person_t....”decimal”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2883 + PgClassExpression2884{{"PgClassExpression[2884∈95]
ᐸ__person_t....”boolean”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2884 + PgClassExpression2885{{"PgClassExpression[2885∈95]
ᐸ__person_t....”varchar”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2885 + PgClassExpression2886{{"PgClassExpression[2886∈95]
ᐸ__person_t...n__.”enum”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2886 + PgClassExpression2887{{"PgClassExpression[2887∈95]
ᐸ__person_t...num_array”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2887 + PgClassExpression2889{{"PgClassExpression[2889∈95]
ᐸ__person_t..._.”domain”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2889 + PgClassExpression2890{{"PgClassExpression[2890∈95]
ᐸ__person_t....”domain2”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2890 + PgClassExpression2891{{"PgClassExpression[2891∈95]
ᐸ__person_t...ext_array”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2891 + PgClassExpression2893{{"PgClassExpression[2893∈95]
ᐸ__person_t...n__.”json”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2893 + PgClassExpression2894{{"PgClassExpression[2894∈95]
ᐸ__person_t...__.”jsonb”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2894 + PgClassExpression2895{{"PgClassExpression[2895∈95]
ᐸ__person_t...ble_range”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2895 + PgClassExpression2902{{"PgClassExpression[2902∈95]
ᐸ__person_t...”numrange”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2902 + PgClassExpression2909{{"PgClassExpression[2909∈95]
ᐸ__person_t...daterange”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2909 + PgClassExpression2916{{"PgClassExpression[2916∈95]
ᐸ__person_t...int_range”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2916 + PgClassExpression2923{{"PgClassExpression[2923∈95]
ᐸ__person_t...timestamp”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2923 + PgClassExpression2924{{"PgClassExpression[2924∈95]
ᐸ__person_t...mestamptz”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2924 + PgClassExpression2925{{"PgClassExpression[2925∈95]
ᐸ__person_t...n__.”date”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2925 + PgClassExpression2926{{"PgClassExpression[2926∈95]
ᐸ__person_t...n__.”time”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2926 + PgClassExpression2927{{"PgClassExpression[2927∈95]
ᐸ__person_t..._.”timetz”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2927 + PgClassExpression2928{{"PgClassExpression[2928∈95]
ᐸ__person_t...”interval”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2928 + PgClassExpression2935{{"PgClassExpression[2935∈95]
ᐸ__person_t...val_array”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2935 + PgClassExpression2943{{"PgClassExpression[2943∈95]
ᐸ__person_t...__.”money”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression2943 + PgSelectSingle2875 --> PgClassExpression2944 + First2950{{"First[2950∈95]"}}:::plan + PgSelectRows2951[["PgSelectRows[2951∈95]"]]:::plan + PgSelectRows2951 --> First2950 + PgSelect2945 --> PgSelectRows2951 + PgSelectSingle2952{{"PgSelectSingle[2952∈95]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2950 --> PgSelectSingle2952 + PgClassExpression2953{{"PgClassExpression[2953∈95]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2952 --> PgClassExpression2953 + PgClassExpression2954{{"PgClassExpression[2954∈95]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2952 --> PgClassExpression2954 + PgClassExpression2955{{"PgClassExpression[2955∈95]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2952 --> PgClassExpression2955 + PgClassExpression2956{{"PgClassExpression[2956∈95]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2952 --> PgClassExpression2956 + PgClassExpression2957{{"PgClassExpression[2957∈95]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2952 --> PgClassExpression2957 + PgClassExpression2958{{"PgClassExpression[2958∈95]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2952 --> PgClassExpression2958 + PgClassExpression2959{{"PgClassExpression[2959∈95]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2952 --> PgClassExpression2959 + PgSelectSingle2875 --> PgClassExpression2960 + First2964{{"First[2964∈95]"}}:::plan + PgSelectRows2965[["PgSelectRows[2965∈95]"]]:::plan + PgSelectRows2965 --> First2964 + PgSelect2961 --> PgSelectRows2965 + PgSelectSingle2966{{"PgSelectSingle[2966∈95]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First2964 --> PgSelectSingle2966 + PgSelectSingle2966 --> PgClassExpression2967 + First2971{{"First[2971∈95]"}}:::plan + PgSelectRows2972[["PgSelectRows[2972∈95]"]]:::plan + PgSelectRows2972 --> First2971 + PgSelect2968 --> PgSelectRows2972 + PgSelectSingle2973{{"PgSelectSingle[2973∈95]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2971 --> PgSelectSingle2973 + PgClassExpression2974{{"PgClassExpression[2974∈95]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2973 --> PgClassExpression2974 + PgClassExpression2975{{"PgClassExpression[2975∈95]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2973 --> PgClassExpression2975 + PgClassExpression2976{{"PgClassExpression[2976∈95]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2973 --> PgClassExpression2976 + PgClassExpression2977{{"PgClassExpression[2977∈95]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2973 --> PgClassExpression2977 + PgClassExpression2978{{"PgClassExpression[2978∈95]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2973 --> PgClassExpression2978 + PgClassExpression2979{{"PgClassExpression[2979∈95]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2973 --> PgClassExpression2979 + PgClassExpression2980{{"PgClassExpression[2980∈95]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2973 --> PgClassExpression2980 + PgSelectSingle2966 --> PgClassExpression2981 + First2985{{"First[2985∈95]"}}:::plan + PgSelectRows2986[["PgSelectRows[2986∈95]"]]:::plan + PgSelectRows2986 --> First2985 + PgSelect2982 --> PgSelectRows2986 + PgSelectSingle2987{{"PgSelectSingle[2987∈95]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First2985 --> PgSelectSingle2987 + PgClassExpression2988{{"PgClassExpression[2988∈95]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle2987 --> PgClassExpression2988 + PgClassExpression2989{{"PgClassExpression[2989∈95]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle2987 --> PgClassExpression2989 + PgClassExpression2990{{"PgClassExpression[2990∈95]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle2987 --> PgClassExpression2990 + PgClassExpression2991{{"PgClassExpression[2991∈95]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle2987 --> PgClassExpression2991 + PgClassExpression2992{{"PgClassExpression[2992∈95]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle2987 --> PgClassExpression2992 + PgClassExpression2993{{"PgClassExpression[2993∈95]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle2987 --> PgClassExpression2993 + PgClassExpression2994{{"PgClassExpression[2994∈95]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle2987 --> PgClassExpression2994 + PgClassExpression2995{{"PgClassExpression[2995∈95]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle2966 --> PgClassExpression2995 + PgSelectSingle2875 --> PgClassExpression2996 + First3000{{"First[3000∈95]"}}:::plan + PgSelectRows3001[["PgSelectRows[3001∈95]"]]:::plan PgSelectRows3001 --> First3000 - PgSelect2998 --> PgSelectRows3001 - PgSelectSingle3002{{"PgSelectSingle[3002∈366]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + PgSelect2997 --> PgSelectRows3001 + PgSelectSingle3002{{"PgSelectSingle[3002∈95]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan First3000 --> PgSelectSingle3002 - PgSelectSingle2996 --> PgClassExpression3010 - First3013{{"First[3013∈366]"}}:::plan - PgSelectRows3014[["PgSelectRows[3014∈366]"]]:::plan - PgSelectRows3014 --> First3013 - PgSelect3011 --> PgSelectRows3014 - PgSelectSingle3015{{"PgSelectSingle[3015∈366]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3013 --> PgSelectSingle3015 - PgClassExpression3023{{"PgClassExpression[3023∈366]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle2996 --> PgClassExpression3023 - PgSelectSingle2907 --> PgClassExpression3024 - First3027{{"First[3027∈366]"}}:::plan - PgSelectRows3028[["PgSelectRows[3028∈366]"]]:::plan - PgSelectRows3028 --> First3027 - PgSelect3025 --> PgSelectRows3028 - PgSelectSingle3029{{"PgSelectSingle[3029∈366]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3027 --> PgSelectSingle3029 - PgSelectSingle2907 --> PgClassExpression3037 - First3040{{"First[3040∈366]"}}:::plan - PgSelectRows3041[["PgSelectRows[3041∈366]"]]:::plan - PgSelectRows3041 --> First3040 - PgSelect3038 --> PgSelectRows3041 - PgSelectSingle3042{{"PgSelectSingle[3042∈366]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First3040 --> PgSelectSingle3042 - PgClassExpression3072{{"PgClassExpression[3072∈366]
ᐸ__person_t...__.”point”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3072 - PgClassExpression3075{{"PgClassExpression[3075∈366]
ᐸ__person_t...ablePoint”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3075 - PgClassExpression3078{{"PgClassExpression[3078∈366]
ᐸ__person_t...n__.”inet”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3078 - PgClassExpression3079{{"PgClassExpression[3079∈366]
ᐸ__person_t...n__.”cidr”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3079 - PgClassExpression3080{{"PgClassExpression[3080∈366]
ᐸ__person_t....”macaddr”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3080 - PgClassExpression3081{{"PgClassExpression[3081∈366]
ᐸ__person_t....”regproc”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3081 - PgClassExpression3082{{"PgClassExpression[3082∈366]
ᐸ__person_t...procedure”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3082 - PgClassExpression3083{{"PgClassExpression[3083∈366]
ᐸ__person_t....”regoper”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3083 - PgClassExpression3084{{"PgClassExpression[3084∈366]
ᐸ__person_t...goperator”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3084 - PgClassExpression3085{{"PgClassExpression[3085∈366]
ᐸ__person_t...”regclass”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3085 - PgClassExpression3086{{"PgClassExpression[3086∈366]
ᐸ__person_t....”regtype”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3086 - PgClassExpression3087{{"PgClassExpression[3087∈366]
ᐸ__person_t...regconfig”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3087 - PgClassExpression3088{{"PgClassExpression[3088∈366]
ᐸ__person_t...ictionary”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3088 - PgClassExpression3089{{"PgClassExpression[3089∈366]
ᐸ__person_t...ay_domain”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3089 - PgClassExpression3091{{"PgClassExpression[3091∈366]
ᐸ__person_t...ay_domain”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3091 - PgClassExpression3093{{"PgClassExpression[3093∈366]
ᐸ__person_t...__.”bytea”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3093 - PgClassExpression3094{{"PgClassExpression[3094∈366]
ᐸ__person_t...tea_array”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3094 - First3098{{"First[3098∈366]"}}:::plan - PgSelectRows3099[["PgSelectRows[3099∈366]"]]:::plan - PgSelectRows3099 --> First3098 - PgSelect3096 --> PgSelectRows3099 - PgSelectSingle3100{{"PgSelectSingle[3100∈366]
ᐸpostᐳ"}}:::plan - First3098 --> PgSelectSingle3100 - First3105{{"First[3105∈366]"}}:::plan - PgSelectRows3106[["PgSelectRows[3106∈366]"]]:::plan - PgSelectRows3106 --> First3105 - PgSelect3103 --> PgSelectRows3106 - PgSelectSingle3107{{"PgSelectSingle[3107∈366]
ᐸpostᐳ"}}:::plan - First3105 --> PgSelectSingle3107 - PgClassExpression3110{{"PgClassExpression[3110∈366]
ᐸ__person_t...__.”ltree”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3110 - PgClassExpression3111{{"PgClassExpression[3111∈366]
ᐸ__person_t...ree_array”ᐳ"}}:::plan - PgSelectSingle2907 --> PgClassExpression3111 - __Item2920[/"__Item[2920∈367]
ᐸ2919ᐳ"\]:::itemplan - PgClassExpression2919 ==> __Item2920 - __Item2924[/"__Item[2924∈368]
ᐸ2923ᐳ"\]:::itemplan - PgClassExpression2923 ==> __Item2924 - Access2928{{"Access[2928∈369]
ᐸ2927.startᐳ"}}:::plan - PgClassExpression2927 --> Access2928 - Access2931{{"Access[2931∈369]
ᐸ2927.endᐳ"}}:::plan - PgClassExpression2927 --> Access2931 - __Item2968[/"__Item[2968∈378]
ᐸ2967ᐳ"\]:::itemplan - PgClassExpression2967 ==> __Item2968 - PgClassExpression3003{{"PgClassExpression[3003∈380]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgClassExpression3003{{"PgClassExpression[3003∈95]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan PgSelectSingle3002 --> PgClassExpression3003 - PgClassExpression3004{{"PgClassExpression[3004∈380]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgClassExpression3004{{"PgClassExpression[3004∈95]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan PgSelectSingle3002 --> PgClassExpression3004 - PgClassExpression3005{{"PgClassExpression[3005∈380]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgClassExpression3005{{"PgClassExpression[3005∈95]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan PgSelectSingle3002 --> PgClassExpression3005 - PgClassExpression3006{{"PgClassExpression[3006∈380]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgClassExpression3006{{"PgClassExpression[3006∈95]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan PgSelectSingle3002 --> PgClassExpression3006 - PgClassExpression3007{{"PgClassExpression[3007∈380]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgClassExpression3007{{"PgClassExpression[3007∈95]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan PgSelectSingle3002 --> PgClassExpression3007 - PgClassExpression3008{{"PgClassExpression[3008∈380]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgClassExpression3008{{"PgClassExpression[3008∈95]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan PgSelectSingle3002 --> PgClassExpression3008 - PgClassExpression3009{{"PgClassExpression[3009∈380]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgClassExpression3009{{"PgClassExpression[3009∈95]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan PgSelectSingle3002 --> PgClassExpression3009 - PgClassExpression3016{{"PgClassExpression[3016∈381]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3015 --> PgClassExpression3016 - PgClassExpression3017{{"PgClassExpression[3017∈381]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3015 --> PgClassExpression3017 - PgClassExpression3018{{"PgClassExpression[3018∈381]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3015 --> PgClassExpression3018 - PgClassExpression3019{{"PgClassExpression[3019∈381]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3015 --> PgClassExpression3019 - PgClassExpression3020{{"PgClassExpression[3020∈381]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3015 --> PgClassExpression3020 - PgClassExpression3021{{"PgClassExpression[3021∈381]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3015 --> PgClassExpression3021 - PgClassExpression3022{{"PgClassExpression[3022∈381]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3015 --> PgClassExpression3022 - PgClassExpression3030{{"PgClassExpression[3030∈382]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3029 --> PgClassExpression3030 - PgClassExpression3031{{"PgClassExpression[3031∈382]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3029 --> PgClassExpression3031 - PgClassExpression3032{{"PgClassExpression[3032∈382]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3029 --> PgClassExpression3032 - PgClassExpression3033{{"PgClassExpression[3033∈382]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3029 --> PgClassExpression3033 - PgClassExpression3034{{"PgClassExpression[3034∈382]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3029 --> PgClassExpression3034 - PgClassExpression3035{{"PgClassExpression[3035∈382]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3029 --> PgClassExpression3035 - PgClassExpression3036{{"PgClassExpression[3036∈382]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3029 --> PgClassExpression3036 - PgSelect3044[["PgSelect[3044∈383]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3043{{"PgClassExpression[3043∈383]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression3043 --> PgSelect3044 - PgSelect3059[["PgSelect[3059∈383]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3058{{"PgClassExpression[3058∈383]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression3058 --> PgSelect3059 - PgSelectSingle3042 --> PgClassExpression3043 - First3048{{"First[3048∈383]"}}:::plan - PgSelectRows3049[["PgSelectRows[3049∈383]"]]:::plan - PgSelectRows3049 --> First3048 - PgSelect3044 --> PgSelectRows3049 - PgSelectSingle3050{{"PgSelectSingle[3050∈383]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3048 --> PgSelectSingle3050 - PgSelectSingle3042 --> PgClassExpression3058 - First3061{{"First[3061∈383]"}}:::plan - PgSelectRows3062[["PgSelectRows[3062∈383]"]]:::plan - PgSelectRows3062 --> First3061 - PgSelect3059 --> PgSelectRows3062 - PgSelectSingle3063{{"PgSelectSingle[3063∈383]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3061 --> PgSelectSingle3063 - PgClassExpression3071{{"PgClassExpression[3071∈383]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle3042 --> PgClassExpression3071 - PgClassExpression3051{{"PgClassExpression[3051∈384]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3050 --> PgClassExpression3051 - PgClassExpression3052{{"PgClassExpression[3052∈384]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3050 --> PgClassExpression3052 - PgClassExpression3053{{"PgClassExpression[3053∈384]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3050 --> PgClassExpression3053 - PgClassExpression3054{{"PgClassExpression[3054∈384]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3050 --> PgClassExpression3054 - PgClassExpression3055{{"PgClassExpression[3055∈384]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3050 --> PgClassExpression3055 - PgClassExpression3056{{"PgClassExpression[3056∈384]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3050 --> PgClassExpression3056 - PgClassExpression3057{{"PgClassExpression[3057∈384]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3050 --> PgClassExpression3057 - PgClassExpression3064{{"PgClassExpression[3064∈385]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3063 --> PgClassExpression3064 - PgClassExpression3065{{"PgClassExpression[3065∈385]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3063 --> PgClassExpression3065 - PgClassExpression3066{{"PgClassExpression[3066∈385]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3063 --> PgClassExpression3066 - PgClassExpression3067{{"PgClassExpression[3067∈385]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3063 --> PgClassExpression3067 - PgClassExpression3068{{"PgClassExpression[3068∈385]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3063 --> PgClassExpression3068 - PgClassExpression3069{{"PgClassExpression[3069∈385]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3063 --> PgClassExpression3069 - PgClassExpression3070{{"PgClassExpression[3070∈385]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3063 --> PgClassExpression3070 - __Item3090[/"__Item[3090∈387]
ᐸ3089ᐳ"\]:::itemplan - PgClassExpression3089 ==> __Item3090 - __Item3092[/"__Item[3092∈388]
ᐸ3091ᐳ"\]:::itemplan - PgClassExpression3091 ==> __Item3092 - __Item3095[/"__Item[3095∈389]
ᐸ3094ᐳ"\]:::itemplan - PgClassExpression3094 ==> __Item3095 - PgClassExpression3101{{"PgClassExpression[3101∈390]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle3100 --> PgClassExpression3101 - PgClassExpression3102{{"PgClassExpression[3102∈390]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle3100 --> PgClassExpression3102 - PgClassExpression3108{{"PgClassExpression[3108∈391]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle3107 --> PgClassExpression3108 - PgClassExpression3109{{"PgClassExpression[3109∈391]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle3107 --> PgClassExpression3109 - __Item3112[/"__Item[3112∈392]
ᐸ3111ᐳ"\]:::itemplan - PgClassExpression3111 ==> __Item3112 - Object3787{{"Object[3787∈393] ➊
ᐸ{first,last,offset,hasMore}ᐳ"}}:::plan - Access3782{{"Access[3782∈393] ➊
ᐸ3363.hasMoreᐳ"}}:::plan - Constant6 & Constant6 & Constant6 & Access3782 --> Object3787 - PgSelect3363[["PgSelect[3363∈393] ➊
ᐸtypes+1ᐳ"]]:::plan - PgClassExpression3147{{"PgClassExpression[3147∈393] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression3147 & Connection3362 --> PgSelect3363 - PgSelect3773[["PgSelect[3773∈393] ➊
ᐸtypes(aggregate)ᐳ"]]:::plan - Object12 & PgClassExpression3147 & Connection3362 --> PgSelect3773 - Object3783{{"Object[3783∈393] ➊
ᐸ{first,last,hasMore}ᐳ"}}:::plan - Constant6 & Constant6 & Access3782 --> Object3783 - PgSelect3149[["PgSelect[3149∈393] ➊
ᐸtypesᐳ"]]:::plan - Object12 & PgClassExpression3147 --> PgSelect3149 - PgCursor3794{{"PgCursor[3794∈393] ➊"}}:::plan - PgSelectSingle3792{{"PgSelectSingle[3792∈393] ➊
ᐸtypesᐳ"}}:::plan - Access3793{{"Access[3793∈393] ➊
ᐸ3363.cursorDetailsᐳ"}}:::plan - PgSelectSingle3792 & Access3793 --> PgCursor3794 - PgCursor3800{{"PgCursor[3800∈393] ➊"}}:::plan - PgSelectSingle3798{{"PgSelectSingle[3798∈393] ➊
ᐸtypesᐳ"}}:::plan - PgSelectSingle3798 & Access3793 --> PgCursor3800 - PgSelectSingle3146 --> PgClassExpression3147 - PgClassExpression3148{{"PgClassExpression[3148∈393] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle3146 --> PgClassExpression3148 - First3153{{"First[3153∈393] ➊"}}:::plan - PgSelectRows3154[["PgSelectRows[3154∈393] ➊"]]:::plan - PgSelectRows3154 --> First3153 - PgSelect3149 --> PgSelectRows3154 - PgSelectSingle3155{{"PgSelectSingle[3155∈393] ➊
ᐸtypesᐳ"}}:::plan - First3153 --> PgSelectSingle3155 - PgSelectRows3364[["PgSelectRows[3364∈393] ➊"]]:::plan - PgSelect3363 --> PgSelectRows3364 - First3774{{"First[3774∈393] ➊"}}:::plan - PgSelectRows3775[["PgSelectRows[3775∈393] ➊"]]:::plan - PgSelectRows3775 --> First3774 - PgSelect3773 --> PgSelectRows3775 - PgSelectSingle3776{{"PgSelectSingle[3776∈393] ➊
ᐸtypesᐳ"}}:::plan - First3774 --> PgSelectSingle3776 - PgClassExpression3777{{"PgClassExpression[3777∈393] ➊
ᐸcount(*)ᐳ"}}:::plan - PgSelectSingle3776 --> PgClassExpression3777 - PgSelect3363 --> Access3782 - Lambda3784{{"Lambda[3784∈393] ➊
ᐸhasNextPageCbᐳ"}}:::plan - Object3783 --> Lambda3784 - Lambda3788{{"Lambda[3788∈393] ➊
ᐸhasPreviousPageCbᐳ"}}:::plan - Object3787 --> Lambda3788 - First3790{{"First[3790∈393] ➊"}}:::plan - PgSelectRows3364 --> First3790 - First3790 --> PgSelectSingle3792 - PgSelect3363 --> Access3793 - Last3796{{"Last[3796∈393] ➊"}}:::plan - PgSelectRows3364 --> Last3796 - Last3796 --> PgSelectSingle3798 - PgSelect3222[["PgSelect[3222∈394] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3221{{"PgClassExpression[3221∈394] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3221 --> PgSelect3222 - PgSelect3237[["PgSelect[3237∈394] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression3236{{"PgClassExpression[3236∈394] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3236 --> PgSelect3237 - PgSelect3243[["PgSelect[3243∈394] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3242{{"PgClassExpression[3242∈394] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression3242 --> PgSelect3243 - PgSelect3256[["PgSelect[3256∈394] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3255{{"PgClassExpression[3255∈394] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression3255 --> PgSelect3256 - PgSelect3270[["PgSelect[3270∈394] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3269{{"PgClassExpression[3269∈394] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3269 --> PgSelect3270 - PgSelect3283[["PgSelect[3283∈394] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression3282{{"PgClassExpression[3282∈394] ➊
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3282 --> PgSelect3283 - PgSelect3341[["PgSelect[3341∈394] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression3157{{"PgClassExpression[3157∈394] ➊
ᐸ__types__.”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression3157 --> PgSelect3341 - PgSelect3348[["PgSelect[3348∈394] ➊
ᐸpostᐳ"]]:::plan - PgClassExpression3156{{"PgClassExpression[3156∈394] ➊
ᐸ__types__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression3156 --> PgSelect3348 - PgSelectSingle3155 --> PgClassExpression3156 - PgSelectSingle3155 --> PgClassExpression3157 - PgClassExpression3158{{"PgClassExpression[3158∈394] ➊
ᐸ__types__.”bigint”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3158 - PgClassExpression3159{{"PgClassExpression[3159∈394] ➊
ᐸ__types__.”numeric”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3159 - PgClassExpression3160{{"PgClassExpression[3160∈394] ➊
ᐸ__types__.”decimal”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3160 - PgClassExpression3161{{"PgClassExpression[3161∈394] ➊
ᐸ__types__.”boolean”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3161 - PgClassExpression3162{{"PgClassExpression[3162∈394] ➊
ᐸ__types__.”varchar”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3162 - PgClassExpression3163{{"PgClassExpression[3163∈394] ➊
ᐸ__types__.”enum”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3163 - PgClassExpression3164{{"PgClassExpression[3164∈394] ➊
ᐸ__types__.”enum_array”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3164 - PgClassExpression3166{{"PgClassExpression[3166∈394] ➊
ᐸ__types__.”domain”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3166 - PgClassExpression3167{{"PgClassExpression[3167∈394] ➊
ᐸ__types__.”domain2”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3167 - PgClassExpression3168{{"PgClassExpression[3168∈394] ➊
ᐸ__types__.”text_array”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3168 - PgClassExpression3170{{"PgClassExpression[3170∈394] ➊
ᐸ__types__.”json”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3170 - PgClassExpression3171{{"PgClassExpression[3171∈394] ➊
ᐸ__types__.”jsonb”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3171 - PgClassExpression3172{{"PgClassExpression[3172∈394] ➊
ᐸ__types__....ble_range”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3172 - PgClassExpression3179{{"PgClassExpression[3179∈394] ➊
ᐸ__types__.”numrange”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3179 - Access3180{{"Access[3180∈394] ➊
ᐸ3179.startᐳ"}}:::plan - PgClassExpression3179 --> Access3180 - Access3183{{"Access[3183∈394] ➊
ᐸ3179.endᐳ"}}:::plan - PgClassExpression3179 --> Access3183 - PgClassExpression3186{{"PgClassExpression[3186∈394] ➊
ᐸ__types__.”daterange”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3186 - Access3187{{"Access[3187∈394] ➊
ᐸ3186.startᐳ"}}:::plan - PgClassExpression3186 --> Access3187 - Access3190{{"Access[3190∈394] ➊
ᐸ3186.endᐳ"}}:::plan - PgClassExpression3186 --> Access3190 - PgClassExpression3193{{"PgClassExpression[3193∈394] ➊
ᐸ__types__....int_range”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3193 - Access3194{{"Access[3194∈394] ➊
ᐸ3193.startᐳ"}}:::plan - PgClassExpression3193 --> Access3194 - Access3197{{"Access[3197∈394] ➊
ᐸ3193.endᐳ"}}:::plan - PgClassExpression3193 --> Access3197 - PgClassExpression3200{{"PgClassExpression[3200∈394] ➊
ᐸ__types__.”timestamp”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3200 - PgClassExpression3201{{"PgClassExpression[3201∈394] ➊
ᐸ__types__.”timestamptz”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3201 - PgClassExpression3202{{"PgClassExpression[3202∈394] ➊
ᐸ__types__.”date”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3202 - PgClassExpression3203{{"PgClassExpression[3203∈394] ➊
ᐸ__types__.”time”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3203 - PgClassExpression3204{{"PgClassExpression[3204∈394] ➊
ᐸ__types__.”timetz”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3204 - PgClassExpression3205{{"PgClassExpression[3205∈394] ➊
ᐸ__types__.”interval”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3205 - PgClassExpression3212{{"PgClassExpression[3212∈394] ➊
ᐸ__types__....val_array”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3212 - PgClassExpression3220{{"PgClassExpression[3220∈394] ➊
ᐸ__types__.”money”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3220 - PgSelectSingle3155 --> PgClassExpression3221 - First3226{{"First[3226∈394] ➊"}}:::plan - PgSelectRows3227[["PgSelectRows[3227∈394] ➊"]]:::plan - PgSelectRows3227 --> First3226 - PgSelect3222 --> PgSelectRows3227 - PgSelectSingle3228{{"PgSelectSingle[3228∈394] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3226 --> PgSelectSingle3228 - PgClassExpression3229{{"PgClassExpression[3229∈394] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3228 --> PgClassExpression3229 - PgClassExpression3230{{"PgClassExpression[3230∈394] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3228 --> PgClassExpression3230 - PgClassExpression3231{{"PgClassExpression[3231∈394] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3228 --> PgClassExpression3231 - PgClassExpression3232{{"PgClassExpression[3232∈394] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3228 --> PgClassExpression3232 - PgClassExpression3233{{"PgClassExpression[3233∈394] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3228 --> PgClassExpression3233 - PgClassExpression3234{{"PgClassExpression[3234∈394] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3228 --> PgClassExpression3234 - PgClassExpression3235{{"PgClassExpression[3235∈394] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3228 --> PgClassExpression3235 - PgSelectSingle3155 --> PgClassExpression3236 - First3239{{"First[3239∈394] ➊"}}:::plan - PgSelectRows3240[["PgSelectRows[3240∈394] ➊"]]:::plan - PgSelectRows3240 --> First3239 - PgSelect3237 --> PgSelectRows3240 - PgSelectSingle3241{{"PgSelectSingle[3241∈394] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First3239 --> PgSelectSingle3241 - PgSelectSingle3241 --> PgClassExpression3242 - First3245{{"First[3245∈394] ➊"}}:::plan - PgSelectRows3246[["PgSelectRows[3246∈394] ➊"]]:::plan - PgSelectRows3246 --> First3245 - PgSelect3243 --> PgSelectRows3246 - PgSelectSingle3247{{"PgSelectSingle[3247∈394] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3245 --> PgSelectSingle3247 - PgSelectSingle3241 --> PgClassExpression3255 - First3258{{"First[3258∈394] ➊"}}:::plan - PgSelectRows3259[["PgSelectRows[3259∈394] ➊"]]:::plan - PgSelectRows3259 --> First3258 - PgSelect3256 --> PgSelectRows3259 - PgSelectSingle3260{{"PgSelectSingle[3260∈394] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3258 --> PgSelectSingle3260 - PgClassExpression3268{{"PgClassExpression[3268∈394] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle3241 --> PgClassExpression3268 - PgSelectSingle3155 --> PgClassExpression3269 - First3272{{"First[3272∈394] ➊"}}:::plan - PgSelectRows3273[["PgSelectRows[3273∈394] ➊"]]:::plan - PgSelectRows3273 --> First3272 - PgSelect3270 --> PgSelectRows3273 - PgSelectSingle3274{{"PgSelectSingle[3274∈394] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3272 --> PgSelectSingle3274 - PgSelectSingle3155 --> PgClassExpression3282 - First3285{{"First[3285∈394] ➊"}}:::plan - PgSelectRows3286[["PgSelectRows[3286∈394] ➊"]]:::plan - PgSelectRows3286 --> First3285 - PgSelect3283 --> PgSelectRows3286 - PgSelectSingle3287{{"PgSelectSingle[3287∈394] ➊
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First3285 --> PgSelectSingle3287 - PgClassExpression3317{{"PgClassExpression[3317∈394] ➊
ᐸ__types__.”point”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3317 - PgClassExpression3320{{"PgClassExpression[3320∈394] ➊
ᐸ__types__....ablePoint”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3320 - PgClassExpression3323{{"PgClassExpression[3323∈394] ➊
ᐸ__types__.”inet”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3323 - PgClassExpression3324{{"PgClassExpression[3324∈394] ➊
ᐸ__types__.”cidr”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3324 - PgClassExpression3325{{"PgClassExpression[3325∈394] ➊
ᐸ__types__.”macaddr”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3325 - PgClassExpression3326{{"PgClassExpression[3326∈394] ➊
ᐸ__types__.”regproc”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3326 - PgClassExpression3327{{"PgClassExpression[3327∈394] ➊
ᐸ__types__....procedure”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3327 - PgClassExpression3328{{"PgClassExpression[3328∈394] ➊
ᐸ__types__.”regoper”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3328 - PgClassExpression3329{{"PgClassExpression[3329∈394] ➊
ᐸ__types__.”regoperator”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3329 - PgClassExpression3330{{"PgClassExpression[3330∈394] ➊
ᐸ__types__.”regclass”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3330 - PgClassExpression3331{{"PgClassExpression[3331∈394] ➊
ᐸ__types__.”regtype”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3331 - PgClassExpression3332{{"PgClassExpression[3332∈394] ➊
ᐸ__types__.”regconfig”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3332 - PgClassExpression3333{{"PgClassExpression[3333∈394] ➊
ᐸ__types__....ictionary”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3333 - PgClassExpression3334{{"PgClassExpression[3334∈394] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3334 - PgClassExpression3336{{"PgClassExpression[3336∈394] ➊
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3336 - PgClassExpression3338{{"PgClassExpression[3338∈394] ➊
ᐸ__types__.”bytea”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3338 - PgClassExpression3339{{"PgClassExpression[3339∈394] ➊
ᐸ__types__.”bytea_array”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3339 - First3343{{"First[3343∈394] ➊"}}:::plan - PgSelectRows3344[["PgSelectRows[3344∈394] ➊"]]:::plan - PgSelectRows3344 --> First3343 - PgSelect3341 --> PgSelectRows3344 - PgSelectSingle3345{{"PgSelectSingle[3345∈394] ➊
ᐸpostᐳ"}}:::plan - First3343 --> PgSelectSingle3345 - First3350{{"First[3350∈394] ➊"}}:::plan - PgSelectRows3351[["PgSelectRows[3351∈394] ➊"]]:::plan - PgSelectRows3351 --> First3350 - PgSelect3348 --> PgSelectRows3351 - PgSelectSingle3352{{"PgSelectSingle[3352∈394] ➊
ᐸpostᐳ"}}:::plan - First3350 --> PgSelectSingle3352 - PgClassExpression3355{{"PgClassExpression[3355∈394] ➊
ᐸ__types__.”ltree”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3355 - PgClassExpression3356{{"PgClassExpression[3356∈394] ➊
ᐸ__types__.”ltree_array”ᐳ"}}:::plan - PgSelectSingle3155 --> PgClassExpression3356 - __Item3165[/"__Item[3165∈395]
ᐸ3164ᐳ"\]:::itemplan - PgClassExpression3164 ==> __Item3165 - __Item3169[/"__Item[3169∈396]
ᐸ3168ᐳ"\]:::itemplan - PgClassExpression3168 ==> __Item3169 - Access3173{{"Access[3173∈397] ➊
ᐸ3172.startᐳ"}}:::plan - PgClassExpression3172 --> Access3173 - Access3176{{"Access[3176∈397] ➊
ᐸ3172.endᐳ"}}:::plan - PgClassExpression3172 --> Access3176 - __Item3213[/"__Item[3213∈406]
ᐸ3212ᐳ"\]:::itemplan - PgClassExpression3212 ==> __Item3213 - PgClassExpression3248{{"PgClassExpression[3248∈408] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3247 --> PgClassExpression3248 - PgClassExpression3249{{"PgClassExpression[3249∈408] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3247 --> PgClassExpression3249 - PgClassExpression3250{{"PgClassExpression[3250∈408] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3247 --> PgClassExpression3250 - PgClassExpression3251{{"PgClassExpression[3251∈408] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3247 --> PgClassExpression3251 - PgClassExpression3252{{"PgClassExpression[3252∈408] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3247 --> PgClassExpression3252 - PgClassExpression3253{{"PgClassExpression[3253∈408] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3247 --> PgClassExpression3253 - PgClassExpression3254{{"PgClassExpression[3254∈408] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3247 --> PgClassExpression3254 - PgClassExpression3261{{"PgClassExpression[3261∈409] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3260 --> PgClassExpression3261 - PgClassExpression3262{{"PgClassExpression[3262∈409] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3260 --> PgClassExpression3262 - PgClassExpression3263{{"PgClassExpression[3263∈409] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3260 --> PgClassExpression3263 - PgClassExpression3264{{"PgClassExpression[3264∈409] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3260 --> PgClassExpression3264 - PgClassExpression3265{{"PgClassExpression[3265∈409] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3260 --> PgClassExpression3265 - PgClassExpression3266{{"PgClassExpression[3266∈409] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3260 --> PgClassExpression3266 - PgClassExpression3267{{"PgClassExpression[3267∈409] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3260 --> PgClassExpression3267 - PgClassExpression3275{{"PgClassExpression[3275∈410] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3274 --> PgClassExpression3275 - PgClassExpression3276{{"PgClassExpression[3276∈410] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3274 --> PgClassExpression3276 - PgClassExpression3277{{"PgClassExpression[3277∈410] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3274 --> PgClassExpression3277 - PgClassExpression3278{{"PgClassExpression[3278∈410] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3274 --> PgClassExpression3278 - PgClassExpression3279{{"PgClassExpression[3279∈410] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3274 --> PgClassExpression3279 - PgClassExpression3280{{"PgClassExpression[3280∈410] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3274 --> PgClassExpression3280 - PgClassExpression3281{{"PgClassExpression[3281∈410] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3274 --> PgClassExpression3281 - PgSelect3289[["PgSelect[3289∈411] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3288{{"PgClassExpression[3288∈411] ➊
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression3288 --> PgSelect3289 - PgSelect3304[["PgSelect[3304∈411] ➊
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3303{{"PgClassExpression[3303∈411] ➊
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression3303 --> PgSelect3304 - PgSelectSingle3287 --> PgClassExpression3288 - First3293{{"First[3293∈411] ➊"}}:::plan - PgSelectRows3294[["PgSelectRows[3294∈411] ➊"]]:::plan - PgSelectRows3294 --> First3293 - PgSelect3289 --> PgSelectRows3294 - PgSelectSingle3295{{"PgSelectSingle[3295∈411] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3293 --> PgSelectSingle3295 - PgSelectSingle3287 --> PgClassExpression3303 - First3306{{"First[3306∈411] ➊"}}:::plan - PgSelectRows3307[["PgSelectRows[3307∈411] ➊"]]:::plan - PgSelectRows3307 --> First3306 - PgSelect3304 --> PgSelectRows3307 - PgSelectSingle3308{{"PgSelectSingle[3308∈411] ➊
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3306 --> PgSelectSingle3308 - PgClassExpression3316{{"PgClassExpression[3316∈411] ➊
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle3287 --> PgClassExpression3316 - PgClassExpression3296{{"PgClassExpression[3296∈412] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3295 --> PgClassExpression3296 - PgClassExpression3297{{"PgClassExpression[3297∈412] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3295 --> PgClassExpression3297 - PgClassExpression3298{{"PgClassExpression[3298∈412] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3295 --> PgClassExpression3298 - PgClassExpression3299{{"PgClassExpression[3299∈412] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3295 --> PgClassExpression3299 - PgClassExpression3300{{"PgClassExpression[3300∈412] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3295 --> PgClassExpression3300 - PgClassExpression3301{{"PgClassExpression[3301∈412] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3295 --> PgClassExpression3301 - PgClassExpression3302{{"PgClassExpression[3302∈412] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3295 --> PgClassExpression3302 - PgClassExpression3309{{"PgClassExpression[3309∈413] ➊
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3308 --> PgClassExpression3309 - PgClassExpression3310{{"PgClassExpression[3310∈413] ➊
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3308 --> PgClassExpression3310 - PgClassExpression3311{{"PgClassExpression[3311∈413] ➊
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3308 --> PgClassExpression3311 - PgClassExpression3312{{"PgClassExpression[3312∈413] ➊
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3308 --> PgClassExpression3312 - PgClassExpression3313{{"PgClassExpression[3313∈413] ➊
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3308 --> PgClassExpression3313 - PgClassExpression3314{{"PgClassExpression[3314∈413] ➊
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3308 --> PgClassExpression3314 - PgClassExpression3315{{"PgClassExpression[3315∈413] ➊
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3308 --> PgClassExpression3315 - __Item3335[/"__Item[3335∈415]
ᐸ3334ᐳ"\]:::itemplan - PgClassExpression3334 ==> __Item3335 - __Item3337[/"__Item[3337∈416]
ᐸ3336ᐳ"\]:::itemplan - PgClassExpression3336 ==> __Item3337 - __Item3340[/"__Item[3340∈417]
ᐸ3339ᐳ"\]:::itemplan - PgClassExpression3339 ==> __Item3340 - PgClassExpression3346{{"PgClassExpression[3346∈418] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle3345 --> PgClassExpression3346 - PgClassExpression3347{{"PgClassExpression[3347∈418] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle3345 --> PgClassExpression3347 - PgClassExpression3353{{"PgClassExpression[3353∈419] ➊
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle3352 --> PgClassExpression3353 - PgClassExpression3354{{"PgClassExpression[3354∈419] ➊
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle3352 --> PgClassExpression3354 - __Item3357[/"__Item[3357∈420]
ᐸ3356ᐳ"\]:::itemplan - PgClassExpression3356 ==> __Item3357 - __Item3365[/"__Item[3365∈421]
ᐸ3364ᐳ"\]:::itemplan - PgSelectRows3364 ==> __Item3365 - PgSelectSingle3366{{"PgSelectSingle[3366∈421]
ᐸtypesᐳ"}}:::plan - __Item3365 --> PgSelectSingle3366 - PgSelect3433[["PgSelect[3433∈422]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3432{{"PgClassExpression[3432∈422]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3432 --> PgSelect3433 - PgSelect3448[["PgSelect[3448∈422]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression3447{{"PgClassExpression[3447∈422]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3447 --> PgSelect3448 - PgSelect3454[["PgSelect[3454∈422]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3453{{"PgClassExpression[3453∈422]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression3453 --> PgSelect3454 - PgSelect3467[["PgSelect[3467∈422]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3466{{"PgClassExpression[3466∈422]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression3466 --> PgSelect3467 - PgSelect3481[["PgSelect[3481∈422]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3480{{"PgClassExpression[3480∈422]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3480 --> PgSelect3481 - PgSelect3494[["PgSelect[3494∈422]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression3493{{"PgClassExpression[3493∈422]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3493 --> PgSelect3494 - PgSelect3552[["PgSelect[3552∈422]
ᐸpostᐳ"]]:::plan - PgClassExpression3368{{"PgClassExpression[3368∈422]
ᐸ__types__.”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression3368 --> PgSelect3552 - PgSelect3559[["PgSelect[3559∈422]
ᐸpostᐳ"]]:::plan - PgClassExpression3367{{"PgClassExpression[3367∈422]
ᐸ__types__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression3367 --> PgSelect3559 - PgSelectSingle3366 --> PgClassExpression3367 - PgSelectSingle3366 --> PgClassExpression3368 - PgClassExpression3369{{"PgClassExpression[3369∈422]
ᐸ__types__.”bigint”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3369 - PgClassExpression3370{{"PgClassExpression[3370∈422]
ᐸ__types__.”numeric”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3370 - PgClassExpression3371{{"PgClassExpression[3371∈422]
ᐸ__types__.”decimal”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3371 - PgClassExpression3372{{"PgClassExpression[3372∈422]
ᐸ__types__.”boolean”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3372 - PgClassExpression3373{{"PgClassExpression[3373∈422]
ᐸ__types__.”varchar”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3373 - PgClassExpression3374{{"PgClassExpression[3374∈422]
ᐸ__types__.”enum”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3374 - PgClassExpression3375{{"PgClassExpression[3375∈422]
ᐸ__types__.”enum_array”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3375 - PgClassExpression3377{{"PgClassExpression[3377∈422]
ᐸ__types__.”domain”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3377 - PgClassExpression3378{{"PgClassExpression[3378∈422]
ᐸ__types__.”domain2”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3378 - PgClassExpression3379{{"PgClassExpression[3379∈422]
ᐸ__types__.”text_array”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3379 - PgClassExpression3381{{"PgClassExpression[3381∈422]
ᐸ__types__.”json”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3381 - PgClassExpression3382{{"PgClassExpression[3382∈422]
ᐸ__types__.”jsonb”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3382 - PgClassExpression3383{{"PgClassExpression[3383∈422]
ᐸ__types__....ble_range”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3383 - PgClassExpression3390{{"PgClassExpression[3390∈422]
ᐸ__types__.”numrange”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3390 - Access3391{{"Access[3391∈422]
ᐸ3390.startᐳ"}}:::plan - PgClassExpression3390 --> Access3391 - Access3394{{"Access[3394∈422]
ᐸ3390.endᐳ"}}:::plan - PgClassExpression3390 --> Access3394 - PgClassExpression3397{{"PgClassExpression[3397∈422]
ᐸ__types__.”daterange”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3397 - Access3398{{"Access[3398∈422]
ᐸ3397.startᐳ"}}:::plan - PgClassExpression3397 --> Access3398 - Access3401{{"Access[3401∈422]
ᐸ3397.endᐳ"}}:::plan - PgClassExpression3397 --> Access3401 - PgClassExpression3404{{"PgClassExpression[3404∈422]
ᐸ__types__....int_range”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3404 - Access3405{{"Access[3405∈422]
ᐸ3404.startᐳ"}}:::plan - PgClassExpression3404 --> Access3405 - Access3408{{"Access[3408∈422]
ᐸ3404.endᐳ"}}:::plan - PgClassExpression3404 --> Access3408 - PgClassExpression3411{{"PgClassExpression[3411∈422]
ᐸ__types__.”timestamp”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3411 - PgClassExpression3412{{"PgClassExpression[3412∈422]
ᐸ__types__.”timestamptz”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3412 - PgClassExpression3413{{"PgClassExpression[3413∈422]
ᐸ__types__.”date”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3413 - PgClassExpression3414{{"PgClassExpression[3414∈422]
ᐸ__types__.”time”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3414 - PgClassExpression3415{{"PgClassExpression[3415∈422]
ᐸ__types__.”timetz”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3415 - PgClassExpression3416{{"PgClassExpression[3416∈422]
ᐸ__types__.”interval”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3416 - PgClassExpression3423{{"PgClassExpression[3423∈422]
ᐸ__types__....val_array”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3423 - PgClassExpression3431{{"PgClassExpression[3431∈422]
ᐸ__types__.”money”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3431 - PgSelectSingle3366 --> PgClassExpression3432 - First3437{{"First[3437∈422]"}}:::plan - PgSelectRows3438[["PgSelectRows[3438∈422]"]]:::plan - PgSelectRows3438 --> First3437 - PgSelect3433 --> PgSelectRows3438 - PgSelectSingle3439{{"PgSelectSingle[3439∈422]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3437 --> PgSelectSingle3439 - PgClassExpression3440{{"PgClassExpression[3440∈422]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3439 --> PgClassExpression3440 - PgClassExpression3441{{"PgClassExpression[3441∈422]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3439 --> PgClassExpression3441 - PgClassExpression3442{{"PgClassExpression[3442∈422]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3439 --> PgClassExpression3442 - PgClassExpression3443{{"PgClassExpression[3443∈422]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3439 --> PgClassExpression3443 - PgClassExpression3444{{"PgClassExpression[3444∈422]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3439 --> PgClassExpression3444 - PgClassExpression3445{{"PgClassExpression[3445∈422]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3439 --> PgClassExpression3445 - PgClassExpression3446{{"PgClassExpression[3446∈422]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3439 --> PgClassExpression3446 - PgSelectSingle3366 --> PgClassExpression3447 - First3450{{"First[3450∈422]"}}:::plan - PgSelectRows3451[["PgSelectRows[3451∈422]"]]:::plan - PgSelectRows3451 --> First3450 - PgSelect3448 --> PgSelectRows3451 - PgSelectSingle3452{{"PgSelectSingle[3452∈422]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First3450 --> PgSelectSingle3452 - PgSelectSingle3452 --> PgClassExpression3453 - First3456{{"First[3456∈422]"}}:::plan - PgSelectRows3457[["PgSelectRows[3457∈422]"]]:::plan - PgSelectRows3457 --> First3456 - PgSelect3454 --> PgSelectRows3457 - PgSelectSingle3458{{"PgSelectSingle[3458∈422]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3456 --> PgSelectSingle3458 - PgSelectSingle3452 --> PgClassExpression3466 - First3469{{"First[3469∈422]"}}:::plan - PgSelectRows3470[["PgSelectRows[3470∈422]"]]:::plan - PgSelectRows3470 --> First3469 - PgSelect3467 --> PgSelectRows3470 - PgSelectSingle3471{{"PgSelectSingle[3471∈422]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3469 --> PgSelectSingle3471 - PgClassExpression3479{{"PgClassExpression[3479∈422]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle3452 --> PgClassExpression3479 - PgSelectSingle3366 --> PgClassExpression3480 - First3483{{"First[3483∈422]"}}:::plan - PgSelectRows3484[["PgSelectRows[3484∈422]"]]:::plan - PgSelectRows3484 --> First3483 - PgSelect3481 --> PgSelectRows3484 - PgSelectSingle3485{{"PgSelectSingle[3485∈422]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3483 --> PgSelectSingle3485 - PgSelectSingle3366 --> PgClassExpression3493 - First3496{{"First[3496∈422]"}}:::plan - PgSelectRows3497[["PgSelectRows[3497∈422]"]]:::plan - PgSelectRows3497 --> First3496 - PgSelect3494 --> PgSelectRows3497 - PgSelectSingle3498{{"PgSelectSingle[3498∈422]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First3496 --> PgSelectSingle3498 - PgClassExpression3528{{"PgClassExpression[3528∈422]
ᐸ__types__.”point”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3528 - PgClassExpression3531{{"PgClassExpression[3531∈422]
ᐸ__types__....ablePoint”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3531 - PgClassExpression3534{{"PgClassExpression[3534∈422]
ᐸ__types__.”inet”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3534 - PgClassExpression3535{{"PgClassExpression[3535∈422]
ᐸ__types__.”cidr”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3535 - PgClassExpression3536{{"PgClassExpression[3536∈422]
ᐸ__types__.”macaddr”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3536 - PgClassExpression3537{{"PgClassExpression[3537∈422]
ᐸ__types__.”regproc”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3537 - PgClassExpression3538{{"PgClassExpression[3538∈422]
ᐸ__types__....procedure”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3538 - PgClassExpression3539{{"PgClassExpression[3539∈422]
ᐸ__types__.”regoper”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3539 - PgClassExpression3540{{"PgClassExpression[3540∈422]
ᐸ__types__.”regoperator”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3540 - PgClassExpression3541{{"PgClassExpression[3541∈422]
ᐸ__types__.”regclass”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3541 - PgClassExpression3542{{"PgClassExpression[3542∈422]
ᐸ__types__.”regtype”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3542 - PgClassExpression3543{{"PgClassExpression[3543∈422]
ᐸ__types__.”regconfig”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3543 - PgClassExpression3544{{"PgClassExpression[3544∈422]
ᐸ__types__....ictionary”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3544 - PgClassExpression3545{{"PgClassExpression[3545∈422]
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3545 - PgClassExpression3547{{"PgClassExpression[3547∈422]
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3547 - PgClassExpression3549{{"PgClassExpression[3549∈422]
ᐸ__types__.”bytea”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3549 - PgClassExpression3550{{"PgClassExpression[3550∈422]
ᐸ__types__.”bytea_array”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3550 - First3554{{"First[3554∈422]"}}:::plan - PgSelectRows3555[["PgSelectRows[3555∈422]"]]:::plan - PgSelectRows3555 --> First3554 - PgSelect3552 --> PgSelectRows3555 - PgSelectSingle3556{{"PgSelectSingle[3556∈422]
ᐸpostᐳ"}}:::plan - First3554 --> PgSelectSingle3556 - First3561{{"First[3561∈422]"}}:::plan - PgSelectRows3562[["PgSelectRows[3562∈422]"]]:::plan - PgSelectRows3562 --> First3561 - PgSelect3559 --> PgSelectRows3562 - PgSelectSingle3563{{"PgSelectSingle[3563∈422]
ᐸpostᐳ"}}:::plan - First3561 --> PgSelectSingle3563 - PgClassExpression3566{{"PgClassExpression[3566∈422]
ᐸ__types__.”ltree”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3566 - PgClassExpression3567{{"PgClassExpression[3567∈422]
ᐸ__types__.”ltree_array”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3567 - __Item3376[/"__Item[3376∈423]
ᐸ3375ᐳ"\]:::itemplan - PgClassExpression3375 ==> __Item3376 - __Item3380[/"__Item[3380∈424]
ᐸ3379ᐳ"\]:::itemplan - PgClassExpression3379 ==> __Item3380 - Access3384{{"Access[3384∈425]
ᐸ3383.startᐳ"}}:::plan - PgClassExpression3383 --> Access3384 - Access3387{{"Access[3387∈425]
ᐸ3383.endᐳ"}}:::plan - PgClassExpression3383 --> Access3387 - __Item3424[/"__Item[3424∈434]
ᐸ3423ᐳ"\]:::itemplan - PgClassExpression3423 ==> __Item3424 - PgClassExpression3459{{"PgClassExpression[3459∈436]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3458 --> PgClassExpression3459 - PgClassExpression3460{{"PgClassExpression[3460∈436]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3458 --> PgClassExpression3460 - PgClassExpression3461{{"PgClassExpression[3461∈436]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3458 --> PgClassExpression3461 - PgClassExpression3462{{"PgClassExpression[3462∈436]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3458 --> PgClassExpression3462 - PgClassExpression3463{{"PgClassExpression[3463∈436]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3458 --> PgClassExpression3463 - PgClassExpression3464{{"PgClassExpression[3464∈436]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3458 --> PgClassExpression3464 - PgClassExpression3465{{"PgClassExpression[3465∈436]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3458 --> PgClassExpression3465 - PgClassExpression3472{{"PgClassExpression[3472∈437]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3471 --> PgClassExpression3472 - PgClassExpression3473{{"PgClassExpression[3473∈437]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3471 --> PgClassExpression3473 - PgClassExpression3474{{"PgClassExpression[3474∈437]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3471 --> PgClassExpression3474 - PgClassExpression3475{{"PgClassExpression[3475∈437]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3471 --> PgClassExpression3475 - PgClassExpression3476{{"PgClassExpression[3476∈437]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3471 --> PgClassExpression3476 - PgClassExpression3477{{"PgClassExpression[3477∈437]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3471 --> PgClassExpression3477 - PgClassExpression3478{{"PgClassExpression[3478∈437]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3471 --> PgClassExpression3478 - PgClassExpression3486{{"PgClassExpression[3486∈438]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3485 --> PgClassExpression3486 - PgClassExpression3487{{"PgClassExpression[3487∈438]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3485 --> PgClassExpression3487 - PgClassExpression3488{{"PgClassExpression[3488∈438]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3485 --> PgClassExpression3488 - PgClassExpression3489{{"PgClassExpression[3489∈438]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3485 --> PgClassExpression3489 - PgClassExpression3490{{"PgClassExpression[3490∈438]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3485 --> PgClassExpression3490 - PgClassExpression3491{{"PgClassExpression[3491∈438]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3485 --> PgClassExpression3491 - PgClassExpression3492{{"PgClassExpression[3492∈438]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3485 --> PgClassExpression3492 - PgSelect3500[["PgSelect[3500∈439]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3499{{"PgClassExpression[3499∈439]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression3499 --> PgSelect3500 - PgSelect3515[["PgSelect[3515∈439]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3514{{"PgClassExpression[3514∈439]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression3514 --> PgSelect3515 - PgSelectSingle3498 --> PgClassExpression3499 - First3504{{"First[3504∈439]"}}:::plan - PgSelectRows3505[["PgSelectRows[3505∈439]"]]:::plan - PgSelectRows3505 --> First3504 - PgSelect3500 --> PgSelectRows3505 - PgSelectSingle3506{{"PgSelectSingle[3506∈439]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3504 --> PgSelectSingle3506 - PgSelectSingle3498 --> PgClassExpression3514 - First3517{{"First[3517∈439]"}}:::plan - PgSelectRows3518[["PgSelectRows[3518∈439]"]]:::plan - PgSelectRows3518 --> First3517 - PgSelect3515 --> PgSelectRows3518 - PgSelectSingle3519{{"PgSelectSingle[3519∈439]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3517 --> PgSelectSingle3519 - PgClassExpression3527{{"PgClassExpression[3527∈439]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle3498 --> PgClassExpression3527 - PgClassExpression3507{{"PgClassExpression[3507∈440]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3506 --> PgClassExpression3507 - PgClassExpression3508{{"PgClassExpression[3508∈440]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3506 --> PgClassExpression3508 - PgClassExpression3509{{"PgClassExpression[3509∈440]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3506 --> PgClassExpression3509 - PgClassExpression3510{{"PgClassExpression[3510∈440]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3506 --> PgClassExpression3510 - PgClassExpression3511{{"PgClassExpression[3511∈440]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3506 --> PgClassExpression3511 - PgClassExpression3512{{"PgClassExpression[3512∈440]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3506 --> PgClassExpression3512 - PgClassExpression3513{{"PgClassExpression[3513∈440]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3506 --> PgClassExpression3513 - PgClassExpression3520{{"PgClassExpression[3520∈441]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3519 --> PgClassExpression3520 - PgClassExpression3521{{"PgClassExpression[3521∈441]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3519 --> PgClassExpression3521 - PgClassExpression3522{{"PgClassExpression[3522∈441]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3519 --> PgClassExpression3522 - PgClassExpression3523{{"PgClassExpression[3523∈441]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3519 --> PgClassExpression3523 - PgClassExpression3524{{"PgClassExpression[3524∈441]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3519 --> PgClassExpression3524 - PgClassExpression3525{{"PgClassExpression[3525∈441]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3519 --> PgClassExpression3525 - PgClassExpression3526{{"PgClassExpression[3526∈441]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3519 --> PgClassExpression3526 - __Item3546[/"__Item[3546∈443]
ᐸ3545ᐳ"\]:::itemplan - PgClassExpression3545 ==> __Item3546 - __Item3548[/"__Item[3548∈444]
ᐸ3547ᐳ"\]:::itemplan - PgClassExpression3547 ==> __Item3548 - __Item3551[/"__Item[3551∈445]
ᐸ3550ᐳ"\]:::itemplan - PgClassExpression3550 ==> __Item3551 - PgClassExpression3557{{"PgClassExpression[3557∈446]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle3556 --> PgClassExpression3557 - PgClassExpression3558{{"PgClassExpression[3558∈446]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle3556 --> PgClassExpression3558 - PgClassExpression3564{{"PgClassExpression[3564∈447]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle3563 --> PgClassExpression3564 - PgClassExpression3565{{"PgClassExpression[3565∈447]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle3563 --> PgClassExpression3565 - __Item3568[/"__Item[3568∈448]
ᐸ3567ᐳ"\]:::itemplan - PgClassExpression3567 ==> __Item3568 - PgSelect3637[["PgSelect[3637∈449]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3636{{"PgClassExpression[3636∈449]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3636 --> PgSelect3637 - PgSelect3652[["PgSelect[3652∈449]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression3651{{"PgClassExpression[3651∈449]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3651 --> PgSelect3652 - PgSelect3658[["PgSelect[3658∈449]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3657{{"PgClassExpression[3657∈449]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression3657 --> PgSelect3658 - PgSelect3671[["PgSelect[3671∈449]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3670{{"PgClassExpression[3670∈449]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression3670 --> PgSelect3671 - PgSelect3685[["PgSelect[3685∈449]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3684{{"PgClassExpression[3684∈449]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3684 --> PgSelect3685 - PgSelect3698[["PgSelect[3698∈449]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan - PgClassExpression3697{{"PgClassExpression[3697∈449]
ᐸ__types__....ound_type”ᐳ"}}:::plan - Object12 & PgClassExpression3697 --> PgSelect3698 - PgSelect3756[["PgSelect[3756∈449]
ᐸpostᐳ"]]:::plan - PgClassExpression3572{{"PgClassExpression[3572∈449]
ᐸ__types__.”smallint”ᐳ"}}:::plan - Object12 & PgClassExpression3572 --> PgSelect3756 - PgSelect3763[["PgSelect[3763∈449]
ᐸpostᐳ"]]:::plan - PgClassExpression3571{{"PgClassExpression[3571∈449]
ᐸ__types__.”id”ᐳ"}}:::plan - Object12 & PgClassExpression3571 --> PgSelect3763 - PgSelectSingle3366 --> PgClassExpression3571 - PgSelectSingle3366 --> PgClassExpression3572 - PgClassExpression3573{{"PgClassExpression[3573∈449]
ᐸ__types__.”bigint”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3573 - PgClassExpression3574{{"PgClassExpression[3574∈449]
ᐸ__types__.”numeric”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3574 - PgClassExpression3575{{"PgClassExpression[3575∈449]
ᐸ__types__.”decimal”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3575 - PgClassExpression3576{{"PgClassExpression[3576∈449]
ᐸ__types__.”boolean”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3576 - PgClassExpression3577{{"PgClassExpression[3577∈449]
ᐸ__types__.”varchar”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3577 - PgClassExpression3578{{"PgClassExpression[3578∈449]
ᐸ__types__.”enum”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3578 - PgClassExpression3579{{"PgClassExpression[3579∈449]
ᐸ__types__.”enum_array”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3579 - PgClassExpression3581{{"PgClassExpression[3581∈449]
ᐸ__types__.”domain”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3581 - PgClassExpression3582{{"PgClassExpression[3582∈449]
ᐸ__types__.”domain2”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3582 - PgClassExpression3583{{"PgClassExpression[3583∈449]
ᐸ__types__.”text_array”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3583 - PgClassExpression3585{{"PgClassExpression[3585∈449]
ᐸ__types__.”json”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3585 - PgClassExpression3586{{"PgClassExpression[3586∈449]
ᐸ__types__.”jsonb”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3586 - PgClassExpression3587{{"PgClassExpression[3587∈449]
ᐸ__types__....ble_range”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3587 - PgClassExpression3594{{"PgClassExpression[3594∈449]
ᐸ__types__.”numrange”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3594 - Access3595{{"Access[3595∈449]
ᐸ3594.startᐳ"}}:::plan - PgClassExpression3594 --> Access3595 - Access3598{{"Access[3598∈449]
ᐸ3594.endᐳ"}}:::plan - PgClassExpression3594 --> Access3598 - PgClassExpression3601{{"PgClassExpression[3601∈449]
ᐸ__types__.”daterange”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3601 - Access3602{{"Access[3602∈449]
ᐸ3601.startᐳ"}}:::plan - PgClassExpression3601 --> Access3602 - Access3605{{"Access[3605∈449]
ᐸ3601.endᐳ"}}:::plan - PgClassExpression3601 --> Access3605 - PgClassExpression3608{{"PgClassExpression[3608∈449]
ᐸ__types__....int_range”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3608 - Access3609{{"Access[3609∈449]
ᐸ3608.startᐳ"}}:::plan - PgClassExpression3608 --> Access3609 - Access3612{{"Access[3612∈449]
ᐸ3608.endᐳ"}}:::plan - PgClassExpression3608 --> Access3612 - PgClassExpression3615{{"PgClassExpression[3615∈449]
ᐸ__types__.”timestamp”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3615 - PgClassExpression3616{{"PgClassExpression[3616∈449]
ᐸ__types__.”timestamptz”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3616 - PgClassExpression3617{{"PgClassExpression[3617∈449]
ᐸ__types__.”date”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3617 - PgClassExpression3618{{"PgClassExpression[3618∈449]
ᐸ__types__.”time”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3618 - PgClassExpression3619{{"PgClassExpression[3619∈449]
ᐸ__types__.”timetz”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3619 - PgClassExpression3620{{"PgClassExpression[3620∈449]
ᐸ__types__.”interval”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3620 - PgClassExpression3627{{"PgClassExpression[3627∈449]
ᐸ__types__....val_array”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3627 - PgClassExpression3635{{"PgClassExpression[3635∈449]
ᐸ__types__.”money”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3635 - PgSelectSingle3366 --> PgClassExpression3636 - First3641{{"First[3641∈449]"}}:::plan - PgSelectRows3642[["PgSelectRows[3642∈449]"]]:::plan - PgSelectRows3642 --> First3641 - PgSelect3637 --> PgSelectRows3642 - PgSelectSingle3643{{"PgSelectSingle[3643∈449]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3641 --> PgSelectSingle3643 - PgClassExpression3644{{"PgClassExpression[3644∈449]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3643 --> PgClassExpression3644 - PgClassExpression3645{{"PgClassExpression[3645∈449]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3643 --> PgClassExpression3645 - PgClassExpression3646{{"PgClassExpression[3646∈449]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3643 --> PgClassExpression3646 - PgClassExpression3647{{"PgClassExpression[3647∈449]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3643 --> PgClassExpression3647 - PgClassExpression3648{{"PgClassExpression[3648∈449]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3643 --> PgClassExpression3648 - PgClassExpression3649{{"PgClassExpression[3649∈449]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3643 --> PgClassExpression3649 - PgClassExpression3650{{"PgClassExpression[3650∈449]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3643 --> PgClassExpression3650 - PgSelectSingle3366 --> PgClassExpression3651 - First3654{{"First[3654∈449]"}}:::plan - PgSelectRows3655[["PgSelectRows[3655∈449]"]]:::plan - PgSelectRows3655 --> First3654 - PgSelect3652 --> PgSelectRows3655 - PgSelectSingle3656{{"PgSelectSingle[3656∈449]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First3654 --> PgSelectSingle3656 - PgSelectSingle3656 --> PgClassExpression3657 - First3660{{"First[3660∈449]"}}:::plan - PgSelectRows3661[["PgSelectRows[3661∈449]"]]:::plan - PgSelectRows3661 --> First3660 - PgSelect3658 --> PgSelectRows3661 - PgSelectSingle3662{{"PgSelectSingle[3662∈449]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3660 --> PgSelectSingle3662 - PgSelectSingle3656 --> PgClassExpression3670 - First3673{{"First[3673∈449]"}}:::plan - PgSelectRows3674[["PgSelectRows[3674∈449]"]]:::plan - PgSelectRows3674 --> First3673 - PgSelect3671 --> PgSelectRows3674 - PgSelectSingle3675{{"PgSelectSingle[3675∈449]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3673 --> PgSelectSingle3675 - PgClassExpression3683{{"PgClassExpression[3683∈449]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle3656 --> PgClassExpression3683 - PgSelectSingle3366 --> PgClassExpression3684 - First3687{{"First[3687∈449]"}}:::plan - PgSelectRows3688[["PgSelectRows[3688∈449]"]]:::plan - PgSelectRows3688 --> First3687 - PgSelect3685 --> PgSelectRows3688 - PgSelectSingle3689{{"PgSelectSingle[3689∈449]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3687 --> PgSelectSingle3689 - PgSelectSingle3366 --> PgClassExpression3697 - First3700{{"First[3700∈449]"}}:::plan - PgSelectRows3701[["PgSelectRows[3701∈449]"]]:::plan - PgSelectRows3701 --> First3700 - PgSelect3698 --> PgSelectRows3701 - PgSelectSingle3702{{"PgSelectSingle[3702∈449]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan - First3700 --> PgSelectSingle3702 - PgClassExpression3732{{"PgClassExpression[3732∈449]
ᐸ__types__.”point”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3732 - PgClassExpression3735{{"PgClassExpression[3735∈449]
ᐸ__types__....ablePoint”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3735 - PgClassExpression3738{{"PgClassExpression[3738∈449]
ᐸ__types__.”inet”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3738 - PgClassExpression3739{{"PgClassExpression[3739∈449]
ᐸ__types__.”cidr”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3739 - PgClassExpression3740{{"PgClassExpression[3740∈449]
ᐸ__types__.”macaddr”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3740 - PgClassExpression3741{{"PgClassExpression[3741∈449]
ᐸ__types__.”regproc”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3741 - PgClassExpression3742{{"PgClassExpression[3742∈449]
ᐸ__types__....procedure”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3742 - PgClassExpression3743{{"PgClassExpression[3743∈449]
ᐸ__types__.”regoper”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3743 - PgClassExpression3744{{"PgClassExpression[3744∈449]
ᐸ__types__.”regoperator”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3744 - PgClassExpression3745{{"PgClassExpression[3745∈449]
ᐸ__types__.”regclass”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3745 - PgClassExpression3746{{"PgClassExpression[3746∈449]
ᐸ__types__.”regtype”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3746 - PgClassExpression3747{{"PgClassExpression[3747∈449]
ᐸ__types__.”regconfig”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3747 - PgClassExpression3748{{"PgClassExpression[3748∈449]
ᐸ__types__....ictionary”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3748 - PgClassExpression3749{{"PgClassExpression[3749∈449]
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3749 - PgClassExpression3751{{"PgClassExpression[3751∈449]
ᐸ__types__....ay_domain”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3751 - PgClassExpression3753{{"PgClassExpression[3753∈449]
ᐸ__types__.”bytea”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3753 - PgClassExpression3754{{"PgClassExpression[3754∈449]
ᐸ__types__.”bytea_array”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3754 - First3758{{"First[3758∈449]"}}:::plan - PgSelectRows3759[["PgSelectRows[3759∈449]"]]:::plan - PgSelectRows3759 --> First3758 - PgSelect3756 --> PgSelectRows3759 - PgSelectSingle3760{{"PgSelectSingle[3760∈449]
ᐸpostᐳ"}}:::plan - First3758 --> PgSelectSingle3760 - First3765{{"First[3765∈449]"}}:::plan - PgSelectRows3766[["PgSelectRows[3766∈449]"]]:::plan - PgSelectRows3766 --> First3765 - PgSelect3763 --> PgSelectRows3766 - PgSelectSingle3767{{"PgSelectSingle[3767∈449]
ᐸpostᐳ"}}:::plan - First3765 --> PgSelectSingle3767 - PgClassExpression3770{{"PgClassExpression[3770∈449]
ᐸ__types__.”ltree”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3770 - PgClassExpression3771{{"PgClassExpression[3771∈449]
ᐸ__types__.”ltree_array”ᐳ"}}:::plan - PgSelectSingle3366 --> PgClassExpression3771 - __Item3580[/"__Item[3580∈450]
ᐸ3579ᐳ"\]:::itemplan - PgClassExpression3579 ==> __Item3580 - __Item3584[/"__Item[3584∈451]
ᐸ3583ᐳ"\]:::itemplan - PgClassExpression3583 ==> __Item3584 - Access3588{{"Access[3588∈452]
ᐸ3587.startᐳ"}}:::plan - PgClassExpression3587 --> Access3588 - Access3591{{"Access[3591∈452]
ᐸ3587.endᐳ"}}:::plan - PgClassExpression3587 --> Access3591 - __Item3628[/"__Item[3628∈461]
ᐸ3627ᐳ"\]:::itemplan - PgClassExpression3627 ==> __Item3628 - PgClassExpression3663{{"PgClassExpression[3663∈463]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3662 --> PgClassExpression3663 - PgClassExpression3664{{"PgClassExpression[3664∈463]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3662 --> PgClassExpression3664 - PgClassExpression3665{{"PgClassExpression[3665∈463]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3662 --> PgClassExpression3665 - PgClassExpression3666{{"PgClassExpression[3666∈463]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3662 --> PgClassExpression3666 - PgClassExpression3667{{"PgClassExpression[3667∈463]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3662 --> PgClassExpression3667 - PgClassExpression3668{{"PgClassExpression[3668∈463]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3662 --> PgClassExpression3668 - PgClassExpression3669{{"PgClassExpression[3669∈463]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3662 --> PgClassExpression3669 - PgClassExpression3676{{"PgClassExpression[3676∈464]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3675 --> PgClassExpression3676 - PgClassExpression3677{{"PgClassExpression[3677∈464]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3675 --> PgClassExpression3677 - PgClassExpression3678{{"PgClassExpression[3678∈464]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3675 --> PgClassExpression3678 - PgClassExpression3679{{"PgClassExpression[3679∈464]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3675 --> PgClassExpression3679 - PgClassExpression3680{{"PgClassExpression[3680∈464]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3675 --> PgClassExpression3680 - PgClassExpression3681{{"PgClassExpression[3681∈464]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3675 --> PgClassExpression3681 - PgClassExpression3682{{"PgClassExpression[3682∈464]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3675 --> PgClassExpression3682 - PgClassExpression3690{{"PgClassExpression[3690∈465]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3689 --> PgClassExpression3690 - PgClassExpression3691{{"PgClassExpression[3691∈465]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3689 --> PgClassExpression3691 - PgClassExpression3692{{"PgClassExpression[3692∈465]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3689 --> PgClassExpression3692 - PgClassExpression3693{{"PgClassExpression[3693∈465]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3689 --> PgClassExpression3693 - PgClassExpression3694{{"PgClassExpression[3694∈465]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3689 --> PgClassExpression3694 - PgClassExpression3695{{"PgClassExpression[3695∈465]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3689 --> PgClassExpression3695 - PgClassExpression3696{{"PgClassExpression[3696∈465]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3689 --> PgClassExpression3696 - PgSelect3704[["PgSelect[3704∈466]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3703{{"PgClassExpression[3703∈466]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan - Object12 & PgClassExpression3703 --> PgSelect3704 - PgSelect3719[["PgSelect[3719∈466]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan - PgClassExpression3718{{"PgClassExpression[3718∈466]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan - Object12 & PgClassExpression3718 --> PgSelect3719 - PgSelectSingle3702 --> PgClassExpression3703 - First3708{{"First[3708∈466]"}}:::plan - PgSelectRows3709[["PgSelectRows[3709∈466]"]]:::plan - PgSelectRows3709 --> First3708 - PgSelect3704 --> PgSelectRows3709 - PgSelectSingle3710{{"PgSelectSingle[3710∈466]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3708 --> PgSelectSingle3710 - PgSelectSingle3702 --> PgClassExpression3718 - First3721{{"First[3721∈466]"}}:::plan - PgSelectRows3722[["PgSelectRows[3722∈466]"]]:::plan - PgSelectRows3722 --> First3721 - PgSelect3719 --> PgSelectRows3722 - PgSelectSingle3723{{"PgSelectSingle[3723∈466]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan - First3721 --> PgSelectSingle3723 - PgClassExpression3731{{"PgClassExpression[3731∈466]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan - PgSelectSingle3702 --> PgClassExpression3731 - PgClassExpression3711{{"PgClassExpression[3711∈467]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3710 --> PgClassExpression3711 - PgClassExpression3712{{"PgClassExpression[3712∈467]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3710 --> PgClassExpression3712 - PgClassExpression3713{{"PgClassExpression[3713∈467]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3710 --> PgClassExpression3713 - PgClassExpression3714{{"PgClassExpression[3714∈467]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3710 --> PgClassExpression3714 - PgClassExpression3715{{"PgClassExpression[3715∈467]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3710 --> PgClassExpression3715 - PgClassExpression3716{{"PgClassExpression[3716∈467]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3710 --> PgClassExpression3716 - PgClassExpression3717{{"PgClassExpression[3717∈467]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3710 --> PgClassExpression3717 - PgClassExpression3724{{"PgClassExpression[3724∈468]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan - PgSelectSingle3723 --> PgClassExpression3724 - PgClassExpression3725{{"PgClassExpression[3725∈468]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan - PgSelectSingle3723 --> PgClassExpression3725 - PgClassExpression3726{{"PgClassExpression[3726∈468]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan - PgSelectSingle3723 --> PgClassExpression3726 - PgClassExpression3727{{"PgClassExpression[3727∈468]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan - PgSelectSingle3723 --> PgClassExpression3727 - PgClassExpression3728{{"PgClassExpression[3728∈468]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan - PgSelectSingle3723 --> PgClassExpression3728 - PgClassExpression3729{{"PgClassExpression[3729∈468]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan - PgSelectSingle3723 --> PgClassExpression3729 - PgClassExpression3730{{"PgClassExpression[3730∈468]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan - PgSelectSingle3723 --> PgClassExpression3730 - __Item3750[/"__Item[3750∈470]
ᐸ3749ᐳ"\]:::itemplan - PgClassExpression3749 ==> __Item3750 - __Item3752[/"__Item[3752∈471]
ᐸ3751ᐳ"\]:::itemplan - PgClassExpression3751 ==> __Item3752 - __Item3755[/"__Item[3755∈472]
ᐸ3754ᐳ"\]:::itemplan - PgClassExpression3754 ==> __Item3755 - PgClassExpression3761{{"PgClassExpression[3761∈473]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle3760 --> PgClassExpression3761 - PgClassExpression3762{{"PgClassExpression[3762∈473]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle3760 --> PgClassExpression3762 - PgClassExpression3768{{"PgClassExpression[3768∈474]
ᐸ__post__.”id”ᐳ"}}:::plan - PgSelectSingle3767 --> PgClassExpression3768 - PgClassExpression3769{{"PgClassExpression[3769∈474]
ᐸ__post__.”headline”ᐳ"}}:::plan - PgSelectSingle3767 --> PgClassExpression3769 - __Item3772[/"__Item[3772∈475]
ᐸ3771ᐳ"\]:::itemplan - PgClassExpression3771 ==> __Item3772 + PgSelectSingle2875 --> PgClassExpression3010 + First3014{{"First[3014∈95]"}}:::plan + PgSelectRows3015[["PgSelectRows[3015∈95]"]]:::plan + PgSelectRows3015 --> First3014 + PgSelect3011 --> PgSelectRows3015 + PgSelectSingle3016{{"PgSelectSingle[3016∈95]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First3014 --> PgSelectSingle3016 + PgSelectSingle3016 --> PgClassExpression3017 + First3021{{"First[3021∈95]"}}:::plan + PgSelectRows3022[["PgSelectRows[3022∈95]"]]:::plan + PgSelectRows3022 --> First3021 + PgSelect3018 --> PgSelectRows3022 + PgSelectSingle3023{{"PgSelectSingle[3023∈95]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3021 --> PgSelectSingle3023 + PgClassExpression3024{{"PgClassExpression[3024∈95]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3023 --> PgClassExpression3024 + PgClassExpression3025{{"PgClassExpression[3025∈95]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3023 --> PgClassExpression3025 + PgClassExpression3026{{"PgClassExpression[3026∈95]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3023 --> PgClassExpression3026 + PgClassExpression3027{{"PgClassExpression[3027∈95]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3023 --> PgClassExpression3027 + PgClassExpression3028{{"PgClassExpression[3028∈95]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3023 --> PgClassExpression3028 + PgClassExpression3029{{"PgClassExpression[3029∈95]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3023 --> PgClassExpression3029 + PgClassExpression3030{{"PgClassExpression[3030∈95]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3023 --> PgClassExpression3030 + PgSelectSingle3016 --> PgClassExpression3031 + First3035{{"First[3035∈95]"}}:::plan + PgSelectRows3036[["PgSelectRows[3036∈95]"]]:::plan + PgSelectRows3036 --> First3035 + PgSelect3032 --> PgSelectRows3036 + PgSelectSingle3037{{"PgSelectSingle[3037∈95]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3035 --> PgSelectSingle3037 + PgClassExpression3038{{"PgClassExpression[3038∈95]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3037 --> PgClassExpression3038 + PgClassExpression3039{{"PgClassExpression[3039∈95]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3037 --> PgClassExpression3039 + PgClassExpression3040{{"PgClassExpression[3040∈95]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3037 --> PgClassExpression3040 + PgClassExpression3041{{"PgClassExpression[3041∈95]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3037 --> PgClassExpression3041 + PgClassExpression3042{{"PgClassExpression[3042∈95]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3037 --> PgClassExpression3042 + PgClassExpression3043{{"PgClassExpression[3043∈95]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3037 --> PgClassExpression3043 + PgClassExpression3044{{"PgClassExpression[3044∈95]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3037 --> PgClassExpression3044 + PgClassExpression3045{{"PgClassExpression[3045∈95]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle3016 --> PgClassExpression3045 + PgClassExpression3046{{"PgClassExpression[3046∈95]
ᐸ__person_t...__.”point”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3046 + PgClassExpression3049{{"PgClassExpression[3049∈95]
ᐸ__person_t...ablePoint”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3049 + PgClassExpression3052{{"PgClassExpression[3052∈95]
ᐸ__person_t...n__.”inet”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3052 + PgClassExpression3053{{"PgClassExpression[3053∈95]
ᐸ__person_t...n__.”cidr”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3053 + PgClassExpression3054{{"PgClassExpression[3054∈95]
ᐸ__person_t....”macaddr”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3054 + PgClassExpression3055{{"PgClassExpression[3055∈95]
ᐸ__person_t....”regproc”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3055 + PgClassExpression3056{{"PgClassExpression[3056∈95]
ᐸ__person_t...procedure”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3056 + PgClassExpression3057{{"PgClassExpression[3057∈95]
ᐸ__person_t....”regoper”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3057 + PgClassExpression3058{{"PgClassExpression[3058∈95]
ᐸ__person_t...goperator”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3058 + PgClassExpression3059{{"PgClassExpression[3059∈95]
ᐸ__person_t...”regclass”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3059 + PgClassExpression3060{{"PgClassExpression[3060∈95]
ᐸ__person_t....”regtype”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3060 + PgClassExpression3061{{"PgClassExpression[3061∈95]
ᐸ__person_t...regconfig”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3061 + PgClassExpression3062{{"PgClassExpression[3062∈95]
ᐸ__person_t...ictionary”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3062 + PgClassExpression3063{{"PgClassExpression[3063∈95]
ᐸ__person_t...ay_domain”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3063 + PgClassExpression3065{{"PgClassExpression[3065∈95]
ᐸ__person_t...ay_domain”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3065 + PgClassExpression3067{{"PgClassExpression[3067∈95]
ᐸ__person_t...__.”bytea”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3067 + PgClassExpression3068{{"PgClassExpression[3068∈95]
ᐸ__person_t...tea_array”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3068 + First3072{{"First[3072∈95]"}}:::plan + PgSelectRows3073[["PgSelectRows[3073∈95]"]]:::plan + PgSelectRows3073 --> First3072 + PgSelect3070 --> PgSelectRows3073 + PgSelectSingle3074{{"PgSelectSingle[3074∈95]
ᐸpostᐳ"}}:::plan + First3072 --> PgSelectSingle3074 + PgClassExpression3075{{"PgClassExpression[3075∈95]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle3074 --> PgClassExpression3075 + PgClassExpression3076{{"PgClassExpression[3076∈95]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle3074 --> PgClassExpression3076 + First3079{{"First[3079∈95]"}}:::plan + PgSelectRows3080[["PgSelectRows[3080∈95]"]]:::plan + PgSelectRows3080 --> First3079 + PgSelect3077 --> PgSelectRows3080 + PgSelectSingle3081{{"PgSelectSingle[3081∈95]
ᐸpostᐳ"}}:::plan + First3079 --> PgSelectSingle3081 + PgClassExpression3082{{"PgClassExpression[3082∈95]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle3081 --> PgClassExpression3082 + PgClassExpression3083{{"PgClassExpression[3083∈95]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle3081 --> PgClassExpression3083 + PgClassExpression3084{{"PgClassExpression[3084∈95]
ᐸ__person_t...__.”ltree”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3084 + PgClassExpression3085{{"PgClassExpression[3085∈95]
ᐸ__person_t...ree_array”ᐳ"}}:::plan + PgSelectSingle2875 --> PgClassExpression3085 + __Item2888[/"__Item[2888∈96]
ᐸ2887ᐳ"\]:::itemplan + PgClassExpression2887 ==> __Item2888 + __Item2892[/"__Item[2892∈97]
ᐸ2891ᐳ"\]:::itemplan + PgClassExpression2891 ==> __Item2892 + __Item2936[/"__Item[2936∈98]
ᐸ2935ᐳ"\]:::itemplan + PgClassExpression2935 ==> __Item2936 + __Item3064[/"__Item[3064∈99]
ᐸ3063ᐳ"\]:::itemplan + PgClassExpression3063 ==> __Item3064 + __Item3066[/"__Item[3066∈100]
ᐸ3065ᐳ"\]:::itemplan + PgClassExpression3065 ==> __Item3066 + __Item3069[/"__Item[3069∈101]
ᐸ3068ᐳ"\]:::itemplan + PgClassExpression3068 ==> __Item3069 + __Item3086[/"__Item[3086∈102]
ᐸ3085ᐳ"\]:::itemplan + PgClassExpression3085 ==> __Item3086 + __Item3136[/"__Item[3136∈103]
ᐸ3135ᐳ"\]:::itemplan + PgClassExpression3135 ==> __Item3136 + __Item3140[/"__Item[3140∈104]
ᐸ3139ᐳ"\]:::itemplan + PgClassExpression3139 ==> __Item3140 + __Item3184[/"__Item[3184∈105]
ᐸ3183ᐳ"\]:::itemplan + PgClassExpression3183 ==> __Item3184 + __Item3310[/"__Item[3310∈106]
ᐸ3309ᐳ"\]:::itemplan + PgClassExpression3309 ==> __Item3310 + __Item3312[/"__Item[3312∈107]
ᐸ3311ᐳ"\]:::itemplan + PgClassExpression3311 ==> __Item3312 + __Item3315[/"__Item[3315∈108]
ᐸ3314ᐳ"\]:::itemplan + PgClassExpression3314 ==> __Item3315 + __Item3332[/"__Item[3332∈109]
ᐸ3331ᐳ"\]:::itemplan + PgClassExpression3331 ==> __Item3332 + PgSelect3408[["PgSelect[3408∈110]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression3407{{"PgClassExpression[3407∈110]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression3407 & PgFromExpression3412 --> PgSelect3408 + PgSelect3424[["PgSelect[3424∈110]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression3423{{"PgClassExpression[3423∈110]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression3423 & PgFromExpression3426 --> PgSelect3424 + PgSelect3431[["PgSelect[3431∈110]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression3430{{"PgClassExpression[3430∈110]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression3430 & PgFromExpression3433 --> PgSelect3431 + PgSelect3445[["PgSelect[3445∈110]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression3444{{"PgClassExpression[3444∈110]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression3444 & PgFromExpression3447 --> PgSelect3445 + PgSelect3460[["PgSelect[3460∈110]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression3459{{"PgClassExpression[3459∈110]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression3459 & PgFromExpression3462 --> PgSelect3460 + PgSelect3474[["PgSelect[3474∈110]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + PgClassExpression3473{{"PgClassExpression[3473∈110]
ᐸ__types__....ound_type”ᐳ"}}:::plan + Object11 & PgClassExpression3473 & PgFromExpression3476 --> PgSelect3474 + PgSelect3481[["PgSelect[3481∈110]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression3480{{"PgClassExpression[3480∈110]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression3480 & PgFromExpression3483 --> PgSelect3481 + PgSelect3495[["PgSelect[3495∈110]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression3494{{"PgClassExpression[3494∈110]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression3494 & PgFromExpression3497 --> PgSelect3495 + PgSelect3552[["PgSelect[3552∈110]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + Object11 & PgClassExpression3407 & PgFromExpression3554 --> PgSelect3552 + PgSelect3565[["PgSelect[3565∈110]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + Object11 & PgClassExpression3423 & PgFromExpression3567 --> PgSelect3565 + PgSelect3572[["PgSelect[3572∈110]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression3571{{"PgClassExpression[3571∈110]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression3571 & PgFromExpression3574 --> PgSelect3572 + PgSelect3586[["PgSelect[3586∈110]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression3585{{"PgClassExpression[3585∈110]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression3585 & PgFromExpression3588 --> PgSelect3586 + PgSelect3600[["PgSelect[3600∈110]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + Object11 & PgClassExpression3459 & PgFromExpression3602 --> PgSelect3600 + PgSelect3613[["PgSelect[3613∈110]
ᐸfrmcdc_nestedCompoundTypeᐳ"]]:::plan + Object11 & PgClassExpression3473 & PgFromExpression3615 --> PgSelect3613 + PgSelect3620[["PgSelect[3620∈110]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression3619{{"PgClassExpression[3619∈110]
ᐸ__frmcdc_n...type__.”a”ᐳ"}}:::plan + Object11 & PgClassExpression3619 & PgFromExpression3622 --> PgSelect3620 + PgSelect3634[["PgSelect[3634∈110]
ᐸfrmcdc_compoundTypeᐳ"]]:::plan + PgClassExpression3633{{"PgClassExpression[3633∈110]
ᐸ__frmcdc_n...type__.”b”ᐳ"}}:::plan + Object11 & PgClassExpression3633 & PgFromExpression3636 --> PgSelect3634 + PgSelect3533[["PgSelect[3533∈110]
ᐸpostᐳ"]]:::plan + PgClassExpression3343{{"PgClassExpression[3343∈110]
ᐸ__types__.”smallint”ᐳ"}}:::plan + Object11 & PgClassExpression3343 --> PgSelect3533 + PgSelect3540[["PgSelect[3540∈110]
ᐸpostᐳ"]]:::plan + PgClassExpression3342{{"PgClassExpression[3342∈110]
ᐸ__types__.”id”ᐳ"}}:::plan + Object11 & PgClassExpression3342 --> PgSelect3540 + __Item3340[/"__Item[3340∈110]
ᐸ3339ᐳ"\]:::itemplan + PgSelectRows3339 ==> __Item3340 + PgSelectSingle3341{{"PgSelectSingle[3341∈110]
ᐸtypesᐳ"}}:::plan + __Item3340 --> PgSelectSingle3341 + PgSelectSingle3341 --> PgClassExpression3342 + PgSelectSingle3341 --> PgClassExpression3343 + PgClassExpression3344{{"PgClassExpression[3344∈110]
ᐸ__types__.”bigint”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3344 + PgClassExpression3345{{"PgClassExpression[3345∈110]
ᐸ__types__.”numeric”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3345 + PgClassExpression3346{{"PgClassExpression[3346∈110]
ᐸ__types__.”decimal”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3346 + PgClassExpression3347{{"PgClassExpression[3347∈110]
ᐸ__types__.”boolean”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3347 + PgClassExpression3348{{"PgClassExpression[3348∈110]
ᐸ__types__.”varchar”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3348 + PgClassExpression3349{{"PgClassExpression[3349∈110]
ᐸ__types__.”enum”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3349 + PgClassExpression3350{{"PgClassExpression[3350∈110]
ᐸ__types__.”enum_array”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3350 + PgClassExpression3352{{"PgClassExpression[3352∈110]
ᐸ__types__.”domain”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3352 + PgClassExpression3353{{"PgClassExpression[3353∈110]
ᐸ__types__.”domain2”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3353 + PgClassExpression3354{{"PgClassExpression[3354∈110]
ᐸ__types__.”text_array”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3354 + PgClassExpression3356{{"PgClassExpression[3356∈110]
ᐸ__types__.”json”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3356 + PgClassExpression3357{{"PgClassExpression[3357∈110]
ᐸ__types__.”jsonb”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3357 + PgClassExpression3358{{"PgClassExpression[3358∈110]
ᐸ__types__....ble_range”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3358 + PgClassExpression3365{{"PgClassExpression[3365∈110]
ᐸ__types__.”numrange”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3365 + PgClassExpression3372{{"PgClassExpression[3372∈110]
ᐸ__types__.”daterange”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3372 + PgClassExpression3379{{"PgClassExpression[3379∈110]
ᐸ__types__....int_range”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3379 + PgClassExpression3386{{"PgClassExpression[3386∈110]
ᐸ__types__.”timestamp”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3386 + PgClassExpression3387{{"PgClassExpression[3387∈110]
ᐸ__types__.”timestamptz”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3387 + PgClassExpression3388{{"PgClassExpression[3388∈110]
ᐸ__types__.”date”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3388 + PgClassExpression3389{{"PgClassExpression[3389∈110]
ᐸ__types__.”time”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3389 + PgClassExpression3390{{"PgClassExpression[3390∈110]
ᐸ__types__.”timetz”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3390 + PgClassExpression3391{{"PgClassExpression[3391∈110]
ᐸ__types__.”interval”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3391 + PgClassExpression3398{{"PgClassExpression[3398∈110]
ᐸ__types__....val_array”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3398 + PgClassExpression3406{{"PgClassExpression[3406∈110]
ᐸ__types__.”money”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3406 + PgSelectSingle3341 --> PgClassExpression3407 + First3413{{"First[3413∈110]"}}:::plan + PgSelectRows3414[["PgSelectRows[3414∈110]"]]:::plan + PgSelectRows3414 --> First3413 + PgSelect3408 --> PgSelectRows3414 + PgSelectSingle3415{{"PgSelectSingle[3415∈110]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3413 --> PgSelectSingle3415 + PgClassExpression3416{{"PgClassExpression[3416∈110]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3415 --> PgClassExpression3416 + PgClassExpression3417{{"PgClassExpression[3417∈110]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3415 --> PgClassExpression3417 + PgClassExpression3418{{"PgClassExpression[3418∈110]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3415 --> PgClassExpression3418 + PgClassExpression3419{{"PgClassExpression[3419∈110]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3415 --> PgClassExpression3419 + PgClassExpression3420{{"PgClassExpression[3420∈110]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3415 --> PgClassExpression3420 + PgClassExpression3421{{"PgClassExpression[3421∈110]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3415 --> PgClassExpression3421 + PgClassExpression3422{{"PgClassExpression[3422∈110]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3415 --> PgClassExpression3422 + PgSelectSingle3341 --> PgClassExpression3423 + First3427{{"First[3427∈110]"}}:::plan + PgSelectRows3428[["PgSelectRows[3428∈110]"]]:::plan + PgSelectRows3428 --> First3427 + PgSelect3424 --> PgSelectRows3428 + PgSelectSingle3429{{"PgSelectSingle[3429∈110]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First3427 --> PgSelectSingle3429 + PgSelectSingle3429 --> PgClassExpression3430 + First3434{{"First[3434∈110]"}}:::plan + PgSelectRows3435[["PgSelectRows[3435∈110]"]]:::plan + PgSelectRows3435 --> First3434 + PgSelect3431 --> PgSelectRows3435 + PgSelectSingle3436{{"PgSelectSingle[3436∈110]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3434 --> PgSelectSingle3436 + PgClassExpression3437{{"PgClassExpression[3437∈110]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3436 --> PgClassExpression3437 + PgClassExpression3438{{"PgClassExpression[3438∈110]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3436 --> PgClassExpression3438 + PgClassExpression3439{{"PgClassExpression[3439∈110]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3436 --> PgClassExpression3439 + PgClassExpression3440{{"PgClassExpression[3440∈110]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3436 --> PgClassExpression3440 + PgClassExpression3441{{"PgClassExpression[3441∈110]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3436 --> PgClassExpression3441 + PgClassExpression3442{{"PgClassExpression[3442∈110]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3436 --> PgClassExpression3442 + PgClassExpression3443{{"PgClassExpression[3443∈110]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3436 --> PgClassExpression3443 + PgSelectSingle3429 --> PgClassExpression3444 + First3448{{"First[3448∈110]"}}:::plan + PgSelectRows3449[["PgSelectRows[3449∈110]"]]:::plan + PgSelectRows3449 --> First3448 + PgSelect3445 --> PgSelectRows3449 + PgSelectSingle3450{{"PgSelectSingle[3450∈110]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3448 --> PgSelectSingle3450 + PgClassExpression3451{{"PgClassExpression[3451∈110]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3450 --> PgClassExpression3451 + PgClassExpression3452{{"PgClassExpression[3452∈110]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3450 --> PgClassExpression3452 + PgClassExpression3453{{"PgClassExpression[3453∈110]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3450 --> PgClassExpression3453 + PgClassExpression3454{{"PgClassExpression[3454∈110]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3450 --> PgClassExpression3454 + PgClassExpression3455{{"PgClassExpression[3455∈110]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3450 --> PgClassExpression3455 + PgClassExpression3456{{"PgClassExpression[3456∈110]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3450 --> PgClassExpression3456 + PgClassExpression3457{{"PgClassExpression[3457∈110]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3450 --> PgClassExpression3457 + PgClassExpression3458{{"PgClassExpression[3458∈110]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle3429 --> PgClassExpression3458 + PgSelectSingle3341 --> PgClassExpression3459 + First3463{{"First[3463∈110]"}}:::plan + PgSelectRows3464[["PgSelectRows[3464∈110]"]]:::plan + PgSelectRows3464 --> First3463 + PgSelect3460 --> PgSelectRows3464 + PgSelectSingle3465{{"PgSelectSingle[3465∈110]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3463 --> PgSelectSingle3465 + PgClassExpression3466{{"PgClassExpression[3466∈110]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3465 --> PgClassExpression3466 + PgClassExpression3467{{"PgClassExpression[3467∈110]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3465 --> PgClassExpression3467 + PgClassExpression3468{{"PgClassExpression[3468∈110]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3465 --> PgClassExpression3468 + PgClassExpression3469{{"PgClassExpression[3469∈110]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3465 --> PgClassExpression3469 + PgClassExpression3470{{"PgClassExpression[3470∈110]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3465 --> PgClassExpression3470 + PgClassExpression3471{{"PgClassExpression[3471∈110]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3465 --> PgClassExpression3471 + PgClassExpression3472{{"PgClassExpression[3472∈110]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3465 --> PgClassExpression3472 + PgSelectSingle3341 --> PgClassExpression3473 + First3477{{"First[3477∈110]"}}:::plan + PgSelectRows3478[["PgSelectRows[3478∈110]"]]:::plan + PgSelectRows3478 --> First3477 + PgSelect3474 --> PgSelectRows3478 + PgSelectSingle3479{{"PgSelectSingle[3479∈110]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First3477 --> PgSelectSingle3479 + PgSelectSingle3479 --> PgClassExpression3480 + First3484{{"First[3484∈110]"}}:::plan + PgSelectRows3485[["PgSelectRows[3485∈110]"]]:::plan + PgSelectRows3485 --> First3484 + PgSelect3481 --> PgSelectRows3485 + PgSelectSingle3486{{"PgSelectSingle[3486∈110]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3484 --> PgSelectSingle3486 + PgClassExpression3487{{"PgClassExpression[3487∈110]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3486 --> PgClassExpression3487 + PgClassExpression3488{{"PgClassExpression[3488∈110]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3486 --> PgClassExpression3488 + PgClassExpression3489{{"PgClassExpression[3489∈110]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3486 --> PgClassExpression3489 + PgClassExpression3490{{"PgClassExpression[3490∈110]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3486 --> PgClassExpression3490 + PgClassExpression3491{{"PgClassExpression[3491∈110]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3486 --> PgClassExpression3491 + PgClassExpression3492{{"PgClassExpression[3492∈110]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3486 --> PgClassExpression3492 + PgClassExpression3493{{"PgClassExpression[3493∈110]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3486 --> PgClassExpression3493 + PgSelectSingle3479 --> PgClassExpression3494 + First3498{{"First[3498∈110]"}}:::plan + PgSelectRows3499[["PgSelectRows[3499∈110]"]]:::plan + PgSelectRows3499 --> First3498 + PgSelect3495 --> PgSelectRows3499 + PgSelectSingle3500{{"PgSelectSingle[3500∈110]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3498 --> PgSelectSingle3500 + PgClassExpression3501{{"PgClassExpression[3501∈110]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3500 --> PgClassExpression3501 + PgClassExpression3502{{"PgClassExpression[3502∈110]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3500 --> PgClassExpression3502 + PgClassExpression3503{{"PgClassExpression[3503∈110]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3500 --> PgClassExpression3503 + PgClassExpression3504{{"PgClassExpression[3504∈110]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3500 --> PgClassExpression3504 + PgClassExpression3505{{"PgClassExpression[3505∈110]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3500 --> PgClassExpression3505 + PgClassExpression3506{{"PgClassExpression[3506∈110]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3500 --> PgClassExpression3506 + PgClassExpression3507{{"PgClassExpression[3507∈110]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3500 --> PgClassExpression3507 + PgClassExpression3508{{"PgClassExpression[3508∈110]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle3479 --> PgClassExpression3508 + PgClassExpression3509{{"PgClassExpression[3509∈110]
ᐸ__types__.”point”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3509 + PgClassExpression3512{{"PgClassExpression[3512∈110]
ᐸ__types__....ablePoint”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3512 + PgClassExpression3515{{"PgClassExpression[3515∈110]
ᐸ__types__.”inet”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3515 + PgClassExpression3516{{"PgClassExpression[3516∈110]
ᐸ__types__.”cidr”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3516 + PgClassExpression3517{{"PgClassExpression[3517∈110]
ᐸ__types__.”macaddr”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3517 + PgClassExpression3518{{"PgClassExpression[3518∈110]
ᐸ__types__.”regproc”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3518 + PgClassExpression3519{{"PgClassExpression[3519∈110]
ᐸ__types__....procedure”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3519 + PgClassExpression3520{{"PgClassExpression[3520∈110]
ᐸ__types__.”regoper”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3520 + PgClassExpression3521{{"PgClassExpression[3521∈110]
ᐸ__types__.”regoperator”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3521 + PgClassExpression3522{{"PgClassExpression[3522∈110]
ᐸ__types__.”regclass”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3522 + PgClassExpression3523{{"PgClassExpression[3523∈110]
ᐸ__types__.”regtype”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3523 + PgClassExpression3524{{"PgClassExpression[3524∈110]
ᐸ__types__.”regconfig”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3524 + PgClassExpression3525{{"PgClassExpression[3525∈110]
ᐸ__types__....ictionary”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3525 + PgClassExpression3526{{"PgClassExpression[3526∈110]
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3526 + PgClassExpression3528{{"PgClassExpression[3528∈110]
ᐸ__types__....ay_domain”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3528 + PgClassExpression3530{{"PgClassExpression[3530∈110]
ᐸ__types__.”bytea”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3530 + PgClassExpression3531{{"PgClassExpression[3531∈110]
ᐸ__types__.”bytea_array”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3531 + First3535{{"First[3535∈110]"}}:::plan + PgSelectRows3536[["PgSelectRows[3536∈110]"]]:::plan + PgSelectRows3536 --> First3535 + PgSelect3533 --> PgSelectRows3536 + PgSelectSingle3537{{"PgSelectSingle[3537∈110]
ᐸpostᐳ"}}:::plan + First3535 --> PgSelectSingle3537 + PgClassExpression3538{{"PgClassExpression[3538∈110]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle3537 --> PgClassExpression3538 + PgClassExpression3539{{"PgClassExpression[3539∈110]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle3537 --> PgClassExpression3539 + First3542{{"First[3542∈110]"}}:::plan + PgSelectRows3543[["PgSelectRows[3543∈110]"]]:::plan + PgSelectRows3543 --> First3542 + PgSelect3540 --> PgSelectRows3543 + PgSelectSingle3544{{"PgSelectSingle[3544∈110]
ᐸpostᐳ"}}:::plan + First3542 --> PgSelectSingle3544 + PgClassExpression3545{{"PgClassExpression[3545∈110]
ᐸ__post__.”id”ᐳ"}}:::plan + PgSelectSingle3544 --> PgClassExpression3545 + PgClassExpression3546{{"PgClassExpression[3546∈110]
ᐸ__post__.”headline”ᐳ"}}:::plan + PgSelectSingle3544 --> PgClassExpression3546 + PgClassExpression3547{{"PgClassExpression[3547∈110]
ᐸ__types__.”ltree”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3547 + PgClassExpression3548{{"PgClassExpression[3548∈110]
ᐸ__types__.”ltree_array”ᐳ"}}:::plan + PgSelectSingle3341 --> PgClassExpression3548 + First3555{{"First[3555∈110]"}}:::plan + PgSelectRows3556[["PgSelectRows[3556∈110]"]]:::plan + PgSelectRows3556 --> First3555 + PgSelect3552 --> PgSelectRows3556 + PgSelectSingle3557{{"PgSelectSingle[3557∈110]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3555 --> PgSelectSingle3557 + PgClassExpression3558{{"PgClassExpression[3558∈110]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3557 --> PgClassExpression3558 + PgClassExpression3559{{"PgClassExpression[3559∈110]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3557 --> PgClassExpression3559 + PgClassExpression3560{{"PgClassExpression[3560∈110]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3557 --> PgClassExpression3560 + PgClassExpression3561{{"PgClassExpression[3561∈110]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3557 --> PgClassExpression3561 + PgClassExpression3562{{"PgClassExpression[3562∈110]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3557 --> PgClassExpression3562 + PgClassExpression3563{{"PgClassExpression[3563∈110]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3557 --> PgClassExpression3563 + PgClassExpression3564{{"PgClassExpression[3564∈110]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3557 --> PgClassExpression3564 + First3568{{"First[3568∈110]"}}:::plan + PgSelectRows3569[["PgSelectRows[3569∈110]"]]:::plan + PgSelectRows3569 --> First3568 + PgSelect3565 --> PgSelectRows3569 + PgSelectSingle3570{{"PgSelectSingle[3570∈110]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First3568 --> PgSelectSingle3570 + PgSelectSingle3570 --> PgClassExpression3571 + First3575{{"First[3575∈110]"}}:::plan + PgSelectRows3576[["PgSelectRows[3576∈110]"]]:::plan + PgSelectRows3576 --> First3575 + PgSelect3572 --> PgSelectRows3576 + PgSelectSingle3577{{"PgSelectSingle[3577∈110]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3575 --> PgSelectSingle3577 + PgClassExpression3578{{"PgClassExpression[3578∈110]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3577 --> PgClassExpression3578 + PgClassExpression3579{{"PgClassExpression[3579∈110]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3577 --> PgClassExpression3579 + PgClassExpression3580{{"PgClassExpression[3580∈110]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3577 --> PgClassExpression3580 + PgClassExpression3581{{"PgClassExpression[3581∈110]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3577 --> PgClassExpression3581 + PgClassExpression3582{{"PgClassExpression[3582∈110]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3577 --> PgClassExpression3582 + PgClassExpression3583{{"PgClassExpression[3583∈110]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3577 --> PgClassExpression3583 + PgClassExpression3584{{"PgClassExpression[3584∈110]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3577 --> PgClassExpression3584 + PgSelectSingle3570 --> PgClassExpression3585 + First3589{{"First[3589∈110]"}}:::plan + PgSelectRows3590[["PgSelectRows[3590∈110]"]]:::plan + PgSelectRows3590 --> First3589 + PgSelect3586 --> PgSelectRows3590 + PgSelectSingle3591{{"PgSelectSingle[3591∈110]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3589 --> PgSelectSingle3591 + PgClassExpression3592{{"PgClassExpression[3592∈110]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3591 --> PgClassExpression3592 + PgClassExpression3593{{"PgClassExpression[3593∈110]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3591 --> PgClassExpression3593 + PgClassExpression3594{{"PgClassExpression[3594∈110]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3591 --> PgClassExpression3594 + PgClassExpression3595{{"PgClassExpression[3595∈110]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3591 --> PgClassExpression3595 + PgClassExpression3596{{"PgClassExpression[3596∈110]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3591 --> PgClassExpression3596 + PgClassExpression3597{{"PgClassExpression[3597∈110]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3591 --> PgClassExpression3597 + PgClassExpression3598{{"PgClassExpression[3598∈110]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3591 --> PgClassExpression3598 + PgClassExpression3599{{"PgClassExpression[3599∈110]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle3570 --> PgClassExpression3599 + First3603{{"First[3603∈110]"}}:::plan + PgSelectRows3604[["PgSelectRows[3604∈110]"]]:::plan + PgSelectRows3604 --> First3603 + PgSelect3600 --> PgSelectRows3604 + PgSelectSingle3605{{"PgSelectSingle[3605∈110]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3603 --> PgSelectSingle3605 + PgClassExpression3606{{"PgClassExpression[3606∈110]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3605 --> PgClassExpression3606 + PgClassExpression3607{{"PgClassExpression[3607∈110]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3605 --> PgClassExpression3607 + PgClassExpression3608{{"PgClassExpression[3608∈110]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3605 --> PgClassExpression3608 + PgClassExpression3609{{"PgClassExpression[3609∈110]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3605 --> PgClassExpression3609 + PgClassExpression3610{{"PgClassExpression[3610∈110]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3605 --> PgClassExpression3610 + PgClassExpression3611{{"PgClassExpression[3611∈110]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3605 --> PgClassExpression3611 + PgClassExpression3612{{"PgClassExpression[3612∈110]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3605 --> PgClassExpression3612 + First3616{{"First[3616∈110]"}}:::plan + PgSelectRows3617[["PgSelectRows[3617∈110]"]]:::plan + PgSelectRows3617 --> First3616 + PgSelect3613 --> PgSelectRows3617 + PgSelectSingle3618{{"PgSelectSingle[3618∈110]
ᐸfrmcdc_nestedCompoundTypeᐳ"}}:::plan + First3616 --> PgSelectSingle3618 + PgSelectSingle3618 --> PgClassExpression3619 + First3623{{"First[3623∈110]"}}:::plan + PgSelectRows3624[["PgSelectRows[3624∈110]"]]:::plan + PgSelectRows3624 --> First3623 + PgSelect3620 --> PgSelectRows3624 + PgSelectSingle3625{{"PgSelectSingle[3625∈110]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3623 --> PgSelectSingle3625 + PgClassExpression3626{{"PgClassExpression[3626∈110]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3625 --> PgClassExpression3626 + PgClassExpression3627{{"PgClassExpression[3627∈110]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3625 --> PgClassExpression3627 + PgClassExpression3628{{"PgClassExpression[3628∈110]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3625 --> PgClassExpression3628 + PgClassExpression3629{{"PgClassExpression[3629∈110]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3625 --> PgClassExpression3629 + PgClassExpression3630{{"PgClassExpression[3630∈110]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3625 --> PgClassExpression3630 + PgClassExpression3631{{"PgClassExpression[3631∈110]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3625 --> PgClassExpression3631 + PgClassExpression3632{{"PgClassExpression[3632∈110]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3625 --> PgClassExpression3632 + PgSelectSingle3618 --> PgClassExpression3633 + First3637{{"First[3637∈110]"}}:::plan + PgSelectRows3638[["PgSelectRows[3638∈110]"]]:::plan + PgSelectRows3638 --> First3637 + PgSelect3634 --> PgSelectRows3638 + PgSelectSingle3639{{"PgSelectSingle[3639∈110]
ᐸfrmcdc_compoundTypeᐳ"}}:::plan + First3637 --> PgSelectSingle3639 + PgClassExpression3640{{"PgClassExpression[3640∈110]
ᐸ__frmcdc_c...type__.”a”ᐳ"}}:::plan + PgSelectSingle3639 --> PgClassExpression3640 + PgClassExpression3641{{"PgClassExpression[3641∈110]
ᐸ__frmcdc_c...type__.”b”ᐳ"}}:::plan + PgSelectSingle3639 --> PgClassExpression3641 + PgClassExpression3642{{"PgClassExpression[3642∈110]
ᐸ__frmcdc_c...type__.”c”ᐳ"}}:::plan + PgSelectSingle3639 --> PgClassExpression3642 + PgClassExpression3643{{"PgClassExpression[3643∈110]
ᐸ__frmcdc_c...type__.”d”ᐳ"}}:::plan + PgSelectSingle3639 --> PgClassExpression3643 + PgClassExpression3644{{"PgClassExpression[3644∈110]
ᐸ__frmcdc_c...type__.”e”ᐳ"}}:::plan + PgSelectSingle3639 --> PgClassExpression3644 + PgClassExpression3645{{"PgClassExpression[3645∈110]
ᐸ__frmcdc_c...type__.”f”ᐳ"}}:::plan + PgSelectSingle3639 --> PgClassExpression3645 + PgClassExpression3646{{"PgClassExpression[3646∈110]
ᐸ__frmcdc_c....”foo_bar”ᐳ"}}:::plan + PgSelectSingle3639 --> PgClassExpression3646 + PgClassExpression3647{{"PgClassExpression[3647∈110]
ᐸ__frmcdc_n....”baz_buz”ᐳ"}}:::plan + PgSelectSingle3618 --> PgClassExpression3647 + __Item3351[/"__Item[3351∈111]
ᐸ3350ᐳ"\]:::itemplan + PgClassExpression3350 ==> __Item3351 + __Item3355[/"__Item[3355∈112]
ᐸ3354ᐳ"\]:::itemplan + PgClassExpression3354 ==> __Item3355 + __Item3399[/"__Item[3399∈113]
ᐸ3398ᐳ"\]:::itemplan + PgClassExpression3398 ==> __Item3399 + __Item3527[/"__Item[3527∈114]
ᐸ3526ᐳ"\]:::itemplan + PgClassExpression3526 ==> __Item3527 + __Item3529[/"__Item[3529∈115]
ᐸ3528ᐳ"\]:::itemplan + PgClassExpression3528 ==> __Item3529 + __Item3532[/"__Item[3532∈116]
ᐸ3531ᐳ"\]:::itemplan + PgClassExpression3531 ==> __Item3532 + __Item3549[/"__Item[3549∈117]
ᐸ3548ᐳ"\]:::itemplan + PgClassExpression3548 ==> __Item3549 %% define steps subgraph "Buckets for queries/v4/types" - Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 10, 11, 13, 1819, 2694, 3362, 3803, 3804, 3807, 12, 868, 869, 1080, 3119, 3779, 1079
2: 452, 660, 871, 1403, 1610, 2267, 3142
3: 454, 663, 874, 1406, 1612, 2270, 3145
ᐳ: 662, 664, 873, 875, 1405, 1407, 2269, 2271, 3144, 3146"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 88, 102, 109, 123, 138, 152, 159, 173, 230, 243, 250, 264, 278, 291, 298, 312, 436, 450, 457, 471, 486, 500, 507, 521, 1619, 1633, 1640, 1654, 1669, 1683, 1690, 1704, 1834, 1848, 1855, 1869, 1884, 1898, 1905, 1919, 2052, 2066, 2073, 2087, 2102, 2116, 2123, 2137, 2514, 2528, 2535, 2549, 2564, 2578, 2585, 2599, 2731, 2745, 2752, 2766, 2781, 2795, 2802, 2816, 2949, 2963, 2970, 2984, 2999, 3013, 3020, 3034, 3412, 3426, 3433, 3447, 3462, 3476, 3483, 3497, 3554, 3567, 3574, 3588, 3602, 3615, 3622, 3636, 3687, 3688, 3691, 11, 12, 340, 787, 788, 1003, 1334, 1759, 2196, 2656, 3093, 3336, 3664, 1002
2: 14, 334, 361, 575, 790, 1332, 1544, 1760, 2190, 2218, 3115
ᐳ: 342, 343, 344, 347, 348, 353, 1980, 2198, 2199, 2200, 2203, 2204
3: 15, 336, 363, 578, 793, 1336, 1546, 1761, 2192, 2221, 3118
ᐳ: 335, 337, 338, 350, 352, 354, 356, 358, 360, 577, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 590, 591, 592, 594, 595, 596, 603, 610, 617, 624, 625, 626, 627, 628, 629, 636, 644, 645, 648, 659, 662, 695, 698, 709, 712, 745, 748, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 764, 766, 767, 783, 784, 792, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 805, 806, 807, 809, 810, 811, 818, 825, 832, 839, 840, 841, 842, 843, 844, 851, 859, 860, 863, 874, 877, 910, 913, 924, 927, 960, 963, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 979, 981, 982, 998, 999, 1335, 1337, 1338, 1339, 1340, 1341, 1342, 1343, 1344, 1345, 1346, 1348, 1349, 1350, 1352, 1353, 1354, 1361, 1368, 1375, 1382, 1383, 1384, 1385, 1386, 1387, 1394, 1402, 1403, 1406, 1417, 1420, 1453, 1456, 1467, 1470, 1503, 1506, 1509, 1510, 1511, 1512, 1513, 1514, 1515, 1516, 1517, 1518, 1519, 1520, 1522, 1524, 1525, 1541, 1542, 2191, 2193, 2194, 2206, 2208, 2210, 2212, 2214, 2216, 2220, 2222, 2224, 2227, 2440, 2655, 3117, 3119, 3120, 3121
4: 646, 660, 696, 710, 769, 776, 861, 875, 911, 925, 984, 991, 1404, 1418, 1454, 1468, 1527, 1534, 1973, 2225, 2438, 2657, 3087, 3122, 3338, 3658
ᐳ: 2877, 3095, 3096, 3097, 3100, 3101, 3666, 3667, 3668, 3671, 3672, 3677
5: 650, 664, 700, 714, 772, 779, 865, 879, 915, 929, 987, 994, 1408, 1422, 1458, 1472, 1530, 1537, 2229, 2441, 2658, 3089, 3125, 3339, 3660
ᐳ: 649, 651, 652, 653, 654, 655, 656, 657, 658, 663, 665, 666, 669, 680, 683, 694, 699, 701, 702, 703, 704, 705, 706, 707, 708, 713, 715, 716, 719, 730, 733, 744, 771, 773, 774, 775, 778, 780, 781, 782, 864, 866, 867, 868, 869, 870, 871, 872, 873, 878, 880, 881, 884, 895, 898, 909, 914, 916, 917, 918, 919, 920, 921, 922, 923, 928, 930, 931, 934, 945, 948, 959, 986, 988, 989, 990, 993, 995, 996, 997, 1407, 1409, 1410, 1411, 1412, 1413, 1414, 1415, 1416, 1421, 1423, 1424, 1427, 1438, 1441, 1452, 1457, 1459, 1460, 1461, 1462, 1463, 1464, 1465, 1466, 1471, 1473, 1474, 1477, 1488, 1491, 1502, 1529, 1531, 1532, 1533, 1536, 1538, 1539, 1540, 2228, 2230, 2231, 2232, 2233, 2234, 2235, 2236, 2237, 2238, 2239, 2241, 2242, 2243, 2245, 2246, 2247, 2254, 2261, 2268, 2275, 2276, 2277, 2278, 2279, 2280, 2287, 2295, 2296, 2299, 2310, 2313, 2346, 2349, 2360, 2363, 2396, 2399, 2402, 2403, 2404, 2405, 2406, 2407, 2408, 2409, 2410, 2411, 2412, 2413, 2415, 2417, 2418, 2434, 2435, 3088, 3090, 3091, 3103, 3105, 3107, 3109, 3111, 3113, 3124, 3126, 3127, 3128, 3129, 3130, 3131, 3132, 3133, 3134, 3135, 3137, 3138, 3139, 3141, 3142, 3143, 3150, 3157, 3164, 3171, 3172, 3173, 3174, 3175, 3176, 3183, 3191, 3192, 3195, 3206, 3209, 3242, 3245, 3256, 3259, 3292, 3295, 3298, 3299, 3300, 3301, 3302, 3303, 3304, 3305, 3306, 3307, 3308, 3309, 3311, 3313, 3314, 3330, 3331, 3659, 3661, 3662, 3674, 3676, 3678, 3680, 3682, 3684
6: 667, 681, 717, 731, 882, 896, 932, 946, 1425, 1439, 1475, 1489, 2297, 2311, 2347, 2361, 2420, 2427, 2870, 3193, 3207, 3243, 3257, 3316, 3323
7: 671, 685, 721, 735, 886, 900, 936, 950, 1429, 1443, 1479, 1493, 2301, 2315, 2351, 2365, 2423, 2430, 3197, 3211, 3247, 3261, 3319, 3326
ᐳ: 670, 672, 673, 674, 675, 676, 677, 678, 679, 684, 686, 687, 688, 689, 690, 691, 692, 693, 720, 722, 723, 724, 725, 726, 727, 728, 729, 734, 736, 737, 738, 739, 740, 741, 742, 743, 885, 887, 888, 889, 890, 891, 892, 893, 894, 899, 901, 902, 903, 904, 905, 906, 907, 908, 935, 937, 938, 939, 940, 941, 942, 943, 944, 949, 951, 952, 953, 954, 955, 956, 957, 958, 1428, 1430, 1431, 1432, 1433, 1434, 1435, 1436, 1437, 1442, 1444, 1445, 1446, 1447, 1448, 1449, 1450, 1451, 1478, 1480, 1481, 1482, 1483, 1484, 1485, 1486, 1487, 1492, 1494, 1495, 1496, 1497, 1498, 1499, 1500, 1501, 2300, 2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2314, 2316, 2317, 2320, 2331, 2334, 2345, 2350, 2352, 2353, 2354, 2355, 2356, 2357, 2358, 2359, 2364, 2366, 2367, 2370, 2381, 2384, 2395, 2422, 2424, 2425, 2426, 2429, 2431, 2432, 2433, 3196, 3198, 3199, 3200, 3201, 3202, 3203, 3204, 3205, 3210, 3212, 3213, 3216, 3227, 3230, 3241, 3246, 3248, 3249, 3250, 3251, 3252, 3253, 3254, 3255, 3260, 3262, 3263, 3266, 3277, 3280, 3291, 3318, 3320, 3321, 3322, 3325, 3327, 3328, 3329
8: 2318, 2332, 2368, 2382, 3214, 3228, 3264, 3278
9: 2322, 2336, 2372, 2386, 3218, 3232, 3268, 3282
ᐳ: 2321, 2323, 2324, 2325, 2326, 2327, 2328, 2329, 2330, 2335, 2337, 2338, 2339, 2340, 2341, 2342, 2343, 2344, 2371, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2385, 2387, 2388, 2389, 2390, 2391, 2392, 2393, 2394, 3217, 3219, 3220, 3221, 3222, 3223, 3224, 3225, 3226, 3231, 3233, 3234, 3235, 3236, 3237, 3238, 3239, 3240, 3267, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276, 3281, 3283, 3284, 3285, 3286, 3287, 3288, 3289, 3290"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Constant6,Access10,Access11,Object12,Connection13,PgSelect452,PgSelectRows454,PgSelect660,First662,PgSelectRows663,PgSelectSingle664,Lambda868,Access869,PgSelect871,First873,PgSelectRows874,PgSelectSingle875,Node1079,Lambda1080,PgSelect1403,First1405,PgSelectRows1406,PgSelectSingle1407,PgSelect1610,PgSelectRows1612,Connection1819,PgSelect2267,First2269,PgSelectRows2270,PgSelectSingle2271,Connection2694,PgPageInfo3119,PgSelect3142,First3144,PgSelectRows3145,PgSelectSingle3146,Connection3362,PgPageInfo3779,Constant3803,Constant3804,Constant3807 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13, 6

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14], PgSelect[424]
ᐳ: 430, 433, 434, 435, 438, 439, 444
2: PgSelectRows[15], PgSelectRows[426]
ᐳ: 425, 427, 428, 441, 443, 445, 447, 449, 451"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,PgFromExpression88,PgFromExpression102,PgFromExpression109,PgFromExpression123,PgFromExpression138,PgFromExpression152,PgFromExpression159,PgFromExpression173,PgFromExpression230,PgFromExpression243,PgFromExpression250,PgFromExpression264,PgFromExpression278,PgFromExpression291,PgFromExpression298,PgFromExpression312,PgSelect334,First335,PgSelectRows336,PgSelectSingle337,PgClassExpression338,PgPageInfo340,Access342,Object343,Lambda344,Object347,Lambda348,First350,PgSelectSingle352,Access353,PgCursor354,Last356,PgSelectSingle358,PgCursor360,PgSelect361,PgSelectRows363,PgFromExpression436,PgFromExpression450,PgFromExpression457,PgFromExpression471,PgFromExpression486,PgFromExpression500,PgFromExpression507,PgFromExpression521,PgSelect575,First577,PgSelectRows578,PgSelectSingle579,PgClassExpression580,PgClassExpression581,PgClassExpression582,PgClassExpression583,PgClassExpression584,PgClassExpression585,PgClassExpression586,PgClassExpression587,PgClassExpression588,PgClassExpression590,PgClassExpression591,PgClassExpression592,PgClassExpression594,PgClassExpression595,PgClassExpression596,PgClassExpression603,PgClassExpression610,PgClassExpression617,PgClassExpression624,PgClassExpression625,PgClassExpression626,PgClassExpression627,PgClassExpression628,PgClassExpression629,PgClassExpression636,PgClassExpression644,PgClassExpression645,PgSelect646,PgFromExpression648,First649,PgSelectRows650,PgSelectSingle651,PgClassExpression652,PgClassExpression653,PgClassExpression654,PgClassExpression655,PgClassExpression656,PgClassExpression657,PgClassExpression658,PgClassExpression659,PgSelect660,PgFromExpression662,First663,PgSelectRows664,PgSelectSingle665,PgClassExpression666,PgSelect667,PgFromExpression669,First670,PgSelectRows671,PgSelectSingle672,PgClassExpression673,PgClassExpression674,PgClassExpression675,PgClassExpression676,PgClassExpression677,PgClassExpression678,PgClassExpression679,PgClassExpression680,PgSelect681,PgFromExpression683,First684,PgSelectRows685,PgSelectSingle686,PgClassExpression687,PgClassExpression688,PgClassExpression689,PgClassExpression690,PgClassExpression691,PgClassExpression692,PgClassExpression693,PgClassExpression694,PgClassExpression695,PgSelect696,PgFromExpression698,First699,PgSelectRows700,PgSelectSingle701,PgClassExpression702,PgClassExpression703,PgClassExpression704,PgClassExpression705,PgClassExpression706,PgClassExpression707,PgClassExpression708,PgClassExpression709,PgSelect710,PgFromExpression712,First713,PgSelectRows714,PgSelectSingle715,PgClassExpression716,PgSelect717,PgFromExpression719,First720,PgSelectRows721,PgSelectSingle722,PgClassExpression723,PgClassExpression724,PgClassExpression725,PgClassExpression726,PgClassExpression727,PgClassExpression728,PgClassExpression729,PgClassExpression730,PgSelect731,PgFromExpression733,First734,PgSelectRows735,PgSelectSingle736,PgClassExpression737,PgClassExpression738,PgClassExpression739,PgClassExpression740,PgClassExpression741,PgClassExpression742,PgClassExpression743,PgClassExpression744,PgClassExpression745,PgClassExpression748,PgClassExpression751,PgClassExpression752,PgClassExpression753,PgClassExpression754,PgClassExpression755,PgClassExpression756,PgClassExpression757,PgClassExpression758,PgClassExpression759,PgClassExpression760,PgClassExpression761,PgClassExpression762,PgClassExpression764,PgClassExpression766,PgClassExpression767,PgSelect769,First771,PgSelectRows772,PgSelectSingle773,PgClassExpression774,PgClassExpression775,PgSelect776,First778,PgSelectRows779,PgSelectSingle780,PgClassExpression781,PgClassExpression782,PgClassExpression783,PgClassExpression784,Lambda787,Access788,PgSelect790,First792,PgSelectRows793,PgSelectSingle794,PgClassExpression795,PgClassExpression796,PgClassExpression797,PgClassExpression798,PgClassExpression799,PgClassExpression800,PgClassExpression801,PgClassExpression802,PgClassExpression803,PgClassExpression805,PgClassExpression806,PgClassExpression807,PgClassExpression809,PgClassExpression810,PgClassExpression811,PgClassExpression818,PgClassExpression825,PgClassExpression832,PgClassExpression839,PgClassExpression840,PgClassExpression841,PgClassExpression842,PgClassExpression843,PgClassExpression844,PgClassExpression851,PgClassExpression859,PgClassExpression860,PgSelect861,PgFromExpression863,First864,PgSelectRows865,PgSelectSingle866,PgClassExpression867,PgClassExpression868,PgClassExpression869,PgClassExpression870,PgClassExpression871,PgClassExpression872,PgClassExpression873,PgClassExpression874,PgSelect875,PgFromExpression877,First878,PgSelectRows879,PgSelectSingle880,PgClassExpression881,PgSelect882,PgFromExpression884,First885,PgSelectRows886,PgSelectSingle887,PgClassExpression888,PgClassExpression889,PgClassExpression890,PgClassExpression891,PgClassExpression892,PgClassExpression893,PgClassExpression894,PgClassExpression895,PgSelect896,PgFromExpression898,First899,PgSelectRows900,PgSelectSingle901,PgClassExpression902,PgClassExpression903,PgClassExpression904,PgClassExpression905,PgClassExpression906,PgClassExpression907,PgClassExpression908,PgClassExpression909,PgClassExpression910,PgSelect911,PgFromExpression913,First914,PgSelectRows915,PgSelectSingle916,PgClassExpression917,PgClassExpression918,PgClassExpression919,PgClassExpression920,PgClassExpression921,PgClassExpression922,PgClassExpression923,PgClassExpression924,PgSelect925,PgFromExpression927,First928,PgSelectRows929,PgSelectSingle930,PgClassExpression931,PgSelect932,PgFromExpression934,First935,PgSelectRows936,PgSelectSingle937,PgClassExpression938,PgClassExpression939,PgClassExpression940,PgClassExpression941,PgClassExpression942,PgClassExpression943,PgClassExpression944,PgClassExpression945,PgSelect946,PgFromExpression948,First949,PgSelectRows950,PgSelectSingle951,PgClassExpression952,PgClassExpression953,PgClassExpression954,PgClassExpression955,PgClassExpression956,PgClassExpression957,PgClassExpression958,PgClassExpression959,PgClassExpression960,PgClassExpression963,PgClassExpression966,PgClassExpression967,PgClassExpression968,PgClassExpression969,PgClassExpression970,PgClassExpression971,PgClassExpression972,PgClassExpression973,PgClassExpression974,PgClassExpression975,PgClassExpression976,PgClassExpression977,PgClassExpression979,PgClassExpression981,PgClassExpression982,PgSelect984,First986,PgSelectRows987,PgSelectSingle988,PgClassExpression989,PgClassExpression990,PgSelect991,First993,PgSelectRows994,PgSelectSingle995,PgClassExpression996,PgClassExpression997,PgClassExpression998,PgClassExpression999,Node1002,Lambda1003,PgSelect1332,PgFromExpression1334,First1335,PgSelectRows1336,PgSelectSingle1337,PgClassExpression1338,PgClassExpression1339,PgClassExpression1340,PgClassExpression1341,PgClassExpression1342,PgClassExpression1343,PgClassExpression1344,PgClassExpression1345,PgClassExpression1346,PgClassExpression1348,PgClassExpression1349,PgClassExpression1350,PgClassExpression1352,PgClassExpression1353,PgClassExpression1354,PgClassExpression1361,PgClassExpression1368,PgClassExpression1375,PgClassExpression1382,PgClassExpression1383,PgClassExpression1384,PgClassExpression1385,PgClassExpression1386,PgClassExpression1387,PgClassExpression1394,PgClassExpression1402,PgClassExpression1403,PgSelect1404,PgFromExpression1406,First1407,PgSelectRows1408,PgSelectSingle1409,PgClassExpression1410,PgClassExpression1411,PgClassExpression1412,PgClassExpression1413,PgClassExpression1414,PgClassExpression1415,PgClassExpression1416,PgClassExpression1417,PgSelect1418,PgFromExpression1420,First1421,PgSelectRows1422,PgSelectSingle1423,PgClassExpression1424,PgSelect1425,PgFromExpression1427,First1428,PgSelectRows1429,PgSelectSingle1430,PgClassExpression1431,PgClassExpression1432,PgClassExpression1433,PgClassExpression1434,PgClassExpression1435,PgClassExpression1436,PgClassExpression1437,PgClassExpression1438,PgSelect1439,PgFromExpression1441,First1442,PgSelectRows1443,PgSelectSingle1444,PgClassExpression1445,PgClassExpression1446,PgClassExpression1447,PgClassExpression1448,PgClassExpression1449,PgClassExpression1450,PgClassExpression1451,PgClassExpression1452,PgClassExpression1453,PgSelect1454,PgFromExpression1456,First1457,PgSelectRows1458,PgSelectSingle1459,PgClassExpression1460,PgClassExpression1461,PgClassExpression1462,PgClassExpression1463,PgClassExpression1464,PgClassExpression1465,PgClassExpression1466,PgClassExpression1467,PgSelect1468,PgFromExpression1470,First1471,PgSelectRows1472,PgSelectSingle1473,PgClassExpression1474,PgSelect1475,PgFromExpression1477,First1478,PgSelectRows1479,PgSelectSingle1480,PgClassExpression1481,PgClassExpression1482,PgClassExpression1483,PgClassExpression1484,PgClassExpression1485,PgClassExpression1486,PgClassExpression1487,PgClassExpression1488,PgSelect1489,PgFromExpression1491,First1492,PgSelectRows1493,PgSelectSingle1494,PgClassExpression1495,PgClassExpression1496,PgClassExpression1497,PgClassExpression1498,PgClassExpression1499,PgClassExpression1500,PgClassExpression1501,PgClassExpression1502,PgClassExpression1503,PgClassExpression1506,PgClassExpression1509,PgClassExpression1510,PgClassExpression1511,PgClassExpression1512,PgClassExpression1513,PgClassExpression1514,PgClassExpression1515,PgClassExpression1516,PgClassExpression1517,PgClassExpression1518,PgClassExpression1519,PgClassExpression1520,PgClassExpression1522,PgClassExpression1524,PgClassExpression1525,PgSelect1527,First1529,PgSelectRows1530,PgSelectSingle1531,PgClassExpression1532,PgClassExpression1533,PgSelect1534,First1536,PgSelectRows1537,PgSelectSingle1538,PgClassExpression1539,PgClassExpression1540,PgClassExpression1541,PgClassExpression1542,PgSelect1544,PgSelectRows1546,PgFromExpression1619,PgFromExpression1633,PgFromExpression1640,PgFromExpression1654,PgFromExpression1669,PgFromExpression1683,PgFromExpression1690,PgFromExpression1704,Connection1759,PgSelect1760,PgSelectRows1761,PgFromExpression1834,PgFromExpression1848,PgFromExpression1855,PgFromExpression1869,PgFromExpression1884,PgFromExpression1898,PgFromExpression1905,PgFromExpression1919,__ListTransform1973,Access1980,PgFromExpression2052,PgFromExpression2066,PgFromExpression2073,PgFromExpression2087,PgFromExpression2102,PgFromExpression2116,PgFromExpression2123,PgFromExpression2137,PgSelect2190,First2191,PgSelectRows2192,PgSelectSingle2193,PgClassExpression2194,PgPageInfo2196,Access2198,Object2199,Lambda2200,Object2203,Lambda2204,First2206,PgSelectSingle2208,PgCursor2210,Last2212,PgSelectSingle2214,PgCursor2216,PgSelect2218,First2220,PgSelectRows2221,PgSelectSingle2222,PgClassExpression2224,PgSelect2225,PgFromExpression2227,First2228,PgSelectRows2229,PgSelectSingle2230,PgClassExpression2231,PgClassExpression2232,PgClassExpression2233,PgClassExpression2234,PgClassExpression2235,PgClassExpression2236,PgClassExpression2237,PgClassExpression2238,PgClassExpression2239,PgClassExpression2241,PgClassExpression2242,PgClassExpression2243,PgClassExpression2245,PgClassExpression2246,PgClassExpression2247,PgClassExpression2254,PgClassExpression2261,PgClassExpression2268,PgClassExpression2275,PgClassExpression2276,PgClassExpression2277,PgClassExpression2278,PgClassExpression2279,PgClassExpression2280,PgClassExpression2287,PgClassExpression2295,PgClassExpression2296,PgSelect2297,PgFromExpression2299,First2300,PgSelectRows2301,PgSelectSingle2302,PgClassExpression2303,PgClassExpression2304,PgClassExpression2305,PgClassExpression2306,PgClassExpression2307,PgClassExpression2308,PgClassExpression2309,PgClassExpression2310,PgSelect2311,PgFromExpression2313,First2314,PgSelectRows2315,PgSelectSingle2316,PgClassExpression2317,PgSelect2318,PgFromExpression2320,First2321,PgSelectRows2322,PgSelectSingle2323,PgClassExpression2324,PgClassExpression2325,PgClassExpression2326,PgClassExpression2327,PgClassExpression2328,PgClassExpression2329,PgClassExpression2330,PgClassExpression2331,PgSelect2332,PgFromExpression2334,First2335,PgSelectRows2336,PgSelectSingle2337,PgClassExpression2338,PgClassExpression2339,PgClassExpression2340,PgClassExpression2341,PgClassExpression2342,PgClassExpression2343,PgClassExpression2344,PgClassExpression2345,PgClassExpression2346,PgSelect2347,PgFromExpression2349,First2350,PgSelectRows2351,PgSelectSingle2352,PgClassExpression2353,PgClassExpression2354,PgClassExpression2355,PgClassExpression2356,PgClassExpression2357,PgClassExpression2358,PgClassExpression2359,PgClassExpression2360,PgSelect2361,PgFromExpression2363,First2364,PgSelectRows2365,PgSelectSingle2366,PgClassExpression2367,PgSelect2368,PgFromExpression2370,First2371,PgSelectRows2372,PgSelectSingle2373,PgClassExpression2374,PgClassExpression2375,PgClassExpression2376,PgClassExpression2377,PgClassExpression2378,PgClassExpression2379,PgClassExpression2380,PgClassExpression2381,PgSelect2382,PgFromExpression2384,First2385,PgSelectRows2386,PgSelectSingle2387,PgClassExpression2388,PgClassExpression2389,PgClassExpression2390,PgClassExpression2391,PgClassExpression2392,PgClassExpression2393,PgClassExpression2394,PgClassExpression2395,PgClassExpression2396,PgClassExpression2399,PgClassExpression2402,PgClassExpression2403,PgClassExpression2404,PgClassExpression2405,PgClassExpression2406,PgClassExpression2407,PgClassExpression2408,PgClassExpression2409,PgClassExpression2410,PgClassExpression2411,PgClassExpression2412,PgClassExpression2413,PgClassExpression2415,PgClassExpression2417,PgClassExpression2418,PgSelect2420,First2422,PgSelectRows2423,PgSelectSingle2424,PgClassExpression2425,PgClassExpression2426,PgSelect2427,First2429,PgSelectRows2430,PgSelectSingle2431,PgClassExpression2432,PgClassExpression2433,PgClassExpression2434,PgClassExpression2435,PgSelect2438,PgFromExpression2440,PgSelectRows2441,PgFromExpression2514,PgFromExpression2528,PgFromExpression2535,PgFromExpression2549,PgFromExpression2564,PgFromExpression2578,PgFromExpression2585,PgFromExpression2599,PgFromExpression2655,Connection2656,PgSelect2657,PgSelectRows2658,PgFromExpression2731,PgFromExpression2745,PgFromExpression2752,PgFromExpression2766,PgFromExpression2781,PgFromExpression2795,PgFromExpression2802,PgFromExpression2816,__ListTransform2870,Access2877,PgFromExpression2949,PgFromExpression2963,PgFromExpression2970,PgFromExpression2984,PgFromExpression2999,PgFromExpression3013,PgFromExpression3020,PgFromExpression3034,PgSelect3087,First3088,PgSelectRows3089,PgSelectSingle3090,PgClassExpression3091,PgPageInfo3093,Access3095,Object3096,Lambda3097,Object3100,Lambda3101,First3103,PgSelectSingle3105,PgCursor3107,Last3109,PgSelectSingle3111,PgCursor3113,PgSelect3115,First3117,PgSelectRows3118,PgSelectSingle3119,PgClassExpression3120,PgClassExpression3121,PgSelect3122,First3124,PgSelectRows3125,PgSelectSingle3126,PgClassExpression3127,PgClassExpression3128,PgClassExpression3129,PgClassExpression3130,PgClassExpression3131,PgClassExpression3132,PgClassExpression3133,PgClassExpression3134,PgClassExpression3135,PgClassExpression3137,PgClassExpression3138,PgClassExpression3139,PgClassExpression3141,PgClassExpression3142,PgClassExpression3143,PgClassExpression3150,PgClassExpression3157,PgClassExpression3164,PgClassExpression3171,PgClassExpression3172,PgClassExpression3173,PgClassExpression3174,PgClassExpression3175,PgClassExpression3176,PgClassExpression3183,PgClassExpression3191,PgClassExpression3192,PgSelect3193,PgFromExpression3195,First3196,PgSelectRows3197,PgSelectSingle3198,PgClassExpression3199,PgClassExpression3200,PgClassExpression3201,PgClassExpression3202,PgClassExpression3203,PgClassExpression3204,PgClassExpression3205,PgClassExpression3206,PgSelect3207,PgFromExpression3209,First3210,PgSelectRows3211,PgSelectSingle3212,PgClassExpression3213,PgSelect3214,PgFromExpression3216,First3217,PgSelectRows3218,PgSelectSingle3219,PgClassExpression3220,PgClassExpression3221,PgClassExpression3222,PgClassExpression3223,PgClassExpression3224,PgClassExpression3225,PgClassExpression3226,PgClassExpression3227,PgSelect3228,PgFromExpression3230,First3231,PgSelectRows3232,PgSelectSingle3233,PgClassExpression3234,PgClassExpression3235,PgClassExpression3236,PgClassExpression3237,PgClassExpression3238,PgClassExpression3239,PgClassExpression3240,PgClassExpression3241,PgClassExpression3242,PgSelect3243,PgFromExpression3245,First3246,PgSelectRows3247,PgSelectSingle3248,PgClassExpression3249,PgClassExpression3250,PgClassExpression3251,PgClassExpression3252,PgClassExpression3253,PgClassExpression3254,PgClassExpression3255,PgClassExpression3256,PgSelect3257,PgFromExpression3259,First3260,PgSelectRows3261,PgSelectSingle3262,PgClassExpression3263,PgSelect3264,PgFromExpression3266,First3267,PgSelectRows3268,PgSelectSingle3269,PgClassExpression3270,PgClassExpression3271,PgClassExpression3272,PgClassExpression3273,PgClassExpression3274,PgClassExpression3275,PgClassExpression3276,PgClassExpression3277,PgSelect3278,PgFromExpression3280,First3281,PgSelectRows3282,PgSelectSingle3283,PgClassExpression3284,PgClassExpression3285,PgClassExpression3286,PgClassExpression3287,PgClassExpression3288,PgClassExpression3289,PgClassExpression3290,PgClassExpression3291,PgClassExpression3292,PgClassExpression3295,PgClassExpression3298,PgClassExpression3299,PgClassExpression3300,PgClassExpression3301,PgClassExpression3302,PgClassExpression3303,PgClassExpression3304,PgClassExpression3305,PgClassExpression3306,PgClassExpression3307,PgClassExpression3308,PgClassExpression3309,PgClassExpression3311,PgClassExpression3313,PgClassExpression3314,PgSelect3316,First3318,PgSelectRows3319,PgSelectSingle3320,PgClassExpression3321,PgClassExpression3322,PgSelect3323,First3325,PgSelectRows3326,PgSelectSingle3327,PgClassExpression3328,PgClassExpression3329,PgClassExpression3330,PgClassExpression3331,Connection3336,PgSelect3338,PgSelectRows3339,PgFromExpression3412,PgFromExpression3426,PgFromExpression3433,PgFromExpression3447,PgFromExpression3462,PgFromExpression3476,PgFromExpression3483,PgFromExpression3497,PgFromExpression3554,PgFromExpression3567,PgFromExpression3574,PgFromExpression3588,PgFromExpression3602,PgFromExpression3615,PgFromExpression3622,PgFromExpression3636,PgSelect3658,First3659,PgSelectRows3660,PgSelectSingle3661,PgClassExpression3662,PgPageInfo3664,Access3666,Object3667,Lambda3668,Object3671,Lambda3672,First3674,PgSelectSingle3676,Access3677,PgCursor3678,Last3680,PgSelectSingle3682,PgCursor3684,Constant3687,Constant3688,Constant3691 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11, 88, 102, 109, 123, 138, 152, 159, 173, 230, 243, 250, 264, 278, 291, 298, 312

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 32, 33, 34, 41, 48, 55, 62, 63, 64, 65, 66, 67, 74, 82, 83, 99, 135, 149, 185, 188, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 204, 206, 207, 223, 224
2: 84, 100, 136, 150, 209, 216, 228, 241, 276, 289
3: 90, 104, 140, 154, 212, 219, 232, 245, 280, 293
ᐳ: 89, 91, 92, 93, 94, 95, 96, 97, 98, 103, 105, 106, 120, 134, 139, 141, 142, 143, 144, 145, 146, 147, 148, 153, 155, 156, 170, 184, 211, 213, 214, 215, 218, 220, 221, 222, 231, 233, 234, 235, 236, 237, 238, 239, 240, 244, 246, 247, 261, 275, 279, 281, 282, 283, 284, 285, 286, 287, 288, 292, 294, 295, 309, 323
4: 107, 121, 157, 171, 248, 262, 296, 310
5: 111, 125, 161, 175, 252, 266, 300, 314
ᐳ: 110, 112, 113, 114, 115, 116, 117, 118, 119, 124, 126, 127, 128, 129, 130, 131, 132, 133, 160, 162, 163, 164, 165, 166, 167, 168, 169, 174, 176, 177, 178, 179, 180, 181, 182, 183, 251, 253, 254, 255, 256, 257, 258, 259, 260, 265, 267, 268, 269, 270, 271, 272, 273, 274, 299, 301, 302, 303, 304, 305, 306, 307, 308, 313, 315, 316, 317, 318, 319, 320, 321, 322"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15,PgSelect424,First425,PgSelectRows426,PgSelectSingle427,PgClassExpression428,PgPageInfo430,Access433,Object434,Lambda435,Object438,Lambda439,First441,PgSelectSingle443,Access444,PgCursor445,Last447,PgSelectSingle449,PgCursor451 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 12

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression28,PgClassExpression29,PgClassExpression30,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression41,PgClassExpression48,PgClassExpression55,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgClassExpression65,PgClassExpression66,PgClassExpression67,PgClassExpression74,PgClassExpression82,PgClassExpression83,PgSelect84,First89,PgSelectRows90,PgSelectSingle91,PgClassExpression92,PgClassExpression93,PgClassExpression94,PgClassExpression95,PgClassExpression96,PgClassExpression97,PgClassExpression98,PgClassExpression99,PgSelect100,First103,PgSelectRows104,PgSelectSingle105,PgClassExpression106,PgSelect107,First110,PgSelectRows111,PgSelectSingle112,PgClassExpression113,PgClassExpression114,PgClassExpression115,PgClassExpression116,PgClassExpression117,PgClassExpression118,PgClassExpression119,PgClassExpression120,PgSelect121,First124,PgSelectRows125,PgSelectSingle126,PgClassExpression127,PgClassExpression128,PgClassExpression129,PgClassExpression130,PgClassExpression131,PgClassExpression132,PgClassExpression133,PgClassExpression134,PgClassExpression135,PgSelect136,First139,PgSelectRows140,PgSelectSingle141,PgClassExpression142,PgClassExpression143,PgClassExpression144,PgClassExpression145,PgClassExpression146,PgClassExpression147,PgClassExpression148,PgClassExpression149,PgSelect150,First153,PgSelectRows154,PgSelectSingle155,PgClassExpression156,PgSelect157,First160,PgSelectRows161,PgSelectSingle162,PgClassExpression163,PgClassExpression164,PgClassExpression165,PgClassExpression166,PgClassExpression167,PgClassExpression168,PgClassExpression169,PgClassExpression170,PgSelect171,First174,PgSelectRows175,PgSelectSingle176,PgClassExpression177,PgClassExpression178,PgClassExpression179,PgClassExpression180,PgClassExpression181,PgClassExpression182,PgClassExpression183,PgClassExpression184,PgClassExpression185,PgClassExpression188,PgClassExpression191,PgClassExpression192,PgClassExpression193,PgClassExpression194,PgClassExpression195,PgClassExpression196,PgClassExpression197,PgClassExpression198,PgClassExpression199,PgClassExpression200,PgClassExpression201,PgClassExpression202,PgClassExpression204,PgClassExpression206,PgClassExpression207,PgSelect209,First211,PgSelectRows212,PgSelectSingle213,PgClassExpression214,PgClassExpression215,PgSelect216,First218,PgSelectRows219,PgSelectSingle220,PgClassExpression221,PgClassExpression222,PgClassExpression223,PgClassExpression224,PgSelect228,First231,PgSelectRows232,PgSelectSingle233,PgClassExpression234,PgClassExpression235,PgClassExpression236,PgClassExpression237,PgClassExpression238,PgClassExpression239,PgClassExpression240,PgSelect241,First244,PgSelectRows245,PgSelectSingle246,PgClassExpression247,PgSelect248,First251,PgSelectRows252,PgSelectSingle253,PgClassExpression254,PgClassExpression255,PgClassExpression256,PgClassExpression257,PgClassExpression258,PgClassExpression259,PgClassExpression260,PgClassExpression261,PgSelect262,First265,PgSelectRows266,PgSelectSingle267,PgClassExpression268,PgClassExpression269,PgClassExpression270,PgClassExpression271,PgClassExpression272,PgClassExpression273,PgClassExpression274,PgClassExpression275,PgSelect276,First279,PgSelectRows280,PgSelectSingle281,PgClassExpression282,PgClassExpression283,PgClassExpression284,PgClassExpression285,PgClassExpression286,PgClassExpression287,PgClassExpression288,PgSelect289,First292,PgSelectRows293,PgSelectSingle294,PgClassExpression295,PgSelect296,First299,PgSelectRows300,PgSelectSingle301,PgClassExpression302,PgClassExpression303,PgClassExpression304,PgClassExpression305,PgClassExpression306,PgClassExpression307,PgClassExpression308,PgClassExpression309,PgSelect310,First313,PgSelectRows314,PgSelectSingle315,PgClassExpression316,PgClassExpression317,PgClassExpression318,PgClassExpression319,PgClassExpression320,PgClassExpression321,PgClassExpression322,PgClassExpression323 bucket1 + Bucket2("Bucket 2 (listItem)

ROOT __Item{2}ᐸ26ᐳ[27]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 12

ROOT PgSelectSingle{2}ᐸtypesᐳ[17]
1:
ᐳ: 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 32, 33, 34, 41, 48, 55, 62, 63, 64, 65, 66, 67, 74, 82, 83, 98, 131, 144, 179, 182, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 198, 200, 201, 217, 218, 42, 45, 49, 52, 56, 59
2: 84, 99, 132, 145, 203, 210
3: 89, 102, 135, 148, 206, 213
ᐳ: 88, 90, 91, 92, 93, 94, 95, 96, 97, 101, 103, 104, 117, 130, 134, 136, 147, 149, 205, 207, 212, 214
4: PgSelect[105], PgSelect[118]
5: PgSelectRows[108], PgSelectRows[121]
ᐳ: 107, 109, 120, 122"):::bucket + class Bucket2,__Item27 bucket2 + Bucket3("Bucket 3 (listItem)

ROOT __Item{3}ᐸ30ᐳ[31]"):::bucket classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgClassExpression20,PgClassExpression21,PgClassExpression22,PgClassExpression23,PgClassExpression24,PgClassExpression25,PgClassExpression26,PgClassExpression28,PgClassExpression29,PgClassExpression30,PgClassExpression32,PgClassExpression33,PgClassExpression34,PgClassExpression41,Access42,Access45,PgClassExpression48,Access49,Access52,PgClassExpression55,Access56,Access59,PgClassExpression62,PgClassExpression63,PgClassExpression64,PgClassExpression65,PgClassExpression66,PgClassExpression67,PgClassExpression74,PgClassExpression82,PgClassExpression83,PgSelect84,First88,PgSelectRows89,PgSelectSingle90,PgClassExpression91,PgClassExpression92,PgClassExpression93,PgClassExpression94,PgClassExpression95,PgClassExpression96,PgClassExpression97,PgClassExpression98,PgSelect99,First101,PgSelectRows102,PgSelectSingle103,PgClassExpression104,PgSelect105,First107,PgSelectRows108,PgSelectSingle109,PgClassExpression117,PgSelect118,First120,PgSelectRows121,PgSelectSingle122,PgClassExpression130,PgClassExpression131,PgSelect132,First134,PgSelectRows135,PgSelectSingle136,PgClassExpression144,PgSelect145,First147,PgSelectRows148,PgSelectSingle149,PgClassExpression179,PgClassExpression182,PgClassExpression185,PgClassExpression186,PgClassExpression187,PgClassExpression188,PgClassExpression189,PgClassExpression190,PgClassExpression191,PgClassExpression192,PgClassExpression193,PgClassExpression194,PgClassExpression195,PgClassExpression196,PgClassExpression198,PgClassExpression200,PgClassExpression201,PgSelect203,First205,PgSelectRows206,PgSelectSingle207,PgSelect210,First212,PgSelectRows213,PgSelectSingle214,PgClassExpression217,PgClassExpression218 bucket3 - Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ26ᐳ[27]"):::bucket + class Bucket3,__Item31 bucket3 + Bucket4("Bucket 4 (listItem)

ROOT __Item{4}ᐸ74ᐳ[75]"):::bucket classDef bucket4 stroke:#0000ff - class Bucket4,__Item27 bucket4 - Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ30ᐳ[31]"):::bucket + class Bucket4,__Item75 bucket4 + Bucket5("Bucket 5 (listItem)

ROOT __Item{5}ᐸ202ᐳ[203]"):::bucket classDef bucket5 stroke:#7fff00 - class Bucket5,__Item31 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 34

ROOT PgClassExpression{3}ᐸ__types__....ble_range”ᐳ[34]"):::bucket + class Bucket5,__Item203 bucket5 + Bucket6("Bucket 6 (listItem)

ROOT __Item{6}ᐸ204ᐳ[205]"):::bucket classDef bucket6 stroke:#ff1493 - class Bucket6,Access35,Access38 bucket6 - Bucket7("Bucket 7 (nullableBoundary)
Deps: 35, 34

ROOT Access{6}ᐸ34.startᐳ[35]"):::bucket + class Bucket6,__Item205 bucket6 + Bucket7("Bucket 7 (listItem)

ROOT __Item{7}ᐸ207ᐳ[208]"):::bucket classDef bucket7 stroke:#808000 - class Bucket7 bucket7 - Bucket8("Bucket 8 (nullableBoundary)
Deps: 38, 34

ROOT Access{6}ᐸ34.endᐳ[38]"):::bucket + class Bucket7,__Item208 bucket7 + Bucket8("Bucket 8 (listItem)

ROOT __Item{8}ᐸ224ᐳ[225]"):::bucket classDef bucket8 stroke:#dda0dd - class Bucket8 bucket8 - Bucket9("Bucket 9 (nullableBoundary)
Deps: 42, 41

ROOT Access{3}ᐸ41.startᐳ[42]"):::bucket + class Bucket8,__Item225 bucket8 + Bucket9("Bucket 9 (listItem)
Deps: 11, 436, 450, 457, 471, 486, 500, 507, 521

ROOT __Item{9}ᐸ363ᐳ[364]
1:
ᐳ: 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 376, 377, 378, 380, 381, 382, 389, 396, 403, 410, 411, 412, 413, 414, 415, 422, 430, 431, 447, 483, 497, 533, 536, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 552, 554, 555, 571, 572
2: 432, 448, 484, 498, 557, 564
3: 438, 452, 488, 502, 560, 567
ᐳ: 437, 439, 440, 441, 442, 443, 444, 445, 446, 451, 453, 454, 468, 482, 487, 489, 490, 491, 492, 493, 494, 495, 496, 501, 503, 504, 518, 532, 559, 561, 562, 563, 566, 568, 569, 570
4: 455, 469, 505, 519
5: 459, 473, 509, 523
ᐳ: 458, 460, 461, 462, 463, 464, 465, 466, 467, 472, 474, 475, 476, 477, 478, 479, 480, 481, 508, 510, 511, 512, 513, 514, 515, 516, 517, 522, 524, 525, 526, 527, 528, 529, 530, 531"):::bucket classDef bucket9 stroke:#ff0000 - class Bucket9 bucket9 - Bucket10("Bucket 10 (nullableBoundary)
Deps: 45, 41

ROOT Access{3}ᐸ41.endᐳ[45]"):::bucket + class Bucket9,__Item364,PgSelectSingle365,PgClassExpression366,PgClassExpression367,PgClassExpression368,PgClassExpression369,PgClassExpression370,PgClassExpression371,PgClassExpression372,PgClassExpression373,PgClassExpression374,PgClassExpression376,PgClassExpression377,PgClassExpression378,PgClassExpression380,PgClassExpression381,PgClassExpression382,PgClassExpression389,PgClassExpression396,PgClassExpression403,PgClassExpression410,PgClassExpression411,PgClassExpression412,PgClassExpression413,PgClassExpression414,PgClassExpression415,PgClassExpression422,PgClassExpression430,PgClassExpression431,PgSelect432,First437,PgSelectRows438,PgSelectSingle439,PgClassExpression440,PgClassExpression441,PgClassExpression442,PgClassExpression443,PgClassExpression444,PgClassExpression445,PgClassExpression446,PgClassExpression447,PgSelect448,First451,PgSelectRows452,PgSelectSingle453,PgClassExpression454,PgSelect455,First458,PgSelectRows459,PgSelectSingle460,PgClassExpression461,PgClassExpression462,PgClassExpression463,PgClassExpression464,PgClassExpression465,PgClassExpression466,PgClassExpression467,PgClassExpression468,PgSelect469,First472,PgSelectRows473,PgSelectSingle474,PgClassExpression475,PgClassExpression476,PgClassExpression477,PgClassExpression478,PgClassExpression479,PgClassExpression480,PgClassExpression481,PgClassExpression482,PgClassExpression483,PgSelect484,First487,PgSelectRows488,PgSelectSingle489,PgClassExpression490,PgClassExpression491,PgClassExpression492,PgClassExpression493,PgClassExpression494,PgClassExpression495,PgClassExpression496,PgClassExpression497,PgSelect498,First501,PgSelectRows502,PgSelectSingle503,PgClassExpression504,PgSelect505,First508,PgSelectRows509,PgSelectSingle510,PgClassExpression511,PgClassExpression512,PgClassExpression513,PgClassExpression514,PgClassExpression515,PgClassExpression516,PgClassExpression517,PgClassExpression518,PgSelect519,First522,PgSelectRows523,PgSelectSingle524,PgClassExpression525,PgClassExpression526,PgClassExpression527,PgClassExpression528,PgClassExpression529,PgClassExpression530,PgClassExpression531,PgClassExpression532,PgClassExpression533,PgClassExpression536,PgClassExpression539,PgClassExpression540,PgClassExpression541,PgClassExpression542,PgClassExpression543,PgClassExpression544,PgClassExpression545,PgClassExpression546,PgClassExpression547,PgClassExpression548,PgClassExpression549,PgClassExpression550,PgClassExpression552,PgClassExpression554,PgClassExpression555,PgSelect557,First559,PgSelectRows560,PgSelectSingle561,PgClassExpression562,PgClassExpression563,PgSelect564,First566,PgSelectRows567,PgSelectSingle568,PgClassExpression569,PgClassExpression570,PgClassExpression571,PgClassExpression572 bucket9 + Bucket10("Bucket 10 (listItem)

ROOT __Item{10}ᐸ374ᐳ[375]"):::bucket classDef bucket10 stroke:#ffff00 - class Bucket10 bucket10 - Bucket11("Bucket 11 (nullableBoundary)
Deps: 49, 48

ROOT Access{3}ᐸ48.startᐳ[49]"):::bucket + class Bucket10,__Item375 bucket10 + Bucket11("Bucket 11 (listItem)

ROOT __Item{11}ᐸ378ᐳ[379]"):::bucket classDef bucket11 stroke:#00ffff - class Bucket11 bucket11 - Bucket12("Bucket 12 (nullableBoundary)
Deps: 52, 48

ROOT Access{3}ᐸ48.endᐳ[52]"):::bucket + class Bucket11,__Item379 bucket11 + Bucket12("Bucket 12 (listItem)

ROOT __Item{12}ᐸ422ᐳ[423]"):::bucket classDef bucket12 stroke:#4169e1 - class Bucket12 bucket12 - Bucket13("Bucket 13 (nullableBoundary)
Deps: 56, 55

ROOT Access{3}ᐸ55.startᐳ[56]"):::bucket + class Bucket12,__Item423 bucket12 + Bucket13("Bucket 13 (listItem)

ROOT __Item{13}ᐸ550ᐳ[551]"):::bucket classDef bucket13 stroke:#3cb371 - class Bucket13 bucket13 - Bucket14("Bucket 14 (nullableBoundary)
Deps: 59, 55

ROOT Access{3}ᐸ55.endᐳ[59]"):::bucket + class Bucket13,__Item551 bucket13 + Bucket14("Bucket 14 (listItem)

ROOT __Item{14}ᐸ552ᐳ[553]"):::bucket classDef bucket14 stroke:#a52a2a - class Bucket14 bucket14 - Bucket15("Bucket 15 (listItem)

ROOT __Item{15}ᐸ74ᐳ[75]"):::bucket + class Bucket14,__Item553 bucket14 + Bucket15("Bucket 15 (listItem)

ROOT __Item{15}ᐸ555ᐳ[556]"):::bucket classDef bucket15 stroke:#ff00ff - class Bucket15,__Item75 bucket15 - Bucket16("Bucket 16 (nullableBoundary)
Deps: 75

ROOT __Item{15}ᐸ74ᐳ[75]"):::bucket + class Bucket15,__Item556 bucket15 + Bucket16("Bucket 16 (listItem)

ROOT __Item{16}ᐸ572ᐳ[573]"):::bucket classDef bucket16 stroke:#f5deb3 - class Bucket16 bucket16 - Bucket17("Bucket 17 (nullableBoundary)
Deps: 109

ROOT PgSelectSingle{3}ᐸfrmcdc_compoundTypeᐳ[109]"):::bucket + class Bucket16,__Item573 bucket16 + Bucket17("Bucket 17 (listItem)

ROOT __Item{17}ᐸ588ᐳ[589]"):::bucket classDef bucket17 stroke:#696969 - class Bucket17,PgClassExpression110,PgClassExpression111,PgClassExpression112,PgClassExpression113,PgClassExpression114,PgClassExpression115,PgClassExpression116 bucket17 - Bucket18("Bucket 18 (nullableBoundary)
Deps: 122

ROOT PgSelectSingle{3}ᐸfrmcdc_compoundTypeᐳ[122]"):::bucket + class Bucket17,__Item589 bucket17 + Bucket18("Bucket 18 (listItem)

ROOT __Item{18}ᐸ592ᐳ[593]"):::bucket classDef bucket18 stroke:#00bfff - class Bucket18,PgClassExpression123,PgClassExpression124,PgClassExpression125,PgClassExpression126,PgClassExpression127,PgClassExpression128,PgClassExpression129 bucket18 - Bucket19("Bucket 19 (nullableBoundary)
Deps: 136

ROOT PgSelectSingle{3}ᐸfrmcdc_compoundTypeᐳ[136]"):::bucket + class Bucket18,__Item593 bucket18 + Bucket19("Bucket 19 (listItem)

ROOT __Item{19}ᐸ636ᐳ[637]"):::bucket classDef bucket19 stroke:#7f007f - class Bucket19,PgClassExpression137,PgClassExpression138,PgClassExpression139,PgClassExpression140,PgClassExpression141,PgClassExpression142,PgClassExpression143 bucket19 - Bucket20("Bucket 20 (nullableBoundary)
Deps: 149, 12

ROOT PgSelectSingle{3}ᐸfrmcdc_nestedCompoundTypeᐳ[149]
1:
ᐳ: 150, 165, 178
2: PgSelect[151], PgSelect[166]
3: PgSelectRows[156], PgSelectRows[169]
ᐳ: 155, 157, 168, 170"):::bucket + class Bucket19,__Item637 bucket19 + Bucket20("Bucket 20 (listItem)

ROOT __Item{20}ᐸ762ᐳ[763]"):::bucket classDef bucket20 stroke:#ffa500 - class Bucket20,PgClassExpression150,PgSelect151,First155,PgSelectRows156,PgSelectSingle157,PgClassExpression165,PgSelect166,First168,PgSelectRows169,PgSelectSingle170,PgClassExpression178 bucket20 - Bucket21("Bucket 21 (nullableBoundary)
Deps: 157

ROOT PgSelectSingle{20}ᐸfrmcdc_compoundTypeᐳ[157]"):::bucket + class Bucket20,__Item763 bucket20 + Bucket21("Bucket 21 (listItem)

ROOT __Item{21}ᐸ764ᐳ[765]"):::bucket classDef bucket21 stroke:#0000ff - class Bucket21,PgClassExpression158,PgClassExpression159,PgClassExpression160,PgClassExpression161,PgClassExpression162,PgClassExpression163,PgClassExpression164 bucket21 - Bucket22("Bucket 22 (nullableBoundary)
Deps: 170

ROOT PgSelectSingle{20}ᐸfrmcdc_compoundTypeᐳ[170]"):::bucket + class Bucket21,__Item765 bucket21 + Bucket22("Bucket 22 (listItem)

ROOT __Item{22}ᐸ767ᐳ[768]"):::bucket classDef bucket22 stroke:#7fff00 - class Bucket22,PgClassExpression171,PgClassExpression172,PgClassExpression173,PgClassExpression174,PgClassExpression175,PgClassExpression176,PgClassExpression177 bucket22 - Bucket23("Bucket 23 (nullableBoundary)
Deps: 182

ROOT PgClassExpression{3}ᐸ__types__....ablePoint”ᐳ[182]"):::bucket + class Bucket22,__Item768 bucket22 + Bucket23("Bucket 23 (listItem)

ROOT __Item{23}ᐸ784ᐳ[785]"):::bucket classDef bucket23 stroke:#ff1493 - class Bucket23 bucket23 - Bucket24("Bucket 24 (listItem)

ROOT __Item{24}ᐸ196ᐳ[197]"):::bucket + class Bucket23,__Item785 bucket23 + Bucket24("Bucket 24 (listItem)

ROOT __Item{24}ᐸ803ᐳ[804]"):::bucket classDef bucket24 stroke:#808000 - class Bucket24,__Item197 bucket24 - Bucket25("Bucket 25 (listItem)

ROOT __Item{25}ᐸ198ᐳ[199]"):::bucket + class Bucket24,__Item804 bucket24 + Bucket25("Bucket 25 (listItem)

ROOT __Item{25}ᐸ807ᐳ[808]"):::bucket classDef bucket25 stroke:#dda0dd - class Bucket25,__Item199 bucket25 - Bucket26("Bucket 26 (listItem)

ROOT __Item{26}ᐸ201ᐳ[202]"):::bucket + class Bucket25,__Item808 bucket25 + Bucket26("Bucket 26 (listItem)

ROOT __Item{26}ᐸ851ᐳ[852]"):::bucket classDef bucket26 stroke:#ff0000 - class Bucket26,__Item202 bucket26 - Bucket27("Bucket 27 (nullableBoundary)
Deps: 207

ROOT PgSelectSingle{3}ᐸpostᐳ[207]"):::bucket + class Bucket26,__Item852 bucket26 + Bucket27("Bucket 27 (listItem)

ROOT __Item{27}ᐸ977ᐳ[978]"):::bucket classDef bucket27 stroke:#ffff00 - class Bucket27,PgClassExpression208,PgClassExpression209 bucket27 - Bucket28("Bucket 28 (nullableBoundary)
Deps: 214

ROOT PgSelectSingle{3}ᐸpostᐳ[214]"):::bucket + class Bucket27,__Item978 bucket27 + Bucket28("Bucket 28 (listItem)

ROOT __Item{28}ᐸ979ᐳ[980]"):::bucket classDef bucket28 stroke:#00ffff - class Bucket28,PgClassExpression215,PgClassExpression216 bucket28 - Bucket29("Bucket 29 (listItem)

ROOT __Item{29}ᐸ218ᐳ[219]"):::bucket + class Bucket28,__Item980 bucket28 + Bucket29("Bucket 29 (listItem)

ROOT __Item{29}ᐸ982ᐳ[983]"):::bucket classDef bucket29 stroke:#4169e1 - class Bucket29,__Item219 bucket29 - Bucket30("Bucket 30 (nullableBoundary)
Deps: 17, 12

ROOT PgSelectSingle{2}ᐸtypesᐳ[17]
1:
ᐳ: 222, 223, 224, 225, 226, 227, 228, 229, 230, 232, 233, 234, 236, 237, 238, 245, 252, 259, 266, 267, 268, 269, 270, 271, 278, 286, 287, 302, 335, 348, 383, 386, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 402, 404, 405, 421, 422, 246, 249, 253, 256, 260, 263
2: 288, 303, 336, 349, 407, 414
3: 293, 306, 339, 352, 410, 417
ᐳ: 292, 294, 295, 296, 297, 298, 299, 300, 301, 305, 307, 308, 321, 334, 338, 340, 351, 353, 409, 411, 416, 418
4: PgSelect[309], PgSelect[322]
5: PgSelectRows[312], PgSelectRows[325]
ᐳ: 311, 313, 324, 326"):::bucket + class Bucket29,__Item983 bucket29 + Bucket30("Bucket 30 (listItem)

ROOT __Item{30}ᐸ999ᐳ[1000]"):::bucket classDef bucket30 stroke:#3cb371 - class Bucket30,PgClassExpression222,PgClassExpression223,PgClassExpression224,PgClassExpression225,PgClassExpression226,PgClassExpression227,PgClassExpression228,PgClassExpression229,PgClassExpression230,PgClassExpression232,PgClassExpression233,PgClassExpression234,PgClassExpression236,PgClassExpression237,PgClassExpression238,PgClassExpression245,Access246,Access249,PgClassExpression252,Access253,Access256,PgClassExpression259,Access260,Access263,PgClassExpression266,PgClassExpression267,PgClassExpression268,PgClassExpression269,PgClassExpression270,PgClassExpression271,PgClassExpression278,PgClassExpression286,PgClassExpression287,PgSelect288,First292,PgSelectRows293,PgSelectSingle294,PgClassExpression295,PgClassExpression296,PgClassExpression297,PgClassExpression298,PgClassExpression299,PgClassExpression300,PgClassExpression301,PgClassExpression302,PgSelect303,First305,PgSelectRows306,PgSelectSingle307,PgClassExpression308,PgSelect309,First311,PgSelectRows312,PgSelectSingle313,PgClassExpression321,PgSelect322,First324,PgSelectRows325,PgSelectSingle326,PgClassExpression334,PgClassExpression335,PgSelect336,First338,PgSelectRows339,PgSelectSingle340,PgClassExpression348,PgSelect349,First351,PgSelectRows352,PgSelectSingle353,PgClassExpression383,PgClassExpression386,PgClassExpression389,PgClassExpression390,PgClassExpression391,PgClassExpression392,PgClassExpression393,PgClassExpression394,PgClassExpression395,PgClassExpression396,PgClassExpression397,PgClassExpression398,PgClassExpression399,PgClassExpression400,PgClassExpression402,PgClassExpression404,PgClassExpression405,PgSelect407,First409,PgSelectRows410,PgSelectSingle411,PgSelect414,First416,PgSelectRows417,PgSelectSingle418,PgClassExpression421,PgClassExpression422 bucket30 - Bucket31("Bucket 31 (listItem)

ROOT __Item{31}ᐸ230ᐳ[231]"):::bucket + class Bucket30,__Item1000 bucket30 + Bucket31("Bucket 31 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 11, 1003, 1002, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: Access[3689], Access[3690]
2: 1008, 1016, 1022, 1028, 1034, 1040, 1048, 1054, 1060, 1066, 1278, 1284, 1290, 1296, 1302, 1308, 1314, 1320, 1326
3: 1013, 1019, 1025, 1031, 1037, 1043, 1051, 1057, 1063, 1069, 1281, 1287, 1293, 1299, 1305, 1311, 1317, 1323, 1329
ᐳ: 1012, 1014, 1018, 1020, 1024, 1026, 1030, 1032, 1036, 1038, 1042, 1044, 1050, 1052, 1056, 1058, 1062, 1064, 1068, 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1081, 1082, 1083, 1085, 1086, 1087, 1094, 1101, 1108, 1115, 1116, 1117, 1118, 1119, 1120, 1127, 1135, 1136, 1139, 1150, 1153, 1186, 1189, 1200, 1203, 1236, 1239, 1242, 1243, 1244, 1245, 1246, 1247, 1248, 1249, 1250, 1251, 1252, 1253, 1255, 1257, 1258, 1274, 1275, 1280, 1282, 1286, 1288, 1292, 1294, 1298, 1300, 1304, 1306, 1310, 1312, 1316, 1318, 1322, 1324, 1328, 1330
4: 1137, 1151, 1187, 1201, 1260, 1267
5: 1141, 1155, 1191, 1205, 1263, 1270
ᐳ: 1140, 1142, 1143, 1144, 1145, 1146, 1147, 1148, 1149, 1154, 1156, 1157, 1160, 1171, 1174, 1185, 1190, 1192, 1193, 1194, 1195, 1196, 1197, 1198, 1199, 1204, 1206, 1207, 1210, 1221, 1224, 1235, 1262, 1264, 1265, 1266, 1269, 1271, 1272, 1273
6: 1158, 1172, 1208, 1222
7: 1162, 1176, 1212, 1226
ᐳ: 1161, 1163, 1164, 1165, 1166, 1167, 1168, 1169, 1170, 1175, 1177, 1178, 1179, 1180, 1181, 1182, 1183, 1184, 1211, 1213, 1214, 1215, 1216, 1217, 1218, 1219, 1220, 1225, 1227, 1228, 1229, 1230, 1231, 1232, 1233, 1234"):::bucket classDef bucket31 stroke:#a52a2a - class Bucket31,__Item231 bucket31 - Bucket32("Bucket 32 (listItem)

ROOT __Item{32}ᐸ234ᐳ[235]"):::bucket + class Bucket31,PgSelect1008,First1012,PgSelectRows1013,PgSelectSingle1014,PgSelect1016,First1018,PgSelectRows1019,PgSelectSingle1020,PgSelect1022,First1024,PgSelectRows1025,PgSelectSingle1026,PgSelect1028,First1030,PgSelectRows1031,PgSelectSingle1032,PgSelect1034,First1036,PgSelectRows1037,PgSelectSingle1038,PgSelect1040,First1042,PgSelectRows1043,PgSelectSingle1044,PgSelect1048,First1050,PgSelectRows1051,PgSelectSingle1052,PgSelect1054,First1056,PgSelectRows1057,PgSelectSingle1058,PgSelect1060,First1062,PgSelectRows1063,PgSelectSingle1064,PgSelect1066,First1068,PgSelectRows1069,PgSelectSingle1070,PgClassExpression1071,PgClassExpression1072,PgClassExpression1073,PgClassExpression1074,PgClassExpression1075,PgClassExpression1076,PgClassExpression1077,PgClassExpression1078,PgClassExpression1079,PgClassExpression1081,PgClassExpression1082,PgClassExpression1083,PgClassExpression1085,PgClassExpression1086,PgClassExpression1087,PgClassExpression1094,PgClassExpression1101,PgClassExpression1108,PgClassExpression1115,PgClassExpression1116,PgClassExpression1117,PgClassExpression1118,PgClassExpression1119,PgClassExpression1120,PgClassExpression1127,PgClassExpression1135,PgClassExpression1136,PgSelect1137,PgFromExpression1139,First1140,PgSelectRows1141,PgSelectSingle1142,PgClassExpression1143,PgClassExpression1144,PgClassExpression1145,PgClassExpression1146,PgClassExpression1147,PgClassExpression1148,PgClassExpression1149,PgClassExpression1150,PgSelect1151,PgFromExpression1153,First1154,PgSelectRows1155,PgSelectSingle1156,PgClassExpression1157,PgSelect1158,PgFromExpression1160,First1161,PgSelectRows1162,PgSelectSingle1163,PgClassExpression1164,PgClassExpression1165,PgClassExpression1166,PgClassExpression1167,PgClassExpression1168,PgClassExpression1169,PgClassExpression1170,PgClassExpression1171,PgSelect1172,PgFromExpression1174,First1175,PgSelectRows1176,PgSelectSingle1177,PgClassExpression1178,PgClassExpression1179,PgClassExpression1180,PgClassExpression1181,PgClassExpression1182,PgClassExpression1183,PgClassExpression1184,PgClassExpression1185,PgClassExpression1186,PgSelect1187,PgFromExpression1189,First1190,PgSelectRows1191,PgSelectSingle1192,PgClassExpression1193,PgClassExpression1194,PgClassExpression1195,PgClassExpression1196,PgClassExpression1197,PgClassExpression1198,PgClassExpression1199,PgClassExpression1200,PgSelect1201,PgFromExpression1203,First1204,PgSelectRows1205,PgSelectSingle1206,PgClassExpression1207,PgSelect1208,PgFromExpression1210,First1211,PgSelectRows1212,PgSelectSingle1213,PgClassExpression1214,PgClassExpression1215,PgClassExpression1216,PgClassExpression1217,PgClassExpression1218,PgClassExpression1219,PgClassExpression1220,PgClassExpression1221,PgSelect1222,PgFromExpression1224,First1225,PgSelectRows1226,PgSelectSingle1227,PgClassExpression1228,PgClassExpression1229,PgClassExpression1230,PgClassExpression1231,PgClassExpression1232,PgClassExpression1233,PgClassExpression1234,PgClassExpression1235,PgClassExpression1236,PgClassExpression1239,PgClassExpression1242,PgClassExpression1243,PgClassExpression1244,PgClassExpression1245,PgClassExpression1246,PgClassExpression1247,PgClassExpression1248,PgClassExpression1249,PgClassExpression1250,PgClassExpression1251,PgClassExpression1252,PgClassExpression1253,PgClassExpression1255,PgClassExpression1257,PgClassExpression1258,PgSelect1260,First1262,PgSelectRows1263,PgSelectSingle1264,PgClassExpression1265,PgClassExpression1266,PgSelect1267,First1269,PgSelectRows1270,PgSelectSingle1271,PgClassExpression1272,PgClassExpression1273,PgClassExpression1274,PgClassExpression1275,PgSelect1278,First1280,PgSelectRows1281,PgSelectSingle1282,PgSelect1284,First1286,PgSelectRows1287,PgSelectSingle1288,PgSelect1290,First1292,PgSelectRows1293,PgSelectSingle1294,PgSelect1296,First1298,PgSelectRows1299,PgSelectSingle1300,PgSelect1302,First1304,PgSelectRows1305,PgSelectSingle1306,PgSelect1308,First1310,PgSelectRows1311,PgSelectSingle1312,PgSelect1314,First1316,PgSelectRows1317,PgSelectSingle1318,PgSelect1320,First1322,PgSelectRows1323,PgSelectSingle1324,PgSelect1326,First1328,PgSelectRows1329,PgSelectSingle1330,Access3689,Access3690 bucket31 + Bucket32("Bucket 32 (listItem)

ROOT __Item{32}ᐸ1079ᐳ[1080]"):::bucket classDef bucket32 stroke:#ff00ff - class Bucket32,__Item235 bucket32 - Bucket33("Bucket 33 (nullableBoundary)
Deps: 238

ROOT PgClassExpression{30}ᐸ__types__....ble_range”ᐳ[238]"):::bucket + class Bucket32,__Item1080 bucket32 + Bucket33("Bucket 33 (listItem)

ROOT __Item{33}ᐸ1083ᐳ[1084]"):::bucket classDef bucket33 stroke:#f5deb3 - class Bucket33,Access239,Access242 bucket33 - Bucket34("Bucket 34 (nullableBoundary)
Deps: 239, 238

ROOT Access{33}ᐸ238.startᐳ[239]"):::bucket + class Bucket33,__Item1084 bucket33 + Bucket34("Bucket 34 (listItem)

ROOT __Item{34}ᐸ1127ᐳ[1128]"):::bucket classDef bucket34 stroke:#696969 - class Bucket34 bucket34 - Bucket35("Bucket 35 (nullableBoundary)
Deps: 242, 238

ROOT Access{33}ᐸ238.endᐳ[242]"):::bucket + class Bucket34,__Item1128 bucket34 + Bucket35("Bucket 35 (listItem)

ROOT __Item{35}ᐸ1253ᐳ[1254]"):::bucket classDef bucket35 stroke:#00bfff - class Bucket35 bucket35 - Bucket36("Bucket 36 (nullableBoundary)
Deps: 246, 245

ROOT Access{30}ᐸ245.startᐳ[246]"):::bucket + class Bucket35,__Item1254 bucket35 + Bucket36("Bucket 36 (listItem)

ROOT __Item{36}ᐸ1255ᐳ[1256]"):::bucket classDef bucket36 stroke:#7f007f - class Bucket36 bucket36 - Bucket37("Bucket 37 (nullableBoundary)
Deps: 249, 245

ROOT Access{30}ᐸ245.endᐳ[249]"):::bucket + class Bucket36,__Item1256 bucket36 + Bucket37("Bucket 37 (listItem)

ROOT __Item{37}ᐸ1258ᐳ[1259]"):::bucket classDef bucket37 stroke:#ffa500 - class Bucket37 bucket37 - Bucket38("Bucket 38 (nullableBoundary)
Deps: 253, 252

ROOT Access{30}ᐸ252.startᐳ[253]"):::bucket + class Bucket37,__Item1259 bucket37 + Bucket38("Bucket 38 (listItem)

ROOT __Item{38}ᐸ1275ᐳ[1276]"):::bucket classDef bucket38 stroke:#0000ff - class Bucket38 bucket38 - Bucket39("Bucket 39 (nullableBoundary)
Deps: 256, 252

ROOT Access{30}ᐸ252.endᐳ[256]"):::bucket + class Bucket38,__Item1276 bucket38 + Bucket39("Bucket 39 (listItem)

ROOT __Item{39}ᐸ1346ᐳ[1347]"):::bucket classDef bucket39 stroke:#7fff00 - class Bucket39 bucket39 - Bucket40("Bucket 40 (nullableBoundary)
Deps: 260, 259

ROOT Access{30}ᐸ259.startᐳ[260]"):::bucket + class Bucket39,__Item1347 bucket39 + Bucket40("Bucket 40 (listItem)

ROOT __Item{40}ᐸ1350ᐳ[1351]"):::bucket classDef bucket40 stroke:#ff1493 - class Bucket40 bucket40 - Bucket41("Bucket 41 (nullableBoundary)
Deps: 263, 259

ROOT Access{30}ᐸ259.endᐳ[263]"):::bucket + class Bucket40,__Item1351 bucket40 + Bucket41("Bucket 41 (listItem)

ROOT __Item{41}ᐸ1394ᐳ[1395]"):::bucket classDef bucket41 stroke:#808000 - class Bucket41 bucket41 - Bucket42("Bucket 42 (listItem)

ROOT __Item{42}ᐸ278ᐳ[279]"):::bucket + class Bucket41,__Item1395 bucket41 + Bucket42("Bucket 42 (listItem)

ROOT __Item{42}ᐸ1520ᐳ[1521]"):::bucket classDef bucket42 stroke:#dda0dd - class Bucket42,__Item279 bucket42 - Bucket43("Bucket 43 (nullableBoundary)
Deps: 279

ROOT __Item{42}ᐸ278ᐳ[279]"):::bucket + class Bucket42,__Item1521 bucket42 + Bucket43("Bucket 43 (listItem)

ROOT __Item{43}ᐸ1522ᐳ[1523]"):::bucket classDef bucket43 stroke:#ff0000 - class Bucket43 bucket43 - Bucket44("Bucket 44 (nullableBoundary)
Deps: 313

ROOT PgSelectSingle{30}ᐸfrmcdc_compoundTypeᐳ[313]"):::bucket + class Bucket43,__Item1523 bucket43 + Bucket44("Bucket 44 (listItem)

ROOT __Item{44}ᐸ1525ᐳ[1526]"):::bucket classDef bucket44 stroke:#ffff00 - class Bucket44,PgClassExpression314,PgClassExpression315,PgClassExpression316,PgClassExpression317,PgClassExpression318,PgClassExpression319,PgClassExpression320 bucket44 - Bucket45("Bucket 45 (nullableBoundary)
Deps: 326

ROOT PgSelectSingle{30}ᐸfrmcdc_compoundTypeᐳ[326]"):::bucket + class Bucket44,__Item1526 bucket44 + Bucket45("Bucket 45 (listItem)

ROOT __Item{45}ᐸ1542ᐳ[1543]"):::bucket classDef bucket45 stroke:#00ffff - class Bucket45,PgClassExpression327,PgClassExpression328,PgClassExpression329,PgClassExpression330,PgClassExpression331,PgClassExpression332,PgClassExpression333 bucket45 - Bucket46("Bucket 46 (nullableBoundary)
Deps: 340

ROOT PgSelectSingle{30}ᐸfrmcdc_compoundTypeᐳ[340]"):::bucket + class Bucket45,__Item1543 bucket45 + Bucket46("Bucket 46 (listItem)
Deps: 11, 1619, 1633, 1640, 1654, 1669, 1683, 1690, 1704

ROOT __Item{46}ᐸ1546ᐳ[1547]
1:
ᐳ: 1548, 1549, 1550, 1551, 1552, 1553, 1554, 1555, 1556, 1557, 1559, 1560, 1561, 1563, 1564, 1565, 1572, 1579, 1586, 1593, 1594, 1595, 1596, 1597, 1598, 1605, 1613, 1614, 1630, 1666, 1680, 1716, 1719, 1722, 1723, 1724, 1725, 1726, 1727, 1728, 1729, 1730, 1731, 1732, 1733, 1735, 1737, 1738, 1754, 1755
2: 1615, 1631, 1667, 1681, 1740, 1747
3: 1621, 1635, 1671, 1685, 1743, 1750
ᐳ: 1620, 1622, 1623, 1624, 1625, 1626, 1627, 1628, 1629, 1634, 1636, 1637, 1651, 1665, 1670, 1672, 1673, 1674, 1675, 1676, 1677, 1678, 1679, 1684, 1686, 1687, 1701, 1715, 1742, 1744, 1745, 1746, 1749, 1751, 1752, 1753
4: 1638, 1652, 1688, 1702
5: 1642, 1656, 1692, 1706
ᐳ: 1641, 1643, 1644, 1645, 1646, 1647, 1648, 1649, 1650, 1655, 1657, 1658, 1659, 1660, 1661, 1662, 1663, 1664, 1691, 1693, 1694, 1695, 1696, 1697, 1698, 1699, 1700, 1705, 1707, 1708, 1709, 1710, 1711, 1712, 1713, 1714"):::bucket classDef bucket46 stroke:#4169e1 - class Bucket46,PgClassExpression341,PgClassExpression342,PgClassExpression343,PgClassExpression344,PgClassExpression345,PgClassExpression346,PgClassExpression347 bucket46 - Bucket47("Bucket 47 (nullableBoundary)
Deps: 353, 12

ROOT PgSelectSingle{30}ᐸfrmcdc_nestedCompoundTypeᐳ[353]
1:
ᐳ: 354, 369, 382
2: PgSelect[355], PgSelect[370]
3: PgSelectRows[360], PgSelectRows[373]
ᐳ: 359, 361, 372, 374"):::bucket + class Bucket46,__Item1547,PgSelectSingle1548,PgClassExpression1549,PgClassExpression1550,PgClassExpression1551,PgClassExpression1552,PgClassExpression1553,PgClassExpression1554,PgClassExpression1555,PgClassExpression1556,PgClassExpression1557,PgClassExpression1559,PgClassExpression1560,PgClassExpression1561,PgClassExpression1563,PgClassExpression1564,PgClassExpression1565,PgClassExpression1572,PgClassExpression1579,PgClassExpression1586,PgClassExpression1593,PgClassExpression1594,PgClassExpression1595,PgClassExpression1596,PgClassExpression1597,PgClassExpression1598,PgClassExpression1605,PgClassExpression1613,PgClassExpression1614,PgSelect1615,First1620,PgSelectRows1621,PgSelectSingle1622,PgClassExpression1623,PgClassExpression1624,PgClassExpression1625,PgClassExpression1626,PgClassExpression1627,PgClassExpression1628,PgClassExpression1629,PgClassExpression1630,PgSelect1631,First1634,PgSelectRows1635,PgSelectSingle1636,PgClassExpression1637,PgSelect1638,First1641,PgSelectRows1642,PgSelectSingle1643,PgClassExpression1644,PgClassExpression1645,PgClassExpression1646,PgClassExpression1647,PgClassExpression1648,PgClassExpression1649,PgClassExpression1650,PgClassExpression1651,PgSelect1652,First1655,PgSelectRows1656,PgSelectSingle1657,PgClassExpression1658,PgClassExpression1659,PgClassExpression1660,PgClassExpression1661,PgClassExpression1662,PgClassExpression1663,PgClassExpression1664,PgClassExpression1665,PgClassExpression1666,PgSelect1667,First1670,PgSelectRows1671,PgSelectSingle1672,PgClassExpression1673,PgClassExpression1674,PgClassExpression1675,PgClassExpression1676,PgClassExpression1677,PgClassExpression1678,PgClassExpression1679,PgClassExpression1680,PgSelect1681,First1684,PgSelectRows1685,PgSelectSingle1686,PgClassExpression1687,PgSelect1688,First1691,PgSelectRows1692,PgSelectSingle1693,PgClassExpression1694,PgClassExpression1695,PgClassExpression1696,PgClassExpression1697,PgClassExpression1698,PgClassExpression1699,PgClassExpression1700,PgClassExpression1701,PgSelect1702,First1705,PgSelectRows1706,PgSelectSingle1707,PgClassExpression1708,PgClassExpression1709,PgClassExpression1710,PgClassExpression1711,PgClassExpression1712,PgClassExpression1713,PgClassExpression1714,PgClassExpression1715,PgClassExpression1716,PgClassExpression1719,PgClassExpression1722,PgClassExpression1723,PgClassExpression1724,PgClassExpression1725,PgClassExpression1726,PgClassExpression1727,PgClassExpression1728,PgClassExpression1729,PgClassExpression1730,PgClassExpression1731,PgClassExpression1732,PgClassExpression1733,PgClassExpression1735,PgClassExpression1737,PgClassExpression1738,PgSelect1740,First1742,PgSelectRows1743,PgSelectSingle1744,PgClassExpression1745,PgClassExpression1746,PgSelect1747,First1749,PgSelectRows1750,PgSelectSingle1751,PgClassExpression1752,PgClassExpression1753,PgClassExpression1754,PgClassExpression1755 bucket46 + Bucket47("Bucket 47 (listItem)

ROOT __Item{47}ᐸ1557ᐳ[1558]"):::bucket classDef bucket47 stroke:#3cb371 - class Bucket47,PgClassExpression354,PgSelect355,First359,PgSelectRows360,PgSelectSingle361,PgClassExpression369,PgSelect370,First372,PgSelectRows373,PgSelectSingle374,PgClassExpression382 bucket47 - Bucket48("Bucket 48 (nullableBoundary)
Deps: 361

ROOT PgSelectSingle{47}ᐸfrmcdc_compoundTypeᐳ[361]"):::bucket + class Bucket47,__Item1558 bucket47 + Bucket48("Bucket 48 (listItem)

ROOT __Item{48}ᐸ1561ᐳ[1562]"):::bucket classDef bucket48 stroke:#a52a2a - class Bucket48,PgClassExpression362,PgClassExpression363,PgClassExpression364,PgClassExpression365,PgClassExpression366,PgClassExpression367,PgClassExpression368 bucket48 - Bucket49("Bucket 49 (nullableBoundary)
Deps: 374

ROOT PgSelectSingle{47}ᐸfrmcdc_compoundTypeᐳ[374]"):::bucket + class Bucket48,__Item1562 bucket48 + Bucket49("Bucket 49 (listItem)

ROOT __Item{49}ᐸ1605ᐳ[1606]"):::bucket classDef bucket49 stroke:#ff00ff - class Bucket49,PgClassExpression375,PgClassExpression376,PgClassExpression377,PgClassExpression378,PgClassExpression379,PgClassExpression380,PgClassExpression381 bucket49 - Bucket50("Bucket 50 (nullableBoundary)
Deps: 386

ROOT PgClassExpression{30}ᐸ__types__....ablePoint”ᐳ[386]"):::bucket + class Bucket49,__Item1606 bucket49 + Bucket50("Bucket 50 (listItem)

ROOT __Item{50}ᐸ1733ᐳ[1734]"):::bucket classDef bucket50 stroke:#f5deb3 - class Bucket50 bucket50 - Bucket51("Bucket 51 (listItem)

ROOT __Item{51}ᐸ400ᐳ[401]"):::bucket + class Bucket50,__Item1734 bucket50 + Bucket51("Bucket 51 (listItem)

ROOT __Item{51}ᐸ1735ᐳ[1736]"):::bucket classDef bucket51 stroke:#696969 - class Bucket51,__Item401 bucket51 - Bucket52("Bucket 52 (listItem)

ROOT __Item{52}ᐸ402ᐳ[403]"):::bucket + class Bucket51,__Item1736 bucket51 + Bucket52("Bucket 52 (listItem)

ROOT __Item{52}ᐸ1738ᐳ[1739]"):::bucket classDef bucket52 stroke:#00bfff - class Bucket52,__Item403 bucket52 - Bucket53("Bucket 53 (listItem)

ROOT __Item{53}ᐸ405ᐳ[406]"):::bucket + class Bucket52,__Item1739 bucket52 + Bucket53("Bucket 53 (listItem)

ROOT __Item{53}ᐸ1755ᐳ[1756]"):::bucket classDef bucket53 stroke:#7f007f - class Bucket53,__Item406 bucket53 - Bucket54("Bucket 54 (nullableBoundary)
Deps: 411

ROOT PgSelectSingle{30}ᐸpostᐳ[411]"):::bucket + class Bucket53,__Item1756 bucket53 + Bucket54("Bucket 54 (listItem)
Deps: 11, 1834, 1848, 1855, 1869, 1884, 1898, 1905, 1919

ROOT __Item{54}ᐸ1761ᐳ[1762]
1:
ᐳ: 1763, 1764, 1765, 1766, 1767, 1768, 1769, 1770, 1771, 1772, 1774, 1775, 1776, 1778, 1779, 1780, 1787, 1794, 1801, 1808, 1809, 1810, 1811, 1812, 1813, 1820, 1828, 1829, 1845, 1881, 1895, 1931, 1934, 1937, 1938, 1939, 1940, 1941, 1942, 1943, 1944, 1945, 1946, 1947, 1948, 1950, 1952, 1953, 1969, 1970
2: 1830, 1846, 1882, 1896, 1955, 1962
3: 1836, 1850, 1886, 1900, 1958, 1965
ᐳ: 1835, 1837, 1838, 1839, 1840, 1841, 1842, 1843, 1844, 1849, 1851, 1852, 1866, 1880, 1885, 1887, 1888, 1889, 1890, 1891, 1892, 1893, 1894, 1899, 1901, 1902, 1916, 1930, 1957, 1959, 1960, 1961, 1964, 1966, 1967, 1968
4: 1853, 1867, 1903, 1917
5: 1857, 1871, 1907, 1921
ᐳ: 1856, 1858, 1859, 1860, 1861, 1862, 1863, 1864, 1865, 1870, 1872, 1873, 1874, 1875, 1876, 1877, 1878, 1879, 1906, 1908, 1909, 1910, 1911, 1912, 1913, 1914, 1915, 1920, 1922, 1923, 1924, 1925, 1926, 1927, 1928, 1929"):::bucket classDef bucket54 stroke:#ffa500 - class Bucket54,PgClassExpression412,PgClassExpression413 bucket54 - Bucket55("Bucket 55 (nullableBoundary)
Deps: 418

ROOT PgSelectSingle{30}ᐸpostᐳ[418]"):::bucket + class Bucket54,__Item1762,PgSelectSingle1763,PgClassExpression1764,PgClassExpression1765,PgClassExpression1766,PgClassExpression1767,PgClassExpression1768,PgClassExpression1769,PgClassExpression1770,PgClassExpression1771,PgClassExpression1772,PgClassExpression1774,PgClassExpression1775,PgClassExpression1776,PgClassExpression1778,PgClassExpression1779,PgClassExpression1780,PgClassExpression1787,PgClassExpression1794,PgClassExpression1801,PgClassExpression1808,PgClassExpression1809,PgClassExpression1810,PgClassExpression1811,PgClassExpression1812,PgClassExpression1813,PgClassExpression1820,PgClassExpression1828,PgClassExpression1829,PgSelect1830,First1835,PgSelectRows1836,PgSelectSingle1837,PgClassExpression1838,PgClassExpression1839,PgClassExpression1840,PgClassExpression1841,PgClassExpression1842,PgClassExpression1843,PgClassExpression1844,PgClassExpression1845,PgSelect1846,First1849,PgSelectRows1850,PgSelectSingle1851,PgClassExpression1852,PgSelect1853,First1856,PgSelectRows1857,PgSelectSingle1858,PgClassExpression1859,PgClassExpression1860,PgClassExpression1861,PgClassExpression1862,PgClassExpression1863,PgClassExpression1864,PgClassExpression1865,PgClassExpression1866,PgSelect1867,First1870,PgSelectRows1871,PgSelectSingle1872,PgClassExpression1873,PgClassExpression1874,PgClassExpression1875,PgClassExpression1876,PgClassExpression1877,PgClassExpression1878,PgClassExpression1879,PgClassExpression1880,PgClassExpression1881,PgSelect1882,First1885,PgSelectRows1886,PgSelectSingle1887,PgClassExpression1888,PgClassExpression1889,PgClassExpression1890,PgClassExpression1891,PgClassExpression1892,PgClassExpression1893,PgClassExpression1894,PgClassExpression1895,PgSelect1896,First1899,PgSelectRows1900,PgSelectSingle1901,PgClassExpression1902,PgSelect1903,First1906,PgSelectRows1907,PgSelectSingle1908,PgClassExpression1909,PgClassExpression1910,PgClassExpression1911,PgClassExpression1912,PgClassExpression1913,PgClassExpression1914,PgClassExpression1915,PgClassExpression1916,PgSelect1917,First1920,PgSelectRows1921,PgSelectSingle1922,PgClassExpression1923,PgClassExpression1924,PgClassExpression1925,PgClassExpression1926,PgClassExpression1927,PgClassExpression1928,PgClassExpression1929,PgClassExpression1930,PgClassExpression1931,PgClassExpression1934,PgClassExpression1937,PgClassExpression1938,PgClassExpression1939,PgClassExpression1940,PgClassExpression1941,PgClassExpression1942,PgClassExpression1943,PgClassExpression1944,PgClassExpression1945,PgClassExpression1946,PgClassExpression1947,PgClassExpression1948,PgClassExpression1950,PgClassExpression1952,PgClassExpression1953,PgSelect1955,First1957,PgSelectRows1958,PgSelectSingle1959,PgClassExpression1960,PgClassExpression1961,PgSelect1962,First1964,PgSelectRows1965,PgSelectSingle1966,PgClassExpression1967,PgClassExpression1968,PgClassExpression1969,PgClassExpression1970 bucket54 + Bucket55("Bucket 55 (listItem)

ROOT __Item{55}ᐸ1772ᐳ[1773]"):::bucket classDef bucket55 stroke:#0000ff - class Bucket55,PgClassExpression419,PgClassExpression420 bucket55 - Bucket56("Bucket 56 (listItem)

ROOT __Item{56}ᐸ422ᐳ[423]"):::bucket + class Bucket55,__Item1773 bucket55 + Bucket56("Bucket 56 (listItem)

ROOT __Item{56}ᐸ1776ᐳ[1777]"):::bucket classDef bucket56 stroke:#7fff00 - class Bucket56,__Item423 bucket56 - Bucket57("Bucket 57 (listItem)
Deps: 12

ROOT __Item{57}ᐸ454ᐳ[455]
1:
ᐳ: 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 467, 468, 469, 471, 472, 473, 480, 481, 484, 487, 488, 491, 494, 495, 498, 501, 502, 503, 504, 505, 506, 513, 521, 522, 537, 570, 583, 618, 621, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 637, 639, 640, 656, 657
2: 523, 538, 571, 584, 642, 649
3: 528, 541, 574, 587, 645, 652
ᐳ: 527, 529, 530, 531, 532, 533, 534, 535, 536, 540, 542, 543, 556, 569, 573, 575, 586, 588, 644, 646, 651, 653
4: PgSelect[544], PgSelect[557]
5: PgSelectRows[547], PgSelectRows[560]
ᐳ: 546, 548, 559, 561"):::bucket + class Bucket56,__Item1777 bucket56 + Bucket57("Bucket 57 (listItem)

ROOT __Item{57}ᐸ1820ᐳ[1821]"):::bucket classDef bucket57 stroke:#ff1493 - class Bucket57,__Item455,PgSelectSingle456,PgClassExpression457,PgClassExpression458,PgClassExpression459,PgClassExpression460,PgClassExpression461,PgClassExpression462,PgClassExpression463,PgClassExpression464,PgClassExpression465,PgClassExpression467,PgClassExpression468,PgClassExpression469,PgClassExpression471,PgClassExpression472,PgClassExpression473,PgClassExpression480,Access481,Access484,PgClassExpression487,Access488,Access491,PgClassExpression494,Access495,Access498,PgClassExpression501,PgClassExpression502,PgClassExpression503,PgClassExpression504,PgClassExpression505,PgClassExpression506,PgClassExpression513,PgClassExpression521,PgClassExpression522,PgSelect523,First527,PgSelectRows528,PgSelectSingle529,PgClassExpression530,PgClassExpression531,PgClassExpression532,PgClassExpression533,PgClassExpression534,PgClassExpression535,PgClassExpression536,PgClassExpression537,PgSelect538,First540,PgSelectRows541,PgSelectSingle542,PgClassExpression543,PgSelect544,First546,PgSelectRows547,PgSelectSingle548,PgClassExpression556,PgSelect557,First559,PgSelectRows560,PgSelectSingle561,PgClassExpression569,PgClassExpression570,PgSelect571,First573,PgSelectRows574,PgSelectSingle575,PgClassExpression583,PgSelect584,First586,PgSelectRows587,PgSelectSingle588,PgClassExpression618,PgClassExpression621,PgClassExpression624,PgClassExpression625,PgClassExpression626,PgClassExpression627,PgClassExpression628,PgClassExpression629,PgClassExpression630,PgClassExpression631,PgClassExpression632,PgClassExpression633,PgClassExpression634,PgClassExpression635,PgClassExpression637,PgClassExpression639,PgClassExpression640,PgSelect642,First644,PgSelectRows645,PgSelectSingle646,PgSelect649,First651,PgSelectRows652,PgSelectSingle653,PgClassExpression656,PgClassExpression657 bucket57 - Bucket58("Bucket 58 (listItem)

ROOT __Item{58}ᐸ465ᐳ[466]"):::bucket + class Bucket57,__Item1821 bucket57 + Bucket58("Bucket 58 (listItem)

ROOT __Item{58}ᐸ1948ᐳ[1949]"):::bucket classDef bucket58 stroke:#808000 - class Bucket58,__Item466 bucket58 - Bucket59("Bucket 59 (listItem)

ROOT __Item{59}ᐸ469ᐳ[470]"):::bucket + class Bucket58,__Item1949 bucket58 + Bucket59("Bucket 59 (listItem)

ROOT __Item{59}ᐸ1950ᐳ[1951]"):::bucket classDef bucket59 stroke:#dda0dd - class Bucket59,__Item470 bucket59 - Bucket60("Bucket 60 (nullableBoundary)
Deps: 473

ROOT PgClassExpression{57}ᐸ__types__....ble_range”ᐳ[473]"):::bucket + class Bucket59,__Item1951 bucket59 + Bucket60("Bucket 60 (listItem)

ROOT __Item{60}ᐸ1953ᐳ[1954]"):::bucket classDef bucket60 stroke:#ff0000 - class Bucket60,Access474,Access477 bucket60 - Bucket61("Bucket 61 (nullableBoundary)
Deps: 474, 473

ROOT Access{60}ᐸ473.startᐳ[474]"):::bucket + class Bucket60,__Item1954 bucket60 + Bucket61("Bucket 61 (listItem)

ROOT __Item{61}ᐸ1970ᐳ[1971]"):::bucket classDef bucket61 stroke:#ffff00 - class Bucket61 bucket61 - Bucket62("Bucket 62 (nullableBoundary)
Deps: 477, 473

ROOT Access{60}ᐸ473.endᐳ[477]"):::bucket + class Bucket61,__Item1971 bucket61 + Bucket62("Bucket 62 (subroutine)

ROOT PgSelectSingle{62}ᐸtype_function_connectionᐳ[1976]"):::bucket classDef bucket62 stroke:#00ffff - class Bucket62 bucket62 - Bucket63("Bucket 63 (nullableBoundary)
Deps: 481, 480

ROOT Access{57}ᐸ480.startᐳ[481]"):::bucket + class Bucket62,__Item1975,PgSelectSingle1976 bucket62 + Bucket63("Bucket 63 (listItem)
Deps: 11, 2052, 2066, 2073, 2087, 2102, 2116, 2123, 2137, 1759

ROOT __Item{63}ᐸ1973ᐳ[1977]
1:
ᐳ: 1978, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1992, 1993, 1994, 1996, 1997, 1998, 2005, 2012, 2019, 2026, 2027, 2028, 2029, 2030, 2031, 2038, 2046, 2047, 2063, 2099, 2113, 2149, 2152, 2155, 2156, 2157, 2158, 2159, 2160, 2161, 2162, 2163, 2164, 2165, 2166, 2168, 2170, 2171, 2187, 2188, 3685
2: 2048, 2064, 2100, 2114, 2173, 2180
3: 2054, 2068, 2104, 2118, 2176, 2183
ᐳ: 2053, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2067, 2069, 2070, 2084, 2098, 2103, 2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2117, 2119, 2120, 2134, 2148, 2175, 2177, 2178, 2179, 2182, 2184, 2185, 2186
4: 2071, 2085, 2121, 2135
5: 2075, 2089, 2125, 2139
ᐳ: 2074, 2076, 2077, 2078, 2079, 2080, 2081, 2082, 2083, 2088, 2090, 2091, 2092, 2093, 2094, 2095, 2096, 2097, 2124, 2126, 2127, 2128, 2129, 2130, 2131, 2132, 2133, 2138, 2140, 2141, 2142, 2143, 2144, 2145, 2146, 2147"):::bucket classDef bucket63 stroke:#4169e1 - class Bucket63 bucket63 - Bucket64("Bucket 64 (nullableBoundary)
Deps: 484, 480

ROOT Access{57}ᐸ480.endᐳ[484]"):::bucket + class Bucket63,__Item1977,PgSelectSingle1978,PgClassExpression1982,PgClassExpression1983,PgClassExpression1984,PgClassExpression1985,PgClassExpression1986,PgClassExpression1987,PgClassExpression1988,PgClassExpression1989,PgClassExpression1990,PgClassExpression1992,PgClassExpression1993,PgClassExpression1994,PgClassExpression1996,PgClassExpression1997,PgClassExpression1998,PgClassExpression2005,PgClassExpression2012,PgClassExpression2019,PgClassExpression2026,PgClassExpression2027,PgClassExpression2028,PgClassExpression2029,PgClassExpression2030,PgClassExpression2031,PgClassExpression2038,PgClassExpression2046,PgClassExpression2047,PgSelect2048,First2053,PgSelectRows2054,PgSelectSingle2055,PgClassExpression2056,PgClassExpression2057,PgClassExpression2058,PgClassExpression2059,PgClassExpression2060,PgClassExpression2061,PgClassExpression2062,PgClassExpression2063,PgSelect2064,First2067,PgSelectRows2068,PgSelectSingle2069,PgClassExpression2070,PgSelect2071,First2074,PgSelectRows2075,PgSelectSingle2076,PgClassExpression2077,PgClassExpression2078,PgClassExpression2079,PgClassExpression2080,PgClassExpression2081,PgClassExpression2082,PgClassExpression2083,PgClassExpression2084,PgSelect2085,First2088,PgSelectRows2089,PgSelectSingle2090,PgClassExpression2091,PgClassExpression2092,PgClassExpression2093,PgClassExpression2094,PgClassExpression2095,PgClassExpression2096,PgClassExpression2097,PgClassExpression2098,PgClassExpression2099,PgSelect2100,First2103,PgSelectRows2104,PgSelectSingle2105,PgClassExpression2106,PgClassExpression2107,PgClassExpression2108,PgClassExpression2109,PgClassExpression2110,PgClassExpression2111,PgClassExpression2112,PgClassExpression2113,PgSelect2114,First2117,PgSelectRows2118,PgSelectSingle2119,PgClassExpression2120,PgSelect2121,First2124,PgSelectRows2125,PgSelectSingle2126,PgClassExpression2127,PgClassExpression2128,PgClassExpression2129,PgClassExpression2130,PgClassExpression2131,PgClassExpression2132,PgClassExpression2133,PgClassExpression2134,PgSelect2135,First2138,PgSelectRows2139,PgSelectSingle2140,PgClassExpression2141,PgClassExpression2142,PgClassExpression2143,PgClassExpression2144,PgClassExpression2145,PgClassExpression2146,PgClassExpression2147,PgClassExpression2148,PgClassExpression2149,PgClassExpression2152,PgClassExpression2155,PgClassExpression2156,PgClassExpression2157,PgClassExpression2158,PgClassExpression2159,PgClassExpression2160,PgClassExpression2161,PgClassExpression2162,PgClassExpression2163,PgClassExpression2164,PgClassExpression2165,PgClassExpression2166,PgClassExpression2168,PgClassExpression2170,PgClassExpression2171,PgSelect2173,First2175,PgSelectRows2176,PgSelectSingle2177,PgClassExpression2178,PgClassExpression2179,PgSelect2180,First2182,PgSelectRows2183,PgSelectSingle2184,PgClassExpression2185,PgClassExpression2186,PgClassExpression2187,PgClassExpression2188,Edge3685 bucket63 + Bucket64("Bucket 64 (listItem)

ROOT __Item{64}ᐸ1990ᐳ[1991]"):::bucket classDef bucket64 stroke:#3cb371 - class Bucket64 bucket64 - Bucket65("Bucket 65 (nullableBoundary)
Deps: 488, 487

ROOT Access{57}ᐸ487.startᐳ[488]"):::bucket + class Bucket64,__Item1991 bucket64 + Bucket65("Bucket 65 (listItem)

ROOT __Item{65}ᐸ1994ᐳ[1995]"):::bucket classDef bucket65 stroke:#a52a2a - class Bucket65 bucket65 - Bucket66("Bucket 66 (nullableBoundary)
Deps: 491, 487

ROOT Access{57}ᐸ487.endᐳ[491]"):::bucket + class Bucket65,__Item1995 bucket65 + Bucket66("Bucket 66 (listItem)

ROOT __Item{66}ᐸ2038ᐳ[2039]"):::bucket classDef bucket66 stroke:#ff00ff - class Bucket66 bucket66 - Bucket67("Bucket 67 (nullableBoundary)
Deps: 495, 494

ROOT Access{57}ᐸ494.startᐳ[495]"):::bucket + class Bucket66,__Item2039 bucket66 + Bucket67("Bucket 67 (listItem)

ROOT __Item{67}ᐸ2166ᐳ[2167]"):::bucket classDef bucket67 stroke:#f5deb3 - class Bucket67 bucket67 - Bucket68("Bucket 68 (nullableBoundary)
Deps: 498, 494

ROOT Access{57}ᐸ494.endᐳ[498]"):::bucket + class Bucket67,__Item2167 bucket67 + Bucket68("Bucket 68 (listItem)

ROOT __Item{68}ᐸ2168ᐳ[2169]"):::bucket classDef bucket68 stroke:#696969 - class Bucket68 bucket68 - Bucket69("Bucket 69 (listItem)

ROOT __Item{69}ᐸ513ᐳ[514]"):::bucket + class Bucket68,__Item2169 bucket68 + Bucket69("Bucket 69 (listItem)

ROOT __Item{69}ᐸ2171ᐳ[2172]"):::bucket classDef bucket69 stroke:#00bfff - class Bucket69,__Item514 bucket69 - Bucket70("Bucket 70 (nullableBoundary)
Deps: 514

ROOT __Item{69}ᐸ513ᐳ[514]"):::bucket + class Bucket69,__Item2172 bucket69 + Bucket70("Bucket 70 (listItem)

ROOT __Item{70}ᐸ2188ᐳ[2189]"):::bucket classDef bucket70 stroke:#7f007f - class Bucket70 bucket70 - Bucket71("Bucket 71 (nullableBoundary)
Deps: 548

ROOT PgSelectSingle{57}ᐸfrmcdc_compoundTypeᐳ[548]"):::bucket + class Bucket70,__Item2189 bucket70 + Bucket71("Bucket 71 (listItem)

ROOT __Item{71}ᐸ2239ᐳ[2240]"):::bucket classDef bucket71 stroke:#ffa500 - class Bucket71,PgClassExpression549,PgClassExpression550,PgClassExpression551,PgClassExpression552,PgClassExpression553,PgClassExpression554,PgClassExpression555 bucket71 - Bucket72("Bucket 72 (nullableBoundary)
Deps: 561

ROOT PgSelectSingle{57}ᐸfrmcdc_compoundTypeᐳ[561]"):::bucket + class Bucket71,__Item2240 bucket71 + Bucket72("Bucket 72 (listItem)

ROOT __Item{72}ᐸ2243ᐳ[2244]"):::bucket classDef bucket72 stroke:#0000ff - class Bucket72,PgClassExpression562,PgClassExpression563,PgClassExpression564,PgClassExpression565,PgClassExpression566,PgClassExpression567,PgClassExpression568 bucket72 - Bucket73("Bucket 73 (nullableBoundary)
Deps: 575

ROOT PgSelectSingle{57}ᐸfrmcdc_compoundTypeᐳ[575]"):::bucket + class Bucket72,__Item2244 bucket72 + Bucket73("Bucket 73 (listItem)

ROOT __Item{73}ᐸ2287ᐳ[2288]"):::bucket classDef bucket73 stroke:#7fff00 - class Bucket73,PgClassExpression576,PgClassExpression577,PgClassExpression578,PgClassExpression579,PgClassExpression580,PgClassExpression581,PgClassExpression582 bucket73 - Bucket74("Bucket 74 (nullableBoundary)
Deps: 588, 12

ROOT PgSelectSingle{57}ᐸfrmcdc_nestedCompoundTypeᐳ[588]
1:
ᐳ: 589, 604, 617
2: PgSelect[590], PgSelect[605]
3: PgSelectRows[595], PgSelectRows[608]
ᐳ: 594, 596, 607, 609"):::bucket + class Bucket73,__Item2288 bucket73 + Bucket74("Bucket 74 (listItem)

ROOT __Item{74}ᐸ2413ᐳ[2414]"):::bucket classDef bucket74 stroke:#ff1493 - class Bucket74,PgClassExpression589,PgSelect590,First594,PgSelectRows595,PgSelectSingle596,PgClassExpression604,PgSelect605,First607,PgSelectRows608,PgSelectSingle609,PgClassExpression617 bucket74 - Bucket75("Bucket 75 (nullableBoundary)
Deps: 596

ROOT PgSelectSingle{74}ᐸfrmcdc_compoundTypeᐳ[596]"):::bucket + class Bucket74,__Item2414 bucket74 + Bucket75("Bucket 75 (listItem)

ROOT __Item{75}ᐸ2415ᐳ[2416]"):::bucket classDef bucket75 stroke:#808000 - class Bucket75,PgClassExpression597,PgClassExpression598,PgClassExpression599,PgClassExpression600,PgClassExpression601,PgClassExpression602,PgClassExpression603 bucket75 - Bucket76("Bucket 76 (nullableBoundary)
Deps: 609

ROOT PgSelectSingle{74}ᐸfrmcdc_compoundTypeᐳ[609]"):::bucket + class Bucket75,__Item2416 bucket75 + Bucket76("Bucket 76 (listItem)

ROOT __Item{76}ᐸ2418ᐳ[2419]"):::bucket classDef bucket76 stroke:#dda0dd - class Bucket76,PgClassExpression610,PgClassExpression611,PgClassExpression612,PgClassExpression613,PgClassExpression614,PgClassExpression615,PgClassExpression616 bucket76 - Bucket77("Bucket 77 (nullableBoundary)
Deps: 621

ROOT PgClassExpression{57}ᐸ__types__....ablePoint”ᐳ[621]"):::bucket + class Bucket76,__Item2419 bucket76 + Bucket77("Bucket 77 (listItem)

ROOT __Item{77}ᐸ2435ᐳ[2436]"):::bucket classDef bucket77 stroke:#ff0000 - class Bucket77 bucket77 - Bucket78("Bucket 78 (listItem)

ROOT __Item{78}ᐸ635ᐳ[636]"):::bucket + class Bucket77,__Item2436 bucket77 + Bucket78("Bucket 78 (listItem)
Deps: 11, 2514, 2528, 2535, 2549, 2564, 2578, 2585, 2599

ROOT __Item{78}ᐸ2441ᐳ[2442]
1:
ᐳ: 2443, 2444, 2445, 2446, 2447, 2448, 2449, 2450, 2451, 2452, 2454, 2455, 2456, 2458, 2459, 2460, 2467, 2474, 2481, 2488, 2489, 2490, 2491, 2492, 2493, 2500, 2508, 2509, 2525, 2561, 2575, 2611, 2614, 2617, 2618, 2619, 2620, 2621, 2622, 2623, 2624, 2625, 2626, 2627, 2628, 2630, 2632, 2633, 2649, 2650
2: 2510, 2526, 2562, 2576, 2635, 2642
3: 2516, 2530, 2566, 2580, 2638, 2645
ᐳ: 2515, 2517, 2518, 2519, 2520, 2521, 2522, 2523, 2524, 2529, 2531, 2532, 2546, 2560, 2565, 2567, 2568, 2569, 2570, 2571, 2572, 2573, 2574, 2579, 2581, 2582, 2596, 2610, 2637, 2639, 2640, 2641, 2644, 2646, 2647, 2648
4: 2533, 2547, 2583, 2597
5: 2537, 2551, 2587, 2601
ᐳ: 2536, 2538, 2539, 2540, 2541, 2542, 2543, 2544, 2545, 2550, 2552, 2553, 2554, 2555, 2556, 2557, 2558, 2559, 2586, 2588, 2589, 2590, 2591, 2592, 2593, 2594, 2595, 2600, 2602, 2603, 2604, 2605, 2606, 2607, 2608, 2609"):::bucket classDef bucket78 stroke:#ffff00 - class Bucket78,__Item636 bucket78 - Bucket79("Bucket 79 (listItem)

ROOT __Item{79}ᐸ637ᐳ[638]"):::bucket + class Bucket78,__Item2442,PgSelectSingle2443,PgClassExpression2444,PgClassExpression2445,PgClassExpression2446,PgClassExpression2447,PgClassExpression2448,PgClassExpression2449,PgClassExpression2450,PgClassExpression2451,PgClassExpression2452,PgClassExpression2454,PgClassExpression2455,PgClassExpression2456,PgClassExpression2458,PgClassExpression2459,PgClassExpression2460,PgClassExpression2467,PgClassExpression2474,PgClassExpression2481,PgClassExpression2488,PgClassExpression2489,PgClassExpression2490,PgClassExpression2491,PgClassExpression2492,PgClassExpression2493,PgClassExpression2500,PgClassExpression2508,PgClassExpression2509,PgSelect2510,First2515,PgSelectRows2516,PgSelectSingle2517,PgClassExpression2518,PgClassExpression2519,PgClassExpression2520,PgClassExpression2521,PgClassExpression2522,PgClassExpression2523,PgClassExpression2524,PgClassExpression2525,PgSelect2526,First2529,PgSelectRows2530,PgSelectSingle2531,PgClassExpression2532,PgSelect2533,First2536,PgSelectRows2537,PgSelectSingle2538,PgClassExpression2539,PgClassExpression2540,PgClassExpression2541,PgClassExpression2542,PgClassExpression2543,PgClassExpression2544,PgClassExpression2545,PgClassExpression2546,PgSelect2547,First2550,PgSelectRows2551,PgSelectSingle2552,PgClassExpression2553,PgClassExpression2554,PgClassExpression2555,PgClassExpression2556,PgClassExpression2557,PgClassExpression2558,PgClassExpression2559,PgClassExpression2560,PgClassExpression2561,PgSelect2562,First2565,PgSelectRows2566,PgSelectSingle2567,PgClassExpression2568,PgClassExpression2569,PgClassExpression2570,PgClassExpression2571,PgClassExpression2572,PgClassExpression2573,PgClassExpression2574,PgClassExpression2575,PgSelect2576,First2579,PgSelectRows2580,PgSelectSingle2581,PgClassExpression2582,PgSelect2583,First2586,PgSelectRows2587,PgSelectSingle2588,PgClassExpression2589,PgClassExpression2590,PgClassExpression2591,PgClassExpression2592,PgClassExpression2593,PgClassExpression2594,PgClassExpression2595,PgClassExpression2596,PgSelect2597,First2600,PgSelectRows2601,PgSelectSingle2602,PgClassExpression2603,PgClassExpression2604,PgClassExpression2605,PgClassExpression2606,PgClassExpression2607,PgClassExpression2608,PgClassExpression2609,PgClassExpression2610,PgClassExpression2611,PgClassExpression2614,PgClassExpression2617,PgClassExpression2618,PgClassExpression2619,PgClassExpression2620,PgClassExpression2621,PgClassExpression2622,PgClassExpression2623,PgClassExpression2624,PgClassExpression2625,PgClassExpression2626,PgClassExpression2627,PgClassExpression2628,PgClassExpression2630,PgClassExpression2632,PgClassExpression2633,PgSelect2635,First2637,PgSelectRows2638,PgSelectSingle2639,PgClassExpression2640,PgClassExpression2641,PgSelect2642,First2644,PgSelectRows2645,PgSelectSingle2646,PgClassExpression2647,PgClassExpression2648,PgClassExpression2649,PgClassExpression2650 bucket78 + Bucket79("Bucket 79 (listItem)

ROOT __Item{79}ᐸ2452ᐳ[2453]"):::bucket classDef bucket79 stroke:#00ffff - class Bucket79,__Item638 bucket79 - Bucket80("Bucket 80 (listItem)

ROOT __Item{80}ᐸ640ᐳ[641]"):::bucket + class Bucket79,__Item2453 bucket79 + Bucket80("Bucket 80 (listItem)

ROOT __Item{80}ᐸ2456ᐳ[2457]"):::bucket classDef bucket80 stroke:#4169e1 - class Bucket80,__Item641 bucket80 - Bucket81("Bucket 81 (nullableBoundary)
Deps: 646

ROOT PgSelectSingle{57}ᐸpostᐳ[646]"):::bucket + class Bucket80,__Item2457 bucket80 + Bucket81("Bucket 81 (listItem)

ROOT __Item{81}ᐸ2500ᐳ[2501]"):::bucket classDef bucket81 stroke:#3cb371 - class Bucket81,PgClassExpression647,PgClassExpression648 bucket81 - Bucket82("Bucket 82 (nullableBoundary)
Deps: 653

ROOT PgSelectSingle{57}ᐸpostᐳ[653]"):::bucket + class Bucket81,__Item2501 bucket81 + Bucket82("Bucket 82 (listItem)

ROOT __Item{82}ᐸ2628ᐳ[2629]"):::bucket classDef bucket82 stroke:#a52a2a - class Bucket82,PgClassExpression654,PgClassExpression655 bucket82 - Bucket83("Bucket 83 (listItem)

ROOT __Item{83}ᐸ657ᐳ[658]"):::bucket + class Bucket82,__Item2629 bucket82 + Bucket83("Bucket 83 (listItem)

ROOT __Item{83}ᐸ2630ᐳ[2631]"):::bucket classDef bucket83 stroke:#ff00ff - class Bucket83,__Item658 bucket83 - Bucket84("Bucket 84 (nullableBoundary)
Deps: 664, 12

ROOT PgSelectSingleᐸtypesᐳ[664]
1:
ᐳ: 665, 666, 667, 668, 669, 670, 671, 672, 673, 675, 676, 677, 679, 680, 681, 688, 695, 702, 709, 710, 711, 712, 713, 714, 721, 729, 730, 745, 778, 791, 826, 829, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 845, 847, 848, 864, 865, 689, 692, 696, 699, 703, 706
2: 731, 746, 779, 792, 850, 857
3: 736, 749, 782, 795, 853, 860
ᐳ: 735, 737, 738, 739, 740, 741, 742, 743, 744, 748, 750, 751, 764, 777, 781, 783, 794, 796, 852, 854, 859, 861
4: PgSelect[752], PgSelect[765]
5: PgSelectRows[755], PgSelectRows[768]
ᐳ: 754, 756, 767, 769"):::bucket + class Bucket83,__Item2631 bucket83 + Bucket84("Bucket 84 (listItem)

ROOT __Item{84}ᐸ2633ᐳ[2634]"):::bucket classDef bucket84 stroke:#f5deb3 - class Bucket84,PgClassExpression665,PgClassExpression666,PgClassExpression667,PgClassExpression668,PgClassExpression669,PgClassExpression670,PgClassExpression671,PgClassExpression672,PgClassExpression673,PgClassExpression675,PgClassExpression676,PgClassExpression677,PgClassExpression679,PgClassExpression680,PgClassExpression681,PgClassExpression688,Access689,Access692,PgClassExpression695,Access696,Access699,PgClassExpression702,Access703,Access706,PgClassExpression709,PgClassExpression710,PgClassExpression711,PgClassExpression712,PgClassExpression713,PgClassExpression714,PgClassExpression721,PgClassExpression729,PgClassExpression730,PgSelect731,First735,PgSelectRows736,PgSelectSingle737,PgClassExpression738,PgClassExpression739,PgClassExpression740,PgClassExpression741,PgClassExpression742,PgClassExpression743,PgClassExpression744,PgClassExpression745,PgSelect746,First748,PgSelectRows749,PgSelectSingle750,PgClassExpression751,PgSelect752,First754,PgSelectRows755,PgSelectSingle756,PgClassExpression764,PgSelect765,First767,PgSelectRows768,PgSelectSingle769,PgClassExpression777,PgClassExpression778,PgSelect779,First781,PgSelectRows782,PgSelectSingle783,PgClassExpression791,PgSelect792,First794,PgSelectRows795,PgSelectSingle796,PgClassExpression826,PgClassExpression829,PgClassExpression832,PgClassExpression833,PgClassExpression834,PgClassExpression835,PgClassExpression836,PgClassExpression837,PgClassExpression838,PgClassExpression839,PgClassExpression840,PgClassExpression841,PgClassExpression842,PgClassExpression843,PgClassExpression845,PgClassExpression847,PgClassExpression848,PgSelect850,First852,PgSelectRows853,PgSelectSingle854,PgSelect857,First859,PgSelectRows860,PgSelectSingle861,PgClassExpression864,PgClassExpression865 bucket84 - Bucket85("Bucket 85 (listItem)

ROOT __Item{85}ᐸ673ᐳ[674]"):::bucket + class Bucket84,__Item2634 bucket84 + Bucket85("Bucket 85 (listItem)

ROOT __Item{85}ᐸ2650ᐳ[2651]"):::bucket classDef bucket85 stroke:#696969 - class Bucket85,__Item674 bucket85 - Bucket86("Bucket 86 (listItem)

ROOT __Item{86}ᐸ677ᐳ[678]"):::bucket + class Bucket85,__Item2651 bucket85 + Bucket86("Bucket 86 (listItem)
Deps: 11, 2731, 2745, 2752, 2766, 2781, 2795, 2802, 2816

ROOT __Item{86}ᐸ2658ᐳ[2659]
1:
ᐳ: 2660, 2661, 2662, 2663, 2664, 2665, 2666, 2667, 2668, 2669, 2671, 2672, 2673, 2675, 2676, 2677, 2684, 2691, 2698, 2705, 2706, 2707, 2708, 2709, 2710, 2717, 2725, 2726, 2742, 2778, 2792, 2828, 2831, 2834, 2835, 2836, 2837, 2838, 2839, 2840, 2841, 2842, 2843, 2844, 2845, 2847, 2849, 2850, 2866, 2867
2: 2727, 2743, 2779, 2793, 2852, 2859
3: 2733, 2747, 2783, 2797, 2855, 2862
ᐳ: 2732, 2734, 2735, 2736, 2737, 2738, 2739, 2740, 2741, 2746, 2748, 2749, 2763, 2777, 2782, 2784, 2785, 2786, 2787, 2788, 2789, 2790, 2791, 2796, 2798, 2799, 2813, 2827, 2854, 2856, 2857, 2858, 2861, 2863, 2864, 2865
4: 2750, 2764, 2800, 2814
5: 2754, 2768, 2804, 2818
ᐳ: 2753, 2755, 2756, 2757, 2758, 2759, 2760, 2761, 2762, 2767, 2769, 2770, 2771, 2772, 2773, 2774, 2775, 2776, 2803, 2805, 2806, 2807, 2808, 2809, 2810, 2811, 2812, 2817, 2819, 2820, 2821, 2822, 2823, 2824, 2825, 2826"):::bucket classDef bucket86 stroke:#00bfff - class Bucket86,__Item678 bucket86 - Bucket87("Bucket 87 (nullableBoundary)
Deps: 681

ROOT PgClassExpression{84}ᐸ__types__....ble_range”ᐳ[681]"):::bucket + class Bucket86,__Item2659,PgSelectSingle2660,PgClassExpression2661,PgClassExpression2662,PgClassExpression2663,PgClassExpression2664,PgClassExpression2665,PgClassExpression2666,PgClassExpression2667,PgClassExpression2668,PgClassExpression2669,PgClassExpression2671,PgClassExpression2672,PgClassExpression2673,PgClassExpression2675,PgClassExpression2676,PgClassExpression2677,PgClassExpression2684,PgClassExpression2691,PgClassExpression2698,PgClassExpression2705,PgClassExpression2706,PgClassExpression2707,PgClassExpression2708,PgClassExpression2709,PgClassExpression2710,PgClassExpression2717,PgClassExpression2725,PgClassExpression2726,PgSelect2727,First2732,PgSelectRows2733,PgSelectSingle2734,PgClassExpression2735,PgClassExpression2736,PgClassExpression2737,PgClassExpression2738,PgClassExpression2739,PgClassExpression2740,PgClassExpression2741,PgClassExpression2742,PgSelect2743,First2746,PgSelectRows2747,PgSelectSingle2748,PgClassExpression2749,PgSelect2750,First2753,PgSelectRows2754,PgSelectSingle2755,PgClassExpression2756,PgClassExpression2757,PgClassExpression2758,PgClassExpression2759,PgClassExpression2760,PgClassExpression2761,PgClassExpression2762,PgClassExpression2763,PgSelect2764,First2767,PgSelectRows2768,PgSelectSingle2769,PgClassExpression2770,PgClassExpression2771,PgClassExpression2772,PgClassExpression2773,PgClassExpression2774,PgClassExpression2775,PgClassExpression2776,PgClassExpression2777,PgClassExpression2778,PgSelect2779,First2782,PgSelectRows2783,PgSelectSingle2784,PgClassExpression2785,PgClassExpression2786,PgClassExpression2787,PgClassExpression2788,PgClassExpression2789,PgClassExpression2790,PgClassExpression2791,PgClassExpression2792,PgSelect2793,First2796,PgSelectRows2797,PgSelectSingle2798,PgClassExpression2799,PgSelect2800,First2803,PgSelectRows2804,PgSelectSingle2805,PgClassExpression2806,PgClassExpression2807,PgClassExpression2808,PgClassExpression2809,PgClassExpression2810,PgClassExpression2811,PgClassExpression2812,PgClassExpression2813,PgSelect2814,First2817,PgSelectRows2818,PgSelectSingle2819,PgClassExpression2820,PgClassExpression2821,PgClassExpression2822,PgClassExpression2823,PgClassExpression2824,PgClassExpression2825,PgClassExpression2826,PgClassExpression2827,PgClassExpression2828,PgClassExpression2831,PgClassExpression2834,PgClassExpression2835,PgClassExpression2836,PgClassExpression2837,PgClassExpression2838,PgClassExpression2839,PgClassExpression2840,PgClassExpression2841,PgClassExpression2842,PgClassExpression2843,PgClassExpression2844,PgClassExpression2845,PgClassExpression2847,PgClassExpression2849,PgClassExpression2850,PgSelect2852,First2854,PgSelectRows2855,PgSelectSingle2856,PgClassExpression2857,PgClassExpression2858,PgSelect2859,First2861,PgSelectRows2862,PgSelectSingle2863,PgClassExpression2864,PgClassExpression2865,PgClassExpression2866,PgClassExpression2867 bucket86 + Bucket87("Bucket 87 (listItem)

ROOT __Item{87}ᐸ2669ᐳ[2670]"):::bucket classDef bucket87 stroke:#7f007f - class Bucket87,Access682,Access685 bucket87 - Bucket88("Bucket 88 (nullableBoundary)
Deps: 682, 681

ROOT Access{87}ᐸ681.startᐳ[682]"):::bucket + class Bucket87,__Item2670 bucket87 + Bucket88("Bucket 88 (listItem)

ROOT __Item{88}ᐸ2673ᐳ[2674]"):::bucket classDef bucket88 stroke:#ffa500 - class Bucket88 bucket88 - Bucket89("Bucket 89 (nullableBoundary)
Deps: 685, 681

ROOT Access{87}ᐸ681.endᐳ[685]"):::bucket + class Bucket88,__Item2674 bucket88 + Bucket89("Bucket 89 (listItem)

ROOT __Item{89}ᐸ2717ᐳ[2718]"):::bucket classDef bucket89 stroke:#0000ff - class Bucket89 bucket89 - Bucket90("Bucket 90 (nullableBoundary)
Deps: 689, 688

ROOT Access{84}ᐸ688.startᐳ[689]"):::bucket + class Bucket89,__Item2718 bucket89 + Bucket90("Bucket 90 (listItem)

ROOT __Item{90}ᐸ2845ᐳ[2846]"):::bucket classDef bucket90 stroke:#7fff00 - class Bucket90 bucket90 - Bucket91("Bucket 91 (nullableBoundary)
Deps: 692, 688

ROOT Access{84}ᐸ688.endᐳ[692]"):::bucket + class Bucket90,__Item2846 bucket90 + Bucket91("Bucket 91 (listItem)

ROOT __Item{91}ᐸ2847ᐳ[2848]"):::bucket classDef bucket91 stroke:#ff1493 - class Bucket91 bucket91 - Bucket92("Bucket 92 (nullableBoundary)
Deps: 696, 695

ROOT Access{84}ᐸ695.startᐳ[696]"):::bucket + class Bucket91,__Item2848 bucket91 + Bucket92("Bucket 92 (listItem)

ROOT __Item{92}ᐸ2850ᐳ[2851]"):::bucket classDef bucket92 stroke:#808000 - class Bucket92 bucket92 - Bucket93("Bucket 93 (nullableBoundary)
Deps: 699, 695

ROOT Access{84}ᐸ695.endᐳ[699]"):::bucket + class Bucket92,__Item2851 bucket92 + Bucket93("Bucket 93 (listItem)

ROOT __Item{93}ᐸ2867ᐳ[2868]"):::bucket classDef bucket93 stroke:#dda0dd - class Bucket93 bucket93 - Bucket94("Bucket 94 (nullableBoundary)
Deps: 703, 702

ROOT Access{84}ᐸ702.startᐳ[703]"):::bucket + class Bucket93,__Item2868 bucket93 + Bucket94("Bucket 94 (subroutine)

ROOT PgSelectSingle{94}ᐸperson_type_function_connectionᐳ[2873]"):::bucket classDef bucket94 stroke:#ff0000 - class Bucket94 bucket94 - Bucket95("Bucket 95 (nullableBoundary)
Deps: 706, 702

ROOT Access{84}ᐸ702.endᐳ[706]"):::bucket + class Bucket94,__Item2872,PgSelectSingle2873 bucket94 + Bucket95("Bucket 95 (listItem)
Deps: 11, 2949, 2963, 2970, 2984, 2999, 3013, 3020, 3034, 2656

ROOT __Item{95}ᐸ2870ᐳ[2874]
1:
ᐳ: 2875, 2879, 2880, 2881, 2882, 2883, 2884, 2885, 2886, 2887, 2889, 2890, 2891, 2893, 2894, 2895, 2902, 2909, 2916, 2923, 2924, 2925, 2926, 2927, 2928, 2935, 2943, 2944, 2960, 2996, 3010, 3046, 3049, 3052, 3053, 3054, 3055, 3056, 3057, 3058, 3059, 3060, 3061, 3062, 3063, 3065, 3067, 3068, 3084, 3085, 3686
2: 2945, 2961, 2997, 3011, 3070, 3077
3: 2951, 2965, 3001, 3015, 3073, 3080
ᐳ: 2950, 2952, 2953, 2954, 2955, 2956, 2957, 2958, 2959, 2964, 2966, 2967, 2981, 2995, 3000, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3014, 3016, 3017, 3031, 3045, 3072, 3074, 3075, 3076, 3079, 3081, 3082, 3083
4: 2968, 2982, 3018, 3032
5: 2972, 2986, 3022, 3036
ᐳ: 2971, 2973, 2974, 2975, 2976, 2977, 2978, 2979, 2980, 2985, 2987, 2988, 2989, 2990, 2991, 2992, 2993, 2994, 3021, 3023, 3024, 3025, 3026, 3027, 3028, 3029, 3030, 3035, 3037, 3038, 3039, 3040, 3041, 3042, 3043, 3044"):::bucket classDef bucket95 stroke:#ffff00 - class Bucket95 bucket95 - Bucket96("Bucket 96 (listItem)

ROOT __Item{96}ᐸ721ᐳ[722]"):::bucket + class Bucket95,__Item2874,PgSelectSingle2875,PgClassExpression2879,PgClassExpression2880,PgClassExpression2881,PgClassExpression2882,PgClassExpression2883,PgClassExpression2884,PgClassExpression2885,PgClassExpression2886,PgClassExpression2887,PgClassExpression2889,PgClassExpression2890,PgClassExpression2891,PgClassExpression2893,PgClassExpression2894,PgClassExpression2895,PgClassExpression2902,PgClassExpression2909,PgClassExpression2916,PgClassExpression2923,PgClassExpression2924,PgClassExpression2925,PgClassExpression2926,PgClassExpression2927,PgClassExpression2928,PgClassExpression2935,PgClassExpression2943,PgClassExpression2944,PgSelect2945,First2950,PgSelectRows2951,PgSelectSingle2952,PgClassExpression2953,PgClassExpression2954,PgClassExpression2955,PgClassExpression2956,PgClassExpression2957,PgClassExpression2958,PgClassExpression2959,PgClassExpression2960,PgSelect2961,First2964,PgSelectRows2965,PgSelectSingle2966,PgClassExpression2967,PgSelect2968,First2971,PgSelectRows2972,PgSelectSingle2973,PgClassExpression2974,PgClassExpression2975,PgClassExpression2976,PgClassExpression2977,PgClassExpression2978,PgClassExpression2979,PgClassExpression2980,PgClassExpression2981,PgSelect2982,First2985,PgSelectRows2986,PgSelectSingle2987,PgClassExpression2988,PgClassExpression2989,PgClassExpression2990,PgClassExpression2991,PgClassExpression2992,PgClassExpression2993,PgClassExpression2994,PgClassExpression2995,PgClassExpression2996,PgSelect2997,First3000,PgSelectRows3001,PgSelectSingle3002,PgClassExpression3003,PgClassExpression3004,PgClassExpression3005,PgClassExpression3006,PgClassExpression3007,PgClassExpression3008,PgClassExpression3009,PgClassExpression3010,PgSelect3011,First3014,PgSelectRows3015,PgSelectSingle3016,PgClassExpression3017,PgSelect3018,First3021,PgSelectRows3022,PgSelectSingle3023,PgClassExpression3024,PgClassExpression3025,PgClassExpression3026,PgClassExpression3027,PgClassExpression3028,PgClassExpression3029,PgClassExpression3030,PgClassExpression3031,PgSelect3032,First3035,PgSelectRows3036,PgSelectSingle3037,PgClassExpression3038,PgClassExpression3039,PgClassExpression3040,PgClassExpression3041,PgClassExpression3042,PgClassExpression3043,PgClassExpression3044,PgClassExpression3045,PgClassExpression3046,PgClassExpression3049,PgClassExpression3052,PgClassExpression3053,PgClassExpression3054,PgClassExpression3055,PgClassExpression3056,PgClassExpression3057,PgClassExpression3058,PgClassExpression3059,PgClassExpression3060,PgClassExpression3061,PgClassExpression3062,PgClassExpression3063,PgClassExpression3065,PgClassExpression3067,PgClassExpression3068,PgSelect3070,First3072,PgSelectRows3073,PgSelectSingle3074,PgClassExpression3075,PgClassExpression3076,PgSelect3077,First3079,PgSelectRows3080,PgSelectSingle3081,PgClassExpression3082,PgClassExpression3083,PgClassExpression3084,PgClassExpression3085,Edge3686 bucket95 + Bucket96("Bucket 96 (listItem)

ROOT __Item{96}ᐸ2887ᐳ[2888]"):::bucket classDef bucket96 stroke:#00ffff - class Bucket96,__Item722 bucket96 - Bucket97("Bucket 97 (nullableBoundary)
Deps: 722

ROOT __Item{96}ᐸ721ᐳ[722]"):::bucket + class Bucket96,__Item2888 bucket96 + Bucket97("Bucket 97 (listItem)

ROOT __Item{97}ᐸ2891ᐳ[2892]"):::bucket classDef bucket97 stroke:#4169e1 - class Bucket97 bucket97 - Bucket98("Bucket 98 (nullableBoundary)
Deps: 756

ROOT PgSelectSingle{84}ᐸfrmcdc_compoundTypeᐳ[756]"):::bucket + class Bucket97,__Item2892 bucket97 + Bucket98("Bucket 98 (listItem)

ROOT __Item{98}ᐸ2935ᐳ[2936]"):::bucket classDef bucket98 stroke:#3cb371 - class Bucket98,PgClassExpression757,PgClassExpression758,PgClassExpression759,PgClassExpression760,PgClassExpression761,PgClassExpression762,PgClassExpression763 bucket98 - Bucket99("Bucket 99 (nullableBoundary)
Deps: 769

ROOT PgSelectSingle{84}ᐸfrmcdc_compoundTypeᐳ[769]"):::bucket + class Bucket98,__Item2936 bucket98 + Bucket99("Bucket 99 (listItem)

ROOT __Item{99}ᐸ3063ᐳ[3064]"):::bucket classDef bucket99 stroke:#a52a2a - class Bucket99,PgClassExpression770,PgClassExpression771,PgClassExpression772,PgClassExpression773,PgClassExpression774,PgClassExpression775,PgClassExpression776 bucket99 - Bucket100("Bucket 100 (nullableBoundary)
Deps: 783

ROOT PgSelectSingle{84}ᐸfrmcdc_compoundTypeᐳ[783]"):::bucket + class Bucket99,__Item3064 bucket99 + Bucket100("Bucket 100 (listItem)

ROOT __Item{100}ᐸ3065ᐳ[3066]"):::bucket classDef bucket100 stroke:#ff00ff - class Bucket100,PgClassExpression784,PgClassExpression785,PgClassExpression786,PgClassExpression787,PgClassExpression788,PgClassExpression789,PgClassExpression790 bucket100 - Bucket101("Bucket 101 (nullableBoundary)
Deps: 796, 12

ROOT PgSelectSingle{84}ᐸfrmcdc_nestedCompoundTypeᐳ[796]
1:
ᐳ: 797, 812, 825
2: PgSelect[798], PgSelect[813]
3: PgSelectRows[803], PgSelectRows[816]
ᐳ: 802, 804, 815, 817"):::bucket + class Bucket100,__Item3066 bucket100 + Bucket101("Bucket 101 (listItem)

ROOT __Item{101}ᐸ3068ᐳ[3069]"):::bucket classDef bucket101 stroke:#f5deb3 - class Bucket101,PgClassExpression797,PgSelect798,First802,PgSelectRows803,PgSelectSingle804,PgClassExpression812,PgSelect813,First815,PgSelectRows816,PgSelectSingle817,PgClassExpression825 bucket101 - Bucket102("Bucket 102 (nullableBoundary)
Deps: 804

ROOT PgSelectSingle{101}ᐸfrmcdc_compoundTypeᐳ[804]"):::bucket + class Bucket101,__Item3069 bucket101 + Bucket102("Bucket 102 (listItem)

ROOT __Item{102}ᐸ3085ᐳ[3086]"):::bucket classDef bucket102 stroke:#696969 - class Bucket102,PgClassExpression805,PgClassExpression806,PgClassExpression807,PgClassExpression808,PgClassExpression809,PgClassExpression810,PgClassExpression811 bucket102 - Bucket103("Bucket 103 (nullableBoundary)
Deps: 817

ROOT PgSelectSingle{101}ᐸfrmcdc_compoundTypeᐳ[817]"):::bucket + class Bucket102,__Item3086 bucket102 + Bucket103("Bucket 103 (listItem)

ROOT __Item{103}ᐸ3135ᐳ[3136]"):::bucket classDef bucket103 stroke:#00bfff - class Bucket103,PgClassExpression818,PgClassExpression819,PgClassExpression820,PgClassExpression821,PgClassExpression822,PgClassExpression823,PgClassExpression824 bucket103 - Bucket104("Bucket 104 (nullableBoundary)
Deps: 829

ROOT PgClassExpression{84}ᐸ__types__....ablePoint”ᐳ[829]"):::bucket + class Bucket103,__Item3136 bucket103 + Bucket104("Bucket 104 (listItem)

ROOT __Item{104}ᐸ3139ᐳ[3140]"):::bucket classDef bucket104 stroke:#7f007f - class Bucket104 bucket104 - Bucket105("Bucket 105 (listItem)

ROOT __Item{105}ᐸ843ᐳ[844]"):::bucket + class Bucket104,__Item3140 bucket104 + Bucket105("Bucket 105 (listItem)

ROOT __Item{105}ᐸ3183ᐳ[3184]"):::bucket classDef bucket105 stroke:#ffa500 - class Bucket105,__Item844 bucket105 - Bucket106("Bucket 106 (listItem)

ROOT __Item{106}ᐸ845ᐳ[846]"):::bucket + class Bucket105,__Item3184 bucket105 + Bucket106("Bucket 106 (listItem)

ROOT __Item{106}ᐸ3309ᐳ[3310]"):::bucket classDef bucket106 stroke:#0000ff - class Bucket106,__Item846 bucket106 - Bucket107("Bucket 107 (listItem)

ROOT __Item{107}ᐸ848ᐳ[849]"):::bucket + class Bucket106,__Item3310 bucket106 + Bucket107("Bucket 107 (listItem)

ROOT __Item{107}ᐸ3311ᐳ[3312]"):::bucket classDef bucket107 stroke:#7fff00 - class Bucket107,__Item849 bucket107 - Bucket108("Bucket 108 (nullableBoundary)
Deps: 854

ROOT PgSelectSingle{84}ᐸpostᐳ[854]"):::bucket + class Bucket107,__Item3312 bucket107 + Bucket108("Bucket 108 (listItem)

ROOT __Item{108}ᐸ3314ᐳ[3315]"):::bucket classDef bucket108 stroke:#ff1493 - class Bucket108,PgClassExpression855,PgClassExpression856 bucket108 - Bucket109("Bucket 109 (nullableBoundary)
Deps: 861

ROOT PgSelectSingle{84}ᐸpostᐳ[861]"):::bucket + class Bucket108,__Item3315 bucket108 + Bucket109("Bucket 109 (listItem)

ROOT __Item{109}ᐸ3331ᐳ[3332]"):::bucket classDef bucket109 stroke:#808000 - class Bucket109,PgClassExpression862,PgClassExpression863 bucket109 - Bucket110("Bucket 110 (listItem)

ROOT __Item{110}ᐸ865ᐳ[866]"):::bucket + class Bucket109,__Item3332 bucket109 + Bucket110("Bucket 110 (listItem)
Deps: 11, 3412, 3426, 3433, 3447, 3462, 3476, 3483, 3497, 3554, 3567, 3574, 3588, 3602, 3615, 3622, 3636

ROOT __Item{110}ᐸ3339ᐳ[3340]
1:
ᐳ: 3341, 3342, 3343, 3344, 3345, 3346, 3347, 3348, 3349, 3350, 3352, 3353, 3354, 3356, 3357, 3358, 3365, 3372, 3379, 3386, 3387, 3388, 3389, 3390, 3391, 3398, 3406, 3407, 3423, 3459, 3473, 3509, 3512, 3515, 3516, 3517, 3518, 3519, 3520, 3521, 3522, 3523, 3524, 3525, 3526, 3528, 3530, 3531, 3547, 3548
2: 3408, 3424, 3460, 3474, 3533, 3540, 3552, 3565, 3600, 3613
3: 3414, 3428, 3464, 3478, 3536, 3543, 3556, 3569, 3604, 3617
ᐳ: 3413, 3415, 3416, 3417, 3418, 3419, 3420, 3421, 3422, 3427, 3429, 3430, 3444, 3458, 3463, 3465, 3466, 3467, 3468, 3469, 3470, 3471, 3472, 3477, 3479, 3480, 3494, 3508, 3535, 3537, 3538, 3539, 3542, 3544, 3545, 3546, 3555, 3557, 3558, 3559, 3560, 3561, 3562, 3563, 3564, 3568, 3570, 3571, 3585, 3599, 3603, 3605, 3606, 3607, 3608, 3609, 3610, 3611, 3612, 3616, 3618, 3619, 3633, 3647
4: 3431, 3445, 3481, 3495, 3572, 3586, 3620, 3634
5: 3435, 3449, 3485, 3499, 3576, 3590, 3624, 3638
ᐳ: 3434, 3436, 3437, 3438, 3439, 3440, 3441, 3442, 3443, 3448, 3450, 3451, 3452, 3453, 3454, 3455, 3456, 3457, 3484, 3486, 3487, 3488, 3489, 3490, 3491, 3492, 3493, 3498, 3500, 3501, 3502, 3503, 3504, 3505, 3506, 3507, 3575, 3577, 3578, 3579, 3580, 3581, 3582, 3583, 3584, 3589, 3591, 3592, 3593, 3594, 3595, 3596, 3597, 3598, 3623, 3625, 3626, 3627, 3628, 3629, 3630, 3631, 3632, 3637, 3639, 3640, 3641, 3642, 3643, 3644, 3645, 3646"):::bucket classDef bucket110 stroke:#dda0dd - class Bucket110,__Item866 bucket110 - Bucket111("Bucket 111 (nullableBoundary)
Deps: 875, 12

ROOT PgSelectSingleᐸtypesᐳ[875]
1:
ᐳ: 876, 877, 878, 879, 880, 881, 882, 883, 884, 886, 887, 888, 890, 891, 892, 899, 906, 913, 920, 921, 922, 923, 924, 925, 932, 940, 941, 956, 989, 1002, 1037, 1040, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1056, 1058, 1059, 1075, 1076, 900, 903, 907, 910, 914, 917
2: 942, 957, 990, 1003, 1061, 1068
3: 947, 960, 993, 1006, 1064, 1071
ᐳ: 946, 948, 949, 950, 951, 952, 953, 954, 955, 959, 961, 962, 975, 988, 992, 994, 1005, 1007, 1063, 1065, 1070, 1072
4: PgSelect[963], PgSelect[976]
5: PgSelectRows[966], PgSelectRows[979]
ᐳ: 965, 967, 978, 980"):::bucket + class Bucket110,__Item3340,PgSelectSingle3341,PgClassExpression3342,PgClassExpression3343,PgClassExpression3344,PgClassExpression3345,PgClassExpression3346,PgClassExpression3347,PgClassExpression3348,PgClassExpression3349,PgClassExpression3350,PgClassExpression3352,PgClassExpression3353,PgClassExpression3354,PgClassExpression3356,PgClassExpression3357,PgClassExpression3358,PgClassExpression3365,PgClassExpression3372,PgClassExpression3379,PgClassExpression3386,PgClassExpression3387,PgClassExpression3388,PgClassExpression3389,PgClassExpression3390,PgClassExpression3391,PgClassExpression3398,PgClassExpression3406,PgClassExpression3407,PgSelect3408,First3413,PgSelectRows3414,PgSelectSingle3415,PgClassExpression3416,PgClassExpression3417,PgClassExpression3418,PgClassExpression3419,PgClassExpression3420,PgClassExpression3421,PgClassExpression3422,PgClassExpression3423,PgSelect3424,First3427,PgSelectRows3428,PgSelectSingle3429,PgClassExpression3430,PgSelect3431,First3434,PgSelectRows3435,PgSelectSingle3436,PgClassExpression3437,PgClassExpression3438,PgClassExpression3439,PgClassExpression3440,PgClassExpression3441,PgClassExpression3442,PgClassExpression3443,PgClassExpression3444,PgSelect3445,First3448,PgSelectRows3449,PgSelectSingle3450,PgClassExpression3451,PgClassExpression3452,PgClassExpression3453,PgClassExpression3454,PgClassExpression3455,PgClassExpression3456,PgClassExpression3457,PgClassExpression3458,PgClassExpression3459,PgSelect3460,First3463,PgSelectRows3464,PgSelectSingle3465,PgClassExpression3466,PgClassExpression3467,PgClassExpression3468,PgClassExpression3469,PgClassExpression3470,PgClassExpression3471,PgClassExpression3472,PgClassExpression3473,PgSelect3474,First3477,PgSelectRows3478,PgSelectSingle3479,PgClassExpression3480,PgSelect3481,First3484,PgSelectRows3485,PgSelectSingle3486,PgClassExpression3487,PgClassExpression3488,PgClassExpression3489,PgClassExpression3490,PgClassExpression3491,PgClassExpression3492,PgClassExpression3493,PgClassExpression3494,PgSelect3495,First3498,PgSelectRows3499,PgSelectSingle3500,PgClassExpression3501,PgClassExpression3502,PgClassExpression3503,PgClassExpression3504,PgClassExpression3505,PgClassExpression3506,PgClassExpression3507,PgClassExpression3508,PgClassExpression3509,PgClassExpression3512,PgClassExpression3515,PgClassExpression3516,PgClassExpression3517,PgClassExpression3518,PgClassExpression3519,PgClassExpression3520,PgClassExpression3521,PgClassExpression3522,PgClassExpression3523,PgClassExpression3524,PgClassExpression3525,PgClassExpression3526,PgClassExpression3528,PgClassExpression3530,PgClassExpression3531,PgSelect3533,First3535,PgSelectRows3536,PgSelectSingle3537,PgClassExpression3538,PgClassExpression3539,PgSelect3540,First3542,PgSelectRows3543,PgSelectSingle3544,PgClassExpression3545,PgClassExpression3546,PgClassExpression3547,PgClassExpression3548,PgSelect3552,First3555,PgSelectRows3556,PgSelectSingle3557,PgClassExpression3558,PgClassExpression3559,PgClassExpression3560,PgClassExpression3561,PgClassExpression3562,PgClassExpression3563,PgClassExpression3564,PgSelect3565,First3568,PgSelectRows3569,PgSelectSingle3570,PgClassExpression3571,PgSelect3572,First3575,PgSelectRows3576,PgSelectSingle3577,PgClassExpression3578,PgClassExpression3579,PgClassExpression3580,PgClassExpression3581,PgClassExpression3582,PgClassExpression3583,PgClassExpression3584,PgClassExpression3585,PgSelect3586,First3589,PgSelectRows3590,PgSelectSingle3591,PgClassExpression3592,PgClassExpression3593,PgClassExpression3594,PgClassExpression3595,PgClassExpression3596,PgClassExpression3597,PgClassExpression3598,PgClassExpression3599,PgSelect3600,First3603,PgSelectRows3604,PgSelectSingle3605,PgClassExpression3606,PgClassExpression3607,PgClassExpression3608,PgClassExpression3609,PgClassExpression3610,PgClassExpression3611,PgClassExpression3612,PgSelect3613,First3616,PgSelectRows3617,PgSelectSingle3618,PgClassExpression3619,PgSelect3620,First3623,PgSelectRows3624,PgSelectSingle3625,PgClassExpression3626,PgClassExpression3627,PgClassExpression3628,PgClassExpression3629,PgClassExpression3630,PgClassExpression3631,PgClassExpression3632,PgClassExpression3633,PgSelect3634,First3637,PgSelectRows3638,PgSelectSingle3639,PgClassExpression3640,PgClassExpression3641,PgClassExpression3642,PgClassExpression3643,PgClassExpression3644,PgClassExpression3645,PgClassExpression3646,PgClassExpression3647 bucket110 + Bucket111("Bucket 111 (listItem)

ROOT __Item{111}ᐸ3350ᐳ[3351]"):::bucket classDef bucket111 stroke:#ff0000 - class Bucket111,PgClassExpression876,PgClassExpression877,PgClassExpression878,PgClassExpression879,PgClassExpression880,PgClassExpression881,PgClassExpression882,PgClassExpression883,PgClassExpression884,PgClassExpression886,PgClassExpression887,PgClassExpression888,PgClassExpression890,PgClassExpression891,PgClassExpression892,PgClassExpression899,Access900,Access903,PgClassExpression906,Access907,Access910,PgClassExpression913,Access914,Access917,PgClassExpression920,PgClassExpression921,PgClassExpression922,PgClassExpression923,PgClassExpression924,PgClassExpression925,PgClassExpression932,PgClassExpression940,PgClassExpression941,PgSelect942,First946,PgSelectRows947,PgSelectSingle948,PgClassExpression949,PgClassExpression950,PgClassExpression951,PgClassExpression952,PgClassExpression953,PgClassExpression954,PgClassExpression955,PgClassExpression956,PgSelect957,First959,PgSelectRows960,PgSelectSingle961,PgClassExpression962,PgSelect963,First965,PgSelectRows966,PgSelectSingle967,PgClassExpression975,PgSelect976,First978,PgSelectRows979,PgSelectSingle980,PgClassExpression988,PgClassExpression989,PgSelect990,First992,PgSelectRows993,PgSelectSingle994,PgClassExpression1002,PgSelect1003,First1005,PgSelectRows1006,PgSelectSingle1007,PgClassExpression1037,PgClassExpression1040,PgClassExpression1043,PgClassExpression1044,PgClassExpression1045,PgClassExpression1046,PgClassExpression1047,PgClassExpression1048,PgClassExpression1049,PgClassExpression1050,PgClassExpression1051,PgClassExpression1052,PgClassExpression1053,PgClassExpression1054,PgClassExpression1056,PgClassExpression1058,PgClassExpression1059,PgSelect1061,First1063,PgSelectRows1064,PgSelectSingle1065,PgSelect1068,First1070,PgSelectRows1071,PgSelectSingle1072,PgClassExpression1075,PgClassExpression1076 bucket111 - Bucket112("Bucket 112 (listItem)

ROOT __Item{112}ᐸ884ᐳ[885]"):::bucket + class Bucket111,__Item3351 bucket111 + Bucket112("Bucket 112 (listItem)

ROOT __Item{112}ᐸ3354ᐳ[3355]"):::bucket classDef bucket112 stroke:#ffff00 - class Bucket112,__Item885 bucket112 - Bucket113("Bucket 113 (listItem)

ROOT __Item{113}ᐸ888ᐳ[889]"):::bucket + class Bucket112,__Item3355 bucket112 + Bucket113("Bucket 113 (listItem)

ROOT __Item{113}ᐸ3398ᐳ[3399]"):::bucket classDef bucket113 stroke:#00ffff - class Bucket113,__Item889 bucket113 - Bucket114("Bucket 114 (nullableBoundary)
Deps: 892

ROOT PgClassExpression{111}ᐸ__types__....ble_range”ᐳ[892]"):::bucket + class Bucket113,__Item3399 bucket113 + Bucket114("Bucket 114 (listItem)

ROOT __Item{114}ᐸ3526ᐳ[3527]"):::bucket classDef bucket114 stroke:#4169e1 - class Bucket114,Access893,Access896 bucket114 - Bucket115("Bucket 115 (nullableBoundary)
Deps: 893, 892

ROOT Access{114}ᐸ892.startᐳ[893]"):::bucket + class Bucket114,__Item3527 bucket114 + Bucket115("Bucket 115 (listItem)

ROOT __Item{115}ᐸ3528ᐳ[3529]"):::bucket classDef bucket115 stroke:#3cb371 - class Bucket115 bucket115 - Bucket116("Bucket 116 (nullableBoundary)
Deps: 896, 892

ROOT Access{114}ᐸ892.endᐳ[896]"):::bucket + class Bucket115,__Item3529 bucket115 + Bucket116("Bucket 116 (listItem)

ROOT __Item{116}ᐸ3531ᐳ[3532]"):::bucket classDef bucket116 stroke:#a52a2a - class Bucket116 bucket116 - Bucket117("Bucket 117 (nullableBoundary)
Deps: 900, 899

ROOT Access{111}ᐸ899.startᐳ[900]"):::bucket + class Bucket116,__Item3532 bucket116 + Bucket117("Bucket 117 (listItem)

ROOT __Item{117}ᐸ3548ᐳ[3549]"):::bucket classDef bucket117 stroke:#ff00ff - class Bucket117 bucket117 - Bucket118("Bucket 118 (nullableBoundary)
Deps: 903, 899

ROOT Access{111}ᐸ899.endᐳ[903]"):::bucket - classDef bucket118 stroke:#f5deb3 - class Bucket118 bucket118 - Bucket119("Bucket 119 (nullableBoundary)
Deps: 907, 906

ROOT Access{111}ᐸ906.startᐳ[907]"):::bucket - classDef bucket119 stroke:#696969 - class Bucket119 bucket119 - Bucket120("Bucket 120 (nullableBoundary)
Deps: 910, 906

ROOT Access{111}ᐸ906.endᐳ[910]"):::bucket - classDef bucket120 stroke:#00bfff - class Bucket120 bucket120 - Bucket121("Bucket 121 (nullableBoundary)
Deps: 914, 913

ROOT Access{111}ᐸ913.startᐳ[914]"):::bucket - classDef bucket121 stroke:#7f007f - class Bucket121 bucket121 - Bucket122("Bucket 122 (nullableBoundary)
Deps: 917, 913

ROOT Access{111}ᐸ913.endᐳ[917]"):::bucket - classDef bucket122 stroke:#ffa500 - class Bucket122 bucket122 - Bucket123("Bucket 123 (listItem)

ROOT __Item{123}ᐸ932ᐳ[933]"):::bucket - classDef bucket123 stroke:#0000ff - class Bucket123,__Item933 bucket123 - Bucket124("Bucket 124 (nullableBoundary)
Deps: 933

ROOT __Item{123}ᐸ932ᐳ[933]"):::bucket - classDef bucket124 stroke:#7fff00 - class Bucket124 bucket124 - Bucket125("Bucket 125 (nullableBoundary)
Deps: 967

ROOT PgSelectSingle{111}ᐸfrmcdc_compoundTypeᐳ[967]"):::bucket - classDef bucket125 stroke:#ff1493 - class Bucket125,PgClassExpression968,PgClassExpression969,PgClassExpression970,PgClassExpression971,PgClassExpression972,PgClassExpression973,PgClassExpression974 bucket125 - Bucket126("Bucket 126 (nullableBoundary)
Deps: 980

ROOT PgSelectSingle{111}ᐸfrmcdc_compoundTypeᐳ[980]"):::bucket - classDef bucket126 stroke:#808000 - class Bucket126,PgClassExpression981,PgClassExpression982,PgClassExpression983,PgClassExpression984,PgClassExpression985,PgClassExpression986,PgClassExpression987 bucket126 - Bucket127("Bucket 127 (nullableBoundary)
Deps: 994

ROOT PgSelectSingle{111}ᐸfrmcdc_compoundTypeᐳ[994]"):::bucket - classDef bucket127 stroke:#dda0dd - class Bucket127,PgClassExpression995,PgClassExpression996,PgClassExpression997,PgClassExpression998,PgClassExpression999,PgClassExpression1000,PgClassExpression1001 bucket127 - Bucket128("Bucket 128 (nullableBoundary)
Deps: 1007, 12

ROOT PgSelectSingle{111}ᐸfrmcdc_nestedCompoundTypeᐳ[1007]
1:
ᐳ: 1008, 1023, 1036
2: PgSelect[1009], PgSelect[1024]
3: PgSelectRows[1014], PgSelectRows[1027]
ᐳ: 1013, 1015, 1026, 1028"):::bucket - classDef bucket128 stroke:#ff0000 - class Bucket128,PgClassExpression1008,PgSelect1009,First1013,PgSelectRows1014,PgSelectSingle1015,PgClassExpression1023,PgSelect1024,First1026,PgSelectRows1027,PgSelectSingle1028,PgClassExpression1036 bucket128 - Bucket129("Bucket 129 (nullableBoundary)
Deps: 1015

ROOT PgSelectSingle{128}ᐸfrmcdc_compoundTypeᐳ[1015]"):::bucket - classDef bucket129 stroke:#ffff00 - class Bucket129,PgClassExpression1016,PgClassExpression1017,PgClassExpression1018,PgClassExpression1019,PgClassExpression1020,PgClassExpression1021,PgClassExpression1022 bucket129 - Bucket130("Bucket 130 (nullableBoundary)
Deps: 1028

ROOT PgSelectSingle{128}ᐸfrmcdc_compoundTypeᐳ[1028]"):::bucket - classDef bucket130 stroke:#00ffff - class Bucket130,PgClassExpression1029,PgClassExpression1030,PgClassExpression1031,PgClassExpression1032,PgClassExpression1033,PgClassExpression1034,PgClassExpression1035 bucket130 - Bucket131("Bucket 131 (nullableBoundary)
Deps: 1040

ROOT PgClassExpression{111}ᐸ__types__....ablePoint”ᐳ[1040]"):::bucket - classDef bucket131 stroke:#4169e1 - class Bucket131 bucket131 - Bucket132("Bucket 132 (listItem)

ROOT __Item{132}ᐸ1054ᐳ[1055]"):::bucket - classDef bucket132 stroke:#3cb371 - class Bucket132,__Item1055 bucket132 - Bucket133("Bucket 133 (listItem)

ROOT __Item{133}ᐸ1056ᐳ[1057]"):::bucket - classDef bucket133 stroke:#a52a2a - class Bucket133,__Item1057 bucket133 - Bucket134("Bucket 134 (listItem)

ROOT __Item{134}ᐸ1059ᐳ[1060]"):::bucket - classDef bucket134 stroke:#ff00ff - class Bucket134,__Item1060 bucket134 - Bucket135("Bucket 135 (nullableBoundary)
Deps: 1065

ROOT PgSelectSingle{111}ᐸpostᐳ[1065]"):::bucket - classDef bucket135 stroke:#f5deb3 - class Bucket135,PgClassExpression1066,PgClassExpression1067 bucket135 - Bucket136("Bucket 136 (nullableBoundary)
Deps: 1072

ROOT PgSelectSingle{111}ᐸpostᐳ[1072]"):::bucket - classDef bucket136 stroke:#696969 - class Bucket136,PgClassExpression1073,PgClassExpression1074 bucket136 - Bucket137("Bucket 137 (listItem)

ROOT __Item{137}ᐸ1076ᐳ[1077]"):::bucket - classDef bucket137 stroke:#00bfff - class Bucket137,__Item1077 bucket137 - Bucket138("Bucket 138 (polymorphic)
Query,Input,Patch,Reserved,ReservedPatchRecord,ReservedInputRecord,DefaultValue,CompoundKey,Person,Post,Type,PersonSecret,LeftArm,MyTable,ViewTable,SimilarTable1,SimilarTable2,NullTestRecord,Issue756,List
Deps: 12, 1080, 1079, 4
ᐳQuery
ᐳInput
ᐳPatch
ᐳReserved
ᐳReservedPatchRecord
ᐳReservedInputRecord
ᐳDefaultValue
ᐳCompoundKey
ᐳPerson
ᐳPost
ᐳType
ᐳPersonSecret
ᐳLeftArm
ᐳMyTable
ᐳViewTable
ᐳSimilarTable1
ᐳSimilarTable2
ᐳNullTestRecord
ᐳIssue756
ᐳList

1:
ᐳ: Access[3805], Access[3806]
2: 1085, 1093, 1099, 1105, 1111, 1117, 1125, 1131, 1137, 1143, 1349, 1355, 1361, 1367, 1373, 1379, 1385, 1391, 1397
3: 1090, 1096, 1102, 1108, 1114, 1120, 1128, 1134, 1140, 1146, 1352, 1358, 1364, 1370, 1376, 1382, 1388, 1394, 1400
ᐳ: 1089, 1091, 1095, 1097, 1101, 1103, 1107, 1109, 1113, 1115, 1119, 1121, 1127, 1129, 1133, 1135, 1139, 1141, 1145, 1147, 1148, 1149, 1150, 1151, 1152, 1153, 1154, 1155, 1156, 1158, 1159, 1160, 1162, 1163, 1164, 1171, 1172, 1175, 1178, 1179, 1182, 1185, 1186, 1189, 1192, 1193, 1194, 1195, 1196, 1197, 1204, 1212, 1213, 1226, 1259, 1272, 1307, 1310, 1313, 1314, 1315, 1316, 1317, 1318, 1319, 1320, 1321, 1322, 1323, 1324, 1326, 1328, 1329, 1345, 1346, 1351, 1353, 1357, 1359, 1363, 1365, 1369, 1371, 1375, 1377, 1381, 1383, 1387, 1389, 1393, 1395, 1399, 1401
4: 1214, 1227, 1260, 1273, 1331, 1338
5: 1217, 1230, 1263, 1276, 1334, 1341
ᐳ: 1216, 1218, 1219, 1220, 1221, 1222, 1223, 1224, 1225, 1229, 1231, 1232, 1245, 1258, 1262, 1264, 1275, 1277, 1333, 1335, 1340, 1342
6: PgSelect[1233], PgSelect[1246]
7: PgSelectRows[1236], PgSelectRows[1249]
ᐳ: 1235, 1237, 1248, 1250"):::bucket - classDef bucket138 stroke:#7f007f - class Bucket138,PgSelect1085,First1089,PgSelectRows1090,PgSelectSingle1091,PgSelect1093,First1095,PgSelectRows1096,PgSelectSingle1097,PgSelect1099,First1101,PgSelectRows1102,PgSelectSingle1103,PgSelect1105,First1107,PgSelectRows1108,PgSelectSingle1109,PgSelect1111,First1113,PgSelectRows1114,PgSelectSingle1115,PgSelect1117,First1119,PgSelectRows1120,PgSelectSingle1121,PgSelect1125,First1127,PgSelectRows1128,PgSelectSingle1129,PgSelect1131,First1133,PgSelectRows1134,PgSelectSingle1135,PgSelect1137,First1139,PgSelectRows1140,PgSelectSingle1141,PgSelect1143,First1145,PgSelectRows1146,PgSelectSingle1147,PgClassExpression1148,PgClassExpression1149,PgClassExpression1150,PgClassExpression1151,PgClassExpression1152,PgClassExpression1153,PgClassExpression1154,PgClassExpression1155,PgClassExpression1156,PgClassExpression1158,PgClassExpression1159,PgClassExpression1160,PgClassExpression1162,PgClassExpression1163,PgClassExpression1164,PgClassExpression1171,Access1172,Access1175,PgClassExpression1178,Access1179,Access1182,PgClassExpression1185,Access1186,Access1189,PgClassExpression1192,PgClassExpression1193,PgClassExpression1194,PgClassExpression1195,PgClassExpression1196,PgClassExpression1197,PgClassExpression1204,PgClassExpression1212,PgClassExpression1213,PgSelect1214,First1216,PgSelectRows1217,PgSelectSingle1218,PgClassExpression1219,PgClassExpression1220,PgClassExpression1221,PgClassExpression1222,PgClassExpression1223,PgClassExpression1224,PgClassExpression1225,PgClassExpression1226,PgSelect1227,First1229,PgSelectRows1230,PgSelectSingle1231,PgClassExpression1232,PgSelect1233,First1235,PgSelectRows1236,PgSelectSingle1237,PgClassExpression1245,PgSelect1246,First1248,PgSelectRows1249,PgSelectSingle1250,PgClassExpression1258,PgClassExpression1259,PgSelect1260,First1262,PgSelectRows1263,PgSelectSingle1264,PgClassExpression1272,PgSelect1273,First1275,PgSelectRows1276,PgSelectSingle1277,PgClassExpression1307,PgClassExpression1310,PgClassExpression1313,PgClassExpression1314,PgClassExpression1315,PgClassExpression1316,PgClassExpression1317,PgClassExpression1318,PgClassExpression1319,PgClassExpression1320,PgClassExpression1321,PgClassExpression1322,PgClassExpression1323,PgClassExpression1324,PgClassExpression1326,PgClassExpression1328,PgClassExpression1329,PgSelect1331,First1333,PgSelectRows1334,PgSelectSingle1335,PgSelect1338,First1340,PgSelectRows1341,PgSelectSingle1342,PgClassExpression1345,PgClassExpression1346,PgSelect1349,First1351,PgSelectRows1352,PgSelectSingle1353,PgSelect1355,First1357,PgSelectRows1358,PgSelectSingle1359,PgSelect1361,First1363,PgSelectRows1364,PgSelectSingle1365,PgSelect1367,First1369,PgSelectRows1370,PgSelectSingle1371,PgSelect1373,First1375,PgSelectRows1376,PgSelectSingle1377,PgSelect1379,First1381,PgSelectRows1382,PgSelectSingle1383,PgSelect1385,First1387,PgSelectRows1388,PgSelectSingle1389,PgSelect1391,First1393,PgSelectRows1394,PgSelectSingle1395,PgSelect1397,First1399,PgSelectRows1400,PgSelectSingle1401,Access3805,Access3806 bucket138 - Bucket139("Bucket 139 (listItem)

ROOT __Item{139}ᐸ1156ᐳ[1157]"):::bucket - classDef bucket139 stroke:#ffa500 - class Bucket139,__Item1157 bucket139 - Bucket140("Bucket 140 (listItem)

ROOT __Item{140}ᐸ1160ᐳ[1161]"):::bucket - classDef bucket140 stroke:#0000ff - class Bucket140,__Item1161 bucket140 - Bucket141("Bucket 141 (nullableBoundary)
Deps: 1164

ROOT PgClassExpression{138}ᐸ__types__....ble_range”ᐳ[1164]"):::bucket - classDef bucket141 stroke:#7fff00 - class Bucket141,Access1165,Access1168 bucket141 - Bucket142("Bucket 142 (nullableBoundary)
Deps: 1165, 1164

ROOT Access{141}ᐸ1164.startᐳ[1165]"):::bucket - classDef bucket142 stroke:#ff1493 - class Bucket142 bucket142 - Bucket143("Bucket 143 (nullableBoundary)
Deps: 1168, 1164

ROOT Access{141}ᐸ1164.endᐳ[1168]"):::bucket - classDef bucket143 stroke:#808000 - class Bucket143 bucket143 - Bucket144("Bucket 144 (nullableBoundary)
Deps: 1172, 1171

ROOT Access{138}ᐸ1171.startᐳ[1172]"):::bucket - classDef bucket144 stroke:#dda0dd - class Bucket144 bucket144 - Bucket145("Bucket 145 (nullableBoundary)
Deps: 1175, 1171

ROOT Access{138}ᐸ1171.endᐳ[1175]"):::bucket - classDef bucket145 stroke:#ff0000 - class Bucket145 bucket145 - Bucket146("Bucket 146 (nullableBoundary)
Deps: 1179, 1178

ROOT Access{138}ᐸ1178.startᐳ[1179]"):::bucket - classDef bucket146 stroke:#ffff00 - class Bucket146 bucket146 - Bucket147("Bucket 147 (nullableBoundary)
Deps: 1182, 1178

ROOT Access{138}ᐸ1178.endᐳ[1182]"):::bucket - classDef bucket147 stroke:#00ffff - class Bucket147 bucket147 - Bucket148("Bucket 148 (nullableBoundary)
Deps: 1186, 1185

ROOT Access{138}ᐸ1185.startᐳ[1186]"):::bucket - classDef bucket148 stroke:#4169e1 - class Bucket148 bucket148 - Bucket149("Bucket 149 (nullableBoundary)
Deps: 1189, 1185

ROOT Access{138}ᐸ1185.endᐳ[1189]"):::bucket - classDef bucket149 stroke:#3cb371 - class Bucket149 bucket149 - Bucket150("Bucket 150 (listItem)

ROOT __Item{150}ᐸ1204ᐳ[1205]"):::bucket - classDef bucket150 stroke:#a52a2a - class Bucket150,__Item1205 bucket150 - Bucket151("Bucket 151 (nullableBoundary)
Deps: 1205

ROOT __Item{150}ᐸ1204ᐳ[1205]"):::bucket - classDef bucket151 stroke:#ff00ff - class Bucket151 bucket151 - Bucket152("Bucket 152 (nullableBoundary)
Deps: 1237

ROOT PgSelectSingle{138}ᐸfrmcdc_compoundTypeᐳ[1237]"):::bucket - classDef bucket152 stroke:#f5deb3 - class Bucket152,PgClassExpression1238,PgClassExpression1239,PgClassExpression1240,PgClassExpression1241,PgClassExpression1242,PgClassExpression1243,PgClassExpression1244 bucket152 - Bucket153("Bucket 153 (nullableBoundary)
Deps: 1250

ROOT PgSelectSingle{138}ᐸfrmcdc_compoundTypeᐳ[1250]"):::bucket - classDef bucket153 stroke:#696969 - class Bucket153,PgClassExpression1251,PgClassExpression1252,PgClassExpression1253,PgClassExpression1254,PgClassExpression1255,PgClassExpression1256,PgClassExpression1257 bucket153 - Bucket154("Bucket 154 (nullableBoundary)
Deps: 1264

ROOT PgSelectSingle{138}ᐸfrmcdc_compoundTypeᐳ[1264]"):::bucket - classDef bucket154 stroke:#00bfff - class Bucket154,PgClassExpression1265,PgClassExpression1266,PgClassExpression1267,PgClassExpression1268,PgClassExpression1269,PgClassExpression1270,PgClassExpression1271 bucket154 - Bucket155("Bucket 155 (nullableBoundary)
Deps: 1277, 12

ROOT PgSelectSingle{138}ᐸfrmcdc_nestedCompoundTypeᐳ[1277]
1:
ᐳ: 1278, 1293, 1306
2: PgSelect[1279], PgSelect[1294]
3: PgSelectRows[1284], PgSelectRows[1297]
ᐳ: 1283, 1285, 1296, 1298"):::bucket - classDef bucket155 stroke:#7f007f - class Bucket155,PgClassExpression1278,PgSelect1279,First1283,PgSelectRows1284,PgSelectSingle1285,PgClassExpression1293,PgSelect1294,First1296,PgSelectRows1297,PgSelectSingle1298,PgClassExpression1306 bucket155 - Bucket156("Bucket 156 (nullableBoundary)
Deps: 1285

ROOT PgSelectSingle{155}ᐸfrmcdc_compoundTypeᐳ[1285]"):::bucket - classDef bucket156 stroke:#ffa500 - class Bucket156,PgClassExpression1286,PgClassExpression1287,PgClassExpression1288,PgClassExpression1289,PgClassExpression1290,PgClassExpression1291,PgClassExpression1292 bucket156 - Bucket157("Bucket 157 (nullableBoundary)
Deps: 1298

ROOT PgSelectSingle{155}ᐸfrmcdc_compoundTypeᐳ[1298]"):::bucket - classDef bucket157 stroke:#0000ff - class Bucket157,PgClassExpression1299,PgClassExpression1300,PgClassExpression1301,PgClassExpression1302,PgClassExpression1303,PgClassExpression1304,PgClassExpression1305 bucket157 - Bucket158("Bucket 158 (nullableBoundary)
Deps: 1310

ROOT PgClassExpression{138}ᐸ__types__....ablePoint”ᐳ[1310]"):::bucket - classDef bucket158 stroke:#7fff00 - class Bucket158 bucket158 - Bucket159("Bucket 159 (listItem)

ROOT __Item{159}ᐸ1324ᐳ[1325]"):::bucket - classDef bucket159 stroke:#ff1493 - class Bucket159,__Item1325 bucket159 - Bucket160("Bucket 160 (listItem)

ROOT __Item{160}ᐸ1326ᐳ[1327]"):::bucket - classDef bucket160 stroke:#808000 - class Bucket160,__Item1327 bucket160 - Bucket161("Bucket 161 (listItem)

ROOT __Item{161}ᐸ1329ᐳ[1330]"):::bucket - classDef bucket161 stroke:#dda0dd - class Bucket161,__Item1330 bucket161 - Bucket162("Bucket 162 (nullableBoundary)
Deps: 1335

ROOT PgSelectSingle{138}ᐸpostᐳ[1335]"):::bucket - classDef bucket162 stroke:#ff0000 - class Bucket162,PgClassExpression1336,PgClassExpression1337 bucket162 - Bucket163("Bucket 163 (nullableBoundary)
Deps: 1342

ROOT PgSelectSingle{138}ᐸpostᐳ[1342]"):::bucket - classDef bucket163 stroke:#ffff00 - class Bucket163,PgClassExpression1343,PgClassExpression1344 bucket163 - Bucket164("Bucket 164 (listItem)

ROOT __Item{164}ᐸ1346ᐳ[1347]"):::bucket - classDef bucket164 stroke:#00ffff - class Bucket164,__Item1347 bucket164 - Bucket165("Bucket 165 (nullableBoundary)
Deps: 1407, 12

ROOT PgSelectSingleᐸtype_functionᐳ[1407]
1:
ᐳ: 1408, 1409, 1410, 1411, 1412, 1413, 1414, 1415, 1416, 1418, 1419, 1420, 1422, 1423, 1424, 1431, 1438, 1445, 1452, 1453, 1454, 1455, 1456, 1457, 1464, 1472, 1473, 1488, 1521, 1534, 1569, 1572, 1575, 1576, 1577, 1578, 1579, 1580, 1581, 1582, 1583, 1584, 1585, 1586, 1588, 1590, 1591, 1607, 1608, 1432, 1435, 1439, 1442, 1446, 1449
2: 1474, 1489, 1522, 1535, 1593, 1600
3: 1479, 1492, 1525, 1538, 1596, 1603
ᐳ: 1478, 1480, 1481, 1482, 1483, 1484, 1485, 1486, 1487, 1491, 1493, 1494, 1507, 1520, 1524, 1526, 1537, 1539, 1595, 1597, 1602, 1604
4: PgSelect[1495], PgSelect[1508]
5: PgSelectRows[1498], PgSelectRows[1511]
ᐳ: 1497, 1499, 1510, 1512"):::bucket - classDef bucket165 stroke:#4169e1 - class Bucket165,PgClassExpression1408,PgClassExpression1409,PgClassExpression1410,PgClassExpression1411,PgClassExpression1412,PgClassExpression1413,PgClassExpression1414,PgClassExpression1415,PgClassExpression1416,PgClassExpression1418,PgClassExpression1419,PgClassExpression1420,PgClassExpression1422,PgClassExpression1423,PgClassExpression1424,PgClassExpression1431,Access1432,Access1435,PgClassExpression1438,Access1439,Access1442,PgClassExpression1445,Access1446,Access1449,PgClassExpression1452,PgClassExpression1453,PgClassExpression1454,PgClassExpression1455,PgClassExpression1456,PgClassExpression1457,PgClassExpression1464,PgClassExpression1472,PgClassExpression1473,PgSelect1474,First1478,PgSelectRows1479,PgSelectSingle1480,PgClassExpression1481,PgClassExpression1482,PgClassExpression1483,PgClassExpression1484,PgClassExpression1485,PgClassExpression1486,PgClassExpression1487,PgClassExpression1488,PgSelect1489,First1491,PgSelectRows1492,PgSelectSingle1493,PgClassExpression1494,PgSelect1495,First1497,PgSelectRows1498,PgSelectSingle1499,PgClassExpression1507,PgSelect1508,First1510,PgSelectRows1511,PgSelectSingle1512,PgClassExpression1520,PgClassExpression1521,PgSelect1522,First1524,PgSelectRows1525,PgSelectSingle1526,PgClassExpression1534,PgSelect1535,First1537,PgSelectRows1538,PgSelectSingle1539,PgClassExpression1569,PgClassExpression1572,PgClassExpression1575,PgClassExpression1576,PgClassExpression1577,PgClassExpression1578,PgClassExpression1579,PgClassExpression1580,PgClassExpression1581,PgClassExpression1582,PgClassExpression1583,PgClassExpression1584,PgClassExpression1585,PgClassExpression1586,PgClassExpression1588,PgClassExpression1590,PgClassExpression1591,PgSelect1593,First1595,PgSelectRows1596,PgSelectSingle1597,PgSelect1600,First1602,PgSelectRows1603,PgSelectSingle1604,PgClassExpression1607,PgClassExpression1608 bucket165 - Bucket166("Bucket 166 (listItem)

ROOT __Item{166}ᐸ1416ᐳ[1417]"):::bucket - classDef bucket166 stroke:#3cb371 - class Bucket166,__Item1417 bucket166 - Bucket167("Bucket 167 (listItem)

ROOT __Item{167}ᐸ1420ᐳ[1421]"):::bucket - classDef bucket167 stroke:#a52a2a - class Bucket167,__Item1421 bucket167 - Bucket168("Bucket 168 (nullableBoundary)
Deps: 1424

ROOT PgClassExpression{165}ᐸ__type_fun...ble_range”ᐳ[1424]"):::bucket - classDef bucket168 stroke:#ff00ff - class Bucket168,Access1425,Access1428 bucket168 - Bucket169("Bucket 169 (nullableBoundary)
Deps: 1425, 1424

ROOT Access{168}ᐸ1424.startᐳ[1425]"):::bucket - classDef bucket169 stroke:#f5deb3 - class Bucket169 bucket169 - Bucket170("Bucket 170 (nullableBoundary)
Deps: 1428, 1424

ROOT Access{168}ᐸ1424.endᐳ[1428]"):::bucket - classDef bucket170 stroke:#696969 - class Bucket170 bucket170 - Bucket171("Bucket 171 (nullableBoundary)
Deps: 1432, 1431

ROOT Access{165}ᐸ1431.startᐳ[1432]"):::bucket - classDef bucket171 stroke:#00bfff - class Bucket171 bucket171 - Bucket172("Bucket 172 (nullableBoundary)
Deps: 1435, 1431

ROOT Access{165}ᐸ1431.endᐳ[1435]"):::bucket - classDef bucket172 stroke:#7f007f - class Bucket172 bucket172 - Bucket173("Bucket 173 (nullableBoundary)
Deps: 1439, 1438

ROOT Access{165}ᐸ1438.startᐳ[1439]"):::bucket - classDef bucket173 stroke:#ffa500 - class Bucket173 bucket173 - Bucket174("Bucket 174 (nullableBoundary)
Deps: 1442, 1438

ROOT Access{165}ᐸ1438.endᐳ[1442]"):::bucket - classDef bucket174 stroke:#0000ff - class Bucket174 bucket174 - Bucket175("Bucket 175 (nullableBoundary)
Deps: 1446, 1445

ROOT Access{165}ᐸ1445.startᐳ[1446]"):::bucket - classDef bucket175 stroke:#7fff00 - class Bucket175 bucket175 - Bucket176("Bucket 176 (nullableBoundary)
Deps: 1449, 1445

ROOT Access{165}ᐸ1445.endᐳ[1449]"):::bucket - classDef bucket176 stroke:#ff1493 - class Bucket176 bucket176 - Bucket177("Bucket 177 (listItem)

ROOT __Item{177}ᐸ1464ᐳ[1465]"):::bucket - classDef bucket177 stroke:#808000 - class Bucket177,__Item1465 bucket177 - Bucket178("Bucket 178 (nullableBoundary)
Deps: 1465

ROOT __Item{177}ᐸ1464ᐳ[1465]"):::bucket - classDef bucket178 stroke:#dda0dd - class Bucket178 bucket178 - Bucket179("Bucket 179 (nullableBoundary)
Deps: 1499

ROOT PgSelectSingle{165}ᐸfrmcdc_compoundTypeᐳ[1499]"):::bucket - classDef bucket179 stroke:#ff0000 - class Bucket179,PgClassExpression1500,PgClassExpression1501,PgClassExpression1502,PgClassExpression1503,PgClassExpression1504,PgClassExpression1505,PgClassExpression1506 bucket179 - Bucket180("Bucket 180 (nullableBoundary)
Deps: 1512

ROOT PgSelectSingle{165}ᐸfrmcdc_compoundTypeᐳ[1512]"):::bucket - classDef bucket180 stroke:#ffff00 - class Bucket180,PgClassExpression1513,PgClassExpression1514,PgClassExpression1515,PgClassExpression1516,PgClassExpression1517,PgClassExpression1518,PgClassExpression1519 bucket180 - Bucket181("Bucket 181 (nullableBoundary)
Deps: 1526

ROOT PgSelectSingle{165}ᐸfrmcdc_compoundTypeᐳ[1526]"):::bucket - classDef bucket181 stroke:#00ffff - class Bucket181,PgClassExpression1527,PgClassExpression1528,PgClassExpression1529,PgClassExpression1530,PgClassExpression1531,PgClassExpression1532,PgClassExpression1533 bucket181 - Bucket182("Bucket 182 (nullableBoundary)
Deps: 1539, 12

ROOT PgSelectSingle{165}ᐸfrmcdc_nestedCompoundTypeᐳ[1539]
1:
ᐳ: 1540, 1555, 1568
2: PgSelect[1541], PgSelect[1556]
3: PgSelectRows[1546], PgSelectRows[1559]
ᐳ: 1545, 1547, 1558, 1560"):::bucket - classDef bucket182 stroke:#4169e1 - class Bucket182,PgClassExpression1540,PgSelect1541,First1545,PgSelectRows1546,PgSelectSingle1547,PgClassExpression1555,PgSelect1556,First1558,PgSelectRows1559,PgSelectSingle1560,PgClassExpression1568 bucket182 - Bucket183("Bucket 183 (nullableBoundary)
Deps: 1547

ROOT PgSelectSingle{182}ᐸfrmcdc_compoundTypeᐳ[1547]"):::bucket - classDef bucket183 stroke:#3cb371 - class Bucket183,PgClassExpression1548,PgClassExpression1549,PgClassExpression1550,PgClassExpression1551,PgClassExpression1552,PgClassExpression1553,PgClassExpression1554 bucket183 - Bucket184("Bucket 184 (nullableBoundary)
Deps: 1560

ROOT PgSelectSingle{182}ᐸfrmcdc_compoundTypeᐳ[1560]"):::bucket - classDef bucket184 stroke:#a52a2a - class Bucket184,PgClassExpression1561,PgClassExpression1562,PgClassExpression1563,PgClassExpression1564,PgClassExpression1565,PgClassExpression1566,PgClassExpression1567 bucket184 - Bucket185("Bucket 185 (nullableBoundary)
Deps: 1572

ROOT PgClassExpression{165}ᐸ__type_fun...ablePoint”ᐳ[1572]"):::bucket - classDef bucket185 stroke:#ff00ff - class Bucket185 bucket185 - Bucket186("Bucket 186 (listItem)

ROOT __Item{186}ᐸ1586ᐳ[1587]"):::bucket - classDef bucket186 stroke:#f5deb3 - class Bucket186,__Item1587 bucket186 - Bucket187("Bucket 187 (listItem)

ROOT __Item{187}ᐸ1588ᐳ[1589]"):::bucket - classDef bucket187 stroke:#696969 - class Bucket187,__Item1589 bucket187 - Bucket188("Bucket 188 (listItem)

ROOT __Item{188}ᐸ1591ᐳ[1592]"):::bucket - classDef bucket188 stroke:#00bfff - class Bucket188,__Item1592 bucket188 - Bucket189("Bucket 189 (nullableBoundary)
Deps: 1597

ROOT PgSelectSingle{165}ᐸpostᐳ[1597]"):::bucket - classDef bucket189 stroke:#7f007f - class Bucket189,PgClassExpression1598,PgClassExpression1599 bucket189 - Bucket190("Bucket 190 (nullableBoundary)
Deps: 1604

ROOT PgSelectSingle{165}ᐸpostᐳ[1604]"):::bucket - classDef bucket190 stroke:#ffa500 - class Bucket190,PgClassExpression1605,PgClassExpression1606 bucket190 - Bucket191("Bucket 191 (listItem)

ROOT __Item{191}ᐸ1608ᐳ[1609]"):::bucket - classDef bucket191 stroke:#0000ff - class Bucket191,__Item1609 bucket191 - Bucket192("Bucket 192 (listItem)
Deps: 12

ROOT __Item{192}ᐸ1612ᐳ[1613]"):::bucket - classDef bucket192 stroke:#7fff00 - class Bucket192,__Item1613,PgSelectSingle1614 bucket192 - Bucket193("Bucket 193 (nullableBoundary)
Deps: 1614, 12

ROOT PgSelectSingle{192}ᐸtype_function_listᐳ[1614]
1:
ᐳ: 1615, 1616, 1617, 1618, 1619, 1620, 1621, 1622, 1623, 1625, 1626, 1627, 1629, 1630, 1631, 1638, 1645, 1652, 1659, 1660, 1661, 1662, 1663, 1664, 1671, 1679, 1680, 1695, 1728, 1741, 1776, 1779, 1782, 1783, 1784, 1785, 1786, 1787, 1788, 1789, 1790, 1791, 1792, 1793, 1795, 1797, 1798, 1814, 1815, 1639, 1642, 1646, 1649, 1653, 1656
2: 1681, 1696, 1729, 1742, 1800, 1807
3: 1686, 1699, 1732, 1745, 1803, 1810
ᐳ: 1685, 1687, 1688, 1689, 1690, 1691, 1692, 1693, 1694, 1698, 1700, 1701, 1714, 1727, 1731, 1733, 1744, 1746, 1802, 1804, 1809, 1811
4: PgSelect[1702], PgSelect[1715]
5: PgSelectRows[1705], PgSelectRows[1718]
ᐳ: 1704, 1706, 1717, 1719"):::bucket - classDef bucket193 stroke:#ff1493 - class Bucket193,PgClassExpression1615,PgClassExpression1616,PgClassExpression1617,PgClassExpression1618,PgClassExpression1619,PgClassExpression1620,PgClassExpression1621,PgClassExpression1622,PgClassExpression1623,PgClassExpression1625,PgClassExpression1626,PgClassExpression1627,PgClassExpression1629,PgClassExpression1630,PgClassExpression1631,PgClassExpression1638,Access1639,Access1642,PgClassExpression1645,Access1646,Access1649,PgClassExpression1652,Access1653,Access1656,PgClassExpression1659,PgClassExpression1660,PgClassExpression1661,PgClassExpression1662,PgClassExpression1663,PgClassExpression1664,PgClassExpression1671,PgClassExpression1679,PgClassExpression1680,PgSelect1681,First1685,PgSelectRows1686,PgSelectSingle1687,PgClassExpression1688,PgClassExpression1689,PgClassExpression1690,PgClassExpression1691,PgClassExpression1692,PgClassExpression1693,PgClassExpression1694,PgClassExpression1695,PgSelect1696,First1698,PgSelectRows1699,PgSelectSingle1700,PgClassExpression1701,PgSelect1702,First1704,PgSelectRows1705,PgSelectSingle1706,PgClassExpression1714,PgSelect1715,First1717,PgSelectRows1718,PgSelectSingle1719,PgClassExpression1727,PgClassExpression1728,PgSelect1729,First1731,PgSelectRows1732,PgSelectSingle1733,PgClassExpression1741,PgSelect1742,First1744,PgSelectRows1745,PgSelectSingle1746,PgClassExpression1776,PgClassExpression1779,PgClassExpression1782,PgClassExpression1783,PgClassExpression1784,PgClassExpression1785,PgClassExpression1786,PgClassExpression1787,PgClassExpression1788,PgClassExpression1789,PgClassExpression1790,PgClassExpression1791,PgClassExpression1792,PgClassExpression1793,PgClassExpression1795,PgClassExpression1797,PgClassExpression1798,PgSelect1800,First1802,PgSelectRows1803,PgSelectSingle1804,PgSelect1807,First1809,PgSelectRows1810,PgSelectSingle1811,PgClassExpression1814,PgClassExpression1815 bucket193 - Bucket194("Bucket 194 (listItem)

ROOT __Item{194}ᐸ1623ᐳ[1624]"):::bucket - classDef bucket194 stroke:#808000 - class Bucket194,__Item1624 bucket194 - Bucket195("Bucket 195 (listItem)

ROOT __Item{195}ᐸ1627ᐳ[1628]"):::bucket - classDef bucket195 stroke:#dda0dd - class Bucket195,__Item1628 bucket195 - Bucket196("Bucket 196 (nullableBoundary)
Deps: 1631

ROOT PgClassExpression{193}ᐸ__type_fun...ble_range”ᐳ[1631]"):::bucket - classDef bucket196 stroke:#ff0000 - class Bucket196,Access1632,Access1635 bucket196 - Bucket197("Bucket 197 (nullableBoundary)
Deps: 1632, 1631

ROOT Access{196}ᐸ1631.startᐳ[1632]"):::bucket - classDef bucket197 stroke:#ffff00 - class Bucket197 bucket197 - Bucket198("Bucket 198 (nullableBoundary)
Deps: 1635, 1631

ROOT Access{196}ᐸ1631.endᐳ[1635]"):::bucket - classDef bucket198 stroke:#00ffff - class Bucket198 bucket198 - Bucket199("Bucket 199 (nullableBoundary)
Deps: 1639, 1638

ROOT Access{193}ᐸ1638.startᐳ[1639]"):::bucket - classDef bucket199 stroke:#4169e1 - class Bucket199 bucket199 - Bucket200("Bucket 200 (nullableBoundary)
Deps: 1642, 1638

ROOT Access{193}ᐸ1638.endᐳ[1642]"):::bucket - classDef bucket200 stroke:#3cb371 - class Bucket200 bucket200 - Bucket201("Bucket 201 (nullableBoundary)
Deps: 1646, 1645

ROOT Access{193}ᐸ1645.startᐳ[1646]"):::bucket - classDef bucket201 stroke:#a52a2a - class Bucket201 bucket201 - Bucket202("Bucket 202 (nullableBoundary)
Deps: 1649, 1645

ROOT Access{193}ᐸ1645.endᐳ[1649]"):::bucket - classDef bucket202 stroke:#ff00ff - class Bucket202 bucket202 - Bucket203("Bucket 203 (nullableBoundary)
Deps: 1653, 1652

ROOT Access{193}ᐸ1652.startᐳ[1653]"):::bucket - classDef bucket203 stroke:#f5deb3 - class Bucket203 bucket203 - Bucket204("Bucket 204 (nullableBoundary)
Deps: 1656, 1652

ROOT Access{193}ᐸ1652.endᐳ[1656]"):::bucket - classDef bucket204 stroke:#696969 - class Bucket204 bucket204 - Bucket205("Bucket 205 (listItem)

ROOT __Item{205}ᐸ1671ᐳ[1672]"):::bucket - classDef bucket205 stroke:#00bfff - class Bucket205,__Item1672 bucket205 - Bucket206("Bucket 206 (nullableBoundary)
Deps: 1672

ROOT __Item{205}ᐸ1671ᐳ[1672]"):::bucket - classDef bucket206 stroke:#7f007f - class Bucket206 bucket206 - Bucket207("Bucket 207 (nullableBoundary)
Deps: 1706

ROOT PgSelectSingle{193}ᐸfrmcdc_compoundTypeᐳ[1706]"):::bucket - classDef bucket207 stroke:#ffa500 - class Bucket207,PgClassExpression1707,PgClassExpression1708,PgClassExpression1709,PgClassExpression1710,PgClassExpression1711,PgClassExpression1712,PgClassExpression1713 bucket207 - Bucket208("Bucket 208 (nullableBoundary)
Deps: 1719

ROOT PgSelectSingle{193}ᐸfrmcdc_compoundTypeᐳ[1719]"):::bucket - classDef bucket208 stroke:#0000ff - class Bucket208,PgClassExpression1720,PgClassExpression1721,PgClassExpression1722,PgClassExpression1723,PgClassExpression1724,PgClassExpression1725,PgClassExpression1726 bucket208 - Bucket209("Bucket 209 (nullableBoundary)
Deps: 1733

ROOT PgSelectSingle{193}ᐸfrmcdc_compoundTypeᐳ[1733]"):::bucket - classDef bucket209 stroke:#7fff00 - class Bucket209,PgClassExpression1734,PgClassExpression1735,PgClassExpression1736,PgClassExpression1737,PgClassExpression1738,PgClassExpression1739,PgClassExpression1740 bucket209 - Bucket210("Bucket 210 (nullableBoundary)
Deps: 1746, 12

ROOT PgSelectSingle{193}ᐸfrmcdc_nestedCompoundTypeᐳ[1746]
1:
ᐳ: 1747, 1762, 1775
2: PgSelect[1748], PgSelect[1763]
3: PgSelectRows[1753], PgSelectRows[1766]
ᐳ: 1752, 1754, 1765, 1767"):::bucket - classDef bucket210 stroke:#ff1493 - class Bucket210,PgClassExpression1747,PgSelect1748,First1752,PgSelectRows1753,PgSelectSingle1754,PgClassExpression1762,PgSelect1763,First1765,PgSelectRows1766,PgSelectSingle1767,PgClassExpression1775 bucket210 - Bucket211("Bucket 211 (nullableBoundary)
Deps: 1754

ROOT PgSelectSingle{210}ᐸfrmcdc_compoundTypeᐳ[1754]"):::bucket - classDef bucket211 stroke:#808000 - class Bucket211,PgClassExpression1755,PgClassExpression1756,PgClassExpression1757,PgClassExpression1758,PgClassExpression1759,PgClassExpression1760,PgClassExpression1761 bucket211 - Bucket212("Bucket 212 (nullableBoundary)
Deps: 1767

ROOT PgSelectSingle{210}ᐸfrmcdc_compoundTypeᐳ[1767]"):::bucket - classDef bucket212 stroke:#dda0dd - class Bucket212,PgClassExpression1768,PgClassExpression1769,PgClassExpression1770,PgClassExpression1771,PgClassExpression1772,PgClassExpression1773,PgClassExpression1774 bucket212 - Bucket213("Bucket 213 (nullableBoundary)
Deps: 1779

ROOT PgClassExpression{193}ᐸ__type_fun...ablePoint”ᐳ[1779]"):::bucket - classDef bucket213 stroke:#ff0000 - class Bucket213 bucket213 - Bucket214("Bucket 214 (listItem)

ROOT __Item{214}ᐸ1793ᐳ[1794]"):::bucket - classDef bucket214 stroke:#ffff00 - class Bucket214,__Item1794 bucket214 - Bucket215("Bucket 215 (listItem)

ROOT __Item{215}ᐸ1795ᐳ[1796]"):::bucket - classDef bucket215 stroke:#00ffff - class Bucket215,__Item1796 bucket215 - Bucket216("Bucket 216 (listItem)

ROOT __Item{216}ᐸ1798ᐳ[1799]"):::bucket - classDef bucket216 stroke:#4169e1 - class Bucket216,__Item1799 bucket216 - Bucket217("Bucket 217 (nullableBoundary)
Deps: 1804

ROOT PgSelectSingle{193}ᐸpostᐳ[1804]"):::bucket - classDef bucket217 stroke:#3cb371 - class Bucket217,PgClassExpression1805,PgClassExpression1806 bucket217 - Bucket218("Bucket 218 (nullableBoundary)
Deps: 1811

ROOT PgSelectSingle{193}ᐸpostᐳ[1811]"):::bucket - classDef bucket218 stroke:#a52a2a - class Bucket218,PgClassExpression1812,PgClassExpression1813 bucket218 - Bucket219("Bucket 219 (listItem)

ROOT __Item{219}ᐸ1815ᐳ[1816]"):::bucket - classDef bucket219 stroke:#ff00ff - class Bucket219,__Item1816 bucket219 - Bucket220("Bucket 220 (nullableBoundary)
Deps: 12, 1819, 6

ROOT Connectionᐸ1817ᐳ[1819]
1: PgSelect[1820], PgSelect[2238]
ᐳ: 2244, 2034, 2247, 2248, 2249, 2252, 2253
2: PgSelectRows[1821], PgSelectRows[2240]
ᐳ: 2239, 2241, 2242, 2255, 2257, 2259, 2261, 2263, 2265
3: __ListTransform[2027]"):::bucket - classDef bucket220 stroke:#f5deb3 - class Bucket220,PgSelect1820,PgSelectRows1821,__ListTransform2027,Access2034,PgSelect2238,First2239,PgSelectRows2240,PgSelectSingle2241,PgClassExpression2242,PgPageInfo2244,Access2247,Object2248,Lambda2249,Object2252,Lambda2253,First2255,PgSelectSingle2257,PgCursor2259,Last2261,PgSelectSingle2263,PgCursor2265 bucket220 - Bucket221("Bucket 221 (listItem)
Deps: 12

ROOT __Item{221}ᐸ1821ᐳ[1822]"):::bucket - classDef bucket221 stroke:#696969 - class Bucket221,__Item1822,PgSelectSingle1823 bucket221 - Bucket222("Bucket 222 (nullableBoundary)
Deps: 1823, 12

ROOT PgSelectSingle{221}ᐸtype_function_connectionᐳ[1823]
1:
ᐳ: 1824, 1825, 1826, 1827, 1828, 1829, 1830, 1831, 1832, 1834, 1835, 1836, 1838, 1839, 1840, 1847, 1854, 1861, 1868, 1869, 1870, 1871, 1872, 1873, 1880, 1888, 1889, 1904, 1937, 1950, 1985, 1988, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2006, 2007, 2023, 2024, 1848, 1851, 1855, 1858, 1862, 1865
2: 1890, 1905, 1938, 1951, 2009, 2016
3: 1895, 1908, 1941, 1954, 2012, 2019
ᐳ: 1894, 1896, 1897, 1898, 1899, 1900, 1901, 1902, 1903, 1907, 1909, 1910, 1923, 1936, 1940, 1942, 1953, 1955, 2011, 2013, 2018, 2020
4: PgSelect[1911], PgSelect[1924]
5: PgSelectRows[1914], PgSelectRows[1927]
ᐳ: 1913, 1915, 1926, 1928"):::bucket - classDef bucket222 stroke:#00bfff - class Bucket222,PgClassExpression1824,PgClassExpression1825,PgClassExpression1826,PgClassExpression1827,PgClassExpression1828,PgClassExpression1829,PgClassExpression1830,PgClassExpression1831,PgClassExpression1832,PgClassExpression1834,PgClassExpression1835,PgClassExpression1836,PgClassExpression1838,PgClassExpression1839,PgClassExpression1840,PgClassExpression1847,Access1848,Access1851,PgClassExpression1854,Access1855,Access1858,PgClassExpression1861,Access1862,Access1865,PgClassExpression1868,PgClassExpression1869,PgClassExpression1870,PgClassExpression1871,PgClassExpression1872,PgClassExpression1873,PgClassExpression1880,PgClassExpression1888,PgClassExpression1889,PgSelect1890,First1894,PgSelectRows1895,PgSelectSingle1896,PgClassExpression1897,PgClassExpression1898,PgClassExpression1899,PgClassExpression1900,PgClassExpression1901,PgClassExpression1902,PgClassExpression1903,PgClassExpression1904,PgSelect1905,First1907,PgSelectRows1908,PgSelectSingle1909,PgClassExpression1910,PgSelect1911,First1913,PgSelectRows1914,PgSelectSingle1915,PgClassExpression1923,PgSelect1924,First1926,PgSelectRows1927,PgSelectSingle1928,PgClassExpression1936,PgClassExpression1937,PgSelect1938,First1940,PgSelectRows1941,PgSelectSingle1942,PgClassExpression1950,PgSelect1951,First1953,PgSelectRows1954,PgSelectSingle1955,PgClassExpression1985,PgClassExpression1988,PgClassExpression1991,PgClassExpression1992,PgClassExpression1993,PgClassExpression1994,PgClassExpression1995,PgClassExpression1996,PgClassExpression1997,PgClassExpression1998,PgClassExpression1999,PgClassExpression2000,PgClassExpression2001,PgClassExpression2002,PgClassExpression2004,PgClassExpression2006,PgClassExpression2007,PgSelect2009,First2011,PgSelectRows2012,PgSelectSingle2013,PgSelect2016,First2018,PgSelectRows2019,PgSelectSingle2020,PgClassExpression2023,PgClassExpression2024 bucket222 - Bucket223("Bucket 223 (listItem)

ROOT __Item{223}ᐸ1832ᐳ[1833]"):::bucket - classDef bucket223 stroke:#7f007f - class Bucket223,__Item1833 bucket223 - Bucket224("Bucket 224 (listItem)

ROOT __Item{224}ᐸ1836ᐳ[1837]"):::bucket - classDef bucket224 stroke:#ffa500 - class Bucket224,__Item1837 bucket224 - Bucket225("Bucket 225 (nullableBoundary)
Deps: 1840

ROOT PgClassExpression{222}ᐸ__type_fun...ble_range”ᐳ[1840]"):::bucket - classDef bucket225 stroke:#0000ff - class Bucket225,Access1841,Access1844 bucket225 - Bucket226("Bucket 226 (nullableBoundary)
Deps: 1841, 1840

ROOT Access{225}ᐸ1840.startᐳ[1841]"):::bucket - classDef bucket226 stroke:#7fff00 - class Bucket226 bucket226 - Bucket227("Bucket 227 (nullableBoundary)
Deps: 1844, 1840

ROOT Access{225}ᐸ1840.endᐳ[1844]"):::bucket - classDef bucket227 stroke:#ff1493 - class Bucket227 bucket227 - Bucket228("Bucket 228 (nullableBoundary)
Deps: 1848, 1847

ROOT Access{222}ᐸ1847.startᐳ[1848]"):::bucket - classDef bucket228 stroke:#808000 - class Bucket228 bucket228 - Bucket229("Bucket 229 (nullableBoundary)
Deps: 1851, 1847

ROOT Access{222}ᐸ1847.endᐳ[1851]"):::bucket - classDef bucket229 stroke:#dda0dd - class Bucket229 bucket229 - Bucket230("Bucket 230 (nullableBoundary)
Deps: 1855, 1854

ROOT Access{222}ᐸ1854.startᐳ[1855]"):::bucket - classDef bucket230 stroke:#ff0000 - class Bucket230 bucket230 - Bucket231("Bucket 231 (nullableBoundary)
Deps: 1858, 1854

ROOT Access{222}ᐸ1854.endᐳ[1858]"):::bucket - classDef bucket231 stroke:#ffff00 - class Bucket231 bucket231 - Bucket232("Bucket 232 (nullableBoundary)
Deps: 1862, 1861

ROOT Access{222}ᐸ1861.startᐳ[1862]"):::bucket - classDef bucket232 stroke:#00ffff - class Bucket232 bucket232 - Bucket233("Bucket 233 (nullableBoundary)
Deps: 1865, 1861

ROOT Access{222}ᐸ1861.endᐳ[1865]"):::bucket - classDef bucket233 stroke:#4169e1 - class Bucket233 bucket233 - Bucket234("Bucket 234 (listItem)

ROOT __Item{234}ᐸ1880ᐳ[1881]"):::bucket - classDef bucket234 stroke:#3cb371 - class Bucket234,__Item1881 bucket234 - Bucket235("Bucket 235 (nullableBoundary)
Deps: 1881

ROOT __Item{234}ᐸ1880ᐳ[1881]"):::bucket - classDef bucket235 stroke:#a52a2a - class Bucket235 bucket235 - Bucket236("Bucket 236 (nullableBoundary)
Deps: 1915

ROOT PgSelectSingle{222}ᐸfrmcdc_compoundTypeᐳ[1915]"):::bucket - classDef bucket236 stroke:#ff00ff - class Bucket236,PgClassExpression1916,PgClassExpression1917,PgClassExpression1918,PgClassExpression1919,PgClassExpression1920,PgClassExpression1921,PgClassExpression1922 bucket236 - Bucket237("Bucket 237 (nullableBoundary)
Deps: 1928

ROOT PgSelectSingle{222}ᐸfrmcdc_compoundTypeᐳ[1928]"):::bucket - classDef bucket237 stroke:#f5deb3 - class Bucket237,PgClassExpression1929,PgClassExpression1930,PgClassExpression1931,PgClassExpression1932,PgClassExpression1933,PgClassExpression1934,PgClassExpression1935 bucket237 - Bucket238("Bucket 238 (nullableBoundary)
Deps: 1942

ROOT PgSelectSingle{222}ᐸfrmcdc_compoundTypeᐳ[1942]"):::bucket - classDef bucket238 stroke:#696969 - class Bucket238,PgClassExpression1943,PgClassExpression1944,PgClassExpression1945,PgClassExpression1946,PgClassExpression1947,PgClassExpression1948,PgClassExpression1949 bucket238 - Bucket239("Bucket 239 (nullableBoundary)
Deps: 1955, 12

ROOT PgSelectSingle{222}ᐸfrmcdc_nestedCompoundTypeᐳ[1955]
1:
ᐳ: 1956, 1971, 1984
2: PgSelect[1957], PgSelect[1972]
3: PgSelectRows[1962], PgSelectRows[1975]
ᐳ: 1961, 1963, 1974, 1976"):::bucket - classDef bucket239 stroke:#00bfff - class Bucket239,PgClassExpression1956,PgSelect1957,First1961,PgSelectRows1962,PgSelectSingle1963,PgClassExpression1971,PgSelect1972,First1974,PgSelectRows1975,PgSelectSingle1976,PgClassExpression1984 bucket239 - Bucket240("Bucket 240 (nullableBoundary)
Deps: 1963

ROOT PgSelectSingle{239}ᐸfrmcdc_compoundTypeᐳ[1963]"):::bucket - classDef bucket240 stroke:#7f007f - class Bucket240,PgClassExpression1964,PgClassExpression1965,PgClassExpression1966,PgClassExpression1967,PgClassExpression1968,PgClassExpression1969,PgClassExpression1970 bucket240 - Bucket241("Bucket 241 (nullableBoundary)
Deps: 1976

ROOT PgSelectSingle{239}ᐸfrmcdc_compoundTypeᐳ[1976]"):::bucket - classDef bucket241 stroke:#ffa500 - class Bucket241,PgClassExpression1977,PgClassExpression1978,PgClassExpression1979,PgClassExpression1980,PgClassExpression1981,PgClassExpression1982,PgClassExpression1983 bucket241 - Bucket242("Bucket 242 (nullableBoundary)
Deps: 1988

ROOT PgClassExpression{222}ᐸ__type_fun...ablePoint”ᐳ[1988]"):::bucket - classDef bucket242 stroke:#0000ff - class Bucket242 bucket242 - Bucket243("Bucket 243 (listItem)

ROOT __Item{243}ᐸ2002ᐳ[2003]"):::bucket - classDef bucket243 stroke:#7fff00 - class Bucket243,__Item2003 bucket243 - Bucket244("Bucket 244 (listItem)

ROOT __Item{244}ᐸ2004ᐳ[2005]"):::bucket - classDef bucket244 stroke:#ff1493 - class Bucket244,__Item2005 bucket244 - Bucket245("Bucket 245 (listItem)

ROOT __Item{245}ᐸ2007ᐳ[2008]"):::bucket - classDef bucket245 stroke:#808000 - class Bucket245,__Item2008 bucket245 - Bucket246("Bucket 246 (nullableBoundary)
Deps: 2013

ROOT PgSelectSingle{222}ᐸpostᐳ[2013]"):::bucket - classDef bucket246 stroke:#dda0dd - class Bucket246,PgClassExpression2014,PgClassExpression2015 bucket246 - Bucket247("Bucket 247 (nullableBoundary)
Deps: 2020

ROOT PgSelectSingle{222}ᐸpostᐳ[2020]"):::bucket - classDef bucket247 stroke:#ff0000 - class Bucket247,PgClassExpression2021,PgClassExpression2022 bucket247 - Bucket248("Bucket 248 (listItem)

ROOT __Item{248}ᐸ2024ᐳ[2025]"):::bucket - classDef bucket248 stroke:#ffff00 - class Bucket248,__Item2025 bucket248 - Bucket249("Bucket 249 (subroutine)

ROOT PgSelectSingle{249}ᐸtype_function_connectionᐳ[2030]"):::bucket - classDef bucket249 stroke:#00ffff - class Bucket249,__Item2029,PgSelectSingle2030 bucket249 - Bucket250("Bucket 250 (listItem)
Deps: 1819, 12

ROOT __Item{250}ᐸ2027ᐳ[2031]"):::bucket - classDef bucket250 stroke:#4169e1 - class Bucket250,__Item2031,PgSelectSingle2032,Edge3801 bucket250 - Bucket251("Bucket 251 (nullableBoundary)
Deps: 3801, 2032, 12

ROOT Edge{250}[3801]"):::bucket - classDef bucket251 stroke:#3cb371 - class Bucket251 bucket251 - Bucket252("Bucket 252 (nullableBoundary)
Deps: 2032, 12

ROOT PgSelectSingle{250}ᐸtype_function_connectionᐳ[2032]
1:
ᐳ: 2036, 2037, 2038, 2039, 2040, 2041, 2042, 2043, 2044, 2046, 2047, 2048, 2050, 2051, 2052, 2059, 2066, 2073, 2080, 2081, 2082, 2083, 2084, 2085, 2092, 2100, 2101, 2116, 2149, 2162, 2197, 2200, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2216, 2218, 2219, 2235, 2236, 2060, 2063, 2067, 2070, 2074, 2077
2: 2102, 2117, 2150, 2163, 2221, 2228
3: 2107, 2120, 2153, 2166, 2224, 2231
ᐳ: 2106, 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2119, 2121, 2122, 2135, 2148, 2152, 2154, 2165, 2167, 2223, 2225, 2230, 2232
4: PgSelect[2123], PgSelect[2136]
5: PgSelectRows[2126], PgSelectRows[2139]
ᐳ: 2125, 2127, 2138, 2140"):::bucket - classDef bucket252 stroke:#a52a2a - class Bucket252,PgClassExpression2036,PgClassExpression2037,PgClassExpression2038,PgClassExpression2039,PgClassExpression2040,PgClassExpression2041,PgClassExpression2042,PgClassExpression2043,PgClassExpression2044,PgClassExpression2046,PgClassExpression2047,PgClassExpression2048,PgClassExpression2050,PgClassExpression2051,PgClassExpression2052,PgClassExpression2059,Access2060,Access2063,PgClassExpression2066,Access2067,Access2070,PgClassExpression2073,Access2074,Access2077,PgClassExpression2080,PgClassExpression2081,PgClassExpression2082,PgClassExpression2083,PgClassExpression2084,PgClassExpression2085,PgClassExpression2092,PgClassExpression2100,PgClassExpression2101,PgSelect2102,First2106,PgSelectRows2107,PgSelectSingle2108,PgClassExpression2109,PgClassExpression2110,PgClassExpression2111,PgClassExpression2112,PgClassExpression2113,PgClassExpression2114,PgClassExpression2115,PgClassExpression2116,PgSelect2117,First2119,PgSelectRows2120,PgSelectSingle2121,PgClassExpression2122,PgSelect2123,First2125,PgSelectRows2126,PgSelectSingle2127,PgClassExpression2135,PgSelect2136,First2138,PgSelectRows2139,PgSelectSingle2140,PgClassExpression2148,PgClassExpression2149,PgSelect2150,First2152,PgSelectRows2153,PgSelectSingle2154,PgClassExpression2162,PgSelect2163,First2165,PgSelectRows2166,PgSelectSingle2167,PgClassExpression2197,PgClassExpression2200,PgClassExpression2203,PgClassExpression2204,PgClassExpression2205,PgClassExpression2206,PgClassExpression2207,PgClassExpression2208,PgClassExpression2209,PgClassExpression2210,PgClassExpression2211,PgClassExpression2212,PgClassExpression2213,PgClassExpression2214,PgClassExpression2216,PgClassExpression2218,PgClassExpression2219,PgSelect2221,First2223,PgSelectRows2224,PgSelectSingle2225,PgSelect2228,First2230,PgSelectRows2231,PgSelectSingle2232,PgClassExpression2235,PgClassExpression2236 bucket252 - Bucket253("Bucket 253 (listItem)

ROOT __Item{253}ᐸ2044ᐳ[2045]"):::bucket - classDef bucket253 stroke:#ff00ff - class Bucket253,__Item2045 bucket253 - Bucket254("Bucket 254 (listItem)

ROOT __Item{254}ᐸ2048ᐳ[2049]"):::bucket - classDef bucket254 stroke:#f5deb3 - class Bucket254,__Item2049 bucket254 - Bucket255("Bucket 255 (nullableBoundary)
Deps: 2052

ROOT PgClassExpression{252}ᐸ__type_fun...ble_range”ᐳ[2052]"):::bucket - classDef bucket255 stroke:#696969 - class Bucket255,Access2053,Access2056 bucket255 - Bucket256("Bucket 256 (nullableBoundary)
Deps: 2053, 2052

ROOT Access{255}ᐸ2052.startᐳ[2053]"):::bucket - classDef bucket256 stroke:#00bfff - class Bucket256 bucket256 - Bucket257("Bucket 257 (nullableBoundary)
Deps: 2056, 2052

ROOT Access{255}ᐸ2052.endᐳ[2056]"):::bucket - classDef bucket257 stroke:#7f007f - class Bucket257 bucket257 - Bucket258("Bucket 258 (nullableBoundary)
Deps: 2060, 2059

ROOT Access{252}ᐸ2059.startᐳ[2060]"):::bucket - classDef bucket258 stroke:#ffa500 - class Bucket258 bucket258 - Bucket259("Bucket 259 (nullableBoundary)
Deps: 2063, 2059

ROOT Access{252}ᐸ2059.endᐳ[2063]"):::bucket - classDef bucket259 stroke:#0000ff - class Bucket259 bucket259 - Bucket260("Bucket 260 (nullableBoundary)
Deps: 2067, 2066

ROOT Access{252}ᐸ2066.startᐳ[2067]"):::bucket - classDef bucket260 stroke:#7fff00 - class Bucket260 bucket260 - Bucket261("Bucket 261 (nullableBoundary)
Deps: 2070, 2066

ROOT Access{252}ᐸ2066.endᐳ[2070]"):::bucket - classDef bucket261 stroke:#ff1493 - class Bucket261 bucket261 - Bucket262("Bucket 262 (nullableBoundary)
Deps: 2074, 2073

ROOT Access{252}ᐸ2073.startᐳ[2074]"):::bucket - classDef bucket262 stroke:#808000 - class Bucket262 bucket262 - Bucket263("Bucket 263 (nullableBoundary)
Deps: 2077, 2073

ROOT Access{252}ᐸ2073.endᐳ[2077]"):::bucket - classDef bucket263 stroke:#dda0dd - class Bucket263 bucket263 - Bucket264("Bucket 264 (listItem)

ROOT __Item{264}ᐸ2092ᐳ[2093]"):::bucket - classDef bucket264 stroke:#ff0000 - class Bucket264,__Item2093 bucket264 - Bucket265("Bucket 265 (nullableBoundary)
Deps: 2093

ROOT __Item{264}ᐸ2092ᐳ[2093]"):::bucket - classDef bucket265 stroke:#ffff00 - class Bucket265 bucket265 - Bucket266("Bucket 266 (nullableBoundary)
Deps: 2127

ROOT PgSelectSingle{252}ᐸfrmcdc_compoundTypeᐳ[2127]"):::bucket - classDef bucket266 stroke:#00ffff - class Bucket266,PgClassExpression2128,PgClassExpression2129,PgClassExpression2130,PgClassExpression2131,PgClassExpression2132,PgClassExpression2133,PgClassExpression2134 bucket266 - Bucket267("Bucket 267 (nullableBoundary)
Deps: 2140

ROOT PgSelectSingle{252}ᐸfrmcdc_compoundTypeᐳ[2140]"):::bucket - classDef bucket267 stroke:#4169e1 - class Bucket267,PgClassExpression2141,PgClassExpression2142,PgClassExpression2143,PgClassExpression2144,PgClassExpression2145,PgClassExpression2146,PgClassExpression2147 bucket267 - Bucket268("Bucket 268 (nullableBoundary)
Deps: 2154

ROOT PgSelectSingle{252}ᐸfrmcdc_compoundTypeᐳ[2154]"):::bucket - classDef bucket268 stroke:#3cb371 - class Bucket268,PgClassExpression2155,PgClassExpression2156,PgClassExpression2157,PgClassExpression2158,PgClassExpression2159,PgClassExpression2160,PgClassExpression2161 bucket268 - Bucket269("Bucket 269 (nullableBoundary)
Deps: 2167, 12

ROOT PgSelectSingle{252}ᐸfrmcdc_nestedCompoundTypeᐳ[2167]
1:
ᐳ: 2168, 2183, 2196
2: PgSelect[2169], PgSelect[2184]
3: PgSelectRows[2174], PgSelectRows[2187]
ᐳ: 2173, 2175, 2186, 2188"):::bucket - classDef bucket269 stroke:#a52a2a - class Bucket269,PgClassExpression2168,PgSelect2169,First2173,PgSelectRows2174,PgSelectSingle2175,PgClassExpression2183,PgSelect2184,First2186,PgSelectRows2187,PgSelectSingle2188,PgClassExpression2196 bucket269 - Bucket270("Bucket 270 (nullableBoundary)
Deps: 2175

ROOT PgSelectSingle{269}ᐸfrmcdc_compoundTypeᐳ[2175]"):::bucket - classDef bucket270 stroke:#ff00ff - class Bucket270,PgClassExpression2176,PgClassExpression2177,PgClassExpression2178,PgClassExpression2179,PgClassExpression2180,PgClassExpression2181,PgClassExpression2182 bucket270 - Bucket271("Bucket 271 (nullableBoundary)
Deps: 2188

ROOT PgSelectSingle{269}ᐸfrmcdc_compoundTypeᐳ[2188]"):::bucket - classDef bucket271 stroke:#f5deb3 - class Bucket271,PgClassExpression2189,PgClassExpression2190,PgClassExpression2191,PgClassExpression2192,PgClassExpression2193,PgClassExpression2194,PgClassExpression2195 bucket271 - Bucket272("Bucket 272 (nullableBoundary)
Deps: 2200

ROOT PgClassExpression{252}ᐸ__type_fun...ablePoint”ᐳ[2200]"):::bucket - classDef bucket272 stroke:#696969 - class Bucket272 bucket272 - Bucket273("Bucket 273 (listItem)

ROOT __Item{273}ᐸ2214ᐳ[2215]"):::bucket - classDef bucket273 stroke:#00bfff - class Bucket273,__Item2215 bucket273 - Bucket274("Bucket 274 (listItem)

ROOT __Item{274}ᐸ2216ᐳ[2217]"):::bucket - classDef bucket274 stroke:#7f007f - class Bucket274,__Item2217 bucket274 - Bucket275("Bucket 275 (listItem)

ROOT __Item{275}ᐸ2219ᐳ[2220]"):::bucket - classDef bucket275 stroke:#ffa500 - class Bucket275,__Item2220 bucket275 - Bucket276("Bucket 276 (nullableBoundary)
Deps: 2225

ROOT PgSelectSingle{252}ᐸpostᐳ[2225]"):::bucket - classDef bucket276 stroke:#0000ff - class Bucket276,PgClassExpression2226,PgClassExpression2227 bucket276 - Bucket277("Bucket 277 (nullableBoundary)
Deps: 2232

ROOT PgSelectSingle{252}ᐸpostᐳ[2232]"):::bucket - classDef bucket277 stroke:#7fff00 - class Bucket277,PgClassExpression2233,PgClassExpression2234 bucket277 - Bucket278("Bucket 278 (listItem)

ROOT __Item{278}ᐸ2236ᐳ[2237]"):::bucket - classDef bucket278 stroke:#ff1493 - class Bucket278,__Item2237 bucket278 - Bucket279("Bucket 279 (nullableBoundary)
Deps: 2271, 12, 3803, 2694, 6, 3119

ROOT PgSelectSingleᐸpersonᐳ[2271]
1:
ᐳ: PgClassExpression[2273]
2: 2274, 2484, 2695, 3113
ᐳ: 2909, 3122, 3123, 3124, 3127, 3128
3: 2279, 2486, 2696, 3115
ᐳ: 2278, 2280, 3114, 3116, 3117, 3130, 3132, 3134, 3136, 3138, 3140
4: __ListTransform[2902]"):::bucket - classDef bucket279 stroke:#808000 - class Bucket279,PgClassExpression2273,PgSelect2274,First2278,PgSelectRows2279,PgSelectSingle2280,PgSelect2484,PgSelectRows2486,PgSelect2695,PgSelectRows2696,__ListTransform2902,Access2909,PgSelect3113,First3114,PgSelectRows3115,PgSelectSingle3116,PgClassExpression3117,Access3122,Object3123,Lambda3124,Object3127,Lambda3128,First3130,PgSelectSingle3132,PgCursor3134,Last3136,PgSelectSingle3138,PgCursor3140 bucket279 - Bucket280("Bucket 280 (nullableBoundary)
Deps: 2280, 12

ROOT PgSelectSingle{279}ᐸperson_type_functionᐳ[2280]
1:
ᐳ: 2281, 2282, 2283, 2284, 2285, 2286, 2287, 2288, 2289, 2291, 2292, 2293, 2295, 2296, 2297, 2304, 2311, 2318, 2325, 2326, 2327, 2328, 2329, 2330, 2337, 2345, 2346, 2361, 2394, 2407, 2442, 2445, 2448, 2449, 2450, 2451, 2452, 2453, 2454, 2455, 2456, 2457, 2458, 2459, 2461, 2463, 2464, 2480, 2481, 2305, 2308, 2312, 2315, 2319, 2322
2: 2347, 2362, 2395, 2408, 2466, 2473
3: 2352, 2365, 2398, 2411, 2469, 2476
ᐳ: 2351, 2353, 2354, 2355, 2356, 2357, 2358, 2359, 2360, 2364, 2366, 2367, 2380, 2393, 2397, 2399, 2410, 2412, 2468, 2470, 2475, 2477
4: PgSelect[2368], PgSelect[2381]
5: PgSelectRows[2371], PgSelectRows[2384]
ᐳ: 2370, 2372, 2383, 2385"):::bucket - classDef bucket280 stroke:#dda0dd - class Bucket280,PgClassExpression2281,PgClassExpression2282,PgClassExpression2283,PgClassExpression2284,PgClassExpression2285,PgClassExpression2286,PgClassExpression2287,PgClassExpression2288,PgClassExpression2289,PgClassExpression2291,PgClassExpression2292,PgClassExpression2293,PgClassExpression2295,PgClassExpression2296,PgClassExpression2297,PgClassExpression2304,Access2305,Access2308,PgClassExpression2311,Access2312,Access2315,PgClassExpression2318,Access2319,Access2322,PgClassExpression2325,PgClassExpression2326,PgClassExpression2327,PgClassExpression2328,PgClassExpression2329,PgClassExpression2330,PgClassExpression2337,PgClassExpression2345,PgClassExpression2346,PgSelect2347,First2351,PgSelectRows2352,PgSelectSingle2353,PgClassExpression2354,PgClassExpression2355,PgClassExpression2356,PgClassExpression2357,PgClassExpression2358,PgClassExpression2359,PgClassExpression2360,PgClassExpression2361,PgSelect2362,First2364,PgSelectRows2365,PgSelectSingle2366,PgClassExpression2367,PgSelect2368,First2370,PgSelectRows2371,PgSelectSingle2372,PgClassExpression2380,PgSelect2381,First2383,PgSelectRows2384,PgSelectSingle2385,PgClassExpression2393,PgClassExpression2394,PgSelect2395,First2397,PgSelectRows2398,PgSelectSingle2399,PgClassExpression2407,PgSelect2408,First2410,PgSelectRows2411,PgSelectSingle2412,PgClassExpression2442,PgClassExpression2445,PgClassExpression2448,PgClassExpression2449,PgClassExpression2450,PgClassExpression2451,PgClassExpression2452,PgClassExpression2453,PgClassExpression2454,PgClassExpression2455,PgClassExpression2456,PgClassExpression2457,PgClassExpression2458,PgClassExpression2459,PgClassExpression2461,PgClassExpression2463,PgClassExpression2464,PgSelect2466,First2468,PgSelectRows2469,PgSelectSingle2470,PgSelect2473,First2475,PgSelectRows2476,PgSelectSingle2477,PgClassExpression2480,PgClassExpression2481 bucket280 - Bucket281("Bucket 281 (listItem)

ROOT __Item{281}ᐸ2289ᐳ[2290]"):::bucket - classDef bucket281 stroke:#ff0000 - class Bucket281,__Item2290 bucket281 - Bucket282("Bucket 282 (listItem)

ROOT __Item{282}ᐸ2293ᐳ[2294]"):::bucket - classDef bucket282 stroke:#ffff00 - class Bucket282,__Item2294 bucket282 - Bucket283("Bucket 283 (nullableBoundary)
Deps: 2297

ROOT PgClassExpression{280}ᐸ__person_t...ble_range”ᐳ[2297]"):::bucket - classDef bucket283 stroke:#00ffff - class Bucket283,Access2298,Access2301 bucket283 - Bucket284("Bucket 284 (nullableBoundary)
Deps: 2298, 2297

ROOT Access{283}ᐸ2297.startᐳ[2298]"):::bucket - classDef bucket284 stroke:#4169e1 - class Bucket284 bucket284 - Bucket285("Bucket 285 (nullableBoundary)
Deps: 2301, 2297

ROOT Access{283}ᐸ2297.endᐳ[2301]"):::bucket - classDef bucket285 stroke:#3cb371 - class Bucket285 bucket285 - Bucket286("Bucket 286 (nullableBoundary)
Deps: 2305, 2304

ROOT Access{280}ᐸ2304.startᐳ[2305]"):::bucket - classDef bucket286 stroke:#a52a2a - class Bucket286 bucket286 - Bucket287("Bucket 287 (nullableBoundary)
Deps: 2308, 2304

ROOT Access{280}ᐸ2304.endᐳ[2308]"):::bucket - classDef bucket287 stroke:#ff00ff - class Bucket287 bucket287 - Bucket288("Bucket 288 (nullableBoundary)
Deps: 2312, 2311

ROOT Access{280}ᐸ2311.startᐳ[2312]"):::bucket - classDef bucket288 stroke:#f5deb3 - class Bucket288 bucket288 - Bucket289("Bucket 289 (nullableBoundary)
Deps: 2315, 2311

ROOT Access{280}ᐸ2311.endᐳ[2315]"):::bucket - classDef bucket289 stroke:#696969 - class Bucket289 bucket289 - Bucket290("Bucket 290 (nullableBoundary)
Deps: 2319, 2318

ROOT Access{280}ᐸ2318.startᐳ[2319]"):::bucket - classDef bucket290 stroke:#00bfff - class Bucket290 bucket290 - Bucket291("Bucket 291 (nullableBoundary)
Deps: 2322, 2318

ROOT Access{280}ᐸ2318.endᐳ[2322]"):::bucket - classDef bucket291 stroke:#7f007f - class Bucket291 bucket291 - Bucket292("Bucket 292 (listItem)

ROOT __Item{292}ᐸ2337ᐳ[2338]"):::bucket - classDef bucket292 stroke:#ffa500 - class Bucket292,__Item2338 bucket292 - Bucket293("Bucket 293 (nullableBoundary)
Deps: 2338

ROOT __Item{292}ᐸ2337ᐳ[2338]"):::bucket - classDef bucket293 stroke:#0000ff - class Bucket293 bucket293 - Bucket294("Bucket 294 (nullableBoundary)
Deps: 2372

ROOT PgSelectSingle{280}ᐸfrmcdc_compoundTypeᐳ[2372]"):::bucket - classDef bucket294 stroke:#7fff00 - class Bucket294,PgClassExpression2373,PgClassExpression2374,PgClassExpression2375,PgClassExpression2376,PgClassExpression2377,PgClassExpression2378,PgClassExpression2379 bucket294 - Bucket295("Bucket 295 (nullableBoundary)
Deps: 2385

ROOT PgSelectSingle{280}ᐸfrmcdc_compoundTypeᐳ[2385]"):::bucket - classDef bucket295 stroke:#ff1493 - class Bucket295,PgClassExpression2386,PgClassExpression2387,PgClassExpression2388,PgClassExpression2389,PgClassExpression2390,PgClassExpression2391,PgClassExpression2392 bucket295 - Bucket296("Bucket 296 (nullableBoundary)
Deps: 2399

ROOT PgSelectSingle{280}ᐸfrmcdc_compoundTypeᐳ[2399]"):::bucket - classDef bucket296 stroke:#808000 - class Bucket296,PgClassExpression2400,PgClassExpression2401,PgClassExpression2402,PgClassExpression2403,PgClassExpression2404,PgClassExpression2405,PgClassExpression2406 bucket296 - Bucket297("Bucket 297 (nullableBoundary)
Deps: 2412, 12

ROOT PgSelectSingle{280}ᐸfrmcdc_nestedCompoundTypeᐳ[2412]
1:
ᐳ: 2413, 2428, 2441
2: PgSelect[2414], PgSelect[2429]
3: PgSelectRows[2419], PgSelectRows[2432]
ᐳ: 2418, 2420, 2431, 2433"):::bucket - classDef bucket297 stroke:#dda0dd - class Bucket297,PgClassExpression2413,PgSelect2414,First2418,PgSelectRows2419,PgSelectSingle2420,PgClassExpression2428,PgSelect2429,First2431,PgSelectRows2432,PgSelectSingle2433,PgClassExpression2441 bucket297 - Bucket298("Bucket 298 (nullableBoundary)
Deps: 2420

ROOT PgSelectSingle{297}ᐸfrmcdc_compoundTypeᐳ[2420]"):::bucket - classDef bucket298 stroke:#ff0000 - class Bucket298,PgClassExpression2421,PgClassExpression2422,PgClassExpression2423,PgClassExpression2424,PgClassExpression2425,PgClassExpression2426,PgClassExpression2427 bucket298 - Bucket299("Bucket 299 (nullableBoundary)
Deps: 2433

ROOT PgSelectSingle{297}ᐸfrmcdc_compoundTypeᐳ[2433]"):::bucket - classDef bucket299 stroke:#ffff00 - class Bucket299,PgClassExpression2434,PgClassExpression2435,PgClassExpression2436,PgClassExpression2437,PgClassExpression2438,PgClassExpression2439,PgClassExpression2440 bucket299 - Bucket300("Bucket 300 (nullableBoundary)
Deps: 2445

ROOT PgClassExpression{280}ᐸ__person_t...ablePoint”ᐳ[2445]"):::bucket - classDef bucket300 stroke:#00ffff - class Bucket300 bucket300 - Bucket301("Bucket 301 (listItem)

ROOT __Item{301}ᐸ2459ᐳ[2460]"):::bucket - classDef bucket301 stroke:#4169e1 - class Bucket301,__Item2460 bucket301 - Bucket302("Bucket 302 (listItem)

ROOT __Item{302}ᐸ2461ᐳ[2462]"):::bucket - classDef bucket302 stroke:#3cb371 - class Bucket302,__Item2462 bucket302 - Bucket303("Bucket 303 (listItem)

ROOT __Item{303}ᐸ2464ᐳ[2465]"):::bucket - classDef bucket303 stroke:#a52a2a - class Bucket303,__Item2465 bucket303 - Bucket304("Bucket 304 (nullableBoundary)
Deps: 2470

ROOT PgSelectSingle{280}ᐸpostᐳ[2470]"):::bucket - classDef bucket304 stroke:#ff00ff - class Bucket304,PgClassExpression2471,PgClassExpression2472 bucket304 - Bucket305("Bucket 305 (nullableBoundary)
Deps: 2477

ROOT PgSelectSingle{280}ᐸpostᐳ[2477]"):::bucket - classDef bucket305 stroke:#f5deb3 - class Bucket305,PgClassExpression2478,PgClassExpression2479 bucket305 - Bucket306("Bucket 306 (listItem)

ROOT __Item{306}ᐸ2481ᐳ[2482]"):::bucket - classDef bucket306 stroke:#696969 - class Bucket306,__Item2482 bucket306 - Bucket307("Bucket 307 (listItem)
Deps: 12

ROOT __Item{307}ᐸ2486ᐳ[2487]"):::bucket - classDef bucket307 stroke:#00bfff - class Bucket307,__Item2487,PgSelectSingle2488 bucket307 - Bucket308("Bucket 308 (nullableBoundary)
Deps: 2488, 12

ROOT PgSelectSingle{307}ᐸperson_type_function_listᐳ[2488]
1:
ᐳ: 2489, 2490, 2491, 2492, 2493, 2494, 2495, 2496, 2497, 2499, 2500, 2501, 2503, 2504, 2505, 2512, 2519, 2526, 2533, 2534, 2535, 2536, 2537, 2538, 2545, 2553, 2554, 2569, 2602, 2615, 2650, 2653, 2656, 2657, 2658, 2659, 2660, 2661, 2662, 2663, 2664, 2665, 2666, 2667, 2669, 2671, 2672, 2688, 2689, 2513, 2516, 2520, 2523, 2527, 2530
2: 2555, 2570, 2603, 2616, 2674, 2681
3: 2560, 2573, 2606, 2619, 2677, 2684
ᐳ: 2559, 2561, 2562, 2563, 2564, 2565, 2566, 2567, 2568, 2572, 2574, 2575, 2588, 2601, 2605, 2607, 2618, 2620, 2676, 2678, 2683, 2685
4: PgSelect[2576], PgSelect[2589]
5: PgSelectRows[2579], PgSelectRows[2592]
ᐳ: 2578, 2580, 2591, 2593"):::bucket - classDef bucket308 stroke:#7f007f - class Bucket308,PgClassExpression2489,PgClassExpression2490,PgClassExpression2491,PgClassExpression2492,PgClassExpression2493,PgClassExpression2494,PgClassExpression2495,PgClassExpression2496,PgClassExpression2497,PgClassExpression2499,PgClassExpression2500,PgClassExpression2501,PgClassExpression2503,PgClassExpression2504,PgClassExpression2505,PgClassExpression2512,Access2513,Access2516,PgClassExpression2519,Access2520,Access2523,PgClassExpression2526,Access2527,Access2530,PgClassExpression2533,PgClassExpression2534,PgClassExpression2535,PgClassExpression2536,PgClassExpression2537,PgClassExpression2538,PgClassExpression2545,PgClassExpression2553,PgClassExpression2554,PgSelect2555,First2559,PgSelectRows2560,PgSelectSingle2561,PgClassExpression2562,PgClassExpression2563,PgClassExpression2564,PgClassExpression2565,PgClassExpression2566,PgClassExpression2567,PgClassExpression2568,PgClassExpression2569,PgSelect2570,First2572,PgSelectRows2573,PgSelectSingle2574,PgClassExpression2575,PgSelect2576,First2578,PgSelectRows2579,PgSelectSingle2580,PgClassExpression2588,PgSelect2589,First2591,PgSelectRows2592,PgSelectSingle2593,PgClassExpression2601,PgClassExpression2602,PgSelect2603,First2605,PgSelectRows2606,PgSelectSingle2607,PgClassExpression2615,PgSelect2616,First2618,PgSelectRows2619,PgSelectSingle2620,PgClassExpression2650,PgClassExpression2653,PgClassExpression2656,PgClassExpression2657,PgClassExpression2658,PgClassExpression2659,PgClassExpression2660,PgClassExpression2661,PgClassExpression2662,PgClassExpression2663,PgClassExpression2664,PgClassExpression2665,PgClassExpression2666,PgClassExpression2667,PgClassExpression2669,PgClassExpression2671,PgClassExpression2672,PgSelect2674,First2676,PgSelectRows2677,PgSelectSingle2678,PgSelect2681,First2683,PgSelectRows2684,PgSelectSingle2685,PgClassExpression2688,PgClassExpression2689 bucket308 - Bucket309("Bucket 309 (listItem)

ROOT __Item{309}ᐸ2497ᐳ[2498]"):::bucket - classDef bucket309 stroke:#ffa500 - class Bucket309,__Item2498 bucket309 - Bucket310("Bucket 310 (listItem)

ROOT __Item{310}ᐸ2501ᐳ[2502]"):::bucket - classDef bucket310 stroke:#0000ff - class Bucket310,__Item2502 bucket310 - Bucket311("Bucket 311 (nullableBoundary)
Deps: 2505

ROOT PgClassExpression{308}ᐸ__person_t...ble_range”ᐳ[2505]"):::bucket - classDef bucket311 stroke:#7fff00 - class Bucket311,Access2506,Access2509 bucket311 - Bucket312("Bucket 312 (nullableBoundary)
Deps: 2506, 2505

ROOT Access{311}ᐸ2505.startᐳ[2506]"):::bucket - classDef bucket312 stroke:#ff1493 - class Bucket312 bucket312 - Bucket313("Bucket 313 (nullableBoundary)
Deps: 2509, 2505

ROOT Access{311}ᐸ2505.endᐳ[2509]"):::bucket - classDef bucket313 stroke:#808000 - class Bucket313 bucket313 - Bucket314("Bucket 314 (nullableBoundary)
Deps: 2513, 2512

ROOT Access{308}ᐸ2512.startᐳ[2513]"):::bucket - classDef bucket314 stroke:#dda0dd - class Bucket314 bucket314 - Bucket315("Bucket 315 (nullableBoundary)
Deps: 2516, 2512

ROOT Access{308}ᐸ2512.endᐳ[2516]"):::bucket - classDef bucket315 stroke:#ff0000 - class Bucket315 bucket315 - Bucket316("Bucket 316 (nullableBoundary)
Deps: 2520, 2519

ROOT Access{308}ᐸ2519.startᐳ[2520]"):::bucket - classDef bucket316 stroke:#ffff00 - class Bucket316 bucket316 - Bucket317("Bucket 317 (nullableBoundary)
Deps: 2523, 2519

ROOT Access{308}ᐸ2519.endᐳ[2523]"):::bucket - classDef bucket317 stroke:#00ffff - class Bucket317 bucket317 - Bucket318("Bucket 318 (nullableBoundary)
Deps: 2527, 2526

ROOT Access{308}ᐸ2526.startᐳ[2527]"):::bucket - classDef bucket318 stroke:#4169e1 - class Bucket318 bucket318 - Bucket319("Bucket 319 (nullableBoundary)
Deps: 2530, 2526

ROOT Access{308}ᐸ2526.endᐳ[2530]"):::bucket - classDef bucket319 stroke:#3cb371 - class Bucket319 bucket319 - Bucket320("Bucket 320 (listItem)

ROOT __Item{320}ᐸ2545ᐳ[2546]"):::bucket - classDef bucket320 stroke:#a52a2a - class Bucket320,__Item2546 bucket320 - Bucket321("Bucket 321 (nullableBoundary)
Deps: 2546

ROOT __Item{320}ᐸ2545ᐳ[2546]"):::bucket - classDef bucket321 stroke:#ff00ff - class Bucket321 bucket321 - Bucket322("Bucket 322 (nullableBoundary)
Deps: 2580

ROOT PgSelectSingle{308}ᐸfrmcdc_compoundTypeᐳ[2580]"):::bucket - classDef bucket322 stroke:#f5deb3 - class Bucket322,PgClassExpression2581,PgClassExpression2582,PgClassExpression2583,PgClassExpression2584,PgClassExpression2585,PgClassExpression2586,PgClassExpression2587 bucket322 - Bucket323("Bucket 323 (nullableBoundary)
Deps: 2593

ROOT PgSelectSingle{308}ᐸfrmcdc_compoundTypeᐳ[2593]"):::bucket - classDef bucket323 stroke:#696969 - class Bucket323,PgClassExpression2594,PgClassExpression2595,PgClassExpression2596,PgClassExpression2597,PgClassExpression2598,PgClassExpression2599,PgClassExpression2600 bucket323 - Bucket324("Bucket 324 (nullableBoundary)
Deps: 2607

ROOT PgSelectSingle{308}ᐸfrmcdc_compoundTypeᐳ[2607]"):::bucket - classDef bucket324 stroke:#00bfff - class Bucket324,PgClassExpression2608,PgClassExpression2609,PgClassExpression2610,PgClassExpression2611,PgClassExpression2612,PgClassExpression2613,PgClassExpression2614 bucket324 - Bucket325("Bucket 325 (nullableBoundary)
Deps: 2620, 12

ROOT PgSelectSingle{308}ᐸfrmcdc_nestedCompoundTypeᐳ[2620]
1:
ᐳ: 2621, 2636, 2649
2: PgSelect[2622], PgSelect[2637]
3: PgSelectRows[2627], PgSelectRows[2640]
ᐳ: 2626, 2628, 2639, 2641"):::bucket - classDef bucket325 stroke:#7f007f - class Bucket325,PgClassExpression2621,PgSelect2622,First2626,PgSelectRows2627,PgSelectSingle2628,PgClassExpression2636,PgSelect2637,First2639,PgSelectRows2640,PgSelectSingle2641,PgClassExpression2649 bucket325 - Bucket326("Bucket 326 (nullableBoundary)
Deps: 2628

ROOT PgSelectSingle{325}ᐸfrmcdc_compoundTypeᐳ[2628]"):::bucket - classDef bucket326 stroke:#ffa500 - class Bucket326,PgClassExpression2629,PgClassExpression2630,PgClassExpression2631,PgClassExpression2632,PgClassExpression2633,PgClassExpression2634,PgClassExpression2635 bucket326 - Bucket327("Bucket 327 (nullableBoundary)
Deps: 2641

ROOT PgSelectSingle{325}ᐸfrmcdc_compoundTypeᐳ[2641]"):::bucket - classDef bucket327 stroke:#0000ff - class Bucket327,PgClassExpression2642,PgClassExpression2643,PgClassExpression2644,PgClassExpression2645,PgClassExpression2646,PgClassExpression2647,PgClassExpression2648 bucket327 - Bucket328("Bucket 328 (nullableBoundary)
Deps: 2653

ROOT PgClassExpression{308}ᐸ__person_t...ablePoint”ᐳ[2653]"):::bucket - classDef bucket328 stroke:#7fff00 - class Bucket328 bucket328 - Bucket329("Bucket 329 (listItem)

ROOT __Item{329}ᐸ2667ᐳ[2668]"):::bucket - classDef bucket329 stroke:#ff1493 - class Bucket329,__Item2668 bucket329 - Bucket330("Bucket 330 (listItem)

ROOT __Item{330}ᐸ2669ᐳ[2670]"):::bucket - classDef bucket330 stroke:#808000 - class Bucket330,__Item2670 bucket330 - Bucket331("Bucket 331 (listItem)

ROOT __Item{331}ᐸ2672ᐳ[2673]"):::bucket - classDef bucket331 stroke:#dda0dd - class Bucket331,__Item2673 bucket331 - Bucket332("Bucket 332 (nullableBoundary)
Deps: 2678

ROOT PgSelectSingle{308}ᐸpostᐳ[2678]"):::bucket - classDef bucket332 stroke:#ff0000 - class Bucket332,PgClassExpression2679,PgClassExpression2680 bucket332 - Bucket333("Bucket 333 (nullableBoundary)
Deps: 2685

ROOT PgSelectSingle{308}ᐸpostᐳ[2685]"):::bucket - classDef bucket333 stroke:#ffff00 - class Bucket333,PgClassExpression2686,PgClassExpression2687 bucket333 - Bucket334("Bucket 334 (listItem)

ROOT __Item{334}ᐸ2689ᐳ[2690]"):::bucket - classDef bucket334 stroke:#00ffff - class Bucket334,__Item2690 bucket334 - Bucket335("Bucket 335 (listItem)
Deps: 12

ROOT __Item{335}ᐸ2696ᐳ[2697]"):::bucket - classDef bucket335 stroke:#4169e1 - class Bucket335,__Item2697,PgSelectSingle2698 bucket335 - Bucket336("Bucket 336 (nullableBoundary)
Deps: 2698, 12

ROOT PgSelectSingle{335}ᐸperson_type_function_connectionᐳ[2698]
1:
ᐳ: 2699, 2700, 2701, 2702, 2703, 2704, 2705, 2706, 2707, 2709, 2710, 2711, 2713, 2714, 2715, 2722, 2729, 2736, 2743, 2744, 2745, 2746, 2747, 2748, 2755, 2763, 2764, 2779, 2812, 2825, 2860, 2863, 2866, 2867, 2868, 2869, 2870, 2871, 2872, 2873, 2874, 2875, 2876, 2877, 2879, 2881, 2882, 2898, 2899, 2723, 2726, 2730, 2733, 2737, 2740
2: 2765, 2780, 2813, 2826, 2884, 2891
3: 2770, 2783, 2816, 2829, 2887, 2894
ᐳ: 2769, 2771, 2772, 2773, 2774, 2775, 2776, 2777, 2778, 2782, 2784, 2785, 2798, 2811, 2815, 2817, 2828, 2830, 2886, 2888, 2893, 2895
4: PgSelect[2786], PgSelect[2799]
5: PgSelectRows[2789], PgSelectRows[2802]
ᐳ: 2788, 2790, 2801, 2803"):::bucket - classDef bucket336 stroke:#3cb371 - class Bucket336,PgClassExpression2699,PgClassExpression2700,PgClassExpression2701,PgClassExpression2702,PgClassExpression2703,PgClassExpression2704,PgClassExpression2705,PgClassExpression2706,PgClassExpression2707,PgClassExpression2709,PgClassExpression2710,PgClassExpression2711,PgClassExpression2713,PgClassExpression2714,PgClassExpression2715,PgClassExpression2722,Access2723,Access2726,PgClassExpression2729,Access2730,Access2733,PgClassExpression2736,Access2737,Access2740,PgClassExpression2743,PgClassExpression2744,PgClassExpression2745,PgClassExpression2746,PgClassExpression2747,PgClassExpression2748,PgClassExpression2755,PgClassExpression2763,PgClassExpression2764,PgSelect2765,First2769,PgSelectRows2770,PgSelectSingle2771,PgClassExpression2772,PgClassExpression2773,PgClassExpression2774,PgClassExpression2775,PgClassExpression2776,PgClassExpression2777,PgClassExpression2778,PgClassExpression2779,PgSelect2780,First2782,PgSelectRows2783,PgSelectSingle2784,PgClassExpression2785,PgSelect2786,First2788,PgSelectRows2789,PgSelectSingle2790,PgClassExpression2798,PgSelect2799,First2801,PgSelectRows2802,PgSelectSingle2803,PgClassExpression2811,PgClassExpression2812,PgSelect2813,First2815,PgSelectRows2816,PgSelectSingle2817,PgClassExpression2825,PgSelect2826,First2828,PgSelectRows2829,PgSelectSingle2830,PgClassExpression2860,PgClassExpression2863,PgClassExpression2866,PgClassExpression2867,PgClassExpression2868,PgClassExpression2869,PgClassExpression2870,PgClassExpression2871,PgClassExpression2872,PgClassExpression2873,PgClassExpression2874,PgClassExpression2875,PgClassExpression2876,PgClassExpression2877,PgClassExpression2879,PgClassExpression2881,PgClassExpression2882,PgSelect2884,First2886,PgSelectRows2887,PgSelectSingle2888,PgSelect2891,First2893,PgSelectRows2894,PgSelectSingle2895,PgClassExpression2898,PgClassExpression2899 bucket336 - Bucket337("Bucket 337 (listItem)

ROOT __Item{337}ᐸ2707ᐳ[2708]"):::bucket - classDef bucket337 stroke:#a52a2a - class Bucket337,__Item2708 bucket337 - Bucket338("Bucket 338 (listItem)

ROOT __Item{338}ᐸ2711ᐳ[2712]"):::bucket - classDef bucket338 stroke:#ff00ff - class Bucket338,__Item2712 bucket338 - Bucket339("Bucket 339 (nullableBoundary)
Deps: 2715

ROOT PgClassExpression{336}ᐸ__person_t...ble_range”ᐳ[2715]"):::bucket - classDef bucket339 stroke:#f5deb3 - class Bucket339,Access2716,Access2719 bucket339 - Bucket340("Bucket 340 (nullableBoundary)
Deps: 2716, 2715

ROOT Access{339}ᐸ2715.startᐳ[2716]"):::bucket - classDef bucket340 stroke:#696969 - class Bucket340 bucket340 - Bucket341("Bucket 341 (nullableBoundary)
Deps: 2719, 2715

ROOT Access{339}ᐸ2715.endᐳ[2719]"):::bucket - classDef bucket341 stroke:#00bfff - class Bucket341 bucket341 - Bucket342("Bucket 342 (nullableBoundary)
Deps: 2723, 2722

ROOT Access{336}ᐸ2722.startᐳ[2723]"):::bucket - classDef bucket342 stroke:#7f007f - class Bucket342 bucket342 - Bucket343("Bucket 343 (nullableBoundary)
Deps: 2726, 2722

ROOT Access{336}ᐸ2722.endᐳ[2726]"):::bucket - classDef bucket343 stroke:#ffa500 - class Bucket343 bucket343 - Bucket344("Bucket 344 (nullableBoundary)
Deps: 2730, 2729

ROOT Access{336}ᐸ2729.startᐳ[2730]"):::bucket - classDef bucket344 stroke:#0000ff - class Bucket344 bucket344 - Bucket345("Bucket 345 (nullableBoundary)
Deps: 2733, 2729

ROOT Access{336}ᐸ2729.endᐳ[2733]"):::bucket - classDef bucket345 stroke:#7fff00 - class Bucket345 bucket345 - Bucket346("Bucket 346 (nullableBoundary)
Deps: 2737, 2736

ROOT Access{336}ᐸ2736.startᐳ[2737]"):::bucket - classDef bucket346 stroke:#ff1493 - class Bucket346 bucket346 - Bucket347("Bucket 347 (nullableBoundary)
Deps: 2740, 2736

ROOT Access{336}ᐸ2736.endᐳ[2740]"):::bucket - classDef bucket347 stroke:#808000 - class Bucket347 bucket347 - Bucket348("Bucket 348 (listItem)

ROOT __Item{348}ᐸ2755ᐳ[2756]"):::bucket - classDef bucket348 stroke:#dda0dd - class Bucket348,__Item2756 bucket348 - Bucket349("Bucket 349 (nullableBoundary)
Deps: 2756

ROOT __Item{348}ᐸ2755ᐳ[2756]"):::bucket - classDef bucket349 stroke:#ff0000 - class Bucket349 bucket349 - Bucket350("Bucket 350 (nullableBoundary)
Deps: 2790

ROOT PgSelectSingle{336}ᐸfrmcdc_compoundTypeᐳ[2790]"):::bucket - classDef bucket350 stroke:#ffff00 - class Bucket350,PgClassExpression2791,PgClassExpression2792,PgClassExpression2793,PgClassExpression2794,PgClassExpression2795,PgClassExpression2796,PgClassExpression2797 bucket350 - Bucket351("Bucket 351 (nullableBoundary)
Deps: 2803

ROOT PgSelectSingle{336}ᐸfrmcdc_compoundTypeᐳ[2803]"):::bucket - classDef bucket351 stroke:#00ffff - class Bucket351,PgClassExpression2804,PgClassExpression2805,PgClassExpression2806,PgClassExpression2807,PgClassExpression2808,PgClassExpression2809,PgClassExpression2810 bucket351 - Bucket352("Bucket 352 (nullableBoundary)
Deps: 2817

ROOT PgSelectSingle{336}ᐸfrmcdc_compoundTypeᐳ[2817]"):::bucket - classDef bucket352 stroke:#4169e1 - class Bucket352,PgClassExpression2818,PgClassExpression2819,PgClassExpression2820,PgClassExpression2821,PgClassExpression2822,PgClassExpression2823,PgClassExpression2824 bucket352 - Bucket353("Bucket 353 (nullableBoundary)
Deps: 2830, 12

ROOT PgSelectSingle{336}ᐸfrmcdc_nestedCompoundTypeᐳ[2830]
1:
ᐳ: 2831, 2846, 2859
2: PgSelect[2832], PgSelect[2847]
3: PgSelectRows[2837], PgSelectRows[2850]
ᐳ: 2836, 2838, 2849, 2851"):::bucket - classDef bucket353 stroke:#3cb371 - class Bucket353,PgClassExpression2831,PgSelect2832,First2836,PgSelectRows2837,PgSelectSingle2838,PgClassExpression2846,PgSelect2847,First2849,PgSelectRows2850,PgSelectSingle2851,PgClassExpression2859 bucket353 - Bucket354("Bucket 354 (nullableBoundary)
Deps: 2838

ROOT PgSelectSingle{353}ᐸfrmcdc_compoundTypeᐳ[2838]"):::bucket - classDef bucket354 stroke:#a52a2a - class Bucket354,PgClassExpression2839,PgClassExpression2840,PgClassExpression2841,PgClassExpression2842,PgClassExpression2843,PgClassExpression2844,PgClassExpression2845 bucket354 - Bucket355("Bucket 355 (nullableBoundary)
Deps: 2851

ROOT PgSelectSingle{353}ᐸfrmcdc_compoundTypeᐳ[2851]"):::bucket - classDef bucket355 stroke:#ff00ff - class Bucket355,PgClassExpression2852,PgClassExpression2853,PgClassExpression2854,PgClassExpression2855,PgClassExpression2856,PgClassExpression2857,PgClassExpression2858 bucket355 - Bucket356("Bucket 356 (nullableBoundary)
Deps: 2863

ROOT PgClassExpression{336}ᐸ__person_t...ablePoint”ᐳ[2863]"):::bucket - classDef bucket356 stroke:#f5deb3 - class Bucket356 bucket356 - Bucket357("Bucket 357 (listItem)

ROOT __Item{357}ᐸ2877ᐳ[2878]"):::bucket - classDef bucket357 stroke:#696969 - class Bucket357,__Item2878 bucket357 - Bucket358("Bucket 358 (listItem)

ROOT __Item{358}ᐸ2879ᐳ[2880]"):::bucket - classDef bucket358 stroke:#00bfff - class Bucket358,__Item2880 bucket358 - Bucket359("Bucket 359 (listItem)

ROOT __Item{359}ᐸ2882ᐳ[2883]"):::bucket - classDef bucket359 stroke:#7f007f - class Bucket359,__Item2883 bucket359 - Bucket360("Bucket 360 (nullableBoundary)
Deps: 2888

ROOT PgSelectSingle{336}ᐸpostᐳ[2888]"):::bucket - classDef bucket360 stroke:#ffa500 - class Bucket360,PgClassExpression2889,PgClassExpression2890 bucket360 - Bucket361("Bucket 361 (nullableBoundary)
Deps: 2895

ROOT PgSelectSingle{336}ᐸpostᐳ[2895]"):::bucket - classDef bucket361 stroke:#0000ff - class Bucket361,PgClassExpression2896,PgClassExpression2897 bucket361 - Bucket362("Bucket 362 (listItem)

ROOT __Item{362}ᐸ2899ᐳ[2900]"):::bucket - classDef bucket362 stroke:#7fff00 - class Bucket362,__Item2900 bucket362 - Bucket363("Bucket 363 (subroutine)

ROOT PgSelectSingle{363}ᐸperson_type_function_connectionᐳ[2905]"):::bucket - classDef bucket363 stroke:#ff1493 - class Bucket363,__Item2904,PgSelectSingle2905 bucket363 - Bucket364("Bucket 364 (listItem)
Deps: 2694, 12

ROOT __Item{364}ᐸ2902ᐳ[2906]"):::bucket - classDef bucket364 stroke:#808000 - class Bucket364,__Item2906,PgSelectSingle2907,Edge3802 bucket364 - Bucket365("Bucket 365 (nullableBoundary)
Deps: 3802, 2907, 12

ROOT Edge{364}[3802]"):::bucket - classDef bucket365 stroke:#dda0dd - class Bucket365 bucket365 - Bucket366("Bucket 366 (nullableBoundary)
Deps: 2907, 12

ROOT PgSelectSingle{364}ᐸperson_type_function_connectionᐳ[2907]
1:
ᐳ: 2911, 2912, 2913, 2914, 2915, 2916, 2917, 2918, 2919, 2921, 2922, 2923, 2925, 2926, 2927, 2934, 2941, 2948, 2955, 2956, 2957, 2958, 2959, 2960, 2967, 2975, 2976, 2991, 3024, 3037, 3072, 3075, 3078, 3079, 3080, 3081, 3082, 3083, 3084, 3085, 3086, 3087, 3088, 3089, 3091, 3093, 3094, 3110, 3111, 2935, 2938, 2942, 2945, 2949, 2952
2: 2977, 2992, 3025, 3038, 3096, 3103
3: 2982, 2995, 3028, 3041, 3099, 3106
ᐳ: 2981, 2983, 2984, 2985, 2986, 2987, 2988, 2989, 2990, 2994, 2996, 2997, 3010, 3023, 3027, 3029, 3040, 3042, 3098, 3100, 3105, 3107
4: PgSelect[2998], PgSelect[3011]
5: PgSelectRows[3001], PgSelectRows[3014]
ᐳ: 3000, 3002, 3013, 3015"):::bucket - classDef bucket366 stroke:#ff0000 - class Bucket366,PgClassExpression2911,PgClassExpression2912,PgClassExpression2913,PgClassExpression2914,PgClassExpression2915,PgClassExpression2916,PgClassExpression2917,PgClassExpression2918,PgClassExpression2919,PgClassExpression2921,PgClassExpression2922,PgClassExpression2923,PgClassExpression2925,PgClassExpression2926,PgClassExpression2927,PgClassExpression2934,Access2935,Access2938,PgClassExpression2941,Access2942,Access2945,PgClassExpression2948,Access2949,Access2952,PgClassExpression2955,PgClassExpression2956,PgClassExpression2957,PgClassExpression2958,PgClassExpression2959,PgClassExpression2960,PgClassExpression2967,PgClassExpression2975,PgClassExpression2976,PgSelect2977,First2981,PgSelectRows2982,PgSelectSingle2983,PgClassExpression2984,PgClassExpression2985,PgClassExpression2986,PgClassExpression2987,PgClassExpression2988,PgClassExpression2989,PgClassExpression2990,PgClassExpression2991,PgSelect2992,First2994,PgSelectRows2995,PgSelectSingle2996,PgClassExpression2997,PgSelect2998,First3000,PgSelectRows3001,PgSelectSingle3002,PgClassExpression3010,PgSelect3011,First3013,PgSelectRows3014,PgSelectSingle3015,PgClassExpression3023,PgClassExpression3024,PgSelect3025,First3027,PgSelectRows3028,PgSelectSingle3029,PgClassExpression3037,PgSelect3038,First3040,PgSelectRows3041,PgSelectSingle3042,PgClassExpression3072,PgClassExpression3075,PgClassExpression3078,PgClassExpression3079,PgClassExpression3080,PgClassExpression3081,PgClassExpression3082,PgClassExpression3083,PgClassExpression3084,PgClassExpression3085,PgClassExpression3086,PgClassExpression3087,PgClassExpression3088,PgClassExpression3089,PgClassExpression3091,PgClassExpression3093,PgClassExpression3094,PgSelect3096,First3098,PgSelectRows3099,PgSelectSingle3100,PgSelect3103,First3105,PgSelectRows3106,PgSelectSingle3107,PgClassExpression3110,PgClassExpression3111 bucket366 - Bucket367("Bucket 367 (listItem)

ROOT __Item{367}ᐸ2919ᐳ[2920]"):::bucket - classDef bucket367 stroke:#ffff00 - class Bucket367,__Item2920 bucket367 - Bucket368("Bucket 368 (listItem)

ROOT __Item{368}ᐸ2923ᐳ[2924]"):::bucket - classDef bucket368 stroke:#00ffff - class Bucket368,__Item2924 bucket368 - Bucket369("Bucket 369 (nullableBoundary)
Deps: 2927

ROOT PgClassExpression{366}ᐸ__person_t...ble_range”ᐳ[2927]"):::bucket - classDef bucket369 stroke:#4169e1 - class Bucket369,Access2928,Access2931 bucket369 - Bucket370("Bucket 370 (nullableBoundary)
Deps: 2928, 2927

ROOT Access{369}ᐸ2927.startᐳ[2928]"):::bucket - classDef bucket370 stroke:#3cb371 - class Bucket370 bucket370 - Bucket371("Bucket 371 (nullableBoundary)
Deps: 2931, 2927

ROOT Access{369}ᐸ2927.endᐳ[2931]"):::bucket - classDef bucket371 stroke:#a52a2a - class Bucket371 bucket371 - Bucket372("Bucket 372 (nullableBoundary)
Deps: 2935, 2934

ROOT Access{366}ᐸ2934.startᐳ[2935]"):::bucket - classDef bucket372 stroke:#ff00ff - class Bucket372 bucket372 - Bucket373("Bucket 373 (nullableBoundary)
Deps: 2938, 2934

ROOT Access{366}ᐸ2934.endᐳ[2938]"):::bucket - classDef bucket373 stroke:#f5deb3 - class Bucket373 bucket373 - Bucket374("Bucket 374 (nullableBoundary)
Deps: 2942, 2941

ROOT Access{366}ᐸ2941.startᐳ[2942]"):::bucket - classDef bucket374 stroke:#696969 - class Bucket374 bucket374 - Bucket375("Bucket 375 (nullableBoundary)
Deps: 2945, 2941

ROOT Access{366}ᐸ2941.endᐳ[2945]"):::bucket - classDef bucket375 stroke:#00bfff - class Bucket375 bucket375 - Bucket376("Bucket 376 (nullableBoundary)
Deps: 2949, 2948

ROOT Access{366}ᐸ2948.startᐳ[2949]"):::bucket - classDef bucket376 stroke:#7f007f - class Bucket376 bucket376 - Bucket377("Bucket 377 (nullableBoundary)
Deps: 2952, 2948

ROOT Access{366}ᐸ2948.endᐳ[2952]"):::bucket - classDef bucket377 stroke:#ffa500 - class Bucket377 bucket377 - Bucket378("Bucket 378 (listItem)

ROOT __Item{378}ᐸ2967ᐳ[2968]"):::bucket - classDef bucket378 stroke:#0000ff - class Bucket378,__Item2968 bucket378 - Bucket379("Bucket 379 (nullableBoundary)
Deps: 2968

ROOT __Item{378}ᐸ2967ᐳ[2968]"):::bucket - classDef bucket379 stroke:#7fff00 - class Bucket379 bucket379 - Bucket380("Bucket 380 (nullableBoundary)
Deps: 3002

ROOT PgSelectSingle{366}ᐸfrmcdc_compoundTypeᐳ[3002]"):::bucket - classDef bucket380 stroke:#ff1493 - class Bucket380,PgClassExpression3003,PgClassExpression3004,PgClassExpression3005,PgClassExpression3006,PgClassExpression3007,PgClassExpression3008,PgClassExpression3009 bucket380 - Bucket381("Bucket 381 (nullableBoundary)
Deps: 3015

ROOT PgSelectSingle{366}ᐸfrmcdc_compoundTypeᐳ[3015]"):::bucket - classDef bucket381 stroke:#808000 - class Bucket381,PgClassExpression3016,PgClassExpression3017,PgClassExpression3018,PgClassExpression3019,PgClassExpression3020,PgClassExpression3021,PgClassExpression3022 bucket381 - Bucket382("Bucket 382 (nullableBoundary)
Deps: 3029

ROOT PgSelectSingle{366}ᐸfrmcdc_compoundTypeᐳ[3029]"):::bucket - classDef bucket382 stroke:#dda0dd - class Bucket382,PgClassExpression3030,PgClassExpression3031,PgClassExpression3032,PgClassExpression3033,PgClassExpression3034,PgClassExpression3035,PgClassExpression3036 bucket382 - Bucket383("Bucket 383 (nullableBoundary)
Deps: 3042, 12

ROOT PgSelectSingle{366}ᐸfrmcdc_nestedCompoundTypeᐳ[3042]
1:
ᐳ: 3043, 3058, 3071
2: PgSelect[3044], PgSelect[3059]
3: PgSelectRows[3049], PgSelectRows[3062]
ᐳ: 3048, 3050, 3061, 3063"):::bucket - classDef bucket383 stroke:#ff0000 - class Bucket383,PgClassExpression3043,PgSelect3044,First3048,PgSelectRows3049,PgSelectSingle3050,PgClassExpression3058,PgSelect3059,First3061,PgSelectRows3062,PgSelectSingle3063,PgClassExpression3071 bucket383 - Bucket384("Bucket 384 (nullableBoundary)
Deps: 3050

ROOT PgSelectSingle{383}ᐸfrmcdc_compoundTypeᐳ[3050]"):::bucket - classDef bucket384 stroke:#ffff00 - class Bucket384,PgClassExpression3051,PgClassExpression3052,PgClassExpression3053,PgClassExpression3054,PgClassExpression3055,PgClassExpression3056,PgClassExpression3057 bucket384 - Bucket385("Bucket 385 (nullableBoundary)
Deps: 3063

ROOT PgSelectSingle{383}ᐸfrmcdc_compoundTypeᐳ[3063]"):::bucket - classDef bucket385 stroke:#00ffff - class Bucket385,PgClassExpression3064,PgClassExpression3065,PgClassExpression3066,PgClassExpression3067,PgClassExpression3068,PgClassExpression3069,PgClassExpression3070 bucket385 - Bucket386("Bucket 386 (nullableBoundary)
Deps: 3075

ROOT PgClassExpression{366}ᐸ__person_t...ablePoint”ᐳ[3075]"):::bucket - classDef bucket386 stroke:#4169e1 - class Bucket386 bucket386 - Bucket387("Bucket 387 (listItem)

ROOT __Item{387}ᐸ3089ᐳ[3090]"):::bucket - classDef bucket387 stroke:#3cb371 - class Bucket387,__Item3090 bucket387 - Bucket388("Bucket 388 (listItem)

ROOT __Item{388}ᐸ3091ᐳ[3092]"):::bucket - classDef bucket388 stroke:#a52a2a - class Bucket388,__Item3092 bucket388 - Bucket389("Bucket 389 (listItem)

ROOT __Item{389}ᐸ3094ᐳ[3095]"):::bucket - classDef bucket389 stroke:#ff00ff - class Bucket389,__Item3095 bucket389 - Bucket390("Bucket 390 (nullableBoundary)
Deps: 3100

ROOT PgSelectSingle{366}ᐸpostᐳ[3100]"):::bucket - classDef bucket390 stroke:#f5deb3 - class Bucket390,PgClassExpression3101,PgClassExpression3102 bucket390 - Bucket391("Bucket 391 (nullableBoundary)
Deps: 3107

ROOT PgSelectSingle{366}ᐸpostᐳ[3107]"):::bucket - classDef bucket391 stroke:#696969 - class Bucket391,PgClassExpression3108,PgClassExpression3109 bucket391 - Bucket392("Bucket 392 (listItem)

ROOT __Item{392}ᐸ3111ᐳ[3112]"):::bucket - classDef bucket392 stroke:#00bfff - class Bucket392,__Item3112 bucket392 - Bucket393("Bucket 393 (nullableBoundary)
Deps: 3146, 12, 3362, 6, 3779

ROOT PgSelectSingleᐸpostᐳ[3146]
1:
ᐳ: 3147, 3148
2: 3149, 3363, 3773
ᐳ: 3782, 3783, 3784, 3787, 3788, 3793
3: 3154, 3364, 3775
ᐳ: 3153, 3155, 3774, 3776, 3777, 3790, 3792, 3794, 3796, 3798, 3800"):::bucket - classDef bucket393 stroke:#7f007f - class Bucket393,PgClassExpression3147,PgClassExpression3148,PgSelect3149,First3153,PgSelectRows3154,PgSelectSingle3155,PgSelect3363,PgSelectRows3364,PgSelect3773,First3774,PgSelectRows3775,PgSelectSingle3776,PgClassExpression3777,Access3782,Object3783,Lambda3784,Object3787,Lambda3788,First3790,PgSelectSingle3792,Access3793,PgCursor3794,Last3796,PgSelectSingle3798,PgCursor3800 bucket393 - Bucket394("Bucket 394 (nullableBoundary)
Deps: 3155, 12

ROOT PgSelectSingle{393}ᐸtypesᐳ[3155]
1:
ᐳ: 3156, 3157, 3158, 3159, 3160, 3161, 3162, 3163, 3164, 3166, 3167, 3168, 3170, 3171, 3172, 3179, 3186, 3193, 3200, 3201, 3202, 3203, 3204, 3205, 3212, 3220, 3221, 3236, 3269, 3282, 3317, 3320, 3323, 3324, 3325, 3326, 3327, 3328, 3329, 3330, 3331, 3332, 3333, 3334, 3336, 3338, 3339, 3355, 3356, 3180, 3183, 3187, 3190, 3194, 3197
2: 3222, 3237, 3270, 3283, 3341, 3348
3: 3227, 3240, 3273, 3286, 3344, 3351
ᐳ: 3226, 3228, 3229, 3230, 3231, 3232, 3233, 3234, 3235, 3239, 3241, 3242, 3255, 3268, 3272, 3274, 3285, 3287, 3343, 3345, 3350, 3352
4: PgSelect[3243], PgSelect[3256]
5: PgSelectRows[3246], PgSelectRows[3259]
ᐳ: 3245, 3247, 3258, 3260"):::bucket - classDef bucket394 stroke:#ffa500 - class Bucket394,PgClassExpression3156,PgClassExpression3157,PgClassExpression3158,PgClassExpression3159,PgClassExpression3160,PgClassExpression3161,PgClassExpression3162,PgClassExpression3163,PgClassExpression3164,PgClassExpression3166,PgClassExpression3167,PgClassExpression3168,PgClassExpression3170,PgClassExpression3171,PgClassExpression3172,PgClassExpression3179,Access3180,Access3183,PgClassExpression3186,Access3187,Access3190,PgClassExpression3193,Access3194,Access3197,PgClassExpression3200,PgClassExpression3201,PgClassExpression3202,PgClassExpression3203,PgClassExpression3204,PgClassExpression3205,PgClassExpression3212,PgClassExpression3220,PgClassExpression3221,PgSelect3222,First3226,PgSelectRows3227,PgSelectSingle3228,PgClassExpression3229,PgClassExpression3230,PgClassExpression3231,PgClassExpression3232,PgClassExpression3233,PgClassExpression3234,PgClassExpression3235,PgClassExpression3236,PgSelect3237,First3239,PgSelectRows3240,PgSelectSingle3241,PgClassExpression3242,PgSelect3243,First3245,PgSelectRows3246,PgSelectSingle3247,PgClassExpression3255,PgSelect3256,First3258,PgSelectRows3259,PgSelectSingle3260,PgClassExpression3268,PgClassExpression3269,PgSelect3270,First3272,PgSelectRows3273,PgSelectSingle3274,PgClassExpression3282,PgSelect3283,First3285,PgSelectRows3286,PgSelectSingle3287,PgClassExpression3317,PgClassExpression3320,PgClassExpression3323,PgClassExpression3324,PgClassExpression3325,PgClassExpression3326,PgClassExpression3327,PgClassExpression3328,PgClassExpression3329,PgClassExpression3330,PgClassExpression3331,PgClassExpression3332,PgClassExpression3333,PgClassExpression3334,PgClassExpression3336,PgClassExpression3338,PgClassExpression3339,PgSelect3341,First3343,PgSelectRows3344,PgSelectSingle3345,PgSelect3348,First3350,PgSelectRows3351,PgSelectSingle3352,PgClassExpression3355,PgClassExpression3356 bucket394 - Bucket395("Bucket 395 (listItem)

ROOT __Item{395}ᐸ3164ᐳ[3165]"):::bucket - classDef bucket395 stroke:#0000ff - class Bucket395,__Item3165 bucket395 - Bucket396("Bucket 396 (listItem)

ROOT __Item{396}ᐸ3168ᐳ[3169]"):::bucket - classDef bucket396 stroke:#7fff00 - class Bucket396,__Item3169 bucket396 - Bucket397("Bucket 397 (nullableBoundary)
Deps: 3172

ROOT PgClassExpression{394}ᐸ__types__....ble_range”ᐳ[3172]"):::bucket - classDef bucket397 stroke:#ff1493 - class Bucket397,Access3173,Access3176 bucket397 - Bucket398("Bucket 398 (nullableBoundary)
Deps: 3173, 3172

ROOT Access{397}ᐸ3172.startᐳ[3173]"):::bucket - classDef bucket398 stroke:#808000 - class Bucket398 bucket398 - Bucket399("Bucket 399 (nullableBoundary)
Deps: 3176, 3172

ROOT Access{397}ᐸ3172.endᐳ[3176]"):::bucket - classDef bucket399 stroke:#dda0dd - class Bucket399 bucket399 - Bucket400("Bucket 400 (nullableBoundary)
Deps: 3180, 3179

ROOT Access{394}ᐸ3179.startᐳ[3180]"):::bucket - classDef bucket400 stroke:#ff0000 - class Bucket400 bucket400 - Bucket401("Bucket 401 (nullableBoundary)
Deps: 3183, 3179

ROOT Access{394}ᐸ3179.endᐳ[3183]"):::bucket - classDef bucket401 stroke:#ffff00 - class Bucket401 bucket401 - Bucket402("Bucket 402 (nullableBoundary)
Deps: 3187, 3186

ROOT Access{394}ᐸ3186.startᐳ[3187]"):::bucket - classDef bucket402 stroke:#00ffff - class Bucket402 bucket402 - Bucket403("Bucket 403 (nullableBoundary)
Deps: 3190, 3186

ROOT Access{394}ᐸ3186.endᐳ[3190]"):::bucket - classDef bucket403 stroke:#4169e1 - class Bucket403 bucket403 - Bucket404("Bucket 404 (nullableBoundary)
Deps: 3194, 3193

ROOT Access{394}ᐸ3193.startᐳ[3194]"):::bucket - classDef bucket404 stroke:#3cb371 - class Bucket404 bucket404 - Bucket405("Bucket 405 (nullableBoundary)
Deps: 3197, 3193

ROOT Access{394}ᐸ3193.endᐳ[3197]"):::bucket - classDef bucket405 stroke:#a52a2a - class Bucket405 bucket405 - Bucket406("Bucket 406 (listItem)

ROOT __Item{406}ᐸ3212ᐳ[3213]"):::bucket - classDef bucket406 stroke:#ff00ff - class Bucket406,__Item3213 bucket406 - Bucket407("Bucket 407 (nullableBoundary)
Deps: 3213

ROOT __Item{406}ᐸ3212ᐳ[3213]"):::bucket - classDef bucket407 stroke:#f5deb3 - class Bucket407 bucket407 - Bucket408("Bucket 408 (nullableBoundary)
Deps: 3247

ROOT PgSelectSingle{394}ᐸfrmcdc_compoundTypeᐳ[3247]"):::bucket - classDef bucket408 stroke:#696969 - class Bucket408,PgClassExpression3248,PgClassExpression3249,PgClassExpression3250,PgClassExpression3251,PgClassExpression3252,PgClassExpression3253,PgClassExpression3254 bucket408 - Bucket409("Bucket 409 (nullableBoundary)
Deps: 3260

ROOT PgSelectSingle{394}ᐸfrmcdc_compoundTypeᐳ[3260]"):::bucket - classDef bucket409 stroke:#00bfff - class Bucket409,PgClassExpression3261,PgClassExpression3262,PgClassExpression3263,PgClassExpression3264,PgClassExpression3265,PgClassExpression3266,PgClassExpression3267 bucket409 - Bucket410("Bucket 410 (nullableBoundary)
Deps: 3274

ROOT PgSelectSingle{394}ᐸfrmcdc_compoundTypeᐳ[3274]"):::bucket - classDef bucket410 stroke:#7f007f - class Bucket410,PgClassExpression3275,PgClassExpression3276,PgClassExpression3277,PgClassExpression3278,PgClassExpression3279,PgClassExpression3280,PgClassExpression3281 bucket410 - Bucket411("Bucket 411 (nullableBoundary)
Deps: 3287, 12

ROOT PgSelectSingle{394}ᐸfrmcdc_nestedCompoundTypeᐳ[3287]
1:
ᐳ: 3288, 3303, 3316
2: PgSelect[3289], PgSelect[3304]
3: PgSelectRows[3294], PgSelectRows[3307]
ᐳ: 3293, 3295, 3306, 3308"):::bucket - classDef bucket411 stroke:#ffa500 - class Bucket411,PgClassExpression3288,PgSelect3289,First3293,PgSelectRows3294,PgSelectSingle3295,PgClassExpression3303,PgSelect3304,First3306,PgSelectRows3307,PgSelectSingle3308,PgClassExpression3316 bucket411 - Bucket412("Bucket 412 (nullableBoundary)
Deps: 3295

ROOT PgSelectSingle{411}ᐸfrmcdc_compoundTypeᐳ[3295]"):::bucket - classDef bucket412 stroke:#0000ff - class Bucket412,PgClassExpression3296,PgClassExpression3297,PgClassExpression3298,PgClassExpression3299,PgClassExpression3300,PgClassExpression3301,PgClassExpression3302 bucket412 - Bucket413("Bucket 413 (nullableBoundary)
Deps: 3308

ROOT PgSelectSingle{411}ᐸfrmcdc_compoundTypeᐳ[3308]"):::bucket - classDef bucket413 stroke:#7fff00 - class Bucket413,PgClassExpression3309,PgClassExpression3310,PgClassExpression3311,PgClassExpression3312,PgClassExpression3313,PgClassExpression3314,PgClassExpression3315 bucket413 - Bucket414("Bucket 414 (nullableBoundary)
Deps: 3320

ROOT PgClassExpression{394}ᐸ__types__....ablePoint”ᐳ[3320]"):::bucket - classDef bucket414 stroke:#ff1493 - class Bucket414 bucket414 - Bucket415("Bucket 415 (listItem)

ROOT __Item{415}ᐸ3334ᐳ[3335]"):::bucket - classDef bucket415 stroke:#808000 - class Bucket415,__Item3335 bucket415 - Bucket416("Bucket 416 (listItem)

ROOT __Item{416}ᐸ3336ᐳ[3337]"):::bucket - classDef bucket416 stroke:#dda0dd - class Bucket416,__Item3337 bucket416 - Bucket417("Bucket 417 (listItem)

ROOT __Item{417}ᐸ3339ᐳ[3340]"):::bucket - classDef bucket417 stroke:#ff0000 - class Bucket417,__Item3340 bucket417 - Bucket418("Bucket 418 (nullableBoundary)
Deps: 3345

ROOT PgSelectSingle{394}ᐸpostᐳ[3345]"):::bucket - classDef bucket418 stroke:#ffff00 - class Bucket418,PgClassExpression3346,PgClassExpression3347 bucket418 - Bucket419("Bucket 419 (nullableBoundary)
Deps: 3352

ROOT PgSelectSingle{394}ᐸpostᐳ[3352]"):::bucket - classDef bucket419 stroke:#00ffff - class Bucket419,PgClassExpression3353,PgClassExpression3354 bucket419 - Bucket420("Bucket 420 (listItem)

ROOT __Item{420}ᐸ3356ᐳ[3357]"):::bucket - classDef bucket420 stroke:#4169e1 - class Bucket420,__Item3357 bucket420 - Bucket421("Bucket 421 (listItem)
Deps: 12

ROOT __Item{421}ᐸ3364ᐳ[3365]"):::bucket - classDef bucket421 stroke:#3cb371 - class Bucket421,__Item3365,PgSelectSingle3366 bucket421 - Bucket422("Bucket 422 (nullableBoundary)
Deps: 3366, 12

ROOT PgSelectSingle{421}ᐸtypesᐳ[3366]
1:
ᐳ: 3367, 3368, 3369, 3370, 3371, 3372, 3373, 3374, 3375, 3377, 3378, 3379, 3381, 3382, 3383, 3390, 3397, 3404, 3411, 3412, 3413, 3414, 3415, 3416, 3423, 3431, 3432, 3447, 3480, 3493, 3528, 3531, 3534, 3535, 3536, 3537, 3538, 3539, 3540, 3541, 3542, 3543, 3544, 3545, 3547, 3549, 3550, 3566, 3567, 3391, 3394, 3398, 3401, 3405, 3408
2: 3433, 3448, 3481, 3494, 3552, 3559
3: 3438, 3451, 3484, 3497, 3555, 3562
ᐳ: 3437, 3439, 3440, 3441, 3442, 3443, 3444, 3445, 3446, 3450, 3452, 3453, 3466, 3479, 3483, 3485, 3496, 3498, 3554, 3556, 3561, 3563
4: PgSelect[3454], PgSelect[3467]
5: PgSelectRows[3457], PgSelectRows[3470]
ᐳ: 3456, 3458, 3469, 3471"):::bucket - classDef bucket422 stroke:#a52a2a - class Bucket422,PgClassExpression3367,PgClassExpression3368,PgClassExpression3369,PgClassExpression3370,PgClassExpression3371,PgClassExpression3372,PgClassExpression3373,PgClassExpression3374,PgClassExpression3375,PgClassExpression3377,PgClassExpression3378,PgClassExpression3379,PgClassExpression3381,PgClassExpression3382,PgClassExpression3383,PgClassExpression3390,Access3391,Access3394,PgClassExpression3397,Access3398,Access3401,PgClassExpression3404,Access3405,Access3408,PgClassExpression3411,PgClassExpression3412,PgClassExpression3413,PgClassExpression3414,PgClassExpression3415,PgClassExpression3416,PgClassExpression3423,PgClassExpression3431,PgClassExpression3432,PgSelect3433,First3437,PgSelectRows3438,PgSelectSingle3439,PgClassExpression3440,PgClassExpression3441,PgClassExpression3442,PgClassExpression3443,PgClassExpression3444,PgClassExpression3445,PgClassExpression3446,PgClassExpression3447,PgSelect3448,First3450,PgSelectRows3451,PgSelectSingle3452,PgClassExpression3453,PgSelect3454,First3456,PgSelectRows3457,PgSelectSingle3458,PgClassExpression3466,PgSelect3467,First3469,PgSelectRows3470,PgSelectSingle3471,PgClassExpression3479,PgClassExpression3480,PgSelect3481,First3483,PgSelectRows3484,PgSelectSingle3485,PgClassExpression3493,PgSelect3494,First3496,PgSelectRows3497,PgSelectSingle3498,PgClassExpression3528,PgClassExpression3531,PgClassExpression3534,PgClassExpression3535,PgClassExpression3536,PgClassExpression3537,PgClassExpression3538,PgClassExpression3539,PgClassExpression3540,PgClassExpression3541,PgClassExpression3542,PgClassExpression3543,PgClassExpression3544,PgClassExpression3545,PgClassExpression3547,PgClassExpression3549,PgClassExpression3550,PgSelect3552,First3554,PgSelectRows3555,PgSelectSingle3556,PgSelect3559,First3561,PgSelectRows3562,PgSelectSingle3563,PgClassExpression3566,PgClassExpression3567 bucket422 - Bucket423("Bucket 423 (listItem)

ROOT __Item{423}ᐸ3375ᐳ[3376]"):::bucket - classDef bucket423 stroke:#ff00ff - class Bucket423,__Item3376 bucket423 - Bucket424("Bucket 424 (listItem)

ROOT __Item{424}ᐸ3379ᐳ[3380]"):::bucket - classDef bucket424 stroke:#f5deb3 - class Bucket424,__Item3380 bucket424 - Bucket425("Bucket 425 (nullableBoundary)
Deps: 3383

ROOT PgClassExpression{422}ᐸ__types__....ble_range”ᐳ[3383]"):::bucket - classDef bucket425 stroke:#696969 - class Bucket425,Access3384,Access3387 bucket425 - Bucket426("Bucket 426 (nullableBoundary)
Deps: 3384, 3383

ROOT Access{425}ᐸ3383.startᐳ[3384]"):::bucket - classDef bucket426 stroke:#00bfff - class Bucket426 bucket426 - Bucket427("Bucket 427 (nullableBoundary)
Deps: 3387, 3383

ROOT Access{425}ᐸ3383.endᐳ[3387]"):::bucket - classDef bucket427 stroke:#7f007f - class Bucket427 bucket427 - Bucket428("Bucket 428 (nullableBoundary)
Deps: 3391, 3390

ROOT Access{422}ᐸ3390.startᐳ[3391]"):::bucket - classDef bucket428 stroke:#ffa500 - class Bucket428 bucket428 - Bucket429("Bucket 429 (nullableBoundary)
Deps: 3394, 3390

ROOT Access{422}ᐸ3390.endᐳ[3394]"):::bucket - classDef bucket429 stroke:#0000ff - class Bucket429 bucket429 - Bucket430("Bucket 430 (nullableBoundary)
Deps: 3398, 3397

ROOT Access{422}ᐸ3397.startᐳ[3398]"):::bucket - classDef bucket430 stroke:#7fff00 - class Bucket430 bucket430 - Bucket431("Bucket 431 (nullableBoundary)
Deps: 3401, 3397

ROOT Access{422}ᐸ3397.endᐳ[3401]"):::bucket - classDef bucket431 stroke:#ff1493 - class Bucket431 bucket431 - Bucket432("Bucket 432 (nullableBoundary)
Deps: 3405, 3404

ROOT Access{422}ᐸ3404.startᐳ[3405]"):::bucket - classDef bucket432 stroke:#808000 - class Bucket432 bucket432 - Bucket433("Bucket 433 (nullableBoundary)
Deps: 3408, 3404

ROOT Access{422}ᐸ3404.endᐳ[3408]"):::bucket - classDef bucket433 stroke:#dda0dd - class Bucket433 bucket433 - Bucket434("Bucket 434 (listItem)

ROOT __Item{434}ᐸ3423ᐳ[3424]"):::bucket - classDef bucket434 stroke:#ff0000 - class Bucket434,__Item3424 bucket434 - Bucket435("Bucket 435 (nullableBoundary)
Deps: 3424

ROOT __Item{434}ᐸ3423ᐳ[3424]"):::bucket - classDef bucket435 stroke:#ffff00 - class Bucket435 bucket435 - Bucket436("Bucket 436 (nullableBoundary)
Deps: 3458

ROOT PgSelectSingle{422}ᐸfrmcdc_compoundTypeᐳ[3458]"):::bucket - classDef bucket436 stroke:#00ffff - class Bucket436,PgClassExpression3459,PgClassExpression3460,PgClassExpression3461,PgClassExpression3462,PgClassExpression3463,PgClassExpression3464,PgClassExpression3465 bucket436 - Bucket437("Bucket 437 (nullableBoundary)
Deps: 3471

ROOT PgSelectSingle{422}ᐸfrmcdc_compoundTypeᐳ[3471]"):::bucket - classDef bucket437 stroke:#4169e1 - class Bucket437,PgClassExpression3472,PgClassExpression3473,PgClassExpression3474,PgClassExpression3475,PgClassExpression3476,PgClassExpression3477,PgClassExpression3478 bucket437 - Bucket438("Bucket 438 (nullableBoundary)
Deps: 3485

ROOT PgSelectSingle{422}ᐸfrmcdc_compoundTypeᐳ[3485]"):::bucket - classDef bucket438 stroke:#3cb371 - class Bucket438,PgClassExpression3486,PgClassExpression3487,PgClassExpression3488,PgClassExpression3489,PgClassExpression3490,PgClassExpression3491,PgClassExpression3492 bucket438 - Bucket439("Bucket 439 (nullableBoundary)
Deps: 3498, 12

ROOT PgSelectSingle{422}ᐸfrmcdc_nestedCompoundTypeᐳ[3498]
1:
ᐳ: 3499, 3514, 3527
2: PgSelect[3500], PgSelect[3515]
3: PgSelectRows[3505], PgSelectRows[3518]
ᐳ: 3504, 3506, 3517, 3519"):::bucket - classDef bucket439 stroke:#a52a2a - class Bucket439,PgClassExpression3499,PgSelect3500,First3504,PgSelectRows3505,PgSelectSingle3506,PgClassExpression3514,PgSelect3515,First3517,PgSelectRows3518,PgSelectSingle3519,PgClassExpression3527 bucket439 - Bucket440("Bucket 440 (nullableBoundary)
Deps: 3506

ROOT PgSelectSingle{439}ᐸfrmcdc_compoundTypeᐳ[3506]"):::bucket - classDef bucket440 stroke:#ff00ff - class Bucket440,PgClassExpression3507,PgClassExpression3508,PgClassExpression3509,PgClassExpression3510,PgClassExpression3511,PgClassExpression3512,PgClassExpression3513 bucket440 - Bucket441("Bucket 441 (nullableBoundary)
Deps: 3519

ROOT PgSelectSingle{439}ᐸfrmcdc_compoundTypeᐳ[3519]"):::bucket - classDef bucket441 stroke:#f5deb3 - class Bucket441,PgClassExpression3520,PgClassExpression3521,PgClassExpression3522,PgClassExpression3523,PgClassExpression3524,PgClassExpression3525,PgClassExpression3526 bucket441 - Bucket442("Bucket 442 (nullableBoundary)
Deps: 3531

ROOT PgClassExpression{422}ᐸ__types__....ablePoint”ᐳ[3531]"):::bucket - classDef bucket442 stroke:#696969 - class Bucket442 bucket442 - Bucket443("Bucket 443 (listItem)

ROOT __Item{443}ᐸ3545ᐳ[3546]"):::bucket - classDef bucket443 stroke:#00bfff - class Bucket443,__Item3546 bucket443 - Bucket444("Bucket 444 (listItem)

ROOT __Item{444}ᐸ3547ᐳ[3548]"):::bucket - classDef bucket444 stroke:#7f007f - class Bucket444,__Item3548 bucket444 - Bucket445("Bucket 445 (listItem)

ROOT __Item{445}ᐸ3550ᐳ[3551]"):::bucket - classDef bucket445 stroke:#ffa500 - class Bucket445,__Item3551 bucket445 - Bucket446("Bucket 446 (nullableBoundary)
Deps: 3556

ROOT PgSelectSingle{422}ᐸpostᐳ[3556]"):::bucket - classDef bucket446 stroke:#0000ff - class Bucket446,PgClassExpression3557,PgClassExpression3558 bucket446 - Bucket447("Bucket 447 (nullableBoundary)
Deps: 3563

ROOT PgSelectSingle{422}ᐸpostᐳ[3563]"):::bucket - classDef bucket447 stroke:#7fff00 - class Bucket447,PgClassExpression3564,PgClassExpression3565 bucket447 - Bucket448("Bucket 448 (listItem)

ROOT __Item{448}ᐸ3567ᐳ[3568]"):::bucket - classDef bucket448 stroke:#ff1493 - class Bucket448,__Item3568 bucket448 - Bucket449("Bucket 449 (nullableBoundary)
Deps: 3366, 12

ROOT PgSelectSingle{421}ᐸtypesᐳ[3366]
1:
ᐳ: 3571, 3572, 3573, 3574, 3575, 3576, 3577, 3578, 3579, 3581, 3582, 3583, 3585, 3586, 3587, 3594, 3601, 3608, 3615, 3616, 3617, 3618, 3619, 3620, 3627, 3635, 3636, 3651, 3684, 3697, 3732, 3735, 3738, 3739, 3740, 3741, 3742, 3743, 3744, 3745, 3746, 3747, 3748, 3749, 3751, 3753, 3754, 3770, 3771, 3595, 3598, 3602, 3605, 3609, 3612
2: 3637, 3652, 3685, 3698, 3756, 3763
3: 3642, 3655, 3688, 3701, 3759, 3766
ᐳ: 3641, 3643, 3644, 3645, 3646, 3647, 3648, 3649, 3650, 3654, 3656, 3657, 3670, 3683, 3687, 3689, 3700, 3702, 3758, 3760, 3765, 3767
4: PgSelect[3658], PgSelect[3671]
5: PgSelectRows[3661], PgSelectRows[3674]
ᐳ: 3660, 3662, 3673, 3675"):::bucket - classDef bucket449 stroke:#808000 - class Bucket449,PgClassExpression3571,PgClassExpression3572,PgClassExpression3573,PgClassExpression3574,PgClassExpression3575,PgClassExpression3576,PgClassExpression3577,PgClassExpression3578,PgClassExpression3579,PgClassExpression3581,PgClassExpression3582,PgClassExpression3583,PgClassExpression3585,PgClassExpression3586,PgClassExpression3587,PgClassExpression3594,Access3595,Access3598,PgClassExpression3601,Access3602,Access3605,PgClassExpression3608,Access3609,Access3612,PgClassExpression3615,PgClassExpression3616,PgClassExpression3617,PgClassExpression3618,PgClassExpression3619,PgClassExpression3620,PgClassExpression3627,PgClassExpression3635,PgClassExpression3636,PgSelect3637,First3641,PgSelectRows3642,PgSelectSingle3643,PgClassExpression3644,PgClassExpression3645,PgClassExpression3646,PgClassExpression3647,PgClassExpression3648,PgClassExpression3649,PgClassExpression3650,PgClassExpression3651,PgSelect3652,First3654,PgSelectRows3655,PgSelectSingle3656,PgClassExpression3657,PgSelect3658,First3660,PgSelectRows3661,PgSelectSingle3662,PgClassExpression3670,PgSelect3671,First3673,PgSelectRows3674,PgSelectSingle3675,PgClassExpression3683,PgClassExpression3684,PgSelect3685,First3687,PgSelectRows3688,PgSelectSingle3689,PgClassExpression3697,PgSelect3698,First3700,PgSelectRows3701,PgSelectSingle3702,PgClassExpression3732,PgClassExpression3735,PgClassExpression3738,PgClassExpression3739,PgClassExpression3740,PgClassExpression3741,PgClassExpression3742,PgClassExpression3743,PgClassExpression3744,PgClassExpression3745,PgClassExpression3746,PgClassExpression3747,PgClassExpression3748,PgClassExpression3749,PgClassExpression3751,PgClassExpression3753,PgClassExpression3754,PgSelect3756,First3758,PgSelectRows3759,PgSelectSingle3760,PgSelect3763,First3765,PgSelectRows3766,PgSelectSingle3767,PgClassExpression3770,PgClassExpression3771 bucket449 - Bucket450("Bucket 450 (listItem)

ROOT __Item{450}ᐸ3579ᐳ[3580]"):::bucket - classDef bucket450 stroke:#dda0dd - class Bucket450,__Item3580 bucket450 - Bucket451("Bucket 451 (listItem)

ROOT __Item{451}ᐸ3583ᐳ[3584]"):::bucket - classDef bucket451 stroke:#ff0000 - class Bucket451,__Item3584 bucket451 - Bucket452("Bucket 452 (nullableBoundary)
Deps: 3587

ROOT PgClassExpression{449}ᐸ__types__....ble_range”ᐳ[3587]"):::bucket - classDef bucket452 stroke:#ffff00 - class Bucket452,Access3588,Access3591 bucket452 - Bucket453("Bucket 453 (nullableBoundary)
Deps: 3588, 3587

ROOT Access{452}ᐸ3587.startᐳ[3588]"):::bucket - classDef bucket453 stroke:#00ffff - class Bucket453 bucket453 - Bucket454("Bucket 454 (nullableBoundary)
Deps: 3591, 3587

ROOT Access{452}ᐸ3587.endᐳ[3591]"):::bucket - classDef bucket454 stroke:#4169e1 - class Bucket454 bucket454 - Bucket455("Bucket 455 (nullableBoundary)
Deps: 3595, 3594

ROOT Access{449}ᐸ3594.startᐳ[3595]"):::bucket - classDef bucket455 stroke:#3cb371 - class Bucket455 bucket455 - Bucket456("Bucket 456 (nullableBoundary)
Deps: 3598, 3594

ROOT Access{449}ᐸ3594.endᐳ[3598]"):::bucket - classDef bucket456 stroke:#a52a2a - class Bucket456 bucket456 - Bucket457("Bucket 457 (nullableBoundary)
Deps: 3602, 3601

ROOT Access{449}ᐸ3601.startᐳ[3602]"):::bucket - classDef bucket457 stroke:#ff00ff - class Bucket457 bucket457 - Bucket458("Bucket 458 (nullableBoundary)
Deps: 3605, 3601

ROOT Access{449}ᐸ3601.endᐳ[3605]"):::bucket - classDef bucket458 stroke:#f5deb3 - class Bucket458 bucket458 - Bucket459("Bucket 459 (nullableBoundary)
Deps: 3609, 3608

ROOT Access{449}ᐸ3608.startᐳ[3609]"):::bucket - classDef bucket459 stroke:#696969 - class Bucket459 bucket459 - Bucket460("Bucket 460 (nullableBoundary)
Deps: 3612, 3608

ROOT Access{449}ᐸ3608.endᐳ[3612]"):::bucket - classDef bucket460 stroke:#00bfff - class Bucket460 bucket460 - Bucket461("Bucket 461 (listItem)

ROOT __Item{461}ᐸ3627ᐳ[3628]"):::bucket - classDef bucket461 stroke:#7f007f - class Bucket461,__Item3628 bucket461 - Bucket462("Bucket 462 (nullableBoundary)
Deps: 3628

ROOT __Item{461}ᐸ3627ᐳ[3628]"):::bucket - classDef bucket462 stroke:#ffa500 - class Bucket462 bucket462 - Bucket463("Bucket 463 (nullableBoundary)
Deps: 3662

ROOT PgSelectSingle{449}ᐸfrmcdc_compoundTypeᐳ[3662]"):::bucket - classDef bucket463 stroke:#0000ff - class Bucket463,PgClassExpression3663,PgClassExpression3664,PgClassExpression3665,PgClassExpression3666,PgClassExpression3667,PgClassExpression3668,PgClassExpression3669 bucket463 - Bucket464("Bucket 464 (nullableBoundary)
Deps: 3675

ROOT PgSelectSingle{449}ᐸfrmcdc_compoundTypeᐳ[3675]"):::bucket - classDef bucket464 stroke:#7fff00 - class Bucket464,PgClassExpression3676,PgClassExpression3677,PgClassExpression3678,PgClassExpression3679,PgClassExpression3680,PgClassExpression3681,PgClassExpression3682 bucket464 - Bucket465("Bucket 465 (nullableBoundary)
Deps: 3689

ROOT PgSelectSingle{449}ᐸfrmcdc_compoundTypeᐳ[3689]"):::bucket - classDef bucket465 stroke:#ff1493 - class Bucket465,PgClassExpression3690,PgClassExpression3691,PgClassExpression3692,PgClassExpression3693,PgClassExpression3694,PgClassExpression3695,PgClassExpression3696 bucket465 - Bucket466("Bucket 466 (nullableBoundary)
Deps: 3702, 12

ROOT PgSelectSingle{449}ᐸfrmcdc_nestedCompoundTypeᐳ[3702]
1:
ᐳ: 3703, 3718, 3731
2: PgSelect[3704], PgSelect[3719]
3: PgSelectRows[3709], PgSelectRows[3722]
ᐳ: 3708, 3710, 3721, 3723"):::bucket - classDef bucket466 stroke:#808000 - class Bucket466,PgClassExpression3703,PgSelect3704,First3708,PgSelectRows3709,PgSelectSingle3710,PgClassExpression3718,PgSelect3719,First3721,PgSelectRows3722,PgSelectSingle3723,PgClassExpression3731 bucket466 - Bucket467("Bucket 467 (nullableBoundary)
Deps: 3710

ROOT PgSelectSingle{466}ᐸfrmcdc_compoundTypeᐳ[3710]"):::bucket - classDef bucket467 stroke:#dda0dd - class Bucket467,PgClassExpression3711,PgClassExpression3712,PgClassExpression3713,PgClassExpression3714,PgClassExpression3715,PgClassExpression3716,PgClassExpression3717 bucket467 - Bucket468("Bucket 468 (nullableBoundary)
Deps: 3723

ROOT PgSelectSingle{466}ᐸfrmcdc_compoundTypeᐳ[3723]"):::bucket - classDef bucket468 stroke:#ff0000 - class Bucket468,PgClassExpression3724,PgClassExpression3725,PgClassExpression3726,PgClassExpression3727,PgClassExpression3728,PgClassExpression3729,PgClassExpression3730 bucket468 - Bucket469("Bucket 469 (nullableBoundary)
Deps: 3735

ROOT PgClassExpression{449}ᐸ__types__....ablePoint”ᐳ[3735]"):::bucket - classDef bucket469 stroke:#ffff00 - class Bucket469 bucket469 - Bucket470("Bucket 470 (listItem)

ROOT __Item{470}ᐸ3749ᐳ[3750]"):::bucket - classDef bucket470 stroke:#00ffff - class Bucket470,__Item3750 bucket470 - Bucket471("Bucket 471 (listItem)

ROOT __Item{471}ᐸ3751ᐳ[3752]"):::bucket - classDef bucket471 stroke:#4169e1 - class Bucket471,__Item3752 bucket471 - Bucket472("Bucket 472 (listItem)

ROOT __Item{472}ᐸ3754ᐳ[3755]"):::bucket - classDef bucket472 stroke:#3cb371 - class Bucket472,__Item3755 bucket472 - Bucket473("Bucket 473 (nullableBoundary)
Deps: 3760

ROOT PgSelectSingle{449}ᐸpostᐳ[3760]"):::bucket - classDef bucket473 stroke:#a52a2a - class Bucket473,PgClassExpression3761,PgClassExpression3762 bucket473 - Bucket474("Bucket 474 (nullableBoundary)
Deps: 3767

ROOT PgSelectSingle{449}ᐸpostᐳ[3767]"):::bucket - classDef bucket474 stroke:#ff00ff - class Bucket474,PgClassExpression3768,PgClassExpression3769 bucket474 - Bucket475("Bucket 475 (listItem)

ROOT __Item{475}ᐸ3771ᐳ[3772]"):::bucket - classDef bucket475 stroke:#f5deb3 - class Bucket475,__Item3772 bucket475 - Bucket0 --> Bucket1 & Bucket57 & Bucket84 & Bucket111 & Bucket138 & Bucket165 & Bucket192 & Bucket220 & Bucket279 & Bucket393 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 & Bucket30 - Bucket3 --> Bucket4 & Bucket5 & Bucket6 & Bucket9 & Bucket10 & Bucket11 & Bucket12 & Bucket13 & Bucket14 & Bucket15 & Bucket17 & Bucket18 & Bucket19 & Bucket20 & Bucket23 & Bucket24 & Bucket25 & Bucket26 & Bucket27 & Bucket28 & Bucket29 - Bucket6 --> Bucket7 & Bucket8 - Bucket15 --> Bucket16 - Bucket20 --> Bucket21 & Bucket22 - Bucket30 --> Bucket31 & Bucket32 & Bucket33 & Bucket36 & Bucket37 & Bucket38 & Bucket39 & Bucket40 & Bucket41 & Bucket42 & Bucket44 & Bucket45 & Bucket46 & Bucket47 & Bucket50 & Bucket51 & Bucket52 & Bucket53 & Bucket54 & Bucket55 & Bucket56 - Bucket33 --> Bucket34 & Bucket35 - Bucket42 --> Bucket43 - Bucket47 --> Bucket48 & Bucket49 - Bucket57 --> Bucket58 & Bucket59 & Bucket60 & Bucket63 & Bucket64 & Bucket65 & Bucket66 & Bucket67 & Bucket68 & Bucket69 & Bucket71 & Bucket72 & Bucket73 & Bucket74 & Bucket77 & Bucket78 & Bucket79 & Bucket80 & Bucket81 & Bucket82 & Bucket83 - Bucket60 --> Bucket61 & Bucket62 - Bucket69 --> Bucket70 - Bucket74 --> Bucket75 & Bucket76 - Bucket84 --> Bucket85 & Bucket86 & Bucket87 & Bucket90 & Bucket91 & Bucket92 & Bucket93 & Bucket94 & Bucket95 & Bucket96 & Bucket98 & Bucket99 & Bucket100 & Bucket101 & Bucket104 & Bucket105 & Bucket106 & Bucket107 & Bucket108 & Bucket109 & Bucket110 - Bucket87 --> Bucket88 & Bucket89 - Bucket96 --> Bucket97 - Bucket101 --> Bucket102 & Bucket103 - Bucket111 --> Bucket112 & Bucket113 & Bucket114 & Bucket117 & Bucket118 & Bucket119 & Bucket120 & Bucket121 & Bucket122 & Bucket123 & Bucket125 & Bucket126 & Bucket127 & Bucket128 & Bucket131 & Bucket132 & Bucket133 & Bucket134 & Bucket135 & Bucket136 & Bucket137 - Bucket114 --> Bucket115 & Bucket116 - Bucket123 --> Bucket124 - Bucket128 --> Bucket129 & Bucket130 - Bucket138 --> Bucket139 & Bucket140 & Bucket141 & Bucket144 & Bucket145 & Bucket146 & Bucket147 & Bucket148 & Bucket149 & Bucket150 & Bucket152 & Bucket153 & Bucket154 & Bucket155 & Bucket158 & Bucket159 & Bucket160 & Bucket161 & Bucket162 & Bucket163 & Bucket164 - Bucket141 --> Bucket142 & Bucket143 - Bucket150 --> Bucket151 - Bucket155 --> Bucket156 & Bucket157 - Bucket165 --> Bucket166 & Bucket167 & Bucket168 & Bucket171 & Bucket172 & Bucket173 & Bucket174 & Bucket175 & Bucket176 & Bucket177 & Bucket179 & Bucket180 & Bucket181 & Bucket182 & Bucket185 & Bucket186 & Bucket187 & Bucket188 & Bucket189 & Bucket190 & Bucket191 - Bucket168 --> Bucket169 & Bucket170 - Bucket177 --> Bucket178 - Bucket182 --> Bucket183 & Bucket184 - Bucket192 --> Bucket193 - Bucket193 --> Bucket194 & Bucket195 & Bucket196 & Bucket199 & Bucket200 & Bucket201 & Bucket202 & Bucket203 & Bucket204 & Bucket205 & Bucket207 & Bucket208 & Bucket209 & Bucket210 & Bucket213 & Bucket214 & Bucket215 & Bucket216 & Bucket217 & Bucket218 & Bucket219 - Bucket196 --> Bucket197 & Bucket198 - Bucket205 --> Bucket206 - Bucket210 --> Bucket211 & Bucket212 - Bucket220 --> Bucket221 & Bucket249 & Bucket250 - Bucket221 --> Bucket222 - Bucket222 --> Bucket223 & Bucket224 & Bucket225 & Bucket228 & Bucket229 & Bucket230 & Bucket231 & Bucket232 & Bucket233 & Bucket234 & Bucket236 & Bucket237 & Bucket238 & Bucket239 & Bucket242 & Bucket243 & Bucket244 & Bucket245 & Bucket246 & Bucket247 & Bucket248 - Bucket225 --> Bucket226 & Bucket227 - Bucket234 --> Bucket235 - Bucket239 --> Bucket240 & Bucket241 - Bucket250 --> Bucket251 - Bucket251 --> Bucket252 - Bucket252 --> Bucket253 & Bucket254 & Bucket255 & Bucket258 & Bucket259 & Bucket260 & Bucket261 & Bucket262 & Bucket263 & Bucket264 & Bucket266 & Bucket267 & Bucket268 & Bucket269 & Bucket272 & Bucket273 & Bucket274 & Bucket275 & Bucket276 & Bucket277 & Bucket278 - Bucket255 --> Bucket256 & Bucket257 - Bucket264 --> Bucket265 - Bucket269 --> Bucket270 & Bucket271 - Bucket279 --> Bucket280 & Bucket307 & Bucket335 & Bucket363 & Bucket364 - Bucket280 --> Bucket281 & Bucket282 & Bucket283 & Bucket286 & Bucket287 & Bucket288 & Bucket289 & Bucket290 & Bucket291 & Bucket292 & Bucket294 & Bucket295 & Bucket296 & Bucket297 & Bucket300 & Bucket301 & Bucket302 & Bucket303 & Bucket304 & Bucket305 & Bucket306 - Bucket283 --> Bucket284 & Bucket285 - Bucket292 --> Bucket293 - Bucket297 --> Bucket298 & Bucket299 - Bucket307 --> Bucket308 - Bucket308 --> Bucket309 & Bucket310 & Bucket311 & Bucket314 & Bucket315 & Bucket316 & Bucket317 & Bucket318 & Bucket319 & Bucket320 & Bucket322 & Bucket323 & Bucket324 & Bucket325 & Bucket328 & Bucket329 & Bucket330 & Bucket331 & Bucket332 & Bucket333 & Bucket334 - Bucket311 --> Bucket312 & Bucket313 - Bucket320 --> Bucket321 - Bucket325 --> Bucket326 & Bucket327 - Bucket335 --> Bucket336 - Bucket336 --> Bucket337 & Bucket338 & Bucket339 & Bucket342 & Bucket343 & Bucket344 & Bucket345 & Bucket346 & Bucket347 & Bucket348 & Bucket350 & Bucket351 & Bucket352 & Bucket353 & Bucket356 & Bucket357 & Bucket358 & Bucket359 & Bucket360 & Bucket361 & Bucket362 - Bucket339 --> Bucket340 & Bucket341 - Bucket348 --> Bucket349 - Bucket353 --> Bucket354 & Bucket355 - Bucket364 --> Bucket365 - Bucket365 --> Bucket366 - Bucket366 --> Bucket367 & Bucket368 & Bucket369 & Bucket372 & Bucket373 & Bucket374 & Bucket375 & Bucket376 & Bucket377 & Bucket378 & Bucket380 & Bucket381 & Bucket382 & Bucket383 & Bucket386 & Bucket387 & Bucket388 & Bucket389 & Bucket390 & Bucket391 & Bucket392 - Bucket369 --> Bucket370 & Bucket371 - Bucket378 --> Bucket379 - Bucket383 --> Bucket384 & Bucket385 - Bucket393 --> Bucket394 & Bucket421 - Bucket394 --> Bucket395 & Bucket396 & Bucket397 & Bucket400 & Bucket401 & Bucket402 & Bucket403 & Bucket404 & Bucket405 & Bucket406 & Bucket408 & Bucket409 & Bucket410 & Bucket411 & Bucket414 & Bucket415 & Bucket416 & Bucket417 & Bucket418 & Bucket419 & Bucket420 - Bucket397 --> Bucket398 & Bucket399 - Bucket406 --> Bucket407 - Bucket411 --> Bucket412 & Bucket413 - Bucket421 --> Bucket422 & Bucket449 - Bucket422 --> Bucket423 & Bucket424 & Bucket425 & Bucket428 & Bucket429 & Bucket430 & Bucket431 & Bucket432 & Bucket433 & Bucket434 & Bucket436 & Bucket437 & Bucket438 & Bucket439 & Bucket442 & Bucket443 & Bucket444 & Bucket445 & Bucket446 & Bucket447 & Bucket448 - Bucket425 --> Bucket426 & Bucket427 - Bucket434 --> Bucket435 - Bucket439 --> Bucket440 & Bucket441 - Bucket449 --> Bucket450 & Bucket451 & Bucket452 & Bucket455 & Bucket456 & Bucket457 & Bucket458 & Bucket459 & Bucket460 & Bucket461 & Bucket463 & Bucket464 & Bucket465 & Bucket466 & Bucket469 & Bucket470 & Bucket471 & Bucket472 & Bucket473 & Bucket474 & Bucket475 - Bucket452 --> Bucket453 & Bucket454 - Bucket461 --> Bucket462 - Bucket466 --> Bucket467 & Bucket468 + class Bucket117,__Item3549 bucket117 + Bucket0 --> Bucket1 & Bucket9 & Bucket17 & Bucket18 & Bucket19 & Bucket20 & Bucket21 & Bucket22 & Bucket23 & Bucket24 & Bucket25 & Bucket26 & Bucket27 & Bucket28 & Bucket29 & Bucket30 & Bucket31 & Bucket39 & Bucket40 & Bucket41 & Bucket42 & Bucket43 & Bucket44 & Bucket45 & Bucket46 & Bucket54 & Bucket62 & Bucket63 & Bucket71 & Bucket72 & Bucket73 & Bucket74 & Bucket75 & Bucket76 & Bucket77 & Bucket78 & Bucket86 & Bucket94 & Bucket95 & Bucket103 & Bucket104 & Bucket105 & Bucket106 & Bucket107 & Bucket108 & Bucket109 & Bucket110 + Bucket1 --> Bucket2 & Bucket3 & Bucket4 & Bucket5 & Bucket6 & Bucket7 & Bucket8 + Bucket9 --> Bucket10 & Bucket11 & Bucket12 & Bucket13 & Bucket14 & Bucket15 & Bucket16 + Bucket31 --> Bucket32 & Bucket33 & Bucket34 & Bucket35 & Bucket36 & Bucket37 & Bucket38 + Bucket46 --> Bucket47 & Bucket48 & Bucket49 & Bucket50 & Bucket51 & Bucket52 & Bucket53 + Bucket54 --> Bucket55 & Bucket56 & Bucket57 & Bucket58 & Bucket59 & Bucket60 & Bucket61 + Bucket63 --> Bucket64 & Bucket65 & Bucket66 & Bucket67 & Bucket68 & Bucket69 & Bucket70 + Bucket78 --> Bucket79 & Bucket80 & Bucket81 & Bucket82 & Bucket83 & Bucket84 & Bucket85 + Bucket86 --> Bucket87 & Bucket88 & Bucket89 & Bucket90 & Bucket91 & Bucket92 & Bucket93 + Bucket95 --> Bucket96 & Bucket97 & Bucket98 & Bucket99 & Bucket100 & Bucket101 & Bucket102 + Bucket110 --> Bucket111 & Bucket112 & Bucket113 & Bucket114 & Bucket115 & Bucket116 & Bucket117 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/types.sql b/postgraphile/postgraphile/__tests__/queries/v4/types.sql index 7b15fa1917..9822f423d3 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/types.sql +++ b/postgraphile/postgraphile/__tests__/queries/v4/types.sql @@ -59,6 +59,10 @@ select from "b"."types" as __types__ order by __types__."id" asc; +select + (count(*))::text as "0" +from "b"."types" as __types__; + select __types__."id"::text as "0", __types__."smallint"::text as "1", @@ -242,217 +246,6 @@ select __type_function_list__."ltree_array"::text as "48" from unnest("b"."type_function_list"()) as __type_function_list__; -select - case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "0", - __person__."id"::text as "1" -from "c"."person" as __person__ -where ( - __person__."id" = $1::"int4" -); - -select - __post__."id"::text as "0", - __post__."headline" as "1" -from "a"."post" as __post__ -where ( - __post__."id" = $1::"int4" -); - -select - __types__."id"::text as "0", - __types__."smallint"::text as "1", - __types__."bigint"::text as "2", - __types__."numeric"::text as "3", - __types__."decimal"::text as "4", - __types__."boolean"::text as "5", - __types__."varchar" as "6", - __types__."enum"::text as "7", - __types__."enum_array"::text as "8", - __types__."domain"::text as "9", - __types__."domain2"::text as "10", - __types__."text_array"::text as "11", - __types__."json"::text as "12", - __types__."jsonb"::text as "13", - __types__."nullable_range"::text as "14", - __types__."numrange"::text as "15", - json_build_array( - lower_inc(__types__."daterange"), - to_char(lower(__types__."daterange"), 'YYYY-MM-DD'::text), - to_char(upper(__types__."daterange"), 'YYYY-MM-DD'::text), - upper_inc(__types__."daterange") - )::text as "16", - __types__."an_int_range"::text as "17", - to_char(__types__."timestamp", 'YYYY-MM-DD"T"HH24:MI:SS.US'::text) as "18", - to_char(__types__."timestamptz", 'YYYY-MM-DD"T"HH24:MI:SS.USTZH:TZM'::text) as "19", - to_char(__types__."date", 'YYYY-MM-DD'::text) as "20", - to_char(date '1970-01-01' + __types__."time", 'HH24:MI:SS.US'::text) as "21", - to_char(date '1970-01-01' + __types__."timetz", 'HH24:MI:SS.USTZH:TZM'::text) as "22", - to_char(__types__."interval", 'YYYY_MM_DD_HH24_MI_SS.US'::text) as "23", - array( - select to_char(__entry__, 'YYYY_MM_DD_HH24_MI_SS.US'::text) - from unnest(__types__."interval_array") __entry__ - )::text as "24", - __types__."money"::numeric::text as "25", - case when (__types__."compound_type") is not distinct from null then null::text else json_build_array((((__types__."compound_type")."a"))::text, ((__types__."compound_type")."b"), (((__types__."compound_type")."c"))::text, ((__types__."compound_type")."d"), (((__types__."compound_type")."e"))::text, (((__types__."compound_type")."f"))::text, to_char(((__types__."compound_type")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__types__."compound_type")."foo_bar"))::text)::text end as "26", - case when (__types__."nested_compound_type") is not distinct from null then null::text else json_build_array(case when (((__types__."nested_compound_type")."a")) is not distinct from null then null::text else json_build_array((((((__types__."nested_compound_type")."a"))."a"))::text, ((((__types__."nested_compound_type")."a"))."b"), (((((__types__."nested_compound_type")."a"))."c"))::text, ((((__types__."nested_compound_type")."a"))."d"), (((((__types__."nested_compound_type")."a"))."e"))::text, (((((__types__."nested_compound_type")."a"))."f"))::text, to_char(((((__types__."nested_compound_type")."a"))."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((((__types__."nested_compound_type")."a"))."foo_bar"))::text)::text end, case when (((__types__."nested_compound_type")."b")) is not distinct from null then null::text else json_build_array((((((__types__."nested_compound_type")."b"))."a"))::text, ((((__types__."nested_compound_type")."b"))."b"), (((((__types__."nested_compound_type")."b"))."c"))::text, ((((__types__."nested_compound_type")."b"))."d"), (((((__types__."nested_compound_type")."b"))."e"))::text, (((((__types__."nested_compound_type")."b"))."f"))::text, to_char(((((__types__."nested_compound_type")."b"))."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((((__types__."nested_compound_type")."b"))."foo_bar"))::text)::text end, (((__types__."nested_compound_type")."baz_buz"))::text)::text end as "27", - case when (__types__."nullable_compound_type") is not distinct from null then null::text else json_build_array((((__types__."nullable_compound_type")."a"))::text, ((__types__."nullable_compound_type")."b"), (((__types__."nullable_compound_type")."c"))::text, ((__types__."nullable_compound_type")."d"), (((__types__."nullable_compound_type")."e"))::text, (((__types__."nullable_compound_type")."f"))::text, to_char(((__types__."nullable_compound_type")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__types__."nullable_compound_type")."foo_bar"))::text)::text end as "28", - case when (__types__."nullable_nested_compound_type") is not distinct from null then null::text else json_build_array(case when (((__types__."nullable_nested_compound_type")."a")) is not distinct from null then null::text else json_build_array((((((__types__."nullable_nested_compound_type")."a"))."a"))::text, ((((__types__."nullable_nested_compound_type")."a"))."b"), (((((__types__."nullable_nested_compound_type")."a"))."c"))::text, ((((__types__."nullable_nested_compound_type")."a"))."d"), (((((__types__."nullable_nested_compound_type")."a"))."e"))::text, (((((__types__."nullable_nested_compound_type")."a"))."f"))::text, to_char(((((__types__."nullable_nested_compound_type")."a"))."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((((__types__."nullable_nested_compound_type")."a"))."foo_bar"))::text)::text end, case when (((__types__."nullable_nested_compound_type")."b")) is not distinct from null then null::text else json_build_array((((((__types__."nullable_nested_compound_type")."b"))."a"))::text, ((((__types__."nullable_nested_compound_type")."b"))."b"), (((((__types__."nullable_nested_compound_type")."b"))."c"))::text, ((((__types__."nullable_nested_compound_type")."b"))."d"), (((((__types__."nullable_nested_compound_type")."b"))."e"))::text, (((((__types__."nullable_nested_compound_type")."b"))."f"))::text, to_char(((((__types__."nullable_nested_compound_type")."b"))."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((((__types__."nullable_nested_compound_type")."b"))."foo_bar"))::text)::text end, (((__types__."nullable_nested_compound_type")."baz_buz"))::text)::text end as "29", - __types__."point"::text as "30", - __types__."nullablePoint"::text as "31", - __types__."inet"::text as "32", - __types__."cidr"::text as "33", - __types__."macaddr"::text as "34", - __types__."regproc"::text as "35", - __types__."regprocedure"::text as "36", - __types__."regoper"::text as "37", - __types__."regoperator"::text as "38", - __types__."regclass"::text as "39", - __types__."regtype"::text as "40", - __types__."regconfig"::text as "41", - __types__."regdictionary"::text as "42", - __types__."text_array_domain"::text as "43", - __types__."int8_array_domain"::text as "44", - __types__."bytea"::text as "45", - __types__."bytea_array"::text as "46", - __types__."ltree"::text as "47", - __types__."ltree_array"::text as "48", - array( - select to_char(__entry_2, 'YYYY_MM_DD_HH24_MI_SS.US'::text) - from unnest(__types__."interval_array") __entry_2 - )::text as "49" -from "b"."types" as __types__ -order by __types__."id" asc; - -select - (count(*))::text as "0" -from "b"."types" as __types__; - -select __frmcdc_compound_type_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"c"."compound_type" as "id0" from json_array_elements($1::json) with ordinality as ids) as __frmcdc_compound_type_identifiers__, -lateral ( - select - __frmcdc_compound_type__."a"::text as "0", - __frmcdc_compound_type__."b" as "1", - __frmcdc_compound_type__."c"::text as "2", - __frmcdc_compound_type__."d" as "3", - __frmcdc_compound_type__."e"::text as "4", - __frmcdc_compound_type__."f"::text as "5", - __frmcdc_compound_type__."foo_bar"::text as "6", - (not (__frmcdc_compound_type__ is null))::text as "7", - __frmcdc_compound_type_identifiers__.idx as "8" - from (select (__frmcdc_compound_type_identifiers__."id0").*) as __frmcdc_compound_type__ -) as __frmcdc_compound_type_result__; - -select __frmcdc_nested_compound_type_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"b"."nested_compound_type" as "id0" from json_array_elements($1::json) with ordinality as ids) as __frmcdc_nested_compound_type_identifiers__, -lateral ( - select - case when (__frmcdc_nested_compound_type__."a") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."a")."a"))::text, ((__frmcdc_nested_compound_type__."a")."b"), (((__frmcdc_nested_compound_type__."a")."c"))::text, ((__frmcdc_nested_compound_type__."a")."d"), (((__frmcdc_nested_compound_type__."a")."e"))::text, (((__frmcdc_nested_compound_type__."a")."f"))::text, to_char(((__frmcdc_nested_compound_type__."a")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."a")."foo_bar"))::text)::text end as "0", - case when (__frmcdc_nested_compound_type__."b") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."b")."a"))::text, ((__frmcdc_nested_compound_type__."b")."b"), (((__frmcdc_nested_compound_type__."b")."c"))::text, ((__frmcdc_nested_compound_type__."b")."d"), (((__frmcdc_nested_compound_type__."b")."e"))::text, (((__frmcdc_nested_compound_type__."b")."f"))::text, to_char(((__frmcdc_nested_compound_type__."b")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."b")."foo_bar"))::text)::text end as "1", - __frmcdc_nested_compound_type__."baz_buz"::text as "2", - (not (__frmcdc_nested_compound_type__ is null))::text as "3", - __frmcdc_nested_compound_type_identifiers__.idx as "4" - from (select (__frmcdc_nested_compound_type_identifiers__."id0").*) as __frmcdc_nested_compound_type__ -) as __frmcdc_nested_compound_type_result__; - -select __frmcdc_compound_type_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"c"."compound_type" as "id0" from json_array_elements($1::json) with ordinality as ids) as __frmcdc_compound_type_identifiers__, -lateral ( - select - __frmcdc_compound_type__."a"::text as "0", - __frmcdc_compound_type__."b" as "1", - __frmcdc_compound_type__."c"::text as "2", - __frmcdc_compound_type__."d" as "3", - __frmcdc_compound_type__."e"::text as "4", - __frmcdc_compound_type__."f"::text as "5", - __frmcdc_compound_type__."foo_bar"::text as "6", - (not (__frmcdc_compound_type__ is null))::text as "7", - __frmcdc_compound_type_identifiers__.idx as "8" - from (select (__frmcdc_compound_type_identifiers__."id0").*) as __frmcdc_compound_type__ -) as __frmcdc_compound_type_result__; - -select __frmcdc_nested_compound_type_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"b"."nested_compound_type" as "id0" from json_array_elements($1::json) with ordinality as ids) as __frmcdc_nested_compound_type_identifiers__, -lateral ( - select - case when (__frmcdc_nested_compound_type__."a") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."a")."a"))::text, ((__frmcdc_nested_compound_type__."a")."b"), (((__frmcdc_nested_compound_type__."a")."c"))::text, ((__frmcdc_nested_compound_type__."a")."d"), (((__frmcdc_nested_compound_type__."a")."e"))::text, (((__frmcdc_nested_compound_type__."a")."f"))::text, to_char(((__frmcdc_nested_compound_type__."a")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."a")."foo_bar"))::text)::text end as "0", - case when (__frmcdc_nested_compound_type__."b") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."b")."a"))::text, ((__frmcdc_nested_compound_type__."b")."b"), (((__frmcdc_nested_compound_type__."b")."c"))::text, ((__frmcdc_nested_compound_type__."b")."d"), (((__frmcdc_nested_compound_type__."b")."e"))::text, (((__frmcdc_nested_compound_type__."b")."f"))::text, to_char(((__frmcdc_nested_compound_type__."b")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."b")."foo_bar"))::text)::text end as "1", - __frmcdc_nested_compound_type__."baz_buz"::text as "2", - (not (__frmcdc_nested_compound_type__ is null))::text as "3", - __frmcdc_nested_compound_type_identifiers__.idx as "4" - from (select (__frmcdc_nested_compound_type_identifiers__."id0").*) as __frmcdc_nested_compound_type__ -) as __frmcdc_nested_compound_type_result__; - -select __post_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"int4" as "id0" from json_array_elements($1::json) with ordinality as ids) as __post_identifiers__, -lateral ( - select - __post__."id"::text as "0", - __post__."headline" as "1", - __post_identifiers__.idx as "2" - from "a"."post" as __post__ - where ( - __post__."id" = __post_identifiers__."id0" - ) -) as __post_result__; - -select __post_result__.* -from (select ids.ordinality - 1 as idx, (ids.value->>0)::"int4" as "id0" from json_array_elements($1::json) with ordinality as ids) as __post_identifiers__, -lateral ( - select - __post__."id"::text as "0", - __post__."headline" as "1", - __post_identifiers__.idx as "2" - from "a"."post" as __post__ - where ( - __post__."id" = __post_identifiers__."id0" - ) -) as __post_result__; - -select - __frmcdc_compound_type__."a"::text as "0", - __frmcdc_compound_type__."b" as "1", - __frmcdc_compound_type__."c"::text as "2", - __frmcdc_compound_type__."d" as "3", - __frmcdc_compound_type__."e"::text as "4", - __frmcdc_compound_type__."f"::text as "5", - __frmcdc_compound_type__."foo_bar"::text as "6", - (not (__frmcdc_compound_type__ is null))::text as "7" -from (select ($1::"c"."compound_type").*) as __frmcdc_compound_type__; - -select - case when (__frmcdc_nested_compound_type__."a") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."a")."a"))::text, ((__frmcdc_nested_compound_type__."a")."b"), (((__frmcdc_nested_compound_type__."a")."c"))::text, ((__frmcdc_nested_compound_type__."a")."d"), (((__frmcdc_nested_compound_type__."a")."e"))::text, (((__frmcdc_nested_compound_type__."a")."f"))::text, to_char(((__frmcdc_nested_compound_type__."a")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."a")."foo_bar"))::text)::text end as "0", - case when (__frmcdc_nested_compound_type__."b") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."b")."a"))::text, ((__frmcdc_nested_compound_type__."b")."b"), (((__frmcdc_nested_compound_type__."b")."c"))::text, ((__frmcdc_nested_compound_type__."b")."d"), (((__frmcdc_nested_compound_type__."b")."e"))::text, (((__frmcdc_nested_compound_type__."b")."f"))::text, to_char(((__frmcdc_nested_compound_type__."b")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."b")."foo_bar"))::text)::text end as "1", - __frmcdc_nested_compound_type__."baz_buz"::text as "2", - (not (__frmcdc_nested_compound_type__ is null))::text as "3" -from (select ($1::"b"."nested_compound_type").*) as __frmcdc_nested_compound_type__; - -select - __frmcdc_compound_type__."a"::text as "0", - __frmcdc_compound_type__."b" as "1", - __frmcdc_compound_type__."c"::text as "2", - __frmcdc_compound_type__."d" as "3", - __frmcdc_compound_type__."e"::text as "4", - __frmcdc_compound_type__."f"::text as "5", - __frmcdc_compound_type__."foo_bar"::text as "6", - (not (__frmcdc_compound_type__ is null))::text as "7" -from (select ($1::"c"."compound_type").*) as __frmcdc_compound_type__; - -select - case when (__frmcdc_nested_compound_type__."a") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."a")."a"))::text, ((__frmcdc_nested_compound_type__."a")."b"), (((__frmcdc_nested_compound_type__."a")."c"))::text, ((__frmcdc_nested_compound_type__."a")."d"), (((__frmcdc_nested_compound_type__."a")."e"))::text, (((__frmcdc_nested_compound_type__."a")."f"))::text, to_char(((__frmcdc_nested_compound_type__."a")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."a")."foo_bar"))::text)::text end as "0", - case when (__frmcdc_nested_compound_type__."b") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."b")."a"))::text, ((__frmcdc_nested_compound_type__."b")."b"), (((__frmcdc_nested_compound_type__."b")."c"))::text, ((__frmcdc_nested_compound_type__."b")."d"), (((__frmcdc_nested_compound_type__."b")."e"))::text, (((__frmcdc_nested_compound_type__."b")."f"))::text, to_char(((__frmcdc_nested_compound_type__."b")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."b")."foo_bar"))::text)::text end as "1", - __frmcdc_nested_compound_type__."baz_buz"::text as "2", - (not (__frmcdc_nested_compound_type__ is null))::text as "3" -from (select ($1::"b"."nested_compound_type").*) as __frmcdc_nested_compound_type__; - -select - __post__."id"::text as "0", - __post__."headline" as "1" -from "a"."post" as __post__ -where ( - __post__."id" = $1::"int4" -); - select __type_function_connection__."id"::text as "0", __type_function_connection__."smallint"::text as "1", @@ -522,6 +315,66 @@ select (count(*))::text as "0" from "b"."type_function_connection"() as __type_function_connection__; +select + case when (__person__) is not distinct from null then null::text else json_build_array((((__person__)."id"))::text, ((__person__)."person_full_name"), (((__person__)."aliases"))::text, ((__person__)."about"), ((__person__)."email"), case when (((__person__)."site")) is not distinct from null then null::text else json_build_array(((((__person__)."site"))."url"))::text end, (((__person__)."config"))::text, (((__person__)."last_login_from_ip"))::text, (((__person__)."last_login_from_subnet"))::text, (((__person__)."user_mac"))::text, to_char(((__person__)."created_at"), 'YYYY-MM-DD"T"HH24:MI:SS.US'::text))::text end as "0", + __person__."id"::text as "1" +from "c"."person" as __person__ +where ( + __person__."id" = $1::"int4" +); + +select + __post__."id"::text as "0", + __post__."headline" as "1" +from "a"."post" as __post__ +where ( + __post__."id" = $1::"int4" +); + +select + __frmcdc_compound_type__."a"::text as "0", + __frmcdc_compound_type__."b" as "1", + __frmcdc_compound_type__."c"::text as "2", + __frmcdc_compound_type__."d" as "3", + __frmcdc_compound_type__."e"::text as "4", + __frmcdc_compound_type__."f"::text as "5", + __frmcdc_compound_type__."foo_bar"::text as "6", + (not (__frmcdc_compound_type__ is null))::text as "7" +from (select ($1::"c"."compound_type").*) as __frmcdc_compound_type__; + +select + case when (__frmcdc_nested_compound_type__."a") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."a")."a"))::text, ((__frmcdc_nested_compound_type__."a")."b"), (((__frmcdc_nested_compound_type__."a")."c"))::text, ((__frmcdc_nested_compound_type__."a")."d"), (((__frmcdc_nested_compound_type__."a")."e"))::text, (((__frmcdc_nested_compound_type__."a")."f"))::text, to_char(((__frmcdc_nested_compound_type__."a")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."a")."foo_bar"))::text)::text end as "0", + case when (__frmcdc_nested_compound_type__."b") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."b")."a"))::text, ((__frmcdc_nested_compound_type__."b")."b"), (((__frmcdc_nested_compound_type__."b")."c"))::text, ((__frmcdc_nested_compound_type__."b")."d"), (((__frmcdc_nested_compound_type__."b")."e"))::text, (((__frmcdc_nested_compound_type__."b")."f"))::text, to_char(((__frmcdc_nested_compound_type__."b")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."b")."foo_bar"))::text)::text end as "1", + __frmcdc_nested_compound_type__."baz_buz"::text as "2", + (not (__frmcdc_nested_compound_type__ is null))::text as "3" +from (select ($1::"b"."nested_compound_type").*) as __frmcdc_nested_compound_type__; + +select + __frmcdc_compound_type__."a"::text as "0", + __frmcdc_compound_type__."b" as "1", + __frmcdc_compound_type__."c"::text as "2", + __frmcdc_compound_type__."d" as "3", + __frmcdc_compound_type__."e"::text as "4", + __frmcdc_compound_type__."f"::text as "5", + __frmcdc_compound_type__."foo_bar"::text as "6", + (not (__frmcdc_compound_type__ is null))::text as "7" +from (select ($1::"c"."compound_type").*) as __frmcdc_compound_type__; + +select + case when (__frmcdc_nested_compound_type__."a") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."a")."a"))::text, ((__frmcdc_nested_compound_type__."a")."b"), (((__frmcdc_nested_compound_type__."a")."c"))::text, ((__frmcdc_nested_compound_type__."a")."d"), (((__frmcdc_nested_compound_type__."a")."e"))::text, (((__frmcdc_nested_compound_type__."a")."f"))::text, to_char(((__frmcdc_nested_compound_type__."a")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."a")."foo_bar"))::text)::text end as "0", + case when (__frmcdc_nested_compound_type__."b") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."b")."a"))::text, ((__frmcdc_nested_compound_type__."b")."b"), (((__frmcdc_nested_compound_type__."b")."c"))::text, ((__frmcdc_nested_compound_type__."b")."d"), (((__frmcdc_nested_compound_type__."b")."e"))::text, (((__frmcdc_nested_compound_type__."b")."f"))::text, to_char(((__frmcdc_nested_compound_type__."b")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."b")."foo_bar"))::text)::text end as "1", + __frmcdc_nested_compound_type__."baz_buz"::text as "2", + (not (__frmcdc_nested_compound_type__ is null))::text as "3" +from (select ($1::"b"."nested_compound_type").*) as __frmcdc_nested_compound_type__; + +select + __post__."id"::text as "0", + __post__."headline" as "1" +from "a"."post" as __post__ +where ( + __post__."id" = $1::"int4" +); + select __person_type_function__."id"::text as "0", __person_type_function__."smallint"::text as "1", @@ -771,11 +624,7 @@ select __types__."bytea"::text as "45", __types__."bytea_array"::text as "46", __types__."ltree"::text as "47", - __types__."ltree_array"::text as "48", - array( - select to_char(__entry_2, 'YYYY_MM_DD_HH24_MI_SS.US'::text) - from unnest(__types__."interval_array") __entry_2 - )::text as "49" + __types__."ltree_array"::text as "48" from "b"."types" as __types__ where ( __types__."smallint" = $1::"int2" @@ -789,6 +638,28 @@ where ( __types__."smallint" = $1::"int2" ); +select + __frmcdc_compound_type__."a"::text as "0", + __frmcdc_compound_type__."b" as "1", + __frmcdc_compound_type__."c"::text as "2", + __frmcdc_compound_type__."d" as "3", + __frmcdc_compound_type__."e"::text as "4", + __frmcdc_compound_type__."f"::text as "5", + __frmcdc_compound_type__."foo_bar"::text as "6", + (not (__frmcdc_compound_type__ is null))::text as "7" +from (select ($1::"c"."compound_type").*) as __frmcdc_compound_type__; + +select + __frmcdc_compound_type__."a"::text as "0", + __frmcdc_compound_type__."b" as "1", + __frmcdc_compound_type__."c"::text as "2", + __frmcdc_compound_type__."d" as "3", + __frmcdc_compound_type__."e"::text as "4", + __frmcdc_compound_type__."f"::text as "5", + __frmcdc_compound_type__."foo_bar"::text as "6", + (not (__frmcdc_compound_type__ is null))::text as "7" +from (select ($1::"c"."compound_type").*) as __frmcdc_compound_type__; + select __frmcdc_compound_type_result__.* from (select ids.ordinality - 1 as idx, (ids.value->>0)::"c"."compound_type" as "id0" from json_array_elements($1::json) with ordinality as ids) as __frmcdc_compound_type_identifiers__, lateral ( @@ -805,6 +676,18 @@ lateral ( from (select (__frmcdc_compound_type_identifiers__."id0").*) as __frmcdc_compound_type__ ) as __frmcdc_compound_type_result__; +select __frmcdc_nested_compound_type_result__.* +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"b"."nested_compound_type" as "id0" from json_array_elements($1::json) with ordinality as ids) as __frmcdc_nested_compound_type_identifiers__, +lateral ( + select + case when (__frmcdc_nested_compound_type__."a") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."a")."a"))::text, ((__frmcdc_nested_compound_type__."a")."b"), (((__frmcdc_nested_compound_type__."a")."c"))::text, ((__frmcdc_nested_compound_type__."a")."d"), (((__frmcdc_nested_compound_type__."a")."e"))::text, (((__frmcdc_nested_compound_type__."a")."f"))::text, to_char(((__frmcdc_nested_compound_type__."a")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."a")."foo_bar"))::text)::text end as "0", + case when (__frmcdc_nested_compound_type__."b") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."b")."a"))::text, ((__frmcdc_nested_compound_type__."b")."b"), (((__frmcdc_nested_compound_type__."b")."c"))::text, ((__frmcdc_nested_compound_type__."b")."d"), (((__frmcdc_nested_compound_type__."b")."e"))::text, (((__frmcdc_nested_compound_type__."b")."f"))::text, to_char(((__frmcdc_nested_compound_type__."b")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."b")."foo_bar"))::text)::text end as "1", + __frmcdc_nested_compound_type__."baz_buz"::text as "2", + (not (__frmcdc_nested_compound_type__ is null))::text as "3", + __frmcdc_nested_compound_type_identifiers__.idx as "4" + from (select (__frmcdc_nested_compound_type_identifiers__."id0").*) as __frmcdc_nested_compound_type__ +) as __frmcdc_nested_compound_type_result__; + select __frmcdc_compound_type_result__.* from (select ids.ordinality - 1 as idx, (ids.value->>0)::"c"."compound_type" as "id0" from json_array_elements($1::json) with ordinality as ids) as __frmcdc_compound_type_identifiers__, lateral ( @@ -821,24 +704,72 @@ lateral ( from (select (__frmcdc_compound_type_identifiers__."id0").*) as __frmcdc_compound_type__ ) as __frmcdc_compound_type_result__; -select - __frmcdc_compound_type__."a"::text as "0", - __frmcdc_compound_type__."b" as "1", - __frmcdc_compound_type__."c"::text as "2", - __frmcdc_compound_type__."d" as "3", - __frmcdc_compound_type__."e"::text as "4", - __frmcdc_compound_type__."f"::text as "5", - __frmcdc_compound_type__."foo_bar"::text as "6", - (not (__frmcdc_compound_type__ is null))::text as "7" -from (select ($1::"c"."compound_type").*) as __frmcdc_compound_type__; +select __frmcdc_nested_compound_type_result__.* +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"b"."nested_compound_type" as "id0" from json_array_elements($1::json) with ordinality as ids) as __frmcdc_nested_compound_type_identifiers__, +lateral ( + select + case when (__frmcdc_nested_compound_type__."a") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."a")."a"))::text, ((__frmcdc_nested_compound_type__."a")."b"), (((__frmcdc_nested_compound_type__."a")."c"))::text, ((__frmcdc_nested_compound_type__."a")."d"), (((__frmcdc_nested_compound_type__."a")."e"))::text, (((__frmcdc_nested_compound_type__."a")."f"))::text, to_char(((__frmcdc_nested_compound_type__."a")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."a")."foo_bar"))::text)::text end as "0", + case when (__frmcdc_nested_compound_type__."b") is not distinct from null then null::text else json_build_array((((__frmcdc_nested_compound_type__."b")."a"))::text, ((__frmcdc_nested_compound_type__."b")."b"), (((__frmcdc_nested_compound_type__."b")."c"))::text, ((__frmcdc_nested_compound_type__."b")."d"), (((__frmcdc_nested_compound_type__."b")."e"))::text, (((__frmcdc_nested_compound_type__."b")."f"))::text, to_char(((__frmcdc_nested_compound_type__."b")."g"), 'YYYY_MM_DD_HH24_MI_SS.US'::text), (((__frmcdc_nested_compound_type__."b")."foo_bar"))::text)::text end as "1", + __frmcdc_nested_compound_type__."baz_buz"::text as "2", + (not (__frmcdc_nested_compound_type__ is null))::text as "3", + __frmcdc_nested_compound_type_identifiers__.idx as "4" + from (select (__frmcdc_nested_compound_type_identifiers__."id0").*) as __frmcdc_nested_compound_type__ +) as __frmcdc_nested_compound_type_result__; -select - __frmcdc_compound_type__."a"::text as "0", - __frmcdc_compound_type__."b" as "1", - __frmcdc_compound_type__."c"::text as "2", - __frmcdc_compound_type__."d" as "3", - __frmcdc_compound_type__."e"::text as "4", - __frmcdc_compound_type__."f"::text as "5", - __frmcdc_compound_type__."foo_bar"::text as "6", - (not (__frmcdc_compound_type__ is null))::text as "7" -from (select ($1::"c"."compound_type").*) as __frmcdc_compound_type__; \ No newline at end of file +select __post_result__.* +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"int4" as "id0" from json_array_elements($1::json) with ordinality as ids) as __post_identifiers__, +lateral ( + select + __post__."id"::text as "0", + __post__."headline" as "1", + __post_identifiers__.idx as "2" + from "a"."post" as __post__ + where ( + __post__."id" = __post_identifiers__."id0" + ) +) as __post_result__; + +select __post_result__.* +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"int4" as "id0" from json_array_elements($1::json) with ordinality as ids) as __post_identifiers__, +lateral ( + select + __post__."id"::text as "0", + __post__."headline" as "1", + __post_identifiers__.idx as "2" + from "a"."post" as __post__ + where ( + __post__."id" = __post_identifiers__."id0" + ) +) as __post_result__; + +select __frmcdc_compound_type_result__.* +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"c"."compound_type" as "id0" from json_array_elements($1::json) with ordinality as ids) as __frmcdc_compound_type_identifiers__, +lateral ( + select + __frmcdc_compound_type__."a"::text as "0", + __frmcdc_compound_type__."b" as "1", + __frmcdc_compound_type__."c"::text as "2", + __frmcdc_compound_type__."d" as "3", + __frmcdc_compound_type__."e"::text as "4", + __frmcdc_compound_type__."f"::text as "5", + __frmcdc_compound_type__."foo_bar"::text as "6", + (not (__frmcdc_compound_type__ is null))::text as "7", + __frmcdc_compound_type_identifiers__.idx as "8" + from (select (__frmcdc_compound_type_identifiers__."id0").*) as __frmcdc_compound_type__ +) as __frmcdc_compound_type_result__; + +select __frmcdc_compound_type_result__.* +from (select ids.ordinality - 1 as idx, (ids.value->>0)::"c"."compound_type" as "id0" from json_array_elements($1::json) with ordinality as ids) as __frmcdc_compound_type_identifiers__, +lateral ( + select + __frmcdc_compound_type__."a"::text as "0", + __frmcdc_compound_type__."b" as "1", + __frmcdc_compound_type__."c"::text as "2", + __frmcdc_compound_type__."d" as "3", + __frmcdc_compound_type__."e"::text as "4", + __frmcdc_compound_type__."f"::text as "5", + __frmcdc_compound_type__."foo_bar"::text as "6", + (not (__frmcdc_compound_type__ is null))::text as "7", + __frmcdc_compound_type_identifiers__.idx as "8" + from (select (__frmcdc_compound_type_identifiers__."id0").*) as __frmcdc_compound_type__ +) as __frmcdc_compound_type_result__; \ No newline at end of file diff --git a/postgraphile/postgraphile/__tests__/queries/v4/unique-constraints.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/unique-constraints.mermaid index b4531c1b44..0abd761750 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/unique-constraints.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/unique-constraints.mermaid @@ -16,7 +16,8 @@ graph TD Object10 & Constant53 & Constant54 --> PgSelect26 PgSelect35[["PgSelect[35∈0] ➊
ᐸcompound_keyᐳ"]]:::plan Constant55{{"Constant[55∈0] ➊
ᐸ4ᐳ"}}:::plan - Object10 & Constant55 & Constant55 --> PgSelect35 + Object10 --> PgSelect35 + Constant55 -- 2 --> PgSelect35 PgSelect44[["PgSelect[44∈0] ➊
ᐸcompound_keyᐳ"]]:::plan Constant56{{"Constant[56∈0] ➊
ᐸ100ᐳ"}}:::plan Object10 & Constant53 & Constant56 --> PgSelect44 @@ -38,72 +39,56 @@ graph TD PgSelect7 --> PgSelectRows12 PgSelectSingle13{{"PgSelectSingle[13∈0] ➊
ᐸpersonᐳ"}}:::plan First11 --> PgSelectSingle13 + PgClassExpression14{{"PgClassExpression[14∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression14 + PgClassExpression15{{"PgClassExpression[15∈0] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle13 --> PgClassExpression15 First19{{"First[19∈0] ➊"}}:::plan PgSelectRows20[["PgSelectRows[20∈0] ➊"]]:::plan PgSelectRows20 --> First19 PgSelect17 --> PgSelectRows20 PgSelectSingle21{{"PgSelectSingle[21∈0] ➊
ᐸpersonᐳ"}}:::plan First19 --> PgSelectSingle21 + PgClassExpression22{{"PgClassExpression[22∈0] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression22 + PgClassExpression23{{"PgClassExpression[23∈0] ➊
ᐸ__person__.”email”ᐳ"}}:::plan + PgSelectSingle21 --> PgClassExpression23 First28{{"First[28∈0] ➊"}}:::plan PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan PgSelectRows29 --> First28 PgSelect26 --> PgSelectRows29 PgSelectSingle30{{"PgSelectSingle[30∈0] ➊
ᐸcompound_keyᐳ"}}:::plan First28 --> PgSelectSingle30 + PgClassExpression31{{"PgClassExpression[31∈0] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression31 + PgClassExpression32{{"PgClassExpression[32∈0] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle30 --> PgClassExpression32 First37{{"First[37∈0] ➊"}}:::plan PgSelectRows38[["PgSelectRows[38∈0] ➊"]]:::plan PgSelectRows38 --> First37 PgSelect35 --> PgSelectRows38 PgSelectSingle39{{"PgSelectSingle[39∈0] ➊
ᐸcompound_keyᐳ"}}:::plan First37 --> PgSelectSingle39 + PgClassExpression40{{"PgClassExpression[40∈0] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression40 + PgClassExpression41{{"PgClassExpression[41∈0] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgSelectSingle39 --> PgClassExpression41 First46{{"First[46∈0] ➊"}}:::plan PgSelectRows47[["PgSelectRows[47∈0] ➊"]]:::plan PgSelectRows47 --> First46 PgSelect44 --> PgSelectRows47 PgSelectSingle48{{"PgSelectSingle[48∈0] ➊
ᐸcompound_keyᐳ"}}:::plan First46 --> PgSelectSingle48 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - PgClassExpression14{{"PgClassExpression[14∈1] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression14 - PgClassExpression15{{"PgClassExpression[15∈1] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle13 --> PgClassExpression15 - PgClassExpression22{{"PgClassExpression[22∈2] ➊
ᐸ__person__...full_name”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression22 - PgClassExpression23{{"PgClassExpression[23∈2] ➊
ᐸ__person__.”email”ᐳ"}}:::plan - PgSelectSingle21 --> PgClassExpression23 - PgClassExpression31{{"PgClassExpression[31∈3] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression31 - PgClassExpression32{{"PgClassExpression[32∈3] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle30 --> PgClassExpression32 - PgClassExpression40{{"PgClassExpression[40∈4] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression40 - PgClassExpression41{{"PgClassExpression[41∈4] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - PgSelectSingle39 --> PgClassExpression41 - PgClassExpression49{{"PgClassExpression[49∈5] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression49{{"PgClassExpression[49∈0] ➊
ᐸ__compound...rson_id_1”ᐳ"}}:::plan PgSelectSingle48 --> PgClassExpression49 - PgClassExpression50{{"PgClassExpression[50∈5] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + PgClassExpression50{{"PgClassExpression[50∈0] ➊
ᐸ__compound...rson_id_2”ᐳ"}}:::plan PgSelectSingle48 --> PgClassExpression50 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan %% define steps subgraph "Buckets for queries/v4/unique-constraints" - Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 51, 52, 53, 54, 55, 56, 10
2: 7, 17, 26, 35, 44
3: 12, 20, 29, 38, 47
ᐳ: 11, 13, 19, 21, 28, 30, 37, 39, 46, 48"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 8, 9, 51, 52, 53, 54, 55, 56, 10
2: 7, 17, 26, 35, 44
3: 12, 20, 29, 38, 47
ᐳ: 11, 13, 14, 15, 19, 21, 22, 23, 28, 30, 31, 32, 37, 39, 40, 41, 46, 48, 49, 50"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgSelect17,First19,PgSelectRows20,PgSelectSingle21,PgSelect26,First28,PgSelectRows29,PgSelectSingle30,PgSelect35,First37,PgSelectRows38,PgSelectSingle39,PgSelect44,First46,PgSelectRows47,PgSelectSingle48,Constant51,Constant52,Constant53,Constant54,Constant55,Constant56 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 13

ROOT PgSelectSingleᐸpersonᐳ[13]"):::bucket - classDef bucket1 stroke:#00bfff - class Bucket1,PgClassExpression14,PgClassExpression15 bucket1 - Bucket2("Bucket 2 (nullableBoundary)
Deps: 21

ROOT PgSelectSingleᐸpersonᐳ[21]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,PgClassExpression22,PgClassExpression23 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 30

ROOT PgSelectSingleᐸcompound_keyᐳ[30]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression31,PgClassExpression32 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 39

ROOT PgSelectSingleᐸcompound_keyᐳ[39]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression40,PgClassExpression41 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 48

ROOT PgSelectSingleᐸcompound_keyᐳ[48]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression49,PgClassExpression50 bucket5 - Bucket0 --> Bucket1 & Bucket2 & Bucket3 & Bucket4 & Bucket5 + class Bucket0,__Value2,__Value4,PgSelect7,Access8,Access9,Object10,First11,PgSelectRows12,PgSelectSingle13,PgClassExpression14,PgClassExpression15,PgSelect17,First19,PgSelectRows20,PgSelectSingle21,PgClassExpression22,PgClassExpression23,PgSelect26,First28,PgSelectRows29,PgSelectSingle30,PgClassExpression31,PgClassExpression32,PgSelect35,First37,PgSelectRows38,PgSelectSingle39,PgClassExpression40,PgClassExpression41,PgSelect44,First46,PgSelectRows47,PgSelectSingle48,PgClassExpression49,PgClassExpression50,Constant51,Constant52,Constant53,Constant54,Constant55,Constant56 bucket0 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/unique-foreign-keys.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/unique-foreign-keys.mermaid index d24b06d4fe..4c0aba72de 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/unique-foreign-keys.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/unique-foreign-keys.mermaid @@ -9,92 +9,73 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸcompound_keyᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸcompound_keyᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgSelect20[["PgSelect[20∈1]
ᐸunique_foreign_keyᐳ"]]:::plan + PgClassExpression18{{"PgClassExpression[18∈1]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression19{{"PgClassExpression[19∈1]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Object11 & PgClassExpression18 & PgClassExpression19 --> PgSelect20 + PgSelect29[["PgSelect[29∈1]
ᐸcompound_keyᐳ"]]:::plan + PgClassExpression27{{"PgClassExpression[27∈1]
ᐸ__unique_f...und_key_1”ᐳ"}}:::plan + PgClassExpression28{{"PgClassExpression[28∈1]
ᐸ__unique_f...und_key_2”ᐳ"}}:::plan + Object11 & PgClassExpression27 & PgClassExpression28 --> PgSelect29 + PgSelect36[["PgSelect[36∈1]
ᐸunique_foreign_keyᐳ"]]:::plan + PgClassExpression34{{"PgClassExpression[34∈1]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈1]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan + Object11 & PgClassExpression34 & PgClassExpression35 --> PgSelect36 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸcompound_keyᐳ"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸcompound_keyᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgSelect20[["PgSelect[20∈3]
ᐸunique_foreign_keyᐳ"]]:::plan - PgClassExpression18{{"PgClassExpression[18∈3]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression19{{"PgClassExpression[19∈3]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Object12 & PgClassExpression18 & PgClassExpression19 --> PgSelect20 PgSelectSingle17 --> PgClassExpression18 PgSelectSingle17 --> PgClassExpression19 - First24{{"First[24∈3]"}}:::plan - PgSelectRows25[["PgSelectRows[25∈3]"]]:::plan + First24{{"First[24∈1]"}}:::plan + PgSelectRows25[["PgSelectRows[25∈1]"]]:::plan PgSelectRows25 --> First24 PgSelect20 --> PgSelectRows25 - PgSelectSingle26{{"PgSelectSingle[26∈3]
ᐸunique_foreign_keyᐳ"}}:::plan + PgSelectSingle26{{"PgSelectSingle[26∈1]
ᐸunique_foreign_keyᐳ"}}:::plan First24 --> PgSelectSingle26 - PgSelect29[["PgSelect[29∈4]
ᐸcompound_keyᐳ"]]:::plan - PgClassExpression27{{"PgClassExpression[27∈4]
ᐸ__unique_f...und_key_1”ᐳ"}}:::plan - PgClassExpression28{{"PgClassExpression[28∈4]
ᐸ__unique_f...und_key_2”ᐳ"}}:::plan - Object12 & PgClassExpression27 & PgClassExpression28 --> PgSelect29 PgSelectSingle26 --> PgClassExpression27 PgSelectSingle26 --> PgClassExpression28 - First33{{"First[33∈4]"}}:::plan - PgSelectRows34[["PgSelectRows[34∈4]"]]:::plan - PgSelectRows34 --> First33 - PgSelect29 --> PgSelectRows34 - PgSelectSingle35{{"PgSelectSingle[35∈4]
ᐸcompound_keyᐳ"}}:::plan - First33 --> PgSelectSingle35 - PgSelect38[["PgSelect[38∈5]
ᐸunique_foreign_keyᐳ"]]:::plan - PgClassExpression36{{"PgClassExpression[36∈5]
ᐸ__compound...rson_id_1”ᐳ"}}:::plan - PgClassExpression37{{"PgClassExpression[37∈5]
ᐸ__compound...rson_id_2”ᐳ"}}:::plan - Object12 & PgClassExpression36 & PgClassExpression37 --> PgSelect38 - PgSelectSingle35 --> PgClassExpression36 - PgSelectSingle35 --> PgClassExpression37 - First42{{"First[42∈5]"}}:::plan - PgSelectRows43[["PgSelectRows[43∈5]"]]:::plan - PgSelectRows43 --> First42 - PgSelect38 --> PgSelectRows43 - PgSelectSingle44{{"PgSelectSingle[44∈5]
ᐸunique_foreign_keyᐳ"}}:::plan - First42 --> PgSelectSingle44 - PgClassExpression45{{"PgClassExpression[45∈6]
ᐸ__unique_f...und_key_1”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression45 - PgClassExpression46{{"PgClassExpression[46∈6]
ᐸ__unique_f...und_key_2”ᐳ"}}:::plan - PgSelectSingle44 --> PgClassExpression46 + First31{{"First[31∈1]"}}:::plan + PgSelectRows32[["PgSelectRows[32∈1]"]]:::plan + PgSelectRows32 --> First31 + PgSelect29 --> PgSelectRows32 + PgSelectSingle33{{"PgSelectSingle[33∈1]
ᐸcompound_keyᐳ"}}:::plan + First31 --> PgSelectSingle33 + PgSelectSingle33 --> PgClassExpression34 + PgSelectSingle33 --> PgClassExpression35 + First38{{"First[38∈1]"}}:::plan + PgSelectRows39[["PgSelectRows[39∈1]"]]:::plan + PgSelectRows39 --> First38 + PgSelect36 --> PgSelectRows39 + PgSelectSingle40{{"PgSelectSingle[40∈1]
ᐸunique_foreign_keyᐳ"}}:::plan + First38 --> PgSelectSingle40 + PgClassExpression41{{"PgClassExpression[41∈1]
ᐸ__unique_f...und_key_1”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression41 + PgClassExpression42{{"PgClassExpression[42∈1]
ᐸ__unique_f...und_key_2”ᐳ"}}:::plan + PgSelectSingle40 --> PgClassExpression42 %% define steps subgraph "Buckets for queries/v4/unique-foreign-keys" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 11, 12
2: PgSelect[14]
3: PgSelectRows[15]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 11

ROOT __Item{1}ᐸ15ᐳ[16]
1:
ᐳ: 17, 18, 19
2: PgSelect[20]
3: PgSelectRows[25]
ᐳ: 24, 26, 27, 28
4: PgSelect[29]
5: PgSelectRows[32]
ᐳ: 31, 33, 34, 35
6: PgSelect[36]
7: PgSelectRows[39]
ᐳ: 38, 40, 41, 42"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 12

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket - classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 12

ROOT PgSelectSingle{2}ᐸcompound_keyᐳ[17]
1:
ᐳ: 18, 19
2: PgSelect[20]
3: PgSelectRows[25]
ᐳ: First[24], PgSelectSingle[26]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgClassExpression18,PgClassExpression19,PgSelect20,First24,PgSelectRows25,PgSelectSingle26 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 26, 12

ROOT PgSelectSingle{3}ᐸunique_foreign_keyᐳ[26]
1:
ᐳ: 27, 28
2: PgSelect[29]
3: PgSelectRows[34]
ᐳ: First[33], PgSelectSingle[35]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgClassExpression27,PgClassExpression28,PgSelect29,First33,PgSelectRows34,PgSelectSingle35 bucket4 - Bucket5("Bucket 5 (nullableBoundary)
Deps: 35, 12

ROOT PgSelectSingle{4}ᐸcompound_keyᐳ[35]
1:
ᐳ: 36, 37
2: PgSelect[38]
3: PgSelectRows[43]
ᐳ: First[42], PgSelectSingle[44]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,PgClassExpression36,PgClassExpression37,PgSelect38,First42,PgSelectRows43,PgSelectSingle44 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 44

ROOT PgSelectSingle{5}ᐸunique_foreign_keyᐳ[44]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgClassExpression45,PgClassExpression46 bucket6 + class Bucket1,__Item16,PgSelectSingle17,PgClassExpression18,PgClassExpression19,PgSelect20,First24,PgSelectRows25,PgSelectSingle26,PgClassExpression27,PgClassExpression28,PgSelect29,First31,PgSelectRows32,PgSelectSingle33,PgClassExpression34,PgClassExpression35,PgSelect36,First38,PgSelectRows39,PgSelectSingle40,PgClassExpression41,PgClassExpression42 bucket1 Bucket0 --> Bucket1 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket3 --> Bucket4 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 end diff --git a/postgraphile/postgraphile/__tests__/queries/v4/view.mermaid b/postgraphile/postgraphile/__tests__/queries/v4/view.mermaid index 0168565d07..11c0a3ec43 100644 --- a/postgraphile/postgraphile/__tests__/queries/v4/view.mermaid +++ b/postgraphile/postgraphile/__tests__/queries/v4/view.mermaid @@ -9,80 +9,66 @@ graph TD %% plan dependencies - Object12{{"Object[12∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan - Access10{{"Access[10∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan - Access11{{"Access[11∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan - Access10 & Access11 --> Object12 + PgSelect14[["PgSelect[14∈0] ➊
ᐸtestviewᐳ"]]:::plan + Object11{{"Object[11∈0] ➊
ᐸ{pgSettings,withPgClient}ᐳ"}}:::plan + Connection12{{"Connection[12∈0] ➊
ᐸ8ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect14 + Connection12 --> PgSelect14 + PgSelect28[["PgSelect[28∈0] ➊
ᐸtestviewᐳ"]]:::plan + Connection26{{"Connection[26∈0] ➊
ᐸ24ᐳ"}}:::plan + Object11 -->|rejectNull| PgSelect28 + Connection26 --> PgSelect28 + Access9{{"Access[9∈0] ➊
ᐸ2.pgSettingsᐳ"}}:::plan + Access10{{"Access[10∈0] ➊
ᐸ2.withPgClientᐳ"}}:::plan + Access9 & Access10 --> Object11 __Value2["__Value[2∈0] ➊
ᐸcontextᐳ"]:::plan + __Value2 --> Access9 __Value2 --> Access10 - __Value2 --> Access11 - __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan - Connection13{{"Connection[13∈0] ➊
ᐸ9ᐳ"}}:::plan - Connection27{{"Connection[27∈0] ➊
ᐸ25ᐳ"}}:::plan - PgSelect14[["PgSelect[14∈1] ➊
ᐸtestviewᐳ"]]:::plan - Object12 & Connection13 --> PgSelect14 - PgSelectRows15[["PgSelectRows[15∈1] ➊"]]:::plan + PgSelectRows15[["PgSelectRows[15∈0] ➊"]]:::plan PgSelect14 --> PgSelectRows15 - Access18{{"Access[18∈1] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan + Access18{{"Access[18∈0] ➊
ᐸ14.cursorDetailsᐳ"}}:::plan PgSelect14 --> Access18 - __Item16[/"__Item[16∈2]
ᐸ15ᐳ"\]:::itemplan + PgSelectRows29[["PgSelectRows[29∈0] ➊"]]:::plan + PgSelect28 --> PgSelectRows29 + Access32{{"Access[32∈0] ➊
ᐸ28.cursorDetailsᐳ"}}:::plan + PgSelect28 --> Access32 + __Value4["__Value[4∈0] ➊
ᐸrootValueᐳ"]:::plan + PgCursor19{{"PgCursor[19∈1]"}}:::plan + PgSelectSingle17{{"PgSelectSingle[17∈1]
ᐸtestviewᐳ"}}:::plan + PgSelectSingle17 & Access18 --> PgCursor19 + __Item16[/"__Item[16∈1]
ᐸ15ᐳ"\]:::itemplan PgSelectRows15 ==> __Item16 - PgSelectSingle17{{"PgSelectSingle[17∈2]
ᐸtestviewᐳ"}}:::plan __Item16 --> PgSelectSingle17 - PgCursor19{{"PgCursor[19∈3]"}}:::plan - PgSelectSingle17 & Access18 --> PgCursor19 - PgClassExpression20{{"PgClassExpression[20∈3]
ᐸ__testview...estviewid”ᐳ"}}:::plan + PgClassExpression20{{"PgClassExpression[20∈1]
ᐸ__testview...estviewid”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression20 - PgClassExpression21{{"PgClassExpression[21∈3]
ᐸ__testview__.”col1”ᐳ"}}:::plan + PgClassExpression21{{"PgClassExpression[21∈1]
ᐸ__testview__.”col1”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression21 - PgClassExpression22{{"PgClassExpression[22∈3]
ᐸ__testview__.”col2”ᐳ"}}:::plan + PgClassExpression22{{"PgClassExpression[22∈1]
ᐸ__testview__.”col2”ᐳ"}}:::plan PgSelectSingle17 --> PgClassExpression22 - PgSelect28[["PgSelect[28∈4] ➊
ᐸtestviewᐳ"]]:::plan - Object12 & Connection27 --> PgSelect28 - PgSelectRows29[["PgSelectRows[29∈4] ➊"]]:::plan - PgSelect28 --> PgSelectRows29 - Access32{{"Access[32∈4] ➊
ᐸ28.cursorDetailsᐳ"}}:::plan - PgSelect28 --> Access32 - __Item30[/"__Item[30∈5]
ᐸ29ᐳ"\]:::itemplan + PgCursor33{{"PgCursor[33∈2]"}}:::plan + PgSelectSingle31{{"PgSelectSingle[31∈2]
ᐸtestviewᐳ"}}:::plan + PgSelectSingle31 & Access32 --> PgCursor33 + __Item30[/"__Item[30∈2]
ᐸ29ᐳ"\]:::itemplan PgSelectRows29 ==> __Item30 - PgSelectSingle31{{"PgSelectSingle[31∈5]
ᐸtestviewᐳ"}}:::plan __Item30 --> PgSelectSingle31 - PgCursor33{{"PgCursor[33∈6]"}}:::plan - PgSelectSingle31 & Access32 --> PgCursor33 - PgClassExpression34{{"PgClassExpression[34∈6]
ᐸ__testview...estviewid”ᐳ"}}:::plan + PgClassExpression34{{"PgClassExpression[34∈2]
ᐸ__testview...estviewid”ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression34 - PgClassExpression35{{"PgClassExpression[35∈6]
ᐸ__testview__.”col1”ᐳ"}}:::plan + PgClassExpression35{{"PgClassExpression[35∈2]
ᐸ__testview__.”col1”ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression35 - PgClassExpression36{{"PgClassExpression[36∈6]
ᐸ__testview__.”col2”ᐳ"}}:::plan + PgClassExpression36{{"PgClassExpression[36∈2]
ᐸ__testview__.”col2”ᐳ"}}:::plan PgSelectSingle31 --> PgClassExpression36 %% define steps subgraph "Buckets for queries/v4/view" - Bucket0("Bucket 0 (root)"):::bucket + Bucket0("Bucket 0 (root)

1:
ᐳ: 6, 9, 10, 11, 12, 26
2: PgSelect[14], PgSelect[28]
ᐳ: Access[18], Access[32]
3: PgSelectRows[15], PgSelectRows[29]"):::bucket classDef bucket0 stroke:#696969 - class Bucket0,__Value2,__Value4,Access10,Access11,Object12,Connection13,Connection27 bucket0 - Bucket1("Bucket 1 (nullableBoundary)
Deps: 12, 13

ROOT Connectionᐸ9ᐳ[13]
1: PgSelect[14]
ᐳ: Access[18]
2: PgSelectRows[15]"):::bucket + class Bucket0,__Value2,__Value4,Access9,Access10,Object11,Connection12,PgSelect14,PgSelectRows15,Access18,Connection26,PgSelect28,PgSelectRows29,Access32 bucket0 + Bucket1("Bucket 1 (listItem)
Deps: 18

ROOT __Item{1}ᐸ15ᐳ[16]"):::bucket classDef bucket1 stroke:#00bfff - class Bucket1,PgSelect14,PgSelectRows15,Access18 bucket1 - Bucket2("Bucket 2 (listItem)
Deps: 18

ROOT __Item{2}ᐸ15ᐳ[16]"):::bucket + class Bucket1,__Item16,PgSelectSingle17,PgCursor19,PgClassExpression20,PgClassExpression21,PgClassExpression22 bucket1 + Bucket2("Bucket 2 (listItem)
Deps: 32

ROOT __Item{2}ᐸ29ᐳ[30]"):::bucket classDef bucket2 stroke:#7f007f - class Bucket2,__Item16,PgSelectSingle17 bucket2 - Bucket3("Bucket 3 (nullableBoundary)
Deps: 17, 18

ROOT PgSelectSingle{2}ᐸtestviewᐳ[17]"):::bucket - classDef bucket3 stroke:#ffa500 - class Bucket3,PgCursor19,PgClassExpression20,PgClassExpression21,PgClassExpression22 bucket3 - Bucket4("Bucket 4 (nullableBoundary)
Deps: 12, 27

ROOT Connectionᐸ25ᐳ[27]
1: PgSelect[28]
ᐳ: Access[32]
2: PgSelectRows[29]"):::bucket - classDef bucket4 stroke:#0000ff - class Bucket4,PgSelect28,PgSelectRows29,Access32 bucket4 - Bucket5("Bucket 5 (listItem)
Deps: 32

ROOT __Item{5}ᐸ29ᐳ[30]"):::bucket - classDef bucket5 stroke:#7fff00 - class Bucket5,__Item30,PgSelectSingle31 bucket5 - Bucket6("Bucket 6 (nullableBoundary)
Deps: 31, 32

ROOT PgSelectSingle{5}ᐸtestviewᐳ[31]"):::bucket - classDef bucket6 stroke:#ff1493 - class Bucket6,PgCursor33,PgClassExpression34,PgClassExpression35,PgClassExpression36 bucket6 - Bucket0 --> Bucket1 & Bucket4 - Bucket1 --> Bucket2 - Bucket2 --> Bucket3 - Bucket4 --> Bucket5 - Bucket5 --> Bucket6 + class Bucket2,__Item30,PgSelectSingle31,PgCursor33,PgClassExpression34,PgClassExpression35,PgClassExpression36 bucket2 + Bucket0 --> Bucket1 & Bucket2 end diff --git a/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.1.export.mjs index 6973f3f790..fd9b387a75 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -478,7 +480,7 @@ const textArrayCodec = listOfCodec(TYPES.text, { name: "textArray" }); const nonUpdatableViewIdentifier = sql.identifier("a", "non_updatable_view"); -const spec_nonUpdatableView = { +const nonUpdatableViewCodec = recordCodec({ name: "nonUpdatableView", identifier: nonUpdatableViewIdentifier, attributes: { @@ -506,10 +508,9 @@ const spec_nonUpdatableView = { } }, executor: executor -}; -const nonUpdatableViewCodec = recordCodec(spec_nonUpdatableView); +}); const inputsIdentifier = sql.identifier("a", "inputs"); -const spec_inputs = { +const inputsCodec = recordCodec({ name: "inputs", identifier: inputsIdentifier, attributes: { @@ -537,10 +538,9 @@ const spec_inputs = { } }, executor: executor -}; -const inputsCodec = recordCodec(spec_inputs); +}); const patchsIdentifier = sql.identifier("a", "patchs"); -const spec_patchs = { +const patchsCodec = recordCodec({ name: "patchs", identifier: patchsIdentifier, attributes: { @@ -568,10 +568,9 @@ const spec_patchs = { } }, executor: executor -}; -const patchsCodec = recordCodec(spec_patchs); +}); const reservedIdentifier = sql.identifier("a", "reserved"); -const spec_reserved = { +const reservedCodec = recordCodec({ name: "reserved", identifier: reservedIdentifier, attributes: { @@ -599,10 +598,9 @@ const spec_reserved = { } }, executor: executor -}; -const reservedCodec = recordCodec(spec_reserved); +}); const reservedPatchsIdentifier = sql.identifier("a", "reservedPatchs"); -const spec_reservedPatchs = { +const reservedPatchsCodec = recordCodec({ name: "reservedPatchs", identifier: reservedPatchsIdentifier, attributes: { @@ -630,10 +628,9 @@ const spec_reservedPatchs = { } }, executor: executor -}; -const reservedPatchsCodec = recordCodec(spec_reservedPatchs); +}); const reservedInputIdentifier = sql.identifier("a", "reserved_input"); -const spec_reservedInput = { +const reservedInputCodec = recordCodec({ name: "reservedInput", identifier: reservedInputIdentifier, attributes: { @@ -661,10 +658,9 @@ const spec_reservedInput = { } }, executor: executor -}; -const reservedInputCodec = recordCodec(spec_reservedInput); +}); const defaultValueIdentifier = sql.identifier("a", "default_value"); -const spec_defaultValue = { +const defaultValueCodec = recordCodec({ name: "defaultValue", identifier: defaultValueIdentifier, attributes: { @@ -701,10 +697,9 @@ const spec_defaultValue = { } }, executor: executor -}; -const defaultValueCodec = recordCodec(spec_defaultValue); +}); const foreignKeyIdentifier = sql.identifier("a", "foreign_key"); -const spec_foreignKey = { +const foreignKeyCodec = recordCodec({ name: "foreignKey", identifier: foreignKeyIdentifier, attributes: { @@ -750,10 +745,9 @@ const spec_foreignKey = { } }, executor: executor -}; -const foreignKeyCodec = recordCodec(spec_foreignKey); +}); const noPrimaryKeyIdentifier = sql.identifier("a", "no_primary_key"); -const spec_noPrimaryKey = { +const noPrimaryKeyCodec = recordCodec({ name: "noPrimaryKey", identifier: noPrimaryKeyIdentifier, attributes: { @@ -790,10 +784,9 @@ const spec_noPrimaryKey = { } }, executor: executor -}; -const noPrimaryKeyCodec = recordCodec(spec_noPrimaryKey); +}); const testviewIdentifier = sql.identifier("a", "testview"); -const spec_testview = { +const testviewCodec = recordCodec({ name: "testview", identifier: testviewIdentifier, attributes: { @@ -839,8 +832,7 @@ const spec_testview = { } }, executor: executor -}; -const testviewCodec = recordCodec(spec_testview); +}); const uniqueForeignKeyIdentifier = sql.identifier("a", "unique_foreign_key"); const spec_uniqueForeignKey = { name: "uniqueForeignKey", @@ -884,7 +876,7 @@ const spec_uniqueForeignKey = { }; const uniqueForeignKeyCodec = recordCodec(spec_uniqueForeignKey); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -921,10 +913,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -964,8 +955,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -1007,7 +997,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const viewTableIdentifier = sql.identifier("a", "view_table"); -const spec_viewTable = { +const viewTableCodec = recordCodec({ name: "viewTable", identifier: viewTableIdentifier, attributes: { @@ -1053,10 +1043,9 @@ const spec_viewTable = { } }, executor: executor -}; -const viewTableCodec = recordCodec(spec_viewTable); +}); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -1102,10 +1091,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const similarTable1Identifier = sql.identifier("a", "similar_table_1"); -const spec_similarTable1 = { +const similarTable1Codec = recordCodec({ name: "similarTable1", identifier: similarTable1Identifier, attributes: { @@ -1160,10 +1148,9 @@ const spec_similarTable1 = { } }, executor: executor -}; -const similarTable1Codec = recordCodec(spec_similarTable1); +}); const similarTable2Identifier = sql.identifier("a", "similar_table_2"); -const spec_similarTable2 = { +const similarTable2Codec = recordCodec({ name: "similarTable2", identifier: similarTable2Identifier, attributes: { @@ -1218,10 +1205,9 @@ const spec_similarTable2 = { } }, executor: executor -}; -const similarTable2Codec = recordCodec(spec_similarTable2); +}); const updatableViewIdentifier = sql.identifier("b", "updatable_view"); -const spec_updatableView = { +const updatableViewCodec = recordCodec({ name: "updatableView", identifier: updatableViewIdentifier, attributes: { @@ -1278,10 +1264,9 @@ const spec_updatableView = { } }, executor: executor -}; -const updatableViewCodec = recordCodec(spec_updatableView); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -1336,8 +1321,7 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const uuidArrayCodec = listOfCodec(TYPES.uuid, { extensions: { pg: { @@ -1354,7 +1338,7 @@ const uuidArrayCodec = listOfCodec(TYPES.uuid, { name: "uuidArray" }); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -1400,10 +1384,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -1458,8 +1441,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const jwtTokenIdentifier = sql.identifier("b", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -1541,7 +1523,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -1578,8 +1560,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const authPayloadIdentifier = sql.identifier("b", "auth_payload"); const authPayloadCodec = recordCodec({ name: "authPayload", @@ -1917,7 +1898,7 @@ const comptypeArrayCodec = listOfCodec(comptypeCodec, { description: undefined, name: "comptypeArray" }); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -1990,8 +1971,7 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const registryConfig_pgCodecs_QueryOutputTwoRowsRecord_QueryOutputTwoRowsRecord = recordCodec({ name: "QueryOutputTwoRowsRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2151,7 +2131,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -2273,8 +2253,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2592,7 +2571,7 @@ const byteaArrayCodec = listOfCodec(TYPES.bytea, { description: undefined, name: "byteaArray" }); -const spec_lists = { +const listsCodec = recordCodec({ name: "lists", identifier: listsIdentifier, attributes: { @@ -2728,8 +2707,7 @@ const spec_lists = { } }, executor: executor -}; -const listsCodec = recordCodec(spec_lists); +}); const typesIdentifier = sql.identifier("b", "types"); const anIntCodec = domainOfCodec(TYPES.int, "anInt", sql.identifier("a", "an_int"), { description: undefined, @@ -9193,6 +9171,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_inputsPgResource.get(spec); }, @@ -9212,6 +9193,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_patchsPgResource.get(spec); }, @@ -9231,6 +9215,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPgResource.get(spec); }, @@ -9250,6 +9237,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPatchsPgResource.get(spec); }, @@ -9269,6 +9259,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reserved_inputPgResource.get(spec); }, @@ -9288,6 +9281,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_default_valuePgResource.get(spec); }, @@ -9307,6 +9303,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -9326,6 +9325,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -9345,6 +9347,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_view_tablePgResource.get(spec); }, @@ -9365,6 +9370,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -9384,6 +9392,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_1PgResource.get(spec); }, @@ -9403,6 +9414,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_2PgResource.get(spec); }, @@ -9422,6 +9436,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -9441,6 +9458,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -9460,6 +9480,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -9479,6 +9502,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -9498,6 +9524,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -9517,6 +9546,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_listsPgResource.get(spec); }, @@ -9536,6 +9568,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_typesPgResource.get(spec); }, @@ -9546,553 +9581,96 @@ const nodeIdHandlerByTypeName = { }; const resource_no_primary_keyPgResource = registry.pgResources["no_primary_key"]; const resource_unique_foreign_keyPgResource = registry.pgResources["unique_foreign_key"]; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_query_interval_set = []; +const makeArgs_query_interval_set = (args, path = []) => argDetailsSimple_query_interval_set.map(details => makeArg(path, args, details)); const resource_query_interval_setPgResource = registry.pgResources["query_interval_set"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_query_interval_set(args); return resource_query_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple7 = []; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 argDetailsSimple_static_big_integer = []; +const makeArgs_static_big_integer = (args, path = []) => argDetailsSimple_static_big_integer.map(details => makeArg(path, args, details)); const resource_static_big_integerPgResource = registry.pgResources["static_big_integer"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_static_big_integer(args); return resource_static_big_integerPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple10 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple11 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple12 = [{ +const argDetailsSimple_add_1_query = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -10105,52 +9683,9 @@ const argDetailsSimple12 = [{ required: true, fetcher: null }]; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_query = (args, path = []) => argDetailsSimple_add_1_query.map(details => makeArg(path, args, details)); const resource_add_1_queryPgResource = registry.pgResources["add_1_query"]; -const argDetailsSimple13 = [{ +const argDetailsSimple_add_2_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10163,52 +9698,9 @@ const argDetailsSimple13 = [{ required: false, fetcher: null }]; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 makeArgs_add_2_query = (args, path = []) => argDetailsSimple_add_2_query.map(details => makeArg(path, args, details)); const resource_add_2_queryPgResource = registry.pgResources["add_2_query"]; -const argDetailsSimple14 = [{ +const argDetailsSimple_add_3_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10221,52 +9713,9 @@ const argDetailsSimple14 = [{ required: true, fetcher: null }]; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_query = (args, path = []) => argDetailsSimple_add_3_query.map(details => makeArg(path, args, details)); const resource_add_3_queryPgResource = registry.pgResources["add_3_query"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_add_4_query = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10279,52 +9728,9 @@ const argDetailsSimple15 = [{ required: false, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_query = (args, path = []) => argDetailsSimple_add_4_query.map(details => makeArg(path, args, details)); const resource_add_4_queryPgResource = registry.pgResources["add_4_query"]; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -10337,240 +9743,25 @@ const argDetailsSimple16 = [{ required: true, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple19 = []; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple20 = []; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10589,52 +9780,9 @@ const argDetailsSimple21 = [{ required: false, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_1PgResource = registry.pgResources["optional_missing_middle_1"]; -const argDetailsSimple22 = [{ +const argDetailsSimple_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10653,52 +9801,9 @@ const argDetailsSimple22 = [{ required: false, fetcher: null }]; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 makeArgs_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_2PgResource = registry.pgResources["optional_missing_middle_2"]; -const argDetailsSimple23 = [{ +const argDetailsSimple_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10717,52 +9822,9 @@ const argDetailsSimple23 = [{ required: false, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_3PgResource = registry.pgResources["optional_missing_middle_3"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10781,52 +9843,9 @@ const argDetailsSimple24 = [{ required: false, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_4PgResource = registry.pgResources["optional_missing_middle_4"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10845,98 +9864,12 @@ const argDetailsSimple25 = [{ required: false, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_5PgResource = registry.pgResources["optional_missing_middle_5"]; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple27 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -10955,56 +9888,13 @@ const argDetailsSimple27 = [{ required: true, fetcher: null }]; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple28 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -11023,194 +9913,22 @@ const argDetailsSimple28 = [{ required: false, fetcher: null }]; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_query_interval_array = []; +const makeArgs_query_interval_array = (args, path = []) => argDetailsSimple_query_interval_array.map(details => makeArg(path, args, details)); const resource_query_interval_arrayPgResource = registry.pgResources["query_interval_array"]; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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 argDetailsSimple_query_text_array = []; +const makeArgs_query_text_array = (args, path = []) => argDetailsSimple_query_text_array.map(details => makeArg(path, args, details)); const resource_query_text_arrayPgResource = registry.pgResources["query_text_array"]; -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple32 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -11247,104 +9965,18 @@ const argDetailsSimple32 = [{ required: true, fetcher: null }]; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple33 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -11363,310 +9995,52 @@ const argDetailsSimple34 = [{ required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple35 = []; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs35(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple36 = [{ +const argDetailsSimple_compound_type_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_compound_type_query = (args, path = []) => argDetailsSimple_compound_type_query.map(details => makeArg(path, args, details)); const resource_compound_type_queryPgResource = registry.pgResources["compound_type_query"]; -const argDetailsSimple37 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_query_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[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 makeArgs_query_compound_type_array = (args, path = []) => argDetailsSimple_query_compound_type_array.map(details => makeArg(path, args, details)); const resource_query_compound_type_arrayPgResource = registry.pgResources["query_compound_type_array"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_compound_type_array_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_compound_type_array_query = (args, path = []) => argDetailsSimple_compound_type_array_query.map(details => makeArg(path, args, details)); const resource_compound_type_array_queryPgResource = registry.pgResources["compound_type_array_query"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11679,52 +10053,9 @@ const argDetailsSimple40 = [{ required: true, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11737,473 +10068,70 @@ const argDetailsSimple41 = [{ required: true, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs41(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple42 = []; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs42(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple43 = []; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs44(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs12 = ($root, args, _info) => { - const selectArgs = makeArgs45(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs13 = ($root, args, _info) => { - const selectArgs = makeArgs46(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_type_function_connection = []; +const makeArgs_type_function_connection = (args, path = []) => argDetailsSimple_type_function_connection.map(details => makeArg(path, args, details)); const resource_type_function_connectionPgResource = registry.pgResources["type_function_connection"]; const getSelectPlanFromParentAndArgs14 = ($root, args, _info) => { - const selectArgs = makeArgs47(args); + const selectArgs = makeArgs_type_function_connection(args); return resource_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_type_function = (args, path = []) => argDetailsSimple_type_function.map(details => makeArg(path, args, details)); const resource_type_functionPgResource = registry.pgResources["type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_type_function_list = []; +const makeArgs_type_function_list = (args, path = []) => argDetailsSimple_type_function_list.map(details => makeArg(path, args, details)); const resource_type_function_listPgResource = registry.pgResources["type_function_list"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -12378,347 +10306,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple53 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple54 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple55 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple56 = []; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12737,52 +10364,9 @@ const argDetailsSimple57 = [{ required: false, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12801,52 +10385,9 @@ const argDetailsSimple58 = [{ required: false, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12865,52 +10406,9 @@ const argDetailsSimple59 = [{ required: false, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12929,52 +10427,9 @@ const argDetailsSimple60 = [{ required: false, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12993,52 +10448,9 @@ const argDetailsSimple61 = [{ required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -13051,194 +10463,22 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs65(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13253,82 +10493,33 @@ const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple66 = []; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs66(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13343,176 +10534,41 @@ const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple67 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple68 = []; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple69 = []; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -13523,57 +10579,14 @@ const coerce = string => { } return string; }; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_post_computed_interval_set = []; +const makeArgs_post_computed_interval_set = (args, path = []) => argDetailsSimple_post_computed_interval_set.map(details => makeArg(path, args, details)); const resource_post_computed_interval_setPgResource = registry.pgResources["post_computed_interval_set"]; const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs70(args); + const extraSelectArgs = makeArgs_post_computed_interval_set(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13588,228 +10601,50 @@ const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (resource_post_computed_interval_setPgResource.isUnique && !resource_post_computed_interval_setPgResource.codec.attributes && typeof resource_post_computed_interval_setPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${resource_post_computed_interval_setPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_setPgResource.from, resource_post_computed_interval_setPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_post_computed_interval_array = []; +const makeArgs_post_computed_interval_array = (args, path = []) => argDetailsSimple_post_computed_interval_array.map(details => makeArg(path, args, details)); const resource_post_computed_interval_arrayPgResource = registry.pgResources["post_computed_interval_array"]; -const argDetailsSimple72 = []; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 argDetailsSimple_post_computed_text_array = []; +const makeArgs_post_computed_text_array = (args, path = []) => argDetailsSimple_post_computed_text_array.map(details => makeArg(path, args, details)); const resource_post_computed_text_arrayPgResource = registry.pgResources["post_computed_text_array"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_post_computed_with_optional_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: false, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_post_computed_with_optional_arg = (args, path = []) => argDetailsSimple_post_computed_with_optional_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_optional_argPgResource = registry.pgResources["post_computed_with_optional_arg"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_post_computed_with_required_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_post_computed_with_required_arg = (args, path = []) => argDetailsSimple_post_computed_with_required_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_required_argPgResource = registry.pgResources["post_computed_with_required_arg"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_post_headline_trimmed = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13822,52 +10657,9 @@ const argDetailsSimple75 = [{ required: false, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_post_headline_trimmed = (args, path = []) => argDetailsSimple_post_headline_trimmed.map(details => makeArg(path, args, details)); const resource_post_headline_trimmedPgResource = registry.pgResources["post_headline_trimmed"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_post_headline_trimmed_no_defaults = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13880,52 +10672,9 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_post_headline_trimmed_no_defaults = (args, path = []) => argDetailsSimple_post_headline_trimmed_no_defaults.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_no_defaultsPgResource = registry.pgResources["post_headline_trimmed_no_defaults"]; -const argDetailsSimple77 = [{ +const argDetailsSimple_post_headline_trimmed_strict = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13938,102 +10687,16 @@ const argDetailsSimple77 = [{ required: false, fetcher: null }]; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 makeArgs_post_headline_trimmed_strict = (args, path = []) => argDetailsSimple_post_headline_trimmed_strict.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_strictPgResource = registry.pgResources["post_headline_trimmed_strict"]; -const argDetailsSimple78 = [{ +const argDetailsSimple_post_computed_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 makeArgs_post_computed_compound_type_array = (args, path = []) => argDetailsSimple_post_computed_compound_type_array.map(details => makeArg(path, args, details)); const resource_post_computed_compound_type_arrayPgResource = registry.pgResources["post_computed_compound_type_array"]; const resource_frmcdc_comptypePgResource = registry.pgResources["frmcdc_comptype"]; const resource_frmcdc_nestedCompoundTypePgResource = registry.pgResources["frmcdc_nestedCompoundType"]; @@ -14091,641 +10754,82 @@ const parseValueLiteral = (ast, variables) => { return undefined; } }; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple80 = []; -const makeArgs80 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple80[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple81 = []; -const makeArgs81 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple81[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple82 = []; -const makeArgs82 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple82[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple83 = []; -const makeArgs83 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple83[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple84 = []; -const makeArgs84 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple84[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 argDetailsSimple_return_void_mutation = []; +const makeArgs_return_void_mutation = (args, path = []) => argDetailsSimple_return_void_mutation.map(details => makeArg(path, args, details)); const resource_return_void_mutationPgResource = registry.pgResources["return_void_mutation"]; -const argDetailsSimple85 = []; -const makeArgs85 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple85[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 argDetailsSimple_mutation_interval_set = []; +const makeArgs_mutation_interval_set = (args, path = []) => argDetailsSimple_mutation_interval_set.map(details => makeArg(path, args, details)); const resource_mutation_interval_setPgResource = registry.pgResources["mutation_interval_set"]; -const argDetailsSimple86 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs86 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple86[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple87 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs87 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple87[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple88 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs88 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple88[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple89 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs89 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple89[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple90 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs90 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple90[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple91 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs91 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple91[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple92 = [{ +const argDetailsSimple_add_1_mutation = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14738,52 +10842,9 @@ const argDetailsSimple92 = [{ required: true, fetcher: null }]; -const makeArgs92 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple92[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_mutation = (args, path = []) => argDetailsSimple_add_1_mutation.map(details => makeArg(path, args, details)); const resource_add_1_mutationPgResource = registry.pgResources["add_1_mutation"]; -const argDetailsSimple93 = [{ +const argDetailsSimple_add_2_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14796,52 +10857,9 @@ const argDetailsSimple93 = [{ required: false, fetcher: null }]; -const makeArgs93 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple93[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 makeArgs_add_2_mutation = (args, path = []) => argDetailsSimple_add_2_mutation.map(details => makeArg(path, args, details)); const resource_add_2_mutationPgResource = registry.pgResources["add_2_mutation"]; -const argDetailsSimple94 = [{ +const argDetailsSimple_add_3_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14854,52 +10872,9 @@ const argDetailsSimple94 = [{ required: true, fetcher: null }]; -const makeArgs94 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple94[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_mutation = (args, path = []) => argDetailsSimple_add_3_mutation.map(details => makeArg(path, args, details)); const resource_add_3_mutationPgResource = registry.pgResources["add_3_mutation"]; -const argDetailsSimple95 = [{ +const argDetailsSimple_add_4_mutation = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14912,52 +10887,9 @@ const argDetailsSimple95 = [{ required: false, fetcher: null }]; -const makeArgs95 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple95[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation = (args, path = []) => argDetailsSimple_add_4_mutation.map(details => makeArg(path, args, details)); const resource_add_4_mutationPgResource = registry.pgResources["add_4_mutation"]; -const argDetailsSimple96 = [{ +const argDetailsSimple_add_4_mutation_error = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14970,52 +10902,9 @@ const argDetailsSimple96 = [{ required: false, fetcher: null }]; -const makeArgs96 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple96[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation_error = (args, path = []) => argDetailsSimple_add_4_mutation_error.map(details => makeArg(path, args, details)); const resource_add_4_mutation_errorPgResource = registry.pgResources["add_4_mutation_error"]; -const argDetailsSimple97 = [{ +const argDetailsSimple_mult_1 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15028,52 +10917,9 @@ const argDetailsSimple97 = [{ required: true, fetcher: null }]; -const makeArgs97 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple97[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_1 = (args, path = []) => argDetailsSimple_mult_1.map(details => makeArg(path, args, details)); const resource_mult_1PgResource = registry.pgResources["mult_1"]; -const argDetailsSimple98 = [{ +const argDetailsSimple_mult_2 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15086,52 +10932,9 @@ const argDetailsSimple98 = [{ required: true, fetcher: null }]; -const makeArgs98 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple98[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_2 = (args, path = []) => argDetailsSimple_mult_2.map(details => makeArg(path, args, details)); const resource_mult_2PgResource = registry.pgResources["mult_2"]; -const argDetailsSimple99 = [{ +const argDetailsSimple_mult_3 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15144,52 +10947,9 @@ const argDetailsSimple99 = [{ required: true, fetcher: null }]; -const makeArgs99 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple99[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_3 = (args, path = []) => argDetailsSimple_mult_3.map(details => makeArg(path, args, details)); const resource_mult_3PgResource = registry.pgResources["mult_3"]; -const argDetailsSimple100 = [{ +const argDetailsSimple_mult_4 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15202,52 +10962,9 @@ const argDetailsSimple100 = [{ required: true, fetcher: null }]; -const makeArgs100 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple100[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_4 = (args, path = []) => argDetailsSimple_mult_4.map(details => makeArg(path, args, details)); const resource_mult_4PgResource = registry.pgResources["mult_4"]; -const argDetailsSimple101 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -15260,190 +10977,18 @@ const argDetailsSimple101 = [{ required: true, fetcher: null }]; -const makeArgs101 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple101[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple102 = []; -const makeArgs102 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple102[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple103 = []; -const makeArgs103 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple103[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple104 = []; -const makeArgs104 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple104[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple105 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -15462,294 +11007,36 @@ const argDetailsSimple105 = [{ required: true, fetcher: null }]; -const makeArgs105 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple105[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple106 = []; -const makeArgs106 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple106[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple107 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs107 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple107[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple108 = [{ +const argDetailsSimple_guid_fn = [{ graphqlArgName: "g", postgresArgName: "g", pgCodec: guidCodec, required: true, fetcher: null }]; -const makeArgs108 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple108[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 makeArgs_guid_fn = (args, path = []) => argDetailsSimple_guid_fn.map(details => makeArg(path, args, details)); const resource_guid_fnPgResource = registry.pgResources["guid_fn"]; -const argDetailsSimple109 = []; -const makeArgs109 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple109[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 argDetailsSimple_mutation_interval_array = []; +const makeArgs_mutation_interval_array = (args, path = []) => argDetailsSimple_mutation_interval_array.map(details => makeArg(path, args, details)); const resource_mutation_interval_arrayPgResource = registry.pgResources["mutation_interval_array"]; -const argDetailsSimple110 = []; -const makeArgs110 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple110[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 argDetailsSimple_mutation_text_array = []; +const makeArgs_mutation_text_array = (args, path = []) => argDetailsSimple_mutation_text_array.map(details => makeArg(path, args, details)); const resource_mutation_text_arrayPgResource = registry.pgResources["mutation_text_array"]; -const argDetailsSimple111 = [{ +const argDetailsSimple_list_bde_mutation = [{ graphqlArgName: "b", postgresArgName: "b", pgCodec: textArrayCodec, @@ -15768,98 +11055,12 @@ const argDetailsSimple111 = [{ required: true, fetcher: null }]; -const makeArgs111 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple111[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 makeArgs_list_bde_mutation = (args, path = []) => argDetailsSimple_list_bde_mutation.map(details => makeArg(path, args, details)); const resource_list_bde_mutationPgResource = registry.pgResources["list_bde_mutation"]; -const argDetailsSimple112 = []; -const makeArgs112 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple112[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 argDetailsSimple_authenticate_fail = []; +const makeArgs_authenticate_fail = (args, path = []) => argDetailsSimple_authenticate_fail.map(details => makeArg(path, args, details)); const resource_authenticate_failPgResource = registry.pgResources["authenticate_fail"]; -const argDetailsSimple113 = [{ +const argDetailsSimple_authenticate = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15878,196 +11079,24 @@ const argDetailsSimple113 = [{ required: true, fetcher: null }]; -const makeArgs113 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple113[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 makeArgs_authenticate = (args, path = []) => argDetailsSimple_authenticate.map(details => makeArg(path, args, details)); const resource_authenticatePgResource = registry.pgResources["authenticate"]; -const argDetailsSimple114 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs114 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple114[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple115 = []; -const makeArgs115 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple115[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple116 = []; -const makeArgs116 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple116[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple117 = [{ +const argDetailsSimple_authenticate_many = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16086,52 +11115,9 @@ const argDetailsSimple117 = [{ required: true, fetcher: null }]; -const makeArgs117 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple117[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 makeArgs_authenticate_many = (args, path = []) => argDetailsSimple_authenticate_many.map(details => makeArg(path, args, details)); const resource_authenticate_manyPgResource = registry.pgResources["authenticate_many"]; -const argDetailsSimple118 = [{ +const argDetailsSimple_authenticate_payload = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16150,52 +11136,9 @@ const argDetailsSimple118 = [{ required: true, fetcher: null }]; -const makeArgs118 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple118[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 makeArgs_authenticate_payload = (args, path = []) => argDetailsSimple_authenticate_payload.map(details => makeArg(path, args, details)); const resource_authenticate_payloadPgResource = registry.pgResources["authenticate_payload"]; -const argDetailsSimple119 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -16232,260 +11175,45 @@ const argDetailsSimple119 = [{ required: true, fetcher: null }]; -const makeArgs119 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple119[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple120 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs120 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple120[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple121 = [{ +const argDetailsSimple_compound_type_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs121 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple121[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 makeArgs_compound_type_mutation = (args, path = []) => argDetailsSimple_compound_type_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_mutationPgResource = registry.pgResources["compound_type_mutation"]; -const argDetailsSimple122 = [{ +const argDetailsSimple_compound_type_set_mutation = [{ 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 makeArgs_compound_type_set_mutation = (args, path = []) => argDetailsSimple_compound_type_set_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_set_mutationPgResource = registry.pgResources["compound_type_set_mutation"]; -const argDetailsSimple123 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, 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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple124 = [{ +const argDetailsSimple_post_with_suffix = [{ graphqlArgName: "post", postgresArgName: "post", pgCodec: postCodec, @@ -16498,208 +11226,36 @@ const argDetailsSimple124 = [{ required: true, fetcher: null }]; -const makeArgs124 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple124[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 makeArgs_post_with_suffix = (args, path = []) => argDetailsSimple_post_with_suffix.map(details => makeArg(path, args, details)); const resource_post_with_suffixPgResource = registry.pgResources["post_with_suffix"]; -const argDetailsSimple125 = [{ +const argDetailsSimple_mutation_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs125 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple125[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 makeArgs_mutation_compound_type_array = (args, path = []) => argDetailsSimple_mutation_compound_type_array.map(details => makeArg(path, args, details)); const resource_mutation_compound_type_arrayPgResource = registry.pgResources["mutation_compound_type_array"]; -const argDetailsSimple126 = [{ +const argDetailsSimple_compound_type_array_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs126 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple126[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 makeArgs_compound_type_array_mutation = (args, path = []) => argDetailsSimple_compound_type_array_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_array_mutationPgResource = registry.pgResources["compound_type_array_mutation"]; -const argDetailsSimple127 = [{ +const argDetailsSimple_post_many = [{ graphqlArgName: "posts", postgresArgName: "posts", pgCodec: postArrayCodec, required: true, fetcher: null }]; -const makeArgs127 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple127[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 makeArgs_post_many = (args, path = []) => argDetailsSimple_post_many.map(details => makeArg(path, args, details)); const resource_post_manyPgResource = registry.pgResources["post_many"]; -const argDetailsSimple128 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16712,52 +11268,9 @@ const argDetailsSimple128 = [{ required: true, fetcher: null }]; -const makeArgs128 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple128[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple129 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16770,483 +11283,182 @@ const argDetailsSimple129 = [{ required: true, fetcher: null }]; -const makeArgs129 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple129[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple130 = []; -const makeArgs130 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple130[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple131 = []; -const makeArgs131 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple131[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple132 = []; -const makeArgs132 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple132[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; -const argDetailsSimple133 = []; -const makeArgs133 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple133[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 argDetailsSimple_type_function_connection_mutation = []; +const makeArgs_type_function_connection_mutation = (args, path = []) => argDetailsSimple_type_function_connection_mutation.map(details => makeArg(path, args, details)); const resource_type_function_connection_mutationPgResource = registry.pgResources["type_function_connection_mutation"]; -const argDetailsSimple134 = [{ +const argDetailsSimple_type_function_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs134 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple134[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 makeArgs_type_function_mutation = (args, path = []) => argDetailsSimple_type_function_mutation.map(details => makeArg(path, args, details)); const resource_type_function_mutationPgResource = registry.pgResources["type_function_mutation"]; -const argDetailsSimple135 = []; -const makeArgs135 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple135[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 argDetailsSimple_type_function_list_mutation = []; +const makeArgs_type_function_list_mutation = (args, path = []) => argDetailsSimple_type_function_list_mutation.map(details => makeArg(path, args, details)); const resource_type_function_list_mutationPgResource = registry.pgResources["type_function_list_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs15 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs16 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs17 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs18 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs19 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const specFromArgs20 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs21 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs22 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs23 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs24 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs25 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs26 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs27 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs28 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs29 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs30 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs31 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs32 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs33 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs34 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs35 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs36 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs37 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs38 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const resource_frmcdc_jwtTokenPgResource = registry.pgResources["frmcdc_jwtToken"]; @@ -27717,131 +21929,131 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, inputById(_$root, args) { return pgResource_inputsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, patchById(_$root, args) { return pgResource_patchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedById(_$root, args) { return pgResource_reservedPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedPatchRecordById(_$root, args) { return pgResource_reservedPatchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedInputRecordById(_$root, args) { return pgResource_reserved_inputPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, defaultValueById(_$root, args) { return pgResource_default_valuePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, noPrimaryKeyById(_$root, args) { return resource_no_primary_keyPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, uniqueForeignKeyByCompoundKey1AndCompoundKey2(_$root, args) { return resource_unique_foreign_keyPgResource.get({ - compound_key_1: args.get("compoundKey1"), - compound_key_2: args.get("compoundKey2") + compound_key_1: args.getRaw("compoundKey1"), + compound_key_2: args.getRaw("compoundKey2") }); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, viewTableById(_$root, args) { return pgResource_view_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, similarTable1ById(_$root, args) { return pgResource_similar_table_1PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, similarTable2ById(_$root, args) { return pgResource_similar_table_2PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, listById(_$root, args) { return pgResource_listsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, typeById(_$root, args) { return pgResource_typesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -27858,7 +22070,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27867,7 +22078,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27876,7 +22086,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27885,7 +22094,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27894,7 +22102,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27903,11 +22110,11 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, queryIntervalSet: { @@ -27924,7 +22131,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27933,7 +22139,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27942,7 +22147,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27951,7 +22155,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27960,7 +22163,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27982,7 +22184,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27991,7 +22192,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28000,7 +22200,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28009,7 +22208,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28018,7 +22216,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28027,7 +22224,7 @@ export const plans = { } }, funcInOut($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -28044,7 +22241,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28053,7 +22249,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28062,7 +22257,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28071,7 +22265,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28080,7 +22273,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28089,35 +22281,35 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, add1Query($root, args, _info) { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_add_1_query(args); return resource_add_1_queryPgResource.execute(selectArgs); }, add2Query($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_add_2_query(args); return resource_add_2_queryPgResource.execute(selectArgs); }, add3Query($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_add_3_query(args); return resource_add_3_queryPgResource.execute(selectArgs); }, add4Query($root, args, _info) { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_add_4_query(args); return resource_add_4_queryPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -28134,7 +22326,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28143,7 +22334,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28152,7 +22342,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28161,7 +22350,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28170,7 +22358,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28179,19 +22366,18 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28200,7 +22386,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28209,27 +22394,27 @@ export const plans = { } }, optionalMissingMiddle1($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_optional_missing_middle_1(args); return resource_optional_missing_middle_1PgResource.execute(selectArgs); }, optionalMissingMiddle2($root, args, _info) { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_optional_missing_middle_2(args); return resource_optional_missing_middle_2PgResource.execute(selectArgs); }, optionalMissingMiddle3($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_optional_missing_middle_3(args); return resource_optional_missing_middle_3PgResource.execute(selectArgs); }, optionalMissingMiddle4($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_optional_missing_middle_4(args); return resource_optional_missing_middle_4PgResource.execute(selectArgs); }, optionalMissingMiddle5($root, args, _info) { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_optional_missing_middle_5(args); return resource_optional_missing_middle_5PgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -28246,7 +22431,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28255,7 +22439,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28264,7 +22447,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28273,7 +22455,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28282,7 +22463,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28304,7 +22484,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28313,7 +22492,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28322,7 +22500,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28331,7 +22508,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28340,7 +22516,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28349,27 +22524,27 @@ export const plans = { } }, queryIntervalArray($root, args, _info) { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_query_interval_array(args); return resource_query_interval_arrayPgResource.execute(selectArgs); }, queryTextArray($root, args, _info) { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_query_text_array(args); return resource_query_text_arrayPgResource.execute(selectArgs); }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs31(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs32(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs33(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs34(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -28386,7 +22561,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28395,7 +22569,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28404,7 +22577,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28413,7 +22585,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28422,7 +22593,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28431,23 +22601,23 @@ export const plans = { } }, compoundTypeQuery($root, args, _info) { - const selectArgs = makeArgs36(args); + const selectArgs = makeArgs_compound_type_query(args); return resource_compound_type_queryPgResource.execute(selectArgs); }, tableQuery($root, args, _info) { - const selectArgs = makeArgs37(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, queryCompoundTypeArray($root, args, _info) { - const selectArgs = makeArgs38(args); + const selectArgs = makeArgs_query_compound_type_array(args); return resource_query_compound_type_arrayPgResource.execute(selectArgs); }, compoundTypeArrayQuery($root, args, _info) { - const selectArgs = makeArgs39(args); + const selectArgs = makeArgs_compound_type_array_query(args); return resource_compound_type_array_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs40(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -28464,7 +22634,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28473,7 +22642,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28482,7 +22650,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28491,7 +22658,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28500,7 +22666,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28522,7 +22687,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28531,7 +22695,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28540,7 +22703,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28549,7 +22711,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28558,7 +22719,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28567,7 +22727,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs43(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -28584,7 +22744,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28593,7 +22752,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28602,7 +22760,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28611,7 +22768,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28620,7 +22776,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28642,7 +22797,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28651,7 +22805,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28660,7 +22813,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28669,7 +22821,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28678,7 +22829,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28687,22 +22837,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28722,7 +22868,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28731,7 +22876,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28740,7 +22884,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28749,7 +22892,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28758,7 +22900,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28780,7 +22921,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28789,7 +22929,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28798,7 +22937,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28807,7 +22945,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28816,7 +22953,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28825,87 +22961,87 @@ export const plans = { } }, typeFunction($root, args, _info) { - const selectArgs = makeArgs48(args); + const selectArgs = makeArgs_type_function(args); return resource_type_functionPgResource.execute(selectArgs); }, typeFunctionList($root, args, _info) { - const selectArgs = makeArgs49(args); + const selectArgs = makeArgs_type_function_list(args); return resource_type_function_listPgResource.execute(selectArgs); }, input(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, patch(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, reserved(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, reservedPatchRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, reservedInputRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, defaultValue(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher8($nodeId); }, viewTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher9($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher10($nodeId); }, similarTable1(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher11($nodeId); }, similarTable2(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher12($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher13($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher14($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher15($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher16($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher17($nodeId); }, list(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher18($nodeId); }, type(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher19($nodeId); }, allNonUpdatableViews: { @@ -28916,7 +23052,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28925,7 +23060,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28934,7 +23068,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28943,7 +23076,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28952,7 +23084,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28961,22 +23092,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NonUpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28990,7 +23117,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28999,7 +23125,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29008,7 +23133,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29017,7 +23141,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29026,7 +23149,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29035,22 +23157,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29064,7 +23182,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29073,7 +23190,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29082,7 +23198,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29091,7 +23206,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29100,7 +23214,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29109,22 +23222,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29138,7 +23247,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29147,7 +23255,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29156,7 +23263,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29165,7 +23271,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29174,7 +23279,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29183,22 +23287,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29212,7 +23312,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29221,7 +23320,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29230,7 +23328,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29239,7 +23336,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29248,7 +23344,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29257,22 +23352,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29286,7 +23377,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29295,7 +23385,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29304,7 +23393,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29313,7 +23401,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29322,7 +23409,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29331,22 +23417,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29360,7 +23442,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29369,7 +23450,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29378,7 +23458,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29387,7 +23466,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29396,7 +23474,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29405,22 +23482,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29434,7 +23507,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29443,7 +23515,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29452,7 +23523,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29461,7 +23531,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29470,7 +23539,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29479,22 +23547,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29508,7 +23572,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29517,7 +23580,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29526,7 +23588,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29535,7 +23596,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29544,7 +23604,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29553,22 +23612,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NoPrimaryKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29582,7 +23637,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29591,7 +23645,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29600,7 +23653,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29609,7 +23661,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29618,7 +23669,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29627,22 +23677,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TestviewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29656,7 +23702,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29665,7 +23710,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29674,7 +23718,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29683,7 +23726,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29692,7 +23734,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29701,22 +23742,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29730,7 +23767,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29739,7 +23775,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29748,7 +23783,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29757,7 +23791,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29766,7 +23799,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29775,22 +23807,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29804,7 +23832,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29813,7 +23840,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29822,7 +23848,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29831,7 +23856,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29840,7 +23864,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29849,22 +23872,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29878,7 +23897,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29887,7 +23905,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29896,7 +23913,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29905,7 +23921,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29914,7 +23929,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29923,22 +23937,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29952,7 +23962,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29961,7 +23970,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29970,7 +23978,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29979,7 +23986,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29988,7 +23994,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29997,22 +24002,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30026,7 +24027,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30035,7 +24035,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30044,7 +24043,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30053,7 +24051,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30062,7 +24059,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30071,22 +24067,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30100,7 +24092,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30109,7 +24100,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30118,7 +24108,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30127,7 +24116,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30136,7 +24124,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30145,22 +24132,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30174,7 +24157,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30183,7 +24165,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30192,7 +24173,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30201,7 +24181,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30210,7 +24189,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30219,22 +24197,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30248,7 +24222,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30257,7 +24230,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30266,7 +24238,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30275,7 +24246,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30284,7 +24254,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30293,22 +24262,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30322,7 +24287,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30331,7 +24295,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30340,7 +24303,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30349,7 +24311,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30358,7 +24319,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30367,22 +24327,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30396,7 +24352,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30405,7 +24360,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30414,7 +24368,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30423,7 +24376,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30432,7 +24384,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30441,22 +24392,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30470,7 +24417,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30479,7 +24425,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30488,7 +24433,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30497,7 +24441,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30506,7 +24449,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30515,22 +24457,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30544,7 +24482,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30553,7 +24490,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30562,7 +24498,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30571,7 +24506,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30580,7 +24514,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30589,22 +24522,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30618,7 +24547,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30627,7 +24555,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30636,7 +24563,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30645,7 +24571,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30654,7 +24579,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30663,22 +24587,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30692,7 +24612,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30701,7 +24620,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30710,7 +24628,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30719,7 +24636,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30728,7 +24644,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30737,22 +24652,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30883,7 +24794,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30892,7 +24802,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30901,7 +24810,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30910,7 +24818,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30919,7 +24826,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30928,22 +24834,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30966,7 +24868,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30981,27 +24883,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -31010,7 +24906,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31025,27 +24921,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -31054,7 +24944,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs52(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31069,27 +24959,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -31098,7 +24982,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs53(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31113,27 +24997,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -31142,7 +25020,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs54(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31157,27 +25035,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -31186,7 +25058,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs55(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31201,27 +25073,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -31230,7 +25096,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs56(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31245,27 +25111,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -31274,7 +25134,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs57(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31289,27 +25149,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -31318,7 +25172,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs58(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31333,27 +25187,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -31362,7 +25210,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs59(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31377,27 +25225,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -31406,7 +25248,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs60(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31421,27 +25263,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -31450,7 +25286,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs61(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31465,27 +25301,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -31494,7 +25324,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs62(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31509,27 +25339,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -31538,7 +25362,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs63(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31553,27 +25377,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -31582,7 +25400,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs64(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31597,27 +25415,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -31636,7 +25448,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31645,7 +25456,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31654,7 +25464,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31663,7 +25472,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31672,7 +25480,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31681,12 +25488,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -31706,7 +25510,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31715,7 +25518,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31724,7 +25526,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31733,7 +25534,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31742,7 +25542,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31754,7 +25553,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs67(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31769,27 +25568,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -31798,7 +25591,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs68(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31813,27 +25606,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -31888,7 +25675,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31897,7 +25683,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31906,7 +25691,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31915,7 +25699,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31924,7 +25707,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31933,22 +25715,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -31965,7 +25743,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31974,7 +25751,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31983,7 +25759,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31992,7 +25767,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32001,7 +25775,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32010,22 +25783,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32052,7 +25821,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32061,7 +25829,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32070,7 +25837,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32079,7 +25845,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32088,7 +25853,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32097,22 +25861,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32129,7 +25889,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32138,7 +25897,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32147,7 +25905,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32156,7 +25913,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32165,7 +25921,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32174,22 +25929,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32264,7 +26015,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs69(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32279,27 +26030,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -32410,7 +26155,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32419,7 +26163,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32428,7 +26171,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32437,7 +26179,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32446,7 +26187,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32458,7 +26198,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs71(args); + const extraSelectArgs = makeArgs_post_computed_interval_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32473,27 +26213,21 @@ export const plans = { if (resource_post_computed_interval_arrayPgResource.isUnique && !resource_post_computed_interval_arrayPgResource.codec.attributes && typeof resource_post_computed_interval_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${resource_post_computed_interval_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_arrayPgResource.from, resource_post_computed_interval_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_arrayPgResource.execute(selectArgs); @@ -32502,7 +26236,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs72(args); + const extraSelectArgs = makeArgs_post_computed_text_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32517,27 +26251,21 @@ export const plans = { if (resource_post_computed_text_arrayPgResource.isUnique && !resource_post_computed_text_arrayPgResource.codec.attributes && typeof resource_post_computed_text_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${resource_post_computed_text_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_text_arrayPgResource.from, resource_post_computed_text_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_text_arrayPgResource.execute(selectArgs); @@ -32546,7 +26274,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs73(args); + const extraSelectArgs = makeArgs_post_computed_with_optional_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32561,27 +26289,21 @@ export const plans = { if (resource_post_computed_with_optional_argPgResource.isUnique && !resource_post_computed_with_optional_argPgResource.codec.attributes && typeof resource_post_computed_with_optional_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${resource_post_computed_with_optional_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_optional_argPgResource.from, resource_post_computed_with_optional_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_optional_argPgResource.execute(selectArgs); @@ -32590,7 +26312,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs74(args); + const extraSelectArgs = makeArgs_post_computed_with_required_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32605,27 +26327,21 @@ export const plans = { if (resource_post_computed_with_required_argPgResource.isUnique && !resource_post_computed_with_required_argPgResource.codec.attributes && typeof resource_post_computed_with_required_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${resource_post_computed_with_required_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_required_argPgResource.from, resource_post_computed_with_required_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_required_argPgResource.execute(selectArgs); @@ -32634,7 +26350,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs75(args); + const extraSelectArgs = makeArgs_post_headline_trimmed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32649,27 +26365,21 @@ export const plans = { if (resource_post_headline_trimmedPgResource.isUnique && !resource_post_headline_trimmedPgResource.codec.attributes && typeof resource_post_headline_trimmedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${resource_post_headline_trimmedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmedPgResource.from, resource_post_headline_trimmedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmedPgResource.execute(selectArgs); @@ -32678,7 +26388,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs76(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_no_defaults(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32693,27 +26403,21 @@ export const plans = { if (resource_post_headline_trimmed_no_defaultsPgResource.isUnique && !resource_post_headline_trimmed_no_defaultsPgResource.codec.attributes && typeof resource_post_headline_trimmed_no_defaultsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${resource_post_headline_trimmed_no_defaultsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.from, resource_post_headline_trimmed_no_defaultsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_no_defaultsPgResource.execute(selectArgs); @@ -32722,7 +26426,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs77(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_strict(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32737,27 +26441,21 @@ export const plans = { if (resource_post_headline_trimmed_strictPgResource.isUnique && !resource_post_headline_trimmed_strictPgResource.codec.attributes && typeof resource_post_headline_trimmed_strictPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${resource_post_headline_trimmed_strictPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_strictPgResource.from, resource_post_headline_trimmed_strictPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_strictPgResource.execute(selectArgs); @@ -32766,7 +26464,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs78(args); + const extraSelectArgs = makeArgs_post_computed_compound_type_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32781,27 +26479,21 @@ export const plans = { if (resource_post_computed_compound_type_arrayPgResource.isUnique && !resource_post_computed_compound_type_arrayPgResource.codec.attributes && typeof resource_post_computed_compound_type_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${resource_post_computed_compound_type_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_compound_type_arrayPgResource.from, resource_post_computed_compound_type_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_compound_type_arrayPgResource.execute(selectArgs); @@ -32843,7 +26535,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32852,7 +26543,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32861,7 +26551,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32870,7 +26559,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32879,7 +26567,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32888,22 +26575,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32966,64 +26649,70 @@ export const plans = { } }, CompoundTypeInput: { - "__inputPlan": function CompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, IntervalInput: { @@ -33541,31 +27230,21 @@ export const plans = { } }, TypesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33574,19 +27253,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33595,11 +27272,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -33607,7 +27281,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33617,11 +27291,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -33629,7 +27300,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33639,11 +27310,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "ASC", ...(undefined != null ? { @@ -33651,7 +27319,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33661,11 +27329,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "DESC", ...(undefined != null ? { @@ -33673,7 +27338,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33683,11 +27348,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "ASC", ...(undefined != null ? { @@ -33695,7 +27357,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33705,11 +27367,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "DESC", ...(undefined != null ? { @@ -33717,7 +27376,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33727,11 +27386,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "ASC", ...(undefined != null ? { @@ -33739,7 +27395,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33749,11 +27405,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "DESC", ...(undefined != null ? { @@ -33761,7 +27414,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33771,11 +27424,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "ASC", ...(undefined != null ? { @@ -33783,7 +27433,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33793,11 +27443,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "DESC", ...(undefined != null ? { @@ -33805,7 +27452,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33815,11 +27462,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "ASC", ...(undefined != null ? { @@ -33827,7 +27471,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33837,11 +27481,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "DESC", ...(undefined != null ? { @@ -33849,7 +27490,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33859,11 +27500,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "ASC", ...(undefined != null ? { @@ -33871,7 +27509,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33881,11 +27519,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "DESC", ...(undefined != null ? { @@ -33893,7 +27528,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33903,11 +27538,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "ASC", ...(undefined != null ? { @@ -33915,7 +27547,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33925,11 +27557,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "DESC", ...(undefined != null ? { @@ -33937,7 +27566,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33947,11 +27576,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "ASC", ...(undefined != null ? { @@ -33959,7 +27585,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33969,11 +27595,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "DESC", ...(undefined != null ? { @@ -33981,7 +27604,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33991,11 +27614,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "ASC", ...(undefined != null ? { @@ -34003,7 +27623,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34013,11 +27633,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "DESC", ...(undefined != null ? { @@ -34025,7 +27642,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34035,11 +27652,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "ASC", ...(undefined != null ? { @@ -34047,7 +27661,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34057,11 +27671,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "DESC", ...(undefined != null ? { @@ -34069,7 +27680,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34079,11 +27690,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "ASC", ...(undefined != null ? { @@ -34091,7 +27699,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34101,11 +27709,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "DESC", ...(undefined != null ? { @@ -34113,7 +27718,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34123,11 +27728,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "ASC", ...(undefined != null ? { @@ -34135,7 +27737,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34145,11 +27747,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "DESC", ...(undefined != null ? { @@ -34157,7 +27756,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34167,11 +27766,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "ASC", ...(undefined != null ? { @@ -34179,7 +27775,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34189,11 +27785,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "DESC", ...(undefined != null ? { @@ -34201,7 +27794,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34211,11 +27804,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "ASC", ...(undefined != null ? { @@ -34223,7 +27813,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34233,11 +27823,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "DESC", ...(undefined != null ? { @@ -34245,7 +27832,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34255,11 +27842,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "ASC", ...(undefined != null ? { @@ -34267,7 +27851,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34277,11 +27861,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "DESC", ...(undefined != null ? { @@ -34289,7 +27870,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34299,11 +27880,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "ASC", ...(undefined != null ? { @@ -34311,7 +27889,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34321,11 +27899,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "DESC", ...(undefined != null ? { @@ -34333,7 +27908,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34343,11 +27918,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "ASC", ...(undefined != null ? { @@ -34355,7 +27927,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34365,11 +27937,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "DESC", ...(undefined != null ? { @@ -34377,7 +27946,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34387,11 +27956,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "ASC", ...(undefined != null ? { @@ -34399,7 +27965,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34409,11 +27975,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "DESC", ...(undefined != null ? { @@ -34421,7 +27984,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34431,11 +27994,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "ASC", ...(undefined != null ? { @@ -34443,7 +28003,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34453,11 +28013,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "DESC", ...(undefined != null ? { @@ -34465,7 +28022,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34475,11 +28032,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34487,7 +28041,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34497,11 +28051,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34509,7 +28060,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34519,11 +28070,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34531,7 +28079,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34541,11 +28089,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34553,7 +28098,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34563,11 +28108,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34575,7 +28117,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34585,11 +28127,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34597,7 +28136,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34607,11 +28146,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "ASC", ...(undefined != null ? { @@ -34619,7 +28155,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34629,11 +28165,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "DESC", ...(undefined != null ? { @@ -34641,7 +28174,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34651,11 +28184,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "ASC", ...(undefined != null ? { @@ -34663,7 +28193,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34673,11 +28203,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "DESC", ...(undefined != null ? { @@ -34685,7 +28212,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34695,11 +28222,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -34707,7 +28231,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34717,11 +28241,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -34729,7 +28250,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34739,11 +28260,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -34751,7 +28269,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34761,11 +28279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -34773,7 +28288,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34783,11 +28298,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -34795,7 +28307,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34805,11 +28317,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -34817,7 +28326,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34827,11 +28336,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "ASC", ...(undefined != null ? { @@ -34839,7 +28345,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34849,11 +28355,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "DESC", ...(undefined != null ? { @@ -34861,7 +28364,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34871,11 +28374,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "ASC", ...(undefined != null ? { @@ -34883,7 +28383,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34893,11 +28393,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "DESC", ...(undefined != null ? { @@ -34905,7 +28402,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34915,11 +28412,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "ASC", ...(undefined != null ? { @@ -34927,7 +28421,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34937,11 +28431,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "DESC", ...(undefined != null ? { @@ -34949,7 +28440,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34959,11 +28450,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "ASC", ...(undefined != null ? { @@ -34971,7 +28459,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34981,11 +28469,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "DESC", ...(undefined != null ? { @@ -34993,7 +28478,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35003,11 +28488,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "ASC", ...(undefined != null ? { @@ -35015,7 +28497,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35025,11 +28507,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "DESC", ...(undefined != null ? { @@ -35037,7 +28516,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35047,11 +28526,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "ASC", ...(undefined != null ? { @@ -35059,7 +28535,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35069,11 +28545,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "DESC", ...(undefined != null ? { @@ -35081,7 +28554,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35091,11 +28564,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "ASC", ...(undefined != null ? { @@ -35103,7 +28573,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35113,11 +28583,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "DESC", ...(undefined != null ? { @@ -35125,7 +28592,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35135,11 +28602,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "ASC", ...(undefined != null ? { @@ -35147,7 +28611,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35157,11 +28621,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "DESC", ...(undefined != null ? { @@ -35169,7 +28630,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35179,11 +28640,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "ASC", ...(undefined != null ? { @@ -35191,7 +28649,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35201,11 +28659,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "DESC", ...(undefined != null ? { @@ -35213,7 +28668,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35222,8 +28677,8 @@ export const plans = { }, TypeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35236,17 +28691,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, smallint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "smallint", @@ -35259,17 +28712,15 @@ export const plans = { type: "attribute", attribute: "smallint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.smallint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, bigint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "bigint", @@ -35282,17 +28733,15 @@ export const plans = { type: "attribute", attribute: "bigint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.bigint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numeric: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numeric", @@ -35305,17 +28754,15 @@ export const plans = { type: "attribute", attribute: "numeric", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numeric.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, decimal: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "decimal", @@ -35328,17 +28775,15 @@ export const plans = { type: "attribute", attribute: "decimal", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.decimal.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, boolean: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "boolean", @@ -35351,17 +28796,15 @@ export const plans = { type: "attribute", attribute: "boolean", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.boolean.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, varchar: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "varchar", @@ -35374,17 +28817,15 @@ export const plans = { type: "attribute", attribute: "varchar", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.varchar.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum", @@ -35397,17 +28838,15 @@ export const plans = { type: "attribute", attribute: "enum", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -35420,17 +28859,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain", @@ -35443,17 +28880,15 @@ export const plans = { type: "attribute", attribute: "domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain2", @@ -35466,17 +28901,15 @@ export const plans = { type: "attribute", attribute: "domain2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anotherIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array", @@ -35489,17 +28922,15 @@ export const plans = { type: "attribute", attribute: "text_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, json: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json", @@ -35512,17 +28943,15 @@ export const plans = { type: "attribute", attribute: "json", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.json.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.json)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonb: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "jsonb", @@ -35535,17 +28964,15 @@ export const plans = { type: "attribute", attribute: "jsonb", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.jsonb.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_range", @@ -35558,17 +28985,15 @@ export const plans = { type: "attribute", attribute: "nullable_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numrange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numrange", @@ -35581,17 +29006,15 @@ export const plans = { type: "attribute", attribute: "numrange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numrange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, daterange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "daterange", @@ -35604,17 +29027,15 @@ export const plans = { type: "attribute", attribute: "daterange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.daterange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, daterangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, anIntRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "an_int_range", @@ -35627,17 +29048,15 @@ export const plans = { type: "attribute", attribute: "an_int_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.an_int_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntRangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamp", @@ -35650,17 +29069,15 @@ export const plans = { type: "attribute", attribute: "timestamp", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamp.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz", @@ -35673,17 +29090,15 @@ export const plans = { type: "attribute", attribute: "timestamptz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamptz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, date: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date", @@ -35696,17 +29111,15 @@ export const plans = { type: "attribute", attribute: "date", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.date.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.date)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, time: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "time", @@ -35719,17 +29132,15 @@ export const plans = { type: "attribute", attribute: "time", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.time.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.time)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timetz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timetz", @@ -35742,17 +29153,15 @@ export const plans = { type: "attribute", attribute: "timetz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timetz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timetz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, interval: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval", @@ -35765,17 +29174,15 @@ export const plans = { type: "attribute", attribute: "interval", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.interval)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intervalArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval_array", @@ -35788,17 +29195,15 @@ export const plans = { type: "attribute", attribute: "interval_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, intervalArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, money: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "money", @@ -35811,17 +29216,15 @@ export const plans = { type: "attribute", attribute: "money", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.money.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.money)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type", @@ -35834,17 +29237,15 @@ export const plans = { type: "attribute", attribute: "compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nested_compound_type", @@ -35857,17 +29258,15 @@ export const plans = { type: "attribute", attribute: "nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_compound_type", @@ -35880,17 +29279,15 @@ export const plans = { type: "attribute", attribute: "nullable_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableNestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_nested_compound_type", @@ -35903,17 +29300,15 @@ export const plans = { type: "attribute", attribute: "nullable_nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, point: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "point", @@ -35926,17 +29321,15 @@ export const plans = { type: "attribute", attribute: "point", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.point.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullablePoint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullablePoint", @@ -35949,17 +29342,15 @@ export const plans = { type: "attribute", attribute: "nullablePoint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullablePoint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -35972,17 +29363,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -35995,17 +29384,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -36018,17 +29405,15 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regproc: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regproc", @@ -36041,17 +29426,15 @@ export const plans = { type: "attribute", attribute: "regproc", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regproc.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regproc)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regprocedure: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regprocedure", @@ -36064,17 +29447,15 @@ export const plans = { type: "attribute", attribute: "regprocedure", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regprocedure.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regprocedure)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoper: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoper", @@ -36087,17 +29468,15 @@ export const plans = { type: "attribute", attribute: "regoper", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoper.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoper)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoperator: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoperator", @@ -36110,17 +29489,15 @@ export const plans = { type: "attribute", attribute: "regoperator", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoperator.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoperator)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regclass: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regclass", @@ -36133,17 +29510,15 @@ export const plans = { type: "attribute", attribute: "regclass", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regclass.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regclass)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regtype: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regtype", @@ -36156,17 +29531,15 @@ export const plans = { type: "attribute", attribute: "regtype", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regtype.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regtype)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regconfig: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regconfig", @@ -36179,17 +29552,15 @@ export const plans = { type: "attribute", attribute: "regconfig", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regconfig.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regconfig)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regdictionary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regdictionary", @@ -36202,17 +29573,15 @@ export const plans = { type: "attribute", attribute: "regdictionary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regdictionary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regdictionary)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array_domain", @@ -36225,17 +29594,15 @@ export const plans = { type: "attribute", attribute: "text_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, int8ArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int8_array_domain", @@ -36248,17 +29615,15 @@ export const plans = { type: "attribute", attribute: "int8_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.int8_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int8ArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltree: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree", @@ -36271,17 +29636,15 @@ export const plans = { type: "attribute", attribute: "ltree", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_codec_ltree)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltreeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree_array", @@ -36294,13 +29657,11 @@ export const plans = { type: "attribute", attribute: "ltree_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_array_codec_ltree_)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BigFloatRangeInput: { @@ -36328,29 +29689,30 @@ export const plans = { inclusive: undefined }, NestedCompoundTypeInput: { - "__inputPlan": function NestedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, bazBuz: { - applyPlan($insert, val) { - $insert.set("baz_buz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("baz_buz", bakedInputRuntime(schema, field.type, val)); + } } }, PointInput: { @@ -36383,26 +29745,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36415,14 +29769,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36435,14 +29789,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36455,14 +29809,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36475,19 +29829,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36496,19 +29848,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36517,11 +29867,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36529,7 +29876,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36539,11 +29886,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36551,7 +29895,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36561,11 +29905,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -36573,7 +29914,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36583,11 +29924,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -36595,7 +29933,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36605,11 +29943,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -36617,7 +29952,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36627,11 +29962,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -36639,7 +29971,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36649,11 +29981,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -36661,7 +29990,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36671,11 +30000,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -36683,7 +30009,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36693,11 +30019,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -36705,7 +30028,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36715,11 +30038,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -36727,7 +30047,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36737,11 +30057,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -36749,7 +30066,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36759,11 +30076,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -36771,7 +30085,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36781,11 +30095,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -36793,7 +30104,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36803,11 +30114,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -36815,7 +30123,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36825,11 +30133,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -36837,7 +30142,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36847,11 +30152,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -36859,7 +30161,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36869,11 +30171,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -36881,7 +30180,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36891,11 +30190,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -36903,7 +30199,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36913,11 +30209,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -36925,7 +30218,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36935,11 +30228,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -36947,7 +30237,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37030,26 +30320,18 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_WITH_OPTIONAL_ARG_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -37062,14 +30344,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -37082,19 +30364,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37103,19 +30383,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37124,11 +30402,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37136,7 +30411,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37146,11 +30421,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37158,7 +30430,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37168,11 +30440,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "ASC", ...(undefined != null ? { @@ -37180,7 +30449,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37190,11 +30459,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "DESC", ...(undefined != null ? { @@ -37202,7 +30468,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37212,11 +30478,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -37224,7 +30487,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37234,11 +30497,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -37246,7 +30506,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37256,11 +30516,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -37268,7 +30525,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37278,11 +30535,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -37290,7 +30544,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37299,8 +30553,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37313,17 +30567,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, headline: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "headline", @@ -37336,17 +30588,15 @@ export const plans = { type: "attribute", attribute: "headline", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.headline.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -37359,17 +30609,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -37382,17 +30630,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enums: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enums", @@ -37405,17 +30651,15 @@ export const plans = { type: "attribute", attribute: "enums", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.enums.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anEnumArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, comptypes: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "comptypes", @@ -37428,47 +30672,46 @@ export const plans = { type: "attribute", attribute: "comptypes", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.comptypes.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, comptypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedWithOptionalArg: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_post_computed_with_optional_argPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_post_computed_with_optional_argPgResource.codec)}`); } } } }, ComptypeInput: { - "__inputPlan": function ComptypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, schedule: { - applyPlan($insert, val) { - $insert.set("schedule", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("schedule", bakedInputRuntime(schema, field.type, val)); + } }, isOptimised: { - applyPlan($insert, val) { - $insert.set("is_optimised", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_optimised", bakedInputRuntime(schema, field.type, val)); + } } }, ForeignKeysConnection: { @@ -37520,23 +30763,12 @@ export const plans = { } }, ForeignKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PERSON_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -37544,7 +30776,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37554,11 +30786,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -37566,7 +30795,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37576,11 +30805,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "ASC", ...(undefined != null ? { @@ -37588,7 +30814,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37598,11 +30824,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "DESC", ...(undefined != null ? { @@ -37610,7 +30833,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37620,11 +30843,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "ASC", ...(undefined != null ? { @@ -37632,7 +30852,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37642,11 +30862,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "DESC", ...(undefined != null ? { @@ -37654,7 +30871,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37663,8 +30880,8 @@ export const plans = { }, ForeignKeyCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -37677,17 +30894,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_1", @@ -37700,17 +30915,15 @@ export const plans = { type: "attribute", attribute: "compound_key_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_2", @@ -37723,13 +30936,11 @@ export const plans = { type: "attribute", attribute: "compound_key_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecret: { @@ -37800,31 +31011,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37833,19 +31034,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37854,11 +31053,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -37866,7 +31062,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37876,11 +31072,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -37888,7 +31081,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37898,11 +31091,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -37910,7 +31100,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37920,11 +31110,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -37932,7 +31119,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37942,11 +31129,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -37954,7 +31138,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37964,11 +31148,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -37976,7 +31157,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37985,8 +31166,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -37999,17 +31180,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -38022,17 +31201,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -38045,13 +31222,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTable: { @@ -38594,8 +31769,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -38608,17 +31783,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -38631,17 +31804,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -38654,17 +31825,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -38677,17 +31846,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -38700,17 +31867,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -38723,17 +31888,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -38746,17 +31909,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -38769,17 +31930,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -38792,17 +31951,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -38815,17 +31972,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -38838,40 +31993,38 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, NonUpdatableViewsConnection: { @@ -38906,23 +32059,12 @@ export const plans = { } }, NonUpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COLUMN_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "ASC", ...(undefined != null ? { @@ -38930,7 +32072,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38940,11 +32082,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "DESC", ...(undefined != null ? { @@ -38952,7 +32091,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38961,8 +32100,8 @@ export const plans = { }, NonUpdatableViewCondition: { column: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "?column?", @@ -38975,13 +32114,11 @@ export const plans = { type: "attribute", attribute: "?column?", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nonUpdatableView.attributes["?column?"].codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, InputsConnection: { @@ -39010,31 +32147,21 @@ export const plans = { } }, InputsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39043,19 +32170,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39064,11 +32189,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39076,7 +32198,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39086,11 +32208,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39098,7 +32217,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39107,8 +32226,8 @@ export const plans = { }, InputCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39121,13 +32240,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_inputs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PatchesConnection: { @@ -39156,31 +32273,21 @@ export const plans = { } }, PatchesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39189,19 +32296,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39210,11 +32315,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39222,7 +32324,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39232,11 +32334,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39244,7 +32343,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39253,8 +32352,8 @@ export const plans = { }, PatchCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39267,13 +32366,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_patchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedsConnection: { @@ -39302,31 +32399,21 @@ export const plans = { } }, ReservedsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39335,19 +32422,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39356,11 +32441,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39368,7 +32450,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39378,11 +32460,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39390,7 +32469,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39399,8 +32478,8 @@ export const plans = { }, ReservedCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39413,13 +32492,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedPatchRecordsConnection: { @@ -39448,31 +32525,21 @@ export const plans = { } }, ReservedPatchRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39481,19 +32548,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39502,11 +32567,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39514,7 +32576,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39524,11 +32586,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39536,7 +32595,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39545,8 +32604,8 @@ export const plans = { }, ReservedPatchRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39559,13 +32618,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedPatchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedInputRecordsConnection: { @@ -39594,31 +32651,21 @@ export const plans = { } }, ReservedInputRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39627,19 +32674,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39648,11 +32693,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39660,7 +32702,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39670,11 +32712,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39682,7 +32721,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39691,8 +32730,8 @@ export const plans = { }, ReservedInputRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39705,13 +32744,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedInput.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, DefaultValuesConnection: { @@ -39740,31 +32777,21 @@ export const plans = { } }, DefaultValuesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39773,19 +32800,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39794,11 +32819,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39806,7 +32828,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39816,11 +32838,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39828,7 +32847,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39838,11 +32857,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "ASC", ...(undefined != null ? { @@ -39850,7 +32866,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39860,11 +32876,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "DESC", ...(undefined != null ? { @@ -39872,7 +32885,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39881,8 +32894,8 @@ export const plans = { }, DefaultValueCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39895,17 +32908,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullValue: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "null_value", @@ -39918,13 +32929,11 @@ export const plans = { type: "attribute", attribute: "null_value", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.null_value.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NoPrimaryKeysConnection: { @@ -39953,23 +32962,12 @@ export const plans = { } }, NoPrimaryKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39977,7 +32975,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39987,11 +32985,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39999,7 +32994,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40009,11 +33004,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "ASC", ...(undefined != null ? { @@ -40021,7 +33013,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40031,11 +33023,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "DESC", ...(undefined != null ? { @@ -40043,7 +33032,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40052,8 +33041,8 @@ export const plans = { }, NoPrimaryKeyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40066,17 +33055,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, str: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str", @@ -40089,13 +33076,11 @@ export const plans = { type: "attribute", attribute: "str", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.str.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TestviewsConnection: { @@ -40136,23 +33121,12 @@ export const plans = { } }, TestviewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, TESTVIEWID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "ASC", ...(undefined != null ? { @@ -40160,7 +33134,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40170,11 +33144,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "DESC", ...(undefined != null ? { @@ -40182,7 +33153,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40192,11 +33163,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40204,7 +33172,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40214,11 +33182,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40226,7 +33191,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40236,11 +33201,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40248,7 +33210,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40258,11 +33220,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40270,7 +33229,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40279,8 +33238,8 @@ export const plans = { }, TestviewCondition: { testviewid: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "testviewid", @@ -40293,17 +33252,15 @@ export const plans = { type: "attribute", attribute: "testviewid", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.testviewid.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -40316,17 +33273,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -40339,13 +33294,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTablesConnection: { @@ -40374,31 +33327,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40407,19 +33350,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40428,11 +33369,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40440,7 +33378,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40450,11 +33388,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40462,7 +33397,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40472,11 +33407,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -40484,7 +33416,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40494,11 +33426,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -40506,7 +33435,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40515,8 +33444,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40529,17 +33458,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -40552,13 +33479,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -40587,31 +33512,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40620,19 +33535,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40641,11 +33554,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -40653,7 +33563,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40663,11 +33573,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -40675,7 +33582,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40685,11 +33592,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -40697,7 +33601,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40707,11 +33611,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -40719,7 +33620,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40728,8 +33629,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -40742,17 +33643,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -40765,13 +33664,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ViewTablesConnection: { @@ -40800,31 +33697,21 @@ export const plans = { } }, ViewTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40833,19 +33720,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40854,11 +33739,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40866,7 +33748,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40876,11 +33758,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40888,7 +33767,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40898,11 +33777,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40910,7 +33786,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40920,11 +33796,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40932,7 +33805,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40942,11 +33815,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40954,7 +33824,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40964,11 +33834,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40976,7 +33843,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40985,8 +33852,8 @@ export const plans = { }, ViewTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40999,17 +33866,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41022,17 +33887,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41045,13 +33908,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable1SConnection: { @@ -41080,31 +33941,21 @@ export const plans = { } }, SimilarTable1SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41113,19 +33964,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41134,11 +33983,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41146,7 +33992,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41156,11 +34002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41168,7 +34011,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41178,11 +34021,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -41190,7 +34030,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41200,11 +34040,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -41212,7 +34049,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41222,11 +34059,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -41234,7 +34068,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41244,11 +34078,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -41256,7 +34087,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41266,11 +34097,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41278,7 +34106,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41288,11 +34116,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41300,7 +34125,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41309,8 +34134,8 @@ export const plans = { }, SimilarTable1Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41323,17 +34148,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41346,17 +34169,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41369,17 +34190,15 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41392,13 +34211,11 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable2SConnection: { @@ -41427,31 +34244,21 @@ export const plans = { } }, SimilarTable2SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41460,19 +34267,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41481,11 +34286,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41493,7 +34295,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41503,11 +34305,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41515,7 +34314,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41525,11 +34324,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41537,7 +34333,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41547,11 +34343,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41559,7 +34352,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41569,11 +34362,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "ASC", ...(undefined != null ? { @@ -41581,7 +34371,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41591,11 +34381,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "DESC", ...(undefined != null ? { @@ -41603,7 +34390,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41613,11 +34400,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "ASC", ...(undefined != null ? { @@ -41625,7 +34409,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41635,11 +34419,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "DESC", ...(undefined != null ? { @@ -41647,7 +34428,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41656,8 +34437,8 @@ export const plans = { }, SimilarTable2Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41670,17 +34451,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41693,17 +34472,15 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col4: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col4", @@ -41716,17 +34493,15 @@ export const plans = { type: "attribute", attribute: "col4", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col4.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col5: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col5", @@ -41739,13 +34514,11 @@ export const plans = { type: "attribute", attribute: "col5", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col5.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UpdatableViewsConnection: { @@ -41789,23 +34562,12 @@ export const plans = { } }, UpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, X_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "ASC", ...(undefined != null ? { @@ -41813,7 +34575,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41823,11 +34585,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "DESC", ...(undefined != null ? { @@ -41835,7 +34594,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41845,11 +34604,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -41857,7 +34613,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41867,11 +34623,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -41879,7 +34632,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41889,11 +34642,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -41901,7 +34651,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41911,11 +34661,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -41923,7 +34670,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41933,11 +34680,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "ASC", ...(undefined != null ? { @@ -41945,7 +34689,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41955,11 +34699,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "DESC", ...(undefined != null ? { @@ -41967,7 +34708,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41976,8 +34717,8 @@ export const plans = { }, UpdatableViewCondition: { x: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "x", @@ -41990,17 +34731,15 @@ export const plans = { type: "attribute", attribute: "x", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.x.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -42013,17 +34752,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -42036,17 +34773,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constant: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constant", @@ -42059,13 +34794,11 @@ export const plans = { type: "attribute", attribute: "constant", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.constant.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -42094,31 +34827,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42127,19 +34850,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42148,11 +34869,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42160,7 +34878,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42170,11 +34888,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42182,7 +34897,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42192,11 +34907,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -42204,7 +34916,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42214,11 +34926,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -42226,7 +34935,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42236,11 +34945,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -42248,7 +34954,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42258,11 +34964,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -42270,7 +34973,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42280,11 +34983,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -42292,7 +34992,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42302,11 +35002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -42314,7 +35011,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42323,8 +35020,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42337,17 +35034,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -42360,17 +35055,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -42383,17 +35076,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -42406,13 +35097,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -42437,7 +35126,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs79(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -42452,27 +35141,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -42497,23 +35180,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -42521,7 +35193,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42531,11 +35203,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -42543,7 +35212,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42553,11 +35222,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -42565,7 +35231,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42575,11 +35241,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -42587,7 +35250,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42597,11 +35260,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -42609,7 +35269,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42619,11 +35279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -42631,7 +35288,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42640,8 +35297,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -42654,17 +35311,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -42677,17 +35332,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -42700,13 +35353,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -42735,31 +35386,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42768,19 +35409,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42789,11 +35428,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42801,7 +35437,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42811,11 +35447,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42823,7 +35456,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42833,11 +35466,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -42845,7 +35475,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42855,11 +35485,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -42867,7 +35494,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42877,11 +35504,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -42889,7 +35513,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42899,11 +35523,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -42911,7 +35532,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42921,11 +35542,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -42933,7 +35551,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42943,11 +35561,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -42955,7 +35570,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42964,8 +35579,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42978,17 +35593,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -43001,17 +35614,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -43024,17 +35635,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -43047,13 +35656,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -43082,31 +35689,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43115,19 +35712,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43136,11 +35731,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43148,7 +35740,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43158,11 +35750,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43170,7 +35759,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43180,11 +35769,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -43192,7 +35778,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43202,11 +35788,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -43214,7 +35797,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43223,8 +35806,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43237,17 +35820,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -43260,13 +35841,11 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ListsConnection: { @@ -43295,31 +35874,21 @@ export const plans = { } }, ListsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43328,19 +35897,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43349,11 +35916,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43361,7 +35925,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43371,11 +35935,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43383,7 +35944,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43392,8 +35953,8 @@ export const plans = { }, ListCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43406,17 +35967,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array", @@ -43429,17 +35988,15 @@ export const plans = { type: "attribute", attribute: "int_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array_nn", @@ -43452,17 +36009,15 @@ export const plans = { type: "attribute", attribute: "int_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -43475,17 +36030,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array_nn", @@ -43498,17 +36051,15 @@ export const plans = { type: "attribute", attribute: "enum_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array", @@ -43521,17 +36072,15 @@ export const plans = { type: "attribute", attribute: "date_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array_nn", @@ -43544,17 +36093,15 @@ export const plans = { type: "attribute", attribute: "date_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array", @@ -43567,17 +36114,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array_nn", @@ -43590,17 +36135,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array", @@ -43613,17 +36156,15 @@ export const plans = { type: "attribute", attribute: "compound_type_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array_nn", @@ -43636,20 +36177,18 @@ export const plans = { type: "attribute", attribute: "compound_type_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs80(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43659,9 +36198,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43669,7 +36217,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs81(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43679,9 +36227,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43689,7 +36246,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs82(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43699,9 +36256,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43709,7 +36275,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs83(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43719,9 +36285,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43729,7 +36304,7 @@ export const plans = { }, returnVoidMutation: { plan($root, args, _info) { - const selectArgs = makeArgs84(args, ["input"]); + const selectArgs = makeArgs_return_void_mutation(args, ["input"]); const $result = resource_return_void_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43739,9 +36314,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43749,7 +36333,7 @@ export const plans = { }, mutationIntervalSet: { plan($root, args, _info) { - const selectArgs = makeArgs85(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_set(args, ["input"]); const $result = resource_mutation_interval_setPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43759,9 +36343,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43769,7 +36362,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs86(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43779,9 +36372,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43789,7 +36391,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs87(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43799,9 +36401,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43809,7 +36420,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs88(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43819,9 +36430,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43829,7 +36449,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs89(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43839,9 +36459,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43849,7 +36478,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs90(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43859,9 +36488,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43869,7 +36507,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs91(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43879,9 +36517,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43889,7 +36536,7 @@ export const plans = { }, add1Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs92(args, ["input"]); + const selectArgs = makeArgs_add_1_mutation(args, ["input"]); const $result = resource_add_1_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43899,9 +36546,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43909,7 +36565,7 @@ export const plans = { }, add2Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs93(args, ["input"]); + const selectArgs = makeArgs_add_2_mutation(args, ["input"]); const $result = resource_add_2_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43919,9 +36575,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43929,7 +36594,7 @@ export const plans = { }, add3Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs94(args, ["input"]); + const selectArgs = makeArgs_add_3_mutation(args, ["input"]); const $result = resource_add_3_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43939,9 +36604,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43949,7 +36623,7 @@ export const plans = { }, add4Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs95(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation(args, ["input"]); const $result = resource_add_4_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43959,9 +36633,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43969,7 +36652,7 @@ export const plans = { }, add4MutationError: { plan($root, args, _info) { - const selectArgs = makeArgs96(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation_error(args, ["input"]); const $result = resource_add_4_mutation_errorPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43979,9 +36662,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43989,7 +36681,7 @@ export const plans = { }, mult1: { plan($root, args, _info) { - const selectArgs = makeArgs97(args, ["input"]); + const selectArgs = makeArgs_mult_1(args, ["input"]); const $result = resource_mult_1PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43999,9 +36691,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44009,7 +36710,7 @@ export const plans = { }, mult2: { plan($root, args, _info) { - const selectArgs = makeArgs98(args, ["input"]); + const selectArgs = makeArgs_mult_2(args, ["input"]); const $result = resource_mult_2PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44019,9 +36720,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44029,7 +36739,7 @@ export const plans = { }, mult3: { plan($root, args, _info) { - const selectArgs = makeArgs99(args, ["input"]); + const selectArgs = makeArgs_mult_3(args, ["input"]); const $result = resource_mult_3PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44039,9 +36749,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44049,7 +36768,7 @@ export const plans = { }, mult4: { plan($root, args, _info) { - const selectArgs = makeArgs100(args, ["input"]); + const selectArgs = makeArgs_mult_4(args, ["input"]); const $result = resource_mult_4PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44059,9 +36778,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44069,7 +36797,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs101(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44079,9 +36807,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44089,7 +36826,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs102(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44099,9 +36836,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44109,7 +36855,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs103(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44119,9 +36865,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44129,7 +36884,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs104(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44139,9 +36894,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44149,7 +36913,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs105(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44159,9 +36923,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44169,7 +36942,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs106(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44179,9 +36952,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44189,7 +36971,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs107(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44199,9 +36981,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44209,7 +37000,7 @@ export const plans = { }, guidFn: { plan($root, args, _info) { - const selectArgs = makeArgs108(args, ["input"]); + const selectArgs = makeArgs_guid_fn(args, ["input"]); const $result = resource_guid_fnPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44219,9 +37010,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44229,7 +37029,7 @@ export const plans = { }, mutationIntervalArray: { plan($root, args, _info) { - const selectArgs = makeArgs109(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_array(args, ["input"]); const $result = resource_mutation_interval_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44239,9 +37039,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44249,7 +37058,7 @@ export const plans = { }, mutationTextArray: { plan($root, args, _info) { - const selectArgs = makeArgs110(args, ["input"]); + const selectArgs = makeArgs_mutation_text_array(args, ["input"]); const $result = resource_mutation_text_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44259,9 +37068,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44269,7 +37087,7 @@ export const plans = { }, listBdeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs111(args, ["input"]); + const selectArgs = makeArgs_list_bde_mutation(args, ["input"]); const $result = resource_list_bde_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44279,9 +37097,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44289,7 +37116,7 @@ export const plans = { }, authenticateFail: { plan($root, args, _info) { - const selectArgs = makeArgs112(args, ["input"]); + const selectArgs = makeArgs_authenticate_fail(args, ["input"]); const $result = resource_authenticate_failPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44299,9 +37126,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44309,7 +37145,7 @@ export const plans = { }, authenticate: { plan($root, args, _info) { - const selectArgs = makeArgs113(args, ["input"]); + const selectArgs = makeArgs_authenticate(args, ["input"]); const $result = resource_authenticatePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44319,9 +37155,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44329,7 +37174,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs114(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44339,9 +37184,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44349,7 +37203,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs115(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44359,9 +37213,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44369,7 +37232,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs116(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44379,9 +37242,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44389,7 +37261,7 @@ export const plans = { }, authenticateMany: { plan($root, args, _info) { - const selectArgs = makeArgs117(args, ["input"]); + const selectArgs = makeArgs_authenticate_many(args, ["input"]); const $result = resource_authenticate_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44399,9 +37271,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44409,7 +37290,7 @@ export const plans = { }, authenticatePayload: { plan($root, args, _info) { - const selectArgs = makeArgs118(args, ["input"]); + const selectArgs = makeArgs_authenticate_payload(args, ["input"]); const $result = resource_authenticate_payloadPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44419,9 +37300,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44429,7 +37319,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs119(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44439,9 +37329,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44449,7 +37348,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs120(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44459,9 +37358,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44469,7 +37377,7 @@ export const plans = { }, compoundTypeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs121(args, ["input"]); + const selectArgs = makeArgs_compound_type_mutation(args, ["input"]); const $result = resource_compound_type_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44479,9 +37387,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44489,7 +37406,7 @@ export const plans = { }, compoundTypeSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs122(args, ["input"]); + const selectArgs = makeArgs_compound_type_set_mutation(args, ["input"]); const $result = resource_compound_type_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44499,9 +37416,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44509,7 +37435,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs123(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44519,9 +37445,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44529,7 +37464,7 @@ export const plans = { }, postWithSuffix: { plan($root, args, _info) { - const selectArgs = makeArgs124(args, ["input"]); + const selectArgs = makeArgs_post_with_suffix(args, ["input"]); const $result = resource_post_with_suffixPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44539,9 +37474,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44549,7 +37493,7 @@ export const plans = { }, mutationCompoundTypeArray: { plan($root, args, _info) { - const selectArgs = makeArgs125(args, ["input"]); + const selectArgs = makeArgs_mutation_compound_type_array(args, ["input"]); const $result = resource_mutation_compound_type_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44559,9 +37503,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44569,7 +37522,7 @@ export const plans = { }, compoundTypeArrayMutation: { plan($root, args, _info) { - const selectArgs = makeArgs126(args, ["input"]); + const selectArgs = makeArgs_compound_type_array_mutation(args, ["input"]); const $result = resource_compound_type_array_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44579,9 +37532,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44589,7 +37551,7 @@ export const plans = { }, postMany: { plan($root, args, _info) { - const selectArgs = makeArgs127(args, ["input"]); + const selectArgs = makeArgs_post_many(args, ["input"]); const $result = resource_post_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44599,9 +37561,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44609,7 +37580,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs128(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44619,9 +37590,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44629,7 +37609,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs129(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44639,9 +37619,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44649,7 +37638,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs130(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44659,9 +37648,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44669,7 +37667,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs131(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44679,9 +37677,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44689,7 +37696,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs132(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44699,9 +37706,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44709,7 +37725,7 @@ export const plans = { }, typeFunctionConnectionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs133(args, ["input"]); + const selectArgs = makeArgs_type_function_connection_mutation(args, ["input"]); const $result = resource_type_function_connection_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44719,9 +37735,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44729,7 +37754,7 @@ export const plans = { }, typeFunctionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs134(args, ["input"]); + const selectArgs = makeArgs_type_function_mutation(args, ["input"]); const $result = resource_type_function_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44739,9 +37764,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44749,7 +37783,7 @@ export const plans = { }, typeFunctionListMutation: { plan($root, args, _info) { - const selectArgs = makeArgs135(args, ["input"]); + const selectArgs = makeArgs_type_function_list_mutation(args, ["input"]); const $result = resource_type_function_list_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44759,9 +37793,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44769,17 +37812,17 @@ export const plans = { }, createInput: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_inputsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_inputsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44789,17 +37832,17 @@ export const plans = { }, createPatch: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_patchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_patchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44809,17 +37852,17 @@ export const plans = { }, createReserved: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44829,17 +37872,17 @@ export const plans = { }, createReservedPatchRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44849,17 +37892,17 @@ export const plans = { }, createReservedInputRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44869,17 +37912,17 @@ export const plans = { }, createDefaultValue: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44889,17 +37932,17 @@ export const plans = { }, createForeignKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44909,17 +37952,17 @@ export const plans = { }, createNoPrimaryKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44929,17 +37972,17 @@ export const plans = { }, createTestview: { plan(_, args) { + const $insert = pgInsertSingle(resource_testviewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_testviewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44949,17 +37992,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44969,17 +38012,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44989,17 +38032,17 @@ export const plans = { }, createViewTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45009,17 +38052,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45029,17 +38072,17 @@ export const plans = { }, createSimilarTable1: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45049,17 +38092,17 @@ export const plans = { }, createSimilarTable2: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45069,17 +38112,17 @@ export const plans = { }, createUpdatableView: { plan(_, args) { + const $insert = pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45089,17 +38132,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45109,17 +38152,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45129,17 +38172,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45149,17 +38192,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45169,17 +38212,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45189,17 +38232,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45209,17 +38252,17 @@ export const plans = { }, createList: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_listsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_listsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45229,17 +38272,17 @@ export const plans = { }, createType: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45249,11 +38292,11 @@ export const plans = { }, updateInput: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45268,13 +38311,13 @@ export const plans = { }, updateInputById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45289,11 +38332,11 @@ export const plans = { }, updatePatch: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45308,13 +38351,13 @@ export const plans = { }, updatePatchById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45329,11 +38372,11 @@ export const plans = { }, updateReserved: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45348,13 +38391,13 @@ export const plans = { }, updateReservedById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45369,11 +38412,11 @@ export const plans = { }, updateReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45388,13 +38431,13 @@ export const plans = { }, updateReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45409,11 +38452,11 @@ export const plans = { }, updateReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45428,13 +38471,13 @@ export const plans = { }, updateReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45449,11 +38492,11 @@ export const plans = { }, updateDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45468,13 +38511,13 @@ export const plans = { }, updateDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45489,13 +38532,13 @@ export const plans = { }, updateNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45510,11 +38553,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45529,13 +38572,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45550,11 +38593,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45569,13 +38612,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45590,11 +38633,11 @@ export const plans = { }, updateViewTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45609,13 +38652,13 @@ export const plans = { }, updateViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45630,11 +38673,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45649,14 +38692,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45671,11 +38714,11 @@ export const plans = { }, updateSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45690,13 +38733,13 @@ export const plans = { }, updateSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45711,11 +38754,11 @@ export const plans = { }, updateSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45730,13 +38773,13 @@ export const plans = { }, updateSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45751,11 +38794,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45770,13 +38813,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45791,11 +38834,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45810,13 +38853,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45831,13 +38874,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45852,11 +38895,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45871,13 +38914,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45892,11 +38935,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45911,13 +38954,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45932,11 +38975,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45951,13 +38994,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45972,13 +39015,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45993,11 +39036,11 @@ export const plans = { }, updateList: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)) + const $update = pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46012,13 +39055,13 @@ export const plans = { }, updateListById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46033,11 +39076,11 @@ export const plans = { }, updateType: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)) + const $update = pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46052,13 +39095,13 @@ export const plans = { }, updateTypeById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46073,11 +39116,11 @@ export const plans = { }, deleteInput: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46092,13 +39135,13 @@ export const plans = { }, deleteInputById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46113,11 +39156,11 @@ export const plans = { }, deletePatch: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46132,13 +39175,13 @@ export const plans = { }, deletePatchById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46153,11 +39196,11 @@ export const plans = { }, deleteReserved: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46172,13 +39215,13 @@ export const plans = { }, deleteReservedById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46193,11 +39236,11 @@ export const plans = { }, deleteReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46212,13 +39255,13 @@ export const plans = { }, deleteReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46233,11 +39276,11 @@ export const plans = { }, deleteReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46252,13 +39295,13 @@ export const plans = { }, deleteReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46273,11 +39316,11 @@ export const plans = { }, deleteDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46292,13 +39335,13 @@ export const plans = { }, deleteDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46313,13 +39356,13 @@ export const plans = { }, deleteNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46334,11 +39377,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46353,13 +39396,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46374,11 +39417,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46393,13 +39436,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46414,11 +39457,11 @@ export const plans = { }, deleteViewTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46433,13 +39476,13 @@ export const plans = { }, deleteViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46454,11 +39497,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46473,14 +39516,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46495,11 +39538,11 @@ export const plans = { }, deleteSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46514,13 +39557,13 @@ export const plans = { }, deleteSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46535,11 +39578,11 @@ export const plans = { }, deleteSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46554,13 +39597,13 @@ export const plans = { }, deleteSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46575,11 +39618,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46594,13 +39637,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46615,11 +39658,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46634,13 +39677,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46655,13 +39698,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46676,11 +39719,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46695,13 +39738,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46716,11 +39759,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46735,13 +39778,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46756,11 +39799,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46775,13 +39818,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46796,13 +39839,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46817,11 +39860,11 @@ export const plans = { }, deleteList: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)) + const $delete = pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46836,13 +39879,13 @@ export const plans = { }, deleteListById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46857,11 +39900,11 @@ export const plans = { }, deleteType: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)) + const $delete = pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46876,13 +39919,13 @@ export const plans = { }, deleteTypeById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46899,7 +39942,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -46910,16 +39954,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -46930,16 +39974,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46950,16 +39994,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46970,16 +40014,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ReturnVoidMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, query() { return rootValue(); @@ -46987,16 +40031,16 @@ export const plans = { }, ReturnVoidMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationIntervalSetPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47007,16 +40051,16 @@ export const plans = { }, MutationIntervalSetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -47027,17 +40071,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -47048,17 +40092,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47069,17 +40113,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47090,17 +40134,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47111,17 +40155,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47132,17 +40176,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, Add1MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47153,10 +40197,9 @@ export const plans = { }, Add1MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47164,7 +40207,8 @@ export const plans = { Add2MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47175,10 +40219,9 @@ export const plans = { }, Add2MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -47186,7 +40229,8 @@ export const plans = { Add3MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47197,10 +40241,9 @@ export const plans = { }, Add3MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, arg1: undefined @@ -47208,7 +40251,8 @@ export const plans = { Add4MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47219,10 +40263,9 @@ export const plans = { }, Add4MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47230,7 +40273,8 @@ export const plans = { Add4MutationErrorPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47241,10 +40285,9 @@ export const plans = { }, Add4MutationErrorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47252,7 +40295,8 @@ export const plans = { Mult1Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47263,10 +40307,9 @@ export const plans = { }, Mult1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47274,7 +40317,8 @@ export const plans = { Mult2Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47285,10 +40329,9 @@ export const plans = { }, Mult2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47296,7 +40339,8 @@ export const plans = { Mult3Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47307,10 +40351,9 @@ export const plans = { }, Mult3Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47318,7 +40361,8 @@ export const plans = { Mult4Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47329,10 +40373,9 @@ export const plans = { }, Mult4Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47340,7 +40383,8 @@ export const plans = { MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -47351,10 +40395,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -47362,7 +40405,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47382,16 +40426,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47411,16 +40455,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47440,16 +40484,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -47460,10 +40504,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -47472,7 +40515,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47495,16 +40539,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47524,17 +40568,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, GuidFnPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, guid($object) { return $object.get("result"); @@ -47550,17 +40594,17 @@ export const plans = { }, GuidFnInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, g: undefined }, MutationIntervalArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47571,16 +40615,16 @@ export const plans = { }, MutationIntervalArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationTextArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, strings($object) { return $object.get("result"); @@ -47591,16 +40635,16 @@ export const plans = { }, MutationTextArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ListBdeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, uuids($object) { return $object.get("result"); @@ -47611,10 +40655,9 @@ export const plans = { }, ListBdeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, b: undefined, d: undefined, @@ -47623,7 +40666,8 @@ export const plans = { AuthenticateFailPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47652,16 +40696,16 @@ export const plans = { }, AuthenticateFailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticatePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47672,10 +40716,9 @@ export const plans = { }, AuthenticateInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47684,7 +40727,8 @@ export const plans = { LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -47692,7 +40736,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47708,9 +40752,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47726,50 +40768,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -47777,7 +40821,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47793,9 +40837,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47806,16 +40848,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -47826,16 +40868,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticateManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtTokens($object) { return $object.get("result"); @@ -47846,10 +40888,9 @@ export const plans = { }, AuthenticateManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47858,7 +40899,8 @@ export const plans = { AuthenticatePayloadPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, authPayload($object) { return $object.get("result"); @@ -47897,10 +40939,9 @@ export const plans = { }, AuthenticatePayloadInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47909,7 +40950,8 @@ export const plans = { TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -47920,10 +40962,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47935,7 +40976,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47961,17 +41003,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, CompoundTypeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundType($object) { return $object.get("result"); @@ -47982,17 +41024,17 @@ export const plans = { }, CompoundTypeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48003,17 +41045,17 @@ export const plans = { }, CompoundTypeSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48021,7 +41063,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48037,9 +41079,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48055,17 +41095,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, PostWithSuffixPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48073,7 +41113,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48089,9 +41129,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48107,65 +41145,69 @@ export const plans = { }, PostWithSuffixInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: undefined, suffix: undefined }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, MutationCompoundTypeArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48176,17 +41218,17 @@ export const plans = { }, MutationCompoundTypeArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeArrayMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48197,17 +41239,17 @@ export const plans = { }, CompoundTypeArrayMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, PostManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, posts($object) { return $object.get("result"); @@ -48218,17 +41260,17 @@ export const plans = { }, PostManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, posts: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -48263,10 +41305,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48274,7 +41315,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -48309,10 +41351,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48320,7 +41361,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -48328,7 +41370,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48344,9 +41386,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48357,16 +41397,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48377,16 +41417,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48397,16 +41437,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionConnectionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48417,16 +41457,16 @@ export const plans = { }, TypeFunctionConnectionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -48434,7 +41474,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48450,9 +41490,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48473,17 +41511,17 @@ export const plans = { }, TypeFunctionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, TypeFunctionListMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48494,16 +41532,16 @@ export const plans = { }, TypeFunctionListMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateInputPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -48511,7 +41549,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48527,9 +41565,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48540,35 +41576,34 @@ export const plans = { }, CreateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, input: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, InputInput: { - "__inputPlan": function InputInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePatchPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -48576,7 +41611,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48592,9 +41627,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48605,35 +41638,34 @@ export const plans = { }, CreatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PatchInput: { - "__inputPlan": function PatchInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -48641,7 +41673,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48657,9 +41689,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48670,35 +41700,34 @@ export const plans = { }, CreateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reserved: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInput: { - "__inputPlan": function ReservedInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPatchRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -48706,7 +41735,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48722,9 +41751,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48735,35 +41762,34 @@ export const plans = { }, CreateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedPatchRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedPatchRecordInput: { - "__inputPlan": function ReservedPatchRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedInputRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -48771,7 +41797,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48787,9 +41813,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48800,35 +41824,34 @@ export const plans = { }, CreateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedInputRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInputRecordInput: { - "__inputPlan": function ReservedInputRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateDefaultValuePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -48836,7 +41859,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48852,9 +41875,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48865,42 +41886,42 @@ export const plans = { }, CreateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, defaultValue: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, DefaultValueInput: { - "__inputPlan": function DefaultValueInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, CreateForeignKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, foreignKey($object) { return $object.get("result"); @@ -48922,49 +41943,50 @@ export const plans = { }, CreateForeignKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, foreignKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ForeignKeyInput: { - "__inputPlan": function ForeignKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey1: { - applyPlan($insert, val) { - $insert.set("compound_key_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_1", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey2: { - applyPlan($insert, val) { - $insert.set("compound_key_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNoPrimaryKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -48975,42 +41997,42 @@ export const plans = { }, CreateNoPrimaryKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, noPrimaryKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NoPrimaryKeyInput: { - "__inputPlan": function NoPrimaryKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTestviewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, testview($object) { return $object.get("result"); @@ -49021,49 +42043,50 @@ export const plans = { }, CreateTestviewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, testview: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TestviewInput: { - "__inputPlan": function TestviewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, testviewid: { - applyPlan($insert, val) { - $insert.set("testviewid", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("testviewid", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -49071,7 +42094,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49087,9 +42110,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49100,42 +42121,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -49143,7 +42164,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49159,9 +42180,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49177,42 +42196,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateViewTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -49220,7 +42239,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49236,9 +42255,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49249,49 +42266,50 @@ export const plans = { }, CreateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, viewTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ViewTableInput: { - "__inputPlan": function ViewTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -49299,7 +42317,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49315,9 +42333,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49338,49 +42354,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable1Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -49388,7 +42405,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49404,9 +42421,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49417,56 +42432,58 @@ export const plans = { }, CreateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable1: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable1Input: { - "__inputPlan": function SimilarTable1Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable2Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -49474,7 +42491,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49490,9 +42507,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49503,56 +42518,58 @@ export const plans = { }, CreateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable2: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable2Input: { - "__inputPlan": function SimilarTable2Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, CreateUpdatableViewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, updatableView($object) { return $object.get("result"); @@ -49563,56 +42580,58 @@ export const plans = { }, CreateUpdatableViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, updatableView: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UpdatableViewInput: { - "__inputPlan": function UpdatableViewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, x: { - applyPlan($insert, val) { - $insert.set("x", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("x", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } }, constant: { - applyPlan($insert, val) { - $insert.set("constant", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constant", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -49620,7 +42639,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49636,9 +42655,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49649,56 +42666,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -49709,49 +42728,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -49759,7 +42779,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49775,9 +42795,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49793,56 +42811,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -49850,7 +42870,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49866,9 +42886,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49879,42 +42897,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -49922,7 +42940,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49938,9 +42956,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49956,23 +42972,23 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -49980,7 +42996,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49996,9 +43012,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50009,105 +43023,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, CreateListPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -50115,7 +43138,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50131,9 +43154,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50144,119 +43165,130 @@ export const plans = { }, CreateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, list: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ListInput: { - "__inputPlan": function ListInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -50264,7 +43296,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50280,9 +43312,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50303,371 +43333,418 @@ export const plans = { }, CreateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, type: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TypeInput: { - "__inputPlan": function TypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -50675,7 +43752,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50691,9 +43768,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50704,48 +43779,50 @@ export const plans = { }, UpdateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, InputPatch: { - "__inputPlan": function InputPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -50753,7 +43830,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50769,9 +43846,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50782,48 +43857,50 @@ export const plans = { }, UpdatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PatchPatch: { - "__inputPlan": function PatchPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -50831,7 +43908,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50847,9 +43924,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50860,48 +43935,50 @@ export const plans = { }, UpdateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatch: { - "__inputPlan": function ReservedPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -50909,7 +43986,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50925,9 +44002,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50938,48 +44013,50 @@ export const plans = { }, UpdateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatchRecordPatch: { - "__inputPlan": function ReservedPatchRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -50987,7 +44064,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51003,9 +44080,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51016,48 +44091,50 @@ export const plans = { }, UpdateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedInputRecordPatch: { - "__inputPlan": function ReservedInputRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -51065,7 +44142,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51081,9 +44158,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51094,55 +44169,58 @@ export const plans = { }, UpdateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DefaultValuePatch: { - "__inputPlan": function DefaultValuePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -51153,41 +44231,43 @@ export const plans = { }, UpdateNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, noPrimaryKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NoPrimaryKeyPatch: { - "__inputPlan": function NoPrimaryKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -51195,7 +44275,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51211,9 +44291,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51224,55 +44302,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -51280,7 +44361,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51296,9 +44377,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51314,55 +44393,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -51370,7 +44452,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51386,9 +44468,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51399,62 +44479,66 @@ export const plans = { }, UpdateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ViewTablePatch: { - "__inputPlan": function ViewTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -51462,7 +44546,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51478,9 +44562,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51501,63 +44583,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -51565,7 +44651,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51581,9 +44667,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51594,69 +44678,74 @@ export const plans = { }, UpdateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable1Patch: { - "__inputPlan": function SimilarTable1Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -51664,7 +44753,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51680,9 +44769,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51693,69 +44780,74 @@ export const plans = { }, UpdateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable2Patch: { - "__inputPlan": function SimilarTable2Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -51763,7 +44855,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51779,9 +44871,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51792,69 +44882,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -51862,7 +44957,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51878,9 +44973,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51896,83 +44989,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -51980,7 +45079,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51996,9 +45095,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52009,55 +45106,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -52065,7 +45165,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52081,9 +45181,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52099,83 +45197,90 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -52183,7 +45288,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52199,9 +45304,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52212,132 +45315,145 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -52345,7 +45461,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52361,9 +45477,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52374,132 +45488,146 @@ export const plans = { }, UpdateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ListPatch: { - "__inputPlan": function ListPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -52507,7 +45635,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52523,9 +45651,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52546,384 +45672,434 @@ export const plans = { }, UpdateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TypePatch: { - "__inputPlan": function TypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -52936,7 +46112,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52952,9 +46128,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52965,16 +46139,16 @@ export const plans = { }, DeleteInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -52982,7 +46156,8 @@ export const plans = { DeletePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -52995,7 +46170,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53011,9 +46186,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53024,16 +46197,16 @@ export const plans = { }, DeletePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53041,7 +46214,8 @@ export const plans = { DeleteReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -53054,7 +46228,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53070,9 +46244,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53083,16 +46255,16 @@ export const plans = { }, DeleteReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53100,7 +46272,8 @@ export const plans = { DeleteReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -53113,7 +46286,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53129,9 +46302,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53142,16 +46313,16 @@ export const plans = { }, DeleteReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53159,7 +46330,8 @@ export const plans = { DeleteReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -53172,7 +46344,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53188,9 +46360,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53201,16 +46371,16 @@ export const plans = { }, DeleteReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53218,7 +46388,8 @@ export const plans = { DeleteDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -53231,7 +46402,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53247,9 +46418,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53260,16 +46429,16 @@ export const plans = { }, DeleteDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53277,7 +46446,8 @@ export const plans = { DeleteNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -53288,8 +46458,8 @@ export const plans = { }, DeleteNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53297,7 +46467,8 @@ export const plans = { DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -53310,7 +46481,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53326,9 +46497,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53339,16 +46508,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53356,7 +46525,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -53369,7 +46539,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53385,9 +46555,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53403,16 +46571,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53420,7 +46588,8 @@ export const plans = { DeleteViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -53433,7 +46602,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53449,9 +46618,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53462,16 +46629,16 @@ export const plans = { }, DeleteViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53479,7 +46646,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -53492,7 +46660,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53508,9 +46676,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53531,16 +46697,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -53549,7 +46715,8 @@ export const plans = { DeleteSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -53562,7 +46729,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53578,9 +46745,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53591,16 +46756,16 @@ export const plans = { }, DeleteSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53608,7 +46773,8 @@ export const plans = { DeleteSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -53621,7 +46787,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53637,9 +46803,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53650,16 +46814,16 @@ export const plans = { }, DeleteSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53667,7 +46831,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -53680,7 +46845,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53696,9 +46861,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53709,16 +46872,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53726,7 +46889,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -53739,7 +46903,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53755,9 +46919,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53773,24 +46935,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53798,7 +46960,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -53811,7 +46974,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53827,9 +46990,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53840,16 +47001,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53857,7 +47018,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -53870,7 +47032,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53886,9 +47048,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53904,16 +47064,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53921,7 +47081,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -53934,7 +47095,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53950,9 +47111,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53963,24 +47122,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined @@ -53988,7 +47147,8 @@ export const plans = { DeleteListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -54001,7 +47161,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54017,9 +47177,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54030,16 +47188,16 @@ export const plans = { }, DeleteListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -54047,7 +47205,8 @@ export const plans = { DeleteTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -54060,7 +47219,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54076,9 +47235,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54099,16 +47256,16 @@ export const plans = { }, DeleteTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.inheritence.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.inheritence.1.export.mjs index 9c18fe2c0d..3d81010bf5 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.inheritence.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.inheritence.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -77,7 +79,7 @@ const executor = new PgExecutor({ } }); const fileIdentifier = sql.identifier("inheritence", "file"); -const spec_file = { +const fileCodec = recordCodec({ name: "file", identifier: fileIdentifier, attributes: { @@ -114,10 +116,9 @@ const spec_file = { } }, executor: executor -}; -const fileCodec = recordCodec(spec_file); +}); const userIdentifier = sql.identifier("inheritence", "user"); -const spec_user = { +const userCodec = recordCodec({ name: "user", identifier: userIdentifier, attributes: { @@ -154,10 +155,9 @@ const spec_user = { } }, executor: executor -}; -const userCodec = recordCodec(spec_user); +}); const userFileIdentifier = sql.identifier("inheritence", "user_file"); -const spec_userFile = { +const userFileCodec = recordCodec({ name: "userFile", identifier: userFileIdentifier, attributes: { @@ -203,8 +203,7 @@ const spec_userFile = { } }, executor: executor -}; -const userFileCodec = recordCodec(spec_userFile); +}); const fileUniques = [{ isPrimary: true, attributes: ["id"], @@ -377,6 +376,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filePgResource.get(spec); }, @@ -396,6 +398,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_userPgResource.get(spec); }, @@ -415,6 +420,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_user_filePgResource.get(spec); }, @@ -427,6 +435,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -465,51 +474,34 @@ const fetcher3 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.UserFile); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.File, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.User, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.UserFile, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.File, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.User, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.UserFile, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -1488,33 +1480,33 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, fileById(_$root, args) { return pgResource_filePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, userById(_$root, args) { return pgResource_userPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, userFileById(_$root, args) { return pgResource_user_filePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, file(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, user(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, userFile(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, allFiles: { @@ -1525,7 +1517,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1534,7 +1525,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1543,7 +1533,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1552,7 +1541,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1561,7 +1549,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1570,22 +1557,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -1599,7 +1582,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1608,7 +1590,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1617,7 +1598,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1626,7 +1606,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1635,7 +1614,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1644,22 +1622,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UsersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -1673,7 +1647,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1682,7 +1655,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1691,7 +1663,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1700,7 +1671,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1709,7 +1679,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1718,22 +1687,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UserFilesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -1776,7 +1741,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1785,7 +1749,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1794,7 +1757,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1803,7 +1765,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1812,7 +1773,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1821,22 +1781,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UserFilesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -1915,31 +1871,21 @@ export const plans = { } }, UserFilesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { user_fileUniques[0].attributes.forEach(attributeName => { - const attribute = userFileCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1948,19 +1894,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { user_fileUniques[0].attributes.forEach(attributeName => { - const attribute = userFileCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1969,11 +1913,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -1981,7 +1922,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1991,11 +1932,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -2003,7 +1941,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2013,11 +1951,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "filename", direction: "ASC", ...(undefined != null ? { @@ -2025,7 +1960,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2035,11 +1970,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "filename", direction: "DESC", ...(undefined != null ? { @@ -2047,7 +1979,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2057,11 +1989,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_id", direction: "ASC", ...(undefined != null ? { @@ -2069,7 +1998,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2079,11 +2008,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_id", direction: "DESC", ...(undefined != null ? { @@ -2091,7 +2017,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2100,8 +2026,8 @@ export const plans = { }, UserFileCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -2114,17 +2040,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_userFile.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, filename: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "filename", @@ -2137,17 +2061,15 @@ export const plans = { type: "attribute", attribute: "filename", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_userFile.attributes.filename.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_id", @@ -2160,13 +2082,11 @@ export const plans = { type: "attribute", attribute: "user_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_userFile.attributes.user_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilesConnection: { @@ -2195,31 +2115,21 @@ export const plans = { } }, FilesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { fileUniques[0].attributes.forEach(attributeName => { - const attribute = fileCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2228,19 +2138,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { fileUniques[0].attributes.forEach(attributeName => { - const attribute = fileCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2249,11 +2157,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -2261,7 +2166,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2271,11 +2176,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -2283,7 +2185,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2293,11 +2195,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "filename", direction: "ASC", ...(undefined != null ? { @@ -2305,7 +2204,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2315,11 +2214,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "filename", direction: "DESC", ...(undefined != null ? { @@ -2327,7 +2223,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2336,8 +2232,8 @@ export const plans = { }, FileCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -2350,17 +2246,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_file.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, filename: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "filename", @@ -2373,13 +2267,11 @@ export const plans = { type: "attribute", attribute: "filename", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_file.attributes.filename.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UsersConnection: { @@ -2408,31 +2300,21 @@ export const plans = { } }, UsersOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { userUniques[0].attributes.forEach(attributeName => { - const attribute = userCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2441,19 +2323,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { userUniques[0].attributes.forEach(attributeName => { - const attribute = userCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2462,11 +2342,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -2474,7 +2351,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2484,11 +2361,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -2496,7 +2370,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2506,11 +2380,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -2518,7 +2389,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2528,11 +2399,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -2540,7 +2408,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2549,8 +2417,8 @@ export const plans = { }, UserCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -2563,17 +2431,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_user.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -2586,30 +2452,28 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_user.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createFile: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_filePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_filePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -2619,17 +2483,17 @@ export const plans = { }, createUser: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_userPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_userPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -2639,17 +2503,17 @@ export const plans = { }, createUserFile: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_user_filePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_user_filePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -2659,11 +2523,11 @@ export const plans = { }, updateFile: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filePgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_filePgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2678,13 +2542,13 @@ export const plans = { }, updateFileById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_filePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2699,11 +2563,11 @@ export const plans = { }, updateUser: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_userPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_userPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2718,13 +2582,13 @@ export const plans = { }, updateUserById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_userPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_userPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2739,11 +2603,11 @@ export const plans = { }, updateUserFile: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_user_filePgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_user_filePgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2758,13 +2622,13 @@ export const plans = { }, updateUserFileById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_user_filePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_user_filePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2779,11 +2643,11 @@ export const plans = { }, deleteFile: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filePgResource, specFromArgs4(args)) + const $delete = pgDeleteSingle(pgResource_filePgResource, specFromArgs4(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2798,13 +2662,13 @@ export const plans = { }, deleteFileById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_filePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2819,11 +2683,11 @@ export const plans = { }, deleteUser: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_userPgResource, specFromArgs5(args)) + const $delete = pgDeleteSingle(pgResource_userPgResource, specFromArgs5(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2838,13 +2702,13 @@ export const plans = { }, deleteUserById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_userPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_userPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2859,11 +2723,11 @@ export const plans = { }, deleteUserFile: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_user_filePgResource, specFromArgs6(args)) + const $delete = pgDeleteSingle(pgResource_user_filePgResource, specFromArgs6(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2878,13 +2742,13 @@ export const plans = { }, deleteUserFileById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_user_filePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_user_filePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2901,7 +2765,8 @@ export const plans = { CreateFilePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, file($object) { return $object.get("result"); @@ -2909,7 +2774,7 @@ export const plans = { query() { return rootValue(); }, - fileEdge($mutation, args, info) { + fileEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2925,9 +2790,7 @@ export const plans = { return pgResource_filePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2938,42 +2801,42 @@ export const plans = { }, CreateFileInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, file: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FileInput: { - "__inputPlan": function FileInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, filename: { - applyPlan($insert, val) { - $insert.set("filename", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("filename", bakedInputRuntime(schema, field.type, val)); + } } }, CreateUserPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, user($object) { return $object.get("result"); @@ -2981,7 +2844,7 @@ export const plans = { query() { return rootValue(); }, - userEdge($mutation, args, info) { + userEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2997,9 +2860,7 @@ export const plans = { return pgResource_userPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("UsersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -3010,42 +2871,42 @@ export const plans = { }, CreateUserInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, user: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UserInput: { - "__inputPlan": function UserInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreateUserFilePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, userFile($object) { return $object.get("result"); @@ -3053,7 +2914,7 @@ export const plans = { query() { return rootValue(); }, - userFileEdge($mutation, args, info) { + userFileEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -3069,9 +2930,7 @@ export const plans = { return pgResource_user_filePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("UserFilesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -3087,49 +2946,50 @@ export const plans = { }, CreateUserFileInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, userFile: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UserFileInput: { - "__inputPlan": function UserFileInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, filename: { - applyPlan($insert, val) { - $insert.set("filename", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("filename", bakedInputRuntime(schema, field.type, val)); + } }, userId: { - applyPlan($insert, val) { - $insert.set("user_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, file($object) { return $object.get("result"); @@ -3137,7 +2997,7 @@ export const plans = { query() { return rootValue(); }, - fileEdge($mutation, args, info) { + fileEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -3153,9 +3013,7 @@ export const plans = { return pgResource_filePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -3166,55 +3024,58 @@ export const plans = { }, UpdateFileInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, filePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FilePatch: { - "__inputPlan": function FilePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, filename: { - applyPlan($insert, val) { - $insert.set("filename", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("filename", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFileByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, filePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateUserPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, user($object) { return $object.get("result"); @@ -3222,7 +3083,7 @@ export const plans = { query() { return rootValue(); }, - userEdge($mutation, args, info) { + userEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -3238,9 +3099,7 @@ export const plans = { return pgResource_userPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("UsersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -3251,55 +3110,58 @@ export const plans = { }, UpdateUserInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, userPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UserPatch: { - "__inputPlan": function UserPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateUserByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, userPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateUserFilePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, userFile($object) { return $object.get("result"); @@ -3307,7 +3169,7 @@ export const plans = { query() { return rootValue(); }, - userFileEdge($mutation, args, info) { + userFileEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -3323,9 +3185,7 @@ export const plans = { return pgResource_user_filePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("UserFilesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -3341,62 +3201,66 @@ export const plans = { }, UpdateUserFileInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, userFilePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UserFilePatch: { - "__inputPlan": function UserFilePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, filename: { - applyPlan($insert, val) { - $insert.set("filename", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("filename", bakedInputRuntime(schema, field.type, val)); + } }, userId: { - applyPlan($insert, val) { - $insert.set("user_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateUserFileByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, userFilePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteFilePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, file($object) { return $object.get("result"); @@ -3409,7 +3273,7 @@ export const plans = { query() { return rootValue(); }, - fileEdge($mutation, args, info) { + fileEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -3425,9 +3289,7 @@ export const plans = { return pgResource_filePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -3438,16 +3300,16 @@ export const plans = { }, DeleteFileInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteFileByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -3455,7 +3317,8 @@ export const plans = { DeleteUserPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, user($object) { return $object.get("result"); @@ -3468,7 +3331,7 @@ export const plans = { query() { return rootValue(); }, - userEdge($mutation, args, info) { + userEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -3484,9 +3347,7 @@ export const plans = { return pgResource_userPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("UsersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -3497,16 +3358,16 @@ export const plans = { }, DeleteUserInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteUserByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -3514,7 +3375,8 @@ export const plans = { DeleteUserFilePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, userFile($object) { return $object.get("result"); @@ -3527,7 +3389,7 @@ export const plans = { query() { return rootValue(); }, - userFileEdge($mutation, args, info) { + userFileEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -3543,9 +3405,7 @@ export const plans = { return pgResource_user_filePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("UserFilesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -3561,16 +3421,16 @@ export const plans = { }, DeleteUserFileInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteUserFileByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.nested_arrays.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.nested_arrays.1.export.mjs index 26b3f298ea..fe0ce40478 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.nested_arrays.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.nested_arrays.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, listOfCodec, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, each, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, domainOfCodec, listOfCodec, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, each, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -205,7 +207,7 @@ const workingHoursCodec = domainOfCodec(workhoursArrayCodec, "workingHours", sql }, notNull: false }); -const spec_t = { +const tCodec = recordCodec({ name: "t", identifier: tIdentifier, attributes: { @@ -242,8 +244,7 @@ const spec_t = { } }, executor: executor -}; -const tCodec = recordCodec(spec_t); +}); const check_work_hoursFunctionIdentifer = sql.identifier("nested_arrays", "check_work_hours"); const tUniques = [{ isPrimary: true, @@ -349,6 +350,9 @@ const nodeIdHandlerByTypeName = { k: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tPgResource.get(spec); }, @@ -357,62 +361,36 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = [{ +const argDetailsSimple_check_work_hours = [{ graphqlArgName: "wh", postgresArgName: "wh", pgCodec: workHourArrayCodec, required: true, fetcher: null }]; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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; -}; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_check_work_hours = (args, path = []) => argDetailsSimple_check_work_hours.map(details => makeArg(path, args, details)); const resource_check_work_hoursPgResource = registry.pgResources["check_work_hours"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -435,36 +413,19 @@ const fetcher = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.T); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} const resource_frmcdc_workHourPgResource = registry.pgResources["frmcdc_workHour"]; function CursorSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.T, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.T, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -827,19 +788,19 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, tByK(_$root, args) { return pgResource_tPgResource.get({ - k: args.get("k") + k: args.getRaw("k") }); }, checkWorkHours($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_check_work_hours(args); return resource_check_work_hoursPgResource.execute(selectArgs); }, t(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, allTs: { @@ -850,7 +811,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -859,7 +819,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -868,7 +827,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -877,7 +835,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -886,7 +843,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -895,22 +851,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -951,36 +903,38 @@ export const plans = { } }, WorkHourInput: { - "__inputPlan": function WorkHourInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, fromHours: { - applyPlan($insert, val) { - $insert.set("from_hours", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("from_hours", bakedInputRuntime(schema, field.type, val)); + } }, fromMinutes: { - applyPlan($insert, val) { - $insert.set("from_minutes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("from_minutes", bakedInputRuntime(schema, field.type, val)); + } }, toHours: { - applyPlan($insert, val) { - $insert.set("to_hours", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("to_hours", bakedInputRuntime(schema, field.type, val)); + } }, toMinutes: { - applyPlan($insert, val) { - $insert.set("to_minutes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("to_minutes", bakedInputRuntime(schema, field.type, val)); + } } }, TSConnection: { @@ -1034,31 +988,21 @@ export const plans = { } }, TsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tUniques[0].attributes.forEach(attributeName => { - const attribute = tCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1067,19 +1011,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tUniques[0].attributes.forEach(attributeName => { - const attribute = tCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1088,11 +1030,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "k", direction: "ASC", ...(undefined != null ? { @@ -1100,7 +1039,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1110,11 +1049,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "k", direction: "DESC", ...(undefined != null ? { @@ -1122,7 +1058,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1131,8 +1067,8 @@ export const plans = { }, TCondition: { k: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "k", @@ -1145,17 +1081,15 @@ export const plans = { type: "attribute", attribute: "k", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_t.attributes.k.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, v: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "v", @@ -1168,30 +1102,28 @@ export const plans = { type: "attribute", attribute: "v", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_t.attributes.v.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, workingHoursCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createT: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -1201,11 +1133,11 @@ export const plans = { }, updateT: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_tPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -1220,13 +1152,13 @@ export const plans = { }, updateTByK: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tPgResource, { - k: args.get(['input', "k"]) - }) + const $update = pgUpdateSingle(pgResource_tPgResource, { + k: args.getRaw(['input', "k"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -1241,11 +1173,11 @@ export const plans = { }, deleteT: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tPgResource, specFromArgs2(args)) + const $delete = pgDeleteSingle(pgResource_tPgResource, specFromArgs2(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -1260,13 +1192,13 @@ export const plans = { }, deleteTByK: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tPgResource, { - k: args.get(['input', "k"]) - }) + const $delete = pgDeleteSingle(pgResource_tPgResource, { + k: args.getRaw(['input', "k"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -1283,7 +1215,8 @@ export const plans = { CreateTPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, t($object) { return $object.get("result"); @@ -1291,7 +1224,7 @@ export const plans = { query() { return rootValue(); }, - tEdge($mutation, args, info) { + tEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -1307,9 +1240,7 @@ export const plans = { return pgResource_tPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -1320,42 +1251,42 @@ export const plans = { }, CreateTInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, t: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TInput: { - "__inputPlan": function TInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, k: { - applyPlan($insert, val) { - $insert.set("k", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("k", bakedInputRuntime(schema, field.type, val)); + } }, v: { - applyPlan($insert, val) { - $insert.set("v", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("v", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, t($object) { return $object.get("result"); @@ -1363,7 +1294,7 @@ export const plans = { query() { return rootValue(); }, - tEdge($mutation, args, info) { + tEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -1379,9 +1310,7 @@ export const plans = { return pgResource_tPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -1392,55 +1321,58 @@ export const plans = { }, UpdateTInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TPatch: { - "__inputPlan": function TPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, k: { - applyPlan($insert, val) { - $insert.set("k", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("k", bakedInputRuntime(schema, field.type, val)); + } }, v: { - applyPlan($insert, val) { - $insert.set("v", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("v", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTByKInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, k: undefined, tPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteTPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, t($object) { return $object.get("result"); @@ -1453,7 +1385,7 @@ export const plans = { query() { return rootValue(); }, - tEdge($mutation, args, info) { + tEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -1469,9 +1401,7 @@ export const plans = { return pgResource_tPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -1482,16 +1412,16 @@ export const plans = { }, DeleteTInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTByKInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, k: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.subscriptions.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.subscriptions.1.export.mjs index 6973f3f790..fd9b387a75 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.subscriptions.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/defaultOptions.subscriptions.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -478,7 +480,7 @@ const textArrayCodec = listOfCodec(TYPES.text, { name: "textArray" }); const nonUpdatableViewIdentifier = sql.identifier("a", "non_updatable_view"); -const spec_nonUpdatableView = { +const nonUpdatableViewCodec = recordCodec({ name: "nonUpdatableView", identifier: nonUpdatableViewIdentifier, attributes: { @@ -506,10 +508,9 @@ const spec_nonUpdatableView = { } }, executor: executor -}; -const nonUpdatableViewCodec = recordCodec(spec_nonUpdatableView); +}); const inputsIdentifier = sql.identifier("a", "inputs"); -const spec_inputs = { +const inputsCodec = recordCodec({ name: "inputs", identifier: inputsIdentifier, attributes: { @@ -537,10 +538,9 @@ const spec_inputs = { } }, executor: executor -}; -const inputsCodec = recordCodec(spec_inputs); +}); const patchsIdentifier = sql.identifier("a", "patchs"); -const spec_patchs = { +const patchsCodec = recordCodec({ name: "patchs", identifier: patchsIdentifier, attributes: { @@ -568,10 +568,9 @@ const spec_patchs = { } }, executor: executor -}; -const patchsCodec = recordCodec(spec_patchs); +}); const reservedIdentifier = sql.identifier("a", "reserved"); -const spec_reserved = { +const reservedCodec = recordCodec({ name: "reserved", identifier: reservedIdentifier, attributes: { @@ -599,10 +598,9 @@ const spec_reserved = { } }, executor: executor -}; -const reservedCodec = recordCodec(spec_reserved); +}); const reservedPatchsIdentifier = sql.identifier("a", "reservedPatchs"); -const spec_reservedPatchs = { +const reservedPatchsCodec = recordCodec({ name: "reservedPatchs", identifier: reservedPatchsIdentifier, attributes: { @@ -630,10 +628,9 @@ const spec_reservedPatchs = { } }, executor: executor -}; -const reservedPatchsCodec = recordCodec(spec_reservedPatchs); +}); const reservedInputIdentifier = sql.identifier("a", "reserved_input"); -const spec_reservedInput = { +const reservedInputCodec = recordCodec({ name: "reservedInput", identifier: reservedInputIdentifier, attributes: { @@ -661,10 +658,9 @@ const spec_reservedInput = { } }, executor: executor -}; -const reservedInputCodec = recordCodec(spec_reservedInput); +}); const defaultValueIdentifier = sql.identifier("a", "default_value"); -const spec_defaultValue = { +const defaultValueCodec = recordCodec({ name: "defaultValue", identifier: defaultValueIdentifier, attributes: { @@ -701,10 +697,9 @@ const spec_defaultValue = { } }, executor: executor -}; -const defaultValueCodec = recordCodec(spec_defaultValue); +}); const foreignKeyIdentifier = sql.identifier("a", "foreign_key"); -const spec_foreignKey = { +const foreignKeyCodec = recordCodec({ name: "foreignKey", identifier: foreignKeyIdentifier, attributes: { @@ -750,10 +745,9 @@ const spec_foreignKey = { } }, executor: executor -}; -const foreignKeyCodec = recordCodec(spec_foreignKey); +}); const noPrimaryKeyIdentifier = sql.identifier("a", "no_primary_key"); -const spec_noPrimaryKey = { +const noPrimaryKeyCodec = recordCodec({ name: "noPrimaryKey", identifier: noPrimaryKeyIdentifier, attributes: { @@ -790,10 +784,9 @@ const spec_noPrimaryKey = { } }, executor: executor -}; -const noPrimaryKeyCodec = recordCodec(spec_noPrimaryKey); +}); const testviewIdentifier = sql.identifier("a", "testview"); -const spec_testview = { +const testviewCodec = recordCodec({ name: "testview", identifier: testviewIdentifier, attributes: { @@ -839,8 +832,7 @@ const spec_testview = { } }, executor: executor -}; -const testviewCodec = recordCodec(spec_testview); +}); const uniqueForeignKeyIdentifier = sql.identifier("a", "unique_foreign_key"); const spec_uniqueForeignKey = { name: "uniqueForeignKey", @@ -884,7 +876,7 @@ const spec_uniqueForeignKey = { }; const uniqueForeignKeyCodec = recordCodec(spec_uniqueForeignKey); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -921,10 +913,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -964,8 +955,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -1007,7 +997,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const viewTableIdentifier = sql.identifier("a", "view_table"); -const spec_viewTable = { +const viewTableCodec = recordCodec({ name: "viewTable", identifier: viewTableIdentifier, attributes: { @@ -1053,10 +1043,9 @@ const spec_viewTable = { } }, executor: executor -}; -const viewTableCodec = recordCodec(spec_viewTable); +}); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -1102,10 +1091,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const similarTable1Identifier = sql.identifier("a", "similar_table_1"); -const spec_similarTable1 = { +const similarTable1Codec = recordCodec({ name: "similarTable1", identifier: similarTable1Identifier, attributes: { @@ -1160,10 +1148,9 @@ const spec_similarTable1 = { } }, executor: executor -}; -const similarTable1Codec = recordCodec(spec_similarTable1); +}); const similarTable2Identifier = sql.identifier("a", "similar_table_2"); -const spec_similarTable2 = { +const similarTable2Codec = recordCodec({ name: "similarTable2", identifier: similarTable2Identifier, attributes: { @@ -1218,10 +1205,9 @@ const spec_similarTable2 = { } }, executor: executor -}; -const similarTable2Codec = recordCodec(spec_similarTable2); +}); const updatableViewIdentifier = sql.identifier("b", "updatable_view"); -const spec_updatableView = { +const updatableViewCodec = recordCodec({ name: "updatableView", identifier: updatableViewIdentifier, attributes: { @@ -1278,10 +1264,9 @@ const spec_updatableView = { } }, executor: executor -}; -const updatableViewCodec = recordCodec(spec_updatableView); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -1336,8 +1321,7 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const uuidArrayCodec = listOfCodec(TYPES.uuid, { extensions: { pg: { @@ -1354,7 +1338,7 @@ const uuidArrayCodec = listOfCodec(TYPES.uuid, { name: "uuidArray" }); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -1400,10 +1384,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -1458,8 +1441,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const jwtTokenIdentifier = sql.identifier("b", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -1541,7 +1523,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -1578,8 +1560,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const authPayloadIdentifier = sql.identifier("b", "auth_payload"); const authPayloadCodec = recordCodec({ name: "authPayload", @@ -1917,7 +1898,7 @@ const comptypeArrayCodec = listOfCodec(comptypeCodec, { description: undefined, name: "comptypeArray" }); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -1990,8 +1971,7 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const registryConfig_pgCodecs_QueryOutputTwoRowsRecord_QueryOutputTwoRowsRecord = recordCodec({ name: "QueryOutputTwoRowsRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2151,7 +2131,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -2273,8 +2253,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2592,7 +2571,7 @@ const byteaArrayCodec = listOfCodec(TYPES.bytea, { description: undefined, name: "byteaArray" }); -const spec_lists = { +const listsCodec = recordCodec({ name: "lists", identifier: listsIdentifier, attributes: { @@ -2728,8 +2707,7 @@ const spec_lists = { } }, executor: executor -}; -const listsCodec = recordCodec(spec_lists); +}); const typesIdentifier = sql.identifier("b", "types"); const anIntCodec = domainOfCodec(TYPES.int, "anInt", sql.identifier("a", "an_int"), { description: undefined, @@ -9193,6 +9171,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_inputsPgResource.get(spec); }, @@ -9212,6 +9193,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_patchsPgResource.get(spec); }, @@ -9231,6 +9215,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPgResource.get(spec); }, @@ -9250,6 +9237,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPatchsPgResource.get(spec); }, @@ -9269,6 +9259,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reserved_inputPgResource.get(spec); }, @@ -9288,6 +9281,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_default_valuePgResource.get(spec); }, @@ -9307,6 +9303,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -9326,6 +9325,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -9345,6 +9347,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_view_tablePgResource.get(spec); }, @@ -9365,6 +9370,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -9384,6 +9392,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_1PgResource.get(spec); }, @@ -9403,6 +9414,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_2PgResource.get(spec); }, @@ -9422,6 +9436,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -9441,6 +9458,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -9460,6 +9480,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -9479,6 +9502,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -9498,6 +9524,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -9517,6 +9546,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_listsPgResource.get(spec); }, @@ -9536,6 +9568,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_typesPgResource.get(spec); }, @@ -9546,553 +9581,96 @@ const nodeIdHandlerByTypeName = { }; const resource_no_primary_keyPgResource = registry.pgResources["no_primary_key"]; const resource_unique_foreign_keyPgResource = registry.pgResources["unique_foreign_key"]; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_query_interval_set = []; +const makeArgs_query_interval_set = (args, path = []) => argDetailsSimple_query_interval_set.map(details => makeArg(path, args, details)); const resource_query_interval_setPgResource = registry.pgResources["query_interval_set"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_query_interval_set(args); return resource_query_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple7 = []; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 argDetailsSimple_static_big_integer = []; +const makeArgs_static_big_integer = (args, path = []) => argDetailsSimple_static_big_integer.map(details => makeArg(path, args, details)); const resource_static_big_integerPgResource = registry.pgResources["static_big_integer"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_static_big_integer(args); return resource_static_big_integerPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple10 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple11 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple12 = [{ +const argDetailsSimple_add_1_query = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -10105,52 +9683,9 @@ const argDetailsSimple12 = [{ required: true, fetcher: null }]; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_query = (args, path = []) => argDetailsSimple_add_1_query.map(details => makeArg(path, args, details)); const resource_add_1_queryPgResource = registry.pgResources["add_1_query"]; -const argDetailsSimple13 = [{ +const argDetailsSimple_add_2_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10163,52 +9698,9 @@ const argDetailsSimple13 = [{ required: false, fetcher: null }]; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 makeArgs_add_2_query = (args, path = []) => argDetailsSimple_add_2_query.map(details => makeArg(path, args, details)); const resource_add_2_queryPgResource = registry.pgResources["add_2_query"]; -const argDetailsSimple14 = [{ +const argDetailsSimple_add_3_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10221,52 +9713,9 @@ const argDetailsSimple14 = [{ required: true, fetcher: null }]; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_query = (args, path = []) => argDetailsSimple_add_3_query.map(details => makeArg(path, args, details)); const resource_add_3_queryPgResource = registry.pgResources["add_3_query"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_add_4_query = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10279,52 +9728,9 @@ const argDetailsSimple15 = [{ required: false, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_query = (args, path = []) => argDetailsSimple_add_4_query.map(details => makeArg(path, args, details)); const resource_add_4_queryPgResource = registry.pgResources["add_4_query"]; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -10337,240 +9743,25 @@ const argDetailsSimple16 = [{ required: true, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple19 = []; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple20 = []; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10589,52 +9780,9 @@ const argDetailsSimple21 = [{ required: false, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_1PgResource = registry.pgResources["optional_missing_middle_1"]; -const argDetailsSimple22 = [{ +const argDetailsSimple_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10653,52 +9801,9 @@ const argDetailsSimple22 = [{ required: false, fetcher: null }]; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 makeArgs_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_2PgResource = registry.pgResources["optional_missing_middle_2"]; -const argDetailsSimple23 = [{ +const argDetailsSimple_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10717,52 +9822,9 @@ const argDetailsSimple23 = [{ required: false, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_3PgResource = registry.pgResources["optional_missing_middle_3"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10781,52 +9843,9 @@ const argDetailsSimple24 = [{ required: false, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_4PgResource = registry.pgResources["optional_missing_middle_4"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10845,98 +9864,12 @@ const argDetailsSimple25 = [{ required: false, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_5PgResource = registry.pgResources["optional_missing_middle_5"]; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple27 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -10955,56 +9888,13 @@ const argDetailsSimple27 = [{ required: true, fetcher: null }]; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple28 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -11023,194 +9913,22 @@ const argDetailsSimple28 = [{ required: false, fetcher: null }]; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_query_interval_array = []; +const makeArgs_query_interval_array = (args, path = []) => argDetailsSimple_query_interval_array.map(details => makeArg(path, args, details)); const resource_query_interval_arrayPgResource = registry.pgResources["query_interval_array"]; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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 argDetailsSimple_query_text_array = []; +const makeArgs_query_text_array = (args, path = []) => argDetailsSimple_query_text_array.map(details => makeArg(path, args, details)); const resource_query_text_arrayPgResource = registry.pgResources["query_text_array"]; -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple32 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -11247,104 +9965,18 @@ const argDetailsSimple32 = [{ required: true, fetcher: null }]; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple33 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -11363,310 +9995,52 @@ const argDetailsSimple34 = [{ required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple35 = []; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs35(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple36 = [{ +const argDetailsSimple_compound_type_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_compound_type_query = (args, path = []) => argDetailsSimple_compound_type_query.map(details => makeArg(path, args, details)); const resource_compound_type_queryPgResource = registry.pgResources["compound_type_query"]; -const argDetailsSimple37 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_query_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[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 makeArgs_query_compound_type_array = (args, path = []) => argDetailsSimple_query_compound_type_array.map(details => makeArg(path, args, details)); const resource_query_compound_type_arrayPgResource = registry.pgResources["query_compound_type_array"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_compound_type_array_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_compound_type_array_query = (args, path = []) => argDetailsSimple_compound_type_array_query.map(details => makeArg(path, args, details)); const resource_compound_type_array_queryPgResource = registry.pgResources["compound_type_array_query"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11679,52 +10053,9 @@ const argDetailsSimple40 = [{ required: true, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11737,473 +10068,70 @@ const argDetailsSimple41 = [{ required: true, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs41(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple42 = []; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs42(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple43 = []; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs44(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs12 = ($root, args, _info) => { - const selectArgs = makeArgs45(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs13 = ($root, args, _info) => { - const selectArgs = makeArgs46(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_type_function_connection = []; +const makeArgs_type_function_connection = (args, path = []) => argDetailsSimple_type_function_connection.map(details => makeArg(path, args, details)); const resource_type_function_connectionPgResource = registry.pgResources["type_function_connection"]; const getSelectPlanFromParentAndArgs14 = ($root, args, _info) => { - const selectArgs = makeArgs47(args); + const selectArgs = makeArgs_type_function_connection(args); return resource_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_type_function = (args, path = []) => argDetailsSimple_type_function.map(details => makeArg(path, args, details)); const resource_type_functionPgResource = registry.pgResources["type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_type_function_list = []; +const makeArgs_type_function_list = (args, path = []) => argDetailsSimple_type_function_list.map(details => makeArg(path, args, details)); const resource_type_function_listPgResource = registry.pgResources["type_function_list"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -12378,347 +10306,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple53 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple54 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple55 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple56 = []; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12737,52 +10364,9 @@ const argDetailsSimple57 = [{ required: false, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12801,52 +10385,9 @@ const argDetailsSimple58 = [{ required: false, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12865,52 +10406,9 @@ const argDetailsSimple59 = [{ required: false, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12929,52 +10427,9 @@ const argDetailsSimple60 = [{ required: false, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12993,52 +10448,9 @@ const argDetailsSimple61 = [{ required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -13051,194 +10463,22 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs65(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13253,82 +10493,33 @@ const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple66 = []; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs66(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13343,176 +10534,41 @@ const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple67 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple68 = []; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple69 = []; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -13523,57 +10579,14 @@ const coerce = string => { } return string; }; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_post_computed_interval_set = []; +const makeArgs_post_computed_interval_set = (args, path = []) => argDetailsSimple_post_computed_interval_set.map(details => makeArg(path, args, details)); const resource_post_computed_interval_setPgResource = registry.pgResources["post_computed_interval_set"]; const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs70(args); + const extraSelectArgs = makeArgs_post_computed_interval_set(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13588,228 +10601,50 @@ const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (resource_post_computed_interval_setPgResource.isUnique && !resource_post_computed_interval_setPgResource.codec.attributes && typeof resource_post_computed_interval_setPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${resource_post_computed_interval_setPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_setPgResource.from, resource_post_computed_interval_setPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_post_computed_interval_array = []; +const makeArgs_post_computed_interval_array = (args, path = []) => argDetailsSimple_post_computed_interval_array.map(details => makeArg(path, args, details)); const resource_post_computed_interval_arrayPgResource = registry.pgResources["post_computed_interval_array"]; -const argDetailsSimple72 = []; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 argDetailsSimple_post_computed_text_array = []; +const makeArgs_post_computed_text_array = (args, path = []) => argDetailsSimple_post_computed_text_array.map(details => makeArg(path, args, details)); const resource_post_computed_text_arrayPgResource = registry.pgResources["post_computed_text_array"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_post_computed_with_optional_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: false, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_post_computed_with_optional_arg = (args, path = []) => argDetailsSimple_post_computed_with_optional_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_optional_argPgResource = registry.pgResources["post_computed_with_optional_arg"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_post_computed_with_required_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_post_computed_with_required_arg = (args, path = []) => argDetailsSimple_post_computed_with_required_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_required_argPgResource = registry.pgResources["post_computed_with_required_arg"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_post_headline_trimmed = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13822,52 +10657,9 @@ const argDetailsSimple75 = [{ required: false, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_post_headline_trimmed = (args, path = []) => argDetailsSimple_post_headline_trimmed.map(details => makeArg(path, args, details)); const resource_post_headline_trimmedPgResource = registry.pgResources["post_headline_trimmed"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_post_headline_trimmed_no_defaults = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13880,52 +10672,9 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_post_headline_trimmed_no_defaults = (args, path = []) => argDetailsSimple_post_headline_trimmed_no_defaults.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_no_defaultsPgResource = registry.pgResources["post_headline_trimmed_no_defaults"]; -const argDetailsSimple77 = [{ +const argDetailsSimple_post_headline_trimmed_strict = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13938,102 +10687,16 @@ const argDetailsSimple77 = [{ required: false, fetcher: null }]; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 makeArgs_post_headline_trimmed_strict = (args, path = []) => argDetailsSimple_post_headline_trimmed_strict.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_strictPgResource = registry.pgResources["post_headline_trimmed_strict"]; -const argDetailsSimple78 = [{ +const argDetailsSimple_post_computed_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 makeArgs_post_computed_compound_type_array = (args, path = []) => argDetailsSimple_post_computed_compound_type_array.map(details => makeArg(path, args, details)); const resource_post_computed_compound_type_arrayPgResource = registry.pgResources["post_computed_compound_type_array"]; const resource_frmcdc_comptypePgResource = registry.pgResources["frmcdc_comptype"]; const resource_frmcdc_nestedCompoundTypePgResource = registry.pgResources["frmcdc_nestedCompoundType"]; @@ -14091,641 +10754,82 @@ const parseValueLiteral = (ast, variables) => { return undefined; } }; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple80 = []; -const makeArgs80 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple80[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple81 = []; -const makeArgs81 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple81[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple82 = []; -const makeArgs82 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple82[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple83 = []; -const makeArgs83 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple83[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple84 = []; -const makeArgs84 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple84[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 argDetailsSimple_return_void_mutation = []; +const makeArgs_return_void_mutation = (args, path = []) => argDetailsSimple_return_void_mutation.map(details => makeArg(path, args, details)); const resource_return_void_mutationPgResource = registry.pgResources["return_void_mutation"]; -const argDetailsSimple85 = []; -const makeArgs85 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple85[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 argDetailsSimple_mutation_interval_set = []; +const makeArgs_mutation_interval_set = (args, path = []) => argDetailsSimple_mutation_interval_set.map(details => makeArg(path, args, details)); const resource_mutation_interval_setPgResource = registry.pgResources["mutation_interval_set"]; -const argDetailsSimple86 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs86 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple86[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple87 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs87 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple87[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple88 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs88 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple88[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple89 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs89 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple89[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple90 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs90 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple90[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple91 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs91 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple91[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple92 = [{ +const argDetailsSimple_add_1_mutation = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14738,52 +10842,9 @@ const argDetailsSimple92 = [{ required: true, fetcher: null }]; -const makeArgs92 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple92[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_mutation = (args, path = []) => argDetailsSimple_add_1_mutation.map(details => makeArg(path, args, details)); const resource_add_1_mutationPgResource = registry.pgResources["add_1_mutation"]; -const argDetailsSimple93 = [{ +const argDetailsSimple_add_2_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14796,52 +10857,9 @@ const argDetailsSimple93 = [{ required: false, fetcher: null }]; -const makeArgs93 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple93[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 makeArgs_add_2_mutation = (args, path = []) => argDetailsSimple_add_2_mutation.map(details => makeArg(path, args, details)); const resource_add_2_mutationPgResource = registry.pgResources["add_2_mutation"]; -const argDetailsSimple94 = [{ +const argDetailsSimple_add_3_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14854,52 +10872,9 @@ const argDetailsSimple94 = [{ required: true, fetcher: null }]; -const makeArgs94 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple94[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_mutation = (args, path = []) => argDetailsSimple_add_3_mutation.map(details => makeArg(path, args, details)); const resource_add_3_mutationPgResource = registry.pgResources["add_3_mutation"]; -const argDetailsSimple95 = [{ +const argDetailsSimple_add_4_mutation = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14912,52 +10887,9 @@ const argDetailsSimple95 = [{ required: false, fetcher: null }]; -const makeArgs95 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple95[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation = (args, path = []) => argDetailsSimple_add_4_mutation.map(details => makeArg(path, args, details)); const resource_add_4_mutationPgResource = registry.pgResources["add_4_mutation"]; -const argDetailsSimple96 = [{ +const argDetailsSimple_add_4_mutation_error = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14970,52 +10902,9 @@ const argDetailsSimple96 = [{ required: false, fetcher: null }]; -const makeArgs96 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple96[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation_error = (args, path = []) => argDetailsSimple_add_4_mutation_error.map(details => makeArg(path, args, details)); const resource_add_4_mutation_errorPgResource = registry.pgResources["add_4_mutation_error"]; -const argDetailsSimple97 = [{ +const argDetailsSimple_mult_1 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15028,52 +10917,9 @@ const argDetailsSimple97 = [{ required: true, fetcher: null }]; -const makeArgs97 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple97[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_1 = (args, path = []) => argDetailsSimple_mult_1.map(details => makeArg(path, args, details)); const resource_mult_1PgResource = registry.pgResources["mult_1"]; -const argDetailsSimple98 = [{ +const argDetailsSimple_mult_2 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15086,52 +10932,9 @@ const argDetailsSimple98 = [{ required: true, fetcher: null }]; -const makeArgs98 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple98[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_2 = (args, path = []) => argDetailsSimple_mult_2.map(details => makeArg(path, args, details)); const resource_mult_2PgResource = registry.pgResources["mult_2"]; -const argDetailsSimple99 = [{ +const argDetailsSimple_mult_3 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15144,52 +10947,9 @@ const argDetailsSimple99 = [{ required: true, fetcher: null }]; -const makeArgs99 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple99[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_3 = (args, path = []) => argDetailsSimple_mult_3.map(details => makeArg(path, args, details)); const resource_mult_3PgResource = registry.pgResources["mult_3"]; -const argDetailsSimple100 = [{ +const argDetailsSimple_mult_4 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15202,52 +10962,9 @@ const argDetailsSimple100 = [{ required: true, fetcher: null }]; -const makeArgs100 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple100[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_4 = (args, path = []) => argDetailsSimple_mult_4.map(details => makeArg(path, args, details)); const resource_mult_4PgResource = registry.pgResources["mult_4"]; -const argDetailsSimple101 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -15260,190 +10977,18 @@ const argDetailsSimple101 = [{ required: true, fetcher: null }]; -const makeArgs101 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple101[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple102 = []; -const makeArgs102 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple102[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple103 = []; -const makeArgs103 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple103[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple104 = []; -const makeArgs104 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple104[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple105 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -15462,294 +11007,36 @@ const argDetailsSimple105 = [{ required: true, fetcher: null }]; -const makeArgs105 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple105[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple106 = []; -const makeArgs106 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple106[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple107 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs107 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple107[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple108 = [{ +const argDetailsSimple_guid_fn = [{ graphqlArgName: "g", postgresArgName: "g", pgCodec: guidCodec, required: true, fetcher: null }]; -const makeArgs108 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple108[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 makeArgs_guid_fn = (args, path = []) => argDetailsSimple_guid_fn.map(details => makeArg(path, args, details)); const resource_guid_fnPgResource = registry.pgResources["guid_fn"]; -const argDetailsSimple109 = []; -const makeArgs109 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple109[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 argDetailsSimple_mutation_interval_array = []; +const makeArgs_mutation_interval_array = (args, path = []) => argDetailsSimple_mutation_interval_array.map(details => makeArg(path, args, details)); const resource_mutation_interval_arrayPgResource = registry.pgResources["mutation_interval_array"]; -const argDetailsSimple110 = []; -const makeArgs110 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple110[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 argDetailsSimple_mutation_text_array = []; +const makeArgs_mutation_text_array = (args, path = []) => argDetailsSimple_mutation_text_array.map(details => makeArg(path, args, details)); const resource_mutation_text_arrayPgResource = registry.pgResources["mutation_text_array"]; -const argDetailsSimple111 = [{ +const argDetailsSimple_list_bde_mutation = [{ graphqlArgName: "b", postgresArgName: "b", pgCodec: textArrayCodec, @@ -15768,98 +11055,12 @@ const argDetailsSimple111 = [{ required: true, fetcher: null }]; -const makeArgs111 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple111[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 makeArgs_list_bde_mutation = (args, path = []) => argDetailsSimple_list_bde_mutation.map(details => makeArg(path, args, details)); const resource_list_bde_mutationPgResource = registry.pgResources["list_bde_mutation"]; -const argDetailsSimple112 = []; -const makeArgs112 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple112[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 argDetailsSimple_authenticate_fail = []; +const makeArgs_authenticate_fail = (args, path = []) => argDetailsSimple_authenticate_fail.map(details => makeArg(path, args, details)); const resource_authenticate_failPgResource = registry.pgResources["authenticate_fail"]; -const argDetailsSimple113 = [{ +const argDetailsSimple_authenticate = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15878,196 +11079,24 @@ const argDetailsSimple113 = [{ required: true, fetcher: null }]; -const makeArgs113 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple113[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 makeArgs_authenticate = (args, path = []) => argDetailsSimple_authenticate.map(details => makeArg(path, args, details)); const resource_authenticatePgResource = registry.pgResources["authenticate"]; -const argDetailsSimple114 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs114 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple114[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple115 = []; -const makeArgs115 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple115[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple116 = []; -const makeArgs116 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple116[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple117 = [{ +const argDetailsSimple_authenticate_many = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16086,52 +11115,9 @@ const argDetailsSimple117 = [{ required: true, fetcher: null }]; -const makeArgs117 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple117[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 makeArgs_authenticate_many = (args, path = []) => argDetailsSimple_authenticate_many.map(details => makeArg(path, args, details)); const resource_authenticate_manyPgResource = registry.pgResources["authenticate_many"]; -const argDetailsSimple118 = [{ +const argDetailsSimple_authenticate_payload = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16150,52 +11136,9 @@ const argDetailsSimple118 = [{ required: true, fetcher: null }]; -const makeArgs118 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple118[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 makeArgs_authenticate_payload = (args, path = []) => argDetailsSimple_authenticate_payload.map(details => makeArg(path, args, details)); const resource_authenticate_payloadPgResource = registry.pgResources["authenticate_payload"]; -const argDetailsSimple119 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -16232,260 +11175,45 @@ const argDetailsSimple119 = [{ required: true, fetcher: null }]; -const makeArgs119 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple119[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple120 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs120 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple120[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple121 = [{ +const argDetailsSimple_compound_type_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs121 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple121[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 makeArgs_compound_type_mutation = (args, path = []) => argDetailsSimple_compound_type_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_mutationPgResource = registry.pgResources["compound_type_mutation"]; -const argDetailsSimple122 = [{ +const argDetailsSimple_compound_type_set_mutation = [{ 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 makeArgs_compound_type_set_mutation = (args, path = []) => argDetailsSimple_compound_type_set_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_set_mutationPgResource = registry.pgResources["compound_type_set_mutation"]; -const argDetailsSimple123 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, 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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple124 = [{ +const argDetailsSimple_post_with_suffix = [{ graphqlArgName: "post", postgresArgName: "post", pgCodec: postCodec, @@ -16498,208 +11226,36 @@ const argDetailsSimple124 = [{ required: true, fetcher: null }]; -const makeArgs124 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple124[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 makeArgs_post_with_suffix = (args, path = []) => argDetailsSimple_post_with_suffix.map(details => makeArg(path, args, details)); const resource_post_with_suffixPgResource = registry.pgResources["post_with_suffix"]; -const argDetailsSimple125 = [{ +const argDetailsSimple_mutation_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs125 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple125[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 makeArgs_mutation_compound_type_array = (args, path = []) => argDetailsSimple_mutation_compound_type_array.map(details => makeArg(path, args, details)); const resource_mutation_compound_type_arrayPgResource = registry.pgResources["mutation_compound_type_array"]; -const argDetailsSimple126 = [{ +const argDetailsSimple_compound_type_array_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs126 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple126[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 makeArgs_compound_type_array_mutation = (args, path = []) => argDetailsSimple_compound_type_array_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_array_mutationPgResource = registry.pgResources["compound_type_array_mutation"]; -const argDetailsSimple127 = [{ +const argDetailsSimple_post_many = [{ graphqlArgName: "posts", postgresArgName: "posts", pgCodec: postArrayCodec, required: true, fetcher: null }]; -const makeArgs127 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple127[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 makeArgs_post_many = (args, path = []) => argDetailsSimple_post_many.map(details => makeArg(path, args, details)); const resource_post_manyPgResource = registry.pgResources["post_many"]; -const argDetailsSimple128 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16712,52 +11268,9 @@ const argDetailsSimple128 = [{ required: true, fetcher: null }]; -const makeArgs128 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple128[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple129 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16770,483 +11283,182 @@ const argDetailsSimple129 = [{ required: true, fetcher: null }]; -const makeArgs129 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple129[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple130 = []; -const makeArgs130 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple130[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple131 = []; -const makeArgs131 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple131[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple132 = []; -const makeArgs132 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple132[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; -const argDetailsSimple133 = []; -const makeArgs133 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple133[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 argDetailsSimple_type_function_connection_mutation = []; +const makeArgs_type_function_connection_mutation = (args, path = []) => argDetailsSimple_type_function_connection_mutation.map(details => makeArg(path, args, details)); const resource_type_function_connection_mutationPgResource = registry.pgResources["type_function_connection_mutation"]; -const argDetailsSimple134 = [{ +const argDetailsSimple_type_function_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs134 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple134[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 makeArgs_type_function_mutation = (args, path = []) => argDetailsSimple_type_function_mutation.map(details => makeArg(path, args, details)); const resource_type_function_mutationPgResource = registry.pgResources["type_function_mutation"]; -const argDetailsSimple135 = []; -const makeArgs135 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple135[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 argDetailsSimple_type_function_list_mutation = []; +const makeArgs_type_function_list_mutation = (args, path = []) => argDetailsSimple_type_function_list_mutation.map(details => makeArg(path, args, details)); const resource_type_function_list_mutationPgResource = registry.pgResources["type_function_list_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs15 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs16 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs17 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs18 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs19 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const specFromArgs20 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs21 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs22 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs23 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs24 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs25 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs26 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs27 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs28 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs29 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs30 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs31 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs32 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs33 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs34 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs35 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs36 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs37 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs38 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const resource_frmcdc_jwtTokenPgResource = registry.pgResources["frmcdc_jwtToken"]; @@ -27717,131 +21929,131 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, inputById(_$root, args) { return pgResource_inputsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, patchById(_$root, args) { return pgResource_patchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedById(_$root, args) { return pgResource_reservedPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedPatchRecordById(_$root, args) { return pgResource_reservedPatchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedInputRecordById(_$root, args) { return pgResource_reserved_inputPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, defaultValueById(_$root, args) { return pgResource_default_valuePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, noPrimaryKeyById(_$root, args) { return resource_no_primary_keyPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, uniqueForeignKeyByCompoundKey1AndCompoundKey2(_$root, args) { return resource_unique_foreign_keyPgResource.get({ - compound_key_1: args.get("compoundKey1"), - compound_key_2: args.get("compoundKey2") + compound_key_1: args.getRaw("compoundKey1"), + compound_key_2: args.getRaw("compoundKey2") }); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, viewTableById(_$root, args) { return pgResource_view_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, similarTable1ById(_$root, args) { return pgResource_similar_table_1PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, similarTable2ById(_$root, args) { return pgResource_similar_table_2PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, listById(_$root, args) { return pgResource_listsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, typeById(_$root, args) { return pgResource_typesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -27858,7 +22070,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27867,7 +22078,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27876,7 +22086,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27885,7 +22094,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27894,7 +22102,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27903,11 +22110,11 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, queryIntervalSet: { @@ -27924,7 +22131,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27933,7 +22139,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27942,7 +22147,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27951,7 +22155,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27960,7 +22163,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27982,7 +22184,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27991,7 +22192,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28000,7 +22200,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28009,7 +22208,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28018,7 +22216,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28027,7 +22224,7 @@ export const plans = { } }, funcInOut($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -28044,7 +22241,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28053,7 +22249,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28062,7 +22257,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28071,7 +22265,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28080,7 +22273,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28089,35 +22281,35 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, add1Query($root, args, _info) { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_add_1_query(args); return resource_add_1_queryPgResource.execute(selectArgs); }, add2Query($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_add_2_query(args); return resource_add_2_queryPgResource.execute(selectArgs); }, add3Query($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_add_3_query(args); return resource_add_3_queryPgResource.execute(selectArgs); }, add4Query($root, args, _info) { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_add_4_query(args); return resource_add_4_queryPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -28134,7 +22326,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28143,7 +22334,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28152,7 +22342,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28161,7 +22350,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28170,7 +22358,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28179,19 +22366,18 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28200,7 +22386,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28209,27 +22394,27 @@ export const plans = { } }, optionalMissingMiddle1($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_optional_missing_middle_1(args); return resource_optional_missing_middle_1PgResource.execute(selectArgs); }, optionalMissingMiddle2($root, args, _info) { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_optional_missing_middle_2(args); return resource_optional_missing_middle_2PgResource.execute(selectArgs); }, optionalMissingMiddle3($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_optional_missing_middle_3(args); return resource_optional_missing_middle_3PgResource.execute(selectArgs); }, optionalMissingMiddle4($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_optional_missing_middle_4(args); return resource_optional_missing_middle_4PgResource.execute(selectArgs); }, optionalMissingMiddle5($root, args, _info) { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_optional_missing_middle_5(args); return resource_optional_missing_middle_5PgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -28246,7 +22431,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28255,7 +22439,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28264,7 +22447,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28273,7 +22455,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28282,7 +22463,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28304,7 +22484,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28313,7 +22492,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28322,7 +22500,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28331,7 +22508,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28340,7 +22516,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28349,27 +22524,27 @@ export const plans = { } }, queryIntervalArray($root, args, _info) { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_query_interval_array(args); return resource_query_interval_arrayPgResource.execute(selectArgs); }, queryTextArray($root, args, _info) { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_query_text_array(args); return resource_query_text_arrayPgResource.execute(selectArgs); }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs31(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs32(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs33(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs34(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -28386,7 +22561,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28395,7 +22569,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28404,7 +22577,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28413,7 +22585,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28422,7 +22593,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28431,23 +22601,23 @@ export const plans = { } }, compoundTypeQuery($root, args, _info) { - const selectArgs = makeArgs36(args); + const selectArgs = makeArgs_compound_type_query(args); return resource_compound_type_queryPgResource.execute(selectArgs); }, tableQuery($root, args, _info) { - const selectArgs = makeArgs37(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, queryCompoundTypeArray($root, args, _info) { - const selectArgs = makeArgs38(args); + const selectArgs = makeArgs_query_compound_type_array(args); return resource_query_compound_type_arrayPgResource.execute(selectArgs); }, compoundTypeArrayQuery($root, args, _info) { - const selectArgs = makeArgs39(args); + const selectArgs = makeArgs_compound_type_array_query(args); return resource_compound_type_array_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs40(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -28464,7 +22634,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28473,7 +22642,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28482,7 +22650,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28491,7 +22658,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28500,7 +22666,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28522,7 +22687,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28531,7 +22695,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28540,7 +22703,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28549,7 +22711,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28558,7 +22719,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28567,7 +22727,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs43(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -28584,7 +22744,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28593,7 +22752,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28602,7 +22760,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28611,7 +22768,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28620,7 +22776,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28642,7 +22797,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28651,7 +22805,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28660,7 +22813,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28669,7 +22821,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28678,7 +22829,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28687,22 +22837,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28722,7 +22868,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28731,7 +22876,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28740,7 +22884,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28749,7 +22892,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28758,7 +22900,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28780,7 +22921,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28789,7 +22929,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28798,7 +22937,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28807,7 +22945,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28816,7 +22953,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28825,87 +22961,87 @@ export const plans = { } }, typeFunction($root, args, _info) { - const selectArgs = makeArgs48(args); + const selectArgs = makeArgs_type_function(args); return resource_type_functionPgResource.execute(selectArgs); }, typeFunctionList($root, args, _info) { - const selectArgs = makeArgs49(args); + const selectArgs = makeArgs_type_function_list(args); return resource_type_function_listPgResource.execute(selectArgs); }, input(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, patch(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, reserved(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, reservedPatchRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, reservedInputRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, defaultValue(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher8($nodeId); }, viewTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher9($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher10($nodeId); }, similarTable1(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher11($nodeId); }, similarTable2(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher12($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher13($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher14($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher15($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher16($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher17($nodeId); }, list(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher18($nodeId); }, type(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher19($nodeId); }, allNonUpdatableViews: { @@ -28916,7 +23052,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28925,7 +23060,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28934,7 +23068,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28943,7 +23076,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28952,7 +23084,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28961,22 +23092,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NonUpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28990,7 +23117,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28999,7 +23125,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29008,7 +23133,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29017,7 +23141,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29026,7 +23149,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29035,22 +23157,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29064,7 +23182,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29073,7 +23190,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29082,7 +23198,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29091,7 +23206,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29100,7 +23214,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29109,22 +23222,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29138,7 +23247,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29147,7 +23255,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29156,7 +23263,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29165,7 +23271,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29174,7 +23279,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29183,22 +23287,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29212,7 +23312,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29221,7 +23320,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29230,7 +23328,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29239,7 +23336,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29248,7 +23344,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29257,22 +23352,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29286,7 +23377,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29295,7 +23385,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29304,7 +23393,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29313,7 +23401,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29322,7 +23409,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29331,22 +23417,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29360,7 +23442,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29369,7 +23450,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29378,7 +23458,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29387,7 +23466,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29396,7 +23474,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29405,22 +23482,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29434,7 +23507,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29443,7 +23515,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29452,7 +23523,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29461,7 +23531,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29470,7 +23539,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29479,22 +23547,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29508,7 +23572,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29517,7 +23580,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29526,7 +23588,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29535,7 +23596,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29544,7 +23604,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29553,22 +23612,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NoPrimaryKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29582,7 +23637,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29591,7 +23645,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29600,7 +23653,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29609,7 +23661,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29618,7 +23669,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29627,22 +23677,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TestviewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29656,7 +23702,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29665,7 +23710,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29674,7 +23718,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29683,7 +23726,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29692,7 +23734,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29701,22 +23742,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29730,7 +23767,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29739,7 +23775,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29748,7 +23783,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29757,7 +23791,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29766,7 +23799,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29775,22 +23807,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29804,7 +23832,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29813,7 +23840,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29822,7 +23848,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29831,7 +23856,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29840,7 +23864,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29849,22 +23872,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29878,7 +23897,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29887,7 +23905,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29896,7 +23913,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29905,7 +23921,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29914,7 +23929,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29923,22 +23937,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29952,7 +23962,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29961,7 +23970,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29970,7 +23978,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29979,7 +23986,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29988,7 +23994,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29997,22 +24002,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30026,7 +24027,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30035,7 +24035,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30044,7 +24043,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30053,7 +24051,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30062,7 +24059,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30071,22 +24067,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30100,7 +24092,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30109,7 +24100,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30118,7 +24108,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30127,7 +24116,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30136,7 +24124,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30145,22 +24132,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30174,7 +24157,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30183,7 +24165,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30192,7 +24173,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30201,7 +24181,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30210,7 +24189,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30219,22 +24197,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30248,7 +24222,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30257,7 +24230,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30266,7 +24238,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30275,7 +24246,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30284,7 +24254,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30293,22 +24262,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30322,7 +24287,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30331,7 +24295,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30340,7 +24303,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30349,7 +24311,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30358,7 +24319,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30367,22 +24327,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30396,7 +24352,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30405,7 +24360,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30414,7 +24368,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30423,7 +24376,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30432,7 +24384,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30441,22 +24392,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30470,7 +24417,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30479,7 +24425,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30488,7 +24433,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30497,7 +24441,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30506,7 +24449,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30515,22 +24457,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30544,7 +24482,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30553,7 +24490,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30562,7 +24498,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30571,7 +24506,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30580,7 +24514,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30589,22 +24522,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30618,7 +24547,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30627,7 +24555,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30636,7 +24563,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30645,7 +24571,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30654,7 +24579,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30663,22 +24587,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30692,7 +24612,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30701,7 +24620,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30710,7 +24628,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30719,7 +24636,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30728,7 +24644,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30737,22 +24652,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30883,7 +24794,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30892,7 +24802,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30901,7 +24810,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30910,7 +24818,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30919,7 +24826,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30928,22 +24834,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30966,7 +24868,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30981,27 +24883,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -31010,7 +24906,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31025,27 +24921,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -31054,7 +24944,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs52(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31069,27 +24959,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -31098,7 +24982,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs53(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31113,27 +24997,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -31142,7 +25020,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs54(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31157,27 +25035,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -31186,7 +25058,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs55(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31201,27 +25073,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -31230,7 +25096,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs56(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31245,27 +25111,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -31274,7 +25134,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs57(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31289,27 +25149,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -31318,7 +25172,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs58(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31333,27 +25187,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -31362,7 +25210,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs59(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31377,27 +25225,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -31406,7 +25248,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs60(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31421,27 +25263,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -31450,7 +25286,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs61(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31465,27 +25301,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -31494,7 +25324,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs62(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31509,27 +25339,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -31538,7 +25362,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs63(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31553,27 +25377,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -31582,7 +25400,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs64(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31597,27 +25415,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -31636,7 +25448,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31645,7 +25456,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31654,7 +25464,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31663,7 +25472,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31672,7 +25480,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31681,12 +25488,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -31706,7 +25510,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31715,7 +25518,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31724,7 +25526,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31733,7 +25534,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31742,7 +25542,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31754,7 +25553,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs67(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31769,27 +25568,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -31798,7 +25591,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs68(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31813,27 +25606,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -31888,7 +25675,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31897,7 +25683,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31906,7 +25691,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31915,7 +25699,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31924,7 +25707,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31933,22 +25715,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -31965,7 +25743,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31974,7 +25751,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31983,7 +25759,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31992,7 +25767,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32001,7 +25775,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32010,22 +25783,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32052,7 +25821,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32061,7 +25829,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32070,7 +25837,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32079,7 +25845,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32088,7 +25853,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32097,22 +25861,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32129,7 +25889,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32138,7 +25897,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32147,7 +25905,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32156,7 +25913,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32165,7 +25921,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32174,22 +25929,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32264,7 +26015,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs69(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32279,27 +26030,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -32410,7 +26155,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32419,7 +26163,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32428,7 +26171,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32437,7 +26179,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32446,7 +26187,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32458,7 +26198,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs71(args); + const extraSelectArgs = makeArgs_post_computed_interval_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32473,27 +26213,21 @@ export const plans = { if (resource_post_computed_interval_arrayPgResource.isUnique && !resource_post_computed_interval_arrayPgResource.codec.attributes && typeof resource_post_computed_interval_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${resource_post_computed_interval_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_arrayPgResource.from, resource_post_computed_interval_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_arrayPgResource.execute(selectArgs); @@ -32502,7 +26236,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs72(args); + const extraSelectArgs = makeArgs_post_computed_text_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32517,27 +26251,21 @@ export const plans = { if (resource_post_computed_text_arrayPgResource.isUnique && !resource_post_computed_text_arrayPgResource.codec.attributes && typeof resource_post_computed_text_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${resource_post_computed_text_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_text_arrayPgResource.from, resource_post_computed_text_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_text_arrayPgResource.execute(selectArgs); @@ -32546,7 +26274,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs73(args); + const extraSelectArgs = makeArgs_post_computed_with_optional_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32561,27 +26289,21 @@ export const plans = { if (resource_post_computed_with_optional_argPgResource.isUnique && !resource_post_computed_with_optional_argPgResource.codec.attributes && typeof resource_post_computed_with_optional_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${resource_post_computed_with_optional_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_optional_argPgResource.from, resource_post_computed_with_optional_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_optional_argPgResource.execute(selectArgs); @@ -32590,7 +26312,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs74(args); + const extraSelectArgs = makeArgs_post_computed_with_required_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32605,27 +26327,21 @@ export const plans = { if (resource_post_computed_with_required_argPgResource.isUnique && !resource_post_computed_with_required_argPgResource.codec.attributes && typeof resource_post_computed_with_required_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${resource_post_computed_with_required_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_required_argPgResource.from, resource_post_computed_with_required_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_required_argPgResource.execute(selectArgs); @@ -32634,7 +26350,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs75(args); + const extraSelectArgs = makeArgs_post_headline_trimmed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32649,27 +26365,21 @@ export const plans = { if (resource_post_headline_trimmedPgResource.isUnique && !resource_post_headline_trimmedPgResource.codec.attributes && typeof resource_post_headline_trimmedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${resource_post_headline_trimmedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmedPgResource.from, resource_post_headline_trimmedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmedPgResource.execute(selectArgs); @@ -32678,7 +26388,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs76(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_no_defaults(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32693,27 +26403,21 @@ export const plans = { if (resource_post_headline_trimmed_no_defaultsPgResource.isUnique && !resource_post_headline_trimmed_no_defaultsPgResource.codec.attributes && typeof resource_post_headline_trimmed_no_defaultsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${resource_post_headline_trimmed_no_defaultsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.from, resource_post_headline_trimmed_no_defaultsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_no_defaultsPgResource.execute(selectArgs); @@ -32722,7 +26426,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs77(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_strict(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32737,27 +26441,21 @@ export const plans = { if (resource_post_headline_trimmed_strictPgResource.isUnique && !resource_post_headline_trimmed_strictPgResource.codec.attributes && typeof resource_post_headline_trimmed_strictPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${resource_post_headline_trimmed_strictPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_strictPgResource.from, resource_post_headline_trimmed_strictPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_strictPgResource.execute(selectArgs); @@ -32766,7 +26464,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs78(args); + const extraSelectArgs = makeArgs_post_computed_compound_type_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32781,27 +26479,21 @@ export const plans = { if (resource_post_computed_compound_type_arrayPgResource.isUnique && !resource_post_computed_compound_type_arrayPgResource.codec.attributes && typeof resource_post_computed_compound_type_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${resource_post_computed_compound_type_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_compound_type_arrayPgResource.from, resource_post_computed_compound_type_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_compound_type_arrayPgResource.execute(selectArgs); @@ -32843,7 +26535,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32852,7 +26543,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32861,7 +26551,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32870,7 +26559,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32879,7 +26567,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32888,22 +26575,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32966,64 +26649,70 @@ export const plans = { } }, CompoundTypeInput: { - "__inputPlan": function CompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, IntervalInput: { @@ -33541,31 +27230,21 @@ export const plans = { } }, TypesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33574,19 +27253,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33595,11 +27272,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -33607,7 +27281,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33617,11 +27291,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -33629,7 +27300,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33639,11 +27310,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "ASC", ...(undefined != null ? { @@ -33651,7 +27319,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33661,11 +27329,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "DESC", ...(undefined != null ? { @@ -33673,7 +27338,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33683,11 +27348,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "ASC", ...(undefined != null ? { @@ -33695,7 +27357,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33705,11 +27367,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "DESC", ...(undefined != null ? { @@ -33717,7 +27376,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33727,11 +27386,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "ASC", ...(undefined != null ? { @@ -33739,7 +27395,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33749,11 +27405,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "DESC", ...(undefined != null ? { @@ -33761,7 +27414,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33771,11 +27424,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "ASC", ...(undefined != null ? { @@ -33783,7 +27433,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33793,11 +27443,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "DESC", ...(undefined != null ? { @@ -33805,7 +27452,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33815,11 +27462,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "ASC", ...(undefined != null ? { @@ -33827,7 +27471,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33837,11 +27481,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "DESC", ...(undefined != null ? { @@ -33849,7 +27490,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33859,11 +27500,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "ASC", ...(undefined != null ? { @@ -33871,7 +27509,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33881,11 +27519,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "DESC", ...(undefined != null ? { @@ -33893,7 +27528,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33903,11 +27538,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "ASC", ...(undefined != null ? { @@ -33915,7 +27547,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33925,11 +27557,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "DESC", ...(undefined != null ? { @@ -33937,7 +27566,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33947,11 +27576,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "ASC", ...(undefined != null ? { @@ -33959,7 +27585,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33969,11 +27595,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "DESC", ...(undefined != null ? { @@ -33981,7 +27604,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33991,11 +27614,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "ASC", ...(undefined != null ? { @@ -34003,7 +27623,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34013,11 +27633,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "DESC", ...(undefined != null ? { @@ -34025,7 +27642,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34035,11 +27652,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "ASC", ...(undefined != null ? { @@ -34047,7 +27661,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34057,11 +27671,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "DESC", ...(undefined != null ? { @@ -34069,7 +27680,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34079,11 +27690,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "ASC", ...(undefined != null ? { @@ -34091,7 +27699,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34101,11 +27709,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "DESC", ...(undefined != null ? { @@ -34113,7 +27718,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34123,11 +27728,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "ASC", ...(undefined != null ? { @@ -34135,7 +27737,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34145,11 +27747,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "DESC", ...(undefined != null ? { @@ -34157,7 +27756,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34167,11 +27766,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "ASC", ...(undefined != null ? { @@ -34179,7 +27775,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34189,11 +27785,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "DESC", ...(undefined != null ? { @@ -34201,7 +27794,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34211,11 +27804,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "ASC", ...(undefined != null ? { @@ -34223,7 +27813,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34233,11 +27823,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "DESC", ...(undefined != null ? { @@ -34245,7 +27832,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34255,11 +27842,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "ASC", ...(undefined != null ? { @@ -34267,7 +27851,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34277,11 +27861,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "DESC", ...(undefined != null ? { @@ -34289,7 +27870,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34299,11 +27880,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "ASC", ...(undefined != null ? { @@ -34311,7 +27889,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34321,11 +27899,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "DESC", ...(undefined != null ? { @@ -34333,7 +27908,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34343,11 +27918,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "ASC", ...(undefined != null ? { @@ -34355,7 +27927,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34365,11 +27937,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "DESC", ...(undefined != null ? { @@ -34377,7 +27946,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34387,11 +27956,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "ASC", ...(undefined != null ? { @@ -34399,7 +27965,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34409,11 +27975,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "DESC", ...(undefined != null ? { @@ -34421,7 +27984,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34431,11 +27994,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "ASC", ...(undefined != null ? { @@ -34443,7 +28003,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34453,11 +28013,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "DESC", ...(undefined != null ? { @@ -34465,7 +28022,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34475,11 +28032,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34487,7 +28041,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34497,11 +28051,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34509,7 +28060,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34519,11 +28070,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34531,7 +28079,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34541,11 +28089,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34553,7 +28098,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34563,11 +28108,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34575,7 +28117,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34585,11 +28127,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34597,7 +28136,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34607,11 +28146,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "ASC", ...(undefined != null ? { @@ -34619,7 +28155,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34629,11 +28165,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "DESC", ...(undefined != null ? { @@ -34641,7 +28174,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34651,11 +28184,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "ASC", ...(undefined != null ? { @@ -34663,7 +28193,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34673,11 +28203,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "DESC", ...(undefined != null ? { @@ -34685,7 +28212,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34695,11 +28222,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -34707,7 +28231,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34717,11 +28241,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -34729,7 +28250,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34739,11 +28260,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -34751,7 +28269,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34761,11 +28279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -34773,7 +28288,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34783,11 +28298,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -34795,7 +28307,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34805,11 +28317,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -34817,7 +28326,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34827,11 +28336,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "ASC", ...(undefined != null ? { @@ -34839,7 +28345,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34849,11 +28355,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "DESC", ...(undefined != null ? { @@ -34861,7 +28364,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34871,11 +28374,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "ASC", ...(undefined != null ? { @@ -34883,7 +28383,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34893,11 +28393,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "DESC", ...(undefined != null ? { @@ -34905,7 +28402,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34915,11 +28412,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "ASC", ...(undefined != null ? { @@ -34927,7 +28421,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34937,11 +28431,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "DESC", ...(undefined != null ? { @@ -34949,7 +28440,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34959,11 +28450,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "ASC", ...(undefined != null ? { @@ -34971,7 +28459,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34981,11 +28469,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "DESC", ...(undefined != null ? { @@ -34993,7 +28478,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35003,11 +28488,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "ASC", ...(undefined != null ? { @@ -35015,7 +28497,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35025,11 +28507,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "DESC", ...(undefined != null ? { @@ -35037,7 +28516,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35047,11 +28526,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "ASC", ...(undefined != null ? { @@ -35059,7 +28535,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35069,11 +28545,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "DESC", ...(undefined != null ? { @@ -35081,7 +28554,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35091,11 +28564,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "ASC", ...(undefined != null ? { @@ -35103,7 +28573,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35113,11 +28583,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "DESC", ...(undefined != null ? { @@ -35125,7 +28592,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35135,11 +28602,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "ASC", ...(undefined != null ? { @@ -35147,7 +28611,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35157,11 +28621,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "DESC", ...(undefined != null ? { @@ -35169,7 +28630,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35179,11 +28640,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "ASC", ...(undefined != null ? { @@ -35191,7 +28649,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35201,11 +28659,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "DESC", ...(undefined != null ? { @@ -35213,7 +28668,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35222,8 +28677,8 @@ export const plans = { }, TypeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35236,17 +28691,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, smallint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "smallint", @@ -35259,17 +28712,15 @@ export const plans = { type: "attribute", attribute: "smallint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.smallint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, bigint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "bigint", @@ -35282,17 +28733,15 @@ export const plans = { type: "attribute", attribute: "bigint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.bigint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numeric: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numeric", @@ -35305,17 +28754,15 @@ export const plans = { type: "attribute", attribute: "numeric", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numeric.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, decimal: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "decimal", @@ -35328,17 +28775,15 @@ export const plans = { type: "attribute", attribute: "decimal", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.decimal.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, boolean: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "boolean", @@ -35351,17 +28796,15 @@ export const plans = { type: "attribute", attribute: "boolean", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.boolean.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, varchar: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "varchar", @@ -35374,17 +28817,15 @@ export const plans = { type: "attribute", attribute: "varchar", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.varchar.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum", @@ -35397,17 +28838,15 @@ export const plans = { type: "attribute", attribute: "enum", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -35420,17 +28859,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain", @@ -35443,17 +28880,15 @@ export const plans = { type: "attribute", attribute: "domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain2", @@ -35466,17 +28901,15 @@ export const plans = { type: "attribute", attribute: "domain2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anotherIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array", @@ -35489,17 +28922,15 @@ export const plans = { type: "attribute", attribute: "text_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, json: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json", @@ -35512,17 +28943,15 @@ export const plans = { type: "attribute", attribute: "json", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.json.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.json)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonb: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "jsonb", @@ -35535,17 +28964,15 @@ export const plans = { type: "attribute", attribute: "jsonb", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.jsonb.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_range", @@ -35558,17 +28985,15 @@ export const plans = { type: "attribute", attribute: "nullable_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numrange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numrange", @@ -35581,17 +29006,15 @@ export const plans = { type: "attribute", attribute: "numrange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numrange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, daterange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "daterange", @@ -35604,17 +29027,15 @@ export const plans = { type: "attribute", attribute: "daterange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.daterange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, daterangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, anIntRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "an_int_range", @@ -35627,17 +29048,15 @@ export const plans = { type: "attribute", attribute: "an_int_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.an_int_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntRangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamp", @@ -35650,17 +29069,15 @@ export const plans = { type: "attribute", attribute: "timestamp", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamp.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz", @@ -35673,17 +29090,15 @@ export const plans = { type: "attribute", attribute: "timestamptz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamptz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, date: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date", @@ -35696,17 +29111,15 @@ export const plans = { type: "attribute", attribute: "date", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.date.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.date)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, time: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "time", @@ -35719,17 +29132,15 @@ export const plans = { type: "attribute", attribute: "time", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.time.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.time)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timetz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timetz", @@ -35742,17 +29153,15 @@ export const plans = { type: "attribute", attribute: "timetz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timetz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timetz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, interval: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval", @@ -35765,17 +29174,15 @@ export const plans = { type: "attribute", attribute: "interval", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.interval)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intervalArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval_array", @@ -35788,17 +29195,15 @@ export const plans = { type: "attribute", attribute: "interval_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, intervalArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, money: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "money", @@ -35811,17 +29216,15 @@ export const plans = { type: "attribute", attribute: "money", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.money.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.money)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type", @@ -35834,17 +29237,15 @@ export const plans = { type: "attribute", attribute: "compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nested_compound_type", @@ -35857,17 +29258,15 @@ export const plans = { type: "attribute", attribute: "nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_compound_type", @@ -35880,17 +29279,15 @@ export const plans = { type: "attribute", attribute: "nullable_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableNestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_nested_compound_type", @@ -35903,17 +29300,15 @@ export const plans = { type: "attribute", attribute: "nullable_nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, point: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "point", @@ -35926,17 +29321,15 @@ export const plans = { type: "attribute", attribute: "point", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.point.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullablePoint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullablePoint", @@ -35949,17 +29342,15 @@ export const plans = { type: "attribute", attribute: "nullablePoint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullablePoint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -35972,17 +29363,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -35995,17 +29384,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -36018,17 +29405,15 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regproc: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regproc", @@ -36041,17 +29426,15 @@ export const plans = { type: "attribute", attribute: "regproc", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regproc.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regproc)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regprocedure: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regprocedure", @@ -36064,17 +29447,15 @@ export const plans = { type: "attribute", attribute: "regprocedure", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regprocedure.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regprocedure)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoper: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoper", @@ -36087,17 +29468,15 @@ export const plans = { type: "attribute", attribute: "regoper", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoper.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoper)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoperator: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoperator", @@ -36110,17 +29489,15 @@ export const plans = { type: "attribute", attribute: "regoperator", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoperator.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoperator)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regclass: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regclass", @@ -36133,17 +29510,15 @@ export const plans = { type: "attribute", attribute: "regclass", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regclass.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regclass)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regtype: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regtype", @@ -36156,17 +29531,15 @@ export const plans = { type: "attribute", attribute: "regtype", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regtype.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regtype)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regconfig: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regconfig", @@ -36179,17 +29552,15 @@ export const plans = { type: "attribute", attribute: "regconfig", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regconfig.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regconfig)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regdictionary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regdictionary", @@ -36202,17 +29573,15 @@ export const plans = { type: "attribute", attribute: "regdictionary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regdictionary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regdictionary)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array_domain", @@ -36225,17 +29594,15 @@ export const plans = { type: "attribute", attribute: "text_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, int8ArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int8_array_domain", @@ -36248,17 +29615,15 @@ export const plans = { type: "attribute", attribute: "int8_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.int8_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int8ArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltree: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree", @@ -36271,17 +29636,15 @@ export const plans = { type: "attribute", attribute: "ltree", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_codec_ltree)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltreeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree_array", @@ -36294,13 +29657,11 @@ export const plans = { type: "attribute", attribute: "ltree_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_array_codec_ltree_)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BigFloatRangeInput: { @@ -36328,29 +29689,30 @@ export const plans = { inclusive: undefined }, NestedCompoundTypeInput: { - "__inputPlan": function NestedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, bazBuz: { - applyPlan($insert, val) { - $insert.set("baz_buz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("baz_buz", bakedInputRuntime(schema, field.type, val)); + } } }, PointInput: { @@ -36383,26 +29745,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36415,14 +29769,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36435,14 +29789,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36455,14 +29809,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36475,19 +29829,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36496,19 +29848,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36517,11 +29867,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36529,7 +29876,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36539,11 +29886,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36551,7 +29895,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36561,11 +29905,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -36573,7 +29914,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36583,11 +29924,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -36595,7 +29933,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36605,11 +29943,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -36617,7 +29952,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36627,11 +29962,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -36639,7 +29971,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36649,11 +29981,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -36661,7 +29990,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36671,11 +30000,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -36683,7 +30009,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36693,11 +30019,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -36705,7 +30028,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36715,11 +30038,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -36727,7 +30047,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36737,11 +30057,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -36749,7 +30066,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36759,11 +30076,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -36771,7 +30085,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36781,11 +30095,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -36793,7 +30104,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36803,11 +30114,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -36815,7 +30123,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36825,11 +30133,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -36837,7 +30142,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36847,11 +30152,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -36859,7 +30161,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36869,11 +30171,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -36881,7 +30180,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36891,11 +30190,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -36903,7 +30199,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36913,11 +30209,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -36925,7 +30218,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36935,11 +30228,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -36947,7 +30237,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37030,26 +30320,18 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_WITH_OPTIONAL_ARG_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -37062,14 +30344,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -37082,19 +30364,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37103,19 +30383,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37124,11 +30402,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37136,7 +30411,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37146,11 +30421,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37158,7 +30430,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37168,11 +30440,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "ASC", ...(undefined != null ? { @@ -37180,7 +30449,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37190,11 +30459,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "DESC", ...(undefined != null ? { @@ -37202,7 +30468,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37212,11 +30478,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -37224,7 +30487,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37234,11 +30497,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -37246,7 +30506,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37256,11 +30516,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -37268,7 +30525,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37278,11 +30535,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -37290,7 +30544,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37299,8 +30553,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37313,17 +30567,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, headline: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "headline", @@ -37336,17 +30588,15 @@ export const plans = { type: "attribute", attribute: "headline", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.headline.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -37359,17 +30609,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -37382,17 +30630,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enums: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enums", @@ -37405,17 +30651,15 @@ export const plans = { type: "attribute", attribute: "enums", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.enums.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anEnumArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, comptypes: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "comptypes", @@ -37428,47 +30672,46 @@ export const plans = { type: "attribute", attribute: "comptypes", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.comptypes.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, comptypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedWithOptionalArg: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_post_computed_with_optional_argPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_post_computed_with_optional_argPgResource.codec)}`); } } } }, ComptypeInput: { - "__inputPlan": function ComptypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, schedule: { - applyPlan($insert, val) { - $insert.set("schedule", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("schedule", bakedInputRuntime(schema, field.type, val)); + } }, isOptimised: { - applyPlan($insert, val) { - $insert.set("is_optimised", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_optimised", bakedInputRuntime(schema, field.type, val)); + } } }, ForeignKeysConnection: { @@ -37520,23 +30763,12 @@ export const plans = { } }, ForeignKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PERSON_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -37544,7 +30776,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37554,11 +30786,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -37566,7 +30795,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37576,11 +30805,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "ASC", ...(undefined != null ? { @@ -37588,7 +30814,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37598,11 +30824,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "DESC", ...(undefined != null ? { @@ -37610,7 +30833,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37620,11 +30843,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "ASC", ...(undefined != null ? { @@ -37632,7 +30852,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37642,11 +30862,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "DESC", ...(undefined != null ? { @@ -37654,7 +30871,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37663,8 +30880,8 @@ export const plans = { }, ForeignKeyCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -37677,17 +30894,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_1", @@ -37700,17 +30915,15 @@ export const plans = { type: "attribute", attribute: "compound_key_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_2", @@ -37723,13 +30936,11 @@ export const plans = { type: "attribute", attribute: "compound_key_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecret: { @@ -37800,31 +31011,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37833,19 +31034,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37854,11 +31053,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -37866,7 +31062,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37876,11 +31072,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -37888,7 +31081,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37898,11 +31091,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -37910,7 +31100,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37920,11 +31110,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -37932,7 +31119,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37942,11 +31129,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -37954,7 +31138,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37964,11 +31148,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -37976,7 +31157,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37985,8 +31166,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -37999,17 +31180,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -38022,17 +31201,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -38045,13 +31222,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTable: { @@ -38594,8 +31769,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -38608,17 +31783,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -38631,17 +31804,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -38654,17 +31825,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -38677,17 +31846,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -38700,17 +31867,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -38723,17 +31888,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -38746,17 +31909,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -38769,17 +31930,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -38792,17 +31951,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -38815,17 +31972,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -38838,40 +31993,38 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, NonUpdatableViewsConnection: { @@ -38906,23 +32059,12 @@ export const plans = { } }, NonUpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COLUMN_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "ASC", ...(undefined != null ? { @@ -38930,7 +32072,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38940,11 +32082,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "DESC", ...(undefined != null ? { @@ -38952,7 +32091,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38961,8 +32100,8 @@ export const plans = { }, NonUpdatableViewCondition: { column: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "?column?", @@ -38975,13 +32114,11 @@ export const plans = { type: "attribute", attribute: "?column?", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nonUpdatableView.attributes["?column?"].codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, InputsConnection: { @@ -39010,31 +32147,21 @@ export const plans = { } }, InputsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39043,19 +32170,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39064,11 +32189,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39076,7 +32198,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39086,11 +32208,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39098,7 +32217,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39107,8 +32226,8 @@ export const plans = { }, InputCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39121,13 +32240,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_inputs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PatchesConnection: { @@ -39156,31 +32273,21 @@ export const plans = { } }, PatchesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39189,19 +32296,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39210,11 +32315,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39222,7 +32324,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39232,11 +32334,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39244,7 +32343,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39253,8 +32352,8 @@ export const plans = { }, PatchCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39267,13 +32366,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_patchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedsConnection: { @@ -39302,31 +32399,21 @@ export const plans = { } }, ReservedsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39335,19 +32422,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39356,11 +32441,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39368,7 +32450,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39378,11 +32460,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39390,7 +32469,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39399,8 +32478,8 @@ export const plans = { }, ReservedCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39413,13 +32492,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedPatchRecordsConnection: { @@ -39448,31 +32525,21 @@ export const plans = { } }, ReservedPatchRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39481,19 +32548,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39502,11 +32567,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39514,7 +32576,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39524,11 +32586,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39536,7 +32595,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39545,8 +32604,8 @@ export const plans = { }, ReservedPatchRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39559,13 +32618,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedPatchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedInputRecordsConnection: { @@ -39594,31 +32651,21 @@ export const plans = { } }, ReservedInputRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39627,19 +32674,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39648,11 +32693,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39660,7 +32702,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39670,11 +32712,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39682,7 +32721,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39691,8 +32730,8 @@ export const plans = { }, ReservedInputRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39705,13 +32744,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedInput.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, DefaultValuesConnection: { @@ -39740,31 +32777,21 @@ export const plans = { } }, DefaultValuesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39773,19 +32800,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39794,11 +32819,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39806,7 +32828,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39816,11 +32838,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39828,7 +32847,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39838,11 +32857,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "ASC", ...(undefined != null ? { @@ -39850,7 +32866,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39860,11 +32876,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "DESC", ...(undefined != null ? { @@ -39872,7 +32885,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39881,8 +32894,8 @@ export const plans = { }, DefaultValueCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39895,17 +32908,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullValue: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "null_value", @@ -39918,13 +32929,11 @@ export const plans = { type: "attribute", attribute: "null_value", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.null_value.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NoPrimaryKeysConnection: { @@ -39953,23 +32962,12 @@ export const plans = { } }, NoPrimaryKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39977,7 +32975,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39987,11 +32985,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39999,7 +32994,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40009,11 +33004,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "ASC", ...(undefined != null ? { @@ -40021,7 +33013,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40031,11 +33023,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "DESC", ...(undefined != null ? { @@ -40043,7 +33032,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40052,8 +33041,8 @@ export const plans = { }, NoPrimaryKeyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40066,17 +33055,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, str: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str", @@ -40089,13 +33076,11 @@ export const plans = { type: "attribute", attribute: "str", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.str.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TestviewsConnection: { @@ -40136,23 +33121,12 @@ export const plans = { } }, TestviewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, TESTVIEWID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "ASC", ...(undefined != null ? { @@ -40160,7 +33134,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40170,11 +33144,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "DESC", ...(undefined != null ? { @@ -40182,7 +33153,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40192,11 +33163,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40204,7 +33172,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40214,11 +33182,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40226,7 +33191,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40236,11 +33201,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40248,7 +33210,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40258,11 +33220,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40270,7 +33229,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40279,8 +33238,8 @@ export const plans = { }, TestviewCondition: { testviewid: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "testviewid", @@ -40293,17 +33252,15 @@ export const plans = { type: "attribute", attribute: "testviewid", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.testviewid.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -40316,17 +33273,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -40339,13 +33294,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTablesConnection: { @@ -40374,31 +33327,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40407,19 +33350,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40428,11 +33369,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40440,7 +33378,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40450,11 +33388,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40462,7 +33397,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40472,11 +33407,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -40484,7 +33416,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40494,11 +33426,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -40506,7 +33435,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40515,8 +33444,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40529,17 +33458,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -40552,13 +33479,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -40587,31 +33512,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40620,19 +33535,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40641,11 +33554,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -40653,7 +33563,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40663,11 +33573,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -40675,7 +33582,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40685,11 +33592,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -40697,7 +33601,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40707,11 +33611,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -40719,7 +33620,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40728,8 +33629,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -40742,17 +33643,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -40765,13 +33664,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ViewTablesConnection: { @@ -40800,31 +33697,21 @@ export const plans = { } }, ViewTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40833,19 +33720,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40854,11 +33739,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40866,7 +33748,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40876,11 +33758,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40888,7 +33767,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40898,11 +33777,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40910,7 +33786,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40920,11 +33796,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40932,7 +33805,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40942,11 +33815,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40954,7 +33824,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40964,11 +33834,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40976,7 +33843,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40985,8 +33852,8 @@ export const plans = { }, ViewTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40999,17 +33866,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41022,17 +33887,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41045,13 +33908,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable1SConnection: { @@ -41080,31 +33941,21 @@ export const plans = { } }, SimilarTable1SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41113,19 +33964,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41134,11 +33983,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41146,7 +33992,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41156,11 +34002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41168,7 +34011,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41178,11 +34021,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -41190,7 +34030,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41200,11 +34040,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -41212,7 +34049,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41222,11 +34059,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -41234,7 +34068,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41244,11 +34078,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -41256,7 +34087,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41266,11 +34097,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41278,7 +34106,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41288,11 +34116,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41300,7 +34125,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41309,8 +34134,8 @@ export const plans = { }, SimilarTable1Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41323,17 +34148,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41346,17 +34169,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41369,17 +34190,15 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41392,13 +34211,11 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable2SConnection: { @@ -41427,31 +34244,21 @@ export const plans = { } }, SimilarTable2SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41460,19 +34267,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41481,11 +34286,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41493,7 +34295,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41503,11 +34305,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41515,7 +34314,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41525,11 +34324,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41537,7 +34333,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41547,11 +34343,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41559,7 +34352,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41569,11 +34362,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "ASC", ...(undefined != null ? { @@ -41581,7 +34371,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41591,11 +34381,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "DESC", ...(undefined != null ? { @@ -41603,7 +34390,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41613,11 +34400,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "ASC", ...(undefined != null ? { @@ -41625,7 +34409,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41635,11 +34419,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "DESC", ...(undefined != null ? { @@ -41647,7 +34428,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41656,8 +34437,8 @@ export const plans = { }, SimilarTable2Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41670,17 +34451,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41693,17 +34472,15 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col4: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col4", @@ -41716,17 +34493,15 @@ export const plans = { type: "attribute", attribute: "col4", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col4.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col5: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col5", @@ -41739,13 +34514,11 @@ export const plans = { type: "attribute", attribute: "col5", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col5.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UpdatableViewsConnection: { @@ -41789,23 +34562,12 @@ export const plans = { } }, UpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, X_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "ASC", ...(undefined != null ? { @@ -41813,7 +34575,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41823,11 +34585,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "DESC", ...(undefined != null ? { @@ -41835,7 +34594,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41845,11 +34604,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -41857,7 +34613,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41867,11 +34623,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -41879,7 +34632,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41889,11 +34642,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -41901,7 +34651,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41911,11 +34661,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -41923,7 +34670,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41933,11 +34680,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "ASC", ...(undefined != null ? { @@ -41945,7 +34689,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41955,11 +34699,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "DESC", ...(undefined != null ? { @@ -41967,7 +34708,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41976,8 +34717,8 @@ export const plans = { }, UpdatableViewCondition: { x: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "x", @@ -41990,17 +34731,15 @@ export const plans = { type: "attribute", attribute: "x", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.x.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -42013,17 +34752,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -42036,17 +34773,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constant: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constant", @@ -42059,13 +34794,11 @@ export const plans = { type: "attribute", attribute: "constant", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.constant.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -42094,31 +34827,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42127,19 +34850,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42148,11 +34869,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42160,7 +34878,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42170,11 +34888,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42182,7 +34897,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42192,11 +34907,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -42204,7 +34916,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42214,11 +34926,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -42226,7 +34935,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42236,11 +34945,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -42248,7 +34954,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42258,11 +34964,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -42270,7 +34973,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42280,11 +34983,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -42292,7 +34992,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42302,11 +35002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -42314,7 +35011,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42323,8 +35020,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42337,17 +35034,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -42360,17 +35055,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -42383,17 +35076,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -42406,13 +35097,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -42437,7 +35126,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs79(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -42452,27 +35141,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -42497,23 +35180,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -42521,7 +35193,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42531,11 +35203,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -42543,7 +35212,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42553,11 +35222,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -42565,7 +35231,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42575,11 +35241,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -42587,7 +35250,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42597,11 +35260,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -42609,7 +35269,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42619,11 +35279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -42631,7 +35288,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42640,8 +35297,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -42654,17 +35311,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -42677,17 +35332,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -42700,13 +35353,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -42735,31 +35386,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42768,19 +35409,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42789,11 +35428,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42801,7 +35437,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42811,11 +35447,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42823,7 +35456,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42833,11 +35466,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -42845,7 +35475,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42855,11 +35485,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -42867,7 +35494,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42877,11 +35504,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -42889,7 +35513,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42899,11 +35523,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -42911,7 +35532,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42921,11 +35542,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -42933,7 +35551,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42943,11 +35561,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -42955,7 +35570,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42964,8 +35579,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42978,17 +35593,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -43001,17 +35614,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -43024,17 +35635,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -43047,13 +35656,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -43082,31 +35689,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43115,19 +35712,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43136,11 +35731,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43148,7 +35740,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43158,11 +35750,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43170,7 +35759,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43180,11 +35769,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -43192,7 +35778,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43202,11 +35788,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -43214,7 +35797,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43223,8 +35806,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43237,17 +35820,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -43260,13 +35841,11 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ListsConnection: { @@ -43295,31 +35874,21 @@ export const plans = { } }, ListsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43328,19 +35897,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43349,11 +35916,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43361,7 +35925,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43371,11 +35935,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43383,7 +35944,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43392,8 +35953,8 @@ export const plans = { }, ListCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43406,17 +35967,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array", @@ -43429,17 +35988,15 @@ export const plans = { type: "attribute", attribute: "int_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array_nn", @@ -43452,17 +36009,15 @@ export const plans = { type: "attribute", attribute: "int_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -43475,17 +36030,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array_nn", @@ -43498,17 +36051,15 @@ export const plans = { type: "attribute", attribute: "enum_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array", @@ -43521,17 +36072,15 @@ export const plans = { type: "attribute", attribute: "date_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array_nn", @@ -43544,17 +36093,15 @@ export const plans = { type: "attribute", attribute: "date_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array", @@ -43567,17 +36114,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array_nn", @@ -43590,17 +36135,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array", @@ -43613,17 +36156,15 @@ export const plans = { type: "attribute", attribute: "compound_type_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array_nn", @@ -43636,20 +36177,18 @@ export const plans = { type: "attribute", attribute: "compound_type_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs80(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43659,9 +36198,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43669,7 +36217,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs81(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43679,9 +36227,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43689,7 +36246,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs82(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43699,9 +36256,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43709,7 +36275,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs83(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43719,9 +36285,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43729,7 +36304,7 @@ export const plans = { }, returnVoidMutation: { plan($root, args, _info) { - const selectArgs = makeArgs84(args, ["input"]); + const selectArgs = makeArgs_return_void_mutation(args, ["input"]); const $result = resource_return_void_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43739,9 +36314,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43749,7 +36333,7 @@ export const plans = { }, mutationIntervalSet: { plan($root, args, _info) { - const selectArgs = makeArgs85(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_set(args, ["input"]); const $result = resource_mutation_interval_setPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43759,9 +36343,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43769,7 +36362,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs86(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43779,9 +36372,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43789,7 +36391,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs87(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43799,9 +36401,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43809,7 +36420,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs88(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43819,9 +36430,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43829,7 +36449,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs89(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43839,9 +36459,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43849,7 +36478,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs90(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43859,9 +36488,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43869,7 +36507,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs91(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43879,9 +36517,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43889,7 +36536,7 @@ export const plans = { }, add1Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs92(args, ["input"]); + const selectArgs = makeArgs_add_1_mutation(args, ["input"]); const $result = resource_add_1_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43899,9 +36546,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43909,7 +36565,7 @@ export const plans = { }, add2Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs93(args, ["input"]); + const selectArgs = makeArgs_add_2_mutation(args, ["input"]); const $result = resource_add_2_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43919,9 +36575,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43929,7 +36594,7 @@ export const plans = { }, add3Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs94(args, ["input"]); + const selectArgs = makeArgs_add_3_mutation(args, ["input"]); const $result = resource_add_3_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43939,9 +36604,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43949,7 +36623,7 @@ export const plans = { }, add4Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs95(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation(args, ["input"]); const $result = resource_add_4_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43959,9 +36633,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43969,7 +36652,7 @@ export const plans = { }, add4MutationError: { plan($root, args, _info) { - const selectArgs = makeArgs96(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation_error(args, ["input"]); const $result = resource_add_4_mutation_errorPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43979,9 +36662,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43989,7 +36681,7 @@ export const plans = { }, mult1: { plan($root, args, _info) { - const selectArgs = makeArgs97(args, ["input"]); + const selectArgs = makeArgs_mult_1(args, ["input"]); const $result = resource_mult_1PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43999,9 +36691,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44009,7 +36710,7 @@ export const plans = { }, mult2: { plan($root, args, _info) { - const selectArgs = makeArgs98(args, ["input"]); + const selectArgs = makeArgs_mult_2(args, ["input"]); const $result = resource_mult_2PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44019,9 +36720,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44029,7 +36739,7 @@ export const plans = { }, mult3: { plan($root, args, _info) { - const selectArgs = makeArgs99(args, ["input"]); + const selectArgs = makeArgs_mult_3(args, ["input"]); const $result = resource_mult_3PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44039,9 +36749,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44049,7 +36768,7 @@ export const plans = { }, mult4: { plan($root, args, _info) { - const selectArgs = makeArgs100(args, ["input"]); + const selectArgs = makeArgs_mult_4(args, ["input"]); const $result = resource_mult_4PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44059,9 +36778,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44069,7 +36797,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs101(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44079,9 +36807,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44089,7 +36826,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs102(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44099,9 +36836,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44109,7 +36855,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs103(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44119,9 +36865,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44129,7 +36884,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs104(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44139,9 +36894,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44149,7 +36913,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs105(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44159,9 +36923,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44169,7 +36942,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs106(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44179,9 +36952,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44189,7 +36971,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs107(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44199,9 +36981,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44209,7 +37000,7 @@ export const plans = { }, guidFn: { plan($root, args, _info) { - const selectArgs = makeArgs108(args, ["input"]); + const selectArgs = makeArgs_guid_fn(args, ["input"]); const $result = resource_guid_fnPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44219,9 +37010,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44229,7 +37029,7 @@ export const plans = { }, mutationIntervalArray: { plan($root, args, _info) { - const selectArgs = makeArgs109(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_array(args, ["input"]); const $result = resource_mutation_interval_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44239,9 +37039,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44249,7 +37058,7 @@ export const plans = { }, mutationTextArray: { plan($root, args, _info) { - const selectArgs = makeArgs110(args, ["input"]); + const selectArgs = makeArgs_mutation_text_array(args, ["input"]); const $result = resource_mutation_text_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44259,9 +37068,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44269,7 +37087,7 @@ export const plans = { }, listBdeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs111(args, ["input"]); + const selectArgs = makeArgs_list_bde_mutation(args, ["input"]); const $result = resource_list_bde_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44279,9 +37097,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44289,7 +37116,7 @@ export const plans = { }, authenticateFail: { plan($root, args, _info) { - const selectArgs = makeArgs112(args, ["input"]); + const selectArgs = makeArgs_authenticate_fail(args, ["input"]); const $result = resource_authenticate_failPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44299,9 +37126,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44309,7 +37145,7 @@ export const plans = { }, authenticate: { plan($root, args, _info) { - const selectArgs = makeArgs113(args, ["input"]); + const selectArgs = makeArgs_authenticate(args, ["input"]); const $result = resource_authenticatePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44319,9 +37155,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44329,7 +37174,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs114(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44339,9 +37184,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44349,7 +37203,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs115(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44359,9 +37213,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44369,7 +37232,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs116(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44379,9 +37242,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44389,7 +37261,7 @@ export const plans = { }, authenticateMany: { plan($root, args, _info) { - const selectArgs = makeArgs117(args, ["input"]); + const selectArgs = makeArgs_authenticate_many(args, ["input"]); const $result = resource_authenticate_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44399,9 +37271,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44409,7 +37290,7 @@ export const plans = { }, authenticatePayload: { plan($root, args, _info) { - const selectArgs = makeArgs118(args, ["input"]); + const selectArgs = makeArgs_authenticate_payload(args, ["input"]); const $result = resource_authenticate_payloadPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44419,9 +37300,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44429,7 +37319,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs119(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44439,9 +37329,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44449,7 +37348,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs120(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44459,9 +37358,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44469,7 +37377,7 @@ export const plans = { }, compoundTypeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs121(args, ["input"]); + const selectArgs = makeArgs_compound_type_mutation(args, ["input"]); const $result = resource_compound_type_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44479,9 +37387,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44489,7 +37406,7 @@ export const plans = { }, compoundTypeSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs122(args, ["input"]); + const selectArgs = makeArgs_compound_type_set_mutation(args, ["input"]); const $result = resource_compound_type_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44499,9 +37416,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44509,7 +37435,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs123(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44519,9 +37445,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44529,7 +37464,7 @@ export const plans = { }, postWithSuffix: { plan($root, args, _info) { - const selectArgs = makeArgs124(args, ["input"]); + const selectArgs = makeArgs_post_with_suffix(args, ["input"]); const $result = resource_post_with_suffixPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44539,9 +37474,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44549,7 +37493,7 @@ export const plans = { }, mutationCompoundTypeArray: { plan($root, args, _info) { - const selectArgs = makeArgs125(args, ["input"]); + const selectArgs = makeArgs_mutation_compound_type_array(args, ["input"]); const $result = resource_mutation_compound_type_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44559,9 +37503,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44569,7 +37522,7 @@ export const plans = { }, compoundTypeArrayMutation: { plan($root, args, _info) { - const selectArgs = makeArgs126(args, ["input"]); + const selectArgs = makeArgs_compound_type_array_mutation(args, ["input"]); const $result = resource_compound_type_array_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44579,9 +37532,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44589,7 +37551,7 @@ export const plans = { }, postMany: { plan($root, args, _info) { - const selectArgs = makeArgs127(args, ["input"]); + const selectArgs = makeArgs_post_many(args, ["input"]); const $result = resource_post_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44599,9 +37561,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44609,7 +37580,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs128(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44619,9 +37590,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44629,7 +37609,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs129(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44639,9 +37619,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44649,7 +37638,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs130(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44659,9 +37648,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44669,7 +37667,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs131(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44679,9 +37677,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44689,7 +37696,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs132(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44699,9 +37706,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44709,7 +37725,7 @@ export const plans = { }, typeFunctionConnectionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs133(args, ["input"]); + const selectArgs = makeArgs_type_function_connection_mutation(args, ["input"]); const $result = resource_type_function_connection_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44719,9 +37735,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44729,7 +37754,7 @@ export const plans = { }, typeFunctionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs134(args, ["input"]); + const selectArgs = makeArgs_type_function_mutation(args, ["input"]); const $result = resource_type_function_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44739,9 +37764,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44749,7 +37783,7 @@ export const plans = { }, typeFunctionListMutation: { plan($root, args, _info) { - const selectArgs = makeArgs135(args, ["input"]); + const selectArgs = makeArgs_type_function_list_mutation(args, ["input"]); const $result = resource_type_function_list_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44759,9 +37793,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44769,17 +37812,17 @@ export const plans = { }, createInput: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_inputsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_inputsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44789,17 +37832,17 @@ export const plans = { }, createPatch: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_patchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_patchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44809,17 +37852,17 @@ export const plans = { }, createReserved: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44829,17 +37872,17 @@ export const plans = { }, createReservedPatchRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44849,17 +37892,17 @@ export const plans = { }, createReservedInputRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44869,17 +37912,17 @@ export const plans = { }, createDefaultValue: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44889,17 +37932,17 @@ export const plans = { }, createForeignKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44909,17 +37952,17 @@ export const plans = { }, createNoPrimaryKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44929,17 +37972,17 @@ export const plans = { }, createTestview: { plan(_, args) { + const $insert = pgInsertSingle(resource_testviewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_testviewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44949,17 +37992,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44969,17 +38012,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44989,17 +38032,17 @@ export const plans = { }, createViewTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45009,17 +38052,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45029,17 +38072,17 @@ export const plans = { }, createSimilarTable1: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45049,17 +38092,17 @@ export const plans = { }, createSimilarTable2: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45069,17 +38112,17 @@ export const plans = { }, createUpdatableView: { plan(_, args) { + const $insert = pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45089,17 +38132,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45109,17 +38152,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45129,17 +38172,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45149,17 +38192,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45169,17 +38212,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45189,17 +38232,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45209,17 +38252,17 @@ export const plans = { }, createList: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_listsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_listsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45229,17 +38272,17 @@ export const plans = { }, createType: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45249,11 +38292,11 @@ export const plans = { }, updateInput: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45268,13 +38311,13 @@ export const plans = { }, updateInputById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45289,11 +38332,11 @@ export const plans = { }, updatePatch: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45308,13 +38351,13 @@ export const plans = { }, updatePatchById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45329,11 +38372,11 @@ export const plans = { }, updateReserved: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45348,13 +38391,13 @@ export const plans = { }, updateReservedById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45369,11 +38412,11 @@ export const plans = { }, updateReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45388,13 +38431,13 @@ export const plans = { }, updateReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45409,11 +38452,11 @@ export const plans = { }, updateReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45428,13 +38471,13 @@ export const plans = { }, updateReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45449,11 +38492,11 @@ export const plans = { }, updateDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45468,13 +38511,13 @@ export const plans = { }, updateDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45489,13 +38532,13 @@ export const plans = { }, updateNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45510,11 +38553,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45529,13 +38572,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45550,11 +38593,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45569,13 +38612,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45590,11 +38633,11 @@ export const plans = { }, updateViewTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45609,13 +38652,13 @@ export const plans = { }, updateViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45630,11 +38673,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45649,14 +38692,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45671,11 +38714,11 @@ export const plans = { }, updateSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45690,13 +38733,13 @@ export const plans = { }, updateSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45711,11 +38754,11 @@ export const plans = { }, updateSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45730,13 +38773,13 @@ export const plans = { }, updateSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45751,11 +38794,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45770,13 +38813,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45791,11 +38834,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45810,13 +38853,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45831,13 +38874,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45852,11 +38895,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45871,13 +38914,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45892,11 +38935,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45911,13 +38954,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45932,11 +38975,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45951,13 +38994,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45972,13 +39015,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45993,11 +39036,11 @@ export const plans = { }, updateList: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)) + const $update = pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46012,13 +39055,13 @@ export const plans = { }, updateListById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46033,11 +39076,11 @@ export const plans = { }, updateType: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)) + const $update = pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46052,13 +39095,13 @@ export const plans = { }, updateTypeById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46073,11 +39116,11 @@ export const plans = { }, deleteInput: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46092,13 +39135,13 @@ export const plans = { }, deleteInputById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46113,11 +39156,11 @@ export const plans = { }, deletePatch: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46132,13 +39175,13 @@ export const plans = { }, deletePatchById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46153,11 +39196,11 @@ export const plans = { }, deleteReserved: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46172,13 +39215,13 @@ export const plans = { }, deleteReservedById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46193,11 +39236,11 @@ export const plans = { }, deleteReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46212,13 +39255,13 @@ export const plans = { }, deleteReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46233,11 +39276,11 @@ export const plans = { }, deleteReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46252,13 +39295,13 @@ export const plans = { }, deleteReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46273,11 +39316,11 @@ export const plans = { }, deleteDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46292,13 +39335,13 @@ export const plans = { }, deleteDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46313,13 +39356,13 @@ export const plans = { }, deleteNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46334,11 +39377,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46353,13 +39396,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46374,11 +39417,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46393,13 +39436,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46414,11 +39457,11 @@ export const plans = { }, deleteViewTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46433,13 +39476,13 @@ export const plans = { }, deleteViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46454,11 +39497,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46473,14 +39516,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46495,11 +39538,11 @@ export const plans = { }, deleteSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46514,13 +39557,13 @@ export const plans = { }, deleteSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46535,11 +39578,11 @@ export const plans = { }, deleteSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46554,13 +39597,13 @@ export const plans = { }, deleteSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46575,11 +39618,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46594,13 +39637,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46615,11 +39658,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46634,13 +39677,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46655,13 +39698,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46676,11 +39719,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46695,13 +39738,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46716,11 +39759,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46735,13 +39778,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46756,11 +39799,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46775,13 +39818,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46796,13 +39839,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46817,11 +39860,11 @@ export const plans = { }, deleteList: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)) + const $delete = pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46836,13 +39879,13 @@ export const plans = { }, deleteListById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46857,11 +39900,11 @@ export const plans = { }, deleteType: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)) + const $delete = pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46876,13 +39919,13 @@ export const plans = { }, deleteTypeById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46899,7 +39942,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -46910,16 +39954,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -46930,16 +39974,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46950,16 +39994,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46970,16 +40014,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ReturnVoidMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, query() { return rootValue(); @@ -46987,16 +40031,16 @@ export const plans = { }, ReturnVoidMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationIntervalSetPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47007,16 +40051,16 @@ export const plans = { }, MutationIntervalSetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -47027,17 +40071,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -47048,17 +40092,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47069,17 +40113,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47090,17 +40134,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47111,17 +40155,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47132,17 +40176,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, Add1MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47153,10 +40197,9 @@ export const plans = { }, Add1MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47164,7 +40207,8 @@ export const plans = { Add2MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47175,10 +40219,9 @@ export const plans = { }, Add2MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -47186,7 +40229,8 @@ export const plans = { Add3MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47197,10 +40241,9 @@ export const plans = { }, Add3MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, arg1: undefined @@ -47208,7 +40251,8 @@ export const plans = { Add4MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47219,10 +40263,9 @@ export const plans = { }, Add4MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47230,7 +40273,8 @@ export const plans = { Add4MutationErrorPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47241,10 +40285,9 @@ export const plans = { }, Add4MutationErrorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47252,7 +40295,8 @@ export const plans = { Mult1Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47263,10 +40307,9 @@ export const plans = { }, Mult1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47274,7 +40317,8 @@ export const plans = { Mult2Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47285,10 +40329,9 @@ export const plans = { }, Mult2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47296,7 +40339,8 @@ export const plans = { Mult3Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47307,10 +40351,9 @@ export const plans = { }, Mult3Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47318,7 +40361,8 @@ export const plans = { Mult4Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47329,10 +40373,9 @@ export const plans = { }, Mult4Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47340,7 +40383,8 @@ export const plans = { MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -47351,10 +40395,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -47362,7 +40405,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47382,16 +40426,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47411,16 +40455,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47440,16 +40484,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -47460,10 +40504,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -47472,7 +40515,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47495,16 +40539,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47524,17 +40568,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, GuidFnPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, guid($object) { return $object.get("result"); @@ -47550,17 +40594,17 @@ export const plans = { }, GuidFnInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, g: undefined }, MutationIntervalArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47571,16 +40615,16 @@ export const plans = { }, MutationIntervalArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationTextArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, strings($object) { return $object.get("result"); @@ -47591,16 +40635,16 @@ export const plans = { }, MutationTextArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ListBdeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, uuids($object) { return $object.get("result"); @@ -47611,10 +40655,9 @@ export const plans = { }, ListBdeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, b: undefined, d: undefined, @@ -47623,7 +40666,8 @@ export const plans = { AuthenticateFailPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47652,16 +40696,16 @@ export const plans = { }, AuthenticateFailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticatePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47672,10 +40716,9 @@ export const plans = { }, AuthenticateInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47684,7 +40727,8 @@ export const plans = { LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -47692,7 +40736,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47708,9 +40752,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47726,50 +40768,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -47777,7 +40821,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47793,9 +40837,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47806,16 +40848,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -47826,16 +40868,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticateManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtTokens($object) { return $object.get("result"); @@ -47846,10 +40888,9 @@ export const plans = { }, AuthenticateManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47858,7 +40899,8 @@ export const plans = { AuthenticatePayloadPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, authPayload($object) { return $object.get("result"); @@ -47897,10 +40939,9 @@ export const plans = { }, AuthenticatePayloadInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47909,7 +40950,8 @@ export const plans = { TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -47920,10 +40962,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47935,7 +40976,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47961,17 +41003,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, CompoundTypeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundType($object) { return $object.get("result"); @@ -47982,17 +41024,17 @@ export const plans = { }, CompoundTypeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48003,17 +41045,17 @@ export const plans = { }, CompoundTypeSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48021,7 +41063,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48037,9 +41079,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48055,17 +41095,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, PostWithSuffixPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48073,7 +41113,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48089,9 +41129,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48107,65 +41145,69 @@ export const plans = { }, PostWithSuffixInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: undefined, suffix: undefined }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, MutationCompoundTypeArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48176,17 +41218,17 @@ export const plans = { }, MutationCompoundTypeArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeArrayMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48197,17 +41239,17 @@ export const plans = { }, CompoundTypeArrayMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, PostManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, posts($object) { return $object.get("result"); @@ -48218,17 +41260,17 @@ export const plans = { }, PostManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, posts: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -48263,10 +41305,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48274,7 +41315,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -48309,10 +41351,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48320,7 +41361,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -48328,7 +41370,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48344,9 +41386,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48357,16 +41397,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48377,16 +41417,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48397,16 +41437,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionConnectionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48417,16 +41457,16 @@ export const plans = { }, TypeFunctionConnectionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -48434,7 +41474,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48450,9 +41490,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48473,17 +41511,17 @@ export const plans = { }, TypeFunctionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, TypeFunctionListMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48494,16 +41532,16 @@ export const plans = { }, TypeFunctionListMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateInputPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -48511,7 +41549,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48527,9 +41565,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48540,35 +41576,34 @@ export const plans = { }, CreateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, input: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, InputInput: { - "__inputPlan": function InputInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePatchPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -48576,7 +41611,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48592,9 +41627,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48605,35 +41638,34 @@ export const plans = { }, CreatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PatchInput: { - "__inputPlan": function PatchInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -48641,7 +41673,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48657,9 +41689,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48670,35 +41700,34 @@ export const plans = { }, CreateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reserved: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInput: { - "__inputPlan": function ReservedInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPatchRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -48706,7 +41735,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48722,9 +41751,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48735,35 +41762,34 @@ export const plans = { }, CreateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedPatchRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedPatchRecordInput: { - "__inputPlan": function ReservedPatchRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedInputRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -48771,7 +41797,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48787,9 +41813,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48800,35 +41824,34 @@ export const plans = { }, CreateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedInputRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInputRecordInput: { - "__inputPlan": function ReservedInputRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateDefaultValuePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -48836,7 +41859,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48852,9 +41875,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48865,42 +41886,42 @@ export const plans = { }, CreateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, defaultValue: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, DefaultValueInput: { - "__inputPlan": function DefaultValueInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, CreateForeignKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, foreignKey($object) { return $object.get("result"); @@ -48922,49 +41943,50 @@ export const plans = { }, CreateForeignKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, foreignKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ForeignKeyInput: { - "__inputPlan": function ForeignKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey1: { - applyPlan($insert, val) { - $insert.set("compound_key_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_1", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey2: { - applyPlan($insert, val) { - $insert.set("compound_key_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNoPrimaryKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -48975,42 +41997,42 @@ export const plans = { }, CreateNoPrimaryKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, noPrimaryKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NoPrimaryKeyInput: { - "__inputPlan": function NoPrimaryKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTestviewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, testview($object) { return $object.get("result"); @@ -49021,49 +42043,50 @@ export const plans = { }, CreateTestviewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, testview: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TestviewInput: { - "__inputPlan": function TestviewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, testviewid: { - applyPlan($insert, val) { - $insert.set("testviewid", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("testviewid", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -49071,7 +42094,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49087,9 +42110,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49100,42 +42121,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -49143,7 +42164,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49159,9 +42180,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49177,42 +42196,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateViewTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -49220,7 +42239,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49236,9 +42255,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49249,49 +42266,50 @@ export const plans = { }, CreateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, viewTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ViewTableInput: { - "__inputPlan": function ViewTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -49299,7 +42317,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49315,9 +42333,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49338,49 +42354,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable1Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -49388,7 +42405,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49404,9 +42421,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49417,56 +42432,58 @@ export const plans = { }, CreateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable1: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable1Input: { - "__inputPlan": function SimilarTable1Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable2Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -49474,7 +42491,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49490,9 +42507,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49503,56 +42518,58 @@ export const plans = { }, CreateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable2: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable2Input: { - "__inputPlan": function SimilarTable2Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, CreateUpdatableViewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, updatableView($object) { return $object.get("result"); @@ -49563,56 +42580,58 @@ export const plans = { }, CreateUpdatableViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, updatableView: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UpdatableViewInput: { - "__inputPlan": function UpdatableViewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, x: { - applyPlan($insert, val) { - $insert.set("x", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("x", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } }, constant: { - applyPlan($insert, val) { - $insert.set("constant", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constant", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -49620,7 +42639,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49636,9 +42655,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49649,56 +42666,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -49709,49 +42728,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -49759,7 +42779,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49775,9 +42795,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49793,56 +42811,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -49850,7 +42870,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49866,9 +42886,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49879,42 +42897,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -49922,7 +42940,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49938,9 +42956,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49956,23 +42972,23 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -49980,7 +42996,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49996,9 +43012,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50009,105 +43023,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, CreateListPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -50115,7 +43138,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50131,9 +43154,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50144,119 +43165,130 @@ export const plans = { }, CreateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, list: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ListInput: { - "__inputPlan": function ListInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -50264,7 +43296,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50280,9 +43312,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50303,371 +43333,418 @@ export const plans = { }, CreateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, type: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TypeInput: { - "__inputPlan": function TypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -50675,7 +43752,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50691,9 +43768,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50704,48 +43779,50 @@ export const plans = { }, UpdateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, InputPatch: { - "__inputPlan": function InputPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -50753,7 +43830,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50769,9 +43846,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50782,48 +43857,50 @@ export const plans = { }, UpdatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PatchPatch: { - "__inputPlan": function PatchPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -50831,7 +43908,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50847,9 +43924,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50860,48 +43935,50 @@ export const plans = { }, UpdateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatch: { - "__inputPlan": function ReservedPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -50909,7 +43986,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50925,9 +44002,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50938,48 +44013,50 @@ export const plans = { }, UpdateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatchRecordPatch: { - "__inputPlan": function ReservedPatchRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -50987,7 +44064,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51003,9 +44080,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51016,48 +44091,50 @@ export const plans = { }, UpdateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedInputRecordPatch: { - "__inputPlan": function ReservedInputRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -51065,7 +44142,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51081,9 +44158,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51094,55 +44169,58 @@ export const plans = { }, UpdateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DefaultValuePatch: { - "__inputPlan": function DefaultValuePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -51153,41 +44231,43 @@ export const plans = { }, UpdateNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, noPrimaryKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NoPrimaryKeyPatch: { - "__inputPlan": function NoPrimaryKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -51195,7 +44275,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51211,9 +44291,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51224,55 +44302,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -51280,7 +44361,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51296,9 +44377,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51314,55 +44393,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -51370,7 +44452,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51386,9 +44468,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51399,62 +44479,66 @@ export const plans = { }, UpdateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ViewTablePatch: { - "__inputPlan": function ViewTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -51462,7 +44546,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51478,9 +44562,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51501,63 +44583,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -51565,7 +44651,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51581,9 +44667,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51594,69 +44678,74 @@ export const plans = { }, UpdateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable1Patch: { - "__inputPlan": function SimilarTable1Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -51664,7 +44753,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51680,9 +44769,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51693,69 +44780,74 @@ export const plans = { }, UpdateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable2Patch: { - "__inputPlan": function SimilarTable2Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -51763,7 +44855,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51779,9 +44871,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51792,69 +44882,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -51862,7 +44957,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51878,9 +44973,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51896,83 +44989,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -51980,7 +45079,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51996,9 +45095,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52009,55 +45106,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -52065,7 +45165,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52081,9 +45181,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52099,83 +45197,90 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -52183,7 +45288,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52199,9 +45304,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52212,132 +45315,145 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -52345,7 +45461,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52361,9 +45477,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52374,132 +45488,146 @@ export const plans = { }, UpdateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ListPatch: { - "__inputPlan": function ListPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -52507,7 +45635,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52523,9 +45651,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52546,384 +45672,434 @@ export const plans = { }, UpdateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TypePatch: { - "__inputPlan": function TypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -52936,7 +46112,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52952,9 +46128,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52965,16 +46139,16 @@ export const plans = { }, DeleteInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -52982,7 +46156,8 @@ export const plans = { DeletePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -52995,7 +46170,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53011,9 +46186,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53024,16 +46197,16 @@ export const plans = { }, DeletePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53041,7 +46214,8 @@ export const plans = { DeleteReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -53054,7 +46228,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53070,9 +46244,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53083,16 +46255,16 @@ export const plans = { }, DeleteReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53100,7 +46272,8 @@ export const plans = { DeleteReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -53113,7 +46286,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53129,9 +46302,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53142,16 +46313,16 @@ export const plans = { }, DeleteReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53159,7 +46330,8 @@ export const plans = { DeleteReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -53172,7 +46344,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53188,9 +46360,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53201,16 +46371,16 @@ export const plans = { }, DeleteReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53218,7 +46388,8 @@ export const plans = { DeleteDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -53231,7 +46402,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53247,9 +46418,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53260,16 +46429,16 @@ export const plans = { }, DeleteDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53277,7 +46446,8 @@ export const plans = { DeleteNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -53288,8 +46458,8 @@ export const plans = { }, DeleteNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53297,7 +46467,8 @@ export const plans = { DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -53310,7 +46481,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53326,9 +46497,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53339,16 +46508,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53356,7 +46525,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -53369,7 +46539,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53385,9 +46555,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53403,16 +46571,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53420,7 +46588,8 @@ export const plans = { DeleteViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -53433,7 +46602,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53449,9 +46618,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53462,16 +46629,16 @@ export const plans = { }, DeleteViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53479,7 +46646,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -53492,7 +46660,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53508,9 +46676,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53531,16 +46697,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -53549,7 +46715,8 @@ export const plans = { DeleteSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -53562,7 +46729,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53578,9 +46745,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53591,16 +46756,16 @@ export const plans = { }, DeleteSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53608,7 +46773,8 @@ export const plans = { DeleteSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -53621,7 +46787,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53637,9 +46803,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53650,16 +46814,16 @@ export const plans = { }, DeleteSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53667,7 +46831,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -53680,7 +46845,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53696,9 +46861,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53709,16 +46872,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53726,7 +46889,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -53739,7 +46903,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53755,9 +46919,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53773,24 +46935,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53798,7 +46960,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -53811,7 +46974,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53827,9 +46990,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53840,16 +47001,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53857,7 +47018,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -53870,7 +47032,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53886,9 +47048,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53904,16 +47064,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53921,7 +47081,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -53934,7 +47095,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53950,9 +47111,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53963,24 +47122,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined @@ -53988,7 +47147,8 @@ export const plans = { DeleteListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -54001,7 +47161,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54017,9 +47177,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54030,16 +47188,16 @@ export const plans = { }, DeleteListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -54047,7 +47205,8 @@ export const plans = { DeleteTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -54060,7 +47219,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54076,9 +47235,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54099,16 +47256,16 @@ export const plans = { }, DeleteTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 4e3fabac38..0e652b0a20 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/enum_tables.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/enum_tables.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, enumCodec, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgSelectStep, TYPES, assertPgClassSingleStep, enumCodec, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -248,7 +250,7 @@ const spec_letterDescriptions_attributes_letter_via_view_codec_LetterAToDViaView } } }); -const spec_letterDescriptions = { +const letterDescriptionsCodec = recordCodec({ name: "letterDescriptions", identifier: letterDescriptionsIdentifier, attributes: { @@ -304,8 +306,7 @@ const spec_letterDescriptions = { } }, executor: executor -}; -const letterDescriptionsCodec = recordCodec(spec_letterDescriptions); +}); const referencingTableIdentifier = sql.identifier("enum_tables", "referencing_table"); const spec_referencingTable_attributes_enum_1_codec_EnumTheFirstEnum = enumCodec({ name: "EnumTheFirstEnum", @@ -399,7 +400,7 @@ const spec_referencingTable_attributes_simple_enum_codec_SimpleEnumEnum = enumCo } } }); -const spec_referencingTable = { +const referencingTableCodec = recordCodec({ name: "referencingTable", identifier: referencingTableIdentifier, attributes: { @@ -463,8 +464,7 @@ const spec_referencingTable = { } }, executor: executor -}; -const referencingTableCodec = recordCodec(spec_referencingTable); +}); const lotsOfEnumsIdentifier = sql.identifier("enum_tables", "lots_of_enums"); const spec_lotsOfEnums = { name: "lotsOfEnums", @@ -1086,6 +1086,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_letter_descriptionsPgResource.get(spec); }, @@ -1105,6 +1108,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_referencing_tablePgResource.get(spec); }, @@ -1117,6 +1123,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1147,95 +1154,51 @@ const fetcher2 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.ReferencingTable); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } -const argDetailsSimple = [{ +const argDetailsSimple_referencing_table_mutation = [{ graphqlArgName: "t", postgresArgName: "t", pgCodec: referencingTableCodec, required: true, fetcher: null }]; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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; -}; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_referencing_table_mutation = (args, path = []) => argDetailsSimple_referencing_table_mutation.map(details => makeArg(path, args, details)); const resource_referencing_table_mutationPgResource = registry.pgResources["referencing_table_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LetterDescription, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReferencingTable, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LetterDescription, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReferencingTable, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -2133,34 +2096,34 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, letterDescriptionById(_$root, args) { return pgResource_letter_descriptionsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, letterDescriptionByLetter(_$root, args) { return pgResource_letter_descriptionsPgResource.get({ - letter: args.get("letter") + letter: args.getRaw("letter") }); }, letterDescriptionByLetterViaView(_$root, args) { return pgResource_letter_descriptionsPgResource.get({ - letter_via_view: args.get("letterViaView") + letter_via_view: args.getRaw("letterViaView") }); }, referencingTableById(_$root, args) { return pgResource_referencing_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, letterDescription(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, referencingTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, allLetterDescriptions: { @@ -2171,7 +2134,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -2180,7 +2142,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -2189,7 +2150,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -2198,7 +2158,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -2207,7 +2166,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -2216,22 +2174,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LetterDescriptionsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -2245,7 +2199,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -2254,7 +2207,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -2263,7 +2215,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -2272,7 +2223,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -2281,7 +2231,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -2290,22 +2239,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReferencingTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -2460,31 +2405,21 @@ export const plans = { } }, LetterDescriptionsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { letter_descriptionsUniques[0].attributes.forEach(attributeName => { - const attribute = letterDescriptionsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2493,19 +2428,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { letter_descriptionsUniques[0].attributes.forEach(attributeName => { - const attribute = letterDescriptionsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2514,11 +2447,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -2526,7 +2456,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2536,11 +2466,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -2548,7 +2475,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2558,11 +2485,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "letter", direction: "ASC", ...(undefined != null ? { @@ -2570,7 +2494,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2580,11 +2504,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "letter", direction: "DESC", ...(undefined != null ? { @@ -2592,7 +2513,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2602,11 +2523,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "letter_via_view", direction: "ASC", ...(undefined != null ? { @@ -2614,7 +2532,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2624,11 +2542,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "letter_via_view", direction: "DESC", ...(undefined != null ? { @@ -2636,7 +2551,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2646,11 +2561,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -2658,7 +2570,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2668,11 +2580,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -2680,7 +2589,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2689,8 +2598,8 @@ export const plans = { }, LetterDescriptionCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -2703,17 +2612,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_letterDescriptions.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, letter: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "letter", @@ -2726,17 +2633,15 @@ export const plans = { type: "attribute", attribute: "letter", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_letterDescriptions.attributes.letter.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_letterDescriptions_attributes_letter_codec_LetterAToDEnum)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, letterViaView: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "letter_via_view", @@ -2749,17 +2654,15 @@ export const plans = { type: "attribute", attribute: "letter_via_view", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_letterDescriptions.attributes.letter_via_view.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_letterDescriptions_attributes_letter_via_view_codec_LetterAToDViaViewEnum)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -2772,13 +2675,11 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_letterDescriptions.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReferencingTablesConnection: { @@ -2807,31 +2708,21 @@ export const plans = { } }, ReferencingTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { referencing_tableUniques[0].attributes.forEach(attributeName => { - const attribute = referencingTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2840,19 +2731,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { referencing_tableUniques[0].attributes.forEach(attributeName => { - const attribute = referencingTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2861,11 +2750,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -2873,7 +2759,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2883,11 +2769,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -2895,7 +2778,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2905,11 +2788,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum_1", direction: "ASC", ...(undefined != null ? { @@ -2917,7 +2797,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2927,11 +2807,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum_1", direction: "DESC", ...(undefined != null ? { @@ -2939,7 +2816,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2949,11 +2826,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum_2", direction: "ASC", ...(undefined != null ? { @@ -2961,7 +2835,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2971,11 +2845,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum_2", direction: "DESC", ...(undefined != null ? { @@ -2983,7 +2854,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2993,11 +2864,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum_3", direction: "ASC", ...(undefined != null ? { @@ -3005,7 +2873,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3015,11 +2883,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum_3", direction: "DESC", ...(undefined != null ? { @@ -3027,7 +2892,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3037,11 +2902,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "simple_enum", direction: "ASC", ...(undefined != null ? { @@ -3049,7 +2911,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3059,11 +2921,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "simple_enum", direction: "DESC", ...(undefined != null ? { @@ -3071,7 +2930,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3080,8 +2939,8 @@ export const plans = { }, ReferencingTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -3094,17 +2953,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_referencingTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_1", @@ -3117,17 +2974,15 @@ export const plans = { type: "attribute", attribute: "enum_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_referencingTable.attributes.enum_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_referencingTable_attributes_enum_1_codec_EnumTheFirstEnum)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_2", @@ -3140,17 +2995,15 @@ export const plans = { type: "attribute", attribute: "enum_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_referencingTable.attributes.enum_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_referencingTable_attributes_enum_2_codec_EnumTheSecondEnum)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_3", @@ -3163,17 +3016,15 @@ export const plans = { type: "attribute", attribute: "enum_3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_referencingTable.attributes.enum_3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_referencingTable_attributes_enum_3_codec_LotsOfEnumsEnum3Enum)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, simpleEnum: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "simple_enum", @@ -3186,20 +3037,18 @@ export const plans = { type: "attribute", attribute: "simple_enum", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_referencingTable.attributes.simple_enum.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_referencingTable_attributes_simple_enum_codec_SimpleEnumEnum)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, referencingTableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs(args, ["input"]); + const selectArgs = makeArgs_referencing_table_mutation(args, ["input"]); const $result = resource_referencing_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -3209,9 +3058,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -3219,17 +3077,17 @@ export const plans = { }, createLetterDescription: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_letter_descriptionsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_letter_descriptionsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -3239,17 +3097,17 @@ export const plans = { }, createReferencingTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_referencing_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_referencing_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -3259,11 +3117,11 @@ export const plans = { }, updateLetterDescription: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_letter_descriptionsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_letter_descriptionsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -3278,13 +3136,13 @@ export const plans = { }, updateLetterDescriptionById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_letter_descriptionsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_letter_descriptionsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -3299,13 +3157,13 @@ export const plans = { }, updateLetterDescriptionByLetter: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_letter_descriptionsPgResource, { - letter: args.get(['input', "letter"]) - }) + const $update = pgUpdateSingle(pgResource_letter_descriptionsPgResource, { + letter: args.getRaw(['input', "letter"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -3320,13 +3178,13 @@ export const plans = { }, updateLetterDescriptionByLetterViaView: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_letter_descriptionsPgResource, { - letter_via_view: args.get(['input', "letterViaView"]) - }) + const $update = pgUpdateSingle(pgResource_letter_descriptionsPgResource, { + letter_via_view: args.getRaw(['input', "letterViaView"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -3341,11 +3199,11 @@ export const plans = { }, updateReferencingTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_referencing_tablePgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_referencing_tablePgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -3360,13 +3218,13 @@ export const plans = { }, updateReferencingTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_referencing_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_referencing_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -3381,11 +3239,11 @@ export const plans = { }, deleteLetterDescription: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_letter_descriptionsPgResource, specFromArgs3(args)) + const $delete = pgDeleteSingle(pgResource_letter_descriptionsPgResource, specFromArgs3(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -3400,13 +3258,13 @@ export const plans = { }, deleteLetterDescriptionById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_letter_descriptionsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_letter_descriptionsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -3421,13 +3279,13 @@ export const plans = { }, deleteLetterDescriptionByLetter: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_letter_descriptionsPgResource, { - letter: args.get(['input', "letter"]) - }) + const $delete = pgDeleteSingle(pgResource_letter_descriptionsPgResource, { + letter: args.getRaw(['input', "letter"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -3442,13 +3300,13 @@ export const plans = { }, deleteLetterDescriptionByLetterViaView: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_letter_descriptionsPgResource, { - letter_via_view: args.get(['input', "letterViaView"]) - }) + const $delete = pgDeleteSingle(pgResource_letter_descriptionsPgResource, { + letter_via_view: args.getRaw(['input', "letterViaView"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -3463,11 +3321,11 @@ export const plans = { }, deleteReferencingTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_referencing_tablePgResource, specFromArgs4(args)) + const $delete = pgDeleteSingle(pgResource_referencing_tablePgResource, specFromArgs4(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -3482,13 +3340,13 @@ export const plans = { }, deleteReferencingTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_referencing_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_referencing_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -3505,7 +3363,8 @@ export const plans = { ReferencingTableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -3516,57 +3375,60 @@ export const plans = { }, ReferencingTableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, t: undefined }, ReferencingTableInput: { - "__inputPlan": function ReferencingTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, enum1: { - applyPlan($insert, val) { - $insert.set("enum_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_1", bakedInputRuntime(schema, field.type, val)); + } }, enum2: { - applyPlan($insert, val) { - $insert.set("enum_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_2", bakedInputRuntime(schema, field.type, val)); + } }, enum3: { - applyPlan($insert, val) { - $insert.set("enum_3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_3", bakedInputRuntime(schema, field.type, val)); + } }, simpleEnum: { - applyPlan($insert, val) { - $insert.set("simple_enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("simple_enum", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLetterDescriptionPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, letterDescription($object) { return $object.get("result"); @@ -3574,7 +3436,7 @@ export const plans = { query() { return rootValue(); }, - letterDescriptionEdge($mutation, args, info) { + letterDescriptionEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -3590,9 +3452,7 @@ export const plans = { return pgResource_letter_descriptionsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LetterDescriptionsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -3603,56 +3463,58 @@ export const plans = { }, CreateLetterDescriptionInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, letterDescription: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LetterDescriptionInput: { - "__inputPlan": function LetterDescriptionInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, letter: { - applyPlan($insert, val) { - $insert.set("letter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("letter", bakedInputRuntime(schema, field.type, val)); + } }, letterViaView: { - applyPlan($insert, val) { - $insert.set("letter_via_view", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("letter_via_view", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReferencingTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, referencingTable($object) { return $object.get("result"); @@ -3660,7 +3522,7 @@ export const plans = { query() { return rootValue(); }, - referencingTableEdge($mutation, args, info) { + referencingTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -3676,9 +3538,7 @@ export const plans = { return pgResource_referencing_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReferencingTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -3689,23 +3549,23 @@ export const plans = { }, CreateReferencingTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, referencingTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UpdateLetterDescriptionPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, letterDescription($object) { return $object.get("result"); @@ -3713,7 +3573,7 @@ export const plans = { query() { return rootValue(); }, - letterDescriptionEdge($mutation, args, info) { + letterDescriptionEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -3729,9 +3589,7 @@ export const plans = { return pgResource_letter_descriptionsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LetterDescriptionsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -3742,97 +3600,104 @@ export const plans = { }, UpdateLetterDescriptionInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, letterDescriptionPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LetterDescriptionPatch: { - "__inputPlan": function LetterDescriptionPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, letter: { - applyPlan($insert, val) { - $insert.set("letter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("letter", bakedInputRuntime(schema, field.type, val)); + } }, letterViaView: { - applyPlan($insert, val) { - $insert.set("letter_via_view", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("letter_via_view", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLetterDescriptionByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, letterDescriptionPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLetterDescriptionByLetterInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, letter: undefined, letterDescriptionPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLetterDescriptionByLetterViaViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, letterViaView: undefined, letterDescriptionPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReferencingTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, referencingTable($object) { return $object.get("result"); @@ -3840,7 +3705,7 @@ export const plans = { query() { return rootValue(); }, - referencingTableEdge($mutation, args, info) { + referencingTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -3856,9 +3721,7 @@ export const plans = { return pgResource_referencing_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReferencingTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -3869,76 +3732,82 @@ export const plans = { }, UpdateReferencingTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, referencingTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReferencingTablePatch: { - "__inputPlan": function ReferencingTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, enum1: { - applyPlan($insert, val) { - $insert.set("enum_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_1", bakedInputRuntime(schema, field.type, val)); + } }, enum2: { - applyPlan($insert, val) { - $insert.set("enum_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_2", bakedInputRuntime(schema, field.type, val)); + } }, enum3: { - applyPlan($insert, val) { - $insert.set("enum_3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_3", bakedInputRuntime(schema, field.type, val)); + } }, simpleEnum: { - applyPlan($insert, val) { - $insert.set("simple_enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("simple_enum", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReferencingTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, referencingTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteLetterDescriptionPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, letterDescription($object) { return $object.get("result"); @@ -3951,7 +3820,7 @@ export const plans = { query() { return rootValue(); }, - letterDescriptionEdge($mutation, args, info) { + letterDescriptionEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -3967,9 +3836,7 @@ export const plans = { return pgResource_letter_descriptionsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LetterDescriptionsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -3980,32 +3847,32 @@ export const plans = { }, DeleteLetterDescriptionInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLetterDescriptionByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLetterDescriptionByLetterInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, letter: undefined }, DeleteLetterDescriptionByLetterViaViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, letterViaView: undefined @@ -4013,7 +3880,8 @@ export const plans = { DeleteReferencingTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, referencingTable($object) { return $object.get("result"); @@ -4026,7 +3894,7 @@ export const plans = { query() { return rootValue(); }, - referencingTableEdge($mutation, args, info) { + referencingTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -4042,9 +3910,7 @@ export const plans = { return pgResource_referencing_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReferencingTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -4055,16 +3921,16 @@ export const plans = { }, DeleteReferencingTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReferencingTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/foreignKey-smart-tag-autofix.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/foreignKey-smart-tag-autofix.1.export.mjs index e38efe61b3..72e4cb7dc4 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/foreignKey-smart-tag-autofix.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/foreignKey-smart-tag-autofix.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -434,7 +436,7 @@ const registryConfig_pgCodecs_SearchTestSummariesRecord_SearchTestSummariesRecor isAnonymous: true }); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -471,10 +473,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -515,8 +516,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -558,7 +558,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -604,10 +604,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -662,10 +661,9 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -711,10 +709,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -769,8 +766,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const issue756Identifier = sql.identifier("c", "issue756"); const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp", sql.identifier("c", "not_null_timestamp"), { description: undefined, @@ -786,7 +782,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -823,8 +819,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const compoundTypeIdentifier = sql.identifier("c", "compound_type"); const colorCodec = enumCodec({ name: "color", @@ -1360,7 +1355,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -1482,8 +1477,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -5446,6 +5440,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -5465,6 +5462,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -5485,6 +5485,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -5504,6 +5507,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -5523,6 +5529,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -5542,6 +5551,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -5561,6 +5573,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -5569,453 +5584,82 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple7 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple10 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -6028,240 +5672,25 @@ const argDetailsSimple10 = [{ required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple11 = []; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple12 = []; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple13 = []; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple14 = []; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -6280,56 +5709,13 @@ const argDetailsSimple15 = [{ required: true, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -6348,148 +5734,19 @@ const argDetailsSimple16 = [{ required: false, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple19 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -6526,104 +5783,18 @@ const argDetailsSimple19 = [{ required: true, fetcher: null }]; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple20 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -6642,154 +5813,25 @@ const argDetailsSimple21 = [{ required: true, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple22 = []; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple23 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -6802,52 +5844,9 @@ const argDetailsSimple24 = [{ required: true, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -6860,325 +5859,51 @@ const argDetailsSimple25 = [{ required: true, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple27 = []; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple28 = []; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -7253,347 +5978,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple32 = []; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple33 = []; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple35 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple36 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple37 = []; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -7612,52 +6036,9 @@ const argDetailsSimple38 = [{ required: false, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7676,52 +6057,9 @@ const argDetailsSimple39 = [{ required: false, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7740,52 +6078,9 @@ const argDetailsSimple40 = [{ required: false, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -7804,52 +6099,9 @@ const argDetailsSimple41 = [{ required: false, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple42 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7868,52 +6120,9 @@ const argDetailsSimple42 = [{ required: false, fetcher: null }]; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple43 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7926,194 +6135,22 @@ const argDetailsSimple43 = [{ required: true, fetcher: null }]; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs12 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs46(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -8128,82 +6165,33 @@ const getSelectPlanFromParentAndArgs12 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs13 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs47(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -8218,176 +6206,41 @@ const getSelectPlanFromParentAndArgs13 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -8455,549 +6308,76 @@ const parseValueLiteral = (ast, variables) => { } }; const resource_frmcdc_postPgResource = registry.pgResources["frmcdc_post"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple53 = []; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple54 = []; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple55 = []; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple56 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -9010,190 +6390,18 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple66 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -9212,294 +6420,36 @@ const argDetailsSimple66 = [{ required: true, fetcher: null }]; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple67 = []; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple68 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple69 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple72 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -9536,156 +6486,27 @@ const argDetailsSimple72 = [{ required: true, fetcher: null }]; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9698,52 +6519,9 @@ const argDetailsSimple75 = [{ required: true, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9756,243 +6534,71 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple77 = []; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple78 = []; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -14523,60 +11129,60 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -14593,7 +11199,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14602,7 +11207,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14611,7 +11215,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14620,7 +11223,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14629,7 +11231,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14638,15 +11239,15 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, funcInOut($root, args, _info) { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -14663,7 +11264,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14672,7 +11272,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14681,7 +11280,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14690,7 +11288,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14699,7 +11296,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14708,19 +11304,19 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -14737,7 +11333,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14746,7 +11341,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14755,7 +11349,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14764,7 +11357,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14773,7 +11365,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14782,11 +11373,11 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -14803,7 +11394,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14812,7 +11402,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14821,7 +11410,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14830,7 +11418,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14839,7 +11426,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14861,7 +11447,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14870,7 +11455,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14879,7 +11463,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14888,7 +11471,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14897,7 +11479,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14907,14 +11488,13 @@ export const plans = { }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14923,7 +11503,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14932,19 +11511,19 @@ export const plans = { } }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -14961,7 +11540,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14970,7 +11548,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14979,7 +11556,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14988,7 +11564,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14997,7 +11572,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15006,11 +11580,11 @@ export const plans = { } }, tableQuery($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -15027,7 +11601,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15036,7 +11609,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15045,7 +11617,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15054,7 +11625,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15063,7 +11633,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15085,7 +11654,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15094,7 +11662,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15103,7 +11670,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15112,7 +11678,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15121,7 +11686,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15130,7 +11694,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -15147,7 +11711,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15156,7 +11719,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15165,7 +11727,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15174,7 +11735,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15183,7 +11743,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15205,7 +11764,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15214,7 +11772,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15223,7 +11780,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15232,7 +11788,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15241,7 +11796,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15250,22 +11804,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15285,7 +11835,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15294,7 +11843,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15303,7 +11851,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15312,7 +11859,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15321,7 +11867,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15330,31 +11875,31 @@ export const plans = { } }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, allMyTables: { @@ -15365,7 +11910,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15374,7 +11918,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15383,7 +11926,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15392,7 +11934,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15401,7 +11942,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15410,22 +11950,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15439,7 +11975,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15448,7 +11983,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15457,7 +11991,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15466,7 +11999,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15475,7 +12007,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15484,22 +12015,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15513,7 +12040,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15522,7 +12048,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15531,7 +12056,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15540,7 +12064,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15549,7 +12072,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15558,22 +12080,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15587,7 +12105,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15596,7 +12113,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15605,7 +12121,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15614,7 +12129,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15623,7 +12137,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15632,22 +12145,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15661,7 +12170,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15670,7 +12178,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15679,7 +12186,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15688,7 +12194,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15697,7 +12202,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15706,22 +12210,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15735,7 +12235,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15744,7 +12243,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15753,7 +12251,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15762,7 +12259,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15771,7 +12267,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15780,22 +12275,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15809,7 +12300,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15818,7 +12308,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15827,7 +12316,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15836,7 +12324,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15845,7 +12332,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15854,22 +12340,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15883,7 +12365,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15892,7 +12373,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15901,7 +12381,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15910,7 +12389,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15919,7 +12397,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15928,22 +12405,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16011,7 +12484,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs31(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16026,27 +12499,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -16055,7 +12522,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs32(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16070,27 +12537,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -16099,7 +12560,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs33(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16114,27 +12575,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -16143,7 +12598,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs34(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16158,27 +12613,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -16187,7 +12636,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs35(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16202,27 +12651,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -16231,7 +12674,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs36(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16246,27 +12689,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -16275,7 +12712,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs37(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16290,27 +12727,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -16319,7 +12750,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs38(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16334,27 +12765,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -16363,7 +12788,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs39(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16378,27 +12803,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -16407,7 +12826,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs40(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16422,27 +12841,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -16451,7 +12864,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs41(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16466,27 +12879,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -16495,7 +12902,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs42(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16510,27 +12917,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -16539,7 +12940,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs43(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16554,27 +12955,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -16583,7 +12978,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs44(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16598,27 +12993,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -16627,7 +13016,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs45(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16642,27 +13031,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -16681,7 +13064,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16690,7 +13072,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16699,7 +13080,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16708,7 +13088,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16717,7 +13096,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16726,12 +13104,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -16751,7 +13126,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16760,7 +13134,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16769,7 +13142,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16778,7 +13150,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16787,7 +13158,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16799,7 +13169,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs48(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16814,27 +13184,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -16843,7 +13207,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs49(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16858,27 +13222,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -16943,7 +13301,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16952,7 +13309,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16961,7 +13317,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16970,7 +13325,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16979,7 +13333,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16988,22 +13341,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17020,7 +13369,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17029,7 +13377,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17038,7 +13385,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17047,7 +13393,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17056,7 +13401,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17065,22 +13409,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17097,7 +13437,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17106,7 +13445,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17115,7 +13453,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17124,7 +13461,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17133,7 +13469,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17142,22 +13477,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17232,7 +13563,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17247,27 +13578,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -17508,26 +13833,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -17540,14 +13857,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -17560,14 +13877,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -17580,14 +13897,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -17600,19 +13917,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17621,19 +13936,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17642,11 +13955,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -17654,7 +13964,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17664,11 +13974,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -17676,7 +13983,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17686,11 +13993,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -17698,7 +14002,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17708,11 +14012,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -17720,7 +14021,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17730,11 +14031,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -17742,7 +14040,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17752,11 +14050,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -17764,7 +14059,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17774,11 +14069,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -17786,7 +14078,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17796,11 +14088,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -17808,7 +14097,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17818,11 +14107,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -17830,7 +14116,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17840,11 +14126,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -17852,7 +14135,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17862,11 +14145,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -17874,7 +14154,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17884,11 +14164,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -17896,7 +14173,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17906,11 +14183,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -17918,7 +14192,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17928,11 +14202,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -17940,7 +14211,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17950,11 +14221,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -17962,7 +14230,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17972,11 +14240,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -17984,7 +14249,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17994,11 +14259,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -18006,7 +14268,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18016,11 +14278,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -18028,7 +14287,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18038,11 +14297,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -18050,7 +14306,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18060,11 +14316,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -18072,7 +14325,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18607,31 +14860,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18640,19 +14883,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18661,11 +14902,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -18673,7 +14911,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18683,11 +14921,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -18695,7 +14930,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18705,11 +14940,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -18717,7 +14949,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18727,11 +14959,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -18739,7 +14968,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18749,11 +14978,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -18761,7 +14987,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18771,11 +14997,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -18783,7 +15006,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18792,8 +15015,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -18806,17 +15029,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -18829,17 +15050,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -18852,13 +15071,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -18887,31 +15104,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18920,19 +15127,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18941,11 +15146,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -18953,7 +15155,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18963,11 +15165,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -18975,7 +15174,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18985,11 +15184,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -18997,7 +15193,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19007,11 +15203,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -19019,7 +15212,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19028,8 +15221,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -19042,17 +15235,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -19065,13 +15256,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecord: { @@ -19445,8 +15634,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -19459,17 +15648,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -19482,17 +15669,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -19505,17 +15690,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -19528,17 +15711,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -19551,17 +15732,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -19574,17 +15753,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -19597,17 +15774,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -19620,17 +15795,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -19643,17 +15816,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -19666,17 +15837,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -19689,40 +15858,38 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, MyTablesConnection: { @@ -19751,31 +15918,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19784,19 +15941,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19805,11 +15960,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -19817,7 +15969,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19827,11 +15979,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -19839,7 +15988,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19849,11 +15998,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -19861,7 +16007,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19871,11 +16017,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -19883,7 +16026,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19892,8 +16035,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -19906,17 +16049,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -19929,13 +16070,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -19964,31 +16103,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19997,19 +16126,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20018,11 +16145,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -20030,7 +16154,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20040,11 +16164,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -20052,7 +16173,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20062,11 +16183,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -20074,7 +16192,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20084,11 +16202,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -20096,7 +16211,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20106,11 +16221,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -20118,7 +16230,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20128,11 +16240,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -20140,7 +16249,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20150,11 +16259,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -20162,7 +16268,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20172,11 +16278,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -20184,7 +16287,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20193,8 +16296,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20207,17 +16310,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -20230,17 +16331,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -20253,17 +16352,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -20276,13 +16373,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -20307,7 +16402,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -20322,27 +16417,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -20367,23 +16456,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -20391,7 +16469,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20401,11 +16479,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -20413,7 +16488,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20423,11 +16498,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -20435,7 +16507,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20445,11 +16517,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -20457,7 +16526,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20467,11 +16536,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -20479,7 +16545,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20489,11 +16555,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -20501,7 +16564,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20510,8 +16573,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -20524,17 +16587,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -20547,17 +16608,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -20570,13 +16629,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -20605,31 +16662,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20638,19 +16685,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20659,11 +16704,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -20671,7 +16713,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20681,11 +16723,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -20693,7 +16732,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20703,11 +16742,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -20715,7 +16751,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20725,11 +16761,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -20737,7 +16770,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20747,11 +16780,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -20759,7 +16789,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20769,11 +16799,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -20781,7 +16808,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20791,11 +16818,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -20803,7 +16827,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20813,11 +16837,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -20825,7 +16846,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20834,8 +16855,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20848,17 +16869,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -20871,17 +16890,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -20894,17 +16911,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -20917,13 +16932,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -20952,31 +16965,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20985,19 +16988,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21006,11 +17007,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -21018,7 +17016,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21028,11 +17026,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -21040,7 +17035,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21050,11 +17045,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -21062,7 +17054,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21072,11 +17064,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -21084,7 +17073,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21093,8 +17082,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -21107,17 +17096,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -21130,20 +17117,18 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs52(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21153,9 +17138,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21163,7 +17157,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs53(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21173,9 +17167,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21183,7 +17186,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs54(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21193,9 +17196,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21203,7 +17215,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs55(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21213,9 +17225,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21223,7 +17244,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs56(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21233,9 +17254,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21243,7 +17273,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs57(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21253,9 +17283,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21263,7 +17302,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs58(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21273,9 +17312,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21283,7 +17331,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs59(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21293,9 +17341,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21303,7 +17360,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs60(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21313,9 +17370,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21323,7 +17389,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs61(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21333,9 +17399,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21343,7 +17418,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs62(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21353,9 +17428,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21363,7 +17447,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs63(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21373,9 +17457,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21383,7 +17476,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs64(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21393,9 +17486,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21403,7 +17505,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs65(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21413,9 +17515,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21423,7 +17534,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs66(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21433,9 +17544,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21443,7 +17563,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs67(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21453,9 +17573,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21463,7 +17592,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs68(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21473,9 +17602,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21483,7 +17621,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs69(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21493,9 +17631,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21503,7 +17650,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs70(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21513,9 +17660,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21523,7 +17679,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs71(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21533,9 +17689,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21543,7 +17708,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs72(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21553,9 +17718,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21563,7 +17737,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs73(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21573,9 +17747,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21583,7 +17766,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs74(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21593,9 +17776,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21603,7 +17795,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs75(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21613,9 +17805,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21623,7 +17824,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs76(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21633,9 +17834,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21643,7 +17853,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs77(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21653,9 +17863,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21663,7 +17882,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs78(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21673,9 +17892,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21683,7 +17911,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs79(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21693,9 +17921,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21703,17 +17940,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21723,17 +17960,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21743,17 +17980,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21763,17 +18000,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21783,17 +18020,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21803,17 +18040,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21823,17 +18060,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21843,17 +18080,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21863,11 +18100,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21882,13 +18119,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21903,11 +18140,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21922,13 +18159,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21943,11 +18180,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21962,14 +18199,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21984,11 +18221,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22003,13 +18240,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22024,11 +18261,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22043,13 +18280,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22064,13 +18301,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22085,11 +18322,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22104,13 +18341,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22125,11 +18362,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22144,13 +18381,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22165,13 +18402,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22186,11 +18423,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22205,13 +18442,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22226,11 +18463,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22245,13 +18482,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22266,11 +18503,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22285,14 +18522,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22307,11 +18544,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22326,13 +18563,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22347,11 +18584,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22366,13 +18603,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22387,13 +18624,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22408,11 +18645,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs13(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs13(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22427,13 +18664,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22448,11 +18685,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs14(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs14(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22467,13 +18704,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22488,13 +18725,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22511,7 +18748,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -22522,16 +18760,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -22542,16 +18780,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -22562,16 +18800,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -22582,16 +18820,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -22602,17 +18840,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -22623,17 +18861,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -22644,17 +18882,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -22665,17 +18903,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -22686,17 +18924,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -22707,17 +18945,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -22728,10 +18966,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -22739,7 +18976,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -22759,16 +18997,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -22788,16 +19026,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -22817,16 +19055,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -22837,10 +19075,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -22849,7 +19086,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -22872,16 +19110,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -22901,17 +19139,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -22919,7 +19157,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -22935,9 +19173,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -22953,50 +19189,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -23004,7 +19242,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23020,9 +19258,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23033,16 +19269,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -23053,16 +19289,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -23073,10 +19309,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -23088,7 +19323,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -23114,17 +19350,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -23135,17 +19371,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -23180,10 +19416,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -23191,7 +19426,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -23226,10 +19462,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -23237,7 +19472,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -23245,7 +19481,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23261,9 +19497,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23274,16 +19508,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -23294,16 +19528,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -23314,16 +19548,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -23331,7 +19565,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23347,9 +19581,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23360,42 +19592,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -23403,7 +19635,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23419,9 +19651,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23442,42 +19672,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -23485,7 +19715,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23501,9 +19731,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23524,49 +19752,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -23574,7 +19803,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23590,9 +19819,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23603,56 +19830,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -23663,49 +19892,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -23713,7 +19943,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23729,9 +19959,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23747,56 +19975,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -23804,7 +20034,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23820,9 +20050,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23833,42 +20061,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -23876,7 +20104,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23892,9 +20120,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23905,105 +20131,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -24011,7 +20246,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24027,9 +20262,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24040,55 +20273,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -24096,7 +20332,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24112,9 +20348,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24135,55 +20369,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -24191,7 +20428,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24207,9 +20444,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24230,63 +20465,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -24294,7 +20533,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24310,9 +20549,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24323,69 +20560,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -24393,7 +20635,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24409,9 +20651,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24427,83 +20667,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -24511,7 +20757,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24527,9 +20773,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24540,55 +20784,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -24596,7 +20843,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24612,9 +20859,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24625,132 +20870,145 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -24763,7 +21021,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24779,9 +21037,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24792,16 +21048,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -24809,7 +21065,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -24822,7 +21079,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24838,9 +21095,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24861,16 +21116,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -24878,7 +21133,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -24891,7 +21147,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24907,9 +21163,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24930,16 +21184,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -24948,7 +21202,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -24961,7 +21216,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24977,9 +21232,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24990,16 +21243,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -25007,7 +21260,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -25020,7 +21274,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25036,9 +21290,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25054,24 +21306,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -25079,7 +21331,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -25092,7 +21345,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25108,9 +21361,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25121,16 +21372,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -25138,7 +21389,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -25151,7 +21403,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25167,9 +21419,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25180,24 +21430,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/foreignKey-smart-tag-good.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/foreignKey-smart-tag-good.1.export.mjs index 7f7523f0b5..5fed9fd4ee 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/foreignKey-smart-tag-good.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/foreignKey-smart-tag-good.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -434,7 +436,7 @@ const registryConfig_pgCodecs_SearchTestSummariesRecord_SearchTestSummariesRecor isAnonymous: true }); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -471,10 +473,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -515,8 +516,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -558,7 +558,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -604,10 +604,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -662,10 +661,9 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -711,10 +709,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -769,8 +766,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const issue756Identifier = sql.identifier("c", "issue756"); const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp", sql.identifier("c", "not_null_timestamp"), { description: undefined, @@ -786,7 +782,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -823,8 +819,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const compoundTypeIdentifier = sql.identifier("c", "compound_type"); const colorCodec = enumCodec({ name: "color", @@ -1360,7 +1355,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -1482,8 +1477,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -5445,6 +5439,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -5464,6 +5461,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -5484,6 +5484,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -5503,6 +5506,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -5522,6 +5528,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -5541,6 +5550,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -5560,6 +5572,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -5568,453 +5583,82 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple7 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple10 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -6027,240 +5671,25 @@ const argDetailsSimple10 = [{ required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple11 = []; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple12 = []; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple13 = []; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple14 = []; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -6279,56 +5708,13 @@ const argDetailsSimple15 = [{ required: true, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -6347,148 +5733,19 @@ const argDetailsSimple16 = [{ required: false, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple19 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -6525,104 +5782,18 @@ const argDetailsSimple19 = [{ required: true, fetcher: null }]; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple20 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -6641,154 +5812,25 @@ const argDetailsSimple21 = [{ required: true, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple22 = []; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple23 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -6801,52 +5843,9 @@ const argDetailsSimple24 = [{ required: true, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -6859,325 +5858,51 @@ const argDetailsSimple25 = [{ required: true, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple27 = []; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple28 = []; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -7252,347 +5977,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple32 = []; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple33 = []; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple35 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple36 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple37 = []; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -7611,52 +6035,9 @@ const argDetailsSimple38 = [{ required: false, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7675,52 +6056,9 @@ const argDetailsSimple39 = [{ required: false, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7739,52 +6077,9 @@ const argDetailsSimple40 = [{ required: false, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -7803,52 +6098,9 @@ const argDetailsSimple41 = [{ required: false, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple42 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7867,52 +6119,9 @@ const argDetailsSimple42 = [{ required: false, fetcher: null }]; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple43 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7925,194 +6134,22 @@ const argDetailsSimple43 = [{ required: true, fetcher: null }]; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs12 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs46(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -8127,82 +6164,33 @@ const getSelectPlanFromParentAndArgs12 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs13 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs47(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -8217,176 +6205,41 @@ const getSelectPlanFromParentAndArgs13 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -8454,549 +6307,76 @@ const parseValueLiteral = (ast, variables) => { } }; const resource_frmcdc_postPgResource = registry.pgResources["frmcdc_post"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple53 = []; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple54 = []; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple55 = []; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple56 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -9009,190 +6389,18 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple66 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -9211,294 +6419,36 @@ const argDetailsSimple66 = [{ required: true, fetcher: null }]; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple67 = []; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple68 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple69 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple72 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -9535,156 +6485,27 @@ const argDetailsSimple72 = [{ required: true, fetcher: null }]; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9697,52 +6518,9 @@ const argDetailsSimple75 = [{ required: true, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9755,243 +6533,71 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple77 = []; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple78 = []; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -14566,65 +11172,65 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByAbout(_$root, args) { return pgResource_personPgResource.get({ - about: args.get("about") + about: args.getRaw("about") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -14641,7 +11247,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14650,7 +11255,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14659,7 +11263,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14668,7 +11271,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14677,7 +11279,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14686,15 +11287,15 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, funcInOut($root, args, _info) { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -14711,7 +11312,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14720,7 +11320,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14729,7 +11328,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14738,7 +11336,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14747,7 +11344,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14756,19 +11352,19 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -14785,7 +11381,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14794,7 +11389,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14803,7 +11397,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14812,7 +11405,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14821,7 +11413,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14830,11 +11421,11 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -14851,7 +11442,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14860,7 +11450,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14869,7 +11458,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14878,7 +11466,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14887,7 +11474,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14909,7 +11495,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14918,7 +11503,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14927,7 +11511,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14936,7 +11519,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14945,7 +11527,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14955,14 +11536,13 @@ export const plans = { }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14971,7 +11551,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14980,19 +11559,19 @@ export const plans = { } }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -15009,7 +11588,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15018,7 +11596,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15027,7 +11604,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15036,7 +11612,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15045,7 +11620,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15054,11 +11628,11 @@ export const plans = { } }, tableQuery($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -15075,7 +11649,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15084,7 +11657,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15093,7 +11665,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15102,7 +11673,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15111,7 +11681,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15133,7 +11702,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15142,7 +11710,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15151,7 +11718,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15160,7 +11726,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15169,7 +11734,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15178,7 +11742,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -15195,7 +11759,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15204,7 +11767,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15213,7 +11775,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15222,7 +11783,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15231,7 +11791,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15253,7 +11812,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15262,7 +11820,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15271,7 +11828,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15280,7 +11836,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15289,7 +11844,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15298,22 +11852,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15333,7 +11883,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15342,7 +11891,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15351,7 +11899,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15360,7 +11907,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15369,7 +11915,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15378,31 +11923,31 @@ export const plans = { } }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, allMyTables: { @@ -15413,7 +11958,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15422,7 +11966,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15431,7 +11974,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15440,7 +11982,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15449,7 +11990,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15458,22 +11998,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15487,7 +12023,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15496,7 +12031,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15505,7 +12039,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15514,7 +12047,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15523,7 +12055,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15532,22 +12063,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15561,7 +12088,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15570,7 +12096,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15579,7 +12104,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15588,7 +12112,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15597,7 +12120,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15606,22 +12128,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15635,7 +12153,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15644,7 +12161,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15653,7 +12169,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15662,7 +12177,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15671,7 +12185,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15680,22 +12193,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15709,7 +12218,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15718,7 +12226,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15727,7 +12234,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15736,7 +12242,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15745,7 +12250,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15754,22 +12258,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15783,7 +12283,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15792,7 +12291,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15801,7 +12299,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15810,7 +12307,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15819,7 +12315,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15828,22 +12323,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15857,7 +12348,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15866,7 +12356,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15875,7 +12364,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15884,7 +12372,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15893,7 +12380,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15902,22 +12388,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15931,7 +12413,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15940,7 +12421,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15949,7 +12429,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15958,7 +12437,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15967,7 +12445,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15976,22 +12453,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16059,7 +12532,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs31(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16074,27 +12547,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -16103,7 +12570,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs32(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16118,27 +12585,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -16147,7 +12608,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs33(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16162,27 +12623,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -16191,7 +12646,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs34(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16206,27 +12661,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -16235,7 +12684,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs35(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16250,27 +12699,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -16279,7 +12722,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs36(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16294,27 +12737,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -16323,7 +12760,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs37(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16338,27 +12775,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -16367,7 +12798,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs38(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16382,27 +12813,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -16411,7 +12836,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs39(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16426,27 +12851,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -16455,7 +12874,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs40(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16470,27 +12889,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -16499,7 +12912,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs41(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16514,27 +12927,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -16543,7 +12950,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs42(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16558,27 +12965,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -16587,7 +12988,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs43(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16602,27 +13003,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -16631,7 +13026,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs44(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16646,27 +13041,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -16675,7 +13064,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs45(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16690,27 +13079,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -16729,7 +13112,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16738,7 +13120,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16747,7 +13128,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16756,7 +13136,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16765,7 +13144,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16774,12 +13152,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -16799,7 +13174,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16808,7 +13182,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16817,7 +13190,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16826,7 +13198,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16835,7 +13206,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16847,7 +13217,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs48(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16862,27 +13232,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -16891,7 +13255,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs49(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16906,27 +13270,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -16991,7 +13349,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17000,7 +13357,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17009,7 +13365,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17018,7 +13373,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17027,7 +13381,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17036,22 +13389,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17068,7 +13417,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17077,7 +13425,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17086,7 +13433,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17095,7 +13441,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17104,7 +13449,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17113,22 +13457,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17145,7 +13485,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17154,7 +13493,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17163,7 +13501,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17172,7 +13509,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17181,7 +13517,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17190,22 +13525,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17280,7 +13611,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17295,27 +13626,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -17556,26 +13881,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -17588,14 +13905,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -17608,14 +13925,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -17628,14 +13945,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -17648,19 +13965,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17669,19 +13984,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17690,11 +14003,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -17702,7 +14012,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17712,11 +14022,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -17724,7 +14031,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17734,11 +14041,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -17746,7 +14050,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17756,11 +14060,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -17768,7 +14069,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17778,11 +14079,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -17790,7 +14088,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17800,11 +14098,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -17812,7 +14107,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17822,11 +14117,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -17834,7 +14126,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17844,11 +14136,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -17856,7 +14145,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17866,11 +14155,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -17878,7 +14164,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17888,11 +14174,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -17900,7 +14183,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17910,11 +14193,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -17922,7 +14202,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17932,11 +14212,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -17944,7 +14221,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17954,11 +14231,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -17966,7 +14240,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17976,11 +14250,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -17988,7 +14259,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17998,11 +14269,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -18010,7 +14278,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18020,11 +14288,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -18032,7 +14297,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18042,11 +14307,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -18054,7 +14316,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18064,11 +14326,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -18076,7 +14335,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18086,11 +14345,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -18098,7 +14354,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18108,11 +14364,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -18120,7 +14373,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18655,31 +14908,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18688,19 +14931,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18709,11 +14950,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -18721,7 +14959,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18731,11 +14969,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -18743,7 +14978,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18753,11 +14988,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -18765,7 +14997,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18775,11 +15007,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -18787,7 +15016,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18797,11 +15026,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -18809,7 +15035,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18819,11 +15045,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -18831,7 +15054,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18840,8 +15063,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -18854,17 +15077,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -18877,17 +15098,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -18900,13 +15119,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -18935,31 +15152,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18968,19 +15175,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18989,11 +15194,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -19001,7 +15203,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19011,11 +15213,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -19023,7 +15222,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19033,11 +15232,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -19045,7 +15241,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19055,11 +15251,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -19067,7 +15260,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19076,8 +15269,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -19090,17 +15283,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -19113,13 +15304,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecord: { @@ -19493,8 +15682,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -19507,17 +15696,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -19530,17 +15717,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -19553,17 +15738,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -19576,17 +15759,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -19599,17 +15780,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -19622,17 +15801,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -19645,17 +15822,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -19668,17 +15843,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -19691,17 +15864,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -19714,17 +15885,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -19737,40 +15906,38 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, MyTablesConnection: { @@ -19799,31 +15966,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19832,19 +15989,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19853,11 +16008,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -19865,7 +16017,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19875,11 +16027,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -19887,7 +16036,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19897,11 +16046,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -19909,7 +16055,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19919,11 +16065,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -19931,7 +16074,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19940,8 +16083,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -19954,17 +16097,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -19977,13 +16118,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -20007,36 +16146,26 @@ export const plans = { cursor($edge) { return $edge.cursor(); }, - node($edge) { - return $edge.node(); - } - }, - NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, + node($edge) { + return $edge.node(); + } + }, + NullTestRecordsOrderBy: { PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20045,19 +16174,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20066,11 +16193,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -20078,7 +16202,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20088,11 +16212,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -20100,7 +16221,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20110,11 +16231,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -20122,7 +16240,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20132,11 +16250,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -20144,7 +16259,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20154,11 +16269,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -20166,7 +16278,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20176,11 +16288,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -20188,7 +16297,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20198,11 +16307,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -20210,7 +16316,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20220,11 +16326,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -20232,7 +16335,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20241,8 +16344,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20255,17 +16358,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -20278,17 +16379,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -20301,17 +16400,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -20324,13 +16421,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -20355,7 +16450,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -20370,27 +16465,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -20415,23 +16504,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -20439,7 +16517,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20449,11 +16527,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -20461,7 +16536,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20471,11 +16546,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -20483,7 +16555,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20493,11 +16565,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -20505,7 +16574,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20515,11 +16584,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -20527,7 +16593,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20537,11 +16603,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -20549,7 +16612,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20558,8 +16621,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -20572,17 +16635,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -20595,17 +16656,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -20618,13 +16677,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -20653,31 +16710,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20686,19 +16733,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20707,11 +16752,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -20719,7 +16761,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20729,11 +16771,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -20741,7 +16780,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20751,11 +16790,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -20763,7 +16799,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20773,11 +16809,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -20785,7 +16818,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20795,11 +16828,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -20807,7 +16837,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20817,11 +16847,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -20829,7 +16856,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20839,11 +16866,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -20851,7 +16875,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20861,11 +16885,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -20873,7 +16894,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20882,8 +16903,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20896,17 +16917,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -20919,17 +16938,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -20942,17 +16959,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -20965,13 +16980,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -21000,31 +17013,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21033,19 +17036,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21054,11 +17055,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -21066,7 +17064,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21076,11 +17074,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -21088,7 +17083,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21098,11 +17093,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -21110,7 +17102,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21120,11 +17112,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -21132,7 +17121,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21141,8 +17130,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -21155,17 +17144,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -21178,20 +17165,18 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs52(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21201,9 +17186,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21211,7 +17205,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs53(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21221,9 +17215,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21231,7 +17234,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs54(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21241,9 +17244,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21251,7 +17263,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs55(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21261,9 +17273,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21271,7 +17292,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs56(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21281,9 +17302,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21291,7 +17321,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs57(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21301,9 +17331,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21311,7 +17350,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs58(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21321,9 +17360,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21331,7 +17379,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs59(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21341,9 +17389,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21351,7 +17408,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs60(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21361,9 +17418,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21371,7 +17437,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs61(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21381,9 +17447,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21391,7 +17466,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs62(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21401,9 +17476,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21411,7 +17495,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs63(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21421,9 +17505,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21431,7 +17524,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs64(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21441,9 +17534,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21451,7 +17553,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs65(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21461,9 +17563,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21471,7 +17582,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs66(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21481,9 +17592,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21491,7 +17611,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs67(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21501,9 +17621,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21511,7 +17640,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs68(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21521,9 +17650,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21531,7 +17669,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs69(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21541,9 +17679,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21551,7 +17698,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs70(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21561,9 +17708,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21571,7 +17727,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs71(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21581,9 +17737,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21591,7 +17756,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs72(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21601,9 +17766,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21611,7 +17785,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs73(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21621,9 +17795,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21631,7 +17814,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs74(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21641,9 +17824,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21651,7 +17843,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs75(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21661,9 +17853,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21671,7 +17872,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs76(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21681,9 +17882,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21691,7 +17901,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs77(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21701,9 +17911,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21711,7 +17930,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs78(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21721,9 +17940,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21731,7 +17959,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs79(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21741,9 +17969,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21751,17 +17988,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21771,17 +18008,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21791,17 +18028,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21811,17 +18048,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21831,17 +18068,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21851,17 +18088,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21871,17 +18108,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21891,17 +18128,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21911,11 +18148,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21930,13 +18167,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21951,11 +18188,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21970,13 +18207,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21991,11 +18228,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22010,14 +18247,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22032,11 +18269,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22051,13 +18288,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22072,11 +18309,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22091,13 +18328,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22112,13 +18349,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22133,11 +18370,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22152,13 +18389,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22173,11 +18410,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22192,13 +18429,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22213,13 +18450,13 @@ export const plans = { }, updatePersonByAbout: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - about: args.get(['input', "about"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + about: args.getRaw(['input', "about"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22234,13 +18471,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22255,11 +18492,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22274,13 +18511,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22295,11 +18532,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22314,13 +18551,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22335,11 +18572,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22354,14 +18591,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22376,11 +18613,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22395,13 +18632,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22416,11 +18653,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22435,13 +18672,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22456,13 +18693,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22477,11 +18714,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs13(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs13(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22496,13 +18733,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22517,11 +18754,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs14(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs14(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22536,13 +18773,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22557,13 +18794,13 @@ export const plans = { }, deletePersonByAbout: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - about: args.get(['input', "about"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + about: args.getRaw(['input', "about"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22578,13 +18815,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22601,7 +18838,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -22612,16 +18850,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -22632,16 +18870,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -22652,16 +18890,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -22672,16 +18910,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -22692,17 +18930,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -22713,17 +18951,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -22734,17 +18972,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -22755,17 +18993,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -22776,17 +19014,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -22797,17 +19035,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -22818,10 +19056,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -22829,7 +19066,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -22849,16 +19087,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -22878,16 +19116,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -22907,16 +19145,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -22927,10 +19165,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -22939,7 +19176,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -22962,16 +19200,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -22991,17 +19229,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -23009,7 +19247,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23025,9 +19263,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23043,50 +19279,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -23094,7 +19332,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23110,9 +19348,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23123,16 +19359,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -23143,16 +19379,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -23163,10 +19399,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -23178,7 +19413,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -23204,17 +19440,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -23225,17 +19461,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -23270,10 +19506,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -23281,7 +19516,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -23316,10 +19552,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -23327,7 +19562,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -23335,7 +19571,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23351,9 +19587,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23364,16 +19598,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -23384,16 +19618,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -23404,16 +19638,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -23421,7 +19655,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23437,9 +19671,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23450,42 +19682,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -23493,7 +19725,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23509,9 +19741,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23532,42 +19762,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -23575,7 +19805,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23591,9 +19821,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23614,49 +19842,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -23664,7 +19893,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23680,9 +19909,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23693,56 +19920,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -23753,49 +19982,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -23803,7 +20033,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23819,9 +20049,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23837,56 +20065,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -23894,7 +20124,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23910,9 +20140,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23923,42 +20151,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -23966,7 +20194,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23982,9 +20210,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23995,105 +20221,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -24101,7 +20336,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24117,9 +20352,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24130,55 +20363,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -24186,7 +20422,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24202,9 +20438,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24225,55 +20459,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -24281,7 +20518,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24297,9 +20534,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24320,63 +20555,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -24384,7 +20623,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24400,9 +20639,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24413,69 +20650,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -24483,7 +20725,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24499,9 +20741,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24517,83 +20757,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -24601,7 +20847,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24617,9 +20863,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24630,55 +20874,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -24686,7 +20933,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24702,9 +20949,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24715,146 +20960,160 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByAboutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, about: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -24867,7 +21126,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24883,9 +21142,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24896,16 +21153,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -24913,7 +21170,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -24926,7 +21184,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24942,9 +21200,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24965,16 +21221,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -24982,7 +21238,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -24995,7 +21252,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25011,9 +21268,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25034,16 +21289,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -25052,7 +21307,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -25065,7 +21321,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25081,9 +21337,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25094,16 +21348,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -25111,7 +21365,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -25124,7 +21379,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25140,9 +21395,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25158,24 +21411,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -25183,7 +21436,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -25196,7 +21450,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25212,9 +21466,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25225,16 +21477,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -25242,7 +21494,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -25255,7 +21508,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25271,9 +21524,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25284,32 +21535,32 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByAboutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, about: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined 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 166369c759..9382fcd786 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -478,7 +480,7 @@ const textArrayCodec = listOfCodec(TYPES.text, { name: "textArray" }); const nonUpdatableViewIdentifier = sql.identifier("a", "non_updatable_view"); -const spec_nonUpdatableView = { +const nonUpdatableViewCodec = recordCodec({ name: "nonUpdatableView", identifier: nonUpdatableViewIdentifier, attributes: { @@ -506,10 +508,9 @@ const spec_nonUpdatableView = { } }, executor: executor -}; -const nonUpdatableViewCodec = recordCodec(spec_nonUpdatableView); +}); const inputsIdentifier = sql.identifier("a", "inputs"); -const spec_inputs = { +const inputsCodec = recordCodec({ name: "inputs", identifier: inputsIdentifier, attributes: { @@ -537,10 +538,9 @@ const spec_inputs = { } }, executor: executor -}; -const inputsCodec = recordCodec(spec_inputs); +}); const patchsIdentifier = sql.identifier("a", "patchs"); -const spec_patchs = { +const patchsCodec = recordCodec({ name: "patchs", identifier: patchsIdentifier, attributes: { @@ -568,10 +568,9 @@ const spec_patchs = { } }, executor: executor -}; -const patchsCodec = recordCodec(spec_patchs); +}); const reservedIdentifier = sql.identifier("a", "reserved"); -const spec_reserved = { +const reservedCodec = recordCodec({ name: "reserved", identifier: reservedIdentifier, attributes: { @@ -599,10 +598,9 @@ const spec_reserved = { } }, executor: executor -}; -const reservedCodec = recordCodec(spec_reserved); +}); const reservedPatchsIdentifier = sql.identifier("a", "reservedPatchs"); -const spec_reservedPatchs = { +const reservedPatchsCodec = recordCodec({ name: "reservedPatchs", identifier: reservedPatchsIdentifier, attributes: { @@ -630,10 +628,9 @@ const spec_reservedPatchs = { } }, executor: executor -}; -const reservedPatchsCodec = recordCodec(spec_reservedPatchs); +}); const reservedInputIdentifier = sql.identifier("a", "reserved_input"); -const spec_reservedInput = { +const reservedInputCodec = recordCodec({ name: "reservedInput", identifier: reservedInputIdentifier, attributes: { @@ -661,10 +658,9 @@ const spec_reservedInput = { } }, executor: executor -}; -const reservedInputCodec = recordCodec(spec_reservedInput); +}); const defaultValueIdentifier = sql.identifier("a", "default_value"); -const spec_defaultValue = { +const defaultValueCodec = recordCodec({ name: "defaultValue", identifier: defaultValueIdentifier, attributes: { @@ -701,10 +697,9 @@ const spec_defaultValue = { } }, executor: executor -}; -const defaultValueCodec = recordCodec(spec_defaultValue); +}); const foreignKeyIdentifier = sql.identifier("a", "foreign_key"); -const spec_foreignKey = { +const foreignKeyCodec = recordCodec({ name: "foreignKey", identifier: foreignKeyIdentifier, attributes: { @@ -750,10 +745,9 @@ const spec_foreignKey = { } }, executor: executor -}; -const foreignKeyCodec = recordCodec(spec_foreignKey); +}); const noPrimaryKeyIdentifier = sql.identifier("a", "no_primary_key"); -const spec_noPrimaryKey = { +const noPrimaryKeyCodec = recordCodec({ name: "noPrimaryKey", identifier: noPrimaryKeyIdentifier, attributes: { @@ -790,10 +784,9 @@ const spec_noPrimaryKey = { } }, executor: executor -}; -const noPrimaryKeyCodec = recordCodec(spec_noPrimaryKey); +}); const testviewIdentifier = sql.identifier("a", "testview"); -const spec_testview = { +const testviewCodec = recordCodec({ name: "testview", identifier: testviewIdentifier, attributes: { @@ -839,8 +832,7 @@ const spec_testview = { } }, executor: executor -}; -const testviewCodec = recordCodec(spec_testview); +}); const uniqueForeignKeyIdentifier = sql.identifier("a", "unique_foreign_key"); const spec_uniqueForeignKey = { name: "uniqueForeignKey", @@ -884,7 +876,7 @@ const spec_uniqueForeignKey = { }; const uniqueForeignKeyCodec = recordCodec(spec_uniqueForeignKey); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -921,10 +913,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -964,8 +955,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -1007,7 +997,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const viewTableIdentifier = sql.identifier("a", "view_table"); -const spec_viewTable = { +const viewTableCodec = recordCodec({ name: "viewTable", identifier: viewTableIdentifier, attributes: { @@ -1053,10 +1043,9 @@ const spec_viewTable = { } }, executor: executor -}; -const viewTableCodec = recordCodec(spec_viewTable); +}); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -1102,10 +1091,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const similarTable1Identifier = sql.identifier("a", "similar_table_1"); -const spec_similarTable1 = { +const similarTable1Codec = recordCodec({ name: "similarTable1", identifier: similarTable1Identifier, attributes: { @@ -1160,10 +1148,9 @@ const spec_similarTable1 = { } }, executor: executor -}; -const similarTable1Codec = recordCodec(spec_similarTable1); +}); const similarTable2Identifier = sql.identifier("a", "similar_table_2"); -const spec_similarTable2 = { +const similarTable2Codec = recordCodec({ name: "similarTable2", identifier: similarTable2Identifier, attributes: { @@ -1218,10 +1205,9 @@ const spec_similarTable2 = { } }, executor: executor -}; -const similarTable2Codec = recordCodec(spec_similarTable2); +}); const updatableViewIdentifier = sql.identifier("b", "updatable_view"); -const spec_updatableView = { +const updatableViewCodec = recordCodec({ name: "updatableView", identifier: updatableViewIdentifier, attributes: { @@ -1278,10 +1264,9 @@ const spec_updatableView = { } }, executor: executor -}; -const updatableViewCodec = recordCodec(spec_updatableView); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -1336,8 +1321,7 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const uuidArrayCodec = listOfCodec(TYPES.uuid, { extensions: { pg: { @@ -1354,7 +1338,7 @@ const uuidArrayCodec = listOfCodec(TYPES.uuid, { name: "uuidArray" }); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -1400,10 +1384,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -1458,8 +1441,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const jwtTokenIdentifier = sql.identifier("b", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -1541,7 +1523,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -1578,8 +1560,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const authPayloadIdentifier = sql.identifier("b", "auth_payload"); const authPayloadCodec = recordCodec({ name: "authPayload", @@ -2153,7 +2134,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -2275,8 +2256,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2594,7 +2574,7 @@ const byteaArrayCodec = listOfCodec(TYPES.bytea, { description: undefined, name: "byteaArray" }); -const spec_lists = { +const listsCodec = recordCodec({ name: "lists", identifier: listsIdentifier, attributes: { @@ -2730,8 +2710,7 @@ const spec_lists = { } }, executor: executor -}; -const listsCodec = recordCodec(spec_lists); +}); const typesIdentifier = sql.identifier("b", "types"); const anIntCodec = domainOfCodec(TYPES.int, "anInt", sql.identifier("a", "an_int"), { description: undefined, @@ -9225,6 +9204,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_inputsPgResource.get(spec); }, @@ -9244,6 +9226,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_patchsPgResource.get(spec); }, @@ -9263,6 +9248,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPgResource.get(spec); }, @@ -9282,6 +9270,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPatchsPgResource.get(spec); }, @@ -9301,6 +9292,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reserved_inputPgResource.get(spec); }, @@ -9320,6 +9314,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_default_valuePgResource.get(spec); }, @@ -9339,6 +9336,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -9358,6 +9358,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -9377,6 +9380,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_view_tablePgResource.get(spec); }, @@ -9397,6 +9403,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -9416,6 +9425,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_1PgResource.get(spec); }, @@ -9435,6 +9447,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_2PgResource.get(spec); }, @@ -9454,6 +9469,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -9473,6 +9491,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -9492,6 +9513,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -9511,6 +9535,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -9530,6 +9557,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -9549,6 +9579,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_listsPgResource.get(spec); }, @@ -9568,6 +9601,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_typesPgResource.get(spec); }, @@ -9578,553 +9614,96 @@ const nodeIdHandlerByTypeName = { }; const resource_no_primary_keyPgResource = registry.pgResources["no_primary_key"]; const resource_unique_foreign_keyPgResource = registry.pgResources["unique_foreign_key"]; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_query_interval_set = []; +const makeArgs_query_interval_set = (args, path = []) => argDetailsSimple_query_interval_set.map(details => makeArg(path, args, details)); const resource_query_interval_setPgResource = registry.pgResources["query_interval_set"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_query_interval_set(args); return resource_query_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple7 = []; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 argDetailsSimple_static_big_integer = []; +const makeArgs_static_big_integer = (args, path = []) => argDetailsSimple_static_big_integer.map(details => makeArg(path, args, details)); const resource_static_big_integerPgResource = registry.pgResources["static_big_integer"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_static_big_integer(args); return resource_static_big_integerPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple10 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple11 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple12 = [{ +const argDetailsSimple_add_1_query = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -10137,52 +9716,9 @@ const argDetailsSimple12 = [{ required: true, fetcher: null }]; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_query = (args, path = []) => argDetailsSimple_add_1_query.map(details => makeArg(path, args, details)); const resource_add_1_queryPgResource = registry.pgResources["add_1_query"]; -const argDetailsSimple13 = [{ +const argDetailsSimple_add_2_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10195,52 +9731,9 @@ const argDetailsSimple13 = [{ required: false, fetcher: null }]; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 makeArgs_add_2_query = (args, path = []) => argDetailsSimple_add_2_query.map(details => makeArg(path, args, details)); const resource_add_2_queryPgResource = registry.pgResources["add_2_query"]; -const argDetailsSimple14 = [{ +const argDetailsSimple_add_3_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10253,52 +9746,9 @@ const argDetailsSimple14 = [{ required: true, fetcher: null }]; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_query = (args, path = []) => argDetailsSimple_add_3_query.map(details => makeArg(path, args, details)); const resource_add_3_queryPgResource = registry.pgResources["add_3_query"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_add_4_query = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10311,52 +9761,9 @@ const argDetailsSimple15 = [{ required: false, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_query = (args, path = []) => argDetailsSimple_add_4_query.map(details => makeArg(path, args, details)); const resource_add_4_queryPgResource = registry.pgResources["add_4_query"]; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -10369,240 +9776,25 @@ const argDetailsSimple16 = [{ required: true, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple19 = []; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple20 = []; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10621,52 +9813,9 @@ const argDetailsSimple21 = [{ required: false, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_1PgResource = registry.pgResources["optional_missing_middle_1"]; -const argDetailsSimple22 = [{ +const argDetailsSimple_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10685,52 +9834,9 @@ const argDetailsSimple22 = [{ required: false, fetcher: null }]; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 makeArgs_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_2PgResource = registry.pgResources["optional_missing_middle_2"]; -const argDetailsSimple23 = [{ +const argDetailsSimple_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10749,52 +9855,9 @@ const argDetailsSimple23 = [{ required: false, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_3PgResource = registry.pgResources["optional_missing_middle_3"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10813,52 +9876,9 @@ const argDetailsSimple24 = [{ required: false, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_4PgResource = registry.pgResources["optional_missing_middle_4"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10877,98 +9897,12 @@ const argDetailsSimple25 = [{ required: false, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_5PgResource = registry.pgResources["optional_missing_middle_5"]; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple27 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -10987,56 +9921,13 @@ const argDetailsSimple27 = [{ required: true, fetcher: null }]; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple28 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -11055,194 +9946,22 @@ const argDetailsSimple28 = [{ required: false, fetcher: null }]; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_query_interval_array = []; +const makeArgs_query_interval_array = (args, path = []) => argDetailsSimple_query_interval_array.map(details => makeArg(path, args, details)); const resource_query_interval_arrayPgResource = registry.pgResources["query_interval_array"]; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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 argDetailsSimple_query_text_array = []; +const makeArgs_query_text_array = (args, path = []) => argDetailsSimple_query_text_array.map(details => makeArg(path, args, details)); const resource_query_text_arrayPgResource = registry.pgResources["query_text_array"]; -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple32 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -11279,104 +9998,18 @@ const argDetailsSimple32 = [{ required: true, fetcher: null }]; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple33 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -11395,310 +10028,52 @@ const argDetailsSimple34 = [{ required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple35 = []; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs35(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple36 = [{ +const argDetailsSimple_compound_type_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_compound_type_query = (args, path = []) => argDetailsSimple_compound_type_query.map(details => makeArg(path, args, details)); const resource_compound_type_queryPgResource = registry.pgResources["compound_type_query"]; -const argDetailsSimple37 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_query_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[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 makeArgs_query_compound_type_array = (args, path = []) => argDetailsSimple_query_compound_type_array.map(details => makeArg(path, args, details)); const resource_query_compound_type_arrayPgResource = registry.pgResources["query_compound_type_array"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_compound_type_array_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_compound_type_array_query = (args, path = []) => argDetailsSimple_compound_type_array_query.map(details => makeArg(path, args, details)); const resource_compound_type_array_queryPgResource = registry.pgResources["compound_type_array_query"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11711,52 +10086,9 @@ const argDetailsSimple40 = [{ required: true, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11769,473 +10101,70 @@ const argDetailsSimple41 = [{ required: true, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs41(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple42 = []; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs42(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple43 = []; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs44(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs12 = ($root, args, _info) => { - const selectArgs = makeArgs45(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs13 = ($root, args, _info) => { - const selectArgs = makeArgs46(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_type_function_connection = []; +const makeArgs_type_function_connection = (args, path = []) => argDetailsSimple_type_function_connection.map(details => makeArg(path, args, details)); const resource_type_function_connectionPgResource = registry.pgResources["type_function_connection"]; const getSelectPlanFromParentAndArgs14 = ($root, args, _info) => { - const selectArgs = makeArgs47(args); + const selectArgs = makeArgs_type_function_connection(args); return resource_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_type_function = (args, path = []) => argDetailsSimple_type_function.map(details => makeArg(path, args, details)); const resource_type_functionPgResource = registry.pgResources["type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_type_function_list = []; +const makeArgs_type_function_list = (args, path = []) => argDetailsSimple_type_function_list.map(details => makeArg(path, args, details)); const resource_type_function_listPgResource = registry.pgResources["type_function_list"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -12410,347 +10339,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple53 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple54 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple55 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple56 = []; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12769,52 +10397,9 @@ const argDetailsSimple57 = [{ required: false, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12833,52 +10418,9 @@ const argDetailsSimple58 = [{ required: false, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12897,52 +10439,9 @@ const argDetailsSimple59 = [{ required: false, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12961,52 +10460,9 @@ const argDetailsSimple60 = [{ required: false, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -13025,52 +10481,9 @@ const argDetailsSimple61 = [{ required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -13083,194 +10496,22 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs65(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13285,82 +10526,33 @@ const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple66 = []; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs66(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13375,176 +10567,41 @@ const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple67 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple68 = []; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple69 = []; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -13555,57 +10612,14 @@ const coerce = string => { } return string; }; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_post_computed_interval_set = []; +const makeArgs_post_computed_interval_set = (args, path = []) => argDetailsSimple_post_computed_interval_set.map(details => makeArg(path, args, details)); const resource_post_computed_interval_setPgResource = registry.pgResources["post_computed_interval_set"]; const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs70(args); + const extraSelectArgs = makeArgs_post_computed_interval_set(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13620,228 +10634,50 @@ const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (resource_post_computed_interval_setPgResource.isUnique && !resource_post_computed_interval_setPgResource.codec.attributes && typeof resource_post_computed_interval_setPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${resource_post_computed_interval_setPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_setPgResource.from, resource_post_computed_interval_setPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_post_computed_interval_array = []; +const makeArgs_post_computed_interval_array = (args, path = []) => argDetailsSimple_post_computed_interval_array.map(details => makeArg(path, args, details)); const resource_post_computed_interval_arrayPgResource = registry.pgResources["post_computed_interval_array"]; -const argDetailsSimple72 = []; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 argDetailsSimple_post_computed_text_array = []; +const makeArgs_post_computed_text_array = (args, path = []) => argDetailsSimple_post_computed_text_array.map(details => makeArg(path, args, details)); const resource_post_computed_text_arrayPgResource = registry.pgResources["post_computed_text_array"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_post_computed_with_optional_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: false, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_post_computed_with_optional_arg = (args, path = []) => argDetailsSimple_post_computed_with_optional_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_optional_argPgResource = registry.pgResources["post_computed_with_optional_arg"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_post_computed_with_required_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_post_computed_with_required_arg = (args, path = []) => argDetailsSimple_post_computed_with_required_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_required_argPgResource = registry.pgResources["post_computed_with_required_arg"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_post_headline_trimmed = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13854,52 +10690,9 @@ const argDetailsSimple75 = [{ required: false, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_post_headline_trimmed = (args, path = []) => argDetailsSimple_post_headline_trimmed.map(details => makeArg(path, args, details)); const resource_post_headline_trimmedPgResource = registry.pgResources["post_headline_trimmed"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_post_headline_trimmed_no_defaults = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13912,52 +10705,9 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_post_headline_trimmed_no_defaults = (args, path = []) => argDetailsSimple_post_headline_trimmed_no_defaults.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_no_defaultsPgResource = registry.pgResources["post_headline_trimmed_no_defaults"]; -const argDetailsSimple77 = [{ +const argDetailsSimple_post_headline_trimmed_strict = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13970,102 +10720,16 @@ const argDetailsSimple77 = [{ required: false, fetcher: null }]; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 makeArgs_post_headline_trimmed_strict = (args, path = []) => argDetailsSimple_post_headline_trimmed_strict.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_strictPgResource = registry.pgResources["post_headline_trimmed_strict"]; -const argDetailsSimple78 = [{ +const argDetailsSimple_post_computed_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 makeArgs_post_computed_compound_type_array = (args, path = []) => argDetailsSimple_post_computed_compound_type_array.map(details => makeArg(path, args, details)); const resource_post_computed_compound_type_arrayPgResource = registry.pgResources["post_computed_compound_type_array"]; const resource_frmcdc_comptypePgResource = registry.pgResources["frmcdc_comptype"]; const resource_frmcdc_nestedCompoundTypePgResource = registry.pgResources["frmcdc_nestedCompoundType"]; @@ -14123,641 +10787,82 @@ const parseValueLiteral = (ast, variables) => { return undefined; } }; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple80 = []; -const makeArgs80 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple80[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple81 = []; -const makeArgs81 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple81[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple82 = []; -const makeArgs82 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple82[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple83 = []; -const makeArgs83 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple83[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple84 = []; -const makeArgs84 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple84[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 argDetailsSimple_return_void_mutation = []; +const makeArgs_return_void_mutation = (args, path = []) => argDetailsSimple_return_void_mutation.map(details => makeArg(path, args, details)); const resource_return_void_mutationPgResource = registry.pgResources["return_void_mutation"]; -const argDetailsSimple85 = []; -const makeArgs85 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple85[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 argDetailsSimple_mutation_interval_set = []; +const makeArgs_mutation_interval_set = (args, path = []) => argDetailsSimple_mutation_interval_set.map(details => makeArg(path, args, details)); const resource_mutation_interval_setPgResource = registry.pgResources["mutation_interval_set"]; -const argDetailsSimple86 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs86 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple86[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple87 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs87 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple87[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple88 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs88 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple88[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple89 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs89 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple89[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple90 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs90 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple90[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple91 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs91 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple91[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple92 = [{ +const argDetailsSimple_add_1_mutation = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14770,52 +10875,9 @@ const argDetailsSimple92 = [{ required: true, fetcher: null }]; -const makeArgs92 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple92[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_mutation = (args, path = []) => argDetailsSimple_add_1_mutation.map(details => makeArg(path, args, details)); const resource_add_1_mutationPgResource = registry.pgResources["add_1_mutation"]; -const argDetailsSimple93 = [{ +const argDetailsSimple_add_2_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14828,52 +10890,9 @@ const argDetailsSimple93 = [{ required: false, fetcher: null }]; -const makeArgs93 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple93[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 makeArgs_add_2_mutation = (args, path = []) => argDetailsSimple_add_2_mutation.map(details => makeArg(path, args, details)); const resource_add_2_mutationPgResource = registry.pgResources["add_2_mutation"]; -const argDetailsSimple94 = [{ +const argDetailsSimple_add_3_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14886,52 +10905,9 @@ const argDetailsSimple94 = [{ required: true, fetcher: null }]; -const makeArgs94 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple94[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_mutation = (args, path = []) => argDetailsSimple_add_3_mutation.map(details => makeArg(path, args, details)); const resource_add_3_mutationPgResource = registry.pgResources["add_3_mutation"]; -const argDetailsSimple95 = [{ +const argDetailsSimple_add_4_mutation = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14944,52 +10920,9 @@ const argDetailsSimple95 = [{ required: false, fetcher: null }]; -const makeArgs95 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple95[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation = (args, path = []) => argDetailsSimple_add_4_mutation.map(details => makeArg(path, args, details)); const resource_add_4_mutationPgResource = registry.pgResources["add_4_mutation"]; -const argDetailsSimple96 = [{ +const argDetailsSimple_add_4_mutation_error = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -15002,52 +10935,9 @@ const argDetailsSimple96 = [{ required: false, fetcher: null }]; -const makeArgs96 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple96[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation_error = (args, path = []) => argDetailsSimple_add_4_mutation_error.map(details => makeArg(path, args, details)); const resource_add_4_mutation_errorPgResource = registry.pgResources["add_4_mutation_error"]; -const argDetailsSimple97 = [{ +const argDetailsSimple_mult_1 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15060,52 +10950,9 @@ const argDetailsSimple97 = [{ required: true, fetcher: null }]; -const makeArgs97 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple97[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_1 = (args, path = []) => argDetailsSimple_mult_1.map(details => makeArg(path, args, details)); const resource_mult_1PgResource = registry.pgResources["mult_1"]; -const argDetailsSimple98 = [{ +const argDetailsSimple_mult_2 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15118,52 +10965,9 @@ const argDetailsSimple98 = [{ required: true, fetcher: null }]; -const makeArgs98 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple98[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_2 = (args, path = []) => argDetailsSimple_mult_2.map(details => makeArg(path, args, details)); const resource_mult_2PgResource = registry.pgResources["mult_2"]; -const argDetailsSimple99 = [{ +const argDetailsSimple_mult_3 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15176,52 +10980,9 @@ const argDetailsSimple99 = [{ required: true, fetcher: null }]; -const makeArgs99 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple99[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_3 = (args, path = []) => argDetailsSimple_mult_3.map(details => makeArg(path, args, details)); const resource_mult_3PgResource = registry.pgResources["mult_3"]; -const argDetailsSimple100 = [{ +const argDetailsSimple_mult_4 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15234,52 +10995,9 @@ const argDetailsSimple100 = [{ required: true, fetcher: null }]; -const makeArgs100 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple100[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_4 = (args, path = []) => argDetailsSimple_mult_4.map(details => makeArg(path, args, details)); const resource_mult_4PgResource = registry.pgResources["mult_4"]; -const argDetailsSimple101 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -15292,190 +11010,18 @@ const argDetailsSimple101 = [{ required: true, fetcher: null }]; -const makeArgs101 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple101[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple102 = []; -const makeArgs102 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple102[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple103 = []; -const makeArgs103 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple103[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple104 = []; -const makeArgs104 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple104[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple105 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -15494,294 +11040,36 @@ const argDetailsSimple105 = [{ required: true, fetcher: null }]; -const makeArgs105 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple105[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple106 = []; -const makeArgs106 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple106[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple107 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs107 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple107[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple108 = [{ +const argDetailsSimple_guid_fn = [{ graphqlArgName: "g", postgresArgName: "g", pgCodec: guidCodec, required: true, fetcher: null }]; -const makeArgs108 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple108[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 makeArgs_guid_fn = (args, path = []) => argDetailsSimple_guid_fn.map(details => makeArg(path, args, details)); const resource_guid_fnPgResource = registry.pgResources["guid_fn"]; -const argDetailsSimple109 = []; -const makeArgs109 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple109[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 argDetailsSimple_mutation_interval_array = []; +const makeArgs_mutation_interval_array = (args, path = []) => argDetailsSimple_mutation_interval_array.map(details => makeArg(path, args, details)); const resource_mutation_interval_arrayPgResource = registry.pgResources["mutation_interval_array"]; -const argDetailsSimple110 = []; -const makeArgs110 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple110[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 argDetailsSimple_mutation_text_array = []; +const makeArgs_mutation_text_array = (args, path = []) => argDetailsSimple_mutation_text_array.map(details => makeArg(path, args, details)); const resource_mutation_text_arrayPgResource = registry.pgResources["mutation_text_array"]; -const argDetailsSimple111 = [{ +const argDetailsSimple_list_bde_mutation = [{ graphqlArgName: "b", postgresArgName: "b", pgCodec: textArrayCodec, @@ -15800,98 +11088,12 @@ const argDetailsSimple111 = [{ required: true, fetcher: null }]; -const makeArgs111 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple111[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 makeArgs_list_bde_mutation = (args, path = []) => argDetailsSimple_list_bde_mutation.map(details => makeArg(path, args, details)); const resource_list_bde_mutationPgResource = registry.pgResources["list_bde_mutation"]; -const argDetailsSimple112 = []; -const makeArgs112 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple112[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 argDetailsSimple_authenticate_fail = []; +const makeArgs_authenticate_fail = (args, path = []) => argDetailsSimple_authenticate_fail.map(details => makeArg(path, args, details)); const resource_authenticate_failPgResource = registry.pgResources["authenticate_fail"]; -const argDetailsSimple113 = [{ +const argDetailsSimple_authenticate = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15910,196 +11112,24 @@ const argDetailsSimple113 = [{ required: true, fetcher: null }]; -const makeArgs113 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple113[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 makeArgs_authenticate = (args, path = []) => argDetailsSimple_authenticate.map(details => makeArg(path, args, details)); const resource_authenticatePgResource = registry.pgResources["authenticate"]; -const argDetailsSimple114 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs114 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple114[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple115 = []; -const makeArgs115 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple115[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple116 = []; -const makeArgs116 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple116[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple117 = [{ +const argDetailsSimple_authenticate_many = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16118,52 +11148,9 @@ const argDetailsSimple117 = [{ required: true, fetcher: null }]; -const makeArgs117 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple117[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 makeArgs_authenticate_many = (args, path = []) => argDetailsSimple_authenticate_many.map(details => makeArg(path, args, details)); const resource_authenticate_manyPgResource = registry.pgResources["authenticate_many"]; -const argDetailsSimple118 = [{ +const argDetailsSimple_authenticate_payload = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16182,52 +11169,9 @@ const argDetailsSimple118 = [{ required: true, fetcher: null }]; -const makeArgs118 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple118[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 makeArgs_authenticate_payload = (args, path = []) => argDetailsSimple_authenticate_payload.map(details => makeArg(path, args, details)); const resource_authenticate_payloadPgResource = registry.pgResources["authenticate_payload"]; -const argDetailsSimple119 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -16264,312 +11208,54 @@ const argDetailsSimple119 = [{ required: true, fetcher: null }]; -const makeArgs119 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple119[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple120 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs120 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple120[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple121 = [{ +const argDetailsSimple_compound_type_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs121 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple121[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 makeArgs_compound_type_mutation = (args, path = []) => argDetailsSimple_compound_type_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_mutationPgResource = registry.pgResources["compound_type_mutation"]; -const argDetailsSimple122 = [{ +const argDetailsSimple_compound_type_set_mutation = [{ 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 makeArgs_compound_type_set_mutation = (args, path = []) => argDetailsSimple_compound_type_set_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_set_mutationPgResource = registry.pgResources["compound_type_set_mutation"]; -const argDetailsSimple123 = [{ +const argDetailsSimple_create_post = [{ graphqlArgName: "t", postgresArgName: "t", pgCodec: TYPES.text, 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 makeArgs_create_post = (args, path = []) => argDetailsSimple_create_post.map(details => makeArg(path, args, details)); const resource_create_postPgResource = registry.pgResources["create_post"]; -const argDetailsSimple124 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs124 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple124[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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple125 = [{ +const argDetailsSimple_post_with_suffix = [{ graphqlArgName: "post", postgresArgName: "post", pgCodec: postCodec, @@ -16582,208 +11268,36 @@ const argDetailsSimple125 = [{ required: true, fetcher: null }]; -const makeArgs125 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple125[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 makeArgs_post_with_suffix = (args, path = []) => argDetailsSimple_post_with_suffix.map(details => makeArg(path, args, details)); const resource_post_with_suffixPgResource = registry.pgResources["post_with_suffix"]; -const argDetailsSimple126 = [{ +const argDetailsSimple_mutation_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs126 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple126[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 makeArgs_mutation_compound_type_array = (args, path = []) => argDetailsSimple_mutation_compound_type_array.map(details => makeArg(path, args, details)); const resource_mutation_compound_type_arrayPgResource = registry.pgResources["mutation_compound_type_array"]; -const argDetailsSimple127 = [{ +const argDetailsSimple_compound_type_array_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs127 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple127[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 makeArgs_compound_type_array_mutation = (args, path = []) => argDetailsSimple_compound_type_array_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_array_mutationPgResource = registry.pgResources["compound_type_array_mutation"]; -const argDetailsSimple128 = [{ +const argDetailsSimple_post_many = [{ graphqlArgName: "posts", postgresArgName: "posts", pgCodec: postArrayCodec, required: true, fetcher: null }]; -const makeArgs128 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple128[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 makeArgs_post_many = (args, path = []) => argDetailsSimple_post_many.map(details => makeArg(path, args, details)); const resource_post_manyPgResource = registry.pgResources["post_many"]; -const argDetailsSimple129 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16796,52 +11310,9 @@ const argDetailsSimple129 = [{ required: true, fetcher: null }]; -const makeArgs129 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple129[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple130 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16854,483 +11325,182 @@ const argDetailsSimple130 = [{ required: true, fetcher: null }]; -const makeArgs130 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple130[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple131 = []; -const makeArgs131 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple131[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple132 = []; -const makeArgs132 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple132[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple133 = []; -const makeArgs133 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple133[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; -const argDetailsSimple134 = []; -const makeArgs134 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple134[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 argDetailsSimple_type_function_connection_mutation = []; +const makeArgs_type_function_connection_mutation = (args, path = []) => argDetailsSimple_type_function_connection_mutation.map(details => makeArg(path, args, details)); const resource_type_function_connection_mutationPgResource = registry.pgResources["type_function_connection_mutation"]; -const argDetailsSimple135 = [{ +const argDetailsSimple_type_function_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs135 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple135[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 makeArgs_type_function_mutation = (args, path = []) => argDetailsSimple_type_function_mutation.map(details => makeArg(path, args, details)); const resource_type_function_mutationPgResource = registry.pgResources["type_function_mutation"]; -const argDetailsSimple136 = []; -const makeArgs136 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple136[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 argDetailsSimple_type_function_list_mutation = []; +const makeArgs_type_function_list_mutation = (args, path = []) => argDetailsSimple_type_function_list_mutation.map(details => makeArg(path, args, details)); const resource_type_function_list_mutationPgResource = registry.pgResources["type_function_list_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs15 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs16 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs17 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs18 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs19 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const specFromArgs20 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs21 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs22 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs23 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs24 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs25 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs26 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs27 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs28 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs29 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs30 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs31 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs32 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs33 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs34 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs35 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs36 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs37 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs38 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const resource_frmcdc_jwtTokenPgResource = registry.pgResources["frmcdc_jwtToken"]; @@ -27795,131 +21965,131 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, inputById(_$root, args) { return pgResource_inputsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, patchById(_$root, args) { return pgResource_patchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedById(_$root, args) { return pgResource_reservedPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedPatchRecordById(_$root, args) { return pgResource_reservedPatchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedInputRecordById(_$root, args) { return pgResource_reserved_inputPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, defaultValueById(_$root, args) { return pgResource_default_valuePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, noPrimaryKeyById(_$root, args) { return resource_no_primary_keyPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, uniqueForeignKeyByCompoundKey1AndCompoundKey2(_$root, args) { return resource_unique_foreign_keyPgResource.get({ - compound_key_1: args.get("compoundKey1"), - compound_key_2: args.get("compoundKey2") + compound_key_1: args.getRaw("compoundKey1"), + compound_key_2: args.getRaw("compoundKey2") }); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, viewTableById(_$root, args) { return pgResource_view_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, similarTable1ById(_$root, args) { return pgResource_similar_table_1PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, similarTable2ById(_$root, args) { return pgResource_similar_table_2PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, listById(_$root, args) { return pgResource_listsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, typeById(_$root, args) { return pgResource_typesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -27936,7 +22106,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27945,7 +22114,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27954,7 +22122,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27963,7 +22130,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27972,7 +22138,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27981,11 +22146,11 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, queryIntervalSet: { @@ -28002,7 +22167,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28011,7 +22175,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28020,7 +22183,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28029,7 +22191,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28038,7 +22199,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28060,7 +22220,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28069,7 +22228,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28078,7 +22236,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28087,7 +22244,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28096,7 +22252,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28105,7 +22260,7 @@ export const plans = { } }, funcInOut($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -28122,7 +22277,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28131,7 +22285,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28140,7 +22293,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28149,7 +22301,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28158,7 +22309,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28167,35 +22317,35 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, add1Query($root, args, _info) { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_add_1_query(args); return resource_add_1_queryPgResource.execute(selectArgs); }, add2Query($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_add_2_query(args); return resource_add_2_queryPgResource.execute(selectArgs); }, add3Query($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_add_3_query(args); return resource_add_3_queryPgResource.execute(selectArgs); }, add4Query($root, args, _info) { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_add_4_query(args); return resource_add_4_queryPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -28212,7 +22362,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28221,7 +22370,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28230,7 +22378,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28239,7 +22386,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28248,7 +22394,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28257,19 +22402,18 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28278,7 +22422,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28287,27 +22430,27 @@ export const plans = { } }, optionalMissingMiddle1($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_optional_missing_middle_1(args); return resource_optional_missing_middle_1PgResource.execute(selectArgs); }, optionalMissingMiddle2($root, args, _info) { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_optional_missing_middle_2(args); return resource_optional_missing_middle_2PgResource.execute(selectArgs); }, optionalMissingMiddle3($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_optional_missing_middle_3(args); return resource_optional_missing_middle_3PgResource.execute(selectArgs); }, optionalMissingMiddle4($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_optional_missing_middle_4(args); return resource_optional_missing_middle_4PgResource.execute(selectArgs); }, optionalMissingMiddle5($root, args, _info) { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_optional_missing_middle_5(args); return resource_optional_missing_middle_5PgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -28324,7 +22467,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28333,7 +22475,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28342,7 +22483,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28351,7 +22491,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28360,7 +22499,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28382,7 +22520,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28391,7 +22528,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28400,7 +22536,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28409,7 +22544,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28418,7 +22552,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28427,27 +22560,27 @@ export const plans = { } }, queryIntervalArray($root, args, _info) { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_query_interval_array(args); return resource_query_interval_arrayPgResource.execute(selectArgs); }, queryTextArray($root, args, _info) { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_query_text_array(args); return resource_query_text_arrayPgResource.execute(selectArgs); }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs31(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs32(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs33(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs34(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -28464,7 +22597,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28473,7 +22605,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28482,7 +22613,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28491,7 +22621,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28500,7 +22629,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28509,23 +22637,23 @@ export const plans = { } }, compoundTypeQuery($root, args, _info) { - const selectArgs = makeArgs36(args); + const selectArgs = makeArgs_compound_type_query(args); return resource_compound_type_queryPgResource.execute(selectArgs); }, tableQuery($root, args, _info) { - const selectArgs = makeArgs37(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, queryCompoundTypeArray($root, args, _info) { - const selectArgs = makeArgs38(args); + const selectArgs = makeArgs_query_compound_type_array(args); return resource_query_compound_type_arrayPgResource.execute(selectArgs); }, compoundTypeArrayQuery($root, args, _info) { - const selectArgs = makeArgs39(args); + const selectArgs = makeArgs_compound_type_array_query(args); return resource_compound_type_array_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs40(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -28542,7 +22670,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28551,7 +22678,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28560,7 +22686,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28569,7 +22694,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28578,7 +22702,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28600,7 +22723,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28609,7 +22731,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28618,7 +22739,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28627,7 +22747,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28636,7 +22755,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28645,7 +22763,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs43(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -28662,7 +22780,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28671,7 +22788,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28680,7 +22796,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28689,7 +22804,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28698,7 +22812,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28720,7 +22833,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28729,7 +22841,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28738,7 +22849,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28747,7 +22857,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28756,7 +22865,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28765,22 +22873,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28800,7 +22904,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28809,7 +22912,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28818,7 +22920,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28827,7 +22928,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28836,7 +22936,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28858,7 +22957,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28867,7 +22965,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28876,7 +22973,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28885,7 +22981,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28894,7 +22989,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28903,87 +22997,87 @@ export const plans = { } }, typeFunction($root, args, _info) { - const selectArgs = makeArgs48(args); + const selectArgs = makeArgs_type_function(args); return resource_type_functionPgResource.execute(selectArgs); }, typeFunctionList($root, args, _info) { - const selectArgs = makeArgs49(args); + const selectArgs = makeArgs_type_function_list(args); return resource_type_function_listPgResource.execute(selectArgs); }, input(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, patch(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, reserved(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, reservedPatchRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, reservedInputRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, defaultValue(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher8($nodeId); }, viewTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher9($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher10($nodeId); }, similarTable1(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher11($nodeId); }, similarTable2(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher12($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher13($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher14($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher15($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher16($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher17($nodeId); }, list(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher18($nodeId); }, type(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher19($nodeId); }, allNonUpdatableViews: { @@ -28994,7 +23088,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29003,7 +23096,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29012,7 +23104,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29021,7 +23112,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29030,7 +23120,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29039,22 +23128,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NonUpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29068,7 +23153,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29077,7 +23161,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29086,7 +23169,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29095,7 +23177,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29104,7 +23185,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29113,22 +23193,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29142,7 +23218,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29151,7 +23226,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29160,7 +23234,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29169,7 +23242,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29178,7 +23250,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29187,22 +23258,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29216,7 +23283,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29225,7 +23291,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29234,7 +23299,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29243,7 +23307,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29252,7 +23315,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29261,22 +23323,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29290,7 +23348,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29299,7 +23356,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29308,7 +23364,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29317,7 +23372,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29326,7 +23380,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29335,22 +23388,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29364,7 +23413,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29373,7 +23421,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29382,7 +23429,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29391,7 +23437,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29400,7 +23445,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29409,22 +23453,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29438,7 +23478,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29447,7 +23486,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29456,7 +23494,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29465,7 +23502,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29474,7 +23510,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29483,22 +23518,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29512,7 +23543,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29521,7 +23551,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29530,7 +23559,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29539,7 +23567,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29548,7 +23575,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29557,22 +23583,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29586,7 +23608,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29595,7 +23616,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29604,7 +23624,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29613,7 +23632,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29622,7 +23640,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29631,22 +23648,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NoPrimaryKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29660,7 +23673,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29669,7 +23681,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29678,7 +23689,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29687,7 +23697,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29696,7 +23705,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29705,22 +23713,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TestviewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29734,7 +23738,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29743,7 +23746,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29752,7 +23754,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29761,7 +23762,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29770,7 +23770,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29779,22 +23778,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29808,7 +23803,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29817,7 +23811,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29826,7 +23819,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29835,7 +23827,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29844,7 +23835,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29853,22 +23843,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29882,7 +23868,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29891,7 +23876,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29900,7 +23884,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29909,7 +23892,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29918,7 +23900,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29927,22 +23908,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29956,7 +23933,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29965,7 +23941,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29974,7 +23949,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29983,7 +23957,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29992,7 +23965,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30001,22 +23973,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30030,7 +23998,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30039,7 +24006,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30048,7 +24014,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30057,7 +24022,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30066,7 +24030,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30075,22 +24038,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30104,7 +24063,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30113,7 +24071,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30122,7 +24079,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30131,7 +24087,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30140,7 +24095,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30149,22 +24103,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30178,7 +24128,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30187,7 +24136,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30196,7 +24144,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30205,7 +24152,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30214,7 +24160,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30223,22 +24168,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30252,7 +24193,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30261,7 +24201,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30270,7 +24209,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30279,7 +24217,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30288,7 +24225,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30297,22 +24233,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30326,7 +24258,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30335,7 +24266,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30344,7 +24274,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30353,7 +24282,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30362,7 +24290,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30371,22 +24298,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30400,7 +24323,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30409,7 +24331,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30418,7 +24339,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30427,7 +24347,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30436,7 +24355,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30445,22 +24363,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30474,7 +24388,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30483,7 +24396,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30492,7 +24404,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30501,7 +24412,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30510,7 +24420,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30519,22 +24428,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30548,7 +24453,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30557,7 +24461,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30566,7 +24469,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30575,7 +24477,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30584,7 +24485,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30593,22 +24493,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30622,7 +24518,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30631,7 +24526,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30640,7 +24534,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30649,7 +24542,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30658,7 +24550,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30667,22 +24558,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30696,7 +24583,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30705,7 +24591,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30714,7 +24599,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30723,7 +24607,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30732,7 +24615,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30741,22 +24623,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30770,7 +24648,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30779,7 +24656,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30788,7 +24664,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30797,7 +24672,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30806,7 +24680,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30815,22 +24688,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30961,7 +24830,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30970,7 +24838,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30979,7 +24846,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30988,7 +24854,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30997,7 +24862,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31006,22 +24870,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -31044,7 +24904,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31059,27 +24919,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -31088,7 +24942,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31103,27 +24957,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -31132,7 +24980,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs52(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31147,27 +24995,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -31176,7 +25018,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs53(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31191,27 +25033,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -31220,7 +25056,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs54(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31235,27 +25071,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -31264,7 +25094,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs55(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31279,27 +25109,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -31308,7 +25132,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs56(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31323,27 +25147,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -31352,7 +25170,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs57(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31367,27 +25185,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -31396,7 +25208,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs58(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31411,27 +25223,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -31440,7 +25246,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs59(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31455,27 +25261,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -31484,7 +25284,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs60(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31499,27 +25299,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -31528,7 +25322,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs61(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31543,27 +25337,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -31572,7 +25360,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs62(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31587,27 +25375,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -31616,7 +25398,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs63(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31631,27 +25413,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -31660,7 +25436,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs64(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31675,27 +25451,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -31714,7 +25484,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31723,7 +25492,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31732,7 +25500,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31741,7 +25508,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31750,7 +25516,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31759,12 +25524,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -31784,7 +25546,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31793,7 +25554,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31802,7 +25562,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31811,7 +25570,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31820,7 +25578,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31832,7 +25589,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs67(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31847,27 +25604,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -31876,7 +25627,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs68(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31891,27 +25642,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -31966,7 +25711,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31975,7 +25719,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31984,7 +25727,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31993,7 +25735,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32002,7 +25743,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32011,22 +25751,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32043,7 +25779,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32052,7 +25787,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32061,7 +25795,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32070,7 +25803,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32079,7 +25811,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32088,22 +25819,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32130,7 +25857,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32139,7 +25865,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32148,7 +25873,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32157,7 +25881,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32166,7 +25889,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32175,22 +25897,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32207,7 +25925,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32216,7 +25933,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32225,7 +25941,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32234,7 +25949,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32243,7 +25957,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32252,22 +25965,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32342,7 +26051,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs69(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32357,27 +26066,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -32488,7 +26191,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32497,7 +26199,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32506,7 +26207,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32515,7 +26215,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32524,7 +26223,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32536,7 +26234,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs71(args); + const extraSelectArgs = makeArgs_post_computed_interval_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32551,27 +26249,21 @@ export const plans = { if (resource_post_computed_interval_arrayPgResource.isUnique && !resource_post_computed_interval_arrayPgResource.codec.attributes && typeof resource_post_computed_interval_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${resource_post_computed_interval_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_arrayPgResource.from, resource_post_computed_interval_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_arrayPgResource.execute(selectArgs); @@ -32580,7 +26272,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs72(args); + const extraSelectArgs = makeArgs_post_computed_text_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32595,27 +26287,21 @@ export const plans = { if (resource_post_computed_text_arrayPgResource.isUnique && !resource_post_computed_text_arrayPgResource.codec.attributes && typeof resource_post_computed_text_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${resource_post_computed_text_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_text_arrayPgResource.from, resource_post_computed_text_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_text_arrayPgResource.execute(selectArgs); @@ -32624,7 +26310,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs73(args); + const extraSelectArgs = makeArgs_post_computed_with_optional_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32639,27 +26325,21 @@ export const plans = { if (resource_post_computed_with_optional_argPgResource.isUnique && !resource_post_computed_with_optional_argPgResource.codec.attributes && typeof resource_post_computed_with_optional_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${resource_post_computed_with_optional_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_optional_argPgResource.from, resource_post_computed_with_optional_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_optional_argPgResource.execute(selectArgs); @@ -32668,7 +26348,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs74(args); + const extraSelectArgs = makeArgs_post_computed_with_required_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32683,27 +26363,21 @@ export const plans = { if (resource_post_computed_with_required_argPgResource.isUnique && !resource_post_computed_with_required_argPgResource.codec.attributes && typeof resource_post_computed_with_required_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${resource_post_computed_with_required_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_required_argPgResource.from, resource_post_computed_with_required_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_required_argPgResource.execute(selectArgs); @@ -32712,7 +26386,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs75(args); + const extraSelectArgs = makeArgs_post_headline_trimmed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32727,27 +26401,21 @@ export const plans = { if (resource_post_headline_trimmedPgResource.isUnique && !resource_post_headline_trimmedPgResource.codec.attributes && typeof resource_post_headline_trimmedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${resource_post_headline_trimmedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmedPgResource.from, resource_post_headline_trimmedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmedPgResource.execute(selectArgs); @@ -32756,7 +26424,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs76(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_no_defaults(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32771,27 +26439,21 @@ export const plans = { if (resource_post_headline_trimmed_no_defaultsPgResource.isUnique && !resource_post_headline_trimmed_no_defaultsPgResource.codec.attributes && typeof resource_post_headline_trimmed_no_defaultsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${resource_post_headline_trimmed_no_defaultsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.from, resource_post_headline_trimmed_no_defaultsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_no_defaultsPgResource.execute(selectArgs); @@ -32800,7 +26462,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs77(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_strict(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32815,27 +26477,21 @@ export const plans = { if (resource_post_headline_trimmed_strictPgResource.isUnique && !resource_post_headline_trimmed_strictPgResource.codec.attributes && typeof resource_post_headline_trimmed_strictPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${resource_post_headline_trimmed_strictPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_strictPgResource.from, resource_post_headline_trimmed_strictPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_strictPgResource.execute(selectArgs); @@ -32844,7 +26500,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs78(args); + const extraSelectArgs = makeArgs_post_computed_compound_type_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32859,27 +26515,21 @@ export const plans = { if (resource_post_computed_compound_type_arrayPgResource.isUnique && !resource_post_computed_compound_type_arrayPgResource.codec.attributes && typeof resource_post_computed_compound_type_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${resource_post_computed_compound_type_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_compound_type_arrayPgResource.from, resource_post_computed_compound_type_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_compound_type_arrayPgResource.execute(selectArgs); @@ -32921,7 +26571,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32930,7 +26579,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32939,7 +26587,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32948,7 +26595,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32957,7 +26603,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32966,22 +26611,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -33044,64 +26685,70 @@ export const plans = { } }, CompoundTypeInput: { - "__inputPlan": function CompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, IntervalInput: { @@ -33619,31 +27266,21 @@ export const plans = { } }, TypesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33652,19 +27289,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33673,11 +27308,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -33685,7 +27317,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33695,11 +27327,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -33707,7 +27336,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33717,11 +27346,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "ASC", ...(undefined != null ? { @@ -33729,7 +27355,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33739,11 +27365,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "DESC", ...(undefined != null ? { @@ -33751,7 +27374,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33761,11 +27384,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "ASC", ...(undefined != null ? { @@ -33773,7 +27393,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33783,11 +27403,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "DESC", ...(undefined != null ? { @@ -33795,7 +27412,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33805,11 +27422,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "ASC", ...(undefined != null ? { @@ -33817,7 +27431,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33827,11 +27441,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "DESC", ...(undefined != null ? { @@ -33839,7 +27450,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33849,11 +27460,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "ASC", ...(undefined != null ? { @@ -33861,7 +27469,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33871,11 +27479,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "DESC", ...(undefined != null ? { @@ -33883,7 +27488,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33893,11 +27498,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "ASC", ...(undefined != null ? { @@ -33905,7 +27507,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33915,11 +27517,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "DESC", ...(undefined != null ? { @@ -33927,7 +27526,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33937,11 +27536,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "ASC", ...(undefined != null ? { @@ -33949,7 +27545,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33959,11 +27555,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "DESC", ...(undefined != null ? { @@ -33971,7 +27564,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33981,11 +27574,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "ASC", ...(undefined != null ? { @@ -33993,7 +27583,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34003,11 +27593,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "DESC", ...(undefined != null ? { @@ -34015,7 +27602,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34025,11 +27612,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "ASC", ...(undefined != null ? { @@ -34037,7 +27621,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34047,11 +27631,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "DESC", ...(undefined != null ? { @@ -34059,7 +27640,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34069,11 +27650,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "ASC", ...(undefined != null ? { @@ -34081,7 +27659,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34091,11 +27669,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "DESC", ...(undefined != null ? { @@ -34103,7 +27678,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34113,11 +27688,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "ASC", ...(undefined != null ? { @@ -34125,7 +27697,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34135,11 +27707,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "DESC", ...(undefined != null ? { @@ -34147,7 +27716,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34157,11 +27726,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "ASC", ...(undefined != null ? { @@ -34169,7 +27735,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34179,11 +27745,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "DESC", ...(undefined != null ? { @@ -34191,7 +27754,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34201,11 +27764,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "ASC", ...(undefined != null ? { @@ -34213,7 +27773,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34223,11 +27783,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "DESC", ...(undefined != null ? { @@ -34235,7 +27792,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34245,11 +27802,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "ASC", ...(undefined != null ? { @@ -34257,7 +27811,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34267,11 +27821,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "DESC", ...(undefined != null ? { @@ -34279,7 +27830,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34289,11 +27840,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "ASC", ...(undefined != null ? { @@ -34301,7 +27849,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34311,11 +27859,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "DESC", ...(undefined != null ? { @@ -34323,7 +27868,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34333,11 +27878,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "ASC", ...(undefined != null ? { @@ -34345,7 +27887,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34355,11 +27897,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "DESC", ...(undefined != null ? { @@ -34367,7 +27906,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34377,11 +27916,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "ASC", ...(undefined != null ? { @@ -34389,7 +27925,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34399,11 +27935,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "DESC", ...(undefined != null ? { @@ -34411,7 +27944,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34421,11 +27954,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "ASC", ...(undefined != null ? { @@ -34433,7 +27963,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34443,11 +27973,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "DESC", ...(undefined != null ? { @@ -34455,7 +27982,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34465,11 +27992,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "ASC", ...(undefined != null ? { @@ -34477,7 +28001,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34487,11 +28011,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "DESC", ...(undefined != null ? { @@ -34499,7 +28020,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34509,11 +28030,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "ASC", ...(undefined != null ? { @@ -34521,7 +28039,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34531,11 +28049,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "DESC", ...(undefined != null ? { @@ -34543,7 +28058,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34553,11 +28068,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34565,7 +28077,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34575,11 +28087,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34587,7 +28096,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34597,11 +28106,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34609,7 +28115,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34619,11 +28125,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34631,7 +28134,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34641,11 +28144,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34653,7 +28153,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34663,11 +28163,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34675,7 +28172,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34685,11 +28182,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "ASC", ...(undefined != null ? { @@ -34697,7 +28191,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34707,11 +28201,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "DESC", ...(undefined != null ? { @@ -34719,7 +28210,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34729,11 +28220,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "ASC", ...(undefined != null ? { @@ -34741,7 +28229,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34751,11 +28239,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "DESC", ...(undefined != null ? { @@ -34763,7 +28248,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34773,11 +28258,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -34785,7 +28267,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34795,11 +28277,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -34807,7 +28286,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34817,11 +28296,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -34829,7 +28305,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34839,11 +28315,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -34851,7 +28324,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34861,11 +28334,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -34873,7 +28343,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34883,11 +28353,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -34895,7 +28362,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34905,11 +28372,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "ASC", ...(undefined != null ? { @@ -34917,7 +28381,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34927,11 +28391,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "DESC", ...(undefined != null ? { @@ -34939,7 +28400,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34949,11 +28410,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "ASC", ...(undefined != null ? { @@ -34961,7 +28419,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34971,11 +28429,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "DESC", ...(undefined != null ? { @@ -34983,7 +28438,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34993,11 +28448,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "ASC", ...(undefined != null ? { @@ -35005,7 +28457,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35015,11 +28467,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "DESC", ...(undefined != null ? { @@ -35027,7 +28476,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35037,11 +28486,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "ASC", ...(undefined != null ? { @@ -35049,7 +28495,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35059,11 +28505,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "DESC", ...(undefined != null ? { @@ -35071,7 +28514,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35081,11 +28524,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "ASC", ...(undefined != null ? { @@ -35093,7 +28533,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35103,11 +28543,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "DESC", ...(undefined != null ? { @@ -35115,7 +28552,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35125,11 +28562,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "ASC", ...(undefined != null ? { @@ -35137,7 +28571,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35147,11 +28581,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "DESC", ...(undefined != null ? { @@ -35159,7 +28590,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35169,11 +28600,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "ASC", ...(undefined != null ? { @@ -35181,7 +28609,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35191,11 +28619,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "DESC", ...(undefined != null ? { @@ -35203,7 +28628,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35213,11 +28638,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "ASC", ...(undefined != null ? { @@ -35225,7 +28647,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35235,11 +28657,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "DESC", ...(undefined != null ? { @@ -35247,7 +28666,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35257,11 +28676,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "ASC", ...(undefined != null ? { @@ -35269,7 +28685,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35279,11 +28695,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "DESC", ...(undefined != null ? { @@ -35291,7 +28704,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35300,8 +28713,8 @@ export const plans = { }, TypeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35314,17 +28727,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, smallint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "smallint", @@ -35337,17 +28748,15 @@ export const plans = { type: "attribute", attribute: "smallint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.smallint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, bigint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "bigint", @@ -35360,17 +28769,15 @@ export const plans = { type: "attribute", attribute: "bigint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.bigint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numeric: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numeric", @@ -35383,17 +28790,15 @@ export const plans = { type: "attribute", attribute: "numeric", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numeric.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, decimal: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "decimal", @@ -35406,17 +28811,15 @@ export const plans = { type: "attribute", attribute: "decimal", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.decimal.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, boolean: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "boolean", @@ -35429,17 +28832,15 @@ export const plans = { type: "attribute", attribute: "boolean", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.boolean.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, varchar: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "varchar", @@ -35452,17 +28853,15 @@ export const plans = { type: "attribute", attribute: "varchar", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.varchar.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum", @@ -35475,17 +28874,15 @@ export const plans = { type: "attribute", attribute: "enum", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -35498,17 +28895,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain", @@ -35521,17 +28916,15 @@ export const plans = { type: "attribute", attribute: "domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain2", @@ -35544,17 +28937,15 @@ export const plans = { type: "attribute", attribute: "domain2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anotherIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array", @@ -35567,17 +28958,15 @@ export const plans = { type: "attribute", attribute: "text_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, json: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json", @@ -35590,17 +28979,15 @@ export const plans = { type: "attribute", attribute: "json", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.json.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.json)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonb: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "jsonb", @@ -35613,17 +29000,15 @@ export const plans = { type: "attribute", attribute: "jsonb", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.jsonb.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_range", @@ -35636,17 +29021,15 @@ export const plans = { type: "attribute", attribute: "nullable_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numrange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numrange", @@ -35659,17 +29042,15 @@ export const plans = { type: "attribute", attribute: "numrange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numrange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, daterange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "daterange", @@ -35682,17 +29063,15 @@ export const plans = { type: "attribute", attribute: "daterange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.daterange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, daterangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, anIntRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "an_int_range", @@ -35705,17 +29084,15 @@ export const plans = { type: "attribute", attribute: "an_int_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.an_int_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntRangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamp", @@ -35728,17 +29105,15 @@ export const plans = { type: "attribute", attribute: "timestamp", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamp.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz", @@ -35751,17 +29126,15 @@ export const plans = { type: "attribute", attribute: "timestamptz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamptz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, date: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date", @@ -35774,17 +29147,15 @@ export const plans = { type: "attribute", attribute: "date", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.date.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.date)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, time: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "time", @@ -35797,17 +29168,15 @@ export const plans = { type: "attribute", attribute: "time", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.time.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.time)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timetz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timetz", @@ -35820,17 +29189,15 @@ export const plans = { type: "attribute", attribute: "timetz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timetz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timetz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, interval: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval", @@ -35843,17 +29210,15 @@ export const plans = { type: "attribute", attribute: "interval", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.interval)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intervalArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval_array", @@ -35866,17 +29231,15 @@ export const plans = { type: "attribute", attribute: "interval_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, intervalArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, money: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "money", @@ -35889,17 +29252,15 @@ export const plans = { type: "attribute", attribute: "money", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.money.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.money)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type", @@ -35912,17 +29273,15 @@ export const plans = { type: "attribute", attribute: "compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nested_compound_type", @@ -35935,17 +29294,15 @@ export const plans = { type: "attribute", attribute: "nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_compound_type", @@ -35958,17 +29315,15 @@ export const plans = { type: "attribute", attribute: "nullable_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableNestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_nested_compound_type", @@ -35981,17 +29336,15 @@ export const plans = { type: "attribute", attribute: "nullable_nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, point: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "point", @@ -36004,17 +29357,15 @@ export const plans = { type: "attribute", attribute: "point", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.point.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullablePoint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullablePoint", @@ -36027,17 +29378,15 @@ export const plans = { type: "attribute", attribute: "nullablePoint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullablePoint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -36050,17 +29399,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -36073,17 +29420,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -36096,17 +29441,15 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regproc: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regproc", @@ -36119,17 +29462,15 @@ export const plans = { type: "attribute", attribute: "regproc", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regproc.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regproc)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regprocedure: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regprocedure", @@ -36142,17 +29483,15 @@ export const plans = { type: "attribute", attribute: "regprocedure", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regprocedure.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regprocedure)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoper: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoper", @@ -36165,17 +29504,15 @@ export const plans = { type: "attribute", attribute: "regoper", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoper.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoper)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoperator: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoperator", @@ -36188,17 +29525,15 @@ export const plans = { type: "attribute", attribute: "regoperator", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoperator.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoperator)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regclass: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regclass", @@ -36211,17 +29546,15 @@ export const plans = { type: "attribute", attribute: "regclass", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regclass.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regclass)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regtype: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regtype", @@ -36234,17 +29567,15 @@ export const plans = { type: "attribute", attribute: "regtype", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regtype.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regtype)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regconfig: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regconfig", @@ -36257,17 +29588,15 @@ export const plans = { type: "attribute", attribute: "regconfig", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regconfig.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regconfig)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regdictionary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regdictionary", @@ -36280,17 +29609,15 @@ export const plans = { type: "attribute", attribute: "regdictionary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regdictionary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regdictionary)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array_domain", @@ -36303,17 +29630,15 @@ export const plans = { type: "attribute", attribute: "text_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, int8ArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int8_array_domain", @@ -36326,17 +29651,15 @@ export const plans = { type: "attribute", attribute: "int8_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.int8_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int8ArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltree: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree", @@ -36349,17 +29672,15 @@ export const plans = { type: "attribute", attribute: "ltree", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_codec_ltree)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltreeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree_array", @@ -36372,13 +29693,11 @@ export const plans = { type: "attribute", attribute: "ltree_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_array_codec_ltree_)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BigFloatRangeInput: { @@ -36406,29 +29725,30 @@ export const plans = { inclusive: undefined }, NestedCompoundTypeInput: { - "__inputPlan": function NestedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, bazBuz: { - applyPlan($insert, val) { - $insert.set("baz_buz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("baz_buz", bakedInputRuntime(schema, field.type, val)); + } } }, PointInput: { @@ -36461,26 +29781,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36493,14 +29805,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36513,14 +29825,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36533,14 +29845,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36553,19 +29865,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36574,19 +29884,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36595,11 +29903,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36607,7 +29912,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36617,11 +29922,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36629,7 +29931,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36639,11 +29941,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -36651,7 +29950,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36661,11 +29960,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -36673,7 +29969,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36683,11 +29979,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -36695,7 +29988,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36705,11 +29998,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -36717,7 +30007,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36727,11 +30017,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -36739,7 +30026,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36749,11 +30036,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -36761,7 +30045,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36771,11 +30055,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -36783,7 +30064,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36793,11 +30074,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -36805,7 +30083,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36815,11 +30093,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -36827,7 +30102,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36837,11 +30112,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -36849,7 +30121,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36859,11 +30131,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -36871,7 +30140,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36881,11 +30150,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -36893,7 +30159,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36903,11 +30169,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -36915,7 +30178,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36925,11 +30188,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -36937,7 +30197,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36947,11 +30207,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -36959,7 +30216,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36969,11 +30226,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -36981,7 +30235,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36991,11 +30245,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -37003,7 +30254,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37013,11 +30264,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -37025,7 +30273,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37108,26 +30356,18 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_WITH_OPTIONAL_ARG_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -37140,14 +30380,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -37160,19 +30400,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37181,19 +30419,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37202,11 +30438,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37214,7 +30447,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37224,11 +30457,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37236,7 +30466,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37246,11 +30476,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "ASC", ...(undefined != null ? { @@ -37258,7 +30485,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37268,11 +30495,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "DESC", ...(undefined != null ? { @@ -37280,7 +30504,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37290,11 +30514,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -37302,7 +30523,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37312,11 +30533,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -37324,7 +30542,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37334,11 +30552,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -37346,7 +30561,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37356,11 +30571,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -37368,7 +30580,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37377,8 +30589,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37391,17 +30603,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, headline: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "headline", @@ -37414,17 +30624,15 @@ export const plans = { type: "attribute", attribute: "headline", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.headline.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -37437,17 +30645,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -37460,17 +30666,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enums: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enums", @@ -37483,17 +30687,15 @@ export const plans = { type: "attribute", attribute: "enums", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.enums.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anEnumArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, comptypes: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "comptypes", @@ -37506,47 +30708,46 @@ export const plans = { type: "attribute", attribute: "comptypes", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.comptypes.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, comptypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedWithOptionalArg: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_post_computed_with_optional_argPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_post_computed_with_optional_argPgResource.codec)}`); } } } }, ComptypeInput: { - "__inputPlan": function ComptypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, schedule: { - applyPlan($insert, val) { - $insert.set("schedule", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("schedule", bakedInputRuntime(schema, field.type, val)); + } }, isOptimised: { - applyPlan($insert, val) { - $insert.set("is_optimised", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_optimised", bakedInputRuntime(schema, field.type, val)); + } } }, ForeignKeysConnection: { @@ -37598,23 +30799,12 @@ export const plans = { } }, ForeignKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PERSON_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -37622,7 +30812,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37632,11 +30822,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -37644,7 +30831,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37654,11 +30841,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "ASC", ...(undefined != null ? { @@ -37666,7 +30850,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37676,11 +30860,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "DESC", ...(undefined != null ? { @@ -37688,7 +30869,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37698,11 +30879,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "ASC", ...(undefined != null ? { @@ -37710,7 +30888,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37720,11 +30898,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "DESC", ...(undefined != null ? { @@ -37732,7 +30907,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37741,8 +30916,8 @@ export const plans = { }, ForeignKeyCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -37755,17 +30930,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_1", @@ -37778,17 +30951,15 @@ export const plans = { type: "attribute", attribute: "compound_key_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_2", @@ -37801,13 +30972,11 @@ export const plans = { type: "attribute", attribute: "compound_key_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecret: { @@ -37878,31 +31047,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37911,19 +31070,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37932,11 +31089,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -37944,7 +31098,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37954,11 +31108,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -37966,7 +31117,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37976,11 +31127,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -37988,7 +31136,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37998,11 +31146,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -38010,7 +31155,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38020,11 +31165,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -38032,7 +31174,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38042,11 +31184,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -38054,7 +31193,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38063,8 +31202,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -38077,17 +31216,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -38100,17 +31237,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -38123,13 +31258,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTable: { @@ -38672,8 +31805,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -38686,17 +31819,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -38709,17 +31840,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -38732,17 +31861,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -38755,17 +31882,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -38778,17 +31903,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -38801,17 +31924,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -38824,17 +31945,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -38847,17 +31966,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -38870,17 +31987,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -38893,17 +32008,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -38916,40 +32029,38 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, NonUpdatableViewsConnection: { @@ -38984,23 +32095,12 @@ export const plans = { } }, NonUpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COLUMN_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "ASC", ...(undefined != null ? { @@ -39008,7 +32108,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39018,11 +32118,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "DESC", ...(undefined != null ? { @@ -39030,7 +32127,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39039,8 +32136,8 @@ export const plans = { }, NonUpdatableViewCondition: { column: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "?column?", @@ -39053,13 +32150,11 @@ export const plans = { type: "attribute", attribute: "?column?", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nonUpdatableView.attributes["?column?"].codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, InputsConnection: { @@ -39088,31 +32183,21 @@ export const plans = { } }, InputsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39121,19 +32206,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39142,11 +32225,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39154,7 +32234,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39164,11 +32244,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39176,7 +32253,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39185,8 +32262,8 @@ export const plans = { }, InputCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39199,13 +32276,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_inputs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PatchesConnection: { @@ -39234,31 +32309,21 @@ export const plans = { } }, PatchesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39267,19 +32332,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39288,11 +32351,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39300,7 +32360,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39310,11 +32370,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39322,7 +32379,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39331,8 +32388,8 @@ export const plans = { }, PatchCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39345,13 +32402,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_patchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedsConnection: { @@ -39380,31 +32435,21 @@ export const plans = { } }, ReservedsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39413,19 +32458,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39434,11 +32477,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39446,7 +32486,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39456,11 +32496,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39468,7 +32505,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39477,8 +32514,8 @@ export const plans = { }, ReservedCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39491,13 +32528,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedPatchRecordsConnection: { @@ -39526,31 +32561,21 @@ export const plans = { } }, ReservedPatchRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39559,19 +32584,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39580,11 +32603,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39592,7 +32612,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39602,11 +32622,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39614,7 +32631,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39623,8 +32640,8 @@ export const plans = { }, ReservedPatchRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39637,13 +32654,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedPatchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedInputRecordsConnection: { @@ -39672,31 +32687,21 @@ export const plans = { } }, ReservedInputRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39705,19 +32710,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39726,11 +32729,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39738,7 +32738,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39748,11 +32748,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39760,7 +32757,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39769,8 +32766,8 @@ export const plans = { }, ReservedInputRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39783,13 +32780,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedInput.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, DefaultValuesConnection: { @@ -39818,31 +32813,21 @@ export const plans = { } }, DefaultValuesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39851,19 +32836,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39872,11 +32855,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39884,7 +32864,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39894,11 +32874,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39906,7 +32883,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39916,11 +32893,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "ASC", ...(undefined != null ? { @@ -39928,7 +32902,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39938,11 +32912,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "DESC", ...(undefined != null ? { @@ -39950,7 +32921,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39959,8 +32930,8 @@ export const plans = { }, DefaultValueCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39973,17 +32944,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullValue: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "null_value", @@ -39996,13 +32965,11 @@ export const plans = { type: "attribute", attribute: "null_value", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.null_value.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NoPrimaryKeysConnection: { @@ -40031,23 +32998,12 @@ export const plans = { } }, NoPrimaryKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40055,7 +33011,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40065,11 +33021,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40077,7 +33030,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40087,11 +33040,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "ASC", ...(undefined != null ? { @@ -40099,7 +33049,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40109,11 +33059,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "DESC", ...(undefined != null ? { @@ -40121,7 +33068,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40130,8 +33077,8 @@ export const plans = { }, NoPrimaryKeyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40144,17 +33091,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, str: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str", @@ -40167,13 +33112,11 @@ export const plans = { type: "attribute", attribute: "str", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.str.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TestviewsConnection: { @@ -40214,23 +33157,12 @@ export const plans = { } }, TestviewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, TESTVIEWID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "ASC", ...(undefined != null ? { @@ -40238,7 +33170,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40248,11 +33180,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "DESC", ...(undefined != null ? { @@ -40260,7 +33189,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40270,11 +33199,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40282,7 +33208,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40292,11 +33218,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40304,7 +33227,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40314,11 +33237,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40326,7 +33246,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40336,11 +33256,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40348,7 +33265,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40357,8 +33274,8 @@ export const plans = { }, TestviewCondition: { testviewid: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "testviewid", @@ -40371,17 +33288,15 @@ export const plans = { type: "attribute", attribute: "testviewid", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.testviewid.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -40394,17 +33309,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -40417,13 +33330,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTablesConnection: { @@ -40452,31 +33363,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40485,19 +33386,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40506,11 +33405,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40518,7 +33414,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40528,11 +33424,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40540,7 +33433,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40550,11 +33443,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -40562,7 +33452,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40572,11 +33462,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -40584,7 +33471,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40593,8 +33480,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40607,17 +33494,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -40630,13 +33515,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -40665,31 +33548,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40698,19 +33571,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40719,11 +33590,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -40731,7 +33599,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40741,11 +33609,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -40753,7 +33618,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40763,11 +33628,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -40775,7 +33637,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40785,11 +33647,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -40797,7 +33656,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40806,8 +33665,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -40820,17 +33679,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -40843,13 +33700,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ViewTablesConnection: { @@ -40878,31 +33733,21 @@ export const plans = { } }, ViewTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40911,19 +33756,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40932,11 +33775,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40944,7 +33784,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40954,11 +33794,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40966,7 +33803,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40976,11 +33813,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40988,7 +33822,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40998,11 +33832,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -41010,7 +33841,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41020,11 +33851,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -41032,7 +33860,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41042,11 +33870,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -41054,7 +33879,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41063,8 +33888,8 @@ export const plans = { }, ViewTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41077,17 +33902,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41100,17 +33923,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41123,13 +33944,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable1SConnection: { @@ -41158,31 +33977,21 @@ export const plans = { } }, SimilarTable1SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41191,19 +34000,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41212,11 +34019,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41224,7 +34028,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41234,11 +34038,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41246,7 +34047,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41256,11 +34057,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -41268,7 +34066,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41278,11 +34076,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -41290,7 +34085,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41300,11 +34095,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -41312,7 +34104,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41322,11 +34114,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -41334,7 +34123,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41344,11 +34133,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41356,7 +34142,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41366,11 +34152,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41378,7 +34161,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41387,8 +34170,8 @@ export const plans = { }, SimilarTable1Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41401,17 +34184,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41424,17 +34205,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41447,17 +34226,15 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41470,13 +34247,11 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable2SConnection: { @@ -41505,31 +34280,21 @@ export const plans = { } }, SimilarTable2SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41538,19 +34303,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41559,11 +34322,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41571,7 +34331,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41581,11 +34341,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41593,7 +34350,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41603,11 +34360,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41615,7 +34369,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41625,11 +34379,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41637,7 +34388,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41647,11 +34398,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "ASC", ...(undefined != null ? { @@ -41659,7 +34407,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41669,11 +34417,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "DESC", ...(undefined != null ? { @@ -41681,7 +34426,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41691,11 +34436,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "ASC", ...(undefined != null ? { @@ -41703,7 +34445,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41713,11 +34455,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "DESC", ...(undefined != null ? { @@ -41725,7 +34464,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41734,8 +34473,8 @@ export const plans = { }, SimilarTable2Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41748,17 +34487,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41771,17 +34508,15 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col4: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col4", @@ -41794,17 +34529,15 @@ export const plans = { type: "attribute", attribute: "col4", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col4.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col5: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col5", @@ -41817,13 +34550,11 @@ export const plans = { type: "attribute", attribute: "col5", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col5.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UpdatableViewsConnection: { @@ -41867,23 +34598,12 @@ export const plans = { } }, UpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, X_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "ASC", ...(undefined != null ? { @@ -41891,7 +34611,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41901,11 +34621,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "DESC", ...(undefined != null ? { @@ -41913,7 +34630,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41923,11 +34640,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -41935,7 +34649,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41945,11 +34659,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -41957,7 +34668,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41967,11 +34678,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -41979,7 +34687,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41989,11 +34697,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -42001,7 +34706,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42011,11 +34716,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "ASC", ...(undefined != null ? { @@ -42023,7 +34725,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42033,11 +34735,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "DESC", ...(undefined != null ? { @@ -42045,7 +34744,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42054,8 +34753,8 @@ export const plans = { }, UpdatableViewCondition: { x: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "x", @@ -42068,17 +34767,15 @@ export const plans = { type: "attribute", attribute: "x", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.x.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -42091,17 +34788,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -42114,17 +34809,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constant: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constant", @@ -42137,13 +34830,11 @@ export const plans = { type: "attribute", attribute: "constant", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.constant.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -42172,31 +34863,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42205,19 +34886,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42226,11 +34905,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42238,7 +34914,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42248,11 +34924,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42260,7 +34933,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42270,11 +34943,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -42282,7 +34952,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42292,11 +34962,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -42304,7 +34971,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42314,11 +34981,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -42326,7 +34990,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42336,11 +35000,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -42348,7 +35009,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42358,11 +35019,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -42370,7 +35028,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42380,11 +35038,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -42392,7 +35047,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42401,8 +35056,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42415,17 +35070,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -42438,17 +35091,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -42461,17 +35112,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -42484,13 +35133,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -42515,7 +35162,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs79(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -42530,27 +35177,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -42575,23 +35216,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -42599,7 +35229,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42609,11 +35239,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -42621,7 +35248,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42631,11 +35258,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -42643,7 +35267,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42653,11 +35277,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -42665,7 +35286,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42675,11 +35296,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -42687,7 +35305,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42697,11 +35315,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -42709,7 +35324,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42718,8 +35333,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -42732,17 +35347,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -42755,17 +35368,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -42778,13 +35389,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -42813,31 +35422,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42846,19 +35445,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42867,11 +35464,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42879,7 +35473,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42889,11 +35483,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42901,7 +35492,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42911,11 +35502,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -42923,7 +35511,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42933,11 +35521,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -42945,7 +35530,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42955,11 +35540,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -42967,7 +35549,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42977,11 +35559,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -42989,7 +35568,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42999,11 +35578,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -43011,7 +35587,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43021,11 +35597,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -43033,7 +35606,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43042,8 +35615,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43056,17 +35629,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -43079,17 +35650,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -43102,17 +35671,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -43125,13 +35692,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -43160,31 +35725,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43193,19 +35748,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43214,11 +35767,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43226,7 +35776,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43236,11 +35786,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43248,7 +35795,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43258,11 +35805,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -43270,7 +35814,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43280,11 +35824,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -43292,7 +35833,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43301,8 +35842,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43315,17 +35856,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -43338,13 +35877,11 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ListsConnection: { @@ -43373,31 +35910,21 @@ export const plans = { } }, ListsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43406,19 +35933,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43427,11 +35952,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43439,7 +35961,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43449,11 +35971,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43461,7 +35980,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43470,8 +35989,8 @@ export const plans = { }, ListCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43484,17 +36003,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array", @@ -43507,17 +36024,15 @@ export const plans = { type: "attribute", attribute: "int_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array_nn", @@ -43530,17 +36045,15 @@ export const plans = { type: "attribute", attribute: "int_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -43553,17 +36066,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array_nn", @@ -43576,17 +36087,15 @@ export const plans = { type: "attribute", attribute: "enum_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array", @@ -43599,17 +36108,15 @@ export const plans = { type: "attribute", attribute: "date_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array_nn", @@ -43622,17 +36129,15 @@ export const plans = { type: "attribute", attribute: "date_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array", @@ -43645,17 +36150,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array_nn", @@ -43668,17 +36171,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array", @@ -43691,17 +36192,15 @@ export const plans = { type: "attribute", attribute: "compound_type_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array_nn", @@ -43714,20 +36213,18 @@ export const plans = { type: "attribute", attribute: "compound_type_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs80(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43737,9 +36234,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43747,7 +36253,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs81(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43757,9 +36263,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43767,7 +36282,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs82(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43777,9 +36292,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43787,7 +36311,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs83(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43797,9 +36321,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43807,7 +36340,7 @@ export const plans = { }, returnVoidMutation: { plan($root, args, _info) { - const selectArgs = makeArgs84(args, ["input"]); + const selectArgs = makeArgs_return_void_mutation(args, ["input"]); const $result = resource_return_void_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43817,9 +36350,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43827,7 +36369,7 @@ export const plans = { }, mutationIntervalSet: { plan($root, args, _info) { - const selectArgs = makeArgs85(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_set(args, ["input"]); const $result = resource_mutation_interval_setPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43837,9 +36379,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43847,7 +36398,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs86(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43857,9 +36408,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43867,7 +36427,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs87(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43877,9 +36437,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43887,7 +36456,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs88(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43897,9 +36466,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43907,7 +36485,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs89(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43917,9 +36495,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43927,7 +36514,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs90(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43937,9 +36524,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43947,7 +36543,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs91(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43957,9 +36553,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43967,7 +36572,7 @@ export const plans = { }, add1Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs92(args, ["input"]); + const selectArgs = makeArgs_add_1_mutation(args, ["input"]); const $result = resource_add_1_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43977,9 +36582,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43987,7 +36601,7 @@ export const plans = { }, add2Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs93(args, ["input"]); + const selectArgs = makeArgs_add_2_mutation(args, ["input"]); const $result = resource_add_2_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43997,9 +36611,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44007,7 +36630,7 @@ export const plans = { }, add3Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs94(args, ["input"]); + const selectArgs = makeArgs_add_3_mutation(args, ["input"]); const $result = resource_add_3_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44017,9 +36640,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44027,7 +36659,7 @@ export const plans = { }, add4Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs95(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation(args, ["input"]); const $result = resource_add_4_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44037,9 +36669,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44047,7 +36688,7 @@ export const plans = { }, add4MutationError: { plan($root, args, _info) { - const selectArgs = makeArgs96(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation_error(args, ["input"]); const $result = resource_add_4_mutation_errorPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44057,9 +36698,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44067,7 +36717,7 @@ export const plans = { }, mult1: { plan($root, args, _info) { - const selectArgs = makeArgs97(args, ["input"]); + const selectArgs = makeArgs_mult_1(args, ["input"]); const $result = resource_mult_1PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44077,9 +36727,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44087,7 +36746,7 @@ export const plans = { }, mult2: { plan($root, args, _info) { - const selectArgs = makeArgs98(args, ["input"]); + const selectArgs = makeArgs_mult_2(args, ["input"]); const $result = resource_mult_2PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44097,9 +36756,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44107,7 +36775,7 @@ export const plans = { }, mult3: { plan($root, args, _info) { - const selectArgs = makeArgs99(args, ["input"]); + const selectArgs = makeArgs_mult_3(args, ["input"]); const $result = resource_mult_3PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44117,9 +36785,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44127,7 +36804,7 @@ export const plans = { }, mult4: { plan($root, args, _info) { - const selectArgs = makeArgs100(args, ["input"]); + const selectArgs = makeArgs_mult_4(args, ["input"]); const $result = resource_mult_4PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44137,9 +36814,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44147,7 +36833,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs101(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44157,9 +36843,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44167,7 +36862,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs102(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44177,9 +36872,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44187,7 +36891,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs103(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44197,9 +36901,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44207,7 +36920,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs104(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44217,9 +36930,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44227,7 +36949,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs105(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44237,9 +36959,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44247,7 +36978,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs106(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44257,9 +36988,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44267,7 +37007,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs107(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44277,9 +37017,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44287,7 +37036,7 @@ export const plans = { }, guidFn: { plan($root, args, _info) { - const selectArgs = makeArgs108(args, ["input"]); + const selectArgs = makeArgs_guid_fn(args, ["input"]); const $result = resource_guid_fnPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44297,9 +37046,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44307,7 +37065,7 @@ export const plans = { }, mutationIntervalArray: { plan($root, args, _info) { - const selectArgs = makeArgs109(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_array(args, ["input"]); const $result = resource_mutation_interval_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44317,9 +37075,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44327,7 +37094,7 @@ export const plans = { }, mutationTextArray: { plan($root, args, _info) { - const selectArgs = makeArgs110(args, ["input"]); + const selectArgs = makeArgs_mutation_text_array(args, ["input"]); const $result = resource_mutation_text_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44337,9 +37104,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44347,7 +37123,7 @@ export const plans = { }, listBdeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs111(args, ["input"]); + const selectArgs = makeArgs_list_bde_mutation(args, ["input"]); const $result = resource_list_bde_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44357,9 +37133,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44367,7 +37152,7 @@ export const plans = { }, authenticateFail: { plan($root, args, _info) { - const selectArgs = makeArgs112(args, ["input"]); + const selectArgs = makeArgs_authenticate_fail(args, ["input"]); const $result = resource_authenticate_failPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44377,9 +37162,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44387,7 +37181,7 @@ export const plans = { }, authenticate: { plan($root, args, _info) { - const selectArgs = makeArgs113(args, ["input"]); + const selectArgs = makeArgs_authenticate(args, ["input"]); const $result = resource_authenticatePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44397,9 +37191,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44407,7 +37210,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs114(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44417,9 +37220,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44427,7 +37239,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs115(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44437,9 +37249,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44447,7 +37268,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs116(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44457,9 +37278,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44467,7 +37297,7 @@ export const plans = { }, authenticateMany: { plan($root, args, _info) { - const selectArgs = makeArgs117(args, ["input"]); + const selectArgs = makeArgs_authenticate_many(args, ["input"]); const $result = resource_authenticate_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44477,9 +37307,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44487,7 +37326,7 @@ export const plans = { }, authenticatePayload: { plan($root, args, _info) { - const selectArgs = makeArgs118(args, ["input"]); + const selectArgs = makeArgs_authenticate_payload(args, ["input"]); const $result = resource_authenticate_payloadPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44497,9 +37336,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44507,7 +37355,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs119(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44517,9 +37365,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44527,7 +37384,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs120(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44537,9 +37394,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44547,7 +37413,7 @@ export const plans = { }, compoundTypeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs121(args, ["input"]); + const selectArgs = makeArgs_compound_type_mutation(args, ["input"]); const $result = resource_compound_type_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44557,9 +37423,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44567,7 +37442,7 @@ export const plans = { }, compoundTypeSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs122(args, ["input"]); + const selectArgs = makeArgs_compound_type_set_mutation(args, ["input"]); const $result = resource_compound_type_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44577,9 +37452,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44587,7 +37471,7 @@ export const plans = { }, createPost: { plan($root, args, _info) { - const selectArgs = makeArgs123(args, ["input"]); + const selectArgs = makeArgs_create_post(args, ["input"]); const $result = resource_create_postPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44597,9 +37481,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44607,7 +37500,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs124(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44617,9 +37510,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44627,7 +37529,7 @@ export const plans = { }, postWithSuffix: { plan($root, args, _info) { - const selectArgs = makeArgs125(args, ["input"]); + const selectArgs = makeArgs_post_with_suffix(args, ["input"]); const $result = resource_post_with_suffixPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44637,9 +37539,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44647,7 +37558,7 @@ export const plans = { }, mutationCompoundTypeArray: { plan($root, args, _info) { - const selectArgs = makeArgs126(args, ["input"]); + const selectArgs = makeArgs_mutation_compound_type_array(args, ["input"]); const $result = resource_mutation_compound_type_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44657,9 +37568,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44667,7 +37587,7 @@ export const plans = { }, compoundTypeArrayMutation: { plan($root, args, _info) { - const selectArgs = makeArgs127(args, ["input"]); + const selectArgs = makeArgs_compound_type_array_mutation(args, ["input"]); const $result = resource_compound_type_array_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44677,9 +37597,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44687,7 +37616,7 @@ export const plans = { }, postMany: { plan($root, args, _info) { - const selectArgs = makeArgs128(args, ["input"]); + const selectArgs = makeArgs_post_many(args, ["input"]); const $result = resource_post_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44697,9 +37626,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44707,7 +37645,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs129(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44717,9 +37655,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44727,7 +37674,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs130(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44737,9 +37684,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44747,7 +37703,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs131(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44757,9 +37713,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44767,7 +37732,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs132(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44777,9 +37742,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44787,7 +37761,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs133(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44797,9 +37771,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44807,7 +37790,7 @@ export const plans = { }, typeFunctionConnectionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs134(args, ["input"]); + const selectArgs = makeArgs_type_function_connection_mutation(args, ["input"]); const $result = resource_type_function_connection_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44817,9 +37800,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44827,7 +37819,7 @@ export const plans = { }, typeFunctionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs135(args, ["input"]); + const selectArgs = makeArgs_type_function_mutation(args, ["input"]); const $result = resource_type_function_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44837,9 +37829,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44847,7 +37848,7 @@ export const plans = { }, typeFunctionListMutation: { plan($root, args, _info) { - const selectArgs = makeArgs136(args, ["input"]); + const selectArgs = makeArgs_type_function_list_mutation(args, ["input"]); const $result = resource_type_function_list_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44857,9 +37858,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44867,17 +37877,17 @@ export const plans = { }, createInput: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_inputsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_inputsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44887,17 +37897,17 @@ export const plans = { }, createPatch: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_patchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_patchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44907,17 +37917,17 @@ export const plans = { }, createReserved: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44927,17 +37937,17 @@ export const plans = { }, createReservedPatchRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44947,17 +37957,17 @@ export const plans = { }, createReservedInputRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44967,17 +37977,17 @@ export const plans = { }, createDefaultValue: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44987,17 +37997,17 @@ export const plans = { }, createForeignKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45007,17 +38017,17 @@ export const plans = { }, createNoPrimaryKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45027,17 +38037,17 @@ export const plans = { }, createTestview: { plan(_, args) { + const $insert = pgInsertSingle(resource_testviewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_testviewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45047,17 +38057,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45067,17 +38077,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45087,17 +38097,17 @@ export const plans = { }, createViewTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45107,17 +38117,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45127,17 +38137,17 @@ export const plans = { }, createSimilarTable1: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45147,17 +38157,17 @@ export const plans = { }, createSimilarTable2: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45167,17 +38177,17 @@ export const plans = { }, createUpdatableView: { plan(_, args) { + const $insert = pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45187,17 +38197,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45207,17 +38217,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45227,17 +38237,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45247,17 +38257,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45267,17 +38277,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45287,17 +38297,17 @@ export const plans = { }, createList: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_listsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_listsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45307,17 +38317,17 @@ export const plans = { }, createType: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45327,11 +38337,11 @@ export const plans = { }, updateInput: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45346,13 +38356,13 @@ export const plans = { }, updateInputById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45367,11 +38377,11 @@ export const plans = { }, updatePatch: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45386,13 +38396,13 @@ export const plans = { }, updatePatchById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45407,11 +38417,11 @@ export const plans = { }, updateReserved: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45426,13 +38436,13 @@ export const plans = { }, updateReservedById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45447,11 +38457,11 @@ export const plans = { }, updateReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45466,13 +38476,13 @@ export const plans = { }, updateReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45487,11 +38497,11 @@ export const plans = { }, updateReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45506,13 +38516,13 @@ export const plans = { }, updateReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45527,11 +38537,11 @@ export const plans = { }, updateDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45546,13 +38556,13 @@ export const plans = { }, updateDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45567,13 +38577,13 @@ export const plans = { }, updateNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45588,11 +38598,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45607,13 +38617,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45628,11 +38638,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45647,13 +38657,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45668,11 +38678,11 @@ export const plans = { }, updateViewTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45687,13 +38697,13 @@ export const plans = { }, updateViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45708,11 +38718,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45727,14 +38737,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45749,11 +38759,11 @@ export const plans = { }, updateSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45768,13 +38778,13 @@ export const plans = { }, updateSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45789,11 +38799,11 @@ export const plans = { }, updateSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45808,13 +38818,13 @@ export const plans = { }, updateSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45829,11 +38839,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45848,13 +38858,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45869,11 +38879,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45888,13 +38898,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45909,13 +38919,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45930,11 +38940,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45949,13 +38959,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45970,11 +38980,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45989,13 +38999,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46010,11 +39020,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46029,13 +39039,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46050,13 +39060,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46071,11 +39081,11 @@ export const plans = { }, updateList: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)) + const $update = pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46090,13 +39100,13 @@ export const plans = { }, updateListById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46111,11 +39121,11 @@ export const plans = { }, updateType: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)) + const $update = pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46130,13 +39140,13 @@ export const plans = { }, updateTypeById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46151,11 +39161,11 @@ export const plans = { }, deleteInput: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46170,13 +39180,13 @@ export const plans = { }, deleteInputById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46191,11 +39201,11 @@ export const plans = { }, deletePatch: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46210,13 +39220,13 @@ export const plans = { }, deletePatchById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46231,11 +39241,11 @@ export const plans = { }, deleteReserved: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46250,13 +39260,13 @@ export const plans = { }, deleteReservedById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46271,11 +39281,11 @@ export const plans = { }, deleteReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46290,13 +39300,13 @@ export const plans = { }, deleteReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46311,11 +39321,11 @@ export const plans = { }, deleteReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46330,13 +39340,13 @@ export const plans = { }, deleteReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46351,11 +39361,11 @@ export const plans = { }, deleteDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46370,13 +39380,13 @@ export const plans = { }, deleteDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46391,13 +39401,13 @@ export const plans = { }, deleteNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46412,11 +39422,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46431,13 +39441,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46452,11 +39462,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46471,13 +39481,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46492,11 +39502,11 @@ export const plans = { }, deleteViewTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46511,13 +39521,13 @@ export const plans = { }, deleteViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46532,11 +39542,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46551,14 +39561,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46573,11 +39583,11 @@ export const plans = { }, deleteSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46592,13 +39602,13 @@ export const plans = { }, deleteSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46613,11 +39623,11 @@ export const plans = { }, deleteSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46632,13 +39642,13 @@ export const plans = { }, deleteSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46653,11 +39663,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46672,13 +39682,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46693,11 +39703,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46712,13 +39722,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46733,13 +39743,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46754,11 +39764,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46773,13 +39783,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46794,11 +39804,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46813,13 +39823,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46834,11 +39844,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46853,13 +39863,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46874,13 +39884,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46895,11 +39905,11 @@ export const plans = { }, deleteList: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)) + const $delete = pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46914,13 +39924,13 @@ export const plans = { }, deleteListById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46935,11 +39945,11 @@ export const plans = { }, deleteType: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)) + const $delete = pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46954,13 +39964,13 @@ export const plans = { }, deleteTypeById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46977,7 +39987,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -46988,16 +39999,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -47008,16 +40019,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47028,16 +40039,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47048,16 +40059,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ReturnVoidMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, query() { return rootValue(); @@ -47065,16 +40076,16 @@ export const plans = { }, ReturnVoidMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationIntervalSetPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47085,16 +40096,16 @@ export const plans = { }, MutationIntervalSetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -47105,17 +40116,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -47126,17 +40137,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47147,17 +40158,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47168,17 +40179,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47189,17 +40200,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47210,17 +40221,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, Add1MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47231,10 +40242,9 @@ export const plans = { }, Add1MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47242,7 +40252,8 @@ export const plans = { Add2MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47253,10 +40264,9 @@ export const plans = { }, Add2MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -47264,7 +40274,8 @@ export const plans = { Add3MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47275,10 +40286,9 @@ export const plans = { }, Add3MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, arg1: undefined @@ -47286,7 +40296,8 @@ export const plans = { Add4MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47297,10 +40308,9 @@ export const plans = { }, Add4MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47308,7 +40318,8 @@ export const plans = { Add4MutationErrorPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47319,10 +40330,9 @@ export const plans = { }, Add4MutationErrorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47330,7 +40340,8 @@ export const plans = { Mult1Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47341,10 +40352,9 @@ export const plans = { }, Mult1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47352,7 +40362,8 @@ export const plans = { Mult2Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47363,10 +40374,9 @@ export const plans = { }, Mult2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47374,7 +40384,8 @@ export const plans = { Mult3Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47385,10 +40396,9 @@ export const plans = { }, Mult3Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47396,7 +40406,8 @@ export const plans = { Mult4Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47407,10 +40418,9 @@ export const plans = { }, Mult4Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47418,7 +40428,8 @@ export const plans = { MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -47429,10 +40440,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -47440,7 +40450,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47460,16 +40471,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47489,16 +40500,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47518,16 +40529,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -47538,10 +40549,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -47550,7 +40560,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47573,16 +40584,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47602,17 +40613,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, GuidFnPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, guid($object) { return $object.get("result"); @@ -47628,17 +40639,17 @@ export const plans = { }, GuidFnInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, g: undefined }, MutationIntervalArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47649,16 +40660,16 @@ export const plans = { }, MutationIntervalArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationTextArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, strings($object) { return $object.get("result"); @@ -47669,16 +40680,16 @@ export const plans = { }, MutationTextArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ListBdeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, uuids($object) { return $object.get("result"); @@ -47689,10 +40700,9 @@ export const plans = { }, ListBdeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, b: undefined, d: undefined, @@ -47701,7 +40711,8 @@ export const plans = { AuthenticateFailPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47730,16 +40741,16 @@ export const plans = { }, AuthenticateFailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticatePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47750,10 +40761,9 @@ export const plans = { }, AuthenticateInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47762,7 +40772,8 @@ export const plans = { LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -47770,7 +40781,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47786,9 +40797,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47804,50 +40813,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -47855,7 +40866,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47871,9 +40882,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47884,16 +40893,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -47904,16 +40913,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticateManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtTokens($object) { return $object.get("result"); @@ -47924,10 +40933,9 @@ export const plans = { }, AuthenticateManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47936,7 +40944,8 @@ export const plans = { AuthenticatePayloadPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, authPayload($object) { return $object.get("result"); @@ -47975,10 +40984,9 @@ export const plans = { }, AuthenticatePayloadInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47987,7 +40995,8 @@ export const plans = { TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -47998,10 +41007,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -48013,7 +41021,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -48039,17 +41048,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, CompoundTypeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundType($object) { return $object.get("result"); @@ -48060,17 +41069,17 @@ export const plans = { }, CompoundTypeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48081,17 +41090,17 @@ export const plans = { }, CompoundTypeSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CreatePostPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48099,7 +41108,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48115,9 +41124,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48133,17 +41140,17 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, t: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48151,7 +41158,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48167,9 +41174,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48185,17 +41190,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, PostWithSuffixPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48203,7 +41208,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48219,9 +41224,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48237,65 +41240,69 @@ export const plans = { }, PostWithSuffixInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: undefined, suffix: undefined }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, MutationCompoundTypeArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48306,17 +41313,17 @@ export const plans = { }, MutationCompoundTypeArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeArrayMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48327,17 +41334,17 @@ export const plans = { }, CompoundTypeArrayMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, PostManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, posts($object) { return $object.get("result"); @@ -48348,17 +41355,17 @@ export const plans = { }, PostManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, posts: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -48393,10 +41400,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48404,7 +41410,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -48439,10 +41446,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48450,7 +41456,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -48458,7 +41465,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48474,9 +41481,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48487,16 +41492,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48507,16 +41512,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48527,16 +41532,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionConnectionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48547,16 +41552,16 @@ export const plans = { }, TypeFunctionConnectionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -48564,7 +41569,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48580,9 +41585,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48603,17 +41606,17 @@ export const plans = { }, TypeFunctionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, TypeFunctionListMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48624,16 +41627,16 @@ export const plans = { }, TypeFunctionListMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateInputPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -48641,7 +41644,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48657,9 +41660,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48670,35 +41671,34 @@ export const plans = { }, CreateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, input: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, InputInput: { - "__inputPlan": function InputInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePatchPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -48706,7 +41706,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48722,9 +41722,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48735,35 +41733,34 @@ export const plans = { }, CreatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PatchInput: { - "__inputPlan": function PatchInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -48771,7 +41768,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48787,9 +41784,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48800,35 +41795,34 @@ export const plans = { }, CreateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reserved: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInput: { - "__inputPlan": function ReservedInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPatchRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -48836,7 +41830,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48852,9 +41846,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48865,35 +41857,34 @@ export const plans = { }, CreateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedPatchRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedPatchRecordInput: { - "__inputPlan": function ReservedPatchRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedInputRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -48901,7 +41892,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48917,9 +41908,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48930,35 +41919,34 @@ export const plans = { }, CreateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedInputRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInputRecordInput: { - "__inputPlan": function ReservedInputRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateDefaultValuePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -48966,7 +41954,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48982,9 +41970,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48995,42 +41981,42 @@ export const plans = { }, CreateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, defaultValue: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, DefaultValueInput: { - "__inputPlan": function DefaultValueInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, CreateForeignKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, foreignKey($object) { return $object.get("result"); @@ -49052,49 +42038,50 @@ export const plans = { }, CreateForeignKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, foreignKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ForeignKeyInput: { - "__inputPlan": function ForeignKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey1: { - applyPlan($insert, val) { - $insert.set("compound_key_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_1", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey2: { - applyPlan($insert, val) { - $insert.set("compound_key_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNoPrimaryKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -49105,42 +42092,42 @@ export const plans = { }, CreateNoPrimaryKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, noPrimaryKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NoPrimaryKeyInput: { - "__inputPlan": function NoPrimaryKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTestviewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, testview($object) { return $object.get("result"); @@ -49151,49 +42138,50 @@ export const plans = { }, CreateTestviewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, testview: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TestviewInput: { - "__inputPlan": function TestviewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, testviewid: { - applyPlan($insert, val) { - $insert.set("testviewid", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("testviewid", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -49201,7 +42189,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49217,9 +42205,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49230,42 +42216,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -49273,7 +42259,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49289,9 +42275,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49307,42 +42291,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateViewTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -49350,7 +42334,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49366,9 +42350,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49379,49 +42361,50 @@ export const plans = { }, CreateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, viewTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ViewTableInput: { - "__inputPlan": function ViewTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -49429,7 +42412,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49445,9 +42428,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49468,49 +42449,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable1Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -49518,7 +42500,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49534,9 +42516,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49547,56 +42527,58 @@ export const plans = { }, CreateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable1: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable1Input: { - "__inputPlan": function SimilarTable1Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable2Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -49604,7 +42586,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49620,9 +42602,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49633,56 +42613,58 @@ export const plans = { }, CreateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable2: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable2Input: { - "__inputPlan": function SimilarTable2Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, CreateUpdatableViewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, updatableView($object) { return $object.get("result"); @@ -49693,56 +42675,58 @@ export const plans = { }, CreateUpdatableViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, updatableView: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UpdatableViewInput: { - "__inputPlan": function UpdatableViewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, x: { - applyPlan($insert, val) { - $insert.set("x", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("x", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } }, constant: { - applyPlan($insert, val) { - $insert.set("constant", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constant", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -49750,7 +42734,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49766,9 +42750,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49779,56 +42761,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -49839,49 +42823,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -49889,7 +42874,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49905,9 +42890,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49923,56 +42906,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -49980,7 +42965,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49996,9 +42981,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50009,42 +42992,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -50052,7 +43035,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50068,9 +43051,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50081,105 +43062,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, CreateListPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -50187,7 +43177,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50203,9 +43193,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50216,119 +43204,130 @@ export const plans = { }, CreateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, list: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ListInput: { - "__inputPlan": function ListInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -50336,7 +43335,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50352,9 +43351,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50375,371 +43372,418 @@ export const plans = { }, CreateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, type: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TypeInput: { - "__inputPlan": function TypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -50747,7 +43791,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50763,9 +43807,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50776,48 +43818,50 @@ export const plans = { }, UpdateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, InputPatch: { - "__inputPlan": function InputPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -50825,7 +43869,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50841,9 +43885,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50854,48 +43896,50 @@ export const plans = { }, UpdatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PatchPatch: { - "__inputPlan": function PatchPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -50903,7 +43947,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50919,9 +43963,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50932,48 +43974,50 @@ export const plans = { }, UpdateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatch: { - "__inputPlan": function ReservedPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -50981,7 +44025,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50997,9 +44041,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51010,48 +44052,50 @@ export const plans = { }, UpdateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatchRecordPatch: { - "__inputPlan": function ReservedPatchRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -51059,7 +44103,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51075,9 +44119,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51088,48 +44130,50 @@ export const plans = { }, UpdateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedInputRecordPatch: { - "__inputPlan": function ReservedInputRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -51137,7 +44181,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51153,9 +44197,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51166,55 +44208,58 @@ export const plans = { }, UpdateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DefaultValuePatch: { - "__inputPlan": function DefaultValuePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -51225,41 +44270,43 @@ export const plans = { }, UpdateNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, noPrimaryKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NoPrimaryKeyPatch: { - "__inputPlan": function NoPrimaryKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -51267,7 +44314,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51283,9 +44330,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51296,55 +44341,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -51352,7 +44400,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51368,9 +44416,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51386,55 +44432,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -51442,7 +44491,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51458,9 +44507,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51471,62 +44518,66 @@ export const plans = { }, UpdateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ViewTablePatch: { - "__inputPlan": function ViewTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -51534,7 +44585,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51550,9 +44601,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51573,63 +44622,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -51637,7 +44690,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51653,9 +44706,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51666,69 +44717,74 @@ export const plans = { }, UpdateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable1Patch: { - "__inputPlan": function SimilarTable1Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -51736,7 +44792,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51752,9 +44808,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51765,69 +44819,74 @@ export const plans = { }, UpdateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable2Patch: { - "__inputPlan": function SimilarTable2Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -51835,7 +44894,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51851,9 +44910,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51864,69 +44921,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -51934,7 +44996,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51950,9 +45012,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51968,83 +45028,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -52052,7 +45118,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52068,9 +45134,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52081,55 +45145,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -52137,7 +45204,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52153,9 +45220,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52171,83 +45236,90 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -52255,7 +45327,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52271,9 +45343,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52284,132 +45354,145 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -52417,7 +45500,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52433,9 +45516,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52446,132 +45527,146 @@ export const plans = { }, UpdateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ListPatch: { - "__inputPlan": function ListPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -52579,7 +45674,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52595,9 +45690,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52618,384 +45711,434 @@ export const plans = { }, UpdateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TypePatch: { - "__inputPlan": function TypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -53008,7 +46151,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53024,9 +46167,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53037,16 +46178,16 @@ export const plans = { }, DeleteInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53054,7 +46195,8 @@ export const plans = { DeletePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -53067,7 +46209,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53083,9 +46225,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53096,16 +46236,16 @@ export const plans = { }, DeletePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53113,7 +46253,8 @@ export const plans = { DeleteReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -53126,7 +46267,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53142,9 +46283,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53155,16 +46294,16 @@ export const plans = { }, DeleteReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53172,7 +46311,8 @@ export const plans = { DeleteReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -53185,7 +46325,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53201,9 +46341,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53214,16 +46352,16 @@ export const plans = { }, DeleteReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53231,7 +46369,8 @@ export const plans = { DeleteReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -53244,7 +46383,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53260,9 +46399,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53273,16 +46410,16 @@ export const plans = { }, DeleteReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53290,7 +46427,8 @@ export const plans = { DeleteDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -53303,7 +46441,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53319,9 +46457,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53332,16 +46468,16 @@ export const plans = { }, DeleteDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53349,7 +46485,8 @@ export const plans = { DeleteNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -53360,8 +46497,8 @@ export const plans = { }, DeleteNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53369,7 +46506,8 @@ export const plans = { DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -53382,7 +46520,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53398,9 +46536,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53411,16 +46547,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53428,7 +46564,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -53441,7 +46578,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53457,9 +46594,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53475,16 +46610,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53492,7 +46627,8 @@ export const plans = { DeleteViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -53505,7 +46641,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53521,9 +46657,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53534,16 +46668,16 @@ export const plans = { }, DeleteViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53551,7 +46685,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -53564,7 +46699,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53580,9 +46715,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53603,16 +46736,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -53621,7 +46754,8 @@ export const plans = { DeleteSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -53634,7 +46768,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53650,9 +46784,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53663,16 +46795,16 @@ export const plans = { }, DeleteSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53680,7 +46812,8 @@ export const plans = { DeleteSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -53693,7 +46826,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53709,9 +46842,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53722,16 +46853,16 @@ export const plans = { }, DeleteSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53739,7 +46870,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -53752,7 +46884,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53768,9 +46900,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53781,16 +46911,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53798,7 +46928,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -53811,7 +46942,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53827,9 +46958,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53845,24 +46974,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53870,7 +46999,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -53883,7 +47013,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53899,9 +47029,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53912,16 +47040,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53929,7 +47057,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -53942,7 +47071,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53958,9 +47087,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53976,16 +47103,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53993,7 +47120,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -54006,7 +47134,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54022,9 +47150,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54035,24 +47161,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined @@ -54060,7 +47186,8 @@ export const plans = { DeleteListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -54073,7 +47200,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54089,9 +47216,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54102,16 +47227,16 @@ export const plans = { }, DeleteListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -54119,7 +47244,8 @@ export const plans = { DeleteTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -54132,7 +47258,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54148,9 +47274,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54171,16 +47295,16 @@ export const plans = { }, DeleteTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/function-clash.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/function-clash.1.export.mjs index f0b3ebcb61..d8bc16a81f 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/function-clash.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/function-clash.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -478,7 +480,7 @@ const textArrayCodec = listOfCodec(TYPES.text, { name: "textArray" }); const nonUpdatableViewIdentifier = sql.identifier("a", "non_updatable_view"); -const spec_nonUpdatableView = { +const nonUpdatableViewCodec = recordCodec({ name: "nonUpdatableView", identifier: nonUpdatableViewIdentifier, attributes: { @@ -506,10 +508,9 @@ const spec_nonUpdatableView = { } }, executor: executor -}; -const nonUpdatableViewCodec = recordCodec(spec_nonUpdatableView); +}); const inputsIdentifier = sql.identifier("a", "inputs"); -const spec_inputs = { +const inputsCodec = recordCodec({ name: "inputs", identifier: inputsIdentifier, attributes: { @@ -537,10 +538,9 @@ const spec_inputs = { } }, executor: executor -}; -const inputsCodec = recordCodec(spec_inputs); +}); const patchsIdentifier = sql.identifier("a", "patchs"); -const spec_patchs = { +const patchsCodec = recordCodec({ name: "patchs", identifier: patchsIdentifier, attributes: { @@ -568,10 +568,9 @@ const spec_patchs = { } }, executor: executor -}; -const patchsCodec = recordCodec(spec_patchs); +}); const reservedIdentifier = sql.identifier("a", "reserved"); -const spec_reserved = { +const reservedCodec = recordCodec({ name: "reserved", identifier: reservedIdentifier, attributes: { @@ -599,10 +598,9 @@ const spec_reserved = { } }, executor: executor -}; -const reservedCodec = recordCodec(spec_reserved); +}); const reservedPatchsIdentifier = sql.identifier("a", "reservedPatchs"); -const spec_reservedPatchs = { +const reservedPatchsCodec = recordCodec({ name: "reservedPatchs", identifier: reservedPatchsIdentifier, attributes: { @@ -630,10 +628,9 @@ const spec_reservedPatchs = { } }, executor: executor -}; -const reservedPatchsCodec = recordCodec(spec_reservedPatchs); +}); const reservedInputIdentifier = sql.identifier("a", "reserved_input"); -const spec_reservedInput = { +const reservedInputCodec = recordCodec({ name: "reservedInput", identifier: reservedInputIdentifier, attributes: { @@ -661,10 +658,9 @@ const spec_reservedInput = { } }, executor: executor -}; -const reservedInputCodec = recordCodec(spec_reservedInput); +}); const defaultValueIdentifier = sql.identifier("a", "default_value"); -const spec_defaultValue = { +const defaultValueCodec = recordCodec({ name: "defaultValue", identifier: defaultValueIdentifier, attributes: { @@ -701,10 +697,9 @@ const spec_defaultValue = { } }, executor: executor -}; -const defaultValueCodec = recordCodec(spec_defaultValue); +}); const foreignKeyIdentifier = sql.identifier("a", "foreign_key"); -const spec_foreignKey = { +const foreignKeyCodec = recordCodec({ name: "foreignKey", identifier: foreignKeyIdentifier, attributes: { @@ -750,10 +745,9 @@ const spec_foreignKey = { } }, executor: executor -}; -const foreignKeyCodec = recordCodec(spec_foreignKey); +}); const noPrimaryKeyIdentifier = sql.identifier("a", "no_primary_key"); -const spec_noPrimaryKey = { +const noPrimaryKeyCodec = recordCodec({ name: "noPrimaryKey", identifier: noPrimaryKeyIdentifier, attributes: { @@ -790,10 +784,9 @@ const spec_noPrimaryKey = { } }, executor: executor -}; -const noPrimaryKeyCodec = recordCodec(spec_noPrimaryKey); +}); const testviewIdentifier = sql.identifier("a", "testview"); -const spec_testview = { +const testviewCodec = recordCodec({ name: "testview", identifier: testviewIdentifier, attributes: { @@ -839,8 +832,7 @@ const spec_testview = { } }, executor: executor -}; -const testviewCodec = recordCodec(spec_testview); +}); const uniqueForeignKeyIdentifier = sql.identifier("a", "unique_foreign_key"); const spec_uniqueForeignKey = { name: "uniqueForeignKey", @@ -884,7 +876,7 @@ const spec_uniqueForeignKey = { }; const uniqueForeignKeyCodec = recordCodec(spec_uniqueForeignKey); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -921,10 +913,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -964,8 +955,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -1007,7 +997,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const viewTableIdentifier = sql.identifier("a", "view_table"); -const spec_viewTable = { +const viewTableCodec = recordCodec({ name: "viewTable", identifier: viewTableIdentifier, attributes: { @@ -1053,10 +1043,9 @@ const spec_viewTable = { } }, executor: executor -}; -const viewTableCodec = recordCodec(spec_viewTable); +}); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -1102,10 +1091,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const similarTable1Identifier = sql.identifier("a", "similar_table_1"); -const spec_similarTable1 = { +const similarTable1Codec = recordCodec({ name: "similarTable1", identifier: similarTable1Identifier, attributes: { @@ -1160,10 +1148,9 @@ const spec_similarTable1 = { } }, executor: executor -}; -const similarTable1Codec = recordCodec(spec_similarTable1); +}); const similarTable2Identifier = sql.identifier("a", "similar_table_2"); -const spec_similarTable2 = { +const similarTable2Codec = recordCodec({ name: "similarTable2", identifier: similarTable2Identifier, attributes: { @@ -1218,10 +1205,9 @@ const spec_similarTable2 = { } }, executor: executor -}; -const similarTable2Codec = recordCodec(spec_similarTable2); +}); const updatableViewIdentifier = sql.identifier("b", "updatable_view"); -const spec_updatableView = { +const updatableViewCodec = recordCodec({ name: "updatableView", identifier: updatableViewIdentifier, attributes: { @@ -1278,10 +1264,9 @@ const spec_updatableView = { } }, executor: executor -}; -const updatableViewCodec = recordCodec(spec_updatableView); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -1336,8 +1321,7 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const uuidArrayCodec = listOfCodec(TYPES.uuid, { extensions: { pg: { @@ -1354,7 +1338,7 @@ const uuidArrayCodec = listOfCodec(TYPES.uuid, { name: "uuidArray" }); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -1400,10 +1384,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -1458,8 +1441,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const jwtTokenIdentifier = sql.identifier("b", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -1541,7 +1523,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -1578,8 +1560,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const authPayloadIdentifier = sql.identifier("b", "auth_payload"); const authPayloadCodec = recordCodec({ name: "authPayload", @@ -1917,7 +1898,7 @@ const comptypeArrayCodec = listOfCodec(comptypeCodec, { description: undefined, name: "comptypeArray" }); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -1990,8 +1971,7 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const registryConfig_pgCodecs_QueryOutputTwoRowsRecord_QueryOutputTwoRowsRecord = recordCodec({ name: "QueryOutputTwoRowsRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2151,7 +2131,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -2273,8 +2253,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2592,7 +2571,7 @@ const byteaArrayCodec = listOfCodec(TYPES.bytea, { description: undefined, name: "byteaArray" }); -const spec_lists = { +const listsCodec = recordCodec({ name: "lists", identifier: listsIdentifier, attributes: { @@ -2728,8 +2707,7 @@ const spec_lists = { } }, executor: executor -}; -const listsCodec = recordCodec(spec_lists); +}); const typesIdentifier = sql.identifier("b", "types"); const anIntCodec = domainOfCodec(TYPES.int, "anInt", sql.identifier("a", "an_int"), { description: undefined, @@ -9220,6 +9198,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_inputsPgResource.get(spec); }, @@ -9239,6 +9220,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_patchsPgResource.get(spec); }, @@ -9258,6 +9242,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPgResource.get(spec); }, @@ -9277,6 +9264,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPatchsPgResource.get(spec); }, @@ -9296,6 +9286,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reserved_inputPgResource.get(spec); }, @@ -9315,6 +9308,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_default_valuePgResource.get(spec); }, @@ -9334,6 +9330,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -9353,6 +9352,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -9372,6 +9374,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_view_tablePgResource.get(spec); }, @@ -9392,6 +9397,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -9411,6 +9419,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_1PgResource.get(spec); }, @@ -9430,6 +9441,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_2PgResource.get(spec); }, @@ -9449,6 +9463,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -9468,6 +9485,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -9487,6 +9507,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -9506,6 +9529,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -9525,6 +9551,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -9544,6 +9573,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_listsPgResource.get(spec); }, @@ -9563,6 +9595,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_typesPgResource.get(spec); }, @@ -9573,553 +9608,96 @@ const nodeIdHandlerByTypeName = { }; const resource_no_primary_keyPgResource = registry.pgResources["no_primary_key"]; const resource_unique_foreign_keyPgResource = registry.pgResources["unique_foreign_key"]; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_query_interval_set = []; +const makeArgs_query_interval_set = (args, path = []) => argDetailsSimple_query_interval_set.map(details => makeArg(path, args, details)); const resource_query_interval_setPgResource = registry.pgResources["query_interval_set"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_query_interval_set(args); return resource_query_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple7 = []; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 argDetailsSimple_static_big_integer = []; +const makeArgs_static_big_integer = (args, path = []) => argDetailsSimple_static_big_integer.map(details => makeArg(path, args, details)); const resource_static_big_integerPgResource = registry.pgResources["static_big_integer"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_static_big_integer(args); return resource_static_big_integerPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple10 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple11 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple12 = [{ +const argDetailsSimple_add_1_query = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -10132,52 +9710,9 @@ const argDetailsSimple12 = [{ required: true, fetcher: null }]; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_query = (args, path = []) => argDetailsSimple_add_1_query.map(details => makeArg(path, args, details)); const resource_add_1_queryPgResource = registry.pgResources["add_1_query"]; -const argDetailsSimple13 = [{ +const argDetailsSimple_add_2_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10190,52 +9725,9 @@ const argDetailsSimple13 = [{ required: false, fetcher: null }]; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 makeArgs_add_2_query = (args, path = []) => argDetailsSimple_add_2_query.map(details => makeArg(path, args, details)); const resource_add_2_queryPgResource = registry.pgResources["add_2_query"]; -const argDetailsSimple14 = [{ +const argDetailsSimple_add_3_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10248,52 +9740,9 @@ const argDetailsSimple14 = [{ required: true, fetcher: null }]; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_query = (args, path = []) => argDetailsSimple_add_3_query.map(details => makeArg(path, args, details)); const resource_add_3_queryPgResource = registry.pgResources["add_3_query"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_add_4_query = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10306,52 +9755,9 @@ const argDetailsSimple15 = [{ required: false, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_query = (args, path = []) => argDetailsSimple_add_4_query.map(details => makeArg(path, args, details)); const resource_add_4_queryPgResource = registry.pgResources["add_4_query"]; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -10364,240 +9770,25 @@ const argDetailsSimple16 = [{ required: true, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple19 = []; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple20 = []; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10616,52 +9807,9 @@ const argDetailsSimple21 = [{ required: false, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_1PgResource = registry.pgResources["optional_missing_middle_1"]; -const argDetailsSimple22 = [{ +const argDetailsSimple_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10680,52 +9828,9 @@ const argDetailsSimple22 = [{ required: false, fetcher: null }]; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 makeArgs_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_2PgResource = registry.pgResources["optional_missing_middle_2"]; -const argDetailsSimple23 = [{ +const argDetailsSimple_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10744,52 +9849,9 @@ const argDetailsSimple23 = [{ required: false, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_3PgResource = registry.pgResources["optional_missing_middle_3"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10808,52 +9870,9 @@ const argDetailsSimple24 = [{ required: false, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_4PgResource = registry.pgResources["optional_missing_middle_4"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10872,98 +9891,12 @@ const argDetailsSimple25 = [{ required: false, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_5PgResource = registry.pgResources["optional_missing_middle_5"]; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple27 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -10982,56 +9915,13 @@ const argDetailsSimple27 = [{ required: true, fetcher: null }]; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple28 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -11050,194 +9940,22 @@ const argDetailsSimple28 = [{ required: false, fetcher: null }]; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_query_interval_array = []; +const makeArgs_query_interval_array = (args, path = []) => argDetailsSimple_query_interval_array.map(details => makeArg(path, args, details)); const resource_query_interval_arrayPgResource = registry.pgResources["query_interval_array"]; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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 argDetailsSimple_query_text_array = []; +const makeArgs_query_text_array = (args, path = []) => argDetailsSimple_query_text_array.map(details => makeArg(path, args, details)); const resource_query_text_arrayPgResource = registry.pgResources["query_text_array"]; -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple32 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -11274,104 +9992,18 @@ const argDetailsSimple32 = [{ required: true, fetcher: null }]; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple33 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -11390,310 +10022,52 @@ const argDetailsSimple34 = [{ required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple35 = []; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs35(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple36 = [{ +const argDetailsSimple_compound_type_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_compound_type_query = (args, path = []) => argDetailsSimple_compound_type_query.map(details => makeArg(path, args, details)); const resource_compound_type_queryPgResource = registry.pgResources["compound_type_query"]; -const argDetailsSimple37 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_query_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[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 makeArgs_query_compound_type_array = (args, path = []) => argDetailsSimple_query_compound_type_array.map(details => makeArg(path, args, details)); const resource_query_compound_type_arrayPgResource = registry.pgResources["query_compound_type_array"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_compound_type_array_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_compound_type_array_query = (args, path = []) => argDetailsSimple_compound_type_array_query.map(details => makeArg(path, args, details)); const resource_compound_type_array_queryPgResource = registry.pgResources["compound_type_array_query"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11706,52 +10080,9 @@ const argDetailsSimple40 = [{ required: true, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11764,473 +10095,70 @@ const argDetailsSimple41 = [{ required: true, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs41(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple42 = []; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs42(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple43 = []; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs44(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs12 = ($root, args, _info) => { - const selectArgs = makeArgs45(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs13 = ($root, args, _info) => { - const selectArgs = makeArgs46(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_type_function_connection = []; +const makeArgs_type_function_connection = (args, path = []) => argDetailsSimple_type_function_connection.map(details => makeArg(path, args, details)); const resource_type_function_connectionPgResource = registry.pgResources["type_function_connection"]; const getSelectPlanFromParentAndArgs14 = ($root, args, _info) => { - const selectArgs = makeArgs47(args); + const selectArgs = makeArgs_type_function_connection(args); return resource_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_type_function = (args, path = []) => argDetailsSimple_type_function.map(details => makeArg(path, args, details)); const resource_type_functionPgResource = registry.pgResources["type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_type_function_list = []; +const makeArgs_type_function_list = (args, path = []) => argDetailsSimple_type_function_list.map(details => makeArg(path, args, details)); const resource_type_function_listPgResource = registry.pgResources["type_function_list"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -12405,347 +10333,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple53 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple54 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple55 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple56 = []; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12764,52 +10391,9 @@ const argDetailsSimple57 = [{ required: false, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12828,52 +10412,9 @@ const argDetailsSimple58 = [{ required: false, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12892,52 +10433,9 @@ const argDetailsSimple59 = [{ required: false, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12956,52 +10454,9 @@ const argDetailsSimple60 = [{ required: false, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -13020,52 +10475,9 @@ const argDetailsSimple61 = [{ required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -13078,194 +10490,22 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs65(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13280,82 +10520,33 @@ const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple66 = []; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs66(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13370,176 +10561,41 @@ const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple67 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple68 = []; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple69 = []; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -13550,57 +10606,14 @@ const coerce = string => { } return string; }; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_post_computed_interval_set = []; +const makeArgs_post_computed_interval_set = (args, path = []) => argDetailsSimple_post_computed_interval_set.map(details => makeArg(path, args, details)); const resource_post_computed_interval_setPgResource = registry.pgResources["post_computed_interval_set"]; const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs70(args); + const extraSelectArgs = makeArgs_post_computed_interval_set(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13615,228 +10628,50 @@ const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (resource_post_computed_interval_setPgResource.isUnique && !resource_post_computed_interval_setPgResource.codec.attributes && typeof resource_post_computed_interval_setPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${resource_post_computed_interval_setPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_setPgResource.from, resource_post_computed_interval_setPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_post_computed_interval_array = []; +const makeArgs_post_computed_interval_array = (args, path = []) => argDetailsSimple_post_computed_interval_array.map(details => makeArg(path, args, details)); const resource_post_computed_interval_arrayPgResource = registry.pgResources["post_computed_interval_array"]; -const argDetailsSimple72 = []; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 argDetailsSimple_post_computed_text_array = []; +const makeArgs_post_computed_text_array = (args, path = []) => argDetailsSimple_post_computed_text_array.map(details => makeArg(path, args, details)); const resource_post_computed_text_arrayPgResource = registry.pgResources["post_computed_text_array"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_post_computed_with_optional_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: false, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_post_computed_with_optional_arg = (args, path = []) => argDetailsSimple_post_computed_with_optional_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_optional_argPgResource = registry.pgResources["post_computed_with_optional_arg"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_post_computed_with_required_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_post_computed_with_required_arg = (args, path = []) => argDetailsSimple_post_computed_with_required_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_required_argPgResource = registry.pgResources["post_computed_with_required_arg"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_post_headline_trimmed = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13849,52 +10684,9 @@ const argDetailsSimple75 = [{ required: false, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_post_headline_trimmed = (args, path = []) => argDetailsSimple_post_headline_trimmed.map(details => makeArg(path, args, details)); const resource_post_headline_trimmedPgResource = registry.pgResources["post_headline_trimmed"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_post_headline_trimmed_no_defaults = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13907,52 +10699,9 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_post_headline_trimmed_no_defaults = (args, path = []) => argDetailsSimple_post_headline_trimmed_no_defaults.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_no_defaultsPgResource = registry.pgResources["post_headline_trimmed_no_defaults"]; -const argDetailsSimple77 = [{ +const argDetailsSimple_post_headline_trimmed_strict = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13965,102 +10714,16 @@ const argDetailsSimple77 = [{ required: false, fetcher: null }]; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 makeArgs_post_headline_trimmed_strict = (args, path = []) => argDetailsSimple_post_headline_trimmed_strict.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_strictPgResource = registry.pgResources["post_headline_trimmed_strict"]; -const argDetailsSimple78 = [{ +const argDetailsSimple_post_computed_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 makeArgs_post_computed_compound_type_array = (args, path = []) => argDetailsSimple_post_computed_compound_type_array.map(details => makeArg(path, args, details)); const resource_post_computed_compound_type_arrayPgResource = registry.pgResources["post_computed_compound_type_array"]; const resource_frmcdc_comptypePgResource = registry.pgResources["frmcdc_comptype"]; const resource_frmcdc_nestedCompoundTypePgResource = registry.pgResources["frmcdc_nestedCompoundType"]; @@ -14118,641 +10781,82 @@ const parseValueLiteral = (ast, variables) => { return undefined; } }; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple80 = []; -const makeArgs80 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple80[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple81 = []; -const makeArgs81 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple81[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple82 = []; -const makeArgs82 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple82[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple83 = []; -const makeArgs83 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple83[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple84 = []; -const makeArgs84 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple84[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 argDetailsSimple_return_void_mutation = []; +const makeArgs_return_void_mutation = (args, path = []) => argDetailsSimple_return_void_mutation.map(details => makeArg(path, args, details)); const resource_return_void_mutationPgResource = registry.pgResources["return_void_mutation"]; -const argDetailsSimple85 = []; -const makeArgs85 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple85[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 argDetailsSimple_mutation_interval_set = []; +const makeArgs_mutation_interval_set = (args, path = []) => argDetailsSimple_mutation_interval_set.map(details => makeArg(path, args, details)); const resource_mutation_interval_setPgResource = registry.pgResources["mutation_interval_set"]; -const argDetailsSimple86 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs86 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple86[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple87 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs87 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple87[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple88 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs88 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple88[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple89 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs89 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple89[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple90 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs90 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple90[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple91 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs91 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple91[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple92 = [{ +const argDetailsSimple_add_1_mutation = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14765,52 +10869,9 @@ const argDetailsSimple92 = [{ required: true, fetcher: null }]; -const makeArgs92 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple92[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_mutation = (args, path = []) => argDetailsSimple_add_1_mutation.map(details => makeArg(path, args, details)); const resource_add_1_mutationPgResource = registry.pgResources["add_1_mutation"]; -const argDetailsSimple93 = [{ +const argDetailsSimple_add_2_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14823,52 +10884,9 @@ const argDetailsSimple93 = [{ required: false, fetcher: null }]; -const makeArgs93 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple93[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 makeArgs_add_2_mutation = (args, path = []) => argDetailsSimple_add_2_mutation.map(details => makeArg(path, args, details)); const resource_add_2_mutationPgResource = registry.pgResources["add_2_mutation"]; -const argDetailsSimple94 = [{ +const argDetailsSimple_add_3_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14881,52 +10899,9 @@ const argDetailsSimple94 = [{ required: true, fetcher: null }]; -const makeArgs94 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple94[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_mutation = (args, path = []) => argDetailsSimple_add_3_mutation.map(details => makeArg(path, args, details)); const resource_add_3_mutationPgResource = registry.pgResources["add_3_mutation"]; -const argDetailsSimple95 = [{ +const argDetailsSimple_add_4_mutation = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14939,52 +10914,9 @@ const argDetailsSimple95 = [{ required: false, fetcher: null }]; -const makeArgs95 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple95[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation = (args, path = []) => argDetailsSimple_add_4_mutation.map(details => makeArg(path, args, details)); const resource_add_4_mutationPgResource = registry.pgResources["add_4_mutation"]; -const argDetailsSimple96 = [{ +const argDetailsSimple_add_4_mutation_error = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14997,52 +10929,9 @@ const argDetailsSimple96 = [{ required: false, fetcher: null }]; -const makeArgs96 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple96[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation_error = (args, path = []) => argDetailsSimple_add_4_mutation_error.map(details => makeArg(path, args, details)); const resource_add_4_mutation_errorPgResource = registry.pgResources["add_4_mutation_error"]; -const argDetailsSimple97 = [{ +const argDetailsSimple_mult_1 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15055,52 +10944,9 @@ const argDetailsSimple97 = [{ required: true, fetcher: null }]; -const makeArgs97 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple97[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_1 = (args, path = []) => argDetailsSimple_mult_1.map(details => makeArg(path, args, details)); const resource_mult_1PgResource = registry.pgResources["mult_1"]; -const argDetailsSimple98 = [{ +const argDetailsSimple_mult_2 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15113,52 +10959,9 @@ const argDetailsSimple98 = [{ required: true, fetcher: null }]; -const makeArgs98 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple98[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_2 = (args, path = []) => argDetailsSimple_mult_2.map(details => makeArg(path, args, details)); const resource_mult_2PgResource = registry.pgResources["mult_2"]; -const argDetailsSimple99 = [{ +const argDetailsSimple_mult_3 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15171,52 +10974,9 @@ const argDetailsSimple99 = [{ required: true, fetcher: null }]; -const makeArgs99 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple99[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_3 = (args, path = []) => argDetailsSimple_mult_3.map(details => makeArg(path, args, details)); const resource_mult_3PgResource = registry.pgResources["mult_3"]; -const argDetailsSimple100 = [{ +const argDetailsSimple_mult_4 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15229,52 +10989,9 @@ const argDetailsSimple100 = [{ required: true, fetcher: null }]; -const makeArgs100 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple100[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_4 = (args, path = []) => argDetailsSimple_mult_4.map(details => makeArg(path, args, details)); const resource_mult_4PgResource = registry.pgResources["mult_4"]; -const argDetailsSimple101 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -15287,190 +11004,18 @@ const argDetailsSimple101 = [{ required: true, fetcher: null }]; -const makeArgs101 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple101[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple102 = []; -const makeArgs102 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple102[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple103 = []; -const makeArgs103 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple103[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple104 = []; -const makeArgs104 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple104[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple105 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -15489,294 +11034,36 @@ const argDetailsSimple105 = [{ required: true, fetcher: null }]; -const makeArgs105 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple105[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple106 = []; -const makeArgs106 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple106[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple107 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs107 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple107[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple108 = [{ +const argDetailsSimple_guid_fn = [{ graphqlArgName: "g", postgresArgName: "g", pgCodec: guidCodec, required: true, fetcher: null }]; -const makeArgs108 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple108[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 makeArgs_guid_fn = (args, path = []) => argDetailsSimple_guid_fn.map(details => makeArg(path, args, details)); const resource_guid_fnPgResource = registry.pgResources["guid_fn"]; -const argDetailsSimple109 = []; -const makeArgs109 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple109[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 argDetailsSimple_mutation_interval_array = []; +const makeArgs_mutation_interval_array = (args, path = []) => argDetailsSimple_mutation_interval_array.map(details => makeArg(path, args, details)); const resource_mutation_interval_arrayPgResource = registry.pgResources["mutation_interval_array"]; -const argDetailsSimple110 = []; -const makeArgs110 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple110[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 argDetailsSimple_mutation_text_array = []; +const makeArgs_mutation_text_array = (args, path = []) => argDetailsSimple_mutation_text_array.map(details => makeArg(path, args, details)); const resource_mutation_text_arrayPgResource = registry.pgResources["mutation_text_array"]; -const argDetailsSimple111 = [{ +const argDetailsSimple_list_bde_mutation = [{ graphqlArgName: "b", postgresArgName: "b", pgCodec: textArrayCodec, @@ -15795,98 +11082,12 @@ const argDetailsSimple111 = [{ required: true, fetcher: null }]; -const makeArgs111 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple111[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 makeArgs_list_bde_mutation = (args, path = []) => argDetailsSimple_list_bde_mutation.map(details => makeArg(path, args, details)); const resource_list_bde_mutationPgResource = registry.pgResources["list_bde_mutation"]; -const argDetailsSimple112 = []; -const makeArgs112 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple112[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 argDetailsSimple_authenticate_fail = []; +const makeArgs_authenticate_fail = (args, path = []) => argDetailsSimple_authenticate_fail.map(details => makeArg(path, args, details)); const resource_authenticate_failPgResource = registry.pgResources["authenticate_fail"]; -const argDetailsSimple113 = [{ +const argDetailsSimple_authenticate = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15905,196 +11106,24 @@ const argDetailsSimple113 = [{ required: true, fetcher: null }]; -const makeArgs113 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple113[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 makeArgs_authenticate = (args, path = []) => argDetailsSimple_authenticate.map(details => makeArg(path, args, details)); const resource_authenticatePgResource = registry.pgResources["authenticate"]; -const argDetailsSimple114 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs114 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple114[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple115 = []; -const makeArgs115 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple115[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple116 = []; -const makeArgs116 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple116[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple117 = [{ +const argDetailsSimple_authenticate_many = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16113,52 +11142,9 @@ const argDetailsSimple117 = [{ required: true, fetcher: null }]; -const makeArgs117 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple117[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 makeArgs_authenticate_many = (args, path = []) => argDetailsSimple_authenticate_many.map(details => makeArg(path, args, details)); const resource_authenticate_manyPgResource = registry.pgResources["authenticate_many"]; -const argDetailsSimple118 = [{ +const argDetailsSimple_authenticate_payload = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16177,52 +11163,9 @@ const argDetailsSimple118 = [{ required: true, fetcher: null }]; -const makeArgs118 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple118[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 makeArgs_authenticate_payload = (args, path = []) => argDetailsSimple_authenticate_payload.map(details => makeArg(path, args, details)); const resource_authenticate_payloadPgResource = registry.pgResources["authenticate_payload"]; -const argDetailsSimple119 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -16259,260 +11202,45 @@ const argDetailsSimple119 = [{ required: true, fetcher: null }]; -const makeArgs119 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple119[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple120 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs120 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple120[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple121 = [{ +const argDetailsSimple_compound_type_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs121 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple121[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 makeArgs_compound_type_mutation = (args, path = []) => argDetailsSimple_compound_type_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_mutationPgResource = registry.pgResources["compound_type_mutation"]; -const argDetailsSimple122 = [{ +const argDetailsSimple_compound_type_set_mutation = [{ 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 makeArgs_compound_type_set_mutation = (args, path = []) => argDetailsSimple_compound_type_set_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_set_mutationPgResource = registry.pgResources["compound_type_set_mutation"]; -const argDetailsSimple123 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, 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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple124 = [{ +const argDetailsSimple_post_with_suffix = [{ graphqlArgName: "post", postgresArgName: "post", pgCodec: postCodec, @@ -16525,208 +11253,36 @@ const argDetailsSimple124 = [{ required: true, fetcher: null }]; -const makeArgs124 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple124[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 makeArgs_post_with_suffix = (args, path = []) => argDetailsSimple_post_with_suffix.map(details => makeArg(path, args, details)); const resource_post_with_suffixPgResource = registry.pgResources["post_with_suffix"]; -const argDetailsSimple125 = [{ +const argDetailsSimple_mutation_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs125 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple125[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 makeArgs_mutation_compound_type_array = (args, path = []) => argDetailsSimple_mutation_compound_type_array.map(details => makeArg(path, args, details)); const resource_mutation_compound_type_arrayPgResource = registry.pgResources["mutation_compound_type_array"]; -const argDetailsSimple126 = [{ +const argDetailsSimple_compound_type_array_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs126 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple126[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 makeArgs_compound_type_array_mutation = (args, path = []) => argDetailsSimple_compound_type_array_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_array_mutationPgResource = registry.pgResources["compound_type_array_mutation"]; -const argDetailsSimple127 = [{ +const argDetailsSimple_post_many = [{ graphqlArgName: "posts", postgresArgName: "posts", pgCodec: postArrayCodec, required: true, fetcher: null }]; -const makeArgs127 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple127[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 makeArgs_post_many = (args, path = []) => argDetailsSimple_post_many.map(details => makeArg(path, args, details)); const resource_post_manyPgResource = registry.pgResources["post_many"]; -const argDetailsSimple128 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16739,52 +11295,9 @@ const argDetailsSimple128 = [{ required: true, fetcher: null }]; -const makeArgs128 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple128[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple129 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16797,483 +11310,182 @@ const argDetailsSimple129 = [{ required: true, fetcher: null }]; -const makeArgs129 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple129[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple130 = []; -const makeArgs130 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple130[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple131 = []; -const makeArgs131 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple131[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple132 = []; -const makeArgs132 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple132[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; -const argDetailsSimple133 = []; -const makeArgs133 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple133[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 argDetailsSimple_type_function_connection_mutation = []; +const makeArgs_type_function_connection_mutation = (args, path = []) => argDetailsSimple_type_function_connection_mutation.map(details => makeArg(path, args, details)); const resource_type_function_connection_mutationPgResource = registry.pgResources["type_function_connection_mutation"]; -const argDetailsSimple134 = [{ +const argDetailsSimple_type_function_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs134 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple134[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 makeArgs_type_function_mutation = (args, path = []) => argDetailsSimple_type_function_mutation.map(details => makeArg(path, args, details)); const resource_type_function_mutationPgResource = registry.pgResources["type_function_mutation"]; -const argDetailsSimple135 = []; -const makeArgs135 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple135[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 argDetailsSimple_type_function_list_mutation = []; +const makeArgs_type_function_list_mutation = (args, path = []) => argDetailsSimple_type_function_list_mutation.map(details => makeArg(path, args, details)); const resource_type_function_list_mutationPgResource = registry.pgResources["type_function_list_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs15 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs16 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs17 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs18 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs19 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const specFromArgs20 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs21 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs22 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs23 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs24 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs25 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs26 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs27 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs28 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs29 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs30 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs31 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs32 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs33 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs34 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs35 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs36 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs37 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs38 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const resource_frmcdc_jwtTokenPgResource = registry.pgResources["frmcdc_jwtToken"]; @@ -27744,131 +21956,131 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, inputById(_$root, args) { return pgResource_inputsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, patchById(_$root, args) { return pgResource_patchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedById(_$root, args) { return pgResource_reservedPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedPatchRecordById(_$root, args) { return pgResource_reservedPatchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedInputRecordById(_$root, args) { return pgResource_reserved_inputPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, defaultValueById(_$root, args) { return pgResource_default_valuePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, noPrimaryKeyById(_$root, args) { return resource_no_primary_keyPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, uniqueForeignKeyByCompoundKey1AndCompoundKey2(_$root, args) { return resource_unique_foreign_keyPgResource.get({ - compound_key_1: args.get("compoundKey1"), - compound_key_2: args.get("compoundKey2") + compound_key_1: args.getRaw("compoundKey1"), + compound_key_2: args.getRaw("compoundKey2") }); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, viewTableById(_$root, args) { return pgResource_view_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, similarTable1ById(_$root, args) { return pgResource_similar_table_1PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, similarTable2ById(_$root, args) { return pgResource_similar_table_2PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, listById(_$root, args) { return pgResource_listsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, typeById(_$root, args) { return pgResource_typesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -27885,7 +22097,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27894,7 +22105,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27903,7 +22113,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27912,7 +22121,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27921,7 +22129,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27930,11 +22137,11 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, queryIntervalSet: { @@ -27951,7 +22158,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27960,7 +22166,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27969,7 +22174,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27978,7 +22182,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27987,7 +22190,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28009,7 +22211,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28018,7 +22219,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28027,7 +22227,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28036,7 +22235,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28045,7 +22243,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28054,7 +22251,7 @@ export const plans = { } }, funcInOut($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -28071,7 +22268,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28080,7 +22276,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28089,7 +22284,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28098,7 +22292,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28107,7 +22300,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28116,35 +22308,35 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, add1Query($root, args, _info) { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_add_1_query(args); return resource_add_1_queryPgResource.execute(selectArgs); }, add2Query($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_add_2_query(args); return resource_add_2_queryPgResource.execute(selectArgs); }, add3Query($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_add_3_query(args); return resource_add_3_queryPgResource.execute(selectArgs); }, add4Query($root, args, _info) { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_add_4_query(args); return resource_add_4_queryPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -28161,7 +22353,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28170,7 +22361,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28179,7 +22369,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28188,7 +22377,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28197,7 +22385,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28206,19 +22393,18 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28227,7 +22413,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28236,27 +22421,27 @@ export const plans = { } }, optionalMissingMiddle1($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_optional_missing_middle_1(args); return resource_optional_missing_middle_1PgResource.execute(selectArgs); }, optionalMissingMiddle2($root, args, _info) { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_optional_missing_middle_2(args); return resource_optional_missing_middle_2PgResource.execute(selectArgs); }, optionalMissingMiddle3($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_optional_missing_middle_3(args); return resource_optional_missing_middle_3PgResource.execute(selectArgs); }, optionalMissingMiddle4($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_optional_missing_middle_4(args); return resource_optional_missing_middle_4PgResource.execute(selectArgs); }, optionalMissingMiddle5($root, args, _info) { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_optional_missing_middle_5(args); return resource_optional_missing_middle_5PgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -28273,7 +22458,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28282,7 +22466,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28291,7 +22474,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28300,7 +22482,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28309,7 +22490,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28331,7 +22511,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28340,7 +22519,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28349,7 +22527,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28358,7 +22535,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28367,7 +22543,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28376,27 +22551,27 @@ export const plans = { } }, queryIntervalArray($root, args, _info) { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_query_interval_array(args); return resource_query_interval_arrayPgResource.execute(selectArgs); }, queryTextArray($root, args, _info) { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_query_text_array(args); return resource_query_text_arrayPgResource.execute(selectArgs); }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs31(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs32(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs33(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs34(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -28413,7 +22588,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28422,7 +22596,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28431,7 +22604,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28440,7 +22612,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28449,7 +22620,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28458,23 +22628,23 @@ export const plans = { } }, compoundTypeQuery($root, args, _info) { - const selectArgs = makeArgs36(args); + const selectArgs = makeArgs_compound_type_query(args); return resource_compound_type_queryPgResource.execute(selectArgs); }, tableQuery($root, args, _info) { - const selectArgs = makeArgs37(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, queryCompoundTypeArray($root, args, _info) { - const selectArgs = makeArgs38(args); + const selectArgs = makeArgs_query_compound_type_array(args); return resource_query_compound_type_arrayPgResource.execute(selectArgs); }, compoundTypeArrayQuery($root, args, _info) { - const selectArgs = makeArgs39(args); + const selectArgs = makeArgs_compound_type_array_query(args); return resource_compound_type_array_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs40(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -28491,7 +22661,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28500,7 +22669,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28509,7 +22677,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28518,7 +22685,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28527,7 +22693,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28549,7 +22714,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28558,7 +22722,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28567,7 +22730,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28576,7 +22738,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28585,7 +22746,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28594,7 +22754,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs43(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -28611,7 +22771,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28620,7 +22779,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28629,7 +22787,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28638,7 +22795,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28647,7 +22803,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28669,7 +22824,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28678,7 +22832,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28687,7 +22840,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28696,7 +22848,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28705,7 +22856,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28714,22 +22864,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28749,7 +22895,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28758,7 +22903,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28767,7 +22911,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28776,7 +22919,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28785,7 +22927,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28807,7 +22948,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28816,7 +22956,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28825,7 +22964,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28834,7 +22972,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28843,7 +22980,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28852,87 +22988,87 @@ export const plans = { } }, typeFunction($root, args, _info) { - const selectArgs = makeArgs48(args); + const selectArgs = makeArgs_type_function(args); return resource_type_functionPgResource.execute(selectArgs); }, typeFunctionList($root, args, _info) { - const selectArgs = makeArgs49(args); + const selectArgs = makeArgs_type_function_list(args); return resource_type_function_listPgResource.execute(selectArgs); }, input(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, patch(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, reserved(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, reservedPatchRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, reservedInputRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, defaultValue(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher8($nodeId); }, viewTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher9($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher10($nodeId); }, similarTable1(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher11($nodeId); }, similarTable2(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher12($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher13($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher14($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher15($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher16($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher17($nodeId); }, list(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher18($nodeId); }, type(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher19($nodeId); }, allNonUpdatableViews: { @@ -28943,7 +23079,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28952,7 +23087,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28961,7 +23095,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28970,7 +23103,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28979,7 +23111,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28988,22 +23119,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NonUpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29017,7 +23144,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29026,7 +23152,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29035,7 +23160,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29044,7 +23168,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29053,7 +23176,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29062,22 +23184,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29091,7 +23209,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29100,7 +23217,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29109,7 +23225,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29118,7 +23233,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29127,7 +23241,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29136,22 +23249,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29165,7 +23274,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29174,7 +23282,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29183,7 +23290,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29192,7 +23298,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29201,7 +23306,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29210,22 +23314,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29239,7 +23339,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29248,7 +23347,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29257,7 +23355,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29266,7 +23363,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29275,7 +23371,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29284,22 +23379,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29313,7 +23404,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29322,7 +23412,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29331,7 +23420,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29340,7 +23428,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29349,7 +23436,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29358,22 +23444,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29387,7 +23469,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29396,7 +23477,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29405,7 +23485,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29414,7 +23493,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29423,7 +23501,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29432,22 +23509,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29461,7 +23534,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29470,7 +23542,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29479,7 +23550,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29488,7 +23558,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29497,7 +23566,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29506,22 +23574,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29535,7 +23599,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29544,7 +23607,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29553,7 +23615,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29562,7 +23623,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29571,7 +23631,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29580,22 +23639,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NoPrimaryKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29609,7 +23664,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29618,7 +23672,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29627,7 +23680,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29636,7 +23688,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29645,7 +23696,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29654,22 +23704,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TestviewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29683,7 +23729,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29692,7 +23737,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29701,7 +23745,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29710,7 +23753,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29719,7 +23761,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29728,22 +23769,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29757,7 +23794,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29766,7 +23802,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29775,7 +23810,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29784,7 +23818,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29793,7 +23826,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29802,22 +23834,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29831,7 +23859,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29840,7 +23867,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29849,7 +23875,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29858,7 +23883,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29867,7 +23891,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29876,22 +23899,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29905,7 +23924,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29914,7 +23932,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29923,7 +23940,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29932,7 +23948,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29941,7 +23956,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29950,22 +23964,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29979,7 +23989,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29988,7 +23997,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29997,7 +24005,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30006,7 +24013,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30015,7 +24021,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30024,22 +24029,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30053,7 +24054,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30062,7 +24062,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30071,7 +24070,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30080,7 +24078,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30089,7 +24086,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30098,22 +24094,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30127,7 +24119,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30136,7 +24127,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30145,7 +24135,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30154,7 +24143,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30163,7 +24151,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30172,22 +24159,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30201,7 +24184,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30210,7 +24192,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30219,7 +24200,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30228,7 +24208,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30237,7 +24216,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30246,22 +24224,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30275,7 +24249,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30284,7 +24257,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30293,7 +24265,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30302,7 +24273,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30311,7 +24281,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30320,22 +24289,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30349,7 +24314,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30358,7 +24322,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30367,7 +24330,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30376,7 +24338,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30385,7 +24346,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30394,22 +24354,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30423,7 +24379,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30432,7 +24387,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30441,7 +24395,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30450,7 +24403,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30459,7 +24411,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30468,22 +24419,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30497,7 +24444,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30506,7 +24452,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30515,7 +24460,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30524,7 +24468,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30533,7 +24476,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30542,22 +24484,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30571,7 +24509,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30580,7 +24517,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30589,7 +24525,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30598,7 +24533,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30607,7 +24541,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30616,22 +24549,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30645,7 +24574,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30654,7 +24582,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30663,7 +24590,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30672,7 +24598,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30681,7 +24606,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30690,22 +24614,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30719,7 +24639,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30728,7 +24647,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30737,7 +24655,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30746,7 +24663,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30755,7 +24671,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30764,22 +24679,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30910,7 +24821,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30919,7 +24829,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30928,7 +24837,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30937,7 +24845,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30946,7 +24853,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30955,22 +24861,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30993,7 +24895,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31008,27 +24910,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -31037,7 +24933,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31052,27 +24948,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -31081,7 +24971,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs52(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31096,27 +24986,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -31125,7 +25009,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs53(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31140,27 +25024,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -31169,7 +25047,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs54(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31184,27 +25062,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -31213,7 +25085,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs55(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31228,27 +25100,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -31257,7 +25123,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs56(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31272,27 +25138,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -31301,7 +25161,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs57(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31316,27 +25176,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -31345,7 +25199,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs58(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31360,27 +25214,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -31389,7 +25237,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs59(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31404,27 +25252,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -31433,7 +25275,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs60(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31448,27 +25290,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -31477,7 +25313,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs61(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31492,27 +25328,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -31521,7 +25351,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs62(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31536,27 +25366,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -31565,7 +25389,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs63(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31580,27 +25404,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -31609,7 +25427,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs64(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31624,27 +25442,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -31663,7 +25475,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31672,7 +25483,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31681,7 +25491,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31690,7 +25499,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31699,7 +25507,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31708,12 +25515,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -31733,7 +25537,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31742,7 +25545,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31751,7 +25553,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31760,7 +25561,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31769,7 +25569,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31781,7 +25580,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs67(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31796,27 +25595,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -31825,7 +25618,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs68(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31840,27 +25633,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -31915,7 +25702,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31924,7 +25710,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31933,7 +25718,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31942,7 +25726,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31951,7 +25734,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31960,22 +25742,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -31992,7 +25770,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32001,7 +25778,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32010,7 +25786,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32019,7 +25794,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32028,7 +25802,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32037,22 +25810,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32079,7 +25848,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32088,7 +25856,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32097,7 +25864,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32106,7 +25872,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32115,7 +25880,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32124,22 +25888,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32156,7 +25916,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32165,7 +25924,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32174,7 +25932,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32183,7 +25940,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32192,7 +25948,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32201,22 +25956,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32291,7 +26042,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs69(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32306,27 +26057,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -32437,7 +26182,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32446,7 +26190,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32455,7 +26198,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32464,7 +26206,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32473,7 +26214,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32485,7 +26225,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs71(args); + const extraSelectArgs = makeArgs_post_computed_interval_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32500,27 +26240,21 @@ export const plans = { if (resource_post_computed_interval_arrayPgResource.isUnique && !resource_post_computed_interval_arrayPgResource.codec.attributes && typeof resource_post_computed_interval_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${resource_post_computed_interval_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_arrayPgResource.from, resource_post_computed_interval_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_arrayPgResource.execute(selectArgs); @@ -32529,7 +26263,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs72(args); + const extraSelectArgs = makeArgs_post_computed_text_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32544,27 +26278,21 @@ export const plans = { if (resource_post_computed_text_arrayPgResource.isUnique && !resource_post_computed_text_arrayPgResource.codec.attributes && typeof resource_post_computed_text_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${resource_post_computed_text_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_text_arrayPgResource.from, resource_post_computed_text_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_text_arrayPgResource.execute(selectArgs); @@ -32573,7 +26301,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs73(args); + const extraSelectArgs = makeArgs_post_computed_with_optional_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32588,27 +26316,21 @@ export const plans = { if (resource_post_computed_with_optional_argPgResource.isUnique && !resource_post_computed_with_optional_argPgResource.codec.attributes && typeof resource_post_computed_with_optional_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${resource_post_computed_with_optional_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_optional_argPgResource.from, resource_post_computed_with_optional_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_optional_argPgResource.execute(selectArgs); @@ -32617,7 +26339,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs74(args); + const extraSelectArgs = makeArgs_post_computed_with_required_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32632,27 +26354,21 @@ export const plans = { if (resource_post_computed_with_required_argPgResource.isUnique && !resource_post_computed_with_required_argPgResource.codec.attributes && typeof resource_post_computed_with_required_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${resource_post_computed_with_required_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_required_argPgResource.from, resource_post_computed_with_required_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_required_argPgResource.execute(selectArgs); @@ -32661,7 +26377,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs75(args); + const extraSelectArgs = makeArgs_post_headline_trimmed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32676,27 +26392,21 @@ export const plans = { if (resource_post_headline_trimmedPgResource.isUnique && !resource_post_headline_trimmedPgResource.codec.attributes && typeof resource_post_headline_trimmedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${resource_post_headline_trimmedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmedPgResource.from, resource_post_headline_trimmedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmedPgResource.execute(selectArgs); @@ -32705,7 +26415,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs76(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_no_defaults(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32720,27 +26430,21 @@ export const plans = { if (resource_post_headline_trimmed_no_defaultsPgResource.isUnique && !resource_post_headline_trimmed_no_defaultsPgResource.codec.attributes && typeof resource_post_headline_trimmed_no_defaultsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${resource_post_headline_trimmed_no_defaultsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.from, resource_post_headline_trimmed_no_defaultsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_no_defaultsPgResource.execute(selectArgs); @@ -32749,7 +26453,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs77(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_strict(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32764,27 +26468,21 @@ export const plans = { if (resource_post_headline_trimmed_strictPgResource.isUnique && !resource_post_headline_trimmed_strictPgResource.codec.attributes && typeof resource_post_headline_trimmed_strictPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${resource_post_headline_trimmed_strictPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_strictPgResource.from, resource_post_headline_trimmed_strictPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_strictPgResource.execute(selectArgs); @@ -32793,7 +26491,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs78(args); + const extraSelectArgs = makeArgs_post_computed_compound_type_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32808,27 +26506,21 @@ export const plans = { if (resource_post_computed_compound_type_arrayPgResource.isUnique && !resource_post_computed_compound_type_arrayPgResource.codec.attributes && typeof resource_post_computed_compound_type_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${resource_post_computed_compound_type_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_compound_type_arrayPgResource.from, resource_post_computed_compound_type_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_compound_type_arrayPgResource.execute(selectArgs); @@ -32870,7 +26562,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32879,7 +26570,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32888,7 +26578,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32897,7 +26586,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32906,7 +26594,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32915,22 +26602,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32993,64 +26676,70 @@ export const plans = { } }, CompoundTypeInput: { - "__inputPlan": function CompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, IntervalInput: { @@ -33568,31 +27257,21 @@ export const plans = { } }, TypesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33601,19 +27280,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33622,11 +27299,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -33634,7 +27308,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33644,11 +27318,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -33656,7 +27327,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33666,11 +27337,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "ASC", ...(undefined != null ? { @@ -33678,7 +27346,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33688,11 +27356,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "DESC", ...(undefined != null ? { @@ -33700,7 +27365,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33710,11 +27375,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "ASC", ...(undefined != null ? { @@ -33722,7 +27384,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33732,11 +27394,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "DESC", ...(undefined != null ? { @@ -33744,7 +27403,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33754,11 +27413,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "ASC", ...(undefined != null ? { @@ -33766,7 +27422,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33776,11 +27432,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "DESC", ...(undefined != null ? { @@ -33788,7 +27441,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33798,11 +27451,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "ASC", ...(undefined != null ? { @@ -33810,7 +27460,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33820,11 +27470,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "DESC", ...(undefined != null ? { @@ -33832,7 +27479,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33842,11 +27489,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "ASC", ...(undefined != null ? { @@ -33854,7 +27498,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33864,11 +27508,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "DESC", ...(undefined != null ? { @@ -33876,7 +27517,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33886,11 +27527,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "ASC", ...(undefined != null ? { @@ -33898,7 +27536,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33908,11 +27546,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "DESC", ...(undefined != null ? { @@ -33920,7 +27555,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33930,11 +27565,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "ASC", ...(undefined != null ? { @@ -33942,7 +27574,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33952,11 +27584,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "DESC", ...(undefined != null ? { @@ -33964,7 +27593,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33974,11 +27603,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "ASC", ...(undefined != null ? { @@ -33986,7 +27612,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33996,11 +27622,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "DESC", ...(undefined != null ? { @@ -34008,7 +27631,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34018,11 +27641,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "ASC", ...(undefined != null ? { @@ -34030,7 +27650,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34040,11 +27660,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "DESC", ...(undefined != null ? { @@ -34052,7 +27669,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34062,11 +27679,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "ASC", ...(undefined != null ? { @@ -34074,7 +27688,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34084,11 +27698,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "DESC", ...(undefined != null ? { @@ -34096,7 +27707,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34106,11 +27717,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "ASC", ...(undefined != null ? { @@ -34118,7 +27726,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34128,11 +27736,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "DESC", ...(undefined != null ? { @@ -34140,7 +27745,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34150,11 +27755,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "ASC", ...(undefined != null ? { @@ -34162,7 +27764,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34172,11 +27774,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "DESC", ...(undefined != null ? { @@ -34184,7 +27783,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34194,11 +27793,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "ASC", ...(undefined != null ? { @@ -34206,7 +27802,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34216,11 +27812,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "DESC", ...(undefined != null ? { @@ -34228,7 +27821,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34238,11 +27831,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "ASC", ...(undefined != null ? { @@ -34250,7 +27840,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34260,11 +27850,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "DESC", ...(undefined != null ? { @@ -34272,7 +27859,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34282,11 +27869,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "ASC", ...(undefined != null ? { @@ -34294,7 +27878,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34304,11 +27888,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "DESC", ...(undefined != null ? { @@ -34316,7 +27897,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34326,11 +27907,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "ASC", ...(undefined != null ? { @@ -34338,7 +27916,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34348,11 +27926,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "DESC", ...(undefined != null ? { @@ -34360,7 +27935,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34370,11 +27945,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "ASC", ...(undefined != null ? { @@ -34382,7 +27954,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34392,11 +27964,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "DESC", ...(undefined != null ? { @@ -34404,7 +27973,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34414,11 +27983,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "ASC", ...(undefined != null ? { @@ -34426,7 +27992,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34436,11 +28002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "DESC", ...(undefined != null ? { @@ -34448,7 +28011,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34458,11 +28021,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "ASC", ...(undefined != null ? { @@ -34470,7 +28030,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34480,11 +28040,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "DESC", ...(undefined != null ? { @@ -34492,7 +28049,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34502,11 +28059,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34514,7 +28068,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34524,11 +28078,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34536,7 +28087,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34546,11 +28097,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34558,7 +28106,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34568,11 +28116,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34580,7 +28125,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34590,11 +28135,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34602,7 +28144,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34612,11 +28154,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34624,7 +28163,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34634,11 +28173,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "ASC", ...(undefined != null ? { @@ -34646,7 +28182,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34656,11 +28192,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "DESC", ...(undefined != null ? { @@ -34668,7 +28201,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34678,11 +28211,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "ASC", ...(undefined != null ? { @@ -34690,7 +28220,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34700,11 +28230,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "DESC", ...(undefined != null ? { @@ -34712,7 +28239,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34722,11 +28249,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -34734,7 +28258,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34744,11 +28268,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -34756,7 +28277,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34766,11 +28287,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -34778,7 +28296,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34788,11 +28306,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -34800,7 +28315,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34810,11 +28325,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -34822,7 +28334,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34832,11 +28344,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -34844,7 +28353,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34854,11 +28363,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "ASC", ...(undefined != null ? { @@ -34866,7 +28372,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34876,11 +28382,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "DESC", ...(undefined != null ? { @@ -34888,7 +28391,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34898,11 +28401,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "ASC", ...(undefined != null ? { @@ -34910,7 +28410,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34920,11 +28420,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "DESC", ...(undefined != null ? { @@ -34932,7 +28429,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34942,11 +28439,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "ASC", ...(undefined != null ? { @@ -34954,7 +28448,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34964,11 +28458,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "DESC", ...(undefined != null ? { @@ -34976,7 +28467,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34986,11 +28477,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "ASC", ...(undefined != null ? { @@ -34998,7 +28486,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35008,11 +28496,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "DESC", ...(undefined != null ? { @@ -35020,7 +28505,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35030,11 +28515,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "ASC", ...(undefined != null ? { @@ -35042,7 +28524,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35052,11 +28534,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "DESC", ...(undefined != null ? { @@ -35064,7 +28543,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35074,11 +28553,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "ASC", ...(undefined != null ? { @@ -35086,7 +28562,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35096,11 +28572,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "DESC", ...(undefined != null ? { @@ -35108,7 +28581,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35118,11 +28591,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "ASC", ...(undefined != null ? { @@ -35130,7 +28600,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35140,11 +28610,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "DESC", ...(undefined != null ? { @@ -35152,7 +28619,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35162,11 +28629,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "ASC", ...(undefined != null ? { @@ -35174,7 +28638,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35184,11 +28648,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "DESC", ...(undefined != null ? { @@ -35196,7 +28657,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35206,11 +28667,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "ASC", ...(undefined != null ? { @@ -35218,7 +28676,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35228,11 +28686,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "DESC", ...(undefined != null ? { @@ -35240,7 +28695,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35249,8 +28704,8 @@ export const plans = { }, TypeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35263,17 +28718,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, smallint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "smallint", @@ -35286,17 +28739,15 @@ export const plans = { type: "attribute", attribute: "smallint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.smallint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, bigint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "bigint", @@ -35309,17 +28760,15 @@ export const plans = { type: "attribute", attribute: "bigint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.bigint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numeric: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numeric", @@ -35332,17 +28781,15 @@ export const plans = { type: "attribute", attribute: "numeric", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numeric.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, decimal: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "decimal", @@ -35355,17 +28802,15 @@ export const plans = { type: "attribute", attribute: "decimal", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.decimal.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, boolean: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "boolean", @@ -35378,17 +28823,15 @@ export const plans = { type: "attribute", attribute: "boolean", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.boolean.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, varchar: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "varchar", @@ -35401,17 +28844,15 @@ export const plans = { type: "attribute", attribute: "varchar", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.varchar.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum", @@ -35424,17 +28865,15 @@ export const plans = { type: "attribute", attribute: "enum", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -35447,17 +28886,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain", @@ -35470,17 +28907,15 @@ export const plans = { type: "attribute", attribute: "domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain2", @@ -35493,17 +28928,15 @@ export const plans = { type: "attribute", attribute: "domain2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anotherIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array", @@ -35516,17 +28949,15 @@ export const plans = { type: "attribute", attribute: "text_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, json: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json", @@ -35539,17 +28970,15 @@ export const plans = { type: "attribute", attribute: "json", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.json.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.json)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonb: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "jsonb", @@ -35562,17 +28991,15 @@ export const plans = { type: "attribute", attribute: "jsonb", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.jsonb.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_range", @@ -35585,17 +29012,15 @@ export const plans = { type: "attribute", attribute: "nullable_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numrange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numrange", @@ -35608,17 +29033,15 @@ export const plans = { type: "attribute", attribute: "numrange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numrange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, daterange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "daterange", @@ -35631,17 +29054,15 @@ export const plans = { type: "attribute", attribute: "daterange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.daterange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, daterangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, anIntRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "an_int_range", @@ -35654,17 +29075,15 @@ export const plans = { type: "attribute", attribute: "an_int_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.an_int_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntRangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamp", @@ -35677,17 +29096,15 @@ export const plans = { type: "attribute", attribute: "timestamp", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamp.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz", @@ -35700,17 +29117,15 @@ export const plans = { type: "attribute", attribute: "timestamptz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamptz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, date: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date", @@ -35723,17 +29138,15 @@ export const plans = { type: "attribute", attribute: "date", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.date.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.date)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, time: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "time", @@ -35746,17 +29159,15 @@ export const plans = { type: "attribute", attribute: "time", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.time.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.time)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timetz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timetz", @@ -35769,17 +29180,15 @@ export const plans = { type: "attribute", attribute: "timetz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timetz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timetz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, interval: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval", @@ -35792,17 +29201,15 @@ export const plans = { type: "attribute", attribute: "interval", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.interval)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intervalArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval_array", @@ -35815,17 +29222,15 @@ export const plans = { type: "attribute", attribute: "interval_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, intervalArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, money: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "money", @@ -35838,17 +29243,15 @@ export const plans = { type: "attribute", attribute: "money", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.money.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.money)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type", @@ -35861,17 +29264,15 @@ export const plans = { type: "attribute", attribute: "compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nested_compound_type", @@ -35884,17 +29285,15 @@ export const plans = { type: "attribute", attribute: "nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_compound_type", @@ -35907,17 +29306,15 @@ export const plans = { type: "attribute", attribute: "nullable_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableNestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_nested_compound_type", @@ -35930,17 +29327,15 @@ export const plans = { type: "attribute", attribute: "nullable_nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, point: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "point", @@ -35953,17 +29348,15 @@ export const plans = { type: "attribute", attribute: "point", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.point.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullablePoint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullablePoint", @@ -35976,17 +29369,15 @@ export const plans = { type: "attribute", attribute: "nullablePoint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullablePoint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -35999,17 +29390,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -36022,17 +29411,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -36045,17 +29432,15 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regproc: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regproc", @@ -36068,17 +29453,15 @@ export const plans = { type: "attribute", attribute: "regproc", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regproc.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regproc)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regprocedure: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regprocedure", @@ -36091,17 +29474,15 @@ export const plans = { type: "attribute", attribute: "regprocedure", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regprocedure.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regprocedure)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoper: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoper", @@ -36114,17 +29495,15 @@ export const plans = { type: "attribute", attribute: "regoper", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoper.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoper)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoperator: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoperator", @@ -36137,17 +29516,15 @@ export const plans = { type: "attribute", attribute: "regoperator", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoperator.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoperator)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regclass: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regclass", @@ -36160,17 +29537,15 @@ export const plans = { type: "attribute", attribute: "regclass", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regclass.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regclass)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regtype: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regtype", @@ -36183,17 +29558,15 @@ export const plans = { type: "attribute", attribute: "regtype", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regtype.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regtype)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regconfig: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regconfig", @@ -36206,17 +29579,15 @@ export const plans = { type: "attribute", attribute: "regconfig", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regconfig.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regconfig)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regdictionary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regdictionary", @@ -36229,17 +29600,15 @@ export const plans = { type: "attribute", attribute: "regdictionary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regdictionary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regdictionary)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array_domain", @@ -36252,17 +29621,15 @@ export const plans = { type: "attribute", attribute: "text_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, int8ArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int8_array_domain", @@ -36275,17 +29642,15 @@ export const plans = { type: "attribute", attribute: "int8_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.int8_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int8ArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltree: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree", @@ -36298,17 +29663,15 @@ export const plans = { type: "attribute", attribute: "ltree", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_codec_ltree)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltreeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree_array", @@ -36321,13 +29684,11 @@ export const plans = { type: "attribute", attribute: "ltree_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_array_codec_ltree_)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BigFloatRangeInput: { @@ -36355,29 +29716,30 @@ export const plans = { inclusive: undefined }, NestedCompoundTypeInput: { - "__inputPlan": function NestedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, bazBuz: { - applyPlan($insert, val) { - $insert.set("baz_buz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("baz_buz", bakedInputRuntime(schema, field.type, val)); + } } }, PointInput: { @@ -36410,26 +29772,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36442,14 +29796,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36462,14 +29816,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36482,14 +29836,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36502,19 +29856,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36523,19 +29875,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36544,11 +29894,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36556,7 +29903,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36566,11 +29913,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36578,7 +29922,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36588,11 +29932,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -36600,7 +29941,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36610,11 +29951,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -36622,7 +29960,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36632,11 +29970,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -36644,7 +29979,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36654,11 +29989,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -36666,7 +29998,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36676,11 +30008,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -36688,7 +30017,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36698,11 +30027,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -36710,7 +30036,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36720,11 +30046,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -36732,7 +30055,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36742,11 +30065,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -36754,7 +30074,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36764,11 +30084,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -36776,7 +30093,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36786,11 +30103,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -36798,7 +30112,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36808,11 +30122,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -36820,7 +30131,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36830,11 +30141,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -36842,7 +30150,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36852,11 +30160,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -36864,7 +30169,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36874,11 +30179,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -36886,7 +30188,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36896,11 +30198,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -36908,7 +30207,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36918,11 +30217,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -36930,7 +30226,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36940,11 +30236,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -36952,7 +30245,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36962,11 +30255,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -36974,7 +30264,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37057,26 +30347,18 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_WITH_OPTIONAL_ARG_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -37089,14 +30371,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -37109,19 +30391,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37130,19 +30410,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37151,11 +30429,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37163,7 +30438,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37173,11 +30448,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37185,7 +30457,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37195,11 +30467,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "ASC", ...(undefined != null ? { @@ -37207,7 +30476,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37217,11 +30486,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "DESC", ...(undefined != null ? { @@ -37229,7 +30495,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37239,11 +30505,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -37251,7 +30514,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37261,11 +30524,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -37273,7 +30533,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37283,11 +30543,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -37295,7 +30552,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37305,11 +30562,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -37317,7 +30571,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37326,8 +30580,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37340,17 +30594,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, headline: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "headline", @@ -37363,17 +30615,15 @@ export const plans = { type: "attribute", attribute: "headline", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.headline.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -37386,17 +30636,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -37409,17 +30657,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enums: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enums", @@ -37432,17 +30678,15 @@ export const plans = { type: "attribute", attribute: "enums", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.enums.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anEnumArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, comptypes: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "comptypes", @@ -37455,47 +30699,46 @@ export const plans = { type: "attribute", attribute: "comptypes", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.comptypes.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, comptypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedWithOptionalArg: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_post_computed_with_optional_argPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_post_computed_with_optional_argPgResource.codec)}`); } } } }, ComptypeInput: { - "__inputPlan": function ComptypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, schedule: { - applyPlan($insert, val) { - $insert.set("schedule", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("schedule", bakedInputRuntime(schema, field.type, val)); + } }, isOptimised: { - applyPlan($insert, val) { - $insert.set("is_optimised", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_optimised", bakedInputRuntime(schema, field.type, val)); + } } }, ForeignKeysConnection: { @@ -37547,23 +30790,12 @@ export const plans = { } }, ForeignKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PERSON_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -37571,7 +30803,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37581,11 +30813,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -37593,7 +30822,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37603,11 +30832,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "ASC", ...(undefined != null ? { @@ -37615,7 +30841,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37625,11 +30851,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "DESC", ...(undefined != null ? { @@ -37637,7 +30860,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37647,11 +30870,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "ASC", ...(undefined != null ? { @@ -37659,7 +30879,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37669,11 +30889,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "DESC", ...(undefined != null ? { @@ -37681,7 +30898,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37690,8 +30907,8 @@ export const plans = { }, ForeignKeyCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -37704,17 +30921,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_1", @@ -37727,17 +30942,15 @@ export const plans = { type: "attribute", attribute: "compound_key_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_2", @@ -37750,13 +30963,11 @@ export const plans = { type: "attribute", attribute: "compound_key_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecret: { @@ -37827,31 +31038,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37860,19 +31061,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37881,11 +31080,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -37893,7 +31089,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37903,11 +31099,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -37915,7 +31108,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37925,11 +31118,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -37937,7 +31127,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37947,11 +31137,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -37959,7 +31146,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37969,11 +31156,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -37981,7 +31165,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37991,11 +31175,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -38003,7 +31184,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38012,8 +31193,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -38026,17 +31207,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -38049,17 +31228,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -38072,13 +31249,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTable: { @@ -38621,8 +31796,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -38635,17 +31810,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -38658,17 +31831,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -38681,17 +31852,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -38704,17 +31873,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -38727,17 +31894,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -38750,17 +31915,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -38773,17 +31936,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -38796,17 +31957,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -38819,17 +31978,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -38842,17 +31999,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -38865,40 +32020,38 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, NonUpdatableViewsConnection: { @@ -38933,23 +32086,12 @@ export const plans = { } }, NonUpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COLUMN_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "ASC", ...(undefined != null ? { @@ -38957,7 +32099,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38967,11 +32109,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "DESC", ...(undefined != null ? { @@ -38979,7 +32118,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38988,8 +32127,8 @@ export const plans = { }, NonUpdatableViewCondition: { column: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "?column?", @@ -39002,13 +32141,11 @@ export const plans = { type: "attribute", attribute: "?column?", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nonUpdatableView.attributes["?column?"].codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, InputsConnection: { @@ -39037,31 +32174,21 @@ export const plans = { } }, InputsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39070,19 +32197,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39091,11 +32216,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39103,7 +32225,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39113,11 +32235,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39125,7 +32244,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39134,8 +32253,8 @@ export const plans = { }, InputCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39148,13 +32267,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_inputs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PatchesConnection: { @@ -39183,31 +32300,21 @@ export const plans = { } }, PatchesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39216,19 +32323,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39237,11 +32342,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39249,7 +32351,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39259,11 +32361,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39271,7 +32370,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39280,8 +32379,8 @@ export const plans = { }, PatchCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39294,13 +32393,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_patchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedsConnection: { @@ -39329,31 +32426,21 @@ export const plans = { } }, ReservedsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39362,19 +32449,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39383,11 +32468,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39395,7 +32477,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39405,11 +32487,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39417,7 +32496,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39426,8 +32505,8 @@ export const plans = { }, ReservedCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39440,13 +32519,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedPatchRecordsConnection: { @@ -39475,31 +32552,21 @@ export const plans = { } }, ReservedPatchRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39508,19 +32575,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39529,11 +32594,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39541,7 +32603,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39551,11 +32613,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39563,7 +32622,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39572,8 +32631,8 @@ export const plans = { }, ReservedPatchRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39586,13 +32645,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedPatchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedInputRecordsConnection: { @@ -39621,31 +32678,21 @@ export const plans = { } }, ReservedInputRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39654,19 +32701,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39675,11 +32720,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39687,7 +32729,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39697,11 +32739,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39709,7 +32748,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39718,8 +32757,8 @@ export const plans = { }, ReservedInputRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39732,13 +32771,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedInput.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, DefaultValuesConnection: { @@ -39767,31 +32804,21 @@ export const plans = { } }, DefaultValuesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39800,19 +32827,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39821,11 +32846,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39833,7 +32855,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39843,11 +32865,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39855,7 +32874,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39865,11 +32884,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "ASC", ...(undefined != null ? { @@ -39877,7 +32893,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39887,11 +32903,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "DESC", ...(undefined != null ? { @@ -39899,7 +32912,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39908,8 +32921,8 @@ export const plans = { }, DefaultValueCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39922,17 +32935,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullValue: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "null_value", @@ -39945,13 +32956,11 @@ export const plans = { type: "attribute", attribute: "null_value", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.null_value.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NoPrimaryKeysConnection: { @@ -39980,23 +32989,12 @@ export const plans = { } }, NoPrimaryKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40004,7 +33002,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40014,11 +33012,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40026,7 +33021,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40036,11 +33031,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "ASC", ...(undefined != null ? { @@ -40048,7 +33040,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40058,11 +33050,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "DESC", ...(undefined != null ? { @@ -40070,7 +33059,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40079,8 +33068,8 @@ export const plans = { }, NoPrimaryKeyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40093,17 +33082,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, str: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str", @@ -40116,13 +33103,11 @@ export const plans = { type: "attribute", attribute: "str", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.str.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TestviewsConnection: { @@ -40163,23 +33148,12 @@ export const plans = { } }, TestviewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, TESTVIEWID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "ASC", ...(undefined != null ? { @@ -40187,7 +33161,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40197,11 +33171,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "DESC", ...(undefined != null ? { @@ -40209,7 +33180,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40219,11 +33190,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40231,7 +33199,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40241,11 +33209,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40253,7 +33218,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40263,11 +33228,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40275,7 +33237,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40285,11 +33247,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40297,7 +33256,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40306,8 +33265,8 @@ export const plans = { }, TestviewCondition: { testviewid: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "testviewid", @@ -40320,17 +33279,15 @@ export const plans = { type: "attribute", attribute: "testviewid", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.testviewid.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -40343,17 +33300,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -40366,13 +33321,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTablesConnection: { @@ -40401,31 +33354,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40434,19 +33377,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40455,11 +33396,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40467,7 +33405,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40477,11 +33415,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40489,7 +33424,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40499,11 +33434,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -40511,7 +33443,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40521,11 +33453,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -40533,7 +33462,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40542,8 +33471,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40556,17 +33485,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -40579,13 +33506,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -40614,31 +33539,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40647,19 +33562,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40668,11 +33581,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -40680,7 +33590,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40690,11 +33600,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -40702,7 +33609,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40712,11 +33619,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -40724,7 +33628,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40734,11 +33638,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -40746,7 +33647,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40755,8 +33656,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -40769,17 +33670,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -40792,13 +33691,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ViewTablesConnection: { @@ -40827,31 +33724,21 @@ export const plans = { } }, ViewTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40860,19 +33747,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40881,11 +33766,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40893,7 +33775,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40903,11 +33785,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40915,7 +33794,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40925,11 +33804,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40937,7 +33813,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40947,11 +33823,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40959,7 +33832,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40969,11 +33842,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40981,7 +33851,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40991,11 +33861,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -41003,7 +33870,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41012,8 +33879,8 @@ export const plans = { }, ViewTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41026,17 +33893,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41049,17 +33914,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41072,13 +33935,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable1SConnection: { @@ -41107,31 +33968,21 @@ export const plans = { } }, SimilarTable1SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41140,19 +33991,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41161,11 +34010,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41173,7 +34019,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41183,11 +34029,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41195,7 +34038,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41205,11 +34048,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -41217,7 +34057,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41227,11 +34067,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -41239,7 +34076,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41249,11 +34086,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -41261,7 +34095,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41271,11 +34105,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -41283,7 +34114,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41293,11 +34124,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41305,7 +34133,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41315,11 +34143,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41327,7 +34152,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41336,8 +34161,8 @@ export const plans = { }, SimilarTable1Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41350,17 +34175,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41373,17 +34196,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41396,17 +34217,15 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41419,13 +34238,11 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable2SConnection: { @@ -41454,31 +34271,21 @@ export const plans = { } }, SimilarTable2SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41487,19 +34294,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41508,11 +34313,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41520,7 +34322,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41530,11 +34332,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41542,7 +34341,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41552,11 +34351,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41564,7 +34360,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41574,11 +34370,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41586,7 +34379,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41596,11 +34389,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "ASC", ...(undefined != null ? { @@ -41608,7 +34398,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41618,11 +34408,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "DESC", ...(undefined != null ? { @@ -41630,7 +34417,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41640,11 +34427,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "ASC", ...(undefined != null ? { @@ -41652,7 +34436,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41662,11 +34446,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "DESC", ...(undefined != null ? { @@ -41674,7 +34455,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41683,8 +34464,8 @@ export const plans = { }, SimilarTable2Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41697,17 +34478,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41720,17 +34499,15 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col4: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col4", @@ -41743,17 +34520,15 @@ export const plans = { type: "attribute", attribute: "col4", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col4.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col5: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col5", @@ -41766,13 +34541,11 @@ export const plans = { type: "attribute", attribute: "col5", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col5.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UpdatableViewsConnection: { @@ -41816,23 +34589,12 @@ export const plans = { } }, UpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, X_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "ASC", ...(undefined != null ? { @@ -41840,7 +34602,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41850,11 +34612,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "DESC", ...(undefined != null ? { @@ -41862,7 +34621,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41872,11 +34631,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -41884,7 +34640,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41894,11 +34650,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -41906,7 +34659,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41916,11 +34669,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -41928,7 +34678,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41938,11 +34688,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -41950,7 +34697,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41960,11 +34707,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "ASC", ...(undefined != null ? { @@ -41972,7 +34716,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41982,11 +34726,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "DESC", ...(undefined != null ? { @@ -41994,7 +34735,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42003,8 +34744,8 @@ export const plans = { }, UpdatableViewCondition: { x: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "x", @@ -42017,17 +34758,15 @@ export const plans = { type: "attribute", attribute: "x", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.x.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -42040,17 +34779,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -42063,17 +34800,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constant: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constant", @@ -42086,13 +34821,11 @@ export const plans = { type: "attribute", attribute: "constant", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.constant.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -42121,31 +34854,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42154,19 +34877,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42175,11 +34896,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42187,7 +34905,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42197,11 +34915,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42209,7 +34924,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42219,11 +34934,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -42231,7 +34943,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42241,11 +34953,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -42253,7 +34962,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42263,11 +34972,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -42275,7 +34981,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42285,11 +34991,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -42297,7 +35000,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42307,11 +35010,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -42319,7 +35019,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42329,11 +35029,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -42341,7 +35038,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42350,8 +35047,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42364,17 +35061,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -42387,17 +35082,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -42410,17 +35103,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -42433,13 +35124,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -42464,7 +35153,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs79(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -42479,27 +35168,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -42524,23 +35207,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -42548,7 +35220,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42558,11 +35230,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -42570,7 +35239,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42580,11 +35249,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -42592,7 +35258,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42602,11 +35268,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -42614,7 +35277,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42624,11 +35287,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -42636,7 +35296,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42646,11 +35306,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -42658,7 +35315,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42667,8 +35324,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -42681,17 +35338,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -42704,17 +35359,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -42727,13 +35380,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -42762,31 +35413,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42795,19 +35436,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42816,11 +35455,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42828,7 +35464,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42838,11 +35474,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42850,7 +35483,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42860,11 +35493,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -42872,7 +35502,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42882,11 +35512,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -42894,7 +35521,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42904,11 +35531,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -42916,7 +35540,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42926,11 +35550,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -42938,7 +35559,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42948,11 +35569,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -42960,7 +35578,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42970,11 +35588,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -42982,7 +35597,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42991,8 +35606,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43005,17 +35620,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -43028,17 +35641,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -43051,17 +35662,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -43074,13 +35683,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -43109,31 +35716,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43142,19 +35739,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43163,11 +35758,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43175,7 +35767,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43185,11 +35777,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43197,7 +35786,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43207,11 +35796,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -43219,7 +35805,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43229,11 +35815,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -43241,7 +35824,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43250,8 +35833,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43264,17 +35847,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -43287,13 +35868,11 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ListsConnection: { @@ -43322,31 +35901,21 @@ export const plans = { } }, ListsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43355,19 +35924,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43376,11 +35943,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43388,7 +35952,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43398,11 +35962,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43410,7 +35971,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43419,8 +35980,8 @@ export const plans = { }, ListCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43433,17 +35994,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array", @@ -43456,17 +36015,15 @@ export const plans = { type: "attribute", attribute: "int_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array_nn", @@ -43479,17 +36036,15 @@ export const plans = { type: "attribute", attribute: "int_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -43502,17 +36057,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array_nn", @@ -43525,17 +36078,15 @@ export const plans = { type: "attribute", attribute: "enum_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array", @@ -43548,17 +36099,15 @@ export const plans = { type: "attribute", attribute: "date_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array_nn", @@ -43571,17 +36120,15 @@ export const plans = { type: "attribute", attribute: "date_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array", @@ -43594,17 +36141,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array_nn", @@ -43617,17 +36162,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array", @@ -43640,17 +36183,15 @@ export const plans = { type: "attribute", attribute: "compound_type_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array_nn", @@ -43663,20 +36204,18 @@ export const plans = { type: "attribute", attribute: "compound_type_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs80(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43686,9 +36225,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43696,7 +36244,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs81(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43706,9 +36254,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43716,7 +36273,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs82(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43726,9 +36283,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43736,7 +36302,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs83(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43746,9 +36312,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43756,7 +36331,7 @@ export const plans = { }, returnVoidMutation: { plan($root, args, _info) { - const selectArgs = makeArgs84(args, ["input"]); + const selectArgs = makeArgs_return_void_mutation(args, ["input"]); const $result = resource_return_void_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43766,9 +36341,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43776,7 +36360,7 @@ export const plans = { }, mutationIntervalSet: { plan($root, args, _info) { - const selectArgs = makeArgs85(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_set(args, ["input"]); const $result = resource_mutation_interval_setPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43786,9 +36370,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43796,7 +36389,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs86(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43806,9 +36399,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43816,7 +36418,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs87(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43826,9 +36428,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43836,7 +36447,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs88(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43846,9 +36457,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43856,7 +36476,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs89(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43866,9 +36486,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43876,7 +36505,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs90(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43886,9 +36515,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43896,7 +36534,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs91(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43906,9 +36544,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43916,7 +36563,7 @@ export const plans = { }, add1Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs92(args, ["input"]); + const selectArgs = makeArgs_add_1_mutation(args, ["input"]); const $result = resource_add_1_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43926,9 +36573,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43936,7 +36592,7 @@ export const plans = { }, add2Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs93(args, ["input"]); + const selectArgs = makeArgs_add_2_mutation(args, ["input"]); const $result = resource_add_2_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43946,9 +36602,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43956,7 +36621,7 @@ export const plans = { }, add3Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs94(args, ["input"]); + const selectArgs = makeArgs_add_3_mutation(args, ["input"]); const $result = resource_add_3_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43966,9 +36631,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43976,7 +36650,7 @@ export const plans = { }, add4Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs95(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation(args, ["input"]); const $result = resource_add_4_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43986,9 +36660,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43996,7 +36679,7 @@ export const plans = { }, add4MutationError: { plan($root, args, _info) { - const selectArgs = makeArgs96(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation_error(args, ["input"]); const $result = resource_add_4_mutation_errorPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44006,9 +36689,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44016,7 +36708,7 @@ export const plans = { }, mult1: { plan($root, args, _info) { - const selectArgs = makeArgs97(args, ["input"]); + const selectArgs = makeArgs_mult_1(args, ["input"]); const $result = resource_mult_1PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44026,9 +36718,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44036,7 +36737,7 @@ export const plans = { }, mult2: { plan($root, args, _info) { - const selectArgs = makeArgs98(args, ["input"]); + const selectArgs = makeArgs_mult_2(args, ["input"]); const $result = resource_mult_2PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44046,9 +36747,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44056,7 +36766,7 @@ export const plans = { }, mult3: { plan($root, args, _info) { - const selectArgs = makeArgs99(args, ["input"]); + const selectArgs = makeArgs_mult_3(args, ["input"]); const $result = resource_mult_3PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44066,9 +36776,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44076,7 +36795,7 @@ export const plans = { }, mult4: { plan($root, args, _info) { - const selectArgs = makeArgs100(args, ["input"]); + const selectArgs = makeArgs_mult_4(args, ["input"]); const $result = resource_mult_4PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44086,9 +36805,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44096,7 +36824,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs101(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44106,9 +36834,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44116,7 +36853,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs102(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44126,9 +36863,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44136,7 +36882,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs103(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44146,9 +36892,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44156,7 +36911,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs104(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44166,9 +36921,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44176,7 +36940,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs105(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44186,9 +36950,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44196,7 +36969,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs106(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44206,9 +36979,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44216,7 +36998,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs107(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44226,9 +37008,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44236,7 +37027,7 @@ export const plans = { }, guidFn: { plan($root, args, _info) { - const selectArgs = makeArgs108(args, ["input"]); + const selectArgs = makeArgs_guid_fn(args, ["input"]); const $result = resource_guid_fnPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44246,9 +37037,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44256,7 +37056,7 @@ export const plans = { }, mutationIntervalArray: { plan($root, args, _info) { - const selectArgs = makeArgs109(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_array(args, ["input"]); const $result = resource_mutation_interval_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44266,9 +37066,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44276,7 +37085,7 @@ export const plans = { }, mutationTextArray: { plan($root, args, _info) { - const selectArgs = makeArgs110(args, ["input"]); + const selectArgs = makeArgs_mutation_text_array(args, ["input"]); const $result = resource_mutation_text_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44286,9 +37095,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44296,7 +37114,7 @@ export const plans = { }, listBdeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs111(args, ["input"]); + const selectArgs = makeArgs_list_bde_mutation(args, ["input"]); const $result = resource_list_bde_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44306,9 +37124,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44316,7 +37143,7 @@ export const plans = { }, authenticateFail: { plan($root, args, _info) { - const selectArgs = makeArgs112(args, ["input"]); + const selectArgs = makeArgs_authenticate_fail(args, ["input"]); const $result = resource_authenticate_failPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44326,9 +37153,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44336,7 +37172,7 @@ export const plans = { }, authenticate: { plan($root, args, _info) { - const selectArgs = makeArgs113(args, ["input"]); + const selectArgs = makeArgs_authenticate(args, ["input"]); const $result = resource_authenticatePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44346,9 +37182,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44356,7 +37201,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs114(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44366,9 +37211,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44376,7 +37230,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs115(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44386,9 +37240,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44396,7 +37259,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs116(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44406,9 +37269,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44416,7 +37288,7 @@ export const plans = { }, authenticateMany: { plan($root, args, _info) { - const selectArgs = makeArgs117(args, ["input"]); + const selectArgs = makeArgs_authenticate_many(args, ["input"]); const $result = resource_authenticate_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44426,9 +37298,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44436,7 +37317,7 @@ export const plans = { }, authenticatePayload: { plan($root, args, _info) { - const selectArgs = makeArgs118(args, ["input"]); + const selectArgs = makeArgs_authenticate_payload(args, ["input"]); const $result = resource_authenticate_payloadPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44446,9 +37327,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44456,7 +37346,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs119(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44466,9 +37356,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44476,7 +37375,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs120(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44486,9 +37385,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44496,7 +37404,7 @@ export const plans = { }, compoundTypeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs121(args, ["input"]); + const selectArgs = makeArgs_compound_type_mutation(args, ["input"]); const $result = resource_compound_type_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44506,9 +37414,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44516,7 +37433,7 @@ export const plans = { }, compoundTypeSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs122(args, ["input"]); + const selectArgs = makeArgs_compound_type_set_mutation(args, ["input"]); const $result = resource_compound_type_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44526,9 +37443,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44536,7 +37462,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs123(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44546,9 +37472,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44556,7 +37491,7 @@ export const plans = { }, postWithSuffix: { plan($root, args, _info) { - const selectArgs = makeArgs124(args, ["input"]); + const selectArgs = makeArgs_post_with_suffix(args, ["input"]); const $result = resource_post_with_suffixPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44566,9 +37501,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44576,7 +37520,7 @@ export const plans = { }, mutationCompoundTypeArray: { plan($root, args, _info) { - const selectArgs = makeArgs125(args, ["input"]); + const selectArgs = makeArgs_mutation_compound_type_array(args, ["input"]); const $result = resource_mutation_compound_type_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44586,9 +37530,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44596,7 +37549,7 @@ export const plans = { }, compoundTypeArrayMutation: { plan($root, args, _info) { - const selectArgs = makeArgs126(args, ["input"]); + const selectArgs = makeArgs_compound_type_array_mutation(args, ["input"]); const $result = resource_compound_type_array_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44606,9 +37559,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44616,7 +37578,7 @@ export const plans = { }, postMany: { plan($root, args, _info) { - const selectArgs = makeArgs127(args, ["input"]); + const selectArgs = makeArgs_post_many(args, ["input"]); const $result = resource_post_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44626,9 +37588,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44636,7 +37607,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs128(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44646,9 +37617,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44656,7 +37636,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs129(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44666,9 +37646,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44676,7 +37665,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs130(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44686,9 +37675,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44696,7 +37694,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs131(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44706,9 +37704,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44716,7 +37723,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs132(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44726,9 +37733,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44736,7 +37752,7 @@ export const plans = { }, typeFunctionConnectionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs133(args, ["input"]); + const selectArgs = makeArgs_type_function_connection_mutation(args, ["input"]); const $result = resource_type_function_connection_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44746,9 +37762,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44756,7 +37781,7 @@ export const plans = { }, typeFunctionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs134(args, ["input"]); + const selectArgs = makeArgs_type_function_mutation(args, ["input"]); const $result = resource_type_function_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44766,9 +37791,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44776,7 +37810,7 @@ export const plans = { }, typeFunctionListMutation: { plan($root, args, _info) { - const selectArgs = makeArgs135(args, ["input"]); + const selectArgs = makeArgs_type_function_list_mutation(args, ["input"]); const $result = resource_type_function_list_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44786,9 +37820,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44796,17 +37839,17 @@ export const plans = { }, createInput: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_inputsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_inputsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44816,17 +37859,17 @@ export const plans = { }, createPatch: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_patchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_patchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44836,17 +37879,17 @@ export const plans = { }, createReserved: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44856,17 +37899,17 @@ export const plans = { }, createReservedPatchRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44876,17 +37919,17 @@ export const plans = { }, createReservedInputRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44896,17 +37939,17 @@ export const plans = { }, createDefaultValue: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44916,17 +37959,17 @@ export const plans = { }, createForeignKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44936,17 +37979,17 @@ export const plans = { }, createNoPrimaryKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44956,17 +37999,17 @@ export const plans = { }, createTestview: { plan(_, args) { + const $insert = pgInsertSingle(resource_testviewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_testviewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44976,17 +38019,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44996,17 +38039,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45016,17 +38059,17 @@ export const plans = { }, createViewTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45036,17 +38079,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45056,17 +38099,17 @@ export const plans = { }, createSimilarTable1: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45076,17 +38119,17 @@ export const plans = { }, createSimilarTable2: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45096,17 +38139,17 @@ export const plans = { }, createUpdatableView: { plan(_, args) { + const $insert = pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45116,17 +38159,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45136,17 +38179,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45156,17 +38199,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45176,17 +38219,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45196,17 +38239,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45216,17 +38259,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45236,17 +38279,17 @@ export const plans = { }, createList: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_listsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_listsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45256,17 +38299,17 @@ export const plans = { }, createType: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45276,11 +38319,11 @@ export const plans = { }, updateInput: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45295,13 +38338,13 @@ export const plans = { }, updateInputById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45316,11 +38359,11 @@ export const plans = { }, updatePatch: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45335,13 +38378,13 @@ export const plans = { }, updatePatchById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45356,11 +38399,11 @@ export const plans = { }, updateReserved: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45375,13 +38418,13 @@ export const plans = { }, updateReservedById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45396,11 +38439,11 @@ export const plans = { }, updateReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45415,13 +38458,13 @@ export const plans = { }, updateReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45436,11 +38479,11 @@ export const plans = { }, updateReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45455,13 +38498,13 @@ export const plans = { }, updateReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45476,11 +38519,11 @@ export const plans = { }, updateDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45495,13 +38538,13 @@ export const plans = { }, updateDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45516,13 +38559,13 @@ export const plans = { }, updateNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45537,11 +38580,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45556,13 +38599,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45577,11 +38620,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45596,13 +38639,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45617,11 +38660,11 @@ export const plans = { }, updateViewTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45636,13 +38679,13 @@ export const plans = { }, updateViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45657,11 +38700,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45676,14 +38719,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45698,11 +38741,11 @@ export const plans = { }, updateSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45717,13 +38760,13 @@ export const plans = { }, updateSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45738,11 +38781,11 @@ export const plans = { }, updateSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45757,13 +38800,13 @@ export const plans = { }, updateSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45778,11 +38821,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45797,13 +38840,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45818,11 +38861,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45837,13 +38880,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45858,13 +38901,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45879,11 +38922,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45898,13 +38941,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45919,11 +38962,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45938,13 +38981,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45959,11 +39002,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45978,13 +39021,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45999,13 +39042,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46020,11 +39063,11 @@ export const plans = { }, updateList: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)) + const $update = pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46039,13 +39082,13 @@ export const plans = { }, updateListById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46060,11 +39103,11 @@ export const plans = { }, updateType: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)) + const $update = pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46079,13 +39122,13 @@ export const plans = { }, updateTypeById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46100,11 +39143,11 @@ export const plans = { }, deleteInput: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46119,13 +39162,13 @@ export const plans = { }, deleteInputById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46140,11 +39183,11 @@ export const plans = { }, deletePatch: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46159,13 +39202,13 @@ export const plans = { }, deletePatchById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46180,11 +39223,11 @@ export const plans = { }, deleteReserved: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46199,13 +39242,13 @@ export const plans = { }, deleteReservedById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46220,11 +39263,11 @@ export const plans = { }, deleteReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46239,13 +39282,13 @@ export const plans = { }, deleteReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46260,11 +39303,11 @@ export const plans = { }, deleteReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46279,13 +39322,13 @@ export const plans = { }, deleteReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46300,11 +39343,11 @@ export const plans = { }, deleteDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46319,13 +39362,13 @@ export const plans = { }, deleteDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46340,13 +39383,13 @@ export const plans = { }, deleteNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46361,11 +39404,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46380,13 +39423,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46401,11 +39444,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46420,13 +39463,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46441,11 +39484,11 @@ export const plans = { }, deleteViewTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46460,13 +39503,13 @@ export const plans = { }, deleteViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46481,11 +39524,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46500,14 +39543,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46522,11 +39565,11 @@ export const plans = { }, deleteSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46541,13 +39584,13 @@ export const plans = { }, deleteSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46562,11 +39605,11 @@ export const plans = { }, deleteSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46581,13 +39624,13 @@ export const plans = { }, deleteSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46602,11 +39645,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46621,13 +39664,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46642,11 +39685,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46661,13 +39704,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46682,13 +39725,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46703,11 +39746,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46722,13 +39765,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46743,11 +39786,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46762,13 +39805,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46783,11 +39826,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46802,13 +39845,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46823,13 +39866,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46844,11 +39887,11 @@ export const plans = { }, deleteList: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)) + const $delete = pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46863,13 +39906,13 @@ export const plans = { }, deleteListById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46884,11 +39927,11 @@ export const plans = { }, deleteType: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)) + const $delete = pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46903,13 +39946,13 @@ export const plans = { }, deleteTypeById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46926,7 +39969,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -46937,16 +39981,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -46957,16 +40001,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46977,16 +40021,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46997,16 +40041,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ReturnVoidMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, query() { return rootValue(); @@ -47014,16 +40058,16 @@ export const plans = { }, ReturnVoidMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationIntervalSetPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47034,16 +40078,16 @@ export const plans = { }, MutationIntervalSetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -47054,17 +40098,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -47075,17 +40119,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47096,17 +40140,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47117,17 +40161,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47138,17 +40182,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47159,17 +40203,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, Add1MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47180,10 +40224,9 @@ export const plans = { }, Add1MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47191,7 +40234,8 @@ export const plans = { Add2MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47202,10 +40246,9 @@ export const plans = { }, Add2MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -47213,7 +40256,8 @@ export const plans = { Add3MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47224,10 +40268,9 @@ export const plans = { }, Add3MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, arg1: undefined @@ -47235,7 +40278,8 @@ export const plans = { Add4MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47246,10 +40290,9 @@ export const plans = { }, Add4MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47257,7 +40300,8 @@ export const plans = { Add4MutationErrorPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47268,10 +40312,9 @@ export const plans = { }, Add4MutationErrorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47279,7 +40322,8 @@ export const plans = { Mult1Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47290,10 +40334,9 @@ export const plans = { }, Mult1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47301,7 +40344,8 @@ export const plans = { Mult2Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47312,10 +40356,9 @@ export const plans = { }, Mult2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47323,7 +40366,8 @@ export const plans = { Mult3Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47334,10 +40378,9 @@ export const plans = { }, Mult3Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47345,7 +40388,8 @@ export const plans = { Mult4Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47356,10 +40400,9 @@ export const plans = { }, Mult4Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47367,7 +40410,8 @@ export const plans = { MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -47378,10 +40422,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -47389,7 +40432,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47409,16 +40453,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47438,16 +40482,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47467,16 +40511,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -47487,10 +40531,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -47499,7 +40542,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47522,16 +40566,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47551,17 +40595,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, GuidFnPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, guid($object) { return $object.get("result"); @@ -47577,17 +40621,17 @@ export const plans = { }, GuidFnInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, g: undefined }, MutationIntervalArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47598,16 +40642,16 @@ export const plans = { }, MutationIntervalArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationTextArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, strings($object) { return $object.get("result"); @@ -47618,16 +40662,16 @@ export const plans = { }, MutationTextArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ListBdeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, uuids($object) { return $object.get("result"); @@ -47638,10 +40682,9 @@ export const plans = { }, ListBdeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, b: undefined, d: undefined, @@ -47650,7 +40693,8 @@ export const plans = { AuthenticateFailPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47679,16 +40723,16 @@ export const plans = { }, AuthenticateFailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticatePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47699,10 +40743,9 @@ export const plans = { }, AuthenticateInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47711,7 +40754,8 @@ export const plans = { LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -47719,7 +40763,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47735,9 +40779,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47753,50 +40795,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -47804,7 +40848,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47820,9 +40864,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47833,16 +40875,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -47853,16 +40895,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticateManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtTokens($object) { return $object.get("result"); @@ -47873,10 +40915,9 @@ export const plans = { }, AuthenticateManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47885,7 +40926,8 @@ export const plans = { AuthenticatePayloadPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, authPayload($object) { return $object.get("result"); @@ -47924,10 +40966,9 @@ export const plans = { }, AuthenticatePayloadInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47936,7 +40977,8 @@ export const plans = { TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -47947,10 +40989,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47962,7 +41003,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47988,17 +41030,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, CompoundTypeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundType($object) { return $object.get("result"); @@ -48009,17 +41051,17 @@ export const plans = { }, CompoundTypeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48030,17 +41072,17 @@ export const plans = { }, CompoundTypeSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48048,7 +41090,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48064,9 +41106,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48082,17 +41122,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, PostWithSuffixPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48100,7 +41140,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48116,9 +41156,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48134,65 +41172,69 @@ export const plans = { }, PostWithSuffixInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: undefined, suffix: undefined }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, MutationCompoundTypeArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48203,17 +41245,17 @@ export const plans = { }, MutationCompoundTypeArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeArrayMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48224,17 +41266,17 @@ export const plans = { }, CompoundTypeArrayMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, PostManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, posts($object) { return $object.get("result"); @@ -48245,17 +41287,17 @@ export const plans = { }, PostManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, posts: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -48290,10 +41332,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48301,7 +41342,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -48336,10 +41378,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48347,7 +41388,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -48355,7 +41397,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48371,9 +41413,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48384,16 +41424,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48404,16 +41444,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48424,16 +41464,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionConnectionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48444,16 +41484,16 @@ export const plans = { }, TypeFunctionConnectionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -48461,7 +41501,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48477,9 +41517,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48500,17 +41538,17 @@ export const plans = { }, TypeFunctionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, TypeFunctionListMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48521,16 +41559,16 @@ export const plans = { }, TypeFunctionListMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateInputPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -48538,7 +41576,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48554,9 +41592,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48567,35 +41603,34 @@ export const plans = { }, CreateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, input: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, InputInput: { - "__inputPlan": function InputInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePatchPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -48603,7 +41638,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48619,9 +41654,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48632,35 +41665,34 @@ export const plans = { }, CreatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PatchInput: { - "__inputPlan": function PatchInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -48668,7 +41700,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48684,9 +41716,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48697,35 +41727,34 @@ export const plans = { }, CreateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reserved: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInput: { - "__inputPlan": function ReservedInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPatchRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -48733,7 +41762,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48749,9 +41778,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48762,35 +41789,34 @@ export const plans = { }, CreateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedPatchRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedPatchRecordInput: { - "__inputPlan": function ReservedPatchRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedInputRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -48798,7 +41824,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48814,9 +41840,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48827,35 +41851,34 @@ export const plans = { }, CreateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedInputRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInputRecordInput: { - "__inputPlan": function ReservedInputRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateDefaultValuePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -48863,7 +41886,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48879,9 +41902,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48892,42 +41913,42 @@ export const plans = { }, CreateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, defaultValue: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, DefaultValueInput: { - "__inputPlan": function DefaultValueInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, CreateForeignKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, foreignKey($object) { return $object.get("result"); @@ -48949,49 +41970,50 @@ export const plans = { }, CreateForeignKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, foreignKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ForeignKeyInput: { - "__inputPlan": function ForeignKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey1: { - applyPlan($insert, val) { - $insert.set("compound_key_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_1", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey2: { - applyPlan($insert, val) { - $insert.set("compound_key_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNoPrimaryKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -49002,42 +42024,42 @@ export const plans = { }, CreateNoPrimaryKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, noPrimaryKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NoPrimaryKeyInput: { - "__inputPlan": function NoPrimaryKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTestviewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, testview($object) { return $object.get("result"); @@ -49048,49 +42070,50 @@ export const plans = { }, CreateTestviewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, testview: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TestviewInput: { - "__inputPlan": function TestviewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, testviewid: { - applyPlan($insert, val) { - $insert.set("testviewid", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("testviewid", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -49098,7 +42121,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49114,9 +42137,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49127,42 +42148,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -49170,7 +42191,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49186,9 +42207,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49204,42 +42223,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateViewTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -49247,7 +42266,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49263,9 +42282,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49276,49 +42293,50 @@ export const plans = { }, CreateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, viewTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ViewTableInput: { - "__inputPlan": function ViewTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -49326,7 +42344,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49342,9 +42360,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49365,49 +42381,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable1Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -49415,7 +42432,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49431,9 +42448,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49444,56 +42459,58 @@ export const plans = { }, CreateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable1: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable1Input: { - "__inputPlan": function SimilarTable1Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable2Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -49501,7 +42518,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49517,9 +42534,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49530,56 +42545,58 @@ export const plans = { }, CreateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable2: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable2Input: { - "__inputPlan": function SimilarTable2Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, CreateUpdatableViewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, updatableView($object) { return $object.get("result"); @@ -49590,56 +42607,58 @@ export const plans = { }, CreateUpdatableViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, updatableView: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UpdatableViewInput: { - "__inputPlan": function UpdatableViewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, x: { - applyPlan($insert, val) { - $insert.set("x", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("x", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } }, constant: { - applyPlan($insert, val) { - $insert.set("constant", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constant", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -49647,7 +42666,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49663,9 +42682,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49676,56 +42693,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -49736,49 +42755,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -49786,7 +42806,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49802,9 +42822,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49820,56 +42838,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -49877,7 +42897,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49893,9 +42913,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49906,42 +42924,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -49949,7 +42967,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49965,9 +42983,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49983,23 +42999,23 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -50007,7 +43023,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50023,9 +43039,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50036,105 +43050,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, CreateListPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -50142,7 +43165,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50158,9 +43181,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50171,119 +43192,130 @@ export const plans = { }, CreateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, list: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ListInput: { - "__inputPlan": function ListInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -50291,7 +43323,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50307,9 +43339,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50330,371 +43360,418 @@ export const plans = { }, CreateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, type: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TypeInput: { - "__inputPlan": function TypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -50702,7 +43779,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50718,9 +43795,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50731,48 +43806,50 @@ export const plans = { }, UpdateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, InputPatch: { - "__inputPlan": function InputPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -50780,7 +43857,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50796,9 +43873,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50809,48 +43884,50 @@ export const plans = { }, UpdatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PatchPatch: { - "__inputPlan": function PatchPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -50858,7 +43935,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50874,9 +43951,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50887,48 +43962,50 @@ export const plans = { }, UpdateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatch: { - "__inputPlan": function ReservedPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -50936,7 +44013,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50952,9 +44029,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50965,48 +44040,50 @@ export const plans = { }, UpdateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatchRecordPatch: { - "__inputPlan": function ReservedPatchRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -51014,7 +44091,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51030,9 +44107,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51043,48 +44118,50 @@ export const plans = { }, UpdateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedInputRecordPatch: { - "__inputPlan": function ReservedInputRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -51092,7 +44169,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51108,9 +44185,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51121,55 +44196,58 @@ export const plans = { }, UpdateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DefaultValuePatch: { - "__inputPlan": function DefaultValuePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -51180,41 +44258,43 @@ export const plans = { }, UpdateNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, noPrimaryKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NoPrimaryKeyPatch: { - "__inputPlan": function NoPrimaryKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -51222,7 +44302,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51238,9 +44318,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51251,55 +44329,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -51307,7 +44388,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51323,9 +44404,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51341,55 +44420,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -51397,7 +44479,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51413,9 +44495,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51426,62 +44506,66 @@ export const plans = { }, UpdateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ViewTablePatch: { - "__inputPlan": function ViewTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -51489,7 +44573,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51505,9 +44589,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51528,63 +44610,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -51592,7 +44678,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51608,9 +44694,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51621,69 +44705,74 @@ export const plans = { }, UpdateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable1Patch: { - "__inputPlan": function SimilarTable1Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -51691,7 +44780,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51707,9 +44796,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51720,69 +44807,74 @@ export const plans = { }, UpdateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable2Patch: { - "__inputPlan": function SimilarTable2Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -51790,7 +44882,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51806,9 +44898,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51819,69 +44909,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -51889,7 +44984,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51905,9 +45000,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51923,83 +45016,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -52007,7 +45106,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52023,9 +45122,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52036,55 +45133,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -52092,7 +45192,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52108,9 +45208,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52126,83 +45224,90 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -52210,7 +45315,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52226,9 +45331,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52239,132 +45342,145 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -52372,7 +45488,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52388,9 +45504,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52401,132 +45515,146 @@ export const plans = { }, UpdateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ListPatch: { - "__inputPlan": function ListPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -52534,7 +45662,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52550,9 +45678,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52573,384 +45699,434 @@ export const plans = { }, UpdateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TypePatch: { - "__inputPlan": function TypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -52963,7 +46139,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52979,9 +46155,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52992,16 +46166,16 @@ export const plans = { }, DeleteInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53009,7 +46183,8 @@ export const plans = { DeletePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -53022,7 +46197,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53038,9 +46213,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53051,16 +46224,16 @@ export const plans = { }, DeletePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53068,7 +46241,8 @@ export const plans = { DeleteReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -53081,7 +46255,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53097,9 +46271,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53110,16 +46282,16 @@ export const plans = { }, DeleteReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53127,7 +46299,8 @@ export const plans = { DeleteReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -53140,7 +46313,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53156,9 +46329,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53169,16 +46340,16 @@ export const plans = { }, DeleteReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53186,7 +46357,8 @@ export const plans = { DeleteReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -53199,7 +46371,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53215,9 +46387,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53228,16 +46398,16 @@ export const plans = { }, DeleteReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53245,7 +46415,8 @@ export const plans = { DeleteDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -53258,7 +46429,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53274,9 +46445,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53287,16 +46456,16 @@ export const plans = { }, DeleteDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53304,7 +46473,8 @@ export const plans = { DeleteNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -53315,8 +46485,8 @@ export const plans = { }, DeleteNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53324,7 +46494,8 @@ export const plans = { DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -53337,7 +46508,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53353,9 +46524,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53366,16 +46535,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53383,7 +46552,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -53396,7 +46566,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53412,9 +46582,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53430,16 +46598,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53447,7 +46615,8 @@ export const plans = { DeleteViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -53460,7 +46629,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53476,9 +46645,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53489,16 +46656,16 @@ export const plans = { }, DeleteViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53506,7 +46673,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -53519,7 +46687,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53535,9 +46703,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53558,16 +46724,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -53576,7 +46742,8 @@ export const plans = { DeleteSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -53589,7 +46756,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53605,9 +46772,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53618,16 +46783,16 @@ export const plans = { }, DeleteSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53635,7 +46800,8 @@ export const plans = { DeleteSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -53648,7 +46814,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53664,9 +46830,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53677,16 +46841,16 @@ export const plans = { }, DeleteSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53694,7 +46858,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -53707,7 +46872,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53723,9 +46888,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53736,16 +46899,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53753,7 +46916,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -53766,7 +46930,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53782,9 +46946,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53800,24 +46962,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53825,7 +46987,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -53838,7 +47001,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53854,9 +47017,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53867,16 +47028,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53884,7 +47045,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -53897,7 +47059,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53913,9 +47075,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53931,16 +47091,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53948,7 +47108,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -53961,7 +47122,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53977,9 +47138,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53990,24 +47149,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined @@ -54015,7 +47174,8 @@ export const plans = { DeleteListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -54028,7 +47188,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54044,9 +47204,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54057,16 +47215,16 @@ export const plans = { }, DeleteListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -54074,7 +47232,8 @@ export const plans = { DeleteTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -54087,7 +47246,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54103,9 +47262,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54126,16 +47283,16 @@ export const plans = { }, DeleteTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/geometry.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/geometry.1.export.mjs index be781fa0c3..2dda6426e4 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/geometry.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/geometry.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -77,7 +79,7 @@ const executor = new PgExecutor({ } }); const geomIdentifier = sql.identifier("geometry", "geom"); -const spec_geom = { +const geomCodec = recordCodec({ name: "geom", identifier: geomIdentifier, attributes: { @@ -177,8 +179,7 @@ const spec_geom = { } }, executor: executor -}; -const geomCodec = recordCodec(spec_geom); +}); const geomUniques = [{ isPrimary: true, attributes: ["id"], @@ -253,6 +254,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_geomPgResource.get(spec); }, @@ -265,6 +269,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -287,35 +292,18 @@ const fetcher = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Geom); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Geom, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Geom, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -810,15 +798,15 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, geomById(_$root, args) { return pgResource_geomPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, geom(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, allGeoms: { @@ -829,7 +817,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -838,7 +825,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -847,7 +833,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -856,7 +841,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -865,7 +849,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -874,22 +857,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GeomsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -988,31 +967,21 @@ export const plans = { } }, GeomsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { geomUniques[0].attributes.forEach(attributeName => { - const attribute = geomCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1021,19 +990,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { geomUniques[0].attributes.forEach(attributeName => { - const attribute = geomCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1042,11 +1009,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -1054,7 +1018,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1064,11 +1028,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -1076,7 +1037,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1086,11 +1047,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "ASC", ...(undefined != null ? { @@ -1098,7 +1056,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1108,11 +1066,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "DESC", ...(undefined != null ? { @@ -1120,7 +1075,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1130,11 +1085,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "line", direction: "ASC", ...(undefined != null ? { @@ -1142,7 +1094,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1152,11 +1104,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "line", direction: "DESC", ...(undefined != null ? { @@ -1164,7 +1113,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1174,11 +1123,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "lseg", direction: "ASC", ...(undefined != null ? { @@ -1186,7 +1132,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1196,11 +1142,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "lseg", direction: "DESC", ...(undefined != null ? { @@ -1208,7 +1151,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1218,11 +1161,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "box", direction: "ASC", ...(undefined != null ? { @@ -1230,7 +1170,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1240,11 +1180,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "box", direction: "DESC", ...(undefined != null ? { @@ -1252,7 +1189,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1262,11 +1199,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "open_path", direction: "ASC", ...(undefined != null ? { @@ -1274,7 +1208,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1284,11 +1218,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "open_path", direction: "DESC", ...(undefined != null ? { @@ -1296,7 +1227,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1306,11 +1237,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "closed_path", direction: "ASC", ...(undefined != null ? { @@ -1318,7 +1246,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1328,11 +1256,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "closed_path", direction: "DESC", ...(undefined != null ? { @@ -1340,7 +1265,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1350,11 +1275,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "polygon", direction: "ASC", ...(undefined != null ? { @@ -1362,7 +1284,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1372,11 +1294,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "polygon", direction: "DESC", ...(undefined != null ? { @@ -1384,7 +1303,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1394,11 +1313,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "circle", direction: "ASC", ...(undefined != null ? { @@ -1406,7 +1322,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1416,11 +1332,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "circle", direction: "DESC", ...(undefined != null ? { @@ -1428,7 +1341,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1437,8 +1350,8 @@ export const plans = { }, GeomCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -1451,17 +1364,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_geom.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, point: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "point", @@ -1474,17 +1385,15 @@ export const plans = { type: "attribute", attribute: "point", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_geom.attributes.point.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, line: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "line", @@ -1497,17 +1406,15 @@ export const plans = { type: "attribute", attribute: "line", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_geom.attributes.line.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.line)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lseg: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "lseg", @@ -1520,17 +1427,15 @@ export const plans = { type: "attribute", attribute: "lseg", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_geom.attributes.lseg.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.lseg)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, box: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "box", @@ -1543,17 +1448,15 @@ export const plans = { type: "attribute", attribute: "box", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_geom.attributes.box.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.box)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, openPath: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "open_path", @@ -1566,17 +1469,15 @@ export const plans = { type: "attribute", attribute: "open_path", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_geom.attributes.open_path.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.path)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, closedPath: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "closed_path", @@ -1589,17 +1490,15 @@ export const plans = { type: "attribute", attribute: "closed_path", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_geom.attributes.closed_path.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.path)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, polygon: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "polygon", @@ -1612,17 +1511,15 @@ export const plans = { type: "attribute", attribute: "polygon", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_geom.attributes.polygon.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.polygon)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, circle: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "circle", @@ -1635,13 +1532,11 @@ export const plans = { type: "attribute", attribute: "circle", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_geom.attributes.circle.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.circle)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PointInput: { @@ -1675,17 +1570,17 @@ export const plans = { __assertStep: __ValueStep, createGeom: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_geomPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_geomPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -1695,11 +1590,11 @@ export const plans = { }, updateGeom: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_geomPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_geomPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -1714,13 +1609,13 @@ export const plans = { }, updateGeomById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_geomPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_geomPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -1735,11 +1630,11 @@ export const plans = { }, deleteGeom: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_geomPgResource, specFromArgs2(args)) + const $delete = pgDeleteSingle(pgResource_geomPgResource, specFromArgs2(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -1754,13 +1649,13 @@ export const plans = { }, deleteGeomById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_geomPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_geomPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -1777,7 +1672,8 @@ export const plans = { CreateGeomPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, geom($object) { return $object.get("result"); @@ -1785,7 +1681,7 @@ export const plans = { query() { return rootValue(); }, - geomEdge($mutation, args, info) { + geomEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -1801,9 +1697,7 @@ export const plans = { return pgResource_geomPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GeomsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -1814,91 +1708,98 @@ export const plans = { }, CreateGeomInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, geom: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, GeomInput: { - "__inputPlan": function GeomInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, line: { - applyPlan($insert, val) { - $insert.set("line", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("line", bakedInputRuntime(schema, field.type, val)); + } }, lseg: { - applyPlan($insert, val) { - $insert.set("lseg", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("lseg", bakedInputRuntime(schema, field.type, val)); + } }, box: { - applyPlan($insert, val) { - $insert.set("box", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("box", bakedInputRuntime(schema, field.type, val)); + } }, openPath: { - applyPlan($insert, val) { - $insert.set("open_path", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("open_path", bakedInputRuntime(schema, field.type, val)); + } }, closedPath: { - applyPlan($insert, val) { - $insert.set("closed_path", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("closed_path", bakedInputRuntime(schema, field.type, val)); + } }, polygon: { - applyPlan($insert, val) { - $insert.set("polygon", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("polygon", bakedInputRuntime(schema, field.type, val)); + } }, circle: { - applyPlan($insert, val) { - $insert.set("circle", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("circle", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateGeomPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, geom($object) { return $object.get("result"); @@ -1906,7 +1807,7 @@ export const plans = { query() { return rootValue(); }, - geomEdge($mutation, args, info) { + geomEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -1922,9 +1823,7 @@ export const plans = { return pgResource_geomPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GeomsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -1935,104 +1834,114 @@ export const plans = { }, UpdateGeomInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, geomPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, GeomPatch: { - "__inputPlan": function GeomPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, line: { - applyPlan($insert, val) { - $insert.set("line", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("line", bakedInputRuntime(schema, field.type, val)); + } }, lseg: { - applyPlan($insert, val) { - $insert.set("lseg", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("lseg", bakedInputRuntime(schema, field.type, val)); + } }, box: { - applyPlan($insert, val) { - $insert.set("box", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("box", bakedInputRuntime(schema, field.type, val)); + } }, openPath: { - applyPlan($insert, val) { - $insert.set("open_path", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("open_path", bakedInputRuntime(schema, field.type, val)); + } }, closedPath: { - applyPlan($insert, val) { - $insert.set("closed_path", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("closed_path", bakedInputRuntime(schema, field.type, val)); + } }, polygon: { - applyPlan($insert, val) { - $insert.set("polygon", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("polygon", bakedInputRuntime(schema, field.type, val)); + } }, circle: { - applyPlan($insert, val) { - $insert.set("circle", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("circle", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateGeomByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, geomPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteGeomPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, geom($object) { return $object.get("result"); @@ -2045,7 +1954,7 @@ export const plans = { query() { return rootValue(); }, - geomEdge($mutation, args, info) { + geomEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2061,9 +1970,7 @@ export const plans = { return pgResource_geomPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GeomsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2074,16 +1981,16 @@ export const plans = { }, DeleteGeomInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteGeomByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/indexes.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/indexes.1.export.mjs index d4bedcae3e..f877f03085 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/indexes.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/indexes.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -509,7 +511,7 @@ const nonUpdatableViewCodec = recordCodec({ executor: executor }); const inputsIdentifier = sql.identifier("a", "inputs"); -const spec_inputs = { +const inputsCodec = recordCodec({ name: "inputs", identifier: inputsIdentifier, attributes: { @@ -537,10 +539,9 @@ const spec_inputs = { } }, executor: executor -}; -const inputsCodec = recordCodec(spec_inputs); +}); const patchsIdentifier = sql.identifier("a", "patchs"); -const spec_patchs = { +const patchsCodec = recordCodec({ name: "patchs", identifier: patchsIdentifier, attributes: { @@ -568,10 +569,9 @@ const spec_patchs = { } }, executor: executor -}; -const patchsCodec = recordCodec(spec_patchs); +}); const reservedIdentifier = sql.identifier("a", "reserved"); -const spec_reserved = { +const reservedCodec = recordCodec({ name: "reserved", identifier: reservedIdentifier, attributes: { @@ -599,10 +599,9 @@ const spec_reserved = { } }, executor: executor -}; -const reservedCodec = recordCodec(spec_reserved); +}); const reservedPatchsIdentifier = sql.identifier("a", "reservedPatchs"); -const spec_reservedPatchs = { +const reservedPatchsCodec = recordCodec({ name: "reservedPatchs", identifier: reservedPatchsIdentifier, attributes: { @@ -630,10 +629,9 @@ const spec_reservedPatchs = { } }, executor: executor -}; -const reservedPatchsCodec = recordCodec(spec_reservedPatchs); +}); const reservedInputIdentifier = sql.identifier("a", "reserved_input"); -const spec_reservedInput = { +const reservedInputCodec = recordCodec({ name: "reservedInput", identifier: reservedInputIdentifier, attributes: { @@ -661,10 +659,9 @@ const spec_reservedInput = { } }, executor: executor -}; -const reservedInputCodec = recordCodec(spec_reservedInput); +}); const defaultValueIdentifier = sql.identifier("a", "default_value"); -const spec_defaultValue = { +const defaultValueCodec = recordCodec({ name: "defaultValue", identifier: defaultValueIdentifier, attributes: { @@ -702,8 +699,7 @@ const spec_defaultValue = { } }, executor: executor -}; -const defaultValueCodec = recordCodec(spec_defaultValue); +}); const foreignKeyIdentifier = sql.identifier("a", "foreign_key"); const foreignKeyCodec = recordCodec({ name: "foreignKey", @@ -756,7 +752,7 @@ const foreignKeyCodec = recordCodec({ executor: executor }); const noPrimaryKeyIdentifier = sql.identifier("a", "no_primary_key"); -const spec_noPrimaryKey = { +const noPrimaryKeyCodec = recordCodec({ name: "noPrimaryKey", identifier: noPrimaryKeyIdentifier, attributes: { @@ -794,8 +790,7 @@ const spec_noPrimaryKey = { } }, executor: executor -}; -const noPrimaryKeyCodec = recordCodec(spec_noPrimaryKey); +}); const testviewIdentifier = sql.identifier("a", "testview"); const testviewCodec = recordCodec({ name: "testview", @@ -891,7 +886,7 @@ const spec_uniqueForeignKey = { }; const uniqueForeignKeyCodec = recordCodec(spec_uniqueForeignKey); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -929,10 +924,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -973,8 +967,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -1017,7 +1010,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const viewTableIdentifier = sql.identifier("a", "view_table"); -const spec_viewTable = { +const viewTableCodec = recordCodec({ name: "viewTable", identifier: viewTableIdentifier, attributes: { @@ -1065,10 +1058,9 @@ const spec_viewTable = { } }, executor: executor -}; -const viewTableCodec = recordCodec(spec_viewTable); +}); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -1116,10 +1108,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const similarTable1Identifier = sql.identifier("a", "similar_table_1"); -const spec_similarTable1 = { +const similarTable1Codec = recordCodec({ name: "similarTable1", identifier: similarTable1Identifier, attributes: { @@ -1177,10 +1168,9 @@ const spec_similarTable1 = { } }, executor: executor -}; -const similarTable1Codec = recordCodec(spec_similarTable1); +}); const similarTable2Identifier = sql.identifier("a", "similar_table_2"); -const spec_similarTable2 = { +const similarTable2Codec = recordCodec({ name: "similarTable2", identifier: similarTable2Identifier, attributes: { @@ -1238,8 +1228,7 @@ const spec_similarTable2 = { } }, executor: executor -}; -const similarTable2Codec = recordCodec(spec_similarTable2); +}); const updatableViewIdentifier = sql.identifier("b", "updatable_view"); const updatableViewCodec = recordCodec({ name: "updatableView", @@ -1304,7 +1293,7 @@ const updatableViewCodec = recordCodec({ executor: executor }); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -1362,8 +1351,7 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const uuidArrayCodec = listOfCodec(TYPES.uuid, { extensions: { pg: { @@ -1431,7 +1419,7 @@ const edgeCaseCodec = recordCodec({ executor: executor }); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -1488,8 +1476,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const jwtTokenIdentifier = sql.identifier("b", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -1576,7 +1563,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -1614,8 +1601,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const authPayloadIdentifier = sql.identifier("b", "auth_payload"); const authPayloadCodec = recordCodec({ name: "authPayload", @@ -1966,7 +1952,7 @@ const comptypeArrayCodec = listOfCodec(comptypeCodec, { description: undefined, name: "comptypeArray" }); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -2043,8 +2029,7 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const registryConfig_pgCodecs_QueryOutputTwoRowsRecord_QueryOutputTwoRowsRecord = recordCodec({ name: "QueryOutputTwoRowsRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2205,7 +2190,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -2336,8 +2321,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2655,7 +2639,7 @@ const byteaArrayCodec = listOfCodec(TYPES.bytea, { description: undefined, name: "byteaArray" }); -const spec_lists = { +const listsCodec = recordCodec({ name: "lists", identifier: listsIdentifier, attributes: { @@ -2803,8 +2787,7 @@ const spec_lists = { } }, executor: executor -}; -const listsCodec = recordCodec(spec_lists); +}); const typesIdentifier = sql.identifier("b", "types"); const anIntCodec = domainOfCodec(TYPES.int, "anInt", sql.identifier("a", "an_int"), { description: undefined, @@ -9334,6 +9317,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_inputsPgResource.get(spec); }, @@ -9353,6 +9339,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_patchsPgResource.get(spec); }, @@ -9372,6 +9361,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPgResource.get(spec); }, @@ -9391,6 +9383,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPatchsPgResource.get(spec); }, @@ -9410,6 +9405,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reserved_inputPgResource.get(spec); }, @@ -9429,6 +9427,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_default_valuePgResource.get(spec); }, @@ -9448,6 +9449,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -9467,6 +9471,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -9486,6 +9493,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_view_tablePgResource.get(spec); }, @@ -9506,6 +9516,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -9525,6 +9538,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_1PgResource.get(spec); }, @@ -9544,6 +9560,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_2PgResource.get(spec); }, @@ -9563,6 +9582,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -9582,6 +9604,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -9601,6 +9626,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -9620,6 +9648,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -9639,6 +9670,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -9658,6 +9692,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_listsPgResource.get(spec); }, @@ -9677,6 +9714,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_typesPgResource.get(spec); }, @@ -9687,553 +9727,96 @@ const nodeIdHandlerByTypeName = { }; const resource_no_primary_keyPgResource = registry.pgResources["no_primary_key"]; const resource_unique_foreign_keyPgResource = registry.pgResources["unique_foreign_key"]; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_query_interval_set = []; +const makeArgs_query_interval_set = (args, path = []) => argDetailsSimple_query_interval_set.map(details => makeArg(path, args, details)); const resource_query_interval_setPgResource = registry.pgResources["query_interval_set"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_query_interval_set(args); return resource_query_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple7 = []; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 argDetailsSimple_static_big_integer = []; +const makeArgs_static_big_integer = (args, path = []) => argDetailsSimple_static_big_integer.map(details => makeArg(path, args, details)); const resource_static_big_integerPgResource = registry.pgResources["static_big_integer"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_static_big_integer(args); return resource_static_big_integerPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple10 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple11 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple12 = [{ +const argDetailsSimple_add_1_query = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -10246,52 +9829,9 @@ const argDetailsSimple12 = [{ required: true, fetcher: null }]; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_query = (args, path = []) => argDetailsSimple_add_1_query.map(details => makeArg(path, args, details)); const resource_add_1_queryPgResource = registry.pgResources["add_1_query"]; -const argDetailsSimple13 = [{ +const argDetailsSimple_add_2_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10304,52 +9844,9 @@ const argDetailsSimple13 = [{ required: false, fetcher: null }]; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 makeArgs_add_2_query = (args, path = []) => argDetailsSimple_add_2_query.map(details => makeArg(path, args, details)); const resource_add_2_queryPgResource = registry.pgResources["add_2_query"]; -const argDetailsSimple14 = [{ +const argDetailsSimple_add_3_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10362,52 +9859,9 @@ const argDetailsSimple14 = [{ required: true, fetcher: null }]; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_query = (args, path = []) => argDetailsSimple_add_3_query.map(details => makeArg(path, args, details)); const resource_add_3_queryPgResource = registry.pgResources["add_3_query"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_add_4_query = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10420,52 +9874,9 @@ const argDetailsSimple15 = [{ required: false, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_query = (args, path = []) => argDetailsSimple_add_4_query.map(details => makeArg(path, args, details)); const resource_add_4_queryPgResource = registry.pgResources["add_4_query"]; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -10478,240 +9889,25 @@ const argDetailsSimple16 = [{ required: true, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple19 = []; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple20 = []; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10730,52 +9926,9 @@ const argDetailsSimple21 = [{ required: false, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_1PgResource = registry.pgResources["optional_missing_middle_1"]; -const argDetailsSimple22 = [{ +const argDetailsSimple_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10794,52 +9947,9 @@ const argDetailsSimple22 = [{ required: false, fetcher: null }]; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 makeArgs_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_2PgResource = registry.pgResources["optional_missing_middle_2"]; -const argDetailsSimple23 = [{ +const argDetailsSimple_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10858,52 +9968,9 @@ const argDetailsSimple23 = [{ required: false, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_3PgResource = registry.pgResources["optional_missing_middle_3"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10922,52 +9989,9 @@ const argDetailsSimple24 = [{ required: false, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_4PgResource = registry.pgResources["optional_missing_middle_4"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10986,98 +10010,12 @@ const argDetailsSimple25 = [{ required: false, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_5PgResource = registry.pgResources["optional_missing_middle_5"]; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple27 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -11096,56 +10034,13 @@ const argDetailsSimple27 = [{ required: true, fetcher: null }]; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple28 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -11164,194 +10059,22 @@ const argDetailsSimple28 = [{ required: false, fetcher: null }]; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_query_interval_array = []; +const makeArgs_query_interval_array = (args, path = []) => argDetailsSimple_query_interval_array.map(details => makeArg(path, args, details)); const resource_query_interval_arrayPgResource = registry.pgResources["query_interval_array"]; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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 argDetailsSimple_query_text_array = []; +const makeArgs_query_text_array = (args, path = []) => argDetailsSimple_query_text_array.map(details => makeArg(path, args, details)); const resource_query_text_arrayPgResource = registry.pgResources["query_text_array"]; -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple32 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -11388,104 +10111,18 @@ const argDetailsSimple32 = [{ required: true, fetcher: null }]; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple33 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -11504,310 +10141,52 @@ const argDetailsSimple34 = [{ required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple35 = []; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs35(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple36 = [{ +const argDetailsSimple_compound_type_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_compound_type_query = (args, path = []) => argDetailsSimple_compound_type_query.map(details => makeArg(path, args, details)); const resource_compound_type_queryPgResource = registry.pgResources["compound_type_query"]; -const argDetailsSimple37 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_query_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[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 makeArgs_query_compound_type_array = (args, path = []) => argDetailsSimple_query_compound_type_array.map(details => makeArg(path, args, details)); const resource_query_compound_type_arrayPgResource = registry.pgResources["query_compound_type_array"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_compound_type_array_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_compound_type_array_query = (args, path = []) => argDetailsSimple_compound_type_array_query.map(details => makeArg(path, args, details)); const resource_compound_type_array_queryPgResource = registry.pgResources["compound_type_array_query"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11820,52 +10199,9 @@ const argDetailsSimple40 = [{ required: true, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11878,473 +10214,70 @@ const argDetailsSimple41 = [{ required: true, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs41(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple42 = []; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs42(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple43 = []; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs44(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs12 = ($root, args, _info) => { - const selectArgs = makeArgs45(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs13 = ($root, args, _info) => { - const selectArgs = makeArgs46(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_type_function_connection = []; +const makeArgs_type_function_connection = (args, path = []) => argDetailsSimple_type_function_connection.map(details => makeArg(path, args, details)); const resource_type_function_connectionPgResource = registry.pgResources["type_function_connection"]; const getSelectPlanFromParentAndArgs14 = ($root, args, _info) => { - const selectArgs = makeArgs47(args); + const selectArgs = makeArgs_type_function_connection(args); return resource_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_type_function = (args, path = []) => argDetailsSimple_type_function.map(details => makeArg(path, args, details)); const resource_type_functionPgResource = registry.pgResources["type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_type_function_list = []; +const makeArgs_type_function_list = (args, path = []) => argDetailsSimple_type_function_list.map(details => makeArg(path, args, details)); const resource_type_function_listPgResource = registry.pgResources["type_function_list"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -12519,347 +10452,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple53 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple54 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple55 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple56 = []; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12878,52 +10510,9 @@ const argDetailsSimple57 = [{ required: false, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12942,52 +10531,9 @@ const argDetailsSimple58 = [{ required: false, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -13006,52 +10552,9 @@ const argDetailsSimple59 = [{ required: false, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -13070,52 +10573,9 @@ const argDetailsSimple60 = [{ required: false, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -13134,52 +10594,9 @@ const argDetailsSimple61 = [{ required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -13192,194 +10609,22 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs65(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13394,82 +10639,33 @@ const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple66 = []; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs66(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13484,176 +10680,41 @@ const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple67 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple68 = []; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple69 = []; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -13664,57 +10725,14 @@ const coerce = string => { } return string; }; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_post_computed_interval_set = []; +const makeArgs_post_computed_interval_set = (args, path = []) => argDetailsSimple_post_computed_interval_set.map(details => makeArg(path, args, details)); const resource_post_computed_interval_setPgResource = registry.pgResources["post_computed_interval_set"]; const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs70(args); + const extraSelectArgs = makeArgs_post_computed_interval_set(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13729,228 +10747,50 @@ const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (resource_post_computed_interval_setPgResource.isUnique && !resource_post_computed_interval_setPgResource.codec.attributes && typeof resource_post_computed_interval_setPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${resource_post_computed_interval_setPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_setPgResource.from, resource_post_computed_interval_setPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_post_computed_interval_array = []; +const makeArgs_post_computed_interval_array = (args, path = []) => argDetailsSimple_post_computed_interval_array.map(details => makeArg(path, args, details)); const resource_post_computed_interval_arrayPgResource = registry.pgResources["post_computed_interval_array"]; -const argDetailsSimple72 = []; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 argDetailsSimple_post_computed_text_array = []; +const makeArgs_post_computed_text_array = (args, path = []) => argDetailsSimple_post_computed_text_array.map(details => makeArg(path, args, details)); const resource_post_computed_text_arrayPgResource = registry.pgResources["post_computed_text_array"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_post_computed_with_optional_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: false, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_post_computed_with_optional_arg = (args, path = []) => argDetailsSimple_post_computed_with_optional_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_optional_argPgResource = registry.pgResources["post_computed_with_optional_arg"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_post_computed_with_required_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_post_computed_with_required_arg = (args, path = []) => argDetailsSimple_post_computed_with_required_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_required_argPgResource = registry.pgResources["post_computed_with_required_arg"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_post_headline_trimmed = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13963,52 +10803,9 @@ const argDetailsSimple75 = [{ required: false, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_post_headline_trimmed = (args, path = []) => argDetailsSimple_post_headline_trimmed.map(details => makeArg(path, args, details)); const resource_post_headline_trimmedPgResource = registry.pgResources["post_headline_trimmed"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_post_headline_trimmed_no_defaults = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -14021,52 +10818,9 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_post_headline_trimmed_no_defaults = (args, path = []) => argDetailsSimple_post_headline_trimmed_no_defaults.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_no_defaultsPgResource = registry.pgResources["post_headline_trimmed_no_defaults"]; -const argDetailsSimple77 = [{ +const argDetailsSimple_post_headline_trimmed_strict = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -14079,102 +10833,16 @@ const argDetailsSimple77 = [{ required: false, fetcher: null }]; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 makeArgs_post_headline_trimmed_strict = (args, path = []) => argDetailsSimple_post_headline_trimmed_strict.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_strictPgResource = registry.pgResources["post_headline_trimmed_strict"]; -const argDetailsSimple78 = [{ +const argDetailsSimple_post_computed_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 makeArgs_post_computed_compound_type_array = (args, path = []) => argDetailsSimple_post_computed_compound_type_array.map(details => makeArg(path, args, details)); const resource_post_computed_compound_type_arrayPgResource = registry.pgResources["post_computed_compound_type_array"]; const resource_frmcdc_comptypePgResource = registry.pgResources["frmcdc_comptype"]; const resource_frmcdc_nestedCompoundTypePgResource = registry.pgResources["frmcdc_nestedCompoundType"]; @@ -14232,641 +10900,82 @@ const parseValueLiteral = (ast, variables) => { return undefined; } }; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple80 = []; -const makeArgs80 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple80[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple81 = []; -const makeArgs81 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple81[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple82 = []; -const makeArgs82 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple82[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple83 = []; -const makeArgs83 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple83[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple84 = []; -const makeArgs84 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple84[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 argDetailsSimple_return_void_mutation = []; +const makeArgs_return_void_mutation = (args, path = []) => argDetailsSimple_return_void_mutation.map(details => makeArg(path, args, details)); const resource_return_void_mutationPgResource = registry.pgResources["return_void_mutation"]; -const argDetailsSimple85 = []; -const makeArgs85 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple85[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 argDetailsSimple_mutation_interval_set = []; +const makeArgs_mutation_interval_set = (args, path = []) => argDetailsSimple_mutation_interval_set.map(details => makeArg(path, args, details)); const resource_mutation_interval_setPgResource = registry.pgResources["mutation_interval_set"]; -const argDetailsSimple86 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs86 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple86[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple87 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs87 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple87[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple88 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs88 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple88[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple89 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs89 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple89[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple90 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs90 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple90[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple91 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs91 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple91[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple92 = [{ +const argDetailsSimple_add_1_mutation = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14879,52 +10988,9 @@ const argDetailsSimple92 = [{ required: true, fetcher: null }]; -const makeArgs92 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple92[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_mutation = (args, path = []) => argDetailsSimple_add_1_mutation.map(details => makeArg(path, args, details)); const resource_add_1_mutationPgResource = registry.pgResources["add_1_mutation"]; -const argDetailsSimple93 = [{ +const argDetailsSimple_add_2_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14937,52 +11003,9 @@ const argDetailsSimple93 = [{ required: false, fetcher: null }]; -const makeArgs93 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple93[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 makeArgs_add_2_mutation = (args, path = []) => argDetailsSimple_add_2_mutation.map(details => makeArg(path, args, details)); const resource_add_2_mutationPgResource = registry.pgResources["add_2_mutation"]; -const argDetailsSimple94 = [{ +const argDetailsSimple_add_3_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14995,52 +11018,9 @@ const argDetailsSimple94 = [{ required: true, fetcher: null }]; -const makeArgs94 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple94[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_mutation = (args, path = []) => argDetailsSimple_add_3_mutation.map(details => makeArg(path, args, details)); const resource_add_3_mutationPgResource = registry.pgResources["add_3_mutation"]; -const argDetailsSimple95 = [{ +const argDetailsSimple_add_4_mutation = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -15053,52 +11033,9 @@ const argDetailsSimple95 = [{ required: false, fetcher: null }]; -const makeArgs95 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple95[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation = (args, path = []) => argDetailsSimple_add_4_mutation.map(details => makeArg(path, args, details)); const resource_add_4_mutationPgResource = registry.pgResources["add_4_mutation"]; -const argDetailsSimple96 = [{ +const argDetailsSimple_add_4_mutation_error = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -15111,52 +11048,9 @@ const argDetailsSimple96 = [{ required: false, fetcher: null }]; -const makeArgs96 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple96[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation_error = (args, path = []) => argDetailsSimple_add_4_mutation_error.map(details => makeArg(path, args, details)); const resource_add_4_mutation_errorPgResource = registry.pgResources["add_4_mutation_error"]; -const argDetailsSimple97 = [{ +const argDetailsSimple_mult_1 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15169,52 +11063,9 @@ const argDetailsSimple97 = [{ required: true, fetcher: null }]; -const makeArgs97 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple97[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_1 = (args, path = []) => argDetailsSimple_mult_1.map(details => makeArg(path, args, details)); const resource_mult_1PgResource = registry.pgResources["mult_1"]; -const argDetailsSimple98 = [{ +const argDetailsSimple_mult_2 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15227,52 +11078,9 @@ const argDetailsSimple98 = [{ required: true, fetcher: null }]; -const makeArgs98 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple98[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_2 = (args, path = []) => argDetailsSimple_mult_2.map(details => makeArg(path, args, details)); const resource_mult_2PgResource = registry.pgResources["mult_2"]; -const argDetailsSimple99 = [{ +const argDetailsSimple_mult_3 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15285,52 +11093,9 @@ const argDetailsSimple99 = [{ required: true, fetcher: null }]; -const makeArgs99 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple99[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_3 = (args, path = []) => argDetailsSimple_mult_3.map(details => makeArg(path, args, details)); const resource_mult_3PgResource = registry.pgResources["mult_3"]; -const argDetailsSimple100 = [{ +const argDetailsSimple_mult_4 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15343,52 +11108,9 @@ const argDetailsSimple100 = [{ required: true, fetcher: null }]; -const makeArgs100 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple100[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_4 = (args, path = []) => argDetailsSimple_mult_4.map(details => makeArg(path, args, details)); const resource_mult_4PgResource = registry.pgResources["mult_4"]; -const argDetailsSimple101 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -15401,190 +11123,18 @@ const argDetailsSimple101 = [{ required: true, fetcher: null }]; -const makeArgs101 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple101[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple102 = []; -const makeArgs102 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple102[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple103 = []; -const makeArgs103 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple103[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple104 = []; -const makeArgs104 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple104[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple105 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -15603,294 +11153,36 @@ const argDetailsSimple105 = [{ required: true, fetcher: null }]; -const makeArgs105 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple105[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple106 = []; -const makeArgs106 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple106[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple107 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs107 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple107[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple108 = [{ +const argDetailsSimple_guid_fn = [{ graphqlArgName: "g", postgresArgName: "g", pgCodec: guidCodec, required: true, fetcher: null }]; -const makeArgs108 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple108[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 makeArgs_guid_fn = (args, path = []) => argDetailsSimple_guid_fn.map(details => makeArg(path, args, details)); const resource_guid_fnPgResource = registry.pgResources["guid_fn"]; -const argDetailsSimple109 = []; -const makeArgs109 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple109[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 argDetailsSimple_mutation_interval_array = []; +const makeArgs_mutation_interval_array = (args, path = []) => argDetailsSimple_mutation_interval_array.map(details => makeArg(path, args, details)); const resource_mutation_interval_arrayPgResource = registry.pgResources["mutation_interval_array"]; -const argDetailsSimple110 = []; -const makeArgs110 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple110[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 argDetailsSimple_mutation_text_array = []; +const makeArgs_mutation_text_array = (args, path = []) => argDetailsSimple_mutation_text_array.map(details => makeArg(path, args, details)); const resource_mutation_text_arrayPgResource = registry.pgResources["mutation_text_array"]; -const argDetailsSimple111 = [{ +const argDetailsSimple_list_bde_mutation = [{ graphqlArgName: "b", postgresArgName: "b", pgCodec: textArrayCodec, @@ -15909,98 +11201,12 @@ const argDetailsSimple111 = [{ required: true, fetcher: null }]; -const makeArgs111 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple111[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 makeArgs_list_bde_mutation = (args, path = []) => argDetailsSimple_list_bde_mutation.map(details => makeArg(path, args, details)); const resource_list_bde_mutationPgResource = registry.pgResources["list_bde_mutation"]; -const argDetailsSimple112 = []; -const makeArgs112 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple112[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 argDetailsSimple_authenticate_fail = []; +const makeArgs_authenticate_fail = (args, path = []) => argDetailsSimple_authenticate_fail.map(details => makeArg(path, args, details)); const resource_authenticate_failPgResource = registry.pgResources["authenticate_fail"]; -const argDetailsSimple113 = [{ +const argDetailsSimple_authenticate = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16019,196 +11225,24 @@ const argDetailsSimple113 = [{ required: true, fetcher: null }]; -const makeArgs113 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple113[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 makeArgs_authenticate = (args, path = []) => argDetailsSimple_authenticate.map(details => makeArg(path, args, details)); const resource_authenticatePgResource = registry.pgResources["authenticate"]; -const argDetailsSimple114 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs114 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple114[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple115 = []; -const makeArgs115 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple115[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple116 = []; -const makeArgs116 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple116[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple117 = [{ +const argDetailsSimple_authenticate_many = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16227,52 +11261,9 @@ const argDetailsSimple117 = [{ required: true, fetcher: null }]; -const makeArgs117 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple117[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 makeArgs_authenticate_many = (args, path = []) => argDetailsSimple_authenticate_many.map(details => makeArg(path, args, details)); const resource_authenticate_manyPgResource = registry.pgResources["authenticate_many"]; -const argDetailsSimple118 = [{ +const argDetailsSimple_authenticate_payload = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16291,52 +11282,9 @@ const argDetailsSimple118 = [{ required: true, fetcher: null }]; -const makeArgs118 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple118[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 makeArgs_authenticate_payload = (args, path = []) => argDetailsSimple_authenticate_payload.map(details => makeArg(path, args, details)); const resource_authenticate_payloadPgResource = registry.pgResources["authenticate_payload"]; -const argDetailsSimple119 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -16373,260 +11321,45 @@ const argDetailsSimple119 = [{ required: true, fetcher: null }]; -const makeArgs119 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple119[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple120 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs120 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple120[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple121 = [{ +const argDetailsSimple_compound_type_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs121 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple121[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 makeArgs_compound_type_mutation = (args, path = []) => argDetailsSimple_compound_type_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_mutationPgResource = registry.pgResources["compound_type_mutation"]; -const argDetailsSimple122 = [{ +const argDetailsSimple_compound_type_set_mutation = [{ 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 makeArgs_compound_type_set_mutation = (args, path = []) => argDetailsSimple_compound_type_set_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_set_mutationPgResource = registry.pgResources["compound_type_set_mutation"]; -const argDetailsSimple123 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, 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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple124 = [{ +const argDetailsSimple_post_with_suffix = [{ graphqlArgName: "post", postgresArgName: "post", pgCodec: postCodec, @@ -16639,208 +11372,36 @@ const argDetailsSimple124 = [{ required: true, fetcher: null }]; -const makeArgs124 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple124[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 makeArgs_post_with_suffix = (args, path = []) => argDetailsSimple_post_with_suffix.map(details => makeArg(path, args, details)); const resource_post_with_suffixPgResource = registry.pgResources["post_with_suffix"]; -const argDetailsSimple125 = [{ +const argDetailsSimple_mutation_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs125 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple125[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 makeArgs_mutation_compound_type_array = (args, path = []) => argDetailsSimple_mutation_compound_type_array.map(details => makeArg(path, args, details)); const resource_mutation_compound_type_arrayPgResource = registry.pgResources["mutation_compound_type_array"]; -const argDetailsSimple126 = [{ +const argDetailsSimple_compound_type_array_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs126 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple126[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 makeArgs_compound_type_array_mutation = (args, path = []) => argDetailsSimple_compound_type_array_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_array_mutationPgResource = registry.pgResources["compound_type_array_mutation"]; -const argDetailsSimple127 = [{ +const argDetailsSimple_post_many = [{ graphqlArgName: "posts", postgresArgName: "posts", pgCodec: postArrayCodec, required: true, fetcher: null }]; -const makeArgs127 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple127[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 makeArgs_post_many = (args, path = []) => argDetailsSimple_post_many.map(details => makeArg(path, args, details)); const resource_post_manyPgResource = registry.pgResources["post_many"]; -const argDetailsSimple128 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16853,52 +11414,9 @@ const argDetailsSimple128 = [{ required: true, fetcher: null }]; -const makeArgs128 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple128[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple129 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16911,483 +11429,182 @@ const argDetailsSimple129 = [{ required: true, fetcher: null }]; -const makeArgs129 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple129[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple130 = []; -const makeArgs130 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple130[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple131 = []; -const makeArgs131 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple131[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple132 = []; -const makeArgs132 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple132[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; -const argDetailsSimple133 = []; -const makeArgs133 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple133[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 argDetailsSimple_type_function_connection_mutation = []; +const makeArgs_type_function_connection_mutation = (args, path = []) => argDetailsSimple_type_function_connection_mutation.map(details => makeArg(path, args, details)); const resource_type_function_connection_mutationPgResource = registry.pgResources["type_function_connection_mutation"]; -const argDetailsSimple134 = [{ +const argDetailsSimple_type_function_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs134 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple134[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 makeArgs_type_function_mutation = (args, path = []) => argDetailsSimple_type_function_mutation.map(details => makeArg(path, args, details)); const resource_type_function_mutationPgResource = registry.pgResources["type_function_mutation"]; -const argDetailsSimple135 = []; -const makeArgs135 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple135[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 argDetailsSimple_type_function_list_mutation = []; +const makeArgs_type_function_list_mutation = (args, path = []) => argDetailsSimple_type_function_list_mutation.map(details => makeArg(path, args, details)); const resource_type_function_list_mutationPgResource = registry.pgResources["type_function_list_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs15 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs16 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs17 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs18 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs19 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const specFromArgs20 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs21 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs22 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs23 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs24 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs25 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs26 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs27 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs28 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs29 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs30 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs31 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs32 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs33 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs34 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs35 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs36 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs37 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs38 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const resource_frmcdc_jwtTokenPgResource = registry.pgResources["frmcdc_jwtToken"]; @@ -27245,131 +21462,131 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, inputById(_$root, args) { return pgResource_inputsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, patchById(_$root, args) { return pgResource_patchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedById(_$root, args) { return pgResource_reservedPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedPatchRecordById(_$root, args) { return pgResource_reservedPatchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedInputRecordById(_$root, args) { return pgResource_reserved_inputPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, defaultValueById(_$root, args) { return pgResource_default_valuePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, noPrimaryKeyById(_$root, args) { return resource_no_primary_keyPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, uniqueForeignKeyByCompoundKey1AndCompoundKey2(_$root, args) { return resource_unique_foreign_keyPgResource.get({ - compound_key_1: args.get("compoundKey1"), - compound_key_2: args.get("compoundKey2") + compound_key_1: args.getRaw("compoundKey1"), + compound_key_2: args.getRaw("compoundKey2") }); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, viewTableById(_$root, args) { return pgResource_view_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, similarTable1ById(_$root, args) { return pgResource_similar_table_1PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, similarTable2ById(_$root, args) { return pgResource_similar_table_2PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, listById(_$root, args) { return pgResource_listsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, typeById(_$root, args) { return pgResource_typesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -27386,7 +21603,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27395,7 +21611,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27404,7 +21619,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27413,7 +21627,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27422,7 +21635,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27431,11 +21643,11 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, queryIntervalSet: { @@ -27452,7 +21664,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27461,7 +21672,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27470,7 +21680,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27479,7 +21688,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27488,7 +21696,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27510,7 +21717,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27519,7 +21725,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27528,7 +21733,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27537,7 +21741,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27546,7 +21749,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27555,7 +21757,7 @@ export const plans = { } }, funcInOut($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -27572,7 +21774,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27581,7 +21782,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27590,7 +21790,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27599,7 +21798,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27608,7 +21806,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27617,35 +21814,35 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, add1Query($root, args, _info) { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_add_1_query(args); return resource_add_1_queryPgResource.execute(selectArgs); }, add2Query($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_add_2_query(args); return resource_add_2_queryPgResource.execute(selectArgs); }, add3Query($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_add_3_query(args); return resource_add_3_queryPgResource.execute(selectArgs); }, add4Query($root, args, _info) { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_add_4_query(args); return resource_add_4_queryPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -27662,7 +21859,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27671,7 +21867,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27680,7 +21875,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27689,7 +21883,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27698,7 +21891,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27707,19 +21899,18 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27728,7 +21919,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27737,27 +21927,27 @@ export const plans = { } }, optionalMissingMiddle1($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_optional_missing_middle_1(args); return resource_optional_missing_middle_1PgResource.execute(selectArgs); }, optionalMissingMiddle2($root, args, _info) { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_optional_missing_middle_2(args); return resource_optional_missing_middle_2PgResource.execute(selectArgs); }, optionalMissingMiddle3($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_optional_missing_middle_3(args); return resource_optional_missing_middle_3PgResource.execute(selectArgs); }, optionalMissingMiddle4($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_optional_missing_middle_4(args); return resource_optional_missing_middle_4PgResource.execute(selectArgs); }, optionalMissingMiddle5($root, args, _info) { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_optional_missing_middle_5(args); return resource_optional_missing_middle_5PgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -27774,7 +21964,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27783,7 +21972,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27792,7 +21980,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27801,7 +21988,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27810,7 +21996,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27832,7 +22017,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27841,7 +22025,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27850,7 +22033,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27859,7 +22041,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27868,7 +22049,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27877,27 +22057,27 @@ export const plans = { } }, queryIntervalArray($root, args, _info) { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_query_interval_array(args); return resource_query_interval_arrayPgResource.execute(selectArgs); }, queryTextArray($root, args, _info) { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_query_text_array(args); return resource_query_text_arrayPgResource.execute(selectArgs); }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs31(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs32(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs33(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs34(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -27914,7 +22094,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27923,7 +22102,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27932,7 +22110,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27941,7 +22118,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27950,7 +22126,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27959,23 +22134,23 @@ export const plans = { } }, compoundTypeQuery($root, args, _info) { - const selectArgs = makeArgs36(args); + const selectArgs = makeArgs_compound_type_query(args); return resource_compound_type_queryPgResource.execute(selectArgs); }, tableQuery($root, args, _info) { - const selectArgs = makeArgs37(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, queryCompoundTypeArray($root, args, _info) { - const selectArgs = makeArgs38(args); + const selectArgs = makeArgs_query_compound_type_array(args); return resource_query_compound_type_arrayPgResource.execute(selectArgs); }, compoundTypeArrayQuery($root, args, _info) { - const selectArgs = makeArgs39(args); + const selectArgs = makeArgs_compound_type_array_query(args); return resource_compound_type_array_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs40(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -27992,7 +22167,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28001,7 +22175,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28010,7 +22183,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28019,7 +22191,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28028,7 +22199,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28050,7 +22220,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28059,7 +22228,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28068,7 +22236,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28077,7 +22244,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28086,7 +22252,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28095,7 +22260,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs43(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -28112,7 +22277,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28121,7 +22285,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28130,7 +22293,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28139,7 +22301,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28148,7 +22309,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28170,7 +22330,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28179,7 +22338,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28188,7 +22346,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28197,7 +22354,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28206,7 +22362,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28215,22 +22370,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28250,7 +22401,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28259,7 +22409,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28268,7 +22417,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28277,7 +22425,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28286,7 +22433,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28308,7 +22454,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28317,7 +22462,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28326,7 +22470,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28335,7 +22478,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28344,7 +22486,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28353,87 +22494,87 @@ export const plans = { } }, typeFunction($root, args, _info) { - const selectArgs = makeArgs48(args); + const selectArgs = makeArgs_type_function(args); return resource_type_functionPgResource.execute(selectArgs); }, typeFunctionList($root, args, _info) { - const selectArgs = makeArgs49(args); + const selectArgs = makeArgs_type_function_list(args); return resource_type_function_listPgResource.execute(selectArgs); }, input(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, patch(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, reserved(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, reservedPatchRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, reservedInputRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, defaultValue(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher8($nodeId); }, viewTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher9($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher10($nodeId); }, similarTable1(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher11($nodeId); }, similarTable2(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher12($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher13($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher14($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher15($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher16($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher17($nodeId); }, list(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher18($nodeId); }, type(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher19($nodeId); }, allNonUpdatableViews: { @@ -28444,7 +22585,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28453,7 +22593,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28462,7 +22601,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28471,7 +22609,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28480,7 +22617,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28489,12 +22625,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NonUpdatableViewsOrderBy")); - return null; + value.apply($select); } } } @@ -28508,7 +22641,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28517,7 +22649,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28526,7 +22657,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28535,7 +22665,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28544,7 +22673,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28553,22 +22681,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28582,7 +22706,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28591,7 +22714,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28600,7 +22722,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28609,7 +22730,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28618,7 +22738,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28627,22 +22746,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28656,7 +22771,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28665,7 +22779,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28674,7 +22787,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28683,7 +22795,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28692,7 +22803,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28701,22 +22811,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28730,7 +22836,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28739,7 +22844,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28748,7 +22852,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28757,7 +22860,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28766,7 +22868,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28775,22 +22876,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28804,7 +22901,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28813,7 +22909,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28822,7 +22917,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28831,7 +22925,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28840,7 +22933,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28849,22 +22941,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28878,7 +22966,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28887,7 +22974,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28896,7 +22982,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28905,7 +22990,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28914,7 +22998,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28923,22 +23006,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28952,7 +23031,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28961,7 +23039,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28970,7 +23047,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28979,7 +23055,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28988,7 +23063,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28997,12 +23071,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } } @@ -29016,7 +23087,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29025,7 +23095,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29034,7 +23103,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29043,7 +23111,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29052,7 +23119,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29061,22 +23127,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NoPrimaryKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29090,7 +23152,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29099,7 +23160,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29108,7 +23168,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29117,7 +23176,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29126,7 +23184,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29135,12 +23192,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TestviewsOrderBy")); - return null; + value.apply($select); } } } @@ -29154,7 +23208,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29163,7 +23216,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29172,7 +23224,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29181,7 +23232,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29190,7 +23240,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29199,22 +23248,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29228,7 +23273,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29237,7 +23281,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29246,7 +23289,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29255,7 +23297,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29264,7 +23305,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29273,22 +23313,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29302,7 +23338,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29311,7 +23346,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29320,7 +23354,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29329,7 +23362,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29338,7 +23370,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29347,22 +23378,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29376,7 +23403,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29385,7 +23411,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29394,7 +23419,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29403,7 +23427,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29412,7 +23435,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29421,22 +23443,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29450,7 +23468,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29459,7 +23476,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29468,7 +23484,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29477,7 +23492,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29486,7 +23500,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29495,22 +23508,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29524,7 +23533,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29533,7 +23541,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29542,7 +23549,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29551,7 +23557,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29560,7 +23565,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29569,22 +23573,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29598,7 +23598,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29607,7 +23606,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29616,7 +23614,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29625,7 +23622,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29634,7 +23630,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29643,12 +23638,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UpdatableViewsOrderBy")); - return null; + value.apply($select); } } } @@ -29662,7 +23654,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29671,7 +23662,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29680,7 +23670,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29689,7 +23678,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29698,7 +23686,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29707,22 +23694,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29736,7 +23719,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29745,7 +23727,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29754,7 +23735,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29763,7 +23743,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29772,7 +23751,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29781,12 +23759,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } } @@ -29800,7 +23775,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29809,7 +23783,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29818,7 +23791,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29827,7 +23799,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29836,7 +23807,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29845,22 +23815,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29874,7 +23840,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29883,7 +23848,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29892,7 +23856,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29901,7 +23864,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29910,7 +23872,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29919,22 +23880,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29948,7 +23905,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29957,7 +23913,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29966,7 +23921,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29975,7 +23929,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29984,7 +23937,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29993,22 +23945,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30022,7 +23970,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30031,7 +23978,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30040,7 +23986,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30049,7 +23994,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30058,7 +24002,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30067,22 +24010,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30096,7 +24035,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30105,7 +24043,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30114,7 +24051,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30123,7 +24059,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30132,7 +24067,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30141,22 +24075,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30170,7 +24100,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30179,7 +24108,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30188,7 +24116,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30197,7 +24124,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30206,7 +24132,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30215,22 +24140,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30366,7 +24287,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30381,27 +24302,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -30410,7 +24325,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30425,27 +24340,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -30454,7 +24363,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs52(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30469,27 +24378,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -30498,7 +24401,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs53(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30513,27 +24416,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -30542,7 +24439,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs54(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30557,27 +24454,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -30586,7 +24477,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs55(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30601,27 +24492,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -30630,7 +24515,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs56(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30645,27 +24530,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -30674,7 +24553,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs57(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30689,27 +24568,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -30718,7 +24591,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs58(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30733,27 +24606,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -30762,7 +24629,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs59(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30777,27 +24644,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -30806,7 +24667,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs60(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30821,27 +24682,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -30850,7 +24705,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs61(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30865,27 +24720,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -30894,7 +24743,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs62(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30909,27 +24758,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -30938,7 +24781,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs63(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30953,27 +24796,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -30982,7 +24819,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs64(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30997,27 +24834,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -31036,7 +24867,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31045,7 +24875,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31054,7 +24883,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31063,7 +24891,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31072,7 +24899,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31081,12 +24907,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -31106,7 +24929,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31115,7 +24937,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31124,7 +24945,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31133,7 +24953,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31142,7 +24961,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31154,7 +24972,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs67(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31169,27 +24987,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -31198,7 +25010,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs68(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31213,27 +25025,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -31288,7 +25094,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31297,7 +25102,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31306,7 +25110,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31315,7 +25118,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31324,7 +25126,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31333,22 +25134,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -31375,7 +25172,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31384,7 +25180,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31393,7 +25188,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31402,7 +25196,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31411,7 +25204,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31420,22 +25212,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -31510,7 +25298,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs69(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31525,27 +25313,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -31656,7 +25438,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31665,7 +25446,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31674,7 +25454,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31683,7 +25462,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31692,7 +25470,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31704,7 +25481,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs71(args); + const extraSelectArgs = makeArgs_post_computed_interval_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31719,27 +25496,21 @@ export const plans = { if (resource_post_computed_interval_arrayPgResource.isUnique && !resource_post_computed_interval_arrayPgResource.codec.attributes && typeof resource_post_computed_interval_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${resource_post_computed_interval_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_arrayPgResource.from, resource_post_computed_interval_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_arrayPgResource.execute(selectArgs); @@ -31748,7 +25519,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs72(args); + const extraSelectArgs = makeArgs_post_computed_text_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31763,27 +25534,21 @@ export const plans = { if (resource_post_computed_text_arrayPgResource.isUnique && !resource_post_computed_text_arrayPgResource.codec.attributes && typeof resource_post_computed_text_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${resource_post_computed_text_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_text_arrayPgResource.from, resource_post_computed_text_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_text_arrayPgResource.execute(selectArgs); @@ -31792,7 +25557,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs73(args); + const extraSelectArgs = makeArgs_post_computed_with_optional_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31807,27 +25572,21 @@ export const plans = { if (resource_post_computed_with_optional_argPgResource.isUnique && !resource_post_computed_with_optional_argPgResource.codec.attributes && typeof resource_post_computed_with_optional_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${resource_post_computed_with_optional_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_optional_argPgResource.from, resource_post_computed_with_optional_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_optional_argPgResource.execute(selectArgs); @@ -31836,7 +25595,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs74(args); + const extraSelectArgs = makeArgs_post_computed_with_required_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31851,27 +25610,21 @@ export const plans = { if (resource_post_computed_with_required_argPgResource.isUnique && !resource_post_computed_with_required_argPgResource.codec.attributes && typeof resource_post_computed_with_required_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${resource_post_computed_with_required_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_required_argPgResource.from, resource_post_computed_with_required_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_required_argPgResource.execute(selectArgs); @@ -31880,7 +25633,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs75(args); + const extraSelectArgs = makeArgs_post_headline_trimmed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31895,27 +25648,21 @@ export const plans = { if (resource_post_headline_trimmedPgResource.isUnique && !resource_post_headline_trimmedPgResource.codec.attributes && typeof resource_post_headline_trimmedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${resource_post_headline_trimmedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmedPgResource.from, resource_post_headline_trimmedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmedPgResource.execute(selectArgs); @@ -31924,7 +25671,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs76(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_no_defaults(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31939,27 +25686,21 @@ export const plans = { if (resource_post_headline_trimmed_no_defaultsPgResource.isUnique && !resource_post_headline_trimmed_no_defaultsPgResource.codec.attributes && typeof resource_post_headline_trimmed_no_defaultsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${resource_post_headline_trimmed_no_defaultsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.from, resource_post_headline_trimmed_no_defaultsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_no_defaultsPgResource.execute(selectArgs); @@ -31968,7 +25709,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs77(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_strict(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31983,27 +25724,21 @@ export const plans = { if (resource_post_headline_trimmed_strictPgResource.isUnique && !resource_post_headline_trimmed_strictPgResource.codec.attributes && typeof resource_post_headline_trimmed_strictPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${resource_post_headline_trimmed_strictPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_strictPgResource.from, resource_post_headline_trimmed_strictPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_strictPgResource.execute(selectArgs); @@ -32012,7 +25747,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs78(args); + const extraSelectArgs = makeArgs_post_computed_compound_type_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32027,27 +25762,21 @@ export const plans = { if (resource_post_computed_compound_type_arrayPgResource.isUnique && !resource_post_computed_compound_type_arrayPgResource.codec.attributes && typeof resource_post_computed_compound_type_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${resource_post_computed_compound_type_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_compound_type_arrayPgResource.from, resource_post_computed_compound_type_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_compound_type_arrayPgResource.execute(selectArgs); @@ -32089,7 +25818,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32098,7 +25826,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32107,7 +25834,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32116,7 +25842,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32125,7 +25850,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32134,22 +25858,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32212,64 +25932,70 @@ export const plans = { } }, CompoundTypeInput: { - "__inputPlan": function CompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, IntervalInput: { @@ -32787,31 +26513,21 @@ export const plans = { } }, TypesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32820,19 +26536,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32841,11 +26555,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -32853,7 +26564,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32863,11 +26574,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -32875,7 +26583,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32884,8 +26592,8 @@ export const plans = { }, TypeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -32898,13 +26606,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -32933,26 +26639,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -32965,14 +26663,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -32985,14 +26683,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -33005,14 +26703,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -33025,19 +26723,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33046,19 +26742,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33067,11 +26761,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -33079,7 +26770,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33089,11 +26780,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -33101,7 +26789,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33111,11 +26799,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -33123,7 +26808,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33133,11 +26818,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -33145,7 +26827,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33228,26 +26910,18 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_WITH_OPTIONAL_ARG_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -33260,14 +26934,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -33280,19 +26954,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33301,19 +26973,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33322,11 +26992,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -33334,7 +27001,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33344,11 +27011,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -33356,7 +27020,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33366,11 +27030,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -33378,7 +27039,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33388,11 +27049,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -33400,7 +27058,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33409,8 +27067,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -33423,17 +27081,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -33446,26 +27102,25 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedWithOptionalArg: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_post_computed_with_optional_argPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_post_computed_with_optional_argPgResource.codec)}`); } } } @@ -33538,31 +27193,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33571,19 +27216,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33592,11 +27235,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -33604,7 +27244,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33614,11 +27254,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -33626,7 +27263,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33635,8 +27272,8 @@ export const plans = { }, CompoundKeyCondition: { personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -33649,13 +27286,11 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTable: { @@ -34198,8 +27833,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -34212,17 +27847,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -34235,26 +27868,25 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } @@ -34290,16 +27922,6 @@ export const plans = { return $edge.node(); } }, - NonUpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - } - }, InputsConnection: { __assertStep: ConnectionStep, nodes($connection) { @@ -34326,31 +27948,21 @@ export const plans = { } }, InputsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34359,19 +27971,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34380,11 +27990,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -34392,7 +27999,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34402,11 +28009,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -34414,7 +28018,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34423,8 +28027,8 @@ export const plans = { }, InputCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -34437,13 +28041,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_inputs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PatchesConnection: { @@ -34472,31 +28074,21 @@ export const plans = { } }, PatchesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34505,19 +28097,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34526,11 +28116,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -34538,7 +28125,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34548,11 +28135,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -34560,7 +28144,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34569,8 +28153,8 @@ export const plans = { }, PatchCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -34583,13 +28167,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_patchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedsConnection: { @@ -34618,31 +28200,21 @@ export const plans = { } }, ReservedsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34651,19 +28223,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34672,11 +28242,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -34684,7 +28251,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34694,11 +28261,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -34706,7 +28270,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34715,8 +28279,8 @@ export const plans = { }, ReservedCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -34729,13 +28293,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedPatchRecordsConnection: { @@ -34764,31 +28326,21 @@ export const plans = { } }, ReservedPatchRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34797,19 +28349,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34818,11 +28368,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -34830,7 +28377,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34840,11 +28387,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -34852,7 +28396,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34861,8 +28405,8 @@ export const plans = { }, ReservedPatchRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -34875,13 +28419,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedPatchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedInputRecordsConnection: { @@ -34910,31 +28452,21 @@ export const plans = { } }, ReservedInputRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34943,19 +28475,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34964,11 +28494,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -34976,7 +28503,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34986,11 +28513,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -34998,7 +28522,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35007,8 +28531,8 @@ export const plans = { }, ReservedInputRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35021,13 +28545,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedInput.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, DefaultValuesConnection: { @@ -35056,31 +28578,21 @@ export const plans = { } }, DefaultValuesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35089,19 +28601,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35110,11 +28620,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -35122,7 +28629,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35132,11 +28639,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -35144,7 +28648,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35153,8 +28657,8 @@ export const plans = { }, DefaultValueCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35167,13 +28671,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ForeignKeysConnection: { @@ -35224,16 +28726,6 @@ export const plans = { return $edge.node(); } }, - ForeignKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - } - }, NoPrimaryKeysConnection: { __assertStep: ConnectionStep, nodes($connection) { @@ -35260,23 +28752,12 @@ export const plans = { } }, NoPrimaryKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -35284,7 +28765,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35294,11 +28775,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -35306,7 +28784,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35315,8 +28793,8 @@ export const plans = { }, NoPrimaryKeyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35329,13 +28807,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TestviewsConnection: { @@ -35375,16 +28851,6 @@ export const plans = { return $edge.node(); } }, - TestviewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - } - }, MyTablesConnection: { __assertStep: ConnectionStep, nodes($connection) { @@ -35411,31 +28877,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35444,19 +28900,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35465,11 +28919,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -35477,7 +28928,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35487,11 +28938,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -35499,7 +28947,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35508,8 +28956,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35522,13 +28970,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -35557,31 +29003,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35590,19 +29026,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35611,11 +29045,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -35623,7 +29054,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35633,11 +29064,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -35645,7 +29073,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35654,8 +29082,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -35668,13 +29096,11 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ViewTablesConnection: { @@ -35703,31 +29129,21 @@ export const plans = { } }, ViewTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35736,19 +29152,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35757,11 +29171,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -35769,7 +29180,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35779,11 +29190,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -35791,7 +29199,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35800,8 +29208,8 @@ export const plans = { }, ViewTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35814,13 +29222,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable1SConnection: { @@ -35849,31 +29255,21 @@ export const plans = { } }, SimilarTable1SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35882,19 +29278,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35903,11 +29297,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -35915,7 +29306,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35925,11 +29316,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -35937,7 +29325,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35946,8 +29334,8 @@ export const plans = { }, SimilarTable1Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35960,13 +29348,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable2SConnection: { @@ -35995,31 +29381,21 @@ export const plans = { } }, SimilarTable2SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36028,19 +29404,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36049,11 +29423,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36061,7 +29432,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36071,11 +29442,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36083,7 +29451,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36092,8 +29460,8 @@ export const plans = { }, SimilarTable2Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -36106,13 +29474,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UpdatableViewsConnection: { @@ -36155,16 +29521,6 @@ export const plans = { return $edge.node(); } }, - UpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - } - }, NullTestRecordsConnection: { __assertStep: ConnectionStep, nodes($connection) { @@ -36191,31 +29547,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36224,19 +29570,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36245,11 +29589,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36257,7 +29598,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36267,11 +29608,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36279,7 +29617,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36288,8 +29626,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -36302,13 +29640,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -36333,7 +29669,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs79(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -36348,27 +29684,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -36392,16 +29722,6 @@ export const plans = { return $edge.node(); } }, - EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - } - }, LeftArmsConnection: { __assertStep: ConnectionStep, nodes($connection) { @@ -36428,31 +29748,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36461,19 +29771,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36482,11 +29790,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36494,7 +29799,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36504,11 +29809,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36516,7 +29818,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36526,11 +29828,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -36538,7 +29837,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36548,11 +29847,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -36560,7 +29856,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36569,8 +29865,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -36583,17 +29879,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -36606,13 +29900,11 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -36641,31 +29933,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36674,19 +29956,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36695,11 +29975,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36707,7 +29984,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36717,11 +29994,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36729,7 +30003,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36738,8 +30012,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -36752,13 +30026,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ListsConnection: { @@ -36787,31 +30059,21 @@ export const plans = { } }, ListsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36820,19 +30082,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36841,11 +30101,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36853,7 +30110,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36863,11 +30120,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36875,7 +30129,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36884,8 +30138,8 @@ export const plans = { }, ListCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -36898,20 +30152,18 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs80(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -36921,9 +30173,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -36931,7 +30192,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs81(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -36941,9 +30202,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -36951,7 +30221,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs82(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -36961,9 +30231,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -36971,7 +30250,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs83(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -36981,9 +30260,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -36991,7 +30279,7 @@ export const plans = { }, returnVoidMutation: { plan($root, args, _info) { - const selectArgs = makeArgs84(args, ["input"]); + const selectArgs = makeArgs_return_void_mutation(args, ["input"]); const $result = resource_return_void_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37001,9 +30289,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37011,7 +30308,7 @@ export const plans = { }, mutationIntervalSet: { plan($root, args, _info) { - const selectArgs = makeArgs85(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_set(args, ["input"]); const $result = resource_mutation_interval_setPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37021,9 +30318,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37031,7 +30337,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs86(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37041,9 +30347,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37051,7 +30366,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs87(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37061,9 +30376,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37071,7 +30395,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs88(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37081,9 +30405,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37091,7 +30424,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs89(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37101,9 +30434,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37111,7 +30453,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs90(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37121,9 +30463,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37131,7 +30482,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs91(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37141,9 +30492,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37151,7 +30511,7 @@ export const plans = { }, add1Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs92(args, ["input"]); + const selectArgs = makeArgs_add_1_mutation(args, ["input"]); const $result = resource_add_1_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37161,9 +30521,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37171,7 +30540,7 @@ export const plans = { }, add2Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs93(args, ["input"]); + const selectArgs = makeArgs_add_2_mutation(args, ["input"]); const $result = resource_add_2_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37181,9 +30550,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37191,7 +30569,7 @@ export const plans = { }, add3Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs94(args, ["input"]); + const selectArgs = makeArgs_add_3_mutation(args, ["input"]); const $result = resource_add_3_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37201,9 +30579,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37211,7 +30598,7 @@ export const plans = { }, add4Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs95(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation(args, ["input"]); const $result = resource_add_4_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37221,9 +30608,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37231,7 +30627,7 @@ export const plans = { }, add4MutationError: { plan($root, args, _info) { - const selectArgs = makeArgs96(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation_error(args, ["input"]); const $result = resource_add_4_mutation_errorPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37241,9 +30637,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37251,7 +30656,7 @@ export const plans = { }, mult1: { plan($root, args, _info) { - const selectArgs = makeArgs97(args, ["input"]); + const selectArgs = makeArgs_mult_1(args, ["input"]); const $result = resource_mult_1PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37261,9 +30666,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37271,7 +30685,7 @@ export const plans = { }, mult2: { plan($root, args, _info) { - const selectArgs = makeArgs98(args, ["input"]); + const selectArgs = makeArgs_mult_2(args, ["input"]); const $result = resource_mult_2PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37281,9 +30695,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37291,7 +30714,7 @@ export const plans = { }, mult3: { plan($root, args, _info) { - const selectArgs = makeArgs99(args, ["input"]); + const selectArgs = makeArgs_mult_3(args, ["input"]); const $result = resource_mult_3PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37301,9 +30724,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37311,7 +30743,7 @@ export const plans = { }, mult4: { plan($root, args, _info) { - const selectArgs = makeArgs100(args, ["input"]); + const selectArgs = makeArgs_mult_4(args, ["input"]); const $result = resource_mult_4PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37321,9 +30753,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37331,7 +30772,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs101(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37341,9 +30782,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37351,7 +30801,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs102(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37361,9 +30811,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37371,7 +30830,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs103(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37381,9 +30840,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37391,7 +30859,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs104(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37401,9 +30869,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37411,7 +30888,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs105(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37421,9 +30898,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37431,7 +30917,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs106(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37441,9 +30927,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37451,7 +30946,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs107(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37461,9 +30956,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37471,7 +30975,7 @@ export const plans = { }, guidFn: { plan($root, args, _info) { - const selectArgs = makeArgs108(args, ["input"]); + const selectArgs = makeArgs_guid_fn(args, ["input"]); const $result = resource_guid_fnPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37481,9 +30985,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37491,7 +31004,7 @@ export const plans = { }, mutationIntervalArray: { plan($root, args, _info) { - const selectArgs = makeArgs109(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_array(args, ["input"]); const $result = resource_mutation_interval_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37501,9 +31014,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37511,7 +31033,7 @@ export const plans = { }, mutationTextArray: { plan($root, args, _info) { - const selectArgs = makeArgs110(args, ["input"]); + const selectArgs = makeArgs_mutation_text_array(args, ["input"]); const $result = resource_mutation_text_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37521,9 +31043,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37531,7 +31062,7 @@ export const plans = { }, listBdeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs111(args, ["input"]); + const selectArgs = makeArgs_list_bde_mutation(args, ["input"]); const $result = resource_list_bde_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37541,9 +31072,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37551,7 +31091,7 @@ export const plans = { }, authenticateFail: { plan($root, args, _info) { - const selectArgs = makeArgs112(args, ["input"]); + const selectArgs = makeArgs_authenticate_fail(args, ["input"]); const $result = resource_authenticate_failPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37561,9 +31101,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37571,7 +31120,7 @@ export const plans = { }, authenticate: { plan($root, args, _info) { - const selectArgs = makeArgs113(args, ["input"]); + const selectArgs = makeArgs_authenticate(args, ["input"]); const $result = resource_authenticatePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37581,9 +31130,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37591,7 +31149,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs114(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37601,9 +31159,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37611,7 +31178,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs115(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37621,9 +31188,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37631,7 +31207,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs116(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37641,9 +31217,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37651,7 +31236,7 @@ export const plans = { }, authenticateMany: { plan($root, args, _info) { - const selectArgs = makeArgs117(args, ["input"]); + const selectArgs = makeArgs_authenticate_many(args, ["input"]); const $result = resource_authenticate_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37661,9 +31246,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37671,7 +31265,7 @@ export const plans = { }, authenticatePayload: { plan($root, args, _info) { - const selectArgs = makeArgs118(args, ["input"]); + const selectArgs = makeArgs_authenticate_payload(args, ["input"]); const $result = resource_authenticate_payloadPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37681,9 +31275,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37691,7 +31294,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs119(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37701,9 +31304,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37711,7 +31323,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs120(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37721,9 +31333,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37731,7 +31352,7 @@ export const plans = { }, compoundTypeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs121(args, ["input"]); + const selectArgs = makeArgs_compound_type_mutation(args, ["input"]); const $result = resource_compound_type_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37741,9 +31362,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37751,7 +31381,7 @@ export const plans = { }, compoundTypeSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs122(args, ["input"]); + const selectArgs = makeArgs_compound_type_set_mutation(args, ["input"]); const $result = resource_compound_type_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37761,9 +31391,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37771,7 +31410,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs123(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37781,9 +31420,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37791,7 +31439,7 @@ export const plans = { }, postWithSuffix: { plan($root, args, _info) { - const selectArgs = makeArgs124(args, ["input"]); + const selectArgs = makeArgs_post_with_suffix(args, ["input"]); const $result = resource_post_with_suffixPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37801,9 +31449,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37811,7 +31468,7 @@ export const plans = { }, mutationCompoundTypeArray: { plan($root, args, _info) { - const selectArgs = makeArgs125(args, ["input"]); + const selectArgs = makeArgs_mutation_compound_type_array(args, ["input"]); const $result = resource_mutation_compound_type_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37821,9 +31478,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37831,7 +31497,7 @@ export const plans = { }, compoundTypeArrayMutation: { plan($root, args, _info) { - const selectArgs = makeArgs126(args, ["input"]); + const selectArgs = makeArgs_compound_type_array_mutation(args, ["input"]); const $result = resource_compound_type_array_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37841,9 +31507,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37851,7 +31526,7 @@ export const plans = { }, postMany: { plan($root, args, _info) { - const selectArgs = makeArgs127(args, ["input"]); + const selectArgs = makeArgs_post_many(args, ["input"]); const $result = resource_post_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37861,9 +31536,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37871,7 +31555,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs128(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37881,9 +31565,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37891,7 +31584,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs129(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37901,9 +31594,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37911,7 +31613,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs130(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37921,9 +31623,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37931,7 +31642,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs131(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37941,9 +31652,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37951,7 +31671,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs132(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37961,9 +31681,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37971,7 +31700,7 @@ export const plans = { }, typeFunctionConnectionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs133(args, ["input"]); + const selectArgs = makeArgs_type_function_connection_mutation(args, ["input"]); const $result = resource_type_function_connection_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -37981,9 +31710,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -37991,7 +31729,7 @@ export const plans = { }, typeFunctionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs134(args, ["input"]); + const selectArgs = makeArgs_type_function_mutation(args, ["input"]); const $result = resource_type_function_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -38001,9 +31739,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -38011,7 +31758,7 @@ export const plans = { }, typeFunctionListMutation: { plan($root, args, _info) { - const selectArgs = makeArgs135(args, ["input"]); + const selectArgs = makeArgs_type_function_list_mutation(args, ["input"]); const $result = resource_type_function_list_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -38021,9 +31768,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -38031,17 +31787,17 @@ export const plans = { }, createInput: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_inputsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_inputsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38051,17 +31807,17 @@ export const plans = { }, createPatch: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_patchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_patchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38071,17 +31827,17 @@ export const plans = { }, createReserved: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38091,17 +31847,17 @@ export const plans = { }, createReservedPatchRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38111,17 +31867,17 @@ export const plans = { }, createReservedInputRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38131,17 +31887,17 @@ export const plans = { }, createDefaultValue: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38151,17 +31907,17 @@ export const plans = { }, createForeignKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38171,17 +31927,17 @@ export const plans = { }, createNoPrimaryKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38191,17 +31947,17 @@ export const plans = { }, createTestview: { plan(_, args) { + const $insert = pgInsertSingle(resource_testviewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_testviewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38211,17 +31967,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38231,17 +31987,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38251,17 +32007,17 @@ export const plans = { }, createViewTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38271,17 +32027,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38291,17 +32047,17 @@ export const plans = { }, createSimilarTable1: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38311,17 +32067,17 @@ export const plans = { }, createSimilarTable2: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38331,17 +32087,17 @@ export const plans = { }, createUpdatableView: { plan(_, args) { + const $insert = pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38351,17 +32107,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38371,17 +32127,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38391,17 +32147,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38411,17 +32167,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38431,17 +32187,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38451,17 +32207,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38471,17 +32227,17 @@ export const plans = { }, createList: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_listsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_listsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38491,17 +32247,17 @@ export const plans = { }, createType: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -38511,11 +32267,11 @@ export const plans = { }, updateInput: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38530,13 +32286,13 @@ export const plans = { }, updateInputById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38551,11 +32307,11 @@ export const plans = { }, updatePatch: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38570,13 +32326,13 @@ export const plans = { }, updatePatchById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38591,11 +32347,11 @@ export const plans = { }, updateReserved: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38610,13 +32366,13 @@ export const plans = { }, updateReservedById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38631,11 +32387,11 @@ export const plans = { }, updateReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38650,13 +32406,13 @@ export const plans = { }, updateReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38671,11 +32427,11 @@ export const plans = { }, updateReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38690,13 +32446,13 @@ export const plans = { }, updateReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38711,11 +32467,11 @@ export const plans = { }, updateDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38730,13 +32486,13 @@ export const plans = { }, updateDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38751,13 +32507,13 @@ export const plans = { }, updateNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38772,11 +32528,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38791,13 +32547,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38812,11 +32568,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38831,13 +32587,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38852,11 +32608,11 @@ export const plans = { }, updateViewTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38871,13 +32627,13 @@ export const plans = { }, updateViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38892,11 +32648,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38911,14 +32667,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38933,11 +32689,11 @@ export const plans = { }, updateSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38952,13 +32708,13 @@ export const plans = { }, updateSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38973,11 +32729,11 @@ export const plans = { }, updateSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -38992,13 +32748,13 @@ export const plans = { }, updateSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39013,11 +32769,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39032,13 +32788,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39053,11 +32809,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39072,13 +32828,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39093,13 +32849,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39114,11 +32870,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39133,13 +32889,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39154,11 +32910,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39173,13 +32929,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39194,11 +32950,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39213,13 +32969,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39234,13 +32990,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39255,11 +33011,11 @@ export const plans = { }, updateList: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)) + const $update = pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39274,13 +33030,13 @@ export const plans = { }, updateListById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39295,11 +33051,11 @@ export const plans = { }, updateType: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)) + const $update = pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39314,13 +33070,13 @@ export const plans = { }, updateTypeById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -39335,11 +33091,11 @@ export const plans = { }, deleteInput: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39354,13 +33110,13 @@ export const plans = { }, deleteInputById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39375,11 +33131,11 @@ export const plans = { }, deletePatch: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39394,13 +33150,13 @@ export const plans = { }, deletePatchById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39415,11 +33171,11 @@ export const plans = { }, deleteReserved: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39434,13 +33190,13 @@ export const plans = { }, deleteReservedById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39455,11 +33211,11 @@ export const plans = { }, deleteReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39474,13 +33230,13 @@ export const plans = { }, deleteReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39495,11 +33251,11 @@ export const plans = { }, deleteReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39514,13 +33270,13 @@ export const plans = { }, deleteReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39535,11 +33291,11 @@ export const plans = { }, deleteDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39554,13 +33310,13 @@ export const plans = { }, deleteDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39575,13 +33331,13 @@ export const plans = { }, deleteNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39596,11 +33352,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39615,13 +33371,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39636,11 +33392,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39655,13 +33411,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39676,11 +33432,11 @@ export const plans = { }, deleteViewTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39695,13 +33451,13 @@ export const plans = { }, deleteViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39716,11 +33472,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39735,14 +33491,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39757,11 +33513,11 @@ export const plans = { }, deleteSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39776,13 +33532,13 @@ export const plans = { }, deleteSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39797,11 +33553,11 @@ export const plans = { }, deleteSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39816,13 +33572,13 @@ export const plans = { }, deleteSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39837,11 +33593,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39856,13 +33612,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39877,11 +33633,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39896,13 +33652,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39917,13 +33673,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39938,11 +33694,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39957,13 +33713,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39978,11 +33734,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -39997,13 +33753,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -40018,11 +33774,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -40037,13 +33793,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -40058,13 +33814,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -40079,11 +33835,11 @@ export const plans = { }, deleteList: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)) + const $delete = pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -40098,13 +33854,13 @@ export const plans = { }, deleteListById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -40119,11 +33875,11 @@ export const plans = { }, deleteType: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)) + const $delete = pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -40138,13 +33894,13 @@ export const plans = { }, deleteTypeById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -40161,7 +33917,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -40172,16 +33929,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -40192,16 +33949,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -40212,16 +33969,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -40232,16 +33989,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ReturnVoidMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, query() { return rootValue(); @@ -40249,16 +34006,16 @@ export const plans = { }, ReturnVoidMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationIntervalSetPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -40269,16 +34026,16 @@ export const plans = { }, MutationIntervalSetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -40289,17 +34046,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -40310,17 +34067,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -40331,17 +34088,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -40352,17 +34109,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -40373,17 +34130,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -40394,17 +34151,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, Add1MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -40415,10 +34172,9 @@ export const plans = { }, Add1MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -40426,7 +34182,8 @@ export const plans = { Add2MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -40437,10 +34194,9 @@ export const plans = { }, Add2MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -40448,7 +34204,8 @@ export const plans = { Add3MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -40459,10 +34216,9 @@ export const plans = { }, Add3MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, arg1: undefined @@ -40470,7 +34226,8 @@ export const plans = { Add4MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -40481,10 +34238,9 @@ export const plans = { }, Add4MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -40492,7 +34248,8 @@ export const plans = { Add4MutationErrorPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -40503,10 +34260,9 @@ export const plans = { }, Add4MutationErrorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -40514,7 +34270,8 @@ export const plans = { Mult1Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -40525,10 +34282,9 @@ export const plans = { }, Mult1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -40536,7 +34292,8 @@ export const plans = { Mult2Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -40547,10 +34304,9 @@ export const plans = { }, Mult2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -40558,7 +34314,8 @@ export const plans = { Mult3Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -40569,10 +34326,9 @@ export const plans = { }, Mult3Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -40580,7 +34336,8 @@ export const plans = { Mult4Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -40591,10 +34348,9 @@ export const plans = { }, Mult4Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -40602,7 +34358,8 @@ export const plans = { MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -40613,10 +34370,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -40624,7 +34380,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -40644,16 +34401,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -40673,16 +34430,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -40702,16 +34459,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -40722,10 +34479,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -40734,7 +34490,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -40757,16 +34514,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -40786,17 +34543,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, GuidFnPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, guid($object) { return $object.get("result"); @@ -40812,17 +34569,17 @@ export const plans = { }, GuidFnInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, g: undefined }, MutationIntervalArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -40833,16 +34590,16 @@ export const plans = { }, MutationIntervalArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationTextArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, strings($object) { return $object.get("result"); @@ -40853,16 +34610,16 @@ export const plans = { }, MutationTextArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ListBdeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, uuids($object) { return $object.get("result"); @@ -40873,10 +34630,9 @@ export const plans = { }, ListBdeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, b: undefined, d: undefined, @@ -40885,7 +34641,8 @@ export const plans = { AuthenticateFailPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -40914,16 +34671,16 @@ export const plans = { }, AuthenticateFailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticatePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -40934,10 +34691,9 @@ export const plans = { }, AuthenticateInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -40946,7 +34702,8 @@ export const plans = { LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -40954,7 +34711,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -40970,9 +34727,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -40988,50 +34743,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -41039,7 +34796,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -41055,9 +34812,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -41068,16 +34823,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -41088,16 +34843,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticateManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtTokens($object) { return $object.get("result"); @@ -41108,10 +34863,9 @@ export const plans = { }, AuthenticateManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -41120,7 +34874,8 @@ export const plans = { AuthenticatePayloadPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, authPayload($object) { return $object.get("result"); @@ -41159,10 +34914,9 @@ export const plans = { }, AuthenticatePayloadInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -41171,7 +34925,8 @@ export const plans = { TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -41182,10 +34937,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -41197,7 +34951,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -41223,17 +34978,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, CompoundTypeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundType($object) { return $object.get("result"); @@ -41244,17 +34999,17 @@ export const plans = { }, CompoundTypeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -41265,17 +35020,17 @@ export const plans = { }, CompoundTypeSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -41283,7 +35038,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -41299,9 +35054,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -41317,17 +35070,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, PostWithSuffixPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -41335,7 +35088,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -41351,9 +35104,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -41369,84 +35120,88 @@ export const plans = { }, PostWithSuffixInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: undefined, suffix: undefined }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, ComptypeInput: { - "__inputPlan": function ComptypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, schedule: { - applyPlan($insert, val) { - $insert.set("schedule", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("schedule", bakedInputRuntime(schema, field.type, val)); + } }, isOptimised: { - applyPlan($insert, val) { - $insert.set("is_optimised", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_optimised", bakedInputRuntime(schema, field.type, val)); + } } }, MutationCompoundTypeArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -41457,17 +35212,17 @@ export const plans = { }, MutationCompoundTypeArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeArrayMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -41478,17 +35233,17 @@ export const plans = { }, CompoundTypeArrayMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, PostManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, posts($object) { return $object.get("result"); @@ -41499,17 +35254,17 @@ export const plans = { }, PostManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, posts: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -41544,10 +35299,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -41555,7 +35309,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -41590,10 +35345,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -41601,7 +35355,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -41609,7 +35364,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -41625,9 +35380,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -41638,16 +35391,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -41658,16 +35411,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -41678,16 +35431,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionConnectionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -41698,16 +35451,16 @@ export const plans = { }, TypeFunctionConnectionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -41715,7 +35468,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -41731,9 +35484,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -41754,17 +35505,17 @@ export const plans = { }, TypeFunctionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, TypeFunctionListMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -41775,16 +35526,16 @@ export const plans = { }, TypeFunctionListMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateInputPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -41792,7 +35543,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -41808,9 +35559,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -41821,35 +35570,34 @@ export const plans = { }, CreateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, input: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, InputInput: { - "__inputPlan": function InputInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePatchPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -41857,7 +35605,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -41873,9 +35621,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -41886,35 +35632,34 @@ export const plans = { }, CreatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PatchInput: { - "__inputPlan": function PatchInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -41922,7 +35667,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -41938,9 +35683,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -41951,35 +35694,34 @@ export const plans = { }, CreateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reserved: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInput: { - "__inputPlan": function ReservedInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPatchRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -41987,7 +35729,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -42003,9 +35745,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -42016,35 +35756,34 @@ export const plans = { }, CreateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedPatchRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedPatchRecordInput: { - "__inputPlan": function ReservedPatchRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedInputRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -42052,7 +35791,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -42068,9 +35807,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -42081,35 +35818,34 @@ export const plans = { }, CreateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedInputRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInputRecordInput: { - "__inputPlan": function ReservedInputRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateDefaultValuePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -42117,7 +35853,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -42133,9 +35869,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -42146,42 +35880,42 @@ export const plans = { }, CreateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, defaultValue: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, DefaultValueInput: { - "__inputPlan": function DefaultValueInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, CreateForeignKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, foreignKey($object) { return $object.get("result"); @@ -42203,49 +35937,50 @@ export const plans = { }, CreateForeignKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, foreignKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ForeignKeyInput: { - "__inputPlan": function ForeignKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey1: { - applyPlan($insert, val) { - $insert.set("compound_key_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_1", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey2: { - applyPlan($insert, val) { - $insert.set("compound_key_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNoPrimaryKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -42256,42 +35991,42 @@ export const plans = { }, CreateNoPrimaryKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, noPrimaryKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NoPrimaryKeyInput: { - "__inputPlan": function NoPrimaryKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTestviewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, testview($object) { return $object.get("result"); @@ -42302,49 +36037,50 @@ export const plans = { }, CreateTestviewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, testview: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TestviewInput: { - "__inputPlan": function TestviewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, testviewid: { - applyPlan($insert, val) { - $insert.set("testviewid", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("testviewid", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -42352,7 +36088,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -42368,9 +36104,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -42381,42 +36115,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -42424,7 +36158,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -42440,9 +36174,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -42458,42 +36190,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateViewTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -42501,7 +36233,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -42517,9 +36249,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -42530,49 +36260,50 @@ export const plans = { }, CreateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, viewTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ViewTableInput: { - "__inputPlan": function ViewTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -42580,7 +36311,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -42596,9 +36327,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -42619,49 +36348,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable1Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -42669,7 +36399,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -42685,9 +36415,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -42698,56 +36426,58 @@ export const plans = { }, CreateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable1: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable1Input: { - "__inputPlan": function SimilarTable1Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable2Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -42755,7 +36485,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -42771,9 +36501,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -42784,56 +36512,58 @@ export const plans = { }, CreateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable2: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable2Input: { - "__inputPlan": function SimilarTable2Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, CreateUpdatableViewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, updatableView($object) { return $object.get("result"); @@ -42844,56 +36574,58 @@ export const plans = { }, CreateUpdatableViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, updatableView: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UpdatableViewInput: { - "__inputPlan": function UpdatableViewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, x: { - applyPlan($insert, val) { - $insert.set("x", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("x", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } }, constant: { - applyPlan($insert, val) { - $insert.set("constant", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constant", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -42901,7 +36633,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -42917,9 +36649,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -42930,56 +36660,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -42990,49 +36722,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -43040,7 +36773,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -43056,9 +36789,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -43074,56 +36805,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -43131,7 +36864,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -43147,9 +36880,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -43160,42 +36891,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -43203,7 +36934,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -43219,9 +36950,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -43237,23 +36966,23 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -43261,7 +36990,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -43277,9 +37006,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -43290,117 +37017,125 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, CreateListPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -43408,7 +37143,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -43424,9 +37159,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -43437,119 +37170,130 @@ export const plans = { }, CreateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, list: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ListInput: { - "__inputPlan": function ListInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -43557,7 +37301,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -43573,9 +37317,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -43596,365 +37338,411 @@ export const plans = { }, CreateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, type: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TypeInput: { - "__inputPlan": function TypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, BigFloatRangeInput: { @@ -43982,29 +37770,30 @@ export const plans = { inclusive: undefined }, NestedCompoundTypeInput: { - "__inputPlan": function NestedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, bazBuz: { - applyPlan($insert, val) { - $insert.set("baz_buz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("baz_buz", bakedInputRuntime(schema, field.type, val)); + } } }, PointInput: { @@ -44014,7 +37803,8 @@ export const plans = { UpdateInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -44022,7 +37812,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44038,9 +37828,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44051,48 +37839,50 @@ export const plans = { }, UpdateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, InputPatch: { - "__inputPlan": function InputPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -44100,7 +37890,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44116,9 +37906,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44129,48 +37917,50 @@ export const plans = { }, UpdatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PatchPatch: { - "__inputPlan": function PatchPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -44178,7 +37968,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44194,9 +37984,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44207,48 +37995,50 @@ export const plans = { }, UpdateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatch: { - "__inputPlan": function ReservedPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -44256,7 +38046,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44272,9 +38062,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44285,48 +38073,50 @@ export const plans = { }, UpdateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatchRecordPatch: { - "__inputPlan": function ReservedPatchRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -44334,7 +38124,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44350,9 +38140,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44363,48 +38151,50 @@ export const plans = { }, UpdateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedInputRecordPatch: { - "__inputPlan": function ReservedInputRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -44412,7 +38202,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44428,9 +38218,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44441,55 +38229,58 @@ export const plans = { }, UpdateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DefaultValuePatch: { - "__inputPlan": function DefaultValuePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -44500,41 +38291,43 @@ export const plans = { }, UpdateNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, noPrimaryKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NoPrimaryKeyPatch: { - "__inputPlan": function NoPrimaryKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -44542,7 +38335,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44558,9 +38351,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44571,55 +38362,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -44627,7 +38421,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44643,9 +38437,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44661,55 +38453,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -44717,7 +38512,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44733,9 +38528,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44746,62 +38539,66 @@ export const plans = { }, UpdateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ViewTablePatch: { - "__inputPlan": function ViewTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -44809,7 +38606,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44825,9 +38622,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44848,63 +38643,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -44912,7 +38711,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44928,9 +38727,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44941,69 +38738,74 @@ export const plans = { }, UpdateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable1Patch: { - "__inputPlan": function SimilarTable1Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -45011,7 +38813,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45027,9 +38829,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45040,69 +38840,74 @@ export const plans = { }, UpdateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable2Patch: { - "__inputPlan": function SimilarTable2Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -45110,7 +38915,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45126,9 +38931,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45139,69 +38942,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -45209,7 +39017,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45225,9 +39033,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45243,83 +39049,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -45327,7 +39139,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45343,9 +39155,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45356,55 +39166,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -45412,7 +39225,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45428,9 +39241,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45446,83 +39257,90 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -45530,7 +39348,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45546,9 +39364,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45559,132 +39375,145 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -45692,7 +39521,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45708,9 +39537,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45721,132 +39548,146 @@ export const plans = { }, UpdateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ListPatch: { - "__inputPlan": function ListPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -45854,7 +39695,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45870,9 +39711,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45893,384 +39732,434 @@ export const plans = { }, UpdateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TypePatch: { - "__inputPlan": function TypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -46283,7 +40172,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46299,9 +40188,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46312,16 +40199,16 @@ export const plans = { }, DeleteInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -46329,7 +40216,8 @@ export const plans = { DeletePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -46342,7 +40230,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46358,9 +40246,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46371,16 +40257,16 @@ export const plans = { }, DeletePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -46388,7 +40274,8 @@ export const plans = { DeleteReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -46401,7 +40288,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46417,9 +40304,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46430,16 +40315,16 @@ export const plans = { }, DeleteReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -46447,7 +40332,8 @@ export const plans = { DeleteReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -46460,7 +40346,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46476,9 +40362,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46489,16 +40373,16 @@ export const plans = { }, DeleteReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -46506,7 +40390,8 @@ export const plans = { DeleteReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -46519,7 +40404,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46535,9 +40420,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46548,16 +40431,16 @@ export const plans = { }, DeleteReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -46565,7 +40448,8 @@ export const plans = { DeleteDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -46578,7 +40462,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46594,9 +40478,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46607,16 +40489,16 @@ export const plans = { }, DeleteDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -46624,7 +40506,8 @@ export const plans = { DeleteNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -46635,8 +40518,8 @@ export const plans = { }, DeleteNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -46644,7 +40527,8 @@ export const plans = { DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -46657,7 +40541,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46673,9 +40557,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46686,16 +40568,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -46703,7 +40585,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -46716,7 +40599,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46732,9 +40615,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46750,16 +40631,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -46767,7 +40648,8 @@ export const plans = { DeleteViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -46780,7 +40662,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46796,9 +40678,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46809,16 +40689,16 @@ export const plans = { }, DeleteViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -46826,7 +40706,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -46839,7 +40720,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46855,9 +40736,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46878,16 +40757,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -46896,7 +40775,8 @@ export const plans = { DeleteSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -46909,7 +40789,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46925,9 +40805,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46938,16 +40816,16 @@ export const plans = { }, DeleteSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -46955,7 +40833,8 @@ export const plans = { DeleteSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -46968,7 +40847,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46984,9 +40863,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46997,16 +40874,16 @@ export const plans = { }, DeleteSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -47014,7 +40891,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -47027,7 +40905,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47043,9 +40921,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47056,16 +40932,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -47073,7 +40949,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -47086,7 +40963,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47102,9 +40979,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47120,24 +40995,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -47145,7 +41020,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -47158,7 +41034,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47174,9 +41050,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47187,16 +41061,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -47204,7 +41078,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -47217,7 +41092,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47233,9 +41108,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47251,16 +41124,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -47268,7 +41141,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -47281,7 +41155,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47297,9 +41171,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47310,24 +41182,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined @@ -47335,7 +41207,8 @@ export const plans = { DeleteListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -47348,7 +41221,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47364,9 +41237,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47377,16 +41248,16 @@ export const plans = { }, DeleteListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -47394,7 +41265,8 @@ export const plans = { DeleteTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -47407,7 +41279,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47423,9 +41295,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47446,16 +41316,16 @@ export const plans = { }, DeleteTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/indexes.index_expressions.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/indexes.index_expressions.1.export.mjs index 08eb348061..726fde8f50 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/indexes.index_expressions.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/indexes.index_expressions.1.export.mjs @@ -1,8 +1,7 @@ -import { PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, SafeError, access, assertEdgeCapableStep, assertPageInfoCapableStep, connection, constant, context, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue } from "grafast"; +import { PgExecutor, TYPES, assertPgClassSingleStep, makeRegistry, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, access, assertEdgeCapableStep, assertPageInfoCapableStep, connection, constant, context, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -77,7 +79,7 @@ const executor = new PgExecutor({ } }); const employeeIdentifier = sql.identifier("index_expressions", "employee"); -const spec_employee = { +const employeeCodec = recordCodec({ name: "employee", identifier: employeeIdentifier, attributes: { @@ -123,8 +125,7 @@ const spec_employee = { } }, executor: executor -}; -const employeeCodec = recordCodec(spec_employee); +}); const employeeUniques = [{ isPrimary: true, attributes: ["id"], @@ -192,6 +193,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_employeePgResource.get(spec); }, @@ -204,6 +208,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -226,26 +231,9 @@ const fetcher = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Employee); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } @@ -409,15 +397,15 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, employeeById(_$root, args) { return pgResource_employeePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, employee(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, allEmployees: { @@ -428,7 +416,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -437,7 +424,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -446,7 +432,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -455,7 +440,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -464,7 +448,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -473,22 +456,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EmployeesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -562,31 +541,21 @@ export const plans = { } }, EmployeesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { employeeUniques[0].attributes.forEach(attributeName => { - const attribute = employeeCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -595,19 +564,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { employeeUniques[0].attributes.forEach(attributeName => { - const attribute = employeeCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -616,11 +583,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -628,7 +592,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -638,11 +602,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -650,7 +611,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -660,11 +621,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -672,7 +630,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -682,11 +640,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -694,7 +649,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -704,11 +659,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -716,7 +668,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -726,11 +678,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -738,7 +687,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -747,8 +696,8 @@ export const plans = { }, EmployeeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -761,17 +710,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_employee.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -784,17 +731,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_employee.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -807,13 +752,11 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_employee.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } } }; diff --git a/postgraphile/postgraphile/__tests__/schema/v4/inflect-core.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/inflect-core.1.export.mjs index 563d028b2b..58e75e02dd 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/inflect-core.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/inflect-core.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Q", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -478,7 +480,7 @@ const textArrayCodec = listOfCodec(TYPES.text, { name: "textArray" }); const nonUpdatableViewIdentifier = sql.identifier("a", "non_updatable_view"); -const spec_nonUpdatableView = { +const nonUpdatableViewCodec = recordCodec({ name: "nonUpdatableView", identifier: nonUpdatableViewIdentifier, attributes: { @@ -506,10 +508,9 @@ const spec_nonUpdatableView = { } }, executor: executor -}; -const nonUpdatableViewCodec = recordCodec(spec_nonUpdatableView); +}); const inputsIdentifier = sql.identifier("a", "inputs"); -const spec_inputs = { +const inputsCodec = recordCodec({ name: "inputs", identifier: inputsIdentifier, attributes: { @@ -537,10 +538,9 @@ const spec_inputs = { } }, executor: executor -}; -const inputsCodec = recordCodec(spec_inputs); +}); const patchsIdentifier = sql.identifier("a", "patchs"); -const spec_patchs = { +const patchsCodec = recordCodec({ name: "patchs", identifier: patchsIdentifier, attributes: { @@ -568,10 +568,9 @@ const spec_patchs = { } }, executor: executor -}; -const patchsCodec = recordCodec(spec_patchs); +}); const reservedIdentifier = sql.identifier("a", "reserved"); -const spec_reserved = { +const reservedCodec = recordCodec({ name: "reserved", identifier: reservedIdentifier, attributes: { @@ -599,10 +598,9 @@ const spec_reserved = { } }, executor: executor -}; -const reservedCodec = recordCodec(spec_reserved); +}); const reservedPatchsIdentifier = sql.identifier("a", "reservedPatchs"); -const spec_reservedPatchs = { +const reservedPatchsCodec = recordCodec({ name: "reservedPatchs", identifier: reservedPatchsIdentifier, attributes: { @@ -630,10 +628,9 @@ const spec_reservedPatchs = { } }, executor: executor -}; -const reservedPatchsCodec = recordCodec(spec_reservedPatchs); +}); const reservedInputIdentifier = sql.identifier("a", "reserved_input"); -const spec_reservedInput = { +const reservedInputCodec = recordCodec({ name: "reservedInput", identifier: reservedInputIdentifier, attributes: { @@ -661,10 +658,9 @@ const spec_reservedInput = { } }, executor: executor -}; -const reservedInputCodec = recordCodec(spec_reservedInput); +}); const defaultValueIdentifier = sql.identifier("a", "default_value"); -const spec_defaultValue = { +const defaultValueCodec = recordCodec({ name: "defaultValue", identifier: defaultValueIdentifier, attributes: { @@ -701,10 +697,9 @@ const spec_defaultValue = { } }, executor: executor -}; -const defaultValueCodec = recordCodec(spec_defaultValue); +}); const foreignKeyIdentifier = sql.identifier("a", "foreign_key"); -const spec_foreignKey = { +const foreignKeyCodec = recordCodec({ name: "foreignKey", identifier: foreignKeyIdentifier, attributes: { @@ -750,10 +745,9 @@ const spec_foreignKey = { } }, executor: executor -}; -const foreignKeyCodec = recordCodec(spec_foreignKey); +}); const noPrimaryKeyIdentifier = sql.identifier("a", "no_primary_key"); -const spec_noPrimaryKey = { +const noPrimaryKeyCodec = recordCodec({ name: "noPrimaryKey", identifier: noPrimaryKeyIdentifier, attributes: { @@ -790,10 +784,9 @@ const spec_noPrimaryKey = { } }, executor: executor -}; -const noPrimaryKeyCodec = recordCodec(spec_noPrimaryKey); +}); const testviewIdentifier = sql.identifier("a", "testview"); -const spec_testview = { +const testviewCodec = recordCodec({ name: "testview", identifier: testviewIdentifier, attributes: { @@ -839,8 +832,7 @@ const spec_testview = { } }, executor: executor -}; -const testviewCodec = recordCodec(spec_testview); +}); const uniqueForeignKeyIdentifier = sql.identifier("a", "unique_foreign_key"); const spec_uniqueForeignKey = { name: "uniqueForeignKey", @@ -884,7 +876,7 @@ const spec_uniqueForeignKey = { }; const uniqueForeignKeyCodec = recordCodec(spec_uniqueForeignKey); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -921,10 +913,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -964,8 +955,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -1007,7 +997,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const viewTableIdentifier = sql.identifier("a", "view_table"); -const spec_viewTable = { +const viewTableCodec = recordCodec({ name: "viewTable", identifier: viewTableIdentifier, attributes: { @@ -1053,10 +1043,9 @@ const spec_viewTable = { } }, executor: executor -}; -const viewTableCodec = recordCodec(spec_viewTable); +}); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -1102,10 +1091,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const similarTable1Identifier = sql.identifier("a", "similar_table_1"); -const spec_similarTable1 = { +const similarTable1Codec = recordCodec({ name: "similarTable1", identifier: similarTable1Identifier, attributes: { @@ -1160,10 +1148,9 @@ const spec_similarTable1 = { } }, executor: executor -}; -const similarTable1Codec = recordCodec(spec_similarTable1); +}); const similarTable2Identifier = sql.identifier("a", "similar_table_2"); -const spec_similarTable2 = { +const similarTable2Codec = recordCodec({ name: "similarTable2", identifier: similarTable2Identifier, attributes: { @@ -1218,10 +1205,9 @@ const spec_similarTable2 = { } }, executor: executor -}; -const similarTable2Codec = recordCodec(spec_similarTable2); +}); const updatableViewIdentifier = sql.identifier("b", "updatable_view"); -const spec_updatableView = { +const updatableViewCodec = recordCodec({ name: "updatableView", identifier: updatableViewIdentifier, attributes: { @@ -1278,10 +1264,9 @@ const spec_updatableView = { } }, executor: executor -}; -const updatableViewCodec = recordCodec(spec_updatableView); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -1336,8 +1321,7 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const uuidArrayCodec = listOfCodec(TYPES.uuid, { extensions: { pg: { @@ -1354,7 +1338,7 @@ const uuidArrayCodec = listOfCodec(TYPES.uuid, { name: "uuidArray" }); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -1400,10 +1384,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -1458,8 +1441,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const jwtTokenIdentifier = sql.identifier("b", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -1541,7 +1523,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -1578,8 +1560,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const authPayloadIdentifier = sql.identifier("b", "auth_payload"); const authPayloadCodec = recordCodec({ name: "authPayload", @@ -1917,7 +1898,7 @@ const comptypeArrayCodec = listOfCodec(comptypeCodec, { description: undefined, name: "comptypeArray" }); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -1990,8 +1971,7 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const registryConfig_pgCodecs_QueryOutputTwoRowsRecord_QueryOutputTwoRowsRecord = recordCodec({ name: "QueryOutputTwoRowsRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2151,7 +2131,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -2273,8 +2253,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2592,7 +2571,7 @@ const byteaArrayCodec = listOfCodec(TYPES.bytea, { description: undefined, name: "byteaArray" }); -const spec_lists = { +const listsCodec = recordCodec({ name: "lists", identifier: listsIdentifier, attributes: { @@ -2728,8 +2707,7 @@ const spec_lists = { } }, executor: executor -}; -const listsCodec = recordCodec(spec_lists); +}); const typesIdentifier = sql.identifier("b", "types"); const anIntCodec = domainOfCodec(TYPES.int, "anInt", sql.identifier("a", "an_int"), { description: undefined, @@ -9193,6 +9171,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_inputsPgResource.get(spec); }, @@ -9212,6 +9193,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_patchsPgResource.get(spec); }, @@ -9231,6 +9215,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPgResource.get(spec); }, @@ -9250,6 +9237,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPatchsPgResource.get(spec); }, @@ -9269,6 +9259,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reserved_inputPgResource.get(spec); }, @@ -9288,6 +9281,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_default_valuePgResource.get(spec); }, @@ -9307,6 +9303,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -9326,6 +9325,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -9345,6 +9347,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_view_tablePgResource.get(spec); }, @@ -9365,6 +9370,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -9384,6 +9392,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_1PgResource.get(spec); }, @@ -9403,6 +9414,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_2PgResource.get(spec); }, @@ -9422,6 +9436,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -9441,6 +9458,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -9460,6 +9480,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -9479,6 +9502,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -9498,6 +9524,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -9517,6 +9546,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_listsPgResource.get(spec); }, @@ -9536,6 +9568,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_typesPgResource.get(spec); }, @@ -9546,553 +9581,96 @@ const nodeIdHandlerByTypeName = { }; const resource_no_primary_keyPgResource = registry.pgResources["no_primary_key"]; const resource_unique_foreign_keyPgResource = registry.pgResources["unique_foreign_key"]; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_query_interval_set = []; +const makeArgs_query_interval_set = (args, path = []) => argDetailsSimple_query_interval_set.map(details => makeArg(path, args, details)); const resource_query_interval_setPgResource = registry.pgResources["query_interval_set"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_query_interval_set(args); return resource_query_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple7 = []; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 argDetailsSimple_static_big_integer = []; +const makeArgs_static_big_integer = (args, path = []) => argDetailsSimple_static_big_integer.map(details => makeArg(path, args, details)); const resource_static_big_integerPgResource = registry.pgResources["static_big_integer"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_static_big_integer(args); return resource_static_big_integerPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple10 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple11 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple12 = [{ +const argDetailsSimple_add_1_query = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -10105,52 +9683,9 @@ const argDetailsSimple12 = [{ required: true, fetcher: null }]; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_query = (args, path = []) => argDetailsSimple_add_1_query.map(details => makeArg(path, args, details)); const resource_add_1_queryPgResource = registry.pgResources["add_1_query"]; -const argDetailsSimple13 = [{ +const argDetailsSimple_add_2_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10163,52 +9698,9 @@ const argDetailsSimple13 = [{ required: false, fetcher: null }]; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 makeArgs_add_2_query = (args, path = []) => argDetailsSimple_add_2_query.map(details => makeArg(path, args, details)); const resource_add_2_queryPgResource = registry.pgResources["add_2_query"]; -const argDetailsSimple14 = [{ +const argDetailsSimple_add_3_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10221,52 +9713,9 @@ const argDetailsSimple14 = [{ required: true, fetcher: null }]; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_query = (args, path = []) => argDetailsSimple_add_3_query.map(details => makeArg(path, args, details)); const resource_add_3_queryPgResource = registry.pgResources["add_3_query"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_add_4_query = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10279,52 +9728,9 @@ const argDetailsSimple15 = [{ required: false, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_query = (args, path = []) => argDetailsSimple_add_4_query.map(details => makeArg(path, args, details)); const resource_add_4_queryPgResource = registry.pgResources["add_4_query"]; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -10337,240 +9743,25 @@ const argDetailsSimple16 = [{ required: true, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple19 = []; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple20 = []; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10589,52 +9780,9 @@ const argDetailsSimple21 = [{ required: false, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_1PgResource = registry.pgResources["optional_missing_middle_1"]; -const argDetailsSimple22 = [{ +const argDetailsSimple_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10653,52 +9801,9 @@ const argDetailsSimple22 = [{ required: false, fetcher: null }]; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 makeArgs_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_2PgResource = registry.pgResources["optional_missing_middle_2"]; -const argDetailsSimple23 = [{ +const argDetailsSimple_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10717,52 +9822,9 @@ const argDetailsSimple23 = [{ required: false, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_3PgResource = registry.pgResources["optional_missing_middle_3"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10781,52 +9843,9 @@ const argDetailsSimple24 = [{ required: false, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_4PgResource = registry.pgResources["optional_missing_middle_4"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10845,98 +9864,12 @@ const argDetailsSimple25 = [{ required: false, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_5PgResource = registry.pgResources["optional_missing_middle_5"]; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple27 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -10955,56 +9888,13 @@ const argDetailsSimple27 = [{ required: true, fetcher: null }]; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple28 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -11023,194 +9913,22 @@ const argDetailsSimple28 = [{ required: false, fetcher: null }]; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_query_interval_array = []; +const makeArgs_query_interval_array = (args, path = []) => argDetailsSimple_query_interval_array.map(details => makeArg(path, args, details)); const resource_query_interval_arrayPgResource = registry.pgResources["query_interval_array"]; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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 argDetailsSimple_query_text_array = []; +const makeArgs_query_text_array = (args, path = []) => argDetailsSimple_query_text_array.map(details => makeArg(path, args, details)); const resource_query_text_arrayPgResource = registry.pgResources["query_text_array"]; -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple32 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -11247,104 +9965,18 @@ const argDetailsSimple32 = [{ required: true, fetcher: null }]; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple33 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -11363,310 +9995,52 @@ const argDetailsSimple34 = [{ required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple35 = []; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs35(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple36 = [{ +const argDetailsSimple_compound_type_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_compound_type_query = (args, path = []) => argDetailsSimple_compound_type_query.map(details => makeArg(path, args, details)); const resource_compound_type_queryPgResource = registry.pgResources["compound_type_query"]; -const argDetailsSimple37 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_query_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[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 makeArgs_query_compound_type_array = (args, path = []) => argDetailsSimple_query_compound_type_array.map(details => makeArg(path, args, details)); const resource_query_compound_type_arrayPgResource = registry.pgResources["query_compound_type_array"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_compound_type_array_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_compound_type_array_query = (args, path = []) => argDetailsSimple_compound_type_array_query.map(details => makeArg(path, args, details)); const resource_compound_type_array_queryPgResource = registry.pgResources["compound_type_array_query"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11679,52 +10053,9 @@ const argDetailsSimple40 = [{ required: true, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11737,473 +10068,70 @@ const argDetailsSimple41 = [{ required: true, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs41(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple42 = []; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs42(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple43 = []; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs44(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs12 = ($root, args, _info) => { - const selectArgs = makeArgs45(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs13 = ($root, args, _info) => { - const selectArgs = makeArgs46(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_type_function_connection = []; +const makeArgs_type_function_connection = (args, path = []) => argDetailsSimple_type_function_connection.map(details => makeArg(path, args, details)); const resource_type_function_connectionPgResource = registry.pgResources["type_function_connection"]; const getSelectPlanFromParentAndArgs14 = ($root, args, _info) => { - const selectArgs = makeArgs47(args); + const selectArgs = makeArgs_type_function_connection(args); return resource_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_type_function = (args, path = []) => argDetailsSimple_type_function.map(details => makeArg(path, args, details)); const resource_type_functionPgResource = registry.pgResources["type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_type_function_list = []; +const makeArgs_type_function_list = (args, path = []) => argDetailsSimple_type_function_list.map(details => makeArg(path, args, details)); const resource_type_function_listPgResource = registry.pgResources["type_function_list"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -12378,347 +10306,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple53 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple54 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple55 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple56 = []; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12737,52 +10364,9 @@ const argDetailsSimple57 = [{ required: false, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12801,52 +10385,9 @@ const argDetailsSimple58 = [{ required: false, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12865,52 +10406,9 @@ const argDetailsSimple59 = [{ required: false, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12929,52 +10427,9 @@ const argDetailsSimple60 = [{ required: false, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12993,52 +10448,9 @@ const argDetailsSimple61 = [{ required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -13051,194 +10463,22 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs65(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13253,82 +10493,33 @@ const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple66 = []; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs66(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13343,176 +10534,41 @@ const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple67 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple68 = []; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple69 = []; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -13523,57 +10579,14 @@ const coerce = string => { } return string; }; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_post_computed_interval_set = []; +const makeArgs_post_computed_interval_set = (args, path = []) => argDetailsSimple_post_computed_interval_set.map(details => makeArg(path, args, details)); const resource_post_computed_interval_setPgResource = registry.pgResources["post_computed_interval_set"]; const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs70(args); + const extraSelectArgs = makeArgs_post_computed_interval_set(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13588,228 +10601,50 @@ const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (resource_post_computed_interval_setPgResource.isUnique && !resource_post_computed_interval_setPgResource.codec.attributes && typeof resource_post_computed_interval_setPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${resource_post_computed_interval_setPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_setPgResource.from, resource_post_computed_interval_setPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_post_computed_interval_array = []; +const makeArgs_post_computed_interval_array = (args, path = []) => argDetailsSimple_post_computed_interval_array.map(details => makeArg(path, args, details)); const resource_post_computed_interval_arrayPgResource = registry.pgResources["post_computed_interval_array"]; -const argDetailsSimple72 = []; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 argDetailsSimple_post_computed_text_array = []; +const makeArgs_post_computed_text_array = (args, path = []) => argDetailsSimple_post_computed_text_array.map(details => makeArg(path, args, details)); const resource_post_computed_text_arrayPgResource = registry.pgResources["post_computed_text_array"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_post_computed_with_optional_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: false, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_post_computed_with_optional_arg = (args, path = []) => argDetailsSimple_post_computed_with_optional_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_optional_argPgResource = registry.pgResources["post_computed_with_optional_arg"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_post_computed_with_required_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_post_computed_with_required_arg = (args, path = []) => argDetailsSimple_post_computed_with_required_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_required_argPgResource = registry.pgResources["post_computed_with_required_arg"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_post_headline_trimmed = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13822,52 +10657,9 @@ const argDetailsSimple75 = [{ required: false, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_post_headline_trimmed = (args, path = []) => argDetailsSimple_post_headline_trimmed.map(details => makeArg(path, args, details)); const resource_post_headline_trimmedPgResource = registry.pgResources["post_headline_trimmed"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_post_headline_trimmed_no_defaults = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13880,52 +10672,9 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_post_headline_trimmed_no_defaults = (args, path = []) => argDetailsSimple_post_headline_trimmed_no_defaults.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_no_defaultsPgResource = registry.pgResources["post_headline_trimmed_no_defaults"]; -const argDetailsSimple77 = [{ +const argDetailsSimple_post_headline_trimmed_strict = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13938,102 +10687,16 @@ const argDetailsSimple77 = [{ required: false, fetcher: null }]; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 makeArgs_post_headline_trimmed_strict = (args, path = []) => argDetailsSimple_post_headline_trimmed_strict.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_strictPgResource = registry.pgResources["post_headline_trimmed_strict"]; -const argDetailsSimple78 = [{ +const argDetailsSimple_post_computed_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 makeArgs_post_computed_compound_type_array = (args, path = []) => argDetailsSimple_post_computed_compound_type_array.map(details => makeArg(path, args, details)); const resource_post_computed_compound_type_arrayPgResource = registry.pgResources["post_computed_compound_type_array"]; const resource_frmcdc_comptypePgResource = registry.pgResources["frmcdc_comptype"]; const resource_frmcdc_nestedCompoundTypePgResource = registry.pgResources["frmcdc_nestedCompoundType"]; @@ -14091,641 +10754,82 @@ const parseValueLiteral = (ast, variables) => { return undefined; } }; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple80 = []; -const makeArgs80 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple80[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple81 = []; -const makeArgs81 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple81[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple82 = []; -const makeArgs82 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple82[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple83 = []; -const makeArgs83 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple83[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple84 = []; -const makeArgs84 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple84[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 argDetailsSimple_return_void_mutation = []; +const makeArgs_return_void_mutation = (args, path = []) => argDetailsSimple_return_void_mutation.map(details => makeArg(path, args, details)); const resource_return_void_mutationPgResource = registry.pgResources["return_void_mutation"]; -const argDetailsSimple85 = []; -const makeArgs85 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple85[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 argDetailsSimple_mutation_interval_set = []; +const makeArgs_mutation_interval_set = (args, path = []) => argDetailsSimple_mutation_interval_set.map(details => makeArg(path, args, details)); const resource_mutation_interval_setPgResource = registry.pgResources["mutation_interval_set"]; -const argDetailsSimple86 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs86 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple86[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple87 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs87 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple87[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple88 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs88 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple88[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple89 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs89 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple89[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple90 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs90 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple90[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple91 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs91 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple91[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple92 = [{ +const argDetailsSimple_add_1_mutation = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14738,52 +10842,9 @@ const argDetailsSimple92 = [{ required: true, fetcher: null }]; -const makeArgs92 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple92[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_mutation = (args, path = []) => argDetailsSimple_add_1_mutation.map(details => makeArg(path, args, details)); const resource_add_1_mutationPgResource = registry.pgResources["add_1_mutation"]; -const argDetailsSimple93 = [{ +const argDetailsSimple_add_2_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14796,52 +10857,9 @@ const argDetailsSimple93 = [{ required: false, fetcher: null }]; -const makeArgs93 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple93[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 makeArgs_add_2_mutation = (args, path = []) => argDetailsSimple_add_2_mutation.map(details => makeArg(path, args, details)); const resource_add_2_mutationPgResource = registry.pgResources["add_2_mutation"]; -const argDetailsSimple94 = [{ +const argDetailsSimple_add_3_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14854,52 +10872,9 @@ const argDetailsSimple94 = [{ required: true, fetcher: null }]; -const makeArgs94 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple94[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_mutation = (args, path = []) => argDetailsSimple_add_3_mutation.map(details => makeArg(path, args, details)); const resource_add_3_mutationPgResource = registry.pgResources["add_3_mutation"]; -const argDetailsSimple95 = [{ +const argDetailsSimple_add_4_mutation = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14912,52 +10887,9 @@ const argDetailsSimple95 = [{ required: false, fetcher: null }]; -const makeArgs95 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple95[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation = (args, path = []) => argDetailsSimple_add_4_mutation.map(details => makeArg(path, args, details)); const resource_add_4_mutationPgResource = registry.pgResources["add_4_mutation"]; -const argDetailsSimple96 = [{ +const argDetailsSimple_add_4_mutation_error = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14970,52 +10902,9 @@ const argDetailsSimple96 = [{ required: false, fetcher: null }]; -const makeArgs96 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple96[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation_error = (args, path = []) => argDetailsSimple_add_4_mutation_error.map(details => makeArg(path, args, details)); const resource_add_4_mutation_errorPgResource = registry.pgResources["add_4_mutation_error"]; -const argDetailsSimple97 = [{ +const argDetailsSimple_mult_1 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15028,52 +10917,9 @@ const argDetailsSimple97 = [{ required: true, fetcher: null }]; -const makeArgs97 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple97[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_1 = (args, path = []) => argDetailsSimple_mult_1.map(details => makeArg(path, args, details)); const resource_mult_1PgResource = registry.pgResources["mult_1"]; -const argDetailsSimple98 = [{ +const argDetailsSimple_mult_2 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15086,52 +10932,9 @@ const argDetailsSimple98 = [{ required: true, fetcher: null }]; -const makeArgs98 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple98[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_2 = (args, path = []) => argDetailsSimple_mult_2.map(details => makeArg(path, args, details)); const resource_mult_2PgResource = registry.pgResources["mult_2"]; -const argDetailsSimple99 = [{ +const argDetailsSimple_mult_3 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15144,52 +10947,9 @@ const argDetailsSimple99 = [{ required: true, fetcher: null }]; -const makeArgs99 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple99[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_3 = (args, path = []) => argDetailsSimple_mult_3.map(details => makeArg(path, args, details)); const resource_mult_3PgResource = registry.pgResources["mult_3"]; -const argDetailsSimple100 = [{ +const argDetailsSimple_mult_4 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15202,52 +10962,9 @@ const argDetailsSimple100 = [{ required: true, fetcher: null }]; -const makeArgs100 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple100[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_4 = (args, path = []) => argDetailsSimple_mult_4.map(details => makeArg(path, args, details)); const resource_mult_4PgResource = registry.pgResources["mult_4"]; -const argDetailsSimple101 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -15260,190 +10977,18 @@ const argDetailsSimple101 = [{ required: true, fetcher: null }]; -const makeArgs101 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple101[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple102 = []; -const makeArgs102 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple102[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple103 = []; -const makeArgs103 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple103[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple104 = []; -const makeArgs104 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple104[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple105 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -15462,294 +11007,36 @@ const argDetailsSimple105 = [{ required: true, fetcher: null }]; -const makeArgs105 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple105[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple106 = []; -const makeArgs106 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple106[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple107 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs107 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple107[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple108 = [{ +const argDetailsSimple_guid_fn = [{ graphqlArgName: "g", postgresArgName: "g", pgCodec: guidCodec, required: true, fetcher: null }]; -const makeArgs108 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple108[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 makeArgs_guid_fn = (args, path = []) => argDetailsSimple_guid_fn.map(details => makeArg(path, args, details)); const resource_guid_fnPgResource = registry.pgResources["guid_fn"]; -const argDetailsSimple109 = []; -const makeArgs109 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple109[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 argDetailsSimple_mutation_interval_array = []; +const makeArgs_mutation_interval_array = (args, path = []) => argDetailsSimple_mutation_interval_array.map(details => makeArg(path, args, details)); const resource_mutation_interval_arrayPgResource = registry.pgResources["mutation_interval_array"]; -const argDetailsSimple110 = []; -const makeArgs110 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple110[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 argDetailsSimple_mutation_text_array = []; +const makeArgs_mutation_text_array = (args, path = []) => argDetailsSimple_mutation_text_array.map(details => makeArg(path, args, details)); const resource_mutation_text_arrayPgResource = registry.pgResources["mutation_text_array"]; -const argDetailsSimple111 = [{ +const argDetailsSimple_list_bde_mutation = [{ graphqlArgName: "b", postgresArgName: "b", pgCodec: textArrayCodec, @@ -15768,98 +11055,12 @@ const argDetailsSimple111 = [{ required: true, fetcher: null }]; -const makeArgs111 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple111[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 makeArgs_list_bde_mutation = (args, path = []) => argDetailsSimple_list_bde_mutation.map(details => makeArg(path, args, details)); const resource_list_bde_mutationPgResource = registry.pgResources["list_bde_mutation"]; -const argDetailsSimple112 = []; -const makeArgs112 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple112[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 argDetailsSimple_authenticate_fail = []; +const makeArgs_authenticate_fail = (args, path = []) => argDetailsSimple_authenticate_fail.map(details => makeArg(path, args, details)); const resource_authenticate_failPgResource = registry.pgResources["authenticate_fail"]; -const argDetailsSimple113 = [{ +const argDetailsSimple_authenticate = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15878,196 +11079,24 @@ const argDetailsSimple113 = [{ required: true, fetcher: null }]; -const makeArgs113 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple113[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 makeArgs_authenticate = (args, path = []) => argDetailsSimple_authenticate.map(details => makeArg(path, args, details)); const resource_authenticatePgResource = registry.pgResources["authenticate"]; -const argDetailsSimple114 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs114 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple114[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple115 = []; -const makeArgs115 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple115[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple116 = []; -const makeArgs116 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple116[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple117 = [{ +const argDetailsSimple_authenticate_many = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16086,52 +11115,9 @@ const argDetailsSimple117 = [{ required: true, fetcher: null }]; -const makeArgs117 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple117[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 makeArgs_authenticate_many = (args, path = []) => argDetailsSimple_authenticate_many.map(details => makeArg(path, args, details)); const resource_authenticate_manyPgResource = registry.pgResources["authenticate_many"]; -const argDetailsSimple118 = [{ +const argDetailsSimple_authenticate_payload = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16150,52 +11136,9 @@ const argDetailsSimple118 = [{ required: true, fetcher: null }]; -const makeArgs118 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple118[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 makeArgs_authenticate_payload = (args, path = []) => argDetailsSimple_authenticate_payload.map(details => makeArg(path, args, details)); const resource_authenticate_payloadPgResource = registry.pgResources["authenticate_payload"]; -const argDetailsSimple119 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -16232,260 +11175,45 @@ const argDetailsSimple119 = [{ required: true, fetcher: null }]; -const makeArgs119 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple119[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple120 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs120 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple120[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple121 = [{ +const argDetailsSimple_compound_type_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs121 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple121[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 makeArgs_compound_type_mutation = (args, path = []) => argDetailsSimple_compound_type_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_mutationPgResource = registry.pgResources["compound_type_mutation"]; -const argDetailsSimple122 = [{ +const argDetailsSimple_compound_type_set_mutation = [{ 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 makeArgs_compound_type_set_mutation = (args, path = []) => argDetailsSimple_compound_type_set_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_set_mutationPgResource = registry.pgResources["compound_type_set_mutation"]; -const argDetailsSimple123 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, 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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple124 = [{ +const argDetailsSimple_post_with_suffix = [{ graphqlArgName: "post", postgresArgName: "post", pgCodec: postCodec, @@ -16498,208 +11226,36 @@ const argDetailsSimple124 = [{ required: true, fetcher: null }]; -const makeArgs124 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple124[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 makeArgs_post_with_suffix = (args, path = []) => argDetailsSimple_post_with_suffix.map(details => makeArg(path, args, details)); const resource_post_with_suffixPgResource = registry.pgResources["post_with_suffix"]; -const argDetailsSimple125 = [{ +const argDetailsSimple_mutation_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs125 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple125[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 makeArgs_mutation_compound_type_array = (args, path = []) => argDetailsSimple_mutation_compound_type_array.map(details => makeArg(path, args, details)); const resource_mutation_compound_type_arrayPgResource = registry.pgResources["mutation_compound_type_array"]; -const argDetailsSimple126 = [{ +const argDetailsSimple_compound_type_array_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs126 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple126[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 makeArgs_compound_type_array_mutation = (args, path = []) => argDetailsSimple_compound_type_array_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_array_mutationPgResource = registry.pgResources["compound_type_array_mutation"]; -const argDetailsSimple127 = [{ +const argDetailsSimple_post_many = [{ graphqlArgName: "posts", postgresArgName: "posts", pgCodec: postArrayCodec, required: true, fetcher: null }]; -const makeArgs127 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple127[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 makeArgs_post_many = (args, path = []) => argDetailsSimple_post_many.map(details => makeArg(path, args, details)); const resource_post_manyPgResource = registry.pgResources["post_many"]; -const argDetailsSimple128 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16712,52 +11268,9 @@ const argDetailsSimple128 = [{ required: true, fetcher: null }]; -const makeArgs128 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple128[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple129 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16770,483 +11283,182 @@ const argDetailsSimple129 = [{ required: true, fetcher: null }]; -const makeArgs129 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple129[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple130 = []; -const makeArgs130 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple130[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple131 = []; -const makeArgs131 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple131[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple132 = []; -const makeArgs132 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple132[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; -const argDetailsSimple133 = []; -const makeArgs133 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple133[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 argDetailsSimple_type_function_connection_mutation = []; +const makeArgs_type_function_connection_mutation = (args, path = []) => argDetailsSimple_type_function_connection_mutation.map(details => makeArg(path, args, details)); const resource_type_function_connection_mutationPgResource = registry.pgResources["type_function_connection_mutation"]; -const argDetailsSimple134 = [{ +const argDetailsSimple_type_function_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs134 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple134[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 makeArgs_type_function_mutation = (args, path = []) => argDetailsSimple_type_function_mutation.map(details => makeArg(path, args, details)); const resource_type_function_mutationPgResource = registry.pgResources["type_function_mutation"]; -const argDetailsSimple135 = []; -const makeArgs135 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple135[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 argDetailsSimple_type_function_list_mutation = []; +const makeArgs_type_function_list_mutation = (args, path = []) => argDetailsSimple_type_function_list_mutation.map(details => makeArg(path, args, details)); const resource_type_function_list_mutationPgResource = registry.pgResources["type_function_list_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs15 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs16 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs17 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs18 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs19 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const specFromArgs20 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs21 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs22 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs23 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs24 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs25 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs26 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs27 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs28 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs29 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs30 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs31 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs32 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs33 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs34 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs35 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs36 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs37 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs38 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const resource_frmcdc_jwtTokenPgResource = registry.pgResources["frmcdc_jwtToken"]; @@ -27722,131 +21934,131 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, inputById(_$root, args) { return pgResource_inputsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, patchById(_$root, args) { return pgResource_patchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedById(_$root, args) { return pgResource_reservedPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedPatchRecordById(_$root, args) { return pgResource_reservedPatchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedInputRecordById(_$root, args) { return pgResource_reserved_inputPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, defaultValueById(_$root, args) { return pgResource_default_valuePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, noPrimaryKeyById(_$root, args) { return resource_no_primary_keyPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, uniqueForeignKeyByCompoundKey1AndCompoundKey2(_$root, args) { return resource_unique_foreign_keyPgResource.get({ - compound_key_1: args.get("compoundKey1"), - compound_key_2: args.get("compoundKey2") + compound_key_1: args.getRaw("compoundKey1"), + compound_key_2: args.getRaw("compoundKey2") }); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, viewTableById(_$root, args) { return pgResource_view_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, similarTable1ById(_$root, args) { return pgResource_similar_table_1PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, similarTable2ById(_$root, args) { return pgResource_similar_table_2PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, listById(_$root, args) { return pgResource_listsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, typeById(_$root, args) { return pgResource_typesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -27863,7 +22075,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27872,7 +22083,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27881,7 +22091,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27890,7 +22099,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27899,7 +22107,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27908,11 +22115,11 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, queryIntervalSet: { @@ -27929,7 +22136,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27938,7 +22144,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27947,7 +22152,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27956,7 +22160,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27965,7 +22168,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27987,7 +22189,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27996,7 +22197,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28005,7 +22205,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28014,7 +22213,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28023,7 +22221,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28032,7 +22229,7 @@ export const plans = { } }, funcInOut($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -28049,7 +22246,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28058,7 +22254,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28067,7 +22262,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28076,7 +22270,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28085,7 +22278,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28094,35 +22286,35 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, add1Query($root, args, _info) { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_add_1_query(args); return resource_add_1_queryPgResource.execute(selectArgs); }, add2Query($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_add_2_query(args); return resource_add_2_queryPgResource.execute(selectArgs); }, add3Query($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_add_3_query(args); return resource_add_3_queryPgResource.execute(selectArgs); }, add4Query($root, args, _info) { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_add_4_query(args); return resource_add_4_queryPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -28139,7 +22331,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28148,7 +22339,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28157,7 +22347,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28166,7 +22355,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28175,7 +22363,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28184,19 +22371,18 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28205,7 +22391,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28214,27 +22399,27 @@ export const plans = { } }, optionalMissingMiddle1($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_optional_missing_middle_1(args); return resource_optional_missing_middle_1PgResource.execute(selectArgs); }, optionalMissingMiddle2($root, args, _info) { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_optional_missing_middle_2(args); return resource_optional_missing_middle_2PgResource.execute(selectArgs); }, optionalMissingMiddle3($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_optional_missing_middle_3(args); return resource_optional_missing_middle_3PgResource.execute(selectArgs); }, optionalMissingMiddle4($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_optional_missing_middle_4(args); return resource_optional_missing_middle_4PgResource.execute(selectArgs); }, optionalMissingMiddle5($root, args, _info) { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_optional_missing_middle_5(args); return resource_optional_missing_middle_5PgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -28251,7 +22436,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28260,7 +22444,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28269,7 +22452,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28278,7 +22460,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28287,7 +22468,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28309,7 +22489,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28318,7 +22497,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28327,7 +22505,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28336,7 +22513,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28345,7 +22521,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28354,27 +22529,27 @@ export const plans = { } }, queryIntervalArray($root, args, _info) { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_query_interval_array(args); return resource_query_interval_arrayPgResource.execute(selectArgs); }, queryTextArray($root, args, _info) { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_query_text_array(args); return resource_query_text_arrayPgResource.execute(selectArgs); }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs31(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs32(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs33(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs34(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -28391,7 +22566,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28400,7 +22574,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28409,7 +22582,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28418,7 +22590,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28427,7 +22598,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28436,23 +22606,23 @@ export const plans = { } }, compoundTypeQuery($root, args, _info) { - const selectArgs = makeArgs36(args); + const selectArgs = makeArgs_compound_type_query(args); return resource_compound_type_queryPgResource.execute(selectArgs); }, tableQuery($root, args, _info) { - const selectArgs = makeArgs37(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, queryCompoundTypeArray($root, args, _info) { - const selectArgs = makeArgs38(args); + const selectArgs = makeArgs_query_compound_type_array(args); return resource_query_compound_type_arrayPgResource.execute(selectArgs); }, compoundTypeArrayQuery($root, args, _info) { - const selectArgs = makeArgs39(args); + const selectArgs = makeArgs_compound_type_array_query(args); return resource_compound_type_array_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs40(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -28469,7 +22639,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28478,7 +22647,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28487,7 +22655,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28496,7 +22663,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28505,7 +22671,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28527,7 +22692,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28536,7 +22700,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28545,7 +22708,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28554,7 +22716,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28563,7 +22724,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28572,7 +22732,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs43(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -28589,7 +22749,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28598,7 +22757,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28607,7 +22765,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28616,7 +22773,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28625,7 +22781,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28647,7 +22802,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28656,7 +22810,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28665,7 +22818,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28674,7 +22826,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28683,7 +22834,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28692,22 +22842,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28727,7 +22873,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28736,7 +22881,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28745,7 +22889,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28754,7 +22897,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28763,7 +22905,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28785,7 +22926,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28794,7 +22934,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28803,7 +22942,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28812,7 +22950,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28821,7 +22958,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28830,87 +22966,87 @@ export const plans = { } }, typeFunction($root, args, _info) { - const selectArgs = makeArgs48(args); + const selectArgs = makeArgs_type_function(args); return resource_type_functionPgResource.execute(selectArgs); }, typeFunctionList($root, args, _info) { - const selectArgs = makeArgs49(args); + const selectArgs = makeArgs_type_function_list(args); return resource_type_function_listPgResource.execute(selectArgs); }, input(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, patch(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, reserved(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, reservedPatchRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, reservedInputRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, defaultValue(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher8($nodeId); }, viewTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher9($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher10($nodeId); }, similarTable1(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher11($nodeId); }, similarTable2(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher12($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher13($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher14($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher15($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher16($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher17($nodeId); }, list(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher18($nodeId); }, type(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher19($nodeId); }, allNonUpdatableViews: { @@ -28921,7 +23057,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28930,7 +23065,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28939,7 +23073,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28948,7 +23081,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28957,7 +23089,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28966,22 +23097,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NonUpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28995,7 +23122,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29004,7 +23130,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29013,7 +23138,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29022,7 +23146,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29031,7 +23154,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29040,22 +23162,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29069,7 +23187,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29078,7 +23195,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29087,7 +23203,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29096,7 +23211,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29105,7 +23219,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29114,22 +23227,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29143,7 +23252,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29152,7 +23260,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29161,7 +23268,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29170,7 +23276,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29179,7 +23284,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29188,22 +23292,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29217,7 +23317,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29226,7 +23325,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29235,7 +23333,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29244,7 +23341,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29253,7 +23349,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29262,22 +23357,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29291,7 +23382,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29300,7 +23390,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29309,7 +23398,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29318,7 +23406,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29327,7 +23414,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29336,22 +23422,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29365,7 +23447,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29374,7 +23455,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29383,7 +23463,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29392,7 +23471,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29401,7 +23479,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29410,22 +23487,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29439,7 +23512,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29448,7 +23520,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29457,7 +23528,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29466,7 +23536,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29475,7 +23544,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29484,22 +23552,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29513,7 +23577,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29522,7 +23585,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29531,7 +23593,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29540,7 +23601,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29549,7 +23609,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29558,22 +23617,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NoPrimaryKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29587,7 +23642,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29596,7 +23650,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29605,7 +23658,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29614,7 +23666,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29623,7 +23674,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29632,22 +23682,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TestviewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29661,7 +23707,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29670,7 +23715,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29679,7 +23723,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29688,7 +23731,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29697,7 +23739,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29706,22 +23747,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29735,7 +23772,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29744,7 +23780,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29753,7 +23788,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29762,7 +23796,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29771,7 +23804,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29780,22 +23812,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29809,7 +23837,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29818,7 +23845,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29827,7 +23853,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29836,7 +23861,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29845,7 +23869,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29854,22 +23877,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29883,7 +23902,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29892,7 +23910,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29901,7 +23918,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29910,7 +23926,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29919,7 +23934,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29928,22 +23942,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29957,7 +23967,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29966,7 +23975,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29975,7 +23983,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29984,7 +23991,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29993,7 +23999,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30002,22 +24007,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30031,7 +24032,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30040,7 +24040,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30049,7 +24048,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30058,7 +24056,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30067,7 +24064,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30076,22 +24072,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30105,7 +24097,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30114,7 +24105,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30123,7 +24113,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30132,7 +24121,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30141,7 +24129,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30150,22 +24137,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30179,7 +24162,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30188,7 +24170,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30197,7 +24178,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30206,7 +24186,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30215,7 +24194,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30224,22 +24202,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30253,7 +24227,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30262,7 +24235,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30271,7 +24243,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30280,7 +24251,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30289,7 +24259,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30298,22 +24267,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30327,7 +24292,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30336,7 +24300,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30345,7 +24308,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30354,7 +24316,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30363,7 +24324,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30372,22 +24332,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30401,7 +24357,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30410,7 +24365,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30419,7 +24373,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30428,7 +24381,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30437,7 +24389,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30446,22 +24397,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30475,7 +24422,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30484,7 +24430,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30493,7 +24438,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30502,7 +24446,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30511,7 +24454,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30520,22 +24462,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30549,7 +24487,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30558,7 +24495,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30567,7 +24503,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30576,7 +24511,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30585,7 +24519,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30594,22 +24527,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30623,7 +24552,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30632,7 +24560,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30641,7 +24568,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30650,7 +24576,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30659,7 +24584,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30668,22 +24592,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30697,7 +24617,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30706,7 +24625,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30715,7 +24633,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30724,7 +24641,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30733,7 +24649,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30742,22 +24657,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30888,7 +24799,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30897,7 +24807,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30906,7 +24815,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30915,7 +24823,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30924,7 +24831,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30933,22 +24839,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30971,7 +24873,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30986,27 +24888,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -31015,7 +24911,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31030,27 +24926,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -31059,7 +24949,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs52(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31074,27 +24964,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -31103,7 +24987,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs53(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31118,27 +25002,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -31147,7 +25025,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs54(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31162,27 +25040,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -31191,7 +25063,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs55(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31206,27 +25078,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -31235,7 +25101,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs56(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31250,27 +25116,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -31279,7 +25139,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs57(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31294,27 +25154,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -31323,7 +25177,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs58(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31338,27 +25192,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -31367,7 +25215,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs59(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31382,27 +25230,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -31411,7 +25253,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs60(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31426,27 +25268,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -31455,7 +25291,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs61(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31470,27 +25306,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -31499,7 +25329,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs62(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31514,27 +25344,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -31543,7 +25367,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs63(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31558,27 +25382,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -31587,7 +25405,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs64(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31602,27 +25420,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -31641,7 +25453,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31650,7 +25461,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31659,7 +25469,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31668,7 +25477,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31677,7 +25485,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31686,12 +25493,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -31711,7 +25515,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31720,7 +25523,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31729,7 +25531,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31738,7 +25539,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31747,7 +25547,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31759,7 +25558,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs67(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31774,27 +25573,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -31803,7 +25596,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs68(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31818,27 +25611,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -31893,7 +25680,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31902,7 +25688,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31911,7 +25696,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31920,7 +25704,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31929,7 +25712,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31938,22 +25720,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -31970,7 +25748,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31979,7 +25756,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31988,7 +25764,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31997,7 +25772,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32006,7 +25780,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32015,22 +25788,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32057,7 +25826,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32066,7 +25834,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32075,7 +25842,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32084,7 +25850,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32093,7 +25858,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32102,22 +25866,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32134,7 +25894,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32143,7 +25902,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32152,7 +25910,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32161,7 +25918,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32170,7 +25926,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32179,22 +25934,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32269,7 +26020,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs69(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32284,27 +26035,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -32415,7 +26160,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32424,7 +26168,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32433,7 +26176,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32442,7 +26184,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32451,7 +26192,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32463,7 +26203,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs71(args); + const extraSelectArgs = makeArgs_post_computed_interval_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32478,27 +26218,21 @@ export const plans = { if (resource_post_computed_interval_arrayPgResource.isUnique && !resource_post_computed_interval_arrayPgResource.codec.attributes && typeof resource_post_computed_interval_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${resource_post_computed_interval_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_arrayPgResource.from, resource_post_computed_interval_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_arrayPgResource.execute(selectArgs); @@ -32507,7 +26241,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs72(args); + const extraSelectArgs = makeArgs_post_computed_text_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32522,27 +26256,21 @@ export const plans = { if (resource_post_computed_text_arrayPgResource.isUnique && !resource_post_computed_text_arrayPgResource.codec.attributes && typeof resource_post_computed_text_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${resource_post_computed_text_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_text_arrayPgResource.from, resource_post_computed_text_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_text_arrayPgResource.execute(selectArgs); @@ -32551,7 +26279,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs73(args); + const extraSelectArgs = makeArgs_post_computed_with_optional_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32566,27 +26294,21 @@ export const plans = { if (resource_post_computed_with_optional_argPgResource.isUnique && !resource_post_computed_with_optional_argPgResource.codec.attributes && typeof resource_post_computed_with_optional_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${resource_post_computed_with_optional_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_optional_argPgResource.from, resource_post_computed_with_optional_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_optional_argPgResource.execute(selectArgs); @@ -32595,7 +26317,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs74(args); + const extraSelectArgs = makeArgs_post_computed_with_required_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32610,27 +26332,21 @@ export const plans = { if (resource_post_computed_with_required_argPgResource.isUnique && !resource_post_computed_with_required_argPgResource.codec.attributes && typeof resource_post_computed_with_required_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${resource_post_computed_with_required_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_required_argPgResource.from, resource_post_computed_with_required_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_required_argPgResource.execute(selectArgs); @@ -32639,7 +26355,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs75(args); + const extraSelectArgs = makeArgs_post_headline_trimmed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32654,27 +26370,21 @@ export const plans = { if (resource_post_headline_trimmedPgResource.isUnique && !resource_post_headline_trimmedPgResource.codec.attributes && typeof resource_post_headline_trimmedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${resource_post_headline_trimmedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmedPgResource.from, resource_post_headline_trimmedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmedPgResource.execute(selectArgs); @@ -32683,7 +26393,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs76(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_no_defaults(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32698,27 +26408,21 @@ export const plans = { if (resource_post_headline_trimmed_no_defaultsPgResource.isUnique && !resource_post_headline_trimmed_no_defaultsPgResource.codec.attributes && typeof resource_post_headline_trimmed_no_defaultsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${resource_post_headline_trimmed_no_defaultsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.from, resource_post_headline_trimmed_no_defaultsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_no_defaultsPgResource.execute(selectArgs); @@ -32727,7 +26431,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs77(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_strict(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32742,27 +26446,21 @@ export const plans = { if (resource_post_headline_trimmed_strictPgResource.isUnique && !resource_post_headline_trimmed_strictPgResource.codec.attributes && typeof resource_post_headline_trimmed_strictPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${resource_post_headline_trimmed_strictPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_strictPgResource.from, resource_post_headline_trimmed_strictPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_strictPgResource.execute(selectArgs); @@ -32771,7 +26469,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs78(args); + const extraSelectArgs = makeArgs_post_computed_compound_type_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32786,27 +26484,21 @@ export const plans = { if (resource_post_computed_compound_type_arrayPgResource.isUnique && !resource_post_computed_compound_type_arrayPgResource.codec.attributes && typeof resource_post_computed_compound_type_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${resource_post_computed_compound_type_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_compound_type_arrayPgResource.from, resource_post_computed_compound_type_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_compound_type_arrayPgResource.execute(selectArgs); @@ -32848,7 +26540,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32857,7 +26548,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32866,7 +26556,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32875,7 +26564,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32884,7 +26572,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32893,22 +26580,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32971,64 +26654,70 @@ export const plans = { } }, CompoundTypeInput: { - "__inputPlan": function CompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, II: { @@ -33546,31 +27235,21 @@ export const plans = { } }, TypesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33579,19 +27258,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33600,11 +27277,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -33612,7 +27286,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33622,11 +27296,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -33634,7 +27305,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33644,11 +27315,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "ASC", ...(undefined != null ? { @@ -33656,7 +27324,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33666,11 +27334,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "DESC", ...(undefined != null ? { @@ -33678,7 +27343,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33688,11 +27353,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "ASC", ...(undefined != null ? { @@ -33700,7 +27362,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33710,11 +27372,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "DESC", ...(undefined != null ? { @@ -33722,7 +27381,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33732,11 +27391,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "ASC", ...(undefined != null ? { @@ -33744,7 +27400,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33754,11 +27410,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "DESC", ...(undefined != null ? { @@ -33766,7 +27419,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33776,11 +27429,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "ASC", ...(undefined != null ? { @@ -33788,7 +27438,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33798,11 +27448,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "DESC", ...(undefined != null ? { @@ -33810,7 +27457,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33820,11 +27467,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "ASC", ...(undefined != null ? { @@ -33832,7 +27476,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33842,11 +27486,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "DESC", ...(undefined != null ? { @@ -33854,7 +27495,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33864,11 +27505,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "ASC", ...(undefined != null ? { @@ -33876,7 +27514,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33886,11 +27524,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "DESC", ...(undefined != null ? { @@ -33898,7 +27533,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33908,11 +27543,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "ASC", ...(undefined != null ? { @@ -33920,7 +27552,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33930,11 +27562,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "DESC", ...(undefined != null ? { @@ -33942,7 +27571,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33952,11 +27581,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "ASC", ...(undefined != null ? { @@ -33964,7 +27590,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33974,11 +27600,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "DESC", ...(undefined != null ? { @@ -33986,7 +27609,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33996,11 +27619,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "ASC", ...(undefined != null ? { @@ -34008,7 +27628,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34018,11 +27638,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "DESC", ...(undefined != null ? { @@ -34030,7 +27647,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34040,11 +27657,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "ASC", ...(undefined != null ? { @@ -34052,7 +27666,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34062,11 +27676,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "DESC", ...(undefined != null ? { @@ -34074,7 +27685,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34084,11 +27695,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "ASC", ...(undefined != null ? { @@ -34096,7 +27704,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34106,11 +27714,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "DESC", ...(undefined != null ? { @@ -34118,7 +27723,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34128,11 +27733,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "ASC", ...(undefined != null ? { @@ -34140,7 +27742,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34150,11 +27752,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "DESC", ...(undefined != null ? { @@ -34162,7 +27761,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34172,11 +27771,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "ASC", ...(undefined != null ? { @@ -34184,7 +27780,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34194,11 +27790,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "DESC", ...(undefined != null ? { @@ -34206,7 +27799,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34216,11 +27809,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "ASC", ...(undefined != null ? { @@ -34228,7 +27818,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34238,11 +27828,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "DESC", ...(undefined != null ? { @@ -34250,7 +27837,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34260,11 +27847,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "ASC", ...(undefined != null ? { @@ -34272,7 +27856,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34282,11 +27866,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "DESC", ...(undefined != null ? { @@ -34294,7 +27875,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34304,11 +27885,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "ASC", ...(undefined != null ? { @@ -34316,7 +27894,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34326,11 +27904,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "DESC", ...(undefined != null ? { @@ -34338,7 +27913,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34348,11 +27923,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "ASC", ...(undefined != null ? { @@ -34360,7 +27932,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34370,11 +27942,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "DESC", ...(undefined != null ? { @@ -34382,7 +27951,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34392,11 +27961,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "ASC", ...(undefined != null ? { @@ -34404,7 +27970,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34414,11 +27980,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "DESC", ...(undefined != null ? { @@ -34426,7 +27989,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34436,11 +27999,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "ASC", ...(undefined != null ? { @@ -34448,7 +28008,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34458,11 +28018,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "DESC", ...(undefined != null ? { @@ -34470,7 +28027,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34480,11 +28037,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34492,7 +28046,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34502,11 +28056,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34514,7 +28065,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34524,11 +28075,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34536,7 +28084,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34546,11 +28094,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34558,7 +28103,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34568,11 +28113,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34580,7 +28122,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34590,11 +28132,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34602,7 +28141,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34612,11 +28151,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "ASC", ...(undefined != null ? { @@ -34624,7 +28160,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34634,11 +28170,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "DESC", ...(undefined != null ? { @@ -34646,7 +28179,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34656,11 +28189,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "ASC", ...(undefined != null ? { @@ -34668,7 +28198,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34678,11 +28208,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "DESC", ...(undefined != null ? { @@ -34690,7 +28217,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34700,11 +28227,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -34712,7 +28236,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34722,11 +28246,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -34734,7 +28255,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34744,11 +28265,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -34756,7 +28274,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34766,11 +28284,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -34778,7 +28293,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34788,11 +28303,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -34800,7 +28312,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34810,11 +28322,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -34822,7 +28331,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34832,11 +28341,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "ASC", ...(undefined != null ? { @@ -34844,7 +28350,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34854,11 +28360,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "DESC", ...(undefined != null ? { @@ -34866,7 +28369,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34876,11 +28379,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "ASC", ...(undefined != null ? { @@ -34888,7 +28388,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34898,11 +28398,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "DESC", ...(undefined != null ? { @@ -34910,7 +28407,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34920,11 +28417,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "ASC", ...(undefined != null ? { @@ -34932,7 +28426,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34942,11 +28436,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "DESC", ...(undefined != null ? { @@ -34954,7 +28445,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34964,11 +28455,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "ASC", ...(undefined != null ? { @@ -34976,7 +28464,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34986,11 +28474,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "DESC", ...(undefined != null ? { @@ -34998,7 +28483,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35008,11 +28493,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "ASC", ...(undefined != null ? { @@ -35020,7 +28502,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35030,11 +28512,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "DESC", ...(undefined != null ? { @@ -35042,7 +28521,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35052,11 +28531,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "ASC", ...(undefined != null ? { @@ -35064,7 +28540,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35074,11 +28550,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "DESC", ...(undefined != null ? { @@ -35086,7 +28559,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35096,11 +28569,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "ASC", ...(undefined != null ? { @@ -35108,7 +28578,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35118,11 +28588,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "DESC", ...(undefined != null ? { @@ -35130,7 +28597,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35140,11 +28607,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "ASC", ...(undefined != null ? { @@ -35152,7 +28616,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35162,11 +28626,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "DESC", ...(undefined != null ? { @@ -35174,7 +28635,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35184,11 +28645,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "ASC", ...(undefined != null ? { @@ -35196,7 +28654,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35206,11 +28664,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "DESC", ...(undefined != null ? { @@ -35218,7 +28673,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35227,8 +28682,8 @@ export const plans = { }, TypeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35241,17 +28696,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, smallint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "smallint", @@ -35264,17 +28717,15 @@ export const plans = { type: "attribute", attribute: "smallint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.smallint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, bigint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "bigint", @@ -35287,17 +28738,15 @@ export const plans = { type: "attribute", attribute: "bigint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.bigint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numeric: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numeric", @@ -35310,17 +28759,15 @@ export const plans = { type: "attribute", attribute: "numeric", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numeric.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, decimal: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "decimal", @@ -35333,17 +28780,15 @@ export const plans = { type: "attribute", attribute: "decimal", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.decimal.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, boolean: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "boolean", @@ -35356,17 +28801,15 @@ export const plans = { type: "attribute", attribute: "boolean", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.boolean.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, varchar: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "varchar", @@ -35379,17 +28822,15 @@ export const plans = { type: "attribute", attribute: "varchar", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.varchar.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum", @@ -35402,17 +28843,15 @@ export const plans = { type: "attribute", attribute: "enum", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -35425,17 +28864,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain", @@ -35448,17 +28885,15 @@ export const plans = { type: "attribute", attribute: "domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain2", @@ -35471,17 +28906,15 @@ export const plans = { type: "attribute", attribute: "domain2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anotherIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array", @@ -35494,17 +28927,15 @@ export const plans = { type: "attribute", attribute: "text_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, json: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json", @@ -35517,17 +28948,15 @@ export const plans = { type: "attribute", attribute: "json", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.json.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.json)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonb: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "jsonb", @@ -35540,17 +28969,15 @@ export const plans = { type: "attribute", attribute: "jsonb", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.jsonb.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_range", @@ -35563,17 +28990,15 @@ export const plans = { type: "attribute", attribute: "nullable_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numrange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numrange", @@ -35586,17 +29011,15 @@ export const plans = { type: "attribute", attribute: "numrange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numrange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, daterange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "daterange", @@ -35609,17 +29032,15 @@ export const plans = { type: "attribute", attribute: "daterange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.daterange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, daterangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, anIntRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "an_int_range", @@ -35632,17 +29053,15 @@ export const plans = { type: "attribute", attribute: "an_int_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.an_int_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntRangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamp", @@ -35655,17 +29074,15 @@ export const plans = { type: "attribute", attribute: "timestamp", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamp.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz", @@ -35678,17 +29095,15 @@ export const plans = { type: "attribute", attribute: "timestamptz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamptz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, date: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date", @@ -35701,17 +29116,15 @@ export const plans = { type: "attribute", attribute: "date", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.date.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.date)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, time: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "time", @@ -35724,17 +29137,15 @@ export const plans = { type: "attribute", attribute: "time", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.time.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.time)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timetz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timetz", @@ -35747,17 +29158,15 @@ export const plans = { type: "attribute", attribute: "timetz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timetz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timetz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, interval: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval", @@ -35770,17 +29179,15 @@ export const plans = { type: "attribute", attribute: "interval", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.interval)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intervalArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval_array", @@ -35793,17 +29200,15 @@ export const plans = { type: "attribute", attribute: "interval_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, intervalArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, money: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "money", @@ -35816,17 +29221,15 @@ export const plans = { type: "attribute", attribute: "money", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.money.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.money)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type", @@ -35839,17 +29242,15 @@ export const plans = { type: "attribute", attribute: "compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nested_compound_type", @@ -35862,17 +29263,15 @@ export const plans = { type: "attribute", attribute: "nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_compound_type", @@ -35885,17 +29284,15 @@ export const plans = { type: "attribute", attribute: "nullable_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableNestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_nested_compound_type", @@ -35908,17 +29305,15 @@ export const plans = { type: "attribute", attribute: "nullable_nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, point: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "point", @@ -35931,17 +29326,15 @@ export const plans = { type: "attribute", attribute: "point", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.point.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullablePoint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullablePoint", @@ -35954,17 +29347,15 @@ export const plans = { type: "attribute", attribute: "nullablePoint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullablePoint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -35977,17 +29368,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -36000,17 +29389,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -36023,17 +29410,15 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regproc: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regproc", @@ -36046,17 +29431,15 @@ export const plans = { type: "attribute", attribute: "regproc", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regproc.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regproc)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regprocedure: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regprocedure", @@ -36069,17 +29452,15 @@ export const plans = { type: "attribute", attribute: "regprocedure", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regprocedure.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regprocedure)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoper: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoper", @@ -36092,17 +29473,15 @@ export const plans = { type: "attribute", attribute: "regoper", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoper.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoper)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoperator: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoperator", @@ -36115,17 +29494,15 @@ export const plans = { type: "attribute", attribute: "regoperator", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoperator.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoperator)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regclass: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regclass", @@ -36138,17 +29515,15 @@ export const plans = { type: "attribute", attribute: "regclass", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regclass.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regclass)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regtype: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regtype", @@ -36161,17 +29536,15 @@ export const plans = { type: "attribute", attribute: "regtype", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regtype.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regtype)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regconfig: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regconfig", @@ -36184,17 +29557,15 @@ export const plans = { type: "attribute", attribute: "regconfig", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regconfig.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regconfig)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regdictionary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regdictionary", @@ -36207,17 +29578,15 @@ export const plans = { type: "attribute", attribute: "regdictionary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regdictionary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regdictionary)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array_domain", @@ -36230,17 +29599,15 @@ export const plans = { type: "attribute", attribute: "text_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, int8ArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int8_array_domain", @@ -36253,17 +29620,15 @@ export const plans = { type: "attribute", attribute: "int8_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.int8_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int8ArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltree: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree", @@ -36276,17 +29641,15 @@ export const plans = { type: "attribute", attribute: "ltree", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_codec_ltree)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltreeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree_array", @@ -36299,13 +29662,11 @@ export const plans = { type: "attribute", attribute: "ltree_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_array_codec_ltree_)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BigFloatRangeInput: { @@ -36333,29 +29694,30 @@ export const plans = { inclusive: undefined }, NestedCompoundTypeInput: { - "__inputPlan": function NestedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, bazBuz: { - applyPlan($insert, val) { - $insert.set("baz_buz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("baz_buz", bakedInputRuntime(schema, field.type, val)); + } } }, PP: { @@ -36388,26 +29750,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36420,14 +29774,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36440,14 +29794,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36460,14 +29814,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36480,19 +29834,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36501,19 +29853,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36522,11 +29872,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36534,7 +29881,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36544,11 +29891,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36556,7 +29900,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36566,11 +29910,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -36578,7 +29919,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36588,11 +29929,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -36600,7 +29938,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36610,11 +29948,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -36622,7 +29957,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36632,11 +29967,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -36644,7 +29976,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36654,11 +29986,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -36666,7 +29995,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36676,11 +30005,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -36688,7 +30014,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36698,11 +30024,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -36710,7 +30033,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36720,11 +30043,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -36732,7 +30052,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36742,11 +30062,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -36754,7 +30071,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36764,11 +30081,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -36776,7 +30090,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36786,11 +30100,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -36798,7 +30109,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36808,11 +30119,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -36820,7 +30128,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36830,11 +30138,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -36842,7 +30147,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36852,11 +30157,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -36864,7 +30166,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36874,11 +30176,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -36886,7 +30185,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36896,11 +30195,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -36908,7 +30204,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36918,11 +30214,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -36930,7 +30223,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36940,11 +30233,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -36952,7 +30242,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37035,26 +30325,18 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_WITH_OPTIONAL_ARG_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -37067,14 +30349,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -37087,19 +30369,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37108,19 +30388,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37129,11 +30407,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37141,7 +30416,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37151,11 +30426,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37163,7 +30435,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37173,11 +30445,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "ASC", ...(undefined != null ? { @@ -37185,7 +30454,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37195,11 +30464,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "DESC", ...(undefined != null ? { @@ -37207,7 +30473,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37217,11 +30483,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -37229,7 +30492,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37239,11 +30502,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -37251,7 +30511,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37261,11 +30521,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -37273,7 +30530,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37283,11 +30540,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -37295,7 +30549,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37304,8 +30558,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37318,17 +30572,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, headline: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "headline", @@ -37341,17 +30593,15 @@ export const plans = { type: "attribute", attribute: "headline", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.headline.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -37364,17 +30614,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -37387,17 +30635,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enums: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enums", @@ -37410,17 +30656,15 @@ export const plans = { type: "attribute", attribute: "enums", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.enums.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anEnumArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, comptypes: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "comptypes", @@ -37433,47 +30677,46 @@ export const plans = { type: "attribute", attribute: "comptypes", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.comptypes.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, comptypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedWithOptionalArg: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_post_computed_with_optional_argPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_post_computed_with_optional_argPgResource.codec)}`); } } } }, ComptypeInput: { - "__inputPlan": function ComptypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, schedule: { - applyPlan($insert, val) { - $insert.set("schedule", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("schedule", bakedInputRuntime(schema, field.type, val)); + } }, isOptimised: { - applyPlan($insert, val) { - $insert.set("is_optimised", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_optimised", bakedInputRuntime(schema, field.type, val)); + } } }, ForeignKeysConnection: { @@ -37525,23 +30768,12 @@ export const plans = { } }, ForeignKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PERSON_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -37549,7 +30781,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37559,11 +30791,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -37571,7 +30800,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37581,11 +30810,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "ASC", ...(undefined != null ? { @@ -37593,7 +30819,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37603,11 +30829,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "DESC", ...(undefined != null ? { @@ -37615,7 +30838,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37625,11 +30848,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "ASC", ...(undefined != null ? { @@ -37637,7 +30857,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37647,11 +30867,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "DESC", ...(undefined != null ? { @@ -37659,7 +30876,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37668,8 +30885,8 @@ export const plans = { }, ForeignKeyCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -37682,17 +30899,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_1", @@ -37705,17 +30920,15 @@ export const plans = { type: "attribute", attribute: "compound_key_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_2", @@ -37728,13 +30941,11 @@ export const plans = { type: "attribute", attribute: "compound_key_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecret: { @@ -37805,31 +31016,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37838,19 +31039,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37859,11 +31058,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -37871,7 +31067,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37881,11 +31077,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -37893,7 +31086,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37903,11 +31096,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -37915,7 +31105,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37925,11 +31115,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -37937,7 +31124,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37947,11 +31134,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -37959,7 +31143,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37969,11 +31153,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -37981,7 +31162,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37990,8 +31171,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -38004,17 +31185,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -38027,17 +31206,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -38050,13 +31227,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTable: { @@ -38599,8 +31774,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -38613,17 +31788,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -38636,17 +31809,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -38659,17 +31830,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -38682,17 +31851,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -38705,17 +31872,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -38728,17 +31893,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -38751,17 +31914,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -38774,17 +31935,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -38797,17 +31956,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -38820,17 +31977,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -38843,40 +31998,38 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, NonUpdatableViewsConnection: { @@ -38911,23 +32064,12 @@ export const plans = { } }, NonUpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COLUMN_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "ASC", ...(undefined != null ? { @@ -38935,7 +32077,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38945,11 +32087,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "DESC", ...(undefined != null ? { @@ -38957,7 +32096,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38966,8 +32105,8 @@ export const plans = { }, NonUpdatableViewCondition: { column: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "?column?", @@ -38980,13 +32119,11 @@ export const plans = { type: "attribute", attribute: "?column?", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nonUpdatableView.attributes["?column?"].codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, InputsConnection: { @@ -39015,31 +32152,21 @@ export const plans = { } }, InputsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39048,19 +32175,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39069,11 +32194,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39081,7 +32203,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39091,11 +32213,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39103,7 +32222,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39112,8 +32231,8 @@ export const plans = { }, InputCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39126,13 +32245,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_inputs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PatchesConnection: { @@ -39161,31 +32278,21 @@ export const plans = { } }, PatchesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39194,19 +32301,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39215,11 +32320,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39227,7 +32329,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39237,11 +32339,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39249,7 +32348,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39258,8 +32357,8 @@ export const plans = { }, PatchCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39272,13 +32371,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_patchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedsConnection: { @@ -39307,31 +32404,21 @@ export const plans = { } }, ReservedsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39340,19 +32427,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39361,11 +32446,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39373,7 +32455,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39383,11 +32465,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39395,7 +32474,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39404,8 +32483,8 @@ export const plans = { }, ReservedCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39418,13 +32497,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedPatchRecordsConnection: { @@ -39453,31 +32530,21 @@ export const plans = { } }, ReservedPatchRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39486,19 +32553,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39507,11 +32572,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39519,7 +32581,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39529,11 +32591,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39541,7 +32600,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39550,8 +32609,8 @@ export const plans = { }, ReservedPatchRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39564,13 +32623,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedPatchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedInputRecordsConnection: { @@ -39599,31 +32656,21 @@ export const plans = { } }, ReservedInputRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39632,19 +32679,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39653,11 +32698,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39665,7 +32707,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39675,11 +32717,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39687,7 +32726,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39696,8 +32735,8 @@ export const plans = { }, ReservedInputRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39710,13 +32749,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedInput.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, DefaultValuesConnection: { @@ -39745,31 +32782,21 @@ export const plans = { } }, DefaultValuesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39778,19 +32805,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39799,11 +32824,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39811,7 +32833,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39821,11 +32843,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39833,7 +32852,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39843,11 +32862,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "ASC", ...(undefined != null ? { @@ -39855,7 +32871,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39865,11 +32881,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "DESC", ...(undefined != null ? { @@ -39877,7 +32890,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39886,8 +32899,8 @@ export const plans = { }, DefaultValueCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39900,17 +32913,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullValue: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "null_value", @@ -39923,13 +32934,11 @@ export const plans = { type: "attribute", attribute: "null_value", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.null_value.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NoPrimaryKeysConnection: { @@ -39958,23 +32967,12 @@ export const plans = { } }, NoPrimaryKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39982,7 +32980,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39992,11 +32990,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40004,7 +32999,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40014,11 +33009,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "ASC", ...(undefined != null ? { @@ -40026,7 +33018,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40036,11 +33028,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "DESC", ...(undefined != null ? { @@ -40048,7 +33037,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40057,8 +33046,8 @@ export const plans = { }, NoPrimaryKeyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40071,17 +33060,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, str: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str", @@ -40094,13 +33081,11 @@ export const plans = { type: "attribute", attribute: "str", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.str.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TestviewsConnection: { @@ -40141,23 +33126,12 @@ export const plans = { } }, TestviewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, TESTVIEWID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "ASC", ...(undefined != null ? { @@ -40165,7 +33139,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40175,11 +33149,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "DESC", ...(undefined != null ? { @@ -40187,7 +33158,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40197,11 +33168,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40209,7 +33177,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40219,11 +33187,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40231,7 +33196,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40241,11 +33206,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40253,7 +33215,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40263,11 +33225,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40275,7 +33234,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40284,8 +33243,8 @@ export const plans = { }, TestviewCondition: { testviewid: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "testviewid", @@ -40298,17 +33257,15 @@ export const plans = { type: "attribute", attribute: "testviewid", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.testviewid.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -40321,17 +33278,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -40344,13 +33299,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTablesConnection: { @@ -40379,31 +33332,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40412,19 +33355,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40433,11 +33374,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40445,7 +33383,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40455,11 +33393,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40467,7 +33402,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40477,11 +33412,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -40489,7 +33421,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40499,11 +33431,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -40511,7 +33440,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40520,8 +33449,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40534,17 +33463,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -40557,13 +33484,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -40592,31 +33517,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40625,19 +33540,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40646,11 +33559,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -40658,7 +33568,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40668,11 +33578,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -40680,7 +33587,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40690,11 +33597,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -40702,7 +33606,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40712,11 +33616,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -40724,7 +33625,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40733,8 +33634,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -40747,17 +33648,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -40770,13 +33669,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ViewTablesConnection: { @@ -40805,31 +33702,21 @@ export const plans = { } }, ViewTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40838,19 +33725,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40859,11 +33744,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40871,7 +33753,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40881,11 +33763,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40893,7 +33772,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40903,11 +33782,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40915,7 +33791,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40925,11 +33801,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40937,7 +33810,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40947,11 +33820,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40959,7 +33829,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40969,11 +33839,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40981,7 +33848,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40990,8 +33857,8 @@ export const plans = { }, ViewTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41004,17 +33871,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41027,17 +33892,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41050,13 +33913,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable1SConnection: { @@ -41085,31 +33946,21 @@ export const plans = { } }, SimilarTable1SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41118,19 +33969,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41139,11 +33988,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41151,7 +33997,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41161,11 +34007,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41173,7 +34016,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41183,11 +34026,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -41195,7 +34035,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41205,11 +34045,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -41217,7 +34054,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41227,11 +34064,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -41239,7 +34073,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41249,11 +34083,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -41261,7 +34092,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41271,11 +34102,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41283,7 +34111,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41293,11 +34121,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41305,7 +34130,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41314,8 +34139,8 @@ export const plans = { }, SimilarTable1Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41328,17 +34153,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41351,17 +34174,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41374,17 +34195,15 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41397,13 +34216,11 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable2SConnection: { @@ -41432,31 +34249,21 @@ export const plans = { } }, SimilarTable2SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41465,19 +34272,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41486,11 +34291,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41498,7 +34300,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41508,11 +34310,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41520,7 +34319,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41530,11 +34329,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41542,7 +34338,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41552,11 +34348,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41564,7 +34357,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41574,11 +34367,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "ASC", ...(undefined != null ? { @@ -41586,7 +34376,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41596,11 +34386,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "DESC", ...(undefined != null ? { @@ -41608,7 +34395,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41618,11 +34405,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "ASC", ...(undefined != null ? { @@ -41630,7 +34414,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41640,11 +34424,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "DESC", ...(undefined != null ? { @@ -41652,7 +34433,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41661,8 +34442,8 @@ export const plans = { }, SimilarTable2Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41675,17 +34456,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41698,17 +34477,15 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col4: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col4", @@ -41721,17 +34498,15 @@ export const plans = { type: "attribute", attribute: "col4", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col4.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col5: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col5", @@ -41744,13 +34519,11 @@ export const plans = { type: "attribute", attribute: "col5", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col5.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UpdatableViewsConnection: { @@ -41794,23 +34567,12 @@ export const plans = { } }, UpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, X_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "ASC", ...(undefined != null ? { @@ -41818,7 +34580,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41828,11 +34590,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "DESC", ...(undefined != null ? { @@ -41840,7 +34599,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41850,11 +34609,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -41862,7 +34618,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41872,11 +34628,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -41884,7 +34637,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41894,11 +34647,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -41906,7 +34656,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41916,11 +34666,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -41928,7 +34675,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41938,11 +34685,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "ASC", ...(undefined != null ? { @@ -41950,7 +34694,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41960,11 +34704,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "DESC", ...(undefined != null ? { @@ -41972,7 +34713,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41981,8 +34722,8 @@ export const plans = { }, UpdatableViewCondition: { x: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "x", @@ -41995,17 +34736,15 @@ export const plans = { type: "attribute", attribute: "x", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.x.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -42018,17 +34757,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -42041,17 +34778,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constant: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constant", @@ -42064,13 +34799,11 @@ export const plans = { type: "attribute", attribute: "constant", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.constant.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -42099,31 +34832,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42132,19 +34855,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42153,11 +34874,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42165,7 +34883,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42175,11 +34893,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42187,7 +34902,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42197,11 +34912,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -42209,7 +34921,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42219,11 +34931,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -42231,7 +34940,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42241,11 +34950,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -42253,7 +34959,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42263,11 +34969,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -42275,7 +34978,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42285,11 +34988,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -42297,7 +34997,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42307,11 +35007,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -42319,7 +35016,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42328,8 +35025,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42342,17 +35039,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -42365,17 +35060,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -42388,17 +35081,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -42411,13 +35102,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -42442,7 +35131,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs79(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -42457,27 +35146,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -42502,23 +35185,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -42526,7 +35198,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42536,11 +35208,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -42548,7 +35217,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42558,11 +35227,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -42570,7 +35236,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42580,11 +35246,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -42592,7 +35255,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42602,11 +35265,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -42614,7 +35274,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42624,11 +35284,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -42636,7 +35293,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42645,8 +35302,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -42659,17 +35316,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -42682,17 +35337,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -42705,13 +35358,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -42740,31 +35391,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42773,19 +35414,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42794,11 +35433,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42806,7 +35442,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42816,11 +35452,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42828,7 +35461,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42838,11 +35471,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -42850,7 +35480,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42860,11 +35490,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -42872,7 +35499,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42882,11 +35509,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -42894,7 +35518,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42904,11 +35528,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -42916,7 +35537,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42926,11 +35547,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -42938,7 +35556,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42948,11 +35566,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -42960,7 +35575,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42969,8 +35584,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42983,17 +35598,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -43006,17 +35619,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -43029,17 +35640,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -43052,13 +35661,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -43087,31 +35694,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43120,19 +35717,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43141,11 +35736,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43153,7 +35745,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43163,11 +35755,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43175,7 +35764,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43185,11 +35774,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -43197,7 +35783,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43207,11 +35793,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -43219,7 +35802,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43228,8 +35811,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43242,17 +35825,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -43265,13 +35846,11 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ListsConnection: { @@ -43300,31 +35879,21 @@ export const plans = { } }, ListsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43333,19 +35902,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43354,11 +35921,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43366,7 +35930,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43376,11 +35940,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43388,7 +35949,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43397,8 +35958,8 @@ export const plans = { }, ListCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43411,17 +35972,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array", @@ -43434,17 +35993,15 @@ export const plans = { type: "attribute", attribute: "int_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array_nn", @@ -43457,17 +36014,15 @@ export const plans = { type: "attribute", attribute: "int_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -43480,17 +36035,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array_nn", @@ -43503,17 +36056,15 @@ export const plans = { type: "attribute", attribute: "enum_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array", @@ -43526,17 +36077,15 @@ export const plans = { type: "attribute", attribute: "date_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array_nn", @@ -43549,17 +36098,15 @@ export const plans = { type: "attribute", attribute: "date_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array", @@ -43572,17 +36119,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array_nn", @@ -43595,17 +36140,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array", @@ -43618,17 +36161,15 @@ export const plans = { type: "attribute", attribute: "compound_type_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array_nn", @@ -43641,20 +36182,18 @@ export const plans = { type: "attribute", attribute: "compound_type_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, M: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs80(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43664,9 +36203,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43674,7 +36222,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs81(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43684,9 +36232,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43694,7 +36251,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs82(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43704,9 +36261,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43714,7 +36280,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs83(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43724,9 +36290,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43734,7 +36309,7 @@ export const plans = { }, returnVoidMutation: { plan($root, args, _info) { - const selectArgs = makeArgs84(args, ["input"]); + const selectArgs = makeArgs_return_void_mutation(args, ["input"]); const $result = resource_return_void_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43744,9 +36319,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43754,7 +36338,7 @@ export const plans = { }, mutationIntervalSet: { plan($root, args, _info) { - const selectArgs = makeArgs85(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_set(args, ["input"]); const $result = resource_mutation_interval_setPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43764,9 +36348,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43774,7 +36367,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs86(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43784,9 +36377,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43794,7 +36396,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs87(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43804,9 +36406,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43814,7 +36425,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs88(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43824,9 +36435,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43834,7 +36454,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs89(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43844,9 +36464,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43854,7 +36483,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs90(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43864,9 +36493,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43874,7 +36512,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs91(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43884,9 +36522,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43894,7 +36541,7 @@ export const plans = { }, add1Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs92(args, ["input"]); + const selectArgs = makeArgs_add_1_mutation(args, ["input"]); const $result = resource_add_1_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43904,9 +36551,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43914,7 +36570,7 @@ export const plans = { }, add2Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs93(args, ["input"]); + const selectArgs = makeArgs_add_2_mutation(args, ["input"]); const $result = resource_add_2_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43924,9 +36580,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43934,7 +36599,7 @@ export const plans = { }, add3Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs94(args, ["input"]); + const selectArgs = makeArgs_add_3_mutation(args, ["input"]); const $result = resource_add_3_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43944,9 +36609,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43954,7 +36628,7 @@ export const plans = { }, add4Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs95(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation(args, ["input"]); const $result = resource_add_4_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43964,9 +36638,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43974,7 +36657,7 @@ export const plans = { }, add4MutationError: { plan($root, args, _info) { - const selectArgs = makeArgs96(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation_error(args, ["input"]); const $result = resource_add_4_mutation_errorPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43984,9 +36667,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43994,7 +36686,7 @@ export const plans = { }, mult1: { plan($root, args, _info) { - const selectArgs = makeArgs97(args, ["input"]); + const selectArgs = makeArgs_mult_1(args, ["input"]); const $result = resource_mult_1PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44004,9 +36696,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44014,7 +36715,7 @@ export const plans = { }, mult2: { plan($root, args, _info) { - const selectArgs = makeArgs98(args, ["input"]); + const selectArgs = makeArgs_mult_2(args, ["input"]); const $result = resource_mult_2PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44024,9 +36725,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44034,7 +36744,7 @@ export const plans = { }, mult3: { plan($root, args, _info) { - const selectArgs = makeArgs99(args, ["input"]); + const selectArgs = makeArgs_mult_3(args, ["input"]); const $result = resource_mult_3PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44044,9 +36754,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44054,7 +36773,7 @@ export const plans = { }, mult4: { plan($root, args, _info) { - const selectArgs = makeArgs100(args, ["input"]); + const selectArgs = makeArgs_mult_4(args, ["input"]); const $result = resource_mult_4PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44064,9 +36783,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44074,7 +36802,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs101(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44084,9 +36812,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44094,7 +36831,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs102(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44104,9 +36841,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44114,7 +36860,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs103(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44124,9 +36870,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44134,7 +36889,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs104(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44144,9 +36899,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44154,7 +36918,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs105(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44164,9 +36928,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44174,7 +36947,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs106(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44184,9 +36957,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44194,7 +36976,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs107(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44204,9 +36986,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44214,7 +37005,7 @@ export const plans = { }, guidFn: { plan($root, args, _info) { - const selectArgs = makeArgs108(args, ["input"]); + const selectArgs = makeArgs_guid_fn(args, ["input"]); const $result = resource_guid_fnPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44224,9 +37015,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44234,7 +37034,7 @@ export const plans = { }, mutationIntervalArray: { plan($root, args, _info) { - const selectArgs = makeArgs109(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_array(args, ["input"]); const $result = resource_mutation_interval_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44244,9 +37044,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44254,7 +37063,7 @@ export const plans = { }, mutationTextArray: { plan($root, args, _info) { - const selectArgs = makeArgs110(args, ["input"]); + const selectArgs = makeArgs_mutation_text_array(args, ["input"]); const $result = resource_mutation_text_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44264,9 +37073,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44274,7 +37092,7 @@ export const plans = { }, listBdeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs111(args, ["input"]); + const selectArgs = makeArgs_list_bde_mutation(args, ["input"]); const $result = resource_list_bde_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44284,9 +37102,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44294,7 +37121,7 @@ export const plans = { }, authenticateFail: { plan($root, args, _info) { - const selectArgs = makeArgs112(args, ["input"]); + const selectArgs = makeArgs_authenticate_fail(args, ["input"]); const $result = resource_authenticate_failPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44304,9 +37131,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44314,7 +37150,7 @@ export const plans = { }, authenticate: { plan($root, args, _info) { - const selectArgs = makeArgs113(args, ["input"]); + const selectArgs = makeArgs_authenticate(args, ["input"]); const $result = resource_authenticatePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44324,9 +37160,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44334,7 +37179,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs114(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44344,9 +37189,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44354,7 +37208,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs115(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44364,9 +37218,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44374,7 +37237,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs116(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44384,9 +37247,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44394,7 +37266,7 @@ export const plans = { }, authenticateMany: { plan($root, args, _info) { - const selectArgs = makeArgs117(args, ["input"]); + const selectArgs = makeArgs_authenticate_many(args, ["input"]); const $result = resource_authenticate_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44404,9 +37276,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44414,7 +37295,7 @@ export const plans = { }, authenticatePayload: { plan($root, args, _info) { - const selectArgs = makeArgs118(args, ["input"]); + const selectArgs = makeArgs_authenticate_payload(args, ["input"]); const $result = resource_authenticate_payloadPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44424,9 +37305,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44434,7 +37324,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs119(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44444,9 +37334,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44454,7 +37353,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs120(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44464,9 +37363,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44474,7 +37382,7 @@ export const plans = { }, compoundTypeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs121(args, ["input"]); + const selectArgs = makeArgs_compound_type_mutation(args, ["input"]); const $result = resource_compound_type_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44484,9 +37392,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44494,7 +37411,7 @@ export const plans = { }, compoundTypeSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs122(args, ["input"]); + const selectArgs = makeArgs_compound_type_set_mutation(args, ["input"]); const $result = resource_compound_type_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44504,9 +37421,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44514,7 +37440,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs123(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44524,9 +37450,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44534,7 +37469,7 @@ export const plans = { }, postWithSuffix: { plan($root, args, _info) { - const selectArgs = makeArgs124(args, ["input"]); + const selectArgs = makeArgs_post_with_suffix(args, ["input"]); const $result = resource_post_with_suffixPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44544,9 +37479,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44554,7 +37498,7 @@ export const plans = { }, mutationCompoundTypeArray: { plan($root, args, _info) { - const selectArgs = makeArgs125(args, ["input"]); + const selectArgs = makeArgs_mutation_compound_type_array(args, ["input"]); const $result = resource_mutation_compound_type_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44564,9 +37508,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44574,7 +37527,7 @@ export const plans = { }, compoundTypeArrayMutation: { plan($root, args, _info) { - const selectArgs = makeArgs126(args, ["input"]); + const selectArgs = makeArgs_compound_type_array_mutation(args, ["input"]); const $result = resource_compound_type_array_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44584,9 +37537,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44594,7 +37556,7 @@ export const plans = { }, postMany: { plan($root, args, _info) { - const selectArgs = makeArgs127(args, ["input"]); + const selectArgs = makeArgs_post_many(args, ["input"]); const $result = resource_post_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44604,9 +37566,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44614,7 +37585,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs128(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44624,9 +37595,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44634,7 +37614,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs129(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44644,9 +37624,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44654,7 +37643,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs130(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44664,9 +37653,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44674,7 +37672,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs131(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44684,9 +37682,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44694,7 +37701,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs132(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44704,9 +37711,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44714,7 +37730,7 @@ export const plans = { }, typeFunctionConnectionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs133(args, ["input"]); + const selectArgs = makeArgs_type_function_connection_mutation(args, ["input"]); const $result = resource_type_function_connection_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44724,9 +37740,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44734,7 +37759,7 @@ export const plans = { }, typeFunctionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs134(args, ["input"]); + const selectArgs = makeArgs_type_function_mutation(args, ["input"]); const $result = resource_type_function_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44744,9 +37769,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44754,7 +37788,7 @@ export const plans = { }, typeFunctionListMutation: { plan($root, args, _info) { - const selectArgs = makeArgs135(args, ["input"]); + const selectArgs = makeArgs_type_function_list_mutation(args, ["input"]); const $result = resource_type_function_list_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44764,9 +37798,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44774,17 +37817,17 @@ export const plans = { }, createInput: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_inputsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_inputsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44794,17 +37837,17 @@ export const plans = { }, createPatch: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_patchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_patchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44814,17 +37857,17 @@ export const plans = { }, createReserved: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44834,17 +37877,17 @@ export const plans = { }, createReservedPatchRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44854,17 +37897,17 @@ export const plans = { }, createReservedInputRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44874,17 +37917,17 @@ export const plans = { }, createDefaultValue: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44894,17 +37937,17 @@ export const plans = { }, createForeignKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44914,17 +37957,17 @@ export const plans = { }, createNoPrimaryKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44934,17 +37977,17 @@ export const plans = { }, createTestview: { plan(_, args) { + const $insert = pgInsertSingle(resource_testviewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_testviewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44954,17 +37997,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44974,17 +38017,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44994,17 +38037,17 @@ export const plans = { }, createViewTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45014,17 +38057,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45034,17 +38077,17 @@ export const plans = { }, createSimilarTable1: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45054,17 +38097,17 @@ export const plans = { }, createSimilarTable2: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45074,17 +38117,17 @@ export const plans = { }, createUpdatableView: { plan(_, args) { + const $insert = pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45094,17 +38137,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45114,17 +38157,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45134,17 +38177,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45154,17 +38197,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45174,17 +38217,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45194,17 +38237,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45214,17 +38257,17 @@ export const plans = { }, createList: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_listsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_listsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45234,17 +38277,17 @@ export const plans = { }, createType: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45254,11 +38297,11 @@ export const plans = { }, updateInput: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45273,13 +38316,13 @@ export const plans = { }, updateInputById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45294,11 +38337,11 @@ export const plans = { }, updatePatch: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45313,13 +38356,13 @@ export const plans = { }, updatePatchById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45334,11 +38377,11 @@ export const plans = { }, updateReserved: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45353,13 +38396,13 @@ export const plans = { }, updateReservedById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45374,11 +38417,11 @@ export const plans = { }, updateReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45393,13 +38436,13 @@ export const plans = { }, updateReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45414,11 +38457,11 @@ export const plans = { }, updateReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45433,13 +38476,13 @@ export const plans = { }, updateReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45454,11 +38497,11 @@ export const plans = { }, updateDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45473,13 +38516,13 @@ export const plans = { }, updateDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45494,13 +38537,13 @@ export const plans = { }, updateNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45515,11 +38558,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45534,13 +38577,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45555,11 +38598,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45574,13 +38617,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45595,11 +38638,11 @@ export const plans = { }, updateViewTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45614,13 +38657,13 @@ export const plans = { }, updateViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45635,11 +38678,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45654,14 +38697,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45676,11 +38719,11 @@ export const plans = { }, updateSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45695,13 +38738,13 @@ export const plans = { }, updateSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45716,11 +38759,11 @@ export const plans = { }, updateSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45735,13 +38778,13 @@ export const plans = { }, updateSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45756,11 +38799,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45775,13 +38818,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45796,11 +38839,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45815,13 +38858,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45836,13 +38879,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45857,11 +38900,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45876,13 +38919,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45897,11 +38940,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45916,13 +38959,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45937,11 +38980,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45956,13 +38999,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45977,13 +39020,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45998,11 +39041,11 @@ export const plans = { }, updateList: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)) + const $update = pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46017,13 +39060,13 @@ export const plans = { }, updateListById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46038,11 +39081,11 @@ export const plans = { }, updateType: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)) + const $update = pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46057,13 +39100,13 @@ export const plans = { }, updateTypeById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46078,11 +39121,11 @@ export const plans = { }, deleteInput: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46097,13 +39140,13 @@ export const plans = { }, deleteInputById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46118,11 +39161,11 @@ export const plans = { }, deletePatch: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46137,13 +39180,13 @@ export const plans = { }, deletePatchById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46158,11 +39201,11 @@ export const plans = { }, deleteReserved: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46177,13 +39220,13 @@ export const plans = { }, deleteReservedById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46198,11 +39241,11 @@ export const plans = { }, deleteReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46217,13 +39260,13 @@ export const plans = { }, deleteReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46238,11 +39281,11 @@ export const plans = { }, deleteReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46257,13 +39300,13 @@ export const plans = { }, deleteReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46278,11 +39321,11 @@ export const plans = { }, deleteDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46297,13 +39340,13 @@ export const plans = { }, deleteDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46318,13 +39361,13 @@ export const plans = { }, deleteNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46339,11 +39382,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46358,13 +39401,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46379,11 +39422,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46398,13 +39441,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46419,11 +39462,11 @@ export const plans = { }, deleteViewTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46438,13 +39481,13 @@ export const plans = { }, deleteViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46459,11 +39502,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46478,14 +39521,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46500,11 +39543,11 @@ export const plans = { }, deleteSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46519,13 +39562,13 @@ export const plans = { }, deleteSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46540,11 +39583,11 @@ export const plans = { }, deleteSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46559,13 +39602,13 @@ export const plans = { }, deleteSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46580,11 +39623,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46599,13 +39642,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46620,11 +39663,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46639,13 +39682,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46660,13 +39703,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46681,11 +39724,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46700,13 +39743,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46721,11 +39764,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46740,13 +39783,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46761,11 +39804,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46780,13 +39823,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46801,13 +39844,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46822,11 +39865,11 @@ export const plans = { }, deleteList: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)) + const $delete = pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46841,13 +39884,13 @@ export const plans = { }, deleteListById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46862,11 +39905,11 @@ export const plans = { }, deleteType: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)) + const $delete = pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46881,13 +39924,13 @@ export const plans = { }, deleteTypeById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46904,7 +39947,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -46915,16 +39959,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -46935,16 +39979,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46955,16 +39999,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46975,16 +40019,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ReturnVoidMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, query() { return rootValue(); @@ -46992,16 +40036,16 @@ export const plans = { }, ReturnVoidMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationIntervalSetPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, we($object) { return $object.get("result"); @@ -47012,16 +40056,16 @@ export const plans = { }, MutationIntervalSetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -47032,17 +40076,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -47053,17 +40097,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47074,17 +40118,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47095,17 +40139,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47116,17 +40160,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47137,17 +40181,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, Add1MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47158,10 +40202,9 @@ export const plans = { }, Add1MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47169,7 +40212,8 @@ export const plans = { Add2MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47180,10 +40224,9 @@ export const plans = { }, Add2MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -47191,7 +40234,8 @@ export const plans = { Add3MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47202,10 +40246,9 @@ export const plans = { }, Add3MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, arg1: undefined @@ -47213,7 +40256,8 @@ export const plans = { Add4MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47224,10 +40268,9 @@ export const plans = { }, Add4MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47235,7 +40278,8 @@ export const plans = { Add4MutationErrorPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47246,10 +40290,9 @@ export const plans = { }, Add4MutationErrorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47257,7 +40300,8 @@ export const plans = { Mult1Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47268,10 +40312,9 @@ export const plans = { }, Mult1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47279,7 +40322,8 @@ export const plans = { Mult2Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47290,10 +40334,9 @@ export const plans = { }, Mult2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47301,7 +40344,8 @@ export const plans = { Mult3Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47312,10 +40356,9 @@ export const plans = { }, Mult3Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47323,7 +40366,8 @@ export const plans = { Mult4Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47334,10 +40378,9 @@ export const plans = { }, Mult4Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47345,7 +40388,8 @@ export const plans = { MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -47356,10 +40400,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -47367,7 +40410,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47387,16 +40431,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47416,16 +40460,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47445,16 +40489,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -47465,10 +40509,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -47477,7 +40520,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47500,16 +40544,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47529,17 +40573,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, GuidFnPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, guid($object) { return $object.get("result"); @@ -47555,17 +40599,17 @@ export const plans = { }, GuidFnInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, g: undefined }, MutationIntervalArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, we($object) { return $object.get("result"); @@ -47576,16 +40620,16 @@ export const plans = { }, MutationIntervalArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationTextArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, strings($object) { return $object.get("result"); @@ -47596,16 +40640,16 @@ export const plans = { }, MutationTextArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ListBdeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, uuids($object) { return $object.get("result"); @@ -47616,10 +40660,9 @@ export const plans = { }, ListBdeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, b: undefined, d: undefined, @@ -47628,7 +40671,8 @@ export const plans = { AuthenticateFailPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47657,16 +40701,16 @@ export const plans = { }, AuthenticateFailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticatePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47677,10 +40721,9 @@ export const plans = { }, AuthenticateInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47689,7 +40732,8 @@ export const plans = { LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -47697,7 +40741,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47713,9 +40757,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47731,50 +40773,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -47782,7 +40826,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47798,9 +40842,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47811,16 +40853,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -47831,16 +40873,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticateManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtTokens($object) { return $object.get("result"); @@ -47851,10 +40893,9 @@ export const plans = { }, AuthenticateManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47863,7 +40904,8 @@ export const plans = { AuthenticatePayloadPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, authPayload($object) { return $object.get("result"); @@ -47902,10 +40944,9 @@ export const plans = { }, AuthenticatePayloadInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47914,7 +40955,8 @@ export const plans = { TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -47925,10 +40967,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47940,7 +40981,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47966,17 +41008,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, CompoundTypeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundType($object) { return $object.get("result"); @@ -47987,17 +41029,17 @@ export const plans = { }, CompoundTypeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48008,17 +41050,17 @@ export const plans = { }, CompoundTypeSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48026,7 +41068,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48042,9 +41084,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48060,17 +41100,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, PostWithSuffixPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48078,7 +41118,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48094,9 +41134,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48112,65 +41150,69 @@ export const plans = { }, PostWithSuffixInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: undefined, suffix: undefined }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, MutationCompoundTypeArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48181,17 +41223,17 @@ export const plans = { }, MutationCompoundTypeArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeArrayMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48202,17 +41244,17 @@ export const plans = { }, CompoundTypeArrayMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, PostManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, posts($object) { return $object.get("result"); @@ -48223,17 +41265,17 @@ export const plans = { }, PostManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, posts: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -48268,10 +41310,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48279,7 +41320,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -48314,10 +41356,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48325,7 +41366,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -48333,7 +41375,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48349,9 +41391,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48362,16 +41402,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48382,16 +41422,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48402,16 +41442,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionConnectionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48422,16 +41462,16 @@ export const plans = { }, TypeFunctionConnectionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -48439,7 +41479,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48455,9 +41495,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48478,17 +41516,17 @@ export const plans = { }, TypeFunctionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, TypeFunctionListMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48499,16 +41537,16 @@ export const plans = { }, TypeFunctionListMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateInputPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -48516,7 +41554,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48532,9 +41570,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48545,35 +41581,34 @@ export const plans = { }, CreateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, input: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, InputInput: { - "__inputPlan": function InputInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePatchPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -48581,7 +41616,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48597,9 +41632,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48610,35 +41643,34 @@ export const plans = { }, CreatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PatchInput: { - "__inputPlan": function PatchInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -48646,7 +41678,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48662,9 +41694,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48675,35 +41705,34 @@ export const plans = { }, CreateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reserved: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInput: { - "__inputPlan": function ReservedInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPatchRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -48711,7 +41740,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48727,9 +41756,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48740,35 +41767,34 @@ export const plans = { }, CreateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedPatchRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedPatchRecordInput: { - "__inputPlan": function ReservedPatchRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedInputRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -48776,7 +41802,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48792,9 +41818,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48805,35 +41829,34 @@ export const plans = { }, CreateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedInputRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInputRecordInput: { - "__inputPlan": function ReservedInputRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateDefaultValuePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -48841,7 +41864,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48857,9 +41880,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48870,42 +41891,42 @@ export const plans = { }, CreateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, defaultValue: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, DefaultValueInput: { - "__inputPlan": function DefaultValueInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, CreateForeignKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, foreignKey($object) { return $object.get("result"); @@ -48927,49 +41948,50 @@ export const plans = { }, CreateForeignKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, foreignKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ForeignKeyInput: { - "__inputPlan": function ForeignKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey1: { - applyPlan($insert, val) { - $insert.set("compound_key_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_1", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey2: { - applyPlan($insert, val) { - $insert.set("compound_key_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNoPrimaryKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -48980,42 +42002,42 @@ export const plans = { }, CreateNoPrimaryKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, noPrimaryKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NoPrimaryKeyInput: { - "__inputPlan": function NoPrimaryKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTestviewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, testview($object) { return $object.get("result"); @@ -49026,49 +42048,50 @@ export const plans = { }, CreateTestviewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, testview: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TestviewInput: { - "__inputPlan": function TestviewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, testviewid: { - applyPlan($insert, val) { - $insert.set("testviewid", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("testviewid", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -49076,7 +42099,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49092,9 +42115,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49105,42 +42126,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -49148,7 +42169,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49164,9 +42185,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49182,42 +42201,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateViewTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -49225,7 +42244,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49241,9 +42260,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49254,49 +42271,50 @@ export const plans = { }, CreateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, viewTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ViewTableInput: { - "__inputPlan": function ViewTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -49304,7 +42322,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49320,9 +42338,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49343,49 +42359,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable1Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -49393,7 +42410,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49409,9 +42426,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49422,56 +42437,58 @@ export const plans = { }, CreateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable1: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable1Input: { - "__inputPlan": function SimilarTable1Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable2Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -49479,7 +42496,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49495,9 +42512,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49508,56 +42523,58 @@ export const plans = { }, CreateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable2: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable2Input: { - "__inputPlan": function SimilarTable2Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, CreateUpdatableViewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, updatableView($object) { return $object.get("result"); @@ -49568,56 +42585,58 @@ export const plans = { }, CreateUpdatableViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, updatableView: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UpdatableViewInput: { - "__inputPlan": function UpdatableViewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, x: { - applyPlan($insert, val) { - $insert.set("x", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("x", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } }, constant: { - applyPlan($insert, val) { - $insert.set("constant", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constant", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -49625,7 +42644,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49641,9 +42660,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49654,56 +42671,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -49714,49 +42733,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -49764,7 +42784,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49780,9 +42800,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49798,56 +42816,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -49855,7 +42875,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49871,9 +42891,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49884,42 +42902,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -49927,7 +42945,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49943,9 +42961,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49961,23 +42977,23 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -49985,7 +43001,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50001,9 +43017,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50014,105 +43028,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, CreateListPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -50120,7 +43143,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50136,9 +43159,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50149,119 +43170,130 @@ export const plans = { }, CreateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, list: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ListInput: { - "__inputPlan": function ListInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -50269,7 +43301,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50285,9 +43317,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50308,371 +43338,418 @@ export const plans = { }, CreateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, type: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TypeInput: { - "__inputPlan": function TypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -50680,7 +43757,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50696,9 +43773,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50709,48 +43784,50 @@ export const plans = { }, UpdateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, InputPatch: { - "__inputPlan": function InputPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -50758,7 +43835,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50774,9 +43851,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50787,48 +43862,50 @@ export const plans = { }, UpdatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PatchPatch: { - "__inputPlan": function PatchPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -50836,7 +43913,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50852,9 +43929,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50865,48 +43940,50 @@ export const plans = { }, UpdateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatch: { - "__inputPlan": function ReservedPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -50914,7 +43991,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50930,9 +44007,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50943,48 +44018,50 @@ export const plans = { }, UpdateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatchRecordPatch: { - "__inputPlan": function ReservedPatchRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -50992,7 +44069,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51008,9 +44085,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51021,48 +44096,50 @@ export const plans = { }, UpdateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedInputRecordPatch: { - "__inputPlan": function ReservedInputRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -51070,7 +44147,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51086,9 +44163,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51099,55 +44174,58 @@ export const plans = { }, UpdateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DefaultValuePatch: { - "__inputPlan": function DefaultValuePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -51158,41 +44236,43 @@ export const plans = { }, UpdateNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, noPrimaryKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NoPrimaryKeyPatch: { - "__inputPlan": function NoPrimaryKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -51200,7 +44280,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51216,9 +44296,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51229,55 +44307,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -51285,7 +44366,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51301,9 +44382,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51319,55 +44398,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -51375,7 +44457,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51391,9 +44473,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51404,62 +44484,66 @@ export const plans = { }, UpdateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ViewTablePatch: { - "__inputPlan": function ViewTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -51467,7 +44551,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51483,9 +44567,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51506,63 +44588,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -51570,7 +44656,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51586,9 +44672,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51599,69 +44683,74 @@ export const plans = { }, UpdateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable1Patch: { - "__inputPlan": function SimilarTable1Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -51669,7 +44758,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51685,9 +44774,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51698,69 +44785,74 @@ export const plans = { }, UpdateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable2Patch: { - "__inputPlan": function SimilarTable2Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -51768,7 +44860,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51784,9 +44876,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51797,69 +44887,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -51867,7 +44962,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51883,9 +44978,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51901,83 +44994,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -51985,7 +45084,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52001,9 +45100,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52014,55 +45111,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -52070,7 +45170,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52086,9 +45186,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52104,83 +45202,90 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -52188,7 +45293,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52204,9 +45309,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52217,132 +45320,145 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -52350,7 +45466,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52366,9 +45482,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52379,132 +45493,146 @@ export const plans = { }, UpdateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ListPatch: { - "__inputPlan": function ListPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -52512,7 +45640,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52528,9 +45656,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52551,384 +45677,434 @@ export const plans = { }, UpdateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TypePatch: { - "__inputPlan": function TypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -52941,7 +46117,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52957,9 +46133,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52970,16 +46144,16 @@ export const plans = { }, DeleteInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -52987,7 +46161,8 @@ export const plans = { DeletePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -53000,7 +46175,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53016,9 +46191,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53029,16 +46202,16 @@ export const plans = { }, DeletePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53046,7 +46219,8 @@ export const plans = { DeleteReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -53059,7 +46233,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53075,9 +46249,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53088,16 +46260,16 @@ export const plans = { }, DeleteReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53105,7 +46277,8 @@ export const plans = { DeleteReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -53118,7 +46291,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53134,9 +46307,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53147,16 +46318,16 @@ export const plans = { }, DeleteReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53164,7 +46335,8 @@ export const plans = { DeleteReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -53177,7 +46349,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53193,9 +46365,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53206,16 +46376,16 @@ export const plans = { }, DeleteReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53223,7 +46393,8 @@ export const plans = { DeleteDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -53236,7 +46407,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53252,9 +46423,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53265,16 +46434,16 @@ export const plans = { }, DeleteDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53282,7 +46451,8 @@ export const plans = { DeleteNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -53293,8 +46463,8 @@ export const plans = { }, DeleteNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53302,7 +46472,8 @@ export const plans = { DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -53315,7 +46486,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53331,9 +46502,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53344,16 +46513,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53361,7 +46530,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -53374,7 +46544,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53390,9 +46560,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53408,16 +46576,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53425,7 +46593,8 @@ export const plans = { DeleteViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -53438,7 +46607,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53454,9 +46623,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53467,16 +46634,16 @@ export const plans = { }, DeleteViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53484,7 +46651,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -53497,7 +46665,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53513,9 +46681,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53536,16 +46702,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -53554,7 +46720,8 @@ export const plans = { DeleteSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -53567,7 +46734,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53583,9 +46750,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53596,16 +46761,16 @@ export const plans = { }, DeleteSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53613,7 +46778,8 @@ export const plans = { DeleteSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -53626,7 +46792,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53642,9 +46808,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53655,16 +46819,16 @@ export const plans = { }, DeleteSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53672,7 +46836,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -53685,7 +46850,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53701,9 +46866,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53714,16 +46877,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53731,7 +46894,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -53744,7 +46908,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53760,9 +46924,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53778,24 +46940,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53803,7 +46965,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -53816,7 +46979,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53832,9 +46995,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53845,16 +47006,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53862,7 +47023,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -53875,7 +47037,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53891,9 +47053,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53909,16 +47069,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53926,7 +47086,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -53939,7 +47100,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53955,9 +47116,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53968,24 +47127,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined @@ -53993,7 +47152,8 @@ export const plans = { DeleteListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -54006,7 +47166,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54022,9 +47182,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54035,16 +47193,16 @@ export const plans = { }, DeleteListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -54052,7 +47210,8 @@ export const plans = { DeleteTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -54065,7 +47224,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54081,9 +47240,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54104,16 +47261,16 @@ export const plans = { }, DeleteTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/js-reserved.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/js-reserved.1.export.mjs index bf7b2d3465..a4a23e8659 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/js-reserved.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/js-reserved.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, enumCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgSelectSingleStep, TYPES, assertPgClassSingleStep, enumCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler_codec_base64JSON = { name: "base64JSON", encode: (() => { @@ -111,7 +110,7 @@ const spec_relationalTopics = { }; const relationalTopicsCodec = recordCodec(spec_relationalTopics); const __proto__Identifier = sql.identifier("js_reserved", "__proto__"); -const spec___proto__ = { +const __proto__Codec = recordCodec({ name: "__proto__", identifier: __proto__Identifier, attributes: { @@ -157,10 +156,9 @@ const spec___proto__ = { } }, executor: executor -}; -const __proto__Codec = recordCodec(spec___proto__); +}); const buildingIdentifier = sql.identifier("js_reserved", "building"); -const spec_building = { +const buildingCodec = recordCodec({ name: "building", identifier: buildingIdentifier, attributes: { @@ -206,10 +204,9 @@ const spec_building = { } }, executor: executor -}; -const buildingCodec = recordCodec(spec_building); +}); const constructorIdentifier = sql.identifier("js_reserved", "constructor"); -const spec_constructor = { +const constructorCodec = recordCodec({ name: "constructor", identifier: constructorIdentifier, attributes: { @@ -255,10 +252,9 @@ const spec_constructor = { } }, executor: executor -}; -const constructorCodec = recordCodec(spec_constructor); +}); const cropIdentifier = sql.identifier("js_reserved", "crop"); -const spec_crop = { +const cropCodec = recordCodec({ name: "crop", identifier: cropIdentifier, attributes: { @@ -304,10 +300,9 @@ const spec_crop = { } }, executor: executor -}; -const cropCodec = recordCodec(spec_crop); +}); const machineIdentifier = sql.identifier("js_reserved", "machine"); -const spec_machine = { +const machineCodec = recordCodec({ name: "machine", identifier: machineIdentifier, attributes: { @@ -353,10 +348,9 @@ const spec_machine = { } }, executor: executor -}; -const machineCodec = recordCodec(spec_machine); +}); const materialIdentifier = sql.identifier("js_reserved", "material"); -const spec_material = { +const materialCodec = recordCodec({ name: "material", identifier: materialIdentifier, attributes: { @@ -402,10 +396,9 @@ const spec_material = { } }, executor: executor -}; -const materialCodec = recordCodec(spec_material); +}); const nullIdentifier = sql.identifier("js_reserved", "null"); -const spec_null = { +const nullCodec = recordCodec({ name: "null", identifier: nullIdentifier, attributes: { @@ -451,10 +444,9 @@ const spec_null = { } }, executor: executor -}; -const nullCodec = recordCodec(spec_null); +}); const projectIdentifier = sql.identifier("js_reserved", "project"); -const spec_project = { +const projectCodec = recordCodec({ name: "project", identifier: projectIdentifier, attributes: Object.fromEntries([["id", { @@ -495,10 +487,9 @@ const spec_project = { } }, executor: executor -}; -const projectCodec = recordCodec(spec_project); +}); const relationalStatusIdentifier = sql.identifier("js_reserved", "relational_status"); -const spec_relationalStatus = { +const relationalStatusCodec = recordCodec({ name: "relationalStatus", identifier: relationalStatusIdentifier, attributes: { @@ -568,10 +559,9 @@ const spec_relationalStatus = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalStatusCodec = recordCodec(spec_relationalStatus); +}); const yieldIdentifier = sql.identifier("js_reserved", "yield"); -const spec_yield = { +const yieldCodec = recordCodec({ name: "yield", identifier: yieldIdentifier, attributes: { @@ -617,10 +607,9 @@ const spec_yield = { } }, executor: executor -}; -const yieldCodec = recordCodec(spec_yield); +}); const reservedIdentifier = sql.identifier("js_reserved", "reserved"); -const spec_reserved = { +const reservedCodec = recordCodec({ name: "reserved", identifier: reservedIdentifier, attributes: { @@ -675,8 +664,7 @@ const spec_reserved = { } }, executor: executor -}; -const reservedCodec = recordCodec(spec_reserved); +}); const relationalItemsIdentifier = sql.identifier("js_reserved", "relational_items"); const spec_relationalItems = { name: "relationalItems", @@ -1619,6 +1607,9 @@ const handler = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_relational_topicsPgResource.get(spec); }, @@ -1670,6 +1661,9 @@ const handler2 = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return building_buildingPgResource.get(spec); }, @@ -1684,26 +1678,9 @@ const specFromRecord = $record => { return memo; }, Object.create(null)); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} const specFromRecord2 = $record => { return registryConfig.pgRelations.building.relationalItemsByTheirConstructor.remoteAttributes.reduce((memo, remoteAttributeName, i) => { memo[remoteAttributeName] = $record.get(registryConfig.pgRelations.building.relationalItemsByTheirConstructor.localAttributes[i]); @@ -1722,6 +1699,9 @@ const handler3 = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return otherSource_machinePgResource.get(spec); }, @@ -1751,6 +1731,9 @@ const handler4 = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_relational_statusPgResource.get(spec); }, @@ -1764,6 +1747,9 @@ const handler5 = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -1800,6 +1786,9 @@ const nodeIdHandlerByTypeName = { }, Object.create(null)); return spec; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource___proto__PgResource.get(spec); }, @@ -1820,6 +1809,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_constructorPgResource.get(spec); }, @@ -1839,6 +1831,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_cropPgResource.get(spec); }, @@ -1859,6 +1854,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_materialPgResource.get(spec); }, @@ -1878,6 +1876,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_nullPgResource.get(spec); }, @@ -1897,6 +1898,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_projectPgResource.get(spec); }, @@ -1917,6 +1921,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_yieldPgResource.get(spec); }, @@ -1936,6 +1943,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPgResource.get(spec); }, @@ -1969,7 +1979,7 @@ const detailsByAttributeName4 = Object.fromEntries([["__proto__", { graphqlName: "_proto__", codec: TYPES.text }]]); -const argDetailsSimple = [{ +const argDetailsSimple_await = [{ graphqlArgName: "yield", postgresArgName: "yield", pgCodec: TYPES.int, @@ -1994,52 +2004,25 @@ const argDetailsSimple = [{ required: true, fetcher: null }]; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 4; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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; -}; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_await = (args, path = []) => argDetailsSimple_await.map(details => makeArg(path, args, details)); const resource_awaitPgResource = registry.pgResources["await"]; -const argDetailsSimple2 = [{ +const argDetailsSimple_case = [{ graphqlArgName: "yield", postgresArgName: "yield", pgCodec: TYPES.int, @@ -2064,52 +2047,9 @@ const argDetailsSimple2 = [{ required: true, fetcher: null }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 4; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_case = (args, path = []) => argDetailsSimple_case.map(details => makeArg(path, args, details)); const resource_casePgResource = registry.pgResources["case"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_valueOf = [{ graphqlArgName: "yield", postgresArgName: "yield", pgCodec: TYPES.int, @@ -2134,55 +2074,13 @@ const argDetailsSimple3 = [{ required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 4; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_valueOf = (args, path = []) => argDetailsSimple_valueOf.map(details => makeArg(path, args, details)); const resource_valueOfPgResource = registry.pgResources["valueOf"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -2296,7 +2194,7 @@ const fetcher12 = (handler => { function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = [{ +const argDetailsSimple_null_yield = [{ graphqlArgName: "yield", postgresArgName: "yield", pgCodec: TYPES.int, @@ -2321,185 +2219,142 @@ const argDetailsSimple4 = [{ required: true, fetcher: null }]; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 4; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 makeArgs_null_yield = (args, path = []) => argDetailsSimple_null_yield.map(details => makeArg(path, args, details)); const resource_null_yieldPgResource = registry.pgResources["null_yield"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName._Proto__, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler2, $nodeId); }; const uniqueAttributes = [["constructor", "constructor"]]; const specFromArgs3 = args => { return uniqueAttributes.reduce((memo, [attributeName, fieldName]) => { - memo[attributeName] = args.get(["input", fieldName]); + memo[attributeName] = args.getRaw(["input", fieldName]); return memo; }, Object.create(null)); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Constructor, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Crop, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler3, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Material, $nodeId); }; const uniqueAttributes2 = [["valueOf", "valueOf"]]; const specFromArgs8 = args => { return uniqueAttributes2.reduce((memo, [attributeName, fieldName]) => { - memo[attributeName] = args.get(["input", fieldName]); + memo[attributeName] = args.getRaw(["input", fieldName]); return memo; }, Object.create(null)); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Null, $nodeId); }; const uniqueAttributes3 = [["hasOwnProperty", "hasOwnProperty"]]; const specFromArgs10 = args => { return uniqueAttributes3.reduce((memo, [attributeName, fieldName]) => { - memo[attributeName] = args.get(["input", fieldName]); + memo[attributeName] = args.getRaw(["input", fieldName]); return memo; }, Object.create(null)); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Project, $nodeId); }; const uniqueAttributes4 = [["__proto__", "_proto__"]]; const specFromArgs12 = args => { return uniqueAttributes4.reduce((memo, [attributeName, fieldName]) => { - memo[attributeName] = args.get(["input", fieldName]); + memo[attributeName] = args.getRaw(["input", fieldName]); return memo; }, Object.create(null)); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Yield, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs15 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName._Proto__, $nodeId); }; const specFromArgs16 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler2, $nodeId); }; const uniqueAttributes5 = [["constructor", "constructor"]]; const specFromArgs17 = args => { return uniqueAttributes5.reduce((memo, [attributeName, fieldName]) => { - memo[attributeName] = args.get(["input", fieldName]); + memo[attributeName] = args.getRaw(["input", fieldName]); return memo; }, Object.create(null)); }; const specFromArgs18 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Constructor, $nodeId); }; const specFromArgs19 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Crop, $nodeId); }; const specFromArgs20 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler3, $nodeId); }; const specFromArgs21 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Material, $nodeId); }; const uniqueAttributes6 = [["valueOf", "valueOf"]]; const specFromArgs22 = args => { return uniqueAttributes6.reduce((memo, [attributeName, fieldName]) => { - memo[attributeName] = args.get(["input", fieldName]); + memo[attributeName] = args.getRaw(["input", fieldName]); return memo; }, Object.create(null)); }; const specFromArgs23 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Null, $nodeId); }; const uniqueAttributes7 = [["hasOwnProperty", "hasOwnProperty"]]; const specFromArgs24 = args => { return uniqueAttributes7.reduce((memo, [attributeName, fieldName]) => { - memo[attributeName] = args.get(["input", fieldName]); + memo[attributeName] = args.getRaw(["input", fieldName]); return memo; }, Object.create(null)); }; const specFromArgs25 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Project, $nodeId); }; const uniqueAttributes8 = [["__proto__", "_proto__"]]; const specFromArgs26 = args => { return uniqueAttributes8.reduce((memo, [attributeName, fieldName]) => { - memo[attributeName] = args.get(["input", fieldName]); + memo[attributeName] = args.getRaw(["input", fieldName]); return memo; }, Object.create(null)); }; const specFromArgs27 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Yield, $nodeId); }; const specFromArgs28 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromRecord4 = $record => { @@ -6892,7 +6747,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -6901,7 +6755,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -6910,7 +6763,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -6919,7 +6771,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -6928,7 +6779,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -6937,22 +6787,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MachinesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -6966,7 +6812,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -6975,7 +6820,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -6984,20 +6828,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("MachinesOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -7011,7 +6851,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -7020,7 +6859,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -7029,7 +6867,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -7038,7 +6875,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -7047,7 +6883,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -7056,22 +6891,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -7085,7 +6916,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -7094,7 +6924,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -7103,20 +6932,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -7193,31 +7018,21 @@ export const plans = { } }, MachinesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { machineUniques[0].attributes.forEach(attributeName => { - const attribute = machineCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7226,19 +7041,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { machineUniques[0].attributes.forEach(attributeName => { - const attribute = machineCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7247,11 +7060,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -7259,7 +7069,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7269,11 +7079,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -7281,7 +7088,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7291,11 +7098,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "input", direction: "ASC", ...(undefined != null ? { @@ -7303,7 +7107,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7313,11 +7117,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "input", direction: "DESC", ...(undefined != null ? { @@ -7325,7 +7126,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7335,11 +7136,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constructor", direction: "ASC", ...(undefined != null ? { @@ -7347,7 +7145,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7357,11 +7155,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constructor", direction: "DESC", ...(undefined != null ? { @@ -7369,7 +7164,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7378,8 +7173,8 @@ export const plans = { }, MachineCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7392,17 +7187,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_machine.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, input: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "input", @@ -7415,17 +7208,15 @@ export const plans = { type: "attribute", attribute: "input", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_machine.attributes.input.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constructor: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constructor", @@ -7438,13 +7229,11 @@ export const plans = { type: "attribute", attribute: "constructor", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_machine.attributes.constructor.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalItemsConnection: { @@ -7473,31 +7262,21 @@ export const plans = { } }, RelationalItemsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7506,19 +7285,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7527,11 +7304,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -7539,7 +7313,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7549,11 +7323,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -7561,7 +7332,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7571,11 +7342,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -7583,7 +7351,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7593,11 +7361,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -7605,7 +7370,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7615,11 +7380,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constructor", direction: "ASC", ...(undefined != null ? { @@ -7627,7 +7389,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7637,11 +7399,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constructor", direction: "DESC", ...(undefined != null ? { @@ -7649,7 +7408,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7658,8 +7417,8 @@ export const plans = { }, RelationalItemCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7672,17 +7431,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -7695,17 +7452,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constructor: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constructor", @@ -7718,13 +7473,11 @@ export const plans = { type: "attribute", attribute: "constructor", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.constructor.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalStatus: { @@ -7775,204 +7528,204 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler5.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, relationalTopicById(_$root, args) { return pgResource_relational_topicsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, _protoById(_$root, args) { return pgResource___proto__PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, _protoByName(_$root, args) { return pgResource___proto__PgResource.get({ - name: args.get("name") + name: args.getRaw("name") }); }, buildingById(_$root, args) { return building_buildingPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, buildingByConstructor(_$root, args) { const spec = Object.create(null); for (const attributeName in detailsByAttributeName) { - spec[attributeName] = args.get(detailsByAttributeName[attributeName].graphqlName); + spec[attributeName] = args.getRaw(detailsByAttributeName[attributeName].graphqlName); } return building_buildingPgResource.get(spec); }, constructorById(_$root, args) { return pgResource_constructorPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, constructorByExport(_$root, args) { return pgResource_constructorPgResource.get({ - export: args.get("export") + export: args.getRaw("export") }); }, constructorByName(_$root, args) { return pgResource_constructorPgResource.get({ - name: args.get("name") + name: args.getRaw("name") }); }, cropById(_$root, args) { return pgResource_cropPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, cropByYield(_$root, args) { return pgResource_cropPgResource.get({ - yield: args.get("yield") + yield: args.getRaw("yield") }); }, machineById(_$root, args) { return otherSource_machinePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, materialById(_$root, args) { return pgResource_materialPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, materialByClass(_$root, args) { return pgResource_materialPgResource.get({ - class: args.get("class") + class: args.getRaw("class") }); }, materialByValueOf(_$root, args) { const spec = Object.create(null); for (const attributeName in detailsByAttributeName2) { - spec[attributeName] = args.get(detailsByAttributeName2[attributeName].graphqlName); + spec[attributeName] = args.getRaw(detailsByAttributeName2[attributeName].graphqlName); } return pgResource_materialPgResource.get(spec); }, nullById(_$root, args) { return pgResource_nullPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, nullByBreak(_$root, args) { return pgResource_nullPgResource.get({ - break: args.get("break") + break: args.getRaw("break") }); }, nullByHasOwnProperty(_$root, args) { const spec = Object.create(null); for (const attributeName in detailsByAttributeName3) { - spec[attributeName] = args.get(detailsByAttributeName3[attributeName].graphqlName); + spec[attributeName] = args.getRaw(detailsByAttributeName3[attributeName].graphqlName); } return pgResource_nullPgResource.get(spec); }, projectById(_$root, args) { return pgResource_projectPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, projectByProto__(_$root, args) { const spec = Object.create(null); for (const attributeName in detailsByAttributeName4) { - spec[attributeName] = args.get(detailsByAttributeName4[attributeName].graphqlName); + spec[attributeName] = args.getRaw(detailsByAttributeName4[attributeName].graphqlName); } return pgResource_projectPgResource.get(spec); }, relationalStatusById(_$root, args) { return pgResource_relational_statusPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, yieldById(_$root, args) { return pgResource_yieldPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, yieldByExport(_$root, args) { return pgResource_yieldPgResource.get({ - export: args.get("export") + export: args.getRaw("export") }); }, reservedById(_$root, args) { return pgResource_reservedPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedByCase(_$root, args) { return pgResource_reservedPgResource.get({ - case: args.get("case") + case: args.getRaw("case") }); }, reservedByDo(_$root, args) { return pgResource_reservedPgResource.get({ - do: args.get("do") + do: args.getRaw("do") }); }, reservedByNull(_$root, args) { return pgResource_reservedPgResource.get({ - null: args.get("null") + null: args.getRaw("null") }); }, await($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_await(args); return resource_awaitPgResource.execute(selectArgs); }, case($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_case(args); return resource_casePgResource.execute(selectArgs); }, valueOf($root, args, _info) { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_valueOf(args); return resource_valueOfPgResource.execute(selectArgs); }, relationalTopic(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, _proto__(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, building(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, constructor(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, crop(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, machine(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, material(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, null(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher8($nodeId); }, project(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher9($nodeId); }, relationalStatus(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher10($nodeId); }, yield(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher11($nodeId); }, reserved(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher12($nodeId); }, allRelationalTopicsList: { @@ -7983,7 +7736,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -7992,7 +7744,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8001,20 +7752,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalTopicsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -8028,7 +7775,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8037,7 +7783,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -8046,7 +7791,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8055,7 +7799,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -8064,7 +7807,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -8073,22 +7815,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalTopicsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -8102,7 +7840,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8111,7 +7848,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8120,20 +7856,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("_ProtoSOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -8147,7 +7879,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8156,7 +7887,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -8165,7 +7895,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8174,7 +7903,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -8183,7 +7911,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -8192,22 +7919,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("_ProtoSOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -8221,7 +7944,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8230,7 +7952,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8239,20 +7960,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -8266,7 +7983,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8275,7 +7991,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -8284,7 +7999,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8293,7 +8007,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -8302,7 +8015,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -8311,22 +8023,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -8340,7 +8048,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8349,7 +8056,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8358,20 +8064,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("ConstructorsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -8385,7 +8087,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8394,7 +8095,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -8403,7 +8103,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8412,7 +8111,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -8421,7 +8119,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -8430,22 +8127,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ConstructorsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -8459,7 +8152,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8468,7 +8160,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8477,20 +8168,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("CropsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -8504,7 +8191,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8513,7 +8199,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -8522,7 +8207,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8531,7 +8215,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -8540,7 +8223,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -8549,22 +8231,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CropsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -8578,7 +8256,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8587,7 +8264,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8596,20 +8272,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("MachinesOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -8623,7 +8295,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8632,7 +8303,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -8641,7 +8311,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8650,7 +8319,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -8659,7 +8327,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -8668,22 +8335,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MachinesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -8697,7 +8360,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8706,7 +8368,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8715,20 +8376,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("MaterialsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -8742,7 +8399,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8751,7 +8407,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -8760,7 +8415,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8769,7 +8423,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -8778,7 +8431,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -8787,22 +8439,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MaterialsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -8816,7 +8464,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8825,7 +8472,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8834,20 +8480,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("NullsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -8861,7 +8503,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8870,7 +8511,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -8879,7 +8519,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8888,7 +8527,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -8897,7 +8535,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -8906,22 +8543,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -8935,7 +8568,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8944,7 +8576,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -8953,20 +8584,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("ProjectsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -8980,7 +8607,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -8989,7 +8615,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -8998,7 +8623,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -9007,7 +8631,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -9016,7 +8639,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -9025,22 +8647,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ProjectsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -9054,7 +8672,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -9063,7 +8680,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -9072,20 +8688,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalStatusesOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -9099,7 +8711,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -9108,7 +8719,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -9117,7 +8727,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -9126,7 +8735,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -9135,7 +8743,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -9144,22 +8751,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalStatusesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -9173,7 +8776,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -9182,7 +8784,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -9191,20 +8792,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("YieldsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -9218,7 +8815,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -9227,7 +8823,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -9236,7 +8831,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -9245,7 +8839,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -9254,7 +8847,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -9263,22 +8855,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("YieldsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -9292,7 +8880,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -9301,7 +8888,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -9310,20 +8896,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -9337,7 +8919,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -9346,7 +8927,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -9355,7 +8935,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -9364,7 +8943,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -9373,7 +8951,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -9382,22 +8959,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -9411,7 +8984,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -9420,7 +8992,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -9429,20 +9000,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -9456,7 +9023,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -9465,7 +9031,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -9474,7 +9039,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -9483,7 +9047,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -9492,7 +9055,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -9501,22 +9063,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -9597,7 +9155,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_null_yield(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -9612,27 +9170,21 @@ export const plans = { if (resource_null_yieldPgResource.isUnique && !resource_null_yieldPgResource.codec.attributes && typeof resource_null_yieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_null_yieldPgResource.codec, undefined)`${resource_null_yieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_null_yieldPgResource.from, resource_null_yieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_null_yieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_null_yieldPgResource.execute(selectArgs); @@ -9699,31 +9251,21 @@ export const plans = { } }, RelationalTopicsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_topicsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalTopicsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -9732,19 +9274,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_topicsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalTopicsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -9753,11 +9293,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -9765,7 +9302,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -9775,11 +9312,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -9787,7 +9321,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -9797,11 +9331,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -9809,7 +9340,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -9819,11 +9350,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -9831,7 +9359,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -9841,11 +9369,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -9853,7 +9378,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -9863,11 +9388,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -9875,7 +9397,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -9885,11 +9407,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constructor", direction: "ASC", ...(undefined != null ? { @@ -9897,7 +9416,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -9907,11 +9426,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constructor", direction: "DESC", ...(undefined != null ? { @@ -9919,7 +9435,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -9928,8 +9444,8 @@ export const plans = { }, RelationalTopicCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -9942,17 +9458,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -9965,17 +9479,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -9988,17 +9500,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constructor: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constructor", @@ -10011,13 +9521,11 @@ export const plans = { type: "attribute", attribute: "constructor", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.constructor.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalTopicsConnection: { @@ -10046,31 +9554,21 @@ export const plans = { } }, _ProtoSOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { __proto__Uniques[0].attributes.forEach(attributeName => { - const attribute = __proto__Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10079,19 +9577,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { __proto__Uniques[0].attributes.forEach(attributeName => { - const attribute = __proto__Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10100,11 +9596,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -10112,7 +9605,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10122,11 +9615,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -10134,7 +9624,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10144,11 +9634,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -10156,7 +9643,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10166,11 +9653,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -10178,7 +9662,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10188,11 +9672,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "brand", direction: "ASC", ...(undefined != null ? { @@ -10200,7 +9681,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10210,11 +9691,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "brand", direction: "DESC", ...(undefined != null ? { @@ -10222,7 +9700,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10231,8 +9709,8 @@ export const plans = { }, _ProtoCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -10245,17 +9723,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec___proto__.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -10268,17 +9744,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec___proto__.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, brand: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "brand", @@ -10291,13 +9765,11 @@ export const plans = { type: "attribute", attribute: "brand", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec___proto__.attributes.brand.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, _Proto__SConnection: { @@ -10326,31 +9798,21 @@ export const plans = { } }, BuildingsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingUniques[0].attributes.forEach(attributeName => { - const attribute = buildingCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10359,19 +9821,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingUniques[0].attributes.forEach(attributeName => { - const attribute = buildingCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10380,11 +9840,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -10392,7 +9849,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10402,11 +9859,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -10414,7 +9868,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10424,11 +9878,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -10436,7 +9887,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10446,11 +9897,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -10458,7 +9906,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10468,11 +9916,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constructor", direction: "ASC", ...(undefined != null ? { @@ -10480,7 +9925,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10490,11 +9935,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constructor", direction: "DESC", ...(undefined != null ? { @@ -10502,7 +9944,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10511,8 +9953,8 @@ export const plans = { }, BuildingCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -10525,17 +9967,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_building.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -10548,17 +9988,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_building.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constructor: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constructor", @@ -10571,13 +10009,11 @@ export const plans = { type: "attribute", attribute: "constructor", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_building.attributes.constructor.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BuildingsConnection: { @@ -10606,31 +10042,21 @@ export const plans = { } }, ConstructorsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { constructorUniques[0].attributes.forEach(attributeName => { - const attribute = constructorCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10639,19 +10065,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { constructorUniques[0].attributes.forEach(attributeName => { - const attribute = constructorCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10660,11 +10084,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -10672,7 +10093,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10682,11 +10103,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -10694,7 +10112,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10704,11 +10122,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -10716,7 +10131,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10726,11 +10141,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -10738,7 +10150,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10748,11 +10160,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "export", direction: "ASC", ...(undefined != null ? { @@ -10760,7 +10169,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10770,11 +10179,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "export", direction: "DESC", ...(undefined != null ? { @@ -10782,7 +10188,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10791,8 +10197,8 @@ export const plans = { }, ConstructorCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -10805,17 +10211,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_constructor.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -10828,17 +10232,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_constructor.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, export: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "export", @@ -10851,13 +10253,11 @@ export const plans = { type: "attribute", attribute: "export", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_constructor.attributes.export.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ConstructorsConnection: { @@ -10886,31 +10286,21 @@ export const plans = { } }, CropsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { cropUniques[0].attributes.forEach(attributeName => { - const attribute = cropCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10919,19 +10309,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { cropUniques[0].attributes.forEach(attributeName => { - const attribute = cropCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10940,11 +10328,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -10952,7 +10337,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10962,11 +10347,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -10974,7 +10356,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -10984,11 +10366,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "yield", direction: "ASC", ...(undefined != null ? { @@ -10996,7 +10375,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11006,11 +10385,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "yield", direction: "DESC", ...(undefined != null ? { @@ -11018,7 +10394,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11028,11 +10404,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "amount", direction: "ASC", ...(undefined != null ? { @@ -11040,7 +10413,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11050,11 +10423,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "amount", direction: "DESC", ...(undefined != null ? { @@ -11062,7 +10432,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11071,8 +10441,8 @@ export const plans = { }, CropCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -11085,17 +10455,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_crop.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, yield: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "yield", @@ -11108,17 +10476,15 @@ export const plans = { type: "attribute", attribute: "yield", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_crop.attributes.yield.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, amount: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "amount", @@ -11131,13 +10497,11 @@ export const plans = { type: "attribute", attribute: "amount", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_crop.attributes.amount.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, CropsConnection: { @@ -11166,31 +10530,21 @@ export const plans = { } }, MaterialsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { materialUniques[0].attributes.forEach(attributeName => { - const attribute = materialCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11199,19 +10553,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { materialUniques[0].attributes.forEach(attributeName => { - const attribute = materialCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11220,11 +10572,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -11232,7 +10581,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11242,11 +10591,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -11254,7 +10600,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11264,11 +10610,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "class", direction: "ASC", ...(undefined != null ? { @@ -11276,7 +10619,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11286,11 +10629,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "class", direction: "DESC", ...(undefined != null ? { @@ -11298,7 +10638,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11308,11 +10648,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "valueOf", direction: "ASC", ...(undefined != null ? { @@ -11320,7 +10657,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11330,11 +10667,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "valueOf", direction: "DESC", ...(undefined != null ? { @@ -11342,7 +10676,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11351,8 +10685,8 @@ export const plans = { }, MaterialCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -11365,17 +10699,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_material.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, class: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "class", @@ -11388,17 +10720,15 @@ export const plans = { type: "attribute", attribute: "class", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_material.attributes.class.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, valueOf: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "valueOf", @@ -11411,13 +10741,11 @@ export const plans = { type: "attribute", attribute: "valueOf", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_material.attributes.valueOf.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MaterialsConnection: { @@ -11446,31 +10774,21 @@ export const plans = { } }, NullsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { nullUniques[0].attributes.forEach(attributeName => { - const attribute = nullCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11479,19 +10797,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { nullUniques[0].attributes.forEach(attributeName => { - const attribute = nullCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11500,11 +10816,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -11512,7 +10825,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11522,11 +10835,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -11534,7 +10844,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11544,11 +10854,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "hasOwnProperty", direction: "ASC", ...(undefined != null ? { @@ -11556,7 +10863,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11566,11 +10873,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "hasOwnProperty", direction: "DESC", ...(undefined != null ? { @@ -11578,7 +10882,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11588,11 +10892,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "break", direction: "ASC", ...(undefined != null ? { @@ -11600,7 +10901,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11610,11 +10911,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "break", direction: "DESC", ...(undefined != null ? { @@ -11622,7 +10920,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11631,8 +10929,8 @@ export const plans = { }, NullCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -11645,17 +10943,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_null.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, hasOwnProperty: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "hasOwnProperty", @@ -11668,17 +10964,15 @@ export const plans = { type: "attribute", attribute: "hasOwnProperty", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_null.attributes.hasOwnProperty.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, break: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "break", @@ -11691,13 +10985,11 @@ export const plans = { type: "attribute", attribute: "break", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_null.attributes.break.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullsConnection: { @@ -11726,31 +11018,21 @@ export const plans = { } }, ProjectsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { projectUniques[0].attributes.forEach(attributeName => { - const attribute = projectCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11759,19 +11041,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { projectUniques[0].attributes.forEach(attributeName => { - const attribute = projectCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11780,11 +11060,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -11792,7 +11069,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11802,11 +11079,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -11814,7 +11088,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11824,11 +11098,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "brand", direction: "ASC", ...(undefined != null ? { @@ -11836,7 +11107,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11846,11 +11117,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "brand", direction: "DESC", ...(undefined != null ? { @@ -11858,7 +11126,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11868,11 +11136,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "__proto__", direction: "ASC", ...(undefined != null ? { @@ -11880,7 +11145,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11890,11 +11155,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "__proto__", direction: "DESC", ...(undefined != null ? { @@ -11902,7 +11164,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11911,8 +11173,8 @@ export const plans = { }, ProjectCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -11925,17 +11187,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_project.attributes["id"].codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, brand: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "brand", @@ -11948,17 +11208,15 @@ export const plans = { type: "attribute", attribute: "brand", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_project.attributes["brand"].codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, _proto__: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "__proto__", @@ -11971,13 +11229,11 @@ export const plans = { type: "attribute", attribute: "__proto__", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_project.attributes["__proto__"].codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ProjectsConnection: { @@ -12006,31 +11262,21 @@ export const plans = { } }, RelationalStatusesOrderBy: { - NATURAL: { + PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan() {} - } - } - }, - PRIMARY_KEY_ASC: { - extensions: { - __proto__: null, - grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_statusUniques[0].attributes.forEach(attributeName => { - const attribute = relationalStatusCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12039,19 +11285,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_statusUniques[0].attributes.forEach(attributeName => { - const attribute = relationalStatusCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12060,11 +11304,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -12072,7 +11313,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12082,11 +11323,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -12094,7 +11332,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12104,11 +11342,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -12116,7 +11351,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12126,11 +11361,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -12138,7 +11370,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12148,11 +11380,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "ASC", ...(undefined != null ? { @@ -12160,7 +11389,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12170,11 +11399,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "DESC", ...(undefined != null ? { @@ -12182,7 +11408,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12192,11 +11418,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -12204,7 +11427,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12214,11 +11437,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -12226,7 +11446,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12236,11 +11456,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constructor", direction: "ASC", ...(undefined != null ? { @@ -12248,7 +11465,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12258,11 +11475,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constructor", direction: "DESC", ...(undefined != null ? { @@ -12270,7 +11484,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12279,8 +11493,8 @@ export const plans = { }, RelationalStatusCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -12293,17 +11507,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalStatus.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -12316,17 +11528,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalStatus.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, note: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "note", @@ -12339,17 +11549,15 @@ export const plans = { type: "attribute", attribute: "note", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalStatus.attributes.note.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -12362,17 +11570,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalStatus.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constructor: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constructor", @@ -12385,13 +11591,11 @@ export const plans = { type: "attribute", attribute: "constructor", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalStatus.attributes.constructor.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalStatusesConnection: { @@ -12420,31 +11624,21 @@ export const plans = { } }, YieldsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { yieldUniques[0].attributes.forEach(attributeName => { - const attribute = yieldCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12453,19 +11647,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { yieldUniques[0].attributes.forEach(attributeName => { - const attribute = yieldCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12474,11 +11666,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -12486,7 +11675,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12496,11 +11685,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -12508,7 +11694,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12518,11 +11704,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "crop", direction: "ASC", ...(undefined != null ? { @@ -12530,7 +11713,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12540,11 +11723,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "crop", direction: "DESC", ...(undefined != null ? { @@ -12552,7 +11732,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12562,11 +11742,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "export", direction: "ASC", ...(undefined != null ? { @@ -12574,7 +11751,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12584,11 +11761,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "export", direction: "DESC", ...(undefined != null ? { @@ -12596,7 +11770,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12605,8 +11779,8 @@ export const plans = { }, YieldCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -12619,17 +11793,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_yield.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, crop: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "crop", @@ -12642,17 +11814,15 @@ export const plans = { type: "attribute", attribute: "crop", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_yield.attributes.crop.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, export: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "export", @@ -12665,13 +11835,11 @@ export const plans = { type: "attribute", attribute: "export", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_yield.attributes.export.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, YieldsConnection: { @@ -12700,31 +11868,21 @@ export const plans = { } }, ReservedsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12733,19 +11891,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12754,11 +11910,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -12766,7 +11919,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12776,11 +11929,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -12788,7 +11938,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12798,11 +11948,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null", direction: "ASC", ...(undefined != null ? { @@ -12810,7 +11957,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12820,11 +11967,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null", direction: "DESC", ...(undefined != null ? { @@ -12832,7 +11976,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12842,11 +11986,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "case", direction: "ASC", ...(undefined != null ? { @@ -12854,7 +11995,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12864,11 +12005,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "case", direction: "DESC", ...(undefined != null ? { @@ -12876,7 +12014,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12886,11 +12024,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "do", direction: "ASC", ...(undefined != null ? { @@ -12898,7 +12033,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12908,11 +12043,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "do", direction: "DESC", ...(undefined != null ? { @@ -12920,7 +12052,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12929,8 +12061,8 @@ export const plans = { }, ReservedCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -12943,17 +12075,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, null: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "null", @@ -12966,17 +12096,15 @@ export const plans = { type: "attribute", attribute: "null", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.null.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, case: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "case", @@ -12989,17 +12117,15 @@ export const plans = { type: "attribute", attribute: "case", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.case.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, do: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "do", @@ -13012,13 +12138,11 @@ export const plans = { type: "attribute", attribute: "do", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.do.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedsConnection: { @@ -13050,17 +12174,17 @@ export const plans = { __assertStep: __ValueStep, createProto__: { plan(_, args) { + const $insert = pgInsertSingle(pgResource___proto__PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource___proto__PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -13070,17 +12194,17 @@ export const plans = { }, createBuilding: { plan(_, args) { + const $insert = pgInsertSingle(building_buildingPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(building_buildingPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -13090,17 +12214,17 @@ export const plans = { }, createConstructor: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_constructorPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_constructorPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -13110,17 +12234,17 @@ export const plans = { }, createCrop: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_cropPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_cropPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -13130,17 +12254,17 @@ export const plans = { }, createMachine: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_machinePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_machinePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -13150,17 +12274,17 @@ export const plans = { }, createMaterial: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_materialPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_materialPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -13170,17 +12294,17 @@ export const plans = { }, createNull: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_nullPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_nullPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -13190,17 +12314,17 @@ export const plans = { }, createProject: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_projectPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_projectPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -13210,17 +12334,17 @@ export const plans = { }, createYield: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_yieldPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_yieldPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -13230,17 +12354,17 @@ export const plans = { }, createReserved: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -13250,11 +12374,11 @@ export const plans = { }, updateProto__: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource___proto__PgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource___proto__PgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13269,13 +12393,13 @@ export const plans = { }, updateProtoById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource___proto__PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource___proto__PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13290,13 +12414,13 @@ export const plans = { }, updateProtoByName: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource___proto__PgResource, { - name: args.get(['input', "name"]) - }) + const $update = pgUpdateSingle(pgResource___proto__PgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13311,11 +12435,11 @@ export const plans = { }, updateBuilding: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(building_buildingPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(building_buildingPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13330,13 +12454,13 @@ export const plans = { }, updateBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(building_buildingPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(building_buildingPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13351,11 +12475,11 @@ export const plans = { }, updateBuildingByConstructor: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(building_buildingPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(building_buildingPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13370,11 +12494,11 @@ export const plans = { }, updateConstructor: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_constructorPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_constructorPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13389,13 +12513,13 @@ export const plans = { }, updateConstructorById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_constructorPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_constructorPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13410,13 +12534,13 @@ export const plans = { }, updateConstructorByExport: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_constructorPgResource, { - export: args.get(['input', "export"]) - }) + const $update = pgUpdateSingle(pgResource_constructorPgResource, { + export: args.getRaw(['input', "export"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13431,13 +12555,13 @@ export const plans = { }, updateConstructorByName: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_constructorPgResource, { - name: args.get(['input', "name"]) - }) + const $update = pgUpdateSingle(pgResource_constructorPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13452,11 +12576,11 @@ export const plans = { }, updateCrop: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_cropPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_cropPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13471,13 +12595,13 @@ export const plans = { }, updateCropById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_cropPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_cropPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13492,13 +12616,13 @@ export const plans = { }, updateCropByYield: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_cropPgResource, { - yield: args.get(['input', "yield"]) - }) + const $update = pgUpdateSingle(pgResource_cropPgResource, { + yield: args.getRaw(['input', "yield"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13513,11 +12637,11 @@ export const plans = { }, updateMachine: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_machinePgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(otherSource_machinePgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13532,13 +12656,13 @@ export const plans = { }, updateMachineById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_machinePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(otherSource_machinePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13553,11 +12677,11 @@ export const plans = { }, updateMaterial: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_materialPgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_materialPgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13572,13 +12696,13 @@ export const plans = { }, updateMaterialById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_materialPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_materialPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13593,13 +12717,13 @@ export const plans = { }, updateMaterialByClass: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_materialPgResource, { - class: args.get(['input', "class"]) - }) + const $update = pgUpdateSingle(pgResource_materialPgResource, { + class: args.getRaw(['input', "class"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13614,11 +12738,11 @@ export const plans = { }, updateMaterialByValueOf: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_materialPgResource, specFromArgs8(args)) + const $update = pgUpdateSingle(pgResource_materialPgResource, specFromArgs8(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13633,11 +12757,11 @@ export const plans = { }, updateNull: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_nullPgResource, specFromArgs9(args)) + const $update = pgUpdateSingle(pgResource_nullPgResource, specFromArgs9(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13652,13 +12776,13 @@ export const plans = { }, updateNullById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_nullPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_nullPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13673,13 +12797,13 @@ export const plans = { }, updateNullByBreak: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_nullPgResource, { - break: args.get(['input', "break"]) - }) + const $update = pgUpdateSingle(pgResource_nullPgResource, { + break: args.getRaw(['input', "break"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13694,11 +12818,11 @@ export const plans = { }, updateNullByHasOwnProperty: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_nullPgResource, specFromArgs10(args)) + const $update = pgUpdateSingle(pgResource_nullPgResource, specFromArgs10(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13713,11 +12837,11 @@ export const plans = { }, updateProject: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_projectPgResource, specFromArgs11(args)) + const $update = pgUpdateSingle(pgResource_projectPgResource, specFromArgs11(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13732,13 +12856,13 @@ export const plans = { }, updateProjectById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_projectPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_projectPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13753,11 +12877,11 @@ export const plans = { }, updateProjectByProto__: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_projectPgResource, specFromArgs12(args)) + const $update = pgUpdateSingle(pgResource_projectPgResource, specFromArgs12(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13772,11 +12896,11 @@ export const plans = { }, updateYield: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_yieldPgResource, specFromArgs13(args)) + const $update = pgUpdateSingle(pgResource_yieldPgResource, specFromArgs13(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13791,13 +12915,13 @@ export const plans = { }, updateYieldById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_yieldPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_yieldPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13812,13 +12936,13 @@ export const plans = { }, updateYieldByExport: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_yieldPgResource, { - export: args.get(['input', "export"]) - }) + const $update = pgUpdateSingle(pgResource_yieldPgResource, { + export: args.getRaw(['input', "export"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13833,11 +12957,11 @@ export const plans = { }, updateReserved: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, specFromArgs14(args)) + const $update = pgUpdateSingle(pgResource_reservedPgResource, specFromArgs14(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13852,13 +12976,13 @@ export const plans = { }, updateReservedById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13873,13 +12997,13 @@ export const plans = { }, updateReservedByCase: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, { - case: args.get(['input', "case"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPgResource, { + case: args.getRaw(['input', "case"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13894,13 +13018,13 @@ export const plans = { }, updateReservedByDo: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, { - do: args.get(['input', "do"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPgResource, { + do: args.getRaw(['input', "do"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13915,13 +13039,13 @@ export const plans = { }, updateReservedByNull: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, { - null: args.get(['input', "null"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPgResource, { + null: args.getRaw(['input', "null"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -13936,11 +13060,11 @@ export const plans = { }, deleteProto__: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource___proto__PgResource, specFromArgs15(args)) + const $delete = pgDeleteSingle(pgResource___proto__PgResource, specFromArgs15(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -13955,13 +13079,13 @@ export const plans = { }, deleteProtoById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource___proto__PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource___proto__PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -13976,13 +13100,13 @@ export const plans = { }, deleteProtoByName: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource___proto__PgResource, { - name: args.get(['input', "name"]) - }) + const $delete = pgDeleteSingle(pgResource___proto__PgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -13997,11 +13121,11 @@ export const plans = { }, deleteBuilding: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(building_buildingPgResource, specFromArgs16(args)) + const $delete = pgDeleteSingle(building_buildingPgResource, specFromArgs16(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14016,13 +13140,13 @@ export const plans = { }, deleteBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(building_buildingPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(building_buildingPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14037,11 +13161,11 @@ export const plans = { }, deleteBuildingByConstructor: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(building_buildingPgResource, specFromArgs17(args)) + const $delete = pgDeleteSingle(building_buildingPgResource, specFromArgs17(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14056,11 +13180,11 @@ export const plans = { }, deleteConstructor: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_constructorPgResource, specFromArgs18(args)) + const $delete = pgDeleteSingle(pgResource_constructorPgResource, specFromArgs18(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14075,13 +13199,13 @@ export const plans = { }, deleteConstructorById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_constructorPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_constructorPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14096,13 +13220,13 @@ export const plans = { }, deleteConstructorByExport: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_constructorPgResource, { - export: args.get(['input', "export"]) - }) + const $delete = pgDeleteSingle(pgResource_constructorPgResource, { + export: args.getRaw(['input', "export"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14117,13 +13241,13 @@ export const plans = { }, deleteConstructorByName: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_constructorPgResource, { - name: args.get(['input', "name"]) - }) + const $delete = pgDeleteSingle(pgResource_constructorPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14138,11 +13262,11 @@ export const plans = { }, deleteCrop: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_cropPgResource, specFromArgs19(args)) + const $delete = pgDeleteSingle(pgResource_cropPgResource, specFromArgs19(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14157,13 +13281,13 @@ export const plans = { }, deleteCropById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_cropPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_cropPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14178,13 +13302,13 @@ export const plans = { }, deleteCropByYield: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_cropPgResource, { - yield: args.get(['input', "yield"]) - }) + const $delete = pgDeleteSingle(pgResource_cropPgResource, { + yield: args.getRaw(['input', "yield"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14199,11 +13323,11 @@ export const plans = { }, deleteMachine: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_machinePgResource, specFromArgs20(args)) + const $delete = pgDeleteSingle(otherSource_machinePgResource, specFromArgs20(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14218,13 +13342,13 @@ export const plans = { }, deleteMachineById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_machinePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(otherSource_machinePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14239,11 +13363,11 @@ export const plans = { }, deleteMaterial: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_materialPgResource, specFromArgs21(args)) + const $delete = pgDeleteSingle(pgResource_materialPgResource, specFromArgs21(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14258,13 +13382,13 @@ export const plans = { }, deleteMaterialById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_materialPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_materialPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14279,13 +13403,13 @@ export const plans = { }, deleteMaterialByClass: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_materialPgResource, { - class: args.get(['input', "class"]) - }) + const $delete = pgDeleteSingle(pgResource_materialPgResource, { + class: args.getRaw(['input', "class"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14300,11 +13424,11 @@ export const plans = { }, deleteMaterialByValueOf: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_materialPgResource, specFromArgs22(args)) + const $delete = pgDeleteSingle(pgResource_materialPgResource, specFromArgs22(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14319,11 +13443,11 @@ export const plans = { }, deleteNull: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_nullPgResource, specFromArgs23(args)) + const $delete = pgDeleteSingle(pgResource_nullPgResource, specFromArgs23(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14338,13 +13462,13 @@ export const plans = { }, deleteNullById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_nullPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_nullPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14359,13 +13483,13 @@ export const plans = { }, deleteNullByBreak: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_nullPgResource, { - break: args.get(['input', "break"]) - }) + const $delete = pgDeleteSingle(pgResource_nullPgResource, { + break: args.getRaw(['input', "break"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14380,11 +13504,11 @@ export const plans = { }, deleteNullByHasOwnProperty: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_nullPgResource, specFromArgs24(args)) + const $delete = pgDeleteSingle(pgResource_nullPgResource, specFromArgs24(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14399,11 +13523,11 @@ export const plans = { }, deleteProject: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_projectPgResource, specFromArgs25(args)) + const $delete = pgDeleteSingle(pgResource_projectPgResource, specFromArgs25(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14418,13 +13542,13 @@ export const plans = { }, deleteProjectById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_projectPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_projectPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14439,11 +13563,11 @@ export const plans = { }, deleteProjectByProto__: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_projectPgResource, specFromArgs26(args)) + const $delete = pgDeleteSingle(pgResource_projectPgResource, specFromArgs26(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14458,11 +13582,11 @@ export const plans = { }, deleteYield: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_yieldPgResource, specFromArgs27(args)) + const $delete = pgDeleteSingle(pgResource_yieldPgResource, specFromArgs27(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14477,13 +13601,13 @@ export const plans = { }, deleteYieldById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_yieldPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_yieldPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14498,13 +13622,13 @@ export const plans = { }, deleteYieldByExport: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_yieldPgResource, { - export: args.get(['input', "export"]) - }) + const $delete = pgDeleteSingle(pgResource_yieldPgResource, { + export: args.getRaw(['input', "export"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14519,11 +13643,11 @@ export const plans = { }, deleteReserved: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, specFromArgs28(args)) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, specFromArgs28(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14538,13 +13662,13 @@ export const plans = { }, deleteReservedById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14559,13 +13683,13 @@ export const plans = { }, deleteReservedByCase: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, { - case: args.get(['input', "case"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, { + case: args.getRaw(['input', "case"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14580,13 +13704,13 @@ export const plans = { }, deleteReservedByDo: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, { - do: args.get(['input', "do"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, { + do: args.getRaw(['input', "do"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14601,13 +13725,13 @@ export const plans = { }, deleteReservedByNull: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, { - null: args.get(['input', "null"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, { + null: args.getRaw(['input', "null"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14624,7 +13748,8 @@ export const plans = { CreateProtoPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, _proto__($object) { return $object.get("result"); @@ -14632,7 +13757,7 @@ export const plans = { query() { return rootValue(); }, - _protoEdge($mutation, args, info) { + _protoEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -14648,9 +13773,7 @@ export const plans = { return pgResource___proto__PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("_ProtoSOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -14661,49 +13784,50 @@ export const plans = { }, CreateProtoInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _proto__: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, _Proto__Input: { - "__inputPlan": function _Proto__Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, brand: { - applyPlan($insert, val) { - $insert.set("brand", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("brand", bakedInputRuntime(schema, field.type, val)); + } } }, CreateBuildingPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -14711,7 +13835,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -14727,9 +13851,7 @@ export const plans = { return building_buildingPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -14740,49 +13862,50 @@ export const plans = { }, CreateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, building: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, BuildingInput: { - "__inputPlan": function BuildingInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, constructor: { - applyPlan($insert, val) { - $insert.set("constructor", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constructor", bakedInputRuntime(schema, field.type, val)); + } } }, CreateConstructorPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, constructor($object) { return $object.get("result"); @@ -14790,7 +13913,7 @@ export const plans = { query() { return rootValue(); }, - constructorEdge($mutation, args, info) { + constructorEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -14806,9 +13929,7 @@ export const plans = { return pgResource_constructorPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ConstructorsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -14819,49 +13940,50 @@ export const plans = { }, CreateConstructorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, constructor: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ConstructorInput: { - "__inputPlan": function ConstructorInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, export: { - applyPlan($insert, val) { - $insert.set("export", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("export", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCropPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, crop($object) { return $object.get("result"); @@ -14869,7 +13991,7 @@ export const plans = { query() { return rootValue(); }, - cropEdge($mutation, args, info) { + cropEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -14885,9 +14007,7 @@ export const plans = { return pgResource_cropPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CropsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -14898,49 +14018,50 @@ export const plans = { }, CreateCropInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, crop: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CropInput: { - "__inputPlan": function CropInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, yield: { - applyPlan($insert, val) { - $insert.set("yield", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("yield", bakedInputRuntime(schema, field.type, val)); + } }, amount: { - applyPlan($insert, val) { - $insert.set("amount", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("amount", bakedInputRuntime(schema, field.type, val)); + } } }, CreateMachinePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, machine($object) { return $object.get("result"); @@ -14948,7 +14069,7 @@ export const plans = { query() { return rootValue(); }, - machineEdge($mutation, args, info) { + machineEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -14964,9 +14085,7 @@ export const plans = { return otherSource_machinePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MachinesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -14981,49 +14100,50 @@ export const plans = { }, CreateMachineInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, machine: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MachineInput: { - "__inputPlan": function MachineInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, input: { - applyPlan($insert, val) { - $insert.set("input", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("input", bakedInputRuntime(schema, field.type, val)); + } }, constructor: { - applyPlan($insert, val) { - $insert.set("constructor", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constructor", bakedInputRuntime(schema, field.type, val)); + } } }, CreateMaterialPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, material($object) { return $object.get("result"); @@ -15031,7 +14151,7 @@ export const plans = { query() { return rootValue(); }, - materialEdge($mutation, args, info) { + materialEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -15047,9 +14167,7 @@ export const plans = { return pgResource_materialPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MaterialsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -15060,49 +14178,50 @@ export const plans = { }, CreateMaterialInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, material: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MaterialInput: { - "__inputPlan": function MaterialInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, class: { - applyPlan($insert, val) { - $insert.set("class", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("class", bakedInputRuntime(schema, field.type, val)); + } }, valueOf: { - applyPlan($insert, val) { - $insert.set("valueOf", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("valueOf", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, null($object) { return $object.get("result"); @@ -15110,7 +14229,7 @@ export const plans = { query() { return rootValue(); }, - nullEdge($mutation, args, info) { + nullEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -15126,9 +14245,7 @@ export const plans = { return pgResource_nullPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -15139,49 +14256,50 @@ export const plans = { }, CreateNullInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, null: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullInput: { - "__inputPlan": function NullInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, hasOwnProperty: { - applyPlan($insert, val) { - $insert.set("hasOwnProperty", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("hasOwnProperty", bakedInputRuntime(schema, field.type, val)); + } }, break: { - applyPlan($insert, val) { - $insert.set("break", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("break", bakedInputRuntime(schema, field.type, val)); + } } }, CreateProjectPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, project($object) { return $object.get("result"); @@ -15189,7 +14307,7 @@ export const plans = { query() { return rootValue(); }, - projectEdge($mutation, args, info) { + projectEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -15205,9 +14323,7 @@ export const plans = { return pgResource_projectPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ProjectsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -15218,49 +14334,50 @@ export const plans = { }, CreateProjectInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, project: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ProjectInput: { - "__inputPlan": function ProjectInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, brand: { - applyPlan($insert, val) { - $insert.set("brand", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("brand", bakedInputRuntime(schema, field.type, val)); + } }, _proto__: { - applyPlan($insert, val) { - $insert.set("__proto__", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("__proto__", bakedInputRuntime(schema, field.type, val)); + } } }, CreateYieldPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, yield($object) { return $object.get("result"); @@ -15268,7 +14385,7 @@ export const plans = { query() { return rootValue(); }, - yieldEdge($mutation, args, info) { + yieldEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -15284,9 +14401,7 @@ export const plans = { return pgResource_yieldPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("YieldsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -15297,49 +14412,50 @@ export const plans = { }, CreateYieldInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, yield: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, YieldInput: { - "__inputPlan": function YieldInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, crop: { - applyPlan($insert, val) { - $insert.set("crop", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("crop", bakedInputRuntime(schema, field.type, val)); + } }, export: { - applyPlan($insert, val) { - $insert.set("export", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("export", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -15347,7 +14463,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -15363,9 +14479,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -15376,56 +14490,58 @@ export const plans = { }, CreateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reserved: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInput: { - "__inputPlan": function ReservedInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, null: { - applyPlan($insert, val) { - $insert.set("null", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null", bakedInputRuntime(schema, field.type, val)); + } }, case: { - applyPlan($insert, val) { - $insert.set("case", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("case", bakedInputRuntime(schema, field.type, val)); + } }, do: { - applyPlan($insert, val) { - $insert.set("do", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("do", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateProtoPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, _proto__($object) { return $object.get("result"); @@ -15433,7 +14549,7 @@ export const plans = { query() { return rootValue(); }, - _protoEdge($mutation, args, info) { + _protoEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -15449,9 +14565,7 @@ export const plans = { return pgResource___proto__PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("_ProtoSOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -15462,76 +14576,81 @@ export const plans = { }, UpdateProtoInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, _protoPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, _ProtoPatch: { - "__inputPlan": function _ProtoPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, brand: { - applyPlan($insert, val) { - $insert.set("brand", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("brand", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateProtoByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, _protoPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateProtoByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined, _protoPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -15539,7 +14658,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -15555,9 +14674,7 @@ export const plans = { return building_buildingPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -15568,76 +14685,81 @@ export const plans = { }, UpdateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, BuildingPatch: { - "__inputPlan": function BuildingPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, constructor: { - applyPlan($insert, val) { - $insert.set("constructor", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constructor", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateBuildingByConstructorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, constructor: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateConstructorPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, constructor($object) { return $object.get("result"); @@ -15645,7 +14767,7 @@ export const plans = { query() { return rootValue(); }, - constructorEdge($mutation, args, info) { + constructorEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -15661,9 +14783,7 @@ export const plans = { return pgResource_constructorPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ConstructorsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -15674,90 +14794,96 @@ export const plans = { }, UpdateConstructorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, constructorPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ConstructorPatch: { - "__inputPlan": function ConstructorPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, export: { - applyPlan($insert, val) { - $insert.set("export", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("export", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateConstructorByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, constructorPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateConstructorByExportInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, export: undefined, constructorPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateConstructorByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined, constructorPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCropPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, crop($object) { return $object.get("result"); @@ -15765,7 +14891,7 @@ export const plans = { query() { return rootValue(); }, - cropEdge($mutation, args, info) { + cropEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -15781,9 +14907,7 @@ export const plans = { return pgResource_cropPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CropsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -15794,76 +14918,81 @@ export const plans = { }, UpdateCropInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, cropPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CropPatch: { - "__inputPlan": function CropPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, yield: { - applyPlan($insert, val) { - $insert.set("yield", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("yield", bakedInputRuntime(schema, field.type, val)); + } }, amount: { - applyPlan($insert, val) { - $insert.set("amount", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("amount", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCropByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, cropPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCropByYieldInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, yield: undefined, cropPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateMachinePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, machine($object) { return $object.get("result"); @@ -15871,7 +15000,7 @@ export const plans = { query() { return rootValue(); }, - machineEdge($mutation, args, info) { + machineEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -15887,9 +15016,7 @@ export const plans = { return otherSource_machinePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MachinesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -15904,62 +15031,66 @@ export const plans = { }, UpdateMachineInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, machinePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MachinePatch: { - "__inputPlan": function MachinePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, input: { - applyPlan($insert, val) { - $insert.set("input", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("input", bakedInputRuntime(schema, field.type, val)); + } }, constructor: { - applyPlan($insert, val) { - $insert.set("constructor", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constructor", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMachineByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, machinePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateMaterialPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, material($object) { return $object.get("result"); @@ -15967,7 +15098,7 @@ export const plans = { query() { return rootValue(); }, - materialEdge($mutation, args, info) { + materialEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -15983,9 +15114,7 @@ export const plans = { return pgResource_materialPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MaterialsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -15996,90 +15125,96 @@ export const plans = { }, UpdateMaterialInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, materialPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MaterialPatch: { - "__inputPlan": function MaterialPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, class: { - applyPlan($insert, val) { - $insert.set("class", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("class", bakedInputRuntime(schema, field.type, val)); + } }, valueOf: { - applyPlan($insert, val) { - $insert.set("valueOf", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("valueOf", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMaterialByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, materialPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateMaterialByClassInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, class: undefined, materialPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateMaterialByValueOfInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, valueOf: undefined, materialPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, null($object) { return $object.get("result"); @@ -16087,7 +15222,7 @@ export const plans = { query() { return rootValue(); }, - nullEdge($mutation, args, info) { + nullEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -16103,9 +15238,7 @@ export const plans = { return pgResource_nullPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -16116,90 +15249,96 @@ export const plans = { }, UpdateNullInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullPatch: { - "__inputPlan": function NullPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, hasOwnProperty: { - applyPlan($insert, val) { - $insert.set("hasOwnProperty", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("hasOwnProperty", bakedInputRuntime(schema, field.type, val)); + } }, break: { - applyPlan($insert, val) { - $insert.set("break", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("break", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullByBreakInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, break: undefined, nullPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullByHasOwnPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, hasOwnProperty: undefined, nullPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateProjectPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, project($object) { return $object.get("result"); @@ -16207,7 +15346,7 @@ export const plans = { query() { return rootValue(); }, - projectEdge($mutation, args, info) { + projectEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -16223,9 +15362,7 @@ export const plans = { return pgResource_projectPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ProjectsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -16236,76 +15373,81 @@ export const plans = { }, UpdateProjectInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, projectPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ProjectPatch: { - "__inputPlan": function ProjectPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, brand: { - applyPlan($insert, val) { - $insert.set("brand", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("brand", bakedInputRuntime(schema, field.type, val)); + } }, _proto__: { - applyPlan($insert, val) { - $insert.set("__proto__", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("__proto__", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateProjectByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, projectPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateProjectByProtoInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, _proto__: undefined, projectPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateYieldPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, yield($object) { return $object.get("result"); @@ -16313,7 +15455,7 @@ export const plans = { query() { return rootValue(); }, - yieldEdge($mutation, args, info) { + yieldEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -16329,9 +15471,7 @@ export const plans = { return pgResource_yieldPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("YieldsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -16342,76 +15482,81 @@ export const plans = { }, UpdateYieldInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, yieldPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, YieldPatch: { - "__inputPlan": function YieldPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, crop: { - applyPlan($insert, val) { - $insert.set("crop", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("crop", bakedInputRuntime(schema, field.type, val)); + } }, export: { - applyPlan($insert, val) { - $insert.set("export", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("export", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateYieldByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, yieldPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateYieldByExportInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, export: undefined, yieldPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -16419,7 +15564,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -16435,9 +15580,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -16448,111 +15591,119 @@ export const plans = { }, UpdateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatch: { - "__inputPlan": function ReservedPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, null: { - applyPlan($insert, val) { - $insert.set("null", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null", bakedInputRuntime(schema, field.type, val)); + } }, case: { - applyPlan($insert, val) { - $insert.set("case", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("case", bakedInputRuntime(schema, field.type, val)); + } }, do: { - applyPlan($insert, val) { - $insert.set("do", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("do", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedByCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, case: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedByDoInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, do: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedByNullInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, null: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteProtoPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, _proto__($object) { return $object.get("result"); @@ -16565,7 +15716,7 @@ export const plans = { query() { return rootValue(); }, - _protoEdge($mutation, args, info) { + _protoEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -16581,9 +15732,7 @@ export const plans = { return pgResource___proto__PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("_ProtoSOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -16594,24 +15743,24 @@ export const plans = { }, DeleteProtoInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteProtoByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteProtoByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined @@ -16619,7 +15768,8 @@ export const plans = { DeleteBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -16632,7 +15782,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -16648,9 +15798,7 @@ export const plans = { return building_buildingPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -16661,24 +15809,24 @@ export const plans = { }, DeleteBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteBuildingByConstructorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, constructor: undefined @@ -16686,7 +15834,8 @@ export const plans = { DeleteConstructorPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, constructor($object) { return $object.get("result"); @@ -16699,7 +15848,7 @@ export const plans = { query() { return rootValue(); }, - constructorEdge($mutation, args, info) { + constructorEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -16715,9 +15864,7 @@ export const plans = { return pgResource_constructorPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ConstructorsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -16728,32 +15875,32 @@ export const plans = { }, DeleteConstructorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteConstructorByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteConstructorByExportInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, export: undefined }, DeleteConstructorByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined @@ -16761,7 +15908,8 @@ export const plans = { DeleteCropPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, crop($object) { return $object.get("result"); @@ -16774,7 +15922,7 @@ export const plans = { query() { return rootValue(); }, - cropEdge($mutation, args, info) { + cropEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -16790,9 +15938,7 @@ export const plans = { return pgResource_cropPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CropsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -16803,24 +15949,24 @@ export const plans = { }, DeleteCropInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCropByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteCropByYieldInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, yield: undefined @@ -16828,7 +15974,8 @@ export const plans = { DeleteMachinePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, machine($object) { return $object.get("result"); @@ -16841,7 +15988,7 @@ export const plans = { query() { return rootValue(); }, - machineEdge($mutation, args, info) { + machineEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -16857,9 +16004,7 @@ export const plans = { return otherSource_machinePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MachinesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -16874,16 +16019,16 @@ export const plans = { }, DeleteMachineInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMachineByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -16891,7 +16036,8 @@ export const plans = { DeleteMaterialPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, material($object) { return $object.get("result"); @@ -16904,7 +16050,7 @@ export const plans = { query() { return rootValue(); }, - materialEdge($mutation, args, info) { + materialEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -16920,9 +16066,7 @@ export const plans = { return pgResource_materialPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MaterialsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -16933,32 +16077,32 @@ export const plans = { }, DeleteMaterialInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMaterialByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteMaterialByClassInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, class: undefined }, DeleteMaterialByValueOfInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, valueOf: undefined @@ -16966,7 +16110,8 @@ export const plans = { DeleteNullPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, null($object) { return $object.get("result"); @@ -16979,7 +16124,7 @@ export const plans = { query() { return rootValue(); }, - nullEdge($mutation, args, info) { + nullEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -16995,9 +16140,7 @@ export const plans = { return pgResource_nullPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -17008,32 +16151,32 @@ export const plans = { }, DeleteNullInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteNullByBreakInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, break: undefined }, DeleteNullByHasOwnPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, hasOwnProperty: undefined @@ -17041,7 +16184,8 @@ export const plans = { DeleteProjectPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, project($object) { return $object.get("result"); @@ -17054,7 +16198,7 @@ export const plans = { query() { return rootValue(); }, - projectEdge($mutation, args, info) { + projectEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -17070,9 +16214,7 @@ export const plans = { return pgResource_projectPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ProjectsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -17083,24 +16225,24 @@ export const plans = { }, DeleteProjectInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteProjectByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteProjectByProtoInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, _proto__: undefined @@ -17108,7 +16250,8 @@ export const plans = { DeleteYieldPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, yield($object) { return $object.get("result"); @@ -17121,7 +16264,7 @@ export const plans = { query() { return rootValue(); }, - yieldEdge($mutation, args, info) { + yieldEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -17137,9 +16280,7 @@ export const plans = { return pgResource_yieldPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("YieldsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -17150,24 +16291,24 @@ export const plans = { }, DeleteYieldInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteYieldByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteYieldByExportInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, export: undefined @@ -17175,7 +16316,8 @@ export const plans = { DeleteReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -17188,7 +16330,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -17204,9 +16346,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -17217,40 +16357,40 @@ export const plans = { }, DeleteReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteReservedByCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, case: undefined }, DeleteReservedByDoInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, do: undefined }, DeleteReservedByNullInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, null: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/jwt.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/jwt.1.export.mjs index e56f396f04..98bc917d45 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/jwt.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/jwt.1.export.mjs @@ -1,9 +1,8 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import jsonwebtoken from "jsonwebtoken"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -22,6 +21,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -92,7 +94,7 @@ const guidCodec = domainOfCodec(TYPES.varchar, "guid", sql.identifier("b", "guid notNull: false }); const updatableViewIdentifier = sql.identifier("b", "updatable_view"); -const spec_updatableView = { +const updatableViewCodec = recordCodec({ name: "updatableView", identifier: updatableViewIdentifier, attributes: { @@ -149,8 +151,7 @@ const spec_updatableView = { } }, executor: executor -}; -const updatableViewCodec = recordCodec(spec_updatableView); +}); const jwtTokenIdentifier = sql.identifier("b", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -513,7 +514,7 @@ const byteaArrayCodec = listOfCodec(TYPES.bytea, { description: undefined, name: "byteaArray" }); -const spec_lists = { +const listsCodec = recordCodec({ name: "lists", identifier: listsIdentifier, attributes: { @@ -649,8 +650,7 @@ const spec_lists = { } }, executor: executor -}; -const listsCodec = recordCodec(spec_lists); +}); const typesIdentifier = sql.identifier("b", "types"); const anIntCodec = domainOfCodec(TYPES.int, "anInt", sql.identifier("a", "an_int"), { description: undefined, @@ -2258,6 +2258,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_listsPgResource.get(spec); }, @@ -2277,6 +2280,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_typesPgResource.get(spec); }, @@ -2285,262 +2291,64 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = [{ +const argDetailsSimple_compound_type_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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; -}; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_compound_type_query = (args, path = []) => argDetailsSimple_compound_type_query.map(details => makeArg(path, args, details)); const resource_compound_type_queryPgResource = registry.pgResources["compound_type_query"]; -const argDetailsSimple2 = [{ +const argDetailsSimple_compound_type_array_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_compound_type_array_query = (args, path = []) => argDetailsSimple_compound_type_array_query.map(details => makeArg(path, args, details)); const resource_compound_type_array_queryPgResource = registry.pgResources["compound_type_array_query"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_type_function_connection = []; +const makeArgs_type_function_connection = (args, path = []) => argDetailsSimple_type_function_connection.map(details => makeArg(path, args, details)); const resource_type_function_connectionPgResource = registry.pgResources["type_function_connection"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_type_function_connection(args); return resource_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple4 = [{ +const argDetailsSimple_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 makeArgs_type_function = (args, path = []) => argDetailsSimple_type_function.map(details => makeArg(path, args, details)); const resource_type_functionPgResource = registry.pgResources["type_function"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_type_function_list = []; +const makeArgs_type_function_list = (args, path = []) => argDetailsSimple_type_function_list.map(details => makeArg(path, args, details)); const resource_type_function_listPgResource = registry.pgResources["type_function_list"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -2572,26 +2380,9 @@ const fetcher2 = (handler => { return fn; })(nodeIdHandlerByTypeName.Type); const resource_updatable_viewPgResource = registry.pgResources["updatable_view"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; function DateSerialize(value) { return "" + value; @@ -2606,7 +2397,7 @@ const resource_frmcdc_nestedCompoundTypePgResource = registry.pgResources["frmcd function LTreeParseValue(value) { return value; } -const argDetailsSimple6 = [{ +const argDetailsSimple_mult_1 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -2619,52 +2410,9 @@ const argDetailsSimple6 = [{ required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_1 = (args, path = []) => argDetailsSimple_mult_1.map(details => makeArg(path, args, details)); const resource_mult_1PgResource = registry.pgResources["mult_1"]; -const argDetailsSimple7 = [{ +const argDetailsSimple_mult_2 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -2677,52 +2425,9 @@ const argDetailsSimple7 = [{ required: true, fetcher: null }]; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_2 = (args, path = []) => argDetailsSimple_mult_2.map(details => makeArg(path, args, details)); const resource_mult_2PgResource = registry.pgResources["mult_2"]; -const argDetailsSimple8 = [{ +const argDetailsSimple_mult_3 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -2735,52 +2440,9 @@ const argDetailsSimple8 = [{ required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_3 = (args, path = []) => argDetailsSimple_mult_3.map(details => makeArg(path, args, details)); const resource_mult_3PgResource = registry.pgResources["mult_3"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_mult_4 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -2793,150 +2455,21 @@ const argDetailsSimple9 = [{ required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_4 = (args, path = []) => argDetailsSimple_mult_4.map(details => makeArg(path, args, details)); const resource_mult_4PgResource = registry.pgResources["mult_4"]; -const argDetailsSimple10 = [{ +const argDetailsSimple_guid_fn = [{ graphqlArgName: "g", postgresArgName: "g", pgCodec: guidCodec, required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_guid_fn = (args, path = []) => argDetailsSimple_guid_fn.map(details => makeArg(path, args, details)); const resource_guid_fnPgResource = registry.pgResources["guid_fn"]; -const argDetailsSimple11 = []; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 argDetailsSimple_authenticate_fail = []; +const makeArgs_authenticate_fail = (args, path = []) => argDetailsSimple_authenticate_fail.map(details => makeArg(path, args, details)); const resource_authenticate_failPgResource = registry.pgResources["authenticate_fail"]; -const argDetailsSimple12 = [{ +const argDetailsSimple_authenticate = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -2955,52 +2488,9 @@ const argDetailsSimple12 = [{ required: true, fetcher: null }]; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[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 makeArgs_authenticate = (args, path = []) => argDetailsSimple_authenticate.map(details => makeArg(path, args, details)); const resource_authenticatePgResource = registry.pgResources["authenticate"]; -const argDetailsSimple13 = [{ +const argDetailsSimple_list_bde_mutation = [{ graphqlArgName: "b", postgresArgName: "b", pgCodec: textArrayCodec, @@ -3019,52 +2509,9 @@ const argDetailsSimple13 = [{ required: true, fetcher: null }]; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 makeArgs_list_bde_mutation = (args, path = []) => argDetailsSimple_list_bde_mutation.map(details => makeArg(path, args, details)); const resource_list_bde_mutationPgResource = registry.pgResources["list_bde_mutation"]; -const argDetailsSimple14 = [{ +const argDetailsSimple_authenticate_many = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -3083,52 +2530,9 @@ const argDetailsSimple14 = [{ required: true, fetcher: null }]; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[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 makeArgs_authenticate_many = (args, path = []) => argDetailsSimple_authenticate_many.map(details => makeArg(path, args, details)); const resource_authenticate_manyPgResource = registry.pgResources["authenticate_many"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_authenticate_payload = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -3147,365 +2551,64 @@ const argDetailsSimple15 = [{ required: true, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[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 makeArgs_authenticate_payload = (args, path = []) => argDetailsSimple_authenticate_payload.map(details => makeArg(path, args, details)); const resource_authenticate_payloadPgResource = registry.pgResources["authenticate_payload"]; -const argDetailsSimple16 = [{ +const argDetailsSimple_compound_type_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_compound_type_mutation = (args, path = []) => argDetailsSimple_compound_type_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_mutationPgResource = registry.pgResources["compound_type_mutation"]; -const argDetailsSimple17 = [{ +const argDetailsSimple_compound_type_set_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 makeArgs_compound_type_set_mutation = (args, path = []) => argDetailsSimple_compound_type_set_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_set_mutationPgResource = registry.pgResources["compound_type_set_mutation"]; -const argDetailsSimple18 = [{ +const argDetailsSimple_compound_type_array_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 makeArgs_compound_type_array_mutation = (args, path = []) => argDetailsSimple_compound_type_array_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_array_mutationPgResource = registry.pgResources["compound_type_array_mutation"]; -const argDetailsSimple19 = []; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 argDetailsSimple_type_function_connection_mutation = []; +const makeArgs_type_function_connection_mutation = (args, path = []) => argDetailsSimple_type_function_connection_mutation.map(details => makeArg(path, args, details)); const resource_type_function_connection_mutationPgResource = registry.pgResources["type_function_connection_mutation"]; -const argDetailsSimple20 = [{ +const argDetailsSimple_type_function_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 makeArgs_type_function_mutation = (args, path = []) => argDetailsSimple_type_function_mutation.map(details => makeArg(path, args, details)); const resource_type_function_mutationPgResource = registry.pgResources["type_function_mutation"]; -const argDetailsSimple21 = []; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[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 argDetailsSimple_type_function_list_mutation = []; +const makeArgs_type_function_list_mutation = (args, path = []) => argDetailsSimple_type_function_list_mutation.map(details => makeArg(path, args, details)); const resource_type_function_list_mutationPgResource = registry.pgResources["type_function_list_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const attributeNames = ["role", "exp", "a", "b", "c"]; @@ -5568,24 +4671,24 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, listById(_$root, args) { return pgResource_listsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, typeById(_$root, args) { return pgResource_typesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, compoundTypeQuery($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_compound_type_query(args); return resource_compound_type_queryPgResource.execute(selectArgs); }, compoundTypeArrayQuery($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_compound_type_array_query(args); return resource_compound_type_array_queryPgResource.execute(selectArgs); }, typeFunctionConnection: { @@ -5602,7 +4705,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5611,7 +4713,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5620,7 +4721,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5629,7 +4729,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5638,7 +4737,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5647,19 +4745,19 @@ export const plans = { } }, typeFunction($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_type_function(args); return resource_type_functionPgResource.execute(selectArgs); }, typeFunctionList($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_type_function_list(args); return resource_type_function_listPgResource.execute(selectArgs); }, list(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, type(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, allUpdatableViews: { @@ -5670,7 +4768,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5679,7 +4776,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5688,7 +4784,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5697,7 +4792,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5706,7 +4800,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5715,22 +4808,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5744,7 +4833,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5753,7 +4841,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5762,7 +4849,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5771,7 +4857,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5780,7 +4865,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5789,22 +4873,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5818,7 +4898,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5827,7 +4906,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5836,7 +4914,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5845,7 +4922,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5854,7 +4930,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5863,22 +4938,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -6432,64 +5503,70 @@ export const plans = { } }, CompoundTypeInput: { - "__inputPlan": function CompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, IntervalInput: { @@ -6591,23 +5668,12 @@ export const plans = { } }, UpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, X_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "ASC", ...(undefined != null ? { @@ -6615,7 +5681,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6625,11 +5691,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "DESC", ...(undefined != null ? { @@ -6637,7 +5700,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6647,11 +5710,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6659,7 +5719,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6669,11 +5729,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6681,7 +5738,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6691,11 +5748,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -6703,7 +5757,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6713,11 +5767,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -6725,7 +5776,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6735,11 +5786,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "ASC", ...(undefined != null ? { @@ -6747,7 +5795,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6757,11 +5805,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "DESC", ...(undefined != null ? { @@ -6769,7 +5814,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6778,8 +5823,8 @@ export const plans = { }, UpdatableViewCondition: { x: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "x", @@ -6792,17 +5837,15 @@ export const plans = { type: "attribute", attribute: "x", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.x.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6815,17 +5858,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -6838,17 +5879,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constant: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constant", @@ -6861,13 +5900,11 @@ export const plans = { type: "attribute", attribute: "constant", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.constant.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ListsConnection: { @@ -6896,31 +5933,21 @@ export const plans = { } }, ListsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6929,19 +5956,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6950,11 +5975,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6962,7 +5984,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6972,11 +5994,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6984,7 +6003,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6993,8 +6012,8 @@ export const plans = { }, ListCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7007,17 +6026,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array", @@ -7030,17 +6047,15 @@ export const plans = { type: "attribute", attribute: "int_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array_nn", @@ -7053,17 +6068,15 @@ export const plans = { type: "attribute", attribute: "int_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -7076,17 +6089,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array_nn", @@ -7099,17 +6110,15 @@ export const plans = { type: "attribute", attribute: "enum_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array", @@ -7122,17 +6131,15 @@ export const plans = { type: "attribute", attribute: "date_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array_nn", @@ -7145,17 +6152,15 @@ export const plans = { type: "attribute", attribute: "date_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array", @@ -7168,17 +6173,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array_nn", @@ -7191,17 +6194,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array", @@ -7214,17 +6215,15 @@ export const plans = { type: "attribute", attribute: "compound_type_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array_nn", @@ -7237,41 +6236,29 @@ export const plans = { type: "attribute", attribute: "compound_type_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TypesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7280,19 +6267,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7301,11 +6286,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -7313,7 +6295,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7323,11 +6305,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -7335,7 +6314,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7345,11 +6324,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "ASC", ...(undefined != null ? { @@ -7357,7 +6333,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7367,11 +6343,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "DESC", ...(undefined != null ? { @@ -7379,7 +6352,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7389,11 +6362,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "ASC", ...(undefined != null ? { @@ -7401,7 +6371,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7411,11 +6381,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "DESC", ...(undefined != null ? { @@ -7423,7 +6390,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7433,11 +6400,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "ASC", ...(undefined != null ? { @@ -7445,7 +6409,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7455,11 +6419,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "DESC", ...(undefined != null ? { @@ -7467,7 +6428,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7477,11 +6438,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "ASC", ...(undefined != null ? { @@ -7489,7 +6447,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7499,11 +6457,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "DESC", ...(undefined != null ? { @@ -7511,7 +6466,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7521,11 +6476,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "ASC", ...(undefined != null ? { @@ -7533,7 +6485,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7543,11 +6495,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "DESC", ...(undefined != null ? { @@ -7555,7 +6504,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7565,11 +6514,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "ASC", ...(undefined != null ? { @@ -7577,7 +6523,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7587,11 +6533,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "DESC", ...(undefined != null ? { @@ -7599,7 +6542,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7609,11 +6552,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "ASC", ...(undefined != null ? { @@ -7621,7 +6561,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7631,11 +6571,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "DESC", ...(undefined != null ? { @@ -7643,7 +6580,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7653,11 +6590,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "ASC", ...(undefined != null ? { @@ -7665,7 +6599,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7675,11 +6609,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "DESC", ...(undefined != null ? { @@ -7687,7 +6618,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7697,11 +6628,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "ASC", ...(undefined != null ? { @@ -7709,7 +6637,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7719,11 +6647,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "DESC", ...(undefined != null ? { @@ -7731,7 +6656,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7741,11 +6666,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "ASC", ...(undefined != null ? { @@ -7753,7 +6675,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7763,11 +6685,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "DESC", ...(undefined != null ? { @@ -7775,7 +6694,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7785,11 +6704,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "ASC", ...(undefined != null ? { @@ -7797,7 +6713,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7807,11 +6723,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "DESC", ...(undefined != null ? { @@ -7819,7 +6732,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7829,11 +6742,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "ASC", ...(undefined != null ? { @@ -7841,7 +6751,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7851,11 +6761,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "DESC", ...(undefined != null ? { @@ -7863,7 +6770,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7873,11 +6780,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "ASC", ...(undefined != null ? { @@ -7885,7 +6789,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7895,11 +6799,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "DESC", ...(undefined != null ? { @@ -7907,7 +6808,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7917,11 +6818,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "ASC", ...(undefined != null ? { @@ -7929,7 +6827,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7939,11 +6837,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "DESC", ...(undefined != null ? { @@ -7951,7 +6846,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7961,11 +6856,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "ASC", ...(undefined != null ? { @@ -7973,7 +6865,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7983,11 +6875,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "DESC", ...(undefined != null ? { @@ -7995,7 +6884,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8005,11 +6894,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "ASC", ...(undefined != null ? { @@ -8017,7 +6903,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8027,11 +6913,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "DESC", ...(undefined != null ? { @@ -8039,7 +6922,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8049,11 +6932,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "ASC", ...(undefined != null ? { @@ -8061,7 +6941,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8071,11 +6951,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "DESC", ...(undefined != null ? { @@ -8083,7 +6960,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8093,11 +6970,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "ASC", ...(undefined != null ? { @@ -8105,7 +6979,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8115,11 +6989,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "DESC", ...(undefined != null ? { @@ -8127,7 +6998,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8137,11 +7008,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "ASC", ...(undefined != null ? { @@ -8149,7 +7017,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8159,11 +7027,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "DESC", ...(undefined != null ? { @@ -8171,7 +7036,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8181,11 +7046,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -8193,7 +7055,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8203,11 +7065,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -8215,7 +7074,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8225,11 +7084,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "ASC", ...(undefined != null ? { @@ -8237,7 +7093,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8247,11 +7103,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "DESC", ...(undefined != null ? { @@ -8259,7 +7112,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8269,11 +7122,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -8281,7 +7131,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8291,11 +7141,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -8303,7 +7150,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8313,11 +7160,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "ASC", ...(undefined != null ? { @@ -8325,7 +7169,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8335,11 +7179,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "DESC", ...(undefined != null ? { @@ -8347,7 +7188,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8357,11 +7198,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "ASC", ...(undefined != null ? { @@ -8369,7 +7207,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8379,11 +7217,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "DESC", ...(undefined != null ? { @@ -8391,7 +7226,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8401,11 +7236,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -8413,7 +7245,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8423,11 +7255,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -8435,7 +7264,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8445,11 +7274,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -8457,7 +7283,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8467,11 +7293,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -8479,7 +7302,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8489,11 +7312,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -8501,7 +7321,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8511,11 +7331,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -8523,7 +7340,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8533,11 +7350,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "ASC", ...(undefined != null ? { @@ -8545,7 +7359,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8555,11 +7369,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "DESC", ...(undefined != null ? { @@ -8567,7 +7378,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8577,11 +7388,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "ASC", ...(undefined != null ? { @@ -8589,7 +7397,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8599,11 +7407,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "DESC", ...(undefined != null ? { @@ -8611,7 +7416,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8621,11 +7426,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "ASC", ...(undefined != null ? { @@ -8633,7 +7435,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8643,11 +7445,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "DESC", ...(undefined != null ? { @@ -8655,7 +7454,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8665,11 +7464,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "ASC", ...(undefined != null ? { @@ -8677,7 +7473,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8687,11 +7483,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "DESC", ...(undefined != null ? { @@ -8699,7 +7492,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8709,11 +7502,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "ASC", ...(undefined != null ? { @@ -8721,7 +7511,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8731,11 +7521,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "DESC", ...(undefined != null ? { @@ -8743,7 +7530,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8753,11 +7540,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "ASC", ...(undefined != null ? { @@ -8765,7 +7549,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8775,11 +7559,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "DESC", ...(undefined != null ? { @@ -8787,7 +7568,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8797,11 +7578,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "ASC", ...(undefined != null ? { @@ -8809,7 +7587,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8819,11 +7597,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "DESC", ...(undefined != null ? { @@ -8831,7 +7606,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8841,11 +7616,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "ASC", ...(undefined != null ? { @@ -8853,7 +7625,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8863,11 +7635,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "DESC", ...(undefined != null ? { @@ -8875,7 +7644,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8885,11 +7654,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "ASC", ...(undefined != null ? { @@ -8897,7 +7663,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8907,11 +7673,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "DESC", ...(undefined != null ? { @@ -8919,7 +7682,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -8928,8 +7691,8 @@ export const plans = { }, TypeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -8942,17 +7705,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, smallint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "smallint", @@ -8965,17 +7726,15 @@ export const plans = { type: "attribute", attribute: "smallint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.smallint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, bigint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "bigint", @@ -8988,17 +7747,15 @@ export const plans = { type: "attribute", attribute: "bigint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.bigint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numeric: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numeric", @@ -9011,17 +7768,15 @@ export const plans = { type: "attribute", attribute: "numeric", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numeric.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, decimal: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "decimal", @@ -9034,17 +7789,15 @@ export const plans = { type: "attribute", attribute: "decimal", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.decimal.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, boolean: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "boolean", @@ -9057,17 +7810,15 @@ export const plans = { type: "attribute", attribute: "boolean", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.boolean.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, varchar: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "varchar", @@ -9080,17 +7831,15 @@ export const plans = { type: "attribute", attribute: "varchar", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.varchar.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum", @@ -9103,17 +7852,15 @@ export const plans = { type: "attribute", attribute: "enum", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -9126,17 +7873,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain", @@ -9149,17 +7894,15 @@ export const plans = { type: "attribute", attribute: "domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain2", @@ -9172,17 +7915,15 @@ export const plans = { type: "attribute", attribute: "domain2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anotherIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array", @@ -9195,17 +7936,15 @@ export const plans = { type: "attribute", attribute: "text_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, json: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json", @@ -9218,17 +7957,15 @@ export const plans = { type: "attribute", attribute: "json", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.json.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.json)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonb: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "jsonb", @@ -9241,17 +7978,15 @@ export const plans = { type: "attribute", attribute: "jsonb", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.jsonb.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_range", @@ -9264,17 +7999,15 @@ export const plans = { type: "attribute", attribute: "nullable_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numrange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numrange", @@ -9287,17 +8020,15 @@ export const plans = { type: "attribute", attribute: "numrange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numrange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, daterange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "daterange", @@ -9310,17 +8041,15 @@ export const plans = { type: "attribute", attribute: "daterange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.daterange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, daterangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, anIntRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "an_int_range", @@ -9333,17 +8062,15 @@ export const plans = { type: "attribute", attribute: "an_int_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.an_int_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntRangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamp", @@ -9356,17 +8083,15 @@ export const plans = { type: "attribute", attribute: "timestamp", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamp.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz", @@ -9379,17 +8104,15 @@ export const plans = { type: "attribute", attribute: "timestamptz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamptz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, date: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date", @@ -9402,17 +8125,15 @@ export const plans = { type: "attribute", attribute: "date", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.date.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.date)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, time: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "time", @@ -9425,17 +8146,15 @@ export const plans = { type: "attribute", attribute: "time", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.time.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.time)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timetz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timetz", @@ -9448,17 +8167,15 @@ export const plans = { type: "attribute", attribute: "timetz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timetz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timetz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, interval: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval", @@ -9471,17 +8188,15 @@ export const plans = { type: "attribute", attribute: "interval", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.interval)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intervalArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval_array", @@ -9494,17 +8209,15 @@ export const plans = { type: "attribute", attribute: "interval_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, intervalArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, money: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "money", @@ -9517,17 +8230,15 @@ export const plans = { type: "attribute", attribute: "money", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.money.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.money)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type", @@ -9540,17 +8251,15 @@ export const plans = { type: "attribute", attribute: "compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nested_compound_type", @@ -9563,17 +8272,15 @@ export const plans = { type: "attribute", attribute: "nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_compound_type", @@ -9586,17 +8293,15 @@ export const plans = { type: "attribute", attribute: "nullable_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableNestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_nested_compound_type", @@ -9609,17 +8314,15 @@ export const plans = { type: "attribute", attribute: "nullable_nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, point: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "point", @@ -9632,17 +8335,15 @@ export const plans = { type: "attribute", attribute: "point", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.point.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullablePoint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullablePoint", @@ -9655,17 +8356,15 @@ export const plans = { type: "attribute", attribute: "nullablePoint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullablePoint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -9678,17 +8377,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -9701,17 +8398,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -9724,17 +8419,15 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regproc: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regproc", @@ -9747,17 +8440,15 @@ export const plans = { type: "attribute", attribute: "regproc", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regproc.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regproc)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regprocedure: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regprocedure", @@ -9770,17 +8461,15 @@ export const plans = { type: "attribute", attribute: "regprocedure", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regprocedure.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regprocedure)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoper: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoper", @@ -9793,17 +8482,15 @@ export const plans = { type: "attribute", attribute: "regoper", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoper.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoper)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoperator: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoperator", @@ -9816,17 +8503,15 @@ export const plans = { type: "attribute", attribute: "regoperator", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoperator.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoperator)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regclass: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regclass", @@ -9839,17 +8524,15 @@ export const plans = { type: "attribute", attribute: "regclass", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regclass.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regclass)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regtype: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regtype", @@ -9862,17 +8545,15 @@ export const plans = { type: "attribute", attribute: "regtype", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regtype.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regtype)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regconfig: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regconfig", @@ -9885,17 +8566,15 @@ export const plans = { type: "attribute", attribute: "regconfig", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regconfig.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regconfig)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regdictionary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regdictionary", @@ -9908,17 +8587,15 @@ export const plans = { type: "attribute", attribute: "regdictionary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regdictionary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regdictionary)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array_domain", @@ -9931,17 +8608,15 @@ export const plans = { type: "attribute", attribute: "text_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, int8ArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int8_array_domain", @@ -9954,17 +8629,15 @@ export const plans = { type: "attribute", attribute: "int8_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.int8_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int8ArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltree: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree", @@ -9977,17 +8650,15 @@ export const plans = { type: "attribute", attribute: "ltree", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_codec_ltree)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltreeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree_array", @@ -10000,13 +8671,11 @@ export const plans = { type: "attribute", attribute: "ltree_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_array_codec_ltree_)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BigFloatRangeInput: { @@ -10034,29 +8703,30 @@ export const plans = { inclusive: undefined }, NestedCompoundTypeInput: { - "__inputPlan": function NestedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, bazBuz: { - applyPlan($insert, val) { - $insert.set("baz_buz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("baz_buz", bakedInputRuntime(schema, field.type, val)); + } } }, PointInput: { @@ -10067,7 +8737,7 @@ export const plans = { __assertStep: __ValueStep, mult1: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_mult_1(args, ["input"]); const $result = resource_mult_1PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10077,9 +8747,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10087,7 +8766,7 @@ export const plans = { }, mult2: { plan($root, args, _info) { - const selectArgs = makeArgs7(args, ["input"]); + const selectArgs = makeArgs_mult_2(args, ["input"]); const $result = resource_mult_2PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10097,9 +8776,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10107,7 +8795,7 @@ export const plans = { }, mult3: { plan($root, args, _info) { - const selectArgs = makeArgs8(args, ["input"]); + const selectArgs = makeArgs_mult_3(args, ["input"]); const $result = resource_mult_3PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10117,9 +8805,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10127,7 +8824,7 @@ export const plans = { }, mult4: { plan($root, args, _info) { - const selectArgs = makeArgs9(args, ["input"]); + const selectArgs = makeArgs_mult_4(args, ["input"]); const $result = resource_mult_4PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10137,9 +8834,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10147,7 +8853,7 @@ export const plans = { }, guidFn: { plan($root, args, _info) { - const selectArgs = makeArgs10(args, ["input"]); + const selectArgs = makeArgs_guid_fn(args, ["input"]); const $result = resource_guid_fnPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10157,9 +8863,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10167,7 +8882,7 @@ export const plans = { }, authenticateFail: { plan($root, args, _info) { - const selectArgs = makeArgs11(args, ["input"]); + const selectArgs = makeArgs_authenticate_fail(args, ["input"]); const $result = resource_authenticate_failPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10177,9 +8892,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10187,7 +8911,7 @@ export const plans = { }, authenticate: { plan($root, args, _info) { - const selectArgs = makeArgs12(args, ["input"]); + const selectArgs = makeArgs_authenticate(args, ["input"]); const $result = resource_authenticatePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10197,9 +8921,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10207,7 +8940,7 @@ export const plans = { }, listBdeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs13(args, ["input"]); + const selectArgs = makeArgs_list_bde_mutation(args, ["input"]); const $result = resource_list_bde_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10217,9 +8950,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10227,7 +8969,7 @@ export const plans = { }, authenticateMany: { plan($root, args, _info) { - const selectArgs = makeArgs14(args, ["input"]); + const selectArgs = makeArgs_authenticate_many(args, ["input"]); const $result = resource_authenticate_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10237,9 +8979,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10247,7 +8998,7 @@ export const plans = { }, authenticatePayload: { plan($root, args, _info) { - const selectArgs = makeArgs15(args, ["input"]); + const selectArgs = makeArgs_authenticate_payload(args, ["input"]); const $result = resource_authenticate_payloadPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10257,9 +9008,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10267,7 +9027,7 @@ export const plans = { }, compoundTypeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs16(args, ["input"]); + const selectArgs = makeArgs_compound_type_mutation(args, ["input"]); const $result = resource_compound_type_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10277,9 +9037,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10287,7 +9056,7 @@ export const plans = { }, compoundTypeSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs17(args, ["input"]); + const selectArgs = makeArgs_compound_type_set_mutation(args, ["input"]); const $result = resource_compound_type_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10297,9 +9066,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10307,7 +9085,7 @@ export const plans = { }, compoundTypeArrayMutation: { plan($root, args, _info) { - const selectArgs = makeArgs18(args, ["input"]); + const selectArgs = makeArgs_compound_type_array_mutation(args, ["input"]); const $result = resource_compound_type_array_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10317,9 +9095,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10327,7 +9114,7 @@ export const plans = { }, typeFunctionConnectionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs19(args, ["input"]); + const selectArgs = makeArgs_type_function_connection_mutation(args, ["input"]); const $result = resource_type_function_connection_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10337,9 +9124,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10347,7 +9143,7 @@ export const plans = { }, typeFunctionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs20(args, ["input"]); + const selectArgs = makeArgs_type_function_mutation(args, ["input"]); const $result = resource_type_function_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10357,9 +9153,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10367,7 +9172,7 @@ export const plans = { }, typeFunctionListMutation: { plan($root, args, _info) { - const selectArgs = makeArgs21(args, ["input"]); + const selectArgs = makeArgs_type_function_list_mutation(args, ["input"]); const $result = resource_type_function_list_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -10377,9 +9182,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -10387,17 +9201,17 @@ export const plans = { }, createUpdatableView: { plan(_, args) { + const $insert = pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -10407,17 +9221,17 @@ export const plans = { }, createList: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_listsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_listsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -10427,17 +9241,17 @@ export const plans = { }, createType: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -10447,11 +9261,11 @@ export const plans = { }, updateList: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_listsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -10466,13 +9280,13 @@ export const plans = { }, updateListById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -10487,11 +9301,11 @@ export const plans = { }, updateType: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_typesPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -10506,13 +9320,13 @@ export const plans = { }, updateTypeById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -10527,11 +9341,11 @@ export const plans = { }, deleteList: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, specFromArgs3(args)) + const $delete = pgDeleteSingle(pgResource_listsPgResource, specFromArgs3(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -10546,13 +9360,13 @@ export const plans = { }, deleteListById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -10567,11 +9381,11 @@ export const plans = { }, deleteType: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, specFromArgs4(args)) + const $delete = pgDeleteSingle(pgResource_typesPgResource, specFromArgs4(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -10586,13 +9400,13 @@ export const plans = { }, deleteTypeById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -10609,7 +9423,8 @@ export const plans = { Mult1Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -10620,10 +9435,9 @@ export const plans = { }, Mult1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -10631,7 +9445,8 @@ export const plans = { Mult2Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -10642,10 +9457,9 @@ export const plans = { }, Mult2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -10653,7 +9467,8 @@ export const plans = { Mult3Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -10664,10 +9479,9 @@ export const plans = { }, Mult3Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -10675,7 +9489,8 @@ export const plans = { Mult4Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -10686,10 +9501,9 @@ export const plans = { }, Mult4Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -10697,7 +9511,8 @@ export const plans = { GuidFnPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, guid($object) { return $object.get("result"); @@ -10713,17 +9528,17 @@ export const plans = { }, GuidFnInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, g: undefined }, AuthenticateFailPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -10762,16 +9577,16 @@ export const plans = { }, AuthenticateFailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticatePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -10782,10 +9597,9 @@ export const plans = { }, AuthenticateInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -10794,7 +9608,8 @@ export const plans = { ListBdeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, uuids($object) { return $object.get("result"); @@ -10805,10 +9620,9 @@ export const plans = { }, ListBdeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, b: undefined, d: undefined, @@ -10817,7 +9631,8 @@ export const plans = { AuthenticateManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtTokens($object) { return $object.get("result"); @@ -10828,10 +9643,9 @@ export const plans = { }, AuthenticateManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -10840,7 +9654,8 @@ export const plans = { AuthenticatePayloadPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, authPayload($object) { return $object.get("result"); @@ -10869,10 +9684,9 @@ export const plans = { }, AuthenticatePayloadInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -10881,7 +9695,8 @@ export const plans = { CompoundTypeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundType($object) { return $object.get("result"); @@ -10892,17 +9707,17 @@ export const plans = { }, CompoundTypeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -10913,17 +9728,17 @@ export const plans = { }, CompoundTypeSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeArrayMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -10934,17 +9749,17 @@ export const plans = { }, CompoundTypeArrayMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, TypeFunctionConnectionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -10955,16 +9770,16 @@ export const plans = { }, TypeFunctionConnectionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -10972,7 +9787,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -10988,9 +9803,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -11001,17 +9814,17 @@ export const plans = { }, TypeFunctionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, TypeFunctionListMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -11022,16 +9835,16 @@ export const plans = { }, TypeFunctionListMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateUpdatableViewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, updatableView($object) { return $object.get("result"); @@ -11042,56 +9855,58 @@ export const plans = { }, CreateUpdatableViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, updatableView: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UpdatableViewInput: { - "__inputPlan": function UpdatableViewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, x: { - applyPlan($insert, val) { - $insert.set("x", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("x", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } }, constant: { - applyPlan($insert, val) { - $insert.set("constant", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constant", bakedInputRuntime(schema, field.type, val)); + } } }, CreateListPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -11099,7 +9914,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -11115,9 +9930,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -11128,119 +9941,130 @@ export const plans = { }, CreateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, list: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ListInput: { - "__inputPlan": function ListInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -11248,7 +10072,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -11264,9 +10088,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -11277,371 +10099,418 @@ export const plans = { }, CreateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, type: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TypeInput: { - "__inputPlan": function TypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -11649,7 +10518,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -11665,9 +10534,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -11678,132 +10545,146 @@ export const plans = { }, UpdateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ListPatch: { - "__inputPlan": function ListPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -11811,7 +10692,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -11827,9 +10708,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -11840,384 +10719,434 @@ export const plans = { }, UpdateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TypePatch: { - "__inputPlan": function TypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -12230,7 +11159,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -12246,9 +11175,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -12259,16 +11186,16 @@ export const plans = { }, DeleteListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -12276,7 +11203,8 @@ export const plans = { DeleteTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -12289,7 +11217,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -12305,9 +11233,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -12318,16 +11244,16 @@ export const plans = { }, DeleteTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/network_types.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/network_types.1.export.mjs index 9eb933efea..659d1e3e5e 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/network_types.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/network_types.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -77,7 +79,7 @@ const executor = new PgExecutor({ } }); const networkIdentifier = sql.identifier("network_types", "network"); -const spec_network = { +const networkCodec = recordCodec({ name: "network", identifier: networkIdentifier, attributes: { @@ -132,8 +134,7 @@ const spec_network = { } }, executor: executor -}; -const networkCodec = recordCodec(spec_network); +}); const networkUniques = [{ isPrimary: true, attributes: ["id"], @@ -204,6 +205,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_networkPgResource.get(spec); }, @@ -216,6 +220,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -238,35 +243,18 @@ const fetcher = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Network); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function InternetAddressSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Network, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Network, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -640,15 +628,15 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, networkById(_$root, args) { return pgResource_networkPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, network(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, allNetworks: { @@ -659,7 +647,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -668,7 +655,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -677,7 +663,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -686,7 +671,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -695,7 +679,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -704,22 +687,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -806,31 +785,21 @@ export const plans = { } }, NetworksOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { networkUniques[0].attributes.forEach(attributeName => { - const attribute = networkCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -839,19 +808,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { networkUniques[0].attributes.forEach(attributeName => { - const attribute = networkCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -860,11 +827,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -872,7 +836,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -882,11 +846,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -894,7 +855,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -904,11 +865,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -916,7 +874,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -926,11 +884,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -938,7 +893,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -948,11 +903,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -960,7 +912,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -970,11 +922,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -982,7 +931,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -992,11 +941,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -1004,7 +950,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1014,11 +960,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -1026,7 +969,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1035,8 +978,8 @@ export const plans = { }, NetworkCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -1049,17 +992,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -1072,17 +1013,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -1095,17 +1034,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -1118,30 +1055,28 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createNetwork: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_networkPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_networkPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -1151,11 +1086,11 @@ export const plans = { }, updateNetwork: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_networkPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_networkPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -1170,13 +1105,13 @@ export const plans = { }, updateNetworkById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_networkPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_networkPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -1191,11 +1126,11 @@ export const plans = { }, deleteNetwork: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_networkPgResource, specFromArgs2(args)) + const $delete = pgDeleteSingle(pgResource_networkPgResource, specFromArgs2(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -1210,13 +1145,13 @@ export const plans = { }, deleteNetworkById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_networkPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_networkPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -1233,7 +1168,8 @@ export const plans = { CreateNetworkPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, network($object) { return $object.get("result"); @@ -1241,7 +1177,7 @@ export const plans = { query() { return rootValue(); }, - networkEdge($mutation, args, info) { + networkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -1257,9 +1193,7 @@ export const plans = { return pgResource_networkPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -1270,56 +1204,58 @@ export const plans = { }, CreateNetworkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, network: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NetworkInput: { - "__inputPlan": function NetworkInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNetworkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, network($object) { return $object.get("result"); @@ -1327,7 +1263,7 @@ export const plans = { query() { return rootValue(); }, - networkEdge($mutation, args, info) { + networkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -1343,9 +1279,7 @@ export const plans = { return pgResource_networkPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -1356,69 +1290,74 @@ export const plans = { }, UpdateNetworkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, networkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NetworkPatch: { - "__inputPlan": function NetworkPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNetworkByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, networkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteNetworkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, network($object) { return $object.get("result"); @@ -1431,7 +1370,7 @@ export const plans = { query() { return rootValue(); }, - networkEdge($mutation, args, info) { + networkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -1447,9 +1386,7 @@ export const plans = { return pgResource_networkPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -1460,16 +1397,16 @@ export const plans = { }, DeleteNetworkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNetworkByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/network_types.custom.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/network_types.custom.1.export.mjs index e3f58336d2..9fd3db134d 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/network_types.custom.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/network_types.custom.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -77,7 +79,7 @@ const executor = new PgExecutor({ } }); const networkIdentifier = sql.identifier("network_types", "network"); -const spec_network = { +const networkCodec = recordCodec({ name: "network", identifier: networkIdentifier, attributes: { @@ -132,8 +134,7 @@ const spec_network = { } }, executor: executor -}; -const networkCodec = recordCodec(spec_network); +}); const networkUniques = [{ isPrimary: true, attributes: ["id"], @@ -204,6 +205,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_networkPgResource.get(spec); }, @@ -216,6 +220,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -238,35 +243,18 @@ const fetcher = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Network); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function InternetAddressSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Network, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Network, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -646,15 +634,15 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, networkById(_$root, args) { return pgResource_networkPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, network(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, allNetworks: { @@ -665,7 +653,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -674,7 +661,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -683,7 +669,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -692,7 +677,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -701,7 +685,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -710,22 +693,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -832,31 +811,21 @@ export const plans = { } }, NetworksOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { networkUniques[0].attributes.forEach(attributeName => { - const attribute = networkCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -865,19 +834,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { networkUniques[0].attributes.forEach(attributeName => { - const attribute = networkCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -886,11 +853,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -898,7 +862,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -908,11 +872,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -920,7 +881,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -930,11 +891,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -942,7 +900,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -952,11 +910,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -964,7 +919,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -974,11 +929,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -986,7 +938,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -996,11 +948,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -1008,7 +957,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1018,11 +967,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -1030,7 +976,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1040,11 +986,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -1052,7 +995,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1061,8 +1004,8 @@ export const plans = { }, NetworkCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -1075,17 +1018,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -1098,17 +1039,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -1121,17 +1060,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -1144,30 +1081,28 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createNetwork: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_networkPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_networkPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -1177,11 +1112,11 @@ export const plans = { }, updateNetwork: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_networkPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_networkPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -1196,13 +1131,13 @@ export const plans = { }, updateNetworkById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_networkPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_networkPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -1217,11 +1152,11 @@ export const plans = { }, deleteNetwork: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_networkPgResource, specFromArgs2(args)) + const $delete = pgDeleteSingle(pgResource_networkPgResource, specFromArgs2(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -1236,13 +1171,13 @@ export const plans = { }, deleteNetworkById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_networkPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_networkPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -1259,7 +1194,8 @@ export const plans = { CreateNetworkPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, network($object) { return $object.get("result"); @@ -1267,7 +1203,7 @@ export const plans = { query() { return rootValue(); }, - networkEdge($mutation, args, info) { + networkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -1283,9 +1219,7 @@ export const plans = { return pgResource_networkPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -1296,56 +1230,58 @@ export const plans = { }, CreateNetworkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, network: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NetworkInput: { - "__inputPlan": function NetworkInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNetworkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, network($object) { return $object.get("result"); @@ -1353,7 +1289,7 @@ export const plans = { query() { return rootValue(); }, - networkEdge($mutation, args, info) { + networkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -1369,9 +1305,7 @@ export const plans = { return pgResource_networkPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -1382,69 +1316,74 @@ export const plans = { }, UpdateNetworkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, networkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NetworkPatch: { - "__inputPlan": function NetworkPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNetworkByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, networkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteNetworkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, network($object) { return $object.get("result"); @@ -1457,7 +1396,7 @@ export const plans = { query() { return rootValue(); }, - networkEdge($mutation, args, info) { + networkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -1473,9 +1412,7 @@ export const plans = { return pgResource_networkPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -1486,16 +1423,16 @@ export const plans = { }, DeleteNetworkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNetworkByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/noDefaultMutations.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/noDefaultMutations.1.export.mjs index fe2f59c463..d6160327f5 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/noDefaultMutations.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/noDefaultMutations.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgFromExpression, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -434,7 +436,7 @@ const registryConfig_pgCodecs_SearchTestSummariesRecord_SearchTestSummariesRecor isAnonymous: true }); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -471,10 +473,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -514,8 +515,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -557,7 +557,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -603,10 +603,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -661,10 +660,9 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -710,10 +708,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -768,8 +765,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const issue756Identifier = sql.identifier("c", "issue756"); const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp", sql.identifier("c", "not_null_timestamp"), { description: undefined, @@ -785,7 +781,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -822,8 +818,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const compoundTypeIdentifier = sql.identifier("c", "compound_type"); const colorCodec = enumCodec({ name: "color", @@ -1359,7 +1354,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -1481,8 +1476,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -5404,6 +5398,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -5423,6 +5420,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -5443,6 +5443,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -5462,6 +5465,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -5481,6 +5487,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -5500,6 +5509,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -5519,6 +5531,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -5527,453 +5542,82 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple7 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple10 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -5986,240 +5630,25 @@ const argDetailsSimple10 = [{ required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple11 = []; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple12 = []; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple13 = []; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple14 = []; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -6238,56 +5667,13 @@ const argDetailsSimple15 = [{ required: true, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -6306,148 +5692,19 @@ const argDetailsSimple16 = [{ required: false, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple19 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -6484,104 +5741,18 @@ const argDetailsSimple19 = [{ required: true, fetcher: null }]; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple20 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -6600,154 +5771,25 @@ const argDetailsSimple21 = [{ required: true, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple22 = []; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple23 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -6760,52 +5802,9 @@ const argDetailsSimple24 = [{ required: true, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -6818,325 +5817,51 @@ const argDetailsSimple25 = [{ required: true, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple27 = []; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple28 = []; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -7211,347 +5936,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple32 = []; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple33 = []; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple35 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple36 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple37 = []; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -7570,52 +5994,9 @@ const argDetailsSimple38 = [{ required: false, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7634,52 +6015,9 @@ const argDetailsSimple39 = [{ required: false, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7698,52 +6036,9 @@ const argDetailsSimple40 = [{ required: false, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -7762,52 +6057,9 @@ const argDetailsSimple41 = [{ required: false, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple42 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7826,52 +6078,9 @@ const argDetailsSimple42 = [{ required: false, fetcher: null }]; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple43 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7884,194 +6093,22 @@ const argDetailsSimple43 = [{ required: true, fetcher: null }]; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs12 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs46(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -8086,82 +6123,33 @@ const getSelectPlanFromParentAndArgs12 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs13 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs47(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -8176,176 +6164,41 @@ const getSelectPlanFromParentAndArgs13 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -8413,549 +6266,76 @@ const parseValueLiteral = (ast, variables) => { } }; const resource_frmcdc_postPgResource = registry.pgResources["frmcdc_post"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple53 = []; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple54 = []; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple55 = []; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple56 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -8968,190 +6348,18 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple66 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -9170,294 +6378,36 @@ const argDetailsSimple66 = [{ required: true, fetcher: null }]; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple67 = []; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple68 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple69 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple72 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -9494,156 +6444,27 @@ const argDetailsSimple72 = [{ required: true, fetcher: null }]; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9656,52 +6477,9 @@ const argDetailsSimple75 = [{ required: true, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9714,188 +6492,16 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple77 = []; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple78 = []; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" type Query implements Node { @@ -12814,60 +9420,60 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -12884,7 +9490,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -12893,7 +9498,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -12902,7 +9506,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -12911,7 +9514,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -12920,7 +9522,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -12929,15 +9530,15 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, funcInOut($root, args, _info) { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -12954,7 +9555,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -12963,7 +9563,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -12972,7 +9571,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -12981,7 +9579,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -12990,7 +9587,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -12999,19 +9595,19 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -13028,7 +9624,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13037,7 +9632,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13046,7 +9640,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13055,7 +9648,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13064,7 +9656,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13073,11 +9664,11 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -13094,7 +9685,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13103,7 +9693,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13112,7 +9701,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13121,7 +9709,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13130,7 +9717,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13152,7 +9738,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13161,7 +9746,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13170,7 +9754,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13179,7 +9762,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13188,7 +9770,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13198,14 +9779,13 @@ export const plans = { }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13214,7 +9794,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13223,19 +9802,19 @@ export const plans = { } }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -13252,7 +9831,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13261,7 +9839,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13270,7 +9847,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13279,7 +9855,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13288,7 +9863,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13297,11 +9871,11 @@ export const plans = { } }, tableQuery($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -13318,7 +9892,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13327,7 +9900,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13336,7 +9908,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13345,7 +9916,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13354,7 +9924,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13376,7 +9945,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13385,7 +9953,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13394,7 +9961,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13403,7 +9969,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13412,7 +9977,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13421,7 +9985,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -13438,7 +10002,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13447,7 +10010,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13456,7 +10018,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13465,7 +10026,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13474,7 +10034,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13496,7 +10055,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13505,7 +10063,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13514,7 +10071,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13523,7 +10079,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13532,7 +10087,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13541,22 +10095,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13576,7 +10126,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13585,7 +10134,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13594,7 +10142,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13603,7 +10150,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13612,7 +10158,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13621,31 +10166,31 @@ export const plans = { } }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, allMyTables: { @@ -13656,7 +10201,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13665,7 +10209,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13674,7 +10217,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13683,7 +10225,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13692,7 +10233,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13701,22 +10241,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13730,7 +10266,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13739,7 +10274,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13748,7 +10282,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13757,7 +10290,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13766,7 +10298,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13775,22 +10306,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13804,7 +10331,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13813,7 +10339,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13822,7 +10347,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13831,7 +10355,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13840,7 +10363,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13849,22 +10371,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13878,7 +10396,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13887,7 +10404,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13896,7 +10412,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13905,7 +10420,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13914,7 +10428,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13923,22 +10436,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13952,7 +10461,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13961,7 +10469,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13970,7 +10477,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13979,7 +10485,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13988,7 +10493,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13997,22 +10501,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14026,7 +10526,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14035,7 +10534,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14044,7 +10542,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14053,7 +10550,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14062,7 +10558,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14071,22 +10566,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14100,7 +10591,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14109,7 +10599,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14118,7 +10607,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14127,7 +10615,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14136,7 +10623,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14145,22 +10631,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14174,7 +10656,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14183,7 +10664,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14192,7 +10672,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14201,7 +10680,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14210,7 +10688,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14219,22 +10696,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14297,7 +10770,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs31(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14312,27 +10785,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -14341,7 +10808,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs32(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14356,27 +10823,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -14385,7 +10846,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs33(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14400,27 +10861,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -14429,7 +10884,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs34(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14444,27 +10899,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -14473,7 +10922,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs35(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14488,27 +10937,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -14517,7 +10960,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs36(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14532,27 +10975,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -14561,7 +10998,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs37(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14576,27 +11013,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -14605,7 +11036,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs38(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14620,27 +11051,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -14649,7 +11074,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs39(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14664,27 +11089,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -14693,7 +11112,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs40(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14708,27 +11127,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -14737,7 +11150,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs41(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14752,27 +11165,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -14781,7 +11188,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs42(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14796,27 +11203,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -14825,7 +11226,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs43(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14840,27 +11241,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -14869,7 +11264,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs44(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14884,27 +11279,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -14913,7 +11302,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs45(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14928,27 +11317,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, - placeholder: $row.getClassStep().alias - }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; - } else { - return { - name, - placeholder: $row.placeholder(arg.step) + ...rest, + placeholder: $row.getClassStep().alias }; + } else { + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -14967,7 +11350,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14976,7 +11358,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14985,7 +11366,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14994,7 +11374,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15003,7 +11382,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15012,12 +11390,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -15037,7 +11412,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15046,7 +11420,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15055,7 +11428,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15064,7 +11436,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15073,7 +11444,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15085,7 +11455,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs48(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -15100,27 +11470,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -15129,7 +11493,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs49(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -15144,27 +11508,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -15229,7 +11587,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15238,7 +11595,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15247,7 +11603,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15256,7 +11611,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15265,7 +11619,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15274,22 +11627,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15306,7 +11655,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15315,7 +11663,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15324,7 +11671,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15333,7 +11679,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15342,7 +11687,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15351,22 +11695,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15441,7 +11781,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -15456,27 +11796,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -15717,26 +12051,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -15749,14 +12075,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -15769,14 +12095,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -15789,14 +12115,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -15809,19 +12135,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15830,19 +12154,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15851,11 +12173,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -15863,7 +12182,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15873,11 +12192,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -15885,7 +12201,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15895,11 +12211,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -15907,7 +12220,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15917,11 +12230,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -15929,7 +12239,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15939,11 +12249,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -15951,7 +12258,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15961,11 +12268,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -15973,7 +12277,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15983,11 +12287,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -15995,7 +12296,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16005,11 +12306,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -16017,7 +12315,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16027,11 +12325,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -16039,7 +12334,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16049,11 +12344,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -16061,7 +12353,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16071,11 +12363,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -16083,7 +12372,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16093,11 +12382,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -16105,7 +12391,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16115,11 +12401,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -16127,7 +12410,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16137,11 +12420,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -16149,7 +12429,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16159,11 +12439,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -16171,7 +12448,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16181,11 +12458,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -16193,7 +12467,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16203,11 +12477,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -16215,7 +12486,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16225,11 +12496,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -16237,7 +12505,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16247,11 +12515,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -16259,7 +12524,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16269,11 +12534,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -16281,7 +12543,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16816,31 +13078,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16849,19 +13101,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16870,11 +13120,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -16882,7 +13129,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16892,11 +13139,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -16904,7 +13148,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16914,11 +13158,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -16926,7 +13167,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16936,11 +13177,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -16948,7 +13186,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16958,11 +13196,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -16970,7 +13205,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16980,11 +13215,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -16992,7 +13224,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17001,8 +13233,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -17015,17 +13247,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -17038,17 +13268,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -17061,13 +13289,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecord: { @@ -17441,8 +13667,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -17455,17 +13681,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -17478,17 +13702,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -17501,17 +13723,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -17524,17 +13744,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -17547,17 +13765,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -17570,17 +13786,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -17593,17 +13807,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -17616,17 +13828,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -17639,17 +13849,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -17662,17 +13870,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -17685,40 +13891,38 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, MyTablesConnection: { @@ -17747,31 +13951,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17780,19 +13974,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17801,11 +13993,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -17813,7 +14002,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17823,11 +14012,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -17835,7 +14021,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17845,11 +14031,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -17857,7 +14040,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17867,11 +14050,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -17879,7 +14059,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17888,8 +14068,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -17902,17 +14082,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -17925,13 +14103,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -17960,31 +14136,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17993,19 +14159,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18014,11 +14178,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -18026,7 +14187,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18036,11 +14197,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -18048,7 +14206,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18058,11 +14216,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -18070,7 +14225,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18080,11 +14235,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -18092,7 +14244,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18101,8 +14253,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -18115,17 +14267,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -18138,13 +14288,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -18173,31 +14321,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18206,19 +14344,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18227,11 +14363,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -18239,7 +14372,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18249,11 +14382,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -18261,7 +14391,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18271,11 +14401,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -18283,7 +14410,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18293,11 +14420,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -18305,7 +14429,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18315,11 +14439,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -18327,7 +14448,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18337,11 +14458,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -18349,7 +14467,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18359,11 +14477,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -18371,7 +14486,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18381,11 +14496,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -18393,7 +14505,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18402,8 +14514,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -18416,17 +14528,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -18439,17 +14549,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -18462,17 +14570,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -18485,13 +14591,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -18516,7 +14620,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -18531,27 +14635,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -18576,23 +14674,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -18600,7 +14687,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18610,11 +14697,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -18622,7 +14706,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18632,11 +14716,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -18644,7 +14725,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18654,11 +14735,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -18666,7 +14744,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18676,11 +14754,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -18688,7 +14763,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18698,11 +14773,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -18710,7 +14782,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18719,8 +14791,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -18733,17 +14805,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -18756,17 +14826,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -18779,13 +14847,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -18814,31 +14880,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18847,19 +14903,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18868,11 +14922,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -18880,7 +14931,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18890,11 +14941,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -18902,7 +14950,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18912,11 +14960,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -18924,7 +14969,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18934,11 +14979,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -18946,7 +14988,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18956,11 +14998,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -18968,7 +15007,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18978,11 +15017,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -18990,7 +15026,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19000,11 +15036,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -19012,7 +15045,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19022,11 +15055,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -19034,7 +15064,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19043,8 +15073,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -19057,17 +15087,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -19080,17 +15108,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -19103,17 +15129,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -19126,13 +15150,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -19161,31 +15183,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19194,19 +15206,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19215,11 +15225,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -19227,7 +15234,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19237,11 +15244,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -19249,7 +15253,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19259,11 +15263,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -19271,7 +15272,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19281,11 +15282,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -19293,7 +15291,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19302,8 +15300,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -19316,17 +15314,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -19339,20 +15335,18 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs52(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19362,9 +15356,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19372,7 +15375,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs53(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19382,9 +15385,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19392,7 +15404,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs54(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19402,9 +15414,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19412,7 +15433,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs55(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19422,9 +15443,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19432,7 +15462,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs56(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19442,9 +15472,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19452,7 +15491,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs57(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19462,9 +15501,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19472,7 +15520,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs58(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19482,9 +15530,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19492,7 +15549,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs59(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19502,9 +15559,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19512,7 +15578,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs60(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19522,9 +15588,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19532,7 +15607,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs61(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19542,9 +15617,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19552,7 +15636,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs62(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19562,9 +15646,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19572,7 +15665,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs63(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19582,9 +15675,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19592,7 +15694,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs64(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19602,9 +15704,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19612,7 +15723,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs65(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19622,9 +15733,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19632,7 +15752,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs66(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19642,9 +15762,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19652,7 +15781,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs67(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19662,9 +15791,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19672,7 +15810,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs68(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19682,9 +15820,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19692,7 +15839,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs69(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19702,9 +15849,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19712,7 +15868,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs70(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19722,9 +15878,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19732,7 +15897,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs71(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19742,9 +15907,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19752,7 +15926,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs72(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19762,9 +15936,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19772,7 +15955,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs73(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19782,9 +15965,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19792,7 +15984,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs74(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19802,9 +15994,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19812,7 +16013,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs75(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19822,9 +16023,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19832,7 +16042,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs76(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19842,9 +16052,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19852,7 +16071,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs77(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19862,9 +16081,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19872,7 +16100,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs78(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19882,9 +16110,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19892,7 +16129,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs79(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19902,9 +16139,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19914,7 +16160,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -19925,16 +16172,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -19945,16 +16192,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -19965,16 +16212,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -19985,16 +16232,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -20005,17 +16252,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -20026,17 +16273,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -20047,17 +16294,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -20068,17 +16315,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -20089,17 +16336,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -20110,17 +16357,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -20131,10 +16378,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -20142,7 +16388,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -20162,16 +16409,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -20191,16 +16438,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -20220,16 +16467,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -20240,10 +16487,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -20252,7 +16498,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -20275,16 +16522,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -20304,17 +16551,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -20322,7 +16569,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -20338,9 +16585,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -20356,50 +16601,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -20407,7 +16654,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -20423,9 +16670,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -20436,16 +16681,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -20456,16 +16701,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -20476,10 +16721,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -20491,7 +16735,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -20517,17 +16762,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -20538,17 +16783,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -20583,10 +16828,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -20594,7 +16838,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -20629,10 +16874,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -20640,7 +16884,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -20648,7 +16893,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -20664,9 +16909,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -20677,16 +16920,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -20697,16 +16940,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -20717,10 +16960,9 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } } }; 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 da1cc35101..25a9c4a991 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,10 +141,9 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); -const spec_films = { +const filmsCodec = recordCodec({ name: "films", identifier: filmsIdentifier, attributes: { @@ -179,10 +180,9 @@ const spec_films = { } }, executor: executor -}; -const filmsCodec = recordCodec(spec_films); +}); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -219,10 +219,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -268,10 +267,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -317,10 +315,9 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -366,8 +363,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -417,7 +413,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -547,8 +543,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1116,6 +1111,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1135,6 +1133,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1154,6 +1155,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1173,6 +1177,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1192,6 +1199,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1211,6 +1221,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1219,56 +1232,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1289,7 +1276,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1298,105 +1285,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1448,221 +1349,75 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); +const argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3861,44 +3616,44 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, filmByCode(_$root, args) { return pgResource_filmsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3915,7 +3670,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3924,7 +3678,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3933,7 +3686,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3942,7 +3694,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3951,7 +3702,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3960,27 +3710,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3991,7 +3741,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4000,7 +3749,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4009,7 +3757,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4018,7 +3765,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4027,7 +3773,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4036,22 +3781,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4065,7 +3806,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4074,7 +3814,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4083,7 +3822,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4092,7 +3830,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4101,7 +3838,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4110,22 +3846,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4139,7 +3871,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4148,7 +3879,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4157,7 +3887,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4166,7 +3895,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4175,7 +3903,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4184,22 +3911,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4213,7 +3936,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4222,7 +3944,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4231,7 +3952,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4240,7 +3960,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4249,7 +3968,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4258,22 +3976,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4287,7 +4001,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4296,7 +4009,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4305,7 +4017,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4314,7 +4025,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4323,7 +4033,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4332,22 +4041,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4361,7 +4066,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4370,7 +4074,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4379,7 +4082,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4388,7 +4090,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4397,7 +4098,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4406,22 +4106,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4435,7 +4131,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4444,7 +4139,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4453,7 +4147,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4462,7 +4155,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4471,7 +4163,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4480,22 +4171,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4538,7 +4225,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4547,7 +4233,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4556,7 +4241,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4565,7 +4249,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4574,7 +4257,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4583,22 +4265,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4652,7 +4330,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4661,7 +4338,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4670,7 +4346,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4679,7 +4354,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4688,7 +4362,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4697,22 +4370,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4791,31 +4460,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4824,19 +4483,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4845,11 +4502,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4857,7 +4511,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4867,11 +4521,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4879,7 +4530,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4889,11 +4540,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4901,7 +4549,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4911,11 +4559,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4923,7 +4568,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4933,11 +4578,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4945,7 +4587,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4955,11 +4597,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4967,7 +4606,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4976,8 +4615,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4990,17 +4629,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5013,17 +4650,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -5036,13 +4671,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -5055,31 +4688,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5088,19 +4711,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5109,11 +4730,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5121,7 +4739,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5131,11 +4749,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5143,7 +4758,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5153,11 +4768,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5165,7 +4777,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5175,11 +4787,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5187,7 +4796,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5197,11 +4806,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "ASC", ...(undefined != null ? { @@ -5209,7 +4815,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5219,11 +4825,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "DESC", ...(undefined != null ? { @@ -5231,7 +4834,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5240,8 +4843,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5254,17 +4857,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5277,17 +4878,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -5300,13 +4899,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Post: { @@ -5340,7 +4937,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -5355,27 +4952,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -5418,7 +5009,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5427,7 +5017,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5436,7 +5025,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5445,7 +5033,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5454,7 +5041,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5463,22 +5049,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5511,31 +5093,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5544,19 +5116,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5565,11 +5135,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5577,7 +5144,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5587,11 +5154,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5599,7 +5163,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5609,11 +5173,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5621,7 +5182,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5631,11 +5192,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5643,7 +5201,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5653,11 +5211,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5665,7 +5220,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5675,11 +5230,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5687,7 +5239,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5696,8 +5248,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5710,17 +5262,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5733,17 +5283,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5756,13 +5304,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5797,23 +5343,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5821,7 +5356,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5831,11 +5366,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5843,7 +5375,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5852,8 +5384,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5866,13 +5398,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -5901,31 +5431,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5934,19 +5454,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5955,11 +5473,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5967,7 +5482,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5977,11 +5492,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5989,7 +5501,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5999,11 +5511,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -6011,7 +5520,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6021,11 +5530,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -6033,7 +5539,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6042,8 +5548,8 @@ export const plans = { }, FilmCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -6056,17 +5562,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -6079,13 +5583,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -6114,31 +5616,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6147,19 +5639,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6168,11 +5658,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6180,7 +5667,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6190,11 +5677,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6202,7 +5686,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6212,11 +5696,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6224,7 +5705,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6234,11 +5715,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6246,7 +5724,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6255,8 +5733,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6269,17 +5747,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6292,13 +5768,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -6327,31 +5801,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6360,19 +5824,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6381,11 +5843,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6393,7 +5852,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6403,11 +5862,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6415,7 +5871,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6425,11 +5881,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -6437,7 +5890,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6447,11 +5900,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -6459,7 +5909,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6469,11 +5919,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -6481,7 +5928,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6491,11 +5938,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -6503,7 +5947,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6513,11 +5957,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -6525,7 +5966,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6535,11 +5976,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -6547,7 +5985,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6557,11 +5995,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -6569,7 +6004,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6579,11 +6014,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -6591,7 +6023,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6601,11 +6033,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -6613,7 +6042,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6623,11 +6052,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6635,7 +6061,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6645,11 +6071,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6657,7 +6080,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6667,11 +6090,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6679,7 +6099,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6688,8 +6108,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6702,17 +6122,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6725,17 +6143,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6748,17 +6164,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6771,17 +6185,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6794,17 +6206,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6817,17 +6227,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6840,20 +6248,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6863,9 +6269,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6873,7 +6288,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6883,9 +6298,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6893,17 +6317,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6913,17 +6337,17 @@ export const plans = { }, createFilm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_filmsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_filmsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6933,17 +6357,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6953,17 +6377,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6973,17 +6397,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6993,17 +6417,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7013,17 +6437,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7033,11 +6457,11 @@ export const plans = { }, updateFilm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7052,13 +6476,13 @@ export const plans = { }, updateFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7073,11 +6497,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7092,13 +6516,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7113,11 +6537,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7132,13 +6556,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7153,11 +6577,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7172,13 +6596,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7193,11 +6617,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7212,13 +6636,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7233,11 +6657,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7252,13 +6676,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7273,11 +6697,11 @@ export const plans = { }, deleteFilm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7292,13 +6716,13 @@ export const plans = { }, deleteFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7313,11 +6737,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7332,13 +6756,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7353,11 +6777,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7372,13 +6796,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7393,11 +6817,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7412,13 +6836,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7433,11 +6857,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7452,13 +6876,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7473,11 +6897,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7492,13 +6916,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7515,7 +6939,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -7532,16 +6957,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -7564,17 +6989,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -7585,35 +7010,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFilmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7621,7 +7045,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7637,9 +7061,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7650,42 +7072,42 @@ export const plans = { }, CreateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, film: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FilmInput: { - "__inputPlan": function FilmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7693,7 +7115,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7709,9 +7131,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7722,42 +7142,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7765,7 +7185,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7781,9 +7201,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7799,49 +7217,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7849,7 +7268,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7865,9 +7284,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7883,49 +7300,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7933,7 +7351,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7949,9 +7367,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7967,49 +7383,50 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8017,7 +7434,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8033,9 +7450,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8046,70 +7461,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8117,7 +7536,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8133,9 +7552,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8146,55 +7563,58 @@ export const plans = { }, UpdateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FilmPatch: { - "__inputPlan": function FilmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8202,7 +7622,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8218,9 +7638,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8231,55 +7649,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8287,7 +7708,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8303,9 +7724,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8321,62 +7740,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8384,7 +7807,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8400,9 +7823,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8418,62 +7839,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8481,7 +7906,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8497,9 +7922,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8515,62 +7938,66 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8578,7 +8005,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8594,9 +8021,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8607,83 +8032,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8696,7 +8128,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8712,9 +8144,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8725,16 +8155,16 @@ export const plans = { }, DeleteFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8742,7 +8172,8 @@ export const plans = { DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8755,7 +8186,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8771,9 +8202,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8784,16 +8213,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8801,7 +8230,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8814,7 +8244,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8830,9 +8260,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8848,16 +8276,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8865,7 +8293,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8878,7 +8307,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8894,9 +8323,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8912,16 +8339,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8929,7 +8356,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8942,7 +8370,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8958,9 +8386,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8976,16 +8402,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8993,7 +8419,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -9006,7 +8433,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9022,9 +8449,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9035,16 +8460,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 f6a3e7d7f9..972286e9ee 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,10 +141,9 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); -const spec_films = { +const filmsCodec = recordCodec({ name: "films", identifier: filmsIdentifier, attributes: { @@ -179,10 +180,9 @@ const spec_films = { } }, executor: executor -}; -const filmsCodec = recordCodec(spec_films); +}); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -219,10 +219,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -268,10 +267,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -317,10 +315,9 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -369,8 +366,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -420,7 +416,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -550,8 +546,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1119,6 +1114,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1138,6 +1136,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1157,6 +1158,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1176,6 +1180,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1195,6 +1202,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1214,6 +1224,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1222,56 +1235,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1292,7 +1279,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1301,105 +1288,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1451,221 +1352,75 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); +const argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3863,44 +3618,44 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, filmByCode(_$root, args) { return pgResource_filmsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3917,7 +3672,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3926,7 +3680,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3935,7 +3688,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3944,7 +3696,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3953,7 +3704,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3962,27 +3712,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3993,7 +3743,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4002,7 +3751,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4011,7 +3759,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4020,7 +3767,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4029,7 +3775,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4038,22 +3783,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4067,7 +3808,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4076,7 +3816,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4085,7 +3824,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4094,7 +3832,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4103,7 +3840,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4112,22 +3848,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4141,7 +3873,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4150,7 +3881,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4159,7 +3889,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4168,7 +3897,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4177,7 +3905,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4186,22 +3913,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4215,7 +3938,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4224,7 +3946,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4233,7 +3954,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4242,7 +3962,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4251,7 +3970,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4260,22 +3978,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4289,7 +4003,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4298,7 +4011,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4307,7 +4019,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4316,7 +4027,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4325,7 +4035,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4334,22 +4043,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4363,7 +4068,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4372,7 +4076,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4381,7 +4084,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4390,7 +4092,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4399,7 +4100,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4408,22 +4108,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4437,7 +4133,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4446,7 +4141,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4455,7 +4149,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4464,7 +4157,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4473,7 +4165,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4482,22 +4173,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4540,7 +4227,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4549,7 +4235,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4558,7 +4243,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4567,7 +4251,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4576,7 +4259,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4585,22 +4267,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4654,7 +4332,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4663,7 +4340,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4672,7 +4348,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4681,7 +4356,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4690,7 +4364,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4699,22 +4372,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4793,31 +4462,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4826,19 +4485,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4847,11 +4504,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4859,7 +4513,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4869,11 +4523,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4881,7 +4532,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4891,11 +4542,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4903,7 +4551,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4913,11 +4561,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4925,7 +4570,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4935,11 +4580,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4947,7 +4589,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4957,11 +4599,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4969,7 +4608,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4978,8 +4617,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4992,17 +4631,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5015,17 +4652,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -5038,13 +4673,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -5057,31 +4690,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5090,19 +4713,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5111,11 +4732,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5123,7 +4741,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5133,11 +4751,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5145,7 +4760,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5155,11 +4770,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5167,7 +4779,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5177,11 +4789,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5189,7 +4798,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5199,11 +4808,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "ASC", ...(undefined != null ? { @@ -5211,7 +4817,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5221,11 +4827,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "DESC", ...(undefined != null ? { @@ -5233,7 +4836,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5242,8 +4845,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5256,17 +4859,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5279,17 +4880,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -5302,13 +4901,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Post: { @@ -5342,7 +4939,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -5357,27 +4954,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -5420,7 +5011,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5429,7 +5019,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5438,7 +5027,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5447,7 +5035,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5456,7 +5043,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5465,22 +5051,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5513,31 +5095,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5546,19 +5118,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5567,11 +5137,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5579,7 +5146,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5589,11 +5156,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5601,7 +5165,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5611,11 +5175,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5623,7 +5184,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5633,11 +5194,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5645,7 +5203,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5655,11 +5213,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5667,7 +5222,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5677,11 +5232,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5689,7 +5241,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5698,8 +5250,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5712,17 +5264,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5735,17 +5285,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5758,13 +5306,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5799,23 +5345,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5823,7 +5358,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5833,11 +5368,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5845,7 +5377,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5854,8 +5386,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5868,13 +5400,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -5903,31 +5433,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5936,19 +5456,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5957,11 +5475,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5969,7 +5484,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5979,11 +5494,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5991,7 +5503,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6001,11 +5513,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -6013,7 +5522,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6023,11 +5532,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -6035,7 +5541,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6044,8 +5550,8 @@ export const plans = { }, FilmCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -6058,17 +5564,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -6081,13 +5585,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -6116,31 +5618,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6149,19 +5641,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6170,11 +5660,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6182,7 +5669,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6192,11 +5679,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6204,7 +5688,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6214,11 +5698,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6226,7 +5707,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6236,11 +5717,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6248,7 +5726,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6257,8 +5735,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6271,17 +5749,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6294,13 +5770,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -6329,31 +5803,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6362,19 +5826,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6383,11 +5845,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6395,7 +5854,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6405,11 +5864,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6417,7 +5873,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6427,11 +5883,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -6439,7 +5892,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6449,11 +5902,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -6461,7 +5911,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6471,11 +5921,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -6483,7 +5930,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6493,11 +5940,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -6505,7 +5949,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6515,11 +5959,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -6527,7 +5968,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6537,11 +5978,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -6549,7 +5987,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6559,11 +5997,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -6571,7 +6006,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6581,11 +6016,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -6593,7 +6025,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6603,11 +6035,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -6615,7 +6044,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6625,11 +6054,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6637,7 +6063,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6647,11 +6073,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6659,7 +6082,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6669,11 +6092,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6681,7 +6101,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6690,8 +6110,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6704,17 +6124,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6727,17 +6145,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6750,17 +6166,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6773,17 +6187,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6796,17 +6208,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6819,17 +6229,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6842,20 +6250,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6865,9 +6271,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6875,7 +6290,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6885,9 +6300,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6895,17 +6319,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6915,17 +6339,17 @@ export const plans = { }, createFilm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_filmsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_filmsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6935,17 +6359,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6955,17 +6379,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6975,17 +6399,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6995,17 +6419,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7015,17 +6439,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7035,11 +6459,11 @@ export const plans = { }, updateFilm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7054,13 +6478,13 @@ export const plans = { }, updateFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7075,11 +6499,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7094,13 +6518,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7115,11 +6539,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7134,13 +6558,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7155,11 +6579,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7174,13 +6598,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7195,11 +6619,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7214,13 +6638,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7235,11 +6659,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7254,13 +6678,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7275,11 +6699,11 @@ export const plans = { }, deleteFilm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7294,13 +6718,13 @@ export const plans = { }, deleteFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7315,11 +6739,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7334,13 +6758,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7355,11 +6779,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7374,13 +6798,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7395,11 +6819,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7414,13 +6838,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7435,11 +6859,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7454,13 +6878,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7475,11 +6899,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7494,13 +6918,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7517,7 +6941,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -7534,16 +6959,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -7566,17 +6991,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -7587,35 +7012,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFilmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7623,7 +7047,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7639,9 +7063,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7652,42 +7074,42 @@ export const plans = { }, CreateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, film: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FilmInput: { - "__inputPlan": function FilmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7695,7 +7117,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7711,9 +7133,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7724,42 +7144,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7767,7 +7187,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7783,9 +7203,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7801,49 +7219,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7851,7 +7270,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7867,9 +7286,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7885,49 +7302,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7935,7 +7353,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7951,9 +7369,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7969,42 +7385,42 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8012,7 +7428,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8028,9 +7444,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8041,70 +7455,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8112,7 +7530,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8128,9 +7546,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8141,55 +7557,58 @@ export const plans = { }, UpdateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FilmPatch: { - "__inputPlan": function FilmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8197,7 +7616,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8213,9 +7632,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8226,55 +7643,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8282,7 +7702,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8298,9 +7718,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8316,62 +7734,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8379,7 +7801,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8395,9 +7817,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8413,62 +7833,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8476,7 +7900,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8492,9 +7916,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8510,62 +7932,66 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8573,7 +7999,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8589,9 +8015,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8602,83 +8026,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8691,7 +8122,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8707,9 +8138,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8720,16 +8149,16 @@ export const plans = { }, DeleteFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8737,7 +8166,8 @@ export const plans = { DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8750,7 +8180,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8766,9 +8196,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8779,16 +8207,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8796,7 +8224,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8809,7 +8238,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8825,9 +8254,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8843,16 +8270,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8860,7 +8287,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8873,7 +8301,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8889,9 +8317,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8907,16 +8333,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8924,7 +8350,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8937,7 +8364,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8953,9 +8380,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8971,16 +8396,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8988,7 +8413,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -9001,7 +8427,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9017,9 +8443,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9030,16 +8454,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 82b56853ad..c55322f102 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,10 +141,9 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); -const spec_films = { +const filmsCodec = recordCodec({ name: "films", identifier: filmsIdentifier, attributes: { @@ -179,10 +180,9 @@ const spec_films = { } }, executor: executor -}; -const filmsCodec = recordCodec(spec_films); +}); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -219,10 +219,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -268,10 +267,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -317,10 +315,9 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -366,8 +363,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -417,7 +413,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -547,8 +543,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1112,6 +1107,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1131,6 +1129,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1150,6 +1151,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1169,6 +1173,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1188,6 +1195,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1207,6 +1217,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1215,112 +1228,43 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; -const argDetailsSimple2 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1384,173 +1328,70 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple4 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3747,40 +3588,40 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, filmByCode(_$root, args) { return pgResource_filmsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3797,7 +3638,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3806,7 +3646,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3815,7 +3654,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3824,7 +3662,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3833,7 +3670,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3842,27 +3678,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3873,7 +3709,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3882,7 +3717,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3891,7 +3725,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3900,7 +3733,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3909,7 +3741,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3918,22 +3749,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3947,7 +3774,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3956,7 +3782,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3965,7 +3790,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3974,7 +3798,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3983,7 +3806,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3992,22 +3814,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4021,7 +3839,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4030,7 +3847,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4039,7 +3855,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4048,7 +3863,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4057,7 +3871,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4066,22 +3879,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4095,7 +3904,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4104,7 +3912,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4113,7 +3920,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4122,7 +3928,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4131,7 +3936,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4140,22 +3944,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4169,7 +3969,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4178,7 +3977,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4187,7 +3985,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4196,7 +3993,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4205,7 +4001,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4214,22 +4009,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4243,7 +4034,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4252,7 +4042,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4261,7 +4050,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4270,7 +4058,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4279,7 +4066,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4288,22 +4074,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4317,7 +4099,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4326,7 +4107,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4335,7 +4115,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4344,7 +4123,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4353,7 +4131,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4362,22 +4139,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4420,7 +4193,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4429,7 +4201,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4438,7 +4209,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4447,7 +4217,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4456,7 +4225,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4465,22 +4233,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4534,7 +4298,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4543,7 +4306,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4552,7 +4314,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4561,7 +4322,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4570,7 +4330,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4579,22 +4338,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4673,31 +4428,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4706,19 +4451,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4727,11 +4470,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4739,7 +4479,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4749,11 +4489,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4761,7 +4498,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4771,11 +4508,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4783,7 +4517,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4793,11 +4527,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4805,7 +4536,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4815,11 +4546,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4827,7 +4555,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4837,11 +4565,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4849,7 +4574,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4858,8 +4583,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4872,17 +4597,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -4895,17 +4618,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -4918,13 +4639,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -4937,31 +4656,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4970,19 +4679,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4991,11 +4698,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5003,7 +4707,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5013,11 +4717,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5025,7 +4726,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5035,11 +4736,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5047,7 +4745,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5057,11 +4755,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5069,7 +4764,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5079,11 +4774,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "ASC", ...(undefined != null ? { @@ -5091,7 +4783,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5101,11 +4793,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "DESC", ...(undefined != null ? { @@ -5113,7 +4802,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5122,8 +4811,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5136,17 +4825,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5159,17 +4846,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -5182,13 +4867,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Post: { @@ -5256,7 +4939,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5265,7 +4947,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5274,7 +4955,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5283,7 +4963,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5292,7 +4971,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5301,22 +4979,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5349,31 +5023,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5382,19 +5046,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5403,11 +5065,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5415,7 +5074,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5425,11 +5084,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5437,7 +5093,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5447,11 +5103,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5459,7 +5112,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5469,11 +5122,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5481,7 +5131,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5491,11 +5141,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5503,7 +5150,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5513,11 +5160,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5525,7 +5169,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5534,8 +5178,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5548,17 +5192,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5571,17 +5213,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5594,13 +5234,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5635,23 +5273,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5659,7 +5286,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5669,11 +5296,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5681,7 +5305,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5690,8 +5314,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5704,13 +5328,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -5739,31 +5361,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5772,19 +5384,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5793,11 +5403,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5805,7 +5412,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5815,11 +5422,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5827,7 +5431,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5837,11 +5441,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5849,7 +5450,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5859,11 +5460,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5871,7 +5469,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5880,8 +5478,8 @@ export const plans = { }, FilmCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5894,17 +5492,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5917,13 +5513,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -5952,31 +5546,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5985,19 +5569,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6006,11 +5588,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6018,7 +5597,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6028,11 +5607,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6040,7 +5616,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6050,11 +5626,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6062,7 +5635,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6072,11 +5645,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6084,7 +5654,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6093,8 +5663,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6107,17 +5677,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6130,13 +5698,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -6165,31 +5731,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6198,19 +5754,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6219,11 +5773,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6231,7 +5782,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6241,11 +5792,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6253,7 +5801,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6263,11 +5811,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -6275,7 +5820,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6285,11 +5830,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -6297,7 +5839,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6307,11 +5849,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -6319,7 +5858,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6329,11 +5868,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -6341,7 +5877,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6351,11 +5887,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -6363,7 +5896,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6373,11 +5906,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -6385,7 +5915,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6395,11 +5925,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -6407,7 +5934,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6417,11 +5944,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -6429,7 +5953,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6439,11 +5963,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -6451,7 +5972,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6461,11 +5982,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6473,7 +5991,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6483,11 +6001,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6495,7 +6010,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6505,11 +6020,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6517,7 +6029,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6526,8 +6038,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6540,17 +6052,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6563,17 +6073,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6586,17 +6094,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6609,17 +6115,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6632,17 +6136,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6655,17 +6157,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6678,20 +6178,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs3(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6701,9 +6199,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6711,7 +6218,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs4(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6721,9 +6228,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6731,17 +6247,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6751,17 +6267,17 @@ export const plans = { }, createFilm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_filmsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_filmsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6771,17 +6287,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6791,17 +6307,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6811,17 +6327,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6831,17 +6347,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6851,17 +6367,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6871,11 +6387,11 @@ export const plans = { }, updateFilm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6890,13 +6406,13 @@ export const plans = { }, updateFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6911,11 +6427,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6930,13 +6446,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6951,11 +6467,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6970,13 +6486,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6991,11 +6507,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7010,13 +6526,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7031,11 +6547,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7050,13 +6566,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7071,11 +6587,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7090,13 +6606,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7111,11 +6627,11 @@ export const plans = { }, deleteFilm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7130,13 +6646,13 @@ export const plans = { }, deleteFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7151,11 +6667,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7170,13 +6686,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7191,11 +6707,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7210,13 +6726,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7231,11 +6747,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7250,13 +6766,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7271,11 +6787,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7290,13 +6806,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7311,11 +6827,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7330,13 +6846,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7353,7 +6869,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -7370,16 +6887,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -7402,17 +6919,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -7423,35 +6940,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFilmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7459,7 +6975,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7475,9 +6991,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7488,42 +7002,42 @@ export const plans = { }, CreateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, film: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FilmInput: { - "__inputPlan": function FilmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7531,7 +7045,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7547,9 +7061,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7560,42 +7072,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7603,7 +7115,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7619,9 +7131,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7637,49 +7147,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7687,7 +7198,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7703,9 +7214,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7721,49 +7230,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7771,7 +7281,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7787,9 +7297,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7805,49 +7313,50 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -7855,7 +7364,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7871,9 +7380,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7884,70 +7391,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7955,7 +7466,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7971,9 +7482,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7984,55 +7493,58 @@ export const plans = { }, UpdateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FilmPatch: { - "__inputPlan": function FilmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8040,7 +7552,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8056,9 +7568,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8069,55 +7579,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8125,7 +7638,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8141,9 +7654,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8159,62 +7670,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8222,7 +7737,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8238,9 +7753,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8256,62 +7769,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8319,7 +7836,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8335,9 +7852,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8353,62 +7868,66 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8416,7 +7935,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8432,9 +7951,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8445,83 +7962,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8534,7 +8058,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8550,9 +8074,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8563,16 +8085,16 @@ export const plans = { }, DeleteFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8580,7 +8102,8 @@ export const plans = { DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8593,7 +8116,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8609,9 +8132,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8622,16 +8143,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8639,7 +8160,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8652,7 +8174,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8668,9 +8190,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8686,16 +8206,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8703,7 +8223,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8716,7 +8237,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8732,9 +8253,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8750,16 +8269,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8767,7 +8286,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8780,7 +8300,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8796,9 +8316,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8814,16 +8332,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8831,7 +8349,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8844,7 +8363,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8860,9 +8379,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8873,16 +8390,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 4f7981c50e..56e86ddc5e 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,10 +141,9 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); -const spec_films = { +const filmsCodec = recordCodec({ name: "films", identifier: filmsIdentifier, attributes: { @@ -179,10 +180,9 @@ const spec_films = { } }, executor: executor -}; -const filmsCodec = recordCodec(spec_films); +}); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -219,10 +219,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -268,10 +267,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -317,10 +315,9 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -369,8 +366,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -420,7 +416,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -550,8 +546,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1119,6 +1114,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1138,6 +1136,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1157,6 +1158,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1176,6 +1180,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1195,6 +1202,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1214,6 +1224,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1222,56 +1235,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1292,7 +1279,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1301,105 +1288,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1451,221 +1352,75 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); +const argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3861,44 +3616,44 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, filmByCode(_$root, args) { return pgResource_filmsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3915,7 +3670,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3924,7 +3678,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3933,7 +3686,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3942,7 +3694,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3951,7 +3702,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3960,27 +3710,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3991,7 +3741,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4000,7 +3749,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4009,7 +3757,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4018,7 +3765,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4027,7 +3773,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4036,22 +3781,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4065,7 +3806,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4074,7 +3814,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4083,7 +3822,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4092,7 +3830,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4101,7 +3838,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4110,22 +3846,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4139,7 +3871,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4148,7 +3879,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4157,7 +3887,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4166,7 +3895,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4175,7 +3903,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4184,22 +3911,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4213,7 +3936,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4222,7 +3944,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4231,7 +3952,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4240,7 +3960,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4249,7 +3968,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4258,22 +3976,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4287,7 +4001,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4296,7 +4009,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4305,7 +4017,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4314,7 +4025,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4323,7 +4033,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4332,22 +4041,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4361,7 +4066,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4370,7 +4074,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4379,7 +4082,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4388,7 +4090,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4397,7 +4098,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4406,22 +4106,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4435,7 +4131,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4444,7 +4139,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4453,7 +4147,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4462,7 +4155,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4471,7 +4163,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4480,22 +4171,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4538,7 +4225,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4547,7 +4233,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4556,7 +4241,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4565,7 +4249,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4574,7 +4257,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4583,22 +4265,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4649,7 +4327,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4658,7 +4335,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4667,7 +4343,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4676,7 +4351,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4685,7 +4359,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4694,22 +4367,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4788,31 +4457,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4821,19 +4480,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4842,11 +4499,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4854,7 +4508,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4864,11 +4518,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4876,7 +4527,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4886,11 +4537,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4898,7 +4546,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4908,11 +4556,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4920,7 +4565,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4930,11 +4575,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4942,7 +4584,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4952,11 +4594,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4964,7 +4603,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4973,8 +4612,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4987,17 +4626,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5010,17 +4647,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -5033,13 +4668,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -5052,31 +4685,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5085,19 +4708,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5106,11 +4727,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5118,7 +4736,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5128,11 +4746,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5140,7 +4755,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5150,11 +4765,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5162,7 +4774,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5172,11 +4784,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5184,7 +4793,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5194,11 +4803,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "ASC", ...(undefined != null ? { @@ -5206,7 +4812,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5216,11 +4822,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "DESC", ...(undefined != null ? { @@ -5228,7 +4831,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5237,8 +4840,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5251,17 +4854,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5274,17 +4875,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -5297,13 +4896,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Post: { @@ -5337,7 +4934,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -5352,27 +4949,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -5415,7 +5006,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5424,7 +5014,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5433,7 +5022,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5442,7 +5030,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5451,7 +5038,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5460,22 +5046,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5508,31 +5090,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5541,19 +5113,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5562,11 +5132,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5574,7 +5141,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5584,11 +5151,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5596,7 +5160,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5606,11 +5170,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5618,7 +5179,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5628,11 +5189,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5640,7 +5198,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5650,11 +5208,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5662,7 +5217,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5672,11 +5227,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5684,7 +5236,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5693,8 +5245,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5707,17 +5259,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5730,17 +5280,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5753,13 +5301,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5794,23 +5340,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5818,7 +5353,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5828,11 +5363,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5840,7 +5372,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5849,8 +5381,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5863,13 +5395,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -5898,31 +5428,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5931,19 +5451,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5952,11 +5470,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5964,7 +5479,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5974,11 +5489,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5986,7 +5498,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5996,11 +5508,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -6008,7 +5517,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6018,11 +5527,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -6030,7 +5536,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6039,8 +5545,8 @@ export const plans = { }, FilmCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -6053,17 +5559,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -6076,13 +5580,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -6111,31 +5613,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6144,19 +5636,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6165,11 +5655,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6177,7 +5664,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6187,11 +5674,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6199,7 +5683,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6209,11 +5693,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6221,7 +5702,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6231,11 +5712,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6243,7 +5721,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6252,8 +5730,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6266,17 +5744,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6289,13 +5765,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -6324,31 +5798,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6357,19 +5821,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6378,11 +5840,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6390,7 +5849,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6400,11 +5859,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6412,7 +5868,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6422,11 +5878,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -6434,7 +5887,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6444,11 +5897,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -6456,7 +5906,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6466,11 +5916,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -6478,7 +5925,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6488,11 +5935,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -6500,7 +5944,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6510,11 +5954,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -6522,7 +5963,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6532,11 +5973,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -6544,7 +5982,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6554,11 +5992,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -6566,7 +6001,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6576,11 +6011,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -6588,7 +6020,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6598,11 +6030,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -6610,7 +6039,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6620,11 +6049,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6632,7 +6058,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6642,11 +6068,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6654,7 +6077,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6664,11 +6087,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6676,7 +6096,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6685,8 +6105,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6699,17 +6119,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6722,17 +6140,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6745,17 +6161,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6768,17 +6182,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6791,17 +6203,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6814,17 +6224,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6837,20 +6245,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6860,9 +6266,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6870,7 +6285,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6880,9 +6295,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6890,17 +6314,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6910,17 +6334,17 @@ export const plans = { }, createFilm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_filmsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_filmsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6930,17 +6354,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6950,17 +6374,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6970,17 +6394,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6990,17 +6414,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7010,17 +6434,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7030,11 +6454,11 @@ export const plans = { }, updateFilm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7049,13 +6473,13 @@ export const plans = { }, updateFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7070,11 +6494,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7089,13 +6513,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7110,11 +6534,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7129,13 +6553,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7150,11 +6574,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7169,13 +6593,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7190,11 +6614,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7209,13 +6633,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7230,11 +6654,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7249,13 +6673,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7270,11 +6694,11 @@ export const plans = { }, deleteFilm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7289,13 +6713,13 @@ export const plans = { }, deleteFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7310,11 +6734,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7329,13 +6753,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7350,11 +6774,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7369,13 +6793,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7390,11 +6814,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7409,13 +6833,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7430,11 +6854,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7449,13 +6873,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7470,11 +6894,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7489,13 +6913,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7512,7 +6936,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -7529,16 +6954,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -7561,17 +6986,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -7582,35 +7007,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFilmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7618,7 +7042,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7634,9 +7058,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7647,42 +7069,42 @@ export const plans = { }, CreateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, film: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FilmInput: { - "__inputPlan": function FilmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7690,7 +7112,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7706,9 +7128,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7719,42 +7139,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7762,7 +7182,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7778,9 +7198,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7796,49 +7214,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7846,7 +7265,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7862,9 +7281,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7880,49 +7297,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7930,7 +7348,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7946,9 +7364,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7964,42 +7380,42 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8007,7 +7423,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8023,9 +7439,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8036,70 +7450,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8107,7 +7525,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8123,9 +7541,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8136,55 +7552,58 @@ export const plans = { }, UpdateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FilmPatch: { - "__inputPlan": function FilmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8192,7 +7611,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8208,9 +7627,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8221,55 +7638,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8277,7 +7697,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8293,9 +7713,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8311,62 +7729,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8374,7 +7796,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8390,9 +7812,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8408,62 +7828,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8471,7 +7895,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8487,9 +7911,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8505,55 +7927,58 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8561,7 +7986,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8577,9 +8002,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8590,83 +8013,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8679,7 +8109,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8695,9 +8125,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8708,16 +8136,16 @@ export const plans = { }, DeleteFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8725,7 +8153,8 @@ export const plans = { DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8738,7 +8167,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8754,9 +8183,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8767,16 +8194,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8784,7 +8211,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8797,7 +8225,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8813,9 +8241,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8831,16 +8257,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8848,7 +8274,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8861,7 +8288,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8877,9 +8304,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8895,16 +8320,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8912,7 +8337,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8925,7 +8351,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8941,9 +8367,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8959,16 +8383,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8976,7 +8400,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8989,7 +8414,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9005,9 +8430,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9018,16 +8441,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 0fe9d4ba21..3ab0d4aa90 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,10 +141,9 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); -const spec_films = { +const filmsCodec = recordCodec({ name: "films", identifier: filmsIdentifier, attributes: { @@ -179,10 +180,9 @@ const spec_films = { } }, executor: executor -}; -const filmsCodec = recordCodec(spec_films); +}); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -219,10 +219,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -268,10 +267,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -320,10 +318,9 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -372,8 +369,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -423,7 +419,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -553,8 +549,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1122,6 +1117,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1141,6 +1139,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1160,6 +1161,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1179,6 +1183,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1198,6 +1205,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1217,6 +1227,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1225,56 +1238,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1295,7 +1282,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1304,105 +1291,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1454,221 +1355,75 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); +const argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3851,44 +3606,44 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, filmByCode(_$root, args) { return pgResource_filmsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3905,7 +3660,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3914,7 +3668,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3923,7 +3676,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3932,7 +3684,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3941,7 +3692,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3950,27 +3700,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3981,7 +3731,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3990,7 +3739,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3999,7 +3747,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4008,7 +3755,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4017,7 +3763,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4026,22 +3771,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4055,7 +3796,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4064,7 +3804,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4073,7 +3812,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4082,7 +3820,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4091,7 +3828,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4100,22 +3836,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4129,7 +3861,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4138,7 +3869,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4147,7 +3877,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4156,7 +3885,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4165,7 +3893,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4174,22 +3901,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4203,7 +3926,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4212,7 +3934,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4221,7 +3942,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4230,7 +3950,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4239,7 +3958,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4248,22 +3966,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4277,7 +3991,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4286,7 +3999,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4295,7 +4007,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4304,7 +4015,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4313,7 +4023,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4322,22 +4031,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4351,7 +4056,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4360,7 +4064,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4369,7 +4072,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4378,7 +4080,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4387,7 +4088,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4396,22 +4096,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4425,7 +4121,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4434,7 +4129,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4443,7 +4137,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4452,7 +4145,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4461,7 +4153,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4470,22 +4161,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4528,7 +4215,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4537,7 +4223,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4546,7 +4231,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4555,7 +4239,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4564,7 +4247,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4573,22 +4255,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4639,7 +4317,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4648,7 +4325,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4657,7 +4333,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4666,7 +4341,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4675,7 +4349,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4684,22 +4357,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4775,31 +4444,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4808,19 +4467,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4829,11 +4486,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4841,7 +4495,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4851,11 +4505,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4863,7 +4514,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4873,11 +4524,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4885,7 +4533,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4895,11 +4543,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4907,7 +4552,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4916,8 +4561,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4930,17 +4575,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -4953,13 +4596,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -4972,31 +4613,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5005,19 +4636,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5026,11 +4655,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5038,7 +4664,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5048,11 +4674,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5060,7 +4683,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5070,11 +4693,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "ASC", ...(undefined != null ? { @@ -5082,7 +4702,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5092,11 +4712,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "DESC", ...(undefined != null ? { @@ -5104,7 +4721,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5113,8 +4730,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5127,17 +4744,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -5150,13 +4765,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Post: { @@ -5190,7 +4803,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -5205,27 +4818,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -5268,7 +4875,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5277,7 +4883,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5286,7 +4891,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5295,7 +4899,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5304,7 +4907,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5313,22 +4915,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5361,31 +4959,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5394,19 +4982,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5415,11 +5001,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5427,7 +5010,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5437,11 +5020,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5449,7 +5029,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5459,11 +5039,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5471,7 +5048,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5481,11 +5058,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5493,7 +5067,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5503,11 +5077,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5515,7 +5086,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5525,11 +5096,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5537,7 +5105,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5546,8 +5114,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5560,17 +5128,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5583,17 +5149,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5606,13 +5170,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5647,23 +5209,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5671,7 +5222,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5681,11 +5232,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5693,7 +5241,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5702,8 +5250,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5716,13 +5264,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -5751,31 +5297,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5784,19 +5320,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5805,11 +5339,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5817,7 +5348,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5827,11 +5358,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5839,7 +5367,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5849,11 +5377,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5861,7 +5386,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5871,11 +5396,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5883,7 +5405,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5892,8 +5414,8 @@ export const plans = { }, FilmCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5906,17 +5428,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5929,13 +5449,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -5964,31 +5482,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5997,19 +5505,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6018,11 +5524,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6030,7 +5533,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6040,11 +5543,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6052,7 +5552,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6062,11 +5562,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6074,7 +5571,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6084,11 +5581,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6096,7 +5590,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6105,8 +5599,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6119,17 +5613,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6142,13 +5634,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -6177,31 +5667,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6210,19 +5690,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6231,11 +5709,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6243,7 +5718,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6253,11 +5728,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6265,7 +5737,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6275,11 +5747,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -6287,7 +5756,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6297,11 +5766,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -6309,7 +5775,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6319,11 +5785,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -6331,7 +5794,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6341,11 +5804,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -6353,7 +5813,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6363,11 +5823,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -6375,7 +5832,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6385,11 +5842,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -6397,7 +5851,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6407,11 +5861,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -6419,7 +5870,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6429,11 +5880,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -6441,7 +5889,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6451,11 +5899,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -6463,7 +5908,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6473,11 +5918,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6485,7 +5927,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6495,11 +5937,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6507,7 +5946,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6517,11 +5956,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6529,7 +5965,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6538,8 +5974,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6552,17 +5988,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6575,17 +6009,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6598,17 +6030,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6621,17 +6051,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6644,17 +6072,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6667,17 +6093,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6690,20 +6114,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6713,9 +6135,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6723,7 +6154,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6733,9 +6164,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6743,17 +6183,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6763,17 +6203,17 @@ export const plans = { }, createFilm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_filmsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_filmsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6783,17 +6223,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6803,17 +6243,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6823,17 +6263,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6843,17 +6283,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6863,17 +6303,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6883,11 +6323,11 @@ export const plans = { }, updateFilm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6902,13 +6342,13 @@ export const plans = { }, updateFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6923,11 +6363,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6942,13 +6382,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6963,11 +6403,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6982,13 +6422,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7003,11 +6443,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7022,13 +6462,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7043,11 +6483,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7062,13 +6502,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7083,11 +6523,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7102,13 +6542,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7123,11 +6563,11 @@ export const plans = { }, deleteFilm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7142,13 +6582,13 @@ export const plans = { }, deleteFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7163,11 +6603,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7182,13 +6622,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7203,11 +6643,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7222,13 +6662,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7243,11 +6683,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7262,13 +6702,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7283,11 +6723,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7302,13 +6742,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7323,11 +6763,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7342,13 +6782,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7365,7 +6805,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -7382,16 +6823,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -7414,17 +6855,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -7435,35 +6876,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFilmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7471,7 +6911,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7487,9 +6927,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7500,42 +6938,42 @@ export const plans = { }, CreateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, film: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FilmInput: { - "__inputPlan": function FilmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7543,7 +6981,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7559,9 +6997,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7572,42 +7008,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7615,7 +7051,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7631,9 +7067,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7649,49 +7083,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7699,7 +7134,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7715,9 +7150,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7733,42 +7166,42 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7776,7 +7209,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7792,9 +7225,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7810,42 +7241,42 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -7853,7 +7284,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7869,9 +7300,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7882,70 +7311,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7953,7 +7386,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7969,9 +7402,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7982,55 +7413,58 @@ export const plans = { }, UpdateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FilmPatch: { - "__inputPlan": function FilmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8038,7 +7472,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8054,9 +7488,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8067,55 +7499,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8123,7 +7558,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8139,9 +7574,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8157,62 +7590,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8220,7 +7657,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8236,9 +7673,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8254,55 +7689,58 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8310,7 +7748,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8326,9 +7764,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8344,55 +7780,58 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8400,7 +7839,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8416,9 +7855,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8429,83 +7866,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8518,7 +7962,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8534,9 +7978,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8547,16 +7989,16 @@ export const plans = { }, DeleteFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8564,7 +8006,8 @@ export const plans = { DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8577,7 +8020,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8593,9 +8036,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8606,16 +8047,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8623,7 +8064,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8636,7 +8078,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8652,9 +8094,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8670,16 +8110,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8687,7 +8127,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8700,7 +8141,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8716,9 +8157,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8734,16 +8173,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8751,7 +8190,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8764,7 +8204,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8780,9 +8220,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8798,16 +8236,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8815,7 +8253,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8828,7 +8267,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8844,9 +8283,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8857,16 +8294,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 0d458b2e10..8dc817b2b9 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,10 +141,9 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); -const spec_films = { +const filmsCodec = recordCodec({ name: "films", identifier: filmsIdentifier, attributes: { @@ -179,10 +180,9 @@ const spec_films = { } }, executor: executor -}; -const filmsCodec = recordCodec(spec_films); +}); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -219,10 +219,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -268,10 +267,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -320,10 +318,9 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -369,8 +366,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -420,7 +416,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -550,8 +546,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1119,6 +1114,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1138,6 +1136,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1157,6 +1158,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1176,6 +1180,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1195,6 +1202,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1214,6 +1224,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1222,56 +1235,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1292,7 +1279,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1301,105 +1288,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1451,221 +1352,75 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); +const argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3862,44 +3617,44 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, filmByCode(_$root, args) { return pgResource_filmsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3916,7 +3671,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3925,7 +3679,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3934,7 +3687,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3943,7 +3695,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3952,7 +3703,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3961,27 +3711,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3992,7 +3742,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4001,7 +3750,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4010,7 +3758,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4019,7 +3766,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4028,7 +3774,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4037,22 +3782,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4066,7 +3807,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4075,7 +3815,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4084,7 +3823,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4093,7 +3831,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4102,7 +3839,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4111,22 +3847,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4140,7 +3872,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4149,7 +3880,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4158,7 +3888,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4167,7 +3896,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4176,7 +3904,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4185,22 +3912,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4214,7 +3937,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4223,7 +3945,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4232,7 +3953,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4241,7 +3961,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4250,7 +3969,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4259,22 +3977,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4288,7 +4002,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4297,7 +4010,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4306,7 +4018,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4315,7 +4026,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4324,7 +4034,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4333,22 +4042,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4362,7 +4067,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4371,7 +4075,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4380,7 +4083,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4389,7 +4091,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4398,7 +4099,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4407,22 +4107,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4436,7 +4132,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4445,7 +4140,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4454,7 +4148,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4463,7 +4156,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4472,7 +4164,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4481,22 +4172,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4539,7 +4226,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4548,7 +4234,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4557,7 +4242,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4566,7 +4250,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4575,7 +4258,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4584,22 +4266,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4653,7 +4331,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4662,7 +4339,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4671,7 +4347,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4680,7 +4355,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4689,7 +4363,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4698,22 +4371,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4792,31 +4461,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4825,19 +4484,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4846,11 +4503,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4858,7 +4512,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4868,11 +4522,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4880,7 +4531,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4890,11 +4541,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4902,7 +4550,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4912,11 +4560,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4924,7 +4569,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4933,8 +4578,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4947,17 +4592,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -4970,17 +4613,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -4993,13 +4634,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -5012,31 +4651,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5045,19 +4674,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5066,11 +4693,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5078,7 +4702,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5088,11 +4712,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5100,7 +4721,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5110,11 +4731,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5122,7 +4740,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5132,11 +4750,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5144,7 +4759,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5154,11 +4769,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "ASC", ...(undefined != null ? { @@ -5166,7 +4778,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5176,11 +4788,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "DESC", ...(undefined != null ? { @@ -5188,7 +4797,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5197,8 +4806,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5211,17 +4820,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5234,17 +4841,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -5257,13 +4862,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Post: { @@ -5297,7 +4900,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -5312,27 +4915,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -5375,7 +4972,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5384,7 +4980,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5393,7 +4988,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5402,7 +4996,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5411,7 +5004,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5420,22 +5012,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5468,31 +5056,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5501,19 +5079,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5522,11 +5098,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5534,7 +5107,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5544,11 +5117,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5556,7 +5126,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5566,11 +5136,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5578,7 +5145,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5588,11 +5155,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5600,7 +5164,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5610,11 +5174,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5622,7 +5183,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5632,11 +5193,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5644,7 +5202,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5653,8 +5211,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5667,17 +5225,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5690,17 +5246,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5713,13 +5267,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5754,23 +5306,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5778,7 +5319,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5788,11 +5329,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5800,7 +5338,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5809,8 +5347,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5823,13 +5361,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -5858,31 +5394,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5891,19 +5417,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5912,11 +5436,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5924,7 +5445,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5934,11 +5455,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5946,7 +5464,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5956,11 +5474,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5968,7 +5483,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5978,11 +5493,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5990,7 +5502,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5999,8 +5511,8 @@ export const plans = { }, FilmCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -6013,17 +5525,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -6036,13 +5546,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -6071,31 +5579,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6104,19 +5602,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6125,11 +5621,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6137,7 +5630,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6147,11 +5640,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6159,7 +5649,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6169,11 +5659,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6181,7 +5668,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6191,11 +5678,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6203,7 +5687,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6212,8 +5696,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6226,17 +5710,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6249,13 +5731,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -6284,31 +5764,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6317,19 +5787,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6338,11 +5806,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6350,7 +5815,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6360,11 +5825,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6372,7 +5834,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6382,11 +5844,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -6394,7 +5853,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6404,11 +5863,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -6416,7 +5872,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6426,11 +5882,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -6438,7 +5891,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6448,11 +5901,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -6460,7 +5910,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6470,11 +5920,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -6482,7 +5929,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6492,11 +5939,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -6504,7 +5948,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6514,11 +5958,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -6526,7 +5967,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6536,11 +5977,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -6548,7 +5986,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6558,11 +5996,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -6570,7 +6005,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6580,11 +6015,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6592,7 +6024,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6602,11 +6034,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6614,7 +6043,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6624,11 +6053,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6636,7 +6062,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6645,8 +6071,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6659,17 +6085,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6682,17 +6106,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6705,17 +6127,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6728,17 +6148,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6751,17 +6169,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6774,17 +6190,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6797,20 +6211,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6820,9 +6232,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6830,7 +6251,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6840,9 +6261,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6850,17 +6280,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6870,17 +6300,17 @@ export const plans = { }, createFilm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_filmsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_filmsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6890,17 +6320,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6910,17 +6340,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6930,17 +6360,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6950,17 +6380,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6970,17 +6400,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6990,11 +6420,11 @@ export const plans = { }, updateFilm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7009,13 +6439,13 @@ export const plans = { }, updateFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7030,11 +6460,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7049,13 +6479,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7070,11 +6500,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7089,13 +6519,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7110,11 +6540,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7129,13 +6559,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7150,11 +6580,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7169,13 +6599,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7190,11 +6620,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7209,13 +6639,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7230,11 +6660,11 @@ export const plans = { }, deleteFilm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7249,13 +6679,13 @@ export const plans = { }, deleteFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7270,11 +6700,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7289,13 +6719,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7310,11 +6740,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7329,13 +6759,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7350,11 +6780,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7369,13 +6799,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7390,11 +6820,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7409,13 +6839,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7430,11 +6860,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7449,13 +6879,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7472,7 +6902,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -7489,16 +6920,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -7521,17 +6952,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -7542,35 +6973,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFilmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7578,7 +7008,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7594,9 +7024,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7607,42 +7035,42 @@ export const plans = { }, CreateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, film: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FilmInput: { - "__inputPlan": function FilmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7650,7 +7078,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7666,9 +7094,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7679,42 +7105,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7722,7 +7148,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7738,9 +7164,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7756,49 +7180,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7806,7 +7231,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7822,9 +7247,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7840,49 +7263,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7890,7 +7314,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7906,9 +7330,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7924,49 +7346,50 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -7974,7 +7397,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7990,9 +7413,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8003,70 +7424,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8074,7 +7499,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8090,9 +7515,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8103,55 +7526,58 @@ export const plans = { }, UpdateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FilmPatch: { - "__inputPlan": function FilmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8159,7 +7585,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8175,9 +7601,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8188,55 +7612,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8244,7 +7671,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8260,9 +7687,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8278,62 +7703,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8341,7 +7770,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8357,9 +7786,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8375,62 +7802,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8438,7 +7869,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8454,9 +7885,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8472,62 +7901,66 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8535,7 +7968,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8551,9 +7984,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8564,83 +7995,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8653,7 +8091,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8669,9 +8107,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8682,16 +8118,16 @@ export const plans = { }, DeleteFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8699,7 +8135,8 @@ export const plans = { DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8712,7 +8149,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8728,9 +8165,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8741,16 +8176,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8758,7 +8193,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8771,7 +8207,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8787,9 +8223,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8805,16 +8239,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8822,7 +8256,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8835,7 +8270,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8851,9 +8286,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8869,16 +8302,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8886,7 +8319,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8899,7 +8333,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8915,9 +8349,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8933,16 +8365,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8950,7 +8382,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8963,7 +8396,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8979,9 +8412,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8992,16 +8423,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 8bd39fa63f..f5e799e93f 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,10 +141,9 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); -const spec_films = { +const filmsCodec = recordCodec({ name: "films", identifier: filmsIdentifier, attributes: { @@ -179,10 +180,9 @@ const spec_films = { } }, executor: executor -}; -const filmsCodec = recordCodec(spec_films); +}); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -219,10 +219,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -268,10 +267,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -317,10 +315,9 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -369,8 +366,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -420,7 +416,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -550,8 +546,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1119,6 +1114,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1138,6 +1136,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1157,6 +1158,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1176,6 +1180,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1195,6 +1202,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1214,6 +1224,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1222,56 +1235,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1292,7 +1279,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1301,105 +1288,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1451,221 +1352,75 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); +const argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3863,44 +3618,44 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, filmByCode(_$root, args) { return pgResource_filmsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3917,7 +3672,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3926,7 +3680,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3935,7 +3688,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3944,7 +3696,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3953,7 +3704,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3962,27 +3712,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3993,7 +3743,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4002,7 +3751,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4011,7 +3759,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4020,7 +3767,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4029,7 +3775,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4038,22 +3783,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4067,7 +3808,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4076,7 +3816,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4085,7 +3824,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4094,7 +3832,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4103,7 +3840,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4112,22 +3848,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4141,7 +3873,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4150,7 +3881,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4159,7 +3889,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4168,7 +3897,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4177,7 +3905,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4186,22 +3913,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4215,7 +3938,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4224,7 +3946,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4233,7 +3954,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4242,7 +3962,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4251,7 +3970,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4260,22 +3978,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4289,7 +4003,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4298,7 +4011,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4307,7 +4019,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4316,7 +4027,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4325,7 +4035,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4334,22 +4043,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4363,7 +4068,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4372,7 +4076,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4381,7 +4084,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4390,7 +4092,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4399,7 +4100,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4408,22 +4108,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4437,7 +4133,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4446,7 +4141,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4455,7 +4149,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4464,7 +4157,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4473,7 +4165,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4482,22 +4173,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4540,7 +4227,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4549,7 +4235,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4558,7 +4243,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4567,7 +4251,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4576,7 +4259,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4585,22 +4267,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4654,7 +4332,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4663,7 +4340,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4672,7 +4348,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4681,7 +4356,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4690,7 +4364,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4699,22 +4372,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4793,31 +4462,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4826,19 +4485,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4847,11 +4504,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4859,7 +4513,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4869,11 +4523,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4881,7 +4532,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4891,11 +4542,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4903,7 +4551,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4913,11 +4561,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4925,7 +4570,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4935,11 +4580,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4947,7 +4589,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4957,11 +4599,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4969,7 +4608,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4978,8 +4617,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4992,17 +4631,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5015,17 +4652,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -5038,13 +4673,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -5057,31 +4690,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5090,19 +4713,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5111,11 +4732,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5123,7 +4741,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5133,11 +4751,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5145,7 +4760,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5155,11 +4770,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5167,7 +4779,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5177,11 +4789,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5189,7 +4798,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5199,11 +4808,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "ASC", ...(undefined != null ? { @@ -5211,7 +4817,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5221,11 +4827,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "DESC", ...(undefined != null ? { @@ -5233,7 +4836,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5242,8 +4845,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5256,17 +4859,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5279,17 +4880,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -5302,13 +4901,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Post: { @@ -5342,7 +4939,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -5357,27 +4954,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -5420,7 +5011,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5429,7 +5019,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5438,7 +5027,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5447,7 +5035,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5456,7 +5043,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5465,22 +5051,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5513,31 +5095,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5546,19 +5118,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5567,11 +5137,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5579,7 +5146,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5589,11 +5156,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5601,7 +5165,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5611,11 +5175,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5623,7 +5184,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5633,11 +5194,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5645,7 +5203,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5655,11 +5213,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5667,7 +5222,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5677,11 +5232,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5689,7 +5241,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5698,8 +5250,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5712,17 +5264,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5735,17 +5285,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5758,13 +5306,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5799,23 +5345,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5823,7 +5358,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5833,11 +5368,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5845,7 +5377,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5854,8 +5386,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5868,13 +5400,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -5903,31 +5433,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5936,19 +5456,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5957,11 +5475,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5969,7 +5484,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5979,11 +5494,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5991,7 +5503,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6001,11 +5513,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -6013,7 +5522,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6023,11 +5532,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -6035,7 +5541,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6044,8 +5550,8 @@ export const plans = { }, FilmCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -6058,17 +5564,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -6081,13 +5585,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -6116,31 +5618,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6149,19 +5641,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6170,11 +5660,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6182,7 +5669,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6192,11 +5679,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6204,7 +5688,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6214,11 +5698,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6226,7 +5707,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6236,11 +5717,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6248,7 +5726,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6257,8 +5735,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6271,17 +5749,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6294,13 +5770,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -6329,31 +5803,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6362,19 +5826,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6383,11 +5845,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6395,7 +5854,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6405,11 +5864,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6417,7 +5873,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6427,11 +5883,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -6439,7 +5892,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6449,11 +5902,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -6461,7 +5911,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6471,11 +5921,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -6483,7 +5930,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6493,11 +5940,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -6505,7 +5949,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6515,11 +5959,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -6527,7 +5968,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6537,11 +5978,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -6549,7 +5987,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6559,11 +5997,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -6571,7 +6006,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6581,11 +6016,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -6593,7 +6025,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6603,11 +6035,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -6615,7 +6044,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6625,11 +6054,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6637,7 +6063,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6647,11 +6073,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6659,7 +6082,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6669,11 +6092,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6681,7 +6101,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6690,8 +6110,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6704,17 +6124,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6727,17 +6145,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6750,17 +6166,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6773,17 +6187,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6796,17 +6208,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6819,17 +6229,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6842,20 +6250,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6865,9 +6271,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6875,7 +6290,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6885,9 +6300,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6895,17 +6319,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6915,17 +6339,17 @@ export const plans = { }, createFilm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_filmsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_filmsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6935,17 +6359,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6955,17 +6379,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6975,17 +6399,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6995,17 +6419,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7015,17 +6439,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7035,11 +6459,11 @@ export const plans = { }, updateFilm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7054,13 +6478,13 @@ export const plans = { }, updateFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7075,11 +6499,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7094,13 +6518,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7115,11 +6539,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7134,13 +6558,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7155,11 +6579,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7174,13 +6598,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7195,11 +6619,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7214,13 +6638,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7235,11 +6659,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7254,13 +6678,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7275,11 +6699,11 @@ export const plans = { }, deleteFilm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7294,13 +6718,13 @@ export const plans = { }, deleteFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7315,11 +6739,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7334,13 +6758,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7355,11 +6779,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7374,13 +6798,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7395,11 +6819,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7414,13 +6838,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7435,11 +6859,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7454,13 +6878,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7475,11 +6899,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7494,13 +6918,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7517,7 +6941,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -7534,16 +6959,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -7566,17 +6991,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -7587,35 +7012,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFilmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7623,7 +7047,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7639,9 +7063,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7652,42 +7074,42 @@ export const plans = { }, CreateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, film: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FilmInput: { - "__inputPlan": function FilmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7695,7 +7117,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7711,9 +7133,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7724,42 +7144,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7767,7 +7187,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7783,9 +7203,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7801,49 +7219,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7851,7 +7270,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7867,9 +7286,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7885,49 +7302,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7935,7 +7353,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7951,9 +7369,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7969,49 +7385,50 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8019,7 +7436,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8035,9 +7452,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8048,70 +7463,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8119,7 +7538,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8135,9 +7554,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8148,55 +7565,58 @@ export const plans = { }, UpdateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FilmPatch: { - "__inputPlan": function FilmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8204,7 +7624,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8220,9 +7640,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8233,55 +7651,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8289,7 +7710,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8305,9 +7726,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8323,62 +7742,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8386,7 +7809,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8402,9 +7825,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8420,62 +7841,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8483,7 +7908,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8499,9 +7924,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8517,55 +7940,58 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8573,7 +7999,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8589,9 +8015,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8602,83 +8026,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8691,7 +8122,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8707,9 +8138,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8720,16 +8149,16 @@ export const plans = { }, DeleteFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8737,7 +8166,8 @@ export const plans = { DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8750,7 +8180,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8766,9 +8196,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8779,16 +8207,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8796,7 +8224,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8809,7 +8238,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8825,9 +8254,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8843,16 +8270,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8860,7 +8287,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8873,7 +8301,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8889,9 +8317,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8907,16 +8333,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8924,7 +8350,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8937,7 +8364,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8953,9 +8380,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8971,16 +8396,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8988,7 +8413,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -9001,7 +8427,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9017,9 +8443,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9030,16 +8454,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 7ee2c49c5c..52c3201364 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,8 +141,7 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); const spec_films = { name: "films", @@ -184,7 +185,7 @@ const spec_films = { }; const filmsCodec = recordCodec(spec_films); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -221,10 +222,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -270,10 +270,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -319,10 +318,9 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -368,8 +366,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -419,7 +416,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -549,8 +546,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1121,6 +1117,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1140,6 +1139,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1159,6 +1161,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1178,6 +1183,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1197,6 +1205,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1216,6 +1227,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1224,56 +1238,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1294,7 +1282,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1303,105 +1291,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1453,213 +1355,67 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); +const argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3666,44 +3422,44 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, filmByCode(_$root, args) { return pgResource_filmsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3720,7 +3476,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3729,7 +3484,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3738,7 +3492,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3747,7 +3500,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3756,7 +3508,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3765,27 +3516,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3796,7 +3547,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3805,7 +3555,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3814,7 +3563,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3823,7 +3571,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3832,7 +3579,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3841,22 +3587,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3870,7 +3612,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3879,7 +3620,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3888,7 +3628,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3897,7 +3636,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3906,7 +3644,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3915,22 +3652,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3944,7 +3677,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3953,7 +3685,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3962,7 +3693,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3971,7 +3701,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3980,7 +3709,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3989,22 +3717,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4018,7 +3742,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4027,7 +3750,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4036,7 +3758,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4045,7 +3766,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4054,7 +3774,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4063,22 +3782,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4092,7 +3807,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4101,7 +3815,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4110,7 +3823,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4119,7 +3831,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4128,7 +3839,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4137,22 +3847,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4166,7 +3872,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4175,7 +3880,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4184,7 +3888,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4193,7 +3896,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4202,7 +3904,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4211,22 +3912,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4240,7 +3937,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4249,7 +3945,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4258,7 +3953,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4267,7 +3961,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4276,7 +3969,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4285,22 +3977,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4343,7 +4031,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4352,7 +4039,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4361,7 +4047,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4370,7 +4055,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4379,7 +4063,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4388,22 +4071,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4457,7 +4136,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4466,7 +4144,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4475,7 +4152,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4484,7 +4160,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4493,7 +4168,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4502,22 +4176,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4596,31 +4266,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4629,19 +4289,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4650,11 +4308,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4662,7 +4317,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4672,11 +4327,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4684,7 +4336,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4694,11 +4346,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4706,7 +4355,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4716,11 +4365,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4728,7 +4374,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4738,11 +4384,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4750,7 +4393,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4760,11 +4403,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4772,7 +4412,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4781,8 +4421,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4795,17 +4435,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -4818,17 +4456,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -4841,13 +4477,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -4860,31 +4494,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4893,19 +4517,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4914,11 +4536,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4926,7 +4545,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4936,11 +4555,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4948,7 +4564,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4958,11 +4574,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4970,7 +4583,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4980,11 +4593,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4992,7 +4602,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5002,11 +4612,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "ASC", ...(undefined != null ? { @@ -5014,7 +4621,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5024,11 +4631,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "DESC", ...(undefined != null ? { @@ -5036,7 +4640,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5045,8 +4649,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5059,17 +4663,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5082,17 +4684,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -5105,13 +4705,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Post: { @@ -5145,7 +4743,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -5160,27 +4758,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -5223,7 +4815,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5232,7 +4823,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5241,7 +4831,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5250,7 +4839,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5259,7 +4847,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5268,22 +4855,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5316,31 +4899,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5349,19 +4922,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5370,11 +4941,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5382,7 +4950,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5392,11 +4960,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5404,7 +4969,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5414,11 +4979,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5426,7 +4988,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5436,11 +4998,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5448,7 +5007,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5458,11 +5017,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5470,7 +5026,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5480,11 +5036,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5492,7 +5045,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5501,8 +5054,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5515,17 +5068,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5538,17 +5089,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5561,13 +5110,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5602,23 +5149,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5626,7 +5162,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5636,11 +5172,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5648,7 +5181,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5657,8 +5190,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5671,13 +5204,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -5706,31 +5237,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5739,19 +5260,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5760,11 +5279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5772,7 +5288,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5782,11 +5298,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5794,7 +5307,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5804,11 +5317,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5816,7 +5326,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5826,11 +5336,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5838,7 +5345,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5847,8 +5354,8 @@ export const plans = { }, FilmCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5861,17 +5368,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5884,13 +5389,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -5919,31 +5422,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5952,19 +5445,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5973,11 +5464,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5985,7 +5473,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5995,11 +5483,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6007,7 +5492,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6017,11 +5502,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6029,7 +5511,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6039,11 +5521,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6051,7 +5530,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6060,8 +5539,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6074,17 +5553,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6097,13 +5574,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -6132,31 +5607,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6165,19 +5630,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6186,11 +5649,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6198,7 +5658,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6208,11 +5668,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6220,7 +5677,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6230,11 +5687,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -6242,7 +5696,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6252,11 +5706,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -6264,7 +5715,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6274,11 +5725,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -6286,7 +5734,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6296,11 +5744,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -6308,7 +5753,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6318,11 +5763,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -6330,7 +5772,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6340,11 +5782,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -6352,7 +5791,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6362,11 +5801,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -6374,7 +5810,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6384,11 +5820,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -6396,7 +5829,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6406,11 +5839,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -6418,7 +5848,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6428,11 +5858,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6440,7 +5867,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6450,11 +5877,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6462,7 +5886,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6472,11 +5896,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6484,7 +5905,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6493,8 +5914,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6507,17 +5928,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6530,17 +5949,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6553,17 +5970,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6576,17 +5991,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6599,17 +6012,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6622,17 +6033,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6645,20 +6054,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6668,9 +6075,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6678,7 +6094,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6688,9 +6104,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6698,17 +6123,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6718,17 +6143,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6738,17 +6163,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6758,17 +6183,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6778,17 +6203,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6798,17 +6223,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6818,11 +6243,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6837,13 +6262,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6858,11 +6283,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6877,13 +6302,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6898,11 +6323,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6917,13 +6342,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6938,11 +6363,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6957,13 +6382,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6978,11 +6403,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6997,13 +6422,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7018,11 +6443,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs6(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs6(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7037,13 +6462,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7058,11 +6483,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7077,13 +6502,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7098,11 +6523,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7117,13 +6542,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7138,11 +6563,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7157,13 +6582,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7178,11 +6603,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7197,13 +6622,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7220,7 +6645,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -7237,16 +6663,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -7269,17 +6695,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -7290,35 +6716,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7326,7 +6751,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7342,9 +6767,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7355,42 +6778,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7398,7 +6821,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7414,9 +6837,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7432,49 +6853,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7482,7 +6904,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7498,9 +6920,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7516,49 +6936,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7566,7 +6987,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7582,9 +7003,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7600,49 +7019,50 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -7650,7 +7070,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7666,9 +7086,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7679,70 +7097,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7750,7 +7172,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7766,9 +7188,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7779,55 +7199,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7835,7 +7258,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7851,9 +7274,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7869,62 +7290,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7932,7 +7357,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7948,9 +7373,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7966,62 +7389,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8029,7 +7456,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8045,9 +7472,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8063,62 +7488,66 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8126,7 +7555,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8142,9 +7571,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8155,83 +7582,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8244,7 +7678,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8260,9 +7694,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8273,16 +7705,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8290,7 +7722,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8303,7 +7736,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8319,9 +7752,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8337,16 +7768,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8354,7 +7785,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8367,7 +7799,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8383,9 +7815,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8401,16 +7831,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8418,7 +7848,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8431,7 +7862,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8447,9 +7878,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8465,16 +7894,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8482,7 +7911,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8495,7 +7925,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8511,9 +7941,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8524,16 +7952,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 bfb6bbba2f..39e3c5e3f1 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,10 +141,9 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); -const spec_films = { +const filmsCodec = recordCodec({ name: "films", identifier: filmsIdentifier, attributes: { @@ -179,10 +180,9 @@ const spec_films = { } }, executor: executor -}; -const filmsCodec = recordCodec(spec_films); +}); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -219,10 +219,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -268,8 +267,7 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); const spec_tvEpisodes = { name: "tvEpisodes", @@ -322,7 +320,7 @@ const spec_tvEpisodes = { }; const tvEpisodesCodec = recordCodec(spec_tvEpisodes); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -368,8 +366,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -419,7 +416,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -549,8 +546,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1123,6 +1119,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1142,6 +1141,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1161,6 +1163,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1180,6 +1185,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1199,6 +1207,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1218,6 +1229,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1226,56 +1240,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1296,7 +1284,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1305,105 +1293,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1455,221 +1357,75 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); function CursorSerialize(value) { return "" + value; } -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3781,44 +3537,44 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, filmByCode(_$root, args) { return pgResource_filmsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3835,7 +3591,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3844,7 +3599,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3853,7 +3607,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3862,7 +3615,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3871,7 +3623,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3880,27 +3631,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3911,7 +3662,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3920,7 +3670,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3929,7 +3678,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3938,7 +3686,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3947,7 +3694,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3956,22 +3702,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3985,7 +3727,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3994,7 +3735,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4003,7 +3743,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4012,7 +3751,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4021,7 +3759,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4030,22 +3767,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4059,7 +3792,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4068,7 +3800,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4077,7 +3808,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4086,7 +3816,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4095,7 +3824,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4104,22 +3832,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4133,7 +3857,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4142,7 +3865,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4151,7 +3873,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4160,7 +3881,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4169,7 +3889,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4178,22 +3897,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4207,7 +3922,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4216,7 +3930,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4225,7 +3938,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4234,7 +3946,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4243,7 +3954,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4252,22 +3962,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4281,7 +3987,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4290,7 +3995,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4299,7 +4003,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4308,7 +4011,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4317,7 +4019,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4326,22 +4027,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4355,7 +4052,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4364,7 +4060,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4373,7 +4068,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4382,7 +4076,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4391,7 +4084,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4400,22 +4092,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4479,7 +4167,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -4494,27 +4182,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -4671,23 +4353,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -4695,7 +4366,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4705,11 +4376,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -4717,7 +4385,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4726,8 +4394,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -4740,13 +4408,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -4775,31 +4441,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4808,19 +4464,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4829,11 +4483,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4841,7 +4492,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4851,11 +4502,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4863,7 +4511,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4873,11 +4521,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4885,7 +4530,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4895,11 +4540,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4907,7 +4549,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4916,8 +4558,8 @@ export const plans = { }, FilmCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4930,17 +4572,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -4953,13 +4593,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -4988,31 +4626,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5021,19 +4649,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5042,11 +4668,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5054,7 +4677,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5064,11 +4687,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5076,7 +4696,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5086,11 +4706,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -5098,7 +4715,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5108,11 +4725,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -5120,7 +4734,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5129,8 +4743,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5143,17 +4757,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -5166,41 +4778,29 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5209,19 +4809,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5230,11 +4828,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5242,7 +4837,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5252,11 +4847,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5264,7 +4856,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5274,11 +4866,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5286,7 +4875,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5296,11 +4885,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5308,7 +4894,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5318,11 +4904,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5330,7 +4913,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5340,11 +4923,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5352,7 +4932,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5361,8 +4941,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5375,17 +4955,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5398,17 +4976,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5421,13 +4997,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvEpisodesConnection: { @@ -5456,31 +5030,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5489,19 +5053,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5510,11 +5072,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5522,7 +5081,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5532,11 +5091,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5544,7 +5100,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5554,11 +5110,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5566,7 +5119,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5576,11 +5129,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5588,7 +5138,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5598,11 +5148,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -5610,7 +5157,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5620,11 +5167,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -5632,7 +5176,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5641,8 +5185,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5655,17 +5199,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5678,17 +5220,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -5701,13 +5241,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsConnection: { @@ -5736,31 +5274,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5769,19 +5297,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5790,11 +5316,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5802,7 +5325,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5812,11 +5335,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5824,7 +5344,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5834,11 +5354,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5846,7 +5363,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5856,11 +5373,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5868,7 +5382,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5878,11 +5392,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "ASC", ...(undefined != null ? { @@ -5890,7 +5401,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5900,11 +5411,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "DESC", ...(undefined != null ? { @@ -5912,7 +5420,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5921,8 +5429,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5935,17 +5443,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5958,17 +5464,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -5981,13 +5485,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -6016,31 +5518,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6049,19 +5541,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6070,11 +5560,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6082,7 +5569,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6092,11 +5579,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6104,7 +5588,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6114,11 +5598,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -6126,7 +5607,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6136,11 +5617,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -6148,7 +5626,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6158,11 +5636,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -6170,7 +5645,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6180,11 +5655,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -6192,7 +5664,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6202,11 +5674,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -6214,7 +5683,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6224,11 +5693,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -6236,7 +5702,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6246,11 +5712,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -6258,7 +5721,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6268,11 +5731,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -6280,7 +5740,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6290,11 +5750,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -6302,7 +5759,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6312,11 +5769,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6324,7 +5778,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6334,11 +5788,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6346,7 +5797,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6356,11 +5807,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6368,7 +5816,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6377,8 +5825,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6391,17 +5839,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6414,17 +5860,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6437,17 +5881,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6460,17 +5902,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6483,17 +5923,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6506,17 +5944,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6529,20 +5965,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6552,9 +5986,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6562,7 +6005,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6572,9 +6015,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6582,17 +6034,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6602,17 +6054,17 @@ export const plans = { }, createFilm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_filmsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_filmsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6622,17 +6074,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6642,17 +6094,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6662,17 +6114,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6682,17 +6134,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6702,17 +6154,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6722,11 +6174,11 @@ export const plans = { }, updateFilm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6741,13 +6193,13 @@ export const plans = { }, updateFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6762,11 +6214,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6781,13 +6233,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6802,11 +6254,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6821,13 +6273,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6842,11 +6294,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6861,13 +6313,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6882,11 +6334,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6901,13 +6353,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6922,11 +6374,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6941,13 +6393,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6962,11 +6414,11 @@ export const plans = { }, deleteFilm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6981,13 +6433,13 @@ export const plans = { }, deleteFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7002,11 +6454,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7021,13 +6473,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7042,11 +6494,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7061,13 +6513,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7082,11 +6534,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7101,13 +6553,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7122,11 +6574,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7141,13 +6593,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7162,11 +6614,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7181,13 +6633,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7204,7 +6656,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -7221,16 +6674,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -7253,17 +6706,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -7274,35 +6727,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFilmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7310,7 +6762,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7326,9 +6778,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7339,42 +6789,42 @@ export const plans = { }, CreateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, film: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FilmInput: { - "__inputPlan": function FilmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7382,7 +6832,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7398,9 +6848,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7411,42 +6859,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7454,7 +6902,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7470,9 +6918,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7488,49 +6934,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7538,7 +6985,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7554,9 +7001,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7572,49 +7017,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7622,7 +7068,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7638,9 +7084,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7656,49 +7100,50 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -7706,7 +7151,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7722,9 +7167,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7735,70 +7178,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7806,7 +7253,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7822,9 +7269,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7835,55 +7280,58 @@ export const plans = { }, UpdateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FilmPatch: { - "__inputPlan": function FilmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7891,7 +7339,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7907,9 +7355,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7920,55 +7366,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7976,7 +7425,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7992,9 +7441,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8010,62 +7457,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8073,7 +7524,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8089,9 +7540,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8107,62 +7556,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8170,7 +7623,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8186,9 +7639,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8204,62 +7655,66 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8267,7 +7722,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8283,9 +7738,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8296,83 +7749,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8385,7 +7845,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8401,9 +7861,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8414,16 +7872,16 @@ export const plans = { }, DeleteFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8431,7 +7889,8 @@ export const plans = { DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8444,7 +7903,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8460,9 +7919,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8473,16 +7930,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8490,7 +7947,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8503,7 +7961,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8519,9 +7977,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8537,16 +7993,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8554,7 +8010,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8567,7 +8024,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8583,9 +8040,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8601,16 +8056,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8618,7 +8073,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8631,7 +8087,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8647,9 +8103,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8665,16 +8119,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8682,7 +8136,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8695,7 +8150,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8711,9 +8166,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8724,16 +8177,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 1aa107c860..b5fb96103d 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,8 +141,7 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); const spec_films = { name: "films", @@ -184,7 +185,7 @@ const spec_films = { }; const filmsCodec = recordCodec(spec_films); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -221,10 +222,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -270,10 +270,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -319,8 +318,7 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); const spec_tvShows = { name: "tvShows", @@ -421,7 +419,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -551,8 +549,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const studiosUniques = [{ @@ -1122,6 +1119,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1141,6 +1141,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1160,6 +1163,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1179,6 +1185,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1187,56 +1196,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1257,7 +1240,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1266,105 +1249,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1400,205 +1297,59 @@ const fetcher4 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); function CursorSerialize(value) { return "" + value; } -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3131,34 +2882,34 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3175,7 +2926,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3184,7 +2934,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3193,7 +2942,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3202,7 +2950,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3211,7 +2958,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3220,19 +2966,19 @@ export const plans = { } }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, allRenamedTables: { @@ -3243,7 +2989,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3252,7 +2997,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3261,7 +3005,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3270,7 +3013,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3279,7 +3021,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3288,22 +3029,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3317,7 +3054,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3326,7 +3062,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3335,7 +3070,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3344,7 +3078,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3353,7 +3086,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3362,22 +3094,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3391,7 +3119,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3400,7 +3127,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3409,7 +3135,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3418,7 +3143,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3427,7 +3151,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3436,22 +3159,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3465,7 +3184,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3474,7 +3192,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3483,7 +3200,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3492,7 +3208,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3501,7 +3216,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3510,22 +3224,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3539,7 +3249,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3548,7 +3257,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3557,7 +3265,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3566,7 +3273,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3575,7 +3281,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3584,22 +3289,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3650,7 +3351,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -3665,27 +3366,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -3728,7 +3423,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3737,7 +3431,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3746,7 +3439,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3755,7 +3447,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3764,7 +3455,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3773,22 +3463,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3846,31 +3532,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3879,19 +3555,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3900,11 +3574,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -3912,7 +3583,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3922,11 +3593,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -3934,7 +3602,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3944,11 +3612,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -3956,7 +3621,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3966,11 +3631,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -3978,7 +3640,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3988,11 +3650,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -4000,7 +3659,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4010,11 +3669,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -4022,7 +3678,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4031,8 +3687,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -4045,17 +3701,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -4068,17 +3722,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -4091,13 +3743,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvEpisode: { @@ -4148,23 +3798,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -4172,7 +3811,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4182,11 +3821,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -4194,7 +3830,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4203,8 +3839,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -4217,13 +3853,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -4252,31 +3886,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4285,19 +3909,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4306,11 +3928,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -4318,7 +3937,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4328,11 +3947,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -4340,7 +3956,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4350,11 +3966,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -4362,7 +3975,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4372,11 +3985,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -4384,7 +3994,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4393,8 +4003,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -4407,17 +4017,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -4430,13 +4038,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvEpisodesConnection: { @@ -4465,31 +4071,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4498,19 +4094,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4519,11 +4113,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4531,7 +4122,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4541,11 +4132,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4553,7 +4141,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4563,11 +4151,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4575,7 +4160,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4585,11 +4170,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4597,7 +4179,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4607,11 +4189,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4619,7 +4198,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4629,11 +4208,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4641,7 +4217,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4650,8 +4226,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4664,17 +4240,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -4687,17 +4261,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -4710,13 +4282,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -4745,31 +4315,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4778,19 +4338,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4799,11 +4357,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -4811,7 +4366,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4821,11 +4376,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -4833,7 +4385,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4843,11 +4395,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -4855,7 +4404,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4865,11 +4414,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -4877,7 +4423,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4887,11 +4433,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -4899,7 +4442,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4909,11 +4452,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -4921,7 +4461,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4931,11 +4471,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -4943,7 +4480,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4953,11 +4490,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -4965,7 +4499,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4975,11 +4509,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -4987,7 +4518,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4997,11 +4528,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -5009,7 +4537,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5019,11 +4547,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -5031,7 +4556,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5041,11 +4566,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -5053,7 +4575,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5063,11 +4585,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -5075,7 +4594,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5085,11 +4604,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -5097,7 +4613,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5106,8 +4622,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5120,17 +4636,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -5143,17 +4657,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -5166,17 +4678,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -5189,17 +4699,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -5212,17 +4720,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -5235,17 +4741,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -5258,20 +4762,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -5281,9 +4783,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -5291,7 +4802,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -5301,9 +4812,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -5311,17 +4831,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -5331,17 +4851,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -5351,17 +4871,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -5371,17 +4891,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -5391,17 +4911,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -5411,11 +4931,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -5430,13 +4950,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -5451,11 +4971,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -5470,13 +4990,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -5491,11 +5011,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -5510,13 +5030,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -5531,11 +5051,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -5550,13 +5070,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -5571,11 +5091,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs5(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs5(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -5590,13 +5110,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -5611,11 +5131,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs6(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs6(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -5630,13 +5150,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -5651,11 +5171,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -5670,13 +5190,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -5691,11 +5211,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -5710,13 +5230,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -5733,7 +5253,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -5750,16 +5271,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -5782,17 +5303,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -5803,35 +5324,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -5839,7 +5359,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5855,9 +5375,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5868,42 +5386,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -5911,7 +5429,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5927,9 +5445,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5945,49 +5461,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -5995,7 +5512,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6011,9 +5528,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6024,49 +5539,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -6074,7 +5590,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6090,9 +5606,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6103,70 +5617,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -6174,7 +5692,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6190,9 +5708,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6203,55 +5719,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -6259,7 +5778,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6275,9 +5794,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6293,62 +5810,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -6356,7 +5877,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6372,9 +5893,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6385,62 +5904,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -6448,7 +5971,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6464,9 +5987,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6477,83 +5998,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -6566,7 +6094,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6582,9 +6110,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6595,16 +6121,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -6612,7 +6138,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -6625,7 +6152,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6641,9 +6168,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6659,16 +6184,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -6676,7 +6201,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -6689,7 +6215,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6705,9 +6231,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6718,16 +6242,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -6735,7 +6259,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -6748,7 +6273,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6764,9 +6289,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6777,16 +6300,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 ff363ac2a3..d2e8cc655e 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,8 +141,7 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); const spec_films = { name: "films", @@ -184,7 +185,7 @@ const spec_films = { }; const filmsCodec = recordCodec(spec_films); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -221,10 +222,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -270,10 +270,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -319,10 +318,9 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -368,8 +366,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -419,7 +416,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -549,8 +546,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1121,6 +1117,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1140,6 +1139,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1159,6 +1161,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1178,6 +1183,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1197,6 +1205,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1216,6 +1227,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1224,56 +1238,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1294,7 +1282,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1303,105 +1291,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1453,221 +1355,75 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); +const argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3817,44 +3573,44 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, filmByCode(_$root, args) { return pgResource_filmsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3871,7 +3627,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3880,7 +3635,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3889,7 +3643,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3898,7 +3651,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3907,7 +3659,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3916,27 +3667,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3947,7 +3698,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3956,7 +3706,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3965,7 +3714,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3974,7 +3722,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3983,7 +3730,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3992,22 +3738,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4021,7 +3763,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4030,7 +3771,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4039,7 +3779,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4048,7 +3787,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4057,7 +3795,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4066,22 +3803,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4095,7 +3828,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4104,7 +3836,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4113,7 +3844,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4122,7 +3852,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4131,7 +3860,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4140,22 +3868,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4169,7 +3893,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4178,7 +3901,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4187,7 +3909,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4196,7 +3917,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4205,7 +3925,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4214,22 +3933,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4243,7 +3958,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4252,7 +3966,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4261,7 +3974,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4270,7 +3982,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4279,7 +3990,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4288,22 +3998,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4317,7 +4023,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4326,7 +4031,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4335,7 +4039,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4344,7 +4047,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4353,7 +4055,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4362,22 +4063,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4391,7 +4088,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4400,7 +4096,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4409,7 +4104,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4418,7 +4112,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4427,7 +4120,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4436,22 +4128,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4494,7 +4182,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4503,7 +4190,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4512,7 +4198,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4521,7 +4206,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4530,7 +4214,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4539,22 +4222,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4608,7 +4287,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4617,7 +4295,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4626,7 +4303,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4635,7 +4311,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4644,7 +4319,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4653,22 +4327,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4747,31 +4417,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4780,19 +4440,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4801,11 +4459,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4813,7 +4468,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4823,11 +4478,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4835,7 +4487,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4845,11 +4497,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4857,7 +4506,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4867,11 +4516,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4879,7 +4525,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4889,11 +4535,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4901,7 +4544,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4911,11 +4554,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4923,7 +4563,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4932,8 +4572,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4946,17 +4586,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -4969,17 +4607,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -4992,13 +4628,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -5011,31 +4645,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5044,19 +4668,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5065,11 +4687,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5077,7 +4696,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5087,11 +4706,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5099,7 +4715,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5109,11 +4725,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5121,7 +4734,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5131,11 +4744,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5143,7 +4753,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5153,11 +4763,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "ASC", ...(undefined != null ? { @@ -5165,7 +4772,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5175,11 +4782,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "DESC", ...(undefined != null ? { @@ -5187,7 +4791,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5196,8 +4800,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5210,17 +4814,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5233,17 +4835,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -5256,13 +4856,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Post: { @@ -5296,7 +4894,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -5311,27 +4909,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -5374,7 +4966,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5383,7 +4974,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5392,7 +4982,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5401,7 +4990,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5410,7 +4998,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5419,22 +5006,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5467,31 +5050,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5500,19 +5073,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5521,11 +5092,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5533,7 +5101,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5543,11 +5111,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5555,7 +5120,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5565,11 +5130,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5577,7 +5139,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5587,11 +5149,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5599,7 +5158,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5609,11 +5168,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5621,7 +5177,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5631,11 +5187,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5643,7 +5196,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5652,8 +5205,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5666,17 +5219,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5689,17 +5240,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5712,13 +5261,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5753,23 +5300,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5777,7 +5313,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5787,11 +5323,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5799,7 +5332,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5808,8 +5341,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5822,13 +5355,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -5857,31 +5388,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5890,19 +5411,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5911,11 +5430,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5923,7 +5439,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5933,11 +5449,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5945,7 +5458,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5955,11 +5468,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5967,7 +5477,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5977,11 +5487,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5989,7 +5496,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5998,8 +5505,8 @@ export const plans = { }, FilmCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -6012,17 +5519,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -6035,13 +5540,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -6070,31 +5573,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6103,19 +5596,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6124,11 +5615,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6136,7 +5624,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6146,11 +5634,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6158,7 +5643,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6168,11 +5653,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6180,7 +5662,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6190,11 +5672,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6202,7 +5681,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6211,8 +5690,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6225,17 +5704,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6248,13 +5725,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -6283,31 +5758,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6316,19 +5781,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6337,11 +5800,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6349,7 +5809,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6359,11 +5819,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6371,7 +5828,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6381,11 +5838,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -6393,7 +5847,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6403,11 +5857,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -6415,7 +5866,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6425,11 +5876,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -6437,7 +5885,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6447,11 +5895,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -6459,7 +5904,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6469,11 +5914,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -6481,7 +5923,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6491,11 +5933,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -6503,7 +5942,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6513,11 +5952,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -6525,7 +5961,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6535,11 +5971,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -6547,7 +5980,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6557,11 +5990,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -6569,7 +5999,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6579,11 +6009,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6591,7 +6018,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6601,11 +6028,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6613,7 +6037,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6623,11 +6047,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6635,7 +6056,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6644,8 +6065,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6658,17 +6079,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6681,17 +6100,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6704,17 +6121,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6727,17 +6142,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6750,17 +6163,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6773,17 +6184,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6796,20 +6205,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6819,9 +6226,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6829,7 +6245,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6839,9 +6255,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6849,17 +6274,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6869,17 +6294,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6889,17 +6314,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6909,17 +6334,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6929,17 +6354,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6949,17 +6374,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6969,11 +6394,11 @@ export const plans = { }, updateFilm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6988,13 +6413,13 @@ export const plans = { }, updateFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7009,11 +6434,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7028,13 +6453,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7049,11 +6474,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7068,13 +6493,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7089,11 +6514,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7108,13 +6533,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7129,11 +6554,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7148,13 +6573,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7169,11 +6594,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7188,13 +6613,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7209,11 +6634,11 @@ export const plans = { }, deleteFilm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7228,13 +6653,13 @@ export const plans = { }, deleteFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7249,11 +6674,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7268,13 +6693,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7289,11 +6714,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7308,13 +6733,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7329,11 +6754,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7348,13 +6773,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7369,11 +6794,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7388,13 +6813,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7409,11 +6834,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7428,13 +6853,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7451,7 +6876,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -7468,16 +6894,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -7500,17 +6926,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -7521,35 +6947,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7557,7 +6982,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7573,9 +6998,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7586,42 +7009,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7629,7 +7052,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7645,9 +7068,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7663,49 +7084,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7713,7 +7135,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7729,9 +7151,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7747,49 +7167,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7797,7 +7218,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7813,9 +7234,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7831,49 +7250,50 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -7881,7 +7301,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7897,9 +7317,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7910,70 +7328,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7981,7 +7403,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7997,9 +7419,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8010,55 +7430,58 @@ export const plans = { }, UpdateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FilmPatch: { - "__inputPlan": function FilmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8066,7 +7489,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8082,9 +7505,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8095,55 +7516,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8151,7 +7575,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8167,9 +7591,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8185,62 +7607,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8248,7 +7674,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8264,9 +7690,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8282,62 +7706,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8345,7 +7773,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8361,9 +7789,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8379,62 +7805,66 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8442,7 +7872,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8458,9 +7888,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8471,83 +7899,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8560,7 +7995,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8576,9 +8011,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8589,16 +8022,16 @@ export const plans = { }, DeleteFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8606,7 +8039,8 @@ export const plans = { DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8619,7 +8053,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8635,9 +8069,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8648,16 +8080,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8665,7 +8097,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8678,7 +8111,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8694,9 +8127,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8712,16 +8143,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8729,7 +8160,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8742,7 +8174,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8758,9 +8190,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8776,16 +8206,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8793,7 +8223,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8806,7 +8237,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8822,9 +8253,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8840,16 +8269,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8857,7 +8286,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8870,7 +8300,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8886,9 +8316,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8899,16 +8327,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 b9008704b6..f5e73e5631 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,8 +141,7 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); const spec_films = { name: "films", @@ -184,7 +185,7 @@ const spec_films = { }; const filmsCodec = recordCodec(spec_films); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -221,10 +222,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -270,10 +270,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -319,10 +318,9 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -368,8 +366,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -419,7 +416,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -549,8 +546,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1121,6 +1117,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1140,6 +1139,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1159,6 +1161,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1178,6 +1183,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1197,6 +1205,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1216,6 +1227,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1224,56 +1238,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1294,7 +1282,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1303,105 +1291,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1453,217 +1355,71 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); +const argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3798,44 +3554,44 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, filmByCode(_$root, args) { return pgResource_filmsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3852,7 +3608,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3861,7 +3616,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3870,7 +3624,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3879,7 +3632,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3888,7 +3640,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3897,27 +3648,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3928,7 +3679,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3937,7 +3687,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3946,7 +3695,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3955,7 +3703,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3964,7 +3711,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3973,22 +3719,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4002,7 +3744,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4011,7 +3752,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4020,7 +3760,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4029,7 +3768,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4038,7 +3776,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4047,22 +3784,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4076,7 +3809,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4085,7 +3817,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4094,7 +3825,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4103,7 +3833,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4112,7 +3841,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4121,22 +3849,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4150,7 +3874,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4159,7 +3882,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4168,7 +3890,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4177,7 +3898,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4186,7 +3906,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4195,22 +3914,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4224,7 +3939,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4233,7 +3947,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4242,7 +3955,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4251,7 +3963,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4260,7 +3971,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4269,22 +3979,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4298,7 +4004,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4307,7 +4012,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4316,7 +4020,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4325,7 +4028,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4334,7 +4036,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4343,22 +4044,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4372,7 +4069,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4381,7 +4077,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4390,7 +4085,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4399,7 +4093,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4408,7 +4101,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4417,22 +4109,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4475,7 +4163,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4484,7 +4171,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4493,7 +4179,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4502,7 +4187,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4511,7 +4195,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4520,22 +4203,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4589,7 +4268,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4598,7 +4276,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4607,7 +4284,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4616,7 +4292,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4625,7 +4300,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4634,22 +4308,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4728,31 +4398,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4761,19 +4421,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4782,11 +4440,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4794,7 +4449,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4804,11 +4459,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4816,7 +4468,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4826,11 +4478,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4838,7 +4487,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4848,11 +4497,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4860,7 +4506,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4870,11 +4516,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4882,7 +4525,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4892,11 +4535,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4904,7 +4544,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4913,8 +4553,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4927,17 +4567,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -4950,17 +4588,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -4973,13 +4609,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -4992,31 +4626,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5025,19 +4649,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5046,11 +4668,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5058,7 +4677,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5068,11 +4687,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5080,7 +4696,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5090,11 +4706,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5102,7 +4715,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5112,11 +4725,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5124,7 +4734,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5134,11 +4744,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "ASC", ...(undefined != null ? { @@ -5146,7 +4753,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5156,11 +4763,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "DESC", ...(undefined != null ? { @@ -5168,7 +4772,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5177,8 +4781,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5191,17 +4795,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5214,17 +4816,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -5237,13 +4837,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Post: { @@ -5277,7 +4875,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -5292,27 +4890,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -5355,7 +4947,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5364,7 +4955,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5373,7 +4963,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5382,7 +4971,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5391,7 +4979,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5400,22 +4987,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5448,31 +5031,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5481,19 +5054,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5502,11 +5073,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5514,7 +5082,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5524,11 +5092,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5536,7 +5101,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5546,11 +5111,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5558,7 +5120,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5568,11 +5130,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5580,7 +5139,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5590,11 +5149,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5602,7 +5158,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5612,11 +5168,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5624,7 +5177,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5633,8 +5186,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5647,17 +5200,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5670,17 +5221,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5693,13 +5242,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5734,23 +5281,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5758,7 +5294,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5768,11 +5304,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5780,7 +5313,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5789,8 +5322,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5803,13 +5336,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -5838,31 +5369,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5871,19 +5392,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5892,11 +5411,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5904,7 +5420,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5914,11 +5430,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5926,7 +5439,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5936,11 +5449,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5948,7 +5458,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5958,11 +5468,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5970,7 +5477,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5979,8 +5486,8 @@ export const plans = { }, FilmCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5993,17 +5500,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -6016,13 +5521,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -6051,31 +5554,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6084,19 +5577,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6105,11 +5596,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6117,7 +5605,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6127,11 +5615,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6139,7 +5624,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6149,11 +5634,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6161,7 +5643,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6171,11 +5653,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6183,7 +5662,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6192,8 +5671,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6206,17 +5685,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6229,13 +5706,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -6264,31 +5739,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6297,19 +5762,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6318,11 +5781,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6330,7 +5790,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6340,11 +5800,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6352,7 +5809,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6362,11 +5819,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -6374,7 +5828,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6384,11 +5838,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -6396,7 +5847,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6406,11 +5857,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -6418,7 +5866,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6428,11 +5876,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -6440,7 +5885,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6450,11 +5895,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -6462,7 +5904,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6472,11 +5914,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -6484,7 +5923,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6494,11 +5933,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -6506,7 +5942,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6516,11 +5952,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -6528,7 +5961,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6538,11 +5971,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -6550,7 +5980,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6560,11 +5990,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6572,7 +5999,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6582,11 +6009,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6594,7 +6018,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6604,11 +6028,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6616,7 +6037,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6625,8 +6046,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6639,17 +6060,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6662,17 +6081,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6685,17 +6102,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6708,17 +6123,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6731,17 +6144,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6754,17 +6165,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6777,20 +6186,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6800,9 +6207,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6810,7 +6226,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6820,9 +6236,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6830,17 +6255,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6850,17 +6275,17 @@ export const plans = { }, createFilm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_filmsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_filmsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6870,17 +6295,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6890,17 +6315,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6910,17 +6335,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6930,17 +6355,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6950,17 +6375,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6970,11 +6395,11 @@ export const plans = { }, updateFilm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6989,13 +6414,13 @@ export const plans = { }, updateFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7010,11 +6435,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7029,13 +6454,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7050,11 +6475,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7069,13 +6494,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7090,11 +6515,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7109,13 +6534,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7130,11 +6555,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7149,13 +6574,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7170,11 +6595,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7189,13 +6614,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7210,11 +6635,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7229,13 +6654,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7250,11 +6675,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7269,13 +6694,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7290,11 +6715,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7309,13 +6734,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7330,11 +6755,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7349,13 +6774,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7370,11 +6795,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7389,13 +6814,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7412,7 +6837,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -7429,16 +6855,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -7461,17 +6887,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -7482,35 +6908,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFilmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7518,7 +6943,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7534,9 +6959,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7547,42 +6970,42 @@ export const plans = { }, CreateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, film: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FilmInput: { - "__inputPlan": function FilmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7590,7 +7013,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7606,9 +7029,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7619,42 +7040,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7662,7 +7083,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7678,9 +7099,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7696,49 +7115,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7746,7 +7166,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7762,9 +7182,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7780,49 +7198,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7830,7 +7249,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7846,9 +7265,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7864,49 +7281,50 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -7914,7 +7332,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7930,9 +7348,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7943,70 +7359,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8014,7 +7434,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8030,9 +7450,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8043,55 +7461,58 @@ export const plans = { }, UpdateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FilmPatch: { - "__inputPlan": function FilmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8099,7 +7520,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8115,9 +7536,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8128,55 +7547,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8184,7 +7606,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8200,9 +7622,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8218,62 +7638,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8281,7 +7705,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8297,9 +7721,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8315,62 +7737,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8378,7 +7804,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8394,9 +7820,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8412,62 +7836,66 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8475,7 +7903,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8491,9 +7919,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8504,83 +7930,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8593,7 +8026,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8609,9 +8042,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8622,16 +8053,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8639,7 +8070,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8652,7 +8084,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8668,9 +8100,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8686,16 +8116,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8703,7 +8133,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8716,7 +8147,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8732,9 +8163,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8750,16 +8179,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8767,7 +8196,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8780,7 +8210,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8796,9 +8226,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8814,16 +8242,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8831,7 +8259,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8844,7 +8273,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8860,9 +8289,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8873,16 +8300,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 13cc1138ac..57f3ad76ba 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,8 +141,7 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); const spec_films = { name: "films", @@ -184,7 +185,7 @@ const spec_films = { }; const filmsCodec = recordCodec(spec_films); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -221,10 +222,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -270,10 +270,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -319,10 +318,9 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -368,8 +366,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -419,7 +416,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -549,8 +546,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const studiosUniques = [{ @@ -1119,6 +1115,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1138,6 +1137,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1157,6 +1159,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1176,6 +1181,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1195,6 +1203,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1203,56 +1214,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1273,7 +1258,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1282,105 +1267,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1424,213 +1323,67 @@ const fetcher5 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); +const argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3542,39 +3295,39 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3591,7 +3344,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3600,7 +3352,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3609,7 +3360,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3618,7 +3368,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3627,7 +3376,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3636,23 +3384,23 @@ export const plans = { } }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, allRenamedTables: { @@ -3663,7 +3411,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3672,7 +3419,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3681,7 +3427,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3690,7 +3435,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3699,7 +3443,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3708,22 +3451,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3737,7 +3476,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3746,7 +3484,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3755,7 +3492,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3764,7 +3500,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3773,7 +3508,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3782,22 +3516,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3811,7 +3541,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3820,7 +3549,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3829,7 +3557,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3838,7 +3565,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3847,7 +3573,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3856,22 +3581,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3885,7 +3606,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3894,7 +3614,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3903,7 +3622,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3912,7 +3630,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3921,7 +3638,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3930,22 +3646,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3959,7 +3671,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3968,7 +3679,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3977,7 +3687,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3986,7 +3695,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3995,7 +3703,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4004,22 +3711,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4033,7 +3736,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4042,7 +3744,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4051,7 +3752,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4060,7 +3760,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4069,7 +3768,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4078,22 +3776,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4123,7 +3817,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4132,7 +3825,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4141,7 +3833,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4150,7 +3841,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4159,7 +3849,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4168,22 +3857,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4237,7 +3922,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4246,7 +3930,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4255,7 +3938,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4264,7 +3946,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4273,7 +3954,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4282,22 +3962,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4376,31 +4052,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4409,19 +4075,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4430,11 +4094,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4442,7 +4103,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4452,11 +4113,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4464,7 +4122,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4474,11 +4132,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4486,7 +4141,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4496,11 +4151,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4508,7 +4160,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4518,11 +4170,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4530,7 +4179,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4540,11 +4189,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4552,7 +4198,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4561,8 +4207,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4575,17 +4221,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -4598,17 +4242,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -4621,13 +4263,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -4640,31 +4280,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4673,19 +4303,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4694,11 +4322,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4706,7 +4331,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4716,11 +4341,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4728,7 +4350,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4738,11 +4360,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4750,7 +4369,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4760,11 +4379,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4772,7 +4388,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4782,11 +4398,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "ASC", ...(undefined != null ? { @@ -4794,7 +4407,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4804,11 +4417,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "DESC", ...(undefined != null ? { @@ -4816,7 +4426,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4825,8 +4435,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4839,17 +4449,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -4862,17 +4470,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -4885,13 +4491,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Post: { @@ -4925,7 +4529,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -4940,27 +4544,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -5003,7 +4601,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5012,7 +4609,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5021,7 +4617,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5030,7 +4625,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5039,7 +4633,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5048,22 +4641,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5096,31 +4685,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5129,19 +4708,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5150,11 +4727,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5162,7 +4736,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5172,11 +4746,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5184,7 +4755,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5194,11 +4765,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5206,7 +4774,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5216,11 +4784,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5228,7 +4793,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5238,11 +4803,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5250,7 +4812,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5260,11 +4822,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5272,7 +4831,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5281,8 +4840,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5295,17 +4854,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5318,17 +4875,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5341,13 +4896,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5382,23 +4935,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5406,7 +4948,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5416,11 +4958,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5428,7 +4967,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5437,8 +4976,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5451,13 +4990,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -5486,31 +5023,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5519,19 +5046,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5540,11 +5065,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5552,7 +5074,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5562,11 +5084,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5574,7 +5093,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5584,11 +5103,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -5596,7 +5112,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5606,11 +5122,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -5618,7 +5131,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5627,8 +5140,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5641,17 +5154,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -5664,13 +5175,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -5699,31 +5208,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5732,19 +5231,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5753,11 +5250,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5765,7 +5259,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5775,11 +5269,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5787,7 +5278,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5797,11 +5288,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -5809,7 +5297,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5819,11 +5307,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -5831,7 +5316,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5841,11 +5326,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -5853,7 +5335,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5863,11 +5345,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -5875,7 +5354,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5885,11 +5364,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -5897,7 +5373,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5907,11 +5383,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -5919,7 +5392,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5929,11 +5402,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -5941,7 +5411,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5951,11 +5421,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -5963,7 +5430,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5973,11 +5440,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -5985,7 +5449,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5995,11 +5459,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6007,7 +5468,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6017,11 +5478,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6029,7 +5487,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6039,11 +5497,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6051,7 +5506,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6060,8 +5515,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6074,17 +5529,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6097,17 +5550,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6120,17 +5571,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6143,17 +5592,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6166,17 +5613,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6189,17 +5634,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6212,20 +5655,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6235,9 +5676,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6245,7 +5695,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6255,9 +5705,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6265,17 +5724,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6285,17 +5744,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6305,17 +5764,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6325,17 +5784,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6345,17 +5804,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6365,17 +5824,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6385,11 +5844,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6404,13 +5863,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6425,11 +5884,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6444,13 +5903,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6465,11 +5924,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6484,13 +5943,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6505,11 +5964,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6524,13 +5983,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6545,11 +6004,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6564,13 +6023,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6585,11 +6044,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs6(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs6(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6604,13 +6063,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6625,11 +6084,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6644,13 +6103,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6665,11 +6124,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6684,13 +6143,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6705,11 +6164,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6724,13 +6183,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6745,11 +6204,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6764,13 +6223,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6787,7 +6246,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -6804,16 +6264,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -6836,17 +6296,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -6857,35 +6317,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -6893,7 +6352,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6909,9 +6368,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6922,42 +6379,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -6965,7 +6422,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6981,9 +6438,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6999,49 +6454,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7049,7 +6505,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7065,9 +6521,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7083,49 +6537,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7133,7 +6588,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7149,9 +6604,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7167,49 +6620,50 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -7217,7 +6671,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7233,9 +6687,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7246,70 +6698,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7317,7 +6773,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7333,9 +6789,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7346,55 +6800,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7402,7 +6859,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7418,9 +6875,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7436,62 +6891,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7499,7 +6958,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7515,9 +6974,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7533,62 +6990,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7596,7 +7057,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7612,9 +7073,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7630,62 +7089,66 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -7693,7 +7156,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7709,9 +7172,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7722,83 +7183,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7811,7 +7279,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7827,9 +7295,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7840,16 +7306,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -7857,7 +7323,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7870,7 +7337,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7886,9 +7353,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7904,16 +7369,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -7921,7 +7386,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7934,7 +7400,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7950,9 +7416,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7968,16 +7432,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -7985,7 +7449,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7998,7 +7463,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8014,9 +7479,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8032,16 +7495,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8049,7 +7512,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8062,7 +7526,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8078,9 +7542,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8091,16 +7553,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 c5727c8010..142c2a8a54 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,8 +141,7 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); const spec_films = { name: "films", @@ -184,7 +185,7 @@ const spec_films = { }; const filmsCodec = recordCodec(spec_films); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -221,10 +222,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -270,10 +270,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -319,10 +318,9 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -368,8 +366,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -419,7 +416,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -549,8 +546,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1121,6 +1117,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1140,6 +1139,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1159,6 +1161,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1178,6 +1183,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1197,6 +1205,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1216,6 +1227,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1224,56 +1238,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1294,7 +1282,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1303,105 +1291,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1453,217 +1355,71 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); +const argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3783,44 +3539,44 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, filmByCode(_$root, args) { return pgResource_filmsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3837,7 +3593,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3846,7 +3601,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3855,7 +3609,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3864,7 +3617,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3873,7 +3625,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3882,27 +3633,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3913,7 +3664,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3922,7 +3672,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3931,7 +3680,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3940,7 +3688,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3949,7 +3696,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3958,22 +3704,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3987,7 +3729,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3996,7 +3737,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4005,7 +3745,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4014,7 +3753,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4023,7 +3761,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4032,22 +3769,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4061,7 +3794,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4070,7 +3802,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4079,7 +3810,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4088,7 +3818,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4097,7 +3826,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4106,22 +3834,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4135,7 +3859,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4144,7 +3867,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4153,7 +3875,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4162,7 +3883,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4171,7 +3891,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4180,22 +3899,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4209,7 +3924,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4218,7 +3932,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4227,7 +3940,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4236,7 +3948,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4245,7 +3956,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4254,22 +3964,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4283,7 +3989,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4292,7 +3997,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4301,7 +4005,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4310,7 +4013,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4319,7 +4021,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4328,22 +4029,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4357,7 +4054,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4366,7 +4062,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4375,7 +4070,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4384,7 +4078,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4393,7 +4086,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4402,22 +4094,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4460,7 +4148,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4469,7 +4156,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4478,7 +4164,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4487,7 +4172,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4496,7 +4180,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4505,22 +4188,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4574,7 +4253,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4583,7 +4261,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4592,7 +4269,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4601,7 +4277,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4610,7 +4285,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4619,22 +4293,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4713,31 +4383,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4746,19 +4406,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4767,11 +4425,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4779,7 +4434,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4789,11 +4444,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4801,7 +4453,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4811,11 +4463,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4823,7 +4472,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4833,11 +4482,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4845,7 +4491,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4855,11 +4501,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4867,7 +4510,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4877,11 +4520,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4889,7 +4529,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4898,8 +4538,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4912,17 +4552,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -4935,17 +4573,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -4958,13 +4594,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -4977,31 +4611,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5010,19 +4634,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5031,11 +4653,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5043,7 +4662,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5053,11 +4672,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5065,7 +4681,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5075,11 +4691,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5087,7 +4700,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5097,11 +4710,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5109,7 +4719,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5119,11 +4729,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "ASC", ...(undefined != null ? { @@ -5131,7 +4738,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5141,11 +4748,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "studio_id", direction: "DESC", ...(undefined != null ? { @@ -5153,7 +4757,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5162,8 +4766,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5176,17 +4780,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5199,17 +4801,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -5222,13 +4822,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Post: { @@ -5262,7 +4860,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -5277,27 +4875,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -5340,7 +4932,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5349,7 +4940,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5358,7 +4948,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5367,7 +4956,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5376,7 +4964,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5385,22 +4972,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5433,31 +5016,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5466,19 +5039,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5487,11 +5058,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5499,7 +5067,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5509,11 +5077,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5521,7 +5086,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5531,11 +5096,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5543,7 +5105,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5553,11 +5115,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5565,7 +5124,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5575,11 +5134,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5587,7 +5143,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5597,11 +5153,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5609,7 +5162,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5618,8 +5171,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5632,17 +5185,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5655,17 +5206,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5678,13 +5227,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5719,23 +5266,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5743,7 +5279,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5753,11 +5289,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5765,7 +5298,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5774,8 +5307,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5788,13 +5321,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -5823,31 +5354,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5856,19 +5377,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5877,11 +5396,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5889,7 +5405,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5899,11 +5415,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5911,7 +5424,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5921,11 +5434,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5933,7 +5443,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5943,11 +5453,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5955,7 +5462,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5964,8 +5471,8 @@ export const plans = { }, FilmCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5978,17 +5485,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -6001,13 +5506,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -6036,31 +5539,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6069,19 +5562,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6090,11 +5581,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6102,7 +5590,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6112,11 +5600,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6124,7 +5609,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6134,11 +5619,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6146,7 +5628,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6156,11 +5638,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6168,7 +5647,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6177,8 +5656,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6191,17 +5670,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6214,13 +5691,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -6249,31 +5724,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6282,19 +5747,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6303,11 +5766,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6315,7 +5775,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6325,11 +5785,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6337,7 +5794,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6347,11 +5804,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -6359,7 +5813,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6369,11 +5823,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -6381,7 +5832,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6391,11 +5842,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -6403,7 +5851,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6413,11 +5861,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -6425,7 +5870,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6435,11 +5880,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -6447,7 +5889,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6457,11 +5899,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -6469,7 +5908,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6479,11 +5918,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -6491,7 +5927,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6501,11 +5937,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -6513,7 +5946,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6523,11 +5956,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -6535,7 +5965,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6545,11 +5975,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6557,7 +5984,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6567,11 +5994,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6579,7 +6003,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6589,11 +6013,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6601,7 +6022,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6610,8 +6031,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6624,17 +6045,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6647,17 +6066,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6670,17 +6087,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6693,17 +6108,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6716,17 +6129,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6739,17 +6150,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6762,20 +6171,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6785,9 +6192,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6795,7 +6211,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6805,9 +6221,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6815,17 +6240,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6835,17 +6260,17 @@ export const plans = { }, createFilm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_filmsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_filmsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6855,17 +6280,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6875,17 +6300,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6895,17 +6320,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6915,17 +6340,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6935,17 +6360,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6955,11 +6380,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6974,13 +6399,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6995,11 +6420,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7014,13 +6439,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7035,11 +6460,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7054,13 +6479,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7075,11 +6500,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7094,13 +6519,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7115,11 +6540,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7134,13 +6559,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7155,11 +6580,11 @@ export const plans = { }, deleteFilm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, specFromArgs6(args)) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, specFromArgs6(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7174,13 +6599,13 @@ export const plans = { }, deleteFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7195,11 +6620,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7214,13 +6639,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7235,11 +6660,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7254,13 +6679,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7275,11 +6700,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7294,13 +6719,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7315,11 +6740,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7334,13 +6759,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7355,11 +6780,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7374,13 +6799,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7397,7 +6822,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -7414,16 +6840,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -7446,17 +6872,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -7467,35 +6893,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFilmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7503,7 +6928,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7519,9 +6944,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7532,42 +6955,42 @@ export const plans = { }, CreateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, film: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FilmInput: { - "__inputPlan": function FilmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7575,7 +6998,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7591,9 +7014,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7604,42 +7025,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7647,7 +7068,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7663,9 +7084,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7681,49 +7100,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7731,7 +7151,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7747,9 +7167,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7765,49 +7183,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7815,7 +7234,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7831,9 +7250,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7849,49 +7266,50 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -7899,7 +7317,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7915,9 +7333,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7928,70 +7344,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7999,7 +7419,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8015,9 +7435,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8028,55 +7446,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8084,7 +7505,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8100,9 +7521,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8118,62 +7537,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8181,7 +7604,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8197,9 +7620,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8215,62 +7636,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8278,7 +7703,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8294,9 +7719,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8312,62 +7735,66 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8375,7 +7802,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8391,9 +7818,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8404,83 +7829,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8493,7 +7925,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8509,9 +7941,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8522,16 +7952,16 @@ export const plans = { }, DeleteFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8539,7 +7969,8 @@ export const plans = { DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8552,7 +7983,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8568,9 +7999,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8581,16 +8010,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8598,7 +8027,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8611,7 +8041,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8627,9 +8057,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8645,16 +8073,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8662,7 +8090,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8675,7 +8104,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8691,9 +8120,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8709,16 +8136,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8726,7 +8153,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8739,7 +8167,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8755,9 +8183,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8773,16 +8199,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8790,7 +8216,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8803,7 +8230,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8819,9 +8246,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8832,16 +8257,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 08be25bd4b..ab023ad4fa 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,10 +141,9 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); -const spec_films = { +const filmsCodec = recordCodec({ name: "films", identifier: filmsIdentifier, attributes: { @@ -179,10 +180,9 @@ const spec_films = { } }, executor: executor -}; -const filmsCodec = recordCodec(spec_films); +}); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -219,10 +219,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -268,10 +267,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -317,8 +315,7 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); const spec_tvShows = { name: "tvShows", @@ -419,7 +416,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -549,8 +546,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1120,6 +1116,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1139,6 +1138,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1158,6 +1160,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1177,6 +1182,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1196,6 +1204,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1215,6 +1226,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1223,56 +1237,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1293,7 +1281,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1302,105 +1290,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1452,221 +1354,75 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); +const argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3828,44 +3584,44 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, filmByCode(_$root, args) { return pgResource_filmsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, studioById(_$root, args) { return pgResource_studiosPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, tvEpisodeByCode(_$root, args) { return pgResource_tv_episodesPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, tvShowByCode(_$root, args) { return pgResource_tv_showsPgResource.get({ - code: args.get("code") + code: args.getRaw("code") }); }, findPersonById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3882,7 +3638,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3891,7 +3646,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3900,7 +3654,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3909,7 +3662,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3918,7 +3670,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3927,27 +3678,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3958,7 +3709,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3967,7 +3717,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3976,7 +3725,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3985,7 +3733,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3994,7 +3741,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4003,22 +3749,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4032,7 +3774,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4041,7 +3782,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4050,7 +3790,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4059,7 +3798,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4068,7 +3806,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4077,22 +3814,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4106,7 +3839,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4115,7 +3847,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4124,7 +3855,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4133,7 +3863,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4142,7 +3871,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4151,22 +3879,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4180,7 +3904,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4189,7 +3912,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4198,7 +3920,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4207,7 +3928,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4216,7 +3936,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4225,22 +3944,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4254,7 +3969,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4263,7 +3977,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4272,7 +3985,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4281,7 +3993,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4290,7 +4001,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4299,22 +4009,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4328,7 +4034,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4337,7 +4042,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4346,7 +4050,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4355,7 +4058,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4364,7 +4066,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4373,10 +4074,9 @@ export const plans = { condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4390,7 +4090,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4399,7 +4098,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4408,7 +4106,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4417,7 +4114,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4426,7 +4122,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4435,22 +4130,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4493,7 +4184,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4502,7 +4192,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4511,7 +4200,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4520,7 +4208,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4529,7 +4216,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4538,10 +4224,9 @@ export const plans = { condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4595,7 +4280,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4604,7 +4288,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4613,7 +4296,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4622,7 +4304,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4631,7 +4312,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4640,22 +4320,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4734,31 +4410,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4767,19 +4433,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4788,11 +4452,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -4800,7 +4461,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4810,11 +4471,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -4822,7 +4480,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4832,11 +4490,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4844,7 +4499,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4854,11 +4509,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4866,7 +4518,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4876,11 +4528,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "ASC", ...(undefined != null ? { @@ -4888,7 +4537,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4898,11 +4547,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "show_id", direction: "DESC", ...(undefined != null ? { @@ -4910,7 +4556,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4919,8 +4565,8 @@ export const plans = { }, TvEpisodeCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -4933,17 +4579,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -4956,17 +4600,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, showId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "show_id", @@ -4979,13 +4621,11 @@ export const plans = { type: "attribute", attribute: "show_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.show_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -4999,8 +4639,8 @@ export const plans = { }, TvShowCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5013,17 +4653,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5036,17 +4674,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "studio_id", @@ -5059,13 +4695,11 @@ export const plans = { type: "attribute", attribute: "studio_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.studio_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Post: { @@ -5099,7 +4733,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -5114,27 +4748,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -5177,7 +4805,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5186,7 +4813,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5195,7 +4821,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5204,7 +4829,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5213,7 +4837,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5222,22 +4845,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5270,31 +4889,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5303,19 +4912,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5324,11 +4931,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5336,7 +4940,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5346,11 +4950,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5358,7 +4959,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5368,11 +4969,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -5380,7 +4978,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5390,11 +4988,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -5402,7 +4997,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5412,11 +5007,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -5424,7 +5016,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5434,11 +5026,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -5446,7 +5035,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5455,8 +5044,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5469,17 +5058,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -5492,17 +5079,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -5515,13 +5100,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5556,23 +5139,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5580,7 +5152,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5590,11 +5162,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5602,7 +5171,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5611,8 +5180,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5625,13 +5194,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -5660,31 +5227,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5693,19 +5250,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5714,11 +5269,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "ASC", ...(undefined != null ? { @@ -5726,7 +5278,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5736,11 +5288,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "code", direction: "DESC", ...(undefined != null ? { @@ -5748,7 +5297,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5758,11 +5307,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5770,7 +5316,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5780,11 +5326,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5792,7 +5335,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5801,8 +5344,8 @@ export const plans = { }, FilmCondition: { code: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "code", @@ -5815,17 +5358,15 @@ export const plans = { type: "attribute", attribute: "code", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.code.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5838,13 +5379,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -5873,31 +5412,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5906,19 +5435,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5927,11 +5454,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5939,7 +5463,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5949,11 +5473,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5961,7 +5482,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5971,11 +5492,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -5983,7 +5501,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5993,11 +5511,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6005,7 +5520,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6014,8 +5529,8 @@ export const plans = { }, StudioCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6028,17 +5543,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6051,13 +5564,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -6086,31 +5597,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6119,19 +5620,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6140,11 +5639,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6152,7 +5648,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6162,11 +5658,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6174,7 +5667,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6184,11 +5677,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -6196,7 +5686,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6206,11 +5696,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -6218,7 +5705,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6228,11 +5715,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -6240,7 +5724,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6250,11 +5734,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -6262,7 +5743,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6272,11 +5753,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -6284,7 +5762,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6294,11 +5772,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -6306,7 +5781,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6316,11 +5791,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -6328,7 +5800,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6338,11 +5810,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -6350,7 +5819,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6360,11 +5829,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -6372,7 +5838,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6382,11 +5848,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -6394,7 +5857,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6404,11 +5867,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -6416,7 +5876,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6426,11 +5886,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -6438,7 +5895,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6447,8 +5904,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6461,17 +5918,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -6484,17 +5939,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -6507,17 +5960,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -6530,17 +5981,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -6553,17 +6002,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -6576,17 +6023,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -6599,20 +6044,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6622,9 +6065,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6632,7 +6084,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6642,9 +6094,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6652,17 +6113,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6672,17 +6133,17 @@ export const plans = { }, createFilm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_filmsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_filmsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6692,17 +6153,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6712,17 +6173,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6732,17 +6193,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6752,17 +6213,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6772,17 +6233,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6792,11 +6253,11 @@ export const plans = { }, updateFilm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6811,13 +6272,13 @@ export const plans = { }, updateFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6832,11 +6293,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6851,13 +6312,13 @@ export const plans = { }, updateStudioById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6872,11 +6333,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6891,13 +6352,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6912,11 +6373,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6931,13 +6392,13 @@ export const plans = { }, updateTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6952,11 +6413,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6971,13 +6432,13 @@ export const plans = { }, updateTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6992,11 +6453,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7011,13 +6472,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7032,11 +6493,11 @@ export const plans = { }, deleteFilm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7051,13 +6512,13 @@ export const plans = { }, deleteFilmByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7072,11 +6533,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7091,13 +6552,13 @@ export const plans = { }, deleteStudioById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7112,11 +6573,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7131,13 +6592,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7152,11 +6613,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7171,13 +6632,13 @@ export const plans = { }, deleteTvEpisodeByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7192,11 +6653,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7211,13 +6672,13 @@ export const plans = { }, deleteTvShowByCode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, { - code: args.get(['input', "code"]) - }) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, { + code: args.getRaw(['input', "code"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7232,11 +6693,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7251,13 +6712,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7274,7 +6735,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -7291,16 +6753,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -7323,17 +6785,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -7344,35 +6806,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFilmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7380,7 +6841,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7396,9 +6857,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7409,42 +6868,42 @@ export const plans = { }, CreateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, film: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FilmInput: { - "__inputPlan": function FilmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7452,7 +6911,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7468,9 +6927,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7481,42 +6938,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7524,7 +6981,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7540,9 +6997,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7558,49 +7013,50 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7608,7 +7064,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7624,9 +7080,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7642,49 +7096,50 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7700,49 +7155,50 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -7750,7 +7206,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7766,9 +7222,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7779,70 +7233,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7850,7 +7308,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7866,9 +7324,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7879,55 +7335,58 @@ export const plans = { }, UpdateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FilmPatch: { - "__inputPlan": function FilmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7935,7 +7394,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7951,9 +7410,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7964,55 +7421,58 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8020,7 +7480,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8036,9 +7496,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8054,62 +7512,66 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8117,7 +7579,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8133,9 +7595,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8151,62 +7611,66 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, showId: { - applyPlan($insert, val) { - $insert.set("show_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("show_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8222,62 +7686,66 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioId: { - applyPlan($insert, val) { - $insert.set("studio_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("studio_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8285,7 +7753,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8301,9 +7769,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8314,83 +7780,90 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -8403,7 +7876,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8419,9 +7892,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8432,16 +7903,16 @@ export const plans = { }, DeleteFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteFilmByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8449,7 +7920,8 @@ export const plans = { DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -8462,7 +7934,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8478,9 +7950,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8491,16 +7961,16 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStudioByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8508,7 +7978,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8521,7 +7992,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8537,9 +8008,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8555,16 +8024,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8572,7 +8041,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -8585,7 +8055,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8601,9 +8071,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8619,16 +8087,16 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvEpisodeByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8636,7 +8104,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -8657,16 +8126,16 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTvShowByCodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, code: undefined @@ -8674,7 +8143,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -8687,7 +8157,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8703,9 +8173,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8716,16 +8184,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/partitions.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/partitions.1.export.mjs index e2b5084b65..13089df9c3 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/partitions.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/partitions.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -77,7 +79,7 @@ const executor = new PgExecutor({ } }); const usersIdentifier = sql.identifier("partitions", "users"); -const spec_users = { +const usersCodec = recordCodec({ name: "users", identifier: usersIdentifier, attributes: { @@ -114,10 +116,9 @@ const spec_users = { } }, executor: executor -}; -const usersCodec = recordCodec(spec_users); +}); const measurementsIdentifier = sql.identifier("partitions", "measurements"); -const spec_measurements = { +const measurementsCodec = recordCodec({ name: "measurements", identifier: measurementsIdentifier, attributes: { @@ -172,8 +173,7 @@ const spec_measurements = { } }, executor: executor -}; -const measurementsCodec = recordCodec(spec_measurements); +}); const usersUniques = [{ isPrimary: true, attributes: ["id"], @@ -316,6 +316,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_usersPgResource.get(spec); }, @@ -336,6 +339,9 @@ const nodeIdHandlerByTypeName = { key: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_measurementsPgResource.get(spec); }, @@ -348,6 +354,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -378,43 +385,26 @@ const fetcher2 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Measurement); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function DatetimeSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.User, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Measurement, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.User, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Measurement, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -1129,25 +1119,25 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, userById(_$root, args) { return pgResource_usersPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, measurementByTimestampAndKey(_$root, args) { return pgResource_measurementsPgResource.get({ - timestamp: args.get("timestamp"), - key: args.get("key") + timestamp: args.getRaw("timestamp"), + key: args.getRaw("key") }); }, user(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, measurement(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, allUsers: { @@ -1158,7 +1148,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1167,7 +1156,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1176,7 +1164,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1185,7 +1172,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1194,7 +1180,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1203,22 +1188,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UsersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -1232,7 +1213,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1241,7 +1221,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1250,7 +1229,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1259,7 +1237,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1268,7 +1245,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1277,22 +1253,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MeasurementsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -1322,7 +1294,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1331,7 +1302,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1340,7 +1310,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1349,7 +1318,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1358,7 +1326,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1367,22 +1334,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MeasurementsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -1474,31 +1437,21 @@ export const plans = { } }, MeasurementsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { measurementsUniques[0].attributes.forEach(attributeName => { - const attribute = measurementsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1507,19 +1460,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { measurementsUniques[0].attributes.forEach(attributeName => { - const attribute = measurementsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1528,11 +1479,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "ASC", ...(undefined != null ? { @@ -1540,7 +1488,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1550,11 +1498,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "DESC", ...(undefined != null ? { @@ -1562,7 +1507,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1572,11 +1517,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "key", direction: "ASC", ...(undefined != null ? { @@ -1584,7 +1526,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1594,11 +1536,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "key", direction: "DESC", ...(undefined != null ? { @@ -1606,7 +1545,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1616,11 +1555,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "value", direction: "ASC", ...(undefined != null ? { @@ -1628,7 +1564,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1638,11 +1574,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "value", direction: "DESC", ...(undefined != null ? { @@ -1650,7 +1583,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1660,11 +1593,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_id", direction: "ASC", ...(undefined != null ? { @@ -1672,7 +1602,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1682,11 +1612,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_id", direction: "DESC", ...(undefined != null ? { @@ -1694,7 +1621,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1703,8 +1630,8 @@ export const plans = { }, MeasurementCondition: { timestamp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamp", @@ -1717,17 +1644,15 @@ export const plans = { type: "attribute", attribute: "timestamp", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_measurements.attributes.timestamp.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, key: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "key", @@ -1740,17 +1665,15 @@ export const plans = { type: "attribute", attribute: "key", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_measurements.attributes.key.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, value: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "value", @@ -1763,17 +1686,15 @@ export const plans = { type: "attribute", attribute: "value", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_measurements.attributes.value.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_id", @@ -1786,13 +1707,11 @@ export const plans = { type: "attribute", attribute: "user_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_measurements.attributes.user_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UsersConnection: { @@ -1821,31 +1740,21 @@ export const plans = { } }, UsersOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { usersUniques[0].attributes.forEach(attributeName => { - const attribute = usersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1854,19 +1763,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { usersUniques[0].attributes.forEach(attributeName => { - const attribute = usersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1875,11 +1782,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -1887,7 +1791,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1897,11 +1801,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -1909,7 +1810,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1919,11 +1820,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -1931,7 +1829,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1941,11 +1839,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -1953,7 +1848,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1962,8 +1857,8 @@ export const plans = { }, UserCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -1976,17 +1871,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_users.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -1999,30 +1892,28 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_users.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createUser: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_usersPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_usersPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -2032,17 +1923,17 @@ export const plans = { }, createMeasurement: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_measurementsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_measurementsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -2052,11 +1943,11 @@ export const plans = { }, updateUser: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_usersPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_usersPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2071,13 +1962,13 @@ export const plans = { }, updateUserById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_usersPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_usersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2092,11 +1983,11 @@ export const plans = { }, updateMeasurement: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_measurementsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_measurementsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2111,14 +2002,14 @@ export const plans = { }, updateMeasurementByTimestampAndKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_measurementsPgResource, { - timestamp: args.get(['input', "timestamp"]), - key: args.get(['input', "key"]) - }) + const $update = pgUpdateSingle(pgResource_measurementsPgResource, { + timestamp: args.getRaw(['input', "timestamp"]), + key: args.getRaw(['input', "key"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2133,11 +2024,11 @@ export const plans = { }, deleteUser: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_usersPgResource, specFromArgs3(args)) + const $delete = pgDeleteSingle(pgResource_usersPgResource, specFromArgs3(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2152,13 +2043,13 @@ export const plans = { }, deleteUserById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_usersPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_usersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2173,11 +2064,11 @@ export const plans = { }, deleteMeasurement: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_measurementsPgResource, specFromArgs4(args)) + const $delete = pgDeleteSingle(pgResource_measurementsPgResource, specFromArgs4(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2192,14 +2083,14 @@ export const plans = { }, deleteMeasurementByTimestampAndKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_measurementsPgResource, { - timestamp: args.get(['input', "timestamp"]), - key: args.get(['input', "key"]) - }) + const $delete = pgDeleteSingle(pgResource_measurementsPgResource, { + timestamp: args.getRaw(['input', "timestamp"]), + key: args.getRaw(['input', "key"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2216,7 +2107,8 @@ export const plans = { CreateUserPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, user($object) { return $object.get("result"); @@ -2224,7 +2116,7 @@ export const plans = { query() { return rootValue(); }, - userEdge($mutation, args, info) { + userEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2240,9 +2132,7 @@ export const plans = { return pgResource_usersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("UsersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2253,42 +2143,42 @@ export const plans = { }, CreateUserInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, user: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UserInput: { - "__inputPlan": function UserInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreateMeasurementPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, measurement($object) { return $object.get("result"); @@ -2296,7 +2186,7 @@ export const plans = { query() { return rootValue(); }, - measurementEdge($mutation, args, info) { + measurementEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2312,9 +2202,7 @@ export const plans = { return pgResource_measurementsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MeasurementsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2330,56 +2218,58 @@ export const plans = { }, CreateMeasurementInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, measurement: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MeasurementInput: { - "__inputPlan": function MeasurementInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, key: { - applyPlan($insert, val) { - $insert.set("key", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("key", bakedInputRuntime(schema, field.type, val)); + } }, value: { - applyPlan($insert, val) { - $insert.set("value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("value", bakedInputRuntime(schema, field.type, val)); + } }, userId: { - applyPlan($insert, val) { - $insert.set("user_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateUserPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, user($object) { return $object.get("result"); @@ -2387,7 +2277,7 @@ export const plans = { query() { return rootValue(); }, - userEdge($mutation, args, info) { + userEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2403,9 +2293,7 @@ export const plans = { return pgResource_usersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("UsersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2416,55 +2304,58 @@ export const plans = { }, UpdateUserInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, userPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UserPatch: { - "__inputPlan": function UserPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateUserByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, userPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateMeasurementPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, measurement($object) { return $object.get("result"); @@ -2472,7 +2363,7 @@ export const plans = { query() { return rootValue(); }, - measurementEdge($mutation, args, info) { + measurementEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2488,9 +2379,7 @@ export const plans = { return pgResource_measurementsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MeasurementsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2506,70 +2395,75 @@ export const plans = { }, UpdateMeasurementInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, measurementPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MeasurementPatch: { - "__inputPlan": function MeasurementPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, key: { - applyPlan($insert, val) { - $insert.set("key", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("key", bakedInputRuntime(schema, field.type, val)); + } }, value: { - applyPlan($insert, val) { - $insert.set("value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("value", bakedInputRuntime(schema, field.type, val)); + } }, userId: { - applyPlan($insert, val) { - $insert.set("user_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMeasurementByTimestampAndKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, timestamp: undefined, key: undefined, measurementPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteUserPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, user($object) { return $object.get("result"); @@ -2582,7 +2476,7 @@ export const plans = { query() { return rootValue(); }, - userEdge($mutation, args, info) { + userEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2598,9 +2492,7 @@ export const plans = { return pgResource_usersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("UsersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2611,16 +2503,16 @@ export const plans = { }, DeleteUserInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteUserByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -2628,7 +2520,8 @@ export const plans = { DeleteMeasurementPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, measurement($object) { return $object.get("result"); @@ -2641,7 +2534,7 @@ export const plans = { query() { return rootValue(); }, - measurementEdge($mutation, args, info) { + measurementEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2657,9 +2550,7 @@ export const plans = { return pgResource_measurementsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MeasurementsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2675,16 +2566,16 @@ export const plans = { }, DeleteMeasurementInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMeasurementByTimestampAndKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, timestamp: undefined, diff --git a/postgraphile/postgraphile/__tests__/schema/v4/pg11.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/pg11.1.export.mjs index 7fc451ff96..91a26580e0 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/pg11.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/pg11.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -77,7 +79,7 @@ const executor = new PgExecutor({ } }); const alwaysAsIdentityIdentifier = sql.identifier("pg11", "always_as_identity"); -const spec_alwaysAsIdentity = { +const alwaysAsIdentityCodec = recordCodec({ name: "alwaysAsIdentity", identifier: alwaysAsIdentityIdentifier, attributes: { @@ -116,10 +118,9 @@ const spec_alwaysAsIdentity = { } }, executor: executor -}; -const alwaysAsIdentityCodec = recordCodec(spec_alwaysAsIdentity); +}); const byDefaultAsIdentityIdentifier = sql.identifier("pg11", "by_default_as_identity"); -const spec_byDefaultAsIdentity = { +const byDefaultAsIdentityCodec = recordCodec({ name: "byDefaultAsIdentity", identifier: byDefaultAsIdentityIdentifier, attributes: { @@ -156,10 +157,9 @@ const spec_byDefaultAsIdentity = { } }, executor: executor -}; -const byDefaultAsIdentityCodec = recordCodec(spec_byDefaultAsIdentity); +}); const networkIdentifier = sql.identifier("pg11", "network"); -const spec_network = { +const networkCodec = recordCodec({ name: "network", identifier: networkIdentifier, attributes: { @@ -223,8 +223,7 @@ const spec_network = { } }, executor: executor -}; -const networkCodec = recordCodec(spec_network); +}); const bigintDomainCodec = domainOfCodec(TYPES.bigint, "bigintDomain", sql.identifier("c", "bigint_domain"), { description: undefined, extensions: { @@ -423,7 +422,7 @@ const domainConstrainedCompoundTypeCodec = domainOfCodec(compoundTypeCodec, "dom notNull: false }); const typesIdentifier = sql.identifier("pg11", "types"); -const spec_types = { +const typesCodec = recordCodec({ name: "types", identifier: typesIdentifier, attributes: { @@ -487,8 +486,7 @@ const spec_types = { } }, executor: executor -}; -const typesCodec = recordCodec(spec_types); +}); const always_as_identityUniques = [{ isPrimary: true, attributes: ["id"], @@ -676,6 +674,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_always_as_identityPgResource.get(spec); }, @@ -695,6 +696,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_by_default_as_identityPgResource.get(spec); }, @@ -714,6 +718,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_networkPgResource.get(spec); }, @@ -733,6 +740,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_typesPgResource.get(spec); }, @@ -745,6 +755,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -791,26 +802,9 @@ const fetcher4 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Type); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function InternetAddressSerialize(value) { return "" + value; } @@ -822,35 +816,35 @@ const coerce = string => { return string; }; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.AlwaysAsIdentity, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ByDefaultAsIdentity, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Network, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.AlwaysAsIdentity, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ByDefaultAsIdentity, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Network, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -2243,42 +2237,42 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, alwaysAsIdentityById(_$root, args) { return pgResource_always_as_identityPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, byDefaultAsIdentityById(_$root, args) { return pgResource_by_default_as_identityPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, networkById(_$root, args) { return pgResource_networkPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, typeById(_$root, args) { return pgResource_typesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, alwaysAsIdentity(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, byDefaultAsIdentity(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, network(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, type(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, allAlwaysAsIdentities: { @@ -2289,7 +2283,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -2298,7 +2291,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -2307,7 +2299,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -2316,7 +2307,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -2325,7 +2315,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -2334,22 +2323,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AlwaysAsIdentitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -2363,7 +2348,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -2372,7 +2356,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -2381,7 +2364,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -2390,7 +2372,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -2399,7 +2380,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -2408,22 +2388,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ByDefaultAsIdentitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -2437,7 +2413,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -2446,7 +2421,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -2455,7 +2429,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -2464,7 +2437,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -2473,7 +2445,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -2482,22 +2453,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -2511,7 +2478,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -2520,7 +2486,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -2529,7 +2494,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -2538,7 +2502,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -2547,7 +2510,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -2556,22 +2518,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -2833,31 +2791,21 @@ export const plans = { } }, AlwaysAsIdentitiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { always_as_identityUniques[0].attributes.forEach(attributeName => { - const attribute = alwaysAsIdentityCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2866,19 +2814,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { always_as_identityUniques[0].attributes.forEach(attributeName => { - const attribute = alwaysAsIdentityCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2887,11 +2833,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -2899,7 +2842,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2909,11 +2852,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -2921,7 +2861,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2931,11 +2871,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "t", direction: "ASC", ...(undefined != null ? { @@ -2943,7 +2880,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2953,11 +2890,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "t", direction: "DESC", ...(undefined != null ? { @@ -2965,7 +2899,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2974,8 +2908,8 @@ export const plans = { }, AlwaysAsIdentityCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -2988,17 +2922,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_alwaysAsIdentity.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, t: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "t", @@ -3011,13 +2943,11 @@ export const plans = { type: "attribute", attribute: "t", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_alwaysAsIdentity.attributes.t.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ByDefaultAsIdentitiesConnection: { @@ -3046,31 +2976,21 @@ export const plans = { } }, ByDefaultAsIdentitiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { by_default_as_identityUniques[0].attributes.forEach(attributeName => { - const attribute = byDefaultAsIdentityCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3079,19 +2999,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { by_default_as_identityUniques[0].attributes.forEach(attributeName => { - const attribute = byDefaultAsIdentityCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3100,11 +3018,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -3112,7 +3027,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3122,11 +3037,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -3134,7 +3046,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3144,11 +3056,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "t", direction: "ASC", ...(undefined != null ? { @@ -3156,7 +3065,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3166,11 +3075,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "t", direction: "DESC", ...(undefined != null ? { @@ -3178,7 +3084,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3187,8 +3093,8 @@ export const plans = { }, ByDefaultAsIdentityCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -3201,17 +3107,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_byDefaultAsIdentity.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, t: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "t", @@ -3224,13 +3128,11 @@ export const plans = { type: "attribute", attribute: "t", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_byDefaultAsIdentity.attributes.t.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NetworksConnection: { @@ -3259,31 +3161,21 @@ export const plans = { } }, NetworksOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { networkUniques[0].attributes.forEach(attributeName => { - const attribute = networkCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3292,19 +3184,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { networkUniques[0].attributes.forEach(attributeName => { - const attribute = networkCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3313,11 +3203,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -3325,7 +3212,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3335,11 +3222,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -3347,7 +3231,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3357,11 +3241,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -3369,7 +3250,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3379,11 +3260,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -3391,7 +3269,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3401,11 +3279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -3413,7 +3288,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3423,11 +3298,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -3435,7 +3307,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3445,11 +3317,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -3457,7 +3326,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3467,11 +3336,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -3479,7 +3345,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3489,11 +3355,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr8", direction: "ASC", ...(undefined != null ? { @@ -3501,7 +3364,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3511,11 +3374,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr8", direction: "DESC", ...(undefined != null ? { @@ -3523,7 +3383,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3532,8 +3392,8 @@ export const plans = { }, NetworkCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -3546,17 +3406,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -3569,17 +3427,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -3592,17 +3448,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -3615,17 +3469,15 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr8: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr8", @@ -3638,13 +3490,11 @@ export const plans = { type: "attribute", attribute: "macaddr8", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.macaddr8.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr8)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TypesConnection: { @@ -3673,31 +3523,21 @@ export const plans = { } }, TypesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3706,19 +3546,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3727,11 +3565,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -3739,7 +3574,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3749,11 +3584,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -3761,7 +3593,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3771,11 +3603,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regrole", direction: "ASC", ...(undefined != null ? { @@ -3783,7 +3612,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3793,11 +3622,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regrole", direction: "DESC", ...(undefined != null ? { @@ -3805,7 +3631,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3815,11 +3641,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regnamespace", direction: "ASC", ...(undefined != null ? { @@ -3827,7 +3650,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3837,11 +3660,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regnamespace", direction: "DESC", ...(undefined != null ? { @@ -3849,7 +3669,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3859,11 +3679,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain_constrained_compound_type", direction: "ASC", ...(undefined != null ? { @@ -3871,7 +3688,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3881,11 +3698,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain_constrained_compound_type", direction: "DESC", ...(undefined != null ? { @@ -3893,7 +3707,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3902,8 +3716,8 @@ export const plans = { }, TypeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -3916,17 +3730,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regrole: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regrole", @@ -3939,17 +3751,15 @@ export const plans = { type: "attribute", attribute: "regrole", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regrole.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regrole)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regnamespace: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regnamespace", @@ -3962,17 +3772,15 @@ export const plans = { type: "attribute", attribute: "regnamespace", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regnamespace.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regnamespace)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, bigintDomainArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "bigint_domain_array_domain", @@ -3985,17 +3793,15 @@ export const plans = { type: "attribute", attribute: "bigint_domain_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.bigint_domain_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, bigintDomainArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domainConstrainedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain_constrained_compound_type", @@ -4008,74 +3814,78 @@ export const plans = { type: "attribute", attribute: "domain_constrained_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain_constrained_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, domainConstrainedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, DomainConstrainedCompoundTypeInput: { - "__inputPlan": function DomainConstrainedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, IntervalInput: { @@ -4090,17 +3900,17 @@ export const plans = { __assertStep: __ValueStep, createAlwaysAsIdentity: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_always_as_identityPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_always_as_identityPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -4110,17 +3920,17 @@ export const plans = { }, createByDefaultAsIdentity: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_by_default_as_identityPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_by_default_as_identityPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -4130,17 +3940,17 @@ export const plans = { }, createNetwork: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_networkPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_networkPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -4150,17 +3960,17 @@ export const plans = { }, createType: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -4170,11 +3980,11 @@ export const plans = { }, updateAlwaysAsIdentity: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_always_as_identityPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_always_as_identityPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4189,13 +3999,13 @@ export const plans = { }, updateAlwaysAsIdentityById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_always_as_identityPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_always_as_identityPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4210,11 +4020,11 @@ export const plans = { }, updateByDefaultAsIdentity: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_by_default_as_identityPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_by_default_as_identityPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4229,13 +4039,13 @@ export const plans = { }, updateByDefaultAsIdentityById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_by_default_as_identityPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_by_default_as_identityPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4250,11 +4060,11 @@ export const plans = { }, updateNetwork: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_networkPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_networkPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4269,13 +4079,13 @@ export const plans = { }, updateNetworkById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_networkPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_networkPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4290,11 +4100,11 @@ export const plans = { }, updateType: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_typesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4309,13 +4119,13 @@ export const plans = { }, updateTypeById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4330,11 +4140,11 @@ export const plans = { }, deleteAlwaysAsIdentity: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_always_as_identityPgResource, specFromArgs5(args)) + const $delete = pgDeleteSingle(pgResource_always_as_identityPgResource, specFromArgs5(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4349,13 +4159,13 @@ export const plans = { }, deleteAlwaysAsIdentityById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_always_as_identityPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_always_as_identityPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4370,11 +4180,11 @@ export const plans = { }, deleteByDefaultAsIdentity: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_by_default_as_identityPgResource, specFromArgs6(args)) + const $delete = pgDeleteSingle(pgResource_by_default_as_identityPgResource, specFromArgs6(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4389,13 +4199,13 @@ export const plans = { }, deleteByDefaultAsIdentityById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_by_default_as_identityPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_by_default_as_identityPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4410,11 +4220,11 @@ export const plans = { }, deleteNetwork: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_networkPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_networkPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4429,13 +4239,13 @@ export const plans = { }, deleteNetworkById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_networkPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_networkPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4450,11 +4260,11 @@ export const plans = { }, deleteType: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_typesPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4469,13 +4279,13 @@ export const plans = { }, deleteTypeById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4492,7 +4302,8 @@ export const plans = { CreateAlwaysAsIdentityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, alwaysAsIdentity($object) { return $object.get("result"); @@ -4500,7 +4311,7 @@ export const plans = { query() { return rootValue(); }, - alwaysAsIdentityEdge($mutation, args, info) { + alwaysAsIdentityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -4516,9 +4327,7 @@ export const plans = { return pgResource_always_as_identityPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AlwaysAsIdentitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -4529,35 +4338,34 @@ export const plans = { }, CreateAlwaysAsIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, alwaysAsIdentity: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, AlwaysAsIdentityInput: { - "__inputPlan": function AlwaysAsIdentityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, t: { - applyPlan($insert, val) { - $insert.set("t", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("t", bakedInputRuntime(schema, field.type, val)); + } } }, CreateByDefaultAsIdentityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, byDefaultAsIdentity($object) { return $object.get("result"); @@ -4565,7 +4373,7 @@ export const plans = { query() { return rootValue(); }, - byDefaultAsIdentityEdge($mutation, args, info) { + byDefaultAsIdentityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -4581,9 +4389,7 @@ export const plans = { return pgResource_by_default_as_identityPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ByDefaultAsIdentitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -4594,42 +4400,42 @@ export const plans = { }, CreateByDefaultAsIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, byDefaultAsIdentity: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ByDefaultAsIdentityInput: { - "__inputPlan": function ByDefaultAsIdentityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, t: { - applyPlan($insert, val) { - $insert.set("t", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("t", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNetworkPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, network($object) { return $object.get("result"); @@ -4637,7 +4443,7 @@ export const plans = { query() { return rootValue(); }, - networkEdge($mutation, args, info) { + networkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -4653,9 +4459,7 @@ export const plans = { return pgResource_networkPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -4666,63 +4470,66 @@ export const plans = { }, CreateNetworkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, network: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NetworkInput: { - "__inputPlan": function NetworkInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr8: { - applyPlan($insert, val) { - $insert.set("macaddr8", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr8", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -4730,7 +4537,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -4746,9 +4553,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -4759,63 +4564,66 @@ export const plans = { }, CreateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, type: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TypeInput: { - "__inputPlan": function TypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, regrole: { - applyPlan($insert, val) { - $insert.set("regrole", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regrole", bakedInputRuntime(schema, field.type, val)); + } }, regnamespace: { - applyPlan($insert, val) { - $insert.set("regnamespace", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regnamespace", bakedInputRuntime(schema, field.type, val)); + } }, bigintDomainArrayDomain: { - applyPlan($insert, val) { - $insert.set("bigint_domain_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint_domain_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, domainConstrainedCompoundType: { - applyPlan($insert, val) { - $insert.set("domain_constrained_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain_constrained_compound_type", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateAlwaysAsIdentityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, alwaysAsIdentity($object) { return $object.get("result"); @@ -4823,7 +4631,7 @@ export const plans = { query() { return rootValue(); }, - alwaysAsIdentityEdge($mutation, args, info) { + alwaysAsIdentityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -4839,9 +4647,7 @@ export const plans = { return pgResource_always_as_identityPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AlwaysAsIdentitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -4852,48 +4658,50 @@ export const plans = { }, UpdateAlwaysAsIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, alwaysAsIdentityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, AlwaysAsIdentityPatch: { - "__inputPlan": function AlwaysAsIdentityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, t: { - applyPlan($insert, val) { - $insert.set("t", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("t", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateAlwaysAsIdentityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, alwaysAsIdentityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateByDefaultAsIdentityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, byDefaultAsIdentity($object) { return $object.get("result"); @@ -4901,7 +4709,7 @@ export const plans = { query() { return rootValue(); }, - byDefaultAsIdentityEdge($mutation, args, info) { + byDefaultAsIdentityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -4917,9 +4725,7 @@ export const plans = { return pgResource_by_default_as_identityPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ByDefaultAsIdentitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -4930,55 +4736,58 @@ export const plans = { }, UpdateByDefaultAsIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, byDefaultAsIdentityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ByDefaultAsIdentityPatch: { - "__inputPlan": function ByDefaultAsIdentityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, t: { - applyPlan($insert, val) { - $insert.set("t", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("t", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateByDefaultAsIdentityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, byDefaultAsIdentityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNetworkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, network($object) { return $object.get("result"); @@ -4986,7 +4795,7 @@ export const plans = { query() { return rootValue(); }, - networkEdge($mutation, args, info) { + networkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5002,9 +4811,7 @@ export const plans = { return pgResource_networkPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5015,76 +4822,82 @@ export const plans = { }, UpdateNetworkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, networkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NetworkPatch: { - "__inputPlan": function NetworkPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr8: { - applyPlan($insert, val) { - $insert.set("macaddr8", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr8", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNetworkByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, networkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -5092,7 +4905,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5108,9 +4921,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5121,76 +4932,82 @@ export const plans = { }, UpdateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TypePatch: { - "__inputPlan": function TypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, regrole: { - applyPlan($insert, val) { - $insert.set("regrole", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regrole", bakedInputRuntime(schema, field.type, val)); + } }, regnamespace: { - applyPlan($insert, val) { - $insert.set("regnamespace", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regnamespace", bakedInputRuntime(schema, field.type, val)); + } }, bigintDomainArrayDomain: { - applyPlan($insert, val) { - $insert.set("bigint_domain_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint_domain_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, domainConstrainedCompoundType: { - applyPlan($insert, val) { - $insert.set("domain_constrained_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain_constrained_compound_type", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteAlwaysAsIdentityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, alwaysAsIdentity($object) { return $object.get("result"); @@ -5203,7 +5020,7 @@ export const plans = { query() { return rootValue(); }, - alwaysAsIdentityEdge($mutation, args, info) { + alwaysAsIdentityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5219,9 +5036,7 @@ export const plans = { return pgResource_always_as_identityPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AlwaysAsIdentitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5232,16 +5047,16 @@ export const plans = { }, DeleteAlwaysAsIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteAlwaysAsIdentityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -5249,7 +5064,8 @@ export const plans = { DeleteByDefaultAsIdentityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, byDefaultAsIdentity($object) { return $object.get("result"); @@ -5262,7 +5078,7 @@ export const plans = { query() { return rootValue(); }, - byDefaultAsIdentityEdge($mutation, args, info) { + byDefaultAsIdentityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5278,9 +5094,7 @@ export const plans = { return pgResource_by_default_as_identityPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ByDefaultAsIdentitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5291,16 +5105,16 @@ export const plans = { }, DeleteByDefaultAsIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteByDefaultAsIdentityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -5308,7 +5122,8 @@ export const plans = { DeleteNetworkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, network($object) { return $object.get("result"); @@ -5321,7 +5136,7 @@ export const plans = { query() { return rootValue(); }, - networkEdge($mutation, args, info) { + networkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5337,9 +5152,7 @@ export const plans = { return pgResource_networkPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5350,16 +5163,16 @@ export const plans = { }, DeleteNetworkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNetworkByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -5367,7 +5180,8 @@ export const plans = { DeleteTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -5380,7 +5194,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5396,9 +5210,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5409,16 +5221,16 @@ export const plans = { }, DeleteTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/pg11.custom.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/pg11.custom.1.export.mjs index 72f1300c7b..9c564381fa 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/pg11.custom.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/pg11.custom.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -77,7 +79,7 @@ const executor = new PgExecutor({ } }); const alwaysAsIdentityIdentifier = sql.identifier("pg11", "always_as_identity"); -const spec_alwaysAsIdentity = { +const alwaysAsIdentityCodec = recordCodec({ name: "alwaysAsIdentity", identifier: alwaysAsIdentityIdentifier, attributes: { @@ -116,10 +118,9 @@ const spec_alwaysAsIdentity = { } }, executor: executor -}; -const alwaysAsIdentityCodec = recordCodec(spec_alwaysAsIdentity); +}); const byDefaultAsIdentityIdentifier = sql.identifier("pg11", "by_default_as_identity"); -const spec_byDefaultAsIdentity = { +const byDefaultAsIdentityCodec = recordCodec({ name: "byDefaultAsIdentity", identifier: byDefaultAsIdentityIdentifier, attributes: { @@ -156,10 +157,9 @@ const spec_byDefaultAsIdentity = { } }, executor: executor -}; -const byDefaultAsIdentityCodec = recordCodec(spec_byDefaultAsIdentity); +}); const networkIdentifier = sql.identifier("pg11", "network"); -const spec_network = { +const networkCodec = recordCodec({ name: "network", identifier: networkIdentifier, attributes: { @@ -223,8 +223,7 @@ const spec_network = { } }, executor: executor -}; -const networkCodec = recordCodec(spec_network); +}); const bigintDomainCodec = domainOfCodec(TYPES.bigint, "bigintDomain", sql.identifier("c", "bigint_domain"), { description: undefined, extensions: { @@ -423,7 +422,7 @@ const domainConstrainedCompoundTypeCodec = domainOfCodec(compoundTypeCodec, "dom notNull: false }); const typesIdentifier = sql.identifier("pg11", "types"); -const spec_types = { +const typesCodec = recordCodec({ name: "types", identifier: typesIdentifier, attributes: { @@ -487,8 +486,7 @@ const spec_types = { } }, executor: executor -}; -const typesCodec = recordCodec(spec_types); +}); const always_as_identityUniques = [{ isPrimary: true, attributes: ["id"], @@ -676,6 +674,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_always_as_identityPgResource.get(spec); }, @@ -695,6 +696,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_by_default_as_identityPgResource.get(spec); }, @@ -714,6 +718,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_networkPgResource.get(spec); }, @@ -733,6 +740,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_typesPgResource.get(spec); }, @@ -745,6 +755,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -791,26 +802,9 @@ const fetcher4 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Type); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function InternetAddressSerialize(value) { return "" + value; } @@ -822,35 +816,35 @@ const coerce = string => { return string; }; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.AlwaysAsIdentity, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ByDefaultAsIdentity, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Network, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.AlwaysAsIdentity, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ByDefaultAsIdentity, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Network, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -2252,42 +2246,42 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, alwaysAsIdentityById(_$root, args) { return pgResource_always_as_identityPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, byDefaultAsIdentityById(_$root, args) { return pgResource_by_default_as_identityPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, networkById(_$root, args) { return pgResource_networkPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, typeById(_$root, args) { return pgResource_typesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, alwaysAsIdentity(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, byDefaultAsIdentity(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, network(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, type(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, allAlwaysAsIdentities: { @@ -2298,7 +2292,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -2307,7 +2300,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -2316,7 +2308,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -2325,7 +2316,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -2334,7 +2324,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -2343,22 +2332,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AlwaysAsIdentitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -2372,7 +2357,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -2381,7 +2365,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -2390,7 +2373,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -2399,7 +2381,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -2408,7 +2389,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -2417,22 +2397,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ByDefaultAsIdentitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -2446,7 +2422,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -2455,7 +2430,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -2464,7 +2438,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -2473,7 +2446,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -2482,7 +2454,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -2491,22 +2462,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -2520,7 +2487,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -2529,7 +2495,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -2538,7 +2503,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -2547,7 +2511,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -2556,7 +2519,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -2565,22 +2527,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -2872,31 +2830,21 @@ export const plans = { } }, AlwaysAsIdentitiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { always_as_identityUniques[0].attributes.forEach(attributeName => { - const attribute = alwaysAsIdentityCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2905,19 +2853,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { always_as_identityUniques[0].attributes.forEach(attributeName => { - const attribute = alwaysAsIdentityCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2926,11 +2872,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -2938,7 +2881,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2948,11 +2891,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -2960,7 +2900,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2970,11 +2910,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "t", direction: "ASC", ...(undefined != null ? { @@ -2982,7 +2919,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2992,11 +2929,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "t", direction: "DESC", ...(undefined != null ? { @@ -3004,7 +2938,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3013,8 +2947,8 @@ export const plans = { }, AlwaysAsIdentityCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -3027,17 +2961,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_alwaysAsIdentity.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, t: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "t", @@ -3050,13 +2982,11 @@ export const plans = { type: "attribute", attribute: "t", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_alwaysAsIdentity.attributes.t.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ByDefaultAsIdentitiesConnection: { @@ -3085,31 +3015,21 @@ export const plans = { } }, ByDefaultAsIdentitiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { by_default_as_identityUniques[0].attributes.forEach(attributeName => { - const attribute = byDefaultAsIdentityCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3118,19 +3038,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { by_default_as_identityUniques[0].attributes.forEach(attributeName => { - const attribute = byDefaultAsIdentityCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3139,11 +3057,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -3151,7 +3066,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3161,11 +3076,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -3173,7 +3085,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3183,11 +3095,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "t", direction: "ASC", ...(undefined != null ? { @@ -3195,7 +3104,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3205,11 +3114,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "t", direction: "DESC", ...(undefined != null ? { @@ -3217,7 +3123,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3226,8 +3132,8 @@ export const plans = { }, ByDefaultAsIdentityCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -3240,17 +3146,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_byDefaultAsIdentity.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, t: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "t", @@ -3263,13 +3167,11 @@ export const plans = { type: "attribute", attribute: "t", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_byDefaultAsIdentity.attributes.t.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NetworksConnection: { @@ -3298,31 +3200,21 @@ export const plans = { } }, NetworksOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { networkUniques[0].attributes.forEach(attributeName => { - const attribute = networkCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3331,19 +3223,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { networkUniques[0].attributes.forEach(attributeName => { - const attribute = networkCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3352,11 +3242,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -3364,7 +3251,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3374,11 +3261,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -3386,7 +3270,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3396,11 +3280,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -3408,7 +3289,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3418,11 +3299,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -3430,7 +3308,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3440,11 +3318,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -3452,7 +3327,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3462,11 +3337,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -3474,7 +3346,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3484,11 +3356,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -3496,7 +3365,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3506,11 +3375,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -3518,7 +3384,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3528,11 +3394,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr8", direction: "ASC", ...(undefined != null ? { @@ -3540,7 +3403,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3550,11 +3413,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr8", direction: "DESC", ...(undefined != null ? { @@ -3562,7 +3422,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3571,8 +3431,8 @@ export const plans = { }, NetworkCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -3585,17 +3445,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -3608,17 +3466,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -3631,17 +3487,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -3654,17 +3508,15 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr8: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr8", @@ -3677,13 +3529,11 @@ export const plans = { type: "attribute", attribute: "macaddr8", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_network.attributes.macaddr8.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr8)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TypesConnection: { @@ -3712,31 +3562,21 @@ export const plans = { } }, TypesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3745,19 +3585,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3766,11 +3604,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -3778,7 +3613,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3788,11 +3623,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -3800,7 +3632,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3810,11 +3642,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regrole", direction: "ASC", ...(undefined != null ? { @@ -3822,7 +3651,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3832,11 +3661,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regrole", direction: "DESC", ...(undefined != null ? { @@ -3844,7 +3670,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3854,11 +3680,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regnamespace", direction: "ASC", ...(undefined != null ? { @@ -3866,7 +3689,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3876,11 +3699,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regnamespace", direction: "DESC", ...(undefined != null ? { @@ -3888,7 +3708,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3898,11 +3718,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain_constrained_compound_type", direction: "ASC", ...(undefined != null ? { @@ -3910,7 +3727,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3920,11 +3737,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain_constrained_compound_type", direction: "DESC", ...(undefined != null ? { @@ -3932,7 +3746,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -3941,8 +3755,8 @@ export const plans = { }, TypeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -3955,17 +3769,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regrole: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regrole", @@ -3978,17 +3790,15 @@ export const plans = { type: "attribute", attribute: "regrole", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regrole.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regrole)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regnamespace: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regnamespace", @@ -4001,17 +3811,15 @@ export const plans = { type: "attribute", attribute: "regnamespace", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regnamespace.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regnamespace)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, bigintDomainArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "bigint_domain_array_domain", @@ -4024,17 +3832,15 @@ export const plans = { type: "attribute", attribute: "bigint_domain_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.bigint_domain_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, bigintDomainArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domainConstrainedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain_constrained_compound_type", @@ -4047,74 +3853,78 @@ export const plans = { type: "attribute", attribute: "domain_constrained_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain_constrained_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, domainConstrainedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, DomainConstrainedCompoundTypeInput: { - "__inputPlan": function DomainConstrainedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, IntervalInput: { @@ -4129,17 +3939,17 @@ export const plans = { __assertStep: __ValueStep, createAlwaysAsIdentity: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_always_as_identityPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_always_as_identityPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -4149,17 +3959,17 @@ export const plans = { }, createByDefaultAsIdentity: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_by_default_as_identityPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_by_default_as_identityPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -4169,17 +3979,17 @@ export const plans = { }, createNetwork: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_networkPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_networkPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -4189,17 +3999,17 @@ export const plans = { }, createType: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -4209,11 +4019,11 @@ export const plans = { }, updateAlwaysAsIdentity: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_always_as_identityPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_always_as_identityPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4228,13 +4038,13 @@ export const plans = { }, updateAlwaysAsIdentityById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_always_as_identityPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_always_as_identityPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4249,11 +4059,11 @@ export const plans = { }, updateByDefaultAsIdentity: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_by_default_as_identityPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_by_default_as_identityPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4268,13 +4078,13 @@ export const plans = { }, updateByDefaultAsIdentityById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_by_default_as_identityPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_by_default_as_identityPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4289,11 +4099,11 @@ export const plans = { }, updateNetwork: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_networkPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_networkPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4308,13 +4118,13 @@ export const plans = { }, updateNetworkById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_networkPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_networkPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4329,11 +4139,11 @@ export const plans = { }, updateType: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_typesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4348,13 +4158,13 @@ export const plans = { }, updateTypeById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -4369,11 +4179,11 @@ export const plans = { }, deleteAlwaysAsIdentity: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_always_as_identityPgResource, specFromArgs5(args)) + const $delete = pgDeleteSingle(pgResource_always_as_identityPgResource, specFromArgs5(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4388,13 +4198,13 @@ export const plans = { }, deleteAlwaysAsIdentityById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_always_as_identityPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_always_as_identityPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4409,11 +4219,11 @@ export const plans = { }, deleteByDefaultAsIdentity: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_by_default_as_identityPgResource, specFromArgs6(args)) + const $delete = pgDeleteSingle(pgResource_by_default_as_identityPgResource, specFromArgs6(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4428,13 +4238,13 @@ export const plans = { }, deleteByDefaultAsIdentityById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_by_default_as_identityPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_by_default_as_identityPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4449,11 +4259,11 @@ export const plans = { }, deleteNetwork: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_networkPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_networkPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4468,13 +4278,13 @@ export const plans = { }, deleteNetworkById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_networkPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_networkPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4489,11 +4299,11 @@ export const plans = { }, deleteType: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_typesPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4508,13 +4318,13 @@ export const plans = { }, deleteTypeById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -4531,7 +4341,8 @@ export const plans = { CreateAlwaysAsIdentityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, alwaysAsIdentity($object) { return $object.get("result"); @@ -4539,7 +4350,7 @@ export const plans = { query() { return rootValue(); }, - alwaysAsIdentityEdge($mutation, args, info) { + alwaysAsIdentityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -4555,9 +4366,7 @@ export const plans = { return pgResource_always_as_identityPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AlwaysAsIdentitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -4568,35 +4377,34 @@ export const plans = { }, CreateAlwaysAsIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, alwaysAsIdentity: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, AlwaysAsIdentityInput: { - "__inputPlan": function AlwaysAsIdentityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, t: { - applyPlan($insert, val) { - $insert.set("t", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("t", bakedInputRuntime(schema, field.type, val)); + } } }, CreateByDefaultAsIdentityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, byDefaultAsIdentity($object) { return $object.get("result"); @@ -4604,7 +4412,7 @@ export const plans = { query() { return rootValue(); }, - byDefaultAsIdentityEdge($mutation, args, info) { + byDefaultAsIdentityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -4620,9 +4428,7 @@ export const plans = { return pgResource_by_default_as_identityPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ByDefaultAsIdentitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -4633,42 +4439,42 @@ export const plans = { }, CreateByDefaultAsIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, byDefaultAsIdentity: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ByDefaultAsIdentityInput: { - "__inputPlan": function ByDefaultAsIdentityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, t: { - applyPlan($insert, val) { - $insert.set("t", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("t", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNetworkPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, network($object) { return $object.get("result"); @@ -4676,7 +4482,7 @@ export const plans = { query() { return rootValue(); }, - networkEdge($mutation, args, info) { + networkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -4692,9 +4498,7 @@ export const plans = { return pgResource_networkPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -4705,63 +4509,66 @@ export const plans = { }, CreateNetworkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, network: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NetworkInput: { - "__inputPlan": function NetworkInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr8: { - applyPlan($insert, val) { - $insert.set("macaddr8", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr8", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -4769,7 +4576,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -4785,9 +4592,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -4798,63 +4603,66 @@ export const plans = { }, CreateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, type: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TypeInput: { - "__inputPlan": function TypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, regrole: { - applyPlan($insert, val) { - $insert.set("regrole", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regrole", bakedInputRuntime(schema, field.type, val)); + } }, regnamespace: { - applyPlan($insert, val) { - $insert.set("regnamespace", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regnamespace", bakedInputRuntime(schema, field.type, val)); + } }, bigintDomainArrayDomain: { - applyPlan($insert, val) { - $insert.set("bigint_domain_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint_domain_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, domainConstrainedCompoundType: { - applyPlan($insert, val) { - $insert.set("domain_constrained_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain_constrained_compound_type", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateAlwaysAsIdentityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, alwaysAsIdentity($object) { return $object.get("result"); @@ -4862,7 +4670,7 @@ export const plans = { query() { return rootValue(); }, - alwaysAsIdentityEdge($mutation, args, info) { + alwaysAsIdentityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -4878,9 +4686,7 @@ export const plans = { return pgResource_always_as_identityPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AlwaysAsIdentitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -4891,48 +4697,50 @@ export const plans = { }, UpdateAlwaysAsIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, alwaysAsIdentityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, AlwaysAsIdentityPatch: { - "__inputPlan": function AlwaysAsIdentityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, t: { - applyPlan($insert, val) { - $insert.set("t", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("t", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateAlwaysAsIdentityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, alwaysAsIdentityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateByDefaultAsIdentityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, byDefaultAsIdentity($object) { return $object.get("result"); @@ -4940,7 +4748,7 @@ export const plans = { query() { return rootValue(); }, - byDefaultAsIdentityEdge($mutation, args, info) { + byDefaultAsIdentityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -4956,9 +4764,7 @@ export const plans = { return pgResource_by_default_as_identityPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ByDefaultAsIdentitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -4969,55 +4775,58 @@ export const plans = { }, UpdateByDefaultAsIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, byDefaultAsIdentityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ByDefaultAsIdentityPatch: { - "__inputPlan": function ByDefaultAsIdentityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, t: { - applyPlan($insert, val) { - $insert.set("t", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("t", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateByDefaultAsIdentityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, byDefaultAsIdentityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNetworkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, network($object) { return $object.get("result"); @@ -5025,7 +4834,7 @@ export const plans = { query() { return rootValue(); }, - networkEdge($mutation, args, info) { + networkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5041,9 +4850,7 @@ export const plans = { return pgResource_networkPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5054,76 +4861,82 @@ export const plans = { }, UpdateNetworkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, networkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NetworkPatch: { - "__inputPlan": function NetworkPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr8: { - applyPlan($insert, val) { - $insert.set("macaddr8", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr8", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNetworkByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, networkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -5131,7 +4944,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5147,9 +4960,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5160,76 +4971,82 @@ export const plans = { }, UpdateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TypePatch: { - "__inputPlan": function TypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, regrole: { - applyPlan($insert, val) { - $insert.set("regrole", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regrole", bakedInputRuntime(schema, field.type, val)); + } }, regnamespace: { - applyPlan($insert, val) { - $insert.set("regnamespace", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regnamespace", bakedInputRuntime(schema, field.type, val)); + } }, bigintDomainArrayDomain: { - applyPlan($insert, val) { - $insert.set("bigint_domain_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint_domain_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, domainConstrainedCompoundType: { - applyPlan($insert, val) { - $insert.set("domain_constrained_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain_constrained_compound_type", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteAlwaysAsIdentityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, alwaysAsIdentity($object) { return $object.get("result"); @@ -5242,7 +5059,7 @@ export const plans = { query() { return rootValue(); }, - alwaysAsIdentityEdge($mutation, args, info) { + alwaysAsIdentityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5258,9 +5075,7 @@ export const plans = { return pgResource_always_as_identityPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AlwaysAsIdentitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5271,16 +5086,16 @@ export const plans = { }, DeleteAlwaysAsIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteAlwaysAsIdentityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -5288,7 +5103,8 @@ export const plans = { DeleteByDefaultAsIdentityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, byDefaultAsIdentity($object) { return $object.get("result"); @@ -5301,7 +5117,7 @@ export const plans = { query() { return rootValue(); }, - byDefaultAsIdentityEdge($mutation, args, info) { + byDefaultAsIdentityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5317,9 +5133,7 @@ export const plans = { return pgResource_by_default_as_identityPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ByDefaultAsIdentitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5330,16 +5144,16 @@ export const plans = { }, DeleteByDefaultAsIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteByDefaultAsIdentityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -5347,7 +5161,8 @@ export const plans = { DeleteNetworkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, network($object) { return $object.get("result"); @@ -5360,7 +5175,7 @@ export const plans = { query() { return rootValue(); }, - networkEdge($mutation, args, info) { + networkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5376,9 +5191,7 @@ export const plans = { return pgResource_networkPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NetworksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5389,16 +5202,16 @@ export const plans = { }, DeleteNetworkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNetworkByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -5406,7 +5219,8 @@ export const plans = { DeleteTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -5419,7 +5233,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -5435,9 +5249,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -5448,16 +5260,16 @@ export const plans = { }, DeleteTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/pgStrictFunctions.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/pgStrictFunctions.1.export.mjs index 643e5c5350..b5c9f1b679 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/pgStrictFunctions.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/pgStrictFunctions.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -478,7 +480,7 @@ const textArrayCodec = listOfCodec(TYPES.text, { name: "textArray" }); const nonUpdatableViewIdentifier = sql.identifier("a", "non_updatable_view"); -const spec_nonUpdatableView = { +const nonUpdatableViewCodec = recordCodec({ name: "nonUpdatableView", identifier: nonUpdatableViewIdentifier, attributes: { @@ -506,10 +508,9 @@ const spec_nonUpdatableView = { } }, executor: executor -}; -const nonUpdatableViewCodec = recordCodec(spec_nonUpdatableView); +}); const inputsIdentifier = sql.identifier("a", "inputs"); -const spec_inputs = { +const inputsCodec = recordCodec({ name: "inputs", identifier: inputsIdentifier, attributes: { @@ -537,10 +538,9 @@ const spec_inputs = { } }, executor: executor -}; -const inputsCodec = recordCodec(spec_inputs); +}); const patchsIdentifier = sql.identifier("a", "patchs"); -const spec_patchs = { +const patchsCodec = recordCodec({ name: "patchs", identifier: patchsIdentifier, attributes: { @@ -568,10 +568,9 @@ const spec_patchs = { } }, executor: executor -}; -const patchsCodec = recordCodec(spec_patchs); +}); const reservedIdentifier = sql.identifier("a", "reserved"); -const spec_reserved = { +const reservedCodec = recordCodec({ name: "reserved", identifier: reservedIdentifier, attributes: { @@ -599,10 +598,9 @@ const spec_reserved = { } }, executor: executor -}; -const reservedCodec = recordCodec(spec_reserved); +}); const reservedPatchsIdentifier = sql.identifier("a", "reservedPatchs"); -const spec_reservedPatchs = { +const reservedPatchsCodec = recordCodec({ name: "reservedPatchs", identifier: reservedPatchsIdentifier, attributes: { @@ -630,10 +628,9 @@ const spec_reservedPatchs = { } }, executor: executor -}; -const reservedPatchsCodec = recordCodec(spec_reservedPatchs); +}); const reservedInputIdentifier = sql.identifier("a", "reserved_input"); -const spec_reservedInput = { +const reservedInputCodec = recordCodec({ name: "reservedInput", identifier: reservedInputIdentifier, attributes: { @@ -661,10 +658,9 @@ const spec_reservedInput = { } }, executor: executor -}; -const reservedInputCodec = recordCodec(spec_reservedInput); +}); const defaultValueIdentifier = sql.identifier("a", "default_value"); -const spec_defaultValue = { +const defaultValueCodec = recordCodec({ name: "defaultValue", identifier: defaultValueIdentifier, attributes: { @@ -701,10 +697,9 @@ const spec_defaultValue = { } }, executor: executor -}; -const defaultValueCodec = recordCodec(spec_defaultValue); +}); const foreignKeyIdentifier = sql.identifier("a", "foreign_key"); -const spec_foreignKey = { +const foreignKeyCodec = recordCodec({ name: "foreignKey", identifier: foreignKeyIdentifier, attributes: { @@ -750,10 +745,9 @@ const spec_foreignKey = { } }, executor: executor -}; -const foreignKeyCodec = recordCodec(spec_foreignKey); +}); const noPrimaryKeyIdentifier = sql.identifier("a", "no_primary_key"); -const spec_noPrimaryKey = { +const noPrimaryKeyCodec = recordCodec({ name: "noPrimaryKey", identifier: noPrimaryKeyIdentifier, attributes: { @@ -790,10 +784,9 @@ const spec_noPrimaryKey = { } }, executor: executor -}; -const noPrimaryKeyCodec = recordCodec(spec_noPrimaryKey); +}); const testviewIdentifier = sql.identifier("a", "testview"); -const spec_testview = { +const testviewCodec = recordCodec({ name: "testview", identifier: testviewIdentifier, attributes: { @@ -839,8 +832,7 @@ const spec_testview = { } }, executor: executor -}; -const testviewCodec = recordCodec(spec_testview); +}); const uniqueForeignKeyIdentifier = sql.identifier("a", "unique_foreign_key"); const spec_uniqueForeignKey = { name: "uniqueForeignKey", @@ -884,7 +876,7 @@ const spec_uniqueForeignKey = { }; const uniqueForeignKeyCodec = recordCodec(spec_uniqueForeignKey); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -921,10 +913,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -964,8 +955,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -1007,7 +997,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const viewTableIdentifier = sql.identifier("a", "view_table"); -const spec_viewTable = { +const viewTableCodec = recordCodec({ name: "viewTable", identifier: viewTableIdentifier, attributes: { @@ -1053,10 +1043,9 @@ const spec_viewTable = { } }, executor: executor -}; -const viewTableCodec = recordCodec(spec_viewTable); +}); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -1102,10 +1091,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const similarTable1Identifier = sql.identifier("a", "similar_table_1"); -const spec_similarTable1 = { +const similarTable1Codec = recordCodec({ name: "similarTable1", identifier: similarTable1Identifier, attributes: { @@ -1160,10 +1148,9 @@ const spec_similarTable1 = { } }, executor: executor -}; -const similarTable1Codec = recordCodec(spec_similarTable1); +}); const similarTable2Identifier = sql.identifier("a", "similar_table_2"); -const spec_similarTable2 = { +const similarTable2Codec = recordCodec({ name: "similarTable2", identifier: similarTable2Identifier, attributes: { @@ -1218,10 +1205,9 @@ const spec_similarTable2 = { } }, executor: executor -}; -const similarTable2Codec = recordCodec(spec_similarTable2); +}); const updatableViewIdentifier = sql.identifier("b", "updatable_view"); -const spec_updatableView = { +const updatableViewCodec = recordCodec({ name: "updatableView", identifier: updatableViewIdentifier, attributes: { @@ -1278,10 +1264,9 @@ const spec_updatableView = { } }, executor: executor -}; -const updatableViewCodec = recordCodec(spec_updatableView); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -1336,8 +1321,7 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const uuidArrayCodec = listOfCodec(TYPES.uuid, { extensions: { pg: { @@ -1354,7 +1338,7 @@ const uuidArrayCodec = listOfCodec(TYPES.uuid, { name: "uuidArray" }); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -1400,10 +1384,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -1458,8 +1441,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const jwtTokenIdentifier = sql.identifier("b", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -1541,7 +1523,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -1578,8 +1560,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const authPayloadIdentifier = sql.identifier("b", "auth_payload"); const authPayloadCodec = recordCodec({ name: "authPayload", @@ -1917,7 +1898,7 @@ const comptypeArrayCodec = listOfCodec(comptypeCodec, { description: undefined, name: "comptypeArray" }); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -1990,8 +1971,7 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const registryConfig_pgCodecs_QueryOutputTwoRowsRecord_QueryOutputTwoRowsRecord = recordCodec({ name: "QueryOutputTwoRowsRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2151,7 +2131,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -2273,8 +2253,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2592,7 +2571,7 @@ const byteaArrayCodec = listOfCodec(TYPES.bytea, { description: undefined, name: "byteaArray" }); -const spec_lists = { +const listsCodec = recordCodec({ name: "lists", identifier: listsIdentifier, attributes: { @@ -2728,8 +2707,7 @@ const spec_lists = { } }, executor: executor -}; -const listsCodec = recordCodec(spec_lists); +}); const typesIdentifier = sql.identifier("b", "types"); const anIntCodec = domainOfCodec(TYPES.int, "anInt", sql.identifier("a", "an_int"), { description: undefined, @@ -9193,6 +9171,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_inputsPgResource.get(spec); }, @@ -9212,6 +9193,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_patchsPgResource.get(spec); }, @@ -9231,6 +9215,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPgResource.get(spec); }, @@ -9250,6 +9237,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPatchsPgResource.get(spec); }, @@ -9269,6 +9259,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reserved_inputPgResource.get(spec); }, @@ -9288,6 +9281,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_default_valuePgResource.get(spec); }, @@ -9307,6 +9303,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -9326,6 +9325,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -9345,6 +9347,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_view_tablePgResource.get(spec); }, @@ -9365,6 +9370,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -9384,6 +9392,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_1PgResource.get(spec); }, @@ -9403,6 +9414,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_2PgResource.get(spec); }, @@ -9422,6 +9436,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -9441,6 +9458,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -9460,6 +9480,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -9479,6 +9502,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -9498,6 +9524,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -9517,6 +9546,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_listsPgResource.get(spec); }, @@ -9536,6 +9568,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_typesPgResource.get(spec); }, @@ -9546,553 +9581,96 @@ const nodeIdHandlerByTypeName = { }; const resource_no_primary_keyPgResource = registry.pgResources["no_primary_key"]; const resource_unique_foreign_keyPgResource = registry.pgResources["unique_foreign_key"]; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_query_interval_set = []; +const makeArgs_query_interval_set = (args, path = []) => argDetailsSimple_query_interval_set.map(details => makeArg(path, args, details)); const resource_query_interval_setPgResource = registry.pgResources["query_interval_set"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_query_interval_set(args); return resource_query_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple7 = []; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 argDetailsSimple_static_big_integer = []; +const makeArgs_static_big_integer = (args, path = []) => argDetailsSimple_static_big_integer.map(details => makeArg(path, args, details)); const resource_static_big_integerPgResource = registry.pgResources["static_big_integer"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_static_big_integer(args); return resource_static_big_integerPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple10 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple11 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple12 = [{ +const argDetailsSimple_add_1_query = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -10105,52 +9683,9 @@ const argDetailsSimple12 = [{ required: true, fetcher: null }]; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_query = (args, path = []) => argDetailsSimple_add_1_query.map(details => makeArg(path, args, details)); const resource_add_1_queryPgResource = registry.pgResources["add_1_query"]; -const argDetailsSimple13 = [{ +const argDetailsSimple_add_2_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10163,52 +9698,9 @@ const argDetailsSimple13 = [{ required: false, fetcher: null }]; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 makeArgs_add_2_query = (args, path = []) => argDetailsSimple_add_2_query.map(details => makeArg(path, args, details)); const resource_add_2_queryPgResource = registry.pgResources["add_2_query"]; -const argDetailsSimple14 = [{ +const argDetailsSimple_add_3_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10221,52 +9713,9 @@ const argDetailsSimple14 = [{ required: true, fetcher: null }]; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_query = (args, path = []) => argDetailsSimple_add_3_query.map(details => makeArg(path, args, details)); const resource_add_3_queryPgResource = registry.pgResources["add_3_query"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_add_4_query = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10279,52 +9728,9 @@ const argDetailsSimple15 = [{ required: false, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_query = (args, path = []) => argDetailsSimple_add_4_query.map(details => makeArg(path, args, details)); const resource_add_4_queryPgResource = registry.pgResources["add_4_query"]; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -10337,240 +9743,25 @@ const argDetailsSimple16 = [{ required: true, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple19 = []; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple20 = []; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10589,52 +9780,9 @@ const argDetailsSimple21 = [{ required: false, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_1PgResource = registry.pgResources["optional_missing_middle_1"]; -const argDetailsSimple22 = [{ +const argDetailsSimple_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10653,52 +9801,9 @@ const argDetailsSimple22 = [{ required: false, fetcher: null }]; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 makeArgs_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_2PgResource = registry.pgResources["optional_missing_middle_2"]; -const argDetailsSimple23 = [{ +const argDetailsSimple_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10717,52 +9822,9 @@ const argDetailsSimple23 = [{ required: false, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_3PgResource = registry.pgResources["optional_missing_middle_3"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10781,52 +9843,9 @@ const argDetailsSimple24 = [{ required: false, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_4PgResource = registry.pgResources["optional_missing_middle_4"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10845,98 +9864,12 @@ const argDetailsSimple25 = [{ required: false, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_5PgResource = registry.pgResources["optional_missing_middle_5"]; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple27 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -10955,56 +9888,13 @@ const argDetailsSimple27 = [{ required: true, fetcher: null }]; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple28 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -11023,194 +9913,22 @@ const argDetailsSimple28 = [{ required: false, fetcher: null }]; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_query_interval_array = []; +const makeArgs_query_interval_array = (args, path = []) => argDetailsSimple_query_interval_array.map(details => makeArg(path, args, details)); const resource_query_interval_arrayPgResource = registry.pgResources["query_interval_array"]; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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 argDetailsSimple_query_text_array = []; +const makeArgs_query_text_array = (args, path = []) => argDetailsSimple_query_text_array.map(details => makeArg(path, args, details)); const resource_query_text_arrayPgResource = registry.pgResources["query_text_array"]; -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple32 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -11247,104 +9965,18 @@ const argDetailsSimple32 = [{ required: true, fetcher: null }]; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple33 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -11363,310 +9995,52 @@ const argDetailsSimple34 = [{ required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple35 = []; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs35(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple36 = [{ +const argDetailsSimple_compound_type_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_compound_type_query = (args, path = []) => argDetailsSimple_compound_type_query.map(details => makeArg(path, args, details)); const resource_compound_type_queryPgResource = registry.pgResources["compound_type_query"]; -const argDetailsSimple37 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_query_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[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 makeArgs_query_compound_type_array = (args, path = []) => argDetailsSimple_query_compound_type_array.map(details => makeArg(path, args, details)); const resource_query_compound_type_arrayPgResource = registry.pgResources["query_compound_type_array"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_compound_type_array_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_compound_type_array_query = (args, path = []) => argDetailsSimple_compound_type_array_query.map(details => makeArg(path, args, details)); const resource_compound_type_array_queryPgResource = registry.pgResources["compound_type_array_query"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11679,52 +10053,9 @@ const argDetailsSimple40 = [{ required: true, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11737,473 +10068,70 @@ const argDetailsSimple41 = [{ required: true, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs41(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple42 = []; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs42(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple43 = []; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs44(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs12 = ($root, args, _info) => { - const selectArgs = makeArgs45(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs13 = ($root, args, _info) => { - const selectArgs = makeArgs46(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_type_function_connection = []; +const makeArgs_type_function_connection = (args, path = []) => argDetailsSimple_type_function_connection.map(details => makeArg(path, args, details)); const resource_type_function_connectionPgResource = registry.pgResources["type_function_connection"]; const getSelectPlanFromParentAndArgs14 = ($root, args, _info) => { - const selectArgs = makeArgs47(args); + const selectArgs = makeArgs_type_function_connection(args); return resource_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_type_function = (args, path = []) => argDetailsSimple_type_function.map(details => makeArg(path, args, details)); const resource_type_functionPgResource = registry.pgResources["type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_type_function_list = []; +const makeArgs_type_function_list = (args, path = []) => argDetailsSimple_type_function_list.map(details => makeArg(path, args, details)); const resource_type_function_listPgResource = registry.pgResources["type_function_list"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -12378,347 +10306,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple53 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple54 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple55 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple56 = []; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12737,52 +10364,9 @@ const argDetailsSimple57 = [{ required: false, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12801,52 +10385,9 @@ const argDetailsSimple58 = [{ required: false, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12865,52 +10406,9 @@ const argDetailsSimple59 = [{ required: false, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12929,52 +10427,9 @@ const argDetailsSimple60 = [{ required: false, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12993,52 +10448,9 @@ const argDetailsSimple61 = [{ required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -13051,194 +10463,22 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs65(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13253,82 +10493,33 @@ const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple66 = []; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs66(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13343,176 +10534,41 @@ const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple67 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple68 = []; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple69 = []; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -13523,57 +10579,14 @@ const coerce = string => { } return string; }; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_post_computed_interval_set = []; +const makeArgs_post_computed_interval_set = (args, path = []) => argDetailsSimple_post_computed_interval_set.map(details => makeArg(path, args, details)); const resource_post_computed_interval_setPgResource = registry.pgResources["post_computed_interval_set"]; const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs70(args); + const extraSelectArgs = makeArgs_post_computed_interval_set(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13588,228 +10601,50 @@ const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (resource_post_computed_interval_setPgResource.isUnique && !resource_post_computed_interval_setPgResource.codec.attributes && typeof resource_post_computed_interval_setPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${resource_post_computed_interval_setPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_setPgResource.from, resource_post_computed_interval_setPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_post_computed_interval_array = []; +const makeArgs_post_computed_interval_array = (args, path = []) => argDetailsSimple_post_computed_interval_array.map(details => makeArg(path, args, details)); const resource_post_computed_interval_arrayPgResource = registry.pgResources["post_computed_interval_array"]; -const argDetailsSimple72 = []; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 argDetailsSimple_post_computed_text_array = []; +const makeArgs_post_computed_text_array = (args, path = []) => argDetailsSimple_post_computed_text_array.map(details => makeArg(path, args, details)); const resource_post_computed_text_arrayPgResource = registry.pgResources["post_computed_text_array"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_post_computed_with_optional_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: false, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_post_computed_with_optional_arg = (args, path = []) => argDetailsSimple_post_computed_with_optional_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_optional_argPgResource = registry.pgResources["post_computed_with_optional_arg"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_post_computed_with_required_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_post_computed_with_required_arg = (args, path = []) => argDetailsSimple_post_computed_with_required_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_required_argPgResource = registry.pgResources["post_computed_with_required_arg"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_post_headline_trimmed = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13822,52 +10657,9 @@ const argDetailsSimple75 = [{ required: false, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_post_headline_trimmed = (args, path = []) => argDetailsSimple_post_headline_trimmed.map(details => makeArg(path, args, details)); const resource_post_headline_trimmedPgResource = registry.pgResources["post_headline_trimmed"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_post_headline_trimmed_no_defaults = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13880,52 +10672,9 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_post_headline_trimmed_no_defaults = (args, path = []) => argDetailsSimple_post_headline_trimmed_no_defaults.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_no_defaultsPgResource = registry.pgResources["post_headline_trimmed_no_defaults"]; -const argDetailsSimple77 = [{ +const argDetailsSimple_post_headline_trimmed_strict = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13938,102 +10687,16 @@ const argDetailsSimple77 = [{ required: false, fetcher: null }]; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 makeArgs_post_headline_trimmed_strict = (args, path = []) => argDetailsSimple_post_headline_trimmed_strict.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_strictPgResource = registry.pgResources["post_headline_trimmed_strict"]; -const argDetailsSimple78 = [{ +const argDetailsSimple_post_computed_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 makeArgs_post_computed_compound_type_array = (args, path = []) => argDetailsSimple_post_computed_compound_type_array.map(details => makeArg(path, args, details)); const resource_post_computed_compound_type_arrayPgResource = registry.pgResources["post_computed_compound_type_array"]; const resource_frmcdc_comptypePgResource = registry.pgResources["frmcdc_comptype"]; const resource_frmcdc_nestedCompoundTypePgResource = registry.pgResources["frmcdc_nestedCompoundType"]; @@ -14091,641 +10754,82 @@ const parseValueLiteral = (ast, variables) => { return undefined; } }; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple80 = []; -const makeArgs80 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple80[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple81 = []; -const makeArgs81 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple81[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple82 = []; -const makeArgs82 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple82[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple83 = []; -const makeArgs83 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple83[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple84 = []; -const makeArgs84 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple84[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 argDetailsSimple_return_void_mutation = []; +const makeArgs_return_void_mutation = (args, path = []) => argDetailsSimple_return_void_mutation.map(details => makeArg(path, args, details)); const resource_return_void_mutationPgResource = registry.pgResources["return_void_mutation"]; -const argDetailsSimple85 = []; -const makeArgs85 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple85[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 argDetailsSimple_mutation_interval_set = []; +const makeArgs_mutation_interval_set = (args, path = []) => argDetailsSimple_mutation_interval_set.map(details => makeArg(path, args, details)); const resource_mutation_interval_setPgResource = registry.pgResources["mutation_interval_set"]; -const argDetailsSimple86 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs86 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple86[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple87 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs87 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple87[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple88 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs88 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple88[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple89 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs89 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple89[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple90 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs90 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple90[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple91 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs91 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple91[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple92 = [{ +const argDetailsSimple_add_1_mutation = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14738,52 +10842,9 @@ const argDetailsSimple92 = [{ required: true, fetcher: null }]; -const makeArgs92 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple92[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_mutation = (args, path = []) => argDetailsSimple_add_1_mutation.map(details => makeArg(path, args, details)); const resource_add_1_mutationPgResource = registry.pgResources["add_1_mutation"]; -const argDetailsSimple93 = [{ +const argDetailsSimple_add_2_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14796,52 +10857,9 @@ const argDetailsSimple93 = [{ required: false, fetcher: null }]; -const makeArgs93 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple93[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 makeArgs_add_2_mutation = (args, path = []) => argDetailsSimple_add_2_mutation.map(details => makeArg(path, args, details)); const resource_add_2_mutationPgResource = registry.pgResources["add_2_mutation"]; -const argDetailsSimple94 = [{ +const argDetailsSimple_add_3_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14854,52 +10872,9 @@ const argDetailsSimple94 = [{ required: true, fetcher: null }]; -const makeArgs94 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple94[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_mutation = (args, path = []) => argDetailsSimple_add_3_mutation.map(details => makeArg(path, args, details)); const resource_add_3_mutationPgResource = registry.pgResources["add_3_mutation"]; -const argDetailsSimple95 = [{ +const argDetailsSimple_add_4_mutation = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14912,52 +10887,9 @@ const argDetailsSimple95 = [{ required: false, fetcher: null }]; -const makeArgs95 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple95[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation = (args, path = []) => argDetailsSimple_add_4_mutation.map(details => makeArg(path, args, details)); const resource_add_4_mutationPgResource = registry.pgResources["add_4_mutation"]; -const argDetailsSimple96 = [{ +const argDetailsSimple_add_4_mutation_error = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14970,52 +10902,9 @@ const argDetailsSimple96 = [{ required: false, fetcher: null }]; -const makeArgs96 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple96[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation_error = (args, path = []) => argDetailsSimple_add_4_mutation_error.map(details => makeArg(path, args, details)); const resource_add_4_mutation_errorPgResource = registry.pgResources["add_4_mutation_error"]; -const argDetailsSimple97 = [{ +const argDetailsSimple_mult_1 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15028,52 +10917,9 @@ const argDetailsSimple97 = [{ required: true, fetcher: null }]; -const makeArgs97 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple97[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_1 = (args, path = []) => argDetailsSimple_mult_1.map(details => makeArg(path, args, details)); const resource_mult_1PgResource = registry.pgResources["mult_1"]; -const argDetailsSimple98 = [{ +const argDetailsSimple_mult_2 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15086,52 +10932,9 @@ const argDetailsSimple98 = [{ required: true, fetcher: null }]; -const makeArgs98 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple98[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_2 = (args, path = []) => argDetailsSimple_mult_2.map(details => makeArg(path, args, details)); const resource_mult_2PgResource = registry.pgResources["mult_2"]; -const argDetailsSimple99 = [{ +const argDetailsSimple_mult_3 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15144,52 +10947,9 @@ const argDetailsSimple99 = [{ required: true, fetcher: null }]; -const makeArgs99 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple99[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_3 = (args, path = []) => argDetailsSimple_mult_3.map(details => makeArg(path, args, details)); const resource_mult_3PgResource = registry.pgResources["mult_3"]; -const argDetailsSimple100 = [{ +const argDetailsSimple_mult_4 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15202,52 +10962,9 @@ const argDetailsSimple100 = [{ required: true, fetcher: null }]; -const makeArgs100 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple100[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_4 = (args, path = []) => argDetailsSimple_mult_4.map(details => makeArg(path, args, details)); const resource_mult_4PgResource = registry.pgResources["mult_4"]; -const argDetailsSimple101 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -15260,190 +10977,18 @@ const argDetailsSimple101 = [{ required: true, fetcher: null }]; -const makeArgs101 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple101[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple102 = []; -const makeArgs102 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple102[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple103 = []; -const makeArgs103 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple103[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple104 = []; -const makeArgs104 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple104[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple105 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -15462,294 +11007,36 @@ const argDetailsSimple105 = [{ required: true, fetcher: null }]; -const makeArgs105 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple105[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple106 = []; -const makeArgs106 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple106[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple107 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs107 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple107[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple108 = [{ +const argDetailsSimple_guid_fn = [{ graphqlArgName: "g", postgresArgName: "g", pgCodec: guidCodec, required: true, fetcher: null }]; -const makeArgs108 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple108[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 makeArgs_guid_fn = (args, path = []) => argDetailsSimple_guid_fn.map(details => makeArg(path, args, details)); const resource_guid_fnPgResource = registry.pgResources["guid_fn"]; -const argDetailsSimple109 = []; -const makeArgs109 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple109[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 argDetailsSimple_mutation_interval_array = []; +const makeArgs_mutation_interval_array = (args, path = []) => argDetailsSimple_mutation_interval_array.map(details => makeArg(path, args, details)); const resource_mutation_interval_arrayPgResource = registry.pgResources["mutation_interval_array"]; -const argDetailsSimple110 = []; -const makeArgs110 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple110[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 argDetailsSimple_mutation_text_array = []; +const makeArgs_mutation_text_array = (args, path = []) => argDetailsSimple_mutation_text_array.map(details => makeArg(path, args, details)); const resource_mutation_text_arrayPgResource = registry.pgResources["mutation_text_array"]; -const argDetailsSimple111 = [{ +const argDetailsSimple_list_bde_mutation = [{ graphqlArgName: "b", postgresArgName: "b", pgCodec: textArrayCodec, @@ -15768,98 +11055,12 @@ const argDetailsSimple111 = [{ required: true, fetcher: null }]; -const makeArgs111 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple111[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 makeArgs_list_bde_mutation = (args, path = []) => argDetailsSimple_list_bde_mutation.map(details => makeArg(path, args, details)); const resource_list_bde_mutationPgResource = registry.pgResources["list_bde_mutation"]; -const argDetailsSimple112 = []; -const makeArgs112 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple112[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 argDetailsSimple_authenticate_fail = []; +const makeArgs_authenticate_fail = (args, path = []) => argDetailsSimple_authenticate_fail.map(details => makeArg(path, args, details)); const resource_authenticate_failPgResource = registry.pgResources["authenticate_fail"]; -const argDetailsSimple113 = [{ +const argDetailsSimple_authenticate = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15878,196 +11079,24 @@ const argDetailsSimple113 = [{ required: true, fetcher: null }]; -const makeArgs113 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple113[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 makeArgs_authenticate = (args, path = []) => argDetailsSimple_authenticate.map(details => makeArg(path, args, details)); const resource_authenticatePgResource = registry.pgResources["authenticate"]; -const argDetailsSimple114 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs114 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple114[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple115 = []; -const makeArgs115 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple115[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple116 = []; -const makeArgs116 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple116[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple117 = [{ +const argDetailsSimple_authenticate_many = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16086,52 +11115,9 @@ const argDetailsSimple117 = [{ required: true, fetcher: null }]; -const makeArgs117 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple117[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 makeArgs_authenticate_many = (args, path = []) => argDetailsSimple_authenticate_many.map(details => makeArg(path, args, details)); const resource_authenticate_manyPgResource = registry.pgResources["authenticate_many"]; -const argDetailsSimple118 = [{ +const argDetailsSimple_authenticate_payload = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16150,52 +11136,9 @@ const argDetailsSimple118 = [{ required: true, fetcher: null }]; -const makeArgs118 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple118[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 makeArgs_authenticate_payload = (args, path = []) => argDetailsSimple_authenticate_payload.map(details => makeArg(path, args, details)); const resource_authenticate_payloadPgResource = registry.pgResources["authenticate_payload"]; -const argDetailsSimple119 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -16232,260 +11175,45 @@ const argDetailsSimple119 = [{ required: true, fetcher: null }]; -const makeArgs119 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple119[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple120 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs120 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple120[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple121 = [{ +const argDetailsSimple_compound_type_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs121 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple121[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 makeArgs_compound_type_mutation = (args, path = []) => argDetailsSimple_compound_type_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_mutationPgResource = registry.pgResources["compound_type_mutation"]; -const argDetailsSimple122 = [{ +const argDetailsSimple_compound_type_set_mutation = [{ 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 makeArgs_compound_type_set_mutation = (args, path = []) => argDetailsSimple_compound_type_set_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_set_mutationPgResource = registry.pgResources["compound_type_set_mutation"]; -const argDetailsSimple123 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, 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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple124 = [{ +const argDetailsSimple_post_with_suffix = [{ graphqlArgName: "post", postgresArgName: "post", pgCodec: postCodec, @@ -16498,208 +11226,36 @@ const argDetailsSimple124 = [{ required: true, fetcher: null }]; -const makeArgs124 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple124[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 makeArgs_post_with_suffix = (args, path = []) => argDetailsSimple_post_with_suffix.map(details => makeArg(path, args, details)); const resource_post_with_suffixPgResource = registry.pgResources["post_with_suffix"]; -const argDetailsSimple125 = [{ +const argDetailsSimple_mutation_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs125 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple125[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 makeArgs_mutation_compound_type_array = (args, path = []) => argDetailsSimple_mutation_compound_type_array.map(details => makeArg(path, args, details)); const resource_mutation_compound_type_arrayPgResource = registry.pgResources["mutation_compound_type_array"]; -const argDetailsSimple126 = [{ +const argDetailsSimple_compound_type_array_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs126 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple126[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 makeArgs_compound_type_array_mutation = (args, path = []) => argDetailsSimple_compound_type_array_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_array_mutationPgResource = registry.pgResources["compound_type_array_mutation"]; -const argDetailsSimple127 = [{ +const argDetailsSimple_post_many = [{ graphqlArgName: "posts", postgresArgName: "posts", pgCodec: postArrayCodec, required: true, fetcher: null }]; -const makeArgs127 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple127[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 makeArgs_post_many = (args, path = []) => argDetailsSimple_post_many.map(details => makeArg(path, args, details)); const resource_post_manyPgResource = registry.pgResources["post_many"]; -const argDetailsSimple128 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16712,52 +11268,9 @@ const argDetailsSimple128 = [{ required: true, fetcher: null }]; -const makeArgs128 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple128[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple129 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16770,483 +11283,182 @@ const argDetailsSimple129 = [{ required: true, fetcher: null }]; -const makeArgs129 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple129[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple130 = []; -const makeArgs130 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple130[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple131 = []; -const makeArgs131 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple131[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple132 = []; -const makeArgs132 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple132[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; -const argDetailsSimple133 = []; -const makeArgs133 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple133[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 argDetailsSimple_type_function_connection_mutation = []; +const makeArgs_type_function_connection_mutation = (args, path = []) => argDetailsSimple_type_function_connection_mutation.map(details => makeArg(path, args, details)); const resource_type_function_connection_mutationPgResource = registry.pgResources["type_function_connection_mutation"]; -const argDetailsSimple134 = [{ +const argDetailsSimple_type_function_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs134 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple134[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 makeArgs_type_function_mutation = (args, path = []) => argDetailsSimple_type_function_mutation.map(details => makeArg(path, args, details)); const resource_type_function_mutationPgResource = registry.pgResources["type_function_mutation"]; -const argDetailsSimple135 = []; -const makeArgs135 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple135[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 argDetailsSimple_type_function_list_mutation = []; +const makeArgs_type_function_list_mutation = (args, path = []) => argDetailsSimple_type_function_list_mutation.map(details => makeArg(path, args, details)); const resource_type_function_list_mutationPgResource = registry.pgResources["type_function_list_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs15 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs16 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs17 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs18 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs19 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const specFromArgs20 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs21 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs22 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs23 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs24 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs25 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs26 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs27 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs28 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs29 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs30 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs31 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs32 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs33 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs34 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs35 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs36 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs37 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs38 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const resource_frmcdc_jwtTokenPgResource = registry.pgResources["frmcdc_jwtToken"]; @@ -27717,131 +21929,131 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, inputById(_$root, args) { return pgResource_inputsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, patchById(_$root, args) { return pgResource_patchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedById(_$root, args) { return pgResource_reservedPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedPatchRecordById(_$root, args) { return pgResource_reservedPatchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedInputRecordById(_$root, args) { return pgResource_reserved_inputPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, defaultValueById(_$root, args) { return pgResource_default_valuePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, noPrimaryKeyById(_$root, args) { return resource_no_primary_keyPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, uniqueForeignKeyByCompoundKey1AndCompoundKey2(_$root, args) { return resource_unique_foreign_keyPgResource.get({ - compound_key_1: args.get("compoundKey1"), - compound_key_2: args.get("compoundKey2") + compound_key_1: args.getRaw("compoundKey1"), + compound_key_2: args.getRaw("compoundKey2") }); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, viewTableById(_$root, args) { return pgResource_view_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, similarTable1ById(_$root, args) { return pgResource_similar_table_1PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, similarTable2ById(_$root, args) { return pgResource_similar_table_2PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, listById(_$root, args) { return pgResource_listsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, typeById(_$root, args) { return pgResource_typesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -27858,7 +22070,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27867,7 +22078,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27876,7 +22086,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27885,7 +22094,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27894,7 +22102,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27903,11 +22110,11 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, queryIntervalSet: { @@ -27924,7 +22131,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27933,7 +22139,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27942,7 +22147,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27951,7 +22155,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27960,7 +22163,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27982,7 +22184,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27991,7 +22192,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28000,7 +22200,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28009,7 +22208,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28018,7 +22216,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28027,7 +22224,7 @@ export const plans = { } }, funcInOut($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -28044,7 +22241,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28053,7 +22249,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28062,7 +22257,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28071,7 +22265,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28080,7 +22273,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28089,35 +22281,35 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, add1Query($root, args, _info) { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_add_1_query(args); return resource_add_1_queryPgResource.execute(selectArgs); }, add2Query($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_add_2_query(args); return resource_add_2_queryPgResource.execute(selectArgs); }, add3Query($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_add_3_query(args); return resource_add_3_queryPgResource.execute(selectArgs); }, add4Query($root, args, _info) { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_add_4_query(args); return resource_add_4_queryPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -28134,7 +22326,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28143,7 +22334,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28152,7 +22342,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28161,7 +22350,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28170,7 +22358,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28179,19 +22366,18 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28200,7 +22386,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28209,27 +22394,27 @@ export const plans = { } }, optionalMissingMiddle1($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_optional_missing_middle_1(args); return resource_optional_missing_middle_1PgResource.execute(selectArgs); }, optionalMissingMiddle2($root, args, _info) { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_optional_missing_middle_2(args); return resource_optional_missing_middle_2PgResource.execute(selectArgs); }, optionalMissingMiddle3($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_optional_missing_middle_3(args); return resource_optional_missing_middle_3PgResource.execute(selectArgs); }, optionalMissingMiddle4($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_optional_missing_middle_4(args); return resource_optional_missing_middle_4PgResource.execute(selectArgs); }, optionalMissingMiddle5($root, args, _info) { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_optional_missing_middle_5(args); return resource_optional_missing_middle_5PgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -28246,7 +22431,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28255,7 +22439,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28264,7 +22447,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28273,7 +22455,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28282,7 +22463,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28304,7 +22484,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28313,7 +22492,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28322,7 +22500,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28331,7 +22508,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28340,7 +22516,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28349,27 +22524,27 @@ export const plans = { } }, queryIntervalArray($root, args, _info) { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_query_interval_array(args); return resource_query_interval_arrayPgResource.execute(selectArgs); }, queryTextArray($root, args, _info) { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_query_text_array(args); return resource_query_text_arrayPgResource.execute(selectArgs); }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs31(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs32(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs33(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs34(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -28386,7 +22561,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28395,7 +22569,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28404,7 +22577,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28413,7 +22585,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28422,7 +22593,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28431,23 +22601,23 @@ export const plans = { } }, compoundTypeQuery($root, args, _info) { - const selectArgs = makeArgs36(args); + const selectArgs = makeArgs_compound_type_query(args); return resource_compound_type_queryPgResource.execute(selectArgs); }, tableQuery($root, args, _info) { - const selectArgs = makeArgs37(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, queryCompoundTypeArray($root, args, _info) { - const selectArgs = makeArgs38(args); + const selectArgs = makeArgs_query_compound_type_array(args); return resource_query_compound_type_arrayPgResource.execute(selectArgs); }, compoundTypeArrayQuery($root, args, _info) { - const selectArgs = makeArgs39(args); + const selectArgs = makeArgs_compound_type_array_query(args); return resource_compound_type_array_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs40(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -28464,7 +22634,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28473,7 +22642,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28482,7 +22650,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28491,7 +22658,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28500,7 +22666,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28522,7 +22687,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28531,7 +22695,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28540,7 +22703,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28549,7 +22711,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28558,7 +22719,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28567,7 +22727,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs43(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -28584,7 +22744,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28593,7 +22752,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28602,7 +22760,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28611,7 +22768,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28620,7 +22776,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28642,7 +22797,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28651,7 +22805,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28660,7 +22813,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28669,7 +22821,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28678,7 +22829,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28687,22 +22837,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28722,7 +22868,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28731,7 +22876,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28740,7 +22884,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28749,7 +22892,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28758,7 +22900,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28780,7 +22921,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28789,7 +22929,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28798,7 +22937,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28807,7 +22945,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28816,7 +22953,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28825,87 +22961,87 @@ export const plans = { } }, typeFunction($root, args, _info) { - const selectArgs = makeArgs48(args); + const selectArgs = makeArgs_type_function(args); return resource_type_functionPgResource.execute(selectArgs); }, typeFunctionList($root, args, _info) { - const selectArgs = makeArgs49(args); + const selectArgs = makeArgs_type_function_list(args); return resource_type_function_listPgResource.execute(selectArgs); }, input(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, patch(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, reserved(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, reservedPatchRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, reservedInputRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, defaultValue(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher8($nodeId); }, viewTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher9($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher10($nodeId); }, similarTable1(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher11($nodeId); }, similarTable2(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher12($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher13($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher14($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher15($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher16($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher17($nodeId); }, list(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher18($nodeId); }, type(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher19($nodeId); }, allNonUpdatableViews: { @@ -28916,7 +23052,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28925,7 +23060,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28934,7 +23068,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28943,7 +23076,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28952,7 +23084,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28961,22 +23092,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NonUpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28990,7 +23117,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28999,7 +23125,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29008,7 +23133,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29017,7 +23141,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29026,7 +23149,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29035,22 +23157,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29064,7 +23182,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29073,7 +23190,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29082,7 +23198,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29091,7 +23206,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29100,7 +23214,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29109,22 +23222,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29138,7 +23247,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29147,7 +23255,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29156,7 +23263,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29165,7 +23271,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29174,7 +23279,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29183,22 +23287,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29212,7 +23312,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29221,7 +23320,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29230,7 +23328,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29239,7 +23336,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29248,7 +23344,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29257,22 +23352,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29286,7 +23377,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29295,7 +23385,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29304,7 +23393,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29313,7 +23401,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29322,7 +23409,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29331,22 +23417,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29360,7 +23442,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29369,7 +23450,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29378,7 +23458,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29387,7 +23466,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29396,7 +23474,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29405,22 +23482,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29434,7 +23507,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29443,7 +23515,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29452,7 +23523,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29461,7 +23531,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29470,7 +23539,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29479,22 +23547,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29508,7 +23572,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29517,7 +23580,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29526,7 +23588,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29535,7 +23596,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29544,7 +23604,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29553,22 +23612,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NoPrimaryKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29582,7 +23637,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29591,7 +23645,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29600,7 +23653,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29609,7 +23661,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29618,7 +23669,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29627,22 +23677,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TestviewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29656,7 +23702,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29665,7 +23710,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29674,7 +23718,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29683,7 +23726,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29692,7 +23734,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29701,22 +23742,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29730,7 +23767,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29739,7 +23775,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29748,7 +23783,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29757,7 +23791,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29766,7 +23799,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29775,22 +23807,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29804,7 +23832,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29813,7 +23840,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29822,7 +23848,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29831,7 +23856,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29840,7 +23864,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29849,22 +23872,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29878,7 +23897,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29887,7 +23905,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29896,7 +23913,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29905,7 +23921,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29914,7 +23929,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29923,22 +23937,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29952,7 +23962,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29961,7 +23970,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29970,7 +23978,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29979,7 +23986,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29988,7 +23994,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29997,22 +24002,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30026,7 +24027,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30035,7 +24035,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30044,7 +24043,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30053,7 +24051,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30062,7 +24059,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30071,22 +24067,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30100,7 +24092,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30109,7 +24100,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30118,7 +24108,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30127,7 +24116,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30136,7 +24124,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30145,22 +24132,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30174,7 +24157,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30183,7 +24165,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30192,7 +24173,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30201,7 +24181,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30210,7 +24189,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30219,22 +24197,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30248,7 +24222,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30257,7 +24230,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30266,7 +24238,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30275,7 +24246,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30284,7 +24254,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30293,22 +24262,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30322,7 +24287,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30331,7 +24295,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30340,7 +24303,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30349,7 +24311,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30358,7 +24319,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30367,22 +24327,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30396,7 +24352,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30405,7 +24360,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30414,7 +24368,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30423,7 +24376,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30432,7 +24384,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30441,22 +24392,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30470,7 +24417,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30479,7 +24425,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30488,7 +24433,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30497,7 +24441,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30506,7 +24449,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30515,22 +24457,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30544,7 +24482,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30553,7 +24490,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30562,7 +24498,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30571,7 +24506,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30580,7 +24514,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30589,22 +24522,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30618,7 +24547,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30627,7 +24555,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30636,7 +24563,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30645,7 +24571,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30654,7 +24579,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30663,22 +24587,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30692,7 +24612,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30701,7 +24620,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30710,7 +24628,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30719,7 +24636,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30728,7 +24644,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30737,22 +24652,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30883,7 +24794,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30892,7 +24802,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30901,7 +24810,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30910,7 +24818,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30919,7 +24826,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30928,22 +24834,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30966,7 +24868,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30981,27 +24883,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -31010,7 +24906,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31025,27 +24921,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -31054,7 +24944,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs52(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31069,27 +24959,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -31098,7 +24982,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs53(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31113,27 +24997,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -31142,7 +25020,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs54(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31157,27 +25035,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -31186,7 +25058,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs55(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31201,27 +25073,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -31230,7 +25096,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs56(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31245,27 +25111,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -31274,7 +25134,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs57(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31289,27 +25149,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -31318,7 +25172,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs58(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31333,27 +25187,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -31362,7 +25210,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs59(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31377,27 +25225,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -31406,7 +25248,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs60(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31421,27 +25263,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -31450,7 +25286,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs61(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31465,27 +25301,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -31494,7 +25324,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs62(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31509,27 +25339,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -31538,7 +25362,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs63(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31553,27 +25377,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -31582,7 +25400,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs64(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31597,27 +25415,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -31636,7 +25448,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31645,7 +25456,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31654,7 +25464,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31663,7 +25472,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31672,7 +25480,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31681,12 +25488,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -31706,7 +25510,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31715,7 +25518,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31724,7 +25526,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31733,7 +25534,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31742,7 +25542,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31754,7 +25553,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs67(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31769,27 +25568,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -31798,7 +25591,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs68(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31813,27 +25606,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -31888,7 +25675,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31897,7 +25683,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31906,7 +25691,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31915,7 +25699,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31924,7 +25707,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31933,22 +25715,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -31965,7 +25743,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31974,7 +25751,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31983,7 +25759,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31992,7 +25767,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32001,7 +25775,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32010,22 +25783,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32052,7 +25821,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32061,7 +25829,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32070,7 +25837,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32079,7 +25845,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32088,7 +25853,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32097,22 +25861,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32129,7 +25889,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32138,7 +25897,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32147,7 +25905,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32156,7 +25913,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32165,7 +25921,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32174,22 +25929,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32264,7 +26015,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs69(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32279,27 +26030,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -32410,7 +26155,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32419,7 +26163,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32428,7 +26171,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32437,7 +26179,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32446,7 +26187,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32458,7 +26198,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs71(args); + const extraSelectArgs = makeArgs_post_computed_interval_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32473,27 +26213,21 @@ export const plans = { if (resource_post_computed_interval_arrayPgResource.isUnique && !resource_post_computed_interval_arrayPgResource.codec.attributes && typeof resource_post_computed_interval_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${resource_post_computed_interval_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_arrayPgResource.from, resource_post_computed_interval_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_arrayPgResource.execute(selectArgs); @@ -32502,7 +26236,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs72(args); + const extraSelectArgs = makeArgs_post_computed_text_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32517,27 +26251,21 @@ export const plans = { if (resource_post_computed_text_arrayPgResource.isUnique && !resource_post_computed_text_arrayPgResource.codec.attributes && typeof resource_post_computed_text_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${resource_post_computed_text_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_text_arrayPgResource.from, resource_post_computed_text_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_text_arrayPgResource.execute(selectArgs); @@ -32546,7 +26274,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs73(args); + const extraSelectArgs = makeArgs_post_computed_with_optional_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32561,27 +26289,21 @@ export const plans = { if (resource_post_computed_with_optional_argPgResource.isUnique && !resource_post_computed_with_optional_argPgResource.codec.attributes && typeof resource_post_computed_with_optional_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${resource_post_computed_with_optional_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_optional_argPgResource.from, resource_post_computed_with_optional_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_optional_argPgResource.execute(selectArgs); @@ -32590,7 +26312,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs74(args); + const extraSelectArgs = makeArgs_post_computed_with_required_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32605,27 +26327,21 @@ export const plans = { if (resource_post_computed_with_required_argPgResource.isUnique && !resource_post_computed_with_required_argPgResource.codec.attributes && typeof resource_post_computed_with_required_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${resource_post_computed_with_required_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_required_argPgResource.from, resource_post_computed_with_required_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_required_argPgResource.execute(selectArgs); @@ -32634,7 +26350,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs75(args); + const extraSelectArgs = makeArgs_post_headline_trimmed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32649,27 +26365,21 @@ export const plans = { if (resource_post_headline_trimmedPgResource.isUnique && !resource_post_headline_trimmedPgResource.codec.attributes && typeof resource_post_headline_trimmedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${resource_post_headline_trimmedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmedPgResource.from, resource_post_headline_trimmedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmedPgResource.execute(selectArgs); @@ -32678,7 +26388,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs76(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_no_defaults(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32693,27 +26403,21 @@ export const plans = { if (resource_post_headline_trimmed_no_defaultsPgResource.isUnique && !resource_post_headline_trimmed_no_defaultsPgResource.codec.attributes && typeof resource_post_headline_trimmed_no_defaultsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${resource_post_headline_trimmed_no_defaultsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.from, resource_post_headline_trimmed_no_defaultsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_no_defaultsPgResource.execute(selectArgs); @@ -32722,7 +26426,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs77(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_strict(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32737,27 +26441,21 @@ export const plans = { if (resource_post_headline_trimmed_strictPgResource.isUnique && !resource_post_headline_trimmed_strictPgResource.codec.attributes && typeof resource_post_headline_trimmed_strictPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${resource_post_headline_trimmed_strictPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_strictPgResource.from, resource_post_headline_trimmed_strictPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_strictPgResource.execute(selectArgs); @@ -32766,7 +26464,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs78(args); + const extraSelectArgs = makeArgs_post_computed_compound_type_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32781,27 +26479,21 @@ export const plans = { if (resource_post_computed_compound_type_arrayPgResource.isUnique && !resource_post_computed_compound_type_arrayPgResource.codec.attributes && typeof resource_post_computed_compound_type_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${resource_post_computed_compound_type_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_compound_type_arrayPgResource.from, resource_post_computed_compound_type_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_compound_type_arrayPgResource.execute(selectArgs); @@ -32843,7 +26535,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32852,7 +26543,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32861,7 +26551,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32870,7 +26559,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32879,7 +26567,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32888,22 +26575,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32966,64 +26649,70 @@ export const plans = { } }, CompoundTypeInput: { - "__inputPlan": function CompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, IntervalInput: { @@ -33541,31 +27230,21 @@ export const plans = { } }, TypesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33574,19 +27253,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33595,11 +27272,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -33607,7 +27281,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33617,11 +27291,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -33629,7 +27300,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33639,11 +27310,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "ASC", ...(undefined != null ? { @@ -33651,7 +27319,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33661,11 +27329,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "DESC", ...(undefined != null ? { @@ -33673,7 +27338,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33683,11 +27348,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "ASC", ...(undefined != null ? { @@ -33695,7 +27357,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33705,11 +27367,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "DESC", ...(undefined != null ? { @@ -33717,7 +27376,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33727,11 +27386,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "ASC", ...(undefined != null ? { @@ -33739,7 +27395,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33749,11 +27405,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "DESC", ...(undefined != null ? { @@ -33761,7 +27414,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33771,11 +27424,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "ASC", ...(undefined != null ? { @@ -33783,7 +27433,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33793,11 +27443,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "DESC", ...(undefined != null ? { @@ -33805,7 +27452,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33815,11 +27462,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "ASC", ...(undefined != null ? { @@ -33827,7 +27471,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33837,11 +27481,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "DESC", ...(undefined != null ? { @@ -33849,7 +27490,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33859,11 +27500,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "ASC", ...(undefined != null ? { @@ -33871,7 +27509,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33881,11 +27519,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "DESC", ...(undefined != null ? { @@ -33893,7 +27528,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33903,11 +27538,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "ASC", ...(undefined != null ? { @@ -33915,7 +27547,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33925,11 +27557,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "DESC", ...(undefined != null ? { @@ -33937,7 +27566,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33947,11 +27576,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "ASC", ...(undefined != null ? { @@ -33959,7 +27585,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33969,11 +27595,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "DESC", ...(undefined != null ? { @@ -33981,7 +27604,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33991,11 +27614,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "ASC", ...(undefined != null ? { @@ -34003,7 +27623,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34013,11 +27633,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "DESC", ...(undefined != null ? { @@ -34025,7 +27642,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34035,11 +27652,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "ASC", ...(undefined != null ? { @@ -34047,7 +27661,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34057,11 +27671,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "DESC", ...(undefined != null ? { @@ -34069,7 +27680,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34079,11 +27690,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "ASC", ...(undefined != null ? { @@ -34091,7 +27699,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34101,11 +27709,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "DESC", ...(undefined != null ? { @@ -34113,7 +27718,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34123,11 +27728,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "ASC", ...(undefined != null ? { @@ -34135,7 +27737,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34145,11 +27747,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "DESC", ...(undefined != null ? { @@ -34157,7 +27756,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34167,11 +27766,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "ASC", ...(undefined != null ? { @@ -34179,7 +27775,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34189,11 +27785,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "DESC", ...(undefined != null ? { @@ -34201,7 +27794,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34211,11 +27804,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "ASC", ...(undefined != null ? { @@ -34223,7 +27813,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34233,11 +27823,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "DESC", ...(undefined != null ? { @@ -34245,7 +27832,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34255,11 +27842,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "ASC", ...(undefined != null ? { @@ -34267,7 +27851,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34277,11 +27861,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "DESC", ...(undefined != null ? { @@ -34289,7 +27870,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34299,11 +27880,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "ASC", ...(undefined != null ? { @@ -34311,7 +27889,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34321,11 +27899,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "DESC", ...(undefined != null ? { @@ -34333,7 +27908,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34343,11 +27918,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "ASC", ...(undefined != null ? { @@ -34355,7 +27927,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34365,11 +27937,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "DESC", ...(undefined != null ? { @@ -34377,7 +27946,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34387,11 +27956,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "ASC", ...(undefined != null ? { @@ -34399,7 +27965,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34409,11 +27975,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "DESC", ...(undefined != null ? { @@ -34421,7 +27984,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34431,11 +27994,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "ASC", ...(undefined != null ? { @@ -34443,7 +28003,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34453,11 +28013,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "DESC", ...(undefined != null ? { @@ -34465,7 +28022,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34475,11 +28032,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34487,7 +28041,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34497,11 +28051,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34509,7 +28060,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34519,11 +28070,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34531,7 +28079,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34541,11 +28089,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34553,7 +28098,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34563,11 +28108,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34575,7 +28117,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34585,11 +28127,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34597,7 +28136,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34607,11 +28146,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "ASC", ...(undefined != null ? { @@ -34619,7 +28155,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34629,11 +28165,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "DESC", ...(undefined != null ? { @@ -34641,7 +28174,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34651,11 +28184,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "ASC", ...(undefined != null ? { @@ -34663,7 +28193,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34673,11 +28203,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "DESC", ...(undefined != null ? { @@ -34685,7 +28212,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34695,11 +28222,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -34707,7 +28231,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34717,11 +28241,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -34729,7 +28250,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34739,11 +28260,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -34751,7 +28269,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34761,11 +28279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -34773,7 +28288,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34783,11 +28298,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -34795,7 +28307,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34805,11 +28317,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -34817,7 +28326,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34827,11 +28336,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "ASC", ...(undefined != null ? { @@ -34839,7 +28345,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34849,11 +28355,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "DESC", ...(undefined != null ? { @@ -34861,7 +28364,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34871,11 +28374,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "ASC", ...(undefined != null ? { @@ -34883,7 +28383,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34893,11 +28393,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "DESC", ...(undefined != null ? { @@ -34905,7 +28402,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34915,11 +28412,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "ASC", ...(undefined != null ? { @@ -34927,7 +28421,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34937,11 +28431,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "DESC", ...(undefined != null ? { @@ -34949,7 +28440,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34959,11 +28450,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "ASC", ...(undefined != null ? { @@ -34971,7 +28459,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34981,11 +28469,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "DESC", ...(undefined != null ? { @@ -34993,7 +28478,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35003,11 +28488,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "ASC", ...(undefined != null ? { @@ -35015,7 +28497,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35025,11 +28507,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "DESC", ...(undefined != null ? { @@ -35037,7 +28516,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35047,11 +28526,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "ASC", ...(undefined != null ? { @@ -35059,7 +28535,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35069,11 +28545,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "DESC", ...(undefined != null ? { @@ -35081,7 +28554,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35091,11 +28564,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "ASC", ...(undefined != null ? { @@ -35103,7 +28573,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35113,11 +28583,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "DESC", ...(undefined != null ? { @@ -35125,7 +28592,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35135,11 +28602,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "ASC", ...(undefined != null ? { @@ -35147,7 +28611,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35157,11 +28621,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "DESC", ...(undefined != null ? { @@ -35169,7 +28630,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35179,11 +28640,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "ASC", ...(undefined != null ? { @@ -35191,7 +28649,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35201,11 +28659,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "DESC", ...(undefined != null ? { @@ -35213,7 +28668,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35222,8 +28677,8 @@ export const plans = { }, TypeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35236,17 +28691,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, smallint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "smallint", @@ -35259,17 +28712,15 @@ export const plans = { type: "attribute", attribute: "smallint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.smallint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, bigint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "bigint", @@ -35282,17 +28733,15 @@ export const plans = { type: "attribute", attribute: "bigint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.bigint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numeric: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numeric", @@ -35305,17 +28754,15 @@ export const plans = { type: "attribute", attribute: "numeric", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numeric.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, decimal: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "decimal", @@ -35328,17 +28775,15 @@ export const plans = { type: "attribute", attribute: "decimal", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.decimal.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, boolean: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "boolean", @@ -35351,17 +28796,15 @@ export const plans = { type: "attribute", attribute: "boolean", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.boolean.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, varchar: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "varchar", @@ -35374,17 +28817,15 @@ export const plans = { type: "attribute", attribute: "varchar", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.varchar.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum", @@ -35397,17 +28838,15 @@ export const plans = { type: "attribute", attribute: "enum", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -35420,17 +28859,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain", @@ -35443,17 +28880,15 @@ export const plans = { type: "attribute", attribute: "domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain2", @@ -35466,17 +28901,15 @@ export const plans = { type: "attribute", attribute: "domain2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anotherIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array", @@ -35489,17 +28922,15 @@ export const plans = { type: "attribute", attribute: "text_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, json: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json", @@ -35512,17 +28943,15 @@ export const plans = { type: "attribute", attribute: "json", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.json.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.json)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonb: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "jsonb", @@ -35535,17 +28964,15 @@ export const plans = { type: "attribute", attribute: "jsonb", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.jsonb.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_range", @@ -35558,17 +28985,15 @@ export const plans = { type: "attribute", attribute: "nullable_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numrange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numrange", @@ -35581,17 +29006,15 @@ export const plans = { type: "attribute", attribute: "numrange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numrange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, daterange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "daterange", @@ -35604,17 +29027,15 @@ export const plans = { type: "attribute", attribute: "daterange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.daterange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, daterangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, anIntRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "an_int_range", @@ -35627,17 +29048,15 @@ export const plans = { type: "attribute", attribute: "an_int_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.an_int_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntRangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamp", @@ -35650,17 +29069,15 @@ export const plans = { type: "attribute", attribute: "timestamp", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamp.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz", @@ -35673,17 +29090,15 @@ export const plans = { type: "attribute", attribute: "timestamptz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamptz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, date: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date", @@ -35696,17 +29111,15 @@ export const plans = { type: "attribute", attribute: "date", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.date.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.date)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, time: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "time", @@ -35719,17 +29132,15 @@ export const plans = { type: "attribute", attribute: "time", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.time.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.time)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timetz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timetz", @@ -35742,17 +29153,15 @@ export const plans = { type: "attribute", attribute: "timetz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timetz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timetz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, interval: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval", @@ -35765,17 +29174,15 @@ export const plans = { type: "attribute", attribute: "interval", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.interval)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intervalArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval_array", @@ -35788,17 +29195,15 @@ export const plans = { type: "attribute", attribute: "interval_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, intervalArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, money: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "money", @@ -35811,17 +29216,15 @@ export const plans = { type: "attribute", attribute: "money", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.money.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.money)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type", @@ -35834,17 +29237,15 @@ export const plans = { type: "attribute", attribute: "compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nested_compound_type", @@ -35857,17 +29258,15 @@ export const plans = { type: "attribute", attribute: "nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_compound_type", @@ -35880,17 +29279,15 @@ export const plans = { type: "attribute", attribute: "nullable_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableNestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_nested_compound_type", @@ -35903,17 +29300,15 @@ export const plans = { type: "attribute", attribute: "nullable_nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, point: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "point", @@ -35926,17 +29321,15 @@ export const plans = { type: "attribute", attribute: "point", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.point.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullablePoint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullablePoint", @@ -35949,17 +29342,15 @@ export const plans = { type: "attribute", attribute: "nullablePoint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullablePoint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -35972,17 +29363,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -35995,17 +29384,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -36018,17 +29405,15 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regproc: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regproc", @@ -36041,17 +29426,15 @@ export const plans = { type: "attribute", attribute: "regproc", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regproc.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regproc)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regprocedure: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regprocedure", @@ -36064,17 +29447,15 @@ export const plans = { type: "attribute", attribute: "regprocedure", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regprocedure.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regprocedure)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoper: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoper", @@ -36087,17 +29468,15 @@ export const plans = { type: "attribute", attribute: "regoper", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoper.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoper)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoperator: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoperator", @@ -36110,17 +29489,15 @@ export const plans = { type: "attribute", attribute: "regoperator", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoperator.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoperator)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regclass: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regclass", @@ -36133,17 +29510,15 @@ export const plans = { type: "attribute", attribute: "regclass", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regclass.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regclass)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regtype: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regtype", @@ -36156,17 +29531,15 @@ export const plans = { type: "attribute", attribute: "regtype", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regtype.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regtype)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regconfig: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regconfig", @@ -36179,17 +29552,15 @@ export const plans = { type: "attribute", attribute: "regconfig", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regconfig.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regconfig)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regdictionary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regdictionary", @@ -36202,17 +29573,15 @@ export const plans = { type: "attribute", attribute: "regdictionary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regdictionary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regdictionary)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array_domain", @@ -36225,17 +29594,15 @@ export const plans = { type: "attribute", attribute: "text_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, int8ArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int8_array_domain", @@ -36248,17 +29615,15 @@ export const plans = { type: "attribute", attribute: "int8_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.int8_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int8ArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltree: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree", @@ -36271,17 +29636,15 @@ export const plans = { type: "attribute", attribute: "ltree", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_codec_ltree)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltreeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree_array", @@ -36294,13 +29657,11 @@ export const plans = { type: "attribute", attribute: "ltree_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_array_codec_ltree_)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BigFloatRangeInput: { @@ -36328,29 +29689,30 @@ export const plans = { inclusive: undefined }, NestedCompoundTypeInput: { - "__inputPlan": function NestedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, bazBuz: { - applyPlan($insert, val) { - $insert.set("baz_buz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("baz_buz", bakedInputRuntime(schema, field.type, val)); + } } }, PointInput: { @@ -36383,26 +29745,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36415,14 +29769,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36435,14 +29789,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36455,14 +29809,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36475,19 +29829,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36496,19 +29848,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36517,11 +29867,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36529,7 +29876,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36539,11 +29886,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36551,7 +29895,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36561,11 +29905,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -36573,7 +29914,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36583,11 +29924,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -36595,7 +29933,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36605,11 +29943,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -36617,7 +29952,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36627,11 +29962,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -36639,7 +29971,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36649,11 +29981,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -36661,7 +29990,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36671,11 +30000,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -36683,7 +30009,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36693,11 +30019,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -36705,7 +30028,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36715,11 +30038,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -36727,7 +30047,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36737,11 +30057,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -36749,7 +30066,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36759,11 +30076,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -36771,7 +30085,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36781,11 +30095,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -36793,7 +30104,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36803,11 +30114,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -36815,7 +30123,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36825,11 +30133,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -36837,7 +30142,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36847,11 +30152,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -36859,7 +30161,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36869,11 +30171,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -36881,7 +30180,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36891,11 +30190,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -36903,7 +30199,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36913,11 +30209,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -36925,7 +30218,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36935,11 +30228,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -36947,7 +30237,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37030,26 +30320,18 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_WITH_OPTIONAL_ARG_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -37062,14 +30344,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -37082,19 +30364,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37103,19 +30383,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37124,11 +30402,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37136,7 +30411,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37146,11 +30421,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37158,7 +30430,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37168,11 +30440,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "ASC", ...(undefined != null ? { @@ -37180,7 +30449,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37190,11 +30459,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "DESC", ...(undefined != null ? { @@ -37202,7 +30468,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37212,11 +30478,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -37224,7 +30487,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37234,11 +30497,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -37246,7 +30506,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37256,11 +30516,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -37268,7 +30525,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37278,11 +30535,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -37290,7 +30544,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37299,8 +30553,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37313,17 +30567,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, headline: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "headline", @@ -37336,17 +30588,15 @@ export const plans = { type: "attribute", attribute: "headline", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.headline.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -37359,17 +30609,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -37382,17 +30630,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enums: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enums", @@ -37405,17 +30651,15 @@ export const plans = { type: "attribute", attribute: "enums", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.enums.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anEnumArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, comptypes: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "comptypes", @@ -37428,47 +30672,46 @@ export const plans = { type: "attribute", attribute: "comptypes", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.comptypes.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, comptypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedWithOptionalArg: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_post_computed_with_optional_argPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_post_computed_with_optional_argPgResource.codec)}`); } } } }, ComptypeInput: { - "__inputPlan": function ComptypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, schedule: { - applyPlan($insert, val) { - $insert.set("schedule", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("schedule", bakedInputRuntime(schema, field.type, val)); + } }, isOptimised: { - applyPlan($insert, val) { - $insert.set("is_optimised", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_optimised", bakedInputRuntime(schema, field.type, val)); + } } }, ForeignKeysConnection: { @@ -37520,23 +30763,12 @@ export const plans = { } }, ForeignKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PERSON_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -37544,7 +30776,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37554,11 +30786,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -37566,7 +30795,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37576,11 +30805,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "ASC", ...(undefined != null ? { @@ -37588,7 +30814,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37598,11 +30824,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "DESC", ...(undefined != null ? { @@ -37610,7 +30833,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37620,11 +30843,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "ASC", ...(undefined != null ? { @@ -37632,7 +30852,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37642,11 +30862,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "DESC", ...(undefined != null ? { @@ -37654,7 +30871,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37663,8 +30880,8 @@ export const plans = { }, ForeignKeyCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -37677,17 +30894,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_1", @@ -37700,17 +30915,15 @@ export const plans = { type: "attribute", attribute: "compound_key_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_2", @@ -37723,13 +30936,11 @@ export const plans = { type: "attribute", attribute: "compound_key_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecret: { @@ -37800,31 +31011,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37833,19 +31034,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37854,11 +31053,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -37866,7 +31062,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37876,11 +31072,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -37888,7 +31081,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37898,11 +31091,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -37910,7 +31100,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37920,11 +31110,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -37932,7 +31119,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37942,11 +31129,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -37954,7 +31138,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37964,11 +31148,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -37976,7 +31157,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37985,8 +31166,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -37999,17 +31180,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -38022,17 +31201,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -38045,13 +31222,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTable: { @@ -38594,8 +31769,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -38608,17 +31783,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -38631,17 +31804,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -38654,17 +31825,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -38677,17 +31846,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -38700,17 +31867,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -38723,17 +31888,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -38746,17 +31909,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -38769,17 +31930,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -38792,17 +31951,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -38815,17 +31972,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -38838,40 +31993,38 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, NonUpdatableViewsConnection: { @@ -38906,23 +32059,12 @@ export const plans = { } }, NonUpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COLUMN_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "ASC", ...(undefined != null ? { @@ -38930,7 +32072,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38940,11 +32082,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "DESC", ...(undefined != null ? { @@ -38952,7 +32091,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38961,8 +32100,8 @@ export const plans = { }, NonUpdatableViewCondition: { column: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "?column?", @@ -38975,13 +32114,11 @@ export const plans = { type: "attribute", attribute: "?column?", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nonUpdatableView.attributes["?column?"].codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, InputsConnection: { @@ -39010,31 +32147,21 @@ export const plans = { } }, InputsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39043,19 +32170,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39064,11 +32189,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39076,7 +32198,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39086,11 +32208,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39098,7 +32217,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39107,8 +32226,8 @@ export const plans = { }, InputCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39121,13 +32240,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_inputs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PatchesConnection: { @@ -39156,31 +32273,21 @@ export const plans = { } }, PatchesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39189,19 +32296,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39210,11 +32315,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39222,7 +32324,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39232,11 +32334,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39244,7 +32343,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39253,8 +32352,8 @@ export const plans = { }, PatchCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39267,13 +32366,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_patchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedsConnection: { @@ -39302,31 +32399,21 @@ export const plans = { } }, ReservedsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39335,19 +32422,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39356,11 +32441,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39368,7 +32450,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39378,11 +32460,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39390,7 +32469,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39399,8 +32478,8 @@ export const plans = { }, ReservedCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39413,13 +32492,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedPatchRecordsConnection: { @@ -39448,31 +32525,21 @@ export const plans = { } }, ReservedPatchRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39481,19 +32548,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39502,11 +32567,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39514,7 +32576,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39524,11 +32586,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39536,7 +32595,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39545,8 +32604,8 @@ export const plans = { }, ReservedPatchRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39559,13 +32618,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedPatchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedInputRecordsConnection: { @@ -39594,31 +32651,21 @@ export const plans = { } }, ReservedInputRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39627,19 +32674,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39648,11 +32693,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39660,7 +32702,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39670,11 +32712,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39682,7 +32721,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39691,8 +32730,8 @@ export const plans = { }, ReservedInputRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39705,13 +32744,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedInput.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, DefaultValuesConnection: { @@ -39740,31 +32777,21 @@ export const plans = { } }, DefaultValuesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39773,19 +32800,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39794,11 +32819,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39806,7 +32828,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39816,11 +32838,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39828,7 +32847,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39838,11 +32857,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "ASC", ...(undefined != null ? { @@ -39850,7 +32866,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39860,11 +32876,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "DESC", ...(undefined != null ? { @@ -39872,7 +32885,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39881,8 +32894,8 @@ export const plans = { }, DefaultValueCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39895,17 +32908,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullValue: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "null_value", @@ -39918,13 +32929,11 @@ export const plans = { type: "attribute", attribute: "null_value", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.null_value.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NoPrimaryKeysConnection: { @@ -39953,23 +32962,12 @@ export const plans = { } }, NoPrimaryKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39977,7 +32975,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39987,11 +32985,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39999,7 +32994,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40009,11 +33004,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "ASC", ...(undefined != null ? { @@ -40021,7 +33013,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40031,11 +33023,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "DESC", ...(undefined != null ? { @@ -40043,7 +33032,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40052,8 +33041,8 @@ export const plans = { }, NoPrimaryKeyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40066,17 +33055,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, str: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str", @@ -40089,13 +33076,11 @@ export const plans = { type: "attribute", attribute: "str", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.str.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TestviewsConnection: { @@ -40136,23 +33121,12 @@ export const plans = { } }, TestviewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, TESTVIEWID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "ASC", ...(undefined != null ? { @@ -40160,7 +33134,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40170,11 +33144,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "DESC", ...(undefined != null ? { @@ -40182,7 +33153,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40192,11 +33163,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40204,7 +33172,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40214,11 +33182,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40226,7 +33191,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40236,11 +33201,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40248,7 +33210,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40258,11 +33220,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40270,7 +33229,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40279,8 +33238,8 @@ export const plans = { }, TestviewCondition: { testviewid: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "testviewid", @@ -40293,17 +33252,15 @@ export const plans = { type: "attribute", attribute: "testviewid", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.testviewid.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -40316,17 +33273,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -40339,13 +33294,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTablesConnection: { @@ -40374,31 +33327,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40407,19 +33350,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40428,11 +33369,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40440,7 +33378,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40450,11 +33388,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40462,7 +33397,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40472,11 +33407,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -40484,7 +33416,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40494,11 +33426,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -40506,7 +33435,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40515,8 +33444,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40529,17 +33458,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -40552,13 +33479,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -40587,31 +33512,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40620,19 +33535,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40641,11 +33554,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -40653,7 +33563,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40663,11 +33573,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -40675,7 +33582,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40685,11 +33592,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -40697,7 +33601,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40707,11 +33611,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -40719,7 +33620,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40728,8 +33629,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -40742,17 +33643,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -40765,13 +33664,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ViewTablesConnection: { @@ -40800,31 +33697,21 @@ export const plans = { } }, ViewTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40833,19 +33720,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40854,11 +33739,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40866,7 +33748,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40876,11 +33758,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40888,7 +33767,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40898,11 +33777,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40910,7 +33786,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40920,11 +33796,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40932,7 +33805,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40942,11 +33815,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40954,7 +33824,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40964,11 +33834,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40976,7 +33843,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40985,8 +33852,8 @@ export const plans = { }, ViewTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40999,17 +33866,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41022,17 +33887,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41045,13 +33908,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable1SConnection: { @@ -41080,31 +33941,21 @@ export const plans = { } }, SimilarTable1SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41113,19 +33964,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41134,11 +33983,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41146,7 +33992,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41156,11 +34002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41168,7 +34011,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41178,11 +34021,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -41190,7 +34030,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41200,11 +34040,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -41212,7 +34049,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41222,11 +34059,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -41234,7 +34068,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41244,11 +34078,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -41256,7 +34087,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41266,11 +34097,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41278,7 +34106,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41288,11 +34116,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41300,7 +34125,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41309,8 +34134,8 @@ export const plans = { }, SimilarTable1Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41323,17 +34148,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41346,17 +34169,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41369,17 +34190,15 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41392,13 +34211,11 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable2SConnection: { @@ -41427,31 +34244,21 @@ export const plans = { } }, SimilarTable2SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41460,19 +34267,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41481,11 +34286,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41493,7 +34295,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41503,11 +34305,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41515,7 +34314,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41525,11 +34324,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41537,7 +34333,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41547,11 +34343,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41559,7 +34352,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41569,11 +34362,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "ASC", ...(undefined != null ? { @@ -41581,7 +34371,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41591,11 +34381,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "DESC", ...(undefined != null ? { @@ -41603,7 +34390,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41613,11 +34400,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "ASC", ...(undefined != null ? { @@ -41625,7 +34409,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41635,11 +34419,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "DESC", ...(undefined != null ? { @@ -41647,7 +34428,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41656,8 +34437,8 @@ export const plans = { }, SimilarTable2Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41670,17 +34451,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41693,17 +34472,15 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col4: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col4", @@ -41716,17 +34493,15 @@ export const plans = { type: "attribute", attribute: "col4", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col4.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col5: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col5", @@ -41739,13 +34514,11 @@ export const plans = { type: "attribute", attribute: "col5", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col5.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UpdatableViewsConnection: { @@ -41789,23 +34562,12 @@ export const plans = { } }, UpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, X_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "ASC", ...(undefined != null ? { @@ -41813,7 +34575,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41823,11 +34585,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "DESC", ...(undefined != null ? { @@ -41835,7 +34594,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41845,11 +34604,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -41857,7 +34613,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41867,11 +34623,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -41879,7 +34632,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41889,11 +34642,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -41901,7 +34651,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41911,11 +34661,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -41923,7 +34670,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41933,11 +34680,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "ASC", ...(undefined != null ? { @@ -41945,7 +34689,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41955,11 +34699,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "DESC", ...(undefined != null ? { @@ -41967,7 +34708,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41976,8 +34717,8 @@ export const plans = { }, UpdatableViewCondition: { x: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "x", @@ -41990,17 +34731,15 @@ export const plans = { type: "attribute", attribute: "x", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.x.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -42013,17 +34752,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -42036,17 +34773,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constant: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constant", @@ -42059,13 +34794,11 @@ export const plans = { type: "attribute", attribute: "constant", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.constant.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -42094,31 +34827,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42127,19 +34850,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42148,11 +34869,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42160,7 +34878,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42170,11 +34888,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42182,7 +34897,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42192,11 +34907,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -42204,7 +34916,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42214,11 +34926,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -42226,7 +34935,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42236,11 +34945,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -42248,7 +34954,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42258,11 +34964,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -42270,7 +34973,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42280,11 +34983,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -42292,7 +34992,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42302,11 +35002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -42314,7 +35011,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42323,8 +35020,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42337,17 +35034,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -42360,17 +35055,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -42383,17 +35076,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -42406,13 +35097,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -42437,7 +35126,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs79(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -42452,27 +35141,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -42497,23 +35180,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -42521,7 +35193,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42531,11 +35203,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -42543,7 +35212,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42553,11 +35222,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -42565,7 +35231,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42575,11 +35241,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -42587,7 +35250,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42597,11 +35260,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -42609,7 +35269,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42619,11 +35279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -42631,7 +35288,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42640,8 +35297,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -42654,17 +35311,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -42677,17 +35332,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -42700,13 +35353,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -42735,31 +35386,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42768,19 +35409,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42789,11 +35428,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42801,7 +35437,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42811,11 +35447,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42823,7 +35456,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42833,11 +35466,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -42845,7 +35475,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42855,11 +35485,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -42867,7 +35494,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42877,11 +35504,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -42889,7 +35513,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42899,11 +35523,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -42911,7 +35532,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42921,11 +35542,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -42933,7 +35551,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42943,11 +35561,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -42955,7 +35570,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42964,8 +35579,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42978,17 +35593,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -43001,17 +35614,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -43024,17 +35635,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -43047,13 +35656,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -43082,31 +35689,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43115,19 +35712,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43136,11 +35731,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43148,7 +35740,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43158,11 +35750,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43170,7 +35759,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43180,11 +35769,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -43192,7 +35778,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43202,11 +35788,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -43214,7 +35797,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43223,8 +35806,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43237,17 +35820,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -43260,13 +35841,11 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ListsConnection: { @@ -43295,31 +35874,21 @@ export const plans = { } }, ListsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43328,19 +35897,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43349,11 +35916,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43361,7 +35925,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43371,11 +35935,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43383,7 +35944,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43392,8 +35953,8 @@ export const plans = { }, ListCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43406,17 +35967,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array", @@ -43429,17 +35988,15 @@ export const plans = { type: "attribute", attribute: "int_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array_nn", @@ -43452,17 +36009,15 @@ export const plans = { type: "attribute", attribute: "int_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -43475,17 +36030,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array_nn", @@ -43498,17 +36051,15 @@ export const plans = { type: "attribute", attribute: "enum_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array", @@ -43521,17 +36072,15 @@ export const plans = { type: "attribute", attribute: "date_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array_nn", @@ -43544,17 +36093,15 @@ export const plans = { type: "attribute", attribute: "date_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array", @@ -43567,17 +36114,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array_nn", @@ -43590,17 +36135,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array", @@ -43613,17 +36156,15 @@ export const plans = { type: "attribute", attribute: "compound_type_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array_nn", @@ -43636,20 +36177,18 @@ export const plans = { type: "attribute", attribute: "compound_type_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs80(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43659,9 +36198,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43669,7 +36217,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs81(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43679,9 +36227,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43689,7 +36246,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs82(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43699,9 +36256,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43709,7 +36275,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs83(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43719,9 +36285,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43729,7 +36304,7 @@ export const plans = { }, returnVoidMutation: { plan($root, args, _info) { - const selectArgs = makeArgs84(args, ["input"]); + const selectArgs = makeArgs_return_void_mutation(args, ["input"]); const $result = resource_return_void_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43739,9 +36314,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43749,7 +36333,7 @@ export const plans = { }, mutationIntervalSet: { plan($root, args, _info) { - const selectArgs = makeArgs85(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_set(args, ["input"]); const $result = resource_mutation_interval_setPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43759,9 +36343,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43769,7 +36362,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs86(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43779,9 +36372,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43789,7 +36391,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs87(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43799,9 +36401,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43809,7 +36420,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs88(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43819,9 +36430,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43829,7 +36449,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs89(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43839,9 +36459,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43849,7 +36478,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs90(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43859,9 +36488,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43869,7 +36507,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs91(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43879,9 +36517,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43889,7 +36536,7 @@ export const plans = { }, add1Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs92(args, ["input"]); + const selectArgs = makeArgs_add_1_mutation(args, ["input"]); const $result = resource_add_1_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43899,9 +36546,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43909,7 +36565,7 @@ export const plans = { }, add2Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs93(args, ["input"]); + const selectArgs = makeArgs_add_2_mutation(args, ["input"]); const $result = resource_add_2_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43919,9 +36575,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43929,7 +36594,7 @@ export const plans = { }, add3Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs94(args, ["input"]); + const selectArgs = makeArgs_add_3_mutation(args, ["input"]); const $result = resource_add_3_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43939,9 +36604,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43949,7 +36623,7 @@ export const plans = { }, add4Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs95(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation(args, ["input"]); const $result = resource_add_4_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43959,9 +36633,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43969,7 +36652,7 @@ export const plans = { }, add4MutationError: { plan($root, args, _info) { - const selectArgs = makeArgs96(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation_error(args, ["input"]); const $result = resource_add_4_mutation_errorPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43979,9 +36662,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43989,7 +36681,7 @@ export const plans = { }, mult1: { plan($root, args, _info) { - const selectArgs = makeArgs97(args, ["input"]); + const selectArgs = makeArgs_mult_1(args, ["input"]); const $result = resource_mult_1PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43999,9 +36691,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44009,7 +36710,7 @@ export const plans = { }, mult2: { plan($root, args, _info) { - const selectArgs = makeArgs98(args, ["input"]); + const selectArgs = makeArgs_mult_2(args, ["input"]); const $result = resource_mult_2PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44019,9 +36720,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44029,7 +36739,7 @@ export const plans = { }, mult3: { plan($root, args, _info) { - const selectArgs = makeArgs99(args, ["input"]); + const selectArgs = makeArgs_mult_3(args, ["input"]); const $result = resource_mult_3PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44039,9 +36749,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44049,7 +36768,7 @@ export const plans = { }, mult4: { plan($root, args, _info) { - const selectArgs = makeArgs100(args, ["input"]); + const selectArgs = makeArgs_mult_4(args, ["input"]); const $result = resource_mult_4PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44059,9 +36778,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44069,7 +36797,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs101(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44079,9 +36807,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44089,7 +36826,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs102(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44099,9 +36836,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44109,7 +36855,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs103(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44119,9 +36865,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44129,7 +36884,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs104(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44139,9 +36894,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44149,7 +36913,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs105(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44159,9 +36923,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44169,7 +36942,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs106(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44179,9 +36952,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44189,7 +36971,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs107(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44199,9 +36981,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44209,7 +37000,7 @@ export const plans = { }, guidFn: { plan($root, args, _info) { - const selectArgs = makeArgs108(args, ["input"]); + const selectArgs = makeArgs_guid_fn(args, ["input"]); const $result = resource_guid_fnPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44219,9 +37010,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44229,7 +37029,7 @@ export const plans = { }, mutationIntervalArray: { plan($root, args, _info) { - const selectArgs = makeArgs109(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_array(args, ["input"]); const $result = resource_mutation_interval_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44239,9 +37039,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44249,7 +37058,7 @@ export const plans = { }, mutationTextArray: { plan($root, args, _info) { - const selectArgs = makeArgs110(args, ["input"]); + const selectArgs = makeArgs_mutation_text_array(args, ["input"]); const $result = resource_mutation_text_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44259,9 +37068,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44269,7 +37087,7 @@ export const plans = { }, listBdeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs111(args, ["input"]); + const selectArgs = makeArgs_list_bde_mutation(args, ["input"]); const $result = resource_list_bde_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44279,9 +37097,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44289,7 +37116,7 @@ export const plans = { }, authenticateFail: { plan($root, args, _info) { - const selectArgs = makeArgs112(args, ["input"]); + const selectArgs = makeArgs_authenticate_fail(args, ["input"]); const $result = resource_authenticate_failPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44299,9 +37126,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44309,7 +37145,7 @@ export const plans = { }, authenticate: { plan($root, args, _info) { - const selectArgs = makeArgs113(args, ["input"]); + const selectArgs = makeArgs_authenticate(args, ["input"]); const $result = resource_authenticatePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44319,9 +37155,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44329,7 +37174,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs114(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44339,9 +37184,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44349,7 +37203,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs115(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44359,9 +37213,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44369,7 +37232,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs116(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44379,9 +37242,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44389,7 +37261,7 @@ export const plans = { }, authenticateMany: { plan($root, args, _info) { - const selectArgs = makeArgs117(args, ["input"]); + const selectArgs = makeArgs_authenticate_many(args, ["input"]); const $result = resource_authenticate_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44399,9 +37271,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44409,7 +37290,7 @@ export const plans = { }, authenticatePayload: { plan($root, args, _info) { - const selectArgs = makeArgs118(args, ["input"]); + const selectArgs = makeArgs_authenticate_payload(args, ["input"]); const $result = resource_authenticate_payloadPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44419,9 +37300,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44429,7 +37319,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs119(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44439,9 +37329,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44449,7 +37348,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs120(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44459,9 +37358,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44469,7 +37377,7 @@ export const plans = { }, compoundTypeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs121(args, ["input"]); + const selectArgs = makeArgs_compound_type_mutation(args, ["input"]); const $result = resource_compound_type_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44479,9 +37387,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44489,7 +37406,7 @@ export const plans = { }, compoundTypeSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs122(args, ["input"]); + const selectArgs = makeArgs_compound_type_set_mutation(args, ["input"]); const $result = resource_compound_type_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44499,9 +37416,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44509,7 +37435,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs123(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44519,9 +37445,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44529,7 +37464,7 @@ export const plans = { }, postWithSuffix: { plan($root, args, _info) { - const selectArgs = makeArgs124(args, ["input"]); + const selectArgs = makeArgs_post_with_suffix(args, ["input"]); const $result = resource_post_with_suffixPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44539,9 +37474,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44549,7 +37493,7 @@ export const plans = { }, mutationCompoundTypeArray: { plan($root, args, _info) { - const selectArgs = makeArgs125(args, ["input"]); + const selectArgs = makeArgs_mutation_compound_type_array(args, ["input"]); const $result = resource_mutation_compound_type_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44559,9 +37503,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44569,7 +37522,7 @@ export const plans = { }, compoundTypeArrayMutation: { plan($root, args, _info) { - const selectArgs = makeArgs126(args, ["input"]); + const selectArgs = makeArgs_compound_type_array_mutation(args, ["input"]); const $result = resource_compound_type_array_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44579,9 +37532,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44589,7 +37551,7 @@ export const plans = { }, postMany: { plan($root, args, _info) { - const selectArgs = makeArgs127(args, ["input"]); + const selectArgs = makeArgs_post_many(args, ["input"]); const $result = resource_post_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44599,9 +37561,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44609,7 +37580,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs128(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44619,9 +37590,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44629,7 +37609,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs129(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44639,9 +37619,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44649,7 +37638,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs130(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44659,9 +37648,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44669,7 +37667,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs131(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44679,9 +37677,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44689,7 +37696,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs132(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44699,9 +37706,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44709,7 +37725,7 @@ export const plans = { }, typeFunctionConnectionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs133(args, ["input"]); + const selectArgs = makeArgs_type_function_connection_mutation(args, ["input"]); const $result = resource_type_function_connection_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44719,9 +37735,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44729,7 +37754,7 @@ export const plans = { }, typeFunctionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs134(args, ["input"]); + const selectArgs = makeArgs_type_function_mutation(args, ["input"]); const $result = resource_type_function_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44739,9 +37764,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44749,7 +37783,7 @@ export const plans = { }, typeFunctionListMutation: { plan($root, args, _info) { - const selectArgs = makeArgs135(args, ["input"]); + const selectArgs = makeArgs_type_function_list_mutation(args, ["input"]); const $result = resource_type_function_list_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44759,9 +37793,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44769,17 +37812,17 @@ export const plans = { }, createInput: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_inputsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_inputsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44789,17 +37832,17 @@ export const plans = { }, createPatch: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_patchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_patchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44809,17 +37852,17 @@ export const plans = { }, createReserved: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44829,17 +37872,17 @@ export const plans = { }, createReservedPatchRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44849,17 +37892,17 @@ export const plans = { }, createReservedInputRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44869,17 +37912,17 @@ export const plans = { }, createDefaultValue: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44889,17 +37932,17 @@ export const plans = { }, createForeignKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44909,17 +37952,17 @@ export const plans = { }, createNoPrimaryKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44929,17 +37972,17 @@ export const plans = { }, createTestview: { plan(_, args) { + const $insert = pgInsertSingle(resource_testviewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_testviewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44949,17 +37992,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44969,17 +38012,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44989,17 +38032,17 @@ export const plans = { }, createViewTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45009,17 +38052,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45029,17 +38072,17 @@ export const plans = { }, createSimilarTable1: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45049,17 +38092,17 @@ export const plans = { }, createSimilarTable2: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45069,17 +38112,17 @@ export const plans = { }, createUpdatableView: { plan(_, args) { + const $insert = pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45089,17 +38132,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45109,17 +38152,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45129,17 +38172,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45149,17 +38192,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45169,17 +38212,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45189,17 +38232,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45209,17 +38252,17 @@ export const plans = { }, createList: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_listsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_listsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45229,17 +38272,17 @@ export const plans = { }, createType: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45249,11 +38292,11 @@ export const plans = { }, updateInput: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45268,13 +38311,13 @@ export const plans = { }, updateInputById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45289,11 +38332,11 @@ export const plans = { }, updatePatch: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45308,13 +38351,13 @@ export const plans = { }, updatePatchById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45329,11 +38372,11 @@ export const plans = { }, updateReserved: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45348,13 +38391,13 @@ export const plans = { }, updateReservedById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45369,11 +38412,11 @@ export const plans = { }, updateReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45388,13 +38431,13 @@ export const plans = { }, updateReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45409,11 +38452,11 @@ export const plans = { }, updateReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45428,13 +38471,13 @@ export const plans = { }, updateReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45449,11 +38492,11 @@ export const plans = { }, updateDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45468,13 +38511,13 @@ export const plans = { }, updateDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45489,13 +38532,13 @@ export const plans = { }, updateNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45510,11 +38553,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45529,13 +38572,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45550,11 +38593,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45569,13 +38612,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45590,11 +38633,11 @@ export const plans = { }, updateViewTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45609,13 +38652,13 @@ export const plans = { }, updateViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45630,11 +38673,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45649,14 +38692,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45671,11 +38714,11 @@ export const plans = { }, updateSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45690,13 +38733,13 @@ export const plans = { }, updateSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45711,11 +38754,11 @@ export const plans = { }, updateSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45730,13 +38773,13 @@ export const plans = { }, updateSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45751,11 +38794,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45770,13 +38813,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45791,11 +38834,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45810,13 +38853,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45831,13 +38874,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45852,11 +38895,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45871,13 +38914,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45892,11 +38935,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45911,13 +38954,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45932,11 +38975,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45951,13 +38994,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45972,13 +39015,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45993,11 +39036,11 @@ export const plans = { }, updateList: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)) + const $update = pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46012,13 +39055,13 @@ export const plans = { }, updateListById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46033,11 +39076,11 @@ export const plans = { }, updateType: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)) + const $update = pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46052,13 +39095,13 @@ export const plans = { }, updateTypeById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46073,11 +39116,11 @@ export const plans = { }, deleteInput: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46092,13 +39135,13 @@ export const plans = { }, deleteInputById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46113,11 +39156,11 @@ export const plans = { }, deletePatch: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46132,13 +39175,13 @@ export const plans = { }, deletePatchById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46153,11 +39196,11 @@ export const plans = { }, deleteReserved: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46172,13 +39215,13 @@ export const plans = { }, deleteReservedById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46193,11 +39236,11 @@ export const plans = { }, deleteReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46212,13 +39255,13 @@ export const plans = { }, deleteReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46233,11 +39276,11 @@ export const plans = { }, deleteReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46252,13 +39295,13 @@ export const plans = { }, deleteReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46273,11 +39316,11 @@ export const plans = { }, deleteDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46292,13 +39335,13 @@ export const plans = { }, deleteDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46313,13 +39356,13 @@ export const plans = { }, deleteNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46334,11 +39377,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46353,13 +39396,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46374,11 +39417,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46393,13 +39436,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46414,11 +39457,11 @@ export const plans = { }, deleteViewTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46433,13 +39476,13 @@ export const plans = { }, deleteViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46454,11 +39497,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46473,14 +39516,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46495,11 +39538,11 @@ export const plans = { }, deleteSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46514,13 +39557,13 @@ export const plans = { }, deleteSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46535,11 +39578,11 @@ export const plans = { }, deleteSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46554,13 +39597,13 @@ export const plans = { }, deleteSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46575,11 +39618,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46594,13 +39637,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46615,11 +39658,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46634,13 +39677,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46655,13 +39698,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46676,11 +39719,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46695,13 +39738,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46716,11 +39759,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46735,13 +39778,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46756,11 +39799,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46775,13 +39818,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46796,13 +39839,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46817,11 +39860,11 @@ export const plans = { }, deleteList: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)) + const $delete = pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46836,13 +39879,13 @@ export const plans = { }, deleteListById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46857,11 +39900,11 @@ export const plans = { }, deleteType: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)) + const $delete = pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46876,13 +39919,13 @@ export const plans = { }, deleteTypeById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46899,7 +39942,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -46910,16 +39954,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -46930,16 +39974,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46950,16 +39994,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46970,16 +40014,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ReturnVoidMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, query() { return rootValue(); @@ -46987,16 +40031,16 @@ export const plans = { }, ReturnVoidMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationIntervalSetPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47007,16 +40051,16 @@ export const plans = { }, MutationIntervalSetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -47027,17 +40071,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -47048,17 +40092,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47069,17 +40113,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47090,17 +40134,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47111,17 +40155,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47132,17 +40176,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, Add1MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47153,10 +40197,9 @@ export const plans = { }, Add1MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47164,7 +40207,8 @@ export const plans = { Add2MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47175,10 +40219,9 @@ export const plans = { }, Add2MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -47186,7 +40229,8 @@ export const plans = { Add3MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47197,10 +40241,9 @@ export const plans = { }, Add3MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, arg1: undefined @@ -47208,7 +40251,8 @@ export const plans = { Add4MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47219,10 +40263,9 @@ export const plans = { }, Add4MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47230,7 +40273,8 @@ export const plans = { Add4MutationErrorPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47241,10 +40285,9 @@ export const plans = { }, Add4MutationErrorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47252,7 +40295,8 @@ export const plans = { Mult1Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47263,10 +40307,9 @@ export const plans = { }, Mult1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47274,7 +40317,8 @@ export const plans = { Mult2Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47285,10 +40329,9 @@ export const plans = { }, Mult2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47296,7 +40339,8 @@ export const plans = { Mult3Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47307,10 +40351,9 @@ export const plans = { }, Mult3Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47318,7 +40361,8 @@ export const plans = { Mult4Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47329,10 +40373,9 @@ export const plans = { }, Mult4Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47340,7 +40383,8 @@ export const plans = { MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -47351,10 +40395,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -47362,7 +40405,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47382,16 +40426,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47411,16 +40455,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47440,16 +40484,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -47460,10 +40504,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -47472,7 +40515,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47495,16 +40539,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47524,17 +40568,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, GuidFnPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, guid($object) { return $object.get("result"); @@ -47550,17 +40594,17 @@ export const plans = { }, GuidFnInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, g: undefined }, MutationIntervalArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47571,16 +40615,16 @@ export const plans = { }, MutationIntervalArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationTextArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, strings($object) { return $object.get("result"); @@ -47591,16 +40635,16 @@ export const plans = { }, MutationTextArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ListBdeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, uuids($object) { return $object.get("result"); @@ -47611,10 +40655,9 @@ export const plans = { }, ListBdeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, b: undefined, d: undefined, @@ -47623,7 +40666,8 @@ export const plans = { AuthenticateFailPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47652,16 +40696,16 @@ export const plans = { }, AuthenticateFailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticatePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47672,10 +40716,9 @@ export const plans = { }, AuthenticateInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47684,7 +40727,8 @@ export const plans = { LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -47692,7 +40736,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47708,9 +40752,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47726,50 +40768,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -47777,7 +40821,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47793,9 +40837,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47806,16 +40848,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -47826,16 +40868,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticateManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtTokens($object) { return $object.get("result"); @@ -47846,10 +40888,9 @@ export const plans = { }, AuthenticateManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47858,7 +40899,8 @@ export const plans = { AuthenticatePayloadPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, authPayload($object) { return $object.get("result"); @@ -47897,10 +40939,9 @@ export const plans = { }, AuthenticatePayloadInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47909,7 +40950,8 @@ export const plans = { TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -47920,10 +40962,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47935,7 +40976,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47961,17 +41003,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, CompoundTypeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundType($object) { return $object.get("result"); @@ -47982,17 +41024,17 @@ export const plans = { }, CompoundTypeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48003,17 +41045,17 @@ export const plans = { }, CompoundTypeSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48021,7 +41063,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48037,9 +41079,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48055,17 +41095,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, PostWithSuffixPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48073,7 +41113,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48089,9 +41129,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48107,65 +41145,69 @@ export const plans = { }, PostWithSuffixInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: undefined, suffix: undefined }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, MutationCompoundTypeArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48176,17 +41218,17 @@ export const plans = { }, MutationCompoundTypeArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeArrayMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48197,17 +41239,17 @@ export const plans = { }, CompoundTypeArrayMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, PostManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, posts($object) { return $object.get("result"); @@ -48218,17 +41260,17 @@ export const plans = { }, PostManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, posts: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -48263,10 +41305,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48274,7 +41315,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -48309,10 +41351,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48320,7 +41361,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -48328,7 +41370,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48344,9 +41386,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48357,16 +41397,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48377,16 +41417,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48397,16 +41437,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionConnectionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48417,16 +41457,16 @@ export const plans = { }, TypeFunctionConnectionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -48434,7 +41474,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48450,9 +41490,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48473,17 +41511,17 @@ export const plans = { }, TypeFunctionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, TypeFunctionListMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48494,16 +41532,16 @@ export const plans = { }, TypeFunctionListMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateInputPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -48511,7 +41549,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48527,9 +41565,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48540,35 +41576,34 @@ export const plans = { }, CreateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, input: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, InputInput: { - "__inputPlan": function InputInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePatchPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -48576,7 +41611,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48592,9 +41627,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48605,35 +41638,34 @@ export const plans = { }, CreatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PatchInput: { - "__inputPlan": function PatchInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -48641,7 +41673,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48657,9 +41689,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48670,35 +41700,34 @@ export const plans = { }, CreateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reserved: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInput: { - "__inputPlan": function ReservedInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPatchRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -48706,7 +41735,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48722,9 +41751,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48735,35 +41762,34 @@ export const plans = { }, CreateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedPatchRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedPatchRecordInput: { - "__inputPlan": function ReservedPatchRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedInputRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -48771,7 +41797,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48787,9 +41813,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48800,35 +41824,34 @@ export const plans = { }, CreateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedInputRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInputRecordInput: { - "__inputPlan": function ReservedInputRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateDefaultValuePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -48836,7 +41859,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48852,9 +41875,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48865,42 +41886,42 @@ export const plans = { }, CreateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, defaultValue: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, DefaultValueInput: { - "__inputPlan": function DefaultValueInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, CreateForeignKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, foreignKey($object) { return $object.get("result"); @@ -48922,49 +41943,50 @@ export const plans = { }, CreateForeignKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, foreignKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ForeignKeyInput: { - "__inputPlan": function ForeignKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey1: { - applyPlan($insert, val) { - $insert.set("compound_key_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_1", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey2: { - applyPlan($insert, val) { - $insert.set("compound_key_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNoPrimaryKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -48975,42 +41997,42 @@ export const plans = { }, CreateNoPrimaryKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, noPrimaryKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NoPrimaryKeyInput: { - "__inputPlan": function NoPrimaryKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTestviewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, testview($object) { return $object.get("result"); @@ -49021,49 +42043,50 @@ export const plans = { }, CreateTestviewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, testview: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TestviewInput: { - "__inputPlan": function TestviewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, testviewid: { - applyPlan($insert, val) { - $insert.set("testviewid", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("testviewid", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -49071,7 +42094,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49087,9 +42110,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49100,42 +42121,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -49143,7 +42164,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49159,9 +42180,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49177,42 +42196,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateViewTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -49220,7 +42239,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49236,9 +42255,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49249,49 +42266,50 @@ export const plans = { }, CreateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, viewTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ViewTableInput: { - "__inputPlan": function ViewTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -49299,7 +42317,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49315,9 +42333,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49338,49 +42354,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable1Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -49388,7 +42405,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49404,9 +42421,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49417,56 +42432,58 @@ export const plans = { }, CreateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable1: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable1Input: { - "__inputPlan": function SimilarTable1Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable2Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -49474,7 +42491,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49490,9 +42507,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49503,56 +42518,58 @@ export const plans = { }, CreateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable2: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable2Input: { - "__inputPlan": function SimilarTable2Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, CreateUpdatableViewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, updatableView($object) { return $object.get("result"); @@ -49563,56 +42580,58 @@ export const plans = { }, CreateUpdatableViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, updatableView: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UpdatableViewInput: { - "__inputPlan": function UpdatableViewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, x: { - applyPlan($insert, val) { - $insert.set("x", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("x", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } }, constant: { - applyPlan($insert, val) { - $insert.set("constant", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constant", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -49620,7 +42639,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49636,9 +42655,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49649,56 +42666,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -49709,49 +42728,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -49759,7 +42779,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49775,9 +42795,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49793,56 +42811,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -49850,7 +42870,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49866,9 +42886,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49879,42 +42897,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -49922,7 +42940,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49938,9 +42956,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49956,23 +42972,23 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -49980,7 +42996,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49996,9 +43012,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50009,105 +43023,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, CreateListPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -50115,7 +43138,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50131,9 +43154,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50144,119 +43165,130 @@ export const plans = { }, CreateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, list: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ListInput: { - "__inputPlan": function ListInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -50264,7 +43296,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50280,9 +43312,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50303,371 +43333,418 @@ export const plans = { }, CreateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, type: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TypeInput: { - "__inputPlan": function TypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -50675,7 +43752,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50691,9 +43768,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50704,48 +43779,50 @@ export const plans = { }, UpdateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, InputPatch: { - "__inputPlan": function InputPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -50753,7 +43830,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50769,9 +43846,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50782,48 +43857,50 @@ export const plans = { }, UpdatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PatchPatch: { - "__inputPlan": function PatchPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -50831,7 +43908,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50847,9 +43924,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50860,48 +43935,50 @@ export const plans = { }, UpdateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatch: { - "__inputPlan": function ReservedPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -50909,7 +43986,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50925,9 +44002,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50938,48 +44013,50 @@ export const plans = { }, UpdateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatchRecordPatch: { - "__inputPlan": function ReservedPatchRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -50987,7 +44064,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51003,9 +44080,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51016,48 +44091,50 @@ export const plans = { }, UpdateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedInputRecordPatch: { - "__inputPlan": function ReservedInputRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -51065,7 +44142,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51081,9 +44158,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51094,55 +44169,58 @@ export const plans = { }, UpdateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DefaultValuePatch: { - "__inputPlan": function DefaultValuePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -51153,41 +44231,43 @@ export const plans = { }, UpdateNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, noPrimaryKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NoPrimaryKeyPatch: { - "__inputPlan": function NoPrimaryKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -51195,7 +44275,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51211,9 +44291,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51224,55 +44302,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -51280,7 +44361,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51296,9 +44377,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51314,55 +44393,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -51370,7 +44452,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51386,9 +44468,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51399,62 +44479,66 @@ export const plans = { }, UpdateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ViewTablePatch: { - "__inputPlan": function ViewTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -51462,7 +44546,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51478,9 +44562,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51501,63 +44583,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -51565,7 +44651,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51581,9 +44667,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51594,69 +44678,74 @@ export const plans = { }, UpdateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable1Patch: { - "__inputPlan": function SimilarTable1Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -51664,7 +44753,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51680,9 +44769,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51693,69 +44780,74 @@ export const plans = { }, UpdateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable2Patch: { - "__inputPlan": function SimilarTable2Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -51763,7 +44855,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51779,9 +44871,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51792,69 +44882,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -51862,7 +44957,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51878,9 +44973,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51896,83 +44989,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -51980,7 +45079,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51996,9 +45095,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52009,55 +45106,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -52065,7 +45165,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52081,9 +45181,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52099,83 +45197,90 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -52183,7 +45288,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52199,9 +45304,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52212,132 +45315,145 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -52345,7 +45461,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52361,9 +45477,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52374,132 +45488,146 @@ export const plans = { }, UpdateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ListPatch: { - "__inputPlan": function ListPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -52507,7 +45635,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52523,9 +45651,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52546,384 +45672,434 @@ export const plans = { }, UpdateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TypePatch: { - "__inputPlan": function TypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -52936,7 +46112,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52952,9 +46128,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52965,16 +46139,16 @@ export const plans = { }, DeleteInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -52982,7 +46156,8 @@ export const plans = { DeletePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -52995,7 +46170,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53011,9 +46186,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53024,16 +46197,16 @@ export const plans = { }, DeletePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53041,7 +46214,8 @@ export const plans = { DeleteReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -53054,7 +46228,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53070,9 +46244,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53083,16 +46255,16 @@ export const plans = { }, DeleteReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53100,7 +46272,8 @@ export const plans = { DeleteReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -53113,7 +46286,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53129,9 +46302,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53142,16 +46313,16 @@ export const plans = { }, DeleteReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53159,7 +46330,8 @@ export const plans = { DeleteReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -53172,7 +46344,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53188,9 +46360,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53201,16 +46371,16 @@ export const plans = { }, DeleteReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53218,7 +46388,8 @@ export const plans = { DeleteDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -53231,7 +46402,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53247,9 +46418,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53260,16 +46429,16 @@ export const plans = { }, DeleteDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53277,7 +46446,8 @@ export const plans = { DeleteNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -53288,8 +46458,8 @@ export const plans = { }, DeleteNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53297,7 +46467,8 @@ export const plans = { DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -53310,7 +46481,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53326,9 +46497,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53339,16 +46508,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53356,7 +46525,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -53369,7 +46539,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53385,9 +46555,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53403,16 +46571,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53420,7 +46588,8 @@ export const plans = { DeleteViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -53433,7 +46602,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53449,9 +46618,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53462,16 +46629,16 @@ export const plans = { }, DeleteViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53479,7 +46646,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -53492,7 +46660,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53508,9 +46676,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53531,16 +46697,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -53549,7 +46715,8 @@ export const plans = { DeleteSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -53562,7 +46729,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53578,9 +46745,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53591,16 +46756,16 @@ export const plans = { }, DeleteSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53608,7 +46773,8 @@ export const plans = { DeleteSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -53621,7 +46787,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53637,9 +46803,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53650,16 +46814,16 @@ export const plans = { }, DeleteSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53667,7 +46831,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -53680,7 +46845,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53696,9 +46861,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53709,16 +46872,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53726,7 +46889,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -53739,7 +46903,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53755,9 +46919,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53773,24 +46935,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53798,7 +46960,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -53811,7 +46974,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53827,9 +46990,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53840,16 +47001,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53857,7 +47018,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -53870,7 +47032,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53886,9 +47048,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53904,16 +47064,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53921,7 +47081,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -53934,7 +47095,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53950,9 +47111,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53963,24 +47122,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined @@ -53988,7 +47147,8 @@ export const plans = { DeleteListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -54001,7 +47161,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54017,9 +47177,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54030,16 +47188,16 @@ export const plans = { }, DeleteListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -54047,7 +47205,8 @@ export const plans = { DeleteTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -54060,7 +47219,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54076,9 +47235,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54099,16 +47256,16 @@ export const plans = { }, DeleteTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/polymorphic-auto-add-types.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/polymorphic-auto-add-types.1.export.mjs index 846bd41fac..26aa35e691 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/polymorphic-auto-add-types.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/polymorphic-auto-add-types.1.export.mjs @@ -1,56 +1,28 @@ -import { PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, enumCodec, makeRegistry, pgClassExpression, pgSelectSingleFromRecord, pgUnionAll, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, SafeError, assertEdgeCapableStep, assertPageInfoCapableStep, connection, constant, context, getEnumValueConfig, makeGrafastSchema, object, rootValue, stepAMayDependOnStepB } from "grafast"; +import { PgExecutor, PgResource, PgSelectSingleStep, TYPES, assertPgClassSingleStep, enumCodec, makeRegistry, pgClassExpression, pgFromExpression, pgSelectSingleFromRecord, pgUnionAll, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, assertEdgeCapableStep, assertPageInfoCapableStep, bakedInput, connection, constant, context, lambda, makeGrafastSchema, object, rootValue, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_single_table_items_meaning_of_life = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_single_table_items_meaning_of_life = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life.map(details => makeArg(path, args, details)); const executor = new PgExecutor({ name: "main", context() { @@ -230,7 +202,7 @@ const spec_gcpApplicationThirdPartyVulnerabilities = { }; const gcpApplicationThirdPartyVulnerabilitiesCodec = recordCodec(spec_gcpApplicationThirdPartyVulnerabilities); const organizationsIdentifier = sql.identifier("polymorphic", "organizations"); -const spec_organizations = { +const organizationsCodec = recordCodec({ name: "organizations", identifier: organizationsIdentifier, attributes: { @@ -268,8 +240,7 @@ const spec_organizations = { } }, executor: executor -}; -const organizationsCodec = recordCodec(spec_organizations); +}); const peopleIdentifier = sql.identifier("polymorphic", "people"); const spec_people = { name: "people", @@ -537,7 +508,7 @@ const spec_relationalChecklists = { }; const relationalChecklistsCodec = recordCodec(spec_relationalChecklists); const relationalItemRelationCompositePksIdentifier = sql.identifier("polymorphic", "relational_item_relation_composite_pks"); -const spec_relationalItemRelationCompositePks = { +const relationalItemRelationCompositePksCodec = recordCodec({ name: "relationalItemRelationCompositePks", identifier: relationalItemRelationCompositePksIdentifier, attributes: { @@ -574,10 +545,9 @@ const spec_relationalItemRelationCompositePks = { } }, executor: executor -}; -const relationalItemRelationCompositePksCodec = recordCodec(spec_relationalItemRelationCompositePks); +}); const relationalTopicsIdentifier = sql.identifier("polymorphic", "relational_topics"); -const spec_relationalTopics = { +const relationalTopicsCodec = recordCodec({ name: "relationalTopics", identifier: relationalTopicsIdentifier, attributes: { @@ -725,10 +695,9 @@ const spec_relationalTopics = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalTopicsCodec = recordCodec(spec_relationalTopics); +}); const singleTableItemRelationCompositePksIdentifier = sql.identifier("polymorphic", "single_table_item_relation_composite_pks"); -const spec_singleTableItemRelationCompositePks = { +const singleTableItemRelationCompositePksCodec = recordCodec({ name: "singleTableItemRelationCompositePks", identifier: singleTableItemRelationCompositePksIdentifier, attributes: { @@ -765,10 +734,9 @@ const spec_singleTableItemRelationCompositePks = { } }, executor: executor -}; -const singleTableItemRelationCompositePksCodec = recordCodec(spec_singleTableItemRelationCompositePks); +}); const relationalChecklistItemsIdentifier = sql.identifier("polymorphic", "relational_checklist_items"); -const spec_relationalChecklistItems = { +const relationalChecklistItemsCodec = recordCodec({ name: "relationalChecklistItems", identifier: relationalChecklistItemsIdentifier, attributes: { @@ -925,10 +893,9 @@ const spec_relationalChecklistItems = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalChecklistItemsCodec = recordCodec(spec_relationalChecklistItems); +}); const relationalDividersIdentifier = sql.identifier("polymorphic", "relational_dividers"); -const spec_relationalDividers = { +const relationalDividersCodec = recordCodec({ name: "relationalDividers", identifier: relationalDividersIdentifier, attributes: { @@ -1085,10 +1052,9 @@ const spec_relationalDividers = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalDividersCodec = recordCodec(spec_relationalDividers); +}); const relationalItemRelationsIdentifier = sql.identifier("polymorphic", "relational_item_relations"); -const spec_relationalItemRelations = { +const relationalItemRelationsCodec = recordCodec({ name: "relationalItemRelations", identifier: relationalItemRelationsIdentifier, attributes: { @@ -1134,10 +1100,9 @@ const spec_relationalItemRelations = { } }, executor: executor -}; -const relationalItemRelationsCodec = recordCodec(spec_relationalItemRelations); +}); const singleTableItemRelationsIdentifier = sql.identifier("polymorphic", "single_table_item_relations"); -const spec_singleTableItemRelations = { +const singleTableItemRelationsCodec = recordCodec({ name: "singleTableItemRelations", identifier: singleTableItemRelationsIdentifier, attributes: { @@ -1183,8 +1148,7 @@ const spec_singleTableItemRelations = { } }, executor: executor -}; -const singleTableItemRelationsCodec = recordCodec(spec_singleTableItemRelations); +}); const logEntriesIdentifier = sql.identifier("polymorphic", "log_entries"); const spec_logEntries = { name: "logEntries", @@ -1260,7 +1224,7 @@ const spec_logEntries = { }; const logEntriesCodec = recordCodec(spec_logEntries); const relationalPostsIdentifier = sql.identifier("polymorphic", "relational_posts"); -const spec_relationalPosts = { +const relationalPostsCodec = recordCodec({ name: "relationalPosts", identifier: relationalPostsIdentifier, attributes: { @@ -1426,8 +1390,7 @@ const spec_relationalPosts = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalPostsCodec = recordCodec(spec_relationalPosts); +}); const firstPartyVulnerabilitiesIdentifier = sql.identifier("polymorphic", "first_party_vulnerabilities"); const spec_firstPartyVulnerabilities = { name: "firstPartyVulnerabilities", @@ -4600,26 +4563,9 @@ const registry = makeRegistry(registryConfig); const resource_single_table_items_meaning_of_lifePgResource = registry.pgResources["single_table_items_meaning_of_life"]; const otherSource_peoplePgResource = registry.pgResources["people"]; const otherSource_single_table_itemsPgResource = registry.pgResources["single_table_items"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} const otherSource_single_table_item_relationsPgResource = registry.pgResources["single_table_item_relations"]; const otherSource_single_table_item_relation_composite_pksPgResource = registry.pgResources["single_table_item_relation_composite_pks"]; function BigIntSerialize(value) { @@ -4666,6 +4612,13 @@ const resourceByTypeName = { AwsApplication: members_0_resource_aws_applicationsPgResource, GcpApplication: members_1_resource_gcp_applicationsPgResource }; +function limitToTypes(ltt) { + if (ltt) { + return qb => qb.limitToTypes(ltt); + } else { + return () => {}; + } +} const otherSource_organizationsPgResource = registry.pgResources["organizations"]; const attributes = {}; const members2 = [{ @@ -4705,187 +4658,15 @@ const resourceByTypeName2 = { Person: otherSource_peoplePgResource, Organization: otherSource_organizationsPgResource }; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_single_table_items_meaning_of_life2 = []; +const makeArgs_single_table_items_meaning_of_life2 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life2.map(details => makeArg(path, args, details)); const otherSource_prioritiesPgResource = registry.pgResources["priorities"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_single_table_items_meaning_of_life3 = []; +const makeArgs_single_table_items_meaning_of_life3 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life3.map(details => makeArg(path, args, details)); +const argDetailsSimple_single_table_items_meaning_of_life4 = []; +const makeArgs_single_table_items_meaning_of_life4 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life4.map(details => makeArg(path, args, details)); +const argDetailsSimple_single_table_items_meaning_of_life5 = []; +const makeArgs_single_table_items_meaning_of_life5 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life5.map(details => makeArg(path, args, details)); const relational_topics_relational_topicsPgResource = registry.pgResources["relational_topics"]; const relational_item_relations_relational_item_relationsPgResource = registry.pgResources["relational_item_relations"]; const relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource = registry.pgResources["relational_item_relation_composite_pks"]; @@ -4893,107 +4674,21 @@ const resource_relational_checklistsPgResource = registry.pgResources["relationa const resource_relational_checklist_itemsPgResource = registry.pgResources["relational_checklist_items"]; const resource_relational_dividersPgResource = registry.pgResources["relational_dividers"]; const resource_relational_postsPgResource = registry.pgResources["relational_posts"]; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_all_single_tables = []; +const makeArgs_all_single_tables = (args, path = []) => argDetailsSimple_all_single_tables.map(details => makeArg(path, args, details)); const resource_all_single_tablesPgResource = registry.pgResources["all_single_tables"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_all_single_tables(args); return resource_all_single_tablesPgResource.execute(selectArgs); }; -const argDetailsSimple7 = [{ +const argDetailsSimple_get_single_table_topic_by_id = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 makeArgs_get_single_table_topic_by_id = (args, path = []) => argDetailsSimple_get_single_table_topic_by_id.map(details => makeArg(path, args, details)); const resource_get_single_table_topic_by_idPgResource = registry.pgResources["get_single_table_topic_by_id"]; const members_0_resource_first_party_vulnerabilitiesPgResource = registry.pgResources["first_party_vulnerabilities"]; const members_1_resource_third_party_vulnerabilitiesPgResource = registry.pgResources["third_party_vulnerabilities"]; @@ -5025,51 +4720,8 @@ const members5 = []; const resourceByTypeName5 = { __proto__: null }; -const argDetailsSimple8 = []; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 argDetailsSimple_first_party_vulnerabilities_cvss_score_int = []; +const makeArgs_first_party_vulnerabilities_cvss_score_int = (args, path = []) => argDetailsSimple_first_party_vulnerabilities_cvss_score_int.map(details => makeArg(path, args, details)); const resource_first_party_vulnerabilities_cvss_score_intPgResource = registry.pgResources["first_party_vulnerabilities_cvss_score_int"]; const members_0_resource_aws_application_first_party_vulnerabilitiesPgResource = registry.pgResources["aws_application_first_party_vulnerabilities"]; const members_1_resource_gcp_application_first_party_vulnerabilitiesPgResource = registry.pgResources["gcp_application_first_party_vulnerabilities"]; @@ -5442,51 +5094,8 @@ const resourceByTypeName11 = { Person: otherSource_peoplePgResource, Organization: otherSource_organizationsPgResource }; -const argDetailsSimple9 = []; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 argDetailsSimple_third_party_vulnerabilities_cvss_score_int = []; +const makeArgs_third_party_vulnerabilities_cvss_score_int = (args, path = []) => argDetailsSimple_third_party_vulnerabilities_cvss_score_int.map(details => makeArg(path, args, details)); const resource_third_party_vulnerabilities_cvss_score_intPgResource = registry.pgResources["third_party_vulnerabilities_cvss_score_int"]; const members12 = [{ resource: members_1_resource_aws_application_third_party_vulnerabilitiesPgResource, @@ -10263,7 +9872,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -10278,27 +9887,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -10357,7 +9960,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -10366,7 +9968,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -10375,7 +9976,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -10384,7 +9984,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -10393,7 +9992,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -10402,22 +10000,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -10434,7 +10028,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -10443,7 +10036,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -10452,7 +10044,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -10461,7 +10052,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -10470,7 +10060,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -10479,22 +10068,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -10511,7 +10096,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -10520,7 +10104,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -10529,7 +10112,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -10538,7 +10120,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -10547,7 +10128,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -10556,22 +10136,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -10588,7 +10164,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -10597,7 +10172,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -10606,7 +10180,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -10615,7 +10188,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -10624,7 +10196,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -10633,22 +10204,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -10665,7 +10232,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -10674,7 +10240,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -10683,7 +10248,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -10692,7 +10256,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -10701,7 +10264,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -10710,22 +10272,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -10776,7 +10334,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -10785,7 +10342,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -10794,7 +10350,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -10803,7 +10358,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -10812,7 +10366,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -10821,22 +10374,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -10853,7 +10402,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -10862,7 +10410,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -10871,7 +10418,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -10880,7 +10426,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -10889,7 +10434,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -10898,22 +10442,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -10930,7 +10470,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -10939,7 +10478,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -10948,7 +10486,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -10957,7 +10494,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -10966,7 +10502,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -10975,22 +10510,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -11028,7 +10559,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -11037,7 +10567,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -11046,7 +10575,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -11055,7 +10583,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -11064,7 +10591,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -11073,32 +10599,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -11192,7 +10714,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -11201,7 +10722,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -11210,7 +10730,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -11219,7 +10738,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -11228,7 +10746,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -11237,22 +10754,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -11270,31 +10783,21 @@ export const plans = { } }, LogEntriesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { log_entriesUniques[0].attributes.forEach(attributeName => { - const attribute = logEntriesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11303,19 +10806,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { log_entriesUniques[0].attributes.forEach(attributeName => { - const attribute = logEntriesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11324,11 +10825,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -11336,7 +10834,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11346,11 +10844,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -11358,7 +10853,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11368,11 +10863,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -11380,7 +10872,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11390,11 +10882,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -11402,7 +10891,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11412,11 +10901,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -11424,7 +10910,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11434,11 +10920,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -11446,7 +10929,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11456,11 +10939,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "text", direction: "ASC", ...(undefined != null ? { @@ -11468,7 +10948,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11478,11 +10958,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "text", direction: "DESC", ...(undefined != null ? { @@ -11490,7 +10967,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11499,8 +10976,8 @@ export const plans = { }, LogEntryCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -11513,17 +10990,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -11536,17 +11011,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -11559,17 +11032,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, text: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text", @@ -11582,13 +11053,11 @@ export const plans = { type: "attribute", attribute: "text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LogEntriesEdge: { @@ -11641,31 +11110,21 @@ export const plans = { } }, SingleTableItemsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11674,19 +11133,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11695,11 +11152,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -11707,7 +11161,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11717,11 +11171,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -11729,7 +11180,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11739,11 +11190,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -11751,7 +11199,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11761,11 +11209,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -11773,7 +11218,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11783,11 +11228,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -11795,7 +11237,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11805,11 +11247,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -11817,7 +11256,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11827,11 +11266,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -11839,7 +11275,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11849,11 +11285,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -11861,7 +11294,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11871,11 +11304,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -11883,7 +11313,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11893,11 +11323,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -11905,7 +11332,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11915,11 +11342,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -11927,7 +11351,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11937,11 +11361,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -11949,7 +11370,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11959,11 +11380,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -11971,7 +11389,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -11981,11 +11399,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -11993,7 +11408,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12003,11 +11418,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -12015,7 +11427,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12025,11 +11437,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -12037,7 +11446,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12047,11 +11456,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -12059,7 +11465,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12069,11 +11475,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -12081,7 +11484,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12091,11 +11494,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -12103,7 +11503,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12113,11 +11513,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -12125,7 +11522,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12134,8 +11531,8 @@ export const plans = { }, SingleTableItemCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -12148,17 +11545,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -12171,17 +11566,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -12194,17 +11587,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -12217,17 +11608,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -12240,17 +11629,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -12263,17 +11650,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -12286,17 +11671,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -12309,17 +11692,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -12332,17 +11713,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -12355,13 +11734,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalItemsConnection: { @@ -12481,31 +11858,21 @@ export const plans = { } }, RelationalItemsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12514,19 +11881,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12535,11 +11900,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -12547,7 +11909,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12557,11 +11919,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -12569,7 +11928,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12579,11 +11938,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -12591,7 +11947,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12601,11 +11957,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -12613,7 +11966,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12623,11 +11976,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -12635,7 +11985,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12645,11 +11995,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -12657,7 +12004,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12667,11 +12014,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -12679,7 +12023,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12689,11 +12033,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -12701,7 +12042,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12711,11 +12052,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -12723,7 +12061,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12733,11 +12071,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -12745,7 +12080,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12755,11 +12090,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -12767,7 +12099,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12777,11 +12109,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -12789,7 +12118,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12799,11 +12128,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -12811,7 +12137,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12821,11 +12147,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -12833,7 +12156,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12843,11 +12166,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -12855,7 +12175,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12865,11 +12185,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -12877,7 +12194,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12887,11 +12204,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -12899,7 +12213,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12909,11 +12223,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -12921,7 +12232,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12931,11 +12242,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -12943,7 +12251,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12953,11 +12261,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -12965,7 +12270,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12974,8 +12279,8 @@ export const plans = { }, RelationalItemCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -12988,17 +12293,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -13011,17 +12314,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -13034,17 +12335,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -13057,17 +12356,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -13080,17 +12377,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -13103,17 +12398,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -13126,17 +12419,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -13149,17 +12440,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -13172,17 +12461,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -13195,13 +12482,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ApplicationsConnection: { @@ -13277,23 +12562,12 @@ export const plans = { } }, ApplicationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -13301,7 +12575,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13311,11 +12585,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -13323,7 +12594,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13333,11 +12604,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -13345,7 +12613,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13355,11 +12623,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -13367,7 +12632,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13377,11 +12642,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "ASC", ...(undefined != null ? { @@ -13389,7 +12651,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13399,11 +12661,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "DESC", ...(undefined != null ? { @@ -13411,7 +12670,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13420,8 +12679,8 @@ export const plans = { }, ApplicationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -13434,17 +12693,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Application.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -13457,17 +12714,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Application.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastDeployed: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_deployed", @@ -13480,13 +12735,11 @@ export const plans = { type: "attribute", attribute: "last_deployed", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Application.attributes.last_deployed.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SingleTableItemRelationsConnection: { @@ -13581,31 +12834,21 @@ export const plans = { } }, SingleTableItemRelationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13614,19 +12857,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13635,11 +12876,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -13647,7 +12885,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13657,11 +12895,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -13669,7 +12904,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13679,11 +12914,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -13691,7 +12923,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13701,11 +12933,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -13713,7 +12942,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13723,11 +12952,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -13735,7 +12961,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13745,11 +12971,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -13757,7 +12980,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13766,8 +12989,8 @@ export const plans = { }, SingleTableItemRelationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -13780,17 +13003,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelations.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -13803,17 +13024,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelations.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -13826,41 +13045,29 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelations.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SingleTableItemRelationCompositePksOrderBy: { - NATURAL: { + PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan() {} - } - } - }, - PRIMARY_KEY_ASC: { - extensions: { - __proto__: null, - grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13869,19 +13076,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13890,11 +13095,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -13902,7 +13104,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13912,11 +13114,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -13924,7 +13123,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13934,11 +13133,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -13946,7 +13142,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13956,11 +13152,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -13968,7 +13161,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13977,8 +13170,8 @@ export const plans = { }, SingleTableItemRelationCompositePkCondition: { parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -13991,17 +13184,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelationCompositePks.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -14014,13 +13205,11 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelationCompositePks.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SingleTablePost: { @@ -14029,7 +13218,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs2(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14044,27 +13233,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -14137,7 +13320,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14146,7 +13328,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14155,7 +13336,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14164,7 +13344,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14173,7 +13352,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14182,22 +13360,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14214,7 +13388,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14223,7 +13396,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14232,7 +13404,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14241,7 +13412,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14250,7 +13420,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14259,22 +13428,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14291,7 +13456,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14300,7 +13464,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14309,7 +13472,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14318,7 +13480,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14327,7 +13488,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14336,22 +13496,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14368,7 +13524,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14377,7 +13532,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14386,7 +13540,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14395,7 +13548,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14404,7 +13556,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14413,22 +13564,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14445,7 +13592,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14454,7 +13600,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14463,7 +13608,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14472,7 +13616,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14481,7 +13624,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14490,22 +13632,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14536,7 +13674,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14545,7 +13682,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14554,7 +13690,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14563,7 +13698,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14572,7 +13706,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14581,22 +13714,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14609,7 +13738,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs3(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14624,27 +13753,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -14706,7 +13829,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14715,7 +13837,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14724,7 +13845,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14733,7 +13853,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14742,7 +13861,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14751,22 +13869,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14783,7 +13897,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14792,7 +13905,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14801,7 +13913,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14810,7 +13921,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14819,7 +13929,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14828,22 +13937,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14860,7 +13965,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14869,7 +13973,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14878,7 +13981,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14887,7 +13989,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14896,7 +13997,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14905,22 +14005,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14937,7 +14033,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14946,7 +14041,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14955,7 +14049,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14964,7 +14057,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14973,7 +14065,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14982,22 +14073,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15014,7 +14101,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15023,7 +14109,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15032,7 +14117,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15041,7 +14125,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15050,7 +14133,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15059,22 +14141,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15092,7 +14170,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -15107,27 +14185,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -15186,7 +14258,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15195,7 +14266,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15204,7 +14274,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15213,7 +14282,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15222,7 +14290,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15231,22 +14298,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15263,7 +14326,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15272,7 +14334,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15281,7 +14342,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15290,7 +14350,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15299,7 +14358,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15308,22 +14366,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15340,7 +14394,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15349,7 +14402,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15358,7 +14410,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15367,7 +14418,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15376,7 +14426,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15385,22 +14434,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15417,7 +14462,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15426,7 +14470,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15435,7 +14478,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15444,7 +14486,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15453,7 +14494,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15462,22 +14502,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15494,7 +14530,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15503,7 +14538,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15512,7 +14546,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15521,7 +14554,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15530,7 +14562,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15539,22 +14570,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15577,7 +14604,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs5(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -15592,27 +14619,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -15682,7 +14703,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15691,7 +14711,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15700,7 +14719,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15709,7 +14727,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15718,7 +14735,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15727,22 +14743,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15759,7 +14771,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15768,7 +14779,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15777,7 +14787,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15786,7 +14795,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15795,7 +14803,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15804,22 +14811,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15836,7 +14839,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15845,7 +14847,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15854,7 +14855,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15863,7 +14863,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15872,7 +14871,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15881,22 +14879,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15913,7 +14907,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15922,7 +14915,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15931,7 +14923,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15940,7 +14931,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15949,7 +14939,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15958,22 +14947,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15990,7 +14975,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15999,7 +14983,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16008,7 +14991,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16017,7 +14999,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16026,7 +15007,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16035,22 +15015,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16108,7 +15084,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16117,7 +15092,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16126,7 +15100,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16135,7 +15108,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16144,7 +15116,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16153,22 +15124,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16235,7 +15202,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16244,7 +15210,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16253,7 +15218,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16262,7 +15226,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16271,7 +15234,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16280,22 +15242,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16320,7 +15278,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16329,7 +15286,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16338,7 +15294,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16347,7 +15302,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16356,7 +15310,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16365,22 +15318,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16405,7 +15354,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16414,7 +15362,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16423,7 +15370,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16432,7 +15378,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16441,7 +15386,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16450,22 +15394,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16490,7 +15430,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16499,7 +15438,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16508,7 +15446,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16517,7 +15454,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16526,7 +15462,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16535,22 +15470,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16575,7 +15506,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16584,7 +15514,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16593,7 +15522,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16602,7 +15530,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16611,7 +15538,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16620,22 +15546,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16643,31 +15565,21 @@ export const plans = { } }, RelationalItemRelationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16676,19 +15588,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16697,11 +15607,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -16709,7 +15616,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16719,11 +15626,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -16731,7 +15635,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16741,11 +15645,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -16753,7 +15654,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16763,11 +15664,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -16775,7 +15673,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16785,11 +15683,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -16797,7 +15692,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16807,11 +15702,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -16819,7 +15711,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16828,8 +15720,8 @@ export const plans = { }, RelationalItemRelationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -16842,17 +15734,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelations.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -16865,17 +15755,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelations.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -16888,41 +15776,29 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelations.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalItemRelationCompositePksOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16931,19 +15807,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16952,11 +15826,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -16964,7 +15835,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16974,11 +15845,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -16986,7 +15854,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16996,11 +15864,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -17008,7 +15873,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17018,11 +15883,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -17030,7 +15892,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17039,8 +15901,8 @@ export const plans = { }, RelationalItemRelationCompositePkCondition: { parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -17053,17 +15915,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelationCompositePks.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -17076,13 +15936,11 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelationCompositePks.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalPost: { @@ -17187,7 +16045,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17196,7 +16053,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17205,7 +16061,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17214,7 +16069,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17223,7 +16077,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17232,22 +16085,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17272,7 +16121,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17281,7 +16129,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17290,7 +16137,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17299,7 +16145,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17308,7 +16153,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17317,22 +16161,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17357,7 +16197,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17366,7 +16205,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17375,7 +16213,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17384,7 +16221,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17393,7 +16229,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17402,22 +16237,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17442,7 +16273,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17451,7 +16281,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17460,7 +16289,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17469,7 +16297,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17478,7 +16305,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17487,22 +16313,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17527,7 +16349,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17536,7 +16357,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17545,7 +16365,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17554,7 +16373,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17563,7 +16381,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17572,22 +16389,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17693,7 +16506,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17702,7 +16514,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17711,7 +16522,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17720,7 +16530,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17729,7 +16538,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17738,22 +16546,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17778,7 +16582,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17787,7 +16590,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17796,7 +16598,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17805,7 +16606,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17814,7 +16614,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17823,22 +16622,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17863,7 +16658,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17872,7 +16666,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17881,7 +16674,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17890,7 +16682,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17899,7 +16690,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17908,22 +16698,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17948,7 +16734,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17957,7 +16742,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17966,7 +16750,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17975,7 +16758,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17984,7 +16766,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17993,22 +16774,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18033,7 +16810,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18042,7 +16818,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18051,7 +16826,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18060,7 +16834,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18069,7 +16842,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18078,22 +16850,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18196,7 +16964,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18205,7 +16972,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18214,7 +16980,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18223,7 +16988,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18232,7 +16996,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18241,22 +17004,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18281,7 +17040,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18290,7 +17048,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18299,7 +17056,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18308,7 +17064,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18317,7 +17072,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18326,22 +17080,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18366,7 +17116,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18375,7 +17124,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18384,7 +17132,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18393,7 +17140,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18402,7 +17148,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18411,22 +17156,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18451,7 +17192,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18460,7 +17200,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18469,7 +17208,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18478,7 +17216,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18487,7 +17224,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18496,22 +17232,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18536,7 +17268,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18545,7 +17276,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18554,7 +17284,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18563,7 +17292,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18572,7 +17300,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18581,22 +17308,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18702,7 +17425,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18711,7 +17433,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18720,7 +17441,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18729,7 +17449,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18738,7 +17457,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18747,22 +17465,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18787,7 +17501,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18796,7 +17509,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18805,7 +17517,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18814,7 +17525,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18823,7 +17533,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18832,22 +17541,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18872,7 +17577,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18881,7 +17585,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18890,7 +17593,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18899,7 +17601,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18908,7 +17609,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18917,22 +17617,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18957,7 +17653,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18966,7 +17661,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18975,7 +17669,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18984,7 +17677,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18993,7 +17685,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19002,22 +17693,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19042,7 +17729,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19051,7 +17737,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19060,7 +17745,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19069,7 +17753,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19078,7 +17761,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19087,22 +17769,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19118,91 +17796,91 @@ export const plans = { }, organizationByOrganizationId(_$root, args) { return otherSource_organizationsPgResource.get({ - organization_id: args.get("organizationId") + organization_id: args.getRaw("organizationId") }); }, organizationByName(_$root, args) { return otherSource_organizationsPgResource.get({ - name: args.get("name") + name: args.getRaw("name") }); }, personByPersonId(_$root, args) { return otherSource_peoplePgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, personByUsername(_$root, args) { return otherSource_peoplePgResource.get({ - username: args.get("username") + username: args.getRaw("username") }); }, priorityById(_$root, args) { return otherSource_prioritiesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, relationalChecklistByChecklistItemId(_$root, args) { return resource_relational_checklistsPgResource.get({ - checklist_item_id: args.get("checklistItemId") + checklist_item_id: args.getRaw("checklistItemId") }); }, relationalItemRelationCompositePkByParentIdAndChildId(_$root, args) { return relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, relationalTopicByTopicItemId(_$root, args) { return relational_topics_relational_topicsPgResource.get({ - topic_item_id: args.get("topicItemId") + topic_item_id: args.getRaw("topicItemId") }); }, singleTableItemRelationCompositePkByParentIdAndChildId(_$root, args) { return otherSource_single_table_item_relation_composite_pksPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, relationalChecklistItemByChecklistItemItemId(_$root, args) { return resource_relational_checklist_itemsPgResource.get({ - checklist_item_item_id: args.get("checklistItemItemId") + checklist_item_item_id: args.getRaw("checklistItemItemId") }); }, relationalDividerByDividerItemId(_$root, args) { return resource_relational_dividersPgResource.get({ - divider_item_id: args.get("dividerItemId") + divider_item_id: args.getRaw("dividerItemId") }); }, relationalItemRelationById(_$root, args) { return relational_item_relations_relational_item_relationsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, relationalItemRelationByParentIdAndChildId(_$root, args) { return relational_item_relations_relational_item_relationsPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, singleTableItemRelationById(_$root, args) { return otherSource_single_table_item_relationsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, singleTableItemRelationByParentIdAndChildId(_$root, args) { return otherSource_single_table_item_relationsPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, logEntryById(_$root, args) { return otherSource_log_entriesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, relationalPostByPostItemId(_$root, args) { return resource_relational_postsPgResource.get({ - post_item_id: args.get("postItemId") + post_item_id: args.getRaw("postItemId") }); }, allSingleTables: { @@ -19219,7 +17897,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19228,7 +17905,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19237,7 +17913,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19246,7 +17921,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19255,7 +17929,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19264,7 +17937,7 @@ export const plans = { } }, getSingleTableTopicById($root, args, _info) { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_get_single_table_topic_by_id(args); return resource_get_single_table_topic_by_idPgResource.execute(selectArgs); }, allVulnerabilities: { @@ -19281,7 +17954,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19290,7 +17962,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19299,7 +17970,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19308,7 +17978,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19317,7 +17986,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19326,32 +17994,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("VulnerabilitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -19371,7 +18035,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19380,7 +18043,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19389,7 +18051,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19398,7 +18059,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19407,7 +18067,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19416,32 +18075,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -19461,7 +18116,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19470,7 +18124,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19479,7 +18132,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19488,7 +18140,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19497,7 +18148,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19506,22 +18156,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ZeroImplementationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19535,7 +18181,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19544,7 +18189,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19553,7 +18197,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19562,7 +18205,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19571,7 +18213,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19580,22 +18221,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OrganizationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19609,7 +18246,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19618,7 +18254,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19627,7 +18262,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19636,7 +18270,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19645,7 +18278,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19654,22 +18286,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19683,7 +18311,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19692,7 +18319,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19701,7 +18327,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19710,7 +18335,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19719,7 +18343,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19735,7 +18358,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19744,7 +18366,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19753,7 +18374,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19762,7 +18382,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19771,7 +18390,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19780,22 +18398,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalChecklistsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19809,7 +18423,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19818,7 +18431,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19827,7 +18439,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19836,7 +18447,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19845,7 +18455,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19854,22 +18463,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19883,7 +18488,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19892,7 +18496,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19901,7 +18504,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19910,7 +18512,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19919,7 +18520,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19928,22 +18528,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalTopicsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19957,7 +18553,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19966,7 +18561,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19975,7 +18569,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19984,7 +18577,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19993,7 +18585,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20002,22 +18593,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20031,7 +18618,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20040,7 +18626,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20049,7 +18634,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20058,7 +18642,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20067,7 +18650,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20076,22 +18658,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalChecklistItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20105,7 +18683,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20114,7 +18691,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20123,7 +18699,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20132,7 +18707,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20141,7 +18715,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20150,22 +18723,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalDividersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20179,7 +18748,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20188,7 +18756,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20197,7 +18764,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20206,7 +18772,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20215,7 +18780,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20224,22 +18788,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20253,7 +18813,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20262,7 +18821,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20271,7 +18829,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20280,7 +18837,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20289,7 +18845,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20298,22 +18853,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20327,7 +18878,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20336,7 +18886,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20345,7 +18894,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20354,7 +18902,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20363,7 +18910,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20372,22 +18918,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20401,7 +18943,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20410,7 +18951,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20419,7 +18959,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20428,7 +18967,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20437,7 +18975,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20446,22 +18983,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalPostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20475,7 +19008,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20484,7 +19016,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20493,7 +19024,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20502,7 +19032,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20511,7 +19040,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20520,22 +19048,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20549,7 +19073,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20558,7 +19081,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20567,7 +19089,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20576,7 +19097,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20585,7 +19105,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20594,22 +19113,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20617,23 +19132,12 @@ export const plans = { } }, VulnerabilitiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -20641,7 +19145,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20651,11 +19155,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -20663,7 +19164,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20673,11 +19174,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -20685,7 +19183,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20695,11 +19193,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -20707,7 +19202,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20717,11 +19212,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "ASC", ...(undefined != null ? { @@ -20729,7 +19221,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20739,11 +19231,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "DESC", ...(undefined != null ? { @@ -20751,7 +19240,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20760,8 +19249,8 @@ export const plans = { }, VulnerabilityCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20774,17 +19263,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Vulnerability.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -20797,17 +19284,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Vulnerability.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cvssScore: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cvss_score", @@ -20820,13 +19305,11 @@ export const plans = { type: "attribute", attribute: "cvss_score", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Vulnerability.attributes.cvss_score.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ZeroImplementationsConnection: { @@ -20855,23 +19338,12 @@ export const plans = { } }, ZeroImplementationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -20879,7 +19351,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20889,11 +19361,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -20901,7 +19370,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20911,11 +19380,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -20923,7 +19389,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20933,11 +19399,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -20945,7 +19408,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20954,8 +19417,8 @@ export const plans = { }, ZeroImplementationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20968,17 +19431,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_ZeroImplementation.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -20991,13 +19452,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_ZeroImplementation.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, OrganizationsConnection: { @@ -21026,31 +19485,21 @@ export const plans = { } }, OrganizationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { organizationsUniques[0].attributes.forEach(attributeName => { - const attribute = organizationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21059,19 +19508,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { organizationsUniques[0].attributes.forEach(attributeName => { - const attribute = organizationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21080,11 +19527,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -21092,7 +19536,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21102,11 +19546,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -21114,7 +19555,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21124,11 +19565,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -21136,7 +19574,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21146,11 +19584,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -21158,7 +19593,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21167,8 +19602,8 @@ export const plans = { }, OrganizationCondition: { organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -21181,17 +19616,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_organizations.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -21204,13 +19637,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_organizations.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -21239,31 +19670,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21272,19 +19693,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21293,11 +19712,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -21305,7 +19721,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21315,11 +19731,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -21327,7 +19740,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21337,11 +19750,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "username", direction: "ASC", ...(undefined != null ? { @@ -21349,7 +19759,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21359,11 +19769,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "username", direction: "DESC", ...(undefined != null ? { @@ -21371,7 +19778,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21380,8 +19787,8 @@ export const plans = { }, PersonCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -21394,17 +19801,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, username: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "username", @@ -21417,13 +19822,11 @@ export const plans = { type: "attribute", attribute: "username", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.username.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PrioritiesConnection: { @@ -21477,31 +19880,21 @@ export const plans = { } }, RelationalChecklistsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklistsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21510,19 +19903,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklistsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21531,11 +19922,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -21543,7 +19931,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21553,11 +19941,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -21565,7 +19950,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21575,11 +19960,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -21587,7 +19969,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21597,11 +19979,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -21609,7 +19988,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21619,11 +19998,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -21631,7 +20007,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21641,11 +20017,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -21653,7 +20026,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21663,11 +20036,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -21675,7 +20045,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21685,11 +20055,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -21697,7 +20064,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21707,11 +20074,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -21719,7 +20083,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21729,11 +20093,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -21741,7 +20102,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21751,11 +20112,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -21763,7 +20121,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21773,11 +20131,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -21785,7 +20140,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21795,11 +20150,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -21807,7 +20159,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21817,11 +20169,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -21829,7 +20178,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21839,11 +20188,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -21851,7 +20197,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21861,11 +20207,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -21873,7 +20216,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21883,11 +20226,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -21895,7 +20235,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21905,11 +20245,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -21917,7 +20254,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21927,11 +20264,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -21939,7 +20273,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21949,11 +20283,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -21961,7 +20292,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21971,11 +20302,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -21983,7 +20311,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21993,11 +20321,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -22005,7 +20330,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22014,8 +20339,8 @@ export const plans = { }, RelationalChecklistCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -22028,17 +20353,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -22051,17 +20374,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -22074,17 +20395,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -22097,17 +20416,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -22120,17 +20437,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -22143,17 +20458,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -22166,17 +20479,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -22189,17 +20500,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -22212,17 +20521,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -22235,17 +20542,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -22258,13 +20563,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalTopicsConnection: { @@ -22293,31 +20596,21 @@ export const plans = { } }, RelationalTopicsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_topicsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalTopicsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22326,19 +20619,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_topicsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalTopicsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22347,11 +20638,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -22359,7 +20647,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22369,11 +20657,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -22381,7 +20666,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22391,11 +20676,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -22403,7 +20685,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22413,11 +20695,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -22425,7 +20704,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22435,11 +20714,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -22447,7 +20723,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22457,11 +20733,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -22469,7 +20742,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22479,11 +20752,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -22491,7 +20761,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22501,11 +20771,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -22513,7 +20780,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22523,11 +20790,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -22535,7 +20799,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22545,11 +20809,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -22557,7 +20818,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22567,11 +20828,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -22579,7 +20837,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22589,11 +20847,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -22601,7 +20856,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22611,11 +20866,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -22623,7 +20875,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22633,11 +20885,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -22645,7 +20894,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22655,11 +20904,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -22667,7 +20913,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22677,11 +20923,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -22689,7 +20932,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22699,11 +20942,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -22711,7 +20951,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22721,11 +20961,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -22733,7 +20970,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22743,11 +20980,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -22755,7 +20989,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22765,11 +20999,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -22777,7 +21008,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22787,11 +21018,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -22799,7 +21027,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22809,11 +21037,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -22821,7 +21046,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22830,8 +21055,8 @@ export const plans = { }, RelationalTopicCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -22844,17 +21069,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -22867,17 +21090,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -22890,17 +21111,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -22913,17 +21132,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -22936,17 +21153,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -22959,17 +21174,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -22982,17 +21195,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -23005,17 +21216,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -23028,17 +21237,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -23051,17 +21258,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -23074,13 +21279,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalChecklistItemsConnection: { @@ -23109,31 +21312,21 @@ export const plans = { } }, RelationalChecklistItemsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklist_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23142,19 +21335,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklist_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23163,11 +21354,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -23175,7 +21363,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23185,11 +21373,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -23197,7 +21382,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23207,11 +21392,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "ASC", ...(undefined != null ? { @@ -23219,7 +21401,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23229,11 +21411,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "DESC", ...(undefined != null ? { @@ -23241,7 +21420,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23251,11 +21430,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -23263,7 +21439,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23273,11 +21449,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -23285,7 +21458,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23295,11 +21468,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -23307,7 +21477,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23317,11 +21487,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -23329,7 +21496,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23339,11 +21506,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -23351,7 +21515,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23361,11 +21525,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -23373,7 +21534,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23383,11 +21544,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -23395,7 +21553,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23405,11 +21563,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -23417,7 +21572,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23427,11 +21582,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -23439,7 +21591,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23449,11 +21601,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -23461,7 +21610,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23471,11 +21620,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -23483,7 +21629,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23493,11 +21639,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -23505,7 +21648,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23515,11 +21658,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -23527,7 +21667,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23537,11 +21677,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -23549,7 +21686,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23559,11 +21696,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -23571,7 +21705,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23581,11 +21715,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -23593,7 +21724,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23603,11 +21734,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -23615,7 +21743,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23625,11 +21753,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -23637,7 +21762,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23647,11 +21772,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -23659,7 +21781,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23669,11 +21791,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -23681,7 +21800,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23690,8 +21809,8 @@ export const plans = { }, RelationalChecklistItemCondition: { description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -23704,17 +21823,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, note: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "note", @@ -23727,17 +21844,15 @@ export const plans = { type: "attribute", attribute: "note", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.note.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -23750,17 +21865,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -23773,17 +21886,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -23796,17 +21907,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -23819,17 +21928,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -23842,17 +21949,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -23865,17 +21970,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -23888,17 +21991,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -23911,17 +22012,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -23934,17 +22033,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -23957,13 +22054,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalDividersConnection: { @@ -23992,31 +22087,21 @@ export const plans = { } }, RelationalDividersOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_dividersUniques[0].attributes.forEach(attributeName => { - const attribute = relationalDividersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24025,19 +22110,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_dividersUniques[0].attributes.forEach(attributeName => { - const attribute = relationalDividersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24046,11 +22129,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -24058,7 +22138,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24068,11 +22148,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -24080,7 +22157,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24090,11 +22167,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "color", direction: "ASC", ...(undefined != null ? { @@ -24102,7 +22176,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24112,11 +22186,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "color", direction: "DESC", ...(undefined != null ? { @@ -24124,7 +22195,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24134,11 +22205,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -24146,7 +22214,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24156,11 +22224,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -24168,7 +22233,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24178,11 +22243,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -24190,7 +22252,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24200,11 +22262,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -24212,7 +22271,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24222,11 +22281,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -24234,7 +22290,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24244,11 +22300,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -24256,7 +22309,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24266,11 +22319,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -24278,7 +22328,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24288,11 +22338,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -24300,7 +22347,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24310,11 +22357,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -24322,7 +22366,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24332,11 +22376,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -24344,7 +22385,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24354,11 +22395,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -24366,7 +22404,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24376,11 +22414,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -24388,7 +22423,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24398,11 +22433,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -24410,7 +22442,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24420,11 +22452,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -24432,7 +22461,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24442,11 +22471,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -24454,7 +22480,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24464,11 +22490,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -24476,7 +22499,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24486,11 +22509,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -24498,7 +22518,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24508,11 +22528,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -24520,7 +22537,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24530,11 +22547,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -24542,7 +22556,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24552,11 +22566,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -24564,7 +22575,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24573,8 +22584,8 @@ export const plans = { }, RelationalDividerCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -24587,17 +22598,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, color: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "color", @@ -24610,17 +22619,15 @@ export const plans = { type: "attribute", attribute: "color", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.color.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -24633,17 +22640,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -24656,17 +22661,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -24679,17 +22682,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -24702,17 +22703,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -24725,17 +22724,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -24748,17 +22745,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -24771,17 +22766,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -24794,17 +22787,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -24817,17 +22808,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -24840,13 +22829,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalPostsConnection: { @@ -24875,31 +22862,21 @@ export const plans = { } }, RelationalPostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_postsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalPostsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24908,19 +22885,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_postsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalPostsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24929,11 +22904,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -24941,7 +22913,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24951,11 +22923,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -24963,7 +22932,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24973,11 +22942,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -24985,7 +22951,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24995,11 +22961,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -25007,7 +22970,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25017,11 +22980,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "ASC", ...(undefined != null ? { @@ -25029,7 +22989,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25039,11 +22999,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "DESC", ...(undefined != null ? { @@ -25051,7 +23008,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25061,11 +23018,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -25073,7 +23027,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25083,11 +23037,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -25095,7 +23046,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25105,11 +23056,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -25117,7 +23065,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25127,11 +23075,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -25139,7 +23084,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25149,11 +23094,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -25161,7 +23103,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25171,11 +23113,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -25183,7 +23122,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25193,11 +23132,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -25205,7 +23141,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25215,11 +23151,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -25227,7 +23160,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25237,11 +23170,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -25249,7 +23179,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25259,11 +23189,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -25271,7 +23198,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25281,11 +23208,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -25293,7 +23217,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25303,11 +23227,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -25315,7 +23236,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25325,11 +23246,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -25337,7 +23255,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25347,11 +23265,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -25359,7 +23274,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25369,11 +23284,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -25381,7 +23293,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25391,11 +23303,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -25403,7 +23312,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25413,11 +23322,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -25425,7 +23331,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25435,11 +23341,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -25447,7 +23350,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25457,11 +23360,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -25469,7 +23369,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25479,11 +23379,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -25491,7 +23388,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25500,8 +23397,8 @@ export const plans = { }, RelationalPostCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -25514,17 +23411,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -25537,17 +23432,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, note: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "note", @@ -25560,17 +23453,15 @@ export const plans = { type: "attribute", attribute: "note", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.note.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -25583,17 +23474,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -25606,17 +23495,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -25629,17 +23516,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -25652,17 +23537,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -25675,17 +23558,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -25698,17 +23579,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -25721,17 +23600,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -25744,17 +23621,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -25767,17 +23642,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -25790,13 +23663,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FirstPartyVulnerability: { @@ -25805,7 +23676,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs8(args); + const extraSelectArgs = makeArgs_first_party_vulnerabilities_cvss_score_int(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -25820,27 +23691,21 @@ export const plans = { if (resource_first_party_vulnerabilities_cvss_score_intPgResource.isUnique && !resource_first_party_vulnerabilities_cvss_score_intPgResource.codec.attributes && typeof resource_first_party_vulnerabilities_cvss_score_intPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_first_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${resource_first_party_vulnerabilities_cvss_score_intPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_first_party_vulnerabilities_cvss_score_intPgResource.from, resource_first_party_vulnerabilities_cvss_score_intPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_first_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_first_party_vulnerabilities_cvss_score_intPgResource.execute(selectArgs); @@ -25889,7 +23754,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25898,7 +23762,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25907,7 +23770,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25916,7 +23778,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25925,7 +23786,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25934,32 +23794,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -26055,7 +23911,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26064,7 +23919,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26073,7 +23927,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26082,7 +23935,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26091,7 +23943,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26100,32 +23951,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("VulnerabilitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -26221,7 +24068,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26230,7 +24076,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26239,7 +24084,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26248,7 +24092,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26257,7 +24100,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26266,32 +24108,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("VulnerabilitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -26331,7 +24169,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs9(args); + const extraSelectArgs = makeArgs_third_party_vulnerabilities_cvss_score_int(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -26346,27 +24184,21 @@ export const plans = { if (resource_third_party_vulnerabilities_cvss_score_intPgResource.isUnique && !resource_third_party_vulnerabilities_cvss_score_intPgResource.codec.attributes && typeof resource_third_party_vulnerabilities_cvss_score_intPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_third_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${resource_third_party_vulnerabilities_cvss_score_intPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_third_party_vulnerabilities_cvss_score_intPgResource.from, resource_third_party_vulnerabilities_cvss_score_intPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_third_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_third_party_vulnerabilities_cvss_score_intPgResource.execute(selectArgs); @@ -26415,7 +24247,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26424,7 +24255,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26433,7 +24263,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26442,7 +24271,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26451,7 +24279,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26460,32 +24287,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/polymorphic.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/polymorphic.1.export.mjs index 6a40cc52ce..d36c147c54 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/polymorphic.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/polymorphic.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, enumCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUnionAll, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeDecodeNodeId, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, enumCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUnionAll, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeDecodeNodeId, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler_codec_base64JSON = { name: "base64JSON", encode: (() => { @@ -199,7 +198,7 @@ const spec_gcpApplicationThirdPartyVulnerabilities = { }; const gcpApplicationThirdPartyVulnerabilitiesCodec = recordCodec(spec_gcpApplicationThirdPartyVulnerabilities); const organizationsIdentifier = sql.identifier("polymorphic", "organizations"); -const spec_organizations = { +const organizationsCodec = recordCodec({ name: "organizations", identifier: organizationsIdentifier, attributes: { @@ -237,8 +236,7 @@ const spec_organizations = { } }, executor: executor -}; -const organizationsCodec = recordCodec(spec_organizations); +}); const peopleIdentifier = sql.identifier("polymorphic", "people"); const spec_people = { name: "people", @@ -506,7 +504,7 @@ const spec_relationalChecklists = { }; const relationalChecklistsCodec = recordCodec(spec_relationalChecklists); const relationalItemRelationCompositePksIdentifier = sql.identifier("polymorphic", "relational_item_relation_composite_pks"); -const spec_relationalItemRelationCompositePks = { +const relationalItemRelationCompositePksCodec = recordCodec({ name: "relationalItemRelationCompositePks", identifier: relationalItemRelationCompositePksIdentifier, attributes: { @@ -543,10 +541,9 @@ const spec_relationalItemRelationCompositePks = { } }, executor: executor -}; -const relationalItemRelationCompositePksCodec = recordCodec(spec_relationalItemRelationCompositePks); +}); const relationalTopicsIdentifier = sql.identifier("polymorphic", "relational_topics"); -const spec_relationalTopics = { +const relationalTopicsCodec = recordCodec({ name: "relationalTopics", identifier: relationalTopicsIdentifier, attributes: { @@ -694,10 +691,9 @@ const spec_relationalTopics = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalTopicsCodec = recordCodec(spec_relationalTopics); +}); const singleTableItemRelationCompositePksIdentifier = sql.identifier("polymorphic", "single_table_item_relation_composite_pks"); -const spec_singleTableItemRelationCompositePks = { +const singleTableItemRelationCompositePksCodec = recordCodec({ name: "singleTableItemRelationCompositePks", identifier: singleTableItemRelationCompositePksIdentifier, attributes: { @@ -734,10 +730,9 @@ const spec_singleTableItemRelationCompositePks = { } }, executor: executor -}; -const singleTableItemRelationCompositePksCodec = recordCodec(spec_singleTableItemRelationCompositePks); +}); const relationalChecklistItemsIdentifier = sql.identifier("polymorphic", "relational_checklist_items"); -const spec_relationalChecklistItems = { +const relationalChecklistItemsCodec = recordCodec({ name: "relationalChecklistItems", identifier: relationalChecklistItemsIdentifier, attributes: { @@ -894,10 +889,9 @@ const spec_relationalChecklistItems = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalChecklistItemsCodec = recordCodec(spec_relationalChecklistItems); +}); const relationalDividersIdentifier = sql.identifier("polymorphic", "relational_dividers"); -const spec_relationalDividers = { +const relationalDividersCodec = recordCodec({ name: "relationalDividers", identifier: relationalDividersIdentifier, attributes: { @@ -1054,10 +1048,9 @@ const spec_relationalDividers = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalDividersCodec = recordCodec(spec_relationalDividers); +}); const relationalItemRelationsIdentifier = sql.identifier("polymorphic", "relational_item_relations"); -const spec_relationalItemRelations = { +const relationalItemRelationsCodec = recordCodec({ name: "relationalItemRelations", identifier: relationalItemRelationsIdentifier, attributes: { @@ -1103,10 +1096,9 @@ const spec_relationalItemRelations = { } }, executor: executor -}; -const relationalItemRelationsCodec = recordCodec(spec_relationalItemRelations); +}); const singleTableItemRelationsIdentifier = sql.identifier("polymorphic", "single_table_item_relations"); -const spec_singleTableItemRelations = { +const singleTableItemRelationsCodec = recordCodec({ name: "singleTableItemRelations", identifier: singleTableItemRelationsIdentifier, attributes: { @@ -1152,8 +1144,7 @@ const spec_singleTableItemRelations = { } }, executor: executor -}; -const singleTableItemRelationsCodec = recordCodec(spec_singleTableItemRelations); +}); const logEntriesIdentifier = sql.identifier("polymorphic", "log_entries"); const spec_logEntries = { name: "logEntries", @@ -1229,7 +1220,7 @@ const spec_logEntries = { }; const logEntriesCodec = recordCodec(spec_logEntries); const relationalPostsIdentifier = sql.identifier("polymorphic", "relational_posts"); -const spec_relationalPosts = { +const relationalPostsCodec = recordCodec({ name: "relationalPosts", identifier: relationalPostsIdentifier, attributes: { @@ -1395,8 +1386,7 @@ const spec_relationalPosts = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalPostsCodec = recordCodec(spec_relationalPosts); +}); const firstPartyVulnerabilitiesIdentifier = sql.identifier("polymorphic", "first_party_vulnerabilities"); const spec_firstPartyVulnerabilities = { name: "firstPartyVulnerabilities", @@ -4583,6 +4573,9 @@ const handler = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return resource_single_table_itemsPgResource.get(spec); }, @@ -4623,73 +4616,29 @@ const nodeIdCodecs = { function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_single_table_items_meaning_of_life = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_single_table_items_meaning_of_life = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life.map(details => makeArg(path, args, details)); const resource_single_table_items_meaning_of_lifePgResource = registry.pgResources["single_table_items_meaning_of_life"]; const otherSource_peoplePgResource = registry.pgResources["people"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} const otherSource_single_table_item_relationsPgResource = registry.pgResources["single_table_item_relations"]; const otherSource_single_table_item_relation_composite_pksPgResource = registry.pgResources["single_table_item_relation_composite_pks"]; function BigIntSerialize(value) { @@ -4707,6 +4656,9 @@ const handler2 = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return otherSource_peoplePgResource.get(spec); }, @@ -4755,6 +4707,13 @@ const resourceByTypeName = { AwsApplication: otherSource_aws_applicationsPgResource, GcpApplication: otherSource_gcp_applicationsPgResource }; +function limitToTypes(ltt) { + if (ltt) { + return qb => qb.limitToTypes(ltt); + } else { + return () => {}; + } +} const handler3 = { typeName: "LogEntry", codec: handler_codec_base64JSON, @@ -4767,6 +4726,9 @@ const handler3 = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return otherSource_log_entriesPgResource.get(spec); }, @@ -4825,6 +4787,9 @@ const handler4 = { organization_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return otherSource_organizationsPgResource.get(spec); }, @@ -4844,6 +4809,9 @@ const handler5 = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return otherSource_aws_applicationsPgResource.get(spec); }, @@ -4958,6 +4926,9 @@ const handler6 = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return otherSource_gcp_applicationsPgResource.get(spec); }, @@ -5071,6 +5042,9 @@ const handler7 = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_relational_item_relationsPgResource.get(spec); }, @@ -5092,6 +5066,9 @@ const handler8 = { child_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_relational_item_relation_composite_pksPgResource.get(spec); }, @@ -5111,6 +5088,9 @@ const handler9 = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return otherSource_single_table_item_relationsPgResource.get(spec); }, @@ -5131,6 +5111,9 @@ const handler10 = { child_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return otherSource_single_table_item_relation_composite_pksPgResource.get(spec); }, @@ -5150,6 +5133,9 @@ const handler11 = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return resource_single_table_itemsPgResource.get(spec); }, @@ -5157,51 +5143,8 @@ const handler11 = { return obj[0] === "SingleTablePost"; } }; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_single_table_items_meaning_of_life2 = []; +const makeArgs_single_table_items_meaning_of_life2 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life2.map(details => makeArg(path, args, details)); const otherSource_prioritiesPgResource = registry.pgResources["priorities"]; const handler12 = { typeName: "Priority", @@ -5215,6 +5158,9 @@ const handler12 = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return otherSource_prioritiesPgResource.get(spec); }, @@ -5234,6 +5180,9 @@ const handler13 = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return resource_single_table_itemsPgResource.get(spec); }, @@ -5241,51 +5190,8 @@ const handler13 = { return obj[0] === "SingleTableDivider"; } }; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_single_table_items_meaning_of_life3 = []; +const makeArgs_single_table_items_meaning_of_life3 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life3.map(details => makeArg(path, args, details)); const handler14 = { typeName: "SingleTableChecklist", codec: handler_codec_base64JSON, @@ -5298,6 +5204,9 @@ const handler14 = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return resource_single_table_itemsPgResource.get(spec); }, @@ -5305,51 +5214,8 @@ const handler14 = { return obj[0] === "SingleTableChecklist"; } }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_single_table_items_meaning_of_life4 = []; +const makeArgs_single_table_items_meaning_of_life4 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life4.map(details => makeArg(path, args, details)); const handler15 = { typeName: "SingleTableChecklistItem", codec: handler_codec_base64JSON, @@ -5362,6 +5228,9 @@ const handler15 = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return resource_single_table_itemsPgResource.get(spec); }, @@ -5369,51 +5238,8 @@ const handler15 = { return obj[0] === "SingleTableChecklistItem"; } }; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_single_table_items_meaning_of_life5 = []; +const makeArgs_single_table_items_meaning_of_life5 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life5.map(details => makeArg(path, args, details)); const pgResource_relational_topicsPgResource = registry.pgResources["relational_topics"]; const handler16 = { typeName: "RelationalTopic", @@ -5427,6 +5253,9 @@ const handler16 = { topic_item_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_relational_topicsPgResource.get(spec); }, @@ -5447,6 +5276,9 @@ const handler17 = { post_item_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_relational_postsPgResource.get(spec); }, @@ -5467,6 +5299,9 @@ const handler18 = { divider_item_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_relational_dividersPgResource.get(spec); }, @@ -5487,6 +5322,9 @@ const handler19 = { checklist_item_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_relational_checklistsPgResource.get(spec); }, @@ -5507,6 +5345,9 @@ const handler20 = { checklist_item_item_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_relational_checklist_itemsPgResource.get(spec); }, @@ -5520,6 +5361,9 @@ const handler21 = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -5563,6 +5407,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return paths_0_resource_first_party_vulnerabilitiesPgResource.get(spec); }, @@ -5582,6 +5429,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return paths_1_resource_third_party_vulnerabilitiesPgResource.get(spec); }, @@ -5592,112 +5442,27 @@ const nodeIdHandlerByTypeName = { AwsApplication: handler5, GcpApplication: handler6 }; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_all_single_tables = []; +const makeArgs_all_single_tables = (args, path = []) => argDetailsSimple_all_single_tables.map(details => makeArg(path, args, details)); const resource_all_single_tablesPgResource = registry.pgResources["all_single_tables"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_all_single_tables(args); return resource_all_single_tablesPgResource.execute(selectArgs); }; -const argDetailsSimple7 = [{ +const argDetailsSimple_get_single_table_topic_by_id = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 makeArgs_get_single_table_topic_by_id = (args, path = []) => argDetailsSimple_get_single_table_topic_by_id.map(details => makeArg(path, args, details)); const resource_get_single_table_topic_by_idPgResource = registry.pgResources["get_single_table_topic_by_id"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -5916,51 +5681,8 @@ const members9 = []; const resourceByTypeName9 = { __proto__: null }; -const argDetailsSimple8 = []; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 argDetailsSimple_first_party_vulnerabilities_cvss_score_int = []; +const makeArgs_first_party_vulnerabilities_cvss_score_int = (args, path = []) => argDetailsSimple_first_party_vulnerabilities_cvss_score_int.map(details => makeArg(path, args, details)); const resource_first_party_vulnerabilities_cvss_score_intPgResource = registry.pgResources["first_party_vulnerabilities_cvss_score_int"]; const members10 = [{ resource: members_0_resource_aws_application_first_party_vulnerabilitiesPgResource, @@ -6147,51 +5869,8 @@ const resourceByTypeName11 = { Person: otherSource_peoplePgResource, Organization: otherSource_organizationsPgResource }; -const argDetailsSimple9 = []; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 argDetailsSimple_third_party_vulnerabilities_cvss_score_int = []; +const makeArgs_third_party_vulnerabilities_cvss_score_int = (args, path = []) => argDetailsSimple_third_party_vulnerabilities_cvss_score_int.map(details => makeArg(path, args, details)); const resource_third_party_vulnerabilities_cvss_score_intPgResource = registry.pgResources["third_party_vulnerabilities_cvss_score_int"]; const members12 = [{ resource: members_1_resource_aws_application_third_party_vulnerabilitiesPgResource, @@ -6380,26 +6059,26 @@ const resourceByTypeName13 = { }; const decodeNodeId = makeDecodeNodeId([handler16, handler17, handler18, handler19, handler20]); const details = [{ - pkAttributes: relational_topicsUniques[0].attributes, + remotePkAttributes: relational_topicsUniques[0].attributes, handler: handler16 }, { - pkAttributes: relational_postsUniques[0].attributes, + remotePkAttributes: relational_postsUniques[0].attributes, handler: handler17 }, { - pkAttributes: relational_dividersUniques[0].attributes, + remotePkAttributes: relational_dividersUniques[0].attributes, handler: handler18 }, { - pkAttributes: relational_checklistsUniques[0].attributes, + remotePkAttributes: relational_checklistsUniques[0].attributes, handler: handler19 }, { - pkAttributes: relational_checklist_itemsUniques[0].attributes, + remotePkAttributes: relational_checklist_itemsUniques[0].attributes, handler: handler20 }]; const getSpec = $nodeId => { const $specifier = decodeNodeId($nodeId); const $handlerMatches = list(details.map(({ handler, - pkAttributes + remotePkAttributes }) => { const spec = handler.getSpec(access($specifier, handler.codec.name)); return object({ @@ -6407,7 +6086,7 @@ const getSpec = $nodeId => { const value = specifier?.[handler.codec.name]; return value != null ? handler.match(value) : false; }), - pks: list(pkAttributes.map(n => spec[n])) + pks: list(remotePkAttributes.map(n => spec[n])) }); })); const $pkValues = lambda($handlerMatches, handlerMatches => { @@ -6419,7 +6098,7 @@ const getSpec = $nodeId => { return memo; }, Object.create(null)); }; -const argDetailsSimple10 = [{ +const argDetailsSimple_custom_delete_relational_item = [{ graphqlArgName: "nodeId", postgresArgName: "nodeId", pgCodec: relationalItemsCodec, @@ -6428,137 +6107,94 @@ const argDetailsSimple10 = [{ return otherSource_relational_itemsPgResource.get(getSpec($nodeId)); } }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_custom_delete_relational_item = (args, path = []) => argDetailsSimple_custom_delete_relational_item.map(details => makeArg(path, args, details)); const resource_custom_delete_relational_itemPgResource = registry.pgResources["custom_delete_relational_item"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler4, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler2, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler8, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler10, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler7, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler9, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler3, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.FirstPartyVulnerability, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ThirdPartyVulnerability, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler5, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler6, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler4, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler2, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler8, $nodeId); }; const specFromArgs15 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler10, $nodeId); }; const specFromArgs16 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler7, $nodeId); }; const specFromArgs17 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler9, $nodeId); }; const specFromArgs18 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler3, $nodeId); }; const specFromArgs19 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.FirstPartyVulnerability, $nodeId); }; const specFromArgs20 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ThirdPartyVulnerability, $nodeId); }; const specFromArgs21 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler5, $nodeId); }; const specFromArgs22 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(handler6, $nodeId); }; export const typeDefs = /* GraphQL */`type SingleTableTopic implements SingleTableItem & Node { @@ -14639,7 +14275,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14654,27 +14290,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -14733,7 +14363,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14742,7 +14371,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14751,7 +14379,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14760,7 +14387,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14769,7 +14395,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14778,22 +14403,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14810,7 +14431,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14819,7 +14439,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14828,7 +14447,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14837,7 +14455,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14846,7 +14463,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14855,22 +14471,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14887,7 +14499,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14896,7 +14507,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14905,7 +14515,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14914,7 +14523,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14923,7 +14531,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14932,22 +14539,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14964,7 +14567,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14973,7 +14575,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14982,7 +14583,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14991,7 +14591,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15000,7 +14599,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15009,22 +14607,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15041,7 +14635,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15050,7 +14643,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15059,7 +14651,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15068,7 +14659,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15077,7 +14667,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15086,22 +14675,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15156,7 +14741,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15165,7 +14749,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15174,7 +14757,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15183,7 +14765,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15192,7 +14773,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15201,22 +14781,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15233,7 +14809,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15242,7 +14817,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15251,7 +14825,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15260,7 +14833,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15269,7 +14841,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15278,22 +14849,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15310,7 +14877,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15319,7 +14885,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15328,7 +14893,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15337,7 +14901,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15346,7 +14909,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15355,22 +14917,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15387,7 +14945,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15396,7 +14953,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15405,7 +14961,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15414,7 +14969,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15423,7 +14977,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15432,22 +14985,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15464,7 +15013,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15473,7 +15021,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15482,7 +15029,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15491,7 +15037,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15500,7 +15045,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15509,22 +15053,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15562,7 +15102,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15571,7 +15110,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15580,7 +15118,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15589,7 +15126,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15598,7 +15134,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15607,32 +15142,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -15734,7 +15265,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15743,7 +15273,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15752,7 +15281,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15761,7 +15289,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15770,7 +15297,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15779,22 +15305,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15811,7 +15333,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15820,7 +15341,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15829,7 +15349,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15838,7 +15357,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15847,7 +15365,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15856,22 +15373,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15888,7 +15401,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15897,7 +15409,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15906,7 +15417,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15915,7 +15425,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15924,7 +15433,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15933,22 +15441,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15966,31 +15470,21 @@ export const plans = { } }, LogEntriesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { log_entriesUniques[0].attributes.forEach(attributeName => { - const attribute = logEntriesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15999,19 +15493,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { log_entriesUniques[0].attributes.forEach(attributeName => { - const attribute = logEntriesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16020,11 +15512,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -16032,7 +15521,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16042,11 +15531,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -16054,7 +15540,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16064,11 +15550,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -16076,7 +15559,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16086,11 +15569,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -16098,7 +15578,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16108,11 +15588,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -16120,7 +15597,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16130,11 +15607,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -16142,7 +15616,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16152,11 +15626,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "text", direction: "ASC", ...(undefined != null ? { @@ -16164,7 +15635,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16174,11 +15645,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "text", direction: "DESC", ...(undefined != null ? { @@ -16186,7 +15654,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16195,8 +15663,8 @@ export const plans = { }, LogEntryCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -16209,17 +15677,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -16232,17 +15698,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -16255,17 +15719,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, text: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text", @@ -16278,13 +15740,11 @@ export const plans = { type: "attribute", attribute: "text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, AwsApplicationsConnection: { @@ -16369,7 +15829,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16378,7 +15837,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16387,7 +15845,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16396,7 +15853,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16405,7 +15861,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16414,32 +15869,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("VulnerabilitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -16561,23 +16012,12 @@ export const plans = { } }, VulnerabilitiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -16585,7 +16025,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16595,11 +16035,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -16607,7 +16044,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16617,11 +16054,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -16629,7 +16063,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16639,11 +16073,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -16651,7 +16082,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16661,11 +16092,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "ASC", ...(undefined != null ? { @@ -16673,7 +16101,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16683,11 +16111,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "DESC", ...(undefined != null ? { @@ -16695,7 +16120,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16704,8 +16129,8 @@ export const plans = { }, VulnerabilityCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -16718,17 +16143,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Vulnerability.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -16741,17 +16164,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Vulnerability.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cvssScore: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cvss_score", @@ -16764,13 +16185,11 @@ export const plans = { type: "attribute", attribute: "cvss_score", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Vulnerability.attributes.cvss_score.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, AwsApplicationsEdge: { @@ -16783,31 +16202,21 @@ export const plans = { } }, AwsApplicationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { aws_applicationsUniques[0].attributes.forEach(attributeName => { - const attribute = awsApplicationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16816,19 +16225,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { aws_applicationsUniques[0].attributes.forEach(attributeName => { - const attribute = awsApplicationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16837,11 +16244,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -16849,7 +16253,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16859,11 +16263,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -16871,7 +16272,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16881,11 +16282,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -16893,7 +16291,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16903,11 +16301,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -16915,7 +16310,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16925,11 +16320,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "ASC", ...(undefined != null ? { @@ -16937,7 +16329,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16947,11 +16339,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "DESC", ...(undefined != null ? { @@ -16959,7 +16348,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16969,11 +16358,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -16981,7 +16367,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16991,11 +16377,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -17003,7 +16386,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17013,11 +16396,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -17025,7 +16405,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17035,11 +16415,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -17047,7 +16424,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17057,11 +16434,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "aws_id", direction: "ASC", ...(undefined != null ? { @@ -17069,7 +16443,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17079,11 +16453,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "aws_id", direction: "DESC", ...(undefined != null ? { @@ -17091,7 +16462,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17100,8 +16471,8 @@ export const plans = { }, AwsApplicationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -17114,17 +16485,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -17137,17 +16506,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastDeployed: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_deployed", @@ -17160,17 +16527,15 @@ export const plans = { type: "attribute", attribute: "last_deployed", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.last_deployed.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -17183,17 +16548,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -17206,17 +16569,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, awsId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aws_id", @@ -17229,13 +16590,11 @@ export const plans = { type: "attribute", attribute: "aws_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.aws_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, GcpApplicationsConnection: { @@ -17320,7 +16679,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17329,7 +16687,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17338,7 +16695,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17347,7 +16703,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17356,7 +16711,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17365,32 +16719,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("VulnerabilitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -17434,31 +16784,21 @@ export const plans = { } }, GcpApplicationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { gcp_applicationsUniques[0].attributes.forEach(attributeName => { - const attribute = gcpApplicationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17467,19 +16807,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { gcp_applicationsUniques[0].attributes.forEach(attributeName => { - const attribute = gcpApplicationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17488,11 +16826,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -17500,7 +16835,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17510,11 +16845,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -17522,7 +16854,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17532,11 +16864,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -17544,7 +16873,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17554,11 +16883,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -17566,7 +16892,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17576,11 +16902,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "ASC", ...(undefined != null ? { @@ -17588,7 +16911,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17598,11 +16921,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "DESC", ...(undefined != null ? { @@ -17610,7 +16930,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17620,11 +16940,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -17632,7 +16949,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17642,11 +16959,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -17654,7 +16968,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17664,11 +16978,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -17676,7 +16987,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17686,11 +16997,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -17698,7 +17006,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17708,11 +17016,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "gcp_id", direction: "ASC", ...(undefined != null ? { @@ -17720,7 +17025,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17730,11 +17035,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "gcp_id", direction: "DESC", ...(undefined != null ? { @@ -17742,7 +17044,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17751,8 +17053,8 @@ export const plans = { }, GcpApplicationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -17765,17 +17067,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -17788,17 +17088,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastDeployed: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_deployed", @@ -17811,17 +17109,15 @@ export const plans = { type: "attribute", attribute: "last_deployed", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.last_deployed.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -17834,17 +17130,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -17857,17 +17151,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, gcpId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "gcp_id", @@ -17880,13 +17172,11 @@ export const plans = { type: "attribute", attribute: "gcp_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.gcp_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LogEntriesEdge: { @@ -17924,31 +17214,21 @@ export const plans = { } }, SingleTableItemsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17957,19 +17237,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17978,11 +17256,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -17990,7 +17265,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18000,11 +17275,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -18012,7 +17284,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18022,11 +17294,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -18034,7 +17303,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18044,11 +17313,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -18056,7 +17322,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18066,11 +17332,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -18078,7 +17341,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18088,11 +17351,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -18100,7 +17360,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18110,11 +17370,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -18122,7 +17379,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18132,11 +17389,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -18144,7 +17398,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18154,11 +17408,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -18166,7 +17417,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18176,11 +17427,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -18188,7 +17436,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18198,11 +17446,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -18210,7 +17455,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18220,11 +17465,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -18232,7 +17474,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18242,11 +17484,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -18254,7 +17493,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18264,11 +17503,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -18276,7 +17512,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18286,11 +17522,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -18298,7 +17531,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18308,11 +17541,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -18320,7 +17550,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18330,11 +17560,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -18342,7 +17569,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18352,11 +17579,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -18364,7 +17588,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18374,11 +17598,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -18386,7 +17607,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18396,11 +17617,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -18408,7 +17626,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18417,8 +17635,8 @@ export const plans = { }, SingleTableItemCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -18431,17 +17649,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -18454,17 +17670,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -18477,17 +17691,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -18500,17 +17712,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -18523,17 +17733,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -18546,17 +17754,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -18569,17 +17775,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -18592,17 +17796,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -18615,17 +17817,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -18638,13 +17838,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalItemsConnection: { @@ -18772,31 +17970,21 @@ export const plans = { } }, RelationalItemsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18805,19 +17993,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18826,11 +18012,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -18838,7 +18021,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18848,11 +18031,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -18860,7 +18040,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18870,11 +18050,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -18882,7 +18059,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18892,11 +18069,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -18904,7 +18078,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18914,11 +18088,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -18926,7 +18097,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18936,11 +18107,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -18948,7 +18116,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18958,11 +18126,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -18970,7 +18135,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18980,11 +18145,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -18992,7 +18154,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19002,11 +18164,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -19014,7 +18173,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19024,11 +18183,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -19036,7 +18192,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19046,11 +18202,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -19058,7 +18211,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19068,11 +18221,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -19080,7 +18230,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19090,11 +18240,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -19102,7 +18249,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19112,11 +18259,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -19124,7 +18268,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19134,11 +18278,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -19146,7 +18287,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19156,11 +18297,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -19168,7 +18306,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19178,11 +18316,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -19190,7 +18325,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19200,11 +18335,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -19212,7 +18344,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19222,11 +18354,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -19234,7 +18363,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19244,11 +18373,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -19256,7 +18382,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19265,8 +18391,8 @@ export const plans = { }, RelationalItemCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -19279,17 +18405,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -19302,17 +18426,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -19325,17 +18447,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -19348,17 +18468,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -19371,17 +18489,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -19394,17 +18510,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -19417,17 +18531,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -19440,17 +18552,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -19463,17 +18573,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -19486,33 +18594,20 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ApplicationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -19520,7 +18615,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19530,11 +18625,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -19542,7 +18634,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19552,11 +18644,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -19564,7 +18653,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19574,11 +18663,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -19586,7 +18672,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19596,11 +18682,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "ASC", ...(undefined != null ? { @@ -19608,7 +18691,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19618,11 +18701,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "DESC", ...(undefined != null ? { @@ -19630,7 +18710,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19639,8 +18719,8 @@ export const plans = { }, ApplicationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -19653,17 +18733,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Application.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -19676,17 +18754,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Application.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastDeployed: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_deployed", @@ -19699,13 +18775,11 @@ export const plans = { type: "attribute", attribute: "last_deployed", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Application.attributes.last_deployed.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SingleTableItemRelationsConnection: { @@ -19808,31 +18882,21 @@ export const plans = { } }, SingleTableItemRelationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19841,19 +18905,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19862,11 +18924,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -19874,7 +18933,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19884,11 +18943,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -19896,7 +18952,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19906,11 +18962,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -19918,7 +18971,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19928,11 +18981,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -19940,7 +18990,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19950,11 +19000,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -19962,7 +19009,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19972,11 +19019,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -19984,7 +19028,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19993,8 +19037,8 @@ export const plans = { }, SingleTableItemRelationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20007,17 +19051,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelations.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -20030,17 +19072,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelations.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -20053,41 +19093,29 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelations.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SingleTableItemRelationCompositePksOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20096,19 +19124,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20117,11 +19143,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -20129,7 +19152,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20139,11 +19162,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -20151,7 +19171,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20161,11 +19181,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -20173,7 +19190,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20183,11 +19200,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -20195,7 +19209,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20204,8 +19218,8 @@ export const plans = { }, SingleTableItemRelationCompositePkCondition: { parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -20218,17 +19232,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelationCompositePks.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -20241,13 +19253,11 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelationCompositePks.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SingleTablePost: { @@ -20260,7 +19270,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs2(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -20275,27 +19285,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -20368,7 +19372,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20377,7 +19380,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20386,7 +19388,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20395,7 +19396,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20404,7 +19404,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20413,22 +19412,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20445,7 +19440,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20454,7 +19448,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20463,7 +19456,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20472,7 +19464,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20481,7 +19472,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20490,22 +19480,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20522,7 +19508,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20531,7 +19516,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20540,7 +19524,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20549,7 +19532,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20558,7 +19540,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20567,22 +19548,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20599,7 +19576,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20608,7 +19584,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20617,7 +19592,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20626,7 +19600,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20635,7 +19608,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20644,22 +19616,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20676,7 +19644,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20685,7 +19652,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20694,7 +19660,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20703,7 +19668,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20712,7 +19676,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20721,22 +19684,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20771,7 +19730,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20780,7 +19738,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20789,7 +19746,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20798,7 +19754,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20807,7 +19762,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20816,22 +19770,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20848,7 +19798,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs3(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -20863,27 +19813,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -20945,7 +19889,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20954,7 +19897,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20963,7 +19905,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20972,7 +19913,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20981,7 +19921,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20990,22 +19929,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21022,7 +19957,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21031,7 +19965,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21040,7 +19973,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21049,7 +19981,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21058,7 +19989,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21067,22 +19997,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21099,7 +20025,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21108,7 +20033,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21117,7 +20041,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21126,7 +20049,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21135,7 +20057,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21144,22 +20065,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21176,7 +20093,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21185,7 +20101,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21194,7 +20109,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21203,7 +20117,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21212,7 +20125,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21221,22 +20133,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21253,7 +20161,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21262,7 +20169,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21271,7 +20177,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21280,7 +20185,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21289,7 +20193,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21298,22 +20201,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21335,7 +20234,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -21350,27 +20249,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -21429,7 +20322,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21438,7 +20330,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21447,7 +20338,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21456,7 +20346,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21465,7 +20354,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21474,22 +20362,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21506,7 +20390,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21515,7 +20398,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21524,7 +20406,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21533,7 +20414,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21542,7 +20422,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21551,22 +20430,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21583,7 +20458,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21592,7 +20466,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21601,7 +20474,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21610,7 +20482,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21619,7 +20490,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21628,22 +20498,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21660,7 +20526,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21669,7 +20534,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21678,7 +20542,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21687,7 +20550,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21696,7 +20558,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21705,22 +20566,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21737,7 +20594,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21746,7 +20602,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21755,7 +20610,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21764,7 +20618,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21773,7 +20626,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21782,22 +20634,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21824,7 +20672,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs5(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -21839,27 +20687,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -21929,7 +20771,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21938,7 +20779,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21947,7 +20787,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21956,7 +20795,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21965,7 +20803,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21974,22 +20811,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22006,7 +20839,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22015,7 +20847,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22024,7 +20855,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22033,7 +20863,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22042,7 +20871,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22051,22 +20879,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22083,7 +20907,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22092,7 +20915,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22101,7 +20923,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22110,7 +20931,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22119,7 +20939,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22128,22 +20947,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22160,7 +20975,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22169,7 +20983,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22178,7 +20991,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22187,7 +20999,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22196,7 +21007,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22205,22 +21015,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22237,7 +21043,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22246,7 +21051,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22255,7 +21059,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22264,7 +21067,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22273,7 +21075,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22282,22 +21083,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22359,7 +21156,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22368,7 +21164,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22377,7 +21172,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22386,7 +21180,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22395,7 +21188,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22404,22 +21196,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22486,7 +21274,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22495,7 +21282,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22504,7 +21290,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22513,7 +21298,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22522,7 +21306,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22531,22 +21314,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22571,7 +21350,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22580,7 +21358,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22589,7 +21366,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22598,7 +21374,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22607,7 +21382,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22616,22 +21390,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22656,7 +21426,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22665,7 +21434,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22674,7 +21442,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22683,7 +21450,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22692,7 +21458,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22701,22 +21466,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22741,7 +21502,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22750,7 +21510,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22759,7 +21518,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22768,7 +21526,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22777,7 +21534,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22786,22 +21542,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22826,7 +21578,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22835,7 +21586,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22844,7 +21594,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22853,7 +21602,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22862,7 +21610,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22871,22 +21618,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22894,31 +21637,21 @@ export const plans = { } }, RelationalItemRelationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22927,19 +21660,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22948,11 +21679,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -22960,7 +21688,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22970,11 +21698,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -22982,7 +21707,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -22992,11 +21717,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -23004,7 +21726,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23014,11 +21736,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -23026,7 +21745,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23036,11 +21755,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -23048,7 +21764,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23058,11 +21774,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -23070,7 +21783,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23079,8 +21792,8 @@ export const plans = { }, RelationalItemRelationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -23093,17 +21806,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelations.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -23116,17 +21827,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelations.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -23139,41 +21848,29 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelations.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalItemRelationCompositePksOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23182,19 +21879,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23203,11 +21898,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -23215,7 +21907,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23225,11 +21917,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -23237,7 +21926,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23247,11 +21936,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -23259,7 +21945,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23269,11 +21955,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -23281,7 +21964,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -23290,8 +21973,8 @@ export const plans = { }, RelationalItemRelationCompositePkCondition: { parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -23304,17 +21987,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelationCompositePks.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -23327,13 +22008,11 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelationCompositePks.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalPost: { @@ -23442,7 +22121,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23451,7 +22129,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23460,7 +22137,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23469,7 +22145,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23478,7 +22153,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23487,22 +22161,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23527,7 +22197,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23536,7 +22205,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23545,7 +22213,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23554,7 +22221,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23563,7 +22229,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23572,22 +22237,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23612,7 +22273,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23621,7 +22281,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23630,7 +22289,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23639,7 +22297,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23648,7 +22305,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23657,22 +22313,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23697,7 +22349,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23706,7 +22357,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23715,7 +22365,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23724,7 +22373,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23733,7 +22381,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23742,22 +22389,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23782,7 +22425,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23791,7 +22433,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23800,7 +22441,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23809,7 +22449,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23818,7 +22457,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23827,22 +22465,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23952,7 +22586,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23961,7 +22594,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23970,7 +22602,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23979,7 +22610,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23988,7 +22618,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23997,22 +22626,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24037,7 +22662,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24046,7 +22670,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24055,7 +22678,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24064,7 +22686,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24073,7 +22694,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24082,22 +22702,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24122,7 +22738,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24131,7 +22746,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24140,7 +22754,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24149,7 +22762,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24158,7 +22770,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24167,22 +22778,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24207,7 +22814,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24216,7 +22822,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24225,7 +22830,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24234,7 +22838,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24243,7 +22846,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24252,22 +22854,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24292,7 +22890,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24301,7 +22898,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24310,7 +22906,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24319,7 +22914,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24328,7 +22922,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24337,22 +22930,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24459,7 +23048,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24468,7 +23056,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24477,7 +23064,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24486,7 +23072,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24495,7 +23080,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24504,22 +23088,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24544,7 +23124,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24553,7 +23132,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24562,7 +23140,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24571,7 +23148,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24580,7 +23156,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24589,22 +23164,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24629,7 +23200,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24638,7 +23208,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24647,7 +23216,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24656,7 +23224,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24665,7 +23232,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24674,22 +23240,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24714,7 +23276,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24723,7 +23284,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24732,7 +23292,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24741,7 +23300,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24750,7 +23308,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24759,22 +23316,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24799,7 +23352,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24808,7 +23360,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24817,7 +23368,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24826,7 +23376,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24835,7 +23384,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24844,22 +23392,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24969,7 +23513,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24978,7 +23521,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24987,7 +23529,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24996,7 +23537,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25005,7 +23545,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25014,22 +23553,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25054,7 +23589,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25063,7 +23597,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25072,7 +23605,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25081,7 +23613,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25090,7 +23621,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25099,22 +23629,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25139,7 +23665,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25148,7 +23673,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25157,7 +23681,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25166,7 +23689,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25175,7 +23697,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25184,22 +23705,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25224,7 +23741,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25233,7 +23749,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25242,7 +23757,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25251,7 +23765,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25260,7 +23773,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25269,22 +23781,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25309,7 +23817,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25318,7 +23825,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25327,7 +23833,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25336,7 +23841,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25345,7 +23849,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25354,22 +23857,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25388,115 +23887,115 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler21.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, organizationByOrganizationId(_$root, args) { return otherSource_organizationsPgResource.get({ - organization_id: args.get("organizationId") + organization_id: args.getRaw("organizationId") }); }, organizationByName(_$root, args) { return otherSource_organizationsPgResource.get({ - name: args.get("name") + name: args.getRaw("name") }); }, personByPersonId(_$root, args) { return otherSource_peoplePgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, personByUsername(_$root, args) { return otherSource_peoplePgResource.get({ - username: args.get("username") + username: args.getRaw("username") }); }, priorityById(_$root, args) { return otherSource_prioritiesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, relationalChecklistByChecklistItemId(_$root, args) { return pgResource_relational_checklistsPgResource.get({ - checklist_item_id: args.get("checklistItemId") + checklist_item_id: args.getRaw("checklistItemId") }); }, relationalItemRelationCompositePkByParentIdAndChildId(_$root, args) { return pgResource_relational_item_relation_composite_pksPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, relationalTopicByTopicItemId(_$root, args) { return pgResource_relational_topicsPgResource.get({ - topic_item_id: args.get("topicItemId") + topic_item_id: args.getRaw("topicItemId") }); }, singleTableItemRelationCompositePkByParentIdAndChildId(_$root, args) { return otherSource_single_table_item_relation_composite_pksPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, relationalChecklistItemByChecklistItemItemId(_$root, args) { return pgResource_relational_checklist_itemsPgResource.get({ - checklist_item_item_id: args.get("checklistItemItemId") + checklist_item_item_id: args.getRaw("checklistItemItemId") }); }, relationalDividerByDividerItemId(_$root, args) { return pgResource_relational_dividersPgResource.get({ - divider_item_id: args.get("dividerItemId") + divider_item_id: args.getRaw("dividerItemId") }); }, relationalItemRelationById(_$root, args) { return pgResource_relational_item_relationsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, relationalItemRelationByParentIdAndChildId(_$root, args) { return pgResource_relational_item_relationsPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, singleTableItemRelationById(_$root, args) { return otherSource_single_table_item_relationsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, singleTableItemRelationByParentIdAndChildId(_$root, args) { return otherSource_single_table_item_relationsPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, logEntryById(_$root, args) { return otherSource_log_entriesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, relationalPostByPostItemId(_$root, args) { return pgResource_relational_postsPgResource.get({ - post_item_id: args.get("postItemId") + post_item_id: args.getRaw("postItemId") }); }, firstPartyVulnerabilityById(_$root, args) { return paths_0_resource_first_party_vulnerabilitiesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, thirdPartyVulnerabilityById(_$root, args) { return paths_1_resource_third_party_vulnerabilitiesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, awsApplicationById(_$root, args) { return otherSource_aws_applicationsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, gcpApplicationById(_$root, args) { return otherSource_gcp_applicationsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, allSingleTables: { @@ -25513,7 +24012,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25522,7 +24020,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25531,7 +24028,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25540,7 +24036,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25549,7 +24044,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25558,95 +24052,95 @@ export const plans = { } }, getSingleTableTopicById($root, args, _info) { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_get_single_table_topic_by_id(args); return resource_get_single_table_topic_by_idPgResource.execute(selectArgs); }, singleTableTopic(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, singleTablePost(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, singleTableDivider(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, singleTableChecklist(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, singleTableChecklistItem(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, organization(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, priority(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher8($nodeId); }, relationalChecklist(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher9($nodeId); }, relationalItemRelationCompositePk(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher10($nodeId); }, relationalTopic(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher11($nodeId); }, singleTableItemRelationCompositePk(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher12($nodeId); }, relationalChecklistItem(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher13($nodeId); }, relationalDivider(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher14($nodeId); }, relationalItemRelation(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher15($nodeId); }, singleTableItemRelation(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher16($nodeId); }, logEntry(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher17($nodeId); }, relationalPost(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher18($nodeId); }, firstPartyVulnerability(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher19($nodeId); }, thirdPartyVulnerability(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher20($nodeId); }, awsApplication(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher21($nodeId); }, gcpApplication(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher22($nodeId); }, allVulnerabilities: { @@ -25663,7 +24157,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25672,7 +24165,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25681,7 +24173,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25690,7 +24181,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25699,7 +24189,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25708,32 +24197,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("VulnerabilitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -25753,7 +24238,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25762,7 +24246,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25771,7 +24254,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25780,7 +24262,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25789,7 +24270,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25798,32 +24278,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -25843,7 +24319,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25852,7 +24327,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25861,7 +24335,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25870,7 +24343,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25879,7 +24351,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25888,22 +24359,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ZeroImplementationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25917,7 +24384,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25926,7 +24392,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25935,7 +24400,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25944,7 +24408,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25953,7 +24416,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25962,22 +24424,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OrganizationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25991,7 +24449,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26000,7 +24457,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26009,7 +24465,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26018,7 +24473,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26027,7 +24481,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26036,22 +24489,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26065,7 +24514,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26074,7 +24522,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26083,7 +24530,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26092,7 +24538,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26101,7 +24546,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26117,7 +24561,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26126,7 +24569,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26135,7 +24577,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26144,7 +24585,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26153,7 +24593,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26162,22 +24601,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalChecklistsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26191,7 +24626,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26200,7 +24634,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26209,7 +24642,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26218,7 +24650,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26227,7 +24658,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26236,22 +24666,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26265,7 +24691,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26274,7 +24699,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26283,7 +24707,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26292,7 +24715,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26301,7 +24723,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26310,22 +24731,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalTopicsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26339,7 +24756,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26348,7 +24764,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26357,7 +24772,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26366,7 +24780,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26375,7 +24788,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26384,22 +24796,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26413,7 +24821,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26422,7 +24829,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26431,7 +24837,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26440,7 +24845,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26449,7 +24853,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26458,22 +24861,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalChecklistItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26487,7 +24886,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26496,7 +24894,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26505,7 +24902,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26514,7 +24910,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26523,7 +24918,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26532,22 +24926,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalDividersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26561,7 +24951,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26570,7 +24959,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26579,7 +24967,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26588,7 +24975,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26597,7 +24983,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26606,22 +24991,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26635,7 +25016,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26644,7 +25024,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26653,7 +25032,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26662,7 +25040,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26671,7 +25048,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26680,22 +25056,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26709,7 +25081,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26718,7 +25089,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26727,7 +25097,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26736,7 +25105,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26745,7 +25113,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26754,22 +25121,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26783,7 +25146,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26792,7 +25154,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26801,7 +25162,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26810,7 +25170,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26819,7 +25178,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26828,22 +25186,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalPostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26857,7 +25211,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26866,7 +25219,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26875,7 +25227,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26884,7 +25235,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26893,7 +25243,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26902,22 +25251,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FirstPartyVulnerabilitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26931,7 +25276,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26940,7 +25284,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26949,7 +25292,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26958,7 +25300,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26967,7 +25308,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26976,22 +25316,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ThirdPartyVulnerabilitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27005,7 +25341,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27014,7 +25349,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27023,7 +25357,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27032,7 +25365,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27041,7 +25373,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27050,22 +25381,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27079,7 +25406,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27088,7 +25414,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27097,7 +25422,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27106,7 +25430,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27115,7 +25438,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27124,22 +25446,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27153,7 +25471,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27162,7 +25479,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27171,7 +25487,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27180,7 +25495,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27189,7 +25503,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27198,22 +25511,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27227,7 +25536,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27236,7 +25544,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27245,7 +25552,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27254,7 +25560,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27263,7 +25568,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27272,22 +25576,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27304,7 +25604,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs8(args); + const extraSelectArgs = makeArgs_first_party_vulnerabilities_cvss_score_int(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -27319,27 +25619,21 @@ export const plans = { if (resource_first_party_vulnerabilities_cvss_score_intPgResource.isUnique && !resource_first_party_vulnerabilities_cvss_score_intPgResource.codec.attributes && typeof resource_first_party_vulnerabilities_cvss_score_intPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_first_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${resource_first_party_vulnerabilities_cvss_score_intPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_first_party_vulnerabilities_cvss_score_intPgResource.from, resource_first_party_vulnerabilities_cvss_score_intPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_first_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_first_party_vulnerabilities_cvss_score_intPgResource.execute(selectArgs); @@ -27388,7 +25682,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27397,7 +25690,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27406,7 +25698,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27415,7 +25706,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27424,7 +25714,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27433,32 +25722,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -27502,7 +25787,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs9(args); + const extraSelectArgs = makeArgs_third_party_vulnerabilities_cvss_score_int(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -27517,27 +25802,21 @@ export const plans = { if (resource_third_party_vulnerabilities_cvss_score_intPgResource.isUnique && !resource_third_party_vulnerabilities_cvss_score_intPgResource.codec.attributes && typeof resource_third_party_vulnerabilities_cvss_score_intPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_third_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${resource_third_party_vulnerabilities_cvss_score_intPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_third_party_vulnerabilities_cvss_score_intPgResource.from, resource_third_party_vulnerabilities_cvss_score_intPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_third_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_third_party_vulnerabilities_cvss_score_intPgResource.execute(selectArgs); @@ -27586,7 +25865,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27595,7 +25873,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27604,7 +25881,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27613,7 +25889,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27622,7 +25897,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27631,32 +25905,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -27716,23 +25986,12 @@ export const plans = { } }, ZeroImplementationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -27740,7 +25999,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27750,11 +26009,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -27762,7 +26018,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27772,11 +26028,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -27784,7 +26037,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27794,11 +26047,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -27806,7 +26056,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27815,8 +26065,8 @@ export const plans = { }, ZeroImplementationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -27829,17 +26079,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_ZeroImplementation.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -27852,13 +26100,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_ZeroImplementation.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, OrganizationsConnection: { @@ -27887,31 +26133,21 @@ export const plans = { } }, OrganizationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { organizationsUniques[0].attributes.forEach(attributeName => { - const attribute = organizationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27920,19 +26156,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { organizationsUniques[0].attributes.forEach(attributeName => { - const attribute = organizationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27941,11 +26175,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -27953,7 +26184,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27963,11 +26194,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -27975,7 +26203,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27985,11 +26213,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -27997,7 +26222,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28007,11 +26232,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -28019,7 +26241,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28028,8 +26250,8 @@ export const plans = { }, OrganizationCondition: { organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -28042,17 +26264,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_organizations.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -28065,13 +26285,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_organizations.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -28100,31 +26318,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28133,19 +26341,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28154,11 +26360,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -28166,7 +26369,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28176,11 +26379,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -28188,7 +26388,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28198,11 +26398,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "username", direction: "ASC", ...(undefined != null ? { @@ -28210,7 +26407,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28220,11 +26417,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "username", direction: "DESC", ...(undefined != null ? { @@ -28232,7 +26426,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28241,8 +26435,8 @@ export const plans = { }, PersonCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -28255,17 +26449,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, username: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "username", @@ -28278,13 +26470,11 @@ export const plans = { type: "attribute", attribute: "username", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.username.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PrioritiesConnection: { @@ -28338,31 +26528,21 @@ export const plans = { } }, RelationalChecklistsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklistsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28371,19 +26551,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklistsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28392,11 +26570,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -28404,7 +26579,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28414,11 +26589,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -28426,7 +26598,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28436,11 +26608,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -28448,7 +26617,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28458,11 +26627,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -28470,7 +26636,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28480,11 +26646,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -28492,7 +26655,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28502,11 +26665,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -28514,7 +26674,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28524,11 +26684,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -28536,7 +26693,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28546,11 +26703,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -28558,7 +26712,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28568,11 +26722,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -28580,7 +26731,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28590,11 +26741,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -28602,7 +26750,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28612,11 +26760,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -28624,7 +26769,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28634,11 +26779,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -28646,7 +26788,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28656,11 +26798,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -28668,7 +26807,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28678,11 +26817,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -28690,7 +26826,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28700,11 +26836,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -28712,7 +26845,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28722,11 +26855,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -28734,7 +26864,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28744,11 +26874,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -28756,7 +26883,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28766,11 +26893,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -28778,7 +26902,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28788,11 +26912,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -28800,7 +26921,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28810,11 +26931,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -28822,7 +26940,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28832,11 +26950,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -28844,7 +26959,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28854,11 +26969,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -28866,7 +26978,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28875,8 +26987,8 @@ export const plans = { }, RelationalChecklistCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -28889,17 +27001,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -28912,17 +27022,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -28935,17 +27043,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -28958,17 +27064,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -28981,17 +27085,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -29004,17 +27106,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -29027,17 +27127,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -29050,17 +27148,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -29073,17 +27169,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -29096,17 +27190,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -29119,13 +27211,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalTopicsConnection: { @@ -29154,31 +27244,21 @@ export const plans = { } }, RelationalTopicsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_topicsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalTopicsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29187,19 +27267,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_topicsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalTopicsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29208,11 +27286,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -29220,7 +27295,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29230,11 +27305,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -29242,7 +27314,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29252,11 +27324,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -29264,7 +27333,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29274,11 +27343,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -29286,7 +27352,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29296,11 +27362,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -29308,7 +27371,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29318,11 +27381,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -29330,7 +27390,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29340,11 +27400,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -29352,7 +27409,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29362,11 +27419,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -29374,7 +27428,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29384,11 +27438,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -29396,7 +27447,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29406,11 +27457,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -29418,7 +27466,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29428,11 +27476,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -29440,7 +27485,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29450,11 +27495,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -29462,7 +27504,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29472,11 +27514,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -29484,7 +27523,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29494,11 +27533,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -29506,7 +27542,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29516,11 +27552,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -29528,7 +27561,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29538,11 +27571,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -29550,7 +27580,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29560,11 +27590,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -29572,7 +27599,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29582,11 +27609,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -29594,7 +27618,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29604,11 +27628,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -29616,7 +27637,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29626,11 +27647,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -29638,7 +27656,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29648,11 +27666,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -29660,7 +27675,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29670,11 +27685,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -29682,7 +27694,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29691,8 +27703,8 @@ export const plans = { }, RelationalTopicCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -29705,17 +27717,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -29728,17 +27738,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -29751,17 +27759,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -29774,17 +27780,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -29797,17 +27801,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -29820,17 +27822,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -29843,17 +27843,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -29866,17 +27864,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -29889,17 +27885,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -29912,17 +27906,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -29935,13 +27927,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalChecklistItemsConnection: { @@ -29970,31 +27960,21 @@ export const plans = { } }, RelationalChecklistItemsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklist_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30003,19 +27983,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklist_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30024,11 +28002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -30036,7 +28011,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30046,11 +28021,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -30058,7 +28030,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30068,11 +28040,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "ASC", ...(undefined != null ? { @@ -30080,7 +28049,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30090,11 +28059,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "DESC", ...(undefined != null ? { @@ -30102,7 +28068,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30112,11 +28078,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -30124,7 +28087,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30134,11 +28097,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -30146,7 +28106,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30156,11 +28116,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -30168,7 +28125,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30178,11 +28135,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -30190,7 +28144,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30200,11 +28154,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -30212,7 +28163,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30222,11 +28173,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -30234,7 +28182,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30244,11 +28192,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -30256,7 +28201,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30266,11 +28211,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -30278,7 +28220,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30288,11 +28230,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -30300,7 +28239,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30310,11 +28249,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -30322,7 +28258,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30332,11 +28268,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -30344,7 +28277,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30354,11 +28287,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -30366,7 +28296,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30376,11 +28306,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -30388,7 +28315,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30398,11 +28325,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -30410,7 +28334,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30420,11 +28344,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -30432,7 +28353,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30442,11 +28363,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -30454,7 +28372,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30464,11 +28382,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -30476,7 +28391,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30486,11 +28401,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -30498,7 +28410,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30508,11 +28420,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -30520,7 +28429,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30530,11 +28439,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -30542,7 +28448,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30551,8 +28457,8 @@ export const plans = { }, RelationalChecklistItemCondition: { description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -30565,17 +28471,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, note: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "note", @@ -30588,17 +28492,15 @@ export const plans = { type: "attribute", attribute: "note", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.note.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -30611,17 +28513,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -30634,17 +28534,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -30657,17 +28555,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -30680,17 +28576,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -30703,17 +28597,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -30726,17 +28618,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -30749,17 +28639,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -30772,17 +28660,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -30795,17 +28681,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -30818,13 +28702,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalDividersConnection: { @@ -30853,31 +28735,21 @@ export const plans = { } }, RelationalDividersOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_dividersUniques[0].attributes.forEach(attributeName => { - const attribute = relationalDividersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30886,19 +28758,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_dividersUniques[0].attributes.forEach(attributeName => { - const attribute = relationalDividersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30907,11 +28777,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -30919,7 +28786,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30929,11 +28796,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -30941,7 +28805,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30951,11 +28815,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "color", direction: "ASC", ...(undefined != null ? { @@ -30963,7 +28824,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30973,11 +28834,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "color", direction: "DESC", ...(undefined != null ? { @@ -30985,7 +28843,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30995,11 +28853,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -31007,7 +28862,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31017,11 +28872,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -31029,7 +28881,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31039,11 +28891,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -31051,7 +28900,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31061,11 +28910,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -31073,7 +28919,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31083,11 +28929,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -31095,7 +28938,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31105,11 +28948,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -31117,7 +28957,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31127,11 +28967,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -31139,7 +28976,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31149,11 +28986,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -31161,7 +28995,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31171,11 +29005,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -31183,7 +29014,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31193,11 +29024,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -31205,7 +29033,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31215,11 +29043,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -31227,7 +29052,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31237,11 +29062,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -31249,7 +29071,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31259,11 +29081,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -31271,7 +29090,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31281,11 +29100,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -31293,7 +29109,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31303,11 +29119,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -31315,7 +29128,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31325,11 +29138,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -31337,7 +29147,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31347,11 +29157,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -31359,7 +29166,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31369,11 +29176,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -31381,7 +29185,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31391,11 +29195,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -31403,7 +29204,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31413,11 +29214,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -31425,7 +29223,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31434,8 +29232,8 @@ export const plans = { }, RelationalDividerCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -31448,17 +29246,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, color: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "color", @@ -31471,17 +29267,15 @@ export const plans = { type: "attribute", attribute: "color", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.color.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -31494,17 +29288,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -31517,17 +29309,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -31540,17 +29330,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -31563,17 +29351,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -31586,17 +29372,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -31609,17 +29393,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -31632,17 +29414,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -31655,17 +29435,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -31678,17 +29456,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -31701,13 +29477,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalPostsConnection: { @@ -31736,31 +29510,21 @@ export const plans = { } }, RelationalPostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_postsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalPostsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31769,19 +29533,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_postsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalPostsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31790,11 +29552,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -31802,7 +29561,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31812,11 +29571,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -31824,7 +29580,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31834,11 +29590,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -31846,7 +29599,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31856,11 +29609,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -31868,7 +29618,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31878,11 +29628,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "ASC", ...(undefined != null ? { @@ -31890,7 +29637,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31900,11 +29647,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "DESC", ...(undefined != null ? { @@ -31912,7 +29656,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31922,11 +29666,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -31934,7 +29675,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31944,11 +29685,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -31956,7 +29694,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31966,11 +29704,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -31978,7 +29713,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31988,11 +29723,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -32000,7 +29732,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32010,11 +29742,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -32022,7 +29751,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32032,11 +29761,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -32044,7 +29770,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32054,11 +29780,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -32066,7 +29789,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32076,11 +29799,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -32088,7 +29808,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32098,11 +29818,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -32110,7 +29827,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32120,11 +29837,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -32132,7 +29846,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32142,11 +29856,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -32154,7 +29865,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32164,11 +29875,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -32176,7 +29884,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32186,11 +29894,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -32198,7 +29903,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32208,11 +29913,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -32220,7 +29922,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32230,11 +29932,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -32242,7 +29941,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32252,11 +29951,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -32264,7 +29960,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32274,11 +29970,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -32286,7 +29979,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32296,11 +29989,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -32308,7 +29998,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32318,11 +30008,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -32330,7 +30017,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32340,11 +30027,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -32352,7 +30036,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32361,8 +30045,8 @@ export const plans = { }, RelationalPostCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -32375,17 +30059,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -32398,17 +30080,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, note: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "note", @@ -32421,17 +30101,15 @@ export const plans = { type: "attribute", attribute: "note", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.note.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -32444,17 +30122,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -32467,17 +30143,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -32490,17 +30164,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -32513,17 +30185,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -32536,17 +30206,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -32559,17 +30227,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -32582,17 +30248,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -32605,17 +30269,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -32628,17 +30290,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -32651,13 +30311,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FirstPartyVulnerabilitiesConnection: { @@ -32686,31 +30344,21 @@ export const plans = { } }, FirstPartyVulnerabilitiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { first_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = firstPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32719,19 +30367,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { first_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = firstPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32740,11 +30386,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -32752,7 +30395,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32762,11 +30405,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -32774,7 +30414,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32784,11 +30424,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -32796,7 +30433,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32806,11 +30443,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -32818,7 +30452,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32828,11 +30462,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "ASC", ...(undefined != null ? { @@ -32840,7 +30471,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32850,11 +30481,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "DESC", ...(undefined != null ? { @@ -32862,7 +30490,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32872,11 +30500,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "team_name", direction: "ASC", ...(undefined != null ? { @@ -32884,7 +30509,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32894,11 +30519,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "team_name", direction: "DESC", ...(undefined != null ? { @@ -32906,7 +30528,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32915,8 +30537,8 @@ export const plans = { }, FirstPartyVulnerabilityCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -32929,17 +30551,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_firstPartyVulnerabilities.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -32952,17 +30572,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_firstPartyVulnerabilities.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cvssScore: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cvss_score", @@ -32975,17 +30593,15 @@ export const plans = { type: "attribute", attribute: "cvss_score", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_firstPartyVulnerabilities.attributes.cvss_score.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, teamName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "team_name", @@ -32998,13 +30614,11 @@ export const plans = { type: "attribute", attribute: "team_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_firstPartyVulnerabilities.attributes.team_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ThirdPartyVulnerabilitiesConnection: { @@ -33033,31 +30647,21 @@ export const plans = { } }, ThirdPartyVulnerabilitiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { third_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = thirdPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33066,19 +30670,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { third_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = thirdPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33087,11 +30689,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -33099,7 +30698,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33109,11 +30708,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -33121,7 +30717,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33131,11 +30727,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -33143,7 +30736,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33153,11 +30746,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -33165,7 +30755,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33175,11 +30765,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "ASC", ...(undefined != null ? { @@ -33187,7 +30774,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33197,11 +30784,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "DESC", ...(undefined != null ? { @@ -33209,7 +30793,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33219,11 +30803,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "vendor_name", direction: "ASC", ...(undefined != null ? { @@ -33231,7 +30812,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33241,11 +30822,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "vendor_name", direction: "DESC", ...(undefined != null ? { @@ -33253,7 +30831,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33262,8 +30840,8 @@ export const plans = { }, ThirdPartyVulnerabilityCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -33276,17 +30854,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_thirdPartyVulnerabilities.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -33299,17 +30875,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_thirdPartyVulnerabilities.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cvssScore: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cvss_score", @@ -33322,17 +30896,15 @@ export const plans = { type: "attribute", attribute: "cvss_score", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_thirdPartyVulnerabilities.attributes.cvss_score.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, vendorName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "vendor_name", @@ -33345,20 +30917,18 @@ export const plans = { type: "attribute", attribute: "vendor_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_thirdPartyVulnerabilities.attributes.vendor_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, customDeleteRelationalItem: { plan($root, args, _info) { - const selectArgs = makeArgs10(args, ["input"]); + const selectArgs = makeArgs_custom_delete_relational_item(args, ["input"]); const $result = resource_custom_delete_relational_itemPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -33368,9 +30938,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -33378,17 +30957,17 @@ export const plans = { }, createOrganization: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_organizationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_organizationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -33398,17 +30977,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_peoplePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_peoplePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -33418,17 +30997,17 @@ export const plans = { }, createRelationalItemRelationCompositePk: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_relational_item_relation_composite_pksPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_relational_item_relation_composite_pksPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -33438,17 +31017,17 @@ export const plans = { }, createSingleTableItemRelationCompositePk: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_single_table_item_relation_composite_pksPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_single_table_item_relation_composite_pksPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -33458,17 +31037,17 @@ export const plans = { }, createRelationalItemRelation: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_relational_item_relationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_relational_item_relationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -33478,17 +31057,17 @@ export const plans = { }, createSingleTableItemRelation: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_single_table_item_relationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_single_table_item_relationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -33498,17 +31077,17 @@ export const plans = { }, createLogEntry: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_log_entriesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_log_entriesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -33518,17 +31097,17 @@ export const plans = { }, createFirstPartyVulnerability: { plan(_, args) { + const $insert = pgInsertSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -33538,17 +31117,17 @@ export const plans = { }, createThirdPartyVulnerability: { plan(_, args) { + const $insert = pgInsertSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -33558,17 +31137,17 @@ export const plans = { }, createAwsApplication: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_aws_applicationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_aws_applicationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -33578,17 +31157,17 @@ export const plans = { }, createGcpApplication: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_gcp_applicationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_gcp_applicationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -33598,11 +31177,11 @@ export const plans = { }, updateOrganization: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_organizationsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(otherSource_organizationsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33617,13 +31196,13 @@ export const plans = { }, updateOrganizationByOrganizationId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_organizationsPgResource, { - organization_id: args.get(['input', "organizationId"]) - }) + const $update = pgUpdateSingle(otherSource_organizationsPgResource, { + organization_id: args.getRaw(['input', "organizationId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33638,13 +31217,13 @@ export const plans = { }, updateOrganizationByName: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_organizationsPgResource, { - name: args.get(['input', "name"]) - }) + const $update = pgUpdateSingle(otherSource_organizationsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33659,11 +31238,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_peoplePgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(otherSource_peoplePgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33678,13 +31257,13 @@ export const plans = { }, updatePersonByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_peoplePgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(otherSource_peoplePgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33699,13 +31278,13 @@ export const plans = { }, updatePersonByUsername: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_peoplePgResource, { - username: args.get(['input', "username"]) - }) + const $update = pgUpdateSingle(otherSource_peoplePgResource, { + username: args.getRaw(['input', "username"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33720,11 +31299,11 @@ export const plans = { }, updateRelationalItemRelationCompositePk: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_relational_item_relation_composite_pksPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_relational_item_relation_composite_pksPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33739,14 +31318,14 @@ export const plans = { }, updateRelationalItemRelationCompositePkByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_relational_item_relation_composite_pksPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $update = pgUpdateSingle(pgResource_relational_item_relation_composite_pksPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33761,11 +31340,11 @@ export const plans = { }, updateSingleTableItemRelationCompositePk: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_single_table_item_relation_composite_pksPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(otherSource_single_table_item_relation_composite_pksPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33780,14 +31359,14 @@ export const plans = { }, updateSingleTableItemRelationCompositePkByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_single_table_item_relation_composite_pksPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $update = pgUpdateSingle(otherSource_single_table_item_relation_composite_pksPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33802,11 +31381,11 @@ export const plans = { }, updateRelationalItemRelation: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_relational_item_relationsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_relational_item_relationsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33821,13 +31400,13 @@ export const plans = { }, updateRelationalItemRelationById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_relational_item_relationsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_relational_item_relationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33842,14 +31421,14 @@ export const plans = { }, updateRelationalItemRelationByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_relational_item_relationsPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $update = pgUpdateSingle(pgResource_relational_item_relationsPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33864,11 +31443,11 @@ export const plans = { }, updateSingleTableItemRelation: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_single_table_item_relationsPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(otherSource_single_table_item_relationsPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33883,13 +31462,13 @@ export const plans = { }, updateSingleTableItemRelationById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_single_table_item_relationsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(otherSource_single_table_item_relationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33904,14 +31483,14 @@ export const plans = { }, updateSingleTableItemRelationByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_single_table_item_relationsPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $update = pgUpdateSingle(otherSource_single_table_item_relationsPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33926,11 +31505,11 @@ export const plans = { }, updateLogEntry: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_log_entriesPgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(otherSource_log_entriesPgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33945,13 +31524,13 @@ export const plans = { }, updateLogEntryById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_log_entriesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(otherSource_log_entriesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33966,11 +31545,11 @@ export const plans = { }, updateFirstPartyVulnerability: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, specFromArgs8(args)) + const $update = pgUpdateSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, specFromArgs8(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -33985,13 +31564,13 @@ export const plans = { }, updateFirstPartyVulnerabilityById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -34006,11 +31585,11 @@ export const plans = { }, updateThirdPartyVulnerability: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, specFromArgs9(args)) + const $update = pgUpdateSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, specFromArgs9(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -34025,13 +31604,13 @@ export const plans = { }, updateThirdPartyVulnerabilityById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -34046,11 +31625,11 @@ export const plans = { }, updateAwsApplication: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_aws_applicationsPgResource, specFromArgs10(args)) + const $update = pgUpdateSingle(otherSource_aws_applicationsPgResource, specFromArgs10(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -34065,13 +31644,13 @@ export const plans = { }, updateAwsApplicationById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_aws_applicationsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(otherSource_aws_applicationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -34086,11 +31665,11 @@ export const plans = { }, updateGcpApplication: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_gcp_applicationsPgResource, specFromArgs11(args)) + const $update = pgUpdateSingle(otherSource_gcp_applicationsPgResource, specFromArgs11(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -34105,13 +31684,13 @@ export const plans = { }, updateGcpApplicationById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_gcp_applicationsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(otherSource_gcp_applicationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -34126,11 +31705,11 @@ export const plans = { }, deleteOrganization: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_organizationsPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(otherSource_organizationsPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34145,13 +31724,13 @@ export const plans = { }, deleteOrganizationByOrganizationId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_organizationsPgResource, { - organization_id: args.get(['input', "organizationId"]) - }) + const $delete = pgDeleteSingle(otherSource_organizationsPgResource, { + organization_id: args.getRaw(['input', "organizationId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34166,13 +31745,13 @@ export const plans = { }, deleteOrganizationByName: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_organizationsPgResource, { - name: args.get(['input', "name"]) - }) + const $delete = pgDeleteSingle(otherSource_organizationsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34187,11 +31766,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_peoplePgResource, specFromArgs13(args)) + const $delete = pgDeleteSingle(otherSource_peoplePgResource, specFromArgs13(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34206,13 +31785,13 @@ export const plans = { }, deletePersonByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_peoplePgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(otherSource_peoplePgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34227,13 +31806,13 @@ export const plans = { }, deletePersonByUsername: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_peoplePgResource, { - username: args.get(['input', "username"]) - }) + const $delete = pgDeleteSingle(otherSource_peoplePgResource, { + username: args.getRaw(['input', "username"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34248,11 +31827,11 @@ export const plans = { }, deleteRelationalItemRelationCompositePk: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_relational_item_relation_composite_pksPgResource, specFromArgs14(args)) + const $delete = pgDeleteSingle(pgResource_relational_item_relation_composite_pksPgResource, specFromArgs14(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34267,14 +31846,14 @@ export const plans = { }, deleteRelationalItemRelationCompositePkByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_relational_item_relation_composite_pksPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $delete = pgDeleteSingle(pgResource_relational_item_relation_composite_pksPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34289,11 +31868,11 @@ export const plans = { }, deleteSingleTableItemRelationCompositePk: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_single_table_item_relation_composite_pksPgResource, specFromArgs15(args)) + const $delete = pgDeleteSingle(otherSource_single_table_item_relation_composite_pksPgResource, specFromArgs15(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34308,14 +31887,14 @@ export const plans = { }, deleteSingleTableItemRelationCompositePkByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_single_table_item_relation_composite_pksPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $delete = pgDeleteSingle(otherSource_single_table_item_relation_composite_pksPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34330,11 +31909,11 @@ export const plans = { }, deleteRelationalItemRelation: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_relational_item_relationsPgResource, specFromArgs16(args)) + const $delete = pgDeleteSingle(pgResource_relational_item_relationsPgResource, specFromArgs16(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34349,13 +31928,13 @@ export const plans = { }, deleteRelationalItemRelationById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_relational_item_relationsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_relational_item_relationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34370,14 +31949,14 @@ export const plans = { }, deleteRelationalItemRelationByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_relational_item_relationsPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $delete = pgDeleteSingle(pgResource_relational_item_relationsPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34392,11 +31971,11 @@ export const plans = { }, deleteSingleTableItemRelation: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_single_table_item_relationsPgResource, specFromArgs17(args)) + const $delete = pgDeleteSingle(otherSource_single_table_item_relationsPgResource, specFromArgs17(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34411,13 +31990,13 @@ export const plans = { }, deleteSingleTableItemRelationById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_single_table_item_relationsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(otherSource_single_table_item_relationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34432,14 +32011,14 @@ export const plans = { }, deleteSingleTableItemRelationByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_single_table_item_relationsPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $delete = pgDeleteSingle(otherSource_single_table_item_relationsPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34454,11 +32033,11 @@ export const plans = { }, deleteLogEntry: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_log_entriesPgResource, specFromArgs18(args)) + const $delete = pgDeleteSingle(otherSource_log_entriesPgResource, specFromArgs18(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34473,13 +32052,13 @@ export const plans = { }, deleteLogEntryById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_log_entriesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(otherSource_log_entriesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34494,11 +32073,11 @@ export const plans = { }, deleteFirstPartyVulnerability: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, specFromArgs19(args)) + const $delete = pgDeleteSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, specFromArgs19(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34513,13 +32092,13 @@ export const plans = { }, deleteFirstPartyVulnerabilityById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34534,11 +32113,11 @@ export const plans = { }, deleteThirdPartyVulnerability: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, specFromArgs20(args)) + const $delete = pgDeleteSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, specFromArgs20(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34553,13 +32132,13 @@ export const plans = { }, deleteThirdPartyVulnerabilityById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34574,11 +32153,11 @@ export const plans = { }, deleteAwsApplication: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_aws_applicationsPgResource, specFromArgs21(args)) + const $delete = pgDeleteSingle(otherSource_aws_applicationsPgResource, specFromArgs21(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34593,13 +32172,13 @@ export const plans = { }, deleteAwsApplicationById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_aws_applicationsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(otherSource_aws_applicationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34614,11 +32193,11 @@ export const plans = { }, deleteGcpApplication: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_gcp_applicationsPgResource, specFromArgs22(args)) + const $delete = pgDeleteSingle(otherSource_gcp_applicationsPgResource, specFromArgs22(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34633,13 +32212,13 @@ export const plans = { }, deleteGcpApplicationById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_gcp_applicationsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(otherSource_gcp_applicationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -34656,7 +32235,8 @@ export const plans = { CustomDeleteRelationalItemPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -34667,17 +32247,17 @@ export const plans = { }, CustomDeleteRelationalItemInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nodeId: undefined }, CreateOrganizationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, organization($object) { return $object.get("result"); @@ -34685,7 +32265,7 @@ export const plans = { query() { return rootValue(); }, - organizationEdge($mutation, args, info) { + organizationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34701,9 +32281,7 @@ export const plans = { return otherSource_organizationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OrganizationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34714,42 +32292,42 @@ export const plans = { }, CreateOrganizationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, organization: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, OrganizationInput: { - "__inputPlan": function OrganizationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -34757,7 +32335,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34773,9 +32351,7 @@ export const plans = { return otherSource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34786,42 +32362,42 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, username: { - applyPlan($insert, val) { - $insert.set("username", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("username", bakedInputRuntime(schema, field.type, val)); + } } }, CreateRelationalItemRelationCompositePkPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, relationalItemRelationCompositePk($object) { return $object.get("result"); @@ -34829,7 +32405,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationCompositePkEdge($mutation, args, info) { + relationalItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34845,9 +32421,7 @@ export const plans = { return pgResource_relational_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34868,42 +32442,42 @@ export const plans = { }, CreateRelationalItemRelationCompositePkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, relationalItemRelationCompositePk: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RelationalItemRelationCompositePkInput: { - "__inputPlan": function RelationalItemRelationCompositePkInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSingleTableItemRelationCompositePkPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, singleTableItemRelationCompositePk($object) { return $object.get("result"); @@ -34911,7 +32485,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationCompositePkEdge($mutation, args, info) { + singleTableItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34927,9 +32501,7 @@ export const plans = { return otherSource_single_table_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34950,42 +32522,42 @@ export const plans = { }, CreateSingleTableItemRelationCompositePkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, singleTableItemRelationCompositePk: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SingleTableItemRelationCompositePkInput: { - "__inputPlan": function SingleTableItemRelationCompositePkInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateRelationalItemRelationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, relationalItemRelation($object) { return $object.get("result"); @@ -34993,7 +32565,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationEdge($mutation, args, info) { + relationalItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -35009,9 +32581,7 @@ export const plans = { return pgResource_relational_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -35032,49 +32602,50 @@ export const plans = { }, CreateRelationalItemRelationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, relationalItemRelation: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RelationalItemRelationInput: { - "__inputPlan": function RelationalItemRelationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSingleTableItemRelationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, singleTableItemRelation($object) { return $object.get("result"); @@ -35082,7 +32653,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationEdge($mutation, args, info) { + singleTableItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -35098,9 +32669,7 @@ export const plans = { return otherSource_single_table_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -35121,49 +32690,50 @@ export const plans = { }, CreateSingleTableItemRelationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, singleTableItemRelation: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SingleTableItemRelationInput: { - "__inputPlan": function SingleTableItemRelationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLogEntryPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, logEntry($object) { return $object.get("result"); @@ -35171,7 +32741,7 @@ export const plans = { query() { return rootValue(); }, - logEntryEdge($mutation, args, info) { + logEntryEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -35187,9 +32757,7 @@ export const plans = { return otherSource_log_entriesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -35210,56 +32778,58 @@ export const plans = { }, CreateLogEntryInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, logEntry: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LogEntryInput: { - "__inputPlan": function LogEntryInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, text: { - applyPlan($insert, val) { - $insert.set("text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFirstPartyVulnerabilityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, firstPartyVulnerability($object) { return $object.get("result"); @@ -35267,7 +32837,7 @@ export const plans = { query() { return rootValue(); }, - firstPartyVulnerabilityEdge($mutation, args, info) { + firstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -35283,9 +32853,7 @@ export const plans = { return paths_0_resource_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FirstPartyVulnerabilitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -35296,56 +32864,58 @@ export const plans = { }, CreateFirstPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, firstPartyVulnerability: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FirstPartyVulnerabilityInput: { - "__inputPlan": function FirstPartyVulnerabilityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, cvssScore: { - applyPlan($insert, val) { - $insert.set("cvss_score", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cvss_score", bakedInputRuntime(schema, field.type, val)); + } }, teamName: { - applyPlan($insert, val) { - $insert.set("team_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("team_name", bakedInputRuntime(schema, field.type, val)); + } } }, CreateThirdPartyVulnerabilityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, thirdPartyVulnerability($object) { return $object.get("result"); @@ -35353,7 +32923,7 @@ export const plans = { query() { return rootValue(); }, - thirdPartyVulnerabilityEdge($mutation, args, info) { + thirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -35369,9 +32939,7 @@ export const plans = { return paths_1_resource_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ThirdPartyVulnerabilitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -35382,56 +32950,58 @@ export const plans = { }, CreateThirdPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, thirdPartyVulnerability: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ThirdPartyVulnerabilityInput: { - "__inputPlan": function ThirdPartyVulnerabilityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, cvssScore: { - applyPlan($insert, val) { - $insert.set("cvss_score", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cvss_score", bakedInputRuntime(schema, field.type, val)); + } }, vendorName: { - applyPlan($insert, val) { - $insert.set("vendor_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("vendor_name", bakedInputRuntime(schema, field.type, val)); + } } }, CreateAwsApplicationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, awsApplication($object) { return $object.get("result"); @@ -35439,7 +33009,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationEdge($mutation, args, info) { + awsApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -35455,9 +33025,7 @@ export const plans = { return otherSource_aws_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -35478,70 +33046,74 @@ export const plans = { }, CreateAwsApplicationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, awsApplication: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, AwsApplicationInput: { - "__inputPlan": function AwsApplicationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, lastDeployed: { - applyPlan($insert, val) { - $insert.set("last_deployed", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_deployed", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, awsId: { - applyPlan($insert, val) { - $insert.set("aws_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aws_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateGcpApplicationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, gcpApplication($object) { return $object.get("result"); @@ -35549,7 +33121,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationEdge($mutation, args, info) { + gcpApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -35565,9 +33137,7 @@ export const plans = { return otherSource_gcp_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -35588,70 +33158,74 @@ export const plans = { }, CreateGcpApplicationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, gcpApplication: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, GcpApplicationInput: { - "__inputPlan": function GcpApplicationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, lastDeployed: { - applyPlan($insert, val) { - $insert.set("last_deployed", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_deployed", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, gcpId: { - applyPlan($insert, val) { - $insert.set("gcp_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("gcp_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOrganizationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, organization($object) { return $object.get("result"); @@ -35659,7 +33233,7 @@ export const plans = { query() { return rootValue(); }, - organizationEdge($mutation, args, info) { + organizationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -35675,9 +33249,7 @@ export const plans = { return otherSource_organizationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OrganizationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -35688,69 +33260,73 @@ export const plans = { }, UpdateOrganizationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, organizationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, OrganizationPatch: { - "__inputPlan": function OrganizationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOrganizationByOrganizationIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, organizationId: undefined, organizationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateOrganizationByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined, organizationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -35758,7 +33334,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -35774,9 +33350,7 @@ export const plans = { return otherSource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -35787,69 +33361,73 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, username: { - applyPlan($insert, val) { - $insert.set("username", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("username", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByUsernameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, username: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateRelationalItemRelationCompositePkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, relationalItemRelationCompositePk($object) { return $object.get("result"); @@ -35857,7 +33435,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationCompositePkEdge($mutation, args, info) { + relationalItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -35873,9 +33451,7 @@ export const plans = { return pgResource_relational_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -35896,56 +33472,59 @@ export const plans = { }, UpdateRelationalItemRelationCompositePkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, relationalItemRelationCompositePkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, RelationalItemRelationCompositePkPatch: { - "__inputPlan": function RelationalItemRelationCompositePkPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateRelationalItemRelationCompositePkByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, childId: undefined, relationalItemRelationCompositePkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSingleTableItemRelationCompositePkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, singleTableItemRelationCompositePk($object) { return $object.get("result"); @@ -35953,7 +33532,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationCompositePkEdge($mutation, args, info) { + singleTableItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -35969,9 +33548,7 @@ export const plans = { return otherSource_single_table_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -35992,56 +33569,59 @@ export const plans = { }, UpdateSingleTableItemRelationCompositePkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, singleTableItemRelationCompositePkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SingleTableItemRelationCompositePkPatch: { - "__inputPlan": function SingleTableItemRelationCompositePkPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSingleTableItemRelationCompositePkByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, childId: undefined, singleTableItemRelationCompositePkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateRelationalItemRelationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, relationalItemRelation($object) { return $object.get("result"); @@ -36049,7 +33629,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationEdge($mutation, args, info) { + relationalItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36065,9 +33645,7 @@ export const plans = { return pgResource_relational_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36088,77 +33666,82 @@ export const plans = { }, UpdateRelationalItemRelationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, relationalItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, RelationalItemRelationPatch: { - "__inputPlan": function RelationalItemRelationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateRelationalItemRelationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, relationalItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateRelationalItemRelationByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, childId: undefined, relationalItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSingleTableItemRelationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, singleTableItemRelation($object) { return $object.get("result"); @@ -36166,7 +33749,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationEdge($mutation, args, info) { + singleTableItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36182,9 +33765,7 @@ export const plans = { return otherSource_single_table_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36205,77 +33786,82 @@ export const plans = { }, UpdateSingleTableItemRelationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, singleTableItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SingleTableItemRelationPatch: { - "__inputPlan": function SingleTableItemRelationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSingleTableItemRelationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, singleTableItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSingleTableItemRelationByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, childId: undefined, singleTableItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLogEntryPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, logEntry($object) { return $object.get("result"); @@ -36283,7 +33869,7 @@ export const plans = { query() { return rootValue(); }, - logEntryEdge($mutation, args, info) { + logEntryEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36299,9 +33885,7 @@ export const plans = { return otherSource_log_entriesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36322,69 +33906,74 @@ export const plans = { }, UpdateLogEntryInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, logEntryPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LogEntryPatch: { - "__inputPlan": function LogEntryPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, text: { - applyPlan($insert, val) { - $insert.set("text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLogEntryByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, logEntryPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateFirstPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, firstPartyVulnerability($object) { return $object.get("result"); @@ -36392,7 +33981,7 @@ export const plans = { query() { return rootValue(); }, - firstPartyVulnerabilityEdge($mutation, args, info) { + firstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36408,9 +33997,7 @@ export const plans = { return paths_0_resource_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FirstPartyVulnerabilitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36421,69 +34008,74 @@ export const plans = { }, UpdateFirstPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, firstPartyVulnerabilityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FirstPartyVulnerabilityPatch: { - "__inputPlan": function FirstPartyVulnerabilityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, cvssScore: { - applyPlan($insert, val) { - $insert.set("cvss_score", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cvss_score", bakedInputRuntime(schema, field.type, val)); + } }, teamName: { - applyPlan($insert, val) { - $insert.set("team_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("team_name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFirstPartyVulnerabilityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, firstPartyVulnerabilityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateThirdPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, thirdPartyVulnerability($object) { return $object.get("result"); @@ -36491,7 +34083,7 @@ export const plans = { query() { return rootValue(); }, - thirdPartyVulnerabilityEdge($mutation, args, info) { + thirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36507,9 +34099,7 @@ export const plans = { return paths_1_resource_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ThirdPartyVulnerabilitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36520,69 +34110,74 @@ export const plans = { }, UpdateThirdPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, thirdPartyVulnerabilityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ThirdPartyVulnerabilityPatch: { - "__inputPlan": function ThirdPartyVulnerabilityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, cvssScore: { - applyPlan($insert, val) { - $insert.set("cvss_score", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cvss_score", bakedInputRuntime(schema, field.type, val)); + } }, vendorName: { - applyPlan($insert, val) { - $insert.set("vendor_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("vendor_name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateThirdPartyVulnerabilityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, thirdPartyVulnerabilityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateAwsApplicationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, awsApplication($object) { return $object.get("result"); @@ -36590,7 +34185,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationEdge($mutation, args, info) { + awsApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36606,9 +34201,7 @@ export const plans = { return otherSource_aws_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36629,83 +34222,90 @@ export const plans = { }, UpdateAwsApplicationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, awsApplicationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, AwsApplicationPatch: { - "__inputPlan": function AwsApplicationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, lastDeployed: { - applyPlan($insert, val) { - $insert.set("last_deployed", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_deployed", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, awsId: { - applyPlan($insert, val) { - $insert.set("aws_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aws_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateAwsApplicationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, awsApplicationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateGcpApplicationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, gcpApplication($object) { return $object.get("result"); @@ -36713,7 +34313,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationEdge($mutation, args, info) { + gcpApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36729,9 +34329,7 @@ export const plans = { return otherSource_gcp_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36752,83 +34350,90 @@ export const plans = { }, UpdateGcpApplicationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, gcpApplicationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, GcpApplicationPatch: { - "__inputPlan": function GcpApplicationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, lastDeployed: { - applyPlan($insert, val) { - $insert.set("last_deployed", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_deployed", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, gcpId: { - applyPlan($insert, val) { - $insert.set("gcp_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("gcp_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateGcpApplicationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, gcpApplicationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteOrganizationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, organization($object) { return $object.get("result"); @@ -36841,7 +34446,7 @@ export const plans = { query() { return rootValue(); }, - organizationEdge($mutation, args, info) { + organizationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36857,9 +34462,7 @@ export const plans = { return otherSource_organizationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OrganizationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36870,24 +34473,24 @@ export const plans = { }, DeleteOrganizationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteOrganizationByOrganizationIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, organizationId: undefined }, DeleteOrganizationByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined @@ -36895,7 +34498,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -36908,7 +34512,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36924,9 +34528,7 @@ export const plans = { return otherSource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36937,24 +34539,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined }, DeletePersonByUsernameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, username: undefined @@ -36962,7 +34564,8 @@ export const plans = { DeleteRelationalItemRelationCompositePkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, relationalItemRelationCompositePk($object) { return $object.get("result"); @@ -36975,7 +34578,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationCompositePkEdge($mutation, args, info) { + relationalItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36991,9 +34594,7 @@ export const plans = { return pgResource_relational_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37014,16 +34615,16 @@ export const plans = { }, DeleteRelationalItemRelationCompositePkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteRelationalItemRelationCompositePkByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, @@ -37032,7 +34633,8 @@ export const plans = { DeleteSingleTableItemRelationCompositePkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, singleTableItemRelationCompositePk($object) { return $object.get("result"); @@ -37045,7 +34647,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationCompositePkEdge($mutation, args, info) { + singleTableItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37061,9 +34663,7 @@ export const plans = { return otherSource_single_table_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37084,16 +34684,16 @@ export const plans = { }, DeleteSingleTableItemRelationCompositePkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSingleTableItemRelationCompositePkByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, @@ -37102,7 +34702,8 @@ export const plans = { DeleteRelationalItemRelationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, relationalItemRelation($object) { return $object.get("result"); @@ -37115,7 +34716,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationEdge($mutation, args, info) { + relationalItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37131,9 +34732,7 @@ export const plans = { return pgResource_relational_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37154,24 +34753,24 @@ export const plans = { }, DeleteRelationalItemRelationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteRelationalItemRelationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteRelationalItemRelationByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, @@ -37180,7 +34779,8 @@ export const plans = { DeleteSingleTableItemRelationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, singleTableItemRelation($object) { return $object.get("result"); @@ -37193,7 +34793,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationEdge($mutation, args, info) { + singleTableItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37209,9 +34809,7 @@ export const plans = { return otherSource_single_table_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37232,24 +34830,24 @@ export const plans = { }, DeleteSingleTableItemRelationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSingleTableItemRelationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteSingleTableItemRelationByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, @@ -37258,7 +34856,8 @@ export const plans = { DeleteLogEntryPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, logEntry($object) { return $object.get("result"); @@ -37271,7 +34870,7 @@ export const plans = { query() { return rootValue(); }, - logEntryEdge($mutation, args, info) { + logEntryEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37287,9 +34886,7 @@ export const plans = { return otherSource_log_entriesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37310,16 +34907,16 @@ export const plans = { }, DeleteLogEntryInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLogEntryByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -37327,7 +34924,8 @@ export const plans = { DeleteFirstPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, firstPartyVulnerability($object) { return $object.get("result"); @@ -37340,7 +34938,7 @@ export const plans = { query() { return rootValue(); }, - firstPartyVulnerabilityEdge($mutation, args, info) { + firstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37356,9 +34954,7 @@ export const plans = { return paths_0_resource_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FirstPartyVulnerabilitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37369,16 +34965,16 @@ export const plans = { }, DeleteFirstPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteFirstPartyVulnerabilityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -37386,7 +34982,8 @@ export const plans = { DeleteThirdPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, thirdPartyVulnerability($object) { return $object.get("result"); @@ -37399,7 +34996,7 @@ export const plans = { query() { return rootValue(); }, - thirdPartyVulnerabilityEdge($mutation, args, info) { + thirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37415,9 +35012,7 @@ export const plans = { return paths_1_resource_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ThirdPartyVulnerabilitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37428,16 +35023,16 @@ export const plans = { }, DeleteThirdPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteThirdPartyVulnerabilityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -37445,7 +35040,8 @@ export const plans = { DeleteAwsApplicationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, awsApplication($object) { return $object.get("result"); @@ -37458,7 +35054,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationEdge($mutation, args, info) { + awsApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37474,9 +35070,7 @@ export const plans = { return otherSource_aws_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37497,16 +35091,16 @@ export const plans = { }, DeleteAwsApplicationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteAwsApplicationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -37514,7 +35108,8 @@ export const plans = { DeleteGcpApplicationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, gcpApplication($object) { return $object.get("result"); @@ -37527,7 +35122,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationEdge($mutation, args, info) { + gcpApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37543,9 +35138,7 @@ export const plans = { return otherSource_gcp_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37566,16 +35159,16 @@ export const plans = { }, DeleteGcpApplicationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteGcpApplicationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/rbac.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/rbac.1.export.mjs index a8e5e95a2e..f75f5ade5f 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/rbac.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/rbac.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, GraphQLString, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -859,7 +861,7 @@ const myTableCodec = recordCodec({ executor: executor }); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -905,8 +907,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -1657,7 +1658,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -1724,8 +1725,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const authPayloadIdentifier = sql.identifier("b", "auth_payload"); const authPayloadCodec = recordCodec({ name: "authPayload", @@ -2063,7 +2063,7 @@ const comptypeArrayCodec = listOfCodec(comptypeCodec, { description: undefined, name: "comptypeArray" }); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -2154,8 +2154,7 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const registryConfig_pgCodecs_QueryOutputTwoRowsRecord_QueryOutputTwoRowsRecord = recordCodec({ name: "QueryOutputTwoRowsRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2315,7 +2314,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -2470,8 +2469,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -9790,6 +9788,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -9809,6 +9810,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -9828,6 +9832,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -9847,6 +9854,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -9855,102 +9865,33 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -9997,26 +9938,9 @@ const fetcher4 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Person); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const isValidHstoreObject = obj => { if (obj === null) { @@ -10075,76 +9999,33 @@ function InternetAddressSerialize(value) { const pgFieldSource_post_computed_with_optional_argPgResource = registry.pgResources["post_computed_with_optional_arg"]; const pgFieldSource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; const pgFieldSource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -11441,60 +11322,60 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, allPersonSecrets: { @@ -11505,7 +11386,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -11514,7 +11394,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -11523,7 +11402,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -11532,7 +11410,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -11541,7 +11418,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -11550,22 +11426,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -11579,7 +11451,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -11588,7 +11459,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -11597,7 +11467,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -11606,7 +11475,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -11615,7 +11483,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -11624,22 +11491,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -11653,7 +11516,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -11662,7 +11524,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -11671,7 +11532,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -11680,7 +11540,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -11689,7 +11548,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -11698,22 +11556,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -11727,7 +11581,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -11736,7 +11589,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -11745,7 +11597,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -11754,7 +11605,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -11763,7 +11613,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -11772,22 +11621,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -11868,7 +11713,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -11877,7 +11721,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -11886,7 +11729,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -11895,7 +11737,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -11904,7 +11745,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -11913,22 +11753,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -12095,26 +11931,18 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_WITH_OPTIONAL_ARG_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof pgFieldSource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${pgFieldSource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: pgFieldSource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -12127,14 +11955,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof pgFieldSource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${pgFieldSource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: pgFieldSource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -12147,19 +11975,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12168,19 +11994,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12189,11 +12013,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -12201,7 +12022,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12211,11 +12032,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -12223,7 +12041,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12233,11 +12051,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "ASC", ...(undefined != null ? { @@ -12245,7 +12060,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12255,11 +12070,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "DESC", ...(undefined != null ? { @@ -12267,7 +12079,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12277,11 +12089,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -12289,7 +12098,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12299,11 +12108,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -12311,7 +12117,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12321,11 +12127,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -12333,7 +12136,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12343,11 +12146,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -12355,7 +12155,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12364,8 +12164,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -12378,17 +12178,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, headline: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "headline", @@ -12401,17 +12199,15 @@ export const plans = { type: "attribute", attribute: "headline", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.headline.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -12424,17 +12220,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -12447,26 +12241,25 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedWithOptionalArg: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof pgFieldSource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${pgFieldSource_post_computed_with_optional_argPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), pgFieldSource_post_computed_with_optional_argPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, pgFieldSource_post_computed_with_optional_argPgResource.codec)}`); } } } @@ -12543,31 +12336,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12576,19 +12359,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12597,11 +12378,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -12609,7 +12387,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12619,11 +12397,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -12631,7 +12406,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12641,11 +12416,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -12653,7 +12425,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12663,11 +12435,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -12675,7 +12444,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12684,8 +12453,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -12698,17 +12467,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -12721,13 +12488,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -12756,31 +12521,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12789,19 +12544,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12810,11 +12563,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -12822,7 +12572,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12832,11 +12582,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -12844,7 +12591,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12854,11 +12601,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -12866,7 +12610,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12876,11 +12620,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -12888,7 +12629,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12898,11 +12639,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -12910,7 +12648,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12920,11 +12658,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -12932,7 +12667,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12942,11 +12677,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -12954,7 +12686,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12964,11 +12696,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -12976,7 +12705,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -12985,8 +12714,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -12999,17 +12728,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -13022,17 +12749,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -13045,17 +12770,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -13068,13 +12791,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -13103,26 +12824,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof pgFieldSource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${pgFieldSource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: pgFieldSource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -13135,14 +12848,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof pgFieldSource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${pgFieldSource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: pgFieldSource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -13155,14 +12868,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof pgFieldSource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${pgFieldSource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: pgFieldSource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -13175,14 +12888,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof pgFieldSource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${pgFieldSource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: pgFieldSource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -13195,19 +12908,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13216,19 +12927,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13237,11 +12946,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -13249,7 +12955,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13259,11 +12965,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -13271,7 +12974,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13281,11 +12984,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -13293,7 +12993,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13303,11 +13003,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -13315,7 +13012,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13325,11 +13022,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -13337,7 +13031,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13347,11 +13041,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -13359,7 +13050,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13369,11 +13060,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -13381,7 +13069,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13391,11 +13079,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -13403,7 +13088,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13413,11 +13098,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -13425,7 +13107,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13435,11 +13117,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -13447,7 +13126,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13457,11 +13136,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -13469,7 +13145,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13479,11 +13155,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -13491,7 +13164,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13501,11 +13174,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -13513,7 +13183,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13523,11 +13193,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -13535,7 +13202,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13545,11 +13212,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -13557,7 +13221,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13567,11 +13231,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -13579,7 +13240,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13589,11 +13250,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -13601,7 +13259,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13611,11 +13269,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -13623,7 +13278,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13633,11 +13288,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -13645,7 +13297,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13655,11 +13307,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -13667,7 +13316,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -13676,8 +13325,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -13690,17 +13339,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -13713,17 +13360,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -13736,17 +13381,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -13759,17 +13402,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -13782,17 +13423,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -13805,17 +13444,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -13828,17 +13465,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -13851,17 +13486,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -13874,17 +13507,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -13897,17 +13528,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -13920,47 +13549,45 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof pgFieldSource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${pgFieldSource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), pgFieldSource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, pgFieldSource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, Mutation: { __assertStep: __ValueStep, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs3(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -13970,9 +13597,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -13980,17 +13616,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -14000,17 +13636,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -14020,17 +13656,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -14040,11 +13676,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -14059,13 +13695,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -14080,13 +13716,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -14101,11 +13737,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -14120,13 +13756,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -14141,13 +13777,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -14162,11 +13798,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs3(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs3(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14181,13 +13817,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14202,11 +13838,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs4(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs4(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14221,13 +13857,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14242,13 +13878,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14263,11 +13899,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs5(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs5(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14282,13 +13918,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14303,13 +13939,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -14326,7 +13962,8 @@ export const plans = { LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -14334,7 +13971,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -14350,9 +13987,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -14368,50 +14003,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -14419,7 +14056,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -14435,9 +14072,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -14453,35 +14088,34 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -14489,7 +14123,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -14505,9 +14139,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -14523,35 +14155,34 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -14559,7 +14190,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -14575,9 +14206,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -14588,63 +14217,66 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -14652,7 +14284,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -14668,9 +14300,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -14686,62 +14316,65 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -14749,7 +14382,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -14765,9 +14398,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -14778,90 +14409,97 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -14874,7 +14512,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -14890,9 +14528,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -14908,16 +14544,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -14925,7 +14561,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -14938,7 +14575,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -14954,9 +14591,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -14972,24 +14607,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -14997,7 +14632,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -15010,7 +14646,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -15026,9 +14662,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -15039,24 +14673,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/rbac.ignore.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/rbac.ignore.1.export.mjs index 6973f3f790..fd9b387a75 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/rbac.ignore.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/rbac.ignore.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -478,7 +480,7 @@ const textArrayCodec = listOfCodec(TYPES.text, { name: "textArray" }); const nonUpdatableViewIdentifier = sql.identifier("a", "non_updatable_view"); -const spec_nonUpdatableView = { +const nonUpdatableViewCodec = recordCodec({ name: "nonUpdatableView", identifier: nonUpdatableViewIdentifier, attributes: { @@ -506,10 +508,9 @@ const spec_nonUpdatableView = { } }, executor: executor -}; -const nonUpdatableViewCodec = recordCodec(spec_nonUpdatableView); +}); const inputsIdentifier = sql.identifier("a", "inputs"); -const spec_inputs = { +const inputsCodec = recordCodec({ name: "inputs", identifier: inputsIdentifier, attributes: { @@ -537,10 +538,9 @@ const spec_inputs = { } }, executor: executor -}; -const inputsCodec = recordCodec(spec_inputs); +}); const patchsIdentifier = sql.identifier("a", "patchs"); -const spec_patchs = { +const patchsCodec = recordCodec({ name: "patchs", identifier: patchsIdentifier, attributes: { @@ -568,10 +568,9 @@ const spec_patchs = { } }, executor: executor -}; -const patchsCodec = recordCodec(spec_patchs); +}); const reservedIdentifier = sql.identifier("a", "reserved"); -const spec_reserved = { +const reservedCodec = recordCodec({ name: "reserved", identifier: reservedIdentifier, attributes: { @@ -599,10 +598,9 @@ const spec_reserved = { } }, executor: executor -}; -const reservedCodec = recordCodec(spec_reserved); +}); const reservedPatchsIdentifier = sql.identifier("a", "reservedPatchs"); -const spec_reservedPatchs = { +const reservedPatchsCodec = recordCodec({ name: "reservedPatchs", identifier: reservedPatchsIdentifier, attributes: { @@ -630,10 +628,9 @@ const spec_reservedPatchs = { } }, executor: executor -}; -const reservedPatchsCodec = recordCodec(spec_reservedPatchs); +}); const reservedInputIdentifier = sql.identifier("a", "reserved_input"); -const spec_reservedInput = { +const reservedInputCodec = recordCodec({ name: "reservedInput", identifier: reservedInputIdentifier, attributes: { @@ -661,10 +658,9 @@ const spec_reservedInput = { } }, executor: executor -}; -const reservedInputCodec = recordCodec(spec_reservedInput); +}); const defaultValueIdentifier = sql.identifier("a", "default_value"); -const spec_defaultValue = { +const defaultValueCodec = recordCodec({ name: "defaultValue", identifier: defaultValueIdentifier, attributes: { @@ -701,10 +697,9 @@ const spec_defaultValue = { } }, executor: executor -}; -const defaultValueCodec = recordCodec(spec_defaultValue); +}); const foreignKeyIdentifier = sql.identifier("a", "foreign_key"); -const spec_foreignKey = { +const foreignKeyCodec = recordCodec({ name: "foreignKey", identifier: foreignKeyIdentifier, attributes: { @@ -750,10 +745,9 @@ const spec_foreignKey = { } }, executor: executor -}; -const foreignKeyCodec = recordCodec(spec_foreignKey); +}); const noPrimaryKeyIdentifier = sql.identifier("a", "no_primary_key"); -const spec_noPrimaryKey = { +const noPrimaryKeyCodec = recordCodec({ name: "noPrimaryKey", identifier: noPrimaryKeyIdentifier, attributes: { @@ -790,10 +784,9 @@ const spec_noPrimaryKey = { } }, executor: executor -}; -const noPrimaryKeyCodec = recordCodec(spec_noPrimaryKey); +}); const testviewIdentifier = sql.identifier("a", "testview"); -const spec_testview = { +const testviewCodec = recordCodec({ name: "testview", identifier: testviewIdentifier, attributes: { @@ -839,8 +832,7 @@ const spec_testview = { } }, executor: executor -}; -const testviewCodec = recordCodec(spec_testview); +}); const uniqueForeignKeyIdentifier = sql.identifier("a", "unique_foreign_key"); const spec_uniqueForeignKey = { name: "uniqueForeignKey", @@ -884,7 +876,7 @@ const spec_uniqueForeignKey = { }; const uniqueForeignKeyCodec = recordCodec(spec_uniqueForeignKey); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -921,10 +913,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -964,8 +955,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -1007,7 +997,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const viewTableIdentifier = sql.identifier("a", "view_table"); -const spec_viewTable = { +const viewTableCodec = recordCodec({ name: "viewTable", identifier: viewTableIdentifier, attributes: { @@ -1053,10 +1043,9 @@ const spec_viewTable = { } }, executor: executor -}; -const viewTableCodec = recordCodec(spec_viewTable); +}); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -1102,10 +1091,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const similarTable1Identifier = sql.identifier("a", "similar_table_1"); -const spec_similarTable1 = { +const similarTable1Codec = recordCodec({ name: "similarTable1", identifier: similarTable1Identifier, attributes: { @@ -1160,10 +1148,9 @@ const spec_similarTable1 = { } }, executor: executor -}; -const similarTable1Codec = recordCodec(spec_similarTable1); +}); const similarTable2Identifier = sql.identifier("a", "similar_table_2"); -const spec_similarTable2 = { +const similarTable2Codec = recordCodec({ name: "similarTable2", identifier: similarTable2Identifier, attributes: { @@ -1218,10 +1205,9 @@ const spec_similarTable2 = { } }, executor: executor -}; -const similarTable2Codec = recordCodec(spec_similarTable2); +}); const updatableViewIdentifier = sql.identifier("b", "updatable_view"); -const spec_updatableView = { +const updatableViewCodec = recordCodec({ name: "updatableView", identifier: updatableViewIdentifier, attributes: { @@ -1278,10 +1264,9 @@ const spec_updatableView = { } }, executor: executor -}; -const updatableViewCodec = recordCodec(spec_updatableView); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -1336,8 +1321,7 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const uuidArrayCodec = listOfCodec(TYPES.uuid, { extensions: { pg: { @@ -1354,7 +1338,7 @@ const uuidArrayCodec = listOfCodec(TYPES.uuid, { name: "uuidArray" }); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -1400,10 +1384,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -1458,8 +1441,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const jwtTokenIdentifier = sql.identifier("b", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -1541,7 +1523,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -1578,8 +1560,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const authPayloadIdentifier = sql.identifier("b", "auth_payload"); const authPayloadCodec = recordCodec({ name: "authPayload", @@ -1917,7 +1898,7 @@ const comptypeArrayCodec = listOfCodec(comptypeCodec, { description: undefined, name: "comptypeArray" }); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -1990,8 +1971,7 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const registryConfig_pgCodecs_QueryOutputTwoRowsRecord_QueryOutputTwoRowsRecord = recordCodec({ name: "QueryOutputTwoRowsRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2151,7 +2131,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -2273,8 +2253,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2592,7 +2571,7 @@ const byteaArrayCodec = listOfCodec(TYPES.bytea, { description: undefined, name: "byteaArray" }); -const spec_lists = { +const listsCodec = recordCodec({ name: "lists", identifier: listsIdentifier, attributes: { @@ -2728,8 +2707,7 @@ const spec_lists = { } }, executor: executor -}; -const listsCodec = recordCodec(spec_lists); +}); const typesIdentifier = sql.identifier("b", "types"); const anIntCodec = domainOfCodec(TYPES.int, "anInt", sql.identifier("a", "an_int"), { description: undefined, @@ -9193,6 +9171,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_inputsPgResource.get(spec); }, @@ -9212,6 +9193,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_patchsPgResource.get(spec); }, @@ -9231,6 +9215,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPgResource.get(spec); }, @@ -9250,6 +9237,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPatchsPgResource.get(spec); }, @@ -9269,6 +9259,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reserved_inputPgResource.get(spec); }, @@ -9288,6 +9281,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_default_valuePgResource.get(spec); }, @@ -9307,6 +9303,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -9326,6 +9325,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -9345,6 +9347,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_view_tablePgResource.get(spec); }, @@ -9365,6 +9370,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -9384,6 +9392,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_1PgResource.get(spec); }, @@ -9403,6 +9414,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_2PgResource.get(spec); }, @@ -9422,6 +9436,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -9441,6 +9458,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -9460,6 +9480,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -9479,6 +9502,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -9498,6 +9524,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -9517,6 +9546,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_listsPgResource.get(spec); }, @@ -9536,6 +9568,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_typesPgResource.get(spec); }, @@ -9546,553 +9581,96 @@ const nodeIdHandlerByTypeName = { }; const resource_no_primary_keyPgResource = registry.pgResources["no_primary_key"]; const resource_unique_foreign_keyPgResource = registry.pgResources["unique_foreign_key"]; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_query_interval_set = []; +const makeArgs_query_interval_set = (args, path = []) => argDetailsSimple_query_interval_set.map(details => makeArg(path, args, details)); const resource_query_interval_setPgResource = registry.pgResources["query_interval_set"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_query_interval_set(args); return resource_query_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple7 = []; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 argDetailsSimple_static_big_integer = []; +const makeArgs_static_big_integer = (args, path = []) => argDetailsSimple_static_big_integer.map(details => makeArg(path, args, details)); const resource_static_big_integerPgResource = registry.pgResources["static_big_integer"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_static_big_integer(args); return resource_static_big_integerPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple10 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple11 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple12 = [{ +const argDetailsSimple_add_1_query = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -10105,52 +9683,9 @@ const argDetailsSimple12 = [{ required: true, fetcher: null }]; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_query = (args, path = []) => argDetailsSimple_add_1_query.map(details => makeArg(path, args, details)); const resource_add_1_queryPgResource = registry.pgResources["add_1_query"]; -const argDetailsSimple13 = [{ +const argDetailsSimple_add_2_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10163,52 +9698,9 @@ const argDetailsSimple13 = [{ required: false, fetcher: null }]; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 makeArgs_add_2_query = (args, path = []) => argDetailsSimple_add_2_query.map(details => makeArg(path, args, details)); const resource_add_2_queryPgResource = registry.pgResources["add_2_query"]; -const argDetailsSimple14 = [{ +const argDetailsSimple_add_3_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10221,52 +9713,9 @@ const argDetailsSimple14 = [{ required: true, fetcher: null }]; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_query = (args, path = []) => argDetailsSimple_add_3_query.map(details => makeArg(path, args, details)); const resource_add_3_queryPgResource = registry.pgResources["add_3_query"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_add_4_query = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10279,52 +9728,9 @@ const argDetailsSimple15 = [{ required: false, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_query = (args, path = []) => argDetailsSimple_add_4_query.map(details => makeArg(path, args, details)); const resource_add_4_queryPgResource = registry.pgResources["add_4_query"]; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -10337,240 +9743,25 @@ const argDetailsSimple16 = [{ required: true, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple19 = []; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple20 = []; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10589,52 +9780,9 @@ const argDetailsSimple21 = [{ required: false, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_1PgResource = registry.pgResources["optional_missing_middle_1"]; -const argDetailsSimple22 = [{ +const argDetailsSimple_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10653,52 +9801,9 @@ const argDetailsSimple22 = [{ required: false, fetcher: null }]; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 makeArgs_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_2PgResource = registry.pgResources["optional_missing_middle_2"]; -const argDetailsSimple23 = [{ +const argDetailsSimple_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10717,52 +9822,9 @@ const argDetailsSimple23 = [{ required: false, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_3PgResource = registry.pgResources["optional_missing_middle_3"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10781,52 +9843,9 @@ const argDetailsSimple24 = [{ required: false, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_4PgResource = registry.pgResources["optional_missing_middle_4"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10845,98 +9864,12 @@ const argDetailsSimple25 = [{ required: false, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_5PgResource = registry.pgResources["optional_missing_middle_5"]; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple27 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -10955,56 +9888,13 @@ const argDetailsSimple27 = [{ required: true, fetcher: null }]; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple28 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -11023,194 +9913,22 @@ const argDetailsSimple28 = [{ required: false, fetcher: null }]; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_query_interval_array = []; +const makeArgs_query_interval_array = (args, path = []) => argDetailsSimple_query_interval_array.map(details => makeArg(path, args, details)); const resource_query_interval_arrayPgResource = registry.pgResources["query_interval_array"]; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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 argDetailsSimple_query_text_array = []; +const makeArgs_query_text_array = (args, path = []) => argDetailsSimple_query_text_array.map(details => makeArg(path, args, details)); const resource_query_text_arrayPgResource = registry.pgResources["query_text_array"]; -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple32 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -11247,104 +9965,18 @@ const argDetailsSimple32 = [{ required: true, fetcher: null }]; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple33 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -11363,310 +9995,52 @@ const argDetailsSimple34 = [{ required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple35 = []; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs35(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple36 = [{ +const argDetailsSimple_compound_type_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_compound_type_query = (args, path = []) => argDetailsSimple_compound_type_query.map(details => makeArg(path, args, details)); const resource_compound_type_queryPgResource = registry.pgResources["compound_type_query"]; -const argDetailsSimple37 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_query_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[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 makeArgs_query_compound_type_array = (args, path = []) => argDetailsSimple_query_compound_type_array.map(details => makeArg(path, args, details)); const resource_query_compound_type_arrayPgResource = registry.pgResources["query_compound_type_array"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_compound_type_array_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_compound_type_array_query = (args, path = []) => argDetailsSimple_compound_type_array_query.map(details => makeArg(path, args, details)); const resource_compound_type_array_queryPgResource = registry.pgResources["compound_type_array_query"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11679,52 +10053,9 @@ const argDetailsSimple40 = [{ required: true, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11737,473 +10068,70 @@ const argDetailsSimple41 = [{ required: true, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs41(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple42 = []; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs42(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple43 = []; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs44(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs12 = ($root, args, _info) => { - const selectArgs = makeArgs45(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs13 = ($root, args, _info) => { - const selectArgs = makeArgs46(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_type_function_connection = []; +const makeArgs_type_function_connection = (args, path = []) => argDetailsSimple_type_function_connection.map(details => makeArg(path, args, details)); const resource_type_function_connectionPgResource = registry.pgResources["type_function_connection"]; const getSelectPlanFromParentAndArgs14 = ($root, args, _info) => { - const selectArgs = makeArgs47(args); + const selectArgs = makeArgs_type_function_connection(args); return resource_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_type_function = (args, path = []) => argDetailsSimple_type_function.map(details => makeArg(path, args, details)); const resource_type_functionPgResource = registry.pgResources["type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_type_function_list = []; +const makeArgs_type_function_list = (args, path = []) => argDetailsSimple_type_function_list.map(details => makeArg(path, args, details)); const resource_type_function_listPgResource = registry.pgResources["type_function_list"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -12378,347 +10306,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple53 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple54 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple55 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple56 = []; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12737,52 +10364,9 @@ const argDetailsSimple57 = [{ required: false, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12801,52 +10385,9 @@ const argDetailsSimple58 = [{ required: false, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12865,52 +10406,9 @@ const argDetailsSimple59 = [{ required: false, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12929,52 +10427,9 @@ const argDetailsSimple60 = [{ required: false, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12993,52 +10448,9 @@ const argDetailsSimple61 = [{ required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -13051,194 +10463,22 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs65(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13253,82 +10493,33 @@ const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple66 = []; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs66(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13343,176 +10534,41 @@ const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple67 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple68 = []; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple69 = []; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -13523,57 +10579,14 @@ const coerce = string => { } return string; }; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_post_computed_interval_set = []; +const makeArgs_post_computed_interval_set = (args, path = []) => argDetailsSimple_post_computed_interval_set.map(details => makeArg(path, args, details)); const resource_post_computed_interval_setPgResource = registry.pgResources["post_computed_interval_set"]; const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs70(args); + const extraSelectArgs = makeArgs_post_computed_interval_set(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13588,228 +10601,50 @@ const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (resource_post_computed_interval_setPgResource.isUnique && !resource_post_computed_interval_setPgResource.codec.attributes && typeof resource_post_computed_interval_setPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${resource_post_computed_interval_setPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_setPgResource.from, resource_post_computed_interval_setPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_post_computed_interval_array = []; +const makeArgs_post_computed_interval_array = (args, path = []) => argDetailsSimple_post_computed_interval_array.map(details => makeArg(path, args, details)); const resource_post_computed_interval_arrayPgResource = registry.pgResources["post_computed_interval_array"]; -const argDetailsSimple72 = []; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 argDetailsSimple_post_computed_text_array = []; +const makeArgs_post_computed_text_array = (args, path = []) => argDetailsSimple_post_computed_text_array.map(details => makeArg(path, args, details)); const resource_post_computed_text_arrayPgResource = registry.pgResources["post_computed_text_array"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_post_computed_with_optional_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: false, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_post_computed_with_optional_arg = (args, path = []) => argDetailsSimple_post_computed_with_optional_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_optional_argPgResource = registry.pgResources["post_computed_with_optional_arg"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_post_computed_with_required_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_post_computed_with_required_arg = (args, path = []) => argDetailsSimple_post_computed_with_required_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_required_argPgResource = registry.pgResources["post_computed_with_required_arg"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_post_headline_trimmed = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13822,52 +10657,9 @@ const argDetailsSimple75 = [{ required: false, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_post_headline_trimmed = (args, path = []) => argDetailsSimple_post_headline_trimmed.map(details => makeArg(path, args, details)); const resource_post_headline_trimmedPgResource = registry.pgResources["post_headline_trimmed"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_post_headline_trimmed_no_defaults = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13880,52 +10672,9 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_post_headline_trimmed_no_defaults = (args, path = []) => argDetailsSimple_post_headline_trimmed_no_defaults.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_no_defaultsPgResource = registry.pgResources["post_headline_trimmed_no_defaults"]; -const argDetailsSimple77 = [{ +const argDetailsSimple_post_headline_trimmed_strict = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13938,102 +10687,16 @@ const argDetailsSimple77 = [{ required: false, fetcher: null }]; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 makeArgs_post_headline_trimmed_strict = (args, path = []) => argDetailsSimple_post_headline_trimmed_strict.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_strictPgResource = registry.pgResources["post_headline_trimmed_strict"]; -const argDetailsSimple78 = [{ +const argDetailsSimple_post_computed_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 makeArgs_post_computed_compound_type_array = (args, path = []) => argDetailsSimple_post_computed_compound_type_array.map(details => makeArg(path, args, details)); const resource_post_computed_compound_type_arrayPgResource = registry.pgResources["post_computed_compound_type_array"]; const resource_frmcdc_comptypePgResource = registry.pgResources["frmcdc_comptype"]; const resource_frmcdc_nestedCompoundTypePgResource = registry.pgResources["frmcdc_nestedCompoundType"]; @@ -14091,641 +10754,82 @@ const parseValueLiteral = (ast, variables) => { return undefined; } }; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple80 = []; -const makeArgs80 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple80[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple81 = []; -const makeArgs81 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple81[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple82 = []; -const makeArgs82 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple82[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple83 = []; -const makeArgs83 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple83[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple84 = []; -const makeArgs84 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple84[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 argDetailsSimple_return_void_mutation = []; +const makeArgs_return_void_mutation = (args, path = []) => argDetailsSimple_return_void_mutation.map(details => makeArg(path, args, details)); const resource_return_void_mutationPgResource = registry.pgResources["return_void_mutation"]; -const argDetailsSimple85 = []; -const makeArgs85 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple85[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 argDetailsSimple_mutation_interval_set = []; +const makeArgs_mutation_interval_set = (args, path = []) => argDetailsSimple_mutation_interval_set.map(details => makeArg(path, args, details)); const resource_mutation_interval_setPgResource = registry.pgResources["mutation_interval_set"]; -const argDetailsSimple86 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs86 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple86[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple87 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs87 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple87[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple88 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs88 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple88[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple89 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs89 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple89[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple90 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs90 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple90[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple91 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs91 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple91[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple92 = [{ +const argDetailsSimple_add_1_mutation = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14738,52 +10842,9 @@ const argDetailsSimple92 = [{ required: true, fetcher: null }]; -const makeArgs92 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple92[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_mutation = (args, path = []) => argDetailsSimple_add_1_mutation.map(details => makeArg(path, args, details)); const resource_add_1_mutationPgResource = registry.pgResources["add_1_mutation"]; -const argDetailsSimple93 = [{ +const argDetailsSimple_add_2_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14796,52 +10857,9 @@ const argDetailsSimple93 = [{ required: false, fetcher: null }]; -const makeArgs93 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple93[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 makeArgs_add_2_mutation = (args, path = []) => argDetailsSimple_add_2_mutation.map(details => makeArg(path, args, details)); const resource_add_2_mutationPgResource = registry.pgResources["add_2_mutation"]; -const argDetailsSimple94 = [{ +const argDetailsSimple_add_3_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14854,52 +10872,9 @@ const argDetailsSimple94 = [{ required: true, fetcher: null }]; -const makeArgs94 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple94[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_mutation = (args, path = []) => argDetailsSimple_add_3_mutation.map(details => makeArg(path, args, details)); const resource_add_3_mutationPgResource = registry.pgResources["add_3_mutation"]; -const argDetailsSimple95 = [{ +const argDetailsSimple_add_4_mutation = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14912,52 +10887,9 @@ const argDetailsSimple95 = [{ required: false, fetcher: null }]; -const makeArgs95 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple95[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation = (args, path = []) => argDetailsSimple_add_4_mutation.map(details => makeArg(path, args, details)); const resource_add_4_mutationPgResource = registry.pgResources["add_4_mutation"]; -const argDetailsSimple96 = [{ +const argDetailsSimple_add_4_mutation_error = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14970,52 +10902,9 @@ const argDetailsSimple96 = [{ required: false, fetcher: null }]; -const makeArgs96 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple96[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation_error = (args, path = []) => argDetailsSimple_add_4_mutation_error.map(details => makeArg(path, args, details)); const resource_add_4_mutation_errorPgResource = registry.pgResources["add_4_mutation_error"]; -const argDetailsSimple97 = [{ +const argDetailsSimple_mult_1 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15028,52 +10917,9 @@ const argDetailsSimple97 = [{ required: true, fetcher: null }]; -const makeArgs97 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple97[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_1 = (args, path = []) => argDetailsSimple_mult_1.map(details => makeArg(path, args, details)); const resource_mult_1PgResource = registry.pgResources["mult_1"]; -const argDetailsSimple98 = [{ +const argDetailsSimple_mult_2 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15086,52 +10932,9 @@ const argDetailsSimple98 = [{ required: true, fetcher: null }]; -const makeArgs98 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple98[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_2 = (args, path = []) => argDetailsSimple_mult_2.map(details => makeArg(path, args, details)); const resource_mult_2PgResource = registry.pgResources["mult_2"]; -const argDetailsSimple99 = [{ +const argDetailsSimple_mult_3 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15144,52 +10947,9 @@ const argDetailsSimple99 = [{ required: true, fetcher: null }]; -const makeArgs99 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple99[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_3 = (args, path = []) => argDetailsSimple_mult_3.map(details => makeArg(path, args, details)); const resource_mult_3PgResource = registry.pgResources["mult_3"]; -const argDetailsSimple100 = [{ +const argDetailsSimple_mult_4 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15202,52 +10962,9 @@ const argDetailsSimple100 = [{ required: true, fetcher: null }]; -const makeArgs100 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple100[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_4 = (args, path = []) => argDetailsSimple_mult_4.map(details => makeArg(path, args, details)); const resource_mult_4PgResource = registry.pgResources["mult_4"]; -const argDetailsSimple101 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -15260,190 +10977,18 @@ const argDetailsSimple101 = [{ required: true, fetcher: null }]; -const makeArgs101 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple101[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple102 = []; -const makeArgs102 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple102[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple103 = []; -const makeArgs103 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple103[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple104 = []; -const makeArgs104 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple104[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple105 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -15462,294 +11007,36 @@ const argDetailsSimple105 = [{ required: true, fetcher: null }]; -const makeArgs105 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple105[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple106 = []; -const makeArgs106 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple106[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple107 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs107 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple107[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple108 = [{ +const argDetailsSimple_guid_fn = [{ graphqlArgName: "g", postgresArgName: "g", pgCodec: guidCodec, required: true, fetcher: null }]; -const makeArgs108 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple108[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 makeArgs_guid_fn = (args, path = []) => argDetailsSimple_guid_fn.map(details => makeArg(path, args, details)); const resource_guid_fnPgResource = registry.pgResources["guid_fn"]; -const argDetailsSimple109 = []; -const makeArgs109 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple109[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 argDetailsSimple_mutation_interval_array = []; +const makeArgs_mutation_interval_array = (args, path = []) => argDetailsSimple_mutation_interval_array.map(details => makeArg(path, args, details)); const resource_mutation_interval_arrayPgResource = registry.pgResources["mutation_interval_array"]; -const argDetailsSimple110 = []; -const makeArgs110 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple110[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 argDetailsSimple_mutation_text_array = []; +const makeArgs_mutation_text_array = (args, path = []) => argDetailsSimple_mutation_text_array.map(details => makeArg(path, args, details)); const resource_mutation_text_arrayPgResource = registry.pgResources["mutation_text_array"]; -const argDetailsSimple111 = [{ +const argDetailsSimple_list_bde_mutation = [{ graphqlArgName: "b", postgresArgName: "b", pgCodec: textArrayCodec, @@ -15768,98 +11055,12 @@ const argDetailsSimple111 = [{ required: true, fetcher: null }]; -const makeArgs111 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple111[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 makeArgs_list_bde_mutation = (args, path = []) => argDetailsSimple_list_bde_mutation.map(details => makeArg(path, args, details)); const resource_list_bde_mutationPgResource = registry.pgResources["list_bde_mutation"]; -const argDetailsSimple112 = []; -const makeArgs112 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple112[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 argDetailsSimple_authenticate_fail = []; +const makeArgs_authenticate_fail = (args, path = []) => argDetailsSimple_authenticate_fail.map(details => makeArg(path, args, details)); const resource_authenticate_failPgResource = registry.pgResources["authenticate_fail"]; -const argDetailsSimple113 = [{ +const argDetailsSimple_authenticate = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15878,196 +11079,24 @@ const argDetailsSimple113 = [{ required: true, fetcher: null }]; -const makeArgs113 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple113[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 makeArgs_authenticate = (args, path = []) => argDetailsSimple_authenticate.map(details => makeArg(path, args, details)); const resource_authenticatePgResource = registry.pgResources["authenticate"]; -const argDetailsSimple114 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs114 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple114[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple115 = []; -const makeArgs115 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple115[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple116 = []; -const makeArgs116 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple116[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple117 = [{ +const argDetailsSimple_authenticate_many = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16086,52 +11115,9 @@ const argDetailsSimple117 = [{ required: true, fetcher: null }]; -const makeArgs117 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple117[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 makeArgs_authenticate_many = (args, path = []) => argDetailsSimple_authenticate_many.map(details => makeArg(path, args, details)); const resource_authenticate_manyPgResource = registry.pgResources["authenticate_many"]; -const argDetailsSimple118 = [{ +const argDetailsSimple_authenticate_payload = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16150,52 +11136,9 @@ const argDetailsSimple118 = [{ required: true, fetcher: null }]; -const makeArgs118 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple118[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 makeArgs_authenticate_payload = (args, path = []) => argDetailsSimple_authenticate_payload.map(details => makeArg(path, args, details)); const resource_authenticate_payloadPgResource = registry.pgResources["authenticate_payload"]; -const argDetailsSimple119 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -16232,260 +11175,45 @@ const argDetailsSimple119 = [{ required: true, fetcher: null }]; -const makeArgs119 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple119[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple120 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs120 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple120[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple121 = [{ +const argDetailsSimple_compound_type_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs121 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple121[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 makeArgs_compound_type_mutation = (args, path = []) => argDetailsSimple_compound_type_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_mutationPgResource = registry.pgResources["compound_type_mutation"]; -const argDetailsSimple122 = [{ +const argDetailsSimple_compound_type_set_mutation = [{ 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 makeArgs_compound_type_set_mutation = (args, path = []) => argDetailsSimple_compound_type_set_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_set_mutationPgResource = registry.pgResources["compound_type_set_mutation"]; -const argDetailsSimple123 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, 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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple124 = [{ +const argDetailsSimple_post_with_suffix = [{ graphqlArgName: "post", postgresArgName: "post", pgCodec: postCodec, @@ -16498,208 +11226,36 @@ const argDetailsSimple124 = [{ required: true, fetcher: null }]; -const makeArgs124 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple124[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 makeArgs_post_with_suffix = (args, path = []) => argDetailsSimple_post_with_suffix.map(details => makeArg(path, args, details)); const resource_post_with_suffixPgResource = registry.pgResources["post_with_suffix"]; -const argDetailsSimple125 = [{ +const argDetailsSimple_mutation_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs125 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple125[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 makeArgs_mutation_compound_type_array = (args, path = []) => argDetailsSimple_mutation_compound_type_array.map(details => makeArg(path, args, details)); const resource_mutation_compound_type_arrayPgResource = registry.pgResources["mutation_compound_type_array"]; -const argDetailsSimple126 = [{ +const argDetailsSimple_compound_type_array_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs126 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple126[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 makeArgs_compound_type_array_mutation = (args, path = []) => argDetailsSimple_compound_type_array_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_array_mutationPgResource = registry.pgResources["compound_type_array_mutation"]; -const argDetailsSimple127 = [{ +const argDetailsSimple_post_many = [{ graphqlArgName: "posts", postgresArgName: "posts", pgCodec: postArrayCodec, required: true, fetcher: null }]; -const makeArgs127 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple127[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 makeArgs_post_many = (args, path = []) => argDetailsSimple_post_many.map(details => makeArg(path, args, details)); const resource_post_manyPgResource = registry.pgResources["post_many"]; -const argDetailsSimple128 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16712,52 +11268,9 @@ const argDetailsSimple128 = [{ required: true, fetcher: null }]; -const makeArgs128 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple128[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple129 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16770,483 +11283,182 @@ const argDetailsSimple129 = [{ required: true, fetcher: null }]; -const makeArgs129 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple129[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple130 = []; -const makeArgs130 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple130[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple131 = []; -const makeArgs131 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple131[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple132 = []; -const makeArgs132 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple132[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; -const argDetailsSimple133 = []; -const makeArgs133 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple133[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 argDetailsSimple_type_function_connection_mutation = []; +const makeArgs_type_function_connection_mutation = (args, path = []) => argDetailsSimple_type_function_connection_mutation.map(details => makeArg(path, args, details)); const resource_type_function_connection_mutationPgResource = registry.pgResources["type_function_connection_mutation"]; -const argDetailsSimple134 = [{ +const argDetailsSimple_type_function_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs134 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple134[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 makeArgs_type_function_mutation = (args, path = []) => argDetailsSimple_type_function_mutation.map(details => makeArg(path, args, details)); const resource_type_function_mutationPgResource = registry.pgResources["type_function_mutation"]; -const argDetailsSimple135 = []; -const makeArgs135 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple135[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 argDetailsSimple_type_function_list_mutation = []; +const makeArgs_type_function_list_mutation = (args, path = []) => argDetailsSimple_type_function_list_mutation.map(details => makeArg(path, args, details)); const resource_type_function_list_mutationPgResource = registry.pgResources["type_function_list_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs15 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs16 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs17 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs18 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs19 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const specFromArgs20 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs21 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs22 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs23 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs24 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs25 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs26 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs27 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs28 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs29 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs30 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs31 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs32 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs33 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs34 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs35 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs36 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs37 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs38 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const resource_frmcdc_jwtTokenPgResource = registry.pgResources["frmcdc_jwtToken"]; @@ -27717,131 +21929,131 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, inputById(_$root, args) { return pgResource_inputsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, patchById(_$root, args) { return pgResource_patchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedById(_$root, args) { return pgResource_reservedPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedPatchRecordById(_$root, args) { return pgResource_reservedPatchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedInputRecordById(_$root, args) { return pgResource_reserved_inputPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, defaultValueById(_$root, args) { return pgResource_default_valuePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, noPrimaryKeyById(_$root, args) { return resource_no_primary_keyPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, uniqueForeignKeyByCompoundKey1AndCompoundKey2(_$root, args) { return resource_unique_foreign_keyPgResource.get({ - compound_key_1: args.get("compoundKey1"), - compound_key_2: args.get("compoundKey2") + compound_key_1: args.getRaw("compoundKey1"), + compound_key_2: args.getRaw("compoundKey2") }); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, viewTableById(_$root, args) { return pgResource_view_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, similarTable1ById(_$root, args) { return pgResource_similar_table_1PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, similarTable2ById(_$root, args) { return pgResource_similar_table_2PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, listById(_$root, args) { return pgResource_listsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, typeById(_$root, args) { return pgResource_typesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -27858,7 +22070,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27867,7 +22078,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27876,7 +22086,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27885,7 +22094,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27894,7 +22102,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27903,11 +22110,11 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, queryIntervalSet: { @@ -27924,7 +22131,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27933,7 +22139,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27942,7 +22147,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27951,7 +22155,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27960,7 +22163,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27982,7 +22184,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27991,7 +22192,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28000,7 +22200,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28009,7 +22208,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28018,7 +22216,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28027,7 +22224,7 @@ export const plans = { } }, funcInOut($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -28044,7 +22241,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28053,7 +22249,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28062,7 +22257,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28071,7 +22265,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28080,7 +22273,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28089,35 +22281,35 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, add1Query($root, args, _info) { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_add_1_query(args); return resource_add_1_queryPgResource.execute(selectArgs); }, add2Query($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_add_2_query(args); return resource_add_2_queryPgResource.execute(selectArgs); }, add3Query($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_add_3_query(args); return resource_add_3_queryPgResource.execute(selectArgs); }, add4Query($root, args, _info) { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_add_4_query(args); return resource_add_4_queryPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -28134,7 +22326,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28143,7 +22334,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28152,7 +22342,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28161,7 +22350,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28170,7 +22358,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28179,19 +22366,18 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28200,7 +22386,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28209,27 +22394,27 @@ export const plans = { } }, optionalMissingMiddle1($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_optional_missing_middle_1(args); return resource_optional_missing_middle_1PgResource.execute(selectArgs); }, optionalMissingMiddle2($root, args, _info) { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_optional_missing_middle_2(args); return resource_optional_missing_middle_2PgResource.execute(selectArgs); }, optionalMissingMiddle3($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_optional_missing_middle_3(args); return resource_optional_missing_middle_3PgResource.execute(selectArgs); }, optionalMissingMiddle4($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_optional_missing_middle_4(args); return resource_optional_missing_middle_4PgResource.execute(selectArgs); }, optionalMissingMiddle5($root, args, _info) { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_optional_missing_middle_5(args); return resource_optional_missing_middle_5PgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -28246,7 +22431,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28255,7 +22439,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28264,7 +22447,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28273,7 +22455,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28282,7 +22463,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28304,7 +22484,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28313,7 +22492,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28322,7 +22500,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28331,7 +22508,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28340,7 +22516,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28349,27 +22524,27 @@ export const plans = { } }, queryIntervalArray($root, args, _info) { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_query_interval_array(args); return resource_query_interval_arrayPgResource.execute(selectArgs); }, queryTextArray($root, args, _info) { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_query_text_array(args); return resource_query_text_arrayPgResource.execute(selectArgs); }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs31(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs32(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs33(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs34(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -28386,7 +22561,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28395,7 +22569,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28404,7 +22577,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28413,7 +22585,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28422,7 +22593,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28431,23 +22601,23 @@ export const plans = { } }, compoundTypeQuery($root, args, _info) { - const selectArgs = makeArgs36(args); + const selectArgs = makeArgs_compound_type_query(args); return resource_compound_type_queryPgResource.execute(selectArgs); }, tableQuery($root, args, _info) { - const selectArgs = makeArgs37(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, queryCompoundTypeArray($root, args, _info) { - const selectArgs = makeArgs38(args); + const selectArgs = makeArgs_query_compound_type_array(args); return resource_query_compound_type_arrayPgResource.execute(selectArgs); }, compoundTypeArrayQuery($root, args, _info) { - const selectArgs = makeArgs39(args); + const selectArgs = makeArgs_compound_type_array_query(args); return resource_compound_type_array_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs40(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -28464,7 +22634,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28473,7 +22642,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28482,7 +22650,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28491,7 +22658,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28500,7 +22666,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28522,7 +22687,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28531,7 +22695,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28540,7 +22703,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28549,7 +22711,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28558,7 +22719,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28567,7 +22727,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs43(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -28584,7 +22744,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28593,7 +22752,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28602,7 +22760,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28611,7 +22768,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28620,7 +22776,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28642,7 +22797,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28651,7 +22805,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28660,7 +22813,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28669,7 +22821,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28678,7 +22829,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28687,22 +22837,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28722,7 +22868,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28731,7 +22876,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28740,7 +22884,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28749,7 +22892,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28758,7 +22900,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28780,7 +22921,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28789,7 +22929,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28798,7 +22937,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28807,7 +22945,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28816,7 +22953,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28825,87 +22961,87 @@ export const plans = { } }, typeFunction($root, args, _info) { - const selectArgs = makeArgs48(args); + const selectArgs = makeArgs_type_function(args); return resource_type_functionPgResource.execute(selectArgs); }, typeFunctionList($root, args, _info) { - const selectArgs = makeArgs49(args); + const selectArgs = makeArgs_type_function_list(args); return resource_type_function_listPgResource.execute(selectArgs); }, input(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, patch(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, reserved(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, reservedPatchRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, reservedInputRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, defaultValue(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher8($nodeId); }, viewTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher9($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher10($nodeId); }, similarTable1(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher11($nodeId); }, similarTable2(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher12($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher13($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher14($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher15($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher16($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher17($nodeId); }, list(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher18($nodeId); }, type(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher19($nodeId); }, allNonUpdatableViews: { @@ -28916,7 +23052,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28925,7 +23060,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28934,7 +23068,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28943,7 +23076,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28952,7 +23084,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28961,22 +23092,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NonUpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28990,7 +23117,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28999,7 +23125,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29008,7 +23133,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29017,7 +23141,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29026,7 +23149,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29035,22 +23157,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29064,7 +23182,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29073,7 +23190,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29082,7 +23198,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29091,7 +23206,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29100,7 +23214,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29109,22 +23222,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29138,7 +23247,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29147,7 +23255,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29156,7 +23263,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29165,7 +23271,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29174,7 +23279,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29183,22 +23287,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29212,7 +23312,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29221,7 +23320,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29230,7 +23328,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29239,7 +23336,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29248,7 +23344,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29257,22 +23352,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29286,7 +23377,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29295,7 +23385,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29304,7 +23393,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29313,7 +23401,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29322,7 +23409,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29331,22 +23417,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29360,7 +23442,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29369,7 +23450,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29378,7 +23458,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29387,7 +23466,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29396,7 +23474,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29405,22 +23482,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29434,7 +23507,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29443,7 +23515,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29452,7 +23523,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29461,7 +23531,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29470,7 +23539,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29479,22 +23547,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29508,7 +23572,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29517,7 +23580,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29526,7 +23588,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29535,7 +23596,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29544,7 +23604,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29553,22 +23612,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NoPrimaryKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29582,7 +23637,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29591,7 +23645,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29600,7 +23653,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29609,7 +23661,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29618,7 +23669,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29627,22 +23677,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TestviewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29656,7 +23702,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29665,7 +23710,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29674,7 +23718,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29683,7 +23726,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29692,7 +23734,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29701,22 +23742,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29730,7 +23767,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29739,7 +23775,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29748,7 +23783,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29757,7 +23791,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29766,7 +23799,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29775,22 +23807,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29804,7 +23832,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29813,7 +23840,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29822,7 +23848,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29831,7 +23856,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29840,7 +23864,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29849,22 +23872,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29878,7 +23897,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29887,7 +23905,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29896,7 +23913,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29905,7 +23921,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29914,7 +23929,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29923,22 +23937,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29952,7 +23962,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29961,7 +23970,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29970,7 +23978,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29979,7 +23986,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29988,7 +23994,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29997,22 +24002,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30026,7 +24027,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30035,7 +24035,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30044,7 +24043,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30053,7 +24051,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30062,7 +24059,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30071,22 +24067,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30100,7 +24092,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30109,7 +24100,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30118,7 +24108,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30127,7 +24116,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30136,7 +24124,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30145,22 +24132,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30174,7 +24157,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30183,7 +24165,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30192,7 +24173,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30201,7 +24181,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30210,7 +24189,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30219,22 +24197,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30248,7 +24222,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30257,7 +24230,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30266,7 +24238,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30275,7 +24246,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30284,7 +24254,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30293,22 +24262,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30322,7 +24287,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30331,7 +24295,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30340,7 +24303,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30349,7 +24311,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30358,7 +24319,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30367,22 +24327,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30396,7 +24352,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30405,7 +24360,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30414,7 +24368,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30423,7 +24376,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30432,7 +24384,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30441,22 +24392,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30470,7 +24417,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30479,7 +24425,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30488,7 +24433,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30497,7 +24441,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30506,7 +24449,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30515,22 +24457,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30544,7 +24482,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30553,7 +24490,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30562,7 +24498,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30571,7 +24506,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30580,7 +24514,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30589,22 +24522,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30618,7 +24547,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30627,7 +24555,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30636,7 +24563,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30645,7 +24571,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30654,7 +24579,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30663,22 +24587,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30692,7 +24612,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30701,7 +24620,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30710,7 +24628,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30719,7 +24636,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30728,7 +24644,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30737,22 +24652,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30883,7 +24794,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30892,7 +24802,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30901,7 +24810,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30910,7 +24818,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30919,7 +24826,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30928,22 +24834,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30966,7 +24868,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30981,27 +24883,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -31010,7 +24906,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31025,27 +24921,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -31054,7 +24944,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs52(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31069,27 +24959,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -31098,7 +24982,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs53(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31113,27 +24997,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -31142,7 +25020,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs54(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31157,27 +25035,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -31186,7 +25058,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs55(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31201,27 +25073,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -31230,7 +25096,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs56(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31245,27 +25111,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -31274,7 +25134,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs57(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31289,27 +25149,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -31318,7 +25172,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs58(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31333,27 +25187,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -31362,7 +25210,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs59(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31377,27 +25225,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -31406,7 +25248,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs60(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31421,27 +25263,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -31450,7 +25286,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs61(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31465,27 +25301,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -31494,7 +25324,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs62(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31509,27 +25339,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -31538,7 +25362,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs63(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31553,27 +25377,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -31582,7 +25400,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs64(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31597,27 +25415,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -31636,7 +25448,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31645,7 +25456,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31654,7 +25464,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31663,7 +25472,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31672,7 +25480,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31681,12 +25488,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -31706,7 +25510,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31715,7 +25518,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31724,7 +25526,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31733,7 +25534,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31742,7 +25542,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31754,7 +25553,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs67(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31769,27 +25568,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -31798,7 +25591,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs68(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31813,27 +25606,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -31888,7 +25675,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31897,7 +25683,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31906,7 +25691,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31915,7 +25699,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31924,7 +25707,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31933,22 +25715,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -31965,7 +25743,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31974,7 +25751,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31983,7 +25759,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31992,7 +25767,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32001,7 +25775,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32010,22 +25783,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32052,7 +25821,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32061,7 +25829,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32070,7 +25837,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32079,7 +25845,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32088,7 +25853,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32097,22 +25861,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32129,7 +25889,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32138,7 +25897,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32147,7 +25905,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32156,7 +25913,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32165,7 +25921,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32174,22 +25929,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32264,7 +26015,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs69(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32279,27 +26030,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -32410,7 +26155,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32419,7 +26163,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32428,7 +26171,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32437,7 +26179,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32446,7 +26187,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32458,7 +26198,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs71(args); + const extraSelectArgs = makeArgs_post_computed_interval_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32473,27 +26213,21 @@ export const plans = { if (resource_post_computed_interval_arrayPgResource.isUnique && !resource_post_computed_interval_arrayPgResource.codec.attributes && typeof resource_post_computed_interval_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${resource_post_computed_interval_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_arrayPgResource.from, resource_post_computed_interval_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_arrayPgResource.execute(selectArgs); @@ -32502,7 +26236,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs72(args); + const extraSelectArgs = makeArgs_post_computed_text_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32517,27 +26251,21 @@ export const plans = { if (resource_post_computed_text_arrayPgResource.isUnique && !resource_post_computed_text_arrayPgResource.codec.attributes && typeof resource_post_computed_text_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${resource_post_computed_text_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_text_arrayPgResource.from, resource_post_computed_text_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_text_arrayPgResource.execute(selectArgs); @@ -32546,7 +26274,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs73(args); + const extraSelectArgs = makeArgs_post_computed_with_optional_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32561,27 +26289,21 @@ export const plans = { if (resource_post_computed_with_optional_argPgResource.isUnique && !resource_post_computed_with_optional_argPgResource.codec.attributes && typeof resource_post_computed_with_optional_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${resource_post_computed_with_optional_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_optional_argPgResource.from, resource_post_computed_with_optional_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_optional_argPgResource.execute(selectArgs); @@ -32590,7 +26312,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs74(args); + const extraSelectArgs = makeArgs_post_computed_with_required_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32605,27 +26327,21 @@ export const plans = { if (resource_post_computed_with_required_argPgResource.isUnique && !resource_post_computed_with_required_argPgResource.codec.attributes && typeof resource_post_computed_with_required_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${resource_post_computed_with_required_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_required_argPgResource.from, resource_post_computed_with_required_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_required_argPgResource.execute(selectArgs); @@ -32634,7 +26350,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs75(args); + const extraSelectArgs = makeArgs_post_headline_trimmed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32649,27 +26365,21 @@ export const plans = { if (resource_post_headline_trimmedPgResource.isUnique && !resource_post_headline_trimmedPgResource.codec.attributes && typeof resource_post_headline_trimmedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${resource_post_headline_trimmedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmedPgResource.from, resource_post_headline_trimmedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmedPgResource.execute(selectArgs); @@ -32678,7 +26388,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs76(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_no_defaults(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32693,27 +26403,21 @@ export const plans = { if (resource_post_headline_trimmed_no_defaultsPgResource.isUnique && !resource_post_headline_trimmed_no_defaultsPgResource.codec.attributes && typeof resource_post_headline_trimmed_no_defaultsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${resource_post_headline_trimmed_no_defaultsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.from, resource_post_headline_trimmed_no_defaultsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_no_defaultsPgResource.execute(selectArgs); @@ -32722,7 +26426,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs77(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_strict(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32737,27 +26441,21 @@ export const plans = { if (resource_post_headline_trimmed_strictPgResource.isUnique && !resource_post_headline_trimmed_strictPgResource.codec.attributes && typeof resource_post_headline_trimmed_strictPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${resource_post_headline_trimmed_strictPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_strictPgResource.from, resource_post_headline_trimmed_strictPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_strictPgResource.execute(selectArgs); @@ -32766,7 +26464,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs78(args); + const extraSelectArgs = makeArgs_post_computed_compound_type_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32781,27 +26479,21 @@ export const plans = { if (resource_post_computed_compound_type_arrayPgResource.isUnique && !resource_post_computed_compound_type_arrayPgResource.codec.attributes && typeof resource_post_computed_compound_type_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${resource_post_computed_compound_type_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_compound_type_arrayPgResource.from, resource_post_computed_compound_type_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_compound_type_arrayPgResource.execute(selectArgs); @@ -32843,7 +26535,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32852,7 +26543,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32861,7 +26551,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32870,7 +26559,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32879,7 +26567,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32888,22 +26575,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32966,64 +26649,70 @@ export const plans = { } }, CompoundTypeInput: { - "__inputPlan": function CompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, IntervalInput: { @@ -33541,31 +27230,21 @@ export const plans = { } }, TypesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33574,19 +27253,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33595,11 +27272,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -33607,7 +27281,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33617,11 +27291,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -33629,7 +27300,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33639,11 +27310,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "ASC", ...(undefined != null ? { @@ -33651,7 +27319,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33661,11 +27329,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "DESC", ...(undefined != null ? { @@ -33673,7 +27338,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33683,11 +27348,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "ASC", ...(undefined != null ? { @@ -33695,7 +27357,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33705,11 +27367,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "DESC", ...(undefined != null ? { @@ -33717,7 +27376,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33727,11 +27386,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "ASC", ...(undefined != null ? { @@ -33739,7 +27395,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33749,11 +27405,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "DESC", ...(undefined != null ? { @@ -33761,7 +27414,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33771,11 +27424,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "ASC", ...(undefined != null ? { @@ -33783,7 +27433,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33793,11 +27443,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "DESC", ...(undefined != null ? { @@ -33805,7 +27452,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33815,11 +27462,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "ASC", ...(undefined != null ? { @@ -33827,7 +27471,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33837,11 +27481,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "DESC", ...(undefined != null ? { @@ -33849,7 +27490,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33859,11 +27500,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "ASC", ...(undefined != null ? { @@ -33871,7 +27509,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33881,11 +27519,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "DESC", ...(undefined != null ? { @@ -33893,7 +27528,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33903,11 +27538,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "ASC", ...(undefined != null ? { @@ -33915,7 +27547,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33925,11 +27557,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "DESC", ...(undefined != null ? { @@ -33937,7 +27566,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33947,11 +27576,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "ASC", ...(undefined != null ? { @@ -33959,7 +27585,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33969,11 +27595,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "DESC", ...(undefined != null ? { @@ -33981,7 +27604,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33991,11 +27614,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "ASC", ...(undefined != null ? { @@ -34003,7 +27623,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34013,11 +27633,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "DESC", ...(undefined != null ? { @@ -34025,7 +27642,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34035,11 +27652,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "ASC", ...(undefined != null ? { @@ -34047,7 +27661,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34057,11 +27671,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "DESC", ...(undefined != null ? { @@ -34069,7 +27680,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34079,11 +27690,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "ASC", ...(undefined != null ? { @@ -34091,7 +27699,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34101,11 +27709,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "DESC", ...(undefined != null ? { @@ -34113,7 +27718,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34123,11 +27728,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "ASC", ...(undefined != null ? { @@ -34135,7 +27737,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34145,11 +27747,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "DESC", ...(undefined != null ? { @@ -34157,7 +27756,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34167,11 +27766,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "ASC", ...(undefined != null ? { @@ -34179,7 +27775,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34189,11 +27785,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "DESC", ...(undefined != null ? { @@ -34201,7 +27794,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34211,11 +27804,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "ASC", ...(undefined != null ? { @@ -34223,7 +27813,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34233,11 +27823,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "DESC", ...(undefined != null ? { @@ -34245,7 +27832,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34255,11 +27842,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "ASC", ...(undefined != null ? { @@ -34267,7 +27851,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34277,11 +27861,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "DESC", ...(undefined != null ? { @@ -34289,7 +27870,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34299,11 +27880,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "ASC", ...(undefined != null ? { @@ -34311,7 +27889,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34321,11 +27899,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "DESC", ...(undefined != null ? { @@ -34333,7 +27908,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34343,11 +27918,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "ASC", ...(undefined != null ? { @@ -34355,7 +27927,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34365,11 +27937,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "DESC", ...(undefined != null ? { @@ -34377,7 +27946,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34387,11 +27956,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "ASC", ...(undefined != null ? { @@ -34399,7 +27965,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34409,11 +27975,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "DESC", ...(undefined != null ? { @@ -34421,7 +27984,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34431,11 +27994,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "ASC", ...(undefined != null ? { @@ -34443,7 +28003,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34453,11 +28013,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "DESC", ...(undefined != null ? { @@ -34465,7 +28022,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34475,11 +28032,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34487,7 +28041,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34497,11 +28051,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34509,7 +28060,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34519,11 +28070,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34531,7 +28079,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34541,11 +28089,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34553,7 +28098,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34563,11 +28108,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34575,7 +28117,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34585,11 +28127,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34597,7 +28136,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34607,11 +28146,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "ASC", ...(undefined != null ? { @@ -34619,7 +28155,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34629,11 +28165,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "DESC", ...(undefined != null ? { @@ -34641,7 +28174,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34651,11 +28184,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "ASC", ...(undefined != null ? { @@ -34663,7 +28193,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34673,11 +28203,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "DESC", ...(undefined != null ? { @@ -34685,7 +28212,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34695,11 +28222,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -34707,7 +28231,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34717,11 +28241,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -34729,7 +28250,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34739,11 +28260,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -34751,7 +28269,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34761,11 +28279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -34773,7 +28288,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34783,11 +28298,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -34795,7 +28307,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34805,11 +28317,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -34817,7 +28326,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34827,11 +28336,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "ASC", ...(undefined != null ? { @@ -34839,7 +28345,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34849,11 +28355,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "DESC", ...(undefined != null ? { @@ -34861,7 +28364,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34871,11 +28374,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "ASC", ...(undefined != null ? { @@ -34883,7 +28383,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34893,11 +28393,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "DESC", ...(undefined != null ? { @@ -34905,7 +28402,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34915,11 +28412,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "ASC", ...(undefined != null ? { @@ -34927,7 +28421,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34937,11 +28431,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "DESC", ...(undefined != null ? { @@ -34949,7 +28440,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34959,11 +28450,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "ASC", ...(undefined != null ? { @@ -34971,7 +28459,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34981,11 +28469,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "DESC", ...(undefined != null ? { @@ -34993,7 +28478,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35003,11 +28488,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "ASC", ...(undefined != null ? { @@ -35015,7 +28497,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35025,11 +28507,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "DESC", ...(undefined != null ? { @@ -35037,7 +28516,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35047,11 +28526,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "ASC", ...(undefined != null ? { @@ -35059,7 +28535,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35069,11 +28545,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "DESC", ...(undefined != null ? { @@ -35081,7 +28554,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35091,11 +28564,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "ASC", ...(undefined != null ? { @@ -35103,7 +28573,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35113,11 +28583,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "DESC", ...(undefined != null ? { @@ -35125,7 +28592,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35135,11 +28602,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "ASC", ...(undefined != null ? { @@ -35147,7 +28611,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35157,11 +28621,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "DESC", ...(undefined != null ? { @@ -35169,7 +28630,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35179,11 +28640,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "ASC", ...(undefined != null ? { @@ -35191,7 +28649,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35201,11 +28659,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "DESC", ...(undefined != null ? { @@ -35213,7 +28668,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35222,8 +28677,8 @@ export const plans = { }, TypeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35236,17 +28691,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, smallint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "smallint", @@ -35259,17 +28712,15 @@ export const plans = { type: "attribute", attribute: "smallint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.smallint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, bigint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "bigint", @@ -35282,17 +28733,15 @@ export const plans = { type: "attribute", attribute: "bigint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.bigint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numeric: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numeric", @@ -35305,17 +28754,15 @@ export const plans = { type: "attribute", attribute: "numeric", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numeric.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, decimal: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "decimal", @@ -35328,17 +28775,15 @@ export const plans = { type: "attribute", attribute: "decimal", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.decimal.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, boolean: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "boolean", @@ -35351,17 +28796,15 @@ export const plans = { type: "attribute", attribute: "boolean", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.boolean.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, varchar: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "varchar", @@ -35374,17 +28817,15 @@ export const plans = { type: "attribute", attribute: "varchar", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.varchar.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum", @@ -35397,17 +28838,15 @@ export const plans = { type: "attribute", attribute: "enum", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -35420,17 +28859,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain", @@ -35443,17 +28880,15 @@ export const plans = { type: "attribute", attribute: "domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain2", @@ -35466,17 +28901,15 @@ export const plans = { type: "attribute", attribute: "domain2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anotherIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array", @@ -35489,17 +28922,15 @@ export const plans = { type: "attribute", attribute: "text_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, json: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json", @@ -35512,17 +28943,15 @@ export const plans = { type: "attribute", attribute: "json", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.json.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.json)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonb: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "jsonb", @@ -35535,17 +28964,15 @@ export const plans = { type: "attribute", attribute: "jsonb", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.jsonb.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_range", @@ -35558,17 +28985,15 @@ export const plans = { type: "attribute", attribute: "nullable_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numrange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numrange", @@ -35581,17 +29006,15 @@ export const plans = { type: "attribute", attribute: "numrange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numrange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, daterange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "daterange", @@ -35604,17 +29027,15 @@ export const plans = { type: "attribute", attribute: "daterange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.daterange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, daterangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, anIntRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "an_int_range", @@ -35627,17 +29048,15 @@ export const plans = { type: "attribute", attribute: "an_int_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.an_int_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntRangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamp", @@ -35650,17 +29069,15 @@ export const plans = { type: "attribute", attribute: "timestamp", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamp.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz", @@ -35673,17 +29090,15 @@ export const plans = { type: "attribute", attribute: "timestamptz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamptz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, date: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date", @@ -35696,17 +29111,15 @@ export const plans = { type: "attribute", attribute: "date", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.date.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.date)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, time: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "time", @@ -35719,17 +29132,15 @@ export const plans = { type: "attribute", attribute: "time", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.time.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.time)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timetz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timetz", @@ -35742,17 +29153,15 @@ export const plans = { type: "attribute", attribute: "timetz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timetz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timetz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, interval: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval", @@ -35765,17 +29174,15 @@ export const plans = { type: "attribute", attribute: "interval", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.interval)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intervalArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval_array", @@ -35788,17 +29195,15 @@ export const plans = { type: "attribute", attribute: "interval_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, intervalArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, money: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "money", @@ -35811,17 +29216,15 @@ export const plans = { type: "attribute", attribute: "money", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.money.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.money)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type", @@ -35834,17 +29237,15 @@ export const plans = { type: "attribute", attribute: "compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nested_compound_type", @@ -35857,17 +29258,15 @@ export const plans = { type: "attribute", attribute: "nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_compound_type", @@ -35880,17 +29279,15 @@ export const plans = { type: "attribute", attribute: "nullable_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableNestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_nested_compound_type", @@ -35903,17 +29300,15 @@ export const plans = { type: "attribute", attribute: "nullable_nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, point: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "point", @@ -35926,17 +29321,15 @@ export const plans = { type: "attribute", attribute: "point", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.point.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullablePoint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullablePoint", @@ -35949,17 +29342,15 @@ export const plans = { type: "attribute", attribute: "nullablePoint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullablePoint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -35972,17 +29363,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -35995,17 +29384,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -36018,17 +29405,15 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regproc: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regproc", @@ -36041,17 +29426,15 @@ export const plans = { type: "attribute", attribute: "regproc", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regproc.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regproc)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regprocedure: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regprocedure", @@ -36064,17 +29447,15 @@ export const plans = { type: "attribute", attribute: "regprocedure", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regprocedure.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regprocedure)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoper: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoper", @@ -36087,17 +29468,15 @@ export const plans = { type: "attribute", attribute: "regoper", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoper.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoper)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoperator: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoperator", @@ -36110,17 +29489,15 @@ export const plans = { type: "attribute", attribute: "regoperator", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoperator.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoperator)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regclass: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regclass", @@ -36133,17 +29510,15 @@ export const plans = { type: "attribute", attribute: "regclass", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regclass.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regclass)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regtype: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regtype", @@ -36156,17 +29531,15 @@ export const plans = { type: "attribute", attribute: "regtype", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regtype.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regtype)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regconfig: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regconfig", @@ -36179,17 +29552,15 @@ export const plans = { type: "attribute", attribute: "regconfig", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regconfig.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regconfig)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regdictionary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regdictionary", @@ -36202,17 +29573,15 @@ export const plans = { type: "attribute", attribute: "regdictionary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regdictionary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regdictionary)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array_domain", @@ -36225,17 +29594,15 @@ export const plans = { type: "attribute", attribute: "text_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, int8ArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int8_array_domain", @@ -36248,17 +29615,15 @@ export const plans = { type: "attribute", attribute: "int8_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.int8_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int8ArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltree: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree", @@ -36271,17 +29636,15 @@ export const plans = { type: "attribute", attribute: "ltree", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_codec_ltree)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltreeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree_array", @@ -36294,13 +29657,11 @@ export const plans = { type: "attribute", attribute: "ltree_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_array_codec_ltree_)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BigFloatRangeInput: { @@ -36328,29 +29689,30 @@ export const plans = { inclusive: undefined }, NestedCompoundTypeInput: { - "__inputPlan": function NestedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, bazBuz: { - applyPlan($insert, val) { - $insert.set("baz_buz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("baz_buz", bakedInputRuntime(schema, field.type, val)); + } } }, PointInput: { @@ -36383,26 +29745,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36415,14 +29769,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36435,14 +29789,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36455,14 +29809,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36475,19 +29829,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36496,19 +29848,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36517,11 +29867,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36529,7 +29876,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36539,11 +29886,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36551,7 +29895,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36561,11 +29905,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -36573,7 +29914,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36583,11 +29924,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -36595,7 +29933,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36605,11 +29943,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -36617,7 +29952,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36627,11 +29962,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -36639,7 +29971,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36649,11 +29981,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -36661,7 +29990,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36671,11 +30000,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -36683,7 +30009,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36693,11 +30019,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -36705,7 +30028,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36715,11 +30038,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -36727,7 +30047,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36737,11 +30057,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -36749,7 +30066,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36759,11 +30076,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -36771,7 +30085,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36781,11 +30095,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -36793,7 +30104,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36803,11 +30114,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -36815,7 +30123,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36825,11 +30133,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -36837,7 +30142,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36847,11 +30152,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -36859,7 +30161,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36869,11 +30171,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -36881,7 +30180,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36891,11 +30190,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -36903,7 +30199,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36913,11 +30209,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -36925,7 +30218,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36935,11 +30228,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -36947,7 +30237,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37030,26 +30320,18 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_WITH_OPTIONAL_ARG_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -37062,14 +30344,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -37082,19 +30364,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37103,19 +30383,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37124,11 +30402,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37136,7 +30411,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37146,11 +30421,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37158,7 +30430,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37168,11 +30440,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "ASC", ...(undefined != null ? { @@ -37180,7 +30449,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37190,11 +30459,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "DESC", ...(undefined != null ? { @@ -37202,7 +30468,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37212,11 +30478,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -37224,7 +30487,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37234,11 +30497,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -37246,7 +30506,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37256,11 +30516,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -37268,7 +30525,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37278,11 +30535,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -37290,7 +30544,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37299,8 +30553,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37313,17 +30567,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, headline: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "headline", @@ -37336,17 +30588,15 @@ export const plans = { type: "attribute", attribute: "headline", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.headline.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -37359,17 +30609,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -37382,17 +30630,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enums: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enums", @@ -37405,17 +30651,15 @@ export const plans = { type: "attribute", attribute: "enums", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.enums.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anEnumArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, comptypes: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "comptypes", @@ -37428,47 +30672,46 @@ export const plans = { type: "attribute", attribute: "comptypes", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.comptypes.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, comptypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedWithOptionalArg: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_post_computed_with_optional_argPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_post_computed_with_optional_argPgResource.codec)}`); } } } }, ComptypeInput: { - "__inputPlan": function ComptypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, schedule: { - applyPlan($insert, val) { - $insert.set("schedule", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("schedule", bakedInputRuntime(schema, field.type, val)); + } }, isOptimised: { - applyPlan($insert, val) { - $insert.set("is_optimised", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_optimised", bakedInputRuntime(schema, field.type, val)); + } } }, ForeignKeysConnection: { @@ -37520,23 +30763,12 @@ export const plans = { } }, ForeignKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PERSON_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -37544,7 +30776,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37554,11 +30786,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -37566,7 +30795,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37576,11 +30805,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "ASC", ...(undefined != null ? { @@ -37588,7 +30814,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37598,11 +30824,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "DESC", ...(undefined != null ? { @@ -37610,7 +30833,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37620,11 +30843,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "ASC", ...(undefined != null ? { @@ -37632,7 +30852,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37642,11 +30862,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "DESC", ...(undefined != null ? { @@ -37654,7 +30871,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37663,8 +30880,8 @@ export const plans = { }, ForeignKeyCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -37677,17 +30894,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_1", @@ -37700,17 +30915,15 @@ export const plans = { type: "attribute", attribute: "compound_key_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_2", @@ -37723,13 +30936,11 @@ export const plans = { type: "attribute", attribute: "compound_key_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecret: { @@ -37800,31 +31011,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37833,19 +31034,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37854,11 +31053,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -37866,7 +31062,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37876,11 +31072,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -37888,7 +31081,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37898,11 +31091,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -37910,7 +31100,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37920,11 +31110,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -37932,7 +31119,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37942,11 +31129,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -37954,7 +31138,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37964,11 +31148,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -37976,7 +31157,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37985,8 +31166,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -37999,17 +31180,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -38022,17 +31201,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -38045,13 +31222,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTable: { @@ -38594,8 +31769,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -38608,17 +31783,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -38631,17 +31804,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -38654,17 +31825,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -38677,17 +31846,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -38700,17 +31867,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -38723,17 +31888,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -38746,17 +31909,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -38769,17 +31930,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -38792,17 +31951,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -38815,17 +31972,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -38838,40 +31993,38 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, NonUpdatableViewsConnection: { @@ -38906,23 +32059,12 @@ export const plans = { } }, NonUpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COLUMN_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "ASC", ...(undefined != null ? { @@ -38930,7 +32072,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38940,11 +32082,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "DESC", ...(undefined != null ? { @@ -38952,7 +32091,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38961,8 +32100,8 @@ export const plans = { }, NonUpdatableViewCondition: { column: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "?column?", @@ -38975,13 +32114,11 @@ export const plans = { type: "attribute", attribute: "?column?", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nonUpdatableView.attributes["?column?"].codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, InputsConnection: { @@ -39010,31 +32147,21 @@ export const plans = { } }, InputsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39043,19 +32170,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39064,11 +32189,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39076,7 +32198,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39086,11 +32208,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39098,7 +32217,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39107,8 +32226,8 @@ export const plans = { }, InputCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39121,13 +32240,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_inputs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PatchesConnection: { @@ -39156,31 +32273,21 @@ export const plans = { } }, PatchesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39189,19 +32296,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39210,11 +32315,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39222,7 +32324,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39232,11 +32334,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39244,7 +32343,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39253,8 +32352,8 @@ export const plans = { }, PatchCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39267,13 +32366,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_patchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedsConnection: { @@ -39302,31 +32399,21 @@ export const plans = { } }, ReservedsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39335,19 +32422,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39356,11 +32441,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39368,7 +32450,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39378,11 +32460,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39390,7 +32469,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39399,8 +32478,8 @@ export const plans = { }, ReservedCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39413,13 +32492,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedPatchRecordsConnection: { @@ -39448,31 +32525,21 @@ export const plans = { } }, ReservedPatchRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39481,19 +32548,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39502,11 +32567,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39514,7 +32576,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39524,11 +32586,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39536,7 +32595,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39545,8 +32604,8 @@ export const plans = { }, ReservedPatchRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39559,13 +32618,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedPatchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedInputRecordsConnection: { @@ -39594,31 +32651,21 @@ export const plans = { } }, ReservedInputRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39627,19 +32674,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39648,11 +32693,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39660,7 +32702,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39670,11 +32712,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39682,7 +32721,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39691,8 +32730,8 @@ export const plans = { }, ReservedInputRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39705,13 +32744,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedInput.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, DefaultValuesConnection: { @@ -39740,31 +32777,21 @@ export const plans = { } }, DefaultValuesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39773,19 +32800,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39794,11 +32819,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39806,7 +32828,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39816,11 +32838,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39828,7 +32847,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39838,11 +32857,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "ASC", ...(undefined != null ? { @@ -39850,7 +32866,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39860,11 +32876,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "DESC", ...(undefined != null ? { @@ -39872,7 +32885,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39881,8 +32894,8 @@ export const plans = { }, DefaultValueCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39895,17 +32908,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullValue: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "null_value", @@ -39918,13 +32929,11 @@ export const plans = { type: "attribute", attribute: "null_value", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.null_value.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NoPrimaryKeysConnection: { @@ -39953,23 +32962,12 @@ export const plans = { } }, NoPrimaryKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39977,7 +32975,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39987,11 +32985,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39999,7 +32994,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40009,11 +33004,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "ASC", ...(undefined != null ? { @@ -40021,7 +33013,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40031,11 +33023,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "DESC", ...(undefined != null ? { @@ -40043,7 +33032,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40052,8 +33041,8 @@ export const plans = { }, NoPrimaryKeyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40066,17 +33055,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, str: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str", @@ -40089,13 +33076,11 @@ export const plans = { type: "attribute", attribute: "str", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.str.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TestviewsConnection: { @@ -40136,23 +33121,12 @@ export const plans = { } }, TestviewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, TESTVIEWID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "ASC", ...(undefined != null ? { @@ -40160,7 +33134,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40170,11 +33144,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "DESC", ...(undefined != null ? { @@ -40182,7 +33153,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40192,11 +33163,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40204,7 +33172,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40214,11 +33182,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40226,7 +33191,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40236,11 +33201,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40248,7 +33210,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40258,11 +33220,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40270,7 +33229,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40279,8 +33238,8 @@ export const plans = { }, TestviewCondition: { testviewid: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "testviewid", @@ -40293,17 +33252,15 @@ export const plans = { type: "attribute", attribute: "testviewid", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.testviewid.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -40316,17 +33273,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -40339,13 +33294,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTablesConnection: { @@ -40374,31 +33327,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40407,19 +33350,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40428,11 +33369,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40440,7 +33378,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40450,11 +33388,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40462,7 +33397,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40472,11 +33407,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -40484,7 +33416,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40494,11 +33426,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -40506,7 +33435,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40515,8 +33444,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40529,17 +33458,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -40552,13 +33479,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -40587,31 +33512,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40620,19 +33535,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40641,11 +33554,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -40653,7 +33563,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40663,11 +33573,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -40675,7 +33582,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40685,11 +33592,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -40697,7 +33601,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40707,11 +33611,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -40719,7 +33620,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40728,8 +33629,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -40742,17 +33643,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -40765,13 +33664,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ViewTablesConnection: { @@ -40800,31 +33697,21 @@ export const plans = { } }, ViewTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40833,19 +33720,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40854,11 +33739,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40866,7 +33748,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40876,11 +33758,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40888,7 +33767,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40898,11 +33777,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40910,7 +33786,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40920,11 +33796,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40932,7 +33805,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40942,11 +33815,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40954,7 +33824,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40964,11 +33834,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40976,7 +33843,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40985,8 +33852,8 @@ export const plans = { }, ViewTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40999,17 +33866,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41022,17 +33887,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41045,13 +33908,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable1SConnection: { @@ -41080,31 +33941,21 @@ export const plans = { } }, SimilarTable1SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41113,19 +33964,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41134,11 +33983,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41146,7 +33992,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41156,11 +34002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41168,7 +34011,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41178,11 +34021,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -41190,7 +34030,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41200,11 +34040,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -41212,7 +34049,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41222,11 +34059,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -41234,7 +34068,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41244,11 +34078,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -41256,7 +34087,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41266,11 +34097,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41278,7 +34106,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41288,11 +34116,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41300,7 +34125,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41309,8 +34134,8 @@ export const plans = { }, SimilarTable1Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41323,17 +34148,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41346,17 +34169,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41369,17 +34190,15 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41392,13 +34211,11 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable2SConnection: { @@ -41427,31 +34244,21 @@ export const plans = { } }, SimilarTable2SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41460,19 +34267,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41481,11 +34286,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41493,7 +34295,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41503,11 +34305,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41515,7 +34314,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41525,11 +34324,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41537,7 +34333,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41547,11 +34343,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41559,7 +34352,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41569,11 +34362,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "ASC", ...(undefined != null ? { @@ -41581,7 +34371,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41591,11 +34381,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "DESC", ...(undefined != null ? { @@ -41603,7 +34390,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41613,11 +34400,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "ASC", ...(undefined != null ? { @@ -41625,7 +34409,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41635,11 +34419,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "DESC", ...(undefined != null ? { @@ -41647,7 +34428,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41656,8 +34437,8 @@ export const plans = { }, SimilarTable2Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41670,17 +34451,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41693,17 +34472,15 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col4: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col4", @@ -41716,17 +34493,15 @@ export const plans = { type: "attribute", attribute: "col4", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col4.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col5: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col5", @@ -41739,13 +34514,11 @@ export const plans = { type: "attribute", attribute: "col5", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col5.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UpdatableViewsConnection: { @@ -41789,23 +34562,12 @@ export const plans = { } }, UpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, X_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "ASC", ...(undefined != null ? { @@ -41813,7 +34575,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41823,11 +34585,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "DESC", ...(undefined != null ? { @@ -41835,7 +34594,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41845,11 +34604,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -41857,7 +34613,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41867,11 +34623,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -41879,7 +34632,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41889,11 +34642,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -41901,7 +34651,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41911,11 +34661,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -41923,7 +34670,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41933,11 +34680,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "ASC", ...(undefined != null ? { @@ -41945,7 +34689,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41955,11 +34699,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "DESC", ...(undefined != null ? { @@ -41967,7 +34708,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41976,8 +34717,8 @@ export const plans = { }, UpdatableViewCondition: { x: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "x", @@ -41990,17 +34731,15 @@ export const plans = { type: "attribute", attribute: "x", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.x.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -42013,17 +34752,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -42036,17 +34773,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constant: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constant", @@ -42059,13 +34794,11 @@ export const plans = { type: "attribute", attribute: "constant", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.constant.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -42094,31 +34827,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42127,19 +34850,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42148,11 +34869,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42160,7 +34878,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42170,11 +34888,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42182,7 +34897,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42192,11 +34907,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -42204,7 +34916,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42214,11 +34926,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -42226,7 +34935,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42236,11 +34945,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -42248,7 +34954,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42258,11 +34964,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -42270,7 +34973,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42280,11 +34983,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -42292,7 +34992,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42302,11 +35002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -42314,7 +35011,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42323,8 +35020,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42337,17 +35034,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -42360,17 +35055,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -42383,17 +35076,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -42406,13 +35097,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -42437,7 +35126,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs79(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -42452,27 +35141,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -42497,23 +35180,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -42521,7 +35193,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42531,11 +35203,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -42543,7 +35212,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42553,11 +35222,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -42565,7 +35231,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42575,11 +35241,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -42587,7 +35250,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42597,11 +35260,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -42609,7 +35269,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42619,11 +35279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -42631,7 +35288,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42640,8 +35297,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -42654,17 +35311,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -42677,17 +35332,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -42700,13 +35353,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -42735,31 +35386,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42768,19 +35409,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42789,11 +35428,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42801,7 +35437,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42811,11 +35447,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42823,7 +35456,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42833,11 +35466,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -42845,7 +35475,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42855,11 +35485,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -42867,7 +35494,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42877,11 +35504,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -42889,7 +35513,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42899,11 +35523,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -42911,7 +35532,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42921,11 +35542,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -42933,7 +35551,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42943,11 +35561,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -42955,7 +35570,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42964,8 +35579,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42978,17 +35593,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -43001,17 +35614,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -43024,17 +35635,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -43047,13 +35656,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -43082,31 +35689,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43115,19 +35712,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43136,11 +35731,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43148,7 +35740,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43158,11 +35750,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43170,7 +35759,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43180,11 +35769,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -43192,7 +35778,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43202,11 +35788,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -43214,7 +35797,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43223,8 +35806,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43237,17 +35820,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -43260,13 +35841,11 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ListsConnection: { @@ -43295,31 +35874,21 @@ export const plans = { } }, ListsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43328,19 +35897,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43349,11 +35916,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43361,7 +35925,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43371,11 +35935,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43383,7 +35944,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43392,8 +35953,8 @@ export const plans = { }, ListCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43406,17 +35967,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array", @@ -43429,17 +35988,15 @@ export const plans = { type: "attribute", attribute: "int_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array_nn", @@ -43452,17 +36009,15 @@ export const plans = { type: "attribute", attribute: "int_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -43475,17 +36030,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array_nn", @@ -43498,17 +36051,15 @@ export const plans = { type: "attribute", attribute: "enum_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array", @@ -43521,17 +36072,15 @@ export const plans = { type: "attribute", attribute: "date_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array_nn", @@ -43544,17 +36093,15 @@ export const plans = { type: "attribute", attribute: "date_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array", @@ -43567,17 +36114,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array_nn", @@ -43590,17 +36135,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array", @@ -43613,17 +36156,15 @@ export const plans = { type: "attribute", attribute: "compound_type_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array_nn", @@ -43636,20 +36177,18 @@ export const plans = { type: "attribute", attribute: "compound_type_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs80(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43659,9 +36198,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43669,7 +36217,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs81(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43679,9 +36227,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43689,7 +36246,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs82(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43699,9 +36256,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43709,7 +36275,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs83(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43719,9 +36285,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43729,7 +36304,7 @@ export const plans = { }, returnVoidMutation: { plan($root, args, _info) { - const selectArgs = makeArgs84(args, ["input"]); + const selectArgs = makeArgs_return_void_mutation(args, ["input"]); const $result = resource_return_void_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43739,9 +36314,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43749,7 +36333,7 @@ export const plans = { }, mutationIntervalSet: { plan($root, args, _info) { - const selectArgs = makeArgs85(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_set(args, ["input"]); const $result = resource_mutation_interval_setPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43759,9 +36343,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43769,7 +36362,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs86(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43779,9 +36372,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43789,7 +36391,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs87(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43799,9 +36401,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43809,7 +36420,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs88(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43819,9 +36430,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43829,7 +36449,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs89(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43839,9 +36459,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43849,7 +36478,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs90(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43859,9 +36488,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43869,7 +36507,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs91(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43879,9 +36517,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43889,7 +36536,7 @@ export const plans = { }, add1Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs92(args, ["input"]); + const selectArgs = makeArgs_add_1_mutation(args, ["input"]); const $result = resource_add_1_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43899,9 +36546,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43909,7 +36565,7 @@ export const plans = { }, add2Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs93(args, ["input"]); + const selectArgs = makeArgs_add_2_mutation(args, ["input"]); const $result = resource_add_2_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43919,9 +36575,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43929,7 +36594,7 @@ export const plans = { }, add3Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs94(args, ["input"]); + const selectArgs = makeArgs_add_3_mutation(args, ["input"]); const $result = resource_add_3_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43939,9 +36604,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43949,7 +36623,7 @@ export const plans = { }, add4Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs95(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation(args, ["input"]); const $result = resource_add_4_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43959,9 +36633,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43969,7 +36652,7 @@ export const plans = { }, add4MutationError: { plan($root, args, _info) { - const selectArgs = makeArgs96(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation_error(args, ["input"]); const $result = resource_add_4_mutation_errorPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43979,9 +36662,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43989,7 +36681,7 @@ export const plans = { }, mult1: { plan($root, args, _info) { - const selectArgs = makeArgs97(args, ["input"]); + const selectArgs = makeArgs_mult_1(args, ["input"]); const $result = resource_mult_1PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43999,9 +36691,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44009,7 +36710,7 @@ export const plans = { }, mult2: { plan($root, args, _info) { - const selectArgs = makeArgs98(args, ["input"]); + const selectArgs = makeArgs_mult_2(args, ["input"]); const $result = resource_mult_2PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44019,9 +36720,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44029,7 +36739,7 @@ export const plans = { }, mult3: { plan($root, args, _info) { - const selectArgs = makeArgs99(args, ["input"]); + const selectArgs = makeArgs_mult_3(args, ["input"]); const $result = resource_mult_3PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44039,9 +36749,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44049,7 +36768,7 @@ export const plans = { }, mult4: { plan($root, args, _info) { - const selectArgs = makeArgs100(args, ["input"]); + const selectArgs = makeArgs_mult_4(args, ["input"]); const $result = resource_mult_4PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44059,9 +36778,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44069,7 +36797,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs101(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44079,9 +36807,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44089,7 +36826,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs102(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44099,9 +36836,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44109,7 +36855,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs103(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44119,9 +36865,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44129,7 +36884,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs104(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44139,9 +36894,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44149,7 +36913,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs105(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44159,9 +36923,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44169,7 +36942,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs106(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44179,9 +36952,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44189,7 +36971,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs107(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44199,9 +36981,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44209,7 +37000,7 @@ export const plans = { }, guidFn: { plan($root, args, _info) { - const selectArgs = makeArgs108(args, ["input"]); + const selectArgs = makeArgs_guid_fn(args, ["input"]); const $result = resource_guid_fnPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44219,9 +37010,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44229,7 +37029,7 @@ export const plans = { }, mutationIntervalArray: { plan($root, args, _info) { - const selectArgs = makeArgs109(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_array(args, ["input"]); const $result = resource_mutation_interval_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44239,9 +37039,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44249,7 +37058,7 @@ export const plans = { }, mutationTextArray: { plan($root, args, _info) { - const selectArgs = makeArgs110(args, ["input"]); + const selectArgs = makeArgs_mutation_text_array(args, ["input"]); const $result = resource_mutation_text_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44259,9 +37068,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44269,7 +37087,7 @@ export const plans = { }, listBdeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs111(args, ["input"]); + const selectArgs = makeArgs_list_bde_mutation(args, ["input"]); const $result = resource_list_bde_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44279,9 +37097,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44289,7 +37116,7 @@ export const plans = { }, authenticateFail: { plan($root, args, _info) { - const selectArgs = makeArgs112(args, ["input"]); + const selectArgs = makeArgs_authenticate_fail(args, ["input"]); const $result = resource_authenticate_failPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44299,9 +37126,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44309,7 +37145,7 @@ export const plans = { }, authenticate: { plan($root, args, _info) { - const selectArgs = makeArgs113(args, ["input"]); + const selectArgs = makeArgs_authenticate(args, ["input"]); const $result = resource_authenticatePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44319,9 +37155,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44329,7 +37174,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs114(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44339,9 +37184,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44349,7 +37203,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs115(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44359,9 +37213,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44369,7 +37232,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs116(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44379,9 +37242,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44389,7 +37261,7 @@ export const plans = { }, authenticateMany: { plan($root, args, _info) { - const selectArgs = makeArgs117(args, ["input"]); + const selectArgs = makeArgs_authenticate_many(args, ["input"]); const $result = resource_authenticate_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44399,9 +37271,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44409,7 +37290,7 @@ export const plans = { }, authenticatePayload: { plan($root, args, _info) { - const selectArgs = makeArgs118(args, ["input"]); + const selectArgs = makeArgs_authenticate_payload(args, ["input"]); const $result = resource_authenticate_payloadPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44419,9 +37300,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44429,7 +37319,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs119(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44439,9 +37329,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44449,7 +37348,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs120(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44459,9 +37358,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44469,7 +37377,7 @@ export const plans = { }, compoundTypeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs121(args, ["input"]); + const selectArgs = makeArgs_compound_type_mutation(args, ["input"]); const $result = resource_compound_type_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44479,9 +37387,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44489,7 +37406,7 @@ export const plans = { }, compoundTypeSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs122(args, ["input"]); + const selectArgs = makeArgs_compound_type_set_mutation(args, ["input"]); const $result = resource_compound_type_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44499,9 +37416,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44509,7 +37435,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs123(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44519,9 +37445,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44529,7 +37464,7 @@ export const plans = { }, postWithSuffix: { plan($root, args, _info) { - const selectArgs = makeArgs124(args, ["input"]); + const selectArgs = makeArgs_post_with_suffix(args, ["input"]); const $result = resource_post_with_suffixPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44539,9 +37474,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44549,7 +37493,7 @@ export const plans = { }, mutationCompoundTypeArray: { plan($root, args, _info) { - const selectArgs = makeArgs125(args, ["input"]); + const selectArgs = makeArgs_mutation_compound_type_array(args, ["input"]); const $result = resource_mutation_compound_type_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44559,9 +37503,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44569,7 +37522,7 @@ export const plans = { }, compoundTypeArrayMutation: { plan($root, args, _info) { - const selectArgs = makeArgs126(args, ["input"]); + const selectArgs = makeArgs_compound_type_array_mutation(args, ["input"]); const $result = resource_compound_type_array_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44579,9 +37532,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44589,7 +37551,7 @@ export const plans = { }, postMany: { plan($root, args, _info) { - const selectArgs = makeArgs127(args, ["input"]); + const selectArgs = makeArgs_post_many(args, ["input"]); const $result = resource_post_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44599,9 +37561,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44609,7 +37580,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs128(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44619,9 +37590,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44629,7 +37609,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs129(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44639,9 +37619,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44649,7 +37638,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs130(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44659,9 +37648,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44669,7 +37667,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs131(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44679,9 +37677,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44689,7 +37696,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs132(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44699,9 +37706,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44709,7 +37725,7 @@ export const plans = { }, typeFunctionConnectionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs133(args, ["input"]); + const selectArgs = makeArgs_type_function_connection_mutation(args, ["input"]); const $result = resource_type_function_connection_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44719,9 +37735,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44729,7 +37754,7 @@ export const plans = { }, typeFunctionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs134(args, ["input"]); + const selectArgs = makeArgs_type_function_mutation(args, ["input"]); const $result = resource_type_function_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44739,9 +37764,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44749,7 +37783,7 @@ export const plans = { }, typeFunctionListMutation: { plan($root, args, _info) { - const selectArgs = makeArgs135(args, ["input"]); + const selectArgs = makeArgs_type_function_list_mutation(args, ["input"]); const $result = resource_type_function_list_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44759,9 +37793,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44769,17 +37812,17 @@ export const plans = { }, createInput: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_inputsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_inputsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44789,17 +37832,17 @@ export const plans = { }, createPatch: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_patchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_patchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44809,17 +37852,17 @@ export const plans = { }, createReserved: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44829,17 +37872,17 @@ export const plans = { }, createReservedPatchRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44849,17 +37892,17 @@ export const plans = { }, createReservedInputRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44869,17 +37912,17 @@ export const plans = { }, createDefaultValue: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44889,17 +37932,17 @@ export const plans = { }, createForeignKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44909,17 +37952,17 @@ export const plans = { }, createNoPrimaryKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44929,17 +37972,17 @@ export const plans = { }, createTestview: { plan(_, args) { + const $insert = pgInsertSingle(resource_testviewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_testviewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44949,17 +37992,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44969,17 +38012,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44989,17 +38032,17 @@ export const plans = { }, createViewTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45009,17 +38052,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45029,17 +38072,17 @@ export const plans = { }, createSimilarTable1: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45049,17 +38092,17 @@ export const plans = { }, createSimilarTable2: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45069,17 +38112,17 @@ export const plans = { }, createUpdatableView: { plan(_, args) { + const $insert = pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45089,17 +38132,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45109,17 +38152,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45129,17 +38172,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45149,17 +38192,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45169,17 +38212,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45189,17 +38232,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45209,17 +38252,17 @@ export const plans = { }, createList: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_listsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_listsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45229,17 +38272,17 @@ export const plans = { }, createType: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45249,11 +38292,11 @@ export const plans = { }, updateInput: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45268,13 +38311,13 @@ export const plans = { }, updateInputById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45289,11 +38332,11 @@ export const plans = { }, updatePatch: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45308,13 +38351,13 @@ export const plans = { }, updatePatchById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45329,11 +38372,11 @@ export const plans = { }, updateReserved: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45348,13 +38391,13 @@ export const plans = { }, updateReservedById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45369,11 +38412,11 @@ export const plans = { }, updateReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45388,13 +38431,13 @@ export const plans = { }, updateReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45409,11 +38452,11 @@ export const plans = { }, updateReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45428,13 +38471,13 @@ export const plans = { }, updateReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45449,11 +38492,11 @@ export const plans = { }, updateDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45468,13 +38511,13 @@ export const plans = { }, updateDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45489,13 +38532,13 @@ export const plans = { }, updateNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45510,11 +38553,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45529,13 +38572,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45550,11 +38593,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45569,13 +38612,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45590,11 +38633,11 @@ export const plans = { }, updateViewTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45609,13 +38652,13 @@ export const plans = { }, updateViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45630,11 +38673,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45649,14 +38692,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45671,11 +38714,11 @@ export const plans = { }, updateSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45690,13 +38733,13 @@ export const plans = { }, updateSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45711,11 +38754,11 @@ export const plans = { }, updateSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45730,13 +38773,13 @@ export const plans = { }, updateSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45751,11 +38794,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45770,13 +38813,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45791,11 +38834,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45810,13 +38853,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45831,13 +38874,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45852,11 +38895,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45871,13 +38914,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45892,11 +38935,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45911,13 +38954,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45932,11 +38975,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45951,13 +38994,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45972,13 +39015,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45993,11 +39036,11 @@ export const plans = { }, updateList: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)) + const $update = pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46012,13 +39055,13 @@ export const plans = { }, updateListById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46033,11 +39076,11 @@ export const plans = { }, updateType: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)) + const $update = pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46052,13 +39095,13 @@ export const plans = { }, updateTypeById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46073,11 +39116,11 @@ export const plans = { }, deleteInput: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46092,13 +39135,13 @@ export const plans = { }, deleteInputById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46113,11 +39156,11 @@ export const plans = { }, deletePatch: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46132,13 +39175,13 @@ export const plans = { }, deletePatchById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46153,11 +39196,11 @@ export const plans = { }, deleteReserved: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46172,13 +39215,13 @@ export const plans = { }, deleteReservedById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46193,11 +39236,11 @@ export const plans = { }, deleteReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46212,13 +39255,13 @@ export const plans = { }, deleteReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46233,11 +39276,11 @@ export const plans = { }, deleteReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46252,13 +39295,13 @@ export const plans = { }, deleteReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46273,11 +39316,11 @@ export const plans = { }, deleteDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46292,13 +39335,13 @@ export const plans = { }, deleteDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46313,13 +39356,13 @@ export const plans = { }, deleteNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46334,11 +39377,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46353,13 +39396,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46374,11 +39417,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46393,13 +39436,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46414,11 +39457,11 @@ export const plans = { }, deleteViewTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46433,13 +39476,13 @@ export const plans = { }, deleteViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46454,11 +39497,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46473,14 +39516,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46495,11 +39538,11 @@ export const plans = { }, deleteSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46514,13 +39557,13 @@ export const plans = { }, deleteSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46535,11 +39578,11 @@ export const plans = { }, deleteSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46554,13 +39597,13 @@ export const plans = { }, deleteSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46575,11 +39618,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46594,13 +39637,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46615,11 +39658,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46634,13 +39677,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46655,13 +39698,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46676,11 +39719,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46695,13 +39738,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46716,11 +39759,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46735,13 +39778,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46756,11 +39799,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46775,13 +39818,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46796,13 +39839,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46817,11 +39860,11 @@ export const plans = { }, deleteList: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)) + const $delete = pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46836,13 +39879,13 @@ export const plans = { }, deleteListById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46857,11 +39900,11 @@ export const plans = { }, deleteType: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)) + const $delete = pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46876,13 +39919,13 @@ export const plans = { }, deleteTypeById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46899,7 +39942,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -46910,16 +39954,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -46930,16 +39974,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46950,16 +39994,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46970,16 +40014,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ReturnVoidMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, query() { return rootValue(); @@ -46987,16 +40031,16 @@ export const plans = { }, ReturnVoidMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationIntervalSetPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47007,16 +40051,16 @@ export const plans = { }, MutationIntervalSetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -47027,17 +40071,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -47048,17 +40092,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47069,17 +40113,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47090,17 +40134,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47111,17 +40155,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47132,17 +40176,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, Add1MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47153,10 +40197,9 @@ export const plans = { }, Add1MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47164,7 +40207,8 @@ export const plans = { Add2MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47175,10 +40219,9 @@ export const plans = { }, Add2MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -47186,7 +40229,8 @@ export const plans = { Add3MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47197,10 +40241,9 @@ export const plans = { }, Add3MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, arg1: undefined @@ -47208,7 +40251,8 @@ export const plans = { Add4MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47219,10 +40263,9 @@ export const plans = { }, Add4MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47230,7 +40273,8 @@ export const plans = { Add4MutationErrorPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47241,10 +40285,9 @@ export const plans = { }, Add4MutationErrorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47252,7 +40295,8 @@ export const plans = { Mult1Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47263,10 +40307,9 @@ export const plans = { }, Mult1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47274,7 +40317,8 @@ export const plans = { Mult2Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47285,10 +40329,9 @@ export const plans = { }, Mult2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47296,7 +40339,8 @@ export const plans = { Mult3Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47307,10 +40351,9 @@ export const plans = { }, Mult3Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47318,7 +40361,8 @@ export const plans = { Mult4Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47329,10 +40373,9 @@ export const plans = { }, Mult4Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47340,7 +40383,8 @@ export const plans = { MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -47351,10 +40395,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -47362,7 +40405,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47382,16 +40426,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47411,16 +40455,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47440,16 +40484,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -47460,10 +40504,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -47472,7 +40515,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47495,16 +40539,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47524,17 +40568,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, GuidFnPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, guid($object) { return $object.get("result"); @@ -47550,17 +40594,17 @@ export const plans = { }, GuidFnInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, g: undefined }, MutationIntervalArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47571,16 +40615,16 @@ export const plans = { }, MutationIntervalArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationTextArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, strings($object) { return $object.get("result"); @@ -47591,16 +40635,16 @@ export const plans = { }, MutationTextArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ListBdeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, uuids($object) { return $object.get("result"); @@ -47611,10 +40655,9 @@ export const plans = { }, ListBdeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, b: undefined, d: undefined, @@ -47623,7 +40666,8 @@ export const plans = { AuthenticateFailPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47652,16 +40696,16 @@ export const plans = { }, AuthenticateFailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticatePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47672,10 +40716,9 @@ export const plans = { }, AuthenticateInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47684,7 +40727,8 @@ export const plans = { LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -47692,7 +40736,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47708,9 +40752,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47726,50 +40768,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -47777,7 +40821,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47793,9 +40837,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47806,16 +40848,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -47826,16 +40868,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticateManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtTokens($object) { return $object.get("result"); @@ -47846,10 +40888,9 @@ export const plans = { }, AuthenticateManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47858,7 +40899,8 @@ export const plans = { AuthenticatePayloadPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, authPayload($object) { return $object.get("result"); @@ -47897,10 +40939,9 @@ export const plans = { }, AuthenticatePayloadInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47909,7 +40950,8 @@ export const plans = { TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -47920,10 +40962,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47935,7 +40976,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47961,17 +41003,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, CompoundTypeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundType($object) { return $object.get("result"); @@ -47982,17 +41024,17 @@ export const plans = { }, CompoundTypeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48003,17 +41045,17 @@ export const plans = { }, CompoundTypeSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48021,7 +41063,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48037,9 +41079,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48055,17 +41095,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, PostWithSuffixPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48073,7 +41113,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48089,9 +41129,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48107,65 +41145,69 @@ export const plans = { }, PostWithSuffixInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: undefined, suffix: undefined }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, MutationCompoundTypeArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48176,17 +41218,17 @@ export const plans = { }, MutationCompoundTypeArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeArrayMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48197,17 +41239,17 @@ export const plans = { }, CompoundTypeArrayMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, PostManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, posts($object) { return $object.get("result"); @@ -48218,17 +41260,17 @@ export const plans = { }, PostManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, posts: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -48263,10 +41305,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48274,7 +41315,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -48309,10 +41351,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48320,7 +41361,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -48328,7 +41370,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48344,9 +41386,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48357,16 +41397,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48377,16 +41417,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48397,16 +41437,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionConnectionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48417,16 +41457,16 @@ export const plans = { }, TypeFunctionConnectionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -48434,7 +41474,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48450,9 +41490,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48473,17 +41511,17 @@ export const plans = { }, TypeFunctionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, TypeFunctionListMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48494,16 +41532,16 @@ export const plans = { }, TypeFunctionListMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateInputPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -48511,7 +41549,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48527,9 +41565,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48540,35 +41576,34 @@ export const plans = { }, CreateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, input: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, InputInput: { - "__inputPlan": function InputInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePatchPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -48576,7 +41611,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48592,9 +41627,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48605,35 +41638,34 @@ export const plans = { }, CreatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PatchInput: { - "__inputPlan": function PatchInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -48641,7 +41673,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48657,9 +41689,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48670,35 +41700,34 @@ export const plans = { }, CreateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reserved: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInput: { - "__inputPlan": function ReservedInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPatchRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -48706,7 +41735,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48722,9 +41751,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48735,35 +41762,34 @@ export const plans = { }, CreateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedPatchRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedPatchRecordInput: { - "__inputPlan": function ReservedPatchRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedInputRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -48771,7 +41797,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48787,9 +41813,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48800,35 +41824,34 @@ export const plans = { }, CreateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedInputRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInputRecordInput: { - "__inputPlan": function ReservedInputRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateDefaultValuePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -48836,7 +41859,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48852,9 +41875,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48865,42 +41886,42 @@ export const plans = { }, CreateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, defaultValue: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, DefaultValueInput: { - "__inputPlan": function DefaultValueInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, CreateForeignKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, foreignKey($object) { return $object.get("result"); @@ -48922,49 +41943,50 @@ export const plans = { }, CreateForeignKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, foreignKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ForeignKeyInput: { - "__inputPlan": function ForeignKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey1: { - applyPlan($insert, val) { - $insert.set("compound_key_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_1", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey2: { - applyPlan($insert, val) { - $insert.set("compound_key_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNoPrimaryKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -48975,42 +41997,42 @@ export const plans = { }, CreateNoPrimaryKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, noPrimaryKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NoPrimaryKeyInput: { - "__inputPlan": function NoPrimaryKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTestviewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, testview($object) { return $object.get("result"); @@ -49021,49 +42043,50 @@ export const plans = { }, CreateTestviewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, testview: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TestviewInput: { - "__inputPlan": function TestviewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, testviewid: { - applyPlan($insert, val) { - $insert.set("testviewid", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("testviewid", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -49071,7 +42094,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49087,9 +42110,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49100,42 +42121,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -49143,7 +42164,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49159,9 +42180,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49177,42 +42196,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateViewTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -49220,7 +42239,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49236,9 +42255,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49249,49 +42266,50 @@ export const plans = { }, CreateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, viewTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ViewTableInput: { - "__inputPlan": function ViewTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -49299,7 +42317,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49315,9 +42333,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49338,49 +42354,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable1Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -49388,7 +42405,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49404,9 +42421,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49417,56 +42432,58 @@ export const plans = { }, CreateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable1: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable1Input: { - "__inputPlan": function SimilarTable1Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable2Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -49474,7 +42491,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49490,9 +42507,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49503,56 +42518,58 @@ export const plans = { }, CreateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable2: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable2Input: { - "__inputPlan": function SimilarTable2Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, CreateUpdatableViewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, updatableView($object) { return $object.get("result"); @@ -49563,56 +42580,58 @@ export const plans = { }, CreateUpdatableViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, updatableView: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UpdatableViewInput: { - "__inputPlan": function UpdatableViewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, x: { - applyPlan($insert, val) { - $insert.set("x", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("x", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } }, constant: { - applyPlan($insert, val) { - $insert.set("constant", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constant", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -49620,7 +42639,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49636,9 +42655,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49649,56 +42666,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -49709,49 +42728,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -49759,7 +42779,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49775,9 +42795,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49793,56 +42811,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -49850,7 +42870,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49866,9 +42886,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49879,42 +42897,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -49922,7 +42940,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49938,9 +42956,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49956,23 +42972,23 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -49980,7 +42996,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49996,9 +43012,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50009,105 +43023,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, CreateListPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -50115,7 +43138,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50131,9 +43154,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50144,119 +43165,130 @@ export const plans = { }, CreateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, list: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ListInput: { - "__inputPlan": function ListInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -50264,7 +43296,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50280,9 +43312,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50303,371 +43333,418 @@ export const plans = { }, CreateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, type: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TypeInput: { - "__inputPlan": function TypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -50675,7 +43752,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50691,9 +43768,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50704,48 +43779,50 @@ export const plans = { }, UpdateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, InputPatch: { - "__inputPlan": function InputPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -50753,7 +43830,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50769,9 +43846,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50782,48 +43857,50 @@ export const plans = { }, UpdatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PatchPatch: { - "__inputPlan": function PatchPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -50831,7 +43908,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50847,9 +43924,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50860,48 +43935,50 @@ export const plans = { }, UpdateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatch: { - "__inputPlan": function ReservedPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -50909,7 +43986,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50925,9 +44002,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50938,48 +44013,50 @@ export const plans = { }, UpdateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatchRecordPatch: { - "__inputPlan": function ReservedPatchRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -50987,7 +44064,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51003,9 +44080,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51016,48 +44091,50 @@ export const plans = { }, UpdateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedInputRecordPatch: { - "__inputPlan": function ReservedInputRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -51065,7 +44142,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51081,9 +44158,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51094,55 +44169,58 @@ export const plans = { }, UpdateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DefaultValuePatch: { - "__inputPlan": function DefaultValuePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -51153,41 +44231,43 @@ export const plans = { }, UpdateNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, noPrimaryKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NoPrimaryKeyPatch: { - "__inputPlan": function NoPrimaryKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -51195,7 +44275,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51211,9 +44291,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51224,55 +44302,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -51280,7 +44361,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51296,9 +44377,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51314,55 +44393,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -51370,7 +44452,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51386,9 +44468,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51399,62 +44479,66 @@ export const plans = { }, UpdateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ViewTablePatch: { - "__inputPlan": function ViewTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -51462,7 +44546,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51478,9 +44562,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51501,63 +44583,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -51565,7 +44651,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51581,9 +44667,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51594,69 +44678,74 @@ export const plans = { }, UpdateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable1Patch: { - "__inputPlan": function SimilarTable1Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -51664,7 +44753,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51680,9 +44769,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51693,69 +44780,74 @@ export const plans = { }, UpdateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable2Patch: { - "__inputPlan": function SimilarTable2Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -51763,7 +44855,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51779,9 +44871,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51792,69 +44882,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -51862,7 +44957,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51878,9 +44973,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51896,83 +44989,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -51980,7 +45079,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51996,9 +45095,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52009,55 +45106,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -52065,7 +45165,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52081,9 +45181,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52099,83 +45197,90 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -52183,7 +45288,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52199,9 +45304,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52212,132 +45315,145 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -52345,7 +45461,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52361,9 +45477,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52374,132 +45488,146 @@ export const plans = { }, UpdateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ListPatch: { - "__inputPlan": function ListPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -52507,7 +45635,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52523,9 +45651,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52546,384 +45672,434 @@ export const plans = { }, UpdateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TypePatch: { - "__inputPlan": function TypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -52936,7 +46112,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52952,9 +46128,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52965,16 +46139,16 @@ export const plans = { }, DeleteInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -52982,7 +46156,8 @@ export const plans = { DeletePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -52995,7 +46170,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53011,9 +46186,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53024,16 +46197,16 @@ export const plans = { }, DeletePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53041,7 +46214,8 @@ export const plans = { DeleteReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -53054,7 +46228,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53070,9 +46244,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53083,16 +46255,16 @@ export const plans = { }, DeleteReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53100,7 +46272,8 @@ export const plans = { DeleteReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -53113,7 +46286,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53129,9 +46302,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53142,16 +46313,16 @@ export const plans = { }, DeleteReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53159,7 +46330,8 @@ export const plans = { DeleteReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -53172,7 +46344,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53188,9 +46360,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53201,16 +46371,16 @@ export const plans = { }, DeleteReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53218,7 +46388,8 @@ export const plans = { DeleteDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -53231,7 +46402,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53247,9 +46418,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53260,16 +46429,16 @@ export const plans = { }, DeleteDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53277,7 +46446,8 @@ export const plans = { DeleteNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -53288,8 +46458,8 @@ export const plans = { }, DeleteNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53297,7 +46467,8 @@ export const plans = { DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -53310,7 +46481,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53326,9 +46497,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53339,16 +46508,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53356,7 +46525,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -53369,7 +46539,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53385,9 +46555,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53403,16 +46571,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53420,7 +46588,8 @@ export const plans = { DeleteViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -53433,7 +46602,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53449,9 +46618,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53462,16 +46629,16 @@ export const plans = { }, DeleteViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53479,7 +46646,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -53492,7 +46660,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53508,9 +46676,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53531,16 +46697,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -53549,7 +46715,8 @@ export const plans = { DeleteSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -53562,7 +46729,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53578,9 +46745,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53591,16 +46756,16 @@ export const plans = { }, DeleteSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53608,7 +46773,8 @@ export const plans = { DeleteSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -53621,7 +46787,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53637,9 +46803,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53650,16 +46814,16 @@ export const plans = { }, DeleteSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53667,7 +46831,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -53680,7 +46845,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53696,9 +46861,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53709,16 +46872,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53726,7 +46889,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -53739,7 +46903,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53755,9 +46919,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53773,24 +46935,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53798,7 +46960,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -53811,7 +46974,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53827,9 +46990,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53840,16 +47001,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53857,7 +47018,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -53870,7 +47032,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53886,9 +47048,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53904,16 +47064,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53921,7 +47081,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -53934,7 +47095,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53950,9 +47111,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53963,24 +47122,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined @@ -53988,7 +47147,8 @@ export const plans = { DeleteListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -54001,7 +47161,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54017,9 +47177,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54030,16 +47188,16 @@ export const plans = { }, DeleteListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -54047,7 +47205,8 @@ export const plans = { DeleteTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -54060,7 +47219,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54076,9 +47235,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54099,16 +47256,16 @@ export const plans = { }, DeleteTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/refs.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/refs.1.export.mjs index ff76067354..c5c3385138 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/refs.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/refs.1.export.mjs @@ -1,8 +1,7 @@ -import { PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, SafeError, access, assertEdgeCapableStep, assertPageInfoCapableStep, connection, constant, context, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue } from "grafast"; +import { PgExecutor, TYPES, assertPgClassSingleStep, makeRegistry, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, access, assertEdgeCapableStep, assertPageInfoCapableStep, connection, constant, context, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -77,7 +79,7 @@ const executor = new PgExecutor({ } }); const peopleIdentifier = sql.identifier("refs", "people"); -const spec_people = { +const peopleCodec = recordCodec({ name: "people", identifier: peopleIdentifier, attributes: { @@ -114,10 +116,9 @@ const spec_people = { } }, executor: executor -}; -const peopleCodec = recordCodec(spec_people); +}); const postsIdentifier = sql.identifier("refs", "posts"); -const spec_posts = { +const postsCodec = recordCodec({ name: "posts", identifier: postsIdentifier, attributes: { @@ -172,8 +173,7 @@ const spec_posts = { } }, executor: executor -}; -const postsCodec = recordCodec(spec_posts); +}); const peopleUniques = [{ isPrimary: true, attributes: ["id"], @@ -318,6 +318,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_peoplePgResource.get(spec); }, @@ -337,6 +340,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postsPgResource.get(spec); }, @@ -349,6 +355,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -379,26 +386,9 @@ const fetcher2 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Post); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } @@ -647,24 +637,24 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, personById(_$root, args) { return pgResource_peoplePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, allPeople: { @@ -675,7 +665,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -684,7 +673,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -693,7 +681,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -702,7 +689,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -711,7 +697,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -720,22 +705,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -749,7 +730,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -758,7 +738,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -767,7 +746,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -776,7 +754,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -785,7 +762,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -794,22 +770,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -895,31 +867,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -928,19 +890,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -949,11 +909,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -961,7 +918,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -971,11 +928,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -983,7 +937,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -993,11 +947,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -1005,7 +956,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1015,11 +966,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -1027,7 +975,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1036,8 +984,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -1050,17 +998,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -1073,13 +1019,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PostsConnection: { @@ -1108,31 +1052,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postsUniques[0].attributes.forEach(attributeName => { - const attribute = postsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1141,19 +1075,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postsUniques[0].attributes.forEach(attributeName => { - const attribute = postsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1162,11 +1094,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -1174,7 +1103,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1184,11 +1113,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -1196,7 +1122,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1205,8 +1131,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -1219,13 +1145,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_posts.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } } }; diff --git a/postgraphile/postgraphile/__tests__/schema/v4/relay.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/relay.1.export.mjs index c93d7f6927..bcffd92316 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/relay.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/relay.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertNotNull, assertPageInfoCapableStep, condition, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB, trap } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeDecodeNodeIdRuntime, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -108,7 +110,7 @@ const flambleCodec = recordCodec({ executor: executor }); const renamed_tableIdentifier = sql.identifier("d", "original_table"); -const spec_renamed_table = { +const renamed_tableCodec = recordCodec({ name: "renamed_table", identifier: renamed_tableIdentifier, attributes: { @@ -139,10 +141,9 @@ const spec_renamed_table = { } }, executor: executor -}; -const renamed_tableCodec = recordCodec(spec_renamed_table); +}); const filmsIdentifier = sql.identifier("d", "films"); -const spec_films = { +const filmsCodec = recordCodec({ name: "films", identifier: filmsIdentifier, attributes: { @@ -179,10 +180,9 @@ const spec_films = { } }, executor: executor -}; -const filmsCodec = recordCodec(spec_films); +}); const studiosIdentifier = sql.identifier("d", "studios"); -const spec_studios = { +const studiosCodec = recordCodec({ name: "studios", identifier: studiosIdentifier, attributes: { @@ -219,10 +219,9 @@ const spec_studios = { } }, executor: executor -}; -const studiosCodec = recordCodec(spec_studios); +}); const postIdentifier = sql.identifier("d", "post"); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -268,10 +267,9 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const tvEpisodesIdentifier = sql.identifier("d", "tv_episodes"); -const spec_tvEpisodes = { +const tvEpisodesCodec = recordCodec({ name: "tvEpisodes", identifier: tvEpisodesIdentifier, attributes: { @@ -317,10 +315,9 @@ const spec_tvEpisodes = { } }, executor: executor -}; -const tvEpisodesCodec = recordCodec(spec_tvEpisodes); +}); const tvShowsIdentifier = sql.identifier("d", "tv_shows"); -const spec_tvShows = { +const tvShowsCodec = recordCodec({ name: "tvShows", identifier: tvShowsIdentifier, attributes: { @@ -366,8 +363,7 @@ const spec_tvShows = { } }, executor: executor -}; -const tvShowsCodec = recordCodec(spec_tvShows); +}); const jwtTokenIdentifier = sql.identifier("d", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -417,7 +413,7 @@ const jwtTokenCodec = recordCodec({ executor: executor }); const personIdentifier = sql.identifier("d", "person"); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -547,8 +543,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const original_functionFunctionIdentifer = sql.identifier("d", "original_function"); const getflambleFunctionIdentifer = sql.identifier("d", "getflamble"); const filmsUniques = [{ @@ -1117,6 +1112,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_filmsPgResource.get(spec); }, @@ -1136,6 +1134,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_studiosPgResource.get(spec); }, @@ -1155,6 +1156,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -1174,6 +1178,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_episodesPgResource.get(spec); }, @@ -1193,6 +1200,9 @@ const nodeIdHandlerByTypeName = { code: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_tv_showsPgResource.get(spec); }, @@ -1212,6 +1222,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -1220,56 +1233,30 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_renamed_function = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_renamed_function = (args, path = []) => argDetailsSimple_renamed_function.map(details => makeArg(path, args, details)); const resource_renamed_functionPgResource = registry.pgResources["renamed_function"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1290,7 +1277,7 @@ const getSpec = $nodeId => { const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); return nodeIdHandlerByTypeName.Person.getSpec($decoded); }; -const argDetailsSimple2 = [{ +const argDetailsSimple_person_full_name = [{ graphqlArgName: "n", postgresArgName: "n", pgCodec: personCodec, @@ -1299,105 +1286,19 @@ const argDetailsSimple2 = [{ return pgResource_personPgResource.get(getSpec($nodeId)); } }]; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 makeArgs_person_full_name = (args, path = []) => argDetailsSimple_person_full_name.map(details => makeArg(path, args, details)); const resource_person_full_namePgResource = registry.pgResources["person_full_name"]; -const argDetailsSimple3 = [{ +const argDetailsSimple_returnPostsMatching = [{ graphqlArgName: "search", postgresArgName: "search", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 makeArgs_returnPostsMatching = (args, path = []) => argDetailsSimple_returnPostsMatching.map(details => makeArg(path, args, details)); const resource_returnPostsMatchingPgResource = registry.pgResources["returnPostsMatching"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_returnPostsMatching(args); return resource_returnPostsMatchingPgResource.execute(selectArgs); }; const fetcher = (handler => { @@ -1449,279 +1350,205 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Person); const resource_renamed_tablePgResource = registry.pgResources["renamed_table"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_person_full_name2 = []; +const makeArgs_person_full_name2 = (args, path = []) => argDetailsSimple_person_full_name2.map(details => makeArg(path, args, details)); function CursorSerialize(value) { return "" + value; } -const getSpec2 = $nodeId => { - // TODO: should change this to a common method like - // `const $decoded = getDecodedNodeIdForHandler(handler, $nodeId)` - const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); - return nodeIdHandlerByTypeName.Person.getSpec($decoded); +const handlers = [nodeIdHandlerByTypeName.Person]; +const decodeNodeId = makeDecodeNodeIdRuntime(handlers); +const getIdentifiers = nodeId => { + const specifier = decodeNodeId(nodeId); + if (specifier == null) return null; + for (const handler of handlers) { + const value = specifier?.[handler.codec.name]; + const match = value != null ? handler.match(value) : false; + if (match) { + return handler.getIdentifiers(value); + } + } + return null; }; const localAttributeCodecs = [TYPES.int]; -const getSpec3 = $nodeId => { - // TODO: should change this to a common method like - // `const $decoded = getDecodedNodeIdForHandler(handler, $nodeId)` - const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.TvShow)); - return nodeIdHandlerByTypeName.TvShow.getSpec($decoded); +const handlers2 = [nodeIdHandlerByTypeName.TvShow]; +const decodeNodeId2 = makeDecodeNodeIdRuntime(handlers2); +const getIdentifiers2 = nodeId => { + const specifier = decodeNodeId2(nodeId); + if (specifier == null) return null; + for (const handler of handlers2) { + const value = specifier?.[handler.codec.name]; + const match = value != null ? handler.match(value) : false; + if (match) { + return handler.getIdentifiers(value); + } + } + return null; }; const localAttributeCodecs2 = [TYPES.int]; -const getSpec4 = $nodeId => { - // TODO: should change this to a common method like - // `const $decoded = getDecodedNodeIdForHandler(handler, $nodeId)` - const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Studio)); - return nodeIdHandlerByTypeName.Studio.getSpec($decoded); -}; -const localAttributeCodecs3 = [TYPES.int]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 - }); +const handlers3 = [nodeIdHandlerByTypeName.Studio]; +const decodeNodeId3 = makeDecodeNodeIdRuntime(handlers3); +const getIdentifiers3 = nodeId => { + const specifier = decodeNodeId3(nodeId); + if (specifier == null) return null; + for (const handler of handlers3) { + const value = specifier?.[handler.codec.name]; + const match = value != null ? handler.match(value) : false; + if (match) { + return handler.getIdentifiers(value); } } - return selectArgs; + return null; }; +const localAttributeCodecs3 = [TYPES.int]; +const argDetailsSimple_getflamble = []; +const makeArgs_getflamble = (args, path = []) => argDetailsSimple_getflamble.map(details => makeArg(path, args, details)); const resource_getflamblePgResource = registry.pgResources["getflamble"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_login = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_login = (args, path = []) => argDetailsSimple_login.map(details => makeArg(path, args, details)); const resource_loginPgResource = registry.pgResources["login"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.Film, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.Studio, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.TvEpisode, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.TvShow, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; -const getSpec5 = $nodeId => { - // TODO: should change this to a common method like - // `const $decoded = getDecodedNodeIdForHandler(handler, $nodeId)` - const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); - return nodeIdHandlerByTypeName.Person.getSpec($decoded); +const handlers4 = [nodeIdHandlerByTypeName.Person]; +const decodeNodeId4 = makeDecodeNodeIdRuntime(handlers4); +const getIdentifiers4 = nodeId => { + const specifier = decodeNodeId4(nodeId); + if (specifier == null) return null; + for (const handler of handlers4) { + const value = specifier?.[handler.codec.name]; + const match = value != null ? handler.match(value) : false; + if (match) { + return handler.getIdentifiers(value); + } + } + return null; }; -const getSpec6 = $nodeId => { - // TODO: should change this to a common method like - // `const $decoded = getDecodedNodeIdForHandler(handler, $nodeId)` - const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.TvShow)); - return nodeIdHandlerByTypeName.TvShow.getSpec($decoded); +const handlers5 = [nodeIdHandlerByTypeName.TvShow]; +const decodeNodeId5 = makeDecodeNodeIdRuntime(handlers5); +const getIdentifiers5 = nodeId => { + const specifier = decodeNodeId5(nodeId); + if (specifier == null) return null; + for (const handler of handlers5) { + const value = specifier?.[handler.codec.name]; + const match = value != null ? handler.match(value) : false; + if (match) { + return handler.getIdentifiers(value); + } + } + return null; }; -const getSpec7 = $nodeId => { - // TODO: should change this to a common method like - // `const $decoded = getDecodedNodeIdForHandler(handler, $nodeId)` - const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Studio)); - return nodeIdHandlerByTypeName.Studio.getSpec($decoded); +const handlers6 = [nodeIdHandlerByTypeName.Studio]; +const decodeNodeId6 = makeDecodeNodeIdRuntime(handlers6); +const getIdentifiers6 = nodeId => { + const specifier = decodeNodeId6(nodeId); + if (specifier == null) return null; + for (const handler of handlers6) { + const value = specifier?.[handler.codec.name]; + const match = value != null ? handler.match(value) : false; + if (match) { + return handler.getIdentifiers(value); + } + } + return null; }; -const getSpec8 = $nodeId => { - // TODO: should change this to a common method like - // `const $decoded = getDecodedNodeIdForHandler(handler, $nodeId)` - const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Person)); - return nodeIdHandlerByTypeName.Person.getSpec($decoded); +const handlers7 = [nodeIdHandlerByTypeName.Person]; +const decodeNodeId7 = makeDecodeNodeIdRuntime(handlers7); +const getIdentifiers7 = nodeId => { + const specifier = decodeNodeId7(nodeId); + if (specifier == null) return null; + for (const handler of handlers7) { + const value = specifier?.[handler.codec.name]; + const match = value != null ? handler.match(value) : false; + if (match) { + return handler.getIdentifiers(value); + } + } + return null; }; -const getSpec9 = $nodeId => { - // TODO: should change this to a common method like - // `const $decoded = getDecodedNodeIdForHandler(handler, $nodeId)` - const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.TvShow)); - return nodeIdHandlerByTypeName.TvShow.getSpec($decoded); +const handlers8 = [nodeIdHandlerByTypeName.TvShow]; +const decodeNodeId8 = makeDecodeNodeIdRuntime(handlers8); +const getIdentifiers8 = nodeId => { + const specifier = decodeNodeId8(nodeId); + if (specifier == null) return null; + for (const handler of handlers8) { + const value = specifier?.[handler.codec.name]; + const match = value != null ? handler.match(value) : false; + if (match) { + return handler.getIdentifiers(value); + } + } + return null; }; -const getSpec10 = $nodeId => { - // TODO: should change this to a common method like - // `const $decoded = getDecodedNodeIdForHandler(handler, $nodeId)` - const $decoded = lambda($nodeId, specForHandler(nodeIdHandlerByTypeName.Studio)); - return nodeIdHandlerByTypeName.Studio.getSpec($decoded); +const handlers9 = [nodeIdHandlerByTypeName.Studio]; +const decodeNodeId9 = makeDecodeNodeIdRuntime(handlers9); +const getIdentifiers9 = nodeId => { + const specifier = decodeNodeId9(nodeId); + if (specifier == null) return null; + for (const handler of handlers9) { + const value = specifier?.[handler.codec.name]; + const match = value != null ? handler.match(value) : false; + if (match) { + return handler.getIdentifiers(value); + } + } + return null; }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" type Query implements Node { @@ -3571,14 +3398,14 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("id")); + return node(nodeIdHandlerByTypeName, args.getRaw("id")); }, renamedFunction($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_renamed_function(args); return resource_renamed_functionPgResource.execute(selectArgs); }, personFullName($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_person_full_name(args); return resource_person_full_namePgResource.execute(selectArgs); }, returnPostsMatching: { @@ -3595,7 +3422,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3604,7 +3430,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3613,7 +3438,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3622,7 +3446,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3631,7 +3454,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3640,27 +3462,27 @@ export const plans = { } }, film(_$parent, args) { - const $nodeId = args.get("id"); + const $nodeId = args.getRaw("id"); return fetcher($nodeId); }, studio(_$parent, args) { - const $nodeId = args.get("id"); + const $nodeId = args.getRaw("id"); return fetcher2($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("id"); + const $nodeId = args.getRaw("id"); return fetcher3($nodeId); }, tvEpisode(_$parent, args) { - const $nodeId = args.get("id"); + const $nodeId = args.getRaw("id"); return fetcher4($nodeId); }, tvShow(_$parent, args) { - const $nodeId = args.get("id"); + const $nodeId = args.getRaw("id"); return fetcher5($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("id"); + const $nodeId = args.getRaw("id"); return fetcher6($nodeId); }, allRenamedTables: { @@ -3671,7 +3493,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3680,7 +3501,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3689,7 +3509,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3698,7 +3517,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3707,7 +3525,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3716,22 +3533,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RenamedTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3745,7 +3558,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3754,7 +3566,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3763,7 +3574,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3772,7 +3582,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3781,7 +3590,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3790,22 +3598,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3819,7 +3623,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3828,7 +3631,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3837,7 +3639,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3846,7 +3647,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3855,7 +3655,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3864,22 +3663,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3893,7 +3688,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3902,7 +3696,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3911,7 +3704,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3920,7 +3712,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3929,7 +3720,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3938,22 +3728,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3967,7 +3753,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3976,7 +3761,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3985,7 +3769,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3994,7 +3777,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4003,7 +3785,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4012,22 +3793,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4041,7 +3818,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4050,7 +3826,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4059,7 +3834,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4068,7 +3842,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4077,7 +3850,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4086,22 +3858,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4115,7 +3883,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4124,7 +3891,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4133,7 +3899,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4142,7 +3907,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4151,7 +3915,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4160,22 +3923,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4223,7 +3982,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_person_full_name2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -4238,27 +3997,21 @@ export const plans = { if (resource_person_full_namePgResource.isUnique && !resource_person_full_namePgResource.codec.attributes && typeof resource_person_full_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${resource_person_full_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_full_namePgResource.from, resource_person_full_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_full_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_full_namePgResource.execute(selectArgs); @@ -4298,7 +4051,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4307,7 +4059,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4316,7 +4067,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4325,7 +4075,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4334,7 +4083,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4343,22 +4091,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4376,31 +4120,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4409,19 +4143,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4430,11 +4162,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -4442,7 +4171,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4452,11 +4181,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -4464,7 +4190,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4473,8 +4199,8 @@ export const plans = { }, PostCondition: { body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -4487,41 +4213,59 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, author: { - applyPlan($condition, val) { - const $nodeId = val.get(); - const $nodeIdExists = condition("exists", $nodeId); - const spec = getSpec2($nodeId); - for (let i = 0, l = registryConfig.pgRelations.post.author.localAttributes.length; i < l; i++) { - const localName = registryConfig.pgRelations.post.author.localAttributes[i]; - const codec = localAttributeCodecs[i]; - const remoteName = registryConfig.pgRelations.post.author.remoteAttributes[i]; - // Set `null` if invalid - const $rawValue = trap(spec[remoteName], 4); - // If `null` but `$nodeId` wasn't null, throw an error: invalid Node ID! - const $value = assertNotNull($rawValue, `Invalid node identifier for '${"Person"}'`, { - if: $nodeIdExists - }); - const sqlRemoteValue = $condition.placeholder($value, codec); - $condition.where({ - type: "attribute", - attribute: localName, - callback(expression) { - return sql`((${sqlRemoteValue} is null and ${expression} is null) or (${sqlRemoteValue} is not null and ${expression} = ${sqlRemoteValue}))`; + apply(condition, nodeId) { + if (nodeId === undefined) { + return; + } else if (nodeId === null) { + for (const localName of registryConfig.pgRelations.post.author.localAttributes) { + condition.where({ + type: "attribute", + attribute: localName, + callback(expression) { + return sql`${expression} is null`; + } + }); + } + return; + } else if (typeof nodeId !== "string") { + throw new Error(`Invalid node identifier for '${"Person"}'; expected string`); + } else { + const identifiers = getIdentifiers(nodeId); + if (identifiers == null) { + throw new Error(`Invalid node identifier for '${"Person"}'`); + } + for (let i = 0; i < 1; i++) { + const localName = registryConfig.pgRelations.post.author.localAttributes[i]; + const value = identifiers[i]; + if (value == null) { + condition.where({ + type: "attribute", + attribute: localName, + callback(expression) { + return sql`${expression} is null`; + } + }); + } else { + const codec = localAttributeCodecs[i]; + const sqlRemoteValue = sqlValueWithCodec(value, codec); + condition.where({ + type: "attribute", + attribute: localName, + callback(expression) { + return sql`${expression} = ${sqlRemoteValue}`; + } + }); } - }); + } } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PostsEdge: { @@ -4578,7 +4322,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4587,7 +4330,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4596,7 +4338,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4605,7 +4346,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4614,7 +4354,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4623,22 +4362,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4686,7 +4421,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4695,7 +4429,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4704,7 +4437,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4713,7 +4445,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4722,7 +4453,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4731,22 +4461,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4794,31 +4520,21 @@ export const plans = { } }, TvEpisodesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4827,19 +4543,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_episodesUniques[0].attributes.forEach(attributeName => { - const attribute = tvEpisodesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4848,11 +4562,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -4860,7 +4571,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4870,11 +4581,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -4882,7 +4590,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4891,8 +4599,8 @@ export const plans = { }, TvEpisodeCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -4905,41 +4613,59 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvEpisodes.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, tvShowByShowId: { - applyPlan($condition, val) { - const $nodeId = val.get(); - const $nodeIdExists = condition("exists", $nodeId); - const spec = getSpec3($nodeId); - for (let i = 0, l = registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.localAttributes.length; i < l; i++) { - const localName = registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.localAttributes[i]; - const codec = localAttributeCodecs2[i]; - const remoteName = registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.remoteAttributes[i]; - // Set `null` if invalid - const $rawValue = trap(spec[remoteName], 4); - // If `null` but `$nodeId` wasn't null, throw an error: invalid Node ID! - const $value = assertNotNull($rawValue, `Invalid node identifier for '${"TvShow"}'`, { - if: $nodeIdExists - }); - const sqlRemoteValue = $condition.placeholder($value, codec); - $condition.where({ - type: "attribute", - attribute: localName, - callback(expression) { - return sql`((${sqlRemoteValue} is null and ${expression} is null) or (${sqlRemoteValue} is not null and ${expression} = ${sqlRemoteValue}))`; + apply(condition, nodeId) { + if (nodeId === undefined) { + return; + } else if (nodeId === null) { + for (const localName of registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.localAttributes) { + condition.where({ + type: "attribute", + attribute: localName, + callback(expression) { + return sql`${expression} is null`; + } + }); + } + return; + } else if (typeof nodeId !== "string") { + throw new Error(`Invalid node identifier for '${"TvShow"}'; expected string`); + } else { + const identifiers = getIdentifiers2(nodeId); + if (identifiers == null) { + throw new Error(`Invalid node identifier for '${"TvShow"}'`); + } + for (let i = 0; i < 1; i++) { + const localName = registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.localAttributes[i]; + const value = identifiers[i]; + if (value == null) { + condition.where({ + type: "attribute", + attribute: localName, + callback(expression) { + return sql`${expression} is null`; + } + }); + } else { + const codec = localAttributeCodecs2[i]; + const sqlRemoteValue = sqlValueWithCodec(value, codec); + condition.where({ + type: "attribute", + attribute: localName, + callback(expression) { + return sql`${expression} = ${sqlRemoteValue}`; + } + }); } - }); + } } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TvShowsEdge: { @@ -4952,31 +4678,21 @@ export const plans = { } }, TvShowsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4985,19 +4701,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { tv_showsUniques[0].attributes.forEach(attributeName => { - const attribute = tvShowsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5006,11 +4720,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5018,7 +4729,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5028,11 +4739,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5040,7 +4748,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5049,8 +4757,8 @@ export const plans = { }, TvShowCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5063,41 +4771,59 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_tvShows.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, studioByStudioId: { - applyPlan($condition, val) { - const $nodeId = val.get(); - const $nodeIdExists = condition("exists", $nodeId); - const spec = getSpec4($nodeId); - for (let i = 0, l = registryConfig.pgRelations.tvShows.studiosByMyStudioId.localAttributes.length; i < l; i++) { - const localName = registryConfig.pgRelations.tvShows.studiosByMyStudioId.localAttributes[i]; - const codec = localAttributeCodecs3[i]; - const remoteName = registryConfig.pgRelations.tvShows.studiosByMyStudioId.remoteAttributes[i]; - // Set `null` if invalid - const $rawValue = trap(spec[remoteName], 4); - // If `null` but `$nodeId` wasn't null, throw an error: invalid Node ID! - const $value = assertNotNull($rawValue, `Invalid node identifier for '${"Studio"}'`, { - if: $nodeIdExists - }); - const sqlRemoteValue = $condition.placeholder($value, codec); - $condition.where({ - type: "attribute", - attribute: localName, - callback(expression) { - return sql`((${sqlRemoteValue} is null and ${expression} is null) or (${sqlRemoteValue} is not null and ${expression} = ${sqlRemoteValue}))`; + apply(condition, nodeId) { + if (nodeId === undefined) { + return; + } else if (nodeId === null) { + for (const localName of registryConfig.pgRelations.tvShows.studiosByMyStudioId.localAttributes) { + condition.where({ + type: "attribute", + attribute: localName, + callback(expression) { + return sql`${expression} is null`; + } + }); + } + return; + } else if (typeof nodeId !== "string") { + throw new Error(`Invalid node identifier for '${"Studio"}'; expected string`); + } else { + const identifiers = getIdentifiers3(nodeId); + if (identifiers == null) { + throw new Error(`Invalid node identifier for '${"Studio"}'`); + } + for (let i = 0; i < 1; i++) { + const localName = registryConfig.pgRelations.tvShows.studiosByMyStudioId.localAttributes[i]; + const value = identifiers[i]; + if (value == null) { + condition.where({ + type: "attribute", + attribute: localName, + callback(expression) { + return sql`${expression} is null`; + } + }); + } else { + const codec = localAttributeCodecs3[i]; + const sqlRemoteValue = sqlValueWithCodec(value, codec); + condition.where({ + type: "attribute", + attribute: localName, + callback(expression) { + return sql`${expression} = ${sqlRemoteValue}`; + } + }); } - }); + } } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RenamedTablesConnection: { @@ -5132,23 +4858,12 @@ export const plans = { } }, RenamedTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COL_A_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -5156,7 +4871,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5166,11 +4881,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -5178,7 +4890,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5187,8 +4899,8 @@ export const plans = { }, RenamedTableCondition: { colA: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -5201,13 +4913,11 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_renamed_table.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FilmsConnection: { @@ -5236,31 +4946,21 @@ export const plans = { } }, FilmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5269,19 +4969,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { filmsUniques[0].attributes.forEach(attributeName => { - const attribute = filmsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5290,11 +4988,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -5302,7 +4997,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5312,11 +5007,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -5324,7 +5016,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5333,8 +5025,8 @@ export const plans = { }, FilmCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -5347,13 +5039,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_films.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StudiosConnection: { @@ -5382,31 +5072,21 @@ export const plans = { } }, StudiosOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5415,19 +5095,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { studiosUniques[0].attributes.forEach(attributeName => { - const attribute = studiosCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5436,11 +5114,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -5448,7 +5123,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5458,11 +5133,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -5470,7 +5142,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5479,8 +5151,8 @@ export const plans = { }, StudioCondition: { name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -5493,13 +5165,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_studios.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -5528,31 +5198,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5561,19 +5221,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5582,11 +5240,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "ASC", ...(undefined != null ? { @@ -5594,7 +5249,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5604,11 +5259,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_name", direction: "DESC", ...(undefined != null ? { @@ -5616,7 +5268,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5626,11 +5278,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "ASC", ...(undefined != null ? { @@ -5638,7 +5287,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5648,11 +5297,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_name", direction: "DESC", ...(undefined != null ? { @@ -5660,7 +5306,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5670,11 +5316,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "ASC", ...(undefined != null ? { @@ -5682,7 +5325,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5692,11 +5335,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create", direction: "DESC", ...(undefined != null ? { @@ -5704,7 +5344,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5714,11 +5354,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "ASC", ...(undefined != null ? { @@ -5726,7 +5363,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5736,11 +5373,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_update", direction: "DESC", ...(undefined != null ? { @@ -5748,7 +5382,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5758,11 +5392,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "ASC", ...(undefined != null ? { @@ -5770,7 +5401,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5780,11 +5411,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_filter", direction: "DESC", ...(undefined != null ? { @@ -5792,7 +5420,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5802,11 +5430,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "ASC", ...(undefined != null ? { @@ -5814,7 +5439,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5824,11 +5449,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col_no_create_update", direction: "DESC", ...(undefined != null ? { @@ -5836,7 +5458,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5845,8 +5467,8 @@ export const plans = { }, PersonCondition: { firstName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_name", @@ -5859,17 +5481,15 @@ export const plans = { type: "attribute", attribute: "first_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.first_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_name", @@ -5882,17 +5502,15 @@ export const plans = { type: "attribute", attribute: "last_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create", @@ -5905,17 +5523,15 @@ export const plans = { type: "attribute", attribute: "col_no_create", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_update", @@ -5928,17 +5544,15 @@ export const plans = { type: "attribute", attribute: "col_no_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoOrder: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_order", @@ -5951,17 +5565,15 @@ export const plans = { type: "attribute", attribute: "col_no_order", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_order.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, colNoCreateUpdate: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col_no_create_update", @@ -5974,20 +5586,18 @@ export const plans = { type: "attribute", attribute: "col_no_create_update", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.col_no_create_update.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, getflamble: { plan($root, args, _info) { - const selectArgs = makeArgs5(args, ["input"]); + const selectArgs = makeArgs_getflamble(args, ["input"]); const $result = resource_getflamblePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -5997,9 +5607,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6007,7 +5626,7 @@ export const plans = { }, login: { plan($root, args, _info) { - const selectArgs = makeArgs6(args, ["input"]); + const selectArgs = makeArgs_login(args, ["input"]); const $result = resource_loginPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -6017,9 +5636,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -6027,17 +5655,17 @@ export const plans = { }, createRenamedTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_renamed_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6047,17 +5675,17 @@ export const plans = { }, createFilm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_filmsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_filmsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6067,17 +5695,17 @@ export const plans = { }, createStudio: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_studiosPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_studiosPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6087,17 +5715,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6107,17 +5735,17 @@ export const plans = { }, createTvEpisode: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_episodesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6127,17 +5755,17 @@ export const plans = { }, createTvShow: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_tv_showsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6147,17 +5775,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -6167,11 +5795,11 @@ export const plans = { }, updateFilm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_filmsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6186,11 +5814,11 @@ export const plans = { }, updateStudio: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_studiosPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6205,11 +5833,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6224,11 +5852,11 @@ export const plans = { }, updateTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_tv_episodesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6243,11 +5871,11 @@ export const plans = { }, updateTvShow: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_tv_showsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6262,11 +5890,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -6281,11 +5909,11 @@ export const plans = { }, deleteFilm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_filmsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6300,11 +5928,11 @@ export const plans = { }, deleteStudio: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_studiosPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6319,11 +5947,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6338,11 +5966,11 @@ export const plans = { }, deleteTvEpisode: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_tv_episodesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6357,11 +5985,11 @@ export const plans = { }, deleteTvShow: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_tv_showsPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6376,11 +6004,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -6397,7 +6025,8 @@ export const plans = { GetflamblePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, flambles($object) { return $object.get("result"); @@ -6414,16 +6043,16 @@ export const plans = { }, GetflambleInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, LoginPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, token($object) { return $object.get("result"); @@ -6446,17 +6075,17 @@ export const plans = { }, LoginInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined }, CreateRenamedTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, renamedTable($object) { return $object.get("result"); @@ -6467,35 +6096,34 @@ export const plans = { }, CreateRenamedTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, renamedTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RenamedTableInput: { - "__inputPlan": function RenamedTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, colA: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFilmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -6503,7 +6131,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6519,9 +6147,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6532,42 +6158,42 @@ export const plans = { }, CreateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, film: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FilmInput: { - "__inputPlan": function FilmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStudioPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -6575,7 +6201,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6591,9 +6217,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6604,42 +6228,42 @@ export const plans = { }, CreateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, studio: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StudioInput: { - "__inputPlan": function StudioInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -6647,7 +6271,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6663,9 +6287,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6676,62 +6298,66 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, author: { - applyPlan($insert, val) { - const $nodeId = val.get(); - const $nodeIdExists = condition("exists", $nodeId); - const spec = getSpec5($nodeId); - for (let i = 0, l = registryConfig.pgRelations.post.author.localAttributes.length; i < l; i++) { - const localName = registryConfig.pgRelations.post.author.localAttributes[i]; - const remoteName = registryConfig.pgRelations.post.author.remoteAttributes[i]; - // Set `null` if invalid - const $rawValue = trap(spec[remoteName], 4); - // If `null` but `$nodeId` wasn't null, throw an error: invalid Node ID! - const $value = assertNotNull($rawValue, `Invalid node identifier for '${"Person"}'`, { - if: $nodeIdExists - }); - $insert.set(localName, $value); + apply(record, nodeId) { + if (nodeId === undefined) { + return; + } else if (nodeId === null) { + for (const localName of registryConfig.pgRelations.post.author.localAttributes) { + record.set(localName, null); + } + return; + } else if (typeof nodeId !== "string") { + throw new Error(`Invalid node identifier for '${"Person"}'; expected string`); + } else { + const identifiers = getIdentifiers4(nodeId); + if (identifiers == null) { + console.log(identifiers, nodeId, "Person"); + throw new Error(`Invalid node identifier for '${"Person"}'`); + } + for (let i = 0; i < 1; i++) { + const localName = registryConfig.pgRelations.post.author.localAttributes[i]; + record.set(localName, identifiers[i]); + } } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, CreateTvEpisodePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -6739,7 +6365,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6755,9 +6381,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6768,62 +6392,66 @@ export const plans = { }, CreateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvEpisode: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvEpisodeInput: { - "__inputPlan": function TvEpisodeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, tvShowByShowId: { - applyPlan($insert, val) { - const $nodeId = val.get(); - const $nodeIdExists = condition("exists", $nodeId); - const spec = getSpec6($nodeId); - for (let i = 0, l = registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.localAttributes.length; i < l; i++) { - const localName = registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.localAttributes[i]; - const remoteName = registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.remoteAttributes[i]; - // Set `null` if invalid - const $rawValue = trap(spec[remoteName], 4); - // If `null` but `$nodeId` wasn't null, throw an error: invalid Node ID! - const $value = assertNotNull($rawValue, `Invalid node identifier for '${"TvShow"}'`, { - if: $nodeIdExists - }); - $insert.set(localName, $value); + apply(record, nodeId) { + if (nodeId === undefined) { + return; + } else if (nodeId === null) { + for (const localName of registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.localAttributes) { + record.set(localName, null); + } + return; + } else if (typeof nodeId !== "string") { + throw new Error(`Invalid node identifier for '${"TvShow"}'; expected string`); + } else { + const identifiers = getIdentifiers5(nodeId); + if (identifiers == null) { + console.log(identifiers, nodeId, "TvShow"); + throw new Error(`Invalid node identifier for '${"TvShow"}'`); + } + for (let i = 0; i < 1; i++) { + const localName = registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.localAttributes[i]; + record.set(localName, identifiers[i]); + } } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, CreateTvShowPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -6831,7 +6459,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6847,9 +6475,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6860,62 +6486,66 @@ export const plans = { }, CreateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, tvShow: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TvShowInput: { - "__inputPlan": function TvShowInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, code: { - applyPlan($insert, val) { - $insert.set("code", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("code", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioByStudioId: { - applyPlan($insert, val) { - const $nodeId = val.get(); - const $nodeIdExists = condition("exists", $nodeId); - const spec = getSpec7($nodeId); - for (let i = 0, l = registryConfig.pgRelations.tvShows.studiosByMyStudioId.localAttributes.length; i < l; i++) { - const localName = registryConfig.pgRelations.tvShows.studiosByMyStudioId.localAttributes[i]; - const remoteName = registryConfig.pgRelations.tvShows.studiosByMyStudioId.remoteAttributes[i]; - // Set `null` if invalid - const $rawValue = trap(spec[remoteName], 4); - // If `null` but `$nodeId` wasn't null, throw an error: invalid Node ID! - const $value = assertNotNull($rawValue, `Invalid node identifier for '${"Studio"}'`, { - if: $nodeIdExists - }); - $insert.set(localName, $value); + apply(record, nodeId) { + if (nodeId === undefined) { + return; + } else if (nodeId === null) { + for (const localName of registryConfig.pgRelations.tvShows.studiosByMyStudioId.localAttributes) { + record.set(localName, null); + } + return; + } else if (typeof nodeId !== "string") { + throw new Error(`Invalid node identifier for '${"Studio"}'; expected string`); + } else { + const identifiers = getIdentifiers6(nodeId); + if (identifiers == null) { + console.log(identifiers, nodeId, "Studio"); + throw new Error(`Invalid node identifier for '${"Studio"}'`); + } + for (let i = 0; i < 1; i++) { + const localName = registryConfig.pgRelations.tvShows.studiosByMyStudioId.localAttributes[i]; + record.set(localName, identifiers[i]); + } } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -6923,7 +6553,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -6939,9 +6569,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -6952,70 +6580,74 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoUpdate: { - applyPlan($insert, val) { - $insert.set("col_no_update", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_update", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7023,7 +6655,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7039,9 +6671,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7052,34 +6682,35 @@ export const plans = { }, UpdateFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, filmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FilmPatch: { - "__inputPlan": function FilmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7087,7 +6718,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7103,9 +6734,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7116,34 +6745,35 @@ export const plans = { }, UpdateStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, studioPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StudioPatch: { - "__inputPlan": function StudioPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7151,7 +6781,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7167,9 +6797,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7180,54 +6808,59 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, author: { - applyPlan($insert, val) { - const $nodeId = val.get(); - const $nodeIdExists = condition("exists", $nodeId); - const spec = getSpec8($nodeId); - for (let i = 0, l = registryConfig.pgRelations.post.author.localAttributes.length; i < l; i++) { - const localName = registryConfig.pgRelations.post.author.localAttributes[i]; - const remoteName = registryConfig.pgRelations.post.author.remoteAttributes[i]; - // Set `null` if invalid - const $rawValue = trap(spec[remoteName], 4); - // If `null` but `$nodeId` wasn't null, throw an error: invalid Node ID! - const $value = assertNotNull($rawValue, `Invalid node identifier for '${"Person"}'`, { - if: $nodeIdExists - }); - $insert.set(localName, $value); + apply(record, nodeId) { + if (nodeId === undefined) { + return; + } else if (nodeId === null) { + for (const localName of registryConfig.pgRelations.post.author.localAttributes) { + record.set(localName, null); + } + return; + } else if (typeof nodeId !== "string") { + throw new Error(`Invalid node identifier for '${"Person"}'; expected string`); + } else { + const identifiers = getIdentifiers7(nodeId); + if (identifiers == null) { + console.log(identifiers, nodeId, "Person"); + throw new Error(`Invalid node identifier for '${"Person"}'`); + } + for (let i = 0; i < 1; i++) { + const localName = registryConfig.pgRelations.post.author.localAttributes[i]; + record.set(localName, identifiers[i]); + } } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UpdateTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7235,7 +6868,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7251,9 +6884,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7264,54 +6895,59 @@ export const plans = { }, UpdateTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, tvEpisodePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvEpisodePatch: { - "__inputPlan": function TvEpisodePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, tvShowByShowId: { - applyPlan($insert, val) { - const $nodeId = val.get(); - const $nodeIdExists = condition("exists", $nodeId); - const spec = getSpec9($nodeId); - for (let i = 0, l = registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.localAttributes.length; i < l; i++) { - const localName = registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.localAttributes[i]; - const remoteName = registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.remoteAttributes[i]; - // Set `null` if invalid - const $rawValue = trap(spec[remoteName], 4); - // If `null` but `$nodeId` wasn't null, throw an error: invalid Node ID! - const $value = assertNotNull($rawValue, `Invalid node identifier for '${"TvShow"}'`, { - if: $nodeIdExists - }); - $insert.set(localName, $value); + apply(record, nodeId) { + if (nodeId === undefined) { + return; + } else if (nodeId === null) { + for (const localName of registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.localAttributes) { + record.set(localName, null); + } + return; + } else if (typeof nodeId !== "string") { + throw new Error(`Invalid node identifier for '${"TvShow"}'; expected string`); + } else { + const identifiers = getIdentifiers8(nodeId); + if (identifiers == null) { + console.log(identifiers, nodeId, "TvShow"); + throw new Error(`Invalid node identifier for '${"TvShow"}'`); + } + for (let i = 0; i < 1; i++) { + const localName = registryConfig.pgRelations.tvEpisodes.tvShowsByMyShowId.localAttributes[i]; + record.set(localName, identifiers[i]); + } } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UpdateTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7319,7 +6955,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7335,9 +6971,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7348,54 +6982,59 @@ export const plans = { }, UpdateTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, tvShowPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TvShowPatch: { - "__inputPlan": function TvShowPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } }, studioByStudioId: { - applyPlan($insert, val) { - const $nodeId = val.get(); - const $nodeIdExists = condition("exists", $nodeId); - const spec = getSpec10($nodeId); - for (let i = 0, l = registryConfig.pgRelations.tvShows.studiosByMyStudioId.localAttributes.length; i < l; i++) { - const localName = registryConfig.pgRelations.tvShows.studiosByMyStudioId.localAttributes[i]; - const remoteName = registryConfig.pgRelations.tvShows.studiosByMyStudioId.remoteAttributes[i]; - // Set `null` if invalid - const $rawValue = trap(spec[remoteName], 4); - // If `null` but `$nodeId` wasn't null, throw an error: invalid Node ID! - const $value = assertNotNull($rawValue, `Invalid node identifier for '${"Studio"}'`, { - if: $nodeIdExists - }); - $insert.set(localName, $value); + apply(record, nodeId) { + if (nodeId === undefined) { + return; + } else if (nodeId === null) { + for (const localName of registryConfig.pgRelations.tvShows.studiosByMyStudioId.localAttributes) { + record.set(localName, null); + } + return; + } else if (typeof nodeId !== "string") { + throw new Error(`Invalid node identifier for '${"Studio"}'; expected string`); + } else { + const identifiers = getIdentifiers9(nodeId); + if (identifiers == null) { + console.log(identifiers, nodeId, "Studio"); + throw new Error(`Invalid node identifier for '${"Studio"}'`); + } + for (let i = 0; i < 1; i++) { + const localName = registryConfig.pgRelations.tvShows.studiosByMyStudioId.localAttributes[i]; + record.set(localName, identifiers[i]); + } } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -7403,7 +7042,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7419,9 +7058,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7432,62 +7069,67 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, firstName: { - applyPlan($insert, val) { - $insert.set("first_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_name", bakedInputRuntime(schema, field.type, val)); + } }, lastName: { - applyPlan($insert, val) { - $insert.set("last_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_name", bakedInputRuntime(schema, field.type, val)); + } }, colNoCreate: { - applyPlan($insert, val) { - $insert.set("col_no_create", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_create", bakedInputRuntime(schema, field.type, val)); + } }, colNoOrder: { - applyPlan($insert, val) { - $insert.set("col_no_order", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_order", bakedInputRuntime(schema, field.type, val)); + } }, colNoFilter: { - applyPlan($insert, val) { - $insert.set("col_no_filter", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col_no_filter", bakedInputRuntime(schema, field.type, val)); + } } }, DeleteFilmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, film($object) { return $object.get("result"); @@ -7500,7 +7142,7 @@ export const plans = { query() { return rootValue(); }, - filmEdge($mutation, args, info) { + filmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7516,9 +7158,7 @@ export const plans = { return pgResource_filmsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FilmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7529,8 +7169,8 @@ export const plans = { }, DeleteFilmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -7538,7 +7178,8 @@ export const plans = { DeleteStudioPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, studio($object) { return $object.get("result"); @@ -7551,7 +7192,7 @@ export const plans = { query() { return rootValue(); }, - studioEdge($mutation, args, info) { + studioEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7567,9 +7208,7 @@ export const plans = { return pgResource_studiosPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StudiosOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7580,8 +7219,8 @@ export const plans = { }, DeleteStudioInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -7589,7 +7228,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7602,7 +7242,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7618,9 +7258,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7631,8 +7269,8 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -7640,7 +7278,8 @@ export const plans = { DeleteTvEpisodePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvEpisode($object) { return $object.get("result"); @@ -7653,7 +7292,7 @@ export const plans = { query() { return rootValue(); }, - tvEpisodeEdge($mutation, args, info) { + tvEpisodeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7669,9 +7308,7 @@ export const plans = { return pgResource_tv_episodesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvEpisodesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7682,8 +7319,8 @@ export const plans = { }, DeleteTvEpisodeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -7691,7 +7328,8 @@ export const plans = { DeleteTvShowPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, tvShow($object) { return $object.get("result"); @@ -7704,7 +7342,7 @@ export const plans = { query() { return rootValue(); }, - tvShowEdge($mutation, args, info) { + tvShowEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7720,9 +7358,7 @@ export const plans = { return pgResource_tv_showsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TvShowsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7733,8 +7369,8 @@ export const plans = { }, DeleteTvShowInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -7742,7 +7378,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -7755,7 +7392,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7771,9 +7408,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7784,8 +7419,8 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/relay1.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/relay1.1.export.mjs index 2c851c2e5f..2dc1e0dfa5 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/relay1.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/relay1.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -434,7 +436,7 @@ const registryConfig_pgCodecs_SearchTestSummariesRecord_SearchTestSummariesRecor isAnonymous: true }); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -471,10 +473,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -514,8 +515,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -557,7 +557,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -603,10 +603,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -661,10 +660,9 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -710,10 +708,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -768,8 +765,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const issue756Identifier = sql.identifier("c", "issue756"); const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp", sql.identifier("c", "not_null_timestamp"), { description: undefined, @@ -785,7 +781,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -822,8 +818,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const compoundTypeIdentifier = sql.identifier("c", "compound_type"); const colorCodec = enumCodec({ name: "color", @@ -1359,7 +1354,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -1481,8 +1476,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -5404,6 +5398,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -5423,6 +5420,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -5443,6 +5443,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -5462,6 +5465,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -5481,6 +5487,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -5500,6 +5509,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -5519,6 +5531,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -5527,453 +5542,82 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple7 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple10 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -5986,240 +5630,25 @@ const argDetailsSimple10 = [{ required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple11 = []; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple12 = []; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple13 = []; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple14 = []; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -6238,56 +5667,13 @@ const argDetailsSimple15 = [{ required: true, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -6306,148 +5692,19 @@ const argDetailsSimple16 = [{ required: false, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple19 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -6484,104 +5741,18 @@ const argDetailsSimple19 = [{ required: true, fetcher: null }]; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple20 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -6600,154 +5771,25 @@ const argDetailsSimple21 = [{ required: true, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple22 = []; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple23 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -6760,52 +5802,9 @@ const argDetailsSimple24 = [{ required: true, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -6818,325 +5817,51 @@ const argDetailsSimple25 = [{ required: true, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple27 = []; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple28 = []; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -7211,347 +5936,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple32 = []; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple33 = []; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple35 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple36 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple37 = []; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -7570,52 +5994,9 @@ const argDetailsSimple38 = [{ required: false, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7634,52 +6015,9 @@ const argDetailsSimple39 = [{ required: false, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7698,52 +6036,9 @@ const argDetailsSimple40 = [{ required: false, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -7762,52 +6057,9 @@ const argDetailsSimple41 = [{ required: false, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple42 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7826,52 +6078,9 @@ const argDetailsSimple42 = [{ required: false, fetcher: null }]; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple43 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7884,194 +6093,22 @@ const argDetailsSimple43 = [{ required: true, fetcher: null }]; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs12 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs46(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -8086,82 +6123,33 @@ const getSelectPlanFromParentAndArgs12 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs13 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs47(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -8176,176 +6164,41 @@ const getSelectPlanFromParentAndArgs13 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -8413,549 +6266,76 @@ const parseValueLiteral = (ast, variables) => { } }; const resource_frmcdc_postPgResource = registry.pgResources["frmcdc_post"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple53 = []; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple54 = []; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple55 = []; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple56 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -8968,190 +6348,18 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple66 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -9170,294 +6378,36 @@ const argDetailsSimple66 = [{ required: true, fetcher: null }]; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple67 = []; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple68 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple69 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple72 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -9494,156 +6444,27 @@ const argDetailsSimple72 = [{ required: true, fetcher: null }]; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9656,52 +6477,9 @@ const argDetailsSimple75 = [{ required: true, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9714,243 +6492,71 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple77 = []; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple78 = []; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "id"]); + const $nodeId = args.getRaw(["input", "id"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -14440,60 +11046,60 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("id")); + return node(nodeIdHandlerByTypeName, args.getRaw("id")); }, myTableByRowId(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, nullTestRecordByRowId(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, leftArmByRowId(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ByRowId(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, personByRowId(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -14510,7 +11116,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14519,7 +11124,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14528,7 +11132,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14537,7 +11140,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14546,7 +11148,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14555,15 +11156,15 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, funcInOut($root, args, _info) { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -14580,7 +11181,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14589,7 +11189,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14598,7 +11197,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14607,7 +11205,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14616,7 +11213,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14625,19 +11221,19 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -14654,7 +11250,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14663,7 +11258,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14672,7 +11266,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14681,7 +11274,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14690,7 +11282,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14699,11 +11290,11 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -14720,7 +11311,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14729,7 +11319,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14738,7 +11327,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14747,7 +11335,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14756,7 +11343,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14778,7 +11364,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14787,7 +11372,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14796,7 +11380,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14805,7 +11388,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14814,7 +11396,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14824,14 +11405,13 @@ export const plans = { }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14840,7 +11420,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14849,19 +11428,19 @@ export const plans = { } }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -14878,7 +11457,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14887,7 +11465,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14896,7 +11473,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14905,7 +11481,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14914,7 +11489,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14923,11 +11497,11 @@ export const plans = { } }, tableQuery($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -14944,7 +11518,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14953,7 +11526,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14962,7 +11534,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14971,7 +11542,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14980,7 +11550,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15002,7 +11571,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15011,7 +11579,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15020,7 +11587,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15029,7 +11595,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15038,7 +11603,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15047,7 +11611,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -15064,7 +11628,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15073,7 +11636,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15082,7 +11644,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15091,7 +11652,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15100,7 +11660,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15122,7 +11681,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15131,7 +11689,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15140,7 +11697,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15149,7 +11705,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15158,7 +11713,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15167,22 +11721,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15202,7 +11752,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15211,7 +11760,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15220,7 +11768,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15229,7 +11776,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15238,7 +11784,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15247,31 +11792,31 @@ export const plans = { } }, myTable(_$parent, args) { - const $nodeId = args.get("id"); + const $nodeId = args.getRaw("id"); return fetcher($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("id"); + const $nodeId = args.getRaw("id"); return fetcher2($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("id"); + const $nodeId = args.getRaw("id"); return fetcher3($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("id"); + const $nodeId = args.getRaw("id"); return fetcher4($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("id"); + const $nodeId = args.getRaw("id"); return fetcher5($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("id"); + const $nodeId = args.getRaw("id"); return fetcher6($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("id"); + const $nodeId = args.getRaw("id"); return fetcher7($nodeId); }, allMyTables: { @@ -15282,7 +11827,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15291,7 +11835,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15300,7 +11843,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15309,7 +11851,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15318,7 +11859,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15327,22 +11867,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15356,7 +11892,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15365,7 +11900,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15374,7 +11908,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15383,7 +11916,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15392,7 +11924,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15401,22 +11932,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15430,7 +11957,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15439,7 +11965,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15448,7 +11973,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15457,7 +11981,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15466,7 +11989,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15475,22 +11997,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15504,7 +12022,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15513,7 +12030,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15522,7 +12038,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15531,7 +12046,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15540,7 +12054,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15549,22 +12062,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15578,7 +12087,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15587,7 +12095,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15596,7 +12103,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15605,7 +12111,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15614,7 +12119,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15623,22 +12127,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15652,7 +12152,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15661,7 +12160,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15670,7 +12168,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15679,7 +12176,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15688,7 +12184,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15697,22 +12192,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15726,7 +12217,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15735,7 +12225,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15744,7 +12233,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15753,7 +12241,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15762,7 +12249,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15771,22 +12257,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15800,7 +12282,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15809,7 +12290,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15818,7 +12298,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15827,7 +12306,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15836,7 +12314,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15845,22 +12322,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15923,7 +12396,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs31(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -15938,27 +12411,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -15967,7 +12434,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs32(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -15982,27 +12449,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -16011,7 +12472,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs33(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16026,27 +12487,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -16055,7 +12510,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs34(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16070,27 +12525,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -16099,7 +12548,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs35(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16114,27 +12563,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -16143,7 +12586,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs36(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16158,27 +12601,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -16187,7 +12624,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs37(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16202,27 +12639,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -16231,7 +12662,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs38(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16246,27 +12677,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -16275,7 +12700,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs39(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16290,27 +12715,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -16319,7 +12738,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs40(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16334,27 +12753,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -16363,7 +12776,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs41(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16378,27 +12791,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -16407,7 +12814,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs42(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16422,27 +12829,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -16451,7 +12852,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs43(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16466,27 +12867,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -16495,7 +12890,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs44(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16510,27 +12905,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -16539,7 +12928,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs45(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16554,27 +12943,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -16593,7 +12976,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16602,7 +12984,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16611,7 +12992,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16620,7 +13000,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16629,7 +13008,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16638,12 +13016,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -16663,7 +13038,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16672,7 +13046,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16681,7 +13054,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16690,7 +13062,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16699,7 +13070,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16711,7 +13081,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs48(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16726,27 +13096,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -16755,7 +13119,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs49(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16770,27 +13134,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -16855,7 +13213,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16864,7 +13221,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16873,7 +13229,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16882,7 +13237,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16891,7 +13245,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16900,22 +13253,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16932,7 +13281,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16941,7 +13289,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16950,7 +13297,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16959,7 +13305,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16968,7 +13313,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16977,22 +13321,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17067,7 +13407,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17082,27 +13422,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -17343,26 +13677,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -17375,14 +13701,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -17395,14 +13721,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -17415,14 +13741,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -17435,19 +13761,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17456,19 +13780,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17477,11 +13799,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -17489,7 +13808,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17499,11 +13818,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -17511,7 +13827,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17521,11 +13837,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -17533,7 +13846,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17543,11 +13856,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -17555,7 +13865,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17565,11 +13875,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -17577,7 +13884,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17587,11 +13894,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -17599,7 +13903,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17609,11 +13913,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -17621,7 +13922,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17631,11 +13932,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -17643,7 +13941,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17653,11 +13951,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -17665,7 +13960,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17675,11 +13970,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -17687,7 +13979,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17697,11 +13989,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -17709,7 +13998,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17719,11 +14008,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -17731,7 +14017,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17741,11 +14027,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -17753,7 +14036,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17763,11 +14046,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -17775,7 +14055,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17785,11 +14065,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -17797,7 +14074,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17807,11 +14084,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -17819,7 +14093,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17829,11 +14103,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -17841,7 +14112,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17851,11 +14122,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -17863,7 +14131,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17873,11 +14141,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -17885,7 +14150,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17895,11 +14160,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -17907,7 +14169,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18442,31 +14704,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18475,19 +14727,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18496,11 +14746,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -18508,7 +14755,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18518,11 +14765,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -18530,7 +14774,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18540,11 +14784,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -18552,7 +14793,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18562,11 +14803,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -18574,7 +14812,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18584,11 +14822,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -18596,7 +14831,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18606,11 +14841,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -18618,7 +14850,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18627,8 +14859,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -18641,17 +14873,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -18664,17 +14894,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -18687,13 +14915,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecord: { @@ -19067,8 +15293,8 @@ export const plans = { }, PersonCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -19081,17 +15307,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -19104,17 +15328,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -19127,17 +15349,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -19150,17 +15370,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -19173,17 +15391,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -19196,17 +15412,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -19219,17 +15433,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -19242,17 +15454,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -19265,17 +15475,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -19288,17 +15496,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -19311,40 +15517,38 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, MyTablesConnection: { @@ -19373,31 +15577,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19406,19 +15600,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19427,11 +15619,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -19439,7 +15628,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19449,11 +15638,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -19461,7 +15647,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19471,11 +15657,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -19483,7 +15666,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19493,11 +15676,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -19505,7 +15685,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19514,8 +15694,8 @@ export const plans = { }, MyTableCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -19528,17 +15708,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -19551,13 +15729,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -19586,31 +15762,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19619,19 +15785,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19640,11 +15804,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -19652,7 +15813,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19662,11 +15823,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -19674,7 +15832,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19684,11 +15842,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -19696,7 +15851,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19706,11 +15861,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -19718,7 +15870,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19727,8 +15879,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -19741,17 +15893,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -19764,13 +15914,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -19799,31 +15947,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19832,19 +15970,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19853,11 +15989,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -19865,7 +15998,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19875,11 +16008,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -19887,7 +16017,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19897,11 +16027,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -19909,7 +16036,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19919,11 +16046,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -19931,7 +16055,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19941,11 +16065,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -19953,7 +16074,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19963,11 +16084,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -19975,7 +16093,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19985,11 +16103,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -19997,7 +16112,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20007,11 +16122,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -20019,7 +16131,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20028,8 +16140,8 @@ export const plans = { }, NullTestRecordCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20042,17 +16154,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -20065,17 +16175,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -20088,17 +16196,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -20111,13 +16217,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -20142,7 +16246,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -20157,27 +16261,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -20202,23 +16300,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -20226,7 +16313,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20236,11 +16323,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -20248,7 +16332,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20258,11 +16342,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -20270,7 +16351,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20280,11 +16361,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -20292,7 +16370,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20302,11 +16380,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -20314,7 +16389,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20324,11 +16399,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -20336,7 +16408,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20345,8 +16417,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -20359,17 +16431,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -20382,17 +16452,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -20405,13 +16473,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -20440,31 +16506,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20473,19 +16529,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20494,11 +16548,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -20506,7 +16557,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20516,11 +16567,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -20528,7 +16576,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20538,11 +16586,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -20550,7 +16595,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20560,11 +16605,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -20572,7 +16614,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20582,11 +16624,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -20594,7 +16633,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20604,11 +16643,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -20616,7 +16652,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20626,11 +16662,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -20638,7 +16671,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20648,11 +16681,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -20660,7 +16690,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20669,8 +16699,8 @@ export const plans = { }, LeftArmCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20683,17 +16713,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -20706,17 +16734,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -20729,17 +16755,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -20752,13 +16776,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -20787,31 +16809,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20820,19 +16832,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20841,11 +16851,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -20853,7 +16860,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20863,11 +16870,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -20875,7 +16879,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20885,11 +16889,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -20897,7 +16898,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20907,11 +16908,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -20919,7 +16917,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20928,8 +16926,8 @@ export const plans = { }, Issue756Condition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20942,17 +16940,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -20965,20 +16961,18 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs52(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -20988,9 +16982,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -20998,7 +17001,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs53(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21008,9 +17011,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21018,7 +17030,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs54(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21028,9 +17040,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21038,7 +17059,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs55(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21048,9 +17069,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21058,7 +17088,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs56(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21068,9 +17098,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21078,7 +17117,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs57(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21088,9 +17127,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21098,7 +17146,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs58(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21108,9 +17156,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21118,7 +17175,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs59(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21128,9 +17185,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21138,7 +17204,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs60(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21148,9 +17214,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21158,7 +17233,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs61(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21168,9 +17243,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21178,7 +17262,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs62(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21188,9 +17272,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21198,7 +17291,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs63(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21208,9 +17301,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21218,7 +17320,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs64(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21228,9 +17330,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21238,7 +17349,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs65(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21248,9 +17359,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21258,7 +17378,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs66(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21268,9 +17388,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21278,7 +17407,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs67(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21288,9 +17417,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21298,7 +17436,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs68(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21308,9 +17446,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21318,7 +17465,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs69(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21328,9 +17475,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21338,7 +17494,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs70(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21348,9 +17504,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21358,7 +17523,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs71(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21368,9 +17533,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21378,7 +17552,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs72(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21388,9 +17562,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21398,7 +17581,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs73(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21408,9 +17591,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21418,7 +17610,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs74(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21428,9 +17620,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21438,7 +17639,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs75(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21448,9 +17649,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21458,7 +17668,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs76(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21468,9 +17678,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21478,7 +17697,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs77(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21488,9 +17707,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21498,7 +17726,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs78(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21508,9 +17736,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21518,7 +17755,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs79(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -21528,9 +17765,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -21538,17 +17784,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21558,17 +17804,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21578,17 +17824,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21598,17 +17844,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21618,17 +17864,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21638,17 +17884,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21658,17 +17904,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21678,17 +17924,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -21698,11 +17944,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21717,13 +17963,13 @@ export const plans = { }, updateMyTableByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21738,11 +17984,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21757,13 +18003,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21778,11 +18024,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21797,14 +18043,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21819,11 +18065,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21838,13 +18084,13 @@ export const plans = { }, updateNullTestRecordByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21859,11 +18105,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21878,13 +18124,13 @@ export const plans = { }, updateLeftArmByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21899,13 +18145,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21920,11 +18166,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21939,13 +18185,13 @@ export const plans = { }, updateIssue756ByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21960,11 +18206,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -21979,13 +18225,13 @@ export const plans = { }, updatePersonByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22000,13 +18246,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22021,11 +18267,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22040,13 +18286,13 @@ export const plans = { }, deleteMyTableByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22061,11 +18307,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22080,13 +18326,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22101,11 +18347,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22120,14 +18366,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22142,11 +18388,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22161,13 +18407,13 @@ export const plans = { }, deleteNullTestRecordByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22182,11 +18428,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22201,13 +18447,13 @@ export const plans = { }, deleteLeftArmByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22222,13 +18468,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22243,11 +18489,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs13(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs13(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22262,13 +18508,13 @@ export const plans = { }, deleteIssue756ByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22283,11 +18529,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs14(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs14(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22302,13 +18548,13 @@ export const plans = { }, deletePersonByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22323,13 +18569,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -22346,7 +18592,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -22357,16 +18604,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -22377,16 +18624,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -22397,16 +18644,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -22417,16 +18664,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -22437,17 +18684,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -22458,17 +18705,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -22479,17 +18726,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -22500,17 +18747,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -22521,17 +18768,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -22542,17 +18789,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -22563,10 +18810,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -22574,7 +18820,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -22594,16 +18841,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -22623,16 +18870,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -22652,16 +18899,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -22672,10 +18919,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -22684,7 +18930,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -22707,16 +18954,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -22736,17 +18983,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -22754,7 +19001,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -22770,9 +19017,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -22788,50 +19033,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -22839,7 +19086,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -22855,9 +19102,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -22868,16 +19113,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -22888,16 +19133,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -22908,10 +19153,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -22923,7 +19167,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -22949,17 +19194,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -22970,17 +19215,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -23015,10 +19260,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -23026,7 +19270,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -23061,10 +19306,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -23072,7 +19316,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -23080,7 +19325,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23096,9 +19341,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23109,16 +19352,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -23129,16 +19372,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -23149,16 +19392,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -23166,7 +19409,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23182,9 +19425,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23195,42 +19436,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -23238,7 +19479,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23254,9 +19495,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23272,42 +19511,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -23315,7 +19554,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23331,9 +19570,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23354,49 +19591,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -23404,7 +19642,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23420,9 +19658,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23433,56 +19669,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -23493,49 +19731,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -23543,7 +19782,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23559,9 +19798,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23577,56 +19814,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -23634,7 +19873,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23650,9 +19889,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23663,42 +19900,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -23706,7 +19943,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23722,9 +19959,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23735,105 +19970,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -23841,7 +20085,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23857,9 +20101,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23870,55 +20112,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -23926,7 +20171,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23942,9 +20187,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23960,55 +20203,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -24016,7 +20262,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24032,9 +20278,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24055,63 +20299,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -24119,7 +20367,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24135,9 +20383,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24148,69 +20394,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -24218,7 +20469,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24234,9 +20485,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24252,83 +20501,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -24336,7 +20591,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24352,9 +20607,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24365,55 +20618,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -24421,7 +20677,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24437,9 +20693,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24450,132 +20704,145 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -24588,7 +20855,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24604,9 +20871,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24617,16 +20882,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteMyTableByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -24634,7 +20899,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -24647,7 +20913,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24663,9 +20929,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24681,16 +20945,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -24698,7 +20962,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -24711,7 +20976,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24727,9 +20992,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24750,16 +21013,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -24768,7 +21031,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -24781,7 +21045,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24797,9 +21061,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24810,16 +21072,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteNullTestRecordByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -24827,7 +21089,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -24840,7 +21103,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24856,9 +21119,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24874,24 +21135,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -24899,7 +21160,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -24912,7 +21174,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24928,9 +21190,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24941,16 +21201,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteIssue756ByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -24958,7 +21218,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -24971,7 +21232,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24987,9 +21248,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25000,24 +21259,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.1.export.mjs index ecc60e6b4f..47a4b6cb93 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -434,7 +436,7 @@ const registryConfig_pgCodecs_SearchTestSummariesRecord_SearchTestSummariesRecor isAnonymous: true }); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -471,10 +473,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -514,8 +515,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -557,7 +557,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -603,10 +603,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -661,10 +660,9 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -710,10 +708,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -768,8 +765,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const issue756Identifier = sql.identifier("c", "issue756"); const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp", sql.identifier("c", "not_null_timestamp"), { description: undefined, @@ -785,7 +781,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -822,8 +818,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const compoundTypeIdentifier = sql.identifier("c", "compound_type"); const colorCodec = enumCodec({ name: "color", @@ -1359,7 +1354,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -1481,8 +1476,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -5404,6 +5398,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -5423,6 +5420,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -5443,6 +5443,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -5462,6 +5465,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -5481,6 +5487,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -5500,6 +5509,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -5519,6 +5531,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -5527,453 +5542,82 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple7 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple10 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -5986,240 +5630,25 @@ const argDetailsSimple10 = [{ required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple11 = []; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple12 = []; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple13 = []; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple14 = []; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -6238,56 +5667,13 @@ const argDetailsSimple15 = [{ required: true, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -6306,148 +5692,19 @@ const argDetailsSimple16 = [{ required: false, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple19 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -6484,104 +5741,18 @@ const argDetailsSimple19 = [{ required: true, fetcher: null }]; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple20 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -6600,154 +5771,25 @@ const argDetailsSimple21 = [{ required: true, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple22 = []; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple23 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -6760,52 +5802,9 @@ const argDetailsSimple24 = [{ required: true, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -6818,325 +5817,51 @@ const argDetailsSimple25 = [{ required: true, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple27 = []; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple28 = []; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -7211,347 +5936,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple32 = []; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple33 = []; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple35 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple36 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple37 = []; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -7570,52 +5994,9 @@ const argDetailsSimple38 = [{ required: false, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7634,52 +6015,9 @@ const argDetailsSimple39 = [{ required: false, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7698,52 +6036,9 @@ const argDetailsSimple40 = [{ required: false, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -7762,52 +6057,9 @@ const argDetailsSimple41 = [{ required: false, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple42 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7826,52 +6078,9 @@ const argDetailsSimple42 = [{ required: false, fetcher: null }]; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple43 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7884,194 +6093,22 @@ const argDetailsSimple43 = [{ required: true, fetcher: null }]; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs12 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs46(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -8086,82 +6123,33 @@ const getSelectPlanFromParentAndArgs12 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs13 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs47(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -8176,176 +6164,41 @@ const getSelectPlanFromParentAndArgs13 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -8413,549 +6266,76 @@ const parseValueLiteral = (ast, variables) => { } }; const resource_frmcdc_postPgResource = registry.pgResources["frmcdc_post"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple53 = []; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple54 = []; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple55 = []; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple56 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -8968,190 +6348,18 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple66 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -9170,294 +6378,36 @@ const argDetailsSimple66 = [{ required: true, fetcher: null }]; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple67 = []; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple68 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple69 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple72 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -9494,156 +6444,27 @@ const argDetailsSimple72 = [{ required: true, fetcher: null }]; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9656,52 +6477,9 @@ const argDetailsSimple75 = [{ required: true, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9714,243 +6492,71 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple77 = []; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple78 = []; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -14725,60 +11331,60 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -14795,7 +11401,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14804,7 +11409,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14813,7 +11417,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14822,7 +11425,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14831,7 +11433,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14845,7 +11446,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14854,7 +11454,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14863,15 +11462,15 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, funcInOut($root, args, _info) { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -14888,7 +11487,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14897,7 +11495,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14906,7 +11503,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14915,7 +11511,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14924,7 +11519,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14938,7 +11532,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14947,7 +11540,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14956,19 +11548,19 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -14985,7 +11577,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14994,7 +11585,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15003,7 +11593,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15012,7 +11601,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15021,7 +11609,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15035,7 +11622,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15044,7 +11630,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15053,11 +11638,11 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -15074,7 +11659,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15083,7 +11667,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15092,7 +11675,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15101,7 +11683,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15110,7 +11691,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15124,7 +11704,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15133,7 +11712,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15155,7 +11733,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15164,7 +11741,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15173,7 +11749,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15182,7 +11757,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15191,7 +11765,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15205,7 +11778,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15214,7 +11786,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15224,14 +11795,13 @@ export const plans = { }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15240,7 +11810,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15249,19 +11818,19 @@ export const plans = { } }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -15278,7 +11847,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15287,7 +11855,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15296,7 +11863,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15305,7 +11871,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15314,7 +11879,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15328,7 +11892,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15337,7 +11900,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15346,11 +11908,11 @@ export const plans = { } }, tableQuery($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -15367,7 +11929,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15376,7 +11937,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15385,7 +11945,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15394,7 +11953,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15403,7 +11961,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15417,7 +11974,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15426,7 +11982,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15448,7 +12003,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15457,7 +12011,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15466,7 +12019,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15475,7 +12027,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15484,7 +12035,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15498,7 +12048,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15507,7 +12056,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15516,7 +12064,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -15533,7 +12081,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15542,7 +12089,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15551,7 +12097,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15560,7 +12105,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15569,7 +12113,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15583,7 +12126,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15592,7 +12134,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15614,7 +12155,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15623,7 +12163,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15632,7 +12171,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15641,7 +12179,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15650,7 +12187,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15659,22 +12195,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15686,7 +12218,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15695,7 +12226,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15704,20 +12234,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -15737,7 +12263,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15746,7 +12271,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15755,7 +12279,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15764,7 +12287,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15773,7 +12295,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15787,7 +12308,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15796,7 +12316,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15805,31 +12324,31 @@ export const plans = { } }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, allMyTablesList: { @@ -15840,7 +12359,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15849,7 +12367,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15858,20 +12375,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -15885,7 +12398,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15894,7 +12406,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15903,7 +12414,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15912,7 +12422,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15921,7 +12430,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15930,22 +12438,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15959,7 +12463,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15968,7 +12471,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15977,20 +12479,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -16004,7 +12502,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16013,7 +12510,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16022,7 +12518,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16031,7 +12526,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16040,7 +12534,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16049,22 +12542,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16078,7 +12567,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16087,7 +12575,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16096,20 +12583,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -16123,7 +12606,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16132,7 +12614,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16141,7 +12622,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16150,7 +12630,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16159,7 +12638,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16168,22 +12646,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16197,7 +12671,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16206,7 +12679,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16215,20 +12687,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -16242,7 +12710,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16251,7 +12718,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16260,7 +12726,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16269,7 +12734,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16278,7 +12742,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16287,22 +12750,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16316,7 +12775,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16325,7 +12783,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16334,20 +12791,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -16361,7 +12814,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16370,7 +12822,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16379,7 +12830,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16388,7 +12838,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16397,7 +12846,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16406,22 +12854,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16435,7 +12879,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16444,7 +12887,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16453,20 +12895,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -16480,7 +12918,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16489,7 +12926,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16498,7 +12934,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16507,7 +12942,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16516,7 +12950,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16525,22 +12958,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16554,7 +12983,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16563,7 +12991,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16572,20 +12999,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -16599,7 +13022,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16608,7 +13030,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16617,7 +13038,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16626,7 +13046,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16635,7 +13054,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16644,22 +13062,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16673,7 +13087,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16682,7 +13095,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16691,20 +13103,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -16718,7 +13126,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16727,7 +13134,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16736,7 +13142,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16745,7 +13150,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16754,7 +13158,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16763,22 +13166,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16841,7 +13240,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs31(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16856,27 +13255,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -16885,7 +13278,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs32(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16900,27 +13293,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -16929,7 +13316,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs33(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16944,27 +13331,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -16973,7 +13354,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs34(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16988,27 +13369,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -17017,7 +13392,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs35(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17032,27 +13407,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -17061,7 +13430,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs36(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17076,27 +13445,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -17105,7 +13468,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs37(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17120,27 +13483,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -17149,7 +13506,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs38(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17164,27 +13521,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -17193,7 +13544,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs39(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17208,27 +13559,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -17237,7 +13582,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs40(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17252,27 +13597,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -17281,7 +13620,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs41(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17296,27 +13635,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -17325,7 +13658,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs42(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17340,27 +13673,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -17369,7 +13696,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs43(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17384,27 +13711,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -17413,7 +13734,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs44(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17428,27 +13749,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -17457,7 +13772,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs45(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17472,27 +13787,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -17511,7 +13820,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17520,7 +13828,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17529,7 +13836,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17538,7 +13844,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17547,7 +13852,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17556,12 +13860,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -17573,7 +13874,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17582,7 +13882,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17591,11 +13890,8 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } } @@ -17615,7 +13911,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17624,7 +13919,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17633,7 +13927,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17642,7 +13935,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17651,7 +13943,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17665,7 +13956,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17674,7 +13964,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17686,7 +13975,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs48(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17701,27 +13990,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -17730,7 +14013,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs49(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17745,27 +14028,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -17830,7 +14107,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17839,7 +14115,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17848,7 +14123,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17857,7 +14131,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17866,7 +14139,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17875,22 +14147,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17906,7 +14174,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17915,7 +14182,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17924,20 +14190,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -17954,7 +14216,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17963,7 +14224,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17972,7 +14232,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17981,7 +14240,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17990,7 +14248,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17999,22 +14256,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18030,7 +14283,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18039,7 +14291,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18048,20 +14299,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -18136,7 +14383,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -18151,27 +14398,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -18412,26 +14653,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -18444,14 +14677,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -18464,14 +14697,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -18484,14 +14717,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -18504,19 +14737,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18525,19 +14756,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18546,11 +14775,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -18558,7 +14784,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18568,11 +14794,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -18580,7 +14803,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18590,11 +14813,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -18602,7 +14822,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18612,11 +14832,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -18624,7 +14841,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18634,11 +14851,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -18646,7 +14860,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18656,11 +14870,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -18668,7 +14879,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18678,11 +14889,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -18690,7 +14898,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18700,11 +14908,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -18712,7 +14917,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18722,11 +14927,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -18734,7 +14936,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18744,11 +14946,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -18756,7 +14955,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18766,11 +14965,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -18778,7 +14974,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18788,11 +14984,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -18800,7 +14993,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18810,11 +15003,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -18822,7 +15012,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18832,11 +15022,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -18844,7 +15031,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18854,11 +15041,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -18866,7 +15050,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18876,11 +15060,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -18888,7 +15069,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18898,11 +15079,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -18910,7 +15088,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18920,11 +15098,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -18932,7 +15107,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18942,11 +15117,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -18954,7 +15126,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18964,11 +15136,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -18976,7 +15145,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19511,31 +15680,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19544,19 +15703,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19565,11 +15722,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -19577,7 +15731,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19587,11 +15741,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -19599,7 +15750,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19609,11 +15760,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -19621,7 +15769,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19631,11 +15779,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -19643,7 +15788,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19653,11 +15798,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -19665,7 +15807,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19675,11 +15817,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -19687,7 +15826,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19696,8 +15835,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -19710,17 +15849,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -19733,17 +15870,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -19756,13 +15891,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecord: { @@ -20136,8 +16269,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20150,17 +16283,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -20173,17 +16304,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -20196,17 +16325,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -20219,17 +16346,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -20242,17 +16367,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -20265,17 +16388,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -20288,17 +16409,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -20311,17 +16430,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -20334,17 +16451,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -20357,17 +16472,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -20380,68 +16493,56 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20450,19 +16551,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20471,11 +16570,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -20483,7 +16579,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20493,11 +16589,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -20505,7 +16598,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20515,11 +16608,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -20527,7 +16617,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20537,11 +16627,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -20549,7 +16636,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20558,8 +16645,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20572,17 +16659,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -20595,13 +16680,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTablesConnection: { @@ -20630,31 +16713,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20663,19 +16736,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20684,11 +16755,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -20696,7 +16764,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20706,11 +16774,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -20718,7 +16783,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20728,11 +16793,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -20740,7 +16802,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20750,11 +16812,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -20762,7 +16821,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20771,8 +16830,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -20785,17 +16844,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -20808,13 +16865,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -20843,31 +16898,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20876,19 +16921,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20897,11 +16940,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -20909,7 +16949,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20919,11 +16959,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -20931,7 +16968,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20941,11 +16978,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -20953,7 +16987,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20963,11 +16997,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -20975,7 +17006,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20985,11 +17016,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -20997,7 +17025,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21007,11 +17035,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -21019,7 +17044,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21029,11 +17054,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -21041,7 +17063,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21051,11 +17073,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -21063,7 +17082,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21072,8 +17091,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -21086,17 +17105,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -21109,17 +17126,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -21132,17 +17147,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -21155,13 +17168,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -21195,7 +17206,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -21210,27 +17221,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -21246,23 +17251,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -21270,7 +17264,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21280,11 +17274,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -21292,7 +17283,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21302,11 +17293,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -21314,7 +17302,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21324,11 +17312,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -21336,7 +17321,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21346,11 +17331,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -21358,7 +17340,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21368,11 +17350,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -21380,7 +17359,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21389,8 +17368,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -21403,17 +17382,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -21426,17 +17403,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -21449,13 +17424,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -21484,31 +17457,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21517,19 +17480,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21538,11 +17499,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -21550,7 +17508,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21560,11 +17518,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -21572,7 +17527,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21582,11 +17537,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -21594,7 +17546,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21604,11 +17556,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -21616,7 +17565,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21626,11 +17575,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -21638,7 +17584,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21648,11 +17594,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -21660,7 +17603,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21670,11 +17613,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -21682,7 +17622,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21692,11 +17632,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -21704,7 +17641,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21713,8 +17650,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -21727,17 +17664,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -21750,17 +17685,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -21773,17 +17706,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -21796,13 +17727,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -21831,31 +17760,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21864,19 +17783,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21885,11 +17802,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -21897,7 +17811,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21907,11 +17821,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -21919,7 +17830,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21929,11 +17840,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -21941,7 +17849,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21951,11 +17859,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -21963,7 +17868,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21972,8 +17877,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -21986,17 +17891,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -22009,13 +17912,11 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -22047,7 +17948,7 @@ export const plans = { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs52(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22057,9 +17958,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22067,7 +17977,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs53(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22077,9 +17987,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22087,7 +18006,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs54(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22097,9 +18016,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22107,7 +18035,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs55(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22117,9 +18045,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22127,7 +18064,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs56(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22137,9 +18074,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22147,7 +18093,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs57(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22157,9 +18103,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22167,7 +18122,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs58(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22177,9 +18132,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22187,7 +18151,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs59(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22197,9 +18161,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22207,7 +18180,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs60(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22217,9 +18190,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22227,7 +18209,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs61(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22237,9 +18219,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22247,7 +18238,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs62(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22257,9 +18248,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22267,7 +18267,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs63(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22277,9 +18277,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22287,7 +18296,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs64(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22297,9 +18306,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22307,7 +18325,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs65(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22317,9 +18335,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22327,7 +18354,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs66(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22337,9 +18364,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22347,7 +18383,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs67(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22357,9 +18393,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22367,7 +18412,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs68(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22377,9 +18422,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22387,7 +18441,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs69(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22397,9 +18451,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22407,7 +18470,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs70(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22417,9 +18480,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22427,7 +18499,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs71(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22437,9 +18509,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22447,7 +18528,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs72(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22457,9 +18538,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22467,7 +18557,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs73(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22477,9 +18567,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22487,7 +18586,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs74(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22497,9 +18596,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22507,7 +18615,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs75(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22517,9 +18625,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22527,7 +18644,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs76(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22537,9 +18654,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22547,7 +18673,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs77(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22557,9 +18683,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22567,7 +18702,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs78(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22577,9 +18712,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22587,7 +18731,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs79(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -22597,9 +18741,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -22607,17 +18760,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -22627,17 +18780,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -22647,17 +18800,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -22667,17 +18820,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -22687,17 +18840,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -22707,17 +18860,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -22727,17 +18880,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -22747,17 +18900,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -22767,11 +18920,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22786,13 +18939,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22807,11 +18960,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22826,13 +18979,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22847,11 +19000,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22866,14 +19019,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22888,11 +19041,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22907,13 +19060,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22928,11 +19081,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22947,13 +19100,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22968,13 +19121,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -22989,11 +19142,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -23008,13 +19161,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -23029,11 +19182,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -23048,13 +19201,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -23069,13 +19222,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -23090,11 +19243,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23109,13 +19262,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23130,11 +19283,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23149,13 +19302,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23170,11 +19323,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23189,14 +19342,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23211,11 +19364,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23230,13 +19383,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23251,11 +19404,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23270,13 +19423,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23291,13 +19444,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23312,11 +19465,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs13(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs13(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23331,13 +19484,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23352,11 +19505,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs14(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs14(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23371,13 +19524,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23392,13 +19545,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -23415,7 +19568,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -23426,16 +19580,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -23446,16 +19600,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -23466,16 +19620,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -23486,16 +19640,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -23506,17 +19660,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -23527,17 +19681,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -23548,17 +19702,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -23569,17 +19723,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -23590,17 +19744,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -23611,17 +19765,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -23632,10 +19786,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -23643,7 +19796,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -23663,16 +19817,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -23692,16 +19846,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -23721,16 +19875,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -23741,10 +19895,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -23753,7 +19906,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -23776,16 +19930,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -23805,17 +19959,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -23823,7 +19977,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23839,9 +19993,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23857,50 +20009,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -23908,7 +20062,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -23924,9 +20078,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -23937,16 +20089,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -23957,16 +20109,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -23977,10 +20129,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -23992,7 +20143,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -24018,17 +20170,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -24039,17 +20191,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -24084,10 +20236,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -24095,7 +20246,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -24130,10 +20282,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -24141,7 +20292,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -24149,7 +20301,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24165,9 +20317,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24178,16 +20328,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -24198,16 +20348,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -24218,16 +20368,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -24235,7 +20385,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24251,9 +20401,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24264,42 +20412,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -24307,7 +20455,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24323,9 +20471,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24341,42 +20487,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -24384,7 +20530,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24400,9 +20546,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24423,49 +20567,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -24473,7 +20618,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24489,9 +20634,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24502,56 +20645,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -24562,49 +20707,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -24612,7 +20758,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24628,9 +20774,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24646,56 +20790,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -24703,7 +20849,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24719,9 +20865,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24732,42 +20876,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -24775,7 +20919,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24791,9 +20935,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24804,105 +20946,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -24910,7 +21061,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -24926,9 +21077,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -24939,55 +21088,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -24995,7 +21147,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25011,9 +21163,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25029,55 +21179,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -25085,7 +21238,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25101,9 +21254,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25124,63 +21275,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -25188,7 +21343,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25204,9 +21359,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25217,69 +21370,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -25287,7 +21445,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25303,9 +21461,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25321,83 +21477,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -25405,7 +21567,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25421,9 +21583,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25434,55 +21594,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -25490,7 +21653,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25506,9 +21669,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25519,132 +21680,145 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -25657,7 +21831,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25673,9 +21847,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25686,16 +21858,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -25703,7 +21875,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -25716,7 +21889,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25732,9 +21905,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25750,16 +21921,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -25767,7 +21938,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -25780,7 +21952,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25796,9 +21968,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25819,16 +21989,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -25837,7 +22007,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -25850,7 +22021,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25866,9 +22037,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25879,16 +22048,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -25896,7 +22065,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -25909,7 +22079,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25925,9 +22095,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -25943,24 +22111,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -25968,7 +22136,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -25981,7 +22150,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -25997,9 +22166,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -26010,16 +22177,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -26027,7 +22194,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -26040,7 +22208,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -26056,9 +22224,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -26069,24 +22235,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.omit-pets-simple.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.omit-pets-simple.1.export.mjs index 90182fa594..b11c0055e8 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.omit-pets-simple.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.omit-pets-simple.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -77,7 +79,7 @@ const executor = new PgExecutor({ } }); const peopleIdentifier = sql.identifier("simple_collections", "people"); -const spec_people = { +const peopleCodec = recordCodec({ name: "people", identifier: peopleIdentifier, attributes: { @@ -114,10 +116,9 @@ const spec_people = { } }, executor: executor -}; -const peopleCodec = recordCodec(spec_people); +}); const petsIdentifier = sql.identifier("simple_collections", "pets"); -const spec_pets = { +const petsCodec = recordCodec({ name: "pets", identifier: petsIdentifier, attributes: { @@ -163,8 +164,7 @@ const spec_pets = { } }, executor: executor -}; -const petsCodec = recordCodec(spec_pets); +}); const peopleUniques = [{ isPrimary: true, attributes: ["id"], @@ -335,6 +335,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_peoplePgResource.get(spec); }, @@ -354,6 +357,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_petsPgResource.get(spec); }, @@ -366,6 +372,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -396,92 +403,48 @@ const fetcher2 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Pet); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_people_odd_pets = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_people_odd_pets = (args, path = []) => argDetailsSimple_people_odd_pets.map(details => makeArg(path, args, details)); const resource_people_odd_petsPgResource = registry.pgResources["people_odd_pets"]; function CursorSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Pet, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Pet, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -1179,24 +1142,24 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, personById(_$root, args) { return pgResource_peoplePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, petById(_$root, args) { return pgResource_petsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, pet(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, allPeople: { @@ -1207,7 +1170,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1216,7 +1178,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1225,7 +1186,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1234,7 +1194,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1243,7 +1202,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1252,22 +1210,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -1281,7 +1235,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1290,7 +1243,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1299,7 +1251,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1308,7 +1259,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1317,7 +1267,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1326,22 +1275,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PetsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -1359,7 +1304,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs(args); + const extraSelectArgs = makeArgs_people_odd_pets(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -1374,27 +1319,21 @@ export const plans = { if (resource_people_odd_petsPgResource.isUnique && !resource_people_odd_petsPgResource.codec.attributes && typeof resource_people_odd_petsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_people_odd_petsPgResource.codec, undefined)`${resource_people_odd_petsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_people_odd_petsPgResource.from, resource_people_odd_petsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_people_odd_petsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_people_odd_petsPgResource.execute(selectArgs); @@ -1403,7 +1342,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1412,7 +1350,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1437,7 +1374,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1446,7 +1382,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1455,7 +1390,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1464,7 +1398,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1473,7 +1406,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1482,22 +1414,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PetsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -1576,31 +1504,21 @@ export const plans = { } }, PetsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { petsUniques[0].attributes.forEach(attributeName => { - const attribute = petsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1609,19 +1527,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { petsUniques[0].attributes.forEach(attributeName => { - const attribute = petsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1630,11 +1546,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -1642,7 +1555,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1652,11 +1565,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -1664,7 +1574,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1674,11 +1584,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "owner_id", direction: "ASC", ...(undefined != null ? { @@ -1686,7 +1593,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1696,11 +1603,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "owner_id", direction: "DESC", ...(undefined != null ? { @@ -1708,7 +1612,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1718,11 +1622,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -1730,7 +1631,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1740,11 +1641,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -1752,7 +1650,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1761,8 +1659,8 @@ export const plans = { }, PetCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -1775,17 +1673,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_pets.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ownerId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "owner_id", @@ -1798,17 +1694,15 @@ export const plans = { type: "attribute", attribute: "owner_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_pets.attributes.owner_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -1821,13 +1715,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_pets.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -1856,31 +1748,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1889,19 +1771,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1910,11 +1790,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -1922,7 +1799,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1932,11 +1809,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -1944,7 +1818,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1954,11 +1828,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -1966,7 +1837,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1976,11 +1847,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -1988,7 +1856,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1997,8 +1865,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -2011,17 +1879,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -2034,30 +1900,28 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_peoplePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_peoplePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -2067,17 +1931,17 @@ export const plans = { }, createPet: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_petsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_petsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -2087,11 +1951,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_peoplePgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_peoplePgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2106,13 +1970,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_peoplePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_peoplePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2127,11 +1991,11 @@ export const plans = { }, updatePet: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_petsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_petsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2146,13 +2010,13 @@ export const plans = { }, updatePetById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_petsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_petsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2167,11 +2031,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_peoplePgResource, specFromArgs3(args)) + const $delete = pgDeleteSingle(pgResource_peoplePgResource, specFromArgs3(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2186,13 +2050,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_peoplePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_peoplePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2207,11 +2071,11 @@ export const plans = { }, deletePet: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_petsPgResource, specFromArgs4(args)) + const $delete = pgDeleteSingle(pgResource_petsPgResource, specFromArgs4(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2226,13 +2090,13 @@ export const plans = { }, deletePetById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_petsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_petsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2249,7 +2113,8 @@ export const plans = { CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -2257,7 +2122,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2273,9 +2138,7 @@ export const plans = { return pgResource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2286,42 +2149,42 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePetPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, pet($object) { return $object.get("result"); @@ -2329,7 +2192,7 @@ export const plans = { query() { return rootValue(); }, - petEdge($mutation, args, info) { + petEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2345,9 +2208,7 @@ export const plans = { return pgResource_petsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2363,49 +2224,50 @@ export const plans = { }, CreatePetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, pet: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PetInput: { - "__inputPlan": function PetInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ownerId: { - applyPlan($insert, val) { - $insert.set("owner_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("owner_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -2413,7 +2275,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2429,9 +2291,7 @@ export const plans = { return pgResource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2442,55 +2302,58 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, pet($object) { return $object.get("result"); @@ -2498,7 +2361,7 @@ export const plans = { query() { return rootValue(); }, - petEdge($mutation, args, info) { + petEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2514,9 +2377,7 @@ export const plans = { return pgResource_petsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2532,62 +2393,66 @@ export const plans = { }, UpdatePetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, petPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PetPatch: { - "__inputPlan": function PetPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ownerId: { - applyPlan($insert, val) { - $insert.set("owner_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("owner_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, petPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -2600,7 +2465,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2616,9 +2481,7 @@ export const plans = { return pgResource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2629,16 +2492,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -2646,7 +2509,8 @@ export const plans = { DeletePetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, pet($object) { return $object.get("result"); @@ -2659,7 +2523,7 @@ export const plans = { query() { return rootValue(); }, - petEdge($mutation, args, info) { + petEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2675,9 +2539,7 @@ export const plans = { return pgResource_petsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2693,16 +2555,16 @@ export const plans = { }, DeletePetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.only-people-omit.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.only-people-omit.1.export.mjs index 485835a5d0..c9ed39e132 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.only-people-omit.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.only-people-omit.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -119,7 +121,7 @@ const spec_people = { }; const peopleCodec = recordCodec(spec_people); const petsIdentifier = sql.identifier("simple_collections", "pets"); -const spec_pets = { +const petsCodec = recordCodec({ name: "pets", identifier: petsIdentifier, attributes: { @@ -165,8 +167,7 @@ const spec_pets = { } }, executor: executor -}; -const petsCodec = recordCodec(spec_pets); +}); const peopleUniques = [{ isPrimary: true, attributes: ["id"], @@ -337,6 +338,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_peoplePgResource.get(spec); }, @@ -356,6 +360,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_petsPgResource.get(spec); }, @@ -368,6 +375,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -398,92 +406,48 @@ const fetcher2 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Pet); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_people_odd_pets = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_people_odd_pets = (args, path = []) => argDetailsSimple_people_odd_pets.map(details => makeArg(path, args, details)); const resource_people_odd_petsPgResource = registry.pgResources["people_odd_pets"]; function CursorSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Pet, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Pet, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -1113,24 +1077,24 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, personById(_$root, args) { return pgResource_peoplePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, petById(_$root, args) { return pgResource_petsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, pet(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, allPeople: { @@ -1141,7 +1105,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1150,7 +1113,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1159,7 +1121,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1168,7 +1129,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1177,7 +1137,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1186,22 +1145,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -1215,7 +1170,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1224,7 +1178,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1233,20 +1186,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("PetsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -1264,7 +1213,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs(args); + const extraSelectArgs = makeArgs_people_odd_pets(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -1279,27 +1228,21 @@ export const plans = { if (resource_people_odd_petsPgResource.isUnique && !resource_people_odd_petsPgResource.codec.attributes && typeof resource_people_odd_petsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_people_odd_petsPgResource.codec, undefined)`${resource_people_odd_petsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_people_odd_petsPgResource.from, resource_people_odd_petsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_people_odd_petsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_people_odd_petsPgResource.execute(selectArgs); @@ -1308,7 +1251,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1317,7 +1259,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1341,7 +1282,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1350,7 +1290,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1359,20 +1298,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("PetsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -1401,31 +1336,21 @@ export const plans = { } }, PetsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { petsUniques[0].attributes.forEach(attributeName => { - const attribute = petsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1434,19 +1359,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { petsUniques[0].attributes.forEach(attributeName => { - const attribute = petsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1455,11 +1378,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -1467,7 +1387,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1477,11 +1397,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -1489,7 +1406,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1499,11 +1416,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "owner_id", direction: "ASC", ...(undefined != null ? { @@ -1511,7 +1425,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1521,11 +1435,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "owner_id", direction: "DESC", ...(undefined != null ? { @@ -1533,7 +1444,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1543,11 +1454,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -1555,7 +1463,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1565,11 +1473,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -1577,7 +1482,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1586,8 +1491,8 @@ export const plans = { }, PetCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -1600,17 +1505,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_pets.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ownerId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "owner_id", @@ -1623,17 +1526,15 @@ export const plans = { type: "attribute", attribute: "owner_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_pets.attributes.owner_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -1646,13 +1547,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_pets.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -1706,31 +1605,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1739,19 +1628,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1760,11 +1647,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -1772,7 +1656,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1782,11 +1666,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -1794,7 +1675,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1804,11 +1685,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -1816,7 +1694,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1826,11 +1704,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -1838,7 +1713,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1847,8 +1722,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -1861,17 +1736,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -1884,30 +1757,28 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_peoplePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_peoplePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -1917,17 +1788,17 @@ export const plans = { }, createPet: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_petsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_petsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -1937,11 +1808,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_peoplePgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_peoplePgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -1956,13 +1827,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_peoplePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_peoplePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -1977,11 +1848,11 @@ export const plans = { }, updatePet: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_petsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_petsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -1996,13 +1867,13 @@ export const plans = { }, updatePetById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_petsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_petsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2017,11 +1888,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_peoplePgResource, specFromArgs3(args)) + const $delete = pgDeleteSingle(pgResource_peoplePgResource, specFromArgs3(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2036,13 +1907,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_peoplePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_peoplePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2057,11 +1928,11 @@ export const plans = { }, deletePet: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_petsPgResource, specFromArgs4(args)) + const $delete = pgDeleteSingle(pgResource_petsPgResource, specFromArgs4(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2076,13 +1947,13 @@ export const plans = { }, deletePetById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_petsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_petsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2099,7 +1970,8 @@ export const plans = { CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -2107,7 +1979,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2123,9 +1995,7 @@ export const plans = { return pgResource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2136,42 +2006,42 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePetPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, pet($object) { return $object.get("result"); @@ -2187,49 +2057,50 @@ export const plans = { }, CreatePetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, pet: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PetInput: { - "__inputPlan": function PetInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ownerId: { - applyPlan($insert, val) { - $insert.set("owner_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("owner_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -2237,7 +2108,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2253,9 +2124,7 @@ export const plans = { return pgResource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2266,55 +2135,58 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, pet($object) { return $object.get("result"); @@ -2330,62 +2202,66 @@ export const plans = { }, UpdatePetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, petPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PetPatch: { - "__inputPlan": function PetPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ownerId: { - applyPlan($insert, val) { - $insert.set("owner_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("owner_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, petPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -2398,7 +2274,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2414,9 +2290,7 @@ export const plans = { return pgResource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2427,16 +2301,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -2444,7 +2318,8 @@ export const plans = { DeletePetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, pet($object) { return $object.get("result"); @@ -2465,16 +2340,16 @@ export const plans = { }, DeletePetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.only.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.only.1.export.mjs index 4a92a77fca..53545c2c04 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.only.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.only.1.export.mjs @@ -1,8 +1,7 @@ -import { PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ObjectStep, SafeError, __ValueStep, access, assertExecutableStep, constant, context, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ObjectStep, __ValueStep, access, assertExecutableStep, bakedInput, bakedInputRuntime, constant, context, createObjectAndApplyChildren, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -434,7 +436,7 @@ const registryConfig_pgCodecs_SearchTestSummariesRecord_SearchTestSummariesRecor isAnonymous: true }); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -471,10 +473,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -514,8 +515,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -557,7 +557,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -603,10 +603,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -661,10 +660,9 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -710,10 +708,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -768,8 +765,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const issue756Identifier = sql.identifier("c", "issue756"); const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp", sql.identifier("c", "not_null_timestamp"), { description: undefined, @@ -785,7 +781,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -822,8 +818,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const compoundTypeIdentifier = sql.identifier("c", "compound_type"); const colorCodec = enumCodec({ name: "color", @@ -1359,7 +1354,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -1481,8 +1476,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -5404,6 +5398,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -5423,6 +5420,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -5443,6 +5443,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -5462,6 +5465,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -5481,6 +5487,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -5500,6 +5509,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -5519,6 +5531,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -5527,445 +5542,74 @@ const nodeIdHandlerByTypeName = { } } }; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple7 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; -const argDetailsSimple8 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple10 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -5978,236 +5622,21 @@ const argDetailsSimple10 = [{ required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple11 = []; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple12 = []; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; -const argDetailsSimple13 = []; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple14 = []; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -6226,52 +5655,9 @@ const argDetailsSimple15 = [{ required: true, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -6290,144 +5676,15 @@ const argDetailsSimple16 = [{ required: false, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple19 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -6464,104 +5721,18 @@ const argDetailsSimple19 = [{ required: true, fetcher: null }]; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple20 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -6580,150 +5751,21 @@ const argDetailsSimple21 = [{ required: true, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple22 = []; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; -const argDetailsSimple23 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -6736,52 +5778,9 @@ const argDetailsSimple24 = [{ required: true, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -6794,305 +5793,31 @@ const argDetailsSimple25 = [{ required: true, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; -const argDetailsSimple27 = []; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple28 = []; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -7167,347 +5892,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple32 = []; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple33 = []; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple35 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple36 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple37 = []; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -7526,52 +5950,9 @@ const argDetailsSimple38 = [{ required: false, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7590,52 +5971,9 @@ const argDetailsSimple39 = [{ required: false, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7654,52 +5992,9 @@ const argDetailsSimple40 = [{ required: false, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -7718,52 +6013,9 @@ const argDetailsSimple41 = [{ required: false, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple42 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7782,52 +6034,9 @@ const argDetailsSimple42 = [{ required: false, fetcher: null }]; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple43 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -7840,380 +6049,36 @@ const argDetailsSimple43 = [{ required: true, fetcher: null }]; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; -const argDetailsSimple48 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -8281,549 +6146,76 @@ const parseValueLiteral = (ast, variables) => { } }; const resource_frmcdc_postPgResource = registry.pgResources["frmcdc_post"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple53 = []; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple54 = []; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple55 = []; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple56 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -8836,190 +6228,18 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple66 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -9038,294 +6258,36 @@ const argDetailsSimple66 = [{ required: true, fetcher: null }]; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple67 = []; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple68 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple69 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple72 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -9362,156 +6324,27 @@ const argDetailsSimple72 = [{ required: true, fetcher: null }]; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9524,52 +6357,9 @@ const argDetailsSimple75 = [{ required: true, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9582,243 +6372,71 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple77 = []; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple78 = []; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -13418,72 +10036,71 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetofList: { plan($root, args, _info) { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13492,7 +10109,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13501,27 +10117,26 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, funcInOut($root, args, _info) { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneColList: { plan($root, args, _info) { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13530,7 +10145,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13539,31 +10153,30 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetofList: { plan($root, args, _info) { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13572,7 +10185,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13581,23 +10193,22 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQueryList: { plan($root, args, _info) { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13606,7 +10217,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13616,14 +10226,13 @@ export const plans = { }, funcReturnsTableMultiColList: { plan($root, args, _info) { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13632,7 +10241,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13642,14 +10250,13 @@ export const plans = { }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13658,7 +10265,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13667,31 +10273,30 @@ export const plans = { } }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQueryList: { plan($root, args, _info) { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13700,7 +10305,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13709,23 +10313,22 @@ export const plans = { } }, tableQuery($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetofList: { plan($root, args, _info) { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13734,7 +10337,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13744,14 +10346,13 @@ export const plans = { }, badlyBehavedFunctionList: { plan($root, args, _info) { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13760,7 +10361,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13769,19 +10369,18 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetofList: { plan($root, args, _info) { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13790,7 +10389,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13800,14 +10398,13 @@ export const plans = { }, tableSetQueryList: { plan($root, args, _info) { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13816,7 +10413,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13825,20 +10421,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -13846,14 +10438,13 @@ export const plans = { }, tableSetQueryPlpgsqlList: { plan($root, args, _info) { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13862,7 +10453,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13871,31 +10461,31 @@ export const plans = { } }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, allMyTablesList: { @@ -13906,7 +10496,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13915,7 +10504,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13924,20 +10512,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -13951,7 +10535,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13960,7 +10543,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13969,20 +10551,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -13996,7 +10574,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14005,7 +10582,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14014,20 +10590,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -14041,7 +10613,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14050,7 +10621,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14059,20 +10629,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -14086,7 +10652,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14095,7 +10660,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14104,20 +10668,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -14131,7 +10691,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14140,7 +10699,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14149,20 +10707,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -14176,7 +10730,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14185,7 +10738,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14194,20 +10746,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -14221,7 +10769,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14230,7 +10777,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14239,20 +10785,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -14315,7 +10857,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs31(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14330,27 +10872,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -14359,7 +10895,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs32(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14374,27 +10910,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, - placeholder: $row.getClassStep().alias - }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) + ...rest, + placeholder: $row.getClassStep().alias }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -14403,7 +10933,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs33(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14418,27 +10948,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -14447,7 +10971,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs34(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14462,27 +10986,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -14491,7 +11009,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs35(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14506,27 +11024,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -14535,7 +11047,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs36(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14550,27 +11062,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -14579,7 +11085,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs37(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14594,27 +11100,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -14623,7 +11123,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs38(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14638,27 +11138,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -14667,7 +11161,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs39(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14682,27 +11176,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -14711,7 +11199,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs40(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14726,27 +11214,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -14755,7 +11237,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs41(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14770,27 +11252,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -14799,7 +11275,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs42(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14814,27 +11290,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -14843,7 +11313,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs43(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14858,27 +11328,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -14887,7 +11351,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs44(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14902,27 +11366,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -14931,7 +11389,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs45(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14946,27 +11404,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -14976,7 +11428,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs46(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14991,27 +11443,21 @@ export const plans = { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); @@ -15020,7 +11466,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15029,7 +11474,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15038,11 +11482,8 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } } @@ -15053,7 +11494,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs47(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -15068,27 +11509,21 @@ export const plans = { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); @@ -15097,7 +11532,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15106,7 +11540,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15118,7 +11551,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs48(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -15133,27 +11566,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -15162,7 +11589,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs49(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -15177,27 +11604,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -15261,7 +11682,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15270,7 +11690,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15279,20 +11698,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -15308,7 +11723,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15317,7 +11731,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15326,20 +11739,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -15414,7 +11823,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -15429,27 +11838,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -15640,26 +12043,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -15672,14 +12067,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -15692,14 +12087,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -15712,14 +12107,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -15732,19 +12127,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15753,19 +12146,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15774,11 +12165,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -15786,7 +12174,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15796,11 +12184,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -15808,7 +12193,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15818,11 +12203,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -15830,7 +12212,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15840,11 +12222,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -15852,7 +12231,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15862,11 +12241,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -15874,7 +12250,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15884,11 +12260,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -15896,7 +12269,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15906,11 +12279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -15918,7 +12288,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15928,11 +12298,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -15940,7 +12307,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15950,11 +12317,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -15962,7 +12326,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15972,11 +12336,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -15984,7 +12345,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15994,11 +12355,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -16006,7 +12364,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16016,11 +12374,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -16028,7 +12383,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16038,11 +12393,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -16050,7 +12402,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16060,11 +12412,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -16072,7 +12421,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16082,11 +12431,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -16094,7 +12440,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16104,11 +12450,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -16116,7 +12459,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16126,11 +12469,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -16138,7 +12478,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16148,11 +12488,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -16160,7 +12497,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16170,11 +12507,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -16182,7 +12516,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16192,11 +12526,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -16204,7 +12535,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16689,31 +13020,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16722,19 +13043,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16743,11 +13062,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -16755,7 +13071,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16765,11 +13081,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -16777,7 +13090,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16787,11 +13100,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -16799,7 +13109,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16809,11 +13119,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -16821,7 +13128,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16831,11 +13138,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -16843,7 +13147,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16853,11 +13157,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -16865,7 +13166,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16874,8 +13175,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -16888,17 +13189,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -16911,17 +13210,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -16934,13 +13231,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecord: { @@ -17139,8 +13434,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -17153,17 +13448,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -17176,17 +13469,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -17199,17 +13490,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -17222,17 +13511,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -17245,17 +13532,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -17268,17 +13553,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -17291,17 +13574,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -17314,17 +13595,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -17337,17 +13616,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -17360,17 +13637,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -17383,68 +13658,56 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17453,19 +13716,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17474,11 +13735,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -17486,7 +13744,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17496,11 +13754,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -17508,7 +13763,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17518,11 +13773,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -17530,7 +13782,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17540,11 +13792,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -17552,7 +13801,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17561,8 +13810,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -17575,17 +13824,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -17598,41 +13845,29 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17641,19 +13876,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17662,11 +13895,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -17674,7 +13904,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17684,11 +13914,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -17696,7 +13923,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17706,11 +13933,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -17718,7 +13942,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17728,11 +13952,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -17740,7 +13961,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17749,8 +13970,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -17763,17 +13984,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -17786,41 +14005,29 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17829,19 +14036,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17850,11 +14055,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -17862,7 +14064,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17872,11 +14074,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -17884,7 +14083,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17894,11 +14093,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -17906,7 +14102,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17916,11 +14112,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -17928,7 +14121,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17938,11 +14131,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -17950,7 +14140,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17960,11 +14150,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -17972,7 +14159,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17982,11 +14169,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -17994,7 +14178,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18004,11 +14188,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -18016,7 +14197,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18025,8 +14206,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -18039,17 +14220,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -18062,17 +14241,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -18085,17 +14262,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -18108,13 +14283,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCase: { @@ -18123,7 +14296,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -18138,27 +14311,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -18174,23 +14341,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -18198,7 +14354,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18208,11 +14364,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -18220,7 +14373,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18230,11 +14383,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -18242,7 +14392,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18252,11 +14402,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -18264,7 +14411,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18274,11 +14421,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -18286,7 +14430,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18296,11 +14440,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -18308,7 +14449,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18317,8 +14458,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -18331,17 +14472,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -18354,17 +14493,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -18377,41 +14514,29 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18420,19 +14545,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18441,11 +14564,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -18453,7 +14573,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18463,11 +14583,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -18475,7 +14592,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18485,11 +14602,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -18497,7 +14611,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18507,11 +14621,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -18519,7 +14630,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18529,11 +14640,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -18541,7 +14649,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18551,11 +14659,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -18563,7 +14668,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18573,11 +14678,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -18585,7 +14687,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18595,11 +14697,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -18607,7 +14706,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18616,8 +14715,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -18630,17 +14729,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -18653,17 +14750,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -18676,17 +14771,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -18699,41 +14792,29 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18742,19 +14823,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18763,11 +14842,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -18775,7 +14851,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18785,11 +14861,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -18797,7 +14870,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18807,11 +14880,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -18819,7 +14889,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18829,11 +14899,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -18841,7 +14908,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18850,8 +14917,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -18864,17 +14931,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -18887,20 +14952,18 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs52(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -18910,9 +14973,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -18920,7 +14992,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs53(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -18930,9 +15002,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -18940,7 +15021,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs54(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -18950,9 +15031,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -18960,7 +15050,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs55(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -18970,9 +15060,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -18980,7 +15079,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs56(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -18990,9 +15089,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19000,7 +15108,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs57(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19010,9 +15118,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19020,7 +15137,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs58(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19030,9 +15147,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19040,7 +15166,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs59(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19050,9 +15176,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19060,7 +15195,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs60(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19070,9 +15205,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19080,7 +15224,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs61(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19090,9 +15234,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19100,7 +15253,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs62(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19110,9 +15263,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19120,7 +15282,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs63(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19130,9 +15292,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19140,7 +15311,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs64(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19150,9 +15321,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19160,7 +15340,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs65(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19170,9 +15350,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19180,7 +15369,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs66(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19190,9 +15379,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19200,7 +15398,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs67(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19210,9 +15408,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19220,7 +15427,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs68(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19230,9 +15437,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19240,7 +15456,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs69(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19250,9 +15466,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19260,7 +15485,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs70(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19270,9 +15495,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19280,7 +15514,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs71(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19290,9 +15524,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19300,7 +15543,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs72(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19310,9 +15553,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19320,7 +15572,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs73(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19330,9 +15582,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19340,7 +15601,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs74(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19350,9 +15611,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19360,7 +15630,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs75(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19370,9 +15640,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19380,7 +15659,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs76(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19390,9 +15669,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19400,7 +15688,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs77(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19410,9 +15698,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19420,7 +15717,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs78(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19430,9 +15727,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19440,7 +15746,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs79(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -19450,9 +15756,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -19460,17 +15775,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -19480,17 +15795,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -19500,17 +15815,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -19520,17 +15835,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -19540,17 +15855,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -19560,17 +15875,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -19580,17 +15895,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -19600,17 +15915,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -19620,11 +15935,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19639,13 +15954,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19660,11 +15975,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19679,13 +15994,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19700,11 +16015,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19719,14 +16034,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19741,11 +16056,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19760,13 +16075,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19781,11 +16096,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19800,13 +16115,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19821,13 +16136,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19842,11 +16157,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19861,13 +16176,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19882,11 +16197,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19901,13 +16216,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19922,13 +16237,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -19943,11 +16258,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -19962,13 +16277,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -19983,11 +16298,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20002,13 +16317,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20023,11 +16338,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20042,14 +16357,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20064,11 +16379,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20083,13 +16398,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20104,11 +16419,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20123,13 +16438,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20144,13 +16459,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20165,11 +16480,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs13(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs13(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20184,13 +16499,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20205,11 +16520,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs14(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs14(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20224,13 +16539,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20245,13 +16560,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -20268,7 +16583,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -20279,16 +16595,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -20299,16 +16615,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -20319,16 +16635,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -20339,16 +16655,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -20359,17 +16675,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -20380,17 +16696,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -20401,17 +16717,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -20422,17 +16738,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -20443,17 +16759,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -20464,17 +16780,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -20485,10 +16801,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -20496,7 +16811,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -20516,16 +16832,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -20545,16 +16861,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -20574,16 +16890,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -20594,10 +16910,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -20606,7 +16921,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -20629,16 +16945,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -20658,17 +16974,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -20684,50 +17000,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -20738,16 +17056,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -20758,16 +17076,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -20778,10 +17096,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -20793,7 +17110,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -20819,17 +17137,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -20840,17 +17158,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -20885,10 +17203,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -20896,7 +17213,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -20931,10 +17249,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -20942,7 +17259,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -20953,16 +17271,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -20973,16 +17291,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -20993,16 +17311,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -21013,42 +17331,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -21064,42 +17382,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -21120,49 +17438,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -21173,56 +17492,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -21233,49 +17554,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -21291,56 +17613,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -21351,42 +17675,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -21397,105 +17721,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -21506,55 +17839,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -21570,55 +17906,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -21639,63 +17978,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -21706,69 +18049,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -21784,83 +18132,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -21871,55 +18225,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -21930,132 +18287,145 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -22071,16 +18441,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -22088,7 +18458,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -22109,16 +18480,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -22126,7 +18497,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -22152,16 +18524,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -22170,7 +18542,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -22186,16 +18559,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -22203,7 +18576,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -22224,24 +18598,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -22249,7 +18623,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -22265,16 +18640,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -22282,7 +18657,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -22298,24 +18674,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.pets-simple.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.pets-simple.1.export.mjs index 8cab57f8f9..0973f9d420 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.pets-simple.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/simple-collections.pets-simple.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, TYPES, assertPgClassSingleStep, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -77,7 +79,7 @@ const executor = new PgExecutor({ } }); const peopleIdentifier = sql.identifier("simple_collections", "people"); -const spec_people = { +const peopleCodec = recordCodec({ name: "people", identifier: peopleIdentifier, attributes: { @@ -114,10 +116,9 @@ const spec_people = { } }, executor: executor -}; -const peopleCodec = recordCodec(spec_people); +}); const petsIdentifier = sql.identifier("simple_collections", "pets"); -const spec_pets = { +const petsCodec = recordCodec({ name: "pets", identifier: petsIdentifier, attributes: { @@ -163,8 +164,7 @@ const spec_pets = { } }, executor: executor -}; -const petsCodec = recordCodec(spec_pets); +}); const peopleUniques = [{ isPrimary: true, attributes: ["id"], @@ -334,6 +334,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_peoplePgResource.get(spec); }, @@ -353,6 +356,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_petsPgResource.get(spec); }, @@ -365,6 +371,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -395,80 +402,36 @@ const fetcher2 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Pet); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_people_odd_pets = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_people_odd_pets = (args, path = []) => argDetailsSimple_people_odd_pets.map(details => makeArg(path, args, details)); const resource_people_odd_petsPgResource = registry.pgResources["people_odd_pets"]; const getSelectPlanFromParentAndArgs = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs(args); + const extraSelectArgs = makeArgs_people_odd_pets(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -483,27 +446,21 @@ const getSelectPlanFromParentAndArgs = ($in, args, _info) => { if (resource_people_odd_petsPgResource.isUnique && !resource_people_odd_petsPgResource.codec.attributes && typeof resource_people_odd_petsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_people_odd_petsPgResource.codec, undefined)`${resource_people_odd_petsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_people_odd_petsPgResource.from, resource_people_odd_petsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_people_odd_petsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_people_odd_petsPgResource.execute(selectArgs); @@ -512,19 +469,19 @@ function CursorSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Pet, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Pet, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -1224,24 +1181,24 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, personById(_$root, args) { return pgResource_peoplePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, petById(_$root, args) { return pgResource_petsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, pet(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, allPeople: { @@ -1252,7 +1209,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1261,7 +1217,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1270,7 +1225,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1279,7 +1233,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1288,7 +1241,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1297,22 +1249,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -1326,7 +1274,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1335,7 +1282,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1344,7 +1290,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1353,7 +1298,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1362,7 +1306,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1371,22 +1314,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PetsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -1413,7 +1352,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1422,7 +1360,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -1431,7 +1368,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1440,7 +1376,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -1449,7 +1384,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -1473,7 +1407,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -1482,7 +1415,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -1491,20 +1423,16 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $select, val, info) { - const $value = val.getRaw(); - applyOrderToPlan($select, $value, info.schema.getType("PetsOrderBy")); - return null; + applyPlan(parent, $select, value) { + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $select) { - return $select.wherePlan(); + applyPlan(_condition, $select, arg) { + arg.apply($select, qbWhereBuilder); } } } @@ -1583,31 +1511,21 @@ export const plans = { } }, PetsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { petsUniques[0].attributes.forEach(attributeName => { - const attribute = petsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1616,19 +1534,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { petsUniques[0].attributes.forEach(attributeName => { - const attribute = petsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1637,11 +1553,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -1649,7 +1562,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1659,11 +1572,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -1671,7 +1581,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1681,11 +1591,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "owner_id", direction: "ASC", ...(undefined != null ? { @@ -1693,7 +1600,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1703,11 +1610,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "owner_id", direction: "DESC", ...(undefined != null ? { @@ -1715,7 +1619,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1725,11 +1629,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -1737,7 +1638,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1747,11 +1648,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -1759,7 +1657,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1768,8 +1666,8 @@ export const plans = { }, PetCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -1782,17 +1680,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_pets.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ownerId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "owner_id", @@ -1805,17 +1701,15 @@ export const plans = { type: "attribute", attribute: "owner_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_pets.attributes.owner_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -1828,13 +1722,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_pets.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -1863,31 +1755,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1896,19 +1778,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1917,11 +1797,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -1929,7 +1806,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1939,11 +1816,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -1951,7 +1825,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1961,11 +1835,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -1973,7 +1844,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -1983,11 +1854,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -1995,7 +1863,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -2004,8 +1872,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -2018,17 +1886,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -2041,30 +1907,28 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_peoplePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_peoplePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -2074,17 +1938,17 @@ export const plans = { }, createPet: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_petsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_petsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -2094,11 +1958,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_peoplePgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_peoplePgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2113,13 +1977,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_peoplePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_peoplePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2134,11 +1998,11 @@ export const plans = { }, updatePet: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_petsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_petsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2153,13 +2017,13 @@ export const plans = { }, updatePetById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_petsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_petsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -2174,11 +2038,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_peoplePgResource, specFromArgs3(args)) + const $delete = pgDeleteSingle(pgResource_peoplePgResource, specFromArgs3(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2193,13 +2057,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_peoplePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_peoplePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2214,11 +2078,11 @@ export const plans = { }, deletePet: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_petsPgResource, specFromArgs4(args)) + const $delete = pgDeleteSingle(pgResource_petsPgResource, specFromArgs4(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2233,13 +2097,13 @@ export const plans = { }, deletePetById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_petsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_petsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -2256,7 +2120,8 @@ export const plans = { CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -2264,7 +2129,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2280,9 +2145,7 @@ export const plans = { return pgResource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2293,42 +2156,42 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePetPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, pet($object) { return $object.get("result"); @@ -2336,7 +2199,7 @@ export const plans = { query() { return rootValue(); }, - petEdge($mutation, args, info) { + petEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2352,9 +2215,7 @@ export const plans = { return pgResource_petsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2370,49 +2231,50 @@ export const plans = { }, CreatePetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, pet: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PetInput: { - "__inputPlan": function PetInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ownerId: { - applyPlan($insert, val) { - $insert.set("owner_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("owner_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -2420,7 +2282,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2436,9 +2298,7 @@ export const plans = { return pgResource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2449,55 +2309,58 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, pet($object) { return $object.get("result"); @@ -2505,7 +2368,7 @@ export const plans = { query() { return rootValue(); }, - petEdge($mutation, args, info) { + petEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2521,9 +2384,7 @@ export const plans = { return pgResource_petsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2539,62 +2400,66 @@ export const plans = { }, UpdatePetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, petPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PetPatch: { - "__inputPlan": function PetPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ownerId: { - applyPlan($insert, val) { - $insert.set("owner_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("owner_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, petPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -2607,7 +2472,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2623,9 +2488,7 @@ export const plans = { return pgResource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2636,16 +2499,16 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -2653,7 +2516,8 @@ export const plans = { DeletePetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, pet($object) { return $object.get("result"); @@ -2666,7 +2530,7 @@ export const plans = { query() { return rootValue(); }, - petEdge($mutation, args, info) { + petEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -2682,9 +2546,7 @@ export const plans = { return pgResource_petsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -2700,16 +2562,16 @@ export const plans = { }, DeletePetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/simplePrint.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/simplePrint.export.mjs index 6973f3f790..fd9b387a75 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/simplePrint.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/simplePrint.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -478,7 +480,7 @@ const textArrayCodec = listOfCodec(TYPES.text, { name: "textArray" }); const nonUpdatableViewIdentifier = sql.identifier("a", "non_updatable_view"); -const spec_nonUpdatableView = { +const nonUpdatableViewCodec = recordCodec({ name: "nonUpdatableView", identifier: nonUpdatableViewIdentifier, attributes: { @@ -506,10 +508,9 @@ const spec_nonUpdatableView = { } }, executor: executor -}; -const nonUpdatableViewCodec = recordCodec(spec_nonUpdatableView); +}); const inputsIdentifier = sql.identifier("a", "inputs"); -const spec_inputs = { +const inputsCodec = recordCodec({ name: "inputs", identifier: inputsIdentifier, attributes: { @@ -537,10 +538,9 @@ const spec_inputs = { } }, executor: executor -}; -const inputsCodec = recordCodec(spec_inputs); +}); const patchsIdentifier = sql.identifier("a", "patchs"); -const spec_patchs = { +const patchsCodec = recordCodec({ name: "patchs", identifier: patchsIdentifier, attributes: { @@ -568,10 +568,9 @@ const spec_patchs = { } }, executor: executor -}; -const patchsCodec = recordCodec(spec_patchs); +}); const reservedIdentifier = sql.identifier("a", "reserved"); -const spec_reserved = { +const reservedCodec = recordCodec({ name: "reserved", identifier: reservedIdentifier, attributes: { @@ -599,10 +598,9 @@ const spec_reserved = { } }, executor: executor -}; -const reservedCodec = recordCodec(spec_reserved); +}); const reservedPatchsIdentifier = sql.identifier("a", "reservedPatchs"); -const spec_reservedPatchs = { +const reservedPatchsCodec = recordCodec({ name: "reservedPatchs", identifier: reservedPatchsIdentifier, attributes: { @@ -630,10 +628,9 @@ const spec_reservedPatchs = { } }, executor: executor -}; -const reservedPatchsCodec = recordCodec(spec_reservedPatchs); +}); const reservedInputIdentifier = sql.identifier("a", "reserved_input"); -const spec_reservedInput = { +const reservedInputCodec = recordCodec({ name: "reservedInput", identifier: reservedInputIdentifier, attributes: { @@ -661,10 +658,9 @@ const spec_reservedInput = { } }, executor: executor -}; -const reservedInputCodec = recordCodec(spec_reservedInput); +}); const defaultValueIdentifier = sql.identifier("a", "default_value"); -const spec_defaultValue = { +const defaultValueCodec = recordCodec({ name: "defaultValue", identifier: defaultValueIdentifier, attributes: { @@ -701,10 +697,9 @@ const spec_defaultValue = { } }, executor: executor -}; -const defaultValueCodec = recordCodec(spec_defaultValue); +}); const foreignKeyIdentifier = sql.identifier("a", "foreign_key"); -const spec_foreignKey = { +const foreignKeyCodec = recordCodec({ name: "foreignKey", identifier: foreignKeyIdentifier, attributes: { @@ -750,10 +745,9 @@ const spec_foreignKey = { } }, executor: executor -}; -const foreignKeyCodec = recordCodec(spec_foreignKey); +}); const noPrimaryKeyIdentifier = sql.identifier("a", "no_primary_key"); -const spec_noPrimaryKey = { +const noPrimaryKeyCodec = recordCodec({ name: "noPrimaryKey", identifier: noPrimaryKeyIdentifier, attributes: { @@ -790,10 +784,9 @@ const spec_noPrimaryKey = { } }, executor: executor -}; -const noPrimaryKeyCodec = recordCodec(spec_noPrimaryKey); +}); const testviewIdentifier = sql.identifier("a", "testview"); -const spec_testview = { +const testviewCodec = recordCodec({ name: "testview", identifier: testviewIdentifier, attributes: { @@ -839,8 +832,7 @@ const spec_testview = { } }, executor: executor -}; -const testviewCodec = recordCodec(spec_testview); +}); const uniqueForeignKeyIdentifier = sql.identifier("a", "unique_foreign_key"); const spec_uniqueForeignKey = { name: "uniqueForeignKey", @@ -884,7 +876,7 @@ const spec_uniqueForeignKey = { }; const uniqueForeignKeyCodec = recordCodec(spec_uniqueForeignKey); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -921,10 +913,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -964,8 +955,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -1007,7 +997,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const viewTableIdentifier = sql.identifier("a", "view_table"); -const spec_viewTable = { +const viewTableCodec = recordCodec({ name: "viewTable", identifier: viewTableIdentifier, attributes: { @@ -1053,10 +1043,9 @@ const spec_viewTable = { } }, executor: executor -}; -const viewTableCodec = recordCodec(spec_viewTable); +}); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -1102,10 +1091,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const similarTable1Identifier = sql.identifier("a", "similar_table_1"); -const spec_similarTable1 = { +const similarTable1Codec = recordCodec({ name: "similarTable1", identifier: similarTable1Identifier, attributes: { @@ -1160,10 +1148,9 @@ const spec_similarTable1 = { } }, executor: executor -}; -const similarTable1Codec = recordCodec(spec_similarTable1); +}); const similarTable2Identifier = sql.identifier("a", "similar_table_2"); -const spec_similarTable2 = { +const similarTable2Codec = recordCodec({ name: "similarTable2", identifier: similarTable2Identifier, attributes: { @@ -1218,10 +1205,9 @@ const spec_similarTable2 = { } }, executor: executor -}; -const similarTable2Codec = recordCodec(spec_similarTable2); +}); const updatableViewIdentifier = sql.identifier("b", "updatable_view"); -const spec_updatableView = { +const updatableViewCodec = recordCodec({ name: "updatableView", identifier: updatableViewIdentifier, attributes: { @@ -1278,10 +1264,9 @@ const spec_updatableView = { } }, executor: executor -}; -const updatableViewCodec = recordCodec(spec_updatableView); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -1336,8 +1321,7 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const uuidArrayCodec = listOfCodec(TYPES.uuid, { extensions: { pg: { @@ -1354,7 +1338,7 @@ const uuidArrayCodec = listOfCodec(TYPES.uuid, { name: "uuidArray" }); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -1400,10 +1384,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -1458,8 +1441,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const jwtTokenIdentifier = sql.identifier("b", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -1541,7 +1523,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -1578,8 +1560,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const authPayloadIdentifier = sql.identifier("b", "auth_payload"); const authPayloadCodec = recordCodec({ name: "authPayload", @@ -1917,7 +1898,7 @@ const comptypeArrayCodec = listOfCodec(comptypeCodec, { description: undefined, name: "comptypeArray" }); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -1990,8 +1971,7 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const registryConfig_pgCodecs_QueryOutputTwoRowsRecord_QueryOutputTwoRowsRecord = recordCodec({ name: "QueryOutputTwoRowsRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2151,7 +2131,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -2273,8 +2253,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2592,7 +2571,7 @@ const byteaArrayCodec = listOfCodec(TYPES.bytea, { description: undefined, name: "byteaArray" }); -const spec_lists = { +const listsCodec = recordCodec({ name: "lists", identifier: listsIdentifier, attributes: { @@ -2728,8 +2707,7 @@ const spec_lists = { } }, executor: executor -}; -const listsCodec = recordCodec(spec_lists); +}); const typesIdentifier = sql.identifier("b", "types"); const anIntCodec = domainOfCodec(TYPES.int, "anInt", sql.identifier("a", "an_int"), { description: undefined, @@ -9193,6 +9171,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_inputsPgResource.get(spec); }, @@ -9212,6 +9193,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_patchsPgResource.get(spec); }, @@ -9231,6 +9215,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPgResource.get(spec); }, @@ -9250,6 +9237,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reservedPatchsPgResource.get(spec); }, @@ -9269,6 +9259,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_reserved_inputPgResource.get(spec); }, @@ -9288,6 +9281,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_default_valuePgResource.get(spec); }, @@ -9307,6 +9303,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_my_tablePgResource.get(spec); }, @@ -9326,6 +9325,9 @@ const nodeIdHandlerByTypeName = { person_id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_person_secretPgResource.get(spec); }, @@ -9345,6 +9347,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_view_tablePgResource.get(spec); }, @@ -9365,6 +9370,9 @@ const nodeIdHandlerByTypeName = { person_id_2: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_compound_keyPgResource.get(spec); }, @@ -9384,6 +9392,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_1PgResource.get(spec); }, @@ -9403,6 +9414,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_similar_table_2PgResource.get(spec); }, @@ -9422,6 +9436,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_null_test_recordPgResource.get(spec); }, @@ -9441,6 +9458,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_left_armPgResource.get(spec); }, @@ -9460,6 +9480,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_issue756PgResource.get(spec); }, @@ -9479,6 +9502,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postPgResource.get(spec); }, @@ -9498,6 +9524,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_personPgResource.get(spec); }, @@ -9517,6 +9546,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_listsPgResource.get(spec); }, @@ -9536,6 +9568,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_typesPgResource.get(spec); }, @@ -9546,553 +9581,96 @@ const nodeIdHandlerByTypeName = { }; const resource_no_primary_keyPgResource = registry.pgResources["no_primary_key"]; const resource_unique_foreign_keyPgResource = registry.pgResources["unique_foreign_key"]; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_query_interval_set = []; +const makeArgs_query_interval_set = (args, path = []) => argDetailsSimple_query_interval_set.map(details => makeArg(path, args, details)); const resource_query_interval_setPgResource = registry.pgResources["query_interval_set"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_query_interval_set(args); return resource_query_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple7 = []; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 argDetailsSimple_static_big_integer = []; +const makeArgs_static_big_integer = (args, path = []) => argDetailsSimple_static_big_integer.map(details => makeArg(path, args, details)); const resource_static_big_integerPgResource = registry.pgResources["static_big_integer"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_static_big_integer(args); return resource_static_big_integerPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple10 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple11 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple12 = [{ +const argDetailsSimple_add_1_query = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -10105,52 +9683,9 @@ const argDetailsSimple12 = [{ required: true, fetcher: null }]; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_query = (args, path = []) => argDetailsSimple_add_1_query.map(details => makeArg(path, args, details)); const resource_add_1_queryPgResource = registry.pgResources["add_1_query"]; -const argDetailsSimple13 = [{ +const argDetailsSimple_add_2_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10163,52 +9698,9 @@ const argDetailsSimple13 = [{ required: false, fetcher: null }]; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 makeArgs_add_2_query = (args, path = []) => argDetailsSimple_add_2_query.map(details => makeArg(path, args, details)); const resource_add_2_queryPgResource = registry.pgResources["add_2_query"]; -const argDetailsSimple14 = [{ +const argDetailsSimple_add_3_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10221,52 +9713,9 @@ const argDetailsSimple14 = [{ required: true, fetcher: null }]; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_query = (args, path = []) => argDetailsSimple_add_3_query.map(details => makeArg(path, args, details)); const resource_add_3_queryPgResource = registry.pgResources["add_3_query"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_add_4_query = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10279,52 +9728,9 @@ const argDetailsSimple15 = [{ required: false, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_query = (args, path = []) => argDetailsSimple_add_4_query.map(details => makeArg(path, args, details)); const resource_add_4_queryPgResource = registry.pgResources["add_4_query"]; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -10337,240 +9743,25 @@ const argDetailsSimple16 = [{ required: true, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple19 = []; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple20 = []; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10589,52 +9780,9 @@ const argDetailsSimple21 = [{ required: false, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_1PgResource = registry.pgResources["optional_missing_middle_1"]; -const argDetailsSimple22 = [{ +const argDetailsSimple_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10653,52 +9801,9 @@ const argDetailsSimple22 = [{ required: false, fetcher: null }]; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 makeArgs_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_2PgResource = registry.pgResources["optional_missing_middle_2"]; -const argDetailsSimple23 = [{ +const argDetailsSimple_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10717,52 +9822,9 @@ const argDetailsSimple23 = [{ required: false, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_3PgResource = registry.pgResources["optional_missing_middle_3"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10781,52 +9843,9 @@ const argDetailsSimple24 = [{ required: false, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_4PgResource = registry.pgResources["optional_missing_middle_4"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10845,98 +9864,12 @@ const argDetailsSimple25 = [{ required: false, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_5PgResource = registry.pgResources["optional_missing_middle_5"]; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple27 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -10955,56 +9888,13 @@ const argDetailsSimple27 = [{ required: true, fetcher: null }]; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple28 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -11023,194 +9913,22 @@ const argDetailsSimple28 = [{ required: false, fetcher: null }]; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_query_interval_array = []; +const makeArgs_query_interval_array = (args, path = []) => argDetailsSimple_query_interval_array.map(details => makeArg(path, args, details)); const resource_query_interval_arrayPgResource = registry.pgResources["query_interval_array"]; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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 argDetailsSimple_query_text_array = []; +const makeArgs_query_text_array = (args, path = []) => argDetailsSimple_query_text_array.map(details => makeArg(path, args, details)); const resource_query_text_arrayPgResource = registry.pgResources["query_text_array"]; -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple32 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -11247,104 +9965,18 @@ const argDetailsSimple32 = [{ required: true, fetcher: null }]; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple33 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -11363,310 +9995,52 @@ const argDetailsSimple34 = [{ required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple35 = []; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs35(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple36 = [{ +const argDetailsSimple_compound_type_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_compound_type_query = (args, path = []) => argDetailsSimple_compound_type_query.map(details => makeArg(path, args, details)); const resource_compound_type_queryPgResource = registry.pgResources["compound_type_query"]; -const argDetailsSimple37 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_query_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[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 makeArgs_query_compound_type_array = (args, path = []) => argDetailsSimple_query_compound_type_array.map(details => makeArg(path, args, details)); const resource_query_compound_type_arrayPgResource = registry.pgResources["query_compound_type_array"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_compound_type_array_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_compound_type_array_query = (args, path = []) => argDetailsSimple_compound_type_array_query.map(details => makeArg(path, args, details)); const resource_compound_type_array_queryPgResource = registry.pgResources["compound_type_array_query"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11679,52 +10053,9 @@ const argDetailsSimple40 = [{ required: true, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11737,473 +10068,70 @@ const argDetailsSimple41 = [{ required: true, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs41(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple42 = []; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs42(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple43 = []; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs44(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs12 = ($root, args, _info) => { - const selectArgs = makeArgs45(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs13 = ($root, args, _info) => { - const selectArgs = makeArgs46(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_type_function_connection = []; +const makeArgs_type_function_connection = (args, path = []) => argDetailsSimple_type_function_connection.map(details => makeArg(path, args, details)); const resource_type_function_connectionPgResource = registry.pgResources["type_function_connection"]; const getSelectPlanFromParentAndArgs14 = ($root, args, _info) => { - const selectArgs = makeArgs47(args); + const selectArgs = makeArgs_type_function_connection(args); return resource_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_type_function = (args, path = []) => argDetailsSimple_type_function.map(details => makeArg(path, args, details)); const resource_type_functionPgResource = registry.pgResources["type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_type_function_list = []; +const makeArgs_type_function_list = (args, path = []) => argDetailsSimple_type_function_list.map(details => makeArg(path, args, details)); const resource_type_function_listPgResource = registry.pgResources["type_function_list"]; function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -12378,347 +10306,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple53 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple54 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple55 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple56 = []; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12737,52 +10364,9 @@ const argDetailsSimple57 = [{ required: false, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12801,52 +10385,9 @@ const argDetailsSimple58 = [{ required: false, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12865,52 +10406,9 @@ const argDetailsSimple59 = [{ required: false, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12929,52 +10427,9 @@ const argDetailsSimple60 = [{ required: false, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12993,52 +10448,9 @@ const argDetailsSimple61 = [{ required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -13051,194 +10463,22 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs65(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13253,82 +10493,33 @@ const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple66 = []; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs66(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13343,176 +10534,41 @@ const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple67 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple68 = []; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple69 = []; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -13523,57 +10579,14 @@ const coerce = string => { } return string; }; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_post_computed_interval_set = []; +const makeArgs_post_computed_interval_set = (args, path = []) => argDetailsSimple_post_computed_interval_set.map(details => makeArg(path, args, details)); const resource_post_computed_interval_setPgResource = registry.pgResources["post_computed_interval_set"]; const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs70(args); + const extraSelectArgs = makeArgs_post_computed_interval_set(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13588,228 +10601,50 @@ const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (resource_post_computed_interval_setPgResource.isUnique && !resource_post_computed_interval_setPgResource.codec.attributes && typeof resource_post_computed_interval_setPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${resource_post_computed_interval_setPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_setPgResource.from, resource_post_computed_interval_setPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_post_computed_interval_array = []; +const makeArgs_post_computed_interval_array = (args, path = []) => argDetailsSimple_post_computed_interval_array.map(details => makeArg(path, args, details)); const resource_post_computed_interval_arrayPgResource = registry.pgResources["post_computed_interval_array"]; -const argDetailsSimple72 = []; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 argDetailsSimple_post_computed_text_array = []; +const makeArgs_post_computed_text_array = (args, path = []) => argDetailsSimple_post_computed_text_array.map(details => makeArg(path, args, details)); const resource_post_computed_text_arrayPgResource = registry.pgResources["post_computed_text_array"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_post_computed_with_optional_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: false, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_post_computed_with_optional_arg = (args, path = []) => argDetailsSimple_post_computed_with_optional_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_optional_argPgResource = registry.pgResources["post_computed_with_optional_arg"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_post_computed_with_required_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_post_computed_with_required_arg = (args, path = []) => argDetailsSimple_post_computed_with_required_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_required_argPgResource = registry.pgResources["post_computed_with_required_arg"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_post_headline_trimmed = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13822,52 +10657,9 @@ const argDetailsSimple75 = [{ required: false, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_post_headline_trimmed = (args, path = []) => argDetailsSimple_post_headline_trimmed.map(details => makeArg(path, args, details)); const resource_post_headline_trimmedPgResource = registry.pgResources["post_headline_trimmed"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_post_headline_trimmed_no_defaults = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13880,52 +10672,9 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_post_headline_trimmed_no_defaults = (args, path = []) => argDetailsSimple_post_headline_trimmed_no_defaults.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_no_defaultsPgResource = registry.pgResources["post_headline_trimmed_no_defaults"]; -const argDetailsSimple77 = [{ +const argDetailsSimple_post_headline_trimmed_strict = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13938,102 +10687,16 @@ const argDetailsSimple77 = [{ required: false, fetcher: null }]; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 makeArgs_post_headline_trimmed_strict = (args, path = []) => argDetailsSimple_post_headline_trimmed_strict.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_strictPgResource = registry.pgResources["post_headline_trimmed_strict"]; -const argDetailsSimple78 = [{ +const argDetailsSimple_post_computed_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 makeArgs_post_computed_compound_type_array = (args, path = []) => argDetailsSimple_post_computed_compound_type_array.map(details => makeArg(path, args, details)); const resource_post_computed_compound_type_arrayPgResource = registry.pgResources["post_computed_compound_type_array"]; const resource_frmcdc_comptypePgResource = registry.pgResources["frmcdc_comptype"]; const resource_frmcdc_nestedCompoundTypePgResource = registry.pgResources["frmcdc_nestedCompoundType"]; @@ -14091,641 +10754,82 @@ const parseValueLiteral = (ast, variables) => { return undefined; } }; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple80 = []; -const makeArgs80 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple80[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple81 = []; -const makeArgs81 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple81[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple82 = []; -const makeArgs82 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple82[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple83 = []; -const makeArgs83 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple83[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple84 = []; -const makeArgs84 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple84[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 argDetailsSimple_return_void_mutation = []; +const makeArgs_return_void_mutation = (args, path = []) => argDetailsSimple_return_void_mutation.map(details => makeArg(path, args, details)); const resource_return_void_mutationPgResource = registry.pgResources["return_void_mutation"]; -const argDetailsSimple85 = []; -const makeArgs85 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple85[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 argDetailsSimple_mutation_interval_set = []; +const makeArgs_mutation_interval_set = (args, path = []) => argDetailsSimple_mutation_interval_set.map(details => makeArg(path, args, details)); const resource_mutation_interval_setPgResource = registry.pgResources["mutation_interval_set"]; -const argDetailsSimple86 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs86 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple86[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple87 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs87 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple87[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple88 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs88 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple88[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple89 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs89 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple89[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple90 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs90 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple90[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple91 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs91 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple91[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple92 = [{ +const argDetailsSimple_add_1_mutation = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14738,52 +10842,9 @@ const argDetailsSimple92 = [{ required: true, fetcher: null }]; -const makeArgs92 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple92[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_mutation = (args, path = []) => argDetailsSimple_add_1_mutation.map(details => makeArg(path, args, details)); const resource_add_1_mutationPgResource = registry.pgResources["add_1_mutation"]; -const argDetailsSimple93 = [{ +const argDetailsSimple_add_2_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14796,52 +10857,9 @@ const argDetailsSimple93 = [{ required: false, fetcher: null }]; -const makeArgs93 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple93[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 makeArgs_add_2_mutation = (args, path = []) => argDetailsSimple_add_2_mutation.map(details => makeArg(path, args, details)); const resource_add_2_mutationPgResource = registry.pgResources["add_2_mutation"]; -const argDetailsSimple94 = [{ +const argDetailsSimple_add_3_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14854,52 +10872,9 @@ const argDetailsSimple94 = [{ required: true, fetcher: null }]; -const makeArgs94 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple94[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_mutation = (args, path = []) => argDetailsSimple_add_3_mutation.map(details => makeArg(path, args, details)); const resource_add_3_mutationPgResource = registry.pgResources["add_3_mutation"]; -const argDetailsSimple95 = [{ +const argDetailsSimple_add_4_mutation = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14912,52 +10887,9 @@ const argDetailsSimple95 = [{ required: false, fetcher: null }]; -const makeArgs95 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple95[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation = (args, path = []) => argDetailsSimple_add_4_mutation.map(details => makeArg(path, args, details)); const resource_add_4_mutationPgResource = registry.pgResources["add_4_mutation"]; -const argDetailsSimple96 = [{ +const argDetailsSimple_add_4_mutation_error = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14970,52 +10902,9 @@ const argDetailsSimple96 = [{ required: false, fetcher: null }]; -const makeArgs96 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple96[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation_error = (args, path = []) => argDetailsSimple_add_4_mutation_error.map(details => makeArg(path, args, details)); const resource_add_4_mutation_errorPgResource = registry.pgResources["add_4_mutation_error"]; -const argDetailsSimple97 = [{ +const argDetailsSimple_mult_1 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15028,52 +10917,9 @@ const argDetailsSimple97 = [{ required: true, fetcher: null }]; -const makeArgs97 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple97[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_1 = (args, path = []) => argDetailsSimple_mult_1.map(details => makeArg(path, args, details)); const resource_mult_1PgResource = registry.pgResources["mult_1"]; -const argDetailsSimple98 = [{ +const argDetailsSimple_mult_2 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15086,52 +10932,9 @@ const argDetailsSimple98 = [{ required: true, fetcher: null }]; -const makeArgs98 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple98[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_2 = (args, path = []) => argDetailsSimple_mult_2.map(details => makeArg(path, args, details)); const resource_mult_2PgResource = registry.pgResources["mult_2"]; -const argDetailsSimple99 = [{ +const argDetailsSimple_mult_3 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15144,52 +10947,9 @@ const argDetailsSimple99 = [{ required: true, fetcher: null }]; -const makeArgs99 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple99[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_3 = (args, path = []) => argDetailsSimple_mult_3.map(details => makeArg(path, args, details)); const resource_mult_3PgResource = registry.pgResources["mult_3"]; -const argDetailsSimple100 = [{ +const argDetailsSimple_mult_4 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -15202,52 +10962,9 @@ const argDetailsSimple100 = [{ required: true, fetcher: null }]; -const makeArgs100 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple100[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_4 = (args, path = []) => argDetailsSimple_mult_4.map(details => makeArg(path, args, details)); const resource_mult_4PgResource = registry.pgResources["mult_4"]; -const argDetailsSimple101 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -15260,190 +10977,18 @@ const argDetailsSimple101 = [{ required: true, fetcher: null }]; -const makeArgs101 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple101[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple102 = []; -const makeArgs102 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple102[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple103 = []; -const makeArgs103 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple103[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple104 = []; -const makeArgs104 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple104[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple105 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -15462,294 +11007,36 @@ const argDetailsSimple105 = [{ required: true, fetcher: null }]; -const makeArgs105 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple105[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple106 = []; -const makeArgs106 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple106[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple107 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs107 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple107[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple108 = [{ +const argDetailsSimple_guid_fn = [{ graphqlArgName: "g", postgresArgName: "g", pgCodec: guidCodec, required: true, fetcher: null }]; -const makeArgs108 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple108[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 makeArgs_guid_fn = (args, path = []) => argDetailsSimple_guid_fn.map(details => makeArg(path, args, details)); const resource_guid_fnPgResource = registry.pgResources["guid_fn"]; -const argDetailsSimple109 = []; -const makeArgs109 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple109[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 argDetailsSimple_mutation_interval_array = []; +const makeArgs_mutation_interval_array = (args, path = []) => argDetailsSimple_mutation_interval_array.map(details => makeArg(path, args, details)); const resource_mutation_interval_arrayPgResource = registry.pgResources["mutation_interval_array"]; -const argDetailsSimple110 = []; -const makeArgs110 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple110[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 argDetailsSimple_mutation_text_array = []; +const makeArgs_mutation_text_array = (args, path = []) => argDetailsSimple_mutation_text_array.map(details => makeArg(path, args, details)); const resource_mutation_text_arrayPgResource = registry.pgResources["mutation_text_array"]; -const argDetailsSimple111 = [{ +const argDetailsSimple_list_bde_mutation = [{ graphqlArgName: "b", postgresArgName: "b", pgCodec: textArrayCodec, @@ -15768,98 +11055,12 @@ const argDetailsSimple111 = [{ required: true, fetcher: null }]; -const makeArgs111 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple111[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 makeArgs_list_bde_mutation = (args, path = []) => argDetailsSimple_list_bde_mutation.map(details => makeArg(path, args, details)); const resource_list_bde_mutationPgResource = registry.pgResources["list_bde_mutation"]; -const argDetailsSimple112 = []; -const makeArgs112 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple112[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 argDetailsSimple_authenticate_fail = []; +const makeArgs_authenticate_fail = (args, path = []) => argDetailsSimple_authenticate_fail.map(details => makeArg(path, args, details)); const resource_authenticate_failPgResource = registry.pgResources["authenticate_fail"]; -const argDetailsSimple113 = [{ +const argDetailsSimple_authenticate = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15878,196 +11079,24 @@ const argDetailsSimple113 = [{ required: true, fetcher: null }]; -const makeArgs113 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple113[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 makeArgs_authenticate = (args, path = []) => argDetailsSimple_authenticate.map(details => makeArg(path, args, details)); const resource_authenticatePgResource = registry.pgResources["authenticate"]; -const argDetailsSimple114 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs114 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple114[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple115 = []; -const makeArgs115 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple115[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple116 = []; -const makeArgs116 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple116[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple117 = [{ +const argDetailsSimple_authenticate_many = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16086,52 +11115,9 @@ const argDetailsSimple117 = [{ required: true, fetcher: null }]; -const makeArgs117 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple117[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 makeArgs_authenticate_many = (args, path = []) => argDetailsSimple_authenticate_many.map(details => makeArg(path, args, details)); const resource_authenticate_manyPgResource = registry.pgResources["authenticate_many"]; -const argDetailsSimple118 = [{ +const argDetailsSimple_authenticate_payload = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16150,52 +11136,9 @@ const argDetailsSimple118 = [{ required: true, fetcher: null }]; -const makeArgs118 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple118[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 makeArgs_authenticate_payload = (args, path = []) => argDetailsSimple_authenticate_payload.map(details => makeArg(path, args, details)); const resource_authenticate_payloadPgResource = registry.pgResources["authenticate_payload"]; -const argDetailsSimple119 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -16232,260 +11175,45 @@ const argDetailsSimple119 = [{ required: true, fetcher: null }]; -const makeArgs119 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple119[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple120 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs120 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple120[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple121 = [{ +const argDetailsSimple_compound_type_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs121 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple121[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 makeArgs_compound_type_mutation = (args, path = []) => argDetailsSimple_compound_type_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_mutationPgResource = registry.pgResources["compound_type_mutation"]; -const argDetailsSimple122 = [{ +const argDetailsSimple_compound_type_set_mutation = [{ 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 makeArgs_compound_type_set_mutation = (args, path = []) => argDetailsSimple_compound_type_set_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_set_mutationPgResource = registry.pgResources["compound_type_set_mutation"]; -const argDetailsSimple123 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, 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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple124 = [{ +const argDetailsSimple_post_with_suffix = [{ graphqlArgName: "post", postgresArgName: "post", pgCodec: postCodec, @@ -16498,208 +11226,36 @@ const argDetailsSimple124 = [{ required: true, fetcher: null }]; -const makeArgs124 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple124[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 makeArgs_post_with_suffix = (args, path = []) => argDetailsSimple_post_with_suffix.map(details => makeArg(path, args, details)); const resource_post_with_suffixPgResource = registry.pgResources["post_with_suffix"]; -const argDetailsSimple125 = [{ +const argDetailsSimple_mutation_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs125 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple125[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 makeArgs_mutation_compound_type_array = (args, path = []) => argDetailsSimple_mutation_compound_type_array.map(details => makeArg(path, args, details)); const resource_mutation_compound_type_arrayPgResource = registry.pgResources["mutation_compound_type_array"]; -const argDetailsSimple126 = [{ +const argDetailsSimple_compound_type_array_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs126 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple126[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 makeArgs_compound_type_array_mutation = (args, path = []) => argDetailsSimple_compound_type_array_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_array_mutationPgResource = registry.pgResources["compound_type_array_mutation"]; -const argDetailsSimple127 = [{ +const argDetailsSimple_post_many = [{ graphqlArgName: "posts", postgresArgName: "posts", pgCodec: postArrayCodec, required: true, fetcher: null }]; -const makeArgs127 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple127[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 makeArgs_post_many = (args, path = []) => argDetailsSimple_post_many.map(details => makeArg(path, args, details)); const resource_post_manyPgResource = registry.pgResources["post_many"]; -const argDetailsSimple128 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16712,52 +11268,9 @@ const argDetailsSimple128 = [{ required: true, fetcher: null }]; -const makeArgs128 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple128[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple129 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16770,483 +11283,182 @@ const argDetailsSimple129 = [{ required: true, fetcher: null }]; -const makeArgs129 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple129[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple130 = []; -const makeArgs130 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple130[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple131 = []; -const makeArgs131 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple131[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple132 = []; -const makeArgs132 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple132[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; -const argDetailsSimple133 = []; -const makeArgs133 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple133[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 argDetailsSimple_type_function_connection_mutation = []; +const makeArgs_type_function_connection_mutation = (args, path = []) => argDetailsSimple_type_function_connection_mutation.map(details => makeArg(path, args, details)); const resource_type_function_connection_mutationPgResource = registry.pgResources["type_function_connection_mutation"]; -const argDetailsSimple134 = [{ +const argDetailsSimple_type_function_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs134 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple134[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 makeArgs_type_function_mutation = (args, path = []) => argDetailsSimple_type_function_mutation.map(details => makeArg(path, args, details)); const resource_type_function_mutationPgResource = registry.pgResources["type_function_mutation"]; -const argDetailsSimple135 = []; -const makeArgs135 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple135[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 argDetailsSimple_type_function_list_mutation = []; +const makeArgs_type_function_list_mutation = (args, path = []) => argDetailsSimple_type_function_list_mutation.map(details => makeArg(path, args, details)); const resource_type_function_list_mutationPgResource = registry.pgResources["type_function_list_mutation"]; const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs13 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs14 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs15 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs16 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs17 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs18 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs19 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const specFromArgs20 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Input, $nodeId); }; const specFromArgs21 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Patch, $nodeId); }; const specFromArgs22 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Reserved, $nodeId); }; const specFromArgs23 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedPatchRecord, $nodeId); }; const specFromArgs24 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ReservedInputRecord, $nodeId); }; const specFromArgs25 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.DefaultValue, $nodeId); }; const specFromArgs26 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.MyTable, $nodeId); }; const specFromArgs27 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.PersonSecret, $nodeId); }; const specFromArgs28 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.ViewTable, $nodeId); }; const specFromArgs29 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.CompoundKey, $nodeId); }; const specFromArgs30 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable1, $nodeId); }; const specFromArgs31 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.SimilarTable2, $nodeId); }; const specFromArgs32 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.NullTestRecord, $nodeId); }; const specFromArgs33 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.LeftArm, $nodeId); }; const specFromArgs34 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Issue756, $nodeId); }; const specFromArgs35 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs36 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Person, $nodeId); }; const specFromArgs37 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.List, $nodeId); }; const specFromArgs38 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Type, $nodeId); }; const resource_frmcdc_jwtTokenPgResource = registry.pgResources["frmcdc_jwtToken"]; @@ -27717,131 +21929,131 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, inputById(_$root, args) { return pgResource_inputsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, patchById(_$root, args) { return pgResource_patchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedById(_$root, args) { return pgResource_reservedPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedPatchRecordById(_$root, args) { return pgResource_reservedPatchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedInputRecordById(_$root, args) { return pgResource_reserved_inputPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, defaultValueById(_$root, args) { return pgResource_default_valuePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, noPrimaryKeyById(_$root, args) { return resource_no_primary_keyPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, uniqueForeignKeyByCompoundKey1AndCompoundKey2(_$root, args) { return resource_unique_foreign_keyPgResource.get({ - compound_key_1: args.get("compoundKey1"), - compound_key_2: args.get("compoundKey2") + compound_key_1: args.getRaw("compoundKey1"), + compound_key_2: args.getRaw("compoundKey2") }); }, myTableById(_$root, args) { return pgResource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return pgResource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, viewTableById(_$root, args) { return pgResource_view_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return pgResource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, similarTable1ById(_$root, args) { return pgResource_similar_table_1PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, similarTable2ById(_$root, args) { return pgResource_similar_table_2PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, nullTestRecordById(_$root, args) { return pgResource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return pgResource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return pgResource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return pgResource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return pgResource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return pgResource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return pgResource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, listById(_$root, args) { return pgResource_listsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, typeById(_$root, args) { return pgResource_typesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -27858,7 +22070,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27867,7 +22078,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27876,7 +22086,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27885,7 +22094,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27894,7 +22102,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27903,11 +22110,11 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, queryIntervalSet: { @@ -27924,7 +22131,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27933,7 +22139,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27942,7 +22147,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27951,7 +22155,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27960,7 +22163,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27982,7 +22184,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27991,7 +22192,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28000,7 +22200,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28009,7 +22208,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28018,7 +22216,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28027,7 +22224,7 @@ export const plans = { } }, funcInOut($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -28044,7 +22241,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28053,7 +22249,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28062,7 +22257,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28071,7 +22265,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28080,7 +22273,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28089,35 +22281,35 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, add1Query($root, args, _info) { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_add_1_query(args); return resource_add_1_queryPgResource.execute(selectArgs); }, add2Query($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_add_2_query(args); return resource_add_2_queryPgResource.execute(selectArgs); }, add3Query($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_add_3_query(args); return resource_add_3_queryPgResource.execute(selectArgs); }, add4Query($root, args, _info) { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_add_4_query(args); return resource_add_4_queryPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -28134,7 +22326,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28143,7 +22334,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28152,7 +22342,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28161,7 +22350,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28170,7 +22358,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28179,19 +22366,18 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28200,7 +22386,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28209,27 +22394,27 @@ export const plans = { } }, optionalMissingMiddle1($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_optional_missing_middle_1(args); return resource_optional_missing_middle_1PgResource.execute(selectArgs); }, optionalMissingMiddle2($root, args, _info) { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_optional_missing_middle_2(args); return resource_optional_missing_middle_2PgResource.execute(selectArgs); }, optionalMissingMiddle3($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_optional_missing_middle_3(args); return resource_optional_missing_middle_3PgResource.execute(selectArgs); }, optionalMissingMiddle4($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_optional_missing_middle_4(args); return resource_optional_missing_middle_4PgResource.execute(selectArgs); }, optionalMissingMiddle5($root, args, _info) { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_optional_missing_middle_5(args); return resource_optional_missing_middle_5PgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -28246,7 +22431,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28255,7 +22439,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28264,7 +22447,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28273,7 +22455,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28282,7 +22463,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28304,7 +22484,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28313,7 +22492,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28322,7 +22500,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28331,7 +22508,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28340,7 +22516,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28349,27 +22524,27 @@ export const plans = { } }, queryIntervalArray($root, args, _info) { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_query_interval_array(args); return resource_query_interval_arrayPgResource.execute(selectArgs); }, queryTextArray($root, args, _info) { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_query_text_array(args); return resource_query_text_arrayPgResource.execute(selectArgs); }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs31(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs32(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs33(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs34(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -28386,7 +22561,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28395,7 +22569,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28404,7 +22577,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28413,7 +22585,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28422,7 +22593,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28431,23 +22601,23 @@ export const plans = { } }, compoundTypeQuery($root, args, _info) { - const selectArgs = makeArgs36(args); + const selectArgs = makeArgs_compound_type_query(args); return resource_compound_type_queryPgResource.execute(selectArgs); }, tableQuery($root, args, _info) { - const selectArgs = makeArgs37(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, queryCompoundTypeArray($root, args, _info) { - const selectArgs = makeArgs38(args); + const selectArgs = makeArgs_query_compound_type_array(args); return resource_query_compound_type_arrayPgResource.execute(selectArgs); }, compoundTypeArrayQuery($root, args, _info) { - const selectArgs = makeArgs39(args); + const selectArgs = makeArgs_compound_type_array_query(args); return resource_compound_type_array_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs40(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -28464,7 +22634,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28473,7 +22642,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28482,7 +22650,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28491,7 +22658,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28500,7 +22666,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28522,7 +22687,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28531,7 +22695,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28540,7 +22703,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28549,7 +22711,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28558,7 +22719,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28567,7 +22727,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs43(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -28584,7 +22744,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28593,7 +22752,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28602,7 +22760,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28611,7 +22768,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28620,7 +22776,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28642,7 +22797,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28651,7 +22805,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28660,7 +22813,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28669,7 +22821,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28678,7 +22829,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28687,22 +22837,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28722,7 +22868,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28731,7 +22876,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28740,7 +22884,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28749,7 +22892,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28758,7 +22900,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28780,7 +22921,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28789,7 +22929,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28798,7 +22937,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28807,7 +22945,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28816,7 +22953,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28825,87 +22961,87 @@ export const plans = { } }, typeFunction($root, args, _info) { - const selectArgs = makeArgs48(args); + const selectArgs = makeArgs_type_function(args); return resource_type_functionPgResource.execute(selectArgs); }, typeFunctionList($root, args, _info) { - const selectArgs = makeArgs49(args); + const selectArgs = makeArgs_type_function_list(args); return resource_type_function_listPgResource.execute(selectArgs); }, input(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, patch(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, reserved(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, reservedPatchRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, reservedInputRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, defaultValue(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, myTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, personSecret(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher8($nodeId); }, viewTable(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher9($nodeId); }, compoundKey(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher10($nodeId); }, similarTable1(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher11($nodeId); }, similarTable2(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher12($nodeId); }, nullTestRecord(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher13($nodeId); }, leftArm(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher14($nodeId); }, issue756(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher15($nodeId); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher16($nodeId); }, person(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher17($nodeId); }, list(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher18($nodeId); }, type(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher19($nodeId); }, allNonUpdatableViews: { @@ -28916,7 +23052,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28925,7 +23060,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28934,7 +23068,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28943,7 +23076,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28952,7 +23084,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28961,22 +23092,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NonUpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28990,7 +23117,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28999,7 +23125,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29008,7 +23133,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29017,7 +23141,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29026,7 +23149,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29035,22 +23157,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29064,7 +23182,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29073,7 +23190,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29082,7 +23198,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29091,7 +23206,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29100,7 +23214,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29109,22 +23222,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29138,7 +23247,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29147,7 +23255,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29156,7 +23263,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29165,7 +23271,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29174,7 +23279,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29183,22 +23287,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29212,7 +23312,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29221,7 +23320,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29230,7 +23328,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29239,7 +23336,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29248,7 +23344,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29257,22 +23352,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29286,7 +23377,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29295,7 +23385,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29304,7 +23393,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29313,7 +23401,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29322,7 +23409,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29331,22 +23417,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29360,7 +23442,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29369,7 +23450,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29378,7 +23458,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29387,7 +23466,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29396,7 +23474,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29405,22 +23482,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29434,7 +23507,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29443,7 +23515,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29452,7 +23523,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29461,7 +23531,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29470,7 +23539,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29479,22 +23547,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29508,7 +23572,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29517,7 +23580,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29526,7 +23588,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29535,7 +23596,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29544,7 +23604,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29553,22 +23612,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NoPrimaryKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29582,7 +23637,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29591,7 +23645,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29600,7 +23653,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29609,7 +23661,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29618,7 +23669,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29627,22 +23677,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TestviewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29656,7 +23702,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29665,7 +23710,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29674,7 +23718,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29683,7 +23726,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29692,7 +23734,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29701,22 +23742,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29730,7 +23767,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29739,7 +23775,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29748,7 +23783,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29757,7 +23791,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29766,7 +23799,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29775,22 +23807,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29804,7 +23832,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29813,7 +23840,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29822,7 +23848,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29831,7 +23856,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29840,7 +23864,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29849,22 +23872,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29878,7 +23897,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29887,7 +23905,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29896,7 +23913,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29905,7 +23921,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29914,7 +23929,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29923,22 +23937,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29952,7 +23962,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29961,7 +23970,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29970,7 +23978,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29979,7 +23986,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29988,7 +23994,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29997,22 +24002,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30026,7 +24027,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30035,7 +24035,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30044,7 +24043,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30053,7 +24051,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30062,7 +24059,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30071,22 +24067,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30100,7 +24092,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30109,7 +24100,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30118,7 +24108,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30127,7 +24116,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30136,7 +24124,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30145,22 +24132,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30174,7 +24157,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30183,7 +24165,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30192,7 +24173,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30201,7 +24181,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30210,7 +24189,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30219,22 +24197,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30248,7 +24222,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30257,7 +24230,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30266,7 +24238,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30275,7 +24246,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30284,7 +24254,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30293,22 +24262,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30322,7 +24287,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30331,7 +24295,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30340,7 +24303,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30349,7 +24311,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30358,7 +24319,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30367,22 +24327,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30396,7 +24352,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30405,7 +24360,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30414,7 +24368,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30423,7 +24376,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30432,7 +24384,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30441,22 +24392,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30470,7 +24417,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30479,7 +24425,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30488,7 +24433,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30497,7 +24441,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30506,7 +24449,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30515,22 +24457,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30544,7 +24482,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30553,7 +24490,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30562,7 +24498,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30571,7 +24506,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30580,7 +24514,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30589,22 +24522,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30618,7 +24547,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30627,7 +24555,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30636,7 +24563,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30645,7 +24571,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30654,7 +24579,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30663,22 +24587,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30692,7 +24612,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30701,7 +24620,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30710,7 +24628,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30719,7 +24636,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30728,7 +24644,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30737,22 +24652,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30883,7 +24794,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30892,7 +24802,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30901,7 +24810,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30910,7 +24818,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30919,7 +24826,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30928,22 +24834,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30966,7 +24868,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30981,27 +24883,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -31010,7 +24906,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31025,27 +24921,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -31054,7 +24944,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs52(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31069,27 +24959,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -31098,7 +24982,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs53(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31113,27 +24997,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -31142,7 +25020,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs54(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31157,27 +25035,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -31186,7 +25058,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs55(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31201,27 +25073,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -31230,7 +25096,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs56(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31245,27 +25111,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -31274,7 +25134,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs57(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31289,27 +25149,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -31318,7 +25172,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs58(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31333,27 +25187,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -31362,7 +25210,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs59(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31377,27 +25225,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -31406,7 +25248,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs60(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31421,27 +25263,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -31450,7 +25286,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs61(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31465,27 +25301,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -31494,7 +25324,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs62(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31509,27 +25339,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -31538,7 +25362,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs63(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31553,27 +25377,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -31582,7 +25400,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs64(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31597,27 +25415,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -31636,7 +25448,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31645,7 +25456,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31654,7 +25464,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31663,7 +25472,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31672,7 +25480,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31681,12 +25488,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -31706,7 +25510,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31715,7 +25518,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31724,7 +25526,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31733,7 +25534,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31742,7 +25542,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31754,7 +25553,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs67(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31769,27 +25568,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -31798,7 +25591,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs68(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -31813,27 +25606,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -31888,7 +25675,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31897,7 +25683,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31906,7 +25691,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31915,7 +25699,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -31924,7 +25707,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -31933,22 +25715,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -31965,7 +25743,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -31974,7 +25751,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -31983,7 +25759,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -31992,7 +25767,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32001,7 +25775,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32010,22 +25783,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32052,7 +25821,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32061,7 +25829,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32070,7 +25837,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32079,7 +25845,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32088,7 +25853,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32097,22 +25861,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32129,7 +25889,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32138,7 +25897,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32147,7 +25905,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32156,7 +25913,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32165,7 +25921,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32174,22 +25929,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32264,7 +26015,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs69(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32279,27 +26030,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -32410,7 +26155,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32419,7 +26163,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32428,7 +26171,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32437,7 +26179,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32446,7 +26187,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32458,7 +26198,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs71(args); + const extraSelectArgs = makeArgs_post_computed_interval_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32473,27 +26213,21 @@ export const plans = { if (resource_post_computed_interval_arrayPgResource.isUnique && !resource_post_computed_interval_arrayPgResource.codec.attributes && typeof resource_post_computed_interval_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${resource_post_computed_interval_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_arrayPgResource.from, resource_post_computed_interval_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_arrayPgResource.execute(selectArgs); @@ -32502,7 +26236,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs72(args); + const extraSelectArgs = makeArgs_post_computed_text_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32517,27 +26251,21 @@ export const plans = { if (resource_post_computed_text_arrayPgResource.isUnique && !resource_post_computed_text_arrayPgResource.codec.attributes && typeof resource_post_computed_text_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${resource_post_computed_text_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_text_arrayPgResource.from, resource_post_computed_text_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_text_arrayPgResource.execute(selectArgs); @@ -32546,7 +26274,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs73(args); + const extraSelectArgs = makeArgs_post_computed_with_optional_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32561,27 +26289,21 @@ export const plans = { if (resource_post_computed_with_optional_argPgResource.isUnique && !resource_post_computed_with_optional_argPgResource.codec.attributes && typeof resource_post_computed_with_optional_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${resource_post_computed_with_optional_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_optional_argPgResource.from, resource_post_computed_with_optional_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_optional_argPgResource.execute(selectArgs); @@ -32590,7 +26312,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs74(args); + const extraSelectArgs = makeArgs_post_computed_with_required_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32605,27 +26327,21 @@ export const plans = { if (resource_post_computed_with_required_argPgResource.isUnique && !resource_post_computed_with_required_argPgResource.codec.attributes && typeof resource_post_computed_with_required_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${resource_post_computed_with_required_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_required_argPgResource.from, resource_post_computed_with_required_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_required_argPgResource.execute(selectArgs); @@ -32634,7 +26350,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs75(args); + const extraSelectArgs = makeArgs_post_headline_trimmed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32649,27 +26365,21 @@ export const plans = { if (resource_post_headline_trimmedPgResource.isUnique && !resource_post_headline_trimmedPgResource.codec.attributes && typeof resource_post_headline_trimmedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${resource_post_headline_trimmedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmedPgResource.from, resource_post_headline_trimmedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmedPgResource.execute(selectArgs); @@ -32678,7 +26388,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs76(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_no_defaults(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32693,27 +26403,21 @@ export const plans = { if (resource_post_headline_trimmed_no_defaultsPgResource.isUnique && !resource_post_headline_trimmed_no_defaultsPgResource.codec.attributes && typeof resource_post_headline_trimmed_no_defaultsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${resource_post_headline_trimmed_no_defaultsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.from, resource_post_headline_trimmed_no_defaultsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_no_defaultsPgResource.execute(selectArgs); @@ -32722,7 +26426,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs77(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_strict(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32737,27 +26441,21 @@ export const plans = { if (resource_post_headline_trimmed_strictPgResource.isUnique && !resource_post_headline_trimmed_strictPgResource.codec.attributes && typeof resource_post_headline_trimmed_strictPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${resource_post_headline_trimmed_strictPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_strictPgResource.from, resource_post_headline_trimmed_strictPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_strictPgResource.execute(selectArgs); @@ -32766,7 +26464,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs78(args); + const extraSelectArgs = makeArgs_post_computed_compound_type_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -32781,27 +26479,21 @@ export const plans = { if (resource_post_computed_compound_type_arrayPgResource.isUnique && !resource_post_computed_compound_type_arrayPgResource.codec.attributes && typeof resource_post_computed_compound_type_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${resource_post_computed_compound_type_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_compound_type_arrayPgResource.from, resource_post_computed_compound_type_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_compound_type_arrayPgResource.execute(selectArgs); @@ -32843,7 +26535,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -32852,7 +26543,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -32861,7 +26551,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -32870,7 +26559,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -32879,7 +26567,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -32888,22 +26575,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -32966,64 +26649,70 @@ export const plans = { } }, CompoundTypeInput: { - "__inputPlan": function CompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, IntervalInput: { @@ -33541,31 +27230,21 @@ export const plans = { } }, TypesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33574,19 +27253,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33595,11 +27272,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -33607,7 +27281,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33617,11 +27291,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -33629,7 +27300,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33639,11 +27310,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "ASC", ...(undefined != null ? { @@ -33651,7 +27319,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33661,11 +27329,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "DESC", ...(undefined != null ? { @@ -33673,7 +27338,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33683,11 +27348,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "ASC", ...(undefined != null ? { @@ -33695,7 +27357,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33705,11 +27367,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "DESC", ...(undefined != null ? { @@ -33717,7 +27376,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33727,11 +27386,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "ASC", ...(undefined != null ? { @@ -33739,7 +27395,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33749,11 +27405,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "DESC", ...(undefined != null ? { @@ -33761,7 +27414,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33771,11 +27424,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "ASC", ...(undefined != null ? { @@ -33783,7 +27433,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33793,11 +27443,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "DESC", ...(undefined != null ? { @@ -33805,7 +27452,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33815,11 +27462,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "ASC", ...(undefined != null ? { @@ -33827,7 +27471,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33837,11 +27481,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "DESC", ...(undefined != null ? { @@ -33849,7 +27490,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33859,11 +27500,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "ASC", ...(undefined != null ? { @@ -33871,7 +27509,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33881,11 +27519,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "DESC", ...(undefined != null ? { @@ -33893,7 +27528,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33903,11 +27538,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "ASC", ...(undefined != null ? { @@ -33915,7 +27547,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33925,11 +27557,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "DESC", ...(undefined != null ? { @@ -33937,7 +27566,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33947,11 +27576,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "ASC", ...(undefined != null ? { @@ -33959,7 +27585,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33969,11 +27595,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "DESC", ...(undefined != null ? { @@ -33981,7 +27604,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33991,11 +27614,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "ASC", ...(undefined != null ? { @@ -34003,7 +27623,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34013,11 +27633,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "DESC", ...(undefined != null ? { @@ -34025,7 +27642,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34035,11 +27652,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "ASC", ...(undefined != null ? { @@ -34047,7 +27661,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34057,11 +27671,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "DESC", ...(undefined != null ? { @@ -34069,7 +27680,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34079,11 +27690,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "ASC", ...(undefined != null ? { @@ -34091,7 +27699,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34101,11 +27709,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "DESC", ...(undefined != null ? { @@ -34113,7 +27718,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34123,11 +27728,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "ASC", ...(undefined != null ? { @@ -34135,7 +27737,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34145,11 +27747,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "DESC", ...(undefined != null ? { @@ -34157,7 +27756,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34167,11 +27766,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "ASC", ...(undefined != null ? { @@ -34179,7 +27775,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34189,11 +27785,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "DESC", ...(undefined != null ? { @@ -34201,7 +27794,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34211,11 +27804,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "ASC", ...(undefined != null ? { @@ -34223,7 +27813,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34233,11 +27823,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "DESC", ...(undefined != null ? { @@ -34245,7 +27832,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34255,11 +27842,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "ASC", ...(undefined != null ? { @@ -34267,7 +27851,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34277,11 +27861,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "DESC", ...(undefined != null ? { @@ -34289,7 +27870,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34299,11 +27880,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "ASC", ...(undefined != null ? { @@ -34311,7 +27889,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34321,11 +27899,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "DESC", ...(undefined != null ? { @@ -34333,7 +27908,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34343,11 +27918,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "ASC", ...(undefined != null ? { @@ -34355,7 +27927,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34365,11 +27937,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "DESC", ...(undefined != null ? { @@ -34377,7 +27946,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34387,11 +27956,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "ASC", ...(undefined != null ? { @@ -34399,7 +27965,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34409,11 +27975,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "DESC", ...(undefined != null ? { @@ -34421,7 +27984,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34431,11 +27994,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "ASC", ...(undefined != null ? { @@ -34443,7 +28003,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34453,11 +28013,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "DESC", ...(undefined != null ? { @@ -34465,7 +28022,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34475,11 +28032,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34487,7 +28041,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34497,11 +28051,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34509,7 +28060,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34519,11 +28070,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34531,7 +28079,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34541,11 +28089,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34553,7 +28098,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34563,11 +28108,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -34575,7 +28117,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34585,11 +28127,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -34597,7 +28136,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34607,11 +28146,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "ASC", ...(undefined != null ? { @@ -34619,7 +28155,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34629,11 +28165,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "DESC", ...(undefined != null ? { @@ -34641,7 +28174,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34651,11 +28184,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "ASC", ...(undefined != null ? { @@ -34663,7 +28193,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34673,11 +28203,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "DESC", ...(undefined != null ? { @@ -34685,7 +28212,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34695,11 +28222,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -34707,7 +28231,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34717,11 +28241,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -34729,7 +28250,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34739,11 +28260,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -34751,7 +28269,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34761,11 +28279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -34773,7 +28288,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34783,11 +28298,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -34795,7 +28307,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34805,11 +28317,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -34817,7 +28326,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34827,11 +28336,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "ASC", ...(undefined != null ? { @@ -34839,7 +28345,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34849,11 +28355,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "DESC", ...(undefined != null ? { @@ -34861,7 +28364,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34871,11 +28374,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "ASC", ...(undefined != null ? { @@ -34883,7 +28383,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34893,11 +28393,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "DESC", ...(undefined != null ? { @@ -34905,7 +28402,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34915,11 +28412,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "ASC", ...(undefined != null ? { @@ -34927,7 +28421,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34937,11 +28431,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "DESC", ...(undefined != null ? { @@ -34949,7 +28440,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34959,11 +28450,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "ASC", ...(undefined != null ? { @@ -34971,7 +28459,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34981,11 +28469,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "DESC", ...(undefined != null ? { @@ -34993,7 +28478,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35003,11 +28488,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "ASC", ...(undefined != null ? { @@ -35015,7 +28497,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35025,11 +28507,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "DESC", ...(undefined != null ? { @@ -35037,7 +28516,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35047,11 +28526,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "ASC", ...(undefined != null ? { @@ -35059,7 +28535,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35069,11 +28545,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "DESC", ...(undefined != null ? { @@ -35081,7 +28554,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35091,11 +28564,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "ASC", ...(undefined != null ? { @@ -35103,7 +28573,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35113,11 +28583,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "DESC", ...(undefined != null ? { @@ -35125,7 +28592,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35135,11 +28602,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "ASC", ...(undefined != null ? { @@ -35147,7 +28611,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35157,11 +28621,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "DESC", ...(undefined != null ? { @@ -35169,7 +28630,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35179,11 +28640,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "ASC", ...(undefined != null ? { @@ -35191,7 +28649,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35201,11 +28659,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "DESC", ...(undefined != null ? { @@ -35213,7 +28668,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35222,8 +28677,8 @@ export const plans = { }, TypeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35236,17 +28691,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, smallint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "smallint", @@ -35259,17 +28712,15 @@ export const plans = { type: "attribute", attribute: "smallint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.smallint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, bigint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "bigint", @@ -35282,17 +28733,15 @@ export const plans = { type: "attribute", attribute: "bigint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.bigint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numeric: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numeric", @@ -35305,17 +28754,15 @@ export const plans = { type: "attribute", attribute: "numeric", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numeric.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, decimal: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "decimal", @@ -35328,17 +28775,15 @@ export const plans = { type: "attribute", attribute: "decimal", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.decimal.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, boolean: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "boolean", @@ -35351,17 +28796,15 @@ export const plans = { type: "attribute", attribute: "boolean", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.boolean.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, varchar: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "varchar", @@ -35374,17 +28817,15 @@ export const plans = { type: "attribute", attribute: "varchar", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.varchar.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum", @@ -35397,17 +28838,15 @@ export const plans = { type: "attribute", attribute: "enum", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -35420,17 +28859,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain", @@ -35443,17 +28880,15 @@ export const plans = { type: "attribute", attribute: "domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain2", @@ -35466,17 +28901,15 @@ export const plans = { type: "attribute", attribute: "domain2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anotherIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array", @@ -35489,17 +28922,15 @@ export const plans = { type: "attribute", attribute: "text_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, json: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json", @@ -35512,17 +28943,15 @@ export const plans = { type: "attribute", attribute: "json", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.json.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.json)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonb: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "jsonb", @@ -35535,17 +28964,15 @@ export const plans = { type: "attribute", attribute: "jsonb", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.jsonb.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_range", @@ -35558,17 +28985,15 @@ export const plans = { type: "attribute", attribute: "nullable_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numrange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numrange", @@ -35581,17 +29006,15 @@ export const plans = { type: "attribute", attribute: "numrange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numrange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, daterange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "daterange", @@ -35604,17 +29027,15 @@ export const plans = { type: "attribute", attribute: "daterange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.daterange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, daterangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, anIntRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "an_int_range", @@ -35627,17 +29048,15 @@ export const plans = { type: "attribute", attribute: "an_int_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.an_int_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntRangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamp", @@ -35650,17 +29069,15 @@ export const plans = { type: "attribute", attribute: "timestamp", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamp.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz", @@ -35673,17 +29090,15 @@ export const plans = { type: "attribute", attribute: "timestamptz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamptz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, date: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date", @@ -35696,17 +29111,15 @@ export const plans = { type: "attribute", attribute: "date", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.date.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.date)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, time: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "time", @@ -35719,17 +29132,15 @@ export const plans = { type: "attribute", attribute: "time", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.time.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.time)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timetz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timetz", @@ -35742,17 +29153,15 @@ export const plans = { type: "attribute", attribute: "timetz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timetz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timetz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, interval: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval", @@ -35765,17 +29174,15 @@ export const plans = { type: "attribute", attribute: "interval", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.interval)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intervalArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval_array", @@ -35788,17 +29195,15 @@ export const plans = { type: "attribute", attribute: "interval_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, intervalArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, money: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "money", @@ -35811,17 +29216,15 @@ export const plans = { type: "attribute", attribute: "money", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.money.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.money)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type", @@ -35834,17 +29237,15 @@ export const plans = { type: "attribute", attribute: "compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nested_compound_type", @@ -35857,17 +29258,15 @@ export const plans = { type: "attribute", attribute: "nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_compound_type", @@ -35880,17 +29279,15 @@ export const plans = { type: "attribute", attribute: "nullable_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableNestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_nested_compound_type", @@ -35903,17 +29300,15 @@ export const plans = { type: "attribute", attribute: "nullable_nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, point: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "point", @@ -35926,17 +29321,15 @@ export const plans = { type: "attribute", attribute: "point", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.point.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullablePoint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullablePoint", @@ -35949,17 +29342,15 @@ export const plans = { type: "attribute", attribute: "nullablePoint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullablePoint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -35972,17 +29363,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -35995,17 +29384,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -36018,17 +29405,15 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regproc: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regproc", @@ -36041,17 +29426,15 @@ export const plans = { type: "attribute", attribute: "regproc", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regproc.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regproc)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regprocedure: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regprocedure", @@ -36064,17 +29447,15 @@ export const plans = { type: "attribute", attribute: "regprocedure", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regprocedure.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regprocedure)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoper: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoper", @@ -36087,17 +29468,15 @@ export const plans = { type: "attribute", attribute: "regoper", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoper.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoper)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoperator: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoperator", @@ -36110,17 +29489,15 @@ export const plans = { type: "attribute", attribute: "regoperator", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoperator.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoperator)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regclass: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regclass", @@ -36133,17 +29510,15 @@ export const plans = { type: "attribute", attribute: "regclass", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regclass.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regclass)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regtype: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regtype", @@ -36156,17 +29531,15 @@ export const plans = { type: "attribute", attribute: "regtype", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regtype.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regtype)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regconfig: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regconfig", @@ -36179,17 +29552,15 @@ export const plans = { type: "attribute", attribute: "regconfig", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regconfig.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regconfig)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regdictionary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regdictionary", @@ -36202,17 +29573,15 @@ export const plans = { type: "attribute", attribute: "regdictionary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regdictionary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regdictionary)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array_domain", @@ -36225,17 +29594,15 @@ export const plans = { type: "attribute", attribute: "text_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, int8ArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int8_array_domain", @@ -36248,17 +29615,15 @@ export const plans = { type: "attribute", attribute: "int8_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.int8_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int8ArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltree: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree", @@ -36271,17 +29636,15 @@ export const plans = { type: "attribute", attribute: "ltree", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_codec_ltree)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltreeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree_array", @@ -36294,13 +29657,11 @@ export const plans = { type: "attribute", attribute: "ltree_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_array_codec_ltree_)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BigFloatRangeInput: { @@ -36328,29 +29689,30 @@ export const plans = { inclusive: undefined }, NestedCompoundTypeInput: { - "__inputPlan": function NestedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, bazBuz: { - applyPlan($insert, val) { - $insert.set("baz_buz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("baz_buz", bakedInputRuntime(schema, field.type, val)); + } } }, PointInput: { @@ -36383,26 +29745,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36415,14 +29769,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36435,14 +29789,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -36455,14 +29809,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -36475,19 +29829,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36496,19 +29848,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36517,11 +29867,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36529,7 +29876,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36539,11 +29886,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36551,7 +29895,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36561,11 +29905,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -36573,7 +29914,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36583,11 +29924,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -36595,7 +29933,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36605,11 +29943,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -36617,7 +29952,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36627,11 +29962,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -36639,7 +29971,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36649,11 +29981,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -36661,7 +29990,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36671,11 +30000,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -36683,7 +30009,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36693,11 +30019,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -36705,7 +30028,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36715,11 +30038,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -36727,7 +30047,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36737,11 +30057,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -36749,7 +30066,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36759,11 +30076,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -36771,7 +30085,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36781,11 +30095,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -36793,7 +30104,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36803,11 +30114,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -36815,7 +30123,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36825,11 +30133,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -36837,7 +30142,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36847,11 +30152,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -36859,7 +30161,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36869,11 +30171,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -36881,7 +30180,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36891,11 +30190,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -36903,7 +30199,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36913,11 +30209,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -36925,7 +30218,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36935,11 +30228,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -36947,7 +30237,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37030,26 +30320,18 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_WITH_OPTIONAL_ARG_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -37062,14 +30344,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -37082,19 +30364,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37103,19 +30383,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37124,11 +30402,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37136,7 +30411,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37146,11 +30421,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37158,7 +30430,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37168,11 +30440,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "ASC", ...(undefined != null ? { @@ -37180,7 +30449,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37190,11 +30459,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "DESC", ...(undefined != null ? { @@ -37202,7 +30468,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37212,11 +30478,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -37224,7 +30487,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37234,11 +30497,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -37246,7 +30506,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37256,11 +30516,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -37268,7 +30525,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37278,11 +30535,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -37290,7 +30544,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37299,8 +30553,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37313,17 +30567,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, headline: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "headline", @@ -37336,17 +30588,15 @@ export const plans = { type: "attribute", attribute: "headline", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.headline.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -37359,17 +30609,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -37382,17 +30630,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enums: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enums", @@ -37405,17 +30651,15 @@ export const plans = { type: "attribute", attribute: "enums", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.enums.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anEnumArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, comptypes: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "comptypes", @@ -37428,47 +30672,46 @@ export const plans = { type: "attribute", attribute: "comptypes", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.comptypes.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, comptypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedWithOptionalArg: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_post_computed_with_optional_argPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_post_computed_with_optional_argPgResource.codec)}`); } } } }, ComptypeInput: { - "__inputPlan": function ComptypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, schedule: { - applyPlan($insert, val) { - $insert.set("schedule", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("schedule", bakedInputRuntime(schema, field.type, val)); + } }, isOptimised: { - applyPlan($insert, val) { - $insert.set("is_optimised", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_optimised", bakedInputRuntime(schema, field.type, val)); + } } }, ForeignKeysConnection: { @@ -37520,23 +30763,12 @@ export const plans = { } }, ForeignKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PERSON_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -37544,7 +30776,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37554,11 +30786,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -37566,7 +30795,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37576,11 +30805,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "ASC", ...(undefined != null ? { @@ -37588,7 +30814,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37598,11 +30824,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "DESC", ...(undefined != null ? { @@ -37610,7 +30833,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37620,11 +30843,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "ASC", ...(undefined != null ? { @@ -37632,7 +30852,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37642,11 +30862,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "DESC", ...(undefined != null ? { @@ -37654,7 +30871,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37663,8 +30880,8 @@ export const plans = { }, ForeignKeyCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -37677,17 +30894,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_1", @@ -37700,17 +30915,15 @@ export const plans = { type: "attribute", attribute: "compound_key_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_2", @@ -37723,13 +30936,11 @@ export const plans = { type: "attribute", attribute: "compound_key_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecret: { @@ -37800,31 +31011,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37833,19 +31034,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37854,11 +31053,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -37866,7 +31062,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37876,11 +31072,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -37888,7 +31081,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37898,11 +31091,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -37910,7 +31100,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37920,11 +31110,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -37932,7 +31119,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37942,11 +31129,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -37954,7 +31138,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37964,11 +31148,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -37976,7 +31157,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37985,8 +31166,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -37999,17 +31180,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -38022,17 +31201,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -38045,13 +31222,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTable: { @@ -38594,8 +31769,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -38608,17 +31783,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -38631,17 +31804,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -38654,17 +31825,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -38677,17 +31846,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -38700,17 +31867,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -38723,17 +31888,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -38746,17 +31909,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -38769,17 +31930,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -38792,17 +31951,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -38815,17 +31972,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -38838,40 +31993,38 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, NonUpdatableViewsConnection: { @@ -38906,23 +32059,12 @@ export const plans = { } }, NonUpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COLUMN_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "ASC", ...(undefined != null ? { @@ -38930,7 +32072,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38940,11 +32082,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "DESC", ...(undefined != null ? { @@ -38952,7 +32091,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38961,8 +32100,8 @@ export const plans = { }, NonUpdatableViewCondition: { column: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "?column?", @@ -38975,13 +32114,11 @@ export const plans = { type: "attribute", attribute: "?column?", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nonUpdatableView.attributes["?column?"].codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, InputsConnection: { @@ -39010,31 +32147,21 @@ export const plans = { } }, InputsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39043,19 +32170,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39064,11 +32189,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39076,7 +32198,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39086,11 +32208,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39098,7 +32217,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39107,8 +32226,8 @@ export const plans = { }, InputCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39121,13 +32240,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_inputs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PatchesConnection: { @@ -39156,31 +32273,21 @@ export const plans = { } }, PatchesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39189,19 +32296,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39210,11 +32315,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39222,7 +32324,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39232,11 +32334,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39244,7 +32343,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39253,8 +32352,8 @@ export const plans = { }, PatchCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39267,13 +32366,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_patchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedsConnection: { @@ -39302,31 +32399,21 @@ export const plans = { } }, ReservedsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39335,19 +32422,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39356,11 +32441,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39368,7 +32450,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39378,11 +32460,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39390,7 +32469,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39399,8 +32478,8 @@ export const plans = { }, ReservedCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39413,13 +32492,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedPatchRecordsConnection: { @@ -39448,31 +32525,21 @@ export const plans = { } }, ReservedPatchRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39481,19 +32548,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39502,11 +32567,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39514,7 +32576,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39524,11 +32586,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39536,7 +32595,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39545,8 +32604,8 @@ export const plans = { }, ReservedPatchRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39559,13 +32618,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedPatchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedInputRecordsConnection: { @@ -39594,31 +32651,21 @@ export const plans = { } }, ReservedInputRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39627,19 +32674,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39648,11 +32693,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39660,7 +32702,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39670,11 +32712,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39682,7 +32721,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39691,8 +32730,8 @@ export const plans = { }, ReservedInputRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39705,13 +32744,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedInput.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, DefaultValuesConnection: { @@ -39740,31 +32777,21 @@ export const plans = { } }, DefaultValuesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39773,19 +32800,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39794,11 +32819,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39806,7 +32828,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39816,11 +32838,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39828,7 +32847,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39838,11 +32857,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "ASC", ...(undefined != null ? { @@ -39850,7 +32866,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39860,11 +32876,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "DESC", ...(undefined != null ? { @@ -39872,7 +32885,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39881,8 +32894,8 @@ export const plans = { }, DefaultValueCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39895,17 +32908,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullValue: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "null_value", @@ -39918,13 +32929,11 @@ export const plans = { type: "attribute", attribute: "null_value", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.null_value.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NoPrimaryKeysConnection: { @@ -39953,23 +32962,12 @@ export const plans = { } }, NoPrimaryKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39977,7 +32975,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39987,11 +32985,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39999,7 +32994,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40009,11 +33004,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "ASC", ...(undefined != null ? { @@ -40021,7 +33013,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40031,11 +33023,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "DESC", ...(undefined != null ? { @@ -40043,7 +33032,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40052,8 +33041,8 @@ export const plans = { }, NoPrimaryKeyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40066,17 +33055,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, str: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str", @@ -40089,13 +33076,11 @@ export const plans = { type: "attribute", attribute: "str", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.str.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TestviewsConnection: { @@ -40136,23 +33121,12 @@ export const plans = { } }, TestviewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, TESTVIEWID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "ASC", ...(undefined != null ? { @@ -40160,7 +33134,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40170,11 +33144,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "DESC", ...(undefined != null ? { @@ -40182,7 +33153,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40192,11 +33163,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40204,7 +33172,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40214,11 +33182,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40226,7 +33191,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40236,11 +33201,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40248,7 +33210,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40258,11 +33220,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40270,7 +33229,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40279,8 +33238,8 @@ export const plans = { }, TestviewCondition: { testviewid: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "testviewid", @@ -40293,17 +33252,15 @@ export const plans = { type: "attribute", attribute: "testviewid", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.testviewid.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -40316,17 +33273,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -40339,13 +33294,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTablesConnection: { @@ -40374,31 +33327,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40407,19 +33350,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40428,11 +33369,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40440,7 +33378,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40450,11 +33388,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40462,7 +33397,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40472,11 +33407,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -40484,7 +33416,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40494,11 +33426,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -40506,7 +33435,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40515,8 +33444,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40529,17 +33458,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -40552,13 +33479,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -40587,31 +33512,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40620,19 +33535,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40641,11 +33554,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -40653,7 +33563,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40663,11 +33573,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -40675,7 +33582,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40685,11 +33592,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -40697,7 +33601,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40707,11 +33611,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -40719,7 +33620,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40728,8 +33629,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -40742,17 +33643,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -40765,13 +33664,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ViewTablesConnection: { @@ -40800,31 +33697,21 @@ export const plans = { } }, ViewTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40833,19 +33720,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40854,11 +33739,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40866,7 +33748,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40876,11 +33758,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40888,7 +33767,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40898,11 +33777,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -40910,7 +33786,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40920,11 +33796,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -40932,7 +33805,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40942,11 +33815,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -40954,7 +33824,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40964,11 +33834,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -40976,7 +33843,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40985,8 +33852,8 @@ export const plans = { }, ViewTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40999,17 +33866,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41022,17 +33887,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41045,13 +33908,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable1SConnection: { @@ -41080,31 +33941,21 @@ export const plans = { } }, SimilarTable1SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41113,19 +33964,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41134,11 +33983,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41146,7 +33992,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41156,11 +34002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41168,7 +34011,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41178,11 +34021,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -41190,7 +34030,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41200,11 +34040,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -41212,7 +34049,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41222,11 +34059,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -41234,7 +34068,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41244,11 +34078,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -41256,7 +34087,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41266,11 +34097,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41278,7 +34106,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41288,11 +34116,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41300,7 +34125,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41309,8 +34134,8 @@ export const plans = { }, SimilarTable1Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41323,17 +34148,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -41346,17 +34169,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -41369,17 +34190,15 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41392,13 +34211,11 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable2SConnection: { @@ -41427,31 +34244,21 @@ export const plans = { } }, SimilarTable2SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41460,19 +34267,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41481,11 +34286,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41493,7 +34295,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41503,11 +34305,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41515,7 +34314,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41525,11 +34324,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -41537,7 +34333,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41547,11 +34343,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -41559,7 +34352,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41569,11 +34362,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "ASC", ...(undefined != null ? { @@ -41581,7 +34371,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41591,11 +34381,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "DESC", ...(undefined != null ? { @@ -41603,7 +34390,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41613,11 +34400,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "ASC", ...(undefined != null ? { @@ -41625,7 +34409,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41635,11 +34419,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "DESC", ...(undefined != null ? { @@ -41647,7 +34428,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41656,8 +34437,8 @@ export const plans = { }, SimilarTable2Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41670,17 +34451,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -41693,17 +34472,15 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col4: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col4", @@ -41716,17 +34493,15 @@ export const plans = { type: "attribute", attribute: "col4", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col4.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col5: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col5", @@ -41739,13 +34514,11 @@ export const plans = { type: "attribute", attribute: "col5", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col5.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UpdatableViewsConnection: { @@ -41789,23 +34562,12 @@ export const plans = { } }, UpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, X_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "ASC", ...(undefined != null ? { @@ -41813,7 +34575,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41823,11 +34585,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "DESC", ...(undefined != null ? { @@ -41835,7 +34594,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41845,11 +34604,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -41857,7 +34613,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41867,11 +34623,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -41879,7 +34632,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41889,11 +34642,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -41901,7 +34651,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41911,11 +34661,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -41923,7 +34670,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41933,11 +34680,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "ASC", ...(undefined != null ? { @@ -41945,7 +34689,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41955,11 +34699,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "DESC", ...(undefined != null ? { @@ -41967,7 +34708,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41976,8 +34717,8 @@ export const plans = { }, UpdatableViewCondition: { x: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "x", @@ -41990,17 +34731,15 @@ export const plans = { type: "attribute", attribute: "x", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.x.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -42013,17 +34752,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -42036,17 +34773,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constant: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constant", @@ -42059,13 +34794,11 @@ export const plans = { type: "attribute", attribute: "constant", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.constant.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -42094,31 +34827,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42127,19 +34850,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42148,11 +34869,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42160,7 +34878,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42170,11 +34888,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42182,7 +34897,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42192,11 +34907,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -42204,7 +34916,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42214,11 +34926,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -42226,7 +34935,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42236,11 +34945,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -42248,7 +34954,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42258,11 +34964,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -42270,7 +34973,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42280,11 +34983,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -42292,7 +34992,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42302,11 +35002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -42314,7 +35011,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42323,8 +35020,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42337,17 +35034,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -42360,17 +35055,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -42383,17 +35076,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -42406,13 +35097,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -42437,7 +35126,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs79(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -42452,27 +35141,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -42497,23 +35180,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -42521,7 +35193,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42531,11 +35203,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -42543,7 +35212,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42553,11 +35222,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -42565,7 +35231,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42575,11 +35241,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -42587,7 +35250,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42597,11 +35260,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -42609,7 +35269,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42619,11 +35279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -42631,7 +35288,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42640,8 +35297,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -42654,17 +35311,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -42677,17 +35332,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -42700,13 +35353,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -42735,31 +35386,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42768,19 +35409,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42789,11 +35428,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -42801,7 +35437,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42811,11 +35447,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -42823,7 +35456,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42833,11 +35466,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -42845,7 +35475,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42855,11 +35485,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -42867,7 +35494,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42877,11 +35504,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -42889,7 +35513,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42899,11 +35523,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -42911,7 +35532,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42921,11 +35542,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -42933,7 +35551,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42943,11 +35561,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -42955,7 +35570,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -42964,8 +35579,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -42978,17 +35593,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -43001,17 +35614,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -43024,17 +35635,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -43047,13 +35656,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -43082,31 +35689,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43115,19 +35712,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43136,11 +35731,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43148,7 +35740,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43158,11 +35750,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43170,7 +35759,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43180,11 +35769,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -43192,7 +35778,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43202,11 +35788,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -43214,7 +35797,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43223,8 +35806,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43237,17 +35820,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -43260,13 +35841,11 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ListsConnection: { @@ -43295,31 +35874,21 @@ export const plans = { } }, ListsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43328,19 +35897,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43349,11 +35916,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -43361,7 +35925,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43371,11 +35935,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -43383,7 +35944,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -43392,8 +35953,8 @@ export const plans = { }, ListCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -43406,17 +35967,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array", @@ -43429,17 +35988,15 @@ export const plans = { type: "attribute", attribute: "int_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array_nn", @@ -43452,17 +36009,15 @@ export const plans = { type: "attribute", attribute: "int_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -43475,17 +36030,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array_nn", @@ -43498,17 +36051,15 @@ export const plans = { type: "attribute", attribute: "enum_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array", @@ -43521,17 +36072,15 @@ export const plans = { type: "attribute", attribute: "date_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array_nn", @@ -43544,17 +36093,15 @@ export const plans = { type: "attribute", attribute: "date_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array", @@ -43567,17 +36114,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array_nn", @@ -43590,17 +36135,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array", @@ -43613,17 +36156,15 @@ export const plans = { type: "attribute", attribute: "compound_type_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array_nn", @@ -43636,20 +36177,18 @@ export const plans = { type: "attribute", attribute: "compound_type_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs80(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43659,9 +36198,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43669,7 +36217,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs81(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43679,9 +36227,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43689,7 +36246,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs82(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43699,9 +36256,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43709,7 +36275,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs83(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43719,9 +36285,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43729,7 +36304,7 @@ export const plans = { }, returnVoidMutation: { plan($root, args, _info) { - const selectArgs = makeArgs84(args, ["input"]); + const selectArgs = makeArgs_return_void_mutation(args, ["input"]); const $result = resource_return_void_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43739,9 +36314,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43749,7 +36333,7 @@ export const plans = { }, mutationIntervalSet: { plan($root, args, _info) { - const selectArgs = makeArgs85(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_set(args, ["input"]); const $result = resource_mutation_interval_setPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43759,9 +36343,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43769,7 +36362,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs86(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43779,9 +36372,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43789,7 +36391,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs87(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43799,9 +36401,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43809,7 +36420,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs88(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43819,9 +36430,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43829,7 +36449,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs89(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43839,9 +36459,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43849,7 +36478,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs90(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43859,9 +36488,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43869,7 +36507,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs91(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43879,9 +36517,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43889,7 +36536,7 @@ export const plans = { }, add1Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs92(args, ["input"]); + const selectArgs = makeArgs_add_1_mutation(args, ["input"]); const $result = resource_add_1_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43899,9 +36546,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43909,7 +36565,7 @@ export const plans = { }, add2Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs93(args, ["input"]); + const selectArgs = makeArgs_add_2_mutation(args, ["input"]); const $result = resource_add_2_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43919,9 +36575,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43929,7 +36594,7 @@ export const plans = { }, add3Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs94(args, ["input"]); + const selectArgs = makeArgs_add_3_mutation(args, ["input"]); const $result = resource_add_3_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43939,9 +36604,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43949,7 +36623,7 @@ export const plans = { }, add4Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs95(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation(args, ["input"]); const $result = resource_add_4_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43959,9 +36633,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43969,7 +36652,7 @@ export const plans = { }, add4MutationError: { plan($root, args, _info) { - const selectArgs = makeArgs96(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation_error(args, ["input"]); const $result = resource_add_4_mutation_errorPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43979,9 +36662,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -43989,7 +36681,7 @@ export const plans = { }, mult1: { plan($root, args, _info) { - const selectArgs = makeArgs97(args, ["input"]); + const selectArgs = makeArgs_mult_1(args, ["input"]); const $result = resource_mult_1PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43999,9 +36691,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44009,7 +36710,7 @@ export const plans = { }, mult2: { plan($root, args, _info) { - const selectArgs = makeArgs98(args, ["input"]); + const selectArgs = makeArgs_mult_2(args, ["input"]); const $result = resource_mult_2PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44019,9 +36720,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44029,7 +36739,7 @@ export const plans = { }, mult3: { plan($root, args, _info) { - const selectArgs = makeArgs99(args, ["input"]); + const selectArgs = makeArgs_mult_3(args, ["input"]); const $result = resource_mult_3PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44039,9 +36749,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44049,7 +36768,7 @@ export const plans = { }, mult4: { plan($root, args, _info) { - const selectArgs = makeArgs100(args, ["input"]); + const selectArgs = makeArgs_mult_4(args, ["input"]); const $result = resource_mult_4PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44059,9 +36778,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44069,7 +36797,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs101(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44079,9 +36807,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44089,7 +36826,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs102(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44099,9 +36836,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44109,7 +36855,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs103(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44119,9 +36865,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44129,7 +36884,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs104(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44139,9 +36894,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44149,7 +36913,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs105(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44159,9 +36923,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44169,7 +36942,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs106(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44179,9 +36952,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44189,7 +36971,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs107(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44199,9 +36981,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44209,7 +37000,7 @@ export const plans = { }, guidFn: { plan($root, args, _info) { - const selectArgs = makeArgs108(args, ["input"]); + const selectArgs = makeArgs_guid_fn(args, ["input"]); const $result = resource_guid_fnPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44219,9 +37010,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44229,7 +37029,7 @@ export const plans = { }, mutationIntervalArray: { plan($root, args, _info) { - const selectArgs = makeArgs109(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_array(args, ["input"]); const $result = resource_mutation_interval_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44239,9 +37039,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44249,7 +37058,7 @@ export const plans = { }, mutationTextArray: { plan($root, args, _info) { - const selectArgs = makeArgs110(args, ["input"]); + const selectArgs = makeArgs_mutation_text_array(args, ["input"]); const $result = resource_mutation_text_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44259,9 +37068,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44269,7 +37087,7 @@ export const plans = { }, listBdeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs111(args, ["input"]); + const selectArgs = makeArgs_list_bde_mutation(args, ["input"]); const $result = resource_list_bde_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44279,9 +37097,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44289,7 +37116,7 @@ export const plans = { }, authenticateFail: { plan($root, args, _info) { - const selectArgs = makeArgs112(args, ["input"]); + const selectArgs = makeArgs_authenticate_fail(args, ["input"]); const $result = resource_authenticate_failPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44299,9 +37126,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44309,7 +37145,7 @@ export const plans = { }, authenticate: { plan($root, args, _info) { - const selectArgs = makeArgs113(args, ["input"]); + const selectArgs = makeArgs_authenticate(args, ["input"]); const $result = resource_authenticatePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44319,9 +37155,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44329,7 +37174,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs114(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44339,9 +37184,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44349,7 +37203,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs115(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44359,9 +37213,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44369,7 +37232,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs116(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44379,9 +37242,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44389,7 +37261,7 @@ export const plans = { }, authenticateMany: { plan($root, args, _info) { - const selectArgs = makeArgs117(args, ["input"]); + const selectArgs = makeArgs_authenticate_many(args, ["input"]); const $result = resource_authenticate_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44399,9 +37271,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44409,7 +37290,7 @@ export const plans = { }, authenticatePayload: { plan($root, args, _info) { - const selectArgs = makeArgs118(args, ["input"]); + const selectArgs = makeArgs_authenticate_payload(args, ["input"]); const $result = resource_authenticate_payloadPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44419,9 +37300,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44429,7 +37319,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs119(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44439,9 +37329,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44449,7 +37348,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs120(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44459,9 +37358,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44469,7 +37377,7 @@ export const plans = { }, compoundTypeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs121(args, ["input"]); + const selectArgs = makeArgs_compound_type_mutation(args, ["input"]); const $result = resource_compound_type_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44479,9 +37387,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44489,7 +37406,7 @@ export const plans = { }, compoundTypeSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs122(args, ["input"]); + const selectArgs = makeArgs_compound_type_set_mutation(args, ["input"]); const $result = resource_compound_type_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44499,9 +37416,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44509,7 +37435,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs123(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44519,9 +37445,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44529,7 +37464,7 @@ export const plans = { }, postWithSuffix: { plan($root, args, _info) { - const selectArgs = makeArgs124(args, ["input"]); + const selectArgs = makeArgs_post_with_suffix(args, ["input"]); const $result = resource_post_with_suffixPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44539,9 +37474,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44549,7 +37493,7 @@ export const plans = { }, mutationCompoundTypeArray: { plan($root, args, _info) { - const selectArgs = makeArgs125(args, ["input"]); + const selectArgs = makeArgs_mutation_compound_type_array(args, ["input"]); const $result = resource_mutation_compound_type_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44559,9 +37503,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44569,7 +37522,7 @@ export const plans = { }, compoundTypeArrayMutation: { plan($root, args, _info) { - const selectArgs = makeArgs126(args, ["input"]); + const selectArgs = makeArgs_compound_type_array_mutation(args, ["input"]); const $result = resource_compound_type_array_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44579,9 +37532,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44589,7 +37551,7 @@ export const plans = { }, postMany: { plan($root, args, _info) { - const selectArgs = makeArgs127(args, ["input"]); + const selectArgs = makeArgs_post_many(args, ["input"]); const $result = resource_post_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44599,9 +37561,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44609,7 +37580,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs128(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44619,9 +37590,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44629,7 +37609,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs129(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44639,9 +37619,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44649,7 +37638,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs130(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44659,9 +37648,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44669,7 +37667,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs131(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44679,9 +37677,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44689,7 +37696,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs132(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44699,9 +37706,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44709,7 +37725,7 @@ export const plans = { }, typeFunctionConnectionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs133(args, ["input"]); + const selectArgs = makeArgs_type_function_connection_mutation(args, ["input"]); const $result = resource_type_function_connection_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44719,9 +37735,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44729,7 +37754,7 @@ export const plans = { }, typeFunctionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs134(args, ["input"]); + const selectArgs = makeArgs_type_function_mutation(args, ["input"]); const $result = resource_type_function_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44739,9 +37764,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44749,7 +37783,7 @@ export const plans = { }, typeFunctionListMutation: { plan($root, args, _info) { - const selectArgs = makeArgs135(args, ["input"]); + const selectArgs = makeArgs_type_function_list_mutation(args, ["input"]); const $result = resource_type_function_list_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -44759,9 +37793,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -44769,17 +37812,17 @@ export const plans = { }, createInput: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_inputsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_inputsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44789,17 +37832,17 @@ export const plans = { }, createPatch: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_patchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_patchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44809,17 +37852,17 @@ export const plans = { }, createReserved: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44829,17 +37872,17 @@ export const plans = { }, createReservedPatchRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reservedPatchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44849,17 +37892,17 @@ export const plans = { }, createReservedInputRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_reserved_inputPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44869,17 +37912,17 @@ export const plans = { }, createDefaultValue: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_default_valuePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44889,17 +37932,17 @@ export const plans = { }, createForeignKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44909,17 +37952,17 @@ export const plans = { }, createNoPrimaryKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44929,17 +37972,17 @@ export const plans = { }, createTestview: { plan(_, args) { + const $insert = pgInsertSingle(resource_testviewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_testviewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44949,17 +37992,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44969,17 +38012,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -44989,17 +38032,17 @@ export const plans = { }, createViewTable: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_view_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45009,17 +38052,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45029,17 +38072,17 @@ export const plans = { }, createSimilarTable1: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_1PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45049,17 +38092,17 @@ export const plans = { }, createSimilarTable2: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_similar_table_2PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45069,17 +38112,17 @@ export const plans = { }, createUpdatableView: { plan(_, args) { + const $insert = pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45089,17 +38132,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45109,17 +38152,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45129,17 +38172,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45149,17 +38192,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45169,17 +38212,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45189,17 +38232,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45209,17 +38252,17 @@ export const plans = { }, createList: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_listsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_listsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45229,17 +38272,17 @@ export const plans = { }, createType: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -45249,11 +38292,11 @@ export const plans = { }, updateInput: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_inputsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45268,13 +38311,13 @@ export const plans = { }, updateInputById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45289,11 +38332,11 @@ export const plans = { }, updatePatch: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_patchsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45308,13 +38351,13 @@ export const plans = { }, updatePatchById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45329,11 +38372,11 @@ export const plans = { }, updateReserved: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_reservedPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45348,13 +38391,13 @@ export const plans = { }, updateReservedById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45369,11 +38412,11 @@ export const plans = { }, updateReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45388,13 +38431,13 @@ export const plans = { }, updateReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45409,11 +38452,11 @@ export const plans = { }, updateReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45428,13 +38471,13 @@ export const plans = { }, updateReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45449,11 +38492,11 @@ export const plans = { }, updateDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45468,13 +38511,13 @@ export const plans = { }, updateDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45489,13 +38532,13 @@ export const plans = { }, updateNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45510,11 +38553,11 @@ export const plans = { }, updateMyTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, specFromArgs7(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45529,13 +38572,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45550,11 +38593,11 @@ export const plans = { }, updatePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, specFromArgs8(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45569,13 +38612,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45590,11 +38633,11 @@ export const plans = { }, updateViewTable: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, specFromArgs9(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45609,13 +38652,13 @@ export const plans = { }, updateViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45630,11 +38673,11 @@ export const plans = { }, updateCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, specFromArgs10(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45649,14 +38692,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45671,11 +38714,11 @@ export const plans = { }, updateSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, specFromArgs11(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45690,13 +38733,13 @@ export const plans = { }, updateSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45711,11 +38754,11 @@ export const plans = { }, updateSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, specFromArgs12(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45730,13 +38773,13 @@ export const plans = { }, updateSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45751,11 +38794,11 @@ export const plans = { }, updateNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, specFromArgs13(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45770,13 +38813,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45791,11 +38834,11 @@ export const plans = { }, updateLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)) + const $update = pgUpdateSingle(pgResource_left_armPgResource, specFromArgs14(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45810,13 +38853,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45831,13 +38874,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45852,11 +38895,11 @@ export const plans = { }, updateIssue756: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)) + const $update = pgUpdateSingle(pgResource_issue756PgResource, specFromArgs15(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45871,13 +38914,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45892,11 +38935,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)) + const $update = pgUpdateSingle(pgResource_postPgResource, specFromArgs16(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45911,13 +38954,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45932,11 +38975,11 @@ export const plans = { }, updatePerson: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)) + const $update = pgUpdateSingle(pgResource_personPgResource, specFromArgs17(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45951,13 +38994,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45972,13 +39015,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -45993,11 +39036,11 @@ export const plans = { }, updateList: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)) + const $update = pgUpdateSingle(pgResource_listsPgResource, specFromArgs18(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46012,13 +39055,13 @@ export const plans = { }, updateListById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46033,11 +39076,11 @@ export const plans = { }, updateType: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)) + const $update = pgUpdateSingle(pgResource_typesPgResource, specFromArgs19(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46052,13 +39095,13 @@ export const plans = { }, updateTypeById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -46073,11 +39116,11 @@ export const plans = { }, deleteInput: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, specFromArgs20(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46092,13 +39135,13 @@ export const plans = { }, deleteInputById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46113,11 +39156,11 @@ export const plans = { }, deletePatch: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, specFromArgs21(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46132,13 +39175,13 @@ export const plans = { }, deletePatchById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46153,11 +39196,11 @@ export const plans = { }, deleteReserved: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, specFromArgs22(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46172,13 +39215,13 @@ export const plans = { }, deleteReservedById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46193,11 +39236,11 @@ export const plans = { }, deleteReservedPatchRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, specFromArgs23(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46212,13 +39255,13 @@ export const plans = { }, deleteReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46233,11 +39276,11 @@ export const plans = { }, deleteReservedInputRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, specFromArgs24(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46252,13 +39295,13 @@ export const plans = { }, deleteReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46273,11 +39316,11 @@ export const plans = { }, deleteDefaultValue: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, specFromArgs25(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46292,13 +39335,13 @@ export const plans = { }, deleteDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46313,13 +39356,13 @@ export const plans = { }, deleteNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46334,11 +39377,11 @@ export const plans = { }, deleteMyTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, specFromArgs26(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46353,13 +39396,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46374,11 +39417,11 @@ export const plans = { }, deletePersonSecret: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, specFromArgs27(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46393,13 +39436,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46414,11 +39457,11 @@ export const plans = { }, deleteViewTable: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, specFromArgs28(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46433,13 +39476,13 @@ export const plans = { }, deleteViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46454,11 +39497,11 @@ export const plans = { }, deleteCompoundKey: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, specFromArgs29(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46473,14 +39516,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(pgResource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46495,11 +39538,11 @@ export const plans = { }, deleteSimilarTable1: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, specFromArgs30(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46514,13 +39557,13 @@ export const plans = { }, deleteSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46535,11 +39578,11 @@ export const plans = { }, deleteSimilarTable2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, specFromArgs31(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46554,13 +39597,13 @@ export const plans = { }, deleteSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46575,11 +39618,11 @@ export const plans = { }, deleteNullTestRecord: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, specFromArgs32(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46594,13 +39637,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46615,11 +39658,11 @@ export const plans = { }, deleteLeftArm: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, specFromArgs33(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46634,13 +39677,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46655,13 +39698,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(pgResource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46676,11 +39719,11 @@ export const plans = { }, deleteIssue756: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, specFromArgs34(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46695,13 +39738,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46716,11 +39759,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)) + const $delete = pgDeleteSingle(pgResource_postPgResource, specFromArgs35(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46735,13 +39778,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46756,11 +39799,11 @@ export const plans = { }, deletePerson: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)) + const $delete = pgDeleteSingle(pgResource_personPgResource, specFromArgs36(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46775,13 +39818,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46796,13 +39839,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(pgResource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46817,11 +39860,11 @@ export const plans = { }, deleteList: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)) + const $delete = pgDeleteSingle(pgResource_listsPgResource, specFromArgs37(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46836,13 +39879,13 @@ export const plans = { }, deleteListById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46857,11 +39900,11 @@ export const plans = { }, deleteType: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)) + const $delete = pgDeleteSingle(pgResource_typesPgResource, specFromArgs38(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46876,13 +39919,13 @@ export const plans = { }, deleteTypeById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -46899,7 +39942,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -46910,16 +39954,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -46930,16 +39974,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46950,16 +39994,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -46970,16 +40014,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ReturnVoidMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, query() { return rootValue(); @@ -46987,16 +40031,16 @@ export const plans = { }, ReturnVoidMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationIntervalSetPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47007,16 +40051,16 @@ export const plans = { }, MutationIntervalSetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -47027,17 +40071,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -47048,17 +40092,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47069,17 +40113,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47090,17 +40134,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47111,17 +40155,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -47132,17 +40176,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, Add1MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47153,10 +40197,9 @@ export const plans = { }, Add1MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47164,7 +40207,8 @@ export const plans = { Add2MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47175,10 +40219,9 @@ export const plans = { }, Add2MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -47186,7 +40229,8 @@ export const plans = { Add3MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47197,10 +40241,9 @@ export const plans = { }, Add3MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, arg1: undefined @@ -47208,7 +40251,8 @@ export const plans = { Add4MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47219,10 +40263,9 @@ export const plans = { }, Add4MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47230,7 +40273,8 @@ export const plans = { Add4MutationErrorPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47241,10 +40285,9 @@ export const plans = { }, Add4MutationErrorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -47252,7 +40295,8 @@ export const plans = { Mult1Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47263,10 +40307,9 @@ export const plans = { }, Mult1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47274,7 +40317,8 @@ export const plans = { Mult2Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47285,10 +40329,9 @@ export const plans = { }, Mult2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47296,7 +40339,8 @@ export const plans = { Mult3Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47307,10 +40351,9 @@ export const plans = { }, Mult3Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47318,7 +40361,8 @@ export const plans = { Mult4Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -47329,10 +40373,9 @@ export const plans = { }, Mult4Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -47340,7 +40383,8 @@ export const plans = { MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -47351,10 +40395,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -47362,7 +40405,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47382,16 +40426,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47411,16 +40455,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47440,16 +40484,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -47460,10 +40504,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -47472,7 +40515,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47495,16 +40539,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -47524,17 +40568,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, GuidFnPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, guid($object) { return $object.get("result"); @@ -47550,17 +40594,17 @@ export const plans = { }, GuidFnInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, g: undefined }, MutationIntervalArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -47571,16 +40615,16 @@ export const plans = { }, MutationIntervalArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationTextArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, strings($object) { return $object.get("result"); @@ -47591,16 +40635,16 @@ export const plans = { }, MutationTextArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ListBdeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, uuids($object) { return $object.get("result"); @@ -47611,10 +40655,9 @@ export const plans = { }, ListBdeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, b: undefined, d: undefined, @@ -47623,7 +40666,8 @@ export const plans = { AuthenticateFailPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47652,16 +40696,16 @@ export const plans = { }, AuthenticateFailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticatePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -47672,10 +40716,9 @@ export const plans = { }, AuthenticateInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47684,7 +40727,8 @@ export const plans = { LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -47692,7 +40736,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47708,9 +40752,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47726,50 +40768,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -47777,7 +40821,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47793,9 +40837,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47806,16 +40848,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -47826,16 +40868,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticateManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtTokens($object) { return $object.get("result"); @@ -47846,10 +40888,9 @@ export const plans = { }, AuthenticateManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47858,7 +40899,8 @@ export const plans = { AuthenticatePayloadPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, authPayload($object) { return $object.get("result"); @@ -47897,10 +40939,9 @@ export const plans = { }, AuthenticatePayloadInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47909,7 +40950,8 @@ export const plans = { TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -47920,10 +40962,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -47935,7 +40976,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -47961,17 +41003,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, CompoundTypeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundType($object) { return $object.get("result"); @@ -47982,17 +41024,17 @@ export const plans = { }, CompoundTypeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48003,17 +41045,17 @@ export const plans = { }, CompoundTypeSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48021,7 +41063,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48037,9 +41079,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48055,17 +41095,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, PostWithSuffixPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48073,7 +41113,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48089,9 +41129,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48107,65 +41145,69 @@ export const plans = { }, PostWithSuffixInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: undefined, suffix: undefined }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, MutationCompoundTypeArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48176,17 +41218,17 @@ export const plans = { }, MutationCompoundTypeArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeArrayMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -48197,17 +41239,17 @@ export const plans = { }, CompoundTypeArrayMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, PostManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, posts($object) { return $object.get("result"); @@ -48218,17 +41260,17 @@ export const plans = { }, PostManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, posts: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -48263,10 +41305,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48274,7 +41315,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -48309,10 +41351,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -48320,7 +41361,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -48328,7 +41370,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48344,9 +41386,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48357,16 +41397,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48377,16 +41417,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -48397,16 +41437,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionConnectionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48417,16 +41457,16 @@ export const plans = { }, TypeFunctionConnectionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -48434,7 +41474,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48450,9 +41490,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48473,17 +41511,17 @@ export const plans = { }, TypeFunctionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, TypeFunctionListMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -48494,16 +41532,16 @@ export const plans = { }, TypeFunctionListMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateInputPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -48511,7 +41549,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48527,9 +41565,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48540,35 +41576,34 @@ export const plans = { }, CreateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, input: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, InputInput: { - "__inputPlan": function InputInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePatchPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -48576,7 +41611,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48592,9 +41627,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48605,35 +41638,34 @@ export const plans = { }, CreatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PatchInput: { - "__inputPlan": function PatchInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -48641,7 +41673,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48657,9 +41689,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48670,35 +41700,34 @@ export const plans = { }, CreateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reserved: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInput: { - "__inputPlan": function ReservedInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPatchRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -48706,7 +41735,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48722,9 +41751,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48735,35 +41762,34 @@ export const plans = { }, CreateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedPatchRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedPatchRecordInput: { - "__inputPlan": function ReservedPatchRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedInputRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -48771,7 +41797,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48787,9 +41813,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48800,35 +41824,34 @@ export const plans = { }, CreateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedInputRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInputRecordInput: { - "__inputPlan": function ReservedInputRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateDefaultValuePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -48836,7 +41859,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48852,9 +41875,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48865,42 +41886,42 @@ export const plans = { }, CreateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, defaultValue: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, DefaultValueInput: { - "__inputPlan": function DefaultValueInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, CreateForeignKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, foreignKey($object) { return $object.get("result"); @@ -48922,49 +41943,50 @@ export const plans = { }, CreateForeignKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, foreignKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ForeignKeyInput: { - "__inputPlan": function ForeignKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey1: { - applyPlan($insert, val) { - $insert.set("compound_key_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_1", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey2: { - applyPlan($insert, val) { - $insert.set("compound_key_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNoPrimaryKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -48975,42 +41997,42 @@ export const plans = { }, CreateNoPrimaryKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, noPrimaryKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NoPrimaryKeyInput: { - "__inputPlan": function NoPrimaryKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTestviewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, testview($object) { return $object.get("result"); @@ -49021,49 +42043,50 @@ export const plans = { }, CreateTestviewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, testview: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TestviewInput: { - "__inputPlan": function TestviewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, testviewid: { - applyPlan($insert, val) { - $insert.set("testviewid", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("testviewid", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -49071,7 +42094,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49087,9 +42110,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49100,42 +42121,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -49143,7 +42164,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49159,9 +42180,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49177,42 +42196,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateViewTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -49220,7 +42239,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49236,9 +42255,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49249,49 +42266,50 @@ export const plans = { }, CreateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, viewTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ViewTableInput: { - "__inputPlan": function ViewTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -49299,7 +42317,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49315,9 +42333,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49338,49 +42354,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable1Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -49388,7 +42405,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49404,9 +42421,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49417,56 +42432,58 @@ export const plans = { }, CreateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable1: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable1Input: { - "__inputPlan": function SimilarTable1Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable2Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -49474,7 +42491,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49490,9 +42507,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49503,56 +42518,58 @@ export const plans = { }, CreateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable2: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable2Input: { - "__inputPlan": function SimilarTable2Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, CreateUpdatableViewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, updatableView($object) { return $object.get("result"); @@ -49563,56 +42580,58 @@ export const plans = { }, CreateUpdatableViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, updatableView: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UpdatableViewInput: { - "__inputPlan": function UpdatableViewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, x: { - applyPlan($insert, val) { - $insert.set("x", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("x", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } }, constant: { - applyPlan($insert, val) { - $insert.set("constant", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constant", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -49620,7 +42639,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49636,9 +42655,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49649,56 +42666,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -49709,49 +42728,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -49759,7 +42779,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49775,9 +42795,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49793,56 +42811,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -49850,7 +42870,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49866,9 +42886,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49879,42 +42897,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -49922,7 +42940,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49938,9 +42956,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49956,23 +42972,23 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -49980,7 +42996,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49996,9 +43012,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50009,105 +43023,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, CreateListPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -50115,7 +43138,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50131,9 +43154,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50144,119 +43165,130 @@ export const plans = { }, CreateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, list: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ListInput: { - "__inputPlan": function ListInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -50264,7 +43296,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50280,9 +43312,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50303,371 +43333,418 @@ export const plans = { }, CreateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, type: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TypeInput: { - "__inputPlan": function TypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -50675,7 +43752,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50691,9 +43768,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50704,48 +43779,50 @@ export const plans = { }, UpdateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, InputPatch: { - "__inputPlan": function InputPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -50753,7 +43830,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50769,9 +43846,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50782,48 +43857,50 @@ export const plans = { }, UpdatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PatchPatch: { - "__inputPlan": function PatchPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -50831,7 +43908,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50847,9 +43924,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50860,48 +43935,50 @@ export const plans = { }, UpdateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatch: { - "__inputPlan": function ReservedPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -50909,7 +43986,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50925,9 +44002,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50938,48 +44013,50 @@ export const plans = { }, UpdateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatchRecordPatch: { - "__inputPlan": function ReservedPatchRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -50987,7 +44064,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51003,9 +44080,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51016,48 +44091,50 @@ export const plans = { }, UpdateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedInputRecordPatch: { - "__inputPlan": function ReservedInputRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -51065,7 +44142,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51081,9 +44158,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51094,55 +44169,58 @@ export const plans = { }, UpdateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DefaultValuePatch: { - "__inputPlan": function DefaultValuePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -51153,41 +44231,43 @@ export const plans = { }, UpdateNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, noPrimaryKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NoPrimaryKeyPatch: { - "__inputPlan": function NoPrimaryKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -51195,7 +44275,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51211,9 +44291,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51224,55 +44302,58 @@ export const plans = { }, UpdateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -51280,7 +44361,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51296,9 +44377,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51314,55 +44393,58 @@ export const plans = { }, UpdatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -51370,7 +44452,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51386,9 +44468,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51399,62 +44479,66 @@ export const plans = { }, UpdateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ViewTablePatch: { - "__inputPlan": function ViewTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -51462,7 +44546,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51478,9 +44562,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51501,63 +44583,67 @@ export const plans = { }, UpdateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -51565,7 +44651,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51581,9 +44667,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51594,69 +44678,74 @@ export const plans = { }, UpdateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable1Patch: { - "__inputPlan": function SimilarTable1Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -51664,7 +44753,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51680,9 +44769,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51693,69 +44780,74 @@ export const plans = { }, UpdateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable2Patch: { - "__inputPlan": function SimilarTable2Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -51763,7 +44855,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51779,9 +44871,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51792,69 +44882,74 @@ export const plans = { }, UpdateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -51862,7 +44957,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51878,9 +44973,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -51896,83 +44989,89 @@ export const plans = { }, UpdateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -51980,7 +45079,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -51996,9 +45095,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52009,55 +45106,58 @@ export const plans = { }, UpdateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -52065,7 +45165,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52081,9 +45181,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52099,83 +45197,90 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -52183,7 +45288,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52199,9 +45304,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52212,132 +45315,145 @@ export const plans = { }, UpdatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -52345,7 +45461,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52361,9 +45477,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52374,132 +45488,146 @@ export const plans = { }, UpdateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ListPatch: { - "__inputPlan": function ListPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -52507,7 +45635,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52523,9 +45651,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52546,384 +45672,434 @@ export const plans = { }, UpdateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TypePatch: { - "__inputPlan": function TypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -52936,7 +46112,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -52952,9 +46128,7 @@ export const plans = { return pgResource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -52965,16 +46139,16 @@ export const plans = { }, DeleteInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -52982,7 +46156,8 @@ export const plans = { DeletePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -52995,7 +46170,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53011,9 +46186,7 @@ export const plans = { return pgResource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53024,16 +46197,16 @@ export const plans = { }, DeletePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53041,7 +46214,8 @@ export const plans = { DeleteReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -53054,7 +46228,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53070,9 +46244,7 @@ export const plans = { return pgResource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53083,16 +46255,16 @@ export const plans = { }, DeleteReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53100,7 +46272,8 @@ export const plans = { DeleteReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -53113,7 +46286,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53129,9 +46302,7 @@ export const plans = { return pgResource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53142,16 +46313,16 @@ export const plans = { }, DeleteReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53159,7 +46330,8 @@ export const plans = { DeleteReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -53172,7 +46344,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53188,9 +46360,7 @@ export const plans = { return pgResource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53201,16 +46371,16 @@ export const plans = { }, DeleteReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53218,7 +46388,8 @@ export const plans = { DeleteDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -53231,7 +46402,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53247,9 +46418,7 @@ export const plans = { return pgResource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53260,16 +46429,16 @@ export const plans = { }, DeleteDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53277,7 +46446,8 @@ export const plans = { DeleteNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -53288,8 +46458,8 @@ export const plans = { }, DeleteNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53297,7 +46467,8 @@ export const plans = { DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -53310,7 +46481,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53326,9 +46497,7 @@ export const plans = { return pgResource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53339,16 +46508,16 @@ export const plans = { }, DeleteMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53356,7 +46525,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -53369,7 +46539,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53385,9 +46555,7 @@ export const plans = { return pgResource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53403,16 +46571,16 @@ export const plans = { }, DeletePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53420,7 +46588,8 @@ export const plans = { DeleteViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -53433,7 +46602,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53449,9 +46618,7 @@ export const plans = { return pgResource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53462,16 +46629,16 @@ export const plans = { }, DeleteViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53479,7 +46646,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -53492,7 +46660,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53508,9 +46676,7 @@ export const plans = { return pgResource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53531,16 +46697,16 @@ export const plans = { }, DeleteCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -53549,7 +46715,8 @@ export const plans = { DeleteSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -53562,7 +46729,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53578,9 +46745,7 @@ export const plans = { return pgResource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53591,16 +46756,16 @@ export const plans = { }, DeleteSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53608,7 +46773,8 @@ export const plans = { DeleteSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -53621,7 +46787,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53637,9 +46803,7 @@ export const plans = { return pgResource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53650,16 +46814,16 @@ export const plans = { }, DeleteSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53667,7 +46831,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -53680,7 +46845,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53696,9 +46861,7 @@ export const plans = { return pgResource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53709,16 +46872,16 @@ export const plans = { }, DeleteNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53726,7 +46889,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -53739,7 +46903,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53755,9 +46919,7 @@ export const plans = { return pgResource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53773,24 +46935,24 @@ export const plans = { }, DeleteLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -53798,7 +46960,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -53811,7 +46974,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53827,9 +46990,7 @@ export const plans = { return pgResource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53840,16 +47001,16 @@ export const plans = { }, DeleteIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53857,7 +47018,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -53870,7 +47032,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53886,9 +47048,7 @@ export const plans = { return pgResource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53904,16 +47064,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -53921,7 +47081,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -53934,7 +47095,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -53950,9 +47111,7 @@ export const plans = { return pgResource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -53963,24 +47122,24 @@ export const plans = { }, DeletePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined @@ -53988,7 +47147,8 @@ export const plans = { DeleteListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -54001,7 +47161,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54017,9 +47177,7 @@ export const plans = { return pgResource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54030,16 +47188,16 @@ export const plans = { }, DeleteListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -54047,7 +47205,8 @@ export const plans = { DeleteTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -54060,7 +47219,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -54076,9 +47235,7 @@ export const plans = { return pgResource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -54099,16 +47256,16 @@ export const plans = { }, DeleteTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v4/skipNodePlugin.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/skipNodePlugin.1.export.mjs index 8f1649c8a1..6e9d68535e 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/skipNodePlugin.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/skipNodePlugin.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, makeGrafastSchema, object, rootValue, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, makeGrafastSchema, object, rootValue, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const executor = new PgExecutor({ name: "main", context() { @@ -415,7 +414,7 @@ const textArrayCodec = listOfCodec(TYPES.text, { name: "textArray" }); const nonUpdatableViewIdentifier = sql.identifier("a", "non_updatable_view"); -const spec_nonUpdatableView = { +const nonUpdatableViewCodec = recordCodec({ name: "nonUpdatableView", identifier: nonUpdatableViewIdentifier, attributes: { @@ -443,10 +442,9 @@ const spec_nonUpdatableView = { } }, executor: executor -}; -const nonUpdatableViewCodec = recordCodec(spec_nonUpdatableView); +}); const inputsIdentifier = sql.identifier("a", "inputs"); -const spec_inputs = { +const inputsCodec = recordCodec({ name: "inputs", identifier: inputsIdentifier, attributes: { @@ -474,10 +472,9 @@ const spec_inputs = { } }, executor: executor -}; -const inputsCodec = recordCodec(spec_inputs); +}); const patchsIdentifier = sql.identifier("a", "patchs"); -const spec_patchs = { +const patchsCodec = recordCodec({ name: "patchs", identifier: patchsIdentifier, attributes: { @@ -505,10 +502,9 @@ const spec_patchs = { } }, executor: executor -}; -const patchsCodec = recordCodec(spec_patchs); +}); const reservedIdentifier = sql.identifier("a", "reserved"); -const spec_reserved = { +const reservedCodec = recordCodec({ name: "reserved", identifier: reservedIdentifier, attributes: { @@ -536,10 +532,9 @@ const spec_reserved = { } }, executor: executor -}; -const reservedCodec = recordCodec(spec_reserved); +}); const reservedPatchsIdentifier = sql.identifier("a", "reservedPatchs"); -const spec_reservedPatchs = { +const reservedPatchsCodec = recordCodec({ name: "reservedPatchs", identifier: reservedPatchsIdentifier, attributes: { @@ -567,10 +562,9 @@ const spec_reservedPatchs = { } }, executor: executor -}; -const reservedPatchsCodec = recordCodec(spec_reservedPatchs); +}); const reservedInputIdentifier = sql.identifier("a", "reserved_input"); -const spec_reservedInput = { +const reservedInputCodec = recordCodec({ name: "reservedInput", identifier: reservedInputIdentifier, attributes: { @@ -598,10 +592,9 @@ const spec_reservedInput = { } }, executor: executor -}; -const reservedInputCodec = recordCodec(spec_reservedInput); +}); const defaultValueIdentifier = sql.identifier("a", "default_value"); -const spec_defaultValue = { +const defaultValueCodec = recordCodec({ name: "defaultValue", identifier: defaultValueIdentifier, attributes: { @@ -638,10 +631,9 @@ const spec_defaultValue = { } }, executor: executor -}; -const defaultValueCodec = recordCodec(spec_defaultValue); +}); const foreignKeyIdentifier = sql.identifier("a", "foreign_key"); -const spec_foreignKey = { +const foreignKeyCodec = recordCodec({ name: "foreignKey", identifier: foreignKeyIdentifier, attributes: { @@ -687,10 +679,9 @@ const spec_foreignKey = { } }, executor: executor -}; -const foreignKeyCodec = recordCodec(spec_foreignKey); +}); const noPrimaryKeyIdentifier = sql.identifier("a", "no_primary_key"); -const spec_noPrimaryKey = { +const noPrimaryKeyCodec = recordCodec({ name: "noPrimaryKey", identifier: noPrimaryKeyIdentifier, attributes: { @@ -727,10 +718,9 @@ const spec_noPrimaryKey = { } }, executor: executor -}; -const noPrimaryKeyCodec = recordCodec(spec_noPrimaryKey); +}); const testviewIdentifier = sql.identifier("a", "testview"); -const spec_testview = { +const testviewCodec = recordCodec({ name: "testview", identifier: testviewIdentifier, attributes: { @@ -776,8 +766,7 @@ const spec_testview = { } }, executor: executor -}; -const testviewCodec = recordCodec(spec_testview); +}); const uniqueForeignKeyIdentifier = sql.identifier("a", "unique_foreign_key"); const spec_uniqueForeignKey = { name: "uniqueForeignKey", @@ -821,7 +810,7 @@ const spec_uniqueForeignKey = { }; const uniqueForeignKeyCodec = recordCodec(spec_uniqueForeignKey); const myTableIdentifier = sql.identifier("c", "my_table"); -const spec_myTable = { +const myTableCodec = recordCodec({ name: "myTable", identifier: myTableIdentifier, attributes: { @@ -858,10 +847,9 @@ const spec_myTable = { } }, executor: executor -}; -const myTableCodec = recordCodec(spec_myTable); +}); const personSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_personSecret = { +const personSecretCodec = recordCodec({ name: "personSecret", identifier: personSecretIdentifier, attributes: { @@ -901,8 +889,7 @@ const spec_personSecret = { } }, executor: executor -}; -const personSecretCodec = recordCodec(spec_personSecret); +}); const unloggedIdentifier = sql.identifier("c", "unlogged"); const unloggedCodec = recordCodec({ name: "unlogged", @@ -944,7 +931,7 @@ const unloggedCodec = recordCodec({ executor: executor }); const viewTableIdentifier = sql.identifier("a", "view_table"); -const spec_viewTable = { +const viewTableCodec = recordCodec({ name: "viewTable", identifier: viewTableIdentifier, attributes: { @@ -990,10 +977,9 @@ const spec_viewTable = { } }, executor: executor -}; -const viewTableCodec = recordCodec(spec_viewTable); +}); const compoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_compoundKey = { +const compoundKeyCodec = recordCodec({ name: "compoundKey", identifier: compoundKeyIdentifier, attributes: { @@ -1039,10 +1025,9 @@ const spec_compoundKey = { } }, executor: executor -}; -const compoundKeyCodec = recordCodec(spec_compoundKey); +}); const similarTable1Identifier = sql.identifier("a", "similar_table_1"); -const spec_similarTable1 = { +const similarTable1Codec = recordCodec({ name: "similarTable1", identifier: similarTable1Identifier, attributes: { @@ -1097,10 +1082,9 @@ const spec_similarTable1 = { } }, executor: executor -}; -const similarTable1Codec = recordCodec(spec_similarTable1); +}); const similarTable2Identifier = sql.identifier("a", "similar_table_2"); -const spec_similarTable2 = { +const similarTable2Codec = recordCodec({ name: "similarTable2", identifier: similarTable2Identifier, attributes: { @@ -1155,10 +1139,9 @@ const spec_similarTable2 = { } }, executor: executor -}; -const similarTable2Codec = recordCodec(spec_similarTable2); +}); const updatableViewIdentifier = sql.identifier("b", "updatable_view"); -const spec_updatableView = { +const updatableViewCodec = recordCodec({ name: "updatableView", identifier: updatableViewIdentifier, attributes: { @@ -1215,10 +1198,9 @@ const spec_updatableView = { } }, executor: executor -}; -const updatableViewCodec = recordCodec(spec_updatableView); +}); const nullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_nullTestRecord = { +const nullTestRecordCodec = recordCodec({ name: "nullTestRecord", identifier: nullTestRecordIdentifier, attributes: { @@ -1273,8 +1255,7 @@ const spec_nullTestRecord = { } }, executor: executor -}; -const nullTestRecordCodec = recordCodec(spec_nullTestRecord); +}); const uuidArrayCodec = listOfCodec(TYPES.uuid, { extensions: { pg: { @@ -1291,7 +1272,7 @@ const uuidArrayCodec = listOfCodec(TYPES.uuid, { name: "uuidArray" }); const edgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_edgeCase = { +const edgeCaseCodec = recordCodec({ name: "edgeCase", identifier: edgeCaseIdentifier, attributes: { @@ -1337,10 +1318,9 @@ const spec_edgeCase = { } }, executor: executor -}; -const edgeCaseCodec = recordCodec(spec_edgeCase); +}); const leftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_leftArm = { +const leftArmCodec = recordCodec({ name: "leftArm", identifier: leftArmIdentifier, attributes: { @@ -1395,8 +1375,7 @@ const spec_leftArm = { } }, executor: executor -}; -const leftArmCodec = recordCodec(spec_leftArm); +}); const jwtTokenIdentifier = sql.identifier("b", "jwt_token"); const jwtTokenCodec = recordCodec({ name: "jwtToken", @@ -1478,7 +1457,7 @@ const notNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "notNullTimestamp }, notNull: true }); -const spec_issue756 = { +const issue756Codec = recordCodec({ name: "issue756", identifier: issue756Identifier, attributes: { @@ -1515,8 +1494,7 @@ const spec_issue756 = { } }, executor: executor -}; -const issue756Codec = recordCodec(spec_issue756); +}); const authPayloadIdentifier = sql.identifier("b", "auth_payload"); const authPayloadCodec = recordCodec({ name: "authPayload", @@ -1854,7 +1832,7 @@ const comptypeArrayCodec = listOfCodec(comptypeCodec, { description: undefined, name: "comptypeArray" }); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -1927,8 +1905,7 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const registryConfig_pgCodecs_QueryOutputTwoRowsRecord_QueryOutputTwoRowsRecord = recordCodec({ name: "QueryOutputTwoRowsRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2088,7 +2065,7 @@ const wrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_person = { +const personCodec = recordCodec({ name: "person", identifier: personIdentifier, attributes: { @@ -2210,8 +2187,7 @@ const spec_person = { } }, executor: executor -}; -const personCodec = recordCodec(spec_person); +}); const registryConfig_pgCodecs_PersonComputedFirstArgInoutOutRecord_PersonComputedFirstArgInoutOutRecord = recordCodec({ name: "PersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2529,7 +2505,7 @@ const byteaArrayCodec = listOfCodec(TYPES.bytea, { description: undefined, name: "byteaArray" }); -const spec_lists = { +const listsCodec = recordCodec({ name: "lists", identifier: listsIdentifier, attributes: { @@ -2665,8 +2641,7 @@ const spec_lists = { } }, executor: executor -}; -const listsCodec = recordCodec(spec_lists); +}); const typesIdentifier = sql.identifier("b", "types"); const anIntCodec = domainOfCodec(TYPES.int, "anInt", sql.identifier("a", "an_int"), { description: undefined, @@ -9117,553 +9092,96 @@ const resource_postPgResource = registry.pgResources["post"]; const resource_personPgResource = registry.pgResources["person"]; const resource_listsPgResource = registry.pgResources["lists"]; const resource_typesPgResource = registry.pgResources["types"]; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_current_user_id = (args, path = []) => argDetailsSimple_current_user_id.map(details => makeArg(path, args, details)); const resource_current_user_idPgResource = registry.pgResources["current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_func_out = []; +const makeArgs_func_out = (args, path = []) => argDetailsSimple_func_out.map(details => makeArg(path, args, details)); const resource_func_outPgResource = registry.pgResources["func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_func_out_setof = []; +const makeArgs_func_out_setof = (args, path = []) => argDetailsSimple_func_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_setofPgResource = registry.pgResources["func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_func_out_setof(args); return resource_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_func_out_unnamed = []; +const makeArgs_func_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamedPgResource = registry.pgResources["func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_no_args_query = []; +const makeArgs_no_args_query = (args, path = []) => argDetailsSimple_no_args_query.map(details => makeArg(path, args, details)); const resource_no_args_queryPgResource = registry.pgResources["no_args_query"]; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_query_interval_set = []; +const makeArgs_query_interval_set = (args, path = []) => argDetailsSimple_query_interval_set.map(details => makeArg(path, args, details)); const resource_query_interval_setPgResource = registry.pgResources["query_interval_set"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_query_interval_set(args); return resource_query_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple7 = []; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 argDetailsSimple_static_big_integer = []; +const makeArgs_static_big_integer = (args, path = []) => argDetailsSimple_static_big_integer.map(details => makeArg(path, args, details)); const resource_static_big_integerPgResource = registry.pgResources["static_big_integer"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_static_big_integer(args); return resource_static_big_integerPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_func_in_out = (args, path = []) => argDetailsSimple_func_in_out.map(details => makeArg(path, args, details)); const resource_func_in_outPgResource = registry.pgResources["func_in_out"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_func_returns_table_one_col = (args, path = []) => argDetailsSimple_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_one_colPgResource = registry.pgResources["func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_func_returns_table_one_col(args); return resource_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple10 = [{ +const argDetailsSimple_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_json_identity = (args, path = []) => argDetailsSimple_json_identity.map(details => makeArg(path, args, details)); const resource_json_identityPgResource = registry.pgResources["json_identity"]; -const argDetailsSimple11 = [{ +const argDetailsSimple_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 makeArgs_jsonb_identity = (args, path = []) => argDetailsSimple_jsonb_identity.map(details => makeArg(path, args, details)); const resource_jsonb_identityPgResource = registry.pgResources["jsonb_identity"]; -const argDetailsSimple12 = [{ +const argDetailsSimple_add_1_query = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -9676,52 +9194,9 @@ const argDetailsSimple12 = [{ required: true, fetcher: null }]; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_query = (args, path = []) => argDetailsSimple_add_1_query.map(details => makeArg(path, args, details)); const resource_add_1_queryPgResource = registry.pgResources["add_1_query"]; -const argDetailsSimple13 = [{ +const argDetailsSimple_add_2_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9734,52 +9209,9 @@ const argDetailsSimple13 = [{ required: false, fetcher: null }]; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 makeArgs_add_2_query = (args, path = []) => argDetailsSimple_add_2_query.map(details => makeArg(path, args, details)); const resource_add_2_queryPgResource = registry.pgResources["add_2_query"]; -const argDetailsSimple14 = [{ +const argDetailsSimple_add_3_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9792,52 +9224,9 @@ const argDetailsSimple14 = [{ required: true, fetcher: null }]; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_query = (args, path = []) => argDetailsSimple_add_3_query.map(details => makeArg(path, args, details)); const resource_add_3_queryPgResource = registry.pgResources["add_3_query"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_add_4_query = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -9850,52 +9239,9 @@ const argDetailsSimple15 = [{ required: false, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_query = (args, path = []) => argDetailsSimple_add_4_query.map(details => makeArg(path, args, details)); const resource_add_4_queryPgResource = registry.pgResources["add_4_query"]; -const argDetailsSimple16 = [{ +const argDetailsSimple_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -9908,240 +9254,25 @@ const argDetailsSimple16 = [{ required: true, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_func_in_inout = (args, path = []) => argDetailsSimple_func_in_inout.map(details => makeArg(path, args, details)); const resource_func_in_inoutPgResource = registry.pgResources["func_in_inout"]; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_func_out_out = []; +const makeArgs_func_out_out = (args, path = []) => argDetailsSimple_func_out_out.map(details => makeArg(path, args, details)); const resource_func_out_outPgResource = registry.pgResources["func_out_out"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_func_out_out_setof = []; +const makeArgs_func_out_out_setof = (args, path = []) => argDetailsSimple_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_func_out_out_setofPgResource = registry.pgResources["func_out_out_setof"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_func_out_out_setof(args); return resource_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple19 = []; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 argDetailsSimple_func_out_out_unnamed = []; +const makeArgs_func_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_out_unnamedPgResource = registry.pgResources["func_out_out_unnamed"]; -const argDetailsSimple20 = []; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 argDetailsSimple_search_test_summaries = []; +const makeArgs_search_test_summaries = (args, path = []) => argDetailsSimple_search_test_summaries.map(details => makeArg(path, args, details)); const resource_search_test_summariesPgResource = registry.pgResources["search_test_summaries"]; -const argDetailsSimple21 = [{ +const argDetailsSimple_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10160,52 +9291,9 @@ const argDetailsSimple21 = [{ required: false, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_1PgResource = registry.pgResources["optional_missing_middle_1"]; -const argDetailsSimple22 = [{ +const argDetailsSimple_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10224,52 +9312,9 @@ const argDetailsSimple22 = [{ required: false, fetcher: null }]; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 makeArgs_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_2PgResource = registry.pgResources["optional_missing_middle_2"]; -const argDetailsSimple23 = [{ +const argDetailsSimple_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10288,52 +9333,9 @@ const argDetailsSimple23 = [{ required: false, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_3PgResource = registry.pgResources["optional_missing_middle_3"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10352,52 +9354,9 @@ const argDetailsSimple24 = [{ required: false, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_4PgResource = registry.pgResources["optional_missing_middle_4"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10416,98 +9375,12 @@ const argDetailsSimple25 = [{ required: false, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_5PgResource = registry.pgResources["optional_missing_middle_5"]; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_func_out_unnamed_out_out_unnamed = []; +const makeArgs_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple27 = [{ +const argDetailsSimple_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -10526,56 +9399,13 @@ const argDetailsSimple27 = [{ required: true, fetcher: null }]; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 makeArgs_int_set_query = (args, path = []) => argDetailsSimple_int_set_query.map(details => makeArg(path, args, details)); const resource_int_set_queryPgResource = registry.pgResources["int_set_query"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_int_set_query(args); return resource_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple28 = [{ +const argDetailsSimple_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -10594,194 +9424,22 @@ const argDetailsSimple28 = [{ required: false, fetcher: null }]; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 makeArgs_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_func_returns_table_multi_colPgResource = registry.pgResources["func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_func_returns_table_multi_col(args); return resource_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_query_interval_array = []; +const makeArgs_query_interval_array = (args, path = []) => argDetailsSimple_query_interval_array.map(details => makeArg(path, args, details)); const resource_query_interval_arrayPgResource = registry.pgResources["query_interval_array"]; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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 argDetailsSimple_query_text_array = []; +const makeArgs_query_text_array = (args, path = []) => argDetailsSimple_query_text_array.map(details => makeArg(path, args, details)); const resource_query_text_arrayPgResource = registry.pgResources["query_text_array"]; -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_return_table_without_grants = []; +const makeArgs_return_table_without_grants = (args, path = []) => argDetailsSimple_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_return_table_without_grantsPgResource = registry.pgResources["return_table_without_grants"]; -const argDetailsSimple32 = [{ +const argDetailsSimple_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -10818,104 +9476,18 @@ const argDetailsSimple32 = [{ required: true, fetcher: null }]; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 makeArgs_types_query = (args, path = []) => argDetailsSimple_types_query.map(details => makeArg(path, args, details)); const resource_types_queryPgResource = registry.pgResources["types_query"]; -const argDetailsSimple33 = [{ +const argDetailsSimple_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 makeArgs_func_out_out_compound_type = (args, path = []) => argDetailsSimple_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_func_out_out_compound_typePgResource = registry.pgResources["func_out_out_compound_type"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -10934,310 +9506,52 @@ const argDetailsSimple34 = [{ required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_query_output_two_rows = (args, path = []) => argDetailsSimple_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_query_output_two_rowsPgResource = registry.pgResources["query_output_two_rows"]; -const argDetailsSimple35 = []; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 argDetailsSimple_compound_type_set_query = []; +const makeArgs_compound_type_set_query = (args, path = []) => argDetailsSimple_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_compound_type_set_queryPgResource = registry.pgResources["compound_type_set_query"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs35(args); + const selectArgs = makeArgs_compound_type_set_query(args); return resource_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple36 = [{ +const argDetailsSimple_compound_type_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 makeArgs_compound_type_query = (args, path = []) => argDetailsSimple_compound_type_query.map(details => makeArg(path, args, details)); const resource_compound_type_queryPgResource = registry.pgResources["compound_type_query"]; -const argDetailsSimple37 = [{ +const argDetailsSimple_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 makeArgs_table_query = (args, path = []) => argDetailsSimple_table_query.map(details => makeArg(path, args, details)); const resource_table_queryPgResource = registry.pgResources["table_query"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_query_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[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 makeArgs_query_compound_type_array = (args, path = []) => argDetailsSimple_query_compound_type_array.map(details => makeArg(path, args, details)); const resource_query_compound_type_arrayPgResource = registry.pgResources["query_compound_type_array"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_compound_type_array_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_compound_type_array_query = (args, path = []) => argDetailsSimple_compound_type_array_query.map(details => makeArg(path, args, details)); const resource_compound_type_array_queryPgResource = registry.pgResources["compound_type_array_query"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11250,52 +9564,9 @@ const argDetailsSimple40 = [{ required: true, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[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 makeArgs_func_out_complex = (args, path = []) => argDetailsSimple_func_out_complex.map(details => makeArg(path, args, details)); const resource_func_out_complexPgResource = registry.pgResources["func_out_complex"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11308,468 +9579,64 @@ const argDetailsSimple41 = [{ required: true, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[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 makeArgs_func_out_complex_setof = (args, path = []) => argDetailsSimple_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_func_out_complex_setofPgResource = registry.pgResources["func_out_complex_setof"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs41(args); + const selectArgs = makeArgs_func_out_complex_setof(args); return resource_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple42 = []; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[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 argDetailsSimple_badly_behaved_function = []; +const makeArgs_badly_behaved_function = (args, path = []) => argDetailsSimple_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_badly_behaved_functionPgResource = registry.pgResources["badly_behaved_function"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs42(args); + const selectArgs = makeArgs_badly_behaved_function(args); return resource_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple43 = []; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 argDetailsSimple_func_out_table = []; +const makeArgs_func_out_table = (args, path = []) => argDetailsSimple_func_out_table.map(details => makeArg(path, args, details)); const resource_func_out_tablePgResource = registry.pgResources["func_out_table"]; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_func_out_table_setof = []; +const makeArgs_func_out_table_setof = (args, path = []) => argDetailsSimple_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_func_out_table_setofPgResource = registry.pgResources["func_out_table_setof"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs44(args); + const selectArgs = makeArgs_func_out_table_setof(args); return resource_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_table_set_query = []; +const makeArgs_table_set_query = (args, path = []) => argDetailsSimple_table_set_query.map(details => makeArg(path, args, details)); const resource_table_set_queryPgResource = registry.pgResources["table_set_query"]; const getSelectPlanFromParentAndArgs12 = ($root, args, _info) => { - const selectArgs = makeArgs45(args); + const selectArgs = makeArgs_table_set_query(args); return resource_table_set_queryPgResource.execute(selectArgs); }; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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; -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} +const argDetailsSimple_table_set_query_plpgsql = []; +const makeArgs_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_table_set_query_plpgsqlPgResource = registry.pgResources["table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs13 = ($root, args, _info) => { - const selectArgs = makeArgs46(args); + const selectArgs = makeArgs_table_set_query_plpgsql(args); return resource_table_set_query_plpgsqlPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_type_function_connection = []; +const makeArgs_type_function_connection = (args, path = []) => argDetailsSimple_type_function_connection.map(details => makeArg(path, args, details)); const resource_type_function_connectionPgResource = registry.pgResources["type_function_connection"]; const getSelectPlanFromParentAndArgs14 = ($root, args, _info) => { - const selectArgs = makeArgs47(args); + const selectArgs = makeArgs_type_function_connection(args); return resource_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple48 = [{ +const argDetailsSimple_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 makeArgs_type_function = (args, path = []) => argDetailsSimple_type_function.map(details => makeArg(path, args, details)); const resource_type_functionPgResource = registry.pgResources["type_function"]; -const argDetailsSimple49 = []; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 argDetailsSimple_type_function_list = []; +const makeArgs_type_function_list = (args, path = []) => argDetailsSimple_type_function_list.map(details => makeArg(path, args, details)); const resource_type_function_listPgResource = registry.pgResources["type_function_list"]; const resource_non_updatable_viewPgResource = registry.pgResources["non_updatable_view"]; const resource_foreign_keyPgResource = registry.pgResources["foreign_key"]; @@ -11779,347 +9646,46 @@ const resource_edge_casePgResource = registry.pgResources["edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_person_computed_out = []; +const makeArgs_person_computed_out = (args, path = []) => argDetailsSimple_person_computed_out.map(details => makeArg(path, args, details)); const resource_person_computed_outPgResource = registry.pgResources["person_computed_out"]; -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_person_first_name = []; +const makeArgs_person_first_name = (args, path = []) => argDetailsSimple_person_first_name.map(details => makeArg(path, args, details)); const resource_person_first_namePgResource = registry.pgResources["person_first_name"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_person_computed_out_out = []; +const makeArgs_person_computed_out_out = (args, path = []) => argDetailsSimple_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_person_computed_out_outPgResource = registry.pgResources["person_computed_out_out"]; -const argDetailsSimple53 = [{ +const argDetailsSimple_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 makeArgs_person_computed_inout = (args, path = []) => argDetailsSimple_person_computed_inout.map(details => makeArg(path, args, details)); const resource_person_computed_inoutPgResource = registry.pgResources["person_computed_inout"]; -const argDetailsSimple54 = [{ +const argDetailsSimple_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 makeArgs_person_computed_inout_out = (args, path = []) => argDetailsSimple_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_inout_outPgResource = registry.pgResources["person_computed_inout_out"]; -const argDetailsSimple55 = [{ +const argDetailsSimple_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: emailCodec, required: true, fetcher: null }]; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 makeArgs_person_exists = (args, path = []) => argDetailsSimple_person_exists.map(details => makeArg(path, args, details)); const resource_person_existsPgResource = registry.pgResources["person_exists"]; -const argDetailsSimple56 = []; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 argDetailsSimple_person_computed_first_arg_inout_out = []; +const makeArgs_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inout_outPgResource = registry.pgResources["person_computed_first_arg_inout_out"]; -const argDetailsSimple57 = [{ +const argDetailsSimple_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12138,52 +9704,9 @@ const argDetailsSimple57 = [{ required: false, fetcher: null }]; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_1PgResource = registry.pgResources["person_optional_missing_middle_1"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12202,52 +9725,9 @@ const argDetailsSimple58 = [{ required: false, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[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 makeArgs_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_2PgResource = registry.pgResources["person_optional_missing_middle_2"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12266,52 +9746,9 @@ const argDetailsSimple59 = [{ required: false, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_3PgResource = registry.pgResources["person_optional_missing_middle_3"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12330,52 +9767,9 @@ const argDetailsSimple60 = [{ required: false, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_4PgResource = registry.pgResources["person_optional_missing_middle_4"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12394,52 +9788,9 @@ const argDetailsSimple61 = [{ required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_person_optional_missing_middle_5PgResource = registry.pgResources["person_optional_missing_middle_5"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12452,194 +9803,22 @@ const argDetailsSimple62 = [{ required: true, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[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 makeArgs_person_computed_complex = (args, path = []) => argDetailsSimple_person_computed_complex.map(details => makeArg(path, args, details)); const resource_person_computed_complexPgResource = registry.pgResources["person_computed_complex"]; -const argDetailsSimple63 = []; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 argDetailsSimple_person_first_post = []; +const makeArgs_person_first_post = (args, path = []) => argDetailsSimple_person_first_post.map(details => makeArg(path, args, details)); const resource_person_first_postPgResource = registry.pgResources["person_first_post"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_person_computed_first_arg_inout = []; +const makeArgs_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_person_computed_first_arg_inoutPgResource = registry.pgResources["person_computed_first_arg_inout"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_person_friends = []; +const makeArgs_person_friends = (args, path = []) => argDetailsSimple_person_friends.map(details => makeArg(path, args, details)); const resource_person_friendsPgResource = registry.pgResources["person_friends"]; const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs65(args); + const extraSelectArgs = makeArgs_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -12654,82 +9833,33 @@ const getSelectPlanFromParentAndArgs15 = ($in, args, _info) => { if (resource_person_friendsPgResource.isUnique && !resource_person_friendsPgResource.codec.attributes && typeof resource_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${resource_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_friendsPgResource.from, resource_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple66 = []; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 argDetailsSimple_person_type_function_connection = []; +const makeArgs_person_type_function_connection = (args, path = []) => argDetailsSimple_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_person_type_function_connectionPgResource = registry.pgResources["person_type_function_connection"]; const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs66(args); + const extraSelectArgs = makeArgs_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -12744,176 +9874,41 @@ const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (resource_person_type_function_connectionPgResource.isUnique && !resource_person_type_function_connectionPgResource.codec.attributes && typeof resource_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${resource_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_connectionPgResource.from, resource_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple67 = [{ +const argDetailsSimple_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 makeArgs_person_type_function = (args, path = []) => argDetailsSimple_person_type_function.map(details => makeArg(path, args, details)); const resource_person_type_functionPgResource = registry.pgResources["person_type_function"]; -const argDetailsSimple68 = []; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 argDetailsSimple_person_type_function_list = []; +const makeArgs_person_type_function_list = (args, path = []) => argDetailsSimple_person_type_function_list.map(details => makeArg(path, args, details)); const resource_person_type_function_listPgResource = registry.pgResources["person_type_function_list"]; const resource_frmcdc_wrappedUrlPgResource = registry.pgResources["frmcdc_wrappedUrl"]; const resource_frmcdc_compoundTypePgResource = registry.pgResources["frmcdc_compoundType"]; -const argDetailsSimple69 = []; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 argDetailsSimple_compound_type_computed_field = []; +const makeArgs_compound_type_computed_field = (args, path = []) => argDetailsSimple_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_compound_type_computed_fieldPgResource = registry.pgResources["compound_type_computed_field"]; function UUIDSerialize(value) { return "" + value; @@ -12924,57 +9919,14 @@ const coerce = string => { } return string; }; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple_post_computed_interval_set = []; +const makeArgs_post_computed_interval_set = (args, path = []) => argDetailsSimple_post_computed_interval_set.map(details => makeArg(path, args, details)); const resource_post_computed_interval_setPgResource = registry.pgResources["post_computed_interval_set"]; const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs70(args); + const extraSelectArgs = makeArgs_post_computed_interval_set(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -12989,228 +9941,50 @@ const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (resource_post_computed_interval_setPgResource.isUnique && !resource_post_computed_interval_setPgResource.codec.attributes && typeof resource_post_computed_interval_setPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${resource_post_computed_interval_setPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_setPgResource.from, resource_post_computed_interval_setPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple_post_computed_interval_array = []; +const makeArgs_post_computed_interval_array = (args, path = []) => argDetailsSimple_post_computed_interval_array.map(details => makeArg(path, args, details)); const resource_post_computed_interval_arrayPgResource = registry.pgResources["post_computed_interval_array"]; -const argDetailsSimple72 = []; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 argDetailsSimple_post_computed_text_array = []; +const makeArgs_post_computed_text_array = (args, path = []) => argDetailsSimple_post_computed_text_array.map(details => makeArg(path, args, details)); const resource_post_computed_text_arrayPgResource = registry.pgResources["post_computed_text_array"]; -const argDetailsSimple73 = [{ +const argDetailsSimple_post_computed_with_optional_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: false, fetcher: null }]; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 makeArgs_post_computed_with_optional_arg = (args, path = []) => argDetailsSimple_post_computed_with_optional_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_optional_argPgResource = registry.pgResources["post_computed_with_optional_arg"]; -const argDetailsSimple74 = [{ +const argDetailsSimple_post_computed_with_required_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 makeArgs_post_computed_with_required_arg = (args, path = []) => argDetailsSimple_post_computed_with_required_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_required_argPgResource = registry.pgResources["post_computed_with_required_arg"]; -const argDetailsSimple75 = [{ +const argDetailsSimple_post_headline_trimmed = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13223,52 +9997,9 @@ const argDetailsSimple75 = [{ required: false, fetcher: null }]; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 makeArgs_post_headline_trimmed = (args, path = []) => argDetailsSimple_post_headline_trimmed.map(details => makeArg(path, args, details)); const resource_post_headline_trimmedPgResource = registry.pgResources["post_headline_trimmed"]; -const argDetailsSimple76 = [{ +const argDetailsSimple_post_headline_trimmed_no_defaults = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13281,52 +10012,9 @@ const argDetailsSimple76 = [{ required: true, fetcher: null }]; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 makeArgs_post_headline_trimmed_no_defaults = (args, path = []) => argDetailsSimple_post_headline_trimmed_no_defaults.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_no_defaultsPgResource = registry.pgResources["post_headline_trimmed_no_defaults"]; -const argDetailsSimple77 = [{ +const argDetailsSimple_post_headline_trimmed_strict = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13339,102 +10027,16 @@ const argDetailsSimple77 = [{ required: false, fetcher: null }]; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 makeArgs_post_headline_trimmed_strict = (args, path = []) => argDetailsSimple_post_headline_trimmed_strict.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_strictPgResource = registry.pgResources["post_headline_trimmed_strict"]; -const argDetailsSimple78 = [{ +const argDetailsSimple_post_computed_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 makeArgs_post_computed_compound_type_array = (args, path = []) => argDetailsSimple_post_computed_compound_type_array.map(details => makeArg(path, args, details)); const resource_post_computed_compound_type_arrayPgResource = registry.pgResources["post_computed_compound_type_array"]; const resource_frmcdc_comptypePgResource = registry.pgResources["frmcdc_comptype"]; const resource_frmcdc_nestedCompoundTypePgResource = registry.pgResources["frmcdc_nestedCompoundType"]; @@ -13492,641 +10094,82 @@ const parseValueLiteral = (ast, variables) => { return undefined; } }; -const argDetailsSimple79 = []; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 argDetailsSimple_edge_case_computed = []; +const makeArgs_edge_case_computed = (args, path = []) => argDetailsSimple_edge_case_computed.map(details => makeArg(path, args, details)); const resource_edge_case_computedPgResource = registry.pgResources["edge_case_computed"]; -const argDetailsSimple80 = []; -const makeArgs80 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple80[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 argDetailsSimple_mutation_out = []; +const makeArgs_mutation_out = (args, path = []) => argDetailsSimple_mutation_out.map(details => makeArg(path, args, details)); const resource_mutation_outPgResource = registry.pgResources["mutation_out"]; -const argDetailsSimple81 = []; -const makeArgs81 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple81[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 argDetailsSimple_mutation_out_setof = []; +const makeArgs_mutation_out_setof = (args, path = []) => argDetailsSimple_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_setofPgResource = registry.pgResources["mutation_out_setof"]; -const argDetailsSimple82 = []; -const makeArgs82 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple82[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 argDetailsSimple_mutation_out_unnamed = []; +const makeArgs_mutation_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed"]; -const argDetailsSimple83 = []; -const makeArgs83 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple83[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 argDetailsSimple_no_args_mutation = []; +const makeArgs_no_args_mutation = (args, path = []) => argDetailsSimple_no_args_mutation.map(details => makeArg(path, args, details)); const resource_no_args_mutationPgResource = registry.pgResources["no_args_mutation"]; -const argDetailsSimple84 = []; -const makeArgs84 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple84[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 argDetailsSimple_return_void_mutation = []; +const makeArgs_return_void_mutation = (args, path = []) => argDetailsSimple_return_void_mutation.map(details => makeArg(path, args, details)); const resource_return_void_mutationPgResource = registry.pgResources["return_void_mutation"]; -const argDetailsSimple85 = []; -const makeArgs85 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple85[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 argDetailsSimple_mutation_interval_set = []; +const makeArgs_mutation_interval_set = (args, path = []) => argDetailsSimple_mutation_interval_set.map(details => makeArg(path, args, details)); const resource_mutation_interval_setPgResource = registry.pgResources["mutation_interval_set"]; -const argDetailsSimple86 = [{ +const argDetailsSimple_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs86 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple86[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 makeArgs_mutation_in_out = (args, path = []) => argDetailsSimple_mutation_in_out.map(details => makeArg(path, args, details)); const resource_mutation_in_outPgResource = registry.pgResources["mutation_in_out"]; -const argDetailsSimple87 = [{ +const argDetailsSimple_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs87 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple87[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 makeArgs_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_one_colPgResource = registry.pgResources["mutation_returns_table_one_col"]; -const argDetailsSimple88 = [{ +const argDetailsSimple_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs88 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple88[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 makeArgs_json_identity_mutation = (args, path = []) => argDetailsSimple_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_json_identity_mutationPgResource = registry.pgResources["json_identity_mutation"]; -const argDetailsSimple89 = [{ +const argDetailsSimple_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs89 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple89[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 makeArgs_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutationPgResource = registry.pgResources["jsonb_identity_mutation"]; -const argDetailsSimple90 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs90 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple90[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 makeArgs_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple91 = [{ +const argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs91 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple91[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 makeArgs_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple92 = [{ +const argDetailsSimple_add_1_mutation = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14139,52 +10182,9 @@ const argDetailsSimple92 = [{ required: true, fetcher: null }]; -const makeArgs92 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple92[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_mutation = (args, path = []) => argDetailsSimple_add_1_mutation.map(details => makeArg(path, args, details)); const resource_add_1_mutationPgResource = registry.pgResources["add_1_mutation"]; -const argDetailsSimple93 = [{ +const argDetailsSimple_add_2_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14197,52 +10197,9 @@ const argDetailsSimple93 = [{ required: false, fetcher: null }]; -const makeArgs93 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple93[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 makeArgs_add_2_mutation = (args, path = []) => argDetailsSimple_add_2_mutation.map(details => makeArg(path, args, details)); const resource_add_2_mutationPgResource = registry.pgResources["add_2_mutation"]; -const argDetailsSimple94 = [{ +const argDetailsSimple_add_3_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14255,52 +10212,9 @@ const argDetailsSimple94 = [{ required: true, fetcher: null }]; -const makeArgs94 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple94[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_mutation = (args, path = []) => argDetailsSimple_add_3_mutation.map(details => makeArg(path, args, details)); const resource_add_3_mutationPgResource = registry.pgResources["add_3_mutation"]; -const argDetailsSimple95 = [{ +const argDetailsSimple_add_4_mutation = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14313,52 +10227,9 @@ const argDetailsSimple95 = [{ required: false, fetcher: null }]; -const makeArgs95 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple95[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation = (args, path = []) => argDetailsSimple_add_4_mutation.map(details => makeArg(path, args, details)); const resource_add_4_mutationPgResource = registry.pgResources["add_4_mutation"]; -const argDetailsSimple96 = [{ +const argDetailsSimple_add_4_mutation_error = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14371,52 +10242,9 @@ const argDetailsSimple96 = [{ required: false, fetcher: null }]; -const makeArgs96 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple96[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation_error = (args, path = []) => argDetailsSimple_add_4_mutation_error.map(details => makeArg(path, args, details)); const resource_add_4_mutation_errorPgResource = registry.pgResources["add_4_mutation_error"]; -const argDetailsSimple97 = [{ +const argDetailsSimple_mult_1 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14429,52 +10257,9 @@ const argDetailsSimple97 = [{ required: true, fetcher: null }]; -const makeArgs97 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple97[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_1 = (args, path = []) => argDetailsSimple_mult_1.map(details => makeArg(path, args, details)); const resource_mult_1PgResource = registry.pgResources["mult_1"]; -const argDetailsSimple98 = [{ +const argDetailsSimple_mult_2 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14487,52 +10272,9 @@ const argDetailsSimple98 = [{ required: true, fetcher: null }]; -const makeArgs98 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple98[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_2 = (args, path = []) => argDetailsSimple_mult_2.map(details => makeArg(path, args, details)); const resource_mult_2PgResource = registry.pgResources["mult_2"]; -const argDetailsSimple99 = [{ +const argDetailsSimple_mult_3 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14545,52 +10287,9 @@ const argDetailsSimple99 = [{ required: true, fetcher: null }]; -const makeArgs99 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple99[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_3 = (args, path = []) => argDetailsSimple_mult_3.map(details => makeArg(path, args, details)); const resource_mult_3PgResource = registry.pgResources["mult_3"]; -const argDetailsSimple100 = [{ +const argDetailsSimple_mult_4 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14603,52 +10302,9 @@ const argDetailsSimple100 = [{ required: true, fetcher: null }]; -const makeArgs100 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple100[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_mult_4 = (args, path = []) => argDetailsSimple_mult_4.map(details => makeArg(path, args, details)); const resource_mult_4PgResource = registry.pgResources["mult_4"]; -const argDetailsSimple101 = [{ +const argDetailsSimple_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -14661,190 +10317,18 @@ const argDetailsSimple101 = [{ required: true, fetcher: null }]; -const makeArgs101 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple101[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 makeArgs_mutation_in_inout = (args, path = []) => argDetailsSimple_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_mutation_in_inoutPgResource = registry.pgResources["mutation_in_inout"]; -const argDetailsSimple102 = []; -const makeArgs102 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple102[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 argDetailsSimple_mutation_out_out = []; +const makeArgs_mutation_out_out = (args, path = []) => argDetailsSimple_mutation_out_out.map(details => makeArg(path, args, details)); const resource_mutation_out_outPgResource = registry.pgResources["mutation_out_out"]; -const argDetailsSimple103 = []; -const makeArgs103 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple103[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 argDetailsSimple_mutation_out_out_setof = []; +const makeArgs_mutation_out_out_setof = (args, path = []) => argDetailsSimple_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_out_setofPgResource = registry.pgResources["mutation_out_out_setof"]; -const argDetailsSimple104 = []; -const makeArgs104 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple104[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 argDetailsSimple_mutation_out_out_unnamed = []; +const makeArgs_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_out_unnamedPgResource = registry.pgResources["mutation_out_out_unnamed"]; -const argDetailsSimple105 = [{ +const argDetailsSimple_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -14863,294 +10347,36 @@ const argDetailsSimple105 = [{ required: true, fetcher: null }]; -const makeArgs105 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple105[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 makeArgs_int_set_mutation = (args, path = []) => argDetailsSimple_int_set_mutation.map(details => makeArg(path, args, details)); const resource_int_set_mutationPgResource = registry.pgResources["int_set_mutation"]; -const argDetailsSimple106 = []; -const makeArgs106 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple106[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 argDetailsSimple_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple107 = [{ +const argDetailsSimple_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs107 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple107[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 makeArgs_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_mutation_returns_table_multi_colPgResource = registry.pgResources["mutation_returns_table_multi_col"]; -const argDetailsSimple108 = [{ +const argDetailsSimple_guid_fn = [{ graphqlArgName: "g", postgresArgName: "g", pgCodec: guidCodec, required: true, fetcher: null }]; -const makeArgs108 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple108[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 makeArgs_guid_fn = (args, path = []) => argDetailsSimple_guid_fn.map(details => makeArg(path, args, details)); const resource_guid_fnPgResource = registry.pgResources["guid_fn"]; -const argDetailsSimple109 = []; -const makeArgs109 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple109[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 argDetailsSimple_mutation_interval_array = []; +const makeArgs_mutation_interval_array = (args, path = []) => argDetailsSimple_mutation_interval_array.map(details => makeArg(path, args, details)); const resource_mutation_interval_arrayPgResource = registry.pgResources["mutation_interval_array"]; -const argDetailsSimple110 = []; -const makeArgs110 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple110[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 argDetailsSimple_mutation_text_array = []; +const makeArgs_mutation_text_array = (args, path = []) => argDetailsSimple_mutation_text_array.map(details => makeArg(path, args, details)); const resource_mutation_text_arrayPgResource = registry.pgResources["mutation_text_array"]; -const argDetailsSimple111 = [{ +const argDetailsSimple_list_bde_mutation = [{ graphqlArgName: "b", postgresArgName: "b", pgCodec: textArrayCodec, @@ -15169,98 +10395,12 @@ const argDetailsSimple111 = [{ required: true, fetcher: null }]; -const makeArgs111 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple111[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 makeArgs_list_bde_mutation = (args, path = []) => argDetailsSimple_list_bde_mutation.map(details => makeArg(path, args, details)); const resource_list_bde_mutationPgResource = registry.pgResources["list_bde_mutation"]; -const argDetailsSimple112 = []; -const makeArgs112 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple112[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 argDetailsSimple_authenticate_fail = []; +const makeArgs_authenticate_fail = (args, path = []) => argDetailsSimple_authenticate_fail.map(details => makeArg(path, args, details)); const resource_authenticate_failPgResource = registry.pgResources["authenticate_fail"]; -const argDetailsSimple113 = [{ +const argDetailsSimple_authenticate = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15279,196 +10419,24 @@ const argDetailsSimple113 = [{ required: true, fetcher: null }]; -const makeArgs113 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple113[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 makeArgs_authenticate = (args, path = []) => argDetailsSimple_authenticate.map(details => makeArg(path, args, details)); const resource_authenticatePgResource = registry.pgResources["authenticate"]; -const argDetailsSimple114 = [{ +const argDetailsSimple_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: leftArmCodec, required: true, fetcher: null }]; -const makeArgs114 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple114[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 makeArgs_left_arm_identity = (args, path = []) => argDetailsSimple_left_arm_identity.map(details => makeArg(path, args, details)); const resource_left_arm_identityPgResource = registry.pgResources["left_arm_identity"]; -const argDetailsSimple115 = []; -const makeArgs115 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple115[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 argDetailsSimple_issue756_mutation = []; +const makeArgs_issue756_mutation = (args, path = []) => argDetailsSimple_issue756_mutation.map(details => makeArg(path, args, details)); const resource_issue756_mutationPgResource = registry.pgResources["issue756_mutation"]; -const argDetailsSimple116 = []; -const makeArgs116 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple116[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 argDetailsSimple_issue756_set_mutation = []; +const makeArgs_issue756_set_mutation = (args, path = []) => argDetailsSimple_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_issue756_set_mutationPgResource = registry.pgResources["issue756_set_mutation"]; -const argDetailsSimple117 = [{ +const argDetailsSimple_authenticate_many = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15487,52 +10455,9 @@ const argDetailsSimple117 = [{ required: true, fetcher: null }]; -const makeArgs117 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple117[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 makeArgs_authenticate_many = (args, path = []) => argDetailsSimple_authenticate_many.map(details => makeArg(path, args, details)); const resource_authenticate_manyPgResource = registry.pgResources["authenticate_many"]; -const argDetailsSimple118 = [{ +const argDetailsSimple_authenticate_payload = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15551,52 +10476,9 @@ const argDetailsSimple118 = [{ required: true, fetcher: null }]; -const makeArgs118 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple118[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 makeArgs_authenticate_payload = (args, path = []) => argDetailsSimple_authenticate_payload.map(details => makeArg(path, args, details)); const resource_authenticate_payloadPgResource = registry.pgResources["authenticate_payload"]; -const argDetailsSimple119 = [{ +const argDetailsSimple_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -15633,260 +10515,45 @@ const argDetailsSimple119 = [{ required: true, fetcher: null }]; -const makeArgs119 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple119[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 makeArgs_types_mutation = (args, path = []) => argDetailsSimple_types_mutation.map(details => makeArg(path, args, details)); const resource_types_mutationPgResource = registry.pgResources["types_mutation"]; -const argDetailsSimple120 = [{ +const argDetailsSimple_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs120 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple120[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 makeArgs_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_mutation_out_out_compound_typePgResource = registry.pgResources["mutation_out_out_compound_type"]; -const argDetailsSimple121 = [{ +const argDetailsSimple_compound_type_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs121 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple121[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 makeArgs_compound_type_mutation = (args, path = []) => argDetailsSimple_compound_type_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_mutationPgResource = registry.pgResources["compound_type_mutation"]; -const argDetailsSimple122 = [{ +const argDetailsSimple_compound_type_set_mutation = [{ 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 makeArgs_compound_type_set_mutation = (args, path = []) => argDetailsSimple_compound_type_set_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_set_mutationPgResource = registry.pgResources["compound_type_set_mutation"]; -const argDetailsSimple123 = [{ +const argDetailsSimple_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, 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 makeArgs_table_mutation = (args, path = []) => argDetailsSimple_table_mutation.map(details => makeArg(path, args, details)); const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; -const argDetailsSimple124 = [{ +const argDetailsSimple_post_with_suffix = [{ graphqlArgName: "post", postgresArgName: "post", pgCodec: postCodec, @@ -15899,208 +10566,36 @@ const argDetailsSimple124 = [{ required: true, fetcher: null }]; -const makeArgs124 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple124[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 makeArgs_post_with_suffix = (args, path = []) => argDetailsSimple_post_with_suffix.map(details => makeArg(path, args, details)); const resource_post_with_suffixPgResource = registry.pgResources["post_with_suffix"]; -const argDetailsSimple125 = [{ +const argDetailsSimple_mutation_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs125 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple125[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 makeArgs_mutation_compound_type_array = (args, path = []) => argDetailsSimple_mutation_compound_type_array.map(details => makeArg(path, args, details)); const resource_mutation_compound_type_arrayPgResource = registry.pgResources["mutation_compound_type_array"]; -const argDetailsSimple126 = [{ +const argDetailsSimple_compound_type_array_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: compoundTypeCodec, required: true, fetcher: null }]; -const makeArgs126 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple126[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 makeArgs_compound_type_array_mutation = (args, path = []) => argDetailsSimple_compound_type_array_mutation.map(details => makeArg(path, args, details)); const resource_compound_type_array_mutationPgResource = registry.pgResources["compound_type_array_mutation"]; -const argDetailsSimple127 = [{ +const argDetailsSimple_post_many = [{ graphqlArgName: "posts", postgresArgName: "posts", pgCodec: postArrayCodec, required: true, fetcher: null }]; -const makeArgs127 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple127[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 makeArgs_post_many = (args, path = []) => argDetailsSimple_post_many.map(details => makeArg(path, args, details)); const resource_post_manyPgResource = registry.pgResources["post_many"]; -const argDetailsSimple128 = [{ +const argDetailsSimple_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16113,52 +10608,9 @@ const argDetailsSimple128 = [{ required: true, fetcher: null }]; -const makeArgs128 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple128[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 makeArgs_mutation_out_complex = (args, path = []) => argDetailsSimple_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple129 = [{ +const argDetailsSimple_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16171,332 +10623,31 @@ const argDetailsSimple129 = [{ required: true, fetcher: null }]; -const makeArgs129 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple129[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 makeArgs_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple130 = []; -const makeArgs130 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple130[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 argDetailsSimple_mutation_out_table = []; +const makeArgs_mutation_out_table = (args, path = []) => argDetailsSimple_mutation_out_table.map(details => makeArg(path, args, details)); const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple131 = []; -const makeArgs131 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple131[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 argDetailsSimple_mutation_out_table_setof = []; +const makeArgs_mutation_out_table_setof = (args, path = []) => argDetailsSimple_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple132 = []; -const makeArgs132 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple132[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 argDetailsSimple_table_set_mutation = []; +const makeArgs_table_set_mutation = (args, path = []) => argDetailsSimple_table_set_mutation.map(details => makeArg(path, args, details)); const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; -const argDetailsSimple133 = []; -const makeArgs133 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple133[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 argDetailsSimple_type_function_connection_mutation = []; +const makeArgs_type_function_connection_mutation = (args, path = []) => argDetailsSimple_type_function_connection_mutation.map(details => makeArg(path, args, details)); const resource_type_function_connection_mutationPgResource = registry.pgResources["type_function_connection_mutation"]; -const argDetailsSimple134 = [{ +const argDetailsSimple_type_function_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs134 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple134[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 makeArgs_type_function_mutation = (args, path = []) => argDetailsSimple_type_function_mutation.map(details => makeArg(path, args, details)); const resource_type_function_mutationPgResource = registry.pgResources["type_function_mutation"]; -const argDetailsSimple135 = []; -const makeArgs135 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple135[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 argDetailsSimple_type_function_list_mutation = []; +const makeArgs_type_function_list_mutation = (args, path = []) => argDetailsSimple_type_function_list_mutation.map(details => makeArg(path, args, details)); const resource_type_function_list_mutationPgResource = registry.pgResources["type_function_list_mutation"]; const resource_frmcdc_jwtTokenPgResource = registry.pgResources["frmcdc_jwtToken"]; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -25771,127 +19922,127 @@ export const plans = { }, inputById(_$root, args) { return resource_inputsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, patchById(_$root, args) { return resource_patchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedById(_$root, args) { return resource_reservedPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedPatchRecordById(_$root, args) { return resource_reservedPatchsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, reservedInputRecordById(_$root, args) { return resource_reserved_inputPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, defaultValueById(_$root, args) { return resource_default_valuePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, noPrimaryKeyById(_$root, args) { return resource_no_primary_keyPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, uniqueForeignKeyByCompoundKey1AndCompoundKey2(_$root, args) { return resource_unique_foreign_keyPgResource.get({ - compound_key_1: args.get("compoundKey1"), - compound_key_2: args.get("compoundKey2") + compound_key_1: args.getRaw("compoundKey1"), + compound_key_2: args.getRaw("compoundKey2") }); }, myTableById(_$root, args) { return resource_my_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personSecretByPersonId(_$root, args) { return resource_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, viewTableById(_$root, args) { return resource_view_tablePgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, compoundKeyByPersonId1AndPersonId2(_$root, args) { return resource_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, similarTable1ById(_$root, args) { return resource_similar_table_1PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, similarTable2ById(_$root, args) { return resource_similar_table_2PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, nullTestRecordById(_$root, args) { return resource_null_test_recordPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmById(_$root, args) { return resource_left_armPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, leftArmByPersonId(_$root, args) { return resource_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, issue756ById(_$root, args) { return resource_issue756PgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, postById(_$root, args) { return resource_postPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personById(_$root, args) { return resource_personPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, personByEmail(_$root, args) { return resource_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, listById(_$root, args) { return resource_listsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, typeById(_$root, args) { return resource_typesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, currentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_current_user_id(args); return resource_current_user_idPgResource.execute(selectArgs); }, funcOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_func_out(args); return resource_func_outPgResource.execute(selectArgs); }, funcOutSetof: { @@ -25908,7 +20059,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25917,7 +20067,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25926,7 +20075,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25935,7 +20083,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25944,7 +20091,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25953,11 +20099,11 @@ export const plans = { } }, funcOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_func_out_unnamed(args); return resource_func_out_unnamedPgResource.execute(selectArgs); }, noArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_no_args_query(args); return resource_no_args_queryPgResource.execute(selectArgs); }, queryIntervalSet: { @@ -25974,7 +20120,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25983,7 +20128,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25992,7 +20136,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26001,7 +20144,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26010,7 +20152,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26032,7 +20173,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26041,7 +20181,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26050,7 +20189,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26059,7 +20197,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26068,7 +20205,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26077,7 +20213,7 @@ export const plans = { } }, funcInOut($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_func_in_out(args); return resource_func_in_outPgResource.execute(selectArgs); }, funcReturnsTableOneCol: { @@ -26094,7 +20230,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26103,7 +20238,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26112,7 +20246,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26121,7 +20254,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26130,7 +20262,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26139,35 +20270,35 @@ export const plans = { } }, jsonIdentity($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_json_identity(args); return resource_json_identityPgResource.execute(selectArgs); }, jsonbIdentity($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_jsonb_identity(args); return resource_jsonb_identityPgResource.execute(selectArgs); }, add1Query($root, args, _info) { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_add_1_query(args); return resource_add_1_queryPgResource.execute(selectArgs); }, add2Query($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_add_2_query(args); return resource_add_2_queryPgResource.execute(selectArgs); }, add3Query($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_add_3_query(args); return resource_add_3_queryPgResource.execute(selectArgs); }, add4Query($root, args, _info) { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_add_4_query(args); return resource_add_4_queryPgResource.execute(selectArgs); }, funcInInout($root, args, _info) { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_func_in_inout(args); return resource_func_in_inoutPgResource.execute(selectArgs); }, funcOutOut($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_func_out_out(args); return resource_func_out_outPgResource.execute(selectArgs); }, funcOutOutSetof: { @@ -26184,7 +20315,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26193,7 +20323,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26202,7 +20331,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26211,7 +20339,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26220,7 +20347,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26229,19 +20355,18 @@ export const plans = { } }, funcOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_func_out_out_unnamed(args); return resource_func_out_out_unnamedPgResource.execute(selectArgs); }, searchTestSummariesList: { plan($root, args, _info) { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_search_test_summaries(args); return resource_search_test_summariesPgResource.execute(selectArgs); }, args: { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26250,7 +20375,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26259,27 +20383,27 @@ export const plans = { } }, optionalMissingMiddle1($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_optional_missing_middle_1(args); return resource_optional_missing_middle_1PgResource.execute(selectArgs); }, optionalMissingMiddle2($root, args, _info) { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_optional_missing_middle_2(args); return resource_optional_missing_middle_2PgResource.execute(selectArgs); }, optionalMissingMiddle3($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_optional_missing_middle_3(args); return resource_optional_missing_middle_3PgResource.execute(selectArgs); }, optionalMissingMiddle4($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_optional_missing_middle_4(args); return resource_optional_missing_middle_4PgResource.execute(selectArgs); }, optionalMissingMiddle5($root, args, _info) { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_optional_missing_middle_5(args); return resource_optional_missing_middle_5PgResource.execute(selectArgs); }, funcOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_func_out_unnamed_out_out_unnamed(args); return resource_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, intSetQuery: { @@ -26296,7 +20420,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26305,7 +20428,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26314,7 +20436,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26323,7 +20444,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26332,7 +20452,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26354,7 +20473,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26363,7 +20481,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26372,7 +20489,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26381,7 +20497,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26390,7 +20505,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26399,27 +20513,27 @@ export const plans = { } }, queryIntervalArray($root, args, _info) { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_query_interval_array(args); return resource_query_interval_arrayPgResource.execute(selectArgs); }, queryTextArray($root, args, _info) { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_query_text_array(args); return resource_query_text_arrayPgResource.execute(selectArgs); }, returnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs31(args); + const selectArgs = makeArgs_return_table_without_grants(args); return resource_return_table_without_grantsPgResource.execute(selectArgs); }, typesQuery($root, args, _info) { - const selectArgs = makeArgs32(args); + const selectArgs = makeArgs_types_query(args); return resource_types_queryPgResource.execute(selectArgs); }, funcOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs33(args); + const selectArgs = makeArgs_func_out_out_compound_type(args); return resource_func_out_out_compound_typePgResource.execute(selectArgs); }, queryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs34(args); + const selectArgs = makeArgs_query_output_two_rows(args); return resource_query_output_two_rowsPgResource.execute(selectArgs); }, compoundTypeSetQuery: { @@ -26436,7 +20550,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26445,7 +20558,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26454,7 +20566,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26463,7 +20574,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26472,7 +20582,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26481,23 +20590,23 @@ export const plans = { } }, compoundTypeQuery($root, args, _info) { - const selectArgs = makeArgs36(args); + const selectArgs = makeArgs_compound_type_query(args); return resource_compound_type_queryPgResource.execute(selectArgs); }, tableQuery($root, args, _info) { - const selectArgs = makeArgs37(args); + const selectArgs = makeArgs_table_query(args); return resource_table_queryPgResource.execute(selectArgs); }, queryCompoundTypeArray($root, args, _info) { - const selectArgs = makeArgs38(args); + const selectArgs = makeArgs_query_compound_type_array(args); return resource_query_compound_type_arrayPgResource.execute(selectArgs); }, compoundTypeArrayQuery($root, args, _info) { - const selectArgs = makeArgs39(args); + const selectArgs = makeArgs_compound_type_array_query(args); return resource_compound_type_array_queryPgResource.execute(selectArgs); }, funcOutComplex($root, args, _info) { - const selectArgs = makeArgs40(args); + const selectArgs = makeArgs_func_out_complex(args); return resource_func_out_complexPgResource.execute(selectArgs); }, funcOutComplexSetof: { @@ -26514,7 +20623,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26523,7 +20631,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26532,7 +20639,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26541,7 +20647,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26550,7 +20655,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26572,7 +20676,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26581,7 +20684,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26590,7 +20692,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26599,7 +20700,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26608,7 +20708,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26617,7 +20716,7 @@ export const plans = { } }, funcOutTable($root, args, _info) { - const selectArgs = makeArgs43(args); + const selectArgs = makeArgs_func_out_table(args); return resource_func_out_tablePgResource.execute(selectArgs); }, funcOutTableSetof: { @@ -26634,7 +20733,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26643,7 +20741,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26652,7 +20749,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26661,7 +20757,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26670,7 +20765,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26692,7 +20786,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26701,7 +20794,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26710,7 +20802,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26719,7 +20810,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26728,7 +20818,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26737,22 +20826,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26772,7 +20857,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26781,7 +20865,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26790,7 +20873,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26799,7 +20881,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26808,7 +20889,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26830,7 +20910,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26839,7 +20918,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26848,7 +20926,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26857,7 +20934,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26866,7 +20942,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26875,11 +20950,11 @@ export const plans = { } }, typeFunction($root, args, _info) { - const selectArgs = makeArgs48(args); + const selectArgs = makeArgs_type_function(args); return resource_type_functionPgResource.execute(selectArgs); }, typeFunctionList($root, args, _info) { - const selectArgs = makeArgs49(args); + const selectArgs = makeArgs_type_function_list(args); return resource_type_function_listPgResource.execute(selectArgs); }, allNonUpdatableViews: { @@ -26890,7 +20965,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26899,7 +20973,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26908,7 +20981,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26917,7 +20989,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26926,7 +20997,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26935,22 +21005,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NonUpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26964,7 +21030,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26973,7 +21038,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26982,7 +21046,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26991,7 +21054,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27000,7 +21062,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27009,22 +21070,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27038,7 +21095,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27047,7 +21103,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27056,7 +21111,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27065,7 +21119,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27074,7 +21127,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27083,22 +21135,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27112,7 +21160,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27121,7 +21168,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27130,7 +21176,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27139,7 +21184,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27148,7 +21192,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27157,22 +21200,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27186,7 +21225,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27195,7 +21233,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27204,7 +21241,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27213,7 +21249,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27222,7 +21257,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27231,22 +21265,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27260,7 +21290,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27269,7 +21298,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27278,7 +21306,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27287,7 +21314,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27296,7 +21322,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27305,22 +21330,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27334,7 +21355,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27343,7 +21363,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27352,7 +21371,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27361,7 +21379,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27370,7 +21387,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27379,22 +21395,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27408,7 +21420,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27417,7 +21428,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27426,7 +21436,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27435,7 +21444,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27444,7 +21452,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27453,22 +21460,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27482,7 +21485,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27491,7 +21493,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27500,7 +21501,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27509,7 +21509,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27518,7 +21517,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27527,22 +21525,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NoPrimaryKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27556,7 +21550,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27565,7 +21558,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27574,7 +21566,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27583,7 +21574,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27592,7 +21582,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27601,22 +21590,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TestviewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27630,7 +21615,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27639,7 +21623,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27648,7 +21631,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27657,7 +21639,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27666,7 +21647,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27675,22 +21655,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27704,7 +21680,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27713,7 +21688,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27722,7 +21696,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27731,7 +21704,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27740,7 +21712,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27749,22 +21720,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27778,7 +21745,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27787,7 +21753,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27796,7 +21761,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27805,7 +21769,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27814,7 +21777,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27823,22 +21785,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27852,7 +21810,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27861,7 +21818,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27870,7 +21826,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27879,7 +21834,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27888,7 +21842,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27897,22 +21850,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27926,7 +21875,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27935,7 +21883,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27944,7 +21891,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27953,7 +21899,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27962,7 +21907,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27971,22 +21915,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28000,7 +21940,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28009,7 +21948,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28018,7 +21956,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28027,7 +21964,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28036,7 +21972,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28045,22 +21980,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28074,7 +22005,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28083,7 +22013,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28092,7 +22021,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28101,7 +22029,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28110,7 +22037,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28119,22 +22045,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UpdatableViewsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28148,7 +22070,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28157,7 +22078,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28166,7 +22086,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28175,7 +22094,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28184,7 +22102,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28193,22 +22110,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28222,7 +22135,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28231,7 +22143,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28240,7 +22151,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28249,7 +22159,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28258,7 +22167,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28267,22 +22175,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("EdgeCasesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28296,7 +22200,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28305,7 +22208,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28314,7 +22216,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28323,7 +22224,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28332,7 +22232,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28341,22 +22240,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28370,7 +22265,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28379,7 +22273,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28388,7 +22281,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28397,7 +22289,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28406,7 +22297,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28415,22 +22305,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28444,7 +22330,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28453,7 +22338,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28462,7 +22346,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28471,7 +22354,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28480,7 +22362,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28489,22 +22370,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28518,7 +22395,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28527,7 +22403,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28536,7 +22411,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28545,7 +22419,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28554,7 +22427,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28563,22 +22435,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28592,7 +22460,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28601,7 +22468,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28610,7 +22476,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28619,7 +22484,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28628,7 +22492,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28637,22 +22500,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28666,7 +22525,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28675,7 +22533,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28684,7 +22541,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28693,7 +22549,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28702,7 +22557,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28711,22 +22565,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28829,7 +22679,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28838,7 +22687,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28847,7 +22695,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28856,7 +22703,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28865,7 +22711,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28874,22 +22719,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28908,7 +22749,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs50(args); + const extraSelectArgs = makeArgs_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -28923,27 +22764,21 @@ export const plans = { if (resource_person_computed_outPgResource.isUnique && !resource_person_computed_outPgResource.codec.attributes && typeof resource_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${resource_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_outPgResource.from, resource_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_outPgResource.execute(selectArgs); @@ -28952,7 +22787,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -28967,27 +22802,21 @@ export const plans = { if (resource_person_first_namePgResource.isUnique && !resource_person_first_namePgResource.codec.attributes && typeof resource_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${resource_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_namePgResource.from, resource_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_namePgResource.execute(selectArgs); @@ -28996,7 +22825,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs52(args); + const extraSelectArgs = makeArgs_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29011,27 +22840,21 @@ export const plans = { if (resource_person_computed_out_outPgResource.isUnique && !resource_person_computed_out_outPgResource.codec.attributes && typeof resource_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${resource_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_out_outPgResource.from, resource_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_out_outPgResource.execute(selectArgs); @@ -29040,7 +22863,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs53(args); + const extraSelectArgs = makeArgs_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29055,27 +22878,21 @@ export const plans = { if (resource_person_computed_inoutPgResource.isUnique && !resource_person_computed_inoutPgResource.codec.attributes && typeof resource_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${resource_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inoutPgResource.from, resource_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inoutPgResource.execute(selectArgs); @@ -29084,7 +22901,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs54(args); + const extraSelectArgs = makeArgs_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29099,27 +22916,21 @@ export const plans = { if (resource_person_computed_inout_outPgResource.isUnique && !resource_person_computed_inout_outPgResource.codec.attributes && typeof resource_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${resource_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_inout_outPgResource.from, resource_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_inout_outPgResource.execute(selectArgs); @@ -29128,7 +22939,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs55(args); + const extraSelectArgs = makeArgs_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29143,27 +22954,21 @@ export const plans = { if (resource_person_existsPgResource.isUnique && !resource_person_existsPgResource.codec.attributes && typeof resource_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${resource_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_existsPgResource.from, resource_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_existsPgResource.execute(selectArgs); @@ -29172,7 +22977,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs56(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29187,27 +22992,21 @@ export const plans = { if (resource_person_computed_first_arg_inout_outPgResource.isUnique && !resource_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inout_outPgResource.from, resource_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -29216,7 +23015,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs57(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29231,27 +23030,21 @@ export const plans = { if (resource_person_optional_missing_middle_1PgResource.isUnique && !resource_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_1PgResource.from, resource_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -29260,7 +23053,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs58(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29275,27 +23068,21 @@ export const plans = { if (resource_person_optional_missing_middle_2PgResource.isUnique && !resource_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_2PgResource.from, resource_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -29304,7 +23091,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs59(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29319,27 +23106,21 @@ export const plans = { if (resource_person_optional_missing_middle_3PgResource.isUnique && !resource_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_3PgResource.from, resource_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -29348,7 +23129,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs60(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29363,27 +23144,21 @@ export const plans = { if (resource_person_optional_missing_middle_4PgResource.isUnique && !resource_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_4PgResource.from, resource_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -29392,7 +23167,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs61(args); + const extraSelectArgs = makeArgs_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29407,27 +23182,21 @@ export const plans = { if (resource_person_optional_missing_middle_5PgResource.isUnique && !resource_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_optional_missing_middle_5PgResource.from, resource_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -29436,7 +23205,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs62(args); + const extraSelectArgs = makeArgs_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29451,27 +23220,21 @@ export const plans = { if (resource_person_computed_complexPgResource.isUnique && !resource_person_computed_complexPgResource.codec.attributes && typeof resource_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${resource_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_complexPgResource.from, resource_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_complexPgResource.execute(selectArgs); @@ -29480,7 +23243,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs63(args); + const extraSelectArgs = makeArgs_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29495,27 +23258,21 @@ export const plans = { if (resource_person_first_postPgResource.isUnique && !resource_person_first_postPgResource.codec.attributes && typeof resource_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${resource_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_first_postPgResource.from, resource_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_first_postPgResource.execute(selectArgs); @@ -29524,7 +23281,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs64(args); + const extraSelectArgs = makeArgs_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29539,27 +23296,21 @@ export const plans = { if (resource_person_computed_first_arg_inoutPgResource.isUnique && !resource_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_computed_first_arg_inoutPgResource.from, resource_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -29578,7 +23329,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29587,7 +23337,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29596,7 +23345,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29605,7 +23353,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29614,7 +23361,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29623,12 +23369,9 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } } @@ -29648,7 +23391,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29657,7 +23399,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29666,7 +23407,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29675,7 +23415,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29684,7 +23423,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29696,7 +23434,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs67(args); + const extraSelectArgs = makeArgs_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29711,27 +23449,21 @@ export const plans = { if (resource_person_type_functionPgResource.isUnique && !resource_person_type_functionPgResource.codec.attributes && typeof resource_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${resource_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_functionPgResource.from, resource_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_functionPgResource.execute(selectArgs); @@ -29740,7 +23472,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs68(args); + const extraSelectArgs = makeArgs_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29755,27 +23487,21 @@ export const plans = { if (resource_person_type_function_listPgResource.isUnique && !resource_person_type_function_listPgResource.codec.attributes && typeof resource_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${resource_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_person_type_function_listPgResource.from, resource_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_person_type_function_listPgResource.execute(selectArgs); @@ -29830,7 +23556,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29839,7 +23564,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29848,7 +23572,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29857,7 +23580,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29866,7 +23588,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29875,22 +23596,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29907,7 +23624,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29916,7 +23632,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29925,7 +23640,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29934,7 +23648,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29943,7 +23656,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29952,22 +23664,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29994,7 +23702,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30003,7 +23710,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30012,7 +23718,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30021,7 +23726,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30030,7 +23734,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30039,22 +23742,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30071,7 +23770,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30080,7 +23778,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30089,7 +23786,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30098,7 +23794,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30107,7 +23802,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30116,22 +23810,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30206,7 +23896,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs69(args); + const extraSelectArgs = makeArgs_compound_type_computed_field(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30221,27 +23911,21 @@ export const plans = { if (resource_compound_type_computed_fieldPgResource.isUnique && !resource_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${resource_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_compound_type_computed_fieldPgResource.from, resource_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -30348,7 +24032,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30357,7 +24040,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30366,7 +24048,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30375,7 +24056,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30384,7 +24064,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30396,7 +24075,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs71(args); + const extraSelectArgs = makeArgs_post_computed_interval_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30411,27 +24090,21 @@ export const plans = { if (resource_post_computed_interval_arrayPgResource.isUnique && !resource_post_computed_interval_arrayPgResource.codec.attributes && typeof resource_post_computed_interval_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${resource_post_computed_interval_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_arrayPgResource.from, resource_post_computed_interval_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_arrayPgResource.execute(selectArgs); @@ -30440,7 +24113,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs72(args); + const extraSelectArgs = makeArgs_post_computed_text_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30455,27 +24128,21 @@ export const plans = { if (resource_post_computed_text_arrayPgResource.isUnique && !resource_post_computed_text_arrayPgResource.codec.attributes && typeof resource_post_computed_text_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${resource_post_computed_text_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_text_arrayPgResource.from, resource_post_computed_text_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_text_arrayPgResource.execute(selectArgs); @@ -30484,7 +24151,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs73(args); + const extraSelectArgs = makeArgs_post_computed_with_optional_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30499,27 +24166,21 @@ export const plans = { if (resource_post_computed_with_optional_argPgResource.isUnique && !resource_post_computed_with_optional_argPgResource.codec.attributes && typeof resource_post_computed_with_optional_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${resource_post_computed_with_optional_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_optional_argPgResource.from, resource_post_computed_with_optional_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_optional_argPgResource.execute(selectArgs); @@ -30528,7 +24189,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs74(args); + const extraSelectArgs = makeArgs_post_computed_with_required_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30543,27 +24204,21 @@ export const plans = { if (resource_post_computed_with_required_argPgResource.isUnique && !resource_post_computed_with_required_argPgResource.codec.attributes && typeof resource_post_computed_with_required_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${resource_post_computed_with_required_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_required_argPgResource.from, resource_post_computed_with_required_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_required_argPgResource.execute(selectArgs); @@ -30572,7 +24227,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs75(args); + const extraSelectArgs = makeArgs_post_headline_trimmed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30587,27 +24242,21 @@ export const plans = { if (resource_post_headline_trimmedPgResource.isUnique && !resource_post_headline_trimmedPgResource.codec.attributes && typeof resource_post_headline_trimmedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${resource_post_headline_trimmedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmedPgResource.from, resource_post_headline_trimmedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmedPgResource.execute(selectArgs); @@ -30616,7 +24265,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs76(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_no_defaults(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30631,27 +24280,21 @@ export const plans = { if (resource_post_headline_trimmed_no_defaultsPgResource.isUnique && !resource_post_headline_trimmed_no_defaultsPgResource.codec.attributes && typeof resource_post_headline_trimmed_no_defaultsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${resource_post_headline_trimmed_no_defaultsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.from, resource_post_headline_trimmed_no_defaultsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_no_defaultsPgResource.execute(selectArgs); @@ -30660,7 +24303,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs77(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_strict(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30675,27 +24318,21 @@ export const plans = { if (resource_post_headline_trimmed_strictPgResource.isUnique && !resource_post_headline_trimmed_strictPgResource.codec.attributes && typeof resource_post_headline_trimmed_strictPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${resource_post_headline_trimmed_strictPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_strictPgResource.from, resource_post_headline_trimmed_strictPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_strictPgResource.execute(selectArgs); @@ -30704,7 +24341,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs78(args); + const extraSelectArgs = makeArgs_post_computed_compound_type_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30719,27 +24356,21 @@ export const plans = { if (resource_post_computed_compound_type_arrayPgResource.isUnique && !resource_post_computed_compound_type_arrayPgResource.codec.attributes && typeof resource_post_computed_compound_type_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${resource_post_computed_compound_type_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_compound_type_arrayPgResource.from, resource_post_computed_compound_type_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_compound_type_arrayPgResource.execute(selectArgs); @@ -30781,7 +24412,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30790,7 +24420,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30799,7 +24428,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30808,7 +24436,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30817,7 +24444,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30826,22 +24452,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30904,64 +24526,70 @@ export const plans = { } }, CompoundTypeInput: { - "__inputPlan": function CompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, IntervalInput: { @@ -31475,31 +25103,21 @@ export const plans = { } }, TypesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31508,19 +25126,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { typesUniques[0].attributes.forEach(attributeName => { - const attribute = typesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31529,11 +25145,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -31541,7 +25154,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31551,11 +25164,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -31563,7 +25173,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31573,11 +25183,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "ASC", ...(undefined != null ? { @@ -31585,7 +25192,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31595,11 +25202,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "DESC", ...(undefined != null ? { @@ -31607,7 +25211,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31617,11 +25221,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "ASC", ...(undefined != null ? { @@ -31629,7 +25230,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31639,11 +25240,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "DESC", ...(undefined != null ? { @@ -31651,7 +25249,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31661,11 +25259,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "ASC", ...(undefined != null ? { @@ -31673,7 +25268,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31683,11 +25278,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "DESC", ...(undefined != null ? { @@ -31695,7 +25287,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31705,11 +25297,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "ASC", ...(undefined != null ? { @@ -31717,7 +25306,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31727,11 +25316,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "DESC", ...(undefined != null ? { @@ -31739,7 +25325,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31749,11 +25335,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "ASC", ...(undefined != null ? { @@ -31761,7 +25344,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31771,11 +25354,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "DESC", ...(undefined != null ? { @@ -31783,7 +25363,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31793,11 +25373,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "ASC", ...(undefined != null ? { @@ -31805,7 +25382,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31815,11 +25392,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "DESC", ...(undefined != null ? { @@ -31827,7 +25401,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31837,11 +25411,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "ASC", ...(undefined != null ? { @@ -31849,7 +25420,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31859,11 +25430,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "DESC", ...(undefined != null ? { @@ -31871,7 +25439,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31881,11 +25449,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "ASC", ...(undefined != null ? { @@ -31893,7 +25458,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31903,11 +25468,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "DESC", ...(undefined != null ? { @@ -31915,7 +25477,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31925,11 +25487,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "ASC", ...(undefined != null ? { @@ -31937,7 +25496,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31947,11 +25506,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "DESC", ...(undefined != null ? { @@ -31959,7 +25515,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31969,11 +25525,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "ASC", ...(undefined != null ? { @@ -31981,7 +25534,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31991,11 +25544,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "DESC", ...(undefined != null ? { @@ -32003,7 +25553,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32013,11 +25563,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "ASC", ...(undefined != null ? { @@ -32025,7 +25572,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32035,11 +25582,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "DESC", ...(undefined != null ? { @@ -32047,7 +25591,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32057,11 +25601,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "ASC", ...(undefined != null ? { @@ -32069,7 +25610,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32079,11 +25620,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "DESC", ...(undefined != null ? { @@ -32091,7 +25629,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32101,11 +25639,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "ASC", ...(undefined != null ? { @@ -32113,7 +25648,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32123,11 +25658,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "DESC", ...(undefined != null ? { @@ -32135,7 +25667,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32145,11 +25677,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "ASC", ...(undefined != null ? { @@ -32157,7 +25686,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32167,11 +25696,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "DESC", ...(undefined != null ? { @@ -32179,7 +25705,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32189,11 +25715,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "ASC", ...(undefined != null ? { @@ -32201,7 +25724,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32211,11 +25734,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "DESC", ...(undefined != null ? { @@ -32223,7 +25743,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32233,11 +25753,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "ASC", ...(undefined != null ? { @@ -32245,7 +25762,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32255,11 +25772,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "DESC", ...(undefined != null ? { @@ -32267,7 +25781,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32277,11 +25791,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "ASC", ...(undefined != null ? { @@ -32289,7 +25800,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32299,11 +25810,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "DESC", ...(undefined != null ? { @@ -32311,7 +25819,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32321,11 +25829,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "ASC", ...(undefined != null ? { @@ -32333,7 +25838,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32343,11 +25848,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "DESC", ...(undefined != null ? { @@ -32355,7 +25857,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32365,11 +25867,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "ASC", ...(undefined != null ? { @@ -32377,7 +25876,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32387,11 +25886,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_type", direction: "DESC", ...(undefined != null ? { @@ -32399,7 +25895,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32409,11 +25905,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -32421,7 +25914,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32431,11 +25924,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -32443,7 +25933,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32453,11 +25943,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "ASC", ...(undefined != null ? { @@ -32465,7 +25952,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32475,11 +25962,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_compound_type", direction: "DESC", ...(undefined != null ? { @@ -32487,7 +25971,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32497,11 +25981,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "ASC", ...(undefined != null ? { @@ -32509,7 +25990,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32519,11 +26000,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_nested_compound_type", direction: "DESC", ...(undefined != null ? { @@ -32531,7 +26009,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32541,11 +26019,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "ASC", ...(undefined != null ? { @@ -32553,7 +26028,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32563,11 +26038,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "DESC", ...(undefined != null ? { @@ -32575,7 +26047,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32585,11 +26057,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "ASC", ...(undefined != null ? { @@ -32597,7 +26066,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32607,11 +26076,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "DESC", ...(undefined != null ? { @@ -32619,7 +26085,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32629,11 +26095,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -32641,7 +26104,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32651,11 +26114,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -32663,7 +26123,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32673,11 +26133,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -32685,7 +26142,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32695,11 +26152,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -32707,7 +26161,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32717,11 +26171,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -32729,7 +26180,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32739,11 +26190,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -32751,7 +26199,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32761,11 +26209,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "ASC", ...(undefined != null ? { @@ -32773,7 +26218,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32783,11 +26228,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "DESC", ...(undefined != null ? { @@ -32795,7 +26237,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32805,11 +26247,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "ASC", ...(undefined != null ? { @@ -32817,7 +26256,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32827,11 +26266,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "DESC", ...(undefined != null ? { @@ -32839,7 +26275,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32849,11 +26285,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "ASC", ...(undefined != null ? { @@ -32861,7 +26294,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32871,11 +26304,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "DESC", ...(undefined != null ? { @@ -32883,7 +26313,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32893,11 +26323,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "ASC", ...(undefined != null ? { @@ -32905,7 +26332,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32915,11 +26342,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "DESC", ...(undefined != null ? { @@ -32927,7 +26351,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32937,11 +26361,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "ASC", ...(undefined != null ? { @@ -32949,7 +26370,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32959,11 +26380,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "DESC", ...(undefined != null ? { @@ -32971,7 +26389,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32981,11 +26399,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "ASC", ...(undefined != null ? { @@ -32993,7 +26408,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33003,11 +26418,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "DESC", ...(undefined != null ? { @@ -33015,7 +26427,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33025,11 +26437,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "ASC", ...(undefined != null ? { @@ -33037,7 +26446,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33047,11 +26456,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "DESC", ...(undefined != null ? { @@ -33059,7 +26465,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33069,11 +26475,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "ASC", ...(undefined != null ? { @@ -33081,7 +26484,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33091,11 +26494,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "DESC", ...(undefined != null ? { @@ -33103,7 +26503,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33113,11 +26513,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "ASC", ...(undefined != null ? { @@ -33125,7 +26522,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33135,11 +26532,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "DESC", ...(undefined != null ? { @@ -33147,7 +26541,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33156,8 +26550,8 @@ export const plans = { }, TypeCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -33170,17 +26564,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, smallint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "smallint", @@ -33193,17 +26585,15 @@ export const plans = { type: "attribute", attribute: "smallint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.smallint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, bigint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "bigint", @@ -33216,17 +26606,15 @@ export const plans = { type: "attribute", attribute: "bigint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.bigint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numeric: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numeric", @@ -33239,17 +26627,15 @@ export const plans = { type: "attribute", attribute: "numeric", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numeric.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, decimal: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "decimal", @@ -33262,17 +26648,15 @@ export const plans = { type: "attribute", attribute: "decimal", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.decimal.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, boolean: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "boolean", @@ -33285,17 +26669,15 @@ export const plans = { type: "attribute", attribute: "boolean", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.boolean.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, varchar: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "varchar", @@ -33308,17 +26690,15 @@ export const plans = { type: "attribute", attribute: "varchar", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.varchar.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum", @@ -33331,17 +26711,15 @@ export const plans = { type: "attribute", attribute: "enum", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -33354,17 +26732,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain", @@ -33377,17 +26753,15 @@ export const plans = { type: "attribute", attribute: "domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain2", @@ -33400,17 +26774,15 @@ export const plans = { type: "attribute", attribute: "domain2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.domain2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anotherIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array", @@ -33423,17 +26795,15 @@ export const plans = { type: "attribute", attribute: "text_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, json: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json", @@ -33446,17 +26816,15 @@ export const plans = { type: "attribute", attribute: "json", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.json.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.json)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonb: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "jsonb", @@ -33469,17 +26837,15 @@ export const plans = { type: "attribute", attribute: "jsonb", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.jsonb.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_range", @@ -33492,17 +26858,15 @@ export const plans = { type: "attribute", attribute: "nullable_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numrange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numrange", @@ -33515,17 +26879,15 @@ export const plans = { type: "attribute", attribute: "numrange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.numrange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, numrangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, daterange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "daterange", @@ -33538,17 +26900,15 @@ export const plans = { type: "attribute", attribute: "daterange", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.daterange.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, daterangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, anIntRange: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "an_int_range", @@ -33561,17 +26921,15 @@ export const plans = { type: "attribute", attribute: "an_int_range", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.an_int_range.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntRangeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamp", @@ -33584,17 +26942,15 @@ export const plans = { type: "attribute", attribute: "timestamp", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamp.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz", @@ -33607,17 +26963,15 @@ export const plans = { type: "attribute", attribute: "timestamptz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timestamptz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, date: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date", @@ -33630,17 +26984,15 @@ export const plans = { type: "attribute", attribute: "date", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.date.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.date)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, time: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "time", @@ -33653,17 +27005,15 @@ export const plans = { type: "attribute", attribute: "time", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.time.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.time)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timetz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timetz", @@ -33676,17 +27026,15 @@ export const plans = { type: "attribute", attribute: "timetz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.timetz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timetz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, interval: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval", @@ -33699,17 +27047,15 @@ export const plans = { type: "attribute", attribute: "interval", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.interval)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intervalArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval_array", @@ -33722,17 +27068,15 @@ export const plans = { type: "attribute", attribute: "interval_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.interval_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, intervalArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, money: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "money", @@ -33745,17 +27089,15 @@ export const plans = { type: "attribute", attribute: "money", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.money.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.money)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type", @@ -33768,17 +27110,15 @@ export const plans = { type: "attribute", attribute: "compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nested_compound_type", @@ -33791,17 +27131,15 @@ export const plans = { type: "attribute", attribute: "nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_compound_type", @@ -33814,17 +27152,15 @@ export const plans = { type: "attribute", attribute: "nullable_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableNestedCompoundType: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_nested_compound_type", @@ -33837,17 +27173,15 @@ export const plans = { type: "attribute", attribute: "nullable_nested_compound_type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullable_nested_compound_type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, nestedCompoundTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, point: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "point", @@ -33860,17 +27194,15 @@ export const plans = { type: "attribute", attribute: "point", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.point.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullablePoint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullablePoint", @@ -33883,17 +27215,15 @@ export const plans = { type: "attribute", attribute: "nullablePoint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.nullablePoint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -33906,17 +27236,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -33929,17 +27257,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -33952,17 +27278,15 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regproc: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regproc", @@ -33975,17 +27299,15 @@ export const plans = { type: "attribute", attribute: "regproc", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regproc.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regproc)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regprocedure: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regprocedure", @@ -33998,17 +27320,15 @@ export const plans = { type: "attribute", attribute: "regprocedure", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regprocedure.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regprocedure)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoper: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoper", @@ -34021,17 +27341,15 @@ export const plans = { type: "attribute", attribute: "regoper", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoper.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoper)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoperator: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoperator", @@ -34044,17 +27362,15 @@ export const plans = { type: "attribute", attribute: "regoperator", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regoperator.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoperator)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regclass: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regclass", @@ -34067,17 +27383,15 @@ export const plans = { type: "attribute", attribute: "regclass", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regclass.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regclass)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regtype: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regtype", @@ -34090,17 +27404,15 @@ export const plans = { type: "attribute", attribute: "regtype", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regtype.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regtype)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regconfig: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regconfig", @@ -34113,17 +27425,15 @@ export const plans = { type: "attribute", attribute: "regconfig", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regconfig.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regconfig)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regdictionary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regdictionary", @@ -34136,17 +27446,15 @@ export const plans = { type: "attribute", attribute: "regdictionary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.regdictionary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regdictionary)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, textArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text_array_domain", @@ -34159,17 +27467,15 @@ export const plans = { type: "attribute", attribute: "text_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.text_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, int8ArrayDomain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int8_array_domain", @@ -34182,17 +27488,15 @@ export const plans = { type: "attribute", attribute: "int8_array_domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.int8_array_domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int8ArrayDomainCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltree: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree", @@ -34205,17 +27509,15 @@ export const plans = { type: "attribute", attribute: "ltree", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_codec_ltree)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltreeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree_array", @@ -34228,13 +27530,11 @@ export const plans = { type: "attribute", attribute: "ltree_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_types.attributes.ltree_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_types_attributes_ltree_array_codec_ltree_)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BigFloatRangeInput: { @@ -34262,29 +27562,30 @@ export const plans = { inclusive: undefined }, NestedCompoundTypeInput: { - "__inputPlan": function NestedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, bazBuz: { - applyPlan($insert, val) { - $insert.set("baz_buz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("baz_buz", bakedInputRuntime(schema, field.type, val)); + } } }, PointInput: { @@ -34317,26 +27618,18 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_OUT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -34349,14 +27642,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_computed_outPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -34369,14 +27662,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -34389,14 +27682,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_person_first_namePgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_first_namePgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_person_first_namePgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -34409,19 +27702,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34430,19 +27721,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { personUniques[0].attributes.forEach(attributeName => { - const attribute = personCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34451,11 +27740,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -34463,7 +27749,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34473,11 +27759,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -34485,7 +27768,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34495,11 +27778,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -34507,7 +27787,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34517,11 +27797,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -34529,7 +27806,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34539,11 +27816,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -34551,7 +27825,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34561,11 +27835,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -34573,7 +27844,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34583,11 +27854,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -34595,7 +27863,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34605,11 +27873,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -34617,7 +27882,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34627,11 +27892,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "ASC", ...(undefined != null ? { @@ -34639,7 +27901,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34649,11 +27911,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "site", direction: "DESC", ...(undefined != null ? { @@ -34661,7 +27920,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34671,11 +27930,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -34683,7 +27939,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34693,11 +27949,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -34705,7 +27958,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34715,11 +27968,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -34727,7 +27977,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34737,11 +27987,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -34749,7 +27996,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34759,11 +28006,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -34771,7 +28015,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34781,11 +28025,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -34793,7 +28034,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34803,11 +28044,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -34815,7 +28053,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34825,11 +28063,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -34837,7 +28072,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34847,11 +28082,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -34859,7 +28091,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34869,11 +28101,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -34881,7 +28110,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34964,26 +28193,18 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPUTED_WITH_OPTIONAL_ARG_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "asc".toUpperCase() @@ -34996,14 +28217,14 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ - placeholder: step.alias + placeholder: queryBuilder.alias })}`; - step.orderBy({ + queryBuilder.orderBy({ codec: resource_post_computed_with_optional_argPgResource.codec, fragment: expression, direction: "desc".toUpperCase() @@ -35016,19 +28237,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35037,19 +28256,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35058,11 +28275,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -35070,7 +28284,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35080,11 +28294,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -35092,7 +28303,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35102,11 +28313,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "ASC", ...(undefined != null ? { @@ -35114,7 +28322,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35124,11 +28332,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "DESC", ...(undefined != null ? { @@ -35136,7 +28341,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35146,11 +28351,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -35158,7 +28360,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35168,11 +28370,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -35180,7 +28379,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35190,11 +28389,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -35202,7 +28398,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35212,11 +28408,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -35224,7 +28417,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35233,8 +28426,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35247,17 +28440,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, headline: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "headline", @@ -35270,17 +28461,15 @@ export const plans = { type: "attribute", attribute: "headline", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.headline.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -35293,17 +28482,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -35316,17 +28503,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enums: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enums", @@ -35339,17 +28524,15 @@ export const plans = { type: "attribute", attribute: "enums", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.enums.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anEnumArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, comptypes: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "comptypes", @@ -35362,47 +28545,46 @@ export const plans = { type: "attribute", attribute: "comptypes", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.comptypes.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, comptypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedWithOptionalArg: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_post_computed_with_optional_argPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_post_computed_with_optional_argPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_post_computed_with_optional_argPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_post_computed_with_optional_argPgResource.codec)}`); } } } }, ComptypeInput: { - "__inputPlan": function ComptypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, schedule: { - applyPlan($insert, val) { - $insert.set("schedule", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("schedule", bakedInputRuntime(schema, field.type, val)); + } }, isOptimised: { - applyPlan($insert, val) { - $insert.set("is_optimised", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_optimised", bakedInputRuntime(schema, field.type, val)); + } } }, ForeignKeysConnection: { @@ -35454,23 +28636,12 @@ export const plans = { } }, ForeignKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PERSON_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -35478,7 +28649,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35488,11 +28659,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -35500,7 +28668,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35510,11 +28678,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "ASC", ...(undefined != null ? { @@ -35522,7 +28687,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35532,11 +28697,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "DESC", ...(undefined != null ? { @@ -35544,7 +28706,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35554,11 +28716,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "ASC", ...(undefined != null ? { @@ -35566,7 +28725,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35576,11 +28735,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "DESC", ...(undefined != null ? { @@ -35588,7 +28744,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35597,8 +28753,8 @@ export const plans = { }, ForeignKeyCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -35611,17 +28767,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_1", @@ -35634,17 +28788,15 @@ export const plans = { type: "attribute", attribute: "compound_key_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_2", @@ -35657,13 +28809,11 @@ export const plans = { type: "attribute", attribute: "compound_key_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecret: { @@ -35726,31 +28876,21 @@ export const plans = { } }, CompoundKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35759,19 +28899,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = compoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35780,11 +28918,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -35792,7 +28927,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35802,11 +28937,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -35814,7 +28946,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35824,11 +28956,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -35836,7 +28965,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35846,11 +28975,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -35858,7 +28984,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35868,11 +28994,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -35880,7 +29003,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35890,11 +29013,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -35902,7 +29022,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35911,8 +29031,8 @@ export const plans = { }, CompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -35925,17 +29045,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -35948,17 +29066,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -35971,13 +29087,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_compoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTable: { @@ -36492,8 +29606,8 @@ export const plans = { }, PersonCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -36506,17 +29620,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -36529,17 +29641,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, aliases: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aliases", @@ -36552,17 +29662,15 @@ export const plans = { type: "attribute", attribute: "aliases", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.aliases.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, textArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -36575,17 +29683,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -36598,17 +29704,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, emailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, site: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "site", @@ -36621,17 +29725,15 @@ export const plans = { type: "attribute", attribute: "site", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.site.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, wrappedUrlCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -36644,17 +29746,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -36667,17 +29767,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -36690,17 +29788,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -36713,17 +29809,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -36736,40 +29830,38 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_person.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, computedOut: { - applyPlan($condition, val) { + apply($condition, val) { + if (val === undefined) return; if (typeof resource_person_computed_outPgResource.from !== "function") { throw new Error("Invalid computed attribute 'from'"); } const expression = sql`${resource_person_computed_outPgResource.from({ placeholder: $condition.alias })}`; - if (val.getRaw().evalIs(null)) { + if (val === null) { $condition.where(sql`${expression} is null`); } else { - $condition.where(sql`${expression} = ${$condition.placeholder(val.get(), resource_person_computed_outPgResource.codec)}`); + $condition.where(sql`${expression} = ${sqlValueWithCodec(val, resource_person_computed_outPgResource.codec)}`); } } } }, WrappedUrlInput: { - "__inputPlan": function WrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, NonUpdatableViewsConnection: { @@ -36804,23 +29896,12 @@ export const plans = { } }, NonUpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COLUMN_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "ASC", ...(undefined != null ? { @@ -36828,7 +29909,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36838,11 +29919,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "DESC", ...(undefined != null ? { @@ -36850,7 +29928,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36859,8 +29937,8 @@ export const plans = { }, NonUpdatableViewCondition: { column: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "?column?", @@ -36873,13 +29951,11 @@ export const plans = { type: "attribute", attribute: "?column?", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nonUpdatableView.attributes["?column?"].codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, InputsConnection: { @@ -36908,31 +29984,21 @@ export const plans = { } }, InputsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36941,19 +30007,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36962,11 +30026,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36974,7 +30035,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36984,11 +30045,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36996,7 +30054,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37005,8 +30063,8 @@ export const plans = { }, InputCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37019,13 +30077,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_inputs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PatchesConnection: { @@ -37054,31 +30110,21 @@ export const plans = { } }, PatchesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37087,19 +30133,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37108,11 +30152,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37120,7 +30161,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37130,11 +30171,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37142,7 +30180,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37151,8 +30189,8 @@ export const plans = { }, PatchCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37165,13 +30203,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_patchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedsConnection: { @@ -37200,31 +30236,21 @@ export const plans = { } }, ReservedsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37233,19 +30259,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37254,11 +30278,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37266,7 +30287,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37276,11 +30297,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37288,7 +30306,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37297,8 +30315,8 @@ export const plans = { }, ReservedCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37311,13 +30329,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedPatchRecordsConnection: { @@ -37346,31 +30362,21 @@ export const plans = { } }, ReservedPatchRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37379,19 +30385,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37400,11 +30404,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37412,7 +30413,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37422,11 +30423,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37434,7 +30432,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37443,8 +30441,8 @@ export const plans = { }, ReservedPatchRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37457,13 +30455,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedPatchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedInputRecordsConnection: { @@ -37492,31 +30488,21 @@ export const plans = { } }, ReservedInputRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37525,19 +30511,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37546,11 +30530,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37558,7 +30539,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37568,11 +30549,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37580,7 +30558,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37589,8 +30567,8 @@ export const plans = { }, ReservedInputRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37603,13 +30581,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedInput.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, DefaultValuesConnection: { @@ -37638,31 +30614,21 @@ export const plans = { } }, DefaultValuesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37671,19 +30637,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37692,11 +30656,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37704,7 +30665,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37714,11 +30675,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37726,7 +30684,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37736,11 +30694,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "ASC", ...(undefined != null ? { @@ -37748,7 +30703,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37758,11 +30713,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "DESC", ...(undefined != null ? { @@ -37770,7 +30722,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37779,8 +30731,8 @@ export const plans = { }, DefaultValueCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37793,17 +30745,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullValue: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "null_value", @@ -37816,13 +30766,11 @@ export const plans = { type: "attribute", attribute: "null_value", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.null_value.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NoPrimaryKeysConnection: { @@ -37851,23 +30799,12 @@ export const plans = { } }, NoPrimaryKeysOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37875,7 +30812,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37885,11 +30822,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37897,7 +30831,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37907,11 +30841,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "ASC", ...(undefined != null ? { @@ -37919,7 +30850,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37929,11 +30860,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "DESC", ...(undefined != null ? { @@ -37941,7 +30869,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37950,8 +30878,8 @@ export const plans = { }, NoPrimaryKeyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37964,17 +30892,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, str: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str", @@ -37987,13 +30913,11 @@ export const plans = { type: "attribute", attribute: "str", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.str.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TestviewsConnection: { @@ -38034,23 +30958,12 @@ export const plans = { } }, TestviewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, TESTVIEWID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "ASC", ...(undefined != null ? { @@ -38058,7 +30971,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38068,11 +30981,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "DESC", ...(undefined != null ? { @@ -38080,7 +30990,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38090,11 +31000,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -38102,7 +31009,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38112,11 +31019,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -38124,7 +31028,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38134,11 +31038,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -38146,7 +31047,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38156,11 +31057,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -38168,7 +31066,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38177,8 +31075,8 @@ export const plans = { }, TestviewCondition: { testviewid: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "testviewid", @@ -38191,17 +31089,15 @@ export const plans = { type: "attribute", attribute: "testviewid", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.testviewid.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -38214,17 +31110,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -38237,13 +31131,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, MyTablesConnection: { @@ -38272,31 +31164,21 @@ export const plans = { } }, MyTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38305,19 +31187,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = myTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38326,11 +31206,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -38338,7 +31215,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38348,11 +31225,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -38360,7 +31234,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38370,11 +31244,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -38382,7 +31253,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38392,11 +31263,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -38404,7 +31272,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38413,8 +31281,8 @@ export const plans = { }, MyTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -38427,17 +31295,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -38450,13 +31316,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_myTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonSecretsConnection: { @@ -38485,31 +31349,21 @@ export const plans = { } }, PersonSecretsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38518,19 +31372,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = personSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38539,11 +31391,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -38551,7 +31400,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38561,11 +31410,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -38573,7 +31419,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38583,11 +31429,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -38595,7 +31438,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38605,11 +31448,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -38617,7 +31457,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38626,8 +31466,8 @@ export const plans = { }, PersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -38640,17 +31480,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -38663,13 +31501,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_personSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ViewTablesConnection: { @@ -38698,31 +31534,21 @@ export const plans = { } }, ViewTablesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38731,19 +31557,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38752,11 +31576,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -38764,7 +31585,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38774,11 +31595,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -38786,7 +31604,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38796,11 +31614,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -38808,7 +31623,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38818,11 +31633,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -38830,7 +31642,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38840,11 +31652,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -38852,7 +31661,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38862,11 +31671,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -38874,7 +31680,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38883,8 +31689,8 @@ export const plans = { }, ViewTableCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -38897,17 +31703,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -38920,17 +31724,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -38943,13 +31745,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable1SConnection: { @@ -38978,31 +31778,21 @@ export const plans = { } }, SimilarTable1SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39011,19 +31801,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39032,11 +31820,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39044,7 +31829,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39054,11 +31839,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39066,7 +31848,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39076,11 +31858,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -39088,7 +31867,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39098,11 +31877,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -39110,7 +31886,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39120,11 +31896,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -39132,7 +31905,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39142,11 +31915,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -39154,7 +31924,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39164,11 +31934,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -39176,7 +31943,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39186,11 +31953,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -39198,7 +31962,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39207,8 +31971,8 @@ export const plans = { }, SimilarTable1Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39221,17 +31985,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -39244,17 +32006,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -39267,17 +32027,15 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -39290,13 +32048,11 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable2SConnection: { @@ -39325,31 +32081,21 @@ export const plans = { } }, SimilarTable2SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39358,19 +32104,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39379,11 +32123,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39391,7 +32132,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39401,11 +32142,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39413,7 +32151,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39423,11 +32161,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -39435,7 +32170,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39445,11 +32180,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -39457,7 +32189,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39467,11 +32199,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "ASC", ...(undefined != null ? { @@ -39479,7 +32208,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39489,11 +32218,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "DESC", ...(undefined != null ? { @@ -39501,7 +32227,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39511,11 +32237,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "ASC", ...(undefined != null ? { @@ -39523,7 +32246,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39533,11 +32256,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "DESC", ...(undefined != null ? { @@ -39545,7 +32265,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39554,8 +32274,8 @@ export const plans = { }, SimilarTable2Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39568,17 +32288,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -39591,17 +32309,15 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col4: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col4", @@ -39614,17 +32330,15 @@ export const plans = { type: "attribute", attribute: "col4", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col4.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col5: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col5", @@ -39637,13 +32351,11 @@ export const plans = { type: "attribute", attribute: "col5", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col5.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UpdatableViewsConnection: { @@ -39687,23 +32399,12 @@ export const plans = { } }, UpdatableViewsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, X_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "ASC", ...(undefined != null ? { @@ -39711,7 +32412,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39721,11 +32422,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "DESC", ...(undefined != null ? { @@ -39733,7 +32431,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39743,11 +32441,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -39755,7 +32450,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39765,11 +32460,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -39777,7 +32469,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39787,11 +32479,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -39799,7 +32488,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39809,11 +32498,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -39821,7 +32507,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39831,11 +32517,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "ASC", ...(undefined != null ? { @@ -39843,7 +32526,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39853,11 +32536,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "DESC", ...(undefined != null ? { @@ -39865,7 +32545,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39874,8 +32554,8 @@ export const plans = { }, UpdatableViewCondition: { x: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "x", @@ -39888,17 +32568,15 @@ export const plans = { type: "attribute", attribute: "x", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.x.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -39911,17 +32589,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -39934,17 +32610,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constant: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constant", @@ -39957,13 +32631,11 @@ export const plans = { type: "attribute", attribute: "constant", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_updatableView.attributes.constant.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NullTestRecordsConnection: { @@ -39992,31 +32664,21 @@ export const plans = { } }, NullTestRecordsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40025,19 +32687,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = nullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40046,11 +32706,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40058,7 +32715,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40068,11 +32725,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40080,7 +32734,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40090,11 +32744,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -40102,7 +32753,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40112,11 +32763,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -40124,7 +32772,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40134,11 +32782,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -40146,7 +32791,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40156,11 +32801,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -40168,7 +32810,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40178,11 +32820,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -40190,7 +32829,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40200,11 +32839,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -40212,7 +32848,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40221,8 +32857,8 @@ export const plans = { }, NullTestRecordCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40235,17 +32871,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -40258,17 +32892,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -40281,17 +32913,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -40304,13 +32934,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, EdgeCasesConnection: { @@ -40335,7 +32963,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs79(args); + const extraSelectArgs = makeArgs_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -40350,27 +32978,21 @@ export const plans = { if (resource_edge_case_computedPgResource.isUnique && !resource_edge_case_computedPgResource.codec.attributes && typeof resource_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${resource_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_edge_case_computedPgResource.from, resource_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_edge_case_computedPgResource.execute(selectArgs); @@ -40395,23 +33017,12 @@ export const plans = { } }, EdgeCasesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -40419,7 +33030,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40429,11 +33040,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -40441,7 +33049,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40451,11 +33059,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -40463,7 +33068,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40473,11 +33078,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -40485,7 +33087,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40495,11 +33097,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -40507,7 +33106,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40517,11 +33116,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -40529,7 +33125,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40538,8 +33134,8 @@ export const plans = { }, EdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -40552,17 +33148,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -40575,17 +33169,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -40598,13 +33190,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_edgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LeftArmsConnection: { @@ -40633,31 +33223,21 @@ export const plans = { } }, LeftArmsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40666,19 +33246,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { left_armUniques[0].attributes.forEach(attributeName => { - const attribute = leftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40687,11 +33265,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40699,7 +33274,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40709,11 +33284,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40721,7 +33293,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40731,11 +33303,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -40743,7 +33312,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40753,11 +33322,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -40765,7 +33331,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40775,11 +33341,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -40787,7 +33350,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40797,11 +33360,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -40809,7 +33369,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40819,11 +33379,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -40831,7 +33388,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40841,11 +33398,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -40853,7 +33407,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40862,8 +33416,8 @@ export const plans = { }, LeftArmCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40876,17 +33430,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -40899,17 +33451,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -40922,17 +33472,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -40945,13 +33493,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_leftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Issue756SConnection: { @@ -40980,31 +33526,21 @@ export const plans = { } }, Issue756SOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41013,19 +33549,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = issue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41034,11 +33568,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41046,7 +33577,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41056,11 +33587,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41068,7 +33596,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41078,11 +33606,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -41090,7 +33615,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41100,11 +33625,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -41112,7 +33634,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41121,8 +33643,8 @@ export const plans = { }, Issue756Condition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41135,17 +33657,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -41158,13 +33678,11 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_issue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, notNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ListsConnection: { @@ -41193,31 +33711,21 @@ export const plans = { } }, ListsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41226,19 +33734,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { listsUniques[0].attributes.forEach(attributeName => { - const attribute = listsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41247,11 +33753,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -41259,7 +33762,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41269,11 +33772,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -41281,7 +33781,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -41290,8 +33790,8 @@ export const plans = { }, ListCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -41304,17 +33804,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array", @@ -41327,17 +33825,15 @@ export const plans = { type: "attribute", attribute: "int_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, intArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "int_array_nn", @@ -41350,17 +33846,15 @@ export const plans = { type: "attribute", attribute: "int_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.int_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, int4ArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array", @@ -41373,17 +33867,15 @@ export const plans = { type: "attribute", attribute: "enum_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enumArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum_array_nn", @@ -41396,17 +33888,15 @@ export const plans = { type: "attribute", attribute: "enum_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.enum_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, colorArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array", @@ -41419,17 +33909,15 @@ export const plans = { type: "attribute", attribute: "date_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, dateArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date_array_nn", @@ -41442,17 +33930,15 @@ export const plans = { type: "attribute", attribute: "date_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.date_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, dateArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array", @@ -41465,17 +33951,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptzArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz_array_nn", @@ -41488,17 +33972,15 @@ export const plans = { type: "attribute", attribute: "timestamptz_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.timestamptz_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, timestamptzArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArray: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array", @@ -41511,17 +33993,15 @@ export const plans = { type: "attribute", attribute: "compound_type_array", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundTypeArrayNn: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_type_array_nn", @@ -41534,20 +34014,18 @@ export const plans = { type: "attribute", attribute: "compound_type_array_nn", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_lists.attributes.compound_type_array_nn.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, compoundTypeArrayCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, mutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs80(args, ["input"]); + const selectArgs = makeArgs_mutation_out(args, ["input"]); const $result = resource_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41557,9 +34035,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41567,7 +34054,7 @@ export const plans = { }, mutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs81(args, ["input"]); + const selectArgs = makeArgs_mutation_out_setof(args, ["input"]); const $result = resource_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41577,9 +34064,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41587,7 +34083,7 @@ export const plans = { }, mutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs82(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41597,9 +34093,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41607,7 +34112,7 @@ export const plans = { }, noArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs83(args, ["input"]); + const selectArgs = makeArgs_no_args_mutation(args, ["input"]); const $result = resource_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41617,9 +34122,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41627,7 +34141,7 @@ export const plans = { }, returnVoidMutation: { plan($root, args, _info) { - const selectArgs = makeArgs84(args, ["input"]); + const selectArgs = makeArgs_return_void_mutation(args, ["input"]); const $result = resource_return_void_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41637,9 +34151,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41647,7 +34170,7 @@ export const plans = { }, mutationIntervalSet: { plan($root, args, _info) { - const selectArgs = makeArgs85(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_set(args, ["input"]); const $result = resource_mutation_interval_setPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41657,9 +34180,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41667,7 +34199,7 @@ export const plans = { }, mutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs86(args, ["input"]); + const selectArgs = makeArgs_mutation_in_out(args, ["input"]); const $result = resource_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41677,9 +34209,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41687,7 +34228,7 @@ export const plans = { }, mutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs87(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_one_col(args, ["input"]); const $result = resource_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41697,9 +34238,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41707,7 +34257,7 @@ export const plans = { }, jsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs88(args, ["input"]); + const selectArgs = makeArgs_json_identity_mutation(args, ["input"]); const $result = resource_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41717,9 +34267,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41727,7 +34286,7 @@ export const plans = { }, jsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs89(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation(args, ["input"]); const $result = resource_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41737,9 +34296,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41747,7 +34315,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs90(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41757,9 +34325,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41767,7 +34344,7 @@ export const plans = { }, jsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs91(args, ["input"]); + const selectArgs = makeArgs_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41777,9 +34354,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41787,7 +34373,7 @@ export const plans = { }, add1Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs92(args, ["input"]); + const selectArgs = makeArgs_add_1_mutation(args, ["input"]); const $result = resource_add_1_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41797,9 +34383,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41807,7 +34402,7 @@ export const plans = { }, add2Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs93(args, ["input"]); + const selectArgs = makeArgs_add_2_mutation(args, ["input"]); const $result = resource_add_2_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41817,9 +34412,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41827,7 +34431,7 @@ export const plans = { }, add3Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs94(args, ["input"]); + const selectArgs = makeArgs_add_3_mutation(args, ["input"]); const $result = resource_add_3_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41837,9 +34441,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41847,7 +34460,7 @@ export const plans = { }, add4Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs95(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation(args, ["input"]); const $result = resource_add_4_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41857,9 +34470,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41867,7 +34489,7 @@ export const plans = { }, add4MutationError: { plan($root, args, _info) { - const selectArgs = makeArgs96(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation_error(args, ["input"]); const $result = resource_add_4_mutation_errorPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41877,9 +34499,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41887,7 +34518,7 @@ export const plans = { }, mult1: { plan($root, args, _info) { - const selectArgs = makeArgs97(args, ["input"]); + const selectArgs = makeArgs_mult_1(args, ["input"]); const $result = resource_mult_1PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41897,9 +34528,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41907,7 +34547,7 @@ export const plans = { }, mult2: { plan($root, args, _info) { - const selectArgs = makeArgs98(args, ["input"]); + const selectArgs = makeArgs_mult_2(args, ["input"]); const $result = resource_mult_2PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41917,9 +34557,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41927,7 +34576,7 @@ export const plans = { }, mult3: { plan($root, args, _info) { - const selectArgs = makeArgs99(args, ["input"]); + const selectArgs = makeArgs_mult_3(args, ["input"]); const $result = resource_mult_3PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41937,9 +34586,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41947,7 +34605,7 @@ export const plans = { }, mult4: { plan($root, args, _info) { - const selectArgs = makeArgs100(args, ["input"]); + const selectArgs = makeArgs_mult_4(args, ["input"]); const $result = resource_mult_4PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41957,9 +34615,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41967,7 +34634,7 @@ export const plans = { }, mutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs101(args, ["input"]); + const selectArgs = makeArgs_mutation_in_inout(args, ["input"]); const $result = resource_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41977,9 +34644,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41987,7 +34663,7 @@ export const plans = { }, mutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs102(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out(args, ["input"]); const $result = resource_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41997,9 +34673,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42007,7 +34692,7 @@ export const plans = { }, mutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs103(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_setof(args, ["input"]); const $result = resource_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42017,9 +34702,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42027,7 +34721,7 @@ export const plans = { }, mutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs104(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42037,9 +34731,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42047,7 +34750,7 @@ export const plans = { }, intSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs105(args, ["input"]); + const selectArgs = makeArgs_int_set_mutation(args, ["input"]); const $result = resource_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42057,9 +34760,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42067,7 +34779,7 @@ export const plans = { }, mutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs106(args, ["input"]); + const selectArgs = makeArgs_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42077,9 +34789,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42087,7 +34808,7 @@ export const plans = { }, mutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs107(args, ["input"]); + const selectArgs = makeArgs_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42097,9 +34818,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42107,7 +34837,7 @@ export const plans = { }, guidFn: { plan($root, args, _info) { - const selectArgs = makeArgs108(args, ["input"]); + const selectArgs = makeArgs_guid_fn(args, ["input"]); const $result = resource_guid_fnPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42117,9 +34847,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42127,7 +34866,7 @@ export const plans = { }, mutationIntervalArray: { plan($root, args, _info) { - const selectArgs = makeArgs109(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_array(args, ["input"]); const $result = resource_mutation_interval_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42137,9 +34876,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42147,7 +34895,7 @@ export const plans = { }, mutationTextArray: { plan($root, args, _info) { - const selectArgs = makeArgs110(args, ["input"]); + const selectArgs = makeArgs_mutation_text_array(args, ["input"]); const $result = resource_mutation_text_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42157,9 +34905,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42167,7 +34924,7 @@ export const plans = { }, listBdeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs111(args, ["input"]); + const selectArgs = makeArgs_list_bde_mutation(args, ["input"]); const $result = resource_list_bde_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42177,9 +34934,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42187,7 +34953,7 @@ export const plans = { }, authenticateFail: { plan($root, args, _info) { - const selectArgs = makeArgs112(args, ["input"]); + const selectArgs = makeArgs_authenticate_fail(args, ["input"]); const $result = resource_authenticate_failPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42197,9 +34963,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42207,7 +34982,7 @@ export const plans = { }, authenticate: { plan($root, args, _info) { - const selectArgs = makeArgs113(args, ["input"]); + const selectArgs = makeArgs_authenticate(args, ["input"]); const $result = resource_authenticatePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42217,9 +34992,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42227,7 +35011,7 @@ export const plans = { }, leftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs114(args, ["input"]); + const selectArgs = makeArgs_left_arm_identity(args, ["input"]); const $result = resource_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42237,9 +35021,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42247,7 +35040,7 @@ export const plans = { }, issue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs115(args, ["input"]); + const selectArgs = makeArgs_issue756_mutation(args, ["input"]); const $result = resource_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42257,9 +35050,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42267,7 +35069,7 @@ export const plans = { }, issue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs116(args, ["input"]); + const selectArgs = makeArgs_issue756_set_mutation(args, ["input"]); const $result = resource_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42277,9 +35079,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42287,7 +35098,7 @@ export const plans = { }, authenticateMany: { plan($root, args, _info) { - const selectArgs = makeArgs117(args, ["input"]); + const selectArgs = makeArgs_authenticate_many(args, ["input"]); const $result = resource_authenticate_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42297,9 +35108,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42307,7 +35127,7 @@ export const plans = { }, authenticatePayload: { plan($root, args, _info) { - const selectArgs = makeArgs118(args, ["input"]); + const selectArgs = makeArgs_authenticate_payload(args, ["input"]); const $result = resource_authenticate_payloadPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42317,9 +35137,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42327,7 +35156,7 @@ export const plans = { }, typesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs119(args, ["input"]); + const selectArgs = makeArgs_types_mutation(args, ["input"]); const $result = resource_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42337,9 +35166,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42347,7 +35185,7 @@ export const plans = { }, mutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs120(args, ["input"]); + const selectArgs = makeArgs_mutation_out_out_compound_type(args, ["input"]); const $result = resource_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42357,9 +35195,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42367,7 +35214,7 @@ export const plans = { }, compoundTypeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs121(args, ["input"]); + const selectArgs = makeArgs_compound_type_mutation(args, ["input"]); const $result = resource_compound_type_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42377,9 +35224,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42387,7 +35243,7 @@ export const plans = { }, compoundTypeSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs122(args, ["input"]); + const selectArgs = makeArgs_compound_type_set_mutation(args, ["input"]); const $result = resource_compound_type_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42397,9 +35253,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42407,7 +35272,7 @@ export const plans = { }, tableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs123(args, ["input"]); + const selectArgs = makeArgs_table_mutation(args, ["input"]); const $result = resource_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42417,9 +35282,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42427,7 +35301,7 @@ export const plans = { }, postWithSuffix: { plan($root, args, _info) { - const selectArgs = makeArgs124(args, ["input"]); + const selectArgs = makeArgs_post_with_suffix(args, ["input"]); const $result = resource_post_with_suffixPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42437,9 +35311,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42447,7 +35330,7 @@ export const plans = { }, mutationCompoundTypeArray: { plan($root, args, _info) { - const selectArgs = makeArgs125(args, ["input"]); + const selectArgs = makeArgs_mutation_compound_type_array(args, ["input"]); const $result = resource_mutation_compound_type_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42457,9 +35340,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42467,7 +35359,7 @@ export const plans = { }, compoundTypeArrayMutation: { plan($root, args, _info) { - const selectArgs = makeArgs126(args, ["input"]); + const selectArgs = makeArgs_compound_type_array_mutation(args, ["input"]); const $result = resource_compound_type_array_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42477,9 +35369,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42487,7 +35388,7 @@ export const plans = { }, postMany: { plan($root, args, _info) { - const selectArgs = makeArgs127(args, ["input"]); + const selectArgs = makeArgs_post_many(args, ["input"]); const $result = resource_post_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42497,9 +35398,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42507,7 +35417,7 @@ export const plans = { }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs128(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42517,9 +35427,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42527,7 +35446,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs129(args, ["input"]); + const selectArgs = makeArgs_mutation_out_complex_setof(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42537,9 +35456,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42547,7 +35475,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs130(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42557,9 +35485,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42567,7 +35504,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs131(args, ["input"]); + const selectArgs = makeArgs_mutation_out_table_setof(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42577,9 +35514,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42587,7 +35533,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs132(args, ["input"]); + const selectArgs = makeArgs_table_set_mutation(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42597,9 +35543,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42607,7 +35562,7 @@ export const plans = { }, typeFunctionConnectionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs133(args, ["input"]); + const selectArgs = makeArgs_type_function_connection_mutation(args, ["input"]); const $result = resource_type_function_connection_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42617,9 +35572,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42627,7 +35591,7 @@ export const plans = { }, typeFunctionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs134(args, ["input"]); + const selectArgs = makeArgs_type_function_mutation(args, ["input"]); const $result = resource_type_function_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42637,9 +35601,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42647,7 +35620,7 @@ export const plans = { }, typeFunctionListMutation: { plan($root, args, _info) { - const selectArgs = makeArgs135(args, ["input"]); + const selectArgs = makeArgs_type_function_list_mutation(args, ["input"]); const $result = resource_type_function_list_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -42657,9 +35630,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -42667,17 +35649,17 @@ export const plans = { }, createInput: { plan(_, args) { + const $insert = pgInsertSingle(resource_inputsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_inputsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42687,17 +35669,17 @@ export const plans = { }, createPatch: { plan(_, args) { + const $insert = pgInsertSingle(resource_patchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_patchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42707,17 +35689,17 @@ export const plans = { }, createReserved: { plan(_, args) { + const $insert = pgInsertSingle(resource_reservedPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_reservedPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42727,17 +35709,17 @@ export const plans = { }, createReservedPatchRecord: { plan(_, args) { + const $insert = pgInsertSingle(resource_reservedPatchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_reservedPatchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42747,17 +35729,17 @@ export const plans = { }, createReservedInputRecord: { plan(_, args) { + const $insert = pgInsertSingle(resource_reserved_inputPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_reserved_inputPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42767,17 +35749,17 @@ export const plans = { }, createDefaultValue: { plan(_, args) { + const $insert = pgInsertSingle(resource_default_valuePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_default_valuePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42787,17 +35769,17 @@ export const plans = { }, createForeignKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42807,17 +35789,17 @@ export const plans = { }, createNoPrimaryKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42827,17 +35809,17 @@ export const plans = { }, createTestview: { plan(_, args) { + const $insert = pgInsertSingle(resource_testviewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_testviewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42847,17 +35829,17 @@ export const plans = { }, createMyTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42867,17 +35849,17 @@ export const plans = { }, createPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(resource_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42887,17 +35869,17 @@ export const plans = { }, createViewTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_view_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_view_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42907,17 +35889,17 @@ export const plans = { }, createCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42927,17 +35909,17 @@ export const plans = { }, createSimilarTable1: { plan(_, args) { + const $insert = pgInsertSingle(resource_similar_table_1PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_similar_table_1PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42947,17 +35929,17 @@ export const plans = { }, createSimilarTable2: { plan(_, args) { + const $insert = pgInsertSingle(resource_similar_table_2PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_similar_table_2PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42967,17 +35949,17 @@ export const plans = { }, createUpdatableView: { plan(_, args) { + const $insert = pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_updatable_viewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42987,17 +35969,17 @@ export const plans = { }, createNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(resource_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -43007,17 +35989,17 @@ export const plans = { }, createEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -43027,17 +36009,17 @@ export const plans = { }, createLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(resource_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -43047,17 +36029,17 @@ export const plans = { }, createIssue756: { plan(_, args) { + const $insert = pgInsertSingle(resource_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -43067,17 +36049,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(resource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -43087,17 +36069,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(resource_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -43107,17 +36089,17 @@ export const plans = { }, createList: { plan(_, args) { + const $insert = pgInsertSingle(resource_listsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_listsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -43127,17 +36109,17 @@ export const plans = { }, createType: { plan(_, args) { + const $insert = pgInsertSingle(resource_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -43147,13 +36129,13 @@ export const plans = { }, updateInputById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43168,13 +36150,13 @@ export const plans = { }, updatePatchById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43189,13 +36171,13 @@ export const plans = { }, updateReservedById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43210,13 +36192,13 @@ export const plans = { }, updateReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43231,13 +36213,13 @@ export const plans = { }, updateReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43252,13 +36234,13 @@ export const plans = { }, updateDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43273,13 +36255,13 @@ export const plans = { }, updateNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43294,13 +36276,13 @@ export const plans = { }, updateMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43315,13 +36297,13 @@ export const plans = { }, updatePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(resource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43336,13 +36318,13 @@ export const plans = { }, updateViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43357,14 +36339,14 @@ export const plans = { }, updateCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(resource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43379,13 +36361,13 @@ export const plans = { }, updateSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43400,13 +36382,13 @@ export const plans = { }, updateSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43421,13 +36403,13 @@ export const plans = { }, updateNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43442,13 +36424,13 @@ export const plans = { }, updateLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43463,13 +36445,13 @@ export const plans = { }, updateLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(resource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43484,13 +36466,13 @@ export const plans = { }, updateIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43505,13 +36487,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43526,13 +36508,13 @@ export const plans = { }, updatePersonById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43547,13 +36529,13 @@ export const plans = { }, updatePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(resource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43568,13 +36550,13 @@ export const plans = { }, updateListById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43589,13 +36571,13 @@ export const plans = { }, updateTypeById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -43610,13 +36592,13 @@ export const plans = { }, deleteInputById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_inputsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_inputsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43631,13 +36613,13 @@ export const plans = { }, deletePatchById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_patchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_patchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43652,13 +36634,13 @@ export const plans = { }, deleteReservedById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_reservedPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_reservedPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43673,13 +36655,13 @@ export const plans = { }, deleteReservedPatchRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_reservedPatchsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_reservedPatchsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43694,13 +36676,13 @@ export const plans = { }, deleteReservedInputRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_reserved_inputPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_reserved_inputPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43715,13 +36697,13 @@ export const plans = { }, deleteDefaultValueById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_default_valuePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_default_valuePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43736,13 +36718,13 @@ export const plans = { }, deleteNoPrimaryKeyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43757,13 +36739,13 @@ export const plans = { }, deleteMyTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_my_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_my_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43778,13 +36760,13 @@ export const plans = { }, deletePersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(resource_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43799,13 +36781,13 @@ export const plans = { }, deleteViewTableById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_view_tablePgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_view_tablePgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43820,14 +36802,14 @@ export const plans = { }, deleteCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(resource_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43842,13 +36824,13 @@ export const plans = { }, deleteSimilarTable1ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_similar_table_1PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_similar_table_1PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43863,13 +36845,13 @@ export const plans = { }, deleteSimilarTable2ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_similar_table_2PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_similar_table_2PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43884,13 +36866,13 @@ export const plans = { }, deleteNullTestRecordById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_null_test_recordPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_null_test_recordPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43905,13 +36887,13 @@ export const plans = { }, deleteLeftArmById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_left_armPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_left_armPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43926,13 +36908,13 @@ export const plans = { }, deleteLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(resource_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43947,13 +36929,13 @@ export const plans = { }, deleteIssue756ById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_issue756PgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_issue756PgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43968,13 +36950,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_postPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_postPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43989,13 +36971,13 @@ export const plans = { }, deletePersonById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_personPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_personPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -44010,13 +36992,13 @@ export const plans = { }, deletePersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(resource_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -44031,13 +37013,13 @@ export const plans = { }, deleteListById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_listsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_listsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -44052,13 +37034,13 @@ export const plans = { }, deleteTypeById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_typesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_typesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -44075,7 +37057,8 @@ export const plans = { MutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -44086,16 +37069,16 @@ export const plans = { }, MutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, os($object) { return $object.get("result"); @@ -44106,16 +37089,16 @@ export const plans = { }, MutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -44126,16 +37109,16 @@ export const plans = { }, MutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, NoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -44146,16 +37129,16 @@ export const plans = { }, NoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ReturnVoidMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, query() { return rootValue(); @@ -44163,16 +37146,16 @@ export const plans = { }, ReturnVoidMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationIntervalSetPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -44183,16 +37166,16 @@ export const plans = { }, MutationIntervalSetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, o($object) { return $object.get("result"); @@ -44203,17 +37186,17 @@ export const plans = { }, MutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, MutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, col1S($object) { return $object.get("result"); @@ -44224,17 +37207,17 @@ export const plans = { }, MutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, JsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -44245,17 +37228,17 @@ export const plans = { }, JsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -44266,17 +37249,17 @@ export const plans = { }, JsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, JsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -44287,17 +37270,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, JsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, json($object) { return $object.get("result"); @@ -44308,17 +37291,17 @@ export const plans = { }, JsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, Add1MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -44329,10 +37312,9 @@ export const plans = { }, Add1MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -44340,7 +37322,8 @@ export const plans = { Add2MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -44351,10 +37334,9 @@ export const plans = { }, Add2MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -44362,7 +37344,8 @@ export const plans = { Add3MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -44373,10 +37356,9 @@ export const plans = { }, Add3MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, arg1: undefined @@ -44384,7 +37366,8 @@ export const plans = { Add4MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -44395,10 +37378,9 @@ export const plans = { }, Add4MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -44406,7 +37388,8 @@ export const plans = { Add4MutationErrorPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -44417,10 +37400,9 @@ export const plans = { }, Add4MutationErrorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -44428,7 +37410,8 @@ export const plans = { Mult1Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -44439,10 +37422,9 @@ export const plans = { }, Mult1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -44450,7 +37432,8 @@ export const plans = { Mult2Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -44461,10 +37444,9 @@ export const plans = { }, Mult2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -44472,7 +37454,8 @@ export const plans = { Mult3Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -44483,10 +37466,9 @@ export const plans = { }, Mult3Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -44494,7 +37476,8 @@ export const plans = { Mult4Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integer($object) { return $object.get("result"); @@ -44505,10 +37488,9 @@ export const plans = { }, Mult4Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -44516,7 +37498,8 @@ export const plans = { MutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, ino($object) { return $object.get("result"); @@ -44527,10 +37510,9 @@ export const plans = { }, MutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -44538,7 +37520,8 @@ export const plans = { MutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44558,16 +37541,16 @@ export const plans = { }, MutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -44587,16 +37570,16 @@ export const plans = { }, MutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44616,16 +37599,16 @@ export const plans = { }, MutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, IntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, integers($object) { return $object.get("result"); @@ -44636,10 +37619,9 @@ export const plans = { }, IntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -44648,7 +37630,8 @@ export const plans = { MutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44671,16 +37654,16 @@ export const plans = { }, MutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -44700,17 +37683,17 @@ export const plans = { }, MutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, GuidFnPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, guid($object) { return $object.get("result"); @@ -44726,17 +37709,17 @@ export const plans = { }, GuidFnInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, g: undefined }, MutationIntervalArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, intervals($object) { return $object.get("result"); @@ -44747,16 +37730,16 @@ export const plans = { }, MutationIntervalArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationTextArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, strings($object) { return $object.get("result"); @@ -44767,16 +37750,16 @@ export const plans = { }, MutationTextArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ListBdeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, uuids($object) { return $object.get("result"); @@ -44787,10 +37770,9 @@ export const plans = { }, ListBdeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, b: undefined, d: undefined, @@ -44799,7 +37781,8 @@ export const plans = { AuthenticateFailPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -44828,16 +37811,16 @@ export const plans = { }, AuthenticateFailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticatePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtToken($object) { return $object.get("result"); @@ -44848,10 +37831,9 @@ export const plans = { }, AuthenticateInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -44860,7 +37842,8 @@ export const plans = { LeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -44868,7 +37851,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44884,9 +37867,7 @@ export const plans = { return resource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44902,50 +37883,52 @@ export const plans = { }, LeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, LeftArmBaseInput: { - "__inputPlan": function LeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, Issue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -44953,7 +37936,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44969,9 +37952,7 @@ export const plans = { return resource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44982,16 +37963,16 @@ export const plans = { }, Issue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, Issue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756S($object) { return $object.get("result"); @@ -45002,16 +37983,16 @@ export const plans = { }, Issue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, AuthenticateManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, jwtTokens($object) { return $object.get("result"); @@ -45022,10 +38003,9 @@ export const plans = { }, AuthenticateManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -45034,7 +38014,8 @@ export const plans = { AuthenticatePayloadPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, authPayload($object) { return $object.get("result"); @@ -45073,10 +38054,9 @@ export const plans = { }, AuthenticatePayloadInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -45085,7 +38065,8 @@ export const plans = { TypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, boolean($object) { return $object.get("result"); @@ -45096,10 +38077,9 @@ export const plans = { }, TypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -45111,7 +38091,8 @@ export const plans = { MutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -45137,17 +38118,17 @@ export const plans = { }, MutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, CompoundTypeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundType($object) { return $object.get("result"); @@ -45158,17 +38139,17 @@ export const plans = { }, CompoundTypeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -45179,17 +38160,17 @@ export const plans = { }, CompoundTypeSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, TableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -45197,7 +38178,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45213,9 +38194,7 @@ export const plans = { return resource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45231,17 +38210,17 @@ export const plans = { }, TableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, PostWithSuffixPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -45249,7 +38228,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45265,9 +38244,7 @@ export const plans = { return resource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45283,65 +38260,69 @@ export const plans = { }, PostWithSuffixInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: undefined, suffix: undefined }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, MutationCompoundTypeArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -45352,17 +38333,17 @@ export const plans = { }, MutationCompoundTypeArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CompoundTypeArrayMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundTypes($object) { return $object.get("result"); @@ -45373,17 +38354,17 @@ export const plans = { }, CompoundTypeArrayMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, PostManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, posts($object) { return $object.get("result"); @@ -45394,17 +38375,17 @@ export const plans = { }, PostManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, posts: undefined }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -45439,10 +38420,9 @@ export const plans = { }, MutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -45450,7 +38430,8 @@ export const plans = { MutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, results($object) { return $object.get("result"); @@ -45485,10 +38466,9 @@ export const plans = { }, MutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -45496,7 +38476,8 @@ export const plans = { MutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -45504,7 +38485,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45520,9 +38501,7 @@ export const plans = { return resource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45533,16 +38512,16 @@ export const plans = { }, MutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -45553,16 +38532,16 @@ export const plans = { }, MutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, people($object) { return $object.get("result"); @@ -45573,16 +38552,16 @@ export const plans = { }, TableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionConnectionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -45593,16 +38572,16 @@ export const plans = { }, TypeFunctionConnectionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, TypeFunctionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -45610,7 +38589,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45626,9 +38605,7 @@ export const plans = { return resource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45649,17 +38626,17 @@ export const plans = { }, TypeFunctionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, TypeFunctionListMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, types($object) { return $object.get("result"); @@ -45670,16 +38647,16 @@ export const plans = { }, TypeFunctionListMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateInputPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -45687,7 +38664,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45703,9 +38680,7 @@ export const plans = { return resource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45716,35 +38691,34 @@ export const plans = { }, CreateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, input: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, InputInput: { - "__inputPlan": function InputInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePatchPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -45752,7 +38726,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45768,9 +38742,7 @@ export const plans = { return resource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45781,35 +38753,34 @@ export const plans = { }, CreatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PatchInput: { - "__inputPlan": function PatchInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -45817,7 +38788,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45833,9 +38804,7 @@ export const plans = { return resource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45846,35 +38815,34 @@ export const plans = { }, CreateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reserved: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInput: { - "__inputPlan": function ReservedInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPatchRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -45882,7 +38850,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45898,9 +38866,7 @@ export const plans = { return resource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45911,35 +38877,34 @@ export const plans = { }, CreateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedPatchRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedPatchRecordInput: { - "__inputPlan": function ReservedPatchRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedInputRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -45947,7 +38912,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45963,9 +38928,7 @@ export const plans = { return resource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45976,35 +38939,34 @@ export const plans = { }, CreateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedInputRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInputRecordInput: { - "__inputPlan": function ReservedInputRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateDefaultValuePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -46012,7 +38974,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46028,9 +38990,7 @@ export const plans = { return resource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46041,42 +39001,42 @@ export const plans = { }, CreateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, defaultValue: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, DefaultValueInput: { - "__inputPlan": function DefaultValueInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, CreateForeignKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, foreignKey($object) { return $object.get("result"); @@ -46098,49 +39058,50 @@ export const plans = { }, CreateForeignKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, foreignKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ForeignKeyInput: { - "__inputPlan": function ForeignKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey1: { - applyPlan($insert, val) { - $insert.set("compound_key_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_1", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey2: { - applyPlan($insert, val) { - $insert.set("compound_key_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNoPrimaryKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -46151,42 +39112,42 @@ export const plans = { }, CreateNoPrimaryKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, noPrimaryKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NoPrimaryKeyInput: { - "__inputPlan": function NoPrimaryKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTestviewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, testview($object) { return $object.get("result"); @@ -46197,49 +39158,50 @@ export const plans = { }, CreateTestviewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, testview: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TestviewInput: { - "__inputPlan": function TestviewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, testviewid: { - applyPlan($insert, val) { - $insert.set("testviewid", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("testviewid", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -46247,7 +39209,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46263,9 +39225,7 @@ export const plans = { return resource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46276,42 +39236,42 @@ export const plans = { }, CreateMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, myTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, MyTableInput: { - "__inputPlan": function MyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -46319,7 +39279,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46335,9 +39295,7 @@ export const plans = { return resource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46353,42 +39311,42 @@ export const plans = { }, CreatePersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, personSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonSecretInput: { - "__inputPlan": function PersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateViewTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -46396,7 +39354,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46412,9 +39370,7 @@ export const plans = { return resource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46425,49 +39381,50 @@ export const plans = { }, CreateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, viewTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ViewTableInput: { - "__inputPlan": function ViewTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -46475,7 +39432,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46491,9 +39448,7 @@ export const plans = { return resource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46514,49 +39469,50 @@ export const plans = { }, CreateCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, compoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CompoundKeyInput: { - "__inputPlan": function CompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable1Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -46564,7 +39520,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46580,9 +39536,7 @@ export const plans = { return resource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46593,56 +39547,58 @@ export const plans = { }, CreateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable1: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable1Input: { - "__inputPlan": function SimilarTable1Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable2Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -46650,7 +39606,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46666,9 +39622,7 @@ export const plans = { return resource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46679,56 +39633,58 @@ export const plans = { }, CreateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable2: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable2Input: { - "__inputPlan": function SimilarTable2Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, CreateUpdatableViewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, updatableView($object) { return $object.get("result"); @@ -46739,56 +39695,58 @@ export const plans = { }, CreateUpdatableViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, updatableView: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UpdatableViewInput: { - "__inputPlan": function UpdatableViewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, x: { - applyPlan($insert, val) { - $insert.set("x", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("x", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } }, constant: { - applyPlan($insert, val) { - $insert.set("constant", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constant", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -46796,7 +39754,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46812,9 +39770,7 @@ export const plans = { return resource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46825,56 +39781,58 @@ export const plans = { }, CreateNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, nullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NullTestRecordInput: { - "__inputPlan": function NullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, edgeCase($object) { return $object.get("result"); @@ -46885,49 +39843,50 @@ export const plans = { }, CreateEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, edgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, EdgeCaseInput: { - "__inputPlan": function EdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -46935,7 +39894,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46951,9 +39910,7 @@ export const plans = { return resource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46969,56 +39926,58 @@ export const plans = { }, CreateLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LeftArmInput: { - "__inputPlan": function LeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -47026,7 +39985,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47042,9 +40001,7 @@ export const plans = { return resource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47055,42 +40012,42 @@ export const plans = { }, CreateIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, issue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, Issue756Input: { - "__inputPlan": function Issue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -47098,7 +40055,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47114,9 +40071,7 @@ export const plans = { return resource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47132,23 +40087,23 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -47156,7 +40111,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47172,9 +40127,7 @@ export const plans = { return resource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47185,105 +40138,114 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, CreateListPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -47291,7 +40253,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47307,9 +40269,7 @@ export const plans = { return resource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47320,119 +40280,130 @@ export const plans = { }, CreateListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, list: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ListInput: { - "__inputPlan": function ListInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -47440,7 +40411,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47456,9 +40427,7 @@ export const plans = { return resource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47479,371 +40448,418 @@ export const plans = { }, CreateTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, type: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TypeInput: { - "__inputPlan": function TypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -47851,7 +40867,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47867,9 +40883,7 @@ export const plans = { return resource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47880,34 +40894,35 @@ export const plans = { }, UpdateInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, InputPatch: { - "__inputPlan": function InputPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -47915,7 +40930,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47931,9 +40946,7 @@ export const plans = { return resource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47944,34 +40957,35 @@ export const plans = { }, UpdatePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PatchPatch: { - "__inputPlan": function PatchPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -47979,7 +40993,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47995,9 +41009,7 @@ export const plans = { return resource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48008,34 +41020,35 @@ export const plans = { }, UpdateReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatch: { - "__inputPlan": function ReservedPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -48043,7 +41056,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48059,9 +41072,7 @@ export const plans = { return resource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48072,34 +41083,35 @@ export const plans = { }, UpdateReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatchRecordPatch: { - "__inputPlan": function ReservedPatchRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -48107,7 +41119,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48123,9 +41135,7 @@ export const plans = { return resource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48136,34 +41146,35 @@ export const plans = { }, UpdateReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedInputRecordPatch: { - "__inputPlan": function ReservedInputRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -48171,7 +41182,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48187,9 +41198,7 @@ export const plans = { return resource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48200,41 +41209,43 @@ export const plans = { }, UpdateDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DefaultValuePatch: { - "__inputPlan": function DefaultValuePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -48245,41 +41256,43 @@ export const plans = { }, UpdateNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, noPrimaryKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NoPrimaryKeyPatch: { - "__inputPlan": function NoPrimaryKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -48287,7 +41300,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48303,9 +41316,7 @@ export const plans = { return resource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48316,41 +41327,43 @@ export const plans = { }, UpdateMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, myTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, MyTablePatch: { - "__inputPlan": function MyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -48358,7 +41371,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48374,9 +41387,7 @@ export const plans = { return resource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48392,41 +41403,43 @@ export const plans = { }, UpdatePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonSecretPatch: { - "__inputPlan": function PersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -48434,7 +41447,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48450,9 +41463,7 @@ export const plans = { return resource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48463,48 +41474,51 @@ export const plans = { }, UpdateViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ViewTablePatch: { - "__inputPlan": function ViewTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -48512,7 +41526,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48528,9 +41542,7 @@ export const plans = { return resource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48551,49 +41563,52 @@ export const plans = { }, UpdateCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, compoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CompoundKeyPatch: { - "__inputPlan": function CompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -48601,7 +41616,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48617,9 +41632,7 @@ export const plans = { return resource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48630,55 +41643,59 @@ export const plans = { }, UpdateSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable1Patch: { - "__inputPlan": function SimilarTable1Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -48686,7 +41703,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48702,9 +41719,7 @@ export const plans = { return resource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48715,55 +41730,59 @@ export const plans = { }, UpdateSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable2Patch: { - "__inputPlan": function SimilarTable2Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -48771,7 +41790,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48787,9 +41806,7 @@ export const plans = { return resource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48800,55 +41817,59 @@ export const plans = { }, UpdateNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, nullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NullTestRecordPatch: { - "__inputPlan": function NullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -48856,7 +41877,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48872,9 +41893,7 @@ export const plans = { return resource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48890,69 +41909,74 @@ export const plans = { }, UpdateLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LeftArmPatch: { - "__inputPlan": function LeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, leftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -48960,7 +41984,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48976,9 +42000,7 @@ export const plans = { return resource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48989,41 +42011,43 @@ export const plans = { }, UpdateIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, issue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, Issue756Patch: { - "__inputPlan": function Issue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -49031,7 +42055,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49047,9 +42071,7 @@ export const plans = { return resource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49065,69 +42087,75 @@ export const plans = { }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -49135,7 +42163,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49151,9 +42179,7 @@ export const plans = { return resource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49164,118 +42190,130 @@ export const plans = { }, UpdatePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -49283,7 +42321,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49299,9 +42337,7 @@ export const plans = { return resource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49312,118 +42348,131 @@ export const plans = { }, UpdateListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, listPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ListPatch: { - "__inputPlan": function ListPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -49431,7 +42480,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49447,9 +42496,7 @@ export const plans = { return resource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49470,370 +42517,419 @@ export const plans = { }, UpdateTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, typePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, TypePatch: { - "__inputPlan": function TypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, DeleteInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -49841,7 +42937,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49857,9 +42953,7 @@ export const plans = { return resource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49870,8 +42964,8 @@ export const plans = { }, DeleteInputByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -49879,7 +42973,8 @@ export const plans = { DeletePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -49887,7 +42982,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49903,9 +42998,7 @@ export const plans = { return resource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49916,8 +43009,8 @@ export const plans = { }, DeletePatchByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -49925,7 +43018,8 @@ export const plans = { DeleteReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -49933,7 +43027,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49949,9 +43043,7 @@ export const plans = { return resource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49962,8 +43054,8 @@ export const plans = { }, DeleteReservedByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -49971,7 +43063,8 @@ export const plans = { DeleteReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -49979,7 +43072,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49995,9 +43088,7 @@ export const plans = { return resource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50008,8 +43099,8 @@ export const plans = { }, DeleteReservedPatchRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -50017,7 +43108,8 @@ export const plans = { DeleteReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -50025,7 +43117,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50041,9 +43133,7 @@ export const plans = { return resource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50054,8 +43144,8 @@ export const plans = { }, DeleteReservedInputRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -50063,7 +43153,8 @@ export const plans = { DeleteDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -50071,7 +43162,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50087,9 +43178,7 @@ export const plans = { return resource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValuesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50100,8 +43189,8 @@ export const plans = { }, DeleteDefaultValueByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -50109,7 +43198,8 @@ export const plans = { DeleteNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -50120,8 +43210,8 @@ export const plans = { }, DeleteNoPrimaryKeyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -50129,7 +43219,8 @@ export const plans = { DeleteMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, myTable($object) { return $object.get("result"); @@ -50137,7 +43228,7 @@ export const plans = { query() { return rootValue(); }, - myTableEdge($mutation, args, info) { + myTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50153,9 +43244,7 @@ export const plans = { return resource_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("MyTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50166,8 +43255,8 @@ export const plans = { }, DeleteMyTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -50175,7 +43264,8 @@ export const plans = { DeletePersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, personSecret($object) { return $object.get("result"); @@ -50183,7 +43273,7 @@ export const plans = { query() { return rootValue(); }, - personSecretEdge($mutation, args, info) { + personSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50199,9 +43289,7 @@ export const plans = { return resource_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonSecretsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50217,8 +43305,8 @@ export const plans = { }, DeletePersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -50226,7 +43314,8 @@ export const plans = { DeleteViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -50234,7 +43323,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50250,9 +43339,7 @@ export const plans = { return resource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTablesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50263,8 +43350,8 @@ export const plans = { }, DeleteViewTableByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -50272,7 +43359,8 @@ export const plans = { DeleteCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, compoundKey($object) { return $object.get("result"); @@ -50280,7 +43368,7 @@ export const plans = { query() { return rootValue(); }, - compoundKeyEdge($mutation, args, info) { + compoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50296,9 +43384,7 @@ export const plans = { return resource_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CompoundKeysOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50319,8 +43405,8 @@ export const plans = { }, DeleteCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -50329,7 +43415,8 @@ export const plans = { DeleteSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -50337,7 +43424,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50353,9 +43440,7 @@ export const plans = { return resource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50366,8 +43451,8 @@ export const plans = { }, DeleteSimilarTable1ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -50375,7 +43460,8 @@ export const plans = { DeleteSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -50383,7 +43469,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50399,9 +43485,7 @@ export const plans = { return resource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50412,8 +43496,8 @@ export const plans = { }, DeleteSimilarTable2ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -50421,7 +43505,8 @@ export const plans = { DeleteNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, nullTestRecord($object) { return $object.get("result"); @@ -50429,7 +43514,7 @@ export const plans = { query() { return rootValue(); }, - nullTestRecordEdge($mutation, args, info) { + nullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50445,9 +43530,7 @@ export const plans = { return resource_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("NullTestRecordsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50458,8 +43541,8 @@ export const plans = { }, DeleteNullTestRecordByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -50467,7 +43550,8 @@ export const plans = { DeleteLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -50475,7 +43559,7 @@ export const plans = { query() { return rootValue(); }, - leftArmEdge($mutation, args, info) { + leftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50491,9 +43575,7 @@ export const plans = { return resource_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LeftArmsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50509,16 +43591,16 @@ export const plans = { }, DeleteLeftArmByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -50526,7 +43608,8 @@ export const plans = { DeleteIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, issue756($object) { return $object.get("result"); @@ -50534,7 +43617,7 @@ export const plans = { query() { return rootValue(); }, - issue756Edge($mutation, args, info) { + issue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50550,9 +43633,7 @@ export const plans = { return resource_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("Issue756SOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50563,8 +43644,8 @@ export const plans = { }, DeleteIssue756ByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -50572,7 +43653,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -50580,7 +43662,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50596,9 +43678,7 @@ export const plans = { return resource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50614,8 +43694,8 @@ export const plans = { }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -50623,7 +43703,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -50631,7 +43712,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50647,9 +43728,7 @@ export const plans = { return resource_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50660,16 +43739,16 @@ export const plans = { }, DeletePersonByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeletePersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined @@ -50677,7 +43756,8 @@ export const plans = { DeleteListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, list($object) { return $object.get("result"); @@ -50685,7 +43765,7 @@ export const plans = { query() { return rootValue(); }, - listEdge($mutation, args, info) { + listEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50701,9 +43781,7 @@ export const plans = { return resource_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ListsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50714,8 +43792,8 @@ export const plans = { }, DeleteListByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -50723,7 +43801,8 @@ export const plans = { DeleteTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, type($object) { return $object.get("result"); @@ -50731,7 +43810,7 @@ export const plans = { query() { return rootValue(); }, - typeEdge($mutation, args, info) { + typeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50747,9 +43826,7 @@ export const plans = { return resource_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("TypesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50770,8 +43847,8 @@ export const plans = { }, DeleteTypeByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 259be7da58..f2297ef94b 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/skipNodePlugin.polymorphic.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/skipNodePlugin.polymorphic.1.export.mjs @@ -1,56 +1,28 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, enumCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUnionAll, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, makeGrafastSchema, object, rootValue, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, TYPES, assertPgClassSingleStep, enumCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUnionAll, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, lambda, makeGrafastSchema, object, rootValue, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_single_table_items_meaning_of_life = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_single_table_items_meaning_of_life = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life.map(details => makeArg(path, args, details)); const executor = new PgExecutor({ name: "main", context() { @@ -230,7 +202,7 @@ const spec_gcpApplicationThirdPartyVulnerabilities = { }; const gcpApplicationThirdPartyVulnerabilitiesCodec = recordCodec(spec_gcpApplicationThirdPartyVulnerabilities); const organizationsIdentifier = sql.identifier("polymorphic", "organizations"); -const spec_organizations = { +const organizationsCodec = recordCodec({ name: "organizations", identifier: organizationsIdentifier, attributes: { @@ -268,8 +240,7 @@ const spec_organizations = { } }, executor: executor -}; -const organizationsCodec = recordCodec(spec_organizations); +}); const peopleIdentifier = sql.identifier("polymorphic", "people"); const spec_people = { name: "people", @@ -537,7 +508,7 @@ const spec_relationalChecklists = { }; const relationalChecklistsCodec = recordCodec(spec_relationalChecklists); const relationalItemRelationCompositePksIdentifier = sql.identifier("polymorphic", "relational_item_relation_composite_pks"); -const spec_relationalItemRelationCompositePks = { +const relationalItemRelationCompositePksCodec = recordCodec({ name: "relationalItemRelationCompositePks", identifier: relationalItemRelationCompositePksIdentifier, attributes: { @@ -574,10 +545,9 @@ const spec_relationalItemRelationCompositePks = { } }, executor: executor -}; -const relationalItemRelationCompositePksCodec = recordCodec(spec_relationalItemRelationCompositePks); +}); const relationalTopicsIdentifier = sql.identifier("polymorphic", "relational_topics"); -const spec_relationalTopics = { +const relationalTopicsCodec = recordCodec({ name: "relationalTopics", identifier: relationalTopicsIdentifier, attributes: { @@ -725,10 +695,9 @@ const spec_relationalTopics = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalTopicsCodec = recordCodec(spec_relationalTopics); +}); const singleTableItemRelationCompositePksIdentifier = sql.identifier("polymorphic", "single_table_item_relation_composite_pks"); -const spec_singleTableItemRelationCompositePks = { +const singleTableItemRelationCompositePksCodec = recordCodec({ name: "singleTableItemRelationCompositePks", identifier: singleTableItemRelationCompositePksIdentifier, attributes: { @@ -765,10 +734,9 @@ const spec_singleTableItemRelationCompositePks = { } }, executor: executor -}; -const singleTableItemRelationCompositePksCodec = recordCodec(spec_singleTableItemRelationCompositePks); +}); const relationalChecklistItemsIdentifier = sql.identifier("polymorphic", "relational_checklist_items"); -const spec_relationalChecklistItems = { +const relationalChecklistItemsCodec = recordCodec({ name: "relationalChecklistItems", identifier: relationalChecklistItemsIdentifier, attributes: { @@ -925,10 +893,9 @@ const spec_relationalChecklistItems = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalChecklistItemsCodec = recordCodec(spec_relationalChecklistItems); +}); const relationalDividersIdentifier = sql.identifier("polymorphic", "relational_dividers"); -const spec_relationalDividers = { +const relationalDividersCodec = recordCodec({ name: "relationalDividers", identifier: relationalDividersIdentifier, attributes: { @@ -1085,10 +1052,9 @@ const spec_relationalDividers = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalDividersCodec = recordCodec(spec_relationalDividers); +}); const relationalItemRelationsIdentifier = sql.identifier("polymorphic", "relational_item_relations"); -const spec_relationalItemRelations = { +const relationalItemRelationsCodec = recordCodec({ name: "relationalItemRelations", identifier: relationalItemRelationsIdentifier, attributes: { @@ -1134,10 +1100,9 @@ const spec_relationalItemRelations = { } }, executor: executor -}; -const relationalItemRelationsCodec = recordCodec(spec_relationalItemRelations); +}); const singleTableItemRelationsIdentifier = sql.identifier("polymorphic", "single_table_item_relations"); -const spec_singleTableItemRelations = { +const singleTableItemRelationsCodec = recordCodec({ name: "singleTableItemRelations", identifier: singleTableItemRelationsIdentifier, attributes: { @@ -1183,8 +1148,7 @@ const spec_singleTableItemRelations = { } }, executor: executor -}; -const singleTableItemRelationsCodec = recordCodec(spec_singleTableItemRelations); +}); const logEntriesIdentifier = sql.identifier("polymorphic", "log_entries"); const spec_logEntries = { name: "logEntries", @@ -1260,7 +1224,7 @@ const spec_logEntries = { }; const logEntriesCodec = recordCodec(spec_logEntries); const relationalPostsIdentifier = sql.identifier("polymorphic", "relational_posts"); -const spec_relationalPosts = { +const relationalPostsCodec = recordCodec({ name: "relationalPosts", identifier: relationalPostsIdentifier, attributes: { @@ -1426,8 +1390,7 @@ const spec_relationalPosts = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalPostsCodec = recordCodec(spec_relationalPosts); +}); const firstPartyVulnerabilitiesIdentifier = sql.identifier("polymorphic", "first_party_vulnerabilities"); const spec_firstPartyVulnerabilities = { name: "firstPartyVulnerabilities", @@ -4604,26 +4567,9 @@ const registry = makeRegistry(registryConfig); const resource_single_table_items_meaning_of_lifePgResource = registry.pgResources["single_table_items_meaning_of_life"]; const otherSource_peoplePgResource = registry.pgResources["people"]; const otherSource_single_table_itemsPgResource = registry.pgResources["single_table_items"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} const otherSource_single_table_item_relationsPgResource = registry.pgResources["single_table_item_relations"]; const otherSource_single_table_item_relation_composite_pksPgResource = registry.pgResources["single_table_item_relation_composite_pks"]; function BigIntSerialize(value) { @@ -4670,6 +4616,13 @@ const resourceByTypeName = { AwsApplication: otherSource_aws_applicationsPgResource, GcpApplication: otherSource_gcp_applicationsPgResource }; +function limitToTypes(ltt) { + if (ltt) { + return qb => qb.limitToTypes(ltt); + } else { + return () => {}; + } +} const otherSource_organizationsPgResource = registry.pgResources["organizations"]; const attributes = {}; const members2 = [{ @@ -4897,187 +4850,15 @@ const resourceByTypeName6 = { Person: otherSource_peoplePgResource, Organization: otherSource_organizationsPgResource }; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_single_table_items_meaning_of_life2 = []; +const makeArgs_single_table_items_meaning_of_life2 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life2.map(details => makeArg(path, args, details)); const otherSource_prioritiesPgResource = registry.pgResources["priorities"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_single_table_items_meaning_of_life3 = []; +const makeArgs_single_table_items_meaning_of_life3 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life3.map(details => makeArg(path, args, details)); +const argDetailsSimple_single_table_items_meaning_of_life4 = []; +const makeArgs_single_table_items_meaning_of_life4 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life4.map(details => makeArg(path, args, details)); +const argDetailsSimple_single_table_items_meaning_of_life5 = []; +const makeArgs_single_table_items_meaning_of_life5 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life5.map(details => makeArg(path, args, details)); const relational_topics_relational_topicsPgResource = registry.pgResources["relational_topics"]; const relational_item_relations_relational_item_relationsPgResource = registry.pgResources["relational_item_relations"]; const relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource = registry.pgResources["relational_item_relation_composite_pks"]; @@ -5085,107 +4866,21 @@ const resource_relational_checklistsPgResource = registry.pgResources["relationa const resource_relational_checklist_itemsPgResource = registry.pgResources["relational_checklist_items"]; const resource_relational_dividersPgResource = registry.pgResources["relational_dividers"]; const resource_relational_postsPgResource = registry.pgResources["relational_posts"]; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_all_single_tables = []; +const makeArgs_all_single_tables = (args, path = []) => argDetailsSimple_all_single_tables.map(details => makeArg(path, args, details)); const resource_all_single_tablesPgResource = registry.pgResources["all_single_tables"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_all_single_tables(args); return resource_all_single_tablesPgResource.execute(selectArgs); }; -const argDetailsSimple7 = [{ +const argDetailsSimple_get_single_table_topic_by_id = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 makeArgs_get_single_table_topic_by_id = (args, path = []) => argDetailsSimple_get_single_table_topic_by_id.map(details => makeArg(path, args, details)); const resource_get_single_table_topic_by_idPgResource = registry.pgResources["get_single_table_topic_by_id"]; const members7 = [{ resource: paths_0_resource_first_party_vulnerabilitiesPgResource, @@ -5215,51 +4910,8 @@ const members9 = []; const resourceByTypeName9 = { __proto__: null }; -const argDetailsSimple8 = []; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 argDetailsSimple_first_party_vulnerabilities_cvss_score_int = []; +const makeArgs_first_party_vulnerabilities_cvss_score_int = (args, path = []) => argDetailsSimple_first_party_vulnerabilities_cvss_score_int.map(details => makeArg(path, args, details)); const resource_first_party_vulnerabilities_cvss_score_intPgResource = registry.pgResources["first_party_vulnerabilities_cvss_score_int"]; const members10 = [{ resource: members_0_resource_aws_application_first_party_vulnerabilitiesPgResource, @@ -5446,51 +5098,8 @@ const resourceByTypeName11 = { Person: otherSource_peoplePgResource, Organization: otherSource_organizationsPgResource }; -const argDetailsSimple9 = []; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 argDetailsSimple_third_party_vulnerabilities_cvss_score_int = []; +const makeArgs_third_party_vulnerabilities_cvss_score_int = (args, path = []) => argDetailsSimple_third_party_vulnerabilities_cvss_score_int.map(details => makeArg(path, args, details)); const resource_third_party_vulnerabilities_cvss_score_intPgResource = registry.pgResources["third_party_vulnerabilities_cvss_score_int"]; const members12 = [{ resource: members_1_resource_aws_application_third_party_vulnerabilitiesPgResource, @@ -12826,7 +12435,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -12841,27 +12450,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -12920,7 +12523,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -12929,7 +12531,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -12938,7 +12539,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -12947,7 +12547,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -12956,7 +12555,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -12965,22 +12563,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -12997,7 +12591,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13006,7 +12599,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13015,7 +12607,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13024,7 +12615,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13033,7 +12623,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13042,22 +12631,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13074,7 +12659,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13083,7 +12667,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13092,7 +12675,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13101,7 +12683,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13110,7 +12691,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13119,22 +12699,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13151,7 +12727,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13160,7 +12735,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13169,7 +12743,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13178,7 +12751,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13187,7 +12759,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13196,22 +12767,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13228,7 +12795,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13237,7 +12803,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13246,7 +12811,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13255,7 +12819,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13264,7 +12827,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13273,22 +12835,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13339,7 +12897,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13348,7 +12905,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13357,7 +12913,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13366,7 +12921,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13375,7 +12929,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13384,22 +12937,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13416,7 +12965,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13425,7 +12973,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13434,7 +12981,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13443,7 +12989,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13452,7 +12997,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13461,22 +13005,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13493,7 +13033,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13502,7 +13041,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13511,7 +13049,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13520,7 +13057,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13529,7 +13065,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13538,22 +13073,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13570,7 +13101,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13579,7 +13109,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13588,7 +13117,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13597,7 +13125,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13606,7 +13133,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13615,22 +13141,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13647,7 +13169,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13656,7 +13177,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13665,7 +13185,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13674,7 +13193,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13683,7 +13201,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13692,22 +13209,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13745,7 +13258,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13754,7 +13266,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13763,7 +13274,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13772,7 +13282,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13781,7 +13290,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13790,32 +13298,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -13909,7 +13413,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13918,7 +13421,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -13927,7 +13429,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -13936,7 +13437,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -13945,7 +13445,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -13954,22 +13453,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -13986,7 +13481,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -13995,7 +13489,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14004,7 +13497,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14013,7 +13505,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14022,7 +13513,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14031,22 +13521,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14063,7 +13549,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14072,7 +13557,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14081,7 +13565,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14090,7 +13573,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14099,7 +13581,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14108,22 +13589,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14141,31 +13618,21 @@ export const plans = { } }, LogEntriesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { log_entriesUniques[0].attributes.forEach(attributeName => { - const attribute = logEntriesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14174,19 +13641,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { log_entriesUniques[0].attributes.forEach(attributeName => { - const attribute = logEntriesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14195,11 +13660,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -14207,7 +13669,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14217,11 +13679,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -14229,7 +13688,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14239,11 +13698,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -14251,7 +13707,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14261,11 +13717,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -14273,7 +13726,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14283,11 +13736,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -14295,7 +13745,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14305,11 +13755,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -14317,7 +13764,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14327,11 +13774,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "text", direction: "ASC", ...(undefined != null ? { @@ -14339,7 +13783,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14349,11 +13793,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "text", direction: "DESC", ...(undefined != null ? { @@ -14361,7 +13802,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14370,8 +13811,8 @@ export const plans = { }, LogEntryCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -14384,17 +13825,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -14407,17 +13846,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -14430,17 +13867,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, text: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text", @@ -14453,13 +13888,11 @@ export const plans = { type: "attribute", attribute: "text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, AwsApplicationsConnection: { @@ -14540,7 +13973,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14549,7 +13981,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14558,7 +13989,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14567,7 +13997,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14576,7 +14005,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14585,32 +14013,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("VulnerabilitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -14732,23 +14156,12 @@ export const plans = { } }, VulnerabilitiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -14756,7 +14169,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14766,11 +14179,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -14778,7 +14188,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14788,11 +14198,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -14800,7 +14207,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14810,11 +14217,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -14822,7 +14226,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14832,11 +14236,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "ASC", ...(undefined != null ? { @@ -14844,7 +14245,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14854,11 +14255,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "DESC", ...(undefined != null ? { @@ -14866,7 +14264,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14875,8 +14273,8 @@ export const plans = { }, VulnerabilityCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -14889,17 +14287,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Vulnerability.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -14912,17 +14308,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Vulnerability.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cvssScore: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cvss_score", @@ -14935,13 +14329,11 @@ export const plans = { type: "attribute", attribute: "cvss_score", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Vulnerability.attributes.cvss_score.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, AwsApplicationsEdge: { @@ -14954,31 +14346,21 @@ export const plans = { } }, AwsApplicationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { aws_applicationsUniques[0].attributes.forEach(attributeName => { - const attribute = awsApplicationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -14987,19 +14369,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { aws_applicationsUniques[0].attributes.forEach(attributeName => { - const attribute = awsApplicationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15008,11 +14388,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -15020,7 +14397,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15030,11 +14407,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -15042,7 +14416,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15052,11 +14426,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -15064,7 +14435,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15074,11 +14445,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -15086,7 +14454,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15096,11 +14464,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "ASC", ...(undefined != null ? { @@ -15108,7 +14473,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15118,11 +14483,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "DESC", ...(undefined != null ? { @@ -15130,7 +14492,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15140,11 +14502,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -15152,7 +14511,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15162,11 +14521,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -15174,7 +14530,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15184,11 +14540,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -15196,7 +14549,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15206,11 +14559,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -15218,7 +14568,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15228,11 +14578,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "aws_id", direction: "ASC", ...(undefined != null ? { @@ -15240,7 +14587,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15250,11 +14597,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "aws_id", direction: "DESC", ...(undefined != null ? { @@ -15262,7 +14606,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15271,8 +14615,8 @@ export const plans = { }, AwsApplicationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -15285,17 +14629,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -15308,17 +14650,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastDeployed: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_deployed", @@ -15331,17 +14671,15 @@ export const plans = { type: "attribute", attribute: "last_deployed", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.last_deployed.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -15354,17 +14692,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -15377,17 +14713,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, awsId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aws_id", @@ -15400,13 +14734,11 @@ export const plans = { type: "attribute", attribute: "aws_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.aws_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, GcpApplicationsConnection: { @@ -15487,7 +14819,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15496,7 +14827,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15505,7 +14835,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15514,7 +14843,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15523,7 +14851,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15532,32 +14859,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("VulnerabilitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -15601,31 +14924,21 @@ export const plans = { } }, GcpApplicationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { gcp_applicationsUniques[0].attributes.forEach(attributeName => { - const attribute = gcpApplicationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15634,19 +14947,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { gcp_applicationsUniques[0].attributes.forEach(attributeName => { - const attribute = gcpApplicationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15655,11 +14966,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -15667,7 +14975,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15677,11 +14985,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -15689,7 +14994,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15699,11 +15004,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -15711,7 +15013,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15721,11 +15023,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -15733,7 +15032,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15743,11 +15042,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "ASC", ...(undefined != null ? { @@ -15755,7 +15051,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15765,11 +15061,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "DESC", ...(undefined != null ? { @@ -15777,7 +15070,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15787,11 +15080,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -15799,7 +15089,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15809,11 +15099,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -15821,7 +15108,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15831,11 +15118,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -15843,7 +15127,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15853,11 +15137,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -15865,7 +15146,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15875,11 +15156,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "gcp_id", direction: "ASC", ...(undefined != null ? { @@ -15887,7 +15165,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15897,11 +15175,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "gcp_id", direction: "DESC", ...(undefined != null ? { @@ -15909,7 +15184,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15918,8 +15193,8 @@ export const plans = { }, GcpApplicationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -15932,17 +15207,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -15955,17 +15228,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastDeployed: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_deployed", @@ -15978,17 +15249,15 @@ export const plans = { type: "attribute", attribute: "last_deployed", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.last_deployed.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -16001,17 +15270,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -16024,17 +15291,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, gcpId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "gcp_id", @@ -16047,13 +15312,11 @@ export const plans = { type: "attribute", attribute: "gcp_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.gcp_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LogEntriesEdge: { @@ -16091,31 +15354,21 @@ export const plans = { } }, SingleTableItemsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16124,19 +15377,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16145,11 +15396,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -16157,7 +15405,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16167,11 +15415,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -16179,7 +15424,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16189,11 +15434,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -16201,7 +15443,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16211,11 +15453,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -16223,7 +15462,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16233,11 +15472,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -16245,7 +15481,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16255,11 +15491,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -16267,7 +15500,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16277,11 +15510,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -16289,7 +15519,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16299,11 +15529,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -16311,7 +15538,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16321,11 +15548,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -16333,7 +15557,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16343,11 +15567,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -16355,7 +15576,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16365,11 +15586,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -16377,7 +15595,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16387,11 +15605,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -16399,7 +15614,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16409,11 +15624,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -16421,7 +15633,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16431,11 +15643,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -16443,7 +15652,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16453,11 +15662,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -16465,7 +15671,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16475,11 +15681,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -16487,7 +15690,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16497,11 +15700,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -16509,7 +15709,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16519,11 +15719,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -16531,7 +15728,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16541,11 +15738,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -16553,7 +15747,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16563,11 +15757,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -16575,7 +15766,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16584,8 +15775,8 @@ export const plans = { }, SingleTableItemCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -16598,17 +15789,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -16621,17 +15810,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -16644,17 +15831,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -16667,17 +15852,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -16690,17 +15873,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -16713,17 +15894,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -16736,17 +15915,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -16759,17 +15936,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -16782,17 +15957,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -16805,13 +15978,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalItemsConnection: { @@ -16931,31 +16102,21 @@ export const plans = { } }, RelationalItemsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16964,19 +16125,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16985,11 +16144,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -16997,7 +16153,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17007,11 +16163,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -17019,7 +16172,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17029,11 +16182,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -17041,7 +16191,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17051,11 +16201,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -17063,7 +16210,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17073,11 +16220,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -17085,7 +16229,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17095,11 +16239,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -17107,7 +16248,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17117,11 +16258,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -17129,7 +16267,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17139,11 +16277,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -17151,7 +16286,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17161,11 +16296,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -17173,7 +16305,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17183,11 +16315,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -17195,7 +16324,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17205,11 +16334,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -17217,7 +16343,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17227,11 +16353,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -17239,7 +16362,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17249,11 +16372,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -17261,7 +16381,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17271,11 +16391,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -17283,7 +16400,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17293,11 +16410,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -17305,7 +16419,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17315,11 +16429,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -17327,7 +16438,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17337,11 +16448,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -17349,7 +16457,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17359,11 +16467,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -17371,7 +16476,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17381,11 +16486,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -17393,7 +16495,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17403,11 +16505,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -17415,7 +16514,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17424,8 +16523,8 @@ export const plans = { }, RelationalItemCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -17438,17 +16537,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -17461,17 +16558,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -17484,17 +16579,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -17507,17 +16600,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -17530,17 +16621,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -17553,17 +16642,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -17576,17 +16663,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -17599,17 +16684,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -17622,17 +16705,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -17645,33 +16726,20 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ApplicationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -17679,7 +16747,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17689,11 +16757,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -17701,7 +16766,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17711,11 +16776,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -17723,7 +16785,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17733,11 +16795,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -17745,7 +16804,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17755,11 +16814,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "ASC", ...(undefined != null ? { @@ -17767,7 +16823,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17777,11 +16833,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "DESC", ...(undefined != null ? { @@ -17789,7 +16842,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17798,8 +16851,8 @@ export const plans = { }, ApplicationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -17812,17 +16865,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Application.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -17835,17 +16886,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Application.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastDeployed: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_deployed", @@ -17858,13 +16907,11 @@ export const plans = { type: "attribute", attribute: "last_deployed", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Application.attributes.last_deployed.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SingleTableItemRelationsConnection: { @@ -17959,31 +17006,21 @@ export const plans = { } }, SingleTableItemRelationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17992,19 +17029,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18013,11 +17048,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -18025,7 +17057,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18035,11 +17067,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -18047,7 +17076,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18057,11 +17086,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -18069,7 +17095,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18079,11 +17105,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -18091,7 +17114,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18101,11 +17124,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -18113,7 +17133,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18123,11 +17143,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -18135,7 +17152,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18144,8 +17161,8 @@ export const plans = { }, SingleTableItemRelationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -18158,17 +17175,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelations.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -18181,17 +17196,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelations.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -18204,41 +17217,29 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelations.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SingleTableItemRelationCompositePksOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18247,19 +17248,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18268,11 +17267,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -18280,7 +17276,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18290,11 +17286,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -18302,7 +17295,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18312,11 +17305,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -18324,7 +17314,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18334,11 +17324,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -18346,7 +17333,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18355,8 +17342,8 @@ export const plans = { }, SingleTableItemRelationCompositePkCondition: { parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -18369,17 +17356,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelationCompositePks.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -18392,13 +17377,11 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelationCompositePks.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SingleTablePost: { @@ -18407,7 +17390,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs2(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -18422,27 +17405,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -18515,7 +17492,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18524,7 +17500,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18533,7 +17508,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18542,7 +17516,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18551,7 +17524,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18560,22 +17532,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18592,7 +17560,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18601,7 +17568,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18610,7 +17576,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18619,7 +17584,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18628,7 +17592,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18637,22 +17600,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18669,7 +17628,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18678,7 +17636,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18687,7 +17644,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18696,7 +17652,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18705,7 +17660,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18714,22 +17668,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18746,7 +17696,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18755,7 +17704,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18764,7 +17712,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18773,7 +17720,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18782,7 +17728,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18791,22 +17736,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18823,7 +17764,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18832,7 +17772,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18841,7 +17780,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18850,7 +17788,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18859,7 +17796,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18868,22 +17804,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18914,7 +17846,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -18923,7 +17854,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -18932,7 +17862,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -18941,7 +17870,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -18950,7 +17878,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -18959,22 +17886,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -18987,7 +17910,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs3(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -19002,27 +17925,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -19084,7 +18001,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19093,7 +18009,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19102,7 +18017,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19111,7 +18025,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19120,7 +18033,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19129,22 +18041,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19161,7 +18069,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19170,7 +18077,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19179,7 +18085,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19188,7 +18093,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19197,7 +18101,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19206,22 +18109,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19238,7 +18137,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19247,7 +18145,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19256,7 +18153,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19265,7 +18161,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19274,7 +18169,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19283,22 +18177,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19315,7 +18205,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19324,7 +18213,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19333,7 +18221,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19342,7 +18229,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19351,7 +18237,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19360,22 +18245,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19392,7 +18273,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19401,7 +18281,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19410,7 +18289,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19419,7 +18297,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19428,7 +18305,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19437,22 +18313,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19470,7 +18342,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -19485,27 +18357,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -19564,7 +18430,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19573,7 +18438,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19582,7 +18446,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19591,7 +18454,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19600,7 +18462,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19609,22 +18470,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19641,7 +18498,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19650,7 +18506,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19659,7 +18514,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19668,7 +18522,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19677,7 +18530,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19686,22 +18538,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19718,7 +18566,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19727,7 +18574,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19736,7 +18582,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19745,7 +18590,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19754,7 +18598,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19763,22 +18606,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19795,7 +18634,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19804,7 +18642,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19813,7 +18650,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19822,7 +18658,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19831,7 +18666,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19840,22 +18674,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19872,7 +18702,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -19881,7 +18710,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -19890,7 +18718,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -19899,7 +18726,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -19908,7 +18734,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -19917,22 +18742,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -19955,7 +18776,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs5(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -19970,27 +18791,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -20060,7 +18875,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20069,7 +18883,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20078,7 +18891,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20087,7 +18899,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20096,7 +18907,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20105,22 +18915,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20137,7 +18943,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20146,7 +18951,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20155,7 +18959,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20164,7 +18967,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20173,7 +18975,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20182,22 +18983,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20214,7 +19011,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20223,7 +19019,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20232,7 +19027,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20241,7 +19035,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20250,7 +19043,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20259,22 +19051,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20291,7 +19079,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20300,7 +19087,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20309,7 +19095,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20318,7 +19103,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20327,7 +19111,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20336,22 +19119,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20368,7 +19147,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20377,7 +19155,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20386,7 +19163,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20395,7 +19171,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20404,7 +19179,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20413,22 +19187,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20486,7 +19256,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20495,7 +19264,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20504,7 +19272,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20513,7 +19280,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20522,7 +19288,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20531,22 +19296,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20613,7 +19374,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20622,7 +19382,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20631,7 +19390,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20640,7 +19398,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20649,7 +19406,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20658,22 +19414,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20698,7 +19450,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20707,7 +19458,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20716,7 +19466,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20725,7 +19474,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20734,7 +19482,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20743,22 +19490,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20783,7 +19526,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20792,7 +19534,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20801,7 +19542,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20810,7 +19550,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20819,7 +19558,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20828,22 +19566,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20868,7 +19602,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20877,7 +19610,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20886,7 +19618,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20895,7 +19626,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20904,7 +19634,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20913,22 +19642,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -20953,7 +19678,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -20962,7 +19686,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -20971,7 +19694,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -20980,7 +19702,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -20989,7 +19710,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -20998,22 +19718,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21021,31 +19737,21 @@ export const plans = { } }, RelationalItemRelationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21054,19 +19760,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21075,11 +19779,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -21087,7 +19788,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21097,11 +19798,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -21109,7 +19807,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21119,11 +19817,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -21131,7 +19826,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21141,11 +19836,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -21153,7 +19845,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21163,11 +19855,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -21175,7 +19864,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21185,11 +19874,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -21197,7 +19883,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21206,8 +19892,8 @@ export const plans = { }, RelationalItemRelationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -21220,17 +19906,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelations.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -21243,17 +19927,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelations.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -21266,41 +19948,29 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelations.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalItemRelationCompositePksOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21309,19 +19979,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21330,11 +19998,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -21342,7 +20007,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21352,11 +20017,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -21364,7 +20026,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21374,11 +20036,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -21386,7 +20045,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21396,11 +20055,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -21408,7 +20064,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21417,8 +20073,8 @@ export const plans = { }, RelationalItemRelationCompositePkCondition: { parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -21431,17 +20087,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelationCompositePks.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -21454,13 +20108,11 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelationCompositePks.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalPost: { @@ -21565,7 +20217,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21574,7 +20225,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21583,7 +20233,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21592,7 +20241,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21601,7 +20249,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21610,22 +20257,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21650,7 +20293,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21659,7 +20301,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21668,7 +20309,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21677,7 +20317,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21686,7 +20325,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21695,22 +20333,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21735,7 +20369,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21744,7 +20377,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21753,7 +20385,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21762,7 +20393,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21771,7 +20401,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21780,22 +20409,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21820,7 +20445,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21829,7 +20453,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21838,7 +20461,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21847,7 +20469,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21856,7 +20477,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21865,22 +20485,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21905,7 +20521,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21914,7 +20529,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21923,7 +20537,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21932,7 +20545,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21941,7 +20553,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21950,22 +20561,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22071,7 +20678,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22080,7 +20686,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22089,7 +20694,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22098,7 +20702,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22107,7 +20710,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22116,22 +20718,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22156,7 +20754,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22165,7 +20762,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22174,7 +20770,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22183,7 +20778,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22192,7 +20786,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22201,22 +20794,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22241,7 +20830,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22250,7 +20838,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22259,7 +20846,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22268,7 +20854,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22277,7 +20862,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22286,22 +20870,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22326,7 +20906,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22335,7 +20914,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22344,7 +20922,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22353,7 +20930,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22362,7 +20938,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22371,22 +20946,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22411,7 +20982,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22420,7 +20990,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22429,7 +20998,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22438,7 +21006,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22447,7 +21014,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22456,22 +21022,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22574,7 +21136,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22583,7 +21144,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22592,7 +21152,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22601,7 +21160,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22610,7 +21168,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22619,22 +21176,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22659,7 +21212,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22668,7 +21220,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22677,7 +21228,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22686,7 +21236,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22695,7 +21244,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22704,22 +21252,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22744,7 +21288,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22753,7 +21296,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22762,7 +21304,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22771,7 +21312,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22780,7 +21320,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22789,22 +21328,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22829,7 +21364,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22838,7 +21372,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22847,7 +21380,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22856,7 +21388,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22865,7 +21396,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22874,22 +21404,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22914,7 +21440,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22923,7 +21448,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22932,7 +21456,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22941,7 +21464,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22950,7 +21472,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22959,22 +21480,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23080,7 +21597,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23089,7 +21605,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23098,7 +21613,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23107,7 +21621,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23116,7 +21629,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23125,22 +21637,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23165,7 +21673,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23174,7 +21681,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23183,7 +21689,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23192,7 +21697,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23201,7 +21705,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23210,22 +21713,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23250,7 +21749,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23259,7 +21757,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23268,7 +21765,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23277,7 +21773,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23286,7 +21781,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23295,22 +21789,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23335,7 +21825,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23344,7 +21833,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23353,7 +21841,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23362,7 +21849,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23371,7 +21857,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23380,22 +21865,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23420,7 +21901,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23429,7 +21909,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23438,7 +21917,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23447,7 +21925,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23456,7 +21933,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23465,22 +21941,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23496,111 +21968,111 @@ export const plans = { }, organizationByOrganizationId(_$root, args) { return otherSource_organizationsPgResource.get({ - organization_id: args.get("organizationId") + organization_id: args.getRaw("organizationId") }); }, organizationByName(_$root, args) { return otherSource_organizationsPgResource.get({ - name: args.get("name") + name: args.getRaw("name") }); }, personByPersonId(_$root, args) { return otherSource_peoplePgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, personByUsername(_$root, args) { return otherSource_peoplePgResource.get({ - username: args.get("username") + username: args.getRaw("username") }); }, priorityById(_$root, args) { return otherSource_prioritiesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, relationalChecklistByChecklistItemId(_$root, args) { return resource_relational_checklistsPgResource.get({ - checklist_item_id: args.get("checklistItemId") + checklist_item_id: args.getRaw("checklistItemId") }); }, relationalItemRelationCompositePkByParentIdAndChildId(_$root, args) { return relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, relationalTopicByTopicItemId(_$root, args) { return relational_topics_relational_topicsPgResource.get({ - topic_item_id: args.get("topicItemId") + topic_item_id: args.getRaw("topicItemId") }); }, singleTableItemRelationCompositePkByParentIdAndChildId(_$root, args) { return otherSource_single_table_item_relation_composite_pksPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, relationalChecklistItemByChecklistItemItemId(_$root, args) { return resource_relational_checklist_itemsPgResource.get({ - checklist_item_item_id: args.get("checklistItemItemId") + checklist_item_item_id: args.getRaw("checklistItemItemId") }); }, relationalDividerByDividerItemId(_$root, args) { return resource_relational_dividersPgResource.get({ - divider_item_id: args.get("dividerItemId") + divider_item_id: args.getRaw("dividerItemId") }); }, relationalItemRelationById(_$root, args) { return relational_item_relations_relational_item_relationsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, relationalItemRelationByParentIdAndChildId(_$root, args) { return relational_item_relations_relational_item_relationsPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, singleTableItemRelationById(_$root, args) { return otherSource_single_table_item_relationsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, singleTableItemRelationByParentIdAndChildId(_$root, args) { return otherSource_single_table_item_relationsPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, logEntryById(_$root, args) { return otherSource_log_entriesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, relationalPostByPostItemId(_$root, args) { return resource_relational_postsPgResource.get({ - post_item_id: args.get("postItemId") + post_item_id: args.getRaw("postItemId") }); }, firstPartyVulnerabilityById(_$root, args) { return paths_0_resource_first_party_vulnerabilitiesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, thirdPartyVulnerabilityById(_$root, args) { return paths_1_resource_third_party_vulnerabilitiesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, awsApplicationById(_$root, args) { return otherSource_aws_applicationsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, gcpApplicationById(_$root, args) { return otherSource_gcp_applicationsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, allSingleTables: { @@ -23617,7 +22089,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23626,7 +22097,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23635,7 +22105,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23644,7 +22113,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23653,7 +22121,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23662,7 +22129,7 @@ export const plans = { } }, getSingleTableTopicById($root, args, _info) { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_get_single_table_topic_by_id(args); return resource_get_single_table_topic_by_idPgResource.execute(selectArgs); }, allVulnerabilities: { @@ -23679,7 +22146,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23688,7 +22154,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23697,7 +22162,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23706,7 +22170,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23715,7 +22178,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23724,32 +22186,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("VulnerabilitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -23769,7 +22227,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23778,7 +22235,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23787,7 +22243,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23796,7 +22251,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23805,7 +22259,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23814,32 +22267,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -23859,7 +22308,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23868,7 +22316,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23877,7 +22324,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23886,7 +22332,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23895,7 +22340,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23904,22 +22348,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ZeroImplementationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23933,7 +22373,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23942,7 +22381,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23951,7 +22389,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23960,7 +22397,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23969,7 +22405,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23978,22 +22413,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OrganizationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24007,7 +22438,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24016,7 +22446,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24025,7 +22454,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24034,7 +22462,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24043,7 +22470,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24052,22 +22478,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24081,7 +22503,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24090,7 +22511,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24099,7 +22519,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24108,7 +22527,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24117,7 +22535,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24133,7 +22550,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24142,7 +22558,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24151,7 +22566,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24160,7 +22574,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24169,7 +22582,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24178,22 +22590,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalChecklistsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24207,7 +22615,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24216,7 +22623,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24225,7 +22631,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24234,7 +22639,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24243,7 +22647,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24252,22 +22655,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24281,7 +22680,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24290,7 +22688,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24299,7 +22696,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24308,7 +22704,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24317,7 +22712,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24326,22 +22720,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalTopicsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24355,7 +22745,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24364,7 +22753,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24373,7 +22761,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24382,7 +22769,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24391,7 +22777,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24400,22 +22785,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24429,7 +22810,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24438,7 +22818,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24447,7 +22826,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24456,7 +22834,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24465,7 +22842,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24474,22 +22850,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalChecklistItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24503,7 +22875,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24512,7 +22883,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24521,7 +22891,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24530,7 +22899,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24539,7 +22907,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24548,22 +22915,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalDividersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24577,7 +22940,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24586,7 +22948,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24595,7 +22956,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24604,7 +22964,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24613,7 +22972,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24622,22 +22980,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24651,7 +23005,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24660,7 +23013,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24669,7 +23021,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24678,7 +23029,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24687,7 +23037,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24696,22 +23045,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24725,7 +23070,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24734,7 +23078,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24743,7 +23086,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24752,7 +23094,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24761,7 +23102,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24770,22 +23110,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24799,7 +23135,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24808,7 +23143,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24817,7 +23151,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24826,7 +23159,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24835,7 +23167,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24844,22 +23175,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalPostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24873,7 +23200,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24882,7 +23208,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24891,7 +23216,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24900,7 +23224,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24909,7 +23232,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24918,22 +23240,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FirstPartyVulnerabilitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24947,7 +23265,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24956,7 +23273,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24965,7 +23281,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24974,7 +23289,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24983,7 +23297,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24992,22 +23305,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ThirdPartyVulnerabilitiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25021,7 +23330,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25030,7 +23338,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25039,7 +23346,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25048,7 +23354,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25057,7 +23362,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25066,22 +23370,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25095,7 +23395,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25104,7 +23403,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25113,7 +23411,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25122,7 +23419,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25131,7 +23427,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25140,22 +23435,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25169,7 +23460,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25178,7 +23468,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25187,7 +23476,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25196,7 +23484,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25205,7 +23492,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25214,22 +23500,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25243,7 +23525,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25252,7 +23533,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25261,7 +23541,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25270,7 +23549,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25279,7 +23557,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25288,22 +23565,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25316,7 +23589,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs8(args); + const extraSelectArgs = makeArgs_first_party_vulnerabilities_cvss_score_int(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -25331,27 +23604,21 @@ export const plans = { if (resource_first_party_vulnerabilities_cvss_score_intPgResource.isUnique && !resource_first_party_vulnerabilities_cvss_score_intPgResource.codec.attributes && typeof resource_first_party_vulnerabilities_cvss_score_intPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_first_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${resource_first_party_vulnerabilities_cvss_score_intPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_first_party_vulnerabilities_cvss_score_intPgResource.from, resource_first_party_vulnerabilities_cvss_score_intPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_first_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_first_party_vulnerabilities_cvss_score_intPgResource.execute(selectArgs); @@ -25400,7 +23667,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25409,7 +23675,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25418,7 +23683,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25427,7 +23691,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25436,7 +23699,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25445,32 +23707,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -25510,7 +23768,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs9(args); + const extraSelectArgs = makeArgs_third_party_vulnerabilities_cvss_score_int(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -25525,27 +23783,21 @@ export const plans = { if (resource_third_party_vulnerabilities_cvss_score_intPgResource.isUnique && !resource_third_party_vulnerabilities_cvss_score_intPgResource.codec.attributes && typeof resource_third_party_vulnerabilities_cvss_score_intPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_third_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${resource_third_party_vulnerabilities_cvss_score_intPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_third_party_vulnerabilities_cvss_score_intPgResource.from, resource_third_party_vulnerabilities_cvss_score_intPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_third_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_third_party_vulnerabilities_cvss_score_intPgResource.execute(selectArgs); @@ -25594,7 +23846,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25603,7 +23854,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25612,7 +23862,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25621,7 +23870,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25630,7 +23878,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25639,32 +23886,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -25724,23 +23967,12 @@ export const plans = { } }, ZeroImplementationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -25748,7 +23980,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25758,11 +23990,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -25770,7 +23999,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25780,11 +24009,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -25792,7 +24018,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25802,11 +24028,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -25814,7 +24037,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25823,8 +24046,8 @@ export const plans = { }, ZeroImplementationCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -25837,17 +24060,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_ZeroImplementation.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -25860,13 +24081,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_ZeroImplementation.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, OrganizationsConnection: { @@ -25895,31 +24114,21 @@ export const plans = { } }, OrganizationsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { organizationsUniques[0].attributes.forEach(attributeName => { - const attribute = organizationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25928,19 +24137,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { organizationsUniques[0].attributes.forEach(attributeName => { - const attribute = organizationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25949,11 +24156,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -25961,7 +24165,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25971,11 +24175,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -25983,7 +24184,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -25993,11 +24194,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -26005,7 +24203,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26015,11 +24213,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -26027,7 +24222,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26036,8 +24231,8 @@ export const plans = { }, OrganizationCondition: { organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -26050,17 +24245,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_organizations.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -26073,13 +24266,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_organizations.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PeopleConnection: { @@ -26108,31 +24299,21 @@ export const plans = { } }, PeopleOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26141,19 +24322,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26162,11 +24341,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -26174,7 +24350,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26184,11 +24360,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -26196,7 +24369,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26206,11 +24379,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "username", direction: "ASC", ...(undefined != null ? { @@ -26218,7 +24388,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26228,11 +24398,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "username", direction: "DESC", ...(undefined != null ? { @@ -26240,7 +24407,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26249,8 +24416,8 @@ export const plans = { }, PersonCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -26263,17 +24430,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, username: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "username", @@ -26286,13 +24451,11 @@ export const plans = { type: "attribute", attribute: "username", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.username.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PrioritiesConnection: { @@ -26346,31 +24509,21 @@ export const plans = { } }, RelationalChecklistsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklistsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26379,19 +24532,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklistsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26400,11 +24551,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -26412,7 +24560,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26422,11 +24570,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -26434,7 +24579,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26444,11 +24589,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -26456,7 +24598,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26466,11 +24608,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -26478,7 +24617,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26488,11 +24627,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -26500,7 +24636,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26510,11 +24646,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -26522,7 +24655,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26532,11 +24665,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -26544,7 +24674,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26554,11 +24684,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -26566,7 +24693,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26576,11 +24703,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -26588,7 +24712,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26598,11 +24722,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -26610,7 +24731,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26620,11 +24741,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -26632,7 +24750,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26642,11 +24760,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -26654,7 +24769,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26664,11 +24779,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -26676,7 +24788,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26686,11 +24798,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -26698,7 +24807,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26708,11 +24817,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -26720,7 +24826,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26730,11 +24836,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -26742,7 +24845,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26752,11 +24855,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -26764,7 +24864,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26774,11 +24874,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -26786,7 +24883,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26796,11 +24893,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -26808,7 +24902,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26818,11 +24912,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -26830,7 +24921,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26840,11 +24931,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -26852,7 +24940,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26862,11 +24950,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -26874,7 +24959,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -26883,8 +24968,8 @@ export const plans = { }, RelationalChecklistCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -26897,17 +24982,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -26920,17 +25003,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -26943,17 +25024,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -26966,17 +25045,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -26989,17 +25066,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -27012,17 +25087,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -27035,17 +25108,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -27058,17 +25129,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -27081,17 +25150,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -27104,17 +25171,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -27127,13 +25192,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalTopicsConnection: { @@ -27162,31 +25225,21 @@ export const plans = { } }, RelationalTopicsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_topicsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalTopicsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27195,19 +25248,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_topicsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalTopicsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27216,11 +25267,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -27228,7 +25276,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27238,11 +25286,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -27250,7 +25295,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27260,11 +25305,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -27272,7 +25314,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27282,11 +25324,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -27294,7 +25333,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27304,11 +25343,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -27316,7 +25352,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27326,11 +25362,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -27338,7 +25371,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27348,11 +25381,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -27360,7 +25390,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27370,11 +25400,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -27382,7 +25409,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27392,11 +25419,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -27404,7 +25428,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27414,11 +25438,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -27426,7 +25447,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27436,11 +25457,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -27448,7 +25466,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27458,11 +25476,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -27470,7 +25485,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27480,11 +25495,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -27492,7 +25504,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27502,11 +25514,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -27514,7 +25523,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27524,11 +25533,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -27536,7 +25542,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27546,11 +25552,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -27558,7 +25561,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27568,11 +25571,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -27580,7 +25580,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27590,11 +25590,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -27602,7 +25599,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27612,11 +25609,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -27624,7 +25618,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27634,11 +25628,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -27646,7 +25637,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27656,11 +25647,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -27668,7 +25656,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27678,11 +25666,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -27690,7 +25675,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -27699,8 +25684,8 @@ export const plans = { }, RelationalTopicCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -27713,17 +25698,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -27736,17 +25719,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -27759,17 +25740,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -27782,17 +25761,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -27805,17 +25782,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -27828,17 +25803,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -27851,17 +25824,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -27874,17 +25845,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -27897,17 +25866,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -27920,17 +25887,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -27943,13 +25908,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalChecklistItemsConnection: { @@ -27978,31 +25941,21 @@ export const plans = { } }, RelationalChecklistItemsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklist_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28011,19 +25964,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklist_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28032,11 +25983,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -28044,7 +25992,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28054,11 +26002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -28066,7 +26011,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28076,11 +26021,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "ASC", ...(undefined != null ? { @@ -28088,7 +26030,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28098,11 +26040,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "DESC", ...(undefined != null ? { @@ -28110,7 +26049,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28120,11 +26059,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -28132,7 +26068,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28142,11 +26078,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -28154,7 +26087,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28164,11 +26097,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -28176,7 +26106,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28186,11 +26116,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -28198,7 +26125,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28208,11 +26135,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -28220,7 +26144,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28230,11 +26154,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -28242,7 +26163,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28252,11 +26173,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -28264,7 +26182,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28274,11 +26192,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -28286,7 +26201,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28296,11 +26211,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -28308,7 +26220,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28318,11 +26230,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -28330,7 +26239,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28340,11 +26249,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -28352,7 +26258,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28362,11 +26268,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -28374,7 +26277,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28384,11 +26287,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -28396,7 +26296,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28406,11 +26306,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -28418,7 +26315,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28428,11 +26325,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -28440,7 +26334,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28450,11 +26344,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -28462,7 +26353,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28472,11 +26363,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -28484,7 +26372,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28494,11 +26382,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -28506,7 +26391,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28516,11 +26401,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -28528,7 +26410,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28538,11 +26420,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -28550,7 +26429,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28559,8 +26438,8 @@ export const plans = { }, RelationalChecklistItemCondition: { description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -28573,17 +26452,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, note: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "note", @@ -28596,17 +26473,15 @@ export const plans = { type: "attribute", attribute: "note", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.note.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -28619,17 +26494,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -28642,17 +26515,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -28665,17 +26536,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -28688,17 +26557,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -28711,17 +26578,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -28734,17 +26599,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -28757,17 +26620,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -28780,17 +26641,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -28803,17 +26662,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -28826,13 +26683,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalDividersConnection: { @@ -28861,31 +26716,21 @@ export const plans = { } }, RelationalDividersOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_dividersUniques[0].attributes.forEach(attributeName => { - const attribute = relationalDividersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28894,19 +26739,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_dividersUniques[0].attributes.forEach(attributeName => { - const attribute = relationalDividersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28915,11 +26758,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -28927,7 +26767,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28937,11 +26777,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -28949,7 +26786,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28959,11 +26796,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "color", direction: "ASC", ...(undefined != null ? { @@ -28971,7 +26805,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -28981,11 +26815,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "color", direction: "DESC", ...(undefined != null ? { @@ -28993,7 +26824,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29003,11 +26834,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -29015,7 +26843,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29025,11 +26853,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -29037,7 +26862,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29047,11 +26872,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -29059,7 +26881,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29069,11 +26891,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -29081,7 +26900,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29091,11 +26910,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -29103,7 +26919,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29113,11 +26929,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -29125,7 +26938,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29135,11 +26948,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -29147,7 +26957,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29157,11 +26967,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -29169,7 +26976,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29179,11 +26986,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -29191,7 +26995,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29201,11 +27005,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -29213,7 +27014,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29223,11 +27024,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -29235,7 +27033,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29245,11 +27043,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -29257,7 +27052,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29267,11 +27062,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -29279,7 +27071,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29289,11 +27081,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -29301,7 +27090,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29311,11 +27100,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -29323,7 +27109,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29333,11 +27119,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -29345,7 +27128,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29355,11 +27138,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -29367,7 +27147,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29377,11 +27157,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -29389,7 +27166,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29399,11 +27176,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -29411,7 +27185,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29421,11 +27195,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -29433,7 +27204,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29442,8 +27213,8 @@ export const plans = { }, RelationalDividerCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -29456,17 +27227,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, color: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "color", @@ -29479,17 +27248,15 @@ export const plans = { type: "attribute", attribute: "color", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.color.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -29502,17 +27269,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -29525,17 +27290,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -29548,17 +27311,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -29571,17 +27332,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -29594,17 +27353,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -29617,17 +27374,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -29640,17 +27395,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -29663,17 +27416,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -29686,17 +27437,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -29709,13 +27458,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalPostsConnection: { @@ -29744,31 +27491,21 @@ export const plans = { } }, RelationalPostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_postsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalPostsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29777,19 +27514,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_postsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalPostsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29798,11 +27533,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -29810,7 +27542,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29820,11 +27552,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -29832,7 +27561,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29842,11 +27571,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -29854,7 +27580,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29864,11 +27590,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -29876,7 +27599,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29886,11 +27609,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "ASC", ...(undefined != null ? { @@ -29898,7 +27618,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29908,11 +27628,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "DESC", ...(undefined != null ? { @@ -29920,7 +27637,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29930,11 +27647,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -29942,7 +27656,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29952,11 +27666,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -29964,7 +27675,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29974,11 +27685,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -29986,7 +27694,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29996,11 +27704,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -30008,7 +27713,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30018,11 +27723,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -30030,7 +27732,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30040,11 +27742,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -30052,7 +27751,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30062,11 +27761,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -30074,7 +27770,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30084,11 +27780,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -30096,7 +27789,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30106,11 +27799,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -30118,7 +27808,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30128,11 +27818,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -30140,7 +27827,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30150,11 +27837,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -30162,7 +27846,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30172,11 +27856,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -30184,7 +27865,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30194,11 +27875,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -30206,7 +27884,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30216,11 +27894,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -30228,7 +27903,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30238,11 +27913,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -30250,7 +27922,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30260,11 +27932,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -30272,7 +27941,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30282,11 +27951,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -30294,7 +27960,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30304,11 +27970,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -30316,7 +27979,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30326,11 +27989,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -30338,7 +27998,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30348,11 +28008,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -30360,7 +28017,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30369,8 +28026,8 @@ export const plans = { }, RelationalPostCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -30383,17 +28040,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -30406,17 +28061,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, note: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "note", @@ -30429,17 +28082,15 @@ export const plans = { type: "attribute", attribute: "note", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.note.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -30452,17 +28103,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -30475,17 +28124,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -30498,17 +28145,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -30521,17 +28166,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -30544,17 +28187,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -30567,17 +28208,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -30590,17 +28229,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -30613,17 +28250,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -30636,17 +28271,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -30659,13 +28292,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FirstPartyVulnerabilitiesConnection: { @@ -30694,31 +28325,21 @@ export const plans = { } }, FirstPartyVulnerabilitiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { first_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = firstPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30727,19 +28348,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { first_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = firstPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30748,11 +28367,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -30760,7 +28376,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30770,11 +28386,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -30782,7 +28395,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30792,11 +28405,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -30804,7 +28414,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30814,11 +28424,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -30826,7 +28433,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30836,11 +28443,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "ASC", ...(undefined != null ? { @@ -30848,7 +28452,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30858,11 +28462,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "DESC", ...(undefined != null ? { @@ -30870,7 +28471,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30880,11 +28481,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "team_name", direction: "ASC", ...(undefined != null ? { @@ -30892,7 +28490,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30902,11 +28500,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "team_name", direction: "DESC", ...(undefined != null ? { @@ -30914,7 +28509,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30923,8 +28518,8 @@ export const plans = { }, FirstPartyVulnerabilityCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -30937,17 +28532,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_firstPartyVulnerabilities.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -30960,17 +28553,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_firstPartyVulnerabilities.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cvssScore: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cvss_score", @@ -30983,17 +28574,15 @@ export const plans = { type: "attribute", attribute: "cvss_score", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_firstPartyVulnerabilities.attributes.cvss_score.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, teamName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "team_name", @@ -31006,13 +28595,11 @@ export const plans = { type: "attribute", attribute: "team_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_firstPartyVulnerabilities.attributes.team_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ThirdPartyVulnerabilitiesConnection: { @@ -31041,31 +28628,21 @@ export const plans = { } }, ThirdPartyVulnerabilitiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { third_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = thirdPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31074,19 +28651,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { third_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = thirdPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31095,11 +28670,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -31107,7 +28679,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31117,11 +28689,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -31129,7 +28698,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31139,11 +28708,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -31151,7 +28717,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31161,11 +28727,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -31173,7 +28736,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31183,11 +28746,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "ASC", ...(undefined != null ? { @@ -31195,7 +28755,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31205,11 +28765,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "DESC", ...(undefined != null ? { @@ -31217,7 +28774,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31227,11 +28784,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "vendor_name", direction: "ASC", ...(undefined != null ? { @@ -31239,7 +28793,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31249,11 +28803,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "vendor_name", direction: "DESC", ...(undefined != null ? { @@ -31261,7 +28812,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31270,8 +28821,8 @@ export const plans = { }, ThirdPartyVulnerabilityCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -31284,17 +28835,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_thirdPartyVulnerabilities.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -31307,17 +28856,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_thirdPartyVulnerabilities.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cvssScore: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cvss_score", @@ -31330,17 +28877,15 @@ export const plans = { type: "attribute", attribute: "cvss_score", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_thirdPartyVulnerabilities.attributes.cvss_score.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, vendorName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "vendor_name", @@ -31353,30 +28898,28 @@ export const plans = { type: "attribute", attribute: "vendor_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_thirdPartyVulnerabilities.attributes.vendor_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createOrganization: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_organizationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_organizationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -31386,17 +28929,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_peoplePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_peoplePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -31406,17 +28949,17 @@ export const plans = { }, createRelationalItemRelationCompositePk: { plan(_, args) { + const $insert = pgInsertSingle(relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -31426,17 +28969,17 @@ export const plans = { }, createSingleTableItemRelationCompositePk: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_single_table_item_relation_composite_pksPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_single_table_item_relation_composite_pksPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -31446,17 +28989,17 @@ export const plans = { }, createRelationalItemRelation: { plan(_, args) { + const $insert = pgInsertSingle(relational_item_relations_relational_item_relationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(relational_item_relations_relational_item_relationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -31466,17 +29009,17 @@ export const plans = { }, createSingleTableItemRelation: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_single_table_item_relationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_single_table_item_relationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -31486,17 +29029,17 @@ export const plans = { }, createLogEntry: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_log_entriesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_log_entriesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -31506,17 +29049,17 @@ export const plans = { }, createFirstPartyVulnerability: { plan(_, args) { + const $insert = pgInsertSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -31526,17 +29069,17 @@ export const plans = { }, createThirdPartyVulnerability: { plan(_, args) { + const $insert = pgInsertSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -31546,17 +29089,17 @@ export const plans = { }, createAwsApplication: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_aws_applicationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_aws_applicationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -31566,17 +29109,17 @@ export const plans = { }, createGcpApplication: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_gcp_applicationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_gcp_applicationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -31586,13 +29129,13 @@ export const plans = { }, updateOrganizationByOrganizationId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_organizationsPgResource, { - organization_id: args.get(['input', "organizationId"]) - }) + const $update = pgUpdateSingle(otherSource_organizationsPgResource, { + organization_id: args.getRaw(['input', "organizationId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31607,13 +29150,13 @@ export const plans = { }, updateOrganizationByName: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_organizationsPgResource, { - name: args.get(['input', "name"]) - }) + const $update = pgUpdateSingle(otherSource_organizationsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31628,13 +29171,13 @@ export const plans = { }, updatePersonByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_peoplePgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(otherSource_peoplePgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31649,13 +29192,13 @@ export const plans = { }, updatePersonByUsername: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_peoplePgResource, { - username: args.get(['input', "username"]) - }) + const $update = pgUpdateSingle(otherSource_peoplePgResource, { + username: args.getRaw(['input', "username"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31670,14 +29213,14 @@ export const plans = { }, updateRelationalItemRelationCompositePkByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $update = pgUpdateSingle(relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31692,14 +29235,14 @@ export const plans = { }, updateSingleTableItemRelationCompositePkByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_single_table_item_relation_composite_pksPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $update = pgUpdateSingle(otherSource_single_table_item_relation_composite_pksPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31714,13 +29257,13 @@ export const plans = { }, updateRelationalItemRelationById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(relational_item_relations_relational_item_relationsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(relational_item_relations_relational_item_relationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31735,14 +29278,14 @@ export const plans = { }, updateRelationalItemRelationByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(relational_item_relations_relational_item_relationsPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $update = pgUpdateSingle(relational_item_relations_relational_item_relationsPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31757,13 +29300,13 @@ export const plans = { }, updateSingleTableItemRelationById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_single_table_item_relationsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(otherSource_single_table_item_relationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31778,14 +29321,14 @@ export const plans = { }, updateSingleTableItemRelationByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_single_table_item_relationsPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $update = pgUpdateSingle(otherSource_single_table_item_relationsPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31800,13 +29343,13 @@ export const plans = { }, updateLogEntryById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_log_entriesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(otherSource_log_entriesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31821,13 +29364,13 @@ export const plans = { }, updateFirstPartyVulnerabilityById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31842,13 +29385,13 @@ export const plans = { }, updateThirdPartyVulnerabilityById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31863,13 +29406,13 @@ export const plans = { }, updateAwsApplicationById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_aws_applicationsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(otherSource_aws_applicationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31884,13 +29427,13 @@ export const plans = { }, updateGcpApplicationById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_gcp_applicationsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(otherSource_gcp_applicationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -31905,13 +29448,13 @@ export const plans = { }, deleteOrganizationByOrganizationId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_organizationsPgResource, { - organization_id: args.get(['input', "organizationId"]) - }) + const $delete = pgDeleteSingle(otherSource_organizationsPgResource, { + organization_id: args.getRaw(['input', "organizationId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -31926,13 +29469,13 @@ export const plans = { }, deleteOrganizationByName: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_organizationsPgResource, { - name: args.get(['input', "name"]) - }) + const $delete = pgDeleteSingle(otherSource_organizationsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -31947,13 +29490,13 @@ export const plans = { }, deletePersonByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_peoplePgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(otherSource_peoplePgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -31968,13 +29511,13 @@ export const plans = { }, deletePersonByUsername: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_peoplePgResource, { - username: args.get(['input', "username"]) - }) + const $delete = pgDeleteSingle(otherSource_peoplePgResource, { + username: args.getRaw(['input', "username"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -31989,14 +29532,14 @@ export const plans = { }, deleteRelationalItemRelationCompositePkByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $delete = pgDeleteSingle(relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -32011,14 +29554,14 @@ export const plans = { }, deleteSingleTableItemRelationCompositePkByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_single_table_item_relation_composite_pksPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $delete = pgDeleteSingle(otherSource_single_table_item_relation_composite_pksPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -32033,13 +29576,13 @@ export const plans = { }, deleteRelationalItemRelationById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(relational_item_relations_relational_item_relationsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(relational_item_relations_relational_item_relationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -32054,14 +29597,14 @@ export const plans = { }, deleteRelationalItemRelationByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(relational_item_relations_relational_item_relationsPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $delete = pgDeleteSingle(relational_item_relations_relational_item_relationsPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -32076,13 +29619,13 @@ export const plans = { }, deleteSingleTableItemRelationById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_single_table_item_relationsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(otherSource_single_table_item_relationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -32097,14 +29640,14 @@ export const plans = { }, deleteSingleTableItemRelationByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_single_table_item_relationsPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $delete = pgDeleteSingle(otherSource_single_table_item_relationsPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -32119,13 +29662,13 @@ export const plans = { }, deleteLogEntryById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_log_entriesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(otherSource_log_entriesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -32140,13 +29683,13 @@ export const plans = { }, deleteFirstPartyVulnerabilityById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -32161,13 +29704,13 @@ export const plans = { }, deleteThirdPartyVulnerabilityById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -32182,13 +29725,13 @@ export const plans = { }, deleteAwsApplicationById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_aws_applicationsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(otherSource_aws_applicationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -32203,13 +29746,13 @@ export const plans = { }, deleteGcpApplicationById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_gcp_applicationsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(otherSource_gcp_applicationsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -32226,7 +29769,8 @@ export const plans = { CreateOrganizationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, organization($object) { return $object.get("result"); @@ -32234,7 +29778,7 @@ export const plans = { query() { return rootValue(); }, - organizationEdge($mutation, args, info) { + organizationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -32250,9 +29794,7 @@ export const plans = { return otherSource_organizationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OrganizationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -32263,42 +29805,42 @@ export const plans = { }, CreateOrganizationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, organization: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, OrganizationInput: { - "__inputPlan": function OrganizationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -32306,7 +29848,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -32322,9 +29864,7 @@ export const plans = { return otherSource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -32335,42 +29875,42 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, username: { - applyPlan($insert, val) { - $insert.set("username", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("username", bakedInputRuntime(schema, field.type, val)); + } } }, CreateRelationalItemRelationCompositePkPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, relationalItemRelationCompositePk($object) { return $object.get("result"); @@ -32378,7 +29918,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationCompositePkEdge($mutation, args, info) { + relationalItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -32394,9 +29934,7 @@ export const plans = { return relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -32417,42 +29955,42 @@ export const plans = { }, CreateRelationalItemRelationCompositePkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, relationalItemRelationCompositePk: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RelationalItemRelationCompositePkInput: { - "__inputPlan": function RelationalItemRelationCompositePkInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSingleTableItemRelationCompositePkPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, singleTableItemRelationCompositePk($object) { return $object.get("result"); @@ -32460,7 +29998,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationCompositePkEdge($mutation, args, info) { + singleTableItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -32476,9 +30014,7 @@ export const plans = { return otherSource_single_table_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -32499,42 +30035,42 @@ export const plans = { }, CreateSingleTableItemRelationCompositePkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, singleTableItemRelationCompositePk: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SingleTableItemRelationCompositePkInput: { - "__inputPlan": function SingleTableItemRelationCompositePkInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateRelationalItemRelationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, relationalItemRelation($object) { return $object.get("result"); @@ -32542,7 +30078,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationEdge($mutation, args, info) { + relationalItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -32558,9 +30094,7 @@ export const plans = { return relational_item_relations_relational_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -32581,49 +30115,50 @@ export const plans = { }, CreateRelationalItemRelationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, relationalItemRelation: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RelationalItemRelationInput: { - "__inputPlan": function RelationalItemRelationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSingleTableItemRelationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, singleTableItemRelation($object) { return $object.get("result"); @@ -32631,7 +30166,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationEdge($mutation, args, info) { + singleTableItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -32647,9 +30182,7 @@ export const plans = { return otherSource_single_table_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -32670,49 +30203,50 @@ export const plans = { }, CreateSingleTableItemRelationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, singleTableItemRelation: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SingleTableItemRelationInput: { - "__inputPlan": function SingleTableItemRelationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLogEntryPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, logEntry($object) { return $object.get("result"); @@ -32720,7 +30254,7 @@ export const plans = { query() { return rootValue(); }, - logEntryEdge($mutation, args, info) { + logEntryEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -32736,9 +30270,7 @@ export const plans = { return otherSource_log_entriesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -32759,56 +30291,58 @@ export const plans = { }, CreateLogEntryInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, logEntry: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LogEntryInput: { - "__inputPlan": function LogEntryInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, text: { - applyPlan($insert, val) { - $insert.set("text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFirstPartyVulnerabilityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, firstPartyVulnerability($object) { return $object.get("result"); @@ -32816,7 +30350,7 @@ export const plans = { query() { return rootValue(); }, - firstPartyVulnerabilityEdge($mutation, args, info) { + firstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -32832,9 +30366,7 @@ export const plans = { return paths_0_resource_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FirstPartyVulnerabilitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -32845,56 +30377,58 @@ export const plans = { }, CreateFirstPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, firstPartyVulnerability: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FirstPartyVulnerabilityInput: { - "__inputPlan": function FirstPartyVulnerabilityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, cvssScore: { - applyPlan($insert, val) { - $insert.set("cvss_score", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cvss_score", bakedInputRuntime(schema, field.type, val)); + } }, teamName: { - applyPlan($insert, val) { - $insert.set("team_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("team_name", bakedInputRuntime(schema, field.type, val)); + } } }, CreateThirdPartyVulnerabilityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, thirdPartyVulnerability($object) { return $object.get("result"); @@ -32902,7 +30436,7 @@ export const plans = { query() { return rootValue(); }, - thirdPartyVulnerabilityEdge($mutation, args, info) { + thirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -32918,9 +30452,7 @@ export const plans = { return paths_1_resource_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ThirdPartyVulnerabilitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -32931,56 +30463,58 @@ export const plans = { }, CreateThirdPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, thirdPartyVulnerability: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ThirdPartyVulnerabilityInput: { - "__inputPlan": function ThirdPartyVulnerabilityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, cvssScore: { - applyPlan($insert, val) { - $insert.set("cvss_score", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cvss_score", bakedInputRuntime(schema, field.type, val)); + } }, vendorName: { - applyPlan($insert, val) { - $insert.set("vendor_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("vendor_name", bakedInputRuntime(schema, field.type, val)); + } } }, CreateAwsApplicationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, awsApplication($object) { return $object.get("result"); @@ -32988,7 +30522,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationEdge($mutation, args, info) { + awsApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -33004,9 +30538,7 @@ export const plans = { return otherSource_aws_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -33027,70 +30559,74 @@ export const plans = { }, CreateAwsApplicationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, awsApplication: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, AwsApplicationInput: { - "__inputPlan": function AwsApplicationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, lastDeployed: { - applyPlan($insert, val) { - $insert.set("last_deployed", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_deployed", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, awsId: { - applyPlan($insert, val) { - $insert.set("aws_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aws_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateGcpApplicationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, gcpApplication($object) { return $object.get("result"); @@ -33098,7 +30634,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationEdge($mutation, args, info) { + gcpApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -33114,9 +30650,7 @@ export const plans = { return otherSource_gcp_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -33137,70 +30671,74 @@ export const plans = { }, CreateGcpApplicationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, gcpApplication: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, GcpApplicationInput: { - "__inputPlan": function GcpApplicationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, lastDeployed: { - applyPlan($insert, val) { - $insert.set("last_deployed", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_deployed", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, gcpId: { - applyPlan($insert, val) { - $insert.set("gcp_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("gcp_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOrganizationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, organization($object) { return $object.get("result"); @@ -33208,7 +30746,7 @@ export const plans = { query() { return rootValue(); }, - organizationEdge($mutation, args, info) { + organizationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -33224,9 +30762,7 @@ export const plans = { return otherSource_organizationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OrganizationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -33237,55 +30773,58 @@ export const plans = { }, UpdateOrganizationByOrganizationIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, organizationId: undefined, organizationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, OrganizationPatch: { - "__inputPlan": function OrganizationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOrganizationByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined, organizationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -33293,7 +30832,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -33309,9 +30848,7 @@ export const plans = { return otherSource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -33322,55 +30859,58 @@ export const plans = { }, UpdatePersonByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, username: { - applyPlan($insert, val) { - $insert.set("username", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("username", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByUsernameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, username: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateRelationalItemRelationCompositePkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, relationalItemRelationCompositePk($object) { return $object.get("result"); @@ -33378,7 +30918,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationCompositePkEdge($mutation, args, info) { + relationalItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -33394,9 +30934,7 @@ export const plans = { return relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -33417,42 +30955,44 @@ export const plans = { }, UpdateRelationalItemRelationCompositePkByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, childId: undefined, relationalItemRelationCompositePkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, RelationalItemRelationCompositePkPatch: { - "__inputPlan": function RelationalItemRelationCompositePkPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSingleTableItemRelationCompositePkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, singleTableItemRelationCompositePk($object) { return $object.get("result"); @@ -33460,7 +31000,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationCompositePkEdge($mutation, args, info) { + singleTableItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -33476,9 +31016,7 @@ export const plans = { return otherSource_single_table_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -33499,42 +31037,44 @@ export const plans = { }, UpdateSingleTableItemRelationCompositePkByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, childId: undefined, singleTableItemRelationCompositePkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SingleTableItemRelationCompositePkPatch: { - "__inputPlan": function SingleTableItemRelationCompositePkPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateRelationalItemRelationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, relationalItemRelation($object) { return $object.get("result"); @@ -33542,7 +31082,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationEdge($mutation, args, info) { + relationalItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -33558,9 +31098,7 @@ export const plans = { return relational_item_relations_relational_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -33581,63 +31119,67 @@ export const plans = { }, UpdateRelationalItemRelationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, relationalItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, RelationalItemRelationPatch: { - "__inputPlan": function RelationalItemRelationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateRelationalItemRelationByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, childId: undefined, relationalItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSingleTableItemRelationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, singleTableItemRelation($object) { return $object.get("result"); @@ -33645,7 +31187,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationEdge($mutation, args, info) { + singleTableItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -33661,9 +31203,7 @@ export const plans = { return otherSource_single_table_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -33684,63 +31224,67 @@ export const plans = { }, UpdateSingleTableItemRelationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, singleTableItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SingleTableItemRelationPatch: { - "__inputPlan": function SingleTableItemRelationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSingleTableItemRelationByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, childId: undefined, singleTableItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLogEntryPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, logEntry($object) { return $object.get("result"); @@ -33748,7 +31292,7 @@ export const plans = { query() { return rootValue(); }, - logEntryEdge($mutation, args, info) { + logEntryEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -33764,9 +31308,7 @@ export const plans = { return otherSource_log_entriesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -33787,55 +31329,59 @@ export const plans = { }, UpdateLogEntryByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, logEntryPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LogEntryPatch: { - "__inputPlan": function LogEntryPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, text: { - applyPlan($insert, val) { - $insert.set("text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFirstPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, firstPartyVulnerability($object) { return $object.get("result"); @@ -33843,7 +31389,7 @@ export const plans = { query() { return rootValue(); }, - firstPartyVulnerabilityEdge($mutation, args, info) { + firstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -33859,9 +31405,7 @@ export const plans = { return paths_0_resource_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FirstPartyVulnerabilitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -33872,55 +31416,59 @@ export const plans = { }, UpdateFirstPartyVulnerabilityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, firstPartyVulnerabilityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FirstPartyVulnerabilityPatch: { - "__inputPlan": function FirstPartyVulnerabilityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, cvssScore: { - applyPlan($insert, val) { - $insert.set("cvss_score", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cvss_score", bakedInputRuntime(schema, field.type, val)); + } }, teamName: { - applyPlan($insert, val) { - $insert.set("team_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("team_name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateThirdPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, thirdPartyVulnerability($object) { return $object.get("result"); @@ -33928,7 +31476,7 @@ export const plans = { query() { return rootValue(); }, - thirdPartyVulnerabilityEdge($mutation, args, info) { + thirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -33944,9 +31492,7 @@ export const plans = { return paths_1_resource_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ThirdPartyVulnerabilitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -33957,55 +31503,59 @@ export const plans = { }, UpdateThirdPartyVulnerabilityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, thirdPartyVulnerabilityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ThirdPartyVulnerabilityPatch: { - "__inputPlan": function ThirdPartyVulnerabilityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, cvssScore: { - applyPlan($insert, val) { - $insert.set("cvss_score", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cvss_score", bakedInputRuntime(schema, field.type, val)); + } }, vendorName: { - applyPlan($insert, val) { - $insert.set("vendor_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("vendor_name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateAwsApplicationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, awsApplication($object) { return $object.get("result"); @@ -34013,7 +31563,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationEdge($mutation, args, info) { + awsApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34029,9 +31579,7 @@ export const plans = { return otherSource_aws_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34052,69 +31600,75 @@ export const plans = { }, UpdateAwsApplicationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, awsApplicationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, AwsApplicationPatch: { - "__inputPlan": function AwsApplicationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, lastDeployed: { - applyPlan($insert, val) { - $insert.set("last_deployed", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_deployed", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, awsId: { - applyPlan($insert, val) { - $insert.set("aws_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aws_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateGcpApplicationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, gcpApplication($object) { return $object.get("result"); @@ -34122,7 +31676,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationEdge($mutation, args, info) { + gcpApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34138,9 +31692,7 @@ export const plans = { return otherSource_gcp_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34161,69 +31713,75 @@ export const plans = { }, UpdateGcpApplicationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, gcpApplicationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, GcpApplicationPatch: { - "__inputPlan": function GcpApplicationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, lastDeployed: { - applyPlan($insert, val) { - $insert.set("last_deployed", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_deployed", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, gcpId: { - applyPlan($insert, val) { - $insert.set("gcp_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("gcp_id", bakedInputRuntime(schema, field.type, val)); + } } }, DeleteOrganizationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, organization($object) { return $object.get("result"); @@ -34231,7 +31789,7 @@ export const plans = { query() { return rootValue(); }, - organizationEdge($mutation, args, info) { + organizationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34247,9 +31805,7 @@ export const plans = { return otherSource_organizationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OrganizationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34260,16 +31816,16 @@ export const plans = { }, DeleteOrganizationByOrganizationIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, organizationId: undefined }, DeleteOrganizationByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined @@ -34277,7 +31833,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -34285,7 +31842,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34301,9 +31858,7 @@ export const plans = { return otherSource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PeopleOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34314,16 +31869,16 @@ export const plans = { }, DeletePersonByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined }, DeletePersonByUsernameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, username: undefined @@ -34331,7 +31886,8 @@ export const plans = { DeleteRelationalItemRelationCompositePkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, relationalItemRelationCompositePk($object) { return $object.get("result"); @@ -34339,7 +31895,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationCompositePkEdge($mutation, args, info) { + relationalItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34355,9 +31911,7 @@ export const plans = { return relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34378,8 +31932,8 @@ export const plans = { }, DeleteRelationalItemRelationCompositePkByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, @@ -34388,7 +31942,8 @@ export const plans = { DeleteSingleTableItemRelationCompositePkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, singleTableItemRelationCompositePk($object) { return $object.get("result"); @@ -34396,7 +31951,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationCompositePkEdge($mutation, args, info) { + singleTableItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34412,9 +31967,7 @@ export const plans = { return otherSource_single_table_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePksOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34435,8 +31988,8 @@ export const plans = { }, DeleteSingleTableItemRelationCompositePkByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, @@ -34445,7 +31998,8 @@ export const plans = { DeleteRelationalItemRelationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, relationalItemRelation($object) { return $object.get("result"); @@ -34453,7 +32007,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationEdge($mutation, args, info) { + relationalItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34469,9 +32023,7 @@ export const plans = { return relational_item_relations_relational_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34492,16 +32044,16 @@ export const plans = { }, DeleteRelationalItemRelationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteRelationalItemRelationByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, @@ -34510,7 +32062,8 @@ export const plans = { DeleteSingleTableItemRelationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, singleTableItemRelation($object) { return $object.get("result"); @@ -34518,7 +32071,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationEdge($mutation, args, info) { + singleTableItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34534,9 +32087,7 @@ export const plans = { return otherSource_single_table_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34557,16 +32108,16 @@ export const plans = { }, DeleteSingleTableItemRelationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteSingleTableItemRelationByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, @@ -34575,7 +32126,8 @@ export const plans = { DeleteLogEntryPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, logEntry($object) { return $object.get("result"); @@ -34583,7 +32135,7 @@ export const plans = { query() { return rootValue(); }, - logEntryEdge($mutation, args, info) { + logEntryEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34599,9 +32151,7 @@ export const plans = { return otherSource_log_entriesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LogEntriesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34622,8 +32172,8 @@ export const plans = { }, DeleteLogEntryByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -34631,7 +32181,8 @@ export const plans = { DeleteFirstPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, firstPartyVulnerability($object) { return $object.get("result"); @@ -34639,7 +32190,7 @@ export const plans = { query() { return rootValue(); }, - firstPartyVulnerabilityEdge($mutation, args, info) { + firstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34655,9 +32206,7 @@ export const plans = { return paths_0_resource_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FirstPartyVulnerabilitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34668,8 +32217,8 @@ export const plans = { }, DeleteFirstPartyVulnerabilityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -34677,7 +32226,8 @@ export const plans = { DeleteThirdPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, thirdPartyVulnerability($object) { return $object.get("result"); @@ -34685,7 +32235,7 @@ export const plans = { query() { return rootValue(); }, - thirdPartyVulnerabilityEdge($mutation, args, info) { + thirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34701,9 +32251,7 @@ export const plans = { return paths_1_resource_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ThirdPartyVulnerabilitiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34714,8 +32262,8 @@ export const plans = { }, DeleteThirdPartyVulnerabilityByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -34723,7 +32271,8 @@ export const plans = { DeleteAwsApplicationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, awsApplication($object) { return $object.get("result"); @@ -34731,7 +32280,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationEdge($mutation, args, info) { + awsApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34747,9 +32296,7 @@ export const plans = { return otherSource_aws_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34770,8 +32317,8 @@ export const plans = { }, DeleteAwsApplicationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -34779,7 +32326,8 @@ export const plans = { DeleteGcpApplicationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, gcpApplication($object) { return $object.get("result"); @@ -34787,7 +32335,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationEdge($mutation, args, info) { + gcpApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -34803,9 +32351,7 @@ export const plans = { return otherSource_gcp_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -34826,8 +32372,8 @@ export const plans = { }, DeleteGcpApplicationByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 bac63e5550..9816cf7f1b 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -111,7 +113,7 @@ const spec_post_table = { }; const post_tableCodec = recordCodec(spec_post_table); const postsIdentifier = sql.identifier("smart_comment_relations", "post_view"); -const spec_posts = { +const postsCodec = recordCodec({ name: "posts", identifier: postsIdentifier, attributes: { @@ -141,8 +143,7 @@ const spec_posts = { } }, executor: executor -}; -const postsCodec = recordCodec(spec_posts); +}); const offer_tableIdentifier = sql.identifier("smart_comment_relations", "offer"); const spec_offer_table = { name: "offer_table", @@ -187,7 +188,7 @@ const spec_offer_table = { }; const offer_tableCodec = recordCodec(spec_offer_table); const offersIdentifier = sql.identifier("smart_comment_relations", "offer_view"); -const spec_offers = { +const offersCodec = recordCodec({ name: "offers", identifier: offersIdentifier, attributes: { @@ -227,10 +228,9 @@ const spec_offers = { } }, executor: executor -}; -const offersCodec = recordCodec(spec_offers); +}); const streetsIdentifier = sql.identifier("smart_comment_relations", "streets"); -const spec_streets = { +const streetsCodec = recordCodec({ name: "streets", identifier: streetsIdentifier, attributes: { @@ -268,10 +268,9 @@ const spec_streets = { } }, executor: executor -}; -const streetsCodec = recordCodec(spec_streets); +}); const propertiesIdentifier = sql.identifier("smart_comment_relations", "properties"); -const spec_properties = { +const propertiesCodec = recordCodec({ name: "properties", identifier: propertiesIdentifier, attributes: { @@ -317,10 +316,9 @@ const spec_properties = { } }, executor: executor -}; -const propertiesCodec = recordCodec(spec_properties); +}); const streetPropertyIdentifier = sql.identifier("smart_comment_relations", "street_property"); -const spec_streetProperty = { +const streetPropertyCodec = recordCodec({ name: "streetProperty", identifier: streetPropertyIdentifier, attributes: { @@ -366,8 +364,7 @@ const spec_streetProperty = { } }, executor: executor -}; -const streetPropertyCodec = recordCodec(spec_streetProperty); +}); const housesIdentifier = sql.identifier("smart_comment_relations", "houses"); const spec_houses = { name: "houses", @@ -460,7 +457,7 @@ const spec_houses = { }; const housesCodec = recordCodec(spec_houses); const buildingsIdentifier = sql.identifier("smart_comment_relations", "buildings"); -const spec_buildings = { +const buildingsCodec = recordCodec({ name: "buildings", identifier: buildingsIdentifier, attributes: { @@ -525,8 +522,7 @@ const spec_buildings = { } }, executor: executor -}; -const buildingsCodec = recordCodec(spec_buildings); +}); const registryConfig_pgResources_post_table_post_table = { executor: executor, name: "post_table", @@ -1267,6 +1263,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postsPgResource.get(spec); }, @@ -1286,6 +1285,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_offersPgResource.get(spec); }, @@ -1305,6 +1307,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_streetsPgResource.get(spec); }, @@ -1324,6 +1329,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_propertiesPgResource.get(spec); }, @@ -1344,6 +1352,9 @@ const nodeIdHandlerByTypeName = { prop_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_street_propertyPgResource.get(spec); }, @@ -1364,6 +1375,9 @@ const nodeIdHandlerByTypeName = { property_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_housesPgResource.get(spec); }, @@ -1383,6 +1397,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_buildingsPgResource.get(spec); }, @@ -1395,6 +1412,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1465,75 +1483,58 @@ const fetcher7 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Building); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Offer, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Street, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Property, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.StreetProperty, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Building, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Offer, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Street, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Property, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.StreetProperty, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Building, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3889,76 +3890,76 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, postById(_$root, args) { return pgResource_postsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, offerById(_$root, args) { return pgResource_offersPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetById(_$root, args) { return pgResource_streetsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetByName(_$root, args) { return pgResource_streetsPgResource.get({ - name: args.get("name") + name: args.getRaw("name") }); }, propertyById(_$root, args) { return pgResource_propertiesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetPropertyByStrIdAndPropId(_$root, args) { return pgResource_street_propertyPgResource.get({ - str_id: args.get("strId"), - prop_id: args.get("propId") + str_id: args.getRaw("strId"), + prop_id: args.getRaw("propId") }); }, houseByStreetIdAndPropertyId(_$root, args) { return pgResource_housesPgResource.get({ - street_id: args.get("streetId"), - property_id: args.get("propertyId") + street_id: args.getRaw("streetId"), + property_id: args.getRaw("propertyId") }); }, buildingById(_$root, args) { return pgResource_buildingsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, offer(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, street(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, property(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, streetProperty(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, house(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, building(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, allPosts: { @@ -3969,7 +3970,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3978,7 +3978,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3987,7 +3986,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3996,7 +3994,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4005,7 +4002,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4014,22 +4010,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4043,7 +4035,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4052,7 +4043,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4061,7 +4051,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4070,7 +4059,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4079,7 +4067,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4088,22 +4075,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4117,7 +4100,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4126,7 +4108,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4135,7 +4116,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4144,7 +4124,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4153,7 +4132,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4162,22 +4140,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4191,7 +4165,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4200,7 +4173,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4209,7 +4181,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4218,7 +4189,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4227,7 +4197,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4236,22 +4205,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4265,7 +4230,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4274,7 +4238,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4283,7 +4246,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4292,7 +4254,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4301,7 +4262,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4310,22 +4270,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4339,7 +4295,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4348,7 +4303,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4357,7 +4311,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4366,7 +4319,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4375,7 +4327,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4384,22 +4335,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4413,7 +4360,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4422,7 +4368,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4431,7 +4376,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4440,7 +4384,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4449,7 +4392,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4458,22 +4400,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4500,7 +4438,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4509,7 +4446,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4518,7 +4454,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4527,7 +4462,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4536,7 +4470,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4545,22 +4478,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4636,31 +4565,21 @@ export const plans = { } }, OffersOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { offersUniques[0].attributes.forEach(attributeName => { - const attribute = offersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4669,19 +4588,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { offersUniques[0].attributes.forEach(attributeName => { - const attribute = offersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4690,11 +4607,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -4702,7 +4616,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4712,11 +4626,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -4724,7 +4635,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4734,11 +4645,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "post_id", direction: "ASC", ...(undefined != null ? { @@ -4746,7 +4654,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4756,11 +4664,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "post_id", direction: "DESC", ...(undefined != null ? { @@ -4768,7 +4673,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4777,8 +4682,8 @@ export const plans = { }, OfferCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -4791,17 +4696,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_offers.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, postId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "post_id", @@ -4814,13 +4717,11 @@ export const plans = { type: "attribute", attribute: "post_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_offers.attributes.post_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Street: { @@ -4846,7 +4747,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4855,7 +4755,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4864,7 +4763,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4873,7 +4771,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4882,7 +4779,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4891,22 +4787,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4923,7 +4815,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4932,7 +4823,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4941,7 +4831,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4950,7 +4839,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4959,7 +4847,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4968,22 +4855,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5000,7 +4883,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5009,7 +4891,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5018,7 +4899,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5027,7 +4907,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5036,7 +4915,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5045,22 +4923,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5077,7 +4951,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5086,7 +4959,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5095,7 +4967,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5104,7 +4975,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5113,7 +4983,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5122,22 +4991,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5191,7 +5056,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5200,7 +5064,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5209,7 +5072,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5218,7 +5080,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5227,7 +5088,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5236,22 +5096,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5268,7 +5124,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5277,7 +5132,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5286,7 +5140,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5295,7 +5148,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5304,7 +5156,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5313,22 +5164,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5345,7 +5192,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5354,7 +5200,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5363,7 +5208,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5372,7 +5216,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5381,7 +5224,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5390,22 +5232,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5551,7 +5389,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5560,7 +5397,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5569,7 +5405,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5578,7 +5413,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5587,7 +5421,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5596,22 +5429,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5644,31 +5473,21 @@ export const plans = { } }, HousesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { housesUniques[0].attributes.forEach(attributeName => { - const attribute = housesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5677,19 +5496,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { housesUniques[0].attributes.forEach(attributeName => { - const attribute = housesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5698,11 +5515,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_name", direction: "ASC", ...(undefined != null ? { @@ -5710,7 +5524,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5720,11 +5534,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_name", direction: "DESC", ...(undefined != null ? { @@ -5732,7 +5543,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5742,11 +5553,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_name_or_number", direction: "ASC", ...(undefined != null ? { @@ -5754,7 +5562,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5764,11 +5572,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_name_or_number", direction: "DESC", ...(undefined != null ? { @@ -5776,7 +5581,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5786,11 +5591,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_name", direction: "ASC", ...(undefined != null ? { @@ -5798,7 +5600,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5808,11 +5610,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_name", direction: "DESC", ...(undefined != null ? { @@ -5820,7 +5619,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5830,11 +5629,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "ASC", ...(undefined != null ? { @@ -5842,7 +5638,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5852,11 +5648,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "DESC", ...(undefined != null ? { @@ -5864,7 +5657,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5874,11 +5667,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_id", direction: "ASC", ...(undefined != null ? { @@ -5886,7 +5676,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5896,11 +5686,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_id", direction: "DESC", ...(undefined != null ? { @@ -5908,7 +5695,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5918,11 +5705,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "ASC", ...(undefined != null ? { @@ -5930,7 +5714,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5940,11 +5724,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "DESC", ...(undefined != null ? { @@ -5952,7 +5733,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5962,11 +5743,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "ASC", ...(undefined != null ? { @@ -5974,7 +5752,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5984,11 +5762,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "DESC", ...(undefined != null ? { @@ -5996,7 +5771,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6005,8 +5780,8 @@ export const plans = { }, HouseCondition: { buildingName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "building_name", @@ -6019,17 +5794,15 @@ export const plans = { type: "attribute", attribute: "building_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.building_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyNameOrNumber: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_name_or_number", @@ -6042,17 +5815,15 @@ export const plans = { type: "attribute", attribute: "property_name_or_number", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.property_name_or_number.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_name", @@ -6065,17 +5836,15 @@ export const plans = { type: "attribute", attribute: "street_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.street_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_id", @@ -6088,17 +5857,15 @@ export const plans = { type: "attribute", attribute: "street_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.street_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, buildingId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "building_id", @@ -6111,17 +5878,15 @@ export const plans = { type: "attribute", attribute: "building_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.building_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_id", @@ -6134,17 +5899,15 @@ export const plans = { type: "attribute", attribute: "property_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.property_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, floors: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "floors", @@ -6157,13 +5920,11 @@ export const plans = { type: "attribute", attribute: "floors", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.floors.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StreetPropertiesEdge: { @@ -6176,31 +5937,21 @@ export const plans = { } }, StreetPropertiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { street_propertyUniques[0].attributes.forEach(attributeName => { - const attribute = streetPropertyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6209,19 +5960,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { street_propertyUniques[0].attributes.forEach(attributeName => { - const attribute = streetPropertyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6230,11 +5979,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str_id", direction: "ASC", ...(undefined != null ? { @@ -6242,7 +5988,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6252,11 +5998,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str_id", direction: "DESC", ...(undefined != null ? { @@ -6264,7 +6007,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6274,11 +6017,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "prop_id", direction: "ASC", ...(undefined != null ? { @@ -6286,7 +6026,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6296,11 +6036,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "prop_id", direction: "DESC", ...(undefined != null ? { @@ -6308,7 +6045,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6318,11 +6055,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "current_owner", direction: "ASC", ...(undefined != null ? { @@ -6330,7 +6064,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6340,11 +6074,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "current_owner", direction: "DESC", ...(undefined != null ? { @@ -6352,7 +6083,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6361,8 +6092,8 @@ export const plans = { }, StreetPropertyCondition: { strId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str_id", @@ -6375,17 +6106,15 @@ export const plans = { type: "attribute", attribute: "str_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.str_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "prop_id", @@ -6398,17 +6127,15 @@ export const plans = { type: "attribute", attribute: "prop_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.prop_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, currentOwner: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "current_owner", @@ -6421,13 +6148,11 @@ export const plans = { type: "attribute", attribute: "current_owner", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.current_owner.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BuildingsConnection: { @@ -6456,31 +6181,21 @@ export const plans = { } }, BuildingsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingsUniques[0].attributes.forEach(attributeName => { - const attribute = buildingsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6489,19 +6204,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingsUniques[0].attributes.forEach(attributeName => { - const attribute = buildingsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6510,11 +6223,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6522,7 +6232,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6532,11 +6242,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6544,7 +6251,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6554,11 +6261,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "ASC", ...(undefined != null ? { @@ -6566,7 +6270,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6576,11 +6280,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "DESC", ...(undefined != null ? { @@ -6588,7 +6289,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6598,11 +6299,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6610,7 +6308,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6620,11 +6318,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6632,7 +6327,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6642,11 +6337,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "ASC", ...(undefined != null ? { @@ -6654,7 +6346,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6664,11 +6356,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "DESC", ...(undefined != null ? { @@ -6676,7 +6365,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6686,11 +6375,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_primary", direction: "ASC", ...(undefined != null ? { @@ -6698,7 +6384,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6708,11 +6394,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_primary", direction: "DESC", ...(undefined != null ? { @@ -6720,7 +6403,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6729,8 +6412,8 @@ export const plans = { }, BuildingCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6743,17 +6426,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_id", @@ -6766,17 +6447,15 @@ export const plans = { type: "attribute", attribute: "property_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.property_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6789,17 +6468,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, floors: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "floors", @@ -6812,17 +6489,15 @@ export const plans = { type: "attribute", attribute: "floors", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.floors.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isPrimary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_primary", @@ -6835,13 +6510,11 @@ export const plans = { type: "attribute", attribute: "is_primary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.is_primary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PropertiesEdge: { @@ -6854,31 +6527,21 @@ export const plans = { } }, PropertiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { propertiesUniques[0].attributes.forEach(attributeName => { - const attribute = propertiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6887,19 +6550,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { propertiesUniques[0].attributes.forEach(attributeName => { - const attribute = propertiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6908,11 +6569,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6920,7 +6578,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6930,11 +6588,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6942,7 +6597,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6952,11 +6607,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "ASC", ...(undefined != null ? { @@ -6964,7 +6616,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6974,11 +6626,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "DESC", ...(undefined != null ? { @@ -6986,7 +6635,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6996,11 +6645,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name_or_number", direction: "ASC", ...(undefined != null ? { @@ -7008,7 +6654,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7018,11 +6664,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name_or_number", direction: "DESC", ...(undefined != null ? { @@ -7030,7 +6673,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7039,8 +6682,8 @@ export const plans = { }, PropertyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7053,17 +6696,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_id", @@ -7076,17 +6717,15 @@ export const plans = { type: "attribute", attribute: "street_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.street_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nameOrNumber: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name_or_number", @@ -7099,13 +6738,11 @@ export const plans = { type: "attribute", attribute: "name_or_number", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.name_or_number.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PostsConnection: { @@ -7134,31 +6771,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postsUniques[0].attributes.forEach(attributeName => { - const attribute = postsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7167,19 +6794,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postsUniques[0].attributes.forEach(attributeName => { - const attribute = postsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7188,11 +6813,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -7200,7 +6822,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7210,11 +6832,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -7222,7 +6841,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7231,8 +6850,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7245,13 +6864,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_posts.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StreetsConnection: { @@ -7280,31 +6897,21 @@ export const plans = { } }, StreetsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { streetsUniques[0].attributes.forEach(attributeName => { - const attribute = streetsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7313,19 +6920,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { streetsUniques[0].attributes.forEach(attributeName => { - const attribute = streetsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7334,11 +6939,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -7346,7 +6948,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7356,11 +6958,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -7368,7 +6967,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7378,11 +6977,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -7390,7 +6986,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7400,11 +6996,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -7412,7 +7005,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7421,8 +7014,8 @@ export const plans = { }, StreetCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7435,17 +7028,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streets.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -7458,30 +7049,28 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streets.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7491,17 +7080,17 @@ export const plans = { }, createOffer: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_offersPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_offersPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7511,17 +7100,17 @@ export const plans = { }, createStreet: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_streetsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_streetsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7531,17 +7120,17 @@ export const plans = { }, createProperty: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_propertiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_propertiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7551,17 +7140,17 @@ export const plans = { }, createStreetProperty: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_street_propertyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_street_propertyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7571,17 +7160,17 @@ export const plans = { }, createBuilding: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_buildingsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_buildingsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7591,11 +7180,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_postsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7610,13 +7199,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7631,11 +7220,11 @@ export const plans = { }, updateOffer: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_offersPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_offersPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7650,13 +7239,13 @@ export const plans = { }, updateOfferById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_offersPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_offersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7671,11 +7260,11 @@ export const plans = { }, updateStreet: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_streetsPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7690,13 +7279,13 @@ export const plans = { }, updateStreetById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_streetsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7711,13 +7300,13 @@ export const plans = { }, updateStreetByName: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, { - name: args.get(['input', "name"]) - }) + const $update = pgUpdateSingle(pgResource_streetsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7732,11 +7321,11 @@ export const plans = { }, updateProperty: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_propertiesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_propertiesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7751,13 +7340,13 @@ export const plans = { }, updatePropertyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_propertiesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_propertiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7772,11 +7361,11 @@ export const plans = { }, updateStreetProperty: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_street_propertyPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_street_propertyPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7791,14 +7380,14 @@ export const plans = { }, updateStreetPropertyByStrIdAndPropId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_street_propertyPgResource, { - str_id: args.get(['input', "strId"]), - prop_id: args.get(['input', "propId"]) - }) + const $update = pgUpdateSingle(pgResource_street_propertyPgResource, { + str_id: args.getRaw(['input', "strId"]), + prop_id: args.getRaw(['input', "propId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7813,11 +7402,11 @@ export const plans = { }, updateBuilding: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_buildingsPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_buildingsPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7832,13 +7421,13 @@ export const plans = { }, updateBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_buildingsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_buildingsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7853,11 +7442,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_postsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7872,13 +7461,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7893,11 +7482,11 @@ export const plans = { }, deleteOffer: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_offersPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_offersPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7912,13 +7501,13 @@ export const plans = { }, deleteOfferById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_offersPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_offersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7933,11 +7522,11 @@ export const plans = { }, deleteStreet: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7952,13 +7541,13 @@ export const plans = { }, deleteStreetById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7973,13 +7562,13 @@ export const plans = { }, deleteStreetByName: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, { - name: args.get(['input', "name"]) - }) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7994,11 +7583,11 @@ export const plans = { }, deleteProperty: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_propertiesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_propertiesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -8013,13 +7602,13 @@ export const plans = { }, deletePropertyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_propertiesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_propertiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -8034,11 +7623,11 @@ export const plans = { }, deleteStreetProperty: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_street_propertyPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_street_propertyPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -8053,14 +7642,14 @@ export const plans = { }, deleteStreetPropertyByStrIdAndPropId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_street_propertyPgResource, { - str_id: args.get(['input', "strId"]), - prop_id: args.get(['input', "propId"]) - }) + const $delete = pgDeleteSingle(pgResource_street_propertyPgResource, { + str_id: args.getRaw(['input', "strId"]), + prop_id: args.getRaw(['input', "propId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -8075,11 +7664,11 @@ export const plans = { }, deleteBuilding: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_buildingsPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_buildingsPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -8094,13 +7683,13 @@ export const plans = { }, deleteBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_buildingsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_buildingsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -8117,7 +7706,8 @@ export const plans = { CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8125,7 +7715,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8141,9 +7731,7 @@ export const plans = { return pgResource_postsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8154,35 +7742,34 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateOfferPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -8190,7 +7777,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8206,9 +7793,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8224,42 +7809,42 @@ export const plans = { }, CreateOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, offer: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, OfferInput: { - "__inputPlan": function OfferInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, postId: { - applyPlan($insert, val) { - $insert.set("post_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("post_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStreetPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -8267,7 +7852,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8283,9 +7868,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8296,42 +7879,42 @@ export const plans = { }, CreateStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, street: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StreetInput: { - "__inputPlan": function StreetInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePropertyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -8339,7 +7922,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8355,9 +7938,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8373,49 +7954,50 @@ export const plans = { }, CreatePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, property: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PropertyInput: { - "__inputPlan": function PropertyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, streetId: { - applyPlan($insert, val) { - $insert.set("street_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("street_id", bakedInputRuntime(schema, field.type, val)); + } }, nameOrNumber: { - applyPlan($insert, val) { - $insert.set("name_or_number", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name_or_number", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStreetPropertyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -8423,7 +8005,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8439,9 +8021,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8462,49 +8042,50 @@ export const plans = { }, CreateStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, streetProperty: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StreetPropertyInput: { - "__inputPlan": function StreetPropertyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, strId: { - applyPlan($insert, val) { - $insert.set("str_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str_id", bakedInputRuntime(schema, field.type, val)); + } }, propId: { - applyPlan($insert, val) { - $insert.set("prop_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("prop_id", bakedInputRuntime(schema, field.type, val)); + } }, currentOwner: { - applyPlan($insert, val) { - $insert.set("current_owner", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("current_owner", bakedInputRuntime(schema, field.type, val)); + } } }, CreateBuildingPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -8512,7 +8093,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8528,9 +8109,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8551,63 +8130,66 @@ export const plans = { }, CreateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, building: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, BuildingInput: { - "__inputPlan": function BuildingInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, propertyId: { - applyPlan($insert, val) { - $insert.set("property_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("property_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, floors: { - applyPlan($insert, val) { - $insert.set("floors", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("floors", bakedInputRuntime(schema, field.type, val)); + } }, isPrimary: { - applyPlan($insert, val) { - $insert.set("is_primary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_primary", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8615,7 +8197,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8631,9 +8213,7 @@ export const plans = { return pgResource_postsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8644,48 +8224,50 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateOfferPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -8693,7 +8275,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8709,9 +8291,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8727,55 +8307,58 @@ export const plans = { }, UpdateOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, offerPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, OfferPatch: { - "__inputPlan": function OfferPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, postId: { - applyPlan($insert, val) { - $insert.set("post_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("post_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOfferByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, offerPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -8783,7 +8366,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8799,9 +8382,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8812,69 +8393,73 @@ export const plans = { }, UpdateStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StreetPatch: { - "__inputPlan": function StreetPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStreetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -8882,7 +8467,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8898,9 +8483,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8916,62 +8499,66 @@ export const plans = { }, UpdatePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, propertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PropertyPatch: { - "__inputPlan": function PropertyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, streetId: { - applyPlan($insert, val) { - $insert.set("street_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("street_id", bakedInputRuntime(schema, field.type, val)); + } }, nameOrNumber: { - applyPlan($insert, val) { - $insert.set("name_or_number", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name_or_number", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePropertyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, propertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetPropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -8979,7 +8566,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8995,9 +8582,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9018,63 +8603,67 @@ export const plans = { }, UpdateStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, streetPropertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StreetPropertyPatch: { - "__inputPlan": function StreetPropertyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, strId: { - applyPlan($insert, val) { - $insert.set("str_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str_id", bakedInputRuntime(schema, field.type, val)); + } }, propId: { - applyPlan($insert, val) { - $insert.set("prop_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("prop_id", bakedInputRuntime(schema, field.type, val)); + } }, currentOwner: { - applyPlan($insert, val) { - $insert.set("current_owner", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("current_owner", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStreetPropertyByStrIdAndPropIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, strId: undefined, propId: undefined, streetPropertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -9082,7 +8671,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9098,9 +8687,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9121,76 +8708,82 @@ export const plans = { }, UpdateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, BuildingPatch: { - "__inputPlan": function BuildingPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, propertyId: { - applyPlan($insert, val) { - $insert.set("property_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("property_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, floors: { - applyPlan($insert, val) { - $insert.set("floors", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("floors", bakedInputRuntime(schema, field.type, val)); + } }, isPrimary: { - applyPlan($insert, val) { - $insert.set("is_primary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_primary", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -9203,7 +8796,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9219,9 +8812,7 @@ export const plans = { return pgResource_postsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9232,16 +8823,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -9249,7 +8840,8 @@ export const plans = { DeleteOfferPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -9262,7 +8854,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9278,9 +8870,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9296,16 +8886,16 @@ export const plans = { }, DeleteOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteOfferByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -9313,7 +8903,8 @@ export const plans = { DeleteStreetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -9326,7 +8917,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9342,9 +8933,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9355,24 +8944,24 @@ export const plans = { }, DeleteStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStreetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteStreetByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined @@ -9380,7 +8969,8 @@ export const plans = { DeletePropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -9393,7 +8983,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9409,9 +8999,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9427,16 +9015,16 @@ export const plans = { }, DeletePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePropertyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -9444,7 +9032,8 @@ export const plans = { DeleteStreetPropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -9457,7 +9046,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9473,9 +9062,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9496,16 +9083,16 @@ export const plans = { }, DeleteStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStreetPropertyByStrIdAndPropIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, strId: undefined, @@ -9514,7 +9101,8 @@ export const plans = { DeleteBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -9527,7 +9115,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9543,9 +9131,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9566,16 +9152,16 @@ export const plans = { }, DeleteBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 b8626b0d51..a2aa4ece5f 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -111,7 +113,7 @@ const spec_post_table = { }; const post_tableCodec = recordCodec(spec_post_table); const postsIdentifier = sql.identifier("smart_comment_relations", "post_view"); -const spec_posts = { +const postsCodec = recordCodec({ name: "posts", identifier: postsIdentifier, attributes: { @@ -141,8 +143,7 @@ const spec_posts = { } }, executor: executor -}; -const postsCodec = recordCodec(spec_posts); +}); const offer_tableIdentifier = sql.identifier("smart_comment_relations", "offer"); const spec_offer_table = { name: "offer_table", @@ -187,7 +188,7 @@ const spec_offer_table = { }; const offer_tableCodec = recordCodec(spec_offer_table); const offersIdentifier = sql.identifier("smart_comment_relations", "offer_view"); -const spec_offers = { +const offersCodec = recordCodec({ name: "offers", identifier: offersIdentifier, attributes: { @@ -227,10 +228,9 @@ const spec_offers = { } }, executor: executor -}; -const offersCodec = recordCodec(spec_offers); +}); const streetsIdentifier = sql.identifier("smart_comment_relations", "streets"); -const spec_streets = { +const streetsCodec = recordCodec({ name: "streets", identifier: streetsIdentifier, attributes: { @@ -268,10 +268,9 @@ const spec_streets = { } }, executor: executor -}; -const streetsCodec = recordCodec(spec_streets); +}); const propertiesIdentifier = sql.identifier("smart_comment_relations", "properties"); -const spec_properties = { +const propertiesCodec = recordCodec({ name: "properties", identifier: propertiesIdentifier, attributes: { @@ -317,10 +316,9 @@ const spec_properties = { } }, executor: executor -}; -const propertiesCodec = recordCodec(spec_properties); +}); const streetPropertyIdentifier = sql.identifier("smart_comment_relations", "street_property"); -const spec_streetProperty = { +const streetPropertyCodec = recordCodec({ name: "streetProperty", identifier: streetPropertyIdentifier, attributes: { @@ -366,8 +364,7 @@ const spec_streetProperty = { } }, executor: executor -}; -const streetPropertyCodec = recordCodec(spec_streetProperty); +}); const housesIdentifier = sql.identifier("smart_comment_relations", "houses"); const spec_houses = { name: "houses", @@ -460,7 +457,7 @@ const spec_houses = { }; const housesCodec = recordCodec(spec_houses); const buildingsIdentifier = sql.identifier("smart_comment_relations", "buildings"); -const spec_buildings = { +const buildingsCodec = recordCodec({ name: "buildings", identifier: buildingsIdentifier, attributes: { @@ -525,8 +522,7 @@ const spec_buildings = { } }, executor: executor -}; -const buildingsCodec = recordCodec(spec_buildings); +}); const registryConfig_pgResources_post_table_post_table = { executor: executor, name: "post_table", @@ -1263,6 +1259,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postsPgResource.get(spec); }, @@ -1282,6 +1281,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_offersPgResource.get(spec); }, @@ -1301,6 +1303,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_streetsPgResource.get(spec); }, @@ -1320,6 +1325,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_propertiesPgResource.get(spec); }, @@ -1340,6 +1348,9 @@ const nodeIdHandlerByTypeName = { prop_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_street_propertyPgResource.get(spec); }, @@ -1360,6 +1371,9 @@ const nodeIdHandlerByTypeName = { property_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_housesPgResource.get(spec); }, @@ -1379,6 +1393,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_buildingsPgResource.get(spec); }, @@ -1391,6 +1408,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1461,75 +1479,58 @@ const fetcher7 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Building); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Offer, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Street, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Property, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.StreetProperty, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Building, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Offer, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Street, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Property, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.StreetProperty, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Building, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3844,76 +3845,76 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, postById(_$root, args) { return pgResource_postsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, offerById(_$root, args) { return pgResource_offersPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetById(_$root, args) { return pgResource_streetsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetByName(_$root, args) { return pgResource_streetsPgResource.get({ - name: args.get("name") + name: args.getRaw("name") }); }, propertyById(_$root, args) { return pgResource_propertiesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetPropertyByStrIdAndPropId(_$root, args) { return pgResource_street_propertyPgResource.get({ - str_id: args.get("strId"), - prop_id: args.get("propId") + str_id: args.getRaw("strId"), + prop_id: args.getRaw("propId") }); }, houseByStreetIdAndPropertyId(_$root, args) { return pgResource_housesPgResource.get({ - street_id: args.get("streetId"), - property_id: args.get("propertyId") + street_id: args.getRaw("streetId"), + property_id: args.getRaw("propertyId") }); }, buildingById(_$root, args) { return pgResource_buildingsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, offer(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, street(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, property(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, streetProperty(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, house(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, building(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, allPosts: { @@ -3924,7 +3925,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3933,7 +3933,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3942,7 +3941,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3951,7 +3949,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3960,7 +3957,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3969,22 +3965,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3998,7 +3990,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4007,7 +3998,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4016,7 +4006,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4025,7 +4014,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4034,7 +4022,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4043,22 +4030,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4072,7 +4055,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4081,7 +4063,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4090,7 +4071,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4099,7 +4079,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4108,7 +4087,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4117,22 +4095,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4146,7 +4120,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4155,7 +4128,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4164,7 +4136,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4173,7 +4144,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4182,7 +4152,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4191,22 +4160,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4220,7 +4185,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4229,7 +4193,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4238,7 +4201,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4247,7 +4209,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4256,7 +4217,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4265,22 +4225,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4294,7 +4250,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4303,7 +4258,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4312,7 +4266,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4321,7 +4274,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4330,7 +4282,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4339,22 +4290,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4368,7 +4315,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4377,7 +4323,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4386,7 +4331,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4395,7 +4339,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4404,7 +4347,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4413,22 +4355,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4481,7 +4419,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4490,7 +4427,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4499,7 +4435,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4508,7 +4443,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4517,7 +4451,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4526,22 +4459,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4558,7 +4487,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4567,7 +4495,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4576,7 +4503,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4585,7 +4511,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4594,7 +4519,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4603,22 +4527,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4635,7 +4555,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4644,7 +4563,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4653,7 +4571,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4662,7 +4579,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4671,7 +4587,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4680,22 +4595,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4712,7 +4623,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4721,7 +4631,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4730,7 +4639,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4739,7 +4647,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4748,7 +4655,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4757,22 +4663,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4826,7 +4728,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4835,7 +4736,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4844,7 +4744,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4853,7 +4752,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4862,7 +4760,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4871,22 +4768,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4903,7 +4796,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4912,7 +4804,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4921,7 +4812,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4930,7 +4820,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4939,7 +4828,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4948,22 +4836,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4980,7 +4864,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4989,7 +4872,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4998,7 +4880,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5007,7 +4888,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5016,7 +4896,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5025,22 +4904,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5186,7 +5061,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5195,7 +5069,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5204,7 +5077,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5213,7 +5085,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5222,7 +5093,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5231,22 +5101,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5304,31 +5170,21 @@ export const plans = { } }, HousesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { housesUniques[0].attributes.forEach(attributeName => { - const attribute = housesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5337,19 +5193,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { housesUniques[0].attributes.forEach(attributeName => { - const attribute = housesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5358,11 +5212,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_name", direction: "ASC", ...(undefined != null ? { @@ -5370,7 +5221,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5380,11 +5231,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_name", direction: "DESC", ...(undefined != null ? { @@ -5392,7 +5240,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5402,11 +5250,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_name_or_number", direction: "ASC", ...(undefined != null ? { @@ -5414,7 +5259,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5424,11 +5269,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_name_or_number", direction: "DESC", ...(undefined != null ? { @@ -5436,7 +5278,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5446,11 +5288,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_name", direction: "ASC", ...(undefined != null ? { @@ -5458,7 +5297,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5468,11 +5307,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_name", direction: "DESC", ...(undefined != null ? { @@ -5480,7 +5316,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5490,11 +5326,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "ASC", ...(undefined != null ? { @@ -5502,7 +5335,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5512,11 +5345,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "DESC", ...(undefined != null ? { @@ -5524,7 +5354,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5534,11 +5364,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_id", direction: "ASC", ...(undefined != null ? { @@ -5546,7 +5373,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5556,11 +5383,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_id", direction: "DESC", ...(undefined != null ? { @@ -5568,7 +5392,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5578,11 +5402,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "ASC", ...(undefined != null ? { @@ -5590,7 +5411,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5600,11 +5421,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "DESC", ...(undefined != null ? { @@ -5612,7 +5430,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5622,11 +5440,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "ASC", ...(undefined != null ? { @@ -5634,7 +5449,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5644,11 +5459,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "DESC", ...(undefined != null ? { @@ -5656,7 +5468,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5665,8 +5477,8 @@ export const plans = { }, HouseCondition: { buildingName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "building_name", @@ -5679,17 +5491,15 @@ export const plans = { type: "attribute", attribute: "building_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.building_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyNameOrNumber: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_name_or_number", @@ -5702,17 +5512,15 @@ export const plans = { type: "attribute", attribute: "property_name_or_number", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.property_name_or_number.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_name", @@ -5725,17 +5533,15 @@ export const plans = { type: "attribute", attribute: "street_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.street_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_id", @@ -5748,17 +5554,15 @@ export const plans = { type: "attribute", attribute: "street_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.street_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, buildingId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "building_id", @@ -5771,17 +5575,15 @@ export const plans = { type: "attribute", attribute: "building_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.building_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_id", @@ -5794,17 +5596,15 @@ export const plans = { type: "attribute", attribute: "property_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.property_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, floors: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "floors", @@ -5817,13 +5617,11 @@ export const plans = { type: "attribute", attribute: "floors", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.floors.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StreetPropertiesEdge: { @@ -5836,31 +5634,21 @@ export const plans = { } }, StreetPropertiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { street_propertyUniques[0].attributes.forEach(attributeName => { - const attribute = streetPropertyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5869,19 +5657,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { street_propertyUniques[0].attributes.forEach(attributeName => { - const attribute = streetPropertyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5890,11 +5676,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str_id", direction: "ASC", ...(undefined != null ? { @@ -5902,7 +5685,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5912,11 +5695,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str_id", direction: "DESC", ...(undefined != null ? { @@ -5924,7 +5704,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5934,11 +5714,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "prop_id", direction: "ASC", ...(undefined != null ? { @@ -5946,7 +5723,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5956,11 +5733,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "prop_id", direction: "DESC", ...(undefined != null ? { @@ -5968,7 +5742,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5978,11 +5752,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "current_owner", direction: "ASC", ...(undefined != null ? { @@ -5990,7 +5761,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6000,11 +5771,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "current_owner", direction: "DESC", ...(undefined != null ? { @@ -6012,7 +5780,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6021,8 +5789,8 @@ export const plans = { }, StreetPropertyCondition: { strId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str_id", @@ -6035,17 +5803,15 @@ export const plans = { type: "attribute", attribute: "str_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.str_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "prop_id", @@ -6058,17 +5824,15 @@ export const plans = { type: "attribute", attribute: "prop_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.prop_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, currentOwner: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "current_owner", @@ -6081,13 +5845,11 @@ export const plans = { type: "attribute", attribute: "current_owner", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.current_owner.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BuildingsConnection: { @@ -6116,31 +5878,21 @@ export const plans = { } }, BuildingsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingsUniques[0].attributes.forEach(attributeName => { - const attribute = buildingsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6149,19 +5901,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingsUniques[0].attributes.forEach(attributeName => { - const attribute = buildingsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6170,11 +5920,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6182,7 +5929,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6192,11 +5939,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6204,7 +5948,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6214,11 +5958,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "ASC", ...(undefined != null ? { @@ -6226,7 +5967,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6236,11 +5977,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "DESC", ...(undefined != null ? { @@ -6248,7 +5986,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6258,11 +5996,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6270,7 +6005,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6280,11 +6015,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6292,7 +6024,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6302,11 +6034,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "ASC", ...(undefined != null ? { @@ -6314,7 +6043,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6324,11 +6053,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "DESC", ...(undefined != null ? { @@ -6336,7 +6062,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6346,11 +6072,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_primary", direction: "ASC", ...(undefined != null ? { @@ -6358,7 +6081,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6368,11 +6091,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_primary", direction: "DESC", ...(undefined != null ? { @@ -6380,7 +6100,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6389,8 +6109,8 @@ export const plans = { }, BuildingCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6403,17 +6123,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_id", @@ -6426,17 +6144,15 @@ export const plans = { type: "attribute", attribute: "property_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.property_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6449,17 +6165,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, floors: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "floors", @@ -6472,17 +6186,15 @@ export const plans = { type: "attribute", attribute: "floors", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.floors.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isPrimary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_primary", @@ -6495,13 +6207,11 @@ export const plans = { type: "attribute", attribute: "is_primary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.is_primary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PropertiesEdge: { @@ -6514,31 +6224,21 @@ export const plans = { } }, PropertiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { propertiesUniques[0].attributes.forEach(attributeName => { - const attribute = propertiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6547,19 +6247,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { propertiesUniques[0].attributes.forEach(attributeName => { - const attribute = propertiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6568,11 +6266,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6580,7 +6275,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6590,11 +6285,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6602,7 +6294,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6612,11 +6304,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "ASC", ...(undefined != null ? { @@ -6624,7 +6313,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6634,11 +6323,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "DESC", ...(undefined != null ? { @@ -6646,7 +6332,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6656,11 +6342,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name_or_number", direction: "ASC", ...(undefined != null ? { @@ -6668,7 +6351,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6678,11 +6361,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name_or_number", direction: "DESC", ...(undefined != null ? { @@ -6690,7 +6370,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6699,8 +6379,8 @@ export const plans = { }, PropertyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6713,17 +6393,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_id", @@ -6736,17 +6414,15 @@ export const plans = { type: "attribute", attribute: "street_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.street_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nameOrNumber: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name_or_number", @@ -6759,13 +6435,11 @@ export const plans = { type: "attribute", attribute: "name_or_number", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.name_or_number.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PostsConnection: { @@ -6794,31 +6468,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postsUniques[0].attributes.forEach(attributeName => { - const attribute = postsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6827,19 +6491,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postsUniques[0].attributes.forEach(attributeName => { - const attribute = postsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6848,11 +6510,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6860,7 +6519,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6870,11 +6529,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6882,7 +6538,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6891,8 +6547,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6905,13 +6561,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_posts.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, OffersConnection: { @@ -6940,31 +6594,21 @@ export const plans = { } }, OffersOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { offersUniques[0].attributes.forEach(attributeName => { - const attribute = offersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6973,19 +6617,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { offersUniques[0].attributes.forEach(attributeName => { - const attribute = offersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6994,11 +6636,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -7006,7 +6645,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7016,11 +6655,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -7028,7 +6664,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7038,11 +6674,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "post_id", direction: "ASC", ...(undefined != null ? { @@ -7050,7 +6683,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7060,11 +6693,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "post_id", direction: "DESC", ...(undefined != null ? { @@ -7072,7 +6702,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7081,8 +6711,8 @@ export const plans = { }, OfferCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7095,17 +6725,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_offers.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, postId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "post_id", @@ -7118,13 +6746,11 @@ export const plans = { type: "attribute", attribute: "post_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_offers.attributes.post_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StreetsConnection: { @@ -7153,31 +6779,21 @@ export const plans = { } }, StreetsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { streetsUniques[0].attributes.forEach(attributeName => { - const attribute = streetsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7186,19 +6802,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { streetsUniques[0].attributes.forEach(attributeName => { - const attribute = streetsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7207,11 +6821,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -7219,7 +6830,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7229,11 +6840,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -7241,7 +6849,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7251,11 +6859,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -7263,7 +6868,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7273,11 +6878,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -7285,7 +6887,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7294,8 +6896,8 @@ export const plans = { }, StreetCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7308,17 +6910,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streets.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -7331,30 +6931,28 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streets.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7364,17 +6962,17 @@ export const plans = { }, createOffer: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_offersPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_offersPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7384,17 +6982,17 @@ export const plans = { }, createStreet: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_streetsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_streetsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7404,17 +7002,17 @@ export const plans = { }, createProperty: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_propertiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_propertiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7424,17 +7022,17 @@ export const plans = { }, createStreetProperty: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_street_propertyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_street_propertyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7444,17 +7042,17 @@ export const plans = { }, createBuilding: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_buildingsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_buildingsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7464,11 +7062,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_postsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7483,13 +7081,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7504,11 +7102,11 @@ export const plans = { }, updateOffer: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_offersPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_offersPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7523,13 +7121,13 @@ export const plans = { }, updateOfferById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_offersPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_offersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7544,11 +7142,11 @@ export const plans = { }, updateStreet: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_streetsPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7563,13 +7161,13 @@ export const plans = { }, updateStreetById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_streetsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7584,13 +7182,13 @@ export const plans = { }, updateStreetByName: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, { - name: args.get(['input', "name"]) - }) + const $update = pgUpdateSingle(pgResource_streetsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7605,11 +7203,11 @@ export const plans = { }, updateProperty: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_propertiesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_propertiesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7624,13 +7222,13 @@ export const plans = { }, updatePropertyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_propertiesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_propertiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7645,11 +7243,11 @@ export const plans = { }, updateStreetProperty: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_street_propertyPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_street_propertyPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7664,14 +7262,14 @@ export const plans = { }, updateStreetPropertyByStrIdAndPropId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_street_propertyPgResource, { - str_id: args.get(['input', "strId"]), - prop_id: args.get(['input', "propId"]) - }) + const $update = pgUpdateSingle(pgResource_street_propertyPgResource, { + str_id: args.getRaw(['input', "strId"]), + prop_id: args.getRaw(['input', "propId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7686,11 +7284,11 @@ export const plans = { }, updateBuilding: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_buildingsPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_buildingsPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7705,13 +7303,13 @@ export const plans = { }, updateBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_buildingsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_buildingsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7726,11 +7324,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_postsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7745,13 +7343,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7766,11 +7364,11 @@ export const plans = { }, deleteOffer: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_offersPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_offersPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7785,13 +7383,13 @@ export const plans = { }, deleteOfferById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_offersPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_offersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7806,11 +7404,11 @@ export const plans = { }, deleteStreet: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7825,13 +7423,13 @@ export const plans = { }, deleteStreetById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7846,13 +7444,13 @@ export const plans = { }, deleteStreetByName: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, { - name: args.get(['input', "name"]) - }) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7867,11 +7465,11 @@ export const plans = { }, deleteProperty: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_propertiesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_propertiesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7886,13 +7484,13 @@ export const plans = { }, deletePropertyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_propertiesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_propertiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7907,11 +7505,11 @@ export const plans = { }, deleteStreetProperty: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_street_propertyPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_street_propertyPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7926,14 +7524,14 @@ export const plans = { }, deleteStreetPropertyByStrIdAndPropId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_street_propertyPgResource, { - str_id: args.get(['input', "strId"]), - prop_id: args.get(['input', "propId"]) - }) + const $delete = pgDeleteSingle(pgResource_street_propertyPgResource, { + str_id: args.getRaw(['input', "strId"]), + prop_id: args.getRaw(['input', "propId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7948,11 +7546,11 @@ export const plans = { }, deleteBuilding: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_buildingsPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_buildingsPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7967,13 +7565,13 @@ export const plans = { }, deleteBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_buildingsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_buildingsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7990,7 +7588,8 @@ export const plans = { CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7998,7 +7597,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8014,9 +7613,7 @@ export const plans = { return pgResource_postsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8027,35 +7624,34 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateOfferPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -8063,7 +7659,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8079,9 +7675,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8092,42 +7686,42 @@ export const plans = { }, CreateOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, offer: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, OfferInput: { - "__inputPlan": function OfferInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, postId: { - applyPlan($insert, val) { - $insert.set("post_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("post_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStreetPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -8135,7 +7729,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8151,9 +7745,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8164,42 +7756,42 @@ export const plans = { }, CreateStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, street: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StreetInput: { - "__inputPlan": function StreetInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePropertyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -8207,7 +7799,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8223,9 +7815,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8241,49 +7831,50 @@ export const plans = { }, CreatePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, property: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PropertyInput: { - "__inputPlan": function PropertyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, streetId: { - applyPlan($insert, val) { - $insert.set("street_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("street_id", bakedInputRuntime(schema, field.type, val)); + } }, nameOrNumber: { - applyPlan($insert, val) { - $insert.set("name_or_number", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name_or_number", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStreetPropertyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -8291,7 +7882,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8307,9 +7898,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8330,49 +7919,50 @@ export const plans = { }, CreateStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, streetProperty: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StreetPropertyInput: { - "__inputPlan": function StreetPropertyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, strId: { - applyPlan($insert, val) { - $insert.set("str_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str_id", bakedInputRuntime(schema, field.type, val)); + } }, propId: { - applyPlan($insert, val) { - $insert.set("prop_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("prop_id", bakedInputRuntime(schema, field.type, val)); + } }, currentOwner: { - applyPlan($insert, val) { - $insert.set("current_owner", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("current_owner", bakedInputRuntime(schema, field.type, val)); + } } }, CreateBuildingPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -8380,7 +7970,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8396,9 +7986,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8419,63 +8007,66 @@ export const plans = { }, CreateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, building: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, BuildingInput: { - "__inputPlan": function BuildingInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, propertyId: { - applyPlan($insert, val) { - $insert.set("property_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("property_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, floors: { - applyPlan($insert, val) { - $insert.set("floors", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("floors", bakedInputRuntime(schema, field.type, val)); + } }, isPrimary: { - applyPlan($insert, val) { - $insert.set("is_primary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_primary", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8483,7 +8074,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8499,9 +8090,7 @@ export const plans = { return pgResource_postsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8512,48 +8101,50 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateOfferPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -8561,7 +8152,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8577,9 +8168,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8590,55 +8179,58 @@ export const plans = { }, UpdateOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, offerPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, OfferPatch: { - "__inputPlan": function OfferPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, postId: { - applyPlan($insert, val) { - $insert.set("post_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("post_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOfferByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, offerPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -8646,7 +8238,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8662,9 +8254,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8675,69 +8265,73 @@ export const plans = { }, UpdateStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StreetPatch: { - "__inputPlan": function StreetPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStreetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -8745,7 +8339,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8761,9 +8355,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8779,62 +8371,66 @@ export const plans = { }, UpdatePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, propertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PropertyPatch: { - "__inputPlan": function PropertyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, streetId: { - applyPlan($insert, val) { - $insert.set("street_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("street_id", bakedInputRuntime(schema, field.type, val)); + } }, nameOrNumber: { - applyPlan($insert, val) { - $insert.set("name_or_number", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name_or_number", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePropertyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, propertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetPropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -8842,7 +8438,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8858,9 +8454,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8881,63 +8475,67 @@ export const plans = { }, UpdateStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, streetPropertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StreetPropertyPatch: { - "__inputPlan": function StreetPropertyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, strId: { - applyPlan($insert, val) { - $insert.set("str_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str_id", bakedInputRuntime(schema, field.type, val)); + } }, propId: { - applyPlan($insert, val) { - $insert.set("prop_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("prop_id", bakedInputRuntime(schema, field.type, val)); + } }, currentOwner: { - applyPlan($insert, val) { - $insert.set("current_owner", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("current_owner", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStreetPropertyByStrIdAndPropIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, strId: undefined, propId: undefined, streetPropertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -8945,7 +8543,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8961,9 +8559,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8984,76 +8580,82 @@ export const plans = { }, UpdateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, BuildingPatch: { - "__inputPlan": function BuildingPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, propertyId: { - applyPlan($insert, val) { - $insert.set("property_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("property_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, floors: { - applyPlan($insert, val) { - $insert.set("floors", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("floors", bakedInputRuntime(schema, field.type, val)); + } }, isPrimary: { - applyPlan($insert, val) { - $insert.set("is_primary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_primary", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -9066,7 +8668,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9082,9 +8684,7 @@ export const plans = { return pgResource_postsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9095,16 +8695,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -9112,7 +8712,8 @@ export const plans = { DeleteOfferPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -9125,7 +8726,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9141,9 +8742,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9154,16 +8753,16 @@ export const plans = { }, DeleteOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteOfferByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -9171,7 +8770,8 @@ export const plans = { DeleteStreetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -9184,7 +8784,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9200,9 +8800,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9213,24 +8811,24 @@ export const plans = { }, DeleteStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStreetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteStreetByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined @@ -9238,7 +8836,8 @@ export const plans = { DeletePropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -9251,7 +8850,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9267,9 +8866,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9285,16 +8882,16 @@ export const plans = { }, DeletePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePropertyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -9302,7 +8899,8 @@ export const plans = { DeleteStreetPropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -9315,7 +8913,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9331,9 +8929,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9354,16 +8950,16 @@ export const plans = { }, DeleteStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStreetPropertyByStrIdAndPropIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, strId: undefined, @@ -9372,7 +8968,8 @@ export const plans = { DeleteBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -9385,7 +8982,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9401,9 +8998,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9424,16 +9019,16 @@ export const plans = { }, DeleteBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 8782681575..00cf321166 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -111,7 +113,7 @@ const spec_post_table = { }; const post_tableCodec = recordCodec(spec_post_table); const postsIdentifier = sql.identifier("smart_comment_relations", "post_view"); -const spec_posts = { +const postsCodec = recordCodec({ name: "posts", identifier: postsIdentifier, attributes: { @@ -141,8 +143,7 @@ const spec_posts = { } }, executor: executor -}; -const postsCodec = recordCodec(spec_posts); +}); const offer_tableIdentifier = sql.identifier("smart_comment_relations", "offer"); const spec_offer_table = { name: "offer_table", @@ -187,7 +188,7 @@ const spec_offer_table = { }; const offer_tableCodec = recordCodec(spec_offer_table); const offersIdentifier = sql.identifier("smart_comment_relations", "offer_view"); -const spec_offers = { +const offersCodec = recordCodec({ name: "offers", identifier: offersIdentifier, attributes: { @@ -227,10 +228,9 @@ const spec_offers = { } }, executor: executor -}; -const offersCodec = recordCodec(spec_offers); +}); const streetsIdentifier = sql.identifier("smart_comment_relations", "streets"); -const spec_streets = { +const streetsCodec = recordCodec({ name: "streets", identifier: streetsIdentifier, attributes: { @@ -268,10 +268,9 @@ const spec_streets = { } }, executor: executor -}; -const streetsCodec = recordCodec(spec_streets); +}); const propertiesIdentifier = sql.identifier("smart_comment_relations", "properties"); -const spec_properties = { +const propertiesCodec = recordCodec({ name: "properties", identifier: propertiesIdentifier, attributes: { @@ -317,10 +316,9 @@ const spec_properties = { } }, executor: executor -}; -const propertiesCodec = recordCodec(spec_properties); +}); const streetPropertyIdentifier = sql.identifier("smart_comment_relations", "street_property"); -const spec_streetProperty = { +const streetPropertyCodec = recordCodec({ name: "streetProperty", identifier: streetPropertyIdentifier, attributes: { @@ -366,8 +364,7 @@ const spec_streetProperty = { } }, executor: executor -}; -const streetPropertyCodec = recordCodec(spec_streetProperty); +}); const housesIdentifier = sql.identifier("smart_comment_relations", "houses"); const spec_houses = { name: "houses", @@ -460,7 +457,7 @@ const spec_houses = { }; const housesCodec = recordCodec(spec_houses); const buildingsIdentifier = sql.identifier("smart_comment_relations", "buildings"); -const spec_buildings = { +const buildingsCodec = recordCodec({ name: "buildings", identifier: buildingsIdentifier, attributes: { @@ -525,8 +522,7 @@ const spec_buildings = { } }, executor: executor -}; -const buildingsCodec = recordCodec(spec_buildings); +}); const registryConfig_pgResources_post_table_post_table = { executor: executor, name: "post_table", @@ -1267,6 +1263,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postsPgResource.get(spec); }, @@ -1286,6 +1285,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_offersPgResource.get(spec); }, @@ -1305,6 +1307,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_streetsPgResource.get(spec); }, @@ -1324,6 +1329,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_propertiesPgResource.get(spec); }, @@ -1344,6 +1352,9 @@ const nodeIdHandlerByTypeName = { prop_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_street_propertyPgResource.get(spec); }, @@ -1364,6 +1375,9 @@ const nodeIdHandlerByTypeName = { property_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_housesPgResource.get(spec); }, @@ -1383,6 +1397,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_buildingsPgResource.get(spec); }, @@ -1395,6 +1412,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1465,75 +1483,58 @@ const fetcher7 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Building); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Offer, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Street, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Property, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.StreetProperty, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Building, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Offer, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Street, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Property, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.StreetProperty, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Building, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3889,76 +3890,76 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, postById(_$root, args) { return pgResource_postsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, offerById(_$root, args) { return pgResource_offersPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetById(_$root, args) { return pgResource_streetsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetByName(_$root, args) { return pgResource_streetsPgResource.get({ - name: args.get("name") + name: args.getRaw("name") }); }, propertyById(_$root, args) { return pgResource_propertiesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetPropertyByStrIdAndPropId(_$root, args) { return pgResource_street_propertyPgResource.get({ - str_id: args.get("strId"), - prop_id: args.get("propId") + str_id: args.getRaw("strId"), + prop_id: args.getRaw("propId") }); }, houseByStreetIdAndPropertyId(_$root, args) { return pgResource_housesPgResource.get({ - street_id: args.get("streetId"), - property_id: args.get("propertyId") + street_id: args.getRaw("streetId"), + property_id: args.getRaw("propertyId") }); }, buildingById(_$root, args) { return pgResource_buildingsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, offer(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, street(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, property(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, streetProperty(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, house(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, building(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, allPosts: { @@ -3969,7 +3970,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3978,7 +3978,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3987,7 +3986,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3996,7 +3994,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4005,7 +4002,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4014,22 +4010,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4043,7 +4035,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4052,7 +4043,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4061,7 +4051,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4070,7 +4059,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4079,7 +4067,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4088,22 +4075,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4117,7 +4100,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4126,7 +4108,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4135,7 +4116,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4144,7 +4124,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4153,7 +4132,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4162,22 +4140,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4191,7 +4165,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4200,7 +4173,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4209,7 +4181,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4218,7 +4189,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4227,7 +4197,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4236,22 +4205,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4265,7 +4230,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4274,7 +4238,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4283,7 +4246,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4292,7 +4254,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4301,7 +4262,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4310,22 +4270,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4339,7 +4295,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4348,7 +4303,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4357,7 +4311,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4366,7 +4319,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4375,7 +4327,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4384,22 +4335,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4413,7 +4360,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4422,7 +4368,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4431,7 +4376,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4440,7 +4384,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4449,7 +4392,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4458,22 +4400,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4500,7 +4438,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4509,7 +4446,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4518,7 +4454,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4527,7 +4462,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4536,7 +4470,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4545,22 +4478,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4636,31 +4565,21 @@ export const plans = { } }, OffersOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { offersUniques[0].attributes.forEach(attributeName => { - const attribute = offersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4669,19 +4588,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { offersUniques[0].attributes.forEach(attributeName => { - const attribute = offersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4690,11 +4607,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -4702,7 +4616,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4712,11 +4626,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -4724,7 +4635,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4734,11 +4645,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "post_id", direction: "ASC", ...(undefined != null ? { @@ -4746,7 +4654,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4756,11 +4664,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "post_id", direction: "DESC", ...(undefined != null ? { @@ -4768,7 +4673,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4777,8 +4682,8 @@ export const plans = { }, OfferCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -4791,17 +4696,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_offers.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, postId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "post_id", @@ -4814,13 +4717,11 @@ export const plans = { type: "attribute", attribute: "post_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_offers.attributes.post_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Street: { @@ -4846,7 +4747,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4855,7 +4755,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4864,7 +4763,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4873,7 +4771,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4882,7 +4779,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4891,22 +4787,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4923,7 +4815,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4932,7 +4823,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4941,7 +4831,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4950,7 +4839,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4959,7 +4847,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4968,22 +4855,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5000,7 +4883,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5009,7 +4891,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5018,7 +4899,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5027,7 +4907,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5036,7 +4915,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5045,22 +4923,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5077,7 +4951,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5086,7 +4959,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5095,7 +4967,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5104,7 +4975,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5113,7 +4983,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5122,22 +4991,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5191,7 +5056,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5200,7 +5064,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5209,7 +5072,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5218,7 +5080,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5227,7 +5088,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5236,22 +5096,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5268,7 +5124,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5277,7 +5132,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5286,7 +5140,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5295,7 +5148,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5304,7 +5156,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5313,22 +5164,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5345,7 +5192,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5354,7 +5200,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5363,7 +5208,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5372,7 +5216,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5381,7 +5224,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5390,22 +5232,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5551,7 +5389,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5560,7 +5397,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5569,7 +5405,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5578,7 +5413,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5587,7 +5421,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5596,22 +5429,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5644,31 +5473,21 @@ export const plans = { } }, HousesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { housesUniques[0].attributes.forEach(attributeName => { - const attribute = housesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5677,19 +5496,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { housesUniques[0].attributes.forEach(attributeName => { - const attribute = housesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5698,11 +5515,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_name", direction: "ASC", ...(undefined != null ? { @@ -5710,7 +5524,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5720,11 +5534,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_name", direction: "DESC", ...(undefined != null ? { @@ -5732,7 +5543,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5742,11 +5553,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_name_or_number", direction: "ASC", ...(undefined != null ? { @@ -5754,7 +5562,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5764,11 +5572,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_name_or_number", direction: "DESC", ...(undefined != null ? { @@ -5776,7 +5581,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5786,11 +5591,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_name", direction: "ASC", ...(undefined != null ? { @@ -5798,7 +5600,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5808,11 +5610,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_name", direction: "DESC", ...(undefined != null ? { @@ -5820,7 +5619,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5830,11 +5629,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "ASC", ...(undefined != null ? { @@ -5842,7 +5638,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5852,11 +5648,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "DESC", ...(undefined != null ? { @@ -5864,7 +5657,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5874,11 +5667,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_id", direction: "ASC", ...(undefined != null ? { @@ -5886,7 +5676,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5896,11 +5686,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_id", direction: "DESC", ...(undefined != null ? { @@ -5908,7 +5695,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5918,11 +5705,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "ASC", ...(undefined != null ? { @@ -5930,7 +5714,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5940,11 +5724,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "DESC", ...(undefined != null ? { @@ -5952,7 +5733,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5962,11 +5743,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "ASC", ...(undefined != null ? { @@ -5974,7 +5752,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5984,11 +5762,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "DESC", ...(undefined != null ? { @@ -5996,7 +5771,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6005,8 +5780,8 @@ export const plans = { }, HouseCondition: { buildingName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "building_name", @@ -6019,17 +5794,15 @@ export const plans = { type: "attribute", attribute: "building_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.building_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyNameOrNumber: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_name_or_number", @@ -6042,17 +5815,15 @@ export const plans = { type: "attribute", attribute: "property_name_or_number", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.property_name_or_number.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_name", @@ -6065,17 +5836,15 @@ export const plans = { type: "attribute", attribute: "street_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.street_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_id", @@ -6088,17 +5857,15 @@ export const plans = { type: "attribute", attribute: "street_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.street_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, buildingId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "building_id", @@ -6111,17 +5878,15 @@ export const plans = { type: "attribute", attribute: "building_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.building_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_id", @@ -6134,17 +5899,15 @@ export const plans = { type: "attribute", attribute: "property_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.property_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, floors: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "floors", @@ -6157,13 +5920,11 @@ export const plans = { type: "attribute", attribute: "floors", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.floors.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StreetPropertiesEdge: { @@ -6176,31 +5937,21 @@ export const plans = { } }, StreetPropertiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { street_propertyUniques[0].attributes.forEach(attributeName => { - const attribute = streetPropertyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6209,19 +5960,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { street_propertyUniques[0].attributes.forEach(attributeName => { - const attribute = streetPropertyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6230,11 +5979,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str_id", direction: "ASC", ...(undefined != null ? { @@ -6242,7 +5988,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6252,11 +5998,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str_id", direction: "DESC", ...(undefined != null ? { @@ -6264,7 +6007,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6274,11 +6017,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "prop_id", direction: "ASC", ...(undefined != null ? { @@ -6286,7 +6026,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6296,11 +6036,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "prop_id", direction: "DESC", ...(undefined != null ? { @@ -6308,7 +6045,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6318,11 +6055,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "current_owner", direction: "ASC", ...(undefined != null ? { @@ -6330,7 +6064,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6340,11 +6074,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "current_owner", direction: "DESC", ...(undefined != null ? { @@ -6352,7 +6083,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6361,8 +6092,8 @@ export const plans = { }, StreetPropertyCondition: { strId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str_id", @@ -6375,17 +6106,15 @@ export const plans = { type: "attribute", attribute: "str_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.str_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "prop_id", @@ -6398,17 +6127,15 @@ export const plans = { type: "attribute", attribute: "prop_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.prop_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, currentOwner: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "current_owner", @@ -6421,13 +6148,11 @@ export const plans = { type: "attribute", attribute: "current_owner", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.current_owner.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BuildingsConnection: { @@ -6456,31 +6181,21 @@ export const plans = { } }, BuildingsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingsUniques[0].attributes.forEach(attributeName => { - const attribute = buildingsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6489,19 +6204,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingsUniques[0].attributes.forEach(attributeName => { - const attribute = buildingsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6510,11 +6223,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6522,7 +6232,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6532,11 +6242,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6544,7 +6251,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6554,11 +6261,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "ASC", ...(undefined != null ? { @@ -6566,7 +6270,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6576,11 +6280,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "DESC", ...(undefined != null ? { @@ -6588,7 +6289,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6598,11 +6299,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6610,7 +6308,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6620,11 +6318,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6632,7 +6327,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6642,11 +6337,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "ASC", ...(undefined != null ? { @@ -6654,7 +6346,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6664,11 +6356,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "DESC", ...(undefined != null ? { @@ -6676,7 +6365,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6686,11 +6375,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_primary", direction: "ASC", ...(undefined != null ? { @@ -6698,7 +6384,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6708,11 +6394,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_primary", direction: "DESC", ...(undefined != null ? { @@ -6720,7 +6403,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6729,8 +6412,8 @@ export const plans = { }, BuildingCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6743,17 +6426,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_id", @@ -6766,17 +6447,15 @@ export const plans = { type: "attribute", attribute: "property_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.property_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6789,17 +6468,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, floors: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "floors", @@ -6812,17 +6489,15 @@ export const plans = { type: "attribute", attribute: "floors", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.floors.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isPrimary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_primary", @@ -6835,13 +6510,11 @@ export const plans = { type: "attribute", attribute: "is_primary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.is_primary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PropertiesEdge: { @@ -6854,31 +6527,21 @@ export const plans = { } }, PropertiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { propertiesUniques[0].attributes.forEach(attributeName => { - const attribute = propertiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6887,19 +6550,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { propertiesUniques[0].attributes.forEach(attributeName => { - const attribute = propertiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6908,11 +6569,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6920,7 +6578,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6930,11 +6588,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6942,7 +6597,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6952,11 +6607,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "ASC", ...(undefined != null ? { @@ -6964,7 +6616,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6974,11 +6626,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "DESC", ...(undefined != null ? { @@ -6986,7 +6635,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6996,11 +6645,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name_or_number", direction: "ASC", ...(undefined != null ? { @@ -7008,7 +6654,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7018,11 +6664,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name_or_number", direction: "DESC", ...(undefined != null ? { @@ -7030,7 +6673,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7039,8 +6682,8 @@ export const plans = { }, PropertyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7053,17 +6696,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_id", @@ -7076,17 +6717,15 @@ export const plans = { type: "attribute", attribute: "street_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.street_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nameOrNumber: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name_or_number", @@ -7099,13 +6738,11 @@ export const plans = { type: "attribute", attribute: "name_or_number", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.name_or_number.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PostsConnection: { @@ -7134,31 +6771,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postsUniques[0].attributes.forEach(attributeName => { - const attribute = postsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7167,19 +6794,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postsUniques[0].attributes.forEach(attributeName => { - const attribute = postsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7188,11 +6813,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -7200,7 +6822,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7210,11 +6832,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -7222,7 +6841,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7231,8 +6850,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7245,13 +6864,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_posts.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StreetsConnection: { @@ -7280,31 +6897,21 @@ export const plans = { } }, StreetsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { streetsUniques[0].attributes.forEach(attributeName => { - const attribute = streetsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7313,19 +6920,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { streetsUniques[0].attributes.forEach(attributeName => { - const attribute = streetsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7334,11 +6939,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -7346,7 +6948,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7356,11 +6958,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -7368,7 +6967,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7378,11 +6977,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -7390,7 +6986,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7400,11 +6996,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -7412,7 +7005,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7421,8 +7014,8 @@ export const plans = { }, StreetCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7435,17 +7028,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streets.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -7458,30 +7049,28 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streets.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7491,17 +7080,17 @@ export const plans = { }, createOffer: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_offersPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_offersPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7511,17 +7100,17 @@ export const plans = { }, createStreet: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_streetsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_streetsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7531,17 +7120,17 @@ export const plans = { }, createProperty: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_propertiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_propertiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7551,17 +7140,17 @@ export const plans = { }, createStreetProperty: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_street_propertyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_street_propertyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7571,17 +7160,17 @@ export const plans = { }, createBuilding: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_buildingsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_buildingsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7591,11 +7180,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_postsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7610,13 +7199,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7631,11 +7220,11 @@ export const plans = { }, updateOffer: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_offersPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_offersPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7650,13 +7239,13 @@ export const plans = { }, updateOfferById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_offersPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_offersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7671,11 +7260,11 @@ export const plans = { }, updateStreet: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_streetsPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7690,13 +7279,13 @@ export const plans = { }, updateStreetById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_streetsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7711,13 +7300,13 @@ export const plans = { }, updateStreetByName: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, { - name: args.get(['input', "name"]) - }) + const $update = pgUpdateSingle(pgResource_streetsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7732,11 +7321,11 @@ export const plans = { }, updateProperty: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_propertiesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_propertiesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7751,13 +7340,13 @@ export const plans = { }, updatePropertyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_propertiesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_propertiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7772,11 +7361,11 @@ export const plans = { }, updateStreetProperty: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_street_propertyPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_street_propertyPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7791,14 +7380,14 @@ export const plans = { }, updateStreetPropertyByStrIdAndPropId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_street_propertyPgResource, { - str_id: args.get(['input', "strId"]), - prop_id: args.get(['input', "propId"]) - }) + const $update = pgUpdateSingle(pgResource_street_propertyPgResource, { + str_id: args.getRaw(['input', "strId"]), + prop_id: args.getRaw(['input', "propId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7813,11 +7402,11 @@ export const plans = { }, updateBuilding: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_buildingsPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_buildingsPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7832,13 +7421,13 @@ export const plans = { }, updateBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_buildingsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_buildingsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7853,11 +7442,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_postsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7872,13 +7461,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7893,11 +7482,11 @@ export const plans = { }, deleteOffer: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_offersPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_offersPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7912,13 +7501,13 @@ export const plans = { }, deleteOfferById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_offersPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_offersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7933,11 +7522,11 @@ export const plans = { }, deleteStreet: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7952,13 +7541,13 @@ export const plans = { }, deleteStreetById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7973,13 +7562,13 @@ export const plans = { }, deleteStreetByName: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, { - name: args.get(['input', "name"]) - }) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7994,11 +7583,11 @@ export const plans = { }, deleteProperty: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_propertiesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_propertiesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -8013,13 +7602,13 @@ export const plans = { }, deletePropertyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_propertiesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_propertiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -8034,11 +7623,11 @@ export const plans = { }, deleteStreetProperty: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_street_propertyPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_street_propertyPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -8053,14 +7642,14 @@ export const plans = { }, deleteStreetPropertyByStrIdAndPropId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_street_propertyPgResource, { - str_id: args.get(['input', "strId"]), - prop_id: args.get(['input', "propId"]) - }) + const $delete = pgDeleteSingle(pgResource_street_propertyPgResource, { + str_id: args.getRaw(['input', "strId"]), + prop_id: args.getRaw(['input', "propId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -8075,11 +7664,11 @@ export const plans = { }, deleteBuilding: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_buildingsPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_buildingsPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -8094,13 +7683,13 @@ export const plans = { }, deleteBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_buildingsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_buildingsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -8117,7 +7706,8 @@ export const plans = { CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8125,7 +7715,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8141,9 +7731,7 @@ export const plans = { return pgResource_postsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8154,35 +7742,34 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateOfferPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -8190,7 +7777,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8206,9 +7793,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8224,42 +7809,42 @@ export const plans = { }, CreateOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, offer: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, OfferInput: { - "__inputPlan": function OfferInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, postId: { - applyPlan($insert, val) { - $insert.set("post_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("post_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStreetPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -8267,7 +7852,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8283,9 +7868,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8296,42 +7879,42 @@ export const plans = { }, CreateStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, street: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StreetInput: { - "__inputPlan": function StreetInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePropertyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -8339,7 +7922,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8355,9 +7938,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8373,49 +7954,50 @@ export const plans = { }, CreatePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, property: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PropertyInput: { - "__inputPlan": function PropertyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, streetId: { - applyPlan($insert, val) { - $insert.set("street_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("street_id", bakedInputRuntime(schema, field.type, val)); + } }, nameOrNumber: { - applyPlan($insert, val) { - $insert.set("name_or_number", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name_or_number", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStreetPropertyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -8423,7 +8005,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8439,9 +8021,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8462,49 +8042,50 @@ export const plans = { }, CreateStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, streetProperty: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StreetPropertyInput: { - "__inputPlan": function StreetPropertyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, strId: { - applyPlan($insert, val) { - $insert.set("str_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str_id", bakedInputRuntime(schema, field.type, val)); + } }, propId: { - applyPlan($insert, val) { - $insert.set("prop_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("prop_id", bakedInputRuntime(schema, field.type, val)); + } }, currentOwner: { - applyPlan($insert, val) { - $insert.set("current_owner", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("current_owner", bakedInputRuntime(schema, field.type, val)); + } } }, CreateBuildingPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -8512,7 +8093,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8528,9 +8109,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8551,63 +8130,66 @@ export const plans = { }, CreateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, building: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, BuildingInput: { - "__inputPlan": function BuildingInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, propertyId: { - applyPlan($insert, val) { - $insert.set("property_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("property_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, floors: { - applyPlan($insert, val) { - $insert.set("floors", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("floors", bakedInputRuntime(schema, field.type, val)); + } }, isPrimary: { - applyPlan($insert, val) { - $insert.set("is_primary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_primary", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8615,7 +8197,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8631,9 +8213,7 @@ export const plans = { return pgResource_postsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8644,48 +8224,50 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateOfferPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -8693,7 +8275,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8709,9 +8291,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8727,55 +8307,58 @@ export const plans = { }, UpdateOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, offerPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, OfferPatch: { - "__inputPlan": function OfferPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, postId: { - applyPlan($insert, val) { - $insert.set("post_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("post_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOfferByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, offerPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -8783,7 +8366,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8799,9 +8382,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8812,69 +8393,73 @@ export const plans = { }, UpdateStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StreetPatch: { - "__inputPlan": function StreetPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStreetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -8882,7 +8467,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8898,9 +8483,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8916,62 +8499,66 @@ export const plans = { }, UpdatePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, propertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PropertyPatch: { - "__inputPlan": function PropertyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, streetId: { - applyPlan($insert, val) { - $insert.set("street_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("street_id", bakedInputRuntime(schema, field.type, val)); + } }, nameOrNumber: { - applyPlan($insert, val) { - $insert.set("name_or_number", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name_or_number", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePropertyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, propertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetPropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -8979,7 +8566,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8995,9 +8582,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9018,63 +8603,67 @@ export const plans = { }, UpdateStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, streetPropertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StreetPropertyPatch: { - "__inputPlan": function StreetPropertyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, strId: { - applyPlan($insert, val) { - $insert.set("str_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str_id", bakedInputRuntime(schema, field.type, val)); + } }, propId: { - applyPlan($insert, val) { - $insert.set("prop_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("prop_id", bakedInputRuntime(schema, field.type, val)); + } }, currentOwner: { - applyPlan($insert, val) { - $insert.set("current_owner", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("current_owner", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStreetPropertyByStrIdAndPropIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, strId: undefined, propId: undefined, streetPropertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -9082,7 +8671,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9098,9 +8687,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9121,76 +8708,82 @@ export const plans = { }, UpdateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, BuildingPatch: { - "__inputPlan": function BuildingPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, propertyId: { - applyPlan($insert, val) { - $insert.set("property_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("property_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, floors: { - applyPlan($insert, val) { - $insert.set("floors", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("floors", bakedInputRuntime(schema, field.type, val)); + } }, isPrimary: { - applyPlan($insert, val) { - $insert.set("is_primary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_primary", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -9203,7 +8796,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9219,9 +8812,7 @@ export const plans = { return pgResource_postsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9232,16 +8823,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -9249,7 +8840,8 @@ export const plans = { DeleteOfferPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -9262,7 +8854,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9278,9 +8870,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9296,16 +8886,16 @@ export const plans = { }, DeleteOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteOfferByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -9313,7 +8903,8 @@ export const plans = { DeleteStreetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -9326,7 +8917,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9342,9 +8933,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9355,24 +8944,24 @@ export const plans = { }, DeleteStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStreetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteStreetByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined @@ -9380,7 +8969,8 @@ export const plans = { DeletePropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -9393,7 +8983,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9409,9 +8999,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9427,16 +9015,16 @@ export const plans = { }, DeletePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePropertyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -9444,7 +9032,8 @@ export const plans = { DeleteStreetPropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -9457,7 +9046,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9473,9 +9062,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9496,16 +9083,16 @@ export const plans = { }, DeleteStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStreetPropertyByStrIdAndPropIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, strId: undefined, @@ -9514,7 +9101,8 @@ export const plans = { DeleteBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -9527,7 +9115,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9543,9 +9131,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9566,16 +9152,16 @@ export const plans = { }, DeleteBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 ebd24a185f..7f452c1b41 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -111,7 +113,7 @@ const spec_post_table = { }; const post_tableCodec = recordCodec(spec_post_table); const postsIdentifier = sql.identifier("smart_comment_relations", "post_view"); -const spec_posts = { +const postsCodec = recordCodec({ name: "posts", identifier: postsIdentifier, attributes: { @@ -142,8 +144,7 @@ const spec_posts = { } }, executor: executor -}; -const postsCodec = recordCodec(spec_posts); +}); const offer_tableIdentifier = sql.identifier("smart_comment_relations", "offer"); const spec_offer_table = { name: "offer_table", @@ -188,7 +189,7 @@ const spec_offer_table = { }; const offer_tableCodec = recordCodec(spec_offer_table); const offersIdentifier = sql.identifier("smart_comment_relations", "offer_view"); -const spec_offers = { +const offersCodec = recordCodec({ name: "offers", identifier: offersIdentifier, attributes: { @@ -228,10 +229,9 @@ const spec_offers = { } }, executor: executor -}; -const offersCodec = recordCodec(spec_offers); +}); const streetsIdentifier = sql.identifier("smart_comment_relations", "streets"); -const spec_streets = { +const streetsCodec = recordCodec({ name: "streets", identifier: streetsIdentifier, attributes: { @@ -269,10 +269,9 @@ const spec_streets = { } }, executor: executor -}; -const streetsCodec = recordCodec(spec_streets); +}); const propertiesIdentifier = sql.identifier("smart_comment_relations", "properties"); -const spec_properties = { +const propertiesCodec = recordCodec({ name: "properties", identifier: propertiesIdentifier, attributes: { @@ -318,10 +317,9 @@ const spec_properties = { } }, executor: executor -}; -const propertiesCodec = recordCodec(spec_properties); +}); const streetPropertyIdentifier = sql.identifier("smart_comment_relations", "street_property"); -const spec_streetProperty = { +const streetPropertyCodec = recordCodec({ name: "streetProperty", identifier: streetPropertyIdentifier, attributes: { @@ -367,8 +365,7 @@ const spec_streetProperty = { } }, executor: executor -}; -const streetPropertyCodec = recordCodec(spec_streetProperty); +}); const housesIdentifier = sql.identifier("smart_comment_relations", "houses"); const spec_houses = { name: "houses", @@ -461,7 +458,7 @@ const spec_houses = { }; const housesCodec = recordCodec(spec_houses); const buildingsIdentifier = sql.identifier("smart_comment_relations", "buildings"); -const spec_buildings = { +const buildingsCodec = recordCodec({ name: "buildings", identifier: buildingsIdentifier, attributes: { @@ -526,8 +523,7 @@ const spec_buildings = { } }, executor: executor -}; -const buildingsCodec = recordCodec(spec_buildings); +}); const registryConfig_pgResources_post_table_post_table = { executor: executor, name: "post_table", @@ -1268,6 +1264,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_offersPgResource.get(spec); }, @@ -1287,6 +1286,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_streetsPgResource.get(spec); }, @@ -1306,6 +1308,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_propertiesPgResource.get(spec); }, @@ -1326,6 +1331,9 @@ const nodeIdHandlerByTypeName = { prop_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_street_propertyPgResource.get(spec); }, @@ -1346,6 +1354,9 @@ const nodeIdHandlerByTypeName = { property_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_housesPgResource.get(spec); }, @@ -1365,6 +1376,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_buildingsPgResource.get(spec); }, @@ -1377,6 +1391,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1440,67 +1455,50 @@ const fetcher6 = (handler => { return fn; })(nodeIdHandlerByTypeName.Building); const resource_postsPgResource = registry.pgResources["posts"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Offer, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Street, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Property, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.StreetProperty, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Building, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Offer, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Street, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Property, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.StreetProperty, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Building, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3693,67 +3691,67 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, offerById(_$root, args) { return pgResource_offersPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetById(_$root, args) { return pgResource_streetsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetByName(_$root, args) { return pgResource_streetsPgResource.get({ - name: args.get("name") + name: args.getRaw("name") }); }, propertyById(_$root, args) { return pgResource_propertiesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetPropertyByStrIdAndPropId(_$root, args) { return pgResource_street_propertyPgResource.get({ - str_id: args.get("strId"), - prop_id: args.get("propId") + str_id: args.getRaw("strId"), + prop_id: args.getRaw("propId") }); }, houseByStreetIdAndPropertyId(_$root, args) { return pgResource_housesPgResource.get({ - street_id: args.get("streetId"), - property_id: args.get("propertyId") + street_id: args.getRaw("streetId"), + property_id: args.getRaw("propertyId") }); }, buildingById(_$root, args) { return pgResource_buildingsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, offer(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, street(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, property(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, streetProperty(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, house(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, building(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allPosts: { @@ -3764,7 +3762,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3773,7 +3770,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3782,7 +3778,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3791,7 +3786,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3800,7 +3794,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3809,22 +3802,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3838,7 +3827,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3847,7 +3835,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3856,7 +3843,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3865,7 +3851,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3874,7 +3859,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3883,22 +3867,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3912,7 +3892,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3921,7 +3900,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3930,7 +3908,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3939,7 +3916,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3948,7 +3924,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3957,22 +3932,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3986,7 +3957,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3995,7 +3965,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4004,7 +3973,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4013,7 +3981,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4022,7 +3989,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4031,22 +3997,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4060,7 +4022,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4069,7 +4030,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4078,7 +4038,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4087,7 +4046,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4096,7 +4054,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4105,22 +4062,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4134,7 +4087,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4143,7 +4095,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4152,7 +4103,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4161,7 +4111,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4170,7 +4119,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4179,22 +4127,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4208,7 +4152,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4217,7 +4160,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4226,7 +4168,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4235,7 +4176,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4244,7 +4184,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4253,22 +4192,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4309,7 +4244,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4318,7 +4252,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4327,7 +4260,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4336,7 +4268,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4345,7 +4276,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4354,22 +4284,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4427,31 +4353,21 @@ export const plans = { } }, OffersOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { offersUniques[0].attributes.forEach(attributeName => { - const attribute = offersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4460,19 +4376,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { offersUniques[0].attributes.forEach(attributeName => { - const attribute = offersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4481,11 +4395,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -4493,7 +4404,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4503,11 +4414,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -4515,7 +4423,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4525,11 +4433,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "post_id", direction: "ASC", ...(undefined != null ? { @@ -4537,7 +4442,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4547,11 +4452,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "post_id", direction: "DESC", ...(undefined != null ? { @@ -4559,7 +4461,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4568,8 +4470,8 @@ export const plans = { }, OfferCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -4582,17 +4484,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_offers.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, postId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "post_id", @@ -4605,13 +4505,11 @@ export const plans = { type: "attribute", attribute: "post_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_offers.attributes.post_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Street: { @@ -4637,7 +4535,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4646,7 +4543,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4655,7 +4551,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4664,7 +4559,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4673,7 +4567,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4682,22 +4575,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4714,7 +4603,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4723,7 +4611,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4732,7 +4619,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4741,7 +4627,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4750,7 +4635,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4759,22 +4643,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4791,7 +4671,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4800,7 +4679,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4809,7 +4687,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4818,7 +4695,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4827,7 +4703,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4836,22 +4711,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4868,7 +4739,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4877,7 +4747,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4886,7 +4755,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4895,7 +4763,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4904,7 +4771,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4913,22 +4779,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4982,7 +4844,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4991,7 +4852,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5000,7 +4860,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5009,7 +4868,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5018,7 +4876,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5027,22 +4884,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5059,7 +4912,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5068,7 +4920,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5077,7 +4928,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5086,7 +4936,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5095,7 +4944,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5104,22 +4952,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5136,7 +4980,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5145,7 +4988,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5154,7 +4996,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5163,7 +5004,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5172,7 +5012,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5181,22 +5020,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5342,7 +5177,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5351,7 +5185,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5360,7 +5193,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5369,7 +5201,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5378,7 +5209,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5387,22 +5217,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5435,31 +5261,21 @@ export const plans = { } }, HousesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { housesUniques[0].attributes.forEach(attributeName => { - const attribute = housesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5468,19 +5284,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { housesUniques[0].attributes.forEach(attributeName => { - const attribute = housesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5489,11 +5303,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_name", direction: "ASC", ...(undefined != null ? { @@ -5501,7 +5312,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5511,11 +5322,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_name", direction: "DESC", ...(undefined != null ? { @@ -5523,7 +5331,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5533,11 +5341,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_name_or_number", direction: "ASC", ...(undefined != null ? { @@ -5545,7 +5350,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5555,11 +5360,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_name_or_number", direction: "DESC", ...(undefined != null ? { @@ -5567,7 +5369,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5577,11 +5379,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_name", direction: "ASC", ...(undefined != null ? { @@ -5589,7 +5388,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5599,11 +5398,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_name", direction: "DESC", ...(undefined != null ? { @@ -5611,7 +5407,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5621,11 +5417,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "ASC", ...(undefined != null ? { @@ -5633,7 +5426,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5643,11 +5436,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "DESC", ...(undefined != null ? { @@ -5655,7 +5445,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5665,11 +5455,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_id", direction: "ASC", ...(undefined != null ? { @@ -5677,7 +5464,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5687,11 +5474,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_id", direction: "DESC", ...(undefined != null ? { @@ -5699,7 +5483,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5709,11 +5493,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "ASC", ...(undefined != null ? { @@ -5721,7 +5502,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5731,11 +5512,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "DESC", ...(undefined != null ? { @@ -5743,7 +5521,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5753,11 +5531,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "ASC", ...(undefined != null ? { @@ -5765,7 +5540,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5775,11 +5550,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "DESC", ...(undefined != null ? { @@ -5787,7 +5559,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5796,8 +5568,8 @@ export const plans = { }, HouseCondition: { buildingName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "building_name", @@ -5810,17 +5582,15 @@ export const plans = { type: "attribute", attribute: "building_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.building_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyNameOrNumber: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_name_or_number", @@ -5833,17 +5603,15 @@ export const plans = { type: "attribute", attribute: "property_name_or_number", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.property_name_or_number.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_name", @@ -5856,17 +5624,15 @@ export const plans = { type: "attribute", attribute: "street_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.street_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_id", @@ -5879,17 +5645,15 @@ export const plans = { type: "attribute", attribute: "street_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.street_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, buildingId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "building_id", @@ -5902,17 +5666,15 @@ export const plans = { type: "attribute", attribute: "building_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.building_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_id", @@ -5925,17 +5687,15 @@ export const plans = { type: "attribute", attribute: "property_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.property_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, floors: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "floors", @@ -5948,13 +5708,11 @@ export const plans = { type: "attribute", attribute: "floors", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.floors.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StreetPropertiesEdge: { @@ -5967,31 +5725,21 @@ export const plans = { } }, StreetPropertiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { street_propertyUniques[0].attributes.forEach(attributeName => { - const attribute = streetPropertyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6000,19 +5748,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { street_propertyUniques[0].attributes.forEach(attributeName => { - const attribute = streetPropertyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6021,11 +5767,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str_id", direction: "ASC", ...(undefined != null ? { @@ -6033,7 +5776,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6043,11 +5786,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str_id", direction: "DESC", ...(undefined != null ? { @@ -6055,7 +5795,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6065,11 +5805,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "prop_id", direction: "ASC", ...(undefined != null ? { @@ -6077,7 +5814,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6087,11 +5824,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "prop_id", direction: "DESC", ...(undefined != null ? { @@ -6099,7 +5833,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6109,11 +5843,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "current_owner", direction: "ASC", ...(undefined != null ? { @@ -6121,7 +5852,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6131,11 +5862,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "current_owner", direction: "DESC", ...(undefined != null ? { @@ -6143,7 +5871,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6152,8 +5880,8 @@ export const plans = { }, StreetPropertyCondition: { strId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str_id", @@ -6166,17 +5894,15 @@ export const plans = { type: "attribute", attribute: "str_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.str_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "prop_id", @@ -6189,17 +5915,15 @@ export const plans = { type: "attribute", attribute: "prop_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.prop_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, currentOwner: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "current_owner", @@ -6212,13 +5936,11 @@ export const plans = { type: "attribute", attribute: "current_owner", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.current_owner.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BuildingsConnection: { @@ -6247,31 +5969,21 @@ export const plans = { } }, BuildingsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingsUniques[0].attributes.forEach(attributeName => { - const attribute = buildingsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6280,19 +5992,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingsUniques[0].attributes.forEach(attributeName => { - const attribute = buildingsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6301,11 +6011,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6313,7 +6020,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6323,11 +6030,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6335,7 +6039,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6345,11 +6049,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "ASC", ...(undefined != null ? { @@ -6357,7 +6058,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6367,11 +6068,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "DESC", ...(undefined != null ? { @@ -6379,7 +6077,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6389,11 +6087,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6401,7 +6096,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6411,11 +6106,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6423,7 +6115,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6433,11 +6125,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "ASC", ...(undefined != null ? { @@ -6445,7 +6134,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6455,11 +6144,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "DESC", ...(undefined != null ? { @@ -6467,7 +6153,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6477,11 +6163,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_primary", direction: "ASC", ...(undefined != null ? { @@ -6489,7 +6172,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6499,11 +6182,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_primary", direction: "DESC", ...(undefined != null ? { @@ -6511,7 +6191,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6520,8 +6200,8 @@ export const plans = { }, BuildingCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6534,17 +6214,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_id", @@ -6557,17 +6235,15 @@ export const plans = { type: "attribute", attribute: "property_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.property_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6580,17 +6256,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, floors: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "floors", @@ -6603,17 +6277,15 @@ export const plans = { type: "attribute", attribute: "floors", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.floors.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isPrimary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_primary", @@ -6626,13 +6298,11 @@ export const plans = { type: "attribute", attribute: "is_primary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.is_primary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PropertiesEdge: { @@ -6645,31 +6315,21 @@ export const plans = { } }, PropertiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { propertiesUniques[0].attributes.forEach(attributeName => { - const attribute = propertiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6678,19 +6338,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { propertiesUniques[0].attributes.forEach(attributeName => { - const attribute = propertiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6699,11 +6357,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6711,7 +6366,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6721,11 +6376,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6733,7 +6385,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6743,11 +6395,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "ASC", ...(undefined != null ? { @@ -6755,7 +6404,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6765,11 +6414,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "DESC", ...(undefined != null ? { @@ -6777,7 +6423,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6787,11 +6433,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name_or_number", direction: "ASC", ...(undefined != null ? { @@ -6799,7 +6442,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6809,11 +6452,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name_or_number", direction: "DESC", ...(undefined != null ? { @@ -6821,7 +6461,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6830,8 +6470,8 @@ export const plans = { }, PropertyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6844,17 +6484,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_id", @@ -6867,17 +6505,15 @@ export const plans = { type: "attribute", attribute: "street_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.street_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nameOrNumber: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name_or_number", @@ -6890,13 +6526,11 @@ export const plans = { type: "attribute", attribute: "name_or_number", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.name_or_number.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PostsConnection: { @@ -6925,23 +6559,12 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6949,7 +6572,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6959,11 +6582,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6971,7 +6591,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6980,8 +6600,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6994,13 +6614,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_posts.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StreetsConnection: { @@ -7029,31 +6647,21 @@ export const plans = { } }, StreetsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { streetsUniques[0].attributes.forEach(attributeName => { - const attribute = streetsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7062,19 +6670,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { streetsUniques[0].attributes.forEach(attributeName => { - const attribute = streetsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7083,11 +6689,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -7095,7 +6698,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7105,11 +6708,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -7117,7 +6717,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7127,11 +6727,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -7139,7 +6736,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7149,11 +6746,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -7161,7 +6755,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7170,8 +6764,8 @@ export const plans = { }, StreetCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7184,17 +6778,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streets.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -7207,30 +6799,28 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streets.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createPost: { plan(_, args) { + const $insert = pgInsertSingle(resource_postsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_postsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7240,17 +6830,17 @@ export const plans = { }, createOffer: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_offersPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_offersPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7260,17 +6850,17 @@ export const plans = { }, createStreet: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_streetsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_streetsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7280,17 +6870,17 @@ export const plans = { }, createProperty: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_propertiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_propertiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7300,17 +6890,17 @@ export const plans = { }, createStreetProperty: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_street_propertyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_street_propertyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7320,17 +6910,17 @@ export const plans = { }, createBuilding: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_buildingsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_buildingsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7340,11 +6930,11 @@ export const plans = { }, updateOffer: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_offersPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_offersPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7359,13 +6949,13 @@ export const plans = { }, updateOfferById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_offersPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_offersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7380,11 +6970,11 @@ export const plans = { }, updateStreet: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_streetsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7399,13 +6989,13 @@ export const plans = { }, updateStreetById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_streetsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7420,13 +7010,13 @@ export const plans = { }, updateStreetByName: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, { - name: args.get(['input', "name"]) - }) + const $update = pgUpdateSingle(pgResource_streetsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7441,11 +7031,11 @@ export const plans = { }, updateProperty: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_propertiesPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_propertiesPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7460,13 +7050,13 @@ export const plans = { }, updatePropertyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_propertiesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_propertiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7481,11 +7071,11 @@ export const plans = { }, updateStreetProperty: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_street_propertyPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_street_propertyPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7500,14 +7090,14 @@ export const plans = { }, updateStreetPropertyByStrIdAndPropId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_street_propertyPgResource, { - str_id: args.get(['input', "strId"]), - prop_id: args.get(['input', "propId"]) - }) + const $update = pgUpdateSingle(pgResource_street_propertyPgResource, { + str_id: args.getRaw(['input', "strId"]), + prop_id: args.getRaw(['input', "propId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7522,11 +7112,11 @@ export const plans = { }, updateBuilding: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_buildingsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_buildingsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7541,13 +7131,13 @@ export const plans = { }, updateBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_buildingsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_buildingsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7562,11 +7152,11 @@ export const plans = { }, deleteOffer: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_offersPgResource, specFromArgs6(args)) + const $delete = pgDeleteSingle(pgResource_offersPgResource, specFromArgs6(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7581,13 +7171,13 @@ export const plans = { }, deleteOfferById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_offersPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_offersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7602,11 +7192,11 @@ export const plans = { }, deleteStreet: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7621,13 +7211,13 @@ export const plans = { }, deleteStreetById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7642,13 +7232,13 @@ export const plans = { }, deleteStreetByName: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, { - name: args.get(['input', "name"]) - }) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7663,11 +7253,11 @@ export const plans = { }, deleteProperty: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_propertiesPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_propertiesPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7682,13 +7272,13 @@ export const plans = { }, deletePropertyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_propertiesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_propertiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7703,11 +7293,11 @@ export const plans = { }, deleteStreetProperty: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_street_propertyPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_street_propertyPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7722,14 +7312,14 @@ export const plans = { }, deleteStreetPropertyByStrIdAndPropId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_street_propertyPgResource, { - str_id: args.get(['input', "strId"]), - prop_id: args.get(['input', "propId"]) - }) + const $delete = pgDeleteSingle(pgResource_street_propertyPgResource, { + str_id: args.getRaw(['input', "strId"]), + prop_id: args.getRaw(['input', "propId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7744,11 +7334,11 @@ export const plans = { }, deleteBuilding: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_buildingsPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_buildingsPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7763,13 +7353,13 @@ export const plans = { }, deleteBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_buildingsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_buildingsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7786,7 +7376,8 @@ export const plans = { CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7797,35 +7388,34 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateOfferPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -7833,7 +7423,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7849,9 +7439,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7867,42 +7455,42 @@ export const plans = { }, CreateOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, offer: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, OfferInput: { - "__inputPlan": function OfferInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, postId: { - applyPlan($insert, val) { - $insert.set("post_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("post_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStreetPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -7910,7 +7498,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7926,9 +7514,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7939,42 +7525,42 @@ export const plans = { }, CreateStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, street: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StreetInput: { - "__inputPlan": function StreetInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePropertyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -7982,7 +7568,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7998,9 +7584,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8016,49 +7600,50 @@ export const plans = { }, CreatePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, property: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PropertyInput: { - "__inputPlan": function PropertyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, streetId: { - applyPlan($insert, val) { - $insert.set("street_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("street_id", bakedInputRuntime(schema, field.type, val)); + } }, nameOrNumber: { - applyPlan($insert, val) { - $insert.set("name_or_number", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name_or_number", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStreetPropertyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -8066,7 +7651,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8082,9 +7667,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8105,49 +7688,50 @@ export const plans = { }, CreateStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, streetProperty: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StreetPropertyInput: { - "__inputPlan": function StreetPropertyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, strId: { - applyPlan($insert, val) { - $insert.set("str_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str_id", bakedInputRuntime(schema, field.type, val)); + } }, propId: { - applyPlan($insert, val) { - $insert.set("prop_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("prop_id", bakedInputRuntime(schema, field.type, val)); + } }, currentOwner: { - applyPlan($insert, val) { - $insert.set("current_owner", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("current_owner", bakedInputRuntime(schema, field.type, val)); + } } }, CreateBuildingPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -8155,7 +7739,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8171,9 +7755,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8194,63 +7776,66 @@ export const plans = { }, CreateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, building: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, BuildingInput: { - "__inputPlan": function BuildingInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, propertyId: { - applyPlan($insert, val) { - $insert.set("property_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("property_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, floors: { - applyPlan($insert, val) { - $insert.set("floors", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("floors", bakedInputRuntime(schema, field.type, val)); + } }, isPrimary: { - applyPlan($insert, val) { - $insert.set("is_primary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_primary", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOfferPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -8258,7 +7843,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8274,9 +7859,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8292,55 +7875,58 @@ export const plans = { }, UpdateOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, offerPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, OfferPatch: { - "__inputPlan": function OfferPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, postId: { - applyPlan($insert, val) { - $insert.set("post_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("post_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOfferByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, offerPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -8348,7 +7934,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8364,9 +7950,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8377,69 +7961,73 @@ export const plans = { }, UpdateStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StreetPatch: { - "__inputPlan": function StreetPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStreetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -8447,7 +8035,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8463,9 +8051,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8481,62 +8067,66 @@ export const plans = { }, UpdatePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, propertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PropertyPatch: { - "__inputPlan": function PropertyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, streetId: { - applyPlan($insert, val) { - $insert.set("street_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("street_id", bakedInputRuntime(schema, field.type, val)); + } }, nameOrNumber: { - applyPlan($insert, val) { - $insert.set("name_or_number", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name_or_number", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePropertyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, propertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetPropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -8544,7 +8134,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8560,9 +8150,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8583,63 +8171,67 @@ export const plans = { }, UpdateStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, streetPropertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StreetPropertyPatch: { - "__inputPlan": function StreetPropertyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, strId: { - applyPlan($insert, val) { - $insert.set("str_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str_id", bakedInputRuntime(schema, field.type, val)); + } }, propId: { - applyPlan($insert, val) { - $insert.set("prop_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("prop_id", bakedInputRuntime(schema, field.type, val)); + } }, currentOwner: { - applyPlan($insert, val) { - $insert.set("current_owner", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("current_owner", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStreetPropertyByStrIdAndPropIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, strId: undefined, propId: undefined, streetPropertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -8647,7 +8239,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8663,9 +8255,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8686,76 +8276,82 @@ export const plans = { }, UpdateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, BuildingPatch: { - "__inputPlan": function BuildingPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, propertyId: { - applyPlan($insert, val) { - $insert.set("property_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("property_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, floors: { - applyPlan($insert, val) { - $insert.set("floors", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("floors", bakedInputRuntime(schema, field.type, val)); + } }, isPrimary: { - applyPlan($insert, val) { - $insert.set("is_primary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_primary", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeleteOfferPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -8768,7 +8364,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8784,9 +8380,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8802,16 +8396,16 @@ export const plans = { }, DeleteOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteOfferByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8819,7 +8413,8 @@ export const plans = { DeleteStreetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -8832,7 +8427,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8848,9 +8443,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8861,24 +8454,24 @@ export const plans = { }, DeleteStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStreetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteStreetByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined @@ -8886,7 +8479,8 @@ export const plans = { DeletePropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -8899,7 +8493,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8915,9 +8509,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8933,16 +8525,16 @@ export const plans = { }, DeletePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePropertyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8950,7 +8542,8 @@ export const plans = { DeleteStreetPropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -8963,7 +8556,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8979,9 +8572,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9002,16 +8593,16 @@ export const plans = { }, DeleteStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStreetPropertyByStrIdAndPropIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, strId: undefined, @@ -9020,7 +8611,8 @@ export const plans = { DeleteBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -9033,7 +8625,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9049,9 +8641,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9072,16 +8662,16 @@ export const plans = { }, DeleteBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 6896c7362a..470d90de6d 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -111,7 +113,7 @@ const spec_post_table = { }; const post_tableCodec = recordCodec(spec_post_table); const postsIdentifier = sql.identifier("smart_comment_relations", "post_view"); -const spec_posts = { +const postsCodec = recordCodec({ name: "posts", identifier: postsIdentifier, attributes: { @@ -141,8 +143,7 @@ const spec_posts = { } }, executor: executor -}; -const postsCodec = recordCodec(spec_posts); +}); const offer_tableIdentifier = sql.identifier("smart_comment_relations", "offer"); const spec_offer_table = { name: "offer_table", @@ -187,7 +188,7 @@ const spec_offer_table = { }; const offer_tableCodec = recordCodec(spec_offer_table); const offersIdentifier = sql.identifier("smart_comment_relations", "offer_view"); -const spec_offers = { +const offersCodec = recordCodec({ name: "offers", identifier: offersIdentifier, attributes: { @@ -227,10 +228,9 @@ const spec_offers = { } }, executor: executor -}; -const offersCodec = recordCodec(spec_offers); +}); const streetsIdentifier = sql.identifier("smart_comment_relations", "streets"); -const spec_streets = { +const streetsCodec = recordCodec({ name: "streets", identifier: streetsIdentifier, attributes: { @@ -268,10 +268,9 @@ const spec_streets = { } }, executor: executor -}; -const streetsCodec = recordCodec(spec_streets); +}); const propertiesIdentifier = sql.identifier("smart_comment_relations", "properties"); -const spec_properties = { +const propertiesCodec = recordCodec({ name: "properties", identifier: propertiesIdentifier, attributes: { @@ -317,10 +316,9 @@ const spec_properties = { } }, executor: executor -}; -const propertiesCodec = recordCodec(spec_properties); +}); const streetPropertyIdentifier = sql.identifier("smart_comment_relations", "street_property"); -const spec_streetProperty = { +const streetPropertyCodec = recordCodec({ name: "streetProperty", identifier: streetPropertyIdentifier, attributes: { @@ -366,8 +364,7 @@ const spec_streetProperty = { } }, executor: executor -}; -const streetPropertyCodec = recordCodec(spec_streetProperty); +}); const housesIdentifier = sql.identifier("smart_comment_relations", "houses"); const spec_houses = { name: "houses", @@ -460,7 +457,7 @@ const spec_houses = { }; const housesCodec = recordCodec(spec_houses); const buildingsIdentifier = sql.identifier("smart_comment_relations", "buildings"); -const spec_buildings = { +const buildingsCodec = recordCodec({ name: "buildings", identifier: buildingsIdentifier, attributes: { @@ -525,8 +522,7 @@ const spec_buildings = { } }, executor: executor -}; -const buildingsCodec = recordCodec(spec_buildings); +}); const registryConfig_pgResources_post_table_post_table = { executor: executor, name: "post_table", @@ -1265,6 +1261,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_offersPgResource.get(spec); }, @@ -1284,6 +1283,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_streetsPgResource.get(spec); }, @@ -1303,6 +1305,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_propertiesPgResource.get(spec); }, @@ -1323,6 +1328,9 @@ const nodeIdHandlerByTypeName = { prop_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_street_propertyPgResource.get(spec); }, @@ -1343,6 +1351,9 @@ const nodeIdHandlerByTypeName = { property_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_housesPgResource.get(spec); }, @@ -1362,6 +1373,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_buildingsPgResource.get(spec); }, @@ -1375,6 +1389,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1437,67 +1452,50 @@ const fetcher6 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Building); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Offer, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Street, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Property, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.StreetProperty, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Building, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Offer, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Street, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Property, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.StreetProperty, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Building, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3773,72 +3771,72 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, postById(_$root, args) { return resource_postsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, offerById(_$root, args) { return pgResource_offersPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetById(_$root, args) { return pgResource_streetsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetByName(_$root, args) { return pgResource_streetsPgResource.get({ - name: args.get("name") + name: args.getRaw("name") }); }, propertyById(_$root, args) { return pgResource_propertiesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetPropertyByStrIdAndPropId(_$root, args) { return pgResource_street_propertyPgResource.get({ - str_id: args.get("strId"), - prop_id: args.get("propId") + str_id: args.getRaw("strId"), + prop_id: args.getRaw("propId") }); }, houseByStreetIdAndPropertyId(_$root, args) { return pgResource_housesPgResource.get({ - street_id: args.get("streetId"), - property_id: args.get("propertyId") + street_id: args.getRaw("streetId"), + property_id: args.getRaw("propertyId") }); }, buildingById(_$root, args) { return pgResource_buildingsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, offer(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, street(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, property(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, streetProperty(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, house(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, building(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, allPosts: { @@ -3849,7 +3847,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3858,7 +3855,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3867,7 +3863,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3876,7 +3871,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3885,7 +3879,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3894,22 +3887,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3923,7 +3912,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3932,7 +3920,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3941,7 +3928,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3950,7 +3936,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3959,7 +3944,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3968,22 +3952,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3997,7 +3977,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4006,7 +3985,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4015,7 +3993,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4024,7 +4001,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4033,7 +4009,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4042,22 +4017,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4071,7 +4042,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4080,7 +4050,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4089,7 +4058,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4098,7 +4066,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4107,7 +4074,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4116,22 +4082,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4145,7 +4107,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4154,7 +4115,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4163,7 +4123,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4172,7 +4131,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4181,7 +4139,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4190,22 +4147,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4219,7 +4172,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4228,7 +4180,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4237,7 +4188,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4246,7 +4196,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4255,7 +4204,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4264,22 +4212,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4293,7 +4237,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4302,7 +4245,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4311,7 +4253,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4320,7 +4261,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4329,7 +4269,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4338,22 +4277,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4376,7 +4311,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4385,7 +4319,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4394,7 +4327,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4403,7 +4335,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4412,7 +4343,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4421,22 +4351,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4512,31 +4438,21 @@ export const plans = { } }, OffersOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { offersUniques[0].attributes.forEach(attributeName => { - const attribute = offersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4545,19 +4461,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { offersUniques[0].attributes.forEach(attributeName => { - const attribute = offersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4566,11 +4480,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -4578,7 +4489,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4588,11 +4499,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -4600,7 +4508,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4610,11 +4518,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "post_id", direction: "ASC", ...(undefined != null ? { @@ -4622,7 +4527,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4632,11 +4537,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "post_id", direction: "DESC", ...(undefined != null ? { @@ -4644,7 +4546,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4653,8 +4555,8 @@ export const plans = { }, OfferCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -4667,17 +4569,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_offers.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, postId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "post_id", @@ -4690,13 +4590,11 @@ export const plans = { type: "attribute", attribute: "post_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_offers.attributes.post_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Street: { @@ -4722,7 +4620,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4731,7 +4628,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4740,7 +4636,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4749,7 +4644,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4758,7 +4652,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4767,22 +4660,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4799,7 +4688,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4808,7 +4696,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4817,7 +4704,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4826,7 +4712,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4835,7 +4720,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4844,22 +4728,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4876,7 +4756,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4885,7 +4764,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4894,7 +4772,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4903,7 +4780,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4912,7 +4788,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4921,22 +4796,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4953,7 +4824,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4962,7 +4832,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4971,7 +4840,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4980,7 +4848,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4989,7 +4856,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4998,22 +4864,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5067,7 +4929,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5076,7 +4937,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5085,7 +4945,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5094,7 +4953,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5103,7 +4961,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5112,22 +4969,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5144,7 +4997,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5153,7 +5005,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5162,7 +5013,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5171,7 +5021,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5180,7 +5029,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5189,22 +5037,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5221,7 +5065,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5230,7 +5073,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5239,7 +5081,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5248,7 +5089,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5257,7 +5097,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5266,22 +5105,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5427,7 +5262,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5436,7 +5270,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5445,7 +5278,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5454,7 +5286,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5463,7 +5294,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5472,22 +5302,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5520,31 +5346,21 @@ export const plans = { } }, HousesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { housesUniques[0].attributes.forEach(attributeName => { - const attribute = housesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5553,19 +5369,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { housesUniques[0].attributes.forEach(attributeName => { - const attribute = housesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5574,11 +5388,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_name", direction: "ASC", ...(undefined != null ? { @@ -5586,7 +5397,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5596,11 +5407,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_name", direction: "DESC", ...(undefined != null ? { @@ -5608,7 +5416,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5618,11 +5426,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_name_or_number", direction: "ASC", ...(undefined != null ? { @@ -5630,7 +5435,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5640,11 +5445,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_name_or_number", direction: "DESC", ...(undefined != null ? { @@ -5652,7 +5454,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5662,11 +5464,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_name", direction: "ASC", ...(undefined != null ? { @@ -5674,7 +5473,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5684,11 +5483,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_name", direction: "DESC", ...(undefined != null ? { @@ -5696,7 +5492,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5706,11 +5502,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "ASC", ...(undefined != null ? { @@ -5718,7 +5511,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5728,11 +5521,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "DESC", ...(undefined != null ? { @@ -5740,7 +5530,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5750,11 +5540,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_id", direction: "ASC", ...(undefined != null ? { @@ -5762,7 +5549,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5772,11 +5559,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_id", direction: "DESC", ...(undefined != null ? { @@ -5784,7 +5568,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5794,11 +5578,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "ASC", ...(undefined != null ? { @@ -5806,7 +5587,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5816,11 +5597,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "DESC", ...(undefined != null ? { @@ -5828,7 +5606,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5838,11 +5616,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "ASC", ...(undefined != null ? { @@ -5850,7 +5625,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5860,11 +5635,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "DESC", ...(undefined != null ? { @@ -5872,7 +5644,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5881,8 +5653,8 @@ export const plans = { }, HouseCondition: { buildingName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "building_name", @@ -5895,17 +5667,15 @@ export const plans = { type: "attribute", attribute: "building_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.building_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyNameOrNumber: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_name_or_number", @@ -5918,17 +5688,15 @@ export const plans = { type: "attribute", attribute: "property_name_or_number", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.property_name_or_number.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_name", @@ -5941,17 +5709,15 @@ export const plans = { type: "attribute", attribute: "street_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.street_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_id", @@ -5964,17 +5730,15 @@ export const plans = { type: "attribute", attribute: "street_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.street_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, buildingId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "building_id", @@ -5987,17 +5751,15 @@ export const plans = { type: "attribute", attribute: "building_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.building_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_id", @@ -6010,17 +5772,15 @@ export const plans = { type: "attribute", attribute: "property_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.property_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, floors: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "floors", @@ -6033,13 +5793,11 @@ export const plans = { type: "attribute", attribute: "floors", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.floors.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StreetPropertiesEdge: { @@ -6052,31 +5810,21 @@ export const plans = { } }, StreetPropertiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { street_propertyUniques[0].attributes.forEach(attributeName => { - const attribute = streetPropertyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6085,19 +5833,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { street_propertyUniques[0].attributes.forEach(attributeName => { - const attribute = streetPropertyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6106,11 +5852,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str_id", direction: "ASC", ...(undefined != null ? { @@ -6118,7 +5861,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6128,11 +5871,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str_id", direction: "DESC", ...(undefined != null ? { @@ -6140,7 +5880,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6150,11 +5890,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "prop_id", direction: "ASC", ...(undefined != null ? { @@ -6162,7 +5899,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6172,11 +5909,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "prop_id", direction: "DESC", ...(undefined != null ? { @@ -6184,7 +5918,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6194,11 +5928,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "current_owner", direction: "ASC", ...(undefined != null ? { @@ -6206,7 +5937,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6216,11 +5947,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "current_owner", direction: "DESC", ...(undefined != null ? { @@ -6228,7 +5956,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6237,8 +5965,8 @@ export const plans = { }, StreetPropertyCondition: { strId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str_id", @@ -6251,17 +5979,15 @@ export const plans = { type: "attribute", attribute: "str_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.str_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "prop_id", @@ -6274,17 +6000,15 @@ export const plans = { type: "attribute", attribute: "prop_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.prop_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, currentOwner: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "current_owner", @@ -6297,13 +6021,11 @@ export const plans = { type: "attribute", attribute: "current_owner", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.current_owner.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BuildingsConnection: { @@ -6332,31 +6054,21 @@ export const plans = { } }, BuildingsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingsUniques[0].attributes.forEach(attributeName => { - const attribute = buildingsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6365,19 +6077,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingsUniques[0].attributes.forEach(attributeName => { - const attribute = buildingsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6386,11 +6096,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6398,7 +6105,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6408,11 +6115,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6420,7 +6124,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6430,11 +6134,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "ASC", ...(undefined != null ? { @@ -6442,7 +6143,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6452,11 +6153,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "DESC", ...(undefined != null ? { @@ -6464,7 +6162,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6474,11 +6172,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6486,7 +6181,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6496,11 +6191,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6508,7 +6200,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6518,11 +6210,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "ASC", ...(undefined != null ? { @@ -6530,7 +6219,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6540,11 +6229,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "DESC", ...(undefined != null ? { @@ -6552,7 +6238,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6562,11 +6248,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_primary", direction: "ASC", ...(undefined != null ? { @@ -6574,7 +6257,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6584,11 +6267,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_primary", direction: "DESC", ...(undefined != null ? { @@ -6596,7 +6276,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6605,8 +6285,8 @@ export const plans = { }, BuildingCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6619,17 +6299,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_id", @@ -6642,17 +6320,15 @@ export const plans = { type: "attribute", attribute: "property_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.property_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6665,17 +6341,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, floors: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "floors", @@ -6688,17 +6362,15 @@ export const plans = { type: "attribute", attribute: "floors", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.floors.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isPrimary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_primary", @@ -6711,13 +6383,11 @@ export const plans = { type: "attribute", attribute: "is_primary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.is_primary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PropertiesEdge: { @@ -6730,31 +6400,21 @@ export const plans = { } }, PropertiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { propertiesUniques[0].attributes.forEach(attributeName => { - const attribute = propertiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6763,19 +6423,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { propertiesUniques[0].attributes.forEach(attributeName => { - const attribute = propertiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6784,11 +6442,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6796,7 +6451,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6806,11 +6461,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6818,7 +6470,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6828,11 +6480,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "ASC", ...(undefined != null ? { @@ -6840,7 +6489,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6850,11 +6499,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "DESC", ...(undefined != null ? { @@ -6862,7 +6508,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6872,11 +6518,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name_or_number", direction: "ASC", ...(undefined != null ? { @@ -6884,7 +6527,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6894,11 +6537,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name_or_number", direction: "DESC", ...(undefined != null ? { @@ -6906,7 +6546,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6915,8 +6555,8 @@ export const plans = { }, PropertyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6929,17 +6569,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_id", @@ -6952,17 +6590,15 @@ export const plans = { type: "attribute", attribute: "street_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.street_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nameOrNumber: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name_or_number", @@ -6975,13 +6611,11 @@ export const plans = { type: "attribute", attribute: "name_or_number", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.name_or_number.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PostsConnection: { @@ -7010,23 +6644,12 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -7034,7 +6657,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7044,11 +6667,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -7056,7 +6676,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7065,8 +6685,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7079,13 +6699,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_posts.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StreetsConnection: { @@ -7114,31 +6732,21 @@ export const plans = { } }, StreetsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { streetsUniques[0].attributes.forEach(attributeName => { - const attribute = streetsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7147,19 +6755,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { streetsUniques[0].attributes.forEach(attributeName => { - const attribute = streetsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7168,11 +6774,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -7180,7 +6783,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7190,11 +6793,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -7202,7 +6802,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7212,11 +6812,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -7224,7 +6821,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7234,11 +6831,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -7246,7 +6840,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -7255,8 +6849,8 @@ export const plans = { }, StreetCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -7269,17 +6863,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streets.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -7292,30 +6884,28 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streets.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createPost: { plan(_, args) { + const $insert = pgInsertSingle(resource_postsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_postsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7325,17 +6915,17 @@ export const plans = { }, createOffer: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_offersPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_offersPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7345,17 +6935,17 @@ export const plans = { }, createStreet: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_streetsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_streetsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7365,17 +6955,17 @@ export const plans = { }, createProperty: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_propertiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_propertiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7385,17 +6975,17 @@ export const plans = { }, createStreetProperty: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_street_propertyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_street_propertyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7405,17 +6995,17 @@ export const plans = { }, createBuilding: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_buildingsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_buildingsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7425,13 +7015,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_postsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(resource_postsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7446,11 +7036,11 @@ export const plans = { }, updateOffer: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_offersPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_offersPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7465,13 +7055,13 @@ export const plans = { }, updateOfferById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_offersPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_offersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7486,11 +7076,11 @@ export const plans = { }, updateStreet: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_streetsPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7505,13 +7095,13 @@ export const plans = { }, updateStreetById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_streetsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7526,13 +7116,13 @@ export const plans = { }, updateStreetByName: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, { - name: args.get(['input', "name"]) - }) + const $update = pgUpdateSingle(pgResource_streetsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7547,11 +7137,11 @@ export const plans = { }, updateProperty: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_propertiesPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_propertiesPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7566,13 +7156,13 @@ export const plans = { }, updatePropertyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_propertiesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_propertiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7587,11 +7177,11 @@ export const plans = { }, updateStreetProperty: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_street_propertyPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_street_propertyPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7606,14 +7196,14 @@ export const plans = { }, updateStreetPropertyByStrIdAndPropId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_street_propertyPgResource, { - str_id: args.get(['input', "strId"]), - prop_id: args.get(['input', "propId"]) - }) + const $update = pgUpdateSingle(pgResource_street_propertyPgResource, { + str_id: args.getRaw(['input', "strId"]), + prop_id: args.getRaw(['input', "propId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7628,11 +7218,11 @@ export const plans = { }, updateBuilding: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_buildingsPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_buildingsPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7647,13 +7237,13 @@ export const plans = { }, updateBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_buildingsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_buildingsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7668,13 +7258,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_postsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(resource_postsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7689,11 +7279,11 @@ export const plans = { }, deleteOffer: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_offersPgResource, specFromArgs6(args)) + const $delete = pgDeleteSingle(pgResource_offersPgResource, specFromArgs6(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7708,13 +7298,13 @@ export const plans = { }, deleteOfferById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_offersPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_offersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7729,11 +7319,11 @@ export const plans = { }, deleteStreet: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7748,13 +7338,13 @@ export const plans = { }, deleteStreetById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7769,13 +7359,13 @@ export const plans = { }, deleteStreetByName: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, { - name: args.get(['input', "name"]) - }) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7790,11 +7380,11 @@ export const plans = { }, deleteProperty: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_propertiesPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_propertiesPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7809,13 +7399,13 @@ export const plans = { }, deletePropertyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_propertiesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_propertiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7830,11 +7420,11 @@ export const plans = { }, deleteStreetProperty: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_street_propertyPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_street_propertyPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7849,14 +7439,14 @@ export const plans = { }, deleteStreetPropertyByStrIdAndPropId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_street_propertyPgResource, { - str_id: args.get(['input', "strId"]), - prop_id: args.get(['input', "propId"]) - }) + const $delete = pgDeleteSingle(pgResource_street_propertyPgResource, { + str_id: args.getRaw(['input', "strId"]), + prop_id: args.getRaw(['input', "propId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7871,11 +7461,11 @@ export const plans = { }, deleteBuilding: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_buildingsPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_buildingsPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7890,13 +7480,13 @@ export const plans = { }, deleteBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_buildingsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_buildingsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7913,7 +7503,8 @@ export const plans = { CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7924,35 +7515,34 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateOfferPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -7960,7 +7550,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7976,9 +7566,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7994,42 +7582,42 @@ export const plans = { }, CreateOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, offer: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, OfferInput: { - "__inputPlan": function OfferInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, postId: { - applyPlan($insert, val) { - $insert.set("post_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("post_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStreetPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -8037,7 +7625,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8053,9 +7641,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8066,42 +7652,42 @@ export const plans = { }, CreateStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, street: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StreetInput: { - "__inputPlan": function StreetInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePropertyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -8109,7 +7695,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8125,9 +7711,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8143,49 +7727,50 @@ export const plans = { }, CreatePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, property: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PropertyInput: { - "__inputPlan": function PropertyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, streetId: { - applyPlan($insert, val) { - $insert.set("street_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("street_id", bakedInputRuntime(schema, field.type, val)); + } }, nameOrNumber: { - applyPlan($insert, val) { - $insert.set("name_or_number", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name_or_number", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStreetPropertyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -8193,7 +7778,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8209,9 +7794,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8232,49 +7815,50 @@ export const plans = { }, CreateStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, streetProperty: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StreetPropertyInput: { - "__inputPlan": function StreetPropertyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, strId: { - applyPlan($insert, val) { - $insert.set("str_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str_id", bakedInputRuntime(schema, field.type, val)); + } }, propId: { - applyPlan($insert, val) { - $insert.set("prop_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("prop_id", bakedInputRuntime(schema, field.type, val)); + } }, currentOwner: { - applyPlan($insert, val) { - $insert.set("current_owner", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("current_owner", bakedInputRuntime(schema, field.type, val)); + } } }, CreateBuildingPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -8282,7 +7866,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8298,9 +7882,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8321,63 +7903,66 @@ export const plans = { }, CreateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, building: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, BuildingInput: { - "__inputPlan": function BuildingInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, propertyId: { - applyPlan($insert, val) { - $insert.set("property_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("property_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, floors: { - applyPlan($insert, val) { - $insert.set("floors", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("floors", bakedInputRuntime(schema, field.type, val)); + } }, isPrimary: { - applyPlan($insert, val) { - $insert.set("is_primary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_primary", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8388,34 +7973,35 @@ export const plans = { }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOfferPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -8423,7 +8009,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8439,9 +8025,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8457,55 +8041,58 @@ export const plans = { }, UpdateOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, offerPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, OfferPatch: { - "__inputPlan": function OfferPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, postId: { - applyPlan($insert, val) { - $insert.set("post_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("post_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOfferByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, offerPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -8513,7 +8100,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8529,9 +8116,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8542,69 +8127,73 @@ export const plans = { }, UpdateStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StreetPatch: { - "__inputPlan": function StreetPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStreetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -8612,7 +8201,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8628,9 +8217,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8646,62 +8233,66 @@ export const plans = { }, UpdatePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, propertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PropertyPatch: { - "__inputPlan": function PropertyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, streetId: { - applyPlan($insert, val) { - $insert.set("street_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("street_id", bakedInputRuntime(schema, field.type, val)); + } }, nameOrNumber: { - applyPlan($insert, val) { - $insert.set("name_or_number", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name_or_number", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePropertyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, propertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetPropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -8709,7 +8300,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8725,9 +8316,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8748,63 +8337,67 @@ export const plans = { }, UpdateStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, streetPropertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StreetPropertyPatch: { - "__inputPlan": function StreetPropertyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, strId: { - applyPlan($insert, val) { - $insert.set("str_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str_id", bakedInputRuntime(schema, field.type, val)); + } }, propId: { - applyPlan($insert, val) { - $insert.set("prop_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("prop_id", bakedInputRuntime(schema, field.type, val)); + } }, currentOwner: { - applyPlan($insert, val) { - $insert.set("current_owner", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("current_owner", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStreetPropertyByStrIdAndPropIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, strId: undefined, propId: undefined, streetPropertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -8812,7 +8405,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8828,9 +8421,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8851,76 +8442,82 @@ export const plans = { }, UpdateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, BuildingPatch: { - "__inputPlan": function BuildingPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, propertyId: { - applyPlan($insert, val) { - $insert.set("property_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("property_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, floors: { - applyPlan($insert, val) { - $insert.set("floors", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("floors", bakedInputRuntime(schema, field.type, val)); + } }, isPrimary: { - applyPlan($insert, val) { - $insert.set("is_primary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_primary", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8931,8 +8528,8 @@ export const plans = { }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8940,7 +8537,8 @@ export const plans = { DeleteOfferPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -8953,7 +8551,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8969,9 +8567,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8987,16 +8583,16 @@ export const plans = { }, DeleteOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteOfferByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -9004,7 +8600,8 @@ export const plans = { DeleteStreetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -9017,7 +8614,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9033,9 +8630,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9046,24 +8641,24 @@ export const plans = { }, DeleteStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStreetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteStreetByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined @@ -9071,7 +8666,8 @@ export const plans = { DeletePropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -9084,7 +8680,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9100,9 +8696,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9118,16 +8712,16 @@ export const plans = { }, DeletePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePropertyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -9135,7 +8729,8 @@ export const plans = { DeleteStreetPropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -9148,7 +8743,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9164,9 +8759,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9187,16 +8780,16 @@ export const plans = { }, DeleteStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStreetPropertyByStrIdAndPropIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, strId: undefined, @@ -9205,7 +8798,8 @@ export const plans = { DeleteBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -9218,7 +8812,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9234,9 +8828,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9257,16 +8849,16 @@ export const plans = { }, DeleteBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined 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 0c9191bced..818d140189 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 @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, TYPES, assertPgClassSingleStep, makeRegistry, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgUpdateSingle, recordCodec, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, inhibitOnNull, lambda, list, makeGrafastSchema, node, object, rootValue, specFromNodeId } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const handler = { typeName: "Query", codec: { @@ -21,6 +20,9 @@ const handler = { match(specifier) { return specifier === "query"; }, + getIdentifiers(_value) { + return []; + }, getSpec() { return "irrelevant"; }, @@ -111,7 +113,7 @@ const spec_post_table = { }; const post_tableCodec = recordCodec(spec_post_table); const postsIdentifier = sql.identifier("smart_comment_relations", "post_view"); -const spec_posts = { +const postsCodec = recordCodec({ name: "posts", identifier: postsIdentifier, attributes: { @@ -141,8 +143,7 @@ const spec_posts = { } }, executor: executor -}; -const postsCodec = recordCodec(spec_posts); +}); const offer_tableIdentifier = sql.identifier("smart_comment_relations", "offer"); const spec_offer_table = { name: "offer_table", @@ -187,7 +188,7 @@ const spec_offer_table = { }; const offer_tableCodec = recordCodec(spec_offer_table); const offersIdentifier = sql.identifier("smart_comment_relations", "offer_view"); -const spec_offers = { +const offersCodec = recordCodec({ name: "offers", identifier: offersIdentifier, attributes: { @@ -227,10 +228,9 @@ const spec_offers = { } }, executor: executor -}; -const offersCodec = recordCodec(spec_offers); +}); const streetsIdentifier = sql.identifier("smart_comment_relations", "streets"); -const spec_streets = { +const streetsCodec = recordCodec({ name: "streets", identifier: streetsIdentifier, attributes: { @@ -268,10 +268,9 @@ const spec_streets = { } }, executor: executor -}; -const streetsCodec = recordCodec(spec_streets); +}); const propertiesIdentifier = sql.identifier("smart_comment_relations", "properties"); -const spec_properties = { +const propertiesCodec = recordCodec({ name: "properties", identifier: propertiesIdentifier, attributes: { @@ -317,10 +316,9 @@ const spec_properties = { } }, executor: executor -}; -const propertiesCodec = recordCodec(spec_properties); +}); const streetPropertyIdentifier = sql.identifier("smart_comment_relations", "street_property"); -const spec_streetProperty = { +const streetPropertyCodec = recordCodec({ name: "streetProperty", identifier: streetPropertyIdentifier, attributes: { @@ -366,8 +364,7 @@ const spec_streetProperty = { } }, executor: executor -}; -const streetPropertyCodec = recordCodec(spec_streetProperty); +}); const housesIdentifier = sql.identifier("smart_comment_relations", "houses"); const spec_houses = { name: "houses", @@ -461,7 +458,7 @@ const spec_houses = { }; const housesCodec = recordCodec(spec_houses); const buildingsIdentifier = sql.identifier("smart_comment_relations", "buildings"); -const spec_buildings = { +const buildingsCodec = recordCodec({ name: "buildings", identifier: buildingsIdentifier, attributes: { @@ -526,8 +523,7 @@ const spec_buildings = { } }, executor: executor -}; -const buildingsCodec = recordCodec(spec_buildings); +}); const registryConfig_pgResources_post_table_post_table = { executor: executor, name: "post_table", @@ -1172,6 +1168,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_postsPgResource.get(spec); }, @@ -1191,6 +1190,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_offersPgResource.get(spec); }, @@ -1210,6 +1212,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_streetsPgResource.get(spec); }, @@ -1229,6 +1234,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_propertiesPgResource.get(spec); }, @@ -1249,6 +1257,9 @@ const nodeIdHandlerByTypeName = { prop_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_street_propertyPgResource.get(spec); }, @@ -1269,6 +1280,9 @@ const nodeIdHandlerByTypeName = { property_id: inhibitOnNull(access($list, [2])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_housesPgResource.get(spec); }, @@ -1288,6 +1302,9 @@ const nodeIdHandlerByTypeName = { id: inhibitOnNull(access($list, [1])) }; }, + getIdentifiers(value) { + return value.slice(1); + }, get(spec) { return pgResource_buildingsPgResource.get(spec); }, @@ -1300,6 +1317,7 @@ function specForHandler(handler) { function spec(nodeId) { // We only want to return the specifier if it matches // this handler; otherwise return null. + if (nodeId == null) return null; try { const specifier = handler.codec.decode(nodeId); if (handler.match(specifier)) { @@ -1370,75 +1388,58 @@ const fetcher7 = (handler => { fn.deprecationReason = handler.deprecationReason; return fn; })(nodeIdHandlerByTypeName.Building); -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} function CursorSerialize(value) { return "" + value; } const specFromArgs = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs2 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Offer, $nodeId); }; const specFromArgs3 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Street, $nodeId); }; const specFromArgs4 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Property, $nodeId); }; const specFromArgs5 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.StreetProperty, $nodeId); }; const specFromArgs6 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Building, $nodeId); }; const specFromArgs7 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Post, $nodeId); }; const specFromArgs8 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Offer, $nodeId); }; const specFromArgs9 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Street, $nodeId); }; const specFromArgs10 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Property, $nodeId); }; const specFromArgs11 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.StreetProperty, $nodeId); }; const specFromArgs12 = args => { - const $nodeId = args.get(["input", "nodeId"]); + const $nodeId = args.getRaw(["input", "nodeId"]); return specFromNodeId(nodeIdHandlerByTypeName.Building, $nodeId); }; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -3701,94 +3702,94 @@ export const plans = { return lambda(specifier, nodeIdCodecs[handler.codec.name].encode); }, node(_$root, args) { - return node(nodeIdHandlerByTypeName, args.get("nodeId")); + return node(nodeIdHandlerByTypeName, args.getRaw("nodeId")); }, postById(_$root, args) { return pgResource_postsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, offerById(_$root, args) { return pgResource_offersPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetById(_$root, args) { return pgResource_streetsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetByName(_$root, args) { return pgResource_streetsPgResource.get({ - name: args.get("name") + name: args.getRaw("name") }); }, propertyById(_$root, args) { return pgResource_propertiesPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, streetPropertyByStrIdAndPropId(_$root, args) { return pgResource_street_propertyPgResource.get({ - str_id: args.get("strId"), - prop_id: args.get("propId") + str_id: args.getRaw("strId"), + prop_id: args.getRaw("propId") }); }, houseByStreetIdAndPropertyId(_$root, args) { return pgResource_housesPgResource.get({ - street_id: args.get("streetId"), - property_id: args.get("propertyId") + street_id: args.getRaw("streetId"), + property_id: args.getRaw("propertyId") }); }, houseByStreetNameAndPropertyId(_$root, args) { return pgResource_housesPgResource.get({ - street_name: args.get("streetName"), - property_id: args.get("propertyId") + street_name: args.getRaw("streetName"), + property_id: args.getRaw("propertyId") }); }, houseByStreetIdAndPropertyNameOrNumber(_$root, args) { return pgResource_housesPgResource.get({ - street_id: args.get("streetId"), - property_name_or_number: args.get("propertyNameOrNumber") + street_id: args.getRaw("streetId"), + property_name_or_number: args.getRaw("propertyNameOrNumber") }); }, houseByStreetNameAndBuildingName(_$root, args) { return pgResource_housesPgResource.get({ - street_name: args.get("streetName"), - building_name: args.get("buildingName") + street_name: args.getRaw("streetName"), + building_name: args.getRaw("buildingName") }); }, buildingById(_$root, args) { return pgResource_buildingsPgResource.get({ - id: args.get("id") + id: args.getRaw("id") }); }, post(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher($nodeId); }, offer(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher2($nodeId); }, street(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher3($nodeId); }, property(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher4($nodeId); }, streetProperty(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher5($nodeId); }, house(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher6($nodeId); }, building(_$parent, args) { - const $nodeId = args.get("nodeId"); + const $nodeId = args.getRaw("nodeId"); return fetcher7($nodeId); }, allPosts: { @@ -3799,7 +3800,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3808,7 +3808,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3817,7 +3816,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3826,7 +3824,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3835,7 +3832,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3844,22 +3840,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3873,7 +3865,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3882,7 +3873,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3891,7 +3881,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3900,7 +3889,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3909,7 +3897,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3918,22 +3905,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -3947,7 +3930,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -3956,7 +3938,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -3965,7 +3946,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -3974,7 +3954,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -3983,7 +3962,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -3992,22 +3970,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4021,7 +3995,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4030,7 +4003,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4039,7 +4011,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4048,7 +4019,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4057,7 +4027,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4066,22 +4035,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4095,7 +4060,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4104,7 +4068,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4113,7 +4076,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4122,7 +4084,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4131,7 +4092,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4140,22 +4100,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4169,7 +4125,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4178,7 +4133,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4187,7 +4141,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4196,7 +4149,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4205,7 +4157,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4214,22 +4165,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("HousesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4243,7 +4190,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4252,7 +4198,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4261,7 +4206,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4270,7 +4214,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4279,7 +4222,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4288,22 +4230,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4330,7 +4268,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4339,7 +4276,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4348,7 +4284,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4357,7 +4292,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4366,7 +4300,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4375,22 +4308,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4466,31 +4395,21 @@ export const plans = { } }, OffersOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { offersUniques[0].attributes.forEach(attributeName => { - const attribute = offersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4499,19 +4418,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { offersUniques[0].attributes.forEach(attributeName => { - const attribute = offersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4520,11 +4437,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -4532,7 +4446,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4542,11 +4456,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -4554,7 +4465,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4564,11 +4475,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "post_id", direction: "ASC", ...(undefined != null ? { @@ -4576,7 +4484,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4586,11 +4494,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "post_id", direction: "DESC", ...(undefined != null ? { @@ -4598,7 +4503,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -4607,8 +4512,8 @@ export const plans = { }, OfferCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -4621,17 +4526,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_offers.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, postId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "post_id", @@ -4644,13 +4547,11 @@ export const plans = { type: "attribute", attribute: "post_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_offers.attributes.post_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Street: { @@ -4676,7 +4577,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4685,7 +4585,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4694,7 +4593,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4703,7 +4601,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4712,7 +4609,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4721,22 +4617,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4753,7 +4645,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4762,7 +4653,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4771,7 +4661,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4780,7 +4669,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4789,7 +4677,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4798,22 +4685,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4830,7 +4713,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4839,7 +4721,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4848,7 +4729,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4857,7 +4737,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4866,7 +4745,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4875,22 +4753,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -4944,7 +4818,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -4953,7 +4826,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -4962,7 +4834,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -4971,7 +4842,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -4980,7 +4850,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -4989,22 +4858,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5021,7 +4886,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -5030,7 +4894,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -5039,7 +4902,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -5048,7 +4910,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -5057,7 +4918,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -5066,22 +4926,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -5140,31 +4996,21 @@ export const plans = { } }, StreetPropertiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { street_propertyUniques[0].attributes.forEach(attributeName => { - const attribute = streetPropertyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5173,19 +5019,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { street_propertyUniques[0].attributes.forEach(attributeName => { - const attribute = streetPropertyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5194,11 +5038,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str_id", direction: "ASC", ...(undefined != null ? { @@ -5206,7 +5047,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5216,11 +5057,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str_id", direction: "DESC", ...(undefined != null ? { @@ -5228,7 +5066,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5238,11 +5076,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "prop_id", direction: "ASC", ...(undefined != null ? { @@ -5250,7 +5085,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5260,11 +5095,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "prop_id", direction: "DESC", ...(undefined != null ? { @@ -5272,7 +5104,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5282,11 +5114,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "current_owner", direction: "ASC", ...(undefined != null ? { @@ -5294,7 +5123,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5304,11 +5133,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "current_owner", direction: "DESC", ...(undefined != null ? { @@ -5316,7 +5142,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5325,8 +5151,8 @@ export const plans = { }, StreetPropertyCondition: { strId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str_id", @@ -5339,17 +5165,15 @@ export const plans = { type: "attribute", attribute: "str_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.str_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "prop_id", @@ -5362,17 +5186,15 @@ export const plans = { type: "attribute", attribute: "prop_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.prop_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, currentOwner: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "current_owner", @@ -5385,13 +5207,11 @@ export const plans = { type: "attribute", attribute: "current_owner", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streetProperty.attributes.current_owner.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BuildingsConnection: { @@ -5452,31 +5272,21 @@ export const plans = { } }, BuildingsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingsUniques[0].attributes.forEach(attributeName => { - const attribute = buildingsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5485,19 +5295,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { buildingsUniques[0].attributes.forEach(attributeName => { - const attribute = buildingsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5506,11 +5314,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5518,7 +5323,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5528,11 +5333,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5540,7 +5342,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5550,11 +5352,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "ASC", ...(undefined != null ? { @@ -5562,7 +5361,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5572,11 +5371,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "DESC", ...(undefined != null ? { @@ -5584,7 +5380,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5594,11 +5390,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -5606,7 +5399,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5616,11 +5409,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -5628,7 +5418,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5638,11 +5428,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "ASC", ...(undefined != null ? { @@ -5650,7 +5437,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5660,11 +5447,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "DESC", ...(undefined != null ? { @@ -5672,7 +5456,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5682,11 +5466,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_primary", direction: "ASC", ...(undefined != null ? { @@ -5694,7 +5475,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5704,11 +5485,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_primary", direction: "DESC", ...(undefined != null ? { @@ -5716,7 +5494,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5725,8 +5503,8 @@ export const plans = { }, BuildingCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -5739,17 +5517,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_id", @@ -5762,17 +5538,15 @@ export const plans = { type: "attribute", attribute: "property_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.property_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -5785,17 +5559,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, floors: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "floors", @@ -5808,17 +5580,15 @@ export const plans = { type: "attribute", attribute: "floors", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.floors.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isPrimary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_primary", @@ -5831,13 +5601,11 @@ export const plans = { type: "attribute", attribute: "is_primary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_buildings.attributes.is_primary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PropertiesEdge: { @@ -5850,31 +5618,21 @@ export const plans = { } }, PropertiesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { propertiesUniques[0].attributes.forEach(attributeName => { - const attribute = propertiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5883,19 +5641,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { propertiesUniques[0].attributes.forEach(attributeName => { - const attribute = propertiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5904,11 +5660,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -5916,7 +5669,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5926,11 +5679,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -5938,7 +5688,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5948,11 +5698,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "ASC", ...(undefined != null ? { @@ -5960,7 +5707,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5970,11 +5717,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "DESC", ...(undefined != null ? { @@ -5982,7 +5726,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -5992,11 +5736,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name_or_number", direction: "ASC", ...(undefined != null ? { @@ -6004,7 +5745,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6014,11 +5755,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name_or_number", direction: "DESC", ...(undefined != null ? { @@ -6026,7 +5764,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6035,8 +5773,8 @@ export const plans = { }, PropertyCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6049,17 +5787,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_id", @@ -6072,17 +5808,15 @@ export const plans = { type: "attribute", attribute: "street_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.street_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nameOrNumber: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name_or_number", @@ -6095,13 +5829,11 @@ export const plans = { type: "attribute", attribute: "name_or_number", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_properties.attributes.name_or_number.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, House: { @@ -6158,31 +5890,21 @@ export const plans = { } }, PostsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postsUniques[0].attributes.forEach(attributeName => { - const attribute = postsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6191,19 +5913,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postsUniques[0].attributes.forEach(attributeName => { - const attribute = postsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6212,11 +5932,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6224,7 +5941,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6234,11 +5951,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6246,7 +5960,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6255,8 +5969,8 @@ export const plans = { }, PostCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6269,13 +5983,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_posts.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, StreetsConnection: { @@ -6304,31 +6016,21 @@ export const plans = { } }, StreetsOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { streetsUniques[0].attributes.forEach(attributeName => { - const attribute = streetsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6337,19 +6039,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { streetsUniques[0].attributes.forEach(attributeName => { - const attribute = streetsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6358,11 +6058,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -6370,7 +6067,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6380,11 +6077,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -6392,7 +6086,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6402,11 +6096,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -6414,7 +6105,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6424,11 +6115,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -6436,7 +6124,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6445,8 +6133,8 @@ export const plans = { }, StreetCondition: { id: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -6459,17 +6147,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streets.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -6482,13 +6168,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_streets.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, HousesConnection: { @@ -6517,31 +6201,21 @@ export const plans = { } }, HousesOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { housesUniques[0].attributes.forEach(attributeName => { - const attribute = housesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6550,19 +6224,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { housesUniques[0].attributes.forEach(attributeName => { - const attribute = housesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6571,11 +6243,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_name", direction: "ASC", ...(undefined != null ? { @@ -6583,7 +6252,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6593,11 +6262,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_name", direction: "DESC", ...(undefined != null ? { @@ -6605,7 +6271,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6615,11 +6281,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_name_or_number", direction: "ASC", ...(undefined != null ? { @@ -6627,7 +6290,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6637,11 +6300,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_name_or_number", direction: "DESC", ...(undefined != null ? { @@ -6649,7 +6309,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6659,11 +6319,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_name", direction: "ASC", ...(undefined != null ? { @@ -6671,7 +6328,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6681,11 +6338,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_name", direction: "DESC", ...(undefined != null ? { @@ -6693,7 +6347,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6703,11 +6357,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "ASC", ...(undefined != null ? { @@ -6715,7 +6366,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6725,11 +6376,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "street_id", direction: "DESC", ...(undefined != null ? { @@ -6737,7 +6385,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6747,11 +6395,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_id", direction: "ASC", ...(undefined != null ? { @@ -6759,7 +6404,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6769,11 +6414,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "building_id", direction: "DESC", ...(undefined != null ? { @@ -6781,7 +6423,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6791,11 +6433,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "ASC", ...(undefined != null ? { @@ -6803,7 +6442,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6813,11 +6452,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "property_id", direction: "DESC", ...(undefined != null ? { @@ -6825,7 +6461,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6835,11 +6471,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "ASC", ...(undefined != null ? { @@ -6847,7 +6480,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6857,11 +6490,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "floors", direction: "DESC", ...(undefined != null ? { @@ -6869,7 +6499,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -6878,8 +6508,8 @@ export const plans = { }, HouseCondition: { buildingName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "building_name", @@ -6892,17 +6522,15 @@ export const plans = { type: "attribute", attribute: "building_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.building_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyNameOrNumber: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_name_or_number", @@ -6915,17 +6543,15 @@ export const plans = { type: "attribute", attribute: "property_name_or_number", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.property_name_or_number.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_name", @@ -6938,17 +6564,15 @@ export const plans = { type: "attribute", attribute: "street_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.street_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, streetId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "street_id", @@ -6961,17 +6585,15 @@ export const plans = { type: "attribute", attribute: "street_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.street_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, buildingId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "building_id", @@ -6984,17 +6606,15 @@ export const plans = { type: "attribute", attribute: "building_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.building_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, propertyId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "property_id", @@ -7007,17 +6627,15 @@ export const plans = { type: "attribute", attribute: "property_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.property_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, floors: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "floors", @@ -7030,30 +6648,28 @@ export const plans = { type: "attribute", attribute: "floors", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_houses.attributes.floors.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createPost: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_postsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_postsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7063,17 +6679,17 @@ export const plans = { }, createOffer: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_offersPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_offersPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7083,17 +6699,17 @@ export const plans = { }, createStreet: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_streetsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_streetsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7103,17 +6719,17 @@ export const plans = { }, createProperty: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_propertiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_propertiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7123,17 +6739,17 @@ export const plans = { }, createStreetProperty: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_street_propertyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_street_propertyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7143,17 +6759,17 @@ export const plans = { }, createBuilding: { plan(_, args) { + const $insert = pgInsertSingle(pgResource_buildingsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(pgResource_buildingsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -7163,11 +6779,11 @@ export const plans = { }, updatePost: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postsPgResource, specFromArgs(args)) + const $update = pgUpdateSingle(pgResource_postsPgResource, specFromArgs(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7182,13 +6798,13 @@ export const plans = { }, updatePostById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_postsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_postsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7203,11 +6819,11 @@ export const plans = { }, updateOffer: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_offersPgResource, specFromArgs2(args)) + const $update = pgUpdateSingle(pgResource_offersPgResource, specFromArgs2(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7222,13 +6838,13 @@ export const plans = { }, updateOfferById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_offersPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_offersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7243,11 +6859,11 @@ export const plans = { }, updateStreet: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, specFromArgs3(args)) + const $update = pgUpdateSingle(pgResource_streetsPgResource, specFromArgs3(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7262,13 +6878,13 @@ export const plans = { }, updateStreetById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_streetsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7283,13 +6899,13 @@ export const plans = { }, updateStreetByName: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_streetsPgResource, { - name: args.get(['input', "name"]) - }) + const $update = pgUpdateSingle(pgResource_streetsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7304,11 +6920,11 @@ export const plans = { }, updateProperty: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_propertiesPgResource, specFromArgs4(args)) + const $update = pgUpdateSingle(pgResource_propertiesPgResource, specFromArgs4(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7323,13 +6939,13 @@ export const plans = { }, updatePropertyById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_propertiesPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_propertiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7344,11 +6960,11 @@ export const plans = { }, updateStreetProperty: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_street_propertyPgResource, specFromArgs5(args)) + const $update = pgUpdateSingle(pgResource_street_propertyPgResource, specFromArgs5(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7363,14 +6979,14 @@ export const plans = { }, updateStreetPropertyByStrIdAndPropId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_street_propertyPgResource, { - str_id: args.get(['input', "strId"]), - prop_id: args.get(['input', "propId"]) - }) + const $update = pgUpdateSingle(pgResource_street_propertyPgResource, { + str_id: args.getRaw(['input', "strId"]), + prop_id: args.getRaw(['input', "propId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7385,11 +7001,11 @@ export const plans = { }, updateBuilding: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_buildingsPgResource, specFromArgs6(args)) + const $update = pgUpdateSingle(pgResource_buildingsPgResource, specFromArgs6(args)); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7404,13 +7020,13 @@ export const plans = { }, updateBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(pgResource_buildingsPgResource, { - id: args.get(['input', "id"]) - }) + const $update = pgUpdateSingle(pgResource_buildingsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -7425,11 +7041,11 @@ export const plans = { }, deletePost: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postsPgResource, specFromArgs7(args)) + const $delete = pgDeleteSingle(pgResource_postsPgResource, specFromArgs7(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7444,13 +7060,13 @@ export const plans = { }, deletePostById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_postsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_postsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7465,11 +7081,11 @@ export const plans = { }, deleteOffer: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_offersPgResource, specFromArgs8(args)) + const $delete = pgDeleteSingle(pgResource_offersPgResource, specFromArgs8(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7484,13 +7100,13 @@ export const plans = { }, deleteOfferById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_offersPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_offersPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7505,11 +7121,11 @@ export const plans = { }, deleteStreet: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, specFromArgs9(args)) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, specFromArgs9(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7524,13 +7140,13 @@ export const plans = { }, deleteStreetById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7545,13 +7161,13 @@ export const plans = { }, deleteStreetByName: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_streetsPgResource, { - name: args.get(['input', "name"]) - }) + const $delete = pgDeleteSingle(pgResource_streetsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7566,11 +7182,11 @@ export const plans = { }, deleteProperty: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_propertiesPgResource, specFromArgs10(args)) + const $delete = pgDeleteSingle(pgResource_propertiesPgResource, specFromArgs10(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7585,13 +7201,13 @@ export const plans = { }, deletePropertyById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_propertiesPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_propertiesPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7606,11 +7222,11 @@ export const plans = { }, deleteStreetProperty: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_street_propertyPgResource, specFromArgs11(args)) + const $delete = pgDeleteSingle(pgResource_street_propertyPgResource, specFromArgs11(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7625,14 +7241,14 @@ export const plans = { }, deleteStreetPropertyByStrIdAndPropId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_street_propertyPgResource, { - str_id: args.get(['input', "strId"]), - prop_id: args.get(['input', "propId"]) - }) + const $delete = pgDeleteSingle(pgResource_street_propertyPgResource, { + str_id: args.getRaw(['input', "strId"]), + prop_id: args.getRaw(['input', "propId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7647,11 +7263,11 @@ export const plans = { }, deleteBuilding: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_buildingsPgResource, specFromArgs12(args)) + const $delete = pgDeleteSingle(pgResource_buildingsPgResource, specFromArgs12(args)); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7666,13 +7282,13 @@ export const plans = { }, deleteBuildingById: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(pgResource_buildingsPgResource, { - id: args.get(['input', "id"]) - }) + const $delete = pgDeleteSingle(pgResource_buildingsPgResource, { + id: args.getRaw(['input', "id"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -7689,7 +7305,8 @@ export const plans = { CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -7697,7 +7314,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7713,9 +7330,7 @@ export const plans = { return pgResource_postsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7726,35 +7341,34 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateOfferPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -7762,7 +7376,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7778,9 +7392,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7796,42 +7408,42 @@ export const plans = { }, CreateOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, offer: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, OfferInput: { - "__inputPlan": function OfferInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, postId: { - applyPlan($insert, val) { - $insert.set("post_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("post_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStreetPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -7839,7 +7451,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7855,9 +7467,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7868,42 +7478,42 @@ export const plans = { }, CreateStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, street: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StreetInput: { - "__inputPlan": function StreetInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePropertyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -7911,7 +7521,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -7927,9 +7537,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -7945,49 +7553,50 @@ export const plans = { }, CreatePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, property: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PropertyInput: { - "__inputPlan": function PropertyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, streetId: { - applyPlan($insert, val) { - $insert.set("street_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("street_id", bakedInputRuntime(schema, field.type, val)); + } }, nameOrNumber: { - applyPlan($insert, val) { - $insert.set("name_or_number", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name_or_number", bakedInputRuntime(schema, field.type, val)); + } } }, CreateStreetPropertyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -7995,7 +7604,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8011,9 +7620,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8034,49 +7641,50 @@ export const plans = { }, CreateStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, streetProperty: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, StreetPropertyInput: { - "__inputPlan": function StreetPropertyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, strId: { - applyPlan($insert, val) { - $insert.set("str_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str_id", bakedInputRuntime(schema, field.type, val)); + } }, propId: { - applyPlan($insert, val) { - $insert.set("prop_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("prop_id", bakedInputRuntime(schema, field.type, val)); + } }, currentOwner: { - applyPlan($insert, val) { - $insert.set("current_owner", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("current_owner", bakedInputRuntime(schema, field.type, val)); + } } }, CreateBuildingPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -8084,7 +7692,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8100,9 +7708,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8123,63 +7729,66 @@ export const plans = { }, CreateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, building: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, BuildingInput: { - "__inputPlan": function BuildingInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, propertyId: { - applyPlan($insert, val) { - $insert.set("property_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("property_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, floors: { - applyPlan($insert, val) { - $insert.set("floors", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("floors", bakedInputRuntime(schema, field.type, val)); + } }, isPrimary: { - applyPlan($insert, val) { - $insert.set("is_primary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_primary", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8187,7 +7796,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8203,9 +7812,7 @@ export const plans = { return pgResource_postsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8216,48 +7823,50 @@ export const plans = { }, UpdatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateOfferPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -8265,7 +7874,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8281,9 +7890,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8299,55 +7906,58 @@ export const plans = { }, UpdateOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, offerPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, OfferPatch: { - "__inputPlan": function OfferPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, postId: { - applyPlan($insert, val) { - $insert.set("post_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("post_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOfferByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, offerPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -8355,7 +7965,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8371,9 +7981,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8384,69 +7992,73 @@ export const plans = { }, UpdateStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StreetPatch: { - "__inputPlan": function StreetPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStreetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined, streetPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -8454,7 +8066,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8470,9 +8082,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8488,62 +8098,66 @@ export const plans = { }, UpdatePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, propertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PropertyPatch: { - "__inputPlan": function PropertyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, streetId: { - applyPlan($insert, val) { - $insert.set("street_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("street_id", bakedInputRuntime(schema, field.type, val)); + } }, nameOrNumber: { - applyPlan($insert, val) { - $insert.set("name_or_number", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name_or_number", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePropertyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, propertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateStreetPropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -8551,7 +8165,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8567,9 +8181,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8590,63 +8202,67 @@ export const plans = { }, UpdateStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, streetPropertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, StreetPropertyPatch: { - "__inputPlan": function StreetPropertyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, strId: { - applyPlan($insert, val) { - $insert.set("str_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str_id", bakedInputRuntime(schema, field.type, val)); + } }, propId: { - applyPlan($insert, val) { - $insert.set("prop_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("prop_id", bakedInputRuntime(schema, field.type, val)); + } }, currentOwner: { - applyPlan($insert, val) { - $insert.set("current_owner", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("current_owner", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateStreetPropertyByStrIdAndPropIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, strId: undefined, propId: undefined, streetPropertyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -8654,7 +8270,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8670,9 +8286,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8693,76 +8307,82 @@ export const plans = { }, UpdateBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, BuildingPatch: { - "__inputPlan": function BuildingPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, id: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, propertyId: { - applyPlan($insert, val) { - $insert.set("property_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("property_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, floors: { - applyPlan($insert, val) { - $insert.set("floors", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("floors", bakedInputRuntime(schema, field.type, val)); + } }, isPrimary: { - applyPlan($insert, val) { - $insert.set("is_primary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_primary", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined, buildingPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -8775,7 +8395,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8791,9 +8411,7 @@ export const plans = { return pgResource_postsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8804,16 +8422,16 @@ export const plans = { }, DeletePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePostByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8821,7 +8439,8 @@ export const plans = { DeleteOfferPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, offer($object) { return $object.get("result"); @@ -8834,7 +8453,7 @@ export const plans = { query() { return rootValue(); }, - offerEdge($mutation, args, info) { + offerEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8850,9 +8469,7 @@ export const plans = { return pgResource_offersPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OffersOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8868,16 +8485,16 @@ export const plans = { }, DeleteOfferInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteOfferByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -8885,7 +8502,8 @@ export const plans = { DeleteStreetPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, street($object) { return $object.get("result"); @@ -8898,7 +8516,7 @@ export const plans = { query() { return rootValue(); }, - streetEdge($mutation, args, info) { + streetEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8914,9 +8532,7 @@ export const plans = { return pgResource_streetsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8927,24 +8543,24 @@ export const plans = { }, DeleteStreetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStreetByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined }, DeleteStreetByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined @@ -8952,7 +8568,8 @@ export const plans = { DeletePropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, property($object) { return $object.get("result"); @@ -8965,7 +8582,7 @@ export const plans = { query() { return rootValue(); }, - propertyEdge($mutation, args, info) { + propertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -8981,9 +8598,7 @@ export const plans = { return pgResource_propertiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -8999,16 +8614,16 @@ export const plans = { }, DeletePropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeletePropertyByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined @@ -9016,7 +8631,8 @@ export const plans = { DeleteStreetPropertyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, streetProperty($object) { return $object.get("result"); @@ -9029,7 +8645,7 @@ export const plans = { query() { return rootValue(); }, - streetPropertyEdge($mutation, args, info) { + streetPropertyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9045,9 +8661,7 @@ export const plans = { return pgResource_street_propertyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("StreetPropertiesOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9068,16 +8682,16 @@ export const plans = { }, DeleteStreetPropertyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteStreetPropertyByStrIdAndPropIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, strId: undefined, @@ -9086,7 +8700,8 @@ export const plans = { DeleteBuildingPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, building($object) { return $object.get("result"); @@ -9099,7 +8714,7 @@ export const plans = { query() { return rootValue(); }, - buildingEdge($mutation, args, info) { + buildingEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -9115,9 +8730,7 @@ export const plans = { return pgResource_buildingsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BuildingsOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -9138,16 +8751,16 @@ export const plans = { }, DeleteBuildingInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, nodeId: undefined }, DeleteBuildingByIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, id: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v5/skipNodePlugin.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v5/skipNodePlugin.1.export.mjs index 0e8ce354c8..3c930b1878 100644 --- a/postgraphile/postgraphile/__tests__/schema/v5/skipNodePlugin.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v5/skipNodePlugin.1.export.mjs @@ -1,8 +1,7 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, makeGrafastSchema, object, rootValue, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, TYPES, assertPgClassSingleStep, domainOfCodec, enumCodec, listOfCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectFromRecords, pgSelectSingleFromRecord, pgUpdateSingle, rangeOfCodec, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, access, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, makeGrafastSchema, object, rootValue, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, GraphQLInt, GraphQLString, Kind, valueFromASTUntyped } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; const executor = new PgExecutor({ name: "main", context() { @@ -415,7 +414,7 @@ const pgCatalogTextArrayCodec = listOfCodec(TYPES.text, { name: "pgCatalogTextArray" }); const nonUpdatableViewIdentifier = sql.identifier("a", "non_updatable_view"); -const spec_nonUpdatableView = { +const nonUpdatableViewCodec = recordCodec({ name: "nonUpdatableView", identifier: nonUpdatableViewIdentifier, attributes: { @@ -443,10 +442,9 @@ const spec_nonUpdatableView = { } }, executor: executor -}; -const nonUpdatableViewCodec = recordCodec(spec_nonUpdatableView); +}); const inputsIdentifier = sql.identifier("a", "inputs"); -const spec_inputs = { +const inputsCodec = recordCodec({ name: "inputs", identifier: inputsIdentifier, attributes: { @@ -474,10 +472,9 @@ const spec_inputs = { } }, executor: executor -}; -const inputsCodec = recordCodec(spec_inputs); +}); const patchsIdentifier = sql.identifier("a", "patchs"); -const spec_patchs = { +const patchsCodec = recordCodec({ name: "patchs", identifier: patchsIdentifier, attributes: { @@ -505,10 +502,9 @@ const spec_patchs = { } }, executor: executor -}; -const patchsCodec = recordCodec(spec_patchs); +}); const reservedIdentifier = sql.identifier("a", "reserved"); -const spec_reserved = { +const reservedCodec = recordCodec({ name: "reserved", identifier: reservedIdentifier, attributes: { @@ -536,10 +532,9 @@ const spec_reserved = { } }, executor: executor -}; -const reservedCodec = recordCodec(spec_reserved); +}); const reservedPatchsIdentifier = sql.identifier("a", "reservedPatchs"); -const spec_reservedPatchs = { +const reservedPatchsCodec = recordCodec({ name: "reservedPatchs", identifier: reservedPatchsIdentifier, attributes: { @@ -567,10 +562,9 @@ const spec_reservedPatchs = { } }, executor: executor -}; -const reservedPatchsCodec = recordCodec(spec_reservedPatchs); +}); const reservedInputIdentifier = sql.identifier("a", "reserved_input"); -const spec_reservedInput = { +const reservedInputCodec = recordCodec({ name: "reservedInput", identifier: reservedInputIdentifier, attributes: { @@ -598,10 +592,9 @@ const spec_reservedInput = { } }, executor: executor -}; -const reservedInputCodec = recordCodec(spec_reservedInput); +}); const defaultValueIdentifier = sql.identifier("a", "default_value"); -const spec_defaultValue = { +const defaultValueCodec = recordCodec({ name: "defaultValue", identifier: defaultValueIdentifier, attributes: { @@ -638,10 +631,9 @@ const spec_defaultValue = { } }, executor: executor -}; -const defaultValueCodec = recordCodec(spec_defaultValue); +}); const foreignKeyIdentifier = sql.identifier("a", "foreign_key"); -const spec_foreignKey = { +const foreignKeyCodec = recordCodec({ name: "foreignKey", identifier: foreignKeyIdentifier, attributes: { @@ -687,10 +679,9 @@ const spec_foreignKey = { } }, executor: executor -}; -const foreignKeyCodec = recordCodec(spec_foreignKey); +}); const noPrimaryKeyIdentifier = sql.identifier("a", "no_primary_key"); -const spec_noPrimaryKey = { +const noPrimaryKeyCodec = recordCodec({ name: "noPrimaryKey", identifier: noPrimaryKeyIdentifier, attributes: { @@ -727,10 +718,9 @@ const spec_noPrimaryKey = { } }, executor: executor -}; -const noPrimaryKeyCodec = recordCodec(spec_noPrimaryKey); +}); const testviewIdentifier = sql.identifier("a", "testview"); -const spec_testview = { +const testviewCodec = recordCodec({ name: "testview", identifier: testviewIdentifier, attributes: { @@ -776,10 +766,9 @@ const spec_testview = { } }, executor: executor -}; -const testviewCodec = recordCodec(spec_testview); +}); const uniqueForeignKeyIdentifier = sql.identifier("a", "unique_foreign_key"); -const spec_uniqueForeignKey = { +const uniqueForeignKeyCodec = recordCodec({ name: "uniqueForeignKey", identifier: uniqueForeignKeyIdentifier, attributes: { @@ -817,10 +806,9 @@ const spec_uniqueForeignKey = { } }, executor: executor -}; -const uniqueForeignKeyCodec = recordCodec(spec_uniqueForeignKey); +}); const cMyTableIdentifier = sql.identifier("c", "my_table"); -const spec_cMyTable = { +const cMyTableCodec = recordCodec({ name: "cMyTable", identifier: cMyTableIdentifier, attributes: { @@ -857,10 +845,9 @@ const spec_cMyTable = { } }, executor: executor -}; -const cMyTableCodec = recordCodec(spec_cMyTable); +}); const cPersonSecretIdentifier = sql.identifier("c", "person_secret"); -const spec_cPersonSecret = { +const cPersonSecretCodec = recordCodec({ name: "cPersonSecret", identifier: cPersonSecretIdentifier, attributes: { @@ -900,8 +887,7 @@ const spec_cPersonSecret = { } }, executor: executor -}; -const cPersonSecretCodec = recordCodec(spec_cPersonSecret); +}); const cUnloggedIdentifier = sql.identifier("c", "unlogged"); const cUnloggedCodec = recordCodec({ name: "cUnlogged", @@ -943,7 +929,7 @@ const cUnloggedCodec = recordCodec({ executor: executor }); const viewTableIdentifier = sql.identifier("a", "view_table"); -const spec_viewTable = { +const viewTableCodec = recordCodec({ name: "viewTable", identifier: viewTableIdentifier, attributes: { @@ -989,10 +975,9 @@ const spec_viewTable = { } }, executor: executor -}; -const viewTableCodec = recordCodec(spec_viewTable); +}); const bUpdatableViewIdentifier = sql.identifier("b", "updatable_view"); -const spec_bUpdatableView = { +const bUpdatableViewCodec = recordCodec({ name: "bUpdatableView", identifier: bUpdatableViewIdentifier, attributes: { @@ -1048,10 +1033,9 @@ const spec_bUpdatableView = { } }, executor: executor -}; -const bUpdatableViewCodec = recordCodec(spec_bUpdatableView); +}); const cCompoundKeyIdentifier = sql.identifier("c", "compound_key"); -const spec_cCompoundKey = { +const cCompoundKeyCodec = recordCodec({ name: "cCompoundKey", identifier: cCompoundKeyIdentifier, attributes: { @@ -1097,10 +1081,9 @@ const spec_cCompoundKey = { } }, executor: executor -}; -const cCompoundKeyCodec = recordCodec(spec_cCompoundKey); +}); const similarTable1Identifier = sql.identifier("a", "similar_table_1"); -const spec_similarTable1 = { +const similarTable1Codec = recordCodec({ name: "similarTable1", identifier: similarTable1Identifier, attributes: { @@ -1155,10 +1138,9 @@ const spec_similarTable1 = { } }, executor: executor -}; -const similarTable1Codec = recordCodec(spec_similarTable1); +}); const similarTable2Identifier = sql.identifier("a", "similar_table_2"); -const spec_similarTable2 = { +const similarTable2Codec = recordCodec({ name: "similarTable2", identifier: similarTable2Identifier, attributes: { @@ -1213,10 +1195,9 @@ const spec_similarTable2 = { } }, executor: executor -}; -const similarTable2Codec = recordCodec(spec_similarTable2); +}); const cNullTestRecordIdentifier = sql.identifier("c", "null_test_record"); -const spec_cNullTestRecord = { +const cNullTestRecordCodec = recordCodec({ name: "cNullTestRecord", identifier: cNullTestRecordIdentifier, attributes: { @@ -1271,8 +1252,7 @@ const spec_cNullTestRecord = { } }, executor: executor -}; -const cNullTestRecordCodec = recordCodec(spec_cNullTestRecord); +}); const pgCatalogUuidArrayCodec = listOfCodec(TYPES.uuid, { extensions: { pg: { @@ -1289,7 +1269,7 @@ const pgCatalogUuidArrayCodec = listOfCodec(TYPES.uuid, { name: "pgCatalogUuidArray" }); const cEdgeCaseIdentifier = sql.identifier("c", "edge_case"); -const spec_cEdgeCase = { +const cEdgeCaseCodec = recordCodec({ name: "cEdgeCase", identifier: cEdgeCaseIdentifier, attributes: { @@ -1335,10 +1315,9 @@ const spec_cEdgeCase = { } }, executor: executor -}; -const cEdgeCaseCodec = recordCodec(spec_cEdgeCase); +}); const cLeftArmIdentifier = sql.identifier("c", "left_arm"); -const spec_cLeftArm = { +const cLeftArmCodec = recordCodec({ name: "cLeftArm", identifier: cLeftArmIdentifier, attributes: { @@ -1393,8 +1372,7 @@ const spec_cLeftArm = { } }, executor: executor -}; -const cLeftArmCodec = recordCodec(spec_cLeftArm); +}); const bJwtTokenIdentifier = sql.identifier("b", "jwt_token"); const bJwtTokenCodec = recordCodec({ name: "bJwtToken", @@ -1476,7 +1454,7 @@ const cNotNullTimestampCodec = domainOfCodec(TYPES.timestamptz, "cNotNullTimesta }, notNull: true }); -const spec_cIssue756 = { +const cIssue756Codec = recordCodec({ name: "cIssue756", identifier: cIssue756Identifier, attributes: { @@ -1513,8 +1491,7 @@ const spec_cIssue756 = { } }, executor: executor -}; -const cIssue756Codec = recordCodec(spec_cIssue756); +}); const bAuthPayloadIdentifier = sql.identifier("b", "auth_payload"); const bAuthPayloadCodec = recordCodec({ name: "bAuthPayload", @@ -1852,7 +1829,7 @@ const comptypeArrayCodec = listOfCodec(comptypeCodec, { description: undefined, name: "comptypeArray" }); -const spec_post = { +const postCodec = recordCodec({ name: "post", identifier: postIdentifier, attributes: { @@ -1925,8 +1902,7 @@ const spec_post = { } }, executor: executor -}; -const postCodec = recordCodec(spec_post); +}); const registryConfig_pgCodecs_CQueryOutputTwoRowsRecord_CQueryOutputTwoRowsRecord = recordCodec({ name: "CQueryOutputTwoRowsRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2086,7 +2062,7 @@ const bWrappedUrlCodec = recordCodec({ }, executor: executor }); -const spec_cPerson = { +const cPersonCodec = recordCodec({ name: "cPerson", identifier: cPersonIdentifier, attributes: { @@ -2208,8 +2184,7 @@ const spec_cPerson = { } }, executor: executor -}; -const cPersonCodec = recordCodec(spec_cPerson); +}); const registryConfig_pgCodecs_CPersonComputedFirstArgInoutOutRecord_CPersonComputedFirstArgInoutOutRecord = recordCodec({ name: "CPersonComputedFirstArgInoutOutRecord", identifier: sql`ANONYMOUS_TYPE_DO_NOT_REFERENCE`, @@ -2527,7 +2502,7 @@ const pgCatalogByteaArrayCodec = listOfCodec(TYPES.bytea, { description: undefined, name: "pgCatalogByteaArray" }); -const spec_bLists = { +const bListsCodec = recordCodec({ name: "bLists", identifier: bListsIdentifier, attributes: { @@ -2663,8 +2638,7 @@ const spec_bLists = { } }, executor: executor -}; -const bListsCodec = recordCodec(spec_bLists); +}); const bTypesIdentifier = sql.identifier("b", "types"); const anIntCodec = domainOfCodec(TYPES.int, "anInt", sql.identifier("a", "an_int"), { description: undefined, @@ -9095,553 +9069,96 @@ const resource_postPgResource = registry.pgResources["post"]; const resource_c_personPgResource = registry.pgResources["c_person"]; const resource_b_listsPgResource = registry.pgResources["b_lists"]; const resource_b_typesPgResource = registry.pgResources["b_types"]; -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_c_current_user_id = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_c_current_user_id = (args, path = []) => argDetailsSimple_c_current_user_id.map(details => makeArg(path, args, details)); const resource_c_current_user_idPgResource = registry.pgResources["c_current_user_id"]; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_c_func_out = []; +const makeArgs_c_func_out = (args, path = []) => argDetailsSimple_c_func_out.map(details => makeArg(path, args, details)); const resource_c_func_outPgResource = registry.pgResources["c_func_out"]; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_c_func_out_setof = []; +const makeArgs_c_func_out_setof = (args, path = []) => argDetailsSimple_c_func_out_setof.map(details => makeArg(path, args, details)); const resource_c_func_out_setofPgResource = registry.pgResources["c_func_out_setof"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs3(args); + const selectArgs = makeArgs_c_func_out_setof(args); return resource_c_func_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_c_func_out_unnamed = []; +const makeArgs_c_func_out_unnamed = (args, path = []) => argDetailsSimple_c_func_out_unnamed.map(details => makeArg(path, args, details)); const resource_c_func_out_unnamedPgResource = registry.pgResources["c_func_out_unnamed"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple_c_no_args_query = []; +const makeArgs_c_no_args_query = (args, path = []) => argDetailsSimple_c_no_args_query.map(details => makeArg(path, args, details)); const resource_c_no_args_queryPgResource = registry.pgResources["c_no_args_query"]; -const argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple_query_interval_set = []; +const makeArgs_query_interval_set = (args, path = []) => argDetailsSimple_query_interval_set.map(details => makeArg(path, args, details)); const resource_query_interval_setPgResource = registry.pgResources["query_interval_set"]; const getSelectPlanFromParentAndArgs2 = ($root, args, _info) => { - const selectArgs = makeArgs6(args); + const selectArgs = makeArgs_query_interval_set(args); return resource_query_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple7 = []; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 argDetailsSimple_static_big_integer = []; +const makeArgs_static_big_integer = (args, path = []) => argDetailsSimple_static_big_integer.map(details => makeArg(path, args, details)); const resource_static_big_integerPgResource = registry.pgResources["static_big_integer"]; const getSelectPlanFromParentAndArgs3 = ($root, args, _info) => { - const selectArgs = makeArgs7(args); + const selectArgs = makeArgs_static_big_integer(args); return resource_static_big_integerPgResource.execute(selectArgs); }; -const argDetailsSimple8 = [{ +const argDetailsSimple_c_func_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 makeArgs_c_func_in_out = (args, path = []) => argDetailsSimple_c_func_in_out.map(details => makeArg(path, args, details)); const resource_c_func_in_outPgResource = registry.pgResources["c_func_in_out"]; -const argDetailsSimple9 = [{ +const argDetailsSimple_c_func_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_c_func_returns_table_one_col = (args, path = []) => argDetailsSimple_c_func_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_c_func_returns_table_one_colPgResource = registry.pgResources["c_func_returns_table_one_col"]; const getSelectPlanFromParentAndArgs4 = ($root, args, _info) => { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_c_func_returns_table_one_col(args); return resource_c_func_returns_table_one_colPgResource.execute(selectArgs); }; -const argDetailsSimple10 = [{ +const argDetailsSimple_c_json_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs10 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple10[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 makeArgs_c_json_identity = (args, path = []) => argDetailsSimple_c_json_identity.map(details => makeArg(path, args, details)); const resource_c_json_identityPgResource = registry.pgResources["c_json_identity"]; -const argDetailsSimple11 = [{ +const argDetailsSimple_c_jsonb_identity = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs11 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple11[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 makeArgs_c_jsonb_identity = (args, path = []) => argDetailsSimple_c_jsonb_identity.map(details => makeArg(path, args, details)); const resource_c_jsonb_identityPgResource = registry.pgResources["c_jsonb_identity"]; -const argDetailsSimple12 = [{ +const argDetailsSimple_add_1_query = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -9654,52 +9171,9 @@ const argDetailsSimple12 = [{ required: true, fetcher: null }]; -const makeArgs12 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple12[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_query = (args, path = []) => argDetailsSimple_add_1_query.map(details => makeArg(path, args, details)); const resource_add_1_queryPgResource = registry.pgResources["add_1_query"]; -const argDetailsSimple13 = [{ +const argDetailsSimple_add_2_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9712,52 +9186,9 @@ const argDetailsSimple13 = [{ required: false, fetcher: null }]; -const makeArgs13 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple13[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 makeArgs_add_2_query = (args, path = []) => argDetailsSimple_add_2_query.map(details => makeArg(path, args, details)); const resource_add_2_queryPgResource = registry.pgResources["add_2_query"]; -const argDetailsSimple14 = [{ +const argDetailsSimple_add_3_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -9770,52 +9201,9 @@ const argDetailsSimple14 = [{ required: true, fetcher: null }]; -const makeArgs14 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple14[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_query = (args, path = []) => argDetailsSimple_add_3_query.map(details => makeArg(path, args, details)); const resource_add_3_queryPgResource = registry.pgResources["add_3_query"]; -const argDetailsSimple15 = [{ +const argDetailsSimple_add_4_query = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -9828,52 +9216,9 @@ const argDetailsSimple15 = [{ required: false, fetcher: null }]; -const makeArgs15 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple15[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_query = (args, path = []) => argDetailsSimple_add_4_query.map(details => makeArg(path, args, details)); const resource_add_4_queryPgResource = registry.pgResources["add_4_query"]; -const argDetailsSimple16 = [{ +const argDetailsSimple_c_func_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -9886,244 +9231,29 @@ const argDetailsSimple16 = [{ required: true, fetcher: null }]; -const makeArgs16 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple16[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 makeArgs_c_func_in_inout = (args, path = []) => argDetailsSimple_c_func_in_inout.map(details => makeArg(path, args, details)); const resource_c_func_in_inoutPgResource = registry.pgResources["c_func_in_inout"]; -const argDetailsSimple17 = []; -const makeArgs17 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple17[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 argDetailsSimple_c_func_out_out = []; +const makeArgs_c_func_out_out = (args, path = []) => argDetailsSimple_c_func_out_out.map(details => makeArg(path, args, details)); const resource_c_func_out_outPgResource = registry.pgResources["c_func_out_out"]; -const argDetailsSimple18 = []; -const makeArgs18 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple18[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 argDetailsSimple_c_func_out_out_setof = []; +const makeArgs_c_func_out_out_setof = (args, path = []) => argDetailsSimple_c_func_out_out_setof.map(details => makeArg(path, args, details)); const resource_c_func_out_out_setofPgResource = registry.pgResources["c_func_out_out_setof"]; const getSelectPlanFromParentAndArgs5 = ($root, args, _info) => { - const selectArgs = makeArgs18(args); + const selectArgs = makeArgs_c_func_out_out_setof(args); return resource_c_func_out_out_setofPgResource.execute(selectArgs); }; -const argDetailsSimple19 = []; -const makeArgs19 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple19[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 argDetailsSimple_c_func_out_out_unnamed = []; +const makeArgs_c_func_out_out_unnamed = (args, path = []) => argDetailsSimple_c_func_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_c_func_out_out_unnamedPgResource = registry.pgResources["c_func_out_out_unnamed"]; -const argDetailsSimple20 = []; -const makeArgs20 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple20[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 argDetailsSimple_c_search_test_summaries = []; +const makeArgs_c_search_test_summaries = (args, path = []) => argDetailsSimple_c_search_test_summaries.map(details => makeArg(path, args, details)); const resource_c_search_test_summariesPgResource = registry.pgResources["c_search_test_summaries"]; const getSelectPlanFromParentAndArgs6 = ($root, args, _info) => { - const selectArgs = makeArgs20(args); + const selectArgs = makeArgs_c_search_test_summaries(args); return resource_c_search_test_summariesPgResource.execute(selectArgs); }; -const argDetailsSimple21 = [{ +const argDetailsSimple_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10142,52 +9272,9 @@ const argDetailsSimple21 = [{ required: false, fetcher: null }]; -const makeArgs21 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple21[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_1PgResource = registry.pgResources["optional_missing_middle_1"]; -const argDetailsSimple22 = [{ +const argDetailsSimple_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10206,52 +9293,9 @@ const argDetailsSimple22 = [{ required: false, fetcher: null }]; -const makeArgs22 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple22[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 makeArgs_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_2PgResource = registry.pgResources["optional_missing_middle_2"]; -const argDetailsSimple23 = [{ +const argDetailsSimple_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10270,52 +9314,9 @@ const argDetailsSimple23 = [{ required: false, fetcher: null }]; -const makeArgs23 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple23[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_3PgResource = registry.pgResources["optional_missing_middle_3"]; -const argDetailsSimple24 = [{ +const argDetailsSimple_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -10334,52 +9335,9 @@ const argDetailsSimple24 = [{ required: false, fetcher: null }]; -const makeArgs24 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple24[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_4PgResource = registry.pgResources["optional_missing_middle_4"]; -const argDetailsSimple25 = [{ +const argDetailsSimple_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -10398,98 +9356,12 @@ const argDetailsSimple25 = [{ required: false, fetcher: null }]; -const makeArgs25 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple25[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_optional_missing_middle_5PgResource = registry.pgResources["optional_missing_middle_5"]; -const argDetailsSimple26 = []; -const makeArgs26 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple26[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 argDetailsSimple_c_func_out_unnamed_out_out_unnamed = []; +const makeArgs_c_func_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_c_func_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_c_func_out_unnamed_out_out_unnamedPgResource = registry.pgResources["c_func_out_unnamed_out_out_unnamed"]; -const argDetailsSimple27 = [{ +const argDetailsSimple_c_int_set_query = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -10508,56 +9380,13 @@ const argDetailsSimple27 = [{ required: true, fetcher: null }]; -const makeArgs27 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple27[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 makeArgs_c_int_set_query = (args, path = []) => argDetailsSimple_c_int_set_query.map(details => makeArg(path, args, details)); const resource_c_int_set_queryPgResource = registry.pgResources["c_int_set_query"]; const getSelectPlanFromParentAndArgs7 = ($root, args, _info) => { - const selectArgs = makeArgs27(args); + const selectArgs = makeArgs_c_int_set_query(args); return resource_c_int_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple28 = [{ +const argDetailsSimple_c_func_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -10576,194 +9405,22 @@ const argDetailsSimple28 = [{ required: false, fetcher: null }]; -const makeArgs28 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple28[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 makeArgs_c_func_returns_table_multi_col = (args, path = []) => argDetailsSimple_c_func_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_c_func_returns_table_multi_colPgResource = registry.pgResources["c_func_returns_table_multi_col"]; const getSelectPlanFromParentAndArgs8 = ($root, args, _info) => { - const selectArgs = makeArgs28(args); + const selectArgs = makeArgs_c_func_returns_table_multi_col(args); return resource_c_func_returns_table_multi_colPgResource.execute(selectArgs); }; -const argDetailsSimple29 = []; -const makeArgs29 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple29[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 argDetailsSimple_query_interval_array = []; +const makeArgs_query_interval_array = (args, path = []) => argDetailsSimple_query_interval_array.map(details => makeArg(path, args, details)); const resource_query_interval_arrayPgResource = registry.pgResources["query_interval_array"]; -const argDetailsSimple30 = []; -const makeArgs30 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple30[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 argDetailsSimple_query_text_array = []; +const makeArgs_query_text_array = (args, path = []) => argDetailsSimple_query_text_array.map(details => makeArg(path, args, details)); const resource_query_text_arrayPgResource = registry.pgResources["query_text_array"]; -const argDetailsSimple31 = []; -const makeArgs31 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple31[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 argDetailsSimple_c_return_table_without_grants = []; +const makeArgs_c_return_table_without_grants = (args, path = []) => argDetailsSimple_c_return_table_without_grants.map(details => makeArg(path, args, details)); const resource_c_return_table_without_grantsPgResource = registry.pgResources["c_return_table_without_grants"]; -const argDetailsSimple32 = [{ +const argDetailsSimple_c_types_query = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -10800,156 +9457,27 @@ const argDetailsSimple32 = [{ required: true, fetcher: null }]; -const makeArgs32 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple32[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 makeArgs_c_types_query = (args, path = []) => argDetailsSimple_c_types_query.map(details => makeArg(path, args, details)); const resource_c_types_queryPgResource = registry.pgResources["c_types_query"]; -const argDetailsSimple33 = [{ +const argDetailsSimple_c_compound_type_computed_field = [{ graphqlArgName: "compoundType", postgresArgName: "compound_type", pgCodec: cCompoundTypeCodec, required: true, fetcher: null }]; -const makeArgs33 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple33[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 makeArgs_c_compound_type_computed_field = (args, path = []) => argDetailsSimple_c_compound_type_computed_field.map(details => makeArg(path, args, details)); const resource_c_compound_type_computed_fieldPgResource = registry.pgResources["c_compound_type_computed_field"]; -const argDetailsSimple34 = [{ +const argDetailsSimple_c_func_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs34 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple34[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 makeArgs_c_func_out_out_compound_type = (args, path = []) => argDetailsSimple_c_func_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_c_func_out_out_compound_typePgResource = registry.pgResources["c_func_out_out_compound_type"]; -const argDetailsSimple35 = [{ +const argDetailsSimple_c_query_output_two_rows = [{ graphqlArgName: "leftArmId", postgresArgName: "left_arm_id", pgCodec: TYPES.int, @@ -10968,310 +9496,52 @@ const argDetailsSimple35 = [{ required: true, fetcher: null }]; -const makeArgs35 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple35[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 makeArgs_c_query_output_two_rows = (args, path = []) => argDetailsSimple_c_query_output_two_rows.map(details => makeArg(path, args, details)); const resource_c_query_output_two_rowsPgResource = registry.pgResources["c_query_output_two_rows"]; -const argDetailsSimple36 = []; -const makeArgs36 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple36[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 argDetailsSimple_c_compound_type_set_query = []; +const makeArgs_c_compound_type_set_query = (args, path = []) => argDetailsSimple_c_compound_type_set_query.map(details => makeArg(path, args, details)); const resource_c_compound_type_set_queryPgResource = registry.pgResources["c_compound_type_set_query"]; const getSelectPlanFromParentAndArgs9 = ($root, args, _info) => { - const selectArgs = makeArgs36(args); + const selectArgs = makeArgs_c_compound_type_set_query(args); return resource_c_compound_type_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple37 = [{ +const argDetailsSimple_b_compound_type_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: cCompoundTypeCodec, required: true, fetcher: null }]; -const makeArgs37 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple37[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 makeArgs_b_compound_type_query = (args, path = []) => argDetailsSimple_b_compound_type_query.map(details => makeArg(path, args, details)); const resource_b_compound_type_queryPgResource = registry.pgResources["b_compound_type_query"]; -const argDetailsSimple38 = [{ +const argDetailsSimple_c_table_query = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs38 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple38[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 makeArgs_c_table_query = (args, path = []) => argDetailsSimple_c_table_query.map(details => makeArg(path, args, details)); const resource_c_table_queryPgResource = registry.pgResources["c_table_query"]; -const argDetailsSimple39 = [{ +const argDetailsSimple_query_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: cCompoundTypeCodec, required: true, fetcher: null }]; -const makeArgs39 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple39[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 makeArgs_query_compound_type_array = (args, path = []) => argDetailsSimple_query_compound_type_array.map(details => makeArg(path, args, details)); const resource_query_compound_type_arrayPgResource = registry.pgResources["query_compound_type_array"]; -const argDetailsSimple40 = [{ +const argDetailsSimple_b_compound_type_array_query = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: cCompoundTypeCodec, required: true, fetcher: null }]; -const makeArgs40 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple40[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 makeArgs_b_compound_type_array_query = (args, path = []) => argDetailsSimple_b_compound_type_array_query.map(details => makeArg(path, args, details)); const resource_b_compound_type_array_queryPgResource = registry.pgResources["b_compound_type_array_query"]; -const argDetailsSimple41 = [{ +const argDetailsSimple_c_func_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11284,52 +9554,9 @@ const argDetailsSimple41 = [{ required: true, fetcher: null }]; -const makeArgs41 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple41[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 makeArgs_c_func_out_complex = (args, path = []) => argDetailsSimple_c_func_out_complex.map(details => makeArg(path, args, details)); const resource_c_func_out_complexPgResource = registry.pgResources["c_func_out_complex"]; -const argDetailsSimple42 = [{ +const argDetailsSimple_c_func_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -11342,470 +9569,66 @@ const argDetailsSimple42 = [{ required: true, fetcher: null }]; -const makeArgs42 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple42[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 makeArgs_c_func_out_complex_setof = (args, path = []) => argDetailsSimple_c_func_out_complex_setof.map(details => makeArg(path, args, details)); const resource_c_func_out_complex_setofPgResource = registry.pgResources["c_func_out_complex_setof"]; const getSelectPlanFromParentAndArgs10 = ($root, args, _info) => { - const selectArgs = makeArgs42(args); + const selectArgs = makeArgs_c_func_out_complex_setof(args); return resource_c_func_out_complex_setofPgResource.execute(selectArgs); }; -const argDetailsSimple43 = []; -const makeArgs43 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple43[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 argDetailsSimple_c_badly_behaved_function = []; +const makeArgs_c_badly_behaved_function = (args, path = []) => argDetailsSimple_c_badly_behaved_function.map(details => makeArg(path, args, details)); const resource_c_badly_behaved_functionPgResource = registry.pgResources["c_badly_behaved_function"]; const getSelectPlanFromParentAndArgs11 = ($root, args, _info) => { - const selectArgs = makeArgs43(args); + const selectArgs = makeArgs_c_badly_behaved_function(args); return resource_c_badly_behaved_functionPgResource.execute(selectArgs); }; -const argDetailsSimple44 = []; -const makeArgs44 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple44[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 argDetailsSimple_c_func_out_table = []; +const makeArgs_c_func_out_table = (args, path = []) => argDetailsSimple_c_func_out_table.map(details => makeArg(path, args, details)); const resource_c_func_out_tablePgResource = registry.pgResources["c_func_out_table"]; -const argDetailsSimple45 = []; -const makeArgs45 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple45[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 argDetailsSimple_c_func_out_table_setof = []; +const makeArgs_c_func_out_table_setof = (args, path = []) => argDetailsSimple_c_func_out_table_setof.map(details => makeArg(path, args, details)); const resource_c_func_out_table_setofPgResource = registry.pgResources["c_func_out_table_setof"]; const getSelectPlanFromParentAndArgs12 = ($root, args, _info) => { - const selectArgs = makeArgs45(args); + const selectArgs = makeArgs_c_func_out_table_setof(args); return resource_c_func_out_table_setofPgResource.execute(selectArgs); }; -const argDetailsSimple46 = []; -const makeArgs46 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple46[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 argDetailsSimple_c_table_set_query = []; +const makeArgs_c_table_set_query = (args, path = []) => argDetailsSimple_c_table_set_query.map(details => makeArg(path, args, details)); const resource_c_table_set_queryPgResource = registry.pgResources["c_table_set_query"]; const getSelectPlanFromParentAndArgs13 = ($root, args, _info) => { - const selectArgs = makeArgs46(args); + const selectArgs = makeArgs_c_table_set_query(args); return resource_c_table_set_queryPgResource.execute(selectArgs); }; -const argDetailsSimple47 = []; -const makeArgs47 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple47[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 argDetailsSimple_c_table_set_query_plpgsql = []; +const makeArgs_c_table_set_query_plpgsql = (args, path = []) => argDetailsSimple_c_table_set_query_plpgsql.map(details => makeArg(path, args, details)); const resource_c_table_set_query_plpgsqlPgResource = registry.pgResources["c_table_set_query_plpgsql"]; const getSelectPlanFromParentAndArgs14 = ($root, args, _info) => { - const selectArgs = makeArgs47(args); + const selectArgs = makeArgs_c_table_set_query_plpgsql(args); return resource_c_table_set_query_plpgsqlPgResource.execute(selectArgs); }; -const argDetailsSimple48 = []; -const makeArgs48 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple48[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 argDetailsSimple_b_type_function_connection = []; +const makeArgs_b_type_function_connection = (args, path = []) => argDetailsSimple_b_type_function_connection.map(details => makeArg(path, args, details)); const resource_b_type_function_connectionPgResource = registry.pgResources["b_type_function_connection"]; const getSelectPlanFromParentAndArgs15 = ($root, args, _info) => { - const selectArgs = makeArgs48(args); + const selectArgs = makeArgs_b_type_function_connection(args); return resource_b_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple49 = [{ +const argDetailsSimple_b_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs49 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple49[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 makeArgs_b_type_function = (args, path = []) => argDetailsSimple_b_type_function.map(details => makeArg(path, args, details)); const resource_b_type_functionPgResource = registry.pgResources["b_type_function"]; -const argDetailsSimple50 = []; -const makeArgs50 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple50[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 argDetailsSimple_b_type_function_list = []; +const makeArgs_b_type_function_list = (args, path = []) => argDetailsSimple_b_type_function_list.map(details => makeArg(path, args, details)); const resource_b_type_function_listPgResource = registry.pgResources["b_type_function_list"]; const resource_non_updatable_viewPgResource = registry.pgResources["non_updatable_view"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} const resource_foreign_keyPgResource = registry.pgResources["foreign_key"]; const resource_testviewPgResource = registry.pgResources["testview"]; const resource_b_updatable_viewPgResource = registry.pgResources["b_updatable_view"]; @@ -11813,347 +9636,46 @@ const resource_c_edge_casePgResource = registry.pgResources["c_edge_case"]; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple51 = []; -const makeArgs51 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple51[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 argDetailsSimple_c_person_computed_out = []; +const makeArgs_c_person_computed_out = (args, path = []) => argDetailsSimple_c_person_computed_out.map(details => makeArg(path, args, details)); const resource_c_person_computed_outPgResource = registry.pgResources["c_person_computed_out"]; -const argDetailsSimple52 = []; -const makeArgs52 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple52[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 argDetailsSimple_c_person_first_name = []; +const makeArgs_c_person_first_name = (args, path = []) => argDetailsSimple_c_person_first_name.map(details => makeArg(path, args, details)); const resource_c_person_first_namePgResource = registry.pgResources["c_person_first_name"]; -const argDetailsSimple53 = []; -const makeArgs53 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple53[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 argDetailsSimple_c_person_computed_out_out = []; +const makeArgs_c_person_computed_out_out = (args, path = []) => argDetailsSimple_c_person_computed_out_out.map(details => makeArg(path, args, details)); const resource_c_person_computed_out_outPgResource = registry.pgResources["c_person_computed_out_out"]; -const argDetailsSimple54 = [{ +const argDetailsSimple_c_person_computed_inout = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs54 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple54[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 makeArgs_c_person_computed_inout = (args, path = []) => argDetailsSimple_c_person_computed_inout.map(details => makeArg(path, args, details)); const resource_c_person_computed_inoutPgResource = registry.pgResources["c_person_computed_inout"]; -const argDetailsSimple55 = [{ +const argDetailsSimple_c_person_computed_inout_out = [{ graphqlArgName: "ino", postgresArgName: "ino", pgCodec: TYPES.text, required: true, fetcher: null }]; -const makeArgs55 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple55[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 makeArgs_c_person_computed_inout_out = (args, path = []) => argDetailsSimple_c_person_computed_inout_out.map(details => makeArg(path, args, details)); const resource_c_person_computed_inout_outPgResource = registry.pgResources["c_person_computed_inout_out"]; -const argDetailsSimple56 = [{ +const argDetailsSimple_c_person_exists = [{ graphqlArgName: "email", postgresArgName: "email", pgCodec: bEmailCodec, required: true, fetcher: null }]; -const makeArgs56 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple56[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 makeArgs_c_person_exists = (args, path = []) => argDetailsSimple_c_person_exists.map(details => makeArg(path, args, details)); const resource_c_person_existsPgResource = registry.pgResources["c_person_exists"]; -const argDetailsSimple57 = []; -const makeArgs57 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple57[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 argDetailsSimple_c_person_computed_first_arg_inout_out = []; +const makeArgs_c_person_computed_first_arg_inout_out = (args, path = []) => argDetailsSimple_c_person_computed_first_arg_inout_out.map(details => makeArg(path, args, details)); const resource_c_person_computed_first_arg_inout_outPgResource = registry.pgResources["c_person_computed_first_arg_inout_out"]; -const argDetailsSimple58 = [{ +const argDetailsSimple_c_person_optional_missing_middle_1 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12172,52 +9694,9 @@ const argDetailsSimple58 = [{ required: false, fetcher: null }]; -const makeArgs58 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple58[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_c_person_optional_missing_middle_1 = (args, path = []) => argDetailsSimple_c_person_optional_missing_middle_1.map(details => makeArg(path, args, details)); const resource_c_person_optional_missing_middle_1PgResource = registry.pgResources["c_person_optional_missing_middle_1"]; -const argDetailsSimple59 = [{ +const argDetailsSimple_c_person_optional_missing_middle_2 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12236,52 +9715,9 @@ const argDetailsSimple59 = [{ required: false, fetcher: null }]; -const makeArgs59 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple59[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 makeArgs_c_person_optional_missing_middle_2 = (args, path = []) => argDetailsSimple_c_person_optional_missing_middle_2.map(details => makeArg(path, args, details)); const resource_c_person_optional_missing_middle_2PgResource = registry.pgResources["c_person_optional_missing_middle_2"]; -const argDetailsSimple60 = [{ +const argDetailsSimple_c_person_optional_missing_middle_3 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12300,52 +9736,9 @@ const argDetailsSimple60 = [{ required: false, fetcher: null }]; -const makeArgs60 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple60[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_c_person_optional_missing_middle_3 = (args, path = []) => argDetailsSimple_c_person_optional_missing_middle_3.map(details => makeArg(path, args, details)); const resource_c_person_optional_missing_middle_3PgResource = registry.pgResources["c_person_optional_missing_middle_3"]; -const argDetailsSimple61 = [{ +const argDetailsSimple_c_person_optional_missing_middle_4 = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -12364,52 +9757,9 @@ const argDetailsSimple61 = [{ required: false, fetcher: null }]; -const makeArgs61 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple61[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_c_person_optional_missing_middle_4 = (args, path = []) => argDetailsSimple_c_person_optional_missing_middle_4.map(details => makeArg(path, args, details)); const resource_c_person_optional_missing_middle_4PgResource = registry.pgResources["c_person_optional_missing_middle_4"]; -const argDetailsSimple62 = [{ +const argDetailsSimple_c_person_optional_missing_middle_5 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12428,52 +9778,9 @@ const argDetailsSimple62 = [{ required: false, fetcher: null }]; -const makeArgs62 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple62[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 3 - 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 makeArgs_c_person_optional_missing_middle_5 = (args, path = []) => argDetailsSimple_c_person_optional_missing_middle_5.map(details => makeArg(path, args, details)); const resource_c_person_optional_missing_middle_5PgResource = registry.pgResources["c_person_optional_missing_middle_5"]; -const argDetailsSimple63 = [{ +const argDetailsSimple_c_person_computed_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -12486,194 +9793,22 @@ const argDetailsSimple63 = [{ required: true, fetcher: null }]; -const makeArgs63 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple63[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 makeArgs_c_person_computed_complex = (args, path = []) => argDetailsSimple_c_person_computed_complex.map(details => makeArg(path, args, details)); const resource_c_person_computed_complexPgResource = registry.pgResources["c_person_computed_complex"]; -const argDetailsSimple64 = []; -const makeArgs64 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple64[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 argDetailsSimple_c_person_first_post = []; +const makeArgs_c_person_first_post = (args, path = []) => argDetailsSimple_c_person_first_post.map(details => makeArg(path, args, details)); const resource_c_person_first_postPgResource = registry.pgResources["c_person_first_post"]; -const argDetailsSimple65 = []; -const makeArgs65 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple65[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 argDetailsSimple_c_person_computed_first_arg_inout = []; +const makeArgs_c_person_computed_first_arg_inout = (args, path = []) => argDetailsSimple_c_person_computed_first_arg_inout.map(details => makeArg(path, args, details)); const resource_c_person_computed_first_arg_inoutPgResource = registry.pgResources["c_person_computed_first_arg_inout"]; -const argDetailsSimple66 = []; -const makeArgs66 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple66[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 argDetailsSimple_c_person_friends = []; +const makeArgs_c_person_friends = (args, path = []) => argDetailsSimple_c_person_friends.map(details => makeArg(path, args, details)); const resource_c_person_friendsPgResource = registry.pgResources["c_person_friends"]; const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs66(args); + const extraSelectArgs = makeArgs_c_person_friends(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -12688,82 +9823,33 @@ const getSelectPlanFromParentAndArgs16 = ($in, args, _info) => { if (resource_c_person_friendsPgResource.isUnique && !resource_c_person_friendsPgResource.codec.attributes && typeof resource_c_person_friendsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_friendsPgResource.codec, undefined)`${resource_c_person_friendsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_friendsPgResource.from, resource_c_person_friendsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_friendsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_friendsPgResource.execute(selectArgs); }; -const argDetailsSimple67 = []; -const makeArgs67 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple67[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 argDetailsSimple_c_person_type_function_connection = []; +const makeArgs_c_person_type_function_connection = (args, path = []) => argDetailsSimple_c_person_type_function_connection.map(details => makeArg(path, args, details)); const resource_c_person_type_function_connectionPgResource = registry.pgResources["c_person_type_function_connection"]; const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs67(args); + const extraSelectArgs = makeArgs_c_person_type_function_connection(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -12778,311 +9864,47 @@ const getSelectPlanFromParentAndArgs17 = ($in, args, _info) => { if (resource_c_person_type_function_connectionPgResource.isUnique && !resource_c_person_type_function_connectionPgResource.codec.attributes && typeof resource_c_person_type_function_connectionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_type_function_connectionPgResource.codec, undefined)`${resource_c_person_type_function_connectionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_type_function_connectionPgResource.from, resource_c_person_type_function_connectionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_type_function_connectionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_type_function_connectionPgResource.execute(selectArgs); }; -const argDetailsSimple68 = [{ +const argDetailsSimple_c_person_type_function = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs68 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple68[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 makeArgs_c_person_type_function = (args, path = []) => argDetailsSimple_c_person_type_function.map(details => makeArg(path, args, details)); const resource_c_person_type_functionPgResource = registry.pgResources["c_person_type_function"]; -const argDetailsSimple69 = []; -const makeArgs69 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple69[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 argDetailsSimple_c_person_type_function_list = []; +const makeArgs_c_person_type_function_list = (args, path = []) => argDetailsSimple_c_person_type_function_list.map(details => makeArg(path, args, details)); const resource_c_person_type_function_listPgResource = registry.pgResources["c_person_type_function_list"]; const resource_frmcdc_bWrappedUrlPgResource = registry.pgResources["frmcdc_bWrappedUrl"]; const resource_frmcdc_cCompoundTypePgResource = registry.pgResources["frmcdc_cCompoundType"]; -const argDetailsSimple70 = []; -const makeArgs70 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple70[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 argDetailsSimple71 = []; -const makeArgs71 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple71[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 argDetailsSimple72 = []; -const makeArgs72 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple72[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 argDetailsSimple73 = []; -const makeArgs73 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple73[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 argDetailsSimple_c_compound_type_computed_field2 = []; +const makeArgs_c_compound_type_computed_field2 = (args, path = []) => argDetailsSimple_c_compound_type_computed_field2.map(details => makeArg(path, args, details)); +const argDetailsSimple_b_compound_type_query2 = []; +const makeArgs_b_compound_type_query2 = (args, path = []) => argDetailsSimple_b_compound_type_query2.map(details => makeArg(path, args, details)); +const argDetailsSimple_query_compound_type_array2 = []; +const makeArgs_query_compound_type_array2 = (args, path = []) => argDetailsSimple_query_compound_type_array2.map(details => makeArg(path, args, details)); +const argDetailsSimple_b_compound_type_array_query2 = []; +const makeArgs_b_compound_type_array_query2 = (args, path = []) => argDetailsSimple_b_compound_type_array_query2.map(details => makeArg(path, args, details)); function UUIDSerialize(value) { return "" + value; } @@ -13092,57 +9914,14 @@ const coerce = string => { } return string; }; -const argDetailsSimple74 = []; -const makeArgs74 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple74[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 argDetailsSimple_post_computed_interval_set = []; +const makeArgs_post_computed_interval_set = (args, path = []) => argDetailsSimple_post_computed_interval_set.map(details => makeArg(path, args, details)); const resource_post_computed_interval_setPgResource = registry.pgResources["post_computed_interval_set"]; const getSelectPlanFromParentAndArgs18 = ($in, args, _info) => { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs74(args); + const extraSelectArgs = makeArgs_post_computed_interval_set(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -13157,228 +9936,50 @@ const getSelectPlanFromParentAndArgs18 = ($in, args, _info) => { if (resource_post_computed_interval_setPgResource.isUnique && !resource_post_computed_interval_setPgResource.codec.attributes && typeof resource_post_computed_interval_setPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${resource_post_computed_interval_setPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_setPgResource.from, resource_post_computed_interval_setPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_setPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_setPgResource.execute(selectArgs); }; -const argDetailsSimple75 = []; -const makeArgs75 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple75[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 argDetailsSimple_post_computed_interval_array = []; +const makeArgs_post_computed_interval_array = (args, path = []) => argDetailsSimple_post_computed_interval_array.map(details => makeArg(path, args, details)); const resource_post_computed_interval_arrayPgResource = registry.pgResources["post_computed_interval_array"]; -const argDetailsSimple76 = []; -const makeArgs76 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple76[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 argDetailsSimple_post_computed_text_array = []; +const makeArgs_post_computed_text_array = (args, path = []) => argDetailsSimple_post_computed_text_array.map(details => makeArg(path, args, details)); const resource_post_computed_text_arrayPgResource = registry.pgResources["post_computed_text_array"]; -const argDetailsSimple77 = [{ +const argDetailsSimple_post_computed_with_optional_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: false, fetcher: null }]; -const makeArgs77 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple77[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 makeArgs_post_computed_with_optional_arg = (args, path = []) => argDetailsSimple_post_computed_with_optional_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_optional_argPgResource = registry.pgResources["post_computed_with_optional_arg"]; -const argDetailsSimple78 = [{ +const argDetailsSimple_post_computed_with_required_arg = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs78 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple78[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 makeArgs_post_computed_with_required_arg = (args, path = []) => argDetailsSimple_post_computed_with_required_arg.map(details => makeArg(path, args, details)); const resource_post_computed_with_required_argPgResource = registry.pgResources["post_computed_with_required_arg"]; -const argDetailsSimple79 = [{ +const argDetailsSimple_post_headline_trimmed = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13391,52 +9992,9 @@ const argDetailsSimple79 = [{ required: false, fetcher: null }]; -const makeArgs79 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple79[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 makeArgs_post_headline_trimmed = (args, path = []) => argDetailsSimple_post_headline_trimmed.map(details => makeArg(path, args, details)); const resource_post_headline_trimmedPgResource = registry.pgResources["post_headline_trimmed"]; -const argDetailsSimple80 = [{ +const argDetailsSimple_post_headline_trimmed_no_defaults = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13449,52 +10007,9 @@ const argDetailsSimple80 = [{ required: true, fetcher: null }]; -const makeArgs80 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple80[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 makeArgs_post_headline_trimmed_no_defaults = (args, path = []) => argDetailsSimple_post_headline_trimmed_no_defaults.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_no_defaultsPgResource = registry.pgResources["post_headline_trimmed_no_defaults"]; -const argDetailsSimple81 = [{ +const argDetailsSimple_post_headline_trimmed_strict = [{ graphqlArgName: "length", postgresArgName: "length", pgCodec: TYPES.int, @@ -13507,102 +10022,16 @@ const argDetailsSimple81 = [{ required: false, fetcher: null }]; -const makeArgs81 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple81[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 makeArgs_post_headline_trimmed_strict = (args, path = []) => argDetailsSimple_post_headline_trimmed_strict.map(details => makeArg(path, args, details)); const resource_post_headline_trimmed_strictPgResource = registry.pgResources["post_headline_trimmed_strict"]; -const argDetailsSimple82 = [{ +const argDetailsSimple_post_computed_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: cCompoundTypeCodec, required: true, fetcher: null }]; -const makeArgs82 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple82[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 makeArgs_post_computed_compound_type_array = (args, path = []) => argDetailsSimple_post_computed_compound_type_array.map(details => makeArg(path, args, details)); const resource_post_computed_compound_type_arrayPgResource = registry.pgResources["post_computed_compound_type_array"]; const resource_frmcdc_comptypePgResource = registry.pgResources["frmcdc_comptype"]; const resource_frmcdc_bNestedCompoundTypePgResource = registry.pgResources["frmcdc_bNestedCompoundType"]; @@ -13660,641 +10089,82 @@ const parseValueLiteral = (ast, variables) => { return undefined; } }; -const argDetailsSimple83 = []; -const makeArgs83 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple83[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 argDetailsSimple_c_edge_case_computed = []; +const makeArgs_c_edge_case_computed = (args, path = []) => argDetailsSimple_c_edge_case_computed.map(details => makeArg(path, args, details)); const resource_c_edge_case_computedPgResource = registry.pgResources["c_edge_case_computed"]; -const argDetailsSimple84 = []; -const makeArgs84 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple84[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 argDetailsSimple_c_mutation_out = []; +const makeArgs_c_mutation_out = (args, path = []) => argDetailsSimple_c_mutation_out.map(details => makeArg(path, args, details)); const resource_c_mutation_outPgResource = registry.pgResources["c_mutation_out"]; -const argDetailsSimple85 = []; -const makeArgs85 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple85[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 argDetailsSimple_c_mutation_out_setof = []; +const makeArgs_c_mutation_out_setof = (args, path = []) => argDetailsSimple_c_mutation_out_setof.map(details => makeArg(path, args, details)); const resource_c_mutation_out_setofPgResource = registry.pgResources["c_mutation_out_setof"]; -const argDetailsSimple86 = []; -const makeArgs86 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple86[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 argDetailsSimple_c_mutation_out_unnamed = []; +const makeArgs_c_mutation_out_unnamed = (args, path = []) => argDetailsSimple_c_mutation_out_unnamed.map(details => makeArg(path, args, details)); const resource_c_mutation_out_unnamedPgResource = registry.pgResources["c_mutation_out_unnamed"]; -const argDetailsSimple87 = []; -const makeArgs87 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple87[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 argDetailsSimple_c_no_args_mutation = []; +const makeArgs_c_no_args_mutation = (args, path = []) => argDetailsSimple_c_no_args_mutation.map(details => makeArg(path, args, details)); const resource_c_no_args_mutationPgResource = registry.pgResources["c_no_args_mutation"]; -const argDetailsSimple88 = []; -const makeArgs88 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple88[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 argDetailsSimple_return_void_mutation = []; +const makeArgs_return_void_mutation = (args, path = []) => argDetailsSimple_return_void_mutation.map(details => makeArg(path, args, details)); const resource_return_void_mutationPgResource = registry.pgResources["return_void_mutation"]; -const argDetailsSimple89 = []; -const makeArgs89 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple89[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 argDetailsSimple_mutation_interval_set = []; +const makeArgs_mutation_interval_set = (args, path = []) => argDetailsSimple_mutation_interval_set.map(details => makeArg(path, args, details)); const resource_mutation_interval_setPgResource = registry.pgResources["mutation_interval_set"]; -const argDetailsSimple90 = [{ +const argDetailsSimple_c_mutation_in_out = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs90 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple90[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 makeArgs_c_mutation_in_out = (args, path = []) => argDetailsSimple_c_mutation_in_out.map(details => makeArg(path, args, details)); const resource_c_mutation_in_outPgResource = registry.pgResources["c_mutation_in_out"]; -const argDetailsSimple91 = [{ +const argDetailsSimple_c_mutation_returns_table_one_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs91 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple91[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 makeArgs_c_mutation_returns_table_one_col = (args, path = []) => argDetailsSimple_c_mutation_returns_table_one_col.map(details => makeArg(path, args, details)); const resource_c_mutation_returns_table_one_colPgResource = registry.pgResources["c_mutation_returns_table_one_col"]; -const argDetailsSimple92 = [{ +const argDetailsSimple_c_json_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.json, required: true, fetcher: null }]; -const makeArgs92 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple92[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 makeArgs_c_json_identity_mutation = (args, path = []) => argDetailsSimple_c_json_identity_mutation.map(details => makeArg(path, args, details)); const resource_c_json_identity_mutationPgResource = registry.pgResources["c_json_identity_mutation"]; -const argDetailsSimple93 = [{ +const argDetailsSimple_c_jsonb_identity_mutation = [{ graphqlArgName: "json", postgresArgName: "json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs93 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple93[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 makeArgs_c_jsonb_identity_mutation = (args, path = []) => argDetailsSimple_c_jsonb_identity_mutation.map(details => makeArg(path, args, details)); const resource_c_jsonb_identity_mutationPgResource = registry.pgResources["c_jsonb_identity_mutation"]; -const argDetailsSimple94 = [{ +const argDetailsSimple_c_jsonb_identity_mutation_plpgsql = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: true, fetcher: null }]; -const makeArgs94 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple94[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 makeArgs_c_jsonb_identity_mutation_plpgsql = (args, path = []) => argDetailsSimple_c_jsonb_identity_mutation_plpgsql.map(details => makeArg(path, args, details)); const resource_c_jsonb_identity_mutation_plpgsqlPgResource = registry.pgResources["c_jsonb_identity_mutation_plpgsql"]; -const argDetailsSimple95 = [{ +const argDetailsSimple_c_jsonb_identity_mutation_plpgsql_with_default = [{ graphqlArgName: "_theJson", postgresArgName: "_the_json", pgCodec: TYPES.jsonb, required: false, fetcher: null }]; -const makeArgs95 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple95[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 makeArgs_c_jsonb_identity_mutation_plpgsql_with_default = (args, path = []) => argDetailsSimple_c_jsonb_identity_mutation_plpgsql_with_default.map(details => makeArg(path, args, details)); const resource_c_jsonb_identity_mutation_plpgsql_with_defaultPgResource = registry.pgResources["c_jsonb_identity_mutation_plpgsql_with_default"]; -const argDetailsSimple96 = [{ +const argDetailsSimple_add_1_mutation = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14307,52 +10177,9 @@ const argDetailsSimple96 = [{ required: true, fetcher: null }]; -const makeArgs96 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple96[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_1_mutation = (args, path = []) => argDetailsSimple_add_1_mutation.map(details => makeArg(path, args, details)); const resource_add_1_mutationPgResource = registry.pgResources["add_1_mutation"]; -const argDetailsSimple97 = [{ +const argDetailsSimple_add_2_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14365,52 +10192,9 @@ const argDetailsSimple97 = [{ required: false, fetcher: null }]; -const makeArgs97 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple97[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 makeArgs_add_2_mutation = (args, path = []) => argDetailsSimple_add_2_mutation.map(details => makeArg(path, args, details)); const resource_add_2_mutationPgResource = registry.pgResources["add_2_mutation"]; -const argDetailsSimple98 = [{ +const argDetailsSimple_add_3_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -14423,52 +10207,9 @@ const argDetailsSimple98 = [{ required: true, fetcher: null }]; -const makeArgs98 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple98[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_add_3_mutation = (args, path = []) => argDetailsSimple_add_3_mutation.map(details => makeArg(path, args, details)); const resource_add_3_mutationPgResource = registry.pgResources["add_3_mutation"]; -const argDetailsSimple99 = [{ +const argDetailsSimple_add_4_mutation = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14481,52 +10222,9 @@ const argDetailsSimple99 = [{ required: false, fetcher: null }]; -const makeArgs99 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple99[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation = (args, path = []) => argDetailsSimple_add_4_mutation.map(details => makeArg(path, args, details)); const resource_add_4_mutationPgResource = registry.pgResources["add_4_mutation"]; -const argDetailsSimple100 = [{ +const argDetailsSimple_add_4_mutation_error = [{ graphqlArgName: "arg0", postgresArgName: "", pgCodec: TYPES.int, @@ -14539,52 +10237,9 @@ const argDetailsSimple100 = [{ required: false, fetcher: null }]; -const makeArgs100 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple100[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 1 - 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 makeArgs_add_4_mutation_error = (args, path = []) => argDetailsSimple_add_4_mutation_error.map(details => makeArg(path, args, details)); const resource_add_4_mutation_errorPgResource = registry.pgResources["add_4_mutation_error"]; -const argDetailsSimple101 = [{ +const argDetailsSimple_b_mult_1 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14597,52 +10252,9 @@ const argDetailsSimple101 = [{ required: true, fetcher: null }]; -const makeArgs101 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple101[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_b_mult_1 = (args, path = []) => argDetailsSimple_b_mult_1.map(details => makeArg(path, args, details)); const resource_b_mult_1PgResource = registry.pgResources["b_mult_1"]; -const argDetailsSimple102 = [{ +const argDetailsSimple_b_mult_2 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14655,52 +10267,9 @@ const argDetailsSimple102 = [{ required: true, fetcher: null }]; -const makeArgs102 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple102[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_b_mult_2 = (args, path = []) => argDetailsSimple_b_mult_2.map(details => makeArg(path, args, details)); const resource_b_mult_2PgResource = registry.pgResources["b_mult_2"]; -const argDetailsSimple103 = [{ +const argDetailsSimple_b_mult_3 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14713,52 +10282,9 @@ const argDetailsSimple103 = [{ required: true, fetcher: null }]; -const makeArgs103 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple103[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_b_mult_3 = (args, path = []) => argDetailsSimple_b_mult_3.map(details => makeArg(path, args, details)); const resource_b_mult_3PgResource = registry.pgResources["b_mult_3"]; -const argDetailsSimple104 = [{ +const argDetailsSimple_b_mult_4 = [{ graphqlArgName: "arg0", postgresArgName: null, pgCodec: TYPES.int, @@ -14771,52 +10297,9 @@ const argDetailsSimple104 = [{ required: true, fetcher: null }]; -const makeArgs104 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple104[i]; - const $raw = args.getRaw([...path, graphqlArgName]); - let step; - if ($raw.evalIs(undefined)) { - if (!required && i >= 2 - 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 makeArgs_b_mult_4 = (args, path = []) => argDetailsSimple_b_mult_4.map(details => makeArg(path, args, details)); const resource_b_mult_4PgResource = registry.pgResources["b_mult_4"]; -const argDetailsSimple105 = [{ +const argDetailsSimple_c_mutation_in_inout = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, @@ -14829,190 +10312,18 @@ const argDetailsSimple105 = [{ required: true, fetcher: null }]; -const makeArgs105 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple105[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 makeArgs_c_mutation_in_inout = (args, path = []) => argDetailsSimple_c_mutation_in_inout.map(details => makeArg(path, args, details)); const resource_c_mutation_in_inoutPgResource = registry.pgResources["c_mutation_in_inout"]; -const argDetailsSimple106 = []; -const makeArgs106 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple106[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 argDetailsSimple_c_mutation_out_out = []; +const makeArgs_c_mutation_out_out = (args, path = []) => argDetailsSimple_c_mutation_out_out.map(details => makeArg(path, args, details)); const resource_c_mutation_out_outPgResource = registry.pgResources["c_mutation_out_out"]; -const argDetailsSimple107 = []; -const makeArgs107 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple107[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 argDetailsSimple_c_mutation_out_out_setof = []; +const makeArgs_c_mutation_out_out_setof = (args, path = []) => argDetailsSimple_c_mutation_out_out_setof.map(details => makeArg(path, args, details)); const resource_c_mutation_out_out_setofPgResource = registry.pgResources["c_mutation_out_out_setof"]; -const argDetailsSimple108 = []; -const makeArgs108 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple108[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 argDetailsSimple_c_mutation_out_out_unnamed = []; +const makeArgs_c_mutation_out_out_unnamed = (args, path = []) => argDetailsSimple_c_mutation_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_c_mutation_out_out_unnamedPgResource = registry.pgResources["c_mutation_out_out_unnamed"]; -const argDetailsSimple109 = [{ +const argDetailsSimple_c_int_set_mutation = [{ graphqlArgName: "x", postgresArgName: "x", pgCodec: TYPES.int, @@ -15031,294 +10342,36 @@ const argDetailsSimple109 = [{ required: true, fetcher: null }]; -const makeArgs109 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple109[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 makeArgs_c_int_set_mutation = (args, path = []) => argDetailsSimple_c_int_set_mutation.map(details => makeArg(path, args, details)); const resource_c_int_set_mutationPgResource = registry.pgResources["c_int_set_mutation"]; -const argDetailsSimple110 = []; -const makeArgs110 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple110[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 argDetailsSimple_c_mutation_out_unnamed_out_out_unnamed = []; +const makeArgs_c_mutation_out_unnamed_out_out_unnamed = (args, path = []) => argDetailsSimple_c_mutation_out_unnamed_out_out_unnamed.map(details => makeArg(path, args, details)); const resource_c_mutation_out_unnamed_out_out_unnamedPgResource = registry.pgResources["c_mutation_out_unnamed_out_out_unnamed"]; -const argDetailsSimple111 = [{ +const argDetailsSimple_c_mutation_returns_table_multi_col = [{ graphqlArgName: "i", postgresArgName: "i", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs111 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple111[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 makeArgs_c_mutation_returns_table_multi_col = (args, path = []) => argDetailsSimple_c_mutation_returns_table_multi_col.map(details => makeArg(path, args, details)); const resource_c_mutation_returns_table_multi_colPgResource = registry.pgResources["c_mutation_returns_table_multi_col"]; -const argDetailsSimple112 = [{ +const argDetailsSimple_b_guid_fn = [{ graphqlArgName: "g", postgresArgName: "g", pgCodec: bGuidCodec, required: true, fetcher: null }]; -const makeArgs112 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple112[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 makeArgs_b_guid_fn = (args, path = []) => argDetailsSimple_b_guid_fn.map(details => makeArg(path, args, details)); const resource_b_guid_fnPgResource = registry.pgResources["b_guid_fn"]; -const argDetailsSimple113 = []; -const makeArgs113 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple113[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 argDetailsSimple_mutation_interval_array = []; +const makeArgs_mutation_interval_array = (args, path = []) => argDetailsSimple_mutation_interval_array.map(details => makeArg(path, args, details)); const resource_mutation_interval_arrayPgResource = registry.pgResources["mutation_interval_array"]; -const argDetailsSimple114 = []; -const makeArgs114 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple114[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 argDetailsSimple_mutation_text_array = []; +const makeArgs_mutation_text_array = (args, path = []) => argDetailsSimple_mutation_text_array.map(details => makeArg(path, args, details)); const resource_mutation_text_arrayPgResource = registry.pgResources["mutation_text_array"]; -const argDetailsSimple115 = [{ +const argDetailsSimple_b_list_bde_mutation = [{ graphqlArgName: "b", postgresArgName: "b", pgCodec: pgCatalogTextArrayCodec, @@ -15337,98 +10390,12 @@ const argDetailsSimple115 = [{ required: true, fetcher: null }]; -const makeArgs115 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple115[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 makeArgs_b_list_bde_mutation = (args, path = []) => argDetailsSimple_b_list_bde_mutation.map(details => makeArg(path, args, details)); const resource_b_list_bde_mutationPgResource = registry.pgResources["b_list_bde_mutation"]; -const argDetailsSimple116 = []; -const makeArgs116 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple116[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 argDetailsSimple_b_authenticate_fail = []; +const makeArgs_b_authenticate_fail = (args, path = []) => argDetailsSimple_b_authenticate_fail.map(details => makeArg(path, args, details)); const resource_b_authenticate_failPgResource = registry.pgResources["b_authenticate_fail"]; -const argDetailsSimple117 = [{ +const argDetailsSimple_b_authenticate = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15447,196 +10414,24 @@ const argDetailsSimple117 = [{ required: true, fetcher: null }]; -const makeArgs117 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple117[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 makeArgs_b_authenticate = (args, path = []) => argDetailsSimple_b_authenticate.map(details => makeArg(path, args, details)); const resource_b_authenticatePgResource = registry.pgResources["b_authenticate"]; -const argDetailsSimple118 = [{ +const argDetailsSimple_c_left_arm_identity = [{ graphqlArgName: "leftArm", postgresArgName: "left_arm", pgCodec: cLeftArmCodec, required: true, fetcher: null }]; -const makeArgs118 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple118[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 makeArgs_c_left_arm_identity = (args, path = []) => argDetailsSimple_c_left_arm_identity.map(details => makeArg(path, args, details)); const resource_c_left_arm_identityPgResource = registry.pgResources["c_left_arm_identity"]; -const argDetailsSimple119 = []; -const makeArgs119 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple119[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 argDetailsSimple_c_issue756_mutation = []; +const makeArgs_c_issue756_mutation = (args, path = []) => argDetailsSimple_c_issue756_mutation.map(details => makeArg(path, args, details)); const resource_c_issue756_mutationPgResource = registry.pgResources["c_issue756_mutation"]; -const argDetailsSimple120 = []; -const makeArgs120 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple120[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 argDetailsSimple_c_issue756_set_mutation = []; +const makeArgs_c_issue756_set_mutation = (args, path = []) => argDetailsSimple_c_issue756_set_mutation.map(details => makeArg(path, args, details)); const resource_c_issue756_set_mutationPgResource = registry.pgResources["c_issue756_set_mutation"]; -const argDetailsSimple121 = [{ +const argDetailsSimple_b_authenticate_many = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15655,52 +10450,9 @@ const argDetailsSimple121 = [{ required: true, fetcher: null }]; -const makeArgs121 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple121[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 makeArgs_b_authenticate_many = (args, path = []) => argDetailsSimple_b_authenticate_many.map(details => makeArg(path, args, details)); const resource_b_authenticate_manyPgResource = registry.pgResources["b_authenticate_many"]; -const argDetailsSimple122 = [{ +const argDetailsSimple_b_authenticate_payload = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15719,52 +10471,9 @@ const argDetailsSimple122 = [{ required: true, fetcher: null }]; -const makeArgs122 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 3; 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 makeArgs_b_authenticate_payload = (args, path = []) => argDetailsSimple_b_authenticate_payload.map(details => makeArg(path, args, details)); const resource_b_authenticate_payloadPgResource = registry.pgResources["b_authenticate_payload"]; -const argDetailsSimple123 = [{ +const argDetailsSimple_c_types_mutation = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.bigint, @@ -15801,260 +10510,45 @@ const argDetailsSimple123 = [{ required: true, fetcher: null }]; -const makeArgs123 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 6; 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 makeArgs_c_types_mutation = (args, path = []) => argDetailsSimple_c_types_mutation.map(details => makeArg(path, args, details)); const resource_c_types_mutationPgResource = registry.pgResources["c_types_mutation"]; -const argDetailsSimple124 = [{ +const argDetailsSimple_c_mutation_out_out_compound_type = [{ graphqlArgName: "i1", postgresArgName: "i1", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs124 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple124[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 makeArgs_c_mutation_out_out_compound_type = (args, path = []) => argDetailsSimple_c_mutation_out_out_compound_type.map(details => makeArg(path, args, details)); const resource_c_mutation_out_out_compound_typePgResource = registry.pgResources["c_mutation_out_out_compound_type"]; -const argDetailsSimple125 = [{ +const argDetailsSimple_b_compound_type_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: cCompoundTypeCodec, required: true, fetcher: null }]; -const makeArgs125 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple125[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 makeArgs_b_compound_type_mutation = (args, path = []) => argDetailsSimple_b_compound_type_mutation.map(details => makeArg(path, args, details)); const resource_b_compound_type_mutationPgResource = registry.pgResources["b_compound_type_mutation"]; -const argDetailsSimple126 = [{ +const argDetailsSimple_b_compound_type_set_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: cCompoundTypeCodec, required: true, fetcher: null }]; -const makeArgs126 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple126[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 makeArgs_b_compound_type_set_mutation = (args, path = []) => argDetailsSimple_b_compound_type_set_mutation.map(details => makeArg(path, args, details)); const resource_b_compound_type_set_mutationPgResource = registry.pgResources["b_compound_type_set_mutation"]; -const argDetailsSimple127 = [{ +const argDetailsSimple_c_table_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs127 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple127[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 makeArgs_c_table_mutation = (args, path = []) => argDetailsSimple_c_table_mutation.map(details => makeArg(path, args, details)); const resource_c_table_mutationPgResource = registry.pgResources["c_table_mutation"]; -const argDetailsSimple128 = [{ +const argDetailsSimple_post_with_suffix = [{ graphqlArgName: "post", postgresArgName: "post", pgCodec: postCodec, @@ -16067,208 +10561,36 @@ const argDetailsSimple128 = [{ required: true, fetcher: null }]; -const makeArgs128 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple128[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 makeArgs_post_with_suffix = (args, path = []) => argDetailsSimple_post_with_suffix.map(details => makeArg(path, args, details)); const resource_post_with_suffixPgResource = registry.pgResources["post_with_suffix"]; -const argDetailsSimple129 = [{ +const argDetailsSimple_mutation_compound_type_array = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: cCompoundTypeCodec, required: true, fetcher: null }]; -const makeArgs129 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple129[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 makeArgs_mutation_compound_type_array = (args, path = []) => argDetailsSimple_mutation_compound_type_array.map(details => makeArg(path, args, details)); const resource_mutation_compound_type_arrayPgResource = registry.pgResources["mutation_compound_type_array"]; -const argDetailsSimple130 = [{ +const argDetailsSimple_b_compound_type_array_mutation = [{ graphqlArgName: "object", postgresArgName: "object", pgCodec: cCompoundTypeCodec, required: true, fetcher: null }]; -const makeArgs130 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple130[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 makeArgs_b_compound_type_array_mutation = (args, path = []) => argDetailsSimple_b_compound_type_array_mutation.map(details => makeArg(path, args, details)); const resource_b_compound_type_array_mutationPgResource = registry.pgResources["b_compound_type_array_mutation"]; -const argDetailsSimple131 = [{ +const argDetailsSimple_post_many = [{ graphqlArgName: "posts", postgresArgName: "posts", pgCodec: postArrayCodec, required: true, fetcher: null }]; -const makeArgs131 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple131[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 makeArgs_post_many = (args, path = []) => argDetailsSimple_post_many.map(details => makeArg(path, args, details)); const resource_post_manyPgResource = registry.pgResources["post_many"]; -const argDetailsSimple132 = [{ +const argDetailsSimple_c_mutation_out_complex = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16281,52 +10603,9 @@ const argDetailsSimple132 = [{ required: true, fetcher: null }]; -const makeArgs132 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple132[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 makeArgs_c_mutation_out_complex = (args, path = []) => argDetailsSimple_c_mutation_out_complex.map(details => makeArg(path, args, details)); const resource_c_mutation_out_complexPgResource = registry.pgResources["c_mutation_out_complex"]; -const argDetailsSimple133 = [{ +const argDetailsSimple_c_mutation_out_complex_setof = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -16339,332 +10618,31 @@ const argDetailsSimple133 = [{ required: true, fetcher: null }]; -const makeArgs133 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 2; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple133[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 makeArgs_c_mutation_out_complex_setof = (args, path = []) => argDetailsSimple_c_mutation_out_complex_setof.map(details => makeArg(path, args, details)); const resource_c_mutation_out_complex_setofPgResource = registry.pgResources["c_mutation_out_complex_setof"]; -const argDetailsSimple134 = []; -const makeArgs134 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple134[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 argDetailsSimple_c_mutation_out_table = []; +const makeArgs_c_mutation_out_table = (args, path = []) => argDetailsSimple_c_mutation_out_table.map(details => makeArg(path, args, details)); const resource_c_mutation_out_tablePgResource = registry.pgResources["c_mutation_out_table"]; -const argDetailsSimple135 = []; -const makeArgs135 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple135[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 argDetailsSimple_c_mutation_out_table_setof = []; +const makeArgs_c_mutation_out_table_setof = (args, path = []) => argDetailsSimple_c_mutation_out_table_setof.map(details => makeArg(path, args, details)); const resource_c_mutation_out_table_setofPgResource = registry.pgResources["c_mutation_out_table_setof"]; -const argDetailsSimple136 = []; -const makeArgs136 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple136[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 argDetailsSimple_c_table_set_mutation = []; +const makeArgs_c_table_set_mutation = (args, path = []) => argDetailsSimple_c_table_set_mutation.map(details => makeArg(path, args, details)); const resource_c_table_set_mutationPgResource = registry.pgResources["c_table_set_mutation"]; -const argDetailsSimple137 = []; -const makeArgs137 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple137[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 argDetailsSimple_b_type_function_connection_mutation = []; +const makeArgs_b_type_function_connection_mutation = (args, path = []) => argDetailsSimple_b_type_function_connection_mutation.map(details => makeArg(path, args, details)); const resource_b_type_function_connection_mutationPgResource = registry.pgResources["b_type_function_connection_mutation"]; -const argDetailsSimple138 = [{ +const argDetailsSimple_b_type_function_mutation = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs138 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple138[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 makeArgs_b_type_function_mutation = (args, path = []) => argDetailsSimple_b_type_function_mutation.map(details => makeArg(path, args, details)); const resource_b_type_function_mutationPgResource = registry.pgResources["b_type_function_mutation"]; -const argDetailsSimple139 = []; -const makeArgs139 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple139[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 argDetailsSimple_b_type_function_list_mutation = []; +const makeArgs_b_type_function_list_mutation = (args, path = []) => argDetailsSimple_b_type_function_list_mutation.map(details => makeArg(path, args, details)); const resource_b_type_function_list_mutationPgResource = registry.pgResources["b_type_function_list_mutation"]; const resource_frmcdc_bJwtTokenPgResource = registry.pgResources["frmcdc_bJwtToken"]; export const typeDefs = /* GraphQL */`"""The root query type which gives access points into the data universe.""" @@ -25903,127 +19881,127 @@ export const plans = { }, inputByRowId(_$root, args) { return resource_inputsPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, patchByRowId(_$root, args) { return resource_patchsPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, reservedByRowId(_$root, args) { return resource_reservedPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, reservedPatchRecordByRowId(_$root, args) { return resource_reservedPatchsPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, reservedInputRecordByRowId(_$root, args) { return resource_reserved_inputPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, defaultValueByRowId(_$root, args) { return resource_default_valuePgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, noPrimaryKeyByRowId(_$root, args) { return resource_no_primary_keyPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, uniqueForeignKeyByCompoundKey1AndCompoundKey2(_$root, args) { return resource_unique_foreign_keyPgResource.get({ - compound_key_1: args.get("compoundKey1"), - compound_key_2: args.get("compoundKey2") + compound_key_1: args.getRaw("compoundKey1"), + compound_key_2: args.getRaw("compoundKey2") }); }, cMyTableByRowId(_$root, args) { return resource_c_my_tablePgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, cPersonSecretByPersonId(_$root, args) { return resource_c_person_secretPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, viewTableByRowId(_$root, args) { return resource_view_tablePgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, cCompoundKeyByPersonId1AndPersonId2(_$root, args) { return resource_c_compound_keyPgResource.get({ - person_id_1: args.get("personId1"), - person_id_2: args.get("personId2") + person_id_1: args.getRaw("personId1"), + person_id_2: args.getRaw("personId2") }); }, similarTable1ByRowId(_$root, args) { return resource_similar_table_1PgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, similarTable2ByRowId(_$root, args) { return resource_similar_table_2PgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, cNullTestRecordByRowId(_$root, args) { return resource_c_null_test_recordPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, cLeftArmByRowId(_$root, args) { return resource_c_left_armPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, cLeftArmByPersonId(_$root, args) { return resource_c_left_armPgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, cIssue756ByRowId(_$root, args) { return resource_c_issue756PgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, postByRowId(_$root, args) { return resource_postPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, cPersonByRowId(_$root, args) { return resource_c_personPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, cPersonByEmail(_$root, args) { return resource_c_personPgResource.get({ - email: args.get("email") + email: args.getRaw("email") }); }, bListByRowId(_$root, args) { return resource_b_listsPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, bTypeByRowId(_$root, args) { return resource_b_typesPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, cCurrentUserId($root, args, _info) { - const selectArgs = makeArgs(args); + const selectArgs = makeArgs_c_current_user_id(args); return resource_c_current_user_idPgResource.execute(selectArgs); }, cFuncOut($root, args, _info) { - const selectArgs = makeArgs2(args); + const selectArgs = makeArgs_c_func_out(args); return resource_c_func_outPgResource.execute(selectArgs); }, cFuncOutSetof: { @@ -26040,7 +20018,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26049,7 +20026,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26058,7 +20034,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26067,11 +20042,11 @@ export const plans = { } }, cFuncOutUnnamed($root, args, _info) { - const selectArgs = makeArgs4(args); + const selectArgs = makeArgs_c_func_out_unnamed(args); return resource_c_func_out_unnamedPgResource.execute(selectArgs); }, cNoArgsQuery($root, args, _info) { - const selectArgs = makeArgs5(args); + const selectArgs = makeArgs_c_no_args_query(args); return resource_c_no_args_queryPgResource.execute(selectArgs); }, queryIntervalSet: { @@ -26088,7 +20063,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26097,7 +20071,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26106,7 +20079,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26128,7 +20100,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26137,7 +20108,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26146,7 +20116,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26155,7 +20124,7 @@ export const plans = { } }, cFuncInOut($root, args, _info) { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_c_func_in_out(args); return resource_c_func_in_outPgResource.execute(selectArgs); }, cFuncReturnsTableOneCol: { @@ -26172,7 +20141,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26181,7 +20149,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26190,7 +20157,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26199,35 +20165,35 @@ export const plans = { } }, cJsonIdentity($root, args, _info) { - const selectArgs = makeArgs10(args); + const selectArgs = makeArgs_c_json_identity(args); return resource_c_json_identityPgResource.execute(selectArgs); }, cJsonbIdentity($root, args, _info) { - const selectArgs = makeArgs11(args); + const selectArgs = makeArgs_c_jsonb_identity(args); return resource_c_jsonb_identityPgResource.execute(selectArgs); }, add1Query($root, args, _info) { - const selectArgs = makeArgs12(args); + const selectArgs = makeArgs_add_1_query(args); return resource_add_1_queryPgResource.execute(selectArgs); }, add2Query($root, args, _info) { - const selectArgs = makeArgs13(args); + const selectArgs = makeArgs_add_2_query(args); return resource_add_2_queryPgResource.execute(selectArgs); }, add3Query($root, args, _info) { - const selectArgs = makeArgs14(args); + const selectArgs = makeArgs_add_3_query(args); return resource_add_3_queryPgResource.execute(selectArgs); }, add4Query($root, args, _info) { - const selectArgs = makeArgs15(args); + const selectArgs = makeArgs_add_4_query(args); return resource_add_4_queryPgResource.execute(selectArgs); }, cFuncInInout($root, args, _info) { - const selectArgs = makeArgs16(args); + const selectArgs = makeArgs_c_func_in_inout(args); return resource_c_func_in_inoutPgResource.execute(selectArgs); }, cFuncOutOut($root, args, _info) { - const selectArgs = makeArgs17(args); + const selectArgs = makeArgs_c_func_out_out(args); return resource_c_func_out_outPgResource.execute(selectArgs); }, cFuncOutOutSetof: { @@ -26244,7 +20210,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26253,7 +20218,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26262,7 +20226,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26271,7 +20234,7 @@ export const plans = { } }, cFuncOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs19(args); + const selectArgs = makeArgs_c_func_out_out_unnamed(args); return resource_c_func_out_out_unnamedPgResource.execute(selectArgs); }, cSearchTestSummaries: { @@ -26288,7 +20251,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26297,7 +20259,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26306,7 +20267,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26315,27 +20275,27 @@ export const plans = { } }, optionalMissingMiddle1($root, args, _info) { - const selectArgs = makeArgs21(args); + const selectArgs = makeArgs_optional_missing_middle_1(args); return resource_optional_missing_middle_1PgResource.execute(selectArgs); }, optionalMissingMiddle2($root, args, _info) { - const selectArgs = makeArgs22(args); + const selectArgs = makeArgs_optional_missing_middle_2(args); return resource_optional_missing_middle_2PgResource.execute(selectArgs); }, optionalMissingMiddle3($root, args, _info) { - const selectArgs = makeArgs23(args); + const selectArgs = makeArgs_optional_missing_middle_3(args); return resource_optional_missing_middle_3PgResource.execute(selectArgs); }, optionalMissingMiddle4($root, args, _info) { - const selectArgs = makeArgs24(args); + const selectArgs = makeArgs_optional_missing_middle_4(args); return resource_optional_missing_middle_4PgResource.execute(selectArgs); }, optionalMissingMiddle5($root, args, _info) { - const selectArgs = makeArgs25(args); + const selectArgs = makeArgs_optional_missing_middle_5(args); return resource_optional_missing_middle_5PgResource.execute(selectArgs); }, cFuncOutUnnamedOutOutUnnamed($root, args, _info) { - const selectArgs = makeArgs26(args); + const selectArgs = makeArgs_c_func_out_unnamed_out_out_unnamed(args); return resource_c_func_out_unnamed_out_out_unnamedPgResource.execute(selectArgs); }, cIntSetQuery: { @@ -26352,7 +20312,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26361,7 +20320,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26370,7 +20328,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26392,7 +20349,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26401,7 +20357,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26410,7 +20365,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26419,31 +20373,31 @@ export const plans = { } }, queryIntervalArray($root, args, _info) { - const selectArgs = makeArgs29(args); + const selectArgs = makeArgs_query_interval_array(args); return resource_query_interval_arrayPgResource.execute(selectArgs); }, queryTextArray($root, args, _info) { - const selectArgs = makeArgs30(args); + const selectArgs = makeArgs_query_text_array(args); return resource_query_text_arrayPgResource.execute(selectArgs); }, cReturnTableWithoutGrants($root, args, _info) { - const selectArgs = makeArgs31(args); + const selectArgs = makeArgs_c_return_table_without_grants(args); return resource_c_return_table_without_grantsPgResource.execute(selectArgs); }, cTypesQuery($root, args, _info) { - const selectArgs = makeArgs32(args); + const selectArgs = makeArgs_c_types_query(args); return resource_c_types_queryPgResource.execute(selectArgs); }, cCompoundTypeComputedField($root, args, _info) { - const selectArgs = makeArgs33(args); + const selectArgs = makeArgs_c_compound_type_computed_field(args); return resource_c_compound_type_computed_fieldPgResource.execute(selectArgs); }, cFuncOutOutCompoundType($root, args, _info) { - const selectArgs = makeArgs34(args); + const selectArgs = makeArgs_c_func_out_out_compound_type(args); return resource_c_func_out_out_compound_typePgResource.execute(selectArgs); }, cQueryOutputTwoRows($root, args, _info) { - const selectArgs = makeArgs35(args); + const selectArgs = makeArgs_c_query_output_two_rows(args); return resource_c_query_output_two_rowsPgResource.execute(selectArgs); }, cCompoundTypeSetQuery: { @@ -26460,7 +20414,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26469,7 +20422,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26478,7 +20430,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26487,23 +20438,23 @@ export const plans = { } }, bCompoundTypeQuery($root, args, _info) { - const selectArgs = makeArgs37(args); + const selectArgs = makeArgs_b_compound_type_query(args); return resource_b_compound_type_queryPgResource.execute(selectArgs); }, cTableQuery($root, args, _info) { - const selectArgs = makeArgs38(args); + const selectArgs = makeArgs_c_table_query(args); return resource_c_table_queryPgResource.execute(selectArgs); }, queryCompoundTypeArray($root, args, _info) { - const selectArgs = makeArgs39(args); + const selectArgs = makeArgs_query_compound_type_array(args); return resource_query_compound_type_arrayPgResource.execute(selectArgs); }, bCompoundTypeArrayQuery($root, args, _info) { - const selectArgs = makeArgs40(args); + const selectArgs = makeArgs_b_compound_type_array_query(args); return resource_b_compound_type_array_queryPgResource.execute(selectArgs); }, cFuncOutComplex($root, args, _info) { - const selectArgs = makeArgs41(args); + const selectArgs = makeArgs_c_func_out_complex(args); return resource_c_func_out_complexPgResource.execute(selectArgs); }, cFuncOutComplexSetof: { @@ -26520,7 +20471,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26529,7 +20479,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26538,7 +20487,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26560,7 +20508,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26569,7 +20516,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26578,7 +20524,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26587,7 +20532,7 @@ export const plans = { } }, cFuncOutTable($root, args, _info) { - const selectArgs = makeArgs44(args); + const selectArgs = makeArgs_c_func_out_table(args); return resource_c_func_out_tablePgResource.execute(selectArgs); }, cFuncOutTableSetof: { @@ -26604,7 +20549,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26613,7 +20557,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26622,7 +20565,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26644,7 +20586,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26653,7 +20594,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26662,7 +20602,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26684,7 +20623,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26693,7 +20631,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26702,7 +20639,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26724,7 +20660,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26733,7 +20668,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26742,7 +20676,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26751,11 +20684,11 @@ export const plans = { } }, bTypeFunction($root, args, _info) { - const selectArgs = makeArgs49(args); + const selectArgs = makeArgs_b_type_function(args); return resource_b_type_functionPgResource.execute(selectArgs); }, bTypeFunctionList($root, args, _info) { - const selectArgs = makeArgs50(args); + const selectArgs = makeArgs_b_type_function_list(args); return resource_b_type_function_listPgResource.execute(selectArgs); }, allNonUpdatableViews: { @@ -26766,7 +20699,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26775,7 +20707,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26784,7 +20715,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26793,7 +20723,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26802,7 +20731,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26811,22 +20739,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NonUpdatableViewOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26840,7 +20764,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26849,7 +20772,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26858,7 +20780,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26867,7 +20788,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26876,7 +20796,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26885,22 +20804,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("InputOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26914,7 +20829,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26923,7 +20837,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26932,7 +20845,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26941,7 +20853,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26950,7 +20861,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26959,22 +20869,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PatchOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26988,7 +20894,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26997,7 +20902,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27006,7 +20910,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27015,7 +20918,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27024,7 +20926,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27033,22 +20934,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27062,7 +20959,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27071,7 +20967,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27080,7 +20975,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27089,7 +20983,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27098,7 +20991,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27107,22 +20999,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27136,7 +21024,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27145,7 +21032,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27154,7 +21040,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27163,7 +21048,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27172,7 +21056,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27181,22 +21064,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27210,7 +21089,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27219,7 +21097,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27228,7 +21105,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27237,7 +21113,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27246,7 +21121,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27255,22 +21129,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValueOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27284,7 +21154,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27293,7 +21162,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27302,7 +21170,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27311,7 +21178,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27320,7 +21186,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27329,22 +21194,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeyOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27358,7 +21219,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27367,7 +21227,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27376,7 +21235,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27385,7 +21243,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27394,7 +21251,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27403,22 +21259,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("NoPrimaryKeyOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27432,7 +21284,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27441,7 +21292,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27450,7 +21300,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27459,7 +21308,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27468,7 +21316,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27477,22 +21324,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("TestviewOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27506,7 +21349,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27515,7 +21357,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27524,7 +21365,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27533,7 +21373,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27542,7 +21381,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27551,22 +21389,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("UniqueForeignKeyOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27580,7 +21414,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27589,7 +21422,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27598,7 +21430,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27607,7 +21438,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27616,7 +21446,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27625,22 +21454,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CMyTableOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27654,7 +21479,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27663,7 +21487,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27672,7 +21495,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27681,7 +21503,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27690,7 +21511,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27699,22 +21519,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CPersonSecretOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27728,7 +21544,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27737,7 +21552,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27746,7 +21560,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27755,7 +21568,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27764,7 +21576,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27773,22 +21584,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ViewTableOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27802,7 +21609,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27811,7 +21617,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27820,7 +21625,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27829,7 +21633,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27838,7 +21641,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27847,22 +21649,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BUpdatableViewOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27876,7 +21674,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27885,7 +21682,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27894,7 +21690,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27903,7 +21698,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27912,7 +21706,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27921,22 +21714,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CCompoundKeyOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27950,7 +21739,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27959,7 +21747,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27968,7 +21755,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27977,7 +21763,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27986,7 +21771,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27995,22 +21779,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1OrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28024,7 +21804,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28033,7 +21812,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28042,7 +21820,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28051,7 +21828,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28060,7 +21836,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28069,22 +21844,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2OrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28098,7 +21869,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28107,7 +21877,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28116,7 +21885,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28125,7 +21893,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28134,7 +21901,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28143,22 +21909,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CNullTestRecordOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28172,7 +21934,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28181,7 +21942,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28190,7 +21950,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28199,7 +21958,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28208,7 +21966,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28217,22 +21974,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CEdgeCaseOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28246,7 +21999,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28255,7 +22007,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28264,7 +22015,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28273,7 +22023,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28282,7 +22031,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28291,22 +22039,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CLeftArmOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28320,7 +22064,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28329,7 +22072,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28338,7 +22080,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28347,7 +22088,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28356,7 +22096,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28365,22 +22104,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CIssue756OrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28394,7 +22129,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28403,7 +22137,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28412,7 +22145,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28421,7 +22153,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28430,7 +22161,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28439,22 +22169,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28468,7 +22194,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28477,7 +22202,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28486,7 +22210,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28495,7 +22218,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28504,7 +22226,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28513,22 +22234,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CPersonOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28542,7 +22259,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28551,7 +22267,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28560,7 +22275,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28569,7 +22283,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28578,7 +22291,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28587,22 +22299,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BListOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28616,7 +22324,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28625,7 +22332,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28634,7 +22340,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28643,7 +22348,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28652,7 +22356,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28661,22 +22364,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BTypeOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28779,7 +22478,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28788,7 +22486,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28797,7 +22494,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28806,7 +22502,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28815,7 +22510,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28824,22 +22518,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeyOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28858,7 +22548,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs51(args); + const extraSelectArgs = makeArgs_c_person_computed_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -28873,27 +22563,21 @@ export const plans = { if (resource_c_person_computed_outPgResource.isUnique && !resource_c_person_computed_outPgResource.codec.attributes && typeof resource_c_person_computed_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_computed_outPgResource.codec, undefined)`${resource_c_person_computed_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_computed_outPgResource.from, resource_c_person_computed_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_computed_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_computed_outPgResource.execute(selectArgs); @@ -28902,7 +22586,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs52(args); + const extraSelectArgs = makeArgs_c_person_first_name(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -28917,27 +22601,21 @@ export const plans = { if (resource_c_person_first_namePgResource.isUnique && !resource_c_person_first_namePgResource.codec.attributes && typeof resource_c_person_first_namePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_first_namePgResource.codec, undefined)`${resource_c_person_first_namePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_first_namePgResource.from, resource_c_person_first_namePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_first_namePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_first_namePgResource.execute(selectArgs); @@ -28946,7 +22624,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs53(args); + const extraSelectArgs = makeArgs_c_person_computed_out_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -28961,27 +22639,21 @@ export const plans = { if (resource_c_person_computed_out_outPgResource.isUnique && !resource_c_person_computed_out_outPgResource.codec.attributes && typeof resource_c_person_computed_out_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_computed_out_outPgResource.codec, undefined)`${resource_c_person_computed_out_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_computed_out_outPgResource.from, resource_c_person_computed_out_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_computed_out_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_computed_out_outPgResource.execute(selectArgs); @@ -28990,7 +22662,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs54(args); + const extraSelectArgs = makeArgs_c_person_computed_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29005,27 +22677,21 @@ export const plans = { if (resource_c_person_computed_inoutPgResource.isUnique && !resource_c_person_computed_inoutPgResource.codec.attributes && typeof resource_c_person_computed_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_computed_inoutPgResource.codec, undefined)`${resource_c_person_computed_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_computed_inoutPgResource.from, resource_c_person_computed_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_computed_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_computed_inoutPgResource.execute(selectArgs); @@ -29034,7 +22700,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs55(args); + const extraSelectArgs = makeArgs_c_person_computed_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29049,27 +22715,21 @@ export const plans = { if (resource_c_person_computed_inout_outPgResource.isUnique && !resource_c_person_computed_inout_outPgResource.codec.attributes && typeof resource_c_person_computed_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_computed_inout_outPgResource.codec, undefined)`${resource_c_person_computed_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_computed_inout_outPgResource.from, resource_c_person_computed_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_computed_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_computed_inout_outPgResource.execute(selectArgs); @@ -29078,7 +22738,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs56(args); + const extraSelectArgs = makeArgs_c_person_exists(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29093,27 +22753,21 @@ export const plans = { if (resource_c_person_existsPgResource.isUnique && !resource_c_person_existsPgResource.codec.attributes && typeof resource_c_person_existsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_existsPgResource.codec, undefined)`${resource_c_person_existsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_existsPgResource.from, resource_c_person_existsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_existsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_existsPgResource.execute(selectArgs); @@ -29122,7 +22776,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs57(args); + const extraSelectArgs = makeArgs_c_person_computed_first_arg_inout_out(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29137,27 +22791,21 @@ export const plans = { if (resource_c_person_computed_first_arg_inout_outPgResource.isUnique && !resource_c_person_computed_first_arg_inout_outPgResource.codec.attributes && typeof resource_c_person_computed_first_arg_inout_outPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_computed_first_arg_inout_outPgResource.codec, undefined)`${resource_c_person_computed_first_arg_inout_outPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_computed_first_arg_inout_outPgResource.from, resource_c_person_computed_first_arg_inout_outPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_computed_first_arg_inout_outPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_computed_first_arg_inout_outPgResource.execute(selectArgs); @@ -29166,7 +22814,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs58(args); + const extraSelectArgs = makeArgs_c_person_optional_missing_middle_1(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29181,27 +22829,21 @@ export const plans = { if (resource_c_person_optional_missing_middle_1PgResource.isUnique && !resource_c_person_optional_missing_middle_1PgResource.codec.attributes && typeof resource_c_person_optional_missing_middle_1PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_optional_missing_middle_1PgResource.codec, undefined)`${resource_c_person_optional_missing_middle_1PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_optional_missing_middle_1PgResource.from, resource_c_person_optional_missing_middle_1PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_optional_missing_middle_1PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_optional_missing_middle_1PgResource.execute(selectArgs); @@ -29210,7 +22852,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs59(args); + const extraSelectArgs = makeArgs_c_person_optional_missing_middle_2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29225,27 +22867,21 @@ export const plans = { if (resource_c_person_optional_missing_middle_2PgResource.isUnique && !resource_c_person_optional_missing_middle_2PgResource.codec.attributes && typeof resource_c_person_optional_missing_middle_2PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_optional_missing_middle_2PgResource.codec, undefined)`${resource_c_person_optional_missing_middle_2PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_optional_missing_middle_2PgResource.from, resource_c_person_optional_missing_middle_2PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_optional_missing_middle_2PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_optional_missing_middle_2PgResource.execute(selectArgs); @@ -29254,7 +22890,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs60(args); + const extraSelectArgs = makeArgs_c_person_optional_missing_middle_3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29269,27 +22905,21 @@ export const plans = { if (resource_c_person_optional_missing_middle_3PgResource.isUnique && !resource_c_person_optional_missing_middle_3PgResource.codec.attributes && typeof resource_c_person_optional_missing_middle_3PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_optional_missing_middle_3PgResource.codec, undefined)`${resource_c_person_optional_missing_middle_3PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_optional_missing_middle_3PgResource.from, resource_c_person_optional_missing_middle_3PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_optional_missing_middle_3PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_optional_missing_middle_3PgResource.execute(selectArgs); @@ -29298,7 +22928,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs61(args); + const extraSelectArgs = makeArgs_c_person_optional_missing_middle_4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29313,27 +22943,21 @@ export const plans = { if (resource_c_person_optional_missing_middle_4PgResource.isUnique && !resource_c_person_optional_missing_middle_4PgResource.codec.attributes && typeof resource_c_person_optional_missing_middle_4PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_optional_missing_middle_4PgResource.codec, undefined)`${resource_c_person_optional_missing_middle_4PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_optional_missing_middle_4PgResource.from, resource_c_person_optional_missing_middle_4PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_optional_missing_middle_4PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_optional_missing_middle_4PgResource.execute(selectArgs); @@ -29342,7 +22966,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs62(args); + const extraSelectArgs = makeArgs_c_person_optional_missing_middle_5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29357,27 +22981,21 @@ export const plans = { if (resource_c_person_optional_missing_middle_5PgResource.isUnique && !resource_c_person_optional_missing_middle_5PgResource.codec.attributes && typeof resource_c_person_optional_missing_middle_5PgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_optional_missing_middle_5PgResource.codec, undefined)`${resource_c_person_optional_missing_middle_5PgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_optional_missing_middle_5PgResource.from, resource_c_person_optional_missing_middle_5PgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_optional_missing_middle_5PgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_optional_missing_middle_5PgResource.execute(selectArgs); @@ -29386,7 +23004,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs63(args); + const extraSelectArgs = makeArgs_c_person_computed_complex(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29401,27 +23019,21 @@ export const plans = { if (resource_c_person_computed_complexPgResource.isUnique && !resource_c_person_computed_complexPgResource.codec.attributes && typeof resource_c_person_computed_complexPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_computed_complexPgResource.codec, undefined)`${resource_c_person_computed_complexPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_computed_complexPgResource.from, resource_c_person_computed_complexPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_computed_complexPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_computed_complexPgResource.execute(selectArgs); @@ -29430,7 +23042,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs64(args); + const extraSelectArgs = makeArgs_c_person_first_post(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29445,27 +23057,21 @@ export const plans = { if (resource_c_person_first_postPgResource.isUnique && !resource_c_person_first_postPgResource.codec.attributes && typeof resource_c_person_first_postPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_first_postPgResource.codec, undefined)`${resource_c_person_first_postPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_first_postPgResource.from, resource_c_person_first_postPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_first_postPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_first_postPgResource.execute(selectArgs); @@ -29474,7 +23080,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs65(args); + const extraSelectArgs = makeArgs_c_person_computed_first_arg_inout(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29489,27 +23095,21 @@ export const plans = { if (resource_c_person_computed_first_arg_inoutPgResource.isUnique && !resource_c_person_computed_first_arg_inoutPgResource.codec.attributes && typeof resource_c_person_computed_first_arg_inoutPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_computed_first_arg_inoutPgResource.codec, undefined)`${resource_c_person_computed_first_arg_inoutPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_computed_first_arg_inoutPgResource.from, resource_c_person_computed_first_arg_inoutPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_computed_first_arg_inoutPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_computed_first_arg_inoutPgResource.execute(selectArgs); @@ -29528,7 +23128,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29537,7 +23136,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29546,7 +23144,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29568,7 +23165,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29577,7 +23173,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29586,7 +23181,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29598,7 +23192,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs68(args); + const extraSelectArgs = makeArgs_c_person_type_function(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29613,27 +23207,21 @@ export const plans = { if (resource_c_person_type_functionPgResource.isUnique && !resource_c_person_type_functionPgResource.codec.attributes && typeof resource_c_person_type_functionPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_type_functionPgResource.codec, undefined)`${resource_c_person_type_functionPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_type_functionPgResource.from, resource_c_person_type_functionPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_type_functionPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_type_functionPgResource.execute(selectArgs); @@ -29642,7 +23230,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs69(args); + const extraSelectArgs = makeArgs_c_person_type_function_list(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -29657,27 +23245,21 @@ export const plans = { if (resource_c_person_type_function_listPgResource.isUnique && !resource_c_person_type_function_listPgResource.codec.attributes && typeof resource_c_person_type_function_listPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_person_type_function_listPgResource.codec, undefined)`${resource_c_person_type_function_listPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_person_type_function_listPgResource.from, resource_c_person_type_function_listPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_person_type_function_listPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_person_type_function_listPgResource.execute(selectArgs); @@ -29732,7 +23314,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29741,7 +23322,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29750,7 +23330,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29759,7 +23338,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29768,7 +23346,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29777,22 +23354,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PostOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29809,7 +23382,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29818,7 +23390,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29827,7 +23398,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29836,7 +23406,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29845,7 +23414,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29854,22 +23422,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ForeignKeyOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29896,7 +23460,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29905,7 +23468,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29914,7 +23476,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -29923,7 +23484,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -29932,7 +23492,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -29941,22 +23500,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CCompoundKeyOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -29973,7 +23528,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -29982,7 +23536,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -29991,7 +23544,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30000,7 +23552,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30009,7 +23560,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30018,22 +23568,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("CCompoundKeyOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30108,7 +23654,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs70(args); + const extraSelectArgs = makeArgs_c_compound_type_computed_field2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30123,27 +23669,21 @@ export const plans = { if (resource_c_compound_type_computed_fieldPgResource.isUnique && !resource_c_compound_type_computed_fieldPgResource.codec.attributes && typeof resource_c_compound_type_computed_fieldPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_compound_type_computed_fieldPgResource.codec, undefined)`${resource_c_compound_type_computed_fieldPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_compound_type_computed_fieldPgResource.from, resource_c_compound_type_computed_fieldPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_compound_type_computed_fieldPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_compound_type_computed_fieldPgResource.execute(selectArgs); @@ -30152,7 +23692,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs71(args); + const extraSelectArgs = makeArgs_b_compound_type_query2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30167,27 +23707,21 @@ export const plans = { if (resource_b_compound_type_queryPgResource.isUnique && !resource_b_compound_type_queryPgResource.codec.attributes && typeof resource_b_compound_type_queryPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_b_compound_type_queryPgResource.codec, undefined)`${resource_b_compound_type_queryPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_b_compound_type_queryPgResource.from, resource_b_compound_type_queryPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_b_compound_type_queryPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_b_compound_type_queryPgResource.execute(selectArgs); @@ -30196,7 +23730,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs72(args); + const extraSelectArgs = makeArgs_query_compound_type_array2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30211,27 +23745,21 @@ export const plans = { if (resource_query_compound_type_arrayPgResource.isUnique && !resource_query_compound_type_arrayPgResource.codec.attributes && typeof resource_query_compound_type_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_query_compound_type_arrayPgResource.codec, undefined)`${resource_query_compound_type_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_query_compound_type_arrayPgResource.from, resource_query_compound_type_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_query_compound_type_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_query_compound_type_arrayPgResource.execute(selectArgs); @@ -30240,7 +23768,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs73(args); + const extraSelectArgs = makeArgs_b_compound_type_array_query2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30255,27 +23783,21 @@ export const plans = { if (resource_b_compound_type_array_queryPgResource.isUnique && !resource_b_compound_type_array_queryPgResource.codec.attributes && typeof resource_b_compound_type_array_queryPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_b_compound_type_array_queryPgResource.codec, undefined)`${resource_b_compound_type_array_queryPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_b_compound_type_array_queryPgResource.from, resource_b_compound_type_array_queryPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_b_compound_type_array_queryPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_b_compound_type_array_queryPgResource.execute(selectArgs); @@ -30365,7 +23887,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30374,7 +23895,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30383,7 +23903,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30395,7 +23914,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs75(args); + const extraSelectArgs = makeArgs_post_computed_interval_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30410,27 +23929,21 @@ export const plans = { if (resource_post_computed_interval_arrayPgResource.isUnique && !resource_post_computed_interval_arrayPgResource.codec.attributes && typeof resource_post_computed_interval_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${resource_post_computed_interval_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_interval_arrayPgResource.from, resource_post_computed_interval_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_interval_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_interval_arrayPgResource.execute(selectArgs); @@ -30439,7 +23952,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs76(args); + const extraSelectArgs = makeArgs_post_computed_text_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30454,27 +23967,21 @@ export const plans = { if (resource_post_computed_text_arrayPgResource.isUnique && !resource_post_computed_text_arrayPgResource.codec.attributes && typeof resource_post_computed_text_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${resource_post_computed_text_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_text_arrayPgResource.from, resource_post_computed_text_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_text_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_text_arrayPgResource.execute(selectArgs); @@ -30483,7 +23990,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs77(args); + const extraSelectArgs = makeArgs_post_computed_with_optional_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30498,27 +24005,21 @@ export const plans = { if (resource_post_computed_with_optional_argPgResource.isUnique && !resource_post_computed_with_optional_argPgResource.codec.attributes && typeof resource_post_computed_with_optional_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${resource_post_computed_with_optional_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_optional_argPgResource.from, resource_post_computed_with_optional_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_optional_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_optional_argPgResource.execute(selectArgs); @@ -30527,7 +24028,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs78(args); + const extraSelectArgs = makeArgs_post_computed_with_required_arg(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30542,27 +24043,21 @@ export const plans = { if (resource_post_computed_with_required_argPgResource.isUnique && !resource_post_computed_with_required_argPgResource.codec.attributes && typeof resource_post_computed_with_required_argPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${resource_post_computed_with_required_argPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_with_required_argPgResource.from, resource_post_computed_with_required_argPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_with_required_argPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_with_required_argPgResource.execute(selectArgs); @@ -30571,7 +24066,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs79(args); + const extraSelectArgs = makeArgs_post_headline_trimmed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30586,27 +24081,21 @@ export const plans = { if (resource_post_headline_trimmedPgResource.isUnique && !resource_post_headline_trimmedPgResource.codec.attributes && typeof resource_post_headline_trimmedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${resource_post_headline_trimmedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmedPgResource.from, resource_post_headline_trimmedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmedPgResource.execute(selectArgs); @@ -30615,7 +24104,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs80(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_no_defaults(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30630,27 +24119,21 @@ export const plans = { if (resource_post_headline_trimmed_no_defaultsPgResource.isUnique && !resource_post_headline_trimmed_no_defaultsPgResource.codec.attributes && typeof resource_post_headline_trimmed_no_defaultsPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${resource_post_headline_trimmed_no_defaultsPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.from, resource_post_headline_trimmed_no_defaultsPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_no_defaultsPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_no_defaultsPgResource.execute(selectArgs); @@ -30659,7 +24142,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs81(args); + const extraSelectArgs = makeArgs_post_headline_trimmed_strict(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30674,27 +24157,21 @@ export const plans = { if (resource_post_headline_trimmed_strictPgResource.isUnique && !resource_post_headline_trimmed_strictPgResource.codec.attributes && typeof resource_post_headline_trimmed_strictPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${resource_post_headline_trimmed_strictPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_headline_trimmed_strictPgResource.from, resource_post_headline_trimmed_strictPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_headline_trimmed_strictPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_headline_trimmed_strictPgResource.execute(selectArgs); @@ -30703,7 +24180,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs82(args); + const extraSelectArgs = makeArgs_post_computed_compound_type_array(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -30718,27 +24195,21 @@ export const plans = { if (resource_post_computed_compound_type_arrayPgResource.isUnique && !resource_post_computed_compound_type_arrayPgResource.codec.attributes && typeof resource_post_computed_compound_type_arrayPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${resource_post_computed_compound_type_arrayPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_post_computed_compound_type_arrayPgResource.from, resource_post_computed_compound_type_arrayPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_post_computed_compound_type_arrayPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_post_computed_compound_type_arrayPgResource.execute(selectArgs); @@ -30780,7 +24251,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -30789,7 +24259,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -30798,7 +24267,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -30807,7 +24275,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -30816,7 +24283,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -30825,22 +24291,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("BTypeOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -30903,64 +24365,70 @@ export const plans = { } }, CCompoundTypeInput: { - "__inputPlan": function CCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, c: { - applyPlan($insert, val) { - $insert.set("c", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("c", bakedInputRuntime(schema, field.type, val)); + } }, d: { - applyPlan($insert, val) { - $insert.set("d", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("d", bakedInputRuntime(schema, field.type, val)); + } }, e: { - applyPlan($insert, val) { - $insert.set("e", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("e", bakedInputRuntime(schema, field.type, val)); + } }, f: { - applyPlan($insert, val) { - $insert.set("f", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("f", bakedInputRuntime(schema, field.type, val)); + } }, g: { - applyPlan($insert, val) { - $insert.set("g", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("g", bakedInputRuntime(schema, field.type, val)); + } }, fooBar: { - applyPlan($insert, val) { - $insert.set("foo_bar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("foo_bar", bakedInputRuntime(schema, field.type, val)); + } } }, IntervalInput: { @@ -31510,31 +24978,21 @@ export const plans = { } }, BTypeOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { b_typesUniques[0].attributes.forEach(attributeName => { - const attribute = bTypesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31543,19 +25001,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { b_typesUniques[0].attributes.forEach(attributeName => { - const attribute = bTypesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31564,11 +25020,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -31576,7 +25029,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31586,11 +25039,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -31598,7 +25048,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31608,11 +25058,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "ASC", ...(undefined != null ? { @@ -31620,7 +25067,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31630,11 +25077,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "smallint", direction: "DESC", ...(undefined != null ? { @@ -31642,7 +25086,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31652,11 +25096,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "ASC", ...(undefined != null ? { @@ -31664,7 +25105,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31674,11 +25115,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "bigint", direction: "DESC", ...(undefined != null ? { @@ -31686,7 +25124,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31696,11 +25134,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "ASC", ...(undefined != null ? { @@ -31708,7 +25143,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31718,11 +25153,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "numeric", direction: "DESC", ...(undefined != null ? { @@ -31730,7 +25162,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31740,11 +25172,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "ASC", ...(undefined != null ? { @@ -31752,7 +25181,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31762,11 +25191,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "decimal", direction: "DESC", ...(undefined != null ? { @@ -31774,7 +25200,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31784,11 +25210,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "ASC", ...(undefined != null ? { @@ -31796,7 +25219,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31806,11 +25229,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "boolean", direction: "DESC", ...(undefined != null ? { @@ -31818,7 +25238,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31828,11 +25248,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "ASC", ...(undefined != null ? { @@ -31840,7 +25257,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31850,11 +25267,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "varchar", direction: "DESC", ...(undefined != null ? { @@ -31862,7 +25276,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31872,11 +25286,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "ASC", ...(undefined != null ? { @@ -31884,7 +25295,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31894,11 +25305,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "enum", direction: "DESC", ...(undefined != null ? { @@ -31906,7 +25314,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31916,11 +25324,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "ASC", ...(undefined != null ? { @@ -31928,7 +25333,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31938,11 +25343,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain", direction: "DESC", ...(undefined != null ? { @@ -31950,7 +25352,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31960,11 +25362,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "ASC", ...(undefined != null ? { @@ -31972,7 +25371,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31982,11 +25381,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "domain2", direction: "DESC", ...(undefined != null ? { @@ -31994,7 +25390,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32004,11 +25400,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "ASC", ...(undefined != null ? { @@ -32016,7 +25409,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32026,11 +25419,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json", direction: "DESC", ...(undefined != null ? { @@ -32038,7 +25428,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32048,11 +25438,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "ASC", ...(undefined != null ? { @@ -32060,7 +25447,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32070,11 +25457,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "jsonb", direction: "DESC", ...(undefined != null ? { @@ -32082,7 +25466,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32092,11 +25476,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "ASC", ...(undefined != null ? { @@ -32104,7 +25485,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32114,11 +25495,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamp", direction: "DESC", ...(undefined != null ? { @@ -32126,7 +25504,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32136,11 +25514,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "ASC", ...(undefined != null ? { @@ -32148,7 +25523,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32158,11 +25533,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timestamptz", direction: "DESC", ...(undefined != null ? { @@ -32170,7 +25542,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32180,11 +25552,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "ASC", ...(undefined != null ? { @@ -32192,7 +25561,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32202,11 +25571,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "date", direction: "DESC", ...(undefined != null ? { @@ -32214,7 +25580,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32224,11 +25590,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "ASC", ...(undefined != null ? { @@ -32236,7 +25599,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32246,11 +25609,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "time", direction: "DESC", ...(undefined != null ? { @@ -32258,7 +25618,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32268,11 +25628,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "ASC", ...(undefined != null ? { @@ -32280,7 +25637,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32290,11 +25647,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "timetz", direction: "DESC", ...(undefined != null ? { @@ -32302,7 +25656,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32312,11 +25666,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "ASC", ...(undefined != null ? { @@ -32324,7 +25675,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32334,11 +25685,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "interval", direction: "DESC", ...(undefined != null ? { @@ -32346,7 +25694,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32356,11 +25704,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "ASC", ...(undefined != null ? { @@ -32368,7 +25713,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32378,11 +25723,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "money", direction: "DESC", ...(undefined != null ? { @@ -32390,7 +25732,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32400,11 +25742,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "ASC", ...(undefined != null ? { @@ -32412,7 +25751,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32422,11 +25761,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "point", direction: "DESC", ...(undefined != null ? { @@ -32434,7 +25770,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32444,11 +25780,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "ASC", ...(undefined != null ? { @@ -32456,7 +25789,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32466,11 +25799,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullablePoint", direction: "DESC", ...(undefined != null ? { @@ -32478,7 +25808,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32488,11 +25818,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "ASC", ...(undefined != null ? { @@ -32500,7 +25827,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32510,11 +25837,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "inet", direction: "DESC", ...(undefined != null ? { @@ -32522,7 +25846,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32532,11 +25856,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "ASC", ...(undefined != null ? { @@ -32544,7 +25865,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32554,11 +25875,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cidr", direction: "DESC", ...(undefined != null ? { @@ -32566,7 +25884,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32576,11 +25894,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "ASC", ...(undefined != null ? { @@ -32588,7 +25903,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32598,11 +25913,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "macaddr", direction: "DESC", ...(undefined != null ? { @@ -32610,7 +25922,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32620,11 +25932,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "ASC", ...(undefined != null ? { @@ -32632,7 +25941,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32642,11 +25951,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regproc", direction: "DESC", ...(undefined != null ? { @@ -32654,7 +25960,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32664,11 +25970,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "ASC", ...(undefined != null ? { @@ -32676,7 +25979,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32686,11 +25989,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regprocedure", direction: "DESC", ...(undefined != null ? { @@ -32698,7 +25998,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32708,11 +26008,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "ASC", ...(undefined != null ? { @@ -32720,7 +26017,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32730,11 +26027,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoper", direction: "DESC", ...(undefined != null ? { @@ -32742,7 +26036,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32752,11 +26046,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "ASC", ...(undefined != null ? { @@ -32764,7 +26055,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32774,11 +26065,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regoperator", direction: "DESC", ...(undefined != null ? { @@ -32786,7 +26074,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32796,11 +26084,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "ASC", ...(undefined != null ? { @@ -32808,7 +26093,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32818,11 +26103,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regclass", direction: "DESC", ...(undefined != null ? { @@ -32830,7 +26112,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32840,11 +26122,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "ASC", ...(undefined != null ? { @@ -32852,7 +26131,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32862,11 +26141,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regtype", direction: "DESC", ...(undefined != null ? { @@ -32874,7 +26150,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32884,11 +26160,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "ASC", ...(undefined != null ? { @@ -32896,7 +26169,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32906,11 +26179,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regconfig", direction: "DESC", ...(undefined != null ? { @@ -32918,7 +26188,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32928,11 +26198,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "ASC", ...(undefined != null ? { @@ -32940,7 +26207,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32950,11 +26217,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "regdictionary", direction: "DESC", ...(undefined != null ? { @@ -32962,7 +26226,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32972,11 +26236,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "ASC", ...(undefined != null ? { @@ -32984,7 +26245,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32994,11 +26255,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ltree", direction: "DESC", ...(undefined != null ? { @@ -33006,7 +26264,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33015,8 +26273,8 @@ export const plans = { }, BTypeCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -33029,17 +26287,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, smallint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "smallint", @@ -33052,17 +26308,15 @@ export const plans = { type: "attribute", attribute: "smallint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.smallint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, bigint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "bigint", @@ -33075,17 +26329,15 @@ export const plans = { type: "attribute", attribute: "bigint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.bigint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, numeric: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "numeric", @@ -33098,17 +26350,15 @@ export const plans = { type: "attribute", attribute: "numeric", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.numeric.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, decimal: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "decimal", @@ -33121,17 +26371,15 @@ export const plans = { type: "attribute", attribute: "decimal", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.decimal.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.numeric)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, boolean: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "boolean", @@ -33144,17 +26392,15 @@ export const plans = { type: "attribute", attribute: "boolean", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.boolean.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, varchar: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "varchar", @@ -33167,17 +26413,15 @@ export const plans = { type: "attribute", attribute: "varchar", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.varchar.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, enum: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "enum", @@ -33190,17 +26434,15 @@ export const plans = { type: "attribute", attribute: "enum", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.enum.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, bColorCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain", @@ -33213,17 +26455,15 @@ export const plans = { type: "attribute", attribute: "domain", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.domain.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, anIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, domain2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "domain2", @@ -33236,17 +26476,15 @@ export const plans = { type: "attribute", attribute: "domain2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.domain2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, bAnotherIntCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, json: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json", @@ -33259,17 +26497,15 @@ export const plans = { type: "attribute", attribute: "json", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.json.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.json)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonb: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "jsonb", @@ -33282,17 +26518,15 @@ export const plans = { type: "attribute", attribute: "jsonb", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.jsonb.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamp", @@ -33305,17 +26539,15 @@ export const plans = { type: "attribute", attribute: "timestamp", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.timestamp.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timestamptz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timestamptz", @@ -33328,17 +26560,15 @@ export const plans = { type: "attribute", attribute: "timestamptz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.timestamptz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, date: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "date", @@ -33351,17 +26581,15 @@ export const plans = { type: "attribute", attribute: "date", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.date.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.date)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, time: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "time", @@ -33374,17 +26602,15 @@ export const plans = { type: "attribute", attribute: "time", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.time.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.time)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, timetz: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "timetz", @@ -33397,17 +26623,15 @@ export const plans = { type: "attribute", attribute: "timetz", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.timetz.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timetz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, interval: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "interval", @@ -33420,17 +26644,15 @@ export const plans = { type: "attribute", attribute: "interval", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.interval.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.interval)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, money: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "money", @@ -33443,17 +26665,15 @@ export const plans = { type: "attribute", attribute: "money", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.money.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.money)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, point: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "point", @@ -33466,17 +26686,15 @@ export const plans = { type: "attribute", attribute: "point", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.point.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullablePoint: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullablePoint", @@ -33489,17 +26707,15 @@ export const plans = { type: "attribute", attribute: "nullablePoint", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.nullablePoint.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.point)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, inet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "inet", @@ -33512,17 +26728,15 @@ export const plans = { type: "attribute", attribute: "inet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.inet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cidr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cidr", @@ -33535,17 +26749,15 @@ export const plans = { type: "attribute", attribute: "cidr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.cidr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, macaddr: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "macaddr", @@ -33558,17 +26770,15 @@ export const plans = { type: "attribute", attribute: "macaddr", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.macaddr.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regproc: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regproc", @@ -33581,17 +26791,15 @@ export const plans = { type: "attribute", attribute: "regproc", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.regproc.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regproc)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regprocedure: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regprocedure", @@ -33604,17 +26812,15 @@ export const plans = { type: "attribute", attribute: "regprocedure", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.regprocedure.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regprocedure)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoper: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoper", @@ -33627,17 +26833,15 @@ export const plans = { type: "attribute", attribute: "regoper", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.regoper.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoper)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regoperator: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regoperator", @@ -33650,17 +26854,15 @@ export const plans = { type: "attribute", attribute: "regoperator", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.regoperator.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regoperator)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regclass: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regclass", @@ -33673,17 +26875,15 @@ export const plans = { type: "attribute", attribute: "regclass", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.regclass.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regclass)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regtype: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regtype", @@ -33696,17 +26896,15 @@ export const plans = { type: "attribute", attribute: "regtype", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.regtype.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regtype)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regconfig: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regconfig", @@ -33719,17 +26917,15 @@ export const plans = { type: "attribute", attribute: "regconfig", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.regconfig.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regconfig)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, regdictionary: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "regdictionary", @@ -33742,17 +26938,15 @@ export const plans = { type: "attribute", attribute: "regdictionary", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.regdictionary.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.regdictionary)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ltree: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ltree", @@ -33765,13 +26959,11 @@ export const plans = { type: "attribute", attribute: "ltree", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bTypes.attributes.ltree.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, spec_bTypes_attributes_ltree_codec_ltree)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PointInput: { @@ -33879,31 +27071,21 @@ export const plans = { } }, PostOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33912,19 +27094,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { postUniques[0].attributes.forEach(attributeName => { - const attribute = postCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33933,11 +27113,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -33945,7 +27122,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33955,11 +27132,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -33967,7 +27141,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33977,11 +27151,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "ASC", ...(undefined != null ? { @@ -33989,7 +27160,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33999,11 +27170,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "headline", direction: "DESC", ...(undefined != null ? { @@ -34011,7 +27179,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34021,11 +27189,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "ASC", ...(undefined != null ? { @@ -34033,7 +27198,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34043,11 +27208,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "body", direction: "DESC", ...(undefined != null ? { @@ -34055,7 +27217,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34065,11 +27227,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -34077,7 +27236,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34087,11 +27246,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -34099,7 +27255,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34108,8 +27264,8 @@ export const plans = { }, PostCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -34122,17 +27278,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, headline: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "headline", @@ -34145,17 +27299,15 @@ export const plans = { type: "attribute", attribute: "headline", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.headline.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, body: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "body", @@ -34168,17 +27320,15 @@ export const plans = { type: "attribute", attribute: "body", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.body.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -34191,13 +27341,11 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_post.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ForeignKeyConnection: { @@ -34249,23 +27397,12 @@ export const plans = { } }, ForeignKeyOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PERSON_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -34273,7 +27410,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34283,11 +27420,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -34295,7 +27429,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34305,11 +27439,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "ASC", ...(undefined != null ? { @@ -34317,7 +27448,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34327,11 +27458,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "DESC", ...(undefined != null ? { @@ -34339,7 +27467,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34349,11 +27477,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "ASC", ...(undefined != null ? { @@ -34361,7 +27486,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34371,11 +27496,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "DESC", ...(undefined != null ? { @@ -34383,7 +27505,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34392,8 +27514,8 @@ export const plans = { }, ForeignKeyCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -34406,17 +27528,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_1", @@ -34429,17 +27549,15 @@ export const plans = { type: "attribute", attribute: "compound_key_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_2", @@ -34452,13 +27570,11 @@ export const plans = { type: "attribute", attribute: "compound_key_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_foreignKey.attributes.compound_key_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, CPersonSecret: { @@ -34521,31 +27637,21 @@ export const plans = { } }, CCompoundKeyOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = cCompoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34554,19 +27660,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_compound_keyUniques[0].attributes.forEach(attributeName => { - const attribute = cCompoundKeyCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34575,11 +27679,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "ASC", ...(undefined != null ? { @@ -34587,7 +27688,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34597,11 +27698,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_2", direction: "DESC", ...(undefined != null ? { @@ -34609,7 +27707,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34619,11 +27717,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "ASC", ...(undefined != null ? { @@ -34631,7 +27726,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34641,11 +27736,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id_1", direction: "DESC", ...(undefined != null ? { @@ -34653,7 +27745,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34663,11 +27755,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "ASC", ...(undefined != null ? { @@ -34675,7 +27764,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34685,11 +27774,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "extra", direction: "DESC", ...(undefined != null ? { @@ -34697,7 +27783,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34706,8 +27792,8 @@ export const plans = { }, CCompoundKeyCondition: { personId2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_2", @@ -34720,17 +27806,15 @@ export const plans = { type: "attribute", attribute: "person_id_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cCompoundKey.attributes.person_id_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id_1", @@ -34743,17 +27827,15 @@ export const plans = { type: "attribute", attribute: "person_id_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cCompoundKey.attributes.person_id_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, extra: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "extra", @@ -34766,13 +27848,11 @@ export const plans = { type: "attribute", attribute: "extra", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cCompoundKey.attributes.extra.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, CMyTable: { @@ -35342,23 +28422,12 @@ export const plans = { } }, NonUpdatableViewOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COLUMN_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "ASC", ...(undefined != null ? { @@ -35366,7 +28435,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35376,11 +28445,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "?column?", direction: "DESC", ...(undefined != null ? { @@ -35388,7 +28454,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35397,8 +28463,8 @@ export const plans = { }, NonUpdatableViewCondition: { column: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "?column?", @@ -35411,13 +28477,11 @@ export const plans = { type: "attribute", attribute: "?column?", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_nonUpdatableView.attributes["?column?"].codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, InputConnection: { @@ -35446,31 +28510,21 @@ export const plans = { } }, InputOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35479,19 +28533,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { inputsUniques[0].attributes.forEach(attributeName => { - const attribute = inputsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35500,11 +28552,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -35512,7 +28561,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35522,11 +28571,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -35534,7 +28580,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35543,8 +28589,8 @@ export const plans = { }, InputCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35557,13 +28603,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_inputs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PatchConnection: { @@ -35592,31 +28636,21 @@ export const plans = { } }, PatchOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35625,19 +28659,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { patchsUniques[0].attributes.forEach(attributeName => { - const attribute = patchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35646,11 +28678,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -35658,7 +28687,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35668,11 +28697,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -35680,7 +28706,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35689,8 +28715,8 @@ export const plans = { }, PatchCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35703,13 +28729,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_patchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedConnection: { @@ -35738,31 +28762,21 @@ export const plans = { } }, ReservedOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35771,19 +28785,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedUniques[0].attributes.forEach(attributeName => { - const attribute = reservedCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35792,11 +28804,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -35804,7 +28813,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35814,11 +28823,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -35826,7 +28832,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35835,8 +28841,8 @@ export const plans = { }, ReservedCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35849,13 +28855,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reserved.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedPatchRecordConnection: { @@ -35884,31 +28888,21 @@ export const plans = { } }, ReservedPatchRecordOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35917,19 +28911,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reservedPatchsUniques[0].attributes.forEach(attributeName => { - const attribute = reservedPatchsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35938,11 +28930,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -35950,7 +28939,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35960,11 +28949,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -35972,7 +28958,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -35981,8 +28967,8 @@ export const plans = { }, ReservedPatchRecordCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -35995,13 +28981,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedPatchs.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ReservedInputRecordConnection: { @@ -36030,31 +29014,21 @@ export const plans = { } }, ReservedInputRecordOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36063,19 +29037,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { reserved_inputUniques[0].attributes.forEach(attributeName => { - const attribute = reservedInputCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36084,11 +29056,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36096,7 +29065,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36106,11 +29075,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36118,7 +29084,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36127,8 +29093,8 @@ export const plans = { }, ReservedInputRecordCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -36141,13 +29107,11 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_reservedInput.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, DefaultValueConnection: { @@ -36176,31 +29140,21 @@ export const plans = { } }, DefaultValueOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36209,19 +29163,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { default_valueUniques[0].attributes.forEach(attributeName => { - const attribute = defaultValueCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36230,11 +29182,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36242,7 +29191,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36252,11 +29201,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36264,7 +29210,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36274,11 +29220,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "ASC", ...(undefined != null ? { @@ -36286,7 +29229,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36296,11 +29239,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "null_value", direction: "DESC", ...(undefined != null ? { @@ -36308,7 +29248,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36317,8 +29257,8 @@ export const plans = { }, DefaultValueCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -36331,17 +29271,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullValue: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "null_value", @@ -36354,13 +29292,11 @@ export const plans = { type: "attribute", attribute: "null_value", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_defaultValue.attributes.null_value.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, NoPrimaryKeyConnection: { @@ -36389,23 +29325,12 @@ export const plans = { } }, NoPrimaryKeyOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ROW_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -36413,7 +29338,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36423,11 +29348,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -36435,7 +29357,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36445,11 +29367,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "ASC", ...(undefined != null ? { @@ -36457,7 +29376,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36467,11 +29386,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "str", direction: "DESC", ...(undefined != null ? { @@ -36479,7 +29395,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36488,8 +29404,8 @@ export const plans = { }, NoPrimaryKeyCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -36502,17 +29418,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, str: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "str", @@ -36525,13 +29439,11 @@ export const plans = { type: "attribute", attribute: "str", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_noPrimaryKey.attributes.str.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, TestviewConnection: { @@ -36572,23 +29484,12 @@ export const plans = { } }, TestviewOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, TESTVIEWID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "ASC", ...(undefined != null ? { @@ -36596,7 +29497,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36606,11 +29507,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "testviewid", direction: "DESC", ...(undefined != null ? { @@ -36618,7 +29516,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36628,11 +29526,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -36640,7 +29535,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36650,11 +29545,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -36662,7 +29554,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36672,11 +29564,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -36684,7 +29573,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36694,11 +29583,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -36706,7 +29592,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36715,8 +29601,8 @@ export const plans = { }, TestviewCondition: { testviewid: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "testviewid", @@ -36729,17 +29615,15 @@ export const plans = { type: "attribute", attribute: "testviewid", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.testviewid.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -36752,17 +29636,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -36775,13 +29657,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_testview.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, UniqueForeignKeyConnection: { @@ -36810,23 +29690,12 @@ export const plans = { } }, UniqueForeignKeyOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, COMPOUND_KEY_1_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "ASC", ...(undefined != null ? { @@ -36834,7 +29703,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36844,11 +29713,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_1", direction: "DESC", ...(undefined != null ? { @@ -36856,7 +29722,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36866,11 +29732,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "ASC", ...(undefined != null ? { @@ -36878,7 +29741,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36888,11 +29751,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "compound_key_2", direction: "DESC", ...(undefined != null ? { @@ -36900,7 +29760,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -36909,8 +29769,8 @@ export const plans = { }, UniqueForeignKeyCondition: { compoundKey1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_1", @@ -36923,17 +29783,15 @@ export const plans = { type: "attribute", attribute: "compound_key_1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_uniqueForeignKey.attributes.compound_key_1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, compoundKey2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "compound_key_2", @@ -36946,13 +29804,11 @@ export const plans = { type: "attribute", attribute: "compound_key_2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_uniqueForeignKey.attributes.compound_key_2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, CMyTableConnection: { @@ -36981,31 +29837,21 @@ export const plans = { } }, CMyTableOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = cMyTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37014,19 +29860,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_my_tableUniques[0].attributes.forEach(attributeName => { - const attribute = cMyTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37035,11 +29879,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37047,7 +29888,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37057,11 +29898,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37069,7 +29907,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37079,11 +29917,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "ASC", ...(undefined != null ? { @@ -37091,7 +29926,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37101,11 +29936,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "json_data", direction: "DESC", ...(undefined != null ? { @@ -37113,7 +29945,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37122,8 +29954,8 @@ export const plans = { }, CMyTableCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37136,17 +29968,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cMyTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, jsonData: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "json_data", @@ -37159,13 +29989,11 @@ export const plans = { type: "attribute", attribute: "json_data", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cMyTable.attributes.json_data.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.jsonb)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, CPersonSecretConnection: { @@ -37194,31 +30022,21 @@ export const plans = { } }, CPersonSecretOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = cPersonSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37227,19 +30045,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_person_secretUniques[0].attributes.forEach(attributeName => { - const attribute = cPersonSecretCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37248,11 +30064,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -37260,7 +30073,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37270,11 +30083,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -37282,7 +30092,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37292,11 +30102,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "ASC", ...(undefined != null ? { @@ -37304,7 +30111,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37314,11 +30121,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "sekrit", direction: "DESC", ...(undefined != null ? { @@ -37326,7 +30130,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37335,8 +30139,8 @@ export const plans = { }, CPersonSecretCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -37349,17 +30153,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cPersonSecret.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, secret: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "sekrit", @@ -37372,13 +30174,11 @@ export const plans = { type: "attribute", attribute: "sekrit", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cPersonSecret.attributes.sekrit.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ViewTableConnection: { @@ -37407,31 +30207,21 @@ export const plans = { } }, ViewTableOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37440,19 +30230,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { view_tableUniques[0].attributes.forEach(attributeName => { - const attribute = viewTableCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37461,11 +30249,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -37473,7 +30258,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37483,11 +30268,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -37495,7 +30277,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37505,11 +30287,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -37517,7 +30296,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37527,11 +30306,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -37539,7 +30315,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37549,11 +30325,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -37561,7 +30334,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37571,11 +30344,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -37583,7 +30353,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37592,8 +30362,8 @@ export const plans = { }, ViewTableCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -37606,17 +30376,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -37629,17 +30397,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -37652,13 +30418,11 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_viewTable.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BUpdatableViewConnection: { @@ -37702,23 +30466,12 @@ export const plans = { } }, BUpdatableViewOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, X_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "ASC", ...(undefined != null ? { @@ -37726,7 +30479,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37736,11 +30489,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "x", direction: "DESC", ...(undefined != null ? { @@ -37748,7 +30498,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37758,11 +30508,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -37770,7 +30517,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37780,11 +30527,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -37792,7 +30536,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37802,11 +30546,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -37814,7 +30555,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37824,11 +30565,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -37836,7 +30574,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37846,11 +30584,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "ASC", ...(undefined != null ? { @@ -37858,7 +30593,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37868,11 +30603,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "constant", direction: "DESC", ...(undefined != null ? { @@ -37880,7 +30612,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -37889,8 +30621,8 @@ export const plans = { }, BUpdatableViewCondition: { x: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "x", @@ -37903,17 +30635,15 @@ export const plans = { type: "attribute", attribute: "x", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bUpdatableView.attributes.x.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -37926,17 +30656,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bUpdatableView.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -37949,17 +30677,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bUpdatableView.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, constant: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "constant", @@ -37972,13 +30698,11 @@ export const plans = { type: "attribute", attribute: "constant", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bUpdatableView.attributes.constant.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable1Connection: { @@ -38007,31 +30731,21 @@ export const plans = { } }, SimilarTable1OrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38040,19 +30754,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_1Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable1Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38061,11 +30773,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -38073,7 +30782,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38083,11 +30792,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -38095,7 +30801,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38105,11 +30811,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "ASC", ...(undefined != null ? { @@ -38117,7 +30820,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38127,11 +30830,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col1", direction: "DESC", ...(undefined != null ? { @@ -38139,7 +30839,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38149,11 +30849,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "ASC", ...(undefined != null ? { @@ -38161,7 +30858,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38171,11 +30868,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col2", direction: "DESC", ...(undefined != null ? { @@ -38183,7 +30877,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38193,11 +30887,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -38205,7 +30896,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38215,11 +30906,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -38227,7 +30915,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38236,8 +30924,8 @@ export const plans = { }, SimilarTable1Condition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -38250,17 +30938,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col1: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col1", @@ -38273,17 +30959,15 @@ export const plans = { type: "attribute", attribute: "col1", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col1.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col2: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col2", @@ -38296,17 +30980,15 @@ export const plans = { type: "attribute", attribute: "col2", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col2.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -38319,13 +31001,11 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable1.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SimilarTable2Connection: { @@ -38354,31 +31034,21 @@ export const plans = { } }, SimilarTable2OrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38387,19 +31057,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { similar_table_2Uniques[0].attributes.forEach(attributeName => { - const attribute = similarTable2Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38408,11 +31076,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -38420,7 +31085,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38430,11 +31095,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -38442,7 +31104,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38452,11 +31114,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "ASC", ...(undefined != null ? { @@ -38464,7 +31123,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38474,11 +31133,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col3", direction: "DESC", ...(undefined != null ? { @@ -38486,7 +31142,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38496,11 +31152,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "ASC", ...(undefined != null ? { @@ -38508,7 +31161,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38518,11 +31171,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col4", direction: "DESC", ...(undefined != null ? { @@ -38530,7 +31180,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38540,11 +31190,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "ASC", ...(undefined != null ? { @@ -38552,7 +31199,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38562,11 +31209,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "col5", direction: "DESC", ...(undefined != null ? { @@ -38574,7 +31218,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38583,8 +31227,8 @@ export const plans = { }, SimilarTable2Condition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -38597,17 +31241,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col3: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col3", @@ -38620,17 +31262,15 @@ export const plans = { type: "attribute", attribute: "col3", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col3.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col4: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col4", @@ -38643,17 +31283,15 @@ export const plans = { type: "attribute", attribute: "col4", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col4.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, col5: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "col5", @@ -38666,13 +31304,11 @@ export const plans = { type: "attribute", attribute: "col5", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_similarTable2.attributes.col5.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, CNullTestRecordConnection: { @@ -38701,31 +31337,21 @@ export const plans = { } }, CNullTestRecordOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = cNullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38734,19 +31360,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_null_test_recordUniques[0].attributes.forEach(attributeName => { - const attribute = cNullTestRecordCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38755,11 +31379,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -38767,7 +31388,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38777,11 +31398,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -38789,7 +31407,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38799,11 +31417,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "ASC", ...(undefined != null ? { @@ -38811,7 +31426,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38821,11 +31436,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_text", direction: "DESC", ...(undefined != null ? { @@ -38833,7 +31445,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38843,11 +31455,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "ASC", ...(undefined != null ? { @@ -38855,7 +31464,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38865,11 +31474,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "nullable_int", direction: "DESC", ...(undefined != null ? { @@ -38877,7 +31483,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38887,11 +31493,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "ASC", ...(undefined != null ? { @@ -38899,7 +31502,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38909,11 +31512,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "non_null_text", direction: "DESC", ...(undefined != null ? { @@ -38921,7 +31521,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -38930,8 +31530,8 @@ export const plans = { }, CNullTestRecordCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -38944,17 +31544,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cNullTestRecord.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_text", @@ -38967,17 +31565,15 @@ export const plans = { type: "attribute", attribute: "nullable_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cNullTestRecord.attributes.nullable_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nullableInt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "nullable_int", @@ -38990,17 +31586,15 @@ export const plans = { type: "attribute", attribute: "nullable_int", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cNullTestRecord.attributes.nullable_int.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, nonNullText: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "non_null_text", @@ -39013,13 +31607,11 @@ export const plans = { type: "attribute", attribute: "non_null_text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cNullTestRecord.attributes.non_null_text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, CEdgeCaseConnection: { @@ -39044,7 +31636,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs83(args); + const extraSelectArgs = makeArgs_c_edge_case_computed(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -39059,27 +31651,21 @@ export const plans = { if (resource_c_edge_case_computedPgResource.isUnique && !resource_c_edge_case_computedPgResource.codec.attributes && typeof resource_c_edge_case_computedPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_c_edge_case_computedPgResource.codec, undefined)`${resource_c_edge_case_computedPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_c_edge_case_computedPgResource.from, resource_c_edge_case_computedPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_c_edge_case_computedPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_c_edge_case_computedPgResource.execute(selectArgs); @@ -39104,23 +31690,12 @@ export const plans = { } }, CEdgeCaseOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, NOT_NULL_HAS_DEFAULT_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "ASC", ...(undefined != null ? { @@ -39128,7 +31703,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39138,11 +31713,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "not_null_has_default", direction: "DESC", ...(undefined != null ? { @@ -39150,7 +31722,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39160,11 +31732,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "ASC", ...(undefined != null ? { @@ -39172,7 +31741,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39182,11 +31751,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "wont_cast_easy", direction: "DESC", ...(undefined != null ? { @@ -39194,7 +31760,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39204,11 +31770,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "ASC", ...(undefined != null ? { @@ -39216,7 +31779,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39226,11 +31789,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "row_id", direction: "DESC", ...(undefined != null ? { @@ -39238,7 +31798,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39247,8 +31807,8 @@ export const plans = { }, CEdgeCaseCondition: { notNullHasDefault: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "not_null_has_default", @@ -39261,17 +31821,15 @@ export const plans = { type: "attribute", attribute: "not_null_has_default", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cEdgeCase.attributes.not_null_has_default.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, wontCastEasy: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "wont_cast_easy", @@ -39284,17 +31842,15 @@ export const plans = { type: "attribute", attribute: "wont_cast_easy", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cEdgeCase.attributes.wont_cast_easy.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int2)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "row_id", @@ -39307,13 +31863,11 @@ export const plans = { type: "attribute", attribute: "row_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cEdgeCase.attributes.row_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, CLeftArmConnection: { @@ -39342,31 +31896,21 @@ export const plans = { } }, CLeftArmOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_left_armUniques[0].attributes.forEach(attributeName => { - const attribute = cLeftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39375,19 +31919,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_left_armUniques[0].attributes.forEach(attributeName => { - const attribute = cLeftArmCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39396,11 +31938,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39408,7 +31947,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39418,11 +31957,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39430,7 +31966,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39440,11 +31976,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -39452,7 +31985,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39462,11 +31995,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -39474,7 +32004,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39484,11 +32014,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "ASC", ...(undefined != null ? { @@ -39496,7 +32023,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39506,11 +32033,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "length_in_metres", direction: "DESC", ...(undefined != null ? { @@ -39518,7 +32042,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39528,11 +32052,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "ASC", ...(undefined != null ? { @@ -39540,7 +32061,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39550,11 +32071,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "mood", direction: "DESC", ...(undefined != null ? { @@ -39562,7 +32080,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39571,8 +32089,8 @@ export const plans = { }, CLeftArmCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39585,17 +32103,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cLeftArm.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -39608,17 +32124,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cLeftArm.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lengthInMetres: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "length_in_metres", @@ -39631,17 +32145,15 @@ export const plans = { type: "attribute", attribute: "length_in_metres", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cLeftArm.attributes.length_in_metres.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, mood: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "mood", @@ -39654,13 +32166,11 @@ export const plans = { type: "attribute", attribute: "mood", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cLeftArm.attributes.mood.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, CIssue756Connection: { @@ -39689,31 +32199,21 @@ export const plans = { } }, CIssue756OrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = cIssue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39722,19 +32222,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_issue756Uniques[0].attributes.forEach(attributeName => { - const attribute = cIssue756Codec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39743,11 +32241,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39755,7 +32250,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39765,11 +32260,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39777,7 +32269,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39787,11 +32279,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "ASC", ...(undefined != null ? { @@ -39799,7 +32288,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39809,11 +32298,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "ts", direction: "DESC", ...(undefined != null ? { @@ -39821,7 +32307,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39830,8 +32316,8 @@ export const plans = { }, CIssue756Condition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -39844,17 +32330,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cIssue756.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, ts: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "ts", @@ -39867,41 +32351,29 @@ export const plans = { type: "attribute", attribute: "ts", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cIssue756.attributes.ts.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, cNotNullTimestampCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, CPersonOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_personUniques[0].attributes.forEach(attributeName => { - const attribute = cPersonCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39910,19 +32382,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { c_personUniques[0].attributes.forEach(attributeName => { - const attribute = cPersonCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39931,11 +32401,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -39943,7 +32410,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39953,11 +32420,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -39965,7 +32429,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39975,11 +32439,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "ASC", ...(undefined != null ? { @@ -39987,7 +32448,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -39997,11 +32458,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_full_name", direction: "DESC", ...(undefined != null ? { @@ -40009,7 +32467,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40019,11 +32477,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "ASC", ...(undefined != null ? { @@ -40031,7 +32486,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40041,11 +32496,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "about", direction: "DESC", ...(undefined != null ? { @@ -40053,7 +32505,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40063,11 +32515,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "ASC", ...(undefined != null ? { @@ -40075,7 +32524,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40085,11 +32534,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "email", direction: "DESC", ...(undefined != null ? { @@ -40097,7 +32543,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40107,11 +32553,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "ASC", ...(undefined != null ? { @@ -40119,7 +32562,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40129,11 +32572,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "config", direction: "DESC", ...(undefined != null ? { @@ -40141,7 +32581,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40151,11 +32591,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "ASC", ...(undefined != null ? { @@ -40163,7 +32600,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40173,11 +32610,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_ip", direction: "DESC", ...(undefined != null ? { @@ -40185,7 +32619,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40195,11 +32629,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "ASC", ...(undefined != null ? { @@ -40207,7 +32638,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40217,11 +32648,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_login_from_subnet", direction: "DESC", ...(undefined != null ? { @@ -40229,7 +32657,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40239,11 +32667,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "ASC", ...(undefined != null ? { @@ -40251,7 +32676,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40261,11 +32686,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "user_mac", direction: "DESC", ...(undefined != null ? { @@ -40273,7 +32695,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40283,11 +32705,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -40295,7 +32714,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40305,11 +32724,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -40317,7 +32733,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40326,8 +32742,8 @@ export const plans = { }, CPersonCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40340,17 +32756,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cPerson.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_full_name", @@ -40363,17 +32777,15 @@ export const plans = { type: "attribute", attribute: "person_full_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cPerson.attributes.person_full_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.varchar)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, about: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "about", @@ -40386,17 +32798,15 @@ export const plans = { type: "attribute", attribute: "about", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cPerson.attributes.about.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, email: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "email", @@ -40409,17 +32819,15 @@ export const plans = { type: "attribute", attribute: "email", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cPerson.attributes.email.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, bEmailCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, config: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "config", @@ -40432,17 +32840,15 @@ export const plans = { type: "attribute", attribute: "config", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cPerson.attributes.config.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.hstore)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromIp: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_ip", @@ -40455,17 +32861,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_ip", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cPerson.attributes.last_login_from_ip.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.inet)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastLoginFromSubnet: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_login_from_subnet", @@ -40478,17 +32882,15 @@ export const plans = { type: "attribute", attribute: "last_login_from_subnet", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cPerson.attributes.last_login_from_subnet.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.cidr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, userMac: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "user_mac", @@ -40501,17 +32903,15 @@ export const plans = { type: "attribute", attribute: "user_mac", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cPerson.attributes.user_mac.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.macaddr)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -40524,13 +32924,11 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_cPerson.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamp)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, BListConnection: { @@ -40559,31 +32957,21 @@ export const plans = { } }, BListOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { b_listsUniques[0].attributes.forEach(attributeName => { - const attribute = bListsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40592,19 +32980,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { b_listsUniques[0].attributes.forEach(attributeName => { - const attribute = bListsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40613,11 +32999,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -40625,7 +33008,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40635,11 +33018,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -40647,7 +33027,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -40656,8 +33036,8 @@ export const plans = { }, BListCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -40670,20 +33050,18 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_bLists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, cMutationOut: { plan($root, args, _info) { - const selectArgs = makeArgs84(args, ["input"]); + const selectArgs = makeArgs_c_mutation_out(args, ["input"]); const $result = resource_c_mutation_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40693,9 +33071,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40703,7 +33090,7 @@ export const plans = { }, cMutationOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs85(args, ["input"]); + const selectArgs = makeArgs_c_mutation_out_setof(args, ["input"]); const $result = resource_c_mutation_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40713,9 +33100,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40723,7 +33119,7 @@ export const plans = { }, cMutationOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs86(args, ["input"]); + const selectArgs = makeArgs_c_mutation_out_unnamed(args, ["input"]); const $result = resource_c_mutation_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40733,9 +33129,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40743,7 +33148,7 @@ export const plans = { }, cNoArgsMutation: { plan($root, args, _info) { - const selectArgs = makeArgs87(args, ["input"]); + const selectArgs = makeArgs_c_no_args_mutation(args, ["input"]); const $result = resource_c_no_args_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40753,9 +33158,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40763,7 +33177,7 @@ export const plans = { }, returnVoidMutation: { plan($root, args, _info) { - const selectArgs = makeArgs88(args, ["input"]); + const selectArgs = makeArgs_return_void_mutation(args, ["input"]); const $result = resource_return_void_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40773,9 +33187,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40783,7 +33206,7 @@ export const plans = { }, mutationIntervalSet: { plan($root, args, _info) { - const selectArgs = makeArgs89(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_set(args, ["input"]); const $result = resource_mutation_interval_setPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40793,9 +33216,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40803,7 +33235,7 @@ export const plans = { }, cMutationInOut: { plan($root, args, _info) { - const selectArgs = makeArgs90(args, ["input"]); + const selectArgs = makeArgs_c_mutation_in_out(args, ["input"]); const $result = resource_c_mutation_in_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40813,9 +33245,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40823,7 +33264,7 @@ export const plans = { }, cMutationReturnsTableOneCol: { plan($root, args, _info) { - const selectArgs = makeArgs91(args, ["input"]); + const selectArgs = makeArgs_c_mutation_returns_table_one_col(args, ["input"]); const $result = resource_c_mutation_returns_table_one_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40833,9 +33274,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40843,7 +33293,7 @@ export const plans = { }, cJsonIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs92(args, ["input"]); + const selectArgs = makeArgs_c_json_identity_mutation(args, ["input"]); const $result = resource_c_json_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40853,9 +33303,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40863,7 +33322,7 @@ export const plans = { }, cJsonbIdentityMutation: { plan($root, args, _info) { - const selectArgs = makeArgs93(args, ["input"]); + const selectArgs = makeArgs_c_jsonb_identity_mutation(args, ["input"]); const $result = resource_c_jsonb_identity_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40873,9 +33332,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40883,7 +33351,7 @@ export const plans = { }, cJsonbIdentityMutationPlpgsql: { plan($root, args, _info) { - const selectArgs = makeArgs94(args, ["input"]); + const selectArgs = makeArgs_c_jsonb_identity_mutation_plpgsql(args, ["input"]); const $result = resource_c_jsonb_identity_mutation_plpgsqlPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40893,9 +33361,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40903,7 +33380,7 @@ export const plans = { }, cJsonbIdentityMutationPlpgsqlWithDefault: { plan($root, args, _info) { - const selectArgs = makeArgs95(args, ["input"]); + const selectArgs = makeArgs_c_jsonb_identity_mutation_plpgsql_with_default(args, ["input"]); const $result = resource_c_jsonb_identity_mutation_plpgsql_with_defaultPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40913,9 +33390,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40923,7 +33409,7 @@ export const plans = { }, add1Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs96(args, ["input"]); + const selectArgs = makeArgs_add_1_mutation(args, ["input"]); const $result = resource_add_1_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40933,9 +33419,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40943,7 +33438,7 @@ export const plans = { }, add2Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs97(args, ["input"]); + const selectArgs = makeArgs_add_2_mutation(args, ["input"]); const $result = resource_add_2_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40953,9 +33448,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40963,7 +33467,7 @@ export const plans = { }, add3Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs98(args, ["input"]); + const selectArgs = makeArgs_add_3_mutation(args, ["input"]); const $result = resource_add_3_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40973,9 +33477,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -40983,7 +33496,7 @@ export const plans = { }, add4Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs99(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation(args, ["input"]); const $result = resource_add_4_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40993,9 +33506,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41003,7 +33525,7 @@ export const plans = { }, add4MutationError: { plan($root, args, _info) { - const selectArgs = makeArgs100(args, ["input"]); + const selectArgs = makeArgs_add_4_mutation_error(args, ["input"]); const $result = resource_add_4_mutation_errorPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41013,9 +33535,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41023,7 +33554,7 @@ export const plans = { }, bMult1: { plan($root, args, _info) { - const selectArgs = makeArgs101(args, ["input"]); + const selectArgs = makeArgs_b_mult_1(args, ["input"]); const $result = resource_b_mult_1PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41033,9 +33564,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41043,7 +33583,7 @@ export const plans = { }, bMult2: { plan($root, args, _info) { - const selectArgs = makeArgs102(args, ["input"]); + const selectArgs = makeArgs_b_mult_2(args, ["input"]); const $result = resource_b_mult_2PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41053,9 +33593,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41063,7 +33612,7 @@ export const plans = { }, bMult3: { plan($root, args, _info) { - const selectArgs = makeArgs103(args, ["input"]); + const selectArgs = makeArgs_b_mult_3(args, ["input"]); const $result = resource_b_mult_3PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41073,9 +33622,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41083,7 +33641,7 @@ export const plans = { }, bMult4: { plan($root, args, _info) { - const selectArgs = makeArgs104(args, ["input"]); + const selectArgs = makeArgs_b_mult_4(args, ["input"]); const $result = resource_b_mult_4PgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41093,9 +33651,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41103,7 +33670,7 @@ export const plans = { }, cMutationInInout: { plan($root, args, _info) { - const selectArgs = makeArgs105(args, ["input"]); + const selectArgs = makeArgs_c_mutation_in_inout(args, ["input"]); const $result = resource_c_mutation_in_inoutPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41113,9 +33680,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41123,7 +33699,7 @@ export const plans = { }, cMutationOutOut: { plan($root, args, _info) { - const selectArgs = makeArgs106(args, ["input"]); + const selectArgs = makeArgs_c_mutation_out_out(args, ["input"]); const $result = resource_c_mutation_out_outPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41133,9 +33709,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41143,7 +33728,7 @@ export const plans = { }, cMutationOutOutSetof: { plan($root, args, _info) { - const selectArgs = makeArgs107(args, ["input"]); + const selectArgs = makeArgs_c_mutation_out_out_setof(args, ["input"]); const $result = resource_c_mutation_out_out_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41153,9 +33738,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41163,7 +33757,7 @@ export const plans = { }, cMutationOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs108(args, ["input"]); + const selectArgs = makeArgs_c_mutation_out_out_unnamed(args, ["input"]); const $result = resource_c_mutation_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41173,9 +33767,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41183,7 +33786,7 @@ export const plans = { }, cIntSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs109(args, ["input"]); + const selectArgs = makeArgs_c_int_set_mutation(args, ["input"]); const $result = resource_c_int_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41193,9 +33796,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41203,7 +33815,7 @@ export const plans = { }, cMutationOutUnnamedOutOutUnnamed: { plan($root, args, _info) { - const selectArgs = makeArgs110(args, ["input"]); + const selectArgs = makeArgs_c_mutation_out_unnamed_out_out_unnamed(args, ["input"]); const $result = resource_c_mutation_out_unnamed_out_out_unnamedPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41213,9 +33825,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41223,7 +33844,7 @@ export const plans = { }, cMutationReturnsTableMultiCol: { plan($root, args, _info) { - const selectArgs = makeArgs111(args, ["input"]); + const selectArgs = makeArgs_c_mutation_returns_table_multi_col(args, ["input"]); const $result = resource_c_mutation_returns_table_multi_colPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41233,9 +33854,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41243,7 +33873,7 @@ export const plans = { }, bGuidFn: { plan($root, args, _info) { - const selectArgs = makeArgs112(args, ["input"]); + const selectArgs = makeArgs_b_guid_fn(args, ["input"]); const $result = resource_b_guid_fnPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41253,9 +33883,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41263,7 +33902,7 @@ export const plans = { }, mutationIntervalArray: { plan($root, args, _info) { - const selectArgs = makeArgs113(args, ["input"]); + const selectArgs = makeArgs_mutation_interval_array(args, ["input"]); const $result = resource_mutation_interval_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41273,9 +33912,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41283,7 +33931,7 @@ export const plans = { }, mutationTextArray: { plan($root, args, _info) { - const selectArgs = makeArgs114(args, ["input"]); + const selectArgs = makeArgs_mutation_text_array(args, ["input"]); const $result = resource_mutation_text_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41293,9 +33941,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41303,7 +33960,7 @@ export const plans = { }, bListBdeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs115(args, ["input"]); + const selectArgs = makeArgs_b_list_bde_mutation(args, ["input"]); const $result = resource_b_list_bde_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41313,9 +33970,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41323,7 +33989,7 @@ export const plans = { }, bAuthenticateFail: { plan($root, args, _info) { - const selectArgs = makeArgs116(args, ["input"]); + const selectArgs = makeArgs_b_authenticate_fail(args, ["input"]); const $result = resource_b_authenticate_failPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41333,9 +33999,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41343,7 +34018,7 @@ export const plans = { }, bAuthenticate: { plan($root, args, _info) { - const selectArgs = makeArgs117(args, ["input"]); + const selectArgs = makeArgs_b_authenticate(args, ["input"]); const $result = resource_b_authenticatePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41353,9 +34028,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41363,7 +34047,7 @@ export const plans = { }, cLeftArmIdentity: { plan($root, args, _info) { - const selectArgs = makeArgs118(args, ["input"]); + const selectArgs = makeArgs_c_left_arm_identity(args, ["input"]); const $result = resource_c_left_arm_identityPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41373,9 +34057,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41383,7 +34076,7 @@ export const plans = { }, cIssue756Mutation: { plan($root, args, _info) { - const selectArgs = makeArgs119(args, ["input"]); + const selectArgs = makeArgs_c_issue756_mutation(args, ["input"]); const $result = resource_c_issue756_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41393,9 +34086,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41403,7 +34105,7 @@ export const plans = { }, cIssue756SetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs120(args, ["input"]); + const selectArgs = makeArgs_c_issue756_set_mutation(args, ["input"]); const $result = resource_c_issue756_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41413,9 +34115,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41423,7 +34134,7 @@ export const plans = { }, bAuthenticateMany: { plan($root, args, _info) { - const selectArgs = makeArgs121(args, ["input"]); + const selectArgs = makeArgs_b_authenticate_many(args, ["input"]); const $result = resource_b_authenticate_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41433,9 +34144,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41443,7 +34163,7 @@ export const plans = { }, bAuthenticatePayload: { plan($root, args, _info) { - const selectArgs = makeArgs122(args, ["input"]); + const selectArgs = makeArgs_b_authenticate_payload(args, ["input"]); const $result = resource_b_authenticate_payloadPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41453,9 +34173,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41463,7 +34192,7 @@ export const plans = { }, cTypesMutation: { plan($root, args, _info) { - const selectArgs = makeArgs123(args, ["input"]); + const selectArgs = makeArgs_c_types_mutation(args, ["input"]); const $result = resource_c_types_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41473,9 +34202,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41483,7 +34221,7 @@ export const plans = { }, cMutationOutOutCompoundType: { plan($root, args, _info) { - const selectArgs = makeArgs124(args, ["input"]); + const selectArgs = makeArgs_c_mutation_out_out_compound_type(args, ["input"]); const $result = resource_c_mutation_out_out_compound_typePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41493,9 +34231,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41503,7 +34250,7 @@ export const plans = { }, bCompoundTypeMutation: { plan($root, args, _info) { - const selectArgs = makeArgs125(args, ["input"]); + const selectArgs = makeArgs_b_compound_type_mutation(args, ["input"]); const $result = resource_b_compound_type_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41513,9 +34260,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41523,7 +34279,7 @@ export const plans = { }, bCompoundTypeSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs126(args, ["input"]); + const selectArgs = makeArgs_b_compound_type_set_mutation(args, ["input"]); const $result = resource_b_compound_type_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41533,9 +34289,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41543,7 +34308,7 @@ export const plans = { }, cTableMutation: { plan($root, args, _info) { - const selectArgs = makeArgs127(args, ["input"]); + const selectArgs = makeArgs_c_table_mutation(args, ["input"]); const $result = resource_c_table_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41553,9 +34318,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41563,7 +34337,7 @@ export const plans = { }, postWithSuffix: { plan($root, args, _info) { - const selectArgs = makeArgs128(args, ["input"]); + const selectArgs = makeArgs_post_with_suffix(args, ["input"]); const $result = resource_post_with_suffixPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41573,9 +34347,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41583,7 +34366,7 @@ export const plans = { }, mutationCompoundTypeArray: { plan($root, args, _info) { - const selectArgs = makeArgs129(args, ["input"]); + const selectArgs = makeArgs_mutation_compound_type_array(args, ["input"]); const $result = resource_mutation_compound_type_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41593,9 +34376,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41603,7 +34395,7 @@ export const plans = { }, bCompoundTypeArrayMutation: { plan($root, args, _info) { - const selectArgs = makeArgs130(args, ["input"]); + const selectArgs = makeArgs_b_compound_type_array_mutation(args, ["input"]); const $result = resource_b_compound_type_array_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41613,9 +34405,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41623,7 +34424,7 @@ export const plans = { }, postMany: { plan($root, args, _info) { - const selectArgs = makeArgs131(args, ["input"]); + const selectArgs = makeArgs_post_many(args, ["input"]); const $result = resource_post_manyPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41633,9 +34434,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41643,7 +34453,7 @@ export const plans = { }, cMutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs132(args, ["input"]); + const selectArgs = makeArgs_c_mutation_out_complex(args, ["input"]); const $result = resource_c_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41653,9 +34463,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41663,7 +34482,7 @@ export const plans = { }, cMutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs133(args, ["input"]); + const selectArgs = makeArgs_c_mutation_out_complex_setof(args, ["input"]); const $result = resource_c_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41673,9 +34492,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41683,7 +34511,7 @@ export const plans = { }, cMutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs134(args, ["input"]); + const selectArgs = makeArgs_c_mutation_out_table(args, ["input"]); const $result = resource_c_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41693,9 +34521,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41703,7 +34540,7 @@ export const plans = { }, cMutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs135(args, ["input"]); + const selectArgs = makeArgs_c_mutation_out_table_setof(args, ["input"]); const $result = resource_c_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41713,9 +34550,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41723,7 +34569,7 @@ export const plans = { }, cTableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs136(args, ["input"]); + const selectArgs = makeArgs_c_table_set_mutation(args, ["input"]); const $result = resource_c_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41733,9 +34579,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41743,7 +34598,7 @@ export const plans = { }, bTypeFunctionConnectionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs137(args, ["input"]); + const selectArgs = makeArgs_b_type_function_connection_mutation(args, ["input"]); const $result = resource_b_type_function_connection_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41753,9 +34608,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41763,7 +34627,7 @@ export const plans = { }, bTypeFunctionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs138(args, ["input"]); + const selectArgs = makeArgs_b_type_function_mutation(args, ["input"]); const $result = resource_b_type_function_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41773,9 +34637,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41783,7 +34656,7 @@ export const plans = { }, bTypeFunctionListMutation: { plan($root, args, _info) { - const selectArgs = makeArgs139(args, ["input"]); + const selectArgs = makeArgs_b_type_function_list_mutation(args, ["input"]); const $result = resource_b_type_function_list_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -41793,9 +34666,18 @@ export const plans = { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $object) { - return $object; + applyPlan(_, $object, arg) { + // We might have any number of step types here; we need + // to get back to the underlying pgSelect. + const $result = $object.getStepForKey("result"); + const $parent = "getParentStep" in $result ? $result.getParentStep() : $result; + const $pgSelect = "getClassStep" in $parent ? $parent.getClassStep() : $parent; + if ($pgSelect instanceof PgSelectStep) { + // Mostly so `clientMutationId` works! + arg.apply($pgSelect); + } else { + throw new Error(`Could not determine PgSelectStep for ${$result}`); + } } } } @@ -41803,17 +34685,17 @@ export const plans = { }, createInput: { plan(_, args) { + const $insert = pgInsertSingle(resource_inputsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_inputsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -41823,17 +34705,17 @@ export const plans = { }, createPatch: { plan(_, args) { + const $insert = pgInsertSingle(resource_patchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_patchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -41843,17 +34725,17 @@ export const plans = { }, createReserved: { plan(_, args) { + const $insert = pgInsertSingle(resource_reservedPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_reservedPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -41863,17 +34745,17 @@ export const plans = { }, createReservedPatchRecord: { plan(_, args) { + const $insert = pgInsertSingle(resource_reservedPatchsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_reservedPatchsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -41883,17 +34765,17 @@ export const plans = { }, createReservedInputRecord: { plan(_, args) { + const $insert = pgInsertSingle(resource_reserved_inputPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_reserved_inputPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -41903,17 +34785,17 @@ export const plans = { }, createDefaultValue: { plan(_, args) { + const $insert = pgInsertSingle(resource_default_valuePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_default_valuePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -41923,17 +34805,17 @@ export const plans = { }, createForeignKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_foreign_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -41943,17 +34825,17 @@ export const plans = { }, createNoPrimaryKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_no_primary_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -41963,17 +34845,17 @@ export const plans = { }, createTestview: { plan(_, args) { + const $insert = pgInsertSingle(resource_testviewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_testviewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -41983,17 +34865,17 @@ export const plans = { }, createUniqueForeignKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_unique_foreign_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_unique_foreign_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42003,17 +34885,17 @@ export const plans = { }, createCMyTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_c_my_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_c_my_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42023,17 +34905,17 @@ export const plans = { }, createCPersonSecret: { plan(_, args) { + const $insert = pgInsertSingle(resource_c_person_secretPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_c_person_secretPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42043,17 +34925,17 @@ export const plans = { }, createViewTable: { plan(_, args) { + const $insert = pgInsertSingle(resource_view_tablePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_view_tablePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42063,17 +34945,17 @@ export const plans = { }, createBUpdatableView: { plan(_, args) { + const $insert = pgInsertSingle(resource_b_updatable_viewPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_b_updatable_viewPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42083,17 +34965,17 @@ export const plans = { }, createCCompoundKey: { plan(_, args) { + const $insert = pgInsertSingle(resource_c_compound_keyPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_c_compound_keyPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42103,17 +34985,17 @@ export const plans = { }, createSimilarTable1: { plan(_, args) { + const $insert = pgInsertSingle(resource_similar_table_1PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_similar_table_1PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42123,17 +35005,17 @@ export const plans = { }, createSimilarTable2: { plan(_, args) { + const $insert = pgInsertSingle(resource_similar_table_2PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_similar_table_2PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42143,17 +35025,17 @@ export const plans = { }, createCNullTestRecord: { plan(_, args) { + const $insert = pgInsertSingle(resource_c_null_test_recordPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_c_null_test_recordPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42163,17 +35045,17 @@ export const plans = { }, createCEdgeCase: { plan(_, args) { + const $insert = pgInsertSingle(resource_c_edge_casePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_c_edge_casePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42183,17 +35065,17 @@ export const plans = { }, createCLeftArm: { plan(_, args) { + const $insert = pgInsertSingle(resource_c_left_armPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_c_left_armPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42203,17 +35085,17 @@ export const plans = { }, createCIssue756: { plan(_, args) { + const $insert = pgInsertSingle(resource_c_issue756PgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_c_issue756PgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42223,17 +35105,17 @@ export const plans = { }, createPost: { plan(_, args) { + const $insert = pgInsertSingle(resource_postPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_postPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42243,17 +35125,17 @@ export const plans = { }, createCPerson: { plan(_, args) { + const $insert = pgInsertSingle(resource_c_personPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_c_personPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42263,17 +35145,17 @@ export const plans = { }, createBList: { plan(_, args) { + const $insert = pgInsertSingle(resource_b_listsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_b_listsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42283,17 +35165,17 @@ export const plans = { }, createBType: { plan(_, args) { + const $insert = pgInsertSingle(resource_b_typesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(resource_b_typesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -42303,13 +35185,13 @@ export const plans = { }, updateInputByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_inputsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_inputsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42324,13 +35206,13 @@ export const plans = { }, updatePatchByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_patchsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_patchsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42345,13 +35227,13 @@ export const plans = { }, updateReservedByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_reservedPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_reservedPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42366,13 +35248,13 @@ export const plans = { }, updateReservedPatchRecordByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_reservedPatchsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_reservedPatchsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42387,13 +35269,13 @@ export const plans = { }, updateReservedInputRecordByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_reserved_inputPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_reserved_inputPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42408,13 +35290,13 @@ export const plans = { }, updateDefaultValueByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_default_valuePgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_default_valuePgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42429,13 +35311,13 @@ export const plans = { }, updateNoPrimaryKeyByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42450,14 +35332,14 @@ export const plans = { }, updateUniqueForeignKeyByCompoundKey1AndCompoundKey2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_unique_foreign_keyPgResource, { - compound_key_1: args.get(['input', "compoundKey1"]), - compound_key_2: args.get(['input', "compoundKey2"]) - }) + const $update = pgUpdateSingle(resource_unique_foreign_keyPgResource, { + compound_key_1: args.getRaw(['input', "compoundKey1"]), + compound_key_2: args.getRaw(['input', "compoundKey2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42472,13 +35354,13 @@ export const plans = { }, updateCMyTableByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_c_my_tablePgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_c_my_tablePgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42493,13 +35375,13 @@ export const plans = { }, updateCPersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_c_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(resource_c_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42514,13 +35396,13 @@ export const plans = { }, updateViewTableByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_view_tablePgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_view_tablePgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42535,14 +35417,14 @@ export const plans = { }, updateCCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_c_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $update = pgUpdateSingle(resource_c_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42557,13 +35439,13 @@ export const plans = { }, updateSimilarTable1ByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_similar_table_1PgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_similar_table_1PgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42578,13 +35460,13 @@ export const plans = { }, updateSimilarTable2ByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_similar_table_2PgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_similar_table_2PgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42599,13 +35481,13 @@ export const plans = { }, updateCNullTestRecordByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_c_null_test_recordPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_c_null_test_recordPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42620,13 +35502,13 @@ export const plans = { }, updateCLeftArmByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_c_left_armPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_c_left_armPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42641,13 +35523,13 @@ export const plans = { }, updateCLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_c_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(resource_c_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42662,13 +35544,13 @@ export const plans = { }, updateCIssue756ByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_c_issue756PgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_c_issue756PgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42683,13 +35565,13 @@ export const plans = { }, updatePostByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_postPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_postPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42704,13 +35586,13 @@ export const plans = { }, updateCPersonByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_c_personPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_c_personPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42725,13 +35607,13 @@ export const plans = { }, updateCPersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_c_personPgResource, { - email: args.get(['input', "email"]) - }) + const $update = pgUpdateSingle(resource_c_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42746,13 +35628,13 @@ export const plans = { }, updateBListByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_b_listsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_b_listsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42767,13 +35649,13 @@ export const plans = { }, updateBTypeByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(resource_b_typesPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(resource_b_typesPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -42788,13 +35670,13 @@ export const plans = { }, deleteInputByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_inputsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_inputsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -42809,13 +35691,13 @@ export const plans = { }, deletePatchByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_patchsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_patchsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -42830,13 +35712,13 @@ export const plans = { }, deleteReservedByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_reservedPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_reservedPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -42851,13 +35733,13 @@ export const plans = { }, deleteReservedPatchRecordByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_reservedPatchsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_reservedPatchsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -42872,13 +35754,13 @@ export const plans = { }, deleteReservedInputRecordByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_reserved_inputPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_reserved_inputPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -42893,13 +35775,13 @@ export const plans = { }, deleteDefaultValueByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_default_valuePgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_default_valuePgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -42914,13 +35796,13 @@ export const plans = { }, deleteNoPrimaryKeyByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_no_primary_keyPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_no_primary_keyPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -42935,14 +35817,14 @@ export const plans = { }, deleteUniqueForeignKeyByCompoundKey1AndCompoundKey2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_unique_foreign_keyPgResource, { - compound_key_1: args.get(['input', "compoundKey1"]), - compound_key_2: args.get(['input', "compoundKey2"]) - }) + const $delete = pgDeleteSingle(resource_unique_foreign_keyPgResource, { + compound_key_1: args.getRaw(['input', "compoundKey1"]), + compound_key_2: args.getRaw(['input', "compoundKey2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -42957,13 +35839,13 @@ export const plans = { }, deleteCMyTableByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_c_my_tablePgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_c_my_tablePgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -42978,13 +35860,13 @@ export const plans = { }, deleteCPersonSecretByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_c_person_secretPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(resource_c_person_secretPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -42999,13 +35881,13 @@ export const plans = { }, deleteViewTableByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_view_tablePgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_view_tablePgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43020,14 +35902,14 @@ export const plans = { }, deleteCCompoundKeyByPersonId1AndPersonId2: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_c_compound_keyPgResource, { - person_id_1: args.get(['input', "personId1"]), - person_id_2: args.get(['input', "personId2"]) - }) + const $delete = pgDeleteSingle(resource_c_compound_keyPgResource, { + person_id_1: args.getRaw(['input', "personId1"]), + person_id_2: args.getRaw(['input', "personId2"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43042,13 +35924,13 @@ export const plans = { }, deleteSimilarTable1ByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_similar_table_1PgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_similar_table_1PgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43063,13 +35945,13 @@ export const plans = { }, deleteSimilarTable2ByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_similar_table_2PgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_similar_table_2PgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43084,13 +35966,13 @@ export const plans = { }, deleteCNullTestRecordByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_c_null_test_recordPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_c_null_test_recordPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43105,13 +35987,13 @@ export const plans = { }, deleteCLeftArmByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_c_left_armPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_c_left_armPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43126,13 +36008,13 @@ export const plans = { }, deleteCLeftArmByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_c_left_armPgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(resource_c_left_armPgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43147,13 +36029,13 @@ export const plans = { }, deleteCIssue756ByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_c_issue756PgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_c_issue756PgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43168,13 +36050,13 @@ export const plans = { }, deletePostByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_postPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_postPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43189,13 +36071,13 @@ export const plans = { }, deleteCPersonByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_c_personPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_c_personPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43210,13 +36092,13 @@ export const plans = { }, deleteCPersonByEmail: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_c_personPgResource, { - email: args.get(['input', "email"]) - }) + const $delete = pgDeleteSingle(resource_c_personPgResource, { + email: args.getRaw(['input', "email"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43231,13 +36113,13 @@ export const plans = { }, deleteBListByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_b_listsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_b_listsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43252,13 +36134,13 @@ export const plans = { }, deleteBTypeByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(resource_b_typesPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(resource_b_typesPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -43275,7 +36157,8 @@ export const plans = { CMutationOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43286,16 +36169,16 @@ export const plans = { }, CMutationOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CMutationOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43306,16 +36189,16 @@ export const plans = { }, CMutationOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CMutationOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43326,16 +36209,16 @@ export const plans = { }, CMutationOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CNoArgsMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43346,16 +36229,16 @@ export const plans = { }, CNoArgsMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, ReturnVoidMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, query() { return rootValue(); @@ -43363,16 +36246,16 @@ export const plans = { }, ReturnVoidMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationIntervalSetPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43383,16 +36266,16 @@ export const plans = { }, MutationIntervalSetInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CMutationInOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43403,17 +36286,17 @@ export const plans = { }, CMutationInOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, CMutationReturnsTableOneColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43424,17 +36307,17 @@ export const plans = { }, CMutationReturnsTableOneColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, CJsonIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43445,17 +36328,17 @@ export const plans = { }, CJsonIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, CJsonbIdentityMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43466,17 +36349,17 @@ export const plans = { }, CJsonbIdentityMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, json: undefined }, CJsonbIdentityMutationPlpgsqlPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43487,17 +36370,17 @@ export const plans = { }, CJsonbIdentityMutationPlpgsqlInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, CJsonbIdentityMutationPlpgsqlWithDefaultPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43508,17 +36391,17 @@ export const plans = { }, CJsonbIdentityMutationPlpgsqlWithDefaultInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, _theJson: undefined }, Add1MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43529,10 +36412,9 @@ export const plans = { }, Add1MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -43540,7 +36422,8 @@ export const plans = { Add2MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43551,10 +36434,9 @@ export const plans = { }, Add2MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -43562,7 +36444,8 @@ export const plans = { Add3MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43573,10 +36456,9 @@ export const plans = { }, Add3MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, arg1: undefined @@ -43584,7 +36466,8 @@ export const plans = { Add4MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43595,10 +36478,9 @@ export const plans = { }, Add4MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -43606,7 +36488,8 @@ export const plans = { Add4MutationErrorPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43617,10 +36500,9 @@ export const plans = { }, Add4MutationErrorInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, b: undefined @@ -43628,7 +36510,8 @@ export const plans = { BMult1Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43639,10 +36522,9 @@ export const plans = { }, BMult1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -43650,7 +36532,8 @@ export const plans = { BMult2Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43661,10 +36544,9 @@ export const plans = { }, BMult2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -43672,7 +36554,8 @@ export const plans = { BMult3Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43683,10 +36566,9 @@ export const plans = { }, BMult3Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -43694,7 +36576,8 @@ export const plans = { BMult4Payload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43705,10 +36588,9 @@ export const plans = { }, BMult4Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, arg0: undefined, arg1: undefined @@ -43716,7 +36598,8 @@ export const plans = { CMutationInInoutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43727,10 +36610,9 @@ export const plans = { }, CMutationInInoutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined, ino: undefined @@ -43738,7 +36620,8 @@ export const plans = { CMutationOutOutPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43758,16 +36641,16 @@ export const plans = { }, CMutationOutOutInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CMutationOutOutSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43787,16 +36670,16 @@ export const plans = { }, CMutationOutOutSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CMutationOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43816,16 +36699,16 @@ export const plans = { }, CMutationOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CIntSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43836,10 +36719,9 @@ export const plans = { }, CIntSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, x: undefined, y: undefined, @@ -43848,7 +36730,8 @@ export const plans = { CMutationOutUnnamedOutOutUnnamedPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43871,16 +36754,16 @@ export const plans = { }, CMutationOutUnnamedOutOutUnnamedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CMutationReturnsTableMultiColPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43900,17 +36783,17 @@ export const plans = { }, CMutationReturnsTableMultiColInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i: undefined }, BGuidFnPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43926,17 +36809,17 @@ export const plans = { }, BGuidFnInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, g: undefined }, MutationIntervalArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43947,16 +36830,16 @@ export const plans = { }, MutationIntervalArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, MutationTextArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43967,16 +36850,16 @@ export const plans = { }, MutationTextArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, BListBdeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -43987,10 +36870,9 @@ export const plans = { }, BListBdeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, b: undefined, d: undefined, @@ -43999,7 +36881,8 @@ export const plans = { BAuthenticateFailPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44028,16 +36911,16 @@ export const plans = { }, BAuthenticateFailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, BAuthenticatePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44048,10 +36931,9 @@ export const plans = { }, BAuthenticateInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -44060,7 +36942,8 @@ export const plans = { CLeftArmIdentityPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, leftArm($object) { return $object.get("result"); @@ -44068,7 +36951,7 @@ export const plans = { query() { return rootValue(); }, - cLeftArmEdge($mutation, args, info) { + cLeftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44084,9 +36967,7 @@ export const plans = { return resource_c_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CLeftArmOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44097,50 +36978,52 @@ export const plans = { }, CLeftArmIdentityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, leftArm: undefined }, CLeftArmBaseInput: { - "__inputPlan": function CLeftArmBaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CIssue756MutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44148,7 +37031,7 @@ export const plans = { query() { return rootValue(); }, - cIssue756Edge($mutation, args, info) { + cIssue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44164,9 +37047,7 @@ export const plans = { return resource_c_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CIssue756OrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44177,16 +37058,16 @@ export const plans = { }, CIssue756MutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CIssue756SetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44197,16 +37078,16 @@ export const plans = { }, CIssue756SetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, BAuthenticateManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44217,10 +37098,9 @@ export const plans = { }, BAuthenticateManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -44229,7 +37109,8 @@ export const plans = { BAuthenticatePayloadPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44263,10 +37144,9 @@ export const plans = { }, BAuthenticatePayloadInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -44275,7 +37155,8 @@ export const plans = { CTypesMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44286,10 +37167,9 @@ export const plans = { }, CTypesMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined, @@ -44301,7 +37181,8 @@ export const plans = { CMutationOutOutCompoundTypePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44327,17 +37208,17 @@ export const plans = { }, CMutationOutOutCompoundTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, i1: undefined }, BCompoundTypeMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44348,17 +37229,17 @@ export const plans = { }, BCompoundTypeMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, BCompoundTypeSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44369,17 +37250,17 @@ export const plans = { }, BCompoundTypeSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, CTableMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44387,7 +37268,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44403,9 +37284,7 @@ export const plans = { return resource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44416,17 +37295,17 @@ export const plans = { }, CTableMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, PostWithSuffixPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44434,7 +37313,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44450,9 +37329,7 @@ export const plans = { return resource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44463,84 +37340,88 @@ export const plans = { }, PostWithSuffixInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: undefined, suffix: undefined }, PostInput: { - "__inputPlan": function PostInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, ComptypeInput: { - "__inputPlan": function ComptypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, schedule: { - applyPlan($insert, val) { - $insert.set("schedule", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("schedule", bakedInputRuntime(schema, field.type, val)); + } }, isOptimised: { - applyPlan($insert, val) { - $insert.set("is_optimised", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("is_optimised", bakedInputRuntime(schema, field.type, val)); + } } }, MutationCompoundTypeArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44551,17 +37432,17 @@ export const plans = { }, MutationCompoundTypeArrayInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, BCompoundTypeArrayMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44572,17 +37453,17 @@ export const plans = { }, BCompoundTypeArrayMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, object: undefined }, PostManyPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44593,17 +37474,17 @@ export const plans = { }, PostManyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, posts: undefined }, CMutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44638,10 +37519,9 @@ export const plans = { }, CMutationOutComplexInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -44649,7 +37529,8 @@ export const plans = { CMutationOutComplexSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44684,10 +37565,9 @@ export const plans = { }, CMutationOutComplexSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, a: undefined, b: undefined @@ -44695,7 +37575,8 @@ export const plans = { CMutationOutTablePayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44703,7 +37584,7 @@ export const plans = { query() { return rootValue(); }, - cPersonEdge($mutation, args, info) { + cPersonEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44719,9 +37600,7 @@ export const plans = { return resource_c_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CPersonOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44732,16 +37611,16 @@ export const plans = { }, CMutationOutTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CMutationOutTableSetofPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44752,16 +37631,16 @@ export const plans = { }, CMutationOutTableSetofInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CTableSetMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44772,16 +37651,16 @@ export const plans = { }, CTableSetMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, BTypeFunctionConnectionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44792,16 +37671,16 @@ export const plans = { }, BTypeFunctionConnectionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, BTypeFunctionMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44809,7 +37688,7 @@ export const plans = { query() { return rootValue(); }, - bTypeEdge($mutation, args, info) { + bTypeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44825,9 +37704,7 @@ export const plans = { return resource_b_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BTypeOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44838,17 +37715,17 @@ export const plans = { }, BTypeFunctionMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, id: undefined }, BTypeFunctionListMutationPayload: { __assertStep: ObjectStep, clientMutationId($object) { - return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + const $result = $object.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, result($object) { return $object.get("result"); @@ -44859,16 +37736,16 @@ export const plans = { }, BTypeFunctionListMutationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } } }, CreateInputPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -44876,7 +37753,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44892,9 +37769,7 @@ export const plans = { return resource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44905,35 +37780,34 @@ export const plans = { }, CreateInputInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, input: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, InputInput: { - "__inputPlan": function InputInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePatchPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -44941,7 +37815,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -44957,9 +37831,7 @@ export const plans = { return resource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -44970,35 +37842,34 @@ export const plans = { }, CreatePatchInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PatchInput: { - "__inputPlan": function PatchInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -45006,7 +37877,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45022,9 +37893,7 @@ export const plans = { return resource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45035,35 +37904,34 @@ export const plans = { }, CreateReservedInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reserved: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInput: { - "__inputPlan": function ReservedInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedPatchRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -45071,7 +37939,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45087,9 +37955,7 @@ export const plans = { return resource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45100,35 +37966,34 @@ export const plans = { }, CreateReservedPatchRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedPatchRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedPatchRecordInput: { - "__inputPlan": function ReservedPatchRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateReservedInputRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -45136,7 +38001,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45152,9 +38017,7 @@ export const plans = { return resource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45165,35 +38028,34 @@ export const plans = { }, CreateReservedInputRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, reservedInputRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ReservedInputRecordInput: { - "__inputPlan": function ReservedInputRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateDefaultValuePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -45201,7 +38063,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45217,9 +38079,7 @@ export const plans = { return resource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValueOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45230,42 +38090,42 @@ export const plans = { }, CreateDefaultValueInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, defaultValue: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, DefaultValueInput: { - "__inputPlan": function DefaultValueInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, CreateForeignKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, foreignKey($object) { return $object.get("result"); @@ -45276,49 +38136,50 @@ export const plans = { }, CreateForeignKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, foreignKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ForeignKeyInput: { - "__inputPlan": function ForeignKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey1: { - applyPlan($insert, val) { - $insert.set("compound_key_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_1", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey2: { - applyPlan($insert, val) { - $insert.set("compound_key_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateNoPrimaryKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -45329,42 +38190,42 @@ export const plans = { }, CreateNoPrimaryKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, noPrimaryKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, NoPrimaryKeyInput: { - "__inputPlan": function NoPrimaryKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, CreateTestviewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, testview($object) { return $object.get("result"); @@ -45375,49 +38236,50 @@ export const plans = { }, CreateTestviewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, testview: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, TestviewInput: { - "__inputPlan": function TestviewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, testviewid: { - applyPlan($insert, val) { - $insert.set("testviewid", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("testviewid", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateUniqueForeignKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, uniqueForeignKey($object) { return $object.get("result"); @@ -45428,42 +38290,42 @@ export const plans = { }, CreateUniqueForeignKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, uniqueForeignKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, UniqueForeignKeyInput: { - "__inputPlan": function UniqueForeignKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, compoundKey1: { - applyPlan($insert, val) { - $insert.set("compound_key_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_1", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey2: { - applyPlan($insert, val) { - $insert.set("compound_key_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCMyTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, cMyTable($object) { return $object.get("result"); @@ -45471,7 +38333,7 @@ export const plans = { query() { return rootValue(); }, - cMyTableEdge($mutation, args, info) { + cMyTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45487,9 +38349,7 @@ export const plans = { return resource_c_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CMyTableOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45500,42 +38360,42 @@ export const plans = { }, CreateCMyTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, cMyTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CMyTableInput: { - "__inputPlan": function CMyTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCPersonSecretPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, cPersonSecret($object) { return $object.get("result"); @@ -45543,7 +38403,7 @@ export const plans = { query() { return rootValue(); }, - cPersonSecretEdge($mutation, args, info) { + cPersonSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45559,9 +38419,7 @@ export const plans = { return resource_c_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CPersonSecretOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45572,42 +38430,42 @@ export const plans = { }, CreateCPersonSecretInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, cPersonSecret: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CPersonSecretInput: { - "__inputPlan": function CPersonSecretInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, CreateViewTablePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -45615,7 +38473,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45631,9 +38489,7 @@ export const plans = { return resource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTableOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45644,49 +38500,50 @@ export const plans = { }, CreateViewTableInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, viewTable: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ViewTableInput: { - "__inputPlan": function ViewTableInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, CreateBUpdatableViewPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, bUpdatableView($object) { return $object.get("result"); @@ -45697,56 +38554,58 @@ export const plans = { }, CreateBUpdatableViewInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, bUpdatableView: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, BUpdatableViewInput: { - "__inputPlan": function BUpdatableViewInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, x: { - applyPlan($insert, val) { - $insert.set("x", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("x", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, description: { - applyPlan($insert, val) { - $insert.set("description", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("description", bakedInputRuntime(schema, field.type, val)); + } }, constant: { - applyPlan($insert, val) { - $insert.set("constant", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("constant", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCCompoundKeyPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, cCompoundKey($object) { return $object.get("result"); @@ -45754,7 +38613,7 @@ export const plans = { query() { return rootValue(); }, - cCompoundKeyEdge($mutation, args, info) { + cCompoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45770,9 +38629,7 @@ export const plans = { return resource_c_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CCompoundKeyOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45783,49 +38640,50 @@ export const plans = { }, CreateCCompoundKeyInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, cCompoundKey: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CCompoundKeyInput: { - "__inputPlan": function CCompoundKeyInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable1Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -45833,7 +38691,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45849,9 +38707,7 @@ export const plans = { return resource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1OrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45862,56 +38718,58 @@ export const plans = { }, CreateSimilarTable1Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable1: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable1Input: { - "__inputPlan": function SimilarTable1Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSimilarTable2Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -45919,7 +38777,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -45935,9 +38793,7 @@ export const plans = { return resource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2OrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -45948,56 +38804,58 @@ export const plans = { }, CreateSimilarTable2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, similarTable2: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SimilarTable2Input: { - "__inputPlan": function SimilarTable2Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCNullTestRecordPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, cNullTestRecord($object) { return $object.get("result"); @@ -46005,7 +38863,7 @@ export const plans = { query() { return rootValue(); }, - cNullTestRecordEdge($mutation, args, info) { + cNullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46021,9 +38879,7 @@ export const plans = { return resource_c_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CNullTestRecordOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46034,56 +38890,58 @@ export const plans = { }, CreateCNullTestRecordInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, cNullTestRecord: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CNullTestRecordInput: { - "__inputPlan": function CNullTestRecordInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCEdgeCasePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, cEdgeCase($object) { return $object.get("result"); @@ -46094,49 +38952,50 @@ export const plans = { }, CreateCEdgeCaseInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, cEdgeCase: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CEdgeCaseInput: { - "__inputPlan": function CEdgeCaseInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, notNullHasDefault: { - applyPlan($insert, val) { - $insert.set("not_null_has_default", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("not_null_has_default", bakedInputRuntime(schema, field.type, val)); + } }, wontCastEasy: { - applyPlan($insert, val) { - $insert.set("wont_cast_easy", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("wont_cast_easy", bakedInputRuntime(schema, field.type, val)); + } }, rowId: { - applyPlan($insert, val) { - $insert.set("row_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("row_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCLeftArmPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, cLeftArm($object) { return $object.get("result"); @@ -46144,7 +39003,7 @@ export const plans = { query() { return rootValue(); }, - cLeftArmEdge($mutation, args, info) { + cLeftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46160,9 +39019,7 @@ export const plans = { return resource_c_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CLeftArmOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46173,56 +39030,58 @@ export const plans = { }, CreateCLeftArmInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, cLeftArm: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CLeftArmInput: { - "__inputPlan": function CLeftArmInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, CreateCIssue756Payload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, cIssue756($object) { return $object.get("result"); @@ -46230,7 +39089,7 @@ export const plans = { query() { return rootValue(); }, - cIssue756Edge($mutation, args, info) { + cIssue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46246,9 +39105,7 @@ export const plans = { return resource_c_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CIssue756OrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46259,42 +39116,42 @@ export const plans = { }, CreateCIssue756Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, cIssue756: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CIssue756Input: { - "__inputPlan": function CIssue756Input_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePostPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -46302,7 +39159,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46318,9 +39175,7 @@ export const plans = { return resource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46331,23 +39186,23 @@ export const plans = { }, CreatePostInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, post: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CreateCPersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, cPerson($object) { return $object.get("result"); @@ -46355,7 +39210,7 @@ export const plans = { query() { return rootValue(); }, - cPersonEdge($mutation, args, info) { + cPersonEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46371,9 +39226,7 @@ export const plans = { return resource_c_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CPersonOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46384,117 +39237,125 @@ export const plans = { }, CreateCPersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, cPerson: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, CPersonInput: { - "__inputPlan": function CPersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, BWrappedUrlInput: { - "__inputPlan": function BWrappedUrlInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, url: { - applyPlan($insert, val) { - $insert.set("url", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("url", bakedInputRuntime(schema, field.type, val)); + } } }, CreateBListPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, bList($object) { return $object.get("result"); @@ -46502,7 +39363,7 @@ export const plans = { query() { return rootValue(); }, - bListEdge($mutation, args, info) { + bListEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46518,9 +39379,7 @@ export const plans = { return resource_b_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BListOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46531,119 +39390,130 @@ export const plans = { }, CreateBListInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, bList: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, BListInput: { - "__inputPlan": function BListInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, CreateBTypePayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, bType($object) { return $object.get("result"); @@ -46651,7 +39521,7 @@ export const plans = { query() { return rootValue(); }, - bTypeEdge($mutation, args, info) { + bTypeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -46667,9 +39537,7 @@ export const plans = { return resource_b_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BTypeOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -46680,365 +39548,411 @@ export const plans = { }, CreateBTypeInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, bType: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, BTypeInput: { - "__inputPlan": function BTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, BigFloatRangeInput: { @@ -47066,35 +39980,37 @@ export const plans = { inclusive: undefined }, BNestedCompoundTypeInput: { - "__inputPlan": function BNestedCompoundTypeInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, a: { - applyPlan($insert, val) { - $insert.set("a", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("a", bakedInputRuntime(schema, field.type, val)); + } }, b: { - applyPlan($insert, val) { - $insert.set("b", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("b", bakedInputRuntime(schema, field.type, val)); + } }, bazBuz: { - applyPlan($insert, val) { - $insert.set("baz_buz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("baz_buz", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -47102,7 +40018,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47118,9 +40034,7 @@ export const plans = { return resource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47131,34 +40045,35 @@ export const plans = { }, UpdateInputByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, inputPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, InputPatch: { - "__inputPlan": function InputPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -47166,7 +40081,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47182,9 +40097,7 @@ export const plans = { return resource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47195,34 +40108,35 @@ export const plans = { }, UpdatePatchByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, patchPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PatchPatch: { - "__inputPlan": function PatchPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -47230,7 +40144,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47246,9 +40160,7 @@ export const plans = { return resource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47259,34 +40171,35 @@ export const plans = { }, UpdateReservedByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, reservedPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatch: { - "__inputPlan": function ReservedPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -47294,7 +40207,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47310,9 +40223,7 @@ export const plans = { return resource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47323,34 +40234,35 @@ export const plans = { }, UpdateReservedPatchRecordByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, reservedPatchRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedPatchRecordPatch: { - "__inputPlan": function ReservedPatchRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -47358,7 +40270,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47374,9 +40286,7 @@ export const plans = { return resource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47387,34 +40297,35 @@ export const plans = { }, UpdateReservedInputRecordByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, reservedInputRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ReservedInputRecordPatch: { - "__inputPlan": function ReservedInputRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -47422,7 +40333,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47438,9 +40349,7 @@ export const plans = { return resource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValueOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47451,41 +40360,43 @@ export const plans = { }, UpdateDefaultValueByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, defaultValuePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, DefaultValuePatch: { - "__inputPlan": function DefaultValuePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullValue: { - applyPlan($insert, val) { - $insert.set("null_value", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("null_value", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -47496,41 +40407,43 @@ export const plans = { }, UpdateNoPrimaryKeyByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, noPrimaryKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, NoPrimaryKeyPatch: { - "__inputPlan": function NoPrimaryKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, str: { - applyPlan($insert, val) { - $insert.set("str", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("str", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateUniqueForeignKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, uniqueForeignKey($object) { return $object.get("result"); @@ -47541,42 +40454,44 @@ export const plans = { }, UpdateUniqueForeignKeyByCompoundKey1AndCompoundKey2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, compoundKey1: undefined, compoundKey2: undefined, uniqueForeignKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UniqueForeignKeyPatch: { - "__inputPlan": function UniqueForeignKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, compoundKey1: { - applyPlan($insert, val) { - $insert.set("compound_key_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_1", bakedInputRuntime(schema, field.type, val)); + } }, compoundKey2: { - applyPlan($insert, val) { - $insert.set("compound_key_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_key_2", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cMyTable($object) { return $object.get("result"); @@ -47584,7 +40499,7 @@ export const plans = { query() { return rootValue(); }, - cMyTableEdge($mutation, args, info) { + cMyTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47600,9 +40515,7 @@ export const plans = { return resource_c_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CMyTableOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47613,41 +40526,43 @@ export const plans = { }, UpdateCMyTableByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, cMyTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CMyTablePatch: { - "__inputPlan": function CMyTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, jsonData: { - applyPlan($insert, val) { - $insert.set("json_data", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json_data", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCPersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cPersonSecret($object) { return $object.get("result"); @@ -47655,7 +40570,7 @@ export const plans = { query() { return rootValue(); }, - cPersonSecretEdge($mutation, args, info) { + cPersonSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47671,9 +40586,7 @@ export const plans = { return resource_c_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CPersonSecretOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47684,41 +40597,43 @@ export const plans = { }, UpdateCPersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, cPersonSecretPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CPersonSecretPatch: { - "__inputPlan": function CPersonSecretPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, secret: { - applyPlan($insert, val) { - $insert.set("sekrit", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("sekrit", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -47726,7 +40641,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47742,9 +40657,7 @@ export const plans = { return resource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTableOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47755,48 +40668,51 @@ export const plans = { }, UpdateViewTableByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, viewTablePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ViewTablePatch: { - "__inputPlan": function ViewTablePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cCompoundKey($object) { return $object.get("result"); @@ -47804,7 +40720,7 @@ export const plans = { query() { return rootValue(); }, - cCompoundKeyEdge($mutation, args, info) { + cCompoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47820,9 +40736,7 @@ export const plans = { return resource_c_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CCompoundKeyOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47833,49 +40747,52 @@ export const plans = { }, UpdateCCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, personId2: undefined, cCompoundKeyPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CCompoundKeyPatch: { - "__inputPlan": function CCompoundKeyPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId2: { - applyPlan($insert, val) { - $insert.set("person_id_2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_2", bakedInputRuntime(schema, field.type, val)); + } }, personId1: { - applyPlan($insert, val) { - $insert.set("person_id_1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id_1", bakedInputRuntime(schema, field.type, val)); + } }, extra: { - applyPlan($insert, val) { - $insert.set("extra", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("extra", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -47883,7 +40800,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47899,9 +40816,7 @@ export const plans = { return resource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1OrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47912,55 +40827,59 @@ export const plans = { }, UpdateSimilarTable1ByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, similarTable1Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable1Patch: { - "__inputPlan": function SimilarTable1Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col1: { - applyPlan($insert, val) { - $insert.set("col1", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col1", bakedInputRuntime(schema, field.type, val)); + } }, col2: { - applyPlan($insert, val) { - $insert.set("col2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col2", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -47968,7 +40887,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -47984,9 +40903,7 @@ export const plans = { return resource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2OrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -47997,55 +40914,59 @@ export const plans = { }, UpdateSimilarTable2ByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, similarTable2Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SimilarTable2Patch: { - "__inputPlan": function SimilarTable2Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, col3: { - applyPlan($insert, val) { - $insert.set("col3", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col3", bakedInputRuntime(schema, field.type, val)); + } }, col4: { - applyPlan($insert, val) { - $insert.set("col4", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col4", bakedInputRuntime(schema, field.type, val)); + } }, col5: { - applyPlan($insert, val) { - $insert.set("col5", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("col5", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cNullTestRecord($object) { return $object.get("result"); @@ -48053,7 +40974,7 @@ export const plans = { query() { return rootValue(); }, - cNullTestRecordEdge($mutation, args, info) { + cNullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48069,9 +40990,7 @@ export const plans = { return resource_c_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CNullTestRecordOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48082,55 +41001,59 @@ export const plans = { }, UpdateCNullTestRecordByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, cNullTestRecordPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CNullTestRecordPatch: { - "__inputPlan": function CNullTestRecordPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, nullableText: { - applyPlan($insert, val) { - $insert.set("nullable_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_text", bakedInputRuntime(schema, field.type, val)); + } }, nullableInt: { - applyPlan($insert, val) { - $insert.set("nullable_int", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_int", bakedInputRuntime(schema, field.type, val)); + } }, nonNullText: { - applyPlan($insert, val) { - $insert.set("non_null_text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("non_null_text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cLeftArm($object) { return $object.get("result"); @@ -48138,7 +41061,7 @@ export const plans = { query() { return rootValue(); }, - cLeftArmEdge($mutation, args, info) { + cLeftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48154,9 +41077,7 @@ export const plans = { return resource_c_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CLeftArmOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48167,69 +41088,74 @@ export const plans = { }, UpdateCLeftArmByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, cLeftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CLeftArmPatch: { - "__inputPlan": function CLeftArmPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, lengthInMetres: { - applyPlan($insert, val) { - $insert.set("length_in_metres", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("length_in_metres", bakedInputRuntime(schema, field.type, val)); + } }, mood: { - applyPlan($insert, val) { - $insert.set("mood", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("mood", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, cLeftArmPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateCIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cIssue756($object) { return $object.get("result"); @@ -48237,7 +41163,7 @@ export const plans = { query() { return rootValue(); }, - cIssue756Edge($mutation, args, info) { + cIssue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48253,9 +41179,7 @@ export const plans = { return resource_c_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CIssue756OrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48266,41 +41190,43 @@ export const plans = { }, UpdateCIssue756ByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, cIssue756Patch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CIssue756Patch: { - "__inputPlan": function CIssue756Patch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, ts: { - applyPlan($insert, val) { - $insert.set("ts", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ts", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -48308,7 +41234,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48324,9 +41250,7 @@ export const plans = { return resource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48337,69 +41261,75 @@ export const plans = { }, UpdatePostByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, postPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PostPatch: { - "__inputPlan": function PostPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, headline: { - applyPlan($insert, val) { - $insert.set("headline", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("headline", bakedInputRuntime(schema, field.type, val)); + } }, body: { - applyPlan($insert, val) { - $insert.set("body", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("body", bakedInputRuntime(schema, field.type, val)); + } }, authorId: { - applyPlan($insert, val) { - $insert.set("author_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("author_id", bakedInputRuntime(schema, field.type, val)); + } }, enums: { - applyPlan($insert, val) { - $insert.set("enums", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enums", bakedInputRuntime(schema, field.type, val)); + } }, comptypes: { - applyPlan($insert, val) { - $insert.set("comptypes", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("comptypes", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCPersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cPerson($object) { return $object.get("result"); @@ -48407,7 +41337,7 @@ export const plans = { query() { return rootValue(); }, - cPersonEdge($mutation, args, info) { + cPersonEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48423,9 +41353,7 @@ export const plans = { return resource_c_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CPersonOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48436,118 +41364,130 @@ export const plans = { }, UpdateCPersonByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, cPersonPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, CPersonPatch: { - "__inputPlan": function CPersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("person_full_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_full_name", bakedInputRuntime(schema, field.type, val)); + } }, aliases: { - applyPlan($insert, val) { - $insert.set("aliases", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aliases", bakedInputRuntime(schema, field.type, val)); + } }, about: { - applyPlan($insert, val) { - $insert.set("about", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("about", bakedInputRuntime(schema, field.type, val)); + } }, email: { - applyPlan($insert, val) { - $insert.set("email", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("email", bakedInputRuntime(schema, field.type, val)); + } }, site: { - applyPlan($insert, val) { - $insert.set("site", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("site", bakedInputRuntime(schema, field.type, val)); + } }, config: { - applyPlan($insert, val) { - $insert.set("config", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("config", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromIp: { - applyPlan($insert, val) { - $insert.set("last_login_from_ip", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_ip", bakedInputRuntime(schema, field.type, val)); + } }, lastLoginFromSubnet: { - applyPlan($insert, val) { - $insert.set("last_login_from_subnet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_login_from_subnet", bakedInputRuntime(schema, field.type, val)); + } }, userMac: { - applyPlan($insert, val) { - $insert.set("user_mac", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("user_mac", bakedInputRuntime(schema, field.type, val)); + } }, createdAt: { - applyPlan($insert, val) { - $insert.set("created_at", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("created_at", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateCPersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined, cPersonPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateBListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, bList($object) { return $object.get("result"); @@ -48555,7 +41495,7 @@ export const plans = { query() { return rootValue(); }, - bListEdge($mutation, args, info) { + bListEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48571,9 +41511,7 @@ export const plans = { return resource_b_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BListOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48584,118 +41522,131 @@ export const plans = { }, UpdateBListByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, bListPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, BListPatch: { - "__inputPlan": function BListPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, intArray: { - applyPlan($insert, val) { - $insert.set("int_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array", bakedInputRuntime(schema, field.type, val)); + } }, intArrayNn: { - applyPlan($insert, val) { - $insert.set("int_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, enumArrayNn: { - applyPlan($insert, val) { - $insert.set("enum_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, dateArray: { - applyPlan($insert, val) { - $insert.set("date_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array", bakedInputRuntime(schema, field.type, val)); + } }, dateArrayNn: { - applyPlan($insert, val) { - $insert.set("date_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArray: { - applyPlan($insert, val) { - $insert.set("timestamptz_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array", bakedInputRuntime(schema, field.type, val)); + } }, timestamptzArrayNn: { - applyPlan($insert, val) { - $insert.set("timestamptz_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArray: { - applyPlan($insert, val) { - $insert.set("compound_type_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array", bakedInputRuntime(schema, field.type, val)); + } }, compoundTypeArrayNn: { - applyPlan($insert, val) { - $insert.set("compound_type_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type_array_nn", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, byteaArrayNn: { - applyPlan($insert, val) { - $insert.set("bytea_array_nn", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array_nn", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateBTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, bType($object) { return $object.get("result"); @@ -48703,7 +41654,7 @@ export const plans = { query() { return rootValue(); }, - bTypeEdge($mutation, args, info) { + bTypeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -48719,9 +41670,7 @@ export const plans = { return resource_b_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BTypeOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -48732,370 +41681,419 @@ export const plans = { }, UpdateBTypeByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, bTypePatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, BTypePatch: { - "__inputPlan": function BTypePatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, smallint: { - applyPlan($insert, val) { - $insert.set("smallint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("smallint", bakedInputRuntime(schema, field.type, val)); + } }, bigint: { - applyPlan($insert, val) { - $insert.set("bigint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bigint", bakedInputRuntime(schema, field.type, val)); + } }, numeric: { - applyPlan($insert, val) { - $insert.set("numeric", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numeric", bakedInputRuntime(schema, field.type, val)); + } }, decimal: { - applyPlan($insert, val) { - $insert.set("decimal", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("decimal", bakedInputRuntime(schema, field.type, val)); + } }, boolean: { - applyPlan($insert, val) { - $insert.set("boolean", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("boolean", bakedInputRuntime(schema, field.type, val)); + } }, varchar: { - applyPlan($insert, val) { - $insert.set("varchar", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("varchar", bakedInputRuntime(schema, field.type, val)); + } }, enum: { - applyPlan($insert, val) { - $insert.set("enum", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum", bakedInputRuntime(schema, field.type, val)); + } }, enumArray: { - applyPlan($insert, val) { - $insert.set("enum_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("enum_array", bakedInputRuntime(schema, field.type, val)); + } }, domain: { - applyPlan($insert, val) { - $insert.set("domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain", bakedInputRuntime(schema, field.type, val)); + } }, domain2: { - applyPlan($insert, val) { - $insert.set("domain2", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("domain2", bakedInputRuntime(schema, field.type, val)); + } }, textArray: { - applyPlan($insert, val) { - $insert.set("text_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array", bakedInputRuntime(schema, field.type, val)); + } }, json: { - applyPlan($insert, val) { - $insert.set("json", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("json", bakedInputRuntime(schema, field.type, val)); + } }, jsonb: { - applyPlan($insert, val) { - $insert.set("jsonb", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("jsonb", bakedInputRuntime(schema, field.type, val)); + } }, nullableRange: { - applyPlan($insert, val) { - $insert.set("nullable_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_range", bakedInputRuntime(schema, field.type, val)); + } }, numrange: { - applyPlan($insert, val) { - $insert.set("numrange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("numrange", bakedInputRuntime(schema, field.type, val)); + } }, daterange: { - applyPlan($insert, val) { - $insert.set("daterange", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("daterange", bakedInputRuntime(schema, field.type, val)); + } }, anIntRange: { - applyPlan($insert, val) { - $insert.set("an_int_range", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("an_int_range", bakedInputRuntime(schema, field.type, val)); + } }, timestamp: { - applyPlan($insert, val) { - $insert.set("timestamp", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamp", bakedInputRuntime(schema, field.type, val)); + } }, timestamptz: { - applyPlan($insert, val) { - $insert.set("timestamptz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timestamptz", bakedInputRuntime(schema, field.type, val)); + } }, date: { - applyPlan($insert, val) { - $insert.set("date", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("date", bakedInputRuntime(schema, field.type, val)); + } }, time: { - applyPlan($insert, val) { - $insert.set("time", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("time", bakedInputRuntime(schema, field.type, val)); + } }, timetz: { - applyPlan($insert, val) { - $insert.set("timetz", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("timetz", bakedInputRuntime(schema, field.type, val)); + } }, interval: { - applyPlan($insert, val) { - $insert.set("interval", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval", bakedInputRuntime(schema, field.type, val)); + } }, intervalArray: { - applyPlan($insert, val) { - $insert.set("interval_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("interval_array", bakedInputRuntime(schema, field.type, val)); + } }, money: { - applyPlan($insert, val) { - $insert.set("money", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("money", bakedInputRuntime(schema, field.type, val)); + } }, compoundType: { - applyPlan($insert, val) { - $insert.set("compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, nullableNestedCompoundType: { - applyPlan($insert, val) { - $insert.set("nullable_nested_compound_type", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullable_nested_compound_type", bakedInputRuntime(schema, field.type, val)); + } }, point: { - applyPlan($insert, val) { - $insert.set("point", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("point", bakedInputRuntime(schema, field.type, val)); + } }, nullablePoint: { - applyPlan($insert, val) { - $insert.set("nullablePoint", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("nullablePoint", bakedInputRuntime(schema, field.type, val)); + } }, inet: { - applyPlan($insert, val) { - $insert.set("inet", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("inet", bakedInputRuntime(schema, field.type, val)); + } }, cidr: { - applyPlan($insert, val) { - $insert.set("cidr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cidr", bakedInputRuntime(schema, field.type, val)); + } }, macaddr: { - applyPlan($insert, val) { - $insert.set("macaddr", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("macaddr", bakedInputRuntime(schema, field.type, val)); + } }, regproc: { - applyPlan($insert, val) { - $insert.set("regproc", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regproc", bakedInputRuntime(schema, field.type, val)); + } }, regprocedure: { - applyPlan($insert, val) { - $insert.set("regprocedure", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regprocedure", bakedInputRuntime(schema, field.type, val)); + } }, regoper: { - applyPlan($insert, val) { - $insert.set("regoper", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoper", bakedInputRuntime(schema, field.type, val)); + } }, regoperator: { - applyPlan($insert, val) { - $insert.set("regoperator", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regoperator", bakedInputRuntime(schema, field.type, val)); + } }, regclass: { - applyPlan($insert, val) { - $insert.set("regclass", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regclass", bakedInputRuntime(schema, field.type, val)); + } }, regtype: { - applyPlan($insert, val) { - $insert.set("regtype", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regtype", bakedInputRuntime(schema, field.type, val)); + } }, regconfig: { - applyPlan($insert, val) { - $insert.set("regconfig", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regconfig", bakedInputRuntime(schema, field.type, val)); + } }, regdictionary: { - applyPlan($insert, val) { - $insert.set("regdictionary", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("regdictionary", bakedInputRuntime(schema, field.type, val)); + } }, textArrayDomain: { - applyPlan($insert, val) { - $insert.set("text_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, int8ArrayDomain: { - applyPlan($insert, val) { - $insert.set("int8_array_domain", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("int8_array_domain", bakedInputRuntime(schema, field.type, val)); + } }, bytea: { - applyPlan($insert, val) { - $insert.set("bytea", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea", bakedInputRuntime(schema, field.type, val)); + } }, byteaArray: { - applyPlan($insert, val) { - $insert.set("bytea_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("bytea_array", bakedInputRuntime(schema, field.type, val)); + } }, ltree: { - applyPlan($insert, val) { - $insert.set("ltree", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree", bakedInputRuntime(schema, field.type, val)); + } }, ltreeArray: { - applyPlan($insert, val) { - $insert.set("ltree_array", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("ltree_array", bakedInputRuntime(schema, field.type, val)); + } } }, DeleteInputPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, input($object) { return $object.get("result"); @@ -49103,7 +42101,7 @@ export const plans = { query() { return rootValue(); }, - inputEdge($mutation, args, info) { + inputEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49119,9 +42117,7 @@ export const plans = { return resource_inputsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("InputOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49132,8 +42128,8 @@ export const plans = { }, DeleteInputByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49141,7 +42137,8 @@ export const plans = { DeletePatchPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, patch($object) { return $object.get("result"); @@ -49149,7 +42146,7 @@ export const plans = { query() { return rootValue(); }, - patchEdge($mutation, args, info) { + patchEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49165,9 +42162,7 @@ export const plans = { return resource_patchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PatchOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49178,8 +42173,8 @@ export const plans = { }, DeletePatchByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49187,7 +42182,8 @@ export const plans = { DeleteReservedPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reserved($object) { return $object.get("result"); @@ -49195,7 +42191,7 @@ export const plans = { query() { return rootValue(); }, - reservedEdge($mutation, args, info) { + reservedEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49211,9 +42207,7 @@ export const plans = { return resource_reservedPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49224,8 +42218,8 @@ export const plans = { }, DeleteReservedByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49233,7 +42227,8 @@ export const plans = { DeleteReservedPatchRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedPatchRecord($object) { return $object.get("result"); @@ -49241,7 +42236,7 @@ export const plans = { query() { return rootValue(); }, - reservedPatchRecordEdge($mutation, args, info) { + reservedPatchRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49257,9 +42252,7 @@ export const plans = { return resource_reservedPatchsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedPatchRecordOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49270,8 +42263,8 @@ export const plans = { }, DeleteReservedPatchRecordByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49279,7 +42272,8 @@ export const plans = { DeleteReservedInputRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, reservedInputRecord($object) { return $object.get("result"); @@ -49287,7 +42281,7 @@ export const plans = { query() { return rootValue(); }, - reservedInputRecordEdge($mutation, args, info) { + reservedInputRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49303,9 +42297,7 @@ export const plans = { return resource_reserved_inputPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ReservedInputRecordOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49316,8 +42308,8 @@ export const plans = { }, DeleteReservedInputRecordByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49325,7 +42317,8 @@ export const plans = { DeleteDefaultValuePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, defaultValue($object) { return $object.get("result"); @@ -49333,7 +42326,7 @@ export const plans = { query() { return rootValue(); }, - defaultValueEdge($mutation, args, info) { + defaultValueEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49349,9 +42342,7 @@ export const plans = { return resource_default_valuePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("DefaultValueOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49362,8 +42353,8 @@ export const plans = { }, DeleteDefaultValueByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49371,7 +42362,8 @@ export const plans = { DeleteNoPrimaryKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, noPrimaryKey($object) { return $object.get("result"); @@ -49382,8 +42374,8 @@ export const plans = { }, DeleteNoPrimaryKeyByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49391,7 +42383,8 @@ export const plans = { DeleteUniqueForeignKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, uniqueForeignKey($object) { return $object.get("result"); @@ -49402,8 +42395,8 @@ export const plans = { }, DeleteUniqueForeignKeyByCompoundKey1AndCompoundKey2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, compoundKey1: undefined, @@ -49412,7 +42405,8 @@ export const plans = { DeleteCMyTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cMyTable($object) { return $object.get("result"); @@ -49420,7 +42414,7 @@ export const plans = { query() { return rootValue(); }, - cMyTableEdge($mutation, args, info) { + cMyTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49436,9 +42430,7 @@ export const plans = { return resource_c_my_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CMyTableOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49449,8 +42441,8 @@ export const plans = { }, DeleteCMyTableByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49458,7 +42450,8 @@ export const plans = { DeleteCPersonSecretPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cPersonSecret($object) { return $object.get("result"); @@ -49466,7 +42459,7 @@ export const plans = { query() { return rootValue(); }, - cPersonSecretEdge($mutation, args, info) { + cPersonSecretEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49482,9 +42475,7 @@ export const plans = { return resource_c_person_secretPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CPersonSecretOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49495,8 +42486,8 @@ export const plans = { }, DeleteCPersonSecretByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -49504,7 +42495,8 @@ export const plans = { DeleteViewTablePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, viewTable($object) { return $object.get("result"); @@ -49512,7 +42504,7 @@ export const plans = { query() { return rootValue(); }, - viewTableEdge($mutation, args, info) { + viewTableEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49528,9 +42520,7 @@ export const plans = { return resource_view_tablePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ViewTableOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49541,8 +42531,8 @@ export const plans = { }, DeleteViewTableByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49550,7 +42540,8 @@ export const plans = { DeleteCCompoundKeyPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cCompoundKey($object) { return $object.get("result"); @@ -49558,7 +42549,7 @@ export const plans = { query() { return rootValue(); }, - cCompoundKeyEdge($mutation, args, info) { + cCompoundKeyEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49574,9 +42565,7 @@ export const plans = { return resource_c_compound_keyPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CCompoundKeyOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49587,8 +42576,8 @@ export const plans = { }, DeleteCCompoundKeyByPersonId1AndPersonId2Input: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId1: undefined, @@ -49597,7 +42586,8 @@ export const plans = { DeleteSimilarTable1Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable1($object) { return $object.get("result"); @@ -49605,7 +42595,7 @@ export const plans = { query() { return rootValue(); }, - similarTable1Edge($mutation, args, info) { + similarTable1Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49621,9 +42611,7 @@ export const plans = { return resource_similar_table_1PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable1OrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49634,8 +42622,8 @@ export const plans = { }, DeleteSimilarTable1ByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49643,7 +42631,8 @@ export const plans = { DeleteSimilarTable2Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, similarTable2($object) { return $object.get("result"); @@ -49651,7 +42640,7 @@ export const plans = { query() { return rootValue(); }, - similarTable2Edge($mutation, args, info) { + similarTable2Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49667,9 +42656,7 @@ export const plans = { return resource_similar_table_2PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SimilarTable2OrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49680,8 +42667,8 @@ export const plans = { }, DeleteSimilarTable2ByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49689,7 +42676,8 @@ export const plans = { DeleteCNullTestRecordPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cNullTestRecord($object) { return $object.get("result"); @@ -49697,7 +42685,7 @@ export const plans = { query() { return rootValue(); }, - cNullTestRecordEdge($mutation, args, info) { + cNullTestRecordEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49713,9 +42701,7 @@ export const plans = { return resource_c_null_test_recordPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CNullTestRecordOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49726,8 +42712,8 @@ export const plans = { }, DeleteCNullTestRecordByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49735,7 +42721,8 @@ export const plans = { DeleteCLeftArmPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cLeftArm($object) { return $object.get("result"); @@ -49743,7 +42730,7 @@ export const plans = { query() { return rootValue(); }, - cLeftArmEdge($mutation, args, info) { + cLeftArmEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49759,9 +42746,7 @@ export const plans = { return resource_c_left_armPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CLeftArmOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49772,16 +42757,16 @@ export const plans = { }, DeleteCLeftArmByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined }, DeleteCLeftArmByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined @@ -49789,7 +42774,8 @@ export const plans = { DeleteCIssue756Payload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cIssue756($object) { return $object.get("result"); @@ -49797,7 +42783,7 @@ export const plans = { query() { return rootValue(); }, - cIssue756Edge($mutation, args, info) { + cIssue756Edge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49813,9 +42799,7 @@ export const plans = { return resource_c_issue756PgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CIssue756OrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49826,8 +42810,8 @@ export const plans = { }, DeleteCIssue756ByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49835,7 +42819,8 @@ export const plans = { DeletePostPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, post($object) { return $object.get("result"); @@ -49843,7 +42828,7 @@ export const plans = { query() { return rootValue(); }, - postEdge($mutation, args, info) { + postEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49859,9 +42844,7 @@ export const plans = { return resource_postPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PostOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49872,8 +42855,8 @@ export const plans = { }, DeletePostByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49881,7 +42864,8 @@ export const plans = { DeleteCPersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, cPerson($object) { return $object.get("result"); @@ -49889,7 +42873,7 @@ export const plans = { query() { return rootValue(); }, - cPersonEdge($mutation, args, info) { + cPersonEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49905,9 +42889,7 @@ export const plans = { return resource_c_personPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("CPersonOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49918,16 +42900,16 @@ export const plans = { }, DeleteCPersonByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined }, DeleteCPersonByEmailInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, email: undefined @@ -49935,7 +42917,8 @@ export const plans = { DeleteBListPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, bList($object) { return $object.get("result"); @@ -49943,7 +42926,7 @@ export const plans = { query() { return rootValue(); }, - bListEdge($mutation, args, info) { + bListEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -49959,9 +42942,7 @@ export const plans = { return resource_b_listsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BListOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -49972,8 +42953,8 @@ export const plans = { }, DeleteBListByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -49981,7 +42962,8 @@ export const plans = { DeleteBTypePayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, bType($object) { return $object.get("result"); @@ -49989,7 +42971,7 @@ export const plans = { query() { return rootValue(); }, - bTypeEdge($mutation, args, info) { + bTypeEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -50005,9 +42987,7 @@ export const plans = { return resource_b_typesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("BTypeOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -50018,8 +42998,8 @@ export const plans = { }, DeleteBTypeByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined diff --git a/postgraphile/postgraphile/__tests__/schema/v5/skipNodePlugin.polymorphic.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v5/skipNodePlugin.polymorphic.1.export.mjs index 34d81c0b1a..e062929232 100644 --- a/postgraphile/postgraphile/__tests__/schema/v5/skipNodePlugin.polymorphic.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v5/skipNodePlugin.polymorphic.1.export.mjs @@ -1,56 +1,28 @@ -import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, PgSelectStep, PgUnionAllStep, TYPES, assertPgClassSingleStep, enumCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUnionAll, pgUpdateSingle, recordCodec, sqlFromArgDigests } from "@dataplan/pg"; -import { ConnectionStep, EdgeStep, ObjectStep, SafeError, __ValueStep, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, connection, constant, context, first, getEnumValueConfig, makeGrafastSchema, object, rootValue, stepAMayDependOnStepB } from "grafast"; +import { PgDeleteSingleStep, PgExecutor, PgResource, PgSelectSingleStep, TYPES, assertPgClassSingleStep, enumCodec, makeRegistry, pgClassExpression, pgDeleteSingle, pgFromExpression, pgInsertSingle, pgSelectFromRecord, pgSelectSingleFromRecord, pgUnionAll, pgUpdateSingle, recordCodec, sqlFromArgDigests, sqlValueWithCodec } from "@dataplan/pg"; +import { ConnectionStep, EdgeStep, ObjectStep, __ValueStep, assertEdgeCapableStep, assertExecutableStep, assertPageInfoCapableStep, bakedInput, bakedInputRuntime, connection, constant, context, createObjectAndApplyChildren, first, lambda, makeGrafastSchema, object, rootValue, stepAMayDependOnStepB } from "grafast"; import { GraphQLError, Kind } from "graphql"; import { sql } from "pg-sql2"; -import { inspect } from "util"; function hasRecord($row) { return "record" in $row && typeof $row.record === "function"; } -const argDetailsSimple = []; -const makeArgs = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple[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 argDetailsSimple_single_table_items_meaning_of_life = []; +function makeArg(path, args, details) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + fetcher + } = details; + const fullPath = [...path, graphqlArgName]; + const $raw = args.getRaw(fullPath); + const step = fetcher ? fetcher($raw).record() : bakedInput(args.typeAt(fullPath), $raw); + return { + step, + pgCodec, + name: postgresArgName ?? undefined + }; +} +const makeArgs_single_table_items_meaning_of_life = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life.map(details => makeArg(path, args, details)); const executor = new PgExecutor({ name: "main", context() { @@ -62,7 +34,7 @@ const executor = new PgExecutor({ } }); const awsApplicationFirstPartyVulnerabilitiesIdentifier = sql.identifier("polymorphic", "aws_application_first_party_vulnerabilities"); -const spec_awsApplicationFirstPartyVulnerabilities = { +const awsApplicationFirstPartyVulnerabilitiesCodec = recordCodec({ name: "awsApplicationFirstPartyVulnerabilities", identifier: awsApplicationFirstPartyVulnerabilitiesIdentifier, attributes: { @@ -100,10 +72,9 @@ const spec_awsApplicationFirstPartyVulnerabilities = { } }, executor: executor -}; -const awsApplicationFirstPartyVulnerabilitiesCodec = recordCodec(spec_awsApplicationFirstPartyVulnerabilities); +}); const awsApplicationThirdPartyVulnerabilitiesIdentifier = sql.identifier("polymorphic", "aws_application_third_party_vulnerabilities"); -const spec_awsApplicationThirdPartyVulnerabilities = { +const awsApplicationThirdPartyVulnerabilitiesCodec = recordCodec({ name: "awsApplicationThirdPartyVulnerabilities", identifier: awsApplicationThirdPartyVulnerabilitiesIdentifier, attributes: { @@ -141,10 +112,9 @@ const spec_awsApplicationThirdPartyVulnerabilities = { } }, executor: executor -}; -const awsApplicationThirdPartyVulnerabilitiesCodec = recordCodec(spec_awsApplicationThirdPartyVulnerabilities); +}); const gcpApplicationFirstPartyVulnerabilitiesIdentifier = sql.identifier("polymorphic", "gcp_application_first_party_vulnerabilities"); -const spec_gcpApplicationFirstPartyVulnerabilities = { +const gcpApplicationFirstPartyVulnerabilitiesCodec = recordCodec({ name: "gcpApplicationFirstPartyVulnerabilities", identifier: gcpApplicationFirstPartyVulnerabilitiesIdentifier, attributes: { @@ -182,10 +152,9 @@ const spec_gcpApplicationFirstPartyVulnerabilities = { } }, executor: executor -}; -const gcpApplicationFirstPartyVulnerabilitiesCodec = recordCodec(spec_gcpApplicationFirstPartyVulnerabilities); +}); const gcpApplicationThirdPartyVulnerabilitiesIdentifier = sql.identifier("polymorphic", "gcp_application_third_party_vulnerabilities"); -const spec_gcpApplicationThirdPartyVulnerabilities = { +const gcpApplicationThirdPartyVulnerabilitiesCodec = recordCodec({ name: "gcpApplicationThirdPartyVulnerabilities", identifier: gcpApplicationThirdPartyVulnerabilitiesIdentifier, attributes: { @@ -223,10 +192,9 @@ const spec_gcpApplicationThirdPartyVulnerabilities = { } }, executor: executor -}; -const gcpApplicationThirdPartyVulnerabilitiesCodec = recordCodec(spec_gcpApplicationThirdPartyVulnerabilities); +}); const organizationsIdentifier = sql.identifier("polymorphic", "organizations"); -const spec_organizations = { +const organizationsCodec = recordCodec({ name: "organizations", identifier: organizationsIdentifier, attributes: { @@ -264,8 +232,7 @@ const spec_organizations = { } }, executor: executor -}; -const organizationsCodec = recordCodec(spec_organizations); +}); const peopleIdentifier = sql.identifier("polymorphic", "people"); const spec_people = { name: "people", @@ -324,7 +291,7 @@ const spec_people = { }; const peopleCodec = recordCodec(spec_people); const prioritiesIdentifier = sql.identifier("polymorphic", "priorities"); -const spec_priorities = { +const prioritiesCodec = recordCodec({ name: "priorities", identifier: prioritiesIdentifier, attributes: { @@ -362,8 +329,7 @@ const spec_priorities = { } }, executor: executor -}; -const prioritiesCodec = recordCodec(spec_priorities); +}); const relationalChecklistsIdentifier = sql.identifier("polymorphic", "relational_checklists"); const itemTypeCodec = enumCodec({ name: "itemType", @@ -532,7 +498,7 @@ const spec_relationalChecklists = { }; const relationalChecklistsCodec = recordCodec(spec_relationalChecklists); const relationalItemRelationCompositePksIdentifier = sql.identifier("polymorphic", "relational_item_relation_composite_pks"); -const spec_relationalItemRelationCompositePks = { +const relationalItemRelationCompositePksCodec = recordCodec({ name: "relationalItemRelationCompositePks", identifier: relationalItemRelationCompositePksIdentifier, attributes: { @@ -569,10 +535,9 @@ const spec_relationalItemRelationCompositePks = { } }, executor: executor -}; -const relationalItemRelationCompositePksCodec = recordCodec(spec_relationalItemRelationCompositePks); +}); const relationalTopicsIdentifier = sql.identifier("polymorphic", "relational_topics"); -const spec_relationalTopics = { +const relationalTopicsCodec = recordCodec({ name: "relationalTopics", identifier: relationalTopicsIdentifier, attributes: { @@ -720,10 +685,9 @@ const spec_relationalTopics = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalTopicsCodec = recordCodec(spec_relationalTopics); +}); const singleTableItemRelationCompositePksIdentifier = sql.identifier("polymorphic", "single_table_item_relation_composite_pks"); -const spec_singleTableItemRelationCompositePks = { +const singleTableItemRelationCompositePksCodec = recordCodec({ name: "singleTableItemRelationCompositePks", identifier: singleTableItemRelationCompositePksIdentifier, attributes: { @@ -760,10 +724,9 @@ const spec_singleTableItemRelationCompositePks = { } }, executor: executor -}; -const singleTableItemRelationCompositePksCodec = recordCodec(spec_singleTableItemRelationCompositePks); +}); const relationalChecklistItemsIdentifier = sql.identifier("polymorphic", "relational_checklist_items"); -const spec_relationalChecklistItems = { +const relationalChecklistItemsCodec = recordCodec({ name: "relationalChecklistItems", identifier: relationalChecklistItemsIdentifier, attributes: { @@ -920,10 +883,9 @@ const spec_relationalChecklistItems = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalChecklistItemsCodec = recordCodec(spec_relationalChecklistItems); +}); const relationalDividersIdentifier = sql.identifier("polymorphic", "relational_dividers"); -const spec_relationalDividers = { +const relationalDividersCodec = recordCodec({ name: "relationalDividers", identifier: relationalDividersIdentifier, attributes: { @@ -1080,10 +1042,9 @@ const spec_relationalDividers = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalDividersCodec = recordCodec(spec_relationalDividers); +}); const relationalItemRelationsIdentifier = sql.identifier("polymorphic", "relational_item_relations"); -const spec_relationalItemRelations = { +const relationalItemRelationsCodec = recordCodec({ name: "relationalItemRelations", identifier: relationalItemRelationsIdentifier, attributes: { @@ -1129,10 +1090,9 @@ const spec_relationalItemRelations = { } }, executor: executor -}; -const relationalItemRelationsCodec = recordCodec(spec_relationalItemRelations); +}); const singleTableItemRelationsIdentifier = sql.identifier("polymorphic", "single_table_item_relations"); -const spec_singleTableItemRelations = { +const singleTableItemRelationsCodec = recordCodec({ name: "singleTableItemRelations", identifier: singleTableItemRelationsIdentifier, attributes: { @@ -1178,8 +1138,7 @@ const spec_singleTableItemRelations = { } }, executor: executor -}; -const singleTableItemRelationsCodec = recordCodec(spec_singleTableItemRelations); +}); const logEntriesIdentifier = sql.identifier("polymorphic", "log_entries"); const spec_logEntries = { name: "logEntries", @@ -1255,7 +1214,7 @@ const spec_logEntries = { }; const logEntriesCodec = recordCodec(spec_logEntries); const relationalPostsIdentifier = sql.identifier("polymorphic", "relational_posts"); -const spec_relationalPosts = { +const relationalPostsCodec = recordCodec({ name: "relationalPosts", identifier: relationalPostsIdentifier, attributes: { @@ -1421,8 +1380,7 @@ const spec_relationalPosts = { relationalInterfaceCodecName: "relationalItems" }, executor: executor -}; -const relationalPostsCodec = recordCodec(spec_relationalPosts); +}); const firstPartyVulnerabilitiesIdentifier = sql.identifier("polymorphic", "first_party_vulnerabilities"); const spec_firstPartyVulnerabilities = { name: "firstPartyVulnerabilities", @@ -4599,26 +4557,9 @@ const registry = makeRegistry(registryConfig); const resource_single_table_items_meaning_of_lifePgResource = registry.pgResources["single_table_items_meaning_of_life"]; const otherSource_peoplePgResource = registry.pgResources["people"]; const otherSource_single_table_itemsPgResource = registry.pgResources["single_table_items"]; -const applyOrderToPlan = ($select, $value, TableOrderByType) => { - if (!("evalLength" in $value)) { - return; - } - const length = $value.evalLength(); - if (length == null) { - return; - } - for (let i = 0; i < length; i++) { - const order = $value.at(i).eval(); - if (order == null) continue; - const config = getEnumValueConfig(TableOrderByType, order); - const plan = config?.extensions?.grafast?.applyPlan; - if (typeof plan !== "function") { - console.error(`Internal server error: invalid orderBy configuration: expected function, but received ${inspect(plan)}`); - throw new SafeError("Internal server error: invalid orderBy configuration"); - } - plan($select); - } -}; +function qbWhereBuilder(qb) { + return qb.whereBuilder(); +} const otherSource_single_table_item_relationsPgResource = registry.pgResources["single_table_item_relations"]; const otherSource_single_table_item_relation_composite_pksPgResource = registry.pgResources["single_table_item_relation_composite_pks"]; function BigIntSerialize(value) { @@ -4665,6 +4606,13 @@ const resourceByTypeName = { AwsApplication: otherSource_aws_applicationsPgResource, GcpApplication: otherSource_gcp_applicationsPgResource }; +function limitToTypes(ltt) { + if (ltt) { + return qb => qb.limitToTypes(ltt); + } else { + return () => {}; + } +} const otherSource_organizationsPgResource = registry.pgResources["organizations"]; const attributes = {}; const members2 = [{ @@ -4799,51 +4747,8 @@ const resourceByTypeName4 = { Person: otherSource_peoplePgResource, Organization: otherSource_organizationsPgResource }; -const argDetailsSimple2 = []; -const makeArgs2 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple2[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 argDetailsSimple_first_party_vulnerabilities_cvss_score_int = []; +const makeArgs_first_party_vulnerabilities_cvss_score_int = (args, path = []) => argDetailsSimple_first_party_vulnerabilities_cvss_score_int.map(details => makeArg(path, args, details)); const resource_first_party_vulnerabilities_cvss_score_intPgResource = registry.pgResources["first_party_vulnerabilities_cvss_score_int"]; const otherSource_gcp_application_first_party_vulnerabilitiesPgResource = registry.pgResources["gcp_application_first_party_vulnerabilities"]; const members5 = [{ @@ -5123,51 +5028,8 @@ const resourceByTypeName8 = { Person: otherSource_peoplePgResource, Organization: otherSource_organizationsPgResource }; -const argDetailsSimple3 = []; -const makeArgs3 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple3[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 argDetailsSimple_third_party_vulnerabilities_cvss_score_int = []; +const makeArgs_third_party_vulnerabilities_cvss_score_int = (args, path = []) => argDetailsSimple_third_party_vulnerabilities_cvss_score_int.map(details => makeArg(path, args, details)); const resource_third_party_vulnerabilities_cvss_score_intPgResource = registry.pgResources["third_party_vulnerabilities_cvss_score_int"]; const members9 = [{ resource: otherSource_aws_application_third_party_vulnerabilitiesPgResource, @@ -5354,187 +5216,15 @@ const resourceByTypeName10 = { Person: otherSource_peoplePgResource, Organization: otherSource_organizationsPgResource }; -const argDetailsSimple4 = []; -const makeArgs4 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple4[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 argDetailsSimple_single_table_items_meaning_of_life2 = []; +const makeArgs_single_table_items_meaning_of_life2 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life2.map(details => makeArg(path, args, details)); const otherSource_prioritiesPgResource = registry.pgResources["priorities"]; -const argDetailsSimple5 = []; -const makeArgs5 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple5[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 argDetailsSimple6 = []; -const makeArgs6 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple6[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 argDetailsSimple7 = []; -const makeArgs7 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple7[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 argDetailsSimple_single_table_items_meaning_of_life3 = []; +const makeArgs_single_table_items_meaning_of_life3 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life3.map(details => makeArg(path, args, details)); +const argDetailsSimple_single_table_items_meaning_of_life4 = []; +const makeArgs_single_table_items_meaning_of_life4 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life4.map(details => makeArg(path, args, details)); +const argDetailsSimple_single_table_items_meaning_of_life5 = []; +const makeArgs_single_table_items_meaning_of_life5 = (args, path = []) => argDetailsSimple_single_table_items_meaning_of_life5.map(details => makeArg(path, args, details)); const relational_topics_relational_topicsPgResource = registry.pgResources["relational_topics"]; const relational_item_relations_relational_item_relationsPgResource = registry.pgResources["relational_item_relations"]; const relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource = registry.pgResources["relational_item_relation_composite_pks"]; @@ -5542,107 +5232,21 @@ const resource_relational_checklistsPgResource = registry.pgResources["relationa const resource_relational_checklist_itemsPgResource = registry.pgResources["relational_checklist_items"]; const resource_relational_dividersPgResource = registry.pgResources["relational_dividers"]; const resource_relational_postsPgResource = registry.pgResources["relational_posts"]; -const argDetailsSimple8 = []; -const makeArgs8 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 0; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple8[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 argDetailsSimple_all_single_tables = []; +const makeArgs_all_single_tables = (args, path = []) => argDetailsSimple_all_single_tables.map(details => makeArg(path, args, details)); const resource_all_single_tablesPgResource = registry.pgResources["all_single_tables"]; const getSelectPlanFromParentAndArgs = ($root, args, _info) => { - const selectArgs = makeArgs8(args); + const selectArgs = makeArgs_all_single_tables(args); return resource_all_single_tablesPgResource.execute(selectArgs); }; -const argDetailsSimple9 = [{ +const argDetailsSimple_get_single_table_topic_by_id = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs9 = (args, path = []) => { - const selectArgs = []; - let skipped = false; - for (let i = 0; i < 1; i++) { - const { - graphqlArgName, - postgresArgName, - pgCodec, - required, - fetcher - } = argDetailsSimple9[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 makeArgs_get_single_table_topic_by_id = (args, path = []) => argDetailsSimple_get_single_table_topic_by_id.map(details => makeArg(path, args, details)); const resource_get_single_table_topic_by_idPgResource = registry.pgResources["get_single_table_topic_by_id"]; const members11 = [{ resource: paths_0_resource_first_party_vulnerabilitiesPgResource, @@ -14228,7 +13832,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -14243,27 +13847,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -14322,7 +13920,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14331,7 +13928,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14340,7 +13936,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14349,7 +13944,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14358,7 +13952,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14367,22 +13960,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14399,7 +13988,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14408,7 +13996,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14417,7 +14004,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14426,7 +14012,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14435,7 +14020,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14444,22 +14028,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14476,7 +14056,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14485,7 +14064,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14494,7 +14072,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14503,7 +14080,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14512,7 +14088,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14521,22 +14096,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14553,7 +14124,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14562,7 +14132,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14571,7 +14140,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14580,7 +14148,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14589,7 +14156,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14598,22 +14164,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14630,7 +14192,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14639,7 +14200,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14648,7 +14208,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14657,7 +14216,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14666,7 +14224,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14675,22 +14232,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14741,7 +14294,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14750,7 +14302,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14759,7 +14310,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14768,7 +14318,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14777,7 +14326,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14786,22 +14334,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LogEntryOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14818,7 +14362,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14827,7 +14370,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14836,7 +14378,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14845,7 +14386,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14854,7 +14394,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14863,22 +14402,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14895,7 +14430,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14904,7 +14438,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14913,7 +14446,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14922,7 +14454,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -14931,7 +14462,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -14940,22 +14470,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -14972,7 +14498,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -14981,7 +14506,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -14990,7 +14514,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -14999,7 +14522,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15008,7 +14530,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15017,22 +14538,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15049,7 +14566,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15058,7 +14574,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15067,7 +14582,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15076,7 +14590,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15085,7 +14598,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15094,22 +14606,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15147,7 +14655,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15156,7 +14663,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15165,7 +14671,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15174,7 +14679,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15183,7 +14687,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15192,32 +14695,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -15311,7 +14810,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15320,7 +14818,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15329,7 +14826,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15338,7 +14834,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15347,7 +14842,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15356,22 +14850,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LogEntryOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15388,7 +14878,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15397,7 +14886,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15406,7 +14894,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15415,7 +14902,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15424,7 +14910,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15433,22 +14918,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15465,7 +14946,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15474,7 +14954,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15483,7 +14962,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15492,7 +14970,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15501,7 +14978,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15510,22 +14986,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15543,31 +15015,21 @@ export const plans = { } }, LogEntryOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { log_entriesUniques[0].attributes.forEach(attributeName => { - const attribute = logEntriesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15576,19 +15038,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { log_entriesUniques[0].attributes.forEach(attributeName => { - const attribute = logEntriesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15597,11 +15057,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -15609,7 +15066,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15619,11 +15076,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -15631,7 +15085,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15641,11 +15095,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -15653,7 +15104,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15663,11 +15114,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -15675,7 +15123,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15685,11 +15133,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -15697,7 +15142,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15707,11 +15152,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -15719,7 +15161,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15729,11 +15171,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "text", direction: "ASC", ...(undefined != null ? { @@ -15741,7 +15180,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15751,11 +15190,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "text", direction: "DESC", ...(undefined != null ? { @@ -15763,7 +15199,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -15772,8 +15208,8 @@ export const plans = { }, LogEntryCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -15786,17 +15222,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -15809,17 +15243,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -15832,17 +15264,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, text: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "text", @@ -15855,13 +15285,11 @@ export const plans = { type: "attribute", attribute: "text", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_logEntries.attributes.text.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, AwsApplicationConnection: { @@ -15921,7 +15349,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -15930,7 +15357,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -15939,7 +15365,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -15948,7 +15373,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -15957,7 +15381,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -15966,22 +15389,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationFirstPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -15998,7 +15417,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16007,7 +15425,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16016,7 +15433,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16025,7 +15441,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16034,7 +15449,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16043,22 +15457,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationThirdPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16096,7 +15506,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16105,7 +15514,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16114,7 +15522,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16123,7 +15530,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16132,7 +15538,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16141,32 +15546,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("VulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -16328,7 +15729,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs2(args); + const extraSelectArgs = makeArgs_first_party_vulnerabilities_cvss_score_int(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -16343,27 +15744,21 @@ export const plans = { if (resource_first_party_vulnerabilities_cvss_score_intPgResource.isUnique && !resource_first_party_vulnerabilities_cvss_score_intPgResource.codec.attributes && typeof resource_first_party_vulnerabilities_cvss_score_intPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_first_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${resource_first_party_vulnerabilities_cvss_score_intPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_first_party_vulnerabilities_cvss_score_intPgResource.from, resource_first_party_vulnerabilities_cvss_score_intPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_first_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_first_party_vulnerabilities_cvss_score_intPgResource.execute(selectArgs); @@ -16391,7 +15786,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16400,7 +15794,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16409,7 +15802,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16418,7 +15810,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16427,7 +15818,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16436,22 +15826,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationFirstPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16468,7 +15854,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16477,7 +15862,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16486,7 +15870,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16495,7 +15878,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16504,7 +15886,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16513,22 +15894,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationFirstPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -16566,7 +15943,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16575,7 +15951,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16584,7 +15959,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16593,7 +15967,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16602,7 +15975,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16611,32 +15983,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -16671,31 +16039,21 @@ export const plans = { } }, AwsApplicationFirstPartyVulnerabilityOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { aws_application_first_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = awsApplicationFirstPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16704,19 +16062,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { aws_application_first_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = awsApplicationFirstPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16725,11 +16081,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "aws_application_id", direction: "ASC", ...(undefined != null ? { @@ -16737,7 +16090,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16747,11 +16100,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "aws_application_id", direction: "DESC", ...(undefined != null ? { @@ -16759,7 +16109,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16769,11 +16119,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_party_vulnerability_id", direction: "ASC", ...(undefined != null ? { @@ -16781,7 +16128,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16791,11 +16138,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_party_vulnerability_id", direction: "DESC", ...(undefined != null ? { @@ -16803,7 +16147,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -16812,8 +16156,8 @@ export const plans = { }, AwsApplicationFirstPartyVulnerabilityCondition: { awsApplicationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aws_application_id", @@ -16826,17 +16170,15 @@ export const plans = { type: "attribute", attribute: "aws_application_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplicationFirstPartyVulnerabilities.attributes.aws_application_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstPartyVulnerabilityId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_party_vulnerability_id", @@ -16849,13 +16191,11 @@ export const plans = { type: "attribute", attribute: "first_party_vulnerability_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplicationFirstPartyVulnerabilities.attributes.first_party_vulnerability_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, GcpApplicationFirstPartyVulnerabilityConnection: { @@ -16934,7 +16274,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -16943,7 +16282,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -16952,7 +16290,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -16961,7 +16298,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -16970,7 +16306,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -16979,22 +16314,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationFirstPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17011,7 +16342,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17020,7 +16350,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17029,7 +16358,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17038,7 +16366,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17047,7 +16374,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17056,22 +16382,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationThirdPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17109,7 +16431,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17118,7 +16439,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17127,7 +16447,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17136,7 +16455,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17145,7 +16463,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17154,32 +16471,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("VulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -17214,31 +16527,21 @@ export const plans = { } }, GcpApplicationFirstPartyVulnerabilityOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { gcp_application_first_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = gcpApplicationFirstPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17247,19 +16550,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { gcp_application_first_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = gcpApplicationFirstPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17268,11 +16569,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "gcp_application_id", direction: "ASC", ...(undefined != null ? { @@ -17280,7 +16578,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17290,11 +16588,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "gcp_application_id", direction: "DESC", ...(undefined != null ? { @@ -17302,7 +16597,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17312,11 +16607,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_party_vulnerability_id", direction: "ASC", ...(undefined != null ? { @@ -17324,7 +16616,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17334,11 +16626,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "first_party_vulnerability_id", direction: "DESC", ...(undefined != null ? { @@ -17346,7 +16635,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17355,8 +16644,8 @@ export const plans = { }, GcpApplicationFirstPartyVulnerabilityCondition: { gcpApplicationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "gcp_application_id", @@ -17369,17 +16658,15 @@ export const plans = { type: "attribute", attribute: "gcp_application_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplicationFirstPartyVulnerabilities.attributes.gcp_application_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, firstPartyVulnerabilityId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "first_party_vulnerability_id", @@ -17392,13 +16679,11 @@ export const plans = { type: "attribute", attribute: "first_party_vulnerability_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplicationFirstPartyVulnerabilities.attributes.first_party_vulnerability_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, GcpApplicationThirdPartyVulnerabilityConnection: { @@ -17442,7 +16727,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs3(args); + const extraSelectArgs = makeArgs_third_party_vulnerabilities_cvss_score_int(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -17457,27 +16742,21 @@ export const plans = { if (resource_third_party_vulnerabilities_cvss_score_intPgResource.isUnique && !resource_third_party_vulnerabilities_cvss_score_intPgResource.codec.attributes && typeof resource_third_party_vulnerabilities_cvss_score_intPgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_third_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${resource_third_party_vulnerabilities_cvss_score_intPgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_third_party_vulnerabilities_cvss_score_intPgResource.from, resource_third_party_vulnerabilities_cvss_score_intPgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_third_party_vulnerabilities_cvss_score_intPgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_third_party_vulnerabilities_cvss_score_intPgResource.execute(selectArgs); @@ -17505,7 +16784,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17514,7 +16792,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17523,7 +16800,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17532,7 +16808,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17541,7 +16816,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17550,22 +16824,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationThirdPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17582,7 +16852,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17591,7 +16860,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17600,7 +16868,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17609,7 +16876,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17618,7 +16884,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17627,22 +16892,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationThirdPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -17680,7 +16941,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -17689,7 +16949,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -17698,7 +16957,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -17707,7 +16965,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -17716,7 +16973,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -17725,32 +16981,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -17829,31 +17081,21 @@ export const plans = { } }, AwsApplicationThirdPartyVulnerabilityOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { aws_application_third_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = awsApplicationThirdPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17862,19 +17104,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { aws_application_third_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = awsApplicationThirdPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17883,11 +17123,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "aws_application_id", direction: "ASC", ...(undefined != null ? { @@ -17895,7 +17132,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17905,11 +17142,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "aws_application_id", direction: "DESC", ...(undefined != null ? { @@ -17917,7 +17151,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17927,11 +17161,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "third_party_vulnerability_id", direction: "ASC", ...(undefined != null ? { @@ -17939,7 +17170,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17949,11 +17180,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "third_party_vulnerability_id", direction: "DESC", ...(undefined != null ? { @@ -17961,7 +17189,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -17970,8 +17198,8 @@ export const plans = { }, AwsApplicationThirdPartyVulnerabilityCondition: { awsApplicationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aws_application_id", @@ -17984,17 +17212,15 @@ export const plans = { type: "attribute", attribute: "aws_application_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplicationThirdPartyVulnerabilities.attributes.aws_application_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, thirdPartyVulnerabilityId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "third_party_vulnerability_id", @@ -18007,41 +17233,29 @@ export const plans = { type: "attribute", attribute: "third_party_vulnerability_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplicationThirdPartyVulnerabilities.attributes.third_party_vulnerability_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, GcpApplicationThirdPartyVulnerabilityOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { gcp_application_third_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = gcpApplicationThirdPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18050,19 +17264,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { gcp_application_third_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = gcpApplicationThirdPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18071,11 +17283,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "gcp_application_id", direction: "ASC", ...(undefined != null ? { @@ -18083,7 +17292,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18093,11 +17302,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "gcp_application_id", direction: "DESC", ...(undefined != null ? { @@ -18105,7 +17311,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18115,11 +17321,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "third_party_vulnerability_id", direction: "ASC", ...(undefined != null ? { @@ -18127,7 +17330,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18137,11 +17340,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "third_party_vulnerability_id", direction: "DESC", ...(undefined != null ? { @@ -18149,7 +17349,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18158,8 +17358,8 @@ export const plans = { }, GcpApplicationThirdPartyVulnerabilityCondition: { gcpApplicationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "gcp_application_id", @@ -18172,17 +17372,15 @@ export const plans = { type: "attribute", attribute: "gcp_application_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplicationThirdPartyVulnerabilities.attributes.gcp_application_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, thirdPartyVulnerabilityId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "third_party_vulnerability_id", @@ -18195,33 +17393,20 @@ export const plans = { type: "attribute", attribute: "third_party_vulnerability_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplicationThirdPartyVulnerabilities.attributes.third_party_vulnerability_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ApplicationOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ROW_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -18229,7 +17414,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18239,11 +17424,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -18251,7 +17433,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18261,11 +17443,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -18273,7 +17452,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18283,11 +17462,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -18295,7 +17471,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18305,11 +17481,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "ASC", ...(undefined != null ? { @@ -18317,7 +17490,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18327,11 +17500,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "DESC", ...(undefined != null ? { @@ -18339,7 +17509,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18348,8 +17518,8 @@ export const plans = { }, ApplicationCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -18362,17 +17532,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Application.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -18385,17 +17553,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Application.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastDeployed: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_deployed", @@ -18408,13 +17574,11 @@ export const plans = { type: "attribute", attribute: "last_deployed", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Application.attributes.last_deployed.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, GcpApplicationThirdPartyVulnerabilityEdge: { @@ -18427,23 +17591,12 @@ export const plans = { } }, VulnerabilityOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ROW_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -18451,7 +17604,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18461,11 +17614,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -18473,7 +17623,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18483,11 +17633,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -18495,7 +17642,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18505,11 +17652,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -18517,7 +17661,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18527,11 +17671,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "ASC", ...(undefined != null ? { @@ -18539,7 +17680,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18549,11 +17690,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "DESC", ...(undefined != null ? { @@ -18561,7 +17699,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18570,8 +17708,8 @@ export const plans = { }, VulnerabilityCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -18584,17 +17722,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Vulnerability.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -18607,17 +17743,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Vulnerability.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cvssScore: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cvss_score", @@ -18630,13 +17764,11 @@ export const plans = { type: "attribute", attribute: "cvss_score", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_Vulnerability.attributes.cvss_score.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, GcpApplicationFirstPartyVulnerabilityEdge: { @@ -18667,31 +17799,21 @@ export const plans = { } }, AwsApplicationOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { aws_applicationsUniques[0].attributes.forEach(attributeName => { - const attribute = awsApplicationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18700,19 +17822,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { aws_applicationsUniques[0].attributes.forEach(attributeName => { - const attribute = awsApplicationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18721,11 +17841,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -18733,7 +17850,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18743,11 +17860,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -18755,7 +17869,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18765,11 +17879,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -18777,7 +17888,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18787,11 +17898,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -18799,7 +17907,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18809,11 +17917,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "ASC", ...(undefined != null ? { @@ -18821,7 +17926,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18831,11 +17936,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "DESC", ...(undefined != null ? { @@ -18843,7 +17945,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18853,11 +17955,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -18865,7 +17964,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18875,11 +17974,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -18887,7 +17983,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18897,11 +17993,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -18909,7 +18002,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18919,11 +18012,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -18931,7 +18021,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18941,11 +18031,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "aws_id", direction: "ASC", ...(undefined != null ? { @@ -18953,7 +18040,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18963,11 +18050,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "aws_id", direction: "DESC", ...(undefined != null ? { @@ -18975,7 +18059,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -18984,8 +18068,8 @@ export const plans = { }, AwsApplicationCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -18998,17 +18082,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -19021,17 +18103,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastDeployed: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_deployed", @@ -19044,17 +18124,15 @@ export const plans = { type: "attribute", attribute: "last_deployed", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.last_deployed.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -19067,17 +18145,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -19090,17 +18166,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, awsId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "aws_id", @@ -19113,13 +18187,11 @@ export const plans = { type: "attribute", attribute: "aws_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_awsApplications.attributes.aws_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, GcpApplicationConnection: { @@ -19148,31 +18220,21 @@ export const plans = { } }, GcpApplicationOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { gcp_applicationsUniques[0].attributes.forEach(attributeName => { - const attribute = gcpApplicationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19181,19 +18243,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { gcp_applicationsUniques[0].attributes.forEach(attributeName => { - const attribute = gcpApplicationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19202,11 +18262,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -19214,7 +18271,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19224,11 +18281,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -19236,7 +18290,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19246,11 +18300,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -19258,7 +18309,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19268,11 +18319,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -19280,7 +18328,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19290,11 +18338,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "ASC", ...(undefined != null ? { @@ -19302,7 +18347,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19312,11 +18357,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "last_deployed", direction: "DESC", ...(undefined != null ? { @@ -19324,7 +18366,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19334,11 +18376,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -19346,7 +18385,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19356,11 +18395,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -19368,7 +18404,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19378,11 +18414,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -19390,7 +18423,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19400,11 +18433,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -19412,7 +18442,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19422,11 +18452,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "gcp_id", direction: "ASC", ...(undefined != null ? { @@ -19434,7 +18461,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19444,11 +18471,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "gcp_id", direction: "DESC", ...(undefined != null ? { @@ -19456,7 +18480,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19465,8 +18489,8 @@ export const plans = { }, GcpApplicationCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -19479,17 +18503,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -19502,17 +18524,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, lastDeployed: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "last_deployed", @@ -19525,17 +18545,15 @@ export const plans = { type: "attribute", attribute: "last_deployed", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.last_deployed.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -19548,17 +18566,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -19571,17 +18587,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, gcpId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "gcp_id", @@ -19594,13 +18608,11 @@ export const plans = { type: "attribute", attribute: "gcp_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_gcpApplications.attributes.gcp_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, LogEntryEdge: { @@ -19638,31 +18650,21 @@ export const plans = { } }, SingleTableItemOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19671,19 +18673,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19692,11 +18692,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -19704,7 +18701,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19714,11 +18711,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -19726,7 +18720,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19736,11 +18730,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -19748,7 +18739,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19758,11 +18749,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -19770,7 +18758,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19780,11 +18768,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -19792,7 +18777,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19802,11 +18787,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -19814,7 +18796,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19824,11 +18806,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -19836,7 +18815,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19846,11 +18825,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -19858,7 +18834,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19868,11 +18844,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -19880,7 +18853,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19890,11 +18863,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -19902,7 +18872,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19912,11 +18882,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -19924,7 +18891,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19934,11 +18901,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -19946,7 +18910,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19956,11 +18920,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -19968,7 +18929,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -19978,11 +18939,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -19990,7 +18948,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20000,11 +18958,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -20012,7 +18967,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20022,11 +18977,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -20034,7 +18986,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20044,11 +18996,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -20056,7 +19005,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20066,11 +19015,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -20078,7 +19024,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20088,11 +19034,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -20100,7 +19043,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20110,11 +19053,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -20122,7 +19062,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20131,8 +19071,8 @@ export const plans = { }, SingleTableItemCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20145,17 +19085,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -20168,17 +19106,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -20191,17 +19127,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -20214,17 +19148,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -20237,17 +19169,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -20260,17 +19190,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -20283,17 +19211,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -20306,17 +19232,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -20329,17 +19253,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -20352,13 +19274,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItems.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalItemConnection: { @@ -20478,31 +19398,21 @@ export const plans = { } }, RelationalItemOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20511,19 +19421,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20532,11 +19440,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -20544,7 +19449,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20554,11 +19459,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -20566,7 +19468,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20576,11 +19478,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -20588,7 +19487,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20598,11 +19497,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -20610,7 +19506,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20620,11 +19516,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -20632,7 +19525,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20642,11 +19535,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -20654,7 +19544,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20664,11 +19554,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -20676,7 +19563,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20686,11 +19573,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -20698,7 +19582,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20708,11 +19592,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -20720,7 +19601,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20730,11 +19611,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -20742,7 +19620,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20752,11 +19630,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -20764,7 +19639,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20774,11 +19649,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -20786,7 +19658,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20796,11 +19668,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -20808,7 +19677,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20818,11 +19687,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -20830,7 +19696,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20840,11 +19706,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -20852,7 +19715,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20862,11 +19725,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -20874,7 +19734,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20884,11 +19744,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -20896,7 +19753,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20906,11 +19763,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -20918,7 +19772,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20928,11 +19782,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -20940,7 +19791,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20950,11 +19801,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -20962,7 +19810,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -20971,8 +19819,8 @@ export const plans = { }, RelationalItemCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -20985,17 +19833,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -21008,17 +19854,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -21031,17 +19875,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -21054,17 +19896,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -21077,17 +19917,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -21100,17 +19938,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -21123,17 +19959,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -21146,17 +19980,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -21169,17 +20001,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -21192,13 +20022,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItems.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SingleTableItemRelationConnection: { @@ -21293,31 +20121,21 @@ export const plans = { } }, SingleTableItemRelationOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21326,19 +20144,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21347,11 +20163,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -21359,7 +20172,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21369,11 +20182,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -21381,7 +20191,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21391,11 +20201,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -21403,7 +20210,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21413,11 +20220,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -21425,7 +20229,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21435,11 +20239,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -21447,7 +20248,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21457,11 +20258,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -21469,7 +20267,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21478,8 +20276,8 @@ export const plans = { }, SingleTableItemRelationCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -21492,17 +20290,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelations.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -21515,17 +20311,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelations.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -21538,41 +20332,29 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelations.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SingleTableItemRelationCompositePkOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21581,19 +20363,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { single_table_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = singleTableItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21602,11 +20382,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -21614,7 +20391,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21624,11 +20401,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -21636,7 +20410,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21646,11 +20420,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -21658,7 +20429,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21668,11 +20439,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -21680,7 +20448,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -21689,8 +20457,8 @@ export const plans = { }, SingleTableItemRelationCompositePkCondition: { parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -21703,17 +20471,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelationCompositePks.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -21726,13 +20492,11 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_singleTableItemRelationCompositePks.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, SingleTablePost: { @@ -21741,7 +20505,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs4(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life2(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -21756,27 +20520,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -21849,7 +20607,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21858,7 +20615,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21867,7 +20623,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21876,7 +20631,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21885,7 +20639,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21894,22 +20647,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -21926,7 +20675,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -21935,7 +20683,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -21944,7 +20691,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -21953,7 +20699,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -21962,7 +20707,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -21971,22 +20715,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22003,7 +20743,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22012,7 +20751,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22021,7 +20759,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22030,7 +20767,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22039,7 +20775,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22048,22 +20783,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22080,7 +20811,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22089,7 +20819,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22098,7 +20827,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22107,7 +20835,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22116,7 +20843,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22125,22 +20851,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22157,7 +20879,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22166,7 +20887,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22175,7 +20895,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22184,7 +20903,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22193,7 +20911,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22202,22 +20919,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22248,7 +20961,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22257,7 +20969,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22266,7 +20977,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22275,7 +20985,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22284,7 +20993,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22293,22 +21001,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22321,7 +21025,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs5(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life3(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -22336,27 +21040,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -22418,7 +21116,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22427,7 +21124,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22436,7 +21132,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22445,7 +21140,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22454,7 +21148,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22463,22 +21156,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22495,7 +21184,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22504,7 +21192,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22513,7 +21200,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22522,7 +21208,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22531,7 +21216,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22540,22 +21224,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22572,7 +21252,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22581,7 +21260,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22590,7 +21268,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22599,7 +21276,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22608,7 +21284,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22617,22 +21292,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22649,7 +21320,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22658,7 +21328,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22667,7 +21336,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22676,7 +21344,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22685,7 +21352,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22694,22 +21360,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22726,7 +21388,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22735,7 +21396,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22744,7 +21404,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22753,7 +21412,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22762,7 +21420,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22771,22 +21428,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22804,7 +21457,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs6(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life4(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -22819,27 +21472,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -22898,7 +21545,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22907,7 +21553,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22916,7 +21561,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -22925,7 +21569,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -22934,7 +21577,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -22943,22 +21585,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -22975,7 +21613,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -22984,7 +21621,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -22993,7 +21629,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23002,7 +21637,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23011,7 +21645,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23020,22 +21653,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23052,7 +21681,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23061,7 +21689,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23070,7 +21697,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23079,7 +21705,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23088,7 +21713,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23097,22 +21721,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23129,7 +21749,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23138,7 +21757,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23147,7 +21765,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23156,7 +21773,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23165,7 +21781,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23174,22 +21789,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23206,7 +21817,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23215,7 +21825,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23224,7 +21833,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23233,7 +21841,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23242,7 +21849,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23251,22 +21857,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23289,7 +21891,7 @@ export const plans = { if (!hasRecord($in)) { throw new Error(`Invalid plan, exepcted 'PgSelectSingleStep', 'PgInsertSingleStep', 'PgUpdateSingleStep' or 'PgDeleteSingleStep', but found ${$in}`); } - const extraSelectArgs = makeArgs7(args); + const extraSelectArgs = makeArgs_single_table_items_meaning_of_life5(args); /** * An optimisation - if all our dependencies are * compatible with the expression's class plan then we @@ -23304,27 +21906,21 @@ export const plans = { if (resource_single_table_items_meaning_of_lifePgResource.isUnique && !resource_single_table_items_meaning_of_lifePgResource.codec.attributes && typeof resource_single_table_items_meaning_of_lifePgResource.from === "function") { // This is a scalar computed attribute, let's inline the expression const newSelectArgs = selectArgs.map((arg, i) => { - const { - name - } = arg; if (i === 0) { + const { + step, + ...rest + } = arg; return { - name, + ...rest, placeholder: $row.getClassStep().alias }; - } else if ("pgCodec" in arg && arg.pgCodec) { - return { - name, - placeholder: $row.placeholder(arg.step, arg.pgCodec) - }; } else { - return { - name, - placeholder: $row.placeholder(arg.step) - }; + return arg; } }); - return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${resource_single_table_items_meaning_of_lifePgResource.from(...newSelectArgs)}`; + const from = pgFromExpression($row, resource_single_table_items_meaning_of_lifePgResource.from, resource_single_table_items_meaning_of_lifePgResource.parameters, newSelectArgs); + return pgClassExpression($row, resource_single_table_items_meaning_of_lifePgResource.codec, undefined)`${from}`; } // PERF: or here, if scalar add select to `$row`? return resource_single_table_items_meaning_of_lifePgResource.execute(selectArgs); @@ -23394,7 +21990,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23403,7 +21998,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23412,7 +22006,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23421,7 +22014,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23430,7 +22022,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23439,22 +22030,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23471,7 +22058,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23480,7 +22066,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23489,7 +22074,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23498,7 +22082,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23507,7 +22090,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23516,22 +22098,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23548,7 +22126,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23557,7 +22134,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23566,7 +22142,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23575,7 +22150,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23584,7 +22158,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23593,22 +22166,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23625,7 +22194,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23634,7 +22202,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23643,7 +22210,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23652,7 +22218,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23661,7 +22226,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23670,22 +22234,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23702,7 +22262,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23711,7 +22270,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23720,7 +22278,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23729,7 +22286,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23738,7 +22294,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23747,22 +22302,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23820,7 +22371,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23829,7 +22379,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23838,7 +22387,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23847,7 +22395,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23856,7 +22403,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23865,22 +22411,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -23947,7 +22489,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -23956,7 +22497,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -23965,7 +22505,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -23974,7 +22513,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -23983,7 +22521,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -23992,22 +22529,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24032,7 +22565,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24041,7 +22573,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24050,7 +22581,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24059,7 +22589,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24068,7 +22597,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24077,22 +22605,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24117,7 +22641,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24126,7 +22649,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24135,7 +22657,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24144,7 +22665,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24153,7 +22673,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24162,22 +22681,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24202,7 +22717,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24211,7 +22725,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24220,7 +22733,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24229,7 +22741,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24238,7 +22749,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24247,22 +22757,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24287,7 +22793,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24296,7 +22801,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24305,7 +22809,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24314,7 +22817,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24323,7 +22825,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24332,22 +22833,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24355,31 +22852,21 @@ export const plans = { } }, RelationalItemRelationOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24388,19 +22875,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relationsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24409,11 +22894,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -24421,7 +22903,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24431,11 +22913,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -24443,7 +22922,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24453,11 +22932,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -24465,7 +22941,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24475,11 +22951,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -24487,7 +22960,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24497,11 +22970,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -24509,7 +22979,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24519,11 +22989,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -24531,7 +22998,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24540,8 +23007,8 @@ export const plans = { }, RelationalItemRelationCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -24554,17 +23021,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelations.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -24577,17 +23042,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelations.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -24600,41 +23063,29 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelations.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalItemRelationCompositePkOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24643,19 +23094,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_item_relation_composite_pksUniques[0].attributes.forEach(attributeName => { - const attribute = relationalItemRelationCompositePksCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24664,11 +23113,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -24676,7 +23122,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24686,11 +23132,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -24698,7 +23141,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24708,11 +23151,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "ASC", ...(undefined != null ? { @@ -24720,7 +23160,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24730,11 +23170,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "child_id", direction: "DESC", ...(undefined != null ? { @@ -24742,7 +23179,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -24751,8 +23188,8 @@ export const plans = { }, RelationalItemRelationCompositePkCondition: { parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -24765,17 +23202,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelationCompositePks.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, childId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "child_id", @@ -24788,13 +23223,11 @@ export const plans = { type: "attribute", attribute: "child_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalItemRelationCompositePks.attributes.child_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalPost: { @@ -24899,7 +23332,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24908,7 +23340,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -24917,7 +23348,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -24926,7 +23356,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -24935,7 +23364,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -24944,22 +23372,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -24984,7 +23408,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -24993,7 +23416,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25002,7 +23424,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25011,7 +23432,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25020,7 +23440,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25029,22 +23448,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25069,7 +23484,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25078,7 +23492,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25087,7 +23500,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25096,7 +23508,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25105,7 +23516,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25114,22 +23524,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25154,7 +23560,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25163,7 +23568,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25172,7 +23576,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25181,7 +23584,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25190,7 +23592,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25199,22 +23600,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25239,7 +23636,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25248,7 +23644,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25257,7 +23652,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25266,7 +23660,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25275,7 +23668,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25284,22 +23676,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25405,7 +23793,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25414,7 +23801,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25423,7 +23809,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25432,7 +23817,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25441,7 +23825,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25450,22 +23833,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25490,7 +23869,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25499,7 +23877,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25508,7 +23885,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25517,7 +23893,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25526,7 +23901,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25535,22 +23909,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25575,7 +23945,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25584,7 +23953,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25593,7 +23961,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25602,7 +23969,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25611,7 +23977,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25620,22 +23985,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25660,7 +24021,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25669,7 +24029,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25678,7 +24037,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25687,7 +24045,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25696,7 +24053,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25705,22 +24061,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25745,7 +24097,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25754,7 +24105,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25763,7 +24113,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25772,7 +24121,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25781,7 +24129,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25790,22 +24137,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25908,7 +24251,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -25917,7 +24259,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -25926,7 +24267,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -25935,7 +24275,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -25944,7 +24283,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -25953,22 +24291,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -25993,7 +24327,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26002,7 +24335,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26011,7 +24343,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26020,7 +24351,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26029,7 +24359,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26038,22 +24367,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26078,7 +24403,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26087,7 +24411,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26096,7 +24419,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26105,7 +24427,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26114,7 +24435,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26123,22 +24443,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26163,7 +24479,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26172,7 +24487,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26181,7 +24495,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26190,7 +24503,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26199,7 +24511,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26208,22 +24519,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26248,7 +24555,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26257,7 +24563,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26266,7 +24571,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26275,7 +24579,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26284,7 +24587,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26293,22 +24595,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26414,7 +24712,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26423,7 +24720,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26432,7 +24728,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26441,7 +24736,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26450,7 +24744,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26459,22 +24752,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26499,7 +24788,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26508,7 +24796,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26517,7 +24804,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26526,7 +24812,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26535,7 +24820,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26544,22 +24828,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26584,7 +24864,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26593,7 +24872,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26602,7 +24880,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26611,7 +24888,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26620,7 +24896,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26629,22 +24904,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26669,7 +24940,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26678,7 +24948,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26687,7 +24956,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26696,7 +24964,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26705,7 +24972,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26714,22 +24980,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26754,7 +25016,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26763,7 +25024,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -26772,7 +25032,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26781,7 +25040,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -26790,7 +25048,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -26799,22 +25056,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -26830,135 +25083,135 @@ export const plans = { }, awsApplicationFirstPartyVulnerabilityByAwsApplicationIdAndFirstPartyVulnerabilityId(_$root, args) { return otherSource_aws_application_first_party_vulnerabilitiesPgResource.get({ - aws_application_id: args.get("awsApplicationId"), - first_party_vulnerability_id: args.get("firstPartyVulnerabilityId") + aws_application_id: args.getRaw("awsApplicationId"), + first_party_vulnerability_id: args.getRaw("firstPartyVulnerabilityId") }); }, awsApplicationThirdPartyVulnerabilityByAwsApplicationIdAndThirdPartyVulnerabilityId(_$root, args) { return otherSource_aws_application_third_party_vulnerabilitiesPgResource.get({ - aws_application_id: args.get("awsApplicationId"), - third_party_vulnerability_id: args.get("thirdPartyVulnerabilityId") + aws_application_id: args.getRaw("awsApplicationId"), + third_party_vulnerability_id: args.getRaw("thirdPartyVulnerabilityId") }); }, gcpApplicationFirstPartyVulnerabilityByGcpApplicationIdAndFirstPartyVulnerabilityId(_$root, args) { return otherSource_gcp_application_first_party_vulnerabilitiesPgResource.get({ - gcp_application_id: args.get("gcpApplicationId"), - first_party_vulnerability_id: args.get("firstPartyVulnerabilityId") + gcp_application_id: args.getRaw("gcpApplicationId"), + first_party_vulnerability_id: args.getRaw("firstPartyVulnerabilityId") }); }, gcpApplicationThirdPartyVulnerabilityByGcpApplicationIdAndThirdPartyVulnerabilityId(_$root, args) { return otherSource_gcp_application_third_party_vulnerabilitiesPgResource.get({ - gcp_application_id: args.get("gcpApplicationId"), - third_party_vulnerability_id: args.get("thirdPartyVulnerabilityId") + gcp_application_id: args.getRaw("gcpApplicationId"), + third_party_vulnerability_id: args.getRaw("thirdPartyVulnerabilityId") }); }, organizationByOrganizationId(_$root, args) { return otherSource_organizationsPgResource.get({ - organization_id: args.get("organizationId") + organization_id: args.getRaw("organizationId") }); }, organizationByName(_$root, args) { return otherSource_organizationsPgResource.get({ - name: args.get("name") + name: args.getRaw("name") }); }, personByPersonId(_$root, args) { return otherSource_peoplePgResource.get({ - person_id: args.get("personId") + person_id: args.getRaw("personId") }); }, personByUsername(_$root, args) { return otherSource_peoplePgResource.get({ - username: args.get("username") + username: args.getRaw("username") }); }, priorityByRowId(_$root, args) { return otherSource_prioritiesPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, relationalChecklistByChecklistItemId(_$root, args) { return resource_relational_checklistsPgResource.get({ - checklist_item_id: args.get("checklistItemId") + checklist_item_id: args.getRaw("checklistItemId") }); }, relationalItemRelationCompositePkByParentIdAndChildId(_$root, args) { return relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, relationalTopicByTopicItemId(_$root, args) { return relational_topics_relational_topicsPgResource.get({ - topic_item_id: args.get("topicItemId") + topic_item_id: args.getRaw("topicItemId") }); }, singleTableItemRelationCompositePkByParentIdAndChildId(_$root, args) { return otherSource_single_table_item_relation_composite_pksPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, relationalChecklistItemByChecklistItemItemId(_$root, args) { return resource_relational_checklist_itemsPgResource.get({ - checklist_item_item_id: args.get("checklistItemItemId") + checklist_item_item_id: args.getRaw("checklistItemItemId") }); }, relationalDividerByDividerItemId(_$root, args) { return resource_relational_dividersPgResource.get({ - divider_item_id: args.get("dividerItemId") + divider_item_id: args.getRaw("dividerItemId") }); }, relationalItemRelationByRowId(_$root, args) { return relational_item_relations_relational_item_relationsPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, relationalItemRelationByParentIdAndChildId(_$root, args) { return relational_item_relations_relational_item_relationsPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, singleTableItemRelationByRowId(_$root, args) { return otherSource_single_table_item_relationsPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, singleTableItemRelationByParentIdAndChildId(_$root, args) { return otherSource_single_table_item_relationsPgResource.get({ - parent_id: args.get("parentId"), - child_id: args.get("childId") + parent_id: args.getRaw("parentId"), + child_id: args.getRaw("childId") }); }, logEntryByRowId(_$root, args) { return otherSource_log_entriesPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, relationalPostByPostItemId(_$root, args) { return resource_relational_postsPgResource.get({ - post_item_id: args.get("postItemId") + post_item_id: args.getRaw("postItemId") }); }, firstPartyVulnerabilityByRowId(_$root, args) { return paths_0_resource_first_party_vulnerabilitiesPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, thirdPartyVulnerabilityByRowId(_$root, args) { return paths_1_resource_third_party_vulnerabilitiesPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, awsApplicationByRowId(_$root, args) { return otherSource_aws_applicationsPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, gcpApplicationByRowId(_$root, args) { return otherSource_gcp_applicationsPgResource.get({ - id: args.get("rowId") + id: args.getRaw("rowId") }); }, allSingleTables: { @@ -26975,7 +25228,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -26984,7 +25236,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -26993,7 +25244,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27002,7 +25252,7 @@ export const plans = { } }, getSingleTableTopicById($root, args, _info) { - const selectArgs = makeArgs9(args); + const selectArgs = makeArgs_get_single_table_topic_by_id(args); return resource_get_single_table_topic_by_idPgResource.execute(selectArgs); }, allVulnerabilities: { @@ -27019,7 +25269,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27028,7 +25277,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27037,7 +25285,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27046,7 +25293,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27055,7 +25301,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27064,32 +25309,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("VulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -27109,7 +25350,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27118,7 +25358,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27127,7 +25366,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27136,7 +25374,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27145,7 +25382,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27154,32 +25390,28 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ApplicationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } }, only: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan($parent, $connection, fieldArgs) { const $union = $connection.getSubplan(); - $union.limitToTypes(fieldArgs.getRaw().eval()); + const $ltt = fieldArgs.getRaw(); + $union.apply(lambda($ltt, limitToTypes)); } } } @@ -27199,7 +25431,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27208,7 +25439,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27217,7 +25447,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27226,7 +25455,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27235,7 +25463,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27244,22 +25471,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ZeroImplementationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27273,7 +25496,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27282,7 +25504,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27291,7 +25512,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27300,7 +25520,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27309,7 +25528,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27318,22 +25536,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationFirstPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27347,7 +25561,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27356,7 +25569,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27365,7 +25577,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27374,7 +25585,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27383,7 +25593,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27392,22 +25601,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationThirdPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27421,7 +25626,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27430,7 +25634,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27439,7 +25642,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27448,7 +25650,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27457,7 +25658,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27466,22 +25666,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationFirstPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27495,7 +25691,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27504,7 +25699,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27513,7 +25707,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27522,7 +25715,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27531,7 +25723,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27540,22 +25731,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationThirdPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27569,7 +25756,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27578,7 +25764,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27587,7 +25772,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27596,7 +25780,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27605,7 +25788,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27614,22 +25796,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("OrganizationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27643,7 +25821,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27652,7 +25829,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27661,7 +25837,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27670,7 +25845,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27679,7 +25853,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27688,22 +25861,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PersonOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27717,7 +25886,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27726,7 +25894,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27735,7 +25902,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27744,7 +25910,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27753,7 +25918,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27762,22 +25926,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("PriorityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27791,7 +25951,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27800,7 +25959,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27809,7 +25967,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27818,7 +25975,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27827,7 +25983,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27836,22 +25991,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalChecklistOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27865,7 +26016,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27874,7 +26024,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27883,7 +26032,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27892,7 +26040,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27901,7 +26048,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27910,22 +26056,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -27939,7 +26081,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -27948,7 +26089,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -27957,7 +26097,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -27966,7 +26105,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -27975,7 +26113,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -27984,22 +26121,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalTopicOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28013,7 +26146,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28022,7 +26154,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28031,7 +26162,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28040,7 +26170,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28049,7 +26178,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28058,22 +26186,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28087,7 +26211,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28096,7 +26219,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28105,7 +26227,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28114,7 +26235,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28123,7 +26243,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28132,22 +26251,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalChecklistItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28161,7 +26276,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28170,7 +26284,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28179,7 +26292,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28188,7 +26300,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28197,7 +26308,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28206,22 +26316,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalDividerOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28235,7 +26341,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28244,7 +26349,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28253,7 +26357,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28262,7 +26365,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28271,7 +26373,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28280,22 +26381,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28309,7 +26406,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28318,7 +26414,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28327,7 +26422,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28336,7 +26430,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28345,7 +26438,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28354,22 +26446,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28383,7 +26471,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28392,7 +26479,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28401,7 +26487,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28410,7 +26495,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28419,7 +26503,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28428,22 +26511,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("LogEntryOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28457,7 +26536,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28466,7 +26544,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28475,7 +26552,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28484,7 +26560,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28493,7 +26568,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28502,22 +26576,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalPostOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28531,7 +26601,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28540,7 +26609,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28549,7 +26617,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28558,7 +26625,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28567,7 +26633,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28576,22 +26641,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("FirstPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28605,7 +26666,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28614,7 +26674,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28623,7 +26682,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28632,7 +26690,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28641,7 +26698,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28650,22 +26706,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("ThirdPartyVulnerabilityOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28679,7 +26731,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28688,7 +26739,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28697,7 +26747,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28706,7 +26755,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28715,7 +26763,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28724,22 +26771,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28753,7 +26796,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28762,7 +26804,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28771,7 +26812,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28780,7 +26820,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28789,7 +26828,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28798,22 +26836,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28827,7 +26861,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28836,7 +26869,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28845,7 +26877,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28854,7 +26885,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28863,7 +26893,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28872,22 +26901,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28901,7 +26926,6 @@ export const plans = { first: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, arg) { $connection.setFirst(arg.getRaw()); } @@ -28910,7 +26934,6 @@ export const plans = { last: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setLast(val.getRaw()); } @@ -28919,7 +26942,6 @@ export const plans = { offset: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setOffset(val.getRaw()); } @@ -28928,7 +26950,6 @@ export const plans = { before: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setBefore(val.getRaw()); } @@ -28937,7 +26958,6 @@ export const plans = { after: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $connection, val) { $connection.setAfter(val.getRaw()); } @@ -28946,22 +26966,18 @@ export const plans = { orderBy: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_, $connection, val, info) { - const $value = val.getRaw(); + applyPlan(parent, $connection, value) { const $select = $connection.getSubplan(); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemOrderBy")); - return null; + value.apply($select); } } }, condition: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, - applyPlan(_condition, $connection) { + applyPlan(_condition, $connection, arg) { const $select = $connection.getSubplan(); - return $select.wherePlan(); + arg.apply($select, qbWhereBuilder); } } } @@ -28994,23 +27010,12 @@ export const plans = { } }, ZeroImplementationOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, ROW_ID_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -29018,7 +27023,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29028,11 +27033,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -29040,7 +27042,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29050,11 +27052,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -29062,7 +27061,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29072,11 +27071,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -29084,7 +27080,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29093,8 +27089,8 @@ export const plans = { }, ZeroImplementationCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -29107,17 +27103,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_ZeroImplementation.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -29130,13 +27124,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_ZeroImplementation.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, OrganizationConnection: { @@ -29165,31 +27157,21 @@ export const plans = { } }, OrganizationOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { organizationsUniques[0].attributes.forEach(attributeName => { - const attribute = organizationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29198,19 +27180,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { organizationsUniques[0].attributes.forEach(attributeName => { - const attribute = organizationsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29219,11 +27199,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "ASC", ...(undefined != null ? { @@ -29231,7 +27208,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29241,11 +27218,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "organization_id", direction: "DESC", ...(undefined != null ? { @@ -29253,7 +27227,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29263,11 +27237,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -29275,7 +27246,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29285,11 +27256,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -29297,7 +27265,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29306,8 +27274,8 @@ export const plans = { }, OrganizationCondition: { organizationId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "organization_id", @@ -29320,17 +27288,15 @@ export const plans = { type: "attribute", attribute: "organization_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_organizations.attributes.organization_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -29343,13 +27309,11 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_organizations.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PersonConnection: { @@ -29378,31 +27342,21 @@ export const plans = { } }, PersonOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29411,19 +27365,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { peopleUniques[0].attributes.forEach(attributeName => { - const attribute = peopleCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29432,11 +27384,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "ASC", ...(undefined != null ? { @@ -29444,7 +27393,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29454,11 +27403,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "person_id", direction: "DESC", ...(undefined != null ? { @@ -29466,7 +27412,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29476,11 +27422,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "username", direction: "ASC", ...(undefined != null ? { @@ -29488,7 +27431,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29498,11 +27441,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "username", direction: "DESC", ...(undefined != null ? { @@ -29510,7 +27450,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29519,8 +27459,8 @@ export const plans = { }, PersonCondition: { personId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "person_id", @@ -29533,17 +27473,15 @@ export const plans = { type: "attribute", attribute: "person_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.person_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, username: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "username", @@ -29556,13 +27494,11 @@ export const plans = { type: "attribute", attribute: "username", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_people.attributes.username.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, PriorityConnection: { @@ -29591,31 +27527,21 @@ export const plans = { } }, PriorityOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { prioritiesUniques[0].attributes.forEach(attributeName => { - const attribute = prioritiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29624,19 +27550,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { prioritiesUniques[0].attributes.forEach(attributeName => { - const attribute = prioritiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29645,11 +27569,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -29657,7 +27578,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29667,11 +27588,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -29679,7 +27597,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29689,11 +27607,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -29701,7 +27616,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29711,11 +27626,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -29723,7 +27635,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29732,8 +27644,8 @@ export const plans = { }, PriorityCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -29746,17 +27658,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_priorities.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -29769,13 +27679,11 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_priorities.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalChecklistConnection: { @@ -29804,31 +27712,21 @@ export const plans = { } }, RelationalChecklistOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklistsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29837,19 +27735,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklistsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29858,11 +27754,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -29870,7 +27763,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29880,11 +27773,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -29892,7 +27782,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29902,11 +27792,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -29914,7 +27801,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29924,11 +27811,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -29936,7 +27820,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29946,11 +27830,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -29958,7 +27839,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29968,11 +27849,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -29980,7 +27858,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -29990,11 +27868,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -30002,7 +27877,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30012,11 +27887,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -30024,7 +27896,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30034,11 +27906,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -30046,7 +27915,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30056,11 +27925,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -30068,7 +27934,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30078,11 +27944,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -30090,7 +27953,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30100,11 +27963,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -30112,7 +27972,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30122,11 +27982,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -30134,7 +27991,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30144,11 +28001,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -30156,7 +28010,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30166,11 +28020,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -30178,7 +28029,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30188,11 +28039,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -30200,7 +28048,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30210,11 +28058,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -30222,7 +28067,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30232,11 +28077,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -30244,7 +28086,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30254,11 +28096,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -30266,7 +28105,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30276,11 +28115,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -30288,7 +28124,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30298,11 +28134,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -30310,7 +28143,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30320,11 +28153,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -30332,7 +28162,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30341,8 +28171,8 @@ export const plans = { }, RelationalChecklistCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -30355,17 +28185,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -30378,17 +28206,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -30401,17 +28227,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -30424,17 +28248,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -30447,17 +28269,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -30470,17 +28290,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -30493,17 +28311,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -30516,17 +28332,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -30539,17 +28353,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -30562,17 +28374,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -30585,13 +28395,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklists.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalTopicConnection: { @@ -30620,31 +28428,21 @@ export const plans = { } }, RelationalTopicOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_topicsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalTopicsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30653,19 +28451,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_topicsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalTopicsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30674,11 +28470,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -30686,7 +28479,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30696,11 +28489,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -30708,7 +28498,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30718,11 +28508,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -30730,7 +28517,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30740,11 +28527,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -30752,7 +28536,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30762,11 +28546,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -30774,7 +28555,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30784,11 +28565,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -30796,7 +28574,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30806,11 +28584,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -30818,7 +28593,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30828,11 +28603,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -30840,7 +28612,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30850,11 +28622,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -30862,7 +28631,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30872,11 +28641,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -30884,7 +28650,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30894,11 +28660,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -30906,7 +28669,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30916,11 +28679,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -30928,7 +28688,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30938,11 +28698,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -30950,7 +28707,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30960,11 +28717,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -30972,7 +28726,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -30982,11 +28736,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -30994,7 +28745,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31004,11 +28755,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -31016,7 +28764,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31026,11 +28774,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -31038,7 +28783,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31048,11 +28793,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -31060,7 +28802,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31070,11 +28812,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -31082,7 +28821,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31092,11 +28831,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -31104,7 +28840,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31114,11 +28850,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -31126,7 +28859,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31136,11 +28869,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -31148,7 +28878,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31157,8 +28887,8 @@ export const plans = { }, RelationalTopicCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -31171,17 +28901,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -31194,17 +28922,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -31217,17 +28943,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -31240,17 +28964,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -31263,17 +28985,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -31286,17 +29006,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -31309,17 +29027,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -31332,17 +29048,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -31355,17 +29069,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -31378,17 +29090,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -31401,13 +29111,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalTopics.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalChecklistItemConnection: { @@ -31436,31 +29144,21 @@ export const plans = { } }, RelationalChecklistItemOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklist_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31469,19 +29167,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_checklist_itemsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalChecklistItemsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31490,11 +29186,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -31502,7 +29195,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31512,11 +29205,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -31524,7 +29214,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31534,11 +29224,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "ASC", ...(undefined != null ? { @@ -31546,7 +29233,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31556,11 +29243,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "DESC", ...(undefined != null ? { @@ -31568,7 +29252,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31578,11 +29262,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -31590,7 +29271,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31600,11 +29281,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -31612,7 +29290,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31622,11 +29300,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -31634,7 +29309,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31644,11 +29319,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -31656,7 +29328,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31666,11 +29338,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -31678,7 +29347,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31688,11 +29357,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -31700,7 +29366,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31710,11 +29376,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -31722,7 +29385,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31732,11 +29395,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -31744,7 +29404,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31754,11 +29414,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -31766,7 +29423,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31776,11 +29433,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -31788,7 +29442,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31798,11 +29452,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -31810,7 +29461,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31820,11 +29471,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -31832,7 +29480,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31842,11 +29490,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -31854,7 +29499,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31864,11 +29509,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -31876,7 +29518,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31886,11 +29528,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -31898,7 +29537,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31908,11 +29547,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -31920,7 +29556,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31930,11 +29566,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -31942,7 +29575,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31952,11 +29585,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -31964,7 +29594,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31974,11 +29604,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -31986,7 +29613,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -31996,11 +29623,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -32008,7 +29632,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32017,8 +29641,8 @@ export const plans = { }, RelationalChecklistItemCondition: { description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -32031,17 +29655,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, note: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "note", @@ -32054,17 +29676,15 @@ export const plans = { type: "attribute", attribute: "note", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.note.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -32077,17 +29697,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -32100,17 +29718,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -32123,17 +29739,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -32146,17 +29760,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -32169,17 +29781,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -32192,17 +29802,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -32215,17 +29823,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -32238,17 +29844,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -32261,17 +29865,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -32284,13 +29886,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalChecklistItems.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalDividerConnection: { @@ -32319,31 +29919,21 @@ export const plans = { } }, RelationalDividerOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_dividersUniques[0].attributes.forEach(attributeName => { - const attribute = relationalDividersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32352,19 +29942,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_dividersUniques[0].attributes.forEach(attributeName => { - const attribute = relationalDividersCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32373,11 +29961,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -32385,7 +29970,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32395,11 +29980,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -32407,7 +29989,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32417,11 +29999,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "color", direction: "ASC", ...(undefined != null ? { @@ -32429,7 +30008,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32439,11 +30018,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "color", direction: "DESC", ...(undefined != null ? { @@ -32451,7 +30027,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32461,11 +30037,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -32473,7 +30046,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32483,11 +30056,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -32495,7 +30065,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32505,11 +30075,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -32517,7 +30084,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32527,11 +30094,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -32539,7 +30103,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32549,11 +30113,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -32561,7 +30122,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32571,11 +30132,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -32583,7 +30141,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32593,11 +30151,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -32605,7 +30160,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32615,11 +30170,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -32627,7 +30179,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32637,11 +30189,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -32649,7 +30198,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32659,11 +30208,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -32671,7 +30217,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32681,11 +30227,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -32693,7 +30236,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32703,11 +30246,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -32715,7 +30255,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32725,11 +30265,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -32737,7 +30274,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32747,11 +30284,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -32759,7 +30293,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32769,11 +30303,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -32781,7 +30312,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32791,11 +30322,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -32803,7 +30331,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32813,11 +30341,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -32825,7 +30350,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32835,11 +30360,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -32847,7 +30369,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32857,11 +30379,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -32869,7 +30388,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32879,11 +30398,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -32891,7 +30407,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -32900,8 +30416,8 @@ export const plans = { }, RelationalDividerCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -32914,17 +30430,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, color: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "color", @@ -32937,17 +30451,15 @@ export const plans = { type: "attribute", attribute: "color", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.color.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -32960,17 +30472,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -32983,17 +30493,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -33006,17 +30514,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -33029,17 +30535,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -33052,17 +30556,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -33075,17 +30577,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -33098,17 +30598,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -33121,17 +30619,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -33144,17 +30640,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -33167,13 +30661,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalDividers.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, RelationalPostConnection: { @@ -33202,31 +30694,21 @@ export const plans = { } }, RelationalPostOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_postsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalPostsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33235,19 +30717,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { relational_postsUniques[0].attributes.forEach(attributeName => { - const attribute = relationalPostsCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33256,11 +30736,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "ASC", ...(undefined != null ? { @@ -33268,7 +30745,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33278,11 +30755,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "title", direction: "DESC", ...(undefined != null ? { @@ -33290,7 +30764,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33300,11 +30774,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "ASC", ...(undefined != null ? { @@ -33312,7 +30783,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33322,11 +30793,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "description", direction: "DESC", ...(undefined != null ? { @@ -33334,7 +30802,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33344,11 +30812,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "ASC", ...(undefined != null ? { @@ -33356,7 +30821,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33366,11 +30831,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "note", direction: "DESC", ...(undefined != null ? { @@ -33378,7 +30840,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33388,11 +30850,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -33400,7 +30859,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33410,11 +30869,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -33422,7 +30878,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33432,11 +30888,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "ASC", ...(undefined != null ? { @@ -33444,7 +30897,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33454,11 +30907,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "type", direction: "DESC", ...(undefined != null ? { @@ -33466,7 +30916,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33476,11 +30926,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "ASC", ...(undefined != null ? { @@ -33488,7 +30935,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33498,11 +30945,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "parent_id", direction: "DESC", ...(undefined != null ? { @@ -33510,7 +30954,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33520,11 +30964,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "ASC", ...(undefined != null ? { @@ -33532,7 +30973,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33542,11 +30983,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "root_topic_id", direction: "DESC", ...(undefined != null ? { @@ -33554,7 +30992,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33564,11 +31002,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "ASC", ...(undefined != null ? { @@ -33576,7 +31011,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33586,11 +31021,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "author_id", direction: "DESC", ...(undefined != null ? { @@ -33598,7 +31030,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33608,11 +31040,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "ASC", ...(undefined != null ? { @@ -33620,7 +31049,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33630,11 +31059,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "position", direction: "DESC", ...(undefined != null ? { @@ -33642,7 +31068,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33652,11 +31078,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "ASC", ...(undefined != null ? { @@ -33664,7 +31087,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33674,11 +31097,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "created_at", direction: "DESC", ...(undefined != null ? { @@ -33686,7 +31106,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33696,11 +31116,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "ASC", ...(undefined != null ? { @@ -33708,7 +31125,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33718,11 +31135,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "updated_at", direction: "DESC", ...(undefined != null ? { @@ -33730,7 +31144,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33740,11 +31154,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "ASC", ...(undefined != null ? { @@ -33752,7 +31163,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33762,11 +31173,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "is_explicitly_archived", direction: "DESC", ...(undefined != null ? { @@ -33774,7 +31182,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33784,11 +31192,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "ASC", ...(undefined != null ? { @@ -33796,7 +31201,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33806,11 +31211,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "archived_at", direction: "DESC", ...(undefined != null ? { @@ -33818,7 +31220,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -33827,8 +31229,8 @@ export const plans = { }, RelationalPostCondition: { title: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "title", @@ -33841,17 +31243,15 @@ export const plans = { type: "attribute", attribute: "title", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.title.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, description: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "description", @@ -33864,17 +31264,15 @@ export const plans = { type: "attribute", attribute: "description", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.description.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, note: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "note", @@ -33887,17 +31285,15 @@ export const plans = { type: "attribute", attribute: "note", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.note.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -33910,17 +31306,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, type: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "type", @@ -33933,17 +31327,15 @@ export const plans = { type: "attribute", attribute: "type", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.type.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, itemTypeCodec)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, parentId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "parent_id", @@ -33956,17 +31348,15 @@ export const plans = { type: "attribute", attribute: "parent_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.parent_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, rootTopicId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "root_topic_id", @@ -33979,17 +31369,15 @@ export const plans = { type: "attribute", attribute: "root_topic_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.root_topic_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, authorId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "author_id", @@ -34002,17 +31390,15 @@ export const plans = { type: "attribute", attribute: "author_id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.author_id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, position: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "position", @@ -34025,17 +31411,15 @@ export const plans = { type: "attribute", attribute: "position", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.position.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.bigint)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, createdAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "created_at", @@ -34048,17 +31432,15 @@ export const plans = { type: "attribute", attribute: "created_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.created_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, updatedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "updated_at", @@ -34071,17 +31453,15 @@ export const plans = { type: "attribute", attribute: "updated_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.updated_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, isExplicitlyArchived: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "is_explicitly_archived", @@ -34094,17 +31474,15 @@ export const plans = { type: "attribute", attribute: "is_explicitly_archived", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.is_explicitly_archived.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.boolean)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, archivedAt: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "archived_at", @@ -34117,13 +31495,11 @@ export const plans = { type: "attribute", attribute: "archived_at", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_relationalPosts.attributes.archived_at.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.timestamptz)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, FirstPartyVulnerabilityConnection: { @@ -34152,31 +31528,21 @@ export const plans = { } }, FirstPartyVulnerabilityOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { first_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = firstPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34185,19 +31551,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { first_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = firstPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34206,11 +31570,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -34218,7 +31579,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34228,11 +31589,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -34240,7 +31598,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34250,11 +31608,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -34262,7 +31617,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34272,11 +31627,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -34284,7 +31636,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34294,11 +31646,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "ASC", ...(undefined != null ? { @@ -34306,7 +31655,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34316,11 +31665,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "DESC", ...(undefined != null ? { @@ -34328,7 +31674,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34338,11 +31684,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "team_name", direction: "ASC", ...(undefined != null ? { @@ -34350,7 +31693,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34360,11 +31703,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "team_name", direction: "DESC", ...(undefined != null ? { @@ -34372,7 +31712,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34381,8 +31721,8 @@ export const plans = { }, FirstPartyVulnerabilityCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -34395,17 +31735,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_firstPartyVulnerabilities.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -34418,17 +31756,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_firstPartyVulnerabilities.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cvssScore: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cvss_score", @@ -34441,17 +31777,15 @@ export const plans = { type: "attribute", attribute: "cvss_score", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_firstPartyVulnerabilities.attributes.cvss_score.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, teamName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "team_name", @@ -34464,13 +31798,11 @@ export const plans = { type: "attribute", attribute: "team_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_firstPartyVulnerabilities.attributes.team_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, ThirdPartyVulnerabilityConnection: { @@ -34499,31 +31831,21 @@ export const plans = { } }, ThirdPartyVulnerabilityOrderBy: { - NATURAL: { - extensions: { - __proto__: null, - grafast: { - applyPlan() {} - } - } - }, PRIMARY_KEY_ASC: { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { third_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = thirdPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "ASC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34532,19 +31854,17 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(step) { + apply(queryBuilder) { third_party_vulnerabilitiesUniques[0].attributes.forEach(attributeName => { - const attribute = thirdPartyVulnerabilitiesCodec.attributes[attributeName]; - step.orderBy({ - codec: attribute.codec, - fragment: sql`${step}.${sql.identifier(attributeName)}`, + queryBuilder.orderBy({ + attribute: attributeName, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null) }); }); - step.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34553,11 +31873,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "ASC", ...(undefined != null ? { @@ -34565,7 +31882,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34575,11 +31892,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "id", direction: "DESC", ...(undefined != null ? { @@ -34587,7 +31901,7 @@ export const plans = { } : null) }); if (true) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34597,11 +31911,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "ASC", ...(undefined != null ? { @@ -34609,7 +31920,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34619,11 +31930,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "name", direction: "DESC", ...(undefined != null ? { @@ -34631,7 +31939,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34641,11 +31949,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "ASC", ...(undefined != null ? { @@ -34653,7 +31958,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34663,11 +31968,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "cvss_score", direction: "DESC", ...(undefined != null ? { @@ -34675,7 +31977,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34685,11 +31987,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "vendor_name", direction: "ASC", ...(undefined != null ? { @@ -34697,7 +31996,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34707,11 +32006,8 @@ export const plans = { extensions: { __proto__: null, grafast: { - applyPlan(plan) { - if (!(plan instanceof PgSelectStep) && !(plan instanceof PgUnionAllStep)) { - throw new Error("Expected a PgSelectStep or PgUnionAllStep when applying ordering value"); - } - plan.orderBy({ + apply(queryBuilder) { + queryBuilder.orderBy({ attribute: "vendor_name", direction: "DESC", ...(undefined != null ? { @@ -34719,7 +32015,7 @@ export const plans = { } : null) }); if (false) { - plan.setOrderIsUnique(); + queryBuilder.setOrderIsUnique(); } } } @@ -34728,8 +32024,8 @@ export const plans = { }, ThirdPartyVulnerabilityCondition: { rowId: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "id", @@ -34742,17 +32038,15 @@ export const plans = { type: "attribute", attribute: "id", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_thirdPartyVulnerabilities.attributes.id.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.int)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, name: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "name", @@ -34765,17 +32059,15 @@ export const plans = { type: "attribute", attribute: "name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_thirdPartyVulnerabilities.attributes.name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, cvssScore: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "cvss_score", @@ -34788,17 +32080,15 @@ export const plans = { type: "attribute", attribute: "cvss_score", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_thirdPartyVulnerabilities.attributes.cvss_score.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.float)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } }, vendorName: { - applyPlan($condition, val) { - if (val.getRaw().evalIs(null)) { + apply($condition, val) { + if (val === null) { $condition.where({ type: "attribute", attribute: "vendor_name", @@ -34811,30 +32101,28 @@ export const plans = { type: "attribute", attribute: "vendor_name", callback(expression) { - return sql`${expression} = ${$condition.placeholder(val.get(), spec_thirdPartyVulnerabilities.attributes.vendor_name.codec)}`; + return sql`${expression} = ${sqlValueWithCodec(val, TYPES.text)}`; } }); } - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + } } }, Mutation: { __assertStep: __ValueStep, createAwsApplicationFirstPartyVulnerability: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_aws_application_first_party_vulnerabilitiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_aws_application_first_party_vulnerabilitiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -34844,17 +32132,17 @@ export const plans = { }, createAwsApplicationThirdPartyVulnerability: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_aws_application_third_party_vulnerabilitiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_aws_application_third_party_vulnerabilitiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -34864,17 +32152,17 @@ export const plans = { }, createGcpApplicationFirstPartyVulnerability: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_gcp_application_first_party_vulnerabilitiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_gcp_application_first_party_vulnerabilitiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -34884,17 +32172,17 @@ export const plans = { }, createGcpApplicationThirdPartyVulnerability: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_gcp_application_third_party_vulnerabilitiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_gcp_application_third_party_vulnerabilitiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -34904,17 +32192,17 @@ export const plans = { }, createOrganization: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_organizationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_organizationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -34924,17 +32212,17 @@ export const plans = { }, createPerson: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_peoplePgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_peoplePgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -34944,17 +32232,17 @@ export const plans = { }, createPriority: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_prioritiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_prioritiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -34964,17 +32252,17 @@ export const plans = { }, createRelationalItemRelationCompositePk: { plan(_, args) { + const $insert = pgInsertSingle(relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -34984,17 +32272,17 @@ export const plans = { }, createSingleTableItemRelationCompositePk: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_single_table_item_relation_composite_pksPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_single_table_item_relation_composite_pksPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -35004,17 +32292,17 @@ export const plans = { }, createRelationalItemRelation: { plan(_, args) { + const $insert = pgInsertSingle(relational_item_relations_relational_item_relationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(relational_item_relations_relational_item_relationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -35024,17 +32312,17 @@ export const plans = { }, createSingleTableItemRelation: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_single_table_item_relationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_single_table_item_relationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -35044,17 +32332,17 @@ export const plans = { }, createLogEntry: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_log_entriesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_log_entriesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -35064,17 +32352,17 @@ export const plans = { }, createFirstPartyVulnerability: { plan(_, args) { + const $insert = pgInsertSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -35084,17 +32372,17 @@ export const plans = { }, createThirdPartyVulnerability: { plan(_, args) { + const $insert = pgInsertSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -35104,17 +32392,17 @@ export const plans = { }, createAwsApplication: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_aws_applicationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_aws_applicationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -35124,17 +32412,17 @@ export const plans = { }, createGcpApplication: { plan(_, args) { + const $insert = pgInsertSingle(otherSource_gcp_applicationsPgResource, Object.create(null)); + args.apply($insert); const plan = object({ - result: pgInsertSingle(otherSource_gcp_applicationsPgResource, Object.create(null)) + result: $insert }); - args.apply(plan); return plan; }, args: { input: { __proto__: null, grafast: { - autoApplyAfterParentPlan: true, applyPlan(_, $object) { return $object; } @@ -35144,14 +32432,14 @@ export const plans = { }, updateAwsApplicationFirstPartyVulnerabilityByAwsApplicationIdAndFirstPartyVulnerabilityId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_aws_application_first_party_vulnerabilitiesPgResource, { - aws_application_id: args.get(['input', "awsApplicationId"]), - first_party_vulnerability_id: args.get(['input', "firstPartyVulnerabilityId"]) - }) + const $update = pgUpdateSingle(otherSource_aws_application_first_party_vulnerabilitiesPgResource, { + aws_application_id: args.getRaw(['input', "awsApplicationId"]), + first_party_vulnerability_id: args.getRaw(['input', "firstPartyVulnerabilityId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35166,14 +32454,14 @@ export const plans = { }, updateAwsApplicationThirdPartyVulnerabilityByAwsApplicationIdAndThirdPartyVulnerabilityId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_aws_application_third_party_vulnerabilitiesPgResource, { - aws_application_id: args.get(['input', "awsApplicationId"]), - third_party_vulnerability_id: args.get(['input', "thirdPartyVulnerabilityId"]) - }) + const $update = pgUpdateSingle(otherSource_aws_application_third_party_vulnerabilitiesPgResource, { + aws_application_id: args.getRaw(['input', "awsApplicationId"]), + third_party_vulnerability_id: args.getRaw(['input', "thirdPartyVulnerabilityId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35188,14 +32476,14 @@ export const plans = { }, updateGcpApplicationFirstPartyVulnerabilityByGcpApplicationIdAndFirstPartyVulnerabilityId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_gcp_application_first_party_vulnerabilitiesPgResource, { - gcp_application_id: args.get(['input', "gcpApplicationId"]), - first_party_vulnerability_id: args.get(['input', "firstPartyVulnerabilityId"]) - }) + const $update = pgUpdateSingle(otherSource_gcp_application_first_party_vulnerabilitiesPgResource, { + gcp_application_id: args.getRaw(['input', "gcpApplicationId"]), + first_party_vulnerability_id: args.getRaw(['input', "firstPartyVulnerabilityId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35210,14 +32498,14 @@ export const plans = { }, updateGcpApplicationThirdPartyVulnerabilityByGcpApplicationIdAndThirdPartyVulnerabilityId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_gcp_application_third_party_vulnerabilitiesPgResource, { - gcp_application_id: args.get(['input', "gcpApplicationId"]), - third_party_vulnerability_id: args.get(['input', "thirdPartyVulnerabilityId"]) - }) + const $update = pgUpdateSingle(otherSource_gcp_application_third_party_vulnerabilitiesPgResource, { + gcp_application_id: args.getRaw(['input', "gcpApplicationId"]), + third_party_vulnerability_id: args.getRaw(['input', "thirdPartyVulnerabilityId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35232,13 +32520,13 @@ export const plans = { }, updateOrganizationByOrganizationId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_organizationsPgResource, { - organization_id: args.get(['input', "organizationId"]) - }) + const $update = pgUpdateSingle(otherSource_organizationsPgResource, { + organization_id: args.getRaw(['input', "organizationId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35253,13 +32541,13 @@ export const plans = { }, updateOrganizationByName: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_organizationsPgResource, { - name: args.get(['input', "name"]) - }) + const $update = pgUpdateSingle(otherSource_organizationsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35274,13 +32562,13 @@ export const plans = { }, updatePersonByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_peoplePgResource, { - person_id: args.get(['input', "personId"]) - }) + const $update = pgUpdateSingle(otherSource_peoplePgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35295,13 +32583,13 @@ export const plans = { }, updatePersonByUsername: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_peoplePgResource, { - username: args.get(['input', "username"]) - }) + const $update = pgUpdateSingle(otherSource_peoplePgResource, { + username: args.getRaw(['input', "username"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35316,13 +32604,13 @@ export const plans = { }, updatePriorityByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_prioritiesPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(otherSource_prioritiesPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35337,14 +32625,14 @@ export const plans = { }, updateRelationalItemRelationCompositePkByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $update = pgUpdateSingle(relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35359,14 +32647,14 @@ export const plans = { }, updateSingleTableItemRelationCompositePkByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_single_table_item_relation_composite_pksPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $update = pgUpdateSingle(otherSource_single_table_item_relation_composite_pksPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35381,13 +32669,13 @@ export const plans = { }, updateRelationalItemRelationByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(relational_item_relations_relational_item_relationsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(relational_item_relations_relational_item_relationsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35402,14 +32690,14 @@ export const plans = { }, updateRelationalItemRelationByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(relational_item_relations_relational_item_relationsPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $update = pgUpdateSingle(relational_item_relations_relational_item_relationsPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35424,13 +32712,13 @@ export const plans = { }, updateSingleTableItemRelationByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_single_table_item_relationsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(otherSource_single_table_item_relationsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35445,14 +32733,14 @@ export const plans = { }, updateSingleTableItemRelationByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_single_table_item_relationsPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $update = pgUpdateSingle(otherSource_single_table_item_relationsPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35467,13 +32755,13 @@ export const plans = { }, updateLogEntryByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_log_entriesPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(otherSource_log_entriesPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35488,13 +32776,13 @@ export const plans = { }, updateFirstPartyVulnerabilityByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35509,13 +32797,13 @@ export const plans = { }, updateThirdPartyVulnerabilityByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35530,13 +32818,13 @@ export const plans = { }, updateAwsApplicationByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_aws_applicationsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(otherSource_aws_applicationsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35551,13 +32839,13 @@ export const plans = { }, updateGcpApplicationByRowId: { plan(_$root, args) { - const plan = object({ - result: pgUpdateSingle(otherSource_gcp_applicationsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $update = pgUpdateSingle(otherSource_gcp_applicationsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($update); + return object({ + result: $update }); - args.apply(plan); - return plan; }, args: { input: { @@ -35572,14 +32860,14 @@ export const plans = { }, deleteAwsApplicationFirstPartyVulnerabilityByAwsApplicationIdAndFirstPartyVulnerabilityId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_aws_application_first_party_vulnerabilitiesPgResource, { - aws_application_id: args.get(['input', "awsApplicationId"]), - first_party_vulnerability_id: args.get(['input', "firstPartyVulnerabilityId"]) - }) + const $delete = pgDeleteSingle(otherSource_aws_application_first_party_vulnerabilitiesPgResource, { + aws_application_id: args.getRaw(['input', "awsApplicationId"]), + first_party_vulnerability_id: args.getRaw(['input', "firstPartyVulnerabilityId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35594,14 +32882,14 @@ export const plans = { }, deleteAwsApplicationThirdPartyVulnerabilityByAwsApplicationIdAndThirdPartyVulnerabilityId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_aws_application_third_party_vulnerabilitiesPgResource, { - aws_application_id: args.get(['input', "awsApplicationId"]), - third_party_vulnerability_id: args.get(['input', "thirdPartyVulnerabilityId"]) - }) + const $delete = pgDeleteSingle(otherSource_aws_application_third_party_vulnerabilitiesPgResource, { + aws_application_id: args.getRaw(['input', "awsApplicationId"]), + third_party_vulnerability_id: args.getRaw(['input', "thirdPartyVulnerabilityId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35616,14 +32904,14 @@ export const plans = { }, deleteGcpApplicationFirstPartyVulnerabilityByGcpApplicationIdAndFirstPartyVulnerabilityId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_gcp_application_first_party_vulnerabilitiesPgResource, { - gcp_application_id: args.get(['input', "gcpApplicationId"]), - first_party_vulnerability_id: args.get(['input', "firstPartyVulnerabilityId"]) - }) + const $delete = pgDeleteSingle(otherSource_gcp_application_first_party_vulnerabilitiesPgResource, { + gcp_application_id: args.getRaw(['input', "gcpApplicationId"]), + first_party_vulnerability_id: args.getRaw(['input', "firstPartyVulnerabilityId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35638,14 +32926,14 @@ export const plans = { }, deleteGcpApplicationThirdPartyVulnerabilityByGcpApplicationIdAndThirdPartyVulnerabilityId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_gcp_application_third_party_vulnerabilitiesPgResource, { - gcp_application_id: args.get(['input', "gcpApplicationId"]), - third_party_vulnerability_id: args.get(['input', "thirdPartyVulnerabilityId"]) - }) + const $delete = pgDeleteSingle(otherSource_gcp_application_third_party_vulnerabilitiesPgResource, { + gcp_application_id: args.getRaw(['input', "gcpApplicationId"]), + third_party_vulnerability_id: args.getRaw(['input', "thirdPartyVulnerabilityId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35660,13 +32948,13 @@ export const plans = { }, deleteOrganizationByOrganizationId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_organizationsPgResource, { - organization_id: args.get(['input', "organizationId"]) - }) + const $delete = pgDeleteSingle(otherSource_organizationsPgResource, { + organization_id: args.getRaw(['input', "organizationId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35681,13 +32969,13 @@ export const plans = { }, deleteOrganizationByName: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_organizationsPgResource, { - name: args.get(['input', "name"]) - }) + const $delete = pgDeleteSingle(otherSource_organizationsPgResource, { + name: args.getRaw(['input', "name"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35702,13 +32990,13 @@ export const plans = { }, deletePersonByPersonId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_peoplePgResource, { - person_id: args.get(['input', "personId"]) - }) + const $delete = pgDeleteSingle(otherSource_peoplePgResource, { + person_id: args.getRaw(['input', "personId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35723,13 +33011,13 @@ export const plans = { }, deletePersonByUsername: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_peoplePgResource, { - username: args.get(['input', "username"]) - }) + const $delete = pgDeleteSingle(otherSource_peoplePgResource, { + username: args.getRaw(['input', "username"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35744,13 +33032,13 @@ export const plans = { }, deletePriorityByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_prioritiesPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(otherSource_prioritiesPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35765,14 +33053,14 @@ export const plans = { }, deleteRelationalItemRelationCompositePkByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $delete = pgDeleteSingle(relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35787,14 +33075,14 @@ export const plans = { }, deleteSingleTableItemRelationCompositePkByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_single_table_item_relation_composite_pksPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $delete = pgDeleteSingle(otherSource_single_table_item_relation_composite_pksPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35809,13 +33097,13 @@ export const plans = { }, deleteRelationalItemRelationByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(relational_item_relations_relational_item_relationsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(relational_item_relations_relational_item_relationsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35830,14 +33118,14 @@ export const plans = { }, deleteRelationalItemRelationByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(relational_item_relations_relational_item_relationsPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $delete = pgDeleteSingle(relational_item_relations_relational_item_relationsPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35852,13 +33140,13 @@ export const plans = { }, deleteSingleTableItemRelationByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_single_table_item_relationsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(otherSource_single_table_item_relationsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35873,14 +33161,14 @@ export const plans = { }, deleteSingleTableItemRelationByParentIdAndChildId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_single_table_item_relationsPgResource, { - parent_id: args.get(['input', "parentId"]), - child_id: args.get(['input', "childId"]) - }) + const $delete = pgDeleteSingle(otherSource_single_table_item_relationsPgResource, { + parent_id: args.getRaw(['input', "parentId"]), + child_id: args.getRaw(['input', "childId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35895,13 +33183,13 @@ export const plans = { }, deleteLogEntryByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_log_entriesPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(otherSource_log_entriesPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35916,13 +33204,13 @@ export const plans = { }, deleteFirstPartyVulnerabilityByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(paths_0_resource_first_party_vulnerabilitiesPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35937,13 +33225,13 @@ export const plans = { }, deleteThirdPartyVulnerabilityByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(paths_1_resource_third_party_vulnerabilitiesPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35958,13 +33246,13 @@ export const plans = { }, deleteAwsApplicationByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_aws_applicationsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(otherSource_aws_applicationsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -35979,13 +33267,13 @@ export const plans = { }, deleteGcpApplicationByRowId: { plan(_$root, args) { - const plan = object({ - result: pgDeleteSingle(otherSource_gcp_applicationsPgResource, { - id: args.get(['input', "rowId"]) - }) + const $delete = pgDeleteSingle(otherSource_gcp_applicationsPgResource, { + id: args.getRaw(['input', "rowId"]) + }); + args.apply($delete); + return object({ + result: $delete }); - args.apply(plan); - return plan; }, args: { input: { @@ -36002,7 +33290,8 @@ export const plans = { CreateAwsApplicationFirstPartyVulnerabilityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, awsApplicationFirstPartyVulnerability($object) { return $object.get("result"); @@ -36010,7 +33299,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationFirstPartyVulnerabilityEdge($mutation, args, info) { + awsApplicationFirstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36026,9 +33315,7 @@ export const plans = { return otherSource_aws_application_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationFirstPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36039,42 +33326,42 @@ export const plans = { }, CreateAwsApplicationFirstPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, awsApplicationFirstPartyVulnerability: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, AwsApplicationFirstPartyVulnerabilityInput: { - "__inputPlan": function AwsApplicationFirstPartyVulnerabilityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, awsApplicationId: { - applyPlan($insert, val) { - $insert.set("aws_application_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aws_application_id", bakedInputRuntime(schema, field.type, val)); + } }, firstPartyVulnerabilityId: { - applyPlan($insert, val) { - $insert.set("first_party_vulnerability_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_party_vulnerability_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateAwsApplicationThirdPartyVulnerabilityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, awsApplicationThirdPartyVulnerability($object) { return $object.get("result"); @@ -36082,7 +33369,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationThirdPartyVulnerabilityEdge($mutation, args, info) { + awsApplicationThirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36098,9 +33385,7 @@ export const plans = { return otherSource_aws_application_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationThirdPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36111,42 +33396,42 @@ export const plans = { }, CreateAwsApplicationThirdPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, awsApplicationThirdPartyVulnerability: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, AwsApplicationThirdPartyVulnerabilityInput: { - "__inputPlan": function AwsApplicationThirdPartyVulnerabilityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, awsApplicationId: { - applyPlan($insert, val) { - $insert.set("aws_application_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aws_application_id", bakedInputRuntime(schema, field.type, val)); + } }, thirdPartyVulnerabilityId: { - applyPlan($insert, val) { - $insert.set("third_party_vulnerability_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("third_party_vulnerability_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateGcpApplicationFirstPartyVulnerabilityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, gcpApplicationFirstPartyVulnerability($object) { return $object.get("result"); @@ -36154,7 +33439,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationFirstPartyVulnerabilityEdge($mutation, args, info) { + gcpApplicationFirstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36170,9 +33455,7 @@ export const plans = { return otherSource_gcp_application_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationFirstPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36183,42 +33466,42 @@ export const plans = { }, CreateGcpApplicationFirstPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, gcpApplicationFirstPartyVulnerability: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, GcpApplicationFirstPartyVulnerabilityInput: { - "__inputPlan": function GcpApplicationFirstPartyVulnerabilityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, gcpApplicationId: { - applyPlan($insert, val) { - $insert.set("gcp_application_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("gcp_application_id", bakedInputRuntime(schema, field.type, val)); + } }, firstPartyVulnerabilityId: { - applyPlan($insert, val) { - $insert.set("first_party_vulnerability_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_party_vulnerability_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateGcpApplicationThirdPartyVulnerabilityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, gcpApplicationThirdPartyVulnerability($object) { return $object.get("result"); @@ -36226,7 +33509,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationThirdPartyVulnerabilityEdge($mutation, args, info) { + gcpApplicationThirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36242,9 +33525,7 @@ export const plans = { return otherSource_gcp_application_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationThirdPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36255,42 +33536,42 @@ export const plans = { }, CreateGcpApplicationThirdPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, gcpApplicationThirdPartyVulnerability: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, GcpApplicationThirdPartyVulnerabilityInput: { - "__inputPlan": function GcpApplicationThirdPartyVulnerabilityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, gcpApplicationId: { - applyPlan($insert, val) { - $insert.set("gcp_application_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("gcp_application_id", bakedInputRuntime(schema, field.type, val)); + } }, thirdPartyVulnerabilityId: { - applyPlan($insert, val) { - $insert.set("third_party_vulnerability_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("third_party_vulnerability_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateOrganizationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, organization($object) { return $object.get("result"); @@ -36298,7 +33579,7 @@ export const plans = { query() { return rootValue(); }, - organizationEdge($mutation, args, info) { + organizationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36314,9 +33595,7 @@ export const plans = { return otherSource_organizationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OrganizationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36327,42 +33606,42 @@ export const plans = { }, CreateOrganizationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, organization: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, OrganizationInput: { - "__inputPlan": function OrganizationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePersonPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -36370,7 +33649,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36386,9 +33665,7 @@ export const plans = { return otherSource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36399,42 +33676,42 @@ export const plans = { }, CreatePersonInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, person: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PersonInput: { - "__inputPlan": function PersonInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, username: { - applyPlan($insert, val) { - $insert.set("username", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("username", bakedInputRuntime(schema, field.type, val)); + } } }, CreatePriorityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, priority($object) { return $object.get("result"); @@ -36442,7 +33719,7 @@ export const plans = { query() { return rootValue(); }, - priorityEdge($mutation, args, info) { + priorityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36458,9 +33735,7 @@ export const plans = { return otherSource_prioritiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PriorityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36471,42 +33746,42 @@ export const plans = { }, CreatePriorityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, priority: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, PriorityInput: { - "__inputPlan": function PriorityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, CreateRelationalItemRelationCompositePkPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, relationalItemRelationCompositePk($object) { return $object.get("result"); @@ -36514,7 +33789,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationCompositePkEdge($mutation, args, info) { + relationalItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36530,9 +33805,7 @@ export const plans = { return relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36543,42 +33816,42 @@ export const plans = { }, CreateRelationalItemRelationCompositePkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, relationalItemRelationCompositePk: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RelationalItemRelationCompositePkInput: { - "__inputPlan": function RelationalItemRelationCompositePkInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSingleTableItemRelationCompositePkPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, singleTableItemRelationCompositePk($object) { return $object.get("result"); @@ -36586,7 +33859,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationCompositePkEdge($mutation, args, info) { + singleTableItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36602,9 +33875,7 @@ export const plans = { return otherSource_single_table_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36615,42 +33886,42 @@ export const plans = { }, CreateSingleTableItemRelationCompositePkInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, singleTableItemRelationCompositePk: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SingleTableItemRelationCompositePkInput: { - "__inputPlan": function SingleTableItemRelationCompositePkInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateRelationalItemRelationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, relationalItemRelation($object) { return $object.get("result"); @@ -36658,7 +33929,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationEdge($mutation, args, info) { + relationalItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36674,9 +33945,7 @@ export const plans = { return relational_item_relations_relational_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36687,49 +33956,50 @@ export const plans = { }, CreateRelationalItemRelationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, relationalItemRelation: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, RelationalItemRelationInput: { - "__inputPlan": function RelationalItemRelationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateSingleTableItemRelationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, singleTableItemRelation($object) { return $object.get("result"); @@ -36737,7 +34007,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationEdge($mutation, args, info) { + singleTableItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36753,9 +34023,7 @@ export const plans = { return otherSource_single_table_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36766,49 +34034,50 @@ export const plans = { }, CreateSingleTableItemRelationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, singleTableItemRelation: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, SingleTableItemRelationInput: { - "__inputPlan": function SingleTableItemRelationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateLogEntryPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, logEntry($object) { return $object.get("result"); @@ -36816,7 +34085,7 @@ export const plans = { query() { return rootValue(); }, - logEntryEdge($mutation, args, info) { + logEntryEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36832,9 +34101,7 @@ export const plans = { return otherSource_log_entriesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LogEntryOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36845,56 +34112,58 @@ export const plans = { }, CreateLogEntryInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, logEntry: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, LogEntryInput: { - "__inputPlan": function LogEntryInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, text: { - applyPlan($insert, val) { - $insert.set("text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text", bakedInputRuntime(schema, field.type, val)); + } } }, CreateFirstPartyVulnerabilityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, firstPartyVulnerability($object) { return $object.get("result"); @@ -36902,7 +34171,7 @@ export const plans = { query() { return rootValue(); }, - firstPartyVulnerabilityEdge($mutation, args, info) { + firstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -36918,9 +34187,7 @@ export const plans = { return paths_0_resource_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FirstPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -36931,56 +34198,58 @@ export const plans = { }, CreateFirstPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, firstPartyVulnerability: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, FirstPartyVulnerabilityInput: { - "__inputPlan": function FirstPartyVulnerabilityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, cvssScore: { - applyPlan($insert, val) { - $insert.set("cvss_score", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cvss_score", bakedInputRuntime(schema, field.type, val)); + } }, teamName: { - applyPlan($insert, val) { - $insert.set("team_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("team_name", bakedInputRuntime(schema, field.type, val)); + } } }, CreateThirdPartyVulnerabilityPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, thirdPartyVulnerability($object) { return $object.get("result"); @@ -36988,7 +34257,7 @@ export const plans = { query() { return rootValue(); }, - thirdPartyVulnerabilityEdge($mutation, args, info) { + thirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37004,9 +34273,7 @@ export const plans = { return paths_1_resource_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ThirdPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37017,56 +34284,58 @@ export const plans = { }, CreateThirdPartyVulnerabilityInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, thirdPartyVulnerability: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, ThirdPartyVulnerabilityInput: { - "__inputPlan": function ThirdPartyVulnerabilityInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, cvssScore: { - applyPlan($insert, val) { - $insert.set("cvss_score", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cvss_score", bakedInputRuntime(schema, field.type, val)); + } }, vendorName: { - applyPlan($insert, val) { - $insert.set("vendor_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("vendor_name", bakedInputRuntime(schema, field.type, val)); + } } }, CreateAwsApplicationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, awsApplication($object) { return $object.get("result"); @@ -37074,7 +34343,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationEdge($mutation, args, info) { + awsApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37090,9 +34359,7 @@ export const plans = { return otherSource_aws_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37103,70 +34370,74 @@ export const plans = { }, CreateAwsApplicationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, awsApplication: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, AwsApplicationInput: { - "__inputPlan": function AwsApplicationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, lastDeployed: { - applyPlan($insert, val) { - $insert.set("last_deployed", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_deployed", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, awsId: { - applyPlan($insert, val) { - $insert.set("aws_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aws_id", bakedInputRuntime(schema, field.type, val)); + } } }, CreateGcpApplicationPayload: { __assertStep: assertExecutableStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $insert = $mutation.getStepForKey("result"); + return $insert.getMeta("clientMutationId"); }, gcpApplication($object) { return $object.get("result"); @@ -37174,7 +34445,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationEdge($mutation, args, info) { + gcpApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37190,9 +34461,7 @@ export const plans = { return otherSource_gcp_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37203,70 +34472,74 @@ export const plans = { }, CreateGcpApplicationInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, val) { + qb.setMeta("clientMutationId", val); + } }, gcpApplication: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); - }, - autoApplyAfterParentApplyPlan: true + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } + } } }, GcpApplicationInput: { - "__inputPlan": function GcpApplicationInput_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, lastDeployed: { - applyPlan($insert, val) { - $insert.set("last_deployed", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_deployed", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, gcpId: { - applyPlan($insert, val) { - $insert.set("gcp_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("gcp_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateAwsApplicationFirstPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, awsApplicationFirstPartyVulnerability($object) { return $object.get("result"); @@ -37274,7 +34547,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationFirstPartyVulnerabilityEdge($mutation, args, info) { + awsApplicationFirstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37290,9 +34563,7 @@ export const plans = { return otherSource_aws_application_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationFirstPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37303,42 +34574,44 @@ export const plans = { }, UpdateAwsApplicationFirstPartyVulnerabilityByAwsApplicationIdAndFirstPartyVulnerabilityIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, awsApplicationId: undefined, firstPartyVulnerabilityId: undefined, awsApplicationFirstPartyVulnerabilityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, AwsApplicationFirstPartyVulnerabilityPatch: { - "__inputPlan": function AwsApplicationFirstPartyVulnerabilityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, awsApplicationId: { - applyPlan($insert, val) { - $insert.set("aws_application_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aws_application_id", bakedInputRuntime(schema, field.type, val)); + } }, firstPartyVulnerabilityId: { - applyPlan($insert, val) { - $insert.set("first_party_vulnerability_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_party_vulnerability_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateAwsApplicationThirdPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, awsApplicationThirdPartyVulnerability($object) { return $object.get("result"); @@ -37346,7 +34619,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationThirdPartyVulnerabilityEdge($mutation, args, info) { + awsApplicationThirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37362,9 +34635,7 @@ export const plans = { return otherSource_aws_application_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationThirdPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37375,42 +34646,44 @@ export const plans = { }, UpdateAwsApplicationThirdPartyVulnerabilityByAwsApplicationIdAndThirdPartyVulnerabilityIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, awsApplicationId: undefined, thirdPartyVulnerabilityId: undefined, awsApplicationThirdPartyVulnerabilityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, AwsApplicationThirdPartyVulnerabilityPatch: { - "__inputPlan": function AwsApplicationThirdPartyVulnerabilityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, awsApplicationId: { - applyPlan($insert, val) { - $insert.set("aws_application_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aws_application_id", bakedInputRuntime(schema, field.type, val)); + } }, thirdPartyVulnerabilityId: { - applyPlan($insert, val) { - $insert.set("third_party_vulnerability_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("third_party_vulnerability_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateGcpApplicationFirstPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, gcpApplicationFirstPartyVulnerability($object) { return $object.get("result"); @@ -37418,7 +34691,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationFirstPartyVulnerabilityEdge($mutation, args, info) { + gcpApplicationFirstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37434,9 +34707,7 @@ export const plans = { return otherSource_gcp_application_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationFirstPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37447,42 +34718,44 @@ export const plans = { }, UpdateGcpApplicationFirstPartyVulnerabilityByGcpApplicationIdAndFirstPartyVulnerabilityIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, gcpApplicationId: undefined, firstPartyVulnerabilityId: undefined, gcpApplicationFirstPartyVulnerabilityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, GcpApplicationFirstPartyVulnerabilityPatch: { - "__inputPlan": function GcpApplicationFirstPartyVulnerabilityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, gcpApplicationId: { - applyPlan($insert, val) { - $insert.set("gcp_application_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("gcp_application_id", bakedInputRuntime(schema, field.type, val)); + } }, firstPartyVulnerabilityId: { - applyPlan($insert, val) { - $insert.set("first_party_vulnerability_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("first_party_vulnerability_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateGcpApplicationThirdPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, gcpApplicationThirdPartyVulnerability($object) { return $object.get("result"); @@ -37490,7 +34763,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationThirdPartyVulnerabilityEdge($mutation, args, info) { + gcpApplicationThirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37506,9 +34779,7 @@ export const plans = { return otherSource_gcp_application_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationThirdPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37519,42 +34790,44 @@ export const plans = { }, UpdateGcpApplicationThirdPartyVulnerabilityByGcpApplicationIdAndThirdPartyVulnerabilityIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, gcpApplicationId: undefined, thirdPartyVulnerabilityId: undefined, gcpApplicationThirdPartyVulnerabilityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, GcpApplicationThirdPartyVulnerabilityPatch: { - "__inputPlan": function GcpApplicationThirdPartyVulnerabilityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, gcpApplicationId: { - applyPlan($insert, val) { - $insert.set("gcp_application_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("gcp_application_id", bakedInputRuntime(schema, field.type, val)); + } }, thirdPartyVulnerabilityId: { - applyPlan($insert, val) { - $insert.set("third_party_vulnerability_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("third_party_vulnerability_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOrganizationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, organization($object) { return $object.get("result"); @@ -37562,7 +34835,7 @@ export const plans = { query() { return rootValue(); }, - organizationEdge($mutation, args, info) { + organizationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37578,9 +34851,7 @@ export const plans = { return otherSource_organizationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OrganizationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37591,55 +34862,58 @@ export const plans = { }, UpdateOrganizationByOrganizationIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, organizationId: undefined, organizationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, OrganizationPatch: { - "__inputPlan": function OrganizationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateOrganizationByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined, organizationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -37647,7 +34921,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37663,9 +34937,7 @@ export const plans = { return otherSource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37676,55 +34948,58 @@ export const plans = { }, UpdatePersonByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PersonPatch: { - "__inputPlan": function PersonPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, username: { - applyPlan($insert, val) { - $insert.set("username", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("username", bakedInputRuntime(schema, field.type, val)); + } } }, UpdatePersonByUsernameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, username: undefined, personPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdatePriorityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, priority($object) { return $object.get("result"); @@ -37732,7 +35007,7 @@ export const plans = { query() { return rootValue(); }, - priorityEdge($mutation, args, info) { + priorityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37748,9 +35023,7 @@ export const plans = { return otherSource_prioritiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PriorityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37761,41 +35034,43 @@ export const plans = { }, UpdatePriorityByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, priorityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, PriorityPatch: { - "__inputPlan": function PriorityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, title: { - applyPlan($insert, val) { - $insert.set("title", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("title", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateRelationalItemRelationCompositePkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, relationalItemRelationCompositePk($object) { return $object.get("result"); @@ -37803,7 +35078,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationCompositePkEdge($mutation, args, info) { + relationalItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37819,9 +35094,7 @@ export const plans = { return relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37832,42 +35105,44 @@ export const plans = { }, UpdateRelationalItemRelationCompositePkByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, childId: undefined, relationalItemRelationCompositePkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, RelationalItemRelationCompositePkPatch: { - "__inputPlan": function RelationalItemRelationCompositePkPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSingleTableItemRelationCompositePkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, singleTableItemRelationCompositePk($object) { return $object.get("result"); @@ -37875,7 +35150,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationCompositePkEdge($mutation, args, info) { + singleTableItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37891,9 +35166,7 @@ export const plans = { return otherSource_single_table_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37904,42 +35177,44 @@ export const plans = { }, UpdateSingleTableItemRelationCompositePkByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, childId: undefined, singleTableItemRelationCompositePkPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SingleTableItemRelationCompositePkPatch: { - "__inputPlan": function SingleTableItemRelationCompositePkPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateRelationalItemRelationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, relationalItemRelation($object) { return $object.get("result"); @@ -37947,7 +35222,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationEdge($mutation, args, info) { + relationalItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -37963,9 +35238,7 @@ export const plans = { return relational_item_relations_relational_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -37976,63 +35249,67 @@ export const plans = { }, UpdateRelationalItemRelationByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, relationalItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, RelationalItemRelationPatch: { - "__inputPlan": function RelationalItemRelationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateRelationalItemRelationByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, childId: undefined, relationalItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateSingleTableItemRelationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, singleTableItemRelation($object) { return $object.get("result"); @@ -38040,7 +35317,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationEdge($mutation, args, info) { + singleTableItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38056,9 +35333,7 @@ export const plans = { return otherSource_single_table_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38069,63 +35344,67 @@ export const plans = { }, UpdateSingleTableItemRelationByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, singleTableItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, SingleTableItemRelationPatch: { - "__inputPlan": function SingleTableItemRelationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, parentId: { - applyPlan($insert, val) { - $insert.set("parent_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("parent_id", bakedInputRuntime(schema, field.type, val)); + } }, childId: { - applyPlan($insert, val) { - $insert.set("child_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("child_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateSingleTableItemRelationByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, childId: undefined, singleTableItemRelationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, UpdateLogEntryPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, logEntry($object) { return $object.get("result"); @@ -38133,7 +35412,7 @@ export const plans = { query() { return rootValue(); }, - logEntryEdge($mutation, args, info) { + logEntryEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38149,9 +35428,7 @@ export const plans = { return otherSource_log_entriesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LogEntryOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38162,55 +35439,59 @@ export const plans = { }, UpdateLogEntryByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, logEntryPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, LogEntryPatch: { - "__inputPlan": function LogEntryPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, text: { - applyPlan($insert, val) { - $insert.set("text", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("text", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateFirstPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, firstPartyVulnerability($object) { return $object.get("result"); @@ -38218,7 +35499,7 @@ export const plans = { query() { return rootValue(); }, - firstPartyVulnerabilityEdge($mutation, args, info) { + firstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38234,9 +35515,7 @@ export const plans = { return paths_0_resource_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FirstPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38247,55 +35526,59 @@ export const plans = { }, UpdateFirstPartyVulnerabilityByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, firstPartyVulnerabilityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, FirstPartyVulnerabilityPatch: { - "__inputPlan": function FirstPartyVulnerabilityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, cvssScore: { - applyPlan($insert, val) { - $insert.set("cvss_score", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cvss_score", bakedInputRuntime(schema, field.type, val)); + } }, teamName: { - applyPlan($insert, val) { - $insert.set("team_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("team_name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateThirdPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, thirdPartyVulnerability($object) { return $object.get("result"); @@ -38303,7 +35586,7 @@ export const plans = { query() { return rootValue(); }, - thirdPartyVulnerabilityEdge($mutation, args, info) { + thirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38319,9 +35602,7 @@ export const plans = { return paths_1_resource_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ThirdPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38332,55 +35613,59 @@ export const plans = { }, UpdateThirdPartyVulnerabilityByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, thirdPartyVulnerabilityPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, ThirdPartyVulnerabilityPatch: { - "__inputPlan": function ThirdPartyVulnerabilityPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, cvssScore: { - applyPlan($insert, val) { - $insert.set("cvss_score", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("cvss_score", bakedInputRuntime(schema, field.type, val)); + } }, vendorName: { - applyPlan($insert, val) { - $insert.set("vendor_name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("vendor_name", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateAwsApplicationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, awsApplication($object) { return $object.get("result"); @@ -38388,7 +35673,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationEdge($mutation, args, info) { + awsApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38404,9 +35689,7 @@ export const plans = { return otherSource_aws_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38417,69 +35700,75 @@ export const plans = { }, UpdateAwsApplicationByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, awsApplicationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, AwsApplicationPatch: { - "__inputPlan": function AwsApplicationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, lastDeployed: { - applyPlan($insert, val) { - $insert.set("last_deployed", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_deployed", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, awsId: { - applyPlan($insert, val) { - $insert.set("aws_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("aws_id", bakedInputRuntime(schema, field.type, val)); + } } }, UpdateGcpApplicationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, gcpApplication($object) { return $object.get("result"); @@ -38487,7 +35776,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationEdge($mutation, args, info) { + gcpApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38503,9 +35792,7 @@ export const plans = { return otherSource_gcp_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38516,69 +35803,75 @@ export const plans = { }, UpdateGcpApplicationByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined, gcpApplicationPatch: { - applyPlan($object) { - const $record = $object.getStepForKey("result"); - return $record.setPlan(); + apply(qb, arg) { + if (arg != null) { + return qb.setBuilder(); + } } } }, GcpApplicationPatch: { - "__inputPlan": function GcpApplicationPatch_inputPlan() { - return object(Object.create(null)); - }, + "__baked": createObjectAndApplyChildren, rowId: { - applyPlan($insert, val) { - $insert.set("id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("id", bakedInputRuntime(schema, field.type, val)); + } }, name: { - applyPlan($insert, val) { - $insert.set("name", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("name", bakedInputRuntime(schema, field.type, val)); + } }, lastDeployed: { - applyPlan($insert, val) { - $insert.set("last_deployed", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("last_deployed", bakedInputRuntime(schema, field.type, val)); + } }, personId: { - applyPlan($insert, val) { - $insert.set("person_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("person_id", bakedInputRuntime(schema, field.type, val)); + } }, organizationId: { - applyPlan($insert, val) { - $insert.set("organization_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("organization_id", bakedInputRuntime(schema, field.type, val)); + } }, gcpId: { - applyPlan($insert, val) { - $insert.set("gcp_id", val.get()); - }, - autoApplyAfterParentInputPlan: true, - autoApplyAfterParentApplyPlan: true + apply(obj, val, { + field, + schema + }) { + obj.set("gcp_id", bakedInputRuntime(schema, field.type, val)); + } } }, DeleteAwsApplicationFirstPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, awsApplicationFirstPartyVulnerability($object) { return $object.get("result"); @@ -38586,7 +35879,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationFirstPartyVulnerabilityEdge($mutation, args, info) { + awsApplicationFirstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38602,9 +35895,7 @@ export const plans = { return otherSource_aws_application_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationFirstPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38615,8 +35906,8 @@ export const plans = { }, DeleteAwsApplicationFirstPartyVulnerabilityByAwsApplicationIdAndFirstPartyVulnerabilityIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, awsApplicationId: undefined, @@ -38625,7 +35916,8 @@ export const plans = { DeleteAwsApplicationThirdPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, awsApplicationThirdPartyVulnerability($object) { return $object.get("result"); @@ -38633,7 +35925,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationThirdPartyVulnerabilityEdge($mutation, args, info) { + awsApplicationThirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38649,9 +35941,7 @@ export const plans = { return otherSource_aws_application_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationThirdPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38662,8 +35952,8 @@ export const plans = { }, DeleteAwsApplicationThirdPartyVulnerabilityByAwsApplicationIdAndThirdPartyVulnerabilityIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, awsApplicationId: undefined, @@ -38672,7 +35962,8 @@ export const plans = { DeleteGcpApplicationFirstPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, gcpApplicationFirstPartyVulnerability($object) { return $object.get("result"); @@ -38680,7 +35971,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationFirstPartyVulnerabilityEdge($mutation, args, info) { + gcpApplicationFirstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38696,9 +35987,7 @@ export const plans = { return otherSource_gcp_application_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationFirstPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38709,8 +35998,8 @@ export const plans = { }, DeleteGcpApplicationFirstPartyVulnerabilityByGcpApplicationIdAndFirstPartyVulnerabilityIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, gcpApplicationId: undefined, @@ -38719,7 +36008,8 @@ export const plans = { DeleteGcpApplicationThirdPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, gcpApplicationThirdPartyVulnerability($object) { return $object.get("result"); @@ -38727,7 +36017,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationThirdPartyVulnerabilityEdge($mutation, args, info) { + gcpApplicationThirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38743,9 +36033,7 @@ export const plans = { return otherSource_gcp_application_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationThirdPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38756,8 +36044,8 @@ export const plans = { }, DeleteGcpApplicationThirdPartyVulnerabilityByGcpApplicationIdAndThirdPartyVulnerabilityIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, gcpApplicationId: undefined, @@ -38766,7 +36054,8 @@ export const plans = { DeleteOrganizationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, organization($object) { return $object.get("result"); @@ -38774,7 +36063,7 @@ export const plans = { query() { return rootValue(); }, - organizationEdge($mutation, args, info) { + organizationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38790,9 +36079,7 @@ export const plans = { return otherSource_organizationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("OrganizationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38803,16 +36090,16 @@ export const plans = { }, DeleteOrganizationByOrganizationIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, organizationId: undefined }, DeleteOrganizationByNameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, name: undefined @@ -38820,7 +36107,8 @@ export const plans = { DeletePersonPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, person($object) { return $object.get("result"); @@ -38828,7 +36116,7 @@ export const plans = { query() { return rootValue(); }, - personEdge($mutation, args, info) { + personEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38844,9 +36132,7 @@ export const plans = { return otherSource_peoplePgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PersonOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38857,16 +36143,16 @@ export const plans = { }, DeletePersonByPersonIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, personId: undefined }, DeletePersonByUsernameInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, username: undefined @@ -38874,7 +36160,8 @@ export const plans = { DeletePriorityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, priority($object) { return $object.get("result"); @@ -38882,7 +36169,7 @@ export const plans = { query() { return rootValue(); }, - priorityEdge($mutation, args, info) { + priorityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38898,9 +36185,7 @@ export const plans = { return otherSource_prioritiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("PriorityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38911,8 +36196,8 @@ export const plans = { }, DeletePriorityByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -38920,7 +36205,8 @@ export const plans = { DeleteRelationalItemRelationCompositePkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, relationalItemRelationCompositePk($object) { return $object.get("result"); @@ -38928,7 +36214,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationCompositePkEdge($mutation, args, info) { + relationalItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38944,9 +36230,7 @@ export const plans = { return relational_item_relation_composite_pks_relational_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationCompositePkOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -38957,8 +36241,8 @@ export const plans = { }, DeleteRelationalItemRelationCompositePkByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, @@ -38967,7 +36251,8 @@ export const plans = { DeleteSingleTableItemRelationCompositePkPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, singleTableItemRelationCompositePk($object) { return $object.get("result"); @@ -38975,7 +36260,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationCompositePkEdge($mutation, args, info) { + singleTableItemRelationCompositePkEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -38991,9 +36276,7 @@ export const plans = { return otherSource_single_table_item_relation_composite_pksPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationCompositePkOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -39004,8 +36287,8 @@ export const plans = { }, DeleteSingleTableItemRelationCompositePkByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, @@ -39014,7 +36297,8 @@ export const plans = { DeleteRelationalItemRelationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, relationalItemRelation($object) { return $object.get("result"); @@ -39022,7 +36306,7 @@ export const plans = { query() { return rootValue(); }, - relationalItemRelationEdge($mutation, args, info) { + relationalItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -39038,9 +36322,7 @@ export const plans = { return relational_item_relations_relational_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("RelationalItemRelationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -39051,16 +36333,16 @@ export const plans = { }, DeleteRelationalItemRelationByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined }, DeleteRelationalItemRelationByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, @@ -39069,7 +36351,8 @@ export const plans = { DeleteSingleTableItemRelationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, singleTableItemRelation($object) { return $object.get("result"); @@ -39077,7 +36360,7 @@ export const plans = { query() { return rootValue(); }, - singleTableItemRelationEdge($mutation, args, info) { + singleTableItemRelationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -39093,9 +36376,7 @@ export const plans = { return otherSource_single_table_item_relationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("SingleTableItemRelationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -39106,16 +36387,16 @@ export const plans = { }, DeleteSingleTableItemRelationByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined }, DeleteSingleTableItemRelationByParentIdAndChildIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, parentId: undefined, @@ -39124,7 +36405,8 @@ export const plans = { DeleteLogEntryPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, logEntry($object) { return $object.get("result"); @@ -39132,7 +36414,7 @@ export const plans = { query() { return rootValue(); }, - logEntryEdge($mutation, args, info) { + logEntryEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -39148,9 +36430,7 @@ export const plans = { return otherSource_log_entriesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("LogEntryOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -39161,8 +36441,8 @@ export const plans = { }, DeleteLogEntryByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -39170,7 +36450,8 @@ export const plans = { DeleteFirstPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, firstPartyVulnerability($object) { return $object.get("result"); @@ -39178,7 +36459,7 @@ export const plans = { query() { return rootValue(); }, - firstPartyVulnerabilityEdge($mutation, args, info) { + firstPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -39194,9 +36475,7 @@ export const plans = { return paths_0_resource_first_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("FirstPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -39207,8 +36486,8 @@ export const plans = { }, DeleteFirstPartyVulnerabilityByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -39216,7 +36495,8 @@ export const plans = { DeleteThirdPartyVulnerabilityPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, thirdPartyVulnerability($object) { return $object.get("result"); @@ -39224,7 +36504,7 @@ export const plans = { query() { return rootValue(); }, - thirdPartyVulnerabilityEdge($mutation, args, info) { + thirdPartyVulnerabilityEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -39240,9 +36520,7 @@ export const plans = { return paths_1_resource_third_party_vulnerabilitiesPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("ThirdPartyVulnerabilityOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -39253,8 +36531,8 @@ export const plans = { }, DeleteThirdPartyVulnerabilityByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -39262,7 +36540,8 @@ export const plans = { DeleteAwsApplicationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, awsApplication($object) { return $object.get("result"); @@ -39270,7 +36549,7 @@ export const plans = { query() { return rootValue(); }, - awsApplicationEdge($mutation, args, info) { + awsApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -39286,9 +36565,7 @@ export const plans = { return otherSource_aws_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("AwsApplicationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -39299,8 +36576,8 @@ export const plans = { }, DeleteAwsApplicationByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined @@ -39308,7 +36585,8 @@ export const plans = { DeleteGcpApplicationPayload: { __assertStep: ObjectStep, clientMutationId($mutation) { - return $mutation.getStepForKey("clientMutationId", true) ?? constant(null); + const $result = $mutation.getStepForKey("result"); + return $result.getMeta("clientMutationId"); }, gcpApplication($object) { return $object.get("result"); @@ -39316,7 +36594,7 @@ export const plans = { query() { return rootValue(); }, - gcpApplicationEdge($mutation, args, info) { + gcpApplicationEdge($mutation, fieldArgs) { const $result = $mutation.getStepForKey("result", true); if (!$result) { return constant(null); @@ -39332,9 +36610,7 @@ export const plans = { return otherSource_gcp_applicationsPgResource.find(spec); } })(); - // Perform ordering - const $value = args.getRaw("orderBy"); - applyOrderToPlan($select, $value, info.schema.getType("GcpApplicationOrderBy")); + fieldArgs.apply($select, "orderBy"); const $connection = connection($select); // NOTE: you must not use `$single = $select.single()` // here because doing so will mark the row as unique, and @@ -39345,8 +36621,8 @@ export const plans = { }, DeleteGcpApplicationByRowIdInput: { clientMutationId: { - applyPlan($input, val) { - $input.set("clientMutationId", val.get()); + apply(qb, val) { + qb.setMeta("clientMutationId", val); } }, rowId: undefined diff --git a/postgraphile/postgraphile/graphile.config.ts b/postgraphile/postgraphile/graphile.config.ts index 068cd58436..6b27d77c1b 100644 --- a/postgraphile/postgraphile/graphile.config.ts +++ b/postgraphile/postgraphile/graphile.config.ts @@ -436,7 +436,7 @@ const preset: GraphileConfig.Preset = { // Test via SQL: `NOTIFY test, '{"a":40}';` sub: EXPORTABLE( (context, jsonParse, listen, object) => (_$root, args) => { - const $topic = args.get("topic"); + const $topic = args.getRaw("topic"); const $pgSubscriber = context().get("pgSubscriber"); return listen($pgSubscriber, $topic, ($payload) => object({ sub: jsonParse($payload).get("a" as never) }), diff --git a/utils/eslint-plugin-graphile-export/src/ExportSubclasses.ts b/utils/eslint-plugin-graphile-export/src/ExportSubclasses.ts index 711e1faaf5..654d1d9da3 100644 --- a/utils/eslint-plugin-graphile-export/src/ExportSubclasses.ts +++ b/utils/eslint-plugin-graphile-export/src/ExportSubclasses.ts @@ -11,17 +11,15 @@ interface CommonOptions { } const KNOWN_IMPORTS: Array<[string, string]> = [ - ["grafast", "BaseStep"], - ["grafast", "ExecutableStep"], - ["grafast", "ModifierStep"], + ["grafast", "Step"], + ["grafast", "Modifier"], ]; export const ExportSubclasses: Rule.RuleModule = { meta: { type: "suggestion", docs: { - description: - "Looks for classes that extend BaseStep, ExecutableStep or ModifierStep.", + description: "Looks for classes that extend Step or Modifier.", recommended: true, url: "TODO", }, diff --git a/utils/graphile-export/src/exportSchema.ts b/utils/graphile-export/src/exportSchema.ts index 01f71068fd..b3133ce589 100644 --- a/utils/graphile-export/src/exportSchema.ts +++ b/utils/graphile-export/src/exportSchema.ts @@ -1685,15 +1685,15 @@ function exportSchemaTypeDefs({ } else if (type instanceof GraphQLInputObjectType) { const typeProperties: t.ObjectProperty[] = []; - if (type.extensions?.grafast?.inputPlan) { + if (type.extensions?.grafast?.baked) { typeProperties.push( t.objectProperty( - identifierOrLiteral("__inputPlan"), + identifierOrLiteral("__baked"), convertToIdentifierViaAST( file, - type.extensions?.grafast.inputPlan, + type.extensions?.grafast.baked, `${type.name}.inputPlan`, - `${type.name}.extensions.grafast.inputPlan`, + `${type.name}.extensions.grafast.baked`, ), ), ); diff --git a/utils/pg-sql2/src/index.ts b/utils/pg-sql2/src/index.ts index 5815b96bb9..20c0f8d497 100644 --- a/utils/pg-sql2/src/index.ts +++ b/utils/pg-sql2/src/index.ts @@ -1062,11 +1062,19 @@ export function arraysMatch( if (l !== array2.length) { return false; } - for (let i = 0; i < l; i++) { - if ( - comparator ? !comparator(array1[i]!, array2[i]!) : array1[i] !== array2[i] - ) { - return false; + if (comparator != null) { + for (let i = 0; i < l; i++) { + const a = array1[i]!; + const b = array2[i]!; + if (a !== b && !comparator(a, b)) { + return false; + } + } + } else { + for (let i = 0; i < l; i++) { + if (array1[i]! !== array2[i]!) { + return false; + } } } return true;